@medway-ui/core 1.15.1 → 1.15.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- 'use strict';var react=require('react'),classVarianceAuthority=require('class-variance-authority'),icons=require('@medway-ui/icons'),clsx=require('clsx'),jsxRuntime=require('react/jsx-runtime'),radixUi=require('radix-ui'),cmdk=require('cmdk'),framerMotion=require('framer-motion');var Xr=Object.defineProperty,Kr=Object.defineProperties;var Zr=Object.getOwnPropertyDescriptors;var da=Object.getOwnPropertySymbols;var Ht=Object.prototype.hasOwnProperty,Ut=Object.prototype.propertyIsEnumerable;var zt=(e,a,o)=>a in e?Xr(e,a,{enumerable:true,configurable:true,writable:true,value:o}):e[a]=o,s=(e,a)=>{for(var o in a||(a={}))Ht.call(a,o)&&zt(e,o,a[o]);if(da)for(var o of da(a))Ut.call(a,o)&&zt(e,o,a[o]);return e},f=(e,a)=>Kr(e,Zr(a));var n=(e,a)=>{var o={};for(var t in e)Ht.call(e,t)&&a.indexOf(t)<0&&(o[t]=e[t]);if(e!=null&&da)for(var t of da(e))a.indexOf(t)<0&&Ut.call(e,t)&&(o[t]=e[t]);return o};var Qr=(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},jr=(e,a)=>({classGroupId:e,validator:a}),Kt=(e=new Map,a=null,o)=>({nextPart:e,validators:a,classGroupId:o});var Vt=[],Jr="arbitrary..",$r=e=>{let a=es(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:t}=e;return {getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return Yr(i);let u=i.split("-"),c=u[0]===""&&u.length>1?1:0;return Zt(u,c,a)},getConflictingClassGroupIds:(i,u)=>{if(u){let c=t[i],p=o[i];return c?p?Qr(p,c):c:p||Vt}return o[i]||Vt}}},Zt=(e,a,o)=>{if(e.length-a===0)return o.classGroupId;let r=e[a],l=o.nextPart.get(r);if(l){let p=Zt(e,a+1,l);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}},Yr=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?Jr+t:void 0})(),es=e=>{let{theme:a,classGroups:o}=e;return as(o,a)},as=(e,a)=>{let o=Kt();for(let t in e){let r=e[t];_a(r,o,t,a);}return o},_a=(e,a,o,t)=>{let r=e.length;for(let l=0;l<r;l++){let i=e[l];ts(i,a,o,t);}},ts=(e,a,o,t)=>{if(typeof e=="string"){os(e,a,o);return}if(typeof e=="function"){rs(e,a,o,t);return}ss(e,a,o,t);},os=(e,a,o)=>{let t=e===""?a:Qt(a,e);t.classGroupId=o;},rs=(e,a,o,t)=>{if(ls(e)){_a(e(t),a,o,t);return}a.validators===null&&(a.validators=[]),a.validators.push(jr(o,e));},ss=(e,a,o,t)=>{let r=Object.entries(e),l=r.length;for(let i=0;i<l;i++){let[u,c]=r[i];_a(c,Qt(a,u),o,t);}},Qt=(e,a)=>{let o=e,t=a.split("-"),r=t.length;for(let l=0;l<r;l++){let i=t[l],u=o.nextPart.get(i);u||(u=Kt(),o.nextPart.set(i,u)),o=u;}return o},ls=e=>"isThemeGetter"in e&&e.isThemeGetter===true,ds=e=>{if(e<1)return {get:()=>{},set:()=>{}};let a=0,o=Object.create(null),t=Object.create(null),r=(l,i)=>{o[l]=i,a++,a>e&&(a=0,t=o,o=Object.create(null));};return {get(l){let i=o[l];if(i!==void 0)return i;if((i=t[l])!==void 0)return r(l,i),i},set(l,i){l in o?o[l]=i:r(l,i);}}};var ns=[],Et=(e,a,o,t,r)=>({modifiers:e,hasImportantModifier:a,baseClassName:o,maybePostfixModifierPosition:t,isExternal:r}),is=e=>{let{prefix:a,experimentalParseClassName:o}=e,t=r=>{let l=[],i=0,u=0,c=0,p,m=r.length;for(let v=0;v<m;v++){let y=r[v];if(i===0&&u===0){if(y===":"){l.push(r.slice(c,v)),c=v+1;continue}if(y==="/"){p=v;continue}}y==="["?i++:y==="]"?i--:y==="("?u++:y===")"&&u--;}let b=l.length===0?r:r.slice(c),h=b,w=false;b.endsWith("!")?(h=b.slice(0,-1),w=true):b.startsWith("!")&&(h=b.slice(1),w=true);let k=p&&p>c?p-c:void 0;return Et(l,w,h,k)};if(a){let r=a+":",l=t;t=i=>i.startsWith(r)?l(i.slice(r.length)):Et(ns,false,i,void 0,true);}if(o){let r=t;t=l=>o({className:l,parseClassName:r});}return t},us=e=>{let a=new Map;return e.orderSensitiveModifiers.forEach((o,t)=>{a.set(o,1e6+t);}),o=>{let t=[],r=[];for(let l=0;l<o.length;l++){let i=o[l],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}},fs=e=>s({cache:ds(e.cacheSize),parseClassName:is(e),sortModifiers:us(e)},$r(e)),cs=/\s+/,ps=(e,a)=>{let{parseClassName:o,getClassGroupId:t,getConflictingClassGroupIds:r,sortModifiers:l}=a,i=[],u=e.trim().split(cs),c="";for(let p=u.length-1;p>=0;p-=1){let m=u[p],{isExternal:b,modifiers:h,hasImportantModifier:w,baseClassName:k,maybePostfixModifierPosition:v}=o(m);if(b){c=m+(c.length>0?" "+c:c);continue}let y=!!v,R=t(y?k.substring(0,v):k);if(!R){if(!y){c=m+(c.length>0?" "+c:c);continue}if(R=t(k),!R){c=m+(c.length>0?" "+c:c);continue}y=false;}let C=h.length===0?"":h.length===1?h[0]:l(h).join(":"),I=w?C+"!":C,O=I+R;if(i.indexOf(O)>-1)continue;i.push(O);let B=r(R,y);for(let M=0;M<B.length;++M){let Y=B[M];i.push(I+Y);}c=m+(c.length>0?" "+c:c);}return c},ms=(...e)=>{let a=0,o,t,r="";for(;a<e.length;)(o=e[a++])&&(t=jt(o))&&(r&&(r+=" "),r+=t);return r},jt=e=>{if(typeof e=="string")return e;let a,o="";for(let t=0;t<e.length;t++)e[t]&&(a=jt(e[t]))&&(o&&(o+=" "),o+=a);return o},Gt=(e,...a)=>{let o,t,r,l,i=c=>{let p=a.reduce((m,b)=>b(m),e());return o=fs(p),t=o.cache.get,r=o.cache.set,l=u,u(c)},u=c=>{let p=t(c);if(p)return p;let m=ps(c,o);return r(c,m),m};return l=i,(...c)=>l(ms(...c))},gs=[],z=e=>{let a=o=>o[e]||gs;return a.isThemeGetter=true,a},Jt=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,$t=/^\((?:(\w[\w-]*):)?(.+)\)$/i,xs=/^\d+\/\d+$/,hs=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,bs=/\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$/,Ls=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Cs=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Is=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Se=e=>xs.test(e),A=e=>!!e&&!Number.isNaN(Number(e)),ue=e=>!!e&&Number.isInteger(Number(e)),Ea=e=>e.endsWith("%")&&A(e.slice(0,-1)),oe=e=>hs.test(e),vs=()=>true,ks=e=>bs.test(e)&&!Ls.test(e),Yt=()=>false,Ss=e=>Cs.test(e),ys=e=>Is.test(e),Ps=e=>!g(e)&&!x(e),ws=e=>ye(e,to,Yt),g=e=>Jt.test(e),pe=e=>ye(e,oo,ks),Ga=e=>ye(e,Ds,A),_t=e=>ye(e,eo,Yt),Ts=e=>ye(e,ao,ys),na=e=>ye(e,ro,Ss),x=e=>$t.test(e),He=e=>Pe(e,oo),As=e=>Pe(e,Bs),Wt=e=>Pe(e,eo),Rs=e=>Pe(e,to),Ms=e=>Pe(e,ao),ia=e=>Pe(e,ro,true),ye=(e,a,o)=>{let t=Jt.exec(e);return t?t[1]?a(t[1]):o(t[2]):false},Pe=(e,a,o=false)=>{let t=$t.exec(e);return t?t[1]?a(t[1]):o:false},eo=e=>e==="position"||e==="percentage",ao=e=>e==="image"||e==="url",to=e=>e==="length"||e==="size"||e==="bg-size",oo=e=>e==="length",Ds=e=>e==="number",Bs=e=>e==="family-name",ro=e=>e==="shadow";var Xt=()=>{let e=z("color"),a=z("font"),o=z("text"),t=z("font-weight"),r=z("tracking"),l=z("leading"),i=z("breakpoint"),u=z("container"),c=z("spacing"),p=z("radius"),m=z("shadow"),b=z("inset-shadow"),h=z("text-shadow"),w=z("drop-shadow"),k=z("blur"),v=z("perspective"),y=z("aspect"),R=z("ease"),C=z("animate"),I=()=>["auto","avoid","all","avoid-page","page","left","right","column"],O=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],B=()=>[...O(),x,g],M=()=>["auto","hidden","clip","visible","scroll"],Y=()=>["auto","contain","none"],P=()=>[x,g,c],ae=()=>[Se,"full","auto",...P()],Rt=()=>[ue,"none","subgrid",x,g],Mt=()=>["auto",{span:["full",ue,x,g]},ue,x,g],ta=()=>[ue,"auto",x,g],Dt=()=>["auto","min","max","fr",x,g],Ha=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ke=()=>["start","end","center","stretch","center-safe","end-safe"],te=()=>["auto",...P()],ce=()=>[Se,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...P()],S=()=>[e,x,g],Bt=()=>[...O(),Wt,_t,{position:[x,g]}],Ft=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Nt=()=>["auto","cover","contain",Rs,ws,{size:[x,g]}],Ua=()=>[Ea,He,pe],E=()=>["","none","full",p,x,g],X=()=>["",A,He,pe],oa=()=>["solid","dashed","dotted","double"],qt=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],H=()=>[A,Ea,Wt,_t],Ot=()=>["","none",k,x,g],ra=()=>["none",A,x,g],sa=()=>["none",A,x,g],Va=()=>[A,x,g],la=()=>[Se,"full",...P()];return {cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[oe],breakpoint:[oe],color:[vs],container:[oe],"drop-shadow":[oe],ease:["in","out","in-out"],font:[Ps],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[oe],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[oe],shadow:[oe],spacing:["px",A],text:[oe],"text-shadow":[oe],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Se,g,x,y]}],container:["container"],columns:[{columns:[A,g,x,u]}],"break-after":[{"break-after":I()}],"break-before":[{"break-before":I()}],"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:B()}],overflow:[{overflow:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],overscroll:[{overscroll:Y()}],"overscroll-x":[{"overscroll-x":Y()}],"overscroll-y":[{"overscroll-y":Y()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:ae()}],"inset-x":[{"inset-x":ae()}],"inset-y":[{"inset-y":ae()}],start:[{start:ae()}],end:[{end:ae()}],top:[{top:ae()}],right:[{right:ae()}],bottom:[{bottom:ae()}],left:[{left:ae()}],visibility:["visible","invisible","collapse"],z:[{z:[ue,"auto",x,g]}],basis:[{basis:[Se,"full","auto",u,...P()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[A,Se,"auto","initial","none",g]}],grow:[{grow:["",A,x,g]}],shrink:[{shrink:["",A,x,g]}],order:[{order:[ue,"first","last","none",x,g]}],"grid-cols":[{"grid-cols":Rt()}],"col-start-end":[{col:Mt()}],"col-start":[{"col-start":ta()}],"col-end":[{"col-end":ta()}],"grid-rows":[{"grid-rows":Rt()}],"row-start-end":[{row:Mt()}],"row-start":[{"row-start":ta()}],"row-end":[{"row-end":ta()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Dt()}],"auto-rows":[{"auto-rows":Dt()}],gap:[{gap:P()}],"gap-x":[{"gap-x":P()}],"gap-y":[{"gap-y":P()}],"justify-content":[{justify:[...Ha(),"normal"]}],"justify-items":[{"justify-items":[...ke(),"normal"]}],"justify-self":[{"justify-self":["auto",...ke()]}],"align-content":[{content:["normal",...Ha()]}],"align-items":[{items:[...ke(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ke(),{baseline:["","last"]}]}],"place-content":[{"place-content":Ha()}],"place-items":[{"place-items":[...ke(),"baseline"]}],"place-self":[{"place-self":["auto",...ke()]}],p:[{p:P()}],px:[{px:P()}],py:[{py:P()}],ps:[{ps:P()}],pe:[{pe:P()}],pt:[{pt:P()}],pr:[{pr:P()}],pb:[{pb:P()}],pl:[{pl:P()}],m:[{m:te()}],mx:[{mx:te()}],my:[{my:te()}],ms:[{ms:te()}],me:[{me:te()}],mt:[{mt:te()}],mr:[{mr:te()}],mb:[{mb:te()}],ml:[{ml:te()}],"space-x":[{"space-x":P()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":P()}],"space-y-reverse":["space-y-reverse"],size:[{size:ce()}],w:[{w:[u,"screen",...ce()]}],"min-w":[{"min-w":[u,"screen","none",...ce()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[i]},...ce()]}],h:[{h:["screen","lh",...ce()]}],"min-h":[{"min-h":["screen","lh","none",...ce()]}],"max-h":[{"max-h":["screen","lh",...ce()]}],"font-size":[{text:["base",o,He,pe]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[t,x,Ga]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ea,g]}],"font-family":[{font:[As,g,a]}],"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,x,g]}],"line-clamp":[{"line-clamp":[A,"none",x,Ga]}],leading:[{leading:[l,...P()]}],"list-image":[{"list-image":["none",x,g]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",x,g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:S()}],"text-color":[{text:S()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...oa(),"wavy"]}],"text-decoration-thickness":[{decoration:[A,"from-font","auto",x,pe]}],"text-decoration-color":[{decoration:S()}],"underline-offset":[{"underline-offset":[A,"auto",x,g]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",x,g]}],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",x,g]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Bt()}],"bg-repeat":[{bg:Ft()}],"bg-size":[{bg:Nt()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ue,x,g],radial:["",x,g],conic:[ue,x,g]},Ms,Ts]}],"bg-color":[{bg:S()}],"gradient-from-pos":[{from:Ua()}],"gradient-via-pos":[{via:Ua()}],"gradient-to-pos":[{to:Ua()}],"gradient-from":[{from:S()}],"gradient-via":[{via:S()}],"gradient-to":[{to:S()}],rounded:[{rounded:E()}],"rounded-s":[{"rounded-s":E()}],"rounded-e":[{"rounded-e":E()}],"rounded-t":[{"rounded-t":E()}],"rounded-r":[{"rounded-r":E()}],"rounded-b":[{"rounded-b":E()}],"rounded-l":[{"rounded-l":E()}],"rounded-ss":[{"rounded-ss":E()}],"rounded-se":[{"rounded-se":E()}],"rounded-ee":[{"rounded-ee":E()}],"rounded-es":[{"rounded-es":E()}],"rounded-tl":[{"rounded-tl":E()}],"rounded-tr":[{"rounded-tr":E()}],"rounded-br":[{"rounded-br":E()}],"rounded-bl":[{"rounded-bl":E()}],"border-w":[{border:X()}],"border-w-x":[{"border-x":X()}],"border-w-y":[{"border-y":X()}],"border-w-s":[{"border-s":X()}],"border-w-e":[{"border-e":X()}],"border-w-t":[{"border-t":X()}],"border-w-r":[{"border-r":X()}],"border-w-b":[{"border-b":X()}],"border-w-l":[{"border-l":X()}],"divide-x":[{"divide-x":X()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":X()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...oa(),"hidden","none"]}],"divide-style":[{divide:[...oa(),"hidden","none"]}],"border-color":[{border:S()}],"border-color-x":[{"border-x":S()}],"border-color-y":[{"border-y":S()}],"border-color-s":[{"border-s":S()}],"border-color-e":[{"border-e":S()}],"border-color-t":[{"border-t":S()}],"border-color-r":[{"border-r":S()}],"border-color-b":[{"border-b":S()}],"border-color-l":[{"border-l":S()}],"divide-color":[{divide:S()}],"outline-style":[{outline:[...oa(),"none","hidden"]}],"outline-offset":[{"outline-offset":[A,x,g]}],"outline-w":[{outline:["",A,He,pe]}],"outline-color":[{outline:S()}],shadow:[{shadow:["","none",m,ia,na]}],"shadow-color":[{shadow:S()}],"inset-shadow":[{"inset-shadow":["none",b,ia,na]}],"inset-shadow-color":[{"inset-shadow":S()}],"ring-w":[{ring:X()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:S()}],"ring-offset-w":[{"ring-offset":[A,pe]}],"ring-offset-color":[{"ring-offset":S()}],"inset-ring-w":[{"inset-ring":X()}],"inset-ring-color":[{"inset-ring":S()}],"text-shadow":[{"text-shadow":["none",h,ia,na]}],"text-shadow-color":[{"text-shadow":S()}],opacity:[{opacity:[A,x,g]}],"mix-blend":[{"mix-blend":[...qt(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":qt()}],"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":[A]}],"mask-image-linear-from-pos":[{"mask-linear-from":H()}],"mask-image-linear-to-pos":[{"mask-linear-to":H()}],"mask-image-linear-from-color":[{"mask-linear-from":S()}],"mask-image-linear-to-color":[{"mask-linear-to":S()}],"mask-image-t-from-pos":[{"mask-t-from":H()}],"mask-image-t-to-pos":[{"mask-t-to":H()}],"mask-image-t-from-color":[{"mask-t-from":S()}],"mask-image-t-to-color":[{"mask-t-to":S()}],"mask-image-r-from-pos":[{"mask-r-from":H()}],"mask-image-r-to-pos":[{"mask-r-to":H()}],"mask-image-r-from-color":[{"mask-r-from":S()}],"mask-image-r-to-color":[{"mask-r-to":S()}],"mask-image-b-from-pos":[{"mask-b-from":H()}],"mask-image-b-to-pos":[{"mask-b-to":H()}],"mask-image-b-from-color":[{"mask-b-from":S()}],"mask-image-b-to-color":[{"mask-b-to":S()}],"mask-image-l-from-pos":[{"mask-l-from":H()}],"mask-image-l-to-pos":[{"mask-l-to":H()}],"mask-image-l-from-color":[{"mask-l-from":S()}],"mask-image-l-to-color":[{"mask-l-to":S()}],"mask-image-x-from-pos":[{"mask-x-from":H()}],"mask-image-x-to-pos":[{"mask-x-to":H()}],"mask-image-x-from-color":[{"mask-x-from":S()}],"mask-image-x-to-color":[{"mask-x-to":S()}],"mask-image-y-from-pos":[{"mask-y-from":H()}],"mask-image-y-to-pos":[{"mask-y-to":H()}],"mask-image-y-from-color":[{"mask-y-from":S()}],"mask-image-y-to-color":[{"mask-y-to":S()}],"mask-image-radial":[{"mask-radial":[x,g]}],"mask-image-radial-from-pos":[{"mask-radial-from":H()}],"mask-image-radial-to-pos":[{"mask-radial-to":H()}],"mask-image-radial-from-color":[{"mask-radial-from":S()}],"mask-image-radial-to-color":[{"mask-radial-to":S()}],"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":O()}],"mask-image-conic-pos":[{"mask-conic":[A]}],"mask-image-conic-from-pos":[{"mask-conic-from":H()}],"mask-image-conic-to-pos":[{"mask-conic-to":H()}],"mask-image-conic-from-color":[{"mask-conic-from":S()}],"mask-image-conic-to-color":[{"mask-conic-to":S()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Bt()}],"mask-repeat":[{mask:Ft()}],"mask-size":[{mask:Nt()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",x,g]}],filter:[{filter:["","none",x,g]}],blur:[{blur:Ot()}],brightness:[{brightness:[A,x,g]}],contrast:[{contrast:[A,x,g]}],"drop-shadow":[{"drop-shadow":["","none",w,ia,na]}],"drop-shadow-color":[{"drop-shadow":S()}],grayscale:[{grayscale:["",A,x,g]}],"hue-rotate":[{"hue-rotate":[A,x,g]}],invert:[{invert:["",A,x,g]}],saturate:[{saturate:[A,x,g]}],sepia:[{sepia:["",A,x,g]}],"backdrop-filter":[{"backdrop-filter":["","none",x,g]}],"backdrop-blur":[{"backdrop-blur":Ot()}],"backdrop-brightness":[{"backdrop-brightness":[A,x,g]}],"backdrop-contrast":[{"backdrop-contrast":[A,x,g]}],"backdrop-grayscale":[{"backdrop-grayscale":["",A,x,g]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[A,x,g]}],"backdrop-invert":[{"backdrop-invert":["",A,x,g]}],"backdrop-opacity":[{"backdrop-opacity":[A,x,g]}],"backdrop-saturate":[{"backdrop-saturate":[A,x,g]}],"backdrop-sepia":[{"backdrop-sepia":["",A,x,g]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":P()}],"border-spacing-x":[{"border-spacing-x":P()}],"border-spacing-y":[{"border-spacing-y":P()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",x,g]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[A,"initial",x,g]}],ease:[{ease:["linear","initial",R,x,g]}],delay:[{delay:[A,x,g]}],animate:[{animate:["none",C,x,g]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[v,x,g]}],"perspective-origin":[{"perspective-origin":B()}],rotate:[{rotate:ra()}],"rotate-x":[{"rotate-x":ra()}],"rotate-y":[{"rotate-y":ra()}],"rotate-z":[{"rotate-z":ra()}],scale:[{scale:sa()}],"scale-x":[{"scale-x":sa()}],"scale-y":[{"scale-y":sa()}],"scale-z":[{"scale-z":sa()}],"scale-3d":["scale-3d"],skew:[{skew:Va()}],"skew-x":[{"skew-x":Va()}],"skew-y":[{"skew-y":Va()}],transform:[{transform:[x,g,"","none","gpu","cpu"]}],"transform-origin":[{origin:B()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:la()}],"translate-x":[{"translate-x":la()}],"translate-y":[{"translate-y":la()}],"translate-z":[{"translate-z":la()}],"translate-none":["translate-none"],accent:[{accent:S()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:S()}],"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",x,g]}],"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":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"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",x,g]}],fill:[{fill:["none",...S()]}],"stroke-w":[{stroke:[A,He,pe,Ga]}],stroke:[{stroke:["none",...S()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","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","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","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-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-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-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-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"]}},Fs=(e,{cacheSize:a,prefix:o,experimentalParseClassName:t,extend:r={},override:l={}})=>(Ue(e,"cacheSize",a),Ue(e,"prefix",o),Ue(e,"experimentalParseClassName",t),ua(e.theme,l.theme),ua(e.classGroups,l.classGroups),ua(e.conflictingClassGroups,l.conflictingClassGroups),ua(e.conflictingClassGroupModifiers,l.conflictingClassGroupModifiers),Ue(e,"orderSensitiveModifiers",l.orderSensitiveModifiers),fa(e.theme,r.theme),fa(e.classGroups,r.classGroups),fa(e.conflictingClassGroups,r.conflictingClassGroups),fa(e.conflictingClassGroupModifiers,r.conflictingClassGroupModifiers),so(e,r,"orderSensitiveModifiers"),e),Ue=(e,a,o)=>{o!==void 0&&(e[a]=o);},ua=(e,a)=>{if(a)for(let o in a)Ue(e,o,a[o]);},fa=(e,a)=>{if(a)for(let o in a)so(e,a,o);},so=(e,a,o)=>{let t=a[o];t!==void 0&&(e[o]=e[o]?e[o].concat(t):t);},lo=(e,...a)=>typeof e=="function"?Gt(Xt,e,...a):Gt(()=>Fs(Xt(),e),...a);var qs=lo({extend:{classGroups:{"font-size":["text-xxs","text-xs","text-sm","text-md","text-lg","text-xl","text-2xl","text-3xl","text-4xl","text-5xl","text-6xl","text-7xl","text-8xl","text-9xl"]}}});function d(...e){return qs(clsx.clsx(e))}var Wa=react.createContext(null),co=classVarianceAuthority.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 Hs(l){var i=l,{className:e,variant:a="regular",onClose:o,children:t}=i,r=n(i,["className","variant","onClose","children"]);let u=react.Children.toArray(t).some(p=>react.isValidElement(p)&&p.type===mo),c=react.Children.toArray(t).some(p=>react.isValidElement(p)&&p.type===po);return jsxRuntime.jsx(Wa.Provider,{value:{variant:a,hasDescription:u,hasTitle:c,onClose:o},children:jsxRuntime.jsxs("div",f(s({"data-slot":"alert",role:"alert",className:d(co({variant:a}),e)},r),{children:[t,o&&jsxRuntime.jsx(icons.CloseMd,{"aria-label":"alert-close",onClick:o,className:"absolute right-4 top-2 !size-4 cursor-pointer !text-gray-foreground"})]}))})}function Us(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"alert-container",className:d("flex gap-3",e)},a))}function Vs(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"alert-content",className:d("flex flex-col gap-1",e)},a))}function Es(t){var r=t,{className:e,icon:a}=r,o=n(r,["className","icon"]);return jsxRuntime.jsx("div",f(s({"data-slot":"alert-icon",className:d("size-6",e)},o),{children:a}))}function po(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"alert-title",className:d("line-clamp-1 min-h-4 text-md font-medium",e)},a))}function mo(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"alert-description",className:d("!line-clamp-3 grid justify-items-start gap-1 text-sm leading-5",e)},a))}function Gs(o){var t=o,{className:e}=t,a=n(t,["className"]);let r=react.useContext(Wa),l=(r==null?void 0:r.hasDescription)||false,i=(r==null?void 0:r.hasTitle)||false,u=r==null?void 0:r.onClose;return jsxRuntime.jsx("div",s({"data-slot":"alert-actions",className:d("relative mt-2 flex flex-wrap items-center gap-x-2 lg:mt-0 lg:flex-nowrap",(!l||!i)&&u&&"lg:right-5",e)},a))}var go=classVarianceAuthority.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 _s(t){var r=t,{className:e,variant:a}=r,o=n(r,["className","variant"]);let l=react.useContext(Wa),i=(l==null?void 0:l.variant)||"regular";return jsxRuntime.jsx("button",s({className:d(go({variant:a,alertVariant:i}),e)},o))}function Xa({size:e=24,className:a}){return jsxRuntime.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:d("animate-spin",a),children:jsxRuntime.jsx("path",{d:"M21 12a9 9 0 1 1-6.219-8.56"})})}var Qs={sm:"size-4 p-0",md:"size-5 p-0",lg:"size-6 p-0",xl:"size-7 p-0"},js={sm:"px-1",md:"px-1",lg:"px-1",xl:"px-1.5"},ho=classVarianceAuthority.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 me(u){var c=u,{className:e,variant:a,size:o,icon:t,animation:r,asChild:l=false}=c,i=n(c,["className","variant","size","icon","animation","asChild"]);let p=l?radixUi.Slot.Slot:"span",m=react.Children.count(i.children)>0,b=!!t&&!m,h=typeof i.children=="string"||typeof i.children=="number"?String(i.children).trim():"",w=/^[A-Za-z0-9]$/.test(h),k=/^[A-Za-z0-9]{2,3}$/.test(h),v=/^\d{1,2}\S$/.test(h),y=k||v;return jsxRuntime.jsxs(p,f(s({"data-slot":"badge",className:d(ho({variant:a,size:o}),(b||w)&&Qs[o||"md"],!b&&y&&js[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 el={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"},bo={sm:"size-2",md:"size-2.5",lg:"size-2.5",xl:"size-3"},al={sm:"sm",md:"md",lg:"md",xl:"lg"},Ve=classVarianceAuthority.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 K(b){var h=b,{className:e,containerClassName:a,variant:o,size:t,asChild:r=false,iconRight:l,iconLeft:i,badge:u,loading:c=false,alert:p}=h,m=n(h,["className","containerClassName","variant","size","asChild","iconRight","iconLeft","badge","loading","alert"]);let w=r?radixUi.Slot.Slot:"button",k=I=>I!=null&&I!==0&&I!==""&&I!=="0",v=I=>I,y=!m.children&&(i||l||p),R=()=>p?jsxRuntime.jsxs("span",{className:d("relative mr-1 flex size-2.5",bo[t||"md"]),children:[jsxRuntime.jsx("span",{className:"absolute inline-flex h-full w-full animate-ping rounded-full opacity-75",style:{backgroundColor:p}}),jsxRuntime.jsx("span",{className:d("relative inline-flex size-2.5 rounded-full",bo[t||"md"]),style:{backgroundColor:p}})]}):null,C=()=>c?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Xa,{className:"[grid-area:stack]"}),jsxRuntime.jsx("span",{className:d("[grid-area:stack]",c&&"invisible"),children:m.children})]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[p?R():i&&v(i),m.children&&jsxRuntime.jsx("span",{children:m.children}),l&&v(l)]});return jsxRuntime.jsxs("div",{className:d("relative",a),children:[k(u)&&jsxRuntime.jsx(me,{size:al[t||"md"],variant:"regular",className:d("absolute -right-2 -top-1 z-10"),role:"status","aria-label":`${u}-notifications`,children:String(u)}),jsxRuntime.jsx(w,f(s({disabled:c,"aria-busy":c,"aria-live":c?"polite":void 0,"data-slot":"button",className:d(y&&el[t||"md"],c&&"!inline-grid",Ve({variant:o,size:t,className:e}))},m),{children:C()}))]})}function tl(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.AlertDialog.Root,s({"data-slot":"alert-dialog"},e))}function ol(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.AlertDialog.Trigger,s({"data-slot":"alert-dialog-trigger"},e))}function Co(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.AlertDialog.Portal,s({"data-slot":"alert-dialog-portal"},e))}function Io(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.AlertDialog.Overlay,s({"data-slot":"alert-dialog-overlay",className:d("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 rl(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsxs(Co,{children:[jsxRuntime.jsx(Io,{}),jsxRuntime.jsx(radixUi.AlertDialog.Content,s({"data-slot":"alert-dialog-content",className:d("fixed left-1/2 top-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-lg border bg-surface-elevated p-6 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)},a))]})}function sl(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"alert-dialog-header",className:d("flex flex-col gap-2 text-center sm:text-left",e)},a))}function ll(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"alert-dialog-footer",className:d("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e)},a))}function dl(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.AlertDialog.Title,s({"data-slot":"alert-dialog-title",className:d("text-lg font-semibold",e)},a))}function nl(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.AlertDialog.Description,s({"data-slot":"alert-dialog-description",className:d("text-sm text-foreground",e)},a))}function il(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.AlertDialog.Action,s({className:d(Ve(),e)},a))}function ul(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.AlertDialog.Cancel,s({className:d(Ve({variant:"outlined"}),e)},a))}function we(r){var l=r,{className:e,orientation:a="horizontal",decorative:o=true}=l,t=n(l,["className","orientation","decorative"]);return jsxRuntime.jsx(radixUi.Separator.Root,s({"data-slot":"separator-root",decorative:o,orientation:a,className:d("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 hl(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.Dialog.Root,s({"data-slot":"dialog"},e))}function bl(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.Dialog.Trigger,s({"data-slot":"dialog-trigger"},e))}function vo(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.Dialog.Portal,s({"data-slot":"dialog-portal"},e))}function Ll(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.Dialog.Close,s({"data-slot":"dialog-close"},e))}function ko(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.Dialog.Overlay,s({"data-slot":"dialog-overlay",className:d("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 Cl(l){var i=l,{className:e,overlayClassName:a,children:o,showCloseButton:t=true}=i,r=n(i,["className","overlayClassName","children","showCloseButton"]);return jsxRuntime.jsxs(vo,{"data-slot":"dialog-portal",children:[jsxRuntime.jsx(ko,{className:a}),jsxRuntime.jsxs(radixUi.Dialog.Content,f(s({"data-slot":"dialog-container",className:d("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&&jsxRuntime.jsxs(radixUi.Dialog.Close,{"data-slot":"dialog-close",className:"rounded-xs focus:outline-hidden absolute right-4 top-4 disabled:pointer-events-none data-[state=open]:text-gray-foreground [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",children:[jsxRuntime.jsx(icons.CloseMd,{}),jsxRuntime.jsx("span",{className:"sr-only",children:"Close"})]})]}))]})}function Il({className:e,children:a}){return jsxRuntime.jsx("div",{className:"overflow-y-auto",children:jsxRuntime.jsx("div",{"data-slot":"dialog-content",className:d("px-8 py-6 text-md leading-md text-primary-foreground",e),children:a})})}function vl(t){var r=t,{className:e,separator:a=false}=r,o=n(r,["className","separator"]);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",s({"data-slot":"dialog-header",className:d("flex flex-col gap-2 px-8 py-6 text-center sm:text-left",e)},o)),a&&jsxRuntime.jsx(we,{})]})}function kl(t){var r=t,{className:e,separator:a=false}=r,o=n(r,["className","separator"]);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[a&&jsxRuntime.jsx(we,{}),jsxRuntime.jsx("div",s({"data-slot":"dialog-footer",className:d("flex flex-col-reverse gap-2 px-8 py-6 sm:flex-row sm:justify-end",e)},o))]})}function Sl(l){var i=l,{className:e,iconLeft:a,iconRight:o,children:t}=i,r=n(i,["className","iconLeft","iconRight","children"]);let u=c=>react.isValidElement(c)?react.cloneElement(c,{size:32,strokeWidth:2.2}):c;return jsxRuntime.jsxs(radixUi.Dialog.Title,f(s({"data-slot":"dialog-title",className:d("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 yl(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.Dialog.Description,s({"data-slot":"dialog-description",className:d("text-md leading-md text-content-paragraph",e)},a))}function yo(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(cmdk.Command,s({className:d("flex size-full flex-col overflow-hidden rounded-md bg-surface-card text-gray-foreground",e),"data-slot":"command"},a))}function Po(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsxs("div",{className:"flex items-center border-b border-gray-stroke-muted px-4","cmdk-input-wrapper":"",children:[jsxRuntime.jsx(cmdk.Command.Input,s({className:d("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)),jsxRuntime.jsx(icons.SearchMagnifyingGlass,{className:"text-gray-foreground-muted",size:24})]})}function wo(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(cmdk.Command.List,s({className:d("max-h-80 flex-1 overflow-y-auto overflow-x-hidden",e),"data-slot":"command-list"},a))}function To(a){var e=n(a,[]);return jsxRuntime.jsx(cmdk.Command.Empty,s({className:"py-6 text-center text-sm","data-slot":"command-empty"},e))}function Ao(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(cmdk.Command.Group,s({className:d("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 Ro(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(cmdk.Command.Item,s({className:d("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 Mo(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.Popover.Root,s({"data-slot":"popover"},e))}function Do(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.Popover.Trigger,s({"data-slot":"popover-trigger"},e))}function Bo(l){var i=l,{className:e,align:a="center",sideOffset:o=4,showArrow:t=false}=i,r=n(i,["className","align","sideOffset","showArrow"]);return jsxRuntime.jsx(radixUi.Popover.Portal,{children:jsxRuntime.jsxs(radixUi.Popover.Content,f(s({align:a,className:d("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&&jsxRuntime.jsx(radixUi.Popover.Arrow,{className:"-my-px fill-gray-foreground drop-shadow-[0_1px_0_var(--border)]"})]}))})}var Me=react.createContext({invalid:false,disabled:false,open:false,setOpen:()=>{},values:[],toggleValue:()=>{},onCancelSelection:()=>{},listId:""});function Dl({children:e,invalid:a=false,disabled:o=false,values:t,onValuesChange:r,open:l,onOpenChange:i,defaultValues:u=[]}){let[c,p]=react.useState(u),[m,b]=react.useState(false),[h,w]=react.useState([]),k=t!==void 0,v=l!==void 0,y=k?t:c,R=v?l:m,C=M=>{let Y=y.includes(M)?y.filter(P=>P!==M):[...y,M];k||p(Y),r==null||r(Y);},I=M=>{o||(M&&w(y),v||b(M),i==null||i(M));},O=()=>{k||p(h),r==null||r(h);},B=react.useId();return jsxRuntime.jsx(Me.Provider,{value:{invalid:a,disabled:o,open:R,setOpen:I,values:y,toggleValue:C,onCancelSelection:O,listId:B},children:jsxRuntime.jsx(Mo,{open:R,onOpenChange:I,children:e})})}function Bl(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({className:d("group relative flex flex-col gap-2",e),"data-slot":"autocomplete-wrapper"},a))}function Fl(r){var l=r,{className:e,placeholder:a="Select an option",children:o}=l,t=n(l,["className","placeholder","children"]);let{invalid:i,disabled:u,open:c,values:p,listId:m}=react.useContext(Me),b=react.useId(),h=p.length>0;return jsxRuntime.jsx(Do,{asChild:true,children:jsxRuntime.jsxs("button",f(s({"aria-controls":m,"aria-expanded":c,"aria-invalid":i||void 0,className:d("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:b,role:"combobox",type:"button"},t),{children:[jsxRuntime.jsx("span",{className:"truncate text-gray-foreground-emphasis",children:o!=null?o:a}),jsxRuntime.jsx(icons.ChevronDown,{"aria-hidden":"true",className:"shrink-0 text-gray-foreground",size:24,strokeWidth:1.6})]}))})}function Za({className:e,cancelLabel:a="Cancel",confirmLabel:o="Done",onCancel:t,onConfirm:r}){let{setOpen:l,onCancelSelection:i,values:u}=react.useContext(Me);return jsxRuntime.jsxs("div",{className:d("flex items-center justify-between border-t border-gray-stroke-muted px-4 py-3",e),"data-slot":"autocomplete-content-footer",children:[jsxRuntime.jsx(K,{size:"sm",variant:"regular-soft",onClick:()=>{i(),t==null||t(),l(false);},children:a}),jsxRuntime.jsx(K,{size:"sm",variant:"emphasis",iconLeft:jsxRuntime.jsx(icons.Check,{strokeWidth:2.6}),onClick:()=>{r==null||r(u),l(false);},children:o})]})}function Nl({children:e,className:a,searchPlaceholder:o="Search...",emptyMessage:t="No results found."}){let r=react.Children.toArray(e),l=r.filter(u=>react.isValidElement(u)&&u.type===Za),i=r.filter(u=>!(react.isValidElement(u)&&u.type===Za));return jsxRuntime.jsxs(Bo,{align:"start",className:d("w-full min-w-[var(--radix-popper-anchor-width)] border-gray-stroke-muted p-0",a),children:[jsxRuntime.jsxs(yo,{children:[jsxRuntime.jsx(Po,{placeholder:o}),jsxRuntime.jsxs(wo,{id:react.useContext(Me).listId,children:[jsxRuntime.jsx(To,{children:t}),i]})]}),l]})}function ql({children:e,value:a,className:o,disabled:t=false}){let{values:r,toggleValue:l}=react.useContext(Me),i=r.includes(a);return jsxRuntime.jsxs(Ro,{className:d("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",o),disabled:t,onSelect:()=>{l(a);},value:a,children:[jsxRuntime.jsx("span",{className:d("inline-flex size-[18px] shrink-0 items-center justify-center rounded-sm border-2 transition-all",i?"border-primary-background-fill bg-primary-background-fill":"border-gray-stroke-muted bg-surface-card"),children:i&&jsxRuntime.jsx(icons.Check,{size:12,strokeWidth:2.6,className:"text-primary-foreground-onfill"})}),e]})}function Ol(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(Ao,s({className:e},a))}function zl(o){var t=o,{className:e}=t,a=n(t,["className"]);let{invalid:r}=react.useContext(Me);return jsxRuntime.jsx("span",s({className:d("-mt-1 text-xs",r?"text-feedback-error-foreground":"text-gray-foreground",e),"data-slot":"autocomplete-text"},a))}var Vl={sm:"sm",md:"md",lg:"md",xl:"lg"},Oo=classVarianceAuthority.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 ja(l){var i=l,{className:e,size:a,badge:o,children:t}=i,r=n(i,["className","size","badge","children"]);return jsxRuntime.jsxs("div",{className:"relative",children:[o&&jsxRuntime.jsx(me,{size:Vl[a||"md"],className:d("absolute -right-2 -top-1 z-10"),children:String(o)}),jsxRuntime.jsx(radixUi.Avatar.Root,f(s({"data-slot":"avatar",className:d(Oo({size:a,className:e}))},r),{children:t}))]})}function Ja(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.Avatar.Image,s({"data-slot":"avatar-image",className:d("size-full object-cover",e)},a))}function $a(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.Avatar.Fallback,f(s({"data-slot":"avatar-fallback",className:d("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:jsxRuntime.jsx(icons.User,{className:"size-1/2"})}))}function Ya(a){var e=n(a,[]);return jsxRuntime.jsx("nav",s({"aria-label":"breadcrumb","data-slot":"breadcrumb"},e))}function et(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("ol",s({className:d("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 Xl(r){var l=r,{className:e,icon:a,children:o}=l,t=n(l,["className","icon","children"]);return jsxRuntime.jsx("li",f(s({className:d("inline-flex items-center gap-1.5 [&_svg]:text-primary-foreground",e),"data-slot":"breadcrumb-item"},t),{children:jsxRuntime.jsxs("span",{className:"inline-flex items-center gap-2",children:[a&&a,o]})}))}function Kl(t){var r=t,{asChild:e,className:a}=r,o=n(r,["asChild","className"]);let l=e?radixUi.Slot.Root:"a";return jsxRuntime.jsx(l,s({className:d("transition-colors hover:underline",a),"data-slot":"breadcrumb-link"},o))}function Zl(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("span",s({"aria-current":"page","aria-disabled":"true",className:d("font-semibold text-primary-foreground",e),"data-slot":"breadcrumb-page",role:"link"},a))}function Ql(t){var r=t,{children:e,className:a}=r,o=n(r,["children","className"]);return jsxRuntime.jsx("li",f(s({"aria-hidden":"true",className:a,"data-slot":"breadcrumb-separator",role:"presentation"},o),{children:e!=null?e:jsxRuntime.jsx(icons.ChevronRightMd,{className:"text-gray-foreground",strokeWidth:1.33,size:20})}))}function jl(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsxs("span",f(s({"aria-hidden":"true",className:d("flex size-5 items-center justify-center",e),"data-slot":"breadcrumb-ellipsis",role:"presentation"},a),{children:[jsxRuntime.jsx(icons.MoreHorizontal,{className:"text-gray-foreground",size:18}),jsxRuntime.jsx("span",{className:"sr-only",children:"More"})]}))}var Ho=classVarianceAuthority.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"}},defaultVariants:{variant:"regular"}});function Yl(t){var r=t,{className:e,icon:a}=r,o=n(r,["className","icon"]);return jsxRuntime.jsx("div",f(s({"data-slot":"tag-icon",className:d("[&>svg]:size-3.5",e)},o),{children:a}))}function De(i){var u=i,{className:e,variant:a,asChild:o=false,icon:t,children:r}=u,l=n(u,["className","variant","asChild","icon","children"]);let c=o?radixUi.Slot.Slot:"span";return jsxRuntime.jsxs(c,f(s({"data-slot":"tag",className:d(Ho({variant:a}),e)},l),{children:[t&&jsxRuntime.jsx(Yl,{icon:t}),r]}))}function at(m){var b=m,{className:e,indicatorClassName:a,trackClassName:o,valueClassName:t,label:r,labelClassName:l,value:i=0,size:u=96,strokeWidth:c=2}=b,p=n(b,["className","indicatorClassName","trackClassName","valueClassName","label","labelClassName","value","size","strokeWidth"]);let h=typeof i=="string",w=h?0:i,k=(u-c)/2,v=k*2*Math.PI,y=v-w/100*v,R=Math.max(18,Math.min(u/5)),C=Math.max(10,Math.min(u/9,16));return jsxRuntime.jsxs("div",f(s({"data-slot":"progress-circle",className:d("relative inline-flex items-center justify-center",e),style:{width:u,height:u}},p),{children:[jsxRuntime.jsxs("svg",{className:"absolute inset-0 -rotate-90",width:u,height:u,viewBox:`0 0 ${u} ${u}`,children:[jsxRuntime.jsx("circle",{"data-slot":"progress-circle-track",cx:u/2,cy:u/2,r:k,stroke:"currentColor",strokeWidth:c,fill:"none",className:d("text-gray-stroke-muted",o)}),jsxRuntime.jsx("circle",{"data-slot":"progress-circle-indicator",cx:u/2,cy:u/2,r:k,stroke:"currentColor",strokeWidth:c,fill:"none",strokeDasharray:v,strokeDashoffset:y,strokeLinecap:"round",className:d("text-primary-stroke transition-all duration-300 ease-in-out",a)})]}),jsxRuntime.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:[jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("span",{className:d("mr-px font-semibold",t),style:{fontSize:`${R}px`},children:i}),!h&&"%"]}),r&&jsxRuntime.jsx("div",{"data-slot":"progress-circle-label",className:d("text-center font-medium leading-tight text-gray-foreground-muted",l),style:{fontSize:`${C}px`},children:r})]})]}))}function rt(l){var i=l,{className:e,indicatorClassName:a,label:o,value:t}=i,r=n(i,["className","indicatorClassName","label","value"]);let u=Math.round(t||0);return jsxRuntime.jsxs("div",{className:"flex w-full flex-col gap-2",children:[o&&jsxRuntime.jsxs("div",{"data-slot":"progress-label",className:"text-xs font-medium text-gray-foreground-muted",children:[jsxRuntime.jsxs("span",{className:"font-semibold text-gray-foreground",children:[u,"%"]})," ",jsxRuntime.jsx("span",{children:o})]}),jsxRuntime.jsx(radixUi.Progress.Root,f(s({"data-slot":"progress",className:d("relative flex h-px w-full overflow-x-clip rounded-pill bg-gray-stroke-muted",e)},r),{children:jsxRuntime.jsx(radixUi.Progress.Indicator,{"data-slot":"progress-indicator",className:d("relative -top-[0.5px] flex h-0.5 w-full flex-1 bg-primary-stroke transition-all",a),style:{transform:`translateX(-${100-(t||0)}%)`}})}))]})}var We=react.createContext(null);function rd(l){var i=l,{className:e,done:a,postponed:o,skipped:t}=i,r=n(i,["className","done","postponed","skipped"]);let u=react.useMemo(()=>({done:a,postponed:o,skipped:t}),[a,o,t]);return jsxRuntime.jsx(We.Provider,{value:u,children:jsxRuntime.jsx("div",s({"data-slot":"card-week",className:d("flex flex-col overflow-hidden rounded-xl border border-gray-stroke-muted text-gray-foreground-muted",e)},r))})}function sd(l){var i=l,{className:e,children:a,tag:o,tagIcon:t}=i,r=n(i,["className","children","tag","tagIcon"]);return jsxRuntime.jsxs("div",f(s({"data-slot":"card-week-breadcrumb",className:d("flex items-center gap-4 bg-primary-background-soft-muted px-6 py-3",e)},r),{children:[jsxRuntime.jsx(Ya,{className:"flex-1 overflow-hidden",children:jsxRuntime.jsx(et,{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&&jsxRuntime.jsx(De,{variant:"regular-soft",icon:t,children:o})]}))}function ld(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"card-week-container",className:d("flex flex-1 flex-col gap-5 bg-surface-card px-6 py-5",e)},a))}function dd(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"card-week-header",className:d("flex justify-between [&.border-b]:pb-6",e)},a))}function nd(o){var t=o,{className:e}=t,a=n(t,["className"]);let r=react.useContext(We),l=r==null?void 0:r.done,i=r==null?void 0:r.postponed,u=r==null?void 0:r.skipped;return jsxRuntime.jsx("div",s({"data-slot":"card-week-title",className:d("text-lg font-semibold leading-lg text-primary-foreground",(l||i||u)&&"text-primary-foreground-muted line-through",e)},a))}function id(o){var t=o,{className:e}=t,a=n(t,["className"]);let r=react.useContext(We),l=r==null?void 0:r.done,i=r==null?void 0:r.postponed,u=r==null?void 0:r.skipped;return jsxRuntime.jsx("div",s({"data-slot":"card-week-description",className:d("text-xs font-semibold leading-xs text-gray-foreground",(l||i||u)&&"text-gray-foreground-muted",e)},a))}function ud(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"card-week-tags",className:d("flex flex-wrap items-center gap-2 [[data-slot=card-week-header]:not(:has([data-slot=card-week-progress]))+&]:mt-6",e)},a))}function fd(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",f(s({"data-slot":"card-week-progress-circle",className:d("flex flex-1 justify-end",e)},a),{children:jsxRuntime.jsx(at,s({size:104},a))}))}function cd(o){var t=o,{className:e}=t,a=n(t,["className"]);let r=react.useContext(We),l=r==null?void 0:r.done;return jsxRuntime.jsx("div",f(s({"data-slot":"card-week-progress",className:d("flex flex-1",e)},a),{children:jsxRuntime.jsx(rt,s({value:l?100:a.value},a))}))}function pd(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"card-week-footer",className:d("mt-auto flex flex-col gap-2",e)},a))}function md(t){var r=t,{className:e,children:a}=r,o=n(r,["className","children"]);return jsxRuntime.jsx("div",f(s({"data-slot":"card-week-content",className:d("flex flex-col text-xs font-medium",e)},o),{children:a}))}function gd(r){var l=r,{className:e,children:a,isTime:o}=l,t=n(l,["className","children","isTime"]);return jsxRuntime.jsxs("div",f(s({"data-slot":"card-week-text",className:d("flex items-center gap-1.5",o?"text-secondary-foreground":"text-gray-foreground-muted",e)},t),{children:[o&&jsxRuntime.jsx(icons.TimeRemaining,{size:16}),jsxRuntime.jsx("span",{children:a})]}))}function xd(o){var t=o,{className:e}=t,a=n(t,["className"]);let r=react.useContext(We),l=r==null?void 0:r.done,i=r==null?void 0:r.postponed,u=r==null?void 0:r.skipped;return !l&&!i&&!u?null:i||u?jsxRuntime.jsxs("div",f(s({"data-slot":"card-week-status",className:d("flex items-center gap-1.5",e)},a),{children:[jsxRuntime.jsx("div",{className:"flex size-4 items-center justify-center rounded-full bg-yellow-24 text-yellow-darken-4",children:jsxRuntime.jsx(icons.Check,{size:12,strokeWidth:1.67})}),jsxRuntime.jsx("div",{className:"font-semibold text-yellow-darken-4",children:i?"Adiado":"Pulado"})]})):jsxRuntime.jsxs("div",f(s({"data-slot":"card-week-status",className:d("flex items-center gap-1.5",e)},a),{children:[jsxRuntime.jsx("div",{className:"flex size-4 items-center justify-center rounded-full bg-secondary-background-soft text-secondary-foreground",children:jsxRuntime.jsx(icons.Check,{size:12,strokeWidth:1.67})}),jsxRuntime.jsx("div",{className:"font-semibold",children:"Feito"})]}))}function hd(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"card-week-actions",className:d("flex flex-wrap items-center justify-end gap-2 pt-4",e)},a))}var _o=classVarianceAuthority.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 Id(l){var i=l,{className:e,size:a,variant:o,uncheckIcon:t}=i,r=n(i,["className","size","variant","uncheckIcon"]);return jsxRuntime.jsx(radixUi.Checkbox.Root,f(s({"data-slot":"checkbox",className:d("group peer",_o({size:a,variant:o}),e)},r),{children:jsxRuntime.jsx(radixUi.Checkbox.Indicator,{"data-slot":"checkbox-indicator",className:"relative flex items-center justify-center",children:t?jsxRuntime.jsx(icons.RemoveMinus,{className:d("absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 text-primary-foreground-onfill"),strokeWidth:2.6}):jsxRuntime.jsx(icons.Check,{className:d("absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 text-primary-foreground-onfill"),strokeWidth:2.6})})}))}var Wo=react.createContext({animation:void 0});function Sd(o){var t=o,{animation:e}=t,a=n(t,["animation"]);return jsxRuntime.jsx(Wo.Provider,{value:{animation:e},children:jsxRuntime.jsx(radixUi.Collapsible.Root,s({"data-slot":"collapsible"},a))})}function yd(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.Collapsible.Trigger,s({"data-slot":"collapsible-trigger"},e))}function Pd(o){var t=o,{className:e}=t,a=n(t,["className"]);let{animation:r}=react.useContext(Wo),l={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 jsxRuntime.jsx(radixUi.Collapsible.Content,s({"data-slot":"collapsible-content",className:d(r&&l[r],e)},a))}var lt=768;function Xe(){let[e,a]=react.useState(void 0);return react.useEffect(()=>{let o=window.matchMedia(`(max-width: ${lt-1}px)`),t=()=>{a(window.innerWidth<lt);};return o.addEventListener("change",t),a(window.innerWidth<lt),()=>o.removeEventListener("change",t)},[]),!!e}function dt(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.DropdownMenu.Root,s({"data-slot":"dropdown-menu"},e))}function Rd(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.DropdownMenu.Portal,s({"data-slot":"dropdown-menu-portal"},e))}function nt(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.DropdownMenu.Trigger,s({className:d("cursor-pointer",e.className),"data-slot":"dropdown-menu-trigger"},e))}function it(r){var l=r,{className:e,sideOffset:a=4,side:o}=l,t=n(l,["className","sideOffset","side"]);let i=Xe();return jsxRuntime.jsx(radixUi.DropdownMenu.Portal,{children:jsxRuntime.jsx(radixUi.DropdownMenu.Content,s({"data-slot":"dropdown-menu-content",sideOffset:a,side:i?"bottom":o,className:d("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 Md(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.DropdownMenu.Group,s({"data-slot":"dropdown-menu-group"},e))}function Ca(r){var l=r,{className:e,inset:a,variant:o="default"}=l,t=n(l,["className","inset","variant"]);return jsxRuntime.jsx(radixUi.DropdownMenu.Item,s({"data-slot":"dropdown-menu-item","data-inset":a,"data-variant":o,className:d("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 Dd(r){var l=r,{className:e,children:a,checked:o}=l,t=n(l,["className","children","checked"]);return jsxRuntime.jsxs(radixUi.DropdownMenu.CheckboxItem,f(s({"data-slot":"dropdown-menu-checkbox-item",className:d("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:[jsxRuntime.jsx("span",{className:"flex min-w-0 flex-1 gap-2 break-words",children:a}),jsxRuntime.jsx("span",{className:"pointer-events-none absolute right-2 flex size-3.5 items-center justify-center",children:jsxRuntime.jsx(radixUi.DropdownMenu.ItemIndicator,{children:jsxRuntime.jsx(icons.Check,{className:"size-4"})})})]}))}function Ia(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.DropdownMenu.RadioGroup,s({"data-slot":"dropdown-menu-radio-group"},e))}function ut(t){var r=t,{className:e,children:a}=r,o=n(r,["className","children"]);return jsxRuntime.jsxs(radixUi.DropdownMenu.RadioItem,f(s({"data-slot":"dropdown-menu-radio-item",className:d("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:[jsxRuntime.jsx("span",{className:"flex min-w-0 flex-1 gap-2 break-words",children:a}),jsxRuntime.jsx("span",{className:"pointer-events-none absolute right-2 flex size-3.5 items-center justify-center",children:jsxRuntime.jsx(radixUi.DropdownMenu.ItemIndicator,{children:jsxRuntime.jsx(icons.Check,{className:"size-4"})})})]}))}function ft(t){var r=t,{className:e,inset:a}=r,o=n(r,["className","inset"]);return jsxRuntime.jsx(radixUi.DropdownMenu.Label,s({"data-slot":"dropdown-menu-label","data-inset":a,className:d("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 ct(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.DropdownMenu.Separator,s({"data-slot":"dropdown-menu-separator",className:d("-mx-3 my-2 h-px bg-gray-stroke-muted",e)},a))}function Bd(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("span",s({"data-slot":"dropdown-menu-shortcut",className:d("ml-auto text-xs tracking-widest text-gray-foreground",e)},a))}function Fd(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.DropdownMenu.Sub,s({"data-slot":"dropdown-menu-sub"},e))}function Nd(r){var l=r,{className:e,inset:a,children:o}=l,t=n(l,["className","inset","children"]);return jsxRuntime.jsxs(radixUi.DropdownMenu.SubTrigger,f(s({"data-slot":"dropdown-menu-sub-trigger","data-inset":a,className:d("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,jsxRuntime.jsx(icons.ChevronRight,{className:"ml-auto size-3"})]}))}function qd(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.DropdownMenu.SubContent,s({"data-slot":"dropdown-menu-sub-content",className:d("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))}function mt(t){var r=t,{className:e,type:a}=r,o=n(r,["className","type"]);return jsxRuntime.jsx("input",s({type:a,"data-slot":"input",className:d("placeholder:text-muted-foreground shadow-xs peer flex h-9 w-full min-w-0 rounded-md border border-gray-stroke-muted bg-transparent px-3 py-1 text-md outline-none transition-[color,box-shadow] selection:bg-primary selection:text-primary-foreground file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground disabled:pointer-events-none disabled:opacity-50 dark:bg-gray-300 md:text-sm","focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-red-8 aria-invalid:border-red",e)},o))}var Ko=classVarianceAuthority.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 Ud(l){var i=l,{className:e,variant:a,size:o,block:t}=i,r=n(i,["className","variant","size","block"]);return jsxRuntime.jsx(radixUi.Label.Root,s({"data-slot":"label",className:d(e,Ko({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 Ed({width:e=171,height:a=36,className:o,svgClassName:t}){return jsxRuntime.jsxs("svg",{className:d("dark:brightness-0 dark:invert",o),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 171 36",width:e,height:a,children:[jsxRuntime.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"}),jsxRuntime.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 Gd({width:e=60,height:a=67,className:o,svgClassName:t}){return jsxRuntime.jsx("svg",{className:d("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:jsxRuntime.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 Be={tablet:"600px",mobile:"320px"};function Qo(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("nav",s({role:"navigation","aria-label":"pagination",className:d("flex w-full items-center justify-between",e)},a))}function jo(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("ul",s({className:d("flex flex-row items-center gap-2",e)},a))}function gt(r){var l=r,{count:e,label:a="itens",className:o}=l,t=n(l,["count","label","className"]);return jsxRuntime.jsx("p",f(s({className:d("text-xs font-medium text-gray-foreground-muted",o)},t),{children:a==="itens"?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:["Mostrando"," ",jsxRuntime.jsx("span",{className:"font-semibold text-gray-foreground",children:e})," ",a]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("span",{className:"font-semibold text-gray-foreground",children:e})," ",a]})}))}function ka(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("li",s({className:d("",e)},a))}function Jo(p){var m=p,{className:e,isActive:a,iconLeft:o,iconRight:t,size:r="md",variant:l="regular",activeVariant:i,inactiveVariant:u}=m,c=n(m,["className","isActive","iconLeft","iconRight","size","variant","activeVariant","inactiveVariant"]);return jsxRuntime.jsx(K,f(s({"aria-current":a?"page":void 0,variant:a&&i?i:!a&&u?u:a?l:`${l}-soft`,className:d("",e),size:r,iconLeft:o,iconRight:t},c),{children:c.children}))}function $o(r){var l=r,{className:e,size:a="md",variant:o="regular-basic"}=l,t=n(l,["className","size","variant"]);return jsxRuntime.jsx(K,f(s({"aria-label":"Go to previous page",className:d("",e),iconLeft:jsxRuntime.jsx(icons.ChevronLeftDuo,{}),variant:o,size:a},t),{children:t.children||"Anterior"}))}function Yo(r){var l=r,{className:e,size:a="md",variant:o="regular-basic"}=l,t=n(l,["className","size","variant"]);return jsxRuntime.jsx(K,f(s({"aria-label":"Go to next page",className:d("",e),variant:o,iconRight:jsxRuntime.jsx(icons.ChevronRightDuo,{}),size:a},t),{children:t.children||"Pr\xF3ximo"}))}function er(t){var r=t,{className:e,size:a="md"}=r,o=n(r,["className","size"]);return jsxRuntime.jsx("span",f(s({"aria-hidden":true,className:d("flex items-center justify-center",{sm:"h-8 w-8",md:"h-9 w-9",lg:"h-10 w-10"}[a],e)},o),{children:jsxRuntime.jsx(icons.MoreHorizontal,{className:"h-4 w-4"})}))}function ar(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 l=1;l<=o+1;l++)t.push(l);o+1<a&&t.push(-1,a);}else if(e>=a-r){t.push(1),a-o>1&&t.push(-1);for(let l=a-o;l<=a;l++)t.push(l);}else {t.push(1,-1);for(let l=e-r;l<=e+r;l++)t.push(l);t.push(-1,a);}}return t}function jd({currentPage:e,totalPages:a,maxVisibleItems:o,onPageChange:t,itemsPerPage:r,totalItems:l,className:i,responsive:u=true,size:c="md"}){let[p,m]=react.useState(()=>typeof window=="undefined"?false:window.innerWidth<=parseInt(Be.tablet));react.useEffect(()=>{if(typeof window=="undefined"||!u)return;let k=parseInt(Be.tablet),v=()=>{m(window.innerWidth<=k);};return window.addEventListener("resize",v),v(),()=>window.removeEventListener("resize",v)},[u]);let b=typeof o=="number"?o:u&&p?0:2,h=u&&p,w=()=>ar(e,a,b);return jsxRuntime.jsxs(Qo,{className:d("",i),children:[r!==void 0&&!h?jsxRuntime.jsx(gt,{count:r,label:"itens"}):jsxRuntime.jsx("div",{}),jsxRuntime.jsxs(jo,{children:[jsxRuntime.jsx(ka,{children:jsxRuntime.jsx($o,{onClick:()=>t(Math.max(1,e-1)),disabled:e===1,size:c})}),w().map((k,v)=>jsxRuntime.jsx(ka,{children:k===-1?jsxRuntime.jsx(er,{size:c}):jsxRuntime.jsx(Jo,{onClick:()=>t(k),isActive:k===e,size:c,children:k})},v)),jsxRuntime.jsx(ka,{children:jsxRuntime.jsx(Yo,{onClick:()=>t(Math.min(a,e+1)),disabled:e===a,size:c})})]}),l!==void 0&&!h?jsxRuntime.jsx(gt,{count:l,label:"total"}):jsxRuntime.jsx("div",{})]})}var Yd={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"},tr=classVarianceAuthority.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 en(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.RadioGroup.Root,s({"data-slot":"radio-group",className:d("grid gap-3",e)},a))}function an(r){var l=r,{className:e,size:a,variant:o}=l,t=n(l,["className","size","variant"]);return jsxRuntime.jsx(radixUi.RadioGroup.Item,f(s({"data-slot":"radio-group-item",className:d("shadow-xs group peer aspect-square size-4 shrink-0 rounded-full outline-none transition-[color,box-shadow] disabled:cursor-not-allowed",tr({size:a,variant:o}),e)},t),{children:jsxRuntime.jsx(radixUi.RadioGroup.Indicator,{"data-slot":"radio-group-indicator",className:"relative flex items-center justify-center",children:jsxRuntime.jsx(icons.Circle,{className:d("absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 fill-surface-card",Yd[a||"md"])})})}))}function he(o){var t=o,{delayDuration:e=0}=t,a=n(t,["delayDuration"]);return jsxRuntime.jsx(radixUi.Tooltip.Provider,s({"data-slot":"tooltip-provider",delayDuration:e},a))}function be(a){var e=n(a,[]);return jsxRuntime.jsx(he,{children:jsxRuntime.jsx(radixUi.Tooltip.Root,s({"data-slot":"tooltip"},e))})}function Le(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.Tooltip.Trigger,s({"data-slot":"tooltip-trigger"},e))}function Ce(r){var l=r,{className:e,sideOffset:a=0,children:o}=l,t=n(l,["className","sideOffset","children"]);return jsxRuntime.jsx(radixUi.Tooltip.Portal,{children:jsxRuntime.jsxs(radixUi.Tooltip.Content,f(s({"data-slot":"tooltip-content",sideOffset:a,className:d("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,jsxRuntime.jsx(radixUi.Tooltip.Arrow,{className:"z-50 size-3 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-surface-elevated fill-surface-elevated"})]}))})}function un(t){var r=t,{children:e,className:a}=r,o=n(r,["children","className"]);return jsxRuntime.jsx("div",{className:"w-full overflow-x-auto rounded-lg border border-gray-stroke-muted",children:jsxRuntime.jsx("table",f(s({className:d("w-full border-collapse text-left",a)},o),{children:e}))})}function fn(t){var r=t,{children:e,className:a}=r,o=n(r,["children","className"]);return jsxRuntime.jsx("thead",f(s({className:d("h-11 border-b border-gray-stroke-muted bg-surface-card",a)},o),{children:jsxRuntime.jsx("tr",{children:e})}))}function cn(l){var i=l,{children:e,className:a,tooltip:o,highlight:t}=i,r=n(i,["children","className","tooltip","highlight"]);return jsxRuntime.jsx("th",f(s({className:d("text-ellipsis whitespace-nowrap px-5 text-sm font-semibold text-gray-foreground first:pr-0",a)},r),{children:jsxRuntime.jsxs("div",{className:"flex items-center gap-1.5",children:[jsxRuntime.jsx("span",{className:d(t&&"flex size-7 shrink-0 items-center justify-center rounded-full bg-primary-foreground-onfill"),children:e}),o&&jsxRuntime.jsx(he,{children:jsxRuntime.jsxs(be,{children:[jsxRuntime.jsx(Le,{asChild:true,children:jsxRuntime.jsx(icons.Info,{className:"size-4"})}),jsxRuntime.jsx(Ce,{children:o})]})})]})}))}function pn(t){var r=t,{children:e,className:a}=r,o=n(r,["children","className"]);return jsxRuntime.jsx("tbody",f(s({className:d("bg-surface-card",a)},o),{children:e}))}function mn(t){var r=t,{children:e,className:a}=r,o=n(r,["children","className"]);return jsxRuntime.jsx("tr",f(s({className:d("w-full border-t border-solid border-gray-stroke-muted first:border-t-0",a)},o),{children:e}))}function gn(t){var r=t,{children:e,className:a}=r,o=n(r,["children","className"]);return jsxRuntime.jsx("td",{className:"py-4 pl-5 align-middle",children:jsxRuntime.jsx("div",f(s({className:d("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 xn(t){var r=t,{children:e,className:a}=r,o=n(r,["children","className"]);return jsxRuntime.jsx("td",f(s({className:"px-5 py-4 align-middle"},o),{children:jsxRuntime.jsx("div",{className:d("flex items-center gap-5",a),children:jsxRuntime.jsx("div",{className:"flex shrink-0 items-center gap-5 pr-8",children:e})})}))}function hn(t){var r=t,{children:e,className:a}=r,o=n(r,["children","className"]);return jsxRuntime.jsx("div",f(s({className:d("flex shrink-0 flex-col items-start whitespace-nowrap text-gray-foreground",a)},o),{children:e}))}function bn(t){var r=t,{children:e,className:a}=r,o=n(r,["children","className"]);return jsxRuntime.jsx("span",f(s({className:d("shrink-0 overflow-hidden text-ellipsis font-sans text-xxs font-medium leading-xxs",a)},o),{children:e}))}function Ln(t){var r=t,{children:e,className:a}=r,o=n(r,["children","className"]);return jsxRuntime.jsx("span",f(s({className:d("shrink-0 overflow-hidden text-ellipsis font-sans text-sm font-semibold leading-5",a)},o),{children:e}))}function Cn(t){var r=t,{children:e,className:a}=r,o=n(r,["children","className"]);return jsxRuntime.jsx(De,f(s({className:d("bg-gradient-to-r from-cm-24 to-secondary-24 text-primary-foreground",a)},o),{icon:jsxRuntime.jsx(icons.CheckboxFill,{className:"text-primary-foreground"}),children:e}))}function In(t){var r=t,{children:e,className:a}=r,o=n(r,["children","className"]);return jsxRuntime.jsx("td",f(s({className:"px-5 py-4 align-middle"},o),{children:jsxRuntime.jsx("div",{className:d("flex flex-col items-start gap-2",a),children:e})}))}function vn(t){var r=t,{children:e,className:a}=r,o=n(r,["children","className"]);return jsxRuntime.jsx("p",f(s({className:d("relative shrink-0 overflow-hidden text-ellipsis whitespace-nowrap text-[10px] font-medium leading-[12px] text-gray-foreground",a)},o),{children:e}))}function kn(t){var r=t,{children:e,className:a}=r,o=n(r,["children","className"]);return jsxRuntime.jsx("div",f(s({className:d("avatar-group flex shrink-0 items-center gap-2",a)},o),{children:e}))}function Sn(i){var u=i,{src:e,alt:a,fallback:o="?",className:t,tooltip:r}=u,l=n(u,["src","alt","fallback","className","tooltip"]);let c=jsxRuntime.jsxs(ja,f(s({size:"sm",className:d("ring-2 ring-background",t)},l),{children:[jsxRuntime.jsx(Ja,{src:e,alt:a}),jsxRuntime.jsx($a,{children:o})]}));return r?jsxRuntime.jsx(he,{children:jsxRuntime.jsxs(be,{children:[jsxRuntime.jsx(Le,{asChild:true,children:c}),jsxRuntime.jsx(Ce,{children:r})]})}):c}function yn(r){var l=r,{children:e,className:a,icon:o}=l,t=n(l,["children","className","icon"]);return jsxRuntime.jsx("td",f(s({className:"px-5 py-4 align-middle"},t),{children:jsxRuntime.jsx(De,{variant:"regular-soft",className:a,icon:o,children:e})}))}function Pn({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 jsxRuntime.jsx("div",{className:d("relative h-0.5 w-full overflow-hidden rounded-pill bg-gray-100",e),children:jsxRuntime.jsx("div",{className:d("absolute inset-y-0 left-0 rounded-pill transition-all duration-300",o(a)),style:{width:`${a}%`}})})}function wn(r){var l=r,{questions:e,answered:a,className:o}=l,t=n(l,["questions","answered","className"]);let i=a>0?a/e*100:0;return i===0?jsxRuntime.jsx("td",f(s({className:"px-5 py-4 align-middle"},t),{children:jsxRuntime.jsx("div",{className:d("flex min-w-[140px] flex-col items-start justify-center gap-2",o),children:jsxRuntime.jsxs("div",{className:"flex shrink-0 items-center justify-center gap-2 text-xs font-medium text-gray-foreground-muted",children:[jsxRuntime.jsx("div",{className:"flex size-4 items-center justify-center rounded-full bg-gray-background-soft",children:jsxRuntime.jsx(icons.RemoveMinus,{className:"size-3 text-gray-foreground",strokeWidth:2.6})}),jsxRuntime.jsx("span",{className:"whitespace-nowrap font-medium text-gray-foreground-muted",children:"N\xE3o iniciado"})]})})})):jsxRuntime.jsx("td",f(s({className:"px-5 py-4 align-middle"},t),{children:jsxRuntime.jsxs("div",{className:d("flex min-w-[140px] flex-col items-start justify-center gap-2",o),children:[jsxRuntime.jsx("div",{className:"flex shrink-0 items-center gap-0.5 text-xs leading-4",children:jsxRuntime.jsxs("span",{className:"relative shrink-0 whitespace-nowrap font-medium text-gray-foreground-muted",children:[jsxRuntime.jsx("span",{className:"font-semibold text-gray-foreground",children:a})," ",a>1?"respondidas":"respondida"]})}),jsxRuntime.jsx(Pn,{percentage:i})]})}))}var Tn={notStarted:{icon:icons.RemoveMinus,bgColor:"bg-gray-background-soft",iconColor:"text-gray-foreground",titleClassName:"font-medium text-gray-foreground-muted",title:()=>"N\xE3o iniciado",subtitle:()=>""},minNotReached:{icon:icons.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:icons.Check,bgColor:"bg-feedback-success-background-soft",iconColor:"text-feedback-success-foreground",titleClassName:"font-medium text-gray-foreground-muted",title:({percentage:e})=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.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:icons.CloseMd,bgColor:"bg-feedback-error-background-soft",iconColor:"text-feedback-error-foreground",titleClassName:"font-medium text-gray-foreground-muted",title:({percentage:e})=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.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 An(e,a,o){return [[e,"notStarted"],[a,"minNotReached"],[o>=80,"dominated"],[true,"notDominated"]].find(([r])=>r)[1]}function Rn(l){var i=l,{questions:e,answered:a,correct:o,className:t}=i,r=n(i,["questions","answered","correct","className"]);let u=a>0?o/a*100:0,c=a===0,p=a<e,m=e-a,b=An(c,p,u),{icon:h,bgColor:w,iconColor:k,titleClassName:v,title:y,subtitle:R}=Tn[b],C={percentage:u,correct:o,answered:a,remainingQuestions:m};return jsxRuntime.jsx("td",f(s({className:"px-5 py-4 align-middle"},r),{children:jsxRuntime.jsx("div",{className:d("flex min-w-[140px] flex-col items-start justify-center gap-2",t),children:jsxRuntime.jsxs("div",{className:"flex shrink-0 items-center justify-center gap-2 text-xs font-medium text-gray-foreground-muted",children:[jsxRuntime.jsx("div",{className:d("flex size-4 items-center justify-center rounded-full",w),children:jsxRuntime.jsx(h,{className:d("size-3",k),strokeWidth:2.6})}),jsxRuntime.jsxs("div",{className:"flex flex-col items-start justify-center",children:[jsxRuntime.jsx("span",{className:d("whitespace-nowrap",v),children:y(C)}),jsxRuntime.jsx("span",{className:"whitespace-nowrap text-xxs font-semibold text-gray-foreground-muted",children:R(C)})]})]})})}))}function Mn(r){var l=r,{children:e,className:a,onClick:o}=l,t=n(l,["children","className","onClick"]);return jsxRuntime.jsx("td",f(s({className:"px-5 py-4 align-middle"},t),{children:jsxRuntime.jsx(K,{variant:"regular-soft",size:"sm",iconRight:jsxRuntime.jsx(icons.ArrowRightMd,{className:"size-4"}),onClick:o,className:a,children:e})}))}var lr=classVarianceAuthority.cva("transition-all duration-150",{variants:{size:{sm:"size-6",md:"size-7",lg:"size-8"}},defaultVariants:{size:"md"}}),Fn=classVarianceAuthority.cva("",{variants:{size:{sm:"size-7",md:"size-8",lg:"size-9"}},defaultVariants:{size:"md"}}),dr=classVarianceAuthority.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}}),nr=classVarianceAuthority.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 Nn({state:e,className:a}){let o=react.useId(),t=react.useRef(`rating-${Math.random().toString(36).slice(2)}`),r=o||t.current;return e==="full"?jsxRuntime.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 24",fill:"none",className:a,children:jsxRuntime.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"?jsxRuntime.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 24",fill:"none",className:a,children:[jsxRuntime.jsx("defs",{children:jsxRuntime.jsxs("linearGradient",{id:r,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[jsxRuntime.jsx("stop",{offset:"50%",className:"[stop-color:var(--color-feedback-warning-background-soft)]",stopOpacity:"1"}),jsxRuntime.jsx("stop",{offset:"50%",stopColor:"transparent",stopOpacity:"0"})]})}),jsxRuntime.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"})]}):jsxRuntime.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 24",fill:"none",className:a,children:jsxRuntime.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 qn(e,a){let o=e+1;return a>=o?"full":a>=o-.5?"half":"empty"}function On({value:e,onChange:a,maxStars:o=5,readOnly:t=false,labels:r,size:l="md",className:i,classNameContainer:u,classNameLabels:c}){let[p,m]=react.useState(e!=null?e:0),[b,h]=react.useState(null),w=e!==void 0,k=w?e:p,v=C=>{if(t)return;let I=C+1;w||m(I),a==null||a(I);},y=C=>{t||h(C);},R=()=>{t||h(null);};return jsxRuntime.jsxs("div",{"data-slot":"rating",className:d("inline-flex w-fit flex-col gap-2",i),children:[jsxRuntime.jsx("div",{className:d("inline-flex flex-row gap-1",u),onMouseLeave:R,children:Array.from({length:o},(C,I)=>{let O=b!==null,B=O&&I<=b,M=b===I,Y=O?B?"full":"empty":qn(I,k);return jsxRuntime.jsx("button",{type:"button",disabled:t,onClick:()=>v(I),onMouseEnter:()=>y(I),className:dr({size:l,readOnly:t}),"aria-label":`Rate ${I+1} out of ${o}`,children:jsxRuntime.jsx(Nn,{state:Y,className:M&&!t?Fn({size:l}):lr({size:l})})},I)})}),r&&r.length===2&&jsxRuntime.jsxs("div",{className:d(nr({size:l}),c),children:[jsxRuntime.jsx("span",{className:"truncate",children:r[0]}),jsxRuntime.jsx("span",{className:"truncate text-right",children:r[1]})]})]})}function ht(t){var r=t,{className:e,children:a}=r,o=n(r,["className","children"]);return jsxRuntime.jsxs(radixUi.ScrollArea.Root,f(s({"data-slot":"scroll-area",className:d("relative",e)},o),{children:[jsxRuntime.jsx(radixUi.ScrollArea.Viewport,{"data-slot":"scroll-area-viewport",className:"size-full rounded-[inherit]",children:a}),jsxRuntime.jsx(Ze,{}),jsxRuntime.jsx(Ze,{orientation:"horizontal"}),jsxRuntime.jsx(radixUi.ScrollArea.Corner,{})]}))}function Ze(t){var r=t,{className:e,orientation:a="vertical"}=r,o=n(r,["className","orientation"]);return jsxRuntime.jsx(radixUi.ScrollArea.ScrollAreaScrollbar,f(s({"data-slot":"scroll-area-scrollbar",orientation:a,className:d("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:jsxRuntime.jsx(radixUi.ScrollArea.ScrollAreaThumb,{"data-slot":"scroll-area-thumb",className:"relative flex-1 rounded-full bg-gray-stroke-muted"})}))}var bt=react.createContext({invalid:false});function En(o){var t=o,{invalid:e=false}=t,a=n(t,["invalid"]);return jsxRuntime.jsx(bt.Provider,{value:{invalid:e},children:jsxRuntime.jsx(radixUi.Select.Root,s({"data-slot":"select"},a))})}function Gn(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({className:d("group relative flex flex-col gap-2",e),"data-slot":"select-wrapper"},a))}function _n(t){var r=t,{className:e,children:a}=r,o=n(r,["className","children"]);return jsxRuntime.jsx("label",f(s({className:d("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-1/2 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",e),"data-slot":"select-label"},o),{children:a}))}function Wn(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.Select.Group,s({"data-slot":"select-group"},e))}function Xn(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.Select.Value,s({"data-slot":"select-value"},e))}function Kn(t){var r=t,{className:e,children:a}=r,o=n(r,["className","children"]);let{invalid:l}=react.useContext(bt);return jsxRuntime.jsxs(radixUi.Select.Trigger,f(s({className:d("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 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",!l&&"[&:not([data-placeholder])]:border-gray-stroke-emphasis","group-has-[[data-slot=select-label]]:h-14 group-has-[[data-slot=select-label]]:py-3 group-has-[[data-slot=select-label]]:data-[placeholder]:text-transparent",e),"data-slot":"select-trigger","aria-invalid":l||void 0},o),{children:[a,jsxRuntime.jsx(radixUi.Select.Icon,{asChild:true,children:jsxRuntime.jsx(icons.ChevronDown,{className:d("shrink-0 text-gray-foreground"),size:24,strokeWidth:1.6})})]}))}function Zn(r){var l=r,{className:e,children:a,position:o="popper"}=l,t=n(l,["className","children","position"]);return jsxRuntime.jsx(radixUi.Select.Portal,{children:jsxRuntime.jsxs(radixUi.Select.Content,f(s({className:d("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:[jsxRuntime.jsx(fr,{}),jsxRuntime.jsx(radixUi.Select.Viewport,{className:d("p-2",o==="popper"&&"h-[var(--radix-select-trigger-height)]"),children:a}),jsxRuntime.jsx(cr,{})]}))})}function Qn(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.Select.Label,s({className:d("px-2 py-2 text-xs font-medium text-gray-foreground-muted",e),"data-slot":"select-header"},a))}function jn(t){var r=t,{className:e,children:a}=r,o=n(r,["className","children"]);return jsxRuntime.jsxs(radixUi.Select.Item,f(s({className:d("data-disabled:pointer-events-none relative flex w-full cursor-default select-none items-center rounded px-2 py-2.5 text-base font-medium text-gray-foreground outline-none hover:cursor-pointer hover:bg-secondary-background-soft-emphasis",e),"data-slot":"select-item"},o),{children:[jsxRuntime.jsx(radixUi.Select.ItemText,{children:a}),jsxRuntime.jsx("span",{className:"absolute end-2 flex size-3.5 items-center justify-center",children:jsxRuntime.jsx(radixUi.Select.ItemIndicator,{children:jsxRuntime.jsx(icons.Check,{size:20,strokeWidth:2,className:"text-secondary-foreground"})})})]}))}function Jn(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.Select.Separator,s({className:d("-mx-1 my-1 h-px bg-gray-stroke-muted",e),"data-slot":"select-separator"},a))}function fr(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.Select.ScrollUpButton,f(s({className:d("flex cursor-default items-center justify-center py-1",e),"data-slot":"select-scroll-up-button"},a),{children:jsxRuntime.jsx(icons.ChevronUp,{size:16,strokeWidth:1.6,className:"text-gray-foreground"})}))}function cr(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.Select.ScrollDownButton,f(s({className:d("flex cursor-default items-center justify-center py-1",e),"data-slot":"select-scroll-down-button"},a),{children:jsxRuntime.jsx(icons.ChevronDown,{size:24,strokeWidth:1.6,className:"text-gray-foreground"})}))}function $n(o){var t=o,{className:e}=t,a=n(t,["className"]);let{invalid:r}=react.useContext(bt);return jsxRuntime.jsx("span",s({className:d("-mt-1 text-xs",r?"text-feedback-error-foreground":"text-gray-foreground",e),"data-slot":"select-text"},a))}var pr=react.createContext(null);function ti(r){var l=r,{className:e,size:a="md",children:o}=l,t=n(l,["className","size","children"]);return jsxRuntime.jsx(pr.Provider,{value:{size:a},children:jsxRuntime.jsx(radixUi.Tabs.Root,f(s({"data-slot":"tabs",className:d("flex flex-col gap-2",e)},t),{children:o}))})}function oi(t){var r=t,{className:e,containerClassName:a}=r,o=n(r,["className","containerClassName"]);return jsxRuntime.jsxs(ht,{className:d("[&_[data-slot=scroll-area-scrollbar][data-orientation=horizontal]]:h-1",a),children:[jsxRuntime.jsx(radixUi.Tabs.List,s({"data-slot":"tabs-list",className:d("inline-flex w-fit items-center justify-center rounded-md bg-gray-background-soft p-0.5",e)},o)),jsxRuntime.jsx(Ze,{orientation:"horizontal"})]})}var mr=classVarianceAuthority.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 ri(i){var u=i,{className:e,icon:a,badge:o,badgeVariant:t,children:r}=u,l=n(u,["className","icon","badge","badgeVariant","children"]);var b;let c=h=>h!=null&&h!==0&&h!==""&&h!=="0"&&!l.disabled,p=react.useContext(pr),m=(b=p==null?void 0:p.size)!=null?b:"md";return jsxRuntime.jsxs(radixUi.Tabs.Trigger,f(s({"data-slot":"tabs-trigger",className:d(mr({size:m,className:e}))},l),{children:[a,r&&jsxRuntime.jsxs("span",{className:"inline-grid [grid-template-areas:'stack']",children:[jsxRuntime.jsx("span",{"aria-hidden":"true",className:"invisible font-semibold [grid-area:stack]",children:r}),jsxRuntime.jsx("span",{className:"font-medium [grid-area:stack] group-data-[state=active]:font-semibold",children:r})]}),c(o)&&jsxRuntime.jsx(me,{size:m,variant:t,children:String(o)})]}))}function si(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.Tabs.Content,s({"data-slot":"tabs-content",className:d("flex-1 outline-none",e)},a))}var gr=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),li=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,o,t)=>t?t.toUpperCase():o.toLowerCase()),It=e=>{let a=li(e);return a.charAt(0).toUpperCase()+a.slice(1)},Aa=(...e)=>e.filter((a,o,t)=>!!a&&a.trim()!==""&&t.indexOf(a)===o).join(" ").trim(),xr=e=>{for(let a in e)if(a.startsWith("aria-")||a==="role"||a==="title")return true};var hr={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 Lr=react.forwardRef((p,c)=>{var m=p,{color:e="currentColor",size:a=24,strokeWidth:o=2,absoluteStrokeWidth:t,className:r="",children:l,iconNode:i}=m,u=n(m,["color","size","strokeWidth","absoluteStrokeWidth","className","children","iconNode"]);return react.createElement("svg",s(s(f(s({ref:c},hr),{width:a,height:a,stroke:e,strokeWidth:t?Number(o)*24/Number(a):o,className:Aa("lucide",r)}),!l&&!xr(u)&&{"aria-hidden":"true"}),u),[...i.map(([b,h])=>react.createElement(b,h)),...Array.isArray(l)?l:[l]])});var Cr=(e,a)=>{let o=react.forwardRef((i,l)=>{var u=i,{className:t}=u,r=n(u,["className"]);return react.createElement(Lr,s({ref:l,iconNode:a,className:Aa(`lucide-${gr(It(e))}`,`lucide-${e}`,t)},r))});return o.displayName=It(e),o};var ui=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Qe=Cr("x",ui);function kt(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.Dialog.Root,s({"data-slot":"sheet"},e))}function fi(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.Dialog.Trigger,s({"data-slot":"sheet-trigger"},e))}function ci(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.Dialog.Close,s({"data-slot":"sheet-close"},e))}function pi(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.Dialog.Portal,s({"data-slot":"sheet-portal"},e))}function mi(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.Dialog.Overlay,s({"data-slot":"sheet-overlay",className:d("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 St(r){var l=r,{className:e,children:a,side:o="right"}=l,t=n(l,["className","children","side"]);return jsxRuntime.jsxs(pi,{children:[jsxRuntime.jsx(mi,{}),jsxRuntime.jsxs(radixUi.Dialog.Content,f(s({"data-slot":"sheet-content",className:d("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,jsxRuntime.jsxs(radixUi.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:[jsxRuntime.jsx(Qe,{className:"size-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Close"})]})]}))]})}function gi(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"sheet-header",className:d("flex flex-col gap-1.5 p-4",e)},a))}function xi(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"sheet-footer",className:d("mt-auto flex flex-col gap-2 p-4",e)},a))}function hi(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.Dialog.Title,s({"data-slot":"sheet-title",className:d("font-semibold text-foreground",e)},a))}function bi(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.Dialog.Description,s({"data-slot":"sheet-description",className:d("text-muted-foreground text-sm",e)},a))}function Ra(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"skeleton",className:d("animate-pulse rounded-md bg-gray-150",e)},a))}var Ti="sidebar_state",Ai=3600*24*7,Ri="b",Sr=react.createContext(null);function Oe(){let e=react.useContext(Sr);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}function Mi(i){var u=i,{defaultOpen:e=true,open:a,onOpenChange:o,className:t,children:r}=u,l=n(u,["defaultOpen","open","onOpenChange","className","children"]);let c=Xe(),[p,m]=react.useState(false),[b,h]=react.useState(e),w=a!=null?a:b,k=react.useCallback(C=>{let I=typeof C=="function"?C(w):C;o?o(I):h(I),document.cookie=`${Ti}=${I}; path=/; max-age=${Ai}`;},[o,w]),v=react.useCallback(()=>c?m(C=>!C):k(C=>!C),[c,k,m]);react.useEffect(()=>{let C=I=>{I.key===Ri&&(I.metaKey||I.ctrlKey)&&(I.preventDefault(),v());};return window.addEventListener("keydown",C),()=>window.removeEventListener("keydown",C)},[v]);let y=w?"expanded":"collapsed",R=react.useMemo(()=>({state:y,open:w,setOpen:k,isMobile:c,openMobile:p,setOpenMobile:m,toggleSidebar:v}),[y,w,k,c,p,m,v]);return jsxRuntime.jsx(Sr.Provider,{value:R,children:jsxRuntime.jsx(he,{delayDuration:0,children:jsxRuntime.jsx("div",f(s({"data-slot":"sidebar-wrapper",className:d("group/sidebar-wrapper has-data-[variant=inset]:bg-surface-navigation flex min-h-svh w-full",t)},l),{children:r}))})})}function Di(u){var c=u,{side:e="left",variant:a="sidebar",collapsible:o="offcanvas",className:t,containerClassName:r,children:l}=c,i=n(c,["side","variant","collapsible","className","containerClassName","children"]);let{isMobile:p,state:m,openMobile:b,setOpenMobile:h}=Oe();return o==="none"?jsxRuntime.jsx("div",f(s({"data-slot":"sidebar",className:d("flex h-full w-[var(--sidebar-width)] flex-col bg-surface-navigation text-gray-foreground",t)},i),{children:l})):p?jsxRuntime.jsx(kt,f(s({open:b,onOpenChange:h},i),{children:jsxRuntime.jsx(St,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:d("w-[var(--sidebar-width-mobile)] bg-surface-navigation p-0 text-gray-foreground [&>button]:hidden",t),side:e,children:jsxRuntime.jsx("div",{className:"flex h-full w-full flex-col",children:l})})})):jsxRuntime.jsxs("div",{className:d("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:[jsxRuntime.jsx("div",{"data-slot":"sidebar-gap",className:d("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)]")}),jsxRuntime.jsx("div",f(s({"data-slot":"sidebar-container",className:d("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:jsxRuntime.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:l})}))]})}function Bi(c){var p=c,{className:e,onClick:a,sizeIcon:o="size-5",icon:t=jsxRuntime.jsx(icons.HamburgerMd,{className:o}),showTooltip:r=false,tooltipContent:l,enableHover:i=false}=p,u=n(p,["className","onClick","sizeIcon","icon","showTooltip","tooltipContent","enableHover"]);let{toggleSidebar:m,open:b,isMobile:h}=Oe(),[w,k]=react.useState(false),y=l||{open:"Esconder",closed:"Mostrar"},R=()=>i&&w?b?jsxRuntime.jsx(icons.ChevronLeftMd,{className:o}):jsxRuntime.jsx(icons.ChevronRightMd,{className:o}):t,C=jsxRuntime.jsxs("button",f(s({"data-sidebar":"trigger","data-slot":"sidebar-trigger",className:d("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?()=>k(true):void 0,onMouseLeave:!h&&i?()=>k(false):void 0},u),{children:[R(),jsxRuntime.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]}));return !r||h?C:jsxRuntime.jsxs(be,{children:[jsxRuntime.jsx(Le,{asChild:true,children:C}),jsxRuntime.jsx(Ce,{side:"right",align:"center",children:b?y.open:y.closed})]})}function Fi(o){var t=o,{className:e}=t,a=n(t,["className"]);let{toggleSidebar:r}=Oe();return jsxRuntime.jsx("button",s({"data-sidebar":"rail","data-slot":"sidebar-rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:r,title:"Toggle Sidebar",className:d("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 Ni(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("main",s({"data-slot":"sidebar-inset",className:d("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 qi(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(mt,s({"data-slot":"sidebar-input","data-sidebar":"input",className:d("bg-bg-surface-navigation h-8 w-full shadow-none",e)},a))}function Oi(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"sidebar-header","data-sidebar":"header",className:d("flex flex-col gap-0.5 px-4 pt-3",e)},a))}function zi(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"sidebar-footer","data-sidebar":"footer",className:d("flex flex-col gap-0.5 px-4 pb-3 [[data-state=collapsed]_&]:px-2",e)},a))}function Hi(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(we,s({"data-slot":"sidebar-separator","data-sidebar":"separator",className:d("mx-2 w-auto bg-gray-stroke-muted",e)},a))}function Ui(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"sidebar-content","data-sidebar":"content",className:d("flex min-h-0 flex-1 flex-col gap-0.5 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e)},a))}function Vi(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"sidebar-group","data-sidebar":"group",className:d("relative flex w-full min-w-0 flex-col p-2 px-4",e)},a))}function Ei(t){var r=t,{className:e,asChild:a=false}=r,o=n(r,["className","asChild"]);let l=a?radixUi.Slot.Slot:"div";return jsxRuntime.jsx(l,s({"data-slot":"sidebar-group-label","data-sidebar":"group-label",className:d("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 Gi(t){var r=t,{className:e,asChild:a=false}=r,o=n(r,["className","asChild"]);let l=a?radixUi.Slot.Slot:"button";return jsxRuntime.jsx(l,s({"data-slot":"sidebar-group-action","data-sidebar":"group-action",className:d("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 _i(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:d("w-full text-sm",e)},a))}function Wi(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("ul",s({"data-slot":"sidebar-menu","data-sidebar":"menu",className:d("flex w-full min-w-0 flex-col gap-1",e)},a))}function Xi(r){var l=r,{className:e,isActive:a,children:o}=l,t=n(l,["className","isActive","children"]);return jsxRuntime.jsxs("li",f(s({"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:d("group/menu-item relative hover:cursor-pointer",e)},t),{children:[a&&jsxRuntime.jsx("span",{className:"absolute -left-4 top-0 h-full w-0.5 bg-secondary-stroke-emphasis","aria-hidden":"true"}),o]}))}var Ki=classVarianceAuthority.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]:data-[active=true]:stroke-[2.2] [&>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 Zi(u){var c=u,{asChild:e=false,isActive:a=false,variant:o="default",size:t="md",tooltip:r,className:l}=c,i=n(c,["asChild","isActive","variant","size","tooltip","className"]);let p=e?radixUi.Slot.Slot:"button",{isMobile:m,state:b}=Oe(),h=jsxRuntime.jsx(p,s({"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":t,"data-active":a,className:d(Ki({variant:o,size:t}),l)},i));return r?(typeof r=="string"&&(r={children:r}),jsxRuntime.jsxs(be,{children:[jsxRuntime.jsx(Le,{asChild:true,children:h}),jsxRuntime.jsx(Ce,s({side:"right",align:"center",hidden:b!=="collapsed"||m},r))]})):h}function Qi(r){var l=r,{className:e,asChild:a=false,showOnHover:o=false}=l,t=n(l,["className","asChild","showOnHover"]);let i=a?radixUi.Slot.Slot:"button";return jsxRuntime.jsx(i,s({"data-slot":"sidebar-menu-action","data-sidebar":"menu-action",className:d("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 ji(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"sidebar-menu-badge","data-sidebar":"menu-badge",className:d("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 Ji(t){var r=t,{className:e,showIcon:a=false}=r,o=n(r,["className","showIcon"]);let l=react.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return jsxRuntime.jsxs("div",f(s({"data-slot":"sidebar-menu-skeleton","data-sidebar":"menu-skeleton",className:d("flex h-8 items-center gap-0.5 rounded-md px-2",e)},o),{children:[a&&jsxRuntime.jsx(Ra,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),jsxRuntime.jsx(Ra,{className:"max-w-(--skeleton-width) h-4 flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":l}})]}))}function $i(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("ul",s({"data-slot":"sidebar-menu-sub","data-sidebar":"menu-sub",className:d("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 Yi(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("li",s({"data-slot":"sidebar-menu-sub-item","data-sidebar":"menu-sub-item",className:d("group/menu-sub-item relative",e)},a))}function eu({icon:e,title:a}){let{state:o,isMobile:t}=Oe();return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[react.isValidElement(e)?react.cloneElement(e,{strokeWidth:1.8}):e,jsxRuntime.jsx("span",{className:d("whitespace-nowrap",o==="collapsed"&&"opacity-0",t&&"opacity-100"),children:a})]})}function au(){return jsxRuntime.jsx("div",{className:"ml-auto transition-transform duration-200 group-data-[state=open]/collapsible:rotate-90",children:jsxRuntime.jsx(icons.ChevronRightMd,{size:20,strokeWidth:1.5})})}function tu(l){var i=l,{asChild:e=false,size:a="md",isActive:o=false,className:t}=i,r=n(i,["asChild","size","isActive","className"]);let u=e?radixUi.Slot.Slot:"a";return jsxRuntime.jsx(u,s({"data-slot":"sidebar-menu-sub-button","data-sidebar":"menu-sub-button","data-size":a,"data-active":o,className:d("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 lu={sm:"size-2",md:"size-3",lg:"size-4"},Pr={sm:"[&_svg]:size-2",md:"[&_svg]:size-3",lg:"[&_svg]:size-3.5"},du={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]"},wr=classVarianceAuthority.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 nu(c){var p=c,{className:e,size:a,variant:o,checkedIcon:t,uncheckedIcon:r,checked:l,defaultChecked:i}=p,u=n(p,["className","size","variant","checkedIcon","uncheckedIcon","checked","defaultChecked"]);let[m,b]=react.useState(i||false),h=l!==void 0,w=h?l:m,k=t||r;return jsxRuntime.jsx(radixUi.Switch.Root,f(s({"data-slot":"switch",className:d("group",wr({size:a,variant:o}),e),checked:l,defaultChecked:i,onCheckedChange:v=>{var y;h||b(v),(y=u.onCheckedChange)==null||y.call(u,v);}},u),{children:jsxRuntime.jsx(radixUi.Switch.Thumb,{"data-slot":"switch-thumb",className:d("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",k&&"!bg-transparent data-[disabled]:!bg-transparent",lu[a||"md"],du[a||"md"]),children:k&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[w&&t&&jsxRuntime.jsx("span",{className:d("flex items-center justify-center text-primary-foreground-onfill group-data-[disabled]:text-gray-300",Pr[a||"md"]),children:t}),!w&&r&&jsxRuntime.jsx("span",{className:d("flex items-center justify-center text-gray-foreground group-data-[disabled]:text-gray-300",Pr[a||"md"]),children:r})]})})}))}var Tr=react.createContext({});function mu({children:e,value:a,onValueChange:o,open:t,defaultOpen:r,onOpenChange:l}){let[i,u]=react.useState(a||""),c={value:a||i,onValueChange:o||u};return jsxRuntime.jsx(Tr.Provider,{value:c,children:jsxRuntime.jsx(dt,{open:t,defaultOpen:r,onOpenChange:l,children:e})})}function gu({children:e,asChild:a=true,className:o}){return jsxRuntime.jsx(nt,{className:o,asChild:a,children:e})}function xu({children:e,align:a="center",side:o="right",className:t}){return jsxRuntime.jsx(it,{className:t,align:a,side:o,children:e})}function hu({children:e,label:a}){let{value:o,onValueChange:t}=react.useContext(Tr);return a?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(ft,{children:a}),jsxRuntime.jsx(Ia,{value:o,onValueChange:t,children:e})]}):jsxRuntime.jsx(Ia,{value:o,onValueChange:t,children:e})}function bu({children:e,value:a,onClick:o,icon:t}){let r=()=>{o&&o();};return a?jsxRuntime.jsxs(ut,{value:a,onClick:r,children:[typeof t=="string"?jsxRuntime.jsx("img",{src:t,alt:"",width:20,height:14}):t,e]}):jsxRuntime.jsxs(Ca,{onClick:r,children:[typeof t=="string"?jsxRuntime.jsx("img",{src:t,alt:"",width:20,height:14}):t,e]})}function Lu({children:e,onClick:a,icon:o}){return jsxRuntime.jsxs(Ca,{onClick:a,children:[o,e]})}function Cu(){return jsxRuntime.jsx(ct,{})}var Mr=react.createContext(null),Pu=150,Ar=16,wu="w-8";function Na(){let e=react.useContext(Mr);if(!e)throw new Error("useTabsContext must be used within a Tabs component.");return e}function Tu(e,a){let o=react.useRef(null);return react.useEffect(()=>()=>{o.current&&clearTimeout(o.current);},[]),react.useCallback(((...t)=>{o.current&&clearTimeout(o.current),o.current=setTimeout(()=>e(...t),a);}),[e,a])}var Dr=classVarianceAuthority.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"}}),Br=classVarianceAuthority.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"}}),Au=classVarianceAuthority.cva("relative min-w-0 max-w-full",{variants:{variant:{standalone:"",header:"px-3.5 sm:px-6 lg:px-8"}},defaultVariants:{variant:"standalone"}}),Rr=classVarianceAuthority.cva(["pointer-events-none absolute top-0 z-10 h-full transition-opacity duration-200",wu],{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"}}),Fr=classVarianceAuthority.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 Ru(i){var u=i,{className:e,variant:a="standalone",size:o="md",responsive:t=true,children:r}=u,l=n(u,["className","variant","size","responsive","children"]);let[c,p]=react.useState(o),m=react.useCallback(()=>{if(typeof window=="undefined")return;let h=parseInt(Be.tablet),w=parseInt(Be.mobile),k=window.innerWidth;k<=w||k<=h?p("md"):p(o);},[o]),b=Tu(m,Pu);return react.useEffect(()=>{if(typeof window=="undefined"||!t){p(o);return}return m(),window.addEventListener("resize",b),()=>window.removeEventListener("resize",b)},[t,o,m,b]),jsxRuntime.jsx(Mr.Provider,{value:{variant:a,size:o,responsiveSize:c},children:jsxRuntime.jsx(radixUi.Tabs.Root,f(s({"data-slot":"tabs","data-variant":a,"data-size":c,className:d("flex w-full max-w-full flex-col overflow-hidden",e)},l),{children:r}))})}function Mu(t){var r=t,{className:e,children:a}=r,o=n(r,["className","children"]);let{variant:l,responsiveSize:i}=Na(),u=react.useRef(null),c=react.useRef(null),[p,m]=react.useState(false),[b,h]=react.useState(false),[w,k]=react.useState(null),v=react.useCallback(()=>{let C=u.current;if(!C)return;let{scrollLeft:I,scrollWidth:O,clientWidth:B}=C,M=O>B;m(M&&I>0),h(M&&I<O-B-1);},[]),y=react.useCallback(()=>{let C=c.current;if(!C)return;let I=C.querySelector('[data-state="active"]');if(I){let O=C.getBoundingClientRect(),B=I.getBoundingClientRect();k({left:B.left-O.left,width:B.width});}},[]),R=react.useCallback(()=>{let C=u.current,I=c.current;if(!C||!I)return;let O=I.querySelector('[data-state="active"]');if(O){let B=C.getBoundingClientRect(),M=O.getBoundingClientRect();M.left<B.left?C.scrollBy({left:M.left-B.left-Ar,behavior:"smooth"}):M.right>B.right&&C.scrollBy({left:M.right-B.right+Ar,behavior:"smooth"});}},[]);return react.useEffect(()=>{let C=u.current;if(!C)return;v();let I=new ResizeObserver(()=>{v(),y();});return I.observe(C),C.addEventListener("scroll",v,{passive:true}),()=>{I.disconnect(),C.removeEventListener("scroll",v);}},[v,y]),react.useEffect(()=>{y();},[y,a]),react.useEffect(()=>{let C=c.current;if(!C)return;let I=new MutationObserver(O=>{for(let B of O)if(B.type==="attributes"&&B.attributeName==="data-state"){y(),R();break}});return I.observe(C,{attributes:true,subtree:true,attributeFilter:["data-state"]}),()=>I.disconnect()},[y,R]),jsxRuntime.jsxs("div",{"data-slot":"tabs-list-wrapper",className:Au({variant:l}),children:[jsxRuntime.jsx("div",{className:d(Rr({side:"left",variant:l}),p?"opacity-100":"opacity-0"),"aria-hidden":"true"}),jsxRuntime.jsx("div",{className:d(Rr({side:"right",variant:l}),b?"opacity-100":"opacity-0"),"aria-hidden":"true"}),jsxRuntime.jsx("div",{ref:u,className:"overflow-x-auto overflow-y-hidden [-ms-overflow-style:none] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:jsxRuntime.jsxs("div",{ref:c,className:"relative",children:[jsxRuntime.jsx(radixUi.Tabs.List,f(s({"data-slot":"tabs-list","data-variant":l,"data-size":i,className:d(Dr({variant:l}),e)},o),{children:a})),w&&jsxRuntime.jsx("div",{className:"pointer-events-none absolute bottom-0 h-0.5 bg-secondary-stroke-emphasis transition-all duration-300 ease-out",style:{left:w.left,width:w.width},"aria-hidden":"true"})]})})]})}function Du(l){var i=l,{className:e,children:a,icon:o,badge:t}=i,r=n(i,["className","children","icon","badge"]);let{variant:u,responsiveSize:c}=Na(),p=react.useRef(null),[m,b]=react.useState(false);react.useEffect(()=>{let w=p.current;if(!w)return;let k=()=>{b(w.getAttribute("data-state")==="active");};k();let v=new MutationObserver(k);return v.observe(w,{attributes:true,attributeFilter:["data-state"]}),()=>v.disconnect()},[]);let h=()=>o?react.isValidElement(o)?react.cloneElement(o,{strokeWidth:m?2:1.6}):o:null;return jsxRuntime.jsxs(radixUi.Tabs.Trigger,f(s({ref:p,"data-slot":"tabs-trigger","data-variant":u,"data-size":c,className:d(Br({variant:u,size:c}),e)},r),{children:[o&&jsxRuntime.jsx("span",{"data-slot":"tabs-icon",className:"flex shrink-0 items-center","aria-hidden":"true",children:h()}),jsxRuntime.jsx("span",{children:a}),t&&jsxRuntime.jsx("span",{"data-slot":"tabs-badge",className:"flex shrink-0 items-center",role:"status",children:t})]}))}function Bu(o){var t=o,{className:e}=t,a=n(t,["className"]);let{variant:r,responsiveSize:l}=Na();return jsxRuntime.jsx(radixUi.Tabs.Content,s({"data-slot":"tabs-content","data-variant":r,"data-size":l,className:d(Fr({variant:r,size:l}),e)},a))}var Nr=classVarianceAuthority.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 Ou(i){var u=i,{className:e,variant:a="regular",asChild:o=false,disabled:t=false,inactive:r=false}=u,l=n(u,["className","variant","asChild","disabled","inactive"]);let c=o?radixUi.Slot.Slot:"div";return jsxRuntime.jsxs(c,f(s({"data-slot":"tile","data-variant":a,"data-inactive":r,"data-disabled":t,"aria-disabled":t||r,className:d(Nr({variant:a,className:e}),l.onClick&&!t&&"cursor-pointer")},l),{children:[l.children,l.onClick&&!t&&jsxRuntime.jsx(icons.EditPencil,{className:"absolute right-5 top-4 size-5 opacity-0 transition-opacity group-hover/tile:opacity-100"})]}))}function zu(t){var r=t,{className:e,icon:a}=r,o=n(r,["className","icon"]);return jsxRuntime.jsx("div",f(s({"data-slot":"tile-icon",className:d("mb-2.5 last:mb-0 [&>svg]:size-5",e)},o),{children:a}))}function Hu(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"tile-title",className:d("line-clamp-1 flex w-fit text-xs font-medium",e)},a))}function Uu(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("span",s({"data-slot":"tile-description",className:d("line-clamp-1 flex w-fit text-sm font-semibold",e)},a))}var _u=3,Wu=1e6,ie={ADD_TOAST:"ADD_TOAST",UPDATE_TOAST:"UPDATE_TOAST",DISMISS_TOAST:"DISMISS_TOAST",REMOVE_TOAST:"REMOVE_TOAST"},wt=0;function Xu(){return wt=(wt+1)%Number.MAX_SAFE_INTEGER,wt.toString()}var Tt=new Map,qr=e=>{if(Tt.has(e))return;let a=setTimeout(()=>{Tt.delete(e),ea({type:ie.REMOVE_TOAST,toastId:e});},Wu);Tt.set(e,a);},Ku=(e,a)=>{switch(a.type){case ie.ADD_TOAST:return f(s({},e),{toasts:[a.toast,...e.toasts].slice(0,_u)});case ie.UPDATE_TOAST:return f(s({},e),{toasts:e.toasts.map(o=>o.id===a.toast.id?s(s({},o),a.toast):o)});case ie.DISMISS_TOAST:{let{toastId:o}=a;return o?qr(o):e.toasts.forEach(t=>{qr(t.id);}),f(s({},e),{toasts:e.toasts.map(t=>t.id===o||a.toastId===void 0?f(s({},t),{open:false}):t)})}case ie.REMOVE_TOAST:return a.toastId===void 0?f(s({},e),{toasts:[]}):f(s({},e),{toasts:e.toasts.filter(o=>o.id!==a.toastId)})}},Oa=[],za={toasts:[]};function ea(e){za=Ku(za,e),Oa.forEach(a=>{a(za);});}function Zu(a){var e=n(a,[]);let o=Xu(),t=l=>ea({type:ie.UPDATE_TOAST,toast:f(s({},l),{id:o})}),r=()=>ea({type:ie.DISMISS_TOAST,toastId:o});return ea({type:ie.ADD_TOAST,toast:f(s({},e),{id:o,open:true,onOpenChange:l=>{l||r();}})}),{id:o,dismiss:r,update:t}}function At(){let[e,a]=react.useState(za);return react.useEffect(()=>(Oa.push(a),()=>{let o=Oa.indexOf(a);o>-1&&Oa.splice(o,1);}),[e]),f(s({},e),{toast:Zu,dismiss:o=>ea({type:ie.DISMISS_TOAST,toastId:o})})}var Hr=classVarianceAuthority.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"}}),af=classVarianceAuthority.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"}}),tf={primary:"regular-soft",secondary:"emphasis-soft",success:"success-soft",warning:"warning-soft",error:"error-soft"},of={primary:icons.Info,secondary:icons.Info,success:icons.CircleCheck,warning:icons.TriangleWarning,error:icons.OctagonWarning},Ur=radixUi.Toast.Provider;function Vr(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.Toast.Viewport,s({className:d("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 Er(i){var u=i,{className:e,variant:a="primary",showIcon:o=true,duration:t=5e3,children:r}=u,l=n(u,["className","variant","showIcon","duration","children"]);let c=of[a||"primary"];return jsxRuntime.jsx(radixUi.Toast.Root,f(s({duration:t},l),{forceMount:true,asChild:true,children:jsxRuntime.jsxs(framerMotion.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:d(Hr({variant:a}),e),children:[o&&jsxRuntime.jsx(c,{className:d(af({variant:a}))}),jsxRuntime.jsx("div",{className:"flex flex-1 items-center justify-between gap-4",children:r})]})}))}function rf(c){var p=c,{className:e,variant:a="primary",size:o="sm",iconLeft:t,iconRight:r,children:l,altText:i="Toast action"}=p,u=n(p,["className","variant","size","iconLeft","iconRight","children","altText"]);return jsxRuntime.jsx(radixUi.Toast.Action,f(s({asChild:true,altText:i,className:d("inline-flex items-center justify-center",e)},u),{children:jsxRuntime.jsx(K,{iconLeft:t,iconRight:r,size:o,variant:tf[a],children:l})}))}function Gr(t){var r=t,{className:e,label:a="Fechar"}=r,o=n(r,["className","label"]);return jsxRuntime.jsx(radixUi.Toast.Close,f(s({className:d("shrink-0",e)},o),{asChild:true,children:jsxRuntime.jsx(K,{iconLeft:jsxRuntime.jsx(icons.CloseMd,{className:"size-4"}),size:"sm","aria-label":a,variant:"regular-basic"})}))}function _r(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.Toast.Title,s({className:d("flex-1 text-md font-medium",e)},a))}function Wr(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.Toast.Description,s({className:d("text-xs",e)},a))}function sf(){let{toasts:e}=At();return jsxRuntime.jsxs(Ur,{children:[jsxRuntime.jsx(framerMotion.AnimatePresence,{mode:"popLayout",children:e.filter(a=>a.open).map(function(i){var u=i,{id:a,title:o,description:t,action:r}=u,l=n(u,["id","title","description","action"]);return jsxRuntime.jsxs(Er,f(s({},l),{children:[jsxRuntime.jsxs("div",{className:"grid",children:[o&&jsxRuntime.jsx(_r,{children:o}),t&&jsxRuntime.jsx(Wr,{children:t})]}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[r,jsxRuntime.jsx(Gr,{})]})]}),a)})}),jsxRuntime.jsx(Vr,{})]})}/*! Bundled license information:
1
+ 'use strict';var we=require('react'),classVarianceAuthority=require('class-variance-authority'),icons=require('@medway-ui/icons'),clsx=require('clsx'),jsxRuntime=require('react/jsx-runtime'),radixUi=require('radix-ui'),cmdk=require('cmdk'),framerMotion=require('framer-motion');function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var we__namespace=/*#__PURE__*/_interopNamespace(we);var Kr=Object.defineProperty,Zr=Object.defineProperties;var Qr=Object.getOwnPropertyDescriptors;var ia=Object.getOwnPropertySymbols;var Vt=Object.prototype.hasOwnProperty,Et=Object.prototype.propertyIsEnumerable;var Ut=(e,a,o)=>a in e?Kr(e,a,{enumerable:true,configurable:true,writable:true,value:o}):e[a]=o,s=(e,a)=>{for(var o in a||(a={}))Vt.call(a,o)&&Ut(e,o,a[o]);if(ia)for(var o of ia(a))Et.call(a,o)&&Ut(e,o,a[o]);return e},f=(e,a)=>Zr(e,Qr(a));var n=(e,a)=>{var o={};for(var t in e)Vt.call(e,t)&&a.indexOf(t)<0&&(o[t]=e[t]);if(e!=null&&ia)for(var t of ia(e))a.indexOf(t)<0&&Et.call(e,t)&&(o[t]=e[t]);return o};var jr=(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},Jr=(e,a)=>({classGroupId:e,validator:a}),Qt=(e=new Map,a=null,o)=>({nextPart:e,validators:a,classGroupId:o});var Gt=[],$r="arbitrary..",Yr=e=>{let a=as(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:t}=e;return {getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return es(i);let u=i.split("-"),c=u[0]===""&&u.length>1?1:0;return jt(u,c,a)},getConflictingClassGroupIds:(i,u)=>{if(u){let c=t[i],p=o[i];return c?p?jr(p,c):c:p||Gt}return o[i]||Gt}}},jt=(e,a,o)=>{if(e.length-a===0)return o.classGroupId;let r=e[a],l=o.nextPart.get(r);if(l){let p=jt(e,a+1,l);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}},es=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?$r+t:void 0})(),as=e=>{let{theme:a,classGroups:o}=e;return ts(o,a)},ts=(e,a)=>{let o=Qt();for(let t in e){let r=e[t];Xa(r,o,t,a);}return o},Xa=(e,a,o,t)=>{let r=e.length;for(let l=0;l<r;l++){let i=e[l];os(i,a,o,t);}},os=(e,a,o,t)=>{if(typeof e=="string"){rs(e,a,o);return}if(typeof e=="function"){ss(e,a,o,t);return}ls(e,a,o,t);},rs=(e,a,o)=>{let t=e===""?a:Jt(a,e);t.classGroupId=o;},ss=(e,a,o,t)=>{if(ds(e)){Xa(e(t),a,o,t);return}a.validators===null&&(a.validators=[]),a.validators.push(Jr(o,e));},ls=(e,a,o,t)=>{let r=Object.entries(e),l=r.length;for(let i=0;i<l;i++){let[u,c]=r[i];Xa(c,Jt(a,u),o,t);}},Jt=(e,a)=>{let o=e,t=a.split("-"),r=t.length;for(let l=0;l<r;l++){let i=t[l],u=o.nextPart.get(i);u||(u=Qt(),o.nextPart.set(i,u)),o=u;}return o},ds=e=>"isThemeGetter"in e&&e.isThemeGetter===true,ns=e=>{if(e<1)return {get:()=>{},set:()=>{}};let a=0,o=Object.create(null),t=Object.create(null),r=(l,i)=>{o[l]=i,a++,a>e&&(a=0,t=o,o=Object.create(null));};return {get(l){let i=o[l];if(i!==void 0)return i;if((i=t[l])!==void 0)return r(l,i),i},set(l,i){l in o?o[l]=i:r(l,i);}}};var is=[],_t=(e,a,o,t,r)=>({modifiers:e,hasImportantModifier:a,baseClassName:o,maybePostfixModifierPosition:t,isExternal:r}),us=e=>{let{prefix:a,experimentalParseClassName:o}=e,t=r=>{let l=[],i=0,u=0,c=0,p,m=r.length;for(let v=0;v<m;v++){let y=r[v];if(i===0&&u===0){if(y===":"){l.push(r.slice(c,v)),c=v+1;continue}if(y==="/"){p=v;continue}}y==="["?i++:y==="]"?i--:y==="("?u++:y===")"&&u--;}let b=l.length===0?r:r.slice(c),h=b,w=false;b.endsWith("!")?(h=b.slice(0,-1),w=true):b.startsWith("!")&&(h=b.slice(1),w=true);let k=p&&p>c?p-c:void 0;return _t(l,w,h,k)};if(a){let r=a+":",l=t;t=i=>i.startsWith(r)?l(i.slice(r.length)):_t(is,false,i,void 0,true);}if(o){let r=t;t=l=>o({className:l,parseClassName:r});}return t},fs=e=>{let a=new Map;return e.orderSensitiveModifiers.forEach((o,t)=>{a.set(o,1e6+t);}),o=>{let t=[],r=[];for(let l=0;l<o.length;l++){let i=o[l],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}},cs=e=>s({cache:ns(e.cacheSize),parseClassName:us(e),sortModifiers:fs(e)},Yr(e)),ps=/\s+/,ms=(e,a)=>{let{parseClassName:o,getClassGroupId:t,getConflictingClassGroupIds:r,sortModifiers:l}=a,i=[],u=e.trim().split(ps),c="";for(let p=u.length-1;p>=0;p-=1){let m=u[p],{isExternal:b,modifiers:h,hasImportantModifier:w,baseClassName:k,maybePostfixModifierPosition:v}=o(m);if(b){c=m+(c.length>0?" "+c:c);continue}let y=!!v,R=t(y?k.substring(0,v):k);if(!R){if(!y){c=m+(c.length>0?" "+c:c);continue}if(R=t(k),!R){c=m+(c.length>0?" "+c:c);continue}y=false;}let C=h.length===0?"":h.length===1?h[0]:l(h).join(":"),I=w?C+"!":C,O=I+R;if(i.indexOf(O)>-1)continue;i.push(O);let B=r(R,y);for(let M=0;M<B.length;++M){let Y=B[M];i.push(I+Y);}c=m+(c.length>0?" "+c:c);}return c},gs=(...e)=>{let a=0,o,t,r="";for(;a<e.length;)(o=e[a++])&&(t=$t(o))&&(r&&(r+=" "),r+=t);return r},$t=e=>{if(typeof e=="string")return e;let a,o="";for(let t=0;t<e.length;t++)e[t]&&(a=$t(e[t]))&&(o&&(o+=" "),o+=a);return o},Wt=(e,...a)=>{let o,t,r,l,i=c=>{let p=a.reduce((m,b)=>b(m),e());return o=cs(p),t=o.cache.get,r=o.cache.set,l=u,u(c)},u=c=>{let p=t(c);if(p)return p;let m=ms(c,o);return r(c,m),m};return l=i,(...c)=>l(gs(...c))},xs=[],z=e=>{let a=o=>o[e]||xs;return a.isThemeGetter=true,a},Yt=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,eo=/^\((?:(\w[\w-]*):)?(.+)\)$/i,hs=/^\d+\/\d+$/,bs=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ls=/\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$/,Cs=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Is=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,vs=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Se=e=>hs.test(e),A=e=>!!e&&!Number.isNaN(Number(e)),ue=e=>!!e&&Number.isInteger(Number(e)),_a=e=>e.endsWith("%")&&A(e.slice(0,-1)),oe=e=>bs.test(e),ks=()=>true,Ss=e=>Ls.test(e)&&!Cs.test(e),ao=()=>false,ys=e=>Is.test(e),Ps=e=>vs.test(e),ws=e=>!g(e)&&!x(e),Ts=e=>ye(e,ro,ao),g=e=>Yt.test(e),pe=e=>ye(e,so,Ss),Wa=e=>ye(e,Bs,A),Xt=e=>ye(e,to,ao),As=e=>ye(e,oo,Ps),ua=e=>ye(e,lo,ys),x=e=>eo.test(e),Ue=e=>Pe(e,so),Rs=e=>Pe(e,Fs),Kt=e=>Pe(e,to),Ms=e=>Pe(e,ro),Ds=e=>Pe(e,oo),fa=e=>Pe(e,lo,true),ye=(e,a,o)=>{let t=Yt.exec(e);return t?t[1]?a(t[1]):o(t[2]):false},Pe=(e,a,o=false)=>{let t=eo.exec(e);return t?t[1]?a(t[1]):o:false},to=e=>e==="position"||e==="percentage",oo=e=>e==="image"||e==="url",ro=e=>e==="length"||e==="size"||e==="bg-size",so=e=>e==="length",Bs=e=>e==="number",Fs=e=>e==="family-name",lo=e=>e==="shadow";var Zt=()=>{let e=z("color"),a=z("font"),o=z("text"),t=z("font-weight"),r=z("tracking"),l=z("leading"),i=z("breakpoint"),u=z("container"),c=z("spacing"),p=z("radius"),m=z("shadow"),b=z("inset-shadow"),h=z("text-shadow"),w=z("drop-shadow"),k=z("blur"),v=z("perspective"),y=z("aspect"),R=z("ease"),C=z("animate"),I=()=>["auto","avoid","all","avoid-page","page","left","right","column"],O=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],B=()=>[...O(),x,g],M=()=>["auto","hidden","clip","visible","scroll"],Y=()=>["auto","contain","none"],P=()=>[x,g,c],ae=()=>[Se,"full","auto",...P()],Dt=()=>[ue,"none","subgrid",x,g],Bt=()=>["auto",{span:["full",ue,x,g]},ue,x,g],ra=()=>[ue,"auto",x,g],Ft=()=>["auto","min","max","fr",x,g],Va=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ke=()=>["start","end","center","stretch","center-safe","end-safe"],te=()=>["auto",...P()],ce=()=>[Se,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...P()],S=()=>[e,x,g],Nt=()=>[...O(),Kt,Xt,{position:[x,g]}],qt=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Ot=()=>["auto","cover","contain",Ms,Ts,{size:[x,g]}],Ea=()=>[_a,Ue,pe],E=()=>["","none","full",p,x,g],X=()=>["",A,Ue,pe],sa=()=>["solid","dashed","dotted","double"],zt=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],H=()=>[A,_a,Kt,Xt],Ht=()=>["","none",k,x,g],la=()=>["none",A,x,g],da=()=>["none",A,x,g],Ga=()=>[A,x,g],na=()=>[Se,"full",...P()];return {cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[oe],breakpoint:[oe],color:[ks],container:[oe],"drop-shadow":[oe],ease:["in","out","in-out"],font:[ws],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[oe],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[oe],shadow:[oe],spacing:["px",A],text:[oe],"text-shadow":[oe],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Se,g,x,y]}],container:["container"],columns:[{columns:[A,g,x,u]}],"break-after":[{"break-after":I()}],"break-before":[{"break-before":I()}],"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:B()}],overflow:[{overflow:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],overscroll:[{overscroll:Y()}],"overscroll-x":[{"overscroll-x":Y()}],"overscroll-y":[{"overscroll-y":Y()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:ae()}],"inset-x":[{"inset-x":ae()}],"inset-y":[{"inset-y":ae()}],start:[{start:ae()}],end:[{end:ae()}],top:[{top:ae()}],right:[{right:ae()}],bottom:[{bottom:ae()}],left:[{left:ae()}],visibility:["visible","invisible","collapse"],z:[{z:[ue,"auto",x,g]}],basis:[{basis:[Se,"full","auto",u,...P()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[A,Se,"auto","initial","none",g]}],grow:[{grow:["",A,x,g]}],shrink:[{shrink:["",A,x,g]}],order:[{order:[ue,"first","last","none",x,g]}],"grid-cols":[{"grid-cols":Dt()}],"col-start-end":[{col:Bt()}],"col-start":[{"col-start":ra()}],"col-end":[{"col-end":ra()}],"grid-rows":[{"grid-rows":Dt()}],"row-start-end":[{row:Bt()}],"row-start":[{"row-start":ra()}],"row-end":[{"row-end":ra()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Ft()}],"auto-rows":[{"auto-rows":Ft()}],gap:[{gap:P()}],"gap-x":[{"gap-x":P()}],"gap-y":[{"gap-y":P()}],"justify-content":[{justify:[...Va(),"normal"]}],"justify-items":[{"justify-items":[...ke(),"normal"]}],"justify-self":[{"justify-self":["auto",...ke()]}],"align-content":[{content:["normal",...Va()]}],"align-items":[{items:[...ke(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ke(),{baseline:["","last"]}]}],"place-content":[{"place-content":Va()}],"place-items":[{"place-items":[...ke(),"baseline"]}],"place-self":[{"place-self":["auto",...ke()]}],p:[{p:P()}],px:[{px:P()}],py:[{py:P()}],ps:[{ps:P()}],pe:[{pe:P()}],pt:[{pt:P()}],pr:[{pr:P()}],pb:[{pb:P()}],pl:[{pl:P()}],m:[{m:te()}],mx:[{mx:te()}],my:[{my:te()}],ms:[{ms:te()}],me:[{me:te()}],mt:[{mt:te()}],mr:[{mr:te()}],mb:[{mb:te()}],ml:[{ml:te()}],"space-x":[{"space-x":P()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":P()}],"space-y-reverse":["space-y-reverse"],size:[{size:ce()}],w:[{w:[u,"screen",...ce()]}],"min-w":[{"min-w":[u,"screen","none",...ce()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[i]},...ce()]}],h:[{h:["screen","lh",...ce()]}],"min-h":[{"min-h":["screen","lh","none",...ce()]}],"max-h":[{"max-h":["screen","lh",...ce()]}],"font-size":[{text:["base",o,Ue,pe]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[t,x,Wa]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",_a,g]}],"font-family":[{font:[Rs,g,a]}],"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,x,g]}],"line-clamp":[{"line-clamp":[A,"none",x,Wa]}],leading:[{leading:[l,...P()]}],"list-image":[{"list-image":["none",x,g]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",x,g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:S()}],"text-color":[{text:S()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...sa(),"wavy"]}],"text-decoration-thickness":[{decoration:[A,"from-font","auto",x,pe]}],"text-decoration-color":[{decoration:S()}],"underline-offset":[{"underline-offset":[A,"auto",x,g]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",x,g]}],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",x,g]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Nt()}],"bg-repeat":[{bg:qt()}],"bg-size":[{bg:Ot()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ue,x,g],radial:["",x,g],conic:[ue,x,g]},Ds,As]}],"bg-color":[{bg:S()}],"gradient-from-pos":[{from:Ea()}],"gradient-via-pos":[{via:Ea()}],"gradient-to-pos":[{to:Ea()}],"gradient-from":[{from:S()}],"gradient-via":[{via:S()}],"gradient-to":[{to:S()}],rounded:[{rounded:E()}],"rounded-s":[{"rounded-s":E()}],"rounded-e":[{"rounded-e":E()}],"rounded-t":[{"rounded-t":E()}],"rounded-r":[{"rounded-r":E()}],"rounded-b":[{"rounded-b":E()}],"rounded-l":[{"rounded-l":E()}],"rounded-ss":[{"rounded-ss":E()}],"rounded-se":[{"rounded-se":E()}],"rounded-ee":[{"rounded-ee":E()}],"rounded-es":[{"rounded-es":E()}],"rounded-tl":[{"rounded-tl":E()}],"rounded-tr":[{"rounded-tr":E()}],"rounded-br":[{"rounded-br":E()}],"rounded-bl":[{"rounded-bl":E()}],"border-w":[{border:X()}],"border-w-x":[{"border-x":X()}],"border-w-y":[{"border-y":X()}],"border-w-s":[{"border-s":X()}],"border-w-e":[{"border-e":X()}],"border-w-t":[{"border-t":X()}],"border-w-r":[{"border-r":X()}],"border-w-b":[{"border-b":X()}],"border-w-l":[{"border-l":X()}],"divide-x":[{"divide-x":X()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":X()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...sa(),"hidden","none"]}],"divide-style":[{divide:[...sa(),"hidden","none"]}],"border-color":[{border:S()}],"border-color-x":[{"border-x":S()}],"border-color-y":[{"border-y":S()}],"border-color-s":[{"border-s":S()}],"border-color-e":[{"border-e":S()}],"border-color-t":[{"border-t":S()}],"border-color-r":[{"border-r":S()}],"border-color-b":[{"border-b":S()}],"border-color-l":[{"border-l":S()}],"divide-color":[{divide:S()}],"outline-style":[{outline:[...sa(),"none","hidden"]}],"outline-offset":[{"outline-offset":[A,x,g]}],"outline-w":[{outline:["",A,Ue,pe]}],"outline-color":[{outline:S()}],shadow:[{shadow:["","none",m,fa,ua]}],"shadow-color":[{shadow:S()}],"inset-shadow":[{"inset-shadow":["none",b,fa,ua]}],"inset-shadow-color":[{"inset-shadow":S()}],"ring-w":[{ring:X()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:S()}],"ring-offset-w":[{"ring-offset":[A,pe]}],"ring-offset-color":[{"ring-offset":S()}],"inset-ring-w":[{"inset-ring":X()}],"inset-ring-color":[{"inset-ring":S()}],"text-shadow":[{"text-shadow":["none",h,fa,ua]}],"text-shadow-color":[{"text-shadow":S()}],opacity:[{opacity:[A,x,g]}],"mix-blend":[{"mix-blend":[...zt(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":zt()}],"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":[A]}],"mask-image-linear-from-pos":[{"mask-linear-from":H()}],"mask-image-linear-to-pos":[{"mask-linear-to":H()}],"mask-image-linear-from-color":[{"mask-linear-from":S()}],"mask-image-linear-to-color":[{"mask-linear-to":S()}],"mask-image-t-from-pos":[{"mask-t-from":H()}],"mask-image-t-to-pos":[{"mask-t-to":H()}],"mask-image-t-from-color":[{"mask-t-from":S()}],"mask-image-t-to-color":[{"mask-t-to":S()}],"mask-image-r-from-pos":[{"mask-r-from":H()}],"mask-image-r-to-pos":[{"mask-r-to":H()}],"mask-image-r-from-color":[{"mask-r-from":S()}],"mask-image-r-to-color":[{"mask-r-to":S()}],"mask-image-b-from-pos":[{"mask-b-from":H()}],"mask-image-b-to-pos":[{"mask-b-to":H()}],"mask-image-b-from-color":[{"mask-b-from":S()}],"mask-image-b-to-color":[{"mask-b-to":S()}],"mask-image-l-from-pos":[{"mask-l-from":H()}],"mask-image-l-to-pos":[{"mask-l-to":H()}],"mask-image-l-from-color":[{"mask-l-from":S()}],"mask-image-l-to-color":[{"mask-l-to":S()}],"mask-image-x-from-pos":[{"mask-x-from":H()}],"mask-image-x-to-pos":[{"mask-x-to":H()}],"mask-image-x-from-color":[{"mask-x-from":S()}],"mask-image-x-to-color":[{"mask-x-to":S()}],"mask-image-y-from-pos":[{"mask-y-from":H()}],"mask-image-y-to-pos":[{"mask-y-to":H()}],"mask-image-y-from-color":[{"mask-y-from":S()}],"mask-image-y-to-color":[{"mask-y-to":S()}],"mask-image-radial":[{"mask-radial":[x,g]}],"mask-image-radial-from-pos":[{"mask-radial-from":H()}],"mask-image-radial-to-pos":[{"mask-radial-to":H()}],"mask-image-radial-from-color":[{"mask-radial-from":S()}],"mask-image-radial-to-color":[{"mask-radial-to":S()}],"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":O()}],"mask-image-conic-pos":[{"mask-conic":[A]}],"mask-image-conic-from-pos":[{"mask-conic-from":H()}],"mask-image-conic-to-pos":[{"mask-conic-to":H()}],"mask-image-conic-from-color":[{"mask-conic-from":S()}],"mask-image-conic-to-color":[{"mask-conic-to":S()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Nt()}],"mask-repeat":[{mask:qt()}],"mask-size":[{mask:Ot()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",x,g]}],filter:[{filter:["","none",x,g]}],blur:[{blur:Ht()}],brightness:[{brightness:[A,x,g]}],contrast:[{contrast:[A,x,g]}],"drop-shadow":[{"drop-shadow":["","none",w,fa,ua]}],"drop-shadow-color":[{"drop-shadow":S()}],grayscale:[{grayscale:["",A,x,g]}],"hue-rotate":[{"hue-rotate":[A,x,g]}],invert:[{invert:["",A,x,g]}],saturate:[{saturate:[A,x,g]}],sepia:[{sepia:["",A,x,g]}],"backdrop-filter":[{"backdrop-filter":["","none",x,g]}],"backdrop-blur":[{"backdrop-blur":Ht()}],"backdrop-brightness":[{"backdrop-brightness":[A,x,g]}],"backdrop-contrast":[{"backdrop-contrast":[A,x,g]}],"backdrop-grayscale":[{"backdrop-grayscale":["",A,x,g]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[A,x,g]}],"backdrop-invert":[{"backdrop-invert":["",A,x,g]}],"backdrop-opacity":[{"backdrop-opacity":[A,x,g]}],"backdrop-saturate":[{"backdrop-saturate":[A,x,g]}],"backdrop-sepia":[{"backdrop-sepia":["",A,x,g]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":P()}],"border-spacing-x":[{"border-spacing-x":P()}],"border-spacing-y":[{"border-spacing-y":P()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",x,g]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[A,"initial",x,g]}],ease:[{ease:["linear","initial",R,x,g]}],delay:[{delay:[A,x,g]}],animate:[{animate:["none",C,x,g]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[v,x,g]}],"perspective-origin":[{"perspective-origin":B()}],rotate:[{rotate:la()}],"rotate-x":[{"rotate-x":la()}],"rotate-y":[{"rotate-y":la()}],"rotate-z":[{"rotate-z":la()}],scale:[{scale:da()}],"scale-x":[{"scale-x":da()}],"scale-y":[{"scale-y":da()}],"scale-z":[{"scale-z":da()}],"scale-3d":["scale-3d"],skew:[{skew:Ga()}],"skew-x":[{"skew-x":Ga()}],"skew-y":[{"skew-y":Ga()}],transform:[{transform:[x,g,"","none","gpu","cpu"]}],"transform-origin":[{origin:B()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:na()}],"translate-x":[{"translate-x":na()}],"translate-y":[{"translate-y":na()}],"translate-z":[{"translate-z":na()}],"translate-none":["translate-none"],accent:[{accent:S()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:S()}],"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",x,g]}],"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":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"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",x,g]}],fill:[{fill:["none",...S()]}],"stroke-w":[{stroke:[A,Ue,pe,Wa]}],stroke:[{stroke:["none",...S()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","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","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","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-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-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-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-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"]}},Ns=(e,{cacheSize:a,prefix:o,experimentalParseClassName:t,extend:r={},override:l={}})=>(Ve(e,"cacheSize",a),Ve(e,"prefix",o),Ve(e,"experimentalParseClassName",t),ca(e.theme,l.theme),ca(e.classGroups,l.classGroups),ca(e.conflictingClassGroups,l.conflictingClassGroups),ca(e.conflictingClassGroupModifiers,l.conflictingClassGroupModifiers),Ve(e,"orderSensitiveModifiers",l.orderSensitiveModifiers),pa(e.theme,r.theme),pa(e.classGroups,r.classGroups),pa(e.conflictingClassGroups,r.conflictingClassGroups),pa(e.conflictingClassGroupModifiers,r.conflictingClassGroupModifiers),no(e,r,"orderSensitiveModifiers"),e),Ve=(e,a,o)=>{o!==void 0&&(e[a]=o);},ca=(e,a)=>{if(a)for(let o in a)Ve(e,o,a[o]);},pa=(e,a)=>{if(a)for(let o in a)no(e,a,o);},no=(e,a,o)=>{let t=a[o];t!==void 0&&(e[o]=e[o]?e[o].concat(t):t);},io=(e,...a)=>typeof e=="function"?Wt(Zt,e,...a):Wt(()=>Ns(Zt(),e),...a);var Os=io({extend:{classGroups:{"font-size":["text-xxs","text-xs","text-sm","text-md","text-lg","text-xl","text-2xl","text-3xl","text-4xl","text-5xl","text-6xl","text-7xl","text-8xl","text-9xl"]}}});function d(...e){return Os(clsx.clsx(e))}var Ka=we.createContext(null),mo=classVarianceAuthority.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 Us(l){var i=l,{className:e,variant:a="regular",onClose:o,children:t}=i,r=n(i,["className","variant","onClose","children"]);let u=we.Children.toArray(t).some(p=>we.isValidElement(p)&&p.type===xo),c=we.Children.toArray(t).some(p=>we.isValidElement(p)&&p.type===go);return jsxRuntime.jsx(Ka.Provider,{value:{variant:a,hasDescription:u,hasTitle:c,onClose:o},children:jsxRuntime.jsxs("div",f(s({"data-slot":"alert",role:"alert",className:d(mo({variant:a}),e)},r),{children:[t,o&&jsxRuntime.jsx(icons.CloseMd,{"aria-label":"alert-close",onClick:o,className:"absolute right-4 top-2 !size-4 cursor-pointer !text-gray-foreground"})]}))})}function Vs(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"alert-container",className:d("flex gap-3",e)},a))}function Es(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"alert-content",className:d("flex flex-col gap-1",e)},a))}function Gs(t){var r=t,{className:e,icon:a}=r,o=n(r,["className","icon"]);return jsxRuntime.jsx("div",f(s({"data-slot":"alert-icon",className:d("size-6",e)},o),{children:a}))}function go(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"alert-title",className:d("line-clamp-1 min-h-4 text-md font-medium",e)},a))}function xo(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"alert-description",className:d("!line-clamp-3 grid justify-items-start gap-1 text-sm leading-5",e)},a))}function _s(o){var t=o,{className:e}=t,a=n(t,["className"]);let r=we.useContext(Ka),l=(r==null?void 0:r.hasDescription)||false,i=(r==null?void 0:r.hasTitle)||false,u=r==null?void 0:r.onClose;return jsxRuntime.jsx("div",s({"data-slot":"alert-actions",className:d("relative mt-2 flex flex-wrap items-center gap-x-2 lg:mt-0 lg:flex-nowrap",(!l||!i)&&u&&"lg:right-5",e)},a))}var ho=classVarianceAuthority.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 Ws(t){var r=t,{className:e,variant:a}=r,o=n(r,["className","variant"]);let l=we.useContext(Ka),i=(l==null?void 0:l.variant)||"regular";return jsxRuntime.jsx("button",s({className:d(ho({variant:a,alertVariant:i}),e)},o))}function Za({size:e=24,className:a}){return jsxRuntime.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:d("animate-spin",a),children:jsxRuntime.jsx("path",{d:"M21 12a9 9 0 1 1-6.219-8.56"})})}var js={sm:"size-4 p-0",md:"size-5 p-0",lg:"size-6 p-0",xl:"size-7 p-0"},Js={sm:"px-1",md:"px-1",lg:"px-1",xl:"px-1.5"},Lo=classVarianceAuthority.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 me(u){var c=u,{className:e,variant:a,size:o,icon:t,animation:r,asChild:l=false}=c,i=n(c,["className","variant","size","icon","animation","asChild"]);let p=l?radixUi.Slot.Slot:"span",m=we.Children.count(i.children)>0,b=!!t&&!m,h=typeof i.children=="string"||typeof i.children=="number"?String(i.children).trim():"",w=/^[A-Za-z0-9]$/.test(h),k=/^[A-Za-z0-9]{2,3}$/.test(h),v=/^\d{1,2}\S$/.test(h),y=k||v;return jsxRuntime.jsxs(p,f(s({"data-slot":"badge",className:d(Lo({variant:a,size:o}),(b||w)&&js[o||"md"],!b&&y&&Js[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 al={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"},Co={sm:"size-2",md:"size-2.5",lg:"size-2.5",xl:"size-3"},tl={sm:"sm",md:"md",lg:"md",xl:"lg"},Ee=classVarianceAuthority.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 K(b){var h=b,{className:e,containerClassName:a,variant:o,size:t,asChild:r=false,iconRight:l,iconLeft:i,badge:u,loading:c=false,alert:p}=h,m=n(h,["className","containerClassName","variant","size","asChild","iconRight","iconLeft","badge","loading","alert"]);let w=r?radixUi.Slot.Slot:"button",k=I=>I!=null&&I!==0&&I!==""&&I!=="0",v=I=>I,y=!m.children&&(i||l||p),R=()=>p?jsxRuntime.jsxs("span",{className:d("relative mr-1 flex size-2.5",Co[t||"md"]),children:[jsxRuntime.jsx("span",{className:"absolute inline-flex h-full w-full animate-ping rounded-full opacity-75",style:{backgroundColor:p}}),jsxRuntime.jsx("span",{className:d("relative inline-flex size-2.5 rounded-full",Co[t||"md"]),style:{backgroundColor:p}})]}):null,C=()=>c?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Za,{className:"[grid-area:stack]"}),jsxRuntime.jsx("span",{className:d("[grid-area:stack]",c&&"invisible"),children:m.children})]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[p?R():i&&v(i),m.children&&jsxRuntime.jsx("span",{children:m.children}),l&&v(l)]});return jsxRuntime.jsxs("div",{className:d("relative",a),children:[k(u)&&jsxRuntime.jsx(me,{size:tl[t||"md"],variant:"regular",className:d("absolute -right-2 -top-1 z-10"),role:"status","aria-label":`${u}-notifications`,children:String(u)}),jsxRuntime.jsx(w,f(s({disabled:c,"aria-busy":c,"aria-live":c?"polite":void 0,"data-slot":"button",className:d(y&&al[t||"md"],c&&"!inline-grid",Ee({variant:o,size:t,className:e}))},m),{children:C()}))]})}function ol(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.AlertDialog.Root,s({"data-slot":"alert-dialog"},e))}function rl(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.AlertDialog.Trigger,s({"data-slot":"alert-dialog-trigger"},e))}function vo(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.AlertDialog.Portal,s({"data-slot":"alert-dialog-portal"},e))}function ko(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.AlertDialog.Overlay,s({"data-slot":"alert-dialog-overlay",className:d("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 sl(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsxs(vo,{children:[jsxRuntime.jsx(ko,{}),jsxRuntime.jsx(radixUi.AlertDialog.Content,s({"data-slot":"alert-dialog-content",className:d("fixed left-1/2 top-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-lg border bg-surface-elevated p-6 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)},a))]})}function ll(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"alert-dialog-header",className:d("flex flex-col gap-2 text-center sm:text-left",e)},a))}function dl(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"alert-dialog-footer",className:d("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e)},a))}function nl(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.AlertDialog.Title,s({"data-slot":"alert-dialog-title",className:d("text-lg font-semibold",e)},a))}function il(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.AlertDialog.Description,s({"data-slot":"alert-dialog-description",className:d("text-sm text-foreground",e)},a))}function ul(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.AlertDialog.Action,s({className:d(Ee(),e)},a))}function fl(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.AlertDialog.Cancel,s({className:d(Ee({variant:"outlined"}),e)},a))}var pl=(function(){let e=0;return ()=>(e++,`medway-id-${e}`)})(),ml=we__namespace.useId||(()=>{});function Ge(){let e=ml(),[a,o]=we__namespace.useState(e);return we__namespace.useEffect(()=>{a===void 0&&o(pl());},[a]),a||""}function Te(r){var l=r,{className:e,orientation:a="horizontal",decorative:o=true}=l,t=n(l,["className","orientation","decorative"]);return jsxRuntime.jsx(radixUi.Separator.Root,s({"data-slot":"separator-root",decorative:o,orientation:a,className:d("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 Cl(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.Dialog.Root,s({"data-slot":"dialog"},e))}function Il(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.Dialog.Trigger,s({"data-slot":"dialog-trigger"},e))}function So(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.Dialog.Portal,s({"data-slot":"dialog-portal"},e))}function vl(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.Dialog.Close,s({"data-slot":"dialog-close"},e))}function yo(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.Dialog.Overlay,s({"data-slot":"dialog-overlay",className:d("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 kl(l){var i=l,{className:e,overlayClassName:a,children:o,showCloseButton:t=true}=i,r=n(i,["className","overlayClassName","children","showCloseButton"]);return jsxRuntime.jsxs(So,{"data-slot":"dialog-portal",children:[jsxRuntime.jsx(yo,{className:a}),jsxRuntime.jsxs(radixUi.Dialog.Content,f(s({"data-slot":"dialog-container",className:d("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&&jsxRuntime.jsxs(radixUi.Dialog.Close,{"data-slot":"dialog-close",className:"rounded-xs focus:outline-hidden absolute right-4 top-4 disabled:pointer-events-none data-[state=open]:text-gray-foreground [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",children:[jsxRuntime.jsx(icons.CloseMd,{}),jsxRuntime.jsx("span",{className:"sr-only",children:"Close"})]})]}))]})}function Sl({className:e,children:a}){return jsxRuntime.jsx("div",{className:"overflow-y-auto",children:jsxRuntime.jsx("div",{"data-slot":"dialog-content",className:d("px-8 py-6 text-md leading-md text-primary-foreground",e),children:a})})}function yl(t){var r=t,{className:e,separator:a=false}=r,o=n(r,["className","separator"]);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",s({"data-slot":"dialog-header",className:d("flex flex-col gap-2 px-8 py-6 text-center sm:text-left",e)},o)),a&&jsxRuntime.jsx(Te,{})]})}function Pl(t){var r=t,{className:e,separator:a=false}=r,o=n(r,["className","separator"]);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[a&&jsxRuntime.jsx(Te,{}),jsxRuntime.jsx("div",s({"data-slot":"dialog-footer",className:d("flex flex-col-reverse gap-2 px-8 py-6 sm:flex-row sm:justify-end",e)},o))]})}function wl(l){var i=l,{className:e,iconLeft:a,iconRight:o,children:t}=i,r=n(i,["className","iconLeft","iconRight","children"]);let u=c=>we.isValidElement(c)?we.cloneElement(c,{size:32,strokeWidth:2.2}):c;return jsxRuntime.jsxs(radixUi.Dialog.Title,f(s({"data-slot":"dialog-title",className:d("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 Tl(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.Dialog.Description,s({"data-slot":"dialog-description",className:d("text-md leading-md text-content-paragraph",e)},a))}function wo(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(cmdk.Command,s({className:d("flex size-full flex-col overflow-hidden rounded-md bg-surface-card text-gray-foreground",e),"data-slot":"command"},a))}function To(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsxs("div",{className:"flex items-center border-b border-gray-stroke-muted px-4","cmdk-input-wrapper":"",children:[jsxRuntime.jsx(cmdk.Command.Input,s({className:d("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)),jsxRuntime.jsx(icons.SearchMagnifyingGlass,{className:"text-gray-foreground-muted",size:24})]})}function Ao(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(cmdk.Command.List,s({className:d("max-h-80 flex-1 overflow-y-auto overflow-x-hidden",e),"data-slot":"command-list"},a))}function Ro(a){var e=n(a,[]);return jsxRuntime.jsx(cmdk.Command.Empty,s({className:"py-6 text-center text-sm","data-slot":"command-empty"},e))}function Mo(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(cmdk.Command.Group,s({className:d("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 Do(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(cmdk.Command.Item,s({className:d("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 Bo(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.Popover.Root,s({"data-slot":"popover"},e))}function Fo(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.Popover.Trigger,s({"data-slot":"popover-trigger"},e))}function No(l){var i=l,{className:e,align:a="center",sideOffset:o=4,showArrow:t=false}=i,r=n(i,["className","align","sideOffset","showArrow"]);return jsxRuntime.jsx(radixUi.Popover.Portal,{children:jsxRuntime.jsxs(radixUi.Popover.Content,f(s({align:a,className:d("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&&jsxRuntime.jsx(radixUi.Popover.Arrow,{className:"-my-px fill-gray-foreground drop-shadow-[0_1px_0_var(--border)]"})]}))})}var De=we.createContext({invalid:false,disabled:false,open:false,setOpen:()=>{},values:[],toggleValue:()=>{},onCancelSelection:()=>{},listId:""});function Nl({children:e,invalid:a=false,disabled:o=false,values:t,onValuesChange:r,open:l,onOpenChange:i,defaultValues:u=[]}){let[c,p]=we.useState(u),[m,b]=we.useState(false),[h,w]=we.useState([]),k=t!==void 0,v=l!==void 0,y=k?t:c,R=v?l:m,C=M=>{let Y=y.includes(M)?y.filter(P=>P!==M):[...y,M];k||p(Y),r==null||r(Y);},I=M=>{o||(M&&w(y),v||b(M),i==null||i(M));},O=()=>{k||p(h),r==null||r(h);},B=Ge();return jsxRuntime.jsx(De.Provider,{value:{invalid:a,disabled:o,open:R,setOpen:I,values:y,toggleValue:C,onCancelSelection:O,listId:B},children:jsxRuntime.jsx(Bo,{open:R,onOpenChange:I,children:e})})}function ql(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({className:d("group relative flex flex-col gap-2",e),"data-slot":"autocomplete-wrapper"},a))}function Ol(r){var l=r,{className:e,placeholder:a="Select an option",children:o}=l,t=n(l,["className","placeholder","children"]);let{invalid:i,disabled:u,open:c,values:p,listId:m}=we.useContext(De),b=Ge(),h=p.length>0;return jsxRuntime.jsx(Fo,{asChild:true,children:jsxRuntime.jsxs("button",f(s({"aria-controls":m,"aria-expanded":c,"aria-invalid":i||void 0,className:d("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:b,role:"combobox",type:"button"},t),{children:[jsxRuntime.jsx("span",{className:"truncate text-gray-foreground-emphasis",children:o!=null?o:a}),jsxRuntime.jsx(icons.ChevronDown,{"aria-hidden":"true",className:"shrink-0 text-gray-foreground",size:24,strokeWidth:1.6})]}))})}function ja({className:e,cancelLabel:a="Cancel",confirmLabel:o="Done",onCancel:t,onConfirm:r}){let{setOpen:l,onCancelSelection:i,values:u}=we.useContext(De);return jsxRuntime.jsxs("div",{className:d("flex items-center justify-between border-t border-gray-stroke-muted px-4 py-3",e),"data-slot":"autocomplete-content-footer",children:[jsxRuntime.jsx(K,{size:"sm",variant:"regular-soft",onClick:()=>{i(),t==null||t(),l(false);},children:a}),jsxRuntime.jsx(K,{size:"sm",variant:"emphasis",iconLeft:jsxRuntime.jsx(icons.Check,{strokeWidth:2.6}),onClick:()=>{r==null||r(u),l(false);},children:o})]})}function zl({children:e,className:a,searchPlaceholder:o="Search...",emptyMessage:t="No results found."}){let r=we.Children.toArray(e),l=r.filter(u=>we.isValidElement(u)&&u.type===ja),i=r.filter(u=>!(we.isValidElement(u)&&u.type===ja));return jsxRuntime.jsxs(No,{align:"start",className:d("w-full min-w-[var(--radix-popper-anchor-width)] border-gray-stroke-muted p-0",a),children:[jsxRuntime.jsxs(wo,{children:[jsxRuntime.jsx(To,{placeholder:o}),jsxRuntime.jsxs(Ao,{id:we.useContext(De).listId,children:[jsxRuntime.jsx(Ro,{children:t}),i]})]}),l]})}function Hl({children:e,value:a,className:o,disabled:t=false}){let{values:r,toggleValue:l}=we.useContext(De),i=r.includes(a);return jsxRuntime.jsxs(Do,{className:d("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",o),disabled:t,onSelect:()=>{l(a);},value:a,children:[jsxRuntime.jsx("span",{className:d("inline-flex size-[18px] shrink-0 items-center justify-center rounded-sm border-2 transition-all",i?"border-primary-background-fill bg-primary-background-fill":"border-gray-stroke-muted bg-surface-card"),children:i&&jsxRuntime.jsx(icons.Check,{size:12,strokeWidth:2.6,className:"text-primary-foreground-onfill"})}),e]})}function Ul(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(Mo,s({className:e},a))}function Vl(o){var t=o,{className:e}=t,a=n(t,["className"]);let{invalid:r}=we.useContext(De);return jsxRuntime.jsx("span",s({className:d("-mt-1 text-xs",r?"text-feedback-error-foreground":"text-gray-foreground",e),"data-slot":"autocomplete-text"},a))}var _l={sm:"sm",md:"md",lg:"md",xl:"lg"},zo=classVarianceAuthority.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 $a(l){var i=l,{className:e,size:a,badge:o,children:t}=i,r=n(i,["className","size","badge","children"]);return jsxRuntime.jsxs("div",{className:"relative",children:[o&&jsxRuntime.jsx(me,{size:_l[a||"md"],className:d("absolute -right-2 -top-1 z-10"),children:String(o)}),jsxRuntime.jsx(radixUi.Avatar.Root,f(s({"data-slot":"avatar",className:d(zo({size:a,className:e}))},r),{children:t}))]})}function Ya(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.Avatar.Image,s({"data-slot":"avatar-image",className:d("size-full object-cover",e)},a))}function et(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.Avatar.Fallback,f(s({"data-slot":"avatar-fallback",className:d("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:jsxRuntime.jsx(icons.User,{className:"size-1/2"})}))}function at(a){var e=n(a,[]);return jsxRuntime.jsx("nav",s({"aria-label":"breadcrumb","data-slot":"breadcrumb"},e))}function tt(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("ol",s({className:d("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 Ql(r){var l=r,{className:e,icon:a,children:o}=l,t=n(l,["className","icon","children"]);return jsxRuntime.jsx("li",f(s({className:d("inline-flex items-center gap-1.5 [&_svg]:text-primary-foreground",e),"data-slot":"breadcrumb-item"},t),{children:jsxRuntime.jsxs("span",{className:"inline-flex items-center gap-2",children:[a&&a,o]})}))}function jl(t){var r=t,{asChild:e,className:a}=r,o=n(r,["asChild","className"]);let l=e?radixUi.Slot.Root:"a";return jsxRuntime.jsx(l,s({className:d("transition-colors hover:underline",a),"data-slot":"breadcrumb-link"},o))}function Jl(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("span",s({"aria-current":"page","aria-disabled":"true",className:d("font-semibold text-primary-foreground",e),"data-slot":"breadcrumb-page",role:"link"},a))}function $l(t){var r=t,{children:e,className:a}=r,o=n(r,["children","className"]);return jsxRuntime.jsx("li",f(s({"aria-hidden":"true",className:a,"data-slot":"breadcrumb-separator",role:"presentation"},o),{children:e!=null?e:jsxRuntime.jsx(icons.ChevronRightMd,{className:"text-gray-foreground",strokeWidth:1.33,size:20})}))}function Yl(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsxs("span",f(s({"aria-hidden":"true",className:d("flex size-5 items-center justify-center",e),"data-slot":"breadcrumb-ellipsis",role:"presentation"},a),{children:[jsxRuntime.jsx(icons.MoreHorizontal,{className:"text-gray-foreground",size:18}),jsxRuntime.jsx("span",{className:"sr-only",children:"More"})]}))}var Uo=classVarianceAuthority.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"}},defaultVariants:{variant:"regular"}});function td(t){var r=t,{className:e,icon:a}=r,o=n(r,["className","icon"]);return jsxRuntime.jsx("div",f(s({"data-slot":"tag-icon",className:d("[&>svg]:size-3.5",e)},o),{children:a}))}function Be(i){var u=i,{className:e,variant:a,asChild:o=false,icon:t,children:r}=u,l=n(u,["className","variant","asChild","icon","children"]);let c=o?radixUi.Slot.Slot:"span";return jsxRuntime.jsxs(c,f(s({"data-slot":"tag",className:d(Uo({variant:a}),e)},l),{children:[t&&jsxRuntime.jsx(td,{icon:t}),r]}))}function ot(m){var b=m,{className:e,indicatorClassName:a,trackClassName:o,valueClassName:t,label:r,labelClassName:l,value:i=0,size:u=96,strokeWidth:c=2}=b,p=n(b,["className","indicatorClassName","trackClassName","valueClassName","label","labelClassName","value","size","strokeWidth"]);let h=typeof i=="string",w=h?0:i,k=(u-c)/2,v=k*2*Math.PI,y=v-w/100*v,R=Math.max(18,Math.min(u/5)),C=Math.max(10,Math.min(u/9,16));return jsxRuntime.jsxs("div",f(s({"data-slot":"progress-circle",className:d("relative inline-flex items-center justify-center",e),style:{width:u,height:u}},p),{children:[jsxRuntime.jsxs("svg",{className:"absolute inset-0 -rotate-90",width:u,height:u,viewBox:`0 0 ${u} ${u}`,children:[jsxRuntime.jsx("circle",{"data-slot":"progress-circle-track",cx:u/2,cy:u/2,r:k,stroke:"currentColor",strokeWidth:c,fill:"none",className:d("text-gray-stroke-muted",o)}),jsxRuntime.jsx("circle",{"data-slot":"progress-circle-indicator",cx:u/2,cy:u/2,r:k,stroke:"currentColor",strokeWidth:c,fill:"none",strokeDasharray:v,strokeDashoffset:y,strokeLinecap:"round",className:d("text-primary-stroke transition-all duration-300 ease-in-out",a)})]}),jsxRuntime.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:[jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("span",{className:d("mr-px font-semibold",t),style:{fontSize:`${R}px`},children:i}),!h&&"%"]}),r&&jsxRuntime.jsx("div",{"data-slot":"progress-circle-label",className:d("text-center font-medium leading-tight text-gray-foreground-muted",l),style:{fontSize:`${C}px`},children:r})]})]}))}function lt(l){var i=l,{className:e,indicatorClassName:a,label:o,value:t}=i,r=n(i,["className","indicatorClassName","label","value"]);let u=Math.round(t||0);return jsxRuntime.jsxs("div",{className:"flex w-full flex-col gap-2",children:[o&&jsxRuntime.jsxs("div",{"data-slot":"progress-label",className:"text-xs font-medium text-gray-foreground-muted",children:[jsxRuntime.jsxs("span",{className:"font-semibold text-gray-foreground",children:[u,"%"]})," ",jsxRuntime.jsx("span",{children:o})]}),jsxRuntime.jsx(radixUi.Progress.Root,f(s({"data-slot":"progress",className:d("relative flex h-px w-full overflow-x-clip rounded-pill bg-gray-stroke-muted",e)},r),{children:jsxRuntime.jsx(radixUi.Progress.Indicator,{"data-slot":"progress-indicator",className:d("relative -top-[0.5px] flex h-0.5 w-full flex-1 bg-primary-stroke transition-all",a),style:{transform:`translateX(-${100-(t||0)}%)`}})}))]})}var Ke=we.createContext(null);function dd(l){var i=l,{className:e,done:a,postponed:o,skipped:t}=i,r=n(i,["className","done","postponed","skipped"]);let u=we.useMemo(()=>({done:a,postponed:o,skipped:t}),[a,o,t]);return jsxRuntime.jsx(Ke.Provider,{value:u,children:jsxRuntime.jsx("div",s({"data-slot":"card-week",className:d("flex flex-col overflow-hidden rounded-xl border border-gray-stroke-muted text-gray-foreground-muted",e)},r))})}function nd(l){var i=l,{className:e,children:a,tag:o,tagIcon:t}=i,r=n(i,["className","children","tag","tagIcon"]);return jsxRuntime.jsxs("div",f(s({"data-slot":"card-week-breadcrumb",className:d("flex items-center gap-4 bg-primary-background-soft-muted px-6 py-3",e)},r),{children:[jsxRuntime.jsx(at,{className:"flex-1 overflow-hidden",children:jsxRuntime.jsx(tt,{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&&jsxRuntime.jsx(Be,{variant:"regular-soft",icon:t,children:o})]}))}function id(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"card-week-container",className:d("flex flex-1 flex-col gap-5 bg-surface-card px-6 py-5",e)},a))}function ud(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"card-week-header",className:d("flex justify-between [&.border-b]:pb-6",e)},a))}function fd(o){var t=o,{className:e}=t,a=n(t,["className"]);let r=we.useContext(Ke),l=r==null?void 0:r.done,i=r==null?void 0:r.postponed,u=r==null?void 0:r.skipped;return jsxRuntime.jsx("div",s({"data-slot":"card-week-title",className:d("text-lg font-semibold leading-lg text-primary-foreground",(l||i||u)&&"text-primary-foreground-muted line-through",e)},a))}function cd(o){var t=o,{className:e}=t,a=n(t,["className"]);let r=we.useContext(Ke),l=r==null?void 0:r.done,i=r==null?void 0:r.postponed,u=r==null?void 0:r.skipped;return jsxRuntime.jsx("div",s({"data-slot":"card-week-description",className:d("text-xs font-semibold leading-xs text-gray-foreground",(l||i||u)&&"text-gray-foreground-muted",e)},a))}function pd(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"card-week-tags",className:d("flex flex-wrap items-center gap-2 [[data-slot=card-week-header]:not(:has([data-slot=card-week-progress]))+&]:mt-6",e)},a))}function md(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",f(s({"data-slot":"card-week-progress-circle",className:d("flex flex-1 justify-end",e)},a),{children:jsxRuntime.jsx(ot,s({size:104},a))}))}function gd(o){var t=o,{className:e}=t,a=n(t,["className"]);let r=we.useContext(Ke),l=r==null?void 0:r.done;return jsxRuntime.jsx("div",f(s({"data-slot":"card-week-progress",className:d("flex flex-1",e)},a),{children:jsxRuntime.jsx(lt,s({value:l?100:a.value},a))}))}function xd(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"card-week-footer",className:d("mt-auto flex flex-col gap-2",e)},a))}function hd(t){var r=t,{className:e,children:a}=r,o=n(r,["className","children"]);return jsxRuntime.jsx("div",f(s({"data-slot":"card-week-content",className:d("flex flex-col text-xs font-medium",e)},o),{children:a}))}function bd(r){var l=r,{className:e,children:a,isTime:o}=l,t=n(l,["className","children","isTime"]);return jsxRuntime.jsxs("div",f(s({"data-slot":"card-week-text",className:d("flex items-center gap-1.5",o?"text-secondary-foreground":"text-gray-foreground-muted",e)},t),{children:[o&&jsxRuntime.jsx(icons.TimeRemaining,{size:16}),jsxRuntime.jsx("span",{children:a})]}))}function Ld(o){var t=o,{className:e}=t,a=n(t,["className"]);let r=we.useContext(Ke),l=r==null?void 0:r.done,i=r==null?void 0:r.postponed,u=r==null?void 0:r.skipped;return !l&&!i&&!u?null:i||u?jsxRuntime.jsxs("div",f(s({"data-slot":"card-week-status",className:d("flex items-center gap-1.5",e)},a),{children:[jsxRuntime.jsx("div",{className:"flex size-4 items-center justify-center rounded-full bg-yellow-24 text-yellow-darken-4",children:jsxRuntime.jsx(icons.Check,{size:12,strokeWidth:1.67})}),jsxRuntime.jsx("div",{className:"font-semibold text-yellow-darken-4",children:i?"Adiado":"Pulado"})]})):jsxRuntime.jsxs("div",f(s({"data-slot":"card-week-status",className:d("flex items-center gap-1.5",e)},a),{children:[jsxRuntime.jsx("div",{className:"flex size-4 items-center justify-center rounded-full bg-secondary-background-soft text-secondary-foreground",children:jsxRuntime.jsx(icons.Check,{size:12,strokeWidth:1.67})}),jsxRuntime.jsx("div",{className:"font-semibold",children:"Feito"})]}))}function Cd(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"card-week-actions",className:d("flex flex-wrap items-center justify-end gap-2 pt-4",e)},a))}var Wo=classVarianceAuthority.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 Sd(l){var i=l,{className:e,size:a,variant:o,uncheckIcon:t}=i,r=n(i,["className","size","variant","uncheckIcon"]);return jsxRuntime.jsx(radixUi.Checkbox.Root,f(s({"data-slot":"checkbox",className:d("group peer",Wo({size:a,variant:o}),e)},r),{children:jsxRuntime.jsx(radixUi.Checkbox.Indicator,{"data-slot":"checkbox-indicator",className:"relative flex items-center justify-center",children:t?jsxRuntime.jsx(icons.RemoveMinus,{className:d("absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 text-primary-foreground-onfill"),strokeWidth:2.6}):jsxRuntime.jsx(icons.Check,{className:d("absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 text-primary-foreground-onfill"),strokeWidth:2.6})})}))}var Xo=we.createContext({animation:void 0});function wd(o){var t=o,{animation:e}=t,a=n(t,["animation"]);return jsxRuntime.jsx(Xo.Provider,{value:{animation:e},children:jsxRuntime.jsx(radixUi.Collapsible.Root,s({"data-slot":"collapsible"},a))})}function Td(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.Collapsible.Trigger,s({"data-slot":"collapsible-trigger"},e))}function Ad(o){var t=o,{className:e}=t,a=n(t,["className"]);let{animation:r}=we.useContext(Xo),l={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 jsxRuntime.jsx(radixUi.Collapsible.Content,s({"data-slot":"collapsible-content",className:d(r&&l[r],e)},a))}var nt=768;function Ze(){let[e,a]=we.useState(void 0);return we.useEffect(()=>{let o=window.matchMedia(`(max-width: ${nt-1}px)`),t=()=>{a(window.innerWidth<nt);};return o.addEventListener("change",t),a(window.innerWidth<nt),()=>o.removeEventListener("change",t)},[]),!!e}function it(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.DropdownMenu.Root,s({"data-slot":"dropdown-menu"},e))}function Bd(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.DropdownMenu.Portal,s({"data-slot":"dropdown-menu-portal"},e))}function ut(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.DropdownMenu.Trigger,s({className:d("cursor-pointer",e.className),"data-slot":"dropdown-menu-trigger"},e))}function ft(r){var l=r,{className:e,sideOffset:a=4,side:o}=l,t=n(l,["className","sideOffset","side"]);let i=Ze();return jsxRuntime.jsx(radixUi.DropdownMenu.Portal,{children:jsxRuntime.jsx(radixUi.DropdownMenu.Content,s({"data-slot":"dropdown-menu-content",sideOffset:a,side:i?"bottom":o,className:d("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 Fd(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.DropdownMenu.Group,s({"data-slot":"dropdown-menu-group"},e))}function va(r){var l=r,{className:e,inset:a,variant:o="default"}=l,t=n(l,["className","inset","variant"]);return jsxRuntime.jsx(radixUi.DropdownMenu.Item,s({"data-slot":"dropdown-menu-item","data-inset":a,"data-variant":o,className:d("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 Nd(r){var l=r,{className:e,children:a,checked:o}=l,t=n(l,["className","children","checked"]);return jsxRuntime.jsxs(radixUi.DropdownMenu.CheckboxItem,f(s({"data-slot":"dropdown-menu-checkbox-item",className:d("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:[jsxRuntime.jsx("span",{className:"flex min-w-0 flex-1 gap-2 break-words",children:a}),jsxRuntime.jsx("span",{className:"pointer-events-none absolute right-2 flex size-3.5 items-center justify-center",children:jsxRuntime.jsx(radixUi.DropdownMenu.ItemIndicator,{children:jsxRuntime.jsx(icons.Check,{className:"size-4"})})})]}))}function ka(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.DropdownMenu.RadioGroup,s({"data-slot":"dropdown-menu-radio-group"},e))}function ct(t){var r=t,{className:e,children:a}=r,o=n(r,["className","children"]);return jsxRuntime.jsxs(radixUi.DropdownMenu.RadioItem,f(s({"data-slot":"dropdown-menu-radio-item",className:d("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:[jsxRuntime.jsx("span",{className:"flex min-w-0 flex-1 gap-2 break-words",children:a}),jsxRuntime.jsx("span",{className:"pointer-events-none absolute right-2 flex size-3.5 items-center justify-center",children:jsxRuntime.jsx(radixUi.DropdownMenu.ItemIndicator,{children:jsxRuntime.jsx(icons.Check,{className:"size-4"})})})]}))}function pt(t){var r=t,{className:e,inset:a}=r,o=n(r,["className","inset"]);return jsxRuntime.jsx(radixUi.DropdownMenu.Label,s({"data-slot":"dropdown-menu-label","data-inset":a,className:d("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 mt(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.DropdownMenu.Separator,s({"data-slot":"dropdown-menu-separator",className:d("-mx-3 my-2 h-px bg-gray-stroke-muted",e)},a))}function qd(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("span",s({"data-slot":"dropdown-menu-shortcut",className:d("ml-auto text-xs tracking-widest text-gray-foreground",e)},a))}function Od(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.DropdownMenu.Sub,s({"data-slot":"dropdown-menu-sub"},e))}function zd(r){var l=r,{className:e,inset:a,children:o}=l,t=n(l,["className","inset","children"]);return jsxRuntime.jsxs(radixUi.DropdownMenu.SubTrigger,f(s({"data-slot":"dropdown-menu-sub-trigger","data-inset":a,className:d("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,jsxRuntime.jsx(icons.ChevronRight,{className:"ml-auto size-3"})]}))}function Hd(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.DropdownMenu.SubContent,s({"data-slot":"dropdown-menu-sub-content",className:d("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))}function xt(t){var r=t,{className:e,type:a}=r,o=n(r,["className","type"]);return jsxRuntime.jsx("input",s({type:a,"data-slot":"input",className:d("placeholder:text-muted-foreground shadow-xs peer flex h-9 w-full min-w-0 rounded-md border border-gray-stroke-muted bg-transparent px-3 py-1 text-md outline-none transition-[color,box-shadow] selection:bg-primary selection:text-primary-foreground file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground disabled:pointer-events-none disabled:opacity-50 dark:bg-gray-300 md:text-sm","focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-red-8 aria-invalid:border-red",e)},o))}var Zo=classVarianceAuthority.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 Gd(l){var i=l,{className:e,variant:a,size:o,block:t}=i,r=n(i,["className","variant","size","block"]);return jsxRuntime.jsx(radixUi.Label.Root,s({"data-slot":"label",className:d(e,Zo({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 Wd({width:e=171,height:a=36,className:o,svgClassName:t}){return jsxRuntime.jsxs("svg",{className:d("dark:brightness-0 dark:invert",o),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 171 36",width:e,height:a,children:[jsxRuntime.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"}),jsxRuntime.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 Xd({width:e=60,height:a=67,className:o,svgClassName:t}){return jsxRuntime.jsx("svg",{className:d("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:jsxRuntime.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 Fe={tablet:"600px",mobile:"320px"};function jo(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("nav",s({role:"navigation","aria-label":"pagination",className:d("flex w-full items-center justify-between",e)},a))}function Jo(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("ul",s({className:d("flex flex-row items-center gap-2",e)},a))}function ht(r){var l=r,{count:e,label:a="itens",className:o}=l,t=n(l,["count","label","className"]);return jsxRuntime.jsx("p",f(s({className:d("text-xs font-medium text-gray-foreground-muted",o)},t),{children:a==="itens"?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:["Mostrando"," ",jsxRuntime.jsx("span",{className:"font-semibold text-gray-foreground",children:e})," ",a]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("span",{className:"font-semibold text-gray-foreground",children:e})," ",a]})}))}function ya(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("li",s({className:d("",e)},a))}function $o(p){var m=p,{className:e,isActive:a,iconLeft:o,iconRight:t,size:r="md",variant:l="regular",activeVariant:i,inactiveVariant:u}=m,c=n(m,["className","isActive","iconLeft","iconRight","size","variant","activeVariant","inactiveVariant"]);return jsxRuntime.jsx(K,f(s({"aria-current":a?"page":void 0,variant:a&&i?i:!a&&u?u:a?l:`${l}-soft`,className:d("",e),size:r,iconLeft:o,iconRight:t},c),{children:c.children}))}function Yo(r){var l=r,{className:e,size:a="md",variant:o="regular-basic"}=l,t=n(l,["className","size","variant"]);return jsxRuntime.jsx(K,f(s({"aria-label":"Go to previous page",className:d("",e),iconLeft:jsxRuntime.jsx(icons.ChevronLeftDuo,{}),variant:o,size:a},t),{children:t.children||"Anterior"}))}function er(r){var l=r,{className:e,size:a="md",variant:o="regular-basic"}=l,t=n(l,["className","size","variant"]);return jsxRuntime.jsx(K,f(s({"aria-label":"Go to next page",className:d("",e),variant:o,iconRight:jsxRuntime.jsx(icons.ChevronRightDuo,{}),size:a},t),{children:t.children||"Pr\xF3ximo"}))}function ar(t){var r=t,{className:e,size:a="md"}=r,o=n(r,["className","size"]);return jsxRuntime.jsx("span",f(s({"aria-hidden":true,className:d("flex items-center justify-center",{sm:"h-8 w-8",md:"h-9 w-9",lg:"h-10 w-10"}[a],e)},o),{children:jsxRuntime.jsx(icons.MoreHorizontal,{className:"h-4 w-4"})}))}function tr(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 l=1;l<=o+1;l++)t.push(l);o+1<a&&t.push(-1,a);}else if(e>=a-r){t.push(1),a-o>1&&t.push(-1);for(let l=a-o;l<=a;l++)t.push(l);}else {t.push(1,-1);for(let l=e-r;l<=e+r;l++)t.push(l);t.push(-1,a);}}return t}function Yd({currentPage:e,totalPages:a,maxVisibleItems:o,onPageChange:t,itemsPerPage:r,totalItems:l,className:i,responsive:u=true,size:c="md"}){let[p,m]=we.useState(()=>typeof window=="undefined"?false:window.innerWidth<=parseInt(Fe.tablet));we.useEffect(()=>{if(typeof window=="undefined"||!u)return;let k=parseInt(Fe.tablet),v=()=>{m(window.innerWidth<=k);};return window.addEventListener("resize",v),v(),()=>window.removeEventListener("resize",v)},[u]);let b=typeof o=="number"?o:u&&p?0:2,h=u&&p,w=()=>tr(e,a,b);return jsxRuntime.jsxs(jo,{className:d("",i),children:[r!==void 0&&!h?jsxRuntime.jsx(ht,{count:r,label:"itens"}):jsxRuntime.jsx("div",{}),jsxRuntime.jsxs(Jo,{children:[jsxRuntime.jsx(ya,{children:jsxRuntime.jsx(Yo,{onClick:()=>t(Math.max(1,e-1)),disabled:e===1,size:c})}),w().map((k,v)=>jsxRuntime.jsx(ya,{children:k===-1?jsxRuntime.jsx(ar,{size:c}):jsxRuntime.jsx($o,{onClick:()=>t(k),isActive:k===e,size:c,children:k})},v)),jsxRuntime.jsx(ya,{children:jsxRuntime.jsx(er,{onClick:()=>t(Math.min(a,e+1)),disabled:e===a,size:c})})]}),l!==void 0&&!h?jsxRuntime.jsx(ht,{count:l,label:"total"}):jsxRuntime.jsx("div",{})]})}var tn={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"},or=classVarianceAuthority.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 on(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.RadioGroup.Root,s({"data-slot":"radio-group",className:d("grid gap-3",e)},a))}function rn(r){var l=r,{className:e,size:a,variant:o}=l,t=n(l,["className","size","variant"]);return jsxRuntime.jsx(radixUi.RadioGroup.Item,f(s({"data-slot":"radio-group-item",className:d("shadow-xs group peer aspect-square size-4 shrink-0 rounded-full outline-none transition-[color,box-shadow] disabled:cursor-not-allowed",or({size:a,variant:o}),e)},t),{children:jsxRuntime.jsx(radixUi.RadioGroup.Indicator,{"data-slot":"radio-group-indicator",className:"relative flex items-center justify-center",children:jsxRuntime.jsx(icons.Circle,{className:d("absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 fill-surface-card",tn[a||"md"])})})}))}function he(o){var t=o,{delayDuration:e=0}=t,a=n(t,["delayDuration"]);return jsxRuntime.jsx(radixUi.Tooltip.Provider,s({"data-slot":"tooltip-provider",delayDuration:e},a))}function be(a){var e=n(a,[]);return jsxRuntime.jsx(he,{children:jsxRuntime.jsx(radixUi.Tooltip.Root,s({"data-slot":"tooltip"},e))})}function Le(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.Tooltip.Trigger,s({"data-slot":"tooltip-trigger"},e))}function Ce(r){var l=r,{className:e,sideOffset:a=0,children:o}=l,t=n(l,["className","sideOffset","children"]);return jsxRuntime.jsx(radixUi.Tooltip.Portal,{children:jsxRuntime.jsxs(radixUi.Tooltip.Content,f(s({"data-slot":"tooltip-content",sideOffset:a,className:d("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,jsxRuntime.jsx(radixUi.Tooltip.Arrow,{className:"z-50 size-3 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-surface-elevated fill-surface-elevated"})]}))})}function pn(t){var r=t,{children:e,className:a}=r,o=n(r,["children","className"]);return jsxRuntime.jsx("div",{className:"w-full overflow-x-auto rounded-lg border border-gray-stroke-muted",children:jsxRuntime.jsx("table",f(s({className:d("w-full border-collapse text-left",a)},o),{children:e}))})}function mn(t){var r=t,{children:e,className:a}=r,o=n(r,["children","className"]);return jsxRuntime.jsx("thead",f(s({className:d("h-11 border-b border-gray-stroke-muted bg-surface-card",a)},o),{children:jsxRuntime.jsx("tr",{children:e})}))}function gn(l){var i=l,{children:e,className:a,tooltip:o,highlight:t}=i,r=n(i,["children","className","tooltip","highlight"]);return jsxRuntime.jsx("th",f(s({className:d("text-ellipsis whitespace-nowrap px-5 text-sm font-semibold text-gray-foreground first:pr-0",a)},r),{children:jsxRuntime.jsxs("div",{className:"flex items-center gap-1.5",children:[jsxRuntime.jsx("span",{className:d(t&&"flex size-7 shrink-0 items-center justify-center rounded-full bg-primary-foreground-onfill"),children:e}),o&&jsxRuntime.jsx(he,{children:jsxRuntime.jsxs(be,{children:[jsxRuntime.jsx(Le,{asChild:true,children:jsxRuntime.jsx(icons.Info,{className:"size-4"})}),jsxRuntime.jsx(Ce,{children:o})]})})]})}))}function xn(t){var r=t,{children:e,className:a}=r,o=n(r,["children","className"]);return jsxRuntime.jsx("tbody",f(s({className:d("bg-surface-card",a)},o),{children:e}))}function hn(t){var r=t,{children:e,className:a}=r,o=n(r,["children","className"]);return jsxRuntime.jsx("tr",f(s({className:d("w-full border-t border-solid border-gray-stroke-muted first:border-t-0",a)},o),{children:e}))}function bn(t){var r=t,{children:e,className:a}=r,o=n(r,["children","className"]);return jsxRuntime.jsx("td",{className:"py-4 pl-5 align-middle",children:jsxRuntime.jsx("div",f(s({className:d("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 Ln(t){var r=t,{children:e,className:a}=r,o=n(r,["children","className"]);return jsxRuntime.jsx("td",f(s({className:"px-5 py-4 align-middle"},o),{children:jsxRuntime.jsx("div",{className:d("flex items-center gap-5",a),children:jsxRuntime.jsx("div",{className:"flex shrink-0 items-center gap-5 pr-8",children:e})})}))}function Cn(t){var r=t,{children:e,className:a}=r,o=n(r,["children","className"]);return jsxRuntime.jsx("div",f(s({className:d("flex shrink-0 flex-col items-start whitespace-nowrap text-gray-foreground",a)},o),{children:e}))}function In(t){var r=t,{children:e,className:a}=r,o=n(r,["children","className"]);return jsxRuntime.jsx("span",f(s({className:d("shrink-0 overflow-hidden text-ellipsis font-sans text-xxs font-medium leading-xxs",a)},o),{children:e}))}function vn(t){var r=t,{children:e,className:a}=r,o=n(r,["children","className"]);return jsxRuntime.jsx("span",f(s({className:d("shrink-0 overflow-hidden text-ellipsis font-sans text-sm font-semibold leading-5",a)},o),{children:e}))}function kn(t){var r=t,{children:e,className:a}=r,o=n(r,["children","className"]);return jsxRuntime.jsx(Be,f(s({className:d("bg-gradient-to-r from-cm-24 to-secondary-24 text-primary-foreground",a)},o),{icon:jsxRuntime.jsx(icons.CheckboxFill,{className:"text-primary-foreground"}),children:e}))}function Sn(t){var r=t,{children:e,className:a}=r,o=n(r,["children","className"]);return jsxRuntime.jsx("td",f(s({className:"px-5 py-4 align-middle"},o),{children:jsxRuntime.jsx("div",{className:d("flex flex-col items-start gap-2",a),children:e})}))}function yn(t){var r=t,{children:e,className:a}=r,o=n(r,["children","className"]);return jsxRuntime.jsx("p",f(s({className:d("relative shrink-0 overflow-hidden text-ellipsis whitespace-nowrap text-[10px] font-medium leading-[12px] text-gray-foreground",a)},o),{children:e}))}function Pn(t){var r=t,{children:e,className:a}=r,o=n(r,["children","className"]);return jsxRuntime.jsx("div",f(s({className:d("avatar-group flex shrink-0 items-center gap-2",a)},o),{children:e}))}function wn(i){var u=i,{src:e,alt:a,fallback:o="?",className:t,tooltip:r}=u,l=n(u,["src","alt","fallback","className","tooltip"]);let c=jsxRuntime.jsxs($a,f(s({size:"sm",className:d("ring-2 ring-background",t)},l),{children:[jsxRuntime.jsx(Ya,{src:e,alt:a}),jsxRuntime.jsx(et,{children:o})]}));return r?jsxRuntime.jsx(he,{children:jsxRuntime.jsxs(be,{children:[jsxRuntime.jsx(Le,{asChild:true,children:c}),jsxRuntime.jsx(Ce,{children:r})]})}):c}function Tn(r){var l=r,{children:e,className:a,icon:o}=l,t=n(l,["children","className","icon"]);return jsxRuntime.jsx("td",f(s({className:"px-5 py-4 align-middle"},t),{children:jsxRuntime.jsx(Be,{variant:"regular-soft",className:a,icon:o,children:e})}))}function An({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 jsxRuntime.jsx("div",{className:d("relative h-0.5 w-full overflow-hidden rounded-pill bg-gray-100",e),children:jsxRuntime.jsx("div",{className:d("absolute inset-y-0 left-0 rounded-pill transition-all duration-300",o(a)),style:{width:`${a}%`}})})}function Rn(r){var l=r,{questions:e,answered:a,className:o}=l,t=n(l,["questions","answered","className"]);let i=a>0?a/e*100:0;return i===0?jsxRuntime.jsx("td",f(s({className:"px-5 py-4 align-middle"},t),{children:jsxRuntime.jsx("div",{className:d("flex min-w-[140px] flex-col items-start justify-center gap-2",o),children:jsxRuntime.jsxs("div",{className:"flex shrink-0 items-center justify-center gap-2 text-xs font-medium text-gray-foreground-muted",children:[jsxRuntime.jsx("div",{className:"flex size-4 items-center justify-center rounded-full bg-gray-background-soft",children:jsxRuntime.jsx(icons.RemoveMinus,{className:"size-3 text-gray-foreground",strokeWidth:2.6})}),jsxRuntime.jsx("span",{className:"whitespace-nowrap font-medium text-gray-foreground-muted",children:"N\xE3o iniciado"})]})})})):jsxRuntime.jsx("td",f(s({className:"px-5 py-4 align-middle"},t),{children:jsxRuntime.jsxs("div",{className:d("flex min-w-[140px] flex-col items-start justify-center gap-2",o),children:[jsxRuntime.jsx("div",{className:"flex shrink-0 items-center gap-0.5 text-xs leading-4",children:jsxRuntime.jsxs("span",{className:"relative shrink-0 whitespace-nowrap font-medium text-gray-foreground-muted",children:[jsxRuntime.jsx("span",{className:"font-semibold text-gray-foreground",children:a})," ",a>1?"respondidas":"respondida"]})}),jsxRuntime.jsx(An,{percentage:i})]})}))}var Mn={notStarted:{icon:icons.RemoveMinus,bgColor:"bg-gray-background-soft",iconColor:"text-gray-foreground",titleClassName:"font-medium text-gray-foreground-muted",title:()=>"N\xE3o iniciado",subtitle:()=>""},minNotReached:{icon:icons.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:icons.Check,bgColor:"bg-feedback-success-background-soft",iconColor:"text-feedback-success-foreground",titleClassName:"font-medium text-gray-foreground-muted",title:({percentage:e})=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.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:icons.CloseMd,bgColor:"bg-feedback-error-background-soft",iconColor:"text-feedback-error-foreground",titleClassName:"font-medium text-gray-foreground-muted",title:({percentage:e})=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.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 Dn(e,a,o){return [[e,"notStarted"],[a,"minNotReached"],[o>=80,"dominated"],[true,"notDominated"]].find(([r])=>r)[1]}function Bn(l){var i=l,{questions:e,answered:a,correct:o,className:t}=i,r=n(i,["questions","answered","correct","className"]);let u=a>0?o/a*100:0,c=a===0,p=a<e,m=e-a,b=Dn(c,p,u),{icon:h,bgColor:w,iconColor:k,titleClassName:v,title:y,subtitle:R}=Mn[b],C={percentage:u,correct:o,answered:a,remainingQuestions:m};return jsxRuntime.jsx("td",f(s({className:"px-5 py-4 align-middle"},r),{children:jsxRuntime.jsx("div",{className:d("flex min-w-[140px] flex-col items-start justify-center gap-2",t),children:jsxRuntime.jsxs("div",{className:"flex shrink-0 items-center justify-center gap-2 text-xs font-medium text-gray-foreground-muted",children:[jsxRuntime.jsx("div",{className:d("flex size-4 items-center justify-center rounded-full",w),children:jsxRuntime.jsx(h,{className:d("size-3",k),strokeWidth:2.6})}),jsxRuntime.jsxs("div",{className:"flex flex-col items-start justify-center",children:[jsxRuntime.jsx("span",{className:d("whitespace-nowrap",v),children:y(C)}),jsxRuntime.jsx("span",{className:"whitespace-nowrap text-xxs font-semibold text-gray-foreground-muted",children:R(C)})]})]})})}))}function Fn(r){var l=r,{children:e,className:a,onClick:o}=l,t=n(l,["children","className","onClick"]);return jsxRuntime.jsx("td",f(s({className:"px-5 py-4 align-middle"},t),{children:jsxRuntime.jsx(K,{variant:"regular-soft",size:"sm",iconRight:jsxRuntime.jsx(icons.ArrowRightMd,{className:"size-4"}),onClick:o,className:a,children:e})}))}var dr=classVarianceAuthority.cva("transition-all duration-150",{variants:{size:{sm:"size-6",md:"size-7",lg:"size-8"}},defaultVariants:{size:"md"}}),qn=classVarianceAuthority.cva("",{variants:{size:{sm:"size-7",md:"size-8",lg:"size-9"}},defaultVariants:{size:"md"}}),nr=classVarianceAuthority.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}}),ir=classVarianceAuthority.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 On({state:e,className:a}){let o=Ge(),t=we.useRef(`rating-${Math.random().toString(36).slice(2)}`),r=o||t.current;return e==="full"?jsxRuntime.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 24",fill:"none",className:a,children:jsxRuntime.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"?jsxRuntime.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 24",fill:"none",className:a,children:[jsxRuntime.jsx("defs",{children:jsxRuntime.jsxs("linearGradient",{id:r,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[jsxRuntime.jsx("stop",{offset:"50%",className:"[stop-color:var(--color-feedback-warning-background-soft)]",stopOpacity:"1"}),jsxRuntime.jsx("stop",{offset:"50%",stopColor:"transparent",stopOpacity:"0"})]})}),jsxRuntime.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"})]}):jsxRuntime.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 24",fill:"none",className:a,children:jsxRuntime.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 zn(e,a){let o=e+1;return a>=o?"full":a>=o-.5?"half":"empty"}function Hn({value:e,onChange:a,maxStars:o=5,readOnly:t=false,labels:r,size:l="md",className:i,classNameContainer:u,classNameLabels:c}){let[p,m]=we.useState(e!=null?e:0),[b,h]=we.useState(null),w=e!==void 0,k=w?e:p,v=C=>{if(t)return;let I=C+1;w||m(I),a==null||a(I);},y=C=>{t||h(C);},R=()=>{t||h(null);};return jsxRuntime.jsxs("div",{"data-slot":"rating",className:d("inline-flex w-fit flex-col gap-2",i),children:[jsxRuntime.jsx("div",{className:d("inline-flex flex-row gap-1",u),onMouseLeave:R,children:Array.from({length:o},(C,I)=>{let O=b!==null,B=O&&I<=b,M=b===I,Y=O?B?"full":"empty":zn(I,k);return jsxRuntime.jsx("button",{type:"button",disabled:t,onClick:()=>v(I),onMouseEnter:()=>y(I),className:nr({size:l,readOnly:t}),"aria-label":`Rate ${I+1} out of ${o}`,children:jsxRuntime.jsx(On,{state:Y,className:M&&!t?qn({size:l}):dr({size:l})})},I)})}),r&&r.length===2&&jsxRuntime.jsxs("div",{className:d(ir({size:l}),c),children:[jsxRuntime.jsx("span",{className:"truncate",children:r[0]}),jsxRuntime.jsx("span",{className:"truncate text-right",children:r[1]})]})]})}function Lt(t){var r=t,{className:e,children:a}=r,o=n(r,["className","children"]);return jsxRuntime.jsxs(radixUi.ScrollArea.Root,f(s({"data-slot":"scroll-area",className:d("relative",e)},o),{children:[jsxRuntime.jsx(radixUi.ScrollArea.Viewport,{"data-slot":"scroll-area-viewport",className:"size-full rounded-[inherit]",children:a}),jsxRuntime.jsx(je,{}),jsxRuntime.jsx(je,{orientation:"horizontal"}),jsxRuntime.jsx(radixUi.ScrollArea.Corner,{})]}))}function je(t){var r=t,{className:e,orientation:a="vertical"}=r,o=n(r,["className","orientation"]);return jsxRuntime.jsx(radixUi.ScrollArea.ScrollAreaScrollbar,f(s({"data-slot":"scroll-area-scrollbar",orientation:a,className:d("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:jsxRuntime.jsx(radixUi.ScrollArea.ScrollAreaThumb,{"data-slot":"scroll-area-thumb",className:"relative flex-1 rounded-full bg-gray-stroke-muted"})}))}var Ct=we.createContext({invalid:false});function _n(o){var t=o,{invalid:e=false}=t,a=n(t,["invalid"]);return jsxRuntime.jsx(Ct.Provider,{value:{invalid:e},children:jsxRuntime.jsx(radixUi.Select.Root,s({"data-slot":"select"},a))})}function Wn(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({className:d("group relative flex flex-col gap-2",e),"data-slot":"select-wrapper"},a))}function Xn(t){var r=t,{className:e,children:a}=r,o=n(r,["className","children"]);return jsxRuntime.jsx("label",f(s({className:d("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-1/2 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",e),"data-slot":"select-label"},o),{children:a}))}function Kn(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.Select.Group,s({"data-slot":"select-group"},e))}function Zn(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.Select.Value,s({"data-slot":"select-value"},e))}function Qn(t){var r=t,{className:e,children:a}=r,o=n(r,["className","children"]);let{invalid:l}=we.useContext(Ct);return jsxRuntime.jsxs(radixUi.Select.Trigger,f(s({className:d("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 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",!l&&"[&:not([data-placeholder])]:border-gray-stroke-emphasis","group-has-[[data-slot=select-label]]:h-14 group-has-[[data-slot=select-label]]:py-3 group-has-[[data-slot=select-label]]:data-[placeholder]:text-transparent",e),"data-slot":"select-trigger","aria-invalid":l||void 0},o),{children:[a,jsxRuntime.jsx(radixUi.Select.Icon,{asChild:true,children:jsxRuntime.jsx(icons.ChevronDown,{className:d("shrink-0 text-gray-foreground"),size:24,strokeWidth:1.6})})]}))}function jn(r){var l=r,{className:e,children:a,position:o="popper"}=l,t=n(l,["className","children","position"]);return jsxRuntime.jsx(radixUi.Select.Portal,{children:jsxRuntime.jsxs(radixUi.Select.Content,f(s({className:d("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:[jsxRuntime.jsx(cr,{}),jsxRuntime.jsx(radixUi.Select.Viewport,{className:d("p-2",o==="popper"&&"h-[var(--radix-select-trigger-height)]"),children:a}),jsxRuntime.jsx(pr,{})]}))})}function Jn(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.Select.Label,s({className:d("px-2 py-2 text-xs font-medium text-gray-foreground-muted",e),"data-slot":"select-header"},a))}function $n(t){var r=t,{className:e,children:a}=r,o=n(r,["className","children"]);return jsxRuntime.jsxs(radixUi.Select.Item,f(s({className:d("data-disabled:pointer-events-none relative flex w-full cursor-default select-none items-center rounded px-2 py-2.5 text-base font-medium text-gray-foreground outline-none hover:cursor-pointer hover:bg-secondary-background-soft-emphasis",e),"data-slot":"select-item"},o),{children:[jsxRuntime.jsx(radixUi.Select.ItemText,{children:a}),jsxRuntime.jsx("span",{className:"absolute end-2 flex size-3.5 items-center justify-center",children:jsxRuntime.jsx(radixUi.Select.ItemIndicator,{children:jsxRuntime.jsx(icons.Check,{size:20,strokeWidth:2,className:"text-secondary-foreground"})})})]}))}function Yn(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.Select.Separator,s({className:d("-mx-1 my-1 h-px bg-gray-stroke-muted",e),"data-slot":"select-separator"},a))}function cr(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.Select.ScrollUpButton,f(s({className:d("flex cursor-default items-center justify-center py-1",e),"data-slot":"select-scroll-up-button"},a),{children:jsxRuntime.jsx(icons.ChevronUp,{size:16,strokeWidth:1.6,className:"text-gray-foreground"})}))}function pr(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.Select.ScrollDownButton,f(s({className:d("flex cursor-default items-center justify-center py-1",e),"data-slot":"select-scroll-down-button"},a),{children:jsxRuntime.jsx(icons.ChevronDown,{size:24,strokeWidth:1.6,className:"text-gray-foreground"})}))}function ei(o){var t=o,{className:e}=t,a=n(t,["className"]);let{invalid:r}=we.useContext(Ct);return jsxRuntime.jsx("span",s({className:d("-mt-1 text-xs",r?"text-feedback-error-foreground":"text-gray-foreground",e),"data-slot":"select-text"},a))}var mr=we.createContext(null);function ri(r){var l=r,{className:e,size:a="md",children:o}=l,t=n(l,["className","size","children"]);return jsxRuntime.jsx(mr.Provider,{value:{size:a},children:jsxRuntime.jsx(radixUi.Tabs.Root,f(s({"data-slot":"tabs",className:d("flex flex-col gap-2",e)},t),{children:o}))})}function si(t){var r=t,{className:e,containerClassName:a}=r,o=n(r,["className","containerClassName"]);return jsxRuntime.jsxs(Lt,{className:d("[&_[data-slot=scroll-area-scrollbar][data-orientation=horizontal]]:h-1",a),children:[jsxRuntime.jsx(radixUi.Tabs.List,s({"data-slot":"tabs-list",className:d("inline-flex w-fit items-center justify-center rounded-md bg-gray-background-soft p-0.5",e)},o)),jsxRuntime.jsx(je,{orientation:"horizontal"})]})}var gr=classVarianceAuthority.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 li(i){var u=i,{className:e,icon:a,badge:o,badgeVariant:t,children:r}=u,l=n(u,["className","icon","badge","badgeVariant","children"]);var b;let c=h=>h!=null&&h!==0&&h!==""&&h!=="0"&&!l.disabled,p=we.useContext(mr),m=(b=p==null?void 0:p.size)!=null?b:"md";return jsxRuntime.jsxs(radixUi.Tabs.Trigger,f(s({"data-slot":"tabs-trigger",className:d(gr({size:m,className:e}))},l),{children:[a,r&&jsxRuntime.jsxs("span",{className:"inline-grid [grid-template-areas:'stack']",children:[jsxRuntime.jsx("span",{"aria-hidden":"true",className:"invisible font-semibold [grid-area:stack]",children:r}),jsxRuntime.jsx("span",{className:"font-medium [grid-area:stack] group-data-[state=active]:font-semibold",children:r})]}),c(o)&&jsxRuntime.jsx(me,{size:m,variant:t,children:String(o)})]}))}function di(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.Tabs.Content,s({"data-slot":"tabs-content",className:d("flex-1 outline-none",e)},a))}var xr=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ni=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,o,t)=>t?t.toUpperCase():o.toLowerCase()),kt=e=>{let a=ni(e);return a.charAt(0).toUpperCase()+a.slice(1)},Ma=(...e)=>e.filter((a,o,t)=>!!a&&a.trim()!==""&&t.indexOf(a)===o).join(" ").trim(),hr=e=>{for(let a in e)if(a.startsWith("aria-")||a==="role"||a==="title")return true};var br={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 Cr=we.forwardRef((p,c)=>{var m=p,{color:e="currentColor",size:a=24,strokeWidth:o=2,absoluteStrokeWidth:t,className:r="",children:l,iconNode:i}=m,u=n(m,["color","size","strokeWidth","absoluteStrokeWidth","className","children","iconNode"]);return we.createElement("svg",s(s(f(s({ref:c},br),{width:a,height:a,stroke:e,strokeWidth:t?Number(o)*24/Number(a):o,className:Ma("lucide",r)}),!l&&!hr(u)&&{"aria-hidden":"true"}),u),[...i.map(([b,h])=>we.createElement(b,h)),...Array.isArray(l)?l:[l]])});var Ir=(e,a)=>{let o=we.forwardRef((i,l)=>{var u=i,{className:t}=u,r=n(u,["className"]);return we.createElement(Cr,s({ref:l,iconNode:a,className:Ma(`lucide-${xr(kt(e))}`,`lucide-${e}`,t)},r))});return o.displayName=kt(e),o};var ci=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Je=Ir("x",ci);function yt(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.Dialog.Root,s({"data-slot":"sheet"},e))}function pi(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.Dialog.Trigger,s({"data-slot":"sheet-trigger"},e))}function mi(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.Dialog.Close,s({"data-slot":"sheet-close"},e))}function gi(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.Dialog.Portal,s({"data-slot":"sheet-portal"},e))}function xi(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.Dialog.Overlay,s({"data-slot":"sheet-overlay",className:d("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 Pt(r){var l=r,{className:e,children:a,side:o="right"}=l,t=n(l,["className","children","side"]);return jsxRuntime.jsxs(gi,{children:[jsxRuntime.jsx(xi,{}),jsxRuntime.jsxs(radixUi.Dialog.Content,f(s({"data-slot":"sheet-content",className:d("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,jsxRuntime.jsxs(radixUi.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:[jsxRuntime.jsx(Je,{className:"size-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Close"})]})]}))]})}function hi(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"sheet-header",className:d("flex flex-col gap-1.5 p-4",e)},a))}function bi(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"sheet-footer",className:d("mt-auto flex flex-col gap-2 p-4",e)},a))}function Li(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.Dialog.Title,s({"data-slot":"sheet-title",className:d("font-semibold text-foreground",e)},a))}function Ci(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.Dialog.Description,s({"data-slot":"sheet-description",className:d("text-muted-foreground text-sm",e)},a))}function Da(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"skeleton",className:d("animate-pulse rounded-md bg-gray-150",e)},a))}var Ri="sidebar_state",Mi=3600*24*7,Di="b",yr=we.createContext(null);function ze(){let e=we.useContext(yr);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}function Bi(i){var u=i,{defaultOpen:e=true,open:a,onOpenChange:o,className:t,children:r}=u,l=n(u,["defaultOpen","open","onOpenChange","className","children"]);let c=Ze(),[p,m]=we.useState(false),[b,h]=we.useState(e),w=a!=null?a:b,k=we.useCallback(C=>{let I=typeof C=="function"?C(w):C;o?o(I):h(I),document.cookie=`${Ri}=${I}; path=/; max-age=${Mi}`;},[o,w]),v=we.useCallback(()=>c?m(C=>!C):k(C=>!C),[c,k,m]);we.useEffect(()=>{let C=I=>{I.key===Di&&(I.metaKey||I.ctrlKey)&&(I.preventDefault(),v());};return window.addEventListener("keydown",C),()=>window.removeEventListener("keydown",C)},[v]);let y=w?"expanded":"collapsed",R=we.useMemo(()=>({state:y,open:w,setOpen:k,isMobile:c,openMobile:p,setOpenMobile:m,toggleSidebar:v}),[y,w,k,c,p,m,v]);return jsxRuntime.jsx(yr.Provider,{value:R,children:jsxRuntime.jsx(he,{delayDuration:0,children:jsxRuntime.jsx("div",f(s({"data-slot":"sidebar-wrapper",className:d("group/sidebar-wrapper has-data-[variant=inset]:bg-surface-navigation flex min-h-svh w-full",t)},l),{children:r}))})})}function Fi(u){var c=u,{side:e="left",variant:a="sidebar",collapsible:o="offcanvas",className:t,containerClassName:r,children:l}=c,i=n(c,["side","variant","collapsible","className","containerClassName","children"]);let{isMobile:p,state:m,openMobile:b,setOpenMobile:h}=ze();return o==="none"?jsxRuntime.jsx("div",f(s({"data-slot":"sidebar",className:d("flex h-full w-[var(--sidebar-width)] flex-col bg-surface-navigation text-gray-foreground",t)},i),{children:l})):p?jsxRuntime.jsx(yt,f(s({open:b,onOpenChange:h},i),{children:jsxRuntime.jsx(Pt,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:d("w-[var(--sidebar-width-mobile)] bg-surface-navigation p-0 text-gray-foreground [&>button]:hidden",t),side:e,children:jsxRuntime.jsx("div",{className:"flex h-full w-full flex-col",children:l})})})):jsxRuntime.jsxs("div",{className:d("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:[jsxRuntime.jsx("div",{"data-slot":"sidebar-gap",className:d("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)]")}),jsxRuntime.jsx("div",f(s({"data-slot":"sidebar-container",className:d("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:jsxRuntime.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:l})}))]})}function Ni(c){var p=c,{className:e,onClick:a,sizeIcon:o="size-5",icon:t=jsxRuntime.jsx(icons.HamburgerMd,{className:o}),showTooltip:r=false,tooltipContent:l,enableHover:i=false}=p,u=n(p,["className","onClick","sizeIcon","icon","showTooltip","tooltipContent","enableHover"]);let{toggleSidebar:m,open:b,isMobile:h}=ze(),[w,k]=we.useState(false),y=l||{open:"Esconder",closed:"Mostrar"},R=()=>i&&w?b?jsxRuntime.jsx(icons.ChevronLeftMd,{className:o}):jsxRuntime.jsx(icons.ChevronRightMd,{className:o}):t,C=jsxRuntime.jsxs("button",f(s({"data-sidebar":"trigger","data-slot":"sidebar-trigger",className:d("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?()=>k(true):void 0,onMouseLeave:!h&&i?()=>k(false):void 0},u),{children:[R(),jsxRuntime.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]}));return !r||h?C:jsxRuntime.jsxs(be,{children:[jsxRuntime.jsx(Le,{asChild:true,children:C}),jsxRuntime.jsx(Ce,{side:"right",align:"center",children:b?y.open:y.closed})]})}function qi(o){var t=o,{className:e}=t,a=n(t,["className"]);let{toggleSidebar:r}=ze();return jsxRuntime.jsx("button",s({"data-sidebar":"rail","data-slot":"sidebar-rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:r,title:"Toggle Sidebar",className:d("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 Oi(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("main",s({"data-slot":"sidebar-inset",className:d("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 zi(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(xt,s({"data-slot":"sidebar-input","data-sidebar":"input",className:d("bg-bg-surface-navigation h-8 w-full shadow-none",e)},a))}function Hi(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"sidebar-header","data-sidebar":"header",className:d("flex flex-col gap-0.5 px-4 pt-3",e)},a))}function Ui(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"sidebar-footer","data-sidebar":"footer",className:d("flex flex-col gap-0.5 px-4 pb-3 [[data-state=collapsed]_&]:px-2",e)},a))}function Vi(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(Te,s({"data-slot":"sidebar-separator","data-sidebar":"separator",className:d("mx-2 w-auto bg-gray-stroke-muted",e)},a))}function Ei(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"sidebar-content","data-sidebar":"content",className:d("flex min-h-0 flex-1 flex-col gap-0.5 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e)},a))}function Gi(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"sidebar-group","data-sidebar":"group",className:d("relative flex w-full min-w-0 flex-col p-2 px-4",e)},a))}function _i(t){var r=t,{className:e,asChild:a=false}=r,o=n(r,["className","asChild"]);let l=a?radixUi.Slot.Slot:"div";return jsxRuntime.jsx(l,s({"data-slot":"sidebar-group-label","data-sidebar":"group-label",className:d("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 Wi(t){var r=t,{className:e,asChild:a=false}=r,o=n(r,["className","asChild"]);let l=a?radixUi.Slot.Slot:"button";return jsxRuntime.jsx(l,s({"data-slot":"sidebar-group-action","data-sidebar":"group-action",className:d("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 Xi(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:d("w-full text-sm",e)},a))}function Ki(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("ul",s({"data-slot":"sidebar-menu","data-sidebar":"menu",className:d("flex w-full min-w-0 flex-col gap-1",e)},a))}function Zi(r){var l=r,{className:e,isActive:a,children:o}=l,t=n(l,["className","isActive","children"]);return jsxRuntime.jsxs("li",f(s({"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:d("group/menu-item relative hover:cursor-pointer",e)},t),{children:[a&&jsxRuntime.jsx("span",{className:"absolute -left-4 top-0 h-full w-0.5 bg-secondary-stroke-emphasis","aria-hidden":"true"}),o]}))}var Qi=classVarianceAuthority.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]:data-[active=true]:stroke-[2.2] [&>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 ji(u){var c=u,{asChild:e=false,isActive:a=false,variant:o="default",size:t="md",tooltip:r,className:l}=c,i=n(c,["asChild","isActive","variant","size","tooltip","className"]);let p=e?radixUi.Slot.Slot:"button",{isMobile:m,state:b}=ze(),h=jsxRuntime.jsx(p,s({"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":t,"data-active":a,className:d(Qi({variant:o,size:t}),l)},i));return r?(typeof r=="string"&&(r={children:r}),jsxRuntime.jsxs(be,{children:[jsxRuntime.jsx(Le,{asChild:true,children:h}),jsxRuntime.jsx(Ce,s({side:"right",align:"center",hidden:b!=="collapsed"||m},r))]})):h}function Ji(r){var l=r,{className:e,asChild:a=false,showOnHover:o=false}=l,t=n(l,["className","asChild","showOnHover"]);let i=a?radixUi.Slot.Slot:"button";return jsxRuntime.jsx(i,s({"data-slot":"sidebar-menu-action","data-sidebar":"menu-action",className:d("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 $i(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"sidebar-menu-badge","data-sidebar":"menu-badge",className:d("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 Yi(t){var r=t,{className:e,showIcon:a=false}=r,o=n(r,["className","showIcon"]);let l=we.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return jsxRuntime.jsxs("div",f(s({"data-slot":"sidebar-menu-skeleton","data-sidebar":"menu-skeleton",className:d("flex h-8 items-center gap-0.5 rounded-md px-2",e)},o),{children:[a&&jsxRuntime.jsx(Da,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),jsxRuntime.jsx(Da,{className:"max-w-(--skeleton-width) h-4 flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":l}})]}))}function eu(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("ul",s({"data-slot":"sidebar-menu-sub","data-sidebar":"menu-sub",className:d("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 au(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("li",s({"data-slot":"sidebar-menu-sub-item","data-sidebar":"menu-sub-item",className:d("group/menu-sub-item relative",e)},a))}function tu({icon:e,title:a}){let{state:o,isMobile:t}=ze();return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[we.isValidElement(e)?we.cloneElement(e,{strokeWidth:1.8}):e,jsxRuntime.jsx("span",{className:d("whitespace-nowrap",o==="collapsed"&&"opacity-0",t&&"opacity-100"),children:a})]})}function ou(){return jsxRuntime.jsx("div",{className:"ml-auto transition-transform duration-200 group-data-[state=open]/collapsible:rotate-90",children:jsxRuntime.jsx(icons.ChevronRightMd,{size:20,strokeWidth:1.5})})}function ru(l){var i=l,{asChild:e=false,size:a="md",isActive:o=false,className:t}=i,r=n(i,["asChild","size","isActive","className"]);let u=e?radixUi.Slot.Slot:"a";return jsxRuntime.jsx(u,s({"data-slot":"sidebar-menu-sub-button","data-sidebar":"menu-sub-button","data-size":a,"data-active":o,className:d("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 nu={sm:"size-2",md:"size-3",lg:"size-4"},wr={sm:"[&_svg]:size-2",md:"[&_svg]:size-3",lg:"[&_svg]:size-3.5"},iu={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]"},Tr=classVarianceAuthority.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 uu(c){var p=c,{className:e,size:a,variant:o,checkedIcon:t,uncheckedIcon:r,checked:l,defaultChecked:i}=p,u=n(p,["className","size","variant","checkedIcon","uncheckedIcon","checked","defaultChecked"]);let[m,b]=we.useState(i||false),h=l!==void 0,w=h?l:m,k=t||r;return jsxRuntime.jsx(radixUi.Switch.Root,f(s({"data-slot":"switch",className:d("group",Tr({size:a,variant:o}),e),checked:l,defaultChecked:i,onCheckedChange:v=>{var y;h||b(v),(y=u.onCheckedChange)==null||y.call(u,v);}},u),{children:jsxRuntime.jsx(radixUi.Switch.Thumb,{"data-slot":"switch-thumb",className:d("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",k&&"!bg-transparent data-[disabled]:!bg-transparent",nu[a||"md"],iu[a||"md"]),children:k&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[w&&t&&jsxRuntime.jsx("span",{className:d("flex items-center justify-center text-primary-foreground-onfill group-data-[disabled]:text-gray-300",wr[a||"md"]),children:t}),!w&&r&&jsxRuntime.jsx("span",{className:d("flex items-center justify-center text-gray-foreground group-data-[disabled]:text-gray-300",wr[a||"md"]),children:r})]})})}))}var Ar=we.createContext({});function xu({children:e,value:a,onValueChange:o,open:t,defaultOpen:r,onOpenChange:l}){let[i,u]=we.useState(a||""),c={value:a||i,onValueChange:o||u};return jsxRuntime.jsx(Ar.Provider,{value:c,children:jsxRuntime.jsx(it,{open:t,defaultOpen:r,onOpenChange:l,children:e})})}function hu({children:e,asChild:a=true,className:o}){return jsxRuntime.jsx(ut,{className:o,asChild:a,children:e})}function bu({children:e,align:a="center",side:o="right",className:t}){return jsxRuntime.jsx(ft,{className:t,align:a,side:o,children:e})}function Lu({children:e,label:a}){let{value:o,onValueChange:t}=we.useContext(Ar);return a?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(pt,{children:a}),jsxRuntime.jsx(ka,{value:o,onValueChange:t,children:e})]}):jsxRuntime.jsx(ka,{value:o,onValueChange:t,children:e})}function Cu({children:e,value:a,onClick:o,icon:t}){let r=()=>{o&&o();};return a?jsxRuntime.jsxs(ct,{value:a,onClick:r,children:[typeof t=="string"?jsxRuntime.jsx("img",{src:t,alt:"",width:20,height:14}):t,e]}):jsxRuntime.jsxs(va,{onClick:r,children:[typeof t=="string"?jsxRuntime.jsx("img",{src:t,alt:"",width:20,height:14}):t,e]})}function Iu({children:e,onClick:a,icon:o}){return jsxRuntime.jsxs(va,{onClick:a,children:[o,e]})}function vu(){return jsxRuntime.jsx(mt,{})}var Dr=we.createContext(null),Tu=150,Rr=16,Au="w-8";function Oa(){let e=we.useContext(Dr);if(!e)throw new Error("useTabsContext must be used within a Tabs component.");return e}function Ru(e,a){let o=we.useRef(null);return we.useEffect(()=>()=>{o.current&&clearTimeout(o.current);},[]),we.useCallback(((...t)=>{o.current&&clearTimeout(o.current),o.current=setTimeout(()=>e(...t),a);}),[e,a])}var Br=classVarianceAuthority.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"}}),Fr=classVarianceAuthority.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"}}),Mu=classVarianceAuthority.cva("relative min-w-0 max-w-full",{variants:{variant:{standalone:"",header:"px-3.5 sm:px-6 lg:px-8"}},defaultVariants:{variant:"standalone"}}),Mr=classVarianceAuthority.cva(["pointer-events-none absolute top-0 z-10 h-full transition-opacity duration-200",Au],{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"}}),Nr=classVarianceAuthority.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 Du(i){var u=i,{className:e,variant:a="standalone",size:o="md",responsive:t=true,children:r}=u,l=n(u,["className","variant","size","responsive","children"]);let[c,p]=we.useState(o),m=we.useCallback(()=>{if(typeof window=="undefined")return;let h=parseInt(Fe.tablet),w=parseInt(Fe.mobile),k=window.innerWidth;k<=w||k<=h?p("md"):p(o);},[o]),b=Ru(m,Tu);return we.useEffect(()=>{if(typeof window=="undefined"||!t){p(o);return}return m(),window.addEventListener("resize",b),()=>window.removeEventListener("resize",b)},[t,o,m,b]),jsxRuntime.jsx(Dr.Provider,{value:{variant:a,size:o,responsiveSize:c},children:jsxRuntime.jsx(radixUi.Tabs.Root,f(s({"data-slot":"tabs","data-variant":a,"data-size":c,className:d("flex w-full max-w-full flex-col overflow-hidden",e)},l),{children:r}))})}function Bu(t){var r=t,{className:e,children:a}=r,o=n(r,["className","children"]);let{variant:l,responsiveSize:i}=Oa(),u=we.useRef(null),c=we.useRef(null),[p,m]=we.useState(false),[b,h]=we.useState(false),[w,k]=we.useState(null),v=we.useCallback(()=>{let C=u.current;if(!C)return;let{scrollLeft:I,scrollWidth:O,clientWidth:B}=C,M=O>B;m(M&&I>0),h(M&&I<O-B-1);},[]),y=we.useCallback(()=>{let C=c.current;if(!C)return;let I=C.querySelector('[data-state="active"]');if(I){let O=C.getBoundingClientRect(),B=I.getBoundingClientRect();k({left:B.left-O.left,width:B.width});}},[]),R=we.useCallback(()=>{let C=u.current,I=c.current;if(!C||!I)return;let O=I.querySelector('[data-state="active"]');if(O){let B=C.getBoundingClientRect(),M=O.getBoundingClientRect();M.left<B.left?C.scrollBy({left:M.left-B.left-Rr,behavior:"smooth"}):M.right>B.right&&C.scrollBy({left:M.right-B.right+Rr,behavior:"smooth"});}},[]);return we.useEffect(()=>{let C=u.current;if(!C)return;v();let I=new ResizeObserver(()=>{v(),y();});return I.observe(C),C.addEventListener("scroll",v,{passive:true}),()=>{I.disconnect(),C.removeEventListener("scroll",v);}},[v,y]),we.useEffect(()=>{y();},[y,a]),we.useEffect(()=>{let C=c.current;if(!C)return;let I=new MutationObserver(O=>{for(let B of O)if(B.type==="attributes"&&B.attributeName==="data-state"){y(),R();break}});return I.observe(C,{attributes:true,subtree:true,attributeFilter:["data-state"]}),()=>I.disconnect()},[y,R]),jsxRuntime.jsxs("div",{"data-slot":"tabs-list-wrapper",className:Mu({variant:l}),children:[jsxRuntime.jsx("div",{className:d(Mr({side:"left",variant:l}),p?"opacity-100":"opacity-0"),"aria-hidden":"true"}),jsxRuntime.jsx("div",{className:d(Mr({side:"right",variant:l}),b?"opacity-100":"opacity-0"),"aria-hidden":"true"}),jsxRuntime.jsx("div",{ref:u,className:"overflow-x-auto overflow-y-hidden [-ms-overflow-style:none] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:jsxRuntime.jsxs("div",{ref:c,className:"relative",children:[jsxRuntime.jsx(radixUi.Tabs.List,f(s({"data-slot":"tabs-list","data-variant":l,"data-size":i,className:d(Br({variant:l}),e)},o),{children:a})),w&&jsxRuntime.jsx("div",{className:"pointer-events-none absolute bottom-0 h-0.5 bg-secondary-stroke-emphasis transition-all duration-300 ease-out",style:{left:w.left,width:w.width},"aria-hidden":"true"})]})})]})}function Fu(l){var i=l,{className:e,children:a,icon:o,badge:t}=i,r=n(i,["className","children","icon","badge"]);let{variant:u,responsiveSize:c}=Oa(),p=we.useRef(null),[m,b]=we.useState(false);we.useEffect(()=>{let w=p.current;if(!w)return;let k=()=>{b(w.getAttribute("data-state")==="active");};k();let v=new MutationObserver(k);return v.observe(w,{attributes:true,attributeFilter:["data-state"]}),()=>v.disconnect()},[]);let h=()=>o?we.isValidElement(o)?we.cloneElement(o,{strokeWidth:m?2:1.6}):o:null;return jsxRuntime.jsxs(radixUi.Tabs.Trigger,f(s({ref:p,"data-slot":"tabs-trigger","data-variant":u,"data-size":c,className:d(Fr({variant:u,size:c}),e)},r),{children:[o&&jsxRuntime.jsx("span",{"data-slot":"tabs-icon",className:"flex shrink-0 items-center","aria-hidden":"true",children:h()}),jsxRuntime.jsx("span",{children:a}),t&&jsxRuntime.jsx("span",{"data-slot":"tabs-badge",className:"flex shrink-0 items-center",role:"status",children:t})]}))}function Nu(o){var t=o,{className:e}=t,a=n(t,["className"]);let{variant:r,responsiveSize:l}=Oa();return jsxRuntime.jsx(radixUi.Tabs.Content,s({"data-slot":"tabs-content","data-variant":r,"data-size":l,className:d(Nr({variant:r,size:l}),e)},a))}var qr=classVarianceAuthority.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 Hu(i){var u=i,{className:e,variant:a="regular",asChild:o=false,disabled:t=false,inactive:r=false}=u,l=n(u,["className","variant","asChild","disabled","inactive"]);let c=o?radixUi.Slot.Slot:"div";return jsxRuntime.jsxs(c,f(s({"data-slot":"tile","data-variant":a,"data-inactive":r,"data-disabled":t,"aria-disabled":t||r,className:d(qr({variant:a,className:e}),l.onClick&&!t&&"cursor-pointer")},l),{children:[l.children,l.onClick&&!t&&jsxRuntime.jsx(icons.EditPencil,{className:"absolute right-5 top-4 size-5 opacity-0 transition-opacity group-hover/tile:opacity-100"})]}))}function Uu(t){var r=t,{className:e,icon:a}=r,o=n(r,["className","icon"]);return jsxRuntime.jsx("div",f(s({"data-slot":"tile-icon",className:d("mb-2.5 last:mb-0 [&>svg]:size-5",e)},o),{children:a}))}function Vu(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"tile-title",className:d("line-clamp-1 flex w-fit text-xs font-medium",e)},a))}function Eu(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("span",s({"data-slot":"tile-description",className:d("line-clamp-1 flex w-fit text-sm font-semibold",e)},a))}var Xu=3,Ku=1e6,ie={ADD_TOAST:"ADD_TOAST",UPDATE_TOAST:"UPDATE_TOAST",DISMISS_TOAST:"DISMISS_TOAST",REMOVE_TOAST:"REMOVE_TOAST"},At=0;function Zu(){return At=(At+1)%Number.MAX_SAFE_INTEGER,At.toString()}var Rt=new Map,Or=e=>{if(Rt.has(e))return;let a=setTimeout(()=>{Rt.delete(e),ta({type:ie.REMOVE_TOAST,toastId:e});},Ku);Rt.set(e,a);},Qu=(e,a)=>{switch(a.type){case ie.ADD_TOAST:return f(s({},e),{toasts:[a.toast,...e.toasts].slice(0,Xu)});case ie.UPDATE_TOAST:return f(s({},e),{toasts:e.toasts.map(o=>o.id===a.toast.id?s(s({},o),a.toast):o)});case ie.DISMISS_TOAST:{let{toastId:o}=a;return o?Or(o):e.toasts.forEach(t=>{Or(t.id);}),f(s({},e),{toasts:e.toasts.map(t=>t.id===o||a.toastId===void 0?f(s({},t),{open:false}):t)})}case ie.REMOVE_TOAST:return a.toastId===void 0?f(s({},e),{toasts:[]}):f(s({},e),{toasts:e.toasts.filter(o=>o.id!==a.toastId)})}},Ha=[],Ua={toasts:[]};function ta(e){Ua=Qu(Ua,e),Ha.forEach(a=>{a(Ua);});}function ju(a){var e=n(a,[]);let o=Zu(),t=l=>ta({type:ie.UPDATE_TOAST,toast:f(s({},l),{id:o})}),r=()=>ta({type:ie.DISMISS_TOAST,toastId:o});return ta({type:ie.ADD_TOAST,toast:f(s({},e),{id:o,open:true,onOpenChange:l=>{l||r();}})}),{id:o,dismiss:r,update:t}}function Mt(){let[e,a]=we.useState(Ua);return we.useEffect(()=>(Ha.push(a),()=>{let o=Ha.indexOf(a);o>-1&&Ha.splice(o,1);}),[e]),f(s({},e),{toast:ju,dismiss:o=>ta({type:ie.DISMISS_TOAST,toastId:o})})}var Ur=classVarianceAuthority.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"}}),of=classVarianceAuthority.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"}}),rf={primary:"regular-soft",secondary:"emphasis-soft",success:"success-soft",warning:"warning-soft",error:"error-soft"},sf={primary:icons.Info,secondary:icons.Info,success:icons.CircleCheck,warning:icons.TriangleWarning,error:icons.OctagonWarning},Vr=radixUi.Toast.Provider;function Er(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.Toast.Viewport,s({className:d("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 Gr(i){var u=i,{className:e,variant:a="primary",showIcon:o=true,duration:t=5e3,children:r}=u,l=n(u,["className","variant","showIcon","duration","children"]);let c=sf[a||"primary"];return jsxRuntime.jsx(radixUi.Toast.Root,f(s({duration:t},l),{forceMount:true,asChild:true,children:jsxRuntime.jsxs(framerMotion.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:d(Ur({variant:a}),e),children:[o&&jsxRuntime.jsx(c,{className:d(of({variant:a}))}),jsxRuntime.jsx("div",{className:"flex flex-1 items-center justify-between gap-4",children:r})]})}))}function lf(c){var p=c,{className:e,variant:a="primary",size:o="sm",iconLeft:t,iconRight:r,children:l,altText:i="Toast action"}=p,u=n(p,["className","variant","size","iconLeft","iconRight","children","altText"]);return jsxRuntime.jsx(radixUi.Toast.Action,f(s({asChild:true,altText:i,className:d("inline-flex items-center justify-center",e)},u),{children:jsxRuntime.jsx(K,{iconLeft:t,iconRight:r,size:o,variant:rf[a],children:l})}))}function _r(t){var r=t,{className:e,label:a="Fechar"}=r,o=n(r,["className","label"]);return jsxRuntime.jsx(radixUi.Toast.Close,f(s({className:d("shrink-0",e)},o),{asChild:true,children:jsxRuntime.jsx(K,{iconLeft:jsxRuntime.jsx(icons.CloseMd,{className:"size-4"}),size:"sm","aria-label":a,variant:"regular-basic"})}))}function Wr(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.Toast.Title,s({className:d("flex-1 text-md font-medium",e)},a))}function Xr(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.Toast.Description,s({className:d("text-xs",e)},a))}function df(){let{toasts:e}=Mt();return jsxRuntime.jsxs(Vr,{children:[jsxRuntime.jsx(framerMotion.AnimatePresence,{mode:"popLayout",children:e.filter(a=>a.open).map(function(i){var u=i,{id:a,title:o,description:t,action:r}=u,l=n(u,["id","title","description","action"]);return jsxRuntime.jsxs(Gr,f(s({},l),{children:[jsxRuntime.jsxs("div",{className:"grid",children:[o&&jsxRuntime.jsx(Wr,{children:o}),t&&jsxRuntime.jsx(Xr,{children:t})]}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[r,jsxRuntime.jsx(_r,{})]})]}),a)})}),jsxRuntime.jsx(Er,{})]})}/*! 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
- */exports.Alert=Hs;exports.AlertActions=Gs;exports.AlertButton=_s;exports.AlertContainer=Us;exports.AlertContent=Vs;exports.AlertDescription=mo;exports.AlertDialog=tl;exports.AlertDialogAction=il;exports.AlertDialogCancel=ul;exports.AlertDialogContent=rl;exports.AlertDialogDescription=nl;exports.AlertDialogFooter=ll;exports.AlertDialogHeader=sl;exports.AlertDialogOverlay=Io;exports.AlertDialogPortal=Co;exports.AlertDialogTitle=dl;exports.AlertDialogTrigger=ol;exports.AlertIcon=Es;exports.AlertTitle=po;exports.Autocomplete=Dl;exports.AutocompleteContent=Nl;exports.AutocompleteContentFooter=Za;exports.AutocompleteGroup=Ol;exports.AutocompleteItem=ql;exports.AutocompleteText=zl;exports.AutocompleteTrigger=Fl;exports.AutocompleteWrapper=Bl;exports.Avatar=ja;exports.AvatarFallback=$a;exports.AvatarImage=Ja;exports.Badge=me;exports.Breadcrumb=Ya;exports.BreadcrumbEllipsis=jl;exports.BreadcrumbItem=Xl;exports.BreadcrumbLink=Kl;exports.BreadcrumbList=et;exports.BreadcrumbPage=Zl;exports.BreadcrumbSeparator=Ql;exports.Button=K;exports.CardWeek=rd;exports.CardWeekActions=hd;exports.CardWeekBreadcrumb=sd;exports.CardWeekContainer=ld;exports.CardWeekContent=md;exports.CardWeekDescription=id;exports.CardWeekFooter=pd;exports.CardWeekHeader=dd;exports.CardWeekProgress=cd;exports.CardWeekProgressCircle=fd;exports.CardWeekStatus=xd;exports.CardWeekTags=ud;exports.CardWeekText=gd;exports.CardWeekTitle=nd;exports.Checkbox=Id;exports.Collapsible=Sd;exports.CollapsibleContent=Pd;exports.CollapsibleTrigger=yd;exports.Dialog=hl;exports.DialogClose=Ll;exports.DialogContainer=Cl;exports.DialogContent=Il;exports.DialogDescription=yl;exports.DialogFooter=kl;exports.DialogHeader=vl;exports.DialogOverlay=ko;exports.DialogPortal=vo;exports.DialogTitle=Sl;exports.DialogTrigger=bl;exports.DropdownMenu=dt;exports.DropdownMenuCheckboxItem=Dd;exports.DropdownMenuContent=it;exports.DropdownMenuGroup=Md;exports.DropdownMenuItem=Ca;exports.DropdownMenuLabel=ft;exports.DropdownMenuPortal=Rd;exports.DropdownMenuRadioGroup=Ia;exports.DropdownMenuRadioItem=ut;exports.DropdownMenuSeparator=ct;exports.DropdownMenuShortcut=Bd;exports.DropdownMenuSub=Fd;exports.DropdownMenuSubContent=qd;exports.DropdownMenuSubTrigger=Nd;exports.DropdownMenuTrigger=nt;exports.Input=mt;exports.Label=Ud;exports.Loading=Xa;exports.Logo=Ed;exports.LogoShort=Gd;exports.Pagination=jd;exports.PaginationContent=jo;exports.PaginationEllipsis=er;exports.PaginationInfo=gt;exports.PaginationItem=ka;exports.PaginationLink=Jo;exports.PaginationNext=Yo;exports.PaginationPrevious=$o;exports.PaginationRoot=Qo;exports.Progress=rt;exports.ProgressCircle=at;exports.RadioGroup=en;exports.RadioGroupItem=an;exports.Ranking=un;exports.RankingAssigneeGroup=kn;exports.RankingAssigneeItem=Sn;exports.RankingAssigneeLabel=vn;exports.RankingAssigneesColumn=In;exports.RankingBody=pn;exports.RankingButton=Mn;exports.RankingHeader=fn;exports.RankingHeaderCell=cn;exports.RankingItem=mn;exports.RankingNumber=gn;exports.RankingPerformance=Rn;exports.RankingPriority=yn;exports.RankingQuestions=wn;exports.RankingSpecialty=bn;exports.RankingSuperFocus=Cn;exports.RankingTopic=Ln;exports.RankingTopicColumn=xn;exports.RankingTopicContent=hn;exports.Rating=On;exports.RatingButtonVariants=dr;exports.RatingLabelVariants=nr;exports.RatingStarVariants=lr;exports.ScrollArea=ht;exports.ScrollBar=Ze;exports.SegmentControl=ti;exports.SegmentControlContent=si;exports.SegmentControlList=oi;exports.SegmentControlTrigger=ri;exports.Select=En;exports.SelectContent=Zn;exports.SelectGroup=Wn;exports.SelectHeader=Qn;exports.SelectItem=jn;exports.SelectLabel=_n;exports.SelectScrollDownButton=cr;exports.SelectScrollUpButton=fr;exports.SelectSeparator=Jn;exports.SelectText=$n;exports.SelectTrigger=Kn;exports.SelectValue=Xn;exports.SelectWrapper=Gn;exports.Separator=we;exports.Sheet=kt;exports.SheetClose=ci;exports.SheetContent=St;exports.SheetDescription=bi;exports.SheetFooter=xi;exports.SheetHeader=gi;exports.SheetTitle=hi;exports.SheetTrigger=fi;exports.Sidebar=Di;exports.SidebarContent=Ui;exports.SidebarFooter=zi;exports.SidebarGroup=Vi;exports.SidebarGroupAction=Gi;exports.SidebarGroupContent=_i;exports.SidebarGroupLabel=Ei;exports.SidebarHeader=Oi;exports.SidebarInput=qi;exports.SidebarInset=Ni;exports.SidebarMenu=Wi;exports.SidebarMenuAction=Qi;exports.SidebarMenuBadge=ji;exports.SidebarMenuButton=Zi;exports.SidebarMenuItem=Xi;exports.SidebarMenuItemCollapse=au;exports.SidebarMenuItemTitle=eu;exports.SidebarMenuSkeleton=Ji;exports.SidebarMenuSub=$i;exports.SidebarMenuSubButton=tu;exports.SidebarMenuSubItem=Yi;exports.SidebarProvider=Mi;exports.SidebarRail=Fi;exports.SidebarSeparator=Hi;exports.SidebarTrigger=Bi;exports.Skeleton=Ra;exports.Switch=nu;exports.Switcher=mu;exports.SwitcherContent=xu;exports.SwitcherFooter=Lu;exports.SwitcherGroup=hu;exports.SwitcherItem=bu;exports.SwitcherSeparator=Cu;exports.SwitcherTrigger=gu;exports.Tabs=Ru;exports.TabsContent=Bu;exports.TabsList=Mu;exports.TabsTrigger=Du;exports.Tag=De;exports.Tile=Ou;exports.TileDescription=Uu;exports.TileIcon=zu;exports.TileTitle=Hu;exports.Toast=Er;exports.ToastAction=rf;exports.ToastClose=Gr;exports.ToastDescription=Wr;exports.ToastProvider=Ur;exports.ToastTitle=_r;exports.ToastViewport=Vr;exports.Toaster=sf;exports.Tooltip=be;exports.TooltipContent=Ce;exports.TooltipProvider=he;exports.TooltipTrigger=Le;exports.alertButtonVariants=go;exports.alertVariants=co;exports.avatarVariants=Oo;exports.badgeVariants=ho;exports.buttonVariants=Ve;exports.calculatePageNumbers=ar;exports.checkboxVariants=_o;exports.labelVariants=Ko;exports.radioGroupVariants=tr;exports.segmentControlTriggerVariants=mr;exports.switchVariants=wr;exports.tabsContentVariants=Fr;exports.tabsListVariants=Dr;exports.tabsTriggerVariants=Br;exports.tagVariants=Ho;exports.tileVariants=Nr;exports.toastVariants=Hr;exports.useIsMobile=Xe;exports.useSidebar=Oe;exports.useTabsContext=Na;exports.useToast=At;//# sourceMappingURL=index.js.map
15
+ */exports.Alert=Us;exports.AlertActions=_s;exports.AlertButton=Ws;exports.AlertContainer=Vs;exports.AlertContent=Es;exports.AlertDescription=xo;exports.AlertDialog=ol;exports.AlertDialogAction=ul;exports.AlertDialogCancel=fl;exports.AlertDialogContent=sl;exports.AlertDialogDescription=il;exports.AlertDialogFooter=dl;exports.AlertDialogHeader=ll;exports.AlertDialogOverlay=ko;exports.AlertDialogPortal=vo;exports.AlertDialogTitle=nl;exports.AlertDialogTrigger=rl;exports.AlertIcon=Gs;exports.AlertTitle=go;exports.Autocomplete=Nl;exports.AutocompleteContent=zl;exports.AutocompleteContentFooter=ja;exports.AutocompleteGroup=Ul;exports.AutocompleteItem=Hl;exports.AutocompleteText=Vl;exports.AutocompleteTrigger=Ol;exports.AutocompleteWrapper=ql;exports.Avatar=$a;exports.AvatarFallback=et;exports.AvatarImage=Ya;exports.Badge=me;exports.Breadcrumb=at;exports.BreadcrumbEllipsis=Yl;exports.BreadcrumbItem=Ql;exports.BreadcrumbLink=jl;exports.BreadcrumbList=tt;exports.BreadcrumbPage=Jl;exports.BreadcrumbSeparator=$l;exports.Button=K;exports.CardWeek=dd;exports.CardWeekActions=Cd;exports.CardWeekBreadcrumb=nd;exports.CardWeekContainer=id;exports.CardWeekContent=hd;exports.CardWeekDescription=cd;exports.CardWeekFooter=xd;exports.CardWeekHeader=ud;exports.CardWeekProgress=gd;exports.CardWeekProgressCircle=md;exports.CardWeekStatus=Ld;exports.CardWeekTags=pd;exports.CardWeekText=bd;exports.CardWeekTitle=fd;exports.Checkbox=Sd;exports.Collapsible=wd;exports.CollapsibleContent=Ad;exports.CollapsibleTrigger=Td;exports.Dialog=Cl;exports.DialogClose=vl;exports.DialogContainer=kl;exports.DialogContent=Sl;exports.DialogDescription=Tl;exports.DialogFooter=Pl;exports.DialogHeader=yl;exports.DialogOverlay=yo;exports.DialogPortal=So;exports.DialogTitle=wl;exports.DialogTrigger=Il;exports.DropdownMenu=it;exports.DropdownMenuCheckboxItem=Nd;exports.DropdownMenuContent=ft;exports.DropdownMenuGroup=Fd;exports.DropdownMenuItem=va;exports.DropdownMenuLabel=pt;exports.DropdownMenuPortal=Bd;exports.DropdownMenuRadioGroup=ka;exports.DropdownMenuRadioItem=ct;exports.DropdownMenuSeparator=mt;exports.DropdownMenuShortcut=qd;exports.DropdownMenuSub=Od;exports.DropdownMenuSubContent=Hd;exports.DropdownMenuSubTrigger=zd;exports.DropdownMenuTrigger=ut;exports.Input=xt;exports.Label=Gd;exports.Loading=Za;exports.Logo=Wd;exports.LogoShort=Xd;exports.Pagination=Yd;exports.PaginationContent=Jo;exports.PaginationEllipsis=ar;exports.PaginationInfo=ht;exports.PaginationItem=ya;exports.PaginationLink=$o;exports.PaginationNext=er;exports.PaginationPrevious=Yo;exports.PaginationRoot=jo;exports.Progress=lt;exports.ProgressCircle=ot;exports.RadioGroup=on;exports.RadioGroupItem=rn;exports.Ranking=pn;exports.RankingAssigneeGroup=Pn;exports.RankingAssigneeItem=wn;exports.RankingAssigneeLabel=yn;exports.RankingAssigneesColumn=Sn;exports.RankingBody=xn;exports.RankingButton=Fn;exports.RankingHeader=mn;exports.RankingHeaderCell=gn;exports.RankingItem=hn;exports.RankingNumber=bn;exports.RankingPerformance=Bn;exports.RankingPriority=Tn;exports.RankingQuestions=Rn;exports.RankingSpecialty=In;exports.RankingSuperFocus=kn;exports.RankingTopic=vn;exports.RankingTopicColumn=Ln;exports.RankingTopicContent=Cn;exports.Rating=Hn;exports.RatingButtonVariants=nr;exports.RatingLabelVariants=ir;exports.RatingStarVariants=dr;exports.ScrollArea=Lt;exports.ScrollBar=je;exports.SegmentControl=ri;exports.SegmentControlContent=di;exports.SegmentControlList=si;exports.SegmentControlTrigger=li;exports.Select=_n;exports.SelectContent=jn;exports.SelectGroup=Kn;exports.SelectHeader=Jn;exports.SelectItem=$n;exports.SelectLabel=Xn;exports.SelectScrollDownButton=pr;exports.SelectScrollUpButton=cr;exports.SelectSeparator=Yn;exports.SelectText=ei;exports.SelectTrigger=Qn;exports.SelectValue=Zn;exports.SelectWrapper=Wn;exports.Separator=Te;exports.Sheet=yt;exports.SheetClose=mi;exports.SheetContent=Pt;exports.SheetDescription=Ci;exports.SheetFooter=bi;exports.SheetHeader=hi;exports.SheetTitle=Li;exports.SheetTrigger=pi;exports.Sidebar=Fi;exports.SidebarContent=Ei;exports.SidebarFooter=Ui;exports.SidebarGroup=Gi;exports.SidebarGroupAction=Wi;exports.SidebarGroupContent=Xi;exports.SidebarGroupLabel=_i;exports.SidebarHeader=Hi;exports.SidebarInput=zi;exports.SidebarInset=Oi;exports.SidebarMenu=Ki;exports.SidebarMenuAction=Ji;exports.SidebarMenuBadge=$i;exports.SidebarMenuButton=ji;exports.SidebarMenuItem=Zi;exports.SidebarMenuItemCollapse=ou;exports.SidebarMenuItemTitle=tu;exports.SidebarMenuSkeleton=Yi;exports.SidebarMenuSub=eu;exports.SidebarMenuSubButton=ru;exports.SidebarMenuSubItem=au;exports.SidebarProvider=Bi;exports.SidebarRail=qi;exports.SidebarSeparator=Vi;exports.SidebarTrigger=Ni;exports.Skeleton=Da;exports.Switch=uu;exports.Switcher=xu;exports.SwitcherContent=bu;exports.SwitcherFooter=Iu;exports.SwitcherGroup=Lu;exports.SwitcherItem=Cu;exports.SwitcherSeparator=vu;exports.SwitcherTrigger=hu;exports.Tabs=Du;exports.TabsContent=Nu;exports.TabsList=Bu;exports.TabsTrigger=Fu;exports.Tag=Be;exports.Tile=Hu;exports.TileDescription=Eu;exports.TileIcon=Uu;exports.TileTitle=Vu;exports.Toast=Gr;exports.ToastAction=lf;exports.ToastClose=_r;exports.ToastDescription=Xr;exports.ToastProvider=Vr;exports.ToastTitle=Wr;exports.ToastViewport=Er;exports.Toaster=df;exports.Tooltip=be;exports.TooltipContent=Ce;exports.TooltipProvider=he;exports.TooltipTrigger=Le;exports.alertButtonVariants=ho;exports.alertVariants=mo;exports.avatarVariants=zo;exports.badgeVariants=Lo;exports.buttonVariants=Ee;exports.calculatePageNumbers=tr;exports.checkboxVariants=Wo;exports.labelVariants=Zo;exports.radioGroupVariants=or;exports.segmentControlTriggerVariants=gr;exports.switchVariants=Tr;exports.tabsContentVariants=Nr;exports.tabsListVariants=Br;exports.tabsTriggerVariants=Fr;exports.tagVariants=Uo;exports.tileVariants=qr;exports.toastVariants=Ur;exports.useIsMobile=Ze;exports.useSidebar=ze;exports.useTabsContext=Oa;exports.useToast=Mt;//# sourceMappingURL=index.js.map
16
16
  //# sourceMappingURL=index.js.map