@medway-ui/core 1.22.3 → 1.22.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +6 -1
- package/dist/index.d.ts +6 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
'use strict';var D=require('react'),classVarianceAuthority=require('class-variance-authority'),icons=require('@medway-ui/icons'),clsx=require('clsx'),tailwindMerge=require('tailwind-merge'),jsxRuntime=require('react/jsx-runtime'),radixUi=require('radix-ui'),reactDom=require('react-dom');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 D__namespace=/*#__PURE__*/_interopNamespace(D);var Ll=Object.defineProperty,vl=Object.defineProperties;var Il=Object.getOwnPropertyDescriptors;var tt=Object.getOwnPropertySymbols;var Xo=Object.prototype.hasOwnProperty,Ko=Object.prototype.propertyIsEnumerable;var Wo=(e,a,o)=>a in e?Ll(e,a,{enumerable:true,configurable:true,writable:true,value:o}):e[a]=o,s=(e,a)=>{for(var o in a||(a={}))Xo.call(a,o)&&Wo(e,o,a[o]);if(tt)for(var o of tt(a))Ko.call(a,o)&&Wo(e,o,a[o]);return e},f=(e,a)=>vl(e,Il(a));var n=(e,a)=>{var o={};for(var t in e)Xo.call(e,t)&&a.indexOf(t)<0&&(o[t]=e[t]);if(e!=null&&tt)for(var t of tt(e))a.indexOf(t)<0&&Ko.call(e,t)&&(o[t]=e[t]);return o};var Sl=tailwindMerge.extendTailwindMerge({extend:{classGroups:{"font-size":["text-xxs","text-xs","text-sm","text-base","text-md","text-lg","text-xl","text-title-xs","text-title-sm","text-title-md","text-title-lg","text-title-xl","text-title-xxl","text-display-sm","text-display-md","text-display-lg"],leading:["leading-xxs","leading-xs","leading-sm","leading-md","leading-lg","leading-title-xs","leading-title-sm","leading-title-md","leading-title-lg","leading-title-xl","leading-title-xxl","leading-display-sm","leading-display-md","leading-display-lg"],"font-weight":["font-regular","font-medium","font-semibold","font-bold","font-extrabold"],rounded:["rounded-none","rounded-sm","rounded-md","rounded-lg","rounded-pill","rounded-circular","rounded-full"]}}});function l(...e){return Sl(clsx.clsx(e))}var Wt=D.createContext(null),$o=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 Dl(d){var i=d,{className:e,variant:a="regular",onClose:o,children:t}=i,r=n(i,["className","variant","onClose","children"]);let u=D.Children.toArray(t),c=u.some(g=>D.isValidElement(g)&&g.type===Yo),p=u.some(g=>D.isValidElement(g)&&g.type===Jo),m=D.useMemo(()=>({variant:a,hasDescription:c,hasTitle:p,onClose:o}),[a,c,p,o]);return jsxRuntime.jsx(Wt.Provider,{value:m,children:jsxRuntime.jsxs("div",f(s({"data-slot":"alert",role:"alert",className:l($o({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 Rl(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"alert-container",className:l("flex gap-3",e)},a))}function Ml(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"alert-content",className:l("flex flex-col gap-1",e)},a))}function Nl(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:l("size-6",e)},o),{children:a}))}function Jo(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"alert-title",className:l("line-clamp-1 min-h-4 text-md font-medium",e)},a))}function Yo(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"alert-description",className:l("!line-clamp-3 grid justify-items-start gap-1 text-sm leading-5",e)},a))}function Bl(o){var t=o,{className:e}=t,a=n(t,["className"]);let r=D.useContext(Wt),d=(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:l("relative mt-2 flex flex-wrap items-center gap-x-2 lg:mt-0 lg:flex-nowrap",(!d||!i)&&u&&"lg:right-5",e)},a))}var er=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 Fl(t){var r=t,{className:e,variant:a}=r,o=n(r,["className","variant"]);let d=D.useContext(Wt),i=(d==null?void 0:d.variant)||"regular";return jsxRuntime.jsx("button",s({className:l(er({variant:a,alertVariant:i}),e)},o))}function Xt({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:l("animate-spin",a),children:jsxRuntime.jsx("path",{d:"M21 12a9 9 0 1 1-6.219-8.56"})})}var ql={sm:"size-4 p-0 leading-none",md:"size-5 p-0 leading-none",lg:"size-6 p-0 leading-none",xl:"size-7 p-0 leading-none"},zl={sm:"px-1",md:"px-1",lg:"px-1",xl:"px-1.5"},tr=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 Be(u){var c=u,{className:e,variant:a,size:o,icon:t,animation:r,asChild:d=false}=c,i=n(c,["className","variant","size","icon","animation","asChild"]);let p=d?radixUi.Slot.Slot:"span",m=D.Children.count(i.children)>0,g=!!t&&!m,h=typeof i.children=="string"||typeof i.children=="number"?String(i.children).trim():"",k=/^[A-Za-z0-9]$/.test(h),C=/^[A-Za-z0-9]{2,3}$/.test(h),R=/^\d{1,2}\S$/.test(h),B=C||R;return jsxRuntime.jsxs(p,f(s({"data-slot":"badge",className:l(tr({variant:a,size:o}),(g||k)&&ql[o||"md"],!g&&B&&zl[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 Wl={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"},or={sm:"size-2",md:"size-2.5",lg:"size-2.5",xl:"size-3"},Xl={sm:"sm",md:"md",lg:"md",xl:"lg"},Ta=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 min-w-0 max-w-full overflow-hidden [&_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-primary-foreground hover:border-transparent hover:bg-gray-50 disabled:border-transparent dark:bg-transparent hover:dark:border-gray-400 disabled:border-gray-stroke-muted disabled:text-gray-foreground-muted",gradient:"text-white [background:linear-gradient(284deg,var(--color-primary)_2.11%,var(--color-secondary)_128.06%)] hover:[background:linear-gradient(284deg,var(--color-primary)2.11%,var(--color-secondary)102.63%)] disabled:[background:var(--color-gray-50)] disabled:bg-gray-background-fill-muted disabled:text-gray-foreground-onfill",medbrain:"border-2 border-transparent bg-clip-text [background:linear-gradient(var(--color-white),var(--color-white))_padding-box,linear-gradient(75deg,var(--color-secondary),var(--color-cm-lighten-3))_border-box] [box-shadow:-8px_0_8px_0_var(--color-prev-16)_inset,8px_0_8px_0_var(--color-secondary-24)_inset,0_0_8px_0_var(--color-cm-16)_inset] hover:[background:linear-gradient(var(--color-white),var(--color-white))_padding-box,linear-gradient(75deg,var(--color-cm-lighten-3),var(--color-secondary))_border-box] [&_span]:bg-clip-text [&_span]:text-transparent [&_span]:bg-gradient-to-r [&_span]:from-cm [&_span]:to-primary [&_span]:hover:to-secondary disabled:bg-gray-background-fill-muted disabled:text-gray-foreground-onfill [&_svg]:text-cm-darken-1"},size:{sm:"min-h-8 min-w-8 px-3 py-1 has-[>svg]:px-3 [&_svg:not([class*='size-'])]:size-[13px] text-xs",md:"min-h-10 min-w-10 px-3.5 py-2 has-[>svg]:px-3.5 [&_svg:not([class*='size-'])]:size-4 text-sm",lg:"min-h-12 min-w-12 px-4 py-3 has-[>svg]:px-4 [&_svg:not([class*='size-'])]:size-6 text-md",xl:"min-h-14 min-w-14 px-[18px] py-3.5 has-[>svg]:px-[18px] [&_svg:not([class*='size-'])]:size-7 text-lg"}},defaultVariants:{variant:"regular",size:"md"}});function Y(g){var h=g,{className:e,containerClassName:a,variant:o,size:t,asChild:r=false,iconRight:d,iconLeft:i,badge:u,loading:c=false,alert:p}=h,m=n(h,["className","containerClassName","variant","size","asChild","iconRight","iconLeft","badge","loading","alert"]);let k=r?radixUi.Slot.Slot:"button",C=P=>P!=null&&P!==0&&P!==""&&P!=="0",R=P=>P,B=!m.children&&(i||d||p),_=()=>p?jsxRuntime.jsxs("span",{className:l("relative mr-1 flex size-2.5",or[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:l("relative inline-flex size-2.5 rounded-full",or[t||"md"]),style:{backgroundColor:p}})]}):null,F=()=>c?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Xt,{className:"[grid-area:stack]"}),jsxRuntime.jsx("span",{className:l("[grid-area:stack]",c&&"invisible"),children:m.children})]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[p?_():i&&R(i),m.children&&jsxRuntime.jsx("span",{className:"truncate",children:m.children}),d&&R(d)]});return jsxRuntime.jsxs("div",{className:l("relative min-w-0",a),children:[C(u)&&jsxRuntime.jsx(Be,{size:Xl[t||"md"],variant:"regular",className:l("absolute -right-2 -top-1 z-10"),role:"status","aria-label":`${u}-notifications`,children:String(u)}),jsxRuntime.jsx(k,f(s({disabled:c,"aria-busy":c,"aria-live":c?"polite":void 0,"data-slot":"button",className:l(B&&Wl[t||"md"],c&&"!inline-grid",Ta({variant:o,size:t,className:e}))},m),{children:F()}))]})}var sr=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",ia:"[background:linear-gradient(90deg,var(--color-secondary-darken-1)_0%,var(--color-cm)_100%)] text-primary-foreground-onfill fill-primary-foreground-onfill","ia-soft":"[background:linear-gradient(90deg,color-mix(in_srgb,var(--color-secondary-darken-1)_15%,transparent)_0%,color-mix(in_srgb,var(--color-cm)_15%,transparent)_100%)] text-secondary-foreground fill-secondary-foreground","ia-basic":"bg-transparent text-secondary-foreground [&_[data-slot=tag-text]]:bg-clip-text [&_[data-slot=tag-text]]:text-transparent [&_[data-slot=tag-text]]:[-webkit-background-clip:text] [&_[data-slot=tag-text]]:[background-image:linear-gradient(90deg,var(--color-secondary-darken-1)_0%,var(--color-cm)_100%)]"}},defaultVariants:{variant:"regular"}});function jl(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:l("[&>svg]:size-3.5",e)},o),{children:a}))}function fe(i){var u=i,{className:e,variant:a,asChild:o=false,icon:t,children:r}=u,d=n(u,["className","variant","asChild","icon","children"]);let c=o?radixUi.Slot.Slot:"span";return jsxRuntime.jsxs(c,f(s({"data-slot":"tag",className:l(sr({variant:a}),e)},d),{children:[t&&jsxRuntime.jsx(jl,{icon:t}),jsxRuntime.jsx("span",{"data-slot":"tag-text",children:r})]}))}var da="regular",rt=D.createContext(null),ed=classVarianceAuthority.cva("flex w-full items-center justify-center px-8 py-8",{variants:{variant:{regular:"[background-image:radial-gradient(50%_100%_at_50%_0%,var(--color-primary-background-soft)_0%,transparent_100%)]",emphasis:"[background-image:radial-gradient(50%_100%_at_50%_0%,var(--color-secondary-background-soft)_0%,transparent_100%)]",warning:"[background-image:radial-gradient(50%_100%_at_50%_0%,var(--color-feedback-warning-background-soft)_0%,transparent_100%)]",error:"[background-image:radial-gradient(50%_100%_at_50%_0%,var(--color-feedback-error-background-soft)_0%,transparent_100%)]",success:"[background-image:radial-gradient(50%_100%_at_50%_0%,var(--color-feedback-success-background-soft)_0%,transparent_100%)]"}},defaultVariants:{variant:da}}),ad=classVarianceAuthority.cva("flex items-center justify-center rounded-full p-4 [&_svg]:size-8",{variants:{variant:{regular:"bg-primary-background-fill text-primary-foreground-onfill",emphasis:"bg-secondary-background-fill text-secondary-foreground-onfill",warning:"bg-yellow-background-fill text-yellow-foreground-onfill",error:"bg-red-background-fill text-red-foreground-onfill",success:"bg-green-background-fill text-green-foreground-onfill"}},defaultVariants:{variant:da}}),td={regular:"regular-soft",emphasis:"emphasis-soft",warning:"warning-soft",error:"error-soft",success:"success-soft"},od={regular:"regular",emphasis:"emphasis",warning:"warning",error:"error",success:"success"};function rd(o){var t=o,{variant:e=da}=t,a=n(t,["variant"]);let r=D.useMemo(()=>({variant:e}),[e]);return jsxRuntime.jsx(rt.Provider,{value:r,children:jsxRuntime.jsx(radixUi.AlertDialog.Root,s({"data-slot":"alert-dialog"},a))})}function sd(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.AlertDialog.Trigger,s({"data-slot":"alert-dialog-trigger"},e))}function dr(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.AlertDialog.Portal,s({"data-slot":"alert-dialog-portal"},e))}function nr(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.AlertDialog.Overlay,s({"data-slot":"alert-dialog-overlay",className:l("fixed inset-0 z-50 bg-black-48 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e)},a))}function ld(d){var i=d,{className:e,overlayClassName:a,showCloseButton:o=false,children:t}=i,r=n(i,["className","overlayClassName","showCloseButton","children"]);return jsxRuntime.jsxs(dr,{children:[jsxRuntime.jsx(nr,{className:a}),jsxRuntime.jsxs(radixUi.AlertDialog.Content,f(s({"data-slot":"alert-dialog-content",className:l("fixed left-1/2 top-1/2 z-50 flex w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 flex-col overflow-hidden rounded-xl border bg-surface-elevated shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-1/2 data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-1/2 sm:max-w-lg",e)},r),{children:[t,o&&jsxRuntime.jsxs(radixUi.AlertDialog.Cancel,{"data-slot":"alert-dialog-close",className:"focus:outline-hidden absolute right-3 top-3 rounded-pill p-1.5 hover:bg-gray-background-soft disabled:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",children:[jsxRuntime.jsx(icons.CloseMd,{}),jsxRuntime.jsx("span",{className:"sr-only",children:"Close"})]})]}))]})}function dd(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"alert-dialog-header",className:l("flex flex-col items-center gap-3 px-8 pt-8 text-center","[[data-slot=alert-dialog-content]:has([data-slot=alert-dialog-icon])_&]:pt-0",e)},a))}function nd(t){var r=t,{className:e,icon:a}=r,o=n(r,["className","icon"]);var u;let d=D.useContext(rt),i=(u=d==null?void 0:d.variant)!=null?u:da;return jsxRuntime.jsx("div",f(s({"data-slot":"alert-dialog-icon",className:l(ed({variant:i}),e)},o),{children:jsxRuntime.jsx("div",{className:ad({variant:i}),children:a})}))}function id({className:e,variant:a,children:o}){var d;let t=D.useContext(rt),r=(d=a!=null?a:t==null?void 0:t.variant)!=null?d:da;return jsxRuntime.jsx("div",{"data-slot":"alert-dialog-tag",className:"flex justify-center",children:jsxRuntime.jsx(fe,{variant:td[r],className:e,children:o})})}function ud(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.AlertDialog.Title,s({"data-slot":"alert-dialog-title",className:l("text-title-sm font-semibold leading-title-sm text-content-title",e)},a))}function fd(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.AlertDialog.Description,s({"data-slot":"alert-dialog-description",className:l("text-md leading-md text-content-paragraph",e)},a))}function cd(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"alert-dialog-footer",className:l("flex flex-row items-center justify-center gap-4 px-8 pb-8 pt-6",e)},a))}function pd(r){var d=r,{className:e,variant:a,size:o="lg"}=d,t=n(d,["className","variant","size"]);var c;let i=D.useContext(rt),u=a!=null?a:od[(c=i==null?void 0:i.variant)!=null?c:da];return jsxRuntime.jsx(radixUi.AlertDialog.Action,s({className:l(Ta({variant:u,size:o}),e)},t))}function md(r){var d=r,{className:e,variant:a="regular-soft",size:o="lg"}=d,t=n(d,["className","variant","size"]);return jsxRuntime.jsx(radixUi.AlertDialog.Cancel,s({className:l(Ta({variant:a,size:o}),e)},t))}var gd=0;function xd(){return `medway-id-${++gd}`}var hd=D__namespace.useId||(()=>{});function ke(){let e=hd(),[a]=D__namespace.useState(()=>e!=null?e:xd());return a}var bd=/[\\\/_+.#"@\[\(\{&]/,Cd=/[\\\/_+.#"@\[\(\{&]/g,Ld=/[\s-]/,ur=/[\s-]/g;function Qt(e,a,o,t,r,d,i){if(d===a.length)return r===e.length?1:.99;let u=`${r},${d}`;if(i[u]!==void 0)return i[u];let c=t.charAt(d),p=o.indexOf(c,r),m=0,g,h,k,C;for(;p>=0;)g=Qt(e,a,o,t,p+1,d+1,i),g>m&&(p===r?g*=1:bd.test(e.charAt(p-1))?(g*=.8,k=e.slice(r,p-1).match(Cd),k&&r>0&&(g*=Math.pow(.999,k.length))):Ld.test(e.charAt(p-1))?(g*=.9,C=e.slice(r,p-1).match(ur),C&&r>0&&(g*=Math.pow(.999,C.length))):(g*=.17,r>0&&(g*=Math.pow(.999,p-r))),e.charAt(p)!==a.charAt(d)&&(g*=.9999)),(g<.1&&o.charAt(p-1)===t.charAt(d+1)||t.charAt(d+1)===t.charAt(d)&&o.charAt(p-1)!==t.charAt(d))&&(h=Qt(e,a,o,t,p+1,d+2,i),h*.1>g&&(g=h*.1)),g>m&&(m=g),p=o.indexOf(c,p+1);return i[u]=m,m}function ir(e){return e.toLowerCase().replace(ur," ")}function fr(e,a,o){return e=o&&o.length>0?`${e+" "+o.join(" ")}`:e,Qt(e,a,ir(e),ir(a),0,0,{})}var Aa='[cmdk-group=""]',$t='[cmdk-group-items=""]',vd='[cmdk-group-heading=""]',pr='[cmdk-item=""]',cr=`${pr}:not([aria-disabled="true"])`,Jt="cmdk-item-select",na="data-value",Id=(e,a,o)=>fr(e,a,o),mr=D__namespace.createContext(void 0),Ra=()=>D__namespace.useContext(mr),gr=D__namespace.createContext(void 0),Yt=()=>D__namespace.useContext(gr),xr=D__namespace.createContext(void 0),hr=D__namespace.forwardRef((e,a)=>{let o=ia(()=>{var x,N;return {search:"",value:(N=(x=e.value)!=null?x:e.defaultValue)!=null?N:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),t=ia(()=>new Set),r=ia(()=>new Map),d=ia(()=>new Map),i=ia(()=>new Set),u=Sr(e),ge=e,{label:c,children:p,value:m,onValueChange:g,filter:h,shouldFilter:k,loop:C,disablePointerSelection:R=false,vimBindings:B=true}=ge,_=n(ge,["label","children","value","onValueChange","filter","shouldFilter","loop","disablePointerSelection","vimBindings"]),F=ke(),P=ke(),J=ke(),z=D__namespace.useRef(null),b=Sd();qe(()=>{if(m!==void 0){let x=m.trim();o.current.value=x,v.emit();}},[m]),qe(()=>{b(6,Te);},[]);let v=D__namespace.useMemo(()=>({subscribe:x=>(i.current.add(x),()=>i.current.delete(x)),snapshot:()=>o.current,setState:(x,N,A)=>{var w,q,Q,$,se,S;if(!Object.is(o.current[x],N)){if(o.current[x]=N,x==="search")ae(),M(),b(1,O);else if(x==="value"){if((w=document.activeElement)!=null&&w.hasAttribute("cmdk-input")||(q=document.activeElement)!=null&&q.hasAttribute("cmdk-root")){let L=document.getElementById(J);L?L.focus():(Q=document.getElementById(F))==null||Q.focus();}if(b(7,()=>{var L;o.current.selectedItemId=(L=Ie())==null?void 0:L.id,v.emit();}),A||b(5,Te),(($=u.current)==null?void 0:$.value)!==void 0){let L=N!=null?N:"";(S=(se=u.current).onValueChange)==null||S.call(se,L);return}}v.emit();}},emit:()=>{i.current.forEach(x=>x());}}),[]),I=D__namespace.useMemo(()=>({value:(x,N,A)=>{var w;N!==((w=d.current.get(x))==null?void 0:w.value)&&(d.current.set(x,{value:N,keywords:A}),o.current.filtered.items.set(x,H(N,A)),b(2,()=>{M(),v.emit();}));},item:(x,N)=>(t.current.add(x),N&&(r.current.has(N)?r.current.get(N).add(x):r.current.set(N,new Set([x]))),b(3,()=>{ae(),M(),o.current.value||O(),v.emit();}),()=>{d.current.delete(x),t.current.delete(x),o.current.filtered.items.delete(x);let A=Ie();b(4,()=>{ae(),(A==null?void 0:A.getAttribute("id"))===x&&O(),v.emit();});}),group:x=>(r.current.has(x)||r.current.set(x,new Set),()=>{d.current.delete(x),r.current.delete(x);}),filter:()=>u.current.shouldFilter!==false,label:c||e["aria-label"]||"",getDisablePointerSelection:()=>!!u.current.disablePointerSelection,listId:F,inputId:J,labelId:P,listInnerRef:z}),[]);function H(x,N){var w,q;let A=(q=(w=u.current)==null?void 0:w.filter)!=null?q:Id;return x?A(x,o.current.search,N):0}function M(){if(!o.current.search||u.current.shouldFilter===false)return;let x=o.current.filtered.items,N=[];o.current.filtered.groups.forEach(w=>{let q=r.current.get(w),Q=0;q==null||q.forEach($=>{let se=x.get($);Q=Math.max(se!=null?se:0,Q);}),N.push([w,Q]);});let A=z.current;re().sort((w,q)=>{var se,S;let Q=w.getAttribute("id"),$=q.getAttribute("id");return ((se=x.get($))!=null?se:0)-((S=x.get(Q))!=null?S:0)}).forEach(w=>{let q=w.closest($t);q?q.appendChild(w.parentElement===q?w:w.closest(`${$t} > *`)):A==null||A.appendChild(w.parentElement===A?w:w.closest(`${$t} > *`));}),N.sort((w,q)=>q[1]-w[1]).forEach(w=>{var Q,$;let q=(Q=z.current)==null?void 0:Q.querySelector(`${Aa}[${na}="${encodeURIComponent(w[0])}"]`);($=q==null?void 0:q.parentElement)==null||$.appendChild(q);});}function O(){let x=re().find(A=>A.getAttribute("aria-disabled")!=="true"),N=x==null?void 0:x.getAttribute(na);v.setState("value",N||void 0);}function ae(){var N,A,w,q,Q;if(!o.current.search||u.current.shouldFilter===false){o.current.filtered.count=t.current.size;return}o.current.filtered.groups=new Set;let x=0;for(let $ of t.current){let se=(A=(N=d.current.get($))==null?void 0:N.value)!=null?A:"",S=(q=(w=d.current.get($))==null?void 0:w.keywords)!=null?q:[],L=H(se,S);o.current.filtered.items.set($,L),L>0&&x++;}for(let[$,se]of r.current)for(let S of se)if(((Q=o.current.filtered.items.get(S))!=null?Q:0)>0){o.current.filtered.groups.add($);break}o.current.filtered.count=x;}function Te(){var N,A,w;let x=Ie();x&&(((N=x.parentElement)==null?void 0:N.firstChild)===x&&((w=(A=x.closest(Aa))==null?void 0:A.querySelector(vd))==null||w.scrollIntoView({block:"nearest"})),x.scrollIntoView({block:"nearest"}));}function Ie(){var x;return (x=z.current)==null?void 0:x.querySelector(`${pr}[aria-selected="true"]`)}function re(){var x;return Array.from(((x=z.current)==null?void 0:x.querySelectorAll(cr))||[])}function Me(x){let A=re()[x];A&&v.setState("value",A.getAttribute(na));}function be(x){var Q;let N=Ie(),A=re(),w=A.findIndex($=>$===N),q=A[w+x];(Q=u.current)!=null&&Q.loop&&(q=w+x<0?A[A.length-1]:w+x===A.length?A[0]:A[w+x]),q&&v.setState("value",q.getAttribute(na));}function ra(x){let N=Ie(),A=N==null?void 0:N.closest(Aa),w;for(;A&&!w;)A=x>0?kd(A,Aa):yd(A,Aa),w=A==null?void 0:A.querySelector(cr);w?v.setState("value",w.getAttribute(na)):be(x);}let sa=()=>Me(re().length-1),Se=x=>{x.preventDefault(),x.metaKey?sa():x.altKey?ra(1):be(1);},ie=x=>{x.preventDefault(),x.metaKey?Me(0):x.altKey?ra(-1):be(-1);};return jsxRuntime.jsxs("div",f(s({ref:a,tabIndex:-1},_),{"cmdk-root":"",onKeyDown:x=>{var A;(A=_.onKeyDown)==null||A.call(_,x);let N=x.nativeEvent.isComposing||x.keyCode===229;if(!(x.defaultPrevented||N))switch(x.key){case "n":case "j":{B&&x.ctrlKey&&Se(x);break}case "ArrowDown":{Se(x);break}case "p":case "k":{B&&x.ctrlKey&&ie(x);break}case "ArrowUp":{ie(x);break}case "Home":{x.preventDefault(),Me(0);break}case "End":{x.preventDefault(),sa();break}case "Enter":{x.preventDefault();let w=Ie();if(w){let q=new Event(Jt);w.dispatchEvent(q);}}}},children:[jsxRuntime.jsx("label",{"cmdk-label":"",htmlFor:I.inputId,id:I.labelId,style:wd,children:c}),lt(e,x=>jsxRuntime.jsx(gr.Provider,{value:v,children:jsxRuntime.jsx(mr.Provider,{value:I,children:x})}))]}))});hr.displayName="Command";var br=D__namespace.forwardRef((e,a)=>{var J,z;let o=ke(),t=D__namespace.useRef(null),r=D__namespace.useContext(xr),d=Ra(),i=Sr(e),u=(z=(J=i.current)==null?void 0:J.forceMount)!=null?z:r==null?void 0:r.forceMount;qe(()=>{if(!u)return d.item(o,r==null?void 0:r.id)},[u]);let c=Pr(o,t,[e.value,e.children,t],e.keywords),p=Yt(),m=ze(v=>v.value&&v.value===c.current),g=ze(v=>{var I;return u||d.filter()===false?true:v.search?((I=v.filtered.items.get(o))!=null?I:0)>0:true});D__namespace.useEffect(()=>{let v=t.current;if(!(!v||e.disabled))return v.addEventListener(Jt,h),()=>v.removeEventListener(Jt,h)},[g,e.onSelect,e.disabled]);function h(){var v,I,H;k(),(H=(I=i.current).onSelect)==null||H.call(I,(v=c.current)!=null?v:"");}function k(){var v;p.setState("value",(v=c.current)!=null?v:"",true);}if(!g)return null;let b=e,{disabled:C,value:R,onSelect:B,forceMount:_,keywords:F}=b,P=n(b,["disabled","value","onSelect","forceMount","keywords"]);return jsxRuntime.jsx("div",f(s({ref:Da(t,a)},P),{id:o,"cmdk-item":"",role:"option","aria-disabled":!!C,"aria-selected":!!m,"data-disabled":!!C,"data-selected":!!m,onPointerMove:C||d.getDisablePointerSelection()?void 0:k,onClick:C?void 0:h,children:e.children}))});br.displayName="Item";var Cr=D__namespace.forwardRef((e,a)=>{let k=e,{heading:o,children:t,forceMount:r}=k,d=n(k,["heading","children","forceMount"]),i=ke(),u=D__namespace.useRef(null),c=D__namespace.useRef(null),p=ke(),m=Ra(),g=ze(C=>r||m.filter()===false?true:C.search?C.filtered.groups.has(i):true);qe(()=>m.group(i),[]),Pr(i,u,[e.value,e.heading,c]);let h=D__namespace.useMemo(()=>({id:i,forceMount:r}),[r]);return jsxRuntime.jsxs("div",f(s({ref:Da(u,a)},d),{"cmdk-group":"",role:"presentation",hidden:g?void 0:true,children:[o&&jsxRuntime.jsx("div",{ref:c,"cmdk-group-heading":"","aria-hidden":true,id:p,children:o}),lt(e,C=>jsxRuntime.jsx("div",{"cmdk-group-items":"",role:"group","aria-labelledby":o?p:void 0,children:jsxRuntime.jsx(xr.Provider,{value:h,children:C})}))]}))});Cr.displayName="Group";var Lr=D__namespace.forwardRef((e,a)=>{let i=e,{alwaysRender:o}=i,t=n(i,["alwaysRender"]),r=D__namespace.useRef(null),d=ze(u=>!u.search);return !o&&!d?null:jsxRuntime.jsx("div",f(s({ref:Da(r,a)},t),{"cmdk-separator":"",role:"separator"}))});Lr.displayName="Separator";var vr=D__namespace.forwardRef((e,a)=>{let p=e,{onValueChange:o}=p,t=n(p,["onValueChange"]),r=e.value!=null,d=Yt(),i=ze(m=>m.search),u=ze(m=>m.selectedItemId),c=Ra();return D__namespace.useEffect(()=>{e.value!=null&&d.setState("search",e.value);},[e.value]),jsxRuntime.jsx("input",f(s({ref:a},t),{"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:false,"aria-autocomplete":"list",role:"combobox","aria-expanded":true,"aria-controls":c.listId,"aria-labelledby":c.labelId,"aria-activedescendant":u,id:c.inputId,type:"text",value:r?e.value:i,onChange:m=>{r||d.setState("search",m.target.value),o==null||o(m.target.value);}}))});vr.displayName="Input";var Ir=D__namespace.forwardRef((e,a)=>{let p=e,{children:o,label:t="Suggestions"}=p,r=n(p,["children","label"]),d=D__namespace.useRef(null),i=D__namespace.useRef(null),u=ze(m=>m.selectedItemId),c=Ra();return D__namespace.useEffect(()=>{if(i.current&&d.current){let m=i.current,g=d.current,h,k=new ResizeObserver(()=>{h=requestAnimationFrame(()=>{let C=m.offsetHeight;g.style.setProperty("--cmdk-list-height",C.toFixed(1)+"px");});});return k.observe(m),()=>{cancelAnimationFrame(h),k.unobserve(m);}}},[]),D__namespace.useEffect(()=>{let m=d.current;if(!m)return;let g=h=>{m.contains(h.target)&&h.stopPropagation();};return document.addEventListener("wheel",g,{capture:true}),()=>{document.removeEventListener("wheel",g,{capture:true});}},[]),jsxRuntime.jsx("div",f(s({ref:Da(d,a)},r),{"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":u,"aria-label":t,id:c.listId,children:lt(e,m=>jsxRuntime.jsx("div",{ref:Da(i,c.listInnerRef),"cmdk-list-sizer":"",children:m}))}))});Ir.displayName="List";var kr=D__namespace.forwardRef((e,a)=>ze(t=>t.filtered.count===0)?jsxRuntime.jsx("div",f(s({ref:a},e),{"cmdk-empty":"",role:"presentation"})):null);kr.displayName="Empty";var yr=D__namespace.forwardRef((e,a)=>{let i=e,{progress:o,children:t,label:r="Loading..."}=i,d=n(i,["progress","children","label"]);return jsxRuntime.jsx("div",f(s({ref:a},d),{"cmdk-loading":"",role:"progressbar","aria-valuenow":o,"aria-valuemin":0,"aria-valuemax":100,"aria-label":r,children:lt(e,u=>jsxRuntime.jsx("div",{"aria-hidden":true,children:u}))}))});yr.displayName="Loading";var Ke=Object.assign(hr,{List:Ir,Item:br,Input:vr,Group:Cr,Separator:Lr,Empty:kr,Loading:yr});function kd(e,a){let o=e.nextElementSibling;for(;o;){if(o.matches(a))return o;o=o.nextElementSibling;}}function yd(e,a){let o=e.previousElementSibling;for(;o;){if(o.matches(a))return o;o=o.previousElementSibling;}}function Sr(e){let a=D__namespace.useRef(e);return qe(()=>{a.current=e;}),a}var qe=typeof window=="undefined"?D__namespace.useEffect:D__namespace.useLayoutEffect;function ia(e){let a=D__namespace.useRef(void 0);return a.current===void 0&&(a.current=e()),a}function ze(e){let a=Yt(),[,o]=D__namespace.useState({}),t=D__namespace.useRef(e(a.snapshot()));return t.current=e(a.snapshot()),qe(()=>a.subscribe(()=>{let r=e(a.snapshot());Object.is(r,t.current)||(t.current=r,o({}));}),[a,e]),t.current}function Pr(e,a,o,t=[]){let r=D__namespace.useRef(void 0),d=Ra();return qe(()=>{var c;let i=(()=>{var p;for(let m of o){if(typeof m=="string")return m.trim();if(typeof m=="object"&&m!==null&&"current"in m)return m.current?(p=m.current.textContent)==null?void 0:p.trim():r.current}})(),u=t.map(p=>p.trim());d.value(e,i!=null?i:"",u),(c=a.current)==null||c.setAttribute(na,i!=null?i:""),r.current=i;}),r}var Sd=()=>{let[e,a]=D__namespace.useState(),o=ia(()=>new Map);return qe(()=>{o.current.forEach(t=>t()),o.current=new Map;},[e]),(t,r)=>{o.current.set(t,r),a({});}};function Pd(e){let a=e.type;return typeof a=="function"?a(e.props):"render"in a?a.render(e.props):e}function lt({asChild:e,children:a},o){return e&&D__namespace.isValidElement(a)?D__namespace.cloneElement(Pd(a),{ref:a.ref},o(a.props.children)):o(a)}function Da(...e){return a=>{e.forEach(o=>{typeof o=="function"?o(a):o!=null&&typeof o=="object"&&(o.current=a);});}}var wd={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function ua(r){var d=r,{className:e,orientation:a="horizontal",decorative:o=true}=d,t=n(d,["className","orientation","decorative"]);return jsxRuntime.jsx(radixUi.Separator.Root,s({"data-slot":"separator-root",decorative:o,orientation:a,className:l("shrink-0 bg-gray-stroke-muted data-[orientation=horizontal]:h-px data-[orientation=vertical]:h-full data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px",e)},t))}function Nd(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.Dialog.Root,s({"data-slot":"dialog"},e))}function Bd(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.Dialog.Trigger,s({"data-slot":"dialog-trigger"},e))}function Tr(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.Dialog.Portal,s({"data-slot":"dialog-portal"},e))}function Fd(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.Dialog.Close,s({"data-slot":"dialog-close"},e))}function Ar(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.Dialog.Overlay,s({"data-slot":"dialog-overlay",className:l("fixed inset-0 z-50 bg-black-48 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e)},a))}function Ed(d){var i=d,{className:e,overlayClassName:a,children:o,showCloseButton:t=true}=i,r=n(i,["className","overlayClassName","children","showCloseButton"]);return jsxRuntime.jsxs(Tr,{"data-slot":"dialog-portal",children:[jsxRuntime.jsx(Ar,{className:a}),jsxRuntime.jsxs(radixUi.Dialog.Content,f(s({"data-slot":"dialog-container",className:l("fixed left-1/2 top-1/2 z-50 flex max-h-[calc(100%-2rem)] w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 flex-col gap-0 overflow-y-auto rounded-xl border bg-background p-0 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-1/2 data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-1/2 sm:max-h-[85vh] sm:max-w-lg",e)},r),{children:[o,t&&jsxRuntime.jsxs(radixUi.Dialog.Close,{"data-slot":"dialog-close",className:"focus:outline-hidden absolute right-3 top-3 rounded-pill p-1.5 hover:bg-gray-background-soft disabled:pointer-events-none data-[state=open]:text-gray-foreground [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",children:[jsxRuntime.jsx(icons.CloseMd,{}),jsxRuntime.jsx("span",{className:"sr-only",children:"Close"})]})]}))]})}function Hd({containerClassName:e,className:a,children:o}){return jsxRuntime.jsx("div",{className:l("mb-auto overflow-y-auto",e),children:jsxRuntime.jsx("div",{"data-slot":"dialog-content",className:l("px-8 py-6 text-md leading-md text-primary-foreground",a),children:o})})}function Od(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:l("flex flex-col gap-2 px-8 py-6 text-center sm:text-left",e)},o)),a&&jsxRuntime.jsx(ua,{})]})}function Vd(t){var r=t,{className:e,separator:a=false}=r,o=n(r,["className","separator"]);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[a&&jsxRuntime.jsx(ua,{}),jsxRuntime.jsx("div",s({"data-slot":"dialog-footer",className:l("flex flex-col-reverse gap-2 px-8 py-6 sm:flex-row sm:justify-end",e)},o))]})}function qd(d){var i=d,{className:e,iconLeft:a,iconRight:o,children:t}=i,r=n(i,["className","iconLeft","iconRight","children"]);let u=c=>D.isValidElement(c)?D.cloneElement(c,{size:32,strokeWidth:2.2,className:"flex-shrink-0"}):c;return jsxRuntime.jsxs(radixUi.Dialog.Title,f(s({"data-slot":"dialog-title",className:l("flex items-center gap-3 text-title-md font-semibold leading-title-md !text-content-title",e)},r),{children:[a&&u(a),t,o&&u(o)]}))}function zd(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.Dialog.Description,s({"data-slot":"dialog-description",className:l("text-md leading-md text-content-paragraph",e)},a))}function Rr(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(Ke,s({className:l("flex size-full flex-col overflow-hidden rounded-md bg-surface-card text-gray-foreground",e),"data-slot":"command"},a))}function Mr(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(Ke.Input,s({className:l("flex h-12 w-full bg-transparent py-3 text-md font-medium outline-none placeholder:text-gray-foreground-muted disabled:cursor-not-allowed disabled:opacity-50",e),"data-slot":"command-input-wrapper"},a)),jsxRuntime.jsx(icons.SearchMagnifyingGlass,{className:"text-gray-foreground-muted",size:24})]})}function Nr(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(Ke.List,s({className:l("max-h-80 flex-1 overflow-y-auto overflow-x-hidden",e),"data-slot":"command-list","data-radix-scroll-area":""},a))}function Br(a){var e=n(a,[]);return jsxRuntime.jsx(Ke.Empty,s({className:"py-6 text-center text-sm","data-slot":"command-empty"},e))}function Fr(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(Ke.Group,s({className:l("overflow-hidden p-2 text-gray-foreground [&_[cmdk-group-heading]]:px-3 [&_[cmdk-group-heading]]:py-2 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-gray-foreground-muted",e),"data-slot":"command-group"},a))}function Er(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(Ke.Item,s({className:l("outline-hidden relative flex cursor-default select-none items-center gap-3 rounded-md px-2 py-1.5 text-sm data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",e),"data-slot":"command-item"},a))}function Hr(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.Popover.Root,s({"data-slot":"popover"},e))}function Or(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.Popover.Trigger,s({"data-slot":"popover-trigger"},e))}function Vr(d){var i=d,{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:l("outline-hidden z-50 w-72 rounded-md border bg-surface-card p-4 text-gray-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),"data-slot":"popover-content",sideOffset:o},r),{children:[r.children,t&&jsxRuntime.jsx(radixUi.Popover.Arrow,{className:"-my-px fill-gray-foreground drop-shadow-[0_1px_0_var(--border)]"})]}))})}var pa=D.createContext({invalid:false,disabled:false,open:false,setOpen:()=>{},values:[],toggleValue:()=>{},onCancelSelection:()=>{},listId:""});function jd({children:e,invalid:a=false,disabled:o=false,values:t,onValuesChange:r,open:d,onOpenChange:i,defaultValues:u=[]}){let[c,p]=D.useState(u),[m,g]=D.useState(false),[h,k]=D.useState([]),C=t!==void 0,R=d!==void 0,B=C?t:c,_=R?d:m,F=D.useCallback(v=>{let I=B.includes(v)?B.filter(H=>H!==v):[...B,v];C||p(I),r==null||r(I);},[B,C,r]),P=D.useCallback(v=>{o||(v&&k(B),R||g(v),i==null||i(v));},[o,B,R,i]),J=D.useCallback(()=>{C||p(h),r==null||r(h);},[C,h,r]),z=ke(),b=D.useMemo(()=>({invalid:a,disabled:o,open:_,setOpen:P,values:B,toggleValue:F,onCancelSelection:J,listId:z}),[a,o,_,P,B,F,J,z]);return jsxRuntime.jsx(pa.Provider,{value:b,children:jsxRuntime.jsx(Hr,{open:_,onOpenChange:P,children:e})})}function Qd(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({className:l("group relative flex flex-col gap-2",e),"data-slot":"autocomplete-wrapper"},a))}function $d(r){var d=r,{className:e,placeholder:a="Selecione uma op\xE7\xE3o",children:o}=d,t=n(d,["className","placeholder","children"]);let{invalid:i,disabled:u,open:c,values:p,listId:m}=D.useContext(pa),g=ke(),h=p.length>0;return jsxRuntime.jsx(Or,{asChild:true,children:jsxRuntime.jsxs("button",f(s({"aria-controls":m,"aria-expanded":c,"aria-invalid":i||void 0,className:l("shadow-xs flex h-12 max-h-12 w-full items-center justify-between gap-2 rounded-md border-2 border-gray-stroke-muted bg-surface-card px-4 py-3 text-left text-md text-gray-foreground outline-none transition-[color,box-shadow] hover:border-gray-stroke-emphasis hover:ring-[3px] hover:ring-state-focus disabled:cursor-default disabled:bg-gray-background-soft-muted disabled:hover:border-gray-stroke-muted disabled:hover:ring-0 aria-[invalid]:border-feedback-error-stroke aria-[invalid]:hover:ring-[3px] aria-[invalid]:hover:ring-state-error [&>span]:line-clamp-1 [&_svg]:pointer-events-none [&_svg]:shrink-0",h&&!i&&"border-gray-stroke-emphasis",e),"data-slot":"autocomplete-trigger","data-placeholder":"",disabled:u,id:g,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 to({className:e,cancelLabel:a="Cancelar",confirmLabel:o="Concluir",onCancel:t,onConfirm:r}){let{setOpen:d,onCancelSelection:i,values:u}=D.useContext(pa);return jsxRuntime.jsxs("div",{className:l("flex items-center justify-between border-t border-gray-stroke-muted px-4 py-3",e),"data-slot":"autocomplete-content-footer",children:[jsxRuntime.jsx(Y,{size:"sm",variant:"regular-soft",onClick:()=>{i(),t==null||t(),d(false);},children:a}),jsxRuntime.jsx(Y,{size:"sm",variant:"emphasis",iconLeft:jsxRuntime.jsx(icons.Check,{strokeWidth:2.6}),onClick:()=>{r==null||r(u),d(false);},children:o})]})}function Jd({children:e,className:a,searchPlaceholder:o="Buscar...",emptyMessage:t="Nenhum resultado encontrado"}){let r=D.Children.toArray(e),d=r.filter(u=>D.isValidElement(u)&&u.type===to),i=r.filter(u=>!(D.isValidElement(u)&&u.type===to));return jsxRuntime.jsxs(Vr,{align:"start",className:l("w-full min-w-[var(--radix-popper-anchor-width)] border-gray-stroke-muted p-0",a),children:[jsxRuntime.jsxs(Rr,{children:[jsxRuntime.jsx(Mr,{placeholder:o}),jsxRuntime.jsxs(Nr,{id:D.useContext(pa).listId,children:[jsxRuntime.jsx(Br,{children:t}),i]})]}),d]})}function Yd({children:e,value:a,name:o,className:t,disabled:r=false}){let{values:d,toggleValue:i}=D.useContext(pa),u=d.includes(a);return jsxRuntime.jsxs(Er,{className:l("relative flex w-full cursor-default select-none items-center gap-3 rounded px-2 py-2.5 text-base font-medium text-gray-foreground outline-none hover:cursor-pointer hover:bg-secondary-background-soft-emphasis data-[selected=true]:bg-secondary-background-soft-emphasis",t),disabled:r,onSelect:()=>{i(a);},value:a,keywords:o?[o]:void 0,children:[jsxRuntime.jsx("span",{className:l("inline-flex size-[18px] shrink-0 items-center justify-center rounded-sm border-2 transition-all",u?"border-primary-background-fill bg-primary-background-fill":"border-gray-stroke-muted bg-surface-card"),children:u&&jsxRuntime.jsx(icons.Check,{size:12,strokeWidth:2.6,className:"text-primary-foreground-onfill"})}),e]})}function en(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(Fr,s({className:e},a))}function an(o){var t=o,{className:e}=t,a=n(t,["className"]);let{invalid:r}=D.useContext(pa);return jsxRuntime.jsx("span",s({className:l("-mt-1 text-xs",r?"text-feedback-error-foreground":"text-gray-foreground",e),"data-slot":"autocomplete-text"},a))}var rn={sm:"sm",md:"md",lg:"md",xl:"lg"},_r=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 Fa(d){var i=d,{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(Be,{size:rn[a||"md"],className:l("absolute -right-2 -top-1 z-10"),children:String(o)}),jsxRuntime.jsx(radixUi.Avatar.Root,f(s({"data-slot":"avatar",className:l(_r({size:a,className:e}))},r),{children:t}))]})}function Ea(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.Avatar.Image,s({"data-slot":"avatar-image",className:l("size-full object-cover",e)},a))}function Ha(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.Avatar.Fallback,f(s({"data-slot":"avatar-fallback",className:l("flex size-full items-center justify-center rounded-full bg-gray-background-soft text-sm font-semibold text-primary-foreground",e)},a),{children:a.children?a.children:jsxRuntime.jsx(icons.User,{className:"size-1/2"})}))}function Oa(a){var e=n(a,[]);return jsxRuntime.jsx("nav",s({"aria-label":"breadcrumb","data-slot":"breadcrumb"},e))}function Va(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("ol",s({className:l("line-clamp-1 flex flex-wrap items-center gap-1.5 text-sm font-medium text-gray-foreground [&_svg]:shrink-0",e),"data-slot":"breadcrumb-list"},a))}function nt(r){var d=r,{className:e,icon:a,children:o}=d,t=n(d,["className","icon","children"]);return jsxRuntime.jsx("li",f(s({className:l("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 un(t){var r=t,{asChild:e,className:a}=r,o=n(r,["asChild","className"]);let d=e?radixUi.Slot.Root:"a";return jsxRuntime.jsx(d,s({className:l("transition-colors hover:underline",a),"data-slot":"breadcrumb-link"},o))}function ro(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("span",s({"aria-current":"page","aria-disabled":"true",className:l("font-semibold text-primary-foreground",e),"data-slot":"breadcrumb-page",role:"link"},a))}function so(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 fn(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsxs("span",f(s({"aria-hidden":"true",className:l("flex size-5 items-center justify-center",e),"data-slot":"breadcrumb-ellipsis",role:"presentation"},a),{children:[jsxRuntime.jsx(icons.MoreHorizontal,{className:"text-gray-foreground",size:18}),jsxRuntime.jsx("span",{className:"sr-only",children:"More"})]}))}function je(d){var i=d,{className:e,indicatorClassName:a,label:o,value:t}=i,r=n(i,["className","indicatorClassName","label","value"]);let u=Math.round(t||0);return 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:l("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:l("relative -top-[0.5px] flex h-0.5 w-full flex-1 bg-primary-stroke transition-all",a),style:{transform:`translateX(-${100-(t||0)}%)`}})}))]})}function io(m){var g=m,{className:e,indicatorClassName:a,trackClassName:o,valueClassName:t,label:r,labelClassName:d,value:i=0,size:u=96,strokeWidth:c=2}=g,p=n(g,["className","indicatorClassName","trackClassName","valueClassName","label","labelClassName","value","size","strokeWidth"]);let h=typeof i=="string",k=h?0:Math.round(i),C=(u-c)/2,R=C*2*Math.PI,B=R-k/100*R,_=Math.max(18,Math.min(u/5)),F=Math.max(10,Math.min(u/9,16));return jsxRuntime.jsxs("div",f(s({"data-slot":"progress-circle",className:l("relative inline-flex items-center justify-center",e),style:{width:u,height:u}},p),{children:[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:C,stroke:"currentColor",strokeWidth:c,fill:"none",className:l("text-gray-stroke-muted",o)}),jsxRuntime.jsx("circle",{"data-slot":"progress-circle-indicator",cx:u/2,cy:u/2,r:C,stroke:"currentColor",strokeWidth:c,fill:"none",strokeDasharray:R,strokeDashoffset:B,strokeLinecap:"round",className:l("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:l("mr-px font-semibold",t),style:{fontSize:`${_}px`},children:h?i:k}),!h&&"%"]}),r&&jsxRuntime.jsx("div",{"data-slot":"progress-circle-label",className:l("text-center font-medium leading-tight text-gray-foreground-muted",d),style:{fontSize:`${F}px`},children:r})]})]}))}var qa=D.createContext(null);function gn(d){var i=d,{className:e,done:a,postponed:o,skipped:t}=i,r=n(i,["className","done","postponed","skipped"]);let u=D.useMemo(()=>({done:a,postponed:o,skipped:t}),[a,o,t]);return jsxRuntime.jsx(qa.Provider,{value:u,children:jsxRuntime.jsx("div",s({"data-slot":"card-week",className:l("flex flex-col overflow-hidden rounded-xl border border-gray-stroke-muted text-gray-foreground-muted",e)},r))})}function xn(d){var i=d,{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:l("flex min-h-12 items-center gap-4 bg-primary-background-soft-muted px-6 py-3",e)},r),{children:[jsxRuntime.jsx(Oa,{className:"flex-1 overflow-hidden",children:jsxRuntime.jsx(Va,{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(fe,{variant:"regular-soft",icon:t,children:o})]}))}function hn(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"card-week-container",className:l("flex flex-1 flex-col gap-5 bg-surface-card px-6 py-5",e)},a))}function bn(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"card-week-header",className:l("flex justify-between [&.border-b]:pb-6",e)},a))}function Cn(o){var t=o,{className:e}=t,a=n(t,["className"]);let r=D.useContext(qa),d=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:l("text-lg font-semibold leading-lg text-primary-foreground",(d||i||u)&&"text-primary-foreground-muted line-through",e)},a))}function Ln(o){var t=o,{className:e}=t,a=n(t,["className"]);let r=D.useContext(qa),d=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:l("text-xs font-semibold leading-xs text-gray-foreground",(d||i||u)&&"text-gray-foreground-muted",e)},a))}function vn(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"card-week-tags",className:l("flex flex-wrap items-center gap-2 [[data-slot=card-week-header]:not(:has([data-slot=card-week-progress]))+&]:mt-6",e)},a))}function In(t){var r=t,{className:e,value:a}=r,o=n(r,["className","value"]);return jsxRuntime.jsx("div",{"data-slot":"card-week-progress-circle",className:l("flex flex-1 justify-end",e),children:jsxRuntime.jsx(io,s({size:104,value:a},o))})}function kn(r){var d=r,{className:e,value:a,indicatorClassName:o}=d,t=n(d,["className","value","indicatorClassName"]);let i=D.useContext(qa),u=i==null?void 0:i.done;return jsxRuntime.jsx("div",{"data-slot":"card-week-progress",className:l("flex flex-1",e),children:jsxRuntime.jsx(je,f(s({},t),{value:u?100:a,indicatorClassName:l(u&&"bg-secondary-stroke-emphasis",o)}))})}function yn(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"card-week-footer",className:l("mt-auto flex flex-col gap-2",e)},a))}function Sn(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:l("flex flex-col text-xs font-medium",e)},o),{children:a}))}function Pn(r){var d=r,{className:e,children:a,isTime:o}=d,t=n(d,["className","children","isTime"]);return jsxRuntime.jsxs("div",f(s({"data-slot":"card-week-text",className:l("flex items-center gap-1.5",o?"text-secondary-foreground":"text-gray-foreground-muted",e)},t),{children:[o&&jsxRuntime.jsx(icons.TimeRemaining,{size:16}),jsxRuntime.jsx("span",{children:a})]}))}function wn(o){var t=o,{className:e}=t,a=n(t,["className"]);let r=D.useContext(qa),d=r==null?void 0:r.done,i=r==null?void 0:r.postponed,u=r==null?void 0:r.skipped;return !d&&!i&&!u?null:i||u?jsxRuntime.jsxs("div",f(s({"data-slot":"card-week-status",className:l("ml-auto 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-feedback-warning-foreground",children:jsxRuntime.jsx(icons.Check,{size:12,strokeWidth:1.67})}),jsxRuntime.jsx("div",{className:"font-semibold text-feedback-warning-foreground",children:i?"Adiado":"Pulado"})]})):jsxRuntime.jsxs("div",f(s({"data-slot":"card-week-status",className:l("ml-auto 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 text-secondary-foreground",children:"Conclu\xEDdo"})]}))}function Tn(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"card-week-actions",className:l("flex flex-wrap items-center justify-end gap-2 pt-4",e)},a))}var Kr=classVarianceAuthority.cva("relative z-0 flex flex-col gap-4 overflow-hidden rounded-2xl border border-gray-stroke-muted p-6",{variants:{variant:{default:"bg-surface-card",blocked:"bg-gray-background-soft"}},defaultVariants:{variant:"default"}}),pt=classVarianceAuthority.cva("text-xs font-medium leading-xs text-gray-foreground-muted"),Zr=D.createContext(null);function mt(){var e;return (e=D.useContext(Zr))!=null?e:{}}function Bn(i){var u=i,{className:e,variant:a,availableDate:o,showStack:t=true,children:r}=u,d=n(u,["className","variant","availableDate","showStack","children"]);let c=D.useMemo(()=>({variant:a,availableDate:o}),[a,o]),p=l("pointer-events-none absolute bottom-0 z-0 max-h-[20%] rounded-2xl border border-gray-stroke-muted",a==="blocked"?"bg-gray-background-soft":"bg-surface-card"),m=jsxRuntime.jsx("div",f(s({"data-slot":"card-module",className:l(Kr({variant:a}),e)},d),{children:r}));return jsxRuntime.jsx(Zr.Provider,{value:c,children:t?jsxRuntime.jsxs("div",{"data-slot":"card-module-stack",className:"relative pt-[17px]",children:[jsxRuntime.jsx("div",{"aria-hidden":true,className:l(p,"inset-x-[34px] top-0")}),jsxRuntime.jsx("div",{"aria-hidden":true,className:l(p,"inset-x-4 top-2")}),m]}):m})}function Fn(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"card-module-header",className:l("flex flex-col",e)},a))}function En(r){var d=r,{className:e,children:a,count:o}=d,t=n(d,["className","children","count"]);let{variant:i}=mt();return jsxRuntime.jsxs("div",f(s({"data-slot":"card-module-label",className:l("flex items-center justify-between gap-2 text-xs font-medium leading-xs",i==="blocked"?"text-gray-foreground-muted":"text-content-paragraph",e)},t),{children:[jsxRuntime.jsx("span",{children:a}),o&&jsxRuntime.jsx("span",{className:"text-sm leading-sm text-gray-foreground-muted",children:o})]}))}function Hn(o){var t=o,{className:e}=t,a=n(t,["className"]);let{variant:r}=mt();return jsxRuntime.jsx("div",s({"data-slot":"card-module-title",className:l("line-clamp-2 min-h-14 max-w-[70%] text-lg font-semibold",r==="blocked"?"text-primary-foreground-muted":"text-primary-foreground",e)},a))}function On(t){var r=t,{className:e,progress:a}=r,o=n(r,["className","progress"]);let{variant:d}=mt(),i=Number.isFinite(a)?Math.min(100,Math.max(0,a)):0,u=Math.round(i),c=d==="blocked"?jsxRuntime.jsx("div",{"data-slot":"card-module-status",className:pt(),children:"N\xE3o iniciado"}):i>=100?jsxRuntime.jsx("div",{"data-slot":"card-module-status",className:pt(),children:"Conclu\xEDdo"}):jsxRuntime.jsxs("div",{"data-slot":"card-module-status",className:pt(),children:[jsxRuntime.jsxs("span",{className:"font-semibold text-gray-foreground",children:[u,"%"]})," ","de progresso"]});return jsxRuntime.jsxs("div",f(s({"data-slot":"card-module-progress",className:l("flex flex-col gap-2",e)},o),{children:[c,d!=="blocked"&&jsxRuntime.jsx(je,{value:i,indicatorClassName:i===100?"bg-secondary-stroke-emphasis":"bg-primary-stroke"})]}))}function Vn(t){var r=t,{className:e,children:a}=r,o=n(r,["className","children"]);let{variant:d,availableDate:i}=mt();return d!=="blocked"||!i?null:jsxRuntime.jsxs("div",f(s({"data-slot":"card-module-footer",className:l("flex flex-col gap-3",e)},o),{children:[jsxRuntime.jsx("div",{className:"border-t border-gray-stroke-muted"}),jsxRuntime.jsxs("div",{className:"flex items-center justify-between",children:[jsxRuntime.jsxs(fe,{variant:"gray-soft",icon:jsxRuntime.jsx(icons.Lock,{}),children:["Dispon\xEDvel em ",i]}),a]})]}))}function qn(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(Y,s({"data-slot":"card-module-button",size:"sm",iconLeft:jsxRuntime.jsx(icons.ArrowRightMd,{}),className:l(e)},a))}function zn(t){var r=t,{className:e,children:a}=r,o=n(r,["className","children"]);return jsxRuntime.jsx("div",f(s({"data-slot":"card-module-action",className:l("flex items-center justify-end",e)},o),{children:a}))}var jr=D.createContext({animation:void 0});function fo(o){var t=o,{animation:e}=t,a=n(t,["animation"]);return jsxRuntime.jsx(jr.Provider,{value:D.useMemo(()=>({animation:e}),[e]),children:jsxRuntime.jsx(radixUi.Collapsible.Root,s({"data-slot":"collapsible"},a))})}function co(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.Collapsible.Trigger,s({"data-slot":"collapsible-trigger"},e))}function po(o){var t=o,{className:e}=t,a=n(t,["className"]);let{animation:r}=D.useContext(jr),d={accordion:"overflow-hidden data-[state=closed]:animate-collapsible-up data-[state=open]:animate-collapsible-down",fade:"data-[state=closed]:animate-fade-out data-[state=open]:animate-fade-in"};return jsxRuntime.jsx(radixUi.Collapsible.Content,s({"data-slot":"collapsible-content",className:l(r&&d[r],e)},a))}var $n=classVarianceAuthority.cva("flex flex-col overflow-hidden rounded-2xl border border-gray-stroke-muted",{variants:{variant:{default:"bg-surface-card",blocked:"bg-gray-background-soft"}},defaultVariants:{variant:"default"}}),Qr=D.createContext(null);function _a(){var e;return (e=D.useContext(Qr))!=null?e:{}}function Jn(d){var i=d,{className:e,variant:a,availableDate:o,children:t}=i,r=n(i,["className","variant","availableDate","children"]);let u=D.useMemo(()=>({variant:a,availableDate:o}),[a,o]);return jsxRuntime.jsx(Qr.Provider,{value:u,children:jsxRuntime.jsx(fo,f(s({"data-slot":"card-topic",animation:"accordion",className:l($n({variant:a}),e)},r),{children:t}))})}function Yn(t){var r=t,{className:e,children:a}=r,o=n(r,["className","children"]);let{variant:d}=_a(),i=d==="blocked";return jsxRuntime.jsx(co,f(s({"data-slot":"card-topic-trigger",disabled:i,className:l("group flex min-h-16 w-full select-none flex-wrap items-center gap-4 p-4 text-left","[&>*:first-child]:flex-1","disabled:pointer-events-none disabled:cursor-default",!i&&"cursor-pointer",e)},o),{children:a}))}function ei(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"card-topic-column",className:l("flex flex-wrap items-center gap-4",e)},a))}function ai(t){var r=t,{className:e,children:a}=r,o=n(r,["className","children"]);let{variant:d}=_a();return jsxRuntime.jsx("div",f(s({"data-slot":"card-topic-number",className:l("flex size-[30px] shrink-0 items-center justify-center rounded-full text-md font-medium text-primary-foreground-onfill",d==="blocked"?"bg-primary-foreground-muted":"bg-primary-foreground",e)},o),{children:a}))}function ti(o){var t=o,{className:e}=t,a=n(t,["className"]);let{variant:r}=_a();return jsxRuntime.jsx("div",s({"data-slot":"card-topic-title",className:l("min-w-0 flex-1 text-md font-semibold leading-md",r==="blocked"?"text-primary-foreground-muted":"text-primary-foreground",e)},a))}function oi(t){var r=t,{className:e,progress:a}=r,o=n(r,["className","progress"]);let{variant:d,availableDate:i}=_a();if(d==="blocked")return i?jsxRuntime.jsx("div",f(s({"data-slot":"card-topic-progress",className:l("flex",e)},o),{children:jsxRuntime.jsxs(fe,{variant:"gray-soft",icon:jsxRuntime.jsx(icons.Lock,{"aria-hidden":true}),children:["Dispon\xEDvel em ",i]})})):null;if(a===void 0)return null;let u=Math.min(100,Math.max(0,a)),c=Math.round(u),p=u>=100;return jsxRuntime.jsxs("div",f(s({"data-slot":"card-topic-progress",className:l("flex min-w-[180px] flex-col gap-2",e)},o),{children:[jsxRuntime.jsx("div",{className:"text-xs font-medium leading-xs text-gray-foreground-muted",children:p?"Conclu\xEDdo":jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("span",{className:"font-semibold text-gray-foreground",children:[c,"%"]})," de progresso"]})}),jsxRuntime.jsx(je,{value:u,indicatorClassName:p?"bg-secondary-stroke-emphasis":"bg-primary-stroke"})]}))}function ri(t){var r=t,{className:e,children:a}=r,o=n(r,["className","children"]);let{variant:d}=_a();return jsxRuntime.jsxs("div",f(s({"data-slot":"card-topic-count",className:l("flex shrink-0 items-center gap-2",e)},o),{children:[jsxRuntime.jsx("span",{className:"text-sm font-medium leading-sm text-gray-foreground-muted",children:a}),jsxRuntime.jsx(icons.ChevronDown,{"aria-hidden":true,size:18,strokeWidth:2.4,className:l("shrink-0 text-gray-foreground",d!=="blocked"&&"transition-transform duration-200 group-data-[state=open]:rotate-180")})]}))}function si(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(po,s({"data-slot":"card-topic-content",className:l("px-4 pb-4",e)},a))}function $e(t){var r=t,{className:e,label:a="Medway"}=r,o=n(r,["className","label"]);let d=D.useId();return jsxRuntime.jsxs("svg",f(s({"data-slot":"fallback-image",viewBox:"0 0 320 167",preserveAspectRatio:"xMidYMid slice",role:"img","aria-label":a,className:l("size-full",e)},o),{children:[jsxRuntime.jsx("defs",{children:jsxRuntime.jsxs("radialGradient",{id:d,cx:"50%",cy:"42%",r:"78%",children:[jsxRuntime.jsx("stop",{offset:"0%",stopColor:"#15397A"}),jsxRuntime.jsx("stop",{offset:"55%",stopColor:"#06245E"}),jsxRuntime.jsx("stop",{offset:"100%",stopColor:"#021536"})]})}),jsxRuntime.jsx("rect",{width:"320",height:"167",fill:`url(#${d})`}),jsxRuntime.jsx("g",{transform:"translate(85.5 62.7) scale(1.38)",fill:"#FFFFFF",children:jsxRuntime.jsx("path",{d:"M104.229 3.90299H107.408C107.836 3.90299 108.122 4.34302 107.948 4.73464L100.413 21.6491C100.318 21.8625 100.106 22 99.8724 22H96.6935C96.2653 22 95.9791 21.56 96.153 21.1684L97.89 17.2687L92.3798 4.90074C92.1706 4.43102 92.5141 3.90189 93.0281 3.90189H95.8779C96.1585 3.90189 96.4128 4.0669 96.5262 4.32322L100.09 12.325L103.686 4.25391C103.781 4.0405 103.993 3.90299 104.227 3.90299H104.229ZM91.9043 11.0005V17.3875C91.9043 17.7791 91.5862 18.097 91.1943 18.097H88.9455C88.5537 18.097 88.2356 17.7791 88.2356 17.3875V17.2841C87.1547 17.8957 85.8999 18.2367 84.5647 18.2147C80.7496 18.152 77.6159 15.0928 77.4706 11.2822C77.3132 7.16906 80.6043 3.78419 84.6847 3.78419C88.765 3.78419 91.9043 7.01505 91.9043 10.9994V11.0005ZM88.0573 11.0005C88.0573 9.13926 86.5471 7.62888 84.6836 7.62888C82.8201 7.62888 81.3099 9.13816 81.3099 11.0005C81.3099 12.8629 82.8201 14.3722 84.6836 14.3722C86.5471 14.3722 88.0573 12.8629 88.0573 11.0005ZM75.4519 12.1578V4.61363C75.4519 4.22201 75.1338 3.9041 74.7419 3.9041H72.3159C71.9241 3.9041 71.606 4.22201 71.606 4.61363V12.2282C71.606 13.4273 70.6153 14.3997 69.4089 14.3711C68.2378 14.3436 67.3154 13.358 67.3154 12.1875V4.61363C67.3154 4.22201 66.9973 3.9041 66.6054 3.9041H64.1794C63.7876 3.9041 63.4695 4.22201 63.4695 4.61363V12.2282C63.4695 13.4273 62.4788 14.3997 61.2724 14.3711C60.1013 14.3436 59.1789 13.358 59.1789 12.1875V4.61363C59.1789 4.22201 58.8608 3.9041 58.4689 3.9041H56.0429C55.6511 3.9041 55.333 4.22201 55.333 4.61363V12.1578C55.333 15.4778 58.0507 18.2422 61.3726 18.2158C62.9235 18.2037 64.3346 17.5998 65.3935 16.6196C66.4524 17.5998 67.8635 18.2037 69.4144 18.2158C72.7364 18.2422 75.4541 15.4767 75.4541 12.1578H75.4519ZM49.7094 0H51.9582C52.35 0 52.6682 0.317916 52.6682 0.709535V17.3875C52.6682 17.7791 52.35 18.097 51.9582 18.097H49.7094C49.3176 18.097 48.9995 17.7791 48.9995 17.3875V17.2841C47.9505 17.877 46.7397 18.2158 45.4486 18.2158C41.3671 18.2158 38.0771 14.832 38.2345 10.7178C38.3798 6.90834 41.5135 3.84799 45.3286 3.78529C46.6648 3.76329 47.9186 4.1043 48.9995 4.71594V0.709535C48.9995 0.317916 49.3176 0 49.7094 0ZM48.8223 11.0005C48.8223 9.13926 47.3121 7.62888 45.4486 7.62888C43.585 7.62888 42.0749 9.13816 42.0749 11.0005C42.0749 12.8629 43.585 14.3722 45.4486 14.3722C47.3121 14.3722 48.8223 12.8629 48.8223 11.0005ZM26.4139 12.2425C26.1508 12.2425 25.9769 12.5186 26.0947 12.7529C26.6979 13.9608 27.9031 14.7847 29.2945 14.7847C30.2576 14.7847 31.1326 14.3887 31.7799 13.7452C31.9109 13.6143 32.0903 13.5428 32.2752 13.5428H34.8806C35.4265 13.5428 35.7689 14.1324 35.497 14.6054C34.2587 16.7626 31.945 18.2147 29.2945 18.2147C25.3396 18.2147 22.1343 14.9838 22.1343 10.9994C22.1343 7.01505 25.3407 3.78419 29.2945 3.78419C33.2482 3.78419 36.4546 7.01505 36.4546 10.9994C36.4546 11.1997 36.4469 11.3966 36.4304 11.5924C36.4007 11.9598 36.0914 12.2414 35.7226 12.2414H26.4139V12.2425ZM26.2356 8.98855C26.0947 9.22286 26.2686 9.52208 26.5427 9.52208H32.0451C32.3192 9.52208 32.4931 9.22396 32.3522 8.98855C31.7138 7.9237 30.5823 7.21526 29.2945 7.21526C28.0066 7.21526 26.8751 7.9237 26.2367 8.98855H26.2356ZM14.0815 3.78529C12.5306 3.79739 11.1194 4.40132 10.0605 5.38147C9.00165 4.40132 7.59054 3.79739 6.03963 3.78529C2.71767 3.75889 0 6.52443 0 9.84329V17.3875C0 17.7791 0.318107 18.097 0.709962 18.097H3.13594C3.52779 18.097 3.8459 17.7791 3.8459 17.3875V9.81359C3.8459 8.64313 4.7683 7.65748 5.93946 7.62998C7.14585 7.60138 8.13649 8.57383 8.13649 9.77289V17.3875C8.13649 17.7791 8.4546 18.097 8.84645 18.097H11.2724C11.6643 18.097 11.9824 17.7791 11.9824 17.3875V9.81359C11.9824 8.64313 12.9048 7.65748 14.076 7.62998C15.2823 7.60138 16.273 8.57383 16.273 9.77289V17.3875C16.273 17.7791 16.5911 18.097 16.9829 18.097H19.4089C19.8008 18.097 20.1189 17.7791 20.1189 17.3875V9.84329C20.1189 6.52333 17.4012 3.75889 14.0793 3.78529H14.0815Z"})})]}))}function fi(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"card-continue",className:l("flex gap-3 bg-transparent",e)},a))}function ci(d){var i=d,{className:e,src:a,alt:o="",children:t}=i,r=n(i,["className","src","alt","children"]);return jsxRuntime.jsx("div",f(s({"data-slot":"card-continue-image",className:l("relative h-[122px] w-[200px] shrink-0 overflow-hidden rounded-md bg-gray-background-soft",e)},r),{children:a?jsxRuntime.jsx("img",{src:a,alt:o,loading:"lazy",className:"absolute inset-0 size-full object-cover"}):t!=null?t:jsxRuntime.jsx($e,{className:"absolute inset-0"})}))}function pi(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"card-continue-content",className:l("flex min-w-0 flex-1 flex-col justify-between gap-2",e)},a))}function mi(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"card-continue-header",className:l("flex min-w-0 flex-col gap-1",e)},a))}function gi({items:e,className:a}){return jsxRuntime.jsx(Oa,{"data-slot":"card-continue-breadcrumb",className:"overflow-hidden",children:jsxRuntime.jsx(Va,{className:l("flex-nowrap gap-1 text-xs font-medium leading-xs [&>[data-slot=breadcrumb-item]:last-of-type>span]:min-w-0 [&>[data-slot=breadcrumb-item]:last-of-type>span]:overflow-hidden [&>[data-slot=breadcrumb-item]:last-of-type]:min-w-0 [&>[data-slot=breadcrumb-item]:last-of-type]:flex-1 [&>[data-slot=breadcrumb-item]:last-of-type_[data-slot=breadcrumb-page]]:truncate [&_[data-slot=breadcrumb-page]]:block",a),children:e.map((o,t)=>jsxRuntime.jsx(D.Fragment,{children:t<e.length-1?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(nt,{className:"text-content-paragraph",children:o}),jsxRuntime.jsx(so,{children:jsxRuntime.jsx(icons.ChevronRight,{size:12,className:"text-gray-foreground"})})]}):jsxRuntime.jsx(nt,{children:jsxRuntime.jsx(ro,{className:"font-medium text-content-paragraph",children:o})})},`${o}-${t}`))})})}function xi(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"card-continue-title",className:l("line-clamp-2 text-lg font-semibold leading-lg text-primary-foreground",e)},a))}function hi(t){var r=t,{className:e,children:a}=r,o=n(r,["className","children"]);return jsxRuntime.jsx(Y,f(s({"data-slot":"card-continue-button",variant:"emphasis-soft",size:"sm",iconRight:jsxRuntime.jsx(icons.ArrowRightSm,{}),className:l("self-start",e)},o),{children:a}))}var Jr=classVarianceAuthority.cva("flex flex-col overflow-hidden rounded-2xl border border-gray-stroke-muted",{variants:{variant:{default:"bg-surface-card",blocked:"bg-gray-background-soft"},orientation:{vertical:"",horizontal:"lg:flex-row lg:flex-wrap lg:items-center lg:gap-x-6 lg:gap-y-3 lg:p-3 lg:pr-6"}},defaultVariants:{variant:"default",orientation:"vertical"}}),Yr=D.createContext(null);function Je(){var e;return (e=D.useContext(Yr))!=null?e:{}}function Pi(i){var u=i,{className:e,variant:a,orientation:o="vertical",availableDate:t,children:r}=u,d=n(u,["className","variant","orientation","availableDate","children"]);let c=D.useMemo(()=>({variant:a,orientation:o,availableDate:t}),[a,o,t]);return jsxRuntime.jsx(Yr.Provider,{value:c,children:jsxRuntime.jsx("div",f(s({"data-slot":"card-lesson",className:l(Jr({variant:a,orientation:o}),e)},d),{children:r}))})}function wi(d){var i=d,{className:e,src:a,alt:o="",children:t}=i,r=n(i,["className","src","alt","children"]);let{variant:u,orientation:c}=Je(),p=c==="horizontal",m=l("h-[153px] w-full overflow-hidden rounded-md",p&&"lg:h-[120px] lg:w-[200px]",u==="blocked"&&"opacity-20"),g;return t?g=jsxRuntime.jsx("div",{className:l(m,"bg-gray-background-soft"),children:t}):a?g=jsxRuntime.jsx("img",{src:a,alt:o,loading:"lazy",className:l(m,"object-cover")}):g=jsxRuntime.jsx($e,{className:m}),jsxRuntime.jsx("div",f(s({"data-slot":"card-lesson-image",className:l("px-3 pt-3",p&&"lg:shrink-0 lg:p-0",e)},r),{children:g}))}function Ti(o){var t=o,{className:e}=t,a=n(t,["className"]);let{orientation:r}=Je();return jsxRuntime.jsx("div",s({"data-slot":"card-lesson-content",className:l("flex flex-col gap-4 px-6 pt-4",r==="horizontal"&&"lg:min-w-[12rem] lg:flex-1 lg:justify-center lg:p-0",e)},a))}function Ai(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"card-lesson-header",className:l("flex flex-col",e)},a))}function Di(o){var t=o,{className:e}=t,a=n(t,["className"]);let{variant:r}=Je();return jsxRuntime.jsx("div",s({"data-slot":"card-lesson-label",className:l("text-xs font-medium leading-xs",r==="blocked"?"text-gray-foreground-muted":"text-content-paragraph",e)},a))}function Ri(o){var t=o,{className:e}=t,a=n(t,["className"]);let{variant:r}=Je();return jsxRuntime.jsx("div",s({"data-slot":"card-lesson-title",className:l("line-clamp-2 text-lg font-semibold leading-lg",r==="blocked"?"text-primary-foreground-muted":"text-primary-foreground",e)},a))}function Mi(t){var r=t,{className:e,children:a}=r,o=n(r,["className","children"]);return jsxRuntime.jsx("div",f(s({"data-slot":"card-lesson-duration",className:l("flex items-center gap-1 text-sm font-medium leading-sm text-gray-foreground-muted",e)},o),{children:a}))}function Ni(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"card-lesson-icons",className:l("flex items-center gap-2.5",e)},a))}function Bi(r){var d=r,{className:e,icon:a,badge:o}=d,t=n(d,["className","icon","badge"]);let{variant:i}=Je(),u=o!=null&&o!==""&&Number(o)>=2;return jsxRuntime.jsxs("div",f(s({"data-slot":"card-lesson-icon",className:l("relative flex size-10 shrink-0 items-center justify-center rounded-pill text-gray-foreground-muted [&_svg]:size-5",i==="blocked"?"bg-gray-background-soft-muted":"bg-gray-background-soft",e)},t),{children:[a,u?jsxRuntime.jsx(Be,{size:"sm",className:"absolute -right-1 -top-1 bg-gray-stroke text-primary-foreground",children:String(o)}):null]}))}function Fi(t){var r=t,{className:e,children:a}=r,o=n(r,["className","children"]);let{variant:d,availableDate:i,orientation:u}=Je();return jsxRuntime.jsxs("div",f(s({"data-slot":"card-lesson-footer",className:l("mt-auto flex flex-wrap items-center justify-between gap-4 px-6 pb-6 pt-4",u==="horizontal"&&"lg:ml-auto lg:mt-0 lg:shrink-0 lg:justify-start lg:p-0",e)},o),{children:[d==="blocked"&&i?jsxRuntime.jsxs(fe,{variant:"gray-soft",icon:jsxRuntime.jsx(icons.Lock,{}),children:["Dispon\xEDvel em ",i]}):null,a]}))}function Ei(t){var r=t,{className:e,status:a}=r,o=n(r,["className","status"]);let d=a==="completed";return jsxRuntime.jsx(fe,f(s({"data-slot":"card-lesson-status",variant:d?"success-soft":"warning-soft",icon:d?jsxRuntime.jsx(icons.Check,{}):void 0,className:e},o),{children:d?"Conclu\xEDdo":"Iniciado"}))}function Hi(r){var d=r,{className:e,children:a,containerClassName:o}=d,t=n(d,["className","children","containerClassName"]);let{variant:i}=Je();return jsxRuntime.jsx(Y,f(s({"data-slot":"card-lesson-button",variant:"regular",size:"sm",disabled:i==="blocked",containerClassName:l("ml-auto",o),className:l("rounded-full disabled:bg-gray-background-soft-muted disabled:text-gray-foreground-muted",e)},t),{children:a}))}var es=D.createContext({orientation:"vertical"}),_i=classVarianceAuthority.cva("flex border",{variants:{variant:{default:"rounded-lg border-secondary-stroke bg-secondary-background-soft-muted p-6",read:"rounded-lg border-gray-stroke-muted bg-surface-card p-6",compact:"rounded-xl border-gray-stroke-muted bg-surface-card p-4"},orientation:{vertical:"flex-col gap-6",horizontal:"flex-row gap-10"}},defaultVariants:{variant:"default",orientation:"vertical"}});function Ui(d){var i=d,{className:e,isRead:a,variant:o,orientation:t="vertical"}=i,r=n(i,["className","isRead","variant","orientation"]);let u=a?"read":o!=null?o:"default";return jsxRuntime.jsx(es.Provider,{value:{orientation:t!=null?t:"vertical"},children:jsxRuntime.jsx("div",s({"data-slot":"card-news",className:l(_i({variant:u,orientation:t}),e)},r))})}function Gi(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"card-news-body",className:l("flex flex-1 flex-col gap-6 min-[1280px]:flex-auto",e)},a))}function Wi(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"card-news-header",className:l("flex w-full flex-col items-start justify-between gap-4 md:flex-row md:items-center",e)},a))}function Xi(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"card-news-tags",className:l("flex flex-wrap items-center gap-x-4 gap-y-3",e)},a))}function Ki(r){var d=r,{className:e,icon:a=jsxRuntime.jsx(icons.Calendar,{}),children:o}=d,t=n(d,["className","icon","children"]);return jsxRuntime.jsxs("div",f(s({"data-slot":"card-news-date",className:l("flex shrink-0 items-center gap-1.5 text-xs font-semibold leading-xs text-primary-foreground [&>svg]:size-4",e)},t),{children:[a,o&&jsxRuntime.jsx("span",{children:o})]}))}function Zi(d){var i=d,{className:e,src:a,alt:o="",children:t}=i,r=n(i,["className","src","alt","children"]);let{orientation:u}=D.useContext(es);return jsxRuntime.jsx("div",f(s({"data-slot":"card-news-image",className:l("relative overflow-hidden bg-gray-background-soft",u==="vertical"?"h-[300px] w-full rounded-lg":"hidden w-[482px] rounded-xl min-[1280px]:block",e)},r),{children:a?jsxRuntime.jsx("img",{src:a,alt:o,loading:"lazy",className:"absolute inset-0 size-full object-cover"}):t!=null?t:jsxRuntime.jsx($e,{className:"absolute inset-0"})}))}function ji(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"card-news-content",className:l("flex w-full flex-col gap-6",e)},a))}function Qi(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"card-news-title",className:l("-mb-2 line-clamp-2 text-title-xs font-semibold leading-title-xs text-primary-foreground",e)},a))}function $i(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"card-news-description",className:l("line-clamp-3 text-md leading-md text-primary-foreground",e)},a))}function Ji(e){return e.trim().split(/\s+/).slice(0,2).map(a=>{var o;return (o=a[0])!=null?o:""}).join("").toUpperCase()}function Yi(u){var c=u,{className:e,src:a,alt:o,name:t,role:r,children:d}=c,i=n(c,["className","src","alt","name","role","children"]);var p;return jsxRuntime.jsx("div",f(s({"data-slot":"card-news-author",className:l("flex items-center gap-2",e)},i),{children:d!=null?d:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs(Fa,{size:"md",children:[a&&jsxRuntime.jsx(Ea,{src:a,alt:(p=o!=null?o:t)!=null?p:""}),jsxRuntime.jsx(Ha,{children:t?Ji(t):void 0})]}),jsxRuntime.jsxs("div",{className:"flex flex-col gap-0.5",children:[r&&jsxRuntime.jsx("span",{className:"text-xs font-medium leading-xs text-secondary-foreground",children:r}),t&&jsxRuntime.jsx("span",{className:"text-sm font-semibold leading-sm text-primary-foreground",children:t})]})]})}))}function eu(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"card-news-footer",className:l("flex w-full flex-wrap items-center gap-6 gap-y-3",e)},a))}var ts=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 su(d){var i=d,{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:l("group peer",ts({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:l("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:l("absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 text-primary-foreground-onfill"),strokeWidth:2.6})})}))}var go=768;function Ua(){let[e,a]=D.useState(void 0);return D.useEffect(()=>{let o=window.matchMedia(`(max-width: ${go-1}px)`),t=()=>{a(window.innerWidth<go);};return o.addEventListener("change",t),a(window.innerWidth<go),()=>o.removeEventListener("change",t)},[]),!!e}function xo(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.DropdownMenu.Root,s({"data-slot":"dropdown-menu"},e))}function iu(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.DropdownMenu.Portal,s({"data-slot":"dropdown-menu-portal"},e))}function ho(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.DropdownMenu.Trigger,s({className:l("cursor-pointer",e.className),"data-slot":"dropdown-menu-trigger"},e))}function bo(r){var d=r,{className:e,sideOffset:a=4,side:o}=d,t=n(d,["className","sideOffset","side"]);let i=Ua();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:l("max-h-(--radix-dropdown-menu-content-available-height) origin-(--radix-dropdown-menu-content-transform-origin) z-50 max-h-screen min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-surface-elevated p-3 pb-2 text-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e)},t))})}function uu(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.DropdownMenu.Group,s({"data-slot":"dropdown-menu-group"},e))}function bt(r){var d=r,{className:e,inset:a,variant:o="default"}=d,t=n(d,["className","inset","variant"]);return jsxRuntime.jsx(radixUi.DropdownMenu.Item,s({"data-slot":"dropdown-menu-item","data-inset":a,"data-variant":o,className:l("data-[variant=destructive]:*:[svg]:!text-destructive outline-hidden relative flex cursor-pointer select-none items-center gap-2.5 rounded-sm px-2 py-2 text-sm font-medium text-gray-foreground hover:bg-secondary-background-soft-emphasis focus:outline-0 data-[disabled]:pointer-events-none data-[inset]:pl-8 data-[variant=destructive]:text-red-foreground data-[disabled]:opacity-50 data-[variant=destructive]:hover:bg-red-background-soft-emphasis dark:[&_img]:brightness-0 dark:[&_img]:invert [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",e)},t))}function fu(r){var d=r,{className:e,children:a,checked:o}=d,t=n(d,["className","children","checked"]);return jsxRuntime.jsxs(radixUi.DropdownMenu.CheckboxItem,f(s({"data-slot":"dropdown-menu-checkbox-item",className:l("outline-hidden relative flex cursor-pointer select-none items-center gap-2 rounded-md py-2 pl-2 pr-7 text-sm font-medium text-gray-foreground hover:bg-secondary-background-soft-emphasis focus:outline-0 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:[&_img]:brightness-0 dark:[&_img]:invert [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg]:text-secondary-foreground",e),checked:o},t),{children:[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 Ct(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.DropdownMenu.RadioGroup,s({"data-slot":"dropdown-menu-radio-group"},e))}function Co(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:l("outline-hidden relative flex cursor-pointer select-none items-center gap-2 rounded-md py-3 pl-2 pr-7 text-sm font-medium text-gray-foreground hover:bg-secondary-background-soft-emphasis focus:outline-0 aria-checked:text-secondary-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:[&_img]:brightness-0 dark:[&_img]:invert [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:text-secondary-foreground",e)},o),{children:[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 Lo(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:l("px-2 py-3 text-xs font-medium text-gray-foreground-muted data-[inset]:pl-8 [&:not(:first-child)]:mt-2.5",e)},o))}function vo(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.DropdownMenu.Separator,s({"data-slot":"dropdown-menu-separator",className:l("-mx-3 my-2 h-px bg-gray-stroke-muted",e)},a))}function cu(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("span",s({"data-slot":"dropdown-menu-shortcut",className:l("ml-auto text-xs tracking-widest text-gray-foreground",e)},a))}function pu(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.DropdownMenu.Sub,s({"data-slot":"dropdown-menu-sub"},e))}function mu(r){var d=r,{className:e,inset:a,children:o}=d,t=n(d,["className","inset","children"]);return jsxRuntime.jsxs(radixUi.DropdownMenu.SubTrigger,f(s({"data-slot":"dropdown-menu-sub-trigger","data-inset":a,className:l("flex cursor-pointer select-none items-center rounded-sm px-2 py-2 text-sm font-medium text-gray-foreground outline-0 focus:outline-0 data-[inset]:pl-8",e)},t),{children:[o,jsxRuntime.jsx(icons.ChevronRight,{className:"ml-auto size-3"})]}))}function gu(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:l("origin-(--radix-dropdown-menu-content-transform-origin) z-50 min-w-[8rem] overflow-hidden rounded-md border bg-surface-elevated p-1 text-gray-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e)},a))}var yo=D.createContext({invalid:false}),fs={start:1950,end:new Date().getFullYear()};function vt(e,a){let o=e.getFullYear();return o<a.start?new Date(a.start,0,1):o>a.end?new Date(a.end,11,31):e}var So=classVarianceAuthority.cva(["shadow-xs flex w-full items-center justify-between gap-2 rounded-md border-2 border-gray-stroke-muted bg-surface-card px-4 py-3 text-left text-gray-foreground outline-none transition-[color,box-shadow] enabled:hover:border-gray-stroke-emphasis enabled:hover:ring-[3px] enabled:hover:ring-state-focus disabled:pointer-events-none disabled:bg-gray-background-soft-muted disabled:text-gray-foreground-muted data-[invalid]:border-feedback-error-stroke data-[invalid]:enabled:hover:border-feedback-error-stroke data-[invalid]:enabled:hover:ring-[3px] data-[invalid]:enabled:hover:ring-state-error","group-has-[[data-slot=date-picker-label]]:data-[placeholder]:text-transparent"],{variants:{size:{lg:["h-12 max-h-12 text-md","max-sm:h-14 max-sm:text-base"],md:["h-10 max-h-10 text-sm","max-sm:h-11"]}},defaultVariants:{size:"lg"}});function Cu(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({className:l("group relative flex flex-col gap-2",e),"data-slot":"date-picker-wrapper"},a))}function Lu(t){var r=t,{className:e,children:a}=r,o=n(r,["className","children"]);return jsxRuntime.jsx("label",f(s({className:l("pointer-events-none absolute start-3 top-0 z-10 origin-left -translate-y-1/2 bg-surface-card px-1 text-xs font-medium text-gray-foreground transition-all duration-200 ease-out","group-has-[[data-slot=date-picker-trigger][data-placeholder]:not([data-state=open])]:start-4 group-has-[[data-slot=date-picker-trigger][data-placeholder]:not([data-state=open])]:top-6 group-has-[[data-slot=date-picker-trigger][data-placeholder]:not([data-state=open])]:bg-transparent group-has-[[data-slot=date-picker-trigger][data-placeholder]:not([data-state=open])]:px-0 group-has-[[data-slot=date-picker-trigger][data-placeholder]:not([data-state=open])]:text-md group-has-[[data-slot=date-picker-trigger][data-placeholder]:not([data-state=open])]:font-normal group-has-[[data-slot=date-picker-trigger][data-placeholder]:not([data-state=open])]:text-gray-foreground max-sm:group-has-[[data-slot=date-picker-trigger][data-placeholder]:not([data-state=open])]:top-7","group-has-[[data-slot=date-picker-trigger][data-size=md]]:group-has-[[data-slot=date-picker-trigger][data-placeholder]:not([data-state=open])]:top-5 group-has-[[data-slot=date-picker-trigger][data-size=md]]:group-has-[[data-slot=date-picker-trigger][data-placeholder]:not([data-state=open])]:!text-sm max-sm:group-has-[[data-slot=date-picker-trigger][data-size=md]]:group-has-[[data-slot=date-picker-trigger][data-placeholder]:not([data-state=open])]:top-[22px]",e),"data-slot":"date-picker-label"},o),{children:a}))}function vu(o){var t=o,{className:e}=t,a=n(t,["className"]);let{invalid:r}=D.useContext(yo);return jsxRuntime.jsx("span",s({className:l("-mt-1 text-xs",r?"text-feedback-error-foreground":"text-gray-foreground",e),"data-slot":"date-picker-text"},a))}function ga(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate())}function Ga(e,a){return e.getFullYear()===a.getFullYear()&&e.getMonth()===a.getMonth()&&e.getDate()===a.getDate()}function It(e,a){return new Date(e.getFullYear(),e.getMonth()+a,1)}function kt(e){return new Date(e.getFullYear(),e.getMonth(),1)}function ko(e,a){return ga(e).getTime()<ga(a).getTime()}function cs(e,a){return ga(e).getTime()>ga(a).getTime()}function Wa(e,a,o){return !!(a&&ko(e,a)||o&&cs(e,o))}function ps(e){return new Intl.DateTimeFormat("pt-BR",{year:"numeric",month:"2-digit",day:"2-digit"}).format(e)}var ms=20,gs=18;function Iu(_){var F=_,{value:e,defaultValue:a=null,onValueChange:o,placeholder:t="Pick a date",disabled:r,min:d,max:i,format:u=ps,className:c,inputClassName:p,contentClassName:m,size:g="lg",yearRange:h=fs,showYearSelector:k=true,invalid:C=false,children:R}=F,B=n(F,["value","defaultValue","onValueChange","placeholder","disabled","min","max","format","className","inputClassName","contentClassName","size","yearRange","showYearSelector","invalid","children"]);let P=e!==void 0,[J,z]=D.useState(a),b=P?e:J,[v,I]=D.useState(false),[H,M]=D.useState(()=>kt(vt(b!=null?b:new Date,h))),O=D.useRef(null),ae=D.useRef(null),Te=D.useRef(null),Ie=D.useId(),[re,Me]=D.useState(null),be=D.useCallback(S=>{P||z(S),o==null||o(S);},[P,o]);D.useEffect(()=>{v&&M(kt(vt(b!=null?b:new Date,h)));},[v,b,h]),D.useEffect(()=>{v||Me(null);},[v]),D.useEffect(()=>{if(!v)return;let S=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=S;}},[v]),D.useEffect(()=>{if(!re)return;let S=()=>I(false);return window.addEventListener("scroll",S,{passive:true,capture:true}),()=>window.removeEventListener("scroll",S,{capture:true})},[re]),D.useEffect(()=>{if(!v)return;let S=V=>{let U=O.current,te=Te.current;U&&V.target instanceof Node&&!U.contains(V.target)&&!(te!=null&&te.contains(V.target))&&I(false);},L=V=>{V.key==="Escape"&&I(false);};return window.addEventListener("pointerdown",S,{capture:true}),window.addEventListener("keydown",L),()=>{window.removeEventListener("pointerdown",S,{capture:true}),window.removeEventListener("keydown",L);}},[v]);let ra=290,sa=()=>{var S,L,V;if(v)I(false);else {let U=(V=(S=ae.current)==null?void 0:S.getBoundingClientRect())!=null?V:(L=O.current)==null?void 0:L.getBoundingClientRect();if(U){let Pe=window.innerHeight-U.bottom<ra,We=window.innerWidth,ka=window.matchMedia("(max-width: 639px)").matches?Math.min(512,We-16):Math.min(320,We),ya=8,Sa=ya,Pa=We-ka-ya,Ve=U.left;Ve<Sa?Ve=Sa:Ve>Pa&&(Ve=Pa),Me(f(s({position:"fixed"},Pe?{bottom:window.innerHeight-U.top+8}:{top:U.bottom+8}),{left:Ve,width:ka,maxWidth:360}));}I(true);}},Se=ga(new Date),ie=H.getFullYear(),ge=H.getMonth(),x=new Date(ie,ge,1),N=new Date(ie,ge+1,0).getDate(),A=x.getDay(),w=b?u(b):"",q=Array.from({length:12},(S,L)=>({value:L,label:new Intl.DateTimeFormat("pt-BR",{month:"long"}).format(new Date(2e3,L,1))})),Q=Array.from({length:h.end-h.start+1},(S,L)=>h.start+L),$=S=>{M(new Date(ie,S,1));},se=S=>{M(new Date(S,ge,1));};return jsxRuntime.jsxs(yo.Provider,{value:D.useMemo(()=>({invalid:C}),[C]),children:[jsxRuntime.jsxs("div",{ref:O,className:l("relative inline-flex w-full",c),children:[jsxRuntime.jsxs("button",f(s(f(s({ref:ae,type:"button",disabled:r,"aria-haspopup":"dialog","aria-expanded":v,"aria-controls":v?Ie:void 0,"data-invalid":C||void 0,"data-slot":"date-picker-trigger","data-size":g,"data-state":v?"open":"closed"},!w&&{"data-placeholder":""}),{className:l(So({size:g}),v&&"border-gray-stroke-emphasis ring-[3px] ring-state-focus",w&&!C&&"border-gray-stroke-emphasis ring-[3px] ring-state-focus",w&&C&&"border-feedback-error-stroke ring-[3px] ring-state-error",p),onClick:sa}),B),{children:[jsxRuntime.jsx("span",{className:"truncate",children:w||t}),jsxRuntime.jsx(icons.Calendar,{size:g==="md"?gs:ms,strokeWidth:1.6,className:"shrink-0 !text-gray-foreground","aria-hidden":"true"})]})),v&&reactDom.createPortal(jsxRuntime.jsxs("div",{ref:Te,id:Ie,role:"dialog","aria-label":"Calend\xE1rio","data-slot":"date-picker-content",style:re!=null?re:void 0,className:l("z-50 overflow-hidden rounded-md border border-gray-stroke-muted bg-surface-elevated p-3 shadow-md",m),children:[jsxRuntime.jsxs("div",{className:"mb-3 flex items-center justify-center gap-2",children:[jsxRuntime.jsx("button",{type:"button",className:"inline-flex size-8 items-center justify-center rounded-md hover:bg-secondary-background-soft-emphasis max-sm:size-10",onClick:()=>M(S=>It(S,-1)),"aria-label":"M\xEAs anterior",children:jsxRuntime.jsx(icons.ChevronLeftMd,{size:18,strokeWidth:1.8})}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsxs("div",{className:"relative",children:[jsxRuntime.jsx("select",{value:ge,onChange:S=>$(Number(S.target.value)),className:"min-w-[7rem] appearance-none rounded-md border border-gray-stroke-muted bg-surface-card py-1 pl-2 pr-7 text-sm font-medium capitalize text-gray-foreground outline-none hover:border-gray-stroke-emphasis focus:border-gray-stroke-emphasis focus:ring-2 focus:ring-state-focus max-sm:min-w-[8rem] max-sm:py-2 max-sm:text-base","aria-label":"Selecionar m\xEAs",children:q.map(S=>jsxRuntime.jsx("option",{value:S.value,className:"capitalize",children:S.label},S.value))}),jsxRuntime.jsx(icons.ChevronDown,{size:14,strokeWidth:1.8,className:"pointer-events-none absolute right-2 top-1/2 -translate-y-1/2 text-gray-foreground","aria-hidden":true})]}),k?jsxRuntime.jsxs("div",{className:"relative",children:[jsxRuntime.jsx("select",{value:ie,onChange:S=>se(Number(S.target.value)),className:"min-w-[5rem] appearance-none rounded-md border border-gray-stroke-muted bg-surface-card py-1 pl-2 pr-7 text-sm font-medium text-gray-foreground outline-none hover:border-gray-stroke-emphasis focus:border-gray-stroke-emphasis focus:ring-2 focus:ring-state-focus max-sm:min-w-[5.5rem] max-sm:py-2 max-sm:text-base","aria-label":"Selecionar ano",children:Q.map(S=>jsxRuntime.jsx("option",{value:S,children:S},S))}),jsxRuntime.jsx(icons.ChevronDown,{size:14,strokeWidth:1.8,className:"pointer-events-none absolute right-2 top-1/2 -translate-y-1/2 text-gray-foreground","aria-hidden":true})]}):jsxRuntime.jsx("div",{className:"text-sm font-semibold text-gray-foreground",children:ie})]}),jsxRuntime.jsx("button",{type:"button",className:"inline-flex size-8 items-center justify-center rounded-md hover:bg-secondary-background-soft-emphasis max-sm:size-10",onClick:()=>M(S=>It(S,1)),"aria-label":"Pr\xF3ximo m\xEAs",children:jsxRuntime.jsx(icons.ChevronRightMd,{size:18,strokeWidth:1.8})})]}),jsxRuntime.jsxs("div",{className:"grid grid-cols-7 gap-1 text-center text-xs font-medium text-gray-foreground-muted max-sm:text-sm",children:[jsxRuntime.jsx("div",{children:"Dom"}),jsxRuntime.jsx("div",{children:"Seg"}),jsxRuntime.jsx("div",{children:"Ter"}),jsxRuntime.jsx("div",{children:"Qua"}),jsxRuntime.jsx("div",{children:"Qui"}),jsxRuntime.jsx("div",{children:"Sex"}),jsxRuntime.jsx("div",{children:"S\xE1b"})]}),jsxRuntime.jsxs("div",{className:"mt-2 grid grid-cols-7 gap-1",children:[Array.from({length:A}).map((S,L)=>jsxRuntime.jsx("div",{},`empty-${L}`)),Array.from({length:N}).map((S,L)=>{let V=new Date(ie,ge,L+1),U=b?Ga(V,b):false,te=Ga(V,Se),Pe=r||Wa(V,d,i);return jsxRuntime.jsx("button",{type:"button",disabled:Pe,onClick:()=>{be(V),I(false);},className:l("inline-flex h-9 w-full items-center justify-center rounded-md text-sm font-medium outline-none transition-colors hover:bg-secondary-background-soft-emphasis disabled:pointer-events-none disabled:opacity-50 max-sm:h-11 max-sm:text-base",te&&"ring-1 ring-gray-stroke-emphasis",U&&"bg-primary-background-fill text-primary-foreground-onfill hover:bg-primary-background-fill-emphasis"),"aria-pressed":U,children:L+1},V.toISOString())})]}),jsxRuntime.jsxs("div",{className:"mt-3 flex items-center justify-between gap-2",children:[jsxRuntime.jsx("button",{type:"button",className:"rounded-md px-2 py-1 text-xs font-medium text-gray-foreground hover:bg-secondary-background-soft-emphasis max-sm:px-3 max-sm:py-2 max-sm:text-sm",onClick:()=>{be(Se),I(false);},disabled:r||Wa(Se,d,i),children:"Hoje"}),jsxRuntime.jsx("button",{type:"button",className:"rounded-md px-2 py-1 text-xs font-medium text-gray-foreground hover:bg-secondary-background-soft-emphasis max-sm:px-3 max-sm:py-2 max-sm:text-sm",onClick:()=>be(null),disabled:r||!b,children:"Limpar"})]})]}),document.body)]}),R]})}function ku(_){var F=_,{value:e,defaultValue:a=null,onValueChange:o,placeholder:t="Selecionar per\xEDodo",disabled:r,min:d,max:i,format:u=ps,className:c,inputClassName:p,contentClassName:m,size:g="lg",yearRange:h=fs,showYearSelector:k=true,invalid:C=false,children:R}=F,B=n(F,["value","defaultValue","onValueChange","placeholder","disabled","min","max","format","className","inputClassName","contentClassName","size","yearRange","showYearSelector","invalid","children"]);let P=e!==void 0,[J,z]=D.useState(a),b=P?e:J,[v,I]=D.useState(false),[H,M]=D.useState(()=>{var L,V;return kt(vt((V=(L=b==null?void 0:b.start)!=null?L:b==null?void 0:b.end)!=null?V:new Date,h))}),O=D.useRef(null),ae=D.useRef(null),Te=D.useRef(null),Ie=D.useId(),[re,Me]=D.useState(null),be=D.useCallback(L=>{P||z(L),o==null||o(L);},[P,o]);D.useEffect(()=>{var L,V;v&&M(kt(vt((V=(L=b==null?void 0:b.start)!=null?L:b==null?void 0:b.end)!=null?V:new Date,h)));},[v,b,h]),D.useEffect(()=>{v||Me(null);},[v]),D.useEffect(()=>{if(!v)return;let L=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=L;}},[v]),D.useEffect(()=>{if(!re)return;let L=()=>I(false);return window.addEventListener("scroll",L,{passive:true,capture:true}),()=>window.removeEventListener("scroll",L,{capture:true})},[re]),D.useEffect(()=>{if(!v)return;let L=U=>{let te=O.current,Pe=Te.current;te&&U.target instanceof Node&&!te.contains(U.target)&&!(Pe!=null&&Pe.contains(U.target))&&I(false);},V=U=>{U.key==="Escape"&&I(false);};return window.addEventListener("pointerdown",L,{capture:true}),window.addEventListener("keydown",V),()=>{window.removeEventListener("pointerdown",L,{capture:true}),window.removeEventListener("keydown",V);}},[v]);let ra=330,sa=()=>{var L,V,U;if(v)I(false);else {let te=(U=(L=ae.current)==null?void 0:L.getBoundingClientRect())!=null?U:(V=O.current)==null?void 0:V.getBoundingClientRect();if(te){let We=window.innerHeight-te.bottom<ra,la=window.innerWidth,ya=window.matchMedia("(max-width: 639px)").matches?Math.min(512,la-16):Math.min(320,la),Sa=8,Pa=Sa,Ve=la-ya-Sa,wa=te.left;wa<Pa?wa=Pa:wa>Ve&&(wa=Ve),Me(f(s({position:"fixed"},We?{bottom:window.innerHeight-te.top+8}:{top:te.bottom+8}),{left:wa,width:ya,maxWidth:360}));}I(true);}},Se=ga(new Date),ie=H.getFullYear(),ge=H.getMonth(),x=new Date(ie,ge,1),N=new Date(ie,ge+1,0).getDate(),A=x.getDay(),w=Array.from({length:12},(L,V)=>({value:V,label:new Intl.DateTimeFormat("pt-BR",{month:"long"}).format(new Date(2e3,V,1))})),q=Array.from({length:h.end-h.start+1},(L,V)=>h.start+V),Q=L=>{M(new Date(ie,L,1));},$=L=>{M(new Date(L,ge,1));},se=L=>{r||Wa(L,d,i)||(!b||!b.start||b.end?be({start:L,end:null}):(ko(L,b.start)?be({start:L,end:b.start}):be({start:b.start,end:L}),I(false)));},S=b!=null&&b.start&&(b!=null&&b.end)?`${u(b.start)} - ${u(b.end)}`:b!=null&&b.start?u(b.start):"";return jsxRuntime.jsxs(yo.Provider,{value:D.useMemo(()=>({invalid:C}),[C]),children:[jsxRuntime.jsxs("div",{ref:O,className:l("relative inline-flex w-full",c),children:[jsxRuntime.jsxs("button",f(s(f(s({ref:ae,type:"button",disabled:r,"aria-haspopup":"dialog","aria-expanded":v,"aria-controls":v?Ie:void 0,"data-invalid":C||void 0,"data-slot":"date-picker-trigger","data-size":g,"data-state":v?"open":"closed"},!S&&{"data-placeholder":""}),{className:l(So({size:g}),v&&"border-gray-stroke-emphasis ring-[3px] ring-state-focus",S&&!C&&"border-gray-stroke-emphasis ring-[3px] ring-state-focus",S&&C&&"border-feedback-error-stroke ring-[3px] ring-state-error",p),onClick:sa}),B),{children:[jsxRuntime.jsx("span",{className:"truncate",children:S||t}),jsxRuntime.jsx(icons.Calendar,{size:g==="md"?gs:ms,strokeWidth:1.6,className:"shrink-0 !text-gray-foreground","aria-hidden":"true"})]})),v&&reactDom.createPortal(jsxRuntime.jsxs("div",{ref:Te,id:Ie,role:"dialog","aria-label":"Calend\xE1rio","data-slot":"date-picker-content",style:re!=null?re:void 0,className:l("z-50 overflow-hidden rounded-md border border-gray-stroke-muted bg-surface-elevated p-3 shadow-md",m),children:[jsxRuntime.jsxs("div",{className:"mb-3 flex items-center justify-center gap-2",children:[jsxRuntime.jsx("button",{type:"button",className:"inline-flex size-8 items-center justify-center rounded-md hover:bg-secondary-background-soft-emphasis max-sm:size-10",onClick:()=>M(L=>It(L,-1)),"aria-label":"M\xEAs anterior",children:jsxRuntime.jsx(icons.ChevronLeftMd,{size:18,strokeWidth:1.8})}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsxs("div",{className:"relative",children:[jsxRuntime.jsx("select",{value:ge,onChange:L=>Q(Number(L.target.value)),className:"min-w-[7rem] appearance-none rounded-md border border-gray-stroke-muted bg-surface-card py-1 pl-2 pr-7 text-sm font-medium capitalize text-gray-foreground outline-none hover:border-gray-stroke-emphasis focus:border-gray-stroke-emphasis focus:ring-2 focus:ring-state-focus max-sm:min-w-[8rem] max-sm:py-2 max-sm:text-base","aria-label":"Selecionar m\xEAs",children:w.map(L=>jsxRuntime.jsx("option",{value:L.value,className:"capitalize",children:L.label},L.value))}),jsxRuntime.jsx(icons.ChevronDown,{size:14,strokeWidth:1.8,className:"pointer-events-none absolute right-2 top-1/2 -translate-y-1/2 text-gray-foreground","aria-hidden":true})]}),k?jsxRuntime.jsxs("div",{className:"relative",children:[jsxRuntime.jsx("select",{value:ie,onChange:L=>$(Number(L.target.value)),className:"min-w-[5rem] appearance-none rounded-md border border-gray-stroke-muted bg-surface-card py-1 pl-2 pr-7 text-sm font-medium text-gray-foreground outline-none hover:border-gray-stroke-emphasis focus:border-gray-stroke-emphasis focus:ring-2 focus:ring-state-focus max-sm:min-w-[5.5rem] max-sm:py-2 max-sm:text-base","aria-label":"Selecionar ano",children:q.map(L=>jsxRuntime.jsx("option",{value:L,children:L},L))}),jsxRuntime.jsx(icons.ChevronDown,{size:14,strokeWidth:1.8,className:"pointer-events-none absolute right-2 top-1/2 -translate-y-1/2 text-gray-foreground","aria-hidden":true})]}):jsxRuntime.jsx("div",{className:"text-sm font-semibold text-gray-foreground",children:ie})]}),jsxRuntime.jsx("button",{type:"button",className:"inline-flex size-8 items-center justify-center rounded-md hover:bg-secondary-background-soft-emphasis max-sm:size-10",onClick:()=>M(L=>It(L,1)),"aria-label":"Pr\xF3ximo m\xEAs",children:jsxRuntime.jsx(icons.ChevronRightMd,{size:18,strokeWidth:1.8})})]}),jsxRuntime.jsxs("div",{className:"grid grid-cols-7 gap-1 text-center text-xs font-medium text-gray-foreground-muted max-sm:text-sm",children:[jsxRuntime.jsx("div",{children:"Dom"}),jsxRuntime.jsx("div",{children:"Seg"}),jsxRuntime.jsx("div",{children:"Ter"}),jsxRuntime.jsx("div",{children:"Qua"}),jsxRuntime.jsx("div",{children:"Qui"}),jsxRuntime.jsx("div",{children:"Sex"}),jsxRuntime.jsx("div",{children:"S\xE1b"})]}),jsxRuntime.jsxs("div",{className:"mt-2 grid grid-cols-7 gap-1",children:[Array.from({length:A}).map((L,V)=>jsxRuntime.jsx("div",{},`empty-${V}`)),Array.from({length:N}).map((L,V)=>{let U=new Date(ie,ge,V+1),te=(b==null?void 0:b.start)&&Ga(U,b.start),Pe=(b==null?void 0:b.end)&&Ga(U,b.end),We=(b==null?void 0:b.start)&&(b==null?void 0:b.end)&&cs(U,b.start)&&ko(U,b.end),la=Ga(U,Se),ka=r||Wa(U,d,i);return jsxRuntime.jsx("button",{type:"button",disabled:ka,onClick:()=>se(U),className:l("inline-flex h-9 w-full items-center justify-center rounded-md text-sm font-medium outline-none transition-colors hover:bg-secondary-background-soft-emphasis disabled:pointer-events-none disabled:opacity-50",la&&"ring-1 ring-gray-stroke-emphasis",We&&"bg-primary-background-soft",(te||Pe)&&"bg-primary-background-fill text-primary-foreground-onfill hover:bg-primary-background-fill-emphasis"),"aria-pressed":te||Pe||void 0,children:V+1},U.toISOString())})]}),jsxRuntime.jsxs("div",{className:"mt-3 flex items-center justify-between gap-2",children:[jsxRuntime.jsx("button",{type:"button",className:"rounded-md px-2 py-1 text-xs font-medium text-gray-foreground hover:bg-secondary-background-soft-emphasis",onClick:()=>{be({start:Se,end:Se}),I(false);},disabled:r||Wa(Se,d,i),children:"Hoje"}),jsxRuntime.jsx("button",{type:"button",className:"rounded-md px-2 py-1 text-xs font-medium text-gray-foreground hover:bg-secondary-background-soft-emphasis",onClick:()=>be(null),disabled:r||!b,children:"Limpar"})]})]}),document.body)]}),R]})}var Mu=24,Nu=20,Bu=1.6,hs=10,bs=8;function Fu(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({className:l("group relative flex flex-col gap-2",e),"data-slot":"input-wrapper"},a))}function Eu(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({className:l("relative",e),"data-slot":"input-field"},a))}function Hu(t){var r=t,{className:e,children:a}=r,o=n(r,["className","children"]);return jsxRuntime.jsx("label",f(s({className:l("pointer-events-none absolute start-3 top-0 z-10 origin-left -translate-y-1/2 bg-surface-card px-1 text-xs font-medium text-gray-foreground transition-all duration-200 ease-out","group-has-[[data-slot=input][disabled]]:bg-transparent","group-has-[[data-slot=input]:placeholder-shown:not(:focus)]:start-4 group-has-[[data-slot=input]:placeholder-shown:not(:focus)]:top-6 group-has-[[data-slot=input]:placeholder-shown:not(:focus)]:bg-transparent group-has-[[data-slot=input]:placeholder-shown:not(:focus)]:px-0 group-has-[[data-slot=input]:placeholder-shown:not(:focus)]:text-md group-has-[[data-slot=input]:placeholder-shown:not(:focus)]:font-normal","group-has-[[data-slot=input][data-empty]:not(:focus)]:start-4 group-has-[[data-slot=input][data-empty]:not(:focus)]:top-6 group-has-[[data-slot=input][data-empty]:not(:focus)]:bg-transparent group-has-[[data-slot=input][data-empty]:not(:focus)]:px-0 group-has-[[data-slot=input][data-empty]:not(:focus)]:text-md group-has-[[data-slot=input][data-empty]:not(:focus)]:font-normal","group-has-[[data-slot=input][data-size=md]]:group-has-[[data-slot=input]:placeholder-shown:not(:focus)]:top-5 group-has-[[data-slot=input][data-size=md]]:group-has-[[data-slot=input]:placeholder-shown:not(:focus)]:!text-sm","group-has-[[data-slot=input][data-size=md]]:group-has-[[data-slot=input][data-empty]:not(:focus)]:top-5 group-has-[[data-slot=input][data-empty]:not(:focus)]:!text-sm","group-has-[[data-slot=input][aria-invalid=true]]:text-feedback-error-foreground","group-has-[[data-slot=input-start-icon]]:group-has-[[data-slot=input]:placeholder-shown:not(:focus)]:start-12","group-has-[[data-slot=input-start-icon]]:group-has-[[data-slot=input][data-empty]:not(:focus)]:start-12",e),"data-slot":"input-label"},o),{children:a}))}function Ou(t){var r=t,{className:e,invalid:a=false}=r,o=n(r,["className","invalid"]);return jsxRuntime.jsx("span",s({className:l("-mt-1 text-xs",a?"text-feedback-error-foreground":"text-gray-foreground",e),"data-slot":"input-text"},o))}function Po(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({className:l("group/adornment relative flex w-full",e),"data-slot":"input-adornment"},a))}function wt(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("span",s({className:l("pointer-events-none absolute start-4 top-1/2 z-10 flex -translate-y-1/2 items-center pr-3 text-gray-foreground",e),"data-slot":"input-start-icon"},a))}function wo(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("span",s({className:l("absolute end-4 top-1/2 z-10 flex -translate-y-1/2 items-center text-gray-foreground",e),"data-slot":"input-end-icon"},a))}var St=classVarianceAuthority.cva(["shadow-xs w-full min-w-0 rounded-md border-2 border-gray-stroke-muted bg-surface-card px-4 py-3 text-gray-foreground outline-none transition-[color,box-shadow] selection:bg-secondary-background-soft-emphasis selection:text-gray-foreground placeholder:text-gray-foreground-emphasis hover:border-gray-stroke-emphasis hover:ring-[3px] hover:ring-state-focus disabled:cursor-default disabled:bg-gray-background-soft-muted disabled:placeholder:text-gray-foreground-muted disabled:hover:border-gray-stroke-muted disabled:hover:ring-0","focus-visible:border-gray-stroke-emphasis focus-visible:ring-[3px] focus-visible:ring-state-focus","aria-[invalid]:border-feedback-error-stroke aria-[invalid]:hover:ring-state-error aria-[invalid]:focus-visible:ring-state-error","aria-[invalid]:[&:not(:placeholder-shown):not(:disabled)]:border-feedback-error-stroke aria-[invalid]:[&:not(:placeholder-shown):not(:disabled)]:ring-[3px] aria-[invalid]:[&:not(:placeholder-shown):not(:disabled)]:ring-state-error","group-has-[[data-slot=input-label]]:py-3 group-has-[[data-slot=input-label]]:placeholder:text-transparent","[&:not(:placeholder-shown):not(:disabled)]:border-gray-stroke-emphasis [&:not(:placeholder-shown):not(:disabled)]:ring-[3px] [&:not(:placeholder-shown):not(:disabled)]:ring-state-focus","group-has-[[data-slot=input-end-icon]]/adornment:pr-10"],{variants:{size:{lg:["h-12 max-h-12 text-md","group-has-[[data-slot=input-label]]:h-14","group-has-[[data-slot=input-start-icon]]/adornment:pl-[48px]"],md:["h-10 max-h-10 text-sm","group-has-[[data-slot=input-label]]:h-11","group-has-[[data-slot=input-start-icon]]/adornment:pl-[44px]"]}},defaultVariants:{size:"lg"}}),Vu={email:jsxRuntime.jsx(icons.Mail,{})},qu={};function xa(e,a="lg"){return D.cloneElement(e,{size:a==="md"?Nu:Mu,strokeWidth:Bu})}function Ls(d){var i=d,{className:e,invalid:a=false,size:o="lg",disabled:t}=i,r=n(i,["className","invalid","size","disabled"]);let[u,c]=D.useState(false);return jsxRuntime.jsxs(Po,{children:[jsxRuntime.jsx(wt,{children:xa(jsxRuntime.jsx(icons.Lock,{}),o)}),jsxRuntime.jsx("input",s({type:u?"text":"password","data-slot":"input","data-size":o,disabled:t,className:l(St({size:o,className:e})),"aria-invalid":a||r["aria-invalid"]?true:void 0},r)),jsxRuntime.jsx(wo,{children:jsxRuntime.jsx("button",{type:"button",tabIndex:-1,disabled:t,onClick:()=>c(p=>!p),className:l("text-gray-foreground transition-colors hover:text-gray-foreground-emphasis disabled:cursor-default disabled:opacity-50"),"data-invalid":a,"aria-label":u?"Hide password":"Show password",children:xa(u?jsxRuntime.jsx(icons.Hide,{}):jsxRuntime.jsx(icons.Show,{}),o)})})]})}function vs(m){var g=m,{className:e,invalid:a=false,size:o="lg",iconLeft:t,min:r,value:d,defaultValue:i,onChange:u,disabled:c}=g,p=n(g,["className","invalid","size","iconLeft","min","value","defaultValue","onChange","disabled"]);let h=d!==void 0,[k,C]=D.useState(()=>i!=null?i:""),R=D.useRef(null),B=h?d===""?"":String(d):k,_=B===""?NaN:Number(B),F=r!==void 0&&Number(r)<0,P=D.useCallback(I=>{let H=r!==void 0&&Number(r)<0,M=I.replace(/[^\d.-]/g,"");H?M=(M.startsWith("-")?"-":"")+M.replace(/-/g,""):M=M.replace(/-/g,"");let O=M.indexOf(".");return O===-1?M:M.slice(0,O+1)+M.slice(O+1).replace(/\./g,"")},[r]),J=D.useCallback(I=>{let H=P(I.target.value);if(H===I.target.value)h?u==null||u(I):(C(H),u==null||u(f(s({},I),{target:f(s({},I.target),{value:H})})));else {let M=f(s({},I),{target:f(s({},I.target),{value:H})});h||C(H),u==null||u(M);}},[h,u,P]),z=r!==void 0?Number(r):void 0,b=D.useCallback(I=>{let M=(Number.isNaN(_)?z!=null?z:0:_)+I;return z!==void 0&&M<z?z:M},[_,z]),v=D.useCallback(I=>{let H=b(I),M=String(H),O=R.current,Te={type:"change",target:O?{value:M,name:O.name,id:O.id,form:O.form,type:O.type}:{value:M},currentTarget:O,bubbles:true,cancelable:false,nativeEvent:{}};h||C(M),u==null||u(Te);},[b,h,u]);return jsxRuntime.jsxs(Po,{children:[t!=null&&jsxRuntime.jsx(wt,{children:xa(t,o)}),jsxRuntime.jsx("input",s({ref:R,type:"text",inputMode:"decimal",pattern:F?"-?[0-9]*":"[0-9]*","data-slot":"input","data-size":o,"data-empty":B===""?"":void 0,min:r,value:B,onChange:J,disabled:c,className:l(St({size:o}),"pr-12","[appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none",e),"aria-invalid":a||p["aria-invalid"]?true:void 0},p)),jsxRuntime.jsxs("div",{className:"absolute end-0 top-0 flex h-full flex-col items-center justify-center gap-0.5 px-4",children:[jsxRuntime.jsx("button",{type:"button",tabIndex:-1,disabled:c,onClick:()=>v(1),className:"flex items-center justify-center rounded-full !p-0.5 px-2 text-gray-foreground transition-colors disabled:cursor-default disabled:opacity-50 disabled:hover:bg-transparent","aria-label":"Increase value",children:jsxRuntime.jsx(icons.ChevronDown,{className:"rotate-180",size:o==="md"?bs:hs,strokeWidth:3})}),jsxRuntime.jsx("button",{type:"button",tabIndex:-1,disabled:c,onClick:()=>v(-1),className:"flex items-center justify-center rounded-full !p-0.5 px-2 text-gray-foreground transition-colors disabled:cursor-default disabled:opacity-50 disabled:hover:bg-transparent","aria-label":"Decrease value",children:jsxRuntime.jsx(icons.ChevronDown,{size:o==="md"?bs:hs,strokeWidth:3})})]})]})}function To(u){var c=u,{className:e,type:a="text",size:o="lg",invalid:t=false,iconLeft:r,iconRight:d}=c,i=n(c,["className","type","size","invalid","iconLeft","iconRight"]);if(a==="numeric")return jsxRuntime.jsx(vs,s({className:e,size:o,invalid:t,iconLeft:r},i));if(a==="password")return jsxRuntime.jsx(Ls,s({className:e,size:o,invalid:t},i));let p=r!=null?r:Vu[a],m=(a==="text"||a==="email")&&t,g=m?jsxRuntime.jsx(icons.TriangleWarning,{}):d!=null?d:qu[a];return p!=null||g!=null?jsxRuntime.jsxs("div",{className:"group/adornment relative flex w-full","data-slot":"input-adornment",children:[p!=null&&jsxRuntime.jsx(wt,{children:xa(p,o)}),jsxRuntime.jsx("input",s({type:"text","data-slot":"input","data-size":o,className:l(St({size:o,className:e})),"aria-invalid":t||i["aria-invalid"]?true:void 0},i)),g!=null&&jsxRuntime.jsx(wo,{className:m?"text-feedback-error-foreground":void 0,children:xa(g,o)})]}):jsxRuntime.jsx("input",s({type:"text","data-slot":"input","data-size":o,className:l(St({size:o,className:e})),"aria-invalid":t||i["aria-invalid"]?true:void 0},i))}var Is=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 Uu(d){var i=d,{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:l(Is({size:o,variant:a}),e,t&&"flex flex-col items-start justify-center gap-4 whitespace-normal rounded-lg border border-gray-stroke-muted p-4 font-normal")},r))}function Wu({width:e=171,height:a=36,className:o,svgClassName:t}){return jsxRuntime.jsxs("svg",{className:l("dark:brightness-0 dark:invert",o),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 171 36",width:e,height:a,children:[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 Xu({width:e=60,height:a=67,className:o,svgClassName:t}){return jsxRuntime.jsx("svg",{className:l("dark:brightness-0 dark:invert",o),width:e,height:a,viewBox:"0 0 60 67",fill:"none",xmlns:"http://www.w3.org/2000/svg",children: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 ha={tablet:"600px",mobile:"320px"};function ys(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("nav",s({role:"navigation","aria-label":"pagination",className:l("flex w-full items-center justify-between",e)},a))}function Ss(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("ul",s({className:l("flex flex-row items-center gap-2",e)},a))}function Ao(r){var d=r,{count:e,label:a="itens",className:o}=d,t=n(d,["count","label","className"]);return jsxRuntime.jsx("p",f(s({className:l("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 At(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("li",s({className:l("",e)},a))}function Ps(p){var m=p,{className:e,isActive:a,iconLeft:o,iconRight:t,size:r="md",variant:d="regular",activeVariant:i,inactiveVariant:u}=m,c=n(m,["className","isActive","iconLeft","iconRight","size","variant","activeVariant","inactiveVariant"]);return jsxRuntime.jsx(Y,f(s({"aria-current":a?"page":void 0,variant:a&&i?i:!a&&u?u:a?d:`${d}-soft`,className:l("",e),size:r,iconLeft:o,iconRight:t},c),{children:c.children}))}function ws(r){var d=r,{className:e,size:a="md",variant:o="regular-basic"}=d,t=n(d,["className","size","variant"]);return jsxRuntime.jsx(Y,f(s({"aria-label":"Go to previous page",className:l("",e),iconLeft:jsxRuntime.jsx(icons.ChevronLeftDuo,{}),variant:o,size:a},t),{children:t.children||"Anterior"}))}function Ts(r){var d=r,{className:e,size:a="md",variant:o="regular-basic"}=d,t=n(d,["className","size","variant"]);return jsxRuntime.jsx(Y,f(s({"aria-label":"Go to next page",className:l("",e),variant:o,iconRight:jsxRuntime.jsx(icons.ChevronRightDuo,{}),size:a},t),{children:t.children||"Pr\xF3ximo"}))}function As(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:l("flex items-center justify-center",{sm:"h-8 w-8",md:"h-9 w-9",lg:"h-10 w-10"}[a],e)},o),{children:jsxRuntime.jsx(icons.MoreHorizontal,{className:"h-4 w-4"})}))}function Ds(e,a,o=2){let t=[];if(a<=o+2)for(let r=1;r<=a;r++)t.push(r);else {let r=Math.floor(o/2);if(e<=r+1){for(let d=1;d<=o+1;d++)t.push(d);o+1<a&&t.push(-1,a);}else if(e>=a-r){t.push(1),a-o>1&&t.push(-1);for(let d=a-o;d<=a;d++)t.push(d);}else {t.push(1,-1);for(let d=e-r;d<=e+r;d++)t.push(d);t.push(-1,a);}}return t}function Yu({currentPage:e,totalPages:a,maxVisibleItems:o,onPageChange:t,itemsPerPage:r,totalItems:d,className:i,responsive:u=true,size:c="md"}){let[p,m]=D.useState(()=>typeof window=="undefined"?false:window.innerWidth<=parseInt(ha.tablet));D.useEffect(()=>{if(typeof window=="undefined"||!u)return;let C=parseInt(ha.tablet),R=()=>{m(window.innerWidth<=C);};return window.addEventListener("resize",R),R(),()=>window.removeEventListener("resize",R)},[u]);let g=typeof o=="number"?o:u&&p?0:2,h=u&&p,k=()=>Ds(e,a,g);return jsxRuntime.jsxs(ys,{className:l("",i),children:[r!==void 0&&!h?jsxRuntime.jsx(Ao,{count:r,label:"itens"}):jsxRuntime.jsx("div",{}),jsxRuntime.jsxs(Ss,{children:[jsxRuntime.jsx(At,{children:jsxRuntime.jsx(ws,{onClick:()=>t(Math.max(1,e-1)),disabled:e===1,size:c})}),k().map((C,R)=>jsxRuntime.jsx(At,{children:C===-1?jsxRuntime.jsx(As,{size:c}):jsxRuntime.jsx(Ps,{onClick:()=>t(C),isActive:C===e,size:c,children:C})},R)),jsxRuntime.jsx(At,{children:jsxRuntime.jsx(Ts,{onClick:()=>t(Math.min(a,e+1)),disabled:e===a,size:c})})]}),d!==void 0&&!h?jsxRuntime.jsx(Ao,{count:d,label:"total"}):jsxRuntime.jsx("div",{})]})}var tf={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"},Rs=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 of(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.RadioGroup.Root,s({"data-slot":"radio-group",className:l("grid gap-3",e)},a))}function rf(r){var d=r,{className:e,size:a,variant:o}=d,t=n(d,["className","size","variant"]);return jsxRuntime.jsx(radixUi.RadioGroup.Item,f(s({"data-slot":"radio-group-item",className:l("shadow-xs group peer aspect-square size-4 shrink-0 rounded-full outline-none transition-[color,box-shadow] disabled:cursor-not-allowed",Rs({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:l("absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 fill-surface-card",tf[a||"md"])})})}))}function Ca(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 Ye(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.Tooltip.Root,s({"data-slot":"tooltip"},e))}function ea(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.Tooltip.Trigger,s({"data-slot":"tooltip-trigger"},e))}function aa(r){var d=r,{className:e,sideOffset:a=0,children:o}=d,t=n(d,["className","sideOffset","children"]);return jsxRuntime.jsx(radixUi.Tooltip.Portal,{children:jsxRuntime.jsxs(radixUi.Tooltip.Content,f(s({"data-slot":"tooltip-content",sideOffset:a,className:l("origin-(--radix-tooltip-content-transform-origin) z-50 w-fit text-balance rounded-md bg-surface-elevated px-3 py-2 text-sm font-medium text-gray-foreground-emphasis animate-in fade-in-0 zoom-in-95 [filter:drop-shadow(0_0_1px_var(--color-drop-shadow-layer-a))_drop-shadow(0_2px_2px_var(--color-drop-shadow-layer-b))] data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e)},t),{children:[o,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 pf(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:l("w-full border-collapse text-left",a)},o),{children:e}))})}function mf(t){var r=t,{children:e,className:a}=r,o=n(r,["children","className"]);return jsxRuntime.jsx("thead",f(s({className:l("h-11 border-b border-gray-stroke-muted bg-surface-card",a)},o),{children:jsxRuntime.jsx("tr",{children:e})}))}function gf(d){var i=d,{children:e,className:a,tooltip:o,highlight:t}=i,r=n(i,["children","className","tooltip","highlight"]);return jsxRuntime.jsx("th",f(s({className:l("text-ellipsis whitespace-nowrap px-5 text-sm font-semibold text-gray-foreground first:pr-0",a)},r),{children:jsxRuntime.jsxs("div",{className:"flex items-center gap-1.5",children:[jsxRuntime.jsx("span",{className:l(t&&"flex size-7 shrink-0 items-center justify-center rounded-full bg-primary-foreground-onfill"),children:e}),o&&jsxRuntime.jsx(Ca,{children:jsxRuntime.jsxs(Ye,{children:[jsxRuntime.jsx(ea,{asChild:true,children:jsxRuntime.jsx(icons.Info,{className:"size-4"})}),jsxRuntime.jsx(aa,{children:o})]})})]})}))}function xf(t){var r=t,{children:e,className:a}=r,o=n(r,["children","className"]);return jsxRuntime.jsx("tbody",f(s({className:l("bg-surface-card",a)},o),{children:e}))}function hf(t){var r=t,{children:e,className:a}=r,o=n(r,["children","className"]);return jsxRuntime.jsx("tr",f(s({className:l("w-full border-t border-solid border-gray-stroke-muted first:border-t-0",a)},o),{children:e}))}function bf(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:l("flex size-7 shrink-0 items-center justify-center overflow-hidden whitespace-nowrap rounded-full bg-primary-foreground text-sm font-semibold text-primary-foreground-onfill",a)},o),{children:e}))})}function Cf(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:l("flex items-center gap-5",a),children:jsxRuntime.jsx("div",{className:"flex shrink-0 items-center gap-5 pr-8",children:e})})}))}function Lf(t){var r=t,{children:e,className:a}=r,o=n(r,["children","className"]);return jsxRuntime.jsx("div",f(s({className:l("flex shrink-0 flex-col items-start whitespace-nowrap text-gray-foreground",a)},o),{children:e}))}function vf(t){var r=t,{children:e,className:a}=r,o=n(r,["children","className"]);return jsxRuntime.jsx("span",f(s({className:l("shrink-0 overflow-hidden text-ellipsis font-sans text-xxs font-medium leading-xxs",a)},o),{children:e}))}function If(t){var r=t,{children:e,className:a}=r,o=n(r,["children","className"]);return jsxRuntime.jsx("span",f(s({className:l("shrink-0 overflow-hidden text-ellipsis font-sans text-sm font-semibold leading-5",a)},o),{children:e}))}function kf(t){var r=t,{children:e,className:a}=r,o=n(r,["children","className"]);return jsxRuntime.jsx(fe,f(s({className:l("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 yf(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:l("flex flex-col items-start gap-2",a),children:e})}))}function Sf(t){var r=t,{children:e,className:a}=r,o=n(r,["children","className"]);return jsxRuntime.jsx("p",f(s({className:l("relative shrink-0 overflow-hidden text-ellipsis whitespace-nowrap text-[10px] font-medium leading-[12px] text-gray-foreground",a)},o),{children:e}))}function Pf(t){var r=t,{children:e,className:a}=r,o=n(r,["children","className"]);return jsxRuntime.jsx("div",f(s({className:l("avatar-group flex shrink-0 items-center gap-2",a)},o),{children:e}))}function wf(i){var u=i,{src:e,alt:a,fallback:o="?",className:t,tooltip:r}=u,d=n(u,["src","alt","fallback","className","tooltip"]);let c=jsxRuntime.jsxs(Fa,f(s({size:"sm",className:l("ring-2 ring-background",t)},d),{children:[jsxRuntime.jsx(Ea,{src:e,alt:a}),jsxRuntime.jsx(Ha,{children:o})]}));return r?jsxRuntime.jsx(Ca,{children:jsxRuntime.jsxs(Ye,{children:[jsxRuntime.jsx(ea,{asChild:true,children:c}),jsxRuntime.jsx(aa,{children:r})]})}):c}function Tf(r){var d=r,{children:e,className:a,icon:o}=d,t=n(d,["children","className","icon"]);return jsxRuntime.jsx("td",f(s({className:"px-5 py-4 align-middle"},t),{children:jsxRuntime.jsx(fe,{variant:"regular-soft",className:a,icon:o,children:e})}))}function Af({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:l("relative h-0.5 w-full overflow-hidden rounded-pill bg-gray-100",e),children:jsxRuntime.jsx("div",{className:l("absolute inset-y-0 left-0 rounded-pill transition-all duration-300",o(a)),style:{width:`${a}%`}})})}function Df(r){var d=r,{questions:e,answered:a,className:o}=d,t=n(d,["questions","answered","className"]);let i=a>0?a/e*100:0;return a===0?jsxRuntime.jsx("td",f(s({className:"px-5 py-4 align-middle"},t),{children:jsxRuntime.jsx("div",{className:l("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:l("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(Af,{percentage:i})]})}))}var Rf={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:({progress: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:({progress: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 Mf(e,a,o){return [[e,"notStarted"],[a,"minNotReached"],[o>=80,"dominated"],[true,"notDominated"]].find(([r])=>r)[1]}function Nf(d){var i=d,{answered:e,correct:a,minQuestions:o,className:t}=i,r=n(i,["answered","correct","minQuestions","className"]);let u=e>0?a/e*100:0,c=e===0,p=a<o,m=o-a,g=Mf(c,p,u),{icon:h,bgColor:k,iconColor:C,titleClassName:R,title:B,subtitle:_}=Rf[g],F={progress:u,correct:a,answered:e,remainingQuestions:m};return jsxRuntime.jsx("td",f(s({className:"px-5 py-4 align-middle"},r),{children:jsxRuntime.jsx("div",{className:l("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:l("flex size-4 items-center justify-center rounded-full",k),children:jsxRuntime.jsx(h,{className:l("size-3",C),strokeWidth:2.6})}),jsxRuntime.jsxs("div",{className:"flex flex-col items-start justify-center",children:[jsxRuntime.jsx("span",{className:l("whitespace-nowrap",R),children:B(F)}),jsxRuntime.jsx("span",{className:"whitespace-nowrap text-xxs font-semibold text-gray-foreground-muted",children:_(F)})]})]})})}))}function Bf(r){var d=r,{children:e,className:a,onClick:o}=d,t=n(d,["children","className","onClick"]);return jsxRuntime.jsx("td",f(s({className:"px-5 py-4 align-middle"},t),{children:jsxRuntime.jsx(Y,{variant:"regular-soft",size:"sm",iconRight:jsxRuntime.jsx(icons.ArrowRightMd,{className:"size-4"}),onClick:o,className:a,children:e})}))}var Fs=classVarianceAuthority.cva("transition-all duration-150",{variants:{size:{sm:"size-6",md:"size-7",lg:"size-8"}},defaultVariants:{size:"md"}}),Ef=classVarianceAuthority.cva("",{variants:{size:{sm:"size-7",md:"size-8",lg:"size-9"}},defaultVariants:{size:"md"}}),Es=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}}),Hs=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 Hf({state:e,className:a}){let o=ke(),t=D.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 Of(e,a){let o=e+1;return a>=o?"full":a>=o-.5?"half":"empty"}function Vf({value:e,onChange:a,maxStars:o=5,readOnly:t=false,labels:r,size:d="md",className:i,classNameContainer:u,classNameLabels:c}){let[p,m]=D.useState(e!=null?e:0),[g,h]=D.useState(null),k=e!==void 0,C=k?e:p,R=F=>{if(t)return;let P=F+1;k||m(P),a==null||a(P);},B=F=>{t||h(F);},_=()=>{t||h(null);};return jsxRuntime.jsxs("div",{"data-slot":"rating",className:l("inline-flex w-fit flex-col gap-2",i),children:[jsxRuntime.jsx("div",{className:l("inline-flex flex-row gap-1",u),onMouseLeave:_,children:Array.from({length:o},(F,P)=>{let J=g!==null,z=J&&P<=g,b=g===P,v=J?z?"full":"empty":Of(P,C);return jsxRuntime.jsx("button",{type:"button",disabled:t,onClick:()=>R(P),onMouseEnter:()=>B(P),className:Es({size:d,readOnly:t}),"aria-label":`Rate ${P+1} out of ${o}`,children:jsxRuntime.jsx(Hf,{state:v,className:b&&!t?Ef({size:d}):Fs({size:d})})},P)})}),r&&r.length===2&&jsxRuntime.jsxs("div",{className:l(Hs({size:d}),c),children:[jsxRuntime.jsx("span",{className:"truncate",children:r[0]}),jsxRuntime.jsx("span",{className:"truncate text-right",children:r[1]})]})]})}function Ro(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:l("relative",e)},o),{children:[jsxRuntime.jsx(radixUi.ScrollArea.Viewport,{"data-slot":"scroll-area-viewport",className:"size-full rounded-[inherit]",children:a}),jsxRuntime.jsx(Za,{}),jsxRuntime.jsx(Za,{orientation:"horizontal"}),jsxRuntime.jsx(radixUi.ScrollArea.Corner,{})]}))}function Za(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:l("flex touch-none select-none",a==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-px",a==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-px",e)},o),{children:jsxRuntime.jsx(radixUi.ScrollArea.ScrollAreaThumb,{"data-slot":"scroll-area-thumb",className:"relative flex-1 rounded-full bg-gray-stroke-muted"})}))}var Bt=D.createContext({invalid:false,size:"lg"});function Kf(t){var r=t,{invalid:e=false,size:a="lg"}=r,o=n(r,["invalid","size"]);return jsxRuntime.jsx(Bt.Provider,{value:D.useMemo(()=>({invalid:e,size:a}),[e,a]),children:jsxRuntime.jsx(radixUi.Select.Root,s({"data-slot":"select"},o))})}function Zf(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({className:l("group relative flex flex-col gap-2",e),"data-slot":"select-wrapper"},a))}function jf(t){var r=t,{className:e,children:a}=r,o=n(r,["className","children"]);return jsxRuntime.jsx("label",f(s({className:l("pointer-events-none absolute start-3 top-0 origin-left -translate-y-1/2 bg-surface-card px-1 text-xs font-medium text-gray-foreground transition-all duration-200 ease-out","group-has-[[data-slot=select-trigger][data-placeholder]:not([data-state=open])]:start-4 group-has-[[data-slot=select-trigger][data-placeholder]:not([data-state=open])]:top-6 group-has-[[data-slot=select-trigger][data-placeholder]:not([data-state=open])]:bg-transparent group-has-[[data-slot=select-trigger][data-placeholder]:not([data-state=open])]:px-0 group-has-[[data-slot=select-trigger][data-placeholder]:not([data-state=open])]:text-md group-has-[[data-slot=select-trigger][data-placeholder]:not([data-state=open])]:font-normal group-has-[[data-slot=select-trigger][data-placeholder]:not([data-state=open])]:text-gray-foreground","group-has-[[data-slot=select-trigger][data-size=md]]:group-has-[[data-slot=select-trigger][data-placeholder]:not([data-state=open])]:top-5 group-has-[[data-slot=select-trigger][data-size=md]]:group-has-[[data-slot=select-trigger][data-placeholder]:not([data-state=open])]:!text-sm",e),"data-slot":"select-label"},o),{children:a}))}function Qf(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.Select.Group,s({"data-slot":"select-group"},e))}function $f(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.Select.Value,s({"data-slot":"select-value"},e))}var Jf=classVarianceAuthority.cva(["shadow-xs flex w-full items-center justify-between gap-2 rounded-md border-2 border-gray-stroke-muted bg-surface-card px-4 py-3 text-left text-gray-foreground outline-none transition-[color,box-shadow] hover:border-gray-stroke-emphasis hover:ring-[3px] hover:ring-state-focus disabled:cursor-default disabled:bg-gray-background-soft-muted disabled:hover:border-gray-stroke-muted disabled:hover:ring-0 aria-[invalid]:border-feedback-error-stroke aria-[invalid]:hover:ring-[3px] aria-[invalid]:hover:ring-state-error data-[placeholder]:text-gray-foreground-emphasis *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 disabled:data-[placeholder]:text-gray-foreground-muted [&>span]:line-clamp-1 [&_svg]:pointer-events-none [&_svg]:shrink-0"],{variants:{size:{lg:["h-12 max-h-12 text-md [&_svg]:size-6","group-has-[[data-slot=select-label]]:h-14"],md:["h-10 max-h-10 text-sm [&_svg]:size-5","group-has-[[data-slot=select-label]]:h-11"]}},defaultVariants:{size:"lg"}}),Yf=classVarianceAuthority.cva("data-disabled:pointer-events-none relative flex w-full cursor-default select-none items-center rounded px-2 font-medium text-gray-foreground outline-none hover:cursor-pointer hover:bg-secondary-background-soft-emphasis gap-3",{variants:{size:{lg:"py-2 text-sm [&_svg]:size-5",md:"py-2 text-sm [&_svg]:size-5"}},defaultVariants:{size:"lg"}});function ec(t){var r=t,{className:e,children:a}=r,o=n(r,["className","children"]);let{invalid:d,size:i}=D.useContext(Bt);return jsxRuntime.jsxs(radixUi.Select.Trigger,f(s({className:l(Jf({size:i}),!d&&"[&:not([data-placeholder]):not(:disabled)]:border-gray-stroke-emphasis","group-has-[[data-slot=select-label]]:py-3 group-has-[[data-slot=select-label]]:data-[placeholder]:text-transparent",e),"data-slot":"select-trigger","data-size":i,"aria-invalid":d?"true":void 0},o),{children:[a,jsxRuntime.jsx(radixUi.Select.Icon,{asChild:true,children:jsxRuntime.jsx(icons.ChevronDown,{className:l("flex-shrink-0 text-gray-foreground"),strokeWidth:1.6})})]}))}function ac(r){var d=r,{className:e,children:a,position:o="popper"}=d,t=n(d,["className","children","position"]);return jsxRuntime.jsx(radixUi.Select.Portal,{children:jsxRuntime.jsxs(radixUi.Select.Content,f(s({className:l("relative z-50 max-h-[min(24rem,var(--radix-select-content-available-height))] min-w-32 overflow-hidden rounded-md border border-gray-stroke-muted bg-surface-elevated text-gray-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 [&_[role=group]]:py-1",o==="popper"&&"w-full min-w-[var(--radix-select-trigger-width)] data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),"data-slot":"select-content",position:o},t),{children:[jsxRuntime.jsx(qs,{}),jsxRuntime.jsx(radixUi.Select.Viewport,{className:l("p-2",o==="popper"&&"h-[var(--radix-select-trigger-height)]"),children:a}),jsxRuntime.jsx(zs,{})]}))})}function tc(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.Select.Label,s({className:l("px-2 py-2 text-xs font-medium text-gray-foreground-muted",e),"data-slot":"select-header"},a))}function oc(r){var d=r,{className:e,children:a,icon:o}=d,t=n(d,["className","children","icon"]);let{size:i}=D.useContext(Bt);return jsxRuntime.jsxs(radixUi.Select.Item,f(s({className:l(Yf({size:i}),e),"data-slot":"select-item"},t),{children:[o&&jsxRuntime.jsx("span",{className:"flex shrink-0 items-center justify-center text-gray-foreground",children:D.isValidElement(o)?D.cloneElement(o,{strokeWidth:1.6}):o}),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,{strokeWidth:1.6,className:"text-secondary-foreground"})})})]}))}function rc(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.Select.Separator,s({className:l("-mx-1 my-1 h-px bg-gray-stroke-muted",e),"data-slot":"select-separator"},a))}function qs(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.Select.ScrollUpButton,f(s({className:l("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 zs(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.Select.ScrollDownButton,f(s({className:l("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 sc(o){var t=o,{className:e}=t,a=n(t,["className"]);let{invalid:r}=D.useContext(Bt);return jsxRuntime.jsx("span",s({className:l("-mt-1 text-xs",r?"text-feedback-error-foreground":"text-gray-foreground",e),"data-slot":"select-text"},a))}var _s=D.createContext(null);function uc(r){var d=r,{className:e,size:a="md",children:o}=d,t=n(d,["className","size","children"]);return jsxRuntime.jsx(_s.Provider,{value:D.useMemo(()=>({size:a}),[a]),children:jsxRuntime.jsx(radixUi.Tabs.Root,f(s({"data-slot":"tabs",className:l("flex flex-col gap-2",e)},t),{children:o}))})}function fc(t){var r=t,{className:e,containerClassName:a}=r,o=n(r,["className","containerClassName"]);return jsxRuntime.jsxs(Ro,{className:l("[&_[data-slot=scroll-area-scrollbar][data-orientation=horizontal]]:h-1",a),children:[jsxRuntime.jsx(radixUi.Tabs.List,s({"data-slot":"tabs-list",className:l("inline-flex w-fit items-center justify-center rounded-md bg-gray-background-soft p-0.5",e)},o)),jsxRuntime.jsx(Za,{orientation:"horizontal"})]})}var Us=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 cc(i){var u=i,{className:e,icon:a,badge:o,badgeVariant:t,children:r}=u,d=n(u,["className","icon","badge","badgeVariant","children"]);var g;let c=h=>h!=null&&h!==0&&h!==""&&h!=="0"&&!d.disabled,p=D.useContext(_s),m=(g=p==null?void 0:p.size)!=null?g:"md";return jsxRuntime.jsxs(radixUi.Tabs.Trigger,f(s({"data-slot":"tabs-trigger",className:l(Us({size:m,className:e}))},d),{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(Be,{size:m,variant:t,children:String(o)})]}))}function pc(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.Tabs.Content,s({"data-slot":"tabs-content",className:l("flex-1 outline-none",e)},a))}var Gs=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),mc=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,o,t)=>t?t.toUpperCase():o.toLowerCase()),Fo=e=>{let a=mc(e);return a.charAt(0).toUpperCase()+a.slice(1)},Et=(...e)=>e.filter((a,o,t)=>!!a&&a.trim()!==""&&t.indexOf(a)===o).join(" ").trim(),Ws=e=>{for(let a in e)if(a.startsWith("aria-")||a==="role"||a==="title")return true};var Xs={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 Zs=D.forwardRef((p,c)=>{var m=p,{color:e="currentColor",size:a=24,strokeWidth:o=2,absoluteStrokeWidth:t,className:r="",children:d,iconNode:i}=m,u=n(m,["color","size","strokeWidth","absoluteStrokeWidth","className","children","iconNode"]);return D.createElement("svg",s(s(f(s({ref:c},Xs),{width:a,height:a,stroke:e,strokeWidth:t?Number(o)*24/Number(a):o,className:Et("lucide",r)}),!d&&!Ws(u)&&{"aria-hidden":"true"}),u),[...i.map(([g,h])=>D.createElement(g,h)),...Array.isArray(d)?d:[d]])});var js=(e,a)=>{let o=D.forwardRef((i,d)=>{var u=i,{className:t}=u,r=n(u,["className"]);return D.createElement(Zs,s({ref:d,iconNode:a,className:Et(`lucide-${Gs(Fo(e))}`,`lucide-${e}`,t)},r))});return o.displayName=Fo(e),o};var bc=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],ja=js("x",bc);function Ho(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.Dialog.Root,s({"data-slot":"sheet"},e))}function Cc(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.Dialog.Trigger,s({"data-slot":"sheet-trigger"},e))}function Lc(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.Dialog.Close,s({"data-slot":"sheet-close"},e))}function vc(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.Dialog.Portal,s({"data-slot":"sheet-portal"},e))}function Ic(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.Dialog.Overlay,s({"data-slot":"sheet-overlay",className:l("bg-black/50 fixed inset-0 z-50 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e)},a))}function Oo(r){var d=r,{className:e,children:a,side:o="right"}=d,t=n(d,["className","children","side"]);return jsxRuntime.jsxs(vc,{children:[jsxRuntime.jsx(Ic,{}),jsxRuntime.jsxs(radixUi.Dialog.Content,f(s({"data-slot":"sheet-content",className:l("fixed z-50 flex flex-col gap-4 bg-background shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",o==="right"&&"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm",o==="left"&&"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",o==="top"&&"inset-x-0 top-0 h-auto border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",o==="bottom"&&"inset-x-0 bottom-0 h-auto border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",e)},t),{children:[a,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(ja,{className:"size-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Close"})]})]}))]})}function kc(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"sheet-header",className:l("flex flex-col gap-1.5 p-4",e)},a))}function yc(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"sheet-footer",className:l("mt-auto flex flex-col gap-2 p-4",e)},a))}function Sc(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.Dialog.Title,s({"data-slot":"sheet-title",className:l("font-semibold text-foreground",e)},a))}function Pc(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.Dialog.Description,s({"data-slot":"sheet-description",className:l("text-muted-foreground text-sm",e)},a))}function Ht(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"skeleton",className:l("animate-pulse rounded-md bg-gray-150",e)},a))}var Bc="sidebar_state",Fc=3600*24*7,Ec="b",Ys=D.createContext(null);function va(){let e=D.useContext(Ys);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}function Hc(i){var u=i,{defaultOpen:e=true,open:a,onOpenChange:o,className:t,children:r}=u,d=n(u,["defaultOpen","open","onOpenChange","className","children"]);let c=Ua(),[p,m]=D.useState(false),[g,h]=D.useState(e),k=a!=null?a:g,C=D.useCallback(F=>{let P=typeof F=="function"?F(k):F;o?o(P):h(P),document.cookie=`${Bc}=${P}; path=/; max-age=${Fc}`;},[o,k]),R=D.useCallback(()=>c?m(F=>!F):C(F=>!F),[c,C,m]);D.useEffect(()=>{let F=P=>{P.key===Ec&&(P.metaKey||P.ctrlKey)&&(P.preventDefault(),R());};return window.addEventListener("keydown",F),()=>window.removeEventListener("keydown",F)},[R]);let B=k?"expanded":"collapsed",_=D.useMemo(()=>({state:B,open:k,setOpen:C,isMobile:c,openMobile:p,setOpenMobile:m,toggleSidebar:R}),[B,k,C,c,p,m,R]);return jsxRuntime.jsx(Ys.Provider,{value:_,children:jsxRuntime.jsx(Ca,{delayDuration:0,children:jsxRuntime.jsx("div",f(s({"data-slot":"sidebar-wrapper",className:l("group/sidebar-wrapper has-data-[variant=inset]:bg-surface-navigation flex min-h-svh w-full",t)},d),{children:r}))})})}function Oc(u){var c=u,{side:e="left",variant:a="sidebar",collapsible:o="offcanvas",className:t,containerClassName:r,children:d}=c,i=n(c,["side","variant","collapsible","className","containerClassName","children"]);let{isMobile:p,state:m,openMobile:g,setOpenMobile:h}=va();return o==="none"?jsxRuntime.jsx("div",f(s({"data-slot":"sidebar",className:l("flex h-full w-[var(--sidebar-width)] flex-col bg-surface-navigation text-gray-foreground",t)},i),{children:d})):p?jsxRuntime.jsx(Ho,f(s({open:g,onOpenChange:h},i),{children:jsxRuntime.jsx(Oo,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:l("w-[var(--sidebar-width-mobile)] bg-surface-navigation p-0 text-gray-foreground [&>button]:hidden",t),side:e,children:jsxRuntime.jsx("div",{className:"flex h-full w-full flex-col",children:d})})})):jsxRuntime.jsxs("div",{className:l("group peer hidden text-gray-foreground md:block",t),"data-state":m,"data-collapsible":m==="collapsed"?o:"","data-variant":a,"data-side":e,"data-slot":"sidebar",children:[jsxRuntime.jsx("div",{"data-slot":"sidebar-gap",className:l("relative w-[var(--sidebar-width)] bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",a==="floating"||a==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-[var(--sidebar-width-icon)]")}),jsxRuntime.jsx("div",f(s({"data-slot":"sidebar-container",className:l("fixed inset-y-0 z-10 hidden h-svh w-[var(--sidebar-width)] border-gray-stroke-muted transition-[left,right,width] duration-200 ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",a==="floating"||a==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-[var(--sidebar-width-icon)] group-data-[side=left]:border-r group-data-[side=right]:border-l",r)},i),{children: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:d})}))]})}function Vc(c){var p=c,{className:e,onClick:a,sizeIcon:o="size-5",icon:t=jsxRuntime.jsx(icons.HamburgerMd,{className:o}),showTooltip:r=false,tooltipContent:d,enableHover:i=false}=p,u=n(p,["className","onClick","sizeIcon","icon","showTooltip","tooltipContent","enableHover"]);let{toggleSidebar:m,open:g,isMobile:h}=va(),[k,C]=D.useState(false),B=d||{open:"Esconder",closed:"Mostrar"},_=()=>i&&k?g?jsxRuntime.jsx(icons.ChevronLeftMd,{className:o}):jsxRuntime.jsx(icons.ChevronRightMd,{className:o}):t,F=jsxRuntime.jsxs("button",f(s({"data-sidebar":"trigger","data-slot":"sidebar-trigger",className:l("flex min-h-8 min-w-8 items-center justify-center rounded-full bg-surface-elevated text-gray-foreground transition-all duration-200 hover:shadow-[0px_0px_2px_0px_rgba(24,26,30,0.16),0px_2px_4px_0px_rgba(24,26,30,0.08)] [&>svg]:text-gray-foreground",e),onClick:P=>{a==null||a(P),m();},onMouseEnter:!h&&i?()=>C(true):void 0,onMouseLeave:!h&&i?()=>C(false):void 0},u),{children:[_(),jsxRuntime.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]}));return !r||h?F:jsxRuntime.jsxs(Ye,{children:[jsxRuntime.jsx(ea,{asChild:true,children:F}),jsxRuntime.jsx(aa,{side:"right",align:"center",children:g?B.open:B.closed})]})}function qc(o){var t=o,{className:e}=t,a=n(t,["className"]);let{toggleSidebar:r}=va();return jsxRuntime.jsx("button",s({"data-sidebar":"rail","data-slot":"sidebar-rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:r,title:"Toggle Sidebar",className:l("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-gray-stroke-muted group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full hover:group-data-[collapsible=offcanvas]:bg-surface-navigation","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e)},a))}function zc(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("main",s({"data-slot":"sidebar-inset",className:l("relative flex w-full flex-1 flex-col bg-surface-navigation","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm",e)},a))}function _c(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(To,s({"data-slot":"sidebar-input","data-sidebar":"input",className:l("bg-bg-surface-navigation h-8 w-full shadow-none",e)},a))}function Uc(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"sidebar-header","data-sidebar":"header",className:l("flex flex-col gap-0.5 px-4 pt-3",e)},a))}function Gc(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"sidebar-footer","data-sidebar":"footer",className:l("flex flex-col gap-0.5 px-4 pb-3 [[data-state=collapsed]_&]:px-2",e)},a))}function Wc(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(ua,s({"data-slot":"sidebar-separator","data-sidebar":"separator",className:l("mx-2 w-auto bg-gray-stroke-muted",e)},a))}function Xc(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"sidebar-content","data-sidebar":"content",className:l("flex min-h-0 flex-1 flex-col gap-0.5 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e)},a))}function Kc(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"sidebar-group","data-sidebar":"group",className:l("relative flex w-full min-w-0 flex-col p-2 px-4",e)},a))}function Zc(t){var r=t,{className:e,asChild:a=false}=r,o=n(r,["className","asChild"]);let d=a?radixUi.Slot.Slot:"div";return jsxRuntime.jsx(d,s({"data-slot":"sidebar-group-label","data-sidebar":"group-label",className:l("outline-hidden flex h-12 shrink-0 items-center whitespace-nowrap rounded-md px-2 text-xs font-semibold uppercase text-gray-foreground-muted ring-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:mt-0 group-data-[collapsible=icon]:hidden",e)},o))}function jc(t){var r=t,{className:e,asChild:a=false}=r,o=n(r,["className","asChild"]);let d=a?radixUi.Slot.Slot:"button";return jsxRuntime.jsx(d,s({"data-slot":"sidebar-group-action","data-sidebar":"group-action",className:l("outline-hidden absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-gray-foreground ring-ring transition-transform hover:bg-secondary-background-soft-emphasis focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 md:after:hidden","group-data-[collapsible=icon]:hidden",e)},o))}function Qc(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:l("w-full text-sm",e)},a))}function $c(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("ul",s({"data-slot":"sidebar-menu","data-sidebar":"menu",className:l("flex w-full min-w-0 flex-col gap-1",e)},a))}function Jc(r){var d=r,{className:e,isActive:a,children:o}=d,t=n(d,["className","isActive","children"]);return jsxRuntime.jsxs("li",f(s({"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:l("group/menu-item relative hover:cursor-pointer",e)},t),{children:[a&&jsxRuntime.jsx("span",{className:"absolute -left-4 top-0 h-full w-0.5 bg-secondary-stroke-emphasis","aria-hidden":"true"}),o]}))}var Yc=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] [&>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 ep(u){var c=u,{asChild:e=false,isActive:a=false,variant:o="default",size:t="md",tooltip:r,className:d}=c,i=n(c,["asChild","isActive","variant","size","tooltip","className"]);let p=e?radixUi.Slot.Slot:"button",{isMobile:m,state:g}=va(),h=jsxRuntime.jsx(p,s({"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":t,"data-active":a,className:l(Yc({variant:o,size:t}),d)},i));return r?(typeof r=="string"&&(r={children:r}),jsxRuntime.jsxs(Ye,{children:[jsxRuntime.jsx(ea,{asChild:true,children:h}),jsxRuntime.jsx(aa,s({side:"right",align:"center",hidden:g!=="collapsed"||m},r))]})):h}function ap(r){var d=r,{className:e,asChild:a=false,showOnHover:o=false}=d,t=n(d,["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:l("outline-hidden absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-gray-foreground ring-ring transition-transform hover:bg-secondary-background-soft-emphasis focus-visible:ring-2 peer-hover/menu-button:text-secondary-stroke-emphasis [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 md:after:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",o&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-secondary md:opacity-0",e)},t))}function tp(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:l("pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-gray-foreground","peer-hover/menu-button:text-secondary peer-data-[active=true]/menu-button:text-secondary","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e)},a))}function op(t){var r=t,{className:e,showIcon:a=false}=r,o=n(r,["className","showIcon"]);let d=D.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return jsxRuntime.jsxs("div",f(s({"data-slot":"sidebar-menu-skeleton","data-sidebar":"menu-skeleton",className:l("flex h-8 items-center gap-0.5 rounded-md px-2",e)},o),{children:[a&&jsxRuntime.jsx(Ht,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),jsxRuntime.jsx(Ht,{className:"max-w-(--skeleton-width) h-4 flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":d}})]}))}function rp(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:l("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-gray-stroke-muted px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e)},a))}function sp(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:l("group/menu-sub-item relative",e)},a))}function lp({icon:e,title:a}){let{state:o,isMobile:t}=va();return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[e,jsxRuntime.jsx("span",{className:l("whitespace-nowrap",o==="collapsed"&&"opacity-0",t&&"opacity-100"),children:a})]})}function dp(){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})})}function np(d){var i=d,{asChild:e=false,size:a="md",isActive:o=false,className:t}=i,r=n(i,["asChild","size","isActive","className"]);let u=e?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:l("outline-hidden flex h-9 min-w-0 -translate-x-px items-center gap-0.5 overflow-hidden rounded-md px-2 font-medium text-gray-foreground ring-ring hover:bg-secondary-background-soft-emphasis focus-visible:ring-2 active:font-semibold active:text-secondary-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-gray-foreground","data-[active=true]:font-semibold data-[active=true]:text-secondary-foreground",a==="sm"&&"text-xs",a==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",t)},r))}var cp={sm:"size-2",md:"size-3",lg:"size-4"},al={sm:"[&_svg]:size-2",md:"[&_svg]:size-3",lg:"[&_svg]:size-3.5"},pp={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]"},tl=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 mp(c){var p=c,{className:e,size:a,variant:o,checkedIcon:t,uncheckedIcon:r,checked:d,defaultChecked:i}=p,u=n(p,["className","size","variant","checkedIcon","uncheckedIcon","checked","defaultChecked"]);let[m,g]=D.useState(i||false),h=d!==void 0,k=h?d:m,C=t||r;return jsxRuntime.jsx(radixUi.Switch.Root,f(s({"data-slot":"switch",className:l("group",tl({size:a,variant:o}),e),checked:d,defaultChecked:i,onCheckedChange:R=>{var B;h||g(R),(B=u.onCheckedChange)==null||B.call(u,R);}},u),{children:jsxRuntime.jsx(radixUi.Switch.Thumb,{"data-slot":"switch-thumb",className:l("pointer-events-none flex items-center justify-center rounded-full ring-0 transition-transform data-[state=unchecked]:translate-x-0.5 data-[disabled]:!bg-gray-background-fill-muted data-[state=checked]:bg-primary-foreground-onfill data-[state=unchecked]:bg-gray-foreground-muted data-[state=unchecked]:group-hover:bg-gray-foreground data-[state=unchecked]:group-data-[disabled]:group-hover:bg-gray-foreground-muted",C&&"!bg-transparent data-[disabled]:!bg-transparent",cp[a||"md"],pp[a||"md"]),children:C&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[k&&t&&jsxRuntime.jsx("span",{className:l("flex items-center justify-center text-primary-foreground-onfill group-data-[disabled]:text-gray-300",al[a||"md"]),children:t}),!k&&r&&jsxRuntime.jsx("span",{className:l("flex items-center justify-center text-gray-foreground group-data-[disabled]:text-gray-300",al[a||"md"]),children:r})]})})}))}var ol=D.createContext({});function Lp({children:e,value:a,onValueChange:o,open:t,defaultOpen:r,onOpenChange:d}){let[i,u]=D.useState(a||""),c={value:a||i,onValueChange:o||u};return jsxRuntime.jsx(ol.Provider,{value:c,children:jsxRuntime.jsx(xo,{open:t,defaultOpen:r,onOpenChange:d,children:e})})}function vp({children:e,asChild:a=true,className:o}){return jsxRuntime.jsx(ho,{className:o,asChild:a,children:e})}function Ip({children:e,align:a="center",side:o="right",className:t}){return jsxRuntime.jsx(bo,{className:t,align:a,side:o,children:e})}function kp({children:e,label:a}){let{value:o,onValueChange:t}=D.useContext(ol);return a?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Lo,{children:a}),jsxRuntime.jsx(Ct,{value:o,onValueChange:t,children:e})]}):jsxRuntime.jsx(Ct,{value:o,onValueChange:t,children:e})}function yp({children:e,value:a,onClick:o,icon:t}){let r=()=>{o&&o();};return a?jsxRuntime.jsxs(Co,{value:a,onClick:r,children:[typeof t=="string"?jsxRuntime.jsx("img",{src:t,alt:"",width:20,height:14}):t,e]}):jsxRuntime.jsxs(bt,{onClick:r,children:[typeof t=="string"?jsxRuntime.jsx("img",{src:t,alt:"",width:20,height:14}):t,e]})}function Sp({children:e,onClick:a,icon:o}){return jsxRuntime.jsxs(bt,{onClick:a,children:[o,e]})}function Pp(){return jsxRuntime.jsx(vo,{})}var ll=D.createContext(null),Np=150,rl=16,Bp="w-8";function zo(){let e=D.useContext(ll);if(!e)throw new Error("useTabsContext must be used within a Tabs component.");return e}function Fp(e,a){let o=D.useRef(null);return D.useEffect(()=>()=>{o.current&&clearTimeout(o.current);},[]),D.useCallback(((...t)=>{o.current&&clearTimeout(o.current),o.current=setTimeout(()=>e(...t),a);}),[e,a])}var dl=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"}}),nl=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"}}),Ep=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"}}),sl=classVarianceAuthority.cva(["pointer-events-none absolute top-0 z-10 h-full transition-opacity duration-200",Bp],{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"}}),il=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 Hp(i){var u=i,{className:e,variant:a="standalone",size:o="md",responsive:t=true,children:r}=u,d=n(u,["className","variant","size","responsive","children"]);let[c,p]=D.useState(o),m=D.useCallback(()=>{if(typeof window=="undefined")return;let h=parseInt(ha.tablet),k=parseInt(ha.mobile),C=window.innerWidth;C<=k||C<=h?p("md"):p(o);},[o]),g=Fp(m,Np);return D.useEffect(()=>{if(typeof window=="undefined"||!t){p(o);return}return m(),window.addEventListener("resize",g),()=>window.removeEventListener("resize",g)},[t,o,m,g]),jsxRuntime.jsx(ll.Provider,{value:D.useMemo(()=>({variant:a,size:o,responsiveSize:c}),[a,o,c]),children:jsxRuntime.jsx(radixUi.Tabs.Root,f(s({"data-slot":"tabs","data-variant":a,"data-size":c,className:l("flex w-full max-w-full flex-col overflow-hidden",e)},d),{children:r}))})}function Op(p){var m=p,{className:e,wrapperClassName:a,scrollContainerClassName:o,innerClassName:t,indicatorClassName:r,leftFadeClassName:d,rightFadeClassName:i,children:u}=m,c=n(m,["className","wrapperClassName","scrollContainerClassName","innerClassName","indicatorClassName","leftFadeClassName","rightFadeClassName","children"]);let{variant:g,responsiveSize:h}=zo(),k=D.useRef(null),C=D.useRef(null),[R,B]=D.useState(false),[_,F]=D.useState(false),[P,J]=D.useState(null),z=D.useCallback(()=>{let I=k.current;if(!I)return;let{scrollLeft:H,scrollWidth:M,clientWidth:O}=I,ae=M>O;B(ae&&H>0),F(ae&&H<M-O-1);},[]),b=D.useCallback(()=>{let I=C.current;if(!I)return;let H=I.querySelector('[data-state="active"]');if(H){let M=I.getBoundingClientRect(),O=H.getBoundingClientRect();J({left:O.left-M.left,width:O.width});}},[]),v=D.useCallback(()=>{let I=k.current,H=C.current;if(!I||!H)return;let M=H.querySelector('[data-state="active"]');if(M){let O=I.getBoundingClientRect(),ae=M.getBoundingClientRect();ae.left<O.left?I.scrollBy({left:ae.left-O.left-rl,behavior:"smooth"}):ae.right>O.right&&I.scrollBy({left:ae.right-O.right+rl,behavior:"smooth"});}},[]);return D.useEffect(()=>{let I=k.current;if(!I)return;z();let H=new ResizeObserver(()=>{z(),b();});return H.observe(I),I.addEventListener("scroll",z,{passive:true}),()=>{H.disconnect(),I.removeEventListener("scroll",z);}},[z,b]),D.useEffect(()=>{b();},[b,u]),D.useEffect(()=>{let I=C.current;if(!I)return;let H=new MutationObserver(M=>{for(let O of M)if(O.type==="attributes"&&O.attributeName==="data-state"){b(),v();break}});return H.observe(I,{attributes:true,subtree:true,attributeFilter:["data-state"]}),()=>H.disconnect()},[b,v]),jsxRuntime.jsxs("div",{"data-slot":"tabs-list-wrapper",className:l(Ep({variant:g}),a),children:[jsxRuntime.jsx("div",{"data-slot":"tabs-fade-left",className:l(sl({side:"left",variant:g}),R?"opacity-100":"opacity-0",d),"aria-hidden":"true"}),jsxRuntime.jsx("div",{"data-slot":"tabs-fade-right",className:l(sl({side:"right",variant:g}),_?"opacity-100":"opacity-0",i),"aria-hidden":"true"}),jsxRuntime.jsx("div",{ref:k,"data-slot":"tabs-scroll-container",className:l("overflow-x-auto overflow-y-hidden [-ms-overflow-style:none] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",o),children:jsxRuntime.jsxs("div",{ref:C,"data-slot":"tabs-list-inner",className:l("relative",t),children:[jsxRuntime.jsx(radixUi.Tabs.List,f(s({"data-slot":"tabs-list","data-variant":g,"data-size":h,className:l(dl({variant:g}),e)},c),{children:u})),P&&jsxRuntime.jsx("div",{"data-slot":"tabs-indicator",className:l("pointer-events-none absolute bottom-0 h-0.5 bg-secondary-stroke-emphasis transition-all duration-300 ease-out",r),style:{left:P.left,width:P.width},"aria-hidden":"true"})]})})]})}function Vp(d){var i=d,{className:e,children:a,icon:o,badge:t}=i,r=n(i,["className","children","icon","badge"]);let{variant:u,responsiveSize:c}=zo(),p=D.useRef(null),[m,g]=D.useState(false);D.useEffect(()=>{let k=p.current;if(!k)return;let C=()=>{g(k.getAttribute("data-state")==="active");};C();let R=new MutationObserver(C);return R.observe(k,{attributes:true,attributeFilter:["data-state"]}),()=>R.disconnect()},[]);let h=()=>o?D.isValidElement(o)?D.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:l(nl({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 qp(o){var t=o,{className:e}=t,a=n(t,["className"]);let{variant:r,responsiveSize:d}=zo();return jsxRuntime.jsx(radixUi.Tabs.Content,s({"data-slot":"tabs-content","data-variant":r,"data-size":d,className:l(il({variant:r,size:d}),e)},a))}var ul=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 Gp(i){var u=i,{className:e,variant:a="regular",asChild:o=false,disabled:t=false,inactive:r=false}=u,d=n(u,["className","variant","asChild","disabled","inactive"]);let c=o?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:l(ul({variant:a,className:e}),d.onClick&&!t&&"cursor-pointer")},d),{children:[d.children,d.onClick&&!t&&jsxRuntime.jsx(icons.EditPencil,{className:"absolute right-5 top-4 size-5 opacity-0 transition-opacity group-hover/tile:opacity-100"})]}))}function Wp(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:l("mb-2.5 last:mb-0 [&>svg]:size-5",e)},o),{children:a}))}function Xp(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"tile-title",className:l("line-clamp-1 flex w-fit text-xs font-medium",e)},a))}function Kp(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("span",s({"data-slot":"tile-description",className:l("line-clamp-1 flex w-fit text-sm font-semibold",e)},a))}var $p=3,Jp=5e3,Oe={ADD_TOAST:"ADD_TOAST",UPDATE_TOAST:"UPDATE_TOAST",DISMISS_TOAST:"DISMISS_TOAST",REMOVE_TOAST:"REMOVE_TOAST"},_o=0;function Yp(){return _o=(_o+1)%Number.MAX_SAFE_INTEGER,_o.toString()}var Uo=new Map,fl=e=>{if(Uo.has(e))return;let a=setTimeout(()=>{Uo.delete(e),et({type:Oe.REMOVE_TOAST,toastId:e});},Jp);Uo.set(e,a);},em=(e,a)=>{switch(a.type){case Oe.ADD_TOAST:return f(s({},e),{toasts:[a.toast,...e.toasts].slice(0,$p)});case Oe.UPDATE_TOAST:return f(s({},e),{toasts:e.toasts.map(o=>o.id===a.toast.id?s(s({},o),a.toast):o)});case Oe.DISMISS_TOAST:{let{toastId:o}=a;return o?fl(o):e.toasts.forEach(t=>{fl(t.id);}),f(s({},e),{toasts:e.toasts.map(t=>t.id===o||a.toastId===void 0?f(s({},t),{open:false}):t)})}case Oe.REMOVE_TOAST:return a.toastId===void 0?f(s({},e),{toasts:[]}):f(s({},e),{toasts:e.toasts.filter(o=>o.id!==a.toastId)})}},Ut=[],Gt={toasts:[]};function et(e){Gt=em(Gt,e),[...Ut].forEach(a=>{a(Gt);});}function am(a){var e=n(a,[]);let o=Yp(),t=d=>et({type:Oe.UPDATE_TOAST,toast:f(s({},d),{id:o})}),r=()=>et({type:Oe.DISMISS_TOAST,toastId:o});return et({type:Oe.ADD_TOAST,toast:f(s({},e),{id:o,open:true,onOpenChange:d=>{d||r();}})}),{id:o,dismiss:r,update:t}}function Go(){let[e,a]=D.useState(Gt);return D.useEffect(()=>(Ut.push(a),()=>{let o=Ut.indexOf(a);o>-1&&Ut.splice(o,1);}),[]),f(s({},e),{toast:am,dismiss:o=>et({type:Oe.DISMISS_TOAST,toastId:o})})}var ml=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 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=open]:slide-in-from-top-full data-[state=closed]:fade-out-0 data-[state=closed]:slide-out-to-top-4 data-[state=open]:duration-300 data-[state=closed]:duration-400 data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=cancel]:transition-transform data-[swipe=end]:animate-out transition-[transform,opacity]",{variants:{variant:{primary:"text-primary-foreground",secondary:"text-secondary-foreground",success:"text-feedback-success-foreground",warning:"text-feedback-warning-foreground",error:"text-feedback-error-foreground"}},defaultVariants:{variant:"primary"}}),lm=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"}}),dm={primary:"regular-soft",secondary:"emphasis-soft",success:"success-soft",warning:"warning-soft",error:"error-soft"},nm={primary:icons.Info,secondary:icons.Info,success:icons.CircleCheck,warning:icons.TriangleWarning,error:icons.OctagonWarning},im=radixUi.Toast.Provider;function gl(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.Toast.Viewport,s({"data-slot":"toast-viewport",className:l("fixed right-0 top-0 z-[100] flex max-h-screen w-full min-w-0 max-w-[500px] flex-col gap-2 p-4 md:w-[500px]",e)},a))}function xl(i){var u=i,{className:e,variant:a="primary",showIcon:o=true,duration:t=5e3,children:r}=u,d=n(u,["className","variant","showIcon","duration","children"]);let c=nm[a||"primary"];return jsxRuntime.jsxs(radixUi.Toast.Root,f(s({duration:t,className:l(ml({variant:a}),e)},d),{children:[o&&jsxRuntime.jsx(c,{className:l(lm({variant:a}))}),jsxRuntime.jsx("div",{className:"flex flex-1 items-center justify-between gap-4",children:r})]}))}function um(c){var p=c,{className:e,variant:a="primary",size:o="sm",iconLeft:t,iconRight:r,children:d,altText:i="Toast action"}=p,u=n(p,["className","variant","size","iconLeft","iconRight","children","altText"]);return jsxRuntime.jsx(radixUi.Toast.Action,f(s({asChild:true,altText:i,className:l("inline-flex items-center justify-center",e)},u),{children:jsxRuntime.jsx(Y,{iconLeft:t,iconRight:r,size:o,variant:dm[a],children:d})}))}function hl(t){var r=t,{className:e,label:a="Fechar"}=r,o=n(r,["className","label"]);return jsxRuntime.jsx(radixUi.Toast.Close,f(s({className:l("shrink-0",e)},o),{asChild:true,children:jsxRuntime.jsx(Y,{iconLeft:jsxRuntime.jsx(icons.CloseMd,{className:"size-4"}),size:"sm","aria-label":a,variant:"regular-basic"})}))}function bl(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.Toast.Title,s({className:l("flex-1 text-md font-medium",e)},a))}function Cl(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.Toast.Description,s({className:l("text-xs",e)},a))}function fm(){let{toasts:e}=Go();return jsxRuntime.jsxs(im,{children:[e.map(function(i){var u=i,{id:a,title:o,description:t,action:r}=u,d=n(u,["id","title","description","action"]);return jsxRuntime.jsxs(xl,f(s({},d),{children:[jsxRuntime.jsxs("div",{className:"grid",children:[o&&jsxRuntime.jsx(bl,{children:o}),t&&jsxRuntime.jsx(Cl,{children:t})]}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[r,jsxRuntime.jsx(hl,{})]})]}),a)}),jsxRuntime.jsx(gl,{})]})}/*! Bundled license information:
|
|
1
|
+
'use strict';var D=require('react'),classVarianceAuthority=require('class-variance-authority'),icons=require('@medway-ui/icons'),clsx=require('clsx'),tailwindMerge=require('tailwind-merge'),jsxRuntime=require('react/jsx-runtime'),radixUi=require('radix-ui'),reactDom=require('react-dom');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 D__namespace=/*#__PURE__*/_interopNamespace(D);var Ll=Object.defineProperty,vl=Object.defineProperties;var Il=Object.getOwnPropertyDescriptors;var ot=Object.getOwnPropertySymbols;var Xo=Object.prototype.hasOwnProperty,Ko=Object.prototype.propertyIsEnumerable;var Wo=(e,a,o)=>a in e?Ll(e,a,{enumerable:true,configurable:true,writable:true,value:o}):e[a]=o,s=(e,a)=>{for(var o in a||(a={}))Xo.call(a,o)&&Wo(e,o,a[o]);if(ot)for(var o of ot(a))Ko.call(a,o)&&Wo(e,o,a[o]);return e},f=(e,a)=>vl(e,Il(a));var n=(e,a)=>{var o={};for(var t in e)Xo.call(e,t)&&a.indexOf(t)<0&&(o[t]=e[t]);if(e!=null&&ot)for(var t of ot(e))a.indexOf(t)<0&&Ko.call(e,t)&&(o[t]=e[t]);return o};var Sl=tailwindMerge.extendTailwindMerge({extend:{classGroups:{"font-size":["text-xxs","text-xs","text-sm","text-base","text-md","text-lg","text-xl","text-title-xs","text-title-sm","text-title-md","text-title-lg","text-title-xl","text-title-xxl","text-display-sm","text-display-md","text-display-lg"],leading:["leading-xxs","leading-xs","leading-sm","leading-md","leading-lg","leading-title-xs","leading-title-sm","leading-title-md","leading-title-lg","leading-title-xl","leading-title-xxl","leading-display-sm","leading-display-md","leading-display-lg"],"font-weight":["font-regular","font-medium","font-semibold","font-bold","font-extrabold"],rounded:["rounded-none","rounded-sm","rounded-md","rounded-lg","rounded-pill","rounded-circular","rounded-full"]}}});function l(...e){return Sl(clsx.clsx(e))}var Wt=D.createContext(null),$o=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 Dl(d){var i=d,{className:e,variant:a="regular",onClose:o,children:t}=i,r=n(i,["className","variant","onClose","children"]);let u=D.Children.toArray(t),c=u.some(g=>D.isValidElement(g)&&g.type===Yo),p=u.some(g=>D.isValidElement(g)&&g.type===Jo),m=D.useMemo(()=>({variant:a,hasDescription:c,hasTitle:p,onClose:o}),[a,c,p,o]);return jsxRuntime.jsx(Wt.Provider,{value:m,children:jsxRuntime.jsxs("div",f(s({"data-slot":"alert",role:"alert",className:l($o({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 Rl(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"alert-container",className:l("flex gap-3",e)},a))}function Ml(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"alert-content",className:l("flex flex-col gap-1",e)},a))}function Nl(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:l("size-6",e)},o),{children:a}))}function Jo(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"alert-title",className:l("line-clamp-1 min-h-4 text-md font-medium",e)},a))}function Yo(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"alert-description",className:l("!line-clamp-3 grid justify-items-start gap-1 text-sm leading-5",e)},a))}function Bl(o){var t=o,{className:e}=t,a=n(t,["className"]);let r=D.useContext(Wt),d=(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:l("relative mt-2 flex flex-wrap items-center gap-x-2 lg:mt-0 lg:flex-nowrap",(!d||!i)&&u&&"lg:right-5",e)},a))}var er=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 Fl(t){var r=t,{className:e,variant:a}=r,o=n(r,["className","variant"]);let d=D.useContext(Wt),i=(d==null?void 0:d.variant)||"regular";return jsxRuntime.jsx("button",s({className:l(er({variant:a,alertVariant:i}),e)},o))}function Xt({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:l("animate-spin",a),children:jsxRuntime.jsx("path",{d:"M21 12a9 9 0 1 1-6.219-8.56"})})}var ql={sm:"size-4 p-0 leading-none",md:"size-5 p-0 leading-none",lg:"size-6 p-0 leading-none",xl:"size-7 p-0 leading-none"},zl={sm:"px-1",md:"px-1",lg:"px-1",xl:"px-1.5"},tr=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 Be(u){var c=u,{className:e,variant:a,size:o,icon:t,animation:r,asChild:d=false}=c,i=n(c,["className","variant","size","icon","animation","asChild"]);let p=d?radixUi.Slot.Slot:"span",m=D.Children.count(i.children)>0,g=!!t&&!m,h=typeof i.children=="string"||typeof i.children=="number"?String(i.children).trim():"",k=/^[A-Za-z0-9]$/.test(h),C=/^[A-Za-z0-9]{2,3}$/.test(h),R=/^\d{1,2}\S$/.test(h),B=C||R;return jsxRuntime.jsxs(p,f(s({"data-slot":"badge",className:l(tr({variant:a,size:o}),(g||k)&&ql[o||"md"],!g&&B&&zl[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 Wl={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"},or={sm:"size-2",md:"size-2.5",lg:"size-2.5",xl:"size-3"},Xl={sm:"sm",md:"md",lg:"md",xl:"lg"},Ta=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 min-w-0 max-w-full overflow-hidden [&_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-primary-foreground hover:border-transparent hover:bg-gray-50 disabled:border-transparent dark:bg-transparent hover:dark:border-gray-400 disabled:border-gray-stroke-muted disabled:text-gray-foreground-muted",gradient:"text-white [background:linear-gradient(284deg,var(--color-primary)_2.11%,var(--color-secondary)_128.06%)] hover:[background:linear-gradient(284deg,var(--color-primary)2.11%,var(--color-secondary)102.63%)] disabled:[background:var(--color-gray-50)] disabled:bg-gray-background-fill-muted disabled:text-gray-foreground-onfill",medbrain:"border-2 border-transparent bg-clip-text [background:linear-gradient(var(--color-white),var(--color-white))_padding-box,linear-gradient(75deg,var(--color-secondary),var(--color-cm-lighten-3))_border-box] [box-shadow:-8px_0_8px_0_var(--color-prev-16)_inset,8px_0_8px_0_var(--color-secondary-24)_inset,0_0_8px_0_var(--color-cm-16)_inset] hover:[background:linear-gradient(var(--color-white),var(--color-white))_padding-box,linear-gradient(75deg,var(--color-cm-lighten-3),var(--color-secondary))_border-box] [&_span]:bg-clip-text [&_span]:text-transparent [&_span]:bg-gradient-to-r [&_span]:from-cm [&_span]:to-primary [&_span]:hover:to-secondary disabled:bg-gray-background-fill-muted disabled:text-gray-foreground-onfill [&_svg]:text-cm-darken-1"},size:{sm:"min-h-8 min-w-8 px-3 py-1 has-[>svg]:px-3 [&_svg:not([class*='size-'])]:size-[13px] text-xs",md:"min-h-10 min-w-10 px-3.5 py-2 has-[>svg]:px-3.5 [&_svg:not([class*='size-'])]:size-4 text-sm",lg:"min-h-12 min-w-12 px-4 py-3 has-[>svg]:px-4 [&_svg:not([class*='size-'])]:size-6 text-md",xl:"min-h-14 min-w-14 px-[18px] py-3.5 has-[>svg]:px-[18px] [&_svg:not([class*='size-'])]:size-7 text-lg"}},defaultVariants:{variant:"regular",size:"md"}});function Y(g){var h=g,{className:e,containerClassName:a,variant:o,size:t,asChild:r=false,iconRight:d,iconLeft:i,badge:u,loading:c=false,alert:p}=h,m=n(h,["className","containerClassName","variant","size","asChild","iconRight","iconLeft","badge","loading","alert"]);let k=r?radixUi.Slot.Slot:"button",C=P=>P!=null&&P!==0&&P!==""&&P!=="0",R=P=>P,B=!m.children&&(i||d||p),_=()=>p?jsxRuntime.jsxs("span",{className:l("relative mr-1 flex size-2.5",or[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:l("relative inline-flex size-2.5 rounded-full",or[t||"md"]),style:{backgroundColor:p}})]}):null,F=()=>c?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Xt,{className:"[grid-area:stack]"}),jsxRuntime.jsx("span",{className:l("[grid-area:stack]",c&&"invisible"),children:m.children})]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[p?_():i&&R(i),m.children&&jsxRuntime.jsx("span",{className:"truncate",children:m.children}),d&&R(d)]});return jsxRuntime.jsxs("div",{className:l("relative min-w-0",a),children:[C(u)&&jsxRuntime.jsx(Be,{size:Xl[t||"md"],variant:"regular",className:l("absolute -right-2 -top-1 z-10"),role:"status","aria-label":`${u}-notifications`,children:String(u)}),jsxRuntime.jsx(k,f(s({disabled:c,"aria-busy":c,"aria-live":c?"polite":void 0,"data-slot":"button",className:l(B&&Wl[t||"md"],c&&"!inline-grid",Ta({variant:o,size:t,className:e}))},m),{children:F()}))]})}var sr=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",ia:"[background:linear-gradient(90deg,var(--color-secondary-darken-1)_0%,var(--color-cm)_100%)] text-primary-foreground-onfill fill-primary-foreground-onfill","ia-soft":"[background:linear-gradient(90deg,color-mix(in_srgb,var(--color-secondary-darken-1)_15%,transparent)_0%,color-mix(in_srgb,var(--color-cm)_15%,transparent)_100%)] text-secondary-foreground fill-secondary-foreground","ia-basic":"bg-transparent text-secondary-foreground [&_[data-slot=tag-text]]:bg-clip-text [&_[data-slot=tag-text]]:text-transparent [&_[data-slot=tag-text]]:[-webkit-background-clip:text] [&_[data-slot=tag-text]]:[background-image:linear-gradient(90deg,var(--color-secondary-darken-1)_0%,var(--color-cm)_100%)]"}},defaultVariants:{variant:"regular"}});function jl(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:l("[&>svg]:size-3.5",e)},o),{children:a}))}function fe(i){var u=i,{className:e,variant:a,asChild:o=false,icon:t,children:r}=u,d=n(u,["className","variant","asChild","icon","children"]);let c=o?radixUi.Slot.Slot:"span";return jsxRuntime.jsxs(c,f(s({"data-slot":"tag",className:l(sr({variant:a}),e)},d),{children:[t&&jsxRuntime.jsx(jl,{icon:t}),jsxRuntime.jsx("span",{"data-slot":"tag-text",children:r})]}))}var da="regular",st=D.createContext(null),ed=classVarianceAuthority.cva("flex w-full items-center justify-center px-8 py-8",{variants:{variant:{regular:"[background-image:radial-gradient(50%_100%_at_50%_0%,var(--color-primary-background-soft)_0%,transparent_100%)]",emphasis:"[background-image:radial-gradient(50%_100%_at_50%_0%,var(--color-secondary-background-soft)_0%,transparent_100%)]",warning:"[background-image:radial-gradient(50%_100%_at_50%_0%,var(--color-feedback-warning-background-soft)_0%,transparent_100%)]",error:"[background-image:radial-gradient(50%_100%_at_50%_0%,var(--color-feedback-error-background-soft)_0%,transparent_100%)]",success:"[background-image:radial-gradient(50%_100%_at_50%_0%,var(--color-feedback-success-background-soft)_0%,transparent_100%)]"}},defaultVariants:{variant:da}}),ad=classVarianceAuthority.cva("flex items-center justify-center rounded-full p-4 [&_svg]:size-8",{variants:{variant:{regular:"bg-primary-background-fill text-primary-foreground-onfill",emphasis:"bg-secondary-background-fill text-secondary-foreground-onfill",warning:"bg-yellow-background-fill text-yellow-foreground-onfill",error:"bg-red-background-fill text-red-foreground-onfill",success:"bg-green-background-fill text-green-foreground-onfill"}},defaultVariants:{variant:da}}),td={regular:"regular-soft",emphasis:"emphasis-soft",warning:"warning-soft",error:"error-soft",success:"success-soft"},od={regular:"regular",emphasis:"emphasis",warning:"warning",error:"error",success:"success"};function rd(o){var t=o,{variant:e=da}=t,a=n(t,["variant"]);let r=D.useMemo(()=>({variant:e}),[e]);return jsxRuntime.jsx(st.Provider,{value:r,children:jsxRuntime.jsx(radixUi.AlertDialog.Root,s({"data-slot":"alert-dialog"},a))})}function sd(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.AlertDialog.Trigger,s({"data-slot":"alert-dialog-trigger"},e))}function dr(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.AlertDialog.Portal,s({"data-slot":"alert-dialog-portal"},e))}function nr(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.AlertDialog.Overlay,s({"data-slot":"alert-dialog-overlay",className:l("fixed inset-0 z-50 bg-black-48 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e)},a))}function ld(d){var i=d,{className:e,overlayClassName:a,showCloseButton:o=false,children:t}=i,r=n(i,["className","overlayClassName","showCloseButton","children"]);return jsxRuntime.jsxs(dr,{children:[jsxRuntime.jsx(nr,{className:a}),jsxRuntime.jsxs(radixUi.AlertDialog.Content,f(s({"data-slot":"alert-dialog-content",className:l("fixed left-1/2 top-1/2 z-50 flex w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 flex-col overflow-hidden rounded-xl border bg-surface-elevated shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-1/2 data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-1/2 sm:max-w-lg",e)},r),{children:[t,o&&jsxRuntime.jsxs(radixUi.AlertDialog.Cancel,{"data-slot":"alert-dialog-close",className:"focus:outline-hidden absolute right-3 top-3 rounded-pill p-1.5 hover:bg-gray-background-soft disabled:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",children:[jsxRuntime.jsx(icons.CloseMd,{}),jsxRuntime.jsx("span",{className:"sr-only",children:"Close"})]})]}))]})}function dd(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"alert-dialog-header",className:l("flex flex-col items-center gap-3 px-8 pt-8 text-center","[[data-slot=alert-dialog-content]:has([data-slot=alert-dialog-icon])_&]:pt-0",e)},a))}function nd(t){var r=t,{className:e,icon:a}=r,o=n(r,["className","icon"]);var u;let d=D.useContext(st),i=(u=d==null?void 0:d.variant)!=null?u:da;return jsxRuntime.jsx("div",f(s({"data-slot":"alert-dialog-icon",className:l(ed({variant:i}),e)},o),{children:jsxRuntime.jsx("div",{className:ad({variant:i}),children:a})}))}function id({className:e,variant:a,children:o}){var d;let t=D.useContext(st),r=(d=a!=null?a:t==null?void 0:t.variant)!=null?d:da;return jsxRuntime.jsx("div",{"data-slot":"alert-dialog-tag",className:"flex justify-center",children:jsxRuntime.jsx(fe,{variant:td[r],className:e,children:o})})}function ud(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.AlertDialog.Title,s({"data-slot":"alert-dialog-title",className:l("text-title-sm font-semibold leading-title-sm text-content-title",e)},a))}function fd(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.AlertDialog.Description,s({"data-slot":"alert-dialog-description",className:l("text-md leading-md text-content-paragraph",e)},a))}function cd(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"alert-dialog-footer",className:l("flex flex-row items-center justify-center gap-4 px-8 pb-8 pt-6",e)},a))}function pd(r){var d=r,{className:e,variant:a,size:o="lg"}=d,t=n(d,["className","variant","size"]);var c;let i=D.useContext(st),u=a!=null?a:od[(c=i==null?void 0:i.variant)!=null?c:da];return jsxRuntime.jsx(radixUi.AlertDialog.Action,s({className:l(Ta({variant:u,size:o}),e)},t))}function md(r){var d=r,{className:e,variant:a="regular-soft",size:o="lg"}=d,t=n(d,["className","variant","size"]);return jsxRuntime.jsx(radixUi.AlertDialog.Cancel,s({className:l(Ta({variant:a,size:o}),e)},t))}var gd=0;function xd(){return `medway-id-${++gd}`}var hd=D__namespace.useId||(()=>{});function ke(){let e=hd(),[a]=D__namespace.useState(()=>e!=null?e:xd());return a}var bd=/[\\\/_+.#"@\[\(\{&]/,Cd=/[\\\/_+.#"@\[\(\{&]/g,Ld=/[\s-]/,ur=/[\s-]/g;function Qt(e,a,o,t,r,d,i){if(d===a.length)return r===e.length?1:.99;let u=`${r},${d}`;if(i[u]!==void 0)return i[u];let c=t.charAt(d),p=o.indexOf(c,r),m=0,g,h,k,C;for(;p>=0;)g=Qt(e,a,o,t,p+1,d+1,i),g>m&&(p===r?g*=1:bd.test(e.charAt(p-1))?(g*=.8,k=e.slice(r,p-1).match(Cd),k&&r>0&&(g*=Math.pow(.999,k.length))):Ld.test(e.charAt(p-1))?(g*=.9,C=e.slice(r,p-1).match(ur),C&&r>0&&(g*=Math.pow(.999,C.length))):(g*=.17,r>0&&(g*=Math.pow(.999,p-r))),e.charAt(p)!==a.charAt(d)&&(g*=.9999)),(g<.1&&o.charAt(p-1)===t.charAt(d+1)||t.charAt(d+1)===t.charAt(d)&&o.charAt(p-1)!==t.charAt(d))&&(h=Qt(e,a,o,t,p+1,d+2,i),h*.1>g&&(g=h*.1)),g>m&&(m=g),p=o.indexOf(c,p+1);return i[u]=m,m}function ir(e){return e.toLowerCase().replace(ur," ")}function fr(e,a,o){return e=o&&o.length>0?`${e+" "+o.join(" ")}`:e,Qt(e,a,ir(e),ir(a),0,0,{})}var Aa='[cmdk-group=""]',$t='[cmdk-group-items=""]',vd='[cmdk-group-heading=""]',pr='[cmdk-item=""]',cr=`${pr}:not([aria-disabled="true"])`,Jt="cmdk-item-select",na="data-value",Id=(e,a,o)=>fr(e,a,o),mr=D__namespace.createContext(void 0),Ra=()=>D__namespace.useContext(mr),gr=D__namespace.createContext(void 0),Yt=()=>D__namespace.useContext(gr),xr=D__namespace.createContext(void 0),hr=D__namespace.forwardRef((e,a)=>{let o=ia(()=>{var x,N;return {search:"",value:(N=(x=e.value)!=null?x:e.defaultValue)!=null?N:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),t=ia(()=>new Set),r=ia(()=>new Map),d=ia(()=>new Map),i=ia(()=>new Set),u=Sr(e),ge=e,{label:c,children:p,value:m,onValueChange:g,filter:h,shouldFilter:k,loop:C,disablePointerSelection:R=false,vimBindings:B=true}=ge,_=n(ge,["label","children","value","onValueChange","filter","shouldFilter","loop","disablePointerSelection","vimBindings"]),F=ke(),P=ke(),ee=ke(),z=D__namespace.useRef(null),b=Sd();qe(()=>{if(m!==void 0){let x=m.trim();o.current.value=x,v.emit();}},[m]),qe(()=>{b(6,Te);},[]);let v=D__namespace.useMemo(()=>({subscribe:x=>(i.current.add(x),()=>i.current.delete(x)),snapshot:()=>o.current,setState:(x,N,A)=>{var w,q,$,J,se,S;if(!Object.is(o.current[x],N)){if(o.current[x]=N,x==="search")ae(),M(),b(1,O);else if(x==="value"){if((w=document.activeElement)!=null&&w.hasAttribute("cmdk-input")||(q=document.activeElement)!=null&&q.hasAttribute("cmdk-root")){let L=document.getElementById(ee);L?L.focus():($=document.getElementById(F))==null||$.focus();}if(b(7,()=>{var L;o.current.selectedItemId=(L=Ie())==null?void 0:L.id,v.emit();}),A||b(5,Te),((J=u.current)==null?void 0:J.value)!==void 0){let L=N!=null?N:"";(S=(se=u.current).onValueChange)==null||S.call(se,L);return}}v.emit();}},emit:()=>{i.current.forEach(x=>x());}}),[]),I=D__namespace.useMemo(()=>({value:(x,N,A)=>{var w;N!==((w=d.current.get(x))==null?void 0:w.value)&&(d.current.set(x,{value:N,keywords:A}),o.current.filtered.items.set(x,H(N,A)),b(2,()=>{M(),v.emit();}));},item:(x,N)=>(t.current.add(x),N&&(r.current.has(N)?r.current.get(N).add(x):r.current.set(N,new Set([x]))),b(3,()=>{ae(),M(),o.current.value||O(),v.emit();}),()=>{d.current.delete(x),t.current.delete(x),o.current.filtered.items.delete(x);let A=Ie();b(4,()=>{ae(),(A==null?void 0:A.getAttribute("id"))===x&&O(),v.emit();});}),group:x=>(r.current.has(x)||r.current.set(x,new Set),()=>{d.current.delete(x),r.current.delete(x);}),filter:()=>u.current.shouldFilter!==false,label:c||e["aria-label"]||"",getDisablePointerSelection:()=>!!u.current.disablePointerSelection,listId:F,inputId:ee,labelId:P,listInnerRef:z}),[]);function H(x,N){var w,q;let A=(q=(w=u.current)==null?void 0:w.filter)!=null?q:Id;return x?A(x,o.current.search,N):0}function M(){if(!o.current.search||u.current.shouldFilter===false)return;let x=o.current.filtered.items,N=[];o.current.filtered.groups.forEach(w=>{let q=r.current.get(w),$=0;q==null||q.forEach(J=>{let se=x.get(J);$=Math.max(se!=null?se:0,$);}),N.push([w,$]);});let A=z.current;re().sort((w,q)=>{var se,S;let $=w.getAttribute("id"),J=q.getAttribute("id");return ((se=x.get(J))!=null?se:0)-((S=x.get($))!=null?S:0)}).forEach(w=>{let q=w.closest($t);q?q.appendChild(w.parentElement===q?w:w.closest(`${$t} > *`)):A==null||A.appendChild(w.parentElement===A?w:w.closest(`${$t} > *`));}),N.sort((w,q)=>q[1]-w[1]).forEach(w=>{var $,J;let q=($=z.current)==null?void 0:$.querySelector(`${Aa}[${na}="${encodeURIComponent(w[0])}"]`);(J=q==null?void 0:q.parentElement)==null||J.appendChild(q);});}function O(){let x=re().find(A=>A.getAttribute("aria-disabled")!=="true"),N=x==null?void 0:x.getAttribute(na);v.setState("value",N||void 0);}function ae(){var N,A,w,q,$;if(!o.current.search||u.current.shouldFilter===false){o.current.filtered.count=t.current.size;return}o.current.filtered.groups=new Set;let x=0;for(let J of t.current){let se=(A=(N=d.current.get(J))==null?void 0:N.value)!=null?A:"",S=(q=(w=d.current.get(J))==null?void 0:w.keywords)!=null?q:[],L=H(se,S);o.current.filtered.items.set(J,L),L>0&&x++;}for(let[J,se]of r.current)for(let S of se)if((($=o.current.filtered.items.get(S))!=null?$:0)>0){o.current.filtered.groups.add(J);break}o.current.filtered.count=x;}function Te(){var N,A,w;let x=Ie();x&&(((N=x.parentElement)==null?void 0:N.firstChild)===x&&((w=(A=x.closest(Aa))==null?void 0:A.querySelector(vd))==null||w.scrollIntoView({block:"nearest"})),x.scrollIntoView({block:"nearest"}));}function Ie(){var x;return (x=z.current)==null?void 0:x.querySelector(`${pr}[aria-selected="true"]`)}function re(){var x;return Array.from(((x=z.current)==null?void 0:x.querySelectorAll(cr))||[])}function Me(x){let A=re()[x];A&&v.setState("value",A.getAttribute(na));}function be(x){var $;let N=Ie(),A=re(),w=A.findIndex(J=>J===N),q=A[w+x];($=u.current)!=null&&$.loop&&(q=w+x<0?A[A.length-1]:w+x===A.length?A[0]:A[w+x]),q&&v.setState("value",q.getAttribute(na));}function ra(x){let N=Ie(),A=N==null?void 0:N.closest(Aa),w;for(;A&&!w;)A=x>0?kd(A,Aa):yd(A,Aa),w=A==null?void 0:A.querySelector(cr);w?v.setState("value",w.getAttribute(na)):be(x);}let sa=()=>Me(re().length-1),Se=x=>{x.preventDefault(),x.metaKey?sa():x.altKey?ra(1):be(1);},ie=x=>{x.preventDefault(),x.metaKey?Me(0):x.altKey?ra(-1):be(-1);};return jsxRuntime.jsxs("div",f(s({ref:a,tabIndex:-1},_),{"cmdk-root":"",onKeyDown:x=>{var A;(A=_.onKeyDown)==null||A.call(_,x);let N=x.nativeEvent.isComposing||x.keyCode===229;if(!(x.defaultPrevented||N))switch(x.key){case "n":case "j":{B&&x.ctrlKey&&Se(x);break}case "ArrowDown":{Se(x);break}case "p":case "k":{B&&x.ctrlKey&&ie(x);break}case "ArrowUp":{ie(x);break}case "Home":{x.preventDefault(),Me(0);break}case "End":{x.preventDefault(),sa();break}case "Enter":{x.preventDefault();let w=Ie();if(w){let q=new Event(Jt);w.dispatchEvent(q);}}}},children:[jsxRuntime.jsx("label",{"cmdk-label":"",htmlFor:I.inputId,id:I.labelId,style:wd,children:c}),dt(e,x=>jsxRuntime.jsx(gr.Provider,{value:v,children:jsxRuntime.jsx(mr.Provider,{value:I,children:x})}))]}))});hr.displayName="Command";var br=D__namespace.forwardRef((e,a)=>{var ee,z;let o=ke(),t=D__namespace.useRef(null),r=D__namespace.useContext(xr),d=Ra(),i=Sr(e),u=(z=(ee=i.current)==null?void 0:ee.forceMount)!=null?z:r==null?void 0:r.forceMount;qe(()=>{if(!u)return d.item(o,r==null?void 0:r.id)},[u]);let c=Pr(o,t,[e.value,e.children,t],e.keywords),p=Yt(),m=ze(v=>v.value&&v.value===c.current),g=ze(v=>{var I;return u||d.filter()===false?true:v.search?((I=v.filtered.items.get(o))!=null?I:0)>0:true});D__namespace.useEffect(()=>{let v=t.current;if(!(!v||e.disabled))return v.addEventListener(Jt,h),()=>v.removeEventListener(Jt,h)},[g,e.onSelect,e.disabled]);function h(){var v,I,H;k(),(H=(I=i.current).onSelect)==null||H.call(I,(v=c.current)!=null?v:"");}function k(){var v;p.setState("value",(v=c.current)!=null?v:"",true);}if(!g)return null;let b=e,{disabled:C,value:R,onSelect:B,forceMount:_,keywords:F}=b,P=n(b,["disabled","value","onSelect","forceMount","keywords"]);return jsxRuntime.jsx("div",f(s({ref:Da(t,a)},P),{id:o,"cmdk-item":"",role:"option","aria-disabled":!!C,"aria-selected":!!m,"data-disabled":!!C,"data-selected":!!m,onPointerMove:C||d.getDisablePointerSelection()?void 0:k,onClick:C?void 0:h,children:e.children}))});br.displayName="Item";var Cr=D__namespace.forwardRef((e,a)=>{let k=e,{heading:o,children:t,forceMount:r}=k,d=n(k,["heading","children","forceMount"]),i=ke(),u=D__namespace.useRef(null),c=D__namespace.useRef(null),p=ke(),m=Ra(),g=ze(C=>r||m.filter()===false?true:C.search?C.filtered.groups.has(i):true);qe(()=>m.group(i),[]),Pr(i,u,[e.value,e.heading,c]);let h=D__namespace.useMemo(()=>({id:i,forceMount:r}),[r]);return jsxRuntime.jsxs("div",f(s({ref:Da(u,a)},d),{"cmdk-group":"",role:"presentation",hidden:g?void 0:true,children:[o&&jsxRuntime.jsx("div",{ref:c,"cmdk-group-heading":"","aria-hidden":true,id:p,children:o}),dt(e,C=>jsxRuntime.jsx("div",{"cmdk-group-items":"",role:"group","aria-labelledby":o?p:void 0,children:jsxRuntime.jsx(xr.Provider,{value:h,children:C})}))]}))});Cr.displayName="Group";var Lr=D__namespace.forwardRef((e,a)=>{let i=e,{alwaysRender:o}=i,t=n(i,["alwaysRender"]),r=D__namespace.useRef(null),d=ze(u=>!u.search);return !o&&!d?null:jsxRuntime.jsx("div",f(s({ref:Da(r,a)},t),{"cmdk-separator":"",role:"separator"}))});Lr.displayName="Separator";var vr=D__namespace.forwardRef((e,a)=>{let p=e,{onValueChange:o}=p,t=n(p,["onValueChange"]),r=e.value!=null,d=Yt(),i=ze(m=>m.search),u=ze(m=>m.selectedItemId),c=Ra();return D__namespace.useEffect(()=>{e.value!=null&&d.setState("search",e.value);},[e.value]),jsxRuntime.jsx("input",f(s({ref:a},t),{"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:false,"aria-autocomplete":"list",role:"combobox","aria-expanded":true,"aria-controls":c.listId,"aria-labelledby":c.labelId,"aria-activedescendant":u,id:c.inputId,type:"text",value:r?e.value:i,onChange:m=>{r||d.setState("search",m.target.value),o==null||o(m.target.value);}}))});vr.displayName="Input";var Ir=D__namespace.forwardRef((e,a)=>{let p=e,{children:o,label:t="Suggestions"}=p,r=n(p,["children","label"]),d=D__namespace.useRef(null),i=D__namespace.useRef(null),u=ze(m=>m.selectedItemId),c=Ra();return D__namespace.useEffect(()=>{if(i.current&&d.current){let m=i.current,g=d.current,h,k=new ResizeObserver(()=>{h=requestAnimationFrame(()=>{let C=m.offsetHeight;g.style.setProperty("--cmdk-list-height",C.toFixed(1)+"px");});});return k.observe(m),()=>{cancelAnimationFrame(h),k.unobserve(m);}}},[]),D__namespace.useEffect(()=>{let m=d.current;if(!m)return;let g=h=>{m.contains(h.target)&&h.stopPropagation();};return document.addEventListener("wheel",g,{capture:true}),()=>{document.removeEventListener("wheel",g,{capture:true});}},[]),jsxRuntime.jsx("div",f(s({ref:Da(d,a)},r),{"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":u,"aria-label":t,id:c.listId,children:dt(e,m=>jsxRuntime.jsx("div",{ref:Da(i,c.listInnerRef),"cmdk-list-sizer":"",children:m}))}))});Ir.displayName="List";var kr=D__namespace.forwardRef((e,a)=>ze(t=>t.filtered.count===0)?jsxRuntime.jsx("div",f(s({ref:a},e),{"cmdk-empty":"",role:"presentation"})):null);kr.displayName="Empty";var yr=D__namespace.forwardRef((e,a)=>{let i=e,{progress:o,children:t,label:r="Loading..."}=i,d=n(i,["progress","children","label"]);return jsxRuntime.jsx("div",f(s({ref:a},d),{"cmdk-loading":"",role:"progressbar","aria-valuenow":o,"aria-valuemin":0,"aria-valuemax":100,"aria-label":r,children:dt(e,u=>jsxRuntime.jsx("div",{"aria-hidden":true,children:u}))}))});yr.displayName="Loading";var Ke=Object.assign(hr,{List:Ir,Item:br,Input:vr,Group:Cr,Separator:Lr,Empty:kr,Loading:yr});function kd(e,a){let o=e.nextElementSibling;for(;o;){if(o.matches(a))return o;o=o.nextElementSibling;}}function yd(e,a){let o=e.previousElementSibling;for(;o;){if(o.matches(a))return o;o=o.previousElementSibling;}}function Sr(e){let a=D__namespace.useRef(e);return qe(()=>{a.current=e;}),a}var qe=typeof window=="undefined"?D__namespace.useEffect:D__namespace.useLayoutEffect;function ia(e){let a=D__namespace.useRef(void 0);return a.current===void 0&&(a.current=e()),a}function ze(e){let a=Yt(),[,o]=D__namespace.useState({}),t=D__namespace.useRef(e(a.snapshot()));return t.current=e(a.snapshot()),qe(()=>a.subscribe(()=>{let r=e(a.snapshot());Object.is(r,t.current)||(t.current=r,o({}));}),[a,e]),t.current}function Pr(e,a,o,t=[]){let r=D__namespace.useRef(void 0),d=Ra();return qe(()=>{var c;let i=(()=>{var p;for(let m of o){if(typeof m=="string")return m.trim();if(typeof m=="object"&&m!==null&&"current"in m)return m.current?(p=m.current.textContent)==null?void 0:p.trim():r.current}})(),u=t.map(p=>p.trim());d.value(e,i!=null?i:"",u),(c=a.current)==null||c.setAttribute(na,i!=null?i:""),r.current=i;}),r}var Sd=()=>{let[e,a]=D__namespace.useState(),o=ia(()=>new Map);return qe(()=>{o.current.forEach(t=>t()),o.current=new Map;},[e]),(t,r)=>{o.current.set(t,r),a({});}};function Pd(e){let a=e.type;return typeof a=="function"?a(e.props):"render"in a?a.render(e.props):e}function dt({asChild:e,children:a},o){return e&&D__namespace.isValidElement(a)?D__namespace.cloneElement(Pd(a),{ref:a.ref},o(a.props.children)):o(a)}function Da(...e){return a=>{e.forEach(o=>{typeof o=="function"?o(a):o!=null&&typeof o=="object"&&(o.current=a);});}}var wd={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function ua(r){var d=r,{className:e,orientation:a="horizontal",decorative:o=true}=d,t=n(d,["className","orientation","decorative"]);return jsxRuntime.jsx(radixUi.Separator.Root,s({"data-slot":"separator-root",decorative:o,orientation:a,className:l("shrink-0 bg-gray-stroke-muted data-[orientation=horizontal]:h-px data-[orientation=vertical]:h-full data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px",e)},t))}function Nd(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.Dialog.Root,s({"data-slot":"dialog"},e))}function Bd(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.Dialog.Trigger,s({"data-slot":"dialog-trigger"},e))}function Tr(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.Dialog.Portal,s({"data-slot":"dialog-portal"},e))}function Fd(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.Dialog.Close,s({"data-slot":"dialog-close"},e))}function Ar(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.Dialog.Overlay,s({"data-slot":"dialog-overlay",className:l("fixed inset-0 z-50 bg-black-48 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e)},a))}function Ed(d){var i=d,{className:e,overlayClassName:a,children:o,showCloseButton:t=true}=i,r=n(i,["className","overlayClassName","children","showCloseButton"]);return jsxRuntime.jsxs(Tr,{"data-slot":"dialog-portal",children:[jsxRuntime.jsx(Ar,{className:a}),jsxRuntime.jsxs(radixUi.Dialog.Content,f(s({"data-slot":"dialog-container",className:l("fixed left-1/2 top-1/2 z-50 flex max-h-[calc(100%-2rem)] w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 flex-col gap-0 overflow-y-auto rounded-xl border bg-background p-0 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-1/2 data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-1/2 sm:max-h-[85vh] sm:max-w-lg",e)},r),{children:[o,t&&jsxRuntime.jsxs(radixUi.Dialog.Close,{"data-slot":"dialog-close",className:"focus:outline-hidden absolute right-3 top-3 rounded-pill p-1.5 hover:bg-gray-background-soft disabled:pointer-events-none data-[state=open]:text-gray-foreground [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",children:[jsxRuntime.jsx(icons.CloseMd,{}),jsxRuntime.jsx("span",{className:"sr-only",children:"Close"})]})]}))]})}function Hd({containerClassName:e,className:a,children:o}){return jsxRuntime.jsx("div",{className:l("mb-auto overflow-y-auto",e),children:jsxRuntime.jsx("div",{"data-slot":"dialog-content",className:l("px-8 py-6 text-md leading-md text-primary-foreground",a),children:o})})}function Od(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:l("flex flex-col gap-2 px-8 py-6 text-center sm:text-left",e)},o)),a&&jsxRuntime.jsx(ua,{})]})}function Vd(t){var r=t,{className:e,separator:a=false}=r,o=n(r,["className","separator"]);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[a&&jsxRuntime.jsx(ua,{}),jsxRuntime.jsx("div",s({"data-slot":"dialog-footer",className:l("flex flex-col-reverse gap-2 px-8 py-6 sm:flex-row sm:justify-end",e)},o))]})}function qd(d){var i=d,{className:e,iconLeft:a,iconRight:o,children:t}=i,r=n(i,["className","iconLeft","iconRight","children"]);let u=c=>D.isValidElement(c)?D.cloneElement(c,{size:32,strokeWidth:2.2,className:"flex-shrink-0"}):c;return jsxRuntime.jsxs(radixUi.Dialog.Title,f(s({"data-slot":"dialog-title",className:l("flex items-center gap-3 text-title-md font-semibold leading-title-md !text-content-title",e)},r),{children:[a&&u(a),t,o&&u(o)]}))}function zd(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.Dialog.Description,s({"data-slot":"dialog-description",className:l("text-md leading-md text-content-paragraph",e)},a))}function Rr(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(Ke,s({className:l("flex size-full flex-col overflow-hidden rounded-md bg-surface-card text-gray-foreground",e),"data-slot":"command"},a))}function Mr(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(Ke.Input,s({className:l("flex h-12 w-full bg-transparent py-3 text-md font-medium outline-none placeholder:text-gray-foreground-muted disabled:cursor-not-allowed disabled:opacity-50",e),"data-slot":"command-input-wrapper"},a)),jsxRuntime.jsx(icons.SearchMagnifyingGlass,{className:"text-gray-foreground-muted",size:24})]})}function Nr(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(Ke.List,s({className:l("max-h-80 flex-1 overflow-y-auto overflow-x-hidden",e),"data-slot":"command-list","data-radix-scroll-area":""},a))}function Br(a){var e=n(a,[]);return jsxRuntime.jsx(Ke.Empty,s({className:"py-6 text-center text-sm","data-slot":"command-empty"},e))}function Fr(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(Ke.Group,s({className:l("overflow-hidden p-2 text-gray-foreground [&_[cmdk-group-heading]]:px-3 [&_[cmdk-group-heading]]:py-2 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-gray-foreground-muted",e),"data-slot":"command-group"},a))}function Er(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(Ke.Item,s({className:l("outline-hidden relative flex cursor-default select-none items-center gap-3 rounded-md px-2 py-1.5 text-sm data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",e),"data-slot":"command-item"},a))}function Hr(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.Popover.Root,s({"data-slot":"popover"},e))}function Or(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.Popover.Trigger,s({"data-slot":"popover-trigger"},e))}function Vr(d){var i=d,{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:l("outline-hidden z-50 w-72 rounded-md border bg-surface-card p-4 text-gray-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),"data-slot":"popover-content",sideOffset:o},r),{children:[r.children,t&&jsxRuntime.jsx(radixUi.Popover.Arrow,{className:"-my-px fill-gray-foreground drop-shadow-[0_1px_0_var(--border)]"})]}))})}var pa=D.createContext({invalid:false,disabled:false,open:false,setOpen:()=>{},values:[],toggleValue:()=>{},onCancelSelection:()=>{},listId:""});function jd({children:e,invalid:a=false,disabled:o=false,values:t,onValuesChange:r,open:d,onOpenChange:i,defaultValues:u=[]}){let[c,p]=D.useState(u),[m,g]=D.useState(false),[h,k]=D.useState([]),C=t!==void 0,R=d!==void 0,B=C?t:c,_=R?d:m,F=D.useCallback(v=>{let I=B.includes(v)?B.filter(H=>H!==v):[...B,v];C||p(I),r==null||r(I);},[B,C,r]),P=D.useCallback(v=>{o||(v&&k(B),R||g(v),i==null||i(v));},[o,B,R,i]),ee=D.useCallback(()=>{C||p(h),r==null||r(h);},[C,h,r]),z=ke(),b=D.useMemo(()=>({invalid:a,disabled:o,open:_,setOpen:P,values:B,toggleValue:F,onCancelSelection:ee,listId:z}),[a,o,_,P,B,F,ee,z]);return jsxRuntime.jsx(pa.Provider,{value:b,children:jsxRuntime.jsx(Hr,{open:_,onOpenChange:P,children:e})})}function Qd(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({className:l("group relative flex flex-col gap-2",e),"data-slot":"autocomplete-wrapper"},a))}function $d(r){var d=r,{className:e,placeholder:a="Selecione uma op\xE7\xE3o",children:o}=d,t=n(d,["className","placeholder","children"]);let{invalid:i,disabled:u,open:c,values:p,listId:m}=D.useContext(pa),g=ke(),h=p.length>0;return jsxRuntime.jsx(Or,{asChild:true,children:jsxRuntime.jsxs("button",f(s({"aria-controls":m,"aria-expanded":c,"aria-invalid":i||void 0,className:l("shadow-xs flex h-12 max-h-12 w-full items-center justify-between gap-2 rounded-md border-2 border-gray-stroke-muted bg-surface-card px-4 py-3 text-left text-md text-gray-foreground outline-none transition-[color,box-shadow] hover:border-gray-stroke-emphasis hover:ring-[3px] hover:ring-state-focus disabled:cursor-default disabled:bg-gray-background-soft-muted disabled:hover:border-gray-stroke-muted disabled:hover:ring-0 aria-[invalid]:border-feedback-error-stroke aria-[invalid]:hover:ring-[3px] aria-[invalid]:hover:ring-state-error [&>span]:line-clamp-1 [&_svg]:pointer-events-none [&_svg]:shrink-0",h&&!i&&"border-gray-stroke-emphasis",e),"data-slot":"autocomplete-trigger","data-placeholder":"",disabled:u,id:g,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 to({className:e,cancelLabel:a="Cancelar",confirmLabel:o="Concluir",onCancel:t,onConfirm:r}){let{setOpen:d,onCancelSelection:i,values:u}=D.useContext(pa);return jsxRuntime.jsxs("div",{className:l("flex items-center justify-between border-t border-gray-stroke-muted px-4 py-3",e),"data-slot":"autocomplete-content-footer",children:[jsxRuntime.jsx(Y,{size:"sm",variant:"regular-soft",onClick:()=>{i(),t==null||t(),d(false);},children:a}),jsxRuntime.jsx(Y,{size:"sm",variant:"emphasis",iconLeft:jsxRuntime.jsx(icons.Check,{strokeWidth:2.6}),onClick:()=>{r==null||r(u),d(false);},children:o})]})}function Jd({children:e,className:a,searchPlaceholder:o="Buscar...",emptyMessage:t="Nenhum resultado encontrado"}){let r=D.Children.toArray(e),d=r.filter(u=>D.isValidElement(u)&&u.type===to),i=r.filter(u=>!(D.isValidElement(u)&&u.type===to));return jsxRuntime.jsxs(Vr,{align:"start",className:l("w-full min-w-[var(--radix-popper-anchor-width)] border-gray-stroke-muted p-0",a),children:[jsxRuntime.jsxs(Rr,{children:[jsxRuntime.jsx(Mr,{placeholder:o}),jsxRuntime.jsxs(Nr,{id:D.useContext(pa).listId,children:[jsxRuntime.jsx(Br,{children:t}),i]})]}),d]})}function Yd({children:e,value:a,name:o,className:t,disabled:r=false}){let{values:d,toggleValue:i}=D.useContext(pa),u=d.includes(a);return jsxRuntime.jsxs(Er,{className:l("relative flex w-full cursor-default select-none items-center gap-3 rounded px-2 py-2.5 text-base font-medium text-gray-foreground outline-none hover:cursor-pointer hover:bg-secondary-background-soft-emphasis data-[selected=true]:bg-secondary-background-soft-emphasis",t),disabled:r,onSelect:()=>{i(a);},value:a,keywords:o?[o]:void 0,children:[jsxRuntime.jsx("span",{className:l("inline-flex size-[18px] shrink-0 items-center justify-center rounded-sm border-2 transition-all",u?"border-primary-background-fill bg-primary-background-fill":"border-gray-stroke-muted bg-surface-card"),children:u&&jsxRuntime.jsx(icons.Check,{size:12,strokeWidth:2.6,className:"text-primary-foreground-onfill"})}),e]})}function en(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(Fr,s({className:e},a))}function an(o){var t=o,{className:e}=t,a=n(t,["className"]);let{invalid:r}=D.useContext(pa);return jsxRuntime.jsx("span",s({className:l("-mt-1 text-xs",r?"text-feedback-error-foreground":"text-gray-foreground",e),"data-slot":"autocomplete-text"},a))}var rn={sm:"sm",md:"md",lg:"md",xl:"lg"},_r=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 Fa(d){var i=d,{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(Be,{size:rn[a||"md"],className:l("absolute -right-2 -top-1 z-10"),children:String(o)}),jsxRuntime.jsx(radixUi.Avatar.Root,f(s({"data-slot":"avatar",className:l(_r({size:a,className:e}))},r),{children:t}))]})}function Ea(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.Avatar.Image,s({"data-slot":"avatar-image",className:l("size-full object-cover",e)},a))}function Ha(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.Avatar.Fallback,f(s({"data-slot":"avatar-fallback",className:l("flex size-full items-center justify-center rounded-full bg-gray-background-soft text-sm font-semibold text-primary-foreground",e)},a),{children:a.children?a.children:jsxRuntime.jsx(icons.User,{className:"size-1/2"})}))}function Oa(a){var e=n(a,[]);return jsxRuntime.jsx("nav",s({"aria-label":"breadcrumb","data-slot":"breadcrumb"},e))}function Va(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("ol",s({className:l("line-clamp-1 flex flex-wrap items-center gap-1.5 text-sm font-medium text-gray-foreground [&_svg]:shrink-0",e),"data-slot":"breadcrumb-list"},a))}function it(r){var d=r,{className:e,icon:a,children:o}=d,t=n(d,["className","icon","children"]);return jsxRuntime.jsx("li",f(s({className:l("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 un(t){var r=t,{asChild:e,className:a}=r,o=n(r,["asChild","className"]);let d=e?radixUi.Slot.Root:"a";return jsxRuntime.jsx(d,s({className:l("transition-colors hover:underline",a),"data-slot":"breadcrumb-link"},o))}function ro(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("span",s({"aria-current":"page","aria-disabled":"true",className:l("font-semibold text-primary-foreground",e),"data-slot":"breadcrumb-page",role:"link"},a))}function so(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 fn(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsxs("span",f(s({"aria-hidden":"true",className:l("flex size-5 items-center justify-center",e),"data-slot":"breadcrumb-ellipsis",role:"presentation"},a),{children:[jsxRuntime.jsx(icons.MoreHorizontal,{className:"text-gray-foreground",size:18}),jsxRuntime.jsx("span",{className:"sr-only",children:"More"})]}))}function je(d){var i=d,{className:e,indicatorClassName:a,label:o,value:t}=i,r=n(i,["className","indicatorClassName","label","value"]);let u=Math.round(t||0);return 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:l("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:l("relative -top-[0.5px] flex h-0.5 w-full flex-1 bg-primary-stroke transition-all",a),style:{transform:`translateX(-${100-(t||0)}%)`}})}))]})}function io(m){var g=m,{className:e,indicatorClassName:a,trackClassName:o,valueClassName:t,label:r,labelClassName:d,value:i=0,size:u=96,strokeWidth:c=2}=g,p=n(g,["className","indicatorClassName","trackClassName","valueClassName","label","labelClassName","value","size","strokeWidth"]);let h=typeof i=="string",k=h?0:Math.round(i),C=(u-c)/2,R=C*2*Math.PI,B=R-k/100*R,_=Math.max(18,Math.min(u/5)),F=Math.max(10,Math.min(u/9,16));return jsxRuntime.jsxs("div",f(s({"data-slot":"progress-circle",className:l("relative inline-flex items-center justify-center",e),style:{width:u,height:u}},p),{children:[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:C,stroke:"currentColor",strokeWidth:c,fill:"none",className:l("text-gray-stroke-muted",o)}),jsxRuntime.jsx("circle",{"data-slot":"progress-circle-indicator",cx:u/2,cy:u/2,r:C,stroke:"currentColor",strokeWidth:c,fill:"none",strokeDasharray:R,strokeDashoffset:B,strokeLinecap:"round",className:l("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:l("mr-px font-semibold",t),style:{fontSize:`${_}px`},children:h?i:k}),!h&&"%"]}),r&&jsxRuntime.jsx("div",{"data-slot":"progress-circle-label",className:l("text-center font-medium leading-tight text-gray-foreground-muted",d),style:{fontSize:`${F}px`},children:r})]})]}))}var qa=D.createContext(null);function gn(d){var i=d,{className:e,done:a,postponed:o,skipped:t}=i,r=n(i,["className","done","postponed","skipped"]);let u=D.useMemo(()=>({done:a,postponed:o,skipped:t}),[a,o,t]);return jsxRuntime.jsx(qa.Provider,{value:u,children:jsxRuntime.jsx("div",s({"data-slot":"card-week",className:l("flex flex-col overflow-hidden rounded-xl border border-gray-stroke-muted text-gray-foreground-muted",e)},r))})}function xn(d){var i=d,{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:l("flex min-h-12 items-center gap-4 bg-primary-background-soft-muted px-6 py-3",e)},r),{children:[jsxRuntime.jsx(Oa,{className:"flex-1 overflow-hidden",children:jsxRuntime.jsx(Va,{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(fe,{variant:"regular-soft",icon:t,children:o})]}))}function hn(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"card-week-container",className:l("flex flex-1 flex-col gap-5 bg-surface-card px-6 py-5",e)},a))}function bn(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"card-week-header",className:l("flex justify-between [&.border-b]:pb-6",e)},a))}function Cn(o){var t=o,{className:e}=t,a=n(t,["className"]);let r=D.useContext(qa),d=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:l("text-lg font-semibold leading-lg text-primary-foreground",(d||i||u)&&"text-primary-foreground-muted line-through",e)},a))}function Ln(o){var t=o,{className:e}=t,a=n(t,["className"]);let r=D.useContext(qa),d=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:l("text-xs font-semibold leading-xs text-gray-foreground",(d||i||u)&&"text-gray-foreground-muted",e)},a))}function vn(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"card-week-tags",className:l("flex flex-wrap items-center gap-2 [[data-slot=card-week-header]:not(:has([data-slot=card-week-progress]))+&]:mt-6",e)},a))}function In(t){var r=t,{className:e,value:a}=r,o=n(r,["className","value"]);return jsxRuntime.jsx("div",{"data-slot":"card-week-progress-circle",className:l("flex flex-1 justify-end",e),children:jsxRuntime.jsx(io,s({size:104,value:a},o))})}function kn(r){var d=r,{className:e,value:a,indicatorClassName:o}=d,t=n(d,["className","value","indicatorClassName"]);let i=D.useContext(qa),u=i==null?void 0:i.done;return jsxRuntime.jsx("div",{"data-slot":"card-week-progress",className:l("flex flex-1",e),children:jsxRuntime.jsx(je,f(s({},t),{value:u?100:a,indicatorClassName:l(u&&"bg-secondary-stroke-emphasis",o)}))})}function yn(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"card-week-footer",className:l("mt-auto flex flex-col gap-2",e)},a))}function Sn(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:l("flex flex-col text-xs font-medium",e)},o),{children:a}))}function Pn(r){var d=r,{className:e,children:a,isTime:o}=d,t=n(d,["className","children","isTime"]);return jsxRuntime.jsxs("div",f(s({"data-slot":"card-week-text",className:l("flex items-center gap-1.5",o?"text-secondary-foreground":"text-gray-foreground-muted",e)},t),{children:[o&&jsxRuntime.jsx(icons.TimeRemaining,{size:16}),jsxRuntime.jsx("span",{children:a})]}))}function wn(o){var t=o,{className:e}=t,a=n(t,["className"]);let r=D.useContext(qa),d=r==null?void 0:r.done,i=r==null?void 0:r.postponed,u=r==null?void 0:r.skipped;return !d&&!i&&!u?null:i||u?jsxRuntime.jsxs("div",f(s({"data-slot":"card-week-status",className:l("ml-auto 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-feedback-warning-foreground",children:jsxRuntime.jsx(icons.Check,{size:12,strokeWidth:1.67})}),jsxRuntime.jsx("div",{className:"font-semibold text-feedback-warning-foreground",children:i?"Adiado":"Pulado"})]})):jsxRuntime.jsxs("div",f(s({"data-slot":"card-week-status",className:l("ml-auto 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 text-secondary-foreground",children:"Conclu\xEDdo"})]}))}function Tn(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"card-week-actions",className:l("flex flex-wrap items-center justify-end gap-2 pt-4",e)},a))}var Kr=classVarianceAuthority.cva("relative z-0 flex flex-col gap-4 overflow-hidden rounded-2xl border border-gray-stroke-muted p-6",{variants:{variant:{default:"bg-surface-card",blocked:"bg-gray-background-soft"}},defaultVariants:{variant:"default"}}),mt=classVarianceAuthority.cva("text-xs font-medium leading-xs text-gray-foreground-muted"),Zr=D.createContext(null);function gt(){var e;return (e=D.useContext(Zr))!=null?e:{}}function Bn(i){var u=i,{className:e,variant:a,availableDate:o,showStack:t=true,children:r}=u,d=n(u,["className","variant","availableDate","showStack","children"]);let c=D.useMemo(()=>({variant:a,availableDate:o}),[a,o]),p=l("pointer-events-none absolute bottom-0 z-0 max-h-[20%] rounded-2xl border border-gray-stroke-muted",a==="blocked"?"bg-gray-background-soft":"bg-surface-card"),m=jsxRuntime.jsx("div",f(s({"data-slot":"card-module",className:l(Kr({variant:a}),e)},d),{children:r}));return jsxRuntime.jsx(Zr.Provider,{value:c,children:t?jsxRuntime.jsxs("div",{"data-slot":"card-module-stack",className:"relative pt-[17px]",children:[jsxRuntime.jsx("div",{"aria-hidden":true,className:l(p,"inset-x-[34px] top-0")}),jsxRuntime.jsx("div",{"aria-hidden":true,className:l(p,"inset-x-4 top-2")}),m]}):m})}function Fn(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"card-module-header",className:l("flex flex-col",e)},a))}function En(r){var d=r,{className:e,children:a,count:o}=d,t=n(d,["className","children","count"]);let{variant:i}=gt();return jsxRuntime.jsxs("div",f(s({"data-slot":"card-module-label",className:l("flex items-center justify-between gap-2 text-xs font-medium leading-xs",i==="blocked"?"text-gray-foreground-muted":"text-content-paragraph",e)},t),{children:[jsxRuntime.jsx("span",{children:a}),o&&jsxRuntime.jsx("span",{className:"text-sm leading-sm text-gray-foreground-muted",children:o})]}))}function Hn(o){var t=o,{className:e}=t,a=n(t,["className"]);let{variant:r}=gt();return jsxRuntime.jsx("div",s({"data-slot":"card-module-title",className:l("line-clamp-2 min-h-14 max-w-[70%] text-lg font-semibold",r==="blocked"?"text-primary-foreground-muted":"text-primary-foreground",e)},a))}function On(t){var r=t,{className:e,progress:a}=r,o=n(r,["className","progress"]);let{variant:d}=gt(),i=Number.isFinite(a)?Math.min(100,Math.max(0,a)):0,u=Math.round(i),c=d==="blocked"?jsxRuntime.jsx("div",{"data-slot":"card-module-status",className:mt(),children:"N\xE3o iniciado"}):i>=100?jsxRuntime.jsx("div",{"data-slot":"card-module-status",className:mt(),children:"Conclu\xEDdo"}):jsxRuntime.jsxs("div",{"data-slot":"card-module-status",className:mt(),children:[jsxRuntime.jsxs("span",{className:"font-semibold text-gray-foreground",children:[u,"%"]})," ","de progresso"]});return jsxRuntime.jsxs("div",f(s({"data-slot":"card-module-progress",className:l("flex flex-col gap-2",e)},o),{children:[c,d!=="blocked"&&jsxRuntime.jsx(je,{value:i,indicatorClassName:i===100?"bg-secondary-stroke-emphasis":"bg-primary-stroke"})]}))}function Vn(t){var r=t,{className:e,children:a}=r,o=n(r,["className","children"]);let{variant:d,availableDate:i}=gt();return d!=="blocked"||!i?null:jsxRuntime.jsxs("div",f(s({"data-slot":"card-module-footer",className:l("flex flex-col gap-3",e)},o),{children:[jsxRuntime.jsx("div",{className:"border-t border-gray-stroke-muted"}),jsxRuntime.jsxs("div",{className:"flex items-center justify-between",children:[jsxRuntime.jsxs(fe,{variant:"gray-soft",icon:jsxRuntime.jsx(icons.Lock,{}),children:["Dispon\xEDvel em ",i]}),a]})]}))}function qn(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(Y,s({"data-slot":"card-module-button",size:"sm",iconLeft:jsxRuntime.jsx(icons.ArrowRightMd,{}),className:l(e)},a))}function zn(t){var r=t,{className:e,children:a}=r,o=n(r,["className","children"]);return jsxRuntime.jsx("div",f(s({"data-slot":"card-module-action",className:l("flex items-center justify-end",e)},o),{children:a}))}var jr=D.createContext({animation:void 0});function fo(o){var t=o,{animation:e}=t,a=n(t,["animation"]);return jsxRuntime.jsx(jr.Provider,{value:D.useMemo(()=>({animation:e}),[e]),children:jsxRuntime.jsx(radixUi.Collapsible.Root,s({"data-slot":"collapsible"},a))})}function co(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.Collapsible.Trigger,s({"data-slot":"collapsible-trigger"},e))}function po(o){var t=o,{className:e}=t,a=n(t,["className"]);let{animation:r}=D.useContext(jr),d={accordion:"overflow-hidden data-[state=closed]:animate-collapsible-up data-[state=open]:animate-collapsible-down",fade:"data-[state=closed]:animate-fade-out data-[state=open]:animate-fade-in"};return jsxRuntime.jsx(radixUi.Collapsible.Content,s({"data-slot":"collapsible-content",className:l(r&&d[r],e)},a))}var $n=classVarianceAuthority.cva("flex flex-col overflow-hidden rounded-2xl border border-gray-stroke-muted",{variants:{variant:{default:"bg-surface-card",blocked:"bg-gray-background-soft"}},defaultVariants:{variant:"default"}}),Qr=D.createContext(null);function _a(){var e;return (e=D.useContext(Qr))!=null?e:{}}function Jn(d){var i=d,{className:e,variant:a,availableDate:o,children:t}=i,r=n(i,["className","variant","availableDate","children"]);let u=D.useMemo(()=>({variant:a,availableDate:o}),[a,o]);return jsxRuntime.jsx(Qr.Provider,{value:u,children:jsxRuntime.jsx(fo,f(s({"data-slot":"card-topic",animation:"accordion",className:l($n({variant:a}),e)},r),{children:t}))})}function Yn(t){var r=t,{className:e,children:a}=r,o=n(r,["className","children"]);let{variant:d}=_a(),i=d==="blocked";return jsxRuntime.jsx(co,f(s({"data-slot":"card-topic-trigger",disabled:i,className:l("group flex min-h-16 w-full select-none flex-wrap items-center gap-4 p-4 text-left","[&>*:first-child]:flex-1","disabled:pointer-events-none disabled:cursor-default",!i&&"cursor-pointer",e)},o),{children:a}))}function ei(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"card-topic-column",className:l("flex flex-wrap items-center gap-4",e)},a))}function ai(t){var r=t,{className:e,children:a}=r,o=n(r,["className","children"]);let{variant:d}=_a();return jsxRuntime.jsx("div",f(s({"data-slot":"card-topic-number",className:l("flex size-[30px] shrink-0 items-center justify-center rounded-full text-md font-medium text-primary-foreground-onfill",d==="blocked"?"bg-primary-foreground-muted":"bg-primary-foreground",e)},o),{children:a}))}function ti(o){var t=o,{className:e}=t,a=n(t,["className"]);let{variant:r}=_a();return jsxRuntime.jsx("div",s({"data-slot":"card-topic-title",className:l("min-w-0 flex-1 text-md font-semibold leading-md",r==="blocked"?"text-primary-foreground-muted":"text-primary-foreground",e)},a))}function oi(t){var r=t,{className:e,progress:a}=r,o=n(r,["className","progress"]);let{variant:d,availableDate:i}=_a();if(d==="blocked")return i?jsxRuntime.jsx("div",f(s({"data-slot":"card-topic-progress",className:l("flex",e)},o),{children:jsxRuntime.jsxs(fe,{variant:"gray-soft",icon:jsxRuntime.jsx(icons.Lock,{"aria-hidden":true}),children:["Dispon\xEDvel em ",i]})})):null;if(a===void 0)return null;let u=Math.min(100,Math.max(0,a)),c=Math.round(u),p=u>=100;return jsxRuntime.jsxs("div",f(s({"data-slot":"card-topic-progress",className:l("flex min-w-[180px] flex-col gap-2",e)},o),{children:[jsxRuntime.jsx("div",{className:"text-xs font-medium leading-xs text-gray-foreground-muted",children:p?"Conclu\xEDdo":jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("span",{className:"font-semibold text-gray-foreground",children:[c,"%"]})," de progresso"]})}),jsxRuntime.jsx(je,{value:u,indicatorClassName:p?"bg-secondary-stroke-emphasis":"bg-primary-stroke"})]}))}function ri(t){var r=t,{className:e,children:a}=r,o=n(r,["className","children"]);let{variant:d}=_a();return jsxRuntime.jsxs("div",f(s({"data-slot":"card-topic-count",className:l("flex shrink-0 items-center gap-2",e)},o),{children:[jsxRuntime.jsx("span",{className:"text-sm font-medium leading-sm text-gray-foreground-muted",children:a}),jsxRuntime.jsx(icons.ChevronDown,{"aria-hidden":true,size:18,strokeWidth:2.4,className:l("shrink-0 text-gray-foreground",d!=="blocked"&&"transition-transform duration-200 group-data-[state=open]:rotate-180")})]}))}function si(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(po,s({"data-slot":"card-topic-content",className:l("px-4 pb-4",e)},a))}function $e(t){var r=t,{className:e,label:a="Medway"}=r,o=n(r,["className","label"]);let d=D.useId();return jsxRuntime.jsxs("svg",f(s({"data-slot":"fallback-image",viewBox:"0 0 320 167",preserveAspectRatio:"xMidYMid slice",role:"img","aria-label":a,className:l("size-full",e)},o),{children:[jsxRuntime.jsx("defs",{children:jsxRuntime.jsxs("radialGradient",{id:d,cx:"50%",cy:"42%",r:"78%",children:[jsxRuntime.jsx("stop",{offset:"0%",stopColor:"#15397A"}),jsxRuntime.jsx("stop",{offset:"55%",stopColor:"#06245E"}),jsxRuntime.jsx("stop",{offset:"100%",stopColor:"#021536"})]})}),jsxRuntime.jsx("rect",{width:"320",height:"167",fill:`url(#${d})`}),jsxRuntime.jsx("g",{transform:"translate(85.5 62.7) scale(1.38)",fill:"#FFFFFF",children:jsxRuntime.jsx("path",{d:"M104.229 3.90299H107.408C107.836 3.90299 108.122 4.34302 107.948 4.73464L100.413 21.6491C100.318 21.8625 100.106 22 99.8724 22H96.6935C96.2653 22 95.9791 21.56 96.153 21.1684L97.89 17.2687L92.3798 4.90074C92.1706 4.43102 92.5141 3.90189 93.0281 3.90189H95.8779C96.1585 3.90189 96.4128 4.0669 96.5262 4.32322L100.09 12.325L103.686 4.25391C103.781 4.0405 103.993 3.90299 104.227 3.90299H104.229ZM91.9043 11.0005V17.3875C91.9043 17.7791 91.5862 18.097 91.1943 18.097H88.9455C88.5537 18.097 88.2356 17.7791 88.2356 17.3875V17.2841C87.1547 17.8957 85.8999 18.2367 84.5647 18.2147C80.7496 18.152 77.6159 15.0928 77.4706 11.2822C77.3132 7.16906 80.6043 3.78419 84.6847 3.78419C88.765 3.78419 91.9043 7.01505 91.9043 10.9994V11.0005ZM88.0573 11.0005C88.0573 9.13926 86.5471 7.62888 84.6836 7.62888C82.8201 7.62888 81.3099 9.13816 81.3099 11.0005C81.3099 12.8629 82.8201 14.3722 84.6836 14.3722C86.5471 14.3722 88.0573 12.8629 88.0573 11.0005ZM75.4519 12.1578V4.61363C75.4519 4.22201 75.1338 3.9041 74.7419 3.9041H72.3159C71.9241 3.9041 71.606 4.22201 71.606 4.61363V12.2282C71.606 13.4273 70.6153 14.3997 69.4089 14.3711C68.2378 14.3436 67.3154 13.358 67.3154 12.1875V4.61363C67.3154 4.22201 66.9973 3.9041 66.6054 3.9041H64.1794C63.7876 3.9041 63.4695 4.22201 63.4695 4.61363V12.2282C63.4695 13.4273 62.4788 14.3997 61.2724 14.3711C60.1013 14.3436 59.1789 13.358 59.1789 12.1875V4.61363C59.1789 4.22201 58.8608 3.9041 58.4689 3.9041H56.0429C55.6511 3.9041 55.333 4.22201 55.333 4.61363V12.1578C55.333 15.4778 58.0507 18.2422 61.3726 18.2158C62.9235 18.2037 64.3346 17.5998 65.3935 16.6196C66.4524 17.5998 67.8635 18.2037 69.4144 18.2158C72.7364 18.2422 75.4541 15.4767 75.4541 12.1578H75.4519ZM49.7094 0H51.9582C52.35 0 52.6682 0.317916 52.6682 0.709535V17.3875C52.6682 17.7791 52.35 18.097 51.9582 18.097H49.7094C49.3176 18.097 48.9995 17.7791 48.9995 17.3875V17.2841C47.9505 17.877 46.7397 18.2158 45.4486 18.2158C41.3671 18.2158 38.0771 14.832 38.2345 10.7178C38.3798 6.90834 41.5135 3.84799 45.3286 3.78529C46.6648 3.76329 47.9186 4.1043 48.9995 4.71594V0.709535C48.9995 0.317916 49.3176 0 49.7094 0ZM48.8223 11.0005C48.8223 9.13926 47.3121 7.62888 45.4486 7.62888C43.585 7.62888 42.0749 9.13816 42.0749 11.0005C42.0749 12.8629 43.585 14.3722 45.4486 14.3722C47.3121 14.3722 48.8223 12.8629 48.8223 11.0005ZM26.4139 12.2425C26.1508 12.2425 25.9769 12.5186 26.0947 12.7529C26.6979 13.9608 27.9031 14.7847 29.2945 14.7847C30.2576 14.7847 31.1326 14.3887 31.7799 13.7452C31.9109 13.6143 32.0903 13.5428 32.2752 13.5428H34.8806C35.4265 13.5428 35.7689 14.1324 35.497 14.6054C34.2587 16.7626 31.945 18.2147 29.2945 18.2147C25.3396 18.2147 22.1343 14.9838 22.1343 10.9994C22.1343 7.01505 25.3407 3.78419 29.2945 3.78419C33.2482 3.78419 36.4546 7.01505 36.4546 10.9994C36.4546 11.1997 36.4469 11.3966 36.4304 11.5924C36.4007 11.9598 36.0914 12.2414 35.7226 12.2414H26.4139V12.2425ZM26.2356 8.98855C26.0947 9.22286 26.2686 9.52208 26.5427 9.52208H32.0451C32.3192 9.52208 32.4931 9.22396 32.3522 8.98855C31.7138 7.9237 30.5823 7.21526 29.2945 7.21526C28.0066 7.21526 26.8751 7.9237 26.2367 8.98855H26.2356ZM14.0815 3.78529C12.5306 3.79739 11.1194 4.40132 10.0605 5.38147C9.00165 4.40132 7.59054 3.79739 6.03963 3.78529C2.71767 3.75889 0 6.52443 0 9.84329V17.3875C0 17.7791 0.318107 18.097 0.709962 18.097H3.13594C3.52779 18.097 3.8459 17.7791 3.8459 17.3875V9.81359C3.8459 8.64313 4.7683 7.65748 5.93946 7.62998C7.14585 7.60138 8.13649 8.57383 8.13649 9.77289V17.3875C8.13649 17.7791 8.4546 18.097 8.84645 18.097H11.2724C11.6643 18.097 11.9824 17.7791 11.9824 17.3875V9.81359C11.9824 8.64313 12.9048 7.65748 14.076 7.62998C15.2823 7.60138 16.273 8.57383 16.273 9.77289V17.3875C16.273 17.7791 16.5911 18.097 16.9829 18.097H19.4089C19.8008 18.097 20.1189 17.7791 20.1189 17.3875V9.84329C20.1189 6.52333 17.4012 3.75889 14.0793 3.78529H14.0815Z"})})]}))}function fi(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"card-continue",className:l("flex gap-3 bg-transparent",e)},a))}function ci(d){var i=d,{className:e,src:a,alt:o="",children:t}=i,r=n(i,["className","src","alt","children"]);return jsxRuntime.jsx("div",f(s({"data-slot":"card-continue-image",className:l("relative h-[122px] w-[200px] shrink-0 overflow-hidden rounded-md bg-gray-background-soft",e)},r),{children:a?jsxRuntime.jsx("img",{src:a,alt:o,loading:"lazy",className:"absolute inset-0 size-full object-cover"}):t!=null?t:jsxRuntime.jsx($e,{className:"absolute inset-0"})}))}function pi(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"card-continue-content",className:l("flex min-w-0 flex-1 flex-col justify-between gap-2",e)},a))}function mi(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"card-continue-header",className:l("flex min-w-0 flex-col gap-1",e)},a))}function gi({items:e,className:a}){return jsxRuntime.jsx(Oa,{"data-slot":"card-continue-breadcrumb",className:"overflow-hidden",children:jsxRuntime.jsx(Va,{className:l("flex-nowrap gap-1 text-xs font-medium leading-xs [&>[data-slot=breadcrumb-item]:last-of-type>span]:min-w-0 [&>[data-slot=breadcrumb-item]:last-of-type>span]:overflow-hidden [&>[data-slot=breadcrumb-item]:last-of-type]:min-w-0 [&>[data-slot=breadcrumb-item]:last-of-type]:flex-1 [&>[data-slot=breadcrumb-item]:last-of-type_[data-slot=breadcrumb-page]]:truncate [&_[data-slot=breadcrumb-page]]:block",a),children:e.map((o,t)=>jsxRuntime.jsx(D.Fragment,{children:t<e.length-1?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(it,{className:"text-content-paragraph",children:o}),jsxRuntime.jsx(so,{children:jsxRuntime.jsx(icons.ChevronRight,{size:12,className:"text-gray-foreground"})})]}):jsxRuntime.jsx(it,{children:jsxRuntime.jsx(ro,{className:"font-medium text-content-paragraph",children:o})})},`${o}-${t}`))})})}function xi(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"card-continue-title",className:l("line-clamp-2 text-lg font-semibold leading-lg text-primary-foreground",e)},a))}function hi(t){var r=t,{className:e,children:a}=r,o=n(r,["className","children"]);return jsxRuntime.jsx(Y,f(s({"data-slot":"card-continue-button",variant:"emphasis-soft",size:"sm",iconRight:jsxRuntime.jsx(icons.ArrowRightSm,{}),className:l("self-start",e)},o),{children:a}))}var Jr=classVarianceAuthority.cva("flex flex-col overflow-hidden rounded-2xl border border-gray-stroke-muted",{variants:{variant:{default:"bg-surface-card",blocked:"bg-gray-background-soft"},orientation:{vertical:"",horizontal:"lg:flex-row lg:flex-wrap lg:items-center lg:gap-x-6 lg:gap-y-3 lg:p-3 lg:pr-6"}},defaultVariants:{variant:"default",orientation:"vertical"}}),Yr=D.createContext(null);function Je(){var e;return (e=D.useContext(Yr))!=null?e:{}}function Pi(i){var u=i,{className:e,variant:a,orientation:o="vertical",availableDate:t,children:r}=u,d=n(u,["className","variant","orientation","availableDate","children"]);let c=D.useMemo(()=>({variant:a,orientation:o,availableDate:t}),[a,o,t]);return jsxRuntime.jsx(Yr.Provider,{value:c,children:jsxRuntime.jsx("div",f(s({"data-slot":"card-lesson",className:l(Jr({variant:a,orientation:o}),e)},d),{children:r}))})}function wi(d){var i=d,{className:e,src:a,alt:o="",children:t}=i,r=n(i,["className","src","alt","children"]);let{variant:u,orientation:c}=Je(),p=c==="horizontal",m=l("h-[153px] w-full overflow-hidden rounded-md",p&&"lg:h-[120px] lg:w-[200px]",u==="blocked"&&"opacity-20"),g;return t?g=jsxRuntime.jsx("div",{className:l(m,"bg-gray-background-soft"),children:t}):a?g=jsxRuntime.jsx("img",{src:a,alt:o,loading:"lazy",className:l(m,"object-cover")}):g=jsxRuntime.jsx($e,{className:m}),jsxRuntime.jsx("div",f(s({"data-slot":"card-lesson-image",className:l("px-3 pt-3",p&&"lg:shrink-0 lg:p-0",e)},r),{children:g}))}function Ti(o){var t=o,{className:e}=t,a=n(t,["className"]);let{orientation:r}=Je();return jsxRuntime.jsx("div",s({"data-slot":"card-lesson-content",className:l("flex flex-col gap-4 px-6 pt-4",r==="horizontal"&&"lg:min-w-[12rem] lg:flex-1 lg:justify-center lg:p-0",e)},a))}function Ai(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"card-lesson-header",className:l("flex flex-col",e)},a))}function Di(o){var t=o,{className:e}=t,a=n(t,["className"]);let{variant:r}=Je();return jsxRuntime.jsx("div",s({"data-slot":"card-lesson-label",className:l("text-xs font-medium leading-xs",r==="blocked"?"text-gray-foreground-muted":"text-content-paragraph",e)},a))}function Ri(o){var t=o,{className:e}=t,a=n(t,["className"]);let{variant:r}=Je();return jsxRuntime.jsx("div",s({"data-slot":"card-lesson-title",className:l("line-clamp-2 text-lg font-semibold leading-lg",r==="blocked"?"text-primary-foreground-muted":"text-primary-foreground",e)},a))}function Mi(t){var r=t,{className:e,children:a}=r,o=n(r,["className","children"]);return jsxRuntime.jsx("div",f(s({"data-slot":"card-lesson-duration",className:l("flex items-center gap-1 text-sm font-medium leading-sm text-gray-foreground-muted",e)},o),{children:a}))}function Ni(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"card-lesson-icons",className:l("flex items-center gap-2.5",e)},a))}function Bi(r){var d=r,{className:e,icon:a,badge:o}=d,t=n(d,["className","icon","badge"]);let{variant:i}=Je(),u=o!=null&&o!==""&&Number(o)>=2;return jsxRuntime.jsxs("div",f(s({"data-slot":"card-lesson-icon",className:l("relative flex size-10 shrink-0 items-center justify-center rounded-pill text-gray-foreground-muted [&_svg]:size-5",i==="blocked"?"bg-gray-background-soft-muted":"bg-gray-background-soft",e)},t),{children:[a,u?jsxRuntime.jsx(Be,{size:"sm",className:"absolute -right-1 -top-1 bg-gray-stroke text-primary-foreground",children:String(o)}):null]}))}function Fi(t){var r=t,{className:e,children:a}=r,o=n(r,["className","children"]);let{variant:d,availableDate:i,orientation:u}=Je();return jsxRuntime.jsxs("div",f(s({"data-slot":"card-lesson-footer",className:l("mt-auto flex flex-wrap items-center justify-between gap-4 px-6 pb-6 pt-4",u==="horizontal"&&"lg:ml-auto lg:mt-0 lg:shrink-0 lg:justify-start lg:p-0",e)},o),{children:[d==="blocked"&&i?jsxRuntime.jsxs(fe,{variant:"gray-soft",icon:jsxRuntime.jsx(icons.Lock,{}),children:["Dispon\xEDvel em ",i]}):null,a]}))}function Ei(t){var r=t,{className:e,status:a}=r,o=n(r,["className","status"]);let d=a==="completed";return jsxRuntime.jsx(fe,f(s({"data-slot":"card-lesson-status",variant:d?"success-soft":"warning-soft",icon:d?jsxRuntime.jsx(icons.Check,{}):void 0,className:e},o),{children:d?"Conclu\xEDdo":"Iniciado"}))}function Hi(r){var d=r,{className:e,children:a,containerClassName:o}=d,t=n(d,["className","children","containerClassName"]);let{variant:i}=Je();return jsxRuntime.jsx(Y,f(s({"data-slot":"card-lesson-button",variant:"regular",size:"sm",disabled:i==="blocked",containerClassName:l("ml-auto",o),className:l("rounded-full disabled:bg-gray-background-soft-muted disabled:text-gray-foreground-muted",e)},t),{children:a}))}var es=D.createContext({orientation:"vertical"}),_i=classVarianceAuthority.cva("flex border",{variants:{variant:{default:"rounded-lg border-secondary-stroke bg-secondary-background-soft-muted p-6",read:"rounded-lg border-gray-stroke-muted bg-surface-card p-6",compact:"rounded-xl border-gray-stroke-muted bg-surface-card p-4"},orientation:{vertical:"flex-col gap-6",horizontal:"flex-row gap-10"}},defaultVariants:{variant:"default",orientation:"vertical"}});function Ui(d){var i=d,{className:e,isRead:a,variant:o,orientation:t="vertical"}=i,r=n(i,["className","isRead","variant","orientation"]);let u=a?"read":o!=null?o:"default";return jsxRuntime.jsx(es.Provider,{value:{orientation:t!=null?t:"vertical"},children:jsxRuntime.jsx("div",s({"data-slot":"card-news",className:l(_i({variant:u,orientation:t}),e)},r))})}function Gi(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"card-news-body",className:l("flex flex-1 flex-col gap-6 min-[1280px]:flex-auto",e)},a))}function Wi(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"card-news-header",className:l("flex w-full flex-col items-start justify-between gap-4 md:flex-row md:items-center",e)},a))}function Xi(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"card-news-tags",className:l("flex flex-wrap items-center gap-x-4 gap-y-3",e)},a))}function Ki(r){var d=r,{className:e,icon:a=jsxRuntime.jsx(icons.Calendar,{}),children:o}=d,t=n(d,["className","icon","children"]);return jsxRuntime.jsxs("div",f(s({"data-slot":"card-news-date",className:l("flex shrink-0 items-center gap-1.5 text-xs font-semibold leading-xs text-primary-foreground [&>svg]:size-4",e)},t),{children:[a,o&&jsxRuntime.jsx("span",{children:o})]}))}function Zi(d){var i=d,{className:e,src:a,alt:o="",children:t}=i,r=n(i,["className","src","alt","children"]);let{orientation:u}=D.useContext(es);return jsxRuntime.jsx("div",f(s({"data-slot":"card-news-image",className:l("relative overflow-hidden bg-gray-background-soft",u==="vertical"?"h-[300px] w-full rounded-lg":"hidden w-[482px] rounded-xl min-[1280px]:block",e)},r),{children:a?jsxRuntime.jsx("img",{src:a,alt:o,loading:"lazy",className:"absolute inset-0 size-full object-cover"}):t!=null?t:jsxRuntime.jsx($e,{className:"absolute inset-0"})}))}function ji(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"card-news-content",className:l("flex w-full flex-col gap-6",e)},a))}function Qi(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"card-news-title",className:l("-mb-2 line-clamp-2 text-title-xs font-semibold leading-title-xs text-primary-foreground",e)},a))}function $i(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"card-news-description",className:l("line-clamp-3 text-md leading-md text-primary-foreground",e)},a))}function Ji(r){var d=r,{className:e,label:a,children:o}=d,t=n(d,["className","label","children"]);return jsxRuntime.jsxs("div",f(s({"data-slot":"card-news-resources",className:l("flex flex-col gap-2",e)},t),{children:[jsxRuntime.jsx("span",{className:"text-sm font-semibold leading-sm text-primary-foreground-muted",children:a}),jsxRuntime.jsx("div",{className:"flex flex-wrap gap-2",children:o})]}))}function Yi(t){var r=t,{className:e,children:a}=r,o=n(r,["className","children"]);return jsxRuntime.jsx(Y,f(s({"data-slot":"card-news-resource-item",variant:"outlined",size:"sm",className:l("bg-surface-card pointer-events-none",e)},o),{children:a}))}function eu(e){return e.trim().split(/\s+/).slice(0,2).map(a=>{var o;return (o=a[0])!=null?o:""}).join("").toUpperCase()}function au(u){var c=u,{className:e,src:a,alt:o,name:t,role:r,children:d}=c,i=n(c,["className","src","alt","name","role","children"]);var p;return jsxRuntime.jsx("div",f(s({"data-slot":"card-news-author",className:l("flex items-center gap-2",e)},i),{children:d!=null?d:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs(Fa,{size:"md",children:[a&&jsxRuntime.jsx(Ea,{src:a,alt:(p=o!=null?o:t)!=null?p:""}),jsxRuntime.jsx(Ha,{children:t?eu(t):void 0})]}),jsxRuntime.jsxs("div",{className:"flex flex-col gap-0.5",children:[r&&jsxRuntime.jsx("span",{className:"text-xs font-medium leading-xs text-secondary-foreground",children:r}),t&&jsxRuntime.jsx("span",{className:"text-sm font-semibold leading-sm text-primary-foreground",children:t})]})]})}))}function tu(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"card-news-footer",className:l("flex w-full flex-wrap items-center gap-6 gap-y-3",e)},a))}var ts=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 du(d){var i=d,{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:l("group peer",ts({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:l("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:l("absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 text-primary-foreground-onfill"),strokeWidth:2.6})})}))}var go=768;function Ga(){let[e,a]=D.useState(void 0);return D.useEffect(()=>{let o=window.matchMedia(`(max-width: ${go-1}px)`),t=()=>{a(window.innerWidth<go);};return o.addEventListener("change",t),a(window.innerWidth<go),()=>o.removeEventListener("change",t)},[]),!!e}function xo(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.DropdownMenu.Root,s({"data-slot":"dropdown-menu"},e))}function fu(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.DropdownMenu.Portal,s({"data-slot":"dropdown-menu-portal"},e))}function ho(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.DropdownMenu.Trigger,s({className:l("cursor-pointer",e.className),"data-slot":"dropdown-menu-trigger"},e))}function bo(r){var d=r,{className:e,sideOffset:a=4,side:o}=d,t=n(d,["className","sideOffset","side"]);let i=Ga();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:l("max-h-(--radix-dropdown-menu-content-available-height) origin-(--radix-dropdown-menu-content-transform-origin) z-50 max-h-screen min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-surface-elevated p-3 pb-2 text-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e)},t))})}function cu(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.DropdownMenu.Group,s({"data-slot":"dropdown-menu-group"},e))}function bt(r){var d=r,{className:e,inset:a,variant:o="default"}=d,t=n(d,["className","inset","variant"]);return jsxRuntime.jsx(radixUi.DropdownMenu.Item,s({"data-slot":"dropdown-menu-item","data-inset":a,"data-variant":o,className:l("data-[variant=destructive]:*:[svg]:!text-destructive outline-hidden relative flex cursor-pointer select-none items-center gap-2.5 rounded-sm px-2 py-2 text-sm font-medium text-gray-foreground hover:bg-secondary-background-soft-emphasis focus:outline-0 data-[disabled]:pointer-events-none data-[inset]:pl-8 data-[variant=destructive]:text-red-foreground data-[disabled]:opacity-50 data-[variant=destructive]:hover:bg-red-background-soft-emphasis dark:[&_img]:brightness-0 dark:[&_img]:invert [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",e)},t))}function pu(r){var d=r,{className:e,children:a,checked:o}=d,t=n(d,["className","children","checked"]);return jsxRuntime.jsxs(radixUi.DropdownMenu.CheckboxItem,f(s({"data-slot":"dropdown-menu-checkbox-item",className:l("outline-hidden relative flex cursor-pointer select-none items-center gap-2 rounded-md py-2 pl-2 pr-7 text-sm font-medium text-gray-foreground hover:bg-secondary-background-soft-emphasis focus:outline-0 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:[&_img]:brightness-0 dark:[&_img]:invert [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg]:text-secondary-foreground",e),checked:o},t),{children:[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 Ct(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.DropdownMenu.RadioGroup,s({"data-slot":"dropdown-menu-radio-group"},e))}function Co(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:l("outline-hidden relative flex cursor-pointer select-none items-center gap-2 rounded-md py-3 pl-2 pr-7 text-sm font-medium text-gray-foreground hover:bg-secondary-background-soft-emphasis focus:outline-0 aria-checked:text-secondary-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:[&_img]:brightness-0 dark:[&_img]:invert [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:text-secondary-foreground",e)},o),{children:[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 Lo(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:l("px-2 py-3 text-xs font-medium text-gray-foreground-muted data-[inset]:pl-8 [&:not(:first-child)]:mt-2.5",e)},o))}function vo(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.DropdownMenu.Separator,s({"data-slot":"dropdown-menu-separator",className:l("-mx-3 my-2 h-px bg-gray-stroke-muted",e)},a))}function mu(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("span",s({"data-slot":"dropdown-menu-shortcut",className:l("ml-auto text-xs tracking-widest text-gray-foreground",e)},a))}function gu(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.DropdownMenu.Sub,s({"data-slot":"dropdown-menu-sub"},e))}function xu(r){var d=r,{className:e,inset:a,children:o}=d,t=n(d,["className","inset","children"]);return jsxRuntime.jsxs(radixUi.DropdownMenu.SubTrigger,f(s({"data-slot":"dropdown-menu-sub-trigger","data-inset":a,className:l("flex cursor-pointer select-none items-center rounded-sm px-2 py-2 text-sm font-medium text-gray-foreground outline-0 focus:outline-0 data-[inset]:pl-8",e)},t),{children:[o,jsxRuntime.jsx(icons.ChevronRight,{className:"ml-auto size-3"})]}))}function hu(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:l("origin-(--radix-dropdown-menu-content-transform-origin) z-50 min-w-[8rem] overflow-hidden rounded-md border bg-surface-elevated p-1 text-gray-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e)},a))}var yo=D.createContext({invalid:false}),fs={start:1950,end:new Date().getFullYear()};function vt(e,a){let o=e.getFullYear();return o<a.start?new Date(a.start,0,1):o>a.end?new Date(a.end,11,31):e}var So=classVarianceAuthority.cva(["shadow-xs flex w-full items-center justify-between gap-2 rounded-md border-2 border-gray-stroke-muted bg-surface-card px-4 py-3 text-left text-gray-foreground outline-none transition-[color,box-shadow] enabled:hover:border-gray-stroke-emphasis enabled:hover:ring-[3px] enabled:hover:ring-state-focus disabled:pointer-events-none disabled:bg-gray-background-soft-muted disabled:text-gray-foreground-muted data-[invalid]:border-feedback-error-stroke data-[invalid]:enabled:hover:border-feedback-error-stroke data-[invalid]:enabled:hover:ring-[3px] data-[invalid]:enabled:hover:ring-state-error","group-has-[[data-slot=date-picker-label]]:data-[placeholder]:text-transparent"],{variants:{size:{lg:["h-12 max-h-12 text-md","max-sm:h-14 max-sm:text-base"],md:["h-10 max-h-10 text-sm","max-sm:h-11"]}},defaultVariants:{size:"lg"}});function vu(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({className:l("group relative flex flex-col gap-2",e),"data-slot":"date-picker-wrapper"},a))}function Iu(t){var r=t,{className:e,children:a}=r,o=n(r,["className","children"]);return jsxRuntime.jsx("label",f(s({className:l("pointer-events-none absolute start-3 top-0 z-10 origin-left -translate-y-1/2 bg-surface-card px-1 text-xs font-medium text-gray-foreground transition-all duration-200 ease-out","group-has-[[data-slot=date-picker-trigger][data-placeholder]:not([data-state=open])]:start-4 group-has-[[data-slot=date-picker-trigger][data-placeholder]:not([data-state=open])]:top-6 group-has-[[data-slot=date-picker-trigger][data-placeholder]:not([data-state=open])]:bg-transparent group-has-[[data-slot=date-picker-trigger][data-placeholder]:not([data-state=open])]:px-0 group-has-[[data-slot=date-picker-trigger][data-placeholder]:not([data-state=open])]:text-md group-has-[[data-slot=date-picker-trigger][data-placeholder]:not([data-state=open])]:font-normal group-has-[[data-slot=date-picker-trigger][data-placeholder]:not([data-state=open])]:text-gray-foreground max-sm:group-has-[[data-slot=date-picker-trigger][data-placeholder]:not([data-state=open])]:top-7","group-has-[[data-slot=date-picker-trigger][data-size=md]]:group-has-[[data-slot=date-picker-trigger][data-placeholder]:not([data-state=open])]:top-5 group-has-[[data-slot=date-picker-trigger][data-size=md]]:group-has-[[data-slot=date-picker-trigger][data-placeholder]:not([data-state=open])]:!text-sm max-sm:group-has-[[data-slot=date-picker-trigger][data-size=md]]:group-has-[[data-slot=date-picker-trigger][data-placeholder]:not([data-state=open])]:top-[22px]",e),"data-slot":"date-picker-label"},o),{children:a}))}function ku(o){var t=o,{className:e}=t,a=n(t,["className"]);let{invalid:r}=D.useContext(yo);return jsxRuntime.jsx("span",s({className:l("-mt-1 text-xs",r?"text-feedback-error-foreground":"text-gray-foreground",e),"data-slot":"date-picker-text"},a))}function ga(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate())}function Wa(e,a){return e.getFullYear()===a.getFullYear()&&e.getMonth()===a.getMonth()&&e.getDate()===a.getDate()}function It(e,a){return new Date(e.getFullYear(),e.getMonth()+a,1)}function kt(e){return new Date(e.getFullYear(),e.getMonth(),1)}function ko(e,a){return ga(e).getTime()<ga(a).getTime()}function cs(e,a){return ga(e).getTime()>ga(a).getTime()}function Xa(e,a,o){return !!(a&&ko(e,a)||o&&cs(e,o))}function ps(e){return new Intl.DateTimeFormat("pt-BR",{year:"numeric",month:"2-digit",day:"2-digit"}).format(e)}var ms=20,gs=18;function yu(_){var F=_,{value:e,defaultValue:a=null,onValueChange:o,placeholder:t="Pick a date",disabled:r,min:d,max:i,format:u=ps,className:c,inputClassName:p,contentClassName:m,size:g="lg",yearRange:h=fs,showYearSelector:k=true,invalid:C=false,children:R}=F,B=n(F,["value","defaultValue","onValueChange","placeholder","disabled","min","max","format","className","inputClassName","contentClassName","size","yearRange","showYearSelector","invalid","children"]);let P=e!==void 0,[ee,z]=D.useState(a),b=P?e:ee,[v,I]=D.useState(false),[H,M]=D.useState(()=>kt(vt(b!=null?b:new Date,h))),O=D.useRef(null),ae=D.useRef(null),Te=D.useRef(null),Ie=D.useId(),[re,Me]=D.useState(null),be=D.useCallback(S=>{P||z(S),o==null||o(S);},[P,o]);D.useEffect(()=>{v&&M(kt(vt(b!=null?b:new Date,h)));},[v,b,h]),D.useEffect(()=>{v||Me(null);},[v]),D.useEffect(()=>{if(!v)return;let S=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=S;}},[v]),D.useEffect(()=>{if(!re)return;let S=()=>I(false);return window.addEventListener("scroll",S,{passive:true,capture:true}),()=>window.removeEventListener("scroll",S,{capture:true})},[re]),D.useEffect(()=>{if(!v)return;let S=V=>{let U=O.current,te=Te.current;U&&V.target instanceof Node&&!U.contains(V.target)&&!(te!=null&&te.contains(V.target))&&I(false);},L=V=>{V.key==="Escape"&&I(false);};return window.addEventListener("pointerdown",S,{capture:true}),window.addEventListener("keydown",L),()=>{window.removeEventListener("pointerdown",S,{capture:true}),window.removeEventListener("keydown",L);}},[v]);let ra=290,sa=()=>{var S,L,V;if(v)I(false);else {let U=(V=(S=ae.current)==null?void 0:S.getBoundingClientRect())!=null?V:(L=O.current)==null?void 0:L.getBoundingClientRect();if(U){let Pe=window.innerHeight-U.bottom<ra,We=window.innerWidth,ka=window.matchMedia("(max-width: 639px)").matches?Math.min(512,We-16):Math.min(320,We),ya=8,Sa=ya,Pa=We-ka-ya,Ve=U.left;Ve<Sa?Ve=Sa:Ve>Pa&&(Ve=Pa),Me(f(s({position:"fixed"},Pe?{bottom:window.innerHeight-U.top+8}:{top:U.bottom+8}),{left:Ve,width:ka,maxWidth:360}));}I(true);}},Se=ga(new Date),ie=H.getFullYear(),ge=H.getMonth(),x=new Date(ie,ge,1),N=new Date(ie,ge+1,0).getDate(),A=x.getDay(),w=b?u(b):"",q=Array.from({length:12},(S,L)=>({value:L,label:new Intl.DateTimeFormat("pt-BR",{month:"long"}).format(new Date(2e3,L,1))})),$=Array.from({length:h.end-h.start+1},(S,L)=>h.start+L),J=S=>{M(new Date(ie,S,1));},se=S=>{M(new Date(S,ge,1));};return jsxRuntime.jsxs(yo.Provider,{value:D.useMemo(()=>({invalid:C}),[C]),children:[jsxRuntime.jsxs("div",{ref:O,className:l("relative inline-flex w-full",c),children:[jsxRuntime.jsxs("button",f(s(f(s({ref:ae,type:"button",disabled:r,"aria-haspopup":"dialog","aria-expanded":v,"aria-controls":v?Ie:void 0,"data-invalid":C||void 0,"data-slot":"date-picker-trigger","data-size":g,"data-state":v?"open":"closed"},!w&&{"data-placeholder":""}),{className:l(So({size:g}),v&&"border-gray-stroke-emphasis ring-[3px] ring-state-focus",w&&!C&&"border-gray-stroke-emphasis ring-[3px] ring-state-focus",w&&C&&"border-feedback-error-stroke ring-[3px] ring-state-error",p),onClick:sa}),B),{children:[jsxRuntime.jsx("span",{className:"truncate",children:w||t}),jsxRuntime.jsx(icons.Calendar,{size:g==="md"?gs:ms,strokeWidth:1.6,className:"shrink-0 !text-gray-foreground","aria-hidden":"true"})]})),v&&reactDom.createPortal(jsxRuntime.jsxs("div",{ref:Te,id:Ie,role:"dialog","aria-label":"Calend\xE1rio","data-slot":"date-picker-content",style:re!=null?re:void 0,className:l("z-50 overflow-hidden rounded-md border border-gray-stroke-muted bg-surface-elevated p-3 shadow-md",m),children:[jsxRuntime.jsxs("div",{className:"mb-3 flex items-center justify-center gap-2",children:[jsxRuntime.jsx("button",{type:"button",className:"inline-flex size-8 items-center justify-center rounded-md hover:bg-secondary-background-soft-emphasis max-sm:size-10",onClick:()=>M(S=>It(S,-1)),"aria-label":"M\xEAs anterior",children:jsxRuntime.jsx(icons.ChevronLeftMd,{size:18,strokeWidth:1.8})}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsxs("div",{className:"relative",children:[jsxRuntime.jsx("select",{value:ge,onChange:S=>J(Number(S.target.value)),className:"min-w-[7rem] appearance-none rounded-md border border-gray-stroke-muted bg-surface-card py-1 pl-2 pr-7 text-sm font-medium capitalize text-gray-foreground outline-none hover:border-gray-stroke-emphasis focus:border-gray-stroke-emphasis focus:ring-2 focus:ring-state-focus max-sm:min-w-[8rem] max-sm:py-2 max-sm:text-base","aria-label":"Selecionar m\xEAs",children:q.map(S=>jsxRuntime.jsx("option",{value:S.value,className:"capitalize",children:S.label},S.value))}),jsxRuntime.jsx(icons.ChevronDown,{size:14,strokeWidth:1.8,className:"pointer-events-none absolute right-2 top-1/2 -translate-y-1/2 text-gray-foreground","aria-hidden":true})]}),k?jsxRuntime.jsxs("div",{className:"relative",children:[jsxRuntime.jsx("select",{value:ie,onChange:S=>se(Number(S.target.value)),className:"min-w-[5rem] appearance-none rounded-md border border-gray-stroke-muted bg-surface-card py-1 pl-2 pr-7 text-sm font-medium text-gray-foreground outline-none hover:border-gray-stroke-emphasis focus:border-gray-stroke-emphasis focus:ring-2 focus:ring-state-focus max-sm:min-w-[5.5rem] max-sm:py-2 max-sm:text-base","aria-label":"Selecionar ano",children:$.map(S=>jsxRuntime.jsx("option",{value:S,children:S},S))}),jsxRuntime.jsx(icons.ChevronDown,{size:14,strokeWidth:1.8,className:"pointer-events-none absolute right-2 top-1/2 -translate-y-1/2 text-gray-foreground","aria-hidden":true})]}):jsxRuntime.jsx("div",{className:"text-sm font-semibold text-gray-foreground",children:ie})]}),jsxRuntime.jsx("button",{type:"button",className:"inline-flex size-8 items-center justify-center rounded-md hover:bg-secondary-background-soft-emphasis max-sm:size-10",onClick:()=>M(S=>It(S,1)),"aria-label":"Pr\xF3ximo m\xEAs",children:jsxRuntime.jsx(icons.ChevronRightMd,{size:18,strokeWidth:1.8})})]}),jsxRuntime.jsxs("div",{className:"grid grid-cols-7 gap-1 text-center text-xs font-medium text-gray-foreground-muted max-sm:text-sm",children:[jsxRuntime.jsx("div",{children:"Dom"}),jsxRuntime.jsx("div",{children:"Seg"}),jsxRuntime.jsx("div",{children:"Ter"}),jsxRuntime.jsx("div",{children:"Qua"}),jsxRuntime.jsx("div",{children:"Qui"}),jsxRuntime.jsx("div",{children:"Sex"}),jsxRuntime.jsx("div",{children:"S\xE1b"})]}),jsxRuntime.jsxs("div",{className:"mt-2 grid grid-cols-7 gap-1",children:[Array.from({length:A}).map((S,L)=>jsxRuntime.jsx("div",{},`empty-${L}`)),Array.from({length:N}).map((S,L)=>{let V=new Date(ie,ge,L+1),U=b?Wa(V,b):false,te=Wa(V,Se),Pe=r||Xa(V,d,i);return jsxRuntime.jsx("button",{type:"button",disabled:Pe,onClick:()=>{be(V),I(false);},className:l("inline-flex h-9 w-full items-center justify-center rounded-md text-sm font-medium outline-none transition-colors hover:bg-secondary-background-soft-emphasis disabled:pointer-events-none disabled:opacity-50 max-sm:h-11 max-sm:text-base",te&&"ring-1 ring-gray-stroke-emphasis",U&&"bg-primary-background-fill text-primary-foreground-onfill hover:bg-primary-background-fill-emphasis"),"aria-pressed":U,children:L+1},V.toISOString())})]}),jsxRuntime.jsxs("div",{className:"mt-3 flex items-center justify-between gap-2",children:[jsxRuntime.jsx("button",{type:"button",className:"rounded-md px-2 py-1 text-xs font-medium text-gray-foreground hover:bg-secondary-background-soft-emphasis max-sm:px-3 max-sm:py-2 max-sm:text-sm",onClick:()=>{be(Se),I(false);},disabled:r||Xa(Se,d,i),children:"Hoje"}),jsxRuntime.jsx("button",{type:"button",className:"rounded-md px-2 py-1 text-xs font-medium text-gray-foreground hover:bg-secondary-background-soft-emphasis max-sm:px-3 max-sm:py-2 max-sm:text-sm",onClick:()=>be(null),disabled:r||!b,children:"Limpar"})]})]}),document.body)]}),R]})}function Su(_){var F=_,{value:e,defaultValue:a=null,onValueChange:o,placeholder:t="Selecionar per\xEDodo",disabled:r,min:d,max:i,format:u=ps,className:c,inputClassName:p,contentClassName:m,size:g="lg",yearRange:h=fs,showYearSelector:k=true,invalid:C=false,children:R}=F,B=n(F,["value","defaultValue","onValueChange","placeholder","disabled","min","max","format","className","inputClassName","contentClassName","size","yearRange","showYearSelector","invalid","children"]);let P=e!==void 0,[ee,z]=D.useState(a),b=P?e:ee,[v,I]=D.useState(false),[H,M]=D.useState(()=>{var L,V;return kt(vt((V=(L=b==null?void 0:b.start)!=null?L:b==null?void 0:b.end)!=null?V:new Date,h))}),O=D.useRef(null),ae=D.useRef(null),Te=D.useRef(null),Ie=D.useId(),[re,Me]=D.useState(null),be=D.useCallback(L=>{P||z(L),o==null||o(L);},[P,o]);D.useEffect(()=>{var L,V;v&&M(kt(vt((V=(L=b==null?void 0:b.start)!=null?L:b==null?void 0:b.end)!=null?V:new Date,h)));},[v,b,h]),D.useEffect(()=>{v||Me(null);},[v]),D.useEffect(()=>{if(!v)return;let L=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=L;}},[v]),D.useEffect(()=>{if(!re)return;let L=()=>I(false);return window.addEventListener("scroll",L,{passive:true,capture:true}),()=>window.removeEventListener("scroll",L,{capture:true})},[re]),D.useEffect(()=>{if(!v)return;let L=U=>{let te=O.current,Pe=Te.current;te&&U.target instanceof Node&&!te.contains(U.target)&&!(Pe!=null&&Pe.contains(U.target))&&I(false);},V=U=>{U.key==="Escape"&&I(false);};return window.addEventListener("pointerdown",L,{capture:true}),window.addEventListener("keydown",V),()=>{window.removeEventListener("pointerdown",L,{capture:true}),window.removeEventListener("keydown",V);}},[v]);let ra=330,sa=()=>{var L,V,U;if(v)I(false);else {let te=(U=(L=ae.current)==null?void 0:L.getBoundingClientRect())!=null?U:(V=O.current)==null?void 0:V.getBoundingClientRect();if(te){let We=window.innerHeight-te.bottom<ra,la=window.innerWidth,ya=window.matchMedia("(max-width: 639px)").matches?Math.min(512,la-16):Math.min(320,la),Sa=8,Pa=Sa,Ve=la-ya-Sa,wa=te.left;wa<Pa?wa=Pa:wa>Ve&&(wa=Ve),Me(f(s({position:"fixed"},We?{bottom:window.innerHeight-te.top+8}:{top:te.bottom+8}),{left:wa,width:ya,maxWidth:360}));}I(true);}},Se=ga(new Date),ie=H.getFullYear(),ge=H.getMonth(),x=new Date(ie,ge,1),N=new Date(ie,ge+1,0).getDate(),A=x.getDay(),w=Array.from({length:12},(L,V)=>({value:V,label:new Intl.DateTimeFormat("pt-BR",{month:"long"}).format(new Date(2e3,V,1))})),q=Array.from({length:h.end-h.start+1},(L,V)=>h.start+V),$=L=>{M(new Date(ie,L,1));},J=L=>{M(new Date(L,ge,1));},se=L=>{r||Xa(L,d,i)||(!b||!b.start||b.end?be({start:L,end:null}):(ko(L,b.start)?be({start:L,end:b.start}):be({start:b.start,end:L}),I(false)));},S=b!=null&&b.start&&(b!=null&&b.end)?`${u(b.start)} - ${u(b.end)}`:b!=null&&b.start?u(b.start):"";return jsxRuntime.jsxs(yo.Provider,{value:D.useMemo(()=>({invalid:C}),[C]),children:[jsxRuntime.jsxs("div",{ref:O,className:l("relative inline-flex w-full",c),children:[jsxRuntime.jsxs("button",f(s(f(s({ref:ae,type:"button",disabled:r,"aria-haspopup":"dialog","aria-expanded":v,"aria-controls":v?Ie:void 0,"data-invalid":C||void 0,"data-slot":"date-picker-trigger","data-size":g,"data-state":v?"open":"closed"},!S&&{"data-placeholder":""}),{className:l(So({size:g}),v&&"border-gray-stroke-emphasis ring-[3px] ring-state-focus",S&&!C&&"border-gray-stroke-emphasis ring-[3px] ring-state-focus",S&&C&&"border-feedback-error-stroke ring-[3px] ring-state-error",p),onClick:sa}),B),{children:[jsxRuntime.jsx("span",{className:"truncate",children:S||t}),jsxRuntime.jsx(icons.Calendar,{size:g==="md"?gs:ms,strokeWidth:1.6,className:"shrink-0 !text-gray-foreground","aria-hidden":"true"})]})),v&&reactDom.createPortal(jsxRuntime.jsxs("div",{ref:Te,id:Ie,role:"dialog","aria-label":"Calend\xE1rio","data-slot":"date-picker-content",style:re!=null?re:void 0,className:l("z-50 overflow-hidden rounded-md border border-gray-stroke-muted bg-surface-elevated p-3 shadow-md",m),children:[jsxRuntime.jsxs("div",{className:"mb-3 flex items-center justify-center gap-2",children:[jsxRuntime.jsx("button",{type:"button",className:"inline-flex size-8 items-center justify-center rounded-md hover:bg-secondary-background-soft-emphasis max-sm:size-10",onClick:()=>M(L=>It(L,-1)),"aria-label":"M\xEAs anterior",children:jsxRuntime.jsx(icons.ChevronLeftMd,{size:18,strokeWidth:1.8})}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsxs("div",{className:"relative",children:[jsxRuntime.jsx("select",{value:ge,onChange:L=>$(Number(L.target.value)),className:"min-w-[7rem] appearance-none rounded-md border border-gray-stroke-muted bg-surface-card py-1 pl-2 pr-7 text-sm font-medium capitalize text-gray-foreground outline-none hover:border-gray-stroke-emphasis focus:border-gray-stroke-emphasis focus:ring-2 focus:ring-state-focus max-sm:min-w-[8rem] max-sm:py-2 max-sm:text-base","aria-label":"Selecionar m\xEAs",children:w.map(L=>jsxRuntime.jsx("option",{value:L.value,className:"capitalize",children:L.label},L.value))}),jsxRuntime.jsx(icons.ChevronDown,{size:14,strokeWidth:1.8,className:"pointer-events-none absolute right-2 top-1/2 -translate-y-1/2 text-gray-foreground","aria-hidden":true})]}),k?jsxRuntime.jsxs("div",{className:"relative",children:[jsxRuntime.jsx("select",{value:ie,onChange:L=>J(Number(L.target.value)),className:"min-w-[5rem] appearance-none rounded-md border border-gray-stroke-muted bg-surface-card py-1 pl-2 pr-7 text-sm font-medium text-gray-foreground outline-none hover:border-gray-stroke-emphasis focus:border-gray-stroke-emphasis focus:ring-2 focus:ring-state-focus max-sm:min-w-[5.5rem] max-sm:py-2 max-sm:text-base","aria-label":"Selecionar ano",children:q.map(L=>jsxRuntime.jsx("option",{value:L,children:L},L))}),jsxRuntime.jsx(icons.ChevronDown,{size:14,strokeWidth:1.8,className:"pointer-events-none absolute right-2 top-1/2 -translate-y-1/2 text-gray-foreground","aria-hidden":true})]}):jsxRuntime.jsx("div",{className:"text-sm font-semibold text-gray-foreground",children:ie})]}),jsxRuntime.jsx("button",{type:"button",className:"inline-flex size-8 items-center justify-center rounded-md hover:bg-secondary-background-soft-emphasis max-sm:size-10",onClick:()=>M(L=>It(L,1)),"aria-label":"Pr\xF3ximo m\xEAs",children:jsxRuntime.jsx(icons.ChevronRightMd,{size:18,strokeWidth:1.8})})]}),jsxRuntime.jsxs("div",{className:"grid grid-cols-7 gap-1 text-center text-xs font-medium text-gray-foreground-muted max-sm:text-sm",children:[jsxRuntime.jsx("div",{children:"Dom"}),jsxRuntime.jsx("div",{children:"Seg"}),jsxRuntime.jsx("div",{children:"Ter"}),jsxRuntime.jsx("div",{children:"Qua"}),jsxRuntime.jsx("div",{children:"Qui"}),jsxRuntime.jsx("div",{children:"Sex"}),jsxRuntime.jsx("div",{children:"S\xE1b"})]}),jsxRuntime.jsxs("div",{className:"mt-2 grid grid-cols-7 gap-1",children:[Array.from({length:A}).map((L,V)=>jsxRuntime.jsx("div",{},`empty-${V}`)),Array.from({length:N}).map((L,V)=>{let U=new Date(ie,ge,V+1),te=(b==null?void 0:b.start)&&Wa(U,b.start),Pe=(b==null?void 0:b.end)&&Wa(U,b.end),We=(b==null?void 0:b.start)&&(b==null?void 0:b.end)&&cs(U,b.start)&&ko(U,b.end),la=Wa(U,Se),ka=r||Xa(U,d,i);return jsxRuntime.jsx("button",{type:"button",disabled:ka,onClick:()=>se(U),className:l("inline-flex h-9 w-full items-center justify-center rounded-md text-sm font-medium outline-none transition-colors hover:bg-secondary-background-soft-emphasis disabled:pointer-events-none disabled:opacity-50",la&&"ring-1 ring-gray-stroke-emphasis",We&&"bg-primary-background-soft",(te||Pe)&&"bg-primary-background-fill text-primary-foreground-onfill hover:bg-primary-background-fill-emphasis"),"aria-pressed":te||Pe||void 0,children:V+1},U.toISOString())})]}),jsxRuntime.jsxs("div",{className:"mt-3 flex items-center justify-between gap-2",children:[jsxRuntime.jsx("button",{type:"button",className:"rounded-md px-2 py-1 text-xs font-medium text-gray-foreground hover:bg-secondary-background-soft-emphasis",onClick:()=>{be({start:Se,end:Se}),I(false);},disabled:r||Xa(Se,d,i),children:"Hoje"}),jsxRuntime.jsx("button",{type:"button",className:"rounded-md px-2 py-1 text-xs font-medium text-gray-foreground hover:bg-secondary-background-soft-emphasis",onClick:()=>be(null),disabled:r||!b,children:"Limpar"})]})]}),document.body)]}),R]})}var Bu=24,Fu=20,Eu=1.6,hs=10,bs=8;function Hu(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({className:l("group relative flex flex-col gap-2",e),"data-slot":"input-wrapper"},a))}function Ou(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({className:l("relative",e),"data-slot":"input-field"},a))}function Vu(t){var r=t,{className:e,children:a}=r,o=n(r,["className","children"]);return jsxRuntime.jsx("label",f(s({className:l("pointer-events-none absolute start-3 top-0 z-10 origin-left -translate-y-1/2 bg-surface-card px-1 text-xs font-medium text-gray-foreground transition-all duration-200 ease-out","group-has-[[data-slot=input][disabled]]:bg-transparent","group-has-[[data-slot=input]:placeholder-shown:not(:focus)]:start-4 group-has-[[data-slot=input]:placeholder-shown:not(:focus)]:top-6 group-has-[[data-slot=input]:placeholder-shown:not(:focus)]:bg-transparent group-has-[[data-slot=input]:placeholder-shown:not(:focus)]:px-0 group-has-[[data-slot=input]:placeholder-shown:not(:focus)]:text-md group-has-[[data-slot=input]:placeholder-shown:not(:focus)]:font-normal","group-has-[[data-slot=input][data-empty]:not(:focus)]:start-4 group-has-[[data-slot=input][data-empty]:not(:focus)]:top-6 group-has-[[data-slot=input][data-empty]:not(:focus)]:bg-transparent group-has-[[data-slot=input][data-empty]:not(:focus)]:px-0 group-has-[[data-slot=input][data-empty]:not(:focus)]:text-md group-has-[[data-slot=input][data-empty]:not(:focus)]:font-normal","group-has-[[data-slot=input][data-size=md]]:group-has-[[data-slot=input]:placeholder-shown:not(:focus)]:top-5 group-has-[[data-slot=input][data-size=md]]:group-has-[[data-slot=input]:placeholder-shown:not(:focus)]:!text-sm","group-has-[[data-slot=input][data-size=md]]:group-has-[[data-slot=input][data-empty]:not(:focus)]:top-5 group-has-[[data-slot=input][data-empty]:not(:focus)]:!text-sm","group-has-[[data-slot=input][aria-invalid=true]]:text-feedback-error-foreground","group-has-[[data-slot=input-start-icon]]:group-has-[[data-slot=input]:placeholder-shown:not(:focus)]:start-12","group-has-[[data-slot=input-start-icon]]:group-has-[[data-slot=input][data-empty]:not(:focus)]:start-12",e),"data-slot":"input-label"},o),{children:a}))}function qu(t){var r=t,{className:e,invalid:a=false}=r,o=n(r,["className","invalid"]);return jsxRuntime.jsx("span",s({className:l("-mt-1 text-xs",a?"text-feedback-error-foreground":"text-gray-foreground",e),"data-slot":"input-text"},o))}function Po(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({className:l("group/adornment relative flex w-full",e),"data-slot":"input-adornment"},a))}function wt(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("span",s({className:l("pointer-events-none absolute start-4 top-1/2 z-10 flex -translate-y-1/2 items-center pr-3 text-gray-foreground",e),"data-slot":"input-start-icon"},a))}function wo(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("span",s({className:l("absolute end-4 top-1/2 z-10 flex -translate-y-1/2 items-center text-gray-foreground",e),"data-slot":"input-end-icon"},a))}var St=classVarianceAuthority.cva(["shadow-xs w-full min-w-0 rounded-md border-2 border-gray-stroke-muted bg-surface-card px-4 py-3 text-gray-foreground outline-none transition-[color,box-shadow] selection:bg-secondary-background-soft-emphasis selection:text-gray-foreground placeholder:text-gray-foreground-emphasis hover:border-gray-stroke-emphasis hover:ring-[3px] hover:ring-state-focus disabled:cursor-default disabled:bg-gray-background-soft-muted disabled:placeholder:text-gray-foreground-muted disabled:hover:border-gray-stroke-muted disabled:hover:ring-0","focus-visible:border-gray-stroke-emphasis focus-visible:ring-[3px] focus-visible:ring-state-focus","aria-[invalid]:border-feedback-error-stroke aria-[invalid]:hover:ring-state-error aria-[invalid]:focus-visible:ring-state-error","aria-[invalid]:[&:not(:placeholder-shown):not(:disabled)]:border-feedback-error-stroke aria-[invalid]:[&:not(:placeholder-shown):not(:disabled)]:ring-[3px] aria-[invalid]:[&:not(:placeholder-shown):not(:disabled)]:ring-state-error","group-has-[[data-slot=input-label]]:py-3 group-has-[[data-slot=input-label]]:placeholder:text-transparent","[&:not(:placeholder-shown):not(:disabled)]:border-gray-stroke-emphasis [&:not(:placeholder-shown):not(:disabled)]:ring-[3px] [&:not(:placeholder-shown):not(:disabled)]:ring-state-focus","group-has-[[data-slot=input-end-icon]]/adornment:pr-10"],{variants:{size:{lg:["h-12 max-h-12 text-md","group-has-[[data-slot=input-label]]:h-14","group-has-[[data-slot=input-start-icon]]/adornment:pl-[48px]"],md:["h-10 max-h-10 text-sm","group-has-[[data-slot=input-label]]:h-11","group-has-[[data-slot=input-start-icon]]/adornment:pl-[44px]"]}},defaultVariants:{size:"lg"}}),zu={email:jsxRuntime.jsx(icons.Mail,{})},_u={};function xa(e,a="lg"){return D.cloneElement(e,{size:a==="md"?Fu:Bu,strokeWidth:Eu})}function Ls(d){var i=d,{className:e,invalid:a=false,size:o="lg",disabled:t}=i,r=n(i,["className","invalid","size","disabled"]);let[u,c]=D.useState(false);return jsxRuntime.jsxs(Po,{children:[jsxRuntime.jsx(wt,{children:xa(jsxRuntime.jsx(icons.Lock,{}),o)}),jsxRuntime.jsx("input",s({type:u?"text":"password","data-slot":"input","data-size":o,disabled:t,className:l(St({size:o,className:e})),"aria-invalid":a||r["aria-invalid"]?true:void 0},r)),jsxRuntime.jsx(wo,{children:jsxRuntime.jsx("button",{type:"button",tabIndex:-1,disabled:t,onClick:()=>c(p=>!p),className:l("text-gray-foreground transition-colors hover:text-gray-foreground-emphasis disabled:cursor-default disabled:opacity-50"),"data-invalid":a,"aria-label":u?"Hide password":"Show password",children:xa(u?jsxRuntime.jsx(icons.Hide,{}):jsxRuntime.jsx(icons.Show,{}),o)})})]})}function vs(m){var g=m,{className:e,invalid:a=false,size:o="lg",iconLeft:t,min:r,value:d,defaultValue:i,onChange:u,disabled:c}=g,p=n(g,["className","invalid","size","iconLeft","min","value","defaultValue","onChange","disabled"]);let h=d!==void 0,[k,C]=D.useState(()=>i!=null?i:""),R=D.useRef(null),B=h?d===""?"":String(d):k,_=B===""?NaN:Number(B),F=r!==void 0&&Number(r)<0,P=D.useCallback(I=>{let H=r!==void 0&&Number(r)<0,M=I.replace(/[^\d.-]/g,"");H?M=(M.startsWith("-")?"-":"")+M.replace(/-/g,""):M=M.replace(/-/g,"");let O=M.indexOf(".");return O===-1?M:M.slice(0,O+1)+M.slice(O+1).replace(/\./g,"")},[r]),ee=D.useCallback(I=>{let H=P(I.target.value);if(H===I.target.value)h?u==null||u(I):(C(H),u==null||u(f(s({},I),{target:f(s({},I.target),{value:H})})));else {let M=f(s({},I),{target:f(s({},I.target),{value:H})});h||C(H),u==null||u(M);}},[h,u,P]),z=r!==void 0?Number(r):void 0,b=D.useCallback(I=>{let M=(Number.isNaN(_)?z!=null?z:0:_)+I;return z!==void 0&&M<z?z:M},[_,z]),v=D.useCallback(I=>{let H=b(I),M=String(H),O=R.current,Te={type:"change",target:O?{value:M,name:O.name,id:O.id,form:O.form,type:O.type}:{value:M},currentTarget:O,bubbles:true,cancelable:false,nativeEvent:{}};h||C(M),u==null||u(Te);},[b,h,u]);return jsxRuntime.jsxs(Po,{children:[t!=null&&jsxRuntime.jsx(wt,{children:xa(t,o)}),jsxRuntime.jsx("input",s({ref:R,type:"text",inputMode:"decimal",pattern:F?"-?[0-9]*":"[0-9]*","data-slot":"input","data-size":o,"data-empty":B===""?"":void 0,min:r,value:B,onChange:ee,disabled:c,className:l(St({size:o}),"pr-12","[appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none",e),"aria-invalid":a||p["aria-invalid"]?true:void 0},p)),jsxRuntime.jsxs("div",{className:"absolute end-0 top-0 flex h-full flex-col items-center justify-center gap-0.5 px-4",children:[jsxRuntime.jsx("button",{type:"button",tabIndex:-1,disabled:c,onClick:()=>v(1),className:"flex items-center justify-center rounded-full !p-0.5 px-2 text-gray-foreground transition-colors disabled:cursor-default disabled:opacity-50 disabled:hover:bg-transparent","aria-label":"Increase value",children:jsxRuntime.jsx(icons.ChevronDown,{className:"rotate-180",size:o==="md"?bs:hs,strokeWidth:3})}),jsxRuntime.jsx("button",{type:"button",tabIndex:-1,disabled:c,onClick:()=>v(-1),className:"flex items-center justify-center rounded-full !p-0.5 px-2 text-gray-foreground transition-colors disabled:cursor-default disabled:opacity-50 disabled:hover:bg-transparent","aria-label":"Decrease value",children:jsxRuntime.jsx(icons.ChevronDown,{size:o==="md"?bs:hs,strokeWidth:3})})]})]})}function To(u){var c=u,{className:e,type:a="text",size:o="lg",invalid:t=false,iconLeft:r,iconRight:d}=c,i=n(c,["className","type","size","invalid","iconLeft","iconRight"]);if(a==="numeric")return jsxRuntime.jsx(vs,s({className:e,size:o,invalid:t,iconLeft:r},i));if(a==="password")return jsxRuntime.jsx(Ls,s({className:e,size:o,invalid:t},i));let p=r!=null?r:zu[a],m=(a==="text"||a==="email")&&t,g=m?jsxRuntime.jsx(icons.TriangleWarning,{}):d!=null?d:_u[a];return p!=null||g!=null?jsxRuntime.jsxs("div",{className:"group/adornment relative flex w-full","data-slot":"input-adornment",children:[p!=null&&jsxRuntime.jsx(wt,{children:xa(p,o)}),jsxRuntime.jsx("input",s({type:"text","data-slot":"input","data-size":o,className:l(St({size:o,className:e})),"aria-invalid":t||i["aria-invalid"]?true:void 0},i)),g!=null&&jsxRuntime.jsx(wo,{className:m?"text-feedback-error-foreground":void 0,children:xa(g,o)})]}):jsxRuntime.jsx("input",s({type:"text","data-slot":"input","data-size":o,className:l(St({size:o,className:e})),"aria-invalid":t||i["aria-invalid"]?true:void 0},i))}var Is=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 Wu(d){var i=d,{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:l(Is({size:o,variant:a}),e,t&&"flex flex-col items-start justify-center gap-4 whitespace-normal rounded-lg border border-gray-stroke-muted p-4 font-normal")},r))}function Ku({width:e=171,height:a=36,className:o,svgClassName:t}){return jsxRuntime.jsxs("svg",{className:l("dark:brightness-0 dark:invert",o),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 171 36",width:e,height:a,children:[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 Zu({width:e=60,height:a=67,className:o,svgClassName:t}){return jsxRuntime.jsx("svg",{className:l("dark:brightness-0 dark:invert",o),width:e,height:a,viewBox:"0 0 60 67",fill:"none",xmlns:"http://www.w3.org/2000/svg",children: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 ha={tablet:"600px",mobile:"320px"};function ys(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("nav",s({role:"navigation","aria-label":"pagination",className:l("flex w-full items-center justify-between",e)},a))}function Ss(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("ul",s({className:l("flex flex-row items-center gap-2",e)},a))}function Ao(r){var d=r,{count:e,label:a="itens",className:o}=d,t=n(d,["count","label","className"]);return jsxRuntime.jsx("p",f(s({className:l("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 At(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("li",s({className:l("",e)},a))}function Ps(p){var m=p,{className:e,isActive:a,iconLeft:o,iconRight:t,size:r="md",variant:d="regular",activeVariant:i,inactiveVariant:u}=m,c=n(m,["className","isActive","iconLeft","iconRight","size","variant","activeVariant","inactiveVariant"]);return jsxRuntime.jsx(Y,f(s({"aria-current":a?"page":void 0,variant:a&&i?i:!a&&u?u:a?d:`${d}-soft`,className:l("",e),size:r,iconLeft:o,iconRight:t},c),{children:c.children}))}function ws(r){var d=r,{className:e,size:a="md",variant:o="regular-basic"}=d,t=n(d,["className","size","variant"]);return jsxRuntime.jsx(Y,f(s({"aria-label":"Go to previous page",className:l("",e),iconLeft:jsxRuntime.jsx(icons.ChevronLeftDuo,{}),variant:o,size:a},t),{children:t.children||"Anterior"}))}function Ts(r){var d=r,{className:e,size:a="md",variant:o="regular-basic"}=d,t=n(d,["className","size","variant"]);return jsxRuntime.jsx(Y,f(s({"aria-label":"Go to next page",className:l("",e),variant:o,iconRight:jsxRuntime.jsx(icons.ChevronRightDuo,{}),size:a},t),{children:t.children||"Pr\xF3ximo"}))}function As(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:l("flex items-center justify-center",{sm:"h-8 w-8",md:"h-9 w-9",lg:"h-10 w-10"}[a],e)},o),{children:jsxRuntime.jsx(icons.MoreHorizontal,{className:"h-4 w-4"})}))}function Ds(e,a,o=2){let t=[];if(a<=o+2)for(let r=1;r<=a;r++)t.push(r);else {let r=Math.floor(o/2);if(e<=r+1){for(let d=1;d<=o+1;d++)t.push(d);o+1<a&&t.push(-1,a);}else if(e>=a-r){t.push(1),a-o>1&&t.push(-1);for(let d=a-o;d<=a;d++)t.push(d);}else {t.push(1,-1);for(let d=e-r;d<=e+r;d++)t.push(d);t.push(-1,a);}}return t}function af({currentPage:e,totalPages:a,maxVisibleItems:o,onPageChange:t,itemsPerPage:r,totalItems:d,className:i,responsive:u=true,size:c="md"}){let[p,m]=D.useState(()=>typeof window=="undefined"?false:window.innerWidth<=parseInt(ha.tablet));D.useEffect(()=>{if(typeof window=="undefined"||!u)return;let C=parseInt(ha.tablet),R=()=>{m(window.innerWidth<=C);};return window.addEventListener("resize",R),R(),()=>window.removeEventListener("resize",R)},[u]);let g=typeof o=="number"?o:u&&p?0:2,h=u&&p,k=()=>Ds(e,a,g);return jsxRuntime.jsxs(ys,{className:l("",i),children:[r!==void 0&&!h?jsxRuntime.jsx(Ao,{count:r,label:"itens"}):jsxRuntime.jsx("div",{}),jsxRuntime.jsxs(Ss,{children:[jsxRuntime.jsx(At,{children:jsxRuntime.jsx(ws,{onClick:()=>t(Math.max(1,e-1)),disabled:e===1,size:c})}),k().map((C,R)=>jsxRuntime.jsx(At,{children:C===-1?jsxRuntime.jsx(As,{size:c}):jsxRuntime.jsx(Ps,{onClick:()=>t(C),isActive:C===e,size:c,children:C})},R)),jsxRuntime.jsx(At,{children:jsxRuntime.jsx(Ts,{onClick:()=>t(Math.min(a,e+1)),disabled:e===a,size:c})})]}),d!==void 0&&!h?jsxRuntime.jsx(Ao,{count:d,label:"total"}):jsxRuntime.jsx("div",{})]})}var rf={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"},Rs=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 sf(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.RadioGroup.Root,s({"data-slot":"radio-group",className:l("grid gap-3",e)},a))}function lf(r){var d=r,{className:e,size:a,variant:o}=d,t=n(d,["className","size","variant"]);return jsxRuntime.jsx(radixUi.RadioGroup.Item,f(s({"data-slot":"radio-group-item",className:l("shadow-xs group peer aspect-square size-4 shrink-0 rounded-full outline-none transition-[color,box-shadow] disabled:cursor-not-allowed",Rs({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:l("absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 fill-surface-card",rf[a||"md"])})})}))}function Ca(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 Ye(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.Tooltip.Root,s({"data-slot":"tooltip"},e))}function ea(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.Tooltip.Trigger,s({"data-slot":"tooltip-trigger"},e))}function aa(r){var d=r,{className:e,sideOffset:a=0,children:o}=d,t=n(d,["className","sideOffset","children"]);return jsxRuntime.jsx(radixUi.Tooltip.Portal,{children:jsxRuntime.jsxs(radixUi.Tooltip.Content,f(s({"data-slot":"tooltip-content",sideOffset:a,className:l("origin-(--radix-tooltip-content-transform-origin) z-50 w-fit text-balance rounded-md bg-surface-elevated px-3 py-2 text-sm font-medium text-gray-foreground-emphasis animate-in fade-in-0 zoom-in-95 [filter:drop-shadow(0_0_1px_var(--color-drop-shadow-layer-a))_drop-shadow(0_2px_2px_var(--color-drop-shadow-layer-b))] data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e)},t),{children:[o,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 gf(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:l("w-full border-collapse text-left",a)},o),{children:e}))})}function xf(t){var r=t,{children:e,className:a}=r,o=n(r,["children","className"]);return jsxRuntime.jsx("thead",f(s({className:l("h-11 border-b border-gray-stroke-muted bg-surface-card",a)},o),{children:jsxRuntime.jsx("tr",{children:e})}))}function hf(d){var i=d,{children:e,className:a,tooltip:o,highlight:t}=i,r=n(i,["children","className","tooltip","highlight"]);return jsxRuntime.jsx("th",f(s({className:l("text-ellipsis whitespace-nowrap px-5 text-sm font-semibold text-gray-foreground first:pr-0",a)},r),{children:jsxRuntime.jsxs("div",{className:"flex items-center gap-1.5",children:[jsxRuntime.jsx("span",{className:l(t&&"flex size-7 shrink-0 items-center justify-center rounded-full bg-primary-foreground-onfill"),children:e}),o&&jsxRuntime.jsx(Ca,{children:jsxRuntime.jsxs(Ye,{children:[jsxRuntime.jsx(ea,{asChild:true,children:jsxRuntime.jsx(icons.Info,{className:"size-4"})}),jsxRuntime.jsx(aa,{children:o})]})})]})}))}function bf(t){var r=t,{children:e,className:a}=r,o=n(r,["children","className"]);return jsxRuntime.jsx("tbody",f(s({className:l("bg-surface-card",a)},o),{children:e}))}function Cf(t){var r=t,{children:e,className:a}=r,o=n(r,["children","className"]);return jsxRuntime.jsx("tr",f(s({className:l("w-full border-t border-solid border-gray-stroke-muted first:border-t-0",a)},o),{children:e}))}function Lf(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:l("flex size-7 shrink-0 items-center justify-center overflow-hidden whitespace-nowrap rounded-full bg-primary-foreground text-sm font-semibold text-primary-foreground-onfill",a)},o),{children:e}))})}function vf(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:l("flex items-center gap-5",a),children:jsxRuntime.jsx("div",{className:"flex shrink-0 items-center gap-5 pr-8",children:e})})}))}function If(t){var r=t,{children:e,className:a}=r,o=n(r,["children","className"]);return jsxRuntime.jsx("div",f(s({className:l("flex shrink-0 flex-col items-start whitespace-nowrap text-gray-foreground",a)},o),{children:e}))}function kf(t){var r=t,{children:e,className:a}=r,o=n(r,["children","className"]);return jsxRuntime.jsx("span",f(s({className:l("shrink-0 overflow-hidden text-ellipsis font-sans text-xxs font-medium leading-xxs",a)},o),{children:e}))}function yf(t){var r=t,{children:e,className:a}=r,o=n(r,["children","className"]);return jsxRuntime.jsx("span",f(s({className:l("shrink-0 overflow-hidden text-ellipsis font-sans text-sm font-semibold leading-5",a)},o),{children:e}))}function Sf(t){var r=t,{children:e,className:a}=r,o=n(r,["children","className"]);return jsxRuntime.jsx(fe,f(s({className:l("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 Pf(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:l("flex flex-col items-start gap-2",a),children:e})}))}function wf(t){var r=t,{children:e,className:a}=r,o=n(r,["children","className"]);return jsxRuntime.jsx("p",f(s({className:l("relative shrink-0 overflow-hidden text-ellipsis whitespace-nowrap text-[10px] font-medium leading-[12px] text-gray-foreground",a)},o),{children:e}))}function Tf(t){var r=t,{children:e,className:a}=r,o=n(r,["children","className"]);return jsxRuntime.jsx("div",f(s({className:l("avatar-group flex shrink-0 items-center gap-2",a)},o),{children:e}))}function Af(i){var u=i,{src:e,alt:a,fallback:o="?",className:t,tooltip:r}=u,d=n(u,["src","alt","fallback","className","tooltip"]);let c=jsxRuntime.jsxs(Fa,f(s({size:"sm",className:l("ring-2 ring-background",t)},d),{children:[jsxRuntime.jsx(Ea,{src:e,alt:a}),jsxRuntime.jsx(Ha,{children:o})]}));return r?jsxRuntime.jsx(Ca,{children:jsxRuntime.jsxs(Ye,{children:[jsxRuntime.jsx(ea,{asChild:true,children:c}),jsxRuntime.jsx(aa,{children:r})]})}):c}function Df(r){var d=r,{children:e,className:a,icon:o}=d,t=n(d,["children","className","icon"]);return jsxRuntime.jsx("td",f(s({className:"px-5 py-4 align-middle"},t),{children:jsxRuntime.jsx(fe,{variant:"regular-soft",className:a,icon:o,children:e})}))}function Rf({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:l("relative h-0.5 w-full overflow-hidden rounded-pill bg-gray-100",e),children:jsxRuntime.jsx("div",{className:l("absolute inset-y-0 left-0 rounded-pill transition-all duration-300",o(a)),style:{width:`${a}%`}})})}function Mf(r){var d=r,{questions:e,answered:a,className:o}=d,t=n(d,["questions","answered","className"]);let i=a>0?a/e*100:0;return a===0?jsxRuntime.jsx("td",f(s({className:"px-5 py-4 align-middle"},t),{children:jsxRuntime.jsx("div",{className:l("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:l("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(Rf,{percentage:i})]})}))}var Nf={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:({progress: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:({progress: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 Bf(e,a,o){return [[e,"notStarted"],[a,"minNotReached"],[o>=80,"dominated"],[true,"notDominated"]].find(([r])=>r)[1]}function Ff(d){var i=d,{answered:e,correct:a,minQuestions:o,className:t}=i,r=n(i,["answered","correct","minQuestions","className"]);let u=e>0?a/e*100:0,c=e===0,p=a<o,m=o-a,g=Bf(c,p,u),{icon:h,bgColor:k,iconColor:C,titleClassName:R,title:B,subtitle:_}=Nf[g],F={progress:u,correct:a,answered:e,remainingQuestions:m};return jsxRuntime.jsx("td",f(s({className:"px-5 py-4 align-middle"},r),{children:jsxRuntime.jsx("div",{className:l("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:l("flex size-4 items-center justify-center rounded-full",k),children:jsxRuntime.jsx(h,{className:l("size-3",C),strokeWidth:2.6})}),jsxRuntime.jsxs("div",{className:"flex flex-col items-start justify-center",children:[jsxRuntime.jsx("span",{className:l("whitespace-nowrap",R),children:B(F)}),jsxRuntime.jsx("span",{className:"whitespace-nowrap text-xxs font-semibold text-gray-foreground-muted",children:_(F)})]})]})})}))}function Ef(r){var d=r,{children:e,className:a,onClick:o}=d,t=n(d,["children","className","onClick"]);return jsxRuntime.jsx("td",f(s({className:"px-5 py-4 align-middle"},t),{children:jsxRuntime.jsx(Y,{variant:"regular-soft",size:"sm",iconRight:jsxRuntime.jsx(icons.ArrowRightMd,{className:"size-4"}),onClick:o,className:a,children:e})}))}var Fs=classVarianceAuthority.cva("transition-all duration-150",{variants:{size:{sm:"size-6",md:"size-7",lg:"size-8"}},defaultVariants:{size:"md"}}),Of=classVarianceAuthority.cva("",{variants:{size:{sm:"size-7",md:"size-8",lg:"size-9"}},defaultVariants:{size:"md"}}),Es=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}}),Hs=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 Vf({state:e,className:a}){let o=ke(),t=D.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 qf(e,a){let o=e+1;return a>=o?"full":a>=o-.5?"half":"empty"}function zf({value:e,onChange:a,maxStars:o=5,readOnly:t=false,labels:r,size:d="md",className:i,classNameContainer:u,classNameLabels:c}){let[p,m]=D.useState(e!=null?e:0),[g,h]=D.useState(null),k=e!==void 0,C=k?e:p,R=F=>{if(t)return;let P=F+1;k||m(P),a==null||a(P);},B=F=>{t||h(F);},_=()=>{t||h(null);};return jsxRuntime.jsxs("div",{"data-slot":"rating",className:l("inline-flex w-fit flex-col gap-2",i),children:[jsxRuntime.jsx("div",{className:l("inline-flex flex-row gap-1",u),onMouseLeave:_,children:Array.from({length:o},(F,P)=>{let ee=g!==null,z=ee&&P<=g,b=g===P,v=ee?z?"full":"empty":qf(P,C);return jsxRuntime.jsx("button",{type:"button",disabled:t,onClick:()=>R(P),onMouseEnter:()=>B(P),className:Es({size:d,readOnly:t}),"aria-label":`Rate ${P+1} out of ${o}`,children:jsxRuntime.jsx(Vf,{state:v,className:b&&!t?Of({size:d}):Fs({size:d})})},P)})}),r&&r.length===2&&jsxRuntime.jsxs("div",{className:l(Hs({size:d}),c),children:[jsxRuntime.jsx("span",{className:"truncate",children:r[0]}),jsxRuntime.jsx("span",{className:"truncate text-right",children:r[1]})]})]})}function Ro(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:l("relative",e)},o),{children:[jsxRuntime.jsx(radixUi.ScrollArea.Viewport,{"data-slot":"scroll-area-viewport",className:"size-full rounded-[inherit]",children:a}),jsxRuntime.jsx(ja,{}),jsxRuntime.jsx(ja,{orientation:"horizontal"}),jsxRuntime.jsx(radixUi.ScrollArea.Corner,{})]}))}function ja(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:l("flex touch-none select-none",a==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-px",a==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-px",e)},o),{children:jsxRuntime.jsx(radixUi.ScrollArea.ScrollAreaThumb,{"data-slot":"scroll-area-thumb",className:"relative flex-1 rounded-full bg-gray-stroke-muted"})}))}var Bt=D.createContext({invalid:false,size:"lg"});function jf(t){var r=t,{invalid:e=false,size:a="lg"}=r,o=n(r,["invalid","size"]);return jsxRuntime.jsx(Bt.Provider,{value:D.useMemo(()=>({invalid:e,size:a}),[e,a]),children:jsxRuntime.jsx(radixUi.Select.Root,s({"data-slot":"select"},o))})}function Qf(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({className:l("group relative flex flex-col gap-2",e),"data-slot":"select-wrapper"},a))}function $f(t){var r=t,{className:e,children:a}=r,o=n(r,["className","children"]);return jsxRuntime.jsx("label",f(s({className:l("pointer-events-none absolute start-3 top-0 origin-left -translate-y-1/2 bg-surface-card px-1 text-xs font-medium text-gray-foreground transition-all duration-200 ease-out","group-has-[[data-slot=select-trigger][data-placeholder]:not([data-state=open])]:start-4 group-has-[[data-slot=select-trigger][data-placeholder]:not([data-state=open])]:top-6 group-has-[[data-slot=select-trigger][data-placeholder]:not([data-state=open])]:bg-transparent group-has-[[data-slot=select-trigger][data-placeholder]:not([data-state=open])]:px-0 group-has-[[data-slot=select-trigger][data-placeholder]:not([data-state=open])]:text-md group-has-[[data-slot=select-trigger][data-placeholder]:not([data-state=open])]:font-normal group-has-[[data-slot=select-trigger][data-placeholder]:not([data-state=open])]:text-gray-foreground","group-has-[[data-slot=select-trigger][data-size=md]]:group-has-[[data-slot=select-trigger][data-placeholder]:not([data-state=open])]:top-5 group-has-[[data-slot=select-trigger][data-size=md]]:group-has-[[data-slot=select-trigger][data-placeholder]:not([data-state=open])]:!text-sm",e),"data-slot":"select-label"},o),{children:a}))}function Jf(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.Select.Group,s({"data-slot":"select-group"},e))}function Yf(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.Select.Value,s({"data-slot":"select-value"},e))}var ec=classVarianceAuthority.cva(["shadow-xs flex w-full items-center justify-between gap-2 rounded-md border-2 border-gray-stroke-muted bg-surface-card px-4 py-3 text-left text-gray-foreground outline-none transition-[color,box-shadow] hover:border-gray-stroke-emphasis hover:ring-[3px] hover:ring-state-focus disabled:cursor-default disabled:bg-gray-background-soft-muted disabled:hover:border-gray-stroke-muted disabled:hover:ring-0 aria-[invalid]:border-feedback-error-stroke aria-[invalid]:hover:ring-[3px] aria-[invalid]:hover:ring-state-error data-[placeholder]:text-gray-foreground-emphasis *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 disabled:data-[placeholder]:text-gray-foreground-muted [&>span]:line-clamp-1 [&_svg]:pointer-events-none [&_svg]:shrink-0"],{variants:{size:{lg:["h-12 max-h-12 text-md [&_svg]:size-6","group-has-[[data-slot=select-label]]:h-14"],md:["h-10 max-h-10 text-sm [&_svg]:size-5","group-has-[[data-slot=select-label]]:h-11"]}},defaultVariants:{size:"lg"}}),ac=classVarianceAuthority.cva("data-disabled:pointer-events-none relative flex w-full cursor-default select-none items-center rounded px-2 font-medium text-gray-foreground outline-none hover:cursor-pointer hover:bg-secondary-background-soft-emphasis gap-3",{variants:{size:{lg:"py-2 text-sm [&_svg]:size-5",md:"py-2 text-sm [&_svg]:size-5"}},defaultVariants:{size:"lg"}});function tc(t){var r=t,{className:e,children:a}=r,o=n(r,["className","children"]);let{invalid:d,size:i}=D.useContext(Bt);return jsxRuntime.jsxs(radixUi.Select.Trigger,f(s({className:l(ec({size:i}),!d&&"[&:not([data-placeholder]):not(:disabled)]:border-gray-stroke-emphasis","group-has-[[data-slot=select-label]]:py-3 group-has-[[data-slot=select-label]]:data-[placeholder]:text-transparent",e),"data-slot":"select-trigger","data-size":i,"aria-invalid":d?"true":void 0},o),{children:[a,jsxRuntime.jsx(radixUi.Select.Icon,{asChild:true,children:jsxRuntime.jsx(icons.ChevronDown,{className:l("flex-shrink-0 text-gray-foreground"),strokeWidth:1.6})})]}))}function oc(r){var d=r,{className:e,children:a,position:o="popper"}=d,t=n(d,["className","children","position"]);return jsxRuntime.jsx(radixUi.Select.Portal,{children:jsxRuntime.jsxs(radixUi.Select.Content,f(s({className:l("relative z-50 max-h-[min(24rem,var(--radix-select-content-available-height))] min-w-32 overflow-hidden rounded-md border border-gray-stroke-muted bg-surface-elevated text-gray-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 [&_[role=group]]:py-1",o==="popper"&&"w-full min-w-[var(--radix-select-trigger-width)] data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),"data-slot":"select-content",position:o},t),{children:[jsxRuntime.jsx(qs,{}),jsxRuntime.jsx(radixUi.Select.Viewport,{className:l("p-2",o==="popper"&&"h-[var(--radix-select-trigger-height)]"),children:a}),jsxRuntime.jsx(zs,{})]}))})}function rc(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.Select.Label,s({className:l("px-2 py-2 text-xs font-medium text-gray-foreground-muted",e),"data-slot":"select-header"},a))}function sc(r){var d=r,{className:e,children:a,icon:o}=d,t=n(d,["className","children","icon"]);let{size:i}=D.useContext(Bt);return jsxRuntime.jsxs(radixUi.Select.Item,f(s({className:l(ac({size:i}),e),"data-slot":"select-item"},t),{children:[o&&jsxRuntime.jsx("span",{className:"flex shrink-0 items-center justify-center text-gray-foreground",children:D.isValidElement(o)?D.cloneElement(o,{strokeWidth:1.6}):o}),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,{strokeWidth:1.6,className:"text-secondary-foreground"})})})]}))}function lc(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.Select.Separator,s({className:l("-mx-1 my-1 h-px bg-gray-stroke-muted",e),"data-slot":"select-separator"},a))}function qs(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.Select.ScrollUpButton,f(s({className:l("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 zs(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.Select.ScrollDownButton,f(s({className:l("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 dc(o){var t=o,{className:e}=t,a=n(t,["className"]);let{invalid:r}=D.useContext(Bt);return jsxRuntime.jsx("span",s({className:l("-mt-1 text-xs",r?"text-feedback-error-foreground":"text-gray-foreground",e),"data-slot":"select-text"},a))}var _s=D.createContext(null);function cc(r){var d=r,{className:e,size:a="md",children:o}=d,t=n(d,["className","size","children"]);return jsxRuntime.jsx(_s.Provider,{value:D.useMemo(()=>({size:a}),[a]),children:jsxRuntime.jsx(radixUi.Tabs.Root,f(s({"data-slot":"tabs",className:l("flex flex-col gap-2",e)},t),{children:o}))})}function pc(t){var r=t,{className:e,containerClassName:a}=r,o=n(r,["className","containerClassName"]);return jsxRuntime.jsxs(Ro,{className:l("[&_[data-slot=scroll-area-scrollbar][data-orientation=horizontal]]:h-1",a),children:[jsxRuntime.jsx(radixUi.Tabs.List,s({"data-slot":"tabs-list",className:l("inline-flex w-fit items-center justify-center rounded-md bg-gray-background-soft p-0.5",e)},o)),jsxRuntime.jsx(ja,{orientation:"horizontal"})]})}var Us=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 mc(i){var u=i,{className:e,icon:a,badge:o,badgeVariant:t,children:r}=u,d=n(u,["className","icon","badge","badgeVariant","children"]);var g;let c=h=>h!=null&&h!==0&&h!==""&&h!=="0"&&!d.disabled,p=D.useContext(_s),m=(g=p==null?void 0:p.size)!=null?g:"md";return jsxRuntime.jsxs(radixUi.Tabs.Trigger,f(s({"data-slot":"tabs-trigger",className:l(Us({size:m,className:e}))},d),{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(Be,{size:m,variant:t,children:String(o)})]}))}function gc(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.Tabs.Content,s({"data-slot":"tabs-content",className:l("flex-1 outline-none",e)},a))}var Gs=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),xc=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,o,t)=>t?t.toUpperCase():o.toLowerCase()),Fo=e=>{let a=xc(e);return a.charAt(0).toUpperCase()+a.slice(1)},Et=(...e)=>e.filter((a,o,t)=>!!a&&a.trim()!==""&&t.indexOf(a)===o).join(" ").trim(),Ws=e=>{for(let a in e)if(a.startsWith("aria-")||a==="role"||a==="title")return true};var Xs={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 Zs=D.forwardRef((p,c)=>{var m=p,{color:e="currentColor",size:a=24,strokeWidth:o=2,absoluteStrokeWidth:t,className:r="",children:d,iconNode:i}=m,u=n(m,["color","size","strokeWidth","absoluteStrokeWidth","className","children","iconNode"]);return D.createElement("svg",s(s(f(s({ref:c},Xs),{width:a,height:a,stroke:e,strokeWidth:t?Number(o)*24/Number(a):o,className:Et("lucide",r)}),!d&&!Ws(u)&&{"aria-hidden":"true"}),u),[...i.map(([g,h])=>D.createElement(g,h)),...Array.isArray(d)?d:[d]])});var js=(e,a)=>{let o=D.forwardRef((i,d)=>{var u=i,{className:t}=u,r=n(u,["className"]);return D.createElement(Zs,s({ref:d,iconNode:a,className:Et(`lucide-${Gs(Fo(e))}`,`lucide-${e}`,t)},r))});return o.displayName=Fo(e),o};var Lc=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Qa=js("x",Lc);function Ho(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.Dialog.Root,s({"data-slot":"sheet"},e))}function vc(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.Dialog.Trigger,s({"data-slot":"sheet-trigger"},e))}function Ic(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.Dialog.Close,s({"data-slot":"sheet-close"},e))}function kc(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.Dialog.Portal,s({"data-slot":"sheet-portal"},e))}function yc(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.Dialog.Overlay,s({"data-slot":"sheet-overlay",className:l("bg-black/50 fixed inset-0 z-50 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e)},a))}function Oo(r){var d=r,{className:e,children:a,side:o="right"}=d,t=n(d,["className","children","side"]);return jsxRuntime.jsxs(kc,{children:[jsxRuntime.jsx(yc,{}),jsxRuntime.jsxs(radixUi.Dialog.Content,f(s({"data-slot":"sheet-content",className:l("fixed z-50 flex flex-col gap-4 bg-background shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",o==="right"&&"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm",o==="left"&&"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",o==="top"&&"inset-x-0 top-0 h-auto border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",o==="bottom"&&"inset-x-0 bottom-0 h-auto border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",e)},t),{children:[a,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(Qa,{className:"size-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Close"})]})]}))]})}function Sc(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"sheet-header",className:l("flex flex-col gap-1.5 p-4",e)},a))}function Pc(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"sheet-footer",className:l("mt-auto flex flex-col gap-2 p-4",e)},a))}function wc(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.Dialog.Title,s({"data-slot":"sheet-title",className:l("font-semibold text-foreground",e)},a))}function Tc(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.Dialog.Description,s({"data-slot":"sheet-description",className:l("text-muted-foreground text-sm",e)},a))}function Ht(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"skeleton",className:l("animate-pulse rounded-md bg-gray-150",e)},a))}var Ec="sidebar_state",Hc=3600*24*7,Oc="b",Ys=D.createContext(null);function va(){let e=D.useContext(Ys);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}function Vc(i){var u=i,{defaultOpen:e=true,open:a,onOpenChange:o,className:t,children:r}=u,d=n(u,["defaultOpen","open","onOpenChange","className","children"]);let c=Ga(),[p,m]=D.useState(false),[g,h]=D.useState(e),k=a!=null?a:g,C=D.useCallback(F=>{let P=typeof F=="function"?F(k):F;o?o(P):h(P),document.cookie=`${Ec}=${P}; path=/; max-age=${Hc}`;},[o,k]),R=D.useCallback(()=>c?m(F=>!F):C(F=>!F),[c,C,m]);D.useEffect(()=>{let F=P=>{P.key===Oc&&(P.metaKey||P.ctrlKey)&&(P.preventDefault(),R());};return window.addEventListener("keydown",F),()=>window.removeEventListener("keydown",F)},[R]);let B=k?"expanded":"collapsed",_=D.useMemo(()=>({state:B,open:k,setOpen:C,isMobile:c,openMobile:p,setOpenMobile:m,toggleSidebar:R}),[B,k,C,c,p,m,R]);return jsxRuntime.jsx(Ys.Provider,{value:_,children:jsxRuntime.jsx(Ca,{delayDuration:0,children:jsxRuntime.jsx("div",f(s({"data-slot":"sidebar-wrapper",className:l("group/sidebar-wrapper has-data-[variant=inset]:bg-surface-navigation flex min-h-svh w-full",t)},d),{children:r}))})})}function qc(u){var c=u,{side:e="left",variant:a="sidebar",collapsible:o="offcanvas",className:t,containerClassName:r,children:d}=c,i=n(c,["side","variant","collapsible","className","containerClassName","children"]);let{isMobile:p,state:m,openMobile:g,setOpenMobile:h}=va();return o==="none"?jsxRuntime.jsx("div",f(s({"data-slot":"sidebar",className:l("flex h-full w-[var(--sidebar-width)] flex-col bg-surface-navigation text-gray-foreground",t)},i),{children:d})):p?jsxRuntime.jsx(Ho,f(s({open:g,onOpenChange:h},i),{children:jsxRuntime.jsx(Oo,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:l("w-[var(--sidebar-width-mobile)] bg-surface-navigation p-0 text-gray-foreground [&>button]:hidden",t),side:e,children:jsxRuntime.jsx("div",{className:"flex h-full w-full flex-col",children:d})})})):jsxRuntime.jsxs("div",{className:l("group peer hidden text-gray-foreground md:block",t),"data-state":m,"data-collapsible":m==="collapsed"?o:"","data-variant":a,"data-side":e,"data-slot":"sidebar",children:[jsxRuntime.jsx("div",{"data-slot":"sidebar-gap",className:l("relative w-[var(--sidebar-width)] bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",a==="floating"||a==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-[var(--sidebar-width-icon)]")}),jsxRuntime.jsx("div",f(s({"data-slot":"sidebar-container",className:l("fixed inset-y-0 z-10 hidden h-svh w-[var(--sidebar-width)] border-gray-stroke-muted transition-[left,right,width] duration-200 ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",a==="floating"||a==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-[var(--sidebar-width-icon)] group-data-[side=left]:border-r group-data-[side=right]:border-l",r)},i),{children: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:d})}))]})}function zc(c){var p=c,{className:e,onClick:a,sizeIcon:o="size-5",icon:t=jsxRuntime.jsx(icons.HamburgerMd,{className:o}),showTooltip:r=false,tooltipContent:d,enableHover:i=false}=p,u=n(p,["className","onClick","sizeIcon","icon","showTooltip","tooltipContent","enableHover"]);let{toggleSidebar:m,open:g,isMobile:h}=va(),[k,C]=D.useState(false),B=d||{open:"Esconder",closed:"Mostrar"},_=()=>i&&k?g?jsxRuntime.jsx(icons.ChevronLeftMd,{className:o}):jsxRuntime.jsx(icons.ChevronRightMd,{className:o}):t,F=jsxRuntime.jsxs("button",f(s({"data-sidebar":"trigger","data-slot":"sidebar-trigger",className:l("flex min-h-8 min-w-8 items-center justify-center rounded-full bg-surface-elevated text-gray-foreground transition-all duration-200 hover:shadow-[0px_0px_2px_0px_rgba(24,26,30,0.16),0px_2px_4px_0px_rgba(24,26,30,0.08)] [&>svg]:text-gray-foreground",e),onClick:P=>{a==null||a(P),m();},onMouseEnter:!h&&i?()=>C(true):void 0,onMouseLeave:!h&&i?()=>C(false):void 0},u),{children:[_(),jsxRuntime.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]}));return !r||h?F:jsxRuntime.jsxs(Ye,{children:[jsxRuntime.jsx(ea,{asChild:true,children:F}),jsxRuntime.jsx(aa,{side:"right",align:"center",children:g?B.open:B.closed})]})}function _c(o){var t=o,{className:e}=t,a=n(t,["className"]);let{toggleSidebar:r}=va();return jsxRuntime.jsx("button",s({"data-sidebar":"rail","data-slot":"sidebar-rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:r,title:"Toggle Sidebar",className:l("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-gray-stroke-muted group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full hover:group-data-[collapsible=offcanvas]:bg-surface-navigation","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e)},a))}function Uc(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("main",s({"data-slot":"sidebar-inset",className:l("relative flex w-full flex-1 flex-col bg-surface-navigation","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm",e)},a))}function Gc(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(To,s({"data-slot":"sidebar-input","data-sidebar":"input",className:l("bg-bg-surface-navigation h-8 w-full shadow-none",e)},a))}function Wc(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"sidebar-header","data-sidebar":"header",className:l("flex flex-col gap-0.5 px-4 pt-3",e)},a))}function Xc(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"sidebar-footer","data-sidebar":"footer",className:l("flex flex-col gap-0.5 px-4 pb-3 [[data-state=collapsed]_&]:px-2",e)},a))}function Kc(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(ua,s({"data-slot":"sidebar-separator","data-sidebar":"separator",className:l("mx-2 w-auto bg-gray-stroke-muted",e)},a))}function Zc(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"sidebar-content","data-sidebar":"content",className:l("flex min-h-0 flex-1 flex-col gap-0.5 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e)},a))}function jc(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"sidebar-group","data-sidebar":"group",className:l("relative flex w-full min-w-0 flex-col p-2 px-4",e)},a))}function Qc(t){var r=t,{className:e,asChild:a=false}=r,o=n(r,["className","asChild"]);let d=a?radixUi.Slot.Slot:"div";return jsxRuntime.jsx(d,s({"data-slot":"sidebar-group-label","data-sidebar":"group-label",className:l("outline-hidden flex h-12 shrink-0 items-center whitespace-nowrap rounded-md px-2 text-xs font-semibold uppercase text-gray-foreground-muted ring-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:mt-0 group-data-[collapsible=icon]:hidden",e)},o))}function $c(t){var r=t,{className:e,asChild:a=false}=r,o=n(r,["className","asChild"]);let d=a?radixUi.Slot.Slot:"button";return jsxRuntime.jsx(d,s({"data-slot":"sidebar-group-action","data-sidebar":"group-action",className:l("outline-hidden absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-gray-foreground ring-ring transition-transform hover:bg-secondary-background-soft-emphasis focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 md:after:hidden","group-data-[collapsible=icon]:hidden",e)},o))}function Jc(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:l("w-full text-sm",e)},a))}function Yc(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("ul",s({"data-slot":"sidebar-menu","data-sidebar":"menu",className:l("flex w-full min-w-0 flex-col gap-1",e)},a))}function ep(r){var d=r,{className:e,isActive:a,children:o}=d,t=n(d,["className","isActive","children"]);return jsxRuntime.jsxs("li",f(s({"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:l("group/menu-item relative hover:cursor-pointer",e)},t),{children:[a&&jsxRuntime.jsx("span",{className:"absolute -left-4 top-0 h-full w-0.5 bg-secondary-stroke-emphasis","aria-hidden":"true"}),o]}))}var ap=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] [&>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 tp(u){var c=u,{asChild:e=false,isActive:a=false,variant:o="default",size:t="md",tooltip:r,className:d}=c,i=n(c,["asChild","isActive","variant","size","tooltip","className"]);let p=e?radixUi.Slot.Slot:"button",{isMobile:m,state:g}=va(),h=jsxRuntime.jsx(p,s({"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":t,"data-active":a,className:l(ap({variant:o,size:t}),d)},i));return r?(typeof r=="string"&&(r={children:r}),jsxRuntime.jsxs(Ye,{children:[jsxRuntime.jsx(ea,{asChild:true,children:h}),jsxRuntime.jsx(aa,s({side:"right",align:"center",hidden:g!=="collapsed"||m},r))]})):h}function op(r){var d=r,{className:e,asChild:a=false,showOnHover:o=false}=d,t=n(d,["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:l("outline-hidden absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-gray-foreground ring-ring transition-transform hover:bg-secondary-background-soft-emphasis focus-visible:ring-2 peer-hover/menu-button:text-secondary-stroke-emphasis [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 md:after:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",o&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-secondary md:opacity-0",e)},t))}function rp(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:l("pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-gray-foreground","peer-hover/menu-button:text-secondary peer-data-[active=true]/menu-button:text-secondary","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e)},a))}function sp(t){var r=t,{className:e,showIcon:a=false}=r,o=n(r,["className","showIcon"]);let d=D.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return jsxRuntime.jsxs("div",f(s({"data-slot":"sidebar-menu-skeleton","data-sidebar":"menu-skeleton",className:l("flex h-8 items-center gap-0.5 rounded-md px-2",e)},o),{children:[a&&jsxRuntime.jsx(Ht,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),jsxRuntime.jsx(Ht,{className:"max-w-(--skeleton-width) h-4 flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":d}})]}))}function lp(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:l("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-gray-stroke-muted px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e)},a))}function dp(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:l("group/menu-sub-item relative",e)},a))}function np({icon:e,title:a}){let{state:o,isMobile:t}=va();return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[e,jsxRuntime.jsx("span",{className:l("whitespace-nowrap",o==="collapsed"&&"opacity-0",t&&"opacity-100"),children:a})]})}function ip(){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})})}function up(d){var i=d,{asChild:e=false,size:a="md",isActive:o=false,className:t}=i,r=n(i,["asChild","size","isActive","className"]);let u=e?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:l("outline-hidden flex h-9 min-w-0 -translate-x-px items-center gap-0.5 overflow-hidden rounded-md px-2 font-medium text-gray-foreground ring-ring hover:bg-secondary-background-soft-emphasis focus-visible:ring-2 active:font-semibold active:text-secondary-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-gray-foreground","data-[active=true]:font-semibold data-[active=true]:text-secondary-foreground",a==="sm"&&"text-xs",a==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",t)},r))}var mp={sm:"size-2",md:"size-3",lg:"size-4"},al={sm:"[&_svg]:size-2",md:"[&_svg]:size-3",lg:"[&_svg]:size-3.5"},gp={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]"},tl=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 xp(c){var p=c,{className:e,size:a,variant:o,checkedIcon:t,uncheckedIcon:r,checked:d,defaultChecked:i}=p,u=n(p,["className","size","variant","checkedIcon","uncheckedIcon","checked","defaultChecked"]);let[m,g]=D.useState(i||false),h=d!==void 0,k=h?d:m,C=t||r;return jsxRuntime.jsx(radixUi.Switch.Root,f(s({"data-slot":"switch",className:l("group",tl({size:a,variant:o}),e),checked:d,defaultChecked:i,onCheckedChange:R=>{var B;h||g(R),(B=u.onCheckedChange)==null||B.call(u,R);}},u),{children:jsxRuntime.jsx(radixUi.Switch.Thumb,{"data-slot":"switch-thumb",className:l("pointer-events-none flex items-center justify-center rounded-full ring-0 transition-transform data-[state=unchecked]:translate-x-0.5 data-[disabled]:!bg-gray-background-fill-muted data-[state=checked]:bg-primary-foreground-onfill data-[state=unchecked]:bg-gray-foreground-muted data-[state=unchecked]:group-hover:bg-gray-foreground data-[state=unchecked]:group-data-[disabled]:group-hover:bg-gray-foreground-muted",C&&"!bg-transparent data-[disabled]:!bg-transparent",mp[a||"md"],gp[a||"md"]),children:C&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[k&&t&&jsxRuntime.jsx("span",{className:l("flex items-center justify-center text-primary-foreground-onfill group-data-[disabled]:text-gray-300",al[a||"md"]),children:t}),!k&&r&&jsxRuntime.jsx("span",{className:l("flex items-center justify-center text-gray-foreground group-data-[disabled]:text-gray-300",al[a||"md"]),children:r})]})})}))}var ol=D.createContext({});function Ip({children:e,value:a,onValueChange:o,open:t,defaultOpen:r,onOpenChange:d}){let[i,u]=D.useState(a||""),c={value:a||i,onValueChange:o||u};return jsxRuntime.jsx(ol.Provider,{value:c,children:jsxRuntime.jsx(xo,{open:t,defaultOpen:r,onOpenChange:d,children:e})})}function kp({children:e,asChild:a=true,className:o}){return jsxRuntime.jsx(ho,{className:o,asChild:a,children:e})}function yp({children:e,align:a="center",side:o="right",className:t}){return jsxRuntime.jsx(bo,{className:t,align:a,side:o,children:e})}function Sp({children:e,label:a}){let{value:o,onValueChange:t}=D.useContext(ol);return a?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Lo,{children:a}),jsxRuntime.jsx(Ct,{value:o,onValueChange:t,children:e})]}):jsxRuntime.jsx(Ct,{value:o,onValueChange:t,children:e})}function Pp({children:e,value:a,onClick:o,icon:t}){let r=()=>{o&&o();};return a?jsxRuntime.jsxs(Co,{value:a,onClick:r,children:[typeof t=="string"?jsxRuntime.jsx("img",{src:t,alt:"",width:20,height:14}):t,e]}):jsxRuntime.jsxs(bt,{onClick:r,children:[typeof t=="string"?jsxRuntime.jsx("img",{src:t,alt:"",width:20,height:14}):t,e]})}function wp({children:e,onClick:a,icon:o}){return jsxRuntime.jsxs(bt,{onClick:a,children:[o,e]})}function Tp(){return jsxRuntime.jsx(vo,{})}var ll=D.createContext(null),Fp=150,rl=16,Ep="w-8";function zo(){let e=D.useContext(ll);if(!e)throw new Error("useTabsContext must be used within a Tabs component.");return e}function Hp(e,a){let o=D.useRef(null);return D.useEffect(()=>()=>{o.current&&clearTimeout(o.current);},[]),D.useCallback(((...t)=>{o.current&&clearTimeout(o.current),o.current=setTimeout(()=>e(...t),a);}),[e,a])}var dl=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"}}),nl=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"}}),Op=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"}}),sl=classVarianceAuthority.cva(["pointer-events-none absolute top-0 z-10 h-full transition-opacity duration-200",Ep],{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"}}),il=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 Vp(i){var u=i,{className:e,variant:a="standalone",size:o="md",responsive:t=true,children:r}=u,d=n(u,["className","variant","size","responsive","children"]);let[c,p]=D.useState(o),m=D.useCallback(()=>{if(typeof window=="undefined")return;let h=parseInt(ha.tablet),k=parseInt(ha.mobile),C=window.innerWidth;C<=k||C<=h?p("md"):p(o);},[o]),g=Hp(m,Fp);return D.useEffect(()=>{if(typeof window=="undefined"||!t){p(o);return}return m(),window.addEventListener("resize",g),()=>window.removeEventListener("resize",g)},[t,o,m,g]),jsxRuntime.jsx(ll.Provider,{value:D.useMemo(()=>({variant:a,size:o,responsiveSize:c}),[a,o,c]),children:jsxRuntime.jsx(radixUi.Tabs.Root,f(s({"data-slot":"tabs","data-variant":a,"data-size":c,className:l("flex w-full max-w-full flex-col overflow-hidden",e)},d),{children:r}))})}function qp(p){var m=p,{className:e,wrapperClassName:a,scrollContainerClassName:o,innerClassName:t,indicatorClassName:r,leftFadeClassName:d,rightFadeClassName:i,children:u}=m,c=n(m,["className","wrapperClassName","scrollContainerClassName","innerClassName","indicatorClassName","leftFadeClassName","rightFadeClassName","children"]);let{variant:g,responsiveSize:h}=zo(),k=D.useRef(null),C=D.useRef(null),[R,B]=D.useState(false),[_,F]=D.useState(false),[P,ee]=D.useState(null),z=D.useCallback(()=>{let I=k.current;if(!I)return;let{scrollLeft:H,scrollWidth:M,clientWidth:O}=I,ae=M>O;B(ae&&H>0),F(ae&&H<M-O-1);},[]),b=D.useCallback(()=>{let I=C.current;if(!I)return;let H=I.querySelector('[data-state="active"]');if(H){let M=I.getBoundingClientRect(),O=H.getBoundingClientRect();ee({left:O.left-M.left,width:O.width});}},[]),v=D.useCallback(()=>{let I=k.current,H=C.current;if(!I||!H)return;let M=H.querySelector('[data-state="active"]');if(M){let O=I.getBoundingClientRect(),ae=M.getBoundingClientRect();ae.left<O.left?I.scrollBy({left:ae.left-O.left-rl,behavior:"smooth"}):ae.right>O.right&&I.scrollBy({left:ae.right-O.right+rl,behavior:"smooth"});}},[]);return D.useEffect(()=>{let I=k.current;if(!I)return;z();let H=new ResizeObserver(()=>{z(),b();});return H.observe(I),I.addEventListener("scroll",z,{passive:true}),()=>{H.disconnect(),I.removeEventListener("scroll",z);}},[z,b]),D.useEffect(()=>{b();},[b,u]),D.useEffect(()=>{let I=C.current;if(!I)return;let H=new MutationObserver(M=>{for(let O of M)if(O.type==="attributes"&&O.attributeName==="data-state"){b(),v();break}});return H.observe(I,{attributes:true,subtree:true,attributeFilter:["data-state"]}),()=>H.disconnect()},[b,v]),jsxRuntime.jsxs("div",{"data-slot":"tabs-list-wrapper",className:l(Op({variant:g}),a),children:[jsxRuntime.jsx("div",{"data-slot":"tabs-fade-left",className:l(sl({side:"left",variant:g}),R?"opacity-100":"opacity-0",d),"aria-hidden":"true"}),jsxRuntime.jsx("div",{"data-slot":"tabs-fade-right",className:l(sl({side:"right",variant:g}),_?"opacity-100":"opacity-0",i),"aria-hidden":"true"}),jsxRuntime.jsx("div",{ref:k,"data-slot":"tabs-scroll-container",className:l("overflow-x-auto overflow-y-hidden [-ms-overflow-style:none] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",o),children:jsxRuntime.jsxs("div",{ref:C,"data-slot":"tabs-list-inner",className:l("relative",t),children:[jsxRuntime.jsx(radixUi.Tabs.List,f(s({"data-slot":"tabs-list","data-variant":g,"data-size":h,className:l(dl({variant:g}),e)},c),{children:u})),P&&jsxRuntime.jsx("div",{"data-slot":"tabs-indicator",className:l("pointer-events-none absolute bottom-0 h-0.5 bg-secondary-stroke-emphasis transition-all duration-300 ease-out",r),style:{left:P.left,width:P.width},"aria-hidden":"true"})]})})]})}function zp(d){var i=d,{className:e,children:a,icon:o,badge:t}=i,r=n(i,["className","children","icon","badge"]);let{variant:u,responsiveSize:c}=zo(),p=D.useRef(null),[m,g]=D.useState(false);D.useEffect(()=>{let k=p.current;if(!k)return;let C=()=>{g(k.getAttribute("data-state")==="active");};C();let R=new MutationObserver(C);return R.observe(k,{attributes:true,attributeFilter:["data-state"]}),()=>R.disconnect()},[]);let h=()=>o?D.isValidElement(o)?D.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:l(nl({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 _p(o){var t=o,{className:e}=t,a=n(t,["className"]);let{variant:r,responsiveSize:d}=zo();return jsxRuntime.jsx(radixUi.Tabs.Content,s({"data-slot":"tabs-content","data-variant":r,"data-size":d,className:l(il({variant:r,size:d}),e)},a))}var ul=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 Xp(i){var u=i,{className:e,variant:a="regular",asChild:o=false,disabled:t=false,inactive:r=false}=u,d=n(u,["className","variant","asChild","disabled","inactive"]);let c=o?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:l(ul({variant:a,className:e}),d.onClick&&!t&&"cursor-pointer")},d),{children:[d.children,d.onClick&&!t&&jsxRuntime.jsx(icons.EditPencil,{className:"absolute right-5 top-4 size-5 opacity-0 transition-opacity group-hover/tile:opacity-100"})]}))}function Kp(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:l("mb-2.5 last:mb-0 [&>svg]:size-5",e)},o),{children:a}))}function Zp(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",s({"data-slot":"tile-title",className:l("line-clamp-1 flex w-fit text-xs font-medium",e)},a))}function jp(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("span",s({"data-slot":"tile-description",className:l("line-clamp-1 flex w-fit text-sm font-semibold",e)},a))}var Yp=3,em=5e3,Oe={ADD_TOAST:"ADD_TOAST",UPDATE_TOAST:"UPDATE_TOAST",DISMISS_TOAST:"DISMISS_TOAST",REMOVE_TOAST:"REMOVE_TOAST"},_o=0;function am(){return _o=(_o+1)%Number.MAX_SAFE_INTEGER,_o.toString()}var Uo=new Map,fl=e=>{if(Uo.has(e))return;let a=setTimeout(()=>{Uo.delete(e),at({type:Oe.REMOVE_TOAST,toastId:e});},em);Uo.set(e,a);},tm=(e,a)=>{switch(a.type){case Oe.ADD_TOAST:return f(s({},e),{toasts:[a.toast,...e.toasts].slice(0,Yp)});case Oe.UPDATE_TOAST:return f(s({},e),{toasts:e.toasts.map(o=>o.id===a.toast.id?s(s({},o),a.toast):o)});case Oe.DISMISS_TOAST:{let{toastId:o}=a;return o?fl(o):e.toasts.forEach(t=>{fl(t.id);}),f(s({},e),{toasts:e.toasts.map(t=>t.id===o||a.toastId===void 0?f(s({},t),{open:false}):t)})}case Oe.REMOVE_TOAST:return a.toastId===void 0?f(s({},e),{toasts:[]}):f(s({},e),{toasts:e.toasts.filter(o=>o.id!==a.toastId)})}},Ut=[],Gt={toasts:[]};function at(e){Gt=tm(Gt,e),[...Ut].forEach(a=>{a(Gt);});}function om(a){var e=n(a,[]);let o=am(),t=d=>at({type:Oe.UPDATE_TOAST,toast:f(s({},d),{id:o})}),r=()=>at({type:Oe.DISMISS_TOAST,toastId:o});return at({type:Oe.ADD_TOAST,toast:f(s({},e),{id:o,open:true,onOpenChange:d=>{d||r();}})}),{id:o,dismiss:r,update:t}}function Go(){let[e,a]=D.useState(Gt);return D.useEffect(()=>(Ut.push(a),()=>{let o=Ut.indexOf(a);o>-1&&Ut.splice(o,1);}),[]),f(s({},e),{toast:om,dismiss:o=>at({type:Oe.DISMISS_TOAST,toastId:o})})}var ml=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 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=open]:slide-in-from-top-full data-[state=closed]:fade-out-0 data-[state=closed]:slide-out-to-top-4 data-[state=open]:duration-300 data-[state=closed]:duration-400 data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=cancel]:transition-transform data-[swipe=end]:animate-out transition-[transform,opacity]",{variants:{variant:{primary:"text-primary-foreground",secondary:"text-secondary-foreground",success:"text-feedback-success-foreground",warning:"text-feedback-warning-foreground",error:"text-feedback-error-foreground"}},defaultVariants:{variant:"primary"}}),nm=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"}}),im={primary:"regular-soft",secondary:"emphasis-soft",success:"success-soft",warning:"warning-soft",error:"error-soft"},um={primary:icons.Info,secondary:icons.Info,success:icons.CircleCheck,warning:icons.TriangleWarning,error:icons.OctagonWarning},fm=radixUi.Toast.Provider;function gl(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.Toast.Viewport,s({"data-slot":"toast-viewport",className:l("fixed right-0 top-0 z-[100] flex max-h-screen w-full min-w-0 max-w-[500px] flex-col gap-2 p-4 md:w-[500px]",e)},a))}function xl(i){var u=i,{className:e,variant:a="primary",showIcon:o=true,duration:t=5e3,children:r}=u,d=n(u,["className","variant","showIcon","duration","children"]);let c=um[a||"primary"];return jsxRuntime.jsxs(radixUi.Toast.Root,f(s({duration:t,className:l(ml({variant:a}),e)},d),{children:[o&&jsxRuntime.jsx(c,{className:l(nm({variant:a}))}),jsxRuntime.jsx("div",{className:"flex flex-1 items-center justify-between gap-4",children:r})]}))}function cm(c){var p=c,{className:e,variant:a="primary",size:o="sm",iconLeft:t,iconRight:r,children:d,altText:i="Toast action"}=p,u=n(p,["className","variant","size","iconLeft","iconRight","children","altText"]);return jsxRuntime.jsx(radixUi.Toast.Action,f(s({asChild:true,altText:i,className:l("inline-flex items-center justify-center",e)},u),{children:jsxRuntime.jsx(Y,{iconLeft:t,iconRight:r,size:o,variant:im[a],children:d})}))}function hl(t){var r=t,{className:e,label:a="Fechar"}=r,o=n(r,["className","label"]);return jsxRuntime.jsx(radixUi.Toast.Close,f(s({className:l("shrink-0",e)},o),{asChild:true,children:jsxRuntime.jsx(Y,{iconLeft:jsxRuntime.jsx(icons.CloseMd,{className:"size-4"}),size:"sm","aria-label":a,variant:"regular-basic"})}))}function bl(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.Toast.Title,s({className:l("flex-1 text-md font-medium",e)},a))}function Cl(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.Toast.Description,s({className:l("text-xs",e)},a))}function pm(){let{toasts:e}=Go();return jsxRuntime.jsxs(fm,{children:[e.map(function(i){var u=i,{id:a,title:o,description:t,action:r}=u,d=n(u,["id","title","description","action"]);return jsxRuntime.jsxs(xl,f(s({},d),{children:[jsxRuntime.jsxs("div",{className:"grid",children:[o&&jsxRuntime.jsx(bl,{children:o}),t&&jsxRuntime.jsx(Cl,{children:t})]}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[r,jsxRuntime.jsx(hl,{})]})]}),a)}),jsxRuntime.jsx(gl,{})]})}/*! 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=Dl;exports.AlertActions=Bl;exports.AlertButton=Fl;exports.AlertContainer=Rl;exports.AlertContent=Ml;exports.AlertDescription=Yo;exports.AlertDialog=rd;exports.AlertDialogAction=pd;exports.AlertDialogCancel=md;exports.AlertDialogContent=ld;exports.AlertDialogDescription=fd;exports.AlertDialogFooter=cd;exports.AlertDialogHeader=dd;exports.AlertDialogIcon=nd;exports.AlertDialogOverlay=nr;exports.AlertDialogPortal=dr;exports.AlertDialogTag=id;exports.AlertDialogTitle=ud;exports.AlertDialogTrigger=sd;exports.AlertIcon=Nl;exports.AlertTitle=Jo;exports.Autocomplete=jd;exports.AutocompleteContent=Jd;exports.AutocompleteContentFooter=to;exports.AutocompleteGroup=en;exports.AutocompleteItem=Yd;exports.AutocompleteText=an;exports.AutocompleteTrigger=$d;exports.AutocompleteWrapper=Qd;exports.Avatar=Fa;exports.AvatarFallback=Ha;exports.AvatarImage=Ea;exports.Badge=Be;exports.Breadcrumb=Oa;exports.BreadcrumbEllipsis=fn;exports.BreadcrumbItem=
|
|
15
|
+
*/exports.Alert=Dl;exports.AlertActions=Bl;exports.AlertButton=Fl;exports.AlertContainer=Rl;exports.AlertContent=Ml;exports.AlertDescription=Yo;exports.AlertDialog=rd;exports.AlertDialogAction=pd;exports.AlertDialogCancel=md;exports.AlertDialogContent=ld;exports.AlertDialogDescription=fd;exports.AlertDialogFooter=cd;exports.AlertDialogHeader=dd;exports.AlertDialogIcon=nd;exports.AlertDialogOverlay=nr;exports.AlertDialogPortal=dr;exports.AlertDialogTag=id;exports.AlertDialogTitle=ud;exports.AlertDialogTrigger=sd;exports.AlertIcon=Nl;exports.AlertTitle=Jo;exports.Autocomplete=jd;exports.AutocompleteContent=Jd;exports.AutocompleteContentFooter=to;exports.AutocompleteGroup=en;exports.AutocompleteItem=Yd;exports.AutocompleteText=an;exports.AutocompleteTrigger=$d;exports.AutocompleteWrapper=Qd;exports.Avatar=Fa;exports.AvatarFallback=Ha;exports.AvatarImage=Ea;exports.Badge=Be;exports.Breadcrumb=Oa;exports.BreadcrumbEllipsis=fn;exports.BreadcrumbItem=it;exports.BreadcrumbLink=un;exports.BreadcrumbList=Va;exports.BreadcrumbPage=ro;exports.BreadcrumbSeparator=so;exports.Button=Y;exports.CardContinue=fi;exports.CardContinueBreadcrumb=gi;exports.CardContinueButton=hi;exports.CardContinueContent=pi;exports.CardContinueHeader=mi;exports.CardContinueImage=ci;exports.CardContinueTitle=xi;exports.CardLesson=Pi;exports.CardLessonButton=Hi;exports.CardLessonContent=Ti;exports.CardLessonDuration=Mi;exports.CardLessonFooter=Fi;exports.CardLessonHeader=Ai;exports.CardLessonIcon=Bi;exports.CardLessonIcons=Ni;exports.CardLessonImage=wi;exports.CardLessonLabel=Di;exports.CardLessonStatus=Ei;exports.CardLessonTitle=Ri;exports.CardModule=Bn;exports.CardModuleAction=zn;exports.CardModuleButton=qn;exports.CardModuleFooter=Vn;exports.CardModuleHeader=Fn;exports.CardModuleLabel=En;exports.CardModuleProgress=On;exports.CardModuleTitle=Hn;exports.CardNews=Ui;exports.CardNewsAuthor=au;exports.CardNewsBody=Gi;exports.CardNewsContent=ji;exports.CardNewsDate=Ki;exports.CardNewsDescription=$i;exports.CardNewsFooter=tu;exports.CardNewsHeader=Wi;exports.CardNewsImage=Zi;exports.CardNewsResourceItem=Yi;exports.CardNewsResources=Ji;exports.CardNewsTags=Xi;exports.CardNewsTitle=Qi;exports.CardTopic=Jn;exports.CardTopicColumn=ei;exports.CardTopicContent=si;exports.CardTopicCount=ri;exports.CardTopicNumber=ai;exports.CardTopicProgress=oi;exports.CardTopicTitle=ti;exports.CardTopicTrigger=Yn;exports.CardWeek=gn;exports.CardWeekActions=Tn;exports.CardWeekBreadcrumb=xn;exports.CardWeekContainer=hn;exports.CardWeekContent=Sn;exports.CardWeekDescription=Ln;exports.CardWeekFooter=yn;exports.CardWeekHeader=bn;exports.CardWeekProgress=kn;exports.CardWeekProgressCircle=In;exports.CardWeekStatus=wn;exports.CardWeekTags=vn;exports.CardWeekText=Pn;exports.CardWeekTitle=Cn;exports.Checkbox=du;exports.Collapsible=fo;exports.CollapsibleContent=po;exports.CollapsibleTrigger=co;exports.DatePicker=yu;exports.DatePickerLabel=Iu;exports.DatePickerText=ku;exports.DatePickerWrapper=vu;exports.DateRangePicker=Su;exports.Dialog=Nd;exports.DialogClose=Fd;exports.DialogContainer=Ed;exports.DialogContent=Hd;exports.DialogDescription=zd;exports.DialogFooter=Vd;exports.DialogHeader=Od;exports.DialogOverlay=Ar;exports.DialogPortal=Tr;exports.DialogTitle=qd;exports.DialogTrigger=Bd;exports.DropdownMenu=xo;exports.DropdownMenuCheckboxItem=pu;exports.DropdownMenuContent=bo;exports.DropdownMenuGroup=cu;exports.DropdownMenuItem=bt;exports.DropdownMenuLabel=Lo;exports.DropdownMenuPortal=fu;exports.DropdownMenuRadioGroup=Ct;exports.DropdownMenuRadioItem=Co;exports.DropdownMenuSeparator=vo;exports.DropdownMenuShortcut=mu;exports.DropdownMenuSub=gu;exports.DropdownMenuSubContent=hu;exports.DropdownMenuSubTrigger=xu;exports.DropdownMenuTrigger=ho;exports.FallbackImage=$e;exports.Input=To;exports.InputAdornment=Po;exports.InputEndIcon=wo;exports.InputField=Ou;exports.InputLabel=Vu;exports.InputNumeric=vs;exports.InputPassword=Ls;exports.InputStartIcon=wt;exports.InputText=qu;exports.InputWrapper=Hu;exports.Label=Wu;exports.Loading=Xt;exports.Logo=Ku;exports.LogoShort=Zu;exports.Pagination=af;exports.PaginationContent=Ss;exports.PaginationEllipsis=As;exports.PaginationInfo=Ao;exports.PaginationItem=At;exports.PaginationLink=Ps;exports.PaginationNext=Ts;exports.PaginationPrevious=ws;exports.PaginationRoot=ys;exports.Progress=je;exports.ProgressCircle=io;exports.RadioGroup=sf;exports.RadioGroupItem=lf;exports.Ranking=gf;exports.RankingAssigneeGroup=Tf;exports.RankingAssigneeItem=Af;exports.RankingAssigneeLabel=wf;exports.RankingAssigneesColumn=Pf;exports.RankingBody=bf;exports.RankingButton=Ef;exports.RankingHeader=xf;exports.RankingHeaderCell=hf;exports.RankingItem=Cf;exports.RankingNumber=Lf;exports.RankingPerformance=Ff;exports.RankingPriority=Df;exports.RankingQuestions=Mf;exports.RankingSpecialty=kf;exports.RankingSuperFocus=Sf;exports.RankingTopic=yf;exports.RankingTopicColumn=vf;exports.RankingTopicContent=If;exports.Rating=zf;exports.RatingButtonVariants=Es;exports.RatingLabelVariants=Hs;exports.RatingStarVariants=Fs;exports.ScrollArea=Ro;exports.ScrollBar=ja;exports.SegmentControl=cc;exports.SegmentControlContent=gc;exports.SegmentControlList=pc;exports.SegmentControlTrigger=mc;exports.Select=jf;exports.SelectContent=oc;exports.SelectGroup=Jf;exports.SelectHeader=rc;exports.SelectItem=sc;exports.SelectLabel=$f;exports.SelectScrollDownButton=zs;exports.SelectScrollUpButton=qs;exports.SelectSeparator=lc;exports.SelectText=dc;exports.SelectTrigger=tc;exports.SelectValue=Yf;exports.SelectWrapper=Qf;exports.Separator=ua;exports.Sheet=Ho;exports.SheetClose=Ic;exports.SheetContent=Oo;exports.SheetDescription=Tc;exports.SheetFooter=Pc;exports.SheetHeader=Sc;exports.SheetTitle=wc;exports.SheetTrigger=vc;exports.Sidebar=qc;exports.SidebarContent=Zc;exports.SidebarFooter=Xc;exports.SidebarGroup=jc;exports.SidebarGroupAction=$c;exports.SidebarGroupContent=Jc;exports.SidebarGroupLabel=Qc;exports.SidebarHeader=Wc;exports.SidebarInput=Gc;exports.SidebarInset=Uc;exports.SidebarMenu=Yc;exports.SidebarMenuAction=op;exports.SidebarMenuBadge=rp;exports.SidebarMenuButton=tp;exports.SidebarMenuItem=ep;exports.SidebarMenuItemCollapse=ip;exports.SidebarMenuItemTitle=np;exports.SidebarMenuSkeleton=sp;exports.SidebarMenuSub=lp;exports.SidebarMenuSubButton=up;exports.SidebarMenuSubItem=dp;exports.SidebarProvider=Vc;exports.SidebarRail=_c;exports.SidebarSeparator=Kc;exports.SidebarTrigger=zc;exports.Skeleton=Ht;exports.Switch=xp;exports.Switcher=Ip;exports.SwitcherContent=yp;exports.SwitcherFooter=wp;exports.SwitcherGroup=Sp;exports.SwitcherItem=Pp;exports.SwitcherSeparator=Tp;exports.SwitcherTrigger=kp;exports.Tabs=Vp;exports.TabsContent=_p;exports.TabsList=qp;exports.TabsTrigger=zp;exports.Tag=fe;exports.Tile=Xp;exports.TileDescription=jp;exports.TileIcon=Kp;exports.TileTitle=Zp;exports.Toast=xl;exports.ToastAction=cm;exports.ToastClose=hl;exports.ToastDescription=Cl;exports.ToastProvider=pm;exports.ToastTitle=bl;exports.ToastViewport=gl;exports.Tooltip=Ye;exports.TooltipContent=aa;exports.TooltipProvider=Ca;exports.TooltipTrigger=ea;exports.alertButtonVariants=er;exports.alertVariants=$o;exports.applyInputIconSize=xa;exports.avatarVariants=_r;exports.badgeVariants=tr;exports.buttonVariants=Ta;exports.calculatePageNumbers=Ds;exports.cardLessonVariants=Jr;exports.cardModuleStatusVariants=mt;exports.cardModuleVariants=Kr;exports.checkboxVariants=ts;exports.datePickerTriggerVariants=So;exports.labelVariants=Is;exports.radioGroupVariants=Rs;exports.segmentControlTriggerVariants=Us;exports.switchVariants=tl;exports.tabsContentVariants=il;exports.tabsListVariants=dl;exports.tabsTriggerVariants=nl;exports.tagVariants=sr;exports.tileVariants=ul;exports.toastVariants=ml;exports.useIsMobile=Ga;exports.useSidebar=va;exports.useToast=Go;//# sourceMappingURL=index.js.map
|
|
16
16
|
//# sourceMappingURL=index.js.map
|