@cleen/ui 0.1.272 → 0.1.273
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 +6 -1
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{cn as No,useAnimateNumber as OC}from"@cleen/ui-core";import{forwardRef as _C,useMemo as W1}from"react";import{cn as vl,usePositionClose as LC,ZIndex as EC}from"@cleen/ui-core";import{useEffect as z1,useRef as es,useState as V1}from"react";import{createPortal as DC}from"react-dom";import{jsx as ts,jsxs as H1}from"react/jsx-runtime";var ye=({bg:e,label:t,color:n,closeOnClick:o=!0,hideOnMouseDown:l=!0,isOpen:a,children:c,hasArrow:i,placement:d="top",offset:s=8,className:p,classNames:g,isDisabled:m,openDelay:y=0,invertColors:v=!1,extraUpdateTriggers:h,allowNonDescendantHover:b=!0,zIndex:x=EC.TOOLTIP,style:C,styles:I,onClick:P,onMouseEnter:k,onMouseLeave:E,...N})=>{let[M,L]=V1(a??!1),[S,w]=V1(!1),T=es(null),F=es(null),R=es(null),{positionStyles:B,isMounted:V,optimalPosition:D}=LC({triggerRef:F,targetRef:T,position:d,isOpen:M&&!m,offset:s,extraUpdateTriggers:h});z1(()=>{L(a??!1)},[a]);let A=z=>{P?.(z),o&&L(!1)},O=(z,U)=>{if(a!==void 0)return;let W=F.current?.contains(z.target);!b&&!W||(U?(k?.(z),y&&y>0?R.current=setTimeout(()=>{L(!0)},y):L(!0)):(R.current&&(clearTimeout(R.current),R.current=null),L(!1),E?.(z)))};return z1(()=>{let z=()=>{l&&w(!0)},U=()=>{w(!1)};return document.addEventListener("mousedown",z),document.addEventListener("mouseup",U),()=>{document.removeEventListener("mousedown",z),document.removeEventListener("mouseup",U)}},[]),H1("div",{className:vl("cleen",p),style:C,children:[ts("div",{ref:F,className:vl("cleen-relative cleen-max-w-fit",g?.container),style:I?.container,onClick:A,onMouseEnter:z=>O(z,!0),onMouseLeave:z=>O(z,!1),...N,children:c}),t!==void 0&&M&&!m&&!S&&DC(ts("div",{className:"cleen",children:H1("div",{ref:T,className:vl("cleen-shadow cleen-px-2 cleen-py-0.5 cleen-rounded-md cleen-text-sm cleen-transition-opacity cleen-duration-200 cleen-pointer-events-none","cleen-absolute",v?"cleen-bg-primary after:cleen-border-primary cleen-text-primary-foreground":"cleen-bg-surface after:cleen-border-surface cleen-text-primary",{"cleen-opacity-0":!V,"cleen-opacity-100":V},g?.labelContainer),style:{zIndex:x,top:`${B.top}px`,left:`${B.left}px`,...e&&{backgroundColor:e},...n&&{color:n},...I?.labelContainer},children:[t,ts("div",{className:vl(i?["cleen-absolute cleen-border-[6px] cleen-border-surface",{"cleen-border-b-transparent cleen-border-x-transparent cleen-top-full cleen-drop-shadow-[0_1px_0.5px_rgba(var(--cleen-black),0.1)]":D==="top"||D==="top-left"||D==="top-right","cleen-left-[calc(50%-6px)]":D==="top"||D==="bottom","cleen-left-[6px]":D==="top-left"||D==="bottom-left","cleen-right-[6px]":D==="top-right"||D==="bottom-right","cleen-border-t-transparent cleen-border-x-transparent cleen-bottom-full cleen-drop-shadow-[0_-0.5px_0.5px_rgba(var(--cleen-black),0.1)]":D==="bottom"||D==="bottom-left"||D==="bottom-right","cleen-border-y-transparent cleen-border-r-transparent cleen-left-full cleen-top-[calc(50%-6px)] cleen-drop-shadow-[1px_0_0.5px_rgba(var(--cleen-black),0.1)]":D==="left","cleen-border-y-transparent cleen-border-l-transparent cleen-right-full cleen-top-[calc(50%-6px)] cleen-drop-shadow-[-0.25px_0_0.5px_rgba(var(--cleen-black),0.1)]":D==="right"}]:"cleen-hidden"),style:{}})]})}),document.body)]})};import{cn as Pr}from"@cleen/ui-core";var Lt=e=>Math.max(0,Math.min(100,Number.isFinite(e)?e:0)),Et=(e,t,n)=>{let o=Number.isFinite(t)?t:0,l=Number.isFinite(n)?n:100;return l===o?0:(e-o)/(l-o)*100};import{cn as bl}from"@cleen/ui-core";import{jsx as os}from"react/jsx-runtime";var yl=({serie:e,minValue:t,maxValue:n,color:o,trackHeight:l,className:a,style:c})=>{if(e.type!=="clamp")return null;let i=typeof e.value=="number"?e.value:0,d=Number.isFinite(i)?i:t,s=Lt(Et(d,t,n)),p=Math.max(2,e?.height??l*1.5),g={left:`${s}%`,top:"50%"};return e.tooltip?os(ye,{invertColors:!0,...e.tooltip,className:bl("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:bl("cleen-z-10",e.tooltip.classNames?.labelContainer)},children:os("div",{className:bl("cleen-rounded-full",a),style:{width:p,height:p,backgroundColor:o,...c}})}):os("div",{className:bl("cleen-absolute cleen-rounded-full -cleen-translate-x-1/2 -cleen-translate-y-1/2 cleen-pointer-events-none",a),style:{width:p,height:p,backgroundColor:o,...g,...c}})};import{jsx as Il}from"react/jsx-runtime";var U1=({serie:e,minValue:t,maxValue:n,animatedGlobal:o=t,renderAnimated:l,color:a,trackHeight:c,trackRadius:i,className:d,style:s})=>{if(e.type!=="bar")return null;let p=typeof e.start=="number"?e.start:t,g=typeof e.end=="number"?e.end:n,m=Lt(Et(p,t,n)),y=Lt(Et(g,t,n));y<m&&([m,y]=[y,m]);let v=Math.max(0,l?o-m:y-m);if(v<1&&!l||l&&o>=y&&v===0)return Il(yl,{serie:{...e,type:"clamp",value:m},color:a,trackHeight:c,minValue:t,maxValue:n,className:d,style:s});let h={left:`${m}%`,top:e?.height?(c-e.height)/2:0,width:`${v}%`,height:e?.height??"100%"},b={width:"100%",height:"100%"},x={background:a,borderRadius:e?.radius??i??(e?.height??c)/2};return e.tooltip?Il(ye,{invertColors:!0,...e.tooltip,className:Pr("cleen-absolute",e.tooltip.className),style:{...h,...e.tooltip.style},classNames:{...e.tooltip.classNames,container:Pr("cleen-size-full !cleen-max-w-none",e.tooltip.classNames?.container),labelContainer:Pr("cleen-z-10",e.tooltip.classNames?.labelContainer)},styles:{...e.tooltip.styles,container:{width:"100%",maxWidth:"none",height:"100%",...e.tooltip.styles?.container}},children:Il("div",{className:Pr("cleen-relative cleen-size-full",d),style:{...x,...b,...s}})}):Il("div",{className:Pr("cleen-absolute cleen-pointer-events-none",d),style:{...x,...h,...s}})};import{cn as FC}from"@cleen/ui-core";import{jsx as AC}from"react/jsx-runtime";var G1=({serie:e,minValue:t,maxValue:n,className:o,style:l})=>{let a=0;if(e.type==="clamp"){let c=typeof e.value=="number"?e.value:0,i=Number.isFinite(c)?c:t;a=Lt(Et(i,t,n))}else{let c=typeof e.start=="number"?e.start:t,i=typeof e.end=="number"?e.end:n,d=Lt(Et(c,t,n)),s=Lt(Et(i,t,n));a=(d+s)/2}return AC("div",{className:FC("cleen-absolute -cleen-translate-x-1/2 cleen-whitespace-nowrap",o),style:{left:`${a}%`,...l},children:e.label})};var $1={color:"rgb(var(--cleen-neutral-200))",height:8};import{jsx as Cn,jsxs as q1}from"react/jsx-runtime";var zC=_C(function({series:t=[],track:n,renderAnimated:o,renderAnimatedDuration:l=1e3,className:a,classNames:c,style:i,styles:d,minValue:s=0,maxValue:p=100,...g},m){let y=W1(()=>({...$1,...n}),[n]),v=W1(()=>t.reduce((C,I)=>{if(I.type==="bar"){let P=typeof I.end=="number"?I.end:p,k=Math.max(s,Math.min(P,p));if(k>C)return k}return C},0),[t,s,p]),h=OC({targetNumber:v,defaultNumber:s,duration:l,disabled:!o}),{bars:b,clamps:x}=t.reduce((C,I,P)=>{if(I==null||!I.type)return C;let k=I.color??"var(--cleen-primary)";switch(I.type){case"clamp":C.clamps.push(Cn(yl,{serie:I,color:k,trackHeight:y.height,minValue:s,maxValue:p,className:No(c?.clamp,I.className),style:{...d?.clamp,...I.style}},`clamp-${P}`));break;case"bar":C.bars.push(Cn(U1,{serie:I,color:k,trackHeight:y.height,trackRadius:y.radius,minValue:s,maxValue:p,renderAnimated:o,animatedGlobal:h,className:No(c?.bar,I.className),style:{...d?.bar,...I.style}},`bar-${P}`));break;default:break}return C},{clamps:[],bars:[]});return Cn("div",{className:No("cleen",a),style:i,ref:m,...g,children:q1("div",{className:No("cleen-relative cleen-w-full",c?.container),style:d?.container,children:[q1("div",{className:No("cleen-relative cleen-size-full",c?.trackWrapper),style:d?.trackWrapper,children:[Cn("div",{className:No("cleen-relative cleen-w-full",c?.track),style:{height:y.height,backgroundColor:y.color,borderRadius:y.radius??y.height/2,...d?.track},children:b}),x]}),t.some(C=>!!C.label)&&Cn("div",{"aria-hidden":!0,className:No("cleen-relative cleen-mt-2 cleen-h-5",c?.labels),style:d?.labels,children:t.map((C,I)=>!C||!C.type||!C.label?null:Cn(G1,{serie:C,minValue:s,maxValue:p,className:c?.label,style:d?.label},`label-${I}`))})]})})});import{cn as ns}from"@cleen/ui-core";import{jsx as rs}from"react/jsx-runtime";var VC={xs:"cleen-size-4",sm:"cleen-size-5",md:"cleen-size-[30px] cleen-border-2",lg:"cleen-size-10 cleen-border-2",xl:"cleen-size-[50px] cleen-border-4"},HC={slow:1.3,normal:.65,fast:.4},re=({isFullscreen:e,size:t="xs",stroke:n,speed:o="normal",className:l,classNames:a,style:c,styles:i,color:d,...s})=>rs("div",{className:ns("cleen",l),style:c,children:rs("div",{className:ns("cleen-flex cleen-justify-center cleen-items-center cleen-w-full cleen-h-full",{"cleen-h-screen cleen-w-screen cleen-bg-background":e},a?.container),style:i?.container,...s,children:rs("span",{className:ns("cleen-border cleen-rounded-full cleen-border-t-primary cleen-border-x-primary cleen-border-b-transparent cleen-animate-[spin_0.65s_linear_infinite]",typeof t=="string"&&VC[t],a?.loader),style:{...d&&{borderInlineColor:d,borderTopColor:d},...typeof t=="number"&&{width:t,height:t},...typeof n=="number"&&{borderWidth:n},animationDuration:`${typeof o=="number"?o:HC[o]}s`,...i?.loader}})})});import{cn as as,useWidthDynamicResize as UC}from"@cleen/ui-core";import{forwardRef as GC,useImperativeHandle as $C,useRef as WC}from"react";var X1={primary:"cleen-text-primary-foreground cleen-shadow-sm cleen-bg-primary hover:cleen-bg-[color-mix(in_srgb,rgba(var(--cleen-primary)),black_12%)]",secondary:"cleen-border cleen-border-border cleen-text-foreground hover:cleen-bg-surface hover:cleen-border-muted-foreground disabled:cleen-bg-surface disabled:cleen-text-muted-foreground","secondary-blue":"cleen-border cleen-border-blue cleen-text-blue hover:cleen-bg-blue hover:cleen-text-white disabled:cleen-bg-blue disabled:cleen-text-white","secondary-success":"cleen-border cleen-border-success cleen-text-success hover:cleen-bg-success hover:cleen-text-white disabled:cleen-bg-success disabled:cleen-text-white","secondary-error":"cleen-border cleen-border-error cleen-text-error hover:cleen-bg-error hover:cleen-text-white disabled:cleen-bg-error disabled:cleen-text-white",borderless:"cleen-text-foreground hover:cleen-bg-primary-100 hover:cleen-translate-y-0","borderless-blue":"cleen-text-blue-800 hover:cleen-bg-blue-dark-100 hover:cleen-translate-y-0","borderless-success":"cleen-text-success hover:cleen-bg-success-bg hover:cleen-translate-y-0","borderless-error":"cleen-text-error hover:cleen-bg-error-bg hover:cleen-translate-y-0",error:"cleen-text-white cleen-shadow-sm cleen-bg-error hover:cleen-bg-[color-mix(in_srgb,rgba(var(--cleen-error)),black_12%)]",success:"cleen-text-white cleen-shadow-sm cleen-bg-success hover:cleen-bg-[color-mix(in_srgb,rgba(var(--cleen-success)),black_12%)]",warning:"cleen-text-white cleen-shadow-sm cleen-bg-warning hover:cleen-bg-[color-mix(in_srgb,rgba(var(--cleen-warning)),black_12%)]",black:"cleen-text-white cleen-shadow-sm cleen-bg-black hover:cleen-bg-gray-modern-800",purple:"cleen-text-white cleen-shadow-sm cleen-bg-purple hover:cleen-bg-purple-800",indigo:"cleen-text-white cleen-shadow-sm cleen-bg-indigo hover:cleen-bg-indigo-800",yellow:"cleen-text-black cleen-shadow-sm cleen-bg-yellow hover:cleen-bg-yellow-500"},K1={primary:"rgb(var(--cleen-primary-foreground))",borderless:"rgb(var(--cleen-foreground))","borderless-blue":"rgb(var(--cleen-blue))","borderless-success":"rgb(var(--cleen-success))","borderless-error":"rgb(var(--cleen-error))",secondary:"rgb(var(--cleen-foreground))","secondary-blue":"rgb(var(--cleen-blue))","secondary-success":"rgb(var(--cleen-success))","secondary-error":"rgb(var(--cleen-error))",error:"rgb(var(--cleen-white))",success:"rgb(var(--cleen-white))",warning:"rgb(var(--cleen-white))",black:"rgb(var(--cleen-white))",purple:"rgb(var(--cleen-white))",indigo:"rgb(var(--cleen-white))",yellow:"rgb(var(--cleen-black))"};import{jsx as Y1,jsxs as qC}from"react/jsx-runtime";var ee=GC(function({type:t="button",label:n,onClick:o,className:l,classNames:a,style:c,styles:i,disabled:d=!1,leftIcon:s,rightIcon:p,loaderColor:g,isLoading:m=!1,variant:y="primary",fullWidth:v=!1,children:h,...b},x){let C=WC(null);return $C(x,()=>C.current),UC({ref:C,skip:v},[m,s,p,v]),Y1("div",{className:as("cleen",l),style:c,children:qC("button",{type:t,ref:C,className:as("cleen-flex cleen-justify-center cleen-items-center cleen-gap-1 cleen-px-4 cleen-py-2 cleen-rounded-lg focus-visible:cleen-outline focus-visible:cleen-outline-2 focus-visible:cleen-outline-primary focus-visible:cleen-outline-offset-2 cleen-font-semibold cleen-text-sm cleen-text-nowrap cleen-leading-6 cleen-transition-all hover:-cleen-translate-y-[1px] cleen-duration-200 cleen-ease-in-out",X1[y],{"cleen-w-full cleen-flex-1":v,"cleen-opacity-50 cleen-cursor-not-allowed cleen-pointer-events-none":d||m},a?.container),style:i?.container,disabled:m||d,onClick:o,...b,children:[m&&Y1(re,{size:"xs",color:g||K1[y],className:as("cleen-mr-1.5 cleen-w-fit",a?.loaderContainer),style:i?.loaderContainer,classNames:{loader:a?.loader},styles:{loader:i?.loader}}),s||null,n||h,p||null]})})});var Z1={primary:"cleen-text-primary-foreground cleen-shadow-sm cleen-bg-primary hover:cleen-bg-[color-mix(in_srgb,rgba(var(--cleen-primary)),black_12%)]",secondary:"cleen-border-border cleen-text-foreground hover:cleen-bg-surface hover:cleen-border-muted-foreground group-aria-disabled:cleen-bg-surface group-aria-disabled:cleen-text-muted-foreground","secondary-blue":"cleen-border-blue cleen-text-blue hover:cleen-bg-blue hover:cleen-text-white group-aria-disabled:cleen-bg-blue group-aria-disabled:cleen-text-white","secondary-success":"cleen-border-success cleen-text-success hover:cleen-bg-success hover:cleen-text-white group-aria-disabled:cleen-bg-success group-aria-disabled:cleen-text-white","secondary-error":"cleen-border-error cleen-text-error hover:cleen-bg-error hover:cleen-text-white group-aria-disabled:cleen-bg-error group-aria-disabled:cleen-text-white",borderless:"cleen-border-0 cleen-text-foreground hover:cleen-bg-primary-100","borderless-blue":"cleen-border-0 cleen-text-blue-800 hover:cleen-bg-blue-dark-100","borderless-success":"cleen-border-0 cleen-text-success hover:cleen-bg-success-bg","borderless-error":"cleen-border-0 cleen-text-error hover:cleen-bg-error-bg",error:"cleen-text-white cleen-shadow-sm cleen-bg-error hover:cleen-bg-[color-mix(in_srgb,rgba(var(--cleen-error)),black_12%)]",success:"cleen-text-white cleen-shadow-sm cleen-bg-success hover:cleen-bg-[color-mix(in_srgb,rgba(var(--cleen-success)),black_12%)]",warning:"cleen-text-white cleen-shadow-sm cleen-bg-warning hover:cleen-bg-[color-mix(in_srgb,rgba(var(--cleen-warning)),black_12%)]",black:"cleen-text-white cleen-shadow-sm cleen-bg-black hover:cleen-bg-gray-modern-800",purple:"cleen-text-white cleen-shadow-sm cleen-bg-purple hover:cleen-bg-purple-800",indigo:"cleen-text-white cleen-shadow-sm cleen-bg-indigo hover:cleen-bg-indigo-800",yellow:"cleen-text-black cleen-shadow-sm cleen-bg-yellow hover:cleen-bg-yellow-500"},Q1={primary:"rgb(var(--cleen-primary-foreground))",borderless:"rgb(var(--cleen-foreground))","borderless-blue":"rgb(var(--cleen-blue))","borderless-success":"rgb(var(--cleen-success))","borderless-error":"rgb(var(--cleen-error))",secondary:"rgb(var(--cleen-foreground))","secondary-blue":"rgb(var(--cleen-blue))","secondary-success":"rgb(var(--cleen-success))","secondary-error":"rgb(var(--cleen-error))",error:"rgb(var(--cleen-white))",success:"rgb(var(--cleen-white))",warning:"rgb(var(--cleen-white))",black:"rgb(var(--cleen-white))",purple:"rgb(var(--cleen-white))",indigo:"rgb(var(--cleen-white))",yellow:"rgb(var(--cleen-black))"};import{cn as oo,ColorHelpers as rx}from"@cleen/ui-core";function xn(e,t,n){return Math.min(Math.max(e,n),t)}var ls=class extends Error{constructor(t){super(`Failed to parse color: "${t}"`)}},Sr=ls;function XC(e){if(typeof e!="string")throw new Sr(e);if(e.trim().toLowerCase()==="transparent")return[0,0,0,0];let t=e.trim();t=tx.test(e)?ZC(e):e;let n=QC.exec(t);if(n){let c=Array.from(n).slice(1);return[...c.slice(0,3).map(i=>parseInt(wr(i,2),16)),parseInt(wr(c[3]||"f",2),16)/255]}let o=JC.exec(t);if(o){let c=Array.from(o).slice(1);return[...c.slice(0,3).map(i=>parseInt(i,16)),parseInt(c[3]||"ff",16)/255]}let l=jC.exec(t);if(l){let c=Array.from(l).slice(1);return[...c.slice(0,3).map(i=>parseInt(i,10)),parseFloat(c[3]||"1")]}let a=ex.exec(t);if(a){let[c,i,d,s]=Array.from(a).slice(1).map(parseFloat);if(xn(0,100,i)!==i)throw new Sr(e);if(xn(0,100,d)!==d)throw new Sr(e);return[...ox(c,i,d),Number.isNaN(s)?1:s]}throw new Sr(e)}function KC(e){let t=5381,n=e.length;for(;n;)t=t*33^e.charCodeAt(--n);return(t>>>0)%2341}var J1=e=>parseInt(e.replace(/_/g,""),36),YC="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((e,t)=>{let n=J1(t.substring(0,3)),o=J1(t.substring(3)).toString(16),l="";for(let a=0;a<6-o.length;a++)l+="0";return e[n]=`${l}${o}`,e},{});function ZC(e){let t=e.toLowerCase().trim(),n=YC[KC(t)];if(!n)throw new Sr(e);return`#${n}`}var wr=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),QC=new RegExp(`^#${wr("([a-f0-9])",3)}([a-f0-9])?$`,"i"),JC=new RegExp(`^#${wr("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),jC=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${wr(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),ex=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,tx=/^[a-z]+$/i,j1=e=>Math.round(e*255),ox=(e,t,n)=>{let o=n/100;if(t===0)return[o,o,o].map(j1);let l=(e%360+360)%360/60,a=(1-Math.abs(2*o-1))*(t/100),c=a*(1-Math.abs(l%2-1)),i=0,d=0,s=0;l>=0&&l<1?(i=a,d=c):l>=1&&l<2?(i=c,d=a):l>=2&&l<3?(d=a,s=c):l>=3&&l<4?(d=c,s=a):l>=4&&l<5?(i=c,s=a):l>=5&&l<6&&(i=a,s=c);let p=o-a/2,g=i+p,m=d+p,y=s+p;return[g,m,y].map(j1)};function nx(e,t,n,o){return`rgba(${xn(0,255,e).toFixed()}, ${xn(0,255,t).toFixed()}, ${xn(0,255,n).toFixed()}, ${parseFloat(xn(0,1,o).toFixed(3))})`}function Mr(e,t){let[n,o,l,a]=XC(e);return nx(n,o,l,a-t)}import{forwardRef as ax,useMemo as lx}from"react";import{jsx as Pn,jsxs as eg}from"react/jsx-runtime";var fe=ax(function({header:t,footer:n,color:o,isGlass:l=!1,hoverable:a=!1,p:c,gap:i,radius:d=8,children:s,className:p,classNames:g,style:m,styles:y,...v},h){let{cardColor:b,backgroundColor:x,borderColor:C}=lx(()=>{let I=rx.getComputedColor(o);return I?{cardColor:I,backgroundColor:Mr(I,.9),borderColor:Mr(I,.8)}:{cardColor:I}},[o]);return Pn("div",{className:oo("cleen",p),style:m,ref:h,...v,children:eg("div",{className:oo("cleen-bg-background cleen-pt-6 cleen-border cleen-border-border cleen-flex cleen-flex-col cleen-gap-6 cleen-flex-grow cleen-transition-all cleen-duration-200",a&&"hover:cleen-border-neutral-300 hover:cleen-shadow-md",n?.content?"cleen-pb-3":"cleen-pb-6",g?.container),style:{...b&&{backgroundColor:x,borderColor:C,color:b},...l&&{backgroundImage:`linear-gradient(to right, rgba(var(--cleen-black), 0.03) 0%, rgba(255, 255, 255, 0) 5%),
|
|
2
|
-
linear-gradient(to bottom, rgba(var(--cleen-black), 0.03) 0%, rgba(255, 255, 255, 0) 10%)`},...c!==void 0&&{paddingBlock:c},...i!==void 0&&{gap:i},borderRadius:d,...y?.container},children:[(t?.content||t?.title)&&eg("div",{className:oo("cleen-px-6",g?.header?.content),style:{...b&&{color:b},...c!==void 0&&{paddingInline:c},...y?.header?.content},children:[t?.title&&Pn("div",{className:oo("cleen-text-xl cleen-font-bold cleen-text-foreground-emphasis",g?.header?.title),style:{...b&&{color:b},...y?.header?.title},children:t?.title}),t?.content]}),(t?.content||t?.title)&&t?.hasDivider&&Pn("hr",{className:oo("cleen-text-neutral-200",g?.header?.divider),style:{...b&&{color:C},...y?.header?.divider}}),s&&Pn("div",{className:oo("cleen-px-6",g?.childrenContainer),style:{...c!==void 0&&{paddingInline:c},...y?.childrenContainer},children:s}),n?.content&&n?.hasDivider&&Pn("hr",{className:oo("cleen-text-neutral-200",g?.footer?.divider),style:{...b&&{color:C},...y?.footer?.divider}}),n?.content&&Pn("div",{className:oo("cleen-px-6 -cleen-mt-3 cleen-text-foreground",g?.footer?.content),style:{...b&&{color:b},...c!==void 0&&{paddingInline:c},...y?.footer?.content},children:n.content})]})})});import{jsx as cx}from"react/jsx-runtime";function r({size:e=24,width:t,height:n,strokeWidth:o=1.5,isFilled:l=!1,children:a,...c}){return delete c.color1,delete c.color2,cx("svg",{xmlns:"http://www.w3.org/2000/svg",width:t??e,height:n??e,viewBox:"0 0 24 24",fill:l?"currentColor":"none",stroke:"currentColor",strokeWidth:l?0:o,strokeLinecap:"round",strokeLinejoin:"round",...c,children:a})}import{jsx as tg,jsxs as ix}from"react/jsx-runtime";var cs=e=>ix(r,{...e,children:[tg("path",{d:"M9 10.5l2 2l4 -4"}),tg("path",{d:"M18 7v14l-6 -4l-6 4v-14a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4z"})]});import{jsx as og}from"react/jsx-runtime";var is=e=>og(r,{isFilled:!0,...e,children:og("path",{d:"M14 2a5 5 0 0 1 5 5v14a1 1 0 0 1 -1.555 .832l-5.445 -3.63l-5.444 3.63a1 1 0 0 1 -1.55 -.72l-.006 -.112v-14a5 5 0 0 1 5 -5h4zM15.707 7.293a1 1 0 0 0 -1.32 -.083l-.094 .083l-3.293 3.292l-1.293 -1.292l-.094 -.083a1 1 0 0 0 -1.403 1.403l.083 .094l2 2l.094 .083a1 1 0 0 0 1.226 0l.094 -.083l4 -4l.083 -.094a1 1 0 0 0 -.083 -1.32z"})});import{jsx as ss,jsxs as sx}from"react/jsx-runtime";var ps=e=>sx(r,{...e,children:[ss("path",{d:"M12 17l-6 4v-14a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v5"}),ss("path",{d:"M16 19h6"}),ss("path",{d:"M19 16v6"})]});import{jsx as no,jsxs as px}from"react/jsx-runtime";var ds=e=>px(r,{...e,children:[no("path",{d:"M3 21l18 0"}),no("path",{d:"M9 8l1 0"}),no("path",{d:"M9 12l1 0"}),no("path",{d:"M9 16l1 0"}),no("path",{d:"M14 8l1 0"}),no("path",{d:"M14 12l1 0"}),no("path",{d:"M14 16l1 0"}),no("path",{d:"M5 21v-16a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v16"})]});import{jsx as ng,jsxs as dx}from"react/jsx-runtime";var ms=e=>dx(r,{...e,children:[ng("path",{d:"M10 4h4a1 1 0 0 1 1 1v10M12 20h-2a1 1 0 0 1 -1 -1v-14a1 1 0 0 1 1 -1"}),ng("path",{d:"M18.42 15.61a2.1 2.1 0 0 1 2.97 2.97l-3.39 3.42h-3v-3l3.42 -3.39"})]});import{jsx as Cl,jsxs as mx}from"react/jsx-runtime";var us=e=>mx(r,{...e,children:[Cl("path",{d:"M6 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),Cl("path",{d:"M4 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2"}),Cl("path",{d:"M16.32 3.27a6.5 6.5 0 0 1 0 7.46"}),Cl("path",{d:"M19.37 1.84a9 9 0 0 1 0 10.32"})]});import{jsx as kr,jsxs as ux}from"react/jsx-runtime";var fs=e=>ux(r,{viewBox:"0 0 48 48",...e,children:[kr("path",{opacity:"0.1",d:"M3 24a21 21 0 1 0 42 0a21 21 0 0 0 -42 0"}),kr("path",{opacity:"0.3",d:"M8 24a16 16 0 1 0 32 0a16 16 0 0 0 -32 0"}),kr("path",{d:"M13 24a11 11 0 1 0 22 0a11 11 0 0 0 -22 0"}),kr("path",{d:"M24 18v8"}),kr("path",{d:"M24 30h.01"})]});import{jsx as xl,jsxs as fx}from"react/jsx-runtime";var hs=e=>fx(r,{viewBox:"0 0 48 48",...e,children:[xl("path",{opacity:"0.1",d:"M3 24a21 21 0 1 0 42 0a21 21 0 0 0 -42 0"}),xl("path",{opacity:"0.3",d:"M8 24a16 16 0 1 0 32 0a16 16 0 0 0 -32 0"}),xl("path",{d:"M13 24a11 11 0 1 0 22 0a11 11 0 0 0 -22 0"}),xl("path",{d:"M18 24l4 4l8 -8"})]});import{jsx as gs,jsxs as hx}from"react/jsx-runtime";var To=e=>hx(r,{...e,children:[gs("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"}),gs("path",{d:"M12 8v4"}),gs("path",{d:"M12 16h.01"})]});import{jsx as rg}from"react/jsx-runtime";var vs=e=>rg(r,{isFilled:!0,...e,children:rg("path",{d:"M14.897 1a4 4 0 0 1 2.664 1.016l.165 .156l4.1 4.1a4 4 0 0 1 1.168 2.605l.006 .227v5.794a4 4 0 0 1 -1.016 2.664l-.156 .165l-4.1 4.1a4 4 0 0 1 -2.603 1.168l-.227 .006h-5.795a3.999 3.999 0 0 1 -2.664 -1.017l-.165 -.156l-4.1 -4.1a4 4 0 0 1 -1.168 -2.604l-.006 -.227v-5.794a4 4 0 0 1 1.016 -2.664l.156 -.165l4.1 -4.1a4 4 0 0 1 2.605 -1.168l.227 -.006h5.793zm-2.887 14l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007zm-.01 -8a1 1 0 0 0 -.993 .883l-.007 .117v4l.007 .117a1 1 0 0 0 1.986 0l.007 -.117v-4l-.007 -.117a1 1 0 0 0 -.993 -.883z"})});import{jsx as bs,jsxs as gx}from"react/jsx-runtime";var ys=e=>gx(r,{...e,children:[bs("path",{d:"M12 9v4"}),bs("path",{d:"M10.363 3.591l-8.106 13.534a1.914 1.914 0 0 0 1.636 2.871h16.214a1.914 1.914 0 0 0 1.636 -2.87l-8.106 -13.536a1.914 1.914 0 0 0 -3.274 0z"}),bs("path",{d:"M12 16h.01"})]});import{jsx as Br,jsxs as vx}from"react/jsx-runtime";var Is=e=>vx(r,{...e,children:[Br("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"}),Br("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"}),Br("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"}),Br("path",{d:"M14 7l6 0"}),Br("path",{d:"M17 4l0 6"})]});import{jsx as Cs,jsxs as bx}from"react/jsx-runtime";var xs=e=>bx(r,{...e,children:[Cs("path",{d:"M3 4m0 2a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v0a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2z"}),Cs("path",{d:"M5 8v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-10"}),Cs("path",{d:"M10 12l4 0"})]});import{jsx as Pl,jsxs as yx}from"react/jsx-runtime";var Ps=e=>yx(r,{...e,children:[Pl("path",{d:"M12 20l0 -10"}),Pl("path",{d:"M12 20l4 -4"}),Pl("path",{d:"M12 20l-4 -4"}),Pl("path",{d:"M4 4l16 0"})]});import{jsx as Sl,jsxs as Ix}from"react/jsx-runtime";var Ss=e=>Ix(r,{...e,children:[Sl("path",{d:"M4 12l10 0"}),Sl("path",{d:"M4 12l4 4"}),Sl("path",{d:"M4 12l4 -4"}),Sl("path",{d:"M20 4l0 16"})]});import{jsx as wl,jsxs as Cx}from"react/jsx-runtime";var ws=e=>Cx(r,{...e,children:[wl("path",{d:"M20 12l-10 0"}),wl("path",{d:"M20 12l-4 4"}),wl("path",{d:"M20 12l-4 -4"}),wl("path",{d:"M4 4l0 16"})]});import{jsx as Ml,jsxs as xx}from"react/jsx-runtime";var Ms=e=>xx(r,{...e,children:[Ml("path",{d:"M4 20l16 0"}),Ml("path",{d:"M12 14l0 -10"}),Ml("path",{d:"M12 14l4 -4"}),Ml("path",{d:"M12 14l-4 -4"})]});import{jsx as kl,jsxs as Px}from"react/jsx-runtime";var ks=e=>Px(r,{...e,children:[kl("path",{d:"M10 12l10 0"}),kl("path",{d:"M10 12l4 4"}),kl("path",{d:"M10 12l4 -4"}),kl("path",{d:"M4 4l0 16"})]});import{jsx as Bl,jsxs as Sx}from"react/jsx-runtime";var Bs=e=>Sx(r,{...e,children:[Bl("path",{d:"M14 12l-10 0"}),Bl("path",{d:"M14 12l-4 4"}),Bl("path",{d:"M14 12l-4 -4"}),Bl("path",{d:"M20 4l0 16"})]});import{jsx as Nl,jsxs as wx}from"react/jsx-runtime";var Ns=e=>wx(r,{...e,children:[Nl("path",{d:"M12 10l0 10"}),Nl("path",{d:"M12 10l4 4"}),Nl("path",{d:"M12 10l-4 4"}),Nl("path",{d:"M4 4l16 0"})]});import{jsx as Tl,jsxs as Mx}from"react/jsx-runtime";var Ts=e=>Mx(r,{...e,children:[Tl("path",{d:"M12 4l0 10"}),Tl("path",{d:"M12 4l4 4"}),Tl("path",{d:"M12 4l-4 4"}),Tl("path",{d:"M4 20l16 0"})]});import{jsx as Rs,jsxs as kx}from"react/jsx-runtime";var Ls=e=>kx(r,{...e,children:[Rs("path",{d:"M12 5l0 14"}),Rs("path",{d:"M18 13l-6 6"}),Rs("path",{d:"M6 13l6 6"})]});import{jsx as ag,jsxs as Bx}from"react/jsx-runtime";var Es=e=>Bx(r,{...e,children:[ag("path",{d:"M17 7l-10 10"}),ag("path",{d:"M16 17l-9 0l0 -9"})]});import{jsx as Ds,jsxs as Nx}from"react/jsx-runtime";var Fs=e=>Nx(r,{...e,children:[Ds("path",{d:"M12 5l0 14"}),Ds("path",{d:"M16 15l-4 4"}),Ds("path",{d:"M8 15l4 4"})]});import{jsx as lg,jsxs as Tx}from"react/jsx-runtime";var As=e=>Tx(r,{...e,children:[lg("path",{d:"M7 7l10 10"}),lg("path",{d:"M17 8l0 9l-9 0"})]});import{jsx as Os,jsxs as Rx}from"react/jsx-runtime";var _s=e=>Rx(r,{...e,children:[Os("path",{d:"M5 12l14 0"}),Os("path",{d:"M5 12l6 6"}),Os("path",{d:"M5 12l6 -6"})]});import{jsx as zs,jsxs as Lx}from"react/jsx-runtime";var Vs=e=>Lx(r,{...e,children:[zs("path",{d:"M5 12l14 0"}),zs("path",{d:"M5 12l4 4"}),zs("path",{d:"M5 12l4 -4"})]});import{jsx as Hs,jsxs as Ex}from"react/jsx-runtime";var Us=e=>Ex(r,{...e,children:[Hs("path",{d:"M5 12l14 0"}),Hs("path",{d:"M13 18l6 -6"}),Hs("path",{d:"M13 6l6 6"})]});import{jsx as Gs,jsxs as Dx}from"react/jsx-runtime";var $s=e=>Dx(r,{...e,children:[Gs("path",{d:"M5 12l14 0"}),Gs("path",{d:"M15 16l4 -4"}),Gs("path",{d:"M15 8l4 4"})]});import{jsx as Ws,jsxs as Fx}from"react/jsx-runtime";var qs=e=>Fx(r,{...e,children:[Ws("path",{d:"M12 5l0 14"}),Ws("path",{d:"M18 11l-6 -6"}),Ws("path",{d:"M6 11l6 -6"})]});import{jsx as cg,jsxs as Ax}from"react/jsx-runtime";var Xs=e=>Ax(r,{...e,children:[cg("path",{d:"M7 7l10 10"}),cg("path",{d:"M16 7l-9 0l0 9"})]});import{jsx as Ks,jsxs as Ox}from"react/jsx-runtime";var Ys=e=>Ox(r,{...e,children:[Ks("path",{d:"M12 5l0 14"}),Ks("path",{d:"M16 9l-4 -4"}),Ks("path",{d:"M8 9l4 -4"})]});import{jsx as ig,jsxs as _x}from"react/jsx-runtime";var Zs=e=>_x(r,{...e,children:[ig("path",{d:"M17 7l-10 10"}),ig("path",{d:"M8 7l9 0l0 9"})]});import{jsx as sg}from"react/jsx-runtime";var Qs=e=>sg(r,{...e,children:sg("path",{d:"M15 7l-6.5 6.5a1.5 1.5 0 0 0 3 3l6.5 -6.5a3 3 0 0 0 -6 -6l-6.5 6.5a4.5 4.5 0 0 0 9 9l6.5 -6.5"})});import{jsx as Rl,jsxs as zx}from"react/jsx-runtime";var Js=e=>zx(r,{...e,children:[Rl("path",{d:"M3 13a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v6a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z"}),Rl("path",{d:"M15 9a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v10a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z"}),Rl("path",{d:"M9 5a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v14a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z"}),Rl("path",{d:"M4 20h14"})]});import{jsx as Nr,jsxs as Vx}from"react/jsx-runtime";var js=e=>Vx(r,{...e,children:[Nr("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"}),Nr("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"}),Nr("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"}),Nr("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"}),Nr("path",{d:"M7 18.5h10"})]});import{jsx as pg,jsxs as Hx}from"react/jsx-runtime";var ep=e=>Hx(r,{...e,children:[pg("path",{d:"M10 5a2 2 0 1 1 4 0a7 7 0 0 1 4 6v3a4 4 0 0 0 2 3h-16a4 4 0 0 0 2 -3v-3a7 7 0 0 1 4 -6"}),pg("path",{d:"M9 17v1a3 3 0 0 0 6 0v-1"})]});import{jsx as dg,jsxs as Ux}from"react/jsx-runtime";var tp=e=>Ux(r,{...e,children:[dg("path",{d:"M7 5h6a3.5 3.5 0 0 1 0 7h-6z"}),dg("path",{d:"M13 12h1a3.5 3.5 0 0 1 0 7h-7v-7"})]});import{jsx as mg}from"react/jsx-runtime";var op=e=>mg(r,{...e,children:mg("path",{d:"M18 7v14l-6 -4l-6 4v-14a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4z"})});import{jsx as ug}from"react/jsx-runtime";var np=e=>ug(r,{isFilled:!0,...e,children:ug("path",{d:"M14 2a5 5 0 0 1 5 5v14a1 1 0 0 1 -1.555 .832l-5.445 -3.63l-5.444 3.63a1 1 0 0 1 -1.55 -.72l-.006 -.112v-14a5 5 0 0 1 5 -5h4z"})});import{jsx as fg,jsxs as Gx}from"react/jsx-runtime";var rp=e=>Gx(r,{...e,children:[fg("path",{d:"M12 17l-6 4v-14a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v8"}),fg("path",{d:"M16 19h6"})]});import{jsx as ap,jsxs as $x}from"react/jsx-runtime";var lp=e=>$x(r,{...e,children:[ap("path",{d:"M12 17l-6 4v-14a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v6.5"}),ap("path",{d:"M20.5 21.5l-5 -5"}),ap("path",{d:"M15.5 21.5l5 -5"})]});import{jsx as Tr,jsxs as Wx}from"react/jsx-runtime";var cp=e=>Wx(r,{...e,children:[Tr("path",{d:"M3 19a9 9 0 0 1 9 0a9 9 0 0 1 9 0"}),Tr("path",{d:"M3 6a9 9 0 0 1 9 0a9 9 0 0 1 9 0"}),Tr("path",{d:"M3 6l0 13"}),Tr("path",{d:"M12 6l0 13"}),Tr("path",{d:"M21 6l0 13"})]});import{jsx as Ll,jsxs as qx}from"react/jsx-runtime";var ip=e=>qx(r,{...e,children:[Ll("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"}),Ll("path",{d:"M9 13h-2"}),Ll("path",{d:"M13 10h-6"}),Ll("path",{d:"M11 7h-4"})]});import{jsx as sp,jsxs as Xx}from"react/jsx-runtime";var pp=e=>Xx(r,{...e,children:[sp("path",{d:"M3 3m0 2a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2z"}),sp("path",{d:"M10 8h4"}),sp("path",{d:"M12 8v8"})]});import{jsx as dp,jsxs as Kx}from"react/jsx-runtime";var mp=e=>Kx(r,{...e,children:[dp("path",{d:"M9 12l2 2l4 -4"}),dp("path",{d:"M6 19a2 2 0 0 1 -2 -2v-4l-1 -1l1 -1v-4a2 2 0 0 1 2 -2"}),dp("path",{d:"M18 19a2 2 0 0 0 2 -2v-4l1 -1l-1 -1v-4a2 2 0 0 0 -2 -2"})]});import{jsx as Rr,jsxs as Yx}from"react/jsx-runtime";var up=e=>Yx(r,{...e,children:[Rr("path",{d:"M15 12h.01"}),Rr("path",{d:"M12 12h.01"}),Rr("path",{d:"M9 12h.01"}),Rr("path",{d:"M6 19a2 2 0 0 1 -2 -2v-4l-1 -1l1 -1v-4a2 2 0 0 1 2 -2"}),Rr("path",{d:"M18 19a2 2 0 0 0 2 -2v-4l1 -1l-1 -1v-4a2 2 0 0 0 -2 -2"})]});import{jsx as Dt,jsxs as Zx}from"react/jsx-runtime";var fp=e=>Zx(r,{...e,children:[Dt("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"}),Dt("path",{d:"M4 8h16"}),Dt("path",{d:"M20 12h-16"}),Dt("path",{d:"M4 16h16"}),Dt("path",{d:"M9 4v4"}),Dt("path",{d:"M14 8v4"}),Dt("path",{d:"M8 12v4"}),Dt("path",{d:"M16 12v4"}),Dt("path",{d:"M11 16v4"})]});import{jsx as El,jsxs as Qx}from"react/jsx-runtime";var hp=e=>Qx(r,{...e,children:[El("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"}),El("path",{d:"M8 7v-2a2 2 0 0 1 2 -2h4a2 2 0 0 1 2 2v2"}),El("path",{d:"M12 12l0 .01"}),El("path",{d:"M3 13a20 20 0 0 0 18 0"})]});import{jsx as ro,jsxs as Jx}from"react/jsx-runtime";var gp=e=>Jx(r,{...e,children:[ro("path",{d:"M4 3m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z"}),ro("path",{d:"M8 7m0 1a1 1 0 0 1 1 -1h6a1 1 0 0 1 1 1v1a1 1 0 0 1 -1 1h-6a1 1 0 0 1 -1 -1z"}),ro("path",{d:"M8 14l0 .01"}),ro("path",{d:"M12 14l0 .01"}),ro("path",{d:"M16 14l0 .01"}),ro("path",{d:"M8 17l0 .01"}),ro("path",{d:"M12 17l0 .01"}),ro("path",{d:"M16 17l0 .01"})]});import{jsx as Sn,jsxs as jx}from"react/jsx-runtime";var Lr=e=>jx(r,{...e,children:[Sn("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"}),Sn("path",{d:"M16 3v4"}),Sn("path",{d:"M8 3v4"}),Sn("path",{d:"M4 11h16"}),Sn("path",{d:"M11 15h1"}),Sn("path",{d:"M12 15v3"})]});import{jsx as wn,jsxs as eP}from"react/jsx-runtime";var vp=e=>eP(r,{...e,children:[wn("path",{d:"M15 15m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),wn("path",{d:"M13 17.5v4.5l2 -1.5l2 1.5v-4.5"}),wn("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"}),wn("path",{d:"M6 9l12 0"}),wn("path",{d:"M6 12l3 0"}),wn("path",{d:"M6 15l2 0"})]});import{jsx as hg}from"react/jsx-runtime";var Ft=e=>hg(r,{...e,children:hg("path",{d:"M5 12l5 5l10 -10"})});import{jsx as gg,jsxs as tP}from"react/jsx-runtime";var Ro=e=>tP(r,{...e,children:[gg("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),gg("path",{d:"M9 12l2 2l4 -4"})]});import{jsx as vg,jsxs as oP}from"react/jsx-runtime";var bp=e=>oP(r,{...e,children:[vg("path",{d:"M16.8 4.3a9 9 0 1 0 4.3 6.1"}),vg("path",{d:"M8.5 12l3 3l9.5 -10"})]});import{jsx as bg}from"react/jsx-runtime";var yp=e=>bg(r,{isFilled:!0,...e,children:bg("path",{d:"M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-1.293 5.953a1 1 0 0 0 -1.32 -.083l-.094 .083l-3.293 3.292l-1.293 -1.292l-.094 -.083a1 1 0 0 0 -1.403 1.403l.083 .094l2 2l.094 .083a1 1 0 0 0 1.226 0l.094 -.083l4 -4l.083 -.094a1 1 0 0 0 -.083 -1.32z"})});import{jsx as yg,jsxs as nP}from"react/jsx-runtime";var Ip=e=>nP(r,{...e,children:[yg("path",{d:"M5 7.2a2.2 2.2 0 0 1 2.2 -2.2h1a2.2 2.2 0 0 0 1.55 -.64l.7 -.7a2.2 2.2 0 0 1 3.12 0l.7 .7c.412 .41 .97 .64 1.55 .64h1a2.2 2.2 0 0 1 2.2 2.2v1c0 .58 .23 1.138 .64 1.55l.7 .7a2.2 2.2 0 0 1 0 3.12l-.7 .7a2.2 2.2 0 0 0 -.64 1.55v1a2.2 2.2 0 0 1 -2.2 2.2h-1a2.2 2.2 0 0 0 -1.55 .64l-.7 .7a2.2 2.2 0 0 1 -3.12 0l-.7 -.7a2.2 2.2 0 0 0 -1.55 -.64h-1a2.2 2.2 0 0 1 -2.2 -2.2v-1a2.2 2.2 0 0 0 -.64 -1.55l-.7 -.7a2.2 2.2 0 0 1 0 -3.12l.7 -.7a2.2 2.2 0 0 0 .64 -1.55v-1"}),yg("path",{d:"M9 12l2 2l4 -4"})]});import{jsx as Ig}from"react/jsx-runtime";var Cp=e=>Ig(r,{isFilled:!0,...e,children:Ig("path",{d:"M12.01 2.011a3.2 3.2 0 0 1 2.113 .797l.154 .145l.698 .698a1.2 1.2 0 0 0 .71 .341l.135 .008h1a3.2 3.2 0 0 1 3.195 3.018l.005 .182v1c0 .27 .092 .533 .258 .743l.09 .1l.697 .698a3.2 3.2 0 0 1 .147 4.382l-.145 .154l-.698 .698a1.2 1.2 0 0 0 -.341 .71l-.008 .135v1a3.2 3.2 0 0 1 -3.018 3.195l-.182 .005h-1a1.2 1.2 0 0 0 -.743 .258l-.1 .09l-.698 .697a3.2 3.2 0 0 1 -4.382 .147l-.154 -.145l-.698 -.698a1.2 1.2 0 0 0 -.71 -.341l-.135 -.008h-1a3.2 3.2 0 0 1 -3.195 -3.018l-.005 -.182v-1a1.2 1.2 0 0 0 -.258 -.743l-.09 -.1l-.697 -.698a3.2 3.2 0 0 1 -.147 -4.382l.145 -.154l.698 -.698a1.2 1.2 0 0 0 .341 -.71l.008 -.135v-1l.005 -.182a3.2 3.2 0 0 1 3.013 -3.013l.182 -.005h1a1.2 1.2 0 0 0 .743 -.258l.1 -.09l.698 -.697a3.2 3.2 0 0 1 2.269 -.944zm3.697 7.282a1 1 0 0 0 -1.414 0l-3.293 3.292l-1.293 -1.292l-.094 -.083a1 1 0 0 0 -1.32 1.497l2 2l.094 .083a1 1 0 0 0 1.32 -.083l4 -4l.083 -.094a1 1 0 0 0 -.083 -1.32z"})});import{jsx as Cg}from"react/jsx-runtime";var Er=e=>Cg(r,{...e,children:Cg("path",{d:"M6 9l6 6l6 -6"})});import{jsx as xg,jsxs as rP}from"react/jsx-runtime";var xp=e=>rP(r,{...e,children:[xg("path",{d:"M7 7l5 5l5 -5"}),xg("path",{d:"M7 13l5 5l5 -5"})]});import{jsx as Pg}from"react/jsx-runtime";var Pp=e=>Pg(r,{...e,children:Pg("path",{d:"M8 8v8h8"})});import{jsx as Sg,jsxs as aP}from"react/jsx-runtime";var Sp=e=>aP(r,{...e,children:[Sg("path",{d:"M11 5v8h8"}),Sg("path",{d:"M7 9v8h8"})]});import{jsx as wg}from"react/jsx-runtime";var wp=e=>wg(r,{...e,children:wg("path",{d:"M16 8v8h-8"})});import{jsx as Mg,jsxs as lP}from"react/jsx-runtime";var Mp=e=>lP(r,{...e,children:[Mg("path",{d:"M13 5v8h-8"}),Mg("path",{d:"M17 9v8h-8"})]});import{jsx as kg}from"react/jsx-runtime";var At=e=>kg(r,{...e,children:kg("path",{d:"M15 6l-6 6l6 6"})});import{jsx as Bg,jsxs as cP}from"react/jsx-runtime";var kp=e=>cP(r,{...e,children:[Bg("path",{d:"M11 7l-5 5l5 5"}),Bg("path",{d:"M17 7l-5 5l5 5"})]});import{jsx as Ng}from"react/jsx-runtime";var mt=e=>Ng(r,{...e,children:Ng("path",{d:"M9 6l6 6l-6 6"})});import{jsx as Tg,jsxs as iP}from"react/jsx-runtime";var Dr=e=>iP(r,{...e,children:[Tg("path",{d:"M7 7l5 5l-5 5"}),Tg("path",{d:"M13 7l5 5l-5 5"})]});import{jsx as Rg,jsxs as sP}from"react/jsx-runtime";var Bp=e=>sP(r,{...e,children:[Rg("path",{d:"M8 9l4 -4l4 4"}),Rg("path",{d:"M16 15l-4 4l-4 -4"})]});import{jsx as Lg}from"react/jsx-runtime";var Ot=e=>Lg(r,{...e,children:Lg("path",{d:"M6 15l6 -6l6 6"})});import{jsx as Eg,jsxs as pP}from"react/jsx-runtime";var Np=e=>pP(r,{...e,children:[Eg("path",{d:"M7 11l5 -5l5 5"}),Eg("path",{d:"M7 17l5 -5l5 5"})]});import{jsx as Dg}from"react/jsx-runtime";var Tp=e=>Dg(r,{...e,children:Dg("path",{d:"M8 16v-8h8"})});import{jsx as Fg,jsxs as dP}from"react/jsx-runtime";var Rp=e=>dP(r,{...e,children:[Fg("path",{d:"M7 15v-8h8"}),Fg("path",{d:"M11 19v-8h8"})]});import{jsx as Ag}from"react/jsx-runtime";var Lp=e=>Ag(r,{...e,children:Ag("path",{d:"M8 8h8v8"})});import{jsx as Og,jsxs as mP}from"react/jsx-runtime";var Ep=e=>mP(r,{...e,children:[Og("path",{d:"M9 7h8v8"}),Og("path",{d:"M5 11h8v8"})]});import{jsx as Mn,jsxs as uP}from"react/jsx-runtime";var Dp=e=>uP(r,{...e,children:[Mn("path",{d:"M3 12l3 0"}),Mn("path",{d:"M12 3l0 3"}),Mn("path",{d:"M7.8 7.8l-2.2 -2.2"}),Mn("path",{d:"M16.2 7.8l2.2 -2.2"}),Mn("path",{d:"M7.8 16.2l-2.2 2.2"}),Mn("path",{d:"M12 12l9 3l-4 2l-2 4l-3 -9"})]});import{jsx as _g,jsxs as fP}from"react/jsx-runtime";var Fp=e=>fP(r,{...e,children:[_g("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"}),_g("path",{d:"M12 7v5l3 3"})]});import{jsx as Dl,jsxs as hP}from"react/jsx-runtime";var Ap=e=>hP(r,{...e,children:[Dl("path",{d:"M12 7v5l2 2"}),Dl("path",{d:"M16.5 20.5l2 -1.5l-2 -1.5z"}),Dl("path",{d:"M19 20.5l2 -1.5l-2 -1.5z"}),Dl("path",{d:"M13.017 20.943a9 9 0 1 1 7.831 -7.292"})]});import{jsx as Op,jsxs as gP}from"react/jsx-runtime";var _p=e=>gP(r,{...e,children:[Op("path",{d:"M12 7v5l2 2"}),Op("path",{d:"M17 22l5 -3l-5 -3z"}),Op("path",{d:"M13.017 20.943a9 9 0 1 1 7.831 -7.292"})]});import{jsx as zg,jsxs as vP}from"react/jsx-runtime";var zp=e=>vP(r,{...e,children:[zg("path",{d:"M12 8l0 4l2 2"}),zg("path",{d:"M3.05 13a9 9 0 1 0 .5 -4m-.5 -5v5h5"})]});import{jsx as Fr,jsxs as bP}from"react/jsx-runtime";var Vp=e=>bP(r,{...e,children:[Fr("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),Fr("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"}),Fr("path",{d:"M11 14h6"}),Fr("path",{d:"M14 11v6"}),Fr("path",{d:"M4.012 16.737a2 2 0 0 1 -1.012 -1.737v-10c0 -1.1 .9 -2 2 -2h10c.75 0 1.158 .385 1.5 1"})]});import{jsx as Hp,jsxs as yP}from"react/jsx-runtime";var Up=e=>yP(r,{...e,children:[Hp("path",{d:"M7 8l-4 4l4 4"}),Hp("path",{d:"M17 8l4 4l-4 4"}),Hp("path",{d:"M14 4l-4 16"})]});import{jsx as kn,jsxs as IP}from"react/jsx-runtime";var Gp=e=>IP(r,{...e,children:[kn("path",{d:"M4 8h16"}),kn("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"}),kn("path",{d:"M8 4v4"}),kn("path",{d:"M9 12l-2 2l2 2"}),kn("path",{d:"M15 12l2 2l-2 2"}),kn("path",{d:"M13 11l-2 6"})]});import{jsx as $p,jsxs as CP}from"react/jsx-runtime";var Wp=e=>CP(r,{...e,children:[$p("path",{d:"M10 14l-2 -2l2 -2"}),$p("path",{d:"M14 10l2 2l-2 2"}),$p("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"})]});import{jsx as qp,jsxs as xP}from"react/jsx-runtime";var Xp=e=>xP(r,{...e,children:[qp("path",{d:"M12 7m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"}),qp("path",{d:"M6.5 17m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"}),qp("path",{d:"M17.5 17m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"})]});import{jsx as Vg,jsxs as PP}from"react/jsx-runtime";var Kp=e=>PP(r,{...e,children:[Vg("path",{d:"M7 7m0 2.667a2.667 2.667 0 0 1 2.667 -2.667h8.666a2.667 2.667 0 0 1 2.667 2.667v8.666a2.667 2.667 0 0 1 -2.667 2.667h-8.666a2.667 2.667 0 0 1 -2.667 -2.667z"}),Vg("path",{d:"M4.012 16.737a2.005 2.005 0 0 1 -1.012 -1.737v-10c0 -1.1 .9 -2 2 -2h10c.75 0 1.158 .385 1.5 1"})]});import{jsx as Hg,jsxs as SP}from"react/jsx-runtime";var Yp=e=>SP(r,{...e,children:[Hg("path",{d:"M8 10a2 2 0 0 1 2 -2h9a2 2 0 0 1 2 2v9a2 2 0 0 1 -2 2h-9a2 2 0 0 1 -2 -2z"}),Hg("path",{d:"M16 8v-3a2 2 0 0 0 -2 -2h-9a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h3"})]});import{jsx as Zp,jsxs as wP}from"react/jsx-runtime";var Qp=e=>wP(r,{...e,children:[Zp("path",{d:"M7 9.667a2.667 2.667 0 0 1 2.667 -2.667h8.666a2.667 2.667 0 0 1 2.667 2.667v8.666a2.667 2.667 0 0 1 -2.667 2.667h-8.666a2.667 2.667 0 0 1 -2.667 -2.667z"}),Zp("path",{d:"M4.012 16.737a2 2 0 0 1 -1.012 -1.737v-10c0 -1.1 .9 -2 2 -2h10c.75 0 1.158 .385 1.5 1"}),Zp("path",{d:"M11 14l2 2l4 -4"})]});import{jsx as Fl,jsxs as MP}from"react/jsx-runtime";var Jp=e=>MP(r,{...e,children:[Fl("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"}),Fl("path",{d:"M3 10l18 0"}),Fl("path",{d:"M7 15l.01 0"}),Fl("path",{d:"M11 15l2 0"})]});import{jsx as Al,jsxs as kP}from"react/jsx-runtime";var jp=e=>kP(r,{...e,children:[Al("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"}),Al("path",{d:"M12 22v-10"}),Al("path",{d:"M12 12l8.73 -5.04"}),Al("path",{d:"M3.27 6.96l8.73 5.04"})]});import{jsx as tt,jsxs as BP}from"react/jsx-runtime";var ed=e=>BP(r,{...e,children:[tt("path",{d:"M6 17.6l-2 -1.1v-2.5"}),tt("path",{d:"M4 10v-2.5l2 -1.1"}),tt("path",{d:"M10 4.1l2 -1.1l2 1.1"}),tt("path",{d:"M18 6.4l2 1.1v2.5"}),tt("path",{d:"M20 14v2.5l-2 1.12"}),tt("path",{d:"M14 19.9l-2 1.1l-2 -1.1"}),tt("path",{d:"M12 12l2 -1.1"}),tt("path",{d:"M18 8.6l2 -1.1"}),tt("path",{d:"M12 12l0 2.5"}),tt("path",{d:"M12 18.5l0 2.5"}),tt("path",{d:"M12 12l-2 -1.12"}),tt("path",{d:"M6 8.6l-2 -1.1"})]});import{jsx as Ug,jsxs as NP}from"react/jsx-runtime";var Ar=e=>NP(r,{...e,children:[Ug("path",{d:"M3 5a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v5.5M10.5 20h-5.5a2 2 0 0 1 -2 -2v-13"}),Ug("path",{d:"M18 17l2.822 -1.101c.8125 -.317 .769 -1.481 -.065 -1.7365l-7.1595 -2.191c-.705 -.215 -1.365 .444 -1.149 1.149l2.191 7.159c.255 .834 1.42 .877 1.7365 .065l1.101 -2.822a.92 .92 0 0 1 .5225 -.5225"})]});import{jsx as Lo,jsxs as TP}from"react/jsx-runtime";var td=e=>TP(r,{...e,children:[Lo("path",{d:"M5 2h5v4h-5z"}),Lo("path",{d:"M15 10h5v4h-5z"}),Lo("path",{d:"M5 18h5v4h-5z"}),Lo("path",{d:"M5 10h5v4h-5z"}),Lo("path",{d:"M10 12h5"}),Lo("path",{d:"M7.5 6v4"}),Lo("path",{d:"M7.5 14v4"})]});import{jsx as ot,jsxs as RP}from"react/jsx-runtime";var od=e=>RP(r,{...e,children:[ot("path",{d:"M12 5m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),ot("path",{d:"M8 12m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),ot("path",{d:"M12 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),ot("path",{d:"M20 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),ot("path",{d:"M4 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),ot("path",{d:"M16 12m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),ot("path",{d:"M5 17l2 -3"}),ot("path",{d:"M9 10l2 -3"}),ot("path",{d:"M13 7l2 3"}),ot("path",{d:"M17 14l2 3"}),ot("path",{d:"M15 14l-2 3"}),ot("path",{d:"M9 14l2 3"})]});import{jsx as Or,jsxs as LP}from"react/jsx-runtime";var nd=e=>LP(r,{...e,children:[Or("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"}),Or("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"}),Or("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"}),Or("path",{d:"M6 15v-1a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v1"}),Or("path",{d:"M12 9l0 3"})]});import{jsx as rd,jsxs as EP}from"react/jsx-runtime";var ad=e=>EP(r,{...e,children:[rd("path",{d:"M4 4l16 0"}),rd("path",{d:"M4 20l16 0"}),rd("path",{d:"M6 9m0 2a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v2a2 2 0 0 1 -2 2h-8a2 2 0 0 1 -2 -2z"})]});import{jsx as Gg,jsxs as DP}from"react/jsx-runtime";var ld=e=>DP(r,{...e,children:[Gg("path",{d:"M16.7 8a3 3 0 0 0 -2.7 -2h-4a3 3 0 0 0 0 6h4a3 3 0 0 1 0 6h-4a3 3 0 0 1 -2.7 -2"}),Gg("path",{d:"M12 3v3m0 12v3"})]});import{jsx as cd,jsxs as FP}from"react/jsx-runtime";var id=e=>FP(r,{...e,children:[cd("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),cd("path",{d:"M14.8 9a2 2 0 0 0 -1.8 -1h-2a2 2 0 1 0 0 4h2a2 2 0 1 1 0 4h-2a2 2 0 0 1 -1.8 -1"}),cd("path",{d:"M12 7v10"})]});import{jsx as $g}from"react/jsx-runtime";var sd=e=>$g(r,{...e,children:$g("path",{d:"M12 12m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"})});import{jsx as Wg}from"react/jsx-runtime";var pd=e=>Wg(r,{isFilled:!0,...e,children:Wg("path",{d:"M12 7a5 5 0 1 1 -4.995 5.217l-.005 -.217l.005 -.217a5 5 0 0 1 4.995 -4.783z"})});import{jsx as _t,jsxs as AP}from"react/jsx-runtime";var dd=e=>AP(r,{...e,children:[_t("path",{d:"M5 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),_t("path",{d:"M12 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),_t("path",{d:"M19 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),_t("path",{d:"M5 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),_t("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),_t("path",{d:"M19 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),_t("path",{d:"M5 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),_t("path",{d:"M12 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),_t("path",{d:"M19 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]});import{jsx as md,jsxs as OP}from"react/jsx-runtime";var ud=e=>OP(r,{...e,children:[md("path",{d:"M5 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),md("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),md("path",{d:"M19 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]});import{jsx as fd,jsxs as _P}from"react/jsx-runtime";var Bn=e=>_P(r,{...e,children:[fd("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),fd("path",{d:"M12 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),fd("path",{d:"M12 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]});import{jsx as hd,jsxs as zP}from"react/jsx-runtime";var gd=e=>zP(r,{...e,children:[hd("path",{d:"M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2"}),hd("path",{d:"M7 11l5 5l5 -5"}),hd("path",{d:"M12 4l0 12"})]});import{jsx as qg,jsxs as VP}from"react/jsx-runtime";var vd=e=>VP(r,{...e,children:[qg("path",{d:"M4 20h4l10.5 -10.5a2.828 2.828 0 1 0 -4 -4l-10.5 10.5v4"}),qg("path",{d:"M13.5 6.5l4 4"})]});import{jsx as bd,jsxs as HP}from"react/jsx-runtime";var yd=e=>HP(r,{...e,children:[bd("path",{d:"M7 7h-1a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2 -2v-1"}),bd("path",{d:"M20.385 6.585a2.1 2.1 0 0 0 -2.97 -2.97l-8.415 8.385v3h3l8.385 -8.415z"}),bd("path",{d:"M16 5l3 3"})]});import{jsx as ao,jsxs as UP}from"react/jsx-runtime";var Id=e=>UP(r,{...e,children:[ao("path",{d:"M16 4l4 0l0 4"}),ao("path",{d:"M14 10l6 -6"}),ao("path",{d:"M8 20l-4 0l0 -4"}),ao("path",{d:"M4 20l6 -6"}),ao("path",{d:"M16 20l4 0l0 -4"}),ao("path",{d:"M14 14l6 6"}),ao("path",{d:"M8 4l-4 0l0 4"}),ao("path",{d:"M4 4l6 6"})]});import{jsx as Cd,jsxs as GP}from"react/jsx-runtime";var xd=e=>GP(r,{...e,children:[Cd("path",{d:"M12 6h-6a2 2 0 0 0 -2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-6"}),Cd("path",{d:"M11 13l9 -9"}),Cd("path",{d:"M15 4h5v5"})]});import{jsx as Pd,jsxs as $P}from"react/jsx-runtime";var Sd=e=>$P(r,{...e,children:[Pd("path",{d:"M3 5a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14z"}),Pd("path",{d:"M15 9l-6 6"}),Pd("path",{d:"M10 9l5 0l0 5"})]});import{jsx as Xg,jsxs as WP}from"react/jsx-runtime";var wd=e=>WP(r,{...e,children:[Xg("path",{d:"M10 12a2 2 0 1 0 4 0a2 2 0 0 0 -4 0"}),Xg("path",{d:"M21 12c-2.4 4 -5.4 6 -9 6c-3.6 0 -6.6 -2 -9 -6c2.4 -4 5.4 -6 9 -6c3.6 0 6.6 2 9 6"})]});import{jsx as Md,jsxs as qP}from"react/jsx-runtime";var kd=e=>qP(r,{...e,children:[Md("path",{d:"M10.585 10.587a2 2 0 0 0 2.829 2.828"}),Md("path",{d:"M16.681 16.673a8.717 8.717 0 0 1 -4.681 1.327c-3.6 0 -6.6 -2 -9 -6c1.272 -2.12 2.712 -3.678 4.32 -4.674m2.86 -1.146a9.055 9.055 0 0 1 1.82 -.18c3.6 0 6.6 2 9 6c-.666 1.11 -1.379 2.067 -2.138 2.87"}),Md("path",{d:"M3 3l18 18"})]});import{jsx as _r,jsxs as XP}from"react/jsx-runtime";var Bd=e=>XP(r,{...e,children:[_r("path",{d:"M21 9c-2.4 2.667 -5.4 4 -9 4c-3.6 0 -6.6 -1.333 -9 -4"}),_r("path",{d:"M3 15l2.5 -3.8"}),_r("path",{d:"M21 14.976l-2.492 -3.776"}),_r("path",{d:"M9 17l.5 -4"}),_r("path",{d:"M15 17l-.5 -4"})]});import{jsx as Ol,jsxs as KP}from"react/jsx-runtime";var Nd=e=>KP(r,{...e,children:[Ol("path",{d:"M12 21a9 9 0 1 1 0 -18a9 9 0 0 1 0 18z"}),Ol("path",{d:"M8 9l2 1"}),Ol("path",{d:"M16 9l-2 1"}),Ol("path",{d:"M14.5 16.05a3.5 3.5 0 0 0 -5 0"})]});import{jsx as Nn,jsxs as YP}from"react/jsx-runtime";var Td=e=>YP(r,{...e,children:[Nn("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),Nn("path",{d:"M7 8.5l3 3"}),Nn("path",{d:"M7 11.5l3 -3"}),Nn("path",{d:"M14 8.5l3 3"}),Nn("path",{d:"M14 11.5l3 -3"}),Nn("path",{d:"M9.5 15a3.5 3.5 0 0 0 5 0"})]});import{jsx as _l,jsxs as ZP}from"react/jsx-runtime";var Rd=e=>ZP(r,{...e,children:[_l("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),_l("path",{d:"M9 10l.01 0"}),_l("path",{d:"M15 10l.01 0"}),_l("path",{d:"M9.5 15a3.5 3.5 0 0 0 5 0"})]});import{jsx as Kg,jsxs as QP}from"react/jsx-runtime";var Eo=e=>QP(r,{...e,children:[Kg("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),Kg("path",{d:"M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z"})]});import{jsx as Ld,jsxs as JP}from"react/jsx-runtime";var Ed=e=>JP(r,{...e,children:[Ld("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),Ld("path",{d:"M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z"}),Ld("path",{d:"M9 15l2 2l4 -4"})]});import{jsx as zr,jsxs as jP}from"react/jsx-runtime";var Vr=e=>jP(r,{...e,children:[zr("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),zr("path",{d:"M5 12v-7a2 2 0 0 1 2 -2h7l5 5v4"}),zr("path",{d:"M7 16.5a1.5 1.5 0 0 0 -3 0v3a1.5 1.5 0 0 0 3 0"}),zr("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"}),zr("path",{d:"M16 15l2 6l2 -6"})]});import{jsx as zl,jsxs as eS}from"react/jsx-runtime";var Dd=e=>eS(r,{...e,children:[zl("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),zl("path",{d:"M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z"}),zl("path",{d:"M12 17v-6"}),zl("path",{d:"M9.5 14.5l2.5 2.5l2.5 -2.5"})]});import{jsx as Tn,jsxs as tS}from"react/jsx-runtime";var Hr=e=>tS(r,{...e,children:[Tn("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),Tn("path",{d:"M5 12v-8a2 2 0 0 1 2 -2h7l5 5v5"}),Tn("path",{d:"M4 15.125h2.5v4.5a1.25 1.25 0 0 1 -2.5 0v-.5"}),Tn("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"}),Tn("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"}),Tn("path",{d:"M17.5 20.875v-5.75l2.5 5.75v-5.75"})]});import{jsx as Vl,jsxs as oS}from"react/jsx-runtime";var Fd=e=>oS(r,{...e,children:[Vl("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),Vl("path",{d:"M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z"}),Vl("path",{d:"M9 17h6"}),Vl("path",{d:"M9 13h6"})]});import{jsx as Hl,jsxs as nS}from"react/jsx-runtime";var nt=e=>nS(r,{...e,children:[Hl("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),Hl("path",{d:"M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z"}),Hl("path",{d:"M11 16m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Hl("path",{d:"M12 16l0 -5l2 1"})]});import{jsx as Rn,jsxs as rS}from"react/jsx-runtime";var Do=e=>rS(r,{...e,children:[Rn("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),Rn("path",{d:"M5 12v-7a2 2 0 0 1 2 -2h7l5 5v4"}),Rn("path",{d:"M5 18h1.5a1.5 1.5 0 0 0 0 -3h-1.5v6"}),Rn("path",{d:"M17 18h2"}),Rn("path",{d:"M20 15h-3v6"}),Rn("path",{d:"M11 15v6h1a2 2 0 0 0 2 -2v-2a2 2 0 0 0 -2 -2h-1z"})]});import{jsx as Ad,jsxs as aS}from"react/jsx-runtime";var Od=e=>aS(r,{...e,children:[Ad("path",{d:"M15 3v4a1 1 0 0 0 1 1h4"}),Ad("path",{d:"M18 17h-7a2 2 0 0 1 -2 -2v-10a2 2 0 0 1 2 -2h4l5 5v7a2 2 0 0 1 -2 2z"}),Ad("path",{d:"M16 17v2a2 2 0 0 1 -2 2h-7a2 2 0 0 1 -2 -2v-10a2 2 0 0 1 2 -2h2"})]});import{jsx as Ur,jsxs as lS}from"react/jsx-runtime";var Gr=e=>lS(r,{...e,children:[Ur("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),Ur("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"}),Ur("path",{d:"M8 11h8v7h-8z"}),Ur("path",{d:"M8 15h8"}),Ur("path",{d:"M11 11v7"})]});import{jsx as $r,jsxs as cS}from"react/jsx-runtime";var zt=e=>cS(r,{...e,children:[$r("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),$r("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"}),$r("path",{d:"M9 9l1 0"}),$r("path",{d:"M9 13l6 0"}),$r("path",{d:"M9 17l6 0"})]});import{jsx as Ul,jsxs as iS}from"react/jsx-runtime";var _d=e=>iS(r,{...e,children:[Ul("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),Ul("path",{d:"M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z"}),Ul("path",{d:"M12 11v6"}),Ul("path",{d:"M9.5 13.5l2.5 -2.5l2.5 2.5"})]});import{jsx as Ln,jsxs as sS}from"react/jsx-runtime";var Wr=e=>sS(r,{...e,children:[Ln("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),Ln("path",{d:"M5 12v-7a2 2 0 0 1 2 -2h7l5 5v4"}),Ln("path",{d:"M4 15l4 6"}),Ln("path",{d:"M4 21l4 -6"}),Ln("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"}),Ln("path",{d:"M11 15v6h3"})]});import{jsx as lo,jsxs as pS}from"react/jsx-runtime";var qr=e=>pS(r,{...e,children:[lo("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),lo("path",{d:"M5 13v-8a2 2 0 0 1 2 -2h7l5 5v5"}),lo("path",{d:"M4 16l3 5"}),lo("path",{d:"M4 21l3 -5"}),lo("path",{d:"M8.5 16v5h2"}),lo("path",{d:"M12 20.25c0 .414 .336 .75 .75 .75h1.25a1 1 0 0 0 1 -1v-0.5a1 1 0 0 0 -1 -1h-1a1 1 0 0 1 -1 -1v-0.5a1 1 0 0 1 1 -1h1.25a.75 .75 0 0 1 .75 .75"}),lo("path",{d:"M16.5 16l3 5"}),lo("path",{d:"M16.5 21l3 -5"})]});import{jsx as co,jsxs as dS}from"react/jsx-runtime";var yt=e=>dS(r,{...e,children:[co("path",{d:"M6 20.735a2 2 0 0 1 -1 -1.735v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2h-1"}),co("path",{d:"M11 17a2 2 0 0 1 2 2v2a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1v-2a2 2 0 0 1 2 -2z"}),co("path",{d:"M11 5l-1 0"}),co("path",{d:"M13 7l-1 0"}),co("path",{d:"M11 9l-1 0"}),co("path",{d:"M13 11l-1 0"}),co("path",{d:"M11 13l-1 0"}),co("path",{d:"M13 15l-1 0"})]});import{jsx as Yg}from"react/jsx-runtime";var zd=e=>Yg(r,{...e,children:Yg("path",{d:"M4 4h16v2.172a2 2 0 0 1 -.586 1.414l-4.414 4.414v7l-6 2v-8.5l-4.48 -4.928a2 2 0 0 1 -.52 -1.345v-2.227z"})});import{jsx as Vd,jsxs as mS}from"react/jsx-runtime";var Xr=e=>mS(r,{...e,children:[Vd("path",{d:"M4 6h16"}),Vd("path",{d:"M6 12h12"}),Vd("path",{d:"M9 18h6"})]});import{jsx as Zg,jsxs as uS}from"react/jsx-runtime";var Hd=e=>uS(r,{...e,children:[Zg("path",{d:"M5 5a5 5 0 0 1 7 0a5 5 0 0 0 7 0v9a5 5 0 0 1 -7 0a5 5 0 0 0 -7 0v-9z"}),Zg("path",{d:"M5 21v-7"})]});import{jsx as Qg}from"react/jsx-runtime";var Ud=e=>Qg(r,{...e,children:Qg("path",{d:"M5 14h14v-9h-14v16"})});import{jsx as Jg}from"react/jsx-runtime";var Gd=e=>Jg(r,{isFilled:!0,...e,children:Jg("path",{d:"M4 5a1 1 0 0 1 .3 -.714a6 6 0 0 1 8.213 -.176l.351 .328a4 4 0 0 0 5.272 0l.249 -.227c.61 -.483 1.527 -.097 1.61 .676l.005 .113v9a1 1 0 0 1 -.3 .714a6 6 0 0 1 -8.213 .176l-.351 -.328a4 4 0 0 0 -5.136 -.114v6.552a1 1 0 0 1 -1.993 .117l-.007 -.117v-16z"})});import{jsx as Kr,jsxs as fS}from"react/jsx-runtime";var $d=e=>fS(r,{...e,children:[Kr("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Kr("path",{d:"M4 8v-2a2 2 0 0 1 2 -2h2"}),Kr("path",{d:"M4 16v2a2 2 0 0 0 2 2h2"}),Kr("path",{d:"M16 4h2a2 2 0 0 1 2 2v2"}),Kr("path",{d:"M16 20h2a2 2 0 0 0 2 -2v-2"})]});import{jsx as jg}from"react/jsx-runtime";var Wd=e=>jg(r,{...e,children:jg("path",{d:"M5 4h4l3 3h7a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-11a2 2 0 0 1 2 -2"})});import{jsx as Gl,jsxs as hS}from"react/jsx-runtime";var qd=e=>hS(r,{...e,children:[Gl("path",{d:"M5 4h4l3 3h7a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-0.5m0 -8v-2.5a2 2 0 0 1 2 -2"}),Gl("path",{d:"M1 12.5l7 0"}),Gl("path",{d:"M1 12.5l2 2"}),Gl("path",{d:"M1 12.5l2 -2"})]});import{jsx as $l,jsxs as gS}from"react/jsx-runtime";var Xd=e=>gS(r,{...e,children:[$l("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"}),$l("path",{d:"M2 13l7 0"}),$l("path",{d:"M9 13l-2 2"}),$l("path",{d:"M9 13l-2 -2"})]});import{jsx as e2,jsxs as vS}from"react/jsx-runtime";var Kd=e=>vS(r,{...e,children:[e2("path",{d:"M22 9l-10 -4l-10 4l10 4l10 -4v6"}),e2("path",{d:"M6 10.6v5.4a6 3 0 0 0 12 0v-5.4"})]});import{jsx as En,jsxs as bS}from"react/jsx-runtime";var Yd=e=>bS(r,{...e,children:[En("path",{d:"M9 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),En("path",{d:"M9 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),En("path",{d:"M9 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),En("path",{d:"M15 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),En("path",{d:"M15 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),En("path",{d:"M15 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]});import{jsx as Wl,jsxs as yS}from"react/jsx-runtime";var Zd=e=>yS(r,{...e,children:[Wl("path",{d:"M8 13v-7.5a1.5 1.5 0 0 1 3 0v6.5"}),Wl("path",{d:"M11 5.5v-2a1.5 1.5 0 1 1 3 0v8.5"}),Wl("path",{d:"M14 5.5a1.5 1.5 0 0 1 3 0v6.5"}),Wl("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 Dn,jsxs as IS}from"react/jsx-runtime";var Qd=e=>IS(r,{...e,children:[Dn("path",{d:"M8 13v-7.5a1.5 1.5 0 0 1 3 0v6.5"}),Dn("path",{d:"M11 5.5v-2a1.5 1.5 0 1 1 3 0v8.5"}),Dn("path",{d:"M14 5.5a1.5 1.5 0 0 1 3 0v6.5"}),Dn("path",{d:"M17 7.5a1.5 1.5 0 0 1 3 0v5"}),Dn("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"}),Dn("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 ql,jsxs as CS}from"react/jsx-runtime";var Jd=e=>CS(r,{...e,children:[ql("path",{d:"M5 9l14 0"}),ql("path",{d:"M5 15l14 0"}),ql("path",{d:"M11 4l-4 16"}),ql("path",{d:"M17 4l-4 16"})]});import{jsx as Xl,jsxs as xS}from"react/jsx-runtime";var jd=e=>xS(r,{...e,children:[Xl("path",{d:"M4 14v-3a8 8 0 1 1 16 0v3"}),Xl("path",{d:"M18 19c0 1.657 -2.686 3 -6 3"}),Xl("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"}),Xl("path",{d:"M15 14a2 2 0 0 1 2 -2h1a2 2 0 0 1 2 2v3a2 2 0 0 1 -2 2h-1a2 2 0 0 1 -2 -2v-3z"})]});import{jsx as t2}from"react/jsx-runtime";var em=e=>t2(r,{...e,children:t2("path",{d:"M19.5 12.572l-7.5 7.428l-7.5 -7.428a5 5 0 1 1 7.5 -6.566a5 5 0 1 1 7.5 6.572"})});import{jsx as o2}from"react/jsx-runtime";var tm=e=>o2(r,{isFilled:!0,...e,children:o2("path",{d:"M6.979 3.074a6 6 0 0 1 4.988 1.425l.037 .033l.034 -.03a6 6 0 0 1 4.733 -1.44l.246 .036a6 6 0 0 1 3.364 10.008l-.18 .185l-.048 .041l-7.45 7.379a1 1 0 0 1 -1.313 .082l-.094 -.082l-7.493 -7.422a6 6 0 0 1 3.176 -10.215z"})});import{jsx as om,jsxs as PS}from"react/jsx-runtime";var nm=e=>PS(r,{...e,children:[om("path",{d:"M5 12l-2 0l9 -9l9 9l-2 0"}),om("path",{d:"M5 12v7a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-7"}),om("path",{d:"M9 21v-6a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v6"})]});import{jsx as n2,jsxs as SS}from"react/jsx-runtime";var Yr=e=>SS(r,{...e,children:[n2("path",{d:"M19 8.71l-5.333 -4.148a2.666 2.666 0 0 0 -3.274 0l-5.334 4.148a2.665 2.665 0 0 0 -1.029 2.105v7.2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-7.2c0 -.823 -.38 -1.6 -1.03 -2.105"}),n2("path",{d:"M16 15c-2.21 1.333 -5.792 1.333 -8 0"})]});import{jsx as Kl,jsxs as wS}from"react/jsx-runtime";var Ae=e=>wS(r,{...e,children:[Kl("path",{d:"M15 8h.01"}),Kl("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"}),Kl("path",{d:"M3 16l5 -5c.928 -.893 2.072 -.893 3 0l5 5"}),Kl("path",{d:"M14 14l1 -1c.928 -.893 2.072 -.893 3 0l3 3"})]});import{jsx as Zr,jsxs as MS}from"react/jsx-runtime";var rm=e=>MS(r,{...e,children:[Zr("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"}),Zr("path",{d:"M4 16l16 0"}),Zr("path",{d:"M4 12l3 -3c.928 -.893 2.072 -.893 3 0l4 4"}),Zr("path",{d:"M13 12l2 -2c.928 -.893 2.072 -.893 3 0l2 2"}),Zr("path",{d:"M14 7l.01 0"})]});import{jsx as Qr,jsxs as kS}from"react/jsx-runtime";var am=e=>kS(r,{...e,children:[Qr("path",{d:"M15 8h.01"}),Qr("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"}),Qr("path",{d:"M3 16l5 -5c.928 -.893 2.072 -.893 3 0l4 4"}),Qr("path",{d:"M14 14l1 -1c.928 -.893 2.072 -.893 3 0l.5 .5"}),Qr("path",{d:"M15 19l2 2l4 -4"})]});import{jsx as Jr,jsxs as BS}from"react/jsx-runtime";var lm=e=>BS(r,{...e,children:[Jr("path",{d:"M15 8h.01"}),Jr("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"}),Jr("path",{d:"M3 16l5 -5c.928 -.893 2.072 -.893 3 0l5 5"}),Jr("path",{d:"M16.33 12.338c.574 -.054 1.155 .166 1.67 .662l3 3"}),Jr("path",{d:"M3 3l18 18"})]});import{jsx as r2,jsxs as NS}from"react/jsx-runtime";var cm=e=>NS(r,{...e,children:[r2("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),r2("path",{d:"M5 13v-8a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2h-5.5m-9.5 -2h7m-3 -3l3 3l-3 3"})]});import{jsx as a2,jsxs as TS}from"react/jsx-runtime";var im=e=>TS(r,{...e,children:[a2("path",{d:"M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z"}),a2("path",{d:"M4 13h3l3 3h4l3 -3h3"})]});import{jsx as sm,jsxs as RS}from"react/jsx-runtime";var pm=e=>RS(r,{...e,children:[sm("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"}),sm("path",{d:"M12 9h.01"}),sm("path",{d:"M11 12h1v4h1"})]});import{jsx as dm,jsxs as LS}from"react/jsx-runtime";var mm=e=>LS(r,{...e,children:[dm("path",{d:"M19.875 6.27c.7 .398 1.13 1.143 1.125 1.948v7.284c0 .809 -.443 1.555 -1.158 1.948l-6.75 4.27a2.269 2.269 0 0 1 -2.184 0l-6.75 -4.27a2.225 2.225 0 0 1 -1.158 -1.948v-7.285c0 -.809 .443 -1.554 1.158 -1.947l6.75 -3.98a2.33 2.33 0 0 1 2.25 0l6.75 3.98h-.033z"}),dm("path",{d:"M12 9h.01"}),dm("path",{d:"M11 12h1v4h1"})]});import{jsx as um,jsxs as ES}from"react/jsx-runtime";var fm=e=>ES(r,{...e,children:[um("path",{d:"M11 5l6 0"}),um("path",{d:"M7 19l6 0"}),um("path",{d:"M14 5l-4 14"})]});import{jsx as hm,jsxs as DS}from"react/jsx-runtime";var gm=e=>DS(r,{...e,children:[hm("path",{d:"M12 4l-8 4l8 4l8 -4l-8 -4"}),hm("path",{d:"M4 12l8 4l8 -4"}),hm("path",{d:"M4 16l8 4l8 -4"})]});import{jsx as l2,jsxs as FS}from"react/jsx-runtime";var vm=e=>FS(r,{...e,children:[l2("path",{d:"M12 6l-8 4l8 4l8 -4l-8 -4"}),l2("path",{d:"M4 14l8 4l8 -4"})]});import{jsx as c2,jsxs as AS}from"react/jsx-runtime";var bm=e=>AS(r,{...e,children:[c2("path",{d:"M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z"}),c2("path",{d:"M9 4l0 16"})]});import{jsx as ym,jsxs as OS}from"react/jsx-runtime";var Im=e=>OS(r,{...e,children:[ym("path",{d:"M4 4m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v1a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z"}),ym("path",{d:"M4 13m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v3a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z"}),ym("path",{d:"M14 4m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z"})]});import{jsx as Yl,jsxs as _S}from"react/jsx-runtime";var Cm=e=>_S(r,{...e,children:[Yl("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"}),Yl("path",{d:"M4 9h8"}),Yl("path",{d:"M12 15h8"}),Yl("path",{d:"M12 4v16"})]});import{jsx as jr,jsxs as zS}from"react/jsx-runtime";var xm=e=>zS(r,{...e,children:[jr("path",{d:"M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z"}),jr("path",{d:"M4 12h8"}),jr("path",{d:"M12 15h8"}),jr("path",{d:"M12 9h8"}),jr("path",{d:"M12 4v16"})]});import{jsx as Pm,jsxs as VS}from"react/jsx-runtime";var Sm=e=>VS(r,{...e,children:[Pm("path",{d:"M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z"}),Pm("path",{d:"M10 4l4 16"}),Pm("path",{d:"M12 12l-8 2"})]});import{jsx as Zl,jsxs as HS}from"react/jsx-runtime";var wm=e=>HS(r,{...e,children:[Zl("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"}),Zl("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"}),Zl("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"}),Zl("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 Fn,jsxs as US}from"react/jsx-runtime";var Mm=e=>US(r,{...e,children:[Fn("path",{d:"M12 12m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"}),Fn("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),Fn("path",{d:"M15 15l3.35 3.35"}),Fn("path",{d:"M9 15l-3.35 3.35"}),Fn("path",{d:"M5.65 5.65l3.35 3.35"}),Fn("path",{d:"M18.35 5.65l-3.35 3.35"})]});import{jsx as km,jsxs as GS}from"react/jsx-runtime";var Bm=e=>GS(r,{...e,children:[km("path",{d:"M3 12h1m8 -9v1m8 8h1m-15.4 -6.4l.7 .7m12.1 -.7l-.7 .7"}),km("path",{d:"M9 16a5 5 0 1 1 6 0a3.5 3.5 0 0 0 -1 3a2 2 0 0 1 -4 0a3.5 3.5 0 0 0 -1 -3"}),km("path",{d:"M9.7 17l4.6 0"})]});import{jsx as i2}from"react/jsx-runtime";var Nm=e=>i2(r,{...e,children:i2("path",{d:"M13 3l0 7l6 0l-8 11l0 -7l-6 0l8 -11"})});import{jsx as s2,jsxs as $S}from"react/jsx-runtime";var Tm=e=>$S(r,{...e,children:[s2("path",{d:"M16 3l0 7l4 0l-6 11l0 -7l-4 0l6 -11"}),s2("path",{d:"M5 7h4M3 13h4M5 19h4"})]});import{jsx as p2,jsxs as WS}from"react/jsx-runtime";var Rm=e=>WS(r,{...e,children:[p2("path",{d:"M4 19l16 0"}),p2("path",{d:"M4 15l4 -6l4 2l4 -5l4 4"})]});import{jsx as An,jsxs as qS}from"react/jsx-runtime";var Lm=e=>qS(r,{...e,children:[An("path",{d:"M3 3v18h18"}),An("path",{d:"M20 18v3"}),An("path",{d:"M16 16v5"}),An("path",{d:"M12 13v8"}),An("path",{d:"M8 16v5"}),An("path",{d:"M3 11c6 0 5 -5 9 -5s3 5 9 5"})]});import{jsx as On,jsxs as XS}from"react/jsx-runtime";var Em=e=>XS(r,{...e,children:[On("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"}),On("path",{d:"M3 13c0 0, 8 0, 12 -4"}),On("path",{d:"M12 8h4v4"}),On("path",{d:"M15 2v1.44"}),On("path",{d:"M18.75 4.75l1.2 -1.2"}),On("path",{d:"M20 9h1.44"})]});import{jsx as Dm,jsxs as KS}from"react/jsx-runtime";var Fm=e=>KS(r,{...e,children:[Dm("path",{d:"M4 19l16 0"}),Dm("path",{d:"M4 16l6 -6l4 4l5 -5"}),Dm("path",{d:"M15 8h5v5"})]});import{jsx as d2,jsxs as YS}from"react/jsx-runtime";var Am=e=>YS(r,{...e,children:[d2("path",{d:"M5 10h14"}),d2("path",{d:"M5 14h14"})]});import{jsx as _n,jsxs as ZS}from"react/jsx-runtime";var Om=e=>ZS(r,{...e,children:[_n("path",{d:"M3.5 5.5l1.5 1.5l2.5 -2.5"}),_n("path",{d:"M3.5 11.5l1.5 1.5l2.5 -2.5"}),_n("path",{d:"M3.5 17.5l1.5 1.5l2.5 -2.5"}),_n("path",{d:"M11 6l9 0"}),_n("path",{d:"M11 12l9 0"}),_n("path",{d:"M11 18l9 0"})]});import{jsx as Ql,jsxs as QS}from"react/jsx-runtime";var _m=e=>QS(r,{...e,children:[Ql("path",{d:"M12 10v8l8 -4z"}),Ql("path",{d:"M4 6h16"}),Ql("path",{d:"M4 12h4.5"}),Ql("path",{d:"M4 18h4.5"})]});import{jsx as zm,jsxs as JS}from"react/jsx-runtime";var Vm=e=>JS(r,{...e,children:[zm("path",{d:"M9 15l6 -6"}),zm("path",{d:"M11 6l.463 -.536a5 5 0 0 1 7.071 7.072l-.534 .464"}),zm("path",{d:"M13 18l-.397 .534a5.068 5.068 0 0 1 -7.127 0a4.972 4.972 0 0 1 0 -7.071l.524 -.463"})]});import{jsx as m2,jsxs as jS}from"react/jsx-runtime";var Hm=e=>jS(r,{...e,children:[m2("path",{d:"M9.183 6.117a6 6 0 1 0 4.511 3.986"}),m2("path",{d:"M14.813 17.883a6 6 0 1 0 -4.496 -3.954"})]});import{jsx as Jl,jsxs as e4}from"react/jsx-runtime";var Um=e=>e4(r,{...e,children:[Jl("path",{d:"M9 15l3 -3m2 -2l1 -1"}),Jl("path",{d:"M11 6l.463 -.536a5 5 0 0 1 7.071 7.072l-.534 .464"}),Jl("path",{d:"M3 3l18 18"}),Jl("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 zn,jsxs as t4}from"react/jsx-runtime";var Gm=e=>t4(r,{...e,children:[zn("path",{d:"M9 6l11 0"}),zn("path",{d:"M9 12l11 0"}),zn("path",{d:"M9 18l11 0"}),zn("path",{d:"M5 6l0 .01"}),zn("path",{d:"M5 12l0 .01"}),zn("path",{d:"M5 18l0 .01"})]});import{jsx as ea,jsxs as o4}from"react/jsx-runtime";var $m=e=>o4(r,{...e,children:[ea("path",{d:"M11 6h9"}),ea("path",{d:"M11 12h9"}),ea("path",{d:"M12 18h8"}),ea("path",{d:"M4 16a2 2 0 1 1 4 0c0 .591 -.5 1 -1 1.5l-3 2.5h4"}),ea("path",{d:"M6 10v-6l-2 2"})]});import{jsx as Wm,jsxs as n4}from"react/jsx-runtime";var qm=e=>n4(r,{...e,children:[Wm("path",{d:"M5 13a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v6a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-6z"}),Wm("path",{d:"M11 16a1 1 0 1 0 2 0a1 1 0 0 0 -2 0"}),Wm("path",{d:"M8 11v-4a4 4 0 1 1 8 0v4"})]});import{jsx as u2}from"react/jsx-runtime";var Xm=e=>u2(r,{isFilled:!0,...e,children:u2("path",{d:"M12 2a5 5 0 0 1 5 5v3a3 3 0 0 1 3 3v6a3 3 0 0 1 -3 3h-10a3 3 0 0 1 -3 -3v-6a3 3 0 0 1 3 -3v-3a5 5 0 0 1 5 -5m0 12a2 2 0 0 0 -1.995 1.85l-.005 .15a2 2 0 1 0 2 -2m0 -10a3 3 0 0 0 -3 3v3h6v-3a3 3 0 0 0 -3 -3"})});import{jsx as Km,jsxs as r4}from"react/jsx-runtime";var Ym=e=>r4(r,{...e,children:[Km("path",{d:"M9 8v-2a2 2 0 0 1 2 -2h7a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-7a2 2 0 0 1 -2 -2v-2"}),Km("path",{d:"M3 12h13l-3 -3"}),Km("path",{d:"M13 15l3 -3"})]});import{jsx as Zm,jsxs as a4}from"react/jsx-runtime";var Qm=e=>a4(r,{...e,children:[Zm("path",{d:"M14 8v-2a2 2 0 0 0 -2 -2h-7a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h7a2 2 0 0 0 2 -2v-2"}),Zm("path",{d:"M9 12h12l-3 -3"}),Zm("path",{d:"M18 15l3 -3"})]});import{jsx as Jm,jsxs as l4}from"react/jsx-runtime";var jm=e=>l4(r,{...e,children:[Jm("path",{d:"M10 8v-2a2 2 0 0 1 2 -2h7a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-7a2 2 0 0 1 -2 -2v-2"}),Jm("path",{d:"M15 12h-12l3 -3"}),Jm("path",{d:"M6 15l-3 -3"})]});import{jsx as jl,jsxs as c4}from"react/jsx-runtime";var eu=e=>c4(r,{...e,children:[jl("path",{d:"M6 21l15 -15l-3 -3l-15 15l3 3"}),jl("path",{d:"M15 6l3 3"}),jl("path",{d:"M9 3a2 2 0 0 0 2 2a2 2 0 0 0 -2 2a2 2 0 0 0 -2 -2a2 2 0 0 0 2 -2"}),jl("path",{d:"M19 13a2 2 0 0 0 2 2a2 2 0 0 0 -2 2a2 2 0 0 0 -2 -2a2 2 0 0 0 2 -2"})]});import{jsx as f2,jsxs as i4}from"react/jsx-runtime";var tu=e=>i4(r,{...e,children:[f2("path",{d:"M3 7a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-10z"}),f2("path",{d:"M3 7l9 6l9 -6"})]});import{jsx as ec,jsxs as s4}from"react/jsx-runtime";var ou=e=>s4(r,{...e,children:[ec("path",{d:"M3 9l9 6l9 -6l-9 -6l-9 6"}),ec("path",{d:"M21 9v10a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-10"}),ec("path",{d:"M3 19l6 -6"}),ec("path",{d:"M15 13l6 6"})]});import{jsx as h2,jsxs as p4}from"react/jsx-runtime";var nu=e=>p4(r,{...e,children:[h2("path",{d:"M9 11a3 3 0 1 0 6 0a3 3 0 0 0 -6 0"}),h2("path",{d:"M17.657 16.657l-4.243 4.243a2 2 0 0 1 -2.827 0l-4.244 -4.243a8 8 0 1 1 11.314 0z"})]});import{jsx as tc,jsxs as d4}from"react/jsx-runtime";var ta=e=>d4(r,{...e,children:[tc("path",{d:"M4 8v-2a2 2 0 0 1 2 -2h2"}),tc("path",{d:"M4 16v2a2 2 0 0 0 2 2h2"}),tc("path",{d:"M16 4h2a2 2 0 0 1 2 2v2"}),tc("path",{d:"M16 20h2a2 2 0 0 0 2 -2v-2"})]});import{jsx as oc,jsxs as m4}from"react/jsx-runtime";var ru=e=>m4(r,{...e,children:[oc("path",{d:"M16 4l4 0l0 4"}),oc("path",{d:"M14 10l6 -6"}),oc("path",{d:"M8 20l-4 0l0 -4"}),oc("path",{d:"M4 20l6 -6"})]});import{jsx as g2}from"react/jsx-runtime";var au=e=>g2(r,{...e,children:g2("path",{d:"M3 20l1.3 -3.9c-2.324 -3.437 -1.426 -7.872 2.1 -10.374c3.526 -2.501 8.59 -2.296 11.845 .48c3.255 2.777 3.695 7.266 1.029 10.501c-2.666 3.235 -7.615 4.215 -11.574 2.293l-4.7 1"})});import{jsx as lu,jsxs as u4}from"react/jsx-runtime";var cu=e=>u4(r,{...e,children:[lu("path",{d:"M8 9h8"}),lu("path",{d:"M8 13h6"}),lu("path",{d:"M18 4a3 3 0 0 1 3 3v8a3 3 0 0 1 -3 3h-5l-5 3v-3h-2a3 3 0 0 1 -3 -3v-8a3 3 0 0 1 3 -3h12z"})]});import{jsx as nc,jsxs as f4}from"react/jsx-runtime";var iu=e=>f4(r,{...e,children:[nc("path",{d:"M12 11v.01"}),nc("path",{d:"M8 11v.01"}),nc("path",{d:"M16 11v.01"}),nc("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 oa,jsxs as h4}from"react/jsx-runtime";var su=e=>h4(r,{...e,children:[oa("path",{d:"M8 9h8"}),oa("path",{d:"M8 13h6"}),oa("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"}),oa("path",{d:"M22 22l-5 -5"}),oa("path",{d:"M17 22l5 -5"})]});import{jsx as rc,jsxs as g4}from"react/jsx-runtime";var na=e=>g4(r,{...e,children:[rc("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"}),rc("path",{d:"M5 10a7 7 0 0 0 14 0"}),rc("path",{d:"M8 21l8 0"}),rc("path",{d:"M12 17l0 4"})]});import{jsx as ac,jsxs as v4}from"react/jsx-runtime";var ra=e=>v4(r,{...e,children:[ac("path",{d:"M15 19v-2a2 2 0 0 1 2 -2h2"}),ac("path",{d:"M15 5v2a2 2 0 0 0 2 2h2"}),ac("path",{d:"M5 15h2a2 2 0 0 1 2 2v2"}),ac("path",{d:"M5 9h2a2 2 0 0 0 2 -2v-2"})]});import{jsx as lc,jsxs as b4}from"react/jsx-runtime";var pu=e=>b4(r,{...e,children:[lc("path",{d:"M18 10h-4v-4"}),lc("path",{d:"M20 4l-6 6"}),lc("path",{d:"M6 14h4v4"}),lc("path",{d:"M10 14l-6 6"})]});import{jsx as v2,jsxs as y4}from"react/jsx-runtime";var du=e=>y4(r,{...e,children:[v2("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),v2("path",{d:"M9 12l6 0"})]});import{jsx as mu,jsxs as I4}from"react/jsx-runtime";var uu=e=>I4(r,{...e,children:[mu("path",{d:"M6 5a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-8a2 2 0 0 1 -2 -2v-14z"}),mu("path",{d:"M11 4h2"}),mu("path",{d:"M12 17v.01"})]});import{jsx as cc,jsxs as C4}from"react/jsx-runtime";var fu=e=>C4(r,{...e,children:[cc("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"}),cc("path",{d:"M7 20h10"}),cc("path",{d:"M9 16v4"}),cc("path",{d:"M15 16v4"})]});import{jsx as aa,jsxs as x4}from"react/jsx-runtime";var hu=e=>x4(r,{...e,children:[aa("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"}),aa("path",{d:"M3 13h18"}),aa("path",{d:"M8 21h8"}),aa("path",{d:"M10 17l-.5 4"}),aa("path",{d:"M14 17l.5 4"})]});import{jsx as b2}from"react/jsx-runtime";var gu=e=>b2(r,{...e,children:b2("path",{d:"M12 3c.132 0 .263 0 .393 0a7.5 7.5 0 0 0 7.92 12.446a9 9 0 1 1 -8.313 -12.454z"})});import{jsx as y2,jsxs as P4}from"react/jsx-runtime";var vu=e=>P4(r,{...e,children:[y2("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),y2("path",{d:"M12 6c.088 0 .175 0 .262 0a5 5 0 0 0 5.28 8.297a6 6 0 1 1 -5.542 -8.303z"})]});import{jsx as io,jsxs as S4}from"react/jsx-runtime";var ut=e=>S4(r,{...e,children:[io("path",{d:"M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z"}),io("path",{d:"M8 4l0 16"}),io("path",{d:"M16 4l0 16"}),io("path",{d:"M4 8l4 0"}),io("path",{d:"M4 16l4 0"}),io("path",{d:"M4 12l16 0"}),io("path",{d:"M16 8l4 0"}),io("path",{d:"M16 16l4 0"})]});import{jsx as I2}from"react/jsx-runtime";var bu=e=>I2(r,{...e,children:I2("path",{d:"M12 18.5l7.265 2.463c.196 .077 .42 .032 .57 -.116a.548 .548 0 0 0 .134 -.572l-7.969 -17.275l-7.97 17.275c-.07 .2 -.017 .424 .135 .572c.15 .148 .374 .193 .57 .116l7.265 -2.463"})});import{jsx as C2,jsxs as w4}from"react/jsx-runtime";var yu=e=>w4(r,{...e,children:[C2("path",{d:"M10 6h-3a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2 -2v-3"}),C2("path",{d:"M17 7m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"})]});import{jsx as la,jsxs as M4}from"react/jsx-runtime";var Iu=e=>M4(r,{...e,children:[la("path",{d:"M12 3l8 4.5l0 9l-8 4.5l-8 -4.5l0 -9l8 -4.5"}),la("path",{d:"M12 12l8 -4.5"}),la("path",{d:"M12 12l0 9"}),la("path",{d:"M12 12l-8 -4.5"}),la("path",{d:"M16 5.25l-8 4.5"})]});import{jsx as ic,jsxs as k4}from"react/jsx-runtime";var Cu=e=>k4(r,{...e,children:[ic("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"}),ic("path",{d:"M8.5 10.5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),ic("path",{d:"M12.5 7.5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),ic("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 B4}from"react/jsx-runtime";var xu=e=>B4(r,{...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 x2,jsxs as N4}from"react/jsx-runtime";var ft=e=>N4(r,{...e,children:[x2("path",{d:"M6 5m0 1a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v12a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1z"}),x2("path",{d:"M14 5m0 1a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v12a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1z"})]});import{jsx as Pu,jsxs as T4}from"react/jsx-runtime";var Su=e=>T4(r,{...e,children:[Pu("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),Pu("path",{d:"M8 8m0 1a1 1 0 0 1 1 -1h1a1 1 0 0 1 1 1v6a1 1 0 0 1 -1 1h-1a1 1 0 0 1 -1 -1z"}),Pu("path",{d:"M13 8m0 1a1 1 0 0 1 1 -1h1a1 1 0 0 1 1 1v6a1 1 0 0 1 -1 1h-1a1 1 0 0 1 -1 -1z"})]});import{jsx as wu,jsxs as R4}from"react/jsx-runtime";var Mu=e=>R4(r,{...e,children:[wu("path",{d:"M13 9a1 1 0 0 1 1 -1h6a1 1 0 0 1 1 1v10a1 1 0 0 1 -1 1h-6a1 1 0 0 1 -1 -1v-10z"}),wu("path",{d:"M18 8v-3a1 1 0 0 0 -1 -1h-13a1 1 0 0 0 -1 1v12a1 1 0 0 0 1 1h9"}),wu("path",{d:"M16 9h2"})]});import{jsx as ku,jsxs as L4}from"react/jsx-runtime";var Bu=e=>L4(r,{...e,children:[ku("path",{d:"M14 6l7 7l-4 4"}),ku("path",{d:"M5.828 18.172a2.828 2.828 0 0 0 4 0l10.586 -10.586a2 2 0 0 0 0 -2.829l-1.171 -1.171a2 2 0 0 0 -2.829 0l-10.586 10.586a2.828 2.828 0 0 0 0 4"}),ku("path",{d:"M4 20l1.768 -1.768"})]});import{jsx as sc,jsxs as E4}from"react/jsx-runtime";var Nu=e=>E4(r,{...e,children:[sc("path",{d:"M9 15l6 -6"}),sc("circle",{cx:"9.5",cy:"9.5",r:".5",fill:"currentColor"}),sc("circle",{cx:"14.5",cy:"14.5",r:".5",fill:"currentColor"}),sc("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"})]});import{jsx as P2}from"react/jsx-runtime";var Tu=e=>P2(r,{...e,children:P2("path",{d:"M6.141 4.163l12 1.714a1 1 0 0 1 .859 .99v10.266a1 1 0 0 1 -.859 .99l-12 1.714a1 1 0 0 1 -1.141 -.99v-13.694a1 1 0 0 1 1.141 -.99z"})});import{jsx as Ru,jsxs as D4}from"react/jsx-runtime";var Lu=e=>D4(r,{...e,children:[Ru("path",{d:"M5 4h4l2 5l-2.5 1.5a11 11 0 0 0 5 5l1.5 -2.5l5 2v4a2 2 0 0 1 -2 2a16 16 0 0 1 -15 -15a2 2 0 0 1 2 -2"}),Ru("path",{d:"M15 7a2 2 0 0 1 2 2"}),Ru("path",{d:"M15 3a6 6 0 0 1 6 6"})]});import{jsx as Eu,jsxs as F4}from"react/jsx-runtime";var ia=e=>F4(r,{...e,children:[Eu("path",{d:"M15 4.5l-4 4l-4 1.5l-1.5 1.5l7 7l1.5 -1.5l1.5 -4l4 -4"}),Eu("path",{d:"M9 15l-4.5 4.5"}),Eu("path",{d:"M14.5 4l5.5 5.5"})]});import{jsx as S2}from"react/jsx-runtime";var ht=e=>S2(r,{...e,children:S2("path",{d:"M7 4v16l13 -8z"})});import{jsx as w2,jsxs as A4}from"react/jsx-runtime";var Du=e=>A4(r,{...e,children:[w2("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),w2("path",{d:"M9 8v8l8 -4z"})]});import{jsx as M2,jsxs as O4}from"react/jsx-runtime";var sa=e=>O4(r,{...e,children:[M2("path",{d:"M12 5l0 14"}),M2("path",{d:"M5 12l14 0"})]});import{jsx as Fu,jsxs as _4}from"react/jsx-runtime";var so=e=>_4(r,{...e,children:[Fu("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"}),Fu("path",{d:"M9 12h6"}),Fu("path",{d:"M12 9v6"})]});import{jsx as Au,jsxs as z4}from"react/jsx-runtime";var Ou=e=>z4(r,{...e,children:[Au("path",{d:"M17 17h2a2 2 0 0 0 2 -2v-4a2 2 0 0 0 -2 -2h-14a2 2 0 0 0 -2 2v4a2 2 0 0 0 2 2h2"}),Au("path",{d:"M17 9v-4a2 2 0 0 0 -2 -2h-6a2 2 0 0 0 -2 2v4"}),Au("path",{d:"M7 13m0 2a2 2 0 0 1 2 -2h6a2 2 0 0 1 2 2v4a2 2 0 0 1 -2 2h-6a2 2 0 0 1 -2 -2z"})]});import{jsx as k2}from"react/jsx-runtime";var _u=e=>k2(r,{...e,children:k2("path",{d:"M3 12h4l3 8l4 -16l3 8h4"})});import{jsx as zu,jsxs as V4}from"react/jsx-runtime";var pa=e=>V4(r,{...e,children:[zu("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"}),zu("path",{d:"M12 16v.01"}),zu("path",{d:"M12 13a2 2 0 0 0 .914 -3.782a1.98 1.98 0 0 0 -2.414 .483"})]});import{jsx as B2,jsxs as H4}from"react/jsx-runtime";var Vu=e=>H4(r,{...e,children:[B2("path",{d:"M10 11h-4a1 1 0 0 1 -1 -1v-3a1 1 0 0 1 1 -1h3a1 1 0 0 1 1 1v6c0 2.667 -1.333 4.333 -4 5"}),B2("path",{d:"M19 11h-4a1 1 0 0 1 -1 -1v-3a1 1 0 0 1 1 -1h3a1 1 0 0 1 1 1v6c0 2.667 -1.333 4.333 -4 5"})]});import{jsx as N2,jsxs as U4}from"react/jsx-runtime";var Hu=e=>U4(r,{...e,children:[N2("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),N2("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"})]});import{jsx as T2}from"react/jsx-runtime";var Uu=e=>T2(r,{isFilled:!0,...e,children:T2("path",{d:"M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-5 6.66a2 2 0 0 0 -1.977 1.697l-.018 .154l-.005 .149l.005 .15a2 2 0 1 0 1.995 -2.15z"})});import{jsx as R2}from"react/jsx-runtime";var Gu=e=>R2(r,{...e,children:R2("path",{d:"M5 21v-16a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v16l-3 -2l-2 2l-2 -2l-2 2l-2 -2l-3 2m4 -14h6m-6 4h6m-2 4h2"})});import{jsx as L2,jsxs as G4}from"react/jsx-runtime";var $u=e=>G4(r,{...e,children:[L2("path",{d:"M5 21v-16a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v16l-3 -2l-2 2l-2 -2l-2 2l-2 -2l-3 2"}),L2("path",{d:"M9 11l2 2l4 -4"})]});import{jsx as E2,jsxs as $4}from"react/jsx-runtime";var Wu=e=>$4(r,{...e,children:[E2("path",{d:"M15 14l4 -4l-4 -4"}),E2("path",{d:"M19 10h-11a4 4 0 1 0 0 8h1"})]});import{jsx as D2}from"react/jsx-runtime";var da=e=>D2(r,{...e,children:D2("path",{d:"M4.05 11a8 8 0 1 1 .5 4m-.5 5v-5h5"})});import{jsx as F2,jsxs as W4}from"react/jsx-runtime";var qu=e=>W4(r,{...e,children:[F2("path",{d:"M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4"}),F2("path",{d:"M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4"})]});import{jsx as A2,jsxs as q4}from"react/jsx-runtime";var Xu=e=>q4(r,{...e,children:[A2("path",{d:"M19.933 13.041a8 8 0 1 1 -9.925 -8.788c3.899 -1 7.935 1.007 9.425 4.747"}),A2("path",{d:"M20 4v5h-5"})]});import{jsx as O2,jsxs as X4}from"react/jsx-runtime";var Ku=e=>X4(r,{...e,children:[O2("path",{d:"M4 12v-3a3 3 0 0 1 3 -3h13m-3 -3l3 3l-3 3"}),O2("path",{d:"M20 12v3a3 3 0 0 1 -3 3h-13m3 3l-3 -3l3 -3"})]});import{jsx as pc,jsxs as K4}from"react/jsx-runtime";var Yu=e=>K4(r,{...e,children:[pc("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"}),pc("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"}),pc("path",{d:"M21 11v-3a2 2 0 0 0 -2 -2h-6l3 3m0 -6l-3 3"}),pc("path",{d:"M3 13v3a2 2 0 0 0 2 2h6l-3 -3m0 6l3 -3"})]});import{jsx as _2}from"react/jsx-runtime";var ma=e=>_2(r,{...e,children:_2("path",{d:"M19.95 11a8 8 0 1 0 -.5 4m.5 5v-5h-5"})});import{jsx as Zu,jsxs as Y4}from"react/jsx-runtime";var Qu=e=>Y4(r,{...e,children:[Zu("path",{d:"M3.06 13a9 9 0 1 0 .49 -4.087"}),Zu("path",{d:"M3 4.001v5h5"}),Zu("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]});import{jsx as Ju,jsxs as Z4}from"react/jsx-runtime";var ju=e=>Z4(r,{...e,children:[Ju("path",{d:"M4 13a8 8 0 0 1 7 7a6 6 0 0 0 3 -5a9 9 0 0 0 6 -8a3 3 0 0 0 -3 -3a9 9 0 0 0 -8 6a6 6 0 0 0 -5 3"}),Ju("path",{d:"M7 14a6 6 0 0 0 -3 6a6 6 0 0 0 6 -3"}),Ju("path",{d:"M15 9m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]});import{jsx as z2,jsxs as Q4}from"react/jsx-runtime";var ef=e=>Q4(r,{...e,children:[z2("path",{d:"M10 3.2a9 9 0 1 0 10.8 10.8a1 1 0 0 0 -1 -1h-6.8a2 2 0 0 1 -2 -2v-7a.9 .9 0 0 0 -1 -.8"}),z2("path",{d:"M15 3.5a9 9 0 0 1 5.5 5.5h-4.5a1 1 0 0 1 -1 -1v-4.5"})]});import{jsx as V2,jsxs as J4}from"react/jsx-runtime";var tf=e=>J4(r,{...e,children:[V2("path",{d:"M12 3v9h9"}),V2("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"})]});import{jsx as of,jsxs as j4}from"react/jsx-runtime";var nf=e=>j4(r,{...e,children:[of("path",{d:"M3 19a2 2 0 1 0 4 0a2 2 0 0 0 -4 0"}),of("path",{d:"M19 7a2 2 0 1 0 0 -4a2 2 0 0 0 0 4z"}),of("path",{d:"M11 19h5.5a3.5 3.5 0 0 0 0 -7h-8a3.5 3.5 0 0 1 0 -7h4.5"})]});import{jsx as rf,jsxs as ew}from"react/jsx-runtime";var af=e=>ew(r,{...e,children:[rf("path",{d:"M6 4h10l4 4v10a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2"}),rf("path",{d:"M12 14m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),rf("path",{d:"M14 4l0 4l-6 0l0 -4"})]});import{jsx as po,jsxs as tw}from"react/jsx-runtime";var lf=e=>tw(r,{...e,children:[po("path",{d:"M4 7v-1a2 2 0 0 1 2 -2h2"}),po("path",{d:"M4 17v1a2 2 0 0 0 2 2h2"}),po("path",{d:"M16 4h2a2 2 0 0 1 2 2v1"}),po("path",{d:"M16 20h2a2 2 0 0 0 2 -2v-1"}),po("path",{d:"M5 11h1v2h-1z"}),po("path",{d:"M10 11l0 2"}),po("path",{d:"M14 11h1v2h-1z"}),po("path",{d:"M19 11l0 2"})]});import{jsx as dc,jsxs as ow}from"react/jsx-runtime";var ua=e=>ow(r,{...e,children:[dc("path",{d:"M6 7m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),dc("path",{d:"M6 17m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),dc("path",{d:"M8.6 8.6l10.4 10.4"}),dc("path",{d:"M8.6 15.4l10.4 -10.4"})]});import{jsx as H2,jsxs as nw}from"react/jsx-runtime";var Vt=e=>nw(r,{...e,children:[H2("path",{d:"M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0"}),H2("path",{d:"M21 21l-6 -6"})]});import{jsx as U2,jsxs as rw}from"react/jsx-runtime";var cf=e=>rw(r,{...e,children:[U2("path",{d:"M10 14l11 -11"}),U2("path",{d:"M21 3l-6.5 18a.55 .55 0 0 1 -1 0l-3.5 -7l-7 -3.5a.55 .55 0 0 1 0 -1l18 -6.5"})]});import{jsx as mc,jsxs as aw}from"react/jsx-runtime";var sf=e=>aw(r,{...e,children:[mc("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"}),mc("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"}),mc("path",{d:"M7 8l0 .01"}),mc("path",{d:"M7 16l0 .01"})]});import{jsx as G2,jsxs as lw}from"react/jsx-runtime";var pf=e=>lw(r,{...e,children:[G2("path",{d:"M10.325 4.317c.426 -1.756 2.924 -1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543 -.94 3.31 .826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756 .426 1.756 2.924 0 3.35a1.724 1.724 0 0 0 -1.066 2.573c.94 1.543 -.826 3.31 -2.37 2.37a1.724 1.724 0 0 0 -2.572 1.065c-.426 1.756 -2.924 1.756 -3.35 0a1.724 1.724 0 0 0 -2.573 -1.066c-1.543 .94 -3.31 -.826 -2.37 -2.37a1.724 1.724 0 0 0 -1.065 -2.572c-1.756 -.426 -1.756 -2.924 0 -3.35a1.724 1.724 0 0 0 1.066 -2.573c-.94 -1.543 .826 -3.31 2.37 -2.37c1 .608 2.296 .07 2.572 -1.065z"}),G2("path",{d:"M9 12a3 3 0 1 0 6 0a3 3 0 0 0 -6 0"})]});import{jsx as Ht,jsxs as cw}from"react/jsx-runtime";var df=e=>cw(r,{...e,children:[Ht("path",{d:"M14 6m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),Ht("path",{d:"M4 6l8 0"}),Ht("path",{d:"M16 6l4 0"}),Ht("path",{d:"M8 12m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),Ht("path",{d:"M4 12l2 0"}),Ht("path",{d:"M10 12l10 0"}),Ht("path",{d:"M17 18m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),Ht("path",{d:"M4 18l11 0"}),Ht("path",{d:"M19 18l1 0"})]});import{jsx as fa,jsxs as iw}from"react/jsx-runtime";var mf=e=>iw(r,{...e,children:[fa("path",{d:"M6 12m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),fa("path",{d:"M18 6m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),fa("path",{d:"M18 18m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),fa("path",{d:"M8.7 10.7l6.6 -3.4"}),fa("path",{d:"M8.7 13.3l6.6 3.4"})]});import{jsx as $2,jsxs as sw}from"react/jsx-runtime";var uf=e=>sw(r,{...e,children:[$2("path",{d:"M13.342 20.566c-.436 .17 -.884 .315 -1.342 .434a12 12 0 0 1 -8.5 -15a12 12 0 0 0 8.5 -3a12 12 0 0 0 8.5 3a12 12 0 0 1 .117 6.34"}),$2("path",{d:"M19 16l-2 3h4l-2 3"})]});import{jsx as ff,jsxs as pw}from"react/jsx-runtime";var hf=e=>pw(r,{...e,children:[ff("path",{d:"M12.462 20.87c-.153 .047 -.307 .09 -.462 .13a12 12 0 0 1 -8.5 -15a12 12 0 0 0 8.5 -3a12 12 0 0 0 8.5 3a12 12 0 0 1 .11 6.37"}),ff("path",{d:"M16 19h6"}),ff("path",{d:"M19 16v6"})]});import{jsx as gf,jsxs as dw}from"react/jsx-runtime";var vf=e=>dw(r,{...e,children:[gf("path",{d:"M13.252 20.601c-.408 .155 -.826 .288 -1.252 .399a12 12 0 0 1 -8.5 -15a12 12 0 0 0 8.5 -3a12 12 0 0 0 8.5 3a12 12 0 0 1 -.19 7.357"}),gf("path",{d:"M22 22l-5 -5"}),gf("path",{d:"M17 22l5 -5"})]});import{jsx as W2,jsxs as mw}from"react/jsx-runtime";var bf=e=>mw(r,{...e,children:[W2("path",{d:"M6.331 8h11.339a2 2 0 0 1 1.977 2.304l-1.255 8.152a3 3 0 0 1 -2.966 2.544h-6.852a3 3 0 0 1 -2.965 -2.544l-1.255 -8.152a2 2 0 0 1 1.977 -2.304z"}),W2("path",{d:"M9 11v-5a3 3 0 0 1 6 0v5"})]});import{jsx as uc,jsxs as uw}from"react/jsx-runtime";var yf=e=>uw(r,{...e,children:[uc("path",{d:"M6 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),uc("path",{d:"M17 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),uc("path",{d:"M17 17h-11v-14h-2"}),uc("path",{d:"M6 5l14 1l-1 7h-13"})]});import{jsx as mo,jsxs as fw}from"react/jsx-runtime";var If=e=>fw(r,{...e,children:[mo("path",{d:"M5 9l4 0l0 -4"}),mo("path",{d:"M3 3l6 6"}),mo("path",{d:"M5 15l4 0l0 4"}),mo("path",{d:"M3 21l6 -6"}),mo("path",{d:"M19 9l-4 0l0 -4"}),mo("path",{d:"M15 9l6 -6"}),mo("path",{d:"M19 15l-4 0l0 4"}),mo("path",{d:"M15 15l6 6"})]});import{jsx as fc,jsxs as hw}from"react/jsx-runtime";var Cf=e=>hw(r,{...e,children:[fc("path",{d:"M18 4l3 3l-3 3"}),fc("path",{d:"M18 20l3 -3l-3 -3"}),fc("path",{d:"M3 7h3a5 5 0 0 1 5 5a5 5 0 0 0 5 5h5"}),fc("path",{d:"M21 7h-5a4.978 4.978 0 0 0 -3 1m-4 8a4.984 4.984 0 0 1 -3 1h-3"})]});import{jsx as q2,jsxs as gw}from"react/jsx-runtime";var xf=e=>gw(r,{...e,children:[q2("path",{d:"M4 5v14l12 -7z"}),q2("path",{d:"M20 5l0 14"})]});import{jsx as X2,jsxs as vw}from"react/jsx-runtime";var Pf=e=>vw(r,{...e,children:[X2("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),X2("path",{d:"M5.7 5.7l12.6 12.6"})]});import{jsx as K2,jsxs as bw}from"react/jsx-runtime";var Sf=e=>bw(r,{...e,children:[K2("path",{d:"M9.103 2h5.794a3 3 0 0 1 2.122 .879l4.101 4.1a3 3 0 0 1 .879 2.123v5.794a3 3 0 0 1 -.879 2.122l-4.1 4.101a3 3 0 0 1 -2.123 .879h-5.794a3 3 0 0 1 -2.122 -.879l-4.101 -4.1a3 3 0 0 1 -.879 -2.123v-5.794a3 3 0 0 1 .879 -2.122l4.1 -4.101a3 3 0 0 1 2.123 -.879z"}),K2("path",{d:"M5 5 L19 19"})]});import{jsx as Fo,jsxs as yw}from"react/jsx-runtime";var wf=e=>yw(r,{...e,children:[Fo("path",{d:"M4 10l0 6"}),Fo("path",{d:"M20 10l0 6"}),Fo("path",{d:"M7 9h10v8a1 1 0 0 1 -1 1h-8a1 1 0 0 1 -1 -1v-8a5 5 0 0 1 10 0"}),Fo("path",{d:"M8 3l1 2"}),Fo("path",{d:"M16 3l-1 2"}),Fo("path",{d:"M9 18l0 3"}),Fo("path",{d:"M15 18l0 3"})]});import{jsx as Y2,jsxs as Iw}from"react/jsx-runtime";var Mf=e=>Iw(r,{...e,children:[Y2("path",{d:"M8.286 7.008c-3.216 0 -4.286 3.23 -4.286 5.92c0 3.229 2.143 8.072 4.286 8.072c1.165 -.05 1.799 -.538 3.214 -.538c1.406 0 1.607 .538 3.214 .538s4.286 -3.229 4.286 -5.381c-.03 -.011 -2.649 -.434 -2.679 -3.23c-.02 -2.335 2.589 -3.179 2.679 -3.228c-1.096 -1.606 -3.162 -2.113 -3.75 -2.153c-1.535 -.12 -3.032 1.077 -3.75 1.077c-.729 0 -2.036 -1.077 -3.214 -1.077z"}),Y2("path",{d:"M12 4a2 2 0 0 0 2 -2a2 2 0 0 0 -2 2"})]});import{jsx as Z2}from"react/jsx-runtime";var kf=e=>Z2(r,{...e,children:Z2("path",{d:"M9 19c-4.3 1.4 -4.3 -2.5 -6 -3m12 5v-3.5c0 -1 .1 -1.4 -.5 -2c2.8 -.3 5.5 -1.4 5.5 -6a4.6 4.6 0 0 0 -1.3 -3.2a4.2 4.2 0 0 0 -.1 -3.2s-1.1 -.3 -3.5 1.3a12.3 12.3 0 0 0 -6.2 0c-2.4 -1.6 -3.5 -1.3 -3.5 -1.3a4.2 4.2 0 0 0 -.1 3.2a4.6 4.6 0 0 0 -1.3 3.2c0 4.6 2.7 5.7 5.5 6c-.6 .6 -.6 1.2 -.5 2v3.5"})});import{jsx as ha,jsxs as Cw}from"react/jsx-runtime";var Bf=e=>Cw(r,{...e,children:[ha("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"}),ha("path",{d:"M3.6 9h16.8"}),ha("path",{d:"M3.6 15h16.8"}),ha("path",{d:"M11.5 3a17 17 0 0 0 0 18"}),ha("path",{d:"M12.5 3a17 17 0 0 1 0 18"})]});import{jsx as Q2}from"react/jsx-runtime";var Nf=e=>Q2(r,{...e,children:Q2("path",{d:"M20.945 11a9 9 0 1 1 -3.284 -5.997l-2.655 2.392a5.5 5.5 0 1 0 2.119 6.605h-4.125v-3h7.945z"})});import{jsx as Tf,jsxs as xw}from"react/jsx-runtime";var Rf=e=>xw(r,{...e,children:[Tf("path",{d:"M4 8a4 4 0 0 1 4 -4h8a4 4 0 0 1 4 4v8a4 4 0 0 1 -4 4h-8a4 4 0 0 1 -4 -4z"}),Tf("path",{d:"M9 12a3 3 0 1 0 6 0a3 3 0 0 0 -6 0"}),Tf("path",{d:"M16.5 7.5v.01"})]});import{jsx as ga,jsxs as Pw}from"react/jsx-runtime";var Lf=e=>Pw(r,{...e,children:[ga("path",{d:"M8 11v5"}),ga("path",{d:"M8 8v.01"}),ga("path",{d:"M12 16v-5"}),ga("path",{d:"M16 16v-3a2 2 0 1 0 -4 0"}),ga("path",{d:"M3 7a4 4 0 0 1 4 -4h10a4 4 0 0 1 4 4v10a4 4 0 0 1 -4 4h-10a4 4 0 0 1 -4 -4z"})]});import{jsx as Ef,jsxs as Sw}from"react/jsx-runtime";var Df=e=>Sw(r,{...e,children:[Ef("path",{d:"M14 12m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),Ef("path",{d:"M12 9.765a3 3 0 1 0 0 4.47"}),Ef("path",{d:"M3 5m0 2a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2z"})]});import{jsx as Ao,jsxs as ww}from"react/jsx-runtime";var Ff=e=>ww(r,{...e,children:[Ao("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"}),Ao("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"}),Ao("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"}),Ao("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"}),Ao("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"}),Ao("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"}),Ao("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 Mw}from"react/jsx-runtime";var Af=e=>Mw(r,{...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 J2,jsxs as kw}from"react/jsx-runtime";var Of=e=>kw(r,{...e,children:[J2("path",{d:"M4 4l11.733 16h4.267l-11.733 -16z"}),J2("path",{d:"M4 20l6.768 -6.768m2.46 -2.46l6.772 -6.772"})]});import{jsx as hc,jsxs as Bw}from"react/jsx-runtime";var _f=e=>Bw(r,{...e,children:[hc("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),hc("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),hc("path",{d:"M13.41 10.59l2.59 -2.59"}),hc("path",{d:"M7 12a5 5 0 0 1 5 -5"})]});import{jsx as j2}from"react/jsx-runtime";var zf=e=>j2(r,{...e,children:j2("path",{d:"M22 5h-5v5h-5v5h-5v5h-5"})});import{jsx as ev}from"react/jsx-runtime";var ba=e=>ev(r,{...e,children:ev("path",{d:"M12 17.75l-6.172 3.245l1.179 -6.873l-5 -4.867l6.9 -1l3.086 -6.253l3.086 6.253l6.9 1l-5 4.867l1.179 6.873z"})});import{jsx as tv}from"react/jsx-runtime";var Vf=e=>tv(r,{isFilled:!0,...e,children:tv("path",{d:"M8.243 7.34l-6.38 .925l-.113 .023a1 1 0 0 0 -.44 1.684l4.622 4.499l-1.09 6.355l-.013 .11a1 1 0 0 0 1.464 .944l5.706 -3l5.693 3l.1 .046a1 1 0 0 0 1.352 -1.1l-1.091 -6.355l4.624 -4.5l.078 -.085a1 1 0 0 0 -.633 -1.62l-6.38 -.926l-2.852 -5.78a1 1 0 0 0 -1.794 0l-2.853 5.78z"})});import{jsx as ov}from"react/jsx-runtime";var Hf=e=>ov(r,{isFilled:!0,...e,children:ov("path",{d:"M12 1a.993 .993 0 0 1 .823 .443l.067 .116l2.852 5.781l6.38 .925c.741 .108 1.08 .94 .703 1.526l-.07 .095l-.078 .086l-4.624 4.499l1.09 6.355a1.001 1.001 0 0 1 -1.249 1.135l-.101 -.035l-.101 -.046l-5.693 -3l-5.706 3c-.105 .055 -.212 .09 -.32 .106l-.106 .01a1.003 1.003 0 0 1 -1.038 -1.06l.013 -.11l1.09 -6.355l-4.623 -4.5a1.001 1.001 0 0 1 .328 -1.647l.113 -.036l.114 -.023l6.379 -.925l2.853 -5.78a.968 .968 0 0 1 .904 -.56zm0 3.274v12.476a1 1 0 0 1 .239 .029l.115 .036l.112 .05l4.363 2.299l-.836 -4.873a1 1 0 0 1 .136 -.696l.07 -.099l.082 -.09l3.546 -3.453l-4.891 -.708a1 1 0 0 1 -.62 -.344l-.073 -.097l-.06 -.106l-2.183 -4.424z"})});import{jsx as nv}from"react/jsx-runtime";var Uf=e=>nv(r,{...e,children:nv("path",{d:"M16 18a2 2 0 0 1 2 2a2 2 0 0 1 2 -2a2 2 0 0 1 -2 -2a2 2 0 0 1 -2 2zm0 -12a2 2 0 0 1 2 2a2 2 0 0 1 2 -2a2 2 0 0 1 -2 -2a2 2 0 0 1 -2 2zm-7 12a6 6 0 0 1 6 -6a6 6 0 0 1 -6 -6a6 6 0 0 1 -6 6a6 6 0 0 1 6 6z"})});import{jsx as rv}from"react/jsx-runtime";var ya=e=>rv(r,{...e,children:rv("path",{d:"M5 5m0 2a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2z"})});import{jsx as av,jsxs as Nw}from"react/jsx-runtime";var Gf=e=>Nw(r,{...e,children:[av("path",{d:"M5 12l14 0"}),av("path",{d:"M16 6.5a4 2 0 0 0 -4 -1.5h-1a3.5 3.5 0 0 0 0 7h2a3.5 3.5 0 0 1 0 7h-1.5a4 2 0 0 1 -4 -1.5"})]});import{jsx as lv,jsxs as Tw}from"react/jsx-runtime";var $f=e=>Tw(r,{...e,children:[lv("path",{d:"M12 12m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"}),lv("path",{d:"M3 12h1m8 -9v1m8 8h1m-9 8v1m-6.4 -15.4l.7 .7m12.1 -.7l-.7 .7m0 11.4l.7 .7m-12.1 -.7l-.7 .7"})]});import{jsx as cv,jsxs as Rw}from"react/jsx-runtime";var Wf=e=>Rw(r,{...e,children:[cv("path",{d:"M7 10h14l-4 -4"}),cv("path",{d:"M17 14h-14l4 4"})]});import{jsx as gc,jsxs as Lw}from"react/jsx-runtime";var qf=e=>Lw(r,{...e,children:[gc("path",{d:"M16 3l4 4l-4 4"}),gc("path",{d:"M10 7l10 0"}),gc("path",{d:"M8 13l-4 4l4 4"}),gc("path",{d:"M4 17l9 0"})]});import{jsx as Xf,jsxs as Ew}from"react/jsx-runtime";var Kf=e=>Ew(r,{...e,children:[Xf("path",{d:"M3 5a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14z"}),Xf("path",{d:"M3 10h18"}),Xf("path",{d:"M10 3v18"})]});import{jsx as iv,jsxs as Dw}from"react/jsx-runtime";var Ia=e=>Dw(r,{...e,children:[iv("path",{d:"M7.5 7.5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),iv("path",{d:"M3 6v5.172a2 2 0 0 0 .586 1.414l7.71 7.71a2.41 2.41 0 0 0 3.408 0l5.592 -5.592a2.41 2.41 0 0 0 0 -3.408l-7.71 -7.71a2 2 0 0 0 -1.414 -.586h-5.172a3 3 0 0 0 -3 3z"})]});import{jsx as Vn,jsxs as Fw}from"react/jsx-runtime";var Yf=e=>Fw(r,{...e,children:[Vn("path",{d:"M12 12m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),Vn("path",{d:"M12 12m-8 0a8 8 0 1 0 16 0a8 8 0 1 0 -16 0"}),Vn("path",{d:"M12 2l0 2"}),Vn("path",{d:"M12 20l0 2"}),Vn("path",{d:"M20 12l2 0"}),Vn("path",{d:"M2 12l2 0"})]});import{jsx as Zf,jsxs as Aw}from"react/jsx-runtime";var Qf=e=>Aw(r,{...e,children:[Zf("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Zf("path",{d:"M12 12m-5 0a5 5 0 1 0 10 0a5 5 0 1 0 -10 0"}),Zf("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"})]});import{jsx as Jf,jsxs as Ow}from"react/jsx-runtime";var jf=e=>Ow(r,{...e,children:[Jf("path",{d:"M9 15v-7a3 3 0 0 1 6 0v7"}),Jf("path",{d:"M9 11h6"}),Jf("path",{d:"M5 19h14"})]});import{jsx as sv,jsxs as _w}from"react/jsx-runtime";var eh=e=>_w(r,{...e,children:[sv("path",{d:"M6 4l12 0"}),sv("path",{d:"M12 4l0 16"})]});import{jsx as vc,jsxs as zw}from"react/jsx-runtime";var th=e=>zw(r,{...e,children:[vc("path",{d:"M3 19h4l10.5 -10.5a2.828 2.828 0 1 0 -4 -4l-10.5 10.5v4"}),vc("path",{d:"M12.5 5.5l4 4"}),vc("path",{d:"M4.5 13.5l4 4"}),vc("path",{d:"M21 15v4h-8l4 -4z"})]});import{jsx as pv}from"react/jsx-runtime";var oh=e=>pv(r,{...e,children:pv("path",{d:"M7 13v-8a1 1 0 0 0 -1 -1h-2a1 1 0 0 0 -1 1v7a1 1 0 0 0 1 1h3a4 4 0 0 1 4 4v1a2 2 0 0 0 4 0v-5h3a2 2 0 0 0 2 -2l-1 -5a2 3 0 0 0 -2 -2h-7a3 3 0 0 0 -3 3"})});import{jsx as dv}from"react/jsx-runtime";var nh=e=>dv(r,{...e,children:dv("path",{d:"M7 11v8a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1v-7a1 1 0 0 1 1 -1h3a4 4 0 0 0 4 -4v-1a2 2 0 0 1 4 0v5h3a2 2 0 0 1 2 2l-1 5a2 3 0 0 1 -2 2h-7a3 3 0 0 1 -3 -3"})});import{jsx as mv,jsxs as Vw}from"react/jsx-runtime";var rh=e=>Vw(r,{isFilled:!0,...e,children:[mv("path",{d:"M13 3a3 3 0 0 1 2.995 2.824l.005 .176v4h2a3 3 0 0 1 2.98 2.65l.015 .174l.005 .176l-.02 .196l-1.006 5.032c-.381 1.626 -1.502 2.796 -2.81 2.78l-.164 -.008h-8a1 1 0 0 1 -.993 -.883l-.007 -.117l.001 -9.536a1 1 0 0 1 .5 -.865a2.998 2.998 0 0 0 1.492 -2.397l.007 -.202v-1a3 3 0 0 1 3 -3z"}),mv("path",{d:"M5 10a1 1 0 0 1 .993 .883l.007 .117v9a1 1 0 0 1 -.883 .993l-.117 .007h-1a2 2 0 0 1 -1.995 -1.85l-.005 -.15v-7a2 2 0 0 1 1.85 -1.995l.15 -.005h1z"})]});import{jsx as uv,jsxs as Hw}from"react/jsx-runtime";var ah=e=>Hw(r,{...e,children:[uv("path",{d:"M8 12m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),uv("path",{d:"M2 6m0 6a6 6 0 0 1 6 -6h8a6 6 0 0 1 6 6v0a6 6 0 0 1 -6 6h-8a6 6 0 0 1 -6 -6z"})]});import{jsx as Hn,jsxs as Uw}from"react/jsx-runtime";var lh=e=>Uw(r,{...e,children:[Hn("path",{d:"M9 6.371c0 4.418 -2.239 6.629 -5 6.629"}),Hn("path",{d:"M4 6.371h7"}),Hn("path",{d:"M5 9c0 2.144 2.252 3.908 6 4"}),Hn("path",{d:"M12 20l4 -9l4 9"}),Hn("path",{d:"M19.1 18h-6.2"}),Hn("path",{d:"M6.694 3l.793 .582"})]});import{jsx as Ca,jsxs as Gw}from"react/jsx-runtime";var rt=e=>Gw(r,{...e,children:[Ca("path",{d:"M4 7l16 0"}),Ca("path",{d:"M10 11l0 6"}),Ca("path",{d:"M14 11l0 6"}),Ca("path",{d:"M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12"}),Ca("path",{d:"M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3"})]});import{jsx as fv,jsxs as $w}from"react/jsx-runtime";var ch=e=>$w(r,{...e,children:[fv("path",{d:"M3 17l6 -6l4 4l8 -8"}),fv("path",{d:"M14 7l7 0l0 7"})]});import{jsx as hv,jsxs as Ww}from"react/jsx-runtime";var ih=e=>Ww(r,{...e,children:[hv("path",{d:"M7 5v5a5 5 0 0 0 10 0v-5"}),hv("path",{d:"M5 19h14"})]});import{jsx as gv,jsxs as qw}from"react/jsx-runtime";var sh=e=>qw(r,{...e,children:[gv("path",{d:"M9 14l-4 -4l4 -4"}),gv("path",{d:"M5 10h11a4 4 0 1 1 0 8h-1"})]});import{jsx as ph,jsxs as Xw}from"react/jsx-runtime";var dh=e=>Xw(r,{...e,children:[ph("path",{d:"M3 13a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v6a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2l0 -6"}),ph("path",{d:"M9 16a1 1 0 1 0 2 0a1 1 0 0 0 -2 0"}),ph("path",{d:"M13 11v-4a4 4 0 1 1 8 0v4"})]});import{jsx as mh,jsxs as Kw}from"react/jsx-runtime";var Oo=e=>Kw(r,{...e,children:[mh("path",{d:"M7 18a4.6 4.4 0 0 1 0 -9a5 4.5 0 0 1 11 2h1a3.5 3.5 0 0 1 0 7h-1"}),mh("path",{d:"M9 15l3 -3l3 3"}),mh("path",{d:"M12 12l0 9"})]});import{jsx as vv,jsxs as Yw}from"react/jsx-runtime";var xa=e=>Yw(r,{...e,children:[vv("path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),vv("path",{d:"M6 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2"})]});import{jsx as uh,jsxs as Zw}from"react/jsx-runtime";var fh=e=>Zw(r,{...e,children:[uh("path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),uh("path",{d:"M6 21v-2a4 4 0 0 1 4 -4h4"}),uh("path",{d:"M15 19l2 2l4 -4"})]});import{jsx as bc,jsxs as Qw}from"react/jsx-runtime";var hh=e=>Qw(r,{...e,children:[bc("path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),bc("path",{d:"M6 21v-2a4 4 0 0 1 4 -4h3"}),bc("path",{d:"M21 15h-2.5a1.5 1.5 0 0 0 0 3h1a1.5 1.5 0 0 1 0 3h-2.5"}),bc("path",{d:"M19 21v1m0 -8v1"})]});import{jsx as gh,jsxs as Jw}from"react/jsx-runtime";var vh=e=>Jw(r,{...e,children:[gh("path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),gh("path",{d:"M6 21v-2a4 4 0 0 1 4 -4h3.5"}),gh("path",{d:"M18.42 15.61a2.1 2.1 0 0 1 2.97 2.97l-3.39 3.42h-3v-3l3.42 -3.39z"})]});import{jsx as yc,jsxs as jw}from"react/jsx-runtime";var bh=e=>jw(r,{...e,children:[yc("path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),yc("path",{d:"M16 19h6"}),yc("path",{d:"M19 16v6"}),yc("path",{d:"M6 21v-2a4 4 0 0 1 4 -4h4"})]});import{jsx as Ic,jsxs as e5}from"react/jsx-runtime";var yh=e=>e5(r,{...e,children:[Ic("path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),Ic("path",{d:"M6 21v-2a4 4 0 0 1 4 -4h3"}),Ic("path",{d:"M16 22l5 -5"}),Ic("path",{d:"M21 21.5v-4.5h-4.5"})]});import{jsx as Cc,jsxs as t5}from"react/jsx-runtime";var Ih=e=>t5(r,{...e,children:[Cc("path",{d:"M9 7m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"}),Cc("path",{d:"M3 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2"}),Cc("path",{d:"M16 3.13a4 4 0 0 1 0 7.75"}),Cc("path",{d:"M21 21v-2a4 4 0 0 0 -3 -3.85"})]});import{jsx as Ch,jsxs as o5}from"react/jsx-runtime";var xh=e=>o5(r,{...e,children:[Ch("path",{d:"M9 10a3 3 0 1 0 6 0a3 3 0 0 0 -6 0"}),Ch("path",{d:"M6 21v-1a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v1"}),Ch("path",{d:"M3 5a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14z"})]});import{jsx as Pa,jsxs as n5}from"react/jsx-runtime";var Ph=e=>n5(r,{...e,children:[Pa("path",{d:"M6 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),Pa("path",{d:"M4 21v-2a4 4 0 0 1 4 -4h6"}),Pa("path",{d:"M16 3.13a4 4 0 0 1 0 7.75"}),Pa("path",{d:"M19 22v-6"}),Pa("path",{d:"M22 19l-3 -3l-3 3"})]});import{jsx as bv,jsxs as r5}from"react/jsx-runtime";var Sh=e=>r5(r,{...e,children:[bv("path",{d:"M15 10l4.553 -2.276a1 1 0 0 1 1.447 .894v6.764a1 1 0 0 1 -1.447 .894l-4.553 -2.276v-4z"}),bv("path",{d:"M3 6m0 2a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-8a2 2 0 0 1 -2 -2z"})]});import{jsx as wh,jsxs as a5}from"react/jsx-runtime";var Mh=e=>a5(r,{...e,children:[wh("path",{d:"M12 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0"}),wh("path",{d:"M12 10m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),wh("path",{d:"M8 16l-2.091 3.486a1 1 0 0 0 .857 1.514h10.468a1 1 0 0 0 .857 -1.514l-2.091 -3.486"})]});import{jsx as kh,jsxs as l5}from"react/jsx-runtime";var Sa=e=>l5(r,{...e,children:[kh("path",{d:"M15 8a5 5 0 0 1 0 8"}),kh("path",{d:"M17.7 5a9 9 0 0 1 0 14"}),kh("path",{d:"M6 15h-2a1 1 0 0 1 -1 -1v-4a1 1 0 0 1 1 -1h2l3.5 -4.5a.8 .8 0 0 1 1.5 .5v14a.8 .8 0 0 1 -1.5 .5l-3.5 -4.5"})]});import{jsx as yv,jsxs as c5}from"react/jsx-runtime";var wa=e=>c5(r,{...e,children:[yv("path",{d:"M15 8a5 5 0 0 1 0 8"}),yv("path",{d:"M6 15h-2a1 1 0 0 1 -1 -1v-4a1 1 0 0 1 1 -1h2l3.5 -4.5a.8 .8 0 0 1 1.5 .5v14a.8 .8 0 0 1 -1.5 .5l-3.5 -4.5"})]});import{jsx as Iv,jsxs as i5}from"react/jsx-runtime";var Ma=e=>i5(r,{...e,children:[Iv("path",{d:"M6 15h-2a1 1 0 0 1 -1 -1v-4a1 1 0 0 1 1 -1h2l3.5 -4.5a.8 .8 0 0 1 1.5 .5v14a.8 .8 0 0 1 -1.5 .5l-3.5 -4.5"}),Iv("path",{d:"M16 10l4 4m0 -4l-4 4"})]});import{jsx as Cv}from"react/jsx-runtime";var Bh=e=>Cv(r,{...e,children:Cv("path",{d:"M7 10h3v-3l-3.5 -3.5a6 6 0 0 1 8 8l6 6a2 2 0 0 1 -3 3l-6 -6a6 6 0 0 1 -8 -8l3.5 3.5"})});import{jsx as xv,jsxs as s5}from"react/jsx-runtime";var Ve=e=>s5(r,{...e,children:[xv("path",{d:"M18 6l-12 12"}),xv("path",{d:"M6 6l12 12"})]});import{jsx as Pv,jsxs as p5}from"react/jsx-runtime";var Nh=e=>p5(r,{...e,children:[Pv("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),Pv("path",{d:"M10 10l4 4m0 -4l-4 4"})]});import{jsx as Sv}from"react/jsx-runtime";var Th=e=>Sv(r,{isFilled:!0,...e,children:Sv("path",{d:"M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-6.489 5.8a1 1 0 0 0 -1.218 1.567l1.292 1.293l-1.292 1.293l-.083 .094a1 1 0 0 0 1.497 1.32l1.293 -1.292l1.293 1.292l.094 .083a1 1 0 0 0 1.32 -1.497l-1.292 -1.293l1.292 -1.293l.083 -.094a1 1 0 0 0 -1.497 -1.32l-1.293 1.292l-1.293 -1.292l-.094 -.083z"})});import{jsx as wv,jsxs as d5}from"react/jsx-runtime";var Rh=e=>d5(r,{...e,children:[wv("path",{d:"M3 5a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14z"}),wv("path",{d:"M9 9l6 6m0 -6l-6 6"})]});import{jsx as xc,jsxs as m5}from"react/jsx-runtime";var Lh=e=>m5(r,{...e,children:[xc("path",{d:"M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0"}),xc("path",{d:"M7 10l6 0"}),xc("path",{d:"M10 7l0 6"}),xc("path",{d:"M21 21l-6 -6"})]});import{jsx as Eh,jsxs as u5}from"react/jsx-runtime";var Dh=e=>u5(r,{...e,children:[Eh("path",{d:"M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0"}),Eh("path",{d:"M7 10l6 0"}),Eh("path",{d:"M21 21l-6 -6"})]});var It=(u=>(u["48AlertFeatured"]="48AlertFeatured",u["48SuccessFeatured"]="48SuccessFeatured",u.AlertCircle="AlertCircle",u.AlertOctagon="AlertOctagon",u.AlertTriangle="AlertTriangle",u.Apps="Apps",u.ArrowBarDown="ArrowBarDown",u.ArrowBarLeft="ArrowBarLeft",u.ArrowBarRight="ArrowBarRight",u.ArrowBarToDown="ArrowBarToDown",u.ArrowBarToLeft="ArrowBarToLeft",u.ArrowBarToRight="ArrowBarToRight",u.ArrowBarToUp="ArrowBarToUp",u.ArrowBarUp="ArrowBarUp",u.Archive="Archive",u.ArrowDown="ArrowDown",u.ArrowDownLeft="ArrowDownLeft",u.ArrowDownNarrow="ArrowDownNarrow",u.ArrowDownRight="ArrowDownRight",u.ArrowLeft="ArrowLeft",u.ArrowLeftNarrow="ArrowLeftNarrow",u.ArrowRight="ArrowRight",u.ArrowRightNarrow="ArrowRightNarrow",u.ArrowUp="ArrowUp",u.ArrowUpLeft="ArrowUpLeft",u.ArrowUpNarrow="ArrowUpNarrow",u.ArrowUpRight="ArrowUpRight",u.Attachment="Attachment",u.BarChart="BarChart",u.BarChartSquare="BarChartSquare",u.Bell="Bell",u.Bold="Bold",u.Bookmark="Bookmark",u.BookmarkCheck="BookmarkCheck",u.BookmarkCheckFill="BookmarkCheckFill",u.BookmarkFill="BookmarkFill",u.BookmarkMinus="BookmarkMinus",u.BookmarkPlus="BookmarkPlus",u.BookmarkX="BookmarkX",u.BookOpen="BookOpen",u.BoxLines="BoxLines",u.BoxText="BoxText",u.BracketsCheck="BracketsCheck",u.BracketsEllipses="BracketsEllipses",u.BrickWall="BrickWall",u.Briefcase="Briefcase",u.Building="Building",u.Calculator="Calculator",u.Calendar="Calendar",u.Certificate="Certificate",u.Check="Check",u.CheckCircle="CheckCircle",u.CheckCircleBroken="CheckCircleBroken",u.CheckFill="CheckFill",u.CheckVerified="CheckVerified",u.CheckVerifiedFill="CheckVerifiedFill",u.ChevronDown="ChevronDown",u.ChevronDownDouble="ChevronDownDouble",u.ChevronDownLeft="ChevronDownLeft",u.ChevronDownLeftDouble="ChevronDownLeftDouble",u.ChevronDownRight="ChevronDownRight",u.ChevronDownRightDouble="ChevronDownRightDouble",u.ChevronLeft="ChevronLeft",u.ChevronLeftDouble="ChevronLeftDouble",u.ChevronRight="ChevronRight",u.ChevronRightDouble="ChevronRightDouble",u.ChevronSelectorVertical="ChevronSelectorVertical",u.ChevronUp="ChevronUp",u.ChevronUpDouble="ChevronUpDouble",u.ChevronUpLeft="ChevronUpLeft",u.ChevronUpLeftDouble="ChevronUpLeftDouble",u.ChevronUpRight="ChevronUpRight",u.ChevronUpRightDouble="ChevronUpRightDouble",u.Click="Click",u.Clock="Clock",u.ClockFastForward="ClockFastForward",u.ClockPlay="ClockPlay",u.ClockRewind="ClockRewind",u.Clone="Clone",u.Code="Code",u.CodeBrowser="CodeBrowser",u.CodeCircle="CodeCircle",u.Colors="Colors",u.ColumnEdit="ColumnEdit",u.Copy="Copy",u.Copy2="Copy2",u.CopyCheck="CopyCheck",u.CreditCard="CreditCard",u.Cube="Cube",u.CubeOutline="CubeOutline",u.CursorBox="CursorBox",u.Dataflow="Dataflow",u.Dataflow2="Dataflow2",u.Dataflow3="Dataflow3",u.DistributeHorizontal="DistributeHorizontal",u.Dollar="Dollar",u.DollarCircle="DollarCircle",u.Dot="Dot",u.DotFill="DotFill",u.DotsGrid="DotsGrid",u.DotsHorizontal="DotsHorizontal",u.DotsVertical="DotsVertical",u.Download="Download",u.Edit="Edit",u.Editable="Editable",u.Expand="Expand",u.ExternalLink="ExternalLink",u.ExternalLink2="ExternalLink2",u.Eye="Eye",u.EyeHidden="EyeHidden",u.EyeHidden2="EyeHidden2",u.FaceAngry="FaceAngry",u.FaceLaugh="FaceLaugh",u.FaceSmile="FaceSmile",u.File="File",u.FileCheck="FileCheck",u.FileCsv="FileCsv",u.FileDownload="FileDownload",u.FileJson="FileJson",u.FileList="FileList",u.FileMusic="FileMusic",u.FilePdf="FilePdf",u.Files="Files",u.FileSpreadsheet="FileSpreadsheet",u.FileText="FileText",u.FileUpload="FileUpload",u.FileXls="FileXls",u.FileXlsx="FileXlsx",u.FileZip="FileZip",u.Filter="Filter",u.Filter2="Filter2",u.Flag="Flag",u.Flag2="Flag2",u.FlagFill="FlagFill",u.Focus="Focus",u.Folder="Folder",u.FolderExport="FolderExport",u.FolderImport="FolderImport",u.GraduationCap="GraduationCap",u.GripVertical="GripVertical",u.Hand="Hand",u.HandShield="HandShield",u.Hash="Hash",u.HeadsetMic="HeadsetMic",u.Heart="Heart",u.HeartFill="HeartFill",u.House="House",u.HouseLine="HouseLine",u.Image="Image",u.Image2="Image2",u.ImageCheck="ImageCheck",u.ImageOff="ImageOff",u.Import="Import",u.Inbox="Inbox",u.InfoCircle="InfoCircle",u.InfoHexagon="InfoHexagon",u.Italic="Italic",u.LayersMultiple="LayersMultiple",u.LayersSingle="LayersSingle",u.Layout="Layout",u.Layout2="Layout2",u.LayoutColumns="LayoutColumns",u.LayoutCustom="LayoutCustom",u.LayoutStuffed="LayoutStuffed",u.LayoutTile="LayoutTile",u.LifeBuoy="LifeBuoy",u.Lightbulb="Lightbulb",u.Lightning="Lightning",u.LightningFast="LightningFast",u.LineChart="LineChart",u.LineChartBar="LineChartBar",u.LineChartBreakoutSquare="LineChartBreakoutSquare",u.LineChartUp="LineChartUp",u.Lines="Lines",u.LinesCheck="LinesCheck",u.LinesPlay="LinesPlay",u.Link="Link",u.Link2="Link2",u.LinkOff="LinkOff",u.ListBullet="ListBullet",u.ListOrder="ListOrder",u.Lock="Lock",u.LockFill="LockFill",u.LogIn="LogIn",u.LogOut="LogOut",u.LogOut2="LogOut2",u.MagicWand="MagicWand",u.Mail="Mail",u.MailOpen="MailOpen",u.MapPin="MapPin",u.Maximize="Maximize",u.Maximize2="Maximize2",u.MessageCircle="MessageCircle",u.MessageSquare="MessageSquare",u.MessageSquare2="MessageSquare2",u.MessageXSquare="MessageXSquare",u.Microphone="Microphone",u.Minimize="Minimize",u.Minimize2="Minimize2",u.MinusCircle="MinusCircle",u.Mobile="Mobile",u.Monitor="Monitor",u.Monitor2="Monitor2",u.Moon="Moon",u.MoonCircle="MoonCircle",u.Movie="Movie",u.NavigationPointer="NavigationPointer",u.NotificationBox="NotificationBox",u.Package="Package",u.Palette="Palette",u.PasscodeLock="PasscodeLock",u.Pause="Pause",u.PauseCircle="PauseCircle",u.PCSetup="PCSetup",u.Pen="Pen",u.PercentageCircle="PercentageCircle",u.Perspective="Perspective",u.PhoneCall="PhoneCall",u.Pin="Pin",u.Play="Play",u.PlayCircle="PlayCircle",u.Plus="Plus",u.PlusCircle="PlusCircle",u.Printer="Printer",u.Pulse="Pulse",u.QuestionCircle="QuestionCircle",u.Quote="Quote",u.RadioButton="RadioButton",u.RadioButtonFill="RadioButtonFill",u.Receipt="Receipt",u.ReceiptCheck="ReceiptCheck",u.Redo="Redo",u.Refresh="Refresh",u.Refresh2="Refresh2",u.Refresh3="Refresh3",u.Repeat="Repeat",u.Replace="Replace",u.Replay="Replay",u.Restore="Restore",u.Rocket="Rocket",u.RoundChart="RoundChart",u.RoundChart2="RoundChart2",u.Route="Route",u.Save="Save",u.ScanDots="ScanDots",u.Scissors="Scissors",u.Search="Search",u.Send="Send",u.Server="Server",u.Settings="Settings",u.Settings2="Settings2",u.Share="Share",u.ShieldLightning="ShieldLightning",u.ShieldPlus="ShieldPlus",u.ShieldRemove="ShieldRemove",u.ShoppingBag="ShoppingBag",u.ShoppingCart="ShoppingCart",u.Shrink="Shrink",u.Shuffle="Shuffle",u.SkipForward="SkipForward",u.SlashCircle="SlashCircle",u.SlashOctagon="SlashOctagon",u.SocialAndroid="SocialAndroid",u.SocialApple="SocialApple",u.SocialGithub="SocialGithub",u.SocialGlobe="SocialGlobe",u.SocialGoogle="SocialGoogle",u.SocialInstagram="SocialInstagram",u.SocialLinkedin="SocialLinkedin",u.SocialMastercard="SocialMastercard",u.SocialReact="SocialReact",u.SocialVisa="SocialVisa",u.SocialX="SocialX",u.Speedometer="Speedometer",u.Stairs="Stairs",u.Star="Star",u.StarFill="StarFill",u.StarHalf="StarHalf",u.Stars="Stars",u.Stop="Stop",u.Strikethrough="Strikethrough",u.Sun="Sun",u.Swap="Swap",u.SwitchHorizontal="SwitchHorizontal",u.Table="Table",u.Tag="Tag",u.Target="Target",u.Target2="Target2",u.TextFormat="TextFormat",u.TextFormat2="TextFormat2",u.TextHighlight="TextHighlight",u.ThumbsDown="ThumbsDown",u.ThumbsUp="ThumbsUp",u.ThumbsUpFill="ThumbsUpFill",u.Toggle="Toggle",u.Translate="Translate",u.Trash="Trash",u.Trending="Trending",u.Underline="Underline",u.Undo="Undo",u.Unlock="Unlock",u.UploadCloud="UploadCloud",u.User="User",u.UserCheck="UserCheck",u.UserDollar="UserDollar",u.UserEdit="UserEdit",u.UserPlus="UserPlus",u.UserRight="UserRight",u.Users="Users",u.UserSquare="UserSquare",u.UsersUp="UsersUp",u.UserVoice="UserVoice",u.Video="Video",u.VideoChat="VideoChat",u.Volume="Volume",u.VolumeDown="VolumeDown",u.VolumeMute="VolumeMute",u.Wrench="Wrench",u.X="X",u.XCircle="XCircle",u.XCircleFill="XCircleFill",u.XSquare="XSquare",u.ZoomIn="ZoomIn",u.ZoomOut="ZoomOut",u))(It||{});import{jsx as f}from"react/jsx-runtime";function Ce({name:e,...t}){switch(e){case"48AlertFeatured":return f(fs,{...t});case"48SuccessFeatured":return f(hs,{...t});case"AlertCircle":return f(To,{...t});case"AlertOctagon":return f(vs,{...t});case"AlertTriangle":return f(ys,{...t});case"ArrowBarDown":return f(Ps,{...t});case"ArrowBarLeft":return f(Ss,{...t});case"ArrowBarRight":return f(ws,{...t});case"ArrowBarToDown":return f(Ms,{...t});case"ArrowBarToLeft":return f(ks,{...t});case"ArrowBarToRight":return f(Bs,{...t});case"ArrowBarToUp":return f(Ns,{...t});case"ArrowBarUp":return f(Ts,{...t});case"Apps":return f(Is,{...t});case"Archive":return f(xs,{...t});case"ArrowDown":return f(Ls,{...t});case"ArrowDownLeft":return f(Es,{...t});case"ArrowDownNarrow":return f(Fs,{...t});case"ArrowDownRight":return f(As,{...t});case"ArrowLeft":return f(_s,{...t});case"ArrowLeftNarrow":return f(Vs,{...t});case"ArrowRight":return f(Us,{...t});case"ArrowRightNarrow":return f($s,{...t});case"ArrowUp":return f(qs,{...t});case"ArrowUpLeft":return f(Xs,{...t});case"ArrowUpNarrow":return f(Ys,{...t});case"ArrowUpRight":return f(Zs,{...t});case"Attachment":return f(Qs,{...t});case"BarChart":return f(Js,{...t});case"BarChartSquare":return f(js,{...t});case"Bell":return f(ep,{...t});case"Bold":return f(tp,{...t});case"BookOpen":return f(cp,{...t});case"Bookmark":return f(op,{...t});case"BookmarkCheck":return f(cs,{...t});case"BookmarkCheckFill":return f(is,{...t});case"BookmarkFill":return f(np,{...t});case"BookmarkMinus":return f(rp,{...t});case"BookmarkPlus":return f(ps,{...t});case"BookmarkX":return f(lp,{...t});case"BoxLines":return f(ip,{...t});case"BoxText":return f(pp,{...t});case"BracketsCheck":return f(mp,{...t});case"BracketsEllipses":return f(up,{...t});case"BrickWall":return f(fp,{...t});case"Briefcase":return f(hp,{...t});case"Building":return f(ds,{...t});case"Calculator":return f(gp,{...t});case"Calendar":return f(Lr,{...t});case"Certificate":return f(vp,{...t});case"Check":return f(Ft,{...t});case"CheckCircle":return f(Ro,{...t});case"CheckCircleBroken":return f(bp,{...t});case"CheckFill":return f(yp,{...t});case"CheckVerified":return f(Ip,{...t});case"CheckVerifiedFill":return f(Cp,{...t});case"ChevronDown":return f(Er,{...t});case"ChevronDownDouble":return f(xp,{...t});case"ChevronDownLeft":return f(Pp,{...t});case"ChevronDownLeftDouble":return f(Sp,{...t});case"ChevronDownRight":return f(wp,{...t});case"ChevronDownRightDouble":return f(Mp,{...t});case"ChevronLeft":return f(At,{...t});case"ChevronLeftDouble":return f(kp,{...t});case"ChevronRight":return f(mt,{...t});case"ChevronRightDouble":return f(Dr,{...t});case"ChevronSelectorVertical":return f(Bp,{...t});case"ChevronUp":return f(Ot,{...t});case"ChevronUpDouble":return f(Np,{...t});case"ChevronUpLeft":return f(Tp,{...t});case"ChevronUpLeftDouble":return f(Rp,{...t});case"ChevronUpRight":return f(Lp,{...t});case"ChevronUpRightDouble":return f(Ep,{...t});case"Click":return f(Dp,{...t});case"Clock":return f(Fp,{...t});case"ClockFastForward":return f(Ap,{...t});case"ClockPlay":return f(_p,{...t});case"ClockRewind":return f(zp,{...t});case"Clone":return f(Vp,{...t});case"Code":return f(Up,{...t});case"CodeBrowser":return f(Gp,{...t});case"CodeCircle":return f(Wp,{...t});case"Colors":return f(Xp,{...t});case"ColumnEdit":return f(ms,{...t});case"Copy":return f(Kp,{...t});case"Copy2":return f(Yp,{...t});case"CopyCheck":return f(Qp,{...t});case"Files":return f(Od,{...t});case"CreditCard":return f(Jp,{...t});case"Cube":return f(jp,{...t});case"CubeOutline":return f(ed,{...t});case"CursorBox":return f(Ar,{...t});case"Dataflow":return f(td,{...t});case"Dataflow2":return f(od,{...t});case"Dataflow3":return f(nd,{...t});case"DistributeHorizontal":return f(ad,{...t});case"Dollar":return f(ld,{...t});case"DollarCircle":return f(id,{...t});case"Dot":return f(sd,{...t});case"DotFill":return f(pd,{...t});case"DotsGrid":return f(dd,{...t});case"DotsHorizontal":return f(ud,{...t});case"DotsVertical":return f(Bn,{...t});case"Download":return f(gd,{...t});case"Edit":return f(vd,{...t});case"Editable":return f(yd,{...t});case"Expand":return f(Id,{...t});case"ExternalLink":return f(xd,{...t});case"ExternalLink2":return f(Sd,{...t});case"Eye":return f(wd,{...t});case"EyeHidden":return f(kd,{...t});case"EyeHidden2":return f(Bd,{...t});case"FaceAngry":return f(Nd,{...t});case"FaceLaugh":return f(Td,{...t});case"FaceSmile":return f(Rd,{...t});case"File":return f(Eo,{...t});case"FileCheck":return f(Ed,{...t});case"FileCsv":return f(Vr,{...t});case"FileDownload":return f(Dd,{...t});case"FileJson":return f(Hr,{...t});case"FileList":return f(Fd,{...t});case"FileMusic":return f(nt,{...t});case"FilePdf":return f(Do,{...t});case"FileSpreadsheet":return f(Gr,{...t});case"FileText":return f(zt,{...t});case"FileUpload":return f(_d,{...t});case"FileXls":return f(Wr,{...t});case"FileXlsx":return f(qr,{...t});case"FileZip":return f(yt,{...t});case"Filter":return f(zd,{...t});case"Filter2":return f(Xr,{...t});case"Flag":return f(Hd,{...t});case"Flag2":return f(Ud,{...t});case"FlagFill":return f(Gd,{...t});case"Focus":return f($d,{...t});case"Folder":return f(Wd,{...t});case"FolderExport":return f(qd,{...t});case"FolderImport":return f(Xd,{...t});case"GraduationCap":return f(Kd,{...t});case"GripVertical":return f(Yd,{...t});case"Hand":return f(Zd,{...t});case"HandShield":return f(Qd,{...t});case"Hash":return f(Jd,{...t});case"HeadsetMic":return f(jd,{...t});case"Heart":return f(em,{...t});case"HeartFill":return f(tm,{...t});case"House":return f(nm,{...t});case"HouseLine":return f(Yr,{...t});case"Image":return f(Ae,{...t});case"Image2":return f(rm,{...t});case"ImageCheck":return f(am,{...t});case"ImageOff":return f(lm,{...t});case"Import":return f(cm,{...t});case"Inbox":return f(im,{...t});case"InfoCircle":return f(pm,{...t});case"InfoHexagon":return f(mm,{...t});case"Italic":return f(fm,{...t});case"LayersMultiple":return f(gm,{...t});case"LayersSingle":return f(vm,{...t});case"Layout":return f(bm,{...t});case"Layout2":return f(Im,{...t});case"LayoutColumns":return f(Cm,{...t});case"LayoutCustom":return f(xm,{...t});case"LayoutStuffed":return f(Sm,{...t});case"LayoutTile":return f(wm,{...t});case"LifeBuoy":return f(Mm,{...t});case"Lightbulb":return f(Bm,{...t});case"Lightning":return f(Nm,{...t});case"LightningFast":return f(Tm,{...t});case"LineChartBar":return f(Lm,{...t});case"LineChartBreakoutSquare":return f(Em,{...t});case"LineChart":return f(Rm,{...t});case"LineChartUp":return f(Fm,{...t});case"Lines":return f(Am,{...t});case"LinesCheck":return f(Om,{...t});case"LinesPlay":return f(_m,{...t});case"Link":return f(Vm,{...t});case"Link2":return f(Hm,{...t});case"LinkOff":return f(Um,{...t});case"ListBullet":return f(Gm,{...t});case"ListOrder":return f($m,{...t});case"Lock":return f(qm,{...t});case"LockFill":return f(Xm,{...t});case"LogIn":return f(Ym,{...t});case"LogOut":return f(Qm,{...t});case"LogOut2":return f(jm,{...t});case"MagicWand":return f(eu,{...t});case"Mail":return f(tu,{...t});case"MailOpen":return f(ou,{...t});case"MapPin":return f(nu,{...t});case"Maximize":return f(ta,{...t});case"Maximize2":return f(ru,{...t});case"MessageCircle":return f(au,{...t});case"MessageSquare":return f(cu,{...t});case"MessageSquare2":return f(iu,{...t});case"MessageXSquare":return f(su,{...t});case"Microphone":return f(na,{...t});case"Minimize":return f(ra,{...t});case"Minimize2":return f(pu,{...t});case"MinusCircle":return f(du,{...t});case"Mobile":return f(uu,{...t});case"Monitor":return f(fu,{...t});case"Monitor2":return f(hu,{...t});case"Moon":return f(gu,{...t});case"MoonCircle":return f(vu,{...t});case"Movie":return f(ut,{...t});case"NavigationPointer":return f(bu,{...t});case"NotificationBox":return f(yu,{...t});case"Package":return f(Iu,{...t});case"Palette":return f(Cu,{...t});case"PasscodeLock":return f(xu,{...t});case"Pause":return f(ft,{...t});case"PauseCircle":return f(Su,{...t});case"PCSetup":return f(Mu,{...t});case"Pen":return f(Bu,{...t});case"PercentageCircle":return f(Nu,{...t});case"Perspective":return f(Tu,{...t});case"PhoneCall":return f(Lu,{...t});case"Pin":return f(ia,{...t});case"Play":return f(ht,{...t});case"PlayCircle":return f(Du,{...t});case"Plus":return f(sa,{...t});case"PlusCircle":return f(so,{...t});case"Printer":return f(Ou,{...t});case"Pulse":return f(_u,{...t});case"QuestionCircle":return f(pa,{...t});case"Quote":return f(Vu,{...t});case"RadioButton":return f(Hu,{...t});case"RadioButtonFill":return f(Uu,{...t});case"Receipt":return f(Gu,{...t});case"ReceiptCheck":return f($u,{...t});case"Redo":return f(Wu,{...t});case"Refresh":return f(da,{...t});case"Refresh2":return f(qu,{...t});case"Refresh3":return f(Xu,{...t});case"Repeat":return f(Ku,{...t});case"Replace":return f(Yu,{...t});case"Replay":return f(ma,{...t});case"Restore":return f(Qu,{...t});case"Rocket":return f(ju,{...t});case"RoundChart":return f(ef,{...t});case"RoundChart2":return f(tf,{...t});case"Route":return f(nf,{...t});case"Save":return f(af,{...t});case"ScanDots":return f(lf,{...t});case"Scissors":return f(ua,{...t});case"Search":return f(Vt,{...t});case"Send":return f(cf,{...t});case"Server":return f(sf,{...t});case"Settings":return f(pf,{...t});case"Settings2":return f(df,{...t});case"Share":return f(mf,{...t});case"ShieldLightning":return f(uf,{...t});case"ShieldPlus":return f(hf,{...t});case"ShieldRemove":return f(vf,{...t});case"ShoppingBag":return f(bf,{...t});case"ShoppingCart":return f(yf,{...t});case"Shrink":return f(If,{...t});case"Shuffle":return f(Cf,{...t});case"SkipForward":return f(xf,{...t});case"SlashCircle":return f(Pf,{...t});case"SlashOctagon":return f(Sf,{...t});case"SocialAndroid":return f(wf,{...t});case"SocialApple":return f(Mf,{...t});case"SocialGithub":return f(kf,{...t});case"SocialGlobe":return f(Bf,{...t});case"SocialGoogle":return f(Nf,{...t});case"SocialInstagram":return f(Rf,{...t});case"SocialLinkedin":return f(Lf,{...t});case"SocialMastercard":return f(Df,{...t});case"SocialReact":return f(Ff,{...t});case"SocialVisa":return f(Af,{...t});case"SocialX":return f(Of,{...t});case"Speedometer":return f(_f,{...t});case"Stairs":return f(zf,{...t});case"Star":return f(ba,{...t});case"StarFill":return f(Vf,{...t});case"StarHalf":return f(Hf,{...t});case"Stars":return f(Uf,{...t});case"Stop":return f(ya,{...t});case"Strikethrough":return f(Gf,{...t});case"Sun":return f($f,{...t});case"Swap":return f(Wf,{...t});case"SwitchHorizontal":return f(qf,{...t});case"Table":return f(Kf,{...t});case"Tag":return f(Ia,{...t});case"Target":return f(Yf,{...t});case"Target2":return f(Qf,{...t});case"TextFormat":return f(jf,{...t});case"TextFormat2":return f(eh,{...t});case"TextHighlight":return f(th,{...t});case"ThumbsDown":return f(oh,{...t});case"ThumbsUp":return f(nh,{...t});case"ThumbsUpFill":return f(rh,{...t});case"Toggle":return f(ah,{...t});case"Translate":return f(lh,{...t});case"Trash":return f(rt,{...t});case"Trending":return f(ch,{...t});case"Underline":return f(ih,{...t});case"Undo":return f(sh,{...t});case"Unlock":return f(dh,{...t});case"UploadCloud":return f(Oo,{...t});case"User":return f(xa,{...t});case"UserCheck":return f(fh,{...t});case"UserDollar":return f(hh,{...t});case"UserEdit":return f(vh,{...t});case"UserPlus":return f(bh,{...t});case"UserRight":return f(yh,{...t});case"UserSquare":return f(xh,{...t});case"Users":return f(Ih,{...t});case"UsersUp":return f(Ph,{...t});case"UserVoice":return f(us,{...t});case"Video":return f(Sh,{...t});case"VideoChat":return f(Mh,{...t});case"Volume":return f(Sa,{...t});case"VolumeDown":return f(wa,{...t});case"VolumeMute":return f(Ma,{...t});case"Wrench":return f(Bh,{...t});case"X":return f(Ve,{...t});case"XCircle":return f(Nh,{...t});case"XCircleFill":return f(Th,{...t});case"XSquare":return f(Rh,{...t});case"ZoomIn":return f(Lh,{...t});case"ZoomOut":return f(Dh,{...t});default:return null}}var Mv=Eo,kv={png:Ae,jpg:Ae,jpeg:Ae,gif:Ae,bmp:Ae,webp:Ae,svg:Ae,avif:Ae,heic:Ae,ico:Ae,tif:Ae,tiff:Ae,mp4:ut,mov:ut,webm:ut,avi:ut,mkv:ut,m4v:ut,ogv:ut,mp3:nt,wav:nt,ogg:nt,oga:nt,m4a:nt,aac:nt,flac:nt,weba:nt,pdf:Do,doc:zt,docx:zt,txt:zt,rtf:zt,odt:zt,json:Hr,csv:Vr,xls:Wr,xlsx:qr,ods:Gr,zip:yt,rar:yt,"7z":yt,tar:yt,gz:yt,tgz:yt};var Fh=e=>{let t=e?.trim().replace(/^\./,"").toLowerCase();return t&&kv[t]||Mv};import{cn as Ah,ColorHelpers as f5}from"@cleen/ui-core";import{forwardRef as h5}from"react";import{Fragment as v5,jsx as ka,jsxs as b5}from"react/jsx-runtime";var g5=h5(function({iconName:t,iconSrc:n,icon:o,iconSize:l=20,header:a,color:c,children:i,classNames:d,styles:s,...p},g){let m=f5.getComputedColor(c);return ka(fe,{ref:g,classNames:{...d,header:{...d?.header,title:Ah("cleen-flex cleen-gap-4",d?.header?.title)}},header:{...a,title:b5(v5,{children:[ka("div",{className:Ah("cleen-flex cleen-w-10 cleen-h-10 cleen-justify-center cleen-items-center cleen-gap-2 cleen-flex-shrink-0 cleen-rounded-xl cleen-border cleen-border-border cleen-bg-background",d?.iconHolder),style:{...m&&{backgroundColor:Mr(m,.85),color:m,borderColor:"transparent"},...s?.iconHolder},children:o||(t?ka(Ce,{name:t,className:"cleen-text-foreground",style:{width:l,height:l,...m&&{color:m}}}):n?ka("img",{src:n,alt:"Icon",className:"cleen-text-foreground",style:{width:l,height:l,...m&&{color:m}}}):null)}),a?.title]})},color:c,...p,children:i&&ka("div",{className:Ah("cleen-flex-1",d?.content),style:s?.content,children:i})})});import{cn as Un}from"@cleen/ui-core";import{forwardRef as y5,useMemo as I5}from"react";import{jsx as Ba}from"react/jsx-runtime";var C5=y5(function({media:t,header:n,color:o,children:l,classNames:a,styles:c,...i},d){let s=I5(()=>{switch(t?.type){case"image":return Ba("img",{...t,alt:t.alt??"Card media",className:Un("cleen-w-full cleen-aspect-video cleen-object-cover",a?.media?.content),style:c?.media?.content});case"video":return Ba("video",{playsInline:!0,controls:!0,...t,className:Un("cleen-w-full cleen-aspect-video cleen-object-cover",a?.media?.content),style:c?.media?.content});case"iframe":return Ba("iframe",{...t,title:t.title??"Card iframe",className:Un("cleen-w-full cleen-aspect-video cleen-object-cover",a?.media?.content),style:c?.media?.content});default:return null}},[t,a?.media,c?.media]);return Ba(fe,{ref:d,color:o,classNames:{...a,container:Un("cleen-pt-0",a?.container),header:{...a?.header,content:Un("cleen-p-0",a?.header?.content)}},header:{...n,...s&&{content:Ba("div",{className:Un("cleen-w-full cleen-overflow-hidden cleen-rounded-t-lg",a?.media?.container),style:c?.media?.container,children:s})}},...i,children:l})});import{cn as Na}from"@cleen/ui-core";import{jsx as Pc,jsxs as x5}from"react/jsx-runtime";var ne=({className:e,classNames:t,style:n,styles:o,infoMessage:l,errorMessage:a,subtitle:c,...i})=>Pc("div",{className:Na("cleen",e),style:n,children:x5("div",{className:Na(t?.container),style:o?.container,...i,children:[l&&Pc("div",{className:Na("cleen-mt-1 cleen-font-normal cleen-text-sm cleen-text-info",t?.infoMessage),style:o?.infoMessage,role:"note",children:l}),a&&Pc("div",{className:Na("cleen-mt-1 cleen-font-medium cleen-text-sm cleen-text-error",t?.errorMessage),style:o?.errorMessage,role:"alert",children:a}),c&&Pc("div",{className:Na("cleen-mt-2 cleen-font-normal cleen-text-sm cleen-text-neutral-600",t?.subtitle),style:o?.subtitle,children:c})]})});import{cn as Ta}from"@cleen/ui-core";import{jsx as Ra,jsxs as P5}from"react/jsx-runtime";var ae=({required:e=!1,tooltip:t,children:n,className:o,classNames:l,style:a,styles:c,...i})=>Ra("div",{className:Ta("cleen",o),style:a,children:P5("label",{...i,className:Ta("cleen-w-full cleen-flex cleen-gap-1 cleen-items-center cleen-font-medium cleen-text-neutral-700 cleen-text-sm cleen-leading-6",l?.container),style:c?.container,children:[Ra("div",{className:Ta({"cleen-flex-1":!e&&!t},l?.label),style:c?.label,children:n}),e&&Ra("span",{className:Ta("cleen-text-primary",l?.required),style:c?.required,children:"*"}),t&&Ra(ye,{hasArrow:!0,placement:"top",label:t,color:"rgb(var(--cleen-neutral-600))",...l?.tooltip,style:c?.tooltip?.style,styles:{...c?.tooltip?.styles,labelContainer:{width:"max-content",maxWidth:"250px",...c?.tooltip?.styles?.labelContainer}},children:Ra(pa,{className:Ta("cleen-size-3 cleen-text-neutral-500 hover:cleen-text-neutral-900 cleen-transition-colors cleen-cursor-help",l?.questionIcon),style:c?.questionIcon})})]})});import{cn as Ut}from"@cleen/ui-core";import{forwardRef as S5,useEffect as w5,useId as M5,useMemo as k5,useState as Bv}from"react";import{jsx as uo,jsxs as Sc}from"react/jsx-runtime";var ge=S5(function({name:t,id:n,type:o,label:l,labelTooltip:a,defaultValue:c,value:i,files:d,disabled:s,required:p,className:g,classNames:m,style:y,styles:v,autoComplete:h="off",isFocusedBorder:b,maxLength:x,minLength:C,maxLengthLabelThreshold:I=.5,uploadLabel:P="Choose a file",leftIcon:k,rightIcon:E,topRightIcon:N,inputOverlay:M,infoLabels:L,maxLengthLabel:S,minLengthLabel:w,onChange:T,...F},R){let B=i!==void 0||d!==void 0,[V,D]=Bv(c??""),[A,O]=Bv(null),z=B?i:V,U=B?d:A;w5(()=>{B||D(i??c??"")},[i,c,B]);let W=_=>{let Z=_.target.value;if(o==="file"&&_.target.files){B||O(_.target.files),T?.(_);return}(!x||Z.length<=x)&&(B||D(Z),T?.(_))},q=k5(()=>C&&w&&(z?.toString()?.length??0)<C?w(C-(z?.toString()?.length??0)):!x||!S||(z?.toString()?.length??0)/x<I?L?.subtitle:S?.(x-(z?.toString()?.length??0)),[z,x,I,L?.subtitle]),H=M5(),$=!!(L?.errorMessage||L?.infoMessage||q),Q=$?`${H}-info`:void 0;return uo("div",{className:Ut("cleen",g),style:y,children:Sc("div",{className:Ut("cleen-flex cleen-flex-col cleen-gap-1.5 cleen-rounded-md cleen-w-full cleen-overflow-visible cleen-font-normal",m?.container),style:v?.container,children:[(l||N)&&Sc("div",{className:"cleen-flex cleen-justify-between cleen-items-center cleen-gap-2",children:[uo(ae,{htmlFor:n||t,required:p,tooltip:a,className:Ut("cleen-w-full",m?.label?.className),classNames:m?.label?.classNames,...v?.label,children:l}),N]}),Sc("label",{className:Ut("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},s&&"cleen-bg-muted",{"cleen-cursor-pointer":o==="file"&&!s},L?.errorMessage?["cleen-border-error/70 focus-within:cleen-ring-error-bg",!s&&"hover:cleen-border-error"]:["cleen-border-border focus-within:cleen-border-primary-400",!s&&"hover:cleen-border-muted-foreground focus-within:cleen-border-primary focus-within:hover:cleen-border-primary"],m?.inputContainer),style:v?.inputContainer,children:[k&&uo("div",{className:Ut("cleen-flex cleen-justify-center cleen-items-center cleen-gap-1.5 cleen-p-2 cleen-rounded-l-md focus:cleen-outline-none focus:cleen-ring-4 cleen-text-base",s?"cleen-text-neutral-400":"cleen-text-muted-foreground",m?.leftIconContainer),style:v?.leftIconContainer,children:k}),Sc("div",{className:"cleen-relative cleen-flex cleen-flex-1 cleen-items-stretch",children:[uo("input",{id:n||t,name:t,type:o,disabled:s,maxLength:x,autoComplete:h,value:z,className:Ut("cleen-block cleen-border-0 cleen-bg-transparent cleen-rounded-md cleen-w-full cleen-text-base","cleen-py-2 cleen-pr-2 placeholder:cleen-text-neutral-400 sm:cleen-text-sm focus:cleen-ring-transparent focus:cleen-outline-none cleen-my-auto",k?"cleen-pl-0":"cleen-px-3.5",{"cleen-rounded-l-none":k,"cleen-rounded-r-none":E,"cleen-hidden":o==="file"},s?"cleen-text-neutral-400":"cleen-text-foreground",m?.input),style:v?.input,onChange:W,required:p,"aria-invalid":L?.errorMessage?!0:void 0,"aria-describedby":Q,ref:R,...F}),M&&uo("div",{className:Ut("cleen-absolute cleen-inset-0 cleen-flex cleen-items-center cleen-rounded-md cleen-overflow-hidden cleen-text-sm cleen-pointer-events-auto",k?"cleen-pl-0 cleen-pr-2":"cleen-px-3.5",m?.inputOverlay),style:v?.inputOverlay,children:M}),o==="file"&&uo("p",{className:Ut("cleen-flex cleen-items-center cleen-p-2.5 cleen-text-sm cleen-text-nowrap",s?"cleen-text-neutral-400":"cleen-text-muted-foreground",U&&U.length>0&&"cleen-text-foreground"),children:U&&U.length>0?Array.from(U).map(_=>_.name).join(", "):P})]}),E&&uo("div",{className:Ut("cleen-flex cleen-justify-center cleen-items-center cleen-gap-1.5 cleen-p-2 cleen-rounded-r-md focus:cleen-outline-none focus:cleen-ring-4 cleen-text-base",s?"cleen-text-neutral-400":"cleen-text-muted-foreground",m?.rightIconContainer),style:v?.rightIconContainer,children:E})]}),$&&uo(ne,{id:Q,...L,subtitle:q})]})})});import{cn as La,useOutsideClick as B5}from"@cleen/ui-core";import{forwardRef as N5,useEffect as Nv,useImperativeHandle as T5,useMemo as R5,useRef as L5,useState as wc}from"react";import{jsx as Ea,jsxs as E5}from"react/jsx-runtime";var Oh=N5(function({value:t,defaultValue:n,defaultIsEditing:o=!1,isEditing:l,onIsEditingChange:a,placeholder:c,placeholderText:i,canEdit:d=!0,onSave:s,onCancel:p,onChange:g,inputProps:m,blurOnOutsideClick:y=!0,saveOnBlur:v=!0,isLoading:h,customLoader:b=Ea(re,{}),selectAllOnEdit:x=!1,renderText:C,className:I,classNames:P,style:k,styles:E,...N},M){let L=t!==void 0,[S,w]=wc(n??""),T=L?t??"":S,[F,R]=wc(!1),B=h??F,V=R5(()=>typeof C=="function"?C(T):C||T||i||c,[T,C,c,i]),[D,A]=wc(o),O=l!==void 0,z=O?l:D,[U,W]=wc(T),q=L5(null);T5(M,()=>({...q.current,save:$,cancel:H})),Nv(()=>{L||w(n??"")},[n,L]),Nv(()=>{z||W(T)},[T,z]);let H=async()=>{O||A(!1),a?.(!1),W(T),await p?.()},$=async()=>{if(!B){if(T===U){await p?.(),O||A(!1),a?.(!1);return}R(!0),L||w(U);try{await s?.(U),O||A(!1),a?.(!1)}finally{R(!1)}}},Q=async _=>{_.key==="Enter"&&(_.preventDefault(),await $()),_.key==="Escape"&&(_.stopPropagation(),_.preventDefault(),await H()),m?.onKeyDown?.(_)};return B5({refs:[q],enabled:y&&z,handler:async()=>{v?await $():await H()}}),Ea("div",{className:La("cleen",I),style:k,ref:q,...N,children:z?E5("div",{className:La("cleen-relative cleen-h-full",P?.container),style:E?.container,children:[Ea(ge,{value:U,onChange:_=>{W(_.target.value),g?.(_.target.value)},autoFocus:!0,placeholder:c,className:P?.input?.className,classNames:{...P?.input?.classNames,inputContainer:La("cleen-border-primary hover:cleen-border-primary/60",P?.input?.classNames?.inputContainer)},...E?.input,...m,onFocus:_=>{m?.onFocus?.(_),x&&_.target.select()},disabled:B||m?.disabled,onKeyDown:Q}),B&&Ea("div",{className:La("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:E?.loaderContainer,children:b})]}):Ea("div",{onClick:()=>{d&&(O||A(!0),a?.(!0))},className:La("cleen-min-h-6 cleen-text-foreground",d&&"cleen-cursor-text hover:cleen-bg-muted cleen-rounded cleen-p-2 cleen-transition-colors",!T&&"cleen-text-muted-foreground",P?.preview),style:E?.preview,children:V})})});import{cn as Gn}from"@cleen/ui-core";import{forwardRef as D5,useEffect as Tv,useId as F5,useMemo as A5,useRef as O5,useState as _5}from"react";import{jsx as _o,jsxs as _h}from"react/jsx-runtime";var zh=D5(function({name:t,id:n,value:o,defaultValue:l,label:a,labelTooltip:c,disabled:i,required:d,infoLabels:s,topRightElement:p,labelRightElement:g,textareaOverlay:m,onChange:y,minHeight:v,maxHeight:h=200,autoResize:b=!0,maxLength:x,minLength:C,maxLengthLabelThreshold:I=.5,maxLengthLabel:P,minLengthLabel:k,className:E,classNames:N,style:M,styles:L,...S},w){let T=o!==void 0,[F,R]=_5(typeof l=="string"?l:""),B=O5(null),V=w??B,D=T?o:F;Tv(()=>{T||R(o??(typeof l=="string"?l:""))},[o,l,T]);let A=_=>{_.style.height="auto";let Z=Math.min(_.scrollHeight,h);_.style.height=`${Z}px`},O=_=>{A(_.target)};Tv(()=>{!b||!B.current||A(B.current)},[b,D,h]);let z=_=>{_.preventDefault()},U=_=>{_.preventDefault();let Z=_.dataTransfer?.getData("text/plain");T?y?.(`${o??""}${Z}`):(R(pe=>`${pe}${Z}`),y?.(`${F}${Z}`))},W=_=>{let Z=_.target.value;(!x||Z.length<=x)&&(T||R(Z),y?.(Z),b&&O(_))},q=A5(()=>C&&k&&(D?.length??0)<C?k(C-(D?.length??0)):!x||!P||(D?.toString()?.length??0)/x<I?s?.subtitle:P?.(x-(D?.toString()?.length??0)),[D,x,I,s?.subtitle]),H=F5(),$=!!(s?.errorMessage||s?.infoMessage||q),Q=$?`${H}-info`:void 0;return _o("div",{className:Gn("cleen",E),style:M,children:_h("div",{className:Gn("cleen-flex cleen-flex-col cleen-gap-1.5 cleen-rounded-md cleen-size-full cleen-font-normal",N?.container),style:L?.container,children:[(a||g)&&_h("div",{className:"cleen-flex cleen-items-center cleen-justify-between cleen-mb-1.5",children:[a&&_o(ae,{htmlFor:n||t,required:d,tooltip:c,className:Gn("cleen-w-full",N?.label?.className),classNames:N?.label?.classNames,...L?.label,children:a}),g&&_o("div",{className:"cleen-ml-auto",children:g})]}),_h("div",{className:Gn("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",N?.textareaContainer),style:L?.textareaContainer,children:[p&&_o("div",{className:"cleen-absolute cleen-top-2 cleen-right-2 cleen-z-10",children:p}),m&&_o("div",{className:Gn("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}),_o("textarea",{id:n||t,name:t,ref:V,disabled:i,value:D,minLength:C,maxLength:x,"aria-invalid":s?.errorMessage?!0:void 0,"aria-describedby":Q,className:Gn("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",N?.textarea),style:{...v&&{minHeight:`${v}px`},...L?.textarea},onFocus:_=>_.currentTarget.setSelectionRange(_.currentTarget.value.length,_.currentTarget.value.length),onDragOver:z,onDrop:U,...S,onChange:W})]}),$&&_o(ne,{id:Q,...s,subtitle:q})]})})});import{cn as Da,useOutsideClick as z5}from"@cleen/ui-core";import{forwardRef as V5,useEffect as Rv,useImperativeHandle as H5,useMemo as U5,useRef as G5,useState as Mc}from"react";import{jsx as Fa,jsxs as $5}from"react/jsx-runtime";var Vh=V5(function({value:t,defaultValue:n,defaultIsEditing:o=!1,isEditing:l,onIsEditingChange:a,placeholder:c,placeholderText:i,canEdit:d=!0,onSave:s,onCancel:p,onChange:g,textAreaProps:m,blurOnOutsideClick:y=!0,saveOnBlur:v=!0,isLoading:h,customLoader:b=Fa(re,{size:"md"}),selectAllOnEdit:x=!1,renderText:C,className:I,classNames:P,style:k,styles:E,...N},M){let L=t!==void 0,[S,w]=Mc(n??""),T=L?t??"":S,[F,R]=Mc(!1),B=h??F,V=U5(()=>typeof C=="function"?C(T):C||T||i||c,[T,C,c,i]),[D,A]=Mc(o),O=l!==void 0,z=O?l:D,[U,W]=Mc(T),q=G5(null);H5(M,()=>({...q.current,save:$,cancel:H})),Rv(()=>{L||w(n??"")},[n,L]),Rv(()=>{z||W(T)},[T,z]);let H=async()=>{O||A(!1),a?.(!1),W(T),await p?.()},$=async()=>{if(!B){if(T===U){await p?.(),O||A(!1),a?.(!1);return}R(!0),L||w(U);try{await s?.(U),O||A(!1),a?.(!1)}finally{R(!1)}}},Q=async _=>{_.key==="Escape"&&(_.preventDefault(),_.stopPropagation(),await H()),_.key==="Enter"&&(_.metaKey||_.ctrlKey)&&(_.preventDefault(),await $()),m?.onKeyDown?.(_)};return z5({refs:[q],enabled:y&&z,handler:async()=>{v?await $():await H()}}),Fa("div",{className:Da("cleen",I),style:k,ref:q,...N,children:z?$5("div",{className:Da("cleen-relative cleen-h-full",P?.container),style:E?.container,children:[Fa(zh,{value:U,onChange:_=>{W(_),g?.(_)},autoFocus:!0,placeholder:c,className:P?.textArea?.className,classNames:{...P?.textArea?.classNames,textareaContainer:Da("cleen-border-primary hover:cleen-border-primary/60",P?.textArea?.classNames?.textareaContainer)},...E?.textArea,...m,onFocus:_=>{m?.onFocus?.(_),x&&_.target.select()},disabled:B||m?.disabled,onKeyDown:Q}),B&&Fa("div",{className:Da("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:E?.loaderContainer,children:b})]}):Fa("div",{onClick:()=>{d&&(O||A(!0),a?.(!0))},className:Da("cleen-min-h-6 cleen-text-foreground cleen-whitespace-pre-wrap",d&&"cleen-cursor-text hover:cleen-bg-muted cleen-rounded cleen-p-2 cleen-transition-colors",!T&&"cleen-text-muted-foreground",P?.preview),style:E?.preview,children:V})})});import"@cleen/ui-core";import{forwardRef as W5}from"react";import{Fragment as X5,jsx as Hh,jsxs as K5}from"react/jsx-runtime";var q5=W5(function({header:t,color:n,children:o,description:l,onSave:a,isDescriptionHidden:c=!1,titleProps:i,descriptionProps:d,classNames:s,styles:p,...g},m){let y=typeof t?.title=="string"||typeof t?.title=="number"?String(t.title):void 0;return Hh(fe,{ref:m,color:n,header:{...t,title:Hh(Oh,{value:y??"",onSave:async v=>{await a?.("title",v)},...s?.titleTextInput,...p?.titleTextInput,...i})},classNames:s,styles:p,...g,children:(!c||o)&&K5(X5,{children:[Hh(Vh,{value:l??"",onSave:async v=>{await a?.("description",v)},...d,textAreaProps:d?.textAreaProps,...s?.descriptionTextInput,...p?.descriptionTextInput}),o]})})});import{cn as Aa}from"@cleen/ui-core";import{forwardRef as Y5}from"react";import{jsx as kc}from"react/jsx-runtime";var Z5=Y5(function({type:t="button",label:n,onClick:o,containerRef:l,className:a,classNames:c,style:i,styles:d,disabled:s=!1,loaderOptions:p,isLoading:g=!1,variant:m="primary",children:y,...v},h){return kc("div",{className:Aa("cleen",a),style:i,ref:l,children:kc("button",{type:t,ref:h,disabled:g||s,onClick:o,className:Aa("cleen-size-full",c?.container),style:d?.container,...v,children:kc(fe,{p:0,className:Aa("cleen-size-full cleen-group",c?.card?.className),classNames:{...c?.card?.classNames,container:Aa("focus-visible:cleen-outline focus-visible:cleen-outline-2 focus-visible:cleen-outline-primary focus-visible:cleen-outline-offset-2 cleen-size-full cleen-font-semibold cleen-transition-colors cleen-duration-200",Z1[m],c?.card?.classNames?.container,{"cleen-opacity-50 cleen-cursor-not-allowed cleen-pointer-events-none":s||g}),childrenContainer:Aa("cleen-flex cleen-justify-center cleen-items-center cleen-size-full",c?.card?.classNames?.childrenContainer)},"aria-disabled":s||g,...d?.card,children:g?kc(re,{size:"lg",...p,color:p?.color||Q1[m],...c?.loader,...d?.loader}):n||y})})})});import{cn as Oa,ColorHelpers as Lv,formatAudioTime as Ev}from"@cleen/ui-core";import{useWavesurfer as Q5}from"@wavesurfer/react";import{forwardRef as J5,useCallback as j5,useRef as eM}from"react";import{jsx as _a,jsxs as Dv}from"react/jsx-runtime";var tM={waveColor:Lv.getComputedColor("var(--cleen-neutral-200)"),progressColor:Lv.getComputedColor("var(--cleen-primary)"),cursorColor:"rgb(var(--cleen-primary))",height:56,barWidth:2,barGap:2,barRadius:2,interact:!0,normalize:!0},oM=J5(function({url:t,options:n,className:o,classNames:l,style:a,styles:c,...i},d){let s=eM(null),{wavesurfer:p,isPlaying:g,isReady:m,currentTime:y}=Q5({...tM,...n,container:s,url:t}),v=m?p?.getDuration()??0:0,h=j5(()=>{p?.playPause()},[p]);return _a("div",{ref:d,className:Oa("cleen",o),style:a,...i,children:Dv("div",{className:Oa("cleen-flex cleen-items-center cleen-gap-3 cleen-px-4 cleen-py-3 cleen-rounded-xl cleen-bg-surface cleen-border cleen-border-border",l?.container),style:c?.container,children:[_a(ee,{type:"button",onClick:h,disabled:!m,"aria-label":g?"Pause":"Play",className:l?.playButton?.className,classNames:{...l?.playButton?.classNames,container:Oa("cleen-p-0 !cleen-size-9 cleen-rounded-full",l?.playButton?.classNames?.container)},...c?.playButton,children:g?_a(ft,{className:"cleen-fill-current"}):_a(ht,{className:"cleen-fill-current"})}),_a("div",{ref:s,className:Oa("cleen-flex-1 cleen-min-w-0",l?.waveform),style:c?.waveform}),Dv("span",{className:Oa("cleen-shrink-0 cleen-text-xs cleen-text-muted-foreground cleen-tabular-nums",l?.timestamp),style:c?.timestamp,children:[Ev(y),"\xA0/\xA0",Ev(v)]})]})})});import{ColorHelpers as nM}from"@cleen/ui-core";var Fv=nM.getComputedColor("var(--cleen-primary)"),Av="rgba(var(--cleen-primary), 0.15)",Ov={waveColor:Fv,progressColor:Fv,cursorColor:"rgb(var(--cleen-primary))",height:56,barWidth:2,barGap:2,barRadius:2,minPxPerSec:.5,sampleRate:8e3};var _v={startRecording:"Click to start recording"};import{cn as Je,formatAudioTime as Fc,trimBlob as aM}from"@cleen/ui-core";import{useWavesurfer as lM}from"@wavesurfer/react";import{forwardRef as cM,useCallback as Wn,useEffect as Xh,useMemo as iM,useRef as Hv,useState as Ac}from"react";function Uh(e,t,n,o){return new(n||(n=Promise))((function(l,a){function c(s){try{d(o.next(s))}catch(p){a(p)}}function i(s){try{d(o.throw(s))}catch(p){a(p)}}function d(s){var p;s.done?l(s.value):(p=s.value,p instanceof n?p:new n((function(g){g(p)}))).then(c,i)}d((o=o.apply(e,t||[])).next())}))}var Bc=class{constructor(){this.listeners={}}on(t,n,o){if(this.listeners[t]||(this.listeners[t]=new Set),o?.once){let l=(...a)=>{this.un(t,l),n(...a)};return this.listeners[t].add(l),()=>this.un(t,l)}return this.listeners[t].add(n),()=>this.un(t,n)}un(t,n){var o;(o=this.listeners[t])===null||o===void 0||o.delete(n)}once(t,n){return this.on(t,n,{once:!0})}unAll(){this.listeners={}}emit(t,...n){this.listeners[t]&&this.listeners[t].forEach((o=>o(...n)))}},$h=class extends Bc{constructor(t){super(),this.subscriptions=[],this.isDestroyed=!1,this.options=t}onInit(){}_init(t){this.isDestroyed&&(this.subscriptions=[],this.isDestroyed=!1),this.wavesurfer=t,this.onInit()}destroy(){this.emit("destroy"),this.subscriptions.forEach((t=>t())),this.subscriptions=[],this.isDestroyed=!0,this.wavesurfer=void 0}},Wh=class extends Bc{constructor(){super(...arguments),this.animationFrameId=null,this.isRunning=!1}start(){if(this.isRunning)return;this.isRunning=!0;let t=()=>{this.isRunning&&(this.emit("tick"),this.animationFrameId=requestAnimationFrame(t))};t()}stop(){this.isRunning=!1,this.animationFrameId!==null&&(cancelAnimationFrame(this.animationFrameId),this.animationFrameId=null)}destroy(){this.stop()}},Gh=100,rM=["audio/webm","audio/wav","audio/mpeg","audio/mp4","audio/mp3"],Nc=class e extends $h{constructor(t){var n,o,l,a,c,i;super(Object.assign(Object.assign({},t),{audioBitsPerSecond:(n=t.audioBitsPerSecond)!==null&&n!==void 0?n:128e3,scrollingWaveform:(o=t.scrollingWaveform)!==null&&o!==void 0&&o,scrollingWaveformWindow:(l=t.scrollingWaveformWindow)!==null&&l!==void 0?l:5,continuousWaveform:(a=t.continuousWaveform)!==null&&a!==void 0&&a,renderRecordedAudio:(c=t.renderRecordedAudio)===null||c===void 0||c,mediaRecorderTimeslice:(i=t.mediaRecorderTimeslice)!==null&&i!==void 0?i:void 0})),this.stream=null,this.mediaRecorder=null,this.dataWindow=null,this.isWaveformPaused=!1,this.lastStartTime=0,this.lastDuration=0,this.duration=0,this.micStream=null,this.recordedBlobUrl=null,this.timer=new Wh,this.subscriptions.push(this.timer.on("tick",(()=>{let d=performance.now()-this.lastStartTime;this.duration=this.isPaused()?this.duration:this.lastDuration+d,this.emit("record-progress",this.duration)})))}static create(t){return new e(t||{})}renderMicStream(t){var n;let o=new AudioContext,l=o.createMediaStreamSource(t),a=o.createAnalyser();l.connect(a),(this.options.continuousWaveform||this.options.scrollingWaveform)&&(a.fftSize=32);let c=a.frequencyBinCount,i=new Float32Array(c),d=0;this.wavesurfer&&((n=this.originalOptions)!==null&&n!==void 0||(this.originalOptions=Object.assign({},this.wavesurfer.options)),this.wavesurfer.options.interact=!1,this.options.scrollingWaveform&&(this.wavesurfer.options.cursorWidth=0,this.wavesurfer.options.normalize=!0,this.wavesurfer.options.maxPeak=1));let s=setInterval((()=>{var p,g,m,y;if(!this.isWaveformPaused){if(a.getFloatTimeDomainData(i),this.options.scrollingWaveform){let v=Math.floor((this.options.scrollingWaveformWindow||0)*Gh),h=0;for(let x=0;x<c;x++){let C=Math.abs(i[x]);C>h&&(h=C)}this.dataWindow||(this.dataWindow=new Float32Array(v));let b=new Float32Array(v);if(this.dataWindow&&this.dataWindow.length>0){let x=v-1,C=this.dataWindow.slice(-x);b.set(C,0)}b[v-1]=h,this.dataWindow=b}else if(this.options.continuousWaveform){if(!this.dataWindow){let h=this.options.continuousWaveformDuration?Math.round(this.options.continuousWaveformDuration*Gh):((g=(p=this.wavesurfer)===null||p===void 0?void 0:p.getWidth())!==null&&g!==void 0?g:0)*window.devicePixelRatio;this.dataWindow=new Float32Array(h)}let v=0;for(let h=0;h<c;h++){let b=Math.abs(i[h]);b>v&&(v=b)}if(d+1>this.dataWindow.length){let h=new Float32Array(2*this.dataWindow.length);h.set(this.dataWindow,0),this.dataWindow=h}this.dataWindow[d]=v,d++}else this.dataWindow=i;if(this.wavesurfer){let v=((y=(m=this.dataWindow)===null||m===void 0?void 0:m.length)!==null&&y!==void 0?y:0)/Gh;this.wavesurfer.load("",[this.dataWindow],this.options.scrollingWaveform?this.options.scrollingWaveformWindow:v).then((()=>{this.wavesurfer&&this.options.continuousWaveform&&(this.wavesurfer.setTime(this.getDuration()/1e3),this.wavesurfer.options.minPxPerSec||this.wavesurfer.setOptions({minPxPerSec:this.wavesurfer.getWidth()/this.wavesurfer.getDuration()}))})).catch((h=>{console.error("Error rendering real-time recording data:",h)}))}}}),10);return{onDestroy:()=>{clearInterval(s),l?.disconnect(),o?.close()},onEnd:()=>{this.isWaveformPaused=!0,this.stopMic()}}}startMic(t){return Uh(this,void 0,void 0,(function*(){let n;this.micStream&&this.stopMic();try{n=yield navigator.mediaDevices.getUserMedia({audio:t==null||t})}catch(l){throw new Error("Error accessing the microphone: "+l.message)}let o=this.renderMicStream(n);return this.micStream=o,this.unsubscribeDestroy=this.once("destroy",o.onDestroy),this.unsubscribeRecordEnd=this.once("record-end",o.onEnd),this.stream=n,n}))}stopMic(){var t,n,o;(t=this.micStream)===null||t===void 0||t.onDestroy(),(n=this.unsubscribeDestroy)===null||n===void 0||n.call(this),(o=this.unsubscribeRecordEnd)===null||o===void 0||o.call(this),this.micStream=null,this.unsubscribeDestroy=void 0,this.unsubscribeRecordEnd=void 0,this.stream&&(this.stream.getTracks().forEach((l=>l.stop())),this.stream=null,this.mediaRecorder=null)}startRecording(t){return Uh(this,void 0,void 0,(function*(){let n=this.stream||(yield this.startMic(t));this.dataWindow=null;let o=this.mediaRecorder||new MediaRecorder(n,{mimeType:this.options.mimeType||rM.find((c=>MediaRecorder.isTypeSupported(c))),audioBitsPerSecond:this.options.audioBitsPerSecond});this.mediaRecorder=o,this.stopRecording();let l=[];o.ondataavailable=c=>{c.data.size>0&&l.push(c.data),this.emit("record-data-available",c.data)};let a=c=>{var i;let d=new Blob(l,{type:o.mimeType});this.emit(c,d),this.options.renderRecordedAudio&&(this.applyOriginalOptionsIfNeeded(),this.recordedBlobUrl&&URL.revokeObjectURL(this.recordedBlobUrl),this.recordedBlobUrl=URL.createObjectURL(d),(i=this.wavesurfer)===null||i===void 0||i.load(this.recordedBlobUrl))};o.onpause=()=>a("record-pause"),o.onstop=()=>a("record-end"),o.start(this.options.mediaRecorderTimeslice),this.lastStartTime=performance.now(),this.lastDuration=0,this.duration=0,this.isWaveformPaused=!1,this.timer.start(),this.emit("record-start")}))}getDuration(){return this.duration}isRecording(){var t;return((t=this.mediaRecorder)===null||t===void 0?void 0:t.state)==="recording"}isPaused(){var t;return((t=this.mediaRecorder)===null||t===void 0?void 0:t.state)==="paused"}isActive(){var t;return((t=this.mediaRecorder)===null||t===void 0?void 0:t.state)!=="inactive"}stopRecording(){var t;this.isActive()&&((t=this.mediaRecorder)===null||t===void 0||t.stop(),this.timer.stop())}pauseRecording(){var t,n;this.isRecording()&&(this.isWaveformPaused=!0,(t=this.mediaRecorder)===null||t===void 0||t.requestData(),(n=this.mediaRecorder)===null||n===void 0||n.pause(),this.timer.stop(),this.lastDuration=this.duration)}resumeRecording(){var t;this.isPaused()&&(this.isWaveformPaused=!1,(t=this.mediaRecorder)===null||t===void 0||t.resume(),this.timer.start(),this.lastStartTime=performance.now(),this.emit("record-resume"))}static getAvailableAudioDevices(){return Uh(this,void 0,void 0,(function*(){return navigator.mediaDevices.enumerateDevices().then((t=>t.filter((n=>n.kind==="audioinput"))))}))}destroy(){this.applyOriginalOptionsIfNeeded(),super.destroy(),this.stopRecording(),this.stopMic(),this.recordedBlobUrl&&(URL.revokeObjectURL(this.recordedBlobUrl),this.recordedBlobUrl=null)}applyOriginalOptionsIfNeeded(){this.wavesurfer&&this.originalOptions&&(this.wavesurfer.setOptions(this.originalOptions),delete this.originalOptions)}};var Lc=class{constructor(){this.listeners={}}on(t,n,o){if(this.listeners[t]||(this.listeners[t]=new Set),o?.once){let l=(...a)=>{this.un(t,l),n(...a)};return this.listeners[t].add(l),()=>this.un(t,l)}return this.listeners[t].add(n),()=>this.un(t,n)}un(t,n){var o;(o=this.listeners[t])===null||o===void 0||o.delete(n)}once(t,n){return this.on(t,n,{once:!0})}unAll(){this.listeners={}}emit(t,...n){this.listeners[t]&&this.listeners[t].forEach((o=>o(...n)))}},qh=class extends Lc{constructor(t){super(),this.subscriptions=[],this.isDestroyed=!1,this.options=t}onInit(){}_init(t){this.isDestroyed&&(this.subscriptions=[],this.isDestroyed=!1),this.wavesurfer=t,this.onInit()}destroy(){this.emit("destroy"),this.subscriptions.forEach((t=>t())),this.subscriptions=[],this.isDestroyed=!0,this.wavesurfer=void 0}};function zv(e,t){let n=t.xmlns?document.createElementNS(t.xmlns,e):document.createElement(e);for(let[o,l]of Object.entries(t))if(o==="children"&&l)for(let[a,c]of Object.entries(l))c instanceof Node?n.appendChild(c):typeof c=="string"?n.appendChild(document.createTextNode(c)):n.appendChild(zv(a,c));else o==="style"?Object.assign(n.style,l):o==="textContent"?n.textContent=l:n.setAttribute(o,l.toString());return n}function za(e,t,n){let o=zv(e,t||{});return n?.appendChild(o),o}function Vv(e){let t=e,n=new Set;return{get value(){return t},set(o){Object.is(t,o)||(t=o,n.forEach((l=>l(t))))},update(o){this.set(o(t))},subscribe:o=>(n.add(o),()=>n.delete(o))}}function Tc(e,t){let n,o=()=>{n&&(n(),n=void 0),n=e()},l=t.map((a=>a.subscribe(o)));return o(),()=>{n&&(n(),n=void 0),l.forEach((a=>a()))}}function $n(e,t){let n=Vv(null),o=l=>{n.set(l)};return e.addEventListener(t,o),n._cleanup=()=>{e.removeEventListener(t,o)},n}function zo(e){let t=e._cleanup;typeof t=="function"&&t()}function Rc(e,t={}){let{threshold:n=3,mouseButton:o=0,touchDelay:l=100}=t,a=Vv(null),c=new Map,i=matchMedia("(pointer: coarse)").matches,d=()=>{},s=p=>{if(p.button!==o||(c.set(p.pointerId,p),c.size>1))return;let g=p.clientX,m=p.clientY,y=!1,v=Date.now(),h=e.getBoundingClientRect(),{left:b,top:x}=h,C=N=>{if(N.defaultPrevented||c.size>1||i&&Date.now()-v<l)return;let M=N.clientX,L=N.clientY,S=M-g,w=L-m;(y||Math.abs(S)>n||Math.abs(w)>n)&&(N.preventDefault(),N.stopPropagation(),y||(a.set({type:"start",x:g-b,y:m-x}),y=!0),a.set({type:"move",x:M-b,y:L-x,deltaX:S,deltaY:w}),g=M,m=L)},I=N=>{if(c.delete(N.pointerId),y){let M=N.clientX,L=N.clientY;a.set({type:"end",x:M-b,y:L-x})}d()},P=N=>{c.delete(N.pointerId),N.relatedTarget&&N.relatedTarget!==document.documentElement||I(N)},k=N=>{y&&(N.stopPropagation(),N.preventDefault())},E=N=>{N.defaultPrevented||c.size>1||y&&N.preventDefault()};document.addEventListener("pointermove",C),document.addEventListener("pointerup",I),document.addEventListener("pointerout",P),document.addEventListener("pointercancel",P),document.addEventListener("touchmove",E,{passive:!1}),document.addEventListener("click",k,{capture:!0}),d=()=>{document.removeEventListener("pointermove",C),document.removeEventListener("pointerup",I),document.removeEventListener("pointerout",P),document.removeEventListener("pointercancel",P),document.removeEventListener("touchmove",E),setTimeout((()=>{document.removeEventListener("click",k,{capture:!0})}),10)}};return e.addEventListener("pointerdown",s),{signal:a,cleanup:()=>{d(),e.removeEventListener("pointerdown",s),c.clear(),zo(a)}}}var Ec=class extends Lc{constructor(t,n,o=0){var l,a,c,i,d,s,p,g,m,y;super(),this.totalDuration=n,this.numberOfChannels=o,this.element=null,this.minLength=0,this.maxLength=1/0,this.contentEditable=!1,this.subscriptions=[],this.updatingSide=void 0,this.isRemoved=!1,this.subscriptions=[],this.id=t.id||`region-${Math.random().toString(32).slice(2)}`,this.start=this.clampPosition(t.start),this.end=this.clampPosition((l=t.end)!==null&&l!==void 0?l:t.start),this.drag=(a=t.drag)===null||a===void 0||a,this.resize=(c=t.resize)===null||c===void 0||c,this.resizeStart=(i=t.resizeStart)===null||i===void 0||i,this.resizeEnd=(d=t.resizeEnd)===null||d===void 0||d,this.color=(s=t.color)!==null&&s!==void 0?s:"rgba(0, 0, 0, 0.1)",this.minLength=(p=t.minLength)!==null&&p!==void 0?p:this.minLength,this.maxLength=(g=t.maxLength)!==null&&g!==void 0?g:this.maxLength,this.channelIdx=(m=t.channelIdx)!==null&&m!==void 0?m:-1,this.contentEditable=(y=t.contentEditable)!==null&&y!==void 0?y:this.contentEditable,this.element=this.initElement(),this.setContent(t.content),this.setPart(),this.renderPosition(),this.initMouseEvents()}clampPosition(t){return Math.max(0,Math.min(this.totalDuration,t))}setPart(){var t;let n=this.start===this.end;(t=this.element)===null||t===void 0||t.setAttribute("part",`${n?"marker":"region"} ${this.id}`)}addResizeHandles(t){let n={position:"absolute",zIndex:"2",width:"6px",height:"100%",top:"0",cursor:"ew-resize",wordBreak:"keep-all"},o=za("div",{part:"region-handle region-handle-left",style:Object.assign(Object.assign({},n),{left:"0",borderLeft:"2px solid rgba(0, 0, 0, 0.5)",borderRadius:"2px 0 0 2px"})},t),l=za("div",{part:"region-handle region-handle-right",style:Object.assign(Object.assign({},n),{right:"0",borderRight:"2px solid rgba(0, 0, 0, 0.5)",borderRadius:"0 2px 2px 0"})},t),a=Rc(o,{threshold:1}),c=Rc(l,{threshold:1}),i=Tc((()=>{let s=a.signal.value;s&&(s.type==="move"&&s.deltaX!==void 0?this.onResize(s.deltaX,"start"):s.type==="end"&&this.onEndResizing("start"))}),[a.signal]),d=Tc((()=>{let s=c.signal.value;s&&(s.type==="move"&&s.deltaX!==void 0?this.onResize(s.deltaX,"end"):s.type==="end"&&this.onEndResizing("end"))}),[c.signal]);this.subscriptions.push((()=>{i(),d(),a.cleanup(),c.cleanup()}))}removeResizeHandles(t){let n=t.querySelector('[part*="region-handle-left"]'),o=t.querySelector('[part*="region-handle-right"]');n&&t.removeChild(n),o&&t.removeChild(o)}initElement(){if(this.isRemoved)return null;let t=this.start===this.end,n=0,o=100;this.channelIdx>=0&&this.numberOfChannels>0&&this.channelIdx<this.numberOfChannels&&(o=100/this.numberOfChannels,n=o*this.channelIdx);let l=za("div",{style:{position:"absolute",top:`${n}%`,height:`${o}%`,backgroundColor:t?"none":this.color,borderLeft:t?"2px solid "+this.color:"none",borderRadius:"2px",boxSizing:"border-box",transition:"background-color 0.2s ease",cursor:this.drag?"grab":"default",pointerEvents:"all"}});return!t&&this.resize&&this.addResizeHandles(l),l}renderPosition(){if(!this.element)return;let t=this.start/this.totalDuration,n=(this.totalDuration-this.end)/this.totalDuration;this.element.style.left=100*t+"%",this.element.style.right=100*n+"%"}toggleCursor(t){var n;this.drag&&(!((n=this.element)===null||n===void 0)&&n.style)&&(this.element.style.cursor=t?"grabbing":"grab")}initMouseEvents(){let{element:t}=this;if(!t)return;let n=$n(t,"click"),o=$n(t,"mouseenter"),l=$n(t,"mouseleave"),a=$n(t,"dblclick"),c=$n(t,"pointerdown"),i=$n(t,"pointerup"),d=n.subscribe((b=>b&&this.emit("click",b))),s=o.subscribe((b=>b&&this.emit("over",b))),p=l.subscribe((b=>b&&this.emit("leave",b))),g=a.subscribe((b=>b&&this.emit("dblclick",b))),m=c.subscribe((b=>b&&this.toggleCursor(!0))),y=i.subscribe((b=>b&&this.toggleCursor(!1)));this.subscriptions.push((()=>{d(),s(),p(),g(),m(),y(),zo(n),zo(o),zo(l),zo(a),zo(c),zo(i)}));let v=Rc(t),h=Tc((()=>{let b=v.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")))}),[v.signal]);this.subscriptions.push((()=>{h(),v.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,n,o){var l;if(!(!((l=this.element)===null||l===void 0)&&l.parentElement))return;let{width:a}=this.element.parentElement.getBoundingClientRect(),c=t/a*this.totalDuration,i=n&&n!=="start"?this.start:this.start+c,d=n&&n!=="end"?this.end:this.end+c,s=o!==void 0;s&&this.updatingSide&&this.updatingSide!==n&&(this.updatingSide==="start"?i=o:d=o),i=Math.max(0,i),d=Math.min(this.totalDuration,d);let p=d-i;this.updatingSide=n;let g=p>=this.minLength&&p<=this.maxLength;i<=d&&(g||s)&&(this.start=i,this.end=d,this.renderPosition(),this.emit("update",n))}onMove(t){this.drag&&this._onUpdate(t)}onResize(t,n){this.resize&&(this.resizeStart||n!=="start")&&(this.resizeEnd||n!=="end")&&this._onUpdate(t,n)}onEndResizing(t){this.resize&&(this.emit("update-end",t),this.updatingSide=void 0)}onContentClick(t){t.stopPropagation(),t.target.focus(),this.emit("click",t)}onContentBlur(){this.emit("update-end")}_setTotalDuration(t){this.totalDuration=t,this.renderPosition()}play(t){this.emit("play",t&&this.end!==this.start?this.end:void 0)}getContent(t=!1){var n;return t?this.content||void 0:this.element instanceof HTMLElement?((n=this.content)===null||n===void 0?void 0:n.innerHTML)||void 0:""}setContent(t){var n;if(this.element)if(this.content&&this.contentEditable&&(this.contentClickListener&&this.content.removeEventListener("click",this.contentClickListener),this.contentBlurListener&&this.content.removeEventListener("blur",this.contentBlurListener)),(n=this.content)===null||n===void 0||n.remove(),t){if(typeof t=="string"){let o=this.start===this.end;this.content=za("div",{style:{padding:`0.2em ${o?.2:.4}em`,display:"inline-block"},textContent:t})}else this.content=t;this.contentEditable&&(this.content.contentEditable="true",this.contentClickListener=o=>this.onContentClick(o),this.contentBlurListener=()=>this.onContentBlur(),this.content.addEventListener("click",this.contentClickListener),this.content.addEventListener("blur",this.contentBlurListener)),this.content.setAttribute("part","region-content"),this.element.appendChild(this.content),this.emit("content-changed")}else this.content=void 0}setOptions(t){var n,o;if(this.element){if(t.color&&(this.color=t.color,this.element.style.backgroundColor=this.color),t.drag!==void 0&&(this.drag=t.drag,this.element.style.cursor=this.drag?"grab":"default"),t.start!==void 0||t.end!==void 0){let l=this.start===this.end;this.start=this.clampPosition((n=t.start)!==null&&n!==void 0?n:this.start),this.end=this.clampPosition((o=t.end)!==null&&o!==void 0?o:l?this.start:this.end),this.renderPosition(),this.setPart()}if(t.content&&this.setContent(t.content),t.id&&(this.id=t.id,this.setPart()),t.resize!==void 0&&t.resize!==this.resize){let l=this.start===this.end;this.resize=t.resize,this.resize&&!l?this.addResizeHandles(this.element):this.removeResizeHandles(this.element)}t.resizeStart!==void 0&&(this.resizeStart=t.resizeStart),t.resizeEnd!==void 0&&(this.resizeEnd=t.resizeEnd)}}remove(){this.isRemoved=!0,this.emit("remove"),this.subscriptions.forEach((t=>t())),this.subscriptions=[],this.content&&this.contentEditable&&(this.contentClickListener&&(this.content.removeEventListener("click",this.contentClickListener),this.contentClickListener=void 0),this.contentBlurListener&&(this.content.removeEventListener("blur",this.contentBlurListener),this.contentBlurListener=void 0)),this.element&&(this.element.remove(),this.element=null),this.unAll()}},Dc=class e extends qh{constructor(t){super(t),this.regions=[],this.regionsContainer=this.initRegionsContainer()}static create(t){return new e(t)}onInit(){if(!this.wavesurfer)throw Error("WaveSurfer is not initialized");this.wavesurfer.getWrapper().appendChild(this.regionsContainer),this.subscriptions.push(this.wavesurfer.on("ready",(n=>{this.regions.forEach((o=>o._setTotalDuration(n)))})));let t=[];this.subscriptions.push(this.wavesurfer.on("timeupdate",(n=>{let o=this.regions.filter((l=>l.start<=n&&(l.end===l.start?l.start+.05:l.end)>=n));o.forEach((l=>{t.includes(l)||this.emit("region-in",l)})),t.forEach((l=>{o.includes(l)||this.emit("region-out",l)})),t=o})))}initRegionsContainer(){return za("div",{part:"regions-container",style:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",zIndex:"5",pointerEvents:"none"}})}getRegions(){return this.regions}avoidOverlapping(t){t.content&&setTimeout((()=>{let n=t.content,o=n.getBoundingClientRect(),l=this.regions.map((a=>{if(a===t||!a.content)return 0;let c=a.content.getBoundingClientRect();return o.left<c.left+c.width&&c.left<o.left+o.width?c.height:0})).reduce(((a,c)=>a+c),0);n.style.marginTop=`${l}px`}),10)}adjustScroll(t){var n,o;if(!t.element)return;let l=(o=(n=this.wavesurfer)===null||n===void 0?void 0:n.getWrapper())===null||o===void 0?void 0:o.parentElement;if(!l)return;let{clientWidth:a,scrollWidth:c}=l;if(c<=a)return;let i=l.getBoundingClientRect(),d=t.element.getBoundingClientRect(),s=d.left-i.left,p=d.right-i.left;s<0?l.scrollLeft+=s:p>a&&(l.scrollLeft+=p-a)}virtualAppend(t,n,o){let l=()=>{if(!this.wavesurfer)return;let a=this.wavesurfer.getWidth(),c=this.wavesurfer.getScroll(),i=n.clientWidth,d=this.wavesurfer.getDuration(),s=Math.round(t.start/d*i),p=s+(Math.round((t.end-t.start)/d*i)||1)>c&&s<c+a;p&&!o.parentElement?n.appendChild(o):!p&&o.parentElement&&o.remove()};setTimeout((()=>{if(!this.wavesurfer||!t.element)return;l();let a=this.wavesurfer.on("scroll",l),c=this.wavesurfer.on("zoom",l),i=this.wavesurfer.on("resize",l);this.subscriptions.push(a,c,i),t.once("remove",(()=>{a(),c(),i()}))}),0)}saveRegion(t){if(!t.element)return;this.virtualAppend(t,this.regionsContainer,t.element),this.avoidOverlapping(t),this.regions.push(t);let n=[t.on("update",(o=>{o||this.adjustScroll(t),this.emit("region-update",t,o)})),t.on("update-end",(o=>{this.avoidOverlapping(t),this.emit("region-updated",t,o)})),t.on("play",(o=>{var l;(l=this.wavesurfer)===null||l===void 0||l.play(t.start,o)})),t.on("click",(o=>{this.emit("region-clicked",t,o)})),t.on("dblclick",(o=>{this.emit("region-double-clicked",t,o)})),t.on("content-changed",(()=>{this.emit("region-content-changed",t)})),t.once("remove",(()=>{n.forEach((o=>o())),this.regions=this.regions.filter((o=>o!==t)),this.emit("region-removed",t)}))];this.subscriptions.push(...n),this.emit("region-created",t)}addRegion(t){var n,o;if(!this.wavesurfer)throw Error("WaveSurfer is not initialized");let l=this.wavesurfer.getDuration(),a=(o=(n=this.wavesurfer)===null||n===void 0?void 0:n.getDecodedData())===null||o===void 0?void 0:o.numberOfChannels,c=new Ec(t,l,a);return this.emit("region-initialized",c),l?this.saveRegion(c):this.subscriptions.push(this.wavesurfer.once("ready",(i=>{c._setTotalDuration(i),this.saveRegion(c)}))),c}enableDragSelection(t,n=3){var o;let l=(o=this.wavesurfer)===null||o===void 0?void 0:o.getWrapper();if(!(l&&l instanceof HTMLElement))return()=>{};let a=null,c=0,i=0,d=Rc(l,{threshold:n}),s=Tc((()=>{var p,g;let m=d.signal.value;if(m)if(m.type==="start"){if(c=m.x,!this.wavesurfer)return;let y=this.wavesurfer.getDuration(),v=(g=(p=this.wavesurfer)===null||p===void 0?void 0:p.getDecodedData())===null||g===void 0?void 0:g.numberOfChannels,{width:h}=this.wavesurfer.getWrapper().getBoundingClientRect();i=c/h*y;let b=m.x/h*y,x=(m.x+5)/h*y;a=new Ec(Object.assign(Object.assign({},t),{start:b,end:x}),y,v),this.emit("region-initialized",a),a.element&&this.regionsContainer.appendChild(a.element)}else m.type==="move"&&m.deltaX!==void 0?a&&a._onUpdate(m.deltaX,m.x>c?"end":"start",i):m.type==="end"&&a&&(this.saveRegion(a),a.updatingSide=void 0,a=null)}),[d.signal]);return()=>{s(),d.cleanup()}}clearRegions(){this.regions.slice().forEach((t=>t.remove())),this.regions=[]}destroy(){this.clearRegions(),super.destroy(),this.regionsContainer.remove()}};import{Fragment as pM,jsx as Ee,jsxs as Va}from"react/jsx-runtime";var sM=cM(function({onFinalize:t,recordOptions:n,options:o,labels:l=_v,className:a,classNames:c,style:i,styles:d,...s},p){let g=Hv(null),[m,y]=Ac("idle"),[v,h]=Ac(null),[b,x]=Ac(null),[C,I]=Ac(!1),P=Hv("idle");P.current=m;let k=iM(()=>[Nc.create({renderRecordedAudio:!0,scrollingWaveform:!1,continuousWaveform:!1,...n}),Dc.create()],[]),[E,N]=k,{wavesurfer:M,isPlaying:L,isReady:S,currentTime:w}=lM({...Ov,...o,container:g,plugins:k}),T=S?M?.getDuration()??0:0;Xh(()=>{let z=[E.on("record-start",()=>y("recording")),E.on("record-end",U=>{y("recorded"),h(U)}),N.on("region-clicked",(U,W)=>{W.stopPropagation(),U.play(!0)})];return()=>z.forEach(U=>U?.())},[N,E]),Xh(()=>M?M.on("ready",()=>{if(P.current!=="recorded")return;let U=M.getDuration();N.clearRegions();let W=N.addRegion({start:0,end:U,color:o?.regionColor??Av,drag:!1,resize:!0});x({start:W.start,end:W.end})}):void 0,[M,N,o]),Xh(()=>N.on("region-updated",U=>{x({start:U.start,end:U.end})}),[N]);let F=Wn(async()=>{await E.startRecording()},[E]),R=Wn(()=>{E.stopRecording()},[E]),B=Wn(()=>{M?.playPause()},[M]),V=Wn(async()=>{if(!(!v||!b||!M)){I(!0);try{let z=await aM(v,b.start,b.end),U=URL.createObjectURL(z);h(z),M.load(U)}finally{I(!1)}}},[v,b,M]),D=Wn(()=>{N.clearRegions(),M?.empty(),h(null),x(null),y("idle")},[M,N]),A=Wn(()=>{if(v){let z=URL.createObjectURL(v);t?.(v,z)}},[t,v]),O=!b||b.start<=0&&b.end>=T;return Ee("div",{ref:p,className:Je("cleen wavesurfer-handle",a),style:i,...s,children:Va("div",{className:Je("cleen-flex cleen-flex-col cleen-items-center cleen-gap-3",c?.container),style:d?.container,children:[m==="idle"&&Va(pM,{children:[Ee("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",c?.startButton),style:d?.startButton,children:Ee(na,{className:"cleen-size-8 cleen-text-primary"})}),Ee("p",{className:Je("cleen-text-neutral-600 cleen-text-sm cleen-select-none",c?.startLabel),style:d?.startLabel,children:l.startRecording})]}),m==="recording"&&Ee("button",{type:"button",onClick:R,"aria-label":"Stop recording",className:Je("cleen-p-8 cleen-border-2 cleen-border-primary/20 hover:cleen-border-primary cleen-rounded-full cleen-transition-colors",c?.stopButton),style:d?.stopButton,children:Ee(ya,{className:"cleen-size-8 cleen-text-primary"})}),Ee("div",{ref:g,className:Je("cleen-w-full cleen-min-w-0 cleen-waveform",m==="idle"&&"cleen-hidden",c?.waveform),style:d?.waveform}),m==="recorded"&&Va("div",{className:Je("cleen-flex cleen-items-center cleen-gap-2 cleen-w-full",c?.recordedContainer),style:d?.recordedContainer,children:[Ee(ee,{type:"button",onClick:B,disabled:!S,"aria-label":L?"Pause":"Play",className:c?.playPauseButton?.className,classNames:{...c?.playPauseButton?.classNames,container:Je("cleen-p-0 !cleen-size-9 cleen-rounded-full cleen-shrink-0",c?.playPauseButton?.classNames?.container)},...d?.playPauseButton,children:L?Ee(ft,{className:"cleen-fill-current"}):Ee(ht,{className:"cleen-fill-current"})}),Va("span",{className:Je("cleen-tabular-nums cleen-text-muted-foreground cleen-text-xs cleen-shrink-0",c?.timestamp),style:d?.timestamp,children:[Fc(w),"\xA0/\xA0",Fc(T)]}),Ee("span",{className:"cleen-flex-1"}),!O&&b&&Va("span",{className:Je("cleen-tabular-nums cleen-text-muted-foreground cleen-text-xs cleen-shrink-0",c?.trimmedTimestamp),style:d?.trimmedTimestamp,children:[Fc(b.start),"\u2013",Fc(b.end)]}),Ee(ee,{type:"button",onClick:D,variant:"secondary","aria-label":"Discard recording",className:c?.discardButton?.className,classNames:{...c?.discardButton?.classNames,container:Je("cleen-p-0 !cleen-size-9 cleen-rounded-full cleen-shrink-0",c?.discardButton?.classNames?.container)},...d?.discardButton,children:Ee(rt,{className:"cleen-text-error"})}),Ee(ee,{type:"button",onClick:V,disabled:O||C||!S,"aria-label":"Apply trim",variant:"secondary",className:c?.trimButton?.className,classNames:{...c?.trimButton?.classNames,container:Je("cleen-p-0 !cleen-size-9 cleen-rounded-full cleen-shrink-0",c?.trimButton?.classNames?.container)},...d?.trimButton,children:Ee(ua,{})}),Ee(ee,{type:"button",onClick:A,"aria-label":"Finalize recording",className:c?.finalizeButton?.className,classNames:{...c?.finalizeButton?.classNames,container:Je("cleen-p-0 !cleen-size-9 cleen-rounded-full cleen-shrink-0",c?.finalizeButton?.classNames?.container)},...d?.finalizeButton,children:Ee(Ft,{})})]})]})})});import{cn as Oc}from"@cleen/ui-core";import{forwardRef as dM,useMemo as mM}from"react";var Uv={xs:"cleen-size-6 cleen-text-[10px]",sm:"cleen-size-7 cleen-text-xs",md:"cleen-size-9 cleen-text-sm",lg:"cleen-size-11 cleen-text-base",xl:"cleen-size-14 cleen-text-lg"};import{jsx as Ha}from"react/jsx-runtime";var _c=dM(function({title:t,name:n,src:o,alt:l,size:a="md",initialsLength:c=2,isSelected:i=!1,showBorder:d=!1,fallback:s=Ha(xa,{}),className:p,classNames:g,style:m,styles:y,onClick:v,...h},b){let x=mM(()=>(c===2?n?.split(" ").map(C=>C.charAt(0).toUpperCase()).join("").slice(0,c):n?.charAt(0).toUpperCase())||s,[n,c,s]);return Ha("div",{className:Oc("cleen",p),style:m,ref:b,...h,children:Ha("div",{onClick:v,className:Oc("cleen-flex cleen-justify-center cleen-items-center cleen-bg-neutral-200 cleen-rounded-full cleen-font-medium cleen-transition-all",typeof a=="string"&&Uv[a],{"cleen-border-2 cleen-border-white":d,"cleen-cursor-pointer":!!v},g?.avatar,d&&i&&["cleen-border-primary",g?.avatarSelected]),style:{...typeof a=="number"&&{width:a,height:a,fontSize:a*.4,lineHeight:`${a}px`},...y?.avatar,...d&&i&&y?.avatarSelected},title:t||n,children:o?Ha("img",{src:o,alt:l||n,className:Oc("cleen-rounded-full cleen-w-full cleen-h-full cleen-object-cover",g?.image),style:y?.image}):Ha("span",{className:Oc("cleen-select-none cleen-text-neutral-700",g?.fallback),style:y?.fallback,children:x})})})});import{cn as Gv}from"@cleen/ui-core";import{forwardRef as uM}from"react";import{jsx as Kh,jsxs as hM}from"react/jsx-runtime";var fM=uM(function({avatars:t,size:n="md",selectedAvatars:o=[],onAvatarToggle:l,gap:a=4,maxVisible:c,maxExtra:i=99,showBorder:d=!0,initialsLength:s,fallback:p,className:g,classNames:m,style:y,styles:v,...h},b){let x=c?t?.slice(0,c):t,C=c&&t&&t.length>c?Math.min(t.length-c,i):0;return Kh("div",{className:Gv("cleen",g),style:y,ref:b,...h,children:hM("div",{className:Gv("cleen-flex cleen-items-center",m?.row),style:{gap:a,...v?.row},children:[x?.map((I,P)=>{let k=o.includes(I?.id??"");return Kh(_c,{name:I.name,src:I.src,size:n,isSelected:k,showBorder:d,initialsLength:s,fallback:p,onClick:()=>l?.(I.id??""),...m?.avatar,style:{zIndex:x.length-P,...v?.avatar?.style},styles:v?.avatar?.styles,...I},I.id||P)}),C>0&&Kh(_c,{size:n,fallback:`+${C}`,...m?.extra,...v?.extra})]})})});import{cn as fo}from"@cleen/ui-core";import{forwardRef as gM}from"react";import{Link as $v}from"react-router-dom";import{jsx as Ua,jsxs as zc}from"react/jsx-runtime";var vM=gM(function({root:t={path:"/",icon:Ua(Yr,{"aria-hidden":"true",className:"cleen-h-5 cleen-w-5"})},segments:n,className:o,classNames:l,style:a,styles:c,...i},d){return!n||n.length===0?null:Ua("div",{className:fo("cleen",o),style:a,ref:d,...i,children:Ua("nav",{className:fo("cleen-hidden sm:cleen-flex",l?.container),style:c?.container,"aria-label":"Breadcrumb",children:zc("ol",{role:"list",className:fo("cleen-flex cleen-items-center cleen-gap-4",l?.list),style:c?.list,children:[t&&Ua("li",{className:fo("cleen-flex cleen-items-center",l?.rootItem),style:c?.rootItem,children:zc($v,{to:t?.path,className:fo("cleen-text-sm cleen-text-neutral-400 cleen-flex cleen-items-center cleen-gap-2 cleen-transition-colors cleen-duration-200 hover:cleen-text-neutral-600",l?.rootLink),style:c?.rootLink,"aria-current":"page",children:[t?.icon,t?.label]})}),n.map(({path:s,icon:p,label:g,id:m},y)=>{let v=y===n.length-1,h=g||s.charAt(0).toUpperCase()+s.slice(1);return zc("li",{className:fo("cleen-flex cleen-items-center cleen-gap-4",l?.item),style:c?.item,children:[(t||!t&&y!==0)&&Ua(mt,{className:fo("cleen-h-5 cleen-w-5 cleen-text-neutral-300",l?.chevron),style:c?.chevron,"aria-hidden":"true"}),zc($v,{to:s,className:fo("cleen-transition-colors cleen-duration-200 hover:cleen-text-primary cleen-text-sm cleen-flex cleen-items-center cleen-gap-2",v?"cleen-rounded-md cleen-bg-neutral-50 cleen-py-1 cleen-px-2 cleen-text-neutral-700 cleen-font-semibold":"cleen-text-neutral-600 cleen-font-medium",l?.link),style:c?.link,"aria-current":v?"page":void 0,children:[p,h]})]},m||s)})]})})})});var Vc=(e,t)=>{if(!e)return;if(!t||!t.min&&!t.max)return e;let{min:n,max:o}=t,l=new Date,a=new Date(l.getFullYear(),l.getMonth(),l.getDate());if(n){let c=n==="today"?a:n;if(c>=e)return c}if(o){let c=o==="today"?a:o;if(c<=e)return c}return e};import{cn as Hc}from"@cleen/ui-core";import{forwardRef as bM,useState as Yh}from"react";import{DayPicker as Wv,MonthGrid as yM}from"react-day-picker";import{Fragment as IM,jsx as Vo,jsxs as Qh}from"react/jsx-runtime";var Zh=e=>e?.toLocaleString("en-US",{year:"numeric",month:"long",day:"numeric"}),Jh=bM(function({label:t,labelTooltip:n,infoLabels:o,required:l,withDateInput:a=!1,withTodayButton:c=!1,selected:i,onSelect:d,month:s,labels:p,className:g,style:m,classNames:y,styles:v,mode:h="single",min:b,max:x,disabled:C,disabledDates:I,components:P,...k},E){let N=i!==void 0,M=h==="single",[L,S]=Yh(),[w,T]=Yh(),F=N?i:M?L:w,[R,B]=Yh(s),V=(O,z)=>{N||(M&&(O===void 0||O instanceof Date)?S(O):M||T(O)),d?.(O,z)},D={MonthGrid:O=>Qh(IM,{children:[(c||a)&&Qh("div",{className:"cleen-flex cleen-gap-3 cleen-items-center cleen-py-2",children:[a&&Vo(ge,{value:h==="single"?Zh(F):F?.from||F?.to?`${Zh(F?.from)??"..."} - ${Zh(F?.to)??"..."}`:void 0,placeholder:p?.inputPlaceholder??"No date selected",className:"cleen-flex-1",readOnly:!0}),c&&Vo(ee,{variant:"secondary",onClick:()=>B(new Date),children:p?.today??"Today"})]}),Vo(yM,{...O})]}),...P},A={navLayout:"around",...k,className:Hc("cleen-text-foreground",y?.calendar?.className),classNames:{...y?.calendar?.classNames,nav:Hc("cleen-text-error",y?.calendar?.classNames?.nav)},disabled:b||x?{before:b==="today"?new Date:b,after:x==="today"?new Date:x}:I||C,components:D,month:R,onMonthChange:B,...v?.calendar};return Qh("div",{ref:E,className:Hc("cleen",g),style:m,children:[t&&Vo(ae,{required:l,tooltip:n,className:Hc("cleen-mb-1.5",y?.label?.className),classNames:y?.label?.classNames,...v?.label,children:t}),M?Vo(Wv,{mode:"single",...A,selected:F,onSelect:(O,z)=>{if(b||x){V(Vc(O,{min:b,max:x}),z);return}V(O,z)}}):Vo(Wv,{mode:"range",...A,selected:F,onSelect:(O,z)=>{if(b||x){V({from:Vc(O?.from,{min:b,max:x}),to:Vc(O?.to,{min:b,max:x})},z);return}V(O,z)}}),(o?.errorMessage||o?.infoMessage||o?.subtitle)&&Vo(ne,{...o})]})});import{cn as qn,useOutsideClick as CM,usePositionClose as xM,ZIndex as PM}from"@cleen/ui-core";import{forwardRef as SM,useEffect as wM,useRef as qv,useState as MM}from"react";import{createPortal as kM}from"react-dom";import{jsx as Ho,jsxs as Xv}from"react/jsx-runtime";var Ga=SM(function({type:t="button",required:n,label:o,title:l,titleTooltip:a,disabled:c=!1,leftIcon:i,rightIcon:d=Ho(Ar,{className:"cleen-size-5 cleen-shrink-0 cleen-text-foreground"}),fullWidth:s=!0,fullWidthDropdown:p,offset:g=4,isOpen:m,onOpenChange:y,keepOpenOnClickContent:v=!0,zIndex:h=PM.DROPDOWN,infoLabels:b,className:x,classNames:C,style:I,styles:P,children:k,...E},N){let[M,L]=MM(!1),S=m!==void 0?m:M,w=qv(null),T=qv(null),{positionStyles:F,isMounted:R}=xM({triggerRef:T,targetRef:w,position:"bottom-left",isOpen:S,offset:g});CM({refs:[w,T],handler:()=>{L(!1),y?.(!1)},enabled:S}),wM(()=>{let D=A=>{A.key==="Escape"&&S&&(L(!1),y?.(!1))};return document.addEventListener("keydown",D),()=>{document.removeEventListener("keydown",D)}},[S,y]);let B=()=>{let D=!S;m===void 0&&L(D),y?.(D)},V=()=>{v||(m===void 0&&L(!1),y?.(!1))};return Xv("div",{className:qn("cleen",x),style:I,ref:N,...E,children:[l&&Ho(ae,{required:n,tooltip:a,className:qn("cleen-mb-1.5",C?.title?.className),classNames:C?.title?.classNames,...P?.title,children:l}),Ho("div",{className:qn("cleen-inline-block cleen-relative",s&&"cleen-w-full"),ref:T,children:Xv("button",{type:t,className:qn("cleen-flex cleen-justify-between cleen-items-center cleen-gap-2 cleen-bg-background cleen-shadow-sm cleen-my-auto cleen-px-3.5 cleen-py-2.5 cleen-border cleen-border-border cleen-rounded-md cleen-w-full cleen-text-foreground cleen-text-base cleen-transition-colors cleen-duration-200 hover:cleen-bg-neutral-25 hover:cleen-border-muted-foreground",{"cleen-w-full cleen-flex-1":s,"cleen-opacity-50 cleen-cursor-not-allowed cleen-pointer-events-none":c},s&&"cleen-w-full",C?.trigger),style:P?.trigger,disabled:c,"aria-haspopup":"dialog","aria-expanded":S,onClick:B,children:[i,Ho("div",{className:qn("cleen-flex-1 cleen-text-left",C?.label),style:P?.label,children:o}),d]})}),(b?.errorMessage||b?.infoMessage||b?.subtitle)&&Ho(ne,{...b}),k&&S&&kM(Ho("div",{className:"cleen",children:Ho("div",{ref:w,className:qn("cleen-bg-background cleen-shadow-md cleen-p-2.5 cleen-border cleen-border-border cleen-rounded-lg","cleen-absolute",{"cleen-opacity-0":!R},C?.dropdown),style:{zIndex:h,top:`${F.top}px`,left:`${F.left}px`,minWidth:p&&T.current?.offsetWidth?`${T.current.offsetWidth}px`:void 0,...P?.dropdown},onClick:V,children:k})}),document.body)]})});import{cn as Kv}from"@cleen/ui-core";import{forwardRef as BM,useMemo as NM,useState as Uc}from"react";import{jsx as Uo,jsxs as Yv}from"react/jsx-runtime";var TM=BM(function({label:t,placeholder:n,infoLabels:o,required:l,selected:a,onSelect:c,onSelectInternal:i,leftIcon:d,rightIcon:s=Uo(Lr,{className:"cleen-size-5 cleen-shrink-0 cleen-text-foreground"}),className:p,style:g,classNames:m,styles:y,mode:v="single",min:h,max:b,disabled:x,disabledDates:C,...I},P){let k=a!==void 0,E=v==="single",[N,M]=Uc(!1),[L,S]=Uc(),[w,T]=Uc(),F=k?a:E?L:w,[R,B]=Uc(),V=A=>{k||(E&&(A===void 0||A instanceof Date)?S(A):E||T(A)),c?.(A)},D=NM(()=>{if(!F)return n;if(E)return F?.toLocaleDateString();{let A=F;if(A.from&&A.to)return`${A.from.toLocaleDateString()} - ${A.to.toLocaleDateString()}`;if(A.from)return A.from.toLocaleDateString()}return n},[n,F,E]);return Yv("div",{ref:P,className:Kv("cleen",p),style:g,children:[Uo(Ga,{title:t,label:D,isOpen:N,onOpenChange:A=>{B(F),M(A)},leftIcon:d,rightIcon:s,className:m?.dropdown?.className,classNames:{...m?.dropdown?.classNames,dropdown:Kv("cleen-p-0 cleen-border-0",m?.dropdown?.classNames?.dropdown)},required:l,disabled:x,...y?.dropdown,children:Uo(fe,{footer:{hasDivider:!0,content:Yv("div",{className:"cleen-flex cleen-justify-between cleen-items-center",children:[Uo(ee,{variant:"secondary",onClick:()=>M(!1),styles:{container:{minWidth:"max-content"}},children:"Close"}),Uo(ee,{onClick:()=>{V(R),M(!1)},styles:{container:{minWidth:"max-content"}},children:"Apply"})]})},...m?.card,...y?.card,children:Uo(Jh,{mode:v,...I,selected:R,onSelect:(A,O)=>B(i?.(A,O)??A),min:h,max:b,disabledDates:C,...m?.calendar,...y?.calendar})})}),(o?.errorMessage||o?.infoMessage||o?.subtitle)&&Uo(ne,{...o})]})});import"react";import{cn as Xn}from"@cleen/ui-core";import RM from"embla-carousel-auto-scroll";import LM from"embla-carousel-autoplay";import EM from"embla-carousel-react";import{forwardRef as DM,useEffect as FM,useMemo as Zv,useState as Qv}from"react";import{jsx as Go,jsxs as OM}from"react/jsx-runtime";var AM=DM(function({options:t,slideAmount:n=3,slideSize:o,prevBtn:l,nextBtn:a,autoPlay:c=!1,autoPlayOptions:i,autoScroll:d=!1,autoScrollOptions:s,children:p,className:g,classNames:m,style:y,styles:v,...h},b){let x=Zv(()=>{let T=[];return c&&T.push(LM(i)),d&&T.push(RM(s)),T},[c,d,i,s]),[C,I]=EM({skipSnaps:!0,...t},x),[P,k]=Qv(!0),[E,N]=Qv(!0),M=()=>I?.scrollPrev(),L=()=>I?.scrollNext(),S=T=>{k(!T?.canScrollPrev()),N(!T?.canScrollNext())};FM(()=>{I&&(S(I),I.on("reInit",S),I.on("select",S))},[I]);let w=Zv(()=>o?`${o}%`:`${100/n}%`,[o,n]);return Go("div",{className:Xn("cleen",g),style:y,ref:b,...h,children:OM("div",{className:Xn("cleen-flex cleen-gap-2",m?.container),style:v?.container,children:[Go("button",{className:Xn("cleen-text-foreground",m?.prevBtn,P&&"cleen-opacity-50"),onClick:M,disabled:P,style:v?.prevBtn,children:l||Go(At,{})}),Go("div",{className:Xn("cleen-flex-1 cleen-overflow-hidden",m?.viewport),style:v?.viewport,ref:C,children:Go("div",{className:Xn("cleen-flex [&>*]:cleen-flex-[0_0] cleen-gap-2 [&>*]:cleen-min-w-0 cleen-touch-pinch-zoom [&>*]:cleen-basis-[var(--cleen-carousel-slide-size)]",m?.list),style:{...v?.list,"--cleen-carousel-slide-size":w},children:p})}),Go("button",{className:Xn("cleen-text-foreground",m?.nextBtn,E&&"cleen-opacity-50"),onClick:L,disabled:E,style:v?.nextBtn,children:a||Go(mt,{})})]})})});import{cn as $o}from"@cleen/ui-core";import{forwardRef as _M,useEffect as eb,useId as zM,useRef as VM,useState as HM}from"react";var Jv={primary:"cleen-bg-primary cleen-transition-all cleen-duration-200 hover:cleen-bg-primary hover:cleen-shadow-[0px_0px_0px_4px_rgba(var(--cleen-primary),0.25)]",error:"cleen-bg-error cleen-transition-all cleen-duration-200 hover:cleen-bg-error hover:cleen-shadow-[0px_0px_0px_4px_rgba(var(--cleen-error),0.25)]"},jv={primary:"cleen-bg-primary/60 cleen-transition-all cleen-duration-200 hover:cleen-bg-primary/60 hover:cleen-shadow-[0px_0px_0px_4px_rgba(var(--cleen-primary),0.25)]",error:"cleen-bg-error/60 cleen-transition-all cleen-duration-200 hover:cleen-bg-error/60 hover:cleen-shadow-[0px_0px_0px_4px_rgba(var(--cleen-error),0.25)]"};import{Fragment as UM,jsx as Ct,jsxs as Gc}from"react/jsx-runtime";var $a=_M(function({id:t,name:n,required:o,checked:l,defaultChecked:a=!1,className:c,classNames:i,style:d,styles:s,onChange:p,disabled:g,title:m,titleTooltip:y,label:v,sublabel:h,variant:b="primary",allowIndeterminate:x=!1,fullTriggerArea:C=!1,infoLabels:I,inputRef:P,...k},E){let N=zM(),M=t??N,L=typeof l=="boolean"||l===null,[S,w]=HM(a),T=VM(null),F=A=>{T.current=A,P&&(P.current=A)};eb(()=>{L||w(a)},[a,L]);let R=L?l:S;eb(()=>{T.current&&(T.current.indeterminate=x&&R===null)},[x,R]);let B=A=>{let O;if(x)switch(R){case!0:O=null;break;case!1:O=!0;break;default:O=!1;break}else O=!R;L||w(O),p?.({...A,target:{...A.target,checked:O}})},V=Gc(UM,{children:[Gc("label",{className:$o("cleen-bg-background cleen-transition-all cleen-duration-200 hover:cleen-bg-surface hover:cleen-shadow-[0px_0px_0px_4px_rgb(var(--cleen-neutral-100))] cleen-border cleen-border-neutral-300 cleen-rounded cleen-ring-primary cleen-size-5 cleen-min-w-5 cleen-min-h-5 cleen-cursor-pointer focus-within:cleen-ring-2 focus-within:cleen-ring-offset-1 focus-within:cleen-ring-primary",{[Jv[b]]:R,[jv[b]]:R===null},g&&"cleen-cursor-not-allowed cleen-pointer-events-none","cleen-flex cleen-items-center cleen-justify-center",i?.checkbox),style:s?.checkbox,children:[Ct("input",{ref:F,type:"checkbox",disabled:g,className:"cleen-sr-only",checked:R===!0,onChange:B,id:M,name:n,...k}),R===null?Ct("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?Ct(Ft,{className:"cleen-stroke-[3px] cleen-size-3 cleen-text-primary-foreground"}):null]}),(v||h)&&Gc("div",{children:[Ct("label",{htmlFor:M,className:$o("cleen-block cleen-text-foreground",i?.label),style:s?.label,children:v}),Ct("label",{htmlFor:M,className:$o("cleen-font-normal cleen-text-neutral-600 cleen-text-sm cleen-leading-5",i?.sublabel),style:s?.sublabel,children:h})]})]}),D={className:$o("cleen-flex cleen-items-start cleen-gap-2",{"cleen-opacity-50":g},i?.checkboxContainer),style:s?.checkboxContainer};return Ct("div",{className:$o("cleen",c),style:d,ref:E,children:Gc("div",{className:$o(i?.container),style:s?.container,children:[m&&Ct(ae,{htmlFor:M,required:o,tooltip:y,className:$o("cleen-mb-1.5",i?.title?.className),classNames:i?.title?.classNames,...s?.title,children:m}),C?Ct("div",{...D,onClick:A=>{A.target instanceof Element&&!A.target.closest("label")&&T.current?.click()},children:V}):Ct("div",{...D,children:V}),(I?.errorMessage||I?.infoMessage||I?.subtitle)&&Ct(ne,{...I})]})})});import{cn as Wa}from"@cleen/ui-core";import{forwardRef as GM,useId as $M,useMemo as WM,useState as qM}from"react";import{jsx as Kn,jsxs as KM}from"react/jsx-runtime";var XM=GM(function({id:t,required:n,label:o,labelTooltip:l,checkboxes:a,allowIndeterminate:c,infoLabels:i,requiresAtLeastOneOptions:d,classNames:s,styles:p,onChange:g,...m},y){let v=$M(),h=t??v,[b,x]=qM(!1),C=WM(()=>d&&b&&a?.every(P=>P.checked===!1)?d.title:i?.errorMessage,[d,i?.errorMessage,a,b]),I=(P,k)=>{let E={...k,checked:P.target.checked},N;a&&k?.id&&(N=[...a].map(M=>M.id===k.id?E:M)),g?.(E,N),x(!0)};return Kn("div",{className:Wa("cleen"),...m,ref:y,children:KM("div",{className:Wa("cleen-flex cleen-flex-col cleen-gap-2",s?.container),style:p?.container,children:[o&&Kn(ae,{htmlFor:h,required:n,tooltip:l,className:Wa("cleen-mb-1.5",s?.label?.className),classNames:s?.label?.classNames,...p?.label,children:o}),Kn("div",{className:Wa("cleen-flex cleen-flex-col cleen-gap-3",s?.checkboxes),style:p?.checkboxes,children:a?.map((P,k)=>Kn("div",{className:Wa("cleen-flex",s?.checkboxContainer),style:p?.checkboxContainer,children:Kn($a,{allowIndeterminate:c,...P,id:`${h}-${k}`,fullTriggerArea:!0,onChange:E=>I(E,P)})},P.id))}),(C||i?.infoMessage||i?.subtitle)&&Kn(ne,{...i,errorMessage:C})]})})});import{cn as Wo}from"@cleen/ui-core";import{forwardRef as YM,useState as tb}from"react";import{jsx as Yn,jsxs as ob}from"react/jsx-runtime";var nb=YM(({sections:e,defaultOpenIndex:t,allowExpandAll:n=!1,className:o,classNames:l,style:a,styles:c,...i},d)=>{let[s,p]=tb(t??null),[g,m]=tb(()=>new Set(e.map((h,b)=>b))),y=h=>n?g.has(h):s===h,v=(h,b)=>{b.onClick?.(),b.items?.length&&(n?m(x=>{let C=new Set(x);return C.has(h)?C.delete(h):C.add(h),C}):p(s===h?null:h))};return Yn("div",{ref:d,className:Wo("cleen",o),style:{...a,width:"100%"},...i,children:Yn("div",{className:Wo("cleen-w-full",l?.container),style:c?.container,children:e.map((h,b)=>ob("div",{className:Wo("cleen-mb-3",l?.section),style:c?.section,children:[ob("div",{onClick:()=>v(b,h),className:Wo("cleen-flex cleen-w-full cleen-items-center cleen-justify-between cleen-font-medium cleen-text-md cleen-text-foreground cleen-p-2 cleen-rounded-lg cleen-cursor-pointer hover:cleen-bg-muted cleen-transition-colors",l?.sectionHeader),style:c?.sectionHeader,children:[Yn("div",{className:"cleen-flex-1 cleen-overflow-hidden cleen-whitespace-nowrap cleen-text-ellipsis",children:h?.title}),h?.items?.length?Yn(Ot,{className:Wo("cleen-shrink-0 cleen-text-neutral-400 cleen-transition-transform",{"cleen-rotate-180":!y(b)})}):null]}),y(b)&&h?.items&&Yn("div",{className:Wo("cleen-mt-1 cleen-flex cleen-flex-col cleen-w-full",l?.sectionBody),style:c?.sectionBody,children:h?.items?.map((x,C)=>Yn("div",{className:Wo("cleen-overflow-hidden cleen-whitespace-nowrap cleen-text-ellipsis cleen-p-2 cleen-w-full cleen-rounded-lg cleen-font-normal cleen-text-md cleen-text-foreground cleen-cursor-pointer hover:cleen-bg-muted cleen-transition-colors",l?.item),style:c?.item,onClick:x?.onClick,children:x?.content},x?.key??C))})]},h?.key??b))})})});nb.displayName="Collapsible";function jh(e){let t=e.match(/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*([\d.]+))?\s*\)/);return t?{r:Number(t[1]),g:Number(t[2]),b:Number(t[3]),a:t[4]!==void 0?Number(t[4]):1}:{r:0,g:0,b:0,a:1}}function rb(e){return`rgba(${e.r}, ${e.g}, ${e.b}, ${e.a})`}import{cn as $c}from"@cleen/ui-core";import{useEffect as ZM,useState as QM}from"react";import{HexAlphaColorPicker as JM,RgbaColorPicker as jM}from"react-colorful";import{jsx as Zn,jsxs as t3}from"react/jsx-runtime";var ab="rgba(0, 0, 0, 1)",lb="#000000ff",e3=({required:e,value:t,defaultValue:n,onChange:o,colorModel:l="rgba",disabled:a,label:c,labelTooltip:i,className:d,classNames:s,style:p,styles:g,infoLabels:m,...y})=>{let v=t!==void 0,h=n??(l==="hexa"?lb:ab),[b,x]=QM(h),C=v?t:b;ZM(()=>{v||x(n??(l==="hexa"?lb:ab))},[n,v,l]);let I=k=>{let E=rb(k);v||x(E),o?.(E)},P=k=>{v||x(k),o?.(k)};return Zn("div",{className:$c("cleen",d),style:p,...y,children:t3("div",{className:$c("cleen-flex cleen-flex-col cleen-rounded-md cleen-w-full cleen-overflow-visible cleen-font-medium",s?.container),style:g?.container,children:[c&&Zn(ae,{required:e,tooltip:i,className:$c("cleen-mb-1.5",s?.label?.className),classNames:s?.label?.classNames,...g?.label,children:c}),Zn("div",{className:$c("cleen-rounded-md",a&&"cleen-opacity-50 cleen-pointer-events-none",s?.picker),style:g?.picker,children:l==="hexa"?Zn(JM,{color:C,onChange:P}):Zn(jM,{color:jh(C),onChange:I})}),(m?.errorMessage||m?.infoMessage||m?.subtitle)&&Zn(ne,{...m})]})})};import{cn as at}from"@cleen/ui-core";import{forwardRef as o3,useMemo as n3,useState as r3}from"react";var e0=(e="")=>e.replace(/\D+/g,""),cb=e=>{switch(e.slice(0,2)){case"34":case"37":return"amex";case"36":return"dinersclub";default:return"other"}};function ib(e,t="other"){if(!e)return e;let n=e0(e),o;switch(t){case"amex":o=`${n.slice(0,4)} ${n.slice(4,10)} ${n.slice(10,15)}`;break;case"dinersclub":o=`${n.slice(0,4)} ${n.slice(4,10)} ${n.slice(10,14)}`;break;default:o=`${n.slice(0,4)} ${n.slice(4,8)} ${n.slice(8,12)} ${n.slice(12,19)}`;break}return o.trim()}var sb=e=>e0(e);function pb(e){let t=e0(e);if(!t||parseInt(t.charAt(0),10)>=2)return"";if(t.length<2)return t;let n=t.slice(0,2);if(parseInt(n,10)<1||parseInt(n,10)>12)return t.slice(0,1);if(t.length<3)return n;if(t.length===3)return`${n}/${t.charAt(2)}`;let o=t.length===6?t.slice(-2):t.slice(2,4),l=new Date,a=l.getFullYear()%100,c=l.getMonth()+1;return parseInt(o,10)<a||parseInt(o,10)===a&&parseInt(n,10)<c?`${n}/${o.charAt(0)}`:`${n}/${o}`}import{jsx as ho,jsxs as db}from"react/jsx-runtime";var a3=o3(function({labels:t,value:n,isLoading:o,errors:l,className:a,classNames:c,style:i,styles:d,infoLabels:s,onChange:p,onFieldFocus:g,...m},y){let[v,h]=r3({number:"",expiry:"",cvc:""}),b=!!n,x=b?n:v,C=n3(()=>cb(x.number),[x.number]),I=k=>{let{name:E}=k.target,{value:N}=k.target;switch(E){case"number":N=ib(N,C);break;case"expiry":N=pb(N);break;case"cvc":N=sb(N);break;default:return}b||h(M=>({...M,[E]:N})),p?.({...n,[E]:N})},P=k=>{g?.(k.target.name)};return ho("div",{className:at("cleen",a),style:i,ref:y,...m,children:ho("div",{className:at("cleen-flex cleen-flex-wrap cleen-justify-center cleen-items-start cleen-gap-8 cleen-bg-background cleen-min-w-80 cleen-w-min cleen-border cleen-border-primary/20 cleen-rounded-[10px] cleen-shadow-lg",c?.container),style:d?.container,children:o?ho("div",{className:at("cleen-py-4",c?.loader?.container),style:d?.loader?.container,children:ho(re,{...c?.loader?.component,...d?.loader?.component})}):db("form",{className:at("cleen-flex cleen-flex-col cleen-items-start cleen-gap-3 cleen-p-4",c?.form?.container),style:d?.form?.container,onSubmit:k=>k.preventDefault(),children:[ho(ge,{label:t?.number,name:"number",type:"tel",autoComplete:"cc-number",className:at("cleen-w-full",c?.form?.cardNumber?.className),classNames:{...c?.form?.cardNumber?.classNames,inputContainer:at({"cleen-border-error":l?.number},c?.form?.cardNumber?.classNames?.inputContainer),input:at({"cleen-text-error":l?.number},c?.form?.cardNumber?.classNames?.input)},...d?.form?.cardNumber,placeholder:"1111 1111 1111 1111",value:x.number,onChange:I,onFocus:P,infoLabels:{errorMessage:l?.number}}),db("div",{className:at("cleen-flex cleen-justify-between cleen-items-start cleen-gap-3 cleen-w-full",c?.form?.cvcExpiryContainer),style:d?.form?.cvcExpiryContainer,children:[ho(ge,{label:t?.expiry,name:"expiry",type:"tel",autoComplete:"cc-exp",className:c?.form?.expiry?.className,classNames:{...c?.form?.expiry?.classNames,inputContainer:at({"cleen-border-error":l?.expiry},c?.form?.expiry?.classNames?.inputContainer),input:at({"cleen-text-error":l?.expiry},c?.form?.expiry?.classNames?.input)},...d?.form?.expiry,placeholder:"00/00",value:x.expiry,onChange:I,onFocus:P,infoLabels:{errorMessage:l?.expiry}}),ho(ge,{label:t?.cvc,name:"cvc",type:"tel",inputMode:"numeric",autoComplete:"cc-csc",maxLength:C==="amex"?4:3,className:c?.form?.cvc?.className,classNames:{...c?.form?.cvc?.classNames,inputContainer:at({"cleen-border-error":l?.cvc},c?.form?.cvc?.classNames?.inputContainer),input:at({"cleen-text-error":l?.cvc},c?.form?.cvc?.classNames?.input)},...d?.form?.cvc,placeholder:"***",value:x.cvc,onChange:I,onFocus:P,infoLabels:{errorMessage:l?.cvc}})]}),(s?.infoMessage||s?.errorMessage||s?.subtitle)&&ho(ne,{...s})]})})})});import{cn as mb}from"@cleen/ui-core";import{jsx as ub}from"react/jsx-runtime";var gt=({isHorizontal:e=!0,className:t,classNames:n,style:o,styles:l,...a})=>ub("div",{className:mb("cleen",t),style:o,children:ub("div",{className:mb("cleen-bg-border cleen-my-0",e?"cleen-w-full cleen-h-[1px]":"cleen-w-[1px] cleen-h-full",n?.container),style:l?.container,...a})});import{cn as go,useBodyScrollLock as l3,useCleenOverlays as fb,ZIndex as c3}from"@cleen/ui-core";import{forwardRef as i3,useCallback as s3,useEffect as t0,useId as p3,useRef as d3,useState as hb}from"react";import{createPortal as m3}from"react-dom";import{jsx as Qn,jsxs as Wc}from"react/jsx-runtime";var u3={xs:320,sm:384,md:448,lg:512,xl:576,"2xl":672,"3xl":768},gb=300,o0=i3(function({title:t,subtitle:n,children:o,headerCloseBtn:l,footer:a,isOpen:c=!1,onClose:i,closeOnOverlayClick:d=!0,position:s="right",zIndex:p=c3.DRAWER,size:g="lg",p:m,gap:y,className:v,classNames:h,style:b,styles:x,...C},I){let[P,k]=hb(c),[E,N]=hb(c),M=d3(null),L=p3(),{addOverlay:S,removeOverlay:w}=fb(),T=s3(()=>{k(!1),setTimeout(()=>i?.(),gb)},[i]);return t0(()=>{if(c){N(!0);let F=setTimeout(()=>k(!0),1);return()=>clearTimeout(F)}else{k(!1);let F=setTimeout(()=>N(!1),gb);return()=>clearTimeout(F)}},[c]),t0(()=>{if(c)return S(L),()=>w(L)},[S,w,c,L]),t0(()=>{let F=R=>{let{overlays:B}=fb.getState();R.key==="Escape"&&B[B.length-1]===L&&T()};return document.addEventListener("keydown",F),()=>document.removeEventListener("keydown",F)},[T,L]),l3(E),E?m3(Wc("div",{className:go("cleen",v),style:b,ref:I,...C,children:[Qn("div",{className:go("cleen-fixed cleen-inset-0 cleen-bg-black/50 dark:cleen-bg-surface/50 cleen-transition-opacity cleen-duration-300 cleen-ease-in-out",P?"cleen-opacity-100":"cleen-opacity-0",h?.overlay),onClick:()=>{d&&T()},style:{zIndex:p-1,...x?.overlay},"aria-hidden":"true"}),Wc("div",{className:go("cleen-top-0 cleen-fixed cleen-flex cleen-flex-col cleen-gap-6 cleen-bg-surface cleen-shadow-l cleen-h-dvh cleen-transition-transform cleen-duration-300 cleen-ease-in-out cleen-transform",s==="right"?"cleen-right-0":"cleen-left-0",P?"cleen-translate-x-0":s==="right"?"cleen-translate-x-full":"-cleen-translate-x-full",h?.drawer),style:{zIndex:p,width:typeof g=="number"?g:u3[g],...y!==void 0&&{gap:y},...x?.drawer},ref:M,children:[Wc("div",{className:go("cleen-flex cleen-justify-between cleen-items-center cleen-px-6 cleen-pt-6 cleen-w-full",h?.header),style:{...m!==void 0&&{paddingInline:m,paddingTop:m},...x?.header},children:[Wc("div",{className:"cleen-flex cleen-flex-col",children:[Qn("span",{className:go("cleen-font-semibold cleen-text-foreground-emphasis cleen-text-xl",h?.title),style:x?.title,children:t}),Qn("span",{className:go("cleen-font-normal cleen-text-neutral-600 cleen-text-sm",h?.subtitle),style:x?.subtitle,children:n})]}),l||Qn(Ve,{onClick:T,className:"cleen-mb-auto cleen-size-5 cleen-cursor-pointer"})]}),Qn("div",{className:go("cleen-flex-1 cleen-px-6 cleen-overflow-y-auto cleen-no-scrollbar",h?.content),style:{...m!==void 0&&{paddingInline:m},...x?.content},children:o}),a&&Qn("div",{className:go("cleen-flex cleen-justify-end cleen-items-center cleen-gap-2 cleen-bg-sidebar cleen-px-6 cleen-py-4 cleen-border-border cleen-border-t",h?.footer),style:{...m!==void 0&&{paddingInline:m,paddingBlock:y},...x?.footer},children:a})]})]}),document.body):null});import{cn as qo,useAnimateNumber as f3}from"@cleen/ui-core";import{forwardRef as h3,useEffect as g3,useMemo as v3,useRef as b3,useState as y3}from"react";import{jsx as qc,jsxs as n0}from"react/jsx-runtime";var Jn=h3(({percentage:e,title:t,barColor:n,backgroundColor:o="rgb(var(--cleen-neutral-200))",textColor:l="rgb(var(--cleen-foreground))",invertProgressColors:a=!1,showPercentage:c=!1,renderAnimated:i=!1,renderAnimatedDuration:d=1e3,className:s,classNames:p,style:g,styles:m,...y},v)=>{let h=Math.max(0,Math.min(e,100)),b=b3(h),[x,C]=y3(i?0:h),I=f3({targetNumber:x,duration:d,disabled:!i});g3(()=>{if(i){setTimeout(()=>C(h),0);return}b.current!==h&&(C(h),b.current=h)},[h,i]);let P=v3(()=>{if(n)return n;switch(h<=30?"red":h<70?"orange":"green"){case"red":return a?"rgb(var(--cleen-success))":"rgb(var(--cleen-error))";case"orange":return"rgb(var(--cleen-warning))";case"green":return a?"rgb(var(--cleen-error))":"rgb(var(--cleen-success))";default:return"rgb(var(--cleen-success))"}},[h,a,n]);return qc("div",{ref:v,className:qo("cleen",s),style:g,children:n0("div",{className:qo("cleen-w-full",p?.container),style:m?.container,...y,children:[t&&qc("div",{className:qo("cleen-mb-1 cleen-font-semibold cleen-text-xs",p?.title),style:m?.title,children:t}),n0("div",{className:qo("cleen-flex cleen-items-center cleen-gap-2 cleen-w-full cleen-h-4",p?.wrapper||p?.progress),style:m?.wrapper??m?.progress,children:[qc("div",{className:qo("cleen-overflow-hidden cleen-flex-1 cleen-h-2 cleen-rounded-full",p?.track),style:{backgroundColor:o,...m?.track},children:qc("div",{className:qo("cleen-h-full cleen-transition-all cleen-duration-300 ease-out",p?.fill),style:{width:`${x}%`,backgroundColor:P,...i&&{transitionDuration:`${d}ms`},...m?.fill}})}),c&&n0("span",{className:qo("cleen-font-medium cleen-text-sm cleen-whitespace-nowrap cleen-w-10",p?.text),style:{color:l,...m?.text},children:[Math.round(I),"%"]})]})]})})});Jn.displayName="ProgressBar";import{cn as vo,FileEntryStatus as Xo}from"@cleen/ui-core";import{useMemo as vb}from"react";import{Fragment as bb,jsx as De,jsxs as Ko}from"react/jsx-runtime";var yb=({fileEntry:e,onRemove:t,onFileClick:n,labels:o,classNames:l,styles:a})=>{let{id:c,file:i,name:d,size:s,url:p,type:g,status:m,progress:y=0,preExisting:v}=e,h=m===Xo.UPLOADING,b=m===Xo.ERROR,x=m===Xo.DONE,C=m===Xo.DELETING,I=s?s*y/100:0,P=vb(()=>{switch(m){case Xo.UPLOADING:return Ko(bb,{children:[De(Oo,{className:"cleen-size-4"}),De("span",{children:o?.uploading})]});case Xo.DONE:return De(Ro,{className:"cleen-size-4"});case Xo.ERROR:return De(To,{className:"cleen-size-4"});default:return null}},[m,o]),k=()=>{if(n){n(e);return}p&&window.open(p,"_blank","noopener,noreferrer")},E=d||i?.name||"",[N,M]=E.split("."),L=vb(()=>g?.startsWith("image/")&&p?De("img",{src:p,alt:E,className:"cleen-size-8 cleen-object-cover cleen-rounded-md"}):g==="application/pdf"?De(Do,{className:"cleen-size-8"}):De(Eo,{className:"cleen-size-8"}),[E,g,p]);return De(fe,{p:12,className:l?.card?.className,classNames:{...l?.card?.classNames,container:vo(l?.card?.classNames?.container,{"hover:cleen-bg-muted cleen-cursor-pointer cleen-overflow-hidden":x})},...a?.card,onClick:x?k:void 0,children:Ko("div",{className:vo("cleen-space-y-1",l?.container),style:a?.container,children:[Ko("div",{className:vo("cleen-flex cleen-justify-between cleen-items-center cleen-gap-2",l?.nameContainer),style:a?.nameContainer,children:[L,Ko("div",{className:vo("cleen-text-foreground cleen-text-sm cleen-font-medium cleen-flex",l?.name),style:{maxWidth:L?"calc(100% - 5rem)":"calc(100% - 2.5rem)",...a?.name},children:[De("span",{className:"cleen-truncate cleen-shrink",children:N}),Ko("span",{className:"cleen-whitespace-nowrap",children:[".",M]})]}),De("div",{className:"cleen-flex-1"}),!h&&(C?De(re,{color:"rgb(var(--cleen-error))",className:vo("cleen-shrink-0")}):De(rt,{className:vo("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?.(c)}}))]}),Ko("div",{className:vo("cleen-flex cleen-gap-2 cleen-items-center cleen-text-neutral-600 cleen-text-xs",l?.statusContainer),style:a?.statusContainer,children:[!!s&&(h?De("p",{children:o?.uploadProgress?.(I,s)}):x&&De("p",{children:o?.uploaded?.(s)})),!v&&Ko(bb,{children:[De("span",{children:"|"}),De("div",{className:vo("cleen-flex cleen-items-center cleen-gap-1",{"cleen-text-error":b,"cleen-text-success":x},l?.statusText),style:a?.statusText,children:P})]})]}),h&&De(Jn,{barColor:"rgb(var(--cleen-primary))",percentage:y,showPercentage:!0,...l?.progressBar,...a?.progressBar})]})},c)};var Xc=e=>{if(e===0)return"0 B";let t=1024,n=["B","KB","MB","GB","TB"],o=Math.floor(Math.log(e)/Math.log(t));return`${parseFloat((e/Math.pow(t,o)).toFixed(1))} ${n[o]}`};var Ib={primaryText:"Click to upload",secondaryText:"or drag and drop",helperText:"SVG, PNG or JPG (max. 400x400px)",uploading:"Uploading...",uploadProgress:(e,t)=>`${Xc(e)} of ${Xc(t)}`,uploaded:e=>Xc(e)};var Cb={uploading:e=>`Uploading ${e} ${e===1?"item":"items"}`,completed:"Uploads complete",showMore:e=>`+${e} more`,showLess:"Show less",dismiss:"Dismiss",contract:"Contract",uploadProgress:e=>`${Math.round(e)}%`};var qa=(a=>(a.PENDING="pending",a.IN_PROGRESS="inProgress",a.DONE="done",a.ERROR="error",a.REMOVING="removing",a))(qa||{});import{cn as Yo}from"@cleen/ui-core";import{jsx as bo,jsxs as xb}from"react/jsx-runtime";var r0=({item:e,labels:t,classNames:n,styles:o})=>{let{status:l,progress:a=0,icon:c,name:i}=e,d=l==="inProgress",s=l==="done",p=l==="error",g=l==="removing",m=l==="pending";return xb("div",{className:Yo("cleen-flex cleen-items-center cleen-gap-3",n?.container),style:o?.container,children:[c,xb("div",{className:Yo("cleen-flex-1 cleen-space-y-1 cleen-min-w-0",n?.infoContainer),style:o?.infoContainer,children:[bo("p",{className:Yo("cleen-font-medium cleen-text-foreground cleen-text-sm cleen-truncate",n?.name),style:o?.name,children:i}),d&&bo(Jn,{barColor:"rgb(var(--cleen-primary))",percentage:a,...n?.progressBar,...o?.progressBar})]}),d&&bo("span",{className:Yo("cleen-shrink-0 cleen-text-muted-foreground cleen-text-xs",n?.progressText),style:o?.progressText,children:t?.itemProgress?.(a)}),g&&bo(re,{color:"rgb(var(--cleen-error))"}),s&&bo(Ro,{className:Yo("cleen-size-5 cleen-shrink-0 cleen-text-success",n?.statusIcon),style:o?.statusIcon}),p&&bo(To,{className:Yo("cleen-size-5 cleen-shrink-0 cleen-text-error",n?.statusIcon),style:o?.statusIcon}),m&&bo("div",{className:Yo("cleen-size-5 cleen-shrink-0 cleen-flex cleen-items-center cleen-gap-1",n?.statusIcon),style:o?.statusIcon,children:Array.from({length:3}).map((y,v)=>bo("div",{className:"cleen-size-1 cleen-bg-primary cleen-rounded-full cleen-animate-bounce-medium",style:{animationDelay:`${v*.1}s`}},v))})]})};var Xa=(l=>(l.NOT_STARTED="notStarted",l.IN_PROGRESS="inProgress",l.COMPLETED="completed",l.ALL="all",l))(Xa||{}),Ka=["notStarted","inProgress","completed","all"];import{cn as Kc}from"@cleen/ui-core";import{jsx as Pb,jsxs as I3}from"react/jsx-runtime";var a0=({value:e,onChange:t,counts:n,labels:o,classNames:l,styles:a})=>Pb("div",{role:"group","aria-label":o?.statusFilter,className:Kc("cleen-flex cleen-flex-wrap cleen-items-center cleen-gap-0.5 cleen-bg-muted cleen-p-0.5 cleen-border cleen-border-border cleen-rounded-md",l?.container),style:a?.container,children:Ka.map(c=>{let i=c===e;return I3("button",{type:"button","aria-pressed":i,onClick:()=>t(c),className:Kc("cleen-flex cleen-items-center cleen-gap-1 cleen-px-2 cleen-py-0.5 cleen-rounded cleen-font-medium cleen-text-muted-foreground cleen-text-xs cleen-whitespace-nowrap cleen-transition-colors hover:cleen-text-foreground focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-primary",l?.option,i&&Kc("cleen-bg-background cleen-text-foreground cleen-shadow-sm",l?.optionActive)),style:{...a?.option,...i&&a?.optionActive},children:[o?.statusFilterOptions?.[c],n&&Pb("span",{className:Kc("cleen-text-neutral-400 cleen-tabular-nums",l?.optionCount),style:a?.optionCount,children:n[c]})]},c)})});var Sb={processing:e=>`Processing ${e} ${e===1?"item":"items"}`,completed:"Processing complete",showMore:e=>`+${e} more`,showLess:"Show less",dismiss:"Dismiss",contract:"Contract",itemProgress:e=>`${Math.round(e)}%`,statusFilter:"Filter by status",statusFilterOptions:{notStarted:"Not Started",inProgress:"In Progress",completed:"Completed",all:"All"},emptyStatusFilter:"Nothing to show for this status"};var wb=e=>e.status==="inProgress"||e.status==="pending",Mb=e=>e.length>0&&e.every(t=>t.status==="done"),l0=(e,t)=>{switch(t){case"notStarted":return e.status==="pending";case"inProgress":return e.status==="inProgress"||e.status==="removing";case"completed":return e.status==="done"||e.status==="error";case"all":default:return!0}};import{applyDefaults as C3,cn as vt,useControlled as kb,useDisclosure as x3}from"@cleen/ui-core";import{forwardRef as P3,useEffect as Bb,useMemo as c0,useRef as S3}from"react";import{jsx as xt,jsxs as i0}from"react/jsx-runtime";var s0=P3(function({items:t,title:n,maxVisibleItems:o=5,isExpanded:l,defaultExpanded:a=!1,onExpandedChange:c,onDismiss:i,autoDismissOnUploadCompleteAfterMilliSeconds:d,showHeader:s=!0,showStatusFilter:p=!1,showStatusFilterCounts:g=!1,statusFilter:m,defaultStatusFilter:y="inProgress",onStatusFilterChange:v,labels:h,className:b,classNames:x,style:C,styles:I,...P},k){let{isOpen:E,toggle:N,close:M}=x3(),{value:L,handleChange:S}=kb({value:l,defaultValue:a,onChange:c});Bb(()=>{t.length>0&&M()},[t.length,M]);let w=C3(Sb,h),{value:T,handleChange:F}=kb({value:m,defaultValue:y,onChange:v}),R=S3(i);R.current=i;let B=Mb(t);Bb(()=>{if(d==null||!R.current||!B)return;if(d<=0){R.current();return}let W=setTimeout(()=>R.current?.(),d);return()=>clearTimeout(W)},[B,d]);let V=c0(()=>t.filter(wb).length,[t]),D=c0(()=>!p||!T?t:t.filter(W=>l0(W,T)),[t,p,T]),A=c0(()=>{if(g)return Ka.reduce((W,q)=>({...W,[q]:t.filter(H=>l0(H,q)).length}),{})},[t,g]);if(!t.length)return null;let O=Math.max(D.length-o,0),z=L||!O?D:D.slice(0,o),U=n??(V?w?.processing?.(V):w?.completed);return xt(fe,{p:16,gap:12,ref:k,className:vt(b,x?.card?.className),classNames:{...x?.card?.classNames,childrenContainer:vt(x?.card?.classNames?.childrenContainer,{"cleen-hidden":E})},style:C,styles:I?.card?.styles,header:s?{hasDivider:!E,content:i0("div",{className:vt("cleen-flex cleen-justify-between cleen-items-center cleen-gap-2",x?.header),style:I?.header,children:[xt("p",{className:vt("cleen-font-semibold cleen-text-foreground cleen-text-sm",x?.title),style:I?.title,children:U}),i0("div",{className:vt("cleen-flex cleen-items-center cleen-gap-2",x?.headerButtons),style:I?.headerButtons,children:[xt("button",{type:"button","aria-label":w?.contract,onClick:N,className:vt("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",x?.contractButton),style:I?.contractButton,children:xt(Ot,{className:vt("cleen-size-5 cleen-transition-transform",E&&"cleen-rotate-180")})}),i&&xt("button",{type:"button","aria-label":w?.dismiss,onClick:i,className:vt("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",x?.dismissButton),style:I?.dismissButton,children:xt(Ve,{className:"cleen-size-4"})})]})]})}:void 0,...P,children:i0("div",{className:vt("cleen-flex cleen-flex-col cleen-gap-3",x?.list),style:I?.list,children:[p&&T&&xt(a0,{value:T,onChange:F,counts:A,labels:w,classNames:x?.statusFilter,styles:I?.statusFilter}),!z.length&&xt("p",{className:vt("cleen-text-muted-foreground cleen-text-xs",x?.emptyStatusFilter),style:I?.emptyStatusFilter,children:w?.emptyStatusFilter}),z.map(W=>xt(r0,{item:W,labels:w,classNames:x?.row,styles:I?.row},W.id)),!!O&&xt("button",{type:"button","aria-expanded":L,onClick:()=>S(!L),className:vt("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",x?.expandButton),style:I?.expandButton,children:L?w?.showLess:w?.showMore?.(O)})]})})});import{FileEntryStatus as Gt}from"@cleen/ui-core";var w3=[{label:"PDF",className:"cleen-bg-error",extensions:["pdf"]},{label:"DOC",className:"cleen-bg-primary",extensions:["doc","docx","rtf","odt"]},{label:"XLS",className:"cleen-bg-success",extensions:["xls","xlsx","csv","ods"]},{label:"IMG",className:"cleen-bg-warning",extensions:["png","jpg","jpeg","gif","svg","webp"]}],Nb={label:"FILE",className:"cleen-bg-neutral-500"},M3={[Gt.QUEUED]:"inProgress",[Gt.UPLOADING]:"inProgress",[Gt.PAUSED]:"inProgress",[Gt.DONE]:"done",[Gt.ERROR]:"error",[Gt.DELETING]:"removing"},p0=e=>e.name||e.file?.name||"",Tb=e=>{let t=p0(e).split(".").pop()?.toLowerCase()??"",n=w3.find(({extensions:o})=>o.includes(t));return n?{label:n.label,className:n.className}:{label:t?t.slice(0,4).toUpperCase():Nb.label,className:Nb.className}},Rb=e=>e.status===Gt.QUEUED||e.status===Gt.UPLOADING||e.status===Gt.PAUSED,Lb=e=>M3[e.status]??"pending",Eb=e=>Array.isArray(e)?e:Array.from(e.values());import{cn as k3}from"@cleen/ui-core";import{jsx as B3}from"react/jsx-runtime";var Db=({fileEntry:e,className:t,style:n})=>{let o=Tb(e);return B3("div",{className:k3("cleen-flex cleen-justify-center cleen-items-center cleen-rounded-md cleen-size-8 cleen-shrink-0 cleen-font-semibold cleen-text-[10px] cleen-text-white",o.className,t),style:n,children:o.label})};import{jsx as N3}from"react/jsx-runtime";var Fb=(e,t)=>({id:e.id,name:p0(e),progress:e.progress,status:Lb(e),icon:N3(Db,{fileEntry:e,className:t?.className,style:t?.style})});import{applyDefaults as T3}from"@cleen/ui-core";import{forwardRef as R3,useMemo as Ab}from"react";import{jsx as L3}from"react/jsx-runtime";var d0=R3(function({files:t,title:n,maxVisibleFiles:o=5,labels:l,classNames:a,styles:c,...i},d){let s=Ab(()=>Eb(t),[t]),p=T3(Cb,l),g=Ab(()=>s.map(v=>Fb(v,{className:a?.row?.typeBadge,style:c?.row?.typeBadge})),[s,a?.row?.typeBadge,c?.row?.typeBadge]),m=s.filter(Rb).length,y=n??(m?p?.uploading?.(m):p?.completed);return L3(s0,{ref:d,items:g,title:y,maxVisibleItems:o,labels:{showMore:p?.showMore,showLess:p?.showLess,dismiss:p?.dismiss,contract:p?.contract,itemProgress:p?.uploadProgress},classNames:a,styles:c,...i})});import{applyDefaults as E3,cn as We,FileEntryStatus as D3,useFileUpload as F3}from"@cleen/ui-core";import{forwardRef as A3,useEffect as O3,useMemo as Ob,useRef as _b,useState as m0}from"react";import{createPortal as _3}from"react-dom";import{jsx as qe,jsxs as Yc}from"react/jsx-runtime";var z3=A3(function({required:t,icon:n,files:o,initialFiles:l=[],onFilesChange:a,onFileUpload:c,onFilesUpload:i,onFileRemove:d,onFileClick:s,infoLabels:p,containerRef:g,label:m,labelTooltip:y,labels:v,showUploadedFiles:h=!1,showProgressTracker:b=!1,progressTracker:x,className:C,classNames:I,style:P,styles:k,multiple:E,disabled:N,loadingWhileUploading:M,isLoading:L,readOnly:S,onChange:w,id:T,name:F,...R},B){let V=_b(null),{files:D,addFiles:A,remove:O}=F3({files:o,onFilesChange:a,initialFiles:l,onFileUpload:c,onFilesUpload:i,onFileRemove:d}),z=Ob(()=>L||M&&Array.from(D.values()).some(K=>K.status===D3.UPLOADING),[D,M,L]),[U,W]=m0(!1),[q,H]=m0([]),[$,Q]=m0(!1),_=_b(new Set(D.keys()));O3(()=>{let K=Array.from(D.keys()),Se=K.filter(Re=>!_.current.has(Re));_.current=new Set(K),H(Re=>{let we=Re.filter($e=>D.has($e));return Se.length?$?Se:[...we,...Se.filter($e=>!we.includes($e))]:we.length===Re.length?Re:we}),Se.length&&Q(!1)},[D,$]);let Z=Ob(()=>q.map(K=>D.get(K)).filter(K=>!!K),[q,D]),pe=()=>{Q(!0),H([]),x?.onDismiss?.()},he=!N&&!S&&!z,be=K=>{let Se=Array.from(K.target.files??[]);A(Se),w?.(K)},Ne=K=>{O(K)},_e=()=>{he&&V.current?.click()},j=K=>{if(!K.length)return;let Se=E?K:K.slice(0,1);if(!V.current||typeof DataTransfer>"u"){A(Se);return}let Re=new DataTransfer;Se.forEach(we=>Re.items.add(we));try{V.current.files=Re.files}catch{A(Se);return}A(Se),w?.({target:V.current,currentTarget:V.current})},ie=K=>{K.preventDefault(),K.stopPropagation(),W(!1),he&&j(Array.from(K.dataTransfer.files??[]))},Ge=K=>{K.preventDefault(),K.stopPropagation(),he&&W(!0)},ze=K=>{K.preventDefault(),K.stopPropagation(),he&&W(!0)},Te=K=>{K.preventDefault(),K.stopPropagation(),he&&W(!1)},dt=K=>{he&&(K.key!=="Enter"&&K.key!==" "||(K.preventDefault(),_e()))},Qe=E3(Ib,v);return Yc("div",{className:We("cleen",C),style:P,ref:g,children:[qe("input",{id:T||F,name:F,ref:K=>{if(V.current=K,typeof B=="function"){B(K);return}B&&(B.current=K)},type:"file",multiple:E,disabled:N||z,readOnly:S,className:We("cleen-hidden",I?.input),style:k?.input,onChange:be,...R}),m&&qe(ae,{htmlFor:T||F,required:t,tooltip:y,className:We("cleen-mb-1.5",I?.label?.className),classNames:I?.label?.classNames,...k?.label,children:m}),Yc("div",{className:We("cleen-relative cleen-blur-0",{"cleen-pointer-events-none":z}),children:[qe(fe,{tabIndex:he?0:-1,role:"button","aria-label":typeof m=="string"?m:"Upload file","aria-disabled":N||S||z,onClick:_e,onKeyDown:dt,onDrop:ie,onDragEnter:Ge,onDragOver:ze,onDragLeave:Te,p:16,className:We("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:We("cleen-transition-colors",N?"cleen-cursor-not-allowed cleen-bg-muted":"cleen-cursor-pointer hover:cleen-bg-surface hover:cleen-border-muted-foreground",I?.card?.classNames?.container,U&&["cleen-border-muted-foreground cleen-bg-surface",I?.cardDragActive]),childrenContainer:We({"cleen-blur-sm":z},I?.card?.classNames?.childrenContainer)},style:k?.card?.style,styles:{...k?.card?.styles,container:{...k?.card?.styles?.container,...U?k?.cardDragActive:void 0}},children:Yc("div",{className:We("cleen-flex cleen-flex-col cleen-justify-center cleen-items-center cleen-gap-3 cleen-text-center",I?.dropArea),style:k?.dropArea,"aria-disabled":N||S||z,children:[qe("div",{className:We("cleen-flex cleen-justify-center cleen-items-center cleen-bg-background cleen-border cleen-border-border cleen-rounded-xl cleen-size-11 cleen-text-neutral-700",I?.iconContainer),style:k?.iconContainer,children:n||qe(Oo,{className:"cleen-size-5"})}),Yc("p",{className:We("cleen-font-medium cleen-text-sm",I?.textContainer),style:k?.textContainer,children:[qe("span",{className:We(N?"cleen-text-muted-foreground":"cleen-text-primary",I?.primaryText),style:k?.primaryText,children:Qe?.primaryText})," ",qe("span",{className:We("cleen-text-foreground",I?.secondaryText),style:k?.secondaryText,children:Qe?.secondaryText})]}),qe("p",{className:We("cleen-text-neutral-600 cleen-text-xs",I?.helperText),style:k?.helperText,children:Qe?.helperText})]})}),z&&qe(re,{size:"md",className:"cleen-absolute cleen-top-1/2 cleen-left-1/2 -cleen-translate-x-1/2 -cleen-translate-y-1/2"})]}),h&&D.size>0&&qe("div",{className:"cleen-flex cleen-flex-col cleen-gap-2 cleen-mt-4",children:Array.from(D.values()).map(K=>qe(yb,{fileEntry:K,onRemove:Ne,onFileClick:s,labels:Qe,classNames:I?.fileCard,styles:k?.fileCard},K.id))}),b&&!$&&Z.length>0&&_3(qe("div",{className:"cleen",children:qe(d0,{...x,files:Z,onDismiss:pe,className:We("cleen-fixed cleen-right-0 cleen-bottom-0 cleen-m-4 cleen-w-96",I?.progressTracker?.className),classNames:I?.progressTracker?.classNames,...k?.progressTracker})}),document.body),(p?.errorMessage||p?.infoMessage||p?.subtitle)&&qe(ne,{...p})]})});var V3=e=>{let t=e instanceof Date?e:new Date(e);if(Number.isNaN(t.getTime()))return;let n={dateStyle:"medium",timeStyle:"short"};try{return new Intl.DateTimeFormat("en-US",n).format(t)}catch{return new Intl.DateTimeFormat("en-US",n).format(t)}},zb={uploaded:e=>`Uploaded: ${V3(e)}`};var u0={"image/":"image","video/":"video","audio/":"audio"},f0={"application/pdf":"pdf","application/msword":"document","application/vnd.openxmlformats-officedocument.wordprocessingml.document":"document","application/vnd.oasis.opendocument.text":"document","application/rtf":"document","text/rtf":"document","text/plain":"document","application/vnd.ms-excel":"spreadsheet","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":"spreadsheet","application/vnd.oasis.opendocument.spreadsheet":"spreadsheet","text/csv":"spreadsheet","application/zip":"archive","application/x-zip-compressed":"archive","application/vnd.rar":"archive","application/x-rar-compressed":"archive","application/x-7z-compressed":"archive","application/x-tar":"archive","application/gzip":"archive","application/x-gzip":"archive"},Vb={png:"image",jpg:"image",jpeg:"image",gif:"image",bmp:"image",webp:"image",svg:"image",avif:"image",heic:"image",ico:"image",tif:"image",tiff:"image",mp4:"video",mov:"video",webm:"video",avi:"video",mkv:"video",m4v:"video",ogv:"video",mp3:"audio",wav:"audio",ogg:"audio",oga:"audio",m4a:"audio",aac:"audio",flac:"audio",weba:"audio",pdf:"pdf",doc:"document",docx:"document",txt:"document",rtf:"document",odt:"document",xls:"spreadsheet",xlsx:"spreadsheet",csv:"spreadsheet",ods:"spreadsheet",zip:"archive",rar:"archive","7z":"archive",tar:"archive",gz:"archive",tgz:"archive"},Hb=["http:","https:","blob:"];var H3=e=>{let t=e?.split(";")[0].trim().toLowerCase();if(!t)return;if(t in f0)return f0[t];let n=Object.keys(u0).find(o=>t.startsWith(o));return n?u0[n]:void 0},h0=e=>{let t=e.lastIndexOf(".");return t<0?void 0:e.slice(t+1).toLowerCase()},U3=e=>{let t=h0(e);return t?Vb[t]:void 0},Ub=e=>H3(e.type)??U3(e.name)??"generic",Gb=e=>{if(!e)return!1;try{let t=typeof document<"u"?document.baseURI:void 0;return Hb.includes(new URL(e,t).protocol)}catch{return!1}};import{cn as $t,formatFileSize as G3}from"@cleen/ui-core";import{forwardRef as $3,useMemo as $b,useState as W3}from"react";import{Fragment as X3,jsx as Pt,jsxs as Zc}from"react/jsx-runtime";var q3=$3(function({file:t,preview:n=!1,onRemove:o,description:l,labels:a,className:c,classNames:i,style:d,styles:s,...p},g){let[m,y]=W3(),v=$b(()=>({...zb,...a}),[a]),h=Ub(t),b=Fh(h0(t.name)),x=Gb(t.url)?t.url:void 0,C=t.previewUrl||t.url,I=n&&(h==="image"||h==="video")&&!!C&&m!==C,P=$b(()=>{if(l!=null)return l;let M=[];if(t.size!=null&&M.push(G3(t.size)),t.uploadedAt!=null){let L=v?.uploaded(t.uploadedAt);L&&M.push(L)}return M.length>0?M.join(" \u2022 "):null},[l,t.uploadedAt,t.size,v]),k=M=>{M.stopPropagation(),o?.(t)},E=$t("cleen-flex cleen-min-w-0 cleen-flex-1 cleen-items-center cleen-gap-3 cleen-py-2 cleen-px-3 cleen-rounded-lg",x&&"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),N=Zc(X3,{children:[Zc("div",{className:$t("cleen-flex cleen-size-10 cleen-shrink-0 cleen-items-center cleen-justify-center cleen-overflow-hidden cleen-rounded-lg cleen-bg-primary-50 cleen-text-primary-600",i?.media),style:s?.media,children:[I&&(h==="image"||h==="video"&&t.previewUrl)&&Pt("img",{src:C,alt:t.name,className:"cleen-size-full cleen-object-cover",onError:()=>y(C)}),I&&h==="video"&&!t.previewUrl&&Pt("video",{src:C,"aria-label":t.name,className:"cleen-size-full cleen-object-cover",muted:!0,playsInline:!0,preload:"metadata",onError:()=>y(C)}),!I&&Pt(b,{"aria-hidden":!0,className:$t("cleen-size-5",i?.icon),style:s?.icon})]}),Zc("div",{className:$t("cleen-flex cleen-min-w-0 cleen-flex-1 cleen-flex-col cleen-gap-0.5",i?.content),style:s?.content,children:[Pt("span",{className:$t("cleen-truncate cleen-text-sm cleen-font-semibold cleen-text-foreground",i?.title),style:s?.title,title:t.name,children:t.name}),P!==null&&Pt("span",{className:$t("cleen-truncate cleen-text-xs cleen-text-muted-foreground",i?.description),style:s?.description,children:P})]})]});return Pt("div",{className:$t("cleen",c),style:d,ref:g,...p,children:Zc("div",{className:$t("cleen-flex cleen-w-full cleen-min-w-0 cleen-items-center cleen-rounded-lg cleen-border cleen-border-border cleen-bg-background cleen-transition-all cleen-duration-200",x&&"hover:cleen-border-neutral-300 hover:cleen-shadow-md",i?.container),style:s?.container,children:[x?Pt("a",{href:x,target:"_blank",rel:"noopener noreferrer",className:E,style:s?.main,children:N}):Pt("div",{className:E,style:s?.main,children:N}),o&&Pt("button",{type:"button",className:$t("cleen-mr-3 cleen-flex cleen-size-8 cleen-shrink-0 cleen-items-center cleen-justify-center cleen-rounded-md cleen-text-error cleen-transition-colors hover:cleen-bg-muted focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-error",i?.removeButton),style:s?.removeButton,onClick:k,children:Pt(Ve,{"aria-hidden":!0,className:"cleen-size-5"})})]})})});var Qc={filterName:"",exposed:!1};import{createContext as K3}from"react";var lt=K3({isSaveFiltersStep:!1,setIsSaveFiltersStep:()=>{},saveStepValues:{exposed:!1,filterName:""},setSaveStepValues:()=>{},handleCloseSaveFilter:()=>{},isFiltersDropdownOpen:!1,setIsFiltersDropdownOpen:()=>{},errors:{},setErrors:()=>{},setError:()=>{}});import{cn as Y3}from"@cleen/ui-core";import{useContext as Z3,useState as Q3}from"react";import{Fragment as J3,jsx as Ya,jsxs as g0}from"react/jsx-runtime";var Wb={min:3,max:50},qb=()=>{let{isSaveFiltersStep:e,saveStepValues:t,setSaveStepValues:n,setIsSaveFiltersStep:o,handleCloseSaveFilter:l,setError:a,onSave:c,classNames:i,styles:d,labels:s,withSavedFilters:p=!0,onCancel:g,onApply:m}=Z3(lt),[y,v]=Q3(!1),h=async()=>{try{if(t.filterName.length<Wb.min){a?.("filterName",s?.saveStep?.validation?.tooShort);return}if(t.filterName.length>Wb.max){a?.("filterName",s?.saveStep?.validation?.tooLong);return}v(!0),await c?.(t),o(!1)}catch(b){console.error("Error saving filters:",b)}finally{v(!1)}};return e?g0("div",{className:"cleen-flex cleen-flex-1 cleen-justify-end cleen-gap-3",children:[Ya(ee,{onClick:()=>o(!1),variant:"secondary",...i?.saveFilter?.backBtn,...d?.saveFilter?.backBtn,children:s?.saveStep?.back}),Ya(ee,{onClick:h,isLoading:y,loaderColor:"rgb(var(--cleen-white))",...i?.saveFilter?.saveBtn,...d?.saveFilter?.saveBtn,children:s?.saveStep?.save})]}):g0(J3,{children:[p&&Ya(ee,{onClick:()=>{n(Qc),o(!0)},variant:"borderless-blue",...i?.saveBtn,...d?.saveBtn,children:s?.save}),g0("div",{className:Y3("cleen-flex cleen-items-center cleen-gap-3",{"cleen-flex-1 cleen-justify-end":!p}),children:[Ya(ee,{onClick:()=>{g?.(),l()},variant:"secondary",...i?.cancelBtn,...d?.cancelBtn,children:s?.cancel}),Ya(ee,{onClick:()=>{m?.(),l()},...i?.applyBtn,...d?.applyBtn,children:s?.apply})]})]})};import{cn as Jc}from"@cleen/ui-core";import{Link as j3}from"react-router-dom";import{Fragment as Kb,jsx as Zo,jsxs as v0}from"react/jsx-runtime";var Xb=({item:e,classNames:t,styles:n})=>({disabled:e?.disabled,className:Jc("cleen-flex cleen-items-center cleen-gap-3 cleen-px-4 cleen-py-2 cleen-w-full cleen-text-foreground cleen-text-sm cleen-text-left cleen-transition-colors",e?.disabled?"cleen-opacity-50 cleen-select-none cleen-cursor-not-allowed cleen-pointer-events-none":"hover:cleen-bg-muted cleen-cursor-pointer",{"cleen-text-error hover:cleen-bg-error-bg":e?.danger},t?.container),style:n?.container,children:v0(Kb,{children:[e?.icon,Zo("span",{className:Jc("cleen-flex-1",t?.label),style:n?.label,children:e?.label})]}),...e?.type==="button"?{type:"button"}:{to:e?.to}}),b0=({item:e,isLast:t,handleClick:n,onEnterSubmenu:o,classNames:l,styles:a})=>{switch(e?.type){case"group":return v0(Kb,{children:[e?.label&&Zo("p",{className:Jc("cleen-px-4 cleen-py-2 cleen-font-bold cleen-text-muted-foreground cleen-text-xs",l?.groupLabel),style:a?.groupDivider,children:e?.label}),e?.items?.map((c,i,d)=>Zo(b0,{item:c,handleClick:n,onEnterSubmenu:o,isLast:i===d.length-1},c?.id||i)),!t&&Zo("hr",{className:Jc("cleen-text-neutral-200",l?.groupDivider),style:a?.groupDivider})]});case"button":{let c=e?.submenu&&e?.submenu?.length>0;return v0("button",{type:"button",onClick:()=>{c?o?.(e.submenu,e?.label):n?.(e)},...Xb({item:e,classNames:l,styles:a}),children:[e?.icon,Zo("span",{className:"cleen-flex-1",children:e?.label}),c&&Zo(mt,{className:"cleen-size-4 cleen-text-neutral-400"})]})}case"link":return Zo(j3,{to:"",...Xb({item:e,classNames:l,styles:a})});default:return null}};import{cn as ek}from"@cleen/ui-core";import{useEffect as Yb,useState as Zb}from"react";import{Fragment as tk,jsx as Qb,jsxs as Jb}from"react/jsx-runtime";var jb=({items:e,keepOpenOnClick:t,hideMenu:n,classNames:o,styles:l})=>{let[a,c]=Zb([]),[i,d]=Zb(e),s=(m,y)=>{c(v=>[...v,{items:i,title:y}]),d(m)},p=()=>{let m=a[a?.length-1];m&&(d(m?.items),c(y=>y?.slice(0,-1)))};Yb(()=>{d(e),c([])},[e]),Yb(()=>{let m=y=>{if(y.key==="Escape")if(a.length>0){let v=a?.[a?.length-1];d(v?.items),c(h=>h?.slice(0,-1))}else n()};return document.addEventListener("keydown",m),()=>{document.removeEventListener("keydown",m)}},[n,a]);let g=m=>{m?.onClick?.(),t||n()};return Jb(tk,{children:[a?.length>0&&Jb("button",{onClick:p,className:ek("cleen-flex cleen-items-center cleen-gap-3 cleen-px-4 cleen-py-2 cleen-w-full cleen-text-sm cleen-text-foreground hover:cleen-bg-neutral-50",o?.submenuButton),style:l?.submenuButton,children:[Qb(At,{className:"cleen-size-4 cleen-text-neutral-300"}),a?.[a?.length-1]?.title]}),i?.map((m,y,v)=>Qb(b0,{item:m,isLast:y===v?.length-1,handleClick:g,onEnterSubmenu:s,classNames:o?.item,styles:l?.item},m?.id||y))]})};import{CLEEN_IGNORE_OUTSIDE_CLICK as ok,cn as y0,useDisclosure as nk,useOutsideClick as rk,usePositionClose as ak,ZIndex as lk}from"@cleen/ui-core";import{forwardRef as ck,useRef as ey}from"react";import{createPortal as ik}from"react-dom";import{jsx as jc,jsxs as sk}from"react/jsx-runtime";var jn=ck(function({items:t=[],position:n="bottom-left",keepOpenOnClick:o=!0,triggerRef:l,menuRef:a,ignoreClickOutside:c=!1,zIndex:i=lk.MENU,children:d,className:s,classNames:p,style:g,styles:m,...y},v){let{isOpen:h,toggle:b,close:x}=nk(),C=ey(null),I=ey(null),P=l??C,k=a??I,{positionStyles:E,isMounted:N}=ak({triggerRef:P,targetRef:k,position:n,isOpen:h});rk({refs:[P,k],handler:x,enabled:h});let M=()=>{b()};return sk("div",{className:y0("cleen",s),style:g,ref:v,...y,children:[jc("div",{ref:P,onClick:M,className:y0("cleen-size-fit",p?.trigger,h&&p?.triggerOpen),style:{...m?.trigger,...h?m?.triggerOpen:{}},children:d}),h&&ik(jc("div",{className:"cleen",...c&&{[ok]:"true"},children:jc("div",{ref:k,className:y0("cleen-bg-background cleen-shadow-lg cleen-border cleen-border-border cleen-rounded-lg cleen-w-52","cleen-absolute",{"cleen-opacity-0":!N},p?.menu),style:{zIndex:i,top:`${E.top}px`,left:`${E.left}px`,...m?.menu},children:jc(jb,{items:t,keepOpenOnClick:o,hideMenu:x,classNames:p,styles:m})})}),document.body)]})});import{cn as ei,ColorHelpers as ti}from"@cleen/ui-core";import{useMemo as pk}from"react";var I0=["blue","lighter-blue","primary","indigo","green","red","purple","pink","orange","gray","yellow"],C0={primary:"cleen-border-primary-300 cleen-bg-primary-50 cleen-text-primary",blue:"cleen-border-blue-300 cleen-bg-blue-50 cleen-text-blue-700","lighter-blue":"cleen-border-blue-light-300 cleen-bg-blue-light-50 cleen-text-blue-light-700",indigo:"cleen-border-indigo-300 cleen-bg-indigo-50 cleen-text-indigo-700",green:"cleen-border-success/30 cleen-bg-success-bg cleen-text-success",red:"cleen-border-error/30 cleen-bg-error-bg cleen-text-error",purple:"cleen-border-purple-300 cleen-bg-purple-50 cleen-text-purple-700",pink:"cleen-border-pink-300 cleen-bg-pink-50 cleen-text-pink-700",orange:"cleen-border-orange-300 cleen-bg-orange-50 cleen-text-orange-700",yellow:"cleen-border-yellow-500 cleen-bg-yellow-50 cleen-text-yellow-700 dark:cleen-text-yellow-500",gray:"cleen-border-border cleen-bg-muted cleen-text-neutral-600"},ty={primary:"cleen-bg-primary cleen-text-primary-foreground cleen-border-primary",blue:"cleen-bg-blue-500 cleen-text-white cleen-border-blue-500","lighter-blue":"cleen-bg-blue-light-300 cleen-text-black cleen-border-blue-light-300",indigo:"cleen-bg-indigo-500 cleen-text-white cleen-border-indigo-500",green:"cleen-bg-success cleen-text-white cleen-border-success",red:"cleen-bg-error cleen-text-white cleen-border-error",purple:"cleen-bg-purple-500 cleen-text-white cleen-border-purple-500",pink:"cleen-bg-pink-500 cleen-text-white cleen-border-pink-500",orange:"cleen-bg-orange-400 cleen-text-black dark:cleen-text-white cleen-border-orange-400",yellow:"cleen-bg-yellow-400 cleen-text-black dark:cleen-text-white cleen-border-yellow-400",gray:"cleen-bg-neutral-500 cleen-text-white cleen-border-neutral-500"},oy={primary:"cleen-bg-primary",blue:"cleen-bg-blue-700","lighter-blue":"cleen-bg-blue-light-700",indigo:"cleen-bg-indigo-700",green:"cleen-bg-success",red:"cleen-bg-error",purple:"cleen-bg-purple-700",pink:"cleen-bg-pink-700",orange:"cleen-bg-orange-700",yellow:"cleen-bg-yellow-700 dark:cleen-bg-yellow-500",gray:"cleen-bg-neutral-600"},ny={primary:"cleen-bg-primary-foreground",blue:"cleen-bg-white","lighter-blue":"cleen-bg-black",indigo:"cleen-bg-white",green:"cleen-bg-white",red:"cleen-bg-white",purple:"cleen-bg-white",pink:"cleen-bg-white",orange:"cleen-bg-black dark:cleen-bg-white",yellow:"cleen-bg-black dark:cleen-bg-white",gray:"cleen-bg-white"},ry={full:"cleen-rounded-full",rounded:"cleen-rounded-2xl",semiRounded:"cleen-rounded-lg",sleek:"cleen-rounded"};var ay=(e,t)=>!e&&!t?"primary":t?I0[t%I0.length]:e;import{jsx as x0,jsxs as dk}from"react/jsx-runtime";var xe=({className:e,classNames:t,style:n,styles:o,label:l,color:a="primary",variant:c="rounded",showDot:i=!1,icon:d,removeable:s=!1,withBorder:p=!0,filled:g=!1,onRemoveClicked:m,onClick:y,colorByIndex:v,children:h,...b})=>{let{variantClass:x,dotVariantClass:C,dotVariantStyle:I,variantStyle:P}=pk(()=>{let k={};if(a in C0){let E=ay(a,v);k.variantClass=g?ty[E]:C0[E],k.dotVariantClass=g?ny[E]:oy[E]}else k.variantStyle={borderColor:g?a:ti.trasparentize(a,.8),backgroundColor:g?a:ti.trasparentize(a,.95),color:g?ti.adjustColorForContrast(a,.5):a},k.dotVariantStyle={backgroundColor:g?ti.adjustColorForContrast(a,.5):a};return k},[a,v,g]);return x0("div",{className:ei("cleen",e),style:n,children:dk("span",{className:ei("cleen-flex cleen-justify-center cleen-items-center cleen-gap-1 cleen-text-xs cleen-font-medium cleen-py-0.5 cleen-px-2 cleen-w-fit cleen-min-w-max cleen-transition-all cleen-duration-200",{"cleen-border":p},x,ry[c],{"hover:cleen-opacity-80 cleen-cursor-pointer":y||s},t?.container),style:{...P,...o?.container},onClick:y,...b,children:[i&&x0("span",{className:ei("cleen-size-2 cleen-rounded-[50%]",C,t?.dot),style:{...I,...o?.dot}}),d,l??h,s&&x0(Ve,{className:ei("cleen-size-3 cleen-cursor-pointer cleen-flex cleen-flex-col cleen-justify-center cleen-items-center cleen-transition-transform cleen-duration-200 hover:cleen-scale-125",t?.removable),style:o?.removable,onClick:m})]})})};import{cn as uk}from"@cleen/ui-core";import{useContext as fk,useState as ly}from"react";import{jsx as St,jsxs as hk}from"react/jsx-runtime";var cy=({filter:e,activeTabId:t})=>{let[n,o]=ly(!1),[l,a]=ly(!1),{labels:c,onFilterDelete:i,onFilterPin:d,onFilterSelect:s,onFilterUnpin:p,setIsFiltersDropdownOpen:g}=fk(lt),m=async()=>{try{if(!i)return;o(!0),await i(e.filterID)}catch(v){console.error("Error while deleting filter:",v)}finally{o(!1)}},y=async()=>{try{a(!0),e?.isPinned?await p?.(e.filterID):await d?.(e.filterID)}catch(v){console.error("Error while pinning/unpinnning filter:",v)}finally{a(!1)}};return St("div",{className:"cleen-group cleen-flex cleen-flex-col cleen-justify-around cleen-gap-2 hover:cleen-bg-primary/5 cleen-p-2 cleen-rounded-md cleen-min-h-10",children:hk("div",{className:"cleen-flex cleen-items-center cleen-gap-3 cleen-cursor-pointer",onClick:()=>{s?.(e),g(!1)},children:[St("span",{className:"cleen-flex-1 cleen-text-neutral-600 cleen-text-sm cleen-text-left cleen-truncate",children:e.title}),l?St(re,{classNames:{loader:"cleen-size-5"}}):St(xe,{color:"gray",onClick:v=>{v.stopPropagation(),y()},icon:St(ia,{name:"pin",className:uk("cleen-size-3.5 group-hover:cleen-text-neutral-700 cleen-transition-colors cleen-cursor-pointer",e?.isPinned?"cleen-text-neutral-600":"cleen-text-neutral-300")}),classNames:{container:"cleen-font-bold"},label:e?.isPinned?c?.savedFilters?.filter?.unpin:c?.savedFilters?.filter?.pin}),t==="mine"&&St(jn,{items:[{id:"duplicate",type:"button",label:c?.savedFilters?.filter?.cancelDelete,icon:St(Ve,{className:"cleen-size-5"}),onClick:()=>{}},{id:"archive",type:"button",label:c?.savedFilters?.filter?.delete,icon:St(rt,{}),danger:!0,onClick:()=>m()}],keepOpenOnClick:!1,ignoreClickOutside:!0,onClick:v=>v.stopPropagation(),className:"cleen-flex",children:n?St(re,{size:"sm",color:"rgb(var(--cleen-error))"}):St(rt,{className:"cleen-text-foreground hover:cleen-text-error cleen-transition-colors cleen-cursor-pointer",name:"delete"})})]})})};import{cn as yo}from"@cleen/ui-core";import{forwardRef as gk,useMemo as sy,useState as vk}from"react";import{cn as P0}from"@cleen/ui-core";var Za={horizontal:{list:"cleen-flex cleen-flex-wrap cleen-mb-4"},vertical:{container:"cleen-flex cleen-gap-4",list:"cleen-flex cleen-flex-col",content:"cleen-flex-1"}},iy=e=>{let t=e==="vertical";return{underlined:{list:P0("cleen-gap-2 cleen-border-border",!t&&"cleen-border-b"),tab:P0("cleen-px-1 cleen-font-semibold cleen-text-sm cleen-transition-all cleen-duration-200",t?"cleen-border-l-2 cleen-pl-3 cleen-py-1.5":"cleen-border-b-2 cleen-pb-3"),tabActive:"cleen-border-primary cleen-text-primary",tabInactive:"cleen-border-transparent cleen-text-muted-foreground hover:cleen-text-neutral-700 hover:cleen-border-border",tabDisabled:"cleen-border-transparent cleen-text-neutral-300 cleen-cursor-not-allowed"},padded:{list:"cleen-gap-1",tab:"cleen-px-3 cleen-py-2.5 cleen-rounded-md cleen-font-semibold cleen-text-sm cleen-transition-all cleen-duration-200",tabActive:"cleen-bg-primary/10 cleen-text-primary",tabInactive:"cleen-text-muted-foreground hover:cleen-bg-muted",tabDisabled:"cleen-text-neutral-300 cleen-cursor-not-allowed"},stretched:{list:"cleen-rounded-md cleen-overflow-hidden cleen-border cleen-border-border",tab:P0("cleen-flex-1 cleen-px-3 cleen-py-2 cleen-font-semibold cleen-text-sm cleen-transition-all cleen-duration-200 cleen-border-border cleen-justify-center",t?"[&:not(:first-child)]:cleen-border-t":"[&:not(:first-child)]:cleen-border-l"),tabActive:"cleen-bg-primary/10 cleen-text-primary",tabInactive:"cleen-text-neutral-600 hover:cleen-bg-muted",tabDisabled:"cleen-text-neutral-300 cleen-cursor-not-allowed"}}};import{jsx as oi,jsxs as py}from"react/jsx-runtime";var S0=gk(function({tabs:t,variant:n="underlined",direction:o="horizontal",currentTabIndex:l,onTabChange:a,className:c,classNames:i,style:d,styles:s,...p},g){let[m,y]=vk(0),h=l!==void 0?l:m,b=sy(()=>t?.[h],[t,h]),x=(I,P)=>{y(I),a?.(I,P)},C=sy(()=>iy(o),[o]);return oi("div",{className:yo("cleen",c),style:d,ref:g,...p,children:py("div",{className:yo(Za[o].container,i?.container),style:s?.container,children:[oi("nav",{className:yo(C[n].list,Za[o].list,i?.list),"aria-label":"Tabs",style:s?.list,children:t?.map((I,P)=>{let k=h===P,E=I?.isDisabled;return py("span",{onClick:()=>!E&&x(P,I),className:yo("cleen-flex cleen-items-center cleen-gap-2 cleen-whitespace-nowrap",!E&&"cleen-cursor-pointer",C[n].tab,Za[o].tab,i?.tab,E?yo(C[n].tabDisabled,i?.tabDisabled):k?yo(C[n].tabActive,i?.tabActive):yo(C[n].tabInactive,i?.tabInactive)),style:{...s?.tab,...E?s?.tabDisabled:k?s?.tabActive:s?.tabInactive},"aria-current":k?"page":void 0,"aria-disabled":E,children:[I?.label,!!I?.badge?.label&&oi(xe,{variant:"rounded",color:k?"blue":"gray",...i?.count,...s?.count,...I.badge})]},I?.id||P)})}),!!b?.content&&oi("div",{className:yo("h-full",Za[o].content,i?.content),style:s?.content,children:b?.content})]})})});import{useContext as bk,useState as yk}from"react";import{jsx as Qo,jsxs as Ck}from"react/jsx-runtime";var Ik=e=>{let t={isFeatured:null,isMine:null,isPinned:null,isShared:null};switch(e){case"featured":t.isFeatured=!0;break;case"mine":t.isMine=!0;break;case"pinned":t.isPinned=!0;break;case"shared":t.isShared=!0;break;case"all":default:break}return t},dy=({selectedSavedFilter:e,filters:t,isFiltersFetching:n,onFilterCategoryChange:o})=>{let[l,a]=yk("all"),{labels:c,classNames:i,styles:d,isFiltersDropdownOpen:s,setIsFiltersDropdownOpen:p}=bk(lt);return Qo(Ga,{isOpen:s,onOpenChange:p,leftIcon:Qo(Xr,{className:"cleen-size-5"}),label:e?.title??c?.savedFilters?.label,fullWidthDropdown:!0,...i?.dropdown,...d?.dropdown,children:Ck("div",{className:"flex flex-col gap-2 p-2.5 w-full",children:[Qo(S0,{tabs:[{id:"all",label:c?.savedFilters?.tabs?.all},{id:"mine",label:c?.savedFilters?.tabs?.mine},{id:"shared",label:c?.savedFilters?.tabs?.shared},{id:"featured",label:c?.savedFilters?.tabs?.featured},{id:"pinned",label:c?.savedFilters?.tabs?.pinned}],variant:"padded",onTabChange:(g,m)=>{a(m?.id),o?.(Ik(m?.id))},classNames:{list:"cleen-mb-2"}}),Qo("div",{className:"flex flex-col",children:n?Qo(re,{classNames:{loader:"cleen-size-6"}}):(t?.length||0)>0?t?.map(g=>Qo(cy,{filter:g,activeTabId:l},g.filterID)):Qo("p",{className:"cleen-font-normal cleen-text-neutral-600 cleen-text-base cleen-text-center",children:c?.savedFilters?.noFilters})})]})})};import{cn as Wt}from"@cleen/ui-core";import{forwardRef as xk,useEffect as Pk,useId as Sk,useState as wk}from"react";import{jsx as Jo,jsxs as w0}from"react/jsx-runtime";var M0=xk(function({id:t,name:n,required:o,checked:l,defaultChecked:a=!1,onChange:c,title:i,label:d,labelTooltip:s,sublabel:p,disabled:g,classNames:m,className:y,style:v,styles:h,infoLabels:b,...x},C){let I=typeof l=="boolean",[P,k]=wk(a);Pk(()=>{I||k(a)},[a,I]);let E=I?l:P,N=Sk(),M=i?`${N}-title`:void 0,L=d?`${N}-label`:void 0,S=[M,L].filter(Boolean).join(" ")||void 0,w=()=>{g||(I||k(!P),c?.(!E))};return Jo("div",{className:Wt("cleen",y),style:v,children:w0("div",{className:Wt("cleen-flex cleen-flex-col",m?.container),style:h?.container,children:[i&&Jo(ae,{id:M,htmlFor:t||n,required:o,tooltip:s,className:Wt("cleen-mb-1.5",m?.title?.className),classNames:m?.title?.classNames,...h?.title,children:i}),w0("div",{className:Wt("cleen-flex cleen-items-center cleen-gap-2 cleen-w-full",m?.switchContainer),style:h?.switchContainer,children:[Jo("button",{id:t||n,type:"button",role:"switch","aria-checked":E,"aria-labelledby":S,disabled:g,onClick:w,className:Wt("cleen-inline-flex cleen-relative cleen-flex-shrink-0 cleen-my-auto cleen-mb-auto cleen-border-2 cleen-border-transparent cleen-rounded-full cleen-w-11 cleen-h-6 cleen-transition-colors cleen-duration-200 cleen-ease-in-out cleen-cursor-pointer focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-offset-2 focus-visible:cleen-ring-primary",E?"cleen-bg-primary hover:cleen-bg-[color-mix(in_srgb,rgba(var(--cleen-primary)),black_12%)]":"cleen-bg-neutral-200 hover:cleen-bg-neutral-300",m?.switch),style:h?.switch,ref:C,...x,children:Jo("span",{"aria-hidden":"true",className:Wt("cleen-inline-block cleen-bg-primary-foreground cleen-shadow cleen-rounded-full cleen-ring-0 cleen-w-5 cleen-h-5 cleen-transition cleen-duration-200 cleen-ease-in-out cleen-pointer-events-none cleen-transform",E?"cleen-translate-x-5":"cleen-translate-x-0",m?.check),style:h?.check})}),(d||p)&&w0("div",{className:Wt("cleen-flex cleen-flex-col cleen-text-sm",m?.labelContainer),style:h?.labelContainer,children:[d&&Jo("span",{id:L,className:Wt("cleen-font-semibold cleen-text-foreground",m?.label),style:h?.label,children:d}),p&&Jo("span",{className:Wt("cleen-font-normal cleen-text-muted-foreground",m?.sublabel),style:h?.sublabel,children:p})]})]}),(b?.errorMessage||b?.infoMessage||b?.subtitle)&&Jo(ne,{...b})]})})});import{useContext as Mk}from"react";import{Fragment as kk,jsx as my,jsxs as Bk}from"react/jsx-runtime";var uy=()=>{let{classNames:e,styles:t,labels:n,saveStepValues:o,setSaveStepValues:l,errors:a,clearError:c}=Mk(lt);return Bk(kk,{children:[my(ge,{value:o.filterName,onChange:i=>{l(d=>({...d,filterName:i.target.value})),a?.filterName&&c?.("filterName")},label:n?.saveStep?.filterNameInput?.label,placeholder:n?.saveStep?.filterNameInput?.placeholder,infoLabels:{errorMessage:a?.filterName},...e?.saveFilter?.filterName,...t?.saveFilter?.filterName}),my(M0,{checked:o.exposed,onChange:i=>l(d=>({...d,exposed:i})),title:n?.saveStep?.exposureSwitch?.title,label:n?.saveStep?.exposureSwitch?.label,sublabel:n?.saveStep?.exposureSwitch?.sublabel,...e?.saveFilter?.exposure,...t?.saveFilter?.exposure})]})};var fy={title:"Filters",subtitle:"Apply filters to table data.",apply:"Apply",cancel:"Cancel",clear:"Clear",save:"Save filters",saveStep:{back:"Back",save:"Save",title:"Save Filter",subtitle:"Filters are reusable and shareable.",filterNameInput:{label:"Filter name",placeholder:"Type a name for this filter"},exposureSwitch:{title:"Exposure",label:"Share this filter",sublabel:"Allows others to see and use this filter"},validation:{tooShort:"You must provide a valid filter title, above 3 characters long.",tooLong:"You must provide a valid filter title, below 50 characters long."}},savedFilters:{label:"Select saved filter",noFilters:"No saved filters",filter:{delete:"Delete",cancelDelete:"Cancel",pin:"Pin",unpin:"Unpin"},tabs:{all:"All",featured:"Featured",mine:"Mine",pinned:"Pinned",shared:"Shared"}}};import{useValidation as Nk}from"@cleen/ui-core";import{useState as k0}from"react";import{jsx as Tk}from"react/jsx-runtime";var hy=({children:e,value:t})=>{let[n,o]=k0(!1),[l,a]=k0(Qc),{errors:c,setError:i,clearError:d}=Nk({}),[s,p]=k0(!1),g=()=>{o(!1),t?.onClose?.()};return Tk(lt.Provider,{value:{isSaveFiltersStep:n,setIsSaveFiltersStep:o,saveStepValues:l,setSaveStepValues:a,handleCloseSaveFilter:g,isFiltersDropdownOpen:s,setIsFiltersDropdownOpen:p,errors:c,setError:i,clearError:d,...t},children:e})};import{applyDefaults as Rk,cn as gy}from"@cleen/ui-core";import{forwardRef as vy,useContext as Lk}from"react";import{Fragment as Fk,jsx as Io,jsxs as Ak}from"react/jsx-runtime";var Ek=vy(function({selectedSavedFilter:t,savedFilters:n,isFiltersFetching:o,children:l,classNames:a,styles:c,labels:i,withSavedFilters:d=!0,onClear:s,onSave:p,onCancel:g,onApply:m,onClose:y,filterDateFormatter:v,onFilterCategoryChange:h,onFilterDelete:b,onFilterPin:x,onFilterSelect:C,onFilterUnpin:I,...P},k){return Io(hy,{value:{selectedSavedFilter:t,savedFilters:n,isFiltersFetching:o,classNames:a,styles:c,labels:Rk(fy,i),withSavedFilters:d,onClear:s,onSave:p,onCancel:g,onApply:m,onClose:y,filterDateFormatter:v,onFilterCategoryChange:h,onFilterDelete:b,onFilterPin:x,onFilterSelect:C,onFilterUnpin:I},children:Io(Dk,{...P,ref:k,children:l})})}),Dk=vy(function({children:t,...n},o){let{handleCloseSaveFilter:l,isSaveFiltersStep:a,selectedSavedFilter:c,savedFilters:i,isFiltersFetching:d,classNames:s,styles:p,labels:g,withSavedFilters:m=!0,onClear:y,onFilterCategoryChange:v,onFilterSelect:h}=Lk(lt);return Io(o0,{footer:Io(qb,{}),headerCloseBtn:Io(ee,{onClick:()=>{y?.(),h?.(void 0)},leftIcon:Io(rt,{}),variant:"secondary",...s?.clearBtn,...p?.clearBtn,children:g?.clear}),classNames:{...s,content:gy("cleen-space-y-4",s?.content),footer:gy("cleen-justify-between",s?.footer)},onClose:l,ref:o,...n,title:a?g?.saveStep?.title:n.title,subtitle:a?g?.saveStep?.subtitle:n.subtitle,children:a?Io(uy,{}):Ak(Fk,{children:[m&&Io(dy,{filters:i,selectedSavedFilter:c,onFilterCategoryChange:v,isFiltersFetching:d}),t]})})});import{cn as er}from"@cleen/ui-core";import{forwardRef as Ok}from"react";import{jsx as ni,jsxs as by}from"react/jsx-runtime";var yy=Ok(({title:e,titleTooltip:t,subtitle:n,required:o,labelProps:l,children:a,className:c,classNames:i,style:d,styles:s,...p},g)=>ni("div",{ref:g,className:er("cleen",c),style:{...d,width:"100%"},...p,children:by("div",{className:er("cleen-flex cleen-w-full cleen-items-start cleen-justify-start cleen-gap-8",i?.container),style:s?.container,children:[by("div",{className:er("cleen-flex cleen-flex-col cleen-w-1/3",i?.titleColumn),style:s?.titleColumn,children:[ni(ae,{...l,required:o,tooltip:t,className:i?.title?.className,classNames:{...i?.title?.classNames,label:er("cleen-truncate",i?.title?.classNames?.label)},...s?.title,children:e}),n&&ni("div",{className:er("cleen-overflow-hidden cleen-whitespace-nowrap cleen-text-ellipsis cleen-w-full cleen-font-normal cleen-text-neutral-600 cleen-text-sm",i?.subtitle),style:s?.subtitle,children:n})]}),ni("div",{className:er("cleen-form-group--controls-row cleen-flex cleen-flex-1 cleen-flex-wrap cleen-gap-8",i?.controlsRow),style:s?.controlsRow,children:a})]})}));yy.displayName="FormGroup";import{cn as ke,useDebounce as _k,useOutsideClick as zk,usePositionClose as Vk,ZIndex as Hk}from"@cleen/ui-core";import{useEffect as ri,useMemo as B0,useRef as N0,useState as bt}from"react";import{createPortal as Uk}from"react-dom";import{Fragment as Wk,jsx as Y,jsxs as Xe}from"react/jsx-runtime";function Gk(e){return e!==null&&typeof e=="object"}function Oe(e,t){if(Gk(e)&&t in e)return e[t]}function Iy(e,t){let n=Oe(e,t);return Array.isArray(n)?n:[]}function Cy(e,t){let n=e?.[t];if(typeof n=="string"||typeof n=="number")return n;let o=e?.data?.[t];return typeof o=="string"||typeof o=="number"?o:null}var $k=({position:e="bottom-right",labels:t,groups:n=[],selectedItemID:o=null,groupThreeDotMenuOptions:l=[],itemThreeDotMenuOptions:a=[],refetchData:c,onGroupSave:i,onItemSave:d,onGroupThreeDotMenuClick:s,onItemThreeDotMenuClick:p,onSearchChange:g,onItemSelect:m,groupIDKey:y,groupTitleKey:v,itemsKey:h,itemIDKey:b,itemGroupIDKey:x,itemTitleKey:C,itemSubtitleKey:I,newValueMinLength:P=2,isLoading:k=!1,isGroupSaving:E=!1,isItemSaving:N=!1,selectedColor:M="rgb(var(--cleen-primary-100))",hasFiltering:L=!0,zIndex:S=Hk.POPOVER,className:w,classNames:T,style:F,styles:R})=>{let[B,V]=bt(!1),[D,A]=bt(!1),[O,z]=bt(!1),[U,W]=bt(!1),[q,H]=bt(null),[$,Q]=bt(null),[_,Z]=bt(""),[pe,he]=bt(""),[be,Ne]=bt(null),_e=N0(void 0),[j,ie]=bt(""),[Ge]=_k(j,500),[ze,Te]=bt(""),dt=N0(null),Qe=N0(null),{positionStyles:K,isMounted:Se}=Vk({triggerRef:dt,targetRef:Qe,position:e,isOpen:B,offset:10});zk({refs:[Qe],handler:()=>V(!1),enabled:B});let Re=B0(()=>n??[],[n]),we=B0(()=>{let G=new Map;for(let J of Re){let ce=Oe(J,y);ce!=null&&G.set(ce,Iy(J,h))}return G},[Re,y,h]),$e=B0(()=>{let G=[];return q==null?G=Array.from(we?.values()).flat():G=we?.get(q)??[],L&&ze.trim()!==""&&(G=G.filter(J=>{let ce=String(Oe(J,C)??""),Le=I?String(Oe(J,I)??""):"";return ce.toLowerCase().includes(ze?.toLowerCase()??"")||Le.toLowerCase().includes(ze?.toLowerCase()??"")})),G},[q,we,ze,C,I,L]);ri(()=>{let G=_e.current!==o;if(_e.current=o,o==null){G&&(Q(null),H(null));return}let ce=Array.from(we?.values())?.flat()?.find(Le=>Oe(Le,b)===o);if(ce){let Le=Oe(ce,x)??null;Q(ce),H(Le)}else G&&Q(null)},[o,we,b,x]),ri(()=>{if(be==null)return;let J=Array.from(we?.values())?.flat()?.find(Le=>Oe(Le,b)===be);if(!J)return;let ce=Oe(J,x);H(typeof ce=="string"||typeof ce=="number"?ce:null),Q(J),Ne(null),m?.(J)},[be,we,b,x,m]),ri(()=>{g&&g(Ge??"")},[Ge,g]),ri(()=>{B||(A(!1),z(!1),Z(""),he(""))},[B]);let et=G=>{G===q?(H(null),Q(null),m?.(null)):(Q(null),H(G),m?.(null))},Cr=G=>{let J=Oe(G,x);H(typeof J=="string"||typeof J=="number"?J:null),Q(G),m?.(G),V(!1)};async function yn(){if(!i)return;let G={[v]:_};try{let J=await i(G);if(J?.success){A(!1),Z(""),c&&await c();let ce=Cy(J,y);ce!=null&&(H(ce),Q(null),m?.(null))}}catch{}}async function oe(){if(!d)return;let G={[C]:pe,...q!=null?{[x]:q}:{}};try{let J=await d(G);J?.success&&(z(!1),he(""),Ne(Cy(J,b)),c&&await c())}catch{}}return Y("div",{className:ke("cleen",w),style:F,children:Xe("div",{ref:dt,className:ke("cleen-relative cleen-w-full cleen-cursor-pointer",T?.container),style:R?.container,onClick:G=>{G.stopPropagation(),V(!0)},children:[Y(ge,{placeholder:t?.inputPlaceholder,rightIcon:Y(Ot,{className:ke("cleen-w-5 cleen-h-5 cleen-text-neutral-300 cleen-transition-transform",{"cleen-rotate-180":!B})}),value:j,onChange:G=>{H(null),Q(null),ie(G.target.value)},classNames:{input:B?"":"cleen-cursor-pointer"},className:T?.input,style:R?.input}),B&&Uk(Y("div",{className:"cleen",children:Xe("div",{ref:Qe,className:ke("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":!Se},T?.columnsContainer),style:{zIndex:S,top:`${K.top}px`,left:`${K.left}px`,...R?.columnsContainer},children:[Xe("div",{className:"cleen-w-1/2 cleen-h-full",children:[Y("div",{className:ke("cleen-overflow-scroll cleen-no-scrollbar cleen-flex cleen-flex-col cleen-items-start cleen-justify-start cleen-w-full cleen-h-[300px]",T?.leftColumn),style:R?.leftColumn,children:k?Y("div",{className:"cleen-flex cleen-items-center cleen-justify-center cleen-w-full cleen-h-full",children:Y(re,{size:"sm"})}):n?.map((G,J)=>{let ce=Oe(G,y),Le=ce===q,se=String(Oe(G,v)??""),In=Iy(G,h)?.length??0;return Xe("div",{className:ke("cleen-group cleen-flex cleen-items-center cleen-justify-between cleen-gap-2 cleen-px-3 cleen-w-full cleen-min-h-10 cleen-cursor-pointer cleen-transition-colors hover:cleen-bg-neutral-50",T?.groupItem),style:{...R?.groupItem||{},...Le?{backgroundColor:M}:{}},onClick:ue=>{ue.stopPropagation(),ue.preventDefault(),et(ce??null)},children:[Xe("div",{className:ke("cleen-flex cleen-items-center cleen-justify-start cleen-gap-2",l?.length>0?"cleen-w-[calc(100%-30px)]":"cleen-w-full"),children:[Y("span",{className:ke("cleen-truncate cleen-font-semibold cleen-text-[14px] cleen-text-foreground",T?.groupItemTitle),style:R?.groupItemTitle,children:se}),Y(xe,{color:"lighter-blue",label:In})]}),l?.length>0&&Y("div",{className:"cleen-opacity-0 group-hover:cleen-opacity-100",onClick:ue=>{ue.stopPropagation(),s?.(G)},children:Y(jn,{position:"bottom-right",keepOpenOnClick:!1,ignoreClickOutside:!0,items:l?.map(ue=>{let xr=ue?.disabledOptionCallback?.(G);return{...ue,type:"button",label:Y("span",{className:"cleen-font-semibold cleen-text-[14px] cleen-text-neutral-700",children:ue?.label}),onClick:()=>{xr||ue?.onClick(G)},disabled:xr}}),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:Y(Bn,{className:"cleen-w-4 cleen-h-4 cleen-text-neutral-700 cleen-cursor-pointer hover:cleen-text-primary"})})})]},`group-${J}-${String(ce??J)}`)})}),Y(gt,{isHorizontal:!0}),D?Xe("div",{className:"cleen-flex cleen-items-center cleen-justify-between cleen-w-full cleen-h-10",children:[Y(ge,{leftIcon:Y(so,{className:"cleen-w-4 cleen-h-4 cleen-text-neutral-300"}),placeholder:t?.newGroupPlaceholder,value:_,onChange:G=>Z(G.target.value),classNames:{inputContainer:"cleen-border-none focus-within:cleen-ring-0",input:"cleen-w-full"},className:"cleen-w-[170px]",autoFocus:!0}),Y("div",{className:"cleen-flex cleen-items-center cleen-justify-center cleen-w-[80px] cleen-h-full",children:i?E?Y(re,{}):_?.length>P?Y(ee,{variant:"primary",label:t?.saveButtonLabel,onClick:()=>{yn()},classNames:{container:"cleen-w-max cleen-h-7"}}):Y("div",{}):Y("div",{})})]}):Xe("div",{className:ke("cleen-flex cleen-items-center cleen-justify-start cleen-gap-2 cleen-w-full cleen-px-2 cleen-h-10 cleen-cursor-pointer cleen-transition-colors hover:cleen-bg-neutral-50",T?.newGroupButton),style:R?.newGroupButton,onClick:()=>A(!0),children:[Y(so,{className:"cleen-w-4 cleen-h-4 cleen-text-neutral-300"}),Y("span",{className:"cleen-text-normal cleen-text-[14px] cleen-text-muted-foreground",children:t?.newGroupPlaceholder})]})]}),Y(gt,{className:"cleen-absolute cleen-top-0 cleen-left-1/2 cleen-min-w-[1px] cleen-h-full cleen-bg-border cleen-z-[1]"}),Xe("div",{className:"cleen-w-1/2 cleen-h-full",children:[Xe("div",{className:ke("cleen-overflow-scroll cleen-no-scrollbar cleen-flex cleen-flex-col cleen-items-start cleen-justify-start cleen-w-full cleen-h-[300px]",T?.rightColumn),style:R?.rightColumn,children:[L&&Xe(Wk,{children:[Y(ge,{leftIcon:Y(Vt,{className:"cleen-size-5"}),className:ke("cleen-w-full cleen-transition-transform",{"-cleen-translate-y-11":!U}),classNames:{inputContainer:"cleen-border-0 cleen-shadow-none"},onChange:G=>Te(G.target.value),placeholder:t?.filterPlaceholder}),Y("button",{type:"button",className:ke("cleen-w-full cleen-py-0.5 cleen-transition-all cleen-bg-neutral-50 hover:cleen-bg-muted cleen-border-t cleen-border-border",{"-cleen-mt-10 cleen-border-transparent":!U}),onClick:()=>W(G=>!G),children:Y(Dr,{className:ke("cleen-mx-auto cleen-size-4 cleen-text-muted-foreground cleen-transition-transform",U?"-cleen-rotate-90":"cleen-rotate-90")})})]}),k?Y("div",{className:"cleen-flex cleen-items-center cleen-justify-center cleen-w-full cleen-h-full",children:Y(re,{size:"sm"})}):$e?.map((G,J)=>{let ce=Oe(G,b),Le=$&&Oe($,b)===ce,se=String(Oe(G,C)??""),In=I?String(Oe(G,I)??""):"";return Xe("div",{className:ke("cleen-group cleen-flex cleen-items-center cleen-justify-between cleen-gap-2 cleen-px-3 cleen-w-full cleen-min-h-[60px] cleen-cursor-pointer hover:cleen-bg-neutral-50 cleen-transition-colors",T?.item),style:{...R?.item||{},...Le?{backgroundColor:M}:{}},onClick:ue=>{ue.stopPropagation(),ue.preventDefault(),Cr(G)},children:[Xe("div",{className:ke("cleen-flex cleen-flex-col cleen-items-start cleen-justify-center",a?.length>0?"cleen-w-[calc(100%-30px)]":"cleen-w-full"),children:[Y("span",{className:ke("cleen-truncate cleen-w-full cleen-font-semibold cleen-text-[14px] cleen-text-foreground",T?.itemTitle),style:R?.itemTitle,children:se}),Y("span",{className:ke("cleen-truncate cleen-w-full cleen-font-semibold cleen-text-[12px] cleen-text-neutral-600",T?.itemSubtitle),style:R?.itemSubtitle,children:In})]}),a?.length>0&&Y("div",{className:"cleen-opacity-0 group-hover:cleen-opacity-100",onClick:ue=>{ue.stopPropagation(),p?.(G)},children:Y(jn,{position:"bottom-right",keepOpenOnClick:!1,ignoreClickOutside:!0,items:a?.map(ue=>{let xr=ue?.disabledOptionCallback?.(G);return{...ue,type:"button",label:Y("span",{className:"cleen-font-semibold cleen-text-[14px] cleen-text-neutral-700",children:ue?.label}),onClick:()=>{xr||ue?.onClick(G)},disabled:xr}}),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:Y(Bn,{className:"cleen-w-4 cleen-h-4 cleen-text-neutral-700 cleen-cursor-pointer hover:cleen-text-primary"})})})]},`item-${J}-${String(ce??J)}`)})]}),Y(gt,{isHorizontal:!0}),O?Xe("div",{className:"cleen-flex cleen-items-center cleen-justify-between cleen-w-full cleen-h-10",children:[Y(ge,{leftIcon:Y(so,{className:"cleen-w-4 cleen-h-4 cleen-text-neutral-300"}),placeholder:t?.newItemPlaceholder,value:pe,onChange:G=>he(G.target.value),classNames:{inputContainer:"cleen-border-none focus-within:cleen-ring-0",input:"cleen-w-full"},className:"cleen-w-[170px]",autoFocus:!0}),Y("div",{className:"cleen-flex cleen-items-center cleen-justify-center cleen-w-[80px] cleen-h-full",children:d?N?Y(re,{}):pe?.length>P?Y(ee,{variant:"primary",label:t?.saveButtonLabel,onClick:()=>{oe()},classNames:{container:"cleen-w-max cleen-h-7"}}):Y("div",{}):Y("div",{})})]}):Xe("div",{className:ke("cleen-flex cleen-items-center cleen-justify-start cleen-gap-2 cleen-w-full cleen-px-2 cleen-h-10 cleen-cursor-pointer hover:cleen-bg-primary/10",T?.newItemButton),style:R?.newItemButton,onClick:()=>z(!0),children:[Y(so,{className:"cleen-w-4 cleen-h-4 cleen-text-neutral-300"}),Y("span",{className:"cleen-text-normal cleen-text-[14px] cleen-text-muted-foreground",children:t?.newItemPlaceholder})]})]})]})}),document.body),!B&&$&&Y("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:()=>V(!0),children:Y("span",{className:"cleen-truncate cleen-font-semibold cleen-text-sm cleen-text-foreground",children:String(Oe($,C)??"")})})]})})};import{cn as Fe,useDebounce as qk,useOutsideClick as Xk,usePositionClose as Kk,ZIndex as Yk}from"@cleen/ui-core";import{forwardRef as Zk,useEffect as Sy,useId as Qk,useMemo as wy,useRef as ai,useState as li}from"react";import{createPortal as Jk}from"react-dom";import{cn as jo}from"@cleen/ui-core";import{jsx as Co,jsxs as xy}from"react/jsx-runtime";var Py=({options:e,selection:t,classNames:n,styles:o,onChoose:l,displaySubtextInline:a=!0,activeIndex:c=-1,getOptionId:i,onActiveIndexChange:d,...s})=>Co("div",{...s,children:Co("div",{className:jo("cleen-flex cleen-flex-col cleen-pt-1 cleen-pb-1.5 cleen-max-h-64 cleen-overflow-y-auto",n?.container),style:o?.container,children:e?.map((p,g)=>{let m=t?.some(v=>v?.value===p?.value),y=g===c;return xy("li",{id:i?.(g),role:"option","aria-selected":m,className:jo("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":y},n?.item),style:o?.item,onMouseEnter:()=>d?.(g),onClick:()=>l?.(p,m),children:[xy("div",{className:jo("cleen-flex cleen-justify-start cleen-items-center cleen-gap-2",n?.labels,!a&&"cleen-truncate cleen-flex-col cleen-items-start cleen-gap-0"),style:o?.labels,children:[p?.leadingBadgeValue&&Co(xe,{color:"gray",label:p?.leadingBadgeValue}),p?.icon,p?.label&&Co("span",{className:jo("cleen-font-medium cleen-text-foreground cleen-text-base",!a&&"cleen-w-full cleen-truncate"),children:p?.label}),p?.preSublabel&&Co("span",{className:jo("cleen-font-medium cleen-text-neutral-400 cleen-text-xs",!a&&"cleen-w-full cleen-truncate"),children:p?.preSublabel}),p?.sublabel&&Co("span",{className:jo("cleen-font-medium cleen-text-neutral-600 cleen-text-sm",!a&&"cleen-w-full cleen-truncate"),children:p?.sublabel})]}),m&&Co("div",{className:n?.checkContainer,style:o?.checkContainer,children:Co(Ft,{className:jo("cleen-text-primary",n?.check),style:o?.check})})]},p.value)})})});import{Fragment as eB,jsx as Me,jsxs as ci}from"react/jsx-runtime";var jk=Zk(function({id:t,name:n,label:o,labelTooltip:l,labels:a,options:c,value:i,displaySelected:d="under",isLoading:s=!1,required:p,internalFiltering:g=!1,closeOnReachingLimit:m=!0,limit:y,getCustomBadgeLabel:v,displaySubtextInline:h=!0,selectedBadgeColor:b="blue",debounceDelay:x=0,characterThreshold:C=2,disabled:I=!1,isNoDataVisibleOnCreateNew:P=!0,zIndex:k=Yk.DROPDOWN,className:E,classNames:N,style:M,styles:L,infoLabels:S,menuDetachedFromPortal:w,onInputChange:T,onChange:F,onCreateNewOption:R,createNewOptionLabelString:B,onLookupBlur:V,triggerBlurOnlyWhenOpen:D=!0,menuRef:A,...O},z){let[U,W]=li(!1),q=ai(null),H=ai(null),$=A??q,{positionStyles:Q,isMounted:_}=Kk({triggerRef:H,targetRef:$,position:"bottom-left",isOpen:U,offset:4});Xk({refs:[$,H],handler:()=>{W(!1),V?.()},enabled:D?U:!0});let[Z,pe]=li(""),he=qk(Z,x),be=x?he:Z,Ne=ai(be),_e=ai(!1),j=()=>{_e.current=!1,pe("")},ie=Array.isArray(i),[Ge,ze]=li([]),Te=ie?i:Ge,dt=["inside","inside-badge"].includes(d),Qe=(oe,G=!1)=>{if(G){let ce=Te.filter(Le=>Le.value!==oe.value);ie||ze(ce),F?.(ce);return}let J;if(y===1)J=[oe];else{if(y&&Te.length>=y)return;J=[...Te,oe]}ie||ze(J),F?.(J),m&&y&&J.length>=y&&(j(),W(!1))},K=wy(()=>g?c?.filter(oe=>oe?.label?.match(new RegExp(be,"i"))):c,[c,be,g]),Se=wy(()=>B&&R&&!s&&Z?.length>0&&!K?.some(oe=>oe?.label===Z)?typeof B=="function"?B(Z):B:null,[B,R,s,Z,K]);Sy(()=>{if(Ne.current!==be)if(Ne.current=be,be.length<C)W(!1);else{T?.(be);let oe=!!H.current?.contains(document.activeElement);_e.current&&oe&&W(!0)}},[be,T,C]);let Re=Qk(),we=oe=>`${Re}-option-${oe}`,[$e,et]=li(-1);Sy(()=>{et(-1)},[be,U]);let Cr=oe=>{let G=K?.length??0;switch(oe.key){case"ArrowDown":if(!G)return;if(oe.preventDefault(),!U){W(!0),et(0);return}et(J=>(J+1)%G);break;case"ArrowUp":if(!G)return;if(oe.preventDefault(),!U){W(!0),et(G-1);return}et(J=>(J-1+G)%G);break;case"Home":if(!U||!G)return;oe.preventDefault(),et(0);break;case"End":if(!U||!G)return;oe.preventDefault(),et(G-1);break;case"Enter":{if(!U||$e<0)return;let J=K?.[$e];if(!J)return;oe.preventDefault();let ce=Te?.some(Le=>Le.value===J.value);Qe(J,ce);break}case"Escape":U&&(oe.preventDefault(),W(!1));break;default:break}},yn=ci("ul",{id:Re,role:"listbox",className:Fe("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",N?.menu?.container),style:L?.menu?.container,children:[s?Me(re,{className:Fe("cleen-py-3",N?.menu?.loader),style:L?.menu?.loader}):!K||K?.length===0?!!a?.noDataFound&&(P||!Se)&&Me("div",{className:Fe("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",N?.menu?.noDataFound),style:L?.menu?.noDataFound,children:a?.noDataFound}):Me(Py,{options:K,selection:Te,onChoose:Qe,displaySubtextInline:h,activeIndex:$e,getOptionId:we,onActiveIndexChange:et,...N?.menu?.list,...L?.menu?.list}),Se&&ci("div",{className:Fe("cleen-flex cleen-flex-col cleen-justify-center cleen-items-center",N?.createNewOption?.container),style:L?.createNewOption?.container,children:[Me(gt,{...N?.createNewOption?.divider,...L?.createNewOption?.divider}),Me("span",{className:Fe("cleen-py-3 cleen-font-semibold cleen-text-primary/70 cleen-text-sm cleen-cursor-pointer",N?.createNewOption?.value),style:L?.createNewOption?.value,onClick:()=>{let oe=R?.(Z);typeof oe=="boolean"&&!oe||(j(),W(!1))},children:Se})]})]});return Me("div",{className:Fe("cleen",E),style:M,children:ci("div",{className:Fe("cleen-flex cleen-flex-col cleen-w-full",N?.container),style:L?.container,children:[o&&Me(ae,{htmlFor:t||n,required:p,tooltip:l,className:Fe("cleen-mb-1.5",N?.label?.className),classNames:N?.label?.classNames,...L?.label,children:o}),Me("div",{ref:H,className:Fe("cleen-relative cleen-flex cleen-items-center",N?.input?.container),style:L?.input?.container,children:Me(ge,{id:t||n,type:"search",autoFocus:!1,autoComplete:"off",className:Fe("cleen-w-full",N?.input?.component?.className),classNames:{...N?.input?.component?.classNames,inputContainer:Fe({"cleen-flex-wrap":dt},N?.input?.component?.classNames?.inputContainer),input:Fe({"cleen-pl-2":dt},N?.input?.component?.classNames?.input),leftIconContainer:Fe({"cleen-pr-0":dt},N?.input?.component?.classNames?.leftIconContainer)},...L?.input?.component,leftIcon:ci(eB,{children:[Me(Vt,{}),dt&&(Te||[])?.length>0&&Me("div",{className:Fe("cleen-flex cleen-gap-1 cleen-overflow-hidden cleen-text-ellipsis cleen-whitespace-nowrap"),onClick:()=>{W(!U)},children:d==="inside-badge"?Te?.map(oe=>Me(xe,{label:oe?.label,color:"blue",variant:"semiRounded"},oe.value)):Me("span",{className:Fe("cleen-font-medium cleen-text-foreground cleen-text-sm"),children:Te?.map(oe=>oe?.label).join(", ")})})," "]}),onFocus:()=>{be.length>=C&&Z.length>=C&&W(!0)},value:Z,onChange:oe=>{_e.current=!0,pe(oe.target.value)},role:"combobox","aria-autocomplete":"list","aria-expanded":U,"aria-controls":U?Re:void 0,"aria-activedescendant":U&&$e>=0?we($e):void 0,onKeyDown:Cr,ref:z,required:p,disabled:I,...O})}),U&&(w?Me("div",{ref:$,children:yn}):Jk(Me("div",{className:"cleen",children:Me("div",{ref:$,className:Fe("cleen-absolute",{"cleen-opacity-0":!_}),style:{zIndex:k,top:`${Q.top}px`,left:`${Q.left}px`,minWidth:H.current?.offsetWidth?`${H.current.offsetWidth}px`:void 0},children:yn})}),document.body)),d==="under"&&Te?.length>0&&Me("span",{className:Fe("cleen-flex cleen-flex-wrap cleen-gap-1.5 cleen-mt-1.5",N?.pillbadge?.container),style:L?.pillbadge?.container,children:Te?.map(oe=>Me(xe,{label:v?v(oe):oe?.label,color:b,removeable:!I,onRemoveClicked:()=>{if(I)return;let G=Te?.filter(J=>J?.value!==oe?.value);ie||ze(G),F?.(G)},...N?.pillbadge?.component,...L?.pillbadge?.component},oe.value))}),(S?.errorMessage||S?.infoMessage||S?.subtitle)&&Me(ne,{...S})]})})});import{cn as me}from"@cleen/ui-core";import{forwardRef as tB}from"react";import oB from"react-markdown";import nB from"remark-gfm";import{jsx as de}from"react/jsx-runtime";var rB=tB(function({components:t,children:n,className:o,classNames:l,style:a,styles:c,...i},d){let s={h1:({children:p})=>de("h1",{className:me("cleen-text-3xl cleen-font-semibold cleen-text-foreground-emphasis cleen-mb-4 cleen-mt-6"),children:p}),h2:({children:p})=>de("h2",{className:me("cleen-text-2xl cleen-font-semibold cleen-text-foreground-emphasis cleen-mb-3 cleen-mt-5"),children:p}),h3:({children:p})=>de("h3",{className:me("cleen-text-xl cleen-font-semibold cleen-text-foreground-emphasis cleen-mb-2 cleen-mt-4"),children:p}),h4:({children:p})=>de("h4",{className:me("cleen-text-lg cleen-font-semibold cleen-text-foreground-emphasis cleen-mb-2 cleen-mt-3"),children:p}),h5:({children:p})=>de("h5",{className:me("cleen-text-base cleen-font-semibold cleen-text-foreground cleen-mb-1 cleen-mt-2"),children:p}),h6:({children:p})=>de("h6",{className:me("cleen-text-sm cleen-font-semibold cleen-text-foreground cleen-mb-1 cleen-mt-2"),children:p}),p:({children:p})=>de("p",{className:me("cleen-text-base cleen-text-foreground cleen-mb-4 cleen-leading-relaxed"),children:p}),a:({href:p,children:g})=>de("a",{href:p,className:me("cleen-text-primary cleen-underline"),target:"_blank",rel:"noopener noreferrer",children:g}),ul:({children:p})=>de("ul",{className:me("cleen-list-disc cleen-pl-6 cleen-mb-4 cleen-text-foreground"),children:p}),ol:({children:p})=>de("ol",{className:me("cleen-list-decimal cleen-pl-6 cleen-mb-4 cleen-text-foreground"),children:p}),li:({children:p})=>de("li",{className:me("cleen-mb-1"),children:p}),blockquote:({children:p})=>de("blockquote",{className:me("cleen-border-l-4 cleen-border-primary/30 cleen-pl-4 cleen-italic cleen-text-neutral-700 cleen-mb-4"),children:p}),code:({className:p,children:g,...m})=>p?de("code",{className:me("cleen-font-mono cleen-text-sm"),...m,children:g}):de("code",{className:me("cleen-font-mono cleen-bg-muted cleen-rounded cleen-px-1 cleen-text-sm"),...m,children:g}),pre:({children:p})=>de("pre",{className:me("cleen-bg-muted dark:cleen-bg-neutral-200 cleen-rounded cleen-p-4 cleen-overflow-x-auto cleen-mb-4 cleen-text-sm"),children:p}),hr:()=>de("hr",{className:me("cleen-border-t cleen-border-border cleen-my-4")}),img:({src:p,alt:g})=>de("img",{src:p,alt:g,className:me("cleen-max-w-full cleen-rounded")}),strong:({children:p})=>de("strong",{className:me("cleen-font-semibold"),children:p}),em:({children:p})=>de("em",{className:me("cleen-italic"),children:p}),table:({children:p})=>de("div",{className:me("cleen-overflow-x-auto cleen-mb-4"),children:de("table",{className:me("cleen-w-full cleen-border-collapse cleen-text-sm cleen-text-900"),children:p})}),thead:({children:p})=>de("thead",{className:me("cleen-border-b cleen-border-border"),children:p}),th:({children:p})=>de("th",{className:me("cleen-text-left cleen-font-semibold cleen-p-2 cleen-border-b cleen-border-border"),children:p}),td:({children:p})=>de("td",{className:me("cleen-p-2 cleen-border-b cleen-border-border"),children:p}),input:({type:p,checked:g,disabled:m})=>p==="checkbox"?de("input",{type:"checkbox",checked:g,disabled:m,readOnly:!0,className:me("cleen-mr-2 cleen-align-middle")}):de("input",{type:p})};return de("div",{ref:d,className:me("cleen",o,l?.container),style:{...a,...c?.container},...i,children:de(oB,{...i,remarkPlugins:[nB],components:{...s,...t},children:n})})});import{cn as en,useBodyScrollLock as aB,useCleenOverlays as My,ZIndex as lB}from"@cleen/ui-core";import{forwardRef as cB,useCallback as iB,useEffect as T0,useId as sB,useRef as pB,useState as ky}from"react";import{createPortal as dB}from"react-dom";import{jsx as Qa,jsxs as Ny}from"react/jsx-runtime";var mB={xs:320,sm:384,md:448,lg:512,xl:576,"2xl":728,"3xl":896,"4xl":1152},By=300,uB=cB(function({isOpen:t=!1,onClose:n,closeOnOverlayClick:o=!0,closeButtonIcon:l=Qa(Ve,{className:"cleen-size-5"}),header:a,footer:c,zIndex:i=lB.MODAL,size:d="md",color:s,p,gap:g,radius:m=16,className:y,classNames:v,style:h,styles:b,children:x,...C},I){let[P,k]=ky(t),[E,N]=ky(t),M=pB(null),L=sB(),{addOverlay:S,removeOverlay:w}=My(),T=iB(()=>{k(!1),setTimeout(()=>n?.(),By)},[n]);return T0(()=>{if(t){N(!0);let F=setTimeout(()=>k(!0),1);return()=>clearTimeout(F)}else{k(!1);let F=setTimeout(()=>N(!1),By);return()=>clearTimeout(F)}},[t]),T0(()=>{if(t)return S(L),()=>w(L)},[S,w,t,L]),T0(()=>{let F=R=>{let{overlays:B}=My.getState();R.key==="Escape"&&B[B.length-1]===L&&T()};return document.addEventListener("keydown",F),()=>document.removeEventListener("keydown",F)},[T,L]),aB(E),E?dB(Ny("div",{className:en("cleen",y),style:h,ref:I,...C,children:[Qa("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",P?"cleen-opacity-100":"cleen-opacity-0",v?.overlay),style:{zIndex:i,...b?.overlay},onClick:()=>{o&&T()},"aria-hidden":"true"}),Qa("div",{className:en("cleen-fixed cleen-inset-0 cleen-flex cleen-justify-center cleen-items-center cleen-p-4 cleen-overflow-auto","cleen-transition-all cleen-duration-300 cleen-ease-in-out","cleen-pointer-events-none",P?"cleen-opacity-100 cleen-scale-100":"cleen-opacity-0 cleen-scale-95",v?.container),style:{zIndex:i,...b?.container},"aria-modal":"true",role:"dialog",children:Ny(fe,{header:a,footer:c,color:s,p,gap:g,radius:m,className:en("cleen-relative cleen-shadow-xl cleen-w-full cleen-max-w-lg cleen-rounded-lg cleen-pointer-events-auto",v?.modal?.className),style:{maxWidth:typeof d=="number"?d:mB[d],...b?.modal?.style},classNames:{...v?.modal?.classNames,container:en("cleen-min-h-48 cleen-max-h-[90vh] cleen-overflow-y-auto",v?.modal?.classNames?.container),childrenContainer:en("cleen-min-h-24 cleen-max-h-[80vh] cleen-overflow-y-auto",v?.modal?.classNames?.childrenContainer)},styles:b?.modal?.styles,ref:M,children:[x,l&&Qa("div",{className:en("cleen-top-3 cleen-right-3 cleen-absolute"),children:Qa(ee,{variant:"borderless",onClick:T,"aria-label":"Close modal",classNames:{container:"cleen-p-1.5 cleen-rounded-full"},children:l})})]})})]}),document.body):null});import{Fragment as fB,jsxs as Ty}from"react/jsx-runtime";var Ry={default:{duration:3e3,progressBar:!0},success:{duration:3e3,progressBar:!0},info:{duration:3e3,progressBar:!0},warning:{duration:4e3,progressBar:!0},error:{duration:2e4,progressBar:!1}},ii={success:{name:"CheckCircle",tone:"success"},error:{name:"XCircle",tone:"error"},info:{name:"InfoCircle",tone:"info"},warning:{name:"AlertTriangle",tone:"warning"},default:null},Ly=3,Ey=180,Dy=15e3,tr="general",Ja={[tr]:{label:"Notifications",pluralLabel:"notifications",icon:"Bell",tone:"neutral"}},Fy={primary:"cleen-bg-primary-50 cleen-text-primary",success:"cleen-bg-success-bg cleen-text-success",warning:"cleen-bg-warning-bg cleen-text-warning",error:"cleen-bg-error-bg cleen-text-error",info:"cleen-bg-info-bg cleen-text-info",neutral:"cleen-bg-muted cleen-text-muted-foreground"},Ay={"top-left":"cleen-top-6 cleen-left-6 cleen-items-start","top-right":"cleen-top-6 cleen-right-6 cleen-items-end","top-center":"cleen-top-6 cleen-left-1/2 -cleen-translate-x-1/2 cleen-items-center","bottom-left":"cleen-bottom-6 cleen-left-6 cleen-items-start","bottom-right":"cleen-bottom-6 cleen-right-6 cleen-items-end","bottom-center":"cleen-bottom-6 cleen-left-1/2 -cleen-translate-x-1/2 cleen-items-center"},ja={region:"Notifications",critical:"Critical",action:"Action",dismiss:"Dismiss",dismissAll:"Dismiss all",close:"Dismiss notification",dismissGroup:"Dismiss group",showAll:"Show all",collapse:"Collapse",expand:"Expand",openNotifications:"Open notifications",more:e=>`+${e} more`,moreBehind:e=>Ty(fB,{children:[Ty("b",{className:"cleen-text-foreground",children:["+",e," more"]})," behind this one"]}),overflow:e=>`${e} more`,listTitle:e=>`${e} notifications`,groupTitle:(e,t)=>`${e} ${t.pluralLabel}`,review:e=>`Review ${e.pluralLabel}`,needAction:e=>`${e} need your action`},Ke="cleen-h-[30px] cleen-px-2.5 cleen-py-0 cleen-text-xs cleen-leading-none hover:cleen-translate-y-0";var R0={toasts:[],ui:{expanded:!1,expandedGroups:[]},paused:!1},Oy=({exitDuration:e=Ey}={})=>{let t=R0,n=new Set,o=new Map,l=new Map,a=0,c=S=>{t={...t,...S},n.forEach(w=>w())},i=S=>{let w=o.get(S);!w||w.handle||t.paused||(w.startedAt=Date.now(),w.handle=setTimeout(()=>b(S),w.remaining))},d=S=>{let w=o.get(S);w?.handle&&(clearTimeout(w.handle),w.remaining=Math.max(0,w.remaining-(Date.now()-(w.startedAt??Date.now()))),w.handle=null,w.startedAt=null)},s=S=>{let w=o.get(S);w?.handle&&clearTimeout(w.handle),o.delete(S)},p=S=>{s(S.id),!(S.priority!=="normal"||S.duration===!1||S.duration<=0)&&(o.set(S.id,{duration:S.duration,remaining:S.duration,startedAt:null,handle:null,revision:++a}),i(S.id))},g=S=>{let w=l.get(S);w&&(l.delete(S),w.ids.delete(S),w.ids.size||clearTimeout(w.handle))},m=S=>{S.forEach(F=>l.delete(F));let w=t.toasts.filter(F=>!S.includes(F.id)),T=w.some(F=>!F.leaving);c({toasts:w,...!T&&{ui:R0.ui}})},y=S=>{g(S.id);let w=t.toasts.some(T=>T.id===S.id);return p(S),c({toasts:w?t.toasts.map(T=>T.id===S.id?S:T):[...t.toasts,S]}),S.id},v=(S,w)=>{let T=t.toasts.find(R=>R.id===S);if(!T||T.leaving)return;let F={...T,...w};("priority"in w||"duration"in w)&&p(F),c({toasts:t.toasts.map(R=>R.id===S?F:R)})},h=S=>{let w=t.toasts.filter(R=>S.includes(R.id)&&!R.leaving);if(!w.length)return;w.forEach(R=>s(R.id));let T=w.filter(R=>R.animationType==="none"||e<=0).map(R=>R.id),F=w.filter(R=>!T.includes(R.id)).map(R=>R.id);if(F.length){let R=t.toasts.filter(D=>!D.leaving).length;c({toasts:t.toasts.map(D=>F.includes(D.id)?{...D,leaving:!0,leavingFromCount:R}:D)});let B=new Set(F),V=setTimeout(()=>m([...B]),e);F.forEach(D=>l.set(D,{handle:V,ids:B}))}T.length&&m(T)},b=S=>h([S]);return{add:y,update:v,dismiss:b,dismissMany:h,clear:()=>h(t.toasts.map(S=>S.id)),pauseAll:()=>{t.paused||(o.forEach((S,w)=>d(w)),c({paused:!0}))},resumeAll:()=>{t.paused&&(c({paused:!1}),o.forEach((S,w)=>i(w)))},setExpanded:S=>c({ui:{...t.ui,expanded:S}}),toggleGroup:S=>{let{expandedGroups:w}=t.ui;c({ui:{...t.ui,expandedGroups:w.includes(S)?w.filter(T=>T!==S):[...w,S]}})},resetUi:()=>c({ui:R0.ui}),getTimer:S=>{let w=o.get(S);if(!w)return;let T=w.startedAt?Date.now()-w.startedAt:0;return{duration:w.duration,remaining:Math.max(0,w.remaining-T),revision:w.revision}},subscribe:S=>(n.add(S),()=>{n.delete(S)}),getSnapshot:()=>t}},le=Oy();var hB=0,_y=({id:e,variant:t="default",priority:n,actions:o,duration:l,closeButton:a=!0,hideProgressBar:c,animationType:i="slide",...d})=>{let s=Ry[t];return le.add({...d,id:e??`cleen-notification-${++hB}`,variant:t,actions:o,priority:n??(o?.length?"important":"normal"),duration:l??s.duration,closeButton:a,progressBar:c===void 0?s.progressBar:!c,animationType:i,createdAt:Date.now()})},gB=(e,{hideProgressBar:t,...n})=>le.update(e,{...n,...t!==void 0&&{progressBar:!t}}),tn={show:_y,update:gB,dismiss:le.dismiss,dismissMany:le.dismissMany,clear:le.clear};import{useSyncExternalStore as vB}from"react";var si=()=>vB(le.subscribe,le.getSnapshot,le.getSnapshot);import{useMemo as bB}from"react";var yB=()=>{let{toasts:e,paused:t}=si();return{toasts:bB(()=>e.filter(o=>!o.leaving),[e]),paused:t,show:tn.show,update:tn.update,dismiss:tn.dismiss,dismissMany:tn.dismissMany,clear:tn.clear}};var zy={critical:0,important:1,normal:2},L0=e=>e.filter(t=>!t.leaving),pi=e=>[...e].reverse(),Hy=e=>[...e].sort((t,n)=>zy[t.priority]-zy[n.priority]),or=e=>!!e.actions?.length&&e.priority!=="normal",Uy=e=>e.category??tr,on=e=>({type:"toast",key:`toast-${e.id}`,toast:e}),E0=e=>e.map(on),Vy=(e,t)=>(e.leavingFromCount??0)>t,nr=(e,t,n)=>{let o=L0(e);if(o.length>t)return n(o);let l=e.filter(a=>a.leaving&&Vy(a,t));return!o.length&&l.length>t?n(l).map(a=>({...a,exiting:!0})):E0(e.filter(a=>!a.leaving||!Vy(a,t)))};var D0=(e,t,n)=>nr(e,n,o=>{let l=Hy(pi(o)),a=l.filter(h=>h.priority==="critical"),c=l.filter(h=>h.priority!=="critical"),i=new Map;c.forEach(h=>{let b=Uy(h);i.set(b,[...i.get(b)??[],h])});let d=h=>Number(i.get(h).some(or)),s=h=>i.get(h).length,p=[...i.keys()].sort((h,b)=>d(b)-d(h)||s(b)-s(h)),g=Math.max(0,n-Math.min(a.length,1)),m=p.slice(0,g),y=[...a.slice(1),...p.slice(g).flatMap(h=>i.get(h))],v=a.slice(0,1).map(on);return m.forEach(h=>{let b=i.get(h);v.push(b.length===1?on(b[0]):{type:"group",key:`group-${h}`,category:h,toasts:b,expanded:t.expandedGroups.includes(h)})}),v.push({type:"footer",key:"footer",overflow:y,toasts:o}),v});var F0=(e,t,n=1/0)=>nr(e,n,o=>[...E0(o),{type:"footer",key:"footer",overflow:[],toasts:o}]);var A0=(e,t,n)=>nr(e,n,o=>{let l=pi(o);if(t.expanded)return[{type:"list",key:"list",toasts:l}];let a=l.filter(p=>p.priority==="critical"),c=l.filter(p=>p.priority!=="critical"),[i,...d]=c,s=a.map(on);return i&&d.length?s.push({type:"deck",key:"deck",top:i,hidden:d}):i&&s.push(on(i)),s});var Gy={list:F0,stack:A0,group:D0};import{createContext as IB,useContext as CB}from"react";var O0=IB({categories:Ja,labels:ja,hiddenElements:[],now:Date.now(),paused:!1}),ve=()=>CB(O0);import{cn as xB,getTimeAgoLabel as PB}from"@cleen/ui-core";var X=(e,t,n,o)=>{let l=o?.classNames,a=o?.styles,c=e.styles?.[t]||a?.[t]?{...e.styles?.[t],...a?.[t]}:void 0;return{className:xB(n,e.classNames?.[t],l?.[t]),style:c,"data-slot":t}},wt=({className:e,style:t,...n})=>({classNames:{container:e},styles:{container:t},...n}),rr=(e,t)=>e.categories[t]??{...e.categories[tr],label:t,pluralLabel:t},di=(e,t,n)=>{let o=Math.floor(Math.max(0,t-e));return typeof n.timeAgo=="function"?n.timeAgo(o):PB(o,n?.timeAgoStamps)},$y=e=>{if(e.animationType!=="none")return e.leaving?"motion-safe:cleen-animate-toast-out motion-reduce:cleen-opacity-0":"motion-safe:cleen-animate-toast-in"};import{cn as SB}from"@cleen/ui-core";import{jsx as Wy}from"react/jsx-runtime";var mi=({toast:e})=>{let t=ve();if(t.hiddenElements.includes("badges"))return null;let n=e.priority==="critical";if(!n&&!or(e))return null;let o=X(t,"badge",void 0,e);return Wy("span",{...X(t,"badges","cleen-flex cleen-shrink-0 cleen-items-center cleen-gap-1",e),children:Wy(xe,{color:n?"red":"primary",variant:"full",label:n?t.labels.critical:t.labels.action,classNames:{container:SB("cleen-px-1.5 cleen-py-0 cleen-text-[10.5px] cleen-font-semibold cleen-leading-4",o.className)},styles:{container:o.style},"data-slot":o["data-slot"]})})};import{cn as qy}from"@cleen/ui-core";import{Fragment as wB,jsx as xo}from"react/jsx-runtime";var Xy=({icon:e,tone:t="neutral",size:n="md",className:o,...l})=>{let a=n==="sm"?14:18;return xo("span",{className:qy("cleen-inline-flex cleen-shrink-0 cleen-items-center cleen-justify-center",n==="sm"?"cleen-size-[26px] cleen-rounded-md":"cleen-size-[34px] cleen-rounded-lg",Fy[t],o),"aria-hidden":"true",...l,children:xo(Ce,{name:e,width:a,height:a})})},_0=({category:e,...t})=>{let n=ve(),o=rr(n,e);return xo(Xy,{icon:o.icon,tone:o.tone,...t})},ui=({toast:e,size:t="md"})=>{if(e.icon!==void 0)return xo(wB,{children:e.icon});if(e.category)return xo(_0,{category:e.category,size:t});let n=ii[e.variant];return n?xo(Xy,{icon:n.name,tone:n.tone,size:t}):null},nn=({icon:e,label:t,className:n,...o})=>xo("button",{type:"button","aria-label":t,title:t,className:qy("cleen-inline-flex cleen-size-[26px] cleen-shrink-0 cleen-items-center cleen-justify-center cleen-rounded-md cleen-text-muted-foreground cleen-transition-colors hover:cleen-bg-muted hover:cleen-text-foreground focus-visible:cleen-outline focus-visible:cleen-outline-2 focus-visible:cleen-outline-primary",n),...o,children:xo(Ce,{name:e,width:14,height:14,strokeWidth:2})});import{cn as z0}from"@cleen/ui-core";import{Fragment as MB,jsx as el,jsxs as V0}from"react/jsx-runtime";var Ky=({toast:e,children:t})=>{let n=ve(),o=e.title!==void 0&&e.title!==null,l=e.icon===void 0&&(!!e.category||!!ii[e.variant]),a=el(ui,{toast:e}),c=el(mi,{toast:e});return V0(MB,{children:[(e.icon!==void 0||l||e.variant!=="default")&&el("span",{...X(n,"icon",z0("cleen-flex cleen-shrink-0 cleen-items-start",{"cleen-pt-0.5":!l}),e),children:a}),V0("div",{...X(n,"body",z0("cleen-flex cleen-min-w-0 cleen-flex-1 cleen-flex-col cleen-gap-0.5",{"cleen-pr-6":e.closeButton}),e),children:[o?V0("div",{className:"cleen-flex cleen-min-w-0 cleen-flex-wrap cleen-items-center cleen-gap-1.5",children:[el("span",{...X(n,"title","cleen-min-w-0 cleen-max-w-full cleen-break-words cleen-text-sm cleen-font-semibold cleen-leading-[18px] cleen-text-foreground",e),children:e.title}),c]}):c,el("span",{...X(n,"message",z0("cleen-break-words cleen-text-sm",{"cleen-text-muted-foreground":o,"cleen-text-foreground":!o}),e),children:e.message}),t]})]})};import{useState as kB}from"react";import{jsx as BB}from"react/jsx-runtime";var Yy=({toast:e})=>{let t=ve(),[n]=kB(()=>le.getTimer(e.id));if(!n)return null;let o=X(t,"progressBar","cleen-pointer-events-none cleen-absolute cleen-bottom-0 cleen-inset-x-0 cleen-h-0.5 cleen-origin-left cleen-rounded-full cleen-bg-primary-300 cleen-animate-toast-progress motion-reduce:cleen-hidden",e);return BB("span",{"aria-hidden":"true",...o,style:{animationDuration:`${n.duration}ms`,animationDelay:`-${n.duration-n.remaining}ms`,animationPlayState:t.paused?"paused":"running",...o.style}})};import{cn as NB}from"@cleen/ui-core";import{jsx as hi,jsxs as fi}from"react/jsx-runtime";var gi=({toast:e,inDeck:t=!1})=>{let n=ve(),{labels:o,hiddenElements:l}=n,a=e.priority==="critical",c=!!e.actions?.length,i=()=>le.dismiss(e.id),d=g=>{g.key==="Escape"&&(g.stopPropagation(),i())},s=!!e.category&&!l.includes("meta"),p=!t&&!e.leaving&&e.priority==="normal"&&e.progressBar&&!l.includes("progressBar");return fi("div",{role:a?"alert":"status","aria-atomic":"true",tabIndex:e.closeButton||c?void 0:0,onKeyDown:d,...X(n,"toast",NB("cleen-overflow-hidden cleen-pointer-events-auto cleen-relative cleen-flex cleen-w-full cleen-gap-3 cleen-rounded-xl cleen-border cleen-border-border cleen-bg-background cleen-py-3 cleen-pl-3.5 cleen-pr-3 cleen-text-foreground cleen-shadow-xl focus-visible:cleen-outline focus-visible:cleen-outline-2 focus-visible:cleen-outline-primary",{"cleen-border-error cleen-shadow-[0_0_0_3px_rgba(var(--cleen-error),0.12)]":a,"cleen-z-10":t},!(t&&e.leaving)&&$y(e),e.className),e),children:[fi(Ky,{toast:e,children:[s&&fi("span",{...X(n,"meta","cleen-text-[11.5px] cleen-text-muted-foreground",e),children:[rr(n,e.category).label," \xB7"," ",di(e.createdAt,n.now,o)]}),c&&fi("div",{...X(n,"actions","cleen-mt-1.5 cleen-flex cleen-flex-wrap cleen-gap-1.5",e),children:[e.actions.map((g,m)=>{let y=X(n,"action",Ke,e);return hi(ee,{variant:g.variant??(m?"secondary":"primary"),label:g.label,onClick:()=>{g.onClick?.(e),i()},...wt(y)},`${g.label}-${m}`)}),hi(ee,{variant:"secondary",label:o.dismiss,onClick:i,...wt(X(n,"dismissButton",Ke,e))})]})]}),e.closeButton&&hi(nn,{icon:"X",label:o.close,onClick:i,...X(n,"closeButton","cleen-absolute cleen-right-2 cleen-top-2",e)}),p&&hi(Yy,{toast:e},le.getTimer(e.id)?.revision)]})};import{Fragment as TB,jsx as ar,jsxs as vi}from"react/jsx-runtime";var Zy="cleen-pointer-events-none cleen-absolute cleen-rounded-b-xl cleen-border cleen-border-t-0 cleen-border-border cleen-bg-background cleen-shadow-lg",Qy=({top:e,hidden:t})=>{let n=ve(),{labels:o}=n,l=[e.id,...t.map(a=>a.id)];return vi(TB,{children:[vi("div",{...X(n,"deck","cleen-pointer-events-auto cleen-relative cleen-isolate cleen-w-full"),children:[ar(gi,{toast:e,inDeck:!0}),ar("span",{"aria-hidden":"true",...X(n,"deckPeek",`${Zy} cleen-inset-x-2 -cleen-bottom-1.5 cleen-z-0 cleen-h-2.5`)}),t.length>1&&ar("span",{"aria-hidden":"true",...X(n,"deckPeek",`${Zy} cleen-inset-x-4 -cleen-bottom-[11px] -cleen-z-10 cleen-h-2.5`)})]}),!n.hiddenElements.includes("deckMoreBar")&&vi("div",{...X(n,"deckMoreBar","cleen-pointer-events-auto cleen-mt-1.5 cleen-flex cleen-w-full cleen-items-center cleen-justify-between cleen-gap-2 cleen-rounded-lg cleen-border cleen-border-border cleen-bg-background cleen-py-2 cleen-pl-3 cleen-pr-2.5 cleen-text-xs cleen-font-medium cleen-text-muted-foreground cleen-shadow-lg"),children:[ar("span",{...X(n,"deckMoreLabel"),children:o.moreBehind(t.length)}),vi("span",{className:"cleen-flex cleen-gap-1",children:[ar(ee,{variant:"secondary",label:o.showAll,"aria-expanded":!1,onClick:()=>le.setExpanded(!0),...wt(X(n,"deckShowAllButton",Ke))}),ar(ee,{variant:"borderless",label:o.dismissAll,onClick:()=>le.dismissMany(l),...wt(X(n,"deckDismissAllButton",Ke))})]})]})]})};import{cn as RB}from"@cleen/ui-core";import{Fragment as LB,jsx as bi,jsxs as EB}from"react/jsx-runtime";var Jy=({count:e})=>{let t=ve(),{labels:n,onViewAll:o}=t;if(t.hiddenElements.includes("overflowPill"))return null;let l=EB(LB,{children:[n.overflow(e),bi("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:bi(Ce,{name:"ArrowRight",width:12,height:12,strokeWidth:2})})]}),a=X(t,"overflowPill",RB("cleen-pointer-events-auto cleen-inline-flex cleen-h-8 cleen-items-center cleen-gap-2 cleen-rounded-full cleen-border cleen-border-border cleen-bg-background cleen-pl-3 cleen-pr-1.5 cleen-text-[12.5px] cleen-font-semibold cleen-text-foreground cleen-shadow-lg cleen-transition-colors motion-safe:cleen-animate-toast-in",{"hover:cleen-bg-muted focus-visible:cleen-outline focus-visible:cleen-outline-2 focus-visible:cleen-outline-primary":o}));return o?bi("button",{type:"button",onClick:()=>o(),...a,children:l}):bi("span",{...a,children:l})};import{jsx as jy,jsxs as DB}from"react/jsx-runtime";var eI=({overflow:e,toasts:t})=>{let n=ve(),o=!n.hiddenElements.includes("dismissAllButton");return!o&&!e.length?null:DB("div",{...X(n,"footer","cleen-flex cleen-items-center cleen-gap-2"),children:[o&&jy("button",{type:"button",onClick:()=>le.dismissMany(t.map(l=>l.id)),...X(n,"dismissAllButton","cleen-pointer-events-auto cleen-inline-flex cleen-h-8 cleen-items-center cleen-rounded-full cleen-border cleen-border-border cleen-bg-background cleen-px-3 cleen-text-[12.5px] cleen-font-semibold cleen-text-foreground cleen-shadow-lg cleen-transition-colors hover:cleen-bg-muted focus-visible:cleen-outline focus-visible:cleen-outline-2 focus-visible:cleen-outline-primary motion-safe:cleen-animate-toast-in"),children:n.labels.dismissAll}),e.length>0&&jy(Jy,{count:e.length})]})};import{jsx as rn,jsxs as yi}from"react/jsx-runtime";var Ii=({toast:e,onDismiss:t})=>{let n=ve(),o=e.actions?.[0],l=e.title!==void 0&&e.title!==null;return yi("div",{...X(n,"row","cleen-flex cleen-items-start cleen-gap-2.5 cleen-border-b cleen-border-border cleen-py-2.5 cleen-pl-3.5 cleen-pr-3 last:cleen-border-b-0 hover:cleen-bg-surface"),children:[rn("span",{...X(n,"rowIcon","cleen-flex cleen-shrink-0 cleen-pt-0.5"),children:rn(ui,{toast:e,size:"sm"})}),yi("div",{...X(n,"rowBody","cleen-flex cleen-min-w-0 cleen-flex-1 cleen-flex-col cleen-gap-px"),children:[yi("div",{className:"cleen-flex cleen-min-w-0 cleen-items-center cleen-gap-1.5",children:[rn("span",{className:"cleen-truncate cleen-text-[13px] cleen-font-semibold cleen-text-foreground",children:l?e.title:e.message}),rn(mi,{toast:e})]}),l&&rn("span",{className:"cleen-truncate cleen-text-xs cleen-text-muted-foreground",children:e.message})]}),yi("span",{...X(n,"rowActions","cleen-ml-auto cleen-flex cleen-shrink-0 cleen-gap-1"),children:[o&&rn(nn,{icon:"ArrowRight",label:o.label,onClick:()=>{o.onClick?.(e),t(e.id)}}),rn(nn,{icon:"X",label:n.labels.close,onClick:()=>t(e.id)})]})]})};import{useEffect as FB,useLayoutEffect as AB,useRef as OB}from"react";var _B='button:not([disabled]), [href], input:not([disabled]), [tabindex]:not([tabindex="-1"])',Ci=(e,t,n)=>{let o=OB(!1);return FB(()=>{e.current?.focus({preventScroll:!0})},[e]),AB(()=>{let i=document.activeElement;o.current&&e.current&&(!i||i===document.body)&&e.current.focus({preventScroll:!0})},[e,t]),{onFocus:()=>{o.current=!0},onBlur:i=>{let d=i.relatedTarget;d&&!i.currentTarget.contains(d)&&(o.current=!1)},onKeyDown:i=>{if(i.key==="Escape"){i.stopPropagation(),n();return}if(i.key!=="Tab"||!e.current)return;let d=[...e.current.querySelectorAll(_B)],s=d[0],p=d[d.length-1];!s||!p||(i.shiftKey&&document.activeElement===s?(i.preventDefault(),p.focus()):!i.shiftKey&&(document.activeElement===p||document.activeElement===e.current)&&(i.preventDefault(),s.focus()))}}};import{useRef as zB}from"react";import{Fragment as HB,jsx as He,jsxs as qt}from"react/jsx-runtime";var H0=3,VB=({toasts:e,onCollapse:t})=>{let n=zB(null),o=Ci(n,e.length,t);return He("div",{ref:n,tabIndex:-1,...o,className:"cleen-max-h-[min(40vh,320px)] cleen-overflow-auto cleen-border-y cleen-border-border focus-visible:cleen-outline-none",children:e.map(l=>He(Ii,{toast:l,onDismiss:le.dismiss},l.id))})},tI=({category:e,toasts:t,expanded:n})=>{let o=ve(),{labels:l,onViewAll:a,hiddenElements:c}=o,i=rr(o,e),d=t.map(y=>y.id),s=t.filter(or).length,p=Math.min(...t.map(y=>y.createdAt)),g=()=>le.dismissMany(d),m=()=>le.toggleGroup(e);return qt("div",{role:"group","aria-label":`${t.length} ${i.pluralLabel}`,onKeyDown:y=>{y.key==="Escape"&&!n&&(y.stopPropagation(),g())},...X(o,"group","cleen-pointer-events-auto cleen-relative cleen-w-full cleen-overflow-hidden cleen-rounded-xl cleen-border cleen-border-border cleen-bg-background cleen-text-foreground cleen-shadow-xl motion-safe:cleen-animate-toast-in"),children:[qt("div",{...X(o,"groupHeader","cleen-flex cleen-items-center cleen-gap-2.5 cleen-pb-2 cleen-pl-3 cleen-pr-10 cleen-pt-2.5"),children:[He(_0,{category:e,...X(o,"groupIcon")}),qt("div",{className:"cleen-flex cleen-min-w-0 cleen-flex-1 cleen-flex-col cleen-gap-0.5",children:[qt("div",{className:"cleen-flex cleen-min-w-0 cleen-items-center cleen-gap-1.5",children:[He("span",{...X(o,"groupTitle","cleen-truncate cleen-text-sm cleen-font-semibold"),children:l.groupTitle(t.length,i)}),He("span",{...X(o,"groupCount","cleen-inline-flex cleen-h-5 cleen-min-w-5 cleen-shrink-0 cleen-items-center cleen-justify-center cleen-rounded-full cleen-bg-primary cleen-px-1.5 cleen-text-[11px] cleen-font-semibold cleen-text-primary-foreground"),children:t.length})]}),!c.includes("meta")&&qt("span",{...X(o,"groupMeta","cleen-text-[11.5px] cleen-text-muted-foreground"),children:[s>0&&qt(HB,{children:[l.needAction(s)," \xB7 "]}),di(p,o.now,l)]})]})]}),n?He(VB,{toasts:t,onCollapse:m}):qt("div",{...X(o,"groupPreview","cleen-flex cleen-flex-col cleen-gap-1 cleen-pb-1.5 cleen-pl-14 cleen-pr-3"),children:[t.slice(0,H0).map(y=>qt("div",{...X(o,"groupPreviewLine","cleen-flex cleen-min-w-0 cleen-items-center cleen-gap-1.5 cleen-text-[12.5px] cleen-leading-[17px] cleen-text-foreground"),children:[He("span",{className:"cleen-size-[5px] cleen-shrink-0 cleen-rounded-full cleen-bg-muted-foreground"}),He("span",{className:"cleen-min-w-0 cleen-truncate",children:y.title??y.message})]},y.id)),t.length>H0&&!c.includes("groupMore")&&He("span",{...X(o,"groupMore","cleen-text-xs cleen-text-muted-foreground"),children:l.more(t.length-H0)})]}),qt("div",{...X(o,"groupFooter","cleen-flex cleen-items-center cleen-gap-1.5 cleen-pb-2.5 cleen-pl-14 cleen-pr-3 cleen-pt-1.5"),children:[a&&He(ee,{variant:"primary",label:l.review(i),rightIcon:He(Ce,{name:"ArrowRight",width:14,height:14}),onClick:()=>a(e),...wt(X(o,"groupReviewButton",Ke))}),He(ee,{variant:"secondary",label:n?l.collapse:l.expand,"aria-expanded":n,onClick:m,...wt(X(o,"groupToggleButton",Ke))}),He("span",{className:"cleen-flex-1"}),He(ee,{variant:"borderless",label:l.dismiss,onClick:g,...wt(X(o,"groupDismissButton",Ke))})]}),He(nn,{icon:"X",label:l.dismissGroup,onClick:g,...X(o,"closeButton","cleen-absolute cleen-right-2 cleen-top-2")})]})};import{useRef as UB}from"react";import{jsx as Po,jsxs as xi}from"react/jsx-runtime";var oI=({toasts:e})=>{let t=ve(),{labels:n,onViewAll:o}=t,l=UB(null),a=()=>le.setExpanded(!1),c=Ci(l,e.length,a);return xi("div",{ref:l,tabIndex:-1,role:"group","aria-label":n.region,...c,...X(t,"list","cleen-pointer-events-auto cleen-w-full cleen-overflow-hidden cleen-rounded-xl cleen-border cleen-border-border cleen-bg-background cleen-text-foreground cleen-shadow-xl focus-visible:cleen-outline-none motion-safe:cleen-animate-toast-in"),children:[xi("div",{...X(t,"listHeader","cleen-flex cleen-items-center cleen-gap-2 cleen-border-b cleen-border-border cleen-py-2 cleen-pl-3.5 cleen-pr-2.5 cleen-text-[13px] cleen-font-semibold"),children:[xi("span",{children:[n.listTitle(e.length)," "]}),Po("span",{className:"cleen-flex-1"}),Po(ee,{variant:"borderless",label:n.collapse,"aria-expanded":!0,leftIcon:Po(Ce,{name:"ChevronUp",width:14,height:14}),onClick:a,classNames:{container:Ke}})]}),Po("div",{...X(t,"listRows","cleen-max-h-[min(52vh,420px)] cleen-overflow-auto"),children:e.map(i=>Po(Ii,{toast:i,onDismiss:le.dismiss},i.id))}),xi("div",{...X(t,"listFooter","cleen-flex cleen-gap-1.5 cleen-border-t cleen-border-border cleen-bg-surface cleen-px-2.5 cleen-py-2"),children:[o&&Po(ee,{variant:"secondary",label:n.openNotifications,onClick:()=>o(),classNames:{container:Ke}}),Po("span",{className:"cleen-flex-1"}),Po(ee,{variant:"secondary",label:n.dismissAll,onClick:()=>le.dismissMany(e.map(i=>i.id)),classNames:{container:Ke}})]})]})};import{useEffect as GB,useState as $B}from"react";var nI=e=>{let[t,n]=$B(()=>Date.now());return GB(()=>{if(!e)return;n(Date.now());let o=setInterval(()=>n(Date.now()),Dy);return()=>clearInterval(o)},[e]),t};import{cn as G0}from"@cleen/ui-core";import{forwardRef as WB,useCallback as qB,useEffect as U0,useMemo as rI,useRef as aI}from"react";import{jsx as Xt}from"react/jsx-runtime";var XB=e=>{switch(e.type){case"toast":return Xt(gi,{toast:e.toast},e.key);case"deck":return Xt(Qy,{top:e.top,hidden:e.hidden},e.key);case"list":return Xt(oI,{toasts:e.toasts},e.key);case"group":return Xt(tI,{category:e.category,toasts:e.toasts,expanded:e.expanded},e.key);case"footer":return Xt(eI,{overflow:e.overflow,toasts:e.toasts},e.key)}},KB=(e,t)=>Xt("div",{"aria-hidden":"true",className:G0("cleen-flex cleen-flex-col cleen-gap-2.5",t,e.exiting&&e.type!=="toast"&&["cleen-pointer-events-none motion-safe:cleen-animate-toast-out motion-reduce:cleen-opacity-0"]),children:XB(e)},e.key),YB=WB(function({layout:t="list",maxVisible:n=Ly,position:o="bottom-right",categories:l,onViewAll:a,labels:c,classNames:i,styles:d,hiddenElements:s,className:p,style:g,...m},y){let v=si(),h=L0(v.toasts).length,b=nI(v.toasts.length>0),x=aI(null),C=aI(!1),I=rI(()=>Gy[t](v.toasts,v.ui,n),[t,v.toasts,v.ui,n]),P=rI(()=>({categories:{...Ja,...l},labels:{...ja,...c},classNames:i,styles:d,hiddenElements:s??[],onViewAll:a,now:b,paused:v.paused}),[l,c,i,d,s,a,b,v.paused]);U0(()=>{let{expanded:M,expandedGroups:L}=v.ui,S=v.toasts.some(w=>w.leaving);h<=n&&!S&&(M||L.length)&&le.resetUi()},[h,n,v.toasts,v.ui]);let k=qB(()=>{let M=document.activeElement,L=!!(M&&x.current?.contains(M))&&!!M?.matches(":focus-visible");C.current||L?le.pauseAll():le.resumeAll()},[]);U0(()=>{h||(C.current=!1),k()},[h,k]),U0(()=>{let M=L=>{C.current&&!x.current?.contains(L.target)&&(C.current=!1,k())};return document.addEventListener("pointermove",M,{passive:!0}),()=>document.removeEventListener("pointermove",M)},[k]);let E=M=>{C.current=M,k()},N=()=>requestAnimationFrame(k);return Xt("div",{className:G0("cleen",p),style:g,ref:y,children:Xt(O0.Provider,{value:P,children:Xt("div",{role:"region","aria-live":"polite","aria-label":P.labels.region,ref:x,onMouseEnter:()=>E(!0),onMouseLeave:()=>E(!1),onFocus:N,onBlur:N,...X(P,"region",G0("cleen-pointer-events-none cleen-fixed cleen-z-[9999] cleen-flex cleen-w-[380px] cleen-max-w-[calc(100vw-32px)] cleen-flex-col cleen-gap-2.5 cleen-text-sm",Ay[o])),...m,children:I.map(M=>KB(M,o.endsWith("left")?"cleen-items-start":o.endsWith("center")?"cleen-items-center":"cleen-items-end"))})})})});import{cn as lI}from"@cleen/ui-core";import{forwardRef as ZB,useState as QB}from"react";import{jsx as $0,jsxs as JB}from"react/jsx-runtime";var W0=ZB(({totalPages:e,labels:t,onGoToPage:n,classNames:o,styles:l,...a},c)=>{let[i,d]=QB(""),s=()=>{let g=parseInt(i,10);isNaN(g)||(n?.(Math.min(Math.max(g,1),e)),d(""))},p=g=>{g.key==="Enter"?s():g.key==="Escape"&&d("")};return $0("div",{className:"cleen",...a,children:JB("div",{className:lI("cleen-flex cleen-items-center cleen-gap-2",o?.container),style:l?.container,children:[$0("span",{className:lI("cleen-text-sm cleen-text-neutral-700 cleen-whitespace-nowrap",o?.label),style:l?.label,children:t?.goToPage}),$0(ge,{ref:c,type:"number",min:1,max:e,value:i,onChange:g=>d(g.target.value),onKeyDown:p,...o?.input,...l?.input})]})})});import{cn as Pi,useOutsideClick as jB,usePositionClose as eN}from"@cleen/ui-core";import{forwardRef as tN,useRef as cI,useState as iI}from"react";import{createPortal as oN}from"react-dom";import{jsx as lr,jsxs as rN}from"react/jsx-runtime";var nN=[10,20,50,100],q0=tN(({pageSize:e,pageSizes:t=nN,labels:n,onPageSizeChange:o,classNames:l,styles:a,...c},i)=>{let[d,s]=iI(e??t?.[0]??void 0),[p,g]=iI(!1),m=cI(null),y=cI(null),{positionStyles:v,isMounted:h}=eN({triggerRef:m,targetRef:y,isOpen:p,position:"top-left"});return jB({refs:[m,y],handler:()=>g(!1),enabled:p}),lr("div",{className:"cleen",ref:i,...c,children:rN("div",{className:Pi("cleen-relative cleen-flex cleen-justify-start cleen-items-center cleen-w-10",l?.container),style:a?.container,children:[lr(ye,{label:n?.itemsPerPage?.(d),classNames:{labelContainer:"cleen-min-w-max"},children:lr("div",{className:Pi("cleen-flex cleen-justify-center cleen-items-center cleen-bg-muted hover:cleen-bg-neutral-200 cleen-p-2 cleen-rounded-lg cleen-min-w-10 cleen-h-10 cleen-font-medium cleen-text-sm cleen-text-neutral-700 cleen-transition-colors cleen-cursor-pointer",l?.trigger),style:a?.trigger,onClick:()=>g(b=>!b),ref:m,children:d})}),p&&oN(lr("div",{className:"cleen",children:lr("div",{ref:y,className:Pi("cleen-flex cleen-bg-background cleen-shadow-lg cleen-border cleen-border-border cleen-rounded-lg","cleen-absolute cleen-z-50",{"cleen-opacity-0":!h},l?.menu),style:{top:`${v.top}px`,left:`${v.left}px`,...a?.menu},children:t?.filter(b=>b!==d)?.map(b=>lr("div",{className:Pi("cleen-flex cleen-justify-center cleen-items-center hover:cleen-bg-muted cleen-p-2 cleen-min-w-10 cleen-h-10 cleen-font-medium cleen-text-neutral-700 cleen-text-sm cleen-transition-colors cleen-cursor-pointer",l?.menuItem),style:a?.menuItem,onClick:()=>{s(b),o?.(b),g(!1)},children:b},b))})}),document.body)]})})});var sI={goToPreviousPage:"Go to previous page",goToNextPage:"Go to next page",goToPage:"Go to page",itemsPerPage:e=>`Show ${e} items per page`};import{cn as So}from"@cleen/ui-core";import{forwardRef as aN,useCallback as Si,useMemo as lN,useRef as cN}from"react";import{jsx as Ye,jsxs as sN}from"react/jsx-runtime";var iN=aN(({currentPage:e,totalPages:t,pageSize:n,pageSizes:o,hasGotoPage:l=!0,hasPageSizeSelector:a=!0,onPageChange:c,onPageSizeChange:i,labels:d=sI,classNames:s,styles:p,...g},m)=>{let y=cN(null),v=Si(()=>{e<t&&c?.(e+1)},[e,t,c]),h=Si(()=>{e>1&&c?.(e-1)},[e,c]),b=Si(I=>Ye("span",{className:So("cleen-flex cleen-justify-center cleen-items-center cleen-bg-background hover:cleen-bg-muted cleen-p-2 cleen-rounded-lg cleen-w-10 cleen-h-10 cleen-font-medium cleen-text-neutral-700 cleen-text-sm cleen-cursor-pointer",I===e&&"cleen-bg-muted hover:cleen-bg-neutral-200",s?.pageButton,I===e?s?.activePageButton:""),style:{...p?.pageButton,...I===e?p?.activePageButton:{}},onClick:()=>c?.(I),children:I},`page-${I}`),[e,c,s,p]),x=Si(I=>Ye("span",{className:So("cleen-flex cleen-justify-center cleen-self-end cleen-bg-background hover:cleen-bg-muted cleen-p-2 cleen-rounded-lg cleen-w-10 cleen-h-10 cleen-font-medium cleen-text-neutral-700 cleen-text-sm cleen-transition-colors cleen-cursor-pointer",s?.ellipsis),style:p?.ellipsis,onClick:()=>y.current?.focus(),children:"..."},I),[s,p]),C=lN(()=>{if(isNaN(e)||isNaN(t))return[];let I=[];if(I.push(Ye(ye,{label:d.goToPreviousPage,classNames:{labelContainer:"cleen-min-w-max"},children:Ye("span",{className:So("cleen-flex cleen-justify-center cleen-items-center cleen-bg-background cleen-p-2 cleen-rounded-lg cleen-w-10 cleen-h-10 cleen-font-medium cleen-text-neutral-700 hover:cleen-text-primary cleen-text-sm cleen-transition-colors cleen-cursor-pointer",s?.navButton),style:p?.navButton,onClick:h,children:Ye(At,{})})},"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(x("dots-end")),I.push(b(t))}else if(e>=t-2){I.push(x("dots-start"));for(let P=t-3;P<=t;P++)I.push(b(P))}else I.push(x("dots-start")),I.push(b(e-1)),I.push(b(e)),I.push(b(e+1)),I.push(x("dots-end")),I.push(b(t));return I.push(Ye(ye,{label:d.goToNextPage,classNames:{labelContainer:"cleen-min-w-max"},children:Ye("span",{className:So("cleen-flex cleen-justify-center cleen-items-center cleen-bg-background cleen-p-2 cleen-rounded-lg cleen-w-10 cleen-h-10 cleen-font-medium cleen-text-neutral-700 hover:cleen-text-primary cleen-text-sm cleen-transition-colors cleen-cursor-pointer",s?.navButton),style:p?.navButton,onClick:v,children:Ye(mt,{})})},"next")),I},[e,t,d,s,p,x,b,v,h]);return Ye("div",{className:"cleen",ref:m,...g,children:sN("div",{className:So("cleen-flex cleen-justify-between cleen-gap-4",s?.container),style:p?.container,children:[a?Ye(q0,{pageSize:n,labels:d,onPageSizeChange:i,pageSizes:o,className:So("cleen-flex-1",s?.pageSizeSelector?.className),classNames:s?.pageSizeSelector?.classNames,...p?.pageSizeSelector}):Ye("div",{className:"cleen-flex-1"}),Ye("div",{className:So("cleen-flex cleen-flex-1 cleen-justify-center cleen-items-center cleen-gap-2 cleen-w-full",s?.buttonsContainer),style:p?.buttonsContainer,children:C}),l?Ye(W0,{ref:y,totalPages:t,onGoToPage:c,labels:d,className:So("cleen-flex cleen-flex-1 cleen-justify-end",s?.goToPage?.className),classNames:s?.goToPage?.classNames,...p?.goToPage}):Ye("div",{className:"cleen-flex-1"})]})})});import{cn as X0,useDisclosure as pN,useOutsideClick as dN,usePositionClose as mN,ZIndex as uN}from"@cleen/ui-core";import{forwardRef as fN,useRef as pI}from"react";import{createPortal as hN}from"react-dom";import{jsx as K0,jsxs as gN}from"react/jsx-runtime";var tl=fN(function({isOpen:t,onOpenChange:n,content:o,position:l="bottom-left",offset:a,zIndex:c=uN.POPOVER,children:i,className:d,classNames:s,style:p,styles:g,...m},y){let{isOpen:v,toggle:h,close:b}=pN({value:t,setValue:n}),x=pI(null),C=pI(null),{positionStyles:I,isMounted:P}=mN({triggerRef:x,targetRef:C,position:l,isOpen:v,offset:a});dN({refs:[x,C],handler:b,enabled:v});let k=E=>{E.stopPropagation(),h()};return gN("div",{className:X0("cleen",d),style:p,ref:y,...m,children:[K0("div",{ref:x,onClick:k,className:X0("cleen-size-fit",s?.trigger,v&&s?.triggerOpen),style:{...g?.trigger,...v?g?.triggerOpen:{}},children:i}),v&&hN(K0("div",{className:"cleen",onClick:E=>E.stopPropagation(),onPointerDown:E=>E.stopPropagation(),onMouseDown:E=>E.stopPropagation(),onTouchStart:E=>E.stopPropagation(),children:K0("div",{ref:C,className:X0("cleen-bg-background cleen-shadow-lg cleen-border cleen-border-border cleen-rounded-lg cleen-w-52","cleen-absolute",{"cleen-opacity-0":!P},s?.popover),style:{zIndex:c,top:`${I.top}px`,left:`${I.left}px`,...g?.popover},onClick:E=>E.stopPropagation(),children:o})}),document.body)]})});import{cn as dI}from"@cleen/ui-core";import{forwardRef as vN,useEffect as bN,useState as yN}from"react";import{jsx as wi,jsxs as mI}from"react/jsx-runtime";var IN={xs:40,sm:60,md:80,lg:100,xl:120,xxl:140,xxxl:160},uI=vN(({isFullscreen:e,percentage:t,duration:n=1e3,radius:o,stroke:l=16,size:a="md",color:c="rgb(var(--cleen-primary))",emptyColor:i="rgb(var(--cleen-neutral-200))",textColor:d="rgb(var(--cleen-foreground))",textHidden:s=!1,fontSize:p,renderText:g,className:m,classNames:y,style:v,styles:h,...b},x)=>{let C=o??IN[a]/2,I=C-l/2,P=I*2*Math.PI,[k,E]=yN(0);bN(()=>{let M=null;if(n===0){E(t);return}let L=S=>{M||(M=S);let w=S-M,T=Math.min(w/n*t,t);E(T),T<t&&requestAnimationFrame(L)};requestAnimationFrame(L)},[t,n]);let N=P-k/100*P;return wi("div",{ref:x,className:dI("cleen",m),style:v,...b,children:mI("div",{className:dI("cleen-flex cleen-justify-center cleen-items-center cleen-w-full cleen-h-full",{"cleen-h-screen cleen-w-screen cleen-bg-background":e},y?.container),style:h?.container,children:[mI("svg",{height:C*2,width:C*2,style:{transform:"rotate(-90deg)"},children:[wi("circle",{stroke:i,fill:"transparent",strokeWidth:l,r:I,cx:C,cy:C}),wi("circle",{stroke:c,fill:"transparent",strokeWidth:l,strokeLinecap:"round",strokeDasharray:P,strokeDashoffset:N,r:I,cx:C,cy:C})]}),!s&&wi("div",{className:"cleen-absolute cleen-font-semibold cleen-text-foreground",style:{fontSize:p??C/2.5,color:d},children:g?g(k):`${Math.round(k)}%`})]})})});uI.displayName="ProgressCircle";import{cn as ct}from"@cleen/ui-core";import{useEffect as CN,useState as xN}from"react";import{Fragment as fI,jsx as Kt,jsxs as ol}from"react/jsx-runtime";var PN=({horizontal:e,boxes:t,selectedBox:n,onBoxClick:o,leftElement:l,rightElement:a,leftIcon:c,leftIconName:i,rightIconName:d,className:s,classNames:p,style:g,styles:m,...y})=>{let[v,h]=xN(n);CN(()=>{h(n)},[n]);let b=(P,k)=>ol(fI,{children:[l&&l(P),c||(i?Kt(Ce,{name:i,className:ct("cleen-w-5 cleen-h-5",k?"cleen-text-primary":"cleen-text-neutral-700",p?.leftIcon),style:m?.leftIcon}):null)]}),x=(P,k)=>Kt("span",{className:ct("cleen-font-semibold",k?"cleen-text-primary":"cleen-text-neutral-700",p?.label),style:m?.label,children:P?.label}),C=(P,k)=>Kt("span",{className:ct("cleen-font-semibold cleen-text-16px",k?"cleen-text-primary":"cleen-text-neutral-700",p?.subLabel),style:m?.subLabel,children:P?.subLabel}),I=(P,k)=>ol(fI,{children:[a&&a(P),d&&Kt(Ce,{name:d,className:ct("cleen-w-5 cleen-h-5",k?"cleen-text-primary":"cleen-text-neutral-700",p?.rightIcon),style:m?.rightIcon})]});return Kt("div",{className:ct("cleen",s),style:g,...y,children:e?Kt("div",{className:ct("cleen-flex cleen-flex-wrap cleen-items-start cleen-justify-start cleen-gap-3 cleen-w-full",p?.container),style:m?.container,children:t?.map(P=>{let k=P?.id===v?.id;return ol("div",{className:ct("cleen-flex cleen-items-center cleen-gap-3 cleen-p-4 cleen-border cleen-rounded-xl cleen-shadow-lg cleen-cursor-pointer cleen-transition-all cleen-duration-200 hover:cleen-bg-primary-100 cleen-w-max",k?"cleen-bg-primary/5 cleen-border-primary/50":"cleen-border-border",p?.box),style:m?.box,onClick:()=>{h(P),o?.(P)},children:[b(P,k),P?.label&&x(P,k),P?.subLabel&&C(P,k),I(P,k)]},P?.id)})}):Kt("div",{className:ct("cleen-grid cleen-gap-3 cleen-w-full",p?.container),style:{gridTemplateColumns:"1fr auto 1fr",...m?.container},children:t?.map(P=>{let k=P?.id===v?.id;return ol("div",{className:ct("cleen-grid cleen-col-span-full cleen-items-center cleen-gap-3 cleen-p-4 cleen-border cleen-rounded-xl cleen-shadow-lg cleen-cursor-pointer cleen-transition-all cleen-duration-200 hover:cleen-bg-primary-50",k?"cleen-bg-primary-100 cleen-border-muted-foreground":"cleen-bg-surface cleen-border-border",p?.box),style:{gridTemplateColumns:"subgrid",gridColumn:"1 / -1",...m?.box},onClick:()=>{h(P),o?.(P)},children:[Kt("div",{className:ct("cleen-flex cleen-items-center cleen-gap-2 cleen-justify-start",p?.leftIconContainer),style:m?.leftIconContainer,children:b(P,k)}),Kt("div",{className:ct("cleen-flex cleen-items-center cleen-justify-center",p?.labelContainer),style:m?.labelContainer,children:P?.label&&x(P,k)}),ol("div",{className:ct("cleen-flex cleen-items-center cleen-gap-2 cleen-justify-end",p?.rightIconContainer),style:m?.rightIconContainer,children:[P?.subLabel&&C(P,k),I(P,k)]})]},P?.id)})})})};import{cn as Yt}from"@cleen/ui-core";import{forwardRef as MN,useEffect as kN,useId as BN,useRef as NN,useState as TN}from"react";import{cn as hI}from"@cleen/ui-core";import{forwardRef as SN}from"react";import{jsx as gI,jsxs as wN}from"react/jsx-runtime";var Mi=SN(function({checked:t,className:n,classNames:o,style:l,styles:a,...c},i){return wN("div",{className:hI("group cleen-flex cleen-size-5 cleen-min-h-5 cleen-min-w-5 cleen-items-center cleen-justify-center cleen-rounded-full cleen-border cleen-border-neutral-300 focus-within:cleen-ring-2 focus-within:cleen-ring-primary focus-within:cleen-ring-offset-1",t?"cleen-bg-primary":"cleen-bg-surface",n),style:l,children:[gI("input",{ref:i,type:"radio",checked:t,className:"cleen-sr-only",...c}),gI("span",{className:hI("cleen-size-2 cleen-rounded-full cleen-bg-primary-foreground",o?.innerCircle),style:a?.innerCircle})]})});import{jsx as Mt,jsxs as ki}from"react/jsx-runtime";var RN=MN(function({required:t,radios:n,label:o,labelTooltip:l,className:a,classNames:c,style:i,styles:d,name:s,direction:p="vertical",radioPosition:g="left",defaultActiveId:m,value:y,infoLabels:v,onChange:h},b){let x=y!==void 0,[C,I]=TN(m??n[0]?.id),P=BN(),k=`${P}-label`,E=s??`cleen-radio-group-${P}`;kN(()=>{!x&&m!==void 0&&I(m)},[m,x]);let N=x?y:C,M=B=>N!=null&&N==B,L=B=>{x||I(B),h?.(B)},S=NN([]),w=n?.findIndex(B=>M(B.id)),T=w>=0?w:0,F=B=>{let V=n[B];V&&(L(V.id),S.current[B]?.focus())},R=(B,V)=>{let D=n.length;if(D)switch(B.key){case"ArrowDown":case"ArrowRight":B.preventDefault(),F((V+1)%D);break;case"ArrowUp":case"ArrowLeft":B.preventDefault(),F((V-1+D)%D);break;default:break}};return Mt("div",{className:Yt("cleen",a),style:i,ref:b,children:ki("div",{className:c?.container,style:d?.container,children:[o&&Mt(ae,{id:k,htmlFor:P,required:t,tooltip:l,className:Yt("cleen-mb-1.5",c?.label?.className),classNames:c?.label?.classNames,...d?.label,children:o}),Mt("div",{id:P,role:"radiogroup","aria-labelledby":o?k:void 0,className:Yt("cleen-flex cleen-flex-wrap cleen-gap-2.5",p==="vertical"&&"cleen-flex-col cleen-w-fit",c?.radios),style:d?.radios,children:n?.map((B,V)=>{let D=`${P}-${V}`,A=B.radioPosition??g;return ki("div",{className:Yt("cleen-flex cleen-gap-2 hover:cleen-bg-muted cleen-p-5 cleen-border cleen-border-border hover:cleen-border-neutral-300 cleen-rounded-xl cleen-transition-all cleen-duration-200 cleen-cursor-pointer",p==="horizontal"&&"cleen-flex-1",M(B?.id)&&"cleen-border-primary hover:cleen-border-primary",c?.radioContainer,B?.className,M(B?.id)&&c?.radioActive),style:{...d?.radioContainer,...B?.style},onClick:O=>{O.target instanceof Element&&!O.target.closest("label, input")&&S.current[V]?.click()},children:[B.leftIcon,A==="left"&&Mt(Mi,{ref:O=>{S.current[V]=O},id:D,name:E,value:B.id,checked:M(B.id),tabIndex:V===T?0:-1,onChange:()=>L(B.id),onKeyDown:O=>R(O,V),className:Yt(c?.radioOuterCheckBox,B?.classNames?.outerCheckBox),style:{...d?.radioOuterCheckBox,...B?.styles?.outerCheckBox}}),ki("label",{htmlFor:D,className:Yt("cleen-flex-1 cleen-cursor-pointer",c?.radioLabelsContainer,B?.classNames?.labelsContainer),style:{...d?.radioLabelsContainer,...B?.styles?.labelsContainer},children:[ki("div",{className:"cleen-flex cleen-items-center cleen-gap-1",children:[Mt("span",{className:Yt("cleen-font-semibold cleen-text-neutral-700 cleen-text-sm",c?.radioTitle,B?.classNames?.title),style:{...d?.radioTitle,...B?.styles?.title},children:B.title}),Mt("span",{className:Yt("cleen-font-normal cleen-text-neutral-600 cleen-text-xs",c?.radiotPostTitle,B?.classNames?.postTitle),style:{...d?.radiotPostTitle,...B?.styles?.postTitle},children:B.postTitle})]}),Mt("span",{className:Yt("cleen-font-normal cleen-text-neutral-600 cleen-text-sm",c?.radioSubTitle,B?.classNames?.subTitle),style:{...d?.radioSubTitle,...B?.styles?.subTitle},children:B?.subTitle})]}),A==="right"&&Mt(Mi,{ref:O=>{S.current[V]=O},id:D,name:E,value:B.id,checked:M(B.id),tabIndex:V===T?0:-1,onChange:()=>L(B.id),onKeyDown:O=>R(O,V),className:c?.radioOuterCheckBox,style:d?.radioOuterCheckBox}),A==="hidden"&&Mt(Mi,{ref:O=>{S.current[V]=O},id:D,name:E,value:B.id,checked:M(B.id),tabIndex:V===T?0:-1,onChange:()=>L(B.id),onKeyDown:O=>R(O,V),className:"cleen-sr-only"}),B.rightIcon]},B?.id)})}),(v?.errorMessage||v?.infoMessage||v?.subtitle)&&Mt(ne,{...v})]})})});import{cn as cr,ColorHelpers as LN}from"@cleen/ui-core";import{forwardRef as EN,useRef as DN,useState as FN}from"react";import{jsx as an,jsxs as vI}from"react/jsx-runtime";var AN=EN(function({id:t,required:n,label:o,labelTooltip:l,labels:a,infoLabels:c,value:i,onChange:d,amount:s=5,options:p=[],gap:g,size:m=36,readonly:y,color:v="rgb(var(--cleen-primary))",className:h,style:b,classNames:x,styles:C,...I},P){let[k,E]=FN(0),N=i!==void 0,M=N?i:k,L=p?.length>0?p:Array.from({length:s},(D,A)=>A+1),S=DN([]),w=L.findIndex(D=>D===M),T=w>=0?w:0,F=D=>{N||E(D),d?.(D)},R=D=>{let A=L[D];A!==void 0&&(F(A),S.current[D]?.focus())},B=(D,A)=>{if(y)return;let O=L.length;if(O)switch(D.key){case"ArrowRight":case"ArrowUp":D.preventDefault(),R((A+1)%O);break;case"ArrowLeft":case"ArrowDown":D.preventDefault(),R((A-1+O)%O);break;case"Home":D.preventDefault(),R(0);break;case"End":D.preventDefault(),R(O-1);break;default:break}},V=typeof o=="string"?o:"Rating";return an("div",{className:cr("cleen",h),style:b,ref:P,...I,children:vI("div",{className:cr("cleen-space-y-2",x?.container),style:C?.container,children:[o&&an(ae,{htmlFor:t,required:n,tooltip:l,className:cr("cleen-mb-1.5",x?.label?.className),classNames:x?.label?.classNames,...C?.label,children:o}),vI("div",{className:"cleen-flex cleen-items-center cleen-gap-3",children:[an("div",{role:"radiogroup","aria-label":V,className:cr("cleen-flex cleen-flex-wrap cleen-gap-3",x?.list),style:{...g?{gap:g}:{},...C?.list},children:L?.map((D,A)=>an("button",{id:t,ref:O=>{S.current[A]=O},role:"radio","aria-checked":M===D,"aria-label":`${D}`,tabIndex:A===T?0:-1,onClick:()=>F(D),onKeyDown:O=>B(O,A),className:cr("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",y&&"cleen-cursor-default cleen-pointer-events-none",x?.item),style:{width:m,height:m,...M===D?{borderColor:v,backgroundColor:LN.trasparentize(v,.9),color:v}:{},...C?.item},type:"button",children:an("span",{className:cr("cleen-font-medium cleen-text-sm",x?.value),style:C?.value,children:D})},D))}),a?.helperText&&an("span",{className:"cleen-text-sm cleen-text-neutral-600",children:a.helperText})]}),(c?.errorMessage||c?.infoMessage||c?.subtitle)&&an(ne,{...c})]})})});import{useState as ON}from"react";import{components as _N}from"react-select";import{jsx as Y0,jsxs as bI}from"react/jsx-runtime";var yI=e=>{let[t,n]=ON(!1),o=e.data;return Y0("div",{onMouseEnter:()=>n(!0),onMouseLeave:()=>n(!1),children:Y0(_N.Option,{...e,children:bI("div",{className:"cleen-flex cleen-justify-between cleen-items-center",children:[bI("div",{className:"cleen-flex-1",children:[o?.label,o?.sublabel&&Y0("p",{className:"cleen-text-xs",children:o?.sublabel})]}),typeof o?.icon=="function"?o.icon({...e,isHovered:t}):o?.icon]})})})};import{components as zN}from"react-select";import{jsx as Z0,jsxs as VN}from"react/jsx-runtime";var II=e=>{let t=e.data;return Z0(zN.SingleValue,{...e,children:VN("div",{className:"cleen-flex cleen-items-center cleen-gap-2",children:[Z0("p",{children:t?.label}),t?.sublabel&&Z0("p",{className:"cleen-text-xs cleen-text-neutral-600 cleen-line-clamp-1",children:t?.sublabel})]})})};import{cn as nl,ZIndex as wI}from"@cleen/ui-core";import{forwardRef as GN,useId as $N,useState as MI}from"react";import WN from"react-select";import{components as HN}from"react-select";import{jsx as Q0,jsxs as CI}from"react/jsx-runtime";var xI=({isLoading:e,inputValue:t,options:n,createNewOptionCallback:o,createNewOptionLabelStringCb:l,children:a,...c})=>{let i=t?.trim().toLowerCase(),d=n?.some(s=>s?.labelString?s.labelString.toLowerCase()===i:typeof s?.label=="string"?s.label.toLowerCase()===i:!1);return Q0("div",{className:"cleen",children:CI(HN.MenuList,{options:n,...c,children:[a,o&&!e&&t&&t?.length>0&&!d&&CI("div",{className:"cleen-flex cleen-flex-col cleen-items-center cleen-justify-center",children:[Q0(gt,{}),Q0("span",{className:"cleen-py-3 cleen-font-semibold cleen-text-sm cleen-text-primary/70 cleen-cursor-pointer",onClick:()=>{o(t)},children:l?.(t)||t})]})]})})};import{components as UN}from"react-select";import{jsx as PI}from"react/jsx-runtime";var SI=({isLoading:e,noDataFound:t,...n})=>PI(UN.NoOptionsMessage,{...n,children:e?PI(re,{}):t||"No data found"});import{jsx as wo,jsxs as BI}from"react/jsx-runtime";var kI=e=>typeof e=="object"&&e!==null&&("labelString"in e||"label"in e),qN=GN(function({label:t,labelTooltip:n,sublabel:o,id:l,name:a,required:c,className:i,classNames:d,isLoading:s=!1,disabled:p,emboldenOptions:g=!1,labels:m,components:y,style:v,styles:h,infoLabels:b,createNewOptionCallback:x,createNewOptionLabelStringCb:C,...I},P){let[k,E]=MI(!1),[N,M]=MI(""),L=$N(),S=I.inputId??l??a??L,w=(F,R)=>{if(!kI(F.data))return!1;let{labelString:B,label:V}=F.data;return B?B.toLowerCase().includes(R.toLowerCase()):typeof V=="string"?V.toLowerCase().includes(R.toLowerCase()):!1},T=F=>kI(F)?F.labelString??(typeof F.label=="string"?F.label:""):"";return wo("div",{className:nl("cleen",i),style:v,ref:P,children:BI("div",{className:nl("cleen-flex cleen-flex-col cleen-gap-1.5 cleen-rounded-md cleen-w-full",d?.cleenContainer),style:h?.cleenContainer,children:[(t||o)&&BI("div",{className:nl("cleen-flex cleen-flex-col cleen-gap-1",d?.labels?.container),style:h?.labels?.container,children:[t&&wo(ae,{htmlFor:S,required:c,tooltip:n,...d?.labels?.label,...h?.labels?.label,children:t}),o&&wo("span",{className:nl("cleen-font-normal cleen-text-neutral-600 cleen-text-sm",d?.labels?.sublabel),style:h?.labels?.sublabel,children:o})]}),wo(WN,{...x&&{menuIsOpen:k,inputValue:N,onInputChange:F=>M(F),onMenuOpen:()=>E(!0),onMenuClose:()=>E(!1)},...!I.filterOption&&{filterOption:w},...!I.getOptionLabel&&{getOptionLabel:T},id:l||a,classNames:d,isDisabled:p,menuPortalTarget:document.body,menuPosition:"fixed",...I,inputId:S,className:nl("cleen-shadow-none cleen-font-normal cleen-text-foreground cleen-text-sm",d?.inputOuterContainer),styles:{...h,control:(F,R)=>{let B={...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:x?"rgba(var(--cleen-foreground))":"transparent","&:hover":{borderColor:b?.errorMessage?"rgba(var(--cleen-error))":"rgb(var(--cleen-border))"}};return h?.control?h?.control(B,R):B},menuPortal:(F,R)=>{let B={...F,zIndex:wI.SELECT,...h?.menuPortal};return h?.menuPortal?h?.menuPortal(B,R):B},menu:(F,R)=>{let B={...F,backgroundColor:"rgba(var(--cleen-surface))",border:"1px solid rgba(var(--cleen-border))",zIndex:wI.SELECT,...h?.menu};return h?.menu?h?.menu(B,R):B},option:(F,R)=>{let B={...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 h?.option?h?.option(B,R):B},menuList:(F,R)=>{let B={...F,"::-webkit-scrollbar":{width:"6px",height:"0px"},"::-webkit-scrollbar-track":{background:"rgb(var(--cleen-background))"},"::-webkit-scrollbar-thumb":{background:"rgba(var(--cleen-neutral-200))"},"::-webkit-scrollbar-thumb:hover":{background:"rgba(var(--cleen-neutral-400))"},padding:0,borderRadius:4,...h?.menuList};return h?.menuList?h?.menuList(B,R):B},singleValue:(F,R)=>{let B={...F,color:R.isDisabled?"rgba(var(--cleen-neutral-500))":"rgba(var(--cleen-black))"};return h?.singleValue?h?.singleValue(B,R):B},input:(F,R)=>{let B={...F,color:"rgba(var(--cleen-foreground))"};return h?.input?h?.input(B,R):B}},components:{IndicatorSeparator:()=>null,SingleValue:F=>wo(II,{...F}),NoOptionsMessage:F=>wo(SI,{isLoading:s,noDataFound:m?.noDataFound,...F}),MenuList:F=>wo(xI,{isLoading:s,inputValue:N,createNewOptionCallback:x,createNewOptionLabelStringCb:C,...F}),Option:yI,...y}}),(b?.errorMessage||b?.infoMessage||b?.subtitle)&&wo(ne,{...b})]})})});import{jsx as NI,jsxs as XN}from"react/jsx-runtime";function TI({children:e,title:t,className:n="",renderHeader:o}){return XN("div",{className:`cleen-w-full cleen-h-full ${n}`,"data-testid":`drawer-container-${t}`,children:[o?o(t):NI("h1",{className:"cleen-text-sm cleen-font-medium cleen-pb-4 cleen-pt-9 cleen-px-4 cleen-text-foreground-emphasis",children:t}),NI("div",{className:"cleen-h-max cleen-w-full cleen-px-4",children:e})]})}import{cn as Zt}from"@cleen/ui-core";import{forwardRef as KN,useState as YN}from"react";import{Fragment as jN,jsx as it,jsxs as Bi}from"react/jsx-runtime";function ZN({icon:e,iconSrc:t,iconName:n,iconSize:o=24,title:l,className:a,style:c}){return e?it("span",{className:Zt("cleen-flex cleen-justify-center cleen-items-center cleen-shrink-0",a),style:{width:o,height:o,...c},children:e}):t?it("img",{src:t,alt:l,width:o,height:o,className:a,style:c}):n?it(Ce,{name:n,width:o,height:o,className:a,style:c}):null}function RI({item:e,depth:t,iconSize:n=24,classNames:o,styles:l}){let[a,c]=YN(!1),i={...e,classNames:{...o,...e.classNames},styles:{...l,...e.styles}},d=Array.isArray(i?.items)&&i.items.length>0,s=i?.iconSize??n,p=t>0?{paddingLeft:12+t*28}:{},g=Bi(jN,{children:[Bi("div",{className:Zt("cleen-flex cleen-items-center cleen-gap-3 cleen-min-w-0",i?.classNames?.containerInner),style:i?.styles?.containerInner,children:[it(ZN,{icon:i?.icon,iconSrc:i?.iconSrc,iconName:i?.iconName,iconSize:s,title:i?.name,className:Zt("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}),it("span",{className:Zt("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)&&it(xe,{color:i?.badgeColor,label:String(i?.badgeCount),...i?.classNames?.badge,...i?.styles?.badge})]});return d?Bi("details",{className:i?.classNames?.container,style:i?.styles?.container,children:[Bi("summary",{className:Zt("cleen-group/row [&::-webkit-details-marker]:cleen-hidden cleen-flex cleen-justify-between cleen-items-center cleen-gap-3 hover:cleen-bg-muted cleen-py-2 cleen-pr-3 cleen-rounded-md cleen-w-full cleen-transition-colors cleen-duration-200 cleen-cursor-pointer cleen-list-none",t===0?"cleen-px-3":void 0,i?.classNames?.parentItemContainer),style:{...p,...i?.styles?.parentItemContainer},onClick:()=>c(m=>!m),children:[g,it(Ce,{name:"ChevronDown",className:Zt("cleen-w-5 cleen-h-5 cleen-text-neutral-700 group-hover/row:cleen-text-foreground cleen-transition-all cleen-shrink-0",{"cleen-rotate-180":a},i?.classNames?.chevron),style:i?.styles?.chevron})]}),it("div",{className:Zt("cleen-flex cleen-flex-col cleen-gap-1 cleen-mt-1",i?.classNames?.childItemsContainer),style:i?.styles?.childItemsContainer,children:i.items.map(m=>it(RI,{item:m,depth:t+1,iconSize:n,classNames:o,styles:l},m?.id??m?.name))})]}):it("div",{className:Zt("cleen-group/row cleen-flex cleen-justify-between cleen-items-center cleen-gap-3 hover:cleen-bg-primary/5 cleen-py-2 cleen-pr-3 cleen-rounded-md cleen-w-full cleen-transition-colors cleen-duration-200 cleen-cursor-pointer",t===0?"cleen-px-3 hover:cleen-bg-muted":void 0,i?.isActive&&t===0&&"cleen-bg-muted",i?.disabled&&"cleen-opacity-50 cleen-pointer-events-none",i?.classNames?.container),style:{...p,...i?.styles?.container},onClick:()=>i?.onClick?.(i),children:g})}var QN=KN(function({title:t,icon:n,iconName:o,iconSrc:l,iconSize:a=24,badgeColor:c="gray",badgeCount:i,items:d,onClick:s,isActive:p=!1,disabled:g,className:m,classNames:y,style:v,styles:h},b){let x={id:"root",name:t,icon:n,iconName:o,iconSrc:l,iconSize:a,badgeColor:c,badgeCount:i,isActive:p,disabled:g,onClick:s?()=>s():void 0,classNames:y,styles:h,items:d};return it("div",{className:Zt("cleen",m),style:v,ref:b,children:it(RI,{item:x,depth:0,iconSize:a,classNames:y,styles:h})})}),JN=QN;import{cn as Qt}from"@cleen/ui-core";import{useEffect as n6,useRef as r6,useState as a6}from"react";import{cn as rl}from"@cleen/ui-core";import{useMemo as e6}from"react";import{Link as t6}from"react-router-dom";import{jsx as al,jsxs as o6}from"react/jsx-runtime";function ll({item:e,activeId:t,onClick:n,countBadge:o,classNames:l,styles:a,renderIcon:c}){let i=t===e?.id,d=e6(()=>e?c?c(e,i):e.icon?e.icon:e.iconSrc?al("img",{src:e.iconSrc,alt:e?.name||e?.label,className:rl("cleen-w-6 cleen-h-6 cleen-transition-all cleen-duration-200 group-hover:cleen-text-primary",l?.icon,i&&"cleen-text-primary"),style:a?.icon}):e.iconName?al(Ce,{name:e.iconName,className:rl("cleen-w-6 cleen-h-6 cleen-text-neutral-700 [&_path]:cleen-stroke-[1.5] [&_path]:[vector-effect:non-scaling-stroke] cleen-transition-all cleen-duration-200 group-hover:cleen-text-primary",l?.icon,i&&"cleen-text-primary"),style:a?.icon}):null:null,[e,i,c,l?.icon,a?.icon]),s=o6("div",{"data-testid":`nav-item-${e?.id}`,className:rl("cleen-group cleen-relative cleen-p-2 cleen-cursor-pointer cleen-rounded-md cleen-w-12 cleen-h-12 cleen-flex cleen-justify-center cleen-items-center cleen-select-none cleen-transition-colors cleen-duration-200 hover:cleen-bg-primary/10",l?.container,i&&"cleen-bg-primary/10"),style:a?.container,onClick:()=>{e?.path||n?.(e)},children:[d,o&&al("div",{className:rl("cleen-absolute -cleen-top-1 -cleen-right-1 cleen-flex cleen-items-center cleen-justify-center cleen-w-4 cleen-h-4 cleen-bg-surface cleen-rounded-md cleen-border cleen-border-border cleen-font-normal cleen-text-[8px] cleen-text-foreground",l?.badge),style:a?.badge,children:o})]});return al(ye,{hasArrow:!0,placement:"right",color:"rgba(var(--cleen-foreground))",className:l?.tooltip?.className,classNames:{...l?.tooltip,labelContainer:rl("cleen-min-w-max",l?.tooltip?.classNames?.labelContainer)},...a?.tooltip,label:e?.label,children:e?.path?al(t6,{to:e.path,children:s}):s})}import{jsx as Jt,jsxs as ln}from"react/jsx-runtime";function LI({navigationItems:e,bottomNavigationItems:t=[],drawerContent:n={},logo:o,onLogoClick:l,userAvatar:a,userInfo:c,drawerFooter:i,drawerWidth:d=330,direction:s="right",defaultActiveId:p=null,activeId:g,onActiveChange:m,closeOnOutsideClick:y=!0,closeOnBlur:v=!0,className:h,classNames:b,style:x,styles:C,renderSidebarItem:I}){let[P,k]=a6(p),E=r6(null),N=g!==void 0?g:P,M=!!N,L=w=>{let T=N===w.id?null:w.id;g===void 0&&k(T),m?.(T)};n6(()=>{if(!y||!M)return;let w=T=>{E.current&&!E.current.contains(T.target)&&(g===void 0&&k(null),m?.(null))};return document.addEventListener("mousedown",w),()=>{document.removeEventListener("mousedown",w)}},[y,M,g,m]);let S=w=>{!v||!M||E.current&&!E.current.contains(w.relatedTarget)&&(g===void 0&&k(null),m?.(null))};return ln("div",{className:Qt("cleen",h),style:{height:"100%",display:"flex",backgroundColor:"rgb(var(--cleen-sidebar))",flexDirection:s==="left"?"row-reverse":"row",...x},ref:E,onBlur:S,tabIndex:v?0:void 0,children:[ln("div",{className:Qt("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",b?.navigation),style:C?.navigation,children:[o&&Jt("div",{className:Qt("cleen-flex cleen-justify-center cleen-items-center cleen-pt-8 cleen-pb-6 cleen-w-full cleen-cursor-pointer",b?.logo),style:C?.logo,onClick:l,children:o}),ln("div",{className:Qt("cleen-flex cleen-flex-col cleen-flex-1 cleen-justify-between cleen-gap-2 cleen-px-4 cleen-overflow-y-auto cleen-no-scrollbar",b?.navigationItems),style:C?.navigationItems,children:[Jt("nav",{className:Qt("cleen-flex cleen-flex-col cleen-gap-2",b?.upperNavigationItemsWrapper),style:C?.upperNavigationItemsWrapper,children:e.map(w=>ln("div",{children:[I?I(w,N===w.id,L):Jt(ll,{item:w,activeId:N,onClick:L,countBadge:w.badgeCount,classNames:{...b?.navigationItem,...w?.classNames},styles:{...C?.navigationItem,...w?.styles}}),w?.withBottomDivider&&Jt("div",{className:"cleen-bg-neutral-200 cleen-mt-2 cleen-w-12 cleen-h-[1px]"})]},w.id))}),ln("div",{className:Qt("cleen-flex cleen-flex-col cleen-items-center cleen-gap-2",b?.bottomNavigationItemsWrapper),style:C?.bottomNavigationItemsWrapper,children:[t.map(w=>ln("div",{children:[I?I(w,N===w.id,L):Jt(ll,{item:w,activeId:N,onClick:L,countBadge:w.badgeCount,classNames:{...b?.navigationItem,...w?.classNames},styles:{...C?.navigationItem,...w?.styles}}),w?.withBottomDivider&&Jt("div",{className:"cleen-bg-neutral-200 cleen-mt-2 cleen-w-12 cleen-h-[1px]"})]},w.id)),a&&Jt("div",{className:"cleen-mt-6 cleen-mb-8",children:a})]})]})]}),ln("div",{className:Qt("cleen-flex cleen-flex-col cleen-bg-sidebar cleen-h-full cleen-overflow-hidden cleen-transition-all cleen-duration-100",{"cleen-border-r cleen-border-r-border":M&&s==="right","cleen-border-l cleen-border-l-border":M&&s==="left"},b?.drawer),style:{...C?.drawer,width:M?`${d}px`:"0px",visibility:M?"visible":"hidden"},children:[N&&n[N]&&Jt("div",{className:Qt("cleen-flex-1 cleen-overflow-auto",b?.drawerContent),style:C?.drawerContent,children:n[N]}),N&&(i||c)&&Jt("div",{className:Qt("cleen-mt-auto cleen-flex cleen-justify-between cleen-items-start cleen-gap-4 cleen-px-5 cleen-pt-4 cleen-pb-8 cleen-border-border cleen-border-t cleen-w-full",b?.drawerFooter),style:C?.drawerFooter,children:typeof i=="function"?i(N):i||c})]})]})}var te=e=>e==="pulse"?"cleen-animate-pulse":"";import{cn as EI}from"@cleen/ui-core";import{forwardRef as l6}from"react";import{jsx as DI}from"react/jsx-runtime";var c6={none:"cleen-rounded-none",sm:"cleen-rounded-sm",md:"cleen-rounded-md",lg:"cleen-rounded-lg",xl:"cleen-rounded-xl","2xl":"cleen-rounded-2xl",full:"cleen-rounded-full"},i6=l6(function({width:t,height:n,roundness:o="md",variant:l="default",className:a,style:c},i){let d=te(l),s={...t!==void 0?{width:typeof t=="number"?`${t}px`:t}:{},...n!==void 0?{height:typeof n=="number"?`${n}px`:n}:{},...c};return DI("div",{ref:i,className:EI("cleen",a),children:DI("div",{className:EI("cleen-bg-muted",c6[o],t===void 0&&"cleen-w-full",n===void 0&&"cleen-h-4",d),style:s})})});import{cn as J0}from"@cleen/ui-core";import{forwardRef as s6}from"react";import{jsx as Ni,jsxs as p6}from"react/jsx-runtime";var j0=s6(function({className:t,style:n,variant:o="default",itemCount:l=1},a){let c=te(o);return Ni("div",{ref:a,className:J0("cleen",t),style:n,children:Ni("div",{className:"cleen-flex cleen-items-start cleen-gap-4 cleen-flex-wrap",children:Array.from({length:l}).map((i,d)=>p6("div",{className:"cleen-flex cleen-flex-col cleen-items-center cleen-gap-2",children:[Ni("div",{className:J0("cleen-bg-muted cleen-rounded-full cleen-size-12 cleen-border cleen-border-border",c)}),Ni("div",{className:J0("cleen-bg-muted cleen-rounded cleen-w-14 cleen-h-3",c)})]},d))})})});import{cn as FI}from"@cleen/ui-core";import{forwardRef as d6}from"react";import{jsx as e1}from"react/jsx-runtime";var t1=d6(function({className:t,style:n,variant:o="default",itemCount:l=1},a){let c=te(o);return e1("div",{ref:a,className:FI("cleen",t),style:n,children:e1("div",{className:"cleen-flex cleen-items-center cleen-flex-wrap cleen-gap-2",children:Array.from({length:l}).map((i,d)=>e1("div",{className:FI("cleen-bg-muted cleen-rounded-full cleen-h-6 cleen-w-16",c)},d))})})});import{cn as AI}from"@cleen/ui-core";import{forwardRef as m6}from"react";import{jsx as cn,jsxs as Ti}from"react/jsx-runtime";var o1=m6(function({className:t,style:n,variant:o="default"},l){let a=te(o);return cn("div",{ref:l,className:AI("cleen",t),style:n,children:Ti("div",{className:AI("cleen-relative cleen-bg-muted cleen-rounded-2xl cleen-w-full cleen-overflow-hidden",a),children:[cn("div",{className:"cleen-h-48 cleen-w-full"}),Ti("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:[cn("div",{className:"cleen-bg-neutral-200 cleen-rounded-full cleen-w-24 cleen-h-6"}),Ti("div",{className:"cleen-flex cleen-flex-col cleen-gap-2 cleen-w-full",children:[cn("div",{className:"cleen-bg-neutral-200 cleen-rounded cleen-w-2/3 cleen-h-8"}),cn("div",{className:"cleen-bg-neutral-200 cleen-rounded cleen-w-1/2 cleen-h-5"})]}),Ti("div",{className:"cleen-flex cleen-gap-3",children:[cn("div",{className:"cleen-bg-neutral-200 cleen-rounded-lg cleen-w-28 cleen-h-10"}),cn("div",{className:"cleen-bg-neutral-200 cleen-rounded-lg cleen-w-24 cleen-h-10"})]})]})]})})});import{cn as OI}from"@cleen/ui-core";import{forwardRef as u6}from"react";import{jsx as n1}from"react/jsx-runtime";var r1=u6(function({className:t,style:n,variant:o="default",itemCount:l=1},a){let c=te(o);return n1("div",{ref:a,className:OI("cleen",t),style:n,children:n1("div",{className:"cleen-flex cleen-items-center cleen-gap-2",children:Array.from({length:l}).map((i,d)=>n1("div",{className:OI("cleen-bg-muted cleen-rounded-lg cleen-h-10 cleen-w-28",c)},d))})})});import{cn as Ri}from"@cleen/ui-core";import{forwardRef as f6}from"react";import{jsx as Li,jsxs as _I}from"react/jsx-runtime";var cl=f6(function({className:t,style:n,variant:o="default"},l){let a=te(o);return Li("div",{ref:l,className:Ri("cleen",t),style:n,children:_I("div",{className:"cleen-flex cleen-items-center cleen-gap-3 cleen-bg-surface cleen-px-4 cleen-py-4 cleen-border cleen-border-border cleen-rounded-xl cleen-w-full",children:[Li("div",{className:Ri("cleen-flex cleen-justify-center cleen-items-center cleen-bg-muted cleen-border cleen-border-border cleen-rounded-xl cleen-min-w-10 cleen-size-10",a)}),_I("div",{className:"cleen-flex cleen-flex-col cleen-flex-1 cleen-gap-2",children:[Li("div",{className:Ri("cleen-bg-muted cleen-rounded cleen-w-3/4 cleen-h-4",a)}),Li("div",{className:Ri("cleen-bg-muted cleen-rounded cleen-w-1/2 cleen-h-3",a)})]})]})})});import{cn as ir}from"@cleen/ui-core";import{forwardRef as h6}from"react";import{jsx as sr,jsxs as Ei}from"react/jsx-runtime";var Di=h6(({className:e,style:t,variant:n="default"},o)=>{let l=te(n);return sr("div",{ref:o,className:ir("cleen",e),style:t,children:Ei("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:[Ei("div",{className:"cleen-flex cleen-items-center cleen-gap-3 cleen-w-full",children:[sr("div",{className:ir("cleen-flex cleen-justify-center cleen-items-center cleen-bg-muted cleen-border cleen-border-border cleen-rounded-xl cleen-size-10",l)}),Ei("div",{className:"cleen-flex cleen-flex-col cleen-flex-1 cleen-gap-2",children:[sr("div",{className:ir("cleen-bg-muted cleen-rounded cleen-w-1/2 cleen-h-5",l)}),sr("div",{className:ir("cleen-bg-muted cleen-rounded cleen-w-3/4 cleen-h-4",l)})]})]}),Ei("div",{className:"cleen-space-y-2 cleen-w-full",children:[sr("div",{className:ir("cleen-bg-muted cleen-rounded cleen-w-full cleen-h-2",l)}),sr("div",{className:ir("cleen-bg-muted cleen-rounded cleen-w-16 cleen-h-3",l)})]})]})})});Di.displayName="AssessmentHeaderSkeleton";import{cn as kt}from"@cleen/ui-core";import{forwardRef as g6}from"react";import{jsx as Bt,jsxs as pr}from"react/jsx-runtime";var a1=g6(function({className:t,style:n,variant:o="default"},l){let a=te(o);return Bt("div",{ref:l,className:kt("cleen",t),style:n,children:pr("div",{className:"cleen-flex cleen-flex-col cleen-bg-surface cleen-border cleen-border-border cleen-rounded-xl cleen-overflow-hidden cleen-w-full",children:[Bt("div",{className:kt("cleen-bg-muted cleen-w-full cleen-h-40",a)}),pr("div",{className:"cleen-flex cleen-flex-col cleen-gap-3 cleen-px-4 cleen-py-4",children:[pr("div",{className:"cleen-flex cleen-gap-2",children:[Bt("div",{className:kt("cleen-bg-muted cleen-rounded-full cleen-w-16 cleen-h-5",a)}),Bt("div",{className:kt("cleen-bg-muted cleen-rounded-full cleen-w-12 cleen-h-5",a)})]}),pr("div",{className:"cleen-flex cleen-flex-col cleen-gap-2",children:[Bt("div",{className:kt("cleen-bg-muted cleen-rounded cleen-w-4/5 cleen-h-5",a)}),Bt("div",{className:kt("cleen-bg-muted cleen-rounded cleen-w-full cleen-h-3",a)}),Bt("div",{className:kt("cleen-bg-muted cleen-rounded cleen-w-3/4 cleen-h-3",a)})]}),pr("div",{className:"cleen-flex cleen-justify-between cleen-items-center cleen-pt-1",children:[pr("div",{className:"cleen-flex cleen-items-center cleen-gap-2",children:[Bt("div",{className:kt("cleen-bg-muted cleen-rounded-full cleen-size-7 cleen-shrink-0",a)}),Bt("div",{className:kt("cleen-bg-muted cleen-rounded cleen-w-24 cleen-h-3",a)})]}),Bt("div",{className:kt("cleen-bg-muted cleen-rounded-lg cleen-w-16 cleen-h-7",a)})]})]})]})})});import{forwardRef as v6}from"react";import{cn as b6}from"@cleen/ui-core";import{jsx as l1}from"react/jsx-runtime";var c1=v6(function({className:t,style:n,itemCount:o=3,variant:l="default"},a){return l1("div",{ref:a,className:b6("cleen",t),style:n,children:l1("div",{className:"cleen-flex cleen-flex-col cleen-gap-3",children:Array.from({length:o}).map((c,i)=>l1(cl,{variant:l},i))})})});import{cn as sn}from"@cleen/ui-core";import{forwardRef as y6}from"react";import{jsx as st,jsxs as il}from"react/jsx-runtime";var zI=["cleen-h-16","cleen-h-24","cleen-h-14","cleen-h-28","cleen-h-20","cleen-h-10","cleen-h-24"],i1=y6(function({className:t,style:n,variant:o="default"},l){let a=te(o);return st("div",{ref:l,className:sn("cleen",t),style:n,children:il("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:[il("div",{className:"cleen-flex cleen-justify-between cleen-items-center",children:[st("div",{className:sn("cleen-bg-muted cleen-rounded cleen-w-32 cleen-h-5",a)}),st("div",{className:"cleen-flex cleen-items-center cleen-gap-3",children:[28,20].map((c,i)=>il("div",{className:"cleen-flex cleen-items-center cleen-gap-1.5",children:[st("div",{className:sn("cleen-bg-muted cleen-rounded-full cleen-size-2.5",a)}),st("div",{className:sn("cleen-bg-muted cleen-rounded cleen-h-3",a),style:{width:c}})]},i))})]}),il("div",{className:"cleen-flex cleen-gap-3",children:[st("div",{className:"cleen-flex cleen-flex-col cleen-justify-between cleen-items-end cleen-py-1",style:{height:120},children:[0,1,2,3].map(c=>st("div",{className:sn("cleen-bg-muted cleen-rounded cleen-w-6 cleen-h-2",a)},c))}),il("div",{className:"cleen-flex cleen-flex-col cleen-flex-1 cleen-gap-1",children:[st("div",{className:"cleen-flex cleen-items-end cleen-justify-around cleen-gap-2",style:{height:112},children:zI.map((c,i)=>st("div",{className:sn("cleen-bg-muted cleen-rounded-t cleen-flex-1",c,a)},i))}),st("div",{className:"cleen-w-full cleen-h-px cleen-bg-muted"}),st("div",{className:"cleen-flex cleen-justify-around cleen-gap-2 cleen-pt-1",children:zI.map((c,i)=>st("div",{className:sn("cleen-bg-muted cleen-rounded cleen-flex-1 cleen-h-2",a)},i))})]})]})]})})});import{cn as pn}from"@cleen/ui-core";import{forwardRef as I6}from"react";import{jsx as jt,jsxs as Fi}from"react/jsx-runtime";var s1=I6(({variant:e="default",itemCount:t=3,className:n,style:o},l)=>{let a=te(e);return jt("div",{ref:l,className:pn("cleen",n),style:o,children:jt(fe,{className:"cleen-max-h-fit",children:Fi("div",{className:"cleen-flex cleen-flex-col cleen-gap-4",children:[Fi("div",{className:"cleen-flex cleen-flex-col cleen-gap-2",children:[jt("div",{className:pn("cleen-bg-muted cleen-rounded cleen-w-3/4 cleen-h-6",a)}),jt("div",{className:pn("cleen-bg-muted cleen-rounded cleen-w-full cleen-h-4",a)})]}),jt("div",{className:"cleen-space-y-6",children:Array.from({length:t}).map((c,i)=>Fi("div",{className:"cleen-space-y-3",children:[jt("div",{className:pn("cleen-bg-muted cleen-rounded cleen-w-2/3 cleen-h-4",a)}),jt("div",{className:pn("cleen-bg-muted cleen-rounded cleen-w-full cleen-h-10",a)})]},i))}),Fi("div",{className:"cleen-flex cleen-justify-between cleen-items-center cleen-pt-4",children:[jt("div",{className:pn("cleen-bg-muted cleen-rounded cleen-w-24 cleen-h-10",a)}),jt("div",{className:pn("cleen-bg-muted cleen-rounded cleen-w-24 cleen-h-10",a)})]})]})})})});import{cn as Ai}from"@cleen/ui-core";import{forwardRef as C6}from"react";import{jsx as sl,jsxs as x6}from"react/jsx-runtime";var p1=C6(function({className:t,style:n,variant:o="default",itemCount:l=5},a){let c=te(o),i=["cleen-w-1/12","cleen-w-3/12","cleen-w-2/12","cleen-w-3/12","cleen-w-2/12","cleen-w-1/12"];return sl("div",{ref:a,className:Ai("cleen",t),style:n,children:x6("div",{className:"cleen-flex cleen-flex-col cleen-w-full cleen-border cleen-border-border cleen-rounded-xl cleen-overflow-hidden",children:[sl("div",{className:"cleen-flex cleen-items-center cleen-gap-3 cleen-px-4 cleen-py-3 cleen-bg-muted cleen-border-b cleen-border-border",children:i.map((d,s)=>sl("div",{className:Ai("cleen-bg-muted cleen-rounded cleen-h-4 cleen-flex-shrink-0",d,c)},s))}),Array.from({length:l}).map((d,s)=>sl("div",{className:Ai("cleen-flex cleen-items-center cleen-gap-3 cleen-px-4 cleen-py-3",s<l-1?"cleen-border-b cleen-border-border":""),children:i.map((p,g)=>sl("div",{className:Ai("cleen-bg-muted cleen-rounded cleen-h-4 cleen-flex-shrink-0",g===i.length-1?"cleen-rounded-full":"cleen-rounded",p,c)},g))},s))]})})});import{cn as Oi}from"@cleen/ui-core";import{forwardRef as P6}from"react";import{jsx as pl,jsxs as VI}from"react/jsx-runtime";var d1=P6(function({className:t,style:n,variant:o="default",itemCount:l=4},a){let c=te(o);return pl("div",{ref:a,className:Oi("cleen",t),style:n,children:VI("div",{className:"cleen-flex cleen-flex-col cleen-gap-5 cleen-w-full cleen-bg-surface cleen-border cleen-border-border cleen-rounded-xl cleen-px-6 cleen-py-6",children:[Array.from({length:l}).map((i,d)=>VI("div",{className:"cleen-flex cleen-flex-col cleen-gap-2",children:[pl("div",{className:Oi("cleen-bg-muted cleen-rounded cleen-w-1/4 cleen-h-3",c)}),pl("div",{className:Oi("cleen-bg-muted cleen-rounded-lg cleen-w-full cleen-h-10",c)})]},d)),pl("div",{className:"cleen-flex cleen-justify-end cleen-pt-1",children:pl("div",{className:Oi("cleen-bg-muted cleen-rounded-lg cleen-w-28 cleen-h-10",c)})})]})})});import{cn as HI}from"@cleen/ui-core";import{forwardRef as S6}from"react";import{jsx as m1}from"react/jsx-runtime";var w6=["rgb(var(--cleen-blue))","rgb(var(--cleen-aqua))","rgb(var(--cleen-green-light-300))","rgb(var(--cleen-aqua))","rgb(var(--cleen-blue))"],u1=S6(function({className:t,style:n,variant:o="default",colors:l=w6},a){let c=te(o);return m1("div",{ref:a,className:HI("cleen",t),style:n,children:m1("div",{className:HI("cleen-p-1 cleen-size-full cleen-rounded-lg cleen-animate-[cleen-rotate-gradient-angle_2.5s_linear_infinite]",c),style:{background:`conic-gradient(from var(--cleen--gradient-angle),${l.join(",")})`},children:m1("div",{className:"cleen-bg-background cleen-size-full cleen-rounded-md"})})})});import{cn as _i}from"@cleen/ui-core";import{forwardRef as M6}from"react";import{jsx as dr,jsxs as UI}from"react/jsx-runtime";var f1=M6(function({className:t,style:n,variant:o="default"},l){let a=te(o);return dr("div",{ref:l,className:_i("cleen",t),style:n,children:UI("div",{className:"cleen-flex cleen-flex-col cleen-gap-2 cleen-w-full",children:[dr("div",{className:_i("cleen-relative cleen-bg-muted cleen-rounded-xl cleen-w-full cleen-aspect-video cleen-overflow-hidden",a),children:dr("div",{className:"cleen-absolute cleen-inset-0 cleen-flex cleen-items-center cleen-justify-center",children:UI("div",{className:_i("cleen-flex cleen-flex-col cleen-items-center cleen-gap-1 cleen-opacity-30"),children:[dr("div",{className:"cleen-bg-neutral-200 cleen-rounded-full cleen-size-8"}),dr("div",{className:"cleen-bg-neutral-200 cleen-rounded cleen-w-16 cleen-h-2"})]})})}),dr("div",{className:_i("cleen-bg-muted cleen-rounded cleen-w-1/2 cleen-h-3 cleen-mx-auto",a)})]})})});import{cn as je}from"@cleen/ui-core";import{forwardRef as k6}from"react";import{jsx as Ze,jsxs as eo}from"react/jsx-runtime";var h1=k6(function({className:t,style:n,variant:o="default"},l){let a=te(o);return Ze("div",{ref:l,className:je("cleen",t),style:n,children:eo("div",{className:je("cleen-flex cleen-flex-col cleen-items-start cleen-gap-4 cleen-bg-surface cleen-px-4 cleen-py-4 cleen-border cleen-border-border cleen-rounded-xl cleen-h-fit",t),style:n,children:[eo("div",{className:"cleen-flex cleen-items-center cleen-gap-2",children:[Ze("div",{className:je("cleen-flex cleen-justify-center cleen-items-center cleen-bg-muted cleen-p-2 cleen-rounded-full cleen-size-8",a)}),Ze("div",{className:je("cleen-bg-muted cleen-rounded cleen-w-24 cleen-h-3",a)})]}),eo("div",{className:"cleen-space-y-3 cleen-w-full",children:[eo("div",{children:[Ze("div",{className:je("cleen-bg-muted cleen-mb-1 cleen-rounded cleen-w-20 cleen-h-3",a)}),Ze(fe,{isGlass:!0,classNames:{container:"!cleen-py-3",childrenContainer:"!cleen-px-3"},children:eo("div",{className:"cleen-space-y-2",children:[Ze("div",{className:je("cleen-bg-muted cleen-rounded cleen-w-full cleen-h-3",a)}),Ze("div",{className:je("cleen-bg-muted cleen-rounded cleen-w-5/6 cleen-h-3",a)})]})})]}),eo("div",{children:[Ze("div",{className:je("cleen-bg-muted cleen-mb-1 cleen-rounded cleen-w-20 cleen-h-3",a)}),eo("div",{className:"cleen-space-y-2",children:[Ze("div",{className:je("cleen-bg-muted cleen-rounded cleen-w-3/4 cleen-h-3",a)}),Ze("div",{className:je("cleen-bg-muted cleen-rounded cleen-w-2/3 cleen-h-3",a)})]})]}),eo("div",{children:[Ze("div",{className:je("cleen-bg-muted cleen-mb-1 cleen-rounded cleen-w-20 cleen-h-3",a)}),Ze(fe,{isGlass:!0,classNames:{container:"!cleen-py-3",childrenContainer:"!cleen-px-3"},children:eo("div",{className:"cleen-space-y-2",children:[Ze("div",{className:je("cleen-bg-muted cleen-rounded cleen-w-full cleen-h-3",a)}),Ze("div",{className:je("cleen-bg-muted cleen-rounded cleen-w-4/5 cleen-h-3",a)})]})})]})]})]})})});import{cn as g1}from"@cleen/ui-core";import{forwardRef as B6}from"react";import{jsx as v1,jsxs as N6}from"react/jsx-runtime";var b1=B6(function({className:t,style:n,variant:o="default"},l){let a=te(o);return v1("div",{ref:l,className:g1("cleen",t),style:n,children:N6("div",{className:"cleen-flex cleen-flex-col cleen-gap-2 cleen-w-full",children:[v1("div",{className:g1("cleen-bg-muted cleen-rounded cleen-w-1/4 cleen-h-3",a)}),v1("div",{className:g1("cleen-bg-muted cleen-rounded-lg cleen-w-full cleen-h-10 cleen-border cleen-border-border",a)})]})})});import{cn as dl}from"@cleen/ui-core";import{forwardRef as T6}from"react";import{jsx as mr,jsxs as GI}from"react/jsx-runtime";var y1=T6(function({className:t,style:n,variant:o="default",itemCount:l=5},a){let c=te(o),i=["cleen-w-3/4","cleen-w-2/3","cleen-w-4/5","cleen-w-1/2","cleen-w-3/5"];return mr("div",{ref:a,className:dl("cleen",t),style:n,children:mr("div",{className:"cleen-flex cleen-flex-col cleen-divide-y cleen-divide-border",children:Array.from({length:l}).map((d,s)=>GI("div",{className:"cleen-flex cleen-items-center cleen-gap-3 cleen-py-3",children:[mr("div",{className:dl("cleen-bg-muted cleen-rounded-full cleen-size-8 cleen-shrink-0 cleen-border cleen-border-border",c)}),GI("div",{className:"cleen-flex cleen-flex-col cleen-flex-1 cleen-gap-1.5",children:[mr("div",{className:dl("cleen-bg-muted cleen-rounded cleen-h-4",i[s%i.length],c)}),mr("div",{className:dl("cleen-bg-muted cleen-rounded cleen-h-3 cleen-w-2/5",c)})]}),mr("div",{className:dl("cleen-bg-muted cleen-rounded-full cleen-w-14 cleen-h-5 cleen-shrink-0",c)})]},s))})})});import{cn as $I}from"@cleen/ui-core";import{forwardRef as R6}from"react";import{jsx as C1}from"react/jsx-runtime";var I1=["cleen-w-full","cleen-w-full","cleen-w-11/12","cleen-w-full","cleen-w-4/5"],x1=R6(function({className:t,style:n,variant:o="default",itemCount:l},a){let c=te(o),i=l??I1.length;return C1("div",{ref:a,className:$I("cleen",t),style:n,children:C1("div",{className:"cleen-flex cleen-flex-col cleen-gap-2 cleen-w-full",children:Array.from({length:i}).map((d,s)=>{let p=s<I1.length?I1[s]:s===i-1?"cleen-w-3/5":"cleen-w-full";return C1("div",{className:$I("cleen-bg-muted cleen-rounded cleen-h-3",p,c)},s)})})})});import{cn as WI}from"@cleen/ui-core";import{forwardRef as L6}from"react";import{jsx as qI}from"react/jsx-runtime";var P1=L6(function({className:t,style:n,variant:o="default"},l){let a=te(o);return qI("div",{ref:l,className:WI("cleen",t),style:n,children:qI("div",{className:WI("cleen-bg-muted cleen-rounded cleen-w-3/4 cleen-h-4",a)})})});import{cn as dn}from"@cleen/ui-core";import{forwardRef as E6}from"react";import{jsx as Nt,jsxs as zi}from"react/jsx-runtime";var S1=E6(function({className:t,style:n,variant:o="default"},l){let a=te(o);return Nt("div",{ref:l,className:dn("cleen",t),style:n,children:zi("div",{className:"cleen-flex cleen-flex-col cleen-gap-3 cleen-w-full",children:[Nt("div",{className:dn("cleen-relative cleen-bg-muted cleen-rounded-xl cleen-w-full cleen-aspect-video cleen-overflow-hidden",a),children:Nt("div",{className:"cleen-absolute cleen-inset-0 cleen-flex cleen-items-center cleen-justify-center",children:Nt("div",{className:"cleen-bg-neutral-200 cleen-rounded-full cleen-size-14 cleen-flex cleen-items-center cleen-justify-center",children:Nt("div",{className:"cleen-w-0 cleen-h-0 cleen-ml-1 cleen-border-y-[8px] cleen-border-y-transparent cleen-border-l-[14px] cleen-border-l-neutral-400"})})})}),zi("div",{className:"cleen-flex cleen-gap-3",children:[Nt("div",{className:dn("cleen-bg-muted cleen-rounded-lg cleen-size-10 cleen-shrink-0",a)}),zi("div",{className:"cleen-flex cleen-flex-col cleen-flex-1 cleen-gap-2",children:[Nt("div",{className:dn("cleen-bg-muted cleen-rounded cleen-w-full cleen-h-4",a)}),Nt("div",{className:dn("cleen-bg-muted cleen-rounded cleen-w-3/4 cleen-h-3",a)}),zi("div",{className:"cleen-flex cleen-items-center cleen-gap-3",children:[Nt("div",{className:dn("cleen-bg-muted cleen-rounded cleen-w-14 cleen-h-3",a)}),Nt("div",{className:dn("cleen-bg-muted cleen-rounded cleen-w-10 cleen-h-3",a)})]})]})]})]})})});import{cn as ml}from"@cleen/ui-core";import{forwardRef as D6}from"react";import{jsx as ul,jsxs as w1}from"react/jsx-runtime";var Vi=D6(function({variant:t="default",className:n,style:o},l){let a=te(t);return ul("div",{ref:l,className:ml("cleen",n),style:o,children:w1("div",{className:"cleen-flex cleen-flex-col cleen-justify-between cleen-items-start cleen-gap-3 cleen-bg-surface cleen-px-4 cleen-py-4 cleen-border cleen-border-border cleen-rounded-xl cleen-w-full cleen-h-full",children:[w1("div",{className:"cleen-flex cleen-justify-between cleen-items-center cleen-gap-2 cleen-px-2 cleen-py-0.5 cleen-border cleen-border-border cleen-rounded-full",children:[ul("div",{className:ml("cleen-bg-muted cleen-rounded-full cleen-size-1.5",a)}),ul("div",{className:ml("cleen-bg-muted cleen-rounded cleen-w-20 cleen-h-3",a)})]}),w1("div",{className:"cleen-flex cleen-justify-between cleen-items-center cleen-w-full",children:[ul("div",{className:ml("cleen-bg-muted cleen-rounded cleen-w-24 cleen-h-8",a)}),ul("div",{className:ml("cleen-bg-muted cleen-rounded cleen-w-12 cleen-h-4",a)})]})]})})});Vi.displayName="SkeletonBadgeCard";import{forwardRef as F6}from"react";import{jsx as Ie}from"react/jsx-runtime";var A6=F6(function({className:t,style:n,variant:o="default",itemCount:l=3,colors:a,skeleton:c="card",isShowing:i=!1,children:d},s){if(!i)return d;let p={ref:s,variant:o,itemCount:l,colors:a,className:t,style:n};switch(c){case"card2":return Ie(Di,{...p});case"card3":return Ie(a1,{...p});case"cardStack":return Ie(c1,{...p});case"contentCard":return Ie(s1,{...p});case"infoCard":return Ie(h1,{...p});case"widgetCard":return Ie(Vi,{...p});case"image":return Ie(f1,{...p});case"video":return Ie(S1,{...p});case"avatar":return Ie(j0,{...p});case"dataGrid":return Ie(p1,{...p});case"text":return Ie(P1,{...p});case"paragraph":return Ie(x1,{...p});case"list":return Ie(y1,{...p});case"form":return Ie(d1,{...p});case"banner":return Ie(o1,{...p});case"chart":return Ie(i1,{...p});case"button":return Ie(r1,{...p});case"badge":return Ie(t1,{...p});case"input":return Ie(b1,{...p});case"glowingCard":return Ie(u1,{...p});default:return Ie(cl,{...p})}});import{cn as Mo}from"@cleen/ui-core";import{forwardRef as O6,useCallback as M1,useEffect as _6,useRef as XI,useState as KI}from"react";import{jsx as ko,jsxs as Hi}from"react/jsx-runtime";var mn=O6(function({id:t,required:n,minValue:o=0,maxValue:l=100,step:a=1,defaultValue:c=0,value:i,variant:d="default",onChange:s,onChangeEnd:p,className:g,classNames:m,style:y,styles:v,disabled:h=!1,label:b,labelTooltip:x,labels:C,tooltip:I,infoLabels:P},k){let[E,N]=KI(c??o),M=i!==void 0?i:E,L=XI(null),[S,w]=KI(!1),T=XI(!1),F=(M-o)/(l-o)*100,R=Math.min(100,Math.max(0,F)),B=M1(q=>{let H=Math.round((q-o)/a)*a+o;return Math.min(l,Math.max(o,H))},[o,l,a]),V=M1((q,H)=>{let $=B(q);i===void 0&&N($),s?.($),H&&p?.($)},[B,i,s,p]),D=M1(q=>{let H=L.current;if(!H)return o;let $=H.getBoundingClientRect(),Q=(q-$.left)/$.width;return B(o+Q*(l-o))},[o,l,B]),A=q=>{if(h)return;let H;switch(q.key){case"ArrowRight":case"ArrowUp":H=M+a;break;case"ArrowLeft":case"ArrowDown":H=M-a;break;case"Home":H=o;break;case"End":H=l;break;default:return}q.preventDefault(),V(H,!0)},O=q=>{h||(q.preventDefault(),w(!0))},z=q=>{if(h||T.current){T.current=!1;return}V(D(q.clientX),!0)},U=q=>{h||(q.preventDefault(),w(!0))};_6(()=>{if(!S)return;let q=_=>{V(D(_.clientX))},H=_=>{w(!1),T.current=!0,p?.(B(D(_.clientX)))},$=_=>{_.touches.length>0&&V(D(_.touches[0].clientX))},Q=_=>{w(!1),T.current=!0,p?.(B(D(_.changedTouches[0].clientX)))};return document.addEventListener("mousemove",q),document.addEventListener("mouseup",H),document.addEventListener("touchmove",$),document.addEventListener("touchend",Q),()=>{document.removeEventListener("mousemove",q),document.removeEventListener("mouseup",H),document.removeEventListener("touchmove",$),document.removeEventListener("touchend",Q)}},[S,B,D,V,p]);let W=q=>ko("span",{className:"cleen-font-medium cleen-text-xs cleen-text-foreground",children:q});return ko("div",{className:Mo("cleen",g),style:y,ref:k,children:Hi("div",{className:Mo("cleen-w-full",m?.container),style:v?.container,children:[b&&ko(ae,{htmlFor:t,required:n,tooltip:x,...m?.label,...v?.label,children:b}),Hi("div",{className:Mo({"cleen-flex cleen-items-center cleen-gap-2":d==="inline"},m?.slider),style:v?.slider,children:[d==="inline"&&C?.minLabel!==void 0&&W(C?.minLabel),Hi("div",{ref:L,className:Mo("cleen-relative cleen-w-full cleen-h-8 cleen-touch-none",{"cleen-opacity-60":h,"cleen-flex-1":d==="inline"},m?.track),style:v?.track,"aria-disabled":h,onClick:z,children:[ko("div",{className:Mo("cleen-absolute cleen-left-0 cleen-right-0 cleen-top-1/2 cleen-h-1 cleen-bg-neutral-200 cleen-rounded-sm -cleen-translate-y-1/2",h?"cleen-cursor-not-allowed":"cleen-cursor-pointer",m?.path),style:v?.path,children:ko("div",{className:Mo("cleen-absolute cleen-left-0 cleen-top-0 cleen-h-full cleen-bg-primary cleen-rounded-sm",m?.filledTrack),style:{width:`${R}%`,...v?.filledTrack}})}),ko(ye,{invertColors:!0,...I,label:C?.tooltip?.(M)??M,className:Mo("cleen-absolute cleen-top-1/2 -cleen-translate-y-1/2",I?.className),style:{left:`calc(${R}% - 8px)`,...I?.style},isOpen:S||I?.isOpen,hideOnMouseDown:!1,closeOnClick:!1,children:ko("div",{id:t,className:Mo("cleen-size-4 cleen-bg-white dark:cleen-bg-black cleen-border cleen-border-neutral-600 cleen-rounded-full cleen-transition-all cleen-duration-200 hover:cleen-scale-125 hover:cleen-border-primary focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-primary focus-visible:cleen-ring-offset-1",h?"cleen-cursor-not-allowed":"cleen-cursor-pointer",m?.thumb),style:v?.thumb,tabIndex:h?-1:0,role:"slider","aria-valuenow":M,"aria-valuemin":o,"aria-valuemax":l,"aria-disabled":h,"aria-label":typeof b=="string"?b:"Slider","aria-labelledby":t,onMouseDown:O,onTouchStart:U,onKeyDown:A})})]}),d==="inline"?C?.maxLabel&&W(C?.maxLabel):(C?.minLabel||C?.maxLabel)&&Hi("div",{className:"cleen-flex cleen-items-center cleen-justify-between cleen-w-full",children:[C?.minLabel&&W(C?.minLabel),C?.maxLabel&&W(C?.maxLabel)]})]}),(P?.errorMessage||P?.infoMessage||P?.subtitle)&&ko(ne,{...P})]})})});import{cn as Tt}from"@cleen/ui-core";import{forwardRef as z6,useCallback as k1,useEffect as V6,useRef as H6,useState as YI}from"react";import{jsx as Rt,jsxs as Ui}from"react/jsx-runtime";var U6=z6(function({id:t,required:n,minValue:o=0,maxValue:l=100,step:a=1,defaultValue:c=[o,l],value:i,variant:d="default",onChange:s,onChangeEnd:p,className:g,classNames:m,style:y,styles:v,disabled:h=!1,label:b,labelTooltip:x,labels:C,tooltips:I,infoLabels:P},k){let[E,N]=YI(c??[o,l]),M=i!==void 0?i:E,L=H6(null),[S,w]=YI(null),T=k1(H=>{let $=Math.round((H-o)/a)*a+o;return Math.min(l,Math.max(o,$))},[o,l,a]),F=(M[0]-o)/(l-o)*100,R=Math.min(100,Math.max(0,F)),B=(M[1]-o)/(l-o)*100,V=Math.min(100,Math.max(0,B)),D=k1(H=>{let $=[T(Math.min(H[0],H[1])),T(Math.max(H[0],H[1]))];i===void 0&&N($),s?.($)},[T,i,s]),A=k1(H=>{let $=L.current;if(!$)return o;let Q=$.getBoundingClientRect(),_=(H-Q.left)/Q.width;return T(o+_*(l-o))},[o,l,T]),O=H=>$=>{if(h)return;let Q=H==="min"?M[0]:M[1],_;switch($.key){case"ArrowRight":case"ArrowUp":_=Q+a;break;case"ArrowLeft":case"ArrowDown":_=Q-a;break;case"Home":_=o;break;case"End":_=l;break;default:return}$.preventDefault();let Z=H==="min"?[Math.min(_,M[1]),M[1]]:[M[0],Math.max(_,M[0])];D(Z),p?.([T(Z[0]),T(Z[1])])},z=H=>$=>{h||($.preventDefault(),w(H))},U=H=>{if(h)return;let $=A(H.clientX),Q=Math.abs($-M[0]),_=Math.abs($-M[1]);Q<_?D([$,M[1]]):D([M[0],$])},W=H=>$=>{h||($.preventDefault(),w(H))};V6(()=>{if(!S)return;let H=Z=>{let pe=A(Z.clientX);D(S==="min"?[pe,M[1]]:[M[0],pe])},$=Z=>{let pe=A(Z.clientX),he=S==="min"?[pe,M[1]]:[M[0],pe];w(null),p?.(he)},Q=Z=>{if(Z.touches.length>0){let pe=A(Z.touches[0].clientX);D(S==="min"?[pe,M[1]]:[M[0],pe])}},_=Z=>{let pe=A(Z.changedTouches[0].clientX),he=S==="min"?[pe,M[1]]:[M[0],pe];w(null),p?.(he)};return document.addEventListener("mousemove",H),document.addEventListener("mouseup",$),document.addEventListener("touchmove",Q),document.addEventListener("touchend",_),()=>{document.removeEventListener("mousemove",H),document.removeEventListener("mouseup",$),document.removeEventListener("touchmove",Q),document.removeEventListener("touchend",_)}},[S,M,A,D,p]);let q=H=>Rt("span",{className:"cleen-font-medium cleen-text-xs cleen-text-foreground",children:H});return Rt("div",{className:Tt("cleen",g),style:y,ref:k,children:Ui("div",{className:Tt("cleen-w-full",m?.container),style:v?.container,children:[b&&Rt(ae,{htmlFor:t,required:n,tooltip:x,...m?.label,...v?.label,children:b}),Ui("div",{className:Tt({"cleen-flex cleen-items-center cleen-gap-2":d==="inline"},m?.slider),style:v?.slider,children:[d==="inline"&&C?.minLabel!==void 0&&q(C?.minLabel),Ui("div",{ref:L,className:Tt("cleen-relative cleen-w-full cleen-h-8 cleen-touch-none",{"cleen-opacity-60":h,"cleen-flex-1":d==="inline"},m?.track),style:v?.track,"aria-disabled":h,onClick:U,children:[Rt("div",{className:Tt("cleen-absolute cleen-left-0 cleen-right-0 cleen-top-1/2 cleen-h-1 cleen-bg-neutral-200 cleen-rounded-sm -cleen-translate-y-1/2",h?"cleen-cursor-not-allowed":"cleen-cursor-pointer"),children:Rt("div",{className:Tt("cleen-absolute cleen-top-0 cleen-h-full cleen-bg-primary cleen-rounded-sm",m?.filledTrack),style:{left:`${R}%`,width:`${V-R}%`,...v?.filledTrack}})}),Rt(ye,{invertColors:!0,isOpen:S==="min"||I?.min?.isOpen||I?.shared?.isOpen,hideOnMouseDown:!1,closeOnClick:!1,...I?.shared,...I?.min,label:C?.tooltip?.(M[0])??M[0]?.toString(),className:Tt("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:Rt("div",{className:Tt("cleen-size-4 cleen-bg-white dark:cleen-bg-black cleen-border cleen-border-neutral-600 cleen-rounded-full cleen-transition-all cleen-duration-200 hover:cleen-scale-125 hover:cleen-border-primary focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-primary focus-visible:cleen-ring-offset-1",h?"cleen-cursor-not-allowed":"cleen-cursor-pointer",m?.thumb),style:v?.thumb,tabIndex:h?-1:0,role:"slider","aria-valuenow":M[0],"aria-valuemin":o,"aria-valuemax":M[1],"aria-disabled":h,"aria-label":typeof b=="string"?`${b} minimum value`:"Minimum value",onMouseDown:z("min"),onTouchStart:W("min"),onKeyDown:O("min")})}),Rt(ye,{invertColors:!0,isOpen:S==="max"||I?.max?.isOpen||I?.shared?.isOpen,hideOnMouseDown:!1,closeOnClick:!1,...I?.shared,...I?.max,label:C?.tooltip?.(M[1])??M[1]?.toString(),className:Tt("cleen-absolute cleen-top-1/2 -cleen-translate-y-1/2",I?.shared?.className,I?.max?.className),style:{left:`calc(${V}% - 8px)`,...I?.shared?.style,...I?.max?.style},children:Rt("div",{className:Tt("cleen-size-4 cleen-bg-white dark:cleen-bg-black cleen-border cleen-border-neutral-600 cleen-rounded-full cleen-transition-all cleen-duration-200 hover:cleen-scale-125 hover:cleen-border-primary focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-primary focus-visible:cleen-ring-offset-1",h?"cleen-cursor-not-allowed":"cleen-cursor-pointer",m?.thumb),style:v?.thumb,tabIndex:h?-1:0,role:"slider","aria-valuenow":M[1],"aria-valuemin":M[0],"aria-valuemax":l,"aria-disabled":h,"aria-label":typeof b=="string"?`${b} maximum value`:"Maximum value",onMouseDown:z("max"),onTouchStart:W("max"),onKeyDown:O("max")})})]}),d==="inline"?C?.maxLabel&&q(C?.maxLabel):(C?.minLabel||C?.maxLabel)&&Ui("div",{className:"cleen-flex cleen-items-center cleen-justify-between cleen-w-full",children:[C?.minLabel&&q(C?.minLabel),C?.maxLabel&&q(C?.maxLabel)]})]}),(P?.errorMessage||P?.infoMessage||P?.subtitle)&&Rt(ne,{...P})]})})});import{cn as ur}from"@cleen/ui-core";import{forwardRef as G6,useRef as $6,useState as ZI}from"react";import{jsx as un,jsxs as q6}from"react/jsx-runtime";var W6=G6(function({label:t,infoLabels:n,value:o,onChange:l,amount:a=5,gap:c,size:i,readonly:d,color:s="rgb(var(--cleen-yellow))",className:p,style:g,classNames:m,styles:y,...v},h){let[b,x]=ZI(0),C=o!==void 0,I=C?o:b,[P,k]=ZI(null),E=P!==null?P+1:I,N=!d,M=$6([]),L=I>0?I-1:0,S=R=>{C||x(R),l?.(R)},w=R=>{R<0||R>=a||(S(R+1),M.current[R]?.focus())},T=(R,B)=>{switch(R.key){case"ArrowRight":case"ArrowUp":R.preventDefault(),w((B+1)%a);break;case"ArrowLeft":case"ArrowDown":R.preventDefault(),w((B-1+a)%a);break;case"Home":R.preventDefault(),w(0);break;case"End":R.preventDefault(),w(a-1);break;default:break}},F=typeof t=="string"?t:"Rating";return un("div",{className:ur("cleen",p),style:g,ref:h,...v,children:q6("div",{className:ur("cleen-space-y-2",m?.container),style:y?.container,children:[t&&un("span",{className:ur("cleen-font-medium cleen-text-sm cleen-text-foreground",m?.label),style:y?.label,children:t}),un("div",{role:N?"radiogroup":"img","aria-label":N?F:`${F}: ${I} out of ${a}`,className:ur("cleen-flex cleen-gap-3",m?.list),style:{...c?{gap:c}:{},...y?.list},children:Array.from({length:a},(R,B)=>{let V=un(ba,{"aria-hidden":"true",className:ur("cleen-size-5 cleen-text-neutral-700 cleen-transition-colors",m?.star),style:{...i?{width:i,height:i}:{},...y?.star,fill:(d?I:E)>B?s:"transparent"}});return N?un("button",{type:"button",ref:D=>{M.current[B]=D},role:"radio","aria-checked":I===B+1,"aria-label":`${B+1} ${B+1===1?"star":"stars"}`,tabIndex:B===L?0:-1,onMouseEnter:()=>k(B),onMouseLeave:()=>k(null),onClick:()=>S(B+1),onKeyDown:D=>T(D,B),className:ur("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:V},B):un("span",{className:"cleen-cursor-default",children:V},B)})}),(n?.errorMessage||n?.infoMessage||n?.subtitle)&&un(ne,{...n})]})})});import{cn as to}from"@cleen/ui-core";import{forwardRef as X6}from"react";import{jsx as Bo,jsxs as QI}from"react/jsx-runtime";var JI=X6(({steps:e,activeStep:t=0,orientation:n="horizontal",color:o="rgb(var(--cleen-primary))",className:l,classNames:a,style:c,styles:i,...d},s)=>{let p=n==="vertical";return Bo("div",{ref:s,className:to("cleen",l),style:{...c,width:"100%"},...d,children:Bo("div",{className:to("cleen-flex cleen-w-full",p?"cleen-flex-col cleen-gap-6":"cleen-flex-row cleen-items-start cleen-gap-8 cleen-justify-between",a?.container),style:{width:"100%",...i?.container},children:e?.map((g,m)=>{let y=m+1<t,v=m+1===t;return QI("div",{className:to("cleen-relative cleen-flex cleen-flex-1",p?"cleen-flex-row cleen-items-start":"cleen-flex-col cleen-items-center cleen-text-center",a?.step),style:i?.step,children:[m<e?.length-1&&Bo("div",{className:to("cleen-absolute cleen-bg-neutral-200 cleen-transition-all cleen-duration-300",p?"cleen-left-3 cleen-top-7 cleen-w-[2px] cleen-h-[calc(100%-4px)]":"cleen-top-3 cleen-left-[calc(50%+14px)] cleen-h-[2px] cleen-w-[calc(100%+4px)]",y&&"cleen-bg-primary",a?.connector),style:{backgroundColor:y?o:void 0,...i?.connector}}),Bo("div",{className:to("cleen-relative cleen-flex cleen-items-center cleen-justify-center cleen-rounded-full cleen-border cleen-transition-all cleen-duration-300","cleen-size-7",y||v?"cleen-border-[2px]":"cleen-border-border",a?.circle),style:{borderColor:v||y?o:void 0,backgroundColor:y?o:"transparent",...i?.circle},children:y?Bo("span",{className:"cleen-text-white cleen-text-sm",children:"\u2713"}):Bo("span",{className:to("cleen-w-2 cleen-h-2 cleen-rounded-full",v?"cleen-bg-white":"cleen-bg-neutral-200"),style:{backgroundColor:v?o:void 0}})}),QI("div",{className:to("cleen-flex cleen-flex-col",p?"cleen-ml-3":"cleen-mt-3 cleen-items-center"),children:[g.title&&Bo("div",{className:to("cleen-font-medium cleen-text-sm",v?"cleen-text-primary":"cleen-text-foreground",a?.title),style:{color:v?o:void 0,...i?.title},children:g.title}),g.subtitle&&Bo("div",{className:to("cleen-text-xs cleen-text-neutral-600",a?.subtitle),style:{color:v?o:void 0,...i?.subtitle},children:g.subtitle})]})]},m)})})})});JI.displayName="Stepper";import{cn as Be}from"@cleen/ui-core";import{forwardRef as K6,useMemo as eC,useState as fr}from"react";var jI={trigger:"Filter by tags",noMatches:"No matching tags",searchPlaceholder:"Search or create a tag",noData:"There are no tags yet",footer:"Select tags to filter",selected:e=>`${e} selected`,create:e=>`Create \u201C${e}\u201D`,clear:"Clear",done:"Done"};import{Fragment as Q6,jsx as Pe,jsxs as hr}from"react/jsx-runtime";var Y6=[],Z6=K6(function({items:t=Y6,value:n,defaultValue:o,onApply:l,onCreate:a,isLoading:c=!1,icon:i,disabled:d=!1,isOpen:s,onOpenChange:p,position:g="bottom-left",zIndex:m,labels:y,className:v,classNames:h,style:b,styles:x,...C},I){let P={...jI,...y},[k,E]=fr(o??[]),N=n??k,[M,L]=fr(!1),S=s??M,[w,T]=fr(N),[F,R]=fr(""),[B,V]=fr([]),[D,A]=fr(!1),O=eC(()=>[...t,...B.filter(j=>!t.some(ie=>ie.id===j.id))],[t,B]),z=F.trim(),U=eC(()=>{let j=z.toLowerCase();return j?O.filter(ie=>ie.label.toLowerCase().includes(j)):O},[O,z]),W=!!z&&!O.some(j=>j.label.toLowerCase()===z.toLowerCase())&&!!a,q=c||D,H=N.length,$=H>0,Q=j=>{j&&(T(N),R("")),s===void 0&&L(j),p?.(j)},_=j=>{T(ie=>ie.includes(j)?ie.filter(Ge=>Ge!==j):[...ie,j])},Z=async()=>{if(!(!a||!z||q)){A(!0);try{let j=await a(z);j&&(V(ie=>ie.some(Ge=>Ge.id===j.id)?ie:[...ie,j]),T(ie=>ie.includes(j.id)?ie:[...ie,j.id]),R(""))}finally{A(!1)}}},pe=j=>{j.key==="Enter"&&W&&(j.preventDefault(),Z())},he=()=>{T([])},be=()=>{let j=O.filter(ie=>w.includes(ie.id));n===void 0&&E(w),l?.(w,j),Q(!1)},Ne=hr(Q6,{children:[W&&Pe("div",{className:"cleen-p-1.5",children:Pe(ee,{variant:"borderless-blue",fullWidth:!0,isLoading:q,leftIcon:Pe(sa,{className:"cleen-size-4 cleen-shrink-0"}),onClick:()=>{Z()},classNames:{container:Be("cleen-justify-start cleen-px-2.5 cleen-py-1.5 cleen-font-medium",h?.createButton)},styles:{container:x?.createButton},children:Pe("span",{className:"cleen-truncate",children:P.create(z)})})}),U.length===0?W?null:Pe("p",{className:Be("cleen-px-3 cleen-py-4 cleen-text-gray-500 cleen-text-sm cleen-text-center cleen-opacity-50",h?.noData),style:x?.noData,children:O.length===0?P.noData:P.noMatches}):Pe("ul",{className:Be("cleen-flex cleen-flex-col cleen-py-1 cleen-max-h-[300px] cleen-overflow-y-auto cleen-[scrollbar-width:thin] [&::-webkit-scrollbar]:cleen-w-1 [&::-webkit-scrollbar-track]:cleen-bg-transparent [&::-webkit-scrollbar-thumb]:cleen-rounded-full [&::-webkit-scrollbar-thumb]:cleen-bg-neutral-200",h?.list),style:x?.list,children:U.map(j=>hr("li",{onClick:()=>_(j.id),className:Be("cleen-flex cleen-justify-between cleen-items-center cleen-gap-2 hover:cleen-bg-muted cleen-px-3 cleen-py-2 cleen-transition-colors cleen-cursor-pointer",h?.item),style:x?.item,children:[Pe($a,{className:"cleen-flex-1 cleen-min-w-0",classNames:{container:"cleen-min-w-0",checkboxContainer:"cleen-items-center cleen-min-w-0 [&>div]:cleen-flex-1 [&>div]:cleen-min-w-0",checkbox:h?.checkbox,label:Be("cleen-text-sm cleen-truncate cleen-cursor-pointer",h?.itemLabel)},styles:{checkbox:x?.checkbox,label:x?.itemLabel},checked:w.includes(j.id),onClick:ie=>ie.stopPropagation(),label:Pe("span",{title:j.label,className:"cleen-select-none",children:j.label}),fullTriggerArea:!0}),j.count!==void 0&&Pe("span",{className:Be("cleen-shrink-0 cleen-text-gray-500 cleen-text-sm cleen-tabular-nums cleen-opacity-50 cleen-select-none",h?.count),style:x?.count,children:j.count})]},j.id))})]}),_e=hr("div",{className:Be("cleen-flex cleen-flex-col",h?.content),style:x?.content,role:"dialog",children:[Pe(ge,{autoFocus:!0,value:F,onChange:j=>R(j.target.value),onKeyDown:pe,placeholder:P.searchPlaceholder,"aria-label":P.searchPlaceholder,leftIcon:Pe(Vt,{className:"cleen-size-4 cleen-text-muted-foreground"}),className:Be("cleen-shrink-0 cleen-p-1.5 cleen-py-1",h?.search),style:x?.search,classNames:{inputContainer:"cleen-border-0 cleen-shadow-none cleen-rounded-none focus-within:cleen-ring-0",input:"cleen-text-sm"}}),Pe(gt,{className:Be("cleen-shrink-0",h?.divider),style:x?.divider}),Pe("div",{className:"cleen-flex-1 cleen-min-h-0",children:Ne}),hr("div",{className:Be("cleen-flex cleen-justify-between cleen-items-center cleen-gap-2 cleen-px-3 cleen-py-2 cleen-border-t cleen-border-border cleen-shrink-0",h?.footer),style:x?.footer,children:[Pe("span",{className:Be("cleen-min-w-0 cleen-text-muted-foreground cleen-text-xs cleen-truncate",h?.footerText),style:x?.footerText,children:w.length>0?P.selected(w.length):P.footer}),hr("div",{className:Be("cleen-flex cleen-items-center cleen-gap-2 cleen-shrink-0",h?.footerActions),style:x?.footerActions,children:[Pe(ee,{variant:"secondary",onClick:he,disabled:w.length===0,classNames:{container:Be("cleen-h-8 cleen-px-4 cleen-py-0 cleen-text-sm",h?.clearButton)},styles:{container:x?.clearButton},children:P.clear}),Pe(ee,{variant:"primary",onClick:be,classNames:{container:Be("cleen-h-8 cleen-px-4 cleen-py-0 cleen-text-sm",h?.doneButton)},styles:{container:x?.doneButton},children:P.done})]})]})]});return Pe(tl,{ref:I,isOpen:S,onOpenChange:Q,position:g,zIndex:m,content:_e,className:v,style:b,classNames:{trigger:Be(d&&"cleen-pointer-events-none"),popover:Be("cleen-w-80 cleen-overflow-hidden cleen-shadow-md",h?.popover)},styles:{popover:x?.popover},...C,children:hr("button",{type:"button",disabled:d,"aria-label":P.trigger,"aria-haspopup":"dialog","aria-expanded":S,className:Be("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":$,"cleen-opacity-50 cleen-cursor-not-allowed":d},h?.trigger,$&&h?.triggerActive),style:{...x?.trigger,...$?x?.triggerActive:{}},children:[i??Pe(Ia,{className:"cleen-size-4 cleen-shrink-0"}),$&&Pe("span",{className:Be("cleen-flex cleen-justify-center cleen-items-center cleen-bg-primary cleen-px-1.5 cleen-rounded-full cleen-min-w-5 cleen-h-5 cleen-font-semibold cleen-text-primary-foreground cleen-text-xs",h?.badge),style:x?.badge,children:H}),Pe(Er,{className:"cleen-size-3.5 cleen-shrink-0"})]})})});var B1={play:"Play",pause:"Pause",seekBackward:e=>`Back ${e} seconds`,seekForward:e=>`Forward ${e} seconds`,seek:"Seek",progress:"Playback progress",volume:"Volume",mute:"Mute",unmute:"Unmute",subtitles:"Subtitles",noSubtitles:"No subtitles available yet",subtitlesBadge:"CC",toggleSubtitles:"Toggle subtitles",playbackSpeed:"Playback speed",fullscreen:"Fullscreen",exitFullscreen:"Exit fullscreen",placeholder:"No video provided yet.",placeholderSubLabel:"Please provide a video source to play."};var N1=10;var tC={playing:!1,currentTime:0,duration:0,muted:!1,volume:1,playbackRate:1,showCaptions:!1,isFullscreen:!1,controlsActive:!0,isLoading:!0};import{forwardRef as J6,useEffect as T1,useImperativeHandle as j6,useRef as eT}from"react";import{jsx as rT}from"react/jsx-runtime";var tT=["config","fallback","light","oEmbedUrl","onClickPreview","onReady","onStart","onEnterPictureInPicture","onLeavePictureInPicture","pip","playIcon","previewAriaLabel","previewTabIndex","wrapper"],oT=e=>{let t=tT;return Object.fromEntries(Object.entries(e).filter(([n])=>!t.includes(n)))},nT=J6(function({playing:t=!1,volume:n,playbackRate:o,...l},a){let c=eT(null);return j6(a,()=>c.current,[]),T1(()=>{let i=c.current;i&&(t?i.play().catch(()=>{}):i.pause())},[t,l.src]),T1(()=>{c.current&&n!==void 0&&(c.current.volume=n)},[n]),T1(()=>{c.current&&o!==void 0&&(c.current.playbackRate=o)},[o]),rT("video",{...oT(l),ref:c,width:"100%",height:"100%"})});import{forwardRef as aT}from"react";import lT from"react-player";import{jsx as cT}from"react/jsx-runtime";var R1=aT(function(t,n){return cT(lT,{...t,ref:n,width:"100%",height:"100%"})});var fl=(s=>(s.PLAY="play",s.BACKWARD="backward",s.FORWARD="forward",s.VOLUME="volume",s.TIME="time",s.SEEKBAR="seekbar",s.SPEED="speed",s.SUBTITLES="subtitles",s.FULLSCREEN="fullscreen",s))(fl||{});var gr=e=>{if(!Number.isFinite(e)||e<0)return"0:00";let t=Math.floor(e),n=Math.floor(t/3600),o=Math.floor(t%3600/60),l=t%60,a=c=>String(c).padStart(2,"0");return n>0?`${n}:${a(o)}:${a(l)}`:`${o}:${a(l)}`},L1=(e,t)=>{if(!Array.isArray(e)||!(t>0))return[];let n=e.filter(o=>Number.isFinite(o?.start)).map(o=>({...o,start:Math.min(Math.max(o.start,0),t)})).sort((o,l)=>o.start-l.start);return n.map((o,l)=>{let a=n[l+1]?.start??t,c=o.end!==void 0&&Number.isFinite(o.end)?Math.min(Math.max(o.end,o.start),t):a;return{...o,end:c}}).filter(o=>o.end>o.start)},E1=(e,t)=>Math.min(Math.max((t-e.start)/(e.end-e.start),0),1),iT=(e,t)=>{let n=-1;return e.forEach((o,l)=>{t>=o.start&&(n=l)}),Math.max(n,0)};import{cn as gl}from"@cleen/ui-core";import{forwardRef as LT,useCallback as pt,useImperativeHandle as ET,useMemo as BC,useReducer as DT,useRef as NC}from"react";import{cn as hl}from"@cleen/ui-core";var vr="cleen-text-[#fff]",oC="cleen-text-[rgba(255,255,255,0.45)]",Gi="!cleen-bg-[rgba(0,0,0,0.25)] !cleen-text-[#fff] !cleen-border-[rgba(255,255,255,0.25)]",$i="hover:!cleen-bg-[rgba(255,255,255,0.1)] hover:!cleen-text-[#fff]",Wi="cleen-bg-[rgba(0,0,0,0.6)] hover:cleen-bg-[rgba(0,0,0,0.9)] cleen-backdrop-blur-[2px]",qi="cleen-border cleen-border-neutral-400 hover:cleen-border-neutral-600";import{cn as sT}from"@cleen/ui-core";import{jsx as pT}from"react/jsx-runtime";var fn=({label:e,onClick:t,disabled:n,active:o,className:l,style:a,children:c})=>pT("button",{type:"button","aria-label":e,"aria-pressed":o,onClick:t,disabled:n,className:sT("cleen-inline-flex cleen-justify-center cleen-items-center disabled:cleen-opacity-40 cleen-text-[rgba(255,255,255,0.85)] hover:cleen-text-[#fff] cleen-transition-colors disabled:cleen-cursor-not-allowed",l),style:a,children:c});import{cn as hn}from"@cleen/ui-core";import{cn as Xi}from"@cleen/ui-core";import{jsx as Ki}from"react/jsx-runtime";var nC=({segments:e,duration:t,currentTime:n,classNames:o,styles:l})=>Ki("div",{"aria-hidden":!0,className:Xi("cleen-top-1/2 cleen-absolute cleen-inset-x-0 cleen-h-1 -cleen-translate-y-1/2 cleen-pointer-events-none",o?.segments),style:l?.segments,children:e.map(a=>Ki("div",{className:Xi("cleen-absolute cleen-inset-y-0 cleen-pr-0.5 last:cleen-pr-0",o?.segment),style:{...l?.segment,left:`${a.start/t*100}%`,width:`${(a.end-a.start)/t*100}%`},children:Ki("div",{className:Xi("cleen-relative cleen-bg-[rgba(255,255,255,0.25)] cleen-rounded-full cleen-h-full cleen-overflow-hidden",o?.segmentTrack),style:l?.segmentTrack,children:Ki("div",{className:Xi("cleen-left-0 cleen-absolute cleen-inset-y-0 cleen-bg-[#fff] cleen-transition-[width] cleen-duration-200 cleen-ease-linear",o?.segmentFill),style:{...l?.segmentFill,width:`${E1(a,n)*100}%`}})})},a.start))});import{jsx as Yi,jsxs as dT}from"react/jsx-runtime";var rC=({allowBarSeeking:e,segments:t,duration:n,currentTime:o,onSeek:l,seekLabel:a,progressLabel:c,classNames:i,styles:d})=>{let s=t.length>0,p=s&&Yi(nC,{segments:t,duration:n,currentTime:o,classNames:i,styles:d});if(e){let m=i?.seekSlider?.classNames;return dT("div",{role:"group","aria-label":a,className:hn("cleen-relative",i?.seekBar),style:d?.seekBar,children:[p,Yi(mn,{value:o,maxValue:n,step:.01,onChange:l,className:hn("cleen-relative cleen-flex cleen-items-center cleen-h-3.5 cleen-cursor-pointer",i?.seekSlider?.className),classNames:{...m,track:hn("!cleen-h-4",m?.track),path:hn(s?"!cleen-bg-transparent":"!cleen-bg-[rgba(255,255,255,0.3)]",m?.path),filledTrack:hn({"!cleen-bg-transparent":s},m?.filledTrack)},labels:{tooltip:()=>gr(o)},...d?.seekSlider})]})}let g=n>0?Math.min(o/n*100,100):0;return Yi("div",{role:"progressbar","aria-label":c,"aria-valuemin":0,"aria-valuemax":Math.floor(n),"aria-valuenow":Math.floor(o),className:hn("cleen-relative cleen-h-1",{"cleen-bg-[rgba(255,255,255,0.25)] cleen-rounded-full cleen-overflow-hidden":!s},i?.seekBar),style:d?.seekBar,children:p||Yi("div",{className:hn("cleen-left-0 cleen-absolute cleen-inset-y-0 cleen-bg-[#fff] cleen-rounded-full cleen-transition-[width] cleen-duration-200 cleen-ease-linear",i?.progressFill),style:{...d?.progressFill,width:`${g}%`}})})};import{cn as br}from"@cleen/ui-core";import{jsx as yr,jsxs as cC}from"react/jsx-runtime";var iC=({playbackRate:e,dispatch:t,label:n,classNames:o,styles:l})=>{let a=`${e.toFixed(2)}\xD7`,c=o?.speedPopover?.classNames,i=o?.speedBadge?.classNames;return yr(tl,{position:"top",className:o?.speedPopover?.className,classNames:{...c,popover:br("!cleen-w-56",c?.popover)},...l?.speedPopover,content:cC("div",{className:br("cleen-flex cleen-flex-col cleen-gap-2 cleen-p-3",o?.speedContent),style:l?.speedContent,children:[cC("div",{className:br("cleen-flex cleen-justify-between cleen-items-center cleen-font-semibold cleen-text-foreground cleen-text-xs",o?.speedHeader),style:l?.speedHeader,children:[yr("span",{className:o?.speedLabel,style:l?.speedLabel,children:n}),yr("span",{className:br("cleen-tabular-nums cleen-text-primary",o?.speedValue),style:l?.speedValue,children:a})]}),yr(mn,{minValue:.5,maxValue:2,step:.25,value:e,onChange:d=>t({type:"setPlaybackRate",playbackRate:d}),className:br("cleen-w-full",o?.speedSlider?.className),classNames:o?.speedSlider?.classNames,labels:{minLabel:`${.5}\xD7`,maxLabel:`${2}\xD7`},...l?.speedSlider})]}),children:yr("button",{type:"button","aria-label":n,className:o?.speedButton,style:l?.speedButton,children:yr(xe,{variant:"sleek",className:o?.speedBadge?.className,classNames:{...i,container:br(Gi,$i,i?.container)},...l?.speedBadge,children:a})})})};import{cn as sC}from"@cleen/ui-core";import{jsx as D1}from"react/jsx-runtime";var pC=({hasTracks:e,showCaptions:t,onToggle:n,labels:o,classNames:l,styles:a})=>{let c=l?.subtitlesBadge?.classNames;return D1(ye,{label:e?o.subtitles:o.noSubtitles,className:l?.subtitlesTooltip?.className,classNames:l?.subtitlesTooltip?.classNames,...a?.subtitlesTooltip,children:D1("button",{type:"button","aria-label":o.toggleSubtitles,"aria-pressed":t,disabled:!e,onClick:n,className:sC("disabled:cleen-opacity-40",l?.subtitlesButton),style:a?.subtitlesButton,children:D1(xe,{variant:"sleek",className:l?.subtitlesBadge?.className,classNames:{...c,container:sC(Gi,{[$i]:e},c?.container)},...a?.subtitlesBadge,children:o.subtitlesBadge})})})};import{jsx as gn,jsxs as uT}from"react/jsx-runtime";var dC=({muted:e,volume:t,size:n})=>e||t===0?gn(Ma,{width:n,height:n}):t<.75?gn(wa,{width:n,height:n}):gn(Sa,{width:n,height:n}),mC=({isFullscreen:e,size:t})=>e?gn(ra,{width:t,height:t}):gn(ta,{width:t,height:t}),Ir=({forward:e,seconds:t,size:n})=>uT("span",{className:"cleen-inline-flex cleen-relative cleen-justify-center cleen-items-center",children:[gn(e?ma:da,{width:n,height:n}),gn("span",{className:"cleen-absolute cleen-font-semibold cleen-tabular-nums cleen-leading-none",style:{fontSize:Math.round(n*.34)},children:t})]});import{cn as Zi}from"@cleen/ui-core";import{jsx as Qi,jsxs as fT}from"react/jsx-runtime";var uC=({muted:e,volume:t,dispatch:n,labels:o,classNames:l,styles:a})=>fT("div",{className:Zi("cleen-group/volume cleen-flex cleen-items-center cleen-gap-2",l?.volume),style:a?.volume,children:[Qi(fn,{label:e?o.unmute:o.mute,active:e,onClick:()=>n({type:"toggleMuted"}),className:Zi(l?.controlButton,l?.muteButton),style:{...a?.controlButton,...a?.muteButton},children:Qi(dC,{muted:e,volume:t,size:24})}),Qi("div",{role:"group","aria-label":o.volume,className:Zi("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:Qi(mn,{minValue:0,maxValue:1,step:.05,value:e?0:t,onChange:c=>n({type:"setVolume",volume:c,muted:c===0}),className:Zi("cleen-w-full",l?.volumeSlider?.className),classNames:l?.volumeSlider?.classNames,tooltip:{isDisabled:!0},...a?.volumeSlider})})]});import{jsx as Ue,jsxs as ji}from"react/jsx-runtime";var fC=({state:e,dispatch:t,isShown:n,allowBarSeeking:o,segments:l,seekStep:a,hasTracks:c,visible:i,hidden:d,controlsOnHover:s,onSeek:p,onSeekBy:g,onTogglePlay:m,onToggleFullscreen:y,labels:v,classNames:h,styles:b})=>{let{playing:x,currentTime:C,duration:I,muted:P,volume:k,playbackRate:E,showCaptions:N,isFullscreen:M}=e,L=S=>({className:hl(h?.controlButton,h?.[S]),style:{...b?.controlButton,...b?.[S]}});return ji("div",{className:hl("cleen-right-0 cleen-bottom-0 cleen-left-0 cleen-absolute cleen-flex cleen-flex-col cleen-gap-2.5 cleen-bg-gradient-to-t cleen-from-[rgba(0,0,0,0.5)] cleen-to-transparent cleen-px-4 cleen-pt-2.5 cleen-pb-4 cleen-transition-opacity cleen-duration-300",i?s?"cleen-opacity-0 group-hover:cleen-opacity-100":"cleen-opacity-100":"cleen-opacity-0 cleen-pointer-events-none",{"cleen-hidden":d},h?.controls),style:b?.controls,children:[n("seekbar")&&Ue(rC,{allowBarSeeking:o,segments:l,duration:I,currentTime:C,onSeek:p,seekLabel:v.seek,progressLabel:v.progress,classNames:h,styles:b}),ji("div",{className:hl("cleen-flex cleen-items-center cleen-gap-2.5 sm:cleen-gap-3.5",vr,h?.controlsRow),style:b?.controlsRow,children:[n("play")&&Ue(fn,{label:x?v.pause:v.play,onClick:m,...L("playButton"),children:x?Ue(ft,{width:24,height:24}):Ue(ht,{width:24,height:24})}),n("backward")&&Ue(fn,{label:v.seekBackward(a),onClick:()=>g(-a),...L("backwardButton"),children:Ue(Ir,{seconds:a,size:24})}),n("forward")&&Ue(fn,{label:v.seekForward(a),onClick:()=>g(a),...L("forwardButton"),children:Ue(Ir,{forward:!0,seconds:a,size:24})}),n("volume")&&Ue(uC,{muted:P,volume:k,dispatch:t,labels:v,classNames:h,styles:b}),n("time")&&ji("span",{className:hl("cleen-font-semibold cleen-tabular-nums cleen-text-[13px] cleen-whitespace-nowrap",h?.time),style:b?.time,children:[Ue("span",{className:h?.currentTime,style:b?.currentTime,children:gr(C)})," ",ji("span",{className:hl("cleen-font-medium",oC,h?.duration),style:b?.duration,children:["/ ",gr(I)]})]}),Ue("span",{className:"cleen-flex-1"}),n("speed")&&Ue(iC,{playbackRate:E,dispatch:t,label:v.playbackSpeed,classNames:h,styles:b}),n("subtitles")&&Ue(pC,{hasTracks:c,showCaptions:N,onToggle:()=>t({type:"toggleCaptions"}),labels:v,classNames:h,styles:b}),n("fullscreen")&&Ue(fn,{label:M?v.exitFullscreen:v.fullscreen,active:M,onClick:y,...L("fullscreenButton"),children:Ue(mC,{isFullscreen:M,size:24})})]})]})};import{cn as hC}from"@cleen/ui-core";import{cn as hT}from"@cleen/ui-core";import{jsx as gT}from"react/jsx-runtime";var F1=({label:e,onClick:t,className:n,style:o,children:l})=>gT("button",{type:"button","aria-label":e,onClick:t,className:hT("cleen-inline-flex cleen-justify-center cleen-items-center cleen-rounded-full cleen-size-12 cleen-transition-colors",Wi,qi,vr,n),style:o,children:l});import{jsx as vn,jsxs as vT}from"react/jsx-runtime";var gC=({playing:e,seekStep:t,visible:n,hidden:o,controlsOnHover:l,isShown:a,onTogglePlay:c,onSeekBy:i,labels:d,classNames:s,styles:p})=>vT("div",{className:hC("cleen-relative cleen-flex cleen-items-center cleen-gap-6 cleen-transition-opacity cleen-duration-300",n?l?"cleen-opacity-0 group-hover:cleen-opacity-100":"cleen-opacity-100":"cleen-opacity-0 cleen-pointer-events-none",{"cleen-hidden":o},s?.overlay),style:p?.overlay,children:[a("backward")&&vn(F1,{label:d.seekBackward(t),onClick:()=>i(-t),className:s?.overlayButton,style:p?.overlayButton,children:vn(Ir,{seconds:t,size:26})}),a("play")&&vn("button",{type:"button","aria-label":e?d.pause:d.play,onClick:c,className:hC("cleen-inline-flex cleen-relative cleen-justify-center cleen-items-center cleen-rounded-full cleen-size-[72px] cleen-transition-colors",Wi,qi,vr,s?.overlayPlayButton),style:p?.overlayPlayButton,children:e?vn(ft,{width:28,height:28}):vn(ht,{width:28,height:28})}),a("forward")&&vn(F1,{label:d.seekForward(t),onClick:()=>i(t),className:s?.overlayButton,style:p?.overlayButton,children:vn(Ir,{forward:!0,seconds:t,size:26})})]});import{cn as A1}from"@cleen/ui-core";import{jsx as vC,jsxs as bT}from"react/jsx-runtime";var bC=({label:e,subLabel:t,classNames:n,styles:o})=>bT("div",{className:A1("cleen-absolute cleen-inset-0 cleen-flex cleen-flex-col cleen-justify-center cleen-items-center cleen-gap-1 cleen-pointer-events-none cleen-text-center",n?.placeholder),style:o?.placeholder,children:[vC("span",{className:A1("cleen-font-semibold cleen-text-[13px] cleen-text-[rgba(255,255,255,0.5)]",n?.placeholderLabel),style:o?.placeholderLabel,children:e}),t&&vC("span",{className:A1("cleen-text-[rgba(255,255,255,0.3)] cleen-text-xs",n?.placeholderSubLabel),style:o?.placeholderSubLabel,children:t})]});import{useEffect as yT}from"react";var yC=(e,t,n)=>{yT(()=>{let o=e.current?.textTracks;if(o)for(let l of Array.from(o))l.kind!=="metadata"&&(l.mode=t?"showing":"hidden")},[t,n,e])};import{useCallback as O1,useEffect as CT,useRef as xT}from"react";var IC=(e,t,n)=>{let o=xT(void 0),l=O1(()=>{clearTimeout(o.current),o.current=setTimeout(()=>n({type:"setControlsActive",controlsActive:!1}),2500)},[n]),a=O1(()=>{n({type:"setControlsActive",controlsActive:!0}),l()},[n,l]),c=O1(()=>{e&&(clearTimeout(o.current),n({type:"setControlsActive",controlsActive:!1}))},[n,e]);return CT(()=>{if(!e){clearTimeout(o.current),n({type:"setControlsActive",controlsActive:!0});return}return l(),()=>clearTimeout(o.current)},[n,e,l]),{controlsVisible:!e||t,revealControls:a,hideControls:c}};import{useCallback as PT,useEffect as ST}from"react";var CC=(e,t,n)=>(ST(()=>{let o=()=>n({type:"setFullscreen",isFullscreen:document.fullscreenElement===e.current});return document.addEventListener("fullscreenchange",o),()=>document.removeEventListener("fullscreenchange",o)},[e,n]),PT(()=>{let o=e.current;!o||!t||(document.fullscreenElement?document.exitFullscreen():o.requestFullscreen?.())},[e,t]));import{useCallback as wT}from"react";var PC=({volume:e,canSeekBackward:t,canSeekForward:n,canUseVolume:o,canUseCaptions:l,dispatch:a,seekBy:c,togglePlay:i,toggleFullscreen:d,restart:s})=>wT(p=>{let g=(y,v=!0)=>{v&&(p.preventDefault(),y())},m=y=>a({type:"setVolume",volume:y,muted:!1});switch(p.key){case"ArrowLeft":return g(()=>c(-5),t);case"ArrowRight":return g(()=>c(5),n);case"ArrowUp":return g(()=>m(Math.min(e+.05,1)),o);case"ArrowDown":return g(()=>m(Math.max(e-.05,0)),o);case"f":return g(d);case"m":return g(()=>a({type:"toggleMuted"}),o);case"r":return g(s);case"c":return g(()=>{l&&a({type:"toggleCaptions"})});case" ":return g(i);default:return}},[t,n,l,o,a,s,c,d,i,e]);import{useCallback as _1,useEffect as MT,useRef as kT}from"react";var SC=(e,t,n,o)=>{let l=kT(0);MT(()=>{l.current=0},[n]);let a=_1(d=>{let s=e.current;if(!s||!Number.isFinite(s.duration))return;o();let p=t?s.duration:Math.min(Math.max(l.current,s.currentTime),s.duration);s.currentTime=Math.min(Math.max(d,0),p)},[t,o,e]),c=_1(d=>a((e.current?.currentTime??0)+d),[a,e]),i=_1(d=>{let s=e.current;!s||!Number.isFinite(s.duration)||(o(),s.currentTime=Math.min(Math.max(d,0),s.duration))},[o,e]);return{seekTo:a,seekBy:c,jumpTo:i,watchedTimeRef:l}};import{useCallback as wC,useRef as TT}from"react";var MC=(e,t)=>{let n=TT({seconds:e,src:null,attempts:0,done:!1}),o=wC(a=>{let c=n.current;if(!a?.src||c.done||(c.src===null&&(c.src=a.src),c.src!==a.src))return;let{seconds:i}=c,d=Number.isFinite(a.duration);if(i===void 0||!Number.isFinite(i)||i<=0||d&&i>a.duration){c.done=!0;return}d&&(c.attempts+=1,Math.abs(a.currentTime-i)>.5?a.currentTime=i:c.done=!0,c.attempts>=5&&(c.done=!0),t({type:"seek",currentTime:i}))},[t]),l=wC(()=>{n.current.done=!0},[]);return{applyStartTime:o,cancelStartTime:l}};var kC=(e,t)=>{switch(t.type){case"play":return{...e,playing:!0};case"pause":return{...e,playing:!1};case"togglePlay":return{...e,playing:!e.playing};case"seek":case"timeUpdate":return{...e,currentTime:t.currentTime};case"durationChange":return{...e,duration:t.duration};case"loaded":return{...e,duration:t.duration,isLoading:!1};case"buffering":return{...e,isLoading:!0};case"ready":return{...e,isLoading:!1};case"setVolume":return{...e,volume:t.volume,muted:t.muted};case"toggleMuted":return{...e,muted:!e.muted};case"setPlaybackRate":return{...e,playbackRate:t.playbackRate};case"toggleCaptions":return{...e,showCaptions:!e.showCaptions};case"setFullscreen":return{...e,isFullscreen:t.isFullscreen};case"setControlsActive":return{...e,controlsActive:t.controlsActive};default:return e}};import{jsx as bn,jsxs as RC}from"react/jsx-runtime";var FT=[],TC=[],AT=LT(function({src:t,tracks:n=FT,startTime:o,allowBarSeeking:l=!0,allowSeekingPastWatched:a=!0,segments:c,hiddenControls:i=TC,hiddenOverlayControls:d=TC,controlsOnHover:s=!1,seekStep:p=10,engine:g=R1,labels:m,onTimeChange:y,onDurationChange:v,onPause:h,onEnded:b,className:x,classNames:C,style:I,styles:P,...k},E){let N=NC(null),M=NC(null),[L,S]=DT(kC,tC),{playing:w,duration:T,muted:F,volume:R,playbackRate:B,isLoading:V,isFullscreen:D}=L,A=BC(()=>({...B1,...m}),[m]),O=n.some(se=>se.kind!=="metadata"),z=se=>!i.includes(se),U=se=>!d.includes(se),W=z("volume"),q=z("fullscreen"),H=O&&z("subtitles"),$=z("backward")||U("backward"),Q=z("forward")||U("forward"),{applyStartTime:_,cancelStartTime:Z}=MC(o,S),{seekTo:pe,seekBy:he,jumpTo:be,watchedTimeRef:Ne}=SC(M,a,t,Z),{controlsVisible:_e,revealControls:j,hideControls:ie}=IC(w,L.controlsActive,S),Ge=CC(N,q,S);yC(M,L.showCaptions,t),ET(E,()=>({getMediaElement:()=>M.current,play:()=>S({type:"play"}),pause:()=>S({type:"pause"}),jumpTo:be}),[be]);let ze=pt(()=>S({type:"togglePlay"}),[]),Te=pt(()=>{pe(0),S({type:"play"})},[pe]),dt=PC({volume:R,canSeekBackward:$,canSeekForward:Q,canUseVolume:W,canUseCaptions:H,dispatch:S,seekBy:he,togglePlay:ze,toggleFullscreen:Ge,restart:Te}),Qe=pt(()=>S({type:"play"}),[]),K=pt(()=>{S({type:"pause"}),h?.()},[h]),Se=pt(se=>{Ne.current=se.currentTarget.duration,S({type:"pause"}),b?.()},[b,Ne]),Re=pt(se=>{let In=se.currentTarget,ue=In.currentTime;if(ue-Ne.current<=3)Ne.current=Math.max(Ne.current,ue);else if(!a){In.currentTime=Ne.current;return}S({type:"timeUpdate",currentTime:ue}),y?.(ue)},[a,y,Ne]),we=pt(se=>{S({type:"loaded",duration:se.currentTarget.duration}),_(se.currentTarget)},[_]),$e=pt(se=>_(se.currentTarget),[_]),et=pt(se=>{S({type:"ready"}),_(se.currentTarget)},[_]),Cr=pt(se=>{S({type:"durationChange",duration:se.currentTarget.duration}),_(se.currentTarget),v?.(se)},[_,v]),yn=pt(()=>S({type:"buffering"}),[]),oe=pt(()=>S({type:"ready"}),[]),G=!!t&&V,J=!t||!V&&(!Number.isFinite(T)||T===0),ce=J||G,Le=BC(()=>L1(c,T),[c,T]);return bn("div",{className:gl("cleen",x),style:I,children:RC("div",{ref:N,className:gl("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":!_e,"focus-visible:cleen-ring-0":D},C?.container),style:P?.container,onMouseMove:j,onMouseLeave:ie,onDoubleClick:Ge,onKeyDown:dt,tabIndex:0,children:[RC("div",{className:gl("cleen-relative cleen-flex cleen-justify-center cleen-items-center",D?"cleen-h-full":"cleen-aspect-video",C?.viewport),style:P?.viewport,children:[bn(g,{...k,ref:M,src:t||void 0,controls:!1,playing:w,muted:F,volume:R,playbackRate:B,playsInline:!0,className:gl("cleen-absolute cleen-inset-0 !cleen-w-full !cleen-h-full cleen-object-contain",C?.video),style:P?.video,onClick:ze,onPlay:Qe,onPause:K,onEnded:Se,onTimeUpdate:Re,onLoadedMetadata:we,onLoadedData:$e,onCanPlay:et,onSeeked:$e,onDurationChange:Cr,onWaiting:yn,onError:oe,crossOrigin:"anonymous",children:n.map(se=>bn("track",{kind:se.kind??"subtitles",src:se.src,srcLang:se.srcLang,label:se.label},se.src))}),J&&bn(bC,{label:A.placeholder,subLabel:A.placeholderSubLabel,classNames:C,styles:P}),G&&bn(re,{size:"xl",className:gl("cleen-absolute",C?.loader?.className),classNames:C?.loader?.classNames,...P?.loader}),bn(gC,{playing:w,seekStep:p,visible:_e,hidden:ce,controlsOnHover:s,isShown:U,onTogglePlay:ze,onSeekBy:he,labels:A,classNames:C,styles:P})]}),bn(fC,{state:L,dispatch:S,isShown:z,allowBarSeeking:l,segments:Le,seekStep:p,hasTracks:O,visible:_e,hidden:ce,controlsOnHover:s,onSeek:pe,onSeekBy:he,onTogglePlay:ze,onToggleFullscreen:Ge,labels:A,classNames:C,styles:P})]})})});export{zC as AdvancedProgressBar,oM as AudioPlayback,sM as AudioRecorder,_c as Avatar,fM as AvatarRow,vM as Breadcrumb,ee as Button,Jh as Calendar,TM as CalendarDropdown,Z5 as CanvasButton,fe as Card,g5 as CardIcon,C5 as CardMedia,AM as Carousel,$a as Checkbox,XM as CheckboxGroup,Ce as CleenIcon,YB as CleenNotificationContainer,nb as Collapsible,e3 as ColorPicker,a3 as CreditCardInput,Ja as DEFAULT_NOTIFICATION_CATEGORIES,ja as DEFAULT_NOTIFICATION_LABELS,B1 as DEFAULT_VIDEO_PLAYER_LABELS,gt as Divider,o0 as Drawer,TI as DrawerContainer,JN as DrawerContentTitle,Ga as Dropdown,z3 as Dropzone,q5 as EditableCard,Oh as EditableText,Vh as EditableTextArea,q3 as FileCard,d0 as FileStackedProgressTracker,Ek as FilterDrawer,yy as FormGroup,$k as GroupSelector,fs as Icon48AlertFeatured,hs as Icon48SuccessFeatured,To as IconAlertCircle,vs as IconAlertOctagon,ys as IconAlertTriangle,Is as IconApps,xs as IconArchive,Ps as IconArrowBarDown,Ss as IconArrowBarLeft,ws as IconArrowBarRight,Ms as IconArrowBarToDown,ks as IconArrowBarToLeft,Bs as IconArrowBarToRight,Ns as IconArrowBarToUp,Ts as IconArrowBarUp,Ls as IconArrowDown,Es as IconArrowDownLeft,Fs as IconArrowDownNarrow,As as IconArrowDownRight,_s as IconArrowLeft,Vs as IconArrowLeftNarrow,Us as IconArrowRight,$s as IconArrowRightNarrow,qs as IconArrowUp,Xs as IconArrowUpLeft,Ys as IconArrowUpNarrow,Zs as IconArrowUpRight,Qs as IconAttachment,Js as IconBarChart,js as IconBarChartSquare,ep as IconBell,tp as IconBold,cp as IconBookOpen,op as IconBookmark,cs as IconBookmarkCheck,is as IconBookmarkCheckFill,np as IconBookmarkFill,rp as IconBookmarkMinus,ps as IconBookmarkPlus,lp as IconBookmarkX,ip as IconBoxLines,pp as IconBoxText,mp as IconBracketsCheck,up as IconBracketsEllipses,fp as IconBrickWall,hp as IconBriefcase,ds as IconBuilding,gp as IconCalculator,Lr as IconCalendar,vp as IconCertificate,Ft as IconCheck,Ro as IconCheckCircle,bp as IconCheckCircleBroken,yp as IconCheckFill,Ip as IconCheckVerified,Cp as IconCheckVerifiedFill,Er as IconChevronDown,xp as IconChevronDownDouble,Pp as IconChevronDownLeft,Sp as IconChevronDownLeftDouble,wp as IconChevronDownRight,Mp as IconChevronDownRightDouble,At as IconChevronLeft,kp as IconChevronLeftDouble,mt as IconChevronRight,Dr as IconChevronRightDouble,Bp as IconChevronSelectorVertical,Ot as IconChevronUp,Np as IconChevronUpDouble,Tp as IconChevronUpLeft,Rp as IconChevronUpLeftDouble,Lp as IconChevronUpRight,Ep as IconChevronUpRightDouble,Dp as IconClick,Fp as IconClock,Ap as IconClockFastForward,_p as IconClockPlay,zp as IconClockRewind,Vp as IconClone,Up as IconCode,Gp as IconCodeBrowser,Wp as IconCodeCircle,Xp as IconColors,ms as IconColumnEdit,Kp as IconCopy,Yp as IconCopy2,Qp as IconCopyCheck,Jp as IconCreditCard,jp as IconCube,ed as IconCubeOutline,Ar as IconCursorBox,td as IconDataflow,od as IconDataflow2,nd as IconDataflow3,ad as IconDistributeHorizontal,ld as IconDollar,id as IconDollarCircle,sd as IconDot,pd as IconDotFill,dd as IconDotsGrid,ud as IconDotsHorizontal,Bn as IconDotsVertical,gd as IconDownload,vd as IconEdit,yd as IconEditable,Id as IconExpand,xd as IconExternalLink,Sd as IconExternalLink2,wd as IconEye,kd as IconEyeHidden,Bd as IconEyeHidden2,Nd as IconFaceAngry,Td as IconFaceLaugh,Rd as IconFaceSmile,Eo as IconFile,Ed as IconFileCheck,Vr as IconFileCsv,Dd as IconFileDownload,Hr as IconFileJson,Fd as IconFileList,nt as IconFileMusic,Do as IconFilePdf,Gr as IconFileSpreadsheet,zt as IconFileText,_d as IconFileUpload,Wr as IconFileXls,qr as IconFileXlsx,yt as IconFileZip,Od as IconFiles,zd as IconFilter,Xr as IconFilter2,Hd as IconFlag,Ud as IconFlag2,Gd as IconFlagFill,$d as IconFocus,Wd as IconFolder,qd as IconFolderExport,Xd as IconFolderImport,Kd as IconGraduationCap,Yd as IconGripVertical,Zd as IconHand,Qd as IconHandShield,Jd as IconHash,jd as IconHeadsetMic,em as IconHeart,tm as IconHeartFill,nm as IconHouse,Yr as IconHouseLine,Ae as IconImage,rm as IconImage2,am as IconImageCheck,lm as IconImageOff,cm as IconImport,im as IconInbox,pm as IconInfoCircle,mm as IconInfoHexagon,fm as IconItalic,gm as IconLayersMultiple,vm as IconLayersSingle,bm as IconLayout,Im as IconLayout2,Cm as IconLayoutColumns,xm as IconLayoutCustom,Sm as IconLayoutStuffed,wm as IconLayoutTile,Mm as IconLifeBuoy,Bm as IconLightbulb,Nm as IconLightning,Tm as IconLightningFast,Rm as IconLineChart,Lm as IconLineChartBar,Em as IconLineChartBreakoutSquare,Fm as IconLineChartUp,Am as IconLines,Om as IconLinesCheck,_m as IconLinesPlay,Vm as IconLink,Hm as IconLink2,Um as IconLinkOff,Gm as IconListBullet,$m as IconListOrder,qm as IconLock,Xm as IconLockFill,Ym as IconLogIn,Qm as IconLogOut,jm as IconLogOut2,eu as IconMagicWand,tu as IconMail,ou as IconMailOpen,nu as IconMapPin,ta as IconMaximize,ru as IconMaximize2,au as IconMessageCircle,cu as IconMessageSquare,iu as IconMessageSquare2,su as IconMessageXSquare,na as IconMicrophone,ra as IconMinimize,pu as IconMinimize2,du as IconMinusCircle,uu as IconMobile,fu as IconMonitor,hu as IconMonitor2,gu as IconMoon,vu as IconMoonCircle,ut as IconMovie,It as IconName,bu as IconNavigationPointer,yu as IconNotificationBox,Mu as IconPCSetup,Iu as IconPackage,Cu as IconPalette,xu as IconPasscodeLock,ft as IconPause,Su as IconPauseCircle,Bu as IconPen,Nu as IconPercentageCircle,Tu as IconPerspective,Lu as IconPhoneCall,ia as IconPin,ht as IconPlay,Du as IconPlayCircle,sa as IconPlus,so as IconPlusCircle,Ou as IconPrinter,_u as IconPulse,pa as IconQuestionCircle,Vu as IconQuote,Hu as IconRadioButton,Uu as IconRadioButtonFill,Gu as IconReceipt,$u as IconReceiptCheck,Wu as IconRedo,da as IconRefresh,qu as IconRefresh2,Xu as IconRefresh3,Ku as IconRepeat,Yu as IconReplace,ma as IconReplay,Qu as IconRestore,ju as IconRocket,ef as IconRoundChart,tf as IconRoundChart2,nf as IconRoute,af as IconSave,lf as IconScanDots,ua as IconScissors,Vt as IconSearch,cf as IconSend,sf as IconServer,pf as IconSettings,df as IconSettings2,mf as IconShare,uf as IconShieldLightning,hf as IconShieldPlus,vf as IconShieldRemove,bf as IconShoppingBag,yf as IconShoppingCart,If as IconShrink,Cf as IconShuffle,xf as IconSkipForward,Pf as IconSlashCircle,Sf as IconSlashOctagon,wf as IconSocialAndroid,Mf as IconSocialApple,kf as IconSocialGithub,Bf as IconSocialGlobe,Nf as IconSocialGoogle,Rf as IconSocialInstagram,Lf as IconSocialLinkedin,Df as IconSocialMastercard,Ff as IconSocialReact,Af as IconSocialVisa,Of as IconSocialX,_f as IconSpeedometer,zf as IconStairs,ba as IconStar,Vf as IconStarFill,Hf as IconStarHalf,Uf as IconStars,ya as IconStop,Gf as IconStrikethrough,$f as IconSun,Wf as IconSwap,qf as IconSwitchHorizontal,Kf as IconTable,Ia as IconTag,Yf as IconTarget,Qf as IconTarget2,jf as IconTextFormat,eh as IconTextFormat2,th as IconTextHighlight,oh as IconThumbsDown,nh as IconThumbsUp,rh as IconThumbsUpFill,ah as IconToggle,lh as IconTranslate,rt as IconTrash,ch as IconTrending,ih as IconUnderline,sh as IconUndo,dh as IconUnlock,Oo as IconUploadCloud,xa as IconUser,fh as IconUserCheck,hh as IconUserDollar,vh as IconUserEdit,bh as IconUserPlus,yh as IconUserRight,xh as IconUserSquare,us as IconUserVoice,Ih as IconUsers,Ph as IconUsersUp,Sh as IconVideo,Mh as IconVideoChat,Sa as IconVolume,wa as IconVolumeDown,Ma as IconVolumeMute,Bh as IconWrench,Ve as IconX,Nh as IconXCircle,Th as IconXCircleFill,Rh as IconXSquare,Lh as IconZoomIn,Dh as IconZoomOut,ne as InfoLabels,ge as Input,ae as Label,re as Loader,jk as Lookup,rB as Markdown,jn as Menu,uB as Modal,tr as NOTIFICATION_GENERAL_CATEGORY,nT as NativeVideoEngine,iN as Pagination,W0 as PaginationGoToPage,q0 as PaginationPageSize,xe as PillBadge,tl as Popover,Jn as ProgressBar,uI as ProgressCircle,PN as RadioBoxGroup,RN as RadioButtonGroup,AN as Rating,R1 as ReactPlayerEngine,qN as Select,LI as Sidebar,ll as SidebarItem,i6 as Skeleton,j0 as SkeletonAvatar,t1 as SkeletonBadge,o1 as SkeletonBanner,r1 as SkeletonButton,cl as SkeletonCard,Di as SkeletonCard2,a1 as SkeletonCard3,c1 as SkeletonCardStack,i1 as SkeletonChart,s1 as SkeletonContentCard,p1 as SkeletonDataGrid,d1 as SkeletonForm,u1 as SkeletonGlowingCard,f1 as SkeletonImage,h1 as SkeletonInfoCard,b1 as SkeletonInput,y1 as SkeletonList,x1 as SkeletonParagraph,P1 as SkeletonText,S1 as SkeletonVideo,Vi as SkeletonWidgetCard,A6 as SkeletonWrapper,mn as Slider,U6 as SliderRange,s0 as StackedProgressTracker,r0 as StackedProgressTrackerRow,a0 as StackedProgressTrackerStatusFilter,W6 as StarRating,JI as Stepper,M0 as Switch,Ka as TRACKER_STATUS_FILTER_ORDER,S0 as Tabs,Z6 as TagFilter,zh as TextArea,ye as Tooltip,qa as TrackerItemStatus,Xa as TrackerStatusFilter,N1 as VIDEO_PLAYER_SEEK_STEP_DEFAULT,AT as VideoPlayer,fl as VideoPlayerControl,Oy as createNotificationStore,gr as formatTime,Fh as getFileIcon,iT as getVideoSegmentIndex,E1 as getVideoSegmentProgress,L1 as getVideoSegments,D0 as groupLayout,F0 as listLayout,tn as notification,le as notificationStore,jh as parseRgbaString,_y as showNotification,A0 as stackLayout,yB as useNotifications};
|
|
1
|
+
import{cn as No,useAnimateNumber as zC}from"@cleen/ui-core";import{forwardRef as VC,useMemo as q1}from"react";import{cn as bl,usePositionClose as DC,ZIndex as FC}from"@cleen/ui-core";import{useEffect as V1,useRef as ts,useState as H1}from"react";import{createPortal as AC}from"react-dom";import{jsx as os,jsxs as U1}from"react/jsx-runtime";var ye=({bg:e,label:t,color:n,closeOnClick:o=!0,hideOnMouseDown:l=!0,isOpen:a,children:c,hasArrow:i,placement:d="top",offset:s=8,className:p,classNames:g,isDisabled:m,openDelay:y=0,invertColors:v=!1,extraUpdateTriggers:h,allowNonDescendantHover:b=!0,zIndex:C=FC.TOOLTIP,style:x,styles:I,onClick:P,onMouseEnter:B,onMouseLeave:E,...T})=>{let[M,L]=H1(a??!1),[w,S]=H1(!1),N=ts(null),F=ts(null),R=ts(null),{positionStyles:k,isMounted:z,optimalPosition:D}=DC({triggerRef:F,targetRef:N,position:d,isOpen:M&&!m,offset:s,extraUpdateTriggers:h});V1(()=>{L(a??!1)},[a]);let A=V=>{P?.(V),o&&L(!1)},O=(V,U)=>{if(a!==void 0)return;let W=F.current?.contains(V.target);!b&&!W||(U?(B?.(V),y&&y>0?R.current=setTimeout(()=>{L(!0)},y):L(!0)):(R.current&&(clearTimeout(R.current),R.current=null),L(!1),E?.(V)))};return V1(()=>{let V=()=>{l&&S(!0)},U=()=>{S(!1)};return document.addEventListener("mousedown",V),document.addEventListener("mouseup",U),()=>{document.removeEventListener("mousedown",V),document.removeEventListener("mouseup",U)}},[]),U1("div",{className:bl("cleen",p),style:x,children:[os("div",{ref:F,className:bl("cleen-relative cleen-max-w-fit",g?.container),style:I?.container,onClick:A,onMouseEnter:V=>O(V,!0),onMouseLeave:V=>O(V,!1),...T,children:c}),t!==void 0&&M&&!m&&!w&&AC(os("div",{className:"cleen",children:U1("div",{ref:N,className:bl("cleen-shadow cleen-px-2 cleen-py-0.5 cleen-rounded-md cleen-text-sm cleen-transition-opacity cleen-duration-200 cleen-pointer-events-none","cleen-absolute",v?"cleen-bg-primary after:cleen-border-primary cleen-text-primary-foreground":"cleen-bg-surface after:cleen-border-surface cleen-text-primary",{"cleen-opacity-0":!z,"cleen-opacity-100":z},g?.labelContainer),style:{zIndex:C,top:`${k.top}px`,left:`${k.left}px`,...e&&{backgroundColor:e},...n&&{color:n},...I?.labelContainer},children:[t,os("div",{className:bl(i?["cleen-absolute cleen-border-[6px] cleen-border-surface",{"cleen-border-b-transparent cleen-border-x-transparent cleen-top-full cleen-drop-shadow-[0_1px_0.5px_rgba(var(--cleen-black),0.1)]":D==="top"||D==="top-left"||D==="top-right","cleen-left-[calc(50%-6px)]":D==="top"||D==="bottom","cleen-left-[6px]":D==="top-left"||D==="bottom-left","cleen-right-[6px]":D==="top-right"||D==="bottom-right","cleen-border-t-transparent cleen-border-x-transparent cleen-bottom-full cleen-drop-shadow-[0_-0.5px_0.5px_rgba(var(--cleen-black),0.1)]":D==="bottom"||D==="bottom-left"||D==="bottom-right","cleen-border-y-transparent cleen-border-r-transparent cleen-left-full cleen-top-[calc(50%-6px)] cleen-drop-shadow-[1px_0_0.5px_rgba(var(--cleen-black),0.1)]":D==="left","cleen-border-y-transparent cleen-border-l-transparent cleen-right-full cleen-top-[calc(50%-6px)] cleen-drop-shadow-[-0.25px_0_0.5px_rgba(var(--cleen-black),0.1)]":D==="right"}]:"cleen-hidden"),style:{}})]})}),document.body)]})};import{cn as Pr}from"@cleen/ui-core";var Lt=e=>Math.max(0,Math.min(100,Number.isFinite(e)?e:0)),Et=(e,t,n)=>{let o=Number.isFinite(t)?t:0,l=Number.isFinite(n)?n:100;return l===o?0:(e-o)/(l-o)*100};import{cn as yl}from"@cleen/ui-core";import{jsx as ns}from"react/jsx-runtime";var Il=({serie:e,minValue:t,maxValue:n,color:o,trackHeight:l,className:a,style:c})=>{if(e.type!=="clamp")return null;let i=typeof e.value=="number"?e.value:0,d=Number.isFinite(i)?i:t,s=Lt(Et(d,t,n)),p=Math.max(2,e?.height??l*1.5),g={left:`${s}%`,top:"50%"};return e.tooltip?ns(ye,{invertColors:!0,...e.tooltip,className:yl("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:yl("cleen-z-10",e.tooltip.classNames?.labelContainer)},children:ns("div",{className:yl("cleen-rounded-full",a),style:{width:p,height:p,backgroundColor:o,...c}})}):ns("div",{className:yl("cleen-absolute cleen-rounded-full -cleen-translate-x-1/2 -cleen-translate-y-1/2 cleen-pointer-events-none",a),style:{width:p,height:p,backgroundColor:o,...g,...c}})};import{jsx as Cl}from"react/jsx-runtime";var G1=({serie:e,minValue:t,maxValue:n,animatedGlobal:o=t,renderAnimated:l,color:a,trackHeight:c,trackRadius:i,className:d,style:s})=>{if(e.type!=="bar")return null;let p=typeof e.start=="number"?e.start:t,g=typeof e.end=="number"?e.end:n,m=Lt(Et(p,t,n)),y=Lt(Et(g,t,n));y<m&&([m,y]=[y,m]);let v=Math.max(0,l?o-m:y-m);if(v<1&&!l||l&&o>=y&&v===0)return Cl(Il,{serie:{...e,type:"clamp",value:m},color:a,trackHeight:c,minValue:t,maxValue:n,className:d,style:s});let h={left:`${m}%`,top:e?.height?(c-e.height)/2:0,width:`${v}%`,height:e?.height??"100%"},b={width:"100%",height:"100%"},C={background:a,borderRadius:e?.radius??i??(e?.height??c)/2};return e.tooltip?Cl(ye,{invertColors:!0,...e.tooltip,className:Pr("cleen-absolute",e.tooltip.className),style:{...h,...e.tooltip.style},classNames:{...e.tooltip.classNames,container:Pr("cleen-size-full !cleen-max-w-none",e.tooltip.classNames?.container),labelContainer:Pr("cleen-z-10",e.tooltip.classNames?.labelContainer)},styles:{...e.tooltip.styles,container:{width:"100%",maxWidth:"none",height:"100%",...e.tooltip.styles?.container}},children:Cl("div",{className:Pr("cleen-relative cleen-size-full",d),style:{...C,...b,...s}})}):Cl("div",{className:Pr("cleen-absolute cleen-pointer-events-none",d),style:{...C,...h,...s}})};import{cn as OC}from"@cleen/ui-core";import{jsx as _C}from"react/jsx-runtime";var $1=({serie:e,minValue:t,maxValue:n,className:o,style:l})=>{let a=0;if(e.type==="clamp"){let c=typeof e.value=="number"?e.value:0,i=Number.isFinite(c)?c:t;a=Lt(Et(i,t,n))}else{let c=typeof e.start=="number"?e.start:t,i=typeof e.end=="number"?e.end:n,d=Lt(Et(c,t,n)),s=Lt(Et(i,t,n));a=(d+s)/2}return _C("div",{className:OC("cleen-absolute -cleen-translate-x-1/2 cleen-whitespace-nowrap",o),style:{left:`${a}%`,...l},children:e.label})};var W1={color:"rgb(var(--cleen-neutral-200))",height:8};import{jsx as Cn,jsxs as X1}from"react/jsx-runtime";var HC=VC(function({series:t=[],track:n,renderAnimated:o,renderAnimatedDuration:l=1e3,className:a,classNames:c,style:i,styles:d,minValue:s=0,maxValue:p=100,...g},m){let y=q1(()=>({...W1,...n}),[n]),v=q1(()=>t.reduce((x,I)=>{if(I.type==="bar"){let P=typeof I.end=="number"?I.end:p,B=Math.max(s,Math.min(P,p));if(B>x)return B}return x},0),[t,s,p]),h=zC({targetNumber:v,defaultNumber:s,duration:l,disabled:!o}),{bars:b,clamps:C}=t.reduce((x,I,P)=>{if(I==null||!I.type)return x;let B=I.color??"var(--cleen-primary)";switch(I.type){case"clamp":x.clamps.push(Cn(Il,{serie:I,color:B,trackHeight:y.height,minValue:s,maxValue:p,className:No(c?.clamp,I.className),style:{...d?.clamp,...I.style}},`clamp-${P}`));break;case"bar":x.bars.push(Cn(G1,{serie:I,color:B,trackHeight:y.height,trackRadius:y.radius,minValue:s,maxValue:p,renderAnimated:o,animatedGlobal:h,className:No(c?.bar,I.className),style:{...d?.bar,...I.style}},`bar-${P}`));break;default:break}return x},{clamps:[],bars:[]});return Cn("div",{className:No("cleen",a),style:i,ref:m,...g,children:X1("div",{className:No("cleen-relative cleen-w-full",c?.container),style:d?.container,children:[X1("div",{className:No("cleen-relative cleen-size-full",c?.trackWrapper),style:d?.trackWrapper,children:[Cn("div",{className:No("cleen-relative cleen-w-full",c?.track),style:{height:y.height,backgroundColor:y.color,borderRadius:y.radius??y.height/2,...d?.track},children:b}),C]}),t.some(x=>!!x.label)&&Cn("div",{"aria-hidden":!0,className:No("cleen-relative cleen-mt-2 cleen-h-5",c?.labels),style:d?.labels,children:t.map((x,I)=>!x||!x.type||!x.label?null:Cn($1,{serie:x,minValue:s,maxValue:p,className:c?.label,style:d?.label},`label-${I}`))})]})})});import{cn as rs}from"@cleen/ui-core";import{jsx as as}from"react/jsx-runtime";var UC={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"},GC={slow:1.3,normal:.65,fast:.4},re=({isFullscreen:e,size:t="xs",stroke:n,speed:o="normal",className:l,classNames:a,style:c,styles:i,color:d,...s})=>as("div",{className:rs("cleen",l),style:c,children:as("div",{className:rs("cleen-flex cleen-justify-center cleen-items-center cleen-w-full cleen-h-full",{"cleen-h-screen cleen-w-screen cleen-bg-background":e},a?.container),style:i?.container,...s,children:as("span",{className:rs("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"&&UC[t],a?.loader),style:{...d&&{borderInlineColor:d,borderTopColor:d},...typeof t=="number"&&{width:t,height:t},...typeof n=="number"&&{borderWidth:n},animationDuration:`${typeof o=="number"?o:GC[o]}s`,...i?.loader}})})});import{cn as ls,useWidthDynamicResize as $C}from"@cleen/ui-core";import{forwardRef as WC,useImperativeHandle as qC,useRef as XC}from"react";var K1={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"},Y1={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 Z1,jsxs as KC}from"react/jsx-runtime";var ee=WC(function({type:t="button",label:n,onClick:o,className:l,classNames:a,style:c,styles:i,disabled:d=!1,leftIcon:s,rightIcon:p,loaderColor:g,isLoading:m=!1,variant:y="primary",fullWidth:v=!1,children:h,...b},C){let x=XC(null);return qC(C,()=>x.current),$C({ref:x,skip:v},[m,s,p,v]),Z1("div",{className:ls("cleen",l),style:c,children:KC("button",{type:t,ref:x,className:ls("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",K1[y],{"cleen-w-full cleen-flex-1":v,"cleen-opacity-50 cleen-cursor-not-allowed cleen-pointer-events-none":d||m},a?.container),style:i?.container,disabled:m||d,onClick:o,...b,children:[m&&Z1(re,{size:"xs",color:g||Y1[y],className:ls("cleen-mr-1.5 cleen-w-fit",a?.loaderContainer),style:i?.loaderContainer,classNames:{loader:a?.loader},styles:{loader:i?.loader}}),s||null,n||h,p||null]})})});var Q1={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"},J1={primary:"rgb(var(--cleen-primary-foreground))",borderless:"rgb(var(--cleen-foreground))","borderless-blue":"rgb(var(--cleen-blue))","borderless-success":"rgb(var(--cleen-success))","borderless-error":"rgb(var(--cleen-error))",secondary:"rgb(var(--cleen-foreground))","secondary-blue":"rgb(var(--cleen-blue))","secondary-success":"rgb(var(--cleen-success))","secondary-error":"rgb(var(--cleen-error))",error:"rgb(var(--cleen-white))",success:"rgb(var(--cleen-white))",warning:"rgb(var(--cleen-white))",black:"rgb(var(--cleen-white))",purple:"rgb(var(--cleen-white))",indigo:"rgb(var(--cleen-white))",yellow:"rgb(var(--cleen-black))"};import{cn as oo,ColorHelpers as lx}from"@cleen/ui-core";function xn(e,t,n){return Math.min(Math.max(e,n),t)}var cs=class extends Error{constructor(t){super(`Failed to parse color: "${t}"`)}},Sr=cs;function YC(e){if(typeof e!="string")throw new Sr(e);if(e.trim().toLowerCase()==="transparent")return[0,0,0,0];let t=e.trim();t=nx.test(e)?JC(e):e;let n=jC.exec(t);if(n){let c=Array.from(n).slice(1);return[...c.slice(0,3).map(i=>parseInt(wr(i,2),16)),parseInt(wr(c[3]||"f",2),16)/255]}let o=ex.exec(t);if(o){let c=Array.from(o).slice(1);return[...c.slice(0,3).map(i=>parseInt(i,16)),parseInt(c[3]||"ff",16)/255]}let l=tx.exec(t);if(l){let c=Array.from(l).slice(1);return[...c.slice(0,3).map(i=>parseInt(i,10)),parseFloat(c[3]||"1")]}let a=ox.exec(t);if(a){let[c,i,d,s]=Array.from(a).slice(1).map(parseFloat);if(xn(0,100,i)!==i)throw new Sr(e);if(xn(0,100,d)!==d)throw new Sr(e);return[...rx(c,i,d),Number.isNaN(s)?1:s]}throw new Sr(e)}function ZC(e){let t=5381,n=e.length;for(;n;)t=t*33^e.charCodeAt(--n);return(t>>>0)%2341}var j1=e=>parseInt(e.replace(/_/g,""),36),QC="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((e,t)=>{let n=j1(t.substring(0,3)),o=j1(t.substring(3)).toString(16),l="";for(let a=0;a<6-o.length;a++)l+="0";return e[n]=`${l}${o}`,e},{});function JC(e){let t=e.toLowerCase().trim(),n=QC[ZC(t)];if(!n)throw new Sr(e);return`#${n}`}var wr=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),jC=new RegExp(`^#${wr("([a-f0-9])",3)}([a-f0-9])?$`,"i"),ex=new RegExp(`^#${wr("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),tx=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${wr(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),ox=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,nx=/^[a-z]+$/i,eg=e=>Math.round(e*255),rx=(e,t,n)=>{let o=n/100;if(t===0)return[o,o,o].map(eg);let l=(e%360+360)%360/60,a=(1-Math.abs(2*o-1))*(t/100),c=a*(1-Math.abs(l%2-1)),i=0,d=0,s=0;l>=0&&l<1?(i=a,d=c):l>=1&&l<2?(i=c,d=a):l>=2&&l<3?(d=a,s=c):l>=3&&l<4?(d=c,s=a):l>=4&&l<5?(i=c,s=a):l>=5&&l<6&&(i=a,s=c);let p=o-a/2,g=i+p,m=d+p,y=s+p;return[g,m,y].map(eg)};function ax(e,t,n,o){return`rgba(${xn(0,255,e).toFixed()}, ${xn(0,255,t).toFixed()}, ${xn(0,255,n).toFixed()}, ${parseFloat(xn(0,1,o).toFixed(3))})`}function Mr(e,t){let[n,o,l,a]=YC(e);return ax(n,o,l,a-t)}import{forwardRef as cx,useMemo as ix}from"react";import{jsx as Pn,jsxs as tg}from"react/jsx-runtime";var fe=cx(function({header:t,footer:n,color:o,isGlass:l=!1,hoverable:a=!1,p:c,gap:i,radius:d=8,children:s,className:p,classNames:g,style:m,styles:y,...v},h){let{cardColor:b,backgroundColor:C,borderColor:x}=ix(()=>{let I=lx.getComputedColor(o);return I?{cardColor:I,backgroundColor:Mr(I,.9),borderColor:Mr(I,.8)}:{cardColor:I}},[o]);return Pn("div",{className:oo("cleen",p),style:m,ref:h,...v,children:tg("div",{className:oo("cleen-bg-background cleen-pt-6 cleen-border cleen-border-border cleen-flex cleen-flex-col cleen-gap-6 cleen-flex-grow cleen-transition-all cleen-duration-200",a&&"hover:cleen-border-neutral-300 hover:cleen-shadow-md",n?.content?"cleen-pb-3":"cleen-pb-6",g?.container),style:{...b&&{backgroundColor:C,borderColor:x,color:b},...l&&{backgroundImage:`linear-gradient(to right, rgba(var(--cleen-black), 0.03) 0%, rgba(255, 255, 255, 0) 5%),
|
|
2
|
+
linear-gradient(to bottom, rgba(var(--cleen-black), 0.03) 0%, rgba(255, 255, 255, 0) 10%)`},...c!==void 0&&{paddingBlock:c},...i!==void 0&&{gap:i},borderRadius:d,...y?.container},children:[(t?.content||t?.title)&&tg("div",{className:oo("cleen-px-6",g?.header?.content),style:{...b&&{color:b},...c!==void 0&&{paddingInline:c},...y?.header?.content},children:[t?.title&&Pn("div",{className:oo("cleen-text-xl cleen-font-bold cleen-text-foreground-emphasis",g?.header?.title),style:{...b&&{color:b},...y?.header?.title},children:t?.title}),t?.content]}),(t?.content||t?.title)&&t?.hasDivider&&Pn("hr",{className:oo("cleen-text-neutral-200",g?.header?.divider),style:{...b&&{color:x},...y?.header?.divider}}),s&&Pn("div",{className:oo("cleen-px-6",g?.childrenContainer),style:{...c!==void 0&&{paddingInline:c},...y?.childrenContainer},children:s}),n?.content&&n?.hasDivider&&Pn("hr",{className:oo("cleen-text-neutral-200",g?.footer?.divider),style:{...b&&{color:x},...y?.footer?.divider}}),n?.content&&Pn("div",{className:oo("cleen-px-6 -cleen-mt-3 cleen-text-foreground",g?.footer?.content),style:{...b&&{color:b},...c!==void 0&&{paddingInline:c},...y?.footer?.content},children:n.content})]})})});import{jsx as sx}from"react/jsx-runtime";function r({size:e=24,width:t,height:n,strokeWidth:o=1.5,isFilled:l=!1,children:a,...c}){return delete c.color1,delete c.color2,sx("svg",{xmlns:"http://www.w3.org/2000/svg",width:t??e,height:n??e,viewBox:"0 0 24 24",fill:l?"currentColor":"none",stroke:"currentColor",strokeWidth:l?0:o,strokeLinecap:"round",strokeLinejoin:"round",...c,children:a})}import{jsx as og,jsxs as px}from"react/jsx-runtime";var is=e=>px(r,{...e,children:[og("path",{d:"M9 10.5l2 2l4 -4"}),og("path",{d:"M18 7v14l-6 -4l-6 4v-14a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4z"})]});import{jsx as ng}from"react/jsx-runtime";var ss=e=>ng(r,{isFilled:!0,...e,children:ng("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 ps,jsxs as dx}from"react/jsx-runtime";var ds=e=>dx(r,{...e,children:[ps("path",{d:"M12 17l-6 4v-14a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v5"}),ps("path",{d:"M16 19h6"}),ps("path",{d:"M19 16v6"})]});import{jsx as no,jsxs as mx}from"react/jsx-runtime";var ms=e=>mx(r,{...e,children:[no("path",{d:"M3 21l18 0"}),no("path",{d:"M9 8l1 0"}),no("path",{d:"M9 12l1 0"}),no("path",{d:"M9 16l1 0"}),no("path",{d:"M14 8l1 0"}),no("path",{d:"M14 12l1 0"}),no("path",{d:"M14 16l1 0"}),no("path",{d:"M5 21v-16a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v16"})]});import{jsx as rg,jsxs as ux}from"react/jsx-runtime";var us=e=>ux(r,{...e,children:[rg("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"}),rg("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 xl,jsxs as fx}from"react/jsx-runtime";var fs=e=>fx(r,{...e,children:[xl("path",{d:"M6 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),xl("path",{d:"M4 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2"}),xl("path",{d:"M16.32 3.27a6.5 6.5 0 0 1 0 7.46"}),xl("path",{d:"M19.37 1.84a9 9 0 0 1 0 10.32"})]});import{jsx as kr,jsxs as hx}from"react/jsx-runtime";var hs=e=>hx(r,{viewBox:"0 0 48 48",...e,children:[kr("path",{opacity:"0.1",d:"M3 24a21 21 0 1 0 42 0a21 21 0 0 0 -42 0"}),kr("path",{opacity:"0.3",d:"M8 24a16 16 0 1 0 32 0a16 16 0 0 0 -32 0"}),kr("path",{d:"M13 24a11 11 0 1 0 22 0a11 11 0 0 0 -22 0"}),kr("path",{d:"M24 18v8"}),kr("path",{d:"M24 30h.01"})]});import{jsx as Pl,jsxs as gx}from"react/jsx-runtime";var gs=e=>gx(r,{viewBox:"0 0 48 48",...e,children:[Pl("path",{opacity:"0.1",d:"M3 24a21 21 0 1 0 42 0a21 21 0 0 0 -42 0"}),Pl("path",{opacity:"0.3",d:"M8 24a16 16 0 1 0 32 0a16 16 0 0 0 -32 0"}),Pl("path",{d:"M13 24a11 11 0 1 0 22 0a11 11 0 0 0 -22 0"}),Pl("path",{d:"M18 24l4 4l8 -8"})]});import{jsx as vs,jsxs as vx}from"react/jsx-runtime";var To=e=>vx(r,{...e,children:[vs("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"}),vs("path",{d:"M12 8v4"}),vs("path",{d:"M12 16h.01"})]});import{jsx as ag}from"react/jsx-runtime";var bs=e=>ag(r,{isFilled:!0,...e,children:ag("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 ys,jsxs as bx}from"react/jsx-runtime";var Is=e=>bx(r,{...e,children:[ys("path",{d:"M12 9v4"}),ys("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"}),ys("path",{d:"M12 16h.01"})]});import{jsx as Br,jsxs as yx}from"react/jsx-runtime";var Cs=e=>yx(r,{...e,children:[Br("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"}),Br("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"}),Br("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"}),Br("path",{d:"M14 7l6 0"}),Br("path",{d:"M17 4l0 6"})]});import{jsx as xs,jsxs as Ix}from"react/jsx-runtime";var Ps=e=>Ix(r,{...e,children:[xs("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"}),xs("path",{d:"M5 8v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-10"}),xs("path",{d:"M10 12l4 0"})]});import{jsx as Sl,jsxs as Cx}from"react/jsx-runtime";var Ss=e=>Cx(r,{...e,children:[Sl("path",{d:"M12 20l0 -10"}),Sl("path",{d:"M12 20l4 -4"}),Sl("path",{d:"M12 20l-4 -4"}),Sl("path",{d:"M4 4l16 0"})]});import{jsx as wl,jsxs as xx}from"react/jsx-runtime";var ws=e=>xx(r,{...e,children:[wl("path",{d:"M4 12l10 0"}),wl("path",{d:"M4 12l4 4"}),wl("path",{d:"M4 12l4 -4"}),wl("path",{d:"M20 4l0 16"})]});import{jsx as Ml,jsxs as Px}from"react/jsx-runtime";var Ms=e=>Px(r,{...e,children:[Ml("path",{d:"M20 12l-10 0"}),Ml("path",{d:"M20 12l-4 4"}),Ml("path",{d:"M20 12l-4 -4"}),Ml("path",{d:"M4 4l0 16"})]});import{jsx as kl,jsxs as Sx}from"react/jsx-runtime";var ks=e=>Sx(r,{...e,children:[kl("path",{d:"M4 20l16 0"}),kl("path",{d:"M12 14l0 -10"}),kl("path",{d:"M12 14l4 -4"}),kl("path",{d:"M12 14l-4 -4"})]});import{jsx as Bl,jsxs as wx}from"react/jsx-runtime";var Bs=e=>wx(r,{...e,children:[Bl("path",{d:"M10 12l10 0"}),Bl("path",{d:"M10 12l4 4"}),Bl("path",{d:"M10 12l4 -4"}),Bl("path",{d:"M4 4l0 16"})]});import{jsx as Nl,jsxs as Mx}from"react/jsx-runtime";var Ns=e=>Mx(r,{...e,children:[Nl("path",{d:"M14 12l-10 0"}),Nl("path",{d:"M14 12l-4 4"}),Nl("path",{d:"M14 12l-4 -4"}),Nl("path",{d:"M20 4l0 16"})]});import{jsx as Tl,jsxs as kx}from"react/jsx-runtime";var Ts=e=>kx(r,{...e,children:[Tl("path",{d:"M12 10l0 10"}),Tl("path",{d:"M12 10l4 4"}),Tl("path",{d:"M12 10l-4 4"}),Tl("path",{d:"M4 4l16 0"})]});import{jsx as Rl,jsxs as Bx}from"react/jsx-runtime";var Rs=e=>Bx(r,{...e,children:[Rl("path",{d:"M12 4l0 10"}),Rl("path",{d:"M12 4l4 4"}),Rl("path",{d:"M12 4l-4 4"}),Rl("path",{d:"M4 20l16 0"})]});import{jsx as Ls,jsxs as Nx}from"react/jsx-runtime";var Es=e=>Nx(r,{...e,children:[Ls("path",{d:"M12 5l0 14"}),Ls("path",{d:"M18 13l-6 6"}),Ls("path",{d:"M6 13l6 6"})]});import{jsx as lg,jsxs as Tx}from"react/jsx-runtime";var Ds=e=>Tx(r,{...e,children:[lg("path",{d:"M17 7l-10 10"}),lg("path",{d:"M16 17l-9 0l0 -9"})]});import{jsx as Fs,jsxs as Rx}from"react/jsx-runtime";var As=e=>Rx(r,{...e,children:[Fs("path",{d:"M12 5l0 14"}),Fs("path",{d:"M16 15l-4 4"}),Fs("path",{d:"M8 15l4 4"})]});import{jsx as cg,jsxs as Lx}from"react/jsx-runtime";var Os=e=>Lx(r,{...e,children:[cg("path",{d:"M7 7l10 10"}),cg("path",{d:"M17 8l0 9l-9 0"})]});import{jsx as _s,jsxs as Ex}from"react/jsx-runtime";var zs=e=>Ex(r,{...e,children:[_s("path",{d:"M5 12l14 0"}),_s("path",{d:"M5 12l6 6"}),_s("path",{d:"M5 12l6 -6"})]});import{jsx as Vs,jsxs as Dx}from"react/jsx-runtime";var Hs=e=>Dx(r,{...e,children:[Vs("path",{d:"M5 12l14 0"}),Vs("path",{d:"M5 12l4 4"}),Vs("path",{d:"M5 12l4 -4"})]});import{jsx as Us,jsxs as Fx}from"react/jsx-runtime";var Gs=e=>Fx(r,{...e,children:[Us("path",{d:"M5 12l14 0"}),Us("path",{d:"M13 18l6 -6"}),Us("path",{d:"M13 6l6 6"})]});import{jsx as $s,jsxs as Ax}from"react/jsx-runtime";var Ws=e=>Ax(r,{...e,children:[$s("path",{d:"M5 12l14 0"}),$s("path",{d:"M15 16l4 -4"}),$s("path",{d:"M15 8l4 4"})]});import{jsx as qs,jsxs as Ox}from"react/jsx-runtime";var Xs=e=>Ox(r,{...e,children:[qs("path",{d:"M12 5l0 14"}),qs("path",{d:"M18 11l-6 -6"}),qs("path",{d:"M6 11l6 -6"})]});import{jsx as ig,jsxs as _x}from"react/jsx-runtime";var Ks=e=>_x(r,{...e,children:[ig("path",{d:"M7 7l10 10"}),ig("path",{d:"M16 7l-9 0l0 9"})]});import{jsx as Ys,jsxs as zx}from"react/jsx-runtime";var Zs=e=>zx(r,{...e,children:[Ys("path",{d:"M12 5l0 14"}),Ys("path",{d:"M16 9l-4 -4"}),Ys("path",{d:"M8 9l4 -4"})]});import{jsx as sg,jsxs as Vx}from"react/jsx-runtime";var Qs=e=>Vx(r,{...e,children:[sg("path",{d:"M17 7l-10 10"}),sg("path",{d:"M8 7l9 0l0 9"})]});import{jsx as pg}from"react/jsx-runtime";var Js=e=>pg(r,{...e,children:pg("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 Ll,jsxs as Hx}from"react/jsx-runtime";var js=e=>Hx(r,{...e,children:[Ll("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"}),Ll("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"}),Ll("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"}),Ll("path",{d:"M4 20h14"})]});import{jsx as Nr,jsxs as Ux}from"react/jsx-runtime";var ep=e=>Ux(r,{...e,children:[Nr("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"}),Nr("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"}),Nr("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"}),Nr("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"}),Nr("path",{d:"M7 18.5h10"})]});import{jsx as dg,jsxs as Gx}from"react/jsx-runtime";var tp=e=>Gx(r,{...e,children:[dg("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"}),dg("path",{d:"M9 17v1a3 3 0 0 0 6 0v-1"})]});import{jsx as mg,jsxs as $x}from"react/jsx-runtime";var op=e=>$x(r,{...e,children:[mg("path",{d:"M7 5h6a3.5 3.5 0 0 1 0 7h-6z"}),mg("path",{d:"M13 12h1a3.5 3.5 0 0 1 0 7h-7v-7"})]});import{jsx as ug}from"react/jsx-runtime";var np=e=>ug(r,{...e,children:ug("path",{d:"M18 7v14l-6 -4l-6 4v-14a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4z"})});import{jsx as fg}from"react/jsx-runtime";var rp=e=>fg(r,{isFilled:!0,...e,children:fg("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 hg,jsxs as Wx}from"react/jsx-runtime";var ap=e=>Wx(r,{...e,children:[hg("path",{d:"M12 17l-6 4v-14a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v8"}),hg("path",{d:"M16 19h6"})]});import{jsx as lp,jsxs as qx}from"react/jsx-runtime";var cp=e=>qx(r,{...e,children:[lp("path",{d:"M12 17l-6 4v-14a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v6.5"}),lp("path",{d:"M20.5 21.5l-5 -5"}),lp("path",{d:"M15.5 21.5l5 -5"})]});import{jsx as Tr,jsxs as Xx}from"react/jsx-runtime";var ip=e=>Xx(r,{...e,children:[Tr("path",{d:"M3 19a9 9 0 0 1 9 0a9 9 0 0 1 9 0"}),Tr("path",{d:"M3 6a9 9 0 0 1 9 0a9 9 0 0 1 9 0"}),Tr("path",{d:"M3 6l0 13"}),Tr("path",{d:"M12 6l0 13"}),Tr("path",{d:"M21 6l0 13"})]});import{jsx as El,jsxs as Kx}from"react/jsx-runtime";var sp=e=>Kx(r,{...e,children:[El("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"}),El("path",{d:"M9 13h-2"}),El("path",{d:"M13 10h-6"}),El("path",{d:"M11 7h-4"})]});import{jsx as pp,jsxs as Yx}from"react/jsx-runtime";var dp=e=>Yx(r,{...e,children:[pp("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"}),pp("path",{d:"M10 8h4"}),pp("path",{d:"M12 8v8"})]});import{jsx as mp,jsxs as Zx}from"react/jsx-runtime";var up=e=>Zx(r,{...e,children:[mp("path",{d:"M9 12l2 2l4 -4"}),mp("path",{d:"M6 19a2 2 0 0 1 -2 -2v-4l-1 -1l1 -1v-4a2 2 0 0 1 2 -2"}),mp("path",{d:"M18 19a2 2 0 0 0 2 -2v-4l1 -1l-1 -1v-4a2 2 0 0 0 -2 -2"})]});import{jsx as Rr,jsxs as Qx}from"react/jsx-runtime";var fp=e=>Qx(r,{...e,children:[Rr("path",{d:"M15 12h.01"}),Rr("path",{d:"M12 12h.01"}),Rr("path",{d:"M9 12h.01"}),Rr("path",{d:"M6 19a2 2 0 0 1 -2 -2v-4l-1 -1l1 -1v-4a2 2 0 0 1 2 -2"}),Rr("path",{d:"M18 19a2 2 0 0 0 2 -2v-4l1 -1l-1 -1v-4a2 2 0 0 0 -2 -2"})]});import{jsx as Dt,jsxs as Jx}from"react/jsx-runtime";var hp=e=>Jx(r,{...e,children:[Dt("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"}),Dt("path",{d:"M4 8h16"}),Dt("path",{d:"M20 12h-16"}),Dt("path",{d:"M4 16h16"}),Dt("path",{d:"M9 4v4"}),Dt("path",{d:"M14 8v4"}),Dt("path",{d:"M8 12v4"}),Dt("path",{d:"M16 12v4"}),Dt("path",{d:"M11 16v4"})]});import{jsx as Dl,jsxs as jx}from"react/jsx-runtime";var gp=e=>jx(r,{...e,children:[Dl("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"}),Dl("path",{d:"M8 7v-2a2 2 0 0 1 2 -2h4a2 2 0 0 1 2 2v2"}),Dl("path",{d:"M12 12l0 .01"}),Dl("path",{d:"M3 13a20 20 0 0 0 18 0"})]});import{jsx as ro,jsxs as eP}from"react/jsx-runtime";var vp=e=>eP(r,{...e,children:[ro("path",{d:"M4 3m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z"}),ro("path",{d:"M8 7m0 1a1 1 0 0 1 1 -1h6a1 1 0 0 1 1 1v1a1 1 0 0 1 -1 1h-6a1 1 0 0 1 -1 -1z"}),ro("path",{d:"M8 14l0 .01"}),ro("path",{d:"M12 14l0 .01"}),ro("path",{d:"M16 14l0 .01"}),ro("path",{d:"M8 17l0 .01"}),ro("path",{d:"M12 17l0 .01"}),ro("path",{d:"M16 17l0 .01"})]});import{jsx as Sn,jsxs as tP}from"react/jsx-runtime";var Lr=e=>tP(r,{...e,children:[Sn("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"}),Sn("path",{d:"M16 3v4"}),Sn("path",{d:"M8 3v4"}),Sn("path",{d:"M4 11h16"}),Sn("path",{d:"M11 15h1"}),Sn("path",{d:"M12 15v3"})]});import{jsx as wn,jsxs as oP}from"react/jsx-runtime";var bp=e=>oP(r,{...e,children:[wn("path",{d:"M15 15m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),wn("path",{d:"M13 17.5v4.5l2 -1.5l2 1.5v-4.5"}),wn("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"}),wn("path",{d:"M6 9l12 0"}),wn("path",{d:"M6 12l3 0"}),wn("path",{d:"M6 15l2 0"})]});import{jsx as gg}from"react/jsx-runtime";var Ft=e=>gg(r,{...e,children:gg("path",{d:"M5 12l5 5l10 -10"})});import{jsx as vg,jsxs as nP}from"react/jsx-runtime";var Ro=e=>nP(r,{...e,children:[vg("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),vg("path",{d:"M9 12l2 2l4 -4"})]});import{jsx as bg,jsxs as rP}from"react/jsx-runtime";var yp=e=>rP(r,{...e,children:[bg("path",{d:"M16.8 4.3a9 9 0 1 0 4.3 6.1"}),bg("path",{d:"M8.5 12l3 3l9.5 -10"})]});import{jsx as yg}from"react/jsx-runtime";var Ip=e=>yg(r,{isFilled:!0,...e,children:yg("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 Ig,jsxs as aP}from"react/jsx-runtime";var Cp=e=>aP(r,{...e,children:[Ig("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"}),Ig("path",{d:"M9 12l2 2l4 -4"})]});import{jsx as Cg}from"react/jsx-runtime";var xp=e=>Cg(r,{isFilled:!0,...e,children:Cg("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 xg}from"react/jsx-runtime";var Er=e=>xg(r,{...e,children:xg("path",{d:"M6 9l6 6l6 -6"})});import{jsx as Pg,jsxs as lP}from"react/jsx-runtime";var Pp=e=>lP(r,{...e,children:[Pg("path",{d:"M7 7l5 5l5 -5"}),Pg("path",{d:"M7 13l5 5l5 -5"})]});import{jsx as Sg}from"react/jsx-runtime";var Sp=e=>Sg(r,{...e,children:Sg("path",{d:"M8 8v8h8"})});import{jsx as wg,jsxs as cP}from"react/jsx-runtime";var wp=e=>cP(r,{...e,children:[wg("path",{d:"M11 5v8h8"}),wg("path",{d:"M7 9v8h8"})]});import{jsx as Mg}from"react/jsx-runtime";var Mp=e=>Mg(r,{...e,children:Mg("path",{d:"M16 8v8h-8"})});import{jsx as kg,jsxs as iP}from"react/jsx-runtime";var kp=e=>iP(r,{...e,children:[kg("path",{d:"M13 5v8h-8"}),kg("path",{d:"M17 9v8h-8"})]});import{jsx as Bg}from"react/jsx-runtime";var At=e=>Bg(r,{...e,children:Bg("path",{d:"M15 6l-6 6l6 6"})});import{jsx as Ng,jsxs as sP}from"react/jsx-runtime";var Bp=e=>sP(r,{...e,children:[Ng("path",{d:"M11 7l-5 5l5 5"}),Ng("path",{d:"M17 7l-5 5l5 5"})]});import{jsx as Tg}from"react/jsx-runtime";var mt=e=>Tg(r,{...e,children:Tg("path",{d:"M9 6l6 6l-6 6"})});import{jsx as Rg,jsxs as pP}from"react/jsx-runtime";var Dr=e=>pP(r,{...e,children:[Rg("path",{d:"M7 7l5 5l-5 5"}),Rg("path",{d:"M13 7l5 5l-5 5"})]});import{jsx as Lg,jsxs as dP}from"react/jsx-runtime";var Np=e=>dP(r,{...e,children:[Lg("path",{d:"M8 9l4 -4l4 4"}),Lg("path",{d:"M16 15l-4 4l-4 -4"})]});import{jsx as Eg}from"react/jsx-runtime";var Ot=e=>Eg(r,{...e,children:Eg("path",{d:"M6 15l6 -6l6 6"})});import{jsx as Dg,jsxs as mP}from"react/jsx-runtime";var Tp=e=>mP(r,{...e,children:[Dg("path",{d:"M7 11l5 -5l5 5"}),Dg("path",{d:"M7 17l5 -5l5 5"})]});import{jsx as Fg}from"react/jsx-runtime";var Rp=e=>Fg(r,{...e,children:Fg("path",{d:"M8 16v-8h8"})});import{jsx as Ag,jsxs as uP}from"react/jsx-runtime";var Lp=e=>uP(r,{...e,children:[Ag("path",{d:"M7 15v-8h8"}),Ag("path",{d:"M11 19v-8h8"})]});import{jsx as Og}from"react/jsx-runtime";var Ep=e=>Og(r,{...e,children:Og("path",{d:"M8 8h8v8"})});import{jsx as _g,jsxs as fP}from"react/jsx-runtime";var Dp=e=>fP(r,{...e,children:[_g("path",{d:"M9 7h8v8"}),_g("path",{d:"M5 11h8v8"})]});import{jsx as Mn,jsxs as hP}from"react/jsx-runtime";var Fp=e=>hP(r,{...e,children:[Mn("path",{d:"M3 12l3 0"}),Mn("path",{d:"M12 3l0 3"}),Mn("path",{d:"M7.8 7.8l-2.2 -2.2"}),Mn("path",{d:"M16.2 7.8l2.2 -2.2"}),Mn("path",{d:"M7.8 16.2l-2.2 2.2"}),Mn("path",{d:"M12 12l9 3l-4 2l-2 4l-3 -9"})]});import{jsx as zg,jsxs as gP}from"react/jsx-runtime";var Ap=e=>gP(r,{...e,children:[zg("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"}),zg("path",{d:"M12 7v5l3 3"})]});import{jsx as Fl,jsxs as vP}from"react/jsx-runtime";var Op=e=>vP(r,{...e,children:[Fl("path",{d:"M12 7v5l2 2"}),Fl("path",{d:"M16.5 20.5l2 -1.5l-2 -1.5z"}),Fl("path",{d:"M19 20.5l2 -1.5l-2 -1.5z"}),Fl("path",{d:"M13.017 20.943a9 9 0 1 1 7.831 -7.292"})]});import{jsx as _p,jsxs as bP}from"react/jsx-runtime";var zp=e=>bP(r,{...e,children:[_p("path",{d:"M12 7v5l2 2"}),_p("path",{d:"M17 22l5 -3l-5 -3z"}),_p("path",{d:"M13.017 20.943a9 9 0 1 1 7.831 -7.292"})]});import{jsx as Vg,jsxs as yP}from"react/jsx-runtime";var Vp=e=>yP(r,{...e,children:[Vg("path",{d:"M12 8l0 4l2 2"}),Vg("path",{d:"M3.05 13a9 9 0 1 0 .5 -4m-.5 -5v5h5"})]});import{jsx as Fr,jsxs as IP}from"react/jsx-runtime";var Hp=e=>IP(r,{...e,children:[Fr("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),Fr("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"}),Fr("path",{d:"M11 14h6"}),Fr("path",{d:"M14 11v6"}),Fr("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 Up,jsxs as CP}from"react/jsx-runtime";var Gp=e=>CP(r,{...e,children:[Up("path",{d:"M7 8l-4 4l4 4"}),Up("path",{d:"M17 8l4 4l-4 4"}),Up("path",{d:"M14 4l-4 16"})]});import{jsx as kn,jsxs as xP}from"react/jsx-runtime";var $p=e=>xP(r,{...e,children:[kn("path",{d:"M4 8h16"}),kn("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"}),kn("path",{d:"M8 4v4"}),kn("path",{d:"M9 12l-2 2l2 2"}),kn("path",{d:"M15 12l2 2l-2 2"}),kn("path",{d:"M13 11l-2 6"})]});import{jsx as Wp,jsxs as PP}from"react/jsx-runtime";var qp=e=>PP(r,{...e,children:[Wp("path",{d:"M10 14l-2 -2l2 -2"}),Wp("path",{d:"M14 10l2 2l-2 2"}),Wp("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"})]});import{jsx as Xp,jsxs as SP}from"react/jsx-runtime";var Kp=e=>SP(r,{...e,children:[Xp("path",{d:"M12 7m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"}),Xp("path",{d:"M6.5 17m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"}),Xp("path",{d:"M17.5 17m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"})]});import{jsx as Hg,jsxs as wP}from"react/jsx-runtime";var Yp=e=>wP(r,{...e,children:[Hg("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"}),Hg("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 Ug,jsxs as MP}from"react/jsx-runtime";var Zp=e=>MP(r,{...e,children:[Ug("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"}),Ug("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 Qp,jsxs as kP}from"react/jsx-runtime";var Jp=e=>kP(r,{...e,children:[Qp("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"}),Qp("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"}),Qp("path",{d:"M11 14l2 2l4 -4"})]});import{jsx as Al,jsxs as BP}from"react/jsx-runtime";var jp=e=>BP(r,{...e,children:[Al("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"}),Al("path",{d:"M3 10l18 0"}),Al("path",{d:"M7 15l.01 0"}),Al("path",{d:"M11 15l2 0"})]});import{jsx as Ol,jsxs as NP}from"react/jsx-runtime";var ed=e=>NP(r,{...e,children:[Ol("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"}),Ol("path",{d:"M12 22v-10"}),Ol("path",{d:"M12 12l8.73 -5.04"}),Ol("path",{d:"M3.27 6.96l8.73 5.04"})]});import{jsx as tt,jsxs as TP}from"react/jsx-runtime";var td=e=>TP(r,{...e,children:[tt("path",{d:"M6 17.6l-2 -1.1v-2.5"}),tt("path",{d:"M4 10v-2.5l2 -1.1"}),tt("path",{d:"M10 4.1l2 -1.1l2 1.1"}),tt("path",{d:"M18 6.4l2 1.1v2.5"}),tt("path",{d:"M20 14v2.5l-2 1.12"}),tt("path",{d:"M14 19.9l-2 1.1l-2 -1.1"}),tt("path",{d:"M12 12l2 -1.1"}),tt("path",{d:"M18 8.6l2 -1.1"}),tt("path",{d:"M12 12l0 2.5"}),tt("path",{d:"M12 18.5l0 2.5"}),tt("path",{d:"M12 12l-2 -1.12"}),tt("path",{d:"M6 8.6l-2 -1.1"})]});import{jsx as Gg,jsxs as RP}from"react/jsx-runtime";var Ar=e=>RP(r,{...e,children:[Gg("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"}),Gg("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 Lo,jsxs as LP}from"react/jsx-runtime";var od=e=>LP(r,{...e,children:[Lo("path",{d:"M5 2h5v4h-5z"}),Lo("path",{d:"M15 10h5v4h-5z"}),Lo("path",{d:"M5 18h5v4h-5z"}),Lo("path",{d:"M5 10h5v4h-5z"}),Lo("path",{d:"M10 12h5"}),Lo("path",{d:"M7.5 6v4"}),Lo("path",{d:"M7.5 14v4"})]});import{jsx as ot,jsxs as EP}from"react/jsx-runtime";var nd=e=>EP(r,{...e,children:[ot("path",{d:"M12 5m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),ot("path",{d:"M8 12m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),ot("path",{d:"M12 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),ot("path",{d:"M20 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),ot("path",{d:"M4 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),ot("path",{d:"M16 12m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),ot("path",{d:"M5 17l2 -3"}),ot("path",{d:"M9 10l2 -3"}),ot("path",{d:"M13 7l2 3"}),ot("path",{d:"M17 14l2 3"}),ot("path",{d:"M15 14l-2 3"}),ot("path",{d:"M9 14l2 3"})]});import{jsx as Or,jsxs as DP}from"react/jsx-runtime";var rd=e=>DP(r,{...e,children:[Or("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"}),Or("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"}),Or("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"}),Or("path",{d:"M6 15v-1a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v1"}),Or("path",{d:"M12 9l0 3"})]});import{jsx as ad,jsxs as FP}from"react/jsx-runtime";var ld=e=>FP(r,{...e,children:[ad("path",{d:"M4 4l16 0"}),ad("path",{d:"M4 20l16 0"}),ad("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 $g,jsxs as AP}from"react/jsx-runtime";var cd=e=>AP(r,{...e,children:[$g("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"}),$g("path",{d:"M12 3v3m0 12v3"})]});import{jsx as id,jsxs as OP}from"react/jsx-runtime";var sd=e=>OP(r,{...e,children:[id("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),id("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"}),id("path",{d:"M12 7v10"})]});import{jsx as Wg}from"react/jsx-runtime";var pd=e=>Wg(r,{...e,children:Wg("path",{d:"M12 12m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"})});import{jsx as qg}from"react/jsx-runtime";var dd=e=>qg(r,{isFilled:!0,...e,children:qg("path",{d:"M12 7a5 5 0 1 1 -4.995 5.217l-.005 -.217l.005 -.217a5 5 0 0 1 4.995 -4.783z"})});import{jsx as _t,jsxs as _P}from"react/jsx-runtime";var md=e=>_P(r,{...e,children:[_t("path",{d:"M5 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),_t("path",{d:"M12 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),_t("path",{d:"M19 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),_t("path",{d:"M5 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),_t("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),_t("path",{d:"M19 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),_t("path",{d:"M5 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),_t("path",{d:"M12 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),_t("path",{d:"M19 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]});import{jsx as ud,jsxs as zP}from"react/jsx-runtime";var fd=e=>zP(r,{...e,children:[ud("path",{d:"M5 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),ud("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),ud("path",{d:"M19 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]});import{jsx as hd,jsxs as VP}from"react/jsx-runtime";var Bn=e=>VP(r,{...e,children:[hd("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),hd("path",{d:"M12 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),hd("path",{d:"M12 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]});import{jsx as gd,jsxs as HP}from"react/jsx-runtime";var vd=e=>HP(r,{...e,children:[gd("path",{d:"M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2"}),gd("path",{d:"M7 11l5 5l5 -5"}),gd("path",{d:"M12 4l0 12"})]});import{jsx as Xg,jsxs as UP}from"react/jsx-runtime";var bd=e=>UP(r,{...e,children:[Xg("path",{d:"M4 20h4l10.5 -10.5a2.828 2.828 0 1 0 -4 -4l-10.5 10.5v4"}),Xg("path",{d:"M13.5 6.5l4 4"})]});import{jsx as yd,jsxs as GP}from"react/jsx-runtime";var Id=e=>GP(r,{...e,children:[yd("path",{d:"M7 7h-1a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2 -2v-1"}),yd("path",{d:"M20.385 6.585a2.1 2.1 0 0 0 -2.97 -2.97l-8.415 8.385v3h3l8.385 -8.415z"}),yd("path",{d:"M16 5l3 3"})]});import{jsx as ao,jsxs as $P}from"react/jsx-runtime";var Cd=e=>$P(r,{...e,children:[ao("path",{d:"M16 4l4 0l0 4"}),ao("path",{d:"M14 10l6 -6"}),ao("path",{d:"M8 20l-4 0l0 -4"}),ao("path",{d:"M4 20l6 -6"}),ao("path",{d:"M16 20l4 0l0 -4"}),ao("path",{d:"M14 14l6 6"}),ao("path",{d:"M8 4l-4 0l0 4"}),ao("path",{d:"M4 4l6 6"})]});import{jsx as xd,jsxs as WP}from"react/jsx-runtime";var Pd=e=>WP(r,{...e,children:[xd("path",{d:"M12 6h-6a2 2 0 0 0 -2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-6"}),xd("path",{d:"M11 13l9 -9"}),xd("path",{d:"M15 4h5v5"})]});import{jsx as Sd,jsxs as qP}from"react/jsx-runtime";var wd=e=>qP(r,{...e,children:[Sd("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"}),Sd("path",{d:"M15 9l-6 6"}),Sd("path",{d:"M10 9l5 0l0 5"})]});import{jsx as Kg,jsxs as XP}from"react/jsx-runtime";var Md=e=>XP(r,{...e,children:[Kg("path",{d:"M10 12a2 2 0 1 0 4 0a2 2 0 0 0 -4 0"}),Kg("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 kd,jsxs as KP}from"react/jsx-runtime";var Bd=e=>KP(r,{...e,children:[kd("path",{d:"M10.585 10.587a2 2 0 0 0 2.829 2.828"}),kd("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"}),kd("path",{d:"M3 3l18 18"})]});import{jsx as _r,jsxs as YP}from"react/jsx-runtime";var Nd=e=>YP(r,{...e,children:[_r("path",{d:"M21 9c-2.4 2.667 -5.4 4 -9 4c-3.6 0 -6.6 -1.333 -9 -4"}),_r("path",{d:"M3 15l2.5 -3.8"}),_r("path",{d:"M21 14.976l-2.492 -3.776"}),_r("path",{d:"M9 17l.5 -4"}),_r("path",{d:"M15 17l-.5 -4"})]});import{jsx as _l,jsxs as ZP}from"react/jsx-runtime";var Td=e=>ZP(r,{...e,children:[_l("path",{d:"M12 21a9 9 0 1 1 0 -18a9 9 0 0 1 0 18z"}),_l("path",{d:"M8 9l2 1"}),_l("path",{d:"M16 9l-2 1"}),_l("path",{d:"M14.5 16.05a3.5 3.5 0 0 0 -5 0"})]});import{jsx as Nn,jsxs as QP}from"react/jsx-runtime";var Rd=e=>QP(r,{...e,children:[Nn("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),Nn("path",{d:"M7 8.5l3 3"}),Nn("path",{d:"M7 11.5l3 -3"}),Nn("path",{d:"M14 8.5l3 3"}),Nn("path",{d:"M14 11.5l3 -3"}),Nn("path",{d:"M9.5 15a3.5 3.5 0 0 0 5 0"})]});import{jsx as zl,jsxs as JP}from"react/jsx-runtime";var Ld=e=>JP(r,{...e,children:[zl("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),zl("path",{d:"M9 10l.01 0"}),zl("path",{d:"M15 10l.01 0"}),zl("path",{d:"M9.5 15a3.5 3.5 0 0 0 5 0"})]});import{jsx as Yg,jsxs as jP}from"react/jsx-runtime";var Eo=e=>jP(r,{...e,children:[Yg("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),Yg("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 Ed,jsxs as eS}from"react/jsx-runtime";var Dd=e=>eS(r,{...e,children:[Ed("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),Ed("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"}),Ed("path",{d:"M9 15l2 2l4 -4"})]});import{jsx as zr,jsxs as tS}from"react/jsx-runtime";var Vr=e=>tS(r,{...e,children:[zr("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),zr("path",{d:"M5 12v-7a2 2 0 0 1 2 -2h7l5 5v4"}),zr("path",{d:"M7 16.5a1.5 1.5 0 0 0 -3 0v3a1.5 1.5 0 0 0 3 0"}),zr("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"}),zr("path",{d:"M16 15l2 6l2 -6"})]});import{jsx as Vl,jsxs as oS}from"react/jsx-runtime";var Fd=e=>oS(r,{...e,children:[Vl("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),Vl("path",{d:"M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z"}),Vl("path",{d:"M12 17v-6"}),Vl("path",{d:"M9.5 14.5l2.5 2.5l2.5 -2.5"})]});import{jsx as Tn,jsxs as nS}from"react/jsx-runtime";var Hr=e=>nS(r,{...e,children:[Tn("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),Tn("path",{d:"M5 12v-8a2 2 0 0 1 2 -2h7l5 5v5"}),Tn("path",{d:"M4 15.125h2.5v4.5a1.25 1.25 0 0 1 -2.5 0v-.5"}),Tn("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"}),Tn("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"}),Tn("path",{d:"M17.5 20.875v-5.75l2.5 5.75v-5.75"})]});import{jsx as Hl,jsxs as rS}from"react/jsx-runtime";var Ad=e=>rS(r,{...e,children:[Hl("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),Hl("path",{d:"M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z"}),Hl("path",{d:"M9 17h6"}),Hl("path",{d:"M9 13h6"})]});import{jsx as Ul,jsxs as aS}from"react/jsx-runtime";var nt=e=>aS(r,{...e,children:[Ul("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),Ul("path",{d:"M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z"}),Ul("path",{d:"M11 16m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Ul("path",{d:"M12 16l0 -5l2 1"})]});import{jsx as Rn,jsxs as lS}from"react/jsx-runtime";var Do=e=>lS(r,{...e,children:[Rn("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),Rn("path",{d:"M5 12v-7a2 2 0 0 1 2 -2h7l5 5v4"}),Rn("path",{d:"M5 18h1.5a1.5 1.5 0 0 0 0 -3h-1.5v6"}),Rn("path",{d:"M17 18h2"}),Rn("path",{d:"M20 15h-3v6"}),Rn("path",{d:"M11 15v6h1a2 2 0 0 0 2 -2v-2a2 2 0 0 0 -2 -2h-1z"})]});import{jsx as Od,jsxs as cS}from"react/jsx-runtime";var _d=e=>cS(r,{...e,children:[Od("path",{d:"M15 3v4a1 1 0 0 0 1 1h4"}),Od("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"}),Od("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 Ur,jsxs as iS}from"react/jsx-runtime";var Gr=e=>iS(r,{...e,children:[Ur("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),Ur("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"}),Ur("path",{d:"M8 11h8v7h-8z"}),Ur("path",{d:"M8 15h8"}),Ur("path",{d:"M11 11v7"})]});import{jsx as $r,jsxs as sS}from"react/jsx-runtime";var zt=e=>sS(r,{...e,children:[$r("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),$r("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"}),$r("path",{d:"M9 9l1 0"}),$r("path",{d:"M9 13l6 0"}),$r("path",{d:"M9 17l6 0"})]});import{jsx as Gl,jsxs as pS}from"react/jsx-runtime";var zd=e=>pS(r,{...e,children:[Gl("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),Gl("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"}),Gl("path",{d:"M12 11v6"}),Gl("path",{d:"M9.5 13.5l2.5 -2.5l2.5 2.5"})]});import{jsx as Ln,jsxs as dS}from"react/jsx-runtime";var Wr=e=>dS(r,{...e,children:[Ln("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),Ln("path",{d:"M5 12v-7a2 2 0 0 1 2 -2h7l5 5v4"}),Ln("path",{d:"M4 15l4 6"}),Ln("path",{d:"M4 21l4 -6"}),Ln("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"}),Ln("path",{d:"M11 15v6h3"})]});import{jsx as lo,jsxs as mS}from"react/jsx-runtime";var qr=e=>mS(r,{...e,children:[lo("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),lo("path",{d:"M5 13v-8a2 2 0 0 1 2 -2h7l5 5v5"}),lo("path",{d:"M4 16l3 5"}),lo("path",{d:"M4 21l3 -5"}),lo("path",{d:"M8.5 16v5h2"}),lo("path",{d:"M12 20.25c0 .414 .336 .75 .75 .75h1.25a1 1 0 0 0 1 -1v-0.5a1 1 0 0 0 -1 -1h-1a1 1 0 0 1 -1 -1v-0.5a1 1 0 0 1 1 -1h1.25a.75 .75 0 0 1 .75 .75"}),lo("path",{d:"M16.5 16l3 5"}),lo("path",{d:"M16.5 21l3 -5"})]});import{jsx as co,jsxs as uS}from"react/jsx-runtime";var yt=e=>uS(r,{...e,children:[co("path",{d:"M6 20.735a2 2 0 0 1 -1 -1.735v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2h-1"}),co("path",{d:"M11 17a2 2 0 0 1 2 2v2a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1v-2a2 2 0 0 1 2 -2z"}),co("path",{d:"M11 5l-1 0"}),co("path",{d:"M13 7l-1 0"}),co("path",{d:"M11 9l-1 0"}),co("path",{d:"M13 11l-1 0"}),co("path",{d:"M11 13l-1 0"}),co("path",{d:"M13 15l-1 0"})]});import{jsx as Zg}from"react/jsx-runtime";var Vd=e=>Zg(r,{...e,children:Zg("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 Hd,jsxs as fS}from"react/jsx-runtime";var Xr=e=>fS(r,{...e,children:[Hd("path",{d:"M4 6h16"}),Hd("path",{d:"M6 12h12"}),Hd("path",{d:"M9 18h6"})]});import{jsx as Qg,jsxs as hS}from"react/jsx-runtime";var Ud=e=>hS(r,{...e,children:[Qg("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"}),Qg("path",{d:"M5 21v-7"})]});import{jsx as Jg}from"react/jsx-runtime";var Gd=e=>Jg(r,{...e,children:Jg("path",{d:"M5 14h14v-9h-14v16"})});import{jsx as jg}from"react/jsx-runtime";var $d=e=>jg(r,{isFilled:!0,...e,children:jg("path",{d:"M4 5a1 1 0 0 1 .3 -.714a6 6 0 0 1 8.213 -.176l.351 .328a4 4 0 0 0 5.272 0l.249 -.227c.61 -.483 1.527 -.097 1.61 .676l.005 .113v9a1 1 0 0 1 -.3 .714a6 6 0 0 1 -8.213 .176l-.351 -.328a4 4 0 0 0 -5.136 -.114v6.552a1 1 0 0 1 -1.993 .117l-.007 -.117v-16z"})});import{jsx as Kr,jsxs as gS}from"react/jsx-runtime";var Wd=e=>gS(r,{...e,children:[Kr("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Kr("path",{d:"M4 8v-2a2 2 0 0 1 2 -2h2"}),Kr("path",{d:"M4 16v2a2 2 0 0 0 2 2h2"}),Kr("path",{d:"M16 4h2a2 2 0 0 1 2 2v2"}),Kr("path",{d:"M16 20h2a2 2 0 0 0 2 -2v-2"})]});import{jsx as e2}from"react/jsx-runtime";var qd=e=>e2(r,{...e,children:e2("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 $l,jsxs as vS}from"react/jsx-runtime";var Xd=e=>vS(r,{...e,children:[$l("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"}),$l("path",{d:"M1 12.5l7 0"}),$l("path",{d:"M1 12.5l2 2"}),$l("path",{d:"M1 12.5l2 -2"})]});import{jsx as Wl,jsxs as bS}from"react/jsx-runtime";var Kd=e=>bS(r,{...e,children:[Wl("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"}),Wl("path",{d:"M2 13l7 0"}),Wl("path",{d:"M9 13l-2 2"}),Wl("path",{d:"M9 13l-2 -2"})]});import{jsx as t2,jsxs as yS}from"react/jsx-runtime";var Yd=e=>yS(r,{...e,children:[t2("path",{d:"M22 9l-10 -4l-10 4l10 4l10 -4v6"}),t2("path",{d:"M6 10.6v5.4a6 3 0 0 0 12 0v-5.4"})]});import{jsx as En,jsxs as IS}from"react/jsx-runtime";var Zd=e=>IS(r,{...e,children:[En("path",{d:"M9 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),En("path",{d:"M9 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),En("path",{d:"M9 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),En("path",{d:"M15 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),En("path",{d:"M15 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),En("path",{d:"M15 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]});import{jsx as ql,jsxs as CS}from"react/jsx-runtime";var Qd=e=>CS(r,{...e,children:[ql("path",{d:"M8 13v-7.5a1.5 1.5 0 0 1 3 0v6.5"}),ql("path",{d:"M11 5.5v-2a1.5 1.5 0 1 1 3 0v8.5"}),ql("path",{d:"M14 5.5a1.5 1.5 0 0 1 3 0v6.5"}),ql("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 Dn,jsxs as xS}from"react/jsx-runtime";var Jd=e=>xS(r,{...e,children:[Dn("path",{d:"M8 13v-7.5a1.5 1.5 0 0 1 3 0v6.5"}),Dn("path",{d:"M11 5.5v-2a1.5 1.5 0 1 1 3 0v8.5"}),Dn("path",{d:"M14 5.5a1.5 1.5 0 0 1 3 0v6.5"}),Dn("path",{d:"M17 7.5a1.5 1.5 0 0 1 3 0v5"}),Dn("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"}),Dn("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 Xl,jsxs as PS}from"react/jsx-runtime";var jd=e=>PS(r,{...e,children:[Xl("path",{d:"M5 9l14 0"}),Xl("path",{d:"M5 15l14 0"}),Xl("path",{d:"M11 4l-4 16"}),Xl("path",{d:"M17 4l-4 16"})]});import{jsx as Kl,jsxs as SS}from"react/jsx-runtime";var em=e=>SS(r,{...e,children:[Kl("path",{d:"M4 14v-3a8 8 0 1 1 16 0v3"}),Kl("path",{d:"M18 19c0 1.657 -2.686 3 -6 3"}),Kl("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"}),Kl("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 o2}from"react/jsx-runtime";var tm=e=>o2(r,{...e,children:o2("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 n2}from"react/jsx-runtime";var om=e=>n2(r,{isFilled:!0,...e,children:n2("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 nm,jsxs as wS}from"react/jsx-runtime";var rm=e=>wS(r,{...e,children:[nm("path",{d:"M5 12l-2 0l9 -9l9 9l-2 0"}),nm("path",{d:"M5 12v7a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-7"}),nm("path",{d:"M9 21v-6a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v6"})]});import{jsx as r2,jsxs as MS}from"react/jsx-runtime";var Yr=e=>MS(r,{...e,children:[r2("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"}),r2("path",{d:"M16 15c-2.21 1.333 -5.792 1.333 -8 0"})]});import{jsx as Yl,jsxs as kS}from"react/jsx-runtime";var Ae=e=>kS(r,{...e,children:[Yl("path",{d:"M15 8h.01"}),Yl("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"}),Yl("path",{d:"M3 16l5 -5c.928 -.893 2.072 -.893 3 0l5 5"}),Yl("path",{d:"M14 14l1 -1c.928 -.893 2.072 -.893 3 0l3 3"})]});import{jsx as Zr,jsxs as BS}from"react/jsx-runtime";var am=e=>BS(r,{...e,children:[Zr("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"}),Zr("path",{d:"M4 16l16 0"}),Zr("path",{d:"M4 12l3 -3c.928 -.893 2.072 -.893 3 0l4 4"}),Zr("path",{d:"M13 12l2 -2c.928 -.893 2.072 -.893 3 0l2 2"}),Zr("path",{d:"M14 7l.01 0"})]});import{jsx as Qr,jsxs as NS}from"react/jsx-runtime";var lm=e=>NS(r,{...e,children:[Qr("path",{d:"M15 8h.01"}),Qr("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"}),Qr("path",{d:"M3 16l5 -5c.928 -.893 2.072 -.893 3 0l4 4"}),Qr("path",{d:"M14 14l1 -1c.928 -.893 2.072 -.893 3 0l.5 .5"}),Qr("path",{d:"M15 19l2 2l4 -4"})]});import{jsx as Jr,jsxs as TS}from"react/jsx-runtime";var cm=e=>TS(r,{...e,children:[Jr("path",{d:"M15 8h.01"}),Jr("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"}),Jr("path",{d:"M3 16l5 -5c.928 -.893 2.072 -.893 3 0l5 5"}),Jr("path",{d:"M16.33 12.338c.574 -.054 1.155 .166 1.67 .662l3 3"}),Jr("path",{d:"M3 3l18 18"})]});import{jsx as a2,jsxs as RS}from"react/jsx-runtime";var im=e=>RS(r,{...e,children:[a2("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),a2("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 l2,jsxs as LS}from"react/jsx-runtime";var sm=e=>LS(r,{...e,children:[l2("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"}),l2("path",{d:"M4 13h3l3 3h4l3 -3h3"})]});import{jsx as pm,jsxs as ES}from"react/jsx-runtime";var dm=e=>ES(r,{...e,children:[pm("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"}),pm("path",{d:"M12 9h.01"}),pm("path",{d:"M11 12h1v4h1"})]});import{jsx as mm,jsxs as DS}from"react/jsx-runtime";var um=e=>DS(r,{...e,children:[mm("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"}),mm("path",{d:"M12 9h.01"}),mm("path",{d:"M11 12h1v4h1"})]});import{jsx as fm,jsxs as FS}from"react/jsx-runtime";var hm=e=>FS(r,{...e,children:[fm("path",{d:"M11 5l6 0"}),fm("path",{d:"M7 19l6 0"}),fm("path",{d:"M14 5l-4 14"})]});import{jsx as gm,jsxs as AS}from"react/jsx-runtime";var vm=e=>AS(r,{...e,children:[gm("path",{d:"M12 4l-8 4l8 4l8 -4l-8 -4"}),gm("path",{d:"M4 12l8 4l8 -4"}),gm("path",{d:"M4 16l8 4l8 -4"})]});import{jsx as c2,jsxs as OS}from"react/jsx-runtime";var bm=e=>OS(r,{...e,children:[c2("path",{d:"M12 6l-8 4l8 4l8 -4l-8 -4"}),c2("path",{d:"M4 14l8 4l8 -4"})]});import{jsx as i2,jsxs as _S}from"react/jsx-runtime";var ym=e=>_S(r,{...e,children:[i2("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"}),i2("path",{d:"M9 4l0 16"})]});import{jsx as Im,jsxs as zS}from"react/jsx-runtime";var Cm=e=>zS(r,{...e,children:[Im("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"}),Im("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"}),Im("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 Zl,jsxs as VS}from"react/jsx-runtime";var xm=e=>VS(r,{...e,children:[Zl("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"}),Zl("path",{d:"M4 9h8"}),Zl("path",{d:"M12 15h8"}),Zl("path",{d:"M12 4v16"})]});import{jsx as jr,jsxs as HS}from"react/jsx-runtime";var Pm=e=>HS(r,{...e,children:[jr("path",{d:"M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z"}),jr("path",{d:"M4 12h8"}),jr("path",{d:"M12 15h8"}),jr("path",{d:"M12 9h8"}),jr("path",{d:"M12 4v16"})]});import{jsx as Sm,jsxs as US}from"react/jsx-runtime";var wm=e=>US(r,{...e,children:[Sm("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"}),Sm("path",{d:"M10 4l4 16"}),Sm("path",{d:"M12 12l-8 2"})]});import{jsx as Ql,jsxs as GS}from"react/jsx-runtime";var Mm=e=>GS(r,{...e,children:[Ql("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"}),Ql("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"}),Ql("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"}),Ql("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 Fn,jsxs as $S}from"react/jsx-runtime";var km=e=>$S(r,{...e,children:[Fn("path",{d:"M12 12m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"}),Fn("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),Fn("path",{d:"M15 15l3.35 3.35"}),Fn("path",{d:"M9 15l-3.35 3.35"}),Fn("path",{d:"M5.65 5.65l3.35 3.35"}),Fn("path",{d:"M18.35 5.65l-3.35 3.35"})]});import{jsx as Bm,jsxs as WS}from"react/jsx-runtime";var Nm=e=>WS(r,{...e,children:[Bm("path",{d:"M3 12h1m8 -9v1m8 8h1m-15.4 -6.4l.7 .7m12.1 -.7l-.7 .7"}),Bm("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"}),Bm("path",{d:"M9.7 17l4.6 0"})]});import{jsx as s2}from"react/jsx-runtime";var Tm=e=>s2(r,{...e,children:s2("path",{d:"M13 3l0 7l6 0l-8 11l0 -7l-6 0l8 -11"})});import{jsx as p2,jsxs as qS}from"react/jsx-runtime";var Rm=e=>qS(r,{...e,children:[p2("path",{d:"M16 3l0 7l4 0l-6 11l0 -7l-4 0l6 -11"}),p2("path",{d:"M5 7h4M3 13h4M5 19h4"})]});import{jsx as d2,jsxs as XS}from"react/jsx-runtime";var Lm=e=>XS(r,{...e,children:[d2("path",{d:"M4 19l16 0"}),d2("path",{d:"M4 15l4 -6l4 2l4 -5l4 4"})]});import{jsx as An,jsxs as KS}from"react/jsx-runtime";var Em=e=>KS(r,{...e,children:[An("path",{d:"M3 3v18h18"}),An("path",{d:"M20 18v3"}),An("path",{d:"M16 16v5"}),An("path",{d:"M12 13v8"}),An("path",{d:"M8 16v5"}),An("path",{d:"M3 11c6 0 5 -5 9 -5s3 5 9 5"})]});import{jsx as On,jsxs as YS}from"react/jsx-runtime";var Dm=e=>YS(r,{...e,children:[On("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"}),On("path",{d:"M3 13c0 0, 8 0, 12 -4"}),On("path",{d:"M12 8h4v4"}),On("path",{d:"M15 2v1.44"}),On("path",{d:"M18.75 4.75l1.2 -1.2"}),On("path",{d:"M20 9h1.44"})]});import{jsx as Fm,jsxs as ZS}from"react/jsx-runtime";var Am=e=>ZS(r,{...e,children:[Fm("path",{d:"M4 19l16 0"}),Fm("path",{d:"M4 16l6 -6l4 4l5 -5"}),Fm("path",{d:"M15 8h5v5"})]});import{jsx as m2,jsxs as QS}from"react/jsx-runtime";var Om=e=>QS(r,{...e,children:[m2("path",{d:"M5 10h14"}),m2("path",{d:"M5 14h14"})]});import{jsx as _n,jsxs as JS}from"react/jsx-runtime";var _m=e=>JS(r,{...e,children:[_n("path",{d:"M3.5 5.5l1.5 1.5l2.5 -2.5"}),_n("path",{d:"M3.5 11.5l1.5 1.5l2.5 -2.5"}),_n("path",{d:"M3.5 17.5l1.5 1.5l2.5 -2.5"}),_n("path",{d:"M11 6l9 0"}),_n("path",{d:"M11 12l9 0"}),_n("path",{d:"M11 18l9 0"})]});import{jsx as Jl,jsxs as jS}from"react/jsx-runtime";var zm=e=>jS(r,{...e,children:[Jl("path",{d:"M12 10v8l8 -4z"}),Jl("path",{d:"M4 6h16"}),Jl("path",{d:"M4 12h4.5"}),Jl("path",{d:"M4 18h4.5"})]});import{jsx as Vm,jsxs as e4}from"react/jsx-runtime";var Hm=e=>e4(r,{...e,children:[Vm("path",{d:"M9 15l6 -6"}),Vm("path",{d:"M11 6l.463 -.536a5 5 0 0 1 7.071 7.072l-.534 .464"}),Vm("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 u2,jsxs as t4}from"react/jsx-runtime";var Um=e=>t4(r,{...e,children:[u2("path",{d:"M9.183 6.117a6 6 0 1 0 4.511 3.986"}),u2("path",{d:"M14.813 17.883a6 6 0 1 0 -4.496 -3.954"})]});import{jsx as jl,jsxs as o4}from"react/jsx-runtime";var Gm=e=>o4(r,{...e,children:[jl("path",{d:"M9 15l3 -3m2 -2l1 -1"}),jl("path",{d:"M11 6l.463 -.536a5 5 0 0 1 7.071 7.072l-.534 .464"}),jl("path",{d:"M3 3l18 18"}),jl("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 zn,jsxs as n4}from"react/jsx-runtime";var $m=e=>n4(r,{...e,children:[zn("path",{d:"M9 6l11 0"}),zn("path",{d:"M9 12l11 0"}),zn("path",{d:"M9 18l11 0"}),zn("path",{d:"M5 6l0 .01"}),zn("path",{d:"M5 12l0 .01"}),zn("path",{d:"M5 18l0 .01"})]});import{jsx as ea,jsxs as r4}from"react/jsx-runtime";var Wm=e=>r4(r,{...e,children:[ea("path",{d:"M11 6h9"}),ea("path",{d:"M11 12h9"}),ea("path",{d:"M12 18h8"}),ea("path",{d:"M4 16a2 2 0 1 1 4 0c0 .591 -.5 1 -1 1.5l-3 2.5h4"}),ea("path",{d:"M6 10v-6l-2 2"})]});import{jsx as qm,jsxs as a4}from"react/jsx-runtime";var Xm=e=>a4(r,{...e,children:[qm("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"}),qm("path",{d:"M11 16a1 1 0 1 0 2 0a1 1 0 0 0 -2 0"}),qm("path",{d:"M8 11v-4a4 4 0 1 1 8 0v4"})]});import{jsx as f2}from"react/jsx-runtime";var Km=e=>f2(r,{isFilled:!0,...e,children:f2("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 Ym,jsxs as l4}from"react/jsx-runtime";var Zm=e=>l4(r,{...e,children:[Ym("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"}),Ym("path",{d:"M3 12h13l-3 -3"}),Ym("path",{d:"M13 15l3 -3"})]});import{jsx as Qm,jsxs as c4}from"react/jsx-runtime";var Jm=e=>c4(r,{...e,children:[Qm("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"}),Qm("path",{d:"M9 12h12l-3 -3"}),Qm("path",{d:"M18 15l3 -3"})]});import{jsx as jm,jsxs as i4}from"react/jsx-runtime";var eu=e=>i4(r,{...e,children:[jm("path",{d:"M10 8v-2a2 2 0 0 1 2 -2h7a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-7a2 2 0 0 1 -2 -2v-2"}),jm("path",{d:"M15 12h-12l3 -3"}),jm("path",{d:"M6 15l-3 -3"})]});import{jsx as ec,jsxs as s4}from"react/jsx-runtime";var tu=e=>s4(r,{...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 h2,jsxs as p4}from"react/jsx-runtime";var ou=e=>p4(r,{...e,children:[h2("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"}),h2("path",{d:"M3 7l9 6l9 -6"})]});import{jsx as tc,jsxs as d4}from"react/jsx-runtime";var nu=e=>d4(r,{...e,children:[tc("path",{d:"M3 9l9 6l9 -6l-9 -6l-9 6"}),tc("path",{d:"M21 9v10a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-10"}),tc("path",{d:"M3 19l6 -6"}),tc("path",{d:"M15 13l6 6"})]});import{jsx as g2,jsxs as m4}from"react/jsx-runtime";var ru=e=>m4(r,{...e,children:[g2("path",{d:"M9 11a3 3 0 1 0 6 0a3 3 0 0 0 -6 0"}),g2("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 oc,jsxs as u4}from"react/jsx-runtime";var ta=e=>u4(r,{...e,children:[oc("path",{d:"M4 8v-2a2 2 0 0 1 2 -2h2"}),oc("path",{d:"M4 16v2a2 2 0 0 0 2 2h2"}),oc("path",{d:"M16 4h2a2 2 0 0 1 2 2v2"}),oc("path",{d:"M16 20h2a2 2 0 0 0 2 -2v-2"})]});import{jsx as nc,jsxs as f4}from"react/jsx-runtime";var au=e=>f4(r,{...e,children:[nc("path",{d:"M16 4l4 0l0 4"}),nc("path",{d:"M14 10l6 -6"}),nc("path",{d:"M8 20l-4 0l0 -4"}),nc("path",{d:"M4 20l6 -6"})]});import{jsx as v2}from"react/jsx-runtime";var lu=e=>v2(r,{...e,children:v2("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 cu,jsxs as h4}from"react/jsx-runtime";var iu=e=>h4(r,{...e,children:[cu("path",{d:"M8 9h8"}),cu("path",{d:"M8 13h6"}),cu("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 rc,jsxs as g4}from"react/jsx-runtime";var su=e=>g4(r,{...e,children:[rc("path",{d:"M12 11v.01"}),rc("path",{d:"M8 11v.01"}),rc("path",{d:"M16 11v.01"}),rc("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 oa,jsxs as v4}from"react/jsx-runtime";var pu=e=>v4(r,{...e,children:[oa("path",{d:"M8 9h8"}),oa("path",{d:"M8 13h6"}),oa("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"}),oa("path",{d:"M22 22l-5 -5"}),oa("path",{d:"M17 22l5 -5"})]});import{jsx as ac,jsxs as b4}from"react/jsx-runtime";var na=e=>b4(r,{...e,children:[ac("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"}),ac("path",{d:"M5 10a7 7 0 0 0 14 0"}),ac("path",{d:"M8 21l8 0"}),ac("path",{d:"M12 17l0 4"})]});import{jsx as lc,jsxs as y4}from"react/jsx-runtime";var ra=e=>y4(r,{...e,children:[lc("path",{d:"M15 19v-2a2 2 0 0 1 2 -2h2"}),lc("path",{d:"M15 5v2a2 2 0 0 0 2 2h2"}),lc("path",{d:"M5 15h2a2 2 0 0 1 2 2v2"}),lc("path",{d:"M5 9h2a2 2 0 0 0 2 -2v-2"})]});import{jsx as cc,jsxs as I4}from"react/jsx-runtime";var du=e=>I4(r,{...e,children:[cc("path",{d:"M18 10h-4v-4"}),cc("path",{d:"M20 4l-6 6"}),cc("path",{d:"M6 14h4v4"}),cc("path",{d:"M10 14l-6 6"})]});import{jsx as b2,jsxs as C4}from"react/jsx-runtime";var mu=e=>C4(r,{...e,children:[b2("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),b2("path",{d:"M9 12l6 0"})]});import{jsx as uu,jsxs as x4}from"react/jsx-runtime";var fu=e=>x4(r,{...e,children:[uu("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"}),uu("path",{d:"M11 4h2"}),uu("path",{d:"M12 17v.01"})]});import{jsx as ic,jsxs as P4}from"react/jsx-runtime";var hu=e=>P4(r,{...e,children:[ic("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"}),ic("path",{d:"M7 20h10"}),ic("path",{d:"M9 16v4"}),ic("path",{d:"M15 16v4"})]});import{jsx as aa,jsxs as S4}from"react/jsx-runtime";var gu=e=>S4(r,{...e,children:[aa("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"}),aa("path",{d:"M3 13h18"}),aa("path",{d:"M8 21h8"}),aa("path",{d:"M10 17l-.5 4"}),aa("path",{d:"M14 17l.5 4"})]});import{jsx as y2}from"react/jsx-runtime";var vu=e=>y2(r,{...e,children:y2("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 I2,jsxs as w4}from"react/jsx-runtime";var bu=e=>w4(r,{...e,children:[I2("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),I2("path",{d:"M12 6c.088 0 .175 0 .262 0a5 5 0 0 0 5.28 8.297a6 6 0 1 1 -5.542 -8.303z"})]});import{jsx as io,jsxs as M4}from"react/jsx-runtime";var ut=e=>M4(r,{...e,children:[io("path",{d:"M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z"}),io("path",{d:"M8 4l0 16"}),io("path",{d:"M16 4l0 16"}),io("path",{d:"M4 8l4 0"}),io("path",{d:"M4 16l4 0"}),io("path",{d:"M4 12l16 0"}),io("path",{d:"M16 8l4 0"}),io("path",{d:"M16 16l4 0"})]});import{jsx as C2}from"react/jsx-runtime";var yu=e=>C2(r,{...e,children:C2("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 x2,jsxs as k4}from"react/jsx-runtime";var Iu=e=>k4(r,{...e,children:[x2("path",{d:"M10 6h-3a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2 -2v-3"}),x2("path",{d:"M17 7m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"})]});import{jsx as la,jsxs as B4}from"react/jsx-runtime";var Cu=e=>B4(r,{...e,children:[la("path",{d:"M12 3l8 4.5l0 9l-8 4.5l-8 -4.5l0 -9l8 -4.5"}),la("path",{d:"M12 12l8 -4.5"}),la("path",{d:"M12 12l0 9"}),la("path",{d:"M12 12l-8 -4.5"}),la("path",{d:"M16 5.25l-8 4.5"})]});import{jsx as sc,jsxs as N4}from"react/jsx-runtime";var xu=e=>N4(r,{...e,children:[sc("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"}),sc("path",{d:"M8.5 10.5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),sc("path",{d:"M12.5 7.5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),sc("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 T4}from"react/jsx-runtime";var Pu=e=>T4(r,{...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 P2,jsxs as R4}from"react/jsx-runtime";var ft=e=>R4(r,{...e,children:[P2("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"}),P2("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 Su,jsxs as L4}from"react/jsx-runtime";var wu=e=>L4(r,{...e,children:[Su("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),Su("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"}),Su("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 Mu,jsxs as E4}from"react/jsx-runtime";var ku=e=>E4(r,{...e,children:[Mu("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"}),Mu("path",{d:"M18 8v-3a1 1 0 0 0 -1 -1h-13a1 1 0 0 0 -1 1v12a1 1 0 0 0 1 1h9"}),Mu("path",{d:"M16 9h2"})]});import{jsx as Bu,jsxs as D4}from"react/jsx-runtime";var Nu=e=>D4(r,{...e,children:[Bu("path",{d:"M14 6l7 7l-4 4"}),Bu("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"}),Bu("path",{d:"M4 20l1.768 -1.768"})]});import{jsx as pc,jsxs as F4}from"react/jsx-runtime";var Tu=e=>F4(r,{...e,children:[pc("path",{d:"M9 15l6 -6"}),pc("circle",{cx:"9.5",cy:"9.5",r:".5",fill:"currentColor"}),pc("circle",{cx:"14.5",cy:"14.5",r:".5",fill:"currentColor"}),pc("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"})]});import{jsx as S2}from"react/jsx-runtime";var Ru=e=>S2(r,{...e,children:S2("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 Lu,jsxs as A4}from"react/jsx-runtime";var Eu=e=>A4(r,{...e,children:[Lu("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"}),Lu("path",{d:"M15 7a2 2 0 0 1 2 2"}),Lu("path",{d:"M15 3a6 6 0 0 1 6 6"})]});import{jsx as Du,jsxs as O4}from"react/jsx-runtime";var ia=e=>O4(r,{...e,children:[Du("path",{d:"M15 4.5l-4 4l-4 1.5l-1.5 1.5l7 7l1.5 -1.5l1.5 -4l4 -4"}),Du("path",{d:"M9 15l-4.5 4.5"}),Du("path",{d:"M14.5 4l5.5 5.5"})]});import{jsx as w2}from"react/jsx-runtime";var ht=e=>w2(r,{...e,children:w2("path",{d:"M7 4v16l13 -8z"})});import{jsx as M2,jsxs as _4}from"react/jsx-runtime";var Fu=e=>_4(r,{...e,children:[M2("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),M2("path",{d:"M9 8v8l8 -4z"})]});import{jsx as k2,jsxs as z4}from"react/jsx-runtime";var sa=e=>z4(r,{...e,children:[k2("path",{d:"M12 5l0 14"}),k2("path",{d:"M5 12l14 0"})]});import{jsx as Au,jsxs as V4}from"react/jsx-runtime";var so=e=>V4(r,{...e,children:[Au("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"}),Au("path",{d:"M9 12h6"}),Au("path",{d:"M12 9v6"})]});import{jsx as Ou,jsxs as H4}from"react/jsx-runtime";var _u=e=>H4(r,{...e,children:[Ou("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"}),Ou("path",{d:"M17 9v-4a2 2 0 0 0 -2 -2h-6a2 2 0 0 0 -2 2v4"}),Ou("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 B2}from"react/jsx-runtime";var zu=e=>B2(r,{...e,children:B2("path",{d:"M3 12h4l3 8l4 -16l3 8h4"})});import{jsx as Vu,jsxs as U4}from"react/jsx-runtime";var pa=e=>U4(r,{...e,children:[Vu("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"}),Vu("path",{d:"M12 16v.01"}),Vu("path",{d:"M12 13a2 2 0 0 0 .914 -3.782a1.98 1.98 0 0 0 -2.414 .483"})]});import{jsx as N2,jsxs as G4}from"react/jsx-runtime";var Hu=e=>G4(r,{...e,children:[N2("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"}),N2("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 T2,jsxs as $4}from"react/jsx-runtime";var Uu=e=>$4(r,{...e,children:[T2("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),T2("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"})]});import{jsx as R2}from"react/jsx-runtime";var Gu=e=>R2(r,{isFilled:!0,...e,children:R2("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 L2}from"react/jsx-runtime";var $u=e=>L2(r,{...e,children:L2("path",{d:"M5 21v-16a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v16l-3 -2l-2 2l-2 -2l-2 2l-2 -2l-3 2m4 -14h6m-6 4h6m-2 4h2"})});import{jsx as E2,jsxs as W4}from"react/jsx-runtime";var Wu=e=>W4(r,{...e,children:[E2("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"}),E2("path",{d:"M9 11l2 2l4 -4"})]});import{jsx as D2,jsxs as q4}from"react/jsx-runtime";var qu=e=>q4(r,{...e,children:[D2("path",{d:"M15 14l4 -4l-4 -4"}),D2("path",{d:"M19 10h-11a4 4 0 1 0 0 8h1"})]});import{jsx as F2}from"react/jsx-runtime";var da=e=>F2(r,{...e,children:F2("path",{d:"M4.05 11a8 8 0 1 1 .5 4m-.5 5v-5h5"})});import{jsx as A2,jsxs as X4}from"react/jsx-runtime";var Xu=e=>X4(r,{...e,children:[A2("path",{d:"M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4"}),A2("path",{d:"M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4"})]});import{jsx as O2,jsxs as K4}from"react/jsx-runtime";var Ku=e=>K4(r,{...e,children:[O2("path",{d:"M19.933 13.041a8 8 0 1 1 -9.925 -8.788c3.899 -1 7.935 1.007 9.425 4.747"}),O2("path",{d:"M20 4v5h-5"})]});import{jsx as _2,jsxs as Y4}from"react/jsx-runtime";var Yu=e=>Y4(r,{...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 dc,jsxs as Z4}from"react/jsx-runtime";var Zu=e=>Z4(r,{...e,children:[dc("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"}),dc("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"}),dc("path",{d:"M21 11v-3a2 2 0 0 0 -2 -2h-6l3 3m0 -6l-3 3"}),dc("path",{d:"M3 13v3a2 2 0 0 0 2 2h6l-3 -3m0 6l3 -3"})]});import{jsx as z2}from"react/jsx-runtime";var ma=e=>z2(r,{...e,children:z2("path",{d:"M19.95 11a8 8 0 1 0 -.5 4m.5 5v-5h-5"})});import{jsx as Qu,jsxs as Q4}from"react/jsx-runtime";var Ju=e=>Q4(r,{...e,children:[Qu("path",{d:"M3.06 13a9 9 0 1 0 .49 -4.087"}),Qu("path",{d:"M3 4.001v5h5"}),Qu("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]});import{jsx as ju,jsxs as J4}from"react/jsx-runtime";var ef=e=>J4(r,{...e,children:[ju("path",{d:"M4 13a8 8 0 0 1 7 7a6 6 0 0 0 3 -5a9 9 0 0 0 6 -8a3 3 0 0 0 -3 -3a9 9 0 0 0 -8 6a6 6 0 0 0 -5 3"}),ju("path",{d:"M7 14a6 6 0 0 0 -3 6a6 6 0 0 0 6 -3"}),ju("path",{d:"M15 9m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]});import{jsx as V2,jsxs as j4}from"react/jsx-runtime";var tf=e=>j4(r,{...e,children:[V2("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"}),V2("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 H2,jsxs as ew}from"react/jsx-runtime";var of=e=>ew(r,{...e,children:[H2("path",{d:"M12 3v9h9"}),H2("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"})]});import{jsx as nf,jsxs as tw}from"react/jsx-runtime";var rf=e=>tw(r,{...e,children:[nf("path",{d:"M3 19a2 2 0 1 0 4 0a2 2 0 0 0 -4 0"}),nf("path",{d:"M19 7a2 2 0 1 0 0 -4a2 2 0 0 0 0 4z"}),nf("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 af,jsxs as ow}from"react/jsx-runtime";var lf=e=>ow(r,{...e,children:[af("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"}),af("path",{d:"M12 14m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),af("path",{d:"M14 4l0 4l-6 0l0 -4"})]});import{jsx as po,jsxs as nw}from"react/jsx-runtime";var cf=e=>nw(r,{...e,children:[po("path",{d:"M4 7v-1a2 2 0 0 1 2 -2h2"}),po("path",{d:"M4 17v1a2 2 0 0 0 2 2h2"}),po("path",{d:"M16 4h2a2 2 0 0 1 2 2v1"}),po("path",{d:"M16 20h2a2 2 0 0 0 2 -2v-1"}),po("path",{d:"M5 11h1v2h-1z"}),po("path",{d:"M10 11l0 2"}),po("path",{d:"M14 11h1v2h-1z"}),po("path",{d:"M19 11l0 2"})]});import{jsx as mc,jsxs as rw}from"react/jsx-runtime";var ua=e=>rw(r,{...e,children:[mc("path",{d:"M6 7m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),mc("path",{d:"M6 17m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),mc("path",{d:"M8.6 8.6l10.4 10.4"}),mc("path",{d:"M8.6 15.4l10.4 -10.4"})]});import{jsx as U2,jsxs as aw}from"react/jsx-runtime";var Vt=e=>aw(r,{...e,children:[U2("path",{d:"M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0"}),U2("path",{d:"M21 21l-6 -6"})]});import{jsx as G2,jsxs as lw}from"react/jsx-runtime";var sf=e=>lw(r,{...e,children:[G2("path",{d:"M10 14l11 -11"}),G2("path",{d:"M21 3l-6.5 18a.55 .55 0 0 1 -1 0l-3.5 -7l-7 -3.5a.55 .55 0 0 1 0 -1l18 -6.5"})]});import{jsx as uc,jsxs as cw}from"react/jsx-runtime";var pf=e=>cw(r,{...e,children:[uc("path",{d:"M3 4m0 3a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v2a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3z"}),uc("path",{d:"M3 12m0 3a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v2a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3z"}),uc("path",{d:"M7 8l0 .01"}),uc("path",{d:"M7 16l0 .01"})]});import{jsx as $2,jsxs as iw}from"react/jsx-runtime";var df=e=>iw(r,{...e,children:[$2("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"}),$2("path",{d:"M9 12a3 3 0 1 0 6 0a3 3 0 0 0 -6 0"})]});import{jsx as Ht,jsxs as sw}from"react/jsx-runtime";var mf=e=>sw(r,{...e,children:[Ht("path",{d:"M14 6m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),Ht("path",{d:"M4 6l8 0"}),Ht("path",{d:"M16 6l4 0"}),Ht("path",{d:"M8 12m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),Ht("path",{d:"M4 12l2 0"}),Ht("path",{d:"M10 12l10 0"}),Ht("path",{d:"M17 18m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),Ht("path",{d:"M4 18l11 0"}),Ht("path",{d:"M19 18l1 0"})]});import{jsx as fa,jsxs as pw}from"react/jsx-runtime";var uf=e=>pw(r,{...e,children:[fa("path",{d:"M6 12m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),fa("path",{d:"M18 6m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),fa("path",{d:"M18 18m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),fa("path",{d:"M8.7 10.7l6.6 -3.4"}),fa("path",{d:"M8.7 13.3l6.6 3.4"})]});import{jsx as W2,jsxs as dw}from"react/jsx-runtime";var ff=e=>dw(r,{...e,children:[W2("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"}),W2("path",{d:"M19 16l-2 3h4l-2 3"})]});import{jsx as hf,jsxs as mw}from"react/jsx-runtime";var gf=e=>mw(r,{...e,children:[hf("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"}),hf("path",{d:"M16 19h6"}),hf("path",{d:"M19 16v6"})]});import{jsx as vf,jsxs as uw}from"react/jsx-runtime";var bf=e=>uw(r,{...e,children:[vf("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"}),vf("path",{d:"M22 22l-5 -5"}),vf("path",{d:"M17 22l5 -5"})]});import{jsx as q2,jsxs as fw}from"react/jsx-runtime";var yf=e=>fw(r,{...e,children:[q2("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"}),q2("path",{d:"M9 11v-5a3 3 0 0 1 6 0v5"})]});import{jsx as fc,jsxs as hw}from"react/jsx-runtime";var If=e=>hw(r,{...e,children:[fc("path",{d:"M6 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),fc("path",{d:"M17 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),fc("path",{d:"M17 17h-11v-14h-2"}),fc("path",{d:"M6 5l14 1l-1 7h-13"})]});import{jsx as mo,jsxs as gw}from"react/jsx-runtime";var Cf=e=>gw(r,{...e,children:[mo("path",{d:"M5 9l4 0l0 -4"}),mo("path",{d:"M3 3l6 6"}),mo("path",{d:"M5 15l4 0l0 4"}),mo("path",{d:"M3 21l6 -6"}),mo("path",{d:"M19 9l-4 0l0 -4"}),mo("path",{d:"M15 9l6 -6"}),mo("path",{d:"M19 15l-4 0l0 4"}),mo("path",{d:"M15 15l6 6"})]});import{jsx as hc,jsxs as vw}from"react/jsx-runtime";var xf=e=>vw(r,{...e,children:[hc("path",{d:"M18 4l3 3l-3 3"}),hc("path",{d:"M18 20l3 -3l-3 -3"}),hc("path",{d:"M3 7h3a5 5 0 0 1 5 5a5 5 0 0 0 5 5h5"}),hc("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 X2,jsxs as bw}from"react/jsx-runtime";var Pf=e=>bw(r,{...e,children:[X2("path",{d:"M4 5v14l12 -7z"}),X2("path",{d:"M20 5l0 14"})]});import{jsx as K2,jsxs as yw}from"react/jsx-runtime";var Sf=e=>yw(r,{...e,children:[K2("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),K2("path",{d:"M5.7 5.7l12.6 12.6"})]});import{jsx as Y2,jsxs as Iw}from"react/jsx-runtime";var wf=e=>Iw(r,{...e,children:[Y2("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"}),Y2("path",{d:"M5 5 L19 19"})]});import{jsx as Fo,jsxs as Cw}from"react/jsx-runtime";var Mf=e=>Cw(r,{...e,children:[Fo("path",{d:"M4 10l0 6"}),Fo("path",{d:"M20 10l0 6"}),Fo("path",{d:"M7 9h10v8a1 1 0 0 1 -1 1h-8a1 1 0 0 1 -1 -1v-8a5 5 0 0 1 10 0"}),Fo("path",{d:"M8 3l1 2"}),Fo("path",{d:"M16 3l-1 2"}),Fo("path",{d:"M9 18l0 3"}),Fo("path",{d:"M15 18l0 3"})]});import{jsx as Z2,jsxs as xw}from"react/jsx-runtime";var kf=e=>xw(r,{...e,children:[Z2("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"}),Z2("path",{d:"M12 4a2 2 0 0 0 2 -2a2 2 0 0 0 -2 2"})]});import{jsx as Q2}from"react/jsx-runtime";var Bf=e=>Q2(r,{...e,children:Q2("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 ha,jsxs as Pw}from"react/jsx-runtime";var Nf=e=>Pw(r,{...e,children:[ha("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"}),ha("path",{d:"M3.6 9h16.8"}),ha("path",{d:"M3.6 15h16.8"}),ha("path",{d:"M11.5 3a17 17 0 0 0 0 18"}),ha("path",{d:"M12.5 3a17 17 0 0 1 0 18"})]});import{jsx as J2}from"react/jsx-runtime";var Tf=e=>J2(r,{...e,children:J2("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 Rf,jsxs as Sw}from"react/jsx-runtime";var Lf=e=>Sw(r,{...e,children:[Rf("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"}),Rf("path",{d:"M9 12a3 3 0 1 0 6 0a3 3 0 0 0 -6 0"}),Rf("path",{d:"M16.5 7.5v.01"})]});import{jsx as ga,jsxs as ww}from"react/jsx-runtime";var Ef=e=>ww(r,{...e,children:[ga("path",{d:"M8 11v5"}),ga("path",{d:"M8 8v.01"}),ga("path",{d:"M12 16v-5"}),ga("path",{d:"M16 16v-3a2 2 0 1 0 -4 0"}),ga("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 Df,jsxs as Mw}from"react/jsx-runtime";var Ff=e=>Mw(r,{...e,children:[Df("path",{d:"M14 12m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),Df("path",{d:"M12 9.765a3 3 0 1 0 0 4.47"}),Df("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 Ao,jsxs as kw}from"react/jsx-runtime";var Af=e=>kw(r,{...e,children:[Ao("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"}),Ao("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"}),Ao("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"}),Ao("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"}),Ao("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"}),Ao("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"}),Ao("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 Bw}from"react/jsx-runtime";var Of=e=>Bw(r,{...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 j2,jsxs as Nw}from"react/jsx-runtime";var _f=e=>Nw(r,{...e,children:[j2("path",{d:"M4 4l11.733 16h4.267l-11.733 -16z"}),j2("path",{d:"M4 20l6.768 -6.768m2.46 -2.46l6.772 -6.772"})]});import{jsx as gc,jsxs as Tw}from"react/jsx-runtime";var zf=e=>Tw(r,{...e,children:[gc("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),gc("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),gc("path",{d:"M13.41 10.59l2.59 -2.59"}),gc("path",{d:"M7 12a5 5 0 0 1 5 -5"})]});import{jsx as ev}from"react/jsx-runtime";var Vf=e=>ev(r,{...e,children:ev("path",{d:"M22 5h-5v5h-5v5h-5v5h-5"})});import{jsx as tv}from"react/jsx-runtime";var ba=e=>tv(r,{...e,children:tv("path",{d:"M12 17.75l-6.172 3.245l1.179 -6.873l-5 -4.867l6.9 -1l3.086 -6.253l3.086 6.253l6.9 1l-5 4.867l1.179 6.873z"})});import{jsx as ov}from"react/jsx-runtime";var Hf=e=>ov(r,{isFilled:!0,...e,children:ov("path",{d:"M8.243 7.34l-6.38 .925l-.113 .023a1 1 0 0 0 -.44 1.684l4.622 4.499l-1.09 6.355l-.013 .11a1 1 0 0 0 1.464 .944l5.706 -3l5.693 3l.1 .046a1 1 0 0 0 1.352 -1.1l-1.091 -6.355l4.624 -4.5l.078 -.085a1 1 0 0 0 -.633 -1.62l-6.38 -.926l-2.852 -5.78a1 1 0 0 0 -1.794 0l-2.853 5.78z"})});import{jsx as nv}from"react/jsx-runtime";var Uf=e=>nv(r,{isFilled:!0,...e,children:nv("path",{d:"M12 1a.993 .993 0 0 1 .823 .443l.067 .116l2.852 5.781l6.38 .925c.741 .108 1.08 .94 .703 1.526l-.07 .095l-.078 .086l-4.624 4.499l1.09 6.355a1.001 1.001 0 0 1 -1.249 1.135l-.101 -.035l-.101 -.046l-5.693 -3l-5.706 3c-.105 .055 -.212 .09 -.32 .106l-.106 .01a1.003 1.003 0 0 1 -1.038 -1.06l.013 -.11l1.09 -6.355l-4.623 -4.5a1.001 1.001 0 0 1 .328 -1.647l.113 -.036l.114 -.023l6.379 -.925l2.853 -5.78a.968 .968 0 0 1 .904 -.56zm0 3.274v12.476a1 1 0 0 1 .239 .029l.115 .036l.112 .05l4.363 2.299l-.836 -4.873a1 1 0 0 1 .136 -.696l.07 -.099l.082 -.09l3.546 -3.453l-4.891 -.708a1 1 0 0 1 -.62 -.344l-.073 -.097l-.06 -.106l-2.183 -4.424z"})});import{jsx as rv}from"react/jsx-runtime";var Gf=e=>rv(r,{...e,children:rv("path",{d:"M16 18a2 2 0 0 1 2 2a2 2 0 0 1 2 -2a2 2 0 0 1 -2 -2a2 2 0 0 1 -2 2zm0 -12a2 2 0 0 1 2 2a2 2 0 0 1 2 -2a2 2 0 0 1 -2 -2a2 2 0 0 1 -2 2zm-7 12a6 6 0 0 1 6 -6a6 6 0 0 1 -6 -6a6 6 0 0 1 -6 6a6 6 0 0 1 6 6z"})});import{jsx as av}from"react/jsx-runtime";var ya=e=>av(r,{...e,children:av("path",{d:"M5 5m0 2a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2z"})});import{jsx as lv,jsxs as Rw}from"react/jsx-runtime";var $f=e=>Rw(r,{...e,children:[lv("path",{d:"M5 12l14 0"}),lv("path",{d:"M16 6.5a4 2 0 0 0 -4 -1.5h-1a3.5 3.5 0 0 0 0 7h2a3.5 3.5 0 0 1 0 7h-1.5a4 2 0 0 1 -4 -1.5"})]});import{jsx as cv,jsxs as Lw}from"react/jsx-runtime";var Wf=e=>Lw(r,{...e,children:[cv("path",{d:"M12 12m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"}),cv("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 iv,jsxs as Ew}from"react/jsx-runtime";var qf=e=>Ew(r,{...e,children:[iv("path",{d:"M7 10h14l-4 -4"}),iv("path",{d:"M17 14h-14l4 4"})]});import{jsx as vc,jsxs as Dw}from"react/jsx-runtime";var Xf=e=>Dw(r,{...e,children:[vc("path",{d:"M16 3l4 4l-4 4"}),vc("path",{d:"M10 7l10 0"}),vc("path",{d:"M8 13l-4 4l4 4"}),vc("path",{d:"M4 17l9 0"})]});import{jsx as Kf,jsxs as Fw}from"react/jsx-runtime";var Yf=e=>Fw(r,{...e,children:[Kf("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"}),Kf("path",{d:"M3 10h18"}),Kf("path",{d:"M10 3v18"})]});import{jsx as sv,jsxs as Aw}from"react/jsx-runtime";var Ia=e=>Aw(r,{...e,children:[sv("path",{d:"M7.5 7.5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),sv("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 Vn,jsxs as Ow}from"react/jsx-runtime";var Zf=e=>Ow(r,{...e,children:[Vn("path",{d:"M12 12m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),Vn("path",{d:"M12 12m-8 0a8 8 0 1 0 16 0a8 8 0 1 0 -16 0"}),Vn("path",{d:"M12 2l0 2"}),Vn("path",{d:"M12 20l0 2"}),Vn("path",{d:"M20 12l2 0"}),Vn("path",{d:"M2 12l2 0"})]});import{jsx as Qf,jsxs as _w}from"react/jsx-runtime";var Jf=e=>_w(r,{...e,children:[Qf("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Qf("path",{d:"M12 12m-5 0a5 5 0 1 0 10 0a5 5 0 1 0 -10 0"}),Qf("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"})]});import{jsx as jf,jsxs as zw}from"react/jsx-runtime";var eh=e=>zw(r,{...e,children:[jf("path",{d:"M9 15v-7a3 3 0 0 1 6 0v7"}),jf("path",{d:"M9 11h6"}),jf("path",{d:"M5 19h14"})]});import{jsx as pv,jsxs as Vw}from"react/jsx-runtime";var th=e=>Vw(r,{...e,children:[pv("path",{d:"M6 4l12 0"}),pv("path",{d:"M12 4l0 16"})]});import{jsx as bc,jsxs as Hw}from"react/jsx-runtime";var oh=e=>Hw(r,{...e,children:[bc("path",{d:"M3 19h4l10.5 -10.5a2.828 2.828 0 1 0 -4 -4l-10.5 10.5v4"}),bc("path",{d:"M12.5 5.5l4 4"}),bc("path",{d:"M4.5 13.5l4 4"}),bc("path",{d:"M21 15v4h-8l4 -4z"})]});import{jsx as dv}from"react/jsx-runtime";var nh=e=>dv(r,{...e,children:dv("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 mv}from"react/jsx-runtime";var rh=e=>mv(r,{...e,children:mv("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 uv,jsxs as Uw}from"react/jsx-runtime";var ah=e=>Uw(r,{isFilled:!0,...e,children:[uv("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"}),uv("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 fv,jsxs as Gw}from"react/jsx-runtime";var lh=e=>Gw(r,{...e,children:[fv("path",{d:"M8 12m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),fv("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 Hn,jsxs as $w}from"react/jsx-runtime";var ch=e=>$w(r,{...e,children:[Hn("path",{d:"M9 6.371c0 4.418 -2.239 6.629 -5 6.629"}),Hn("path",{d:"M4 6.371h7"}),Hn("path",{d:"M5 9c0 2.144 2.252 3.908 6 4"}),Hn("path",{d:"M12 20l4 -9l4 9"}),Hn("path",{d:"M19.1 18h-6.2"}),Hn("path",{d:"M6.694 3l.793 .582"})]});import{jsx as Ca,jsxs as Ww}from"react/jsx-runtime";var rt=e=>Ww(r,{...e,children:[Ca("path",{d:"M4 7l16 0"}),Ca("path",{d:"M10 11l0 6"}),Ca("path",{d:"M14 11l0 6"}),Ca("path",{d:"M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12"}),Ca("path",{d:"M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3"})]});import{jsx as hv,jsxs as qw}from"react/jsx-runtime";var ih=e=>qw(r,{...e,children:[hv("path",{d:"M3 17l6 -6l4 4l8 -8"}),hv("path",{d:"M14 7l7 0l0 7"})]});import{jsx as gv,jsxs as Xw}from"react/jsx-runtime";var sh=e=>Xw(r,{...e,children:[gv("path",{d:"M7 5v5a5 5 0 0 0 10 0v-5"}),gv("path",{d:"M5 19h14"})]});import{jsx as vv,jsxs as Kw}from"react/jsx-runtime";var ph=e=>Kw(r,{...e,children:[vv("path",{d:"M9 14l-4 -4l4 -4"}),vv("path",{d:"M5 10h11a4 4 0 1 1 0 8h-1"})]});import{jsx as dh,jsxs as Yw}from"react/jsx-runtime";var mh=e=>Yw(r,{...e,children:[dh("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"}),dh("path",{d:"M9 16a1 1 0 1 0 2 0a1 1 0 0 0 -2 0"}),dh("path",{d:"M13 11v-4a4 4 0 1 1 8 0v4"})]});import{jsx as uh,jsxs as Zw}from"react/jsx-runtime";var Oo=e=>Zw(r,{...e,children:[uh("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"}),uh("path",{d:"M9 15l3 -3l3 3"}),uh("path",{d:"M12 12l0 9"})]});import{jsx as bv,jsxs as Qw}from"react/jsx-runtime";var xa=e=>Qw(r,{...e,children:[bv("path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),bv("path",{d:"M6 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2"})]});import{jsx as fh,jsxs as Jw}from"react/jsx-runtime";var hh=e=>Jw(r,{...e,children:[fh("path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),fh("path",{d:"M6 21v-2a4 4 0 0 1 4 -4h4"}),fh("path",{d:"M15 19l2 2l4 -4"})]});import{jsx as yc,jsxs as jw}from"react/jsx-runtime";var gh=e=>jw(r,{...e,children:[yc("path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),yc("path",{d:"M6 21v-2a4 4 0 0 1 4 -4h3"}),yc("path",{d:"M21 15h-2.5a1.5 1.5 0 0 0 0 3h1a1.5 1.5 0 0 1 0 3h-2.5"}),yc("path",{d:"M19 21v1m0 -8v1"})]});import{jsx as vh,jsxs as e5}from"react/jsx-runtime";var bh=e=>e5(r,{...e,children:[vh("path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),vh("path",{d:"M6 21v-2a4 4 0 0 1 4 -4h3.5"}),vh("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 Ic,jsxs as t5}from"react/jsx-runtime";var yh=e=>t5(r,{...e,children:[Ic("path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),Ic("path",{d:"M16 19h6"}),Ic("path",{d:"M19 16v6"}),Ic("path",{d:"M6 21v-2a4 4 0 0 1 4 -4h4"})]});import{jsx as Cc,jsxs as o5}from"react/jsx-runtime";var Ih=e=>o5(r,{...e,children:[Cc("path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),Cc("path",{d:"M6 21v-2a4 4 0 0 1 4 -4h3"}),Cc("path",{d:"M16 22l5 -5"}),Cc("path",{d:"M21 21.5v-4.5h-4.5"})]});import{jsx as xc,jsxs as n5}from"react/jsx-runtime";var Ch=e=>n5(r,{...e,children:[xc("path",{d:"M9 7m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"}),xc("path",{d:"M3 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2"}),xc("path",{d:"M16 3.13a4 4 0 0 1 0 7.75"}),xc("path",{d:"M21 21v-2a4 4 0 0 0 -3 -3.85"})]});import{jsx as xh,jsxs as r5}from"react/jsx-runtime";var Ph=e=>r5(r,{...e,children:[xh("path",{d:"M9 10a3 3 0 1 0 6 0a3 3 0 0 0 -6 0"}),xh("path",{d:"M6 21v-1a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v1"}),xh("path",{d:"M3 5a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14z"})]});import{jsx as Pa,jsxs as a5}from"react/jsx-runtime";var Sh=e=>a5(r,{...e,children:[Pa("path",{d:"M6 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}),Pa("path",{d:"M4 21v-2a4 4 0 0 1 4 -4h6"}),Pa("path",{d:"M16 3.13a4 4 0 0 1 0 7.75"}),Pa("path",{d:"M19 22v-6"}),Pa("path",{d:"M22 19l-3 -3l-3 3"})]});import{jsx as yv,jsxs as l5}from"react/jsx-runtime";var wh=e=>l5(r,{...e,children:[yv("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"}),yv("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 Mh,jsxs as c5}from"react/jsx-runtime";var kh=e=>c5(r,{...e,children:[Mh("path",{d:"M12 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0"}),Mh("path",{d:"M12 10m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}),Mh("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 Bh,jsxs as i5}from"react/jsx-runtime";var Sa=e=>i5(r,{...e,children:[Bh("path",{d:"M15 8a5 5 0 0 1 0 8"}),Bh("path",{d:"M17.7 5a9 9 0 0 1 0 14"}),Bh("path",{d:"M6 15h-2a1 1 0 0 1 -1 -1v-4a1 1 0 0 1 1 -1h2l3.5 -4.5a.8 .8 0 0 1 1.5 .5v14a.8 .8 0 0 1 -1.5 .5l-3.5 -4.5"})]});import{jsx as Iv,jsxs as s5}from"react/jsx-runtime";var wa=e=>s5(r,{...e,children:[Iv("path",{d:"M15 8a5 5 0 0 1 0 8"}),Iv("path",{d:"M6 15h-2a1 1 0 0 1 -1 -1v-4a1 1 0 0 1 1 -1h2l3.5 -4.5a.8 .8 0 0 1 1.5 .5v14a.8 .8 0 0 1 -1.5 .5l-3.5 -4.5"})]});import{jsx as Cv,jsxs as p5}from"react/jsx-runtime";var Ma=e=>p5(r,{...e,children:[Cv("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"}),Cv("path",{d:"M16 10l4 4m0 -4l-4 4"})]});import{jsx as xv}from"react/jsx-runtime";var Nh=e=>xv(r,{...e,children:xv("path",{d:"M7 10h3v-3l-3.5 -3.5a6 6 0 0 1 8 8l6 6a2 2 0 0 1 -3 3l-6 -6a6 6 0 0 1 -8 -8l3.5 3.5"})});import{jsx as Pv,jsxs as d5}from"react/jsx-runtime";var Ve=e=>d5(r,{...e,children:[Pv("path",{d:"M18 6l-12 12"}),Pv("path",{d:"M6 6l12 12"})]});import{jsx as Sv,jsxs as m5}from"react/jsx-runtime";var Th=e=>m5(r,{...e,children:[Sv("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),Sv("path",{d:"M10 10l4 4m0 -4l-4 4"})]});import{jsx as wv}from"react/jsx-runtime";var Rh=e=>wv(r,{isFilled:!0,...e,children:wv("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 Mv,jsxs as u5}from"react/jsx-runtime";var Lh=e=>u5(r,{...e,children:[Mv("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"}),Mv("path",{d:"M9 9l6 6m0 -6l-6 6"})]});import{jsx as Pc,jsxs as f5}from"react/jsx-runtime";var Eh=e=>f5(r,{...e,children:[Pc("path",{d:"M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0"}),Pc("path",{d:"M7 10l6 0"}),Pc("path",{d:"M10 7l0 6"}),Pc("path",{d:"M21 21l-6 -6"})]});import{jsx as Dh,jsxs as h5}from"react/jsx-runtime";var Fh=e=>h5(r,{...e,children:[Dh("path",{d:"M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0"}),Dh("path",{d:"M7 10l6 0"}),Dh("path",{d:"M21 21l-6 -6"})]});var It=(u=>(u["48AlertFeatured"]="48AlertFeatured",u["48SuccessFeatured"]="48SuccessFeatured",u.AlertCircle="AlertCircle",u.AlertOctagon="AlertOctagon",u.AlertTriangle="AlertTriangle",u.Apps="Apps",u.ArrowBarDown="ArrowBarDown",u.ArrowBarLeft="ArrowBarLeft",u.ArrowBarRight="ArrowBarRight",u.ArrowBarToDown="ArrowBarToDown",u.ArrowBarToLeft="ArrowBarToLeft",u.ArrowBarToRight="ArrowBarToRight",u.ArrowBarToUp="ArrowBarToUp",u.ArrowBarUp="ArrowBarUp",u.Archive="Archive",u.ArrowDown="ArrowDown",u.ArrowDownLeft="ArrowDownLeft",u.ArrowDownNarrow="ArrowDownNarrow",u.ArrowDownRight="ArrowDownRight",u.ArrowLeft="ArrowLeft",u.ArrowLeftNarrow="ArrowLeftNarrow",u.ArrowRight="ArrowRight",u.ArrowRightNarrow="ArrowRightNarrow",u.ArrowUp="ArrowUp",u.ArrowUpLeft="ArrowUpLeft",u.ArrowUpNarrow="ArrowUpNarrow",u.ArrowUpRight="ArrowUpRight",u.Attachment="Attachment",u.BarChart="BarChart",u.BarChartSquare="BarChartSquare",u.Bell="Bell",u.Bold="Bold",u.Bookmark="Bookmark",u.BookmarkCheck="BookmarkCheck",u.BookmarkCheckFill="BookmarkCheckFill",u.BookmarkFill="BookmarkFill",u.BookmarkMinus="BookmarkMinus",u.BookmarkPlus="BookmarkPlus",u.BookmarkX="BookmarkX",u.BookOpen="BookOpen",u.BoxLines="BoxLines",u.BoxText="BoxText",u.BracketsCheck="BracketsCheck",u.BracketsEllipses="BracketsEllipses",u.BrickWall="BrickWall",u.Briefcase="Briefcase",u.Building="Building",u.Calculator="Calculator",u.Calendar="Calendar",u.Certificate="Certificate",u.Check="Check",u.CheckCircle="CheckCircle",u.CheckCircleBroken="CheckCircleBroken",u.CheckFill="CheckFill",u.CheckVerified="CheckVerified",u.CheckVerifiedFill="CheckVerifiedFill",u.ChevronDown="ChevronDown",u.ChevronDownDouble="ChevronDownDouble",u.ChevronDownLeft="ChevronDownLeft",u.ChevronDownLeftDouble="ChevronDownLeftDouble",u.ChevronDownRight="ChevronDownRight",u.ChevronDownRightDouble="ChevronDownRightDouble",u.ChevronLeft="ChevronLeft",u.ChevronLeftDouble="ChevronLeftDouble",u.ChevronRight="ChevronRight",u.ChevronRightDouble="ChevronRightDouble",u.ChevronSelectorVertical="ChevronSelectorVertical",u.ChevronUp="ChevronUp",u.ChevronUpDouble="ChevronUpDouble",u.ChevronUpLeft="ChevronUpLeft",u.ChevronUpLeftDouble="ChevronUpLeftDouble",u.ChevronUpRight="ChevronUpRight",u.ChevronUpRightDouble="ChevronUpRightDouble",u.Click="Click",u.Clock="Clock",u.ClockFastForward="ClockFastForward",u.ClockPlay="ClockPlay",u.ClockRewind="ClockRewind",u.Clone="Clone",u.Code="Code",u.CodeBrowser="CodeBrowser",u.CodeCircle="CodeCircle",u.Colors="Colors",u.ColumnEdit="ColumnEdit",u.Copy="Copy",u.Copy2="Copy2",u.CopyCheck="CopyCheck",u.CreditCard="CreditCard",u.Cube="Cube",u.CubeOutline="CubeOutline",u.CursorBox="CursorBox",u.Dataflow="Dataflow",u.Dataflow2="Dataflow2",u.Dataflow3="Dataflow3",u.DistributeHorizontal="DistributeHorizontal",u.Dollar="Dollar",u.DollarCircle="DollarCircle",u.Dot="Dot",u.DotFill="DotFill",u.DotsGrid="DotsGrid",u.DotsHorizontal="DotsHorizontal",u.DotsVertical="DotsVertical",u.Download="Download",u.Edit="Edit",u.Editable="Editable",u.Expand="Expand",u.ExternalLink="ExternalLink",u.ExternalLink2="ExternalLink2",u.Eye="Eye",u.EyeHidden="EyeHidden",u.EyeHidden2="EyeHidden2",u.FaceAngry="FaceAngry",u.FaceLaugh="FaceLaugh",u.FaceSmile="FaceSmile",u.File="File",u.FileCheck="FileCheck",u.FileCsv="FileCsv",u.FileDownload="FileDownload",u.FileJson="FileJson",u.FileList="FileList",u.FileMusic="FileMusic",u.FilePdf="FilePdf",u.Files="Files",u.FileSpreadsheet="FileSpreadsheet",u.FileText="FileText",u.FileUpload="FileUpload",u.FileXls="FileXls",u.FileXlsx="FileXlsx",u.FileZip="FileZip",u.Filter="Filter",u.Filter2="Filter2",u.Flag="Flag",u.Flag2="Flag2",u.FlagFill="FlagFill",u.Focus="Focus",u.Folder="Folder",u.FolderExport="FolderExport",u.FolderImport="FolderImport",u.GraduationCap="GraduationCap",u.GripVertical="GripVertical",u.Hand="Hand",u.HandShield="HandShield",u.Hash="Hash",u.HeadsetMic="HeadsetMic",u.Heart="Heart",u.HeartFill="HeartFill",u.House="House",u.HouseLine="HouseLine",u.Image="Image",u.Image2="Image2",u.ImageCheck="ImageCheck",u.ImageOff="ImageOff",u.Import="Import",u.Inbox="Inbox",u.InfoCircle="InfoCircle",u.InfoHexagon="InfoHexagon",u.Italic="Italic",u.LayersMultiple="LayersMultiple",u.LayersSingle="LayersSingle",u.Layout="Layout",u.Layout2="Layout2",u.LayoutColumns="LayoutColumns",u.LayoutCustom="LayoutCustom",u.LayoutStuffed="LayoutStuffed",u.LayoutTile="LayoutTile",u.LifeBuoy="LifeBuoy",u.Lightbulb="Lightbulb",u.Lightning="Lightning",u.LightningFast="LightningFast",u.LineChart="LineChart",u.LineChartBar="LineChartBar",u.LineChartBreakoutSquare="LineChartBreakoutSquare",u.LineChartUp="LineChartUp",u.Lines="Lines",u.LinesCheck="LinesCheck",u.LinesPlay="LinesPlay",u.Link="Link",u.Link2="Link2",u.LinkOff="LinkOff",u.ListBullet="ListBullet",u.ListOrder="ListOrder",u.Lock="Lock",u.LockFill="LockFill",u.LogIn="LogIn",u.LogOut="LogOut",u.LogOut2="LogOut2",u.MagicWand="MagicWand",u.Mail="Mail",u.MailOpen="MailOpen",u.MapPin="MapPin",u.Maximize="Maximize",u.Maximize2="Maximize2",u.MessageCircle="MessageCircle",u.MessageSquare="MessageSquare",u.MessageSquare2="MessageSquare2",u.MessageXSquare="MessageXSquare",u.Microphone="Microphone",u.Minimize="Minimize",u.Minimize2="Minimize2",u.MinusCircle="MinusCircle",u.Mobile="Mobile",u.Monitor="Monitor",u.Monitor2="Monitor2",u.Moon="Moon",u.MoonCircle="MoonCircle",u.Movie="Movie",u.NavigationPointer="NavigationPointer",u.NotificationBox="NotificationBox",u.Package="Package",u.Palette="Palette",u.PasscodeLock="PasscodeLock",u.Pause="Pause",u.PauseCircle="PauseCircle",u.PCSetup="PCSetup",u.Pen="Pen",u.PercentageCircle="PercentageCircle",u.Perspective="Perspective",u.PhoneCall="PhoneCall",u.Pin="Pin",u.Play="Play",u.PlayCircle="PlayCircle",u.Plus="Plus",u.PlusCircle="PlusCircle",u.Printer="Printer",u.Pulse="Pulse",u.QuestionCircle="QuestionCircle",u.Quote="Quote",u.RadioButton="RadioButton",u.RadioButtonFill="RadioButtonFill",u.Receipt="Receipt",u.ReceiptCheck="ReceiptCheck",u.Redo="Redo",u.Refresh="Refresh",u.Refresh2="Refresh2",u.Refresh3="Refresh3",u.Repeat="Repeat",u.Replace="Replace",u.Replay="Replay",u.Restore="Restore",u.Rocket="Rocket",u.RoundChart="RoundChart",u.RoundChart2="RoundChart2",u.Route="Route",u.Save="Save",u.ScanDots="ScanDots",u.Scissors="Scissors",u.Search="Search",u.Send="Send",u.Server="Server",u.Settings="Settings",u.Settings2="Settings2",u.Share="Share",u.ShieldLightning="ShieldLightning",u.ShieldPlus="ShieldPlus",u.ShieldRemove="ShieldRemove",u.ShoppingBag="ShoppingBag",u.ShoppingCart="ShoppingCart",u.Shrink="Shrink",u.Shuffle="Shuffle",u.SkipForward="SkipForward",u.SlashCircle="SlashCircle",u.SlashOctagon="SlashOctagon",u.SocialAndroid="SocialAndroid",u.SocialApple="SocialApple",u.SocialGithub="SocialGithub",u.SocialGlobe="SocialGlobe",u.SocialGoogle="SocialGoogle",u.SocialInstagram="SocialInstagram",u.SocialLinkedin="SocialLinkedin",u.SocialMastercard="SocialMastercard",u.SocialReact="SocialReact",u.SocialVisa="SocialVisa",u.SocialX="SocialX",u.Speedometer="Speedometer",u.Stairs="Stairs",u.Star="Star",u.StarFill="StarFill",u.StarHalf="StarHalf",u.Stars="Stars",u.Stop="Stop",u.Strikethrough="Strikethrough",u.Sun="Sun",u.Swap="Swap",u.SwitchHorizontal="SwitchHorizontal",u.Table="Table",u.Tag="Tag",u.Target="Target",u.Target2="Target2",u.TextFormat="TextFormat",u.TextFormat2="TextFormat2",u.TextHighlight="TextHighlight",u.ThumbsDown="ThumbsDown",u.ThumbsUp="ThumbsUp",u.ThumbsUpFill="ThumbsUpFill",u.Toggle="Toggle",u.Translate="Translate",u.Trash="Trash",u.Trending="Trending",u.Underline="Underline",u.Undo="Undo",u.Unlock="Unlock",u.UploadCloud="UploadCloud",u.User="User",u.UserCheck="UserCheck",u.UserDollar="UserDollar",u.UserEdit="UserEdit",u.UserPlus="UserPlus",u.UserRight="UserRight",u.Users="Users",u.UserSquare="UserSquare",u.UsersUp="UsersUp",u.UserVoice="UserVoice",u.Video="Video",u.VideoChat="VideoChat",u.Volume="Volume",u.VolumeDown="VolumeDown",u.VolumeMute="VolumeMute",u.Wrench="Wrench",u.X="X",u.XCircle="XCircle",u.XCircleFill="XCircleFill",u.XSquare="XSquare",u.ZoomIn="ZoomIn",u.ZoomOut="ZoomOut",u))(It||{});import{jsx as f}from"react/jsx-runtime";function Ce({name:e,...t}){switch(e){case"48AlertFeatured":return f(hs,{...t});case"48SuccessFeatured":return f(gs,{...t});case"AlertCircle":return f(To,{...t});case"AlertOctagon":return f(bs,{...t});case"AlertTriangle":return f(Is,{...t});case"ArrowBarDown":return f(Ss,{...t});case"ArrowBarLeft":return f(ws,{...t});case"ArrowBarRight":return f(Ms,{...t});case"ArrowBarToDown":return f(ks,{...t});case"ArrowBarToLeft":return f(Bs,{...t});case"ArrowBarToRight":return f(Ns,{...t});case"ArrowBarToUp":return f(Ts,{...t});case"ArrowBarUp":return f(Rs,{...t});case"Apps":return f(Cs,{...t});case"Archive":return f(Ps,{...t});case"ArrowDown":return f(Es,{...t});case"ArrowDownLeft":return f(Ds,{...t});case"ArrowDownNarrow":return f(As,{...t});case"ArrowDownRight":return f(Os,{...t});case"ArrowLeft":return f(zs,{...t});case"ArrowLeftNarrow":return f(Hs,{...t});case"ArrowRight":return f(Gs,{...t});case"ArrowRightNarrow":return f(Ws,{...t});case"ArrowUp":return f(Xs,{...t});case"ArrowUpLeft":return f(Ks,{...t});case"ArrowUpNarrow":return f(Zs,{...t});case"ArrowUpRight":return f(Qs,{...t});case"Attachment":return f(Js,{...t});case"BarChart":return f(js,{...t});case"BarChartSquare":return f(ep,{...t});case"Bell":return f(tp,{...t});case"Bold":return f(op,{...t});case"BookOpen":return f(ip,{...t});case"Bookmark":return f(np,{...t});case"BookmarkCheck":return f(is,{...t});case"BookmarkCheckFill":return f(ss,{...t});case"BookmarkFill":return f(rp,{...t});case"BookmarkMinus":return f(ap,{...t});case"BookmarkPlus":return f(ds,{...t});case"BookmarkX":return f(cp,{...t});case"BoxLines":return f(sp,{...t});case"BoxText":return f(dp,{...t});case"BracketsCheck":return f(up,{...t});case"BracketsEllipses":return f(fp,{...t});case"BrickWall":return f(hp,{...t});case"Briefcase":return f(gp,{...t});case"Building":return f(ms,{...t});case"Calculator":return f(vp,{...t});case"Calendar":return f(Lr,{...t});case"Certificate":return f(bp,{...t});case"Check":return f(Ft,{...t});case"CheckCircle":return f(Ro,{...t});case"CheckCircleBroken":return f(yp,{...t});case"CheckFill":return f(Ip,{...t});case"CheckVerified":return f(Cp,{...t});case"CheckVerifiedFill":return f(xp,{...t});case"ChevronDown":return f(Er,{...t});case"ChevronDownDouble":return f(Pp,{...t});case"ChevronDownLeft":return f(Sp,{...t});case"ChevronDownLeftDouble":return f(wp,{...t});case"ChevronDownRight":return f(Mp,{...t});case"ChevronDownRightDouble":return f(kp,{...t});case"ChevronLeft":return f(At,{...t});case"ChevronLeftDouble":return f(Bp,{...t});case"ChevronRight":return f(mt,{...t});case"ChevronRightDouble":return f(Dr,{...t});case"ChevronSelectorVertical":return f(Np,{...t});case"ChevronUp":return f(Ot,{...t});case"ChevronUpDouble":return f(Tp,{...t});case"ChevronUpLeft":return f(Rp,{...t});case"ChevronUpLeftDouble":return f(Lp,{...t});case"ChevronUpRight":return f(Ep,{...t});case"ChevronUpRightDouble":return f(Dp,{...t});case"Click":return f(Fp,{...t});case"Clock":return f(Ap,{...t});case"ClockFastForward":return f(Op,{...t});case"ClockPlay":return f(zp,{...t});case"ClockRewind":return f(Vp,{...t});case"Clone":return f(Hp,{...t});case"Code":return f(Gp,{...t});case"CodeBrowser":return f($p,{...t});case"CodeCircle":return f(qp,{...t});case"Colors":return f(Kp,{...t});case"ColumnEdit":return f(us,{...t});case"Copy":return f(Yp,{...t});case"Copy2":return f(Zp,{...t});case"CopyCheck":return f(Jp,{...t});case"Files":return f(_d,{...t});case"CreditCard":return f(jp,{...t});case"Cube":return f(ed,{...t});case"CubeOutline":return f(td,{...t});case"CursorBox":return f(Ar,{...t});case"Dataflow":return f(od,{...t});case"Dataflow2":return f(nd,{...t});case"Dataflow3":return f(rd,{...t});case"DistributeHorizontal":return f(ld,{...t});case"Dollar":return f(cd,{...t});case"DollarCircle":return f(sd,{...t});case"Dot":return f(pd,{...t});case"DotFill":return f(dd,{...t});case"DotsGrid":return f(md,{...t});case"DotsHorizontal":return f(fd,{...t});case"DotsVertical":return f(Bn,{...t});case"Download":return f(vd,{...t});case"Edit":return f(bd,{...t});case"Editable":return f(Id,{...t});case"Expand":return f(Cd,{...t});case"ExternalLink":return f(Pd,{...t});case"ExternalLink2":return f(wd,{...t});case"Eye":return f(Md,{...t});case"EyeHidden":return f(Bd,{...t});case"EyeHidden2":return f(Nd,{...t});case"FaceAngry":return f(Td,{...t});case"FaceLaugh":return f(Rd,{...t});case"FaceSmile":return f(Ld,{...t});case"File":return f(Eo,{...t});case"FileCheck":return f(Dd,{...t});case"FileCsv":return f(Vr,{...t});case"FileDownload":return f(Fd,{...t});case"FileJson":return f(Hr,{...t});case"FileList":return f(Ad,{...t});case"FileMusic":return f(nt,{...t});case"FilePdf":return f(Do,{...t});case"FileSpreadsheet":return f(Gr,{...t});case"FileText":return f(zt,{...t});case"FileUpload":return f(zd,{...t});case"FileXls":return f(Wr,{...t});case"FileXlsx":return f(qr,{...t});case"FileZip":return f(yt,{...t});case"Filter":return f(Vd,{...t});case"Filter2":return f(Xr,{...t});case"Flag":return f(Ud,{...t});case"Flag2":return f(Gd,{...t});case"FlagFill":return f($d,{...t});case"Focus":return f(Wd,{...t});case"Folder":return f(qd,{...t});case"FolderExport":return f(Xd,{...t});case"FolderImport":return f(Kd,{...t});case"GraduationCap":return f(Yd,{...t});case"GripVertical":return f(Zd,{...t});case"Hand":return f(Qd,{...t});case"HandShield":return f(Jd,{...t});case"Hash":return f(jd,{...t});case"HeadsetMic":return f(em,{...t});case"Heart":return f(tm,{...t});case"HeartFill":return f(om,{...t});case"House":return f(rm,{...t});case"HouseLine":return f(Yr,{...t});case"Image":return f(Ae,{...t});case"Image2":return f(am,{...t});case"ImageCheck":return f(lm,{...t});case"ImageOff":return f(cm,{...t});case"Import":return f(im,{...t});case"Inbox":return f(sm,{...t});case"InfoCircle":return f(dm,{...t});case"InfoHexagon":return f(um,{...t});case"Italic":return f(hm,{...t});case"LayersMultiple":return f(vm,{...t});case"LayersSingle":return f(bm,{...t});case"Layout":return f(ym,{...t});case"Layout2":return f(Cm,{...t});case"LayoutColumns":return f(xm,{...t});case"LayoutCustom":return f(Pm,{...t});case"LayoutStuffed":return f(wm,{...t});case"LayoutTile":return f(Mm,{...t});case"LifeBuoy":return f(km,{...t});case"Lightbulb":return f(Nm,{...t});case"Lightning":return f(Tm,{...t});case"LightningFast":return f(Rm,{...t});case"LineChartBar":return f(Em,{...t});case"LineChartBreakoutSquare":return f(Dm,{...t});case"LineChart":return f(Lm,{...t});case"LineChartUp":return f(Am,{...t});case"Lines":return f(Om,{...t});case"LinesCheck":return f(_m,{...t});case"LinesPlay":return f(zm,{...t});case"Link":return f(Hm,{...t});case"Link2":return f(Um,{...t});case"LinkOff":return f(Gm,{...t});case"ListBullet":return f($m,{...t});case"ListOrder":return f(Wm,{...t});case"Lock":return f(Xm,{...t});case"LockFill":return f(Km,{...t});case"LogIn":return f(Zm,{...t});case"LogOut":return f(Jm,{...t});case"LogOut2":return f(eu,{...t});case"MagicWand":return f(tu,{...t});case"Mail":return f(ou,{...t});case"MailOpen":return f(nu,{...t});case"MapPin":return f(ru,{...t});case"Maximize":return f(ta,{...t});case"Maximize2":return f(au,{...t});case"MessageCircle":return f(lu,{...t});case"MessageSquare":return f(iu,{...t});case"MessageSquare2":return f(su,{...t});case"MessageXSquare":return f(pu,{...t});case"Microphone":return f(na,{...t});case"Minimize":return f(ra,{...t});case"Minimize2":return f(du,{...t});case"MinusCircle":return f(mu,{...t});case"Mobile":return f(fu,{...t});case"Monitor":return f(hu,{...t});case"Monitor2":return f(gu,{...t});case"Moon":return f(vu,{...t});case"MoonCircle":return f(bu,{...t});case"Movie":return f(ut,{...t});case"NavigationPointer":return f(yu,{...t});case"NotificationBox":return f(Iu,{...t});case"Package":return f(Cu,{...t});case"Palette":return f(xu,{...t});case"PasscodeLock":return f(Pu,{...t});case"Pause":return f(ft,{...t});case"PauseCircle":return f(wu,{...t});case"PCSetup":return f(ku,{...t});case"Pen":return f(Nu,{...t});case"PercentageCircle":return f(Tu,{...t});case"Perspective":return f(Ru,{...t});case"PhoneCall":return f(Eu,{...t});case"Pin":return f(ia,{...t});case"Play":return f(ht,{...t});case"PlayCircle":return f(Fu,{...t});case"Plus":return f(sa,{...t});case"PlusCircle":return f(so,{...t});case"Printer":return f(_u,{...t});case"Pulse":return f(zu,{...t});case"QuestionCircle":return f(pa,{...t});case"Quote":return f(Hu,{...t});case"RadioButton":return f(Uu,{...t});case"RadioButtonFill":return f(Gu,{...t});case"Receipt":return f($u,{...t});case"ReceiptCheck":return f(Wu,{...t});case"Redo":return f(qu,{...t});case"Refresh":return f(da,{...t});case"Refresh2":return f(Xu,{...t});case"Refresh3":return f(Ku,{...t});case"Repeat":return f(Yu,{...t});case"Replace":return f(Zu,{...t});case"Replay":return f(ma,{...t});case"Restore":return f(Ju,{...t});case"Rocket":return f(ef,{...t});case"RoundChart":return f(tf,{...t});case"RoundChart2":return f(of,{...t});case"Route":return f(rf,{...t});case"Save":return f(lf,{...t});case"ScanDots":return f(cf,{...t});case"Scissors":return f(ua,{...t});case"Search":return f(Vt,{...t});case"Send":return f(sf,{...t});case"Server":return f(pf,{...t});case"Settings":return f(df,{...t});case"Settings2":return f(mf,{...t});case"Share":return f(uf,{...t});case"ShieldLightning":return f(ff,{...t});case"ShieldPlus":return f(gf,{...t});case"ShieldRemove":return f(bf,{...t});case"ShoppingBag":return f(yf,{...t});case"ShoppingCart":return f(If,{...t});case"Shrink":return f(Cf,{...t});case"Shuffle":return f(xf,{...t});case"SkipForward":return f(Pf,{...t});case"SlashCircle":return f(Sf,{...t});case"SlashOctagon":return f(wf,{...t});case"SocialAndroid":return f(Mf,{...t});case"SocialApple":return f(kf,{...t});case"SocialGithub":return f(Bf,{...t});case"SocialGlobe":return f(Nf,{...t});case"SocialGoogle":return f(Tf,{...t});case"SocialInstagram":return f(Lf,{...t});case"SocialLinkedin":return f(Ef,{...t});case"SocialMastercard":return f(Ff,{...t});case"SocialReact":return f(Af,{...t});case"SocialVisa":return f(Of,{...t});case"SocialX":return f(_f,{...t});case"Speedometer":return f(zf,{...t});case"Stairs":return f(Vf,{...t});case"Star":return f(ba,{...t});case"StarFill":return f(Hf,{...t});case"StarHalf":return f(Uf,{...t});case"Stars":return f(Gf,{...t});case"Stop":return f(ya,{...t});case"Strikethrough":return f($f,{...t});case"Sun":return f(Wf,{...t});case"Swap":return f(qf,{...t});case"SwitchHorizontal":return f(Xf,{...t});case"Table":return f(Yf,{...t});case"Tag":return f(Ia,{...t});case"Target":return f(Zf,{...t});case"Target2":return f(Jf,{...t});case"TextFormat":return f(eh,{...t});case"TextFormat2":return f(th,{...t});case"TextHighlight":return f(oh,{...t});case"ThumbsDown":return f(nh,{...t});case"ThumbsUp":return f(rh,{...t});case"ThumbsUpFill":return f(ah,{...t});case"Toggle":return f(lh,{...t});case"Translate":return f(ch,{...t});case"Trash":return f(rt,{...t});case"Trending":return f(ih,{...t});case"Underline":return f(sh,{...t});case"Undo":return f(ph,{...t});case"Unlock":return f(mh,{...t});case"UploadCloud":return f(Oo,{...t});case"User":return f(xa,{...t});case"UserCheck":return f(hh,{...t});case"UserDollar":return f(gh,{...t});case"UserEdit":return f(bh,{...t});case"UserPlus":return f(yh,{...t});case"UserRight":return f(Ih,{...t});case"UserSquare":return f(Ph,{...t});case"Users":return f(Ch,{...t});case"UsersUp":return f(Sh,{...t});case"UserVoice":return f(fs,{...t});case"Video":return f(wh,{...t});case"VideoChat":return f(kh,{...t});case"Volume":return f(Sa,{...t});case"VolumeDown":return f(wa,{...t});case"VolumeMute":return f(Ma,{...t});case"Wrench":return f(Nh,{...t});case"X":return f(Ve,{...t});case"XCircle":return f(Th,{...t});case"XCircleFill":return f(Rh,{...t});case"XSquare":return f(Lh,{...t});case"ZoomIn":return f(Eh,{...t});case"ZoomOut":return f(Fh,{...t});default:return null}}var kv=Eo,Bv={png:Ae,jpg:Ae,jpeg:Ae,gif:Ae,bmp:Ae,webp:Ae,svg:Ae,avif:Ae,heic:Ae,ico:Ae,tif:Ae,tiff:Ae,mp4:ut,mov:ut,webm:ut,avi:ut,mkv:ut,m4v:ut,ogv:ut,mp3:nt,wav:nt,ogg:nt,oga:nt,m4a:nt,aac:nt,flac:nt,weba:nt,pdf:Do,doc:zt,docx:zt,txt:zt,rtf:zt,odt:zt,json:Hr,csv:Vr,xls:Wr,xlsx:qr,ods:Gr,zip:yt,rar:yt,"7z":yt,tar:yt,gz:yt,tgz:yt};var Ah=e=>{let t=e?.trim().replace(/^\./,"").toLowerCase();return t&&Bv[t]||kv};import{cn as Oh,ColorHelpers as g5}from"@cleen/ui-core";import{forwardRef as v5}from"react";import{Fragment as y5,jsx as ka,jsxs as I5}from"react/jsx-runtime";var b5=v5(function({iconName:t,iconSrc:n,icon:o,iconSize:l=20,header:a,color:c,children:i,classNames:d,styles:s,...p},g){let m=g5.getComputedColor(c);return ka(fe,{ref:g,classNames:{...d,header:{...d?.header,title:Oh("cleen-flex cleen-gap-4",d?.header?.title)}},header:{...a,title:I5(y5,{children:[ka("div",{className:Oh("cleen-flex cleen-w-10 cleen-h-10 cleen-justify-center cleen-items-center cleen-gap-2 cleen-flex-shrink-0 cleen-rounded-xl cleen-border cleen-border-border cleen-bg-background",d?.iconHolder),style:{...m&&{backgroundColor:Mr(m,.85),color:m,borderColor:"transparent"},...s?.iconHolder},children:o||(t?ka(Ce,{name:t,className:"cleen-text-foreground",style:{width:l,height:l,...m&&{color:m}}}):n?ka("img",{src:n,alt:"Icon",className:"cleen-text-foreground",style:{width:l,height:l,...m&&{color:m}}}):null)}),a?.title]})},color:c,...p,children:i&&ka("div",{className:Oh("cleen-flex-1",d?.content),style:s?.content,children:i})})});import{cn as Un}from"@cleen/ui-core";import{forwardRef as C5,useMemo as x5}from"react";import{jsx as Ba}from"react/jsx-runtime";var P5=C5(function({media:t,header:n,color:o,children:l,classNames:a,styles:c,...i},d){let s=x5(()=>{switch(t?.type){case"image":return Ba("img",{...t,alt:t.alt??"Card media",className:Un("cleen-w-full cleen-aspect-video cleen-object-cover",a?.media?.content),style:c?.media?.content});case"video":return Ba("video",{playsInline:!0,controls:!0,...t,className:Un("cleen-w-full cleen-aspect-video cleen-object-cover",a?.media?.content),style:c?.media?.content});case"iframe":return Ba("iframe",{...t,title:t.title??"Card iframe",className:Un("cleen-w-full cleen-aspect-video cleen-object-cover",a?.media?.content),style:c?.media?.content});default:return null}},[t,a?.media,c?.media]);return Ba(fe,{ref:d,color:o,classNames:{...a,container:Un("cleen-pt-0",a?.container),header:{...a?.header,content:Un("cleen-p-0",a?.header?.content)}},header:{...n,...s&&{content:Ba("div",{className:Un("cleen-w-full cleen-overflow-hidden cleen-rounded-t-lg",a?.media?.container),style:c?.media?.container,children:s})}},...i,children:l})});import{cn as Na}from"@cleen/ui-core";import{jsx as Sc,jsxs as S5}from"react/jsx-runtime";var ne=({className:e,classNames:t,style:n,styles:o,infoMessage:l,errorMessage:a,subtitle:c,...i})=>Sc("div",{className:Na("cleen",e),style:n,children:S5("div",{className:Na(t?.container),style:o?.container,...i,children:[l&&Sc("div",{className:Na("cleen-mt-1 cleen-font-normal cleen-text-sm cleen-text-info",t?.infoMessage),style:o?.infoMessage,role:"note",children:l}),a&&Sc("div",{className:Na("cleen-mt-1 cleen-font-medium cleen-text-sm cleen-text-error",t?.errorMessage),style:o?.errorMessage,role:"alert",children:a}),c&&Sc("div",{className:Na("cleen-mt-2 cleen-font-normal cleen-text-sm cleen-text-neutral-600",t?.subtitle),style:o?.subtitle,children:c})]})});import{cn as Ta}from"@cleen/ui-core";import{jsx as Ra,jsxs as w5}from"react/jsx-runtime";var ae=({required:e=!1,tooltip:t,children:n,className:o,classNames:l,style:a,styles:c,...i})=>Ra("div",{className:Ta("cleen",o),style:a,children:w5("label",{...i,className:Ta("cleen-w-full cleen-flex cleen-gap-1 cleen-items-center cleen-font-medium cleen-text-neutral-700 cleen-text-sm cleen-leading-6",l?.container),style:c?.container,children:[Ra("div",{className:Ta({"cleen-flex-1":!e&&!t},l?.label),style:c?.label,children:n}),e&&Ra("span",{className:Ta("cleen-text-primary",l?.required),style:c?.required,children:"*"}),t&&Ra(ye,{hasArrow:!0,placement:"top",label:t,color:"rgb(var(--cleen-neutral-600))",...l?.tooltip,style:c?.tooltip?.style,styles:{...c?.tooltip?.styles,labelContainer:{width:"max-content",maxWidth:"250px",...c?.tooltip?.styles?.labelContainer}},children:Ra(pa,{className:Ta("cleen-size-3 cleen-text-neutral-500 hover:cleen-text-neutral-900 cleen-transition-colors cleen-cursor-help",l?.questionIcon),style:c?.questionIcon})})]})});import{cn as Ut}from"@cleen/ui-core";import{forwardRef as M5,useEffect as k5,useId as B5,useMemo as N5,useState as Nv}from"react";import{jsx as uo,jsxs as wc}from"react/jsx-runtime";var ge=M5(function({name:t,id:n,type:o,label:l,labelTooltip:a,defaultValue:c,value:i,files:d,disabled:s,required:p,className:g,classNames:m,style:y,styles:v,autoComplete:h="off",isFocusedBorder:b,maxLength:C,minLength:x,maxLengthLabelThreshold:I=.5,uploadLabel:P="Choose a file",leftIcon:B,rightIcon:E,topRightIcon:T,inputOverlay:M,infoLabels:L,maxLengthLabel:w,minLengthLabel:S,onChange:N,...F},R){let k=i!==void 0||d!==void 0,[z,D]=Nv(c??""),[A,O]=Nv(null),V=k?i:z,U=k?d:A;k5(()=>{k||D(i??c??"")},[i,c,k]);let W=_=>{let Z=_.target.value;if(o==="file"&&_.target.files){k||O(_.target.files),N?.(_);return}(!C||Z.length<=C)&&(k||D(Z),N?.(_))},q=N5(()=>x&&S&&(V?.toString()?.length??0)<x?S(x-(V?.toString()?.length??0)):!C||!w||(V?.toString()?.length??0)/C<I?L?.subtitle:w?.(C-(V?.toString()?.length??0)),[V,C,I,L?.subtitle]),H=B5(),$=!!(L?.errorMessage||L?.infoMessage||q),Q=$?`${H}-info`:void 0;return uo("div",{className:Ut("cleen",g),style:y,children:wc("div",{className:Ut("cleen-flex cleen-flex-col cleen-gap-1.5 cleen-rounded-md cleen-w-full cleen-overflow-visible cleen-font-normal",m?.container),style:v?.container,children:[(l||T)&&wc("div",{className:"cleen-flex cleen-justify-between cleen-items-center cleen-gap-2",children:[uo(ae,{htmlFor:n||t,required:p,tooltip:a,className:Ut("cleen-w-full",m?.label?.className),classNames:m?.label?.classNames,...v?.label,children:l}),T]}),wc("label",{className:Ut("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},s&&"cleen-bg-muted",{"cleen-cursor-pointer":o==="file"&&!s},L?.errorMessage?["cleen-border-error/70 focus-within:cleen-ring-error-bg",!s&&"hover:cleen-border-error"]:["cleen-border-border focus-within:cleen-border-primary-400",!s&&"hover:cleen-border-muted-foreground focus-within:cleen-border-primary focus-within:hover:cleen-border-primary"],m?.inputContainer),style:v?.inputContainer,children:[B&&uo("div",{className:Ut("cleen-flex cleen-justify-center cleen-items-center cleen-gap-1.5 cleen-p-2 cleen-rounded-l-md focus:cleen-outline-none focus:cleen-ring-4 cleen-text-base",s?"cleen-text-neutral-400":"cleen-text-muted-foreground",m?.leftIconContainer),style:v?.leftIconContainer,children:B}),wc("div",{className:"cleen-relative cleen-flex cleen-flex-1 cleen-items-stretch",children:[uo("input",{id:n||t,name:t,type:o,disabled:s,maxLength:C,autoComplete:h,value:V,className:Ut("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",B?"cleen-pl-0":"cleen-px-3.5",{"cleen-rounded-l-none":B,"cleen-rounded-r-none":E,"cleen-hidden":o==="file"},s?"cleen-text-neutral-400":"cleen-text-foreground",m?.input),style:v?.input,onChange:W,required:p,"aria-invalid":L?.errorMessage?!0:void 0,"aria-describedby":Q,ref:R,...F}),M&&uo("div",{className:Ut("cleen-absolute cleen-inset-0 cleen-flex cleen-items-center cleen-rounded-md cleen-overflow-hidden cleen-text-sm cleen-pointer-events-auto",B?"cleen-pl-0 cleen-pr-2":"cleen-px-3.5",m?.inputOverlay),style:v?.inputOverlay,children:M}),o==="file"&&uo("p",{className:Ut("cleen-flex cleen-items-center cleen-p-2.5 cleen-text-sm cleen-text-nowrap",s?"cleen-text-neutral-400":"cleen-text-muted-foreground",U&&U.length>0&&"cleen-text-foreground"),children:U&&U.length>0?Array.from(U).map(_=>_.name).join(", "):P})]}),E&&uo("div",{className:Ut("cleen-flex cleen-justify-center cleen-items-center cleen-gap-1.5 cleen-p-2 cleen-rounded-r-md focus:cleen-outline-none focus:cleen-ring-4 cleen-text-base",s?"cleen-text-neutral-400":"cleen-text-muted-foreground",m?.rightIconContainer),style:v?.rightIconContainer,children:E})]}),$&&uo(ne,{id:Q,...L,subtitle:q})]})})});import{cn as La,useOutsideClick as T5}from"@cleen/ui-core";import{forwardRef as R5,useEffect as Tv,useImperativeHandle as L5,useMemo as E5,useRef as D5,useState as Mc}from"react";import{jsx as Ea,jsxs as F5}from"react/jsx-runtime";var _h=R5(function({value:t,defaultValue:n,defaultIsEditing:o=!1,isEditing:l,onIsEditingChange:a,placeholder:c,placeholderText:i,canEdit:d=!0,onSave:s,onCancel:p,onChange:g,inputProps:m,blurOnOutsideClick:y=!0,saveOnBlur:v=!0,isLoading:h,customLoader:b=Ea(re,{}),selectAllOnEdit:C=!1,renderText:x,className:I,classNames:P,style:B,styles:E,...T},M){let L=t!==void 0,[w,S]=Mc(n??""),N=L?t??"":w,[F,R]=Mc(!1),k=h??F,z=E5(()=>typeof x=="function"?x(N):x||N||i||c,[N,x,c,i]),[D,A]=Mc(o),O=l!==void 0,V=O?l:D,[U,W]=Mc(N),q=D5(null);L5(M,()=>({...q.current,save:$,cancel:H})),Tv(()=>{L||S(n??"")},[n,L]),Tv(()=>{V||W(N)},[N,V]);let H=async()=>{O||A(!1),a?.(!1),W(N),await p?.()},$=async()=>{if(!k){if(N===U){await p?.(),O||A(!1),a?.(!1);return}R(!0),L||S(U);try{await s?.(U),O||A(!1),a?.(!1)}finally{R(!1)}}},Q=async _=>{_.key==="Enter"&&(_.preventDefault(),await $()),_.key==="Escape"&&(_.stopPropagation(),_.preventDefault(),await H()),m?.onKeyDown?.(_)};return T5({refs:[q],enabled:y&&V,handler:async()=>{v?await $():await H()}}),Ea("div",{className:La("cleen",I),style:B,ref:q,...T,children:V?F5("div",{className:La("cleen-relative cleen-h-full",P?.container),style:E?.container,children:[Ea(ge,{value:U,onChange:_=>{W(_.target.value),g?.(_.target.value)},autoFocus:!0,placeholder:c,className:P?.input?.className,classNames:{...P?.input?.classNames,inputContainer:La("cleen-border-primary hover:cleen-border-primary/60",P?.input?.classNames?.inputContainer)},...E?.input,...m,onFocus:_=>{m?.onFocus?.(_),C&&_.target.select()},disabled:k||m?.disabled,onKeyDown:Q}),k&&Ea("div",{className:La("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:E?.loaderContainer,children:b})]}):Ea("div",{onClick:()=>{d&&(O||A(!0),a?.(!0))},className:La("cleen-min-h-6 cleen-text-foreground",d&&"cleen-cursor-text hover:cleen-bg-muted cleen-rounded cleen-p-2 cleen-transition-colors",!N&&"cleen-text-muted-foreground",P?.preview),style:E?.preview,children:z})})});import{cn as Gn}from"@cleen/ui-core";import{forwardRef as A5,useEffect as Rv,useId as O5,useMemo as _5,useRef as z5,useState as V5}from"react";import{jsx as _o,jsxs as zh}from"react/jsx-runtime";var Vh=A5(function({name:t,id:n,value:o,defaultValue:l,label:a,labelTooltip:c,disabled:i,required:d,infoLabels:s,topRightElement:p,labelRightElement:g,textareaOverlay:m,onChange:y,minHeight:v,maxHeight:h=200,autoResize:b=!0,maxLength:C,minLength:x,maxLengthLabelThreshold:I=.5,maxLengthLabel:P,minLengthLabel:B,className:E,classNames:T,style:M,styles:L,...w},S){let N=o!==void 0,[F,R]=V5(typeof l=="string"?l:""),k=z5(null),z=S??k,D=N?o:F;Rv(()=>{N||R(o??(typeof l=="string"?l:""))},[o,l,N]);let A=_=>{_.style.height="auto";let Z=Math.min(_.scrollHeight,h);_.style.height=`${Z}px`},O=_=>{A(_.target)};Rv(()=>{!b||!k.current||A(k.current)},[b,D,h]);let V=_=>{_.preventDefault()},U=_=>{_.preventDefault();let Z=_.dataTransfer?.getData("text/plain");N?y?.(`${o??""}${Z}`):(R(pe=>`${pe}${Z}`),y?.(`${F}${Z}`))},W=_=>{let Z=_.target.value;(!C||Z.length<=C)&&(N||R(Z),y?.(Z),b&&O(_))},q=_5(()=>x&&B&&(D?.length??0)<x?B(x-(D?.length??0)):!C||!P||(D?.toString()?.length??0)/C<I?s?.subtitle:P?.(C-(D?.toString()?.length??0)),[D,C,I,s?.subtitle]),H=O5(),$=!!(s?.errorMessage||s?.infoMessage||q),Q=$?`${H}-info`:void 0;return _o("div",{className:Gn("cleen",E),style:M,children:zh("div",{className:Gn("cleen-flex cleen-flex-col cleen-gap-1.5 cleen-rounded-md cleen-size-full cleen-font-normal",T?.container),style:L?.container,children:[(a||g)&&zh("div",{className:"cleen-flex cleen-items-center cleen-justify-between cleen-mb-1.5",children:[a&&_o(ae,{htmlFor:n||t,required:d,tooltip:c,className:Gn("cleen-w-full",T?.label?.className),classNames:T?.label?.classNames,...L?.label,children:a}),g&&_o("div",{className:"cleen-ml-auto",children:g})]}),zh("div",{className:Gn("cleen-relative cleen-flex cleen-items-center cleen-shadow-sm cleen-border cleen-rounded-md cleen-transition-colors cleen-duration-200",s?.errorMessage?"cleen-border-error/70 hover:cleen-border-error":"cleen-border-border hover:cleen-border-muted-foreground focus-within:cleen-border-primary focus-within:hover:cleen-border-primary",T?.textareaContainer),style:L?.textareaContainer,children:[p&&_o("div",{className:"cleen-absolute cleen-top-2 cleen-right-2 cleen-z-10",children:p}),m&&_o("div",{className:Gn("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}),_o("textarea",{id:n||t,name:t,ref:z,disabled:i,value:D,minLength:x,maxLength:C,"aria-invalid":s?.errorMessage?!0:void 0,"aria-describedby":Q,className:Gn("cleen-block cleen-flex-1 cleen-px-3.5 cleen-py-3 cleen-border-0 cleen-rounded-lg focus:cleen-outline-none focus:cleen-ring-transparent placeholder:cleen-text-muted-foreground sm:cleen-text-sm cleen-text-base",i?"cleen-bg-muted cleen-text-neutral-400":"cleen-bg-background cleen-text-foreground",T?.textarea),style:{...v&&{minHeight:`${v}px`},...L?.textarea},onFocus:_=>_.currentTarget.setSelectionRange(_.currentTarget.value.length,_.currentTarget.value.length),onDragOver:V,onDrop:U,...w,onChange:W})]}),$&&_o(ne,{id:Q,...s,subtitle:q})]})})});import{cn as Da,useOutsideClick as H5}from"@cleen/ui-core";import{forwardRef as U5,useEffect as Lv,useImperativeHandle as G5,useMemo as $5,useRef as W5,useState as kc}from"react";import{jsx as Fa,jsxs as q5}from"react/jsx-runtime";var Hh=U5(function({value:t,defaultValue:n,defaultIsEditing:o=!1,isEditing:l,onIsEditingChange:a,placeholder:c,placeholderText:i,canEdit:d=!0,onSave:s,onCancel:p,onChange:g,textAreaProps:m,blurOnOutsideClick:y=!0,saveOnBlur:v=!0,isLoading:h,customLoader:b=Fa(re,{size:"md"}),selectAllOnEdit:C=!1,renderText:x,className:I,classNames:P,style:B,styles:E,...T},M){let L=t!==void 0,[w,S]=kc(n??""),N=L?t??"":w,[F,R]=kc(!1),k=h??F,z=$5(()=>typeof x=="function"?x(N):x||N||i||c,[N,x,c,i]),[D,A]=kc(o),O=l!==void 0,V=O?l:D,[U,W]=kc(N),q=W5(null);G5(M,()=>({...q.current,save:$,cancel:H})),Lv(()=>{L||S(n??"")},[n,L]),Lv(()=>{V||W(N)},[N,V]);let H=async()=>{O||A(!1),a?.(!1),W(N),await p?.()},$=async()=>{if(!k){if(N===U){await p?.(),O||A(!1),a?.(!1);return}R(!0),L||S(U);try{await s?.(U),O||A(!1),a?.(!1)}finally{R(!1)}}},Q=async _=>{_.key==="Escape"&&(_.preventDefault(),_.stopPropagation(),await H()),_.key==="Enter"&&(_.metaKey||_.ctrlKey)&&(_.preventDefault(),await $()),m?.onKeyDown?.(_)};return H5({refs:[q],enabled:y&&V,handler:async()=>{v?await $():await H()}}),Fa("div",{className:Da("cleen",I),style:B,ref:q,...T,children:V?q5("div",{className:Da("cleen-relative cleen-h-full",P?.container),style:E?.container,children:[Fa(Vh,{value:U,onChange:_=>{W(_),g?.(_)},autoFocus:!0,placeholder:c,className:P?.textArea?.className,classNames:{...P?.textArea?.classNames,textareaContainer:Da("cleen-border-primary hover:cleen-border-primary/60",P?.textArea?.classNames?.textareaContainer)},...E?.textArea,...m,onFocus:_=>{m?.onFocus?.(_),C&&_.target.select()},disabled:k||m?.disabled,onKeyDown:Q}),k&&Fa("div",{className:Da("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:E?.loaderContainer,children:b})]}):Fa("div",{onClick:()=>{d&&(O||A(!0),a?.(!0))},className:Da("cleen-min-h-6 cleen-text-foreground cleen-whitespace-pre-wrap",d&&"cleen-cursor-text hover:cleen-bg-muted cleen-rounded cleen-p-2 cleen-transition-colors",!N&&"cleen-text-muted-foreground",P?.preview),style:E?.preview,children:z})})});import"@cleen/ui-core";import{forwardRef as X5}from"react";import{Fragment as Y5,jsx as Uh,jsxs as Z5}from"react/jsx-runtime";var K5=X5(function({header:t,color:n,children:o,description:l,onSave:a,isDescriptionHidden:c=!1,titleProps:i,descriptionProps:d,classNames:s,styles:p,...g},m){let y=typeof t?.title=="string"||typeof t?.title=="number"?String(t.title):void 0;return Uh(fe,{ref:m,color:n,header:{...t,title:Uh(_h,{value:y??"",onSave:async v=>{await a?.("title",v)},...s?.titleTextInput,...p?.titleTextInput,...i})},classNames:s,styles:p,...g,children:(!c||o)&&Z5(Y5,{children:[Uh(Hh,{value:l??"",onSave:async v=>{await a?.("description",v)},...d,textAreaProps:d?.textAreaProps,...s?.descriptionTextInput,...p?.descriptionTextInput}),o]})})});import{cn as Aa}from"@cleen/ui-core";import{forwardRef as Q5}from"react";import{jsx as Bc}from"react/jsx-runtime";var J5=Q5(function({type:t="button",label:n,onClick:o,containerRef:l,className:a,classNames:c,style:i,styles:d,disabled:s=!1,loaderOptions:p,isLoading:g=!1,variant:m="primary",children:y,...v},h){return Bc("div",{className:Aa("cleen",a),style:i,ref:l,children:Bc("button",{type:t,ref:h,disabled:g||s,onClick:o,className:Aa("cleen-size-full",c?.container),style:d?.container,...v,children:Bc(fe,{p:0,className:Aa("cleen-size-full cleen-group",c?.card?.className),classNames:{...c?.card?.classNames,container:Aa("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",Q1[m],c?.card?.classNames?.container,{"cleen-opacity-50 cleen-cursor-not-allowed cleen-pointer-events-none":s||g}),childrenContainer:Aa("cleen-flex cleen-justify-center cleen-items-center cleen-size-full",c?.card?.classNames?.childrenContainer)},"aria-disabled":s||g,...d?.card,children:g?Bc(re,{size:"lg",...p,color:p?.color||J1[m],...c?.loader,...d?.loader}):n||y})})})});import{cn as Oa,ColorHelpers as Ev,formatAudioTime as Dv}from"@cleen/ui-core";import{useWavesurfer as j5}from"@wavesurfer/react";import{forwardRef as eM,useCallback as tM,useRef as oM}from"react";import{jsx as _a,jsxs as Fv}from"react/jsx-runtime";var nM={waveColor:Ev.getComputedColor("var(--cleen-neutral-200)"),progressColor:Ev.getComputedColor("var(--cleen-primary)"),cursorColor:"rgb(var(--cleen-primary))",height:56,barWidth:2,barGap:2,barRadius:2,interact:!0,normalize:!0},rM=eM(function({url:t,options:n,className:o,classNames:l,style:a,styles:c,...i},d){let s=oM(null),{wavesurfer:p,isPlaying:g,isReady:m,currentTime:y}=j5({...nM,...n,container:s,url:t}),v=m?p?.getDuration()??0:0,h=tM(()=>{p?.playPause()},[p]);return _a("div",{ref:d,className:Oa("cleen",o),style:a,...i,children:Fv("div",{className:Oa("cleen-flex cleen-items-center cleen-gap-3 cleen-px-4 cleen-py-3 cleen-rounded-xl cleen-bg-surface cleen-border cleen-border-border",l?.container),style:c?.container,children:[_a(ee,{type:"button",onClick:h,disabled:!m,"aria-label":g?"Pause":"Play",className:l?.playButton?.className,classNames:{...l?.playButton?.classNames,container:Oa("cleen-p-0 !cleen-size-9 cleen-rounded-full",l?.playButton?.classNames?.container)},...c?.playButton,children:g?_a(ft,{className:"cleen-fill-current"}):_a(ht,{className:"cleen-fill-current"})}),_a("div",{ref:s,className:Oa("cleen-flex-1 cleen-min-w-0",l?.waveform),style:c?.waveform}),Fv("span",{className:Oa("cleen-shrink-0 cleen-text-xs cleen-text-muted-foreground cleen-tabular-nums",l?.timestamp),style:c?.timestamp,children:[Dv(y),"\xA0/\xA0",Dv(v)]})]})})});import{ColorHelpers as aM}from"@cleen/ui-core";var Av=aM.getComputedColor("var(--cleen-primary)"),Ov="rgba(var(--cleen-primary), 0.15)",_v={waveColor:Av,progressColor:Av,cursorColor:"rgb(var(--cleen-primary))",height:56,barWidth:2,barGap:2,barRadius:2,minPxPerSec:.5,sampleRate:8e3};var zv={startRecording:"Click to start recording"};import{cn as Je,formatAudioTime as Ac,trimBlob as cM}from"@cleen/ui-core";import{useWavesurfer as iM}from"@wavesurfer/react";import{forwardRef as sM,useCallback as Wn,useEffect as Kh,useMemo as pM,useRef as Uv,useState as Oc}from"react";function Gh(e,t,n,o){return new(n||(n=Promise))((function(l,a){function c(s){try{d(o.next(s))}catch(p){a(p)}}function i(s){try{d(o.throw(s))}catch(p){a(p)}}function d(s){var p;s.done?l(s.value):(p=s.value,p instanceof n?p:new n((function(g){g(p)}))).then(c,i)}d((o=o.apply(e,t||[])).next())}))}var Nc=class{constructor(){this.listeners={}}on(t,n,o){if(this.listeners[t]||(this.listeners[t]=new Set),o?.once){let l=(...a)=>{this.un(t,l),n(...a)};return this.listeners[t].add(l),()=>this.un(t,l)}return this.listeners[t].add(n),()=>this.un(t,n)}un(t,n){var o;(o=this.listeners[t])===null||o===void 0||o.delete(n)}once(t,n){return this.on(t,n,{once:!0})}unAll(){this.listeners={}}emit(t,...n){this.listeners[t]&&this.listeners[t].forEach((o=>o(...n)))}},Wh=class extends Nc{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}},qh=class extends Nc{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()}},$h=100,lM=["audio/webm","audio/wav","audio/mpeg","audio/mp4","audio/mp3"],Tc=class e extends Wh{constructor(t){var n,o,l,a,c,i;super(Object.assign(Object.assign({},t),{audioBitsPerSecond:(n=t.audioBitsPerSecond)!==null&&n!==void 0?n:128e3,scrollingWaveform:(o=t.scrollingWaveform)!==null&&o!==void 0&&o,scrollingWaveformWindow:(l=t.scrollingWaveformWindow)!==null&&l!==void 0?l:5,continuousWaveform:(a=t.continuousWaveform)!==null&&a!==void 0&&a,renderRecordedAudio:(c=t.renderRecordedAudio)===null||c===void 0||c,mediaRecorderTimeslice:(i=t.mediaRecorderTimeslice)!==null&&i!==void 0?i:void 0})),this.stream=null,this.mediaRecorder=null,this.dataWindow=null,this.isWaveformPaused=!1,this.lastStartTime=0,this.lastDuration=0,this.duration=0,this.micStream=null,this.recordedBlobUrl=null,this.timer=new qh,this.subscriptions.push(this.timer.on("tick",(()=>{let d=performance.now()-this.lastStartTime;this.duration=this.isPaused()?this.duration:this.lastDuration+d,this.emit("record-progress",this.duration)})))}static create(t){return new e(t||{})}renderMicStream(t){var n;let o=new AudioContext,l=o.createMediaStreamSource(t),a=o.createAnalyser();l.connect(a),(this.options.continuousWaveform||this.options.scrollingWaveform)&&(a.fftSize=32);let c=a.frequencyBinCount,i=new Float32Array(c),d=0;this.wavesurfer&&((n=this.originalOptions)!==null&&n!==void 0||(this.originalOptions=Object.assign({},this.wavesurfer.options)),this.wavesurfer.options.interact=!1,this.options.scrollingWaveform&&(this.wavesurfer.options.cursorWidth=0,this.wavesurfer.options.normalize=!0,this.wavesurfer.options.maxPeak=1));let s=setInterval((()=>{var p,g,m,y;if(!this.isWaveformPaused){if(a.getFloatTimeDomainData(i),this.options.scrollingWaveform){let v=Math.floor((this.options.scrollingWaveformWindow||0)*$h),h=0;for(let C=0;C<c;C++){let x=Math.abs(i[C]);x>h&&(h=x)}this.dataWindow||(this.dataWindow=new Float32Array(v));let b=new Float32Array(v);if(this.dataWindow&&this.dataWindow.length>0){let C=v-1,x=this.dataWindow.slice(-C);b.set(x,0)}b[v-1]=h,this.dataWindow=b}else if(this.options.continuousWaveform){if(!this.dataWindow){let h=this.options.continuousWaveformDuration?Math.round(this.options.continuousWaveformDuration*$h):((g=(p=this.wavesurfer)===null||p===void 0?void 0:p.getWidth())!==null&&g!==void 0?g:0)*window.devicePixelRatio;this.dataWindow=new Float32Array(h)}let v=0;for(let h=0;h<c;h++){let b=Math.abs(i[h]);b>v&&(v=b)}if(d+1>this.dataWindow.length){let h=new Float32Array(2*this.dataWindow.length);h.set(this.dataWindow,0),this.dataWindow=h}this.dataWindow[d]=v,d++}else this.dataWindow=i;if(this.wavesurfer){let v=((y=(m=this.dataWindow)===null||m===void 0?void 0:m.length)!==null&&y!==void 0?y:0)/$h;this.wavesurfer.load("",[this.dataWindow],this.options.scrollingWaveform?this.options.scrollingWaveformWindow:v).then((()=>{this.wavesurfer&&this.options.continuousWaveform&&(this.wavesurfer.setTime(this.getDuration()/1e3),this.wavesurfer.options.minPxPerSec||this.wavesurfer.setOptions({minPxPerSec:this.wavesurfer.getWidth()/this.wavesurfer.getDuration()}))})).catch((h=>{console.error("Error rendering real-time recording data:",h)}))}}}),10);return{onDestroy:()=>{clearInterval(s),l?.disconnect(),o?.close()},onEnd:()=>{this.isWaveformPaused=!0,this.stopMic()}}}startMic(t){return Gh(this,void 0,void 0,(function*(){let n;this.micStream&&this.stopMic();try{n=yield navigator.mediaDevices.getUserMedia({audio:t==null||t})}catch(l){throw new Error("Error accessing the microphone: "+l.message)}let o=this.renderMicStream(n);return this.micStream=o,this.unsubscribeDestroy=this.once("destroy",o.onDestroy),this.unsubscribeRecordEnd=this.once("record-end",o.onEnd),this.stream=n,n}))}stopMic(){var t,n,o;(t=this.micStream)===null||t===void 0||t.onDestroy(),(n=this.unsubscribeDestroy)===null||n===void 0||n.call(this),(o=this.unsubscribeRecordEnd)===null||o===void 0||o.call(this),this.micStream=null,this.unsubscribeDestroy=void 0,this.unsubscribeRecordEnd=void 0,this.stream&&(this.stream.getTracks().forEach((l=>l.stop())),this.stream=null,this.mediaRecorder=null)}startRecording(t){return Gh(this,void 0,void 0,(function*(){let n=this.stream||(yield this.startMic(t));this.dataWindow=null;let o=this.mediaRecorder||new MediaRecorder(n,{mimeType:this.options.mimeType||lM.find((c=>MediaRecorder.isTypeSupported(c))),audioBitsPerSecond:this.options.audioBitsPerSecond});this.mediaRecorder=o,this.stopRecording();let l=[];o.ondataavailable=c=>{c.data.size>0&&l.push(c.data),this.emit("record-data-available",c.data)};let a=c=>{var i;let d=new Blob(l,{type:o.mimeType});this.emit(c,d),this.options.renderRecordedAudio&&(this.applyOriginalOptionsIfNeeded(),this.recordedBlobUrl&&URL.revokeObjectURL(this.recordedBlobUrl),this.recordedBlobUrl=URL.createObjectURL(d),(i=this.wavesurfer)===null||i===void 0||i.load(this.recordedBlobUrl))};o.onpause=()=>a("record-pause"),o.onstop=()=>a("record-end"),o.start(this.options.mediaRecorderTimeslice),this.lastStartTime=performance.now(),this.lastDuration=0,this.duration=0,this.isWaveformPaused=!1,this.timer.start(),this.emit("record-start")}))}getDuration(){return this.duration}isRecording(){var t;return((t=this.mediaRecorder)===null||t===void 0?void 0:t.state)==="recording"}isPaused(){var t;return((t=this.mediaRecorder)===null||t===void 0?void 0:t.state)==="paused"}isActive(){var t;return((t=this.mediaRecorder)===null||t===void 0?void 0:t.state)!=="inactive"}stopRecording(){var t;this.isActive()&&((t=this.mediaRecorder)===null||t===void 0||t.stop(),this.timer.stop())}pauseRecording(){var t,n;this.isRecording()&&(this.isWaveformPaused=!0,(t=this.mediaRecorder)===null||t===void 0||t.requestData(),(n=this.mediaRecorder)===null||n===void 0||n.pause(),this.timer.stop(),this.lastDuration=this.duration)}resumeRecording(){var t;this.isPaused()&&(this.isWaveformPaused=!1,(t=this.mediaRecorder)===null||t===void 0||t.resume(),this.timer.start(),this.lastStartTime=performance.now(),this.emit("record-resume"))}static getAvailableAudioDevices(){return Gh(this,void 0,void 0,(function*(){return navigator.mediaDevices.enumerateDevices().then((t=>t.filter((n=>n.kind==="audioinput"))))}))}destroy(){this.applyOriginalOptionsIfNeeded(),super.destroy(),this.stopRecording(),this.stopMic(),this.recordedBlobUrl&&(URL.revokeObjectURL(this.recordedBlobUrl),this.recordedBlobUrl=null)}applyOriginalOptionsIfNeeded(){this.wavesurfer&&this.originalOptions&&(this.wavesurfer.setOptions(this.originalOptions),delete this.originalOptions)}};var Ec=class{constructor(){this.listeners={}}on(t,n,o){if(this.listeners[t]||(this.listeners[t]=new Set),o?.once){let l=(...a)=>{this.un(t,l),n(...a)};return this.listeners[t].add(l),()=>this.un(t,l)}return this.listeners[t].add(n),()=>this.un(t,n)}un(t,n){var o;(o=this.listeners[t])===null||o===void 0||o.delete(n)}once(t,n){return this.on(t,n,{once:!0})}unAll(){this.listeners={}}emit(t,...n){this.listeners[t]&&this.listeners[t].forEach((o=>o(...n)))}},Xh=class extends Ec{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 Vv(e,t){let n=t.xmlns?document.createElementNS(t.xmlns,e):document.createElement(e);for(let[o,l]of Object.entries(t))if(o==="children"&&l)for(let[a,c]of Object.entries(l))c instanceof Node?n.appendChild(c):typeof c=="string"?n.appendChild(document.createTextNode(c)):n.appendChild(Vv(a,c));else o==="style"?Object.assign(n.style,l):o==="textContent"?n.textContent=l:n.setAttribute(o,l.toString());return n}function za(e,t,n){let o=Vv(e,t||{});return n?.appendChild(o),o}function Hv(e){let t=e,n=new Set;return{get value(){return t},set(o){Object.is(t,o)||(t=o,n.forEach((l=>l(t))))},update(o){this.set(o(t))},subscribe:o=>(n.add(o),()=>n.delete(o))}}function Rc(e,t){let n,o=()=>{n&&(n(),n=void 0),n=e()},l=t.map((a=>a.subscribe(o)));return o(),()=>{n&&(n(),n=void 0),l.forEach((a=>a()))}}function $n(e,t){let n=Hv(null),o=l=>{n.set(l)};return e.addEventListener(t,o),n._cleanup=()=>{e.removeEventListener(t,o)},n}function zo(e){let t=e._cleanup;typeof t=="function"&&t()}function Lc(e,t={}){let{threshold:n=3,mouseButton:o=0,touchDelay:l=100}=t,a=Hv(null),c=new Map,i=matchMedia("(pointer: coarse)").matches,d=()=>{},s=p=>{if(p.button!==o||(c.set(p.pointerId,p),c.size>1))return;let g=p.clientX,m=p.clientY,y=!1,v=Date.now(),h=e.getBoundingClientRect(),{left:b,top:C}=h,x=T=>{if(T.defaultPrevented||c.size>1||i&&Date.now()-v<l)return;let M=T.clientX,L=T.clientY,w=M-g,S=L-m;(y||Math.abs(w)>n||Math.abs(S)>n)&&(T.preventDefault(),T.stopPropagation(),y||(a.set({type:"start",x:g-b,y:m-C}),y=!0),a.set({type:"move",x:M-b,y:L-C,deltaX:w,deltaY:S}),g=M,m=L)},I=T=>{if(c.delete(T.pointerId),y){let M=T.clientX,L=T.clientY;a.set({type:"end",x:M-b,y:L-C})}d()},P=T=>{c.delete(T.pointerId),T.relatedTarget&&T.relatedTarget!==document.documentElement||I(T)},B=T=>{y&&(T.stopPropagation(),T.preventDefault())},E=T=>{T.defaultPrevented||c.size>1||y&&T.preventDefault()};document.addEventListener("pointermove",x),document.addEventListener("pointerup",I),document.addEventListener("pointerout",P),document.addEventListener("pointercancel",P),document.addEventListener("touchmove",E,{passive:!1}),document.addEventListener("click",B,{capture:!0}),d=()=>{document.removeEventListener("pointermove",x),document.removeEventListener("pointerup",I),document.removeEventListener("pointerout",P),document.removeEventListener("pointercancel",P),document.removeEventListener("touchmove",E),setTimeout((()=>{document.removeEventListener("click",B,{capture:!0})}),10)}};return e.addEventListener("pointerdown",s),{signal:a,cleanup:()=>{d(),e.removeEventListener("pointerdown",s),c.clear(),zo(a)}}}var Dc=class extends Ec{constructor(t,n,o=0){var l,a,c,i,d,s,p,g,m,y;super(),this.totalDuration=n,this.numberOfChannels=o,this.element=null,this.minLength=0,this.maxLength=1/0,this.contentEditable=!1,this.subscriptions=[],this.updatingSide=void 0,this.isRemoved=!1,this.subscriptions=[],this.id=t.id||`region-${Math.random().toString(32).slice(2)}`,this.start=this.clampPosition(t.start),this.end=this.clampPosition((l=t.end)!==null&&l!==void 0?l:t.start),this.drag=(a=t.drag)===null||a===void 0||a,this.resize=(c=t.resize)===null||c===void 0||c,this.resizeStart=(i=t.resizeStart)===null||i===void 0||i,this.resizeEnd=(d=t.resizeEnd)===null||d===void 0||d,this.color=(s=t.color)!==null&&s!==void 0?s:"rgba(0, 0, 0, 0.1)",this.minLength=(p=t.minLength)!==null&&p!==void 0?p:this.minLength,this.maxLength=(g=t.maxLength)!==null&&g!==void 0?g:this.maxLength,this.channelIdx=(m=t.channelIdx)!==null&&m!==void 0?m:-1,this.contentEditable=(y=t.contentEditable)!==null&&y!==void 0?y:this.contentEditable,this.element=this.initElement(),this.setContent(t.content),this.setPart(),this.renderPosition(),this.initMouseEvents()}clampPosition(t){return Math.max(0,Math.min(this.totalDuration,t))}setPart(){var t;let n=this.start===this.end;(t=this.element)===null||t===void 0||t.setAttribute("part",`${n?"marker":"region"} ${this.id}`)}addResizeHandles(t){let n={position:"absolute",zIndex:"2",width:"6px",height:"100%",top:"0",cursor:"ew-resize",wordBreak:"keep-all"},o=za("div",{part:"region-handle region-handle-left",style:Object.assign(Object.assign({},n),{left:"0",borderLeft:"2px solid rgba(0, 0, 0, 0.5)",borderRadius:"2px 0 0 2px"})},t),l=za("div",{part:"region-handle region-handle-right",style:Object.assign(Object.assign({},n),{right:"0",borderRight:"2px solid rgba(0, 0, 0, 0.5)",borderRadius:"0 2px 2px 0"})},t),a=Lc(o,{threshold:1}),c=Lc(l,{threshold:1}),i=Rc((()=>{let s=a.signal.value;s&&(s.type==="move"&&s.deltaX!==void 0?this.onResize(s.deltaX,"start"):s.type==="end"&&this.onEndResizing("start"))}),[a.signal]),d=Rc((()=>{let s=c.signal.value;s&&(s.type==="move"&&s.deltaX!==void 0?this.onResize(s.deltaX,"end"):s.type==="end"&&this.onEndResizing("end"))}),[c.signal]);this.subscriptions.push((()=>{i(),d(),a.cleanup(),c.cleanup()}))}removeResizeHandles(t){let n=t.querySelector('[part*="region-handle-left"]'),o=t.querySelector('[part*="region-handle-right"]');n&&t.removeChild(n),o&&t.removeChild(o)}initElement(){if(this.isRemoved)return null;let t=this.start===this.end,n=0,o=100;this.channelIdx>=0&&this.numberOfChannels>0&&this.channelIdx<this.numberOfChannels&&(o=100/this.numberOfChannels,n=o*this.channelIdx);let l=za("div",{style:{position:"absolute",top:`${n}%`,height:`${o}%`,backgroundColor:t?"none":this.color,borderLeft:t?"2px solid "+this.color:"none",borderRadius:"2px",boxSizing:"border-box",transition:"background-color 0.2s ease",cursor:this.drag?"grab":"default",pointerEvents:"all"}});return!t&&this.resize&&this.addResizeHandles(l),l}renderPosition(){if(!this.element)return;let t=this.start/this.totalDuration,n=(this.totalDuration-this.end)/this.totalDuration;this.element.style.left=100*t+"%",this.element.style.right=100*n+"%"}toggleCursor(t){var n;this.drag&&(!((n=this.element)===null||n===void 0)&&n.style)&&(this.element.style.cursor=t?"grabbing":"grab")}initMouseEvents(){let{element:t}=this;if(!t)return;let n=$n(t,"click"),o=$n(t,"mouseenter"),l=$n(t,"mouseleave"),a=$n(t,"dblclick"),c=$n(t,"pointerdown"),i=$n(t,"pointerup"),d=n.subscribe((b=>b&&this.emit("click",b))),s=o.subscribe((b=>b&&this.emit("over",b))),p=l.subscribe((b=>b&&this.emit("leave",b))),g=a.subscribe((b=>b&&this.emit("dblclick",b))),m=c.subscribe((b=>b&&this.toggleCursor(!0))),y=i.subscribe((b=>b&&this.toggleCursor(!1)));this.subscriptions.push((()=>{d(),s(),p(),g(),m(),y(),zo(n),zo(o),zo(l),zo(a),zo(c),zo(i)}));let v=Lc(t),h=Rc((()=>{let b=v.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")))}),[v.signal]);this.subscriptions.push((()=>{h(),v.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,n,o){var l;if(!(!((l=this.element)===null||l===void 0)&&l.parentElement))return;let{width:a}=this.element.parentElement.getBoundingClientRect(),c=t/a*this.totalDuration,i=n&&n!=="start"?this.start:this.start+c,d=n&&n!=="end"?this.end:this.end+c,s=o!==void 0;s&&this.updatingSide&&this.updatingSide!==n&&(this.updatingSide==="start"?i=o:d=o),i=Math.max(0,i),d=Math.min(this.totalDuration,d);let p=d-i;this.updatingSide=n;let g=p>=this.minLength&&p<=this.maxLength;i<=d&&(g||s)&&(this.start=i,this.end=d,this.renderPosition(),this.emit("update",n))}onMove(t){this.drag&&this._onUpdate(t)}onResize(t,n){this.resize&&(this.resizeStart||n!=="start")&&(this.resizeEnd||n!=="end")&&this._onUpdate(t,n)}onEndResizing(t){this.resize&&(this.emit("update-end",t),this.updatingSide=void 0)}onContentClick(t){t.stopPropagation(),t.target.focus(),this.emit("click",t)}onContentBlur(){this.emit("update-end")}_setTotalDuration(t){this.totalDuration=t,this.renderPosition()}play(t){this.emit("play",t&&this.end!==this.start?this.end:void 0)}getContent(t=!1){var n;return t?this.content||void 0:this.element instanceof HTMLElement?((n=this.content)===null||n===void 0?void 0:n.innerHTML)||void 0:""}setContent(t){var n;if(this.element)if(this.content&&this.contentEditable&&(this.contentClickListener&&this.content.removeEventListener("click",this.contentClickListener),this.contentBlurListener&&this.content.removeEventListener("blur",this.contentBlurListener)),(n=this.content)===null||n===void 0||n.remove(),t){if(typeof t=="string"){let o=this.start===this.end;this.content=za("div",{style:{padding:`0.2em ${o?.2:.4}em`,display:"inline-block"},textContent:t})}else this.content=t;this.contentEditable&&(this.content.contentEditable="true",this.contentClickListener=o=>this.onContentClick(o),this.contentBlurListener=()=>this.onContentBlur(),this.content.addEventListener("click",this.contentClickListener),this.content.addEventListener("blur",this.contentBlurListener)),this.content.setAttribute("part","region-content"),this.element.appendChild(this.content),this.emit("content-changed")}else this.content=void 0}setOptions(t){var n,o;if(this.element){if(t.color&&(this.color=t.color,this.element.style.backgroundColor=this.color),t.drag!==void 0&&(this.drag=t.drag,this.element.style.cursor=this.drag?"grab":"default"),t.start!==void 0||t.end!==void 0){let l=this.start===this.end;this.start=this.clampPosition((n=t.start)!==null&&n!==void 0?n:this.start),this.end=this.clampPosition((o=t.end)!==null&&o!==void 0?o:l?this.start:this.end),this.renderPosition(),this.setPart()}if(t.content&&this.setContent(t.content),t.id&&(this.id=t.id,this.setPart()),t.resize!==void 0&&t.resize!==this.resize){let l=this.start===this.end;this.resize=t.resize,this.resize&&!l?this.addResizeHandles(this.element):this.removeResizeHandles(this.element)}t.resizeStart!==void 0&&(this.resizeStart=t.resizeStart),t.resizeEnd!==void 0&&(this.resizeEnd=t.resizeEnd)}}remove(){this.isRemoved=!0,this.emit("remove"),this.subscriptions.forEach((t=>t())),this.subscriptions=[],this.content&&this.contentEditable&&(this.contentClickListener&&(this.content.removeEventListener("click",this.contentClickListener),this.contentClickListener=void 0),this.contentBlurListener&&(this.content.removeEventListener("blur",this.contentBlurListener),this.contentBlurListener=void 0)),this.element&&(this.element.remove(),this.element=null),this.unAll()}},Fc=class e extends Xh{constructor(t){super(t),this.regions=[],this.regionsContainer=this.initRegionsContainer()}static create(t){return new e(t)}onInit(){if(!this.wavesurfer)throw Error("WaveSurfer is not initialized");this.wavesurfer.getWrapper().appendChild(this.regionsContainer),this.subscriptions.push(this.wavesurfer.on("ready",(n=>{this.regions.forEach((o=>o._setTotalDuration(n)))})));let t=[];this.subscriptions.push(this.wavesurfer.on("timeupdate",(n=>{let o=this.regions.filter((l=>l.start<=n&&(l.end===l.start?l.start+.05:l.end)>=n));o.forEach((l=>{t.includes(l)||this.emit("region-in",l)})),t.forEach((l=>{o.includes(l)||this.emit("region-out",l)})),t=o})))}initRegionsContainer(){return za("div",{part:"regions-container",style:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",zIndex:"5",pointerEvents:"none"}})}getRegions(){return this.regions}avoidOverlapping(t){t.content&&setTimeout((()=>{let n=t.content,o=n.getBoundingClientRect(),l=this.regions.map((a=>{if(a===t||!a.content)return 0;let c=a.content.getBoundingClientRect();return o.left<c.left+c.width&&c.left<o.left+o.width?c.height:0})).reduce(((a,c)=>a+c),0);n.style.marginTop=`${l}px`}),10)}adjustScroll(t){var n,o;if(!t.element)return;let l=(o=(n=this.wavesurfer)===null||n===void 0?void 0:n.getWrapper())===null||o===void 0?void 0:o.parentElement;if(!l)return;let{clientWidth:a,scrollWidth:c}=l;if(c<=a)return;let i=l.getBoundingClientRect(),d=t.element.getBoundingClientRect(),s=d.left-i.left,p=d.right-i.left;s<0?l.scrollLeft+=s:p>a&&(l.scrollLeft+=p-a)}virtualAppend(t,n,o){let l=()=>{if(!this.wavesurfer)return;let a=this.wavesurfer.getWidth(),c=this.wavesurfer.getScroll(),i=n.clientWidth,d=this.wavesurfer.getDuration(),s=Math.round(t.start/d*i),p=s+(Math.round((t.end-t.start)/d*i)||1)>c&&s<c+a;p&&!o.parentElement?n.appendChild(o):!p&&o.parentElement&&o.remove()};setTimeout((()=>{if(!this.wavesurfer||!t.element)return;l();let a=this.wavesurfer.on("scroll",l),c=this.wavesurfer.on("zoom",l),i=this.wavesurfer.on("resize",l);this.subscriptions.push(a,c,i),t.once("remove",(()=>{a(),c(),i()}))}),0)}saveRegion(t){if(!t.element)return;this.virtualAppend(t,this.regionsContainer,t.element),this.avoidOverlapping(t),this.regions.push(t);let n=[t.on("update",(o=>{o||this.adjustScroll(t),this.emit("region-update",t,o)})),t.on("update-end",(o=>{this.avoidOverlapping(t),this.emit("region-updated",t,o)})),t.on("play",(o=>{var l;(l=this.wavesurfer)===null||l===void 0||l.play(t.start,o)})),t.on("click",(o=>{this.emit("region-clicked",t,o)})),t.on("dblclick",(o=>{this.emit("region-double-clicked",t,o)})),t.on("content-changed",(()=>{this.emit("region-content-changed",t)})),t.once("remove",(()=>{n.forEach((o=>o())),this.regions=this.regions.filter((o=>o!==t)),this.emit("region-removed",t)}))];this.subscriptions.push(...n),this.emit("region-created",t)}addRegion(t){var n,o;if(!this.wavesurfer)throw Error("WaveSurfer is not initialized");let l=this.wavesurfer.getDuration(),a=(o=(n=this.wavesurfer)===null||n===void 0?void 0:n.getDecodedData())===null||o===void 0?void 0:o.numberOfChannels,c=new Dc(t,l,a);return this.emit("region-initialized",c),l?this.saveRegion(c):this.subscriptions.push(this.wavesurfer.once("ready",(i=>{c._setTotalDuration(i),this.saveRegion(c)}))),c}enableDragSelection(t,n=3){var o;let l=(o=this.wavesurfer)===null||o===void 0?void 0:o.getWrapper();if(!(l&&l instanceof HTMLElement))return()=>{};let a=null,c=0,i=0,d=Lc(l,{threshold:n}),s=Rc((()=>{var p,g;let m=d.signal.value;if(m)if(m.type==="start"){if(c=m.x,!this.wavesurfer)return;let y=this.wavesurfer.getDuration(),v=(g=(p=this.wavesurfer)===null||p===void 0?void 0:p.getDecodedData())===null||g===void 0?void 0:g.numberOfChannels,{width:h}=this.wavesurfer.getWrapper().getBoundingClientRect();i=c/h*y;let b=m.x/h*y,C=(m.x+5)/h*y;a=new Dc(Object.assign(Object.assign({},t),{start:b,end:C}),y,v),this.emit("region-initialized",a),a.element&&this.regionsContainer.appendChild(a.element)}else m.type==="move"&&m.deltaX!==void 0?a&&a._onUpdate(m.deltaX,m.x>c?"end":"start",i):m.type==="end"&&a&&(this.saveRegion(a),a.updatingSide=void 0,a=null)}),[d.signal]);return()=>{s(),d.cleanup()}}clearRegions(){this.regions.slice().forEach((t=>t.remove())),this.regions=[]}destroy(){this.clearRegions(),super.destroy(),this.regionsContainer.remove()}};import{Fragment as mM,jsx as Ee,jsxs as Va}from"react/jsx-runtime";var dM=sM(function({onFinalize:t,recordOptions:n,options:o,labels:l=zv,className:a,classNames:c,style:i,styles:d,...s},p){let g=Uv(null),[m,y]=Oc("idle"),[v,h]=Oc(null),[b,C]=Oc(null),[x,I]=Oc(!1),P=Uv("idle");P.current=m;let B=pM(()=>[Tc.create({renderRecordedAudio:!0,scrollingWaveform:!1,continuousWaveform:!1,...n}),Fc.create()],[]),[E,T]=B,{wavesurfer:M,isPlaying:L,isReady:w,currentTime:S}=iM({..._v,...o,container:g,plugins:B}),N=w?M?.getDuration()??0:0;Kh(()=>{let V=[E.on("record-start",()=>y("recording")),E.on("record-end",U=>{y("recorded"),h(U)}),T.on("region-clicked",(U,W)=>{W.stopPropagation(),U.play(!0)})];return()=>V.forEach(U=>U?.())},[T,E]),Kh(()=>M?M.on("ready",()=>{if(P.current!=="recorded")return;let U=M.getDuration();T.clearRegions();let W=T.addRegion({start:0,end:U,color:o?.regionColor??Ov,drag:!1,resize:!0});C({start:W.start,end:W.end})}):void 0,[M,T,o]),Kh(()=>T.on("region-updated",U=>{C({start:U.start,end:U.end})}),[T]);let F=Wn(async()=>{await E.startRecording()},[E]),R=Wn(()=>{E.stopRecording()},[E]),k=Wn(()=>{M?.playPause()},[M]),z=Wn(async()=>{if(!(!v||!b||!M)){I(!0);try{let V=await cM(v,b.start,b.end),U=URL.createObjectURL(V);h(V),M.load(U)}finally{I(!1)}}},[v,b,M]),D=Wn(()=>{T.clearRegions(),M?.empty(),h(null),C(null),y("idle")},[M,T]),A=Wn(()=>{if(v){let V=URL.createObjectURL(v);t?.(v,V)}},[t,v]),O=!b||b.start<=0&&b.end>=N;return Ee("div",{ref:p,className:Je("cleen wavesurfer-handle",a),style:i,...s,children:Va("div",{className:Je("cleen-flex cleen-flex-col cleen-items-center cleen-gap-3",c?.container),style:d?.container,children:[m==="idle"&&Va(mM,{children:[Ee("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",c?.startButton),style:d?.startButton,children:Ee(na,{className:"cleen-size-8 cleen-text-primary"})}),Ee("p",{className:Je("cleen-text-neutral-600 cleen-text-sm cleen-select-none",c?.startLabel),style:d?.startLabel,children:l.startRecording})]}),m==="recording"&&Ee("button",{type:"button",onClick:R,"aria-label":"Stop recording",className:Je("cleen-p-8 cleen-border-2 cleen-border-primary/20 hover:cleen-border-primary cleen-rounded-full cleen-transition-colors",c?.stopButton),style:d?.stopButton,children:Ee(ya,{className:"cleen-size-8 cleen-text-primary"})}),Ee("div",{ref:g,className:Je("cleen-w-full cleen-min-w-0 cleen-waveform",m==="idle"&&"cleen-hidden",c?.waveform),style:d?.waveform}),m==="recorded"&&Va("div",{className:Je("cleen-flex cleen-items-center cleen-gap-2 cleen-w-full",c?.recordedContainer),style:d?.recordedContainer,children:[Ee(ee,{type:"button",onClick:k,disabled:!w,"aria-label":L?"Pause":"Play",className:c?.playPauseButton?.className,classNames:{...c?.playPauseButton?.classNames,container:Je("cleen-p-0 !cleen-size-9 cleen-rounded-full cleen-shrink-0",c?.playPauseButton?.classNames?.container)},...d?.playPauseButton,children:L?Ee(ft,{className:"cleen-fill-current"}):Ee(ht,{className:"cleen-fill-current"})}),Va("span",{className:Je("cleen-tabular-nums cleen-text-muted-foreground cleen-text-xs cleen-shrink-0",c?.timestamp),style:d?.timestamp,children:[Ac(S),"\xA0/\xA0",Ac(N)]}),Ee("span",{className:"cleen-flex-1"}),!O&&b&&Va("span",{className:Je("cleen-tabular-nums cleen-text-muted-foreground cleen-text-xs cleen-shrink-0",c?.trimmedTimestamp),style:d?.trimmedTimestamp,children:[Ac(b.start),"\u2013",Ac(b.end)]}),Ee(ee,{type:"button",onClick:D,variant:"secondary","aria-label":"Discard recording",className:c?.discardButton?.className,classNames:{...c?.discardButton?.classNames,container:Je("cleen-p-0 !cleen-size-9 cleen-rounded-full cleen-shrink-0",c?.discardButton?.classNames?.container)},...d?.discardButton,children:Ee(rt,{className:"cleen-text-error"})}),Ee(ee,{type:"button",onClick:z,disabled:O||x||!w,"aria-label":"Apply trim",variant:"secondary",className:c?.trimButton?.className,classNames:{...c?.trimButton?.classNames,container:Je("cleen-p-0 !cleen-size-9 cleen-rounded-full cleen-shrink-0",c?.trimButton?.classNames?.container)},...d?.trimButton,children:Ee(ua,{})}),Ee(ee,{type:"button",onClick:A,"aria-label":"Finalize recording",className:c?.finalizeButton?.className,classNames:{...c?.finalizeButton?.classNames,container:Je("cleen-p-0 !cleen-size-9 cleen-rounded-full cleen-shrink-0",c?.finalizeButton?.classNames?.container)},...d?.finalizeButton,children:Ee(Ft,{})})]})]})})});import{cn as _c}from"@cleen/ui-core";import{forwardRef as uM,useMemo as fM}from"react";var Gv={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 Ha}from"react/jsx-runtime";var zc=uM(function({title:t,name:n,src:o,alt:l,size:a="md",initialsLength:c=2,isSelected:i=!1,showBorder:d=!1,fallback:s=Ha(xa,{}),className:p,classNames:g,style:m,styles:y,onClick:v,...h},b){let C=fM(()=>(c===2?n?.split(" ").map(x=>x.charAt(0).toUpperCase()).join("").slice(0,c):n?.charAt(0).toUpperCase())||s,[n,c,s]);return Ha("div",{className:_c("cleen",p),style:m,ref:b,...h,children:Ha("div",{onClick:v,className:_c("cleen-flex cleen-justify-center cleen-items-center cleen-bg-neutral-200 cleen-rounded-full cleen-font-medium cleen-transition-all",typeof a=="string"&&Gv[a],{"cleen-border-2 cleen-border-white":d,"cleen-cursor-pointer":!!v},g?.avatar,d&&i&&["cleen-border-primary",g?.avatarSelected]),style:{...typeof a=="number"&&{width:a,height:a,fontSize:a*.4,lineHeight:`${a}px`},...y?.avatar,...d&&i&&y?.avatarSelected},title:t||n,children:o?Ha("img",{src:o,alt:l||n,className:_c("cleen-rounded-full cleen-w-full cleen-h-full cleen-object-cover",g?.image),style:y?.image}):Ha("span",{className:_c("cleen-select-none cleen-text-neutral-700",g?.fallback),style:y?.fallback,children:C})})})});import{cn as $v}from"@cleen/ui-core";import{forwardRef as hM}from"react";import{jsx as Yh,jsxs as vM}from"react/jsx-runtime";var gM=hM(function({avatars:t,size:n="md",selectedAvatars:o=[],onAvatarToggle:l,gap:a=4,maxVisible:c,maxExtra:i=99,showBorder:d=!0,initialsLength:s,fallback:p,className:g,classNames:m,style:y,styles:v,...h},b){let C=c?t?.slice(0,c):t,x=c&&t&&t.length>c?Math.min(t.length-c,i):0;return Yh("div",{className:$v("cleen",g),style:y,ref:b,...h,children:vM("div",{className:$v("cleen-flex cleen-items-center",m?.row),style:{gap:a,...v?.row},children:[C?.map((I,P)=>{let B=o.includes(I?.id??"");return Yh(zc,{name:I.name,src:I.src,size:n,isSelected:B,showBorder:d,initialsLength:s,fallback:p,onClick:()=>l?.(I.id??""),...m?.avatar,style:{zIndex:C.length-P,...v?.avatar?.style},styles:v?.avatar?.styles,...I},I.id||P)}),x>0&&Yh(zc,{size:n,fallback:`+${x}`,...m?.extra,...v?.extra})]})})});import{cn as fo}from"@cleen/ui-core";import{forwardRef as bM}from"react";import{Link as Wv}from"react-router-dom";import{jsx as Ua,jsxs as Vc}from"react/jsx-runtime";var yM=bM(function({root:t={path:"/",icon:Ua(Yr,{"aria-hidden":"true",className:"cleen-h-5 cleen-w-5"})},segments:n,className:o,classNames:l,style:a,styles:c,...i},d){return!n||n.length===0?null:Ua("div",{className:fo("cleen",o),style:a,ref:d,...i,children:Ua("nav",{className:fo("cleen-hidden sm:cleen-flex",l?.container),style:c?.container,"aria-label":"Breadcrumb",children:Vc("ol",{role:"list",className:fo("cleen-flex cleen-items-center cleen-gap-4",l?.list),style:c?.list,children:[t&&Ua("li",{className:fo("cleen-flex cleen-items-center",l?.rootItem),style:c?.rootItem,children:Vc(Wv,{to:t?.path,className:fo("cleen-text-sm cleen-text-neutral-400 cleen-flex cleen-items-center cleen-gap-2 cleen-transition-colors cleen-duration-200 hover:cleen-text-neutral-600",l?.rootLink),style:c?.rootLink,"aria-current":"page",children:[t?.icon,t?.label]})}),n.map(({path:s,icon:p,label:g,id:m},y)=>{let v=y===n.length-1,h=g||s.charAt(0).toUpperCase()+s.slice(1);return Vc("li",{className:fo("cleen-flex cleen-items-center cleen-gap-4",l?.item),style:c?.item,children:[(t||!t&&y!==0)&&Ua(mt,{className:fo("cleen-h-5 cleen-w-5 cleen-text-neutral-300",l?.chevron),style:c?.chevron,"aria-hidden":"true"}),Vc(Wv,{to:s,className:fo("cleen-transition-colors cleen-duration-200 hover:cleen-text-primary cleen-text-sm cleen-flex cleen-items-center cleen-gap-2",v?"cleen-rounded-md cleen-bg-neutral-50 cleen-py-1 cleen-px-2 cleen-text-neutral-700 cleen-font-semibold":"cleen-text-neutral-600 cleen-font-medium",l?.link),style:c?.link,"aria-current":v?"page":void 0,children:[p,h]})]},m||s)})]})})})});var Hc=(e,t)=>{if(!e)return;if(!t||!t.min&&!t.max)return e;let{min:n,max:o}=t,l=new Date,a=new Date(l.getFullYear(),l.getMonth(),l.getDate());if(n){let c=n==="today"?a:n;if(c>=e)return c}if(o){let c=o==="today"?a:o;if(c<=e)return c}return e};import{cn as Uc}from"@cleen/ui-core";import{forwardRef as IM,useState as Zh}from"react";import{DayPicker as qv,MonthGrid as CM}from"react-day-picker";import{Fragment as xM,jsx as Vo,jsxs as Jh}from"react/jsx-runtime";var Qh=e=>e?.toLocaleString("en-US",{year:"numeric",month:"long",day:"numeric"}),jh=IM(function({label:t,labelTooltip:n,infoLabels:o,required:l,withDateInput:a=!1,withTodayButton:c=!1,selected:i,onSelect:d,month:s,labels:p,className:g,style:m,classNames:y,styles:v,mode:h="single",min:b,max:C,disabled:x,disabledDates:I,components:P,...B},E){let T=i!==void 0,M=h==="single",[L,w]=Zh(),[S,N]=Zh(),F=T?i:M?L:S,[R,k]=Zh(s),z=(O,V)=>{T||(M&&(O===void 0||O instanceof Date)?w(O):M||N(O)),d?.(O,V)},D={MonthGrid:O=>Jh(xM,{children:[(c||a)&&Jh("div",{className:"cleen-flex cleen-gap-3 cleen-items-center cleen-py-2",children:[a&&Vo(ge,{value:h==="single"?Qh(F):F?.from||F?.to?`${Qh(F?.from)??"..."} - ${Qh(F?.to)??"..."}`:void 0,placeholder:p?.inputPlaceholder??"No date selected",className:"cleen-flex-1",readOnly:!0}),c&&Vo(ee,{variant:"secondary",onClick:()=>k(new Date),children:p?.today??"Today"})]}),Vo(CM,{...O})]}),...P},A={navLayout:"around",...B,className:Uc("cleen-text-foreground",y?.calendar?.className),classNames:{...y?.calendar?.classNames,nav:Uc("cleen-text-error",y?.calendar?.classNames?.nav)},disabled:b||C?{before:b==="today"?new Date:b,after:C==="today"?new Date:C}:I||x,components:D,month:R,onMonthChange:k,...v?.calendar};return Jh("div",{ref:E,className:Uc("cleen",g),style:m,children:[t&&Vo(ae,{required:l,tooltip:n,className:Uc("cleen-mb-1.5",y?.label?.className),classNames:y?.label?.classNames,...v?.label,children:t}),M?Vo(qv,{mode:"single",...A,selected:F,onSelect:(O,V)=>{if(b||C){z(Hc(O,{min:b,max:C}),V);return}z(O,V)}}):Vo(qv,{mode:"range",...A,selected:F,onSelect:(O,V)=>{if(b||C){z({from:Hc(O?.from,{min:b,max:C}),to:Hc(O?.to,{min:b,max:C})},V);return}z(O,V)}}),(o?.errorMessage||o?.infoMessage||o?.subtitle)&&Vo(ne,{...o})]})});import{cn as qn,useOutsideClick as PM,usePositionClose as SM,ZIndex as wM}from"@cleen/ui-core";import{forwardRef as MM,useEffect as kM,useRef as Xv,useState as BM}from"react";import{createPortal as NM}from"react-dom";import{jsx as Ho,jsxs as Kv}from"react/jsx-runtime";var Ga=MM(function({type:t="button",required:n,label:o,title:l,titleTooltip:a,disabled:c=!1,leftIcon:i,rightIcon:d=Ho(Ar,{className:"cleen-size-5 cleen-shrink-0 cleen-text-foreground"}),fullWidth:s=!0,fullWidthDropdown:p,offset:g=4,isOpen:m,onOpenChange:y,keepOpenOnClickContent:v=!0,zIndex:h=wM.DROPDOWN,infoLabels:b,className:C,classNames:x,style:I,styles:P,children:B,...E},T){let[M,L]=BM(!1),w=m!==void 0?m:M,S=Xv(null),N=Xv(null),{positionStyles:F,isMounted:R}=SM({triggerRef:N,targetRef:S,position:"bottom-left",isOpen:w,offset:g});PM({refs:[S,N],handler:()=>{L(!1),y?.(!1)},enabled:w}),kM(()=>{let D=A=>{A.key==="Escape"&&w&&(L(!1),y?.(!1))};return document.addEventListener("keydown",D),()=>{document.removeEventListener("keydown",D)}},[w,y]);let k=()=>{let D=!w;m===void 0&&L(D),y?.(D)},z=()=>{v||(m===void 0&&L(!1),y?.(!1))};return Kv("div",{className:qn("cleen",C),style:I,ref:T,...E,children:[l&&Ho(ae,{required:n,tooltip:a,className:qn("cleen-mb-1.5",x?.title?.className),classNames:x?.title?.classNames,...P?.title,children:l}),Ho("div",{className:qn("cleen-inline-block cleen-relative",s&&"cleen-w-full"),ref:N,children:Kv("button",{type:t,className:qn("cleen-flex cleen-justify-between cleen-items-center cleen-gap-2 cleen-bg-background cleen-shadow-sm cleen-my-auto cleen-px-3.5 cleen-py-2.5 cleen-border cleen-border-border cleen-rounded-md cleen-w-full cleen-text-foreground cleen-text-base cleen-transition-colors cleen-duration-200 hover:cleen-bg-neutral-25 hover:cleen-border-muted-foreground",{"cleen-w-full cleen-flex-1":s,"cleen-opacity-50 cleen-cursor-not-allowed cleen-pointer-events-none":c},s&&"cleen-w-full",x?.trigger),style:P?.trigger,disabled:c,"aria-haspopup":"dialog","aria-expanded":w,onClick:k,children:[i,Ho("div",{className:qn("cleen-flex-1 cleen-text-left",x?.label),style:P?.label,children:o}),d]})}),(b?.errorMessage||b?.infoMessage||b?.subtitle)&&Ho(ne,{...b}),B&&w&&NM(Ho("div",{className:"cleen",children:Ho("div",{ref:S,className:qn("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:h,top:`${F.top}px`,left:`${F.left}px`,minWidth:p&&N.current?.offsetWidth?`${N.current.offsetWidth}px`:void 0,...P?.dropdown},onClick:z,children:B})}),document.body)]})});import{cn as Yv}from"@cleen/ui-core";import{forwardRef as TM,useMemo as RM,useState as Gc}from"react";import{jsx as Uo,jsxs as Zv}from"react/jsx-runtime";var LM=TM(function({label:t,placeholder:n,infoLabels:o,required:l,selected:a,onSelect:c,onSelectInternal:i,leftIcon:d,rightIcon:s=Uo(Lr,{className:"cleen-size-5 cleen-shrink-0 cleen-text-foreground"}),className:p,style:g,classNames:m,styles:y,mode:v="single",min:h,max:b,disabled:C,disabledDates:x,...I},P){let B=a!==void 0,E=v==="single",[T,M]=Gc(!1),[L,w]=Gc(),[S,N]=Gc(),F=B?a:E?L:S,[R,k]=Gc(),z=A=>{B||(E&&(A===void 0||A instanceof Date)?w(A):E||N(A)),c?.(A)},D=RM(()=>{if(!F)return n;if(E)return F?.toLocaleDateString();{let A=F;if(A.from&&A.to)return`${A.from.toLocaleDateString()} - ${A.to.toLocaleDateString()}`;if(A.from)return A.from.toLocaleDateString()}return n},[n,F,E]);return Zv("div",{ref:P,className:Yv("cleen",p),style:g,children:[Uo(Ga,{title:t,label:D,isOpen:T,onOpenChange:A=>{k(F),M(A)},leftIcon:d,rightIcon:s,className:m?.dropdown?.className,classNames:{...m?.dropdown?.classNames,dropdown:Yv("cleen-p-0 cleen-border-0",m?.dropdown?.classNames?.dropdown)},required:l,disabled:C,...y?.dropdown,children:Uo(fe,{footer:{hasDivider:!0,content:Zv("div",{className:"cleen-flex cleen-justify-between cleen-items-center",children:[Uo(ee,{variant:"secondary",onClick:()=>M(!1),styles:{container:{minWidth:"max-content"}},children:"Close"}),Uo(ee,{onClick:()=>{z(R),M(!1)},styles:{container:{minWidth:"max-content"}},children:"Apply"})]})},...m?.card,...y?.card,children:Uo(jh,{mode:v,...I,selected:R,onSelect:(A,O)=>k(i?.(A,O)??A),min:h,max:b,disabledDates:x,...m?.calendar,...y?.calendar})})}),(o?.errorMessage||o?.infoMessage||o?.subtitle)&&Uo(ne,{...o})]})});import"react";import{cn as Xn}from"@cleen/ui-core";import EM from"embla-carousel-auto-scroll";import DM from"embla-carousel-autoplay";import FM from"embla-carousel-react";import{forwardRef as AM,useEffect as OM,useMemo as Qv,useState as Jv}from"react";import{jsx as Go,jsxs as zM}from"react/jsx-runtime";var _M=AM(function({options:t,slideAmount:n=3,slideSize:o,prevBtn:l,nextBtn:a,autoPlay:c=!1,autoPlayOptions:i,autoScroll:d=!1,autoScrollOptions:s,children:p,className:g,classNames:m,style:y,styles:v,...h},b){let C=Qv(()=>{let N=[];return c&&N.push(DM(i)),d&&N.push(EM(s)),N},[c,d,i,s]),[x,I]=FM({skipSnaps:!0,...t},C),[P,B]=Jv(!0),[E,T]=Jv(!0),M=()=>I?.scrollPrev(),L=()=>I?.scrollNext(),w=N=>{B(!N?.canScrollPrev()),T(!N?.canScrollNext())};OM(()=>{I&&(w(I),I.on("reInit",w),I.on("select",w))},[I]);let S=Qv(()=>o?`${o}%`:`${100/n}%`,[o,n]);return Go("div",{className:Xn("cleen",g),style:y,ref:b,...h,children:zM("div",{className:Xn("cleen-flex cleen-gap-2",m?.container),style:v?.container,children:[Go("button",{className:Xn("cleen-text-foreground",m?.prevBtn,P&&"cleen-opacity-50"),onClick:M,disabled:P,style:v?.prevBtn,children:l||Go(At,{})}),Go("div",{className:Xn("cleen-flex-1 cleen-overflow-hidden",m?.viewport),style:v?.viewport,ref:x,children:Go("div",{className:Xn("cleen-flex [&>*]:cleen-flex-[0_0] cleen-gap-2 [&>*]:cleen-min-w-0 cleen-touch-pinch-zoom [&>*]:cleen-basis-[var(--cleen-carousel-slide-size)]",m?.list),style:{...v?.list,"--cleen-carousel-slide-size":S},children:p})}),Go("button",{className:Xn("cleen-text-foreground",m?.nextBtn,E&&"cleen-opacity-50"),onClick:L,disabled:E,style:v?.nextBtn,children:a||Go(mt,{})})]})})});import{cn as $o}from"@cleen/ui-core";import{forwardRef as VM,useEffect as tb,useId as HM,useRef as UM,useState as GM}from"react";var jv={primary:"cleen-bg-primary cleen-transition-all cleen-duration-200 hover:cleen-bg-primary hover:cleen-shadow-[0px_0px_0px_4px_rgba(var(--cleen-primary),0.25)]",error:"cleen-bg-error cleen-transition-all cleen-duration-200 hover:cleen-bg-error hover:cleen-shadow-[0px_0px_0px_4px_rgba(var(--cleen-error),0.25)]"},eb={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 $M,jsx as Ct,jsxs as $c}from"react/jsx-runtime";var $a=VM(function({id:t,name:n,required:o,checked:l,defaultChecked:a=!1,className:c,classNames:i,style:d,styles:s,onChange:p,disabled:g,title:m,titleTooltip:y,label:v,sublabel:h,variant:b="primary",allowIndeterminate:C=!1,fullTriggerArea:x=!1,infoLabels:I,inputRef:P,...B},E){let T=HM(),M=t??T,L=typeof l=="boolean"||l===null,[w,S]=GM(a),N=UM(null),F=A=>{N.current=A,P&&(P.current=A)};tb(()=>{L||S(a)},[a,L]);let R=L?l:w;tb(()=>{N.current&&(N.current.indeterminate=C&&R===null)},[C,R]);let k=A=>{let O;if(C)switch(R){case!0:O=null;break;case!1:O=!0;break;default:O=!1;break}else O=!R;L||S(O),p?.({...A,target:{...A.target,checked:O}})},z=$c($M,{children:[$c("label",{className:$o("cleen-bg-background cleen-transition-all cleen-duration-200 hover:cleen-bg-surface hover:cleen-shadow-[0px_0px_0px_4px_rgb(var(--cleen-neutral-100))] cleen-border cleen-border-neutral-300 cleen-rounded cleen-ring-primary cleen-size-5 cleen-min-w-5 cleen-min-h-5 cleen-cursor-pointer focus-within:cleen-ring-2 focus-within:cleen-ring-offset-1 focus-within:cleen-ring-primary",{[jv[b]]:R,[eb[b]]:R===null},g&&"cleen-cursor-not-allowed cleen-pointer-events-none","cleen-flex cleen-items-center cleen-justify-center",i?.checkbox),style:s?.checkbox,children:[Ct("input",{ref:F,type:"checkbox",disabled:g,className:"cleen-sr-only",checked:R===!0,onChange:k,id:M,name:n,...B}),R===null?Ct("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?Ct(Ft,{className:"cleen-stroke-[3px] cleen-size-3 cleen-text-primary-foreground"}):null]}),(v||h)&&$c("div",{children:[Ct("label",{htmlFor:M,className:$o("cleen-block cleen-text-foreground",i?.label),style:s?.label,children:v}),Ct("label",{htmlFor:M,className:$o("cleen-font-normal cleen-text-neutral-600 cleen-text-sm cleen-leading-5",i?.sublabel),style:s?.sublabel,children:h})]})]}),D={className:$o("cleen-flex cleen-items-start cleen-gap-2",{"cleen-opacity-50":g},i?.checkboxContainer),style:s?.checkboxContainer};return Ct("div",{className:$o("cleen",c),style:d,ref:E,children:$c("div",{className:$o(i?.container),style:s?.container,children:[m&&Ct(ae,{htmlFor:M,required:o,tooltip:y,className:$o("cleen-mb-1.5",i?.title?.className),classNames:i?.title?.classNames,...s?.title,children:m}),x?Ct("div",{...D,onClick:A=>{A.target instanceof Element&&!A.target.closest("label")&&N.current?.click()},children:z}):Ct("div",{...D,children:z}),(I?.errorMessage||I?.infoMessage||I?.subtitle)&&Ct(ne,{...I})]})})});import{cn as Wa}from"@cleen/ui-core";import{forwardRef as WM,useId as qM,useMemo as XM,useState as KM}from"react";import{jsx as Kn,jsxs as ZM}from"react/jsx-runtime";var YM=WM(function({id:t,required:n,label:o,labelTooltip:l,checkboxes:a,allowIndeterminate:c,infoLabels:i,requiresAtLeastOneOptions:d,classNames:s,styles:p,onChange:g,...m},y){let v=qM(),h=t??v,[b,C]=KM(!1),x=XM(()=>d&&b&&a?.every(P=>P.checked===!1)?d.title:i?.errorMessage,[d,i?.errorMessage,a,b]),I=(P,B)=>{let E={...B,checked:P.target.checked},T;a&&B?.id&&(T=[...a].map(M=>M.id===B.id?E:M)),g?.(E,T),C(!0)};return Kn("div",{className:Wa("cleen"),...m,ref:y,children:ZM("div",{className:Wa("cleen-flex cleen-flex-col cleen-gap-2",s?.container),style:p?.container,children:[o&&Kn(ae,{htmlFor:h,required:n,tooltip:l,className:Wa("cleen-mb-1.5",s?.label?.className),classNames:s?.label?.classNames,...p?.label,children:o}),Kn("div",{className:Wa("cleen-flex cleen-flex-col cleen-gap-3",s?.checkboxes),style:p?.checkboxes,children:a?.map((P,B)=>Kn("div",{className:Wa("cleen-flex",s?.checkboxContainer),style:p?.checkboxContainer,children:Kn($a,{allowIndeterminate:c,...P,id:`${h}-${B}`,fullTriggerArea:!0,onChange:E=>I(E,P)})},P.id))}),(x||i?.infoMessage||i?.subtitle)&&Kn(ne,{...i,errorMessage:x})]})})});import{cn as Wo}from"@cleen/ui-core";import{forwardRef as QM,useState as ob}from"react";import{jsx as Yn,jsxs as nb}from"react/jsx-runtime";var rb=QM(({sections:e,defaultOpenIndex:t,allowExpandAll:n=!1,className:o,classNames:l,style:a,styles:c,...i},d)=>{let[s,p]=ob(t??null),[g,m]=ob(()=>new Set(e.map((h,b)=>b))),y=h=>n?g.has(h):s===h,v=(h,b)=>{b.onClick?.(),b.items?.length&&(n?m(C=>{let x=new Set(C);return x.has(h)?x.delete(h):x.add(h),x}):p(s===h?null:h))};return Yn("div",{ref:d,className:Wo("cleen",o),style:{...a,width:"100%"},...i,children:Yn("div",{className:Wo("cleen-w-full",l?.container),style:c?.container,children:e.map((h,b)=>nb("div",{className:Wo("cleen-mb-3",l?.section),style:c?.section,children:[nb("div",{onClick:()=>v(b,h),className:Wo("cleen-flex cleen-w-full cleen-items-center cleen-justify-between cleen-font-medium cleen-text-md cleen-text-foreground cleen-p-2 cleen-rounded-lg cleen-cursor-pointer hover:cleen-bg-muted cleen-transition-colors",l?.sectionHeader),style:c?.sectionHeader,children:[Yn("div",{className:"cleen-flex-1 cleen-overflow-hidden cleen-whitespace-nowrap cleen-text-ellipsis",children:h?.title}),h?.items?.length?Yn(Ot,{className:Wo("cleen-shrink-0 cleen-text-neutral-400 cleen-transition-transform",{"cleen-rotate-180":!y(b)})}):null]}),y(b)&&h?.items&&Yn("div",{className:Wo("cleen-mt-1 cleen-flex cleen-flex-col cleen-w-full",l?.sectionBody),style:c?.sectionBody,children:h?.items?.map((C,x)=>Yn("div",{className:Wo("cleen-overflow-hidden cleen-whitespace-nowrap cleen-text-ellipsis cleen-p-2 cleen-w-full cleen-rounded-lg cleen-font-normal cleen-text-md cleen-text-foreground cleen-cursor-pointer hover:cleen-bg-muted cleen-transition-colors",l?.item),style:c?.item,onClick:C?.onClick,children:C?.content},C?.key??x))})]},h?.key??b))})})});rb.displayName="Collapsible";function e0(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 ab(e){return`rgba(${e.r}, ${e.g}, ${e.b}, ${e.a})`}import{cn as Wc}from"@cleen/ui-core";import{useEffect as JM,useState as jM}from"react";import{HexAlphaColorPicker as e3,RgbaColorPicker as t3}from"react-colorful";import{jsx as Zn,jsxs as n3}from"react/jsx-runtime";var lb="rgba(0, 0, 0, 1)",cb="#000000ff",o3=({required:e,value:t,defaultValue:n,onChange:o,colorModel:l="rgba",disabled:a,label:c,labelTooltip:i,className:d,classNames:s,style:p,styles:g,infoLabels:m,...y})=>{let v=t!==void 0,h=n??(l==="hexa"?cb:lb),[b,C]=jM(h),x=v?t:b;JM(()=>{v||C(n??(l==="hexa"?cb:lb))},[n,v,l]);let I=B=>{let E=ab(B);v||C(E),o?.(E)},P=B=>{v||C(B),o?.(B)};return Zn("div",{className:Wc("cleen",d),style:p,...y,children:n3("div",{className:Wc("cleen-flex cleen-flex-col cleen-rounded-md cleen-w-full cleen-overflow-visible cleen-font-medium",s?.container),style:g?.container,children:[c&&Zn(ae,{required:e,tooltip:i,className:Wc("cleen-mb-1.5",s?.label?.className),classNames:s?.label?.classNames,...g?.label,children:c}),Zn("div",{className:Wc("cleen-rounded-md",a&&"cleen-opacity-50 cleen-pointer-events-none",s?.picker),style:g?.picker,children:l==="hexa"?Zn(e3,{color:x,onChange:P}):Zn(t3,{color:e0(x),onChange:I})}),(m?.errorMessage||m?.infoMessage||m?.subtitle)&&Zn(ne,{...m})]})})};import{cn as at}from"@cleen/ui-core";import{forwardRef as r3,useMemo as a3,useState as l3}from"react";var t0=(e="")=>e.replace(/\D+/g,""),ib=e=>{switch(e.slice(0,2)){case"34":case"37":return"amex";case"36":return"dinersclub";default:return"other"}};function sb(e,t="other"){if(!e)return e;let n=t0(e),o;switch(t){case"amex":o=`${n.slice(0,4)} ${n.slice(4,10)} ${n.slice(10,15)}`;break;case"dinersclub":o=`${n.slice(0,4)} ${n.slice(4,10)} ${n.slice(10,14)}`;break;default:o=`${n.slice(0,4)} ${n.slice(4,8)} ${n.slice(8,12)} ${n.slice(12,19)}`;break}return o.trim()}var pb=e=>t0(e);function db(e){let t=t0(e);if(!t||parseInt(t.charAt(0),10)>=2)return"";if(t.length<2)return t;let n=t.slice(0,2);if(parseInt(n,10)<1||parseInt(n,10)>12)return t.slice(0,1);if(t.length<3)return n;if(t.length===3)return`${n}/${t.charAt(2)}`;let o=t.length===6?t.slice(-2):t.slice(2,4),l=new Date,a=l.getFullYear()%100,c=l.getMonth()+1;return parseInt(o,10)<a||parseInt(o,10)===a&&parseInt(n,10)<c?`${n}/${o.charAt(0)}`:`${n}/${o}`}import{jsx as ho,jsxs as mb}from"react/jsx-runtime";var c3=r3(function({labels:t,value:n,isLoading:o,errors:l,className:a,classNames:c,style:i,styles:d,infoLabels:s,onChange:p,onFieldFocus:g,...m},y){let[v,h]=l3({number:"",expiry:"",cvc:""}),b=!!n,C=b?n:v,x=a3(()=>ib(C.number),[C.number]),I=B=>{let{name:E}=B.target,{value:T}=B.target;switch(E){case"number":T=sb(T,x);break;case"expiry":T=db(T);break;case"cvc":T=pb(T);break;default:return}b||h(M=>({...M,[E]:T})),p?.({...n,[E]:T})},P=B=>{g?.(B.target.name)};return ho("div",{className:at("cleen",a),style:i,ref:y,...m,children:ho("div",{className:at("cleen-flex cleen-flex-wrap cleen-justify-center cleen-items-start cleen-gap-8 cleen-bg-background cleen-min-w-80 cleen-w-min cleen-border cleen-border-primary/20 cleen-rounded-[10px] cleen-shadow-lg",c?.container),style:d?.container,children:o?ho("div",{className:at("cleen-py-4",c?.loader?.container),style:d?.loader?.container,children:ho(re,{...c?.loader?.component,...d?.loader?.component})}):mb("form",{className:at("cleen-flex cleen-flex-col cleen-items-start cleen-gap-3 cleen-p-4",c?.form?.container),style:d?.form?.container,onSubmit:B=>B.preventDefault(),children:[ho(ge,{label:t?.number,name:"number",type:"tel",autoComplete:"cc-number",className:at("cleen-w-full",c?.form?.cardNumber?.className),classNames:{...c?.form?.cardNumber?.classNames,inputContainer:at({"cleen-border-error":l?.number},c?.form?.cardNumber?.classNames?.inputContainer),input:at({"cleen-text-error":l?.number},c?.form?.cardNumber?.classNames?.input)},...d?.form?.cardNumber,placeholder:"1111 1111 1111 1111",value:C.number,onChange:I,onFocus:P,infoLabels:{errorMessage:l?.number}}),mb("div",{className:at("cleen-flex cleen-justify-between cleen-items-start cleen-gap-3 cleen-w-full",c?.form?.cvcExpiryContainer),style:d?.form?.cvcExpiryContainer,children:[ho(ge,{label:t?.expiry,name:"expiry",type:"tel",autoComplete:"cc-exp",className:c?.form?.expiry?.className,classNames:{...c?.form?.expiry?.classNames,inputContainer:at({"cleen-border-error":l?.expiry},c?.form?.expiry?.classNames?.inputContainer),input:at({"cleen-text-error":l?.expiry},c?.form?.expiry?.classNames?.input)},...d?.form?.expiry,placeholder:"00/00",value:C.expiry,onChange:I,onFocus:P,infoLabels:{errorMessage:l?.expiry}}),ho(ge,{label:t?.cvc,name:"cvc",type:"tel",inputMode:"numeric",autoComplete:"cc-csc",maxLength:x==="amex"?4:3,className:c?.form?.cvc?.className,classNames:{...c?.form?.cvc?.classNames,inputContainer:at({"cleen-border-error":l?.cvc},c?.form?.cvc?.classNames?.inputContainer),input:at({"cleen-text-error":l?.cvc},c?.form?.cvc?.classNames?.input)},...d?.form?.cvc,placeholder:"***",value:C.cvc,onChange:I,onFocus:P,infoLabels:{errorMessage:l?.cvc}})]}),(s?.infoMessage||s?.errorMessage||s?.subtitle)&&ho(ne,{...s})]})})})});import{cn as ub}from"@cleen/ui-core";import{jsx as fb}from"react/jsx-runtime";var gt=({isHorizontal:e=!0,className:t,classNames:n,style:o,styles:l,...a})=>fb("div",{className:ub("cleen",t),style:o,children:fb("div",{className:ub("cleen-bg-border cleen-my-0",e?"cleen-w-full cleen-h-[1px]":"cleen-w-[1px] cleen-h-full",n?.container),style:l?.container,...a})});import{cn as go,useBodyScrollLock as i3,useCleenOverlays as hb,ZIndex as s3}from"@cleen/ui-core";import{forwardRef as p3,useCallback as d3,useEffect as o0,useId as m3,useRef as u3,useState as gb}from"react";import{createPortal as f3}from"react-dom";import{jsx as Qn,jsxs as qc}from"react/jsx-runtime";var h3={xs:320,sm:384,md:448,lg:512,xl:576,"2xl":672,"3xl":768},vb=300,n0=p3(function({title:t,subtitle:n,children:o,headerCloseBtn:l,footer:a,isOpen:c=!1,onClose:i,closeOnOverlayClick:d=!0,position:s="right",zIndex:p=s3.DRAWER,size:g="lg",p:m,gap:y,className:v,classNames:h,style:b,styles:C,...x},I){let[P,B]=gb(c),[E,T]=gb(c),M=u3(null),L=m3(),{addOverlay:w,removeOverlay:S}=hb(),N=d3(()=>{B(!1),setTimeout(()=>i?.(),vb)},[i]);return o0(()=>{if(c){T(!0);let F=setTimeout(()=>B(!0),1);return()=>clearTimeout(F)}else{B(!1);let F=setTimeout(()=>T(!1),vb);return()=>clearTimeout(F)}},[c]),o0(()=>{if(c)return w(L),()=>S(L)},[w,S,c,L]),o0(()=>{let F=R=>{let{overlays:k}=hb.getState();R.key==="Escape"&&k[k.length-1]===L&&N()};return document.addEventListener("keydown",F),()=>document.removeEventListener("keydown",F)},[N,L]),i3(E),E?f3(qc("div",{className:go("cleen",v),style:b,ref:I,...x,children:[Qn("div",{className:go("cleen-fixed cleen-inset-0 cleen-bg-black/50 dark:cleen-bg-surface/50 cleen-transition-opacity cleen-duration-300 cleen-ease-in-out",P?"cleen-opacity-100":"cleen-opacity-0",h?.overlay),onClick:()=>{d&&N()},style:{zIndex:p-1,...C?.overlay},"aria-hidden":"true"}),qc("div",{className:go("cleen-top-0 cleen-fixed cleen-flex cleen-flex-col cleen-gap-6 cleen-bg-surface cleen-shadow-l cleen-h-dvh cleen-transition-transform cleen-duration-300 cleen-ease-in-out cleen-transform",s==="right"?"cleen-right-0":"cleen-left-0",P?"cleen-translate-x-0":s==="right"?"cleen-translate-x-full":"-cleen-translate-x-full",h?.drawer),style:{zIndex:p,width:typeof g=="number"?g:h3[g],...y!==void 0&&{gap:y},...C?.drawer},ref:M,children:[qc("div",{className:go("cleen-flex cleen-justify-between cleen-items-center cleen-px-6 cleen-pt-6 cleen-w-full",h?.header),style:{...m!==void 0&&{paddingInline:m,paddingTop:m},...C?.header},children:[qc("div",{className:"cleen-flex cleen-flex-col",children:[Qn("span",{className:go("cleen-font-semibold cleen-text-foreground-emphasis cleen-text-xl",h?.title),style:C?.title,children:t}),Qn("span",{className:go("cleen-font-normal cleen-text-neutral-600 cleen-text-sm",h?.subtitle),style:C?.subtitle,children:n})]}),l||Qn(Ve,{onClick:N,className:"cleen-mb-auto cleen-size-5 cleen-cursor-pointer"})]}),Qn("div",{className:go("cleen-flex-1 cleen-px-6 cleen-overflow-y-auto cleen-no-scrollbar",h?.content),style:{...m!==void 0&&{paddingInline:m},...C?.content},children:o}),a&&Qn("div",{className:go("cleen-flex cleen-justify-end cleen-items-center cleen-gap-2 cleen-bg-sidebar cleen-px-6 cleen-py-4 cleen-border-border cleen-border-t",h?.footer),style:{...m!==void 0&&{paddingInline:m,paddingBlock:y},...C?.footer},children:a})]})]}),document.body):null});import{cn as qo,useAnimateNumber as g3}from"@cleen/ui-core";import{forwardRef as v3,useEffect as b3,useMemo as y3,useRef as I3,useState as C3}from"react";import{jsx as Xc,jsxs as r0}from"react/jsx-runtime";var Jn=v3(({percentage:e,title:t,barColor:n,backgroundColor:o="rgb(var(--cleen-neutral-200))",textColor:l="rgb(var(--cleen-foreground))",invertProgressColors:a=!1,showPercentage:c=!1,renderAnimated:i=!1,renderAnimatedDuration:d=1e3,className:s,classNames:p,style:g,styles:m,...y},v)=>{let h=Math.max(0,Math.min(e,100)),b=I3(h),[C,x]=C3(i?0:h),I=g3({targetNumber:C,duration:d,disabled:!i});b3(()=>{if(i){setTimeout(()=>x(h),0);return}b.current!==h&&(x(h),b.current=h)},[h,i]);let P=y3(()=>{if(n)return n;switch(h<=30?"red":h<70?"orange":"green"){case"red":return a?"rgb(var(--cleen-success))":"rgb(var(--cleen-error))";case"orange":return"rgb(var(--cleen-warning))";case"green":return a?"rgb(var(--cleen-error))":"rgb(var(--cleen-success))";default:return"rgb(var(--cleen-success))"}},[h,a,n]);return Xc("div",{ref:v,className:qo("cleen",s),style:g,children:r0("div",{className:qo("cleen-w-full",p?.container),style:m?.container,...y,children:[t&&Xc("div",{className:qo("cleen-mb-1 cleen-font-semibold cleen-text-xs",p?.title),style:m?.title,children:t}),r0("div",{className:qo("cleen-flex cleen-items-center cleen-gap-2 cleen-w-full cleen-h-4",p?.wrapper||p?.progress),style:m?.wrapper??m?.progress,children:[Xc("div",{className:qo("cleen-overflow-hidden cleen-flex-1 cleen-h-2 cleen-rounded-full",p?.track),style:{backgroundColor:o,...m?.track},children:Xc("div",{className:qo("cleen-h-full cleen-transition-all cleen-duration-300 ease-out",p?.fill),style:{width:`${C}%`,backgroundColor:P,...i&&{transitionDuration:`${d}ms`},...m?.fill}})}),c&&r0("span",{className:qo("cleen-font-medium cleen-text-sm cleen-whitespace-nowrap cleen-w-10",p?.text),style:{color:l,...m?.text},children:[Math.round(I),"%"]})]})]})})});Jn.displayName="ProgressBar";import{cn as vo,FileEntryStatus as Xo}from"@cleen/ui-core";import{useMemo as bb}from"react";import{Fragment as yb,jsx as De,jsxs as Ko}from"react/jsx-runtime";var Ib=({fileEntry:e,onRemove:t,onFileClick:n,labels:o,classNames:l,styles:a})=>{let{id:c,file:i,name:d,size:s,url:p,type:g,status:m,progress:y=0,preExisting:v}=e,h=m===Xo.UPLOADING,b=m===Xo.ERROR,C=m===Xo.DONE,x=m===Xo.DELETING,I=s?s*y/100:0,P=bb(()=>{switch(m){case Xo.UPLOADING:return Ko(yb,{children:[De(Oo,{className:"cleen-size-4"}),De("span",{children:o?.uploading})]});case Xo.DONE:return De(Ro,{className:"cleen-size-4"});case Xo.ERROR:return De(To,{className:"cleen-size-4"});default:return null}},[m,o]),B=()=>{if(n){n(e);return}p&&window.open(p,"_blank","noopener,noreferrer")},E=d||i?.name||"",[T,M]=E.split("."),L=bb(()=>g?.startsWith("image/")&&p?De("img",{src:p,alt:E,className:"cleen-size-8 cleen-object-cover cleen-rounded-md"}):g==="application/pdf"?De(Do,{className:"cleen-size-8"}):De(Eo,{className:"cleen-size-8"}),[E,g,p]);return De(fe,{p:12,className:l?.card?.className,classNames:{...l?.card?.classNames,container:vo(l?.card?.classNames?.container,{"hover:cleen-bg-muted cleen-cursor-pointer cleen-overflow-hidden":C})},...a?.card,onClick:C?B:void 0,children:Ko("div",{className:vo("cleen-space-y-1",l?.container),style:a?.container,children:[Ko("div",{className:vo("cleen-flex cleen-justify-between cleen-items-center cleen-gap-2",l?.nameContainer),style:a?.nameContainer,children:[L,Ko("div",{className:vo("cleen-text-foreground cleen-text-sm cleen-font-medium cleen-flex",l?.name),style:{maxWidth:L?"calc(100% - 5rem)":"calc(100% - 2.5rem)",...a?.name},children:[De("span",{className:"cleen-truncate cleen-shrink",children:T}),Ko("span",{className:"cleen-whitespace-nowrap",children:[".",M]})]}),De("div",{className:"cleen-flex-1"}),!h&&(x?De(re,{color:"rgb(var(--cleen-error))",className:vo("cleen-shrink-0")}):De(rt,{className:vo("cleen-size-4 cleen-shrink-0 cleen-text-neutral-600 hover:cleen-text-error cleen-transition-colors cleen-cursor-pointer"),onClick:w=>{w.stopPropagation(),t?.(c)}}))]}),Ko("div",{className:vo("cleen-flex cleen-gap-2 cleen-items-center cleen-text-neutral-600 cleen-text-xs",l?.statusContainer),style:a?.statusContainer,children:[!!s&&(h?De("p",{children:o?.uploadProgress?.(I,s)}):C&&De("p",{children:o?.uploaded?.(s)})),!v&&Ko(yb,{children:[De("span",{children:"|"}),De("div",{className:vo("cleen-flex cleen-items-center cleen-gap-1",{"cleen-text-error":b,"cleen-text-success":C},l?.statusText),style:a?.statusText,children:P})]})]}),h&&De(Jn,{barColor:"rgb(var(--cleen-primary))",percentage:y,showPercentage:!0,...l?.progressBar,...a?.progressBar})]})},c)};var Kc=e=>{if(e===0)return"0 B";let t=1024,n=["B","KB","MB","GB","TB"],o=Math.floor(Math.log(e)/Math.log(t));return`${parseFloat((e/Math.pow(t,o)).toFixed(1))} ${n[o]}`};var Cb={primaryText:"Click to upload",secondaryText:"or drag and drop",helperText:"SVG, PNG or JPG (max. 400x400px)",uploading:"Uploading...",uploadProgress:(e,t)=>`${Kc(e)} of ${Kc(t)}`,uploaded:e=>Kc(e)};var xb={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 qa=(a=>(a.PENDING="pending",a.IN_PROGRESS="inProgress",a.DONE="done",a.ERROR="error",a.REMOVING="removing",a))(qa||{});import{cn as Yo}from"@cleen/ui-core";import{jsx as bo,jsxs as Pb}from"react/jsx-runtime";var a0=({item:e,labels:t,classNames:n,styles:o})=>{let{status:l,progress:a=0,icon:c,name:i}=e,d=l==="inProgress",s=l==="done",p=l==="error",g=l==="removing",m=l==="pending";return Pb("div",{className:Yo("cleen-flex cleen-items-center cleen-gap-3",n?.container),style:o?.container,children:[c,Pb("div",{className:Yo("cleen-flex-1 cleen-space-y-1 cleen-min-w-0",n?.infoContainer),style:o?.infoContainer,children:[bo("p",{className:Yo("cleen-font-medium cleen-text-foreground cleen-text-sm cleen-truncate",n?.name),style:o?.name,children:i}),d&&bo(Jn,{barColor:"rgb(var(--cleen-primary))",percentage:a,...n?.progressBar,...o?.progressBar})]}),d&&bo("span",{className:Yo("cleen-shrink-0 cleen-text-muted-foreground cleen-text-xs",n?.progressText),style:o?.progressText,children:t?.itemProgress?.(a)}),g&&bo(re,{color:"rgb(var(--cleen-error))"}),s&&bo(Ro,{className:Yo("cleen-size-5 cleen-shrink-0 cleen-text-success",n?.statusIcon),style:o?.statusIcon}),p&&bo(To,{className:Yo("cleen-size-5 cleen-shrink-0 cleen-text-error",n?.statusIcon),style:o?.statusIcon}),m&&bo("div",{className:Yo("cleen-size-5 cleen-shrink-0 cleen-flex cleen-items-center cleen-gap-1",n?.statusIcon),style:o?.statusIcon,children:Array.from({length:3}).map((y,v)=>bo("div",{className:"cleen-size-1 cleen-bg-primary cleen-rounded-full cleen-animate-bounce-medium",style:{animationDelay:`${v*.1}s`}},v))})]})};var Xa=(l=>(l.NOT_STARTED="notStarted",l.IN_PROGRESS="inProgress",l.COMPLETED="completed",l.ALL="all",l))(Xa||{}),Ka=["notStarted","inProgress","completed","all"];import{cn as Yc}from"@cleen/ui-core";import{jsx as Sb,jsxs as x3}from"react/jsx-runtime";var l0=({value:e,onChange:t,counts:n,labels:o,classNames:l,styles:a})=>Sb("div",{role:"group","aria-label":o?.statusFilter,className:Yc("cleen-flex cleen-flex-wrap cleen-items-center cleen-gap-0.5 cleen-bg-muted cleen-p-0.5 cleen-border cleen-border-border cleen-rounded-md",l?.container),style:a?.container,children:Ka.map(c=>{let i=c===e;return x3("button",{type:"button","aria-pressed":i,onClick:()=>t(c),className:Yc("cleen-flex cleen-items-center cleen-gap-1 cleen-px-2 cleen-py-0.5 cleen-rounded cleen-font-medium cleen-text-muted-foreground cleen-text-xs cleen-whitespace-nowrap cleen-transition-colors hover:cleen-text-foreground focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-primary",l?.option,i&&Yc("cleen-bg-background cleen-text-foreground cleen-shadow-sm",l?.optionActive)),style:{...a?.option,...i&&a?.optionActive},children:[o?.statusFilterOptions?.[c],n&&Sb("span",{className:Yc("cleen-text-neutral-400 cleen-tabular-nums",l?.optionCount),style:a?.optionCount,children:n[c]})]},c)})});var wb={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 Mb=e=>e.status==="inProgress"||e.status==="pending",kb=e=>e.length>0&&e.every(t=>t.status==="done"),c0=(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 P3,cn as vt,useControlled as Bb,useDisclosure as S3}from"@cleen/ui-core";import{forwardRef as w3,useEffect as Nb,useMemo as i0,useRef as M3}from"react";import{jsx as xt,jsxs as s0}from"react/jsx-runtime";var p0=w3(function({items:t,title:n,maxVisibleItems:o=5,isExpanded:l,defaultExpanded:a=!1,onExpandedChange:c,onDismiss:i,autoDismissOnUploadCompleteAfterMilliSeconds:d,showHeader:s=!0,showStatusFilter:p=!1,showStatusFilterCounts:g=!1,statusFilter:m,defaultStatusFilter:y="inProgress",onStatusFilterChange:v,labels:h,className:b,classNames:C,style:x,styles:I,...P},B){let{isOpen:E,toggle:T,close:M}=S3(),{value:L,handleChange:w}=Bb({value:l,defaultValue:a,onChange:c});Nb(()=>{t.length>0&&M()},[t.length,M]);let S=P3(wb,h),{value:N,handleChange:F}=Bb({value:m,defaultValue:y,onChange:v}),R=M3(i);R.current=i;let k=kb(t);Nb(()=>{if(d==null||!R.current||!k)return;if(d<=0){R.current();return}let W=setTimeout(()=>R.current?.(),d);return()=>clearTimeout(W)},[k,d]);let z=i0(()=>t.filter(Mb).length,[t]),D=i0(()=>!p||!N?t:t.filter(W=>c0(W,N)),[t,p,N]),A=i0(()=>{if(g)return Ka.reduce((W,q)=>({...W,[q]:t.filter(H=>c0(H,q)).length}),{})},[t,g]);if(!t.length)return null;let O=Math.max(D.length-o,0),V=L||!O?D:D.slice(0,o),U=n??(z?S?.processing?.(z):S?.completed);return xt(fe,{p:16,gap:12,ref:B,className:vt(b,C?.card?.className),classNames:{...C?.card?.classNames,childrenContainer:vt(C?.card?.classNames?.childrenContainer,{"cleen-hidden":E})},style:x,styles:I?.card?.styles,header:s?{hasDivider:!E,content:s0("div",{className:vt("cleen-flex cleen-justify-between cleen-items-center cleen-gap-2",C?.header),style:I?.header,children:[xt("p",{className:vt("cleen-font-semibold cleen-text-foreground cleen-text-sm",C?.title),style:I?.title,children:U}),s0("div",{className:vt("cleen-flex cleen-items-center cleen-gap-2",C?.headerButtons),style:I?.headerButtons,children:[xt("button",{type:"button","aria-label":S?.contract,onClick:T,className:vt("cleen-text-muted-foreground hover:cleen-text-foreground cleen-transition-colors focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-primary cleen-rounded",C?.contractButton),style:I?.contractButton,children:xt(Ot,{className:vt("cleen-size-5 cleen-transition-transform",E&&"cleen-rotate-180")})}),i&&xt("button",{type:"button","aria-label":S?.dismiss,onClick:i,className:vt("cleen-text-muted-foreground hover:cleen-text-foreground cleen-transition-colors focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-primary cleen-rounded",C?.dismissButton),style:I?.dismissButton,children:xt(Ve,{className:"cleen-size-4"})})]})]})}:void 0,...P,children:s0("div",{className:vt("cleen-flex cleen-flex-col cleen-gap-3",C?.list),style:I?.list,children:[p&&N&&xt(l0,{value:N,onChange:F,counts:A,labels:S,classNames:C?.statusFilter,styles:I?.statusFilter}),!V.length&&xt("p",{className:vt("cleen-text-muted-foreground cleen-text-xs",C?.emptyStatusFilter),style:I?.emptyStatusFilter,children:S?.emptyStatusFilter}),V.map(W=>xt(a0,{item:W,labels:S,classNames:C?.row,styles:I?.row},W.id)),!!O&&xt("button",{type:"button","aria-expanded":L,onClick:()=>w(!L),className:vt("cleen-self-start cleen-font-medium cleen-text-primary cleen-text-xs hover:cleen-underline focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-primary cleen-rounded",C?.expandButton),style:I?.expandButton,children:L?S?.showLess:S?.showMore?.(O)})]})})});import{FileEntryStatus as Gt}from"@cleen/ui-core";var k3=[{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"]}],Tb={label:"FILE",className:"cleen-bg-neutral-500"},B3={[Gt.QUEUED]:"inProgress",[Gt.UPLOADING]:"inProgress",[Gt.PAUSED]:"inProgress",[Gt.DONE]:"done",[Gt.ERROR]:"error",[Gt.DELETING]:"removing"},d0=e=>e.name||e.file?.name||"",Rb=e=>{let t=d0(e).split(".").pop()?.toLowerCase()??"",n=k3.find(({extensions:o})=>o.includes(t));return n?{label:n.label,className:n.className}:{label:t?t.slice(0,4).toUpperCase():Tb.label,className:Tb.className}},Lb=e=>e.status===Gt.QUEUED||e.status===Gt.UPLOADING||e.status===Gt.PAUSED,Eb=e=>B3[e.status]??"pending",Db=e=>Array.isArray(e)?e:Array.from(e.values());import{cn as N3}from"@cleen/ui-core";import{jsx as T3}from"react/jsx-runtime";var Fb=({fileEntry:e,className:t,style:n})=>{let o=Rb(e);return T3("div",{className:N3("cleen-flex cleen-justify-center cleen-items-center cleen-rounded-md cleen-size-8 cleen-shrink-0 cleen-font-semibold cleen-text-[10px] cleen-text-white",o.className,t),style:n,children:o.label})};import{jsx as R3}from"react/jsx-runtime";var Ab=(e,t)=>({id:e.id,name:d0(e),progress:e.progress,status:Eb(e),icon:R3(Fb,{fileEntry:e,className:t?.className,style:t?.style})});import{applyDefaults as L3}from"@cleen/ui-core";import{forwardRef as E3,useMemo as Ob}from"react";import{jsx as D3}from"react/jsx-runtime";var m0=E3(function({files:t,title:n,maxVisibleFiles:o=5,labels:l,classNames:a,styles:c,...i},d){let s=Ob(()=>Db(t),[t]),p=L3(xb,l),g=Ob(()=>s.map(v=>Ab(v,{className:a?.row?.typeBadge,style:c?.row?.typeBadge})),[s,a?.row?.typeBadge,c?.row?.typeBadge]),m=s.filter(Lb).length,y=n??(m?p?.uploading?.(m):p?.completed);return D3(p0,{ref:d,items:g,title:y,maxVisibleItems:o,labels:{showMore:p?.showMore,showLess:p?.showLess,dismiss:p?.dismiss,contract:p?.contract,itemProgress:p?.uploadProgress},classNames:a,styles:c,...i})});import{applyDefaults as F3,cn as We,FileEntryStatus as A3,useFileUpload as O3}from"@cleen/ui-core";import{forwardRef as _3,useEffect as z3,useMemo as _b,useRef as zb,useState as u0}from"react";import{createPortal as V3}from"react-dom";import{jsx as qe,jsxs as Zc}from"react/jsx-runtime";var H3=_3(function({required:t,icon:n,files:o,initialFiles:l=[],onFilesChange:a,onFileUpload:c,onFilesUpload:i,onFileRemove:d,onFileClick:s,infoLabels:p,containerRef:g,label:m,labelTooltip:y,labels:v,showUploadedFiles:h=!1,showProgressTracker:b=!1,progressTracker:C,className:x,classNames:I,style:P,styles:B,multiple:E,disabled:T,loadingWhileUploading:M,isLoading:L,readOnly:w,onChange:S,id:N,name:F,...R},k){let z=zb(null),{files:D,addFiles:A,remove:O}=O3({files:o,onFilesChange:a,initialFiles:l,onFileUpload:c,onFilesUpload:i,onFileRemove:d}),V=_b(()=>L||M&&Array.from(D.values()).some(K=>K.status===A3.UPLOADING),[D,M,L]),[U,W]=u0(!1),[q,H]=u0([]),[$,Q]=u0(!1),_=zb(new Set(D.keys()));z3(()=>{let K=Array.from(D.keys()),Se=K.filter(Re=>!_.current.has(Re));_.current=new Set(K),H(Re=>{let we=Re.filter($e=>D.has($e));return Se.length?$?Se:[...we,...Se.filter($e=>!we.includes($e))]:we.length===Re.length?Re:we}),Se.length&&Q(!1)},[D,$]);let Z=_b(()=>q.map(K=>D.get(K)).filter(K=>!!K),[q,D]),pe=()=>{Q(!0),H([]),C?.onDismiss?.()},he=!T&&!w&&!V,be=K=>{let Se=Array.from(K.target.files??[]);A(Se),S?.(K)},Ne=K=>{O(K)},_e=()=>{he&&z.current?.click()},j=K=>{if(!K.length)return;let Se=E?K:K.slice(0,1);if(!z.current||typeof DataTransfer>"u"){A(Se);return}let Re=new DataTransfer;Se.forEach(we=>Re.items.add(we));try{z.current.files=Re.files}catch{A(Se);return}A(Se),S?.({target:z.current,currentTarget:z.current})},ie=K=>{K.preventDefault(),K.stopPropagation(),W(!1),he&&j(Array.from(K.dataTransfer.files??[]))},Ge=K=>{K.preventDefault(),K.stopPropagation(),he&&W(!0)},ze=K=>{K.preventDefault(),K.stopPropagation(),he&&W(!0)},Te=K=>{K.preventDefault(),K.stopPropagation(),he&&W(!1)},dt=K=>{he&&(K.key!=="Enter"&&K.key!==" "||(K.preventDefault(),_e()))},Qe=F3(Cb,v);return Zc("div",{className:We("cleen",x),style:P,ref:g,children:[qe("input",{id:N||F,name:F,ref:K=>{if(z.current=K,typeof k=="function"){k(K);return}k&&(k.current=K)},type:"file",multiple:E,disabled:T||V,readOnly:w,className:We("cleen-hidden",I?.input),style:B?.input,onChange:be,...R}),m&&qe(ae,{htmlFor:N||F,required:t,tooltip:y,className:We("cleen-mb-1.5",I?.label?.className),classNames:I?.label?.classNames,...B?.label,children:m}),Zc("div",{className:We("cleen-relative cleen-blur-0",{"cleen-pointer-events-none":V}),children:[qe(fe,{tabIndex:he?0:-1,role:"button","aria-label":typeof m=="string"?m:"Upload file","aria-disabled":T||w||V,onClick:_e,onKeyDown:dt,onDrop:ie,onDragEnter:Ge,onDragOver:ze,onDragLeave:Te,p:16,className:We("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:We("cleen-transition-colors",T?"cleen-cursor-not-allowed cleen-bg-muted":"cleen-cursor-pointer hover:cleen-bg-surface hover:cleen-border-muted-foreground",I?.card?.classNames?.container,U&&["cleen-border-muted-foreground cleen-bg-surface",I?.cardDragActive]),childrenContainer:We({"cleen-blur-sm":V},I?.card?.classNames?.childrenContainer)},style:B?.card?.style,styles:{...B?.card?.styles,container:{...B?.card?.styles?.container,...U?B?.cardDragActive:void 0}},children:Zc("div",{className:We("cleen-flex cleen-flex-col cleen-justify-center cleen-items-center cleen-gap-3 cleen-text-center",I?.dropArea),style:B?.dropArea,"aria-disabled":T||w||V,children:[qe("div",{className:We("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:B?.iconContainer,children:n||qe(Oo,{className:"cleen-size-5"})}),Zc("p",{className:We("cleen-font-medium cleen-text-sm",I?.textContainer),style:B?.textContainer,children:[qe("span",{className:We(T?"cleen-text-muted-foreground":"cleen-text-primary",I?.primaryText),style:B?.primaryText,children:Qe?.primaryText})," ",qe("span",{className:We("cleen-text-foreground",I?.secondaryText),style:B?.secondaryText,children:Qe?.secondaryText})]}),qe("p",{className:We("cleen-text-neutral-600 cleen-text-xs",I?.helperText),style:B?.helperText,children:Qe?.helperText})]})}),V&&qe(re,{size:"md",className:"cleen-absolute cleen-top-1/2 cleen-left-1/2 -cleen-translate-x-1/2 -cleen-translate-y-1/2"})]}),h&&D.size>0&&qe("div",{className:"cleen-flex cleen-flex-col cleen-gap-2 cleen-mt-4",children:Array.from(D.values()).map(K=>qe(Ib,{fileEntry:K,onRemove:Ne,onFileClick:s,labels:Qe,classNames:I?.fileCard,styles:B?.fileCard},K.id))}),b&&!$&&Z.length>0&&V3(qe("div",{className:"cleen",children:qe(m0,{...C,files:Z,onDismiss:pe,className:We("cleen-fixed cleen-right-0 cleen-bottom-0 cleen-m-4 cleen-w-96",I?.progressTracker?.className),classNames:I?.progressTracker?.classNames,...B?.progressTracker})}),document.body),(p?.errorMessage||p?.infoMessage||p?.subtitle)&&qe(ne,{...p})]})});var U3=e=>{let t=e instanceof Date?e:new Date(e);if(Number.isNaN(t.getTime()))return;let n={dateStyle:"medium",timeStyle:"short"};try{return new Intl.DateTimeFormat("en-US",n).format(t)}catch{return new Intl.DateTimeFormat("en-US",n).format(t)}},Vb={uploaded:e=>`Uploaded: ${U3(e)}`};var f0={"image/":"image","video/":"video","audio/":"audio"},h0={"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"},Hb={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"},Ub=["http:","https:","blob:"];var G3=e=>{let t=e?.split(";")[0].trim().toLowerCase();if(!t)return;if(t in h0)return h0[t];let n=Object.keys(f0).find(o=>t.startsWith(o));return n?f0[n]:void 0},g0=e=>{let t=e.lastIndexOf(".");return t<0?void 0:e.slice(t+1).toLowerCase()},$3=e=>{let t=g0(e);return t?Hb[t]:void 0},Gb=e=>G3(e.type)??$3(e.name)??"generic",$b=e=>{if(!e)return!1;try{let t=typeof document<"u"?document.baseURI:void 0;return Ub.includes(new URL(e,t).protocol)}catch{return!1}};import{cn as $t,formatFileSize as W3}from"@cleen/ui-core";import{forwardRef as q3,useMemo as Wb,useState as X3}from"react";import{Fragment as Y3,jsx as Pt,jsxs as Qc}from"react/jsx-runtime";var K3=q3(function({file:t,preview:n=!1,onRemove:o,description:l,labels:a,className:c,classNames:i,style:d,styles:s,...p},g){let[m,y]=X3(),v=Wb(()=>({...Vb,...a}),[a]),h=Gb(t),b=Ah(g0(t.name)),C=$b(t.url)?t.url:void 0,x=t.previewUrl||t.url,I=n&&(h==="image"||h==="video")&&!!x&&m!==x,P=Wb(()=>{if(l!=null)return l;let M=[];if(t.size!=null&&M.push(W3(t.size)),t.uploadedAt!=null){let L=v?.uploaded(t.uploadedAt);L&&M.push(L)}return M.length>0?M.join(" \u2022 "):null},[l,t.uploadedAt,t.size,v]),B=M=>{M.stopPropagation(),o?.(t)},E=$t("cleen-flex cleen-min-w-0 cleen-flex-1 cleen-items-center cleen-gap-3 cleen-py-2 cleen-px-3 cleen-rounded-lg",C&&"cleen-cursor-pointer focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-inset focus-visible:cleen-ring-primary",i?.main),T=Qc(Y3,{children:[Qc("div",{className:$t("cleen-flex cleen-size-10 cleen-shrink-0 cleen-items-center cleen-justify-center cleen-overflow-hidden cleen-rounded-lg cleen-bg-primary-50 cleen-text-primary-600",i?.media),style:s?.media,children:[I&&(h==="image"||h==="video"&&t.previewUrl)&&Pt("img",{src:x,alt:t.name,className:"cleen-size-full cleen-object-cover",onError:()=>y(x)}),I&&h==="video"&&!t.previewUrl&&Pt("video",{src:x,"aria-label":t.name,className:"cleen-size-full cleen-object-cover",muted:!0,playsInline:!0,preload:"metadata",onError:()=>y(x)}),!I&&Pt(b,{"aria-hidden":!0,className:$t("cleen-size-5",i?.icon),style:s?.icon})]}),Qc("div",{className:$t("cleen-flex cleen-min-w-0 cleen-flex-1 cleen-flex-col cleen-gap-0.5",i?.content),style:s?.content,children:[Pt("span",{className:$t("cleen-truncate cleen-text-sm cleen-font-semibold cleen-text-foreground",i?.title),style:s?.title,title:t.name,children:t.name}),P!==null&&Pt("span",{className:$t("cleen-truncate cleen-text-xs cleen-text-muted-foreground",i?.description),style:s?.description,children:P})]})]});return Pt("div",{className:$t("cleen",c),style:d,ref:g,...p,children:Qc("div",{className:$t("cleen-flex cleen-w-full cleen-min-w-0 cleen-items-center cleen-rounded-lg cleen-border cleen-border-border cleen-bg-background cleen-transition-all cleen-duration-200",C&&"hover:cleen-border-neutral-300 hover:cleen-shadow-md",i?.container),style:s?.container,children:[C?Pt("a",{href:C,target:"_blank",rel:"noopener noreferrer",className:E,style:s?.main,children:T}):Pt("div",{className:E,style:s?.main,children:T}),o&&Pt("button",{type:"button",className:$t("cleen-mr-3 cleen-flex cleen-size-8 cleen-shrink-0 cleen-items-center cleen-justify-center cleen-rounded-md cleen-text-error cleen-transition-colors hover:cleen-bg-muted focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-error",i?.removeButton),style:s?.removeButton,onClick:B,children:Pt(Ve,{"aria-hidden":!0,className:"cleen-size-5"})})]})})});var Jc={filterName:"",exposed:!1};import{createContext as Z3}from"react";var lt=Z3({isSaveFiltersStep:!1,setIsSaveFiltersStep:()=>{},saveStepValues:{exposed:!1,filterName:""},setSaveStepValues:()=>{},handleCloseSaveFilter:()=>{},isFiltersDropdownOpen:!1,setIsFiltersDropdownOpen:()=>{},errors:{},setErrors:()=>{},setError:()=>{}});import{cn as Q3}from"@cleen/ui-core";import{useContext as J3,useState as j3}from"react";import{Fragment as ek,jsx as Ya,jsxs as v0}from"react/jsx-runtime";var qb={min:3,max:50},Xb=()=>{let{isSaveFiltersStep:e,saveStepValues:t,setSaveStepValues:n,setIsSaveFiltersStep:o,handleCloseSaveFilter:l,setError:a,onSave:c,classNames:i,styles:d,labels:s,withSavedFilters:p=!0,onCancel:g,onApply:m}=J3(lt),[y,v]=j3(!1),h=async()=>{try{if(t.filterName.length<qb.min){a?.("filterName",s?.saveStep?.validation?.tooShort);return}if(t.filterName.length>qb.max){a?.("filterName",s?.saveStep?.validation?.tooLong);return}v(!0),await c?.(t),o(!1)}catch(b){console.error("Error saving filters:",b)}finally{v(!1)}};return e?v0("div",{className:"cleen-flex cleen-flex-1 cleen-justify-end cleen-gap-3",children:[Ya(ee,{onClick:()=>o(!1),variant:"secondary",...i?.saveFilter?.backBtn,...d?.saveFilter?.backBtn,children:s?.saveStep?.back}),Ya(ee,{onClick:h,isLoading:y,loaderColor:"rgb(var(--cleen-white))",...i?.saveFilter?.saveBtn,...d?.saveFilter?.saveBtn,children:s?.saveStep?.save})]}):v0(ek,{children:[p&&Ya(ee,{onClick:()=>{n(Jc),o(!0)},variant:"borderless-blue",...i?.saveBtn,...d?.saveBtn,children:s?.save}),v0("div",{className:Q3("cleen-flex cleen-items-center cleen-gap-3",{"cleen-flex-1 cleen-justify-end":!p}),children:[Ya(ee,{onClick:()=>{g?.(),l()},variant:"secondary",...i?.cancelBtn,...d?.cancelBtn,children:s?.cancel}),Ya(ee,{onClick:()=>{m?.(),l()},...i?.applyBtn,...d?.applyBtn,children:s?.apply})]})]})};import{cn as jc}from"@cleen/ui-core";import{Link as tk}from"react-router-dom";import{Fragment as Yb,jsx as Zo,jsxs as b0}from"react/jsx-runtime";var Kb=({item:e,classNames:t,styles:n})=>({disabled:e?.disabled,className:jc("cleen-flex cleen-items-center cleen-gap-3 cleen-px-4 cleen-py-2 cleen-w-full cleen-text-foreground cleen-text-sm cleen-text-left cleen-transition-colors",e?.disabled?"cleen-opacity-50 cleen-select-none cleen-cursor-not-allowed cleen-pointer-events-none":"hover:cleen-bg-muted cleen-cursor-pointer",{"cleen-text-error hover:cleen-bg-error-bg":e?.danger},t?.container),style:n?.container,children:b0(Yb,{children:[e?.icon,Zo("span",{className:jc("cleen-flex-1",t?.label),style:n?.label,children:e?.label})]}),...e?.type==="button"?{type:"button"}:{to:e?.to}}),y0=({item:e,isLast:t,handleClick:n,onEnterSubmenu:o,classNames:l,styles:a})=>{switch(e?.type){case"group":return b0(Yb,{children:[e?.label&&Zo("p",{className:jc("cleen-px-4 cleen-py-2 cleen-font-bold cleen-text-muted-foreground cleen-text-xs",l?.groupLabel),style:a?.groupDivider,children:e?.label}),e?.items?.map((c,i,d)=>Zo(y0,{item:c,handleClick:n,onEnterSubmenu:o,isLast:i===d.length-1},c?.id||i)),!t&&Zo("hr",{className:jc("cleen-text-neutral-200",l?.groupDivider),style:a?.groupDivider})]});case"button":{let c=e?.submenu&&e?.submenu?.length>0;return b0("button",{type:"button",onClick:()=>{c?o?.(e.submenu,e?.label):n?.(e)},...Kb({item:e,classNames:l,styles:a}),children:[e?.icon,Zo("span",{className:"cleen-flex-1",children:e?.label}),c&&Zo(mt,{className:"cleen-size-4 cleen-text-neutral-400"})]})}case"link":return Zo(tk,{to:"",...Kb({item:e,classNames:l,styles:a})});default:return null}};import{cn as ok}from"@cleen/ui-core";import{useEffect as Zb,useState as Qb}from"react";import{Fragment as nk,jsx as Jb,jsxs as jb}from"react/jsx-runtime";var ey=({items:e,keepOpenOnClick:t,hideMenu:n,classNames:o,styles:l})=>{let[a,c]=Qb([]),[i,d]=Qb(e),s=(m,y)=>{c(v=>[...v,{items:i,title:y}]),d(m)},p=()=>{let m=a[a?.length-1];m&&(d(m?.items),c(y=>y?.slice(0,-1)))};Zb(()=>{d(e),c([])},[e]),Zb(()=>{let m=y=>{if(y.key==="Escape")if(a.length>0){let v=a?.[a?.length-1];d(v?.items),c(h=>h?.slice(0,-1))}else n()};return document.addEventListener("keydown",m),()=>{document.removeEventListener("keydown",m)}},[n,a]);let g=m=>{m?.onClick?.(),t||n()};return jb(nk,{children:[a?.length>0&&jb("button",{onClick:p,className:ok("cleen-flex cleen-items-center cleen-gap-3 cleen-px-4 cleen-py-2 cleen-w-full cleen-text-sm cleen-text-foreground hover:cleen-bg-neutral-50",o?.submenuButton),style:l?.submenuButton,children:[Jb(At,{className:"cleen-size-4 cleen-text-neutral-300"}),a?.[a?.length-1]?.title]}),i?.map((m,y,v)=>Jb(y0,{item:m,isLast:y===v?.length-1,handleClick:g,onEnterSubmenu:s,classNames:o?.item,styles:l?.item},m?.id||y))]})};import{CLEEN_IGNORE_OUTSIDE_CLICK as rk,cn as I0,useDisclosure as ak,useOutsideClick as lk,usePositionClose as ck,ZIndex as ik}from"@cleen/ui-core";import{forwardRef as sk,useRef as ty}from"react";import{createPortal as pk}from"react-dom";import{jsx as ei,jsxs as dk}from"react/jsx-runtime";var jn=sk(function({items:t=[],position:n="bottom-left",keepOpenOnClick:o=!0,triggerRef:l,menuRef:a,ignoreClickOutside:c=!1,zIndex:i=ik.MENU,children:d,className:s,classNames:p,style:g,styles:m,...y},v){let{isOpen:h,toggle:b,close:C}=ak(),x=ty(null),I=ty(null),P=l??x,B=a??I,{positionStyles:E,isMounted:T}=ck({triggerRef:P,targetRef:B,position:n,isOpen:h});lk({refs:[P,B],handler:C,enabled:h});let M=()=>{b()};return dk("div",{className:I0("cleen",s),style:g,ref:v,...y,children:[ei("div",{ref:P,onClick:M,className:I0("cleen-size-fit",p?.trigger,h&&p?.triggerOpen),style:{...m?.trigger,...h?m?.triggerOpen:{}},children:d}),h&&pk(ei("div",{className:"cleen",...c&&{[rk]:"true"},children:ei("div",{ref:B,className:I0("cleen-bg-background cleen-shadow-lg cleen-border cleen-border-border cleen-rounded-lg cleen-w-52","cleen-absolute",{"cleen-opacity-0":!T},p?.menu),style:{zIndex:i,top:`${E.top}px`,left:`${E.left}px`,...m?.menu},children:ei(ey,{items:t,keepOpenOnClick:o,hideMenu:C,classNames:p,styles:m})})}),document.body)]})});import{cn as ti,ColorHelpers as oi}from"@cleen/ui-core";import{useMemo as mk}from"react";var C0=["blue","lighter-blue","primary","indigo","green","red","purple","pink","orange","gray","yellow"],x0={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"},oy={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"},ny={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"},ry={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"},ay={full:"cleen-rounded-full",rounded:"cleen-rounded-2xl",semiRounded:"cleen-rounded-lg",sleek:"cleen-rounded"};var ly=(e,t)=>!e&&!t?"primary":t?C0[t%C0.length]:e;import{jsx as P0,jsxs as uk}from"react/jsx-runtime";var xe=({className:e,classNames:t,style:n,styles:o,label:l,color:a="primary",variant:c="rounded",showDot:i=!1,icon:d,removeable:s=!1,withBorder:p=!0,filled:g=!1,onRemoveClicked:m,onClick:y,colorByIndex:v,children:h,...b})=>{let{variantClass:C,dotVariantClass:x,dotVariantStyle:I,variantStyle:P}=mk(()=>{let B={};if(a in x0){let E=ly(a,v);B.variantClass=g?oy[E]:x0[E],B.dotVariantClass=g?ry[E]:ny[E]}else B.variantStyle={borderColor:g?a:oi.trasparentize(a,.8),backgroundColor:g?a:oi.trasparentize(a,.95),color:g?oi.adjustColorForContrast(a,.5):a},B.dotVariantStyle={backgroundColor:g?oi.adjustColorForContrast(a,.5):a};return B},[a,v,g]);return P0("div",{className:ti("cleen",e),style:n,children:uk("span",{className:ti("cleen-flex cleen-justify-center cleen-items-center cleen-gap-1 cleen-text-xs cleen-font-medium cleen-py-0.5 cleen-px-2 cleen-w-fit cleen-min-w-max cleen-transition-all cleen-duration-200",{"cleen-border":p},C,ay[c],{"hover:cleen-opacity-80 cleen-cursor-pointer":y||s},t?.container),style:{...P,...o?.container},onClick:y,...b,children:[i&&P0("span",{className:ti("cleen-size-2 cleen-rounded-[50%]",x,t?.dot),style:{...I,...o?.dot}}),d,l??h,s&&P0(Ve,{className:ti("cleen-size-3 cleen-cursor-pointer cleen-flex cleen-flex-col cleen-justify-center cleen-items-center cleen-transition-transform cleen-duration-200 hover:cleen-scale-125",t?.removable),style:o?.removable,onClick:m})]})})};import{cn as hk}from"@cleen/ui-core";import{useContext as gk,useState as cy}from"react";import{jsx as St,jsxs as vk}from"react/jsx-runtime";var iy=({filter:e,activeTabId:t})=>{let[n,o]=cy(!1),[l,a]=cy(!1),{labels:c,onFilterDelete:i,onFilterPin:d,onFilterSelect:s,onFilterUnpin:p,setIsFiltersDropdownOpen:g}=gk(lt),m=async()=>{try{if(!i)return;o(!0),await i(e.filterID)}catch(v){console.error("Error while deleting filter:",v)}finally{o(!1)}},y=async()=>{try{a(!0),e?.isPinned?await p?.(e.filterID):await d?.(e.filterID)}catch(v){console.error("Error while pinning/unpinnning filter:",v)}finally{a(!1)}};return St("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:vk("div",{className:"cleen-flex cleen-items-center cleen-gap-3 cleen-cursor-pointer",onClick:()=>{s?.(e),g(!1)},children:[St("span",{className:"cleen-flex-1 cleen-text-neutral-600 cleen-text-sm cleen-text-left cleen-truncate",children:e.title}),l?St(re,{classNames:{loader:"cleen-size-5"}}):St(xe,{color:"gray",onClick:v=>{v.stopPropagation(),y()},icon:St(ia,{name:"pin",className:hk("cleen-size-3.5 group-hover:cleen-text-neutral-700 cleen-transition-colors cleen-cursor-pointer",e?.isPinned?"cleen-text-neutral-600":"cleen-text-neutral-300")}),classNames:{container:"cleen-font-bold"},label:e?.isPinned?c?.savedFilters?.filter?.unpin:c?.savedFilters?.filter?.pin}),t==="mine"&&St(jn,{items:[{id:"duplicate",type:"button",label:c?.savedFilters?.filter?.cancelDelete,icon:St(Ve,{className:"cleen-size-5"}),onClick:()=>{}},{id:"archive",type:"button",label:c?.savedFilters?.filter?.delete,icon:St(rt,{}),danger:!0,onClick:()=>m()}],keepOpenOnClick:!1,ignoreClickOutside:!0,onClick:v=>v.stopPropagation(),className:"cleen-flex",children:n?St(re,{size:"sm",color:"rgb(var(--cleen-error))"}):St(rt,{className:"cleen-text-foreground hover:cleen-text-error cleen-transition-colors cleen-cursor-pointer",name:"delete"})})]})})};import{cn as yo}from"@cleen/ui-core";import{forwardRef as bk,Fragment as yk,useMemo as py,useState as dy}from"react";import{cn as S0}from"@cleen/ui-core";var Za={horizontal:{list:"cleen-flex cleen-flex-wrap cleen-mb-4"},vertical:{container:"cleen-flex cleen-gap-4",list:"cleen-flex cleen-flex-col",content:"cleen-flex-1"}},sy=e=>{let t=e==="vertical";return{underlined:{list:S0("cleen-gap-2 cleen-border-border",!t&&"cleen-border-b"),tab:S0("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:S0("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 Qa,jsxs as my}from"react/jsx-runtime";var ni=(e,t)=>e?.id??String(t),w0=bk(function({tabs:t,variant:n="underlined",direction:o="horizontal",currentTabIndex:l,onTabChange:a,multiple:c=!1,activeTabIds:i,defaultActiveTabIds:d,onChange:s,className:p,classNames:g,style:m,styles:y,...v},h){let[b,C]=dy(0),I=l!==void 0?l:b,[P,B]=dy(d??[]),E=i??P,T=py(()=>{if(!c){let S=t?.[I];return S?[S]:[]}return t?.filter((S,N)=>E.includes(ni(S,N)))??[]},[t,c,I,E]),M=(S,N)=>c?E.includes(ni(S,N)):I===N,L=(S,N)=>{if(c){let F=ni(N,S),R=E.includes(F),k=t?.map((z,D)=>ni(z,D)).filter(z=>z===F?!R:E.includes(z))??[];B(k),s?.(k)}else C(S);a?.(S,N)},w=py(()=>sy(o),[o]);return Qa("div",{className:yo("cleen",p),style:m,ref:h,...v,children:my("div",{className:yo(Za[o].container,g?.container),style:y?.container,children:[Qa("nav",{className:yo(w[n].list,Za[o].list,g?.list),"aria-label":"Tabs",style:y?.list,children:t?.map((S,N)=>{let F=M(S,N),R=S?.isDisabled;return my("span",{onClick:()=>!R&&L(N,S),className:yo("cleen-flex cleen-items-center cleen-gap-2 cleen-whitespace-nowrap",!R&&"cleen-cursor-pointer",w[n].tab,Za[o].tab,g?.tab,R?yo(w[n].tabDisabled,g?.tabDisabled):F?yo(w[n].tabActive,g?.tabActive):yo(w[n].tabInactive,g?.tabInactive)),style:{...y?.tab,...R?y?.tabDisabled:F?y?.tabActive:y?.tabInactive},"aria-current":F?"page":void 0,"aria-disabled":R,children:[S?.label,!!S?.badge?.label&&Qa(xe,{variant:"rounded",color:F?"blue":"gray",...g?.count,...y?.count,...S.badge})]},S?.id||N)})}),T.some(S=>!!S?.content)&&Qa("div",{className:yo("h-full",c&&"cleen-flex cleen-flex-col cleen-gap-4",Za[o].content,g?.content),style:y?.content,children:T.map((S,N)=>Qa(yk,{children:S?.content},S?.id||N))})]})})});import{useContext as Ik,useState as Ck}from"react";import{jsx as Qo,jsxs as Pk}from"react/jsx-runtime";var xk=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},uy=({selectedSavedFilter:e,filters:t,isFiltersFetching:n,onFilterCategoryChange:o})=>{let[l,a]=Ck("all"),{labels:c,classNames:i,styles:d,isFiltersDropdownOpen:s,setIsFiltersDropdownOpen:p}=Ik(lt);return Qo(Ga,{isOpen:s,onOpenChange:p,leftIcon:Qo(Xr,{className:"cleen-size-5"}),label:e?.title??c?.savedFilters?.label,fullWidthDropdown:!0,...i?.dropdown,...d?.dropdown,children:Pk("div",{className:"flex flex-col gap-2 p-2.5 w-full",children:[Qo(w0,{tabs:[{id:"all",label:c?.savedFilters?.tabs?.all},{id:"mine",label:c?.savedFilters?.tabs?.mine},{id:"shared",label:c?.savedFilters?.tabs?.shared},{id:"featured",label:c?.savedFilters?.tabs?.featured},{id:"pinned",label:c?.savedFilters?.tabs?.pinned}],variant:"padded",onTabChange:(g,m)=>{a(m?.id),o?.(xk(m?.id))},classNames:{list:"cleen-mb-2"}}),Qo("div",{className:"flex flex-col",children:n?Qo(re,{classNames:{loader:"cleen-size-6"}}):(t?.length||0)>0?t?.map(g=>Qo(iy,{filter:g,activeTabId:l},g.filterID)):Qo("p",{className:"cleen-font-normal cleen-text-neutral-600 cleen-text-base cleen-text-center",children:c?.savedFilters?.noFilters})})]})})};import{cn as Wt}from"@cleen/ui-core";import{forwardRef as Sk,useEffect as wk,useId as Mk,useState as kk}from"react";import{jsx as Jo,jsxs as M0}from"react/jsx-runtime";var k0=Sk(function({id:t,name:n,required:o,checked:l,defaultChecked:a=!1,onChange:c,title:i,label:d,labelTooltip:s,sublabel:p,disabled:g,classNames:m,className:y,style:v,styles:h,infoLabels:b,...C},x){let I=typeof l=="boolean",[P,B]=kk(a);wk(()=>{I||B(a)},[a,I]);let E=I?l:P,T=Mk(),M=i?`${T}-title`:void 0,L=d?`${T}-label`:void 0,w=[M,L].filter(Boolean).join(" ")||void 0,S=()=>{g||(I||B(!P),c?.(!E))};return Jo("div",{className:Wt("cleen",y),style:v,children:M0("div",{className:Wt("cleen-flex cleen-flex-col",m?.container),style:h?.container,children:[i&&Jo(ae,{id:M,htmlFor:t||n,required:o,tooltip:s,className:Wt("cleen-mb-1.5",m?.title?.className),classNames:m?.title?.classNames,...h?.title,children:i}),M0("div",{className:Wt("cleen-flex cleen-items-center cleen-gap-2 cleen-w-full",m?.switchContainer),style:h?.switchContainer,children:[Jo("button",{id:t||n,type:"button",role:"switch","aria-checked":E,"aria-labelledby":w,disabled:g,onClick:S,className:Wt("cleen-inline-flex cleen-relative cleen-flex-shrink-0 cleen-my-auto cleen-mb-auto cleen-border-2 cleen-border-transparent cleen-rounded-full cleen-w-11 cleen-h-6 cleen-transition-colors cleen-duration-200 cleen-ease-in-out cleen-cursor-pointer focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-offset-2 focus-visible:cleen-ring-primary",E?"cleen-bg-primary hover:cleen-bg-[color-mix(in_srgb,rgba(var(--cleen-primary)),black_12%)]":"cleen-bg-neutral-200 hover:cleen-bg-neutral-300",m?.switch),style:h?.switch,ref:x,...C,children:Jo("span",{"aria-hidden":"true",className:Wt("cleen-inline-block cleen-bg-primary-foreground cleen-shadow cleen-rounded-full cleen-ring-0 cleen-w-5 cleen-h-5 cleen-transition cleen-duration-200 cleen-ease-in-out cleen-pointer-events-none cleen-transform",E?"cleen-translate-x-5":"cleen-translate-x-0",m?.check),style:h?.check})}),(d||p)&&M0("div",{className:Wt("cleen-flex cleen-flex-col cleen-text-sm",m?.labelContainer),style:h?.labelContainer,children:[d&&Jo("span",{id:L,className:Wt("cleen-font-semibold cleen-text-foreground",m?.label),style:h?.label,children:d}),p&&Jo("span",{className:Wt("cleen-font-normal cleen-text-muted-foreground",m?.sublabel),style:h?.sublabel,children:p})]})]}),(b?.errorMessage||b?.infoMessage||b?.subtitle)&&Jo(ne,{...b})]})})});import{useContext as Bk}from"react";import{Fragment as Nk,jsx as fy,jsxs as Tk}from"react/jsx-runtime";var hy=()=>{let{classNames:e,styles:t,labels:n,saveStepValues:o,setSaveStepValues:l,errors:a,clearError:c}=Bk(lt);return Tk(Nk,{children:[fy(ge,{value:o.filterName,onChange:i=>{l(d=>({...d,filterName:i.target.value})),a?.filterName&&c?.("filterName")},label:n?.saveStep?.filterNameInput?.label,placeholder:n?.saveStep?.filterNameInput?.placeholder,infoLabels:{errorMessage:a?.filterName},...e?.saveFilter?.filterName,...t?.saveFilter?.filterName}),fy(k0,{checked:o.exposed,onChange:i=>l(d=>({...d,exposed:i})),title:n?.saveStep?.exposureSwitch?.title,label:n?.saveStep?.exposureSwitch?.label,sublabel:n?.saveStep?.exposureSwitch?.sublabel,...e?.saveFilter?.exposure,...t?.saveFilter?.exposure})]})};var gy={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 Rk}from"@cleen/ui-core";import{useState as B0}from"react";import{jsx as Lk}from"react/jsx-runtime";var vy=({children:e,value:t})=>{let[n,o]=B0(!1),[l,a]=B0(Jc),{errors:c,setError:i,clearError:d}=Rk({}),[s,p]=B0(!1),g=()=>{o(!1),t?.onClose?.()};return Lk(lt.Provider,{value:{isSaveFiltersStep:n,setIsSaveFiltersStep:o,saveStepValues:l,setSaveStepValues:a,handleCloseSaveFilter:g,isFiltersDropdownOpen:s,setIsFiltersDropdownOpen:p,errors:c,setError:i,clearError:d,...t},children:e})};import{applyDefaults as Ek,cn as by}from"@cleen/ui-core";import{forwardRef as yy,useContext as Dk}from"react";import{Fragment as Ok,jsx as Io,jsxs as _k}from"react/jsx-runtime";var Fk=yy(function({selectedSavedFilter:t,savedFilters:n,isFiltersFetching:o,children:l,classNames:a,styles:c,labels:i,withSavedFilters:d=!0,onClear:s,onSave:p,onCancel:g,onApply:m,onClose:y,filterDateFormatter:v,onFilterCategoryChange:h,onFilterDelete:b,onFilterPin:C,onFilterSelect:x,onFilterUnpin:I,...P},B){return Io(vy,{value:{selectedSavedFilter:t,savedFilters:n,isFiltersFetching:o,classNames:a,styles:c,labels:Ek(gy,i),withSavedFilters:d,onClear:s,onSave:p,onCancel:g,onApply:m,onClose:y,filterDateFormatter:v,onFilterCategoryChange:h,onFilterDelete:b,onFilterPin:C,onFilterSelect:x,onFilterUnpin:I},children:Io(Ak,{...P,ref:B,children:l})})}),Ak=yy(function({children:t,...n},o){let{handleCloseSaveFilter:l,isSaveFiltersStep:a,selectedSavedFilter:c,savedFilters:i,isFiltersFetching:d,classNames:s,styles:p,labels:g,withSavedFilters:m=!0,onClear:y,onFilterCategoryChange:v,onFilterSelect:h}=Dk(lt);return Io(n0,{footer:Io(Xb,{}),headerCloseBtn:Io(ee,{onClick:()=>{y?.(),h?.(void 0)},leftIcon:Io(rt,{}),variant:"secondary",...s?.clearBtn,...p?.clearBtn,children:g?.clear}),classNames:{...s,content:by("cleen-space-y-4",s?.content),footer:by("cleen-justify-between",s?.footer)},onClose:l,ref:o,...n,title:a?g?.saveStep?.title:n.title,subtitle:a?g?.saveStep?.subtitle:n.subtitle,children:a?Io(hy,{}):_k(Ok,{children:[m&&Io(uy,{filters:i,selectedSavedFilter:c,onFilterCategoryChange:v,isFiltersFetching:d}),t]})})});import{cn as er}from"@cleen/ui-core";import{forwardRef as zk}from"react";import{jsx as ri,jsxs as Iy}from"react/jsx-runtime";var Cy=zk(({title:e,titleTooltip:t,subtitle:n,required:o,labelProps:l,children:a,className:c,classNames:i,style:d,styles:s,...p},g)=>ri("div",{ref:g,className:er("cleen",c),style:{...d,width:"100%"},...p,children:Iy("div",{className:er("cleen-flex cleen-w-full cleen-items-start cleen-justify-start cleen-gap-8",i?.container),style:s?.container,children:[Iy("div",{className:er("cleen-flex cleen-flex-col cleen-w-1/3",i?.titleColumn),style:s?.titleColumn,children:[ri(ae,{...l,required:o,tooltip:t,className:i?.title?.className,classNames:{...i?.title?.classNames,label:er("cleen-truncate",i?.title?.classNames?.label)},...s?.title,children:e}),n&&ri("div",{className:er("cleen-overflow-hidden cleen-whitespace-nowrap cleen-text-ellipsis cleen-w-full cleen-font-normal cleen-text-neutral-600 cleen-text-sm",i?.subtitle),style:s?.subtitle,children:n})]}),ri("div",{className:er("cleen-form-group--controls-row cleen-flex cleen-flex-1 cleen-flex-wrap cleen-gap-8",i?.controlsRow),style:s?.controlsRow,children:a})]})}));Cy.displayName="FormGroup";import{cn as ke,useDebounce as Vk,useOutsideClick as Hk,usePositionClose as Uk,ZIndex as Gk}from"@cleen/ui-core";import{useEffect as ai,useMemo as N0,useRef as T0,useState as bt}from"react";import{createPortal as $k}from"react-dom";import{Fragment as Xk,jsx as Y,jsxs as Xe}from"react/jsx-runtime";function Wk(e){return e!==null&&typeof e=="object"}function Oe(e,t){if(Wk(e)&&t in e)return e[t]}function xy(e,t){let n=Oe(e,t);return Array.isArray(n)?n:[]}function Py(e,t){let n=e?.[t];if(typeof n=="string"||typeof n=="number")return n;let o=e?.data?.[t];return typeof o=="string"||typeof o=="number"?o:null}var qk=({position:e="bottom-right",labels:t,groups:n=[],selectedItemID:o=null,groupThreeDotMenuOptions:l=[],itemThreeDotMenuOptions:a=[],refetchData:c,onGroupSave:i,onItemSave:d,onGroupThreeDotMenuClick:s,onItemThreeDotMenuClick:p,onSearchChange:g,onItemSelect:m,groupIDKey:y,groupTitleKey:v,itemsKey:h,itemIDKey:b,itemGroupIDKey:C,itemTitleKey:x,itemSubtitleKey:I,newValueMinLength:P=2,isLoading:B=!1,isGroupSaving:E=!1,isItemSaving:T=!1,selectedColor:M="rgb(var(--cleen-primary-100))",hasFiltering:L=!0,zIndex:w=Gk.POPOVER,className:S,classNames:N,style:F,styles:R})=>{let[k,z]=bt(!1),[D,A]=bt(!1),[O,V]=bt(!1),[U,W]=bt(!1),[q,H]=bt(null),[$,Q]=bt(null),[_,Z]=bt(""),[pe,he]=bt(""),[be,Ne]=bt(null),_e=T0(void 0),[j,ie]=bt(""),[Ge]=Vk(j,500),[ze,Te]=bt(""),dt=T0(null),Qe=T0(null),{positionStyles:K,isMounted:Se}=Uk({triggerRef:dt,targetRef:Qe,position:e,isOpen:k,offset:10});Hk({refs:[Qe],handler:()=>z(!1),enabled:k});let Re=N0(()=>n??[],[n]),we=N0(()=>{let G=new Map;for(let J of Re){let ce=Oe(J,y);ce!=null&&G.set(ce,xy(J,h))}return G},[Re,y,h]),$e=N0(()=>{let G=[];return q==null?G=Array.from(we?.values()).flat():G=we?.get(q)??[],L&&ze.trim()!==""&&(G=G.filter(J=>{let ce=String(Oe(J,x)??""),Le=I?String(Oe(J,I)??""):"";return ce.toLowerCase().includes(ze?.toLowerCase()??"")||Le.toLowerCase().includes(ze?.toLowerCase()??"")})),G},[q,we,ze,x,I,L]);ai(()=>{let G=_e.current!==o;if(_e.current=o,o==null){G&&(Q(null),H(null));return}let ce=Array.from(we?.values())?.flat()?.find(Le=>Oe(Le,b)===o);if(ce){let Le=Oe(ce,C)??null;Q(ce),H(Le)}else G&&Q(null)},[o,we,b,C]),ai(()=>{if(be==null)return;let J=Array.from(we?.values())?.flat()?.find(Le=>Oe(Le,b)===be);if(!J)return;let ce=Oe(J,C);H(typeof ce=="string"||typeof ce=="number"?ce:null),Q(J),Ne(null),m?.(J)},[be,we,b,C,m]),ai(()=>{g&&g(Ge??"")},[Ge,g]),ai(()=>{k||(A(!1),V(!1),Z(""),he(""))},[k]);let et=G=>{G===q?(H(null),Q(null),m?.(null)):(Q(null),H(G),m?.(null))},Cr=G=>{let J=Oe(G,C);H(typeof J=="string"||typeof J=="number"?J:null),Q(G),m?.(G),z(!1)};async function yn(){if(!i)return;let G={[v]:_};try{let J=await i(G);if(J?.success){A(!1),Z(""),c&&await c();let ce=Py(J,y);ce!=null&&(H(ce),Q(null),m?.(null))}}catch{}}async function oe(){if(!d)return;let G={[x]:pe,...q!=null?{[C]:q}:{}};try{let J=await d(G);J?.success&&(V(!1),he(""),Ne(Py(J,b)),c&&await c())}catch{}}return Y("div",{className:ke("cleen",S),style:F,children:Xe("div",{ref:dt,className:ke("cleen-relative cleen-w-full cleen-cursor-pointer",N?.container),style:R?.container,onClick:G=>{G.stopPropagation(),z(!0)},children:[Y(ge,{placeholder:t?.inputPlaceholder,rightIcon:Y(Ot,{className:ke("cleen-w-5 cleen-h-5 cleen-text-neutral-300 cleen-transition-transform",{"cleen-rotate-180":!k})}),value:j,onChange:G=>{H(null),Q(null),ie(G.target.value)},classNames:{input:k?"":"cleen-cursor-pointer"},className:N?.input,style:R?.input}),k&&$k(Y("div",{className:"cleen",children:Xe("div",{ref:Qe,className:ke("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":!Se},N?.columnsContainer),style:{zIndex:w,top:`${K.top}px`,left:`${K.left}px`,...R?.columnsContainer},children:[Xe("div",{className:"cleen-w-1/2 cleen-h-full",children:[Y("div",{className:ke("cleen-overflow-scroll cleen-no-scrollbar cleen-flex cleen-flex-col cleen-items-start cleen-justify-start cleen-w-full cleen-h-[300px]",N?.leftColumn),style:R?.leftColumn,children:B?Y("div",{className:"cleen-flex cleen-items-center cleen-justify-center cleen-w-full cleen-h-full",children:Y(re,{size:"sm"})}):n?.map((G,J)=>{let ce=Oe(G,y),Le=ce===q,se=String(Oe(G,v)??""),In=xy(G,h)?.length??0;return Xe("div",{className:ke("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",N?.groupItem),style:{...R?.groupItem||{},...Le?{backgroundColor:M}:{}},onClick:ue=>{ue.stopPropagation(),ue.preventDefault(),et(ce??null)},children:[Xe("div",{className:ke("cleen-flex cleen-items-center cleen-justify-start cleen-gap-2",l?.length>0?"cleen-w-[calc(100%-30px)]":"cleen-w-full"),children:[Y("span",{className:ke("cleen-truncate cleen-font-semibold cleen-text-[14px] cleen-text-foreground",N?.groupItemTitle),style:R?.groupItemTitle,children:se}),Y(xe,{color:"lighter-blue",label:In})]}),l?.length>0&&Y("div",{className:"cleen-opacity-0 group-hover:cleen-opacity-100",onClick:ue=>{ue.stopPropagation(),s?.(G)},children:Y(jn,{position:"bottom-right",keepOpenOnClick:!1,ignoreClickOutside:!0,items:l?.map(ue=>{let xr=ue?.disabledOptionCallback?.(G);return{...ue,type:"button",label:Y("span",{className:"cleen-font-semibold cleen-text-[14px] cleen-text-neutral-700",children:ue?.label}),onClick:()=>{xr||ue?.onClick(G)},disabled:xr}}),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:Y(Bn,{className:"cleen-w-4 cleen-h-4 cleen-text-neutral-700 cleen-cursor-pointer hover:cleen-text-primary"})})})]},`group-${J}-${String(ce??J)}`)})}),Y(gt,{isHorizontal:!0}),D?Xe("div",{className:"cleen-flex cleen-items-center cleen-justify-between cleen-w-full cleen-h-10",children:[Y(ge,{leftIcon:Y(so,{className:"cleen-w-4 cleen-h-4 cleen-text-neutral-300"}),placeholder:t?.newGroupPlaceholder,value:_,onChange:G=>Z(G.target.value),classNames:{inputContainer:"cleen-border-none focus-within:cleen-ring-0",input:"cleen-w-full"},className:"cleen-w-[170px]",autoFocus:!0}),Y("div",{className:"cleen-flex cleen-items-center cleen-justify-center cleen-w-[80px] cleen-h-full",children:i?E?Y(re,{}):_?.length>P?Y(ee,{variant:"primary",label:t?.saveButtonLabel,onClick:()=>{yn()},classNames:{container:"cleen-w-max cleen-h-7"}}):Y("div",{}):Y("div",{})})]}):Xe("div",{className:ke("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",N?.newGroupButton),style:R?.newGroupButton,onClick:()=>A(!0),children:[Y(so,{className:"cleen-w-4 cleen-h-4 cleen-text-neutral-300"}),Y("span",{className:"cleen-text-normal cleen-text-[14px] cleen-text-muted-foreground",children:t?.newGroupPlaceholder})]})]}),Y(gt,{className:"cleen-absolute cleen-top-0 cleen-left-1/2 cleen-min-w-[1px] cleen-h-full cleen-bg-border cleen-z-[1]"}),Xe("div",{className:"cleen-w-1/2 cleen-h-full",children:[Xe("div",{className:ke("cleen-overflow-scroll cleen-no-scrollbar cleen-flex cleen-flex-col cleen-items-start cleen-justify-start cleen-w-full cleen-h-[300px]",N?.rightColumn),style:R?.rightColumn,children:[L&&Xe(Xk,{children:[Y(ge,{leftIcon:Y(Vt,{className:"cleen-size-5"}),className:ke("cleen-w-full cleen-transition-transform",{"-cleen-translate-y-11":!U}),classNames:{inputContainer:"cleen-border-0 cleen-shadow-none"},onChange:G=>Te(G.target.value),placeholder:t?.filterPlaceholder}),Y("button",{type:"button",className:ke("cleen-w-full cleen-py-0.5 cleen-transition-all cleen-bg-neutral-50 hover:cleen-bg-muted cleen-border-t cleen-border-border",{"-cleen-mt-10 cleen-border-transparent":!U}),onClick:()=>W(G=>!G),children:Y(Dr,{className:ke("cleen-mx-auto cleen-size-4 cleen-text-muted-foreground cleen-transition-transform",U?"-cleen-rotate-90":"cleen-rotate-90")})})]}),B?Y("div",{className:"cleen-flex cleen-items-center cleen-justify-center cleen-w-full cleen-h-full",children:Y(re,{size:"sm"})}):$e?.map((G,J)=>{let ce=Oe(G,b),Le=$&&Oe($,b)===ce,se=String(Oe(G,x)??""),In=I?String(Oe(G,I)??""):"";return Xe("div",{className:ke("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",N?.item),style:{...R?.item||{},...Le?{backgroundColor:M}:{}},onClick:ue=>{ue.stopPropagation(),ue.preventDefault(),Cr(G)},children:[Xe("div",{className:ke("cleen-flex cleen-flex-col cleen-items-start cleen-justify-center",a?.length>0?"cleen-w-[calc(100%-30px)]":"cleen-w-full"),children:[Y("span",{className:ke("cleen-truncate cleen-w-full cleen-font-semibold cleen-text-[14px] cleen-text-foreground",N?.itemTitle),style:R?.itemTitle,children:se}),Y("span",{className:ke("cleen-truncate cleen-w-full cleen-font-semibold cleen-text-[12px] cleen-text-neutral-600",N?.itemSubtitle),style:R?.itemSubtitle,children:In})]}),a?.length>0&&Y("div",{className:"cleen-opacity-0 group-hover:cleen-opacity-100",onClick:ue=>{ue.stopPropagation(),p?.(G)},children:Y(jn,{position:"bottom-right",keepOpenOnClick:!1,ignoreClickOutside:!0,items:a?.map(ue=>{let xr=ue?.disabledOptionCallback?.(G);return{...ue,type:"button",label:Y("span",{className:"cleen-font-semibold cleen-text-[14px] cleen-text-neutral-700",children:ue?.label}),onClick:()=>{xr||ue?.onClick(G)},disabled:xr}}),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:Y(Bn,{className:"cleen-w-4 cleen-h-4 cleen-text-neutral-700 cleen-cursor-pointer hover:cleen-text-primary"})})})]},`item-${J}-${String(ce??J)}`)})]}),Y(gt,{isHorizontal:!0}),O?Xe("div",{className:"cleen-flex cleen-items-center cleen-justify-between cleen-w-full cleen-h-10",children:[Y(ge,{leftIcon:Y(so,{className:"cleen-w-4 cleen-h-4 cleen-text-neutral-300"}),placeholder:t?.newItemPlaceholder,value:pe,onChange:G=>he(G.target.value),classNames:{inputContainer:"cleen-border-none focus-within:cleen-ring-0",input:"cleen-w-full"},className:"cleen-w-[170px]",autoFocus:!0}),Y("div",{className:"cleen-flex cleen-items-center cleen-justify-center cleen-w-[80px] cleen-h-full",children:d?T?Y(re,{}):pe?.length>P?Y(ee,{variant:"primary",label:t?.saveButtonLabel,onClick:()=>{oe()},classNames:{container:"cleen-w-max cleen-h-7"}}):Y("div",{}):Y("div",{})})]}):Xe("div",{className:ke("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",N?.newItemButton),style:R?.newItemButton,onClick:()=>V(!0),children:[Y(so,{className:"cleen-w-4 cleen-h-4 cleen-text-neutral-300"}),Y("span",{className:"cleen-text-normal cleen-text-[14px] cleen-text-muted-foreground",children:t?.newItemPlaceholder})]})]})]})}),document.body),!k&&$&&Y("div",{className:"cleen-absolute cleen-top-1.5 cleen-left-1 cleen-flex cleen-items-center cleen-justify-start cleen-pl-2.5 cleen-w-[calc(100%-40px)] cleen-h-8 cleen-bg-surface",onClick:()=>z(!0),children:Y("span",{className:"cleen-truncate cleen-font-semibold cleen-text-sm cleen-text-foreground",children:String(Oe($,x)??"")})})]})})};import{cn as Fe,useDebounce as Kk,useOutsideClick as Yk,usePositionClose as Zk,ZIndex as Qk}from"@cleen/ui-core";import{forwardRef as Jk,useEffect as My,useId as jk,useMemo as ky,useRef as li,useState as ci}from"react";import{createPortal as eB}from"react-dom";import{cn as jo}from"@cleen/ui-core";import{jsx as Co,jsxs as Sy}from"react/jsx-runtime";var wy=({options:e,selection:t,classNames:n,styles:o,onChoose:l,displaySubtextInline:a=!0,activeIndex:c=-1,getOptionId:i,onActiveIndexChange:d,...s})=>Co("div",{...s,children:Co("div",{className:jo("cleen-flex cleen-flex-col cleen-pt-1 cleen-pb-1.5 cleen-max-h-64 cleen-overflow-y-auto",n?.container),style:o?.container,children:e?.map((p,g)=>{let m=t?.some(v=>v?.value===p?.value),y=g===c;return Sy("li",{id:i?.(g),role:"option","aria-selected":m,className:jo("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":y},n?.item),style:o?.item,onMouseEnter:()=>d?.(g),onClick:()=>l?.(p,m),children:[Sy("div",{className:jo("cleen-flex cleen-justify-start cleen-items-center cleen-gap-2",n?.labels,!a&&"cleen-truncate cleen-flex-col cleen-items-start cleen-gap-0"),style:o?.labels,children:[p?.leadingBadgeValue&&Co(xe,{color:"gray",label:p?.leadingBadgeValue}),p?.icon,p?.label&&Co("span",{className:jo("cleen-font-medium cleen-text-foreground cleen-text-base",!a&&"cleen-w-full cleen-truncate"),children:p?.label}),p?.preSublabel&&Co("span",{className:jo("cleen-font-medium cleen-text-neutral-400 cleen-text-xs",!a&&"cleen-w-full cleen-truncate"),children:p?.preSublabel}),p?.sublabel&&Co("span",{className:jo("cleen-font-medium cleen-text-neutral-600 cleen-text-sm",!a&&"cleen-w-full cleen-truncate"),children:p?.sublabel})]}),m&&Co("div",{className:n?.checkContainer,style:o?.checkContainer,children:Co(Ft,{className:jo("cleen-text-primary",n?.check),style:o?.check})})]},p.value)})})});import{Fragment as oB,jsx as Me,jsxs as ii}from"react/jsx-runtime";var tB=Jk(function({id:t,name:n,label:o,labelTooltip:l,labels:a,options:c,value:i,displaySelected:d="under",isLoading:s=!1,required:p,internalFiltering:g=!1,closeOnReachingLimit:m=!0,limit:y,getCustomBadgeLabel:v,displaySubtextInline:h=!0,selectedBadgeColor:b="blue",debounceDelay:C=0,characterThreshold:x=2,disabled:I=!1,isNoDataVisibleOnCreateNew:P=!0,zIndex:B=Qk.DROPDOWN,className:E,classNames:T,style:M,styles:L,infoLabels:w,menuDetachedFromPortal:S,onInputChange:N,onChange:F,onCreateNewOption:R,createNewOptionLabelString:k,onLookupBlur:z,triggerBlurOnlyWhenOpen:D=!0,menuRef:A,...O},V){let[U,W]=ci(!1),q=li(null),H=li(null),$=A??q,{positionStyles:Q,isMounted:_}=Zk({triggerRef:H,targetRef:$,position:"bottom-left",isOpen:U,offset:4});Yk({refs:[$,H],handler:()=>{W(!1),z?.()},enabled:D?U:!0});let[Z,pe]=ci(""),he=Kk(Z,C),be=C?he:Z,Ne=li(be),_e=li(!1),j=()=>{_e.current=!1,pe("")},ie=Array.isArray(i),[Ge,ze]=ci([]),Te=ie?i:Ge,dt=["inside","inside-badge"].includes(d),Qe=(oe,G=!1)=>{if(G){let ce=Te.filter(Le=>Le.value!==oe.value);ie||ze(ce),F?.(ce);return}let J;if(y===1)J=[oe];else{if(y&&Te.length>=y)return;J=[...Te,oe]}ie||ze(J),F?.(J),m&&y&&J.length>=y&&(j(),W(!1))},K=ky(()=>g?c?.filter(oe=>oe?.label?.match(new RegExp(be,"i"))):c,[c,be,g]),Se=ky(()=>k&&R&&!s&&Z?.length>0&&!K?.some(oe=>oe?.label===Z)?typeof k=="function"?k(Z):k:null,[k,R,s,Z,K]);My(()=>{if(Ne.current!==be)if(Ne.current=be,be.length<x)W(!1);else{N?.(be);let oe=!!H.current?.contains(document.activeElement);_e.current&&oe&&W(!0)}},[be,N,x]);let Re=jk(),we=oe=>`${Re}-option-${oe}`,[$e,et]=ci(-1);My(()=>{et(-1)},[be,U]);let Cr=oe=>{let G=K?.length??0;switch(oe.key){case"ArrowDown":if(!G)return;if(oe.preventDefault(),!U){W(!0),et(0);return}et(J=>(J+1)%G);break;case"ArrowUp":if(!G)return;if(oe.preventDefault(),!U){W(!0),et(G-1);return}et(J=>(J-1+G)%G);break;case"Home":if(!U||!G)return;oe.preventDefault(),et(0);break;case"End":if(!U||!G)return;oe.preventDefault(),et(G-1);break;case"Enter":{if(!U||$e<0)return;let J=K?.[$e];if(!J)return;oe.preventDefault();let ce=Te?.some(Le=>Le.value===J.value);Qe(J,ce);break}case"Escape":U&&(oe.preventDefault(),W(!1));break;default:break}},yn=ii("ul",{id:Re,role:"listbox",className:Fe("cleen-flex cleen-flex-col cleen-gap-0.5 cleen-bg-background cleen-shadow-[0px_12px_16px_-4px_rgba(var(--cleen-neutral-100))] cleen-px-1.5 cleen-pt-1 cleen-pb-0.5 cleen-border cleen-border-border cleen-rounded-lg",T?.menu?.container),style:L?.menu?.container,children:[s?Me(re,{className:Fe("cleen-py-3",T?.menu?.loader),style:L?.menu?.loader}):!K||K?.length===0?!!a?.noDataFound&&(P||!Se)&&Me("div",{className:Fe("cleen-flex cleen-justify-center cleen-items-center cleen-px-2 cleen-py-2.5 cleen-rounded-md cleen-font-normal cleen-text-neutral-600 cleen-text-sm cleen-text-center cleen-pointer-events-none cleen-select-none",T?.menu?.noDataFound),style:L?.menu?.noDataFound,children:a?.noDataFound}):Me(wy,{options:K,selection:Te,onChoose:Qe,displaySubtextInline:h,activeIndex:$e,getOptionId:we,onActiveIndexChange:et,...T?.menu?.list,...L?.menu?.list}),Se&&ii("div",{className:Fe("cleen-flex cleen-flex-col cleen-justify-center cleen-items-center",T?.createNewOption?.container),style:L?.createNewOption?.container,children:[Me(gt,{...T?.createNewOption?.divider,...L?.createNewOption?.divider}),Me("span",{className:Fe("cleen-py-3 cleen-font-semibold cleen-text-primary/70 cleen-text-sm cleen-cursor-pointer",T?.createNewOption?.value),style:L?.createNewOption?.value,onClick:()=>{let oe=R?.(Z);typeof oe=="boolean"&&!oe||(j(),W(!1))},children:Se})]})]});return Me("div",{className:Fe("cleen",E),style:M,children:ii("div",{className:Fe("cleen-flex cleen-flex-col cleen-w-full",T?.container),style:L?.container,children:[o&&Me(ae,{htmlFor:t||n,required:p,tooltip:l,className:Fe("cleen-mb-1.5",T?.label?.className),classNames:T?.label?.classNames,...L?.label,children:o}),Me("div",{ref:H,className:Fe("cleen-relative cleen-flex cleen-items-center",T?.input?.container),style:L?.input?.container,children:Me(ge,{id:t||n,type:"search",autoFocus:!1,autoComplete:"off",className:Fe("cleen-w-full",T?.input?.component?.className),classNames:{...T?.input?.component?.classNames,inputContainer:Fe({"cleen-flex-wrap":dt},T?.input?.component?.classNames?.inputContainer),input:Fe({"cleen-pl-2":dt},T?.input?.component?.classNames?.input),leftIconContainer:Fe({"cleen-pr-0":dt},T?.input?.component?.classNames?.leftIconContainer)},...L?.input?.component,leftIcon:ii(oB,{children:[Me(Vt,{}),dt&&(Te||[])?.length>0&&Me("div",{className:Fe("cleen-flex cleen-gap-1 cleen-overflow-hidden cleen-text-ellipsis cleen-whitespace-nowrap"),onClick:()=>{W(!U)},children:d==="inside-badge"?Te?.map(oe=>Me(xe,{label:oe?.label,color:"blue",variant:"semiRounded"},oe.value)):Me("span",{className:Fe("cleen-font-medium cleen-text-foreground cleen-text-sm"),children:Te?.map(oe=>oe?.label).join(", ")})})," "]}),onFocus:()=>{be.length>=x&&Z.length>=x&&W(!0)},value:Z,onChange:oe=>{_e.current=!0,pe(oe.target.value)},role:"combobox","aria-autocomplete":"list","aria-expanded":U,"aria-controls":U?Re:void 0,"aria-activedescendant":U&&$e>=0?we($e):void 0,onKeyDown:Cr,ref:V,required:p,disabled:I,...O})}),U&&(S?Me("div",{ref:$,children:yn}):eB(Me("div",{className:"cleen",children:Me("div",{ref:$,className:Fe("cleen-absolute",{"cleen-opacity-0":!_}),style:{zIndex:B,top:`${Q.top}px`,left:`${Q.left}px`,minWidth:H.current?.offsetWidth?`${H.current.offsetWidth}px`:void 0},children:yn})}),document.body)),d==="under"&&Te?.length>0&&Me("span",{className:Fe("cleen-flex cleen-flex-wrap cleen-gap-1.5 cleen-mt-1.5",T?.pillbadge?.container),style:L?.pillbadge?.container,children:Te?.map(oe=>Me(xe,{label:v?v(oe):oe?.label,color:b,removeable:!I,onRemoveClicked:()=>{if(I)return;let G=Te?.filter(J=>J?.value!==oe?.value);ie||ze(G),F?.(G)},...T?.pillbadge?.component,...L?.pillbadge?.component},oe.value))}),(w?.errorMessage||w?.infoMessage||w?.subtitle)&&Me(ne,{...w})]})})});import{cn as me}from"@cleen/ui-core";import{forwardRef as nB}from"react";import rB from"react-markdown";import aB from"remark-gfm";import{jsx as de}from"react/jsx-runtime";var lB=nB(function({components:t,children:n,className:o,classNames:l,style:a,styles:c,...i},d){let s={h1:({children:p})=>de("h1",{className:me("cleen-text-3xl cleen-font-semibold cleen-text-foreground-emphasis cleen-mb-4 cleen-mt-6"),children:p}),h2:({children:p})=>de("h2",{className:me("cleen-text-2xl cleen-font-semibold cleen-text-foreground-emphasis cleen-mb-3 cleen-mt-5"),children:p}),h3:({children:p})=>de("h3",{className:me("cleen-text-xl cleen-font-semibold cleen-text-foreground-emphasis cleen-mb-2 cleen-mt-4"),children:p}),h4:({children:p})=>de("h4",{className:me("cleen-text-lg cleen-font-semibold cleen-text-foreground-emphasis cleen-mb-2 cleen-mt-3"),children:p}),h5:({children:p})=>de("h5",{className:me("cleen-text-base cleen-font-semibold cleen-text-foreground cleen-mb-1 cleen-mt-2"),children:p}),h6:({children:p})=>de("h6",{className:me("cleen-text-sm cleen-font-semibold cleen-text-foreground cleen-mb-1 cleen-mt-2"),children:p}),p:({children:p})=>de("p",{className:me("cleen-text-base cleen-text-foreground cleen-mb-4 cleen-leading-relaxed"),children:p}),a:({href:p,children:g})=>de("a",{href:p,className:me("cleen-text-primary cleen-underline"),target:"_blank",rel:"noopener noreferrer",children:g}),ul:({children:p})=>de("ul",{className:me("cleen-list-disc cleen-pl-6 cleen-mb-4 cleen-text-foreground"),children:p}),ol:({children:p})=>de("ol",{className:me("cleen-list-decimal cleen-pl-6 cleen-mb-4 cleen-text-foreground"),children:p}),li:({children:p})=>de("li",{className:me("cleen-mb-1"),children:p}),blockquote:({children:p})=>de("blockquote",{className:me("cleen-border-l-4 cleen-border-primary/30 cleen-pl-4 cleen-italic cleen-text-neutral-700 cleen-mb-4"),children:p}),code:({className:p,children:g,...m})=>p?de("code",{className:me("cleen-font-mono cleen-text-sm"),...m,children:g}):de("code",{className:me("cleen-font-mono cleen-bg-muted cleen-rounded cleen-px-1 cleen-text-sm"),...m,children:g}),pre:({children:p})=>de("pre",{className:me("cleen-bg-muted dark:cleen-bg-neutral-200 cleen-rounded cleen-p-4 cleen-overflow-x-auto cleen-mb-4 cleen-text-sm"),children:p}),hr:()=>de("hr",{className:me("cleen-border-t cleen-border-border cleen-my-4")}),img:({src:p,alt:g})=>de("img",{src:p,alt:g,className:me("cleen-max-w-full cleen-rounded")}),strong:({children:p})=>de("strong",{className:me("cleen-font-semibold"),children:p}),em:({children:p})=>de("em",{className:me("cleen-italic"),children:p}),table:({children:p})=>de("div",{className:me("cleen-overflow-x-auto cleen-mb-4"),children:de("table",{className:me("cleen-w-full cleen-border-collapse cleen-text-sm cleen-text-900"),children:p})}),thead:({children:p})=>de("thead",{className:me("cleen-border-b cleen-border-border"),children:p}),th:({children:p})=>de("th",{className:me("cleen-text-left cleen-font-semibold cleen-p-2 cleen-border-b cleen-border-border"),children:p}),td:({children:p})=>de("td",{className:me("cleen-p-2 cleen-border-b cleen-border-border"),children:p}),input:({type:p,checked:g,disabled:m})=>p==="checkbox"?de("input",{type:"checkbox",checked:g,disabled:m,readOnly:!0,className:me("cleen-mr-2 cleen-align-middle")}):de("input",{type:p})};return de("div",{ref:d,className:me("cleen",o,l?.container),style:{...a,...c?.container},...i,children:de(rB,{...i,remarkPlugins:[aB],components:{...s,...t},children:n})})});import{cn as en,useBodyScrollLock as cB,useCleenOverlays as By,ZIndex as iB}from"@cleen/ui-core";import{forwardRef as sB,useCallback as pB,useEffect as R0,useId as dB,useRef as mB,useState as Ny}from"react";import{createPortal as uB}from"react-dom";import{jsx as Ja,jsxs as Ry}from"react/jsx-runtime";var fB={xs:320,sm:384,md:448,lg:512,xl:576,"2xl":728,"3xl":896,"4xl":1152},Ty=300,hB=sB(function({isOpen:t=!1,onClose:n,closeOnOverlayClick:o=!0,closeButtonIcon:l=Ja(Ve,{className:"cleen-size-5"}),header:a,footer:c,zIndex:i=iB.MODAL,size:d="md",color:s,p,gap:g,radius:m=16,className:y,classNames:v,style:h,styles:b,children:C,...x},I){let[P,B]=Ny(t),[E,T]=Ny(t),M=mB(null),L=dB(),{addOverlay:w,removeOverlay:S}=By(),N=pB(()=>{B(!1),setTimeout(()=>n?.(),Ty)},[n]);return R0(()=>{if(t){T(!0);let F=setTimeout(()=>B(!0),1);return()=>clearTimeout(F)}else{B(!1);let F=setTimeout(()=>T(!1),Ty);return()=>clearTimeout(F)}},[t]),R0(()=>{if(t)return w(L),()=>S(L)},[w,S,t,L]),R0(()=>{let F=R=>{let{overlays:k}=By.getState();R.key==="Escape"&&k[k.length-1]===L&&N()};return document.addEventListener("keydown",F),()=>document.removeEventListener("keydown",F)},[N,L]),cB(E),E?uB(Ry("div",{className:en("cleen",y),style:h,ref:I,...x,children:[Ja("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",P?"cleen-opacity-100":"cleen-opacity-0",v?.overlay),style:{zIndex:i,...b?.overlay},onClick:()=>{o&&N()},"aria-hidden":"true"}),Ja("div",{className:en("cleen-fixed cleen-inset-0 cleen-flex cleen-justify-center cleen-items-center cleen-p-4 cleen-overflow-auto","cleen-transition-all cleen-duration-300 cleen-ease-in-out","cleen-pointer-events-none",P?"cleen-opacity-100 cleen-scale-100":"cleen-opacity-0 cleen-scale-95",v?.container),style:{zIndex:i,...b?.container},"aria-modal":"true",role:"dialog",children:Ry(fe,{header:a,footer:c,color:s,p,gap:g,radius:m,className:en("cleen-relative cleen-shadow-xl cleen-w-full cleen-max-w-lg cleen-rounded-lg cleen-pointer-events-auto",v?.modal?.className),style:{maxWidth:typeof d=="number"?d:fB[d],...b?.modal?.style},classNames:{...v?.modal?.classNames,container:en("cleen-min-h-48 cleen-max-h-[90vh] cleen-overflow-y-auto",v?.modal?.classNames?.container),childrenContainer:en("cleen-min-h-24 cleen-max-h-[80vh] cleen-overflow-y-auto",v?.modal?.classNames?.childrenContainer)},styles:b?.modal?.styles,ref:M,children:[C,l&&Ja("div",{className:en("cleen-top-3 cleen-right-3 cleen-absolute"),children:Ja(ee,{variant:"borderless",onClick:N,"aria-label":"Close modal",classNames:{container:"cleen-p-1.5 cleen-rounded-full"},children:l})})]})})]}),document.body):null});import{Fragment as gB,jsxs as Ly}from"react/jsx-runtime";var Ey={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}},si={success:{name:"CheckCircle",tone:"success"},error:{name:"XCircle",tone:"error"},info:{name:"InfoCircle",tone:"info"},warning:{name:"AlertTriangle",tone:"warning"},default:null},Dy=3,Fy=180,Ay=15e3,tr="general",ja={[tr]:{label:"Notifications",pluralLabel:"notifications",icon:"Bell",tone:"neutral"}},Oy={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"},_y={"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"},el={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=>Ly(gB,{children:[Ly("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`},Ke="cleen-h-[30px] cleen-px-2.5 cleen-py-0 cleen-text-xs cleen-leading-none hover:cleen-translate-y-0";var L0={toasts:[],ui:{expanded:!1,expandedGroups:[]},paused:!1},zy=({exitDuration:e=Fy}={})=>{let t=L0,n=new Set,o=new Map,l=new Map,a=0,c=w=>{t={...t,...w},n.forEach(S=>S())},i=w=>{let S=o.get(w);!S||S.handle||t.paused||(S.startedAt=Date.now(),S.handle=setTimeout(()=>b(w),S.remaining))},d=w=>{let S=o.get(w);S?.handle&&(clearTimeout(S.handle),S.remaining=Math.max(0,S.remaining-(Date.now()-(S.startedAt??Date.now()))),S.handle=null,S.startedAt=null)},s=w=>{let S=o.get(w);S?.handle&&clearTimeout(S.handle),o.delete(w)},p=w=>{s(w.id),!(w.priority!=="normal"||w.duration===!1||w.duration<=0)&&(o.set(w.id,{duration:w.duration,remaining:w.duration,startedAt:null,handle:null,revision:++a}),i(w.id))},g=w=>{let S=l.get(w);S&&(l.delete(w),S.ids.delete(w),S.ids.size||clearTimeout(S.handle))},m=w=>{w.forEach(F=>l.delete(F));let S=t.toasts.filter(F=>!w.includes(F.id)),N=S.some(F=>!F.leaving);c({toasts:S,...!N&&{ui:L0.ui}})},y=w=>{g(w.id);let S=t.toasts.some(N=>N.id===w.id);return p(w),c({toasts:S?t.toasts.map(N=>N.id===w.id?w:N):[...t.toasts,w]}),w.id},v=(w,S)=>{let N=t.toasts.find(R=>R.id===w);if(!N||N.leaving)return;let F={...N,...S};("priority"in S||"duration"in S)&&p(F),c({toasts:t.toasts.map(R=>R.id===w?F:R)})},h=w=>{let S=t.toasts.filter(R=>w.includes(R.id)&&!R.leaving);if(!S.length)return;S.forEach(R=>s(R.id));let N=S.filter(R=>R.animationType==="none"||e<=0).map(R=>R.id),F=S.filter(R=>!N.includes(R.id)).map(R=>R.id);if(F.length){let R=t.toasts.filter(D=>!D.leaving).length;c({toasts:t.toasts.map(D=>F.includes(D.id)?{...D,leaving:!0,leavingFromCount:R}:D)});let k=new Set(F),z=setTimeout(()=>m([...k]),e);F.forEach(D=>l.set(D,{handle:z,ids:k}))}N.length&&m(N)},b=w=>h([w]);return{add:y,update:v,dismiss:b,dismissMany:h,clear:()=>h(t.toasts.map(w=>w.id)),pauseAll:()=>{t.paused||(o.forEach((w,S)=>d(S)),c({paused:!0}))},resumeAll:()=>{t.paused&&(c({paused:!1}),o.forEach((w,S)=>i(S)))},setExpanded:w=>c({ui:{...t.ui,expanded:w}}),toggleGroup:w=>{let{expandedGroups:S}=t.ui;c({ui:{...t.ui,expandedGroups:S.includes(w)?S.filter(N=>N!==w):[...S,w]}})},resetUi:()=>c({ui:L0.ui}),getTimer:w=>{let S=o.get(w);if(!S)return;let N=S.startedAt?Date.now()-S.startedAt:0;return{duration:S.duration,remaining:Math.max(0,S.remaining-N),revision:S.revision}},subscribe:w=>(n.add(w),()=>{n.delete(w)}),getSnapshot:()=>t}},le=zy();var vB=0,Vy=({id:e,variant:t="default",priority:n,actions:o,duration:l,closeButton:a=!0,hideProgressBar:c,animationType:i="slide",...d})=>{let s=Ey[t];return le.add({...d,id:e??`cleen-notification-${++vB}`,variant:t,actions:o,priority:n??(o?.length?"important":"normal"),duration:l??s.duration,closeButton:a,progressBar:c===void 0?s.progressBar:!c,animationType:i,createdAt:Date.now()})},bB=(e,{hideProgressBar:t,...n})=>le.update(e,{...n,...t!==void 0&&{progressBar:!t}}),tn={show:Vy,update:bB,dismiss:le.dismiss,dismissMany:le.dismissMany,clear:le.clear};import{useSyncExternalStore as yB}from"react";var pi=()=>yB(le.subscribe,le.getSnapshot,le.getSnapshot);import{useMemo as IB}from"react";var CB=()=>{let{toasts:e,paused:t}=pi();return{toasts:IB(()=>e.filter(o=>!o.leaving),[e]),paused:t,show:tn.show,update:tn.update,dismiss:tn.dismiss,dismissMany:tn.dismissMany,clear:tn.clear}};var Hy={critical:0,important:1,normal:2},E0=e=>e.filter(t=>!t.leaving),di=e=>[...e].reverse(),Gy=e=>[...e].sort((t,n)=>Hy[t.priority]-Hy[n.priority]),or=e=>!!e.actions?.length&&e.priority!=="normal",$y=e=>e.category??tr,on=e=>({type:"toast",key:`toast-${e.id}`,toast:e}),D0=e=>e.map(on),Uy=(e,t)=>(e.leavingFromCount??0)>t,nr=(e,t,n)=>{let o=E0(e);if(o.length>t)return n(o);let l=e.filter(a=>a.leaving&&Uy(a,t));return!o.length&&l.length>t?n(l).map(a=>({...a,exiting:!0})):D0(e.filter(a=>!a.leaving||!Uy(a,t)))};var F0=(e,t,n)=>nr(e,n,o=>{let l=Gy(di(o)),a=l.filter(h=>h.priority==="critical"),c=l.filter(h=>h.priority!=="critical"),i=new Map;c.forEach(h=>{let b=$y(h);i.set(b,[...i.get(b)??[],h])});let d=h=>Number(i.get(h).some(or)),s=h=>i.get(h).length,p=[...i.keys()].sort((h,b)=>d(b)-d(h)||s(b)-s(h)),g=Math.max(0,n-Math.min(a.length,1)),m=p.slice(0,g),y=[...a.slice(1),...p.slice(g).flatMap(h=>i.get(h))],v=a.slice(0,1).map(on);return m.forEach(h=>{let b=i.get(h);v.push(b.length===1?on(b[0]):{type:"group",key:`group-${h}`,category:h,toasts:b,expanded:t.expandedGroups.includes(h)})}),v.push({type:"footer",key:"footer",overflow:y,toasts:o}),v});var A0=(e,t,n=1/0)=>nr(e,n,o=>[...D0(o),{type:"footer",key:"footer",overflow:[],toasts:o}]);var O0=(e,t,n)=>nr(e,n,o=>{let l=di(o);if(t.expanded)return[{type:"list",key:"list",toasts:l}];let a=l.filter(p=>p.priority==="critical"),c=l.filter(p=>p.priority!=="critical"),[i,...d]=c,s=a.map(on);return i&&d.length?s.push({type:"deck",key:"deck",top:i,hidden:d}):i&&s.push(on(i)),s});var Wy={list:A0,stack:O0,group:F0};import{createContext as xB,useContext as PB}from"react";var _0=xB({categories:ja,labels:el,hiddenElements:[],now:Date.now(),paused:!1}),ve=()=>PB(_0);import{cn as SB,getTimeAgoLabel as wB}from"@cleen/ui-core";var X=(e,t,n,o)=>{let l=o?.classNames,a=o?.styles,c=e.styles?.[t]||a?.[t]?{...e.styles?.[t],...a?.[t]}:void 0;return{className:SB(n,e.classNames?.[t],l?.[t]),style:c,"data-slot":t}},wt=({className:e,style:t,...n})=>({classNames:{container:e},styles:{container:t},...n}),rr=(e,t)=>e.categories[t]??{...e.categories[tr],label:t,pluralLabel:t},mi=(e,t,n)=>{let o=Math.floor(Math.max(0,t-e));return typeof n.timeAgo=="function"?n.timeAgo(o):wB(o,n?.timeAgoStamps)},qy=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 MB}from"@cleen/ui-core";import{jsx as Xy}from"react/jsx-runtime";var ui=({toast:e})=>{let t=ve();if(t.hiddenElements.includes("badges"))return null;let n=e.priority==="critical";if(!n&&!or(e))return null;let o=X(t,"badge",void 0,e);return Xy("span",{...X(t,"badges","cleen-flex cleen-shrink-0 cleen-items-center cleen-gap-1",e),children:Xy(xe,{color:n?"red":"primary",variant:"full",label:n?t.labels.critical:t.labels.action,classNames:{container:MB("cleen-px-1.5 cleen-py-0 cleen-text-[10.5px] cleen-font-semibold cleen-leading-4",o.className)},styles:{container:o.style},"data-slot":o["data-slot"]})})};import{cn as Ky}from"@cleen/ui-core";import{Fragment as kB,jsx as xo}from"react/jsx-runtime";var Yy=({icon:e,tone:t="neutral",size:n="md",className:o,...l})=>{let a=n==="sm"?14:18;return xo("span",{className:Ky("cleen-inline-flex cleen-shrink-0 cleen-items-center cleen-justify-center",n==="sm"?"cleen-size-[26px] cleen-rounded-md":"cleen-size-[34px] cleen-rounded-lg",Oy[t],o),"aria-hidden":"true",...l,children:xo(Ce,{name:e,width:a,height:a})})},z0=({category:e,...t})=>{let n=ve(),o=rr(n,e);return xo(Yy,{icon:o.icon,tone:o.tone,...t})},fi=({toast:e,size:t="md"})=>{if(e.icon!==void 0)return xo(kB,{children:e.icon});if(e.category)return xo(z0,{category:e.category,size:t});let n=si[e.variant];return n?xo(Yy,{icon:n.name,tone:n.tone,size:t}):null},nn=({icon:e,label:t,className:n,...o})=>xo("button",{type:"button","aria-label":t,title:t,className:Ky("cleen-inline-flex cleen-size-[26px] cleen-shrink-0 cleen-items-center cleen-justify-center cleen-rounded-md cleen-text-muted-foreground cleen-transition-colors hover:cleen-bg-muted hover:cleen-text-foreground focus-visible:cleen-outline focus-visible:cleen-outline-2 focus-visible:cleen-outline-primary",n),...o,children:xo(Ce,{name:e,width:14,height:14,strokeWidth:2})});import{cn as V0}from"@cleen/ui-core";import{Fragment as BB,jsx as tl,jsxs as H0}from"react/jsx-runtime";var Zy=({toast:e,children:t})=>{let n=ve(),o=e.title!==void 0&&e.title!==null,l=e.icon===void 0&&(!!e.category||!!si[e.variant]),a=tl(fi,{toast:e}),c=tl(ui,{toast:e});return H0(BB,{children:[(e.icon!==void 0||l||e.variant!=="default")&&tl("span",{...X(n,"icon",V0("cleen-flex cleen-shrink-0 cleen-items-start",{"cleen-pt-0.5":!l}),e),children:a}),H0("div",{...X(n,"body",V0("cleen-flex cleen-min-w-0 cleen-flex-1 cleen-flex-col cleen-gap-0.5",{"cleen-pr-6":e.closeButton}),e),children:[o?H0("div",{className:"cleen-flex cleen-min-w-0 cleen-flex-wrap cleen-items-center cleen-gap-1.5",children:[tl("span",{...X(n,"title","cleen-min-w-0 cleen-max-w-full cleen-break-words cleen-text-sm cleen-font-semibold cleen-leading-[18px] cleen-text-foreground",e),children:e.title}),c]}):c,tl("span",{...X(n,"message",V0("cleen-break-words cleen-text-sm",{"cleen-text-muted-foreground":o,"cleen-text-foreground":!o}),e),children:e.message}),t]})]})};import{useState as NB}from"react";import{jsx as TB}from"react/jsx-runtime";var Qy=({toast:e})=>{let t=ve(),[n]=NB(()=>le.getTimer(e.id));if(!n)return null;let o=X(t,"progressBar","cleen-pointer-events-none cleen-absolute cleen-bottom-0 cleen-inset-x-0 cleen-h-0.5 cleen-origin-left cleen-rounded-full cleen-bg-primary-300 cleen-animate-toast-progress motion-reduce:cleen-hidden",e);return TB("span",{"aria-hidden":"true",...o,style:{animationDuration:`${n.duration}ms`,animationDelay:`-${n.duration-n.remaining}ms`,animationPlayState:t.paused?"paused":"running",...o.style}})};import{cn as RB}from"@cleen/ui-core";import{jsx as gi,jsxs as hi}from"react/jsx-runtime";var vi=({toast:e,inDeck:t=!1})=>{let n=ve(),{labels:o,hiddenElements:l}=n,a=e.priority==="critical",c=!!e.actions?.length,i=()=>le.dismiss(e.id),d=g=>{g.key==="Escape"&&(g.stopPropagation(),i())},s=!!e.category&&!l.includes("meta"),p=!t&&!e.leaving&&e.priority==="normal"&&e.progressBar&&!l.includes("progressBar");return hi("div",{role:a?"alert":"status","aria-atomic":"true",tabIndex:e.closeButton||c?void 0:0,onKeyDown:d,...X(n,"toast",RB("cleen-overflow-hidden cleen-pointer-events-auto cleen-relative cleen-flex cleen-w-full cleen-gap-3 cleen-rounded-xl cleen-border cleen-border-border cleen-bg-background cleen-py-3 cleen-pl-3.5 cleen-pr-3 cleen-text-foreground cleen-shadow-xl focus-visible:cleen-outline focus-visible:cleen-outline-2 focus-visible:cleen-outline-primary",{"cleen-border-error cleen-shadow-[0_0_0_3px_rgba(var(--cleen-error),0.12)]":a,"cleen-z-10":t},!(t&&e.leaving)&&qy(e),e.className),e),children:[hi(Zy,{toast:e,children:[s&&hi("span",{...X(n,"meta","cleen-text-[11.5px] cleen-text-muted-foreground",e),children:[rr(n,e.category).label," \xB7"," ",mi(e.createdAt,n.now,o)]}),c&&hi("div",{...X(n,"actions","cleen-mt-1.5 cleen-flex cleen-flex-wrap cleen-gap-1.5",e),children:[e.actions.map((g,m)=>{let y=X(n,"action",Ke,e);return gi(ee,{variant:g.variant??(m?"secondary":"primary"),label:g.label,onClick:()=>{g.onClick?.(e),i()},...wt(y)},`${g.label}-${m}`)}),gi(ee,{variant:"secondary",label:o.dismiss,onClick:i,...wt(X(n,"dismissButton",Ke,e))})]})]}),e.closeButton&&gi(nn,{icon:"X",label:o.close,onClick:i,...X(n,"closeButton","cleen-absolute cleen-right-2 cleen-top-2",e)}),p&&gi(Qy,{toast:e},le.getTimer(e.id)?.revision)]})};import{Fragment as LB,jsx as ar,jsxs as bi}from"react/jsx-runtime";var Jy="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",jy=({top:e,hidden:t})=>{let n=ve(),{labels:o}=n,l=[e.id,...t.map(a=>a.id)];return bi(LB,{children:[bi("div",{...X(n,"deck","cleen-pointer-events-auto cleen-relative cleen-isolate cleen-w-full"),children:[ar(vi,{toast:e,inDeck:!0}),ar("span",{"aria-hidden":"true",...X(n,"deckPeek",`${Jy} cleen-inset-x-2 -cleen-bottom-1.5 cleen-z-0 cleen-h-2.5`)}),t.length>1&&ar("span",{"aria-hidden":"true",...X(n,"deckPeek",`${Jy} cleen-inset-x-4 -cleen-bottom-[11px] -cleen-z-10 cleen-h-2.5`)})]}),!n.hiddenElements.includes("deckMoreBar")&&bi("div",{...X(n,"deckMoreBar","cleen-pointer-events-auto cleen-mt-1.5 cleen-flex cleen-w-full cleen-items-center cleen-justify-between cleen-gap-2 cleen-rounded-lg cleen-border cleen-border-border cleen-bg-background cleen-py-2 cleen-pl-3 cleen-pr-2.5 cleen-text-xs cleen-font-medium cleen-text-muted-foreground cleen-shadow-lg"),children:[ar("span",{...X(n,"deckMoreLabel"),children:o.moreBehind(t.length)}),bi("span",{className:"cleen-flex cleen-gap-1",children:[ar(ee,{variant:"secondary",label:o.showAll,"aria-expanded":!1,onClick:()=>le.setExpanded(!0),...wt(X(n,"deckShowAllButton",Ke))}),ar(ee,{variant:"borderless",label:o.dismissAll,onClick:()=>le.dismissMany(l),...wt(X(n,"deckDismissAllButton",Ke))})]})]})]})};import{cn as EB}from"@cleen/ui-core";import{Fragment as DB,jsx as yi,jsxs as FB}from"react/jsx-runtime";var eI=({count:e})=>{let t=ve(),{labels:n,onViewAll:o}=t;if(t.hiddenElements.includes("overflowPill"))return null;let l=FB(DB,{children:[n.overflow(e),yi("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:yi(Ce,{name:"ArrowRight",width:12,height:12,strokeWidth:2})})]}),a=X(t,"overflowPill",EB("cleen-pointer-events-auto cleen-inline-flex cleen-h-8 cleen-items-center cleen-gap-2 cleen-rounded-full cleen-border cleen-border-border cleen-bg-background cleen-pl-3 cleen-pr-1.5 cleen-text-[12.5px] cleen-font-semibold cleen-text-foreground cleen-shadow-lg cleen-transition-colors motion-safe:cleen-animate-toast-in",{"hover:cleen-bg-muted focus-visible:cleen-outline focus-visible:cleen-outline-2 focus-visible:cleen-outline-primary":o}));return o?yi("button",{type:"button",onClick:()=>o(),...a,children:l}):yi("span",{...a,children:l})};import{jsx as tI,jsxs as AB}from"react/jsx-runtime";var oI=({overflow:e,toasts:t})=>{let n=ve(),o=!n.hiddenElements.includes("dismissAllButton");return!o&&!e.length?null:AB("div",{...X(n,"footer","cleen-flex cleen-items-center cleen-gap-2"),children:[o&&tI("button",{type:"button",onClick:()=>le.dismissMany(t.map(l=>l.id)),...X(n,"dismissAllButton","cleen-pointer-events-auto cleen-inline-flex cleen-h-8 cleen-items-center cleen-rounded-full cleen-border cleen-border-border cleen-bg-background cleen-px-3 cleen-text-[12.5px] cleen-font-semibold cleen-text-foreground cleen-shadow-lg cleen-transition-colors hover:cleen-bg-muted focus-visible:cleen-outline focus-visible:cleen-outline-2 focus-visible:cleen-outline-primary motion-safe:cleen-animate-toast-in"),children:n.labels.dismissAll}),e.length>0&&tI(eI,{count:e.length})]})};import{jsx as rn,jsxs as Ii}from"react/jsx-runtime";var Ci=({toast:e,onDismiss:t})=>{let n=ve(),o=e.actions?.[0],l=e.title!==void 0&&e.title!==null;return Ii("div",{...X(n,"row","cleen-flex cleen-items-start cleen-gap-2.5 cleen-border-b cleen-border-border cleen-py-2.5 cleen-pl-3.5 cleen-pr-3 last:cleen-border-b-0 hover:cleen-bg-surface"),children:[rn("span",{...X(n,"rowIcon","cleen-flex cleen-shrink-0 cleen-pt-0.5"),children:rn(fi,{toast:e,size:"sm"})}),Ii("div",{...X(n,"rowBody","cleen-flex cleen-min-w-0 cleen-flex-1 cleen-flex-col cleen-gap-px"),children:[Ii("div",{className:"cleen-flex cleen-min-w-0 cleen-items-center cleen-gap-1.5",children:[rn("span",{className:"cleen-truncate cleen-text-[13px] cleen-font-semibold cleen-text-foreground",children:l?e.title:e.message}),rn(ui,{toast:e})]}),l&&rn("span",{className:"cleen-truncate cleen-text-xs cleen-text-muted-foreground",children:e.message})]}),Ii("span",{...X(n,"rowActions","cleen-ml-auto cleen-flex cleen-shrink-0 cleen-gap-1"),children:[o&&rn(nn,{icon:"ArrowRight",label:o.label,onClick:()=>{o.onClick?.(e),t(e.id)}}),rn(nn,{icon:"X",label:n.labels.close,onClick:()=>t(e.id)})]})]})};import{useEffect as OB,useLayoutEffect as _B,useRef as zB}from"react";var VB='button:not([disabled]), [href], input:not([disabled]), [tabindex]:not([tabindex="-1"])',xi=(e,t,n)=>{let o=zB(!1);return OB(()=>{e.current?.focus({preventScroll:!0})},[e]),_B(()=>{let i=document.activeElement;o.current&&e.current&&(!i||i===document.body)&&e.current.focus({preventScroll:!0})},[e,t]),{onFocus:()=>{o.current=!0},onBlur:i=>{let d=i.relatedTarget;d&&!i.currentTarget.contains(d)&&(o.current=!1)},onKeyDown:i=>{if(i.key==="Escape"){i.stopPropagation(),n();return}if(i.key!=="Tab"||!e.current)return;let d=[...e.current.querySelectorAll(VB)],s=d[0],p=d[d.length-1];!s||!p||(i.shiftKey&&document.activeElement===s?(i.preventDefault(),p.focus()):!i.shiftKey&&(document.activeElement===p||document.activeElement===e.current)&&(i.preventDefault(),s.focus()))}}};import{useRef as HB}from"react";import{Fragment as GB,jsx as He,jsxs as qt}from"react/jsx-runtime";var U0=3,UB=({toasts:e,onCollapse:t})=>{let n=HB(null),o=xi(n,e.length,t);return He("div",{ref:n,tabIndex:-1,...o,className:"cleen-max-h-[min(40vh,320px)] cleen-overflow-auto cleen-border-y cleen-border-border focus-visible:cleen-outline-none",children:e.map(l=>He(Ci,{toast:l,onDismiss:le.dismiss},l.id))})},nI=({category:e,toasts:t,expanded:n})=>{let o=ve(),{labels:l,onViewAll:a,hiddenElements:c}=o,i=rr(o,e),d=t.map(y=>y.id),s=t.filter(or).length,p=Math.min(...t.map(y=>y.createdAt)),g=()=>le.dismissMany(d),m=()=>le.toggleGroup(e);return qt("div",{role:"group","aria-label":`${t.length} ${i.pluralLabel}`,onKeyDown:y=>{y.key==="Escape"&&!n&&(y.stopPropagation(),g())},...X(o,"group","cleen-pointer-events-auto cleen-relative cleen-w-full cleen-overflow-hidden cleen-rounded-xl cleen-border cleen-border-border cleen-bg-background cleen-text-foreground cleen-shadow-xl motion-safe:cleen-animate-toast-in"),children:[qt("div",{...X(o,"groupHeader","cleen-flex cleen-items-center cleen-gap-2.5 cleen-pb-2 cleen-pl-3 cleen-pr-10 cleen-pt-2.5"),children:[He(z0,{category:e,...X(o,"groupIcon")}),qt("div",{className:"cleen-flex cleen-min-w-0 cleen-flex-1 cleen-flex-col cleen-gap-0.5",children:[qt("div",{className:"cleen-flex cleen-min-w-0 cleen-items-center cleen-gap-1.5",children:[He("span",{...X(o,"groupTitle","cleen-truncate cleen-text-sm cleen-font-semibold"),children:l.groupTitle(t.length,i)}),He("span",{...X(o,"groupCount","cleen-inline-flex cleen-h-5 cleen-min-w-5 cleen-shrink-0 cleen-items-center cleen-justify-center cleen-rounded-full cleen-bg-primary cleen-px-1.5 cleen-text-[11px] cleen-font-semibold cleen-text-primary-foreground"),children:t.length})]}),!c.includes("meta")&&qt("span",{...X(o,"groupMeta","cleen-text-[11.5px] cleen-text-muted-foreground"),children:[s>0&&qt(GB,{children:[l.needAction(s)," \xB7 "]}),mi(p,o.now,l)]})]})]}),n?He(UB,{toasts:t,onCollapse:m}):qt("div",{...X(o,"groupPreview","cleen-flex cleen-flex-col cleen-gap-1 cleen-pb-1.5 cleen-pl-14 cleen-pr-3"),children:[t.slice(0,U0).map(y=>qt("div",{...X(o,"groupPreviewLine","cleen-flex cleen-min-w-0 cleen-items-center cleen-gap-1.5 cleen-text-[12.5px] cleen-leading-[17px] cleen-text-foreground"),children:[He("span",{className:"cleen-size-[5px] cleen-shrink-0 cleen-rounded-full cleen-bg-muted-foreground"}),He("span",{className:"cleen-min-w-0 cleen-truncate",children:y.title??y.message})]},y.id)),t.length>U0&&!c.includes("groupMore")&&He("span",{...X(o,"groupMore","cleen-text-xs cleen-text-muted-foreground"),children:l.more(t.length-U0)})]}),qt("div",{...X(o,"groupFooter","cleen-flex cleen-items-center cleen-gap-1.5 cleen-pb-2.5 cleen-pl-14 cleen-pr-3 cleen-pt-1.5"),children:[a&&He(ee,{variant:"primary",label:l.review(i),rightIcon:He(Ce,{name:"ArrowRight",width:14,height:14}),onClick:()=>a(e),...wt(X(o,"groupReviewButton",Ke))}),He(ee,{variant:"secondary",label:n?l.collapse:l.expand,"aria-expanded":n,onClick:m,...wt(X(o,"groupToggleButton",Ke))}),He("span",{className:"cleen-flex-1"}),He(ee,{variant:"borderless",label:l.dismiss,onClick:g,...wt(X(o,"groupDismissButton",Ke))})]}),He(nn,{icon:"X",label:l.dismissGroup,onClick:g,...X(o,"closeButton","cleen-absolute cleen-right-2 cleen-top-2")})]})};import{useRef as $B}from"react";import{jsx as Po,jsxs as Pi}from"react/jsx-runtime";var rI=({toasts:e})=>{let t=ve(),{labels:n,onViewAll:o}=t,l=$B(null),a=()=>le.setExpanded(!1),c=xi(l,e.length,a);return Pi("div",{ref:l,tabIndex:-1,role:"group","aria-label":n.region,...c,...X(t,"list","cleen-pointer-events-auto cleen-w-full cleen-overflow-hidden cleen-rounded-xl cleen-border cleen-border-border cleen-bg-background cleen-text-foreground cleen-shadow-xl focus-visible:cleen-outline-none motion-safe:cleen-animate-toast-in"),children:[Pi("div",{...X(t,"listHeader","cleen-flex cleen-items-center cleen-gap-2 cleen-border-b cleen-border-border cleen-py-2 cleen-pl-3.5 cleen-pr-2.5 cleen-text-[13px] cleen-font-semibold"),children:[Pi("span",{children:[n.listTitle(e.length)," "]}),Po("span",{className:"cleen-flex-1"}),Po(ee,{variant:"borderless",label:n.collapse,"aria-expanded":!0,leftIcon:Po(Ce,{name:"ChevronUp",width:14,height:14}),onClick:a,classNames:{container:Ke}})]}),Po("div",{...X(t,"listRows","cleen-max-h-[min(52vh,420px)] cleen-overflow-auto"),children:e.map(i=>Po(Ci,{toast:i,onDismiss:le.dismiss},i.id))}),Pi("div",{...X(t,"listFooter","cleen-flex cleen-gap-1.5 cleen-border-t cleen-border-border cleen-bg-surface cleen-px-2.5 cleen-py-2"),children:[o&&Po(ee,{variant:"secondary",label:n.openNotifications,onClick:()=>o(),classNames:{container:Ke}}),Po("span",{className:"cleen-flex-1"}),Po(ee,{variant:"secondary",label:n.dismissAll,onClick:()=>le.dismissMany(e.map(i=>i.id)),classNames:{container:Ke}})]})]})};import{useEffect as WB,useState as qB}from"react";var aI=e=>{let[t,n]=qB(()=>Date.now());return WB(()=>{if(!e)return;n(Date.now());let o=setInterval(()=>n(Date.now()),Ay);return()=>clearInterval(o)},[e]),t};import{cn as $0}from"@cleen/ui-core";import{forwardRef as XB,useCallback as KB,useEffect as G0,useMemo as lI,useRef as cI}from"react";import{jsx as Xt}from"react/jsx-runtime";var YB=e=>{switch(e.type){case"toast":return Xt(vi,{toast:e.toast},e.key);case"deck":return Xt(jy,{top:e.top,hidden:e.hidden},e.key);case"list":return Xt(rI,{toasts:e.toasts},e.key);case"group":return Xt(nI,{category:e.category,toasts:e.toasts,expanded:e.expanded},e.key);case"footer":return Xt(oI,{overflow:e.overflow,toasts:e.toasts},e.key)}},ZB=(e,t)=>Xt("div",{"aria-hidden":"true",className:$0("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:YB(e)},e.key),QB=XB(function({layout:t="list",maxVisible:n=Dy,position:o="bottom-right",categories:l,onViewAll:a,labels:c,classNames:i,styles:d,hiddenElements:s,className:p,style:g,...m},y){let v=pi(),h=E0(v.toasts).length,b=aI(v.toasts.length>0),C=cI(null),x=cI(!1),I=lI(()=>Wy[t](v.toasts,v.ui,n),[t,v.toasts,v.ui,n]),P=lI(()=>({categories:{...ja,...l},labels:{...el,...c},classNames:i,styles:d,hiddenElements:s??[],onViewAll:a,now:b,paused:v.paused}),[l,c,i,d,s,a,b,v.paused]);G0(()=>{let{expanded:M,expandedGroups:L}=v.ui,w=v.toasts.some(S=>S.leaving);h<=n&&!w&&(M||L.length)&&le.resetUi()},[h,n,v.toasts,v.ui]);let B=KB(()=>{let M=document.activeElement,L=!!(M&&C.current?.contains(M))&&!!M?.matches(":focus-visible");x.current||L?le.pauseAll():le.resumeAll()},[]);G0(()=>{h||(x.current=!1),B()},[h,B]),G0(()=>{let M=L=>{x.current&&!C.current?.contains(L.target)&&(x.current=!1,B())};return document.addEventListener("pointermove",M,{passive:!0}),()=>document.removeEventListener("pointermove",M)},[B]);let E=M=>{x.current=M,B()},T=()=>requestAnimationFrame(B);return Xt("div",{className:$0("cleen",p),style:g,ref:y,children:Xt(_0.Provider,{value:P,children:Xt("div",{role:"region","aria-live":"polite","aria-label":P.labels.region,ref:C,onMouseEnter:()=>E(!0),onMouseLeave:()=>E(!1),onFocus:T,onBlur:T,...X(P,"region",$0("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",_y[o])),...m,children:I.map(M=>ZB(M,o.endsWith("left")?"cleen-items-start":o.endsWith("center")?"cleen-items-center":"cleen-items-end"))})})})});import{cn as iI}from"@cleen/ui-core";import{forwardRef as JB,useState as jB}from"react";import{jsx as W0,jsxs as eN}from"react/jsx-runtime";var q0=JB(({totalPages:e,labels:t,onGoToPage:n,classNames:o,styles:l,...a},c)=>{let[i,d]=jB(""),s=()=>{let g=parseInt(i,10);isNaN(g)||(n?.(Math.min(Math.max(g,1),e)),d(""))},p=g=>{g.key==="Enter"?s():g.key==="Escape"&&d("")};return W0("div",{className:"cleen",...a,children:eN("div",{className:iI("cleen-flex cleen-items-center cleen-gap-2",o?.container),style:l?.container,children:[W0("span",{className:iI("cleen-text-sm cleen-text-neutral-700 cleen-whitespace-nowrap",o?.label),style:l?.label,children:t?.goToPage}),W0(ge,{ref:c,type:"number",min:1,max:e,value:i,onChange:g=>d(g.target.value),onKeyDown:p,...o?.input,...l?.input})]})})});import{cn as Si,useOutsideClick as tN,usePositionClose as oN}from"@cleen/ui-core";import{forwardRef as nN,useRef as sI,useState as pI}from"react";import{createPortal as rN}from"react-dom";import{jsx as lr,jsxs as lN}from"react/jsx-runtime";var aN=[10,20,50,100],X0=nN(({pageSize:e,pageSizes:t=aN,labels:n,onPageSizeChange:o,classNames:l,styles:a,...c},i)=>{let[d,s]=pI(e??t?.[0]??void 0),[p,g]=pI(!1),m=sI(null),y=sI(null),{positionStyles:v,isMounted:h}=oN({triggerRef:m,targetRef:y,isOpen:p,position:"top-left"});return tN({refs:[m,y],handler:()=>g(!1),enabled:p}),lr("div",{className:"cleen",ref:i,...c,children:lN("div",{className:Si("cleen-relative cleen-flex cleen-justify-start cleen-items-center cleen-w-10",l?.container),style:a?.container,children:[lr(ye,{label:n?.itemsPerPage?.(d),classNames:{labelContainer:"cleen-min-w-max"},children:lr("div",{className:Si("cleen-flex cleen-justify-center cleen-items-center cleen-bg-muted hover:cleen-bg-neutral-200 cleen-p-2 cleen-rounded-lg cleen-min-w-10 cleen-h-10 cleen-font-medium cleen-text-sm cleen-text-neutral-700 cleen-transition-colors cleen-cursor-pointer",l?.trigger),style:a?.trigger,onClick:()=>g(b=>!b),ref:m,children:d})}),p&&rN(lr("div",{className:"cleen",children:lr("div",{ref:y,className:Si("cleen-flex cleen-bg-background cleen-shadow-lg cleen-border cleen-border-border cleen-rounded-lg","cleen-absolute cleen-z-50",{"cleen-opacity-0":!h},l?.menu),style:{top:`${v.top}px`,left:`${v.left}px`,...a?.menu},children:t?.filter(b=>b!==d)?.map(b=>lr("div",{className:Si("cleen-flex cleen-justify-center cleen-items-center hover:cleen-bg-muted cleen-p-2 cleen-min-w-10 cleen-h-10 cleen-font-medium cleen-text-neutral-700 cleen-text-sm cleen-transition-colors cleen-cursor-pointer",l?.menuItem),style:a?.menuItem,onClick:()=>{s(b),o?.(b),g(!1)},children:b},b))})}),document.body)]})})});var dI={goToPreviousPage:"Go to previous page",goToNextPage:"Go to next page",goToPage:"Go to page",itemsPerPage:e=>`Show ${e} items per page`};import{cn as So}from"@cleen/ui-core";import{forwardRef as cN,useCallback as wi,useMemo as iN,useRef as sN}from"react";import{jsx as Ye,jsxs as dN}from"react/jsx-runtime";var pN=cN(({currentPage:e,totalPages:t,pageSize:n,pageSizes:o,hasGotoPage:l=!0,hasPageSizeSelector:a=!0,onPageChange:c,onPageSizeChange:i,labels:d=dI,classNames:s,styles:p,...g},m)=>{let y=sN(null),v=wi(()=>{e<t&&c?.(e+1)},[e,t,c]),h=wi(()=>{e>1&&c?.(e-1)},[e,c]),b=wi(I=>Ye("span",{className:So("cleen-flex cleen-justify-center cleen-items-center cleen-bg-background hover:cleen-bg-muted cleen-p-2 cleen-rounded-lg cleen-w-10 cleen-h-10 cleen-font-medium cleen-text-neutral-700 cleen-text-sm cleen-cursor-pointer",I===e&&"cleen-bg-muted hover:cleen-bg-neutral-200",s?.pageButton,I===e?s?.activePageButton:""),style:{...p?.pageButton,...I===e?p?.activePageButton:{}},onClick:()=>c?.(I),children:I},`page-${I}`),[e,c,s,p]),C=wi(I=>Ye("span",{className:So("cleen-flex cleen-justify-center cleen-self-end cleen-bg-background hover:cleen-bg-muted cleen-p-2 cleen-rounded-lg cleen-w-10 cleen-h-10 cleen-font-medium cleen-text-neutral-700 cleen-text-sm cleen-transition-colors cleen-cursor-pointer",s?.ellipsis),style:p?.ellipsis,onClick:()=>y.current?.focus(),children:"..."},I),[s,p]),x=iN(()=>{if(isNaN(e)||isNaN(t))return[];let I=[];if(I.push(Ye(ye,{label:d.goToPreviousPage,classNames:{labelContainer:"cleen-min-w-max"},children:Ye("span",{className:So("cleen-flex cleen-justify-center cleen-items-center cleen-bg-background cleen-p-2 cleen-rounded-lg cleen-w-10 cleen-h-10 cleen-font-medium cleen-text-neutral-700 hover:cleen-text-primary cleen-text-sm cleen-transition-colors cleen-cursor-pointer",s?.navButton),style:p?.navButton,onClick:h,children:Ye(At,{})})},"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(Ye(ye,{label:d.goToNextPage,classNames:{labelContainer:"cleen-min-w-max"},children:Ye("span",{className:So("cleen-flex cleen-justify-center cleen-items-center cleen-bg-background cleen-p-2 cleen-rounded-lg cleen-w-10 cleen-h-10 cleen-font-medium cleen-text-neutral-700 hover:cleen-text-primary cleen-text-sm cleen-transition-colors cleen-cursor-pointer",s?.navButton),style:p?.navButton,onClick:v,children:Ye(mt,{})})},"next")),I},[e,t,d,s,p,C,b,v,h]);return Ye("div",{className:"cleen",ref:m,...g,children:dN("div",{className:So("cleen-flex cleen-justify-between cleen-gap-4",s?.container),style:p?.container,children:[a?Ye(X0,{pageSize:n,labels:d,onPageSizeChange:i,pageSizes:o,className:So("cleen-flex-1",s?.pageSizeSelector?.className),classNames:s?.pageSizeSelector?.classNames,...p?.pageSizeSelector}):Ye("div",{className:"cleen-flex-1"}),Ye("div",{className:So("cleen-flex cleen-flex-1 cleen-justify-center cleen-items-center cleen-gap-2 cleen-w-full",s?.buttonsContainer),style:p?.buttonsContainer,children:x}),l?Ye(q0,{ref:y,totalPages:t,onGoToPage:c,labels:d,className:So("cleen-flex cleen-flex-1 cleen-justify-end",s?.goToPage?.className),classNames:s?.goToPage?.classNames,...p?.goToPage}):Ye("div",{className:"cleen-flex-1"})]})})});import{cn as K0,useDisclosure as mN,useOutsideClick as uN,usePositionClose as fN,ZIndex as hN}from"@cleen/ui-core";import{forwardRef as gN,useRef as mI}from"react";import{createPortal as vN}from"react-dom";import{jsx as Y0,jsxs as bN}from"react/jsx-runtime";var ol=gN(function({isOpen:t,onOpenChange:n,content:o,position:l="bottom-left",offset:a,zIndex:c=hN.POPOVER,children:i,className:d,classNames:s,style:p,styles:g,...m},y){let{isOpen:v,toggle:h,close:b}=mN({value:t,setValue:n}),C=mI(null),x=mI(null),{positionStyles:I,isMounted:P}=fN({triggerRef:C,targetRef:x,position:l,isOpen:v,offset:a});uN({refs:[C,x],handler:b,enabled:v});let B=E=>{E.stopPropagation(),h()};return bN("div",{className:K0("cleen",d),style:p,ref:y,...m,children:[Y0("div",{ref:C,onClick:B,className:K0("cleen-size-fit",s?.trigger,v&&s?.triggerOpen),style:{...g?.trigger,...v?g?.triggerOpen:{}},children:i}),v&&vN(Y0("div",{className:"cleen",onClick:E=>E.stopPropagation(),onPointerDown:E=>E.stopPropagation(),onMouseDown:E=>E.stopPropagation(),onTouchStart:E=>E.stopPropagation(),children:Y0("div",{ref:x,className:K0("cleen-bg-background cleen-shadow-lg cleen-border cleen-border-border cleen-rounded-lg cleen-w-52","cleen-absolute",{"cleen-opacity-0":!P},s?.popover),style:{zIndex:c,top:`${I.top}px`,left:`${I.left}px`,...g?.popover},onClick:E=>E.stopPropagation(),children:o})}),document.body)]})});import{cn as uI}from"@cleen/ui-core";import{forwardRef as yN,useEffect as IN,useState as CN}from"react";import{jsx as Mi,jsxs as fI}from"react/jsx-runtime";var xN={xs:40,sm:60,md:80,lg:100,xl:120,xxl:140,xxxl:160},hI=yN(({isFullscreen:e,percentage:t,duration:n=1e3,radius:o,stroke:l=16,size:a="md",color:c="rgb(var(--cleen-primary))",emptyColor:i="rgb(var(--cleen-neutral-200))",textColor:d="rgb(var(--cleen-foreground))",textHidden:s=!1,fontSize:p,renderText:g,className:m,classNames:y,style:v,styles:h,...b},C)=>{let x=o??xN[a]/2,I=x-l/2,P=I*2*Math.PI,[B,E]=CN(0);IN(()=>{let M=null;if(n===0){E(t);return}let L=w=>{M||(M=w);let S=w-M,N=Math.min(S/n*t,t);E(N),N<t&&requestAnimationFrame(L)};requestAnimationFrame(L)},[t,n]);let T=P-B/100*P;return Mi("div",{ref:C,className:uI("cleen",m),style:v,...b,children:fI("div",{className:uI("cleen-flex cleen-justify-center cleen-items-center cleen-w-full cleen-h-full",{"cleen-h-screen cleen-w-screen cleen-bg-background":e},y?.container),style:h?.container,children:[fI("svg",{height:x*2,width:x*2,style:{transform:"rotate(-90deg)"},children:[Mi("circle",{stroke:i,fill:"transparent",strokeWidth:l,r:I,cx:x,cy:x}),Mi("circle",{stroke:c,fill:"transparent",strokeWidth:l,strokeLinecap:"round",strokeDasharray:P,strokeDashoffset:T,r:I,cx:x,cy:x})]}),!s&&Mi("div",{className:"cleen-absolute cleen-font-semibold cleen-text-foreground",style:{fontSize:p??x/2.5,color:d},children:g?g(B):`${Math.round(B)}%`})]})})});hI.displayName="ProgressCircle";import{cn as ct}from"@cleen/ui-core";import{useEffect as PN,useState as SN}from"react";import{Fragment as gI,jsx as Kt,jsxs as nl}from"react/jsx-runtime";var wN=({horizontal:e,boxes:t,selectedBox:n,onBoxClick:o,leftElement:l,rightElement:a,leftIcon:c,leftIconName:i,rightIconName:d,className:s,classNames:p,style:g,styles:m,...y})=>{let[v,h]=SN(n);PN(()=>{h(n)},[n]);let b=(P,B)=>nl(gI,{children:[l&&l(P),c||(i?Kt(Ce,{name:i,className:ct("cleen-w-5 cleen-h-5",B?"cleen-text-primary":"cleen-text-neutral-700",p?.leftIcon),style:m?.leftIcon}):null)]}),C=(P,B)=>Kt("span",{className:ct("cleen-font-semibold",B?"cleen-text-primary":"cleen-text-neutral-700",p?.label),style:m?.label,children:P?.label}),x=(P,B)=>Kt("span",{className:ct("cleen-font-semibold cleen-text-16px",B?"cleen-text-primary":"cleen-text-neutral-700",p?.subLabel),style:m?.subLabel,children:P?.subLabel}),I=(P,B)=>nl(gI,{children:[a&&a(P),d&&Kt(Ce,{name:d,className:ct("cleen-w-5 cleen-h-5",B?"cleen-text-primary":"cleen-text-neutral-700",p?.rightIcon),style:m?.rightIcon})]});return Kt("div",{className:ct("cleen",s),style:g,...y,children:e?Kt("div",{className:ct("cleen-flex cleen-flex-wrap cleen-items-start cleen-justify-start cleen-gap-3 cleen-w-full",p?.container),style:m?.container,children:t?.map(P=>{let B=P?.id===v?.id;return nl("div",{className:ct("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",B?"cleen-bg-primary/5 cleen-border-primary/50":"cleen-border-border",p?.box),style:m?.box,onClick:()=>{h(P),o?.(P)},children:[b(P,B),P?.label&&C(P,B),P?.subLabel&&x(P,B),I(P,B)]},P?.id)})}):Kt("div",{className:ct("cleen-grid cleen-gap-3 cleen-w-full",p?.container),style:{gridTemplateColumns:"1fr auto 1fr",...m?.container},children:t?.map(P=>{let B=P?.id===v?.id;return nl("div",{className:ct("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",B?"cleen-bg-primary-100 cleen-border-muted-foreground":"cleen-bg-surface cleen-border-border",p?.box),style:{gridTemplateColumns:"subgrid",gridColumn:"1 / -1",...m?.box},onClick:()=>{h(P),o?.(P)},children:[Kt("div",{className:ct("cleen-flex cleen-items-center cleen-gap-2 cleen-justify-start",p?.leftIconContainer),style:m?.leftIconContainer,children:b(P,B)}),Kt("div",{className:ct("cleen-flex cleen-items-center cleen-justify-center",p?.labelContainer),style:m?.labelContainer,children:P?.label&&C(P,B)}),nl("div",{className:ct("cleen-flex cleen-items-center cleen-gap-2 cleen-justify-end",p?.rightIconContainer),style:m?.rightIconContainer,children:[P?.subLabel&&x(P,B),I(P,B)]})]},P?.id)})})})};import{cn as Yt}from"@cleen/ui-core";import{forwardRef as BN,useEffect as NN,useId as TN,useRef as RN,useState as LN}from"react";import{cn as vI}from"@cleen/ui-core";import{forwardRef as MN}from"react";import{jsx as bI,jsxs as kN}from"react/jsx-runtime";var ki=MN(function({checked:t,className:n,classNames:o,style:l,styles:a,...c},i){return kN("div",{className:vI("group cleen-flex cleen-size-5 cleen-min-h-5 cleen-min-w-5 cleen-items-center cleen-justify-center cleen-rounded-full cleen-border cleen-border-neutral-300 focus-within:cleen-ring-2 focus-within:cleen-ring-primary focus-within:cleen-ring-offset-1",t?"cleen-bg-primary":"cleen-bg-surface",n),style:l,children:[bI("input",{ref:i,type:"radio",checked:t,className:"cleen-sr-only",...c}),bI("span",{className:vI("cleen-size-2 cleen-rounded-full cleen-bg-primary-foreground",o?.innerCircle),style:a?.innerCircle})]})});import{jsx as Mt,jsxs as Bi}from"react/jsx-runtime";var EN=BN(function({required:t,radios:n,label:o,labelTooltip:l,className:a,classNames:c,style:i,styles:d,name:s,direction:p="vertical",radioPosition:g="left",defaultActiveId:m,value:y,infoLabels:v,onChange:h},b){let C=y!==void 0,[x,I]=LN(m??n[0]?.id),P=TN(),B=`${P}-label`,E=s??`cleen-radio-group-${P}`;NN(()=>{!C&&m!==void 0&&I(m)},[m,C]);let T=C?y:x,M=k=>T!=null&&T==k,L=k=>{C||I(k),h?.(k)},w=RN([]),S=n?.findIndex(k=>M(k.id)),N=S>=0?S:0,F=k=>{let z=n[k];z&&(L(z.id),w.current[k]?.focus())},R=(k,z)=>{let D=n.length;if(D)switch(k.key){case"ArrowDown":case"ArrowRight":k.preventDefault(),F((z+1)%D);break;case"ArrowUp":case"ArrowLeft":k.preventDefault(),F((z-1+D)%D);break;default:break}};return Mt("div",{className:Yt("cleen",a),style:i,ref:b,children:Bi("div",{className:c?.container,style:d?.container,children:[o&&Mt(ae,{id:B,htmlFor:P,required:t,tooltip:l,className:Yt("cleen-mb-1.5",c?.label?.className),classNames:c?.label?.classNames,...d?.label,children:o}),Mt("div",{id:P,role:"radiogroup","aria-labelledby":o?B:void 0,className:Yt("cleen-flex cleen-flex-wrap cleen-gap-2.5",p==="vertical"&&"cleen-flex-col cleen-w-fit",c?.radios),style:d?.radios,children:n?.map((k,z)=>{let D=`${P}-${z}`,A=k.radioPosition??g;return Bi("div",{className:Yt("cleen-flex cleen-gap-2 hover:cleen-bg-muted cleen-p-5 cleen-border cleen-border-border hover:cleen-border-neutral-300 cleen-rounded-xl cleen-transition-all cleen-duration-200 cleen-cursor-pointer",p==="horizontal"&&"cleen-flex-1",M(k?.id)&&"cleen-border-primary hover:cleen-border-primary",c?.radioContainer,k?.className,M(k?.id)&&c?.radioActive),style:{...d?.radioContainer,...k?.style},onClick:O=>{O.target instanceof Element&&!O.target.closest("label, input")&&w.current[z]?.click()},children:[k.leftIcon,A==="left"&&Mt(ki,{ref:O=>{w.current[z]=O},id:D,name:E,value:k.id,checked:M(k.id),tabIndex:z===N?0:-1,onChange:()=>L(k.id),onKeyDown:O=>R(O,z),className:Yt(c?.radioOuterCheckBox,k?.classNames?.outerCheckBox),style:{...d?.radioOuterCheckBox,...k?.styles?.outerCheckBox}}),Bi("label",{htmlFor:D,className:Yt("cleen-flex-1 cleen-cursor-pointer",c?.radioLabelsContainer,k?.classNames?.labelsContainer),style:{...d?.radioLabelsContainer,...k?.styles?.labelsContainer},children:[Bi("div",{className:"cleen-flex cleen-items-center cleen-gap-1",children:[Mt("span",{className:Yt("cleen-font-semibold cleen-text-neutral-700 cleen-text-sm",c?.radioTitle,k?.classNames?.title),style:{...d?.radioTitle,...k?.styles?.title},children:k.title}),Mt("span",{className:Yt("cleen-font-normal cleen-text-neutral-600 cleen-text-xs",c?.radiotPostTitle,k?.classNames?.postTitle),style:{...d?.radiotPostTitle,...k?.styles?.postTitle},children:k.postTitle})]}),Mt("span",{className:Yt("cleen-font-normal cleen-text-neutral-600 cleen-text-sm",c?.radioSubTitle,k?.classNames?.subTitle),style:{...d?.radioSubTitle,...k?.styles?.subTitle},children:k?.subTitle})]}),A==="right"&&Mt(ki,{ref:O=>{w.current[z]=O},id:D,name:E,value:k.id,checked:M(k.id),tabIndex:z===N?0:-1,onChange:()=>L(k.id),onKeyDown:O=>R(O,z),className:c?.radioOuterCheckBox,style:d?.radioOuterCheckBox}),A==="hidden"&&Mt(ki,{ref:O=>{w.current[z]=O},id:D,name:E,value:k.id,checked:M(k.id),tabIndex:z===N?0:-1,onChange:()=>L(k.id),onKeyDown:O=>R(O,z),className:"cleen-sr-only"}),k.rightIcon]},k?.id)})}),(v?.errorMessage||v?.infoMessage||v?.subtitle)&&Mt(ne,{...v})]})})});import{cn as cr,ColorHelpers as DN}from"@cleen/ui-core";import{forwardRef as FN,useRef as AN,useState as ON}from"react";import{jsx as an,jsxs as yI}from"react/jsx-runtime";var _N=FN(function({id:t,required:n,label:o,labelTooltip:l,labels:a,infoLabels:c,value:i,onChange:d,amount:s=5,options:p=[],gap:g,size:m=36,readonly:y,color:v="rgb(var(--cleen-primary))",className:h,style:b,classNames:C,styles:x,...I},P){let[B,E]=ON(0),T=i!==void 0,M=T?i:B,L=p?.length>0?p:Array.from({length:s},(D,A)=>A+1),w=AN([]),S=L.findIndex(D=>D===M),N=S>=0?S:0,F=D=>{T||E(D),d?.(D)},R=D=>{let A=L[D];A!==void 0&&(F(A),w.current[D]?.focus())},k=(D,A)=>{if(y)return;let O=L.length;if(O)switch(D.key){case"ArrowRight":case"ArrowUp":D.preventDefault(),R((A+1)%O);break;case"ArrowLeft":case"ArrowDown":D.preventDefault(),R((A-1+O)%O);break;case"Home":D.preventDefault(),R(0);break;case"End":D.preventDefault(),R(O-1);break;default:break}},z=typeof o=="string"?o:"Rating";return an("div",{className:cr("cleen",h),style:b,ref:P,...I,children:yI("div",{className:cr("cleen-space-y-2",C?.container),style:x?.container,children:[o&&an(ae,{htmlFor:t,required:n,tooltip:l,className:cr("cleen-mb-1.5",C?.label?.className),classNames:C?.label?.classNames,...x?.label,children:o}),yI("div",{className:"cleen-flex cleen-items-center cleen-gap-3",children:[an("div",{role:"radiogroup","aria-label":z,className:cr("cleen-flex cleen-flex-wrap cleen-gap-3",C?.list),style:{...g?{gap:g}:{},...x?.list},children:L?.map((D,A)=>an("button",{id:t,ref:O=>{w.current[A]=O},role:"radio","aria-checked":M===D,"aria-label":`${D}`,tabIndex:A===N?0:-1,onClick:()=>F(D),onKeyDown:O=>k(O,A),className:cr("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",y&&"cleen-cursor-default cleen-pointer-events-none",C?.item),style:{width:m,height:m,...M===D?{borderColor:v,backgroundColor:DN.trasparentize(v,.9),color:v}:{},...x?.item},type:"button",children:an("span",{className:cr("cleen-font-medium cleen-text-sm",C?.value),style:x?.value,children:D})},D))}),a?.helperText&&an("span",{className:"cleen-text-sm cleen-text-neutral-600",children:a.helperText})]}),(c?.errorMessage||c?.infoMessage||c?.subtitle)&&an(ne,{...c})]})})});import{useState as zN}from"react";import{components as VN}from"react-select";import{jsx as Z0,jsxs as II}from"react/jsx-runtime";var CI=e=>{let[t,n]=zN(!1),o=e.data;return Z0("div",{onMouseEnter:()=>n(!0),onMouseLeave:()=>n(!1),children:Z0(VN.Option,{...e,children:II("div",{className:"cleen-flex cleen-justify-between cleen-items-center",children:[II("div",{className:"cleen-flex-1",children:[o?.label,o?.sublabel&&Z0("p",{className:"cleen-text-xs",children:o?.sublabel})]}),typeof o?.icon=="function"?o.icon({...e,isHovered:t}):o?.icon]})})})};import{components as HN}from"react-select";import{jsx as Q0,jsxs as UN}from"react/jsx-runtime";var xI=e=>{let t=e.data;return Q0(HN.SingleValue,{...e,children:UN("div",{className:"cleen-flex cleen-items-center cleen-gap-2",children:[Q0("p",{children:t?.label}),t?.sublabel&&Q0("p",{className:"cleen-text-xs cleen-text-neutral-600 cleen-line-clamp-1",children:t?.sublabel})]})})};import{cn as rl,ZIndex as kI}from"@cleen/ui-core";import{forwardRef as WN,useId as qN,useState as BI}from"react";import XN from"react-select";import{components as GN}from"react-select";import{jsx as J0,jsxs as PI}from"react/jsx-runtime";var SI=({isLoading:e,inputValue:t,options:n,createNewOptionCallback:o,createNewOptionLabelStringCb:l,children:a,...c})=>{let i=t?.trim().toLowerCase(),d=n?.some(s=>s?.labelString?s.labelString.toLowerCase()===i:typeof s?.label=="string"?s.label.toLowerCase()===i:!1);return J0("div",{className:"cleen",children:PI(GN.MenuList,{options:n,...c,children:[a,o&&!e&&t&&t?.length>0&&!d&&PI("div",{className:"cleen-flex cleen-flex-col cleen-items-center cleen-justify-center",children:[J0(gt,{}),J0("span",{className:"cleen-py-3 cleen-font-semibold cleen-text-sm cleen-text-primary/70 cleen-cursor-pointer",onClick:()=>{o(t)},children:l?.(t)||t})]})]})})};import{components as $N}from"react-select";import{jsx as wI}from"react/jsx-runtime";var MI=({isLoading:e,noDataFound:t,...n})=>wI($N.NoOptionsMessage,{...n,children:e?wI(re,{}):t||"No data found"});import{jsx as wo,jsxs as TI}from"react/jsx-runtime";var NI=e=>typeof e=="object"&&e!==null&&("labelString"in e||"label"in e),KN=WN(function({label:t,labelTooltip:n,sublabel:o,id:l,name:a,required:c,className:i,classNames:d,isLoading:s=!1,disabled:p,emboldenOptions:g=!1,labels:m,components:y,style:v,styles:h,infoLabels:b,createNewOptionCallback:C,createNewOptionLabelStringCb:x,...I},P){let[B,E]=BI(!1),[T,M]=BI(""),L=qN(),w=I.inputId??l??a??L,S=(F,R)=>{if(!NI(F.data))return!1;let{labelString:k,label:z}=F.data;return k?k.toLowerCase().includes(R.toLowerCase()):typeof z=="string"?z.toLowerCase().includes(R.toLowerCase()):!1},N=F=>NI(F)?F.labelString??(typeof F.label=="string"?F.label:""):"";return wo("div",{className:rl("cleen",i),style:v,ref:P,children:TI("div",{className:rl("cleen-flex cleen-flex-col cleen-gap-1.5 cleen-rounded-md cleen-w-full",d?.cleenContainer),style:h?.cleenContainer,children:[(t||o)&&TI("div",{className:rl("cleen-flex cleen-flex-col cleen-gap-1",d?.labels?.container),style:h?.labels?.container,children:[t&&wo(ae,{htmlFor:w,required:c,tooltip:n,...d?.labels?.label,...h?.labels?.label,children:t}),o&&wo("span",{className:rl("cleen-font-normal cleen-text-neutral-600 cleen-text-sm",d?.labels?.sublabel),style:h?.labels?.sublabel,children:o})]}),wo(XN,{...C&&{menuIsOpen:B,inputValue:T,onInputChange:F=>M(F),onMenuOpen:()=>E(!0),onMenuClose:()=>E(!1)},...!I.filterOption&&{filterOption:S},...!I.getOptionLabel&&{getOptionLabel:N},id:l||a,classNames:d,isDisabled:p,menuPortalTarget:document.body,menuPosition:"fixed",...I,inputId:w,className:rl("cleen-shadow-none cleen-font-normal cleen-text-foreground cleen-text-sm",d?.inputOuterContainer),styles:{...h,control:(F,R)=>{let k={...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 h?.control?h?.control(k,R):k},menuPortal:(F,R)=>{let k={...F,zIndex:kI.SELECT,...h?.menuPortal};return h?.menuPortal?h?.menuPortal(k,R):k},menu:(F,R)=>{let k={...F,backgroundColor:"rgba(var(--cleen-surface))",border:"1px solid rgba(var(--cleen-border))",zIndex:kI.SELECT,...h?.menu};return h?.menu?h?.menu(k,R):k},option:(F,R)=>{let k={...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 h?.option?h?.option(k,R):k},menuList:(F,R)=>{let k={...F,"::-webkit-scrollbar":{width:"6px",height:"0px"},"::-webkit-scrollbar-track":{background:"rgb(var(--cleen-background))"},"::-webkit-scrollbar-thumb":{background:"rgba(var(--cleen-neutral-200))"},"::-webkit-scrollbar-thumb:hover":{background:"rgba(var(--cleen-neutral-400))"},padding:0,borderRadius:4,...h?.menuList};return h?.menuList?h?.menuList(k,R):k},singleValue:(F,R)=>{let k={...F,color:R.isDisabled?"rgba(var(--cleen-neutral-500))":"rgba(var(--cleen-black))"};return h?.singleValue?h?.singleValue(k,R):k},input:(F,R)=>{let k={...F,color:"rgba(var(--cleen-foreground))"};return h?.input?h?.input(k,R):k}},components:{IndicatorSeparator:()=>null,SingleValue:F=>wo(xI,{...F}),NoOptionsMessage:F=>wo(MI,{isLoading:s,noDataFound:m?.noDataFound,...F}),MenuList:F=>wo(SI,{isLoading:s,inputValue:T,createNewOptionCallback:C,createNewOptionLabelStringCb:x,...F}),Option:CI,...y}}),(b?.errorMessage||b?.infoMessage||b?.subtitle)&&wo(ne,{...b})]})})});import{jsx as RI,jsxs as YN}from"react/jsx-runtime";function LI({children:e,title:t,className:n="",renderHeader:o}){return YN("div",{className:`cleen-w-full cleen-h-full ${n}`,"data-testid":`drawer-container-${t}`,children:[o?o(t):RI("h1",{className:"cleen-text-sm cleen-font-medium cleen-pb-4 cleen-pt-9 cleen-px-4 cleen-text-foreground-emphasis",children:t}),RI("div",{className:"cleen-h-max cleen-w-full cleen-px-4",children:e})]})}import{cn as Zt}from"@cleen/ui-core";import{forwardRef as ZN,useState as QN}from"react";import{Fragment as t6,jsx as it,jsxs as Ni}from"react/jsx-runtime";function JN({icon:e,iconSrc:t,iconName:n,iconSize:o=24,title:l,className:a,style:c}){return e?it("span",{className:Zt("cleen-flex cleen-justify-center cleen-items-center cleen-shrink-0",a),style:{width:o,height:o,...c},children:e}):t?it("img",{src:t,alt:l,width:o,height:o,className:a,style:c}):n?it(Ce,{name:n,width:o,height:o,className:a,style:c}):null}function EI({item:e,depth:t,iconSize:n=24,classNames:o,styles:l}){let[a,c]=QN(!1),i={...e,classNames:{...o,...e.classNames},styles:{...l,...e.styles}},d=Array.isArray(i?.items)&&i.items.length>0,s=i?.iconSize??n,p=t>0?{paddingLeft:12+t*28}:{},g=Ni(t6,{children:[Ni("div",{className:Zt("cleen-flex cleen-items-center cleen-gap-3 cleen-min-w-0",i?.classNames?.containerInner),style:i?.styles?.containerInner,children:[it(JN,{icon:i?.icon,iconSrc:i?.iconSrc,iconName:i?.iconName,iconSize:s,title:i?.name,className:Zt("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}),it("span",{className:Zt("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)&&it(xe,{color:i?.badgeColor,label:String(i?.badgeCount),...i?.classNames?.badge,...i?.styles?.badge})]});return d?Ni("details",{className:i?.classNames?.container,style:i?.styles?.container,children:[Ni("summary",{className:Zt("cleen-group/row [&::-webkit-details-marker]:cleen-hidden cleen-flex cleen-justify-between cleen-items-center cleen-gap-3 hover:cleen-bg-muted cleen-py-2 cleen-pr-3 cleen-rounded-md cleen-w-full cleen-transition-colors cleen-duration-200 cleen-cursor-pointer cleen-list-none",t===0?"cleen-px-3":void 0,i?.classNames?.parentItemContainer),style:{...p,...i?.styles?.parentItemContainer},onClick:()=>c(m=>!m),children:[g,it(Ce,{name:"ChevronDown",className:Zt("cleen-w-5 cleen-h-5 cleen-text-neutral-700 group-hover/row:cleen-text-foreground cleen-transition-all cleen-shrink-0",{"cleen-rotate-180":a},i?.classNames?.chevron),style:i?.styles?.chevron})]}),it("div",{className:Zt("cleen-flex cleen-flex-col cleen-gap-1 cleen-mt-1",i?.classNames?.childItemsContainer),style:i?.styles?.childItemsContainer,children:i.items.map(m=>it(EI,{item:m,depth:t+1,iconSize:n,classNames:o,styles:l},m?.id??m?.name))})]}):it("div",{className:Zt("cleen-group/row cleen-flex cleen-justify-between cleen-items-center cleen-gap-3 hover:cleen-bg-primary/5 cleen-py-2 cleen-pr-3 cleen-rounded-md cleen-w-full cleen-transition-colors cleen-duration-200 cleen-cursor-pointer",t===0?"cleen-px-3 hover:cleen-bg-muted":void 0,i?.isActive&&t===0&&"cleen-bg-muted",i?.disabled&&"cleen-opacity-50 cleen-pointer-events-none",i?.classNames?.container),style:{...p,...i?.styles?.container},onClick:()=>i?.onClick?.(i),children:g})}var jN=ZN(function({title:t,icon:n,iconName:o,iconSrc:l,iconSize:a=24,badgeColor:c="gray",badgeCount:i,items:d,onClick:s,isActive:p=!1,disabled:g,className:m,classNames:y,style:v,styles:h},b){let C={id:"root",name:t,icon:n,iconName:o,iconSrc:l,iconSize:a,badgeColor:c,badgeCount:i,isActive:p,disabled:g,onClick:s?()=>s():void 0,classNames:y,styles:h,items:d};return it("div",{className:Zt("cleen",m),style:v,ref:b,children:it(EI,{item:C,depth:0,iconSize:a,classNames:y,styles:h})})}),e6=jN;import{cn as Qt}from"@cleen/ui-core";import{useEffect as a6,useRef as l6,useState as c6}from"react";import{cn as al}from"@cleen/ui-core";import{useMemo as o6}from"react";import{Link as n6}from"react-router-dom";import{jsx as ll,jsxs as r6}from"react/jsx-runtime";function cl({item:e,activeId:t,onClick:n,countBadge:o,classNames:l,styles:a,renderIcon:c}){let i=t===e?.id,d=o6(()=>e?c?c(e,i):e.icon?e.icon:e.iconSrc?ll("img",{src:e.iconSrc,alt:e?.name||e?.label,className:al("cleen-w-6 cleen-h-6 cleen-transition-all cleen-duration-200 group-hover:cleen-text-primary",l?.icon,i&&"cleen-text-primary"),style:a?.icon}):e.iconName?ll(Ce,{name:e.iconName,className:al("cleen-w-6 cleen-h-6 cleen-text-neutral-700 [&_path]:cleen-stroke-[1.5] [&_path]:[vector-effect:non-scaling-stroke] cleen-transition-all cleen-duration-200 group-hover:cleen-text-primary",l?.icon,i&&"cleen-text-primary"),style:a?.icon}):null:null,[e,i,c,l?.icon,a?.icon]),s=r6("div",{"data-testid":`nav-item-${e?.id}`,className:al("cleen-group cleen-relative cleen-p-2 cleen-cursor-pointer cleen-rounded-md cleen-w-12 cleen-h-12 cleen-flex cleen-justify-center cleen-items-center cleen-select-none cleen-transition-colors cleen-duration-200 hover:cleen-bg-primary/10",l?.container,i&&"cleen-bg-primary/10"),style:a?.container,onClick:()=>{e?.path||n?.(e)},children:[d,o&&ll("div",{className:al("cleen-absolute -cleen-top-1 -cleen-right-1 cleen-flex cleen-items-center cleen-justify-center cleen-w-4 cleen-h-4 cleen-bg-surface cleen-rounded-md cleen-border cleen-border-border cleen-font-normal cleen-text-[8px] cleen-text-foreground",l?.badge),style:a?.badge,children:o})]});return ll(ye,{hasArrow:!0,placement:"right",color:"rgba(var(--cleen-foreground))",className:l?.tooltip?.className,classNames:{...l?.tooltip,labelContainer:al("cleen-min-w-max",l?.tooltip?.classNames?.labelContainer)},...a?.tooltip,label:e?.label,children:e?.path?ll(n6,{to:e.path,children:s}):s})}import{jsx as Jt,jsxs as ln}from"react/jsx-runtime";function DI({navigationItems:e,bottomNavigationItems:t=[],drawerContent:n={},logo:o,onLogoClick:l,userAvatar:a,userInfo:c,drawerFooter:i,drawerWidth:d=330,direction:s="right",defaultActiveId:p=null,activeId:g,onActiveChange:m,closeOnOutsideClick:y=!0,closeOnBlur:v=!0,className:h,classNames:b,style:C,styles:x,renderSidebarItem:I}){let[P,B]=c6(p),E=l6(null),T=g!==void 0?g:P,M=!!T,L=S=>{let N=T===S.id?null:S.id;g===void 0&&B(N),m?.(N)};a6(()=>{if(!y||!M)return;let S=N=>{E.current&&!E.current.contains(N.target)&&(g===void 0&&B(null),m?.(null))};return document.addEventListener("mousedown",S),()=>{document.removeEventListener("mousedown",S)}},[y,M,g,m]);let w=S=>{!v||!M||E.current&&!E.current.contains(S.relatedTarget)&&(g===void 0&&B(null),m?.(null))};return ln("div",{className:Qt("cleen",h),style:{height:"100%",display:"flex",backgroundColor:"rgb(var(--cleen-sidebar))",flexDirection:s==="left"?"row-reverse":"row",...C},ref:E,onBlur:w,tabIndex:v?0:void 0,children:[ln("div",{className:Qt("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",b?.navigation),style:x?.navigation,children:[o&&Jt("div",{className:Qt("cleen-flex cleen-justify-center cleen-items-center cleen-pt-8 cleen-pb-6 cleen-w-full cleen-cursor-pointer",b?.logo),style:x?.logo,onClick:l,children:o}),ln("div",{className:Qt("cleen-flex cleen-flex-col cleen-flex-1 cleen-justify-between cleen-gap-2 cleen-px-4 cleen-overflow-y-auto cleen-no-scrollbar",b?.navigationItems),style:x?.navigationItems,children:[Jt("nav",{className:Qt("cleen-flex cleen-flex-col cleen-gap-2",b?.upperNavigationItemsWrapper),style:x?.upperNavigationItemsWrapper,children:e.map(S=>ln("div",{children:[I?I(S,T===S.id,L):Jt(cl,{item:S,activeId:T,onClick:L,countBadge:S.badgeCount,classNames:{...b?.navigationItem,...S?.classNames},styles:{...x?.navigationItem,...S?.styles}}),S?.withBottomDivider&&Jt("div",{className:"cleen-bg-neutral-200 cleen-mt-2 cleen-w-12 cleen-h-[1px]"})]},S.id))}),ln("div",{className:Qt("cleen-flex cleen-flex-col cleen-items-center cleen-gap-2",b?.bottomNavigationItemsWrapper),style:x?.bottomNavigationItemsWrapper,children:[t.map(S=>ln("div",{children:[I?I(S,T===S.id,L):Jt(cl,{item:S,activeId:T,onClick:L,countBadge:S.badgeCount,classNames:{...b?.navigationItem,...S?.classNames},styles:{...x?.navigationItem,...S?.styles}}),S?.withBottomDivider&&Jt("div",{className:"cleen-bg-neutral-200 cleen-mt-2 cleen-w-12 cleen-h-[1px]"})]},S.id)),a&&Jt("div",{className:"cleen-mt-6 cleen-mb-8",children:a})]})]})]}),ln("div",{className:Qt("cleen-flex cleen-flex-col cleen-bg-sidebar cleen-h-full cleen-overflow-hidden cleen-transition-all cleen-duration-100",{"cleen-border-r cleen-border-r-border":M&&s==="right","cleen-border-l cleen-border-l-border":M&&s==="left"},b?.drawer),style:{...x?.drawer,width:M?`${d}px`:"0px",visibility:M?"visible":"hidden"},children:[T&&n[T]&&Jt("div",{className:Qt("cleen-flex-1 cleen-overflow-auto",b?.drawerContent),style:x?.drawerContent,children:n[T]}),T&&(i||c)&&Jt("div",{className:Qt("cleen-mt-auto cleen-flex cleen-justify-between cleen-items-start cleen-gap-4 cleen-px-5 cleen-pt-4 cleen-pb-8 cleen-border-border cleen-border-t cleen-w-full",b?.drawerFooter),style:x?.drawerFooter,children:typeof i=="function"?i(T):i||c})]})]})}var te=e=>e==="pulse"?"cleen-animate-pulse":"";import{cn as FI}from"@cleen/ui-core";import{forwardRef as i6}from"react";import{jsx as AI}from"react/jsx-runtime";var s6={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"},p6=i6(function({width:t,height:n,roundness:o="md",variant:l="default",className:a,style:c},i){let d=te(l),s={...t!==void 0?{width:typeof t=="number"?`${t}px`:t}:{},...n!==void 0?{height:typeof n=="number"?`${n}px`:n}:{},...c};return AI("div",{ref:i,className:FI("cleen",a),children:AI("div",{className:FI("cleen-bg-muted",s6[o],t===void 0&&"cleen-w-full",n===void 0&&"cleen-h-4",d),style:s})})});import{cn as j0}from"@cleen/ui-core";import{forwardRef as d6}from"react";import{jsx as Ti,jsxs as m6}from"react/jsx-runtime";var e1=d6(function({className:t,style:n,variant:o="default",itemCount:l=1},a){let c=te(o);return Ti("div",{ref:a,className:j0("cleen",t),style:n,children:Ti("div",{className:"cleen-flex cleen-items-start cleen-gap-4 cleen-flex-wrap",children:Array.from({length:l}).map((i,d)=>m6("div",{className:"cleen-flex cleen-flex-col cleen-items-center cleen-gap-2",children:[Ti("div",{className:j0("cleen-bg-muted cleen-rounded-full cleen-size-12 cleen-border cleen-border-border",c)}),Ti("div",{className:j0("cleen-bg-muted cleen-rounded cleen-w-14 cleen-h-3",c)})]},d))})})});import{cn as OI}from"@cleen/ui-core";import{forwardRef as u6}from"react";import{jsx as t1}from"react/jsx-runtime";var o1=u6(function({className:t,style:n,variant:o="default",itemCount:l=1},a){let c=te(o);return t1("div",{ref:a,className:OI("cleen",t),style:n,children:t1("div",{className:"cleen-flex cleen-items-center cleen-flex-wrap cleen-gap-2",children:Array.from({length:l}).map((i,d)=>t1("div",{className:OI("cleen-bg-muted cleen-rounded-full cleen-h-6 cleen-w-16",c)},d))})})});import{cn as _I}from"@cleen/ui-core";import{forwardRef as f6}from"react";import{jsx as cn,jsxs as Ri}from"react/jsx-runtime";var n1=f6(function({className:t,style:n,variant:o="default"},l){let a=te(o);return cn("div",{ref:l,className:_I("cleen",t),style:n,children:Ri("div",{className:_I("cleen-relative cleen-bg-muted cleen-rounded-2xl cleen-w-full cleen-overflow-hidden",a),children:[cn("div",{className:"cleen-h-48 cleen-w-full"}),Ri("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:[cn("div",{className:"cleen-bg-neutral-200 cleen-rounded-full cleen-w-24 cleen-h-6"}),Ri("div",{className:"cleen-flex cleen-flex-col cleen-gap-2 cleen-w-full",children:[cn("div",{className:"cleen-bg-neutral-200 cleen-rounded cleen-w-2/3 cleen-h-8"}),cn("div",{className:"cleen-bg-neutral-200 cleen-rounded cleen-w-1/2 cleen-h-5"})]}),Ri("div",{className:"cleen-flex cleen-gap-3",children:[cn("div",{className:"cleen-bg-neutral-200 cleen-rounded-lg cleen-w-28 cleen-h-10"}),cn("div",{className:"cleen-bg-neutral-200 cleen-rounded-lg cleen-w-24 cleen-h-10"})]})]})]})})});import{cn as zI}from"@cleen/ui-core";import{forwardRef as h6}from"react";import{jsx as r1}from"react/jsx-runtime";var a1=h6(function({className:t,style:n,variant:o="default",itemCount:l=1},a){let c=te(o);return r1("div",{ref:a,className:zI("cleen",t),style:n,children:r1("div",{className:"cleen-flex cleen-items-center cleen-gap-2",children:Array.from({length:l}).map((i,d)=>r1("div",{className:zI("cleen-bg-muted cleen-rounded-lg cleen-h-10 cleen-w-28",c)},d))})})});import{cn as Li}from"@cleen/ui-core";import{forwardRef as g6}from"react";import{jsx as Ei,jsxs as VI}from"react/jsx-runtime";var il=g6(function({className:t,style:n,variant:o="default"},l){let a=te(o);return Ei("div",{ref:l,className:Li("cleen",t),style:n,children:VI("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:[Ei("div",{className:Li("cleen-flex cleen-justify-center cleen-items-center cleen-bg-muted cleen-border cleen-border-border cleen-rounded-xl cleen-min-w-10 cleen-size-10",a)}),VI("div",{className:"cleen-flex cleen-flex-col cleen-flex-1 cleen-gap-2",children:[Ei("div",{className:Li("cleen-bg-muted cleen-rounded cleen-w-3/4 cleen-h-4",a)}),Ei("div",{className:Li("cleen-bg-muted cleen-rounded cleen-w-1/2 cleen-h-3",a)})]})]})})});import{cn as ir}from"@cleen/ui-core";import{forwardRef as v6}from"react";import{jsx as sr,jsxs as Di}from"react/jsx-runtime";var Fi=v6(({className:e,style:t,variant:n="default"},o)=>{let l=te(n);return sr("div",{ref:o,className:ir("cleen",e),style:t,children:Di("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:[Di("div",{className:"cleen-flex cleen-items-center cleen-gap-3 cleen-w-full",children:[sr("div",{className:ir("cleen-flex cleen-justify-center cleen-items-center cleen-bg-muted cleen-border cleen-border-border cleen-rounded-xl cleen-size-10",l)}),Di("div",{className:"cleen-flex cleen-flex-col cleen-flex-1 cleen-gap-2",children:[sr("div",{className:ir("cleen-bg-muted cleen-rounded cleen-w-1/2 cleen-h-5",l)}),sr("div",{className:ir("cleen-bg-muted cleen-rounded cleen-w-3/4 cleen-h-4",l)})]})]}),Di("div",{className:"cleen-space-y-2 cleen-w-full",children:[sr("div",{className:ir("cleen-bg-muted cleen-rounded cleen-w-full cleen-h-2",l)}),sr("div",{className:ir("cleen-bg-muted cleen-rounded cleen-w-16 cleen-h-3",l)})]})]})})});Fi.displayName="AssessmentHeaderSkeleton";import{cn as kt}from"@cleen/ui-core";import{forwardRef as b6}from"react";import{jsx as Bt,jsxs as pr}from"react/jsx-runtime";var l1=b6(function({className:t,style:n,variant:o="default"},l){let a=te(o);return Bt("div",{ref:l,className:kt("cleen",t),style:n,children:pr("div",{className:"cleen-flex cleen-flex-col cleen-bg-surface cleen-border cleen-border-border cleen-rounded-xl cleen-overflow-hidden cleen-w-full",children:[Bt("div",{className:kt("cleen-bg-muted cleen-w-full cleen-h-40",a)}),pr("div",{className:"cleen-flex cleen-flex-col cleen-gap-3 cleen-px-4 cleen-py-4",children:[pr("div",{className:"cleen-flex cleen-gap-2",children:[Bt("div",{className:kt("cleen-bg-muted cleen-rounded-full cleen-w-16 cleen-h-5",a)}),Bt("div",{className:kt("cleen-bg-muted cleen-rounded-full cleen-w-12 cleen-h-5",a)})]}),pr("div",{className:"cleen-flex cleen-flex-col cleen-gap-2",children:[Bt("div",{className:kt("cleen-bg-muted cleen-rounded cleen-w-4/5 cleen-h-5",a)}),Bt("div",{className:kt("cleen-bg-muted cleen-rounded cleen-w-full cleen-h-3",a)}),Bt("div",{className:kt("cleen-bg-muted cleen-rounded cleen-w-3/4 cleen-h-3",a)})]}),pr("div",{className:"cleen-flex cleen-justify-between cleen-items-center cleen-pt-1",children:[pr("div",{className:"cleen-flex cleen-items-center cleen-gap-2",children:[Bt("div",{className:kt("cleen-bg-muted cleen-rounded-full cleen-size-7 cleen-shrink-0",a)}),Bt("div",{className:kt("cleen-bg-muted cleen-rounded cleen-w-24 cleen-h-3",a)})]}),Bt("div",{className:kt("cleen-bg-muted cleen-rounded-lg cleen-w-16 cleen-h-7",a)})]})]})]})})});import{forwardRef as y6}from"react";import{cn as I6}from"@cleen/ui-core";import{jsx as c1}from"react/jsx-runtime";var i1=y6(function({className:t,style:n,itemCount:o=3,variant:l="default"},a){return c1("div",{ref:a,className:I6("cleen",t),style:n,children:c1("div",{className:"cleen-flex cleen-flex-col cleen-gap-3",children:Array.from({length:o}).map((c,i)=>c1(il,{variant:l},i))})})});import{cn as sn}from"@cleen/ui-core";import{forwardRef as C6}from"react";import{jsx as st,jsxs as sl}from"react/jsx-runtime";var HI=["cleen-h-16","cleen-h-24","cleen-h-14","cleen-h-28","cleen-h-20","cleen-h-10","cleen-h-24"],s1=C6(function({className:t,style:n,variant:o="default"},l){let a=te(o);return st("div",{ref:l,className:sn("cleen",t),style:n,children:sl("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:[sl("div",{className:"cleen-flex cleen-justify-between cleen-items-center",children:[st("div",{className:sn("cleen-bg-muted cleen-rounded cleen-w-32 cleen-h-5",a)}),st("div",{className:"cleen-flex cleen-items-center cleen-gap-3",children:[28,20].map((c,i)=>sl("div",{className:"cleen-flex cleen-items-center cleen-gap-1.5",children:[st("div",{className:sn("cleen-bg-muted cleen-rounded-full cleen-size-2.5",a)}),st("div",{className:sn("cleen-bg-muted cleen-rounded cleen-h-3",a),style:{width:c}})]},i))})]}),sl("div",{className:"cleen-flex cleen-gap-3",children:[st("div",{className:"cleen-flex cleen-flex-col cleen-justify-between cleen-items-end cleen-py-1",style:{height:120},children:[0,1,2,3].map(c=>st("div",{className:sn("cleen-bg-muted cleen-rounded cleen-w-6 cleen-h-2",a)},c))}),sl("div",{className:"cleen-flex cleen-flex-col cleen-flex-1 cleen-gap-1",children:[st("div",{className:"cleen-flex cleen-items-end cleen-justify-around cleen-gap-2",style:{height:112},children:HI.map((c,i)=>st("div",{className:sn("cleen-bg-muted cleen-rounded-t cleen-flex-1",c,a)},i))}),st("div",{className:"cleen-w-full cleen-h-px cleen-bg-muted"}),st("div",{className:"cleen-flex cleen-justify-around cleen-gap-2 cleen-pt-1",children:HI.map((c,i)=>st("div",{className:sn("cleen-bg-muted cleen-rounded cleen-flex-1 cleen-h-2",a)},i))})]})]})]})})});import{cn as pn}from"@cleen/ui-core";import{forwardRef as x6}from"react";import{jsx as jt,jsxs as Ai}from"react/jsx-runtime";var p1=x6(({variant:e="default",itemCount:t=3,className:n,style:o},l)=>{let a=te(e);return jt("div",{ref:l,className:pn("cleen",n),style:o,children:jt(fe,{className:"cleen-max-h-fit",children:Ai("div",{className:"cleen-flex cleen-flex-col cleen-gap-4",children:[Ai("div",{className:"cleen-flex cleen-flex-col cleen-gap-2",children:[jt("div",{className:pn("cleen-bg-muted cleen-rounded cleen-w-3/4 cleen-h-6",a)}),jt("div",{className:pn("cleen-bg-muted cleen-rounded cleen-w-full cleen-h-4",a)})]}),jt("div",{className:"cleen-space-y-6",children:Array.from({length:t}).map((c,i)=>Ai("div",{className:"cleen-space-y-3",children:[jt("div",{className:pn("cleen-bg-muted cleen-rounded cleen-w-2/3 cleen-h-4",a)}),jt("div",{className:pn("cleen-bg-muted cleen-rounded cleen-w-full cleen-h-10",a)})]},i))}),Ai("div",{className:"cleen-flex cleen-justify-between cleen-items-center cleen-pt-4",children:[jt("div",{className:pn("cleen-bg-muted cleen-rounded cleen-w-24 cleen-h-10",a)}),jt("div",{className:pn("cleen-bg-muted cleen-rounded cleen-w-24 cleen-h-10",a)})]})]})})})});import{cn as Oi}from"@cleen/ui-core";import{forwardRef as P6}from"react";import{jsx as pl,jsxs as S6}from"react/jsx-runtime";var d1=P6(function({className:t,style:n,variant:o="default",itemCount:l=5},a){let c=te(o),i=["cleen-w-1/12","cleen-w-3/12","cleen-w-2/12","cleen-w-3/12","cleen-w-2/12","cleen-w-1/12"];return pl("div",{ref:a,className:Oi("cleen",t),style:n,children:S6("div",{className:"cleen-flex cleen-flex-col cleen-w-full cleen-border cleen-border-border cleen-rounded-xl cleen-overflow-hidden",children:[pl("div",{className:"cleen-flex cleen-items-center cleen-gap-3 cleen-px-4 cleen-py-3 cleen-bg-muted cleen-border-b cleen-border-border",children:i.map((d,s)=>pl("div",{className:Oi("cleen-bg-muted cleen-rounded cleen-h-4 cleen-flex-shrink-0",d,c)},s))}),Array.from({length:l}).map((d,s)=>pl("div",{className:Oi("cleen-flex cleen-items-center cleen-gap-3 cleen-px-4 cleen-py-3",s<l-1?"cleen-border-b cleen-border-border":""),children:i.map((p,g)=>pl("div",{className:Oi("cleen-bg-muted cleen-rounded cleen-h-4 cleen-flex-shrink-0",g===i.length-1?"cleen-rounded-full":"cleen-rounded",p,c)},g))},s))]})})});import{cn as _i}from"@cleen/ui-core";import{forwardRef as w6}from"react";import{jsx as dl,jsxs as UI}from"react/jsx-runtime";var m1=w6(function({className:t,style:n,variant:o="default",itemCount:l=4},a){let c=te(o);return dl("div",{ref:a,className:_i("cleen",t),style:n,children:UI("div",{className:"cleen-flex cleen-flex-col cleen-gap-5 cleen-w-full cleen-bg-surface cleen-border cleen-border-border cleen-rounded-xl cleen-px-6 cleen-py-6",children:[Array.from({length:l}).map((i,d)=>UI("div",{className:"cleen-flex cleen-flex-col cleen-gap-2",children:[dl("div",{className:_i("cleen-bg-muted cleen-rounded cleen-w-1/4 cleen-h-3",c)}),dl("div",{className:_i("cleen-bg-muted cleen-rounded-lg cleen-w-full cleen-h-10",c)})]},d)),dl("div",{className:"cleen-flex cleen-justify-end cleen-pt-1",children:dl("div",{className:_i("cleen-bg-muted cleen-rounded-lg cleen-w-28 cleen-h-10",c)})})]})})});import{cn as GI}from"@cleen/ui-core";import{forwardRef as M6}from"react";import{jsx as u1}from"react/jsx-runtime";var k6=["rgb(var(--cleen-blue))","rgb(var(--cleen-aqua))","rgb(var(--cleen-green-light-300))","rgb(var(--cleen-aqua))","rgb(var(--cleen-blue))"],f1=M6(function({className:t,style:n,variant:o="default",colors:l=k6},a){let c=te(o);return u1("div",{ref:a,className:GI("cleen",t),style:n,children:u1("div",{className:GI("cleen-p-1 cleen-size-full cleen-rounded-lg cleen-animate-[cleen-rotate-gradient-angle_2.5s_linear_infinite]",c),style:{background:`conic-gradient(from var(--cleen--gradient-angle),${l.join(",")})`},children:u1("div",{className:"cleen-bg-background cleen-size-full cleen-rounded-md"})})})});import{cn as zi}from"@cleen/ui-core";import{forwardRef as B6}from"react";import{jsx as dr,jsxs as $I}from"react/jsx-runtime";var h1=B6(function({className:t,style:n,variant:o="default"},l){let a=te(o);return dr("div",{ref:l,className:zi("cleen",t),style:n,children:$I("div",{className:"cleen-flex cleen-flex-col cleen-gap-2 cleen-w-full",children:[dr("div",{className:zi("cleen-relative cleen-bg-muted cleen-rounded-xl cleen-w-full cleen-aspect-video cleen-overflow-hidden",a),children:dr("div",{className:"cleen-absolute cleen-inset-0 cleen-flex cleen-items-center cleen-justify-center",children:$I("div",{className:zi("cleen-flex cleen-flex-col cleen-items-center cleen-gap-1 cleen-opacity-30"),children:[dr("div",{className:"cleen-bg-neutral-200 cleen-rounded-full cleen-size-8"}),dr("div",{className:"cleen-bg-neutral-200 cleen-rounded cleen-w-16 cleen-h-2"})]})})}),dr("div",{className:zi("cleen-bg-muted cleen-rounded cleen-w-1/2 cleen-h-3 cleen-mx-auto",a)})]})})});import{cn as je}from"@cleen/ui-core";import{forwardRef as N6}from"react";import{jsx as Ze,jsxs as eo}from"react/jsx-runtime";var g1=N6(function({className:t,style:n,variant:o="default"},l){let a=te(o);return Ze("div",{ref:l,className:je("cleen",t),style:n,children:eo("div",{className:je("cleen-flex cleen-flex-col cleen-items-start cleen-gap-4 cleen-bg-surface cleen-px-4 cleen-py-4 cleen-border cleen-border-border cleen-rounded-xl cleen-h-fit",t),style:n,children:[eo("div",{className:"cleen-flex cleen-items-center cleen-gap-2",children:[Ze("div",{className:je("cleen-flex cleen-justify-center cleen-items-center cleen-bg-muted cleen-p-2 cleen-rounded-full cleen-size-8",a)}),Ze("div",{className:je("cleen-bg-muted cleen-rounded cleen-w-24 cleen-h-3",a)})]}),eo("div",{className:"cleen-space-y-3 cleen-w-full",children:[eo("div",{children:[Ze("div",{className:je("cleen-bg-muted cleen-mb-1 cleen-rounded cleen-w-20 cleen-h-3",a)}),Ze(fe,{isGlass:!0,classNames:{container:"!cleen-py-3",childrenContainer:"!cleen-px-3"},children:eo("div",{className:"cleen-space-y-2",children:[Ze("div",{className:je("cleen-bg-muted cleen-rounded cleen-w-full cleen-h-3",a)}),Ze("div",{className:je("cleen-bg-muted cleen-rounded cleen-w-5/6 cleen-h-3",a)})]})})]}),eo("div",{children:[Ze("div",{className:je("cleen-bg-muted cleen-mb-1 cleen-rounded cleen-w-20 cleen-h-3",a)}),eo("div",{className:"cleen-space-y-2",children:[Ze("div",{className:je("cleen-bg-muted cleen-rounded cleen-w-3/4 cleen-h-3",a)}),Ze("div",{className:je("cleen-bg-muted cleen-rounded cleen-w-2/3 cleen-h-3",a)})]})]}),eo("div",{children:[Ze("div",{className:je("cleen-bg-muted cleen-mb-1 cleen-rounded cleen-w-20 cleen-h-3",a)}),Ze(fe,{isGlass:!0,classNames:{container:"!cleen-py-3",childrenContainer:"!cleen-px-3"},children:eo("div",{className:"cleen-space-y-2",children:[Ze("div",{className:je("cleen-bg-muted cleen-rounded cleen-w-full cleen-h-3",a)}),Ze("div",{className:je("cleen-bg-muted cleen-rounded cleen-w-4/5 cleen-h-3",a)})]})})]})]})]})})});import{cn as v1}from"@cleen/ui-core";import{forwardRef as T6}from"react";import{jsx as b1,jsxs as R6}from"react/jsx-runtime";var y1=T6(function({className:t,style:n,variant:o="default"},l){let a=te(o);return b1("div",{ref:l,className:v1("cleen",t),style:n,children:R6("div",{className:"cleen-flex cleen-flex-col cleen-gap-2 cleen-w-full",children:[b1("div",{className:v1("cleen-bg-muted cleen-rounded cleen-w-1/4 cleen-h-3",a)}),b1("div",{className:v1("cleen-bg-muted cleen-rounded-lg cleen-w-full cleen-h-10 cleen-border cleen-border-border",a)})]})})});import{cn as ml}from"@cleen/ui-core";import{forwardRef as L6}from"react";import{jsx as mr,jsxs as WI}from"react/jsx-runtime";var I1=L6(function({className:t,style:n,variant:o="default",itemCount:l=5},a){let c=te(o),i=["cleen-w-3/4","cleen-w-2/3","cleen-w-4/5","cleen-w-1/2","cleen-w-3/5"];return mr("div",{ref:a,className:ml("cleen",t),style:n,children:mr("div",{className:"cleen-flex cleen-flex-col cleen-divide-y cleen-divide-border",children:Array.from({length:l}).map((d,s)=>WI("div",{className:"cleen-flex cleen-items-center cleen-gap-3 cleen-py-3",children:[mr("div",{className:ml("cleen-bg-muted cleen-rounded-full cleen-size-8 cleen-shrink-0 cleen-border cleen-border-border",c)}),WI("div",{className:"cleen-flex cleen-flex-col cleen-flex-1 cleen-gap-1.5",children:[mr("div",{className:ml("cleen-bg-muted cleen-rounded cleen-h-4",i[s%i.length],c)}),mr("div",{className:ml("cleen-bg-muted cleen-rounded cleen-h-3 cleen-w-2/5",c)})]}),mr("div",{className:ml("cleen-bg-muted cleen-rounded-full cleen-w-14 cleen-h-5 cleen-shrink-0",c)})]},s))})})});import{cn as qI}from"@cleen/ui-core";import{forwardRef as E6}from"react";import{jsx as x1}from"react/jsx-runtime";var C1=["cleen-w-full","cleen-w-full","cleen-w-11/12","cleen-w-full","cleen-w-4/5"],P1=E6(function({className:t,style:n,variant:o="default",itemCount:l},a){let c=te(o),i=l??C1.length;return x1("div",{ref:a,className:qI("cleen",t),style:n,children:x1("div",{className:"cleen-flex cleen-flex-col cleen-gap-2 cleen-w-full",children:Array.from({length:i}).map((d,s)=>{let p=s<C1.length?C1[s]:s===i-1?"cleen-w-3/5":"cleen-w-full";return x1("div",{className:qI("cleen-bg-muted cleen-rounded cleen-h-3",p,c)},s)})})})});import{cn as XI}from"@cleen/ui-core";import{forwardRef as D6}from"react";import{jsx as KI}from"react/jsx-runtime";var S1=D6(function({className:t,style:n,variant:o="default"},l){let a=te(o);return KI("div",{ref:l,className:XI("cleen",t),style:n,children:KI("div",{className:XI("cleen-bg-muted cleen-rounded cleen-w-3/4 cleen-h-4",a)})})});import{cn as dn}from"@cleen/ui-core";import{forwardRef as F6}from"react";import{jsx as Nt,jsxs as Vi}from"react/jsx-runtime";var w1=F6(function({className:t,style:n,variant:o="default"},l){let a=te(o);return Nt("div",{ref:l,className:dn("cleen",t),style:n,children:Vi("div",{className:"cleen-flex cleen-flex-col cleen-gap-3 cleen-w-full",children:[Nt("div",{className:dn("cleen-relative cleen-bg-muted cleen-rounded-xl cleen-w-full cleen-aspect-video cleen-overflow-hidden",a),children:Nt("div",{className:"cleen-absolute cleen-inset-0 cleen-flex cleen-items-center cleen-justify-center",children:Nt("div",{className:"cleen-bg-neutral-200 cleen-rounded-full cleen-size-14 cleen-flex cleen-items-center cleen-justify-center",children:Nt("div",{className:"cleen-w-0 cleen-h-0 cleen-ml-1 cleen-border-y-[8px] cleen-border-y-transparent cleen-border-l-[14px] cleen-border-l-neutral-400"})})})}),Vi("div",{className:"cleen-flex cleen-gap-3",children:[Nt("div",{className:dn("cleen-bg-muted cleen-rounded-lg cleen-size-10 cleen-shrink-0",a)}),Vi("div",{className:"cleen-flex cleen-flex-col cleen-flex-1 cleen-gap-2",children:[Nt("div",{className:dn("cleen-bg-muted cleen-rounded cleen-w-full cleen-h-4",a)}),Nt("div",{className:dn("cleen-bg-muted cleen-rounded cleen-w-3/4 cleen-h-3",a)}),Vi("div",{className:"cleen-flex cleen-items-center cleen-gap-3",children:[Nt("div",{className:dn("cleen-bg-muted cleen-rounded cleen-w-14 cleen-h-3",a)}),Nt("div",{className:dn("cleen-bg-muted cleen-rounded cleen-w-10 cleen-h-3",a)})]})]})]})]})})});import{cn as ul}from"@cleen/ui-core";import{forwardRef as A6}from"react";import{jsx as fl,jsxs as M1}from"react/jsx-runtime";var Hi=A6(function({variant:t="default",className:n,style:o},l){let a=te(t);return fl("div",{ref:l,className:ul("cleen",n),style:o,children:M1("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:[M1("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:[fl("div",{className:ul("cleen-bg-muted cleen-rounded-full cleen-size-1.5",a)}),fl("div",{className:ul("cleen-bg-muted cleen-rounded cleen-w-20 cleen-h-3",a)})]}),M1("div",{className:"cleen-flex cleen-justify-between cleen-items-center cleen-w-full",children:[fl("div",{className:ul("cleen-bg-muted cleen-rounded cleen-w-24 cleen-h-8",a)}),fl("div",{className:ul("cleen-bg-muted cleen-rounded cleen-w-12 cleen-h-4",a)})]})]})})});Hi.displayName="SkeletonBadgeCard";import{forwardRef as O6}from"react";import{jsx as Ie}from"react/jsx-runtime";var _6=O6(function({className:t,style:n,variant:o="default",itemCount:l=3,colors:a,skeleton:c="card",isShowing:i=!1,children:d},s){if(!i)return d;let p={ref:s,variant:o,itemCount:l,colors:a,className:t,style:n};switch(c){case"card2":return Ie(Fi,{...p});case"card3":return Ie(l1,{...p});case"cardStack":return Ie(i1,{...p});case"contentCard":return Ie(p1,{...p});case"infoCard":return Ie(g1,{...p});case"widgetCard":return Ie(Hi,{...p});case"image":return Ie(h1,{...p});case"video":return Ie(w1,{...p});case"avatar":return Ie(e1,{...p});case"dataGrid":return Ie(d1,{...p});case"text":return Ie(S1,{...p});case"paragraph":return Ie(P1,{...p});case"list":return Ie(I1,{...p});case"form":return Ie(m1,{...p});case"banner":return Ie(n1,{...p});case"chart":return Ie(s1,{...p});case"button":return Ie(a1,{...p});case"badge":return Ie(o1,{...p});case"input":return Ie(y1,{...p});case"glowingCard":return Ie(f1,{...p});default:return Ie(il,{...p})}});import{cn as Mo}from"@cleen/ui-core";import{forwardRef as z6,useCallback as k1,useEffect as V6,useRef as YI,useState as ZI}from"react";import{jsx as ko,jsxs as Ui}from"react/jsx-runtime";var mn=z6(function({id:t,required:n,minValue:o=0,maxValue:l=100,step:a=1,defaultValue:c=0,value:i,variant:d="default",onChange:s,onChangeEnd:p,className:g,classNames:m,style:y,styles:v,disabled:h=!1,label:b,labelTooltip:C,labels:x,tooltip:I,infoLabels:P},B){let[E,T]=ZI(c??o),M=i!==void 0?i:E,L=YI(null),[w,S]=ZI(!1),N=YI(!1),F=(M-o)/(l-o)*100,R=Math.min(100,Math.max(0,F)),k=k1(q=>{let H=Math.round((q-o)/a)*a+o;return Math.min(l,Math.max(o,H))},[o,l,a]),z=k1((q,H)=>{let $=k(q);i===void 0&&T($),s?.($),H&&p?.($)},[k,i,s,p]),D=k1(q=>{let H=L.current;if(!H)return o;let $=H.getBoundingClientRect(),Q=(q-$.left)/$.width;return k(o+Q*(l-o))},[o,l,k]),A=q=>{if(h)return;let H;switch(q.key){case"ArrowRight":case"ArrowUp":H=M+a;break;case"ArrowLeft":case"ArrowDown":H=M-a;break;case"Home":H=o;break;case"End":H=l;break;default:return}q.preventDefault(),z(H,!0)},O=q=>{h||(q.preventDefault(),S(!0))},V=q=>{if(h||N.current){N.current=!1;return}z(D(q.clientX),!0)},U=q=>{h||(q.preventDefault(),S(!0))};V6(()=>{if(!w)return;let q=_=>{z(D(_.clientX))},H=_=>{S(!1),N.current=!0,p?.(k(D(_.clientX)))},$=_=>{_.touches.length>0&&z(D(_.touches[0].clientX))},Q=_=>{S(!1),N.current=!0,p?.(k(D(_.changedTouches[0].clientX)))};return document.addEventListener("mousemove",q),document.addEventListener("mouseup",H),document.addEventListener("touchmove",$),document.addEventListener("touchend",Q),()=>{document.removeEventListener("mousemove",q),document.removeEventListener("mouseup",H),document.removeEventListener("touchmove",$),document.removeEventListener("touchend",Q)}},[w,k,D,z,p]);let W=q=>ko("span",{className:"cleen-font-medium cleen-text-xs cleen-text-foreground",children:q});return ko("div",{className:Mo("cleen",g),style:y,ref:B,children:Ui("div",{className:Mo("cleen-w-full",m?.container),style:v?.container,children:[b&&ko(ae,{htmlFor:t,required:n,tooltip:C,...m?.label,...v?.label,children:b}),Ui("div",{className:Mo({"cleen-flex cleen-items-center cleen-gap-2":d==="inline"},m?.slider),style:v?.slider,children:[d==="inline"&&x?.minLabel!==void 0&&W(x?.minLabel),Ui("div",{ref:L,className:Mo("cleen-relative cleen-w-full cleen-h-8 cleen-touch-none",{"cleen-opacity-60":h,"cleen-flex-1":d==="inline"},m?.track),style:v?.track,"aria-disabled":h,onClick:V,children:[ko("div",{className:Mo("cleen-absolute cleen-left-0 cleen-right-0 cleen-top-1/2 cleen-h-1 cleen-bg-neutral-200 cleen-rounded-sm -cleen-translate-y-1/2",h?"cleen-cursor-not-allowed":"cleen-cursor-pointer",m?.path),style:v?.path,children:ko("div",{className:Mo("cleen-absolute cleen-left-0 cleen-top-0 cleen-h-full cleen-bg-primary cleen-rounded-sm",m?.filledTrack),style:{width:`${R}%`,...v?.filledTrack}})}),ko(ye,{invertColors:!0,...I,label:x?.tooltip?.(M)??M,className:Mo("cleen-absolute cleen-top-1/2 -cleen-translate-y-1/2",I?.className),style:{left:`calc(${R}% - 8px)`,...I?.style},isOpen:w||I?.isOpen,hideOnMouseDown:!1,closeOnClick:!1,children:ko("div",{id:t,className:Mo("cleen-size-4 cleen-bg-white dark:cleen-bg-black cleen-border cleen-border-neutral-600 cleen-rounded-full cleen-transition-all cleen-duration-200 hover:cleen-scale-125 hover:cleen-border-primary focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-primary focus-visible:cleen-ring-offset-1",h?"cleen-cursor-not-allowed":"cleen-cursor-pointer",m?.thumb),style:v?.thumb,tabIndex:h?-1:0,role:"slider","aria-valuenow":M,"aria-valuemin":o,"aria-valuemax":l,"aria-disabled":h,"aria-label":typeof b=="string"?b:"Slider","aria-labelledby":t,onMouseDown:O,onTouchStart:U,onKeyDown:A})})]}),d==="inline"?x?.maxLabel&&W(x?.maxLabel):(x?.minLabel||x?.maxLabel)&&Ui("div",{className:"cleen-flex cleen-items-center cleen-justify-between cleen-w-full",children:[x?.minLabel&&W(x?.minLabel),x?.maxLabel&&W(x?.maxLabel)]})]}),(P?.errorMessage||P?.infoMessage||P?.subtitle)&&ko(ne,{...P})]})})});import{cn as Tt}from"@cleen/ui-core";import{forwardRef as H6,useCallback as B1,useEffect as U6,useRef as G6,useState as QI}from"react";import{jsx as Rt,jsxs as Gi}from"react/jsx-runtime";var $6=H6(function({id:t,required:n,minValue:o=0,maxValue:l=100,step:a=1,defaultValue:c=[o,l],value:i,variant:d="default",onChange:s,onChangeEnd:p,className:g,classNames:m,style:y,styles:v,disabled:h=!1,label:b,labelTooltip:C,labels:x,tooltips:I,infoLabels:P},B){let[E,T]=QI(c??[o,l]),M=i!==void 0?i:E,L=G6(null),[w,S]=QI(null),N=B1(H=>{let $=Math.round((H-o)/a)*a+o;return Math.min(l,Math.max(o,$))},[o,l,a]),F=(M[0]-o)/(l-o)*100,R=Math.min(100,Math.max(0,F)),k=(M[1]-o)/(l-o)*100,z=Math.min(100,Math.max(0,k)),D=B1(H=>{let $=[N(Math.min(H[0],H[1])),N(Math.max(H[0],H[1]))];i===void 0&&T($),s?.($)},[N,i,s]),A=B1(H=>{let $=L.current;if(!$)return o;let Q=$.getBoundingClientRect(),_=(H-Q.left)/Q.width;return N(o+_*(l-o))},[o,l,N]),O=H=>$=>{if(h)return;let Q=H==="min"?M[0]:M[1],_;switch($.key){case"ArrowRight":case"ArrowUp":_=Q+a;break;case"ArrowLeft":case"ArrowDown":_=Q-a;break;case"Home":_=o;break;case"End":_=l;break;default:return}$.preventDefault();let Z=H==="min"?[Math.min(_,M[1]),M[1]]:[M[0],Math.max(_,M[0])];D(Z),p?.([N(Z[0]),N(Z[1])])},V=H=>$=>{h||($.preventDefault(),S(H))},U=H=>{if(h)return;let $=A(H.clientX),Q=Math.abs($-M[0]),_=Math.abs($-M[1]);Q<_?D([$,M[1]]):D([M[0],$])},W=H=>$=>{h||($.preventDefault(),S(H))};U6(()=>{if(!w)return;let H=Z=>{let pe=A(Z.clientX);D(w==="min"?[pe,M[1]]:[M[0],pe])},$=Z=>{let pe=A(Z.clientX),he=w==="min"?[pe,M[1]]:[M[0],pe];S(null),p?.(he)},Q=Z=>{if(Z.touches.length>0){let pe=A(Z.touches[0].clientX);D(w==="min"?[pe,M[1]]:[M[0],pe])}},_=Z=>{let pe=A(Z.changedTouches[0].clientX),he=w==="min"?[pe,M[1]]:[M[0],pe];S(null),p?.(he)};return document.addEventListener("mousemove",H),document.addEventListener("mouseup",$),document.addEventListener("touchmove",Q),document.addEventListener("touchend",_),()=>{document.removeEventListener("mousemove",H),document.removeEventListener("mouseup",$),document.removeEventListener("touchmove",Q),document.removeEventListener("touchend",_)}},[w,M,A,D,p]);let q=H=>Rt("span",{className:"cleen-font-medium cleen-text-xs cleen-text-foreground",children:H});return Rt("div",{className:Tt("cleen",g),style:y,ref:B,children:Gi("div",{className:Tt("cleen-w-full",m?.container),style:v?.container,children:[b&&Rt(ae,{htmlFor:t,required:n,tooltip:C,...m?.label,...v?.label,children:b}),Gi("div",{className:Tt({"cleen-flex cleen-items-center cleen-gap-2":d==="inline"},m?.slider),style:v?.slider,children:[d==="inline"&&x?.minLabel!==void 0&&q(x?.minLabel),Gi("div",{ref:L,className:Tt("cleen-relative cleen-w-full cleen-h-8 cleen-touch-none",{"cleen-opacity-60":h,"cleen-flex-1":d==="inline"},m?.track),style:v?.track,"aria-disabled":h,onClick:U,children:[Rt("div",{className:Tt("cleen-absolute cleen-left-0 cleen-right-0 cleen-top-1/2 cleen-h-1 cleen-bg-neutral-200 cleen-rounded-sm -cleen-translate-y-1/2",h?"cleen-cursor-not-allowed":"cleen-cursor-pointer"),children:Rt("div",{className:Tt("cleen-absolute cleen-top-0 cleen-h-full cleen-bg-primary cleen-rounded-sm",m?.filledTrack),style:{left:`${R}%`,width:`${z-R}%`,...v?.filledTrack}})}),Rt(ye,{invertColors:!0,isOpen:w==="min"||I?.min?.isOpen||I?.shared?.isOpen,hideOnMouseDown:!1,closeOnClick:!1,...I?.shared,...I?.min,label:x?.tooltip?.(M[0])??M[0]?.toString(),className:Tt("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:Rt("div",{className:Tt("cleen-size-4 cleen-bg-white dark:cleen-bg-black cleen-border cleen-border-neutral-600 cleen-rounded-full cleen-transition-all cleen-duration-200 hover:cleen-scale-125 hover:cleen-border-primary focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-primary focus-visible:cleen-ring-offset-1",h?"cleen-cursor-not-allowed":"cleen-cursor-pointer",m?.thumb),style:v?.thumb,tabIndex:h?-1:0,role:"slider","aria-valuenow":M[0],"aria-valuemin":o,"aria-valuemax":M[1],"aria-disabled":h,"aria-label":typeof b=="string"?`${b} minimum value`:"Minimum value",onMouseDown:V("min"),onTouchStart:W("min"),onKeyDown:O("min")})}),Rt(ye,{invertColors:!0,isOpen:w==="max"||I?.max?.isOpen||I?.shared?.isOpen,hideOnMouseDown:!1,closeOnClick:!1,...I?.shared,...I?.max,label:x?.tooltip?.(M[1])??M[1]?.toString(),className:Tt("cleen-absolute cleen-top-1/2 -cleen-translate-y-1/2",I?.shared?.className,I?.max?.className),style:{left:`calc(${z}% - 8px)`,...I?.shared?.style,...I?.max?.style},children:Rt("div",{className:Tt("cleen-size-4 cleen-bg-white dark:cleen-bg-black cleen-border cleen-border-neutral-600 cleen-rounded-full cleen-transition-all cleen-duration-200 hover:cleen-scale-125 hover:cleen-border-primary focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-primary focus-visible:cleen-ring-offset-1",h?"cleen-cursor-not-allowed":"cleen-cursor-pointer",m?.thumb),style:v?.thumb,tabIndex:h?-1:0,role:"slider","aria-valuenow":M[1],"aria-valuemin":M[0],"aria-valuemax":l,"aria-disabled":h,"aria-label":typeof b=="string"?`${b} maximum value`:"Maximum value",onMouseDown:V("max"),onTouchStart:W("max"),onKeyDown:O("max")})})]}),d==="inline"?x?.maxLabel&&q(x?.maxLabel):(x?.minLabel||x?.maxLabel)&&Gi("div",{className:"cleen-flex cleen-items-center cleen-justify-between cleen-w-full",children:[x?.minLabel&&q(x?.minLabel),x?.maxLabel&&q(x?.maxLabel)]})]}),(P?.errorMessage||P?.infoMessage||P?.subtitle)&&Rt(ne,{...P})]})})});import{cn as ur}from"@cleen/ui-core";import{forwardRef as W6,useRef as q6,useState as JI}from"react";import{jsx as un,jsxs as K6}from"react/jsx-runtime";var X6=W6(function({label:t,infoLabels:n,value:o,onChange:l,amount:a=5,gap:c,size:i,readonly:d,color:s="rgb(var(--cleen-yellow))",className:p,style:g,classNames:m,styles:y,...v},h){let[b,C]=JI(0),x=o!==void 0,I=x?o:b,[P,B]=JI(null),E=P!==null?P+1:I,T=!d,M=q6([]),L=I>0?I-1:0,w=R=>{x||C(R),l?.(R)},S=R=>{R<0||R>=a||(w(R+1),M.current[R]?.focus())},N=(R,k)=>{switch(R.key){case"ArrowRight":case"ArrowUp":R.preventDefault(),S((k+1)%a);break;case"ArrowLeft":case"ArrowDown":R.preventDefault(),S((k-1+a)%a);break;case"Home":R.preventDefault(),S(0);break;case"End":R.preventDefault(),S(a-1);break;default:break}},F=typeof t=="string"?t:"Rating";return un("div",{className:ur("cleen",p),style:g,ref:h,...v,children:K6("div",{className:ur("cleen-space-y-2",m?.container),style:y?.container,children:[t&&un("span",{className:ur("cleen-font-medium cleen-text-sm cleen-text-foreground",m?.label),style:y?.label,children:t}),un("div",{role:T?"radiogroup":"img","aria-label":T?F:`${F}: ${I} out of ${a}`,className:ur("cleen-flex cleen-gap-3",m?.list),style:{...c?{gap:c}:{},...y?.list},children:Array.from({length:a},(R,k)=>{let z=un(ba,{"aria-hidden":"true",className:ur("cleen-size-5 cleen-text-neutral-700 cleen-transition-colors",m?.star),style:{...i?{width:i,height:i}:{},...y?.star,fill:(d?I:E)>k?s:"transparent"}});return T?un("button",{type:"button",ref:D=>{M.current[k]=D},role:"radio","aria-checked":I===k+1,"aria-label":`${k+1} ${k+1===1?"star":"stars"}`,tabIndex:k===L?0:-1,onMouseEnter:()=>B(k),onMouseLeave:()=>B(null),onClick:()=>w(k+1),onKeyDown:D=>N(D,k),className:ur("focus-visible:cleen-outline-none focus-visible:cleen-ring-2 focus-visible:cleen-ring-offset-2 focus-visible:cleen-ring-primary focus-visible:cleen-rounded"),children:z},k):un("span",{className:"cleen-cursor-default",children:z},k)})}),(n?.errorMessage||n?.infoMessage||n?.subtitle)&&un(ne,{...n})]})})});import{cn as to}from"@cleen/ui-core";import{forwardRef as Y6}from"react";import{jsx as Bo,jsxs as jI}from"react/jsx-runtime";var eC=Y6(({steps:e,activeStep:t=0,orientation:n="horizontal",color:o="rgb(var(--cleen-primary))",className:l,classNames:a,style:c,styles:i,...d},s)=>{let p=n==="vertical";return Bo("div",{ref:s,className:to("cleen",l),style:{...c,width:"100%"},...d,children:Bo("div",{className:to("cleen-flex cleen-w-full",p?"cleen-flex-col cleen-gap-6":"cleen-flex-row cleen-items-start cleen-gap-8 cleen-justify-between",a?.container),style:{width:"100%",...i?.container},children:e?.map((g,m)=>{let y=m+1<t,v=m+1===t;return jI("div",{className:to("cleen-relative cleen-flex cleen-flex-1",p?"cleen-flex-row cleen-items-start":"cleen-flex-col cleen-items-center cleen-text-center",a?.step),style:i?.step,children:[m<e?.length-1&&Bo("div",{className:to("cleen-absolute cleen-bg-neutral-200 cleen-transition-all cleen-duration-300",p?"cleen-left-3 cleen-top-7 cleen-w-[2px] cleen-h-[calc(100%-4px)]":"cleen-top-3 cleen-left-[calc(50%+14px)] cleen-h-[2px] cleen-w-[calc(100%+4px)]",y&&"cleen-bg-primary",a?.connector),style:{backgroundColor:y?o:void 0,...i?.connector}}),Bo("div",{className:to("cleen-relative cleen-flex cleen-items-center cleen-justify-center cleen-rounded-full cleen-border cleen-transition-all cleen-duration-300","cleen-size-7",y||v?"cleen-border-[2px]":"cleen-border-border",a?.circle),style:{borderColor:v||y?o:void 0,backgroundColor:y?o:"transparent",...i?.circle},children:y?Bo("span",{className:"cleen-text-white cleen-text-sm",children:"\u2713"}):Bo("span",{className:to("cleen-w-2 cleen-h-2 cleen-rounded-full",v?"cleen-bg-white":"cleen-bg-neutral-200"),style:{backgroundColor:v?o:void 0}})}),jI("div",{className:to("cleen-flex cleen-flex-col",p?"cleen-ml-3":"cleen-mt-3 cleen-items-center"),children:[g.title&&Bo("div",{className:to("cleen-font-medium cleen-text-sm",v?"cleen-text-primary":"cleen-text-foreground",a?.title),style:{color:v?o:void 0,...i?.title},children:g.title}),g.subtitle&&Bo("div",{className:to("cleen-text-xs cleen-text-neutral-600",a?.subtitle),style:{color:v?o:void 0,...i?.subtitle},children:g.subtitle})]})]},m)})})})});eC.displayName="Stepper";import{cn as Be}from"@cleen/ui-core";import{forwardRef as Z6,useMemo as oC,useState as fr}from"react";var tC={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 j6,jsx as Pe,jsxs as hr}from"react/jsx-runtime";var Q6=[],J6=Z6(function({items:t=Q6,value:n,defaultValue:o,onApply:l,onCreate:a,isLoading:c=!1,icon:i,disabled:d=!1,isOpen:s,onOpenChange:p,position:g="bottom-left",zIndex:m,labels:y,className:v,classNames:h,style:b,styles:C,...x},I){let P={...tC,...y},[B,E]=fr(o??[]),T=n??B,[M,L]=fr(!1),w=s??M,[S,N]=fr(T),[F,R]=fr(""),[k,z]=fr([]),[D,A]=fr(!1),O=oC(()=>[...t,...k.filter(j=>!t.some(ie=>ie.id===j.id))],[t,k]),V=F.trim(),U=oC(()=>{let j=V.toLowerCase();return j?O.filter(ie=>ie.label.toLowerCase().includes(j)):O},[O,V]),W=!!V&&!O.some(j=>j.label.toLowerCase()===V.toLowerCase())&&!!a,q=c||D,H=T.length,$=H>0,Q=j=>{j&&(N(T),R("")),s===void 0&&L(j),p?.(j)},_=j=>{N(ie=>ie.includes(j)?ie.filter(Ge=>Ge!==j):[...ie,j])},Z=async()=>{if(!(!a||!V||q)){A(!0);try{let j=await a(V);j&&(z(ie=>ie.some(Ge=>Ge.id===j.id)?ie:[...ie,j]),N(ie=>ie.includes(j.id)?ie:[...ie,j.id]),R(""))}finally{A(!1)}}},pe=j=>{j.key==="Enter"&&W&&(j.preventDefault(),Z())},he=()=>{N([])},be=()=>{let j=O.filter(ie=>S.includes(ie.id));n===void 0&&E(S),l?.(S,j),Q(!1)},Ne=hr(j6,{children:[W&&Pe("div",{className:"cleen-p-1.5",children:Pe(ee,{variant:"borderless-blue",fullWidth:!0,isLoading:q,leftIcon:Pe(sa,{className:"cleen-size-4 cleen-shrink-0"}),onClick:()=>{Z()},classNames:{container:Be("cleen-justify-start cleen-px-2.5 cleen-py-1.5 cleen-font-medium",h?.createButton)},styles:{container:C?.createButton},children:Pe("span",{className:"cleen-truncate",children:P.create(V)})})}),U.length===0?W?null:Pe("p",{className:Be("cleen-px-3 cleen-py-4 cleen-text-gray-500 cleen-text-sm cleen-text-center cleen-opacity-50",h?.noData),style:C?.noData,children:O.length===0?P.noData:P.noMatches}):Pe("ul",{className:Be("cleen-flex cleen-flex-col cleen-py-1 cleen-max-h-[300px] cleen-overflow-y-auto cleen-[scrollbar-width:thin] [&::-webkit-scrollbar]:cleen-w-1 [&::-webkit-scrollbar-track]:cleen-bg-transparent [&::-webkit-scrollbar-thumb]:cleen-rounded-full [&::-webkit-scrollbar-thumb]:cleen-bg-neutral-200",h?.list),style:C?.list,children:U.map(j=>hr("li",{onClick:()=>_(j.id),className:Be("cleen-flex cleen-justify-between cleen-items-center cleen-gap-2 hover:cleen-bg-muted cleen-px-3 cleen-py-2 cleen-transition-colors cleen-cursor-pointer",h?.item),style:C?.item,children:[Pe($a,{className:"cleen-flex-1 cleen-min-w-0",classNames:{container:"cleen-min-w-0",checkboxContainer:"cleen-items-center cleen-min-w-0 [&>div]:cleen-flex-1 [&>div]:cleen-min-w-0",checkbox:h?.checkbox,label:Be("cleen-text-sm cleen-truncate cleen-cursor-pointer",h?.itemLabel)},styles:{checkbox:C?.checkbox,label:C?.itemLabel},checked:S.includes(j.id),onClick:ie=>ie.stopPropagation(),label:Pe("span",{title:j.label,className:"cleen-select-none",children:j.label}),fullTriggerArea:!0}),j.count!==void 0&&Pe("span",{className:Be("cleen-shrink-0 cleen-text-gray-500 cleen-text-sm cleen-tabular-nums cleen-opacity-50 cleen-select-none",h?.count),style:C?.count,children:j.count})]},j.id))})]}),_e=hr("div",{className:Be("cleen-flex cleen-flex-col",h?.content),style:C?.content,role:"dialog",children:[Pe(ge,{autoFocus:!0,value:F,onChange:j=>R(j.target.value),onKeyDown:pe,placeholder:P.searchPlaceholder,"aria-label":P.searchPlaceholder,leftIcon:Pe(Vt,{className:"cleen-size-4 cleen-text-muted-foreground"}),className:Be("cleen-shrink-0 cleen-p-1.5 cleen-py-1",h?.search),style:C?.search,classNames:{inputContainer:"cleen-border-0 cleen-shadow-none cleen-rounded-none focus-within:cleen-ring-0",input:"cleen-text-sm"}}),Pe(gt,{className:Be("cleen-shrink-0",h?.divider),style:C?.divider}),Pe("div",{className:"cleen-flex-1 cleen-min-h-0",children:Ne}),hr("div",{className:Be("cleen-flex cleen-justify-between cleen-items-center cleen-gap-2 cleen-px-3 cleen-py-2 cleen-border-t cleen-border-border cleen-shrink-0",h?.footer),style:C?.footer,children:[Pe("span",{className:Be("cleen-min-w-0 cleen-text-muted-foreground cleen-text-xs cleen-truncate",h?.footerText),style:C?.footerText,children:S.length>0?P.selected(S.length):P.footer}),hr("div",{className:Be("cleen-flex cleen-items-center cleen-gap-2 cleen-shrink-0",h?.footerActions),style:C?.footerActions,children:[Pe(ee,{variant:"secondary",onClick:he,disabled:S.length===0,classNames:{container:Be("cleen-h-8 cleen-px-4 cleen-py-0 cleen-text-sm",h?.clearButton)},styles:{container:C?.clearButton},children:P.clear}),Pe(ee,{variant:"primary",onClick:be,classNames:{container:Be("cleen-h-8 cleen-px-4 cleen-py-0 cleen-text-sm",h?.doneButton)},styles:{container:C?.doneButton},children:P.done})]})]})]});return Pe(ol,{ref:I,isOpen:w,onOpenChange:Q,position:g,zIndex:m,content:_e,className:v,style:b,classNames:{trigger:Be(d&&"cleen-pointer-events-none"),popover:Be("cleen-w-80 cleen-overflow-hidden cleen-shadow-md",h?.popover)},styles:{popover:C?.popover},...x,children:hr("button",{type:"button",disabled:d,"aria-label":P.trigger,"aria-haspopup":"dialog","aria-expanded":w,className:Be("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":$,"cleen-opacity-50 cleen-cursor-not-allowed":d},h?.trigger,$&&h?.triggerActive),style:{...C?.trigger,...$?C?.triggerActive:{}},children:[i??Pe(Ia,{className:"cleen-size-4 cleen-shrink-0"}),$&&Pe("span",{className:Be("cleen-flex cleen-justify-center cleen-items-center cleen-bg-primary cleen-px-1.5 cleen-rounded-full cleen-min-w-5 cleen-h-5 cleen-font-semibold cleen-text-primary-foreground cleen-text-xs",h?.badge),style:C?.badge,children:H}),Pe(Er,{className:"cleen-size-3.5 cleen-shrink-0"})]})})});var N1={play:"Play",pause:"Pause",seekBackward:e=>`Back ${e} seconds`,seekForward:e=>`Forward ${e} seconds`,seek:"Seek",progress:"Playback progress",volume:"Volume",mute:"Mute",unmute:"Unmute",subtitles:"Subtitles",noSubtitles:"No subtitles available yet",subtitlesBadge:"CC",toggleSubtitles:"Toggle subtitles",playbackSpeed:"Playback speed",fullscreen:"Fullscreen",exitFullscreen:"Exit fullscreen",placeholder:"No video provided yet.",placeholderSubLabel:"Please provide a video source to play."};var T1=10;var nC={playing:!1,currentTime:0,duration:0,muted:!1,volume:1,playbackRate:1,showCaptions:!1,isFullscreen:!1,controlsActive:!0,isLoading:!0};import{forwardRef as eT,useEffect as R1,useImperativeHandle as tT,useRef as oT}from"react";import{jsx as lT}from"react/jsx-runtime";var nT=["config","fallback","light","oEmbedUrl","onClickPreview","onReady","onStart","onEnterPictureInPicture","onLeavePictureInPicture","pip","playIcon","previewAriaLabel","previewTabIndex","wrapper"],rT=e=>{let t=nT;return Object.fromEntries(Object.entries(e).filter(([n])=>!t.includes(n)))},aT=eT(function({playing:t=!1,volume:n,playbackRate:o,...l},a){let c=oT(null);return tT(a,()=>c.current,[]),R1(()=>{let i=c.current;i&&(t?i.play().catch(()=>{}):i.pause())},[t,l.src]),R1(()=>{c.current&&n!==void 0&&(c.current.volume=n)},[n]),R1(()=>{c.current&&o!==void 0&&(c.current.playbackRate=o)},[o]),lT("video",{...rT(l),ref:c,width:"100%",height:"100%"})});import{forwardRef as cT}from"react";import iT from"react-player";import{jsx as sT}from"react/jsx-runtime";var L1=cT(function(t,n){return sT(iT,{...t,ref:n,width:"100%",height:"100%"})});var hl=(s=>(s.PLAY="play",s.BACKWARD="backward",s.FORWARD="forward",s.VOLUME="volume",s.TIME="time",s.SEEKBAR="seekbar",s.SPEED="speed",s.SUBTITLES="subtitles",s.FULLSCREEN="fullscreen",s))(hl||{});var gr=e=>{if(!Number.isFinite(e)||e<0)return"0:00";let t=Math.floor(e),n=Math.floor(t/3600),o=Math.floor(t%3600/60),l=t%60,a=c=>String(c).padStart(2,"0");return n>0?`${n}:${a(o)}:${a(l)}`:`${o}:${a(l)}`},E1=(e,t)=>{if(!Array.isArray(e)||!(t>0))return[];let n=e.filter(o=>Number.isFinite(o?.start)).map(o=>({...o,start:Math.min(Math.max(o.start,0),t)})).sort((o,l)=>o.start-l.start);return n.map((o,l)=>{let a=n[l+1]?.start??t,c=o.end!==void 0&&Number.isFinite(o.end)?Math.min(Math.max(o.end,o.start),t):a;return{...o,end:c}}).filter(o=>o.end>o.start)},D1=(e,t)=>Math.min(Math.max((t-e.start)/(e.end-e.start),0),1),pT=(e,t)=>{let n=-1;return e.forEach((o,l)=>{t>=o.start&&(n=l)}),Math.max(n,0)};import{cn as vl}from"@cleen/ui-core";import{forwardRef as DT,useCallback as pt,useImperativeHandle as FT,useMemo as TC,useReducer as AT,useRef as RC}from"react";import{cn as gl}from"@cleen/ui-core";var vr="cleen-text-[#fff]",rC="cleen-text-[rgba(255,255,255,0.45)]",$i="!cleen-bg-[rgba(0,0,0,0.25)] !cleen-text-[#fff] !cleen-border-[rgba(255,255,255,0.25)]",Wi="hover:!cleen-bg-[rgba(255,255,255,0.1)] hover:!cleen-text-[#fff]",qi="cleen-bg-[rgba(0,0,0,0.6)] hover:cleen-bg-[rgba(0,0,0,0.9)] cleen-backdrop-blur-[2px]",Xi="cleen-border cleen-border-neutral-400 hover:cleen-border-neutral-600";import{cn as dT}from"@cleen/ui-core";import{jsx as mT}from"react/jsx-runtime";var fn=({label:e,onClick:t,disabled:n,active:o,className:l,style:a,children:c})=>mT("button",{type:"button","aria-label":e,"aria-pressed":o,onClick:t,disabled:n,className:dT("cleen-inline-flex cleen-justify-center cleen-items-center disabled:cleen-opacity-40 cleen-text-[rgba(255,255,255,0.85)] hover:cleen-text-[#fff] cleen-transition-colors disabled:cleen-cursor-not-allowed",l),style:a,children:c});import{cn as hn}from"@cleen/ui-core";import{cn as Ki}from"@cleen/ui-core";import{jsx as Yi}from"react/jsx-runtime";var aC=({segments:e,duration:t,currentTime:n,classNames:o,styles:l})=>Yi("div",{"aria-hidden":!0,className:Ki("cleen-top-1/2 cleen-absolute cleen-inset-x-0 cleen-h-1 -cleen-translate-y-1/2 cleen-pointer-events-none",o?.segments),style:l?.segments,children:e.map(a=>Yi("div",{className:Ki("cleen-absolute cleen-inset-y-0 cleen-pr-0.5 last:cleen-pr-0",o?.segment),style:{...l?.segment,left:`${a.start/t*100}%`,width:`${(a.end-a.start)/t*100}%`},children:Yi("div",{className:Ki("cleen-relative cleen-bg-[rgba(255,255,255,0.25)] cleen-rounded-full cleen-h-full cleen-overflow-hidden",o?.segmentTrack),style:l?.segmentTrack,children:Yi("div",{className:Ki("cleen-left-0 cleen-absolute cleen-inset-y-0 cleen-bg-[#fff] cleen-transition-[width] cleen-duration-200 cleen-ease-linear",o?.segmentFill),style:{...l?.segmentFill,width:`${D1(a,n)*100}%`}})})},a.start))});import{jsx as Zi,jsxs as uT}from"react/jsx-runtime";var lC=({allowBarSeeking:e,segments:t,duration:n,currentTime:o,onSeek:l,seekLabel:a,progressLabel:c,classNames:i,styles:d})=>{let s=t.length>0,p=s&&Zi(aC,{segments:t,duration:n,currentTime:o,classNames:i,styles:d});if(e){let m=i?.seekSlider?.classNames;return uT("div",{role:"group","aria-label":a,className:hn("cleen-relative",i?.seekBar),style:d?.seekBar,children:[p,Zi(mn,{value:o,maxValue:n,step:.01,onChange:l,className:hn("cleen-relative cleen-flex cleen-items-center cleen-h-3.5 cleen-cursor-pointer",i?.seekSlider?.className),classNames:{...m,track:hn("!cleen-h-4",m?.track),path:hn(s?"!cleen-bg-transparent":"!cleen-bg-[rgba(255,255,255,0.3)]",m?.path),filledTrack:hn({"!cleen-bg-transparent":s},m?.filledTrack)},labels:{tooltip:()=>gr(o)},...d?.seekSlider})]})}let g=n>0?Math.min(o/n*100,100):0;return Zi("div",{role:"progressbar","aria-label":c,"aria-valuemin":0,"aria-valuemax":Math.floor(n),"aria-valuenow":Math.floor(o),className:hn("cleen-relative cleen-h-1",{"cleen-bg-[rgba(255,255,255,0.25)] cleen-rounded-full cleen-overflow-hidden":!s},i?.seekBar),style:d?.seekBar,children:p||Zi("div",{className:hn("cleen-left-0 cleen-absolute cleen-inset-y-0 cleen-bg-[#fff] cleen-rounded-full cleen-transition-[width] cleen-duration-200 cleen-ease-linear",i?.progressFill),style:{...d?.progressFill,width:`${g}%`}})})};import{cn as br}from"@cleen/ui-core";import{jsx as yr,jsxs as sC}from"react/jsx-runtime";var pC=({playbackRate:e,dispatch:t,label:n,classNames:o,styles:l})=>{let a=`${e.toFixed(2)}\xD7`,c=o?.speedPopover?.classNames,i=o?.speedBadge?.classNames;return yr(ol,{position:"top",className:o?.speedPopover?.className,classNames:{...c,popover:br("!cleen-w-56",c?.popover)},...l?.speedPopover,content:sC("div",{className:br("cleen-flex cleen-flex-col cleen-gap-2 cleen-p-3",o?.speedContent),style:l?.speedContent,children:[sC("div",{className:br("cleen-flex cleen-justify-between cleen-items-center cleen-font-semibold cleen-text-foreground cleen-text-xs",o?.speedHeader),style:l?.speedHeader,children:[yr("span",{className:o?.speedLabel,style:l?.speedLabel,children:n}),yr("span",{className:br("cleen-tabular-nums cleen-text-primary",o?.speedValue),style:l?.speedValue,children:a})]}),yr(mn,{minValue:.5,maxValue:2,step:.25,value:e,onChange:d=>t({type:"setPlaybackRate",playbackRate:d}),className:br("cleen-w-full",o?.speedSlider?.className),classNames:o?.speedSlider?.classNames,labels:{minLabel:`${.5}\xD7`,maxLabel:`${2}\xD7`},...l?.speedSlider})]}),children:yr("button",{type:"button","aria-label":n,className:o?.speedButton,style:l?.speedButton,children:yr(xe,{variant:"sleek",className:o?.speedBadge?.className,classNames:{...i,container:br($i,Wi,i?.container)},...l?.speedBadge,children:a})})})};import{cn as dC}from"@cleen/ui-core";import{jsx as F1}from"react/jsx-runtime";var mC=({hasTracks:e,showCaptions:t,onToggle:n,labels:o,classNames:l,styles:a})=>{let c=l?.subtitlesBadge?.classNames;return F1(ye,{label:e?o.subtitles:o.noSubtitles,className:l?.subtitlesTooltip?.className,classNames:l?.subtitlesTooltip?.classNames,...a?.subtitlesTooltip,children:F1("button",{type:"button","aria-label":o.toggleSubtitles,"aria-pressed":t,disabled:!e,onClick:n,className:dC("disabled:cleen-opacity-40",l?.subtitlesButton),style:a?.subtitlesButton,children:F1(xe,{variant:"sleek",className:l?.subtitlesBadge?.className,classNames:{...c,container:dC($i,{[Wi]:e},c?.container)},...a?.subtitlesBadge,children:o.subtitlesBadge})})})};import{jsx as gn,jsxs as hT}from"react/jsx-runtime";var uC=({muted:e,volume:t,size:n})=>e||t===0?gn(Ma,{width:n,height:n}):t<.75?gn(wa,{width:n,height:n}):gn(Sa,{width:n,height:n}),fC=({isFullscreen:e,size:t})=>e?gn(ra,{width:t,height:t}):gn(ta,{width:t,height:t}),Ir=({forward:e,seconds:t,size:n})=>hT("span",{className:"cleen-inline-flex cleen-relative cleen-justify-center cleen-items-center",children:[gn(e?ma:da,{width:n,height:n}),gn("span",{className:"cleen-absolute cleen-font-semibold cleen-tabular-nums cleen-leading-none",style:{fontSize:Math.round(n*.34)},children:t})]});import{cn as Qi}from"@cleen/ui-core";import{jsx as Ji,jsxs as gT}from"react/jsx-runtime";var hC=({muted:e,volume:t,dispatch:n,labels:o,classNames:l,styles:a})=>gT("div",{className:Qi("cleen-group/volume cleen-flex cleen-items-center cleen-gap-2",l?.volume),style:a?.volume,children:[Ji(fn,{label:e?o.unmute:o.mute,active:e,onClick:()=>n({type:"toggleMuted"}),className:Qi(l?.controlButton,l?.muteButton),style:{...a?.controlButton,...a?.muteButton},children:Ji(uC,{muted:e,volume:t,size:24})}),Ji("div",{role:"group","aria-label":o.volume,className:Qi("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:Ji(mn,{minValue:0,maxValue:1,step:.05,value:e?0:t,onChange:c=>n({type:"setVolume",volume:c,muted:c===0}),className:Qi("cleen-w-full",l?.volumeSlider?.className),classNames:l?.volumeSlider?.classNames,tooltip:{isDisabled:!0},...a?.volumeSlider})})]});import{jsx as Ue,jsxs as es}from"react/jsx-runtime";var gC=({state:e,dispatch:t,isShown:n,allowBarSeeking:o,segments:l,seekStep:a,hasTracks:c,visible:i,hidden:d,controlsOnHover:s,onSeek:p,onSeekBy:g,onTogglePlay:m,onToggleFullscreen:y,labels:v,classNames:h,styles:b})=>{let{playing:C,currentTime:x,duration:I,muted:P,volume:B,playbackRate:E,showCaptions:T,isFullscreen:M}=e,L=w=>({className:gl(h?.controlButton,h?.[w]),style:{...b?.controlButton,...b?.[w]}});return es("div",{className:gl("cleen-right-0 cleen-bottom-0 cleen-left-0 cleen-absolute cleen-flex cleen-flex-col cleen-gap-2.5 cleen-bg-gradient-to-t cleen-from-[rgba(0,0,0,0.5)] cleen-to-transparent cleen-px-4 cleen-pt-2.5 cleen-pb-4 cleen-transition-opacity cleen-duration-300",i?s?"cleen-opacity-0 group-hover:cleen-opacity-100":"cleen-opacity-100":"cleen-opacity-0 cleen-pointer-events-none",{"cleen-hidden":d},h?.controls),style:b?.controls,children:[n("seekbar")&&Ue(lC,{allowBarSeeking:o,segments:l,duration:I,currentTime:x,onSeek:p,seekLabel:v.seek,progressLabel:v.progress,classNames:h,styles:b}),es("div",{className:gl("cleen-flex cleen-items-center cleen-gap-2.5 sm:cleen-gap-3.5",vr,h?.controlsRow),style:b?.controlsRow,children:[n("play")&&Ue(fn,{label:C?v.pause:v.play,onClick:m,...L("playButton"),children:C?Ue(ft,{width:24,height:24}):Ue(ht,{width:24,height:24})}),n("backward")&&Ue(fn,{label:v.seekBackward(a),onClick:()=>g(-a),...L("backwardButton"),children:Ue(Ir,{seconds:a,size:24})}),n("forward")&&Ue(fn,{label:v.seekForward(a),onClick:()=>g(a),...L("forwardButton"),children:Ue(Ir,{forward:!0,seconds:a,size:24})}),n("volume")&&Ue(hC,{muted:P,volume:B,dispatch:t,labels:v,classNames:h,styles:b}),n("time")&&es("span",{className:gl("cleen-font-semibold cleen-tabular-nums cleen-text-[13px] cleen-whitespace-nowrap",h?.time),style:b?.time,children:[Ue("span",{className:h?.currentTime,style:b?.currentTime,children:gr(x)})," ",es("span",{className:gl("cleen-font-medium",rC,h?.duration),style:b?.duration,children:["/ ",gr(I)]})]}),Ue("span",{className:"cleen-flex-1"}),n("speed")&&Ue(pC,{playbackRate:E,dispatch:t,label:v.playbackSpeed,classNames:h,styles:b}),n("subtitles")&&Ue(mC,{hasTracks:c,showCaptions:T,onToggle:()=>t({type:"toggleCaptions"}),labels:v,classNames:h,styles:b}),n("fullscreen")&&Ue(fn,{label:M?v.exitFullscreen:v.fullscreen,active:M,onClick:y,...L("fullscreenButton"),children:Ue(fC,{isFullscreen:M,size:24})})]})]})};import{cn as vC}from"@cleen/ui-core";import{cn as vT}from"@cleen/ui-core";import{jsx as bT}from"react/jsx-runtime";var A1=({label:e,onClick:t,className:n,style:o,children:l})=>bT("button",{type:"button","aria-label":e,onClick:t,className:vT("cleen-inline-flex cleen-justify-center cleen-items-center cleen-rounded-full cleen-size-12 cleen-transition-colors",qi,Xi,vr,n),style:o,children:l});import{jsx as vn,jsxs as yT}from"react/jsx-runtime";var bC=({playing:e,seekStep:t,visible:n,hidden:o,controlsOnHover:l,isShown:a,onTogglePlay:c,onSeekBy:i,labels:d,classNames:s,styles:p})=>yT("div",{className:vC("cleen-relative cleen-flex cleen-items-center cleen-gap-6 cleen-transition-opacity cleen-duration-300",n?l?"cleen-opacity-0 group-hover:cleen-opacity-100":"cleen-opacity-100":"cleen-opacity-0 cleen-pointer-events-none",{"cleen-hidden":o},s?.overlay),style:p?.overlay,children:[a("backward")&&vn(A1,{label:d.seekBackward(t),onClick:()=>i(-t),className:s?.overlayButton,style:p?.overlayButton,children:vn(Ir,{seconds:t,size:26})}),a("play")&&vn("button",{type:"button","aria-label":e?d.pause:d.play,onClick:c,className:vC("cleen-inline-flex cleen-relative cleen-justify-center cleen-items-center cleen-rounded-full cleen-size-[72px] cleen-transition-colors",qi,Xi,vr,s?.overlayPlayButton),style:p?.overlayPlayButton,children:e?vn(ft,{width:28,height:28}):vn(ht,{width:28,height:28})}),a("forward")&&vn(A1,{label:d.seekForward(t),onClick:()=>i(t),className:s?.overlayButton,style:p?.overlayButton,children:vn(Ir,{forward:!0,seconds:t,size:26})})]});import{cn as O1}from"@cleen/ui-core";import{jsx as yC,jsxs as IT}from"react/jsx-runtime";var IC=({label:e,subLabel:t,classNames:n,styles:o})=>IT("div",{className:O1("cleen-absolute cleen-inset-0 cleen-flex cleen-flex-col cleen-justify-center cleen-items-center cleen-gap-1 cleen-pointer-events-none cleen-text-center",n?.placeholder),style:o?.placeholder,children:[yC("span",{className:O1("cleen-font-semibold cleen-text-[13px] cleen-text-[rgba(255,255,255,0.5)]",n?.placeholderLabel),style:o?.placeholderLabel,children:e}),t&&yC("span",{className:O1("cleen-text-[rgba(255,255,255,0.3)] cleen-text-xs",n?.placeholderSubLabel),style:o?.placeholderSubLabel,children:t})]});import{useEffect as CT}from"react";var CC=(e,t,n)=>{CT(()=>{let o=e.current?.textTracks;if(o)for(let l of Array.from(o))l.kind!=="metadata"&&(l.mode=t?"showing":"hidden")},[t,n,e])};import{useCallback as _1,useEffect as PT,useRef as ST}from"react";var xC=(e,t,n)=>{let o=ST(void 0),l=_1(()=>{clearTimeout(o.current),o.current=setTimeout(()=>n({type:"setControlsActive",controlsActive:!1}),2500)},[n]),a=_1(()=>{n({type:"setControlsActive",controlsActive:!0}),l()},[n,l]),c=_1(()=>{e&&(clearTimeout(o.current),n({type:"setControlsActive",controlsActive:!1}))},[n,e]);return PT(()=>{if(!e){clearTimeout(o.current),n({type:"setControlsActive",controlsActive:!0});return}return l(),()=>clearTimeout(o.current)},[n,e,l]),{controlsVisible:!e||t,revealControls:a,hideControls:c}};import{useCallback as wT,useEffect as MT}from"react";var PC=(e,t,n)=>(MT(()=>{let o=()=>n({type:"setFullscreen",isFullscreen:document.fullscreenElement===e.current});return document.addEventListener("fullscreenchange",o),()=>document.removeEventListener("fullscreenchange",o)},[e,n]),wT(()=>{let o=e.current;!o||!t||(document.fullscreenElement?document.exitFullscreen():o.requestFullscreen?.())},[e,t]));import{useCallback as kT}from"react";var wC=({volume:e,canSeekBackward:t,canSeekForward:n,canUseVolume:o,canUseCaptions:l,dispatch:a,seekBy:c,togglePlay:i,toggleFullscreen:d,restart:s})=>kT(p=>{let g=(y,v=!0)=>{v&&(p.preventDefault(),y())},m=y=>a({type:"setVolume",volume:y,muted:!1});switch(p.key){case"ArrowLeft":return g(()=>c(-5),t);case"ArrowRight":return g(()=>c(5),n);case"ArrowUp":return g(()=>m(Math.min(e+.05,1)),o);case"ArrowDown":return g(()=>m(Math.max(e-.05,0)),o);case"f":return g(d);case"m":return g(()=>a({type:"toggleMuted"}),o);case"r":return g(s);case"c":return g(()=>{l&&a({type:"toggleCaptions"})});case" ":return g(i);default:return}},[t,n,l,o,a,s,c,d,i,e]);import{useCallback as z1,useEffect as BT,useRef as NT}from"react";var MC=(e,t,n,o)=>{let l=NT(0);BT(()=>{l.current=0},[n]);let a=z1(d=>{let s=e.current;if(!s||!Number.isFinite(s.duration))return;o();let p=t?s.duration:Math.min(Math.max(l.current,s.currentTime),s.duration);s.currentTime=Math.min(Math.max(d,0),p)},[t,o,e]),c=z1(d=>a((e.current?.currentTime??0)+d),[a,e]),i=z1(d=>{let s=e.current;!s||!Number.isFinite(s.duration)||(o(),s.currentTime=Math.min(Math.max(d,0),s.duration))},[o,e]);return{seekTo:a,seekBy:c,jumpTo:i,watchedTimeRef:l}};import{useCallback as kC,useRef as LT}from"react";var BC=(e,t)=>{let n=LT({seconds:e,src:null,attempts:0,done:!1}),o=kC(a=>{let c=n.current;if(!a?.src||c.done||(c.src===null&&(c.src=a.src),c.src!==a.src))return;let{seconds:i}=c,d=Number.isFinite(a.duration);if(i===void 0||!Number.isFinite(i)||i<=0||d&&i>a.duration){c.done=!0;return}d&&(c.attempts+=1,Math.abs(a.currentTime-i)>.5?a.currentTime=i:c.done=!0,c.attempts>=5&&(c.done=!0),t({type:"seek",currentTime:i}))},[t]),l=kC(()=>{n.current.done=!0},[]);return{applyStartTime:o,cancelStartTime:l}};var NC=(e,t)=>{switch(t.type){case"play":return{...e,playing:!0};case"pause":return{...e,playing:!1};case"togglePlay":return{...e,playing:!e.playing};case"seek":case"timeUpdate":return{...e,currentTime:t.currentTime};case"durationChange":return{...e,duration:t.duration};case"loaded":return{...e,duration:t.duration,isLoading:!1};case"buffering":return{...e,isLoading:!0};case"ready":return{...e,isLoading:!1};case"setVolume":return{...e,volume:t.volume,muted:t.muted};case"toggleMuted":return{...e,muted:!e.muted};case"setPlaybackRate":return{...e,playbackRate:t.playbackRate};case"toggleCaptions":return{...e,showCaptions:!e.showCaptions};case"setFullscreen":return{...e,isFullscreen:t.isFullscreen};case"setControlsActive":return{...e,controlsActive:t.controlsActive};default:return e}};import{jsx as bn,jsxs as EC}from"react/jsx-runtime";var OT=[],LC=[],_T=DT(function({src:t,tracks:n=OT,startTime:o,allowBarSeeking:l=!0,allowSeekingPastWatched:a=!0,segments:c,hiddenControls:i=LC,hiddenOverlayControls:d=LC,controlsOnHover:s=!1,seekStep:p=10,engine:g=L1,labels:m,onTimeChange:y,onDurationChange:v,onPause:h,onEnded:b,className:C,classNames:x,style:I,styles:P,...B},E){let T=RC(null),M=RC(null),[L,w]=AT(NC,nC),{playing:S,duration:N,muted:F,volume:R,playbackRate:k,isLoading:z,isFullscreen:D}=L,A=TC(()=>({...N1,...m}),[m]),O=n.some(se=>se.kind!=="metadata"),V=se=>!i.includes(se),U=se=>!d.includes(se),W=V("volume"),q=V("fullscreen"),H=O&&V("subtitles"),$=V("backward")||U("backward"),Q=V("forward")||U("forward"),{applyStartTime:_,cancelStartTime:Z}=BC(o,w),{seekTo:pe,seekBy:he,jumpTo:be,watchedTimeRef:Ne}=MC(M,a,t,Z),{controlsVisible:_e,revealControls:j,hideControls:ie}=xC(S,L.controlsActive,w),Ge=PC(T,q,w);CC(M,L.showCaptions,t),FT(E,()=>({getMediaElement:()=>M.current,play:()=>w({type:"play"}),pause:()=>w({type:"pause"}),jumpTo:be}),[be]);let ze=pt(()=>w({type:"togglePlay"}),[]),Te=pt(()=>{pe(0),w({type:"play"})},[pe]),dt=wC({volume:R,canSeekBackward:$,canSeekForward:Q,canUseVolume:W,canUseCaptions:H,dispatch:w,seekBy:he,togglePlay:ze,toggleFullscreen:Ge,restart:Te}),Qe=pt(()=>w({type:"play"}),[]),K=pt(()=>{w({type:"pause"}),h?.()},[h]),Se=pt(se=>{Ne.current=se.currentTarget.duration,w({type:"pause"}),b?.()},[b,Ne]),Re=pt(se=>{let In=se.currentTarget,ue=In.currentTime;if(ue-Ne.current<=3)Ne.current=Math.max(Ne.current,ue);else if(!a){In.currentTime=Ne.current;return}w({type:"timeUpdate",currentTime:ue}),y?.(ue)},[a,y,Ne]),we=pt(se=>{w({type:"loaded",duration:se.currentTarget.duration}),_(se.currentTarget)},[_]),$e=pt(se=>_(se.currentTarget),[_]),et=pt(se=>{w({type:"ready"}),_(se.currentTarget)},[_]),Cr=pt(se=>{w({type:"durationChange",duration:se.currentTarget.duration}),_(se.currentTarget),v?.(se)},[_,v]),yn=pt(()=>w({type:"buffering"}),[]),oe=pt(()=>w({type:"ready"}),[]),G=!!t&&z,J=!t||!z&&(!Number.isFinite(N)||N===0),ce=J||G,Le=TC(()=>E1(c,N),[c,N]);return bn("div",{className:vl("cleen",C),style:I,children:EC("div",{ref:T,className:vl("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":!_e,"focus-visible:cleen-ring-0":D},x?.container),style:P?.container,onMouseMove:j,onMouseLeave:ie,onDoubleClick:Ge,onKeyDown:dt,tabIndex:0,children:[EC("div",{className:vl("cleen-relative cleen-flex cleen-justify-center cleen-items-center",D?"cleen-h-full":"cleen-aspect-video",x?.viewport),style:P?.viewport,children:[bn(g,{...B,ref:M,src:t||void 0,controls:!1,playing:S,muted:F,volume:R,playbackRate:k,playsInline:!0,className:vl("cleen-absolute cleen-inset-0 !cleen-w-full !cleen-h-full cleen-object-contain",x?.video),style:P?.video,onClick:ze,onPlay:Qe,onPause:K,onEnded:Se,onTimeUpdate:Re,onLoadedMetadata:we,onLoadedData:$e,onCanPlay:et,onSeeked:$e,onDurationChange:Cr,onWaiting:yn,onError:oe,crossOrigin:"anonymous",children:n.map(se=>bn("track",{kind:se.kind??"subtitles",src:se.src,srcLang:se.srcLang,label:se.label},se.src))}),J&&bn(IC,{label:A.placeholder,subLabel:A.placeholderSubLabel,classNames:x,styles:P}),G&&bn(re,{size:"xl",className:vl("cleen-absolute",x?.loader?.className),classNames:x?.loader?.classNames,...P?.loader}),bn(bC,{playing:S,seekStep:p,visible:_e,hidden:ce,controlsOnHover:s,isShown:U,onTogglePlay:ze,onSeekBy:he,labels:A,classNames:x,styles:P})]}),bn(gC,{state:L,dispatch:w,isShown:V,allowBarSeeking:l,segments:Le,seekStep:p,hasTracks:O,visible:_e,hidden:ce,controlsOnHover:s,onSeek:pe,onSeekBy:he,onTogglePlay:ze,onToggleFullscreen:Ge,labels:A,classNames:x,styles:P})]})})});export{HC as AdvancedProgressBar,rM as AudioPlayback,dM as AudioRecorder,zc as Avatar,gM as AvatarRow,yM as Breadcrumb,ee as Button,jh as Calendar,LM as CalendarDropdown,J5 as CanvasButton,fe as Card,b5 as CardIcon,P5 as CardMedia,_M as Carousel,$a as Checkbox,YM as CheckboxGroup,Ce as CleenIcon,QB as CleenNotificationContainer,rb as Collapsible,o3 as ColorPicker,c3 as CreditCardInput,ja as DEFAULT_NOTIFICATION_CATEGORIES,el as DEFAULT_NOTIFICATION_LABELS,N1 as DEFAULT_VIDEO_PLAYER_LABELS,gt as Divider,n0 as Drawer,LI as DrawerContainer,e6 as DrawerContentTitle,Ga as Dropdown,H3 as Dropzone,K5 as EditableCard,_h as EditableText,Hh as EditableTextArea,K3 as FileCard,m0 as FileStackedProgressTracker,Fk as FilterDrawer,Cy as FormGroup,qk as GroupSelector,hs as Icon48AlertFeatured,gs as Icon48SuccessFeatured,To as IconAlertCircle,bs as IconAlertOctagon,Is as IconAlertTriangle,Cs as IconApps,Ps as IconArchive,Ss as IconArrowBarDown,ws as IconArrowBarLeft,Ms as IconArrowBarRight,ks as IconArrowBarToDown,Bs as IconArrowBarToLeft,Ns as IconArrowBarToRight,Ts as IconArrowBarToUp,Rs as IconArrowBarUp,Es as IconArrowDown,Ds as IconArrowDownLeft,As as IconArrowDownNarrow,Os as IconArrowDownRight,zs as IconArrowLeft,Hs as IconArrowLeftNarrow,Gs as IconArrowRight,Ws as IconArrowRightNarrow,Xs as IconArrowUp,Ks as IconArrowUpLeft,Zs as IconArrowUpNarrow,Qs as IconArrowUpRight,Js as IconAttachment,js as IconBarChart,ep as IconBarChartSquare,tp as IconBell,op as IconBold,ip as IconBookOpen,np as IconBookmark,is as IconBookmarkCheck,ss as IconBookmarkCheckFill,rp as IconBookmarkFill,ap as IconBookmarkMinus,ds as IconBookmarkPlus,cp as IconBookmarkX,sp as IconBoxLines,dp as IconBoxText,up as IconBracketsCheck,fp as IconBracketsEllipses,hp as IconBrickWall,gp as IconBriefcase,ms as IconBuilding,vp as IconCalculator,Lr as IconCalendar,bp as IconCertificate,Ft as IconCheck,Ro as IconCheckCircle,yp as IconCheckCircleBroken,Ip as IconCheckFill,Cp as IconCheckVerified,xp as IconCheckVerifiedFill,Er as IconChevronDown,Pp as IconChevronDownDouble,Sp as IconChevronDownLeft,wp as IconChevronDownLeftDouble,Mp as IconChevronDownRight,kp as IconChevronDownRightDouble,At as IconChevronLeft,Bp as IconChevronLeftDouble,mt as IconChevronRight,Dr as IconChevronRightDouble,Np as IconChevronSelectorVertical,Ot as IconChevronUp,Tp as IconChevronUpDouble,Rp as IconChevronUpLeft,Lp as IconChevronUpLeftDouble,Ep as IconChevronUpRight,Dp as IconChevronUpRightDouble,Fp as IconClick,Ap as IconClock,Op as IconClockFastForward,zp as IconClockPlay,Vp as IconClockRewind,Hp as IconClone,Gp as IconCode,$p as IconCodeBrowser,qp as IconCodeCircle,Kp as IconColors,us as IconColumnEdit,Yp as IconCopy,Zp as IconCopy2,Jp as IconCopyCheck,jp as IconCreditCard,ed as IconCube,td as IconCubeOutline,Ar as IconCursorBox,od as IconDataflow,nd as IconDataflow2,rd as IconDataflow3,ld as IconDistributeHorizontal,cd as IconDollar,sd as IconDollarCircle,pd as IconDot,dd as IconDotFill,md as IconDotsGrid,fd as IconDotsHorizontal,Bn as IconDotsVertical,vd as IconDownload,bd as IconEdit,Id as IconEditable,Cd as IconExpand,Pd as IconExternalLink,wd as IconExternalLink2,Md as IconEye,Bd as IconEyeHidden,Nd as IconEyeHidden2,Td as IconFaceAngry,Rd as IconFaceLaugh,Ld as IconFaceSmile,Eo as IconFile,Dd as IconFileCheck,Vr as IconFileCsv,Fd as IconFileDownload,Hr as IconFileJson,Ad as IconFileList,nt as IconFileMusic,Do as IconFilePdf,Gr as IconFileSpreadsheet,zt as IconFileText,zd as IconFileUpload,Wr as IconFileXls,qr as IconFileXlsx,yt as IconFileZip,_d as IconFiles,Vd as IconFilter,Xr as IconFilter2,Ud as IconFlag,Gd as IconFlag2,$d as IconFlagFill,Wd as IconFocus,qd as IconFolder,Xd as IconFolderExport,Kd as IconFolderImport,Yd as IconGraduationCap,Zd as IconGripVertical,Qd as IconHand,Jd as IconHandShield,jd as IconHash,em as IconHeadsetMic,tm as IconHeart,om as IconHeartFill,rm as IconHouse,Yr as IconHouseLine,Ae as IconImage,am as IconImage2,lm as IconImageCheck,cm as IconImageOff,im as IconImport,sm as IconInbox,dm as IconInfoCircle,um as IconInfoHexagon,hm as IconItalic,vm as IconLayersMultiple,bm as IconLayersSingle,ym as IconLayout,Cm as IconLayout2,xm as IconLayoutColumns,Pm as IconLayoutCustom,wm as IconLayoutStuffed,Mm as IconLayoutTile,km as IconLifeBuoy,Nm as IconLightbulb,Tm as IconLightning,Rm as IconLightningFast,Lm as IconLineChart,Em as IconLineChartBar,Dm as IconLineChartBreakoutSquare,Am as IconLineChartUp,Om as IconLines,_m as IconLinesCheck,zm as IconLinesPlay,Hm as IconLink,Um as IconLink2,Gm as IconLinkOff,$m as IconListBullet,Wm as IconListOrder,Xm as IconLock,Km as IconLockFill,Zm as IconLogIn,Jm as IconLogOut,eu as IconLogOut2,tu as IconMagicWand,ou as IconMail,nu as IconMailOpen,ru as IconMapPin,ta as IconMaximize,au as IconMaximize2,lu as IconMessageCircle,iu as IconMessageSquare,su as IconMessageSquare2,pu as IconMessageXSquare,na as IconMicrophone,ra as IconMinimize,du as IconMinimize2,mu as IconMinusCircle,fu as IconMobile,hu as IconMonitor,gu as IconMonitor2,vu as IconMoon,bu as IconMoonCircle,ut as IconMovie,It as IconName,yu as IconNavigationPointer,Iu as IconNotificationBox,ku as IconPCSetup,Cu as IconPackage,xu as IconPalette,Pu as IconPasscodeLock,ft as IconPause,wu as IconPauseCircle,Nu as IconPen,Tu as IconPercentageCircle,Ru as IconPerspective,Eu as IconPhoneCall,ia as IconPin,ht as IconPlay,Fu as IconPlayCircle,sa as IconPlus,so as IconPlusCircle,_u as IconPrinter,zu as IconPulse,pa as IconQuestionCircle,Hu as IconQuote,Uu as IconRadioButton,Gu as IconRadioButtonFill,$u as IconReceipt,Wu as IconReceiptCheck,qu as IconRedo,da as IconRefresh,Xu as IconRefresh2,Ku as IconRefresh3,Yu as IconRepeat,Zu as IconReplace,ma as IconReplay,Ju as IconRestore,ef as IconRocket,tf as IconRoundChart,of as IconRoundChart2,rf as IconRoute,lf as IconSave,cf as IconScanDots,ua as IconScissors,Vt as IconSearch,sf as IconSend,pf as IconServer,df as IconSettings,mf as IconSettings2,uf as IconShare,ff as IconShieldLightning,gf as IconShieldPlus,bf as IconShieldRemove,yf as IconShoppingBag,If as IconShoppingCart,Cf as IconShrink,xf as IconShuffle,Pf as IconSkipForward,Sf as IconSlashCircle,wf as IconSlashOctagon,Mf as IconSocialAndroid,kf as IconSocialApple,Bf as IconSocialGithub,Nf as IconSocialGlobe,Tf as IconSocialGoogle,Lf as IconSocialInstagram,Ef as IconSocialLinkedin,Ff as IconSocialMastercard,Af as IconSocialReact,Of as IconSocialVisa,_f as IconSocialX,zf as IconSpeedometer,Vf as IconStairs,ba as IconStar,Hf as IconStarFill,Uf as IconStarHalf,Gf as IconStars,ya as IconStop,$f as IconStrikethrough,Wf as IconSun,qf as IconSwap,Xf as IconSwitchHorizontal,Yf as IconTable,Ia as IconTag,Zf as IconTarget,Jf as IconTarget2,eh as IconTextFormat,th as IconTextFormat2,oh as IconTextHighlight,nh as IconThumbsDown,rh as IconThumbsUp,ah as IconThumbsUpFill,lh as IconToggle,ch as IconTranslate,rt as IconTrash,ih as IconTrending,sh as IconUnderline,ph as IconUndo,mh as IconUnlock,Oo as IconUploadCloud,xa as IconUser,hh as IconUserCheck,gh as IconUserDollar,bh as IconUserEdit,yh as IconUserPlus,Ih as IconUserRight,Ph as IconUserSquare,fs as IconUserVoice,Ch as IconUsers,Sh as IconUsersUp,wh as IconVideo,kh as IconVideoChat,Sa as IconVolume,wa as IconVolumeDown,Ma as IconVolumeMute,Nh as IconWrench,Ve as IconX,Th as IconXCircle,Rh as IconXCircleFill,Lh as IconXSquare,Eh as IconZoomIn,Fh as IconZoomOut,ne as InfoLabels,ge as Input,ae as Label,re as Loader,tB as Lookup,lB as Markdown,jn as Menu,hB as Modal,tr as NOTIFICATION_GENERAL_CATEGORY,aT as NativeVideoEngine,pN as Pagination,q0 as PaginationGoToPage,X0 as PaginationPageSize,xe as PillBadge,ol as Popover,Jn as ProgressBar,hI as ProgressCircle,wN as RadioBoxGroup,EN as RadioButtonGroup,_N as Rating,L1 as ReactPlayerEngine,KN as Select,DI as Sidebar,cl as SidebarItem,p6 as Skeleton,e1 as SkeletonAvatar,o1 as SkeletonBadge,n1 as SkeletonBanner,a1 as SkeletonButton,il as SkeletonCard,Fi as SkeletonCard2,l1 as SkeletonCard3,i1 as SkeletonCardStack,s1 as SkeletonChart,p1 as SkeletonContentCard,d1 as SkeletonDataGrid,m1 as SkeletonForm,f1 as SkeletonGlowingCard,h1 as SkeletonImage,g1 as SkeletonInfoCard,y1 as SkeletonInput,I1 as SkeletonList,P1 as SkeletonParagraph,S1 as SkeletonText,w1 as SkeletonVideo,Hi as SkeletonWidgetCard,_6 as SkeletonWrapper,mn as Slider,$6 as SliderRange,p0 as StackedProgressTracker,a0 as StackedProgressTrackerRow,l0 as StackedProgressTrackerStatusFilter,X6 as StarRating,eC as Stepper,k0 as Switch,Ka as TRACKER_STATUS_FILTER_ORDER,w0 as Tabs,J6 as TagFilter,Vh as TextArea,ye as Tooltip,qa as TrackerItemStatus,Xa as TrackerStatusFilter,T1 as VIDEO_PLAYER_SEEK_STEP_DEFAULT,_T as VideoPlayer,hl as VideoPlayerControl,zy as createNotificationStore,gr as formatTime,Ah as getFileIcon,pT as getVideoSegmentIndex,D1 as getVideoSegmentProgress,E1 as getVideoSegments,F0 as groupLayout,A0 as listLayout,tn as notification,le as notificationStore,e0 as parseRgbaString,Vy as showNotification,O0 as stackLayout,CB as useNotifications};
|