@medway-ui/core 1.19.0 → 1.20.2

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.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import*as E from'react';import {createContext,forwardRef,createElement,Children,isValidElement,useContext,useMemo,useState,Fragment as Fragment$1,useEffect,useRef,useId,useCallback,cloneElement}from'react';import {cva}from'class-variance-authority';import {Mail,CloseMd,ChevronDown,Check,User,ChevronRightMd,MoreHorizontal,TimeRemaining,Lock,ArrowRightMd,ChevronRight,ArrowRightSm,RemoveMinus,Calendar,ChevronLeftMd,Hide,Show,TriangleWarning,ChevronLeftDuo,ChevronRightDuo,Circle,Info,CheckboxFill,Warning,ChevronUp,HamburgerMd,EditPencil,OctagonWarning,CircleCheck,SearchMagnifyingGlass}from'@medway-ui/icons';import {clsx}from'clsx';import {jsxs,jsx,Fragment}from'react/jsx-runtime';import {Toast,Slot,AlertDialog,Separator,Dialog,Avatar,Progress,Collapsible,Checkbox,DropdownMenu,Label,RadioGroup,Tooltip,ScrollArea,Select,Tabs,Switch,Popover}from'radix-ui';import {createPortal}from'react-dom';import {motion,AnimatePresence}from'framer-motion';var tn=Object.defineProperty,on=Object.defineProperties;var rn=Object.getOwnPropertyDescriptors;var dt=Object.getOwnPropertySymbols;var sr=Object.prototype.hasOwnProperty,lr=Object.prototype.propertyIsEnumerable;var rr=(e,a,o)=>a in e?tn(e,a,{enumerable:true,configurable:true,writable:true,value:o}):e[a]=o,l=(e,a)=>{for(var o in a||(a={}))sr.call(a,o)&&rr(e,o,a[o]);if(dt)for(var o of dt(a))lr.call(a,o)&&rr(e,o,a[o]);return e},f=(e,a)=>on(e,rn(a));var d=(e,a)=>{var o={};for(var t in e)sr.call(e,t)&&a.indexOf(t)<0&&(o[t]=e[t]);if(e!=null&&dt)for(var t of dt(e))a.indexOf(t)<0&&lr.call(e,t)&&(o[t]=e[t]);return o};var sn=(e,a)=>{let o=new Array(e.length+a.length);for(let t=0;t<e.length;t++)o[t]=e[t];for(let t=0;t<a.length;t++)o[e.length+t]=a[t];return o},ln=(e,a)=>({classGroupId:e,validator:a}),mr=(e=new Map,a=null,o)=>({nextPart:e,validators:a,classGroupId:o});var nr=[],nn="arbitrary..",dn=e=>{let a=fn(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:t}=e;return {getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return un(i);let u=i.split("-"),c=u[0]===""&&u.length>1?1:0;return gr(u,c,a)},getConflictingClassGroupIds:(i,u)=>{if(u){let c=t[i],p=o[i];return c?p?sn(p,c):c:p||nr}return o[i]||nr}}},gr=(e,a,o)=>{if(e.length-a===0)return o.classGroupId;let r=e[a],s=o.nextPart.get(r);if(s){let p=gr(e,a+1,s);if(p)return p}let i=o.validators;if(i===null)return;let u=a===0?e.join("-"):e.slice(a).join("-"),c=i.length;for(let p=0;p<c;p++){let m=i[p];if(m.validator(u))return m.classGroupId}},un=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let a=e.slice(1,-1),o=a.indexOf(":"),t=a.slice(0,o);return t?nn+t:void 0})(),fn=e=>{let{theme:a,classGroups:o}=e;return cn(o,a)},cn=(e,a)=>{let o=mr();for(let t in e){let r=e[t];ao(r,o,t,a);}return o},ao=(e,a,o,t)=>{let r=e.length;for(let s=0;s<r;s++){let i=e[s];pn(i,a,o,t);}},pn=(e,a,o,t)=>{if(typeof e=="string"){mn(e,a,o);return}if(typeof e=="function"){gn(e,a,o,t);return}xn(e,a,o,t);},mn=(e,a,o)=>{let t=e===""?a:xr(a,e);t.classGroupId=o;},gn=(e,a,o,t)=>{if(hn(e)){ao(e(t),a,o,t);return}a.validators===null&&(a.validators=[]),a.validators.push(ln(o,e));},xn=(e,a,o,t)=>{let r=Object.entries(e),s=r.length;for(let i=0;i<s;i++){let[u,c]=r[i];ao(c,xr(a,u),o,t);}},xr=(e,a)=>{let o=e,t=a.split("-"),r=t.length;for(let s=0;s<r;s++){let i=t[s],u=o.nextPart.get(i);u||(u=mr(),o.nextPart.set(i,u)),o=u;}return o},hn=e=>"isThemeGetter"in e&&e.isThemeGetter===true,bn=e=>{if(e<1)return {get:()=>{},set:()=>{}};let a=0,o=Object.create(null),t=Object.create(null),r=(s,i)=>{o[s]=i,a++,a>e&&(a=0,t=o,o=Object.create(null));};return {get(s){let i=o[s];if(i!==void 0)return i;if((i=t[s])!==void 0)return r(s,i),i},set(s,i){s in o?o[s]=i:r(s,i);}}};var Cn=[],dr=(e,a,o,t,r)=>({modifiers:e,hasImportantModifier:a,baseClassName:o,maybePostfixModifierPosition:t,isExternal:r}),vn=e=>{let{prefix:a,experimentalParseClassName:o}=e,t=r=>{let s=[],i=0,u=0,c=0,p,m=r.length;for(let D=0;D<m;D++){let M=r[D];if(i===0&&u===0){if(M===":"){s.push(r.slice(c,D)),c=D+1;continue}if(M==="/"){p=D;continue}}M==="["?i++:M==="]"?i--:M==="("?u++:M===")"&&u--;}let b=s.length===0?r:r.slice(c),x=b,T=false;b.endsWith("!")?(x=b.slice(0,-1),T=true):b.startsWith("!")&&(x=b.slice(1),T=true);let L=p&&p>c?p-c:void 0;return dr(s,T,x,L)};if(a){let r=a+":",s=t;t=i=>i.startsWith(r)?s(i.slice(r.length)):dr(Cn,false,i,void 0,true);}if(o){let r=t;t=s=>o({className:s,parseClassName:r});}return t},Ln=e=>{let a=new Map;return e.orderSensitiveModifiers.forEach((o,t)=>{a.set(o,1e6+t);}),o=>{let t=[],r=[];for(let s=0;s<o.length;s++){let i=o[s],u=i[0]==="[",c=a.has(i);u||c?(r.length>0&&(r.sort(),t.push(...r),r=[]),t.push(i)):r.push(i);}return r.length>0&&(r.sort(),t.push(...r)),t}},In=e=>l({cache:bn(e.cacheSize),parseClassName:vn(e),sortModifiers:Ln(e)},dn(e)),kn=/\s+/,yn=(e,a)=>{let{parseClassName:o,getClassGroupId:t,getConflictingClassGroupIds:r,sortModifiers:s}=a,i=[],u=e.trim().split(kn),c="";for(let p=u.length-1;p>=0;p-=1){let m=u[p],{isExternal:b,modifiers:x,hasImportantModifier:T,baseClassName:L,maybePostfixModifierPosition:D}=o(m);if(b){c=m+(c.length>0?" "+c:c);continue}let M=!!D,G=t(M?L.substring(0,D):L);if(!G){if(!M){c=m+(c.length>0?" "+c:c);continue}if(G=t(L),!G){c=m+(c.length>0?" "+c:c);continue}M=false;}let P=x.length===0?"":x.length===1?x[0]:s(x).join(":"),k=T?P+"!":P,j=k+G;if(i.indexOf(j)>-1)continue;i.push(j);let z=r(G,M);for(let g=0;g<z.length;++g){let I=z[g];i.push(k+I);}c=m+(c.length>0?" "+c:c);}return c},Sn=(...e)=>{let a=0,o,t,r="";for(;a<e.length;)(o=e[a++])&&(t=hr(o))&&(r&&(r+=" "),r+=t);return r},hr=e=>{if(typeof e=="string")return e;let a,o="";for(let t=0;t<e.length;t++)e[t]&&(a=hr(e[t]))&&(o&&(o+=" "),o+=a);return o},ir=(e,...a)=>{let o,t,r,s,i=c=>{let p=a.reduce((m,b)=>b(m),e());return o=In(p),t=o.cache.get,r=o.cache.set,s=u,u(c)},u=c=>{let p=t(c);if(p)return p;let m=yn(c,o);return r(c,m),m};return s=i,(...c)=>s(Sn(...c))},Pn=[],de=e=>{let a=o=>o[e]||Pn;return a.isThemeGetter=true,a},br=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Cr=/^\((?:(\w[\w-]*):)?(.+)\)$/i,wn=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Tn=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,An=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Rn=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Dn=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Mn=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,We=e=>wn.test(e),U=e=>!!e&&!Number.isNaN(Number(e)),Xe=e=>!!e&&Number.isInteger(Number(e)),eo=e=>e.endsWith("%")&&U(e.slice(0,-1)),ze=e=>Tn.test(e),vr=()=>true,Bn=e=>An.test(e)&&!Rn.test(e),to=()=>false,Nn=e=>Dn.test(e),Fn=e=>Mn.test(e),En=e=>!w(e)&&!A(e),On=e=>Ke(e,kr,to),w=e=>br.test(e),Ye=e=>Ke(e,yr,Bn),ur=e=>Ke(e,Wn,U),zn=e=>Ke(e,Pr,vr),Hn=e=>Ke(e,Sr,to),fr=e=>Ke(e,Lr,to),Vn=e=>Ke(e,Ir,Fn),it=e=>Ke(e,wr,Nn),A=e=>Cr.test(e),Fa=e=>ea(e,yr),qn=e=>ea(e,Sr),cr=e=>ea(e,Lr),_n=e=>ea(e,kr),Un=e=>ea(e,Ir),ut=e=>ea(e,wr,true),Gn=e=>ea(e,Pr,true),Ke=(e,a,o)=>{let t=br.exec(e);return t?t[1]?a(t[1]):o(t[2]):false},ea=(e,a,o=false)=>{let t=Cr.exec(e);return t?t[1]?a(t[1]):o:false},Lr=e=>e==="position"||e==="percentage",Ir=e=>e==="image"||e==="url",kr=e=>e==="length"||e==="size"||e==="bg-size",yr=e=>e==="length",Wn=e=>e==="number",Sr=e=>e==="family-name",Pr=e=>e==="number"||e==="weight",wr=e=>e==="shadow";var pr=()=>{let e=de("color"),a=de("font"),o=de("text"),t=de("font-weight"),r=de("tracking"),s=de("leading"),i=de("breakpoint"),u=de("container"),c=de("spacing"),p=de("radius"),m=de("shadow"),b=de("inset-shadow"),x=de("text-shadow"),T=de("drop-shadow"),L=de("blur"),D=de("perspective"),M=de("aspect"),G=de("ease"),P=de("animate"),k=()=>["auto","avoid","all","avoid-page","page","left","right","column"],j=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],z=()=>[...j(),A,w],g=()=>["auto","hidden","clip","visible","scroll"],I=()=>["auto","contain","none"],C=()=>[A,w,c],X=()=>[We,"full","auto",...C()],W=()=>[Xe,"none","subgrid",A,w],Q=()=>["auto",{span:["full",Xe,A,w]},Xe,A,w],be=()=>[Xe,"auto",A,w],ye=()=>["auto","min","max","fr",A,w],me=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],J=()=>["start","end","center","stretch","center-safe","end-safe"],re=()=>["auto",...C()],se=()=>[We,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...C()],Be=()=>[We,"screen","full","dvw","lvw","svw","min","max","fit",...C()],Ne=()=>[We,"screen","full","lh","dvh","lvh","svh","min","max","fit",...C()],R=()=>[e,A,w],ne=()=>[...j(),cr,fr,{position:[A,w]}],fe=()=>["no-repeat",{repeat:["","x","y","space","round"]}],h=()=>["auto","cover","contain",_n,On,{size:[A,w]}],O=()=>[eo,Fa,Ye],S=()=>["","none","full",p,A,w],y=()=>["",U,Fa,Ye],V=()=>["solid","dashed","dotted","double"],Y=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],q=()=>[U,eo,cr,fr],le=()=>["","none",L,A,w],B=()=>["none",U,A,w],v=()=>["none",U,A,w],_=()=>[U,A,w],K=()=>[We,"full",...C()];return {cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ze],breakpoint:[ze],color:[vr],container:[ze],"drop-shadow":[ze],ease:["in","out","in-out"],font:[En],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ze],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ze],shadow:[ze],spacing:["px",U],text:[ze],"text-shadow":[ze],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",We,w,A,M]}],container:["container"],columns:[{columns:[U,w,A,u]}],"break-after":[{"break-after":k()}],"break-before":[{"break-before":k()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:z()}],overflow:[{overflow:g()}],"overflow-x":[{"overflow-x":g()}],"overflow-y":[{"overflow-y":g()}],overscroll:[{overscroll:I()}],"overscroll-x":[{"overscroll-x":I()}],"overscroll-y":[{"overscroll-y":I()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:X()}],"inset-x":[{"inset-x":X()}],"inset-y":[{"inset-y":X()}],start:[{"inset-s":X(),start:X()}],end:[{"inset-e":X(),end:X()}],"inset-bs":[{"inset-bs":X()}],"inset-be":[{"inset-be":X()}],top:[{top:X()}],right:[{right:X()}],bottom:[{bottom:X()}],left:[{left:X()}],visibility:["visible","invisible","collapse"],z:[{z:[Xe,"auto",A,w]}],basis:[{basis:[We,"full","auto",u,...C()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[U,We,"auto","initial","none",w]}],grow:[{grow:["",U,A,w]}],shrink:[{shrink:["",U,A,w]}],order:[{order:[Xe,"first","last","none",A,w]}],"grid-cols":[{"grid-cols":W()}],"col-start-end":[{col:Q()}],"col-start":[{"col-start":be()}],"col-end":[{"col-end":be()}],"grid-rows":[{"grid-rows":W()}],"row-start-end":[{row:Q()}],"row-start":[{"row-start":be()}],"row-end":[{"row-end":be()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ye()}],"auto-rows":[{"auto-rows":ye()}],gap:[{gap:C()}],"gap-x":[{"gap-x":C()}],"gap-y":[{"gap-y":C()}],"justify-content":[{justify:[...me(),"normal"]}],"justify-items":[{"justify-items":[...J(),"normal"]}],"justify-self":[{"justify-self":["auto",...J()]}],"align-content":[{content:["normal",...me()]}],"align-items":[{items:[...J(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...J(),{baseline:["","last"]}]}],"place-content":[{"place-content":me()}],"place-items":[{"place-items":[...J(),"baseline"]}],"place-self":[{"place-self":["auto",...J()]}],p:[{p:C()}],px:[{px:C()}],py:[{py:C()}],ps:[{ps:C()}],pe:[{pe:C()}],pbs:[{pbs:C()}],pbe:[{pbe:C()}],pt:[{pt:C()}],pr:[{pr:C()}],pb:[{pb:C()}],pl:[{pl:C()}],m:[{m:re()}],mx:[{mx:re()}],my:[{my:re()}],ms:[{ms:re()}],me:[{me:re()}],mbs:[{mbs:re()}],mbe:[{mbe:re()}],mt:[{mt:re()}],mr:[{mr:re()}],mb:[{mb:re()}],ml:[{ml:re()}],"space-x":[{"space-x":C()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":C()}],"space-y-reverse":["space-y-reverse"],size:[{size:se()}],"inline-size":[{inline:["auto",...Be()]}],"min-inline-size":[{"min-inline":["auto",...Be()]}],"max-inline-size":[{"max-inline":["none",...Be()]}],"block-size":[{block:["auto",...Ne()]}],"min-block-size":[{"min-block":["auto",...Ne()]}],"max-block-size":[{"max-block":["none",...Ne()]}],w:[{w:[u,"screen",...se()]}],"min-w":[{"min-w":[u,"screen","none",...se()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[i]},...se()]}],h:[{h:["screen","lh",...se()]}],"min-h":[{"min-h":["screen","lh","none",...se()]}],"max-h":[{"max-h":["screen","lh",...se()]}],"font-size":[{text:["base",o,Fa,Ye]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[t,Gn,zn]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",eo,w]}],"font-family":[{font:[qn,Hn,a]}],"font-features":[{"font-features":[w]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[r,A,w]}],"line-clamp":[{"line-clamp":[U,"none",A,ur]}],leading:[{leading:[s,...C()]}],"list-image":[{"list-image":["none",A,w]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",A,w]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:R()}],"text-color":[{text:R()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...V(),"wavy"]}],"text-decoration-thickness":[{decoration:[U,"from-font","auto",A,Ye]}],"text-decoration-color":[{decoration:R()}],"underline-offset":[{"underline-offset":[U,"auto",A,w]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:C()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",A,w]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",A,w]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ne()}],"bg-repeat":[{bg:fe()}],"bg-size":[{bg:h()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Xe,A,w],radial:["",A,w],conic:[Xe,A,w]},Un,Vn]}],"bg-color":[{bg:R()}],"gradient-from-pos":[{from:O()}],"gradient-via-pos":[{via:O()}],"gradient-to-pos":[{to:O()}],"gradient-from":[{from:R()}],"gradient-via":[{via:R()}],"gradient-to":[{to:R()}],rounded:[{rounded:S()}],"rounded-s":[{"rounded-s":S()}],"rounded-e":[{"rounded-e":S()}],"rounded-t":[{"rounded-t":S()}],"rounded-r":[{"rounded-r":S()}],"rounded-b":[{"rounded-b":S()}],"rounded-l":[{"rounded-l":S()}],"rounded-ss":[{"rounded-ss":S()}],"rounded-se":[{"rounded-se":S()}],"rounded-ee":[{"rounded-ee":S()}],"rounded-es":[{"rounded-es":S()}],"rounded-tl":[{"rounded-tl":S()}],"rounded-tr":[{"rounded-tr":S()}],"rounded-br":[{"rounded-br":S()}],"rounded-bl":[{"rounded-bl":S()}],"border-w":[{border:y()}],"border-w-x":[{"border-x":y()}],"border-w-y":[{"border-y":y()}],"border-w-s":[{"border-s":y()}],"border-w-e":[{"border-e":y()}],"border-w-bs":[{"border-bs":y()}],"border-w-be":[{"border-be":y()}],"border-w-t":[{"border-t":y()}],"border-w-r":[{"border-r":y()}],"border-w-b":[{"border-b":y()}],"border-w-l":[{"border-l":y()}],"divide-x":[{"divide-x":y()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":y()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...V(),"hidden","none"]}],"divide-style":[{divide:[...V(),"hidden","none"]}],"border-color":[{border:R()}],"border-color-x":[{"border-x":R()}],"border-color-y":[{"border-y":R()}],"border-color-s":[{"border-s":R()}],"border-color-e":[{"border-e":R()}],"border-color-bs":[{"border-bs":R()}],"border-color-be":[{"border-be":R()}],"border-color-t":[{"border-t":R()}],"border-color-r":[{"border-r":R()}],"border-color-b":[{"border-b":R()}],"border-color-l":[{"border-l":R()}],"divide-color":[{divide:R()}],"outline-style":[{outline:[...V(),"none","hidden"]}],"outline-offset":[{"outline-offset":[U,A,w]}],"outline-w":[{outline:["",U,Fa,Ye]}],"outline-color":[{outline:R()}],shadow:[{shadow:["","none",m,ut,it]}],"shadow-color":[{shadow:R()}],"inset-shadow":[{"inset-shadow":["none",b,ut,it]}],"inset-shadow-color":[{"inset-shadow":R()}],"ring-w":[{ring:y()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:R()}],"ring-offset-w":[{"ring-offset":[U,Ye]}],"ring-offset-color":[{"ring-offset":R()}],"inset-ring-w":[{"inset-ring":y()}],"inset-ring-color":[{"inset-ring":R()}],"text-shadow":[{"text-shadow":["none",x,ut,it]}],"text-shadow-color":[{"text-shadow":R()}],opacity:[{opacity:[U,A,w]}],"mix-blend":[{"mix-blend":[...Y(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Y()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[U]}],"mask-image-linear-from-pos":[{"mask-linear-from":q()}],"mask-image-linear-to-pos":[{"mask-linear-to":q()}],"mask-image-linear-from-color":[{"mask-linear-from":R()}],"mask-image-linear-to-color":[{"mask-linear-to":R()}],"mask-image-t-from-pos":[{"mask-t-from":q()}],"mask-image-t-to-pos":[{"mask-t-to":q()}],"mask-image-t-from-color":[{"mask-t-from":R()}],"mask-image-t-to-color":[{"mask-t-to":R()}],"mask-image-r-from-pos":[{"mask-r-from":q()}],"mask-image-r-to-pos":[{"mask-r-to":q()}],"mask-image-r-from-color":[{"mask-r-from":R()}],"mask-image-r-to-color":[{"mask-r-to":R()}],"mask-image-b-from-pos":[{"mask-b-from":q()}],"mask-image-b-to-pos":[{"mask-b-to":q()}],"mask-image-b-from-color":[{"mask-b-from":R()}],"mask-image-b-to-color":[{"mask-b-to":R()}],"mask-image-l-from-pos":[{"mask-l-from":q()}],"mask-image-l-to-pos":[{"mask-l-to":q()}],"mask-image-l-from-color":[{"mask-l-from":R()}],"mask-image-l-to-color":[{"mask-l-to":R()}],"mask-image-x-from-pos":[{"mask-x-from":q()}],"mask-image-x-to-pos":[{"mask-x-to":q()}],"mask-image-x-from-color":[{"mask-x-from":R()}],"mask-image-x-to-color":[{"mask-x-to":R()}],"mask-image-y-from-pos":[{"mask-y-from":q()}],"mask-image-y-to-pos":[{"mask-y-to":q()}],"mask-image-y-from-color":[{"mask-y-from":R()}],"mask-image-y-to-color":[{"mask-y-to":R()}],"mask-image-radial":[{"mask-radial":[A,w]}],"mask-image-radial-from-pos":[{"mask-radial-from":q()}],"mask-image-radial-to-pos":[{"mask-radial-to":q()}],"mask-image-radial-from-color":[{"mask-radial-from":R()}],"mask-image-radial-to-color":[{"mask-radial-to":R()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":j()}],"mask-image-conic-pos":[{"mask-conic":[U]}],"mask-image-conic-from-pos":[{"mask-conic-from":q()}],"mask-image-conic-to-pos":[{"mask-conic-to":q()}],"mask-image-conic-from-color":[{"mask-conic-from":R()}],"mask-image-conic-to-color":[{"mask-conic-to":R()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ne()}],"mask-repeat":[{mask:fe()}],"mask-size":[{mask:h()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",A,w]}],filter:[{filter:["","none",A,w]}],blur:[{blur:le()}],brightness:[{brightness:[U,A,w]}],contrast:[{contrast:[U,A,w]}],"drop-shadow":[{"drop-shadow":["","none",T,ut,it]}],"drop-shadow-color":[{"drop-shadow":R()}],grayscale:[{grayscale:["",U,A,w]}],"hue-rotate":[{"hue-rotate":[U,A,w]}],invert:[{invert:["",U,A,w]}],saturate:[{saturate:[U,A,w]}],sepia:[{sepia:["",U,A,w]}],"backdrop-filter":[{"backdrop-filter":["","none",A,w]}],"backdrop-blur":[{"backdrop-blur":le()}],"backdrop-brightness":[{"backdrop-brightness":[U,A,w]}],"backdrop-contrast":[{"backdrop-contrast":[U,A,w]}],"backdrop-grayscale":[{"backdrop-grayscale":["",U,A,w]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[U,A,w]}],"backdrop-invert":[{"backdrop-invert":["",U,A,w]}],"backdrop-opacity":[{"backdrop-opacity":[U,A,w]}],"backdrop-saturate":[{"backdrop-saturate":[U,A,w]}],"backdrop-sepia":[{"backdrop-sepia":["",U,A,w]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":C()}],"border-spacing-x":[{"border-spacing-x":C()}],"border-spacing-y":[{"border-spacing-y":C()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",A,w]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[U,"initial",A,w]}],ease:[{ease:["linear","initial",G,A,w]}],delay:[{delay:[U,A,w]}],animate:[{animate:["none",P,A,w]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[D,A,w]}],"perspective-origin":[{"perspective-origin":z()}],rotate:[{rotate:B()}],"rotate-x":[{"rotate-x":B()}],"rotate-y":[{"rotate-y":B()}],"rotate-z":[{"rotate-z":B()}],scale:[{scale:v()}],"scale-x":[{"scale-x":v()}],"scale-y":[{"scale-y":v()}],"scale-z":[{"scale-z":v()}],"scale-3d":["scale-3d"],skew:[{skew:_()}],"skew-x":[{"skew-x":_()}],"skew-y":[{"skew-y":_()}],transform:[{transform:[A,w,"","none","gpu","cpu"]}],"transform-origin":[{origin:z()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:K()}],"translate-x":[{"translate-x":K()}],"translate-y":[{"translate-y":K()}],"translate-z":[{"translate-z":K()}],"translate-none":["translate-none"],accent:[{accent:R()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:R()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",A,w]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mbs":[{"scroll-mbs":C()}],"scroll-mbe":[{"scroll-mbe":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pbs":[{"scroll-pbs":C()}],"scroll-pbe":[{"scroll-pbe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",A,w]}],fill:[{fill:["none",...R()]}],"stroke-w":[{stroke:[U,Fa,Ye,ur]}],stroke:[{stroke:["none",...R()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Xn=(e,{cacheSize:a,prefix:o,experimentalParseClassName:t,extend:r={},override:s={}})=>(Ea(e,"cacheSize",a),Ea(e,"prefix",o),Ea(e,"experimentalParseClassName",t),ft(e.theme,s.theme),ft(e.classGroups,s.classGroups),ft(e.conflictingClassGroups,s.conflictingClassGroups),ft(e.conflictingClassGroupModifiers,s.conflictingClassGroupModifiers),Ea(e,"orderSensitiveModifiers",s.orderSensitiveModifiers),ct(e.theme,r.theme),ct(e.classGroups,r.classGroups),ct(e.conflictingClassGroups,r.conflictingClassGroups),ct(e.conflictingClassGroupModifiers,r.conflictingClassGroupModifiers),Tr(e,r,"orderSensitiveModifiers"),e),Ea=(e,a,o)=>{o!==void 0&&(e[a]=o);},ft=(e,a)=>{if(a)for(let o in a)Ea(e,o,a[o]);},ct=(e,a)=>{if(a)for(let o in a)Tr(e,a,o);},Tr=(e,a,o)=>{let t=a[o];t!==void 0&&(e[o]=e[o]?e[o].concat(t):t);},Ar=(e,...a)=>typeof e=="function"?ir(pr,e,...a):ir(()=>Xn(pr(),e),...a);var jn=Ar({extend:{classGroups:{"font-size":["text-xxs","text-xs","text-sm","text-base","text-md","text-lg","text-xl","text-title-xs","text-title-sm","text-title-md","text-title-lg","text-title-xl","text-title-xxl","text-display-sm","text-display-md","text-display-lg"],leading:["leading-xxs","leading-xs","leading-sm","leading-md","leading-lg","leading-title-xs","leading-title-sm","leading-title-md","leading-title-lg","leading-title-xl","leading-title-xxl","leading-display-sm","leading-display-md","leading-display-lg"],"font-weight":["font-regular","font-medium","font-semibold","font-bold","font-extrabold"],rounded:["rounded-none","rounded-sm","rounded-md","rounded-lg","rounded-pill","rounded-circular","rounded-full"]}}});function n(...e){return jn(clsx(e))}var oo=createContext(null),Nr=cva("relative flex flex-col items-center justify-between gap-5 w-full rounded-md px-4 py-3 text-sm has-[>svg]:gap-x-9 gap-y-1 items-center [&>svg]:translate-y-0 [&>svg]:text-current lg:flex-row",{variants:{variant:{regular:"[background:linear-gradient(0deg,_var(--color-primary-background-soft)_0%,_var(--color-primary-background-soft)_100%),_var(--color-surface-card)] text-primary-foreground [&>svg]:text-primary-foreground",emphasis:"[background:linear-gradient(0deg,_var(--color-secondary-background-soft)_0%,_var(--color-secondary-background-soft)_100%),_var(--color-surface-card)] text-secondary-foreground [&>svg]:text-secondary-foreground",success:"[background:linear-gradient(0deg,_var(--color-green-background-soft)_0%,_var(--color-green-background-soft)_100%),_var(--color-surface-card)] text-green-foreground [&>svg]:text-green-foreground",warning:"[background:linear-gradient(0deg,_var(--color-yellow-background-soft)_0%,_var(--color-yellow-background-soft)_100%),_var(--color-surface-card)] text-yellow-foreground [&>svg]:text-yellow-foreground",error:"[background:linear-gradient(0deg,_var(--color-red-background-soft)_0%,_var(--color-red-background-soft)_100%),_var(--color-surface-card)] text-red-foreground [&>svg]:text-red-foreground"}},defaultVariants:{variant:"regular"}});function $n(s){var i=s,{className:e,variant:a="regular",onClose:o,children:t}=i,r=d(i,["className","variant","onClose","children"]);let u=Children.toArray(t).some(p=>isValidElement(p)&&p.type===Er),c=Children.toArray(t).some(p=>isValidElement(p)&&p.type===Fr);return jsx(oo.Provider,{value:{variant:a,hasDescription:u,hasTitle:c,onClose:o},children:jsxs("div",f(l({"data-slot":"alert",role:"alert",className:n(Nr({variant:a}),e)},r),{children:[t,o&&jsx(CloseMd,{"aria-label":"alert-close",onClick:o,className:"absolute right-4 top-2 !size-4 cursor-pointer !text-gray-foreground"})]}))})}function Jn(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("div",l({"data-slot":"alert-container",className:n("flex gap-3",e)},a))}function Yn(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("div",l({"data-slot":"alert-content",className:n("flex flex-col gap-1",e)},a))}function ed(t){var r=t,{className:e,icon:a}=r,o=d(r,["className","icon"]);return jsx("div",f(l({"data-slot":"alert-icon",className:n("size-6",e)},o),{children:a}))}function Fr(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("div",l({"data-slot":"alert-title",className:n("line-clamp-1 min-h-4 text-md font-medium",e)},a))}function Er(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("div",l({"data-slot":"alert-description",className:n("!line-clamp-3 grid justify-items-start gap-1 text-sm leading-5",e)},a))}function ad(o){var t=o,{className:e}=t,a=d(t,["className"]);let r=useContext(oo),s=(r==null?void 0:r.hasDescription)||false,i=(r==null?void 0:r.hasTitle)||false,u=r==null?void 0:r.onClose;return jsx("div",l({"data-slot":"alert-actions",className:n("relative mt-2 flex flex-wrap items-center gap-x-2 lg:mt-0 lg:flex-nowrap",(!s||!i)&&u&&"lg:right-5",e)},a))}var Or=cva("inline-flex items-center justify-center rounded-pill px-3 py-2 min-h-10 text-sm font-semibold transition-colors whitespace-nowrap focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 hover:brightness-90",{variants:{variant:{regular:"text-current",basic:"text-current"},alertVariant:{regular:"",emphasis:"",success:"",warning:"",error:""}},compoundVariants:[{variant:"regular",alertVariant:"regular",class:"bg-primary-background-soft"},{variant:"regular",alertVariant:"emphasis",class:"bg-secondary-background-soft"},{variant:"regular",alertVariant:"success",class:"bg-green-background-soft"},{variant:"regular",alertVariant:"warning",class:"bg-yellow-background-soft"},{variant:"regular",alertVariant:"error",class:"bg-red-background-soft"}],defaultVariants:{variant:"regular",alertVariant:"regular"}});function td(t){var r=t,{className:e,variant:a}=r,o=d(r,["className","variant"]);let s=useContext(oo),i=(s==null?void 0:s.variant)||"regular";return jsx("button",l({className:n(Or({variant:a,alertVariant:i}),e)},o))}function ro({size:e=24,className:a}){return jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:n("animate-spin",a),children:jsx("path",{d:"M21 12a9 9 0 1 1-6.219-8.56"})})}var nd={sm:"size-4 p-0 leading-none",md:"size-5 p-0 leading-none",lg:"size-6 p-0 leading-none",xl:"size-7 p-0 leading-none"},dd={sm:"px-1",md:"px-1",lg:"px-1",xl:"px-1.5"},Hr=cva("inline-flex items-center justify-center rounded-pill border font-semibold w-fit whitespace-nowrap shrink-0 gap-1 [&>svg]:pointer-events-none overflow-hidden border-transparent px-2",{variants:{variant:{regular:"bg-secondary-background-fill text-secondary-foreground-onfill",error:"bg-red-background-soft text-red-stroke-emphasis",warning:"bg-yellow-background-soft text-yellow-foreground",freemium:"[background:radial-gradient(135.09%_111.8%_at_0%_50%,rgba(24,98,188,0.02)_0%,rgba(0,32,91,0)_100%),linear-gradient(46deg,rgba(62,218,199,0.56)_6.54%,rgba(24,98,188,0.17)_85.21%),var(--color-primary)] text-white"},size:{sm:"min-w-4 text-xxs [&>svg]:size-2.5",md:"min-w-5 text-xs [&>svg]:size-3",lg:"min-w-6 text-xs [&>svg]:size-3.5",xl:"min-w-7 text-sm [&>svg]:size-4"}},defaultVariants:{variant:"regular",size:"md"}});function aa(u){var c=u,{className:e,variant:a,size:o,icon:t,animation:r,asChild:s=false}=c,i=d(c,["className","variant","size","icon","animation","asChild"]);let p=s?Slot.Slot:"span",m=Children.count(i.children)>0,b=!!t&&!m,x=typeof i.children=="string"||typeof i.children=="number"?String(i.children).trim():"",T=/^[A-Za-z0-9]$/.test(x),L=/^[A-Za-z0-9]{2,3}$/.test(x),D=/^\d{1,2}\S$/.test(x),M=L||D;return jsxs(p,f(l({"data-slot":"badge",className:n(Hr({variant:a,size:o}),(b||T)&&nd[o||"md"],!b&&M&&dd[o||"md"],r==="shine"&&"animate-shine bg-[linear-gradient(135deg,transparent_25%,var(--color-white-24)_50%,transparent_75%,transparent_100%)] bg-[length:250%_250%,100%_100%] bg-no-repeat",e)},i),{children:[t,i.children]}))}var cd={sm:"!h-8 !min-h-8 !w-8 !px-3 !py-2",md:"!h-10 !min-h-10 !w-10 !px-[14px] !py-[10px]",lg:"!h-12 !min-h-12 !w-12 !p-3",xl:"!h-14 !min-h-14 !w-14 !p-3"},Vr={sm:"size-2",md:"size-2.5",lg:"size-2.5",xl:"size-3"},pd={sm:"sm",md:"md",lg:"md",xl:"lg"},Oa=cva("inline-flex items-center justify-center place-items-center gap-2 rounded-pill text-sm font-semibold whitespace-nowrap transition-all disabled:pointer-events-none shrink-0 [&_svg]:shrink-0 hover:cursor-pointer focus:outline-0 [grid-template-areas:'stack']",{variants:{variant:{regular:"bg-primary-background-fill text-primary-foreground-onfill hover:bg-primary-background-fill-emphasis disabled:bg-gray-background-fill-muted disabled:text-gray-foreground-onfill","regular-soft":"bg-primary-background-soft text-primary-foreground hover:bg-primary-background-soft-emphasis hover:text-primary-foreground-emphasis disabled:bg-gray-background-soft-muted disabled:text-gray-foreground-muted","regular-basic":"bg-transparent text-primary-foreground hover:bg-primary-background-soft-emphasis hover:text-primary-foreground-emphasis disabled:bg-transparent disabled:text-gray-foreground-muted",emphasis:"bg-secondary-background-fill text-secondary-foreground-onfill hover:bg-secondary-background-fill-emphasis disabled:bg-gray-background-fill-muted disabled:text-gray-foreground-onfill","emphasis-soft":"bg-secondary-background-soft text-secondary-foreground hover:bg-secondary-background-soft-emphasis hover:text-secondary-foreground-emphasis disabled:bg-gray-background-soft-muted disabled:text-gray-foreground-muted","emphasis-basic":"bg-transparent text-secondary-foreground hover:bg-secondary-background-soft-emphasis hover:text-secondary-foreground-emphasis disabled:bg-transparent disabled:text-gray-foreground-muted",error:"bg-red-background-fill text-red-foreground-onfill hover:bg-red-background-fill-emphasis disabled:bg-gray-background-fill-muted disabled:text-gray-foreground-onfill","error-soft":"bg-red-background-soft text-red-foreground hover:bg-red-background-soft-emphasis hover:text-red-foreground-emphasis disabled:bg-gray-background-soft-muted disabled:text-gray-foreground-muted","error-basic":"bg-transparent text-red-foreground hover:bg-red-background-soft-emphasis hover:text-red-foreground-emphasis disabled:bg-transparent disabled:text-gray-foreground-muted",warning:"bg-yellow-background-fill text-yellow-foreground-onfill hover:bg-yellow-background-fill-emphasis disabled:bg-gray-background-fill-muted disabled:text-gray-foreground-onfill","warning-soft":"bg-yellow-background-soft text-yellow-foreground hover:bg-yellow-background-soft-emphasis hover:text-yellow-foreground-emphasis disabled:bg-gray-background-soft-muted disabled:text-gray-foreground-muted","warning-basic":"bg-transparent text-yellow-foreground hover:bg-yellow-background-soft-emphasis hover:text-yellow-foreground-emphasis disabled:bg-transparent disabled:text-gray-foreground-muted",success:"bg-green-background-fill text-green-foreground-onfill hover:bg-green-background-fill-emphasis disabled:bg-gray-background-fill-muted disabled:text-gray-foreground-onfill","success-soft":"bg-green-background-soft text-green-foreground hover:bg-green-background-soft-emphasis hover:text-green-foreground-emphasis disabled:bg-gray-background-soft-muted disabled:text-gray-foreground-muted","success-basic":"bg-transparent text-green-foreground hover:bg-green-background-soft-emphasis hover:text-green-foreground-emphasis disabled:bg-transparent disabled:text-gray-foreground-muted",outlined:"border border-gray-stroke-muted bg-transparent text-foreground hover:border-transparent hover:bg-gray-50 disabled:border-transparent dark:bg-transparent hover:dark:border-gray-400 disabled:border-gray-stroke-muted disabled:text-gray-foreground-muted",gradient:"text-white [background:linear-gradient(284deg,var(--color-primary)_2.11%,var(--color-secondary)_128.06%)] hover:[background:linear-gradient(284deg,var(--color-primary)2.11%,var(--color-secondary)102.63%)] disabled:[background:var(--color-gray-50)] disabled:bg-gray-background-fill-muted disabled:text-gray-foreground-onfill",medbrain:"border-2 border-transparent bg-clip-text [background:linear-gradient(var(--color-white),var(--color-white))_padding-box,linear-gradient(75deg,var(--color-secondary),var(--color-cm-lighten-3))_border-box] [box-shadow:-8px_0_8px_0_var(--color-prev-16)_inset,8px_0_8px_0_var(--color-secondary-24)_inset,0_0_8px_0_var(--color-cm-16)_inset] hover:[background:linear-gradient(var(--color-white),var(--color-white))_padding-box,linear-gradient(75deg,var(--color-cm-lighten-3),var(--color-secondary))_border-box] [&_span]:bg-clip-text [&_span]:text-transparent [&_span]:bg-gradient-to-r [&_span]:from-cm [&_span]:to-primary [&_span]:hover:to-secondary disabled:bg-gray-background-fill-muted disabled:text-gray-foreground-onfill [&_svg]:text-cm-darken-1"},size:{sm:"min-h-8 min-w-8 px-3 py-1 has-[>svg]:px-3 [&_svg:not([class*='size-'])]:size-[13px] text-xs",md:"min-h-10 min-w-10 px-3.5 py-2 has-[>svg]:px-3.5 [&_svg:not([class*='size-'])]:size-4 text-sm",lg:"min-h-12 min-w-12 px-4 py-3 has-[>svg]:px-4 [&_svg:not([class*='size-'])]:size-6 text-md",xl:"min-h-14 min-w-14 px-[18px] py-3.5 has-[>svg]:px-[18px] [&_svg:not([class*='size-'])]:size-7 text-lg"}},defaultVariants:{variant:"regular",size:"md"}});function ie(b){var x=b,{className:e,containerClassName:a,variant:o,size:t,asChild:r=false,iconRight:s,iconLeft:i,badge:u,loading:c=false,alert:p}=x,m=d(x,["className","containerClassName","variant","size","asChild","iconRight","iconLeft","badge","loading","alert"]);let T=r?Slot.Slot:"button",L=k=>k!=null&&k!==0&&k!==""&&k!=="0",D=k=>k,M=!m.children&&(i||s||p),G=()=>p?jsxs("span",{className:n("relative mr-1 flex size-2.5",Vr[t||"md"]),children:[jsx("span",{className:"absolute inline-flex h-full w-full animate-ping rounded-full opacity-75",style:{backgroundColor:p}}),jsx("span",{className:n("relative inline-flex size-2.5 rounded-full",Vr[t||"md"]),style:{backgroundColor:p}})]}):null,P=()=>c?jsxs(Fragment,{children:[jsx(ro,{className:"[grid-area:stack]"}),jsx("span",{className:n("[grid-area:stack]",c&&"invisible"),children:m.children})]}):jsxs(Fragment,{children:[p?G():i&&D(i),m.children&&jsx("span",{children:m.children}),s&&D(s)]});return jsxs("div",{className:n("relative",a),children:[L(u)&&jsx(aa,{size:pd[t||"md"],variant:"regular",className:n("absolute -right-2 -top-1 z-10"),role:"status","aria-label":`${u}-notifications`,children:String(u)}),jsx(T,f(l({disabled:c,"aria-busy":c,"aria-live":c?"polite":void 0,"data-slot":"button",className:n(M&&cd[t||"md"],c&&"!inline-grid",Oa({variant:o,size:t,className:e}))},m),{children:P()}))]})}var za="regular",lo=createContext(null),hd=cva("flex w-full items-center justify-center px-8 py-8",{variants:{variant:{regular:"[background-image:radial-gradient(50%_100%_at_50%_0%,var(--color-primary-background-soft)_0%,transparent_100%)]",warning:"[background-image:radial-gradient(50%_100%_at_50%_0%,var(--color-feedback-warning-background-soft)_0%,transparent_100%)]",error:"[background-image:radial-gradient(50%_100%_at_50%_0%,var(--color-feedback-error-background-soft)_0%,transparent_100%)]",success:"[background-image:radial-gradient(50%_100%_at_50%_0%,var(--color-feedback-success-background-soft)_0%,transparent_100%)]"}},defaultVariants:{variant:za}}),bd=cva("flex items-center justify-center rounded-full p-4 [&_svg]:size-8",{variants:{variant:{regular:"bg-primary-background-fill text-primary-foreground-onfill",warning:"bg-yellow-background-fill text-yellow-foreground-onfill",error:"bg-red-background-fill text-red-foreground-onfill",success:"bg-green-background-fill text-green-foreground-onfill"}},defaultVariants:{variant:za}}),Cd={regular:"regular",warning:"warning",error:"error",success:"success"};function vd(a){var e=d(a,[]);return jsx(AlertDialog.Root,l({"data-slot":"alert-dialog"},e))}function Ld(a){var e=d(a,[]);return jsx(AlertDialog.Trigger,l({"data-slot":"alert-dialog-trigger"},e))}function Gr(a){var e=d(a,[]);return jsx(AlertDialog.Portal,l({"data-slot":"alert-dialog-portal"},e))}function Wr(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx(AlertDialog.Overlay,l({"data-slot":"alert-dialog-overlay",className:n("fixed inset-0 z-50 bg-black-48 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e)},a))}function Id(i){var u=i,{className:e,overlayClassName:a,variant:o=za,showCloseButton:t=false,children:r}=u,s=d(u,["className","overlayClassName","variant","showCloseButton","children"]);let c=useMemo(()=>({variant:o}),[o]);return jsx(lo.Provider,{value:c,children:jsxs(Gr,{children:[jsx(Wr,{className:a}),jsxs(AlertDialog.Content,f(l({"data-slot":"alert-dialog-content",className:n("fixed left-1/2 top-1/2 z-50 flex w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 flex-col overflow-hidden rounded-xl border bg-surface-elevated shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-1/2 data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-1/2 sm:max-w-lg",e)},s),{children:[r,t&&jsxs(AlertDialog.Cancel,{"data-slot":"alert-dialog-close",className:"focus:outline-hidden absolute right-3 top-3 rounded-pill p-1.5 hover:bg-gray-background-soft disabled:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",children:[jsx(CloseMd,{}),jsx("span",{className:"sr-only",children:"Close"})]})]}))]})})}function kd(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("div",l({"data-slot":"alert-dialog-header",className:n("flex flex-col items-center gap-3 px-8 pt-8 text-center","[[data-slot=alert-dialog-content]:has([data-slot=alert-dialog-icon])_&]:pt-0",e)},a))}function yd(t){var r=t,{className:e,children:a}=r,o=d(r,["className","children"]);var u;let s=useContext(lo),i=(u=s==null?void 0:s.variant)!=null?u:za;return jsx("div",f(l({"data-slot":"alert-dialog-icon",className:n(hd({variant:i}),e)},o),{children:jsx("div",{className:bd({variant:i}),children:a})}))}function Sd(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("div",l({"data-slot":"alert-dialog-tag",className:n("flex justify-center",e)},a))}function Pd(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx(AlertDialog.Title,l({"data-slot":"alert-dialog-title",className:n("text-title-sm font-semibold leading-title-sm text-content-title",e)},a))}function wd(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx(AlertDialog.Description,l({"data-slot":"alert-dialog-description",className:n("text-md leading-md text-content-paragraph",e)},a))}function Td(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("div",l({"data-slot":"alert-dialog-footer",className:n("flex flex-row items-center justify-center gap-4 px-8 pb-8 pt-6",e)},a))}function Ad(r){var s=r,{className:e,variant:a,size:o="lg"}=s,t=d(s,["className","variant","size"]);var c;let i=useContext(lo);process.env.NODE_ENV!=="production"&&!i&&a===void 0&&console.warn("[AlertDialogAction] used outside of AlertDialogContent \u2014 variant context unavailable, falling back to 'regular'.");let u=a!=null?a:Cd[(c=i==null?void 0:i.variant)!=null?c:za];return jsx(AlertDialog.Action,l({className:n(Oa({variant:u,size:o}),e)},t))}function Rd(r){var s=r,{className:e,variant:a="regular-soft",size:o="lg"}=s,t=d(s,["className","variant","size"]);return jsx(AlertDialog.Cancel,l({className:n(Oa({variant:a,size:o}),e)},t))}var Dd=0;function Md(){return `medway-id-${++Dd}`}var Bd=E.useId||(()=>{});function Ae(){let e=Bd(),[a]=E.useState(()=>e!=null?e:Md());return a}var Nd=/[\\\/_+.#"@\[\(\{&]/,Fd=/[\\\/_+.#"@\[\(\{&]/g,Ed=/[\s-]/,Kr=/[\s-]/g;function no(e,a,o,t,r,s,i){if(s===a.length)return r===e.length?1:.99;let u=`${r},${s}`;if(i[u]!==void 0)return i[u];let c=t.charAt(s),p=o.indexOf(c,r),m=0,b,x,T,L;for(;p>=0;)b=no(e,a,o,t,p+1,s+1,i),b>m&&(p===r?b*=1:Nd.test(e.charAt(p-1))?(b*=.8,T=e.slice(r,p-1).match(Fd),T&&r>0&&(b*=Math.pow(.999,T.length))):Ed.test(e.charAt(p-1))?(b*=.9,L=e.slice(r,p-1).match(Kr),L&&r>0&&(b*=Math.pow(.999,L.length))):(b*=.17,r>0&&(b*=Math.pow(.999,p-r))),e.charAt(p)!==a.charAt(s)&&(b*=.9999)),(b<.1&&o.charAt(p-1)===t.charAt(s+1)||t.charAt(s+1)===t.charAt(s)&&o.charAt(p-1)!==t.charAt(s))&&(x=no(e,a,o,t,p+1,s+2,i),x*.1>b&&(b=x*.1)),b>m&&(m=b),p=o.indexOf(c,p+1);return i[u]=m,m}function Xr(e){return e.toLowerCase().replace(Kr," ")}function jr(e,a,o){return e=o&&o.length>0?`${e+" "+o.join(" ")}`:e,no(e,a,Xr(e),Xr(a),0,0,{})}var Ha='[cmdk-group=""]',io='[cmdk-group-items=""]',Od='[cmdk-group-heading=""]',Qr='[cmdk-item=""]',Zr=`${Qr}:not([aria-disabled="true"])`,uo="cmdk-item-select",ma="data-value",zd=(e,a,o)=>jr(e,a,o),$r=E.createContext(void 0),qa=()=>E.useContext($r),Jr=E.createContext(void 0),fo=()=>E.useContext(Jr),Yr=E.createContext(void 0),es=E.forwardRef((e,a)=>{let o=ga(()=>{var h,O;return {search:"",value:(O=(h=e.value)!=null?h:e.defaultValue)!=null?O:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),t=ga(()=>new Set),r=ga(()=>new Map),s=ga(()=>new Map),i=ga(()=>new Set),u=ds(e),fe=e,{label:c,children:p,value:m,onValueChange:b,filter:x,shouldFilter:T,loop:L,disablePointerSelection:D=false,vimBindings:M=true}=fe,G=d(fe,["label","children","value","onValueChange","filter","shouldFilter","loop","disablePointerSelection","vimBindings"]),P=Ae(),k=Ae(),j=Ae(),z=E.useRef(null),g=qd();je(()=>{if(m!==void 0){let h=m.trim();o.current.value=h,I.emit();}},[m]),je(()=>{g(6,ye);},[]);let I=E.useMemo(()=>({subscribe:h=>(i.current.add(h),()=>i.current.delete(h)),snapshot:()=>o.current,setState:(h,O,S)=>{var y,V,Y,q,le,B;if(!Object.is(o.current[h],O)){if(o.current[h]=O,h==="search")be(),W(),g(1,Q);else if(h==="value"){if((y=document.activeElement)!=null&&y.hasAttribute("cmdk-input")||(V=document.activeElement)!=null&&V.hasAttribute("cmdk-root")){let v=document.getElementById(j);v?v.focus():(Y=document.getElementById(P))==null||Y.focus();}if(g(7,()=>{var v;o.current.selectedItemId=(v=me())==null?void 0:v.id,I.emit();}),S||g(5,ye),((q=u.current)==null?void 0:q.value)!==void 0){let v=O!=null?O:"";(B=(le=u.current).onValueChange)==null||B.call(le,v);return}}I.emit();}},emit:()=>{i.current.forEach(h=>h());}}),[]),C=E.useMemo(()=>({value:(h,O,S)=>{var y;O!==((y=s.current.get(h))==null?void 0:y.value)&&(s.current.set(h,{value:O,keywords:S}),o.current.filtered.items.set(h,X(O,S)),g(2,()=>{W(),I.emit();}));},item:(h,O)=>(t.current.add(h),O&&(r.current.has(O)?r.current.get(O).add(h):r.current.set(O,new Set([h]))),g(3,()=>{be(),W(),o.current.value||Q(),I.emit();}),()=>{s.current.delete(h),t.current.delete(h),o.current.filtered.items.delete(h);let S=me();g(4,()=>{be(),(S==null?void 0:S.getAttribute("id"))===h&&Q(),I.emit();});}),group:h=>(r.current.has(h)||r.current.set(h,new Set),()=>{s.current.delete(h),r.current.delete(h);}),filter:()=>u.current.shouldFilter!==false,label:c||e["aria-label"]||"",getDisablePointerSelection:()=>!!u.current.disablePointerSelection,listId:P,inputId:j,labelId:k,listInnerRef:z}),[]);function X(h,O){var y,V;let S=(V=(y=u.current)==null?void 0:y.filter)!=null?V:zd;return h?S(h,o.current.search,O):0}function W(){if(!o.current.search||u.current.shouldFilter===false)return;let h=o.current.filtered.items,O=[];o.current.filtered.groups.forEach(y=>{let V=r.current.get(y),Y=0;V==null||V.forEach(q=>{let le=h.get(q);Y=Math.max(le!=null?le:0,Y);}),O.push([y,Y]);});let S=z.current;J().sort((y,V)=>{var le,B;let Y=y.getAttribute("id"),q=V.getAttribute("id");return ((le=h.get(q))!=null?le:0)-((B=h.get(Y))!=null?B:0)}).forEach(y=>{let V=y.closest(io);V?V.appendChild(y.parentElement===V?y:y.closest(`${io} > *`)):S==null||S.appendChild(y.parentElement===S?y:y.closest(`${io} > *`));}),O.sort((y,V)=>V[1]-y[1]).forEach(y=>{var Y,q;let V=(Y=z.current)==null?void 0:Y.querySelector(`${Ha}[${ma}="${encodeURIComponent(y[0])}"]`);(q=V==null?void 0:V.parentElement)==null||q.appendChild(V);});}function Q(){let h=J().find(S=>S.getAttribute("aria-disabled")!=="true"),O=h==null?void 0:h.getAttribute(ma);I.setState("value",O||void 0);}function be(){var O,S,y,V,Y;if(!o.current.search||u.current.shouldFilter===false){o.current.filtered.count=t.current.size;return}o.current.filtered.groups=new Set;let h=0;for(let q of t.current){let le=(S=(O=s.current.get(q))==null?void 0:O.value)!=null?S:"",B=(V=(y=s.current.get(q))==null?void 0:y.keywords)!=null?V:[],v=X(le,B);o.current.filtered.items.set(q,v),v>0&&h++;}for(let[q,le]of r.current)for(let B of le)if(((Y=o.current.filtered.items.get(B))!=null?Y:0)>0){o.current.filtered.groups.add(q);break}o.current.filtered.count=h;}function ye(){var O,S,y;let h=me();h&&(((O=h.parentElement)==null?void 0:O.firstChild)===h&&((y=(S=h.closest(Ha))==null?void 0:S.querySelector(Od))==null||y.scrollIntoView({block:"nearest"})),h.scrollIntoView({block:"nearest"}));}function me(){var h;return (h=z.current)==null?void 0:h.querySelector(`${Qr}[aria-selected="true"]`)}function J(){var h;return Array.from(((h=z.current)==null?void 0:h.querySelectorAll(Zr))||[])}function re(h){let S=J()[h];S&&I.setState("value",S.getAttribute(ma));}function se(h){var Y;let O=me(),S=J(),y=S.findIndex(q=>q===O),V=S[y+h];(Y=u.current)!=null&&Y.loop&&(V=y+h<0?S[S.length-1]:y+h===S.length?S[0]:S[y+h]),V&&I.setState("value",V.getAttribute(ma));}function Be(h){let O=me(),S=O==null?void 0:O.closest(Ha),y;for(;S&&!y;)S=h>0?Hd(S,Ha):Vd(S,Ha),y=S==null?void 0:S.querySelector(Zr);y?I.setState("value",y.getAttribute(ma)):se(h);}let Ne=()=>re(J().length-1),R=h=>{h.preventDefault(),h.metaKey?Ne():h.altKey?Be(1):se(1);},ne=h=>{h.preventDefault(),h.metaKey?re(0):h.altKey?Be(-1):se(-1);};return jsxs("div",f(l({ref:a,tabIndex:-1},G),{"cmdk-root":"",onKeyDown:h=>{var S;(S=G.onKeyDown)==null||S.call(G,h);let O=h.nativeEvent.isComposing||h.keyCode===229;if(!(h.defaultPrevented||O))switch(h.key){case "n":case "j":{M&&h.ctrlKey&&R(h);break}case "ArrowDown":{R(h);break}case "p":case "k":{M&&h.ctrlKey&&ne(h);break}case "ArrowUp":{ne(h);break}case "Home":{h.preventDefault(),re(0);break}case "End":{h.preventDefault(),Ne();break}case "Enter":{h.preventDefault();let y=me();if(y){let V=new Event(uo);y.dispatchEvent(V);}}}},children:[jsx("label",{"cmdk-label":"",htmlFor:C.inputId,id:C.labelId,style:Ud,children:c}),gt(e,h=>jsx(Jr.Provider,{value:I,children:jsx($r.Provider,{value:C,children:h})}))]}))});es.displayName="Command";var as=E.forwardRef((e,a)=>{var j,z;let o=Ae(),t=E.useRef(null),r=E.useContext(Yr),s=qa(),i=ds(e),u=(z=(j=i.current)==null?void 0:j.forceMount)!=null?z:r==null?void 0:r.forceMount;je(()=>{if(!u)return s.item(o,r==null?void 0:r.id)},[u]);let c=is(o,t,[e.value,e.children,t],e.keywords),p=fo(),m=Ze(I=>I.value&&I.value===c.current),b=Ze(I=>{var C;return u||s.filter()===false?true:I.search?((C=I.filtered.items.get(o))!=null?C:0)>0:true});E.useEffect(()=>{let I=t.current;if(!(!I||e.disabled))return I.addEventListener(uo,x),()=>I.removeEventListener(uo,x)},[b,e.onSelect,e.disabled]);function x(){var I,C,X;T(),(X=(C=i.current).onSelect)==null||X.call(C,(I=c.current)!=null?I:"");}function T(){var I;p.setState("value",(I=c.current)!=null?I:"",true);}if(!b)return null;let g=e,{disabled:L,value:D,onSelect:M,forceMount:G,keywords:P}=g,k=d(g,["disabled","value","onSelect","forceMount","keywords"]);return jsx("div",f(l({ref:Va(t,a)},k),{id:o,"cmdk-item":"",role:"option","aria-disabled":!!L,"aria-selected":!!m,"data-disabled":!!L,"data-selected":!!m,onPointerMove:L||s.getDisablePointerSelection()?void 0:T,onClick:L?void 0:x,children:e.children}))});as.displayName="Item";var ts=E.forwardRef((e,a)=>{let T=e,{heading:o,children:t,forceMount:r}=T,s=d(T,["heading","children","forceMount"]),i=Ae(),u=E.useRef(null),c=E.useRef(null),p=Ae(),m=qa(),b=Ze(L=>r||m.filter()===false?true:L.search?L.filtered.groups.has(i):true);je(()=>m.group(i),[]),is(i,u,[e.value,e.heading,c]);let x=E.useMemo(()=>({id:i,forceMount:r}),[r]);return jsxs("div",f(l({ref:Va(u,a)},s),{"cmdk-group":"",role:"presentation",hidden:b?void 0:true,children:[o&&jsx("div",{ref:c,"cmdk-group-heading":"","aria-hidden":true,id:p,children:o}),gt(e,L=>jsx("div",{"cmdk-group-items":"",role:"group","aria-labelledby":o?p:void 0,children:jsx(Yr.Provider,{value:x,children:L})}))]}))});ts.displayName="Group";var os=E.forwardRef((e,a)=>{let i=e,{alwaysRender:o}=i,t=d(i,["alwaysRender"]),r=E.useRef(null),s=Ze(u=>!u.search);return !o&&!s?null:jsx("div",f(l({ref:Va(r,a)},t),{"cmdk-separator":"",role:"separator"}))});os.displayName="Separator";var rs=E.forwardRef((e,a)=>{let p=e,{onValueChange:o}=p,t=d(p,["onValueChange"]),r=e.value!=null,s=fo(),i=Ze(m=>m.search),u=Ze(m=>m.selectedItemId),c=qa();return E.useEffect(()=>{e.value!=null&&s.setState("search",e.value);},[e.value]),jsx("input",f(l({ref:a},t),{"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:false,"aria-autocomplete":"list",role:"combobox","aria-expanded":true,"aria-controls":c.listId,"aria-labelledby":c.labelId,"aria-activedescendant":u,id:c.inputId,type:"text",value:r?e.value:i,onChange:m=>{r||s.setState("search",m.target.value),o==null||o(m.target.value);}}))});rs.displayName="Input";var ss=E.forwardRef((e,a)=>{let p=e,{children:o,label:t="Suggestions"}=p,r=d(p,["children","label"]),s=E.useRef(null),i=E.useRef(null),u=Ze(m=>m.selectedItemId),c=qa();return E.useEffect(()=>{if(i.current&&s.current){let m=i.current,b=s.current,x,T=new ResizeObserver(()=>{x=requestAnimationFrame(()=>{let L=m.offsetHeight;b.style.setProperty("--cmdk-list-height",L.toFixed(1)+"px");});});return T.observe(m),()=>{cancelAnimationFrame(x),T.unobserve(m);}}},[]),E.useEffect(()=>{let m=s.current;if(!m)return;let b=x=>{m.contains(x.target)&&x.stopPropagation();};return document.addEventListener("wheel",b,{capture:true}),()=>{document.removeEventListener("wheel",b,{capture:true});}},[]),jsx("div",f(l({ref:Va(s,a)},r),{"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":u,"aria-label":t,id:c.listId,children:gt(e,m=>jsx("div",{ref:Va(i,c.listInnerRef),"cmdk-list-sizer":"",children:m}))}))});ss.displayName="List";var ls=E.forwardRef((e,a)=>Ze(t=>t.filtered.count===0)?jsx("div",f(l({ref:a},e),{"cmdk-empty":"",role:"presentation"})):null);ls.displayName="Empty";var ns=E.forwardRef((e,a)=>{let i=e,{progress:o,children:t,label:r="Loading..."}=i,s=d(i,["progress","children","label"]);return jsx("div",f(l({ref:a},s),{"cmdk-loading":"",role:"progressbar","aria-valuenow":o,"aria-valuemin":0,"aria-valuemax":100,"aria-label":r,children:gt(e,u=>jsx("div",{"aria-hidden":true,children:u}))}))});ns.displayName="Loading";var oa=Object.assign(es,{List:ss,Item:as,Input:rs,Group:ts,Separator:os,Empty:ls,Loading:ns});function Hd(e,a){let o=e.nextElementSibling;for(;o;){if(o.matches(a))return o;o=o.nextElementSibling;}}function Vd(e,a){let o=e.previousElementSibling;for(;o;){if(o.matches(a))return o;o=o.previousElementSibling;}}function ds(e){let a=E.useRef(e);return je(()=>{a.current=e;}),a}var je=typeof window=="undefined"?E.useEffect:E.useLayoutEffect;function ga(e){let a=E.useRef(void 0);return a.current===void 0&&(a.current=e()),a}function Ze(e){let a=fo(),[,o]=E.useState({}),t=E.useRef(e(a.snapshot()));return t.current=e(a.snapshot()),je(()=>a.subscribe(()=>{let r=e(a.snapshot());Object.is(r,t.current)||(t.current=r,o({}));}),[a,e]),t.current}function is(e,a,o,t=[]){let r=E.useRef(void 0),s=qa();return je(()=>{var c;let i=(()=>{var p;for(let m of o){if(typeof m=="string")return m.trim();if(typeof m=="object"&&m!==null&&"current"in m)return m.current?(p=m.current.textContent)==null?void 0:p.trim():r.current}})(),u=t.map(p=>p.trim());s.value(e,i!=null?i:"",u),(c=a.current)==null||c.setAttribute(ma,i!=null?i:""),r.current=i;}),r}var qd=()=>{let[e,a]=E.useState(),o=ga(()=>new Map);return je(()=>{o.current.forEach(t=>t()),o.current=new Map;},[e]),(t,r)=>{o.current.set(t,r),a({});}};function _d(e){let a=e.type;return typeof a=="function"?a(e.props):"render"in a?a.render(e.props):e}function gt({asChild:e,children:a},o){return e&&E.isValidElement(a)?E.cloneElement(_d(a),{ref:a.ref},o(a.props.children)):o(a)}function Va(...e){return a=>{e.forEach(o=>{typeof o=="function"?o(a):o!=null&&typeof o=="object"&&(o.current=a);});}}var Ud={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function xa(r){var s=r,{className:e,orientation:a="horizontal",decorative:o=true}=s,t=d(s,["className","orientation","decorative"]);return jsx(Separator.Root,l({"data-slot":"separator-root",decorative:o,orientation:a,className:n("shrink-0 bg-gray-stroke-muted data-[orientation=horizontal]:h-px data-[orientation=vertical]:h-full data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px",e)},t))}function Zd(a){var e=d(a,[]);return jsx(Dialog.Root,l({"data-slot":"dialog"},e))}function Qd(a){var e=d(a,[]);return jsx(Dialog.Trigger,l({"data-slot":"dialog-trigger"},e))}function fs(a){var e=d(a,[]);return jsx(Dialog.Portal,l({"data-slot":"dialog-portal"},e))}function $d(a){var e=d(a,[]);return jsx(Dialog.Close,l({"data-slot":"dialog-close"},e))}function cs(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx(Dialog.Overlay,l({"data-slot":"dialog-overlay",className:n("fixed inset-0 z-50 bg-black-48 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e)},a))}function Jd(s){var i=s,{className:e,overlayClassName:a,children:o,showCloseButton:t=true}=i,r=d(i,["className","overlayClassName","children","showCloseButton"]);return jsxs(fs,{"data-slot":"dialog-portal",children:[jsx(cs,{className:a}),jsxs(Dialog.Content,f(l({"data-slot":"dialog-container",className:n("fixed left-1/2 top-1/2 z-50 flex max-h-[calc(100%-2rem)] w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 flex-col gap-0 overflow-y-auto rounded-xl border bg-background p-0 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-1/2 data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-1/2 sm:max-h-[85vh] sm:max-w-lg",e)},r),{children:[o,t&&jsxs(Dialog.Close,{"data-slot":"dialog-close",className:"focus:outline-hidden absolute right-3 top-3 rounded-pill p-1.5 hover:bg-gray-background-soft disabled:pointer-events-none data-[state=open]:text-gray-foreground [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",children:[jsx(CloseMd,{}),jsx("span",{className:"sr-only",children:"Close"})]})]}))]})}function Yd({containerClassName:e,className:a,children:o}){return jsx("div",{className:n("mb-auto overflow-y-auto",e),children:jsx("div",{"data-slot":"dialog-content",className:n("px-8 py-6 text-md leading-md text-primary-foreground",a),children:o})})}function ei(t){var r=t,{className:e,separator:a=false}=r,o=d(r,["className","separator"]);return jsxs(Fragment,{children:[jsx("div",l({"data-slot":"dialog-header",className:n("flex flex-col gap-2 px-8 py-6 text-center sm:text-left",e)},o)),a&&jsx(xa,{})]})}function ai(t){var r=t,{className:e,separator:a=false}=r,o=d(r,["className","separator"]);return jsxs(Fragment,{children:[a&&jsx(xa,{}),jsx("div",l({"data-slot":"dialog-footer",className:n("flex flex-col-reverse gap-2 px-8 py-6 sm:flex-row sm:justify-end",e)},o))]})}function ti(s){var i=s,{className:e,iconLeft:a,iconRight:o,children:t}=i,r=d(i,["className","iconLeft","iconRight","children"]);let u=c=>isValidElement(c)?cloneElement(c,{size:32,strokeWidth:2.2,className:"flex-shrink-0"}):c;return jsxs(Dialog.Title,f(l({"data-slot":"dialog-title",className:n("flex items-center gap-3 text-title-md font-semibold leading-title-md !text-content-title",e)},r),{children:[a&&u(a),t,o&&u(o)]}))}function oi(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx(Dialog.Description,l({"data-slot":"dialog-description",className:n("text-md leading-md text-content-paragraph",e)},a))}function ms(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx(oa,l({className:n("flex size-full flex-col overflow-hidden rounded-md bg-surface-card text-gray-foreground",e),"data-slot":"command"},a))}function gs(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxs("div",{className:"flex items-center border-b border-gray-stroke-muted px-4","cmdk-input-wrapper":"",children:[jsx(oa.Input,l({className:n("flex h-12 w-full bg-transparent py-3 text-md font-medium outline-none placeholder:text-gray-foreground-muted disabled:cursor-not-allowed disabled:opacity-50",e),"data-slot":"command-input-wrapper"},a)),jsx(SearchMagnifyingGlass,{className:"text-gray-foreground-muted",size:24})]})}function xs(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx(oa.List,l({className:n("max-h-80 flex-1 overflow-y-auto overflow-x-hidden",e),"data-slot":"command-list","data-radix-scroll-area":""},a))}function hs(a){var e=d(a,[]);return jsx(oa.Empty,l({className:"py-6 text-center text-sm","data-slot":"command-empty"},e))}function bs(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx(oa.Group,l({className:n("overflow-hidden p-2 text-gray-foreground [&_[cmdk-group-heading]]:px-3 [&_[cmdk-group-heading]]:py-2 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-gray-foreground-muted",e),"data-slot":"command-group"},a))}function Cs(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx(oa.Item,l({className:n("outline-hidden relative flex cursor-default select-none items-center gap-3 rounded-md px-2 py-1.5 text-sm data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",e),"data-slot":"command-item"},a))}function vs(a){var e=d(a,[]);return jsx(Popover.Root,l({"data-slot":"popover"},e))}function Ls(a){var e=d(a,[]);return jsx(Popover.Trigger,l({"data-slot":"popover-trigger"},e))}function Is(s){var i=s,{className:e,align:a="center",sideOffset:o=4,showArrow:t=false}=i,r=d(i,["className","align","sideOffset","showArrow"]);return jsx(Popover.Portal,{children:jsxs(Popover.Content,f(l({align:a,className:n("outline-hidden z-50 w-72 rounded-md border bg-surface-card p-4 text-gray-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),"data-slot":"popover-content",sideOffset:o},r),{children:[r.children,t&&jsx(Popover.Arrow,{className:"-my-px fill-gray-foreground drop-shadow-[0_1px_0_var(--border)]"})]}))})}var Ca=createContext({invalid:false,disabled:false,open:false,setOpen:()=>{},values:[],toggleValue:()=>{},onCancelSelection:()=>{},listId:""});function ui({children:e,invalid:a=false,disabled:o=false,values:t,onValuesChange:r,open:s,onOpenChange:i,defaultValues:u=[]}){let[c,p]=useState(u),[m,b]=useState(false),[x,T]=useState([]),L=t!==void 0,D=s!==void 0,M=L?t:c,G=D?s:m,P=g=>{let I=M.includes(g)?M.filter(C=>C!==g):[...M,g];L||p(I),r==null||r(I);},k=g=>{o||(g&&T(M),D||b(g),i==null||i(g));},j=()=>{L||p(x),r==null||r(x);},z=Ae();return jsx(Ca.Provider,{value:{invalid:a,disabled:o,open:G,setOpen:k,values:M,toggleValue:P,onCancelSelection:j,listId:z},children:jsx(vs,{open:G,onOpenChange:k,children:e})})}function fi(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("div",l({className:n("group relative flex flex-col gap-2",e),"data-slot":"autocomplete-wrapper"},a))}function ci(r){var s=r,{className:e,placeholder:a="Selecione uma op\xE7\xE3o",children:o}=s,t=d(s,["className","placeholder","children"]);let{invalid:i,disabled:u,open:c,values:p,listId:m}=useContext(Ca),b=Ae(),x=p.length>0;return jsx(Ls,{asChild:true,children:jsxs("button",f(l({"aria-controls":m,"aria-expanded":c,"aria-invalid":i||void 0,className:n("shadow-xs flex h-12 max-h-12 w-full items-center justify-between gap-2 rounded-md border-2 border-gray-stroke-muted bg-surface-card px-4 py-3 text-left text-md text-gray-foreground outline-none transition-[color,box-shadow] hover:border-gray-stroke-emphasis hover:ring-[3px] hover:ring-state-focus disabled:cursor-default disabled:bg-gray-background-soft-muted disabled:hover:border-gray-stroke-muted disabled:hover:ring-0 aria-[invalid]:border-feedback-error-stroke aria-[invalid]:hover:ring-[3px] aria-[invalid]:hover:ring-state-error [&>span]:line-clamp-1 [&_svg]:pointer-events-none [&_svg]:shrink-0",x&&!i&&"border-gray-stroke-emphasis",e),"data-slot":"autocomplete-trigger","data-placeholder":"",disabled:u,id:b,role:"combobox",type:"button"},t),{children:[jsx("span",{className:"truncate text-gray-foreground-emphasis",children:o!=null?o:a}),jsx(ChevronDown,{"aria-hidden":"true",className:"shrink-0 text-gray-foreground",size:24,strokeWidth:1.6})]}))})}function po({className:e,cancelLabel:a="Cancelar",confirmLabel:o="Concluir",onCancel:t,onConfirm:r}){let{setOpen:s,onCancelSelection:i,values:u}=useContext(Ca);return jsxs("div",{className:n("flex items-center justify-between border-t border-gray-stroke-muted px-4 py-3",e),"data-slot":"autocomplete-content-footer",children:[jsx(ie,{size:"sm",variant:"regular-soft",onClick:()=>{i(),t==null||t(),s(false);},children:a}),jsx(ie,{size:"sm",variant:"emphasis",iconLeft:jsx(Check,{strokeWidth:2.6}),onClick:()=>{r==null||r(u),s(false);},children:o})]})}function pi({children:e,className:a,searchPlaceholder:o="Buscar...",emptyMessage:t="Nenhum resultado encontrado"}){let r=Children.toArray(e),s=r.filter(u=>isValidElement(u)&&u.type===po),i=r.filter(u=>!(isValidElement(u)&&u.type===po));return jsxs(Is,{align:"start",className:n("w-full min-w-[var(--radix-popper-anchor-width)] border-gray-stroke-muted p-0",a),children:[jsxs(ms,{children:[jsx(gs,{placeholder:o}),jsxs(xs,{id:useContext(Ca).listId,children:[jsx(hs,{children:t}),i]})]}),s]})}function mi({children:e,value:a,name:o,className:t,disabled:r=false}){let{values:s,toggleValue:i}=useContext(Ca),u=s.includes(a);return jsxs(Cs,{className:n("relative flex w-full cursor-default select-none items-center gap-3 rounded px-2 py-2.5 text-base font-medium text-gray-foreground outline-none hover:cursor-pointer hover:bg-secondary-background-soft-emphasis data-[selected=true]:bg-secondary-background-soft-emphasis",t),disabled:r,onSelect:()=>{i(a);},value:a,keywords:o?[o]:void 0,children:[jsx("span",{className:n("inline-flex size-[18px] shrink-0 items-center justify-center rounded-sm border-2 transition-all",u?"border-primary-background-fill bg-primary-background-fill":"border-gray-stroke-muted bg-surface-card"),children:u&&jsx(Check,{size:12,strokeWidth:2.6,className:"text-primary-foreground-onfill"})}),e]})}function gi(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx(bs,l({className:e},a))}function xi(o){var t=o,{className:e}=t,a=d(t,["className"]);let{invalid:r}=useContext(Ca);return jsx("span",l({className:n("-mt-1 text-xs",r?"text-feedback-error-foreground":"text-gray-foreground",e),"data-slot":"autocomplete-text"},a))}var Ci={sm:"sm",md:"md",lg:"md",xl:"lg"},Ss=cva("relative flex shrink-0 overflow-hidden rounded-full",{variants:{size:{sm:"size-8",md:"size-10",lg:"size-12",xl:"size-14"}},defaultVariants:{size:"md"}});function go(s){var i=s,{className:e,size:a,badge:o,children:t}=i,r=d(i,["className","size","badge","children"]);return jsxs("div",{className:"relative",children:[o&&jsx(aa,{size:Ci[a||"md"],className:n("absolute -right-2 -top-1 z-10"),children:String(o)}),jsx(Avatar.Root,f(l({"data-slot":"avatar",className:n(Ss({size:a,className:e}))},r),{children:t}))]})}function xo(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx(Avatar.Image,l({"data-slot":"avatar-image",className:n("size-full object-cover",e)},a))}function ho(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx(Avatar.Fallback,f(l({"data-slot":"avatar-fallback",className:n("flex size-full items-center justify-center rounded-full bg-gray-background-soft text-sm font-semibold text-primary-foreground",e)},a),{children:a.children?a.children:jsx(User,{className:"size-1/2"})}))}function Wa(a){var e=d(a,[]);return jsx("nav",l({"aria-label":"breadcrumb","data-slot":"breadcrumb"},e))}function Xa(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("ol",l({className:n("line-clamp-1 flex flex-wrap items-center gap-1.5 text-sm font-medium text-gray-foreground [&_svg]:shrink-0",e),"data-slot":"breadcrumb-list"},a))}function ht(r){var s=r,{className:e,icon:a,children:o}=s,t=d(s,["className","icon","children"]);return jsx("li",f(l({className:n("inline-flex items-center gap-1.5 [&_svg]:text-primary-foreground",e),"data-slot":"breadcrumb-item"},t),{children:jsxs("span",{className:"inline-flex items-center gap-2",children:[a&&a,o]})}))}function yi(t){var r=t,{asChild:e,className:a}=r,o=d(r,["asChild","className"]);let s=e?Slot.Root:"a";return jsx(s,l({className:n("transition-colors hover:underline",a),"data-slot":"breadcrumb-link"},o))}function bo(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("span",l({"aria-current":"page","aria-disabled":"true",className:n("font-semibold text-primary-foreground",e),"data-slot":"breadcrumb-page",role:"link"},a))}function Co(t){var r=t,{children:e,className:a}=r,o=d(r,["children","className"]);return jsx("li",f(l({"aria-hidden":"true",className:a,"data-slot":"breadcrumb-separator",role:"presentation"},o),{children:e!=null?e:jsx(ChevronRightMd,{className:"text-gray-foreground",strokeWidth:1.33,size:20})}))}function Si(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsxs("span",f(l({"aria-hidden":"true",className:n("flex size-5 items-center justify-center",e),"data-slot":"breadcrumb-ellipsis",role:"presentation"},a),{children:[jsx(MoreHorizontal,{className:"text-gray-foreground",size:18}),jsx("span",{className:"sr-only",children:"More"})]}))}function sa(s){var i=s,{className:e,indicatorClassName:a,label:o,value:t}=i,r=d(i,["className","indicatorClassName","label","value"]);let u=Math.round(t||0);return jsxs("div",{className:"flex w-full flex-col gap-2",children:[o&&jsxs("div",{"data-slot":"progress-label",className:"text-xs font-medium text-gray-foreground-muted",children:[jsxs("span",{className:"font-semibold text-gray-foreground",children:[u,"%"]})," ",jsx("span",{children:o})]}),jsx(Progress.Root,f(l({"data-slot":"progress",className:n("relative flex h-px w-full overflow-x-clip rounded-pill bg-gray-stroke-muted",e)},r),{children:jsx(Progress.Indicator,{"data-slot":"progress-indicator",className:n("relative -top-[0.5px] flex h-0.5 w-full flex-1 bg-primary-stroke transition-all",a),style:{transform:`translateX(-${100-(t||0)}%)`}})}))]})}function Io(m){var b=m,{className:e,indicatorClassName:a,trackClassName:o,valueClassName:t,label:r,labelClassName:s,value:i=0,size:u=96,strokeWidth:c=2}=b,p=d(b,["className","indicatorClassName","trackClassName","valueClassName","label","labelClassName","value","size","strokeWidth"]);let x=typeof i=="string",T=x?0:Math.round(i),L=(u-c)/2,D=L*2*Math.PI,M=D-T/100*D,G=Math.max(18,Math.min(u/5)),P=Math.max(10,Math.min(u/9,16));return jsxs("div",f(l({"data-slot":"progress-circle",className:n("relative inline-flex items-center justify-center",e),style:{width:u,height:u}},p),{children:[jsxs("svg",{className:"absolute inset-0 -rotate-90",width:u,height:u,viewBox:`0 0 ${u} ${u}`,children:[jsx("circle",{"data-slot":"progress-circle-track",cx:u/2,cy:u/2,r:L,stroke:"currentColor",strokeWidth:c,fill:"none",className:n("text-gray-stroke-muted",o)}),jsx("circle",{"data-slot":"progress-circle-indicator",cx:u/2,cy:u/2,r:L,stroke:"currentColor",strokeWidth:c,fill:"none",strokeDasharray:D,strokeDashoffset:M,strokeLinecap:"round",className:n("text-primary-stroke transition-all duration-300 ease-in-out",a)})]}),jsxs("div",{"data-slot":"progress-circle-content",className:"relative z-10 flex flex-col items-center justify-center px-2 text-sm font-medium text-gray-foreground-muted",children:[jsxs("div",{children:[jsx("span",{className:n("mr-px font-semibold",t),style:{fontSize:`${G}px`},children:i}),!x&&"%"]}),r&&jsx("div",{"data-slot":"progress-circle-label",className:n("text-center font-medium leading-tight text-gray-foreground-muted",s),style:{fontSize:`${P}px`},children:r})]})]}))}var Ts=cva("inline-flex items-center justify-center rounded-md px-2 py-1 text-xs font-semibold w-fit whitespace-nowrap shrink-0 gap-1.5 transition-colors overflow-hidden max-h-6",{variants:{variant:{regular:"bg-primary-background-fill text-primary-foreground-onfill fill-primary-foreground-onfill","regular-soft":"bg-primary-background-soft text-primary-foreground fill-primary-foreground","regular-basic":"bg-transparent text-primary-foreground fill-primary-foreground",emphasis:"bg-secondary-background-fill text-secondary-foreground-onfill fill-secondary-foreground-onfill","emphasis-soft":"bg-secondary-background-soft text-secondary-foreground fill-secondary-foreground","emphasis-basic":"bg-transparent text-secondary-foreground fill-secondary-foreground",gray:"bg-gray-background-fill text-gray-foreground-onfill fill-gray-foreground-onfill","gray-soft":"bg-gray-background-soft text-gray-foreground fill-gray-foreground","gray-basic":"bg-transparent text-gray-foreground fill-gray-foreground",success:"bg-green-background-fill text-green-foreground-onfill fill-green-foreground-onfill","success-soft":"bg-green-background-soft text-green-foreground fill-green-foreground","success-basic":"bg-transparent text-green-foreground fill-green-foreground",error:"bg-red-background-fill text-red-foreground-onfill fill-red-foreground-onfill","error-soft":"bg-red-background-soft text-red-foreground fill-red-foreground","error-basic":"bg-transparent text-red-foreground fill-red-foreground",warning:"bg-yellow-background-fill text-yellow-foreground-onfill fill-yellow-foreground-onfill","warning-soft":"bg-yellow-background-soft text-yellow-foreground fill-yellow-foreground","warning-basic":"bg-transparent text-yellow-foreground fill-yellow-foreground",cm:"bg-cm-background-fill text-cm-foreground-onfill fill-cm-foreground-onfill","cm-soft":"bg-cm-background-soft text-cm-foreground fill-cm-foreground","cm-basic":"bg-transparent text-cm-foreground fill-cm-foreground",go:"bg-go-background-fill text-go-foreground-onfill fill-go-foreground-onfill","go-soft":"bg-go-background-soft text-go-foreground fill-go-foreground","go-basic":"bg-transparent text-go-foreground fill-go-foreground",cir:"bg-cir-background-fill text-cir-foreground-onfill fill-cir-foreground-onfill","cir-soft":"bg-cir-background-soft text-cir-foreground fill-cir-foreground","cir-basic":"bg-transparent text-cir-foreground fill-cir-foreground",ped:"bg-ped-background-fill text-ped-foreground-onfill fill-ped-foreground-onfill","ped-soft":"bg-ped-background-soft text-ped-foreground fill-ped-foreground","ped-basic":"bg-transparent text-ped-foreground fill-ped-foreground",prev:"bg-prev-background-fill text-prev-foreground-onfill fill-prev-foreground-onfill","prev-soft":"bg-prev-background-soft text-prev-foreground fill-prev-foreground","prev-basic":"bg-transparent text-prev-foreground fill-prev-foreground",ia:"[background:linear-gradient(90deg,var(--color-secondary-darken-1)_0%,var(--color-cm)_100%)] text-primary-foreground-onfill fill-primary-foreground-onfill","ia-soft":"[background:linear-gradient(90deg,color-mix(in_srgb,var(--color-secondary-darken-1)_15%,transparent)_0%,color-mix(in_srgb,var(--color-cm)_15%,transparent)_100%)] text-secondary-foreground fill-secondary-foreground","ia-basic":"bg-transparent text-secondary-foreground [&_[data-slot=tag-text]]:bg-clip-text [&_[data-slot=tag-text]]:text-transparent [&_[data-slot=tag-text]]:[-webkit-background-clip:text] [&_[data-slot=tag-text]]:[background-image:linear-gradient(90deg,var(--color-secondary-darken-1)_0%,var(--color-cm)_100%)]"}},defaultVariants:{variant:"regular"}});function Ti(t){var r=t,{className:e,icon:a}=r,o=d(r,["className","icon"]);return jsx("div",f(l({"data-slot":"tag-icon",className:n("[&>svg]:size-3.5",e)},o),{children:a}))}function Se(i){var u=i,{className:e,variant:a,asChild:o=false,icon:t,children:r}=u,s=d(u,["className","variant","asChild","icon","children"]);let c=o?Slot.Slot:"span";return jsxs(c,f(l({"data-slot":"tag",className:n(Ts({variant:a}),e)},s),{children:[t&&jsx(Ti,{icon:t}),jsx("span",{"data-slot":"tag-text",children:r})]}))}var Ka=createContext(null);function Bi(s){var i=s,{className:e,done:a,postponed:o,skipped:t}=i,r=d(i,["className","done","postponed","skipped"]);let u=useMemo(()=>({done:a,postponed:o,skipped:t}),[a,o,t]);return jsx(Ka.Provider,{value:u,children:jsx("div",l({"data-slot":"card-week",className:n("flex flex-col overflow-hidden rounded-xl border border-gray-stroke-muted text-gray-foreground-muted",e)},r))})}function Ni(s){var i=s,{className:e,children:a,tag:o,tagIcon:t}=i,r=d(i,["className","children","tag","tagIcon"]);return jsxs("div",f(l({"data-slot":"card-week-breadcrumb",className:n("flex min-h-12 items-center gap-4 bg-primary-background-soft-muted px-6 py-3",e)},r),{children:[jsx(Wa,{className:"flex-1 overflow-hidden",children:jsx(Xa,{className:"flex-nowrap gap-1.5 text-xs [&>[data-slot=breadcrumb-item]:last-of-type>span]:min-w-0 [&>[data-slot=breadcrumb-item]:last-of-type>span]:overflow-hidden [&>[data-slot=breadcrumb-item]:last-of-type]:min-w-0 [&>[data-slot=breadcrumb-item]:last-of-type]:flex-1 [&>[data-slot=breadcrumb-item]:last-of-type_[data-slot=breadcrumb-page]]:truncate [&_[data-slot=breadcrumb-page]]:block",children:a})}),o&&jsx(Se,{variant:"regular-soft",icon:t,children:o})]}))}function Fi(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("div",l({"data-slot":"card-week-container",className:n("flex flex-1 flex-col gap-5 bg-surface-card px-6 py-5",e)},a))}function Ei(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("div",l({"data-slot":"card-week-header",className:n("flex justify-between [&.border-b]:pb-6",e)},a))}function Oi(o){var t=o,{className:e}=t,a=d(t,["className"]);let r=useContext(Ka),s=r==null?void 0:r.done,i=r==null?void 0:r.postponed,u=r==null?void 0:r.skipped;return jsx("div",l({"data-slot":"card-week-title",className:n("text-lg font-semibold leading-lg text-primary-foreground",(s||i||u)&&"text-primary-foreground-muted line-through",e)},a))}function zi(o){var t=o,{className:e}=t,a=d(t,["className"]);let r=useContext(Ka),s=r==null?void 0:r.done,i=r==null?void 0:r.postponed,u=r==null?void 0:r.skipped;return jsx("div",l({"data-slot":"card-week-description",className:n("text-xs font-semibold leading-xs text-gray-foreground",(s||i||u)&&"text-gray-foreground-muted",e)},a))}function Hi(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("div",l({"data-slot":"card-week-tags",className:n("flex flex-wrap items-center gap-2 [[data-slot=card-week-header]:not(:has([data-slot=card-week-progress]))+&]:mt-6",e)},a))}function Vi(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("div",f(l({"data-slot":"card-week-progress-circle",className:n("flex flex-1 justify-end",e)},a),{children:jsx(Io,l({size:104},a))}))}function qi(r){var s=r,{className:e,value:a,indicatorClassName:o}=s,t=d(s,["className","value","indicatorClassName"]);let i=useContext(Ka),u=i==null?void 0:i.done;return jsx("div",{"data-slot":"card-week-progress",className:n("flex flex-1",e),children:jsx(sa,f(l({},t),{value:u?100:a,indicatorClassName:n(u&&"bg-secondary-stroke-emphasis",o)}))})}function _i(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("div",l({"data-slot":"card-week-footer",className:n("mt-auto flex flex-col gap-2",e)},a))}function Ui(t){var r=t,{className:e,children:a}=r,o=d(r,["className","children"]);return jsx("div",f(l({"data-slot":"card-week-content",className:n("flex flex-col text-xs font-medium",e)},o),{children:a}))}function Gi(r){var s=r,{className:e,children:a,isTime:o}=s,t=d(s,["className","children","isTime"]);return jsxs("div",f(l({"data-slot":"card-week-text",className:n("flex items-center gap-1.5",o?"text-secondary-foreground":"text-gray-foreground-muted",e)},t),{children:[o&&jsx(TimeRemaining,{size:16}),jsx("span",{children:a})]}))}function Wi(o){var t=o,{className:e}=t,a=d(t,["className"]);let r=useContext(Ka),s=r==null?void 0:r.done,i=r==null?void 0:r.postponed,u=r==null?void 0:r.skipped;return !s&&!i&&!u?null:i||u?jsxs("div",f(l({"data-slot":"card-week-status",className:n("ml-auto flex items-center gap-1.5",e)},a),{children:[jsx("div",{className:"flex size-4 items-center justify-center rounded-full bg-yellow-24 text-feedback-warning-foreground",children:jsx(Check,{size:12,strokeWidth:1.67})}),jsx("div",{className:"font-semibold text-feedback-warning-foreground",children:i?"Adiado":"Pulado"})]})):jsxs("div",f(l({"data-slot":"card-week-status",className:n("ml-auto flex items-center gap-1.5",e)},a),{children:[jsx("div",{className:"flex size-4 items-center justify-center rounded-full bg-secondary-background-soft text-secondary-foreground",children:jsx(Check,{size:12,strokeWidth:1.67})}),jsx("div",{className:"font-semibold text-secondary-foreground",children:"Feito"})]}))}function Xi(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("div",l({"data-slot":"card-week-actions",className:n("flex flex-wrap items-center justify-end gap-2 pt-4",e)},a))}var Ds=cva("flex flex-col gap-4 overflow-hidden rounded-lg border border-gray-stroke-muted p-6",{variants:{variant:{default:"bg-surface-card",blocked:"bg-gray-background-soft"}},defaultVariants:{variant:"default"}}),It=cva("text-xs font-medium leading-xs text-gray-foreground-muted"),Ms=createContext(null);function kt(){var e;return (e=useContext(Ms))!=null?e:{}}function Ji(r){var s=r,{className:e,variant:a,availableDate:o}=s,t=d(s,["className","variant","availableDate"]);let i=useMemo(()=>({variant:a,availableDate:o}),[a,o]);return jsx(Ms.Provider,{value:i,children:jsx("div",l({"data-slot":"card-module",className:n(Ds({variant:a}),e)},t))})}function Yi(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("div",l({"data-slot":"card-module-header",className:n("flex flex-col",e)},a))}function eu(r){var s=r,{className:e,children:a,count:o}=s,t=d(s,["className","children","count"]);let{variant:i}=kt();return jsxs("div",f(l({"data-slot":"card-module-label",className:n("flex items-center justify-between gap-2 text-xs font-medium leading-xs",i==="blocked"?"text-gray-foreground-muted":"text-content-paragraph",e)},t),{children:[jsx("span",{children:a}),o&&jsx("span",{className:"text-sm leading-sm text-gray-foreground-muted",children:o})]}))}function au(o){var t=o,{className:e}=t,a=d(t,["className"]);let{variant:r}=kt();return jsx("div",l({"data-slot":"card-module-title",className:n("line-clamp-2 min-h-14 max-w-[70%] text-lg font-semibold",r==="blocked"?"text-primary-foreground-muted":"text-primary-foreground",e)},a))}function tu(t){var r=t,{className:e,progress:a}=r,o=d(r,["className","progress"]);let{variant:s}=kt(),i=Number.isFinite(a)?Math.min(100,Math.max(0,a)):0,u=s==="blocked"?jsx("div",{"data-slot":"card-module-status",className:It(),children:"N\xE3o iniciado"}):i>=100?jsx("div",{"data-slot":"card-module-status",className:It(),children:"Conclu\xEDdo"}):jsxs("div",{"data-slot":"card-module-status",className:It(),children:[jsxs("span",{className:"font-semibold text-gray-foreground",children:[i,"%"]})," ","de progresso"]});return jsxs("div",f(l({"data-slot":"card-module-progress",className:n("flex flex-col gap-2",e)},o),{children:[u,s!=="blocked"&&jsx(sa,{value:i,indicatorClassName:i===100?"bg-secondary-stroke-emphasis":"bg-primary-stroke"})]}))}function ou(t){var r=t,{className:e,children:a}=r,o=d(r,["className","children"]);let{variant:s,availableDate:i}=kt();return s!=="blocked"||!i?null:jsxs("div",f(l({"data-slot":"card-module-footer",className:n("flex flex-col gap-3",e)},o),{children:[jsx("div",{className:"border-t border-gray-stroke-muted"}),jsxs("div",{className:"flex items-center justify-between",children:[jsxs(Se,{variant:"gray-soft",icon:jsx(Lock,{}),children:["Dispon\xEDvel em ",i]}),a]})]}))}function ru(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx(ie,l({"data-slot":"card-module-button",size:"sm",iconLeft:jsx(ArrowRightMd,{}),className:n(e)},a))}function su(t){var r=t,{className:e,children:a}=r,o=d(r,["className","children"]);return jsx("div",f(l({"data-slot":"card-module-action",className:n("flex items-center justify-end",e)},o),{children:a}))}var Bs=createContext({animation:void 0});function So(o){var t=o,{animation:e}=t,a=d(t,["animation"]);return jsx(Bs.Provider,{value:{animation:e},children:jsx(Collapsible.Root,l({"data-slot":"collapsible"},a))})}function Po(a){var e=d(a,[]);return jsx(Collapsible.Trigger,l({"data-slot":"collapsible-trigger"},e))}function wo(o){var t=o,{className:e}=t,a=d(t,["className"]);let{animation:r}=useContext(Bs),s={accordion:"overflow-hidden data-[state=closed]:animate-collapsible-up data-[state=open]:animate-collapsible-down",fade:"data-[state=closed]:animate-fade-out data-[state=open]:animate-fade-in"};return jsx(Collapsible.Content,l({"data-slot":"collapsible-content",className:n(r&&s[r],e)},a))}var mu=cva("flex flex-col overflow-hidden rounded-2xl border border-gray-stroke-muted",{variants:{variant:{default:"bg-surface-card",blocked:"bg-gray-background-soft"}},defaultVariants:{variant:"default"}}),Ns=createContext(null);function Za(){var e;return (e=useContext(Ns))!=null?e:{}}function gu(s){var i=s,{className:e,variant:a,availableDate:o,children:t}=i,r=d(i,["className","variant","availableDate","children"]);let u=useMemo(()=>({variant:a,availableDate:o}),[a,o]);return jsx(Ns.Provider,{value:u,children:jsx(So,f(l({"data-slot":"card-topic",animation:"accordion",className:n(mu({variant:a}),e)},r),{children:t}))})}function xu(t){var r=t,{className:e,children:a}=r,o=d(r,["className","children"]);let{variant:s}=Za(),i=s==="blocked";return jsx(Po,f(l({"data-slot":"card-topic-trigger",disabled:i,className:n("group flex min-h-16 w-full select-none flex-wrap items-center gap-4 p-4 text-left","[&>*:first-child]:flex-1","disabled:pointer-events-none disabled:cursor-default",!i&&"cursor-pointer",e)},o),{children:a}))}function hu(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("div",l({"data-slot":"card-topic-column",className:n("flex flex-wrap items-center gap-4",e)},a))}function bu(t){var r=t,{className:e,children:a}=r,o=d(r,["className","children"]);let{variant:s}=Za();return jsx("div",f(l({"data-slot":"card-topic-number",className:n("flex size-[30px] shrink-0 items-center justify-center rounded-full text-md font-medium text-primary-foreground-onfill",s==="blocked"?"bg-primary-foreground-muted":"bg-primary-foreground",e)},o),{children:a}))}function Cu(o){var t=o,{className:e}=t,a=d(t,["className"]);let{variant:r}=Za();return jsx("div",l({"data-slot":"card-topic-title",className:n("min-w-0 flex-1 text-md font-semibold leading-md",r==="blocked"?"text-primary-foreground-muted":"text-primary-foreground",e)},a))}function vu(t){var r=t,{className:e,progress:a}=r,o=d(r,["className","progress"]);let{variant:s,availableDate:i}=Za();if(s==="blocked")return i?jsx("div",f(l({"data-slot":"card-topic-progress",className:n("flex",e)},o),{children:jsxs(Se,{variant:"gray-soft",icon:jsx(Lock,{"aria-hidden":true}),children:["Dispon\xEDvel em ",i]})})):null;if(a===void 0)return null;let u=Math.min(100,Math.max(0,a)),c=u>=100;return jsxs("div",f(l({"data-slot":"card-topic-progress",className:n("flex min-w-[180px] flex-col gap-2",e)},o),{children:[jsx("div",{className:"text-xs font-medium leading-xs text-gray-foreground-muted",children:c?"Conclu\xEDdo":jsxs(Fragment,{children:[jsxs("span",{className:"font-semibold text-gray-foreground",children:[u,"%"]})," de progresso"]})}),jsx(sa,{value:u,indicatorClassName:c?"bg-secondary-stroke-emphasis":"bg-primary-stroke"})]}))}function Lu(t){var r=t,{className:e,children:a}=r,o=d(r,["className","children"]);let{variant:s}=Za();return jsxs("div",f(l({"data-slot":"card-topic-count",className:n("flex shrink-0 items-center gap-2",e)},o),{children:[jsx("span",{className:"text-sm font-medium leading-sm text-gray-foreground-muted",children:a}),jsx(ChevronDown,{"aria-hidden":true,size:18,strokeWidth:2.4,className:n("shrink-0 text-gray-foreground",s!=="blocked"&&"transition-transform duration-200 group-data-[state=open]:rotate-180")})]}))}function Iu(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx(wo,l({"data-slot":"card-topic-content",className:n("px-4 pb-4",e)},a))}function wu(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("div",l({"data-slot":"card-continue",className:n("flex gap-3 bg-transparent",e)},a))}function Tu(s){var i=s,{className:e,src:a,alt:o="",children:t}=i,r=d(i,["className","src","alt","children"]);return jsx("div",f(l({"data-slot":"card-continue-image",className:n("relative h-[122px] w-[200px] shrink-0 overflow-hidden rounded-md bg-gray-background-soft",e)},r),{children:a?jsx("img",{src:a,alt:o,loading:"lazy",className:"absolute inset-0 size-full object-cover"}):t}))}function Au(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("div",l({"data-slot":"card-continue-content",className:n("flex min-w-0 flex-1 flex-col justify-between gap-2",e)},a))}function Ru(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("div",l({"data-slot":"card-continue-header",className:n("flex min-w-0 flex-col gap-1",e)},a))}function Du({items:e,className:a}){return jsx(Wa,{"data-slot":"card-continue-breadcrumb",className:"overflow-hidden",children:jsx(Xa,{className:n("flex-nowrap gap-1 text-xs font-medium leading-xs [&>[data-slot=breadcrumb-item]:last-of-type>span]:min-w-0 [&>[data-slot=breadcrumb-item]:last-of-type>span]:overflow-hidden [&>[data-slot=breadcrumb-item]:last-of-type]:min-w-0 [&>[data-slot=breadcrumb-item]:last-of-type]:flex-1 [&>[data-slot=breadcrumb-item]:last-of-type_[data-slot=breadcrumb-page]]:truncate [&_[data-slot=breadcrumb-page]]:block",a),children:e.map((o,t)=>jsx(Fragment$1,{children:t<e.length-1?jsxs(Fragment,{children:[jsx(ht,{className:"text-content-paragraph",children:o}),jsx(Co,{children:jsx(ChevronRight,{size:12,className:"text-gray-foreground"})})]}):jsx(ht,{children:jsx(bo,{className:"font-medium text-content-paragraph",children:o})})},`${o}-${t}`))})})}function Mu(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("div",l({"data-slot":"card-continue-title",className:n("line-clamp-2 text-lg font-semibold leading-lg text-primary-foreground",e)},a))}function Bu(t){var r=t,{className:e,children:a}=r,o=d(r,["className","children"]);return jsx(ie,f(l({"data-slot":"card-continue-button",variant:"emphasis-soft",size:"sm",iconRight:jsx(ArrowRightSm,{}),className:n("self-start",e)},o),{children:a}))}var Fs=cva("relative z-0 flex rounded-2xl border border-gray-stroke-muted",{variants:{variant:{default:"bg-surface-card",blocked:"bg-gray-background-soft"},orientation:{vertical:"flex-col overflow-hidden",horizontal:"flex-col overflow-hidden lg:flex-row lg:items-center"}},defaultVariants:{variant:"default",orientation:"vertical"}}),Es=createContext(null);function va(){var e;return (e=useContext(Es))!=null?e:{}}function _u(i){var u=i,{className:e,variant:a,availableDate:o,orientation:t,children:r}=u,s=d(u,["className","variant","availableDate","orientation","children"]);let c=useMemo(()=>({variant:a,availableDate:o,orientation:t}),[a,o,t]),p=jsx("div",f(l({"data-slot":"card-lesson",className:n(Fs({variant:a,orientation:t}),e)},s),{children:r})),m=a!=="blocked"&&t!=="horizontal";return jsx(Es.Provider,{value:c,children:m?jsxs("div",{"data-slot":"card-lesson-stack",className:"relative pt-[17px]",children:[jsx("div",{"aria-hidden":true,className:"pointer-events-none absolute inset-x-[34px] bottom-0 top-0 z-0 max-h-[20%] rounded-2xl border border-gray-stroke-muted bg-surface-card"}),jsx("div",{"aria-hidden":true,className:"pointer-events-none absolute inset-x-4 bottom-0 top-2 z-0 max-h-[20%] rounded-2xl border border-gray-stroke-muted bg-surface-card"}),p]}):p})}function Uu(s){var i=s,{className:e,src:a,alt:o="",children:t}=i,r=d(i,["className","src","alt","children"]);let{variant:u,orientation:c}=va(),p=c==="horizontal",m=n("h-[153px] w-full rounded-md",p&&"lg:h-[122px] lg:w-[200px]",u==="blocked"&&"opacity-20");return jsx("div",f(l({"data-slot":"card-lesson-image",className:n("px-3 pt-3",p&&"lg:shrink-0 lg:p-3",e)},r),{children:a?jsx("img",{src:a,alt:o,loading:"lazy",className:n(m,"object-cover")}):jsx("div",{className:n(m,"bg-gray-background-soft"),children:t})}))}function Gu(o){var t=o,{className:e}=t,a=d(t,["className"]);let{orientation:r}=va();return jsx("div",l({"data-slot":"card-lesson-content",className:n("flex flex-col gap-2 px-6 pt-4",r==="horizontal"&&"lg:min-w-[160px] lg:flex-1 lg:justify-center lg:gap-0 lg:px-0 lg:py-3",e)},a))}function Wu(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("div",l({"data-slot":"card-lesson-header",className:n("flex flex-col",e)},a))}function Xu(o){var t=o,{className:e}=t,a=d(t,["className"]);let{variant:r}=va();return jsx("div",l({"data-slot":"card-lesson-label",className:n("text-xs font-medium leading-xs",r==="blocked"?"text-gray-foreground-muted":"text-content-paragraph",e)},a))}function Ku(o){var t=o,{className:e}=t,a=d(t,["className"]);let{variant:r}=va();return jsx("div",l({"data-slot":"card-lesson-title",className:n("line-clamp-2 text-lg font-semibold leading-lg",r==="blocked"?"text-primary-foreground-muted":"text-primary-foreground",e)},a))}function ju(t){var r=t,{className:e,children:a}=r,o=d(r,["className","children"]);return jsx("div",f(l({"data-slot":"card-lesson-duration",className:n("flex items-center gap-1 text-sm font-medium leading-sm text-gray-foreground-muted",e)},o),{children:a}))}function Zu(t){var r=t,{className:e,children:a}=r,o=d(r,["className","children"]);let{variant:s,availableDate:i,orientation:u}=va();return jsxs("div",f(l({"data-slot":"card-lesson-footer",className:n("mt-auto flex flex-wrap items-center justify-between gap-4 px-6 pb-6 pt-4",u==="horizontal"&&"mt-0 lg:grow lg:basis-0 lg:flex-nowrap lg:justify-end lg:px-3 lg:py-3",e)},o),{children:[s==="blocked"&&i?jsxs(Se,{variant:"gray-soft",icon:jsx(Lock,{}),children:["Dispon\xEDvel em ",i]}):null,a]}))}function Qu(t){var r=t,{className:e,status:a}=r,o=d(r,["className","status"]);let s=a==="completed";return jsx(Se,f(l({"data-slot":"card-lesson-status",variant:s?"success-soft":"warning-soft",icon:s?jsx(Check,{}):void 0,className:e},o),{children:s?"Conclu\xEDdo":"Iniciado"}))}function $u(r){var s=r,{className:e,children:a,containerClassName:o}=s,t=d(s,["className","children","containerClassName"]);let{variant:i}=va();return jsx(ie,f(l({"data-slot":"card-lesson-button",variant:"regular",size:"sm",disabled:i==="blocked",containerClassName:n("[&:only-child]:ml-auto",o),className:n("rounded-full disabled:bg-gray-background-soft-muted disabled:text-gray-foreground-muted",e)},t),{children:a}))}var zs=cva("inline-flex items-center justify-center place-items-center gap-2 rounded-sm whitespace-nowrap transition-all disabled:pointer-events-none shrink-0 [&_svg]:shrink-0 hover:cursor-pointer focus:outline-0 [grid-template-areas:'stack']",{variants:{variant:{regular:"bg-surface-card border-2 border-gray-stroke-muted enabled:hover:ring-4 data-[state=unchecked]:enabled:hover:ring-state-hover data-[state=unchecked]:enabled:hover:border-gray-stroke disabled:bg-gray-background-soft-muted data-[state=checked]:bg-primary-background-fill data-[state=checked]:border-primary-background-fill data-[state=checked]:enabled:hover:bg-primary-background-fill-emphasis data-[state=checked]:enabled:hover:border-primary-background-fill-emphasis data-[state=checked]:enabled:hover:ring-state-active disabled:data-[state=checked]:bg-gray-background-soft-muted disabled:data-[state=checked]:border-gray-stroke-muted data-[state=unchecked]:enabled:hover:border-gray-stroke data-[state=checked]:enabled:hover:bg-primary-background-fill-emphasis [&:disabled_svg]:text-gray-background-fill-muted"},size:{sm:"size-4 [&_svg]:size-3",md:"size-5 [&_svg]:size-4",lg:"size-6 [&_svg]:size-5"}},defaultVariants:{variant:"regular",size:"md"}});function af(s){var i=s,{className:e,size:a,variant:o,uncheckIcon:t}=i,r=d(i,["className","size","variant","uncheckIcon"]);return jsx(Checkbox.Root,f(l({"data-slot":"checkbox",className:n("group peer",zs({size:a,variant:o}),e)},r),{children:jsx(Checkbox.Indicator,{"data-slot":"checkbox-indicator",className:"relative flex items-center justify-center",children:t?jsx(RemoveMinus,{className:n("absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 text-primary-foreground-onfill"),strokeWidth:2.6}):jsx(Check,{className:n("absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 text-primary-foreground-onfill"),strokeWidth:2.6})})}))}var Ao=768;function Qa(){let[e,a]=useState(void 0);return useEffect(()=>{let o=window.matchMedia(`(max-width: ${Ao-1}px)`),t=()=>{a(window.innerWidth<Ao);};return o.addEventListener("change",t),a(window.innerWidth<Ao),()=>o.removeEventListener("change",t)},[]),!!e}function Ro(a){var e=d(a,[]);return jsx(DropdownMenu.Root,l({"data-slot":"dropdown-menu"},e))}function sf(a){var e=d(a,[]);return jsx(DropdownMenu.Portal,l({"data-slot":"dropdown-menu-portal"},e))}function Do(a){var e=d(a,[]);return jsx(DropdownMenu.Trigger,l({className:n("cursor-pointer",e.className),"data-slot":"dropdown-menu-trigger"},e))}function Mo(r){var s=r,{className:e,sideOffset:a=4,side:o}=s,t=d(s,["className","sideOffset","side"]);let i=Qa();return jsx(DropdownMenu.Portal,{children:jsx(DropdownMenu.Content,l({"data-slot":"dropdown-menu-content",sideOffset:a,side:i?"bottom":o,className:n("max-h-(--radix-dropdown-menu-content-available-height) origin-(--radix-dropdown-menu-content-transform-origin) z-50 max-h-screen min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-surface-elevated p-3 pb-2 text-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e)},t))})}function lf(a){var e=d(a,[]);return jsx(DropdownMenu.Group,l({"data-slot":"dropdown-menu-group"},e))}function Pt(r){var s=r,{className:e,inset:a,variant:o="default"}=s,t=d(s,["className","inset","variant"]);return jsx(DropdownMenu.Item,l({"data-slot":"dropdown-menu-item","data-inset":a,"data-variant":o,className:n("data-[variant=destructive]:*:[svg]:!text-destructive outline-hidden relative flex cursor-pointer select-none items-center gap-2.5 rounded-sm px-2 py-2 text-sm font-medium text-gray-foreground hover:bg-secondary-background-soft-emphasis focus:outline-0 data-[disabled]:pointer-events-none data-[inset]:pl-8 data-[variant=destructive]:text-red-foreground data-[disabled]:opacity-50 data-[variant=destructive]:hover:bg-red-background-soft-emphasis dark:[&_img]:brightness-0 dark:[&_img]:invert [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",e)},t))}function nf(r){var s=r,{className:e,children:a,checked:o}=s,t=d(s,["className","children","checked"]);return jsxs(DropdownMenu.CheckboxItem,f(l({"data-slot":"dropdown-menu-checkbox-item",className:n("outline-hidden relative flex cursor-pointer select-none items-center gap-2 rounded-md py-2 pl-2 pr-7 text-sm font-medium text-gray-foreground hover:bg-secondary-background-soft-emphasis focus:outline-0 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:[&_img]:brightness-0 dark:[&_img]:invert [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg]:text-secondary-foreground",e),checked:o},t),{children:[jsx("span",{className:"flex min-w-0 flex-1 gap-2 break-words",children:a}),jsx("span",{className:"pointer-events-none absolute right-2 flex size-3.5 items-center justify-center",children:jsx(DropdownMenu.ItemIndicator,{children:jsx(Check,{className:"size-4"})})})]}))}function wt(a){var e=d(a,[]);return jsx(DropdownMenu.RadioGroup,l({"data-slot":"dropdown-menu-radio-group"},e))}function Bo(t){var r=t,{className:e,children:a}=r,o=d(r,["className","children"]);return jsxs(DropdownMenu.RadioItem,f(l({"data-slot":"dropdown-menu-radio-item",className:n("outline-hidden relative flex cursor-pointer select-none items-center gap-2 rounded-md py-3 pl-2 pr-7 text-sm font-medium text-gray-foreground hover:bg-secondary-background-soft-emphasis focus:outline-0 aria-checked:text-secondary-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:[&_img]:brightness-0 dark:[&_img]:invert [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:text-secondary-foreground",e)},o),{children:[jsx("span",{className:"flex min-w-0 flex-1 gap-2 break-words",children:a}),jsx("span",{className:"pointer-events-none absolute right-2 flex size-3.5 items-center justify-center",children:jsx(DropdownMenu.ItemIndicator,{children:jsx(Check,{className:"size-4"})})})]}))}function No(t){var r=t,{className:e,inset:a}=r,o=d(r,["className","inset"]);return jsx(DropdownMenu.Label,l({"data-slot":"dropdown-menu-label","data-inset":a,className:n("px-2 py-3 text-xs font-medium text-gray-foreground-muted data-[inset]:pl-8 [&:not(:first-child)]:mt-2.5",e)},o))}function Fo(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx(DropdownMenu.Separator,l({"data-slot":"dropdown-menu-separator",className:n("-mx-3 my-2 h-px bg-gray-stroke-muted",e)},a))}function df(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("span",l({"data-slot":"dropdown-menu-shortcut",className:n("ml-auto text-xs tracking-widest text-gray-foreground",e)},a))}function uf(a){var e=d(a,[]);return jsx(DropdownMenu.Sub,l({"data-slot":"dropdown-menu-sub"},e))}function ff(r){var s=r,{className:e,inset:a,children:o}=s,t=d(s,["className","inset","children"]);return jsxs(DropdownMenu.SubTrigger,f(l({"data-slot":"dropdown-menu-sub-trigger","data-inset":a,className:n("flex cursor-pointer select-none items-center rounded-sm px-2 py-2 text-sm font-medium text-gray-foreground outline-0 focus:outline-0 data-[inset]:pl-8",e)},t),{children:[o,jsx(ChevronRight,{className:"ml-auto size-3"})]}))}function cf(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx(DropdownMenu.SubContent,l({"data-slot":"dropdown-menu-sub-content",className:n("origin-(--radix-dropdown-menu-content-transform-origin) z-50 min-w-[8rem] overflow-hidden rounded-md border bg-surface-elevated p-1 text-gray-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e)},a))}var zo=createContext({invalid:false}),Xs={start:1950,end:new Date().getFullYear()};function At(e,a){let o=e.getFullYear();return o<a.start?new Date(a.start,0,1):o>a.end?new Date(a.end,11,31):e}var Ho=cva(["shadow-xs flex w-full items-center justify-between gap-2 rounded-md border-2 border-gray-stroke-muted bg-surface-card px-4 py-3 text-left text-gray-foreground outline-none transition-[color,box-shadow] enabled:hover:border-gray-stroke-emphasis enabled:hover:ring-[3px] enabled:hover:ring-state-focus disabled:pointer-events-none disabled:bg-gray-background-soft-muted disabled:text-gray-foreground-muted data-[invalid]:border-feedback-error-stroke data-[invalid]:enabled:hover:border-feedback-error-stroke data-[invalid]:enabled:hover:ring-[3px] data-[invalid]:enabled:hover:ring-state-error","group-has-[[data-slot=date-picker-label]]:data-[placeholder]:text-transparent"],{variants:{size:{lg:["h-12 max-h-12 text-md","max-sm:h-14 max-sm:text-base"],md:["h-10 max-h-10 text-sm","max-sm:h-11"]}},defaultVariants:{size:"lg"}});function xf(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("div",l({className:n("group relative flex flex-col gap-2",e),"data-slot":"date-picker-wrapper"},a))}function hf(t){var r=t,{className:e,children:a}=r,o=d(r,["className","children"]);return jsx("label",f(l({className:n("pointer-events-none absolute start-3 top-0 z-10 origin-left -translate-y-1/2 bg-surface-card px-1 text-xs font-medium text-gray-foreground transition-all duration-200 ease-out","group-has-[[data-slot=date-picker-trigger][data-placeholder]:not([data-state=open])]:start-4 group-has-[[data-slot=date-picker-trigger][data-placeholder]:not([data-state=open])]:top-6 group-has-[[data-slot=date-picker-trigger][data-placeholder]:not([data-state=open])]:bg-transparent group-has-[[data-slot=date-picker-trigger][data-placeholder]:not([data-state=open])]:px-0 group-has-[[data-slot=date-picker-trigger][data-placeholder]:not([data-state=open])]:text-md group-has-[[data-slot=date-picker-trigger][data-placeholder]:not([data-state=open])]:font-normal group-has-[[data-slot=date-picker-trigger][data-placeholder]:not([data-state=open])]:text-gray-foreground max-sm:group-has-[[data-slot=date-picker-trigger][data-placeholder]:not([data-state=open])]:top-7","group-has-[[data-slot=date-picker-trigger][data-size=md]]:group-has-[[data-slot=date-picker-trigger][data-placeholder]:not([data-state=open])]:top-5 group-has-[[data-slot=date-picker-trigger][data-size=md]]:group-has-[[data-slot=date-picker-trigger][data-placeholder]:not([data-state=open])]:!text-sm max-sm:group-has-[[data-slot=date-picker-trigger][data-size=md]]:group-has-[[data-slot=date-picker-trigger][data-placeholder]:not([data-state=open])]:top-[22px]",e),"data-slot":"date-picker-label"},o),{children:a}))}function bf(o){var t=o,{className:e}=t,a=d(t,["className"]);let{invalid:r}=useContext(zo);return jsx("span",l({className:n("-mt-1 text-xs",r?"text-feedback-error-foreground":"text-gray-foreground",e),"data-slot":"date-picker-text"},a))}function Ia(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate())}function $a(e,a){return e.getFullYear()===a.getFullYear()&&e.getMonth()===a.getMonth()&&e.getDate()===a.getDate()}function Rt(e,a){return new Date(e.getFullYear(),e.getMonth()+a,1)}function Dt(e){return new Date(e.getFullYear(),e.getMonth(),1)}function Oo(e,a){return Ia(e).getTime()<Ia(a).getTime()}function Ks(e,a){return Ia(e).getTime()>Ia(a).getTime()}function Ja(e,a,o){return !!(a&&Oo(e,a)||o&&Ks(e,o))}function js(e){return new Intl.DateTimeFormat("pt-BR",{year:"numeric",month:"2-digit",day:"2-digit"}).format(e)}var Zs=20,Qs=18;function Cf(G){var P=G,{value:e,defaultValue:a=null,onValueChange:o,placeholder:t="Pick a date",disabled:r,min:s,max:i,format:u=js,className:c,inputClassName:p,contentClassName:m,size:b="lg",yearRange:x=Xs,showYearSelector:T=true,invalid:L=false,children:D}=P,M=d(P,["value","defaultValue","onValueChange","placeholder","disabled","min","max","format","className","inputClassName","contentClassName","size","yearRange","showYearSelector","invalid","children"]);let k=e!==void 0,[j,z]=useState(a),g=k?e:j,[I,C]=useState(false),[X,W]=useState(()=>Dt(At(g!=null?g:new Date,x))),Q=useRef(null),be=useRef(null),ye=useRef(null),me=useId(),[J,re]=useState(null),se=useCallback(B=>{k||z(B),o==null||o(B);},[k,o]);useEffect(()=>{I&&W(Dt(At(g!=null?g:new Date,x)));},[I,g,x]),useEffect(()=>{I||re(null);},[I]),useEffect(()=>{if(!I)return;let B=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=B;}},[I]),useEffect(()=>{if(!J)return;let B=()=>C(false);return window.addEventListener("scroll",B,{passive:true,capture:true}),()=>window.removeEventListener("scroll",B,{capture:true})},[J]),useEffect(()=>{if(!I)return;let B=_=>{let K=Q.current,ue=ye.current;K&&_.target instanceof Node&&!K.contains(_.target)&&!(ue!=null&&ue.contains(_.target))&&C(false);},v=_=>{_.key==="Escape"&&C(false);};return window.addEventListener("pointerdown",B,{capture:true}),window.addEventListener("keydown",v),()=>{window.removeEventListener("pointerdown",B,{capture:true}),window.removeEventListener("keydown",v);}},[I]);let Be=290,Ne=()=>{var B,v,_;if(I)C(false);else {let K=(_=(B=be.current)==null?void 0:B.getBoundingClientRect())!=null?_:(v=Q.current)==null?void 0:v.getBoundingClientRect();if(K){let De=window.innerHeight-K.bottom<Be,Je=window.innerWidth,Ra=window.matchMedia("(max-width: 639px)").matches?Math.min(512,Je-16):Math.min(320,Je),Da=8,Ma=Da,Ba=Je-Ra-Da,Ge=K.left;Ge<Ma?Ge=Ma:Ge>Ba&&(Ge=Ba),re(f(l({position:"fixed"},De?{bottom:window.innerHeight-K.top+8}:{top:K.bottom+8}),{left:Ge,width:Ra,maxWidth:360}));}C(true);}},R=Ia(new Date),ne=X.getFullYear(),fe=X.getMonth(),h=new Date(ne,fe,1),O=new Date(ne,fe+1,0).getDate(),S=h.getDay(),y=g?u(g):"",V=Array.from({length:12},(B,v)=>({value:v,label:new Intl.DateTimeFormat("pt-BR",{month:"long"}).format(new Date(2e3,v,1))})),Y=Array.from({length:x.end-x.start+1},(B,v)=>x.start+v),q=B=>{W(new Date(ne,B,1));},le=B=>{W(new Date(B,fe,1));};return jsxs(zo.Provider,{value:{invalid:L},children:[jsxs("div",{ref:Q,className:n("relative inline-flex w-full",c),children:[jsxs("button",f(l(f(l({ref:be,type:"button",disabled:r,"aria-haspopup":"dialog","aria-expanded":I,"aria-controls":I?me:void 0,"data-invalid":L||void 0,"data-slot":"date-picker-trigger","data-size":b,"data-state":I?"open":"closed"},!y&&{"data-placeholder":""}),{className:n(Ho({size:b}),I&&"border-gray-stroke-emphasis ring-[3px] ring-state-focus",y&&!L&&"border-gray-stroke-emphasis ring-[3px] ring-state-focus",y&&L&&"border-feedback-error-stroke ring-[3px] ring-state-error",p),onClick:Ne}),M),{children:[jsx("span",{className:"truncate",children:y||t}),jsx(Calendar,{size:b==="md"?Qs:Zs,strokeWidth:1.6,className:"shrink-0 !text-gray-foreground","aria-hidden":"true"})]})),I&&createPortal(jsxs("div",{ref:ye,id:me,role:"dialog","aria-label":"Calend\xE1rio","data-slot":"date-picker-content",style:J!=null?J:void 0,className:n("z-50 overflow-hidden rounded-md border border-gray-stroke-muted bg-surface-elevated p-3 shadow-md",m),children:[jsxs("div",{className:"mb-3 flex items-center justify-center gap-2",children:[jsx("button",{type:"button",className:"inline-flex size-8 items-center justify-center rounded-md hover:bg-secondary-background-soft-emphasis max-sm:size-10",onClick:()=>W(B=>Rt(B,-1)),"aria-label":"M\xEAs anterior",children:jsx(ChevronLeftMd,{size:18,strokeWidth:1.8})}),jsxs("div",{className:"flex items-center gap-2",children:[jsxs("div",{className:"relative",children:[jsx("select",{value:fe,onChange:B=>q(Number(B.target.value)),className:"min-w-[7rem] appearance-none rounded-md border border-gray-stroke-muted bg-surface-card py-1 pl-2 pr-7 text-sm font-medium capitalize text-gray-foreground outline-none hover:border-gray-stroke-emphasis focus:border-gray-stroke-emphasis focus:ring-2 focus:ring-state-focus max-sm:min-w-[8rem] max-sm:py-2 max-sm:text-base","aria-label":"Selecionar m\xEAs",children:V.map(B=>jsx("option",{value:B.value,className:"capitalize",children:B.label},B.value))}),jsx(ChevronDown,{size:14,strokeWidth:1.8,className:"pointer-events-none absolute right-2 top-1/2 -translate-y-1/2 text-gray-foreground","aria-hidden":true})]}),T?jsxs("div",{className:"relative",children:[jsx("select",{value:ne,onChange:B=>le(Number(B.target.value)),className:"min-w-[5rem] appearance-none rounded-md border border-gray-stroke-muted bg-surface-card py-1 pl-2 pr-7 text-sm font-medium text-gray-foreground outline-none hover:border-gray-stroke-emphasis focus:border-gray-stroke-emphasis focus:ring-2 focus:ring-state-focus max-sm:min-w-[5.5rem] max-sm:py-2 max-sm:text-base","aria-label":"Selecionar ano",children:Y.map(B=>jsx("option",{value:B,children:B},B))}),jsx(ChevronDown,{size:14,strokeWidth:1.8,className:"pointer-events-none absolute right-2 top-1/2 -translate-y-1/2 text-gray-foreground","aria-hidden":true})]}):jsx("div",{className:"text-sm font-semibold text-gray-foreground",children:ne})]}),jsx("button",{type:"button",className:"inline-flex size-8 items-center justify-center rounded-md hover:bg-secondary-background-soft-emphasis max-sm:size-10",onClick:()=>W(B=>Rt(B,1)),"aria-label":"Pr\xF3ximo m\xEAs",children:jsx(ChevronRightMd,{size:18,strokeWidth:1.8})})]}),jsxs("div",{className:"grid grid-cols-7 gap-1 text-center text-xs font-medium text-gray-foreground-muted max-sm:text-sm",children:[jsx("div",{children:"Dom"}),jsx("div",{children:"Seg"}),jsx("div",{children:"Ter"}),jsx("div",{children:"Qua"}),jsx("div",{children:"Qui"}),jsx("div",{children:"Sex"}),jsx("div",{children:"S\xE1b"})]}),jsxs("div",{className:"mt-2 grid grid-cols-7 gap-1",children:[Array.from({length:S}).map((B,v)=>jsx("div",{},`empty-${v}`)),Array.from({length:O}).map((B,v)=>{let _=new Date(ne,fe,v+1),K=g?$a(_,g):false,ue=$a(_,R),De=r||Ja(_,s,i);return jsx("button",{type:"button",disabled:De,onClick:()=>{se(_),C(false);},className:n("inline-flex h-9 w-full items-center justify-center rounded-md text-sm font-medium outline-none transition-colors hover:bg-secondary-background-soft-emphasis disabled:pointer-events-none disabled:opacity-50 max-sm:h-11 max-sm:text-base",ue&&"ring-1 ring-gray-stroke-emphasis",K&&"bg-primary-background-fill text-primary-foreground-onfill hover:bg-primary-background-fill-emphasis"),"aria-pressed":K,children:v+1},_.toISOString())})]}),jsxs("div",{className:"mt-3 flex items-center justify-between gap-2",children:[jsx("button",{type:"button",className:"rounded-md px-2 py-1 text-xs font-medium text-gray-foreground hover:bg-secondary-background-soft-emphasis max-sm:px-3 max-sm:py-2 max-sm:text-sm",onClick:()=>{se(R),C(false);},disabled:r||Ja(R,s,i),children:"Hoje"}),jsx("button",{type:"button",className:"rounded-md px-2 py-1 text-xs font-medium text-gray-foreground hover:bg-secondary-background-soft-emphasis max-sm:px-3 max-sm:py-2 max-sm:text-sm",onClick:()=>se(null),disabled:r||!g,children:"Limpar"})]})]}),document.body)]}),D]})}function vf(G){var P=G,{value:e,defaultValue:a=null,onValueChange:o,placeholder:t="Selecionar per\xEDodo",disabled:r,min:s,max:i,format:u=js,className:c,inputClassName:p,contentClassName:m,size:b="lg",yearRange:x=Xs,showYearSelector:T=true,invalid:L=false,children:D}=P,M=d(P,["value","defaultValue","onValueChange","placeholder","disabled","min","max","format","className","inputClassName","contentClassName","size","yearRange","showYearSelector","invalid","children"]);let k=e!==void 0,[j,z]=useState(a),g=k?e:j,[I,C]=useState(false),[X,W]=useState(()=>{var v,_;return Dt(At((_=(v=g==null?void 0:g.start)!=null?v:g==null?void 0:g.end)!=null?_:new Date,x))}),Q=useRef(null),be=useRef(null),ye=useRef(null),me=useId(),[J,re]=useState(null),se=useCallback(v=>{k||z(v),o==null||o(v);},[k,o]);useEffect(()=>{var v,_;I&&W(Dt(At((_=(v=g==null?void 0:g.start)!=null?v:g==null?void 0:g.end)!=null?_:new Date,x)));},[I,g,x]),useEffect(()=>{I||re(null);},[I]),useEffect(()=>{if(!I)return;let v=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=v;}},[I]),useEffect(()=>{if(!J)return;let v=()=>C(false);return window.addEventListener("scroll",v,{passive:true,capture:true}),()=>window.removeEventListener("scroll",v,{capture:true})},[J]),useEffect(()=>{if(!I)return;let v=K=>{let ue=Q.current,De=ye.current;ue&&K.target instanceof Node&&!ue.contains(K.target)&&!(De!=null&&De.contains(K.target))&&C(false);},_=K=>{K.key==="Escape"&&C(false);};return window.addEventListener("pointerdown",v,{capture:true}),window.addEventListener("keydown",_),()=>{window.removeEventListener("pointerdown",v,{capture:true}),window.removeEventListener("keydown",_);}},[I]);let Be=330,Ne=()=>{var v,_,K;if(I)C(false);else {let ue=(K=(v=be.current)==null?void 0:v.getBoundingClientRect())!=null?K:(_=Q.current)==null?void 0:_.getBoundingClientRect();if(ue){let Je=window.innerHeight-ue.bottom<Be,pa=window.innerWidth,Da=window.matchMedia("(max-width: 639px)").matches?Math.min(512,pa-16):Math.min(320,pa),Ma=8,Ba=Ma,Ge=pa-Da-Ma,Na=ue.left;Na<Ba?Na=Ba:Na>Ge&&(Na=Ge),re(f(l({position:"fixed"},Je?{bottom:window.innerHeight-ue.top+8}:{top:ue.bottom+8}),{left:Na,width:Da,maxWidth:360}));}C(true);}},R=Ia(new Date),ne=X.getFullYear(),fe=X.getMonth(),h=new Date(ne,fe,1),O=new Date(ne,fe+1,0).getDate(),S=h.getDay(),y=Array.from({length:12},(v,_)=>({value:_,label:new Intl.DateTimeFormat("pt-BR",{month:"long"}).format(new Date(2e3,_,1))})),V=Array.from({length:x.end-x.start+1},(v,_)=>x.start+_),Y=v=>{W(new Date(ne,v,1));},q=v=>{W(new Date(v,fe,1));},le=v=>{r||Ja(v,s,i)||(!g||!g.start||g.end?se({start:v,end:null}):(Oo(v,g.start)?se({start:v,end:g.start}):se({start:g.start,end:v}),C(false)));},B=g!=null&&g.start&&(g!=null&&g.end)?`${u(g.start)} - ${u(g.end)}`:g!=null&&g.start?u(g.start):"";return jsxs(zo.Provider,{value:{invalid:L},children:[jsxs("div",{ref:Q,className:n("relative inline-flex w-full",c),children:[jsxs("button",f(l(f(l({ref:be,type:"button",disabled:r,"aria-haspopup":"dialog","aria-expanded":I,"aria-controls":I?me:void 0,"data-invalid":L||void 0,"data-slot":"date-picker-trigger","data-size":b,"data-state":I?"open":"closed"},!B&&{"data-placeholder":""}),{className:n(Ho({size:b}),I&&"border-gray-stroke-emphasis ring-[3px] ring-state-focus",B&&!L&&"border-gray-stroke-emphasis ring-[3px] ring-state-focus",B&&L&&"border-feedback-error-stroke ring-[3px] ring-state-error",p),onClick:Ne}),M),{children:[jsx("span",{className:"truncate",children:B||t}),jsx(Calendar,{size:b==="md"?Qs:Zs,strokeWidth:1.6,className:"shrink-0 !text-gray-foreground","aria-hidden":"true"})]})),I&&createPortal(jsxs("div",{ref:ye,id:me,role:"dialog","aria-label":"Calend\xE1rio","data-slot":"date-picker-content",style:J!=null?J:void 0,className:n("z-50 overflow-hidden rounded-md border border-gray-stroke-muted bg-surface-elevated p-3 shadow-md",m),children:[jsxs("div",{className:"mb-3 flex items-center justify-center gap-2",children:[jsx("button",{type:"button",className:"inline-flex size-8 items-center justify-center rounded-md hover:bg-secondary-background-soft-emphasis max-sm:size-10",onClick:()=>W(v=>Rt(v,-1)),"aria-label":"M\xEAs anterior",children:jsx(ChevronLeftMd,{size:18,strokeWidth:1.8})}),jsxs("div",{className:"flex items-center gap-2",children:[jsxs("div",{className:"relative",children:[jsx("select",{value:fe,onChange:v=>Y(Number(v.target.value)),className:"min-w-[7rem] appearance-none rounded-md border border-gray-stroke-muted bg-surface-card py-1 pl-2 pr-7 text-sm font-medium capitalize text-gray-foreground outline-none hover:border-gray-stroke-emphasis focus:border-gray-stroke-emphasis focus:ring-2 focus:ring-state-focus max-sm:min-w-[8rem] max-sm:py-2 max-sm:text-base","aria-label":"Selecionar m\xEAs",children:y.map(v=>jsx("option",{value:v.value,className:"capitalize",children:v.label},v.value))}),jsx(ChevronDown,{size:14,strokeWidth:1.8,className:"pointer-events-none absolute right-2 top-1/2 -translate-y-1/2 text-gray-foreground","aria-hidden":true})]}),T?jsxs("div",{className:"relative",children:[jsx("select",{value:ne,onChange:v=>q(Number(v.target.value)),className:"min-w-[5rem] appearance-none rounded-md border border-gray-stroke-muted bg-surface-card py-1 pl-2 pr-7 text-sm font-medium text-gray-foreground outline-none hover:border-gray-stroke-emphasis focus:border-gray-stroke-emphasis focus:ring-2 focus:ring-state-focus max-sm:min-w-[5.5rem] max-sm:py-2 max-sm:text-base","aria-label":"Selecionar ano",children:V.map(v=>jsx("option",{value:v,children:v},v))}),jsx(ChevronDown,{size:14,strokeWidth:1.8,className:"pointer-events-none absolute right-2 top-1/2 -translate-y-1/2 text-gray-foreground","aria-hidden":true})]}):jsx("div",{className:"text-sm font-semibold text-gray-foreground",children:ne})]}),jsx("button",{type:"button",className:"inline-flex size-8 items-center justify-center rounded-md hover:bg-secondary-background-soft-emphasis max-sm:size-10",onClick:()=>W(v=>Rt(v,1)),"aria-label":"Pr\xF3ximo m\xEAs",children:jsx(ChevronRightMd,{size:18,strokeWidth:1.8})})]}),jsxs("div",{className:"grid grid-cols-7 gap-1 text-center text-xs font-medium text-gray-foreground-muted max-sm:text-sm",children:[jsx("div",{children:"Dom"}),jsx("div",{children:"Seg"}),jsx("div",{children:"Ter"}),jsx("div",{children:"Qua"}),jsx("div",{children:"Qui"}),jsx("div",{children:"Sex"}),jsx("div",{children:"S\xE1b"})]}),jsxs("div",{className:"mt-2 grid grid-cols-7 gap-1",children:[Array.from({length:S}).map((v,_)=>jsx("div",{},`empty-${_}`)),Array.from({length:O}).map((v,_)=>{let K=new Date(ne,fe,_+1),ue=(g==null?void 0:g.start)&&$a(K,g.start),De=(g==null?void 0:g.end)&&$a(K,g.end),Je=(g==null?void 0:g.start)&&(g==null?void 0:g.end)&&Ks(K,g.start)&&Oo(K,g.end),pa=$a(K,R),Ra=r||Ja(K,s,i);return jsx("button",{type:"button",disabled:Ra,onClick:()=>le(K),className:n("inline-flex h-9 w-full items-center justify-center rounded-md text-sm font-medium outline-none transition-colors hover:bg-secondary-background-soft-emphasis disabled:pointer-events-none disabled:opacity-50",pa&&"ring-1 ring-gray-stroke-emphasis",Je&&"bg-primary-background-soft",(ue||De)&&"bg-primary-background-fill text-primary-foreground-onfill hover:bg-primary-background-fill-emphasis"),"aria-pressed":ue||De||void 0,children:_+1},K.toISOString())})]}),jsxs("div",{className:"mt-3 flex items-center justify-between gap-2",children:[jsx("button",{type:"button",className:"rounded-md px-2 py-1 text-xs font-medium text-gray-foreground hover:bg-secondary-background-soft-emphasis",onClick:()=>{se({start:R,end:R}),C(false);},disabled:r||Ja(R,s,i),children:"Hoje"}),jsx("button",{type:"button",className:"rounded-md px-2 py-1 text-xs font-medium text-gray-foreground hover:bg-secondary-background-soft-emphasis",onClick:()=>se(null),disabled:r||!g,children:"Limpar"})]})]}),document.body)]}),D]})}var Af=24,Rf=20,Df=1.6,Js=10,Ys=8;function Mf(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("div",l({className:n("group relative flex flex-col gap-2",e),"data-slot":"input-wrapper"},a))}function Bf(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("div",l({className:n("relative",e),"data-slot":"input-field"},a))}function Nf(t){var r=t,{className:e,children:a}=r,o=d(r,["className","children"]);return jsx("label",f(l({className:n("pointer-events-none absolute start-3 top-0 z-10 origin-left -translate-y-1/2 bg-surface-card px-1 text-xs font-medium text-gray-foreground transition-all duration-200 ease-out","group-has-[[data-slot=input][disabled]]:bg-transparent","group-has-[[data-slot=input]:placeholder-shown:not(:focus)]:start-4 group-has-[[data-slot=input]:placeholder-shown:not(:focus)]:top-6 group-has-[[data-slot=input]:placeholder-shown:not(:focus)]:bg-transparent group-has-[[data-slot=input]:placeholder-shown:not(:focus)]:px-0 group-has-[[data-slot=input]:placeholder-shown:not(:focus)]:text-md group-has-[[data-slot=input]:placeholder-shown:not(:focus)]:font-normal","group-has-[[data-slot=input][data-empty]:not(:focus)]:start-4 group-has-[[data-slot=input][data-empty]:not(:focus)]:top-6 group-has-[[data-slot=input][data-empty]:not(:focus)]:bg-transparent group-has-[[data-slot=input][data-empty]:not(:focus)]:px-0 group-has-[[data-slot=input][data-empty]:not(:focus)]:text-md group-has-[[data-slot=input][data-empty]:not(:focus)]:font-normal","group-has-[[data-slot=input][data-size=md]]:group-has-[[data-slot=input]:placeholder-shown:not(:focus)]:top-5 group-has-[[data-slot=input][data-size=md]]:group-has-[[data-slot=input]:placeholder-shown:not(:focus)]:!text-sm","group-has-[[data-slot=input][data-size=md]]:group-has-[[data-slot=input][data-empty]:not(:focus)]:top-5 group-has-[[data-slot=input][data-empty]:not(:focus)]:!text-sm","group-has-[[data-slot=input][aria-invalid=true]]:text-feedback-error-foreground","group-has-[[data-slot=input-start-icon]]:group-has-[[data-slot=input]:placeholder-shown:not(:focus)]:start-12","group-has-[[data-slot=input-start-icon]]:group-has-[[data-slot=input][data-empty]:not(:focus)]:start-12",e),"data-slot":"input-label"},o),{children:a}))}function Ff(t){var r=t,{className:e,invalid:a=false}=r,o=d(r,["className","invalid"]);return jsx("span",l({className:n("-mt-1 text-xs",a?"text-feedback-error-foreground":"text-gray-foreground",e),"data-slot":"input-text"},o))}function Vo(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("div",l({className:n("group/adornment relative flex w-full",e),"data-slot":"input-adornment"},a))}function Ft(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("span",l({className:n("pointer-events-none absolute start-4 top-1/2 z-10 flex -translate-y-1/2 items-center pr-3 text-gray-foreground",e),"data-slot":"input-start-icon"},a))}function qo(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("span",l({className:n("absolute end-4 top-1/2 z-10 flex -translate-y-1/2 items-center text-gray-foreground",e),"data-slot":"input-end-icon"},a))}var Bt=cva(["shadow-xs w-full min-w-0 rounded-md border-2 border-gray-stroke-muted bg-surface-card px-4 py-3 text-gray-foreground outline-none transition-[color,box-shadow] selection:bg-secondary-background-soft-emphasis selection:text-gray-foreground placeholder:text-gray-foreground-emphasis hover:border-gray-stroke-emphasis hover:ring-[3px] hover:ring-state-focus disabled:cursor-default disabled:bg-gray-background-soft-muted disabled:placeholder:text-gray-foreground-muted disabled:hover:border-gray-stroke-muted disabled:hover:ring-0","focus-visible:border-gray-stroke-emphasis focus-visible:ring-[3px] focus-visible:ring-state-focus","aria-[invalid]:border-feedback-error-stroke aria-[invalid]:hover:ring-state-error aria-[invalid]:focus-visible:ring-state-error","aria-[invalid]:[&:not(:placeholder-shown):not(:disabled)]:border-feedback-error-stroke aria-[invalid]:[&:not(:placeholder-shown):not(:disabled)]:ring-[3px] aria-[invalid]:[&:not(:placeholder-shown):not(:disabled)]:ring-state-error","group-has-[[data-slot=input-label]]:py-3 group-has-[[data-slot=input-label]]:placeholder:text-transparent","[&:not(:placeholder-shown):not(:disabled)]:border-gray-stroke-emphasis [&:not(:placeholder-shown):not(:disabled)]:ring-[3px] [&:not(:placeholder-shown):not(:disabled)]:ring-state-focus","group-has-[[data-slot=input-end-icon]]/adornment:pr-10"],{variants:{size:{lg:["h-12 max-h-12 text-md","group-has-[[data-slot=input-label]]:h-14","group-has-[[data-slot=input-start-icon]]/adornment:pl-[48px]"],md:["h-10 max-h-10 text-sm","group-has-[[data-slot=input-label]]:h-11","group-has-[[data-slot=input-start-icon]]/adornment:pl-[44px]"]}},defaultVariants:{size:"lg"}}),Ef={email:jsx(Mail,{})},Of={};function ka(e,a="lg"){return cloneElement(e,{size:a==="md"?Rf:Af,strokeWidth:Df})}function al(s){var i=s,{className:e,invalid:a=false,size:o="lg",disabled:t}=i,r=d(i,["className","invalid","size","disabled"]);let[u,c]=useState(false);return jsxs(Vo,{children:[jsx(Ft,{children:ka(jsx(Lock,{}),o)}),jsx("input",l({type:u?"text":"password","data-slot":"input","data-size":o,disabled:t,className:n(Bt({size:o,className:e})),"aria-invalid":a||r["aria-invalid"]?true:void 0},r)),jsx(qo,{children:jsx("button",{type:"button",tabIndex:-1,disabled:t,onClick:()=>c(p=>!p),className:n("text-gray-foreground transition-colors hover:text-gray-foreground-emphasis disabled:cursor-default disabled:opacity-50"),"data-invalid":a,"aria-label":u?"Hide password":"Show password",children:ka(u?jsx(Hide,{}):jsx(Show,{}),o)})})]})}function tl(m){var b=m,{className:e,invalid:a=false,size:o="lg",iconLeft:t,min:r,value:s,defaultValue:i,onChange:u,disabled:c}=b,p=d(b,["className","invalid","size","iconLeft","min","value","defaultValue","onChange","disabled"]);let x=s!==void 0,[T,L]=useState(()=>i!=null?i:""),D=useRef(null),M=x?s===""?"":String(s):T,G=M===""?NaN:Number(M),P=r!==void 0&&Number(r)<0,k=useCallback(C=>{let X=r!==void 0&&Number(r)<0,W=C.replace(/[^\d.-]/g,"");X?W=(W.startsWith("-")?"-":"")+W.replace(/-/g,""):W=W.replace(/-/g,"");let Q=W.indexOf(".");return Q===-1?W:W.slice(0,Q+1)+W.slice(Q+1).replace(/\./g,"")},[r]),j=useCallback(C=>{let X=k(C.target.value);if(X===C.target.value)x?u==null||u(C):(L(X),u==null||u(f(l({},C),{target:f(l({},C.target),{value:X})})));else {let W=f(l({},C),{target:f(l({},C.target),{value:X})});x||L(X),u==null||u(W);}},[x,u,k]),z=r!==void 0?Number(r):void 0,g=useCallback(C=>{let W=(Number.isNaN(G)?z!=null?z:0:G)+C;return z!==void 0&&W<z?z:W},[G,z]),I=useCallback(C=>{let X=g(C),W=String(X),Q=D.current,ye={type:"change",target:Q?{value:W,name:Q.name,id:Q.id,form:Q.form,type:Q.type}:{value:W},currentTarget:Q,bubbles:true,cancelable:false,nativeEvent:{}};x||L(W),u==null||u(ye);},[g,x,u]);return jsxs(Vo,{children:[t!=null&&jsx(Ft,{children:ka(t,o)}),jsx("input",l({ref:D,type:"text",inputMode:"decimal",pattern:P?"-?[0-9]*":"[0-9]*","data-slot":"input","data-size":o,"data-empty":M===""?"":void 0,min:r,value:M,onChange:j,disabled:c,className:n(Bt({size:o}),"pr-12","[appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none",e),"aria-invalid":a||p["aria-invalid"]?true:void 0},p)),jsxs("div",{className:"absolute end-0 top-0 flex h-full flex-col items-center justify-center gap-0.5 px-4",children:[jsx("button",{type:"button",tabIndex:-1,disabled:c,onClick:()=>I(1),className:"flex items-center justify-center rounded-full !p-0.5 px-2 text-gray-foreground transition-colors disabled:cursor-default disabled:opacity-50 disabled:hover:bg-transparent","aria-label":"Increase value",children:jsx(ChevronDown,{className:"rotate-180",size:o==="md"?Ys:Js,strokeWidth:3})}),jsx("button",{type:"button",tabIndex:-1,disabled:c,onClick:()=>I(-1),className:"flex items-center justify-center rounded-full !p-0.5 px-2 text-gray-foreground transition-colors disabled:cursor-default disabled:opacity-50 disabled:hover:bg-transparent","aria-label":"Decrease value",children:jsx(ChevronDown,{size:o==="md"?Ys:Js,strokeWidth:3})})]})]})}function _o(u){var c=u,{className:e,type:a="text",size:o="lg",invalid:t=false,iconLeft:r,iconRight:s}=c,i=d(c,["className","type","size","invalid","iconLeft","iconRight"]);if(a==="numeric")return jsx(tl,l({className:e,size:o,invalid:t,iconLeft:r},i));if(a==="password")return jsx(al,l({className:e,size:o,invalid:t},i));let p=r!=null?r:Ef[a],m=(a==="text"||a==="email")&&t,b=m?jsx(TriangleWarning,{}):s!=null?s:Of[a];return p!=null||b!=null?jsxs("div",{className:"group/adornment relative flex w-full","data-slot":"input-adornment",children:[p!=null&&jsx(Ft,{children:ka(p,o)}),jsx("input",l({type:"text","data-slot":"input","data-size":o,className:n(Bt({size:o,className:e})),"aria-invalid":t||i["aria-invalid"]?true:void 0},i)),b!=null&&jsx(qo,{className:m?"text-feedback-error-foreground":void 0,children:ka(b,o)})]}):jsx("input",l({type:"text","data-slot":"input","data-size":o,className:n(Bt({size:o,className:e})),"aria-invalid":t||i["aria-invalid"]?true:void 0},i))}var ol=cva("inline-flex select-none items-center gap-3 text-sm font-medium leading-none disabled:cursor-default disabled:text-gray-foreground-muted peer-disabled:cursor-default peer-disabled:text-gray-foreground-muted group-data-[disabled]:pointer-events-none group-data-[disabled]:text-gray-foreground-muted whitespace-nowrap transition-all shrink-0 [&_svg]:shrink-0 hover:cursor-pointer focus:outline-0",{variants:{variant:{regular:"text-gray-foreground hover:text-gray-foreground-emphasis"},size:{sm:"text-xs",md:"text-sm",lg:"text-md"}},defaultVariants:{variant:"regular",size:"md"}});function Vf(s){var i=s,{className:e,variant:a,size:o,block:t}=i,r=d(i,["className","variant","size","block"]);return jsx(Label.Root,l({"data-slot":"label",className:n(e,ol({className:e,size:o,variant:a}),t&&"flex flex-col items-start justify-center gap-4 whitespace-normal rounded-lg border border-gray-stroke-muted p-4 font-normal")},r))}function _f({width:e=171,height:a=36,className:o,svgClassName:t}){return jsxs("svg",{className:n("dark:brightness-0 dark:invert",o),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 171 36",width:e,height:a,children:[jsx("path",{fill:"#01CFB5",d:"M170.246 8.366 158.874 34.77c-.317.744-1.131 1.23-2.038 1.23h-3.47c-1.552 0-2.606-1.377-2.011-2.628l2.875-6.066-8.476-18.918c-.563-1.246.492-2.59 2.027-2.59h3.541c.929 0 1.755.513 2.061 1.278l4.688 11.864h.093l4.464-11.836c.295-.782 1.126-1.306 2.066-1.306h3.514c1.524 0 2.573 1.322 2.038 2.568Zm-24.869 8.623v10.42a.823.823 0 0 1-.82.826h-3.956a.818.818 0 0 1-.82-.825v-.667a11.207 11.207 0 0 1-5.699 1.541c-6.235 0-11.295-5.054-11.295-11.295 0-6.24 5.06-11.295 11.295-11.295 2.076 0 4.027.557 5.694 1.541v-.006a11.295 11.295 0 0 1 5.601 9.76Zm-5.984.005c0-2.94-2.377-5.327-5.306-5.327-2.929 0-5.306 2.388-5.306 5.327 0 2.94 2.377 5.323 5.306 5.323 2.929 0 5.306-2.383 5.306-5.323Zm5.793.4c.005-.099.005-.192.005-.29 0-.098-.005-.191-.005-.284v.573Zm-26.17-11.722h-4.355a.977.977 0 0 0-.978.978v11.902a3.416 3.416 0 0 1-6.831 0V6.65a.977.977 0 0 0-.978-.978h-4.355a.977.977 0 0 0-.978.978v11.902a3.417 3.417 0 0 1-5.83 2.415c-.618-.617-1-1.47-1-2.415V6.65a.977.977 0 0 0-.979-.978h-4.355a.977.977 0 0 0-.978.978v13.088h-.006c0 .781.115 1.535.334 2.256 1.098 3.623 4.765 6.29 9.13 6.29 2.739 0 5.209-1.054 6.935-2.732 1.689 1.83 4.197 2.994 7 2.994 4.53 0 8.295-3.043 9.06-7.043.093-.487.143-.99.143-1.497V6.65a.978.978 0 0 0-.979-.978Z"}),jsx("path",{fill:"#00205B",className:t,d:"M65.557 7.694c-.639.399-1.235.863-1.781 1.388.54-.536 1.137-1 1.781-1.388ZM82.727.831v26.617a.82.82 0 0 1-.82.825h-3.956a.77.77 0 0 1-.415-.12.81.81 0 0 1-.405-.71v-.755a11.018 11.018 0 0 1-5.689 1.574c-5.47 0-10.01-3.967-10.923-9.191-.016-.098-.038-.197-.054-.3-.011-.088-.028-.18-.039-.268 0-.028-.005-.055-.01-.088-.006-.06-.012-.12-.023-.18-.005-.076-.01-.159-.021-.24v-.028c-.006-.093-.017-.18-.017-.273a9.516 9.516 0 0 1 0-1.11l.017-.273v-.027l.032-.311c0-.033.006-.066.006-.099a.665.665 0 0 0 .01-.104c.012-.087.023-.18.039-.267.016-.11.033-.213.055-.323a11.09 11.09 0 0 1 3.17-6.005 11.548 11.548 0 0 1 1.88-1.48 9.127 9.127 0 0 1 1.31-.646c1.039-.42 2.186-.65 3.405-.683-.071 0-.142.011-.213.011a9.587 9.587 0 0 0-3.203.672c-.453.18-.896.4-1.311.65.393-.245.809-.459 1.23-.655-.006 0-.011.005-.017.005l.033-.016c-.011.005-.022.005-.038.01a8.79 8.79 0 0 1 .519-.229c-.039.017-.071.033-.104.05.038-.017.07-.033.11-.05.087-.033.174-.065.267-.098.087-.038.175-.066.268-.099.033-.016.065-.021.098-.032.055-.017.104-.039.158-.055.11-.033.214-.066.323-.098a9.584 9.584 0 0 1 .607-.153c.092-.022.196-.044.295-.066.098-.016.196-.033.295-.055l.295-.049h.005a2.82 2.82 0 0 0 .197-.027c.07-.005.131-.022.202-.022.087-.01.18-.016.268-.022.082-.01.164-.01.246-.016.07 0 .142-.011.213-.011.136-.006.273-.006.415-.006.093 0 .191.006.284.006h.12c.083 0 .159.005.236.01.098.006.196.012.295.023.087.005.174.01.256.022.05.005.099.01.142.016.088.01.175.022.257.038l.312.05c1.06.185 2.07.519 3.005.983v.115c-.038-.022-.076-.038-.12-.06.038.022.077.038.12.065v-.12c.268.131.525.273.77.426V.825a.827.827 0 0 1 .82-.825h3.957a.838.838 0 0 1 .836.83Zm-5.694 16.213a5.32 5.32 0 0 0-5.312-5.323c-2.929 0-5.306 2.388-5.306 5.323 0 2.94 2.377 5.322 5.306 5.322a5.316 5.316 0 0 0 5.312-5.322Zm-19.59.431c0 .41-.017.765-.066 1.132a.597.597 0 0 1-.596.524H42.284a.598.598 0 0 0-.574.77c.623 1.94 2.46 3.192 4.749 3.192 1.607 0 2.678-.574 3.656-1.749a.614.614 0 0 1 .47-.213h5.191c.448 0 .738.47.53.869-2.093 4.033-5.705 6.372-9.847 6.372-6.06 0-11.137-5.055-11.137-11.088 0-6.033 4.847-11.235 11.022-11.235h.006c6.284 0 11.093 4.94 11.093 11.426Zm-6.563-3.393c-.738-1.683-2.437-2.754-4.541-2.754-1.973 0-3.721 1.027-4.47 2.754a.594.594 0 0 0 .552.825h7.907a.593.593 0 0 0 .552-.825ZM23.13 5.803c-2.738 0-5.207 1.055-6.934 2.733-1.689-1.831-4.197-2.995-7-2.995-4.53 0-8.295 3.044-9.06 7.044-.088.486-.137.989-.137 1.497v13.35c0 .54.437.978.978.978h4.355a.977.977 0 0 0 .978-.978V15.618c0-1.65 1.328-3.263 2.962-3.476a3.398 3.398 0 0 1 2.87.973c.617.617 1 1.47 1 2.415v11.902c0 .54.436.978.977.978h4.355a.977.977 0 0 0 .979-.978V15.618c0-1.65 1.327-3.263 2.961-3.476a3.398 3.398 0 0 1 2.87.973c.617.617 1 1.47 1 2.415v11.902c0 .54.436.978.977.978h4.355a.977.977 0 0 0 .979-.978V14.344a7.75 7.75 0 0 0-.334-2.257c-1.098-3.623-4.77-6.284-9.13-6.284Z"})]})}function Uf({width:e=60,height:a=67,className:o,svgClassName:t}){return jsx("svg",{className:n("dark:brightness-0 dark:invert",o),width:e,height:a,viewBox:"0 0 60 67",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{fill:"#00205B",className:t,d:"M42.33 10.8959C37.32 10.8959 32.8 12.8259 29.64 15.8959C26.55 12.5459 21.96 10.4159 16.83 10.4159C8.54 10.4159 1.65 15.9859 0.25 23.3059C0.09 24.1959 0 25.1159 0 26.0459V50.4759C0 51.4659 0.8 52.2659 1.79 52.2659H9.76C10.75 52.2659 11.55 51.4659 11.55 50.4759V28.8559C11.55 25.8359 13.98 22.8859 16.97 22.4959C19.03 22.2259 20.91 22.9659 22.22 24.2759C23.35 25.4059 24.05 26.9659 24.05 28.6959V50.4759C24.05 51.4659 24.85 52.2659 25.84 52.2659H33.81C34.8 52.2659 35.6 51.4659 35.6 50.4759V28.8559C35.6 25.8359 38.03 22.8859 41.02 22.4959C43.08 22.2259 44.96 22.9659 46.27 24.2759C47.4 25.4059 48.1 26.9659 48.1 28.6959V50.4759C48.1 51.4659 48.9 52.2659 49.89 52.2659H57.86C58.85 52.2659 59.65 51.4659 59.65 50.4759V26.5259C59.65 25.0959 59.44 23.7159 59.04 22.3959C57.03 15.7659 50.31 10.8959 42.33 10.8959Z"})})}var ya={tablet:"600px",mobile:"320px"};function sl(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("nav",l({role:"navigation","aria-label":"pagination",className:n("flex w-full items-center justify-between",e)},a))}function ll(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("ul",l({className:n("flex flex-row items-center gap-2",e)},a))}function Uo(r){var s=r,{count:e,label:a="itens",className:o}=s,t=d(s,["count","label","className"]);return jsx("p",f(l({className:n("text-xs font-medium text-gray-foreground-muted",o)},t),{children:a==="itens"?jsxs(Fragment,{children:["Mostrando"," ",jsx("span",{className:"font-semibold text-gray-foreground",children:e})," ",a]}):jsxs(Fragment,{children:[jsx("span",{className:"font-semibold text-gray-foreground",children:e})," ",a]})}))}function Ot(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("li",l({className:n("",e)},a))}function nl(p){var m=p,{className:e,isActive:a,iconLeft:o,iconRight:t,size:r="md",variant:s="regular",activeVariant:i,inactiveVariant:u}=m,c=d(m,["className","isActive","iconLeft","iconRight","size","variant","activeVariant","inactiveVariant"]);return jsx(ie,f(l({"aria-current":a?"page":void 0,variant:a&&i?i:!a&&u?u:a?s:`${s}-soft`,className:n("",e),size:r,iconLeft:o,iconRight:t},c),{children:c.children}))}function dl(r){var s=r,{className:e,size:a="md",variant:o="regular-basic"}=s,t=d(s,["className","size","variant"]);return jsx(ie,f(l({"aria-label":"Go to previous page",className:n("",e),iconLeft:jsx(ChevronLeftDuo,{}),variant:o,size:a},t),{children:t.children||"Anterior"}))}function il(r){var s=r,{className:e,size:a="md",variant:o="regular-basic"}=s,t=d(s,["className","size","variant"]);return jsx(ie,f(l({"aria-label":"Go to next page",className:n("",e),variant:o,iconRight:jsx(ChevronRightDuo,{}),size:a},t),{children:t.children||"Pr\xF3ximo"}))}function ul(t){var r=t,{className:e,size:a="md"}=r,o=d(r,["className","size"]);return jsx("span",f(l({"aria-hidden":true,className:n("flex items-center justify-center",{sm:"h-8 w-8",md:"h-9 w-9",lg:"h-10 w-10"}[a],e)},o),{children:jsx(MoreHorizontal,{className:"h-4 w-4"})}))}function fl(e,a,o=2){let t=[];if(a<=o+2)for(let r=1;r<=a;r++)t.push(r);else {let r=Math.floor(o/2);if(e<=r+1){for(let s=1;s<=o+1;s++)t.push(s);o+1<a&&t.push(-1,a);}else if(e>=a-r){t.push(1),a-o>1&&t.push(-1);for(let s=a-o;s<=a;s++)t.push(s);}else {t.push(1,-1);for(let s=e-r;s<=e+r;s++)t.push(s);t.push(-1,a);}}return t}function Qf({currentPage:e,totalPages:a,maxVisibleItems:o,onPageChange:t,itemsPerPage:r,totalItems:s,className:i,responsive:u=true,size:c="md"}){let[p,m]=useState(()=>typeof window=="undefined"?false:window.innerWidth<=parseInt(ya.tablet));useEffect(()=>{if(typeof window=="undefined"||!u)return;let L=parseInt(ya.tablet),D=()=>{m(window.innerWidth<=L);};return window.addEventListener("resize",D),D(),()=>window.removeEventListener("resize",D)},[u]);let b=typeof o=="number"?o:u&&p?0:2,x=u&&p,T=()=>fl(e,a,b);return jsxs(sl,{className:n("",i),children:[r!==void 0&&!x?jsx(Uo,{count:r,label:"itens"}):jsx("div",{}),jsxs(ll,{children:[jsx(Ot,{children:jsx(dl,{onClick:()=>t(Math.max(1,e-1)),disabled:e===1,size:c})}),T().map((L,D)=>jsx(Ot,{children:L===-1?jsx(ul,{size:c}):jsx(nl,{onClick:()=>t(L),isActive:L===e,size:c,children:L})},D)),jsx(Ot,{children:jsx(il,{onClick:()=>t(Math.min(a,e+1)),disabled:e===a,size:c})})]}),s!==void 0&&!x?jsx(Uo,{count:s,label:"total"}):jsx("div",{})]})}var Yf={sm:"size-2 group-data-[disabled]:group-data-[state=checked]:size-1.5",md:"size-2.5 group-data-[disabled]:group-data-[state=checked]:size-1.5",lg:"size-3.5 group-data-[disabled]:group-data-[state=checked]:size-2"},cl=cva("inline-flex items-center justify-center place-items-center gap-2 rounded-pill whitespace-nowrap transition-all disabled:pointer-events-none shrink-0 [&_svg]:shrink-0 hover:cursor-pointer focus:outline-0 [grid-template-areas:'stack']",{variants:{variant:{regular:"bg-surface-card border-2 border-gray-stroke-muted enabled:hover:ring-4 data-[state=unchecked]:enabled:hover:ring-state-hover data-[state=unchecked]:enabled:hover:border-gray-stroke disabled:bg-gray-background-soft-muted data-[state=checked]:bg-primary-background-fill data-[state=checked]:border-primary-background-fill data-[state=checked]:enabled:hover:bg-primary-background-fill-emphasis data-[state=checked]:enabled:hover:border-primary-background-fill-emphasis data-[state=checked]:enabled:hover:ring-state-active disabled:data-[state=checked]:bg-gray-background-soft-muted disabled:data-[state=checked]:border-gray-stroke-muted data-[state=unchecked]:enabled:hover:border-gray-stroke data-[state=checked]:enabled:hover:bg-primary-background-fill-emphasis [&:disabled_svg]:fill-gray-background-fill-muted"},size:{sm:"size-4",md:"size-5",lg:"size-6"}},defaultVariants:{variant:"regular",size:"md"}});function ec(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx(RadioGroup.Root,l({"data-slot":"radio-group",className:n("grid gap-3",e)},a))}function ac(r){var s=r,{className:e,size:a,variant:o}=s,t=d(s,["className","size","variant"]);return jsx(RadioGroup.Item,f(l({"data-slot":"radio-group-item",className:n("shadow-xs group peer aspect-square size-4 shrink-0 rounded-full outline-none transition-[color,box-shadow] disabled:cursor-not-allowed",cl({size:a,variant:o}),e)},t),{children:jsx(RadioGroup.Indicator,{"data-slot":"radio-group-indicator",className:"relative flex items-center justify-center",children:jsx(Circle,{className:n("absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 fill-surface-card",Yf[a||"md"])})})}))}function na(o){var t=o,{delayDuration:e=0}=t,a=d(t,["delayDuration"]);return jsx(Tooltip.Provider,l({"data-slot":"tooltip-provider",delayDuration:e},a))}function da(a){var e=d(a,[]);return jsx(na,{children:jsx(Tooltip.Root,l({"data-slot":"tooltip"},e))})}function ia(a){var e=d(a,[]);return jsx(Tooltip.Trigger,l({"data-slot":"tooltip-trigger"},e))}function ua(r){var s=r,{className:e,sideOffset:a=0,children:o}=s,t=d(s,["className","sideOffset","children"]);return jsx(Tooltip.Portal,{children:jsxs(Tooltip.Content,f(l({"data-slot":"tooltip-content",sideOffset:a,className:n("origin-(--radix-tooltip-content-transform-origin) z-50 w-fit text-balance rounded-md bg-surface-elevated px-3 py-2 text-sm font-medium text-gray-foreground-emphasis animate-in fade-in-0 zoom-in-95 [filter:drop-shadow(0_0_1px_var(--color-drop-shadow-layer-a))_drop-shadow(0_2px_2px_var(--color-drop-shadow-layer-b))] data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e)},t),{children:[o,jsx(Tooltip.Arrow,{className:"z-50 size-3 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-surface-elevated fill-surface-elevated"})]}))})}function ic(t){var r=t,{children:e,className:a}=r,o=d(r,["children","className"]);return jsx("div",{className:"w-full overflow-x-auto rounded-lg border border-gray-stroke-muted",children:jsx("table",f(l({className:n("w-full border-collapse text-left",a)},o),{children:e}))})}function uc(t){var r=t,{children:e,className:a}=r,o=d(r,["children","className"]);return jsx("thead",f(l({className:n("h-11 border-b border-gray-stroke-muted bg-surface-card",a)},o),{children:jsx("tr",{children:e})}))}function fc(s){var i=s,{children:e,className:a,tooltip:o,highlight:t}=i,r=d(i,["children","className","tooltip","highlight"]);return jsx("th",f(l({className:n("text-ellipsis whitespace-nowrap px-5 text-sm font-semibold text-gray-foreground first:pr-0",a)},r),{children:jsxs("div",{className:"flex items-center gap-1.5",children:[jsx("span",{className:n(t&&"flex size-7 shrink-0 items-center justify-center rounded-full bg-primary-foreground-onfill"),children:e}),o&&jsx(na,{children:jsxs(da,{children:[jsx(ia,{asChild:true,children:jsx(Info,{className:"size-4"})}),jsx(ua,{children:o})]})})]})}))}function cc(t){var r=t,{children:e,className:a}=r,o=d(r,["children","className"]);return jsx("tbody",f(l({className:n("bg-surface-card",a)},o),{children:e}))}function pc(t){var r=t,{children:e,className:a}=r,o=d(r,["children","className"]);return jsx("tr",f(l({className:n("w-full border-t border-solid border-gray-stroke-muted first:border-t-0",a)},o),{children:e}))}function mc(t){var r=t,{children:e,className:a}=r,o=d(r,["children","className"]);return jsx("td",{className:"py-4 pl-5 align-middle",children:jsx("div",f(l({className:n("flex size-7 shrink-0 items-center justify-center overflow-hidden whitespace-nowrap rounded-full bg-primary-foreground text-sm font-semibold text-primary-foreground-onfill",a)},o),{children:e}))})}function gc(t){var r=t,{children:e,className:a}=r,o=d(r,["children","className"]);return jsx("td",f(l({className:"px-5 py-4 align-middle"},o),{children:jsx("div",{className:n("flex items-center gap-5",a),children:jsx("div",{className:"flex shrink-0 items-center gap-5 pr-8",children:e})})}))}function xc(t){var r=t,{children:e,className:a}=r,o=d(r,["children","className"]);return jsx("div",f(l({className:n("flex shrink-0 flex-col items-start whitespace-nowrap text-gray-foreground",a)},o),{children:e}))}function hc(t){var r=t,{children:e,className:a}=r,o=d(r,["children","className"]);return jsx("span",f(l({className:n("shrink-0 overflow-hidden text-ellipsis font-sans text-xxs font-medium leading-xxs",a)},o),{children:e}))}function bc(t){var r=t,{children:e,className:a}=r,o=d(r,["children","className"]);return jsx("span",f(l({className:n("shrink-0 overflow-hidden text-ellipsis font-sans text-sm font-semibold leading-5",a)},o),{children:e}))}function Cc(t){var r=t,{children:e,className:a}=r,o=d(r,["children","className"]);return jsx(Se,f(l({className:n("bg-gradient-to-r from-cm-24 to-secondary-24 text-primary-foreground",a)},o),{icon:jsx(CheckboxFill,{className:"text-primary-foreground"}),children:e}))}function vc(t){var r=t,{children:e,className:a}=r,o=d(r,["children","className"]);return jsx("td",f(l({className:"px-5 py-4 align-middle"},o),{children:jsx("div",{className:n("flex flex-col items-start gap-2",a),children:e})}))}function Lc(t){var r=t,{children:e,className:a}=r,o=d(r,["children","className"]);return jsx("p",f(l({className:n("relative shrink-0 overflow-hidden text-ellipsis whitespace-nowrap text-[10px] font-medium leading-[12px] text-gray-foreground",a)},o),{children:e}))}function Ic(t){var r=t,{children:e,className:a}=r,o=d(r,["children","className"]);return jsx("div",f(l({className:n("avatar-group flex shrink-0 items-center gap-2",a)},o),{children:e}))}function kc(i){var u=i,{src:e,alt:a,fallback:o="?",className:t,tooltip:r}=u,s=d(u,["src","alt","fallback","className","tooltip"]);let c=jsxs(go,f(l({size:"sm",className:n("ring-2 ring-background",t)},s),{children:[jsx(xo,{src:e,alt:a}),jsx(ho,{children:o})]}));return r?jsx(na,{children:jsxs(da,{children:[jsx(ia,{asChild:true,children:c}),jsx(ua,{children:r})]})}):c}function yc(r){var s=r,{children:e,className:a,icon:o}=s,t=d(s,["children","className","icon"]);return jsx("td",f(l({className:"px-5 py-4 align-middle"},t),{children:jsx(Se,{variant:"regular-soft",className:a,icon:o,children:e})}))}function Sc({className:e,percentage:a}){let o=t=>t>=0&&t<=49||t>=50&&t<=80||t>=81&&t<=100?"bg-primary-stroke":"bg-gray-100";return jsx("div",{className:n("relative h-0.5 w-full overflow-hidden rounded-pill bg-gray-100",e),children:jsx("div",{className:n("absolute inset-y-0 left-0 rounded-pill transition-all duration-300",o(a)),style:{width:`${a}%`}})})}function Pc(r){var s=r,{questions:e,answered:a,className:o}=s,t=d(s,["questions","answered","className"]);let i=a>0?a/e*100:0;return a===0?jsx("td",f(l({className:"px-5 py-4 align-middle"},t),{children:jsx("div",{className:n("flex min-w-[140px] flex-col items-start justify-center gap-2",o),children:jsxs("div",{className:"flex shrink-0 items-center justify-center gap-2 text-xs font-medium text-gray-foreground-muted",children:[jsx("div",{className:"flex size-4 items-center justify-center rounded-full bg-gray-background-soft",children:jsx(RemoveMinus,{className:"size-3 text-gray-foreground",strokeWidth:2.6})}),jsx("span",{className:"whitespace-nowrap font-medium text-gray-foreground-muted",children:"N\xE3o iniciado"})]})})})):jsx("td",f(l({className:"px-5 py-4 align-middle"},t),{children:jsxs("div",{className:n("flex min-w-[140px] flex-col items-start justify-center gap-2",o),children:[jsx("div",{className:"flex shrink-0 items-center gap-0.5 text-xs leading-4",children:jsxs("span",{className:"relative shrink-0 whitespace-nowrap font-medium text-gray-foreground-muted",children:[jsx("span",{className:"font-semibold text-gray-foreground",children:a})," ",a>1?"respondidas":"respondida"]})}),jsx(Sc,{percentage:i})]})}))}var wc={notStarted:{icon:RemoveMinus,bgColor:"bg-gray-background-soft",iconColor:"text-gray-foreground",titleClassName:"font-medium text-gray-foreground-muted",title:()=>"N\xE3o iniciado",subtitle:()=>""},minNotReached:{icon:Warning,bgColor:"bg-feedback-warning-background-soft",iconColor:"text-feedback-warning-foreground",titleClassName:"font-medium text-gray-foreground-muted",title:()=>"M\xEDnimo n\xE3o atingido",subtitle:({remainingQuestions:e})=>e>1?`Faltam ${e} quest\xF5es`:`Falta ${e} quest\xE3o`},dominated:{icon:Check,bgColor:"bg-feedback-success-background-soft",iconColor:"text-feedback-success-foreground",titleClassName:"font-medium text-gray-foreground-muted",title:({progress:e})=>jsxs(Fragment,{children:[jsxs("span",{className:"font-semibold text-gray-foreground",children:[Math.round(e),"%"]})," ","de ",e>1?"acertos":"acerto"]}),subtitle:({correct:e,answered:a})=>`${e} de ${a} acertos`},notDominated:{icon:CloseMd,bgColor:"bg-feedback-error-background-soft",iconColor:"text-feedback-error-foreground",titleClassName:"font-medium text-gray-foreground-muted",title:({progress:e})=>jsxs(Fragment,{children:[jsxs("span",{className:"font-semibold text-gray-foreground",children:[Math.round(e),"%"]})," ","de ",e>1?"acertos":"acerto"]}),subtitle:({correct:e,answered:a})=>`${e} de ${a} acertos`}};function Tc(e,a,o){return [[e,"notStarted"],[a,"minNotReached"],[o>=80,"dominated"],[true,"notDominated"]].find(([r])=>r)[1]}function Ac(s){var i=s,{answered:e,correct:a,minQuestions:o,className:t}=i,r=d(i,["answered","correct","minQuestions","className"]);let u=e>0?a/e*100:0,c=e===0,p=a<o,m=o-a,b=Tc(c,p,u),{icon:x,bgColor:T,iconColor:L,titleClassName:D,title:M,subtitle:G}=wc[b],P={progress:u,correct:a,answered:e,remainingQuestions:m};return jsx("td",f(l({className:"px-5 py-4 align-middle"},r),{children:jsx("div",{className:n("flex min-w-[140px] flex-col items-start justify-center gap-2",t),children:jsxs("div",{className:"flex shrink-0 items-center justify-center gap-2 text-xs font-medium text-gray-foreground-muted",children:[jsx("div",{className:n("flex size-4 items-center justify-center rounded-full",T),children:jsx(x,{className:n("size-3",L),strokeWidth:2.6})}),jsxs("div",{className:"flex flex-col items-start justify-center",children:[jsx("span",{className:n("whitespace-nowrap",D),children:M(P)}),jsx("span",{className:"whitespace-nowrap text-xxs font-semibold text-gray-foreground-muted",children:G(P)})]})]})})}))}function Rc(r){var s=r,{children:e,className:a,onClick:o}=s,t=d(s,["children","className","onClick"]);return jsx("td",f(l({className:"px-5 py-4 align-middle"},t),{children:jsx(ie,{variant:"regular-soft",size:"sm",iconRight:jsx(ArrowRightMd,{className:"size-4"}),onClick:o,className:a,children:e})}))}var xl=cva("transition-all duration-150",{variants:{size:{sm:"size-6",md:"size-7",lg:"size-8"}},defaultVariants:{size:"md"}}),Mc=cva("",{variants:{size:{sm:"size-7",md:"size-8",lg:"size-9"}},defaultVariants:{size:"md"}}),hl=cva("inline-flex items-center justify-center",{variants:{size:{sm:"size-7",md:"size-8",lg:"size-9"},readOnly:{true:"cursor-default",false:"cursor-pointer"}},defaultVariants:{size:"md",readOnly:false}}),bl=cva("flex w-full min-w-0 justify-between text-gray-foreground font-medium gap-2",{variants:{size:{sm:"text-xs",md:"text-xs",lg:"text-sm"}},defaultVariants:{size:"md"}});function Bc({state:e,className:a}){let o=Ae(),t=useRef(`rating-${Math.random().toString(36).slice(2)}`),r=o||t.current;return e==="full"?jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 24",fill:"none",className:a,children:jsx("path",{d:"M0.888855 9.61676C0.523397 9.27879 0.721914 8.66782 1.21623 8.60921L8.2204 7.77843C8.42186 7.75455 8.59685 7.62803 8.68182 7.44381L11.6361 1.03906C11.8446 0.587053 12.4872 0.586967 12.6957 1.03898L15.6499 7.44368C15.7349 7.6279 15.9087 7.75475 16.1102 7.77864L23.1148 8.60921C23.6091 8.66782 23.807 9.27897 23.4416 9.61694L18.2638 14.4061C18.1148 14.5438 18.0485 14.7488 18.0881 14.9478L19.4622 21.8658C19.5593 22.354 19.0396 22.7323 18.6053 22.4892L12.4507 19.0432C12.2737 18.9441 12.0586 18.9446 11.8816 19.0437L5.72641 22.4883C5.29205 22.7314 4.7715 22.354 4.86851 21.8658L6.2429 14.9483C6.28244 14.7493 6.21629 14.5438 6.06735 14.406L0.888855 9.61676Z",className:"fill-feedback-warning-background-soft stroke-feedback-warning-stroke hover:stroke-feedback-warning-stroke-emphasis",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})}):e==="half"?jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 24",fill:"none",className:a,children:[jsx("defs",{children:jsxs("linearGradient",{id:r,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[jsx("stop",{offset:"50%",className:"[stop-color:var(--color-feedback-warning-background-soft)]",stopOpacity:"1"}),jsx("stop",{offset:"50%",stopColor:"transparent",stopOpacity:"0"})]})}),jsx("path",{d:"M0.888855 9.61676C0.523397 9.27879 0.721914 8.66782 1.21623 8.60921L8.2204 7.77843C8.42186 7.75455 8.59685 7.62803 8.68182 7.44381L11.6361 1.03906C11.8446 0.587053 12.4872 0.586967 12.6957 1.03898L15.6499 7.44368C15.7349 7.6279 15.9087 7.75475 16.1102 7.77864L23.1148 8.60921C23.6091 8.66782 23.807 9.27897 23.4416 9.61694L18.2638 14.4061C18.1148 14.5438 18.0485 14.7488 18.0881 14.9478L19.4622 21.8658C19.5593 22.354 19.0396 22.7323 18.6053 22.4892L12.4507 19.0432C12.2737 18.9441 12.0586 18.9446 11.8816 19.0437L5.72641 22.4883C5.29205 22.7314 4.7715 22.354 4.86851 21.8658L6.2429 14.9483C6.28244 14.7493 6.21629 14.5438 6.06735 14.406L0.888855 9.61676Z",fill:`url(#${r})`,className:"stroke-feedback-warning-stroke hover:stroke-feedback-warning-stroke-emphasis",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})]}):jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 24",fill:"none",className:a,children:jsx("path",{d:"M0.888855 9.61676C0.523397 9.27879 0.721914 8.66782 1.21623 8.60921L8.2204 7.77843C8.42186 7.75455 8.59685 7.62803 8.68182 7.44381L11.6361 1.03906C11.8446 0.587053 12.4872 0.586967 12.6957 1.03898L15.6499 7.44368C15.7349 7.6279 15.9087 7.75475 16.1102 7.77864L23.1148 8.60921C23.6091 8.66782 23.807 9.27897 23.4416 9.61694L18.2638 14.4061C18.1148 14.5438 18.0485 14.7488 18.0881 14.9478L19.4622 21.8658C19.5593 22.354 19.0396 22.7323 18.6053 22.4892L12.4507 19.0432C12.2737 18.9441 12.0586 18.9446 11.8816 19.0437L5.72641 22.4883C5.29205 22.7314 4.7715 22.354 4.86851 21.8658L6.2429 14.9483C6.28244 14.7493 6.21629 14.5438 6.06735 14.406L0.888855 9.61676Z",fill:"transparent",className:"stroke-gray-stroke-emphasis",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})})}function Nc(e,a){let o=e+1;return a>=o?"full":a>=o-.5?"half":"empty"}function Fc({value:e,onChange:a,maxStars:o=5,readOnly:t=false,labels:r,size:s="md",className:i,classNameContainer:u,classNameLabels:c}){let[p,m]=useState(e!=null?e:0),[b,x]=useState(null),T=e!==void 0,L=T?e:p,D=P=>{if(t)return;let k=P+1;T||m(k),a==null||a(k);},M=P=>{t||x(P);},G=()=>{t||x(null);};return jsxs("div",{"data-slot":"rating",className:n("inline-flex w-fit flex-col gap-2",i),children:[jsx("div",{className:n("inline-flex flex-row gap-1",u),onMouseLeave:G,children:Array.from({length:o},(P,k)=>{let j=b!==null,z=j&&k<=b,g=b===k,I=j?z?"full":"empty":Nc(k,L);return jsx("button",{type:"button",disabled:t,onClick:()=>D(k),onMouseEnter:()=>M(k),className:hl({size:s,readOnly:t}),"aria-label":`Rate ${k+1} out of ${o}`,children:jsx(Bc,{state:I,className:g&&!t?Mc({size:s}):xl({size:s})})},k)})}),r&&r.length===2&&jsxs("div",{className:n(bl({size:s}),c),children:[jsx("span",{className:"truncate",children:r[0]}),jsx("span",{className:"truncate text-right",children:r[1]})]})]})}function Wo(t){var r=t,{className:e,children:a}=r,o=d(r,["className","children"]);return jsxs(ScrollArea.Root,f(l({"data-slot":"scroll-area",className:n("relative",e)},o),{children:[jsx(ScrollArea.Viewport,{"data-slot":"scroll-area-viewport",className:"size-full rounded-[inherit]",children:a}),jsx(et,{}),jsx(et,{orientation:"horizontal"}),jsx(ScrollArea.Corner,{})]}))}function et(t){var r=t,{className:e,orientation:a="vertical"}=r,o=d(r,["className","orientation"]);return jsx(ScrollArea.ScrollAreaScrollbar,f(l({"data-slot":"scroll-area-scrollbar",orientation:a,className:n("flex touch-none select-none",a==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-px",a==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-px",e)},o),{children:jsx(ScrollArea.ScrollAreaThumb,{"data-slot":"scroll-area-thumb",className:"relative flex-1 rounded-full bg-gray-stroke-muted"})}))}var _t=createContext({invalid:false,size:"lg"});function _c(t){var r=t,{invalid:e=false,size:a="lg"}=r,o=d(r,["invalid","size"]);return jsx(_t.Provider,{value:{invalid:e,size:a},children:jsx(Select.Root,l({"data-slot":"select"},o))})}function Uc(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("div",l({className:n("group relative flex flex-col gap-2",e),"data-slot":"select-wrapper"},a))}function Gc(t){var r=t,{className:e,children:a}=r,o=d(r,["className","children"]);return jsx("label",f(l({className:n("pointer-events-none absolute start-3 top-0 origin-left -translate-y-1/2 bg-surface-card px-1 text-xs font-medium text-gray-foreground transition-all duration-200 ease-out","group-has-[[data-slot=select-trigger][data-placeholder]:not([data-state=open])]:start-4 group-has-[[data-slot=select-trigger][data-placeholder]:not([data-state=open])]:top-6 group-has-[[data-slot=select-trigger][data-placeholder]:not([data-state=open])]:bg-transparent group-has-[[data-slot=select-trigger][data-placeholder]:not([data-state=open])]:px-0 group-has-[[data-slot=select-trigger][data-placeholder]:not([data-state=open])]:text-md group-has-[[data-slot=select-trigger][data-placeholder]:not([data-state=open])]:font-normal group-has-[[data-slot=select-trigger][data-placeholder]:not([data-state=open])]:text-gray-foreground","group-has-[[data-slot=select-trigger][data-size=md]]:group-has-[[data-slot=select-trigger][data-placeholder]:not([data-state=open])]:top-5 group-has-[[data-slot=select-trigger][data-size=md]]:group-has-[[data-slot=select-trigger][data-placeholder]:not([data-state=open])]:!text-sm",e),"data-slot":"select-label"},o),{children:a}))}function Wc(a){var e=d(a,[]);return jsx(Select.Group,l({"data-slot":"select-group"},e))}function Xc(a){var e=d(a,[]);return jsx(Select.Value,l({"data-slot":"select-value"},e))}var Kc=cva(["shadow-xs flex w-full items-center justify-between gap-2 rounded-md border-2 border-gray-stroke-muted bg-surface-card px-4 py-3 text-left text-gray-foreground outline-none transition-[color,box-shadow] hover:border-gray-stroke-emphasis hover:ring-[3px] hover:ring-state-focus disabled:cursor-default disabled:bg-gray-background-soft-muted disabled:hover:border-gray-stroke-muted disabled:hover:ring-0 aria-[invalid]:border-feedback-error-stroke aria-[invalid]:hover:ring-[3px] aria-[invalid]:hover:ring-state-error data-[placeholder]:text-gray-foreground-emphasis *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 disabled:data-[placeholder]:text-gray-foreground-muted [&>span]:line-clamp-1 [&_svg]:pointer-events-none [&_svg]:shrink-0"],{variants:{size:{lg:["h-12 max-h-12 text-md [&_svg]:size-6","group-has-[[data-slot=select-label]]:h-14"],md:["h-10 max-h-10 text-sm [&_svg]:size-5","group-has-[[data-slot=select-label]]:h-11"]}},defaultVariants:{size:"lg"}}),jc=cva("data-disabled:pointer-events-none relative flex w-full cursor-default select-none items-center rounded px-2 font-medium text-gray-foreground outline-none hover:cursor-pointer hover:bg-secondary-background-soft-emphasis gap-3",{variants:{size:{lg:"py-2 text-sm [&_svg]:size-5",md:"py-2 text-sm [&_svg]:size-5"}},defaultVariants:{size:"lg"}});function Zc(t){var r=t,{className:e,children:a}=r,o=d(r,["className","children"]);let{invalid:s,size:i}=useContext(_t);return jsxs(Select.Trigger,f(l({className:n(Kc({size:i}),!s&&"[&:not([data-placeholder]):not(:disabled)]:border-gray-stroke-emphasis","group-has-[[data-slot=select-label]]:py-3 group-has-[[data-slot=select-label]]:data-[placeholder]:text-transparent",e),"data-slot":"select-trigger","data-size":i,"aria-invalid":s||void 0},o),{children:[a,jsx(Select.Icon,{asChild:true,children:jsx(ChevronDown,{className:n("flex-shrink-0 text-gray-foreground"),strokeWidth:1.6})})]}))}function Qc(r){var s=r,{className:e,children:a,position:o="popper"}=s,t=d(s,["className","children","position"]);return jsx(Select.Portal,{children:jsxs(Select.Content,f(l({className:n("relative z-50 max-h-[min(24rem,var(--radix-select-content-available-height))] min-w-32 overflow-hidden rounded-md border border-gray-stroke-muted bg-surface-elevated text-gray-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 [&_[role=group]]:py-1",o==="popper"&&"w-full min-w-[var(--radix-select-trigger-width)] data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),"data-slot":"select-content",position:o},t),{children:[jsx(Ll,{}),jsx(Select.Viewport,{className:n("p-2",o==="popper"&&"h-[var(--radix-select-trigger-height)]"),children:a}),jsx(Il,{})]}))})}function $c(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx(Select.Label,l({className:n("px-2 py-2 text-xs font-medium text-gray-foreground-muted",e),"data-slot":"select-header"},a))}function Jc(r){var s=r,{className:e,children:a,icon:o}=s,t=d(s,["className","children","icon"]);let{size:i}=useContext(_t);return jsxs(Select.Item,f(l({className:n(jc({size:i}),e),"data-slot":"select-item"},t),{children:[o&&jsx("span",{className:"flex shrink-0 items-center justify-center text-gray-foreground",children:isValidElement(o)?cloneElement(o,{strokeWidth:1.6}):o}),jsx(Select.ItemText,{children:a}),jsx("span",{className:"absolute end-2 flex size-3.5 items-center justify-center",children:jsx(Select.ItemIndicator,{children:jsx(Check,{strokeWidth:1.6,className:"text-secondary-foreground"})})})]}))}function Yc(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx(Select.Separator,l({className:n("-mx-1 my-1 h-px bg-gray-stroke-muted",e),"data-slot":"select-separator"},a))}function Ll(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx(Select.ScrollUpButton,f(l({className:n("flex cursor-default items-center justify-center py-1",e),"data-slot":"select-scroll-up-button"},a),{children:jsx(ChevronUp,{size:16,strokeWidth:1.6,className:"text-gray-foreground"})}))}function Il(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx(Select.ScrollDownButton,f(l({className:n("flex cursor-default items-center justify-center py-1",e),"data-slot":"select-scroll-down-button"},a),{children:jsx(ChevronDown,{size:24,strokeWidth:1.6,className:"text-gray-foreground"})}))}function ep(o){var t=o,{className:e}=t,a=d(t,["className"]);let{invalid:r}=useContext(_t);return jsx("span",l({className:n("-mt-1 text-xs",r?"text-feedback-error-foreground":"text-gray-foreground",e),"data-slot":"select-text"},a))}var kl=createContext(null);function rp(r){var s=r,{className:e,size:a="md",children:o}=s,t=d(s,["className","size","children"]);return jsx(kl.Provider,{value:{size:a},children:jsx(Tabs.Root,f(l({"data-slot":"tabs",className:n("flex flex-col gap-2",e)},t),{children:o}))})}function sp(t){var r=t,{className:e,containerClassName:a}=r,o=d(r,["className","containerClassName"]);return jsxs(Wo,{className:n("[&_[data-slot=scroll-area-scrollbar][data-orientation=horizontal]]:h-1",a),children:[jsx(Tabs.List,l({"data-slot":"tabs-list",className:n("inline-flex w-fit items-center justify-center rounded-md bg-gray-background-soft p-0.5",e)},o)),jsx(et,{orientation:"horizontal"})]})}var yl=cva("shadow-transparent data-[state=active]:shadow-level-1 group inline-flex items-center justify-center gap-2.5 whitespace-nowrap rounded-[6px] font-medium text-gray-foreground outline-none data-[state=active]:bg-surface-card data-[state=active]:text-primary-foreground [&_svg]:shrink-0 [&_svg]:text-inherit disabled:text-gray-foreground-muted disabled:pointer-events-none",{variants:{size:{sm:"max-h-7 px-3 py-1.5 text-xs [&_svg]:size-4",md:"max-h-9 px-4 py-2 text-sm [&_svg]:size-5",lg:"max-h-11 px-4 py-2.5 text-md [&_svg]:size-6"}},defaultVariants:{size:"md"}});function lp(i){var u=i,{className:e,icon:a,badge:o,badgeVariant:t,children:r}=u,s=d(u,["className","icon","badge","badgeVariant","children"]);var b;let c=x=>x!=null&&x!==0&&x!==""&&x!=="0"&&!s.disabled,p=useContext(kl),m=(b=p==null?void 0:p.size)!=null?b:"md";return jsxs(Tabs.Trigger,f(l({"data-slot":"tabs-trigger",className:n(yl({size:m,className:e}))},s),{children:[a,r&&jsxs("span",{className:"inline-grid [grid-template-areas:'stack']",children:[jsx("span",{"aria-hidden":"true",className:"invisible font-semibold [grid-area:stack]",children:r}),jsx("span",{className:"font-medium [grid-area:stack] group-data-[state=active]:font-semibold",children:r})]}),c(o)&&jsx(aa,{size:m,variant:t,children:String(o)})]}))}function np(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx(Tabs.Content,l({"data-slot":"tabs-content",className:n("flex-1 outline-none",e)},a))}var Sl=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),dp=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,o,t)=>t?t.toUpperCase():o.toLowerCase()),Zo=e=>{let a=dp(e);return a.charAt(0).toUpperCase()+a.slice(1)},Gt=(...e)=>e.filter((a,o,t)=>!!a&&a.trim()!==""&&t.indexOf(a)===o).join(" ").trim(),Pl=e=>{for(let a in e)if(a.startsWith("aria-")||a==="role"||a==="title")return true};var wl={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var Al=forwardRef((p,c)=>{var m=p,{color:e="currentColor",size:a=24,strokeWidth:o=2,absoluteStrokeWidth:t,className:r="",children:s,iconNode:i}=m,u=d(m,["color","size","strokeWidth","absoluteStrokeWidth","className","children","iconNode"]);return createElement("svg",l(l(f(l({ref:c},wl),{width:a,height:a,stroke:e,strokeWidth:t?Number(o)*24/Number(a):o,className:Gt("lucide",r)}),!s&&!Pl(u)&&{"aria-hidden":"true"}),u),[...i.map(([b,x])=>createElement(b,x)),...Array.isArray(s)?s:[s]])});var Rl=(e,a)=>{let o=forwardRef((i,s)=>{var u=i,{className:t}=u,r=d(u,["className"]);return createElement(Al,l({ref:s,iconNode:a,className:Gt(`lucide-${Sl(Zo(e))}`,`lucide-${e}`,t)},r))});return o.displayName=Zo(e),o};var cp=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],at=Rl("x",cp);function $o(a){var e=d(a,[]);return jsx(Dialog.Root,l({"data-slot":"sheet"},e))}function pp(a){var e=d(a,[]);return jsx(Dialog.Trigger,l({"data-slot":"sheet-trigger"},e))}function mp(a){var e=d(a,[]);return jsx(Dialog.Close,l({"data-slot":"sheet-close"},e))}function gp(a){var e=d(a,[]);return jsx(Dialog.Portal,l({"data-slot":"sheet-portal"},e))}function xp(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx(Dialog.Overlay,l({"data-slot":"sheet-overlay",className:n("bg-black/50 fixed inset-0 z-50 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e)},a))}function Jo(r){var s=r,{className:e,children:a,side:o="right"}=s,t=d(s,["className","children","side"]);return jsxs(gp,{children:[jsx(xp,{}),jsxs(Dialog.Content,f(l({"data-slot":"sheet-content",className:n("fixed z-50 flex flex-col gap-4 bg-background shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",o==="right"&&"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm",o==="left"&&"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",o==="top"&&"inset-x-0 top-0 h-auto border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",o==="bottom"&&"inset-x-0 bottom-0 h-auto border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",e)},t),{children:[a,jsxs(Dialog.Close,{className:"rounded-xs focus:outline-hidden absolute right-4 top-4 opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[jsx(at,{className:"size-4"}),jsx("span",{className:"sr-only",children:"Close"})]})]}))]})}function hp(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("div",l({"data-slot":"sheet-header",className:n("flex flex-col gap-1.5 p-4",e)},a))}function bp(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("div",l({"data-slot":"sheet-footer",className:n("mt-auto flex flex-col gap-2 p-4",e)},a))}function Cp(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx(Dialog.Title,l({"data-slot":"sheet-title",className:n("font-semibold text-foreground",e)},a))}function vp(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx(Dialog.Description,l({"data-slot":"sheet-description",className:n("text-muted-foreground text-sm",e)},a))}function Wt(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("div",l({"data-slot":"skeleton",className:n("animate-pulse rounded-md bg-gray-150",e)},a))}var Rp="sidebar_state",Dp=3600*24*7,Mp="b",Nl=createContext(null);function Ta(){let e=useContext(Nl);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}function Bp(i){var u=i,{defaultOpen:e=true,open:a,onOpenChange:o,className:t,children:r}=u,s=d(u,["defaultOpen","open","onOpenChange","className","children"]);let c=Qa(),[p,m]=useState(false),[b,x]=useState(e),T=a!=null?a:b,L=useCallback(P=>{let k=typeof P=="function"?P(T):P;o?o(k):x(k),document.cookie=`${Rp}=${k}; path=/; max-age=${Dp}`;},[o,T]),D=useCallback(()=>c?m(P=>!P):L(P=>!P),[c,L,m]);useEffect(()=>{let P=k=>{k.key===Mp&&(k.metaKey||k.ctrlKey)&&(k.preventDefault(),D());};return window.addEventListener("keydown",P),()=>window.removeEventListener("keydown",P)},[D]);let M=T?"expanded":"collapsed",G=useMemo(()=>({state:M,open:T,setOpen:L,isMobile:c,openMobile:p,setOpenMobile:m,toggleSidebar:D}),[M,T,L,c,p,m,D]);return jsx(Nl.Provider,{value:G,children:jsx(na,{delayDuration:0,children:jsx("div",f(l({"data-slot":"sidebar-wrapper",className:n("group/sidebar-wrapper has-data-[variant=inset]:bg-surface-navigation flex min-h-svh w-full",t)},s),{children:r}))})})}function Np(u){var c=u,{side:e="left",variant:a="sidebar",collapsible:o="offcanvas",className:t,containerClassName:r,children:s}=c,i=d(c,["side","variant","collapsible","className","containerClassName","children"]);let{isMobile:p,state:m,openMobile:b,setOpenMobile:x}=Ta();return o==="none"?jsx("div",f(l({"data-slot":"sidebar",className:n("flex h-full w-[var(--sidebar-width)] flex-col bg-surface-navigation text-gray-foreground",t)},i),{children:s})):p?jsx($o,f(l({open:b,onOpenChange:x},i),{children:jsx(Jo,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:n("w-[var(--sidebar-width-mobile)] bg-surface-navigation p-0 text-gray-foreground [&>button]:hidden",t),side:e,children:jsx("div",{className:"flex h-full w-full flex-col",children:s})})})):jsxs("div",{className:n("group peer hidden text-gray-foreground md:block",t),"data-state":m,"data-collapsible":m==="collapsed"?o:"","data-variant":a,"data-side":e,"data-slot":"sidebar",children:[jsx("div",{"data-slot":"sidebar-gap",className:n("relative w-[var(--sidebar-width)] bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",a==="floating"||a==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-[var(--sidebar-width-icon)]")}),jsx("div",f(l({"data-slot":"sidebar-container",className:n("fixed inset-y-0 z-10 hidden h-svh w-[var(--sidebar-width)] border-gray-stroke-muted transition-[left,right,width] duration-200 ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",a==="floating"||a==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-[var(--sidebar-width-icon)] group-data-[side=left]:border-r group-data-[side=right]:border-l",r)},i),{children:jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"flex h-full w-full flex-col bg-surface-navigation group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-gray-stroke-muted group-data-[variant=floating]:shadow-sm",children:s})}))]})}function Fp(c){var p=c,{className:e,onClick:a,sizeIcon:o="size-5",icon:t=jsx(HamburgerMd,{className:o}),showTooltip:r=false,tooltipContent:s,enableHover:i=false}=p,u=d(p,["className","onClick","sizeIcon","icon","showTooltip","tooltipContent","enableHover"]);let{toggleSidebar:m,open:b,isMobile:x}=Ta(),[T,L]=useState(false),M=s||{open:"Esconder",closed:"Mostrar"},G=()=>i&&T?b?jsx(ChevronLeftMd,{className:o}):jsx(ChevronRightMd,{className:o}):t,P=jsxs("button",f(l({"data-sidebar":"trigger","data-slot":"sidebar-trigger",className:n("flex min-h-8 min-w-8 items-center justify-center rounded-full bg-surface-elevated text-gray-foreground transition-all duration-200 hover:shadow-[0px_0px_2px_0px_rgba(24,26,30,0.16),0px_2px_4px_0px_rgba(24,26,30,0.08)] [&>svg]:text-gray-foreground",e),onClick:k=>{a==null||a(k),m();},onMouseEnter:!x&&i?()=>L(true):void 0,onMouseLeave:!x&&i?()=>L(false):void 0},u),{children:[G(),jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]}));return !r||x?P:jsxs(da,{children:[jsx(ia,{asChild:true,children:P}),jsx(ua,{side:"right",align:"center",children:b?M.open:M.closed})]})}function Ep(o){var t=o,{className:e}=t,a=d(t,["className"]);let{toggleSidebar:r}=Ta();return jsx("button",l({"data-sidebar":"rail","data-slot":"sidebar-rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:r,title:"Toggle Sidebar",className:n("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-gray-stroke-muted group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full hover:group-data-[collapsible=offcanvas]:bg-surface-navigation","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e)},a))}function Op(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("main",l({"data-slot":"sidebar-inset",className:n("relative flex w-full flex-1 flex-col bg-surface-navigation","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm",e)},a))}function zp(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx(_o,l({"data-slot":"sidebar-input","data-sidebar":"input",className:n("bg-bg-surface-navigation h-8 w-full shadow-none",e)},a))}function Hp(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("div",l({"data-slot":"sidebar-header","data-sidebar":"header",className:n("flex flex-col gap-0.5 px-4 pt-3",e)},a))}function Vp(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("div",l({"data-slot":"sidebar-footer","data-sidebar":"footer",className:n("flex flex-col gap-0.5 px-4 pb-3 [[data-state=collapsed]_&]:px-2",e)},a))}function qp(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx(xa,l({"data-slot":"sidebar-separator","data-sidebar":"separator",className:n("mx-2 w-auto bg-gray-stroke-muted",e)},a))}function _p(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("div",l({"data-slot":"sidebar-content","data-sidebar":"content",className:n("flex min-h-0 flex-1 flex-col gap-0.5 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e)},a))}function Up(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("div",l({"data-slot":"sidebar-group","data-sidebar":"group",className:n("relative flex w-full min-w-0 flex-col p-2 px-4",e)},a))}function Gp(t){var r=t,{className:e,asChild:a=false}=r,o=d(r,["className","asChild"]);let s=a?Slot.Slot:"div";return jsx(s,l({"data-slot":"sidebar-group-label","data-sidebar":"group-label",className:n("outline-hidden flex h-12 shrink-0 items-center whitespace-nowrap rounded-md px-2 text-xs font-semibold uppercase text-gray-foreground-muted ring-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:mt-0 group-data-[collapsible=icon]:hidden",e)},o))}function Wp(t){var r=t,{className:e,asChild:a=false}=r,o=d(r,["className","asChild"]);let s=a?Slot.Slot:"button";return jsx(s,l({"data-slot":"sidebar-group-action","data-sidebar":"group-action",className:n("outline-hidden absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-gray-foreground ring-ring transition-transform hover:bg-secondary-background-soft-emphasis focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 md:after:hidden","group-data-[collapsible=icon]:hidden",e)},o))}function Xp(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("div",l({"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:n("w-full text-sm",e)},a))}function Kp(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("ul",l({"data-slot":"sidebar-menu","data-sidebar":"menu",className:n("flex w-full min-w-0 flex-col gap-1",e)},a))}function jp(r){var s=r,{className:e,isActive:a,children:o}=s,t=d(s,["className","isActive","children"]);return jsxs("li",f(l({"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:n("group/menu-item relative hover:cursor-pointer",e)},t),{children:[a&&jsx("span",{className:"absolute -left-4 top-0 h-full w-0.5 bg-secondary-stroke-emphasis","aria-hidden":"true"}),o]}))}var Zp=cva("peer/menu-button font-medium flex w-full items-center gap-2.5 overflow-hidden rounded-md p-[.55rem] text-left text-sm outline-hidden ring-ring transition-[width,height,padding] hover:bg-secondary-background-soft-emphasis focus-visible:ring-2 active:text-secondary-foreground active:font-semibold disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:text-secondary-foreground data-[active=true]:font-semibold data-[active=true]:hover:bg-secondary-background-soft-emphasis data-[active=true]:hover:text-secondary-foreground group-data-[collapsible=icon]:size-10! group-data-[collapsible=icon]:p-2.5! [&>span:last-child]:truncate [&>svg] [&>svg]:size-5 [&>svg]:shrink-0 mx-auto",{variants:{variant:{default:"hover:bg-secondary-background-soft-emphasis",section:"[[data-state=collapsed]_&]:p-[5px]",outline:"bg-surface-navigation shadow-[0_0_0_1px_hsl(var(--color-border))] hover:bg-secondary-background-soft-emphasis hover:shadow-[0_0_0_1px_hsl(var(--secondary))]"},size:{sm:"h-8 text-xs",md:"h-10 text-sm",lg:"h-12 text-md group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"md"}});function Qp(u){var c=u,{asChild:e=false,isActive:a=false,variant:o="default",size:t="md",tooltip:r,className:s}=c,i=d(c,["asChild","isActive","variant","size","tooltip","className"]);let p=e?Slot.Slot:"button",{isMobile:m,state:b}=Ta(),x=jsx(p,l({"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":t,"data-active":a,className:n(Zp({variant:o,size:t}),s)},i));return r?(typeof r=="string"&&(r={children:r}),jsxs(da,{children:[jsx(ia,{asChild:true,children:x}),jsx(ua,l({side:"right",align:"center",hidden:b!=="collapsed"||m},r))]})):x}function $p(r){var s=r,{className:e,asChild:a=false,showOnHover:o=false}=s,t=d(s,["className","asChild","showOnHover"]);let i=a?Slot.Slot:"button";return jsx(i,l({"data-slot":"sidebar-menu-action","data-sidebar":"menu-action",className:n("outline-hidden absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-gray-foreground ring-ring transition-transform hover:bg-secondary-background-soft-emphasis focus-visible:ring-2 peer-hover/menu-button:text-secondary-stroke-emphasis [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 md:after:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",o&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-secondary md:opacity-0",e)},t))}function Jp(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("div",l({"data-slot":"sidebar-menu-badge","data-sidebar":"menu-badge",className:n("pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-gray-foreground","peer-hover/menu-button:text-secondary peer-data-[active=true]/menu-button:text-secondary","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e)},a))}function Yp(t){var r=t,{className:e,showIcon:a=false}=r,o=d(r,["className","showIcon"]);let s=useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return jsxs("div",f(l({"data-slot":"sidebar-menu-skeleton","data-sidebar":"menu-skeleton",className:n("flex h-8 items-center gap-0.5 rounded-md px-2",e)},o),{children:[a&&jsx(Wt,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),jsx(Wt,{className:"max-w-(--skeleton-width) h-4 flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":s}})]}))}function em(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("ul",l({"data-slot":"sidebar-menu-sub","data-sidebar":"menu-sub",className:n("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-gray-stroke-muted px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e)},a))}function am(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("li",l({"data-slot":"sidebar-menu-sub-item","data-sidebar":"menu-sub-item",className:n("group/menu-sub-item relative",e)},a))}function tm({icon:e,title:a}){let{state:o,isMobile:t}=Ta();return jsxs(Fragment,{children:[isValidElement(e)?cloneElement(e):e,jsx("span",{className:n("whitespace-nowrap",o==="collapsed"&&"opacity-0",t&&"opacity-100"),children:a})]})}function om(){return jsx("div",{className:"ml-auto transition-transform duration-200 group-data-[state=open]/collapsible:rotate-90",children:jsx(ChevronRightMd,{size:20})})}function rm(s){var i=s,{asChild:e=false,size:a="md",isActive:o=false,className:t}=i,r=d(i,["asChild","size","isActive","className"]);let u=e?Slot.Slot:"a";return jsx(u,l({"data-slot":"sidebar-menu-sub-button","data-sidebar":"menu-sub-button","data-size":a,"data-active":o,className:n("outline-hidden flex h-9 min-w-0 -translate-x-px items-center gap-0.5 overflow-hidden rounded-md px-2 font-medium text-gray-foreground ring-ring hover:bg-secondary-background-soft-emphasis focus-visible:ring-2 active:font-semibold active:text-secondary-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-gray-foreground","data-[active=true]:font-semibold data-[active=true]:text-secondary-foreground",a==="sm"&&"text-xs",a==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",t)},r))}var dm={sm:"size-2",md:"size-3",lg:"size-4"},El={sm:"[&_svg]:size-2",md:"[&_svg]:size-3",lg:"[&_svg]:size-3.5"},im={sm:"data-[state=checked]:translate-x-[11px] data-[state=checked]:rtl:-translate-x-[11px] data-[state=checked]:data-[disabled]:translate-x-[10px] data-[state=checked]:data-[disabled]:rtl:-translate-x-[10px]",md:"data-[state=checked]:translate-x-[15px] data-[state=checked]:rtl:-translate-x-[15px] data-[state=checked]:data-[disabled]:translate-x-[14px] data-[state=checked]:data-[disabled]:rtl:-translate-x-[14px]",lg:"data-[state=checked]:translate-x-[19px] data-[state=checked]:rtl:-translate-x-[19px] data-[state=checked]:data-[disabled]:translate-x-[18px] data-[state=checked]:data-[disabled]:rtl:-translate-x-[18px]"},Ol=cva("peer inline-flex shrink-0 items-center rounded-pill outline-none transition-all disabled:pointer-events-none focus:outline-0",{variants:{variant:{regular:"border-2 border-gray-stroke-muted data-[disabled]:cursor-default data-[disabled]:!bg-gray-background-soft-muted data-[state=checked]:bg-primary-background-fill data-[state=unchecked]:bg-surface-card data-[state=checked]:border-transparent data-[disabled]:data-[state=checked]:bg-gray-background-soft-muted data-[disabled]:data-[state=checked]:border-gray-stroke-muted enabled:hover:ring-4 data-[state=unchecked]:enabled:hover:ring-state-hover data-[state=checked]:enabled:hover:ring-state-active data-[state=unchecked]:enabled:hover:border-gray-stroke data-[state=checked]:enabled:hover:bg-primary-background-fill-emphasis"},size:{sm:"h-4 w-6",md:"h-5 w-8",lg:"h-6 w-10"}},defaultVariants:{variant:"regular",size:"md"}});function um(c){var p=c,{className:e,size:a,variant:o,checkedIcon:t,uncheckedIcon:r,checked:s,defaultChecked:i}=p,u=d(p,["className","size","variant","checkedIcon","uncheckedIcon","checked","defaultChecked"]);let[m,b]=useState(i||false),x=s!==void 0,T=x?s:m,L=t||r;return jsx(Switch.Root,f(l({"data-slot":"switch",className:n("group",Ol({size:a,variant:o}),e),checked:s,defaultChecked:i,onCheckedChange:D=>{var M;x||b(D),(M=u.onCheckedChange)==null||M.call(u,D);}},u),{children:jsx(Switch.Thumb,{"data-slot":"switch-thumb",className:n("pointer-events-none flex items-center justify-center rounded-full ring-0 transition-transform data-[state=unchecked]:translate-x-0.5 data-[disabled]:!bg-gray-background-fill-muted data-[state=checked]:bg-primary-foreground-onfill data-[state=unchecked]:bg-gray-foreground-muted data-[state=unchecked]:group-hover:bg-gray-foreground data-[state=unchecked]:group-data-[disabled]:group-hover:bg-gray-foreground-muted",L&&"!bg-transparent data-[disabled]:!bg-transparent",dm[a||"md"],im[a||"md"]),children:L&&jsxs(Fragment,{children:[T&&t&&jsx("span",{className:n("flex items-center justify-center text-primary-foreground-onfill group-data-[disabled]:text-gray-300",El[a||"md"]),children:t}),!T&&r&&jsx("span",{className:n("flex items-center justify-center text-gray-foreground group-data-[disabled]:text-gray-300",El[a||"md"]),children:r})]})})}))}var zl=createContext({});function xm({children:e,value:a,onValueChange:o,open:t,defaultOpen:r,onOpenChange:s}){let[i,u]=useState(a||""),c={value:a||i,onValueChange:o||u};return jsx(zl.Provider,{value:c,children:jsx(Ro,{open:t,defaultOpen:r,onOpenChange:s,children:e})})}function hm({children:e,asChild:a=true,className:o}){return jsx(Do,{className:o,asChild:a,children:e})}function bm({children:e,align:a="center",side:o="right",className:t}){return jsx(Mo,{className:t,align:a,side:o,children:e})}function Cm({children:e,label:a}){let{value:o,onValueChange:t}=useContext(zl);return a?jsxs(Fragment,{children:[jsx(No,{children:a}),jsx(wt,{value:o,onValueChange:t,children:e})]}):jsx(wt,{value:o,onValueChange:t,children:e})}function vm({children:e,value:a,onClick:o,icon:t}){let r=()=>{o&&o();};return a?jsxs(Bo,{value:a,onClick:r,children:[typeof t=="string"?jsx("img",{src:t,alt:"",width:20,height:14}):t,e]}):jsxs(Pt,{onClick:r,children:[typeof t=="string"?jsx("img",{src:t,alt:"",width:20,height:14}):t,e]})}function Lm({children:e,onClick:a,icon:o}){return jsxs(Pt,{onClick:a,children:[o,e]})}function Im(){return jsx(Fo,{})}var ql=createContext(null),Tm=150,Hl=16,Am="w-8";function Qt(){let e=useContext(ql);if(!e)throw new Error("useTabsContext must be used within a Tabs component.");return e}function Rm(e,a){let o=useRef(null);return useEffect(()=>()=>{o.current&&clearTimeout(o.current);},[]),useCallback(((...t)=>{o.current&&clearTimeout(o.current),o.current=setTimeout(()=>e(...t),a);}),[e,a])}var _l=cva("relative inline-flex min-w-full items-center justify-between gap-0 bg-surface-section",{variants:{variant:{standalone:"rounded-lg border border-gray-stroke-muted px-6",header:"border-b border-gray-stroke-muted px-3.5 sm:px-6 lg:px-8 bg-transparent"}},defaultVariants:{variant:"standalone"}}),Ul=cva(["inline-flex min-w-fit flex-1 items-center justify-center gap-2 whitespace-nowrap font-medium transition-colors","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:pointer-events-none disabled:text-gray-foreground-muted","[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg]:transition-all","relative font-medium text-gray-foreground hover:text-gray-foreground data-[state=active]:text-primary-foreground data-[state=active]:font-semibold"],{variants:{variant:{standalone:"px-3.5 md:px-10 lg:px-16",header:"px-4"},size:{md:"h-[46px] text-sm",lg:"h-[54px] text-base"}},defaultVariants:{variant:"standalone",size:"md"}}),Dm=cva("relative min-w-0 max-w-full",{variants:{variant:{standalone:"",header:"px-3.5 sm:px-6 lg:px-8"}},defaultVariants:{variant:"standalone"}}),Vl=cva(["pointer-events-none absolute top-0 z-10 h-full transition-opacity duration-200",Am],{variants:{side:{left:"left-0 bg-gradient-to-r from-background to-transparent",right:"right-0 bg-gradient-to-l from-background to-transparent"},variant:{standalone:"",header:""}},compoundVariants:[{side:"left",variant:"header",class:"left-3.5 sm:left-6 lg:left-8"},{side:"right",variant:"header",class:"right-3.5 sm:right-6 lg:right-8"}],defaultVariants:{side:"left",variant:"standalone"}}),Gl=cva("ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",{variants:{variant:{standalone:"",header:""},size:{md:"",lg:""}},compoundVariants:[{variant:"standalone",size:"md",class:"m-4"},{variant:"standalone",size:"lg",class:"m-6"},{variant:"header",size:"md",class:"my-4"},{variant:"header",size:"lg",class:"my-6"}],defaultVariants:{variant:"standalone",size:"md"}});function Mm(i){var u=i,{className:e,variant:a="standalone",size:o="md",responsive:t=true,children:r}=u,s=d(u,["className","variant","size","responsive","children"]);let[c,p]=useState(o),m=useCallback(()=>{if(typeof window=="undefined")return;let x=parseInt(ya.tablet),T=parseInt(ya.mobile),L=window.innerWidth;L<=T||L<=x?p("md"):p(o);},[o]),b=Rm(m,Tm);return useEffect(()=>{if(typeof window=="undefined"||!t){p(o);return}return m(),window.addEventListener("resize",b),()=>window.removeEventListener("resize",b)},[t,o,m,b]),jsx(ql.Provider,{value:{variant:a,size:o,responsiveSize:c},children:jsx(Tabs.Root,f(l({"data-slot":"tabs","data-variant":a,"data-size":c,className:n("flex w-full max-w-full flex-col overflow-hidden",e)},s),{children:r}))})}function Bm(t){var r=t,{className:e,children:a}=r,o=d(r,["className","children"]);let{variant:s,responsiveSize:i}=Qt(),u=useRef(null),c=useRef(null),[p,m]=useState(false),[b,x]=useState(false),[T,L]=useState(null),D=useCallback(()=>{let P=u.current;if(!P)return;let{scrollLeft:k,scrollWidth:j,clientWidth:z}=P,g=j>z;m(g&&k>0),x(g&&k<j-z-1);},[]),M=useCallback(()=>{let P=c.current;if(!P)return;let k=P.querySelector('[data-state="active"]');if(k){let j=P.getBoundingClientRect(),z=k.getBoundingClientRect();L({left:z.left-j.left,width:z.width});}},[]),G=useCallback(()=>{let P=u.current,k=c.current;if(!P||!k)return;let j=k.querySelector('[data-state="active"]');if(j){let z=P.getBoundingClientRect(),g=j.getBoundingClientRect();g.left<z.left?P.scrollBy({left:g.left-z.left-Hl,behavior:"smooth"}):g.right>z.right&&P.scrollBy({left:g.right-z.right+Hl,behavior:"smooth"});}},[]);return useEffect(()=>{let P=u.current;if(!P)return;D();let k=new ResizeObserver(()=>{D(),M();});return k.observe(P),P.addEventListener("scroll",D,{passive:true}),()=>{k.disconnect(),P.removeEventListener("scroll",D);}},[D,M]),useEffect(()=>{M();},[M,a]),useEffect(()=>{let P=c.current;if(!P)return;let k=new MutationObserver(j=>{for(let z of j)if(z.type==="attributes"&&z.attributeName==="data-state"){M(),G();break}});return k.observe(P,{attributes:true,subtree:true,attributeFilter:["data-state"]}),()=>k.disconnect()},[M,G]),jsxs("div",{"data-slot":"tabs-list-wrapper",className:Dm({variant:s}),children:[jsx("div",{className:n(Vl({side:"left",variant:s}),p?"opacity-100":"opacity-0"),"aria-hidden":"true"}),jsx("div",{className:n(Vl({side:"right",variant:s}),b?"opacity-100":"opacity-0"),"aria-hidden":"true"}),jsx("div",{ref:u,className:"overflow-x-auto overflow-y-hidden [-ms-overflow-style:none] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:jsxs("div",{ref:c,className:"relative",children:[jsx(Tabs.List,f(l({"data-slot":"tabs-list","data-variant":s,"data-size":i,className:n(_l({variant:s}),e)},o),{children:a})),T&&jsx("div",{className:"pointer-events-none absolute bottom-0 h-0.5 bg-secondary-stroke-emphasis transition-all duration-300 ease-out",style:{left:T.left,width:T.width},"aria-hidden":"true"})]})})]})}function Nm(s){var i=s,{className:e,children:a,icon:o,badge:t}=i,r=d(i,["className","children","icon","badge"]);let{variant:u,responsiveSize:c}=Qt(),p=useRef(null),[m,b]=useState(false);useEffect(()=>{let T=p.current;if(!T)return;let L=()=>{b(T.getAttribute("data-state")==="active");};L();let D=new MutationObserver(L);return D.observe(T,{attributes:true,attributeFilter:["data-state"]}),()=>D.disconnect()},[]);let x=()=>o?isValidElement(o)?cloneElement(o,{strokeWidth:m?2:1.6}):o:null;return jsxs(Tabs.Trigger,f(l({ref:p,"data-slot":"tabs-trigger","data-variant":u,"data-size":c,className:n(Ul({variant:u,size:c}),e)},r),{children:[o&&jsx("span",{"data-slot":"tabs-icon",className:"flex shrink-0 items-center","aria-hidden":"true",children:x()}),jsx("span",{children:a}),t&&jsx("span",{"data-slot":"tabs-badge",className:"flex shrink-0 items-center",role:"status",children:t})]}))}function Fm(o){var t=o,{className:e}=t,a=d(t,["className"]);let{variant:r,responsiveSize:s}=Qt();return jsx(Tabs.Content,l({"data-slot":"tabs-content","data-variant":r,"data-size":s,className:n(Gl({variant:r,size:s}),e)},a))}var Wl=cva("group/tile relative flex flex-col justify-center rounded-lg gap-0.5 px-5 py-4 cursor-default data-[disabled=true]:pointer-events-none",{variants:{variant:{regular:"bg-surface-settings-on text-primary-foreground fill-primary-foreground data-[disabled=false]:hover:[background:radial-gradient(51.96%_112.02%_at_50%_112.02%,_var(--color-surface-card)_0%,_var(--color-surface-settings-on)_100%)] data-[disabled=true]:bg-surface-disable data-[inactive=true]:bg-surface-settings-off data-[inactive=true]:hover:[background:radial-gradient(51.96%_112.02%_at_50%_112.02%,_var(--color-surface-card)_0%,_var(--color-surface-settings-off)_100%)]",cm:"bg-cm-background-fill text-cm-foreground-onfill fill-cm-foreground-onfill data-[disabled=false]:hover:[background:radial-gradient(63.78%_137.5%_at_50%_137.5%,_var(--color-cm-background-fill-emphasis)_0%,_var(--color-cm-background-fill)_100%)] data-[disabled=true]:opacity-70 data-[inactive=true]:[filter:brightness(.8)]",go:"bg-go-background-fill text-go-foreground-onfill fill-go-foreground-onfill data-[disabled=false]:hover:[background:radial-gradient(63.78%_137.5%_at_50%_137.5%,_var(--color-go-background-fill-emphasis)_0%,_var(--color-go-background-fill)_100%)] data-[disabled=true]:opacity-70 data-[inactive=true]:[filter:brightness(.8)]",cir:"bg-cir-background-fill text-cir-foreground-onfill fill-cir-foreground-onfill data-[disabled=false]:hover:[background:radial-gradient(63.78%_137.5%_at_50%_137.5%,_var(--color-cir-background-fill-emphasis)_0%,_var(--color-cir-background-fill)_100%)] data-[disabled=true]:opacity-70 data-[inactive=true]:[filter:brightness(.8)]",ped:"bg-ped-background-fill text-ped-foreground-onfill fill-ped-foreground-onfill data-[disabled=false]:hover:[background:radial-gradient(51.96%_112.02%_at_50%_112.02%,_var(--color-ped-background-fill-emphasis)_0%,_var(--color-ped-background-fill)_100%)] data-[disabled=true]:opacity-70 data-[inactive=true]:[filter:brightness(.8)]",prev:"bg-prev-background-fill text-prev-foreground-onfill fill-prev-foreground-onfill data-[disabled=false]:hover:[background:radial-gradient(63.78%_137.5%_at_50%_137.5%,_var(--color-prev-background-fill-emphasis)_0%,_var(--color-prev-background-fill)_100%)] data-[disabled=true]:opacity-70 data-[inactive=true]:[filter:brightness(.8)]"}},defaultVariants:{variant:"regular"}});function Hm(i){var u=i,{className:e,variant:a="regular",asChild:o=false,disabled:t=false,inactive:r=false}=u,s=d(u,["className","variant","asChild","disabled","inactive"]);let c=o?Slot.Slot:"div";return jsxs(c,f(l({"data-slot":"tile","data-variant":a,"data-inactive":r,"data-disabled":t,"aria-disabled":t||r,className:n(Wl({variant:a,className:e}),s.onClick&&!t&&"cursor-pointer")},s),{children:[s.children,s.onClick&&!t&&jsx(EditPencil,{className:"absolute right-5 top-4 size-5 opacity-0 transition-opacity group-hover/tile:opacity-100"})]}))}function Vm(t){var r=t,{className:e,icon:a}=r,o=d(r,["className","icon"]);return jsx("div",f(l({"data-slot":"tile-icon",className:n("mb-2.5 last:mb-0 [&>svg]:size-5",e)},o),{children:a}))}function qm(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("div",l({"data-slot":"tile-title",className:n("line-clamp-1 flex w-fit text-xs font-medium",e)},a))}function _m(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx("span",l({"data-slot":"tile-description",className:n("line-clamp-1 flex w-fit text-sm font-semibold",e)},a))}var Xm=3,Km=5e3,Ue={ADD_TOAST:"ADD_TOAST",UPDATE_TOAST:"UPDATE_TOAST",DISMISS_TOAST:"DISMISS_TOAST",REMOVE_TOAST:"REMOVE_TOAST"},ar=0;function jm(){return ar=(ar+1)%Number.MAX_SAFE_INTEGER,ar.toString()}var tr=new Map,Xl=e=>{if(tr.has(e))return;let a=setTimeout(()=>{tr.delete(e),lt({type:Ue.REMOVE_TOAST,toastId:e});},Km);tr.set(e,a);},Zm=(e,a)=>{switch(a.type){case Ue.ADD_TOAST:return f(l({},e),{toasts:[a.toast,...e.toasts].slice(0,Xm)});case Ue.UPDATE_TOAST:return f(l({},e),{toasts:e.toasts.map(o=>o.id===a.toast.id?l(l({},o),a.toast):o)});case Ue.DISMISS_TOAST:{let{toastId:o}=a;return o?Xl(o):e.toasts.forEach(t=>{Xl(t.id);}),f(l({},e),{toasts:e.toasts.map(t=>t.id===o||a.toastId===void 0?f(l({},t),{open:false}):t)})}case Ue.REMOVE_TOAST:return a.toastId===void 0?f(l({},e),{toasts:[]}):f(l({},e),{toasts:e.toasts.filter(o=>o.id!==a.toastId)})}},Jt=[],Yt={toasts:[]};function lt(e){Yt=Zm(Yt,e),[...Jt].forEach(a=>{a(Yt);});}function Qm(a){var e=d(a,[]);let o=jm(),t=s=>lt({type:Ue.UPDATE_TOAST,toast:f(l({},s),{id:o})}),r=()=>lt({type:Ue.DISMISS_TOAST,toastId:o});return lt({type:Ue.ADD_TOAST,toast:f(l({},e),{id:o,open:true,onOpenChange:s=>{s||r();}})}),{id:o,dismiss:r,update:t}}function or(){let[e,a]=useState(Yt);return useEffect(()=>(Jt.push(a),()=>{let o=Jt.indexOf(a);o>-1&&Jt.splice(o,1);}),[]),f(l({},e),{toast:Qm,dismiss:o=>lt({type:Ue.DISMISS_TOAST,toastId:o})})}var Zl=cva("group pointer-events-auto relative flex w-full items-center justify-between gap-4 overflow-hidden rounded-md bg-surface-elevated p-2 pl-4 shadow-lg",{variants:{variant:{primary:"text-primary-foreground",secondary:"text-secondary-foreground",success:"text-feedback-success-foreground",warning:"text-feedback-warning-foreground",error:"text-feedback-error-foreground"}},defaultVariants:{variant:"primary"}}),og=cva("size-6 shrink-0",{variants:{variant:{primary:"text-primary-foreground fill-primary-background-soft",secondary:"text-secondary-foreground fill-secondary-background-soft",success:"text-feedback-success-foreground fill-feedback-success-background-soft",warning:"text-feedback-warning-foreground fill-feedback-warning-background-soft",error:"text-feedback-error-foreground fill-feedback-error-background-soft"}},defaultVariants:{variant:"primary"}}),rg={primary:"regular-soft",secondary:"emphasis-soft",success:"success-soft",warning:"warning-soft",error:"error-soft"},sg={primary:Info,secondary:Info,success:CircleCheck,warning:TriangleWarning,error:OctagonWarning},Ql=Toast.Provider;function $l(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx(Toast.Viewport,l({"data-slot":"toast-viewport",className:n("fixed right-0 top-0 z-[100] flex max-h-screen w-full min-w-0 max-w-[500px] flex-col gap-2 p-4 md:w-[500px]",e)},a))}function Jl(i){var u=i,{className:e,variant:a="primary",showIcon:o=true,duration:t=5e3,children:r}=u,s=d(u,["className","variant","showIcon","duration","children"]);let c=sg[a||"primary"];return jsx(Toast.Root,f(l({duration:t},s),{forceMount:true,asChild:true,children:jsxs(motion.li,{initial:{opacity:0,y:-50},animate:{opacity:1,y:0},exit:{opacity:0,y:-50,zIndex:-1},transition:{duration:.4,ease:"easeInOut"},layout:true,className:n(Zl({variant:a}),e),children:[o&&jsx(c,{className:n(og({variant:a}))}),jsx("div",{className:"flex flex-1 items-center justify-between gap-4",children:r})]})}))}function lg(c){var p=c,{className:e,variant:a="primary",size:o="sm",iconLeft:t,iconRight:r,children:s,altText:i="Toast action"}=p,u=d(p,["className","variant","size","iconLeft","iconRight","children","altText"]);return jsx(Toast.Action,f(l({asChild:true,altText:i,className:n("inline-flex items-center justify-center",e)},u),{children:jsx(ie,{iconLeft:t,iconRight:r,size:o,variant:rg[a],children:s})}))}function Yl(t){var r=t,{className:e,label:a="Fechar"}=r,o=d(r,["className","label"]);return jsx(Toast.Close,f(l({className:n("shrink-0",e)},o),{asChild:true,children:jsx(ie,{iconLeft:jsx(CloseMd,{className:"size-4"}),size:"sm","aria-label":a,variant:"regular-basic"})}))}function en(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx(Toast.Title,l({className:n("flex-1 text-md font-medium",e)},a))}function an(o){var t=o,{className:e}=t,a=d(t,["className"]);return jsx(Toast.Description,l({className:n("text-xs",e)},a))}function ng(){let{toasts:e}=or();return jsxs(Ql,{children:[jsx(AnimatePresence,{mode:"popLayout",children:e.filter(a=>a.open).map(function(i){var u=i,{id:a,title:o,description:t,action:r}=u,s=d(u,["id","title","description","action"]);return jsxs(Jl,f(l({},s),{children:[jsxs("div",{className:"grid",children:[o&&jsx(en,{children:o}),t&&jsx(an,{children:t})]}),jsxs("div",{className:"flex items-center gap-2",children:[r,jsx(Yl,{})]})]}),a)})}),jsx($l,{})]})}/*! Bundled license information:
1
+ import*as R from'react';import {createContext,forwardRef,createElement,Children,isValidElement,useMemo,useContext,useState,useCallback,Fragment as Fragment$1,useEffect,useRef,useId,cloneElement}from'react';import {cva}from'class-variance-authority';import {Mail,CloseMd,ChevronDown,Check,User,ChevronRightMd,MoreHorizontal,TimeRemaining,Lock,ArrowRightMd,ChevronRight,ArrowRightSm,RemoveMinus,Calendar,ChevronLeftMd,Hide,Show,TriangleWarning,ChevronLeftDuo,ChevronRightDuo,Circle,Info,CheckboxFill,Warning,ChevronUp,HamburgerMd,EditPencil,OctagonWarning,CircleCheck,SearchMagnifyingGlass}from'@medway-ui/icons';import {clsx}from'clsx';import {extendTailwindMerge}from'tailwind-merge';import {jsxs,jsx,Fragment}from'react/jsx-runtime';import {Toast,Slot,AlertDialog,Separator,Dialog,Avatar,Progress,Collapsible,Checkbox,DropdownMenu,Label,RadioGroup,Tooltip,ScrollArea,Select,Tabs,Switch,Popover}from'radix-ui';import {createPortal}from'react-dom';var ml=Object.defineProperty,gl=Object.defineProperties;var xl=Object.getOwnPropertyDescriptors;var Qa=Object.getOwnPropertySymbols;var zo=Object.prototype.hasOwnProperty,Uo=Object.prototype.propertyIsEnumerable;var Vo=(e,a,o)=>a in e?ml(e,a,{enumerable:true,configurable:true,writable:true,value:o}):e[a]=o,s=(e,a)=>{for(var o in a||(a={}))zo.call(a,o)&&Vo(e,o,a[o]);if(Qa)for(var o of Qa(a))Uo.call(a,o)&&Vo(e,o,a[o]);return e},f=(e,a)=>gl(e,xl(a));var n=(e,a)=>{var o={};for(var t in e)zo.call(e,t)&&a.indexOf(t)<0&&(o[t]=e[t]);if(e!=null&&Qa)for(var t of Qa(e))a.indexOf(t)<0&&Uo.call(e,t)&&(o[t]=e[t]);return o};var Ll=extendTailwindMerge({extend:{classGroups:{"font-size":["text-xxs","text-xs","text-sm","text-base","text-md","text-lg","text-xl","text-title-xs","text-title-sm","text-title-md","text-title-lg","text-title-xl","text-title-xxl","text-display-sm","text-display-md","text-display-lg"],leading:["leading-xxs","leading-xs","leading-sm","leading-md","leading-lg","leading-title-xs","leading-title-sm","leading-title-md","leading-title-lg","leading-title-xl","leading-title-xxl","leading-display-sm","leading-display-md","leading-display-lg"],"font-weight":["font-regular","font-medium","font-semibold","font-bold","font-extrabold"],rounded:["rounded-none","rounded-sm","rounded-md","rounded-lg","rounded-pill","rounded-circular","rounded-full"]}}});function l(...e){return Ll(clsx(e))}var Ht=createContext(null),Xo=cva("relative flex flex-col items-center justify-between gap-5 w-full rounded-md px-4 py-3 text-sm has-[>svg]:gap-x-9 gap-y-1 items-center [&>svg]:translate-y-0 [&>svg]:text-current lg:flex-row",{variants:{variant:{regular:"[background:linear-gradient(0deg,_var(--color-primary-background-soft)_0%,_var(--color-primary-background-soft)_100%),_var(--color-surface-card)] text-primary-foreground [&>svg]:text-primary-foreground",emphasis:"[background:linear-gradient(0deg,_var(--color-secondary-background-soft)_0%,_var(--color-secondary-background-soft)_100%),_var(--color-surface-card)] text-secondary-foreground [&>svg]:text-secondary-foreground",success:"[background:linear-gradient(0deg,_var(--color-green-background-soft)_0%,_var(--color-green-background-soft)_100%),_var(--color-surface-card)] text-green-foreground [&>svg]:text-green-foreground",warning:"[background:linear-gradient(0deg,_var(--color-yellow-background-soft)_0%,_var(--color-yellow-background-soft)_100%),_var(--color-surface-card)] text-yellow-foreground [&>svg]:text-yellow-foreground",error:"[background:linear-gradient(0deg,_var(--color-red-background-soft)_0%,_var(--color-red-background-soft)_100%),_var(--color-surface-card)] text-red-foreground [&>svg]:text-red-foreground"}},defaultVariants:{variant:"regular"}});function yl(d){var i=d,{className:e,variant:a="regular",onClose:o,children:t}=i,r=n(i,["className","variant","onClose","children"]);let u=Children.toArray(t),c=u.some(x=>isValidElement(x)&&x.type===Zo),p=u.some(x=>isValidElement(x)&&x.type===Ko),m=useMemo(()=>({variant:a,hasDescription:c,hasTitle:p,onClose:o}),[a,c,p,o]);return jsx(Ht.Provider,{value:m,children:jsxs("div",f(s({"data-slot":"alert",role:"alert",className:l(Xo({variant:a}),e)},r),{children:[t,o&&jsx(CloseMd,{"aria-label":"alert-close",onClick:o,className:"absolute right-4 top-2 !size-4 cursor-pointer !text-gray-foreground"})]}))})}function Sl(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsx("div",s({"data-slot":"alert-container",className:l("flex gap-3",e)},a))}function Pl(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsx("div",s({"data-slot":"alert-content",className:l("flex flex-col gap-1",e)},a))}function wl(t){var r=t,{className:e,icon:a}=r,o=n(r,["className","icon"]);return jsx("div",f(s({"data-slot":"alert-icon",className:l("size-6",e)},o),{children:a}))}function Ko(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsx("div",s({"data-slot":"alert-title",className:l("line-clamp-1 min-h-4 text-md font-medium",e)},a))}function Zo(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsx("div",s({"data-slot":"alert-description",className:l("!line-clamp-3 grid justify-items-start gap-1 text-sm leading-5",e)},a))}function Tl(o){var t=o,{className:e}=t,a=n(t,["className"]);let r=useContext(Ht),d=(r==null?void 0:r.hasDescription)||false,i=(r==null?void 0:r.hasTitle)||false,u=r==null?void 0:r.onClose;return jsx("div",s({"data-slot":"alert-actions",className:l("relative mt-2 flex flex-wrap items-center gap-x-2 lg:mt-0 lg:flex-nowrap",(!d||!i)&&u&&"lg:right-5",e)},a))}var jo=cva("inline-flex items-center justify-center rounded-pill px-3 py-2 min-h-10 text-sm font-semibold transition-colors whitespace-nowrap focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 hover:brightness-90",{variants:{variant:{regular:"text-current",basic:"text-current"},alertVariant:{regular:"",emphasis:"",success:"",warning:"",error:""}},compoundVariants:[{variant:"regular",alertVariant:"regular",class:"bg-primary-background-soft"},{variant:"regular",alertVariant:"emphasis",class:"bg-secondary-background-soft"},{variant:"regular",alertVariant:"success",class:"bg-green-background-soft"},{variant:"regular",alertVariant:"warning",class:"bg-yellow-background-soft"},{variant:"regular",alertVariant:"error",class:"bg-red-background-soft"}],defaultVariants:{variant:"regular",alertVariant:"regular"}});function Al(t){var r=t,{className:e,variant:a}=r,o=n(r,["className","variant"]);let d=useContext(Ht),i=(d==null?void 0:d.variant)||"regular";return jsx("button",s({className:l(jo({variant:a,alertVariant:i}),e)},o))}function Ot({size:e=24,className:a}){return jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:l("animate-spin",a),children:jsx("path",{d:"M21 12a9 9 0 1 1-6.219-8.56"})})}var Nl={sm:"size-4 p-0 leading-none",md:"size-5 p-0 leading-none",lg:"size-6 p-0 leading-none",xl:"size-7 p-0 leading-none"},Fl={sm:"px-1",md:"px-1",lg:"px-1",xl:"px-1.5"},$o=cva("inline-flex items-center justify-center rounded-pill border font-semibold w-fit whitespace-nowrap shrink-0 gap-1 [&>svg]:pointer-events-none overflow-hidden border-transparent px-2",{variants:{variant:{regular:"bg-secondary-background-fill text-secondary-foreground-onfill",error:"bg-red-background-soft text-red-stroke-emphasis",warning:"bg-yellow-background-soft text-yellow-foreground",freemium:"[background:radial-gradient(135.09%_111.8%_at_0%_50%,rgba(24,98,188,0.02)_0%,rgba(0,32,91,0)_100%),linear-gradient(46deg,rgba(62,218,199,0.56)_6.54%,rgba(24,98,188,0.17)_85.21%),var(--color-primary)] text-white"},size:{sm:"min-w-4 text-xxs [&>svg]:size-2.5",md:"min-w-5 text-xs [&>svg]:size-3",lg:"min-w-6 text-xs [&>svg]:size-3.5",xl:"min-w-7 text-sm [&>svg]:size-4"}},defaultVariants:{variant:"regular",size:"md"}});function _e(u){var c=u,{className:e,variant:a,size:o,icon:t,animation:r,asChild:d=false}=c,i=n(c,["className","variant","size","icon","animation","asChild"]);let p=d?Slot.Slot:"span",m=Children.count(i.children)>0,x=!!t&&!m,h=typeof i.children=="string"||typeof i.children=="number"?String(i.children).trim():"",y=/^[A-Za-z0-9]$/.test(h),L=/^[A-Za-z0-9]{2,3}$/.test(h),A=/^\d{1,2}\S$/.test(h),M=L||A;return jsxs(p,f(s({"data-slot":"badge",className:l($o({variant:a,size:o}),(x||y)&&Nl[o||"md"],!x&&M&&Fl[o||"md"],r==="shine"&&"animate-shine bg-[linear-gradient(135deg,transparent_25%,var(--color-white-24)_50%,transparent_75%,transparent_100%)] bg-[length:250%_250%,100%_100%] bg-no-repeat",e)},i),{children:[t,i.children]}))}var ql={sm:"!h-8 !min-h-8 !w-8 !px-3 !py-2",md:"!h-10 !min-h-10 !w-10 !px-[14px] !py-[10px]",lg:"!h-12 !min-h-12 !w-12 !p-3",xl:"!h-14 !min-h-14 !w-14 !p-3"},Jo={sm:"size-2",md:"size-2.5",lg:"size-2.5",xl:"size-3"},Vl={sm:"sm",md:"md",lg:"md",xl:"lg"},ya=cva("inline-flex items-center justify-center place-items-center gap-2 rounded-pill text-sm font-semibold whitespace-nowrap transition-all disabled:pointer-events-none shrink-0 [&_svg]:shrink-0 hover:cursor-pointer focus:outline-0 [grid-template-areas:'stack']",{variants:{variant:{regular:"bg-primary-background-fill text-primary-foreground-onfill hover:bg-primary-background-fill-emphasis disabled:bg-gray-background-fill-muted disabled:text-gray-foreground-onfill","regular-soft":"bg-primary-background-soft text-primary-foreground hover:bg-primary-background-soft-emphasis hover:text-primary-foreground-emphasis disabled:bg-gray-background-soft-muted disabled:text-gray-foreground-muted","regular-basic":"bg-transparent text-primary-foreground hover:bg-primary-background-soft-emphasis hover:text-primary-foreground-emphasis disabled:bg-transparent disabled:text-gray-foreground-muted",emphasis:"bg-secondary-background-fill text-secondary-foreground-onfill hover:bg-secondary-background-fill-emphasis disabled:bg-gray-background-fill-muted disabled:text-gray-foreground-onfill","emphasis-soft":"bg-secondary-background-soft text-secondary-foreground hover:bg-secondary-background-soft-emphasis hover:text-secondary-foreground-emphasis disabled:bg-gray-background-soft-muted disabled:text-gray-foreground-muted","emphasis-basic":"bg-transparent text-secondary-foreground hover:bg-secondary-background-soft-emphasis hover:text-secondary-foreground-emphasis disabled:bg-transparent disabled:text-gray-foreground-muted",error:"bg-red-background-fill text-red-foreground-onfill hover:bg-red-background-fill-emphasis disabled:bg-gray-background-fill-muted disabled:text-gray-foreground-onfill","error-soft":"bg-red-background-soft text-red-foreground hover:bg-red-background-soft-emphasis hover:text-red-foreground-emphasis disabled:bg-gray-background-soft-muted disabled:text-gray-foreground-muted","error-basic":"bg-transparent text-red-foreground hover:bg-red-background-soft-emphasis hover:text-red-foreground-emphasis disabled:bg-transparent disabled:text-gray-foreground-muted",warning:"bg-yellow-background-fill text-yellow-foreground-onfill hover:bg-yellow-background-fill-emphasis disabled:bg-gray-background-fill-muted disabled:text-gray-foreground-onfill","warning-soft":"bg-yellow-background-soft text-yellow-foreground hover:bg-yellow-background-soft-emphasis hover:text-yellow-foreground-emphasis disabled:bg-gray-background-soft-muted disabled:text-gray-foreground-muted","warning-basic":"bg-transparent text-yellow-foreground hover:bg-yellow-background-soft-emphasis hover:text-yellow-foreground-emphasis disabled:bg-transparent disabled:text-gray-foreground-muted",success:"bg-green-background-fill text-green-foreground-onfill hover:bg-green-background-fill-emphasis disabled:bg-gray-background-fill-muted disabled:text-gray-foreground-onfill","success-soft":"bg-green-background-soft text-green-foreground hover:bg-green-background-soft-emphasis hover:text-green-foreground-emphasis disabled:bg-gray-background-soft-muted disabled:text-gray-foreground-muted","success-basic":"bg-transparent text-green-foreground hover:bg-green-background-soft-emphasis hover:text-green-foreground-emphasis disabled:bg-transparent disabled:text-gray-foreground-muted",outlined:"border border-gray-stroke-muted bg-transparent text-foreground hover:border-transparent hover:bg-gray-50 disabled:border-transparent dark:bg-transparent hover:dark:border-gray-400 disabled:border-gray-stroke-muted disabled:text-gray-foreground-muted",gradient:"text-white [background:linear-gradient(284deg,var(--color-primary)_2.11%,var(--color-secondary)_128.06%)] hover:[background:linear-gradient(284deg,var(--color-primary)2.11%,var(--color-secondary)102.63%)] disabled:[background:var(--color-gray-50)] disabled:bg-gray-background-fill-muted disabled:text-gray-foreground-onfill",medbrain:"border-2 border-transparent bg-clip-text [background:linear-gradient(var(--color-white),var(--color-white))_padding-box,linear-gradient(75deg,var(--color-secondary),var(--color-cm-lighten-3))_border-box] [box-shadow:-8px_0_8px_0_var(--color-prev-16)_inset,8px_0_8px_0_var(--color-secondary-24)_inset,0_0_8px_0_var(--color-cm-16)_inset] hover:[background:linear-gradient(var(--color-white),var(--color-white))_padding-box,linear-gradient(75deg,var(--color-cm-lighten-3),var(--color-secondary))_border-box] [&_span]:bg-clip-text [&_span]:text-transparent [&_span]:bg-gradient-to-r [&_span]:from-cm [&_span]:to-primary [&_span]:hover:to-secondary disabled:bg-gray-background-fill-muted disabled:text-gray-foreground-onfill [&_svg]:text-cm-darken-1"},size:{sm:"min-h-8 min-w-8 px-3 py-1 has-[>svg]:px-3 [&_svg:not([class*='size-'])]:size-[13px] text-xs",md:"min-h-10 min-w-10 px-3.5 py-2 has-[>svg]:px-3.5 [&_svg:not([class*='size-'])]:size-4 text-sm",lg:"min-h-12 min-w-12 px-4 py-3 has-[>svg]:px-4 [&_svg:not([class*='size-'])]:size-6 text-md",xl:"min-h-14 min-w-14 px-[18px] py-3.5 has-[>svg]:px-[18px] [&_svg:not([class*='size-'])]:size-7 text-lg"}},defaultVariants:{variant:"regular",size:"md"}});function Y(x){var h=x,{className:e,containerClassName:a,variant:o,size:t,asChild:r=false,iconRight:d,iconLeft:i,badge:u,loading:c=false,alert:p}=h,m=n(h,["className","containerClassName","variant","size","asChild","iconRight","iconLeft","badge","loading","alert"]);let y=r?Slot.Slot:"button",L=I=>I!=null&&I!==0&&I!==""&&I!=="0",A=I=>I,M=!m.children&&(i||d||p),V=()=>p?jsxs("span",{className:l("relative mr-1 flex size-2.5",Jo[t||"md"]),children:[jsx("span",{className:"absolute inline-flex h-full w-full animate-ping rounded-full opacity-75",style:{backgroundColor:p}}),jsx("span",{className:l("relative inline-flex size-2.5 rounded-full",Jo[t||"md"]),style:{backgroundColor:p}})]}):null,k=()=>c?jsxs(Fragment,{children:[jsx(Ot,{className:"[grid-area:stack]"}),jsx("span",{className:l("[grid-area:stack]",c&&"invisible"),children:m.children})]}):jsxs(Fragment,{children:[p?V():i&&A(i),m.children&&jsx("span",{children:m.children}),d&&A(d)]});return jsxs("div",{className:l("relative",a),children:[L(u)&&jsx(_e,{size:Vl[t||"md"],variant:"regular",className:l("absolute -right-2 -top-1 z-10"),role:"status","aria-label":`${u}-notifications`,children:String(u)}),jsx(y,f(s({disabled:c,"aria-busy":c,"aria-live":c?"polite":void 0,"data-slot":"button",className:l(M&&ql[t||"md"],c&&"!inline-grid",ya({variant:o,size:t,className:e}))},m),{children:k()}))]})}var Sa="regular",Vt=createContext(null),Gl=cva("flex w-full items-center justify-center px-8 py-8",{variants:{variant:{regular:"[background-image:radial-gradient(50%_100%_at_50%_0%,var(--color-primary-background-soft)_0%,transparent_100%)]",warning:"[background-image:radial-gradient(50%_100%_at_50%_0%,var(--color-feedback-warning-background-soft)_0%,transparent_100%)]",error:"[background-image:radial-gradient(50%_100%_at_50%_0%,var(--color-feedback-error-background-soft)_0%,transparent_100%)]",success:"[background-image:radial-gradient(50%_100%_at_50%_0%,var(--color-feedback-success-background-soft)_0%,transparent_100%)]"}},defaultVariants:{variant:Sa}}),Wl=cva("flex items-center justify-center rounded-full p-4 [&_svg]:size-8",{variants:{variant:{regular:"bg-primary-background-fill text-primary-foreground-onfill",warning:"bg-yellow-background-fill text-yellow-foreground-onfill",error:"bg-red-background-fill text-red-foreground-onfill",success:"bg-green-background-fill text-green-foreground-onfill"}},defaultVariants:{variant:Sa}}),Xl={regular:"regular",warning:"warning",error:"error",success:"success"};function Kl(a){var e=n(a,[]);return jsx(AlertDialog.Root,s({"data-slot":"alert-dialog"},e))}function Zl(a){var e=n(a,[]);return jsx(AlertDialog.Trigger,s({"data-slot":"alert-dialog-trigger"},e))}function tr(a){var e=n(a,[]);return jsx(AlertDialog.Portal,s({"data-slot":"alert-dialog-portal"},e))}function or(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsx(AlertDialog.Overlay,s({"data-slot":"alert-dialog-overlay",className:l("fixed inset-0 z-50 bg-black-48 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e)},a))}function jl(i){var u=i,{className:e,overlayClassName:a,variant:o=Sa,showCloseButton:t=false,children:r}=u,d=n(u,["className","overlayClassName","variant","showCloseButton","children"]);let c=useMemo(()=>({variant:o}),[o]);return jsx(Vt.Provider,{value:c,children:jsxs(tr,{children:[jsx(or,{className:a}),jsxs(AlertDialog.Content,f(s({"data-slot":"alert-dialog-content",className:l("fixed left-1/2 top-1/2 z-50 flex w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 flex-col overflow-hidden rounded-xl border bg-surface-elevated shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-1/2 data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-1/2 sm:max-w-lg",e)},d),{children:[r,t&&jsxs(AlertDialog.Cancel,{"data-slot":"alert-dialog-close",className:"focus:outline-hidden absolute right-3 top-3 rounded-pill p-1.5 hover:bg-gray-background-soft disabled:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",children:[jsx(CloseMd,{}),jsx("span",{className:"sr-only",children:"Close"})]})]}))]})})}function Ql(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsx("div",s({"data-slot":"alert-dialog-header",className:l("flex flex-col items-center gap-3 px-8 pt-8 text-center","[[data-slot=alert-dialog-content]:has([data-slot=alert-dialog-icon])_&]:pt-0",e)},a))}function $l(t){var r=t,{className:e,children:a}=r,o=n(r,["className","children"]);var u;let d=useContext(Vt),i=(u=d==null?void 0:d.variant)!=null?u:Sa;return jsx("div",f(s({"data-slot":"alert-dialog-icon",className:l(Gl({variant:i}),e)},o),{children:jsx("div",{className:Wl({variant:i}),children:a})}))}function Jl(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsx("div",s({"data-slot":"alert-dialog-tag",className:l("flex justify-center",e)},a))}function Yl(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsx(AlertDialog.Title,s({"data-slot":"alert-dialog-title",className:l("text-title-sm font-semibold leading-title-sm text-content-title",e)},a))}function ed(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsx(AlertDialog.Description,s({"data-slot":"alert-dialog-description",className:l("text-md leading-md text-content-paragraph",e)},a))}function ad(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsx("div",s({"data-slot":"alert-dialog-footer",className:l("flex flex-row items-center justify-center gap-4 px-8 pb-8 pt-6",e)},a))}function td(r){var d=r,{className:e,variant:a,size:o="lg"}=d,t=n(d,["className","variant","size"]);var c;let i=useContext(Vt);process.env.NODE_ENV!=="production"&&!i&&a===void 0&&console.warn("[AlertDialogAction] used outside of AlertDialogContent \u2014 variant context unavailable, falling back to 'regular'.");let u=a!=null?a:Xl[(c=i==null?void 0:i.variant)!=null?c:Sa];return jsx(AlertDialog.Action,s({className:l(ya({variant:u,size:o}),e)},t))}function od(r){var d=r,{className:e,variant:a="regular-soft",size:o="lg"}=d,t=n(d,["className","variant","size"]);return jsx(AlertDialog.Cancel,s({className:l(ya({variant:a,size:o}),e)},t))}var rd=0;function sd(){return `medway-id-${++rd}`}var ld=R.useId||(()=>{});function ve(){let e=ld(),[a]=R.useState(()=>e!=null?e:sd());return a}var dd=/[\\\/_+.#"@\[\(\{&]/,nd=/[\\\/_+.#"@\[\(\{&]/g,id=/[\s-]/,sr=/[\s-]/g;function zt(e,a,o,t,r,d,i){if(d===a.length)return r===e.length?1:.99;let u=`${r},${d}`;if(i[u]!==void 0)return i[u];let c=t.charAt(d),p=o.indexOf(c,r),m=0,x,h,y,L;for(;p>=0;)x=zt(e,a,o,t,p+1,d+1,i),x>m&&(p===r?x*=1:dd.test(e.charAt(p-1))?(x*=.8,y=e.slice(r,p-1).match(nd),y&&r>0&&(x*=Math.pow(.999,y.length))):id.test(e.charAt(p-1))?(x*=.9,L=e.slice(r,p-1).match(sr),L&&r>0&&(x*=Math.pow(.999,L.length))):(x*=.17,r>0&&(x*=Math.pow(.999,p-r))),e.charAt(p)!==a.charAt(d)&&(x*=.9999)),(x<.1&&o.charAt(p-1)===t.charAt(d+1)||t.charAt(d+1)===t.charAt(d)&&o.charAt(p-1)!==t.charAt(d))&&(h=zt(e,a,o,t,p+1,d+2,i),h*.1>x&&(x=h*.1)),x>m&&(m=x),p=o.indexOf(c,p+1);return i[u]=m,m}function rr(e){return e.toLowerCase().replace(sr," ")}function lr(e,a,o){return e=o&&o.length>0?`${e+" "+o.join(" ")}`:e,zt(e,a,rr(e),rr(a),0,0,{})}var Pa='[cmdk-group=""]',Ut='[cmdk-group-items=""]',ud='[cmdk-group-heading=""]',nr='[cmdk-item=""]',dr=`${nr}:not([aria-disabled="true"])`,_t="cmdk-item-select",oa="data-value",fd=(e,a,o)=>lr(e,a,o),ir=R.createContext(void 0),Ta=()=>R.useContext(ir),ur=R.createContext(void 0),Gt=()=>R.useContext(ur),fr=R.createContext(void 0),cr=R.forwardRef((e,a)=>{let o=ra(()=>{var g,B;return {search:"",value:(B=(g=e.value)!=null?g:e.defaultValue)!=null?B:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),t=ra(()=>new Set),r=ra(()=>new Map),d=ra(()=>new Map),i=ra(()=>new Set),u=Cr(e),fe=e,{label:c,children:p,value:m,onValueChange:x,filter:h,shouldFilter:y,loop:L,disablePointerSelection:A=false,vimBindings:M=true}=fe,V=n(fe,["label","children","value","onValueChange","filter","shouldFilter","loop","disablePointerSelection","vimBindings"]),k=ve(),I=ve(),_=ve(),E=R.useRef(null),b=md();Oe(()=>{if(m!==void 0){let g=m.trim();o.current.value=g,v.emit();}},[m]),Oe(()=>{b(6,we);},[]);let v=R.useMemo(()=>({subscribe:g=>(i.current.add(g),()=>i.current.delete(g)),snapshot:()=>o.current,setState:(g,B,D)=>{var w,O,$,J,te,P;if(!Object.is(o.current[g],B)){if(o.current[g]=B,g==="search")Pe(),q(),b(1,Z);else if(g==="value"){if((w=document.activeElement)!=null&&w.hasAttribute("cmdk-input")||(O=document.activeElement)!=null&&O.hasAttribute("cmdk-root")){let C=document.getElementById(_);C?C.focus():($=document.getElementById(k))==null||$.focus();}if(b(7,()=>{var C;o.current.selectedItemId=(C=Ce())==null?void 0:C.id,v.emit();}),D||b(5,we),((J=u.current)==null?void 0:J.value)!==void 0){let C=B!=null?B:"";(P=(te=u.current).onValueChange)==null||P.call(te,C);return}}v.emit();}},emit:()=>{i.current.forEach(g=>g());}}),[]),N=R.useMemo(()=>({value:(g,B,D)=>{var w;B!==((w=d.current.get(g))==null?void 0:w.value)&&(d.current.set(g,{value:B,keywords:D}),o.current.filtered.items.set(g,W(B,D)),b(2,()=>{q(),v.emit();}));},item:(g,B)=>(t.current.add(g),B&&(r.current.has(B)?r.current.get(B).add(g):r.current.set(B,new Set([g]))),b(3,()=>{Pe(),q(),o.current.value||Z(),v.emit();}),()=>{d.current.delete(g),t.current.delete(g),o.current.filtered.items.delete(g);let D=Ce();b(4,()=>{Pe(),(D==null?void 0:D.getAttribute("id"))===g&&Z(),v.emit();});}),group:g=>(r.current.has(g)||r.current.set(g,new Set),()=>{d.current.delete(g),r.current.delete(g);}),filter:()=>u.current.shouldFilter!==false,label:c||e["aria-label"]||"",getDisablePointerSelection:()=>!!u.current.disablePointerSelection,listId:k,inputId:_,labelId:I,listInnerRef:E}),[]);function W(g,B){var w,O;let D=(O=(w=u.current)==null?void 0:w.filter)!=null?O:fd;return g?D(g,o.current.search,B):0}function q(){if(!o.current.search||u.current.shouldFilter===false)return;let g=o.current.filtered.items,B=[];o.current.filtered.groups.forEach(w=>{let O=r.current.get(w),$=0;O==null||O.forEach(J=>{let te=g.get(J);$=Math.max(te!=null?te:0,$);}),B.push([w,$]);});let D=E.current;ae().sort((w,O)=>{var te,P;let $=w.getAttribute("id"),J=O.getAttribute("id");return ((te=g.get(J))!=null?te:0)-((P=g.get($))!=null?P:0)}).forEach(w=>{let O=w.closest(Ut);O?O.appendChild(w.parentElement===O?w:w.closest(`${Ut} > *`)):D==null||D.appendChild(w.parentElement===D?w:w.closest(`${Ut} > *`));}),B.sort((w,O)=>O[1]-w[1]).forEach(w=>{var $,J;let O=($=E.current)==null?void 0:$.querySelector(`${Pa}[${oa}="${encodeURIComponent(w[0])}"]`);(J=O==null?void 0:O.parentElement)==null||J.appendChild(O);});}function Z(){let g=ae().find(D=>D.getAttribute("aria-disabled")!=="true"),B=g==null?void 0:g.getAttribute(oa);v.setState("value",B||void 0);}function Pe(){var B,D,w,O,$;if(!o.current.search||u.current.shouldFilter===false){o.current.filtered.count=t.current.size;return}o.current.filtered.groups=new Set;let g=0;for(let J of t.current){let te=(D=(B=d.current.get(J))==null?void 0:B.value)!=null?D:"",P=(O=(w=d.current.get(J))==null?void 0:w.keywords)!=null?O:[],C=W(te,P);o.current.filtered.items.set(J,C),C>0&&g++;}for(let[J,te]of r.current)for(let P of te)if((($=o.current.filtered.items.get(P))!=null?$:0)>0){o.current.filtered.groups.add(J);break}o.current.filtered.count=g;}function we(){var B,D,w;let g=Ce();g&&(((B=g.parentElement)==null?void 0:B.firstChild)===g&&((w=(D=g.closest(Pa))==null?void 0:D.querySelector(ud))==null||w.scrollIntoView({block:"nearest"})),g.scrollIntoView({block:"nearest"}));}function Ce(){var g;return (g=E.current)==null?void 0:g.querySelector(`${nr}[aria-selected="true"]`)}function ae(){var g;return Array.from(((g=E.current)==null?void 0:g.querySelectorAll(dr))||[])}function Re(g){let D=ae()[g];D&&v.setState("value",D.getAttribute(oa));}function ge(g){var $;let B=Ce(),D=ae(),w=D.findIndex(J=>J===B),O=D[w+g];($=u.current)!=null&&$.loop&&(O=w+g<0?D[D.length-1]:w+g===D.length?D[0]:D[w+g]),O&&v.setState("value",O.getAttribute(oa));}function ea(g){let B=Ce(),D=B==null?void 0:B.closest(Pa),w;for(;D&&!w;)D=g>0?cd(D,Pa):pd(D,Pa),w=D==null?void 0:D.querySelector(dr);w?v.setState("value",w.getAttribute(oa)):ge(g);}let aa=()=>Re(ae().length-1),ke=g=>{g.preventDefault(),g.metaKey?aa():g.altKey?ea(1):ge(1);},se=g=>{g.preventDefault(),g.metaKey?Re(0):g.altKey?ea(-1):ge(-1);};return jsxs("div",f(s({ref:a,tabIndex:-1},V),{"cmdk-root":"",onKeyDown:g=>{var D;(D=V.onKeyDown)==null||D.call(V,g);let B=g.nativeEvent.isComposing||g.keyCode===229;if(!(g.defaultPrevented||B))switch(g.key){case "n":case "j":{M&&g.ctrlKey&&ke(g);break}case "ArrowDown":{ke(g);break}case "p":case "k":{M&&g.ctrlKey&&se(g);break}case "ArrowUp":{se(g);break}case "Home":{g.preventDefault(),Re(0);break}case "End":{g.preventDefault(),aa();break}case "Enter":{g.preventDefault();let w=Ce();if(w){let O=new Event(_t);w.dispatchEvent(O);}}}},children:[jsx("label",{"cmdk-label":"",htmlFor:N.inputId,id:N.labelId,style:xd,children:c}),Ya(e,g=>jsx(ur.Provider,{value:v,children:jsx(ir.Provider,{value:N,children:g})}))]}))});cr.displayName="Command";var pr=R.forwardRef((e,a)=>{var _,E;let o=ve(),t=R.useRef(null),r=R.useContext(fr),d=Ta(),i=Cr(e),u=(E=(_=i.current)==null?void 0:_.forceMount)!=null?E:r==null?void 0:r.forceMount;Oe(()=>{if(!u)return d.item(o,r==null?void 0:r.id)},[u]);let c=vr(o,t,[e.value,e.children,t],e.keywords),p=Gt(),m=qe(v=>v.value&&v.value===c.current),x=qe(v=>{var N;return u||d.filter()===false?true:v.search?((N=v.filtered.items.get(o))!=null?N:0)>0:true});R.useEffect(()=>{let v=t.current;if(!(!v||e.disabled))return v.addEventListener(_t,h),()=>v.removeEventListener(_t,h)},[x,e.onSelect,e.disabled]);function h(){var v,N,W;y(),(W=(N=i.current).onSelect)==null||W.call(N,(v=c.current)!=null?v:"");}function y(){var v;p.setState("value",(v=c.current)!=null?v:"",true);}if(!x)return null;let b=e,{disabled:L,value:A,onSelect:M,forceMount:V,keywords:k}=b,I=n(b,["disabled","value","onSelect","forceMount","keywords"]);return jsx("div",f(s({ref:wa(t,a)},I),{id:o,"cmdk-item":"",role:"option","aria-disabled":!!L,"aria-selected":!!m,"data-disabled":!!L,"data-selected":!!m,onPointerMove:L||d.getDisablePointerSelection()?void 0:y,onClick:L?void 0:h,children:e.children}))});pr.displayName="Item";var mr=R.forwardRef((e,a)=>{let y=e,{heading:o,children:t,forceMount:r}=y,d=n(y,["heading","children","forceMount"]),i=ve(),u=R.useRef(null),c=R.useRef(null),p=ve(),m=Ta(),x=qe(L=>r||m.filter()===false?true:L.search?L.filtered.groups.has(i):true);Oe(()=>m.group(i),[]),vr(i,u,[e.value,e.heading,c]);let h=R.useMemo(()=>({id:i,forceMount:r}),[r]);return jsxs("div",f(s({ref:wa(u,a)},d),{"cmdk-group":"",role:"presentation",hidden:x?void 0:true,children:[o&&jsx("div",{ref:c,"cmdk-group-heading":"","aria-hidden":true,id:p,children:o}),Ya(e,L=>jsx("div",{"cmdk-group-items":"",role:"group","aria-labelledby":o?p:void 0,children:jsx(fr.Provider,{value:h,children:L})}))]}))});mr.displayName="Group";var gr=R.forwardRef((e,a)=>{let i=e,{alwaysRender:o}=i,t=n(i,["alwaysRender"]),r=R.useRef(null),d=qe(u=>!u.search);return !o&&!d?null:jsx("div",f(s({ref:wa(r,a)},t),{"cmdk-separator":"",role:"separator"}))});gr.displayName="Separator";var xr=R.forwardRef((e,a)=>{let p=e,{onValueChange:o}=p,t=n(p,["onValueChange"]),r=e.value!=null,d=Gt(),i=qe(m=>m.search),u=qe(m=>m.selectedItemId),c=Ta();return R.useEffect(()=>{e.value!=null&&d.setState("search",e.value);},[e.value]),jsx("input",f(s({ref:a},t),{"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:false,"aria-autocomplete":"list",role:"combobox","aria-expanded":true,"aria-controls":c.listId,"aria-labelledby":c.labelId,"aria-activedescendant":u,id:c.inputId,type:"text",value:r?e.value:i,onChange:m=>{r||d.setState("search",m.target.value),o==null||o(m.target.value);}}))});xr.displayName="Input";var hr=R.forwardRef((e,a)=>{let p=e,{children:o,label:t="Suggestions"}=p,r=n(p,["children","label"]),d=R.useRef(null),i=R.useRef(null),u=qe(m=>m.selectedItemId),c=Ta();return R.useEffect(()=>{if(i.current&&d.current){let m=i.current,x=d.current,h,y=new ResizeObserver(()=>{h=requestAnimationFrame(()=>{let L=m.offsetHeight;x.style.setProperty("--cmdk-list-height",L.toFixed(1)+"px");});});return y.observe(m),()=>{cancelAnimationFrame(h),y.unobserve(m);}}},[]),R.useEffect(()=>{let m=d.current;if(!m)return;let x=h=>{m.contains(h.target)&&h.stopPropagation();};return document.addEventListener("wheel",x,{capture:true}),()=>{document.removeEventListener("wheel",x,{capture:true});}},[]),jsx("div",f(s({ref:wa(d,a)},r),{"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":u,"aria-label":t,id:c.listId,children:Ya(e,m=>jsx("div",{ref:wa(i,c.listInnerRef),"cmdk-list-sizer":"",children:m}))}))});hr.displayName="List";var br=R.forwardRef((e,a)=>qe(t=>t.filtered.count===0)?jsx("div",f(s({ref:a},e),{"cmdk-empty":"",role:"presentation"})):null);br.displayName="Empty";var Lr=R.forwardRef((e,a)=>{let i=e,{progress:o,children:t,label:r="Loading..."}=i,d=n(i,["progress","children","label"]);return jsx("div",f(s({ref:a},d),{"cmdk-loading":"",role:"progressbar","aria-valuenow":o,"aria-valuemin":0,"aria-valuemax":100,"aria-label":r,children:Ya(e,u=>jsx("div",{"aria-hidden":true,children:u}))}))});Lr.displayName="Loading";var We=Object.assign(cr,{List:hr,Item:pr,Input:xr,Group:mr,Separator:gr,Empty:br,Loading:Lr});function cd(e,a){let o=e.nextElementSibling;for(;o;){if(o.matches(a))return o;o=o.nextElementSibling;}}function pd(e,a){let o=e.previousElementSibling;for(;o;){if(o.matches(a))return o;o=o.previousElementSibling;}}function Cr(e){let a=R.useRef(e);return Oe(()=>{a.current=e;}),a}var Oe=typeof window=="undefined"?R.useEffect:R.useLayoutEffect;function ra(e){let a=R.useRef(void 0);return a.current===void 0&&(a.current=e()),a}function qe(e){let a=Gt(),[,o]=R.useState({}),t=R.useRef(e(a.snapshot()));return t.current=e(a.snapshot()),Oe(()=>a.subscribe(()=>{let r=e(a.snapshot());Object.is(r,t.current)||(t.current=r,o({}));}),[a,e]),t.current}function vr(e,a,o,t=[]){let r=R.useRef(void 0),d=Ta();return Oe(()=>{var c;let i=(()=>{var p;for(let m of o){if(typeof m=="string")return m.trim();if(typeof m=="object"&&m!==null&&"current"in m)return m.current?(p=m.current.textContent)==null?void 0:p.trim():r.current}})(),u=t.map(p=>p.trim());d.value(e,i!=null?i:"",u),(c=a.current)==null||c.setAttribute(oa,i!=null?i:""),r.current=i;}),r}var md=()=>{let[e,a]=R.useState(),o=ra(()=>new Map);return Oe(()=>{o.current.forEach(t=>t()),o.current=new Map;},[e]),(t,r)=>{o.current.set(t,r),a({});}};function gd(e){let a=e.type;return typeof a=="function"?a(e.props):"render"in a?a.render(e.props):e}function Ya({asChild:e,children:a},o){return e&&R.isValidElement(a)?R.cloneElement(gd(a),{ref:a.ref},o(a.props.children)):o(a)}function wa(...e){return a=>{e.forEach(o=>{typeof o=="function"?o(a):o!=null&&typeof o=="object"&&(o.current=a);});}}var xd={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function sa(r){var d=r,{className:e,orientation:a="horizontal",decorative:o=true}=d,t=n(d,["className","orientation","decorative"]);return jsx(Separator.Root,s({"data-slot":"separator-root",decorative:o,orientation:a,className:l("shrink-0 bg-gray-stroke-muted data-[orientation=horizontal]:h-px data-[orientation=vertical]:h-full data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px",e)},t))}function Id(a){var e=n(a,[]);return jsx(Dialog.Root,s({"data-slot":"dialog"},e))}function kd(a){var e=n(a,[]);return jsx(Dialog.Trigger,s({"data-slot":"dialog-trigger"},e))}function kr(a){var e=n(a,[]);return jsx(Dialog.Portal,s({"data-slot":"dialog-portal"},e))}function yd(a){var e=n(a,[]);return jsx(Dialog.Close,s({"data-slot":"dialog-close"},e))}function yr(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsx(Dialog.Overlay,s({"data-slot":"dialog-overlay",className:l("fixed inset-0 z-50 bg-black-48 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e)},a))}function Sd(d){var i=d,{className:e,overlayClassName:a,children:o,showCloseButton:t=true}=i,r=n(i,["className","overlayClassName","children","showCloseButton"]);return jsxs(kr,{"data-slot":"dialog-portal",children:[jsx(yr,{className:a}),jsxs(Dialog.Content,f(s({"data-slot":"dialog-container",className:l("fixed left-1/2 top-1/2 z-50 flex max-h-[calc(100%-2rem)] w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 flex-col gap-0 overflow-y-auto rounded-xl border bg-background p-0 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-1/2 data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-1/2 sm:max-h-[85vh] sm:max-w-lg",e)},r),{children:[o,t&&jsxs(Dialog.Close,{"data-slot":"dialog-close",className:"focus:outline-hidden absolute right-3 top-3 rounded-pill p-1.5 hover:bg-gray-background-soft disabled:pointer-events-none data-[state=open]:text-gray-foreground [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",children:[jsx(CloseMd,{}),jsx("span",{className:"sr-only",children:"Close"})]})]}))]})}function Pd({containerClassName:e,className:a,children:o}){return jsx("div",{className:l("mb-auto overflow-y-auto",e),children:jsx("div",{"data-slot":"dialog-content",className:l("px-8 py-6 text-md leading-md text-primary-foreground",a),children:o})})}function wd(t){var r=t,{className:e,separator:a=false}=r,o=n(r,["className","separator"]);return jsxs(Fragment,{children:[jsx("div",s({"data-slot":"dialog-header",className:l("flex flex-col gap-2 px-8 py-6 text-center sm:text-left",e)},o)),a&&jsx(sa,{})]})}function Td(t){var r=t,{className:e,separator:a=false}=r,o=n(r,["className","separator"]);return jsxs(Fragment,{children:[a&&jsx(sa,{}),jsx("div",s({"data-slot":"dialog-footer",className:l("flex flex-col-reverse gap-2 px-8 py-6 sm:flex-row sm:justify-end",e)},o))]})}function Ad(d){var i=d,{className:e,iconLeft:a,iconRight:o,children:t}=i,r=n(i,["className","iconLeft","iconRight","children"]);let u=c=>isValidElement(c)?cloneElement(c,{size:32,strokeWidth:2.2,className:"flex-shrink-0"}):c;return jsxs(Dialog.Title,f(s({"data-slot":"dialog-title",className:l("flex items-center gap-3 text-title-md font-semibold leading-title-md !text-content-title",e)},r),{children:[a&&u(a),t,o&&u(o)]}))}function Dd(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsx(Dialog.Description,s({"data-slot":"dialog-description",className:l("text-md leading-md text-content-paragraph",e)},a))}function Pr(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsx(We,s({className:l("flex size-full flex-col overflow-hidden rounded-md bg-surface-card text-gray-foreground",e),"data-slot":"command"},a))}function wr(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxs("div",{className:"flex items-center border-b border-gray-stroke-muted px-4","cmdk-input-wrapper":"",children:[jsx(We.Input,s({className:l("flex h-12 w-full bg-transparent py-3 text-md font-medium outline-none placeholder:text-gray-foreground-muted disabled:cursor-not-allowed disabled:opacity-50",e),"data-slot":"command-input-wrapper"},a)),jsx(SearchMagnifyingGlass,{className:"text-gray-foreground-muted",size:24})]})}function Tr(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsx(We.List,s({className:l("max-h-80 flex-1 overflow-y-auto overflow-x-hidden",e),"data-slot":"command-list","data-radix-scroll-area":""},a))}function Ar(a){var e=n(a,[]);return jsx(We.Empty,s({className:"py-6 text-center text-sm","data-slot":"command-empty"},e))}function Dr(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsx(We.Group,s({className:l("overflow-hidden p-2 text-gray-foreground [&_[cmdk-group-heading]]:px-3 [&_[cmdk-group-heading]]:py-2 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-gray-foreground-muted",e),"data-slot":"command-group"},a))}function Rr(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsx(We.Item,s({className:l("outline-hidden relative flex cursor-default select-none items-center gap-3 rounded-md px-2 py-1.5 text-sm data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",e),"data-slot":"command-item"},a))}function Mr(a){var e=n(a,[]);return jsx(Popover.Root,s({"data-slot":"popover"},e))}function Br(a){var e=n(a,[]);return jsx(Popover.Trigger,s({"data-slot":"popover-trigger"},e))}function Nr(d){var i=d,{className:e,align:a="center",sideOffset:o=4,showArrow:t=false}=i,r=n(i,["className","align","sideOffset","showArrow"]);return jsx(Popover.Portal,{children:jsxs(Popover.Content,f(s({align:a,className:l("outline-hidden z-50 w-72 rounded-md border bg-surface-card p-4 text-gray-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),"data-slot":"popover-content",sideOffset:o},r),{children:[r.children,t&&jsx(Popover.Arrow,{className:"-my-px fill-gray-foreground drop-shadow-[0_1px_0_var(--border)]"})]}))})}var na=createContext({invalid:false,disabled:false,open:false,setOpen:()=>{},values:[],toggleValue:()=>{},onCancelSelection:()=>{},listId:""});function Od({children:e,invalid:a=false,disabled:o=false,values:t,onValuesChange:r,open:d,onOpenChange:i,defaultValues:u=[]}){let[c,p]=useState(u),[m,x]=useState(false),[h,y]=useState([]),L=t!==void 0,A=d!==void 0,M=L?t:c,V=A?d:m,k=useCallback(v=>{let N=M.includes(v)?M.filter(W=>W!==v):[...M,v];L||p(N),r==null||r(N);},[M,L,r]),I=useCallback(v=>{o||(v&&y(M),A||x(v),i==null||i(v));},[o,M,A,i]),_=useCallback(()=>{L||p(h),r==null||r(h);},[L,h,r]),E=ve(),b=useMemo(()=>({invalid:a,disabled:o,open:V,setOpen:I,values:M,toggleValue:k,onCancelSelection:_,listId:E}),[a,o,V,I,M,k,_,E]);return jsx(na.Provider,{value:b,children:jsx(Mr,{open:V,onOpenChange:I,children:e})})}function qd(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsx("div",s({className:l("group relative flex flex-col gap-2",e),"data-slot":"autocomplete-wrapper"},a))}function Vd(r){var d=r,{className:e,placeholder:a="Selecione uma op\xE7\xE3o",children:o}=d,t=n(d,["className","placeholder","children"]);let{invalid:i,disabled:u,open:c,values:p,listId:m}=useContext(na),x=ve(),h=p.length>0;return jsx(Br,{asChild:true,children:jsxs("button",f(s({"aria-controls":m,"aria-expanded":c,"aria-invalid":i||void 0,className:l("shadow-xs flex h-12 max-h-12 w-full items-center justify-between gap-2 rounded-md border-2 border-gray-stroke-muted bg-surface-card px-4 py-3 text-left text-md text-gray-foreground outline-none transition-[color,box-shadow] hover:border-gray-stroke-emphasis hover:ring-[3px] hover:ring-state-focus disabled:cursor-default disabled:bg-gray-background-soft-muted disabled:hover:border-gray-stroke-muted disabled:hover:ring-0 aria-[invalid]:border-feedback-error-stroke aria-[invalid]:hover:ring-[3px] aria-[invalid]:hover:ring-state-error [&>span]:line-clamp-1 [&_svg]:pointer-events-none [&_svg]:shrink-0",h&&!i&&"border-gray-stroke-emphasis",e),"data-slot":"autocomplete-trigger","data-placeholder":"",disabled:u,id:x,role:"combobox",type:"button"},t),{children:[jsx("span",{className:"truncate text-gray-foreground-emphasis",children:o!=null?o:a}),jsx(ChevronDown,{"aria-hidden":"true",className:"shrink-0 text-gray-foreground",size:24,strokeWidth:1.6})]}))})}function Kt({className:e,cancelLabel:a="Cancelar",confirmLabel:o="Concluir",onCancel:t,onConfirm:r}){let{setOpen:d,onCancelSelection:i,values:u}=useContext(na);return jsxs("div",{className:l("flex items-center justify-between border-t border-gray-stroke-muted px-4 py-3",e),"data-slot":"autocomplete-content-footer",children:[jsx(Y,{size:"sm",variant:"regular-soft",onClick:()=>{i(),t==null||t(),d(false);},children:a}),jsx(Y,{size:"sm",variant:"emphasis",iconLeft:jsx(Check,{strokeWidth:2.6}),onClick:()=>{r==null||r(u),d(false);},children:o})]})}function zd({children:e,className:a,searchPlaceholder:o="Buscar...",emptyMessage:t="Nenhum resultado encontrado"}){let r=Children.toArray(e),d=r.filter(u=>isValidElement(u)&&u.type===Kt),i=r.filter(u=>!(isValidElement(u)&&u.type===Kt));return jsxs(Nr,{align:"start",className:l("w-full min-w-[var(--radix-popper-anchor-width)] border-gray-stroke-muted p-0",a),children:[jsxs(Pr,{children:[jsx(wr,{placeholder:o}),jsxs(Tr,{id:useContext(na).listId,children:[jsx(Ar,{children:t}),i]})]}),d]})}function Ud({children:e,value:a,name:o,className:t,disabled:r=false}){let{values:d,toggleValue:i}=useContext(na),u=d.includes(a);return jsxs(Rr,{className:l("relative flex w-full cursor-default select-none items-center gap-3 rounded px-2 py-2.5 text-base font-medium text-gray-foreground outline-none hover:cursor-pointer hover:bg-secondary-background-soft-emphasis data-[selected=true]:bg-secondary-background-soft-emphasis",t),disabled:r,onSelect:()=>{i(a);},value:a,keywords:o?[o]:void 0,children:[jsx("span",{className:l("inline-flex size-[18px] shrink-0 items-center justify-center rounded-sm border-2 transition-all",u?"border-primary-background-fill bg-primary-background-fill":"border-gray-stroke-muted bg-surface-card"),children:u&&jsx(Check,{size:12,strokeWidth:2.6,className:"text-primary-foreground-onfill"})}),e]})}function _d(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsx(Dr,s({className:e},a))}function Gd(o){var t=o,{className:e}=t,a=n(t,["className"]);let{invalid:r}=useContext(na);return jsx("span",s({className:l("-mt-1 text-xs",r?"text-feedback-error-foreground":"text-gray-foreground",e),"data-slot":"autocomplete-text"},a))}var Kd={sm:"sm",md:"md",lg:"md",xl:"lg"},Hr=cva("relative flex shrink-0 overflow-hidden rounded-full",{variants:{size:{sm:"size-8",md:"size-10",lg:"size-12",xl:"size-14"}},defaultVariants:{size:"md"}});function jt(d){var i=d,{className:e,size:a,badge:o,children:t}=i,r=n(i,["className","size","badge","children"]);return jsxs("div",{className:"relative",children:[o&&jsx(_e,{size:Kd[a||"md"],className:l("absolute -right-2 -top-1 z-10"),children:String(o)}),jsx(Avatar.Root,f(s({"data-slot":"avatar",className:l(Hr({size:a,className:e}))},r),{children:t}))]})}function Qt(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsx(Avatar.Image,s({"data-slot":"avatar-image",className:l("size-full object-cover",e)},a))}function $t(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsx(Avatar.Fallback,f(s({"data-slot":"avatar-fallback",className:l("flex size-full items-center justify-center rounded-full bg-gray-background-soft text-sm font-semibold text-primary-foreground",e)},a),{children:a.children?a.children:jsx(User,{className:"size-1/2"})}))}function Ma(a){var e=n(a,[]);return jsx("nav",s({"aria-label":"breadcrumb","data-slot":"breadcrumb"},e))}function Ba(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsx("ol",s({className:l("line-clamp-1 flex flex-wrap items-center gap-1.5 text-sm font-medium text-gray-foreground [&_svg]:shrink-0",e),"data-slot":"breadcrumb-list"},a))}function at(r){var d=r,{className:e,icon:a,children:o}=d,t=n(d,["className","icon","children"]);return jsx("li",f(s({className:l("inline-flex items-center gap-1.5 [&_svg]:text-primary-foreground",e),"data-slot":"breadcrumb-item"},t),{children:jsxs("span",{className:"inline-flex items-center gap-2",children:[a&&a,o]})}))}function Jd(t){var r=t,{asChild:e,className:a}=r,o=n(r,["asChild","className"]);let d=e?Slot.Root:"a";return jsx(d,s({className:l("transition-colors hover:underline",a),"data-slot":"breadcrumb-link"},o))}function Jt(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsx("span",s({"aria-current":"page","aria-disabled":"true",className:l("font-semibold text-primary-foreground",e),"data-slot":"breadcrumb-page",role:"link"},a))}function Yt(t){var r=t,{children:e,className:a}=r,o=n(r,["children","className"]);return jsx("li",f(s({"aria-hidden":"true",className:a,"data-slot":"breadcrumb-separator",role:"presentation"},o),{children:e!=null?e:jsx(ChevronRightMd,{className:"text-gray-foreground",strokeWidth:1.33,size:20})}))}function Yd(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxs("span",f(s({"aria-hidden":"true",className:l("flex size-5 items-center justify-center",e),"data-slot":"breadcrumb-ellipsis",role:"presentation"},a),{children:[jsx(MoreHorizontal,{className:"text-gray-foreground",size:18}),jsx("span",{className:"sr-only",children:"More"})]}))}function Ke(d){var i=d,{className:e,indicatorClassName:a,label:o,value:t}=i,r=n(i,["className","indicatorClassName","label","value"]);let u=Math.round(t||0);return jsxs("div",{className:"flex w-full flex-col gap-2",children:[o&&jsxs("div",{"data-slot":"progress-label",className:"text-xs font-medium text-gray-foreground-muted",children:[jsxs("span",{className:"font-semibold text-gray-foreground",children:[u,"%"]})," ",jsx("span",{children:o})]}),jsx(Progress.Root,f(s({"data-slot":"progress",className:l("relative flex h-px w-full overflow-x-clip rounded-pill bg-gray-stroke-muted",e)},r),{children:jsx(Progress.Indicator,{"data-slot":"progress-indicator",className:l("relative -top-[0.5px] flex h-0.5 w-full flex-1 bg-primary-stroke transition-all",a),style:{transform:`translateX(-${100-(t||0)}%)`}})}))]})}function to(m){var x=m,{className:e,indicatorClassName:a,trackClassName:o,valueClassName:t,label:r,labelClassName:d,value:i=0,size:u=96,strokeWidth:c=2}=x,p=n(x,["className","indicatorClassName","trackClassName","valueClassName","label","labelClassName","value","size","strokeWidth"]);let h=typeof i=="string",y=h?0:Math.round(i),L=(u-c)/2,A=L*2*Math.PI,M=A-y/100*A,V=Math.max(18,Math.min(u/5)),k=Math.max(10,Math.min(u/9,16));return jsxs("div",f(s({"data-slot":"progress-circle",className:l("relative inline-flex items-center justify-center",e),style:{width:u,height:u}},p),{children:[jsxs("svg",{className:"absolute inset-0 -rotate-90",width:u,height:u,viewBox:`0 0 ${u} ${u}`,children:[jsx("circle",{"data-slot":"progress-circle-track",cx:u/2,cy:u/2,r:L,stroke:"currentColor",strokeWidth:c,fill:"none",className:l("text-gray-stroke-muted",o)}),jsx("circle",{"data-slot":"progress-circle-indicator",cx:u/2,cy:u/2,r:L,stroke:"currentColor",strokeWidth:c,fill:"none",strokeDasharray:A,strokeDashoffset:M,strokeLinecap:"round",className:l("text-primary-stroke transition-all duration-300 ease-in-out",a)})]}),jsxs("div",{"data-slot":"progress-circle-content",className:"relative z-10 flex flex-col items-center justify-center px-2 text-sm font-medium text-gray-foreground-muted",children:[jsxs("div",{children:[jsx("span",{className:l("mr-px font-semibold",t),style:{fontSize:`${V}px`},children:i}),!h&&"%"]}),r&&jsx("div",{"data-slot":"progress-circle-label",className:l("text-center font-medium leading-tight text-gray-foreground-muted",d),style:{fontSize:`${k}px`},children:r})]})]}))}var Vr=cva("inline-flex items-center justify-center rounded-md px-2 py-1 text-xs font-semibold w-fit whitespace-nowrap shrink-0 gap-1.5 transition-colors overflow-hidden max-h-6",{variants:{variant:{regular:"bg-primary-background-fill text-primary-foreground-onfill fill-primary-foreground-onfill","regular-soft":"bg-primary-background-soft text-primary-foreground fill-primary-foreground","regular-basic":"bg-transparent text-primary-foreground fill-primary-foreground",emphasis:"bg-secondary-background-fill text-secondary-foreground-onfill fill-secondary-foreground-onfill","emphasis-soft":"bg-secondary-background-soft text-secondary-foreground fill-secondary-foreground","emphasis-basic":"bg-transparent text-secondary-foreground fill-secondary-foreground",gray:"bg-gray-background-fill text-gray-foreground-onfill fill-gray-foreground-onfill","gray-soft":"bg-gray-background-soft text-gray-foreground fill-gray-foreground","gray-basic":"bg-transparent text-gray-foreground fill-gray-foreground",success:"bg-green-background-fill text-green-foreground-onfill fill-green-foreground-onfill","success-soft":"bg-green-background-soft text-green-foreground fill-green-foreground","success-basic":"bg-transparent text-green-foreground fill-green-foreground",error:"bg-red-background-fill text-red-foreground-onfill fill-red-foreground-onfill","error-soft":"bg-red-background-soft text-red-foreground fill-red-foreground","error-basic":"bg-transparent text-red-foreground fill-red-foreground",warning:"bg-yellow-background-fill text-yellow-foreground-onfill fill-yellow-foreground-onfill","warning-soft":"bg-yellow-background-soft text-yellow-foreground fill-yellow-foreground","warning-basic":"bg-transparent text-yellow-foreground fill-yellow-foreground",cm:"bg-cm-background-fill text-cm-foreground-onfill fill-cm-foreground-onfill","cm-soft":"bg-cm-background-soft text-cm-foreground fill-cm-foreground","cm-basic":"bg-transparent text-cm-foreground fill-cm-foreground",go:"bg-go-background-fill text-go-foreground-onfill fill-go-foreground-onfill","go-soft":"bg-go-background-soft text-go-foreground fill-go-foreground","go-basic":"bg-transparent text-go-foreground fill-go-foreground",cir:"bg-cir-background-fill text-cir-foreground-onfill fill-cir-foreground-onfill","cir-soft":"bg-cir-background-soft text-cir-foreground fill-cir-foreground","cir-basic":"bg-transparent text-cir-foreground fill-cir-foreground",ped:"bg-ped-background-fill text-ped-foreground-onfill fill-ped-foreground-onfill","ped-soft":"bg-ped-background-soft text-ped-foreground fill-ped-foreground","ped-basic":"bg-transparent text-ped-foreground fill-ped-foreground",prev:"bg-prev-background-fill text-prev-foreground-onfill fill-prev-foreground-onfill","prev-soft":"bg-prev-background-soft text-prev-foreground fill-prev-foreground","prev-basic":"bg-transparent text-prev-foreground fill-prev-foreground",ia:"[background:linear-gradient(90deg,var(--color-secondary-darken-1)_0%,var(--color-cm)_100%)] text-primary-foreground-onfill fill-primary-foreground-onfill","ia-soft":"[background:linear-gradient(90deg,color-mix(in_srgb,var(--color-secondary-darken-1)_15%,transparent)_0%,color-mix(in_srgb,var(--color-cm)_15%,transparent)_100%)] text-secondary-foreground fill-secondary-foreground","ia-basic":"bg-transparent text-secondary-foreground [&_[data-slot=tag-text]]:bg-clip-text [&_[data-slot=tag-text]]:text-transparent [&_[data-slot=tag-text]]:[-webkit-background-clip:text] [&_[data-slot=tag-text]]:[background-image:linear-gradient(90deg,var(--color-secondary-darken-1)_0%,var(--color-cm)_100%)]"}},defaultVariants:{variant:"regular"}});function tn(t){var r=t,{className:e,icon:a}=r,o=n(r,["className","icon"]);return jsx("div",f(s({"data-slot":"tag-icon",className:l("[&>svg]:size-3.5",e)},o),{children:a}))}function xe(i){var u=i,{className:e,variant:a,asChild:o=false,icon:t,children:r}=u,d=n(u,["className","variant","asChild","icon","children"]);let c=o?Slot.Slot:"span";return jsxs(c,f(s({"data-slot":"tag",className:l(Vr({variant:a}),e)},d),{children:[t&&jsx(tn,{icon:t}),jsx("span",{"data-slot":"tag-text",children:r})]}))}var Na=createContext(null);function dn(d){var i=d,{className:e,done:a,postponed:o,skipped:t}=i,r=n(i,["className","done","postponed","skipped"]);let u=useMemo(()=>({done:a,postponed:o,skipped:t}),[a,o,t]);return jsx(Na.Provider,{value:u,children:jsx("div",s({"data-slot":"card-week",className:l("flex flex-col overflow-hidden rounded-xl border border-gray-stroke-muted text-gray-foreground-muted",e)},r))})}function nn(d){var i=d,{className:e,children:a,tag:o,tagIcon:t}=i,r=n(i,["className","children","tag","tagIcon"]);return jsxs("div",f(s({"data-slot":"card-week-breadcrumb",className:l("flex min-h-12 items-center gap-4 bg-primary-background-soft-muted px-6 py-3",e)},r),{children:[jsx(Ma,{className:"flex-1 overflow-hidden",children:jsx(Ba,{className:"flex-nowrap gap-1.5 text-xs [&>[data-slot=breadcrumb-item]:last-of-type>span]:min-w-0 [&>[data-slot=breadcrumb-item]:last-of-type>span]:overflow-hidden [&>[data-slot=breadcrumb-item]:last-of-type]:min-w-0 [&>[data-slot=breadcrumb-item]:last-of-type]:flex-1 [&>[data-slot=breadcrumb-item]:last-of-type_[data-slot=breadcrumb-page]]:truncate [&_[data-slot=breadcrumb-page]]:block",children:a})}),o&&jsx(xe,{variant:"regular-soft",icon:t,children:o})]}))}function un(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsx("div",s({"data-slot":"card-week-container",className:l("flex flex-1 flex-col gap-5 bg-surface-card px-6 py-5",e)},a))}function fn(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsx("div",s({"data-slot":"card-week-header",className:l("flex justify-between [&.border-b]:pb-6",e)},a))}function cn(o){var t=o,{className:e}=t,a=n(t,["className"]);let r=useContext(Na),d=r==null?void 0:r.done,i=r==null?void 0:r.postponed,u=r==null?void 0:r.skipped;return jsx("div",s({"data-slot":"card-week-title",className:l("text-lg font-semibold leading-lg text-primary-foreground",(d||i||u)&&"text-primary-foreground-muted line-through",e)},a))}function pn(o){var t=o,{className:e}=t,a=n(t,["className"]);let r=useContext(Na),d=r==null?void 0:r.done,i=r==null?void 0:r.postponed,u=r==null?void 0:r.skipped;return jsx("div",s({"data-slot":"card-week-description",className:l("text-xs font-semibold leading-xs text-gray-foreground",(d||i||u)&&"text-gray-foreground-muted",e)},a))}function mn(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsx("div",s({"data-slot":"card-week-tags",className:l("flex flex-wrap items-center gap-2 [[data-slot=card-week-header]:not(:has([data-slot=card-week-progress]))+&]:mt-6",e)},a))}function gn(t){var r=t,{className:e,value:a}=r,o=n(r,["className","value"]);return jsx("div",{"data-slot":"card-week-progress-circle",className:l("flex flex-1 justify-end",e),children:jsx(to,s({size:104,value:a},o))})}function xn(r){var d=r,{className:e,value:a,indicatorClassName:o}=d,t=n(d,["className","value","indicatorClassName"]);let i=useContext(Na),u=i==null?void 0:i.done;return jsx("div",{"data-slot":"card-week-progress",className:l("flex flex-1",e),children:jsx(Ke,f(s({},t),{value:u?100:a,indicatorClassName:l(u&&"bg-secondary-stroke-emphasis",o)}))})}function hn(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsx("div",s({"data-slot":"card-week-footer",className:l("mt-auto flex flex-col gap-2",e)},a))}function bn(t){var r=t,{className:e,children:a}=r,o=n(r,["className","children"]);return jsx("div",f(s({"data-slot":"card-week-content",className:l("flex flex-col text-xs font-medium",e)},o),{children:a}))}function Ln(r){var d=r,{className:e,children:a,isTime:o}=d,t=n(d,["className","children","isTime"]);return jsxs("div",f(s({"data-slot":"card-week-text",className:l("flex items-center gap-1.5",o?"text-secondary-foreground":"text-gray-foreground-muted",e)},t),{children:[o&&jsx(TimeRemaining,{size:16}),jsx("span",{children:a})]}))}function Cn(o){var t=o,{className:e}=t,a=n(t,["className"]);let r=useContext(Na),d=r==null?void 0:r.done,i=r==null?void 0:r.postponed,u=r==null?void 0:r.skipped;return !d&&!i&&!u?null:i||u?jsxs("div",f(s({"data-slot":"card-week-status",className:l("ml-auto flex items-center gap-1.5",e)},a),{children:[jsx("div",{className:"flex size-4 items-center justify-center rounded-full bg-yellow-24 text-feedback-warning-foreground",children:jsx(Check,{size:12,strokeWidth:1.67})}),jsx("div",{className:"font-semibold text-feedback-warning-foreground",children:i?"Adiado":"Pulado"})]})):jsxs("div",f(s({"data-slot":"card-week-status",className:l("ml-auto flex items-center gap-1.5",e)},a),{children:[jsx("div",{className:"flex size-4 items-center justify-center rounded-full bg-secondary-background-soft text-secondary-foreground",children:jsx(Check,{size:12,strokeWidth:1.67})}),jsx("div",{className:"font-semibold text-secondary-foreground",children:"Feito"})]}))}function vn(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsx("div",s({"data-slot":"card-week-actions",className:l("flex flex-wrap items-center justify-end gap-2 pt-4",e)},a))}var _r=cva("flex flex-col gap-4 overflow-hidden rounded-lg border border-gray-stroke-muted p-6",{variants:{variant:{default:"bg-surface-card",blocked:"bg-gray-background-soft"}},defaultVariants:{variant:"default"}}),lt=cva("text-xs font-medium leading-xs text-gray-foreground-muted"),Gr=createContext(null);function dt(){var e;return (e=useContext(Gr))!=null?e:{}}function wn(r){var d=r,{className:e,variant:a,availableDate:o}=d,t=n(d,["className","variant","availableDate"]);let i=useMemo(()=>({variant:a,availableDate:o}),[a,o]);return jsx(Gr.Provider,{value:i,children:jsx("div",s({"data-slot":"card-module",className:l(_r({variant:a}),e)},t))})}function Tn(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsx("div",s({"data-slot":"card-module-header",className:l("flex flex-col",e)},a))}function An(r){var d=r,{className:e,children:a,count:o}=d,t=n(d,["className","children","count"]);let{variant:i}=dt();return jsxs("div",f(s({"data-slot":"card-module-label",className:l("flex items-center justify-between gap-2 text-xs font-medium leading-xs",i==="blocked"?"text-gray-foreground-muted":"text-content-paragraph",e)},t),{children:[jsx("span",{children:a}),o&&jsx("span",{className:"text-sm leading-sm text-gray-foreground-muted",children:o})]}))}function Dn(o){var t=o,{className:e}=t,a=n(t,["className"]);let{variant:r}=dt();return jsx("div",s({"data-slot":"card-module-title",className:l("line-clamp-2 min-h-14 max-w-[70%] text-lg font-semibold",r==="blocked"?"text-primary-foreground-muted":"text-primary-foreground",e)},a))}function Rn(t){var r=t,{className:e,progress:a}=r,o=n(r,["className","progress"]);let{variant:d}=dt(),i=Number.isFinite(a)?Math.min(100,Math.max(0,a)):0,u=d==="blocked"?jsx("div",{"data-slot":"card-module-status",className:lt(),children:"N\xE3o iniciado"}):i>=100?jsx("div",{"data-slot":"card-module-status",className:lt(),children:"Conclu\xEDdo"}):jsxs("div",{"data-slot":"card-module-status",className:lt(),children:[jsxs("span",{className:"font-semibold text-gray-foreground",children:[i,"%"]})," ","de progresso"]});return jsxs("div",f(s({"data-slot":"card-module-progress",className:l("flex flex-col gap-2",e)},o),{children:[u,d!=="blocked"&&jsx(Ke,{value:i,indicatorClassName:i===100?"bg-secondary-stroke-emphasis":"bg-primary-stroke"})]}))}function Mn(t){var r=t,{className:e,children:a}=r,o=n(r,["className","children"]);let{variant:d,availableDate:i}=dt();return d!=="blocked"||!i?null:jsxs("div",f(s({"data-slot":"card-module-footer",className:l("flex flex-col gap-3",e)},o),{children:[jsx("div",{className:"border-t border-gray-stroke-muted"}),jsxs("div",{className:"flex items-center justify-between",children:[jsxs(xe,{variant:"gray-soft",icon:jsx(Lock,{}),children:["Dispon\xEDvel em ",i]}),a]})]}))}function Bn(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsx(Y,s({"data-slot":"card-module-button",size:"sm",iconLeft:jsx(ArrowRightMd,{}),className:l(e)},a))}function Nn(t){var r=t,{className:e,children:a}=r,o=n(r,["className","children"]);return jsx("div",f(s({"data-slot":"card-module-action",className:l("flex items-center justify-end",e)},o),{children:a}))}var Wr=createContext({animation:void 0});function so(o){var t=o,{animation:e}=t,a=n(t,["animation"]);return jsx(Wr.Provider,{value:useMemo(()=>({animation:e}),[e]),children:jsx(Collapsible.Root,s({"data-slot":"collapsible"},a))})}function lo(a){var e=n(a,[]);return jsx(Collapsible.Trigger,s({"data-slot":"collapsible-trigger"},e))}function no(o){var t=o,{className:e}=t,a=n(t,["className"]);let{animation:r}=useContext(Wr),d={accordion:"overflow-hidden data-[state=closed]:animate-collapsible-up data-[state=open]:animate-collapsible-down",fade:"data-[state=closed]:animate-fade-out data-[state=open]:animate-fade-in"};return jsx(Collapsible.Content,s({"data-slot":"collapsible-content",className:l(r&&d[r],e)},a))}var Gn=cva("flex flex-col overflow-hidden rounded-2xl border border-gray-stroke-muted",{variants:{variant:{default:"bg-surface-card",blocked:"bg-gray-background-soft"}},defaultVariants:{variant:"default"}}),Xr=createContext(null);function Ea(){var e;return (e=useContext(Xr))!=null?e:{}}function Wn(d){var i=d,{className:e,variant:a,availableDate:o,children:t}=i,r=n(i,["className","variant","availableDate","children"]);let u=useMemo(()=>({variant:a,availableDate:o}),[a,o]);return jsx(Xr.Provider,{value:u,children:jsx(so,f(s({"data-slot":"card-topic",animation:"accordion",className:l(Gn({variant:a}),e)},r),{children:t}))})}function Xn(t){var r=t,{className:e,children:a}=r,o=n(r,["className","children"]);let{variant:d}=Ea(),i=d==="blocked";return jsx(lo,f(s({"data-slot":"card-topic-trigger",disabled:i,className:l("group flex min-h-16 w-full select-none flex-wrap items-center gap-4 p-4 text-left","[&>*:first-child]:flex-1","disabled:pointer-events-none disabled:cursor-default",!i&&"cursor-pointer",e)},o),{children:a}))}function Kn(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsx("div",s({"data-slot":"card-topic-column",className:l("flex flex-wrap items-center gap-4",e)},a))}function Zn(t){var r=t,{className:e,children:a}=r,o=n(r,["className","children"]);let{variant:d}=Ea();return jsx("div",f(s({"data-slot":"card-topic-number",className:l("flex size-[30px] shrink-0 items-center justify-center rounded-full text-md font-medium text-primary-foreground-onfill",d==="blocked"?"bg-primary-foreground-muted":"bg-primary-foreground",e)},o),{children:a}))}function jn(o){var t=o,{className:e}=t,a=n(t,["className"]);let{variant:r}=Ea();return jsx("div",s({"data-slot":"card-topic-title",className:l("min-w-0 flex-1 text-md font-semibold leading-md",r==="blocked"?"text-primary-foreground-muted":"text-primary-foreground",e)},a))}function Qn(t){var r=t,{className:e,progress:a}=r,o=n(r,["className","progress"]);let{variant:d,availableDate:i}=Ea();if(d==="blocked")return i?jsx("div",f(s({"data-slot":"card-topic-progress",className:l("flex",e)},o),{children:jsxs(xe,{variant:"gray-soft",icon:jsx(Lock,{"aria-hidden":true}),children:["Dispon\xEDvel em ",i]})})):null;if(a===void 0)return null;let u=Math.min(100,Math.max(0,a)),c=u>=100;return jsxs("div",f(s({"data-slot":"card-topic-progress",className:l("flex min-w-[180px] flex-col gap-2",e)},o),{children:[jsx("div",{className:"text-xs font-medium leading-xs text-gray-foreground-muted",children:c?"Conclu\xEDdo":jsxs(Fragment,{children:[jsxs("span",{className:"font-semibold text-gray-foreground",children:[u,"%"]})," de progresso"]})}),jsx(Ke,{value:u,indicatorClassName:c?"bg-secondary-stroke-emphasis":"bg-primary-stroke"})]}))}function $n(t){var r=t,{className:e,children:a}=r,o=n(r,["className","children"]);let{variant:d}=Ea();return jsxs("div",f(s({"data-slot":"card-topic-count",className:l("flex shrink-0 items-center gap-2",e)},o),{children:[jsx("span",{className:"text-sm font-medium leading-sm text-gray-foreground-muted",children:a}),jsx(ChevronDown,{"aria-hidden":true,size:18,strokeWidth:2.4,className:l("shrink-0 text-gray-foreground",d!=="blocked"&&"transition-transform duration-200 group-data-[state=open]:rotate-180")})]}))}function Jn(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsx(no,s({"data-slot":"card-topic-content",className:l("px-4 pb-4",e)},a))}function oi(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsx("div",s({"data-slot":"card-continue",className:l("flex gap-3 bg-transparent",e)},a))}function ri(d){var i=d,{className:e,src:a,alt:o="",children:t}=i,r=n(i,["className","src","alt","children"]);return jsx("div",f(s({"data-slot":"card-continue-image",className:l("relative h-[122px] w-[200px] shrink-0 overflow-hidden rounded-md bg-gray-background-soft",e)},r),{children:a?jsx("img",{src:a,alt:o,loading:"lazy",className:"absolute inset-0 size-full object-cover"}):t}))}function si(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsx("div",s({"data-slot":"card-continue-content",className:l("flex min-w-0 flex-1 flex-col justify-between gap-2",e)},a))}function li(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsx("div",s({"data-slot":"card-continue-header",className:l("flex min-w-0 flex-col gap-1",e)},a))}function di({items:e,className:a}){return jsx(Ma,{"data-slot":"card-continue-breadcrumb",className:"overflow-hidden",children:jsx(Ba,{className:l("flex-nowrap gap-1 text-xs font-medium leading-xs [&>[data-slot=breadcrumb-item]:last-of-type>span]:min-w-0 [&>[data-slot=breadcrumb-item]:last-of-type>span]:overflow-hidden [&>[data-slot=breadcrumb-item]:last-of-type]:min-w-0 [&>[data-slot=breadcrumb-item]:last-of-type]:flex-1 [&>[data-slot=breadcrumb-item]:last-of-type_[data-slot=breadcrumb-page]]:truncate [&_[data-slot=breadcrumb-page]]:block",a),children:e.map((o,t)=>jsx(Fragment$1,{children:t<e.length-1?jsxs(Fragment,{children:[jsx(at,{className:"text-content-paragraph",children:o}),jsx(Yt,{children:jsx(ChevronRight,{size:12,className:"text-gray-foreground"})})]}):jsx(at,{children:jsx(Jt,{className:"font-medium text-content-paragraph",children:o})})},`${o}-${t}`))})})}function ni(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsx("div",s({"data-slot":"card-continue-title",className:l("line-clamp-2 text-lg font-semibold leading-lg text-primary-foreground",e)},a))}function ii(t){var r=t,{className:e,children:a}=r,o=n(r,["className","children"]);return jsx(Y,f(s({"data-slot":"card-continue-button",variant:"emphasis-soft",size:"sm",iconRight:jsx(ArrowRightSm,{}),className:l("self-start",e)},o),{children:a}))}var Kr=cva("relative z-0 flex rounded-2xl border border-gray-stroke-muted",{variants:{variant:{default:"bg-surface-card",blocked:"bg-gray-background-soft"},orientation:{vertical:"flex-col overflow-hidden",horizontal:"flex-col overflow-hidden lg:flex-row lg:items-center"}},defaultVariants:{variant:"default",orientation:"vertical"}}),Zr=createContext(null);function ia(){var e;return (e=useContext(Zr))!=null?e:{}}function bi(i){var u=i,{className:e,variant:a,availableDate:o,orientation:t,children:r}=u,d=n(u,["className","variant","availableDate","orientation","children"]);let c=useMemo(()=>({variant:a,availableDate:o,orientation:t}),[a,o,t]),p=jsx("div",f(s({"data-slot":"card-lesson",className:l(Kr({variant:a,orientation:t}),e)},d),{children:r})),m=a!=="blocked"&&t!=="horizontal";return jsx(Zr.Provider,{value:c,children:m?jsxs("div",{"data-slot":"card-lesson-stack",className:"relative pt-[17px]",children:[jsx("div",{"aria-hidden":true,className:"pointer-events-none absolute inset-x-[34px] bottom-0 top-0 z-0 max-h-[20%] rounded-2xl border border-gray-stroke-muted bg-surface-card"}),jsx("div",{"aria-hidden":true,className:"pointer-events-none absolute inset-x-4 bottom-0 top-2 z-0 max-h-[20%] rounded-2xl border border-gray-stroke-muted bg-surface-card"}),p]}):p})}function Li(d){var i=d,{className:e,src:a,alt:o="",children:t}=i,r=n(i,["className","src","alt","children"]);let{variant:u,orientation:c}=ia(),p=c==="horizontal",m=l("h-[153px] w-full rounded-md",p&&"lg:h-[122px] lg:w-[200px]",u==="blocked"&&"opacity-20");return jsx("div",f(s({"data-slot":"card-lesson-image",className:l("px-3 pt-3",p&&"lg:shrink-0 lg:p-3",e)},r),{children:a?jsx("img",{src:a,alt:o,loading:"lazy",className:l(m,"object-cover")}):jsx("div",{className:l(m,"bg-gray-background-soft"),children:t})}))}function Ci(o){var t=o,{className:e}=t,a=n(t,["className"]);let{orientation:r}=ia();return jsx("div",s({"data-slot":"card-lesson-content",className:l("flex flex-col gap-2 px-6 pt-4",r==="horizontal"&&"lg:min-w-[160px] lg:flex-1 lg:justify-center lg:gap-0 lg:px-0 lg:py-3",e)},a))}function vi(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsx("div",s({"data-slot":"card-lesson-header",className:l("flex flex-col",e)},a))}function Ii(o){var t=o,{className:e}=t,a=n(t,["className"]);let{variant:r}=ia();return jsx("div",s({"data-slot":"card-lesson-label",className:l("text-xs font-medium leading-xs",r==="blocked"?"text-gray-foreground-muted":"text-content-paragraph",e)},a))}function ki(o){var t=o,{className:e}=t,a=n(t,["className"]);let{variant:r}=ia();return jsx("div",s({"data-slot":"card-lesson-title",className:l("line-clamp-2 text-lg font-semibold leading-lg",r==="blocked"?"text-primary-foreground-muted":"text-primary-foreground",e)},a))}function yi(t){var r=t,{className:e,children:a}=r,o=n(r,["className","children"]);return jsx("div",f(s({"data-slot":"card-lesson-duration",className:l("flex items-center gap-1 text-sm font-medium leading-sm text-gray-foreground-muted",e)},o),{children:a}))}function Si(t){var r=t,{className:e,children:a}=r,o=n(r,["className","children"]);let{variant:d,availableDate:i,orientation:u}=ia();return jsxs("div",f(s({"data-slot":"card-lesson-footer",className:l("mt-auto flex flex-wrap items-center justify-between gap-4 px-6 pb-6 pt-4",u==="horizontal"&&"mt-0 lg:grow lg:basis-0 lg:flex-nowrap lg:justify-end lg:px-3 lg:py-3",e)},o),{children:[d==="blocked"&&i?jsxs(xe,{variant:"gray-soft",icon:jsx(Lock,{}),children:["Dispon\xEDvel em ",i]}):null,a]}))}function Pi(t){var r=t,{className:e,status:a}=r,o=n(r,["className","status"]);let d=a==="completed";return jsx(xe,f(s({"data-slot":"card-lesson-status",variant:d?"success-soft":"warning-soft",icon:d?jsx(Check,{}):void 0,className:e},o),{children:d?"Conclu\xEDdo":"Iniciado"}))}function wi(r){var d=r,{className:e,children:a,containerClassName:o}=d,t=n(d,["className","children","containerClassName"]);let{variant:i}=ia();return jsx(Y,f(s({"data-slot":"card-lesson-button",variant:"regular",size:"sm",disabled:i==="blocked",containerClassName:l("[&:only-child]:ml-auto",o),className:l("rounded-full disabled:bg-gray-background-soft-muted disabled:text-gray-foreground-muted",e)},t),{children:a}))}var Qr=cva("inline-flex items-center justify-center place-items-center gap-2 rounded-sm whitespace-nowrap transition-all disabled:pointer-events-none shrink-0 [&_svg]:shrink-0 hover:cursor-pointer focus:outline-0 [grid-template-areas:'stack']",{variants:{variant:{regular:"bg-surface-card border-2 border-gray-stroke-muted enabled:hover:ring-4 data-[state=unchecked]:enabled:hover:ring-state-hover data-[state=unchecked]:enabled:hover:border-gray-stroke disabled:bg-gray-background-soft-muted data-[state=checked]:bg-primary-background-fill data-[state=checked]:border-primary-background-fill data-[state=checked]:enabled:hover:bg-primary-background-fill-emphasis data-[state=checked]:enabled:hover:border-primary-background-fill-emphasis data-[state=checked]:enabled:hover:ring-state-active disabled:data-[state=checked]:bg-gray-background-soft-muted disabled:data-[state=checked]:border-gray-stroke-muted data-[state=unchecked]:enabled:hover:border-gray-stroke data-[state=checked]:enabled:hover:bg-primary-background-fill-emphasis [&:disabled_svg]:text-gray-background-fill-muted"},size:{sm:"size-4 [&_svg]:size-3",md:"size-5 [&_svg]:size-4",lg:"size-6 [&_svg]:size-5"}},defaultVariants:{variant:"regular",size:"md"}});function Ri(d){var i=d,{className:e,size:a,variant:o,uncheckIcon:t}=i,r=n(i,["className","size","variant","uncheckIcon"]);return jsx(Checkbox.Root,f(s({"data-slot":"checkbox",className:l("group peer",Qr({size:a,variant:o}),e)},r),{children:jsx(Checkbox.Indicator,{"data-slot":"checkbox-indicator",className:"relative flex items-center justify-center",children:t?jsx(RemoveMinus,{className:l("absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 text-primary-foreground-onfill"),strokeWidth:2.6}):jsx(Check,{className:l("absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 text-primary-foreground-onfill"),strokeWidth:2.6})})}))}var uo=768;function Ha(){let[e,a]=useState(void 0);return useEffect(()=>{let o=window.matchMedia(`(max-width: ${uo-1}px)`),t=()=>{a(window.innerWidth<uo);};return o.addEventListener("change",t),a(window.innerWidth<uo),()=>o.removeEventListener("change",t)},[]),!!e}function fo(a){var e=n(a,[]);return jsx(DropdownMenu.Root,s({"data-slot":"dropdown-menu"},e))}function Fi(a){var e=n(a,[]);return jsx(DropdownMenu.Portal,s({"data-slot":"dropdown-menu-portal"},e))}function co(a){var e=n(a,[]);return jsx(DropdownMenu.Trigger,s({className:l("cursor-pointer",e.className),"data-slot":"dropdown-menu-trigger"},e))}function po(r){var d=r,{className:e,sideOffset:a=4,side:o}=d,t=n(d,["className","sideOffset","side"]);let i=Ha();return jsx(DropdownMenu.Portal,{children:jsx(DropdownMenu.Content,s({"data-slot":"dropdown-menu-content",sideOffset:a,side:i?"bottom":o,className:l("max-h-(--radix-dropdown-menu-content-available-height) origin-(--radix-dropdown-menu-content-transform-origin) z-50 max-h-screen min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-surface-elevated p-3 pb-2 text-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e)},t))})}function Ei(a){var e=n(a,[]);return jsx(DropdownMenu.Group,s({"data-slot":"dropdown-menu-group"},e))}function ut(r){var d=r,{className:e,inset:a,variant:o="default"}=d,t=n(d,["className","inset","variant"]);return jsx(DropdownMenu.Item,s({"data-slot":"dropdown-menu-item","data-inset":a,"data-variant":o,className:l("data-[variant=destructive]:*:[svg]:!text-destructive outline-hidden relative flex cursor-pointer select-none items-center gap-2.5 rounded-sm px-2 py-2 text-sm font-medium text-gray-foreground hover:bg-secondary-background-soft-emphasis focus:outline-0 data-[disabled]:pointer-events-none data-[inset]:pl-8 data-[variant=destructive]:text-red-foreground data-[disabled]:opacity-50 data-[variant=destructive]:hover:bg-red-background-soft-emphasis dark:[&_img]:brightness-0 dark:[&_img]:invert [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",e)},t))}function Hi(r){var d=r,{className:e,children:a,checked:o}=d,t=n(d,["className","children","checked"]);return jsxs(DropdownMenu.CheckboxItem,f(s({"data-slot":"dropdown-menu-checkbox-item",className:l("outline-hidden relative flex cursor-pointer select-none items-center gap-2 rounded-md py-2 pl-2 pr-7 text-sm font-medium text-gray-foreground hover:bg-secondary-background-soft-emphasis focus:outline-0 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:[&_img]:brightness-0 dark:[&_img]:invert [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg]:text-secondary-foreground",e),checked:o},t),{children:[jsx("span",{className:"flex min-w-0 flex-1 gap-2 break-words",children:a}),jsx("span",{className:"pointer-events-none absolute right-2 flex size-3.5 items-center justify-center",children:jsx(DropdownMenu.ItemIndicator,{children:jsx(Check,{className:"size-4"})})})]}))}function ft(a){var e=n(a,[]);return jsx(DropdownMenu.RadioGroup,s({"data-slot":"dropdown-menu-radio-group"},e))}function mo(t){var r=t,{className:e,children:a}=r,o=n(r,["className","children"]);return jsxs(DropdownMenu.RadioItem,f(s({"data-slot":"dropdown-menu-radio-item",className:l("outline-hidden relative flex cursor-pointer select-none items-center gap-2 rounded-md py-3 pl-2 pr-7 text-sm font-medium text-gray-foreground hover:bg-secondary-background-soft-emphasis focus:outline-0 aria-checked:text-secondary-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:[&_img]:brightness-0 dark:[&_img]:invert [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:text-secondary-foreground",e)},o),{children:[jsx("span",{className:"flex min-w-0 flex-1 gap-2 break-words",children:a}),jsx("span",{className:"pointer-events-none absolute right-2 flex size-3.5 items-center justify-center",children:jsx(DropdownMenu.ItemIndicator,{children:jsx(Check,{className:"size-4"})})})]}))}function go(t){var r=t,{className:e,inset:a}=r,o=n(r,["className","inset"]);return jsx(DropdownMenu.Label,s({"data-slot":"dropdown-menu-label","data-inset":a,className:l("px-2 py-3 text-xs font-medium text-gray-foreground-muted data-[inset]:pl-8 [&:not(:first-child)]:mt-2.5",e)},o))}function xo(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsx(DropdownMenu.Separator,s({"data-slot":"dropdown-menu-separator",className:l("-mx-3 my-2 h-px bg-gray-stroke-muted",e)},a))}function Oi(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsx("span",s({"data-slot":"dropdown-menu-shortcut",className:l("ml-auto text-xs tracking-widest text-gray-foreground",e)},a))}function qi(a){var e=n(a,[]);return jsx(DropdownMenu.Sub,s({"data-slot":"dropdown-menu-sub"},e))}function Vi(r){var d=r,{className:e,inset:a,children:o}=d,t=n(d,["className","inset","children"]);return jsxs(DropdownMenu.SubTrigger,f(s({"data-slot":"dropdown-menu-sub-trigger","data-inset":a,className:l("flex cursor-pointer select-none items-center rounded-sm px-2 py-2 text-sm font-medium text-gray-foreground outline-0 focus:outline-0 data-[inset]:pl-8",e)},t),{children:[o,jsx(ChevronRight,{className:"ml-auto size-3"})]}))}function zi(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsx(DropdownMenu.SubContent,s({"data-slot":"dropdown-menu-sub-content",className:l("origin-(--radix-dropdown-menu-content-transform-origin) z-50 min-w-[8rem] overflow-hidden rounded-md border bg-surface-elevated p-1 text-gray-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e)},a))}var Lo=createContext({invalid:false}),ss={start:1950,end:new Date().getFullYear()};function pt(e,a){let o=e.getFullYear();return o<a.start?new Date(a.start,0,1):o>a.end?new Date(a.end,11,31):e}var Co=cva(["shadow-xs flex w-full items-center justify-between gap-2 rounded-md border-2 border-gray-stroke-muted bg-surface-card px-4 py-3 text-left text-gray-foreground outline-none transition-[color,box-shadow] enabled:hover:border-gray-stroke-emphasis enabled:hover:ring-[3px] enabled:hover:ring-state-focus disabled:pointer-events-none disabled:bg-gray-background-soft-muted disabled:text-gray-foreground-muted data-[invalid]:border-feedback-error-stroke data-[invalid]:enabled:hover:border-feedback-error-stroke data-[invalid]:enabled:hover:ring-[3px] data-[invalid]:enabled:hover:ring-state-error","group-has-[[data-slot=date-picker-label]]:data-[placeholder]:text-transparent"],{variants:{size:{lg:["h-12 max-h-12 text-md","max-sm:h-14 max-sm:text-base"],md:["h-10 max-h-10 text-sm","max-sm:h-11"]}},defaultVariants:{size:"lg"}});function Wi(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsx("div",s({className:l("group relative flex flex-col gap-2",e),"data-slot":"date-picker-wrapper"},a))}function Xi(t){var r=t,{className:e,children:a}=r,o=n(r,["className","children"]);return jsx("label",f(s({className:l("pointer-events-none absolute start-3 top-0 z-10 origin-left -translate-y-1/2 bg-surface-card px-1 text-xs font-medium text-gray-foreground transition-all duration-200 ease-out","group-has-[[data-slot=date-picker-trigger][data-placeholder]:not([data-state=open])]:start-4 group-has-[[data-slot=date-picker-trigger][data-placeholder]:not([data-state=open])]:top-6 group-has-[[data-slot=date-picker-trigger][data-placeholder]:not([data-state=open])]:bg-transparent group-has-[[data-slot=date-picker-trigger][data-placeholder]:not([data-state=open])]:px-0 group-has-[[data-slot=date-picker-trigger][data-placeholder]:not([data-state=open])]:text-md group-has-[[data-slot=date-picker-trigger][data-placeholder]:not([data-state=open])]:font-normal group-has-[[data-slot=date-picker-trigger][data-placeholder]:not([data-state=open])]:text-gray-foreground max-sm:group-has-[[data-slot=date-picker-trigger][data-placeholder]:not([data-state=open])]:top-7","group-has-[[data-slot=date-picker-trigger][data-size=md]]:group-has-[[data-slot=date-picker-trigger][data-placeholder]:not([data-state=open])]:top-5 group-has-[[data-slot=date-picker-trigger][data-size=md]]:group-has-[[data-slot=date-picker-trigger][data-placeholder]:not([data-state=open])]:!text-sm max-sm:group-has-[[data-slot=date-picker-trigger][data-size=md]]:group-has-[[data-slot=date-picker-trigger][data-placeholder]:not([data-state=open])]:top-[22px]",e),"data-slot":"date-picker-label"},o),{children:a}))}function Ki(o){var t=o,{className:e}=t,a=n(t,["className"]);let{invalid:r}=useContext(Lo);return jsx("span",s({className:l("-mt-1 text-xs",r?"text-feedback-error-foreground":"text-gray-foreground",e),"data-slot":"date-picker-text"},a))}function fa(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate())}function Oa(e,a){return e.getFullYear()===a.getFullYear()&&e.getMonth()===a.getMonth()&&e.getDate()===a.getDate()}function mt(e,a){return new Date(e.getFullYear(),e.getMonth()+a,1)}function gt(e){return new Date(e.getFullYear(),e.getMonth(),1)}function bo(e,a){return fa(e).getTime()<fa(a).getTime()}function ls(e,a){return fa(e).getTime()>fa(a).getTime()}function qa(e,a,o){return !!(a&&bo(e,a)||o&&ls(e,o))}function ds(e){return new Intl.DateTimeFormat("pt-BR",{year:"numeric",month:"2-digit",day:"2-digit"}).format(e)}var ns=20,is=18;function Zi(V){var k=V,{value:e,defaultValue:a=null,onValueChange:o,placeholder:t="Pick a date",disabled:r,min:d,max:i,format:u=ds,className:c,inputClassName:p,contentClassName:m,size:x="lg",yearRange:h=ss,showYearSelector:y=true,invalid:L=false,children:A}=k,M=n(k,["value","defaultValue","onValueChange","placeholder","disabled","min","max","format","className","inputClassName","contentClassName","size","yearRange","showYearSelector","invalid","children"]);let I=e!==void 0,[_,E]=useState(a),b=I?e:_,[v,N]=useState(false),[W,q]=useState(()=>gt(pt(b!=null?b:new Date,h))),Z=useRef(null),Pe=useRef(null),we=useRef(null),Ce=useId(),[ae,Re]=useState(null),ge=useCallback(P=>{I||E(P),o==null||o(P);},[I,o]);useEffect(()=>{v&&q(gt(pt(b!=null?b:new Date,h)));},[v,b,h]),useEffect(()=>{v||Re(null);},[v]),useEffect(()=>{if(!v)return;let P=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=P;}},[v]),useEffect(()=>{if(!ae)return;let P=()=>N(false);return window.addEventListener("scroll",P,{passive:true,capture:true}),()=>window.removeEventListener("scroll",P,{capture:true})},[ae]),useEffect(()=>{if(!v)return;let P=H=>{let z=Z.current,ee=we.current;z&&H.target instanceof Node&&!z.contains(H.target)&&!(ee!=null&&ee.contains(H.target))&&N(false);},C=H=>{H.key==="Escape"&&N(false);};return window.addEventListener("pointerdown",P,{capture:true}),window.addEventListener("keydown",C),()=>{window.removeEventListener("pointerdown",P,{capture:true}),window.removeEventListener("keydown",C);}},[v]);let ea=290,aa=()=>{var P,C,H;if(v)N(false);else {let z=(H=(P=Pe.current)==null?void 0:P.getBoundingClientRect())!=null?H:(C=Z.current)==null?void 0:C.getBoundingClientRect();if(z){let ye=window.innerHeight-z.bottom<ea,Ue=window.innerWidth,La=window.matchMedia("(max-width: 639px)").matches?Math.min(512,Ue-16):Math.min(320,Ue),Ca=8,va=Ca,Ia=Ue-La-Ca,He=z.left;He<va?He=va:He>Ia&&(He=Ia),Re(f(s({position:"fixed"},ye?{bottom:window.innerHeight-z.top+8}:{top:z.bottom+8}),{left:He,width:La,maxWidth:360}));}N(true);}},ke=fa(new Date),se=W.getFullYear(),fe=W.getMonth(),g=new Date(se,fe,1),B=new Date(se,fe+1,0).getDate(),D=g.getDay(),w=b?u(b):"",O=Array.from({length:12},(P,C)=>({value:C,label:new Intl.DateTimeFormat("pt-BR",{month:"long"}).format(new Date(2e3,C,1))})),$=Array.from({length:h.end-h.start+1},(P,C)=>h.start+C),J=P=>{q(new Date(se,P,1));},te=P=>{q(new Date(P,fe,1));};return jsxs(Lo.Provider,{value:useMemo(()=>({invalid:L}),[L]),children:[jsxs("div",{ref:Z,className:l("relative inline-flex w-full",c),children:[jsxs("button",f(s(f(s({ref:Pe,type:"button",disabled:r,"aria-haspopup":"dialog","aria-expanded":v,"aria-controls":v?Ce:void 0,"data-invalid":L||void 0,"data-slot":"date-picker-trigger","data-size":x,"data-state":v?"open":"closed"},!w&&{"data-placeholder":""}),{className:l(Co({size:x}),v&&"border-gray-stroke-emphasis ring-[3px] ring-state-focus",w&&!L&&"border-gray-stroke-emphasis ring-[3px] ring-state-focus",w&&L&&"border-feedback-error-stroke ring-[3px] ring-state-error",p),onClick:aa}),M),{children:[jsx("span",{className:"truncate",children:w||t}),jsx(Calendar,{size:x==="md"?is:ns,strokeWidth:1.6,className:"shrink-0 !text-gray-foreground","aria-hidden":"true"})]})),v&&createPortal(jsxs("div",{ref:we,id:Ce,role:"dialog","aria-label":"Calend\xE1rio","data-slot":"date-picker-content",style:ae!=null?ae:void 0,className:l("z-50 overflow-hidden rounded-md border border-gray-stroke-muted bg-surface-elevated p-3 shadow-md",m),children:[jsxs("div",{className:"mb-3 flex items-center justify-center gap-2",children:[jsx("button",{type:"button",className:"inline-flex size-8 items-center justify-center rounded-md hover:bg-secondary-background-soft-emphasis max-sm:size-10",onClick:()=>q(P=>mt(P,-1)),"aria-label":"M\xEAs anterior",children:jsx(ChevronLeftMd,{size:18,strokeWidth:1.8})}),jsxs("div",{className:"flex items-center gap-2",children:[jsxs("div",{className:"relative",children:[jsx("select",{value:fe,onChange:P=>J(Number(P.target.value)),className:"min-w-[7rem] appearance-none rounded-md border border-gray-stroke-muted bg-surface-card py-1 pl-2 pr-7 text-sm font-medium capitalize text-gray-foreground outline-none hover:border-gray-stroke-emphasis focus:border-gray-stroke-emphasis focus:ring-2 focus:ring-state-focus max-sm:min-w-[8rem] max-sm:py-2 max-sm:text-base","aria-label":"Selecionar m\xEAs",children:O.map(P=>jsx("option",{value:P.value,className:"capitalize",children:P.label},P.value))}),jsx(ChevronDown,{size:14,strokeWidth:1.8,className:"pointer-events-none absolute right-2 top-1/2 -translate-y-1/2 text-gray-foreground","aria-hidden":true})]}),y?jsxs("div",{className:"relative",children:[jsx("select",{value:se,onChange:P=>te(Number(P.target.value)),className:"min-w-[5rem] appearance-none rounded-md border border-gray-stroke-muted bg-surface-card py-1 pl-2 pr-7 text-sm font-medium text-gray-foreground outline-none hover:border-gray-stroke-emphasis focus:border-gray-stroke-emphasis focus:ring-2 focus:ring-state-focus max-sm:min-w-[5.5rem] max-sm:py-2 max-sm:text-base","aria-label":"Selecionar ano",children:$.map(P=>jsx("option",{value:P,children:P},P))}),jsx(ChevronDown,{size:14,strokeWidth:1.8,className:"pointer-events-none absolute right-2 top-1/2 -translate-y-1/2 text-gray-foreground","aria-hidden":true})]}):jsx("div",{className:"text-sm font-semibold text-gray-foreground",children:se})]}),jsx("button",{type:"button",className:"inline-flex size-8 items-center justify-center rounded-md hover:bg-secondary-background-soft-emphasis max-sm:size-10",onClick:()=>q(P=>mt(P,1)),"aria-label":"Pr\xF3ximo m\xEAs",children:jsx(ChevronRightMd,{size:18,strokeWidth:1.8})})]}),jsxs("div",{className:"grid grid-cols-7 gap-1 text-center text-xs font-medium text-gray-foreground-muted max-sm:text-sm",children:[jsx("div",{children:"Dom"}),jsx("div",{children:"Seg"}),jsx("div",{children:"Ter"}),jsx("div",{children:"Qua"}),jsx("div",{children:"Qui"}),jsx("div",{children:"Sex"}),jsx("div",{children:"S\xE1b"})]}),jsxs("div",{className:"mt-2 grid grid-cols-7 gap-1",children:[Array.from({length:D}).map((P,C)=>jsx("div",{},`empty-${C}`)),Array.from({length:B}).map((P,C)=>{let H=new Date(se,fe,C+1),z=b?Oa(H,b):false,ee=Oa(H,ke),ye=r||qa(H,d,i);return jsx("button",{type:"button",disabled:ye,onClick:()=>{ge(H),N(false);},className:l("inline-flex h-9 w-full items-center justify-center rounded-md text-sm font-medium outline-none transition-colors hover:bg-secondary-background-soft-emphasis disabled:pointer-events-none disabled:opacity-50 max-sm:h-11 max-sm:text-base",ee&&"ring-1 ring-gray-stroke-emphasis",z&&"bg-primary-background-fill text-primary-foreground-onfill hover:bg-primary-background-fill-emphasis"),"aria-pressed":z,children:C+1},H.toISOString())})]}),jsxs("div",{className:"mt-3 flex items-center justify-between gap-2",children:[jsx("button",{type:"button",className:"rounded-md px-2 py-1 text-xs font-medium text-gray-foreground hover:bg-secondary-background-soft-emphasis max-sm:px-3 max-sm:py-2 max-sm:text-sm",onClick:()=>{ge(ke),N(false);},disabled:r||qa(ke,d,i),children:"Hoje"}),jsx("button",{type:"button",className:"rounded-md px-2 py-1 text-xs font-medium text-gray-foreground hover:bg-secondary-background-soft-emphasis max-sm:px-3 max-sm:py-2 max-sm:text-sm",onClick:()=>ge(null),disabled:r||!b,children:"Limpar"})]})]}),document.body)]}),A]})}function ji(V){var k=V,{value:e,defaultValue:a=null,onValueChange:o,placeholder:t="Selecionar per\xEDodo",disabled:r,min:d,max:i,format:u=ds,className:c,inputClassName:p,contentClassName:m,size:x="lg",yearRange:h=ss,showYearSelector:y=true,invalid:L=false,children:A}=k,M=n(k,["value","defaultValue","onValueChange","placeholder","disabled","min","max","format","className","inputClassName","contentClassName","size","yearRange","showYearSelector","invalid","children"]);let I=e!==void 0,[_,E]=useState(a),b=I?e:_,[v,N]=useState(false),[W,q]=useState(()=>{var C,H;return gt(pt((H=(C=b==null?void 0:b.start)!=null?C:b==null?void 0:b.end)!=null?H:new Date,h))}),Z=useRef(null),Pe=useRef(null),we=useRef(null),Ce=useId(),[ae,Re]=useState(null),ge=useCallback(C=>{I||E(C),o==null||o(C);},[I,o]);useEffect(()=>{var C,H;v&&q(gt(pt((H=(C=b==null?void 0:b.start)!=null?C:b==null?void 0:b.end)!=null?H:new Date,h)));},[v,b,h]),useEffect(()=>{v||Re(null);},[v]),useEffect(()=>{if(!v)return;let C=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=C;}},[v]),useEffect(()=>{if(!ae)return;let C=()=>N(false);return window.addEventListener("scroll",C,{passive:true,capture:true}),()=>window.removeEventListener("scroll",C,{capture:true})},[ae]),useEffect(()=>{if(!v)return;let C=z=>{let ee=Z.current,ye=we.current;ee&&z.target instanceof Node&&!ee.contains(z.target)&&!(ye!=null&&ye.contains(z.target))&&N(false);},H=z=>{z.key==="Escape"&&N(false);};return window.addEventListener("pointerdown",C,{capture:true}),window.addEventListener("keydown",H),()=>{window.removeEventListener("pointerdown",C,{capture:true}),window.removeEventListener("keydown",H);}},[v]);let ea=330,aa=()=>{var C,H,z;if(v)N(false);else {let ee=(z=(C=Pe.current)==null?void 0:C.getBoundingClientRect())!=null?z:(H=Z.current)==null?void 0:H.getBoundingClientRect();if(ee){let Ue=window.innerHeight-ee.bottom<ea,ta=window.innerWidth,Ca=window.matchMedia("(max-width: 639px)").matches?Math.min(512,ta-16):Math.min(320,ta),va=8,Ia=va,He=ta-Ca-va,ka=ee.left;ka<Ia?ka=Ia:ka>He&&(ka=He),Re(f(s({position:"fixed"},Ue?{bottom:window.innerHeight-ee.top+8}:{top:ee.bottom+8}),{left:ka,width:Ca,maxWidth:360}));}N(true);}},ke=fa(new Date),se=W.getFullYear(),fe=W.getMonth(),g=new Date(se,fe,1),B=new Date(se,fe+1,0).getDate(),D=g.getDay(),w=Array.from({length:12},(C,H)=>({value:H,label:new Intl.DateTimeFormat("pt-BR",{month:"long"}).format(new Date(2e3,H,1))})),O=Array.from({length:h.end-h.start+1},(C,H)=>h.start+H),$=C=>{q(new Date(se,C,1));},J=C=>{q(new Date(C,fe,1));},te=C=>{r||qa(C,d,i)||(!b||!b.start||b.end?ge({start:C,end:null}):(bo(C,b.start)?ge({start:C,end:b.start}):ge({start:b.start,end:C}),N(false)));},P=b!=null&&b.start&&(b!=null&&b.end)?`${u(b.start)} - ${u(b.end)}`:b!=null&&b.start?u(b.start):"";return jsxs(Lo.Provider,{value:useMemo(()=>({invalid:L}),[L]),children:[jsxs("div",{ref:Z,className:l("relative inline-flex w-full",c),children:[jsxs("button",f(s(f(s({ref:Pe,type:"button",disabled:r,"aria-haspopup":"dialog","aria-expanded":v,"aria-controls":v?Ce:void 0,"data-invalid":L||void 0,"data-slot":"date-picker-trigger","data-size":x,"data-state":v?"open":"closed"},!P&&{"data-placeholder":""}),{className:l(Co({size:x}),v&&"border-gray-stroke-emphasis ring-[3px] ring-state-focus",P&&!L&&"border-gray-stroke-emphasis ring-[3px] ring-state-focus",P&&L&&"border-feedback-error-stroke ring-[3px] ring-state-error",p),onClick:aa}),M),{children:[jsx("span",{className:"truncate",children:P||t}),jsx(Calendar,{size:x==="md"?is:ns,strokeWidth:1.6,className:"shrink-0 !text-gray-foreground","aria-hidden":"true"})]})),v&&createPortal(jsxs("div",{ref:we,id:Ce,role:"dialog","aria-label":"Calend\xE1rio","data-slot":"date-picker-content",style:ae!=null?ae:void 0,className:l("z-50 overflow-hidden rounded-md border border-gray-stroke-muted bg-surface-elevated p-3 shadow-md",m),children:[jsxs("div",{className:"mb-3 flex items-center justify-center gap-2",children:[jsx("button",{type:"button",className:"inline-flex size-8 items-center justify-center rounded-md hover:bg-secondary-background-soft-emphasis max-sm:size-10",onClick:()=>q(C=>mt(C,-1)),"aria-label":"M\xEAs anterior",children:jsx(ChevronLeftMd,{size:18,strokeWidth:1.8})}),jsxs("div",{className:"flex items-center gap-2",children:[jsxs("div",{className:"relative",children:[jsx("select",{value:fe,onChange:C=>$(Number(C.target.value)),className:"min-w-[7rem] appearance-none rounded-md border border-gray-stroke-muted bg-surface-card py-1 pl-2 pr-7 text-sm font-medium capitalize text-gray-foreground outline-none hover:border-gray-stroke-emphasis focus:border-gray-stroke-emphasis focus:ring-2 focus:ring-state-focus max-sm:min-w-[8rem] max-sm:py-2 max-sm:text-base","aria-label":"Selecionar m\xEAs",children:w.map(C=>jsx("option",{value:C.value,className:"capitalize",children:C.label},C.value))}),jsx(ChevronDown,{size:14,strokeWidth:1.8,className:"pointer-events-none absolute right-2 top-1/2 -translate-y-1/2 text-gray-foreground","aria-hidden":true})]}),y?jsxs("div",{className:"relative",children:[jsx("select",{value:se,onChange:C=>J(Number(C.target.value)),className:"min-w-[5rem] appearance-none rounded-md border border-gray-stroke-muted bg-surface-card py-1 pl-2 pr-7 text-sm font-medium text-gray-foreground outline-none hover:border-gray-stroke-emphasis focus:border-gray-stroke-emphasis focus:ring-2 focus:ring-state-focus max-sm:min-w-[5.5rem] max-sm:py-2 max-sm:text-base","aria-label":"Selecionar ano",children:O.map(C=>jsx("option",{value:C,children:C},C))}),jsx(ChevronDown,{size:14,strokeWidth:1.8,className:"pointer-events-none absolute right-2 top-1/2 -translate-y-1/2 text-gray-foreground","aria-hidden":true})]}):jsx("div",{className:"text-sm font-semibold text-gray-foreground",children:se})]}),jsx("button",{type:"button",className:"inline-flex size-8 items-center justify-center rounded-md hover:bg-secondary-background-soft-emphasis max-sm:size-10",onClick:()=>q(C=>mt(C,1)),"aria-label":"Pr\xF3ximo m\xEAs",children:jsx(ChevronRightMd,{size:18,strokeWidth:1.8})})]}),jsxs("div",{className:"grid grid-cols-7 gap-1 text-center text-xs font-medium text-gray-foreground-muted max-sm:text-sm",children:[jsx("div",{children:"Dom"}),jsx("div",{children:"Seg"}),jsx("div",{children:"Ter"}),jsx("div",{children:"Qua"}),jsx("div",{children:"Qui"}),jsx("div",{children:"Sex"}),jsx("div",{children:"S\xE1b"})]}),jsxs("div",{className:"mt-2 grid grid-cols-7 gap-1",children:[Array.from({length:D}).map((C,H)=>jsx("div",{},`empty-${H}`)),Array.from({length:B}).map((C,H)=>{let z=new Date(se,fe,H+1),ee=(b==null?void 0:b.start)&&Oa(z,b.start),ye=(b==null?void 0:b.end)&&Oa(z,b.end),Ue=(b==null?void 0:b.start)&&(b==null?void 0:b.end)&&ls(z,b.start)&&bo(z,b.end),ta=Oa(z,ke),La=r||qa(z,d,i);return jsx("button",{type:"button",disabled:La,onClick:()=>te(z),className:l("inline-flex h-9 w-full items-center justify-center rounded-md text-sm font-medium outline-none transition-colors hover:bg-secondary-background-soft-emphasis disabled:pointer-events-none disabled:opacity-50",ta&&"ring-1 ring-gray-stroke-emphasis",Ue&&"bg-primary-background-soft",(ee||ye)&&"bg-primary-background-fill text-primary-foreground-onfill hover:bg-primary-background-fill-emphasis"),"aria-pressed":ee||ye||void 0,children:H+1},z.toISOString())})]}),jsxs("div",{className:"mt-3 flex items-center justify-between gap-2",children:[jsx("button",{type:"button",className:"rounded-md px-2 py-1 text-xs font-medium text-gray-foreground hover:bg-secondary-background-soft-emphasis",onClick:()=>{ge({start:ke,end:ke}),N(false);},disabled:r||qa(ke,d,i),children:"Hoje"}),jsx("button",{type:"button",className:"rounded-md px-2 py-1 text-xs font-medium text-gray-foreground hover:bg-secondary-background-soft-emphasis",onClick:()=>ge(null),disabled:r||!b,children:"Limpar"})]})]}),document.body)]}),A]})}var ru=24,su=20,lu=1.6,fs=10,cs=8;function du(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsx("div",s({className:l("group relative flex flex-col gap-2",e),"data-slot":"input-wrapper"},a))}function nu(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsx("div",s({className:l("relative",e),"data-slot":"input-field"},a))}function iu(t){var r=t,{className:e,children:a}=r,o=n(r,["className","children"]);return jsx("label",f(s({className:l("pointer-events-none absolute start-3 top-0 z-10 origin-left -translate-y-1/2 bg-surface-card px-1 text-xs font-medium text-gray-foreground transition-all duration-200 ease-out","group-has-[[data-slot=input][disabled]]:bg-transparent","group-has-[[data-slot=input]:placeholder-shown:not(:focus)]:start-4 group-has-[[data-slot=input]:placeholder-shown:not(:focus)]:top-6 group-has-[[data-slot=input]:placeholder-shown:not(:focus)]:bg-transparent group-has-[[data-slot=input]:placeholder-shown:not(:focus)]:px-0 group-has-[[data-slot=input]:placeholder-shown:not(:focus)]:text-md group-has-[[data-slot=input]:placeholder-shown:not(:focus)]:font-normal","group-has-[[data-slot=input][data-empty]:not(:focus)]:start-4 group-has-[[data-slot=input][data-empty]:not(:focus)]:top-6 group-has-[[data-slot=input][data-empty]:not(:focus)]:bg-transparent group-has-[[data-slot=input][data-empty]:not(:focus)]:px-0 group-has-[[data-slot=input][data-empty]:not(:focus)]:text-md group-has-[[data-slot=input][data-empty]:not(:focus)]:font-normal","group-has-[[data-slot=input][data-size=md]]:group-has-[[data-slot=input]:placeholder-shown:not(:focus)]:top-5 group-has-[[data-slot=input][data-size=md]]:group-has-[[data-slot=input]:placeholder-shown:not(:focus)]:!text-sm","group-has-[[data-slot=input][data-size=md]]:group-has-[[data-slot=input][data-empty]:not(:focus)]:top-5 group-has-[[data-slot=input][data-empty]:not(:focus)]:!text-sm","group-has-[[data-slot=input][aria-invalid=true]]:text-feedback-error-foreground","group-has-[[data-slot=input-start-icon]]:group-has-[[data-slot=input]:placeholder-shown:not(:focus)]:start-12","group-has-[[data-slot=input-start-icon]]:group-has-[[data-slot=input][data-empty]:not(:focus)]:start-12",e),"data-slot":"input-label"},o),{children:a}))}function uu(t){var r=t,{className:e,invalid:a=false}=r,o=n(r,["className","invalid"]);return jsx("span",s({className:l("-mt-1 text-xs",a?"text-feedback-error-foreground":"text-gray-foreground",e),"data-slot":"input-text"},o))}function vo(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsx("div",s({className:l("group/adornment relative flex w-full",e),"data-slot":"input-adornment"},a))}function Lt(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsx("span",s({className:l("pointer-events-none absolute start-4 top-1/2 z-10 flex -translate-y-1/2 items-center pr-3 text-gray-foreground",e),"data-slot":"input-start-icon"},a))}function Io(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsx("span",s({className:l("absolute end-4 top-1/2 z-10 flex -translate-y-1/2 items-center text-gray-foreground",e),"data-slot":"input-end-icon"},a))}var ht=cva(["shadow-xs w-full min-w-0 rounded-md border-2 border-gray-stroke-muted bg-surface-card px-4 py-3 text-gray-foreground outline-none transition-[color,box-shadow] selection:bg-secondary-background-soft-emphasis selection:text-gray-foreground placeholder:text-gray-foreground-emphasis hover:border-gray-stroke-emphasis hover:ring-[3px] hover:ring-state-focus disabled:cursor-default disabled:bg-gray-background-soft-muted disabled:placeholder:text-gray-foreground-muted disabled:hover:border-gray-stroke-muted disabled:hover:ring-0","focus-visible:border-gray-stroke-emphasis focus-visible:ring-[3px] focus-visible:ring-state-focus","aria-[invalid]:border-feedback-error-stroke aria-[invalid]:hover:ring-state-error aria-[invalid]:focus-visible:ring-state-error","aria-[invalid]:[&:not(:placeholder-shown):not(:disabled)]:border-feedback-error-stroke aria-[invalid]:[&:not(:placeholder-shown):not(:disabled)]:ring-[3px] aria-[invalid]:[&:not(:placeholder-shown):not(:disabled)]:ring-state-error","group-has-[[data-slot=input-label]]:py-3 group-has-[[data-slot=input-label]]:placeholder:text-transparent","[&:not(:placeholder-shown):not(:disabled)]:border-gray-stroke-emphasis [&:not(:placeholder-shown):not(:disabled)]:ring-[3px] [&:not(:placeholder-shown):not(:disabled)]:ring-state-focus","group-has-[[data-slot=input-end-icon]]/adornment:pr-10"],{variants:{size:{lg:["h-12 max-h-12 text-md","group-has-[[data-slot=input-label]]:h-14","group-has-[[data-slot=input-start-icon]]/adornment:pl-[48px]"],md:["h-10 max-h-10 text-sm","group-has-[[data-slot=input-label]]:h-11","group-has-[[data-slot=input-start-icon]]/adornment:pl-[44px]"]}},defaultVariants:{size:"lg"}}),fu={email:jsx(Mail,{})},cu={};function ca(e,a="lg"){return cloneElement(e,{size:a==="md"?su:ru,strokeWidth:lu})}function ms(d){var i=d,{className:e,invalid:a=false,size:o="lg",disabled:t}=i,r=n(i,["className","invalid","size","disabled"]);let[u,c]=useState(false);return jsxs(vo,{children:[jsx(Lt,{children:ca(jsx(Lock,{}),o)}),jsx("input",s({type:u?"text":"password","data-slot":"input","data-size":o,disabled:t,className:l(ht({size:o,className:e})),"aria-invalid":a||r["aria-invalid"]?true:void 0},r)),jsx(Io,{children:jsx("button",{type:"button",tabIndex:-1,disabled:t,onClick:()=>c(p=>!p),className:l("text-gray-foreground transition-colors hover:text-gray-foreground-emphasis disabled:cursor-default disabled:opacity-50"),"data-invalid":a,"aria-label":u?"Hide password":"Show password",children:ca(u?jsx(Hide,{}):jsx(Show,{}),o)})})]})}function gs(m){var x=m,{className:e,invalid:a=false,size:o="lg",iconLeft:t,min:r,value:d,defaultValue:i,onChange:u,disabled:c}=x,p=n(x,["className","invalid","size","iconLeft","min","value","defaultValue","onChange","disabled"]);let h=d!==void 0,[y,L]=useState(()=>i!=null?i:""),A=useRef(null),M=h?d===""?"":String(d):y,V=M===""?NaN:Number(M),k=r!==void 0&&Number(r)<0,I=useCallback(N=>{let W=r!==void 0&&Number(r)<0,q=N.replace(/[^\d.-]/g,"");W?q=(q.startsWith("-")?"-":"")+q.replace(/-/g,""):q=q.replace(/-/g,"");let Z=q.indexOf(".");return Z===-1?q:q.slice(0,Z+1)+q.slice(Z+1).replace(/\./g,"")},[r]),_=useCallback(N=>{let W=I(N.target.value);if(W===N.target.value)h?u==null||u(N):(L(W),u==null||u(f(s({},N),{target:f(s({},N.target),{value:W})})));else {let q=f(s({},N),{target:f(s({},N.target),{value:W})});h||L(W),u==null||u(q);}},[h,u,I]),E=r!==void 0?Number(r):void 0,b=useCallback(N=>{let q=(Number.isNaN(V)?E!=null?E:0:V)+N;return E!==void 0&&q<E?E:q},[V,E]),v=useCallback(N=>{let W=b(N),q=String(W),Z=A.current,we={type:"change",target:Z?{value:q,name:Z.name,id:Z.id,form:Z.form,type:Z.type}:{value:q},currentTarget:Z,bubbles:true,cancelable:false,nativeEvent:{}};h||L(q),u==null||u(we);},[b,h,u]);return jsxs(vo,{children:[t!=null&&jsx(Lt,{children:ca(t,o)}),jsx("input",s({ref:A,type:"text",inputMode:"decimal",pattern:k?"-?[0-9]*":"[0-9]*","data-slot":"input","data-size":o,"data-empty":M===""?"":void 0,min:r,value:M,onChange:_,disabled:c,className:l(ht({size:o}),"pr-12","[appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none",e),"aria-invalid":a||p["aria-invalid"]?true:void 0},p)),jsxs("div",{className:"absolute end-0 top-0 flex h-full flex-col items-center justify-center gap-0.5 px-4",children:[jsx("button",{type:"button",tabIndex:-1,disabled:c,onClick:()=>v(1),className:"flex items-center justify-center rounded-full !p-0.5 px-2 text-gray-foreground transition-colors disabled:cursor-default disabled:opacity-50 disabled:hover:bg-transparent","aria-label":"Increase value",children:jsx(ChevronDown,{className:"rotate-180",size:o==="md"?cs:fs,strokeWidth:3})}),jsx("button",{type:"button",tabIndex:-1,disabled:c,onClick:()=>v(-1),className:"flex items-center justify-center rounded-full !p-0.5 px-2 text-gray-foreground transition-colors disabled:cursor-default disabled:opacity-50 disabled:hover:bg-transparent","aria-label":"Decrease value",children:jsx(ChevronDown,{size:o==="md"?cs:fs,strokeWidth:3})})]})]})}function ko(u){var c=u,{className:e,type:a="text",size:o="lg",invalid:t=false,iconLeft:r,iconRight:d}=c,i=n(c,["className","type","size","invalid","iconLeft","iconRight"]);if(a==="numeric")return jsx(gs,s({className:e,size:o,invalid:t,iconLeft:r},i));if(a==="password")return jsx(ms,s({className:e,size:o,invalid:t},i));let p=r!=null?r:fu[a],m=(a==="text"||a==="email")&&t,x=m?jsx(TriangleWarning,{}):d!=null?d:cu[a];return p!=null||x!=null?jsxs("div",{className:"group/adornment relative flex w-full","data-slot":"input-adornment",children:[p!=null&&jsx(Lt,{children:ca(p,o)}),jsx("input",s({type:"text","data-slot":"input","data-size":o,className:l(ht({size:o,className:e})),"aria-invalid":t||i["aria-invalid"]?true:void 0},i)),x!=null&&jsx(Io,{className:m?"text-feedback-error-foreground":void 0,children:ca(x,o)})]}):jsx("input",s({type:"text","data-slot":"input","data-size":o,className:l(ht({size:o,className:e})),"aria-invalid":t||i["aria-invalid"]?true:void 0},i))}var xs=cva("inline-flex select-none items-center gap-3 text-sm font-medium leading-none disabled:cursor-default disabled:text-gray-foreground-muted peer-disabled:cursor-default peer-disabled:text-gray-foreground-muted group-data-[disabled]:pointer-events-none group-data-[disabled]:text-gray-foreground-muted whitespace-nowrap transition-all shrink-0 [&_svg]:shrink-0 hover:cursor-pointer focus:outline-0",{variants:{variant:{regular:"text-gray-foreground hover:text-gray-foreground-emphasis"},size:{sm:"text-xs",md:"text-sm",lg:"text-md"}},defaultVariants:{variant:"regular",size:"md"}});function gu(d){var i=d,{className:e,variant:a,size:o,block:t}=i,r=n(i,["className","variant","size","block"]);return jsx(Label.Root,s({"data-slot":"label",className:l(xs({size:o,variant:a}),e,t&&"flex flex-col items-start justify-center gap-4 whitespace-normal rounded-lg border border-gray-stroke-muted p-4 font-normal")},r))}function hu({width:e=171,height:a=36,className:o,svgClassName:t}){return jsxs("svg",{className:l("dark:brightness-0 dark:invert",o),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 171 36",width:e,height:a,children:[jsx("path",{fill:"#01CFB5",d:"M170.246 8.366 158.874 34.77c-.317.744-1.131 1.23-2.038 1.23h-3.47c-1.552 0-2.606-1.377-2.011-2.628l2.875-6.066-8.476-18.918c-.563-1.246.492-2.59 2.027-2.59h3.541c.929 0 1.755.513 2.061 1.278l4.688 11.864h.093l4.464-11.836c.295-.782 1.126-1.306 2.066-1.306h3.514c1.524 0 2.573 1.322 2.038 2.568Zm-24.869 8.623v10.42a.823.823 0 0 1-.82.826h-3.956a.818.818 0 0 1-.82-.825v-.667a11.207 11.207 0 0 1-5.699 1.541c-6.235 0-11.295-5.054-11.295-11.295 0-6.24 5.06-11.295 11.295-11.295 2.076 0 4.027.557 5.694 1.541v-.006a11.295 11.295 0 0 1 5.601 9.76Zm-5.984.005c0-2.94-2.377-5.327-5.306-5.327-2.929 0-5.306 2.388-5.306 5.327 0 2.94 2.377 5.323 5.306 5.323 2.929 0 5.306-2.383 5.306-5.323Zm5.793.4c.005-.099.005-.192.005-.29 0-.098-.005-.191-.005-.284v.573Zm-26.17-11.722h-4.355a.977.977 0 0 0-.978.978v11.902a3.416 3.416 0 0 1-6.831 0V6.65a.977.977 0 0 0-.978-.978h-4.355a.977.977 0 0 0-.978.978v11.902a3.417 3.417 0 0 1-5.83 2.415c-.618-.617-1-1.47-1-2.415V6.65a.977.977 0 0 0-.979-.978h-4.355a.977.977 0 0 0-.978.978v13.088h-.006c0 .781.115 1.535.334 2.256 1.098 3.623 4.765 6.29 9.13 6.29 2.739 0 5.209-1.054 6.935-2.732 1.689 1.83 4.197 2.994 7 2.994 4.53 0 8.295-3.043 9.06-7.043.093-.487.143-.99.143-1.497V6.65a.978.978 0 0 0-.979-.978Z"}),jsx("path",{fill:"#00205B",className:t,d:"M65.557 7.694c-.639.399-1.235.863-1.781 1.388.54-.536 1.137-1 1.781-1.388ZM82.727.831v26.617a.82.82 0 0 1-.82.825h-3.956a.77.77 0 0 1-.415-.12.81.81 0 0 1-.405-.71v-.755a11.018 11.018 0 0 1-5.689 1.574c-5.47 0-10.01-3.967-10.923-9.191-.016-.098-.038-.197-.054-.3-.011-.088-.028-.18-.039-.268 0-.028-.005-.055-.01-.088-.006-.06-.012-.12-.023-.18-.005-.076-.01-.159-.021-.24v-.028c-.006-.093-.017-.18-.017-.273a9.516 9.516 0 0 1 0-1.11l.017-.273v-.027l.032-.311c0-.033.006-.066.006-.099a.665.665 0 0 0 .01-.104c.012-.087.023-.18.039-.267.016-.11.033-.213.055-.323a11.09 11.09 0 0 1 3.17-6.005 11.548 11.548 0 0 1 1.88-1.48 9.127 9.127 0 0 1 1.31-.646c1.039-.42 2.186-.65 3.405-.683-.071 0-.142.011-.213.011a9.587 9.587 0 0 0-3.203.672c-.453.18-.896.4-1.311.65.393-.245.809-.459 1.23-.655-.006 0-.011.005-.017.005l.033-.016c-.011.005-.022.005-.038.01a8.79 8.79 0 0 1 .519-.229c-.039.017-.071.033-.104.05.038-.017.07-.033.11-.05.087-.033.174-.065.267-.098.087-.038.175-.066.268-.099.033-.016.065-.021.098-.032.055-.017.104-.039.158-.055.11-.033.214-.066.323-.098a9.584 9.584 0 0 1 .607-.153c.092-.022.196-.044.295-.066.098-.016.196-.033.295-.055l.295-.049h.005a2.82 2.82 0 0 0 .197-.027c.07-.005.131-.022.202-.022.087-.01.18-.016.268-.022.082-.01.164-.01.246-.016.07 0 .142-.011.213-.011.136-.006.273-.006.415-.006.093 0 .191.006.284.006h.12c.083 0 .159.005.236.01.098.006.196.012.295.023.087.005.174.01.256.022.05.005.099.01.142.016.088.01.175.022.257.038l.312.05c1.06.185 2.07.519 3.005.983v.115c-.038-.022-.076-.038-.12-.06.038.022.077.038.12.065v-.12c.268.131.525.273.77.426V.825a.827.827 0 0 1 .82-.825h3.957a.838.838 0 0 1 .836.83Zm-5.694 16.213a5.32 5.32 0 0 0-5.312-5.323c-2.929 0-5.306 2.388-5.306 5.323 0 2.94 2.377 5.322 5.306 5.322a5.316 5.316 0 0 0 5.312-5.322Zm-19.59.431c0 .41-.017.765-.066 1.132a.597.597 0 0 1-.596.524H42.284a.598.598 0 0 0-.574.77c.623 1.94 2.46 3.192 4.749 3.192 1.607 0 2.678-.574 3.656-1.749a.614.614 0 0 1 .47-.213h5.191c.448 0 .738.47.53.869-2.093 4.033-5.705 6.372-9.847 6.372-6.06 0-11.137-5.055-11.137-11.088 0-6.033 4.847-11.235 11.022-11.235h.006c6.284 0 11.093 4.94 11.093 11.426Zm-6.563-3.393c-.738-1.683-2.437-2.754-4.541-2.754-1.973 0-3.721 1.027-4.47 2.754a.594.594 0 0 0 .552.825h7.907a.593.593 0 0 0 .552-.825ZM23.13 5.803c-2.738 0-5.207 1.055-6.934 2.733-1.689-1.831-4.197-2.995-7-2.995-4.53 0-8.295 3.044-9.06 7.044-.088.486-.137.989-.137 1.497v13.35c0 .54.437.978.978.978h4.355a.977.977 0 0 0 .978-.978V15.618c0-1.65 1.328-3.263 2.962-3.476a3.398 3.398 0 0 1 2.87.973c.617.617 1 1.47 1 2.415v11.902c0 .54.436.978.977.978h4.355a.977.977 0 0 0 .979-.978V15.618c0-1.65 1.327-3.263 2.961-3.476a3.398 3.398 0 0 1 2.87.973c.617.617 1 1.47 1 2.415v11.902c0 .54.436.978.977.978h4.355a.977.977 0 0 0 .979-.978V14.344a7.75 7.75 0 0 0-.334-2.257c-1.098-3.623-4.77-6.284-9.13-6.284Z"})]})}function bu({width:e=60,height:a=67,className:o,svgClassName:t}){return jsx("svg",{className:l("dark:brightness-0 dark:invert",o),width:e,height:a,viewBox:"0 0 60 67",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{fill:"#00205B",className:t,d:"M42.33 10.8959C37.32 10.8959 32.8 12.8259 29.64 15.8959C26.55 12.5459 21.96 10.4159 16.83 10.4159C8.54 10.4159 1.65 15.9859 0.25 23.3059C0.09 24.1959 0 25.1159 0 26.0459V50.4759C0 51.4659 0.8 52.2659 1.79 52.2659H9.76C10.75 52.2659 11.55 51.4659 11.55 50.4759V28.8559C11.55 25.8359 13.98 22.8859 16.97 22.4959C19.03 22.2259 20.91 22.9659 22.22 24.2759C23.35 25.4059 24.05 26.9659 24.05 28.6959V50.4759C24.05 51.4659 24.85 52.2659 25.84 52.2659H33.81C34.8 52.2659 35.6 51.4659 35.6 50.4759V28.8559C35.6 25.8359 38.03 22.8859 41.02 22.4959C43.08 22.2259 44.96 22.9659 46.27 24.2759C47.4 25.4059 48.1 26.9659 48.1 28.6959V50.4759C48.1 51.4659 48.9 52.2659 49.89 52.2659H57.86C58.85 52.2659 59.65 51.4659 59.65 50.4759V26.5259C59.65 25.0959 59.44 23.7159 59.04 22.3959C57.03 15.7659 50.31 10.8959 42.33 10.8959Z"})})}var pa={tablet:"600px",mobile:"320px"};function bs(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsx("nav",s({role:"navigation","aria-label":"pagination",className:l("flex w-full items-center justify-between",e)},a))}function Ls(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsx("ul",s({className:l("flex flex-row items-center gap-2",e)},a))}function yo(r){var d=r,{count:e,label:a="itens",className:o}=d,t=n(d,["count","label","className"]);return jsx("p",f(s({className:l("text-xs font-medium text-gray-foreground-muted",o)},t),{children:a==="itens"?jsxs(Fragment,{children:["Mostrando"," ",jsx("span",{className:"font-semibold text-gray-foreground",children:e})," ",a]}):jsxs(Fragment,{children:[jsx("span",{className:"font-semibold text-gray-foreground",children:e})," ",a]})}))}function vt(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsx("li",s({className:l("",e)},a))}function Cs(p){var m=p,{className:e,isActive:a,iconLeft:o,iconRight:t,size:r="md",variant:d="regular",activeVariant:i,inactiveVariant:u}=m,c=n(m,["className","isActive","iconLeft","iconRight","size","variant","activeVariant","inactiveVariant"]);return jsx(Y,f(s({"aria-current":a?"page":void 0,variant:a&&i?i:!a&&u?u:a?d:`${d}-soft`,className:l("",e),size:r,iconLeft:o,iconRight:t},c),{children:c.children}))}function vs(r){var d=r,{className:e,size:a="md",variant:o="regular-basic"}=d,t=n(d,["className","size","variant"]);return jsx(Y,f(s({"aria-label":"Go to previous page",className:l("",e),iconLeft:jsx(ChevronLeftDuo,{}),variant:o,size:a},t),{children:t.children||"Anterior"}))}function Is(r){var d=r,{className:e,size:a="md",variant:o="regular-basic"}=d,t=n(d,["className","size","variant"]);return jsx(Y,f(s({"aria-label":"Go to next page",className:l("",e),variant:o,iconRight:jsx(ChevronRightDuo,{}),size:a},t),{children:t.children||"Pr\xF3ximo"}))}function ks(t){var r=t,{className:e,size:a="md"}=r,o=n(r,["className","size"]);return jsx("span",f(s({"aria-hidden":true,className:l("flex items-center justify-center",{sm:"h-8 w-8",md:"h-9 w-9",lg:"h-10 w-10"}[a],e)},o),{children:jsx(MoreHorizontal,{className:"h-4 w-4"})}))}function ys(e,a,o=2){let t=[];if(a<=o+2)for(let r=1;r<=a;r++)t.push(r);else {let r=Math.floor(o/2);if(e<=r+1){for(let d=1;d<=o+1;d++)t.push(d);o+1<a&&t.push(-1,a);}else if(e>=a-r){t.push(1),a-o>1&&t.push(-1);for(let d=a-o;d<=a;d++)t.push(d);}else {t.push(1,-1);for(let d=e-r;d<=e+r;d++)t.push(d);t.push(-1,a);}}return t}function Su({currentPage:e,totalPages:a,maxVisibleItems:o,onPageChange:t,itemsPerPage:r,totalItems:d,className:i,responsive:u=true,size:c="md"}){let[p,m]=useState(()=>typeof window=="undefined"?false:window.innerWidth<=parseInt(pa.tablet));useEffect(()=>{if(typeof window=="undefined"||!u)return;let L=parseInt(pa.tablet),A=()=>{m(window.innerWidth<=L);};return window.addEventListener("resize",A),A(),()=>window.removeEventListener("resize",A)},[u]);let x=typeof o=="number"?o:u&&p?0:2,h=u&&p,y=()=>ys(e,a,x);return jsxs(bs,{className:l("",i),children:[r!==void 0&&!h?jsx(yo,{count:r,label:"itens"}):jsx("div",{}),jsxs(Ls,{children:[jsx(vt,{children:jsx(vs,{onClick:()=>t(Math.max(1,e-1)),disabled:e===1,size:c})}),y().map((L,A)=>jsx(vt,{children:L===-1?jsx(ks,{size:c}):jsx(Cs,{onClick:()=>t(L),isActive:L===e,size:c,children:L})},A)),jsx(vt,{children:jsx(Is,{onClick:()=>t(Math.min(a,e+1)),disabled:e===a,size:c})})]}),d!==void 0&&!h?jsx(yo,{count:d,label:"total"}):jsx("div",{})]})}var Tu={sm:"size-2 group-data-[disabled]:group-data-[state=checked]:size-1.5",md:"size-2.5 group-data-[disabled]:group-data-[state=checked]:size-1.5",lg:"size-3.5 group-data-[disabled]:group-data-[state=checked]:size-2"},Ss=cva("inline-flex items-center justify-center place-items-center gap-2 rounded-pill whitespace-nowrap transition-all disabled:pointer-events-none shrink-0 [&_svg]:shrink-0 hover:cursor-pointer focus:outline-0 [grid-template-areas:'stack']",{variants:{variant:{regular:"bg-surface-card border-2 border-gray-stroke-muted enabled:hover:ring-4 data-[state=unchecked]:enabled:hover:ring-state-hover data-[state=unchecked]:enabled:hover:border-gray-stroke disabled:bg-gray-background-soft-muted data-[state=checked]:bg-primary-background-fill data-[state=checked]:border-primary-background-fill data-[state=checked]:enabled:hover:bg-primary-background-fill-emphasis data-[state=checked]:enabled:hover:border-primary-background-fill-emphasis data-[state=checked]:enabled:hover:ring-state-active disabled:data-[state=checked]:bg-gray-background-soft-muted disabled:data-[state=checked]:border-gray-stroke-muted data-[state=unchecked]:enabled:hover:border-gray-stroke data-[state=checked]:enabled:hover:bg-primary-background-fill-emphasis [&:disabled_svg]:fill-gray-background-fill-muted"},size:{sm:"size-4",md:"size-5",lg:"size-6"}},defaultVariants:{variant:"regular",size:"md"}});function Au(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsx(RadioGroup.Root,s({"data-slot":"radio-group",className:l("grid gap-3",e)},a))}function Du(r){var d=r,{className:e,size:a,variant:o}=d,t=n(d,["className","size","variant"]);return jsx(RadioGroup.Item,f(s({"data-slot":"radio-group-item",className:l("shadow-xs group peer aspect-square size-4 shrink-0 rounded-full outline-none transition-[color,box-shadow] disabled:cursor-not-allowed",Ss({size:a,variant:o}),e)},t),{children:jsx(RadioGroup.Indicator,{"data-slot":"radio-group-indicator",className:"relative flex items-center justify-center",children:jsx(Circle,{className:l("absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 fill-surface-card",Tu[a||"md"])})})}))}function ga(o){var t=o,{delayDuration:e=0}=t,a=n(t,["delayDuration"]);return jsx(Tooltip.Provider,s({"data-slot":"tooltip-provider",delayDuration:e},a))}function je(a){var e=n(a,[]);return jsx(Tooltip.Root,s({"data-slot":"tooltip"},e))}function Qe(a){var e=n(a,[]);return jsx(Tooltip.Trigger,s({"data-slot":"tooltip-trigger"},e))}function $e(r){var d=r,{className:e,sideOffset:a=0,children:o}=d,t=n(d,["className","sideOffset","children"]);return jsx(Tooltip.Portal,{children:jsxs(Tooltip.Content,f(s({"data-slot":"tooltip-content",sideOffset:a,className:l("origin-(--radix-tooltip-content-transform-origin) z-50 w-fit text-balance rounded-md bg-surface-elevated px-3 py-2 text-sm font-medium text-gray-foreground-emphasis animate-in fade-in-0 zoom-in-95 [filter:drop-shadow(0_0_1px_var(--color-drop-shadow-layer-a))_drop-shadow(0_2px_2px_var(--color-drop-shadow-layer-b))] data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e)},t),{children:[o,jsx(Tooltip.Arrow,{className:"z-50 size-3 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-surface-elevated fill-surface-elevated"})]}))})}function Ou(t){var r=t,{children:e,className:a}=r,o=n(r,["children","className"]);return jsx("div",{className:"w-full overflow-x-auto rounded-lg border border-gray-stroke-muted",children:jsx("table",f(s({className:l("w-full border-collapse text-left",a)},o),{children:e}))})}function qu(t){var r=t,{children:e,className:a}=r,o=n(r,["children","className"]);return jsx("thead",f(s({className:l("h-11 border-b border-gray-stroke-muted bg-surface-card",a)},o),{children:jsx("tr",{children:e})}))}function Vu(d){var i=d,{children:e,className:a,tooltip:o,highlight:t}=i,r=n(i,["children","className","tooltip","highlight"]);return jsx("th",f(s({className:l("text-ellipsis whitespace-nowrap px-5 text-sm font-semibold text-gray-foreground first:pr-0",a)},r),{children:jsxs("div",{className:"flex items-center gap-1.5",children:[jsx("span",{className:l(t&&"flex size-7 shrink-0 items-center justify-center rounded-full bg-primary-foreground-onfill"),children:e}),o&&jsx(ga,{children:jsxs(je,{children:[jsx(Qe,{asChild:true,children:jsx(Info,{className:"size-4"})}),jsx($e,{children:o})]})})]})}))}function zu(t){var r=t,{children:e,className:a}=r,o=n(r,["children","className"]);return jsx("tbody",f(s({className:l("bg-surface-card",a)},o),{children:e}))}function Uu(t){var r=t,{children:e,className:a}=r,o=n(r,["children","className"]);return jsx("tr",f(s({className:l("w-full border-t border-solid border-gray-stroke-muted first:border-t-0",a)},o),{children:e}))}function _u(t){var r=t,{children:e,className:a}=r,o=n(r,["children","className"]);return jsx("td",{className:"py-4 pl-5 align-middle",children:jsx("div",f(s({className:l("flex size-7 shrink-0 items-center justify-center overflow-hidden whitespace-nowrap rounded-full bg-primary-foreground text-sm font-semibold text-primary-foreground-onfill",a)},o),{children:e}))})}function Gu(t){var r=t,{children:e,className:a}=r,o=n(r,["children","className"]);return jsx("td",f(s({className:"px-5 py-4 align-middle"},o),{children:jsx("div",{className:l("flex items-center gap-5",a),children:jsx("div",{className:"flex shrink-0 items-center gap-5 pr-8",children:e})})}))}function Wu(t){var r=t,{children:e,className:a}=r,o=n(r,["children","className"]);return jsx("div",f(s({className:l("flex shrink-0 flex-col items-start whitespace-nowrap text-gray-foreground",a)},o),{children:e}))}function Xu(t){var r=t,{children:e,className:a}=r,o=n(r,["children","className"]);return jsx("span",f(s({className:l("shrink-0 overflow-hidden text-ellipsis font-sans text-xxs font-medium leading-xxs",a)},o),{children:e}))}function Ku(t){var r=t,{children:e,className:a}=r,o=n(r,["children","className"]);return jsx("span",f(s({className:l("shrink-0 overflow-hidden text-ellipsis font-sans text-sm font-semibold leading-5",a)},o),{children:e}))}function Zu(t){var r=t,{children:e,className:a}=r,o=n(r,["children","className"]);return jsx(xe,f(s({className:l("bg-gradient-to-r from-cm-24 to-secondary-24 text-primary-foreground",a)},o),{icon:jsx(CheckboxFill,{className:"text-primary-foreground"}),children:e}))}function ju(t){var r=t,{children:e,className:a}=r,o=n(r,["children","className"]);return jsx("td",f(s({className:"px-5 py-4 align-middle"},o),{children:jsx("div",{className:l("flex flex-col items-start gap-2",a),children:e})}))}function Qu(t){var r=t,{children:e,className:a}=r,o=n(r,["children","className"]);return jsx("p",f(s({className:l("relative shrink-0 overflow-hidden text-ellipsis whitespace-nowrap text-[10px] font-medium leading-[12px] text-gray-foreground",a)},o),{children:e}))}function $u(t){var r=t,{children:e,className:a}=r,o=n(r,["children","className"]);return jsx("div",f(s({className:l("avatar-group flex shrink-0 items-center gap-2",a)},o),{children:e}))}function Ju(i){var u=i,{src:e,alt:a,fallback:o="?",className:t,tooltip:r}=u,d=n(u,["src","alt","fallback","className","tooltip"]);let c=jsxs(jt,f(s({size:"sm",className:l("ring-2 ring-background",t)},d),{children:[jsx(Qt,{src:e,alt:a}),jsx($t,{children:o})]}));return r?jsx(ga,{children:jsxs(je,{children:[jsx(Qe,{asChild:true,children:c}),jsx($e,{children:r})]})}):c}function Yu(r){var d=r,{children:e,className:a,icon:o}=d,t=n(d,["children","className","icon"]);return jsx("td",f(s({className:"px-5 py-4 align-middle"},t),{children:jsx(xe,{variant:"regular-soft",className:a,icon:o,children:e})}))}function ef({className:e,percentage:a}){let o=t=>t>=0&&t<=49||t>=50&&t<=80||t>=81&&t<=100?"bg-primary-stroke":"bg-gray-100";return jsx("div",{className:l("relative h-0.5 w-full overflow-hidden rounded-pill bg-gray-100",e),children:jsx("div",{className:l("absolute inset-y-0 left-0 rounded-pill transition-all duration-300",o(a)),style:{width:`${a}%`}})})}function af(r){var d=r,{questions:e,answered:a,className:o}=d,t=n(d,["questions","answered","className"]);let i=a>0?a/e*100:0;return a===0?jsx("td",f(s({className:"px-5 py-4 align-middle"},t),{children:jsx("div",{className:l("flex min-w-[140px] flex-col items-start justify-center gap-2",o),children:jsxs("div",{className:"flex shrink-0 items-center justify-center gap-2 text-xs font-medium text-gray-foreground-muted",children:[jsx("div",{className:"flex size-4 items-center justify-center rounded-full bg-gray-background-soft",children:jsx(RemoveMinus,{className:"size-3 text-gray-foreground",strokeWidth:2.6})}),jsx("span",{className:"whitespace-nowrap font-medium text-gray-foreground-muted",children:"N\xE3o iniciado"})]})})})):jsx("td",f(s({className:"px-5 py-4 align-middle"},t),{children:jsxs("div",{className:l("flex min-w-[140px] flex-col items-start justify-center gap-2",o),children:[jsx("div",{className:"flex shrink-0 items-center gap-0.5 text-xs leading-4",children:jsxs("span",{className:"relative shrink-0 whitespace-nowrap font-medium text-gray-foreground-muted",children:[jsx("span",{className:"font-semibold text-gray-foreground",children:a})," ",a>1?"respondidas":"respondida"]})}),jsx(ef,{percentage:i})]})}))}var tf={notStarted:{icon:RemoveMinus,bgColor:"bg-gray-background-soft",iconColor:"text-gray-foreground",titleClassName:"font-medium text-gray-foreground-muted",title:()=>"N\xE3o iniciado",subtitle:()=>""},minNotReached:{icon:Warning,bgColor:"bg-feedback-warning-background-soft",iconColor:"text-feedback-warning-foreground",titleClassName:"font-medium text-gray-foreground-muted",title:()=>"M\xEDnimo n\xE3o atingido",subtitle:({remainingQuestions:e})=>e>1?`Faltam ${e} quest\xF5es`:`Falta ${e} quest\xE3o`},dominated:{icon:Check,bgColor:"bg-feedback-success-background-soft",iconColor:"text-feedback-success-foreground",titleClassName:"font-medium text-gray-foreground-muted",title:({progress:e})=>jsxs(Fragment,{children:[jsxs("span",{className:"font-semibold text-gray-foreground",children:[Math.round(e),"%"]})," ","de ",e>1?"acertos":"acerto"]}),subtitle:({correct:e,answered:a})=>`${e} de ${a} acertos`},notDominated:{icon:CloseMd,bgColor:"bg-feedback-error-background-soft",iconColor:"text-feedback-error-foreground",titleClassName:"font-medium text-gray-foreground-muted",title:({progress:e})=>jsxs(Fragment,{children:[jsxs("span",{className:"font-semibold text-gray-foreground",children:[Math.round(e),"%"]})," ","de ",e>1?"acertos":"acerto"]}),subtitle:({correct:e,answered:a})=>`${e} de ${a} acertos`}};function of(e,a,o){return [[e,"notStarted"],[a,"minNotReached"],[o>=80,"dominated"],[true,"notDominated"]].find(([r])=>r)[1]}function rf(d){var i=d,{answered:e,correct:a,minQuestions:o,className:t}=i,r=n(i,["answered","correct","minQuestions","className"]);let u=e>0?a/e*100:0,c=e===0,p=a<o,m=o-a,x=of(c,p,u),{icon:h,bgColor:y,iconColor:L,titleClassName:A,title:M,subtitle:V}=tf[x],k={progress:u,correct:a,answered:e,remainingQuestions:m};return jsx("td",f(s({className:"px-5 py-4 align-middle"},r),{children:jsx("div",{className:l("flex min-w-[140px] flex-col items-start justify-center gap-2",t),children:jsxs("div",{className:"flex shrink-0 items-center justify-center gap-2 text-xs font-medium text-gray-foreground-muted",children:[jsx("div",{className:l("flex size-4 items-center justify-center rounded-full",y),children:jsx(h,{className:l("size-3",L),strokeWidth:2.6})}),jsxs("div",{className:"flex flex-col items-start justify-center",children:[jsx("span",{className:l("whitespace-nowrap",A),children:M(k)}),jsx("span",{className:"whitespace-nowrap text-xxs font-semibold text-gray-foreground-muted",children:V(k)})]})]})})}))}function sf(r){var d=r,{children:e,className:a,onClick:o}=d,t=n(d,["children","className","onClick"]);return jsx("td",f(s({className:"px-5 py-4 align-middle"},t),{children:jsx(Y,{variant:"regular-soft",size:"sm",iconRight:jsx(ArrowRightMd,{className:"size-4"}),onClick:o,className:a,children:e})}))}var As=cva("transition-all duration-150",{variants:{size:{sm:"size-6",md:"size-7",lg:"size-8"}},defaultVariants:{size:"md"}}),df=cva("",{variants:{size:{sm:"size-7",md:"size-8",lg:"size-9"}},defaultVariants:{size:"md"}}),Ds=cva("inline-flex items-center justify-center",{variants:{size:{sm:"size-7",md:"size-8",lg:"size-9"},readOnly:{true:"cursor-default",false:"cursor-pointer"}},defaultVariants:{size:"md",readOnly:false}}),Rs=cva("flex w-full min-w-0 justify-between text-gray-foreground font-medium gap-2",{variants:{size:{sm:"text-xs",md:"text-xs",lg:"text-sm"}},defaultVariants:{size:"md"}});function nf({state:e,className:a}){let o=ve(),t=useRef(`rating-${Math.random().toString(36).slice(2)}`),r=o||t.current;return e==="full"?jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 24",fill:"none",className:a,children:jsx("path",{d:"M0.888855 9.61676C0.523397 9.27879 0.721914 8.66782 1.21623 8.60921L8.2204 7.77843C8.42186 7.75455 8.59685 7.62803 8.68182 7.44381L11.6361 1.03906C11.8446 0.587053 12.4872 0.586967 12.6957 1.03898L15.6499 7.44368C15.7349 7.6279 15.9087 7.75475 16.1102 7.77864L23.1148 8.60921C23.6091 8.66782 23.807 9.27897 23.4416 9.61694L18.2638 14.4061C18.1148 14.5438 18.0485 14.7488 18.0881 14.9478L19.4622 21.8658C19.5593 22.354 19.0396 22.7323 18.6053 22.4892L12.4507 19.0432C12.2737 18.9441 12.0586 18.9446 11.8816 19.0437L5.72641 22.4883C5.29205 22.7314 4.7715 22.354 4.86851 21.8658L6.2429 14.9483C6.28244 14.7493 6.21629 14.5438 6.06735 14.406L0.888855 9.61676Z",className:"fill-feedback-warning-background-soft stroke-feedback-warning-stroke hover:stroke-feedback-warning-stroke-emphasis",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})}):e==="half"?jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 24",fill:"none",className:a,children:[jsx("defs",{children:jsxs("linearGradient",{id:r,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[jsx("stop",{offset:"50%",className:"[stop-color:var(--color-feedback-warning-background-soft)]",stopOpacity:"1"}),jsx("stop",{offset:"50%",stopColor:"transparent",stopOpacity:"0"})]})}),jsx("path",{d:"M0.888855 9.61676C0.523397 9.27879 0.721914 8.66782 1.21623 8.60921L8.2204 7.77843C8.42186 7.75455 8.59685 7.62803 8.68182 7.44381L11.6361 1.03906C11.8446 0.587053 12.4872 0.586967 12.6957 1.03898L15.6499 7.44368C15.7349 7.6279 15.9087 7.75475 16.1102 7.77864L23.1148 8.60921C23.6091 8.66782 23.807 9.27897 23.4416 9.61694L18.2638 14.4061C18.1148 14.5438 18.0485 14.7488 18.0881 14.9478L19.4622 21.8658C19.5593 22.354 19.0396 22.7323 18.6053 22.4892L12.4507 19.0432C12.2737 18.9441 12.0586 18.9446 11.8816 19.0437L5.72641 22.4883C5.29205 22.7314 4.7715 22.354 4.86851 21.8658L6.2429 14.9483C6.28244 14.7493 6.21629 14.5438 6.06735 14.406L0.888855 9.61676Z",fill:`url(#${r})`,className:"stroke-feedback-warning-stroke hover:stroke-feedback-warning-stroke-emphasis",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})]}):jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 24",fill:"none",className:a,children:jsx("path",{d:"M0.888855 9.61676C0.523397 9.27879 0.721914 8.66782 1.21623 8.60921L8.2204 7.77843C8.42186 7.75455 8.59685 7.62803 8.68182 7.44381L11.6361 1.03906C11.8446 0.587053 12.4872 0.586967 12.6957 1.03898L15.6499 7.44368C15.7349 7.6279 15.9087 7.75475 16.1102 7.77864L23.1148 8.60921C23.6091 8.66782 23.807 9.27897 23.4416 9.61694L18.2638 14.4061C18.1148 14.5438 18.0485 14.7488 18.0881 14.9478L19.4622 21.8658C19.5593 22.354 19.0396 22.7323 18.6053 22.4892L12.4507 19.0432C12.2737 18.9441 12.0586 18.9446 11.8816 19.0437L5.72641 22.4883C5.29205 22.7314 4.7715 22.354 4.86851 21.8658L6.2429 14.9483C6.28244 14.7493 6.21629 14.5438 6.06735 14.406L0.888855 9.61676Z",fill:"transparent",className:"stroke-gray-stroke-emphasis",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})})}function uf(e,a){let o=e+1;return a>=o?"full":a>=o-.5?"half":"empty"}function ff({value:e,onChange:a,maxStars:o=5,readOnly:t=false,labels:r,size:d="md",className:i,classNameContainer:u,classNameLabels:c}){let[p,m]=useState(e!=null?e:0),[x,h]=useState(null),y=e!==void 0,L=y?e:p,A=k=>{if(t)return;let I=k+1;y||m(I),a==null||a(I);},M=k=>{t||h(k);},V=()=>{t||h(null);};return jsxs("div",{"data-slot":"rating",className:l("inline-flex w-fit flex-col gap-2",i),children:[jsx("div",{className:l("inline-flex flex-row gap-1",u),onMouseLeave:V,children:Array.from({length:o},(k,I)=>{let _=x!==null,E=_&&I<=x,b=x===I,v=_?E?"full":"empty":uf(I,L);return jsx("button",{type:"button",disabled:t,onClick:()=>A(I),onMouseEnter:()=>M(I),className:Ds({size:d,readOnly:t}),"aria-label":`Rate ${I+1} out of ${o}`,children:jsx(nf,{state:v,className:b&&!t?df({size:d}):As({size:d})})},I)})}),r&&r.length===2&&jsxs("div",{className:l(Rs({size:d}),c),children:[jsx("span",{className:"truncate",children:r[0]}),jsx("span",{className:"truncate text-right",children:r[1]})]})]})}function Po(t){var r=t,{className:e,children:a}=r,o=n(r,["className","children"]);return jsxs(ScrollArea.Root,f(s({"data-slot":"scroll-area",className:l("relative",e)},o),{children:[jsx(ScrollArea.Viewport,{"data-slot":"scroll-area-viewport",className:"size-full rounded-[inherit]",children:a}),jsx(Ua,{}),jsx(Ua,{orientation:"horizontal"}),jsx(ScrollArea.Corner,{})]}))}function Ua(t){var r=t,{className:e,orientation:a="vertical"}=r,o=n(r,["className","orientation"]);return jsx(ScrollArea.ScrollAreaScrollbar,f(s({"data-slot":"scroll-area-scrollbar",orientation:a,className:l("flex touch-none select-none",a==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-px",a==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-px",e)},o),{children:jsx(ScrollArea.ScrollAreaThumb,{"data-slot":"scroll-area-thumb",className:"relative flex-1 rounded-full bg-gray-stroke-muted"})}))}var Pt=createContext({invalid:false,size:"lg"});function Lf(t){var r=t,{invalid:e=false,size:a="lg"}=r,o=n(r,["invalid","size"]);return jsx(Pt.Provider,{value:useMemo(()=>({invalid:e,size:a}),[e,a]),children:jsx(Select.Root,s({"data-slot":"select"},o))})}function Cf(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsx("div",s({className:l("group relative flex flex-col gap-2",e),"data-slot":"select-wrapper"},a))}function vf(t){var r=t,{className:e,children:a}=r,o=n(r,["className","children"]);return jsx("label",f(s({className:l("pointer-events-none absolute start-3 top-0 origin-left -translate-y-1/2 bg-surface-card px-1 text-xs font-medium text-gray-foreground transition-all duration-200 ease-out","group-has-[[data-slot=select-trigger][data-placeholder]:not([data-state=open])]:start-4 group-has-[[data-slot=select-trigger][data-placeholder]:not([data-state=open])]:top-6 group-has-[[data-slot=select-trigger][data-placeholder]:not([data-state=open])]:bg-transparent group-has-[[data-slot=select-trigger][data-placeholder]:not([data-state=open])]:px-0 group-has-[[data-slot=select-trigger][data-placeholder]:not([data-state=open])]:text-md group-has-[[data-slot=select-trigger][data-placeholder]:not([data-state=open])]:font-normal group-has-[[data-slot=select-trigger][data-placeholder]:not([data-state=open])]:text-gray-foreground","group-has-[[data-slot=select-trigger][data-size=md]]:group-has-[[data-slot=select-trigger][data-placeholder]:not([data-state=open])]:top-5 group-has-[[data-slot=select-trigger][data-size=md]]:group-has-[[data-slot=select-trigger][data-placeholder]:not([data-state=open])]:!text-sm",e),"data-slot":"select-label"},o),{children:a}))}function If(a){var e=n(a,[]);return jsx(Select.Group,s({"data-slot":"select-group"},e))}function kf(a){var e=n(a,[]);return jsx(Select.Value,s({"data-slot":"select-value"},e))}var yf=cva(["shadow-xs flex w-full items-center justify-between gap-2 rounded-md border-2 border-gray-stroke-muted bg-surface-card px-4 py-3 text-left text-gray-foreground outline-none transition-[color,box-shadow] hover:border-gray-stroke-emphasis hover:ring-[3px] hover:ring-state-focus disabled:cursor-default disabled:bg-gray-background-soft-muted disabled:hover:border-gray-stroke-muted disabled:hover:ring-0 aria-[invalid]:border-feedback-error-stroke aria-[invalid]:hover:ring-[3px] aria-[invalid]:hover:ring-state-error data-[placeholder]:text-gray-foreground-emphasis *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 disabled:data-[placeholder]:text-gray-foreground-muted [&>span]:line-clamp-1 [&_svg]:pointer-events-none [&_svg]:shrink-0"],{variants:{size:{lg:["h-12 max-h-12 text-md [&_svg]:size-6","group-has-[[data-slot=select-label]]:h-14"],md:["h-10 max-h-10 text-sm [&_svg]:size-5","group-has-[[data-slot=select-label]]:h-11"]}},defaultVariants:{size:"lg"}}),Sf=cva("data-disabled:pointer-events-none relative flex w-full cursor-default select-none items-center rounded px-2 font-medium text-gray-foreground outline-none hover:cursor-pointer hover:bg-secondary-background-soft-emphasis gap-3",{variants:{size:{lg:"py-2 text-sm [&_svg]:size-5",md:"py-2 text-sm [&_svg]:size-5"}},defaultVariants:{size:"lg"}});function Pf(t){var r=t,{className:e,children:a}=r,o=n(r,["className","children"]);let{invalid:d,size:i}=useContext(Pt);return jsxs(Select.Trigger,f(s({className:l(yf({size:i}),!d&&"[&:not([data-placeholder]):not(:disabled)]:border-gray-stroke-emphasis","group-has-[[data-slot=select-label]]:py-3 group-has-[[data-slot=select-label]]:data-[placeholder]:text-transparent",e),"data-slot":"select-trigger","data-size":i,"aria-invalid":d?"true":void 0},o),{children:[a,jsx(Select.Icon,{asChild:true,children:jsx(ChevronDown,{className:l("flex-shrink-0 text-gray-foreground"),strokeWidth:1.6})})]}))}function wf(r){var d=r,{className:e,children:a,position:o="popper"}=d,t=n(d,["className","children","position"]);return jsx(Select.Portal,{children:jsxs(Select.Content,f(s({className:l("relative z-50 max-h-[min(24rem,var(--radix-select-content-available-height))] min-w-32 overflow-hidden rounded-md border border-gray-stroke-muted bg-surface-elevated text-gray-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 [&_[role=group]]:py-1",o==="popper"&&"w-full min-w-[var(--radix-select-trigger-width)] data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),"data-slot":"select-content",position:o},t),{children:[jsx(Ns,{}),jsx(Select.Viewport,{className:l("p-2",o==="popper"&&"h-[var(--radix-select-trigger-height)]"),children:a}),jsx(Fs,{})]}))})}function Tf(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsx(Select.Label,s({className:l("px-2 py-2 text-xs font-medium text-gray-foreground-muted",e),"data-slot":"select-header"},a))}function Af(r){var d=r,{className:e,children:a,icon:o}=d,t=n(d,["className","children","icon"]);let{size:i}=useContext(Pt);return jsxs(Select.Item,f(s({className:l(Sf({size:i}),e),"data-slot":"select-item"},t),{children:[o&&jsx("span",{className:"flex shrink-0 items-center justify-center text-gray-foreground",children:isValidElement(o)?cloneElement(o,{strokeWidth:1.6}):o}),jsx(Select.ItemText,{children:a}),jsx("span",{className:"absolute end-2 flex size-3.5 items-center justify-center",children:jsx(Select.ItemIndicator,{children:jsx(Check,{strokeWidth:1.6,className:"text-secondary-foreground"})})})]}))}function Df(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsx(Select.Separator,s({className:l("-mx-1 my-1 h-px bg-gray-stroke-muted",e),"data-slot":"select-separator"},a))}function Ns(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsx(Select.ScrollUpButton,f(s({className:l("flex cursor-default items-center justify-center py-1",e),"data-slot":"select-scroll-up-button"},a),{children:jsx(ChevronUp,{size:16,strokeWidth:1.6,className:"text-gray-foreground"})}))}function Fs(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsx(Select.ScrollDownButton,f(s({className:l("flex cursor-default items-center justify-center py-1",e),"data-slot":"select-scroll-down-button"},a),{children:jsx(ChevronDown,{size:24,strokeWidth:1.6,className:"text-gray-foreground"})}))}function Rf(o){var t=o,{className:e}=t,a=n(t,["className"]);let{invalid:r}=useContext(Pt);return jsx("span",s({className:l("-mt-1 text-xs",r?"text-feedback-error-foreground":"text-gray-foreground",e),"data-slot":"select-text"},a))}var Es=createContext(null);function Ef(r){var d=r,{className:e,size:a="md",children:o}=d,t=n(d,["className","size","children"]);return jsx(Es.Provider,{value:useMemo(()=>({size:a}),[a]),children:jsx(Tabs.Root,f(s({"data-slot":"tabs",className:l("flex flex-col gap-2",e)},t),{children:o}))})}function Hf(t){var r=t,{className:e,containerClassName:a}=r,o=n(r,["className","containerClassName"]);return jsxs(Po,{className:l("[&_[data-slot=scroll-area-scrollbar][data-orientation=horizontal]]:h-1",a),children:[jsx(Tabs.List,s({"data-slot":"tabs-list",className:l("inline-flex w-fit items-center justify-center rounded-md bg-gray-background-soft p-0.5",e)},o)),jsx(Ua,{orientation:"horizontal"})]})}var Hs=cva("shadow-transparent data-[state=active]:shadow-level-1 group inline-flex items-center justify-center gap-2.5 whitespace-nowrap rounded-[6px] font-medium text-gray-foreground outline-none data-[state=active]:bg-surface-card data-[state=active]:text-primary-foreground [&_svg]:shrink-0 [&_svg]:text-inherit disabled:text-gray-foreground-muted disabled:pointer-events-none",{variants:{size:{sm:"max-h-7 px-3 py-1.5 text-xs [&_svg]:size-4",md:"max-h-9 px-4 py-2 text-sm [&_svg]:size-5",lg:"max-h-11 px-4 py-2.5 text-md [&_svg]:size-6"}},defaultVariants:{size:"md"}});function Of(i){var u=i,{className:e,icon:a,badge:o,badgeVariant:t,children:r}=u,d=n(u,["className","icon","badge","badgeVariant","children"]);var x;let c=h=>h!=null&&h!==0&&h!==""&&h!=="0"&&!d.disabled,p=useContext(Es),m=(x=p==null?void 0:p.size)!=null?x:"md";return jsxs(Tabs.Trigger,f(s({"data-slot":"tabs-trigger",className:l(Hs({size:m,className:e}))},d),{children:[a,r&&jsxs("span",{className:"inline-grid [grid-template-areas:'stack']",children:[jsx("span",{"aria-hidden":"true",className:"invisible font-semibold [grid-area:stack]",children:r}),jsx("span",{className:"font-medium [grid-area:stack] group-data-[state=active]:font-semibold",children:r})]}),c(o)&&jsx(_e,{size:m,variant:t,children:String(o)})]}))}function qf(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsx(Tabs.Content,s({"data-slot":"tabs-content",className:l("flex-1 outline-none",e)},a))}var Os=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Vf=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,o,t)=>t?t.toUpperCase():o.toLowerCase()),Do=e=>{let a=Vf(e);return a.charAt(0).toUpperCase()+a.slice(1)},Tt=(...e)=>e.filter((a,o,t)=>!!a&&a.trim()!==""&&t.indexOf(a)===o).join(" ").trim(),qs=e=>{for(let a in e)if(a.startsWith("aria-")||a==="role"||a==="title")return true};var Vs={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var Us=forwardRef((p,c)=>{var m=p,{color:e="currentColor",size:a=24,strokeWidth:o=2,absoluteStrokeWidth:t,className:r="",children:d,iconNode:i}=m,u=n(m,["color","size","strokeWidth","absoluteStrokeWidth","className","children","iconNode"]);return createElement("svg",s(s(f(s({ref:c},Vs),{width:a,height:a,stroke:e,strokeWidth:t?Number(o)*24/Number(a):o,className:Tt("lucide",r)}),!d&&!qs(u)&&{"aria-hidden":"true"}),u),[...i.map(([x,h])=>createElement(x,h)),...Array.isArray(d)?d:[d]])});var _s=(e,a)=>{let o=forwardRef((i,d)=>{var u=i,{className:t}=u,r=n(u,["className"]);return createElement(Us,s({ref:d,iconNode:a,className:Tt(`lucide-${Os(Do(e))}`,`lucide-${e}`,t)},r))});return o.displayName=Do(e),o};var Gf=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],_a=_s("x",Gf);function Mo(a){var e=n(a,[]);return jsx(Dialog.Root,s({"data-slot":"sheet"},e))}function Wf(a){var e=n(a,[]);return jsx(Dialog.Trigger,s({"data-slot":"sheet-trigger"},e))}function Xf(a){var e=n(a,[]);return jsx(Dialog.Close,s({"data-slot":"sheet-close"},e))}function Kf(a){var e=n(a,[]);return jsx(Dialog.Portal,s({"data-slot":"sheet-portal"},e))}function Zf(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsx(Dialog.Overlay,s({"data-slot":"sheet-overlay",className:l("bg-black/50 fixed inset-0 z-50 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e)},a))}function Bo(r){var d=r,{className:e,children:a,side:o="right"}=d,t=n(d,["className","children","side"]);return jsxs(Kf,{children:[jsx(Zf,{}),jsxs(Dialog.Content,f(s({"data-slot":"sheet-content",className:l("fixed z-50 flex flex-col gap-4 bg-background shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",o==="right"&&"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm",o==="left"&&"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",o==="top"&&"inset-x-0 top-0 h-auto border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",o==="bottom"&&"inset-x-0 bottom-0 h-auto border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",e)},t),{children:[a,jsxs(Dialog.Close,{className:"rounded-xs focus:outline-hidden absolute right-4 top-4 opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[jsx(_a,{className:"size-4"}),jsx("span",{className:"sr-only",children:"Close"})]})]}))]})}function jf(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsx("div",s({"data-slot":"sheet-header",className:l("flex flex-col gap-1.5 p-4",e)},a))}function Qf(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsx("div",s({"data-slot":"sheet-footer",className:l("mt-auto flex flex-col gap-2 p-4",e)},a))}function $f(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsx(Dialog.Title,s({"data-slot":"sheet-title",className:l("font-semibold text-foreground",e)},a))}function Jf(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsx(Dialog.Description,s({"data-slot":"sheet-description",className:l("text-muted-foreground text-sm",e)},a))}function At(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsx("div",s({"data-slot":"skeleton",className:l("animate-pulse rounded-md bg-gray-150",e)},a))}var lc="sidebar_state",dc=3600*24*7,nc="b",Ks=createContext(null);function ha(){let e=useContext(Ks);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}function ic(i){var u=i,{defaultOpen:e=true,open:a,onOpenChange:o,className:t,children:r}=u,d=n(u,["defaultOpen","open","onOpenChange","className","children"]);let c=Ha(),[p,m]=useState(false),[x,h]=useState(e),y=a!=null?a:x,L=useCallback(k=>{let I=typeof k=="function"?k(y):k;o?o(I):h(I),document.cookie=`${lc}=${I}; path=/; max-age=${dc}`;},[o,y]),A=useCallback(()=>c?m(k=>!k):L(k=>!k),[c,L,m]);useEffect(()=>{let k=I=>{I.key===nc&&(I.metaKey||I.ctrlKey)&&(I.preventDefault(),A());};return window.addEventListener("keydown",k),()=>window.removeEventListener("keydown",k)},[A]);let M=y?"expanded":"collapsed",V=useMemo(()=>({state:M,open:y,setOpen:L,isMobile:c,openMobile:p,setOpenMobile:m,toggleSidebar:A}),[M,y,L,c,p,m,A]);return jsx(Ks.Provider,{value:V,children:jsx(ga,{delayDuration:0,children:jsx("div",f(s({"data-slot":"sidebar-wrapper",className:l("group/sidebar-wrapper has-data-[variant=inset]:bg-surface-navigation flex min-h-svh w-full",t)},d),{children:r}))})})}function uc(u){var c=u,{side:e="left",variant:a="sidebar",collapsible:o="offcanvas",className:t,containerClassName:r,children:d}=c,i=n(c,["side","variant","collapsible","className","containerClassName","children"]);let{isMobile:p,state:m,openMobile:x,setOpenMobile:h}=ha();return o==="none"?jsx("div",f(s({"data-slot":"sidebar",className:l("flex h-full w-[var(--sidebar-width)] flex-col bg-surface-navigation text-gray-foreground",t)},i),{children:d})):p?jsx(Mo,f(s({open:x,onOpenChange:h},i),{children:jsx(Bo,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:l("w-[var(--sidebar-width-mobile)] bg-surface-navigation p-0 text-gray-foreground [&>button]:hidden",t),side:e,children:jsx("div",{className:"flex h-full w-full flex-col",children:d})})})):jsxs("div",{className:l("group peer hidden text-gray-foreground md:block",t),"data-state":m,"data-collapsible":m==="collapsed"?o:"","data-variant":a,"data-side":e,"data-slot":"sidebar",children:[jsx("div",{"data-slot":"sidebar-gap",className:l("relative w-[var(--sidebar-width)] bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",a==="floating"||a==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-[var(--sidebar-width-icon)]")}),jsx("div",f(s({"data-slot":"sidebar-container",className:l("fixed inset-y-0 z-10 hidden h-svh w-[var(--sidebar-width)] border-gray-stroke-muted transition-[left,right,width] duration-200 ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",a==="floating"||a==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-[var(--sidebar-width-icon)] group-data-[side=left]:border-r group-data-[side=right]:border-l",r)},i),{children:jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"flex h-full w-full flex-col bg-surface-navigation group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-gray-stroke-muted group-data-[variant=floating]:shadow-sm",children:d})}))]})}function fc(c){var p=c,{className:e,onClick:a,sizeIcon:o="size-5",icon:t=jsx(HamburgerMd,{className:o}),showTooltip:r=false,tooltipContent:d,enableHover:i=false}=p,u=n(p,["className","onClick","sizeIcon","icon","showTooltip","tooltipContent","enableHover"]);let{toggleSidebar:m,open:x,isMobile:h}=ha(),[y,L]=useState(false),M=d||{open:"Esconder",closed:"Mostrar"},V=()=>i&&y?x?jsx(ChevronLeftMd,{className:o}):jsx(ChevronRightMd,{className:o}):t,k=jsxs("button",f(s({"data-sidebar":"trigger","data-slot":"sidebar-trigger",className:l("flex min-h-8 min-w-8 items-center justify-center rounded-full bg-surface-elevated text-gray-foreground transition-all duration-200 hover:shadow-[0px_0px_2px_0px_rgba(24,26,30,0.16),0px_2px_4px_0px_rgba(24,26,30,0.08)] [&>svg]:text-gray-foreground",e),onClick:I=>{a==null||a(I),m();},onMouseEnter:!h&&i?()=>L(true):void 0,onMouseLeave:!h&&i?()=>L(false):void 0},u),{children:[V(),jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]}));return !r||h?k:jsxs(je,{children:[jsx(Qe,{asChild:true,children:k}),jsx($e,{side:"right",align:"center",children:x?M.open:M.closed})]})}function cc(o){var t=o,{className:e}=t,a=n(t,["className"]);let{toggleSidebar:r}=ha();return jsx("button",s({"data-sidebar":"rail","data-slot":"sidebar-rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:r,title:"Toggle Sidebar",className:l("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-gray-stroke-muted group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full hover:group-data-[collapsible=offcanvas]:bg-surface-navigation","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e)},a))}function pc(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsx("main",s({"data-slot":"sidebar-inset",className:l("relative flex w-full flex-1 flex-col bg-surface-navigation","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm",e)},a))}function mc(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsx(ko,s({"data-slot":"sidebar-input","data-sidebar":"input",className:l("bg-bg-surface-navigation h-8 w-full shadow-none",e)},a))}function gc(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsx("div",s({"data-slot":"sidebar-header","data-sidebar":"header",className:l("flex flex-col gap-0.5 px-4 pt-3",e)},a))}function xc(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsx("div",s({"data-slot":"sidebar-footer","data-sidebar":"footer",className:l("flex flex-col gap-0.5 px-4 pb-3 [[data-state=collapsed]_&]:px-2",e)},a))}function hc(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsx(sa,s({"data-slot":"sidebar-separator","data-sidebar":"separator",className:l("mx-2 w-auto bg-gray-stroke-muted",e)},a))}function bc(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsx("div",s({"data-slot":"sidebar-content","data-sidebar":"content",className:l("flex min-h-0 flex-1 flex-col gap-0.5 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e)},a))}function Lc(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsx("div",s({"data-slot":"sidebar-group","data-sidebar":"group",className:l("relative flex w-full min-w-0 flex-col p-2 px-4",e)},a))}function Cc(t){var r=t,{className:e,asChild:a=false}=r,o=n(r,["className","asChild"]);let d=a?Slot.Slot:"div";return jsx(d,s({"data-slot":"sidebar-group-label","data-sidebar":"group-label",className:l("outline-hidden flex h-12 shrink-0 items-center whitespace-nowrap rounded-md px-2 text-xs font-semibold uppercase text-gray-foreground-muted ring-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:mt-0 group-data-[collapsible=icon]:hidden",e)},o))}function vc(t){var r=t,{className:e,asChild:a=false}=r,o=n(r,["className","asChild"]);let d=a?Slot.Slot:"button";return jsx(d,s({"data-slot":"sidebar-group-action","data-sidebar":"group-action",className:l("outline-hidden absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-gray-foreground ring-ring transition-transform hover:bg-secondary-background-soft-emphasis focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 md:after:hidden","group-data-[collapsible=icon]:hidden",e)},o))}function Ic(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsx("div",s({"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:l("w-full text-sm",e)},a))}function kc(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsx("ul",s({"data-slot":"sidebar-menu","data-sidebar":"menu",className:l("flex w-full min-w-0 flex-col gap-1",e)},a))}function yc(r){var d=r,{className:e,isActive:a,children:o}=d,t=n(d,["className","isActive","children"]);return jsxs("li",f(s({"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:l("group/menu-item relative hover:cursor-pointer",e)},t),{children:[a&&jsx("span",{className:"absolute -left-4 top-0 h-full w-0.5 bg-secondary-stroke-emphasis","aria-hidden":"true"}),o]}))}var Sc=cva("peer/menu-button font-medium flex w-full items-center gap-2.5 overflow-hidden rounded-md p-[.55rem] text-left text-sm outline-hidden ring-ring transition-[width,height,padding] hover:bg-secondary-background-soft-emphasis focus-visible:ring-2 active:text-secondary-foreground active:font-semibold disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:text-secondary-foreground data-[active=true]:font-semibold data-[active=true]:hover:bg-secondary-background-soft-emphasis data-[active=true]:hover:text-secondary-foreground group-data-[collapsible=icon]:size-10! group-data-[collapsible=icon]:p-2.5! [&>span:last-child]:truncate [&>svg] [&>svg]:size-5 [&>svg]:shrink-0 mx-auto",{variants:{variant:{default:"hover:bg-secondary-background-soft-emphasis",section:"[[data-state=collapsed]_&]:p-[5px]",outline:"bg-surface-navigation shadow-[0_0_0_1px_hsl(var(--color-border))] hover:bg-secondary-background-soft-emphasis hover:shadow-[0_0_0_1px_hsl(var(--secondary))]"},size:{sm:"h-8 text-xs",md:"h-10 text-sm",lg:"h-12 text-md group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"md"}});function Pc(u){var c=u,{asChild:e=false,isActive:a=false,variant:o="default",size:t="md",tooltip:r,className:d}=c,i=n(c,["asChild","isActive","variant","size","tooltip","className"]);let p=e?Slot.Slot:"button",{isMobile:m,state:x}=ha(),h=jsx(p,s({"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":t,"data-active":a,className:l(Sc({variant:o,size:t}),d)},i));return r?(typeof r=="string"&&(r={children:r}),jsxs(je,{children:[jsx(Qe,{asChild:true,children:h}),jsx($e,s({side:"right",align:"center",hidden:x!=="collapsed"||m},r))]})):h}function wc(r){var d=r,{className:e,asChild:a=false,showOnHover:o=false}=d,t=n(d,["className","asChild","showOnHover"]);let i=a?Slot.Slot:"button";return jsx(i,s({"data-slot":"sidebar-menu-action","data-sidebar":"menu-action",className:l("outline-hidden absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-gray-foreground ring-ring transition-transform hover:bg-secondary-background-soft-emphasis focus-visible:ring-2 peer-hover/menu-button:text-secondary-stroke-emphasis [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 md:after:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",o&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-secondary md:opacity-0",e)},t))}function Tc(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsx("div",s({"data-slot":"sidebar-menu-badge","data-sidebar":"menu-badge",className:l("pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-gray-foreground","peer-hover/menu-button:text-secondary peer-data-[active=true]/menu-button:text-secondary","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e)},a))}function Ac(t){var r=t,{className:e,showIcon:a=false}=r,o=n(r,["className","showIcon"]);let d=useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return jsxs("div",f(s({"data-slot":"sidebar-menu-skeleton","data-sidebar":"menu-skeleton",className:l("flex h-8 items-center gap-0.5 rounded-md px-2",e)},o),{children:[a&&jsx(At,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),jsx(At,{className:"max-w-(--skeleton-width) h-4 flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":d}})]}))}function Dc(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsx("ul",s({"data-slot":"sidebar-menu-sub","data-sidebar":"menu-sub",className:l("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-gray-stroke-muted px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e)},a))}function Rc(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsx("li",s({"data-slot":"sidebar-menu-sub-item","data-sidebar":"menu-sub-item",className:l("group/menu-sub-item relative",e)},a))}function Mc({icon:e,title:a}){let{state:o,isMobile:t}=ha();return jsxs(Fragment,{children:[e,jsx("span",{className:l("whitespace-nowrap",o==="collapsed"&&"opacity-0",t&&"opacity-100"),children:a})]})}function Bc(){return jsx("div",{className:"ml-auto transition-transform duration-200 group-data-[state=open]/collapsible:rotate-90",children:jsx(ChevronRightMd,{size:20})})}function Nc(d){var i=d,{asChild:e=false,size:a="md",isActive:o=false,className:t}=i,r=n(i,["asChild","size","isActive","className"]);let u=e?Slot.Slot:"a";return jsx(u,s({"data-slot":"sidebar-menu-sub-button","data-sidebar":"menu-sub-button","data-size":a,"data-active":o,className:l("outline-hidden flex h-9 min-w-0 -translate-x-px items-center gap-0.5 overflow-hidden rounded-md px-2 font-medium text-gray-foreground ring-ring hover:bg-secondary-background-soft-emphasis focus-visible:ring-2 active:font-semibold active:text-secondary-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-gray-foreground","data-[active=true]:font-semibold data-[active=true]:text-secondary-foreground",a==="sm"&&"text-xs",a==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",t)},r))}var Oc={sm:"size-2",md:"size-3",lg:"size-4"},js={sm:"[&_svg]:size-2",md:"[&_svg]:size-3",lg:"[&_svg]:size-3.5"},qc={sm:"data-[state=checked]:translate-x-[11px] data-[state=checked]:rtl:-translate-x-[11px] data-[state=checked]:data-[disabled]:translate-x-[10px] data-[state=checked]:data-[disabled]:rtl:-translate-x-[10px]",md:"data-[state=checked]:translate-x-[15px] data-[state=checked]:rtl:-translate-x-[15px] data-[state=checked]:data-[disabled]:translate-x-[14px] data-[state=checked]:data-[disabled]:rtl:-translate-x-[14px]",lg:"data-[state=checked]:translate-x-[19px] data-[state=checked]:rtl:-translate-x-[19px] data-[state=checked]:data-[disabled]:translate-x-[18px] data-[state=checked]:data-[disabled]:rtl:-translate-x-[18px]"},Qs=cva("peer inline-flex shrink-0 items-center rounded-pill outline-none transition-all disabled:pointer-events-none focus:outline-0",{variants:{variant:{regular:"border-2 border-gray-stroke-muted data-[disabled]:cursor-default data-[disabled]:!bg-gray-background-soft-muted data-[state=checked]:bg-primary-background-fill data-[state=unchecked]:bg-surface-card data-[state=checked]:border-transparent data-[disabled]:data-[state=checked]:bg-gray-background-soft-muted data-[disabled]:data-[state=checked]:border-gray-stroke-muted enabled:hover:ring-4 data-[state=unchecked]:enabled:hover:ring-state-hover data-[state=checked]:enabled:hover:ring-state-active data-[state=unchecked]:enabled:hover:border-gray-stroke data-[state=checked]:enabled:hover:bg-primary-background-fill-emphasis"},size:{sm:"h-4 w-6",md:"h-5 w-8",lg:"h-6 w-10"}},defaultVariants:{variant:"regular",size:"md"}});function Vc(c){var p=c,{className:e,size:a,variant:o,checkedIcon:t,uncheckedIcon:r,checked:d,defaultChecked:i}=p,u=n(p,["className","size","variant","checkedIcon","uncheckedIcon","checked","defaultChecked"]);let[m,x]=useState(i||false),h=d!==void 0,y=h?d:m,L=t||r;return jsx(Switch.Root,f(s({"data-slot":"switch",className:l("group",Qs({size:a,variant:o}),e),checked:d,defaultChecked:i,onCheckedChange:A=>{var M;h||x(A),(M=u.onCheckedChange)==null||M.call(u,A);}},u),{children:jsx(Switch.Thumb,{"data-slot":"switch-thumb",className:l("pointer-events-none flex items-center justify-center rounded-full ring-0 transition-transform data-[state=unchecked]:translate-x-0.5 data-[disabled]:!bg-gray-background-fill-muted data-[state=checked]:bg-primary-foreground-onfill data-[state=unchecked]:bg-gray-foreground-muted data-[state=unchecked]:group-hover:bg-gray-foreground data-[state=unchecked]:group-data-[disabled]:group-hover:bg-gray-foreground-muted",L&&"!bg-transparent data-[disabled]:!bg-transparent",Oc[a||"md"],qc[a||"md"]),children:L&&jsxs(Fragment,{children:[y&&t&&jsx("span",{className:l("flex items-center justify-center text-primary-foreground-onfill group-data-[disabled]:text-gray-300",js[a||"md"]),children:t}),!y&&r&&jsx("span",{className:l("flex items-center justify-center text-gray-foreground group-data-[disabled]:text-gray-300",js[a||"md"]),children:r})]})})}))}var $s=createContext({});function Xc({children:e,value:a,onValueChange:o,open:t,defaultOpen:r,onOpenChange:d}){let[i,u]=useState(a||""),c={value:a||i,onValueChange:o||u};return jsx($s.Provider,{value:c,children:jsx(fo,{open:t,defaultOpen:r,onOpenChange:d,children:e})})}function Kc({children:e,asChild:a=true,className:o}){return jsx(co,{className:o,asChild:a,children:e})}function Zc({children:e,align:a="center",side:o="right",className:t}){return jsx(po,{className:t,align:a,side:o,children:e})}function jc({children:e,label:a}){let{value:o,onValueChange:t}=useContext($s);return a?jsxs(Fragment,{children:[jsx(go,{children:a}),jsx(ft,{value:o,onValueChange:t,children:e})]}):jsx(ft,{value:o,onValueChange:t,children:e})}function Qc({children:e,value:a,onClick:o,icon:t}){let r=()=>{o&&o();};return a?jsxs(mo,{value:a,onClick:r,children:[typeof t=="string"?jsx("img",{src:t,alt:"",width:20,height:14}):t,e]}):jsxs(ut,{onClick:r,children:[typeof t=="string"?jsx("img",{src:t,alt:"",width:20,height:14}):t,e]})}function $c({children:e,onClick:a,icon:o}){return jsxs(ut,{onClick:a,children:[o,e]})}function Jc(){return jsx(xo,{})}var el=createContext(null),sp=150,Js=16,lp="w-8";function Eo(){let e=useContext(el);if(!e)throw new Error("useTabsContext must be used within a Tabs component.");return e}function dp(e,a){let o=useRef(null);return useEffect(()=>()=>{o.current&&clearTimeout(o.current);},[]),useCallback(((...t)=>{o.current&&clearTimeout(o.current),o.current=setTimeout(()=>e(...t),a);}),[e,a])}var al=cva("relative inline-flex min-w-full items-center justify-between gap-0 bg-surface-section",{variants:{variant:{standalone:"rounded-lg border border-gray-stroke-muted px-6",header:"border-b border-gray-stroke-muted px-3.5 sm:px-6 lg:px-8 bg-transparent"}},defaultVariants:{variant:"standalone"}}),tl=cva(["inline-flex min-w-fit flex-1 items-center justify-center gap-2 whitespace-nowrap font-medium transition-colors","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:pointer-events-none disabled:text-gray-foreground-muted","[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg]:transition-all","relative font-medium text-gray-foreground hover:text-gray-foreground data-[state=active]:text-primary-foreground data-[state=active]:font-semibold"],{variants:{variant:{standalone:"px-3.5 md:px-10 lg:px-16",header:"px-4"},size:{md:"h-[46px] text-sm",lg:"h-[54px] text-base"}},defaultVariants:{variant:"standalone",size:"md"}}),np=cva("relative min-w-0 max-w-full",{variants:{variant:{standalone:"",header:"px-3.5 sm:px-6 lg:px-8"}},defaultVariants:{variant:"standalone"}}),Ys=cva(["pointer-events-none absolute top-0 z-10 h-full transition-opacity duration-200",lp],{variants:{side:{left:"left-0 bg-gradient-to-r from-background to-transparent",right:"right-0 bg-gradient-to-l from-background to-transparent"},variant:{standalone:"",header:""}},compoundVariants:[{side:"left",variant:"header",class:"left-3.5 sm:left-6 lg:left-8"},{side:"right",variant:"header",class:"right-3.5 sm:right-6 lg:right-8"}],defaultVariants:{side:"left",variant:"standalone"}}),ol=cva("ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",{variants:{variant:{standalone:"",header:""},size:{md:"",lg:""}},compoundVariants:[{variant:"standalone",size:"md",class:"m-4"},{variant:"standalone",size:"lg",class:"m-6"},{variant:"header",size:"md",class:"my-4"},{variant:"header",size:"lg",class:"my-6"}],defaultVariants:{variant:"standalone",size:"md"}});function ip(i){var u=i,{className:e,variant:a="standalone",size:o="md",responsive:t=true,children:r}=u,d=n(u,["className","variant","size","responsive","children"]);let[c,p]=useState(o),m=useCallback(()=>{if(typeof window=="undefined")return;let h=parseInt(pa.tablet),y=parseInt(pa.mobile),L=window.innerWidth;L<=y||L<=h?p("md"):p(o);},[o]),x=dp(m,sp);return useEffect(()=>{if(typeof window=="undefined"||!t){p(o);return}return m(),window.addEventListener("resize",x),()=>window.removeEventListener("resize",x)},[t,o,m,x]),jsx(el.Provider,{value:useMemo(()=>({variant:a,size:o,responsiveSize:c}),[a,o,c]),children:jsx(Tabs.Root,f(s({"data-slot":"tabs","data-variant":a,"data-size":c,className:l("flex w-full max-w-full flex-col overflow-hidden",e)},d),{children:r}))})}function up(t){var r=t,{className:e,children:a}=r,o=n(r,["className","children"]);let{variant:d,responsiveSize:i}=Eo(),u=useRef(null),c=useRef(null),[p,m]=useState(false),[x,h]=useState(false),[y,L]=useState(null),A=useCallback(()=>{let k=u.current;if(!k)return;let{scrollLeft:I,scrollWidth:_,clientWidth:E}=k,b=_>E;m(b&&I>0),h(b&&I<_-E-1);},[]),M=useCallback(()=>{let k=c.current;if(!k)return;let I=k.querySelector('[data-state="active"]');if(I){let _=k.getBoundingClientRect(),E=I.getBoundingClientRect();L({left:E.left-_.left,width:E.width});}},[]),V=useCallback(()=>{let k=u.current,I=c.current;if(!k||!I)return;let _=I.querySelector('[data-state="active"]');if(_){let E=k.getBoundingClientRect(),b=_.getBoundingClientRect();b.left<E.left?k.scrollBy({left:b.left-E.left-Js,behavior:"smooth"}):b.right>E.right&&k.scrollBy({left:b.right-E.right+Js,behavior:"smooth"});}},[]);return useEffect(()=>{let k=u.current;if(!k)return;A();let I=new ResizeObserver(()=>{A(),M();});return I.observe(k),k.addEventListener("scroll",A,{passive:true}),()=>{I.disconnect(),k.removeEventListener("scroll",A);}},[A,M]),useEffect(()=>{M();},[M,a]),useEffect(()=>{let k=c.current;if(!k)return;let I=new MutationObserver(_=>{for(let E of _)if(E.type==="attributes"&&E.attributeName==="data-state"){M(),V();break}});return I.observe(k,{attributes:true,subtree:true,attributeFilter:["data-state"]}),()=>I.disconnect()},[M,V]),jsxs("div",{"data-slot":"tabs-list-wrapper",className:np({variant:d}),children:[jsx("div",{className:l(Ys({side:"left",variant:d}),p?"opacity-100":"opacity-0"),"aria-hidden":"true"}),jsx("div",{className:l(Ys({side:"right",variant:d}),x?"opacity-100":"opacity-0"),"aria-hidden":"true"}),jsx("div",{ref:u,className:"overflow-x-auto overflow-y-hidden [-ms-overflow-style:none] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:jsxs("div",{ref:c,className:"relative",children:[jsx(Tabs.List,f(s({"data-slot":"tabs-list","data-variant":d,"data-size":i,className:l(al({variant:d}),e)},o),{children:a})),y&&jsx("div",{className:"pointer-events-none absolute bottom-0 h-0.5 bg-secondary-stroke-emphasis transition-all duration-300 ease-out",style:{left:y.left,width:y.width},"aria-hidden":"true"})]})})]})}function fp(d){var i=d,{className:e,children:a,icon:o,badge:t}=i,r=n(i,["className","children","icon","badge"]);let{variant:u,responsiveSize:c}=Eo(),p=useRef(null),[m,x]=useState(false);useEffect(()=>{let y=p.current;if(!y)return;let L=()=>{x(y.getAttribute("data-state")==="active");};L();let A=new MutationObserver(L);return A.observe(y,{attributes:true,attributeFilter:["data-state"]}),()=>A.disconnect()},[]);let h=()=>o?isValidElement(o)?cloneElement(o,{strokeWidth:m?2:1.6}):o:null;return jsxs(Tabs.Trigger,f(s({ref:p,"data-slot":"tabs-trigger","data-variant":u,"data-size":c,className:l(tl({variant:u,size:c}),e)},r),{children:[o&&jsx("span",{"data-slot":"tabs-icon",className:"flex shrink-0 items-center","aria-hidden":"true",children:h()}),jsx("span",{children:a}),t&&jsx("span",{"data-slot":"tabs-badge",className:"flex shrink-0 items-center",role:"status",children:t})]}))}function cp(o){var t=o,{className:e}=t,a=n(t,["className"]);let{variant:r,responsiveSize:d}=Eo();return jsx(Tabs.Content,s({"data-slot":"tabs-content","data-variant":r,"data-size":d,className:l(ol({variant:r,size:d}),e)},a))}var rl=cva("group/tile relative flex flex-col justify-center rounded-lg gap-0.5 px-5 py-4 cursor-default data-[disabled=true]:pointer-events-none",{variants:{variant:{regular:"bg-surface-settings-on text-primary-foreground fill-primary-foreground data-[disabled=false]:hover:[background:radial-gradient(51.96%_112.02%_at_50%_112.02%,_var(--color-surface-card)_0%,_var(--color-surface-settings-on)_100%)] data-[disabled=true]:bg-surface-disable data-[inactive=true]:bg-surface-settings-off data-[inactive=true]:hover:[background:radial-gradient(51.96%_112.02%_at_50%_112.02%,_var(--color-surface-card)_0%,_var(--color-surface-settings-off)_100%)]",cm:"bg-cm-background-fill text-cm-foreground-onfill fill-cm-foreground-onfill data-[disabled=false]:hover:[background:radial-gradient(63.78%_137.5%_at_50%_137.5%,_var(--color-cm-background-fill-emphasis)_0%,_var(--color-cm-background-fill)_100%)] data-[disabled=true]:opacity-70 data-[inactive=true]:[filter:brightness(.8)]",go:"bg-go-background-fill text-go-foreground-onfill fill-go-foreground-onfill data-[disabled=false]:hover:[background:radial-gradient(63.78%_137.5%_at_50%_137.5%,_var(--color-go-background-fill-emphasis)_0%,_var(--color-go-background-fill)_100%)] data-[disabled=true]:opacity-70 data-[inactive=true]:[filter:brightness(.8)]",cir:"bg-cir-background-fill text-cir-foreground-onfill fill-cir-foreground-onfill data-[disabled=false]:hover:[background:radial-gradient(63.78%_137.5%_at_50%_137.5%,_var(--color-cir-background-fill-emphasis)_0%,_var(--color-cir-background-fill)_100%)] data-[disabled=true]:opacity-70 data-[inactive=true]:[filter:brightness(.8)]",ped:"bg-ped-background-fill text-ped-foreground-onfill fill-ped-foreground-onfill data-[disabled=false]:hover:[background:radial-gradient(51.96%_112.02%_at_50%_112.02%,_var(--color-ped-background-fill-emphasis)_0%,_var(--color-ped-background-fill)_100%)] data-[disabled=true]:opacity-70 data-[inactive=true]:[filter:brightness(.8)]",prev:"bg-prev-background-fill text-prev-foreground-onfill fill-prev-foreground-onfill data-[disabled=false]:hover:[background:radial-gradient(63.78%_137.5%_at_50%_137.5%,_var(--color-prev-background-fill-emphasis)_0%,_var(--color-prev-background-fill)_100%)] data-[disabled=true]:opacity-70 data-[inactive=true]:[filter:brightness(.8)]"}},defaultVariants:{variant:"regular"}});function xp(i){var u=i,{className:e,variant:a="regular",asChild:o=false,disabled:t=false,inactive:r=false}=u,d=n(u,["className","variant","asChild","disabled","inactive"]);let c=o?Slot.Slot:"div";return jsxs(c,f(s({"data-slot":"tile","data-variant":a,"data-inactive":r,"data-disabled":t,"aria-disabled":t||r,className:l(rl({variant:a,className:e}),d.onClick&&!t&&"cursor-pointer")},d),{children:[d.children,d.onClick&&!t&&jsx(EditPencil,{className:"absolute right-5 top-4 size-5 opacity-0 transition-opacity group-hover/tile:opacity-100"})]}))}function hp(t){var r=t,{className:e,icon:a}=r,o=n(r,["className","icon"]);return jsx("div",f(s({"data-slot":"tile-icon",className:l("mb-2.5 last:mb-0 [&>svg]:size-5",e)},o),{children:a}))}function bp(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsx("div",s({"data-slot":"tile-title",className:l("line-clamp-1 flex w-fit text-xs font-medium",e)},a))}function Lp(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsx("span",s({"data-slot":"tile-description",className:l("line-clamp-1 flex w-fit text-sm font-semibold",e)},a))}var kp=3,yp=5e3,Ee={ADD_TOAST:"ADD_TOAST",UPDATE_TOAST:"UPDATE_TOAST",DISMISS_TOAST:"DISMISS_TOAST",REMOVE_TOAST:"REMOVE_TOAST"},Ho=0;function Sp(){return Ho=(Ho+1)%Number.MAX_SAFE_INTEGER,Ho.toString()}var Oo=new Map,sl=e=>{if(Oo.has(e))return;let a=setTimeout(()=>{Oo.delete(e),Za({type:Ee.REMOVE_TOAST,toastId:e});},yp);Oo.set(e,a);},Pp=(e,a)=>{switch(a.type){case Ee.ADD_TOAST:return f(s({},e),{toasts:[a.toast,...e.toasts].slice(0,kp)});case Ee.UPDATE_TOAST:return f(s({},e),{toasts:e.toasts.map(o=>o.id===a.toast.id?s(s({},o),a.toast):o)});case Ee.DISMISS_TOAST:{let{toastId:o}=a;return o?sl(o):e.toasts.forEach(t=>{sl(t.id);}),f(s({},e),{toasts:e.toasts.map(t=>t.id===o||a.toastId===void 0?f(s({},t),{open:false}):t)})}case Ee.REMOVE_TOAST:return a.toastId===void 0?f(s({},e),{toasts:[]}):f(s({},e),{toasts:e.toasts.filter(o=>o.id!==a.toastId)})}},Ft=[],Et={toasts:[]};function Za(e){Et=Pp(Et,e),[...Ft].forEach(a=>{a(Et);});}function wp(a){var e=n(a,[]);let o=Sp(),t=d=>Za({type:Ee.UPDATE_TOAST,toast:f(s({},d),{id:o})}),r=()=>Za({type:Ee.DISMISS_TOAST,toastId:o});return Za({type:Ee.ADD_TOAST,toast:f(s({},e),{id:o,open:true,onOpenChange:d=>{d||r();}})}),{id:o,dismiss:r,update:t}}function qo(){let[e,a]=useState(Et);return useEffect(()=>(Ft.push(a),()=>{let o=Ft.indexOf(a);o>-1&&Ft.splice(o,1);}),[]),f(s({},e),{toast:wp,dismiss:o=>Za({type:Ee.DISMISS_TOAST,toastId:o})})}var nl=cva("group pointer-events-auto relative flex w-full items-center justify-between gap-4 overflow-hidden rounded-md bg-surface-elevated p-2 pl-4 shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=open]:slide-in-from-top-full data-[state=closed]:fade-out-0 data-[state=closed]:slide-out-to-top-4 data-[state=open]:duration-300 data-[state=closed]:duration-400 data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=cancel]:transition-transform data-[swipe=end]:animate-out transition-[transform,opacity]",{variants:{variant:{primary:"text-primary-foreground",secondary:"text-secondary-foreground",success:"text-feedback-success-foreground",warning:"text-feedback-warning-foreground",error:"text-feedback-error-foreground"}},defaultVariants:{variant:"primary"}}),Mp=cva("size-6 shrink-0",{variants:{variant:{primary:"text-primary-foreground fill-primary-background-soft",secondary:"text-secondary-foreground fill-secondary-background-soft",success:"text-feedback-success-foreground fill-feedback-success-background-soft",warning:"text-feedback-warning-foreground fill-feedback-warning-background-soft",error:"text-feedback-error-foreground fill-feedback-error-background-soft"}},defaultVariants:{variant:"primary"}}),Bp={primary:"regular-soft",secondary:"emphasis-soft",success:"success-soft",warning:"warning-soft",error:"error-soft"},Np={primary:Info,secondary:Info,success:CircleCheck,warning:TriangleWarning,error:OctagonWarning},Fp=Toast.Provider;function il(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsx(Toast.Viewport,s({"data-slot":"toast-viewport",className:l("fixed right-0 top-0 z-[100] flex max-h-screen w-full min-w-0 max-w-[500px] flex-col gap-2 p-4 md:w-[500px]",e)},a))}function ul(i){var u=i,{className:e,variant:a="primary",showIcon:o=true,duration:t=5e3,children:r}=u,d=n(u,["className","variant","showIcon","duration","children"]);let c=Np[a||"primary"];return jsxs(Toast.Root,f(s({duration:t,className:l(nl({variant:a}),e)},d),{children:[o&&jsx(c,{className:l(Mp({variant:a}))}),jsx("div",{className:"flex flex-1 items-center justify-between gap-4",children:r})]}))}function Ep(c){var p=c,{className:e,variant:a="primary",size:o="sm",iconLeft:t,iconRight:r,children:d,altText:i="Toast action"}=p,u=n(p,["className","variant","size","iconLeft","iconRight","children","altText"]);return jsx(Toast.Action,f(s({asChild:true,altText:i,className:l("inline-flex items-center justify-center",e)},u),{children:jsx(Y,{iconLeft:t,iconRight:r,size:o,variant:Bp[a],children:d})}))}function fl(t){var r=t,{className:e,label:a="Fechar"}=r,o=n(r,["className","label"]);return jsx(Toast.Close,f(s({className:l("shrink-0",e)},o),{asChild:true,children:jsx(Y,{iconLeft:jsx(CloseMd,{className:"size-4"}),size:"sm","aria-label":a,variant:"regular-basic"})}))}function cl(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsx(Toast.Title,s({className:l("flex-1 text-md font-medium",e)},a))}function pl(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsx(Toast.Description,s({className:l("text-xs",e)},a))}function Hp(){let{toasts:e}=qo();return jsxs(Fp,{children:[e.map(function(i){var u=i,{id:a,title:o,description:t,action:r}=u,d=n(u,["id","title","description","action"]);return jsxs(ul,f(s({},d),{children:[jsxs("div",{className:"grid",children:[o&&jsx(cl,{children:o}),t&&jsx(pl,{children:t})]}),jsxs("div",{className:"flex items-center gap-2",children:[r,jsx(fl,{})]})]}),a)}),jsx(il,{})]})}/*! Bundled license information:
2
2
 
3
3
  lucide-react/dist/esm/shared/src/utils.js:
4
4
  lucide-react/dist/esm/defaultAttributes.js:
@@ -12,5 +12,5 @@ lucide-react/dist/esm/lucide-react.js:
12
12
  * This source code is licensed under the ISC license.
13
13
  * See the LICENSE file in the root directory of this source tree.
14
14
  *)
15
- */export{$n as Alert,ad as AlertActions,td as AlertButton,Jn as AlertContainer,Yn as AlertContent,Er as AlertDescription,vd as AlertDialog,Ad as AlertDialogAction,Rd as AlertDialogCancel,Id as AlertDialogContent,wd as AlertDialogDescription,Td as AlertDialogFooter,kd as AlertDialogHeader,yd as AlertDialogIcon,Wr as AlertDialogOverlay,Gr as AlertDialogPortal,Sd as AlertDialogTag,Pd as AlertDialogTitle,Ld as AlertDialogTrigger,ed as AlertIcon,Fr as AlertTitle,ui as Autocomplete,pi as AutocompleteContent,po as AutocompleteContentFooter,gi as AutocompleteGroup,mi as AutocompleteItem,xi as AutocompleteText,ci as AutocompleteTrigger,fi as AutocompleteWrapper,go as Avatar,ho as AvatarFallback,xo as AvatarImage,aa as Badge,Wa as Breadcrumb,Si as BreadcrumbEllipsis,ht as BreadcrumbItem,yi as BreadcrumbLink,Xa as BreadcrumbList,bo as BreadcrumbPage,Co as BreadcrumbSeparator,ie as Button,wu as CardContinue,Du as CardContinueBreadcrumb,Bu as CardContinueButton,Au as CardContinueContent,Ru as CardContinueHeader,Tu as CardContinueImage,Mu as CardContinueTitle,_u as CardLesson,$u as CardLessonButton,Gu as CardLessonContent,ju as CardLessonDuration,Zu as CardLessonFooter,Wu as CardLessonHeader,Uu as CardLessonImage,Xu as CardLessonLabel,Qu as CardLessonStatus,Ku as CardLessonTitle,Ji as CardModule,su as CardModuleAction,ru as CardModuleButton,ou as CardModuleFooter,Yi as CardModuleHeader,eu as CardModuleLabel,tu as CardModuleProgress,au as CardModuleTitle,gu as CardTopic,hu as CardTopicColumn,Iu as CardTopicContent,Lu as CardTopicCount,bu as CardTopicNumber,vu as CardTopicProgress,Cu as CardTopicTitle,xu as CardTopicTrigger,Bi as CardWeek,Xi as CardWeekActions,Ni as CardWeekBreadcrumb,Fi as CardWeekContainer,Ui as CardWeekContent,zi as CardWeekDescription,_i as CardWeekFooter,Ei as CardWeekHeader,qi as CardWeekProgress,Vi as CardWeekProgressCircle,Wi as CardWeekStatus,Hi as CardWeekTags,Gi as CardWeekText,Oi as CardWeekTitle,af as Checkbox,So as Collapsible,wo as CollapsibleContent,Po as CollapsibleTrigger,Cf as DatePicker,hf as DatePickerLabel,bf as DatePickerText,xf as DatePickerWrapper,vf as DateRangePicker,Zd as Dialog,$d as DialogClose,Jd as DialogContainer,Yd as DialogContent,oi as DialogDescription,ai as DialogFooter,ei as DialogHeader,cs as DialogOverlay,fs as DialogPortal,ti as DialogTitle,Qd as DialogTrigger,Ro as DropdownMenu,nf as DropdownMenuCheckboxItem,Mo as DropdownMenuContent,lf as DropdownMenuGroup,Pt as DropdownMenuItem,No as DropdownMenuLabel,sf as DropdownMenuPortal,wt as DropdownMenuRadioGroup,Bo as DropdownMenuRadioItem,Fo as DropdownMenuSeparator,df as DropdownMenuShortcut,uf as DropdownMenuSub,cf as DropdownMenuSubContent,ff as DropdownMenuSubTrigger,Do as DropdownMenuTrigger,_o as Input,Vo as InputAdornment,qo as InputEndIcon,Bf as InputField,Nf as InputLabel,tl as InputNumeric,al as InputPassword,Ft as InputStartIcon,Ff as InputText,Mf as InputWrapper,Vf as Label,ro as Loading,_f as Logo,Uf as LogoShort,Qf as Pagination,ll as PaginationContent,ul as PaginationEllipsis,Uo as PaginationInfo,Ot as PaginationItem,nl as PaginationLink,il as PaginationNext,dl as PaginationPrevious,sl as PaginationRoot,sa as Progress,Io as ProgressCircle,ec as RadioGroup,ac as RadioGroupItem,ic as Ranking,Ic as RankingAssigneeGroup,kc as RankingAssigneeItem,Lc as RankingAssigneeLabel,vc as RankingAssigneesColumn,cc as RankingBody,Rc as RankingButton,uc as RankingHeader,fc as RankingHeaderCell,pc as RankingItem,mc as RankingNumber,Ac as RankingPerformance,yc as RankingPriority,Pc as RankingQuestions,hc as RankingSpecialty,Cc as RankingSuperFocus,bc as RankingTopic,gc as RankingTopicColumn,xc as RankingTopicContent,Fc as Rating,hl as RatingButtonVariants,bl as RatingLabelVariants,xl as RatingStarVariants,Wo as ScrollArea,et as ScrollBar,rp as SegmentControl,np as SegmentControlContent,sp as SegmentControlList,lp as SegmentControlTrigger,_c as Select,Qc as SelectContent,Wc as SelectGroup,$c as SelectHeader,Jc as SelectItem,Gc as SelectLabel,Il as SelectScrollDownButton,Ll as SelectScrollUpButton,Yc as SelectSeparator,ep as SelectText,Zc as SelectTrigger,Xc as SelectValue,Uc as SelectWrapper,xa as Separator,$o as Sheet,mp as SheetClose,Jo as SheetContent,vp as SheetDescription,bp as SheetFooter,hp as SheetHeader,Cp as SheetTitle,pp as SheetTrigger,Np as Sidebar,_p as SidebarContent,Vp as SidebarFooter,Up as SidebarGroup,Wp as SidebarGroupAction,Xp as SidebarGroupContent,Gp as SidebarGroupLabel,Hp as SidebarHeader,zp as SidebarInput,Op as SidebarInset,Kp as SidebarMenu,$p as SidebarMenuAction,Jp as SidebarMenuBadge,Qp as SidebarMenuButton,jp as SidebarMenuItem,om as SidebarMenuItemCollapse,tm as SidebarMenuItemTitle,Yp as SidebarMenuSkeleton,em as SidebarMenuSub,rm as SidebarMenuSubButton,am as SidebarMenuSubItem,Bp as SidebarProvider,Ep as SidebarRail,qp as SidebarSeparator,Fp as SidebarTrigger,Wt as Skeleton,um as Switch,xm as Switcher,bm as SwitcherContent,Lm as SwitcherFooter,Cm as SwitcherGroup,vm as SwitcherItem,Im as SwitcherSeparator,hm as SwitcherTrigger,Mm as Tabs,Fm as TabsContent,Bm as TabsList,Nm as TabsTrigger,Se as Tag,Hm as Tile,_m as TileDescription,Vm as TileIcon,qm as TileTitle,Jl as Toast,lg as ToastAction,Yl as ToastClose,an as ToastDescription,Ql as ToastProvider,en as ToastTitle,$l as ToastViewport,ng as Toaster,da as Tooltip,ua as TooltipContent,na as TooltipProvider,ia as TooltipTrigger,Or as alertButtonVariants,Nr as alertVariants,ka as applyInputIconSize,Ss as avatarVariants,Hr as badgeVariants,Oa as buttonVariants,fl as calculatePageNumbers,Fs as cardLessonVariants,It as cardModuleStatusVariants,Ds as cardModuleVariants,zs as checkboxVariants,Ho as datePickerTriggerVariants,ol as labelVariants,cl as radioGroupVariants,yl as segmentControlTriggerVariants,Ol as switchVariants,Gl as tabsContentVariants,_l as tabsListVariants,Ul as tabsTriggerVariants,Ts as tagVariants,Wl as tileVariants,Zl as toastVariants,Qa as useIsMobile,Ta as useSidebar,Qt as useTabsContext,or as useToast};//# sourceMappingURL=index.mjs.map
15
+ */export{yl as Alert,Tl as AlertActions,Al as AlertButton,Sl as AlertContainer,Pl as AlertContent,Zo as AlertDescription,Kl as AlertDialog,td as AlertDialogAction,od as AlertDialogCancel,jl as AlertDialogContent,ed as AlertDialogDescription,ad as AlertDialogFooter,Ql as AlertDialogHeader,$l as AlertDialogIcon,or as AlertDialogOverlay,tr as AlertDialogPortal,Jl as AlertDialogTag,Yl as AlertDialogTitle,Zl as AlertDialogTrigger,wl as AlertIcon,Ko as AlertTitle,Od as Autocomplete,zd as AutocompleteContent,Kt as AutocompleteContentFooter,_d as AutocompleteGroup,Ud as AutocompleteItem,Gd as AutocompleteText,Vd as AutocompleteTrigger,qd as AutocompleteWrapper,jt as Avatar,$t as AvatarFallback,Qt as AvatarImage,_e as Badge,Ma as Breadcrumb,Yd as BreadcrumbEllipsis,at as BreadcrumbItem,Jd as BreadcrumbLink,Ba as BreadcrumbList,Jt as BreadcrumbPage,Yt as BreadcrumbSeparator,Y as Button,oi as CardContinue,di as CardContinueBreadcrumb,ii as CardContinueButton,si as CardContinueContent,li as CardContinueHeader,ri as CardContinueImage,ni as CardContinueTitle,bi as CardLesson,wi as CardLessonButton,Ci as CardLessonContent,yi as CardLessonDuration,Si as CardLessonFooter,vi as CardLessonHeader,Li as CardLessonImage,Ii as CardLessonLabel,Pi as CardLessonStatus,ki as CardLessonTitle,wn as CardModule,Nn as CardModuleAction,Bn as CardModuleButton,Mn as CardModuleFooter,Tn as CardModuleHeader,An as CardModuleLabel,Rn as CardModuleProgress,Dn as CardModuleTitle,Wn as CardTopic,Kn as CardTopicColumn,Jn as CardTopicContent,$n as CardTopicCount,Zn as CardTopicNumber,Qn as CardTopicProgress,jn as CardTopicTitle,Xn as CardTopicTrigger,dn as CardWeek,vn as CardWeekActions,nn as CardWeekBreadcrumb,un as CardWeekContainer,bn as CardWeekContent,pn as CardWeekDescription,hn as CardWeekFooter,fn as CardWeekHeader,xn as CardWeekProgress,gn as CardWeekProgressCircle,Cn as CardWeekStatus,mn as CardWeekTags,Ln as CardWeekText,cn as CardWeekTitle,Ri as Checkbox,so as Collapsible,no as CollapsibleContent,lo as CollapsibleTrigger,Zi as DatePicker,Xi as DatePickerLabel,Ki as DatePickerText,Wi as DatePickerWrapper,ji as DateRangePicker,Id as Dialog,yd as DialogClose,Sd as DialogContainer,Pd as DialogContent,Dd as DialogDescription,Td as DialogFooter,wd as DialogHeader,yr as DialogOverlay,kr as DialogPortal,Ad as DialogTitle,kd as DialogTrigger,fo as DropdownMenu,Hi as DropdownMenuCheckboxItem,po as DropdownMenuContent,Ei as DropdownMenuGroup,ut as DropdownMenuItem,go as DropdownMenuLabel,Fi as DropdownMenuPortal,ft as DropdownMenuRadioGroup,mo as DropdownMenuRadioItem,xo as DropdownMenuSeparator,Oi as DropdownMenuShortcut,qi as DropdownMenuSub,zi as DropdownMenuSubContent,Vi as DropdownMenuSubTrigger,co as DropdownMenuTrigger,ko as Input,vo as InputAdornment,Io as InputEndIcon,nu as InputField,iu as InputLabel,gs as InputNumeric,ms as InputPassword,Lt as InputStartIcon,uu as InputText,du as InputWrapper,gu as Label,Ot as Loading,hu as Logo,bu as LogoShort,Su as Pagination,Ls as PaginationContent,ks as PaginationEllipsis,yo as PaginationInfo,vt as PaginationItem,Cs as PaginationLink,Is as PaginationNext,vs as PaginationPrevious,bs as PaginationRoot,Ke as Progress,to as ProgressCircle,Au as RadioGroup,Du as RadioGroupItem,Ou as Ranking,$u as RankingAssigneeGroup,Ju as RankingAssigneeItem,Qu as RankingAssigneeLabel,ju as RankingAssigneesColumn,zu as RankingBody,sf as RankingButton,qu as RankingHeader,Vu as RankingHeaderCell,Uu as RankingItem,_u as RankingNumber,rf as RankingPerformance,Yu as RankingPriority,af as RankingQuestions,Xu as RankingSpecialty,Zu as RankingSuperFocus,Ku as RankingTopic,Gu as RankingTopicColumn,Wu as RankingTopicContent,ff as Rating,Ds as RatingButtonVariants,Rs as RatingLabelVariants,As as RatingStarVariants,Po as ScrollArea,Ua as ScrollBar,Ef as SegmentControl,qf as SegmentControlContent,Hf as SegmentControlList,Of as SegmentControlTrigger,Lf as Select,wf as SelectContent,If as SelectGroup,Tf as SelectHeader,Af as SelectItem,vf as SelectLabel,Fs as SelectScrollDownButton,Ns as SelectScrollUpButton,Df as SelectSeparator,Rf as SelectText,Pf as SelectTrigger,kf as SelectValue,Cf as SelectWrapper,sa as Separator,Mo as Sheet,Xf as SheetClose,Bo as SheetContent,Jf as SheetDescription,Qf as SheetFooter,jf as SheetHeader,$f as SheetTitle,Wf as SheetTrigger,uc as Sidebar,bc as SidebarContent,xc as SidebarFooter,Lc as SidebarGroup,vc as SidebarGroupAction,Ic as SidebarGroupContent,Cc as SidebarGroupLabel,gc as SidebarHeader,mc as SidebarInput,pc as SidebarInset,kc as SidebarMenu,wc as SidebarMenuAction,Tc as SidebarMenuBadge,Pc as SidebarMenuButton,yc as SidebarMenuItem,Bc as SidebarMenuItemCollapse,Mc as SidebarMenuItemTitle,Ac as SidebarMenuSkeleton,Dc as SidebarMenuSub,Nc as SidebarMenuSubButton,Rc as SidebarMenuSubItem,ic as SidebarProvider,cc as SidebarRail,hc as SidebarSeparator,fc as SidebarTrigger,At as Skeleton,Vc as Switch,Xc as Switcher,Zc as SwitcherContent,$c as SwitcherFooter,jc as SwitcherGroup,Qc as SwitcherItem,Jc as SwitcherSeparator,Kc as SwitcherTrigger,ip as Tabs,cp as TabsContent,up as TabsList,fp as TabsTrigger,xe as Tag,xp as Tile,Lp as TileDescription,hp as TileIcon,bp as TileTitle,ul as Toast,Ep as ToastAction,fl as ToastClose,pl as ToastDescription,Hp as ToastProvider,cl as ToastTitle,il as ToastViewport,je as Tooltip,$e as TooltipContent,ga as TooltipProvider,Qe as TooltipTrigger,jo as alertButtonVariants,Xo as alertVariants,ca as applyInputIconSize,Hr as avatarVariants,$o as badgeVariants,ya as buttonVariants,ys as calculatePageNumbers,Kr as cardLessonVariants,lt as cardModuleStatusVariants,_r as cardModuleVariants,Qr as checkboxVariants,Co as datePickerTriggerVariants,xs as labelVariants,Ss as radioGroupVariants,Hs as segmentControlTriggerVariants,Qs as switchVariants,ol as tabsContentVariants,al as tabsListVariants,tl as tabsTriggerVariants,Vr as tagVariants,rl as tileVariants,nl as toastVariants,Ha as useIsMobile,ha as useSidebar,qo as useToast};//# sourceMappingURL=index.mjs.map
16
16
  //# sourceMappingURL=index.mjs.map