nave-ui-library 1.0.0-beta.38 → 1.0.0-beta.39
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/lit/index.cjs +275 -0
- package/dist/lit/index.d.cts +1901 -0
- package/dist/lit/index.d.ts +1901 -0
- package/dist/lit/index.js +275 -0
- package/package.json +5 -1
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
"use strict";var nr=Object.create;var no=Object.defineProperty,rr=Object.defineProperties,ir=Object.getOwnPropertyDescriptor,sr=Object.getOwnPropertyDescriptors,lr=Object.getOwnPropertyNames,ko=Object.getOwnPropertySymbols,cr=Object.getPrototypeOf,Xo=Object.prototype.hasOwnProperty,Qa=Object.prototype.propertyIsEnumerable;var Ja=(t,e,o)=>e in t?no(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o,i=(t,e)=>{for(var o in e||(e={}))Xo.call(e,o)&&Ja(t,o,e[o]);if(ko)for(var o of ko(e))Qa.call(e,o)&&Ja(t,o,e[o]);return t},y=(t,e)=>rr(t,sr(e));var h=(t,e)=>{var o={};for(var a in t)Xo.call(t,a)&&e.indexOf(a)<0&&(o[a]=t[a]);if(t!=null&&ko)for(var a of ko(t))e.indexOf(a)<0&&Qa.call(t,a)&&(o[a]=t[a]);return o};var dr=(t,e)=>{for(var o in e)no(t,o,{get:e[o],enumerable:!0})},tn=(t,e,o,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of lr(e))!Xo.call(t,n)&&n!==o&&no(t,n,{get:()=>e[n],enumerable:!(a=ir(e,n))||a.enumerable});return t};var O=(t,e,o)=>(o=t!=null?nr(cr(t)):{},tn(e||!t||!t.__esModule?no(o,"default",{value:t,enumerable:!0}):o,t)),pr=t=>tn(no({},"__esModule",{value:!0}),t);var rc={};dr(rc,{AIProvider:()=>fr,Accordion:()=>is,AccordionContent:()=>cs,AccordionItem:()=>ss,AccordionTrigger:()=>ls,Alert:()=>ei,AlertDialog:()=>xl,AlertDialogAction:()=>Rl,AlertDialogCancel:()=>Nl,AlertDialogContent:()=>wl,AlertDialogDescription:()=>Tl,AlertDialogFooter:()=>zl,AlertDialogHeader:()=>Sl,AlertDialogOverlay:()=>jn,AlertDialogPortal:()=>$n,AlertDialogTitle:()=>Cl,AlertDialogTrigger:()=>Pl,Avatar:()=>Po,AvatarFallback:()=>lo,AvatarImage:()=>wo,Badge:()=>co,Banner:()=>Ki,Breadcrumb:()=>Zs,BreadcrumbEllipsis:()=>ol,BreadcrumbItem:()=>Js,BreadcrumbLink:()=>Qs,BreadcrumbList:()=>qs,BreadcrumbPage:()=>tl,BreadcrumbSeparator:()=>el,Button:()=>Lt,COMPONENT_NAMES:()=>_,Calendar:()=>hs,Card:()=>Zi,Charts:()=>us,Checkbox:()=>Vs,ColorExample:()=>as,Combobox:()=>vs,DatePickerInput:()=>Ps,DragSlider:()=>Ji,Drawer:()=>ll,DrawerBody:()=>ul,DrawerClose:()=>dl,DrawerCloseButton:()=>hl,DrawerContent:()=>pl,DrawerDescription:()=>ml,DrawerFooter:()=>gl,DrawerHeader:()=>fl,DrawerOverlay:()=>On,DrawerPortal:()=>Ln,DrawerTitle:()=>bl,DrawerTrigger:()=>cl,DropdownMenu:()=>Ro,DropdownMenuCheckboxItem:()=>Ri,DropdownMenuContent:()=>Fo,DropdownMenuGroup:()=>Ti,DropdownMenuItem:()=>Ao,DropdownMenuLabel:()=>Ai,DropdownMenuPortal:()=>Ci,DropdownMenuRadioGroup:()=>Ni,DropdownMenuRadioItem:()=>Fi,DropdownMenuSeparator:()=>Bi,DropdownMenuShortcut:()=>Ei,DropdownMenuSub:()=>Mi,DropdownMenuSubContent:()=>Wi,DropdownMenuSubTrigger:()=>Di,DropdownMenuTrigger:()=>No,EmptyState:()=>ai,FileUpload:()=>pi,Header:()=>vl,INPUT_TOKEN_MAP:()=>ft,Icon:()=>ia,IconLabel:()=>ql,Input:()=>zs,IntegrationCard:()=>es,Label:()=>Ts,ListItem:()=>fi,Loader:()=>Qo,LoaderInit:()=>Jl,ModuleBox:()=>ps,Navbar:()=>He,NavbarLogo:()=>Un,NavbarMerchant:()=>Kn,NavbarUserMenu:()=>Xn,Pagination:()=>Ml,PaginationContent:()=>Dl,PaginationEllipsis:()=>_l,PaginationItem:()=>Wl,PaginationLink:()=>ra,PaginationNext:()=>Il,PaginationPrevious:()=>Hl,PasswordInput:()=>Fs,Popover:()=>Hi,PopoverAnchor:()=>Oi,PopoverContent:()=>Li,PopoverTrigger:()=>Ii,Progress:()=>ri,RadioGroup:()=>js,RadioItem:()=>Us,SearchBar:()=>Es,Select:()=>Ws,Separator:()=>ec,Sidebar:()=>Gl,Switch:()=>Xs,Table:()=>hi,TableBody:()=>mi,TableCaption:()=>wi,TableCell:()=>yi,TableCellDescription:()=>xi,TableFooter:()=>Pi,TableHead:()=>vi,TableHeader:()=>bi,TableRow:()=>ki,Tabs:()=>jl,TabsContent:()=>Xl,TabsList:()=>Ul,TabsTrigger:()=>Kl,Textarea:()=>_s,ThemeProvider:()=>nc,Tooltip:()=>Gi,TooltipContent:()=>ji,TooltipProvider:()=>wn,TooltipTrigger:()=>$i,Tour:()=>Zl,accordionContentVariants:()=>Fn,accordionTriggerVariants:()=>Nn,bannerVariants:()=>Cn,buttonBaseClasses:()=>so,cn:()=>c,inputSizeExtras:()=>ut,mapTokenStyles:()=>pt,resolveTokens:()=>me,tokenAt:()=>W,useAI:()=>ur,useTheme:()=>be,useTokenStyles:()=>P});module.exports=pr(rc);var vo=O(require("react"),1),on=require("react/jsx-runtime"),en=vo.createContext(null);function fr({request:t,children:e}){return(0,on.jsx)(en.Provider,{value:t,children:e})}function ur(){return vo.useContext(en)}var hn=require("@radix-ui/react-slot");function an(t){var e,o,a="";if(typeof t=="string"||typeof t=="number")a+=t;else if(typeof t=="object")if(Array.isArray(t)){var n=t.length;for(e=0;e<n;e++)t[e]&&(o=an(t[e]))&&(a&&(a+=" "),a+=o)}else for(o in t)t[o]&&(a&&(a+=" "),a+=o);return a}function yo(){for(var t,e,o=0,a="",n=arguments.length;o<n;o++)(t=arguments[o])&&(e=an(t))&&(a&&(a+=" "),a+=e);return a}var nn=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,rn=yo,V=(t,e)=>o=>{var a;if((e==null?void 0:e.variants)==null)return rn(t,o==null?void 0:o.class,o==null?void 0:o.className);let{variants:n,defaultVariants:r}=e,l=Object.keys(n).map(f=>{let u=o==null?void 0:o[f],d=r==null?void 0:r[f];if(u===null)return null;let b=nn(u)||nn(d);return n[f][b]}),s=o&&Object.entries(o).reduce((f,u)=>{let[d,b]=u;return b===void 0||(f[d]=b),f},{}),p=e==null||(a=e.compoundVariants)===null||a===void 0?void 0:a.reduce((f,u)=>{let x=u,{class:d,className:b}=x,v=h(x,["class","className"]);return Object.entries(v).every(w=>{let[m,z]=w;return Array.isArray(z)?z.includes(i(i({},r),s)[m]):i(i({},r),s)[m]===z})?[...f,d,b]:f},[]);return rn(t,l,p,o==null?void 0:o.class,o==null?void 0:o.className)};var xo=require("react"),gr=require("react/jsx-runtime"),Yo=(0,xo.createContext)(null);function be(){return(0,xo.useContext)(Yo)}function Ae(t){return typeof t=="object"&&t!==null}var sn=10;function hr(t){let e=[],o=/([^.[]+)|\["([^"]+)"\]|\['([^']+)'\]/g,a;for(;a=o.exec(t);)a[1]&&e.push(a[1]),a[2]&&e.push(a[2]),a[3]&&e.push(a[3]);return e}function me({componentName:t,variant:e,size:o,tone:a,tokens:n={}},r){var d,b,v,x,w,m,z,T,E,B,M,C,k;let l=r,s=(x=(d=l==null?void 0:l.components)==null?void 0:d[t])!=null?x:(v=(b=l==null?void 0:l.tokens)==null?void 0:b.components)==null?void 0:v[t];if(!s)return{};let p;if(kr(s)){let R=new Set(["base","variants","sizes","shapes","tones"]),S={};for(let D of Object.keys(s))R.has(D)||(S[D]=s[D]);p=i(i(i(i(i(i(i(i({},S),Ae(s.base)?s.base:{}),Ae(s.sizes)?{sizes:s.sizes}:{}),Ae(s.shapes)?{shapes:s.shapes}:{}),Ae(s.tones)?{tones:s.tones}:{}),e&&Ae((w=s.variants)==null?void 0:w[e])?s.variants[e]:{}),o&&Ae((m=s.sizes)==null?void 0:m[o])?s.sizes[o]:{}),a&&Ae((z=s.tones)==null?void 0:z[a])?s.tones[a]:{})}else p=s;let f=n,u=(k=(C=(E=f==null?void 0:f[t])!=null?E:(T=f==null?void 0:f.components)==null?void 0:T[t])!=null?C:(M=(B=f==null?void 0:f.tokens)==null?void 0:B.components)==null?void 0:M[t])!=null?k:{};return p=i(i(i({},p),u),n),Zo(p,r)}function Zo(t,e){return Array.isArray(t)?t.map(o=>Zo(o,e)):t&&typeof t=="object"?Object.fromEntries(Object.entries(t).map(([o,a])=>[o,Zo(a,e)])):mr(t,e)}var br=/\{([^}]+)\}/g;function mr(t,e){if(typeof t!="string")return t;let o=t,a=0;for(;a<sn;){let n=!1;if(o=o.replace(br,(r,l)=>{let s=hr(l),p=vr(s,e);return p===void 0?(process.env.NODE_ENV!=="production"&&console.warn(`Token not resolved: {${l}}`),`{${l}}`):(n=!0,String(p))}),!n)break;a++}return a>=sn&&process.env.NODE_ENV!=="production"&&console.warn(`Possible circular reference in token: ${t}`),o}function kr(t){return typeof t=="object"&&t!==null&&("base"in t||"variants"in t||"sizes"in t||"shapes"in t||"tones"in t)}function vr(t,e){let o=[e,e.tokens];for(let a of o){let n=t.reduce((r,l)=>typeof r=="object"&&r!==null?r[l]:void 0,a);if(n!==void 0)return n}}function W(t,...e){let o=t;for(let a of e){if(o==null||typeof o!="object")return{};o=o[a]}return o!=null&&typeof o=="object"?o:{}}var yr=t=>{let e=Pr(t),{conflictingClassGroups:o,conflictingClassGroupModifiers:a}=t;return{getClassGroupId:l=>{let s=l.split("-");return s[0]===""&&s.length!==1&&s.shift(),dn(s,e)||xr(l)},getConflictingClassGroupIds:(l,s)=>{let p=o[l]||[];return s&&a[l]?[...p,...a[l]]:p}}},dn=(t,e)=>{var l;if(t.length===0)return e.classGroupId;let o=t[0],a=e.nextPart.get(o),n=a?dn(t.slice(1),a):void 0;if(n)return n;if(e.validators.length===0)return;let r=t.join("-");return(l=e.validators.find(({validator:s})=>s(r)))==null?void 0:l.classGroupId},ln=/^\[(.+)\]$/,xr=t=>{if(ln.test(t)){let e=ln.exec(t)[1],o=e==null?void 0:e.substring(0,e.indexOf(":"));if(o)return"arbitrary.."+o}},Pr=t=>{let{theme:e,prefix:o}=t,a={nextPart:new Map,validators:[]};return Sr(Object.entries(t.classGroups),o).forEach(([r,l])=>{Jo(l,a,r,e)}),a},Jo=(t,e,o,a)=>{t.forEach(n=>{if(typeof n=="string"){let r=n===""?e:cn(e,n);r.classGroupId=o;return}if(typeof n=="function"){if(wr(n)){Jo(n(a),e,o,a);return}e.validators.push({validator:n,classGroupId:o});return}Object.entries(n).forEach(([r,l])=>{Jo(l,cn(e,r),o,a)})})},cn=(t,e)=>{let o=t;return e.split("-").forEach(a=>{o.nextPart.has(a)||o.nextPart.set(a,{nextPart:new Map,validators:[]}),o=o.nextPart.get(a)}),o},wr=t=>t.isThemeGetter,Sr=(t,e)=>e?t.map(([o,a])=>{let n=a.map(r=>typeof r=="string"?e+r:typeof r=="object"?Object.fromEntries(Object.entries(r).map(([l,s])=>[e+l,s])):r);return[o,n]}):t,zr=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,o=new Map,a=new Map,n=(r,l)=>{o.set(r,l),e++,e>t&&(e=0,a=o,o=new Map)};return{get(r){let l=o.get(r);if(l!==void 0)return l;if((l=a.get(r))!==void 0)return n(r,l),l},set(r,l){o.has(r)?o.set(r,l):n(r,l)}}};var Cr=t=>{let{separator:e,experimentalParseClassName:o}=t,a=e.length===1,n=e[0],r=e.length,l=s=>{let p=[],f=0,u=0,d;for(let m=0;m<s.length;m++){let z=s[m];if(f===0){if(z===n&&(a||s.slice(m,m+r)===e)){p.push(s.slice(u,m)),u=m+r;continue}if(z==="/"){d=m;continue}}z==="["?f++:z==="]"&&f--}let b=p.length===0?s:s.substring(u),v=b.startsWith("!"),x=v?b.substring(1):b,w=d&&d>u?d-u:void 0;return{modifiers:p,hasImportantModifier:v,baseClassName:x,maybePostfixModifierPosition:w}};return o?s=>o({className:s,parseClassName:l}):l},Tr=t=>{if(t.length<=1)return t;let e=[],o=[];return t.forEach(a=>{a[0]==="["?(e.push(...o.sort(),a),o=[]):o.push(a)}),e.push(...o.sort()),e},Rr=t=>i({cache:zr(t.cacheSize),parseClassName:Cr(t)},yr(t)),Nr=/\s+/,Fr=(t,e)=>{let{parseClassName:o,getClassGroupId:a,getConflictingClassGroupIds:n}=e,r=[],l=t.trim().split(Nr),s="";for(let p=l.length-1;p>=0;p-=1){let f=l[p],{modifiers:u,hasImportantModifier:d,baseClassName:b,maybePostfixModifierPosition:v}=o(f),x=!!v,w=a(x?b.substring(0,v):b);if(!w){if(!x){s=f+(s.length>0?" "+s:s);continue}if(w=a(b),!w){s=f+(s.length>0?" "+s:s);continue}x=!1}let m=Tr(u).join(":"),z=d?m+"!":m,T=z+w;if(r.includes(T))continue;r.push(T);let E=n(w,x);for(let B=0;B<E.length;++B){let M=E[B];r.push(z+M)}s=f+(s.length>0?" "+s:s)}return s};function Ar(){let t=0,e,o,a="";for(;t<arguments.length;)(e=arguments[t++])&&(o=pn(e))&&(a&&(a+=" "),a+=o);return a}var pn=t=>{if(typeof t=="string")return t;let e,o="";for(let a=0;a<t.length;a++)t[a]&&(e=pn(t[a]))&&(o&&(o+=" "),o+=e);return o};function Br(t,...e){let o,a,n,r=l;function l(p){let f=e.reduce((u,d)=>d(u),t());return o=Rr(f),a=o.cache.get,n=o.cache.set,r=s,s(p)}function s(p){let f=a(p);if(f)return f;let u=Fr(p,o);return n(p,u),u}return function(){return r(Ar.apply(null,arguments))}}var Z=t=>{let e=o=>o[t]||[];return e.isThemeGetter=!0,e},fn=/^\[(?:([a-z-]+):)?(.+)\]$/i,Er=/^\d+\/\d+$/,Mr=new Set(["px","full","screen"]),Dr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Wr=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Hr=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Ir=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,_r=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,_t=t=>Ie(t)||Mr.has(t)||Er.test(t),ke=t=>_e(t,"length",Kr),Ie=t=>!!t&&!Number.isNaN(Number(t)),qo=t=>_e(t,"number",Ie),ro=t=>!!t&&Number.isInteger(Number(t)),Lr=t=>t.endsWith("%")&&Ie(t.slice(0,-1)),L=t=>fn.test(t),ve=t=>Dr.test(t),Or=new Set(["length","size","percentage"]),Vr=t=>_e(t,Or,un),Gr=t=>_e(t,"position",un),$r=new Set(["image","url"]),jr=t=>_e(t,$r,Yr),Ur=t=>_e(t,"",Xr),io=()=>!0,_e=(t,e,o)=>{let a=fn.exec(t);return a?a[1]?typeof e=="string"?a[1]===e:e.has(a[1]):o(a[2]):!1},Kr=t=>Wr.test(t)&&!Hr.test(t),un=()=>!1,Xr=t=>Ir.test(t),Yr=t=>_r.test(t);var Zr=()=>{let t=Z("colors"),e=Z("spacing"),o=Z("blur"),a=Z("brightness"),n=Z("borderColor"),r=Z("borderRadius"),l=Z("borderSpacing"),s=Z("borderWidth"),p=Z("contrast"),f=Z("grayscale"),u=Z("hueRotate"),d=Z("invert"),b=Z("gap"),v=Z("gradientColorStops"),x=Z("gradientColorStopPositions"),w=Z("inset"),m=Z("margin"),z=Z("opacity"),T=Z("padding"),E=Z("saturate"),B=Z("scale"),M=Z("sepia"),C=Z("skew"),k=Z("space"),R=Z("translate"),S=()=>["auto","contain","none"],D=()=>["auto","hidden","clip","visible","scroll"],I=()=>["auto",L,e],N=()=>[L,e],F=()=>["",_t,ke],g=()=>["auto",Ie,L],X=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Y=()=>["solid","dashed","dotted","double","none"],at=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],dt=()=>["start","end","center","between","around","evenly","stretch"],ot=()=>["","0",L],ht=()=>["auto","avoid","all","avoid-page","page","left","right","column"],A=()=>[Ie,L];return{cacheSize:500,separator:":",theme:{colors:[io],spacing:[_t,ke],blur:["none","",ve,L],brightness:A(),borderColor:[t],borderRadius:["none","","full",ve,L],borderSpacing:N(),borderWidth:F(),contrast:A(),grayscale:ot(),hueRotate:A(),invert:ot(),gap:N(),gradientColorStops:[t],gradientColorStopPositions:[Lr,ke],inset:I(),margin:I(),opacity:A(),padding:N(),saturate:A(),scale:A(),sepia:ot(),skew:A(),space:N(),translate:N()},classGroups:{aspect:[{aspect:["auto","square","video",L]}],container:["container"],columns:[{columns:[ve]}],"break-after":[{"break-after":ht()}],"break-before":[{"break-before":ht()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...X(),L]}],overflow:[{overflow:D()}],"overflow-x":[{"overflow-x":D()}],"overflow-y":[{"overflow-y":D()}],overscroll:[{overscroll:S()}],"overscroll-x":[{"overscroll-x":S()}],"overscroll-y":[{"overscroll-y":S()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[w]}],"inset-x":[{"inset-x":[w]}],"inset-y":[{"inset-y":[w]}],start:[{start:[w]}],end:[{end:[w]}],top:[{top:[w]}],right:[{right:[w]}],bottom:[{bottom:[w]}],left:[{left:[w]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ro,L]}],basis:[{basis:I()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",L]}],grow:[{grow:ot()}],shrink:[{shrink:ot()}],order:[{order:["first","last","none",ro,L]}],"grid-cols":[{"grid-cols":[io]}],"col-start-end":[{col:["auto",{span:["full",ro,L]},L]}],"col-start":[{"col-start":g()}],"col-end":[{"col-end":g()}],"grid-rows":[{"grid-rows":[io]}],"row-start-end":[{row:["auto",{span:[ro,L]},L]}],"row-start":[{"row-start":g()}],"row-end":[{"row-end":g()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",L]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",L]}],gap:[{gap:[b]}],"gap-x":[{"gap-x":[b]}],"gap-y":[{"gap-y":[b]}],"justify-content":[{justify:["normal",...dt()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...dt(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...dt(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[T]}],px:[{px:[T]}],py:[{py:[T]}],ps:[{ps:[T]}],pe:[{pe:[T]}],pt:[{pt:[T]}],pr:[{pr:[T]}],pb:[{pb:[T]}],pl:[{pl:[T]}],m:[{m:[m]}],mx:[{mx:[m]}],my:[{my:[m]}],ms:[{ms:[m]}],me:[{me:[m]}],mt:[{mt:[m]}],mr:[{mr:[m]}],mb:[{mb:[m]}],ml:[{ml:[m]}],"space-x":[{"space-x":[k]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[k]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",L,e]}],"min-w":[{"min-w":[L,e,"min","max","fit"]}],"max-w":[{"max-w":[L,e,"none","full","min","max","fit","prose",{screen:[ve]},ve]}],h:[{h:[L,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[L,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[L,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[L,e,"auto","min","max","fit"]}],"font-size":[{text:["base",ve,ke]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",qo]}],"font-family":[{font:[io]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",L]}],"line-clamp":[{"line-clamp":["none",Ie,qo]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",_t,L]}],"list-image":[{"list-image":["none",L]}],"list-style-type":[{list:["none","disc","decimal",L]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[z]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[z]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Y(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",_t,ke]}],"underline-offset":[{"underline-offset":["auto",_t,L]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:N()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",L]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",L]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[z]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...X(),Gr]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Vr]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},jr]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[x]}],"gradient-via-pos":[{via:[x]}],"gradient-to-pos":[{to:[x]}],"gradient-from":[{from:[v]}],"gradient-via":[{via:[v]}],"gradient-to":[{to:[v]}],rounded:[{rounded:[r]}],"rounded-s":[{"rounded-s":[r]}],"rounded-e":[{"rounded-e":[r]}],"rounded-t":[{"rounded-t":[r]}],"rounded-r":[{"rounded-r":[r]}],"rounded-b":[{"rounded-b":[r]}],"rounded-l":[{"rounded-l":[r]}],"rounded-ss":[{"rounded-ss":[r]}],"rounded-se":[{"rounded-se":[r]}],"rounded-ee":[{"rounded-ee":[r]}],"rounded-es":[{"rounded-es":[r]}],"rounded-tl":[{"rounded-tl":[r]}],"rounded-tr":[{"rounded-tr":[r]}],"rounded-br":[{"rounded-br":[r]}],"rounded-bl":[{"rounded-bl":[r]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[z]}],"border-style":[{border:[...Y(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[z]}],"divide-style":[{divide:Y()}],"border-color":[{border:[n]}],"border-color-x":[{"border-x":[n]}],"border-color-y":[{"border-y":[n]}],"border-color-s":[{"border-s":[n]}],"border-color-e":[{"border-e":[n]}],"border-color-t":[{"border-t":[n]}],"border-color-r":[{"border-r":[n]}],"border-color-b":[{"border-b":[n]}],"border-color-l":[{"border-l":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:["",...Y()]}],"outline-offset":[{"outline-offset":[_t,L]}],"outline-w":[{outline:[_t,ke]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:F()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[z]}],"ring-offset-w":[{"ring-offset":[_t,ke]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",ve,Ur]}],"shadow-color":[{shadow:[io]}],opacity:[{opacity:[z]}],"mix-blend":[{"mix-blend":[...at(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":at()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[a]}],contrast:[{contrast:[p]}],"drop-shadow":[{"drop-shadow":["","none",ve,L]}],grayscale:[{grayscale:[f]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[E]}],sepia:[{sepia:[M]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[a]}],"backdrop-contrast":[{"backdrop-contrast":[p]}],"backdrop-grayscale":[{"backdrop-grayscale":[f]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[z]}],"backdrop-saturate":[{"backdrop-saturate":[E]}],"backdrop-sepia":[{"backdrop-sepia":[M]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",L]}],duration:[{duration:A()}],ease:[{ease:["linear","in","out","in-out",L]}],delay:[{delay:A()}],animate:[{animate:["none","spin","ping","pulse","bounce",L]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[B]}],"scale-x":[{"scale-x":[B]}],"scale-y":[{"scale-y":[B]}],rotate:[{rotate:[ro,L]}],"translate-x":[{"translate-x":[R]}],"translate-y":[{"translate-y":[R]}],"skew-x":[{"skew-x":[C]}],"skew-y":[{"skew-y":[C]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",L]}],accent:[{accent:["auto",t]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",L]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":N()}],"scroll-mx":[{"scroll-mx":N()}],"scroll-my":[{"scroll-my":N()}],"scroll-ms":[{"scroll-ms":N()}],"scroll-me":[{"scroll-me":N()}],"scroll-mt":[{"scroll-mt":N()}],"scroll-mr":[{"scroll-mr":N()}],"scroll-mb":[{"scroll-mb":N()}],"scroll-ml":[{"scroll-ml":N()}],"scroll-p":[{"scroll-p":N()}],"scroll-px":[{"scroll-px":N()}],"scroll-py":[{"scroll-py":N()}],"scroll-ps":[{"scroll-ps":N()}],"scroll-pe":[{"scroll-pe":N()}],"scroll-pt":[{"scroll-pt":N()}],"scroll-pr":[{"scroll-pr":N()}],"scroll-pb":[{"scroll-pb":N()}],"scroll-pl":[{"scroll-pl":N()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",L]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[_t,ke,qo]}],stroke:[{stroke:[t,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var gn=Br(Zr);function c(...t){return gn(yo(t))}var _=(A=>(A.ACCORDION="accordion",A.BADGE="badge",A.BUTTON="button",A.CHECKBOX="checkbox",A.DRAWER="drawer",A.EMPTY_STATE="emptyState",A.INPUT="input",A.LABEL="label",A.MODAL_DIALOG="alertDialog",A.NAVBAR="navbar",A.POPOVER="popover",A.RADIO="radio",A.SEPARATOR="separator",A.SIDEBAR="sidebar",A.SWITCH="switch",A.TABS="tabs",A.TOUR="tour",A.TABLE="table",A.AVATAR="avatar",A.CARD="card",A.BANNER="banner",A.PROMO_BANNER="promoBanner",A.PROGRESS="progress",A.LOADER="loader",A.FILE_UPLOAD="fileUpload",A.DROPDOWN="dropdown",A.TOOLTIP="tooltip",A.DRAG_SLIDER="dragSlider",A.MODULE_BOX="moduleBox",A.CHARTS="charts",A.PAGINATION="pagination",A.HEADER="header",A.BREADCRUMB="breadcrumb",A.ICON="icon",A.SELECT="select",A.ALERT="alert",A.CALENDAR="calendar",A))(_||{});function qr(t,e){return e.split(".").reduce((o,a)=>{if(o!=null&&typeof o=="object")return o[a]},t)}function pt(t,e,o){let a={};for(let[n,{tokenPath:r,fallback:l}]of Object.entries(e)){let s=qr(t,r),p=s!=null?s:l;p!==void 0&&(a[n]=p)}return o&&Object.assign(a,o),a}var ft={"--input-bg":{tokenPath:"background"},"--input-text":{tokenPath:"color"},"--input-radius":{tokenPath:"radius"},"--input-border":{tokenPath:"border"},"--input-shadow":{tokenPath:"boxShadow"},"--input-hover-bg":{tokenPath:"hover.background"},"--input-hover-text":{tokenPath:"hover.color"},"--input-hover-border":{tokenPath:"hover.border"},"--input-focus-border":{tokenPath:"focus.border"},"--input-focus-ring":{tokenPath:"focus.boxShadow"},"--input-focus-text":{tokenPath:"focus.color"},"--input-filled-bg":{tokenPath:"filled.background"},"--input-filled-text":{tokenPath:"filled.color"},"--input-filled-shadow":{tokenPath:"filled.boxShadow"},"--input-disabled-bg":{tokenPath:"disabled.background"},"--input-disabled-text":{tokenPath:"disabled.color"},"--input-disabled-border":{tokenPath:"disabled.border"},"--input-disabled-shadow":{tokenPath:"disabled.boxShadow"},"--input-error-bg":{tokenPath:"error.background"},"--input-error-border":{tokenPath:"error.border"},"--input-error-text":{tokenPath:"error.color"},"--input-error-shadow":{tokenPath:"error.boxShadow"},"--input-error-filled-border":{tokenPath:"error.filled.border"},"--input-error-filled-text":{tokenPath:"error.filled.color"},"--input-error-filled-shadow":{tokenPath:"error.filled.boxShadow"},"--input-error-focus-border":{tokenPath:"error.focus.border"},"--input-error-focus-ring":{tokenPath:"error.focus.boxShadow"},"--input-error-focus-text":{tokenPath:"error.focus.color"},"--input-error-hover-border":{tokenPath:"error.hover.border"},"--input-error-hover-ring":{tokenPath:"error.hover.boxShadow"},"--input-error-hover-text":{tokenPath:"error.hover.color"},"--input-font-family":{tokenPath:"fontFamily",fallback:"'Inter', sans-serif"},"--input-line-height":{tokenPath:"lineHeight",fallback:"130%"},"--input-letter-spacing":{tokenPath:"letterSpacing",fallback:"-0.04em"}};function ut(t){return{"--input-label-font-size":t.labelFontSize,"--input-font-size":t.inputFontSize,"--input-helper-font-size":t.helperFontSize,"--input-label-font-weight":t.labelFontWeight,"--input-font-weight":t.inputFontWeight,"--input-helper-font-weight":t.helperFontWeight,"--input-label-color":t.labelColor,"--input-helper-color":t.helperColor,"--input-description-color":t.descriptionColor,"--input-height":t.height,"--input-padding":t.padding,"--input-icon-size":t==null?void 0:t.iconSize}}function P(t,e,o){let a=be(),n=me({componentName:t,variant:o==null?void 0:o.variant,size:o==null?void 0:o.size,tone:o==null?void 0:o.tone,tokens:o==null?void 0:o.tokens},a);return{styles:pt(n,e,o==null?void 0:o.extra),tokens:n}}var Be=require("react/jsx-runtime"),Jr="ui-button inline-flex items-center justify-center gap-[var(--button-gap)] whitespace-nowrap shrink-0 outline-none leading-[var(--button-line-height)] tracking-[var(--button-letter-spacing)] disabled:pointer-events-none",so=V(Jr,{variants:{variant:{primary:"rounded-[var(--button-radius)] border",secondary:"rounded-[var(--button-radius)] border",tertiary:"bg-transparent border border-transparent underline underline-offset-4",neutral:"rounded-[var(--button-radius)] border"},size:{sm:"",md:"",lg:"","icon-sm":"h-9 w-9",icon:"h-10 w-10","icon-lg":"h-11 w-11"}},defaultVariants:{variant:"primary",size:"md"}});function Lt(v){var x=v,{className:t,variant:e="primary",size:o="medium",asChild:a=!1,tokens:n,textPaddingX:r,startIcon:l,endIcon:s,loading:p=!1,loadingLabel:f,style:u,children:d}=x,b=h(x,["className","variant","size","asChild","tokens","textPaddingX","startIcon","endIcon","loading","loadingLabel","style","children"]);var A,Ft,xt,Ct,Pt,Xt,It,Re,Yt,Zt,qt,Jt,Qt,te,ee,oe,ae,ne,re,ie,se,le,ce,de,pe,fe,Qe,to,eo,K,nt,tt,et,Ne,Fe,ue,ge,he;let m=(A={small:"sm",medium:"md",large:"lg","icon-small":"icon-sm",icon:"icon","icon-large":"icon-lg"}[o])!=null?A:"md",z=o==="icon-small"||o==="icon"||o==="icon-large"?"medium":o,T=!!b.disabled||p,E=P("button",{},{tokens:n,size:z,variant:e,extra:u}),B=W(E.tokens,"sizes",z!=null?z:"medium"),M=W(E.tokens,"variants",e),C=Object.keys(M).length>0?M:E.tokens,k=W(C,"loading"),R=W(C,"disabled"),S=p?Object.keys(k).length>0?k:R:T?R:{},D=kt=>typeof kt=="string"&&kt.includes("{")&&kt.includes("}"),I=(kt,mo)=>typeof kt=="string"&&!D(kt)?kt:mo,N=I(B==null?void 0:B.height,z==="large"?"44px":z==="small"?"36px":"40px"),F=I(B==null?void 0:B.paddingX,z==="large"?"16px":z==="small"?"10px":"12px"),g=typeof r=="number"?`${r}px`:r,X=W(C,"hover"),Y=W(C,"disabled"),at=W(C,"focus"),dt=y(i({},E.styles),{"--button-bg":(xt=(Ft=S==null?void 0:S.background)!=null?Ft:C==null?void 0:C.background)!=null?xt:"#4B5563","--button-text":(Pt=(Ct=S==null?void 0:S.color)!=null?Ct:C==null?void 0:C.color)!=null?Pt:"#000000","--button-border-color":(It=(Xt=S==null?void 0:S.border)!=null?Xt:C==null?void 0:C.border)!=null?It:"transparent","--button-bg-disabled":(Zt=(Yt=(Re=S==null?void 0:S.background)!=null?Re:Y==null?void 0:Y.background)!=null?Yt:C==null?void 0:C.background)!=null?Zt:"#9CA3AF","--button-text-disabled":(Qt=(Jt=(qt=S==null?void 0:S.color)!=null?qt:Y==null?void 0:Y.color)!=null?Jt:C==null?void 0:C.color)!=null?Qt:"#6B7280","--button-border-disabled":(oe=(ee=(te=S==null?void 0:S.border)!=null?te:Y==null?void 0:Y.border)!=null?ee:C==null?void 0:C.border)!=null?oe:"transparent","--button-bg-hover":(ne=(ae=X==null?void 0:X.background)!=null?ae:C==null?void 0:C.background)!=null?ne:"#374151","--button-text-hover":(ie=(re=X==null?void 0:X.color)!=null?re:C==null?void 0:C.color)!=null?ie:"#FFFFFF","--button-border-hover-color":(le=(se=X==null?void 0:X.border)!=null?se:C==null?void 0:C.border)!=null?le:"transparent","--button-focus-ring":(ce=at==null?void 0:at.boxShadow)!=null?ce:"0px 0px 0px 4px #652BDF33","--button-radius":(pe=(de=E.tokens)==null?void 0:de.radius)!=null?pe:"6px","--button-transition-duration":(Qe=(fe=E.tokens)==null?void 0:fe.transition)!=null?Qe:"200ms","--button-gap":(eo=(to=E.tokens)==null?void 0:to.gap)!=null?eo:"6px","--button-font-size":(K=B==null?void 0:B.fontSize)!=null?K:"14px","--button-font-weight":(nt=B==null?void 0:B.fontWeight)!=null?nt:550,"--button-line-height":(et=(tt=E.tokens)==null?void 0:tt.lineHeight)!=null?et:"130%","--button-letter-spacing":(Fe=(Ne=E.tokens)==null?void 0:Ne.letterSpacing)!=null?Fe:"-0.04em","--button-icon-size":(ue=B==null?void 0:B.iconSize)!=null?ue:"16px","--button-height":N,"--button-padding-x":F,"--button-text-padding-x":g!=null?g:"8px",fontFamily:(he=(ge=E.tokens)==null?void 0:ge.fontFamily)!=null?he:"'Inter', sans-serif",fontSize:"var(--button-font-size)",fontWeight:"var(--button-font-weight)"}),ot=a?hn.Slot:"button",ht=a?b:i({type:"button"},b);return(0,Be.jsxs)(ot,y(i({className:c(so({variant:e,size:m}),o!=="icon"&&o!=="icon-small"&&o!=="icon-large"&&"h-[var(--button-height)] px-[var(--button-padding-x)]","bg-[var(--button-bg)] text-[color:var(--button-text)]","transition-colors duration-[var(--button-transition-duration)]","enabled:hover:bg-[var(--button-bg-hover)] enabled:hover:text-[color:var(--button-text-hover)]","focus-visible:ring-2 focus-visible:ring-[--button-bg-hover] focus-visible:ring-offset-2",(p||T)&&"cursor-not-allowed",t),style:dt,disabled:T,"aria-busy":p||void 0,"data-loading":p?"true":void 0},ht),{children:[p?(0,Be.jsx)("span",{className:"inline-flex h-[var(--button-icon-size)] w-[var(--button-icon-size)] animate-spin rounded-full border-2 border-current border-r-transparent","aria-hidden":!0}):null,l&&(0,Be.jsx)("span",{className:"inline-flex shrink-0","aria-hidden":!0,children:l}),(p&&f!=null?f:d)&&(0,Be.jsx)("span",{className:"px-[var(--button-text-padding-x)]",children:p&&f!=null?f:d}),s&&(0,Be.jsx)("span",{className:"inline-flex shrink-0","aria-hidden":!0,children:s})]}))}var Le=O(require("@radix-ui/react-avatar"),1),bn=require("@radix-ui/react-slot");var At=require("react/jsx-runtime");function Po(v){var x=v,{className:t,size:e="md",src:o,alt:a,fallback:n,name:r,imageClassName:l,fallbackClassName:s,tokens:p,asChild:f=!1,style:u,children:d}=x,b=h(x,["className","size","src","alt","fallback","name","imageClassName","fallbackClassName","tokens","asChild","style","children"]);var S,D,I,N,F,g,X,Y,at,dt,ot;let w={"--avatar-font-size":{tokenPath:`sizes.${e}.fontSize`,fallback:"14px"},"--avatar-fallback-bg":{tokenPath:"fallback.background",fallback:"#e0e0e0"},"--avatar-fallback-color":{tokenPath:"fallback.color",fallback:"#000000"},"--avatar-fallback-weight":{tokenPath:"fallback.fontWeight",fallback:"550"},"--avatar-line-height":{tokenPath:"lineHeight",fallback:"130%"},"--avatar-letter-spacing":{tokenPath:"letterSpacing",fallback:"-0.04em"}},m=P("avatar",w,{tokens:p,size:e,extra:u}),z=f?bn.Slot:Le.Root,T=W(m.tokens,"sizes",e),E=W(m.tokens,"fallback"),B=d!=null,M=!!o,C=((D=(S=r==null?void 0:r.trim())==null?void 0:S.charAt(0))==null?void 0:D.toUpperCase())||(typeof n=="string"&&n.trim()?n.trim().charAt(0).toUpperCase():null)||"U",k=n!=null?n:C,R=y(i({},m.styles),{width:(I=T==null?void 0:T.size)!=null?I:"40px",height:(N=T==null?void 0:T.size)!=null?N:"40px",border:(F=T==null?void 0:T.border)!=null?F:"none",borderRadius:(X=(g=W(m.tokens,"shapes"))==null?void 0:g.radius)!=null?X:"9999px","--avatar-font-family":(dt=(at=(Y=m.tokens)==null?void 0:Y.fontFamily)!=null?at:E==null?void 0:E.fontFamily)!=null?dt:"'Inter', sans-serif",fontFamily:"var(--avatar-font-family)",lineHeight:"var(--avatar-line-height)",letterSpacing:"var(--avatar-letter-spacing)"});return(0,At.jsx)(z,y(i({"data-slot":"avatar",style:R,className:c("relative flex shrink-0 overflow-hidden",t)},b),{children:B?d:(0,At.jsxs)(At.Fragment,{children:[M?(0,At.jsx)(wo,{src:o,alt:(ot=a!=null?a:r)!=null?ot:"Avatar",className:l}):null,(0,At.jsx)(lo,{className:s,children:k})]})}))}function wo(o){var a=o,{className:t}=a,e=h(a,["className"]);return(0,At.jsx)(Le.Image,i({"data-slot":"avatar-image",className:c("aspect-square size-full",t)},e))}function lo(o){var a=o,{className:t}=a,e=h(a,["className"]);return(0,At.jsx)(Le.Fallback,i({"data-slot":"avatar-fallback",className:c(`
|
|
2
|
+
flex size-full items-center justify-center
|
|
3
|
+
rounded-full
|
|
4
|
+
bg-[--avatar-fallback-bg]
|
|
5
|
+
text-[color:var(--avatar-fallback-color)]
|
|
6
|
+
text-[length:var(--avatar-font-size)]
|
|
7
|
+
font-[var(--avatar-fallback-weight)]
|
|
8
|
+
leading-[var(--avatar-line-height)]
|
|
9
|
+
tracking-[var(--avatar-letter-spacing)]
|
|
10
|
+
`,t)},e))}var So=O(require("react"),1);var wt=require("react/jsx-runtime"),Qr={"--alert-radius":{tokenPath:"radius",fallback:"12px"},"--alert-line-height":{tokenPath:"lineHeight",fallback:"130%"},"--alert-letter-spacing":{tokenPath:"letterSpacing",fallback:"-0.04em"},"--alert-title-color":{tokenPath:"title.color",fallback:"#020303"},"--alert-title-family":{tokenPath:"title.fontFamily",fallback:"Inter, Arial, Helvetica, sans-serif"},"--alert-title-size":{tokenPath:"title.fontSize",fallback:"14px"},"--alert-title-weight":{tokenPath:"title.fontWeight",fallback:"550"},"--alert-description-color":{tokenPath:"description.color",fallback:"#3A3F4B"},"--alert-description-family":{tokenPath:"description.fontFamily",fallback:"Inter, Arial, Helvetica, sans-serif"},"--alert-description-size":{tokenPath:"description.fontSize",fallback:"12px"},"--alert-description-weight":{tokenPath:"description.fontWeight",fallback:"400"},"--alert-cta-family":{tokenPath:"cta.fontFamily",fallback:"Inter, Arial, Helvetica, sans-serif"},"--alert-cta-size":{tokenPath:"cta.fontSize",fallback:"12px"},"--alert-cta-weight":{tokenPath:"cta.fontWeight",fallback:"550"},"--alert-icon-container-size":{tokenPath:"icon.containerSize",fallback:"32px"},"--alert-icon-container-radius":{tokenPath:"icon.containerRadius",fallback:"8px"},"--alert-close-size":{tokenPath:"close.iconSize",fallback:"18px"}},ti=V("relative w-full border overflow-hidden transition-all",{variants:{size:{inline:"max-w-[343px]","full-width":"max-w-[1184px]",stacked:"max-w-[343px]"}},defaultVariants:{size:"inline"}});function ei(E){var B=E,{className:t,style:e,size:o="inline",tone:a="info",icon:n,title:r,description:l,subtitle:s,ctaLabel:p,ctaHref:f,ctaTarget:u,onCtaClick:d,closeLabel:b="Cerrar alerta",label:v,onClose:x,titleMaxLines:w,descriptionMaxLines:m,tokens:z}=B,T=h(B,["className","style","size","tone","icon","title","description","subtitle","ctaLabel","ctaHref","ctaTarget","onCtaClick","closeLabel","label","onClose","titleMaxLines","descriptionMaxLines","tokens"]);var X,Y,at,dt,ot,ht,A,Ft,xt;let M=o!=null?o:"inline",C=P("alert",Qr,{tokens:z,tone:a,size:M,extra:e}),k=W(C.tokens,"sizes",M),R=W(C.tokens,"tones",a),S=l!=null?l:s,D=p!=null?p:v,I=M==="full-width"?1:M==="inline"?2:1,N=M==="full-width"?1:4,F=y(i({},C.styles),{"--alert-bg":(X=R==null?void 0:R.background)!=null?X:"#F0F5FE","--alert-border":(Y=R==null?void 0:R.border)!=null?Y:"#0465C2","--alert-padding":k!=null&&k.paddingY&&(k!=null&&k.paddingX)?`${k.paddingY} ${k.paddingX}`:"12px 16px","--alert-gap":(at=k==null?void 0:k.gap)!=null?at:"12px","--alert-min-height":(dt=k==null?void 0:k.minHeight)!=null?dt:"56px","--alert-cta-color":(ot=R==null?void 0:R.action)!=null?ot:"#020303","--alert-icon-color":(ht=R==null?void 0:R.iconColor)!=null?ht:"#0465C2","--alert-icon-container-background":(A=R==null?void 0:R.iconBg)!=null?A:"transparent"}),g=()=>{if(!D)return null;let Ct="mt-1 w-fit cursor-pointer underline underline-offset-4 transition-opacity hover:opacity-70 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--alert-cta-color)] focus-visible:ring-offset-2",Pt={color:"var(--alert-cta-color)",fontFamily:"var(--alert-cta-family)",fontSize:"var(--alert-cta-size)",fontWeight:"var(--alert-cta-weight)",lineHeight:"var(--alert-line-height)",letterSpacing:"var(--alert-letter-spacing)"};return f?(0,wt.jsx)("a",{href:f,target:u,rel:u==="_blank"?"noreferrer noopener":void 0,onClick:d,className:Ct,style:Pt,children:D}):(0,wt.jsx)("button",{type:"button",onClick:d,className:Ct,style:Pt,children:D})};return(0,wt.jsxs)("div",y(i({role:"alert",style:F,className:c(ti({size:o}),"flex items-start",M==="stacked"&&"flex-col","min-h-[var(--alert-min-height)]","bg-[var(--alert-bg)] border-[var(--alert-border)] rounded-[var(--alert-radius)]","p-[var(--alert-padding)] gap-[var(--alert-gap)]",t)},T),{children:[(0,wt.jsx)("div",{className:"shrink-0 flex items-center justify-center self-start overflow-hidden",style:{width:"var(--alert-icon-container-size)",height:"var(--alert-icon-container-size)",borderRadius:"var(--alert-icon-container-radius)",backgroundColor:"var(--alert-icon-container-background)",color:"var(--alert-icon-color)"},children:So.isValidElement(n)?So.cloneElement(n,{size:20,style:{color:"var(--alert-icon-color)"}}):n}),(0,wt.jsxs)("div",{className:c("flex-1 flex flex-col min-w-0 justify-center",x&&"pr-8",M==="stacked"&&"w-full"),children:[(0,wt.jsx)("div",{style:{fontFamily:"var(--alert-title-family)",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:(Ft=w!=null?w:k==null?void 0:k.titleMaxLines)!=null?Ft:I,overflow:"hidden"},className:"text-[color:var(--alert-title-color)] text-[length:var(--alert-title-size)] font-[var(--alert-title-weight)] leading-[var(--alert-line-height)] tracking-[var(--alert-letter-spacing)]",children:r}),S?(0,wt.jsx)("div",{style:{fontFamily:"var(--alert-description-family)",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:(xt=m!=null?m:k==null?void 0:k.descriptionMaxLines)!=null?xt:N,overflow:"hidden"},className:"mt-1 text-[color:var(--alert-description-color)] text-[length:var(--alert-description-size)] font-[var(--alert-description-weight)] leading-[var(--alert-line-height)] tracking-[var(--alert-letter-spacing)]",children:S}):null,g()]}),x&&(0,wt.jsx)("button",{type:"button",onClick:x,className:"absolute top-4 right-4 p-1 transition-opacity hover:opacity-60 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--alert-icon-color)] focus-visible:ring-offset-2 cursor-pointer",style:{color:"var(--alert-icon-color)"},"aria-label":b,children:(0,wt.jsx)("svg",{width:"var(--alert-close-size)",height:"var(--alert-close-size)",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:(0,wt.jsx)("path",{d:"M18 6L6 18M6 6l12 12"})})})]}))}var mn=require("@radix-ui/react-slot");var kn=require("react/jsx-runtime");function co(p){var f=p,{className:t,tone:e="neutral",size:o="small",shape:a="square",asChild:n=!1,tokens:r,style:l}=f,s=h(f,["className","tone","size","shape","asChild","tokens","style"]);let u=n?mn.Slot:"span",d={fontWeight:{tokenPath:"fontWeight",fallback:550},fontFamily:{tokenPath:"fontFamily",fallback:"'Inter', sans-serif"},lineHeight:{tokenPath:"lineHeight",fallback:"130%"},letterSpacing:{tokenPath:"letterSpacing",fallback:"-0.04em"},fontSize:{tokenPath:`sizes.${o}.fontSize`,fallback:"14px"},minHeight:{tokenPath:`sizes.${o}.height`,fallback:"20px"},padding:{tokenPath:`sizes.${o}.padding`,fallback:"4px 10px"},background:{tokenPath:`tones.${e}.background`,fallback:"#F9F9FA"},color:{tokenPath:`tones.${e}.color`,fallback:"#3A3F4B"},borderColor:{tokenPath:`tones.${e}.border`,fallback:"transparent"},borderRadius:{tokenPath:`shapes.${a}.radius`,fallback:"9999px"}},b=P("badge",d,{tokens:r,tone:e,size:o,shape:a,extra:l});return(0,kn.jsx)(u,i({"data-slot":"badge",style:b.styles,className:c("inline-flex items-center justify-center whitespace-nowrap","box-border border",t)},s))}var Tt=require("react/jsx-runtime"),oi={"--es-bg":{tokenPath:"container.background",fallback:"transparent"},"--es-padding-y":{tokenPath:"container.paddingY",fallback:"24px"},"--es-padding-x":{tokenPath:"container.paddingX",fallback:"20px"},"--es-root-gap":{tokenPath:"container.gap",fallback:"24px"},"--es-content-gap":{tokenPath:"content.gap",fallback:"20px"},"--es-text-gap":{tokenPath:"text.gap",fallback:"6px"},"--es-actions-gap":{tokenPath:"actions.gap",fallback:"8px"},"--es-icon-wrapper-padding":{tokenPath:"icon.containerPadding",fallback:"12px"},"--es-min-width":{tokenPath:"minWidth",fallback:"280px"},"--es-max-width":{tokenPath:"maxWidth",fallback:"400px"},"--es-icon-size":{tokenPath:"iconSize",fallback:"24px"},"--es-title-size":{tokenPath:"titleSize",fallback:"24px"},"--es-description-size":{tokenPath:"descriptionSize",fallback:"16px"},"--es-icon-color":{tokenPath:"icon.color",fallback:"#667085"},"--es-title-color":{tokenPath:"title.color",fallback:"#020303"},"--es-title-weight":{tokenPath:"title.fontWeight",fallback:"550"},"--es-desc-color":{tokenPath:"description.color",fallback:"#667085"},"--es-desc-weight":{tokenPath:"description.fontWeight",fallback:"400"},"--es-font-family":{tokenPath:"fontFamily",fallback:"'Inter', 'system-ui', sans-serif"},"--es-letter-spacing":{tokenPath:"letterSpacing",fallback:"-0.04em"},"--es-line-height":{tokenPath:"lineHeight",fallback:"130%"}};function ai({icon:t,title:e,description:o,actions:a,align:n="center",className:r,size:l="medium",tokens:s}){let p=n==="center",f=P("emptyState",oi,{tokens:s,size:l});return(0,Tt.jsx)("section",{className:c("w-full",r),style:y(i({},f.styles),{background:"var(--es-bg)",padding:"var(--es-padding-y) var(--es-padding-x)",display:"flex",alignItems:"center",justifyContent:p?"center":"flex-start"}),children:(0,Tt.jsxs)("div",{style:{width:"100%",minWidth:"min(100%, var(--es-min-width))",maxWidth:"var(--es-max-width)",display:"flex",flexDirection:"column",gap:"var(--es-root-gap)",textAlign:p?"center":"left",alignItems:p?"center":"flex-start"},children:[t&&(0,Tt.jsx)("div",{style:{padding:"var(--es-icon-wrapper-padding)",display:"flex",alignItems:"center",justifyContent:"center",color:"var(--es-icon-color)",gap:"8px"},children:(0,Tt.jsx)("span",{style:{width:"var(--es-icon-size)",height:"var(--es-icon-size)",display:"inline-flex",alignItems:"center",justifyContent:"center"},children:t})}),(0,Tt.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:"var(--es-content-gap)",width:"100%",alignItems:p?"center":"flex-start"},children:[(0,Tt.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:"var(--es-text-gap)",alignItems:p?"center":"flex-start",width:"100%"},children:[(0,Tt.jsx)("h3",{style:{color:"var(--es-title-color)",fontWeight:"var(--es-title-weight)",fontSize:"var(--es-title-size)",fontFamily:"var(--es-font-family)",lineHeight:"var(--es-line-height)",letterSpacing:"var(--es-letter-spacing)",margin:0},children:e}),o&&(0,Tt.jsx)("p",{style:{color:"var(--es-desc-color)",fontWeight:"var(--es-desc-weight)",fontSize:"var(--es-description-size)",fontFamily:"var(--es-font-family)",lineHeight:"var(--es-line-height)",letterSpacing:"var(--es-letter-spacing)",margin:0,width:"100%"},children:o})]}),a&&(0,Tt.jsx)("div",{style:{display:"flex",flexWrap:"wrap",gap:"var(--es-actions-gap)",justifyContent:p?"center":"flex-start",width:"100%"},children:a})]})]})})}var vn=require("lucide-react");var Ot=require("react/jsx-runtime");function Qo(u){var d=u,{className:t,style:e,size:o="medium",variant:a="default",tokens:n,label:r,description:l,spinnerClassName:s,spinnerProps:p}=d,f=h(d,["className","style","size","variant","tokens","label","description","spinnerClassName","spinnerProps"]);var B,M,C,k,R,S,D,I,N,F,g;let b=`sizes.${o}`,v={"--loader-min-width":{tokenPath:`${b}.minWidth`,fallback:"280px"},"--loader-max-width":{tokenPath:`${b}.maxWidth`,fallback:"400px"},"--loader-min-height":{tokenPath:`${b}.minHeight`,fallback:"280px"},"--loader-padding-x":{tokenPath:`${b}.paddingX`,fallback:"20px"},"--loader-padding-y":{tokenPath:`${b}.paddingY`,fallback:"24px"},"--loader-content-gap":{tokenPath:`${b}.contentGap`,fallback:"20px"},"--loader-text-gap":{tokenPath:`${b}.textGap`,fallback:"6px"},"--loader-label-font-size":{tokenPath:`${b}.labelFontSize`},"--loader-description-font-size":{tokenPath:`${b}.descriptionFontSize`},"--loader-label-font-weight":{tokenPath:`${b}.labelFontWeight`},"--loader-description-font-weight":{tokenPath:`${b}.descriptionFontWeight`},"--loader-label-color":{tokenPath:`${b}.labelColor`},"--loader-description-color":{tokenPath:`${b}.descriptionColor`}},x=P("loader",v,{tokens:n,variant:a,extra:e}),w=W(x.tokens,"sizes",o),m=W(x.tokens,"variants",a),z=(M=(B=w==null?void 0:w.spinnerSize)!=null?B:w==null?void 0:w.size)!=null?M:20,T=(R=(k=m==null?void 0:m.color)!=null?k:(C=x.tokens)==null?void 0:C.color)!=null?R:"#652BDF";console.log("Loader tokens:",x);let E=y(i({},x.styles),{"--loader-spinner-size":`${z}`,"--loader-spinner-color":T,fontFamily:(D=(S=x.tokens)==null?void 0:S.fontFamily)!=null?D:"'Inter', sans-serif",lineHeight:(N=(I=x.tokens)==null?void 0:I.lineHeight)!=null?N:"130%",letterSpacing:(g=(F=x.tokens)==null?void 0:F.letterSpacing)!=null?g:"-0.04em"});return(0,Ot.jsx)("div",{className:c("w-full flex items-center justify-center",t),children:(0,Ot.jsx)("div",y(i({"data-slot":"loader",style:E,className:"w-full px-[var(--loader-padding-x)] py-[var(--loader-padding-y)] min-h-[var(--loader-min-height)] flex flex-col items-center justify-center gap-[var(--loader-content-gap)] text-center","aria-live":"polite","aria-busy":"true",role:"status"},f),{children:(0,Ot.jsxs)("div",{style:{minWidth:"min(100%, var(--loader-min-width))",maxWidth:"var(--loader-max-width)",width:"100%"},className:"flex flex-col items-center justify-center gap-[var(--loader-content-gap)]",children:[(0,Ot.jsx)(vn.Loader2Icon,i({role:"presentation","aria-hidden":"true",className:c("animate-spin","w-[var(--loader-spinner-size)] h-[var(--loader-spinner-size)]","text-[var(--loader-spinner-color)]",s)},p)),(0,Ot.jsxs)("div",{className:"w-full flex flex-col items-center gap-[var(--loader-text-gap)]",children:[r&&(0,Ot.jsx)("div",{className:"text-[color:var(--loader-label-color)] text-[length:var(--loader-label-font-size)] font-[var(--loader-label-font-weight)]",children:r}),l&&(0,Ot.jsx)("div",{className:"text-[color:var(--loader-description-color)] text-[length:var(--loader-description-font-size)] font-[var(--loader-description-font-weight)]",children:l})]})]})}))})}var zo=O(require("@radix-ui/react-progress"),1);var Rt=require("react/jsx-runtime"),ni={"--progress-track-height":{tokenPath:"track.height",fallback:"6px"},"--progress-track-radius":{tokenPath:"track.radius",fallback:"9999px"},"--progress-track-bg":{tokenPath:"track.background",fallback:"#e2e5e9"},"--progress-filled-bg":{tokenPath:"indicator.background",fallback:"#652BDF"},"--progress-motion-duration":{tokenPath:"motion.duration",fallback:"300ms"},"--progress-motion-easing":{tokenPath:"motion.easing",fallback:"ease-in-out"},"--progress-label-color":{tokenPath:"labelColor",fallback:"#020303"},"--progress-label-size":{tokenPath:"labelFontSize",fallback:"14px"},"--progress-label-weight":{tokenPath:"labelFontWeight",fallback:"550"},"--progress-desc-color":{tokenPath:"descriptionColor",fallback:"#6E7991"},"--progress-desc-size":{tokenPath:"descriptionFontSize",fallback:"12px"},"--progress-gap":{tokenPath:"gap",fallback:"6px"},"--progress-font-family":{tokenPath:"fontFamily",fallback:"'Inter', sans-serif"},"--progress-line-height":{tokenPath:"lineHeight",fallback:"130%"},"--progress-letter-spacing":{tokenPath:"letterSpacing",fallback:"-0.04em"}};function ri(u){var d=u,{className:t,style:e,value:o,label:a,showValue:n,description:r,icon:l,variant:s="default",tokens:p}=d,f=h(d,["className","style","value","label","showValue","description","icon","variant","tokens"]);let b=P("progress",ni,{tokens:p,variant:s,extra:e}),v=y(i({},b.styles),{fontFamily:"var(--progress-font-family)",lineHeight:"var(--progress-line-height)",letterSpacing:"var(--progress-letter-spacing)"});return(0,Rt.jsxs)("div",{className:c("flex flex-col w-full",t),style:v,children:[(a||n)&&(0,Rt.jsxs)("div",{className:"flex justify-between items-end mb-[var(--progress-gap)]",children:[a&&(0,Rt.jsx)("span",{className:"text-[color:var(--progress-label-color)] text-[length:var(--progress-label-size)] font-[var(--progress-label-weight)] leading-[var(--progress-line-height)] tracking-[var(--progress-letter-spacing)]",children:a}),n&&(0,Rt.jsxs)("span",{className:"text-[color:var(--progress-label-color)] text-[length:var(--progress-label-size)] font-[var(--progress-label-weight)] leading-[var(--progress-line-height)] tracking-[var(--progress-letter-spacing)]",children:[Math.round(o),"%"]})]}),(0,Rt.jsx)(zo.Root,y(i({"data-slot":"progress-track",className:c("relative w-full overflow-hidden h-[var(--progress-track-height)] rounded-[var(--progress-track-radius)] bg-[var(--progress-track-bg)]")},f),{children:(0,Rt.jsx)(zo.Indicator,{"data-slot":"progress-filled-track",style:{transform:`translateX(-${100-(o||0)}%)`},className:c("h-full w-full flex-1 bg-[var(--progress-filled-bg)] transition-transform duration-[var(--progress-motion-duration)] ease-[var(--progress-motion-easing)]")})})),(r||l)&&(0,Rt.jsxs)("div",{className:"mt-[var(--progress-gap)] flex items-center gap-1.5",children:[l&&(0,Rt.jsx)("span",{className:"flex-shrink-0 text-[color:var(--progress-desc-color)] opacity-80",children:l}),r&&(0,Rt.jsx)("p",{className:"text-[color:var(--progress-desc-color)] text-[length:var(--progress-desc-size)] leading-[var(--progress-line-height)] tracking-[var(--progress-letter-spacing)]",children:r})]})]})}var Co=O(require("react"),1);var ct=require("react/jsx-runtime"),ii={"--fu-bg":{tokenPath:"container.background"},"--fu-padding":{tokenPath:"container.padding"},"--fu-radius":{tokenPath:"container.radius"},"--fu-border-width":{tokenPath:"dropzone.borderWidth"},"--fu-border-style":{tokenPath:"dropzone.borderStyle"},"--fu-gap":{tokenPath:"dropzone.gap"},"--fu-icon-size":{tokenPath:"icon.size"},"--fu-icon-wrapper-size":{tokenPath:"icon.wrapperSize"},"--fu-icon-color":{tokenPath:"icon.color"},"--fu-icon-bg":{tokenPath:"icon.wrapperBg"},"--fu-icon-radius":{tokenPath:"icon.wrapperRadius"},"--fu-title-color":{tokenPath:"title.color"},"--fu-title-size":{tokenPath:"title.fontSize"},"--fu-title-weight":{tokenPath:"title.fontWeight"},"--fu-desc-color":{tokenPath:"description.color"},"--fu-desc-size":{tokenPath:"description.fontSize"},"--fu-desc-weight":{tokenPath:"description.fontWeight"},"--fu-font-family":{tokenPath:"fontFamily",fallback:"'Inter', sans-serif"},"--fu-letter-spacing":{tokenPath:"letterSpacing",fallback:"-0.04em"},"--fu-line-height":{tokenPath:"lineHeight",fallback:"130%"}};function si(t){return t/(1024*1024)}function li(t){if(!(!t||t.length===0))return t.join(",")}function ci(){return(0,ct.jsxs)("svg",{width:"40",height:"40",viewBox:"0 0 48 48",fill:"none",children:[(0,ct.jsx)("path",{d:"M24 6c.6 0 1 .4 1 1v18.6l4.3-4.3a1 1 0 0 1 1.4 1.4l-6 6a1 1 0 0 1-1.4 0l-6-6a1 1 0 0 1 1.4-1.4l4.3 4.3V7c0-.6.4-1 1-1Z",fill:"currentColor"}),(0,ct.jsx)("path",{d:"M10 30a1 1 0 0 1 1 1v5c0 1.7 1.3 3 3 3h20c1.7 0 3-1.3 3-3v-5a1 1 0 1 1 2 0v5c0 2.8-2.2 5-5 5H14c-2.8 0-5-2.2-5-5v-5a1 1 0 0 1 1-1Z",fill:"currentColor"})]})}var di={default:"border-[--border-default] bg-[--color-white]",drag:"border-[--color-nave-500] bg-[--color-nave-500]/5",error:"border-[--border-error] bg-[--surface-error]",disabled:"border-[--border-disabled] bg-[--surface-disabled] opacity-60 pointer-events-none"};function pi({accept:t=["application/pdf","image/jpeg","image/png"],maxSizeMB:e=3,multiple:o=!1,title:a="Hac\xE9 clic o arrastr\xE1 los archivos para cargarlos",description:n=`Deben ser PDF, JPG o PNG de hasta ${e} MB.`,buttonLabel:r="Subir archivo",icon:l,state:s="default",className:p,actions:f,tokens:u,onFilesChange:d,onError:b}){var M,C,k,R;let v=P("fileUpload",ii,{tokens:u}),x=y(i({},v.styles),{"--fu-border-color":(R=(k=(C=(M=v==null?void 0:v.tokens)==null?void 0:M.dropzone)==null?void 0:C.borderColor)==null?void 0:k[s])!=null?R:""}),w=Co.useRef(null),m=s==="disabled",z=Co.useCallback(S=>{let D=[],I=new Set((t!=null?t:[]).map(F=>F.toLowerCase())),N=[];for(let F of S){let g=I.size===0?!0:I.has((F.type||"").toLowerCase()),X=si(F.size)<=e;if(!g){D.push(`Tipo no permitido: ${F.name}`);continue}if(!X){D.push(`Archivo demasiado grande (${e} MB m\xE1x): ${F.name}`);continue}N.push(F)}return!o&&N.length>1?(D.push("Solo se permite 1 archivo."),{files:N.slice(0,1),errors:D}):{files:N,errors:D}},[t,e,o]),T=()=>{var S;m||(S=w.current)==null||S.click()},E=S=>{if(m)return;let{files:D,errors:I}=z(S);I.length&&(b==null||b(I)),D.length&&(d==null||d(D))},B=S=>{var I;if(m)return;S.preventDefault(),S.stopPropagation();let D=Array.from((I=S.dataTransfer.files)!=null?I:[]);D.length&&E(D)};return(0,ct.jsx)("section",{style:y(i({},x),{background:"var(--fu-bg)",padding:"var(--fu-padding)",width:"100%",display:"flex",alignItems:"center",textAlign:"center"}),children:(0,ct.jsx)("div",{className:c("w-full rounded-[16px] bg-[--color-white] p-6 sm:p-8",p),children:(0,ct.jsxs)("div",{role:"button","aria-disabled":m,tabIndex:m?-1:0,onClick:T,onKeyDown:S=>{!m&&(S.key==="Enter"||S.key===" ")&&T()},onDrop:B,onDragOver:S=>{m||(S.preventDefault(),S.dataTransfer.dropEffect="copy")},className:c("w-full rounded-[16px] border border-dashed","px-6 py-10 sm:px-10 sm:py-14","flex flex-col items-center justify-center","outline-none transition-colors",di[s]),style:{gap:"var(--fu-gap)"},children:[l&&(0,ct.jsx)("div",{style:{width:"var(--fu-icon-size)",height:"var(--fu-icon-size)",display:"flex",alignItems:"center",justifyContent:"center",color:"var(--fu-icon-color)",borderRadius:"var(--fu-icon-radius)"},children:l!=null?l:(0,ct.jsx)(ci,{})}),(0,ct.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:"4px",alignItems:"center"},children:[(0,ct.jsx)("h3",{style:{color:"var(--fu-title-color)",fontWeight:"var(--fu-title-weight)",fontSize:"var(--fu-title-size)",fontFamily:"var(--fu-font-family)",lineHeight:"var(--fu-line-height)",letterSpacing:"var(--fu-letter-spacing)",margin:0},children:a}),n&&(0,ct.jsx)("p",{style:{color:"var(--fu-desc-color)",fontWeight:"var(--fu-desc-weight)",fontSize:"var(--fu-desc-size)",fontFamily:"var(--fu-font-family)",lineHeight:"var(--fu-line-height)",letterSpacing:"var(--fu-letter-spacing)",margin:0},children:n})]}),(0,ct.jsx)("div",{className:"pt-2",children:f||(0,ct.jsx)(Lt,{variant:"secondary",disabled:m,onClick:S=>{S.preventDefault(),S.stopPropagation(),T()},children:r})}),(0,ct.jsx)("input",{ref:w,type:"file",hidden:!0,multiple:o,disabled:m,accept:li(t),onChange:S=>{var I;let D=Array.from((I=S.target.files)!=null?I:[]);E(D),S.target.value=""}})]})})})}var St=require("react/jsx-runtime");function fi({id:t,overline:e,title:o,subtitle:a,amount:n,status:r,onItemClick:l,className:s}){return(0,St.jsxs)("div",{role:l?"button":void 0,onClick:()=>l==null?void 0:l(t),className:c("flex cursor-pointer items-center justify-between gap-3 py-3 text-sm","border-b border-gray-100 last:border-b-0 hover:bg-muted/50",s),children:[(0,St.jsx)("div",{className:"flex w-full items-start",children:(0,St.jsxs)("div",{className:"flex flex-col",children:[e&&(0,St.jsx)("span",{className:"text-xs text-muted-foreground",children:e}),(0,St.jsx)("span",{className:"font-medium leading-tight",children:o}),a&&(0,St.jsx)("span",{className:"text-xs text-muted-foreground",children:a})]})}),(n||r)&&(0,St.jsx)("div",{className:"flex items-center gap-3",children:(0,St.jsxs)("div",{className:"flex flex-col items-end",children:[n&&(0,St.jsx)("span",{className:"font-medium",children:n}),r&&(0,St.jsx)(co,{tone:"success",size:"small",children:r.label})]})})]})}var yn=O(require("react"),1);var gt=require("react/jsx-runtime"),ui={"--table-bg":{tokenPath:"background",fallback:"#FFFFFF"},"--table-border":{tokenPath:"border",fallback:"#E2E5E9"},"--table-radius":{tokenPath:"radius",fallback:"16px"},"--table-shadow":{tokenPath:"shadow",fallback:"none"},"--th-bg":{tokenPath:"headerBackground",fallback:"#F9F9FA"},"--th-text":{tokenPath:"headerTextColor",fallback:"#6E7991"},"--th-size":{tokenPath:"headerFontSize",fallback:"12px"},"--th-weight":{tokenPath:"headerFontWeight",fallback:"600"},"--row-hover":{tokenPath:"rowHoverBackground",fallback:"rgba(0,0,0,.03)"},"--row-selected":{tokenPath:"rowSelectedBackground",fallback:"#F4F0FF"},"--cell-text":{tokenPath:"cellTextColor",fallback:"#3A3F4B"},"--cell-size":{tokenPath:"cellFontSize",fallback:"14px"},"--cell-desc-text":{tokenPath:"descriptionColor",fallback:"#6E7991"},"--cell-desc-size":{tokenPath:"descriptionFontSize",fallback:"12px"},"--cell-desc-weight":{tokenPath:"descriptionFontWeight",fallback:"400"},"--table-font-family":{tokenPath:"fontFamily",fallback:"'Inter', sans-serif"},"--table-line-height":{tokenPath:"lineHeight",fallback:"130%"},"--table-letter-spacing":{tokenPath:"letterSpacing",fallback:"-0.04em"}},gi=yn.createContext(null);function hi(a){var n=a,{className:t,tokens:e}=n,o=h(n,["className","tokens"]);let r=P("table",ui,{tokens:e}),l=y(i({},r.styles),{fontFamily:"var(--table-font-family)",lineHeight:"var(--table-line-height)",letterSpacing:"var(--table-letter-spacing)"});return(0,gt.jsx)(gi.Provider,{value:r.tokens,children:(0,gt.jsx)("div",{"data-slot":"table-container",style:l,className:"w-full rounded-[var(--table-radius)] bg-[var(--table-bg)] border border-[var(--table-border)] shadow-[var(--table-shadow)] overflow-hidden",children:(0,gt.jsx)("table",i({"data-slot":"table",className:c("w-full text-sm border-collapse",t)},o))})})}function bi(t){return(0,gt.jsx)("thead",i({className:"bg-[var(--th-bg)] text-[var(--th-text)] border-b border-[var(--table-border)]"},t))}function mi(t){return(0,gt.jsx)("tbody",i({"data-slot":"table-body",className:c("[&_tr:last-child]:border-0",t.className)},t))}function ki(t){return(0,gt.jsx)("tr",i({className:"border-b border-[var(--table-border)] hover:bg-[var(--row-hover)] data-[state=selected]:bg-[var(--row-selected)] transition-colors"},t))}function vi(t){return(0,gt.jsx)("th",i({className:"h-12 px-4 py-3 text-[var(--th-size)] font-[var(--th-weight)] text-left align-middle whitespace-nowrap uppercase tracking-[var(--table-letter-spacing)] [font-family:var(--table-font-family)] leading-[var(--table-line-height)]"},t))}function yi(t){return(0,gt.jsx)("td",i({className:"px-4 py-3 text-[var(--cell-size)] text-[var(--cell-text)] align-middle [font-family:var(--table-font-family)] leading-[var(--table-line-height)] tracking-[var(--table-letter-spacing)]"},t))}function xi(o){var a=o,{className:t}=a,e=h(a,["className"]);return(0,gt.jsx)("p",i({className:c("text-[var(--cell-desc-size)] text-[var(--cell-desc-text)] font-[var(--cell-desc-weight)] mt-0.5 [font-family:var(--table-font-family)] leading-[var(--table-line-height)] tracking-[var(--table-letter-spacing)]",t)},e))}function Pi(a){var n=a,{children:t,className:e}=n,o=h(n,["children","className"]);return(0,gt.jsx)("tfoot",y(i({"data-slot":"table-footer",className:c("bg-[var(--table-bg)] border-t border-[var(--table-border)]",e)},o),{children:(0,gt.jsx)("tr",{children:(0,gt.jsx)("td",{colSpan:100,className:"p-0",children:(0,gt.jsx)("div",{className:"flex w-full items-center justify-between px-4 py-3",children:t})})})}))}function wi(t){return(0,gt.jsx)("caption",i({"data-slot":"table-caption",className:c("mt-4 text-sm text-slate-500",t.className)},t))}var j=O(require("@radix-ui/react-dropdown-menu"),1),Oe=require("lucide-react"),To=O(require("react"),1);var $=require("react/jsx-runtime"),Si={"--dropdown-bg":{tokenPath:"background",fallback:"#fff"},"--dropdown-text":{tokenPath:"color",fallback:"#000"},"--dropdown-text-font-size":{tokenPath:"fontSize",fallback:"14px"},"--dropdown-text-font-weight":{tokenPath:"fontWeight",fallback:"400"},"--dropdown-font-family":{tokenPath:"fontFamily",fallback:"'Inter', sans-serif"},"--dropdown-line-height":{tokenPath:"lineHeight",fallback:"130%"},"--dropdown-letter-spacing":{tokenPath:"letterSpacing",fallback:"-0.04em"},"--dropdown-border":{tokenPath:"border",fallback:"#E5E7EB"},"--dropdown-radius":{tokenPath:"radius",fallback:"8px"},"--dropdown-shadow":{tokenPath:"shadow",fallback:"0 4px 12px rgba(0,0,0,.08)"}},xn={"--item-text":{tokenPath:"item.color",fallback:"inherit"},"--item-text-font-size":{tokenPath:"item.fontSize",fallback:"14px"},"--item-text-font-weight":{tokenPath:"item.fontWeight",fallback:"400"},"--dropdown-font-family":{tokenPath:"fontFamily",fallback:"'Inter', sans-serif"},"--dropdown-line-height":{tokenPath:"lineHeight",fallback:"130%"},"--dropdown-letter-spacing":{tokenPath:"letterSpacing",fallback:"-0.04em"},"--item-bg":{tokenPath:"item.background",fallback:"transparent"},"--item-hover-bg":{tokenPath:"item.hoverBackground",fallback:"#F1F5F9"},"--item-radius":{tokenPath:"item.borderRadius",fallback:"6px"},"--item-active":{tokenPath:"item.activeBackground",fallback:"#E2E5E9"},"--item-disabled":{tokenPath:"item.disabledOpacity",fallback:"0.4"},"--item-icon-size":{tokenPath:"item.iconSize",fallback:"13px"},"--item-icon-color":{tokenPath:"item.iconColor",fallback:"inherit"},"--dropdown-shadow":{tokenPath:"shadow",fallback:"0 4px 12px rgba(0,0,0,.08)"}},zi={"--item-text":{tokenPath:"item.color",fallback:"inherit"},"--item-text-font-size":{tokenPath:"item.fontSize",fallback:"14px"},"--dropdown-font-family":{tokenPath:"fontFamily",fallback:"'Inter', sans-serif"},"--dropdown-line-height":{tokenPath:"lineHeight",fallback:"130%"},"--dropdown-letter-spacing":{tokenPath:"letterSpacing",fallback:"-0.04em"},"--item-hover-bg":{tokenPath:"item.hoverBackground",fallback:"#F1F5F9"},"--item-radius":{tokenPath:"item.borderRadius",fallback:"6px"},"--item-active":{tokenPath:"item.activeBackground",fallback:"#E2E5E9"},"--item-icon-size":{tokenPath:"item.iconSize",fallback:"16px"}},Pn=To.createContext(null);function Vt(){var t;return(t=To.useContext(Pn))!=null?t:{}}function Ro(t){let n=t,{tokens:e}=n,o=h(n,["tokens"]),a=P("dropdown",i(i(i({},Si),xn),zi),{tokens:e});return(0,$.jsx)(Pn.Provider,{value:a,children:(0,$.jsx)(j.Root,i({"data-slot":"dropdown-menu"},o))})}function Ci(t){return(0,$.jsx)(j.Portal,i({"data-slot":"dropdown-menu-portal"},t))}function No(t){return(0,$.jsx)(j.Trigger,i({"data-slot":"dropdown-menu-trigger"},t))}function Fo(a){var n=a,{className:t,sideOffset:e=4}=n,o=h(n,["className","sideOffset"]);let r=Vt();if(!r)return null;let l=y(i({},r.styles),{fontFamily:"var(--dropdown-font-family)",lineHeight:"var(--dropdown-line-height)",letterSpacing:"var(--dropdown-letter-spacing)"});return(0,$.jsx)(j.Portal,{children:(0,$.jsx)(j.Content,i({"data-slot":"dropdown-menu-content",sideOffset:e,style:l,className:c(`
|
|
11
|
+
min-w-[8rem] p-1
|
|
12
|
+
bg-[var(--dropdown-bg)]
|
|
13
|
+
text-[color:var(--dropdown-text)]
|
|
14
|
+
text-[length:var(--dropdown-text-font-size)]
|
|
15
|
+
font-[var(--dropdown-text-font-weight)]
|
|
16
|
+
border-[var(--dropdown-border)]
|
|
17
|
+
rounded-[var(--dropdown-radius)]
|
|
18
|
+
shadow-[0px_2px_4px_-1px_#0000000F,0px_4px_6px_-1px_#0000001A]
|
|
19
|
+
`,"data-[state=open]:animate-in data-[state=closed]:animate-out",t)},o))})}function Ti(t){return(0,$.jsx)(j.Group,i({"data-slot":"dropdown-menu-group"},t))}function Ao(l){var s=l,{className:t,iconLeft:e,iconRight:o,selected:a,destructive:n}=s,r=h(s,["className","iconLeft","iconRight","selected","destructive"]);let p=Vt();return(0,$.jsxs)(j.Item,y(i({style:p.styles,"data-selected":a?"true":"false","data-destructive":n?"true":"false","data-slot":"dropdown-menu-item",className:c(`
|
|
20
|
+
flex items-center gap-2 px-2 py-1.5
|
|
21
|
+
text-[color:var(--item-text)]
|
|
22
|
+
text-[length:var(--item-text-font-size)]
|
|
23
|
+
font-[var(--item-text-font-weight)]
|
|
24
|
+
bg-[var(--item-bg)]
|
|
25
|
+
rounded-[var(--item-radius)]
|
|
26
|
+
outline-none select-none
|
|
27
|
+
|
|
28
|
+
focus:bg-[var(--item-hover-bg)]
|
|
29
|
+
data-[highlighted]:bg-[var(--item-hover-bg)]
|
|
30
|
+
data-[state=open]:bg-[var(--item-active-bg)]
|
|
31
|
+
data-[selected=true]:bg-[var(--item-hover-bg)]
|
|
32
|
+
data-[disabled]:opacity-[var(--item-disabled)]
|
|
33
|
+
`,t)},r),{children:[e&&(0,$.jsx)("span",{className:"flex items-center",style:{width:"var(--item-icon-size)",height:"var(--item-icon-size)",color:"var(--item-icon-color)"},children:e}),(0,$.jsx)("span",{className:"flex-1 truncate",children:r.children}),o&&(0,$.jsx)("span",{className:"flex items-center",style:{width:"var(--item-icon-size)",height:"var(--item-icon-size)",color:"var(--item-icon-color)"},children:o})]}))}function Ri(n){var r=n,{className:t,children:e,checked:o}=r,a=h(r,["className","children","checked"]);let l=Vt();return(0,$.jsxs)(j.CheckboxItem,y(i({checked:o,style:l.styles,"data-slot":"dropdown-menu-checkbox-item",className:c(`
|
|
34
|
+
relative flex items-center gap-2 px-2 py-1.5 pl-8
|
|
35
|
+
text-[color:var(--item-text)]
|
|
36
|
+
text-[length:var(--item-text-font-size)]
|
|
37
|
+
font-[var(--item-text-font-weight)]
|
|
38
|
+
bg-[var(--item-bg)]
|
|
39
|
+
rounded-[var(--item-radius)]
|
|
40
|
+
outline-none select-none
|
|
41
|
+
|
|
42
|
+
focus:bg-[var(--item-hover-bg)]
|
|
43
|
+
data-[highlighted]:bg-[var(--item-hover-bg)]
|
|
44
|
+
data-[state=open]:bg-[var(--item-active-bg)]
|
|
45
|
+
data-[selected=true]:bg-[var(--item-hover-bg)]
|
|
46
|
+
data-[disabled]:opacity-[var(--item-disabled)]
|
|
47
|
+
`,t)},a),{children:[(0,$.jsx)("span",{className:"absolute left-2 flex items-center justify-center",style:{width:"var(--item-icon-size)",height:"var(--item-icon-size)"},children:(0,$.jsx)(j.ItemIndicator,{children:(0,$.jsx)(Oe.CheckIcon,{className:"w-[var(--item-icon-size)] h-[var(--item-icon-size)] fill-[color:var(--item-icon-color)]"})})}),(0,$.jsx)("span",{className:"flex-1",children:e})]}))}function Ni(t){return(0,$.jsx)(j.RadioGroup,i({"data-slot":"dropdown-menu-radio-group"},t))}function Fi(a){var n=a,{className:t,children:e}=n,o=h(n,["className","children"]);let r=Vt();return(0,$.jsxs)(j.RadioItem,y(i({style:r.styles,"data-slot":"dropdown-menu-radio-item",className:c(`
|
|
48
|
+
relative flex items-center gap-2 px-2 py-1.5 pl-8
|
|
49
|
+
text-[color:var(--item-text)]
|
|
50
|
+
text-[length:var(--item-text-font-size)]
|
|
51
|
+
font-[var(--item-text-font-weight)]
|
|
52
|
+
bg-[var(--item-bg)]
|
|
53
|
+
rounded-[var(--item-radius)]
|
|
54
|
+
outline-none select-none
|
|
55
|
+
|
|
56
|
+
focus:bg-[var(--item-hover-bg)]
|
|
57
|
+
data-[highlighted]:bg-[var(--item-hover-bg)]
|
|
58
|
+
data-[state=open]:bg-[var(--item-active-bg)]
|
|
59
|
+
data-[selected=true]:bg-[var(--item-hover-bg)]
|
|
60
|
+
data-[disabled]:opacity-[var(--item-disabled)]
|
|
61
|
+
`,t)},o),{children:[(0,$.jsx)("span",{className:"absolute left-2 flex items-center justify-center",style:{width:"var(--item-icon-size)",height:"var(--item-icon-size)"},children:(0,$.jsx)(j.ItemIndicator,{children:(0,$.jsx)(Oe.CircleIcon,{className:"w-[var(--item-icon-size)] h-[var(--item-icon-size)] fill-[color:var(--item-icon-color)]"})})}),(0,$.jsx)("span",{className:"flex-1",children:e})]}))}function Ai(a){var n=a,{className:t,inset:e}=n,o=h(n,["className","inset"]);let r=Vt();return(0,$.jsx)(j.Label,i({"data-slot":"dropdown-menu-label","data-inset":e,style:pt(r,{color:{tokenPath:"item.color",fallback:"#6B7280"},fontSize:{tokenPath:"item.fontSize",fallback:"12px"},fontWeight:{tokenPath:"item.fontWeight",fallback:"600"}},{fontFamily:"var(--dropdown-font-family)",lineHeight:"var(--dropdown-line-height)",letterSpacing:"var(--dropdown-letter-spacing)"}),className:c(`
|
|
62
|
+
flex items-center gap-2 px-2 py-1.5
|
|
63
|
+
data-[inset=true]:pl-8
|
|
64
|
+
`,t)},o))}function Bi(t){let e=Vt(),o=pt(e.tokens,{"--dropdown-separator":{tokenPath:"section.separatorColor",fallback:"inherit"}}),a=i(i({},e.styles),o);return(0,$.jsx)(j.Separator,i({"data-slot":"dropdown-menu-separator",style:a,className:"bg-border bg-white -mx-1 my-1 h-px"},t))}function Ei(t){let e=Vt();return(0,$.jsx)("span",i({"data-slot":"dropdown-menu-shortcut",style:pt(e.tokens,{color:{tokenPath:"item.iconColor",fallback:"#6B7280"},fontSize:{tokenPath:"item.fontSize",fallback:"12px"},fontWeight:{tokenPath:"item.fontWeight",fallback:"400"}},{fontFamily:"var(--dropdown-font-family)",lineHeight:"var(--dropdown-line-height)",letterSpacing:"var(--dropdown-letter-spacing)"}),className:"ml-auto tracking-wider"},t))}function Mi(t){return(0,$.jsx)(j.Sub,i({"data-slot":"dropdown-menu-sub"},t))}function Di(n){var r=n,{className:t,inset:e,children:o}=r,a=h(r,["className","inset","children"]);let l=Vt();return(0,$.jsxs)(j.SubTrigger,y(i({"data-slot":"dropdown-menu-sub-trigger",style:l.styles,"data-inset":e,className:c(`
|
|
65
|
+
flex items-center gap-2 px-2 py-1.5
|
|
66
|
+
rounded-[var(--item-radius)]
|
|
67
|
+
outline-none select-none
|
|
68
|
+
focus:bg-[var(--item-hover-bg)]
|
|
69
|
+
data-[state=open]:bg-[var(--item-hover-bg)]
|
|
70
|
+
data-[inset=true]:pl-8
|
|
71
|
+
`,t)},a),{children:[(0,$.jsx)("span",{className:"flex-1",children:o}),(0,$.jsx)(Oe.ChevronRightIcon,{className:"size-[var(--item-icon-size)] opacity-70"})]}))}function Wi(o){var a=o,{className:t}=a,e=h(a,["className"]);let n=Vt(),r=pt(n.tokens,xn,{fontFamily:"var(--dropdown-font-family)",lineHeight:"var(--dropdown-line-height)",letterSpacing:"var(--dropdown-letter-spacing)"}),l=i(i({},n.styles),r);return(0,$.jsx)(j.SubContent,i({"data-slot":"dropdown-menu-sub-content",style:l,className:c(`
|
|
72
|
+
min-w-[8rem] p-2
|
|
73
|
+
bg-[var(--item-bg)]
|
|
74
|
+
text-[color:var(--item-text)]
|
|
75
|
+
text-[length:var(--item-text-font-size)]
|
|
76
|
+
font-[var(--item-text-font-weight)]
|
|
77
|
+
border-[var(--item-disabled)]
|
|
78
|
+
rounded-[var(--item-radius)]
|
|
79
|
+
shadow-[0px_2px_4px_-1px_#0000000F,0px_4px_6px_-1px_#0000001A]
|
|
80
|
+
`,"data-[state=open]:animate-in data-[state=closed]:animate-out",t)},e))}var Bt=O(require("@radix-ui/react-popover"),1);var Ve=require("react/jsx-runtime");function Hi(e){var t=h(e,[]);return(0,Ve.jsx)(Bt.Root,i({"data-slot":"popover"},t))}function Ii(e){var t=h(e,[]);return(0,Ve.jsx)(Bt.Trigger,i({"data-slot":"popover-trigger"},t))}var _i={"--popover-text":{tokenPath:"color"},"--popover-bg":{tokenPath:"background"},"--popover-radius":{tokenPath:"radius"},"--popover-border-color":{tokenPath:"border"},"--popover-shadow":{tokenPath:"shadow"},"--popover-padding":{tokenPath:"padding"},"--popover-font-size":{tokenPath:"fontSize"},"--popover-font-weight":{tokenPath:"fontWeight"},"--popover-font-family":{tokenPath:"fontFamily",fallback:"'Inter', sans-serif"},"--popover-line-height":{tokenPath:"lineHeight",fallback:"130%"},"--popover-letter-spacing":{tokenPath:"letterSpacing",fallback:"-0.04em"},"--popover-z":{tokenPath:"zIndex"}};function Li(l){var s=l,{className:t,align:e="center",sideOffset:o=4,tokens:a,style:n}=s,r=h(s,["className","align","sideOffset","tokens","style"]);let p=P("popover",_i,{tokens:a,extra:n}),f=y(i({},p.styles),{fontFamily:"var(--popover-font-family)",lineHeight:"var(--popover-line-height)",letterSpacing:"var(--popover-letter-spacing)"});return(0,Ve.jsx)(Bt.Portal,{children:(0,Ve.jsx)(Bt.Content,i({"data-slot":"popover-content",align:e,sideOffset:o,style:f,className:c("z-[var(--popover-z)] w-72 origin-[var(--radix-popover-content-transform-origin)]","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","p-4 outline-hidden","padding-[var(--popover-padding)]","line-height-[var(--popover-line-height)] font-[var(--popover-font-weight)]","bg-[var(--popover-bg)] text-[color:var(--popover-text)] text-[length:var(--popover-font-size)] border border-[var(--popover-border-width)] border-[var(--popover-border-color)] shadow-[var(--popover-shadow)] rounded-[var(--popover-radius)]",t)},r))})}function Oi(e){var t=h(e,[]);return(0,Ve.jsx)(Bt.Anchor,i({"data-slot":"popover-anchor"},t))}var zt=O(require("@radix-ui/react-tooltip"),1);var Gt=require("react/jsx-runtime");function wn(o){var a=o,{delayDuration:t=0}=a,e=h(a,["delayDuration"]);return(0,Gt.jsx)(zt.Provider,i({"data-slot":"tooltip-provider",delayDuration:t},e))}var Vi={"--tooltip-text":{tokenPath:"color",fallback:"#FFFFFF"},"--tooltip-bg":{tokenPath:"background",fallback:"#020303"},"--tooltip-radius":{tokenPath:"radius",fallback:"6px"},"--tooltip-max-width":{tokenPath:"maxWidth",fallback:"300px"},"--tooltip-min-height":{tokenPath:"minHeight",fallback:"30px"},"--tooltip-gap":{tokenPath:"gap",fallback:"4px"},"--tooltip-z-index":{tokenPath:"zIndex",fallback:1400},"--tooltip-padding-x":{tokenPath:"paddingX",fallback:"12px"},"--tooltip-padding-y":{tokenPath:"paddingY",fallback:"6px"},"--tooltip-font-size":{tokenPath:"fontSize",fallback:"14px"},"--tooltip-font-weight":{tokenPath:"fontWeight",fallback:400},"--tooltip-font-family":{tokenPath:"fontFamily",fallback:"'Inter', sans-serif"},"--tooltip-line-height":{tokenPath:"lineHeight",fallback:"18px"},"--tooltip-letter-spacing":{tokenPath:"letterSpacing",fallback:"-0.04em"},"--tooltip-text-align":{tokenPath:"textAlign",fallback:"left"},"--tooltip-caret-color":{tokenPath:"caretColor",fallback:"#020303"}};function Gi(o){var a=o,{tokens:t}=a,e=h(a,["tokens"]);return(0,Gt.jsx)(wn,{children:(0,Gt.jsx)(zt.Root,i({"data-slot":"tooltip"},e))})}function $i(e){var t=h(e,[]);return(0,Gt.jsx)(zt.Trigger,i({"data-slot":"tooltip-trigger"},t))}function ji(r){var l=r,{className:t,sideOffset:e=4,tokens:o,children:a}=l,n=h(l,["className","sideOffset","tokens","children"]);var d,b,v,x;let s=P("tooltip",Vi,{tokens:o}),p=parseFloat(String((b=(d=s==null?void 0:s.tokens)==null?void 0:d.caretSize)!=null?b:6))||6,f=(x=(v=s==null?void 0:s.tokens)==null?void 0:v.textAlign)!=null?x:"left",u=y(i({},s.styles),{fontFamily:"var(--tooltip-font-family)",lineHeight:"var(--tooltip-line-height)",letterSpacing:"var(--tooltip-letter-spacing)",textAlign:f});return(0,Gt.jsx)(zt.Portal,{children:(0,Gt.jsxs)(zt.Content,y(i({"data-slot":"tooltip-content",style:u,sideOffset:e,className:c(`
|
|
81
|
+
z-[var(--tooltip-z-index)] w-fit max-w-[var(--tooltip-max-width)] rounded-[var(--tooltip-radius)]
|
|
82
|
+
min-h-[var(--tooltip-min-height)] inline-flex items-center gap-[var(--tooltip-gap)]
|
|
83
|
+
px-[var(--tooltip-padding-x)] py-[var(--tooltip-padding-y)]
|
|
84
|
+
bg-[var(--tooltip-bg)]
|
|
85
|
+
text-[var(--tooltip-text)]
|
|
86
|
+
text-[length:var(--tooltip-font-size)]
|
|
87
|
+
font-[var(--tooltip-font-weight)]
|
|
88
|
+
leading-[var(--tooltip-line-height)]
|
|
89
|
+
tracking-[var(--tooltip-letter-spacing)]
|
|
90
|
+
animate-in fade-in-0 zoom-in-95
|
|
91
|
+
data-[state=closed]:animate-out
|
|
92
|
+
data-[state=closed]:fade-out-0
|
|
93
|
+
data-[state=closed]:zoom-out-95
|
|
94
|
+
data-[side=bottom]:slide-in-from-top-2
|
|
95
|
+
data-[side=left]:slide-in-from-right-2
|
|
96
|
+
data-[side=right]:slide-in-from-left-2
|
|
97
|
+
data-[side=top]:slide-in-from-bottom-2
|
|
98
|
+
`,t)},n),{children:[a,(0,Gt.jsx)(zt.Arrow,{width:p,height:p,className:"fill-[var(--tooltip-caret-color)]"})]}))})}var Sn=require("@radix-ui/react-slot");var J=require("react/jsx-runtime"),zn="relative overflow-hidden border transition-all",Cn=V(zn,{variants:{size:{full:"max-w-[1184px] p-4",compact:"max-w-[380px] p-4"},orientation:{horizontal:"flex items-center gap-4",vertical:"flex gap-4"}},defaultVariants:{size:"compact",orientation:"vertical"}}),Ui={"--promoBanner-title-color":{tokenPath:"title.color",fallback:"#FFFFFF"},"--promoBanner-title-font-family":{tokenPath:"title.fontFamily",fallback:"inherit"},"--promoBanner-title-weight":{tokenPath:"title.fontWeight",fallback:"550"},"--promoBanner-title-size":{tokenPath:"title.fontSize",fallback:"16px"},"--promoBanner-title-line-height":{tokenPath:"title.lineHeight",fallback:"130%"},"--promoBanner-title-letter-spacing":{tokenPath:"title.letterSpacing",fallback:"-0.04em"},"--promoBanner-desc-font-family":{tokenPath:"description.fontFamily",fallback:"inherit"},"--promoBanner-desc-color":{tokenPath:"description.color",fallback:"#FFFFFF"},"--promoBanner-desc-weight":{tokenPath:"description.fontWeight",fallback:"400"},"--promoBanner-desc-size":{tokenPath:"description.fontSize",fallback:"12px"},"--promoBanner-desc-line-height":{tokenPath:"description.lineHeight",fallback:"130%"},"--promoBanner-desc-letter-spacing":{tokenPath:"description.letterSpacing",fallback:"-0.04em"}};function Ki(B){var M=B,{className:t,asChild:e=!1,tokens:o,variant:a="primary",size:n="compact",orientation:r="vertical",imagePosition:l,contentAlign:s="left",imageDisplay:p="inline",heroContentPosition:f="between",heroMinHeight:u,heroOverlay:d,title:b,description:v="",cta:x="Label",imageSrc:w,imageAlt:m="",icon:z,endSlot:T}=M,E=h(M,["className","asChild","tokens","variant","size","orientation","imagePosition","contentAlign","imageDisplay","heroContentPosition","heroMinHeight","heroOverlay","title","description","cta","imageSrc","imageAlt","icon","endSlot"]);var ot,ht,A,Ft,xt,Ct,Pt,Xt,It,Re,Yt,Zt,qt,Jt,Qt,te,ee,oe,ae,ne,re,ie,se,le,ce,de,pe,fe;let C=e?Sn.Slot:"div",k=P("promoBanner",Ui,{tokens:o,variant:a,size:n!=null?n:void 0}),R=(ht=(ot=k==null?void 0:k.tokens)==null?void 0:ot[a])!=null?ht:W(k==null?void 0:k.tokens,"variants",a),S=r==="horizontal",D=p==="background",I=l!=null?l:S?"right":"top",N=I==="left"||I==="top",F=y(i({},k.styles),{"--promoBanner-bg":(xt=(Ft=R==null?void 0:R.background)!=null?Ft:(A=k==null?void 0:k.tokens)==null?void 0:A.background)!=null?xt:"#F8FAFC","--promoBanner-border":(Xt=(Pt=R==null?void 0:R.border)!=null?Pt:(Ct=k==null?void 0:k.tokens)==null?void 0:Ct.border)!=null?Xt:"#E2E8F0","--promoBanner-radius":(Yt=(Re=R==null?void 0:R.borderRadius)!=null?Re:(It=k==null?void 0:k.tokens)==null?void 0:It.borderRadius)!=null?Yt:"16px","--promoBanner-image-bg":(Zt=R==null?void 0:R.imageBg)!=null?Zt:"#E5E7EB","--promoBanner-image-radius":(qt=R==null?void 0:R.imageRadius)!=null?qt:"10px","--promoBanner-icon-bg":(te=(Qt=R==null?void 0:R.iconBg)!=null?Qt:(Jt=k==null?void 0:k.tokens)==null?void 0:Jt.iconBg)!=null?te:"rgba(0,0,0,0.08)","--promoBanner-icon-color":(ae=(oe=R==null?void 0:R.iconColor)!=null?oe:(ee=k==null?void 0:k.tokens)==null?void 0:ee.iconColor)!=null?ae:"#6B7280","--promoBanner-hero-overlay":(ie=d!=null?d:(re=(ne=k==null?void 0:k.tokens)==null?void 0:ne.hero)==null?void 0:re.overlay)!=null?ie:"linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.1) 45%, rgba(0, 0, 0, 0.25) 100%)","--promoBanner-hero-min-height":(ce=u!=null?u:(le=(se=k==null?void 0:k.tokens)==null?void 0:se.hero)==null?void 0:le.minHeight)!=null?ce:n==="full"?"420px":"405px","--promoBanner-action":(fe=(pe=R==null?void 0:R.action)!=null?pe:(de=k==null?void 0:k.tokens)==null?void 0:de.action)!=null?fe:"#1F2937"}),g=c("shrink-0 overflow-hidden rounded-[var(--promoBanner-image-radius)] bg-[var(--promoBanner-image-bg)]",S?n==="full"?"w-[240px] h-[144px]":"w-[152px] h-[92px]":n==="full"?"w-full h-[240px]":"w-full h-[180px]"),X=c("flex-1 min-w-0 flex flex-col gap-2",s==="center"&&"items-center text-center"),Y=typeof x=="string"||typeof x=="number"?(0,J.jsx)("span",{className:"inline-flex w-fit rounded-[6px] bg-white px-3 py-1 text-[12px] font-semibold text-neutral-900",children:x}):x,at=(0,J.jsx)("div",{"data-slot":"banner-image",className:g,children:(0,J.jsx)("img",{src:w,alt:m,className:"h-full w-full object-cover",loading:"lazy"})}),dt=c("relative z-10 flex h-full w-full p-6",f==="top"&&"flex-col justify-start",f==="center"&&"flex-col justify-center",f==="between"&&"flex-col justify-between",f==="bottom"&&"flex-col justify-end gap-4",s==="center"?"items-center text-center":"items-start text-left");return D?(0,J.jsxs)(C,y(i({"data-slot":"banner",style:F,className:c(zn,n==="full"?"max-w-[1184px]":"max-w-[380px]","min-h-[var(--promoBanner-hero-min-height)] bg-[var(--promoBanner-bg)] border-[var(--promoBanner-border)] rounded-[var(--promoBanner-radius)]",t)},E),{children:[(0,J.jsx)("img",{src:w,alt:m,className:"absolute inset-0 h-full w-full object-cover",loading:"lazy"}),(0,J.jsx)("div",{className:"absolute inset-0",style:{background:"var(--promoBanner-hero-overlay)"},"aria-hidden":!0}),(0,J.jsxs)("div",{className:dt,children:[(0,J.jsxs)("div",{className:"space-y-2",children:[z&&(0,J.jsx)("div",{className:"mb-1 inline-flex h-[44px] w-[44px] items-center justify-center rounded-[8px]",style:{backgroundColor:"var(--promoBanner-icon-bg)",color:"var(--promoBanner-icon-color)"},children:z}),(0,J.jsx)("div",{style:{color:"var(--promoBanner-title-color)",fontFamily:"var(--promoBanner-title-font-family)",fontWeight:"var(--promoBanner-title-weight)",fontSize:"var(--promoBanner-title-size)",lineHeight:"var(--promoBanner-title-line-height)",letterSpacing:"var(--promoBanner-title-letter-spacing)"},children:b}),(0,J.jsx)("div",{className:"opacity-95",style:{color:"var(--promoBanner-desc-color)",fontFamily:"var(--promoBanner-desc-font-family)",fontWeight:"var(--promoBanner-desc-weight)",fontSize:"var(--promoBanner-desc-size)",lineHeight:"var(--promoBanner-desc-line-height)",letterSpacing:"var(--promoBanner-desc-letter-spacing)"},children:v})]}),(0,J.jsx)("div",{"data-slot":"banner-cta",className:c(s==="center"&&"flex justify-center w-full"),children:Y})]}),T&&(0,J.jsx)("div",{className:"absolute right-4 top-4 z-10",children:T})]})):(0,J.jsxs)(C,y(i({"data-slot":"banner",style:F,className:c(Cn({size:n,orientation:r}),S?"flex-row":"flex-col","bg-[var(--promoBanner-bg)] border-[var(--promoBanner-border)] rounded-[var(--promoBanner-radius)]",t)},E),{children:[N&&at,(0,J.jsxs)("div",{"data-slot":"banner-content",className:X,children:[z&&(0,J.jsx)("div",{className:"mb-1 inline-flex h-[44px] w-[44px] items-center justify-center rounded-[8px]",style:{backgroundColor:"var(--promoBanner-icon-bg)",color:"var(--promoBanner-icon-color)"},children:z}),(0,J.jsx)("div",{className:"truncate",style:{color:"var(--promoBanner-title-color)",fontFamily:"var(--promoBanner-title-font-family)",fontWeight:"var(--promoBanner-title-weight)",fontSize:"var(--promoBanner-title-size)",lineHeight:"var(--promoBanner-title-line-height)",letterSpacing:"var(--promoBanner-title-letter-spacing)"},children:b}),(0,J.jsx)("div",{className:"opacity-80",style:{color:"var(--promoBanner-desc-color)",fontFamily:"var(--promoBanner-desc-font-family)",fontWeight:"var(--promoBanner-desc-weight)",fontSize:"var(--promoBanner-desc-size)",lineHeight:"var(--promoBanner-desc-line-height)",letterSpacing:"var(--promoBanner-desc-letter-spacing)"},children:v}),(0,J.jsx)("div",{"data-slot":"banner-cta",className:c("mt-1",s==="center"&&"flex justify-center"),children:Y})]}),!N&&at,T&&(0,J.jsx)("div",{className:"shrink-0",children:T})]}))}var Ee=require("react/jsx-runtime"),Xi={"--card-bg":{tokenPath:"backgroundColor",fallback:"#ffffff"},"--card-border":{tokenPath:"borderColor",fallback:"transparent"},"--card-text":{tokenPath:"color",fallback:"inherit"},"--card-radius":{tokenPath:"borderRadius",fallback:"16px"},"--card-padding":{tokenPath:"padding",fallback:"16px"},"--card-title-size":{tokenPath:"title.fontSize",fallback:"18px"},"--card-title-weight":{tokenPath:"title.fontWeight",fallback:"550"},"--card-title-ls":{tokenPath:"title.letterSpacing",fallback:"-0.04em"},"--card-title-lh":{tokenPath:"title.lineHeight",fallback:"130%"}},Yi=V("inline-flex flex-col max-w-full place-self-start overflow-hidden min-w-0 transition-all",{variants:{variant:{primary:"bg-[var(--card-bg)] border border-[var(--card-border)] rounded-[var(--card-radius)]",secondary:"bg-[var(--card-bg)] border border-[var(--card-border)] rounded-[var(--card-radius)]",tertiary:"bg-[var(--card-bg)] border border-[var(--card-border)] rounded-[var(--card-radius)]"}},defaultVariants:{variant:"primary"}});function Zi(f){var u=f,{className:t,title:e,action:o,tokens:a,variant:n="primary",width:r,children:l,style:s}=u,p=h(u,["className","title","action","tokens","variant","width","children","style"]);let d=be(),b=me({componentName:"card",variant:n,tokens:a},d),v=pt(b,Xi,i({width:r?typeof r=="number"?`${r}px`:r:void 0},s));return(0,Ee.jsxs)("div",y(i({"data-slot":"card",style:v,className:c(Yi({variant:n}),"p-[var(--card-padding)]",!r&&"w-fit",t)},p),{children:[(e||o)&&(0,Ee.jsxs)("div",{className:"flex items-center justify-between mb-4 gap-2 min-w-0",children:[e&&(0,Ee.jsx)("div",{className:"truncate",style:{color:"var(--card-text)",fontSize:"var(--card-title-size)",fontWeight:"var(--card-title-weight)",letterSpacing:"var(--card-title-ls)",lineHeight:"var(--card-title-lh)",fontFeatureSettings:"'ss03' on, 'ss06' on"},children:e}),o&&(0,Ee.jsx)("div",{className:"shrink-0",children:o})]}),(0,Ee.jsx)("div",{className:"w-full min-w-0 max-w-full overflow-hidden",children:l})]}))}var ye=O(require("react"),1);var Me=require("react/jsx-runtime"),qi={"--ds-gap":{tokenPath:"gap",fallback:"16px"},"--ds-cursor":{tokenPath:"cursorGrab",fallback:"grab"},"--ds-cursor-active":{tokenPath:"cursorGrabbing",fallback:"grabbing"}};function Ji({children:t,className:e,tokens:o}){let a=ye.useRef(null),n=ye.useRef(!1),r=ye.useRef(0),l=ye.useRef(0),s=P("dragSlider",qi,{tokens:o}),p=y(i({},s.styles),{scrollbarWidth:"none",msOverflowStyle:"none"}),f=b=>{a.current&&(n.current=!0,a.current.style.cursor="var(--ds-cursor-active)",r.current=b.pageX-a.current.offsetLeft,l.current=a.current.scrollLeft)},u=()=>{n.current=!1,a.current&&(a.current.style.cursor="var(--ds-cursor)")},d=b=>{if(!n.current||!a.current)return;b.preventDefault();let x=(b.pageX-a.current.offsetLeft-r.current)*1.5;a.current.scrollLeft=l.current-x};return(0,Me.jsxs)("div",{className:"relative w-full overflow-hidden",children:[(0,Me.jsx)("style",{dangerouslySetInnerHTML:{__html:`
|
|
99
|
+
[data-slot="drag-slider-container"]::-webkit-scrollbar {
|
|
100
|
+
display: none !important;
|
|
101
|
+
}
|
|
102
|
+
`}}),(0,Me.jsx)("div",{className:"absolute right-0 top-0 bottom-0 w-20 z-10 pointer-events-none",style:{background:"linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,0.9))"}}),(0,Me.jsx)("div",{ref:a,style:p,"data-slot":"drag-slider-container",className:c("flex overflow-x-auto select-none scroll-smooth","snap-x snap-mandatory outline-none","gap-[var(--ds-gap)] cursor-[var(--ds-cursor)]","py-4 px-4",e),onMouseDown:f,onMouseLeave:u,onMouseUp:u,onMouseMove:d,children:ye.Children.map(t,(b,v)=>(0,Me.jsx)("div",{"data-slot":"drag-slider-item",className:c("shrink-0 snap-start bg-white rounded-xl shadow-md",v===ye.Children.count(t)-1?"mr-10":""),children:b},v))})]})}var Tn=require("@radix-ui/react-slot");var ta=O(require("react"),1);var q=require("react/jsx-runtime"),Qi=V("flex flex-col overflow-hidden transition-all bg-[var(--ic-bg)] border-[var(--ic-border)] rounded-[var(--ic-radius)]",{variants:{variant:{default:"border",subtle:"border",none:"border-0"},logoSize:{small:"w-full max-w-[380px] min-h-[210px] px-5 pt-5 pb-4 justify-between",large:"w-full max-w-[380px] px-5 pt-4 pb-4 gap-3"}},defaultVariants:{variant:"default",logoSize:"small"}}),ts={"--ic-bg":{tokenPath:"backgroundColor",fallback:"#F9F9FA"},"--ic-border":{tokenPath:"borderColor",fallback:"#E5E7EB"},"--ic-radius":{tokenPath:"borderRadius",fallback:"16px"},"--ic-title-color":{tokenPath:"title.color",fallback:"#111827"},"--ic-desc-color":{tokenPath:"description.color",fallback:"#6B7280"},"--ic-link-color":{tokenPath:"link.color",fallback:"#652BDF"}};function es(C){var k=C,{className:t,variant:e="default",logoSize:o="small",asChild:a=!1,tokens:n,badgeText:r,logoSlot:l,logoSrc:s,logoAlt:p="",initials:f=" ",bannerClassName:u,title:d,description:b,linkLabel:v="Link",linkHref:x,onLinkClick:w,logoClassName:m,badgeClassName:z,contentClassName:T,linkClassName:E,style:B}=k,M=h(k,["className","variant","logoSize","asChild","tokens","badgeText","logoSlot","logoSrc","logoAlt","initials","bannerClassName","title","description","linkLabel","linkHref","onLinkClick","logoClassName","badgeClassName","contentClassName","linkClassName","style"]);let R=be(),S=a?Tn.Slot:"div",D=me({componentName:"integrationCard",tokens:n},R),I=pt(D,ts,B),N=!!(x||w),F=l!=null?l:s?(0,q.jsx)("div",{className:"bg-blue-400 w-full h-full rounded flex items-center justify-center text-white text-[10px]",children:"LOGO"}):(0,q.jsx)("span",{className:"text-xs font-semibold text-[var(--ic-title-color)]",children:f}),g=x?"a":"button",X={onClick:w,href:x,className:c("w-fit text-[14px] font-[550] leading-[1.3] tracking-[-0.04em] underline underline-offset-4 transition-opacity hover:opacity-80","text-[var(--ic-link-color)]",o==="small"?"mt-3":"",E)};return(0,q.jsx)(S,y(i({"data-slot":"integration-card",style:I,className:c(Qi({variant:e,logoSize:o}),t)},M),{children:o==="small"?(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,q.jsx)("div",{className:c("w-10 h-10 rounded-[8px] border border-[#E5E7EB] bg-white flex items-center justify-center overflow-hidden shrink-0",m),children:F}),r&&(0,q.jsx)(co,{tone:"success",size:"small",className:z,children:r})]}),(0,q.jsxs)("div",{className:c("mt-2 flex flex-col gap-2 text-left",T),children:[(0,q.jsx)("div",{className:"text-[16px] font-[550] leading-[1.3] tracking-[-0.04em] text-[var(--ic-title-color)]",children:d}),b&&(0,q.jsx)("div",{className:"text-[14px] font-normal leading-[1.3] tracking-[-0.04em] text-[var(--ic-desc-color)]",children:b})]}),N?ta.createElement(g,X,v):(0,q.jsx)("div",{})]}):(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)("div",{className:c("relative w-full max-w-[364px] h-[140px] rounded-[5.33px] overflow-hidden bg-[#08B7F6]",u),children:[r&&(0,q.jsx)("div",{className:c("absolute top-3 right-3",z),children:(0,q.jsx)("span",{className:"px-3 py-1 rounded-full text-xs font-semibold bg-white/90 text-[#0F766E]",children:r})}),(0,q.jsx)("div",{className:"absolute inset-0 flex items-center justify-center",children:(0,q.jsx)("div",{className:c("w-[88px] h-[88px] flex items-center justify-center",m),children:F})})]}),(0,q.jsxs)("div",{className:c("flex flex-col gap-2 text-left",T),children:[(0,q.jsx)("div",{className:"text-[16px] font-[550] leading-[1.3] tracking-[-0.04em] text-[var(--ic-title-color)]",children:d}),b&&(0,q.jsx)("div",{className:"text-[14px] font-normal leading-[1.3] tracking-[-0.04em] text-[var(--ic-desc-color)]",children:b}),N&&ta.createElement(g,X,v)]})]})}))}var De=O(require("react"),1);var $t=require("react/jsx-runtime");function os(t){if(t==="VAR_NOT_FOUND"||t==="#N/A")return{grade:"N/A",textColor:"text-slate-400",badgeBg:"bg-slate-100",ratio:"0:1"};let e=parseInt(t.slice(1,3),16)/255,o=parseInt(t.slice(3,5),16)/255,a=parseInt(t.slice(5,7),16)/255,n=v=>v<=.03928?v/12.92:Math.pow((v+.055)/1.055,2.4),r=.2126*n(e)+.7152*n(o)+.0722*n(a),l=(1+.05)/(r+.05),s=(r+.05)/(0+.05),p=l>s,f=p?l:s,u=p?"text-white":"text-black",d=p?"bg-white/20":"bg-black/10",b="FAIL";return f>=7?b="AAA":f>=4.5&&(b="AA"),{grade:b,textColor:u,badgeBg:d,ratio:f.toFixed(1)+":1"}}function as({className:t,colorToken:e,colorName:o}){let[a,n]=De.useState("#N/A"),[r,l]=De.useState({grade:"...",textColor:"text-transparent",badgeBg:"bg-transparent",ratio:"0:1"}),s=De.useRef(null);return De.useEffect(()=>{setTimeout(()=>{if(s.current){let u=window.getComputedStyle(s.current).backgroundColor;if(u&&u!=="rgba(0, 0, 0, 0)"&&u!=="transparent"){let d=u.match(/\d+/g);if(d){let v=("#"+d.slice(0,3).map(x=>parseInt(x).toString(16).padStart(2,"0")).join("")).toUpperCase();n(v),l(os(v))}}}},200)},[e]),(0,$t.jsxs)("div",{className:c("inline-flex flex-col overflow-hidden rounded-[16px] border border-slate-200 w-[160px] h-[170px]",t),children:[(0,$t.jsxs)("div",{ref:s,className:c("flex-1 w-full flex flex-col items-center justify-center gap-1 transition-colors duration-300",r.textColor),style:{backgroundColor:e},children:[(0,$t.jsx)("span",{className:c("px-2 py-0.5 rounded text-[10px] font-black uppercase tracking-wider",r.badgeBg),children:r.grade}),(0,$t.jsx)("span",{className:"text-[10px] opacity-80 font-medium",children:r.ratio})]}),(0,$t.jsxs)("div",{className:"h-[75px] p-3 flex flex-col justify-center bg-white border-t border-slate-100",children:[(0,$t.jsx)("div",{className:"font-bold text-[13px] text-slate-900 truncate",children:o}),(0,$t.jsx)("div",{className:"mt-1 font-mono text-[10px] text-slate-400 uppercase tracking-tight",children:a})]})]})}var Et=O(require("@radix-ui/react-accordion"),1),Rn=require("lucide-react"),po=O(require("react"),1);var Nt=require("react/jsx-runtime"),ea=po.createContext("md"),ns={sm:"small",md:"medium"},Nn=V(`
|
|
103
|
+
flex flex-1 items-center justify-between gap-4
|
|
104
|
+
rounded-md
|
|
105
|
+
text-left font-medium
|
|
106
|
+
transition-all
|
|
107
|
+
hover:text-[--accordion-hover-text]
|
|
108
|
+
focus-visible:outline-none
|
|
109
|
+
focus-visible:ring-2
|
|
110
|
+
focus-visible:ring-[--accordion-focus-border]
|
|
111
|
+
disabled:pointer-events-none disabled:opacity-50
|
|
112
|
+
[&[data-state=open]>svg]:rotate-90
|
|
113
|
+
`,{variants:{size:{sm:"py-3",md:"py-4"}},defaultVariants:{size:"md"}}),Fn=V(`
|
|
114
|
+
text-[--color-text-secondary]
|
|
115
|
+
overflow-hidden
|
|
116
|
+
transition-all
|
|
117
|
+
data-[state=closed]:animate-accordion-up
|
|
118
|
+
data-[state=open]:animate-accordion-down
|
|
119
|
+
`,{variants:{size:{sm:"",md:""}},defaultVariants:{size:"md"}}),rs={"--accordion-bg":{tokenPath:"background",fallback:"transparent"},"--accordion-border-color":{tokenPath:"borderColor",fallback:"transparent"},"--accordion-radius":{tokenPath:"radius",fallback:"0px"},"--accordion-border-width":{tokenPath:"borderWidth",fallback:"0px"},"--accordion-text-title":{tokenPath:"text.title",fallback:"#000000"},"--accordion-text-content":{tokenPath:"text.content",fallback:"#000000"},"--accordion-icon-color":{tokenPath:"text.icon",fallback:"#000000"},"--accordion-hover-text":{tokenPath:"states.hover.text",fallback:"#000000"},"--accordion-focus-border":{tokenPath:"states.focus.borderColor",fallback:"#000000"},"--accordion-font-weight":{tokenPath:"fontWeight",fallback:"550"},"--accordion-line-height":{tokenPath:"lineHeight",fallback:"130%"},"--accordion-letter-spacing":{tokenPath:"letterSpacing",fallback:"-0.04em"},"--accordion-font-family":{tokenPath:"fontFamily",fallback:"'Inter', sans-serif"}};function is(a){var n=a,{size:t="md",tokens:e}=n,o=h(n,["size","tokens"]);var f,u,d;let r=P("accordion",rs,{tokens:e,size:t}),l=ns[t],s=(d=(u=(f=W(r==null?void 0:r.tokens,"sizes",l))==null?void 0:f.trigger)==null?void 0:u.fontSize)!=null?d:"16px",p=y(i({},r.styles),{"--accordion-font-size":s,fontFamily:"var(--accordion-font-family)",lineHeight:"var(--accordion-line-height)",letterSpacing:"var(--accordion-letter-spacing)"});return(0,Nt.jsx)(ea.Provider,{value:t,children:(0,Nt.jsx)(Et.Root,i({"data-slot":"accordion","data-size":t,className:"group",style:p},o))})}function ss(o){var a=o,{className:t}=a,e=h(a,["className"]);return(0,Nt.jsx)(Et.Item,i({"data-slot":"accordion-item",className:c("border-b p-2 border-[--accordion-border-color]","[&:last-child]:border-b-0",t)},e))}function ls(a){var n=a,{className:t,children:e}=n,o=h(n,["className","children"]);let r=po.useContext(ea);return(0,Nt.jsx)(Et.Header,{children:(0,Nt.jsxs)(Et.Trigger,y(i({className:c("group w-full","text-[color:var(--accordion-text-title)]","text-[length:var(--accordion-font-size)]","font-[var(--accordion-font-weight)]","leading-[var(--accordion-line-height)]","tracking-[var(--accordion-letter-spacing)]","font-[var(--accordion-font-family)]","hover:text-[color:var(--accordion-hover-text)]","focus-visible:ring-2 focus-visible:ring-[--accordion-focus-border]",Nn({size:r}),t)},o),{children:[(0,Nt.jsx)("span",{className:"flex flex-1 items-center gap-2",children:e}),(0,Nt.jsx)(Rn.ChevronDownIcon,{className:`\r
|
|
120
|
+
text-[color:var(--accordion-icon-color)]\r
|
|
121
|
+
transition-transform\r
|
|
122
|
+
group-hover:text-[color:var(--accordion-hover-text)]\r
|
|
123
|
+
[&[data-state=open]]:rotate-90\r
|
|
124
|
+
`})]}))})}function cs(a){var n=a,{className:t,children:e}=n,o=h(n,["className","children"]);let r=po.useContext(ea);return(0,Nt.jsx)(Et.Content,y(i({className:c("group","text-[--accordion-text-content]","text-[length:var(--accordion-font-size)]","font-[400]","leading-[var(--accordion-line-height)]","tracking-[var(--accordion-letter-spacing)]","font-[var(--accordion-font-family)]",Fn({size:r}),t)},o),{children:(0,Nt.jsx)("div",{className:"pt-2 pb-4",children:e})}))}var An=O(require("react"),1);var jt=require("react/jsx-runtime"),ds={"--module-box-bg":{tokenPath:"backgroundColor",fallback:"#FFFFFF"},"--module-box-border":{tokenPath:"borderColor",fallback:"#E2E5E9"},"--module-box-radius":{tokenPath:"borderRadius",fallback:"16px"},"--module-box-padding":{tokenPath:"padding",fallback:"24px"},"--module-box-gap":{tokenPath:"gap",fallback:"24px"},"--module-box-header-gap":{tokenPath:"header.gap",fallback:"12px"},"--module-box-footer-gap":{tokenPath:"footer.gap",fallback:"12px"},"--module-box-slot-bg":{tokenPath:"slot.background",fallback:"#ECEAF3"},"--module-box-slot-border":{tokenPath:"slot.border",fallback:"#652BDF"},"--module-box-slot-radius":{tokenPath:"slot.borderRadius",fallback:"0px"},"--module-box-slot-padding":{tokenPath:"slot.padding",fallback:"24px"},"--module-box-slot-min-h":{tokenPath:"slot.minHeight",fallback:"112px"},"--module-box-slot-color":{tokenPath:"slot.color",fallback:"#3A3F4B"},"--module-box-title-color":{tokenPath:"title.color",fallback:"#020303"},"--module-box-title-font-size":{tokenPath:"title.fontSize",fallback:"18px"},"--module-box-title-font-weight":{tokenPath:"title.fontWeight",fallback:"550"},"--module-box-title-font-style":{tokenPath:"title.fontStyle",fallback:"normal"},"--module-box-title-line-height":{tokenPath:"lineHeight",fallback:"130%"},"--module-box-title-letter-spacing":{tokenPath:"letterSpacing",fallback:"-0.04em"},"--module-box-font-family":{tokenPath:"fontFamily",fallback:"'Inter', sans-serif"},"--module-box-line-height":{tokenPath:"lineHeight",fallback:"130%"},"--module-box-letter-spacing":{tokenPath:"letterSpacing",fallback:"-0.04em"}};function ps(b){var v=b,{className:t,title:e="Title",headerActions:o,footerActions:a,slotPlaceholder:n="Slot",tokens:r,headerClassName:l,slotClassName:s,footerClassName:p,children:f,style:u}=v,d=h(v,["className","title","headerActions","footerActions","slotPlaceholder","tokens","headerClassName","slotClassName","footerClassName","children","style"]);var B,M,C;let x=P("moduleBox",ds,{tokens:r,extra:u}),w=(M=(B=x==null?void 0:x.tokens)==null?void 0:B.title)==null?void 0:M.fontFamily,m=typeof w=="string"?w:(C=w==null?void 0:w.base)!=null?C:"inherit",z=y(i({},x.styles),{"--module-box-title-font-family":m,fontFamily:"var(--module-box-font-family)",lineHeight:"var(--module-box-line-height)",letterSpacing:"var(--module-box-letter-spacing)"}),T=An.Children.count(f)>0,E={};return T||(E.minHeight="var(--module-box-slot-min-h)"),(0,jt.jsx)("div",y(i({"data-slot":"module-box",style:z,className:c("w-full min-w-0 border rounded-[var(--module-box-radius)] bg-[var(--module-box-bg)] border-[var(--module-box-border)] p-[var(--module-box-padding)]",t)},d),{children:(0,jt.jsxs)("div",{className:"flex flex-col",style:{gap:"var(--module-box-gap)"},children:[(e||o)&&(0,jt.jsxs)("div",{className:c("flex items-center justify-between min-w-0",l),style:{gap:"var(--module-box-header-gap)"},children:[e&&(0,jt.jsx)("h3",{className:"truncate",style:{color:"var(--module-box-title-color)",fontFamily:"var(--module-box-title-font-family)",fontSize:"var(--module-box-title-font-size)",fontWeight:"var(--module-box-title-font-weight)",fontStyle:"var(--module-box-title-font-style)",lineHeight:"var(--module-box-title-line-height)",letterSpacing:"var(--module-box-title-letter-spacing)",verticalAlign:"middle"},children:e}),o&&(0,jt.jsx)("div",{className:"shrink-0",children:o})]}),(0,jt.jsx)("div",{"data-slot":"module-box-content",style:E,className:c("w-full border rounded-[var(--module-box-slot-radius)] border-[var(--module-box-slot-border)] bg-[var(--module-box-slot-bg)] p-[var(--module-box-slot-padding)] text-[var(--module-box-slot-color)]",!T&&"min-h-[var(--module-box-slot-min-h)] flex items-center justify-center text-center",s),children:T?f:n}),a&&(0,jt.jsx)("div",{className:c("flex items-center justify-end",p),style:{gap:"var(--module-box-footer-gap)"},children:a})]})}))}var xe=O(require("react"),1),U=require("recharts");var H=require("react/jsx-runtime"),fs={"--charts-bg":{tokenPath:"backgroundColor",fallback:"transparent"},"--charts-border":{tokenPath:"borderColor",fallback:"transparent"},"--charts-radius":{tokenPath:"borderRadius",fallback:"0px"},"--charts-padding":{tokenPath:"padding",fallback:"0px"},"--charts-title-color":{tokenPath:"title.color",fallback:"#020303"},"--charts-title-size":{tokenPath:"title.fontSize",fallback:"16px"},"--charts-title-weight":{tokenPath:"title.fontWeight",fallback:"550"},"--charts-subtitle-color":{tokenPath:"subtitle.color",fallback:"#6E7991"},"--charts-subtitle-size":{tokenPath:"subtitle.fontSize",fallback:"14px"},"--charts-subtitle-weight":{tokenPath:"subtitle.fontWeight",fallback:"400"},"--charts-grid-color":{tokenPath:"grid.color",fallback:"#E2E5E9"},"--charts-grid-dasharray":{tokenPath:"grid.dasharray",fallback:"0"},"--charts-axis-line-color":{tokenPath:"axis.lineColor",fallback:"#E2E5E9"},"--charts-axis-label-color":{tokenPath:"axis.labelColor",fallback:"#9DA5B5"},"--charts-axis-label-size":{tokenPath:"axis.fontSize",fallback:12},"--charts-baseline-width":{tokenPath:"baseline.strokeWidth",fallback:1},"--charts-baseline-dasharray":{tokenPath:"baseline.dasharray",fallback:"0"},"--charts-legend-color":{tokenPath:"legend.color",fallback:"#3A3F4B"},"--charts-legend-size":{tokenPath:"legend.fontSize",fallback:14},"--charts-legend-weight":{tokenPath:"legend.fontWeight",fallback:500},"--charts-legend-dot-size":{tokenPath:"legend.dotSize",fallback:10},"--charts-legend-gap":{tokenPath:"legend.gap",fallback:16},"--charts-tooltip-bg":{tokenPath:"tooltip.background",fallback:"#FFFFFF"},"--charts-tooltip-border":{tokenPath:"tooltip.borderColor",fallback:"#E2E5E9"},"--charts-tooltip-radius":{tokenPath:"tooltip.radius",fallback:"8px"},"--charts-tooltip-title":{tokenPath:"tooltip.titleColor",fallback:"#3A3F4B"},"--charts-tooltip-value":{tokenPath:"tooltip.valueColor",fallback:"#020303"},"--charts-tooltip-title-size":{tokenPath:"tooltip.titleFontSize",fallback:"12px"},"--charts-tooltip-title-weight":{tokenPath:"tooltip.titleFontWeight",fallback:550},"--charts-tooltip-value-size":{tokenPath:"tooltip.valueFontSize",fallback:"14px"},"--charts-tooltip-value-weight":{tokenPath:"tooltip.valueFontWeight",fallback:600},"--charts-line-stroke":{tokenPath:"line.stroke",fallback:"#652BDF"},"--charts-line-stroke-width":{tokenPath:"line.strokeWidth",fallback:2},"--charts-line-area-from":{tokenPath:"line.areaFrom",fallback:"#652BDF4D"},"--charts-line-area-to":{tokenPath:"line.areaTo",fallback:"#652BDF00"},"--charts-bar-radius":{tokenPath:"bar.radius",fallback:10},"--charts-bar-gap":{tokenPath:"bar.gap",fallback:8},"--charts-bar-category-gap":{tokenPath:"bar.categoryGap",fallback:"16%"},"--charts-pie-stroke":{tokenPath:"pie.strokeColor",fallback:"#FFFFFF"},"--charts-pie-stroke-width":{tokenPath:"pie.strokeWidth",fallback:2},"--charts-donut-center-value-color":{tokenPath:"donut.centerValueColor",fallback:"#3A3F4B"},"--charts-donut-center-value-size":{tokenPath:"donut.centerValueSize",fallback:"24px"},"--charts-donut-center-value-weight":{tokenPath:"donut.centerValueWeight",fallback:600},"--charts-donut-center-label-color":{tokenPath:"donut.centerLabelColor",fallback:"#9DA5B5"},"--charts-donut-center-label-size":{tokenPath:"donut.centerLabelSize",fallback:"12px"},"--charts-donut-center-label-weight":{tokenPath:"donut.centerLabelWeight",fallback:500},"--charts-empty-color":{tokenPath:"emptyState.color",fallback:"#9DA5B5"},"--charts-empty-size":{tokenPath:"emptyState.fontSize",fallback:"14px"},"--charts-empty-weight":{tokenPath:"emptyState.fontWeight",fallback:400},"--charts-empty-line-height":{tokenPath:"emptyState.lineHeight",fallback:"130%"},"--charts-empty-letter-spacing":{tokenPath:"emptyState.letterSpacing",fallback:"-0.04em"},"--charts-line-height":{tokenPath:"lineHeight",fallback:"130%"},"--charts-letter-spacing":{tokenPath:"letterSpacing",fallback:"-0.04em"},"--charts-font-family":{tokenPath:"fontFamily",fallback:"'Inter', sans-serif"}};function us(R){var S=R,{className:t,type:e="bar",data:o,title:a,subtitle:n,showLegend:r=!0,showGrid:l=!0,showBaseline:s=!0,showXAxis:p=!0,showYAxis:f=!1,showTooltip:u=!0,height:d,donutCenterValue:b,donutCenterLabel:v,legendTitle:x,valueFormatter:w=D=>`${D}`,xDataKey:m="label",yDataKey:z="value",nameKey:T="label",showLineArea:E=!0,emptyStateLabel:B="No data",tokens:M,style:C}=S,k=h(S,["className","type","data","title","subtitle","showLegend","showGrid","showBaseline","showXAxis","showYAxis","showTooltip","height","donutCenterValue","donutCenterLabel","legendTitle","valueFormatter","xDataKey","yDataKey","nameKey","showLineArea","emptyStateLabel","tokens","style"]);var Yt,Zt,qt,Jt,Qt,te,ee,oe,ae,ne,re,ie,se,le,ce,de,pe,fe,Qe,to,eo;let D=xe.useRef(null),[I,N]=xe.useState({width:0,height:0}),F=(K,nt)=>{if(typeof K=="number"&&Number.isFinite(K))return K;if(typeof K=="string"){let tt=parseFloat(K);return Number.isFinite(tt)?tt:nt}return nt},g=P("charts",fs,{tokens:M,extra:C}),Y=`charts-line-gradient-${xe.useId()}`,at=d!=null?d:F((Yt=g==null?void 0:g.tokens)==null?void 0:Yt.height,260),dt=I.width>0&&I.height>0,ot=I.width,ht=I.height;xe.useEffect(()=>{let K=D.current;if(!K)return;let nt=()=>{let et=K.getBoundingClientRect();N({width:Math.max(0,Math.floor(et.width)),height:Math.max(0,Math.floor(et.height))})};nt();let tt=new ResizeObserver(()=>nt());return tt.observe(K),()=>tt.disconnect()},[at]);let A=y(i({},g.styles),{"--charts-baseline-color":(ee=(te=(qt=(Zt=g==null?void 0:g.tokens)==null?void 0:Zt.baseline)==null?void 0:qt.color)!=null?te:(Qt=(Jt=g==null?void 0:g.tokens)==null?void 0:Jt.axis)==null?void 0:Qt.lineColor)!=null?ee:"#E2E5E9",fontFamily:"var(--charts-font-family)",lineHeight:"var(--charts-line-height)",letterSpacing:"var(--charts-letter-spacing)"}),Ft=["#D8CFF3","#9A7BDB","#652BDF","#421B97","#1F0A4D"],xt=(ce=e==="line"?(ae=(oe=g==null?void 0:g.tokens)==null?void 0:oe.line)==null?void 0:ae.palette:e==="bar"?(re=(ne=g==null?void 0:g.tokens)==null?void 0:ne.bar)==null?void 0:re.palette:(se=(ie=g==null?void 0:g.tokens)==null?void 0:ie.pie)==null?void 0:se.palette)!=null?ce:(le=g==null?void 0:g.tokens)==null?void 0:le.palette,Ct=Array.isArray(xt)&&xt.length?xt:Ft,Pt=(K,nt)=>{var tt;return(tt=K.color)!=null?tt:Ct[nt%Ct.length]},Xt=o.map((K,nt)=>{var tt,et;return{label:String((et=(tt=K==null?void 0:K[m])!=null?tt:K==null?void 0:K.label)!=null?et:""),color:Pt(K,nt)}}),It=({active:K,payload:nt,label:tt})=>{var ue,ge,he,kt;if(!K||!(nt!=null&&nt.length))return null;let et=nt[0],Ne=F(et==null?void 0:et.value,0),Fe=(kt=(he=tt!=null?tt:(ue=et==null?void 0:et.payload)==null?void 0:ue[m])!=null?he:(ge=et==null?void 0:et.payload)==null?void 0:ge[T])!=null?kt:"";return(0,H.jsxs)("div",{className:"px-3 py-2 border shadow-sm",style:{background:"var(--charts-tooltip-bg)",borderColor:"var(--charts-tooltip-border)",borderRadius:"var(--charts-tooltip-radius)"},children:[(0,H.jsx)("p",{style:{color:"var(--charts-tooltip-title)",fontSize:"var(--charts-tooltip-title-size, 12px)",fontWeight:"var(--charts-tooltip-title-weight, 550)",fontFamily:"var(--charts-font-family)",lineHeight:"var(--charts-line-height)",letterSpacing:"var(--charts-letter-spacing)"},children:Fe}),(0,H.jsx)("p",{style:{color:"var(--charts-tooltip-value)",fontSize:"var(--charts-tooltip-value-size, 14px)",fontWeight:"var(--charts-tooltip-value-weight, 600)",fontFamily:"var(--charts-font-family)",lineHeight:"var(--charts-line-height)",letterSpacing:"var(--charts-letter-spacing)"},children:w(Ne)})]})},Re=(()=>{var tt,et,Ne,Fe,ue,ge,he,kt,mo,ca,da,pa,fa,ua,ga,ha,ba,ma,ka,va,ya,xa,Pa,wa,Sa,za,Ca,Ta,Ra,Na,Fa,Aa,Ba,Ea,Ma,Da,Wa,Ha,Ia,_a,La,Oa,Va,Ga,$a,ja,Ua,Ka,Xa,Ya,Za,qa;if(!(o!=null&&o.length))return(0,H.jsx)("div",{className:"h-full w-full flex items-center justify-center",style:{color:"var(--charts-empty-color)",fontSize:"var(--charts-empty-size)",fontWeight:"var(--charts-empty-weight, 400)",lineHeight:"var(--charts-empty-line-height)",letterSpacing:"var(--charts-empty-letter-spacing)",fontFamily:"var(--charts-font-family)"},children:B});if(!dt)return(0,H.jsx)("div",{style:{height:at,width:"100%"}});if(e==="bar")return(0,H.jsxs)(U.BarChart,{width:ot,height:ht,data:o,barGap:F((et=(tt=g==null?void 0:g.tokens)==null?void 0:tt.bar)==null?void 0:et.gap,8),barCategoryGap:String((ue=(Fe=(Ne=g==null?void 0:g.tokens)==null?void 0:Ne.bar)==null?void 0:Fe.categoryGap)!=null?ue:"16%"),children:[l&&(0,H.jsx)(U.CartesianGrid,{stroke:"var(--charts-grid-color)",strokeDasharray:String((kt=(he=(ge=g==null?void 0:g.tokens)==null?void 0:ge.grid)==null?void 0:he.dasharray)!=null?kt:"0"),vertical:!1}),p&&(0,H.jsx)(U.XAxis,{dataKey:m,axisLine:{stroke:"var(--charts-axis-line-color)"},tickLine:!1,tick:{fill:"var(--charts-axis-label-color)",fontSize:F((ca=(mo=g==null?void 0:g.tokens)==null?void 0:mo.axis)==null?void 0:ca.fontSize,12),fontFamily:"var(--charts-font-family)",letterSpacing:"var(--charts-letter-spacing)"}}),f&&(0,H.jsx)(U.YAxis,{axisLine:{stroke:"var(--charts-axis-line-color)"},tickLine:!1,tick:{fill:"var(--charts-axis-label-color)",fontSize:F((pa=(da=g==null?void 0:g.tokens)==null?void 0:da.axis)==null?void 0:pa.fontSize,12),fontFamily:"var(--charts-font-family)",letterSpacing:"var(--charts-letter-spacing)"}}),s&&(0,H.jsx)(U.ReferenceLine,{y:0,stroke:"var(--charts-baseline-color)",strokeWidth:F((ua=(fa=g==null?void 0:g.tokens)==null?void 0:fa.baseline)==null?void 0:ua.strokeWidth,1),strokeDasharray:String((ba=(ha=(ga=g==null?void 0:g.tokens)==null?void 0:ga.baseline)==null?void 0:ha.dasharray)!=null?ba:"0"),ifOverflow:"visible"}),u&&(0,H.jsx)(U.Tooltip,{cursor:!1,content:It}),(0,H.jsx)(U.Bar,{dataKey:z,radius:F((ka=(ma=g==null?void 0:g.tokens)==null?void 0:ma.bar)==null?void 0:ka.radius,10),maxBarSize:F((ya=(va=g==null?void 0:g.tokens)==null?void 0:va.bar)==null?void 0:ya.maxBarSize,56),children:o.map((oo,ao)=>(0,H.jsx)(U.Cell,{fill:Pt(oo,ao)},`${oo.label}-${ao}`))})]});if(e==="line")return(0,H.jsxs)(U.AreaChart,{width:ot,height:ht,data:o,children:[(0,H.jsx)("defs",{children:(0,H.jsxs)("linearGradient",{id:Y,x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,H.jsx)("stop",{offset:"0%",stopColor:"var(--charts-line-area-from)"}),(0,H.jsx)("stop",{offset:"100%",stopColor:"var(--charts-line-area-to)"})]})}),l&&(0,H.jsx)(U.CartesianGrid,{stroke:"var(--charts-grid-color)",strokeDasharray:String((wa=(Pa=(xa=g==null?void 0:g.tokens)==null?void 0:xa.grid)==null?void 0:Pa.dasharray)!=null?wa:"0"),vertical:!1}),p&&(0,H.jsx)(U.XAxis,{dataKey:m,axisLine:{stroke:"var(--charts-axis-line-color)"},tickLine:!1,tick:{fill:"var(--charts-axis-label-color)",fontSize:F((za=(Sa=g==null?void 0:g.tokens)==null?void 0:Sa.axis)==null?void 0:za.fontSize,12),fontFamily:"var(--charts-font-family)",letterSpacing:"var(--charts-letter-spacing)"}}),f&&(0,H.jsx)(U.YAxis,{axisLine:{stroke:"var(--charts-axis-line-color)"},tickLine:!1,tick:{fill:"var(--charts-axis-label-color)",fontSize:F((Ta=(Ca=g==null?void 0:g.tokens)==null?void 0:Ca.axis)==null?void 0:Ta.fontSize,12),fontFamily:"var(--charts-font-family)",letterSpacing:"var(--charts-letter-spacing)"}}),s&&(0,H.jsx)(U.ReferenceLine,{y:0,stroke:"var(--charts-baseline-color)",strokeWidth:F((Na=(Ra=g==null?void 0:g.tokens)==null?void 0:Ra.baseline)==null?void 0:Na.strokeWidth,1),strokeDasharray:String((Ba=(Aa=(Fa=g==null?void 0:g.tokens)==null?void 0:Fa.baseline)==null?void 0:Aa.dasharray)!=null?Ba:"0"),ifOverflow:"visible"}),u&&(0,H.jsx)(U.Tooltip,{cursor:!1,content:It}),(0,H.jsx)(U.Area,{type:(Da=(Ma=(Ea=g==null?void 0:g.tokens)==null?void 0:Ea.line)==null?void 0:Ma.curveType)!=null?Da:"monotone",dataKey:z,stroke:"var(--charts-line-stroke)",strokeWidth:F((Ha=(Wa=g==null?void 0:g.tokens)==null?void 0:Wa.line)==null?void 0:Ha.strokeWidth,2),fill:E?`url(#${Y})`:"transparent",dot:!1,activeDot:{r:F((_a=(Ia=g==null?void 0:g.tokens)==null?void 0:Ia.line)==null?void 0:_a.activeDotRadius,4),fill:"var(--charts-line-stroke)"}})]});let K=e==="donut"?F((Oa=(La=g==null?void 0:g.tokens)==null?void 0:La.donut)==null?void 0:Oa.innerRadius,52):F((Ga=(Va=g==null?void 0:g.tokens)==null?void 0:Va.pie)==null?void 0:Ga.innerRadius,0),nt=F(e==="donut"?(ja=($a=g==null?void 0:g.tokens)==null?void 0:$a.donut)==null?void 0:ja.outerRadius:(Ka=(Ua=g==null?void 0:g.tokens)==null?void 0:Ua.pie)==null?void 0:Ka.outerRadius,72);return(0,H.jsxs)("div",{className:"relative h-full w-full",children:[(0,H.jsxs)(U.PieChart,{width:ot,height:ht,children:[u&&(0,H.jsx)(U.Tooltip,{content:It}),(0,H.jsx)(U.Pie,{data:o,dataKey:z,nameKey:T,cx:"50%",cy:"50%",innerRadius:K,outerRadius:nt,paddingAngle:F((Ya=(Xa=g==null?void 0:g.tokens)==null?void 0:Xa.pie)==null?void 0:Ya.paddingAngle,0),stroke:"var(--charts-pie-stroke)",strokeWidth:F((qa=(Za=g==null?void 0:g.tokens)==null?void 0:Za.pie)==null?void 0:qa.strokeWidth,2),children:o.map((oo,ao)=>(0,H.jsx)(U.Cell,{fill:Pt(oo,ao)},`${oo.label}-${ao}`))})]}),e==="donut"&&(0,H.jsxs)("div",{className:"pointer-events-none absolute inset-0 flex flex-col items-center justify-center",children:[b&&(0,H.jsx)("div",{style:{color:"var(--charts-donut-center-value-color)",fontSize:"var(--charts-donut-center-value-size)",fontWeight:"var(--charts-donut-center-value-weight, 600)",fontFamily:"var(--charts-font-family)",lineHeight:"var(--charts-line-height)",letterSpacing:"var(--charts-letter-spacing)"},children:b}),v&&(0,H.jsx)("div",{style:{color:"var(--charts-donut-center-label-color)",fontSize:"var(--charts-donut-center-label-size)",fontWeight:"var(--charts-donut-center-label-weight, 500)",marginTop:4,fontFamily:"var(--charts-font-family)",lineHeight:"var(--charts-line-height)",letterSpacing:"var(--charts-letter-spacing)"},children:v})]})]})})();return(0,H.jsxs)("div",y(i({"data-slot":"charts",style:A,className:c("w-full min-w-0 border rounded-[var(--charts-radius)] bg-[var(--charts-bg)] border-[var(--charts-border)] p-[var(--charts-padding)]",t)},k),{children:[(a||n)&&(0,H.jsxs)("div",{className:"mb-4",children:[a&&(0,H.jsx)("p",{style:{color:"var(--charts-title-color)",fontSize:"var(--charts-title-size)",fontWeight:Number((fe=(pe=(de=g==null?void 0:g.tokens)==null?void 0:de.title)==null?void 0:pe.fontWeight)!=null?fe:550),fontFamily:"var(--charts-font-family)",lineHeight:"var(--charts-line-height)",letterSpacing:"var(--charts-letter-spacing)"},children:a}),n&&(0,H.jsx)("p",{className:"mt-1",style:{color:"var(--charts-subtitle-color)",fontSize:"var(--charts-subtitle-size)",fontWeight:Number((eo=(to=(Qe=g==null?void 0:g.tokens)==null?void 0:Qe.subtitle)==null?void 0:to.fontWeight)!=null?eo:400),fontFamily:"var(--charts-font-family)",lineHeight:"var(--charts-line-height)",letterSpacing:"var(--charts-letter-spacing)"},children:n})]}),(0,H.jsx)("div",{ref:D,style:{height:at,width:"100%"},children:Re}),r&&Xt.length>0&&(0,H.jsxs)("div",{className:"mt-4 flex flex-wrap items-center justify-center gap-[var(--charts-legend-gap)]",children:[x&&(0,H.jsx)("span",{style:{color:"var(--charts-legend-color)",fontSize:"var(--charts-legend-size)",fontWeight:"var(--charts-legend-weight, 500)",fontFamily:"var(--charts-font-family)",lineHeight:"var(--charts-line-height)",letterSpacing:"var(--charts-letter-spacing)"},children:x}),Xt.map(K=>(0,H.jsxs)("div",{className:"inline-flex items-center gap-2",children:[(0,H.jsx)("span",{className:"inline-block rounded-[2px]",style:{backgroundColor:K.color,width:"var(--charts-legend-dot-size)",height:"var(--charts-legend-dot-size)"}}),(0,H.jsx)("span",{style:{color:"var(--charts-legend-color)",fontSize:"var(--charts-legend-size)",fontWeight:"var(--charts-legend-weight, 500)",fontFamily:"var(--charts-font-family)",lineHeight:"var(--charts-line-height)",letterSpacing:"var(--charts-letter-spacing)"},children:K.label})]},K.label))]})]}))}var Ge=require("lucide-react"),Bo=O(require("react"),1),Eo=require("react-day-picker");var fo=require("react/jsx-runtime"),gs={"--calendar-bg":{tokenPath:"background",fallback:"#FFFFFF"},"--calendar-text":{tokenPath:"text",fallback:"#020303"},"--calendar-muted":{tokenPath:"muted",fallback:"#6E7991"},"--calendar-radius":{tokenPath:"radius",fallback:"12px"},"--calendar-border":{tokenPath:"border",fallback:"#E2E5E9"},"--calendar-item-size":{tokenPath:"item.size",fallback:"32px"},"--calendar-item-radius":{tokenPath:"item.radius",fallback:"8px"},"--calendar-item-hover-bg":{tokenPath:"item.hover.background",fallback:"#E2E5E9"},"--calendar-item-current-bg":{tokenPath:"item.current.background",fallback:"#E2E5E9"},"--calendar-item-active-bg":{tokenPath:"item.active.background",fallback:"#652BDF"},"--calendar-item-active-text":{tokenPath:"item.active.color",fallback:"#FFFFFF"}};function hs(p){var f=p,{className:t,classNames:e,showOutsideDays:o=!0,captionLayout:a="label",tokens:n,formatters:r,components:l}=f,s=h(f,["className","classNames","showOutsideDays","captionLayout","tokens","formatters","components"]);var v,x,w,m,z,T;let u=(0,Eo.getDefaultClassNames)(),d=P("calendar",gs,{tokens:n}),b=y(i({},d.styles),{fontFamily:(x=(v=d==null?void 0:d.tokens)==null?void 0:v.fontFamily)!=null?x:"'Inter', sans-serif",lineHeight:(m=(w=d==null?void 0:d.tokens)==null?void 0:w.lineHeight)!=null?m:"130%",letterSpacing:(T=(z=d==null?void 0:d.tokens)==null?void 0:z.letterSpacing)!=null?T:"-0.04em"});return(0,fo.jsx)("div",{"data-slot":"calendar",style:b||u,className:"w-fit",children:(0,fo.jsx)(Eo.DayPicker,i({showOutsideDays:o,captionLayout:a,formatters:i({formatMonthDropdown:E=>E.toLocaleString("default",{month:"short"})},r),className:c("p-3 rounded-[var(--calendar-radius)] border border-[var(--calendar-border)]","bg-[var(--calendar-bg)] text-[var(--calendar-text)]",t),classNames:i({months:"flex gap-4 flex-col relative",month:"flex flex-col gap-4",nav:"flex items-center justify-between absolute top-0 inset-x-0 w-full",button_previous:c(so({variant:"neutral"}),"size-8 p-0 hover:bg-[var(--calendar-item-hover-bg)]"),button_next:c(so({variant:"neutral"}),"size-8 p-0 hover:bg-[var(--calendar-item-hover-bg)]"),month_caption:"flex items-center justify-center h-8 w-full",caption_label:"text-sm font-semibold select-none",table:"w-full border-collapse",weekdays:"flex mb-2",weekday:"flex-1 text-center text-[10px] font-bold uppercase text-[var(--calendar-muted)]",week:"flex w-full mt-1",day:"p-0 flex justify-center items-center",today:"[&:not([data-selected])]:bg-[var(--calendar-item-current-bg)]",outside:"opacity-30",disabled:"opacity-10"},e),components:i({Chevron:C=>{var k=C,{orientation:E,className:B}=k,M=h(k,["orientation","className"]);return(0,fo.jsx)(E==="left"?Ge.ChevronLeftIcon:E==="right"?Ge.ChevronRightIcon:Ge.ChevronDownIcon,i({className:c("size-4",B)},M))},DayButton:bs},l)},s))})}function bs(n){var r=n,{className:t,day:e,modifiers:o}=r,a=h(r,["className","day","modifiers"]);let l=Bo.useRef(null);return Bo.useEffect(()=>{var s;o.focused&&((s=l.current)==null||s.focus())},[o.focused]),(0,fo.jsx)("button",i({ref:l,type:"button","data-selected":o.selected,"data-today":o.today,className:c("flex items-center justify-center transition-all outline-none cursor-pointer","w-[var(--calendar-item-size)] h-[var(--calendar-item-size)] rounded-[var(--calendar-item-radius)]","text-sm font-medium","hover:bg-[var(--calendar-item-hover-bg)]","data-[today=true]:bg-[var(--calendar-item-current-bg)]","data-[selected=true]:bg-[var(--calendar-item-active-bg)]","data-[selected=true]:text-[var(--calendar-item-active-text)]","data-[selected=true]:hover:bg-[var(--calendar-item-active-bg)]","focus-visible:ring-2 focus-visible:ring-[var(--calendar-item-active-bg)] focus-visible:ring-offset-2",t)},a))}var $e=O(require("@radix-ui/react-popover"),1);var Mo=require("lucide-react"),Ut=O(require("react"),1);var st=require("react/jsx-runtime"),ms="ui-input w-full outline-none",ks=V(ms,{variants:{},defaultVariants:{size:"medium"}});function vs({value:t,onValueChange:e,placeholder:o="Seleccionar...",items:a,label:n,size:r="medium",error:l=!1,disabled:s,tokens:p,className:f,open:u,onOpenChange:d,closeOnSelect:b=!0,searchPlaceholder:v="Buscar...",searchRef:x}){var I;let w=P("select",ft,{tokens:p,size:r}),m=W(w.tokens,"sizes",r),z=i(i({},w.styles),ut(m)),[T,E]=Ut.useState(!1),B=u!==void 0,M=B?u:T,C=Ut.useCallback(N=>{B||E(N),d==null||d(N)},[B,d]),[k,R]=Ut.useState(""),S=a.find(N=>N.value===t),D=Ut.useMemo(()=>{if(!k.trim())return a;let N=k.toLowerCase();return a.filter(F=>F.label.toLowerCase().includes(N))},[a,k]);return Ut.useEffect(()=>{M||R("")},[M]),(0,st.jsx)($e.Root,{open:M,onOpenChange:C,children:(0,st.jsxs)("div",{style:z,children:[n&&(0,st.jsx)("label",{className:"ui-input-label",children:n}),(0,st.jsx)($e.Trigger,{asChild:!0,children:(0,st.jsxs)("button",{disabled:s,"data-error":l?"true":"false",className:c(ks(),"group w-full inline-flex items-center justify-between",f),children:[(0,st.jsx)("span",{className:"truncate",children:(I=S==null?void 0:S.label)!=null?I:o}),(0,st.jsx)(Mo.ChevronsUpDown,{className:`\r
|
|
125
|
+
h-4 w-4 shrink-0 ui-input-icon\r
|
|
126
|
+
`})]})}),(0,st.jsxs)($e.Content,{align:"start",sideOffset:4,className:`\r
|
|
127
|
+
z-50 rounded-md border border-[--border-default]\r
|
|
128
|
+
bg-white shadow-lg p-1\r
|
|
129
|
+
`,style:{width:"var(--radix-popover-trigger-width)"},onOpenAutoFocus:N=>N.preventDefault(),children:[(0,st.jsxs)("div",{className:"flex items-center gap-2 px-2 pb-1 border-b border-[--border-default]",children:[(0,st.jsx)(Mo.Search,{className:"h-4 w-4 shrink-0 opacity-50"}),(0,st.jsx)("input",{ref:x,value:k,onChange:N=>R(N.target.value),placeholder:v,className:"flex h-8 w-full bg-transparent text-[length:var(--input-font-size)] outline-none placeholder:opacity-50"})]}),(0,st.jsxs)("ul",{className:"max-h-60 overflow-auto",children:[D.length===0&&(0,st.jsx)("li",{className:"h-10 px-3 flex items-center text-[length:var(--input-font-size)] opacity-50",children:"Sin resultados"}),D.map(N=>(0,st.jsx)("li",{onClick:()=>{e==null||e(N.value),b&&C(!1)},className:`\r
|
|
130
|
+
flex items-center justify-between\r
|
|
131
|
+
text-[length:var(--input-font-size)] font-[var(--input-font-weight)]\r
|
|
132
|
+
h-10 px-3 rounded-[--input-radius] cursor-pointer\r
|
|
133
|
+
bg-[--input-bg]\r
|
|
134
|
+
hover:bg-[--input-hover-bg]\r
|
|
135
|
+
border-[--input-hover-border]\r
|
|
136
|
+
box-shadow-[0px_2px_4px_-1px_#0000000F,0px_4px_6px_-1px_#0000001A]\r
|
|
137
|
+
`,children:(0,st.jsx)("span",{children:N.label})},N.value))]})]})]})})}var Bn=require("lucide-react"),En=O(require("react"),1);var Pe=require("react/jsx-runtime"),ys="ui-input w-full outline-none",xs=V(ys,{variants:{},defaultVariants:{size:"medium"}});function Ps(f){var u=f,{className:t,size:e="medium",label:o,helperText:a,error:n=!1,disabled:r,tokens:l,style:s}=u,p=h(u,["className","size","label","helperText","error","disabled","tokens","style"]);var m;let d=En.useRef(null),b=!!((m=p.value)!=null?m:p.defaultValue),v=P("input",ft,{tokens:l,size:e,extra:s}),x=W(v.tokens,"sizes",e),w=i(i({},v.styles),ut(x));return(0,Pe.jsxs)("div",{className:"flex flex-col gap-1.5 w-full",style:w,children:[o&&(0,Pe.jsx)("label",{className:"ui-input-label",children:o}),(0,Pe.jsxs)("div",{className:"relative",children:[(0,Pe.jsx)("input",i({ref:d,type:"text",style:w,"data-filled":b?"true":"false",disabled:r,"data-error":n?"true":"false",className:c(xs(),t,"text-left")},p)),(0,Pe.jsx)("div",{className:c("absolute right-2 inset-y-0 flex items-center justify-center",r&&"pointer-events-none"),children:(0,Pe.jsx)(Bn.Calendar,{className:"ui-input-icon"})})]})]})}var je=require("react/jsx-runtime"),ws="ui-input w-full outline-none",Ss=V(ws,{variants:{},defaultVariants:{size:"medium"}});function zs(u){var d=u,{className:t,type:e,size:o="medium",label:a,helperText:n,error:r=!1,disabled:l,tokens:s,style:p}=d,f=h(d,["className","type","size","label","helperText","error","disabled","tokens","style"]);var m;let b=!!((m=f.value)!=null?m:f.defaultValue),v=P("input",ft,{tokens:s,size:o,extra:p}),x=W(v.tokens,"sizes",o),w=i(i({},v.styles),ut(x));return(0,je.jsxs)("div",{className:"flex flex-col gap-1.5 w-full",style:w,children:[a&&(0,je.jsx)("label",{className:"ui-input-label",children:a}),(0,je.jsx)("input",i({disabled:l,"data-error":r?"true":"false","data-filled":b?"true":"false",className:c(Ss(),t)},f)),n&&(0,je.jsx)("span",{className:r?"ui-input-helper-error":"ui-input-helper",children:n})]})}var Mn=O(require("@radix-ui/react-label"),1);var Dn=require("react/jsx-runtime"),Cs={"--lbl-size":{tokenPath:"fontSize",fallback:"14px"},"--lbl-color":{tokenPath:"color",fallback:"inherit"},"--lbl-weight":{tokenPath:"fontWeight",fallback:"500"},"--lbl-padding":{tokenPath:"padding",fallback:"0px"},"--lbl-family":{tokenPath:"fontFamily",fallback:"'Inter', sans-serif"},"--lbl-line-height":{tokenPath:"lineHeight",fallback:"130%"},"--lbl-letter-spacing":{tokenPath:"letterSpacing",fallback:"-0.04em"}};function Ts(n){var r=n,{className:t,tokens:e,style:o}=r,a=h(r,["className","tokens","style"]);let l=P("label",Cs,{tokens:e,extra:o});return(0,Dn.jsx)(Mn.Root,i({"data-slot":"label",style:l.styles,className:c("block w-auto select-none transition-colors","items-center gap-2","text-[length:var(--lbl-size)] text-[var(--lbl-color)] font-[var(--lbl-weight)] p-[var(--lbl-padding)]","font-[family-name:var(--lbl-family)] leading-[var(--lbl-line-height)] tracking-[var(--lbl-letter-spacing)]","group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50","peer-disabled:cursor-not-allowed peer-disabled:opacity-50",t)},a))}var Do=require("lucide-react"),Wn=O(require("react"),1);var Mt=require("react/jsx-runtime"),Rs="ui-input w-full outline-none",Ns=V(Rs,{variants:{},defaultVariants:{size:"medium"}});function Fs(f){var u=f,{className:t,size:e="medium",label:o,helperText:a,error:n=!1,disabled:r,tokens:l,style:s}=u,p=h(u,["className","size","label","helperText","error","disabled","tokens","style"]);var z;let d=Wn.useRef(null),b=!!((z=p.value)!=null?z:p.defaultValue),v=P("input",ft,{tokens:l,size:e,extra:s}),x=W(v.tokens,"sizes",e),w=i(i({},v.styles),ut(x)),m=()=>{d.current&&(d.current.type=d.current.type==="password"?"text":"password")};return(0,Mt.jsxs)("div",{className:"flex flex-col gap-1.5 w-full",style:w,children:[o&&(0,Mt.jsx)("label",{className:"ui-input-label",children:o}),(0,Mt.jsxs)("div",{className:"relative",children:[(0,Mt.jsx)("input",i({ref:d,"data-filled":b?"true":"false",type:"password",disabled:r,"data-error":n?"true":"false",className:c(Ns(),t)},p)),(0,Mt.jsxs)("button",{type:"button",tabIndex:-1,disabled:r,onClick:m,className:"ui-password-toggle absolute right-2 inset-y-0 flex items-center justify-center",children:[(0,Mt.jsx)(Do.Eye,{className:"ui-eye ui-input-icon"}),(0,Mt.jsx)(Do.EyeOff,{className:"ui-eye-off ui-input-icon"})]})]}),a&&(0,Mt.jsx)("span",{className:n?"ui-input-helper-error":"ui-input-helper",children:a})]})}var Wo=require("lucide-react"),oa=O(require("react"),1);var we=require("react/jsx-runtime"),As="ui-input w-full outline-none pl-[44px] pr-[44px]",Bs=V(As,{variants:{},defaultVariants:{size:"medium"}});function Es(s){var p=s,{className:t,size:e="medium",disabled:o,tokens:a,error:n=!1,style:r}=p,l=h(p,["className","size","disabled","tokens","error","style"]);var z;let f=oa.useRef(null),u=oa.useRef(null),d=!!((z=l.value)!=null?z:l.defaultValue),b=P("input",ft,{tokens:a,size:e,extra:r}),v=W(b.tokens,"sizes",e),x=i(i({},b.styles),ut(v)),w=()=>{var T;f.current&&(f.current.value="",f.current.focus(),(T=u.current)==null||T.classList.add("hidden"))},m=()=>{!f.current||!u.current||u.current.classList.toggle("hidden",f.current.value.length===0)};return(0,we.jsxs)("div",{className:"relative w-full",style:x,children:[(0,we.jsx)("div",{className:c("absolute inset-y-0 left-[12px] flex items-center pointer-events-none",o&&"text-[--color-text-disabled] "),children:(0,we.jsx)(Wo.Search,{className:"ui-input-icon"})}),(0,we.jsx)("input",i({ref:f,"data-filled":d?"true":"false",type:"text",disabled:o,"data-error":n?"true":"false",onInput:m,style:x,className:c(Bs(),t)},l)),(0,we.jsx)("button",{ref:u,type:"button",tabIndex:-1,disabled:o,onClick:w,className:"absolute right-2 inset-y-0 flex items-center justify-center",children:(0,we.jsx)(Wo.X,{className:"ui-input-icon"})})]})}var Ue=O(require("@radix-ui/react-popover"),1);var Ho=require("lucide-react"),Kt=O(require("react"),1);var lt=require("react/jsx-runtime"),Ms="ui-input w-full outline-none",Ds=V(Ms,{variants:{},defaultVariants:{size:"medium"}});function Ws({value:t,onValueChange:e,placeholder:o="Seleccionar...",items:a,label:n,size:r="medium",error:l=!1,disabled:s,tokens:p,className:f,open:u,onOpenChange:d,closeOnSelect:b=!0,searchable:v=!1,searchPlaceholder:x="Buscar...",searchRef:w}){var N;let m=P("select",ft,{tokens:p,size:r}),z=W(m.tokens,"sizes",r),T=i(i({},m.styles),ut(z)),[E,B]=Kt.useState(!1),M=u!==void 0,C=M?u:E,k=Kt.useCallback(F=>{M||B(F),d==null||d(F)},[M,d]),R=a.find(F=>F.value===t),[S,D]=Kt.useState(""),I=Kt.useMemo(()=>{if(!v||!S.trim())return a;let F=S.toLowerCase();return a.filter(g=>g.label.toLowerCase().includes(F))},[a,S,v]);return Kt.useEffect(()=>{C||D("")},[C]),(0,lt.jsx)(Ue.Root,{open:C,onOpenChange:k,children:(0,lt.jsxs)("div",{style:T,children:[n&&(0,lt.jsx)("label",{className:"ui-input-label",children:n}),(0,lt.jsx)(Ue.Trigger,{asChild:!0,children:(0,lt.jsxs)("button",{disabled:s,"data-error":l?"true":"false",className:c(Ds(),"group w-full inline-flex items-center justify-between",f),children:[(0,lt.jsx)("span",{className:"truncate",children:(N=R==null?void 0:R.label)!=null?N:o}),(0,lt.jsx)(Ho.ChevronDownIcon,{className:`\r
|
|
138
|
+
shrink-0 ui-input-icon\r
|
|
139
|
+
transition-transform duration-200\r
|
|
140
|
+
group-data-[state=open]:rotate-90\r
|
|
141
|
+
`})]})}),(0,lt.jsxs)(Ue.Content,{align:"start",sideOffset:4,className:`\r
|
|
142
|
+
z-50 rounded-md border border-[--border-default]\r
|
|
143
|
+
bg-white shadow-lg p-1\r
|
|
144
|
+
`,style:{width:"var(--radix-popover-trigger-width)"},onOpenAutoFocus:v?F=>F.preventDefault():void 0,children:[v&&(0,lt.jsxs)("div",{className:"flex items-center gap-2 px-2 pb-1 border-b border-[--border-default]",children:[(0,lt.jsx)(Ho.Search,{className:"h-4 w-4 shrink-0 opacity-50"}),(0,lt.jsx)("input",{ref:w,value:S,onChange:F=>D(F.target.value),placeholder:x,className:"flex h-8 w-full bg-transparent text-[length:var(--input-font-size)] outline-none placeholder:opacity-50"})]}),(0,lt.jsxs)("ul",{className:"max-h-60 overflow-auto",children:[I.length===0&&(0,lt.jsx)("li",{className:"h-10 px-3 flex items-center text-[length:var(--input-font-size)] opacity-50",children:"Sin resultados"}),I.map(F=>(0,lt.jsx)("li",{onClick:()=>{e==null||e(F.value),b&&k(!1)},className:`\r
|
|
145
|
+
flex items-center justify-between\r
|
|
146
|
+
text-[length:var(--input-font-size)] font-[var(--input-font-weight)]\r
|
|
147
|
+
h-10 px-3 rounded-[--input-radius] cursor-pointer\r
|
|
148
|
+
bg-[--input-bg]\r
|
|
149
|
+
hover:bg-[--input-hover-bg]\r
|
|
150
|
+
border-[--input-hover-border]\r
|
|
151
|
+
box-shadow-[0px_2px_4px_-1px_#0000000F,0px_4px_6px_-1px_#0000001A]\r
|
|
152
|
+
`,children:(0,lt.jsx)("span",{children:F.label})},F.value))]})]})]})})}var Ke=require("react/jsx-runtime"),Hs="ui-input w-full min-h-16 outline-none resize-y",Is=V(Hs,{variants:{},defaultVariants:{size:"medium"}});function _s(f){var u=f,{className:t,style:e,tokens:o,size:a="medium",label:n,helperText:r,error:l=!1,disabled:s}=u,p=h(u,["className","style","tokens","size","label","helperText","error","disabled"]);var w;let d=!!((w=p.value)!=null?w:p.defaultValue),b=P("input",ft,{tokens:o,size:a,extra:e}),v=W(b.tokens,"sizes",a),x=i(i({},b.styles),ut(v));return(0,Ke.jsxs)("div",{className:"flex flex-col gap-1.5 w-full",style:x,children:[n&&(0,Ke.jsx)("label",{className:"ui-input-label",children:n}),(0,Ke.jsx)("textarea",i({"data-slot":"textarea",disabled:s,"data-error":l?"true":"false",style:x,"data-filled":d?"true":"false","aria-invalid":l,className:c(Is(),t)},p)),r&&(0,Ke.jsx)("span",{className:l?"ui-input-helper-error":"ui-input-helper",children:r})]})}var Io=O(require("@radix-ui/react-checkbox"),1);var _o=require("lucide-react");var Dt=require("react/jsx-runtime"),Ls="inline-flex items-center justify-center shrink-0 border rounded-md transition-colors outline-none disabled:cursor-not-allowed h-[--checkbox-control-size] w-[--checkbox-control-size]",Os=V(Ls,{variants:{size:{regular:"",small:"",extraSmall:""},tone:{brand:"",neutral:"",destructive:""}},compoundVariants:[{className:"data-[state=unchecked]:bg-[--checkbox-background-color] data-[state=unchecked]:border-[--checkbox-border-default] data-[state=unchecked]:hover:border-[--checkbox-border-hover]"},{className:"data-[state=checked]:bg-[--checkbox-active-background-color] data-[state=checked]:border-none data-[state=checked]:hover:bg-[--checkbox-active-background-hover]"},{className:"data-[state=indeterminate]:bg-[--checkbox-active-background-color] data-[state=indeterminate]:border-none data-[state=indeterminate]:hover:bg-[--checkbox-active-background-hover]"},{className:"data-[disabled][data-state=unchecked]:bg-[--checkbox-background-color] data-[disabled][data-state=unchecked]:border-[--checkbox-border-default] data-[disabled][data-state=unchecked]:hover:bg-[--checkbox-background-color]"},{className:"data-[disabled][data-state=checked]:bg-[--checkbox-background-color] data-[disabled][data-state=checked]:border-none data-[disabled][data-state=checked]:hover:bg-[--checkbox-background-color]"},{className:"data-[disabled][data-state=indeterminate]:bg-[--checkbox-background-color] data-[disabled][data-state=indeterminate]:border-none data-[disabled][data-state=indeterminate]:hover:bg-[--checkbox-background-color]"}],defaultVariants:{size:"regular"}});function Vs(f){var u=f,{className:t,tokens:e,size:o,tone:a,label:n,description:r,disabled:l,style:s}=u,p=h(u,["className","tokens","size","tone","label","description","disabled","style"]);let d=`sizes.${o}`,b={"--checkbox-font-weight":{tokenPath:"fontWeight",fallback:"400"},"--checkbox-gap":{tokenPath:"gap",fallback:"12px"},"--checkbox-text-gap":{tokenPath:"textGap",fallback:"4px"},"--checkbox-control-size":{tokenPath:`${d}.control`,fallback:"20px"},"--checkbox-label-font-size":{tokenPath:`${d}.labelFontSize`,fallback:"14px"},"--checkbox-description-font-size":{tokenPath:`${d}.descriptionFontSize`,fallback:"12px"},"--checkbox-label-font-weight":{tokenPath:`${d}.labelFontWeight`,fallback:"400"},"--checkbox-description-font-weight":{tokenPath:`${d}.descriptionFontWeight`,fallback:"400"},"--checkbox-label-color":{tokenPath:`${d}.labelColor`,fallback:"#020303"},"--checkbox-description-color":{tokenPath:`${d}.descriptionColor`,fallback:"#6E7991"},"--checkbox-label-disabled":{tokenPath:"disabled.text",fallback:"#A3AAB8"},"--checkbox-description-disabled":{tokenPath:"disabled.text",fallback:"#A3AAB8"},"--checkbox-icon-size":{tokenPath:`${d}.icon`,fallback:"16px"},"--checkbox-background-color":{tokenPath:"track.background",fallback:"#E2E5E9"},"--checkbox-border-default":{tokenPath:"track.border",fallback:"#E5E7EB"},"--checkbox-border-hover":{tokenPath:"track.focusBorder",fallback:"#652BDF"},"--checkbox-active-background-color":{tokenPath:"checked.background",fallback:"#652BDF"},"--checkbox-active-background-hover":{tokenPath:"checked.backgroundHover",fallback:"#5A23B8"},"--checkbox-thumb-color":{tokenPath:"thumb.color",fallback:"#A3AAB8"},"--checkbox-thumb-disabled":{tokenPath:"disabled.thumb",fallback:"#A3AAB8"},"--checkbox-font-family":{tokenPath:"fontFamily",fallback:"'Inter', sans-serif"},"--checkbox-line-height":{tokenPath:"lineHeight",fallback:"130%"},"--checkbox-letter-spacing":{tokenPath:"letterSpacing",fallback:"-0.04em"}},v=P("checkbox",b,{tokens:e,size:o,tone:a,extra:s});return(0,Dt.jsxs)("label",{"data-disabled":l?"":void 0,style:v.styles,className:c("group flex items-start gap-[var(--checkbox-gap)] cursor-pointer",l&&"cursor-not-allowed"),children:[(0,Dt.jsx)(Io.Root,y(i({disabled:l,checked:p.checked,style:v.styles,className:c(Os({size:o,tone:a}),"focus-visible:ring-2 focus-visible:ring-[--checkbox-border-hover] focus-visible:ring-offset-2",t)},p),{children:(0,Dt.jsx)(Io.Indicator,{className:`\r
|
|
153
|
+
flex items-center justify-center\r
|
|
154
|
+
text-[color:var(--checkbox-thumb-color)]\r
|
|
155
|
+
data-[disabled]:text-[color:var(--checkbox-thumb-disabled)]\r
|
|
156
|
+
`,children:p.checked==="indeterminate"?(0,Dt.jsx)(_o.Minus,{className:"h-[--checkbox-icon-size] w-[--checkbox-icon-size] stroke-current"}):(0,Dt.jsx)(_o.CheckIcon,{className:`\r
|
|
157
|
+
h-[--checkbox-icon-size]\r
|
|
158
|
+
w-[--checkbox-icon-size]\r
|
|
159
|
+
stroke-current\r
|
|
160
|
+
`})})})),(n||r)&&(0,Dt.jsxs)("div",{className:"flex flex-col gap-[var(--checkbox-text-gap)]",children:[n&&(0,Dt.jsx)("span",{style:{fontFamily:"var(--checkbox-font-family)"},className:"text-[color:var(--checkbox-label-color)] text-[length:var(--checkbox-label-font-size)] font-[var(--checkbox-label-font-weight)] leading-[var(--checkbox-line-height)] tracking-[var(--checkbox-letter-spacing)] group-data-[disabled]:text-[color:var(--checkbox-label-disabled)]",children:n}),r&&(0,Dt.jsx)("span",{style:{fontFamily:"var(--checkbox-font-family)"},className:"text-[color:var(--checkbox-description-color)] text-[length:var(--checkbox-description-font-size)] font-[var(--checkbox-description-font-weight)] leading-[var(--checkbox-line-height)] tracking-[var(--checkbox-letter-spacing)] group-data-[disabled]:text-[color:var(--checkbox-description-disabled)]",children:r})]})]})}var Xe=O(require("@radix-ui/react-radio-group"),1);var Wt=require("react/jsx-runtime"),Gs=`
|
|
161
|
+
shrink-0
|
|
162
|
+
rounded-full
|
|
163
|
+
border
|
|
164
|
+
flex items-center justify-center
|
|
165
|
+
transition-colors
|
|
166
|
+
outline-none
|
|
167
|
+
w-[--radio-size]
|
|
168
|
+
h-[--radio-size]
|
|
169
|
+
`,$s=V(Gs,{variants:{},compoundVariants:[{className:`
|
|
170
|
+
data-[state=unchecked]:bg-[--radio-bg]
|
|
171
|
+
data-[state=unchecked]:border-[--radio-border]
|
|
172
|
+
data-[state=unchecked]:hover:border-[--radio-border-hover]
|
|
173
|
+
`},{className:`
|
|
174
|
+
data-[state=checked]:border-[--radio-dot-on]
|
|
175
|
+
data-[state=checked]:hover:border-[--radio-dot-on-hover]
|
|
176
|
+
`},{className:`
|
|
177
|
+
data-[disabled][data-state=unchecked]:bg-[--radio-disabled-bg]
|
|
178
|
+
data-[disabled][data-state=unchecked]:border-[--radio-disabled-border]
|
|
179
|
+
`},{className:`
|
|
180
|
+
data-[disabled][data-state=checked]:bg-[--radio-disabled-bg]
|
|
181
|
+
data-[disabled][data-state=checked]:border-[--radio-disabled-border]
|
|
182
|
+
data-[disabled][data-state=checked]:hover:border-[--radio-disabled-border]
|
|
183
|
+
`}]});function js(o){var a=o,{className:t}=a,e=h(a,["className"]);return(0,Wt.jsx)(Xe.Root,i({className:c("grid gap-3",t)},e))}function Us(p){var f=p,{className:t,size:e="regular",label:o,description:a,disabled:n,tokens:r,value:l}=f,s=h(f,["className","size","label","description","disabled","tokens","value"]);let u=`sizes.${e}`,d={"--radio-size":{tokenPath:`${u}.outer.size`},"--radio-dot-size":{tokenPath:`${u}.dot.size`},"--radio-label-font-size":{tokenPath:`${u}.labelFontSize`},"--radio-description-font-size":{tokenPath:`${u}.descriptionFontSize`},"--radio-label-font-weight":{tokenPath:`${u}.labelFontWeight`},"--radio-description-font-weight":{tokenPath:`${u}.descriptionFontWeight`},"--radio-label-color":{tokenPath:`${u}.labelColor`},"--radio-description-color":{tokenPath:`${u}.descriptionColor`},"--radio-bg":{tokenPath:"outer.background"},"--radio-border":{tokenPath:"outer.border"},"--radio-border-focus":{tokenPath:"outer.focusBorder"},"--radio-border-hover":{tokenPath:"outer.hoverBorder"},"--radio-dot-on":{tokenPath:"checked.background"},"--radio-dot-on-hover":{tokenPath:"checked.backgroundHover"},"--radio-disabled-bg":{tokenPath:"disabled.background"},"--radio-disabled-border":{tokenPath:"disabled.border"},"--radio-disabled-dot":{tokenPath:"disabled.dot"},"--radio-label-disabled":{tokenPath:"disabled.text",fallback:"#A3AAB8"},"--radio-description-disabled":{tokenPath:"disabled.text",fallback:"#A3AAB8"},"--radio-gap":{tokenPath:"gap",fallback:"12px"},"--radio-text-gap":{tokenPath:"textGap",fallback:"4px"},"--radio-motion-duration":{tokenPath:"motion.duration",fallback:"120ms"},"--radio-font-family":{tokenPath:"fontFamily",fallback:"'Inter', sans-serif"},"--radio-line-height":{tokenPath:"lineHeight",fallback:"130%"},"--radio-letter-spacing":{tokenPath:"letterSpacing",fallback:"-0.04em"}},b=P("radio",d,{tokens:r,size:e});return(0,Wt.jsxs)("label",{"data-disabled":n?"":void 0,style:b.styles,className:c("group flex items-start gap-[var(--radio-gap)] cursor-pointer",n&&"cursor-not-allowed"),children:[(0,Wt.jsx)(Xe.Item,y(i({value:l,disabled:n,style:b.styles,className:c("group",$s(),"focus-visible:ring-2 focus-visible:ring-[--radio-border-focus] focus-visible:ring-offset-2 duration-[--radio-motion-duration]")},s),{children:(0,Wt.jsx)(Xe.Indicator,{className:"flex items-center justify-center",children:(0,Wt.jsx)("span",{className:c(`
|
|
184
|
+
rounded-full
|
|
185
|
+
w-[--radio-dot-size]
|
|
186
|
+
h-[--radio-dot-size]
|
|
187
|
+
bg-[--radio-dot-on]
|
|
188
|
+
transition-colors
|
|
189
|
+
group-hover:bg-[--radio-dot-on-hover]
|
|
190
|
+
data-[disabled]:bg-[--radio-disabled-dot]
|
|
191
|
+
data-[disabled][data-state=checked]:bg-[--radio-disabled-dot]
|
|
192
|
+
data-[disabled][data-state=unchecked]:hover:bg-[--radio-disabled-dot]
|
|
193
|
+
group-data-[disabled]:bg-[--radio-disabled-dot]
|
|
194
|
+
`)})})})),(o||a)&&(0,Wt.jsxs)("div",{className:"flex flex-col gap-[var(--radio-text-gap)]",children:[o&&(0,Wt.jsx)("span",{style:{fontFamily:"var(--radio-font-family)"},className:"text-[color:var(--radio-label-color)] text-[length:var(--radio-label-font-size)] font-[var(--radio-label-font-weight)] leading-[var(--radio-line-height)] tracking-[var(--radio-letter-spacing)] group-data-[disabled]:text-[color:var(--radio-label-disabled)]",children:o}),a&&(0,Wt.jsx)("span",{style:{fontFamily:"var(--radio-font-family)"},className:"text-[color:var(--radio-description-color)] text-[length:var(--radio-description-font-size)] font-[var(--radio-description-font-weight)] leading-[var(--radio-line-height)] tracking-[var(--radio-letter-spacing)] group-data-[disabled]:text-[color:var(--radio-description-disabled)]",children:a})]})]})}var Lo=O(require("@radix-ui/react-switch"),1);var Se=require("react/jsx-runtime"),Hn=`
|
|
195
|
+
bg-[--switch-background-color]
|
|
196
|
+
inline-flex items-center rounded-full
|
|
197
|
+
w-[--switch-width]
|
|
198
|
+
h-[--switch-height]
|
|
199
|
+
transition-colors outline-none
|
|
200
|
+
disabled:cursor-not-allowed
|
|
201
|
+
p-[2px]
|
|
202
|
+
`,Ks=V(Hn,{variants:{},compoundVariants:[{className:`
|
|
203
|
+
data-[state=unchecked]:bg-[--switch-background]
|
|
204
|
+
data-[state=unchecked]:hover:bg-[--switch-background-hover]
|
|
205
|
+
`},{className:`
|
|
206
|
+
data-[state=checked]:bg-[--switch-active-background]
|
|
207
|
+
data-[state=checked]:hover:bg-[--switch-active-background-hover]
|
|
208
|
+
`},{className:`
|
|
209
|
+
data-[disabled]:bg-[--switch-background-disabled]
|
|
210
|
+
data-[disabled]:hover:bg-[--switch-background-disabled]
|
|
211
|
+
data-[disabled][data-state=unchecked]:bg-[--switch-background-disabled]
|
|
212
|
+
data-[disabled][data-state=unchecked]:hover:bg-[--switch-background-disabled]
|
|
213
|
+
data-[disabled][data-state=checked]:bg-[--switch-background-disabled]
|
|
214
|
+
data-[disabled][data-state=checked]:hover:bg-[--switch-background-disabled]
|
|
215
|
+
data-[disabled]:cursor-not-allowed
|
|
216
|
+
`}]}),Xs=p=>{var f=p,{className:t,tokens:e,size:o="regular",label:a,description:n,disabled:r,style:l}=f,s=h(f,["className","tokens","size","label","description","disabled","style"]);let u=`sizes.${o}`,d={"--switch-label-font-weight":{tokenPath:`${u}.labelFontWeight`,fallback:"400"},"--switch-description-font-weight":{tokenPath:`${u}.descriptionFontWeight`,fallback:"400"},"--switch-label-font-size":{tokenPath:`${u}.labelFontSize`,fallback:"14px"},"--switch-description-font-size":{tokenPath:`${u}.descriptionFontSize`,fallback:"12px"},"--switch-label-color":{tokenPath:`${u}.labelColor`,fallback:"#020303"},"--switch-description-color":{tokenPath:`${u}.descriptionColor`,fallback:"#6E7991"},"--switch-label-disabled":{tokenPath:"disabled.text",fallback:"#A3AAB8"},"--switch-description-disabled":{tokenPath:"disabled.text",fallback:"#A3AAB8"},"--switch-gap":{tokenPath:"gap",fallback:"12px"},"--switch-text-gap":{tokenPath:"textGap",fallback:"4px"},"--switch-width":{tokenPath:`${u}.track.width`,fallback:"40px"},"--switch-height":{tokenPath:`${u}.track.height`,fallback:"20px"},"--switch-background":{tokenPath:"background"},"--switch-background-hover":{tokenPath:"track.offBackgroundHover",fallback:"#E2E5E9"},"--switch-active-background":{tokenPath:"track.onBackground",fallback:"#652BDF"},"--switch-active-background-hover":{tokenPath:"track.onBackgroundHover",fallback:"#5A23B8"},"--switch-background-disabled":{tokenPath:"disabled.background",fallback:"#E2E5E9"},"--switch-thumb-size":{tokenPath:`${u}.handle.size`,fallback:"16px"},"--switch-thumb-translate":{tokenPath:`${u}.handle.translate`,fallback:"100%"},"--switch-thumb-color":{tokenPath:"handle.color",fallback:"#FFFFFF"},"--switch-thumb-disabled":{tokenPath:"disabled.track",fallback:"#A3AAB8"},"--switch-transition-duration":{tokenPath:"motion.duration",fallback:"200ms"},"--switch-font-family":{tokenPath:"fontFamily",fallback:"'Inter', sans-serif"},"--switch-line-height":{tokenPath:"lineHeight",fallback:"130%"},"--switch-letter-spacing":{tokenPath:"letterSpacing",fallback:"-0.04em"}},b=P("switch",d,{tokens:e,size:o,extra:l});return(0,Se.jsxs)("label",{"data-disabled":r?"":void 0,style:b.styles,className:c("group flex items-start gap-[var(--switch-gap)] cursor-pointer",r&&"cursor-not-allowed"),children:[(0,Se.jsx)(Lo.Root,y(i({disabled:r,"data-slot":"switch",style:b.styles,className:c(Hn,Ks(),t,"focus-visible:ring-2 focus-visible:ring-[--switch-active-background] focus-visible:ring-offset-2")},s),{children:(0,Se.jsx)(Lo.Thumb,{"data-slot":"switch-thumb",className:c(`
|
|
217
|
+
rounded-full
|
|
218
|
+
h-[--switch-thumb-size]
|
|
219
|
+
w-[--switch-thumb-size]
|
|
220
|
+
bg-[--switch-thumb-color]
|
|
221
|
+
transition-transform
|
|
222
|
+
duration-[--switch-transition-duration]
|
|
223
|
+
data-[state=checked]:translate-x-[--switch-thumb-translate]
|
|
224
|
+
data-[disabled]:bg-[--switch-thumb-disabled]
|
|
225
|
+
`)})})),(a||n)&&(0,Se.jsxs)("div",{className:"flex flex-col gap-[var(--switch-text-gap)]",children:[a&&(0,Se.jsx)("span",{style:{fontFamily:"var(--switch-font-family)"},className:"text-[color:var(--switch-label-color)] text-[length:var(--switch-label-font-size)] font-[var(--switch-label-font-weight)] leading-[var(--switch-line-height)] tracking-[var(--switch-letter-spacing)] group-data-[disabled]:text-[color:var(--switch-label-disabled)]",children:a}),n&&(0,Se.jsx)("span",{style:{fontFamily:"var(--switch-font-family)"},className:"text-[color:var(--switch-description-color)] text-[length:var(--switch-description-font-size)] font-[var(--switch-description-font-weight)] leading-[var(--switch-line-height)] tracking-[var(--switch-letter-spacing)] group-data-[disabled]:text-[color:var(--switch-description-disabled)]",children:n})]})]})};var In=require("@radix-ui/react-slot"),Oo=require("lucide-react"),Vo=O(require("react"),1);var vt=require("react/jsx-runtime"),_n=Vo.createContext("medium"),Ys={"--bc-font-size":{tokenPath:"fontSize",fallback:"14px"},"--bc-gap":{tokenPath:"gap",fallback:"8px"},"--bc-item-min-height":{tokenPath:"itemMinHeight",fallback:"20px"},"--bc-max-label-chars":{tokenPath:"maxLabelLength",fallback:"24"},"--bc-font-family":{tokenPath:"fontFamily",fallback:"inherit"},"--bc-line-height":{tokenPath:"lineHeight",fallback:"130%"},"--bc-letter-spacing":{tokenPath:"letterSpacing",fallback:"-0.04em"},"--bc-link-color":{tokenPath:"link.default.color",fallback:"inherit"},"--bc-link-weight":{tokenPath:"link.default.fontWeight",fallback:"600"},"--bc-link-hover-color":{tokenPath:"link.hover.color",fallback:"inherit"},"--bc-link-hover-decor":{tokenPath:"link.hover.textDecoration",fallback:"underline"},"--bc-page-color":{tokenPath:"page.color",fallback:"#64748b"},"--bc-page-weight":{tokenPath:"page.fontWeight",fallback:"400"},"--bc-sep-color":{tokenPath:"separator.color",fallback:"#94a3b8"},"--bc-sep-size":{tokenPath:"separator.size",fallback:"14px"}};function Zs(l){var s=l,{className:t,tokens:e,style:o,size:a="medium",children:n}=s,r=h(s,["className","tokens","style","size","children"]);let p=P("breadcrumb",Ys,{tokens:e,size:a,extra:o});return(0,vt.jsx)("nav",y(i({"aria-label":"breadcrumb","data-slot":"breadcrumb","data-size":a,style:p.styles,className:c("group/breadcrumb",t)},r),{children:(0,vt.jsx)(_n.Provider,{value:a,children:n})}))}function qs(o){var a=o,{className:t}=a,e=h(a,["className"]);let n=Vo.useContext(_n);return(0,vt.jsx)("ol",i({"data-slot":"breadcrumb-list","data-size":n,className:c("flex flex-wrap items-center transition-colors","text-[var(--bc-font-size)] gap-[var(--bc-gap)]",t)},e))}function Js(o){var a=o,{className:t}=a,e=h(a,["className"]);return(0,vt.jsx)("li",i({"data-slot":"breadcrumb-item",className:c("inline-flex min-h-[var(--bc-item-min-height)] items-center",t)},e))}function Qs(a){var n=a,{asChild:t,className:e}=n,o=h(n,["asChild","className"]);return(0,vt.jsx)(t?In.Slot:"a",i({"data-slot":"breadcrumb-link",className:c("transition-all outline-none focus-visible:ring-2 focus-visible:ring-ring","block max-w-[calc(var(--bc-max-label-chars)*1ch)] truncate whitespace-nowrap","text-[color:var(--bc-link-color)] font-[var(--bc-link-weight)] no-underline","hover:text-[var(--bc-link-hover-color)] hover:decoration-[var(--bc-link-hover-color)] hover:[text-decoration:var(--bc-link-hover-decor)]",e),style:{fontFamily:"var(--bc-font-family)",lineHeight:"var(--bc-line-height)",letterSpacing:"var(--bc-letter-spacing)",fontSize:"var(--bc-font-size)"}},o))}function tl(o){var a=o,{className:t}=a,e=h(a,["className"]);return(0,vt.jsx)("span",i({"data-slot":"breadcrumb-page",role:"link","aria-disabled":"true","aria-current":"page",className:c("block max-w-[calc(var(--bc-max-label-chars)*1ch)] truncate whitespace-nowrap cursor-default transition-colors","text-[var(--bc-page-color)] font-[var(--bc-page-weight)]",t),style:{fontFamily:"var(--bc-font-family)",lineHeight:"var(--bc-line-height)",letterSpacing:"var(--bc-letter-spacing)",fontSize:"var(--bc-font-size)"}},e))}function el(a){var n=a,{children:t,className:e}=n,o=h(n,["children","className"]);return(0,vt.jsx)("li",y(i({"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",className:c("flex items-center justify-center text-[var(--bc-sep-color)]","[&>svg]:size-[var(--bc-sep-size)]",e)},o),{children:t!=null?t:(0,vt.jsx)(Oo.ChevronRight,{})}))}function ol(o){var a=o,{className:t}=a,e=h(a,["className"]);return(0,vt.jsxs)("span",y(i({"data-slot":"breadcrumb-ellipsis",role:"presentation","aria-hidden":"true",className:c("flex items-center justify-center",t)},e),{children:[(0,vt.jsx)(Oo.MoreHorizontal,{className:"size-[var(--bc-sep-size)] text-[var(--bc-sep-color)]"}),(0,vt.jsx)("span",{className:"sr-only",children:"More"})]}))}var We=O(require("react"),1),Ht=require("vaul");var bt=require("react/jsx-runtime"),al="0px 2px 4px 0px #1212170A, 0px 5px 8px 0px #1212170A, 0px 10px 18px 0px #12121708, 0px 24px 48px 0px #12121708, 0px 0px 0px 1px #1212171A",nl={"--drawer-overlay-bg":{tokenPath:"overlay.background",fallback:"#000"},"--drawer-overlay-opacity":{tokenPath:"overlay.opacity",fallback:"0.4"},"--drawer-overlay-blur":{tokenPath:"overlay.backdropBlur",fallback:"0px"}},rl={"--drawer-bg":{tokenPath:"content.background",fallback:"#fff"},"--drawer-color":{tokenPath:"content.color",fallback:"#0F172A"},"--drawer-radius":{tokenPath:"content.radius",fallback:"16px"},"--drawer-border":{tokenPath:"content.borderColor",fallback:"#E5E7EB"},"--drawer-shadow":{tokenPath:"content.shadow",fallback:al},"--drawer-max-height":{tokenPath:"content.maxHeight",fallback:"100vh"}},il={"--drawer-title-color":{tokenPath:"title.color",fallback:"#0F172A"},"--drawer-title-size":{tokenPath:"title.fontSize",fallback:"24px"},"--drawer-title-weight":{tokenPath:"title.fontWeight",fallback:"600"},"--drawer-title-family":{tokenPath:"title.fontFamily",fallback:"inherit"},"--drawer-title-line-height":{tokenPath:"title.lineHeight",fallback:"130%"},"--drawer-title-letter-spacing":{tokenPath:"title.letterSpacing",fallback:"-0.04em"}},sl={"--drawer-desc-color":{tokenPath:"description.color",fallback:"#6E7991"},"--drawer-desc-size":{tokenPath:"description.fontSize",fallback:"14px"},"--drawer-desc-family":{tokenPath:"description.fontFamily",fallback:"inherit"},"--drawer-desc-line-height":{tokenPath:"description.lineHeight",fallback:"130%"},"--drawer-desc-letter-spacing":{tokenPath:"description.letterSpacing",fallback:"-0.04em"}},uo=We.createContext(null);function ll(o){var a=o,{tokens:t}=a,e=h(a,["tokens"]);let n=P("drawer",i(i(i(i({},nl),rl),il),sl),{tokens:t});return(0,bt.jsx)(uo.Provider,{value:n,children:(0,bt.jsx)(Ht.Drawer.Root,i({"data-slot":"drawer"},e))})}var cl=Ht.Drawer.Trigger,Ln=Ht.Drawer.Portal,dl=Ht.Drawer.Close;function On(o){var a=o,{className:t}=a,e=h(a,["className"]);let n=We.useContext(uo);return n?(0,bt.jsx)(Ht.Drawer.Overlay,i({"data-slot":"drawer-overlay",style:n.styles,className:c(`
|
|
226
|
+
fixed inset-0 z-50
|
|
227
|
+
bg-[--drawer-overlay-bg]/[--drawer-overlay-opacity]
|
|
228
|
+
backdrop-blur-[--drawer-overlay-blur]
|
|
229
|
+
data-[state=open]:animate-in
|
|
230
|
+
data-[state=closed]:animate-out
|
|
231
|
+
data-[state=closed]:fade-out-0
|
|
232
|
+
data-[state=open]:fade-in-0
|
|
233
|
+
`,t)},e)):null}function pl(a){var n=a,{className:t,children:e}=n,o=h(n,["className","children"]);let r=We.useContext(uo);return r?(0,bt.jsxs)(Ln,{children:[(0,bt.jsx)(On,{}),(0,bt.jsx)(Ht.Drawer.Content,y(i({"data-slot":"drawer-content",style:r.styles,className:c(`
|
|
234
|
+
fixed z-50 flex flex-col
|
|
235
|
+
bg-[--drawer-bg]
|
|
236
|
+
text-[color:var(--drawer-color)]
|
|
237
|
+
border border-[--drawer-border]
|
|
238
|
+
rounded-[--drawer-radius]
|
|
239
|
+
shadow-[--drawer-shadow]
|
|
240
|
+
`,`
|
|
241
|
+
data-[vaul-drawer-direction=bottom]:inset-x-0 bottom-0
|
|
242
|
+
data-[vaul-drawer-direction=bottom]:rounded-t-[--drawer-radius]
|
|
243
|
+
data-[vaul-drawer-direction=bottom]:slide-in-from-bottom-4
|
|
244
|
+
data-[vaul-drawer-direction=bottom]:max-h-[--drawer-max-height]
|
|
245
|
+
data-[vaul-drawer-direction=bottom]:h-auto
|
|
246
|
+
`,`
|
|
247
|
+
data-[vaul-drawer-direction=right]:top-4
|
|
248
|
+
data-[vaul-drawer-direction=right]:bottom-4
|
|
249
|
+
data-[vaul-drawer-direction=right]:max-h-[--drawer-max-height]
|
|
250
|
+
`,`
|
|
251
|
+
data-[vaul-drawer-direction=left]:inset-y-0 left-0
|
|
252
|
+
data-[vaul-drawer-direction=left]:w-3/4 sm:max-w-sm
|
|
253
|
+
data-[vaul-drawer-direction=left]:slide-in-from-left-6
|
|
254
|
+
`,t)},o),{children:e}))]}):null}var fl=o=>{var a=o,{className:t}=a,e=h(a,["className"]);return(0,bt.jsx)("div",i({className:c("flex flex-col gap-1 px-6 pt-12",t)},e))},ul=o=>{var a=o,{className:t}=a,e=h(a,["className"]);return(0,bt.jsx)("div",i({className:c("flex flex-col flex-1 overflow-y-auto px-6 py-4",t)},e))},gl=o=>{var a=o,{className:t}=a,e=h(a,["className"]);return(0,bt.jsx)("div",i({className:c("sticky bottom-0 flex justify-end gap-4 border-t border-slate-100 bg-[color:var(--drawer-bg)] px-6 py-4","[&>button]:w-[68px]",t)},e))};function hl(o){var a=o,{className:t}=a,e=h(a,["className"]);return(0,bt.jsx)(Ht.Drawer.Close,y(i({"aria-label":"Cerrar",className:c("absolute right-5 top-6 flex h-9 w-9 items-center justify-center",t)},e),{children:"\u2715"}))}function bl(o){var a=o,{className:t}=a,e=h(a,["className"]);let n=We.useContext(uo);if(!n)return null;let r=y(i({},n.styles),{fontFamily:"var(--drawer-title-family)",lineHeight:"var(--drawer-title-line-height)",letterSpacing:"var(--drawer-title-letter-spacing)"});return(0,bt.jsx)(Ht.Drawer.Title,i({className:c("font-semibold font-[550] text-[color:var(--drawer-title-color)] text-[length:var(--drawer-title-size)]",t),style:r},e))}function ml(o){var a=o,{className:t}=a,e=h(a,["className"]);let n=We.useContext(uo);if(!n)return null;let r=y(i({},n.styles),{fontFamily:"var(--drawer-desc-family)",lineHeight:"var(--drawer-desc-line-height)",letterSpacing:"var(--drawer-desc-letter-spacing)"});return(0,bt.jsx)(Ht.Drawer.Description,i({style:r,className:c("font-normal font-[400] text-[color:var(--drawer-desc-color)] text-[length:var(--drawer-desc-size)]",t)},e))}var ze=require("react/jsx-runtime");function kl(t){return{"--hd-gap":{tokenPath:t?"container.gapMobile":"container.gapDesktop",fallback:t?"8px":"12px"},"--hd-min-height":{tokenPath:t?"container.minHeightMobile":"container.minHeightDesktop",fallback:t?"59px":"48px"},"--hd-title-color":{tokenPath:"title.color",fallback:"#020303"},"--hd-title-size":{tokenPath:t?"title.fontSizeMobile":"title.fontSizeDesktop",fallback:t?"18px":"24px"},"--hd-title-weight":{tokenPath:"title.fontWeight",fallback:550},"--hd-title-family":{tokenPath:"title.fontFamily",fallback:"inherit"},"--hd-title-line-height":{tokenPath:"title.lineHeight",fallback:"130%"},"--hd-title-letter-spacing":{tokenPath:"title.letterSpacing",fallback:"-0.04em"},"--hd-description-color":{tokenPath:"description.color",fallback:"#6E7991"},"--hd-description-size":{tokenPath:t?"description.fontSizeMobile":"description.fontSizeDesktop",fallback:t?"14px":"16px"},"--hd-description-weight":{tokenPath:"description.fontWeight",fallback:400},"--hd-description-family":{tokenPath:"description.fontFamily",fallback:"inherit"},"--hd-description-line-height":{tokenPath:"description.lineHeight",fallback:"130%"},"--hd-description-letter-spacing":{tokenPath:"description.letterSpacing",fallback:"-0.04em"}}}function vl({title:t,description:e,action:o,size:a="desktop",className:n,titleClassName:r,descriptionClassName:l,descriptionMaxLines:s,tokens:p}){let f=a==="mobile",u=s!=null?s:f?4:3,d=P("header",kl(f),{tokens:p});return(0,ze.jsx)("section",{style:d.styles,className:c("w-full min-w-0","min-h-[var(--hd-min-height)]",n),"data-size":a,children:(0,ze.jsxs)("div",{className:"flex w-full items-start justify-between gap-3",children:[(0,ze.jsxs)("div",{className:"min-w-0 flex-1 flex flex-col gap-[var(--hd-gap)]",children:[(0,ze.jsx)("h1",{className:c("m-0 text-[length:var(--hd-title-size)] text-[color:var(--hd-title-color)] font-[var(--hd-title-weight)]",r),style:{fontFamily:"var(--hd-title-family)",lineHeight:"var(--hd-title-line-height)",letterSpacing:"var(--hd-title-letter-spacing)"},children:t}),e?(0,ze.jsx)("p",{className:c("m-0 text-[length:var(--hd-description-size)] text-[color:var(--hd-description-color)] font-[var(--hd-description-weight)]",l),style:{fontFamily:"var(--hd-description-family)",lineHeight:"var(--hd-description-line-height)",letterSpacing:"var(--hd-description-letter-spacing)",display:"-webkit-box",WebkitLineClamp:u,WebkitBoxOrient:"vertical",overflow:"hidden"},children:e}):null]}),o?(0,ze.jsx)("div",{className:"shrink-0",children:o}):null]})})}var it=O(require("@radix-ui/react-alert-dialog"),1),Ye=O(require("react"),1);var rt=require("react/jsx-runtime"),yl={"--alert-bg-overlay":{tokenPath:"overlay.background",fallback:"rgba(0,0,0,.5)"},"--alert-bg":{tokenPath:"content.background",fallback:"#ffffff"},"--alert-radius":{tokenPath:"content.radius",fallback:"12px"},"--alert-border-color":{tokenPath:"content.borderColor",fallback:"#E5E7EB"},"--alert-width":{tokenPath:"content.width",fallback:"clamp(360px, calc(100dvw - 32px), 512px)"},"--alert-max-width":{tokenPath:"content.maxWidth",fallback:"512px"},"--alert-max-height":{tokenPath:"content.maxHeight",fallback:"calc(100dvh - 64px)"},"--alert-title-color":{tokenPath:"title.color",fallback:"#020303"},"--alert-title-font-size":{tokenPath:"title.fontSize",fallback:"18px"},"--alert-title-font-weight":{tokenPath:"title.fontWeight",fallback:"550"},"--alert-title-font-family":{tokenPath:"title.fontFamily",fallback:"inherit"},"--alert-title-line-height":{tokenPath:"title.lineHeight",fallback:"130%"},"--alert-title-letter-spacing":{tokenPath:"title.letterSpacing",fallback:"-0.04em"},"--alert-description-color":{tokenPath:"description.color",fallback:"#6B7280"},"--alert-description-font-size":{tokenPath:"description.fontSize",fallback:"16px"},"--alert-description-font-weight":{tokenPath:"description.fontWeight",fallback:"400"},"--alert-description-font-family":{tokenPath:"description.fontFamily",fallback:"inherit"},"--alert-description-line-height":{tokenPath:"description.lineHeight",fallback:"130%"},"--alert-description-letter-spacing":{tokenPath:"description.letterSpacing",fallback:"-0.04em"}},Vn=Ye.createContext(null),Gn=Ye.createContext("left");function Ze(){return Ye.useContext(Gn)}var aa={left:{content:"text-left",header:"items-start text-left",footer:"flex-row justify-end"},center:{content:"text-center",header:"items-center text-center",footer:"flex-col items-stretch"}};function xl(n){var r=n,{tokens:t,alignment:e="center",size:o="regular"}=r,a=h(r,["tokens","alignment","size"]);var f,u,d,b;let l=P("alertDialog",yl,{tokens:t}),s=W(l.tokens,"sizes",o),p=y(i({},l.styles),{"--alert-padding":(f=s==null?void 0:s.padding)!=null?f:"24px","--alert-gap":(u=s==null?void 0:s.gap)!=null?u:"24px","--alert-header-gap":(d=s==null?void 0:s.headerGap)!=null?d:"16px","--alert-footer-gap":(b=s==null?void 0:s.footerGap)!=null?b:"8px"});return(0,rt.jsx)(Vn.Provider,{value:p,children:(0,rt.jsx)(it.Root,i({"data-slot":"alert-dialog"},a))})}var Pl=it.Trigger,$n=it.Portal;function jn(t){return(0,rt.jsx)(it.Overlay,i({"data-slot":"alert-dialog-overlay",className:c("fixed inset-0 z-50 bg-[--alert-bg-overlay]","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0")},t))}function wl(a){var n=a,{className:t,alignment:e="left"}=n,o=h(n,["className","alignment"]);let r=Ye.useContext(Vn),l=aa[e];return(0,rt.jsx)(Gn.Provider,{value:e,children:(0,rt.jsx)($n,{children:(0,rt.jsxs)("div",{style:r!=null?r:void 0,children:[(0,rt.jsx)(jn,{}),(0,rt.jsx)(it.Content,i({"data-slot":"alert-dialog-content","data-alignment":e,className:c("fixed top-1/2 left-1/2 z-50","w-[var(--alert-width)] max-w-[var(--alert-max-width)]","max-h-[var(--alert-max-height)] overflow-y-auto","translate-x-[-50%] translate-y-[-50%]","rounded-[--alert-radius] bg-[--alert-bg]","p-[var(--alert-padding)] grid gap-[var(--alert-gap)] border border-[--alert-border-color]",l.content,t)},o))]})})})}function Sl(o){var a=o,{className:t}=a,e=h(a,["className"]);let n=Ze();return(0,rt.jsx)("div",i({"data-slot":"alert-dialog-header",className:c("flex flex-col gap-[var(--alert-header-gap)]",aa[n].header,t)},e))}function zl(o){var a=o,{className:t}=a,e=h(a,["className"]);let n=Ze();return(0,rt.jsx)("div",i({"data-slot":"alert-dialog-footer",className:c("flex gap-[var(--alert-footer-gap)]",aa[n].footer,t)},e))}function Cl(t){let e=Ze();return(0,rt.jsx)(it.Title,i({"data-slot":"alert-dialog-title",style:{fontFamily:"var(--alert-title-font-family)",lineHeight:"var(--alert-title-line-height)",letterSpacing:"var(--alert-title-letter-spacing)",fontWeight:"var(--alert-title-font-weight)"},className:c("text-[color:var(--alert-title-color)] text-[length:var(--alert-title-font-size)]",e==="center"&&"text-center",e==="left"&&"text-left")},t))}function Tl(t){let e=Ze();return(0,rt.jsx)(it.Description,i({"data-slot":"alert-dialog-description",style:{fontFamily:"var(--alert-description-font-family)",lineHeight:"var(--alert-description-line-height)",letterSpacing:"var(--alert-description-letter-spacing)",fontWeight:"var(--alert-description-font-weight)"},className:c("text-[color:var(--alert-description-color)] text-[length:var(--alert-description-font-size)]",e==="center"&&"text-center",e==="left"&&"text-left")},t))}function Rl(a){var n=a,{className:t,children:e}=n,o=h(n,["className","children"]);let r=Ze();return(0,rt.jsx)(it.Action,y(i({asChild:!0},o),{children:(0,rt.jsx)(Lt,{variant:"primary",className:c(r==="center"&&"w-full",t),children:e})}))}function Nl(a){var n=a,{className:t,children:e}=n,o=h(n,["className","children"]);let r=Ze();return(0,rt.jsx)(it.Cancel,y(i({asChild:!0},o),{children:(0,rt.jsx)(Lt,{variant:"secondary",className:c(r==="center"&&"w-full",t),children:e})}))}var Go=require("lucide-react"),go=O(require("react"),1);var G=require("react/jsx-runtime"),na=go.createContext(null),Fl={"--nb-height":{tokenPath:"container.height",fallback:"64px"},"--nb-bg":{tokenPath:"container.background",fallback:"#ffffff"},"--nb-border":{tokenPath:"container.border",fallback:"#E2E5E9"},"--nb-radius":{tokenPath:"container.radius",fallback:"0px"},"--nb-icon-color":{tokenPath:"container.iconColor",fallback:"#9DA5B5"},"--nb-expanded-bg":{tokenPath:"expanded.background",fallback:"#ffffff"},"--nb-max-width":{tokenPath:"content.maxWidth",fallback:"1440px"},"--nb-padding-x":{tokenPath:"content.paddingX",fallback:"20px"},"--nb-content-gap":{tokenPath:"content.gap",fallback:"16px"},"--nb-start-gap":{tokenPath:"start.gap",fallback:"16px"},"--nb-end-gap":{tokenPath:"end.gap",fallback:"8px"},"--nb-logo-gap":{tokenPath:"logo.gap",fallback:"8px"},"--nb-motion":{tokenPath:"motion.duration",fallback:"150ms"}},Al={"--nb-merchant-color":{tokenPath:"merchant.color",fallback:"#111827"},"--nb-merchant-font-family":{tokenPath:"merchant.fontFamily",fallback:"inherit"},"--nb-merchant-font-size":{tokenPath:"merchant.fontSize",fallback:"14px"},"--nb-merchant-font-weight":{tokenPath:"merchant.fontWeight",fallback:"550"},"--nb-merchant-line-height":{tokenPath:"merchant.lineHeight",fallback:"130%"},"--nb-merchant-letter-spacing":{tokenPath:"merchant.letterSpacing",fallback:"-0.04em"},"--nb-merchant-gap":{tokenPath:"merchant.gap",fallback:"20px"},"--nb-merchant-trigger-gap":{tokenPath:"merchant.triggerGap",fallback:"4px"},"--nb-merchant-trigger-px":{tokenPath:"merchant.paddingX",fallback:"16px"},"--nb-merchant-trigger-py":{tokenPath:"merchant.paddingY",fallback:"10px"},"--nb-icon-color":{tokenPath:"container.iconColor",fallback:"#9DA5B5"}},Bl={"--nb-user-name":{tokenPath:"user.nameColor",fallback:"#111827"},"--nb-user-role":{tokenPath:"user.roleColor",fallback:"#6B7280"},"--nb-user-name-font-family":{tokenPath:"user.nameFontFamily",fallback:"inherit"},"--nb-user-role-font-family":{tokenPath:"user.roleFontFamily",fallback:"inherit"},"--nb-user-name-font-size":{tokenPath:"user.nameFontSize",fallback:"12px"},"--nb-user-role-font-size":{tokenPath:"user.roleFontSize",fallback:"12px"},"--nb-user-name-font-weight":{tokenPath:"user.nameFontWeight",fallback:"550"},"--nb-user-role-font-weight":{tokenPath:"user.roleFontWeight",fallback:"400"},"--nb-user-name-line-height":{tokenPath:"user.nameLineHeight",fallback:"130%"},"--nb-user-role-line-height":{tokenPath:"user.roleLineHeight",fallback:"130%"},"--nb-user-name-letter-spacing":{tokenPath:"user.nameLetterSpacing",fallback:"-0.04em"},"--nb-user-role-letter-spacing":{tokenPath:"user.roleLetterSpacing",fallback:"-0.04em"},"--nb-user-gap":{tokenPath:"user.gap",fallback:"8px"},"--nb-user-trigger-px":{tokenPath:"user.paddingX",fallback:"10px"},"--nb-user-trigger-py":{tokenPath:"user.paddingY",fallback:"10px"},"--nb-trigger-hover":{tokenPath:"user.triggerHover",fallback:"#F6F7F9"},"--nb-focus":{tokenPath:"user.focusColor",fallback:"#8B5CF6"},"--nb-icon-color":{tokenPath:"container.iconColor",fallback:"#9DA5B5"}},He=(({children:t,open:e=!1,expandedContent:o,className:a})=>{let n=P("navbar",Fl);return(0,G.jsx)(na.Provider,{value:n.tokens,children:(0,G.jsxs)("div",{style:n.styles,className:c("w-full bg-[var(--nb-bg)]",a),"data-open":e?"true":"false",children:[(0,G.jsx)("header",{className:c("w-full border-b sticky top-0 z-[1100]","h-[var(--nb-height)]","bg-[var(--nb-bg)] border-[var(--nb-border)]","rounded-[var(--nb-radius)]","transition-colors duration-[var(--nb-motion)]"),children:(0,G.jsx)("div",{className:"mx-auto h-full flex items-center justify-between px-[var(--nb-padding-x)] gap-[var(--nb-content-gap)]",children:t})}),e&&o?(0,G.jsx)("div",{className:"w-full border-b border-[var(--nb-border)] bg-[var(--nb-expanded-bg)]",style:{maxHeight:"calc(100dvh - var(--nb-height))",overflowY:"auto"},children:(0,G.jsx)("div",{className:"mx-auto px-[var(--nb-padding-x)] py-3",children:o})}):null]})})});He.Start=({children:t})=>(0,G.jsx)("div",{className:"flex items-center gap-[var(--nb-start-gap,16px)]",children:t});He.End=({children:t})=>(0,G.jsx)("div",{className:"flex items-center gap-[var(--nb-end-gap,8px)]",children:t});He.Slot=({children:t})=>(0,G.jsx)("div",{className:"flex items-center",children:t});He.Logo=Un;He.Merchant=Kn;He.User=Xn;function Un({children:t}){return(0,G.jsx)("div",{className:"flex items-center gap-[var(--nb-logo-gap,8px)]",children:t!=null?t:(0,G.jsx)(Po,{children:(0,G.jsx)(lo,{children:"EM"})})})}function Kn({merchants:t=[],currentId:e,onChange:o}){var l;let a=(l=go.useContext(na))!=null?l:{},n=pt(a,Al);if(!t.length)return null;let r=t.find(s=>s.id===e);return t.length===1?(0,G.jsx)("span",{className:"text-[color:var(--nb-merchant-color)] text-[length:var(--nb-merchant-font-size)] font-[var(--nb-merchant-font-weight)]",style:{fontFamily:"var(--nb-merchant-font-family)",lineHeight:"var(--nb-merchant-line-height)",letterSpacing:"var(--nb-merchant-letter-spacing)"},children:r==null?void 0:r.name}):(0,G.jsx)("div",{style:n,children:(0,G.jsxs)(Ro,{children:[(0,G.jsxs)(No,{className:"flex items-center gap-[var(--nb-merchant-trigger-gap)] px-[var(--nb-merchant-trigger-px)] py-[var(--nb-merchant-trigger-py)] rounded-md outline-none text-[color:var(--nb-merchant-color)] text-[length:var(--nb-merchant-font-size)] font-[var(--nb-merchant-font-weight)]",style:{fontFamily:"var(--nb-merchant-font-family)",lineHeight:"var(--nb-merchant-line-height)",letterSpacing:"var(--nb-merchant-letter-spacing)"},children:[r==null?void 0:r.name,(0,G.jsx)(Go.ChevronsUpDown,{className:"h-4 w-4 text-[color:var(--nb-icon-color)]"})]}),(0,G.jsx)(Fo,{align:"start",children:t.map(s=>(0,G.jsx)(Ao,{onClick:()=>o==null?void 0:o(s.id),children:s.name},s.id))})]})})}function Xn({user:t}){var a;let e=(a=go.useContext(na))!=null?a:{},o=pt(e,Bl);return(0,G.jsx)("div",{style:o,children:(0,G.jsxs)(Ro,{children:[(0,G.jsxs)(No,{className:`\r
|
|
255
|
+
flex items-start gap-[var(--nb-user-gap)]\r
|
|
256
|
+
px-[var(--nb-user-trigger-px)] py-[var(--nb-user-trigger-py)]\r
|
|
257
|
+
rounded-xl\r
|
|
258
|
+
outline-none\r
|
|
259
|
+
transition-colors\r
|
|
260
|
+
hover:bg-[var(--nb-trigger-hover)]\r
|
|
261
|
+
focus-visible:ring-2 focus-visible:ring-[var(--nb-focus)]\r
|
|
262
|
+
`,children:[(0,G.jsx)(Po,{size:"md",children:t.avatarUrl?(0,G.jsx)(wo,{src:t.avatarUrl}):(0,G.jsx)(lo,{children:t.name[0]})}),(0,G.jsxs)("div",{className:"flex flex-col text-left",children:[(0,G.jsx)("span",{className:"text-[color:var(--nb-user-name)] text-[length:var(--nb-user-name-font-size)] font-[var(--nb-user-name-font-weight)]",style:{fontFamily:"var(--nb-user-name-font-family)",lineHeight:"var(--nb-user-name-line-height)",letterSpacing:"var(--nb-user-name-letter-spacing)"},children:t.name}),t.role&&(0,G.jsx)("span",{className:"mt-0.5 text-[length:var(--nb-user-role-font-size)] text-[color:var(--nb-user-role)] font-[var(--nb-user-role-font-weight)]",style:{fontFamily:"var(--nb-user-role-font-family)",lineHeight:"var(--nb-user-role-line-height)",letterSpacing:"var(--nb-user-role-letter-spacing)"},children:t.role})]}),(0,G.jsx)(Go.ChevronDown,{className:`\r
|
|
263
|
+
ml-1\r
|
|
264
|
+
h-4 w-4\r
|
|
265
|
+
text-[color:var(--nb-icon-color)]\r
|
|
266
|
+
translate-y-[0px]\r
|
|
267
|
+
`})]}),(0,G.jsx)(Fo,{align:"end",children:t.menu.map(n=>(0,G.jsx)(Ao,{onClick:n.onClick,children:n.label},n.id))})]})})}var qe=require("lucide-react");var yt=require("react/jsx-runtime"),El={"--pg-gap":{tokenPath:"gap",fallback:"8px"},"--pg-radius":{tokenPath:"radius",fallback:"8px"},"--pg-font-family":{tokenPath:"fontFamily",fallback:"inherit"},"--pg-line-height":{tokenPath:"lineHeight",fallback:"130%"},"--pg-letter-spacing":{tokenPath:"letterSpacing",fallback:"-0.04em"},"--pg-font-size":{tokenPath:"pageNumber.fontSize",fallback:"14px"},"--pg-font-weight":{tokenPath:"pageNumber.fontWeight",fallback:"500"},"--pg-icon-size":{tokenPath:"icon.size",fallback:"16px"},"--pg-icon-color":{tokenPath:"icon.color",fallback:"currentColor"},"--pg-item-bg":{tokenPath:"item.default.background",fallback:"#FFFFFF"},"--pg-item-border":{tokenPath:"item.default.border",fallback:"#D1D5DB"},"--pg-item-text":{tokenPath:"item.default.color",fallback:"#374151"},"--pg-item-hover-bg":{tokenPath:"item.hover.background",fallback:"#E6DCFA"},"--pg-item-hover-border":{tokenPath:"item.hover.border",fallback:"#D1D5DB"},"--pg-active-bg":{tokenPath:"item.active.background",fallback:"#F4F0FF"},"--pg-active-text":{tokenPath:"item.active.text",fallback:"#652BDF"},"--pg-active-border":{tokenPath:"item.active.border",fallback:"transparent"},"--pg-focus-border":{tokenPath:"item.focus.border",fallback:"#652BDF"},"--pg-disabled-bg":{tokenPath:"item.disabled.background",fallback:"#FFFFFF"},"--pg-disabled-text":{tokenPath:"item.disabled.text",fallback:"#9CA3AF"},"--pg-disabled-opacity":{tokenPath:"item.disabled.opacity",fallback:"0.5"}};function Ml(n){var r=n,{className:t,tokens:e,style:o}=r,a=h(r,["className","tokens","style"]);let l=P("pagination",El,{tokens:e,extra:o});return(0,yt.jsx)("nav",i({role:"navigation","aria-label":"pagination","data-slot":"pagination",style:l.styles,className:c("mx-auto flex w-full justify-center group/pagination",t)},a))}function ra(n){var r=n,{className:t,isActive:e,disabled:o}=r,a=h(r,["className","isActive","disabled"]);return(0,yt.jsx)("a",i({"data-slot":"pagination-link","aria-current":e?"page":void 0,"data-active":e,style:{fontFamily:"var(--pg-font-family)",lineHeight:"var(--pg-line-height)",letterSpacing:"var(--pg-letter-spacing)"},className:c("inline-flex items-center justify-center w-9 h-9 border text-[var(--pg-font-size)] font-[var(--pg-font-weight)] transition-all select-none cursor-pointer outline-none relative rounded-[var(--pg-radius)]","bg-[var(--pg-item-bg)] border-[var(--pg-item-border)] text-[var(--pg-item-text)]","hover:bg-[var(--pg-item-hover-bg)] hover:border-[var(--pg-item-hover-border)]","data-[active=true]:bg-[var(--pg-active-bg)] data-[active=true]:text-[var(--pg-active-text)] data-[active=true]:border-[var(--pg-active-border)] data-[active=true]:shadow-sm","focus:z-10 focus:border-[var(--pg-focus-border)] focus:ring-1 focus:ring-[var(--pg-focus-border)]","data-[active=true]:focus:border-[var(--pg-focus-border)]","disabled:pointer-events-none disabled:bg-[var(--pg-disabled-bg)] disabled:text-[var(--pg-disabled-text)] disabled:opacity-[var(--pg-disabled-opacity)]",o&&"pointer-events-none bg-[var(--pg-disabled-bg)] text-[var(--pg-disabled-text)] opacity-[var(--pg-disabled-opacity)]",t)},a))}function Dl(o){var a=o,{className:t}=a,e=h(a,["className"]);return(0,yt.jsx)("ul",i({"data-slot":"pagination-content",className:c("flex items-center gap-[var(--pg-gap)]",t)},e))}function Wl(t){return(0,yt.jsx)("li",i({"data-slot":"pagination-item"},t))}function Hl(o){var a=o,{className:t}=a,e=h(a,["className"]);return(0,yt.jsx)(ra,y(i({"aria-label":"Go to previous page",className:c("gap-1 px-2.5",t)},e),{children:(0,yt.jsx)(qe.ChevronLeftIcon,{style:{width:"var(--pg-icon-size)",height:"var(--pg-icon-size)"}})}))}function Il(o){var a=o,{className:t}=a,e=h(a,["className"]);return(0,yt.jsx)(ra,y(i({"aria-label":"Go to next page",className:c("gap-1 px-2.5",t)},e),{children:(0,yt.jsx)(qe.ChevronRightIcon,{style:{width:"var(--pg-icon-size)",height:"var(--pg-icon-size)"}})}))}function _l(o){var a=o,{className:t}=a,e=h(a,["className"]);return(0,yt.jsxs)("span",y(i({"data-slot":"pagination-ellipsis",className:c("inline-flex items-center justify-center w-9 h-9 text-[var(--pg-icon-color)]",t)},e),{children:[(0,yt.jsx)(qe.MoreHorizontalIcon,{style:{width:"var(--pg-icon-size)",height:"var(--pg-icon-size)"}}),(0,yt.jsx)("span",{className:"sr-only",children:"More pages"})]}))}var Q=require("react/jsx-runtime"),Ll={"--sb-bg":{tokenPath:"container.background",fallback:"#ffffff"},"--sb-border":{tokenPath:"container.border",fallback:"#E5E7EB"},"--sb-width":{tokenPath:"container.width",fallback:"240px"},"--sb-width-collapsed":{tokenPath:"container.collapsedWidth",fallback:"64px"},"--sb-padding":{tokenPath:"container.padding",fallback:"8px"},"--sb-header-h":{tokenPath:"header.minHeight",fallback:"56px"},"--sb-title-color":{tokenPath:"header.titleColor",fallback:"#6B7280"},"--sb-title-size":{tokenPath:"header.titleFontSize",fallback:"14px"},"--sb-title-weight":{tokenPath:"header.titleFontWeight",fallback:"500"},"--sb-title-family":{tokenPath:"header.titleFontFamily",fallback:"Inter, sans-serif"},"--sb-title-line-height":{tokenPath:"header.titleLineHeight",fallback:"130%"},"--sb-title-letter-spacing":{tokenPath:"header.titleLetterSpacing",fallback:"-0.04em"},"--sb-item-radius":{tokenPath:"item.radius",fallback:"8px"},"--sb-item-h":{tokenPath:"item.height",fallback:"36px"},"--sb-item-px":{tokenPath:"item.paddingX",fallback:"8px"},"--sb-item-gap":{tokenPath:"item.gap",fallback:"12px"},"--sb-item-size":{tokenPath:"item.fontSize",fallback:"14px"},"--sb-item-weight":{tokenPath:"item.fontWeight",fallback:"500"},"--sb-item-color":{tokenPath:"item.color",fallback:"#6B7280"},"--sb-item-family":{tokenPath:"item.fontFamily",fallback:"Inter, sans-serif"},"--sb-item-line-height":{tokenPath:"item.lineHeight",fallback:"130%"},"--sb-item-letter-spacing":{tokenPath:"item.letterSpacing",fallback:"-0.04em"},"--sb-item-hover-bg":{tokenPath:"item.hover.background",fallback:"#F3F4F6"},"--sb-item-hover-color":{tokenPath:"item.hover.color",fallback:"#111827"},"--sb-item-active-bg":{tokenPath:"item.active.background",fallback:"#F4F0FF"},"--sb-item-active-color":{tokenPath:"item.active.color",fallback:"#6D28D9"},"--sb-section-color":{tokenPath:"section.titleColor",fallback:"#9CA3AF"},"--sb-section-size":{tokenPath:"section.titleFontSize",fallback:"10px"},"--sb-section-family":{tokenPath:"section.titleFontFamily",fallback:"Inter, sans-serif"},"--sb-section-line-height":{tokenPath:"section.titleLineHeight",fallback:"130%"},"--sb-section-letter-spacing":{tokenPath:"section.titleLetterSpacing",fallback:"-0.04em"},"--sb-section-gap":{tokenPath:"section.gap",fallback:"16px"},"--sb-toggle-color":{tokenPath:"toggle.color",fallback:"#9CA3AF"},"--sb-toggle-hover":{tokenPath:"toggle.hoverColor",fallback:"#6B7280"},"--sb-motion":{tokenPath:"motion.duration",fallback:"250ms"}},Ol=()=>(0,Q.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Q.jsx)("path",{d:"M12.2664 7.6831C12.5105 7.43903 12.9061 7.43903 13.1502 7.6831C13.3943 7.92718 13.3943 8.32282 13.1502 8.56689L11.7171 10L13.1502 11.4331C13.3943 11.6772 13.3943 12.0728 13.1502 12.3169C12.9061 12.561 12.5105 12.561 12.2664 12.3169L10.3914 10.4419C10.1474 10.1978 10.1474 9.80218 10.3914 9.55811L12.2664 7.6831Z",fill:"currentColor"}),(0,Q.jsx)("path",{d:"M16.25 4.79167C16.25 4.21637 15.7836 3.75 15.2083 3.75H4.79167C4.21637 3.75 3.75 4.21637 3.75 4.79167V15.2083C3.75 15.7836 4.21637 16.25 4.79167 16.25H15.2083C15.7836 16.25 16.25 15.7836 16.25 15.2083V4.79167ZM17.5 15.2083C17.5 16.474 16.474 17.5 15.2083 17.5H4.79167C3.52601 17.5 2.5 16.474 2.5 15.2083V4.79167C2.5 3.52601 3.52601 2.5 4.79167 2.5H15.2083C16.474 2.5 17.5 3.52601 17.5 4.79167V15.2083Z",fill:"currentColor"}),(0,Q.jsx)("path",{d:"M7.5 3.125V16.875H6.25V3.125H7.5Z",fill:"currentColor"})]}),Vl=()=>(0,Q.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Q.jsx)("path",{d:"M11.4583 7.73217C11.2143 7.48809 10.8186 7.48809 10.5745 7.73217C10.3305 7.97625 10.3305 8.37188 10.5745 8.61596L12.0076 10.0491L10.5745 11.4822C10.3305 11.7262 10.3305 12.1219 10.5745 12.366C10.8186 12.61 11.2143 12.61 11.4583 12.366L13.3333 10.491C13.5774 10.2469 13.5774 9.85125 13.3333 9.60717L11.4583 7.73217Z",fill:"currentColor"}),(0,Q.jsx)("path",{d:"M16.25 4.79167C16.25 4.21637 15.7836 3.75 15.2083 3.75H4.79167C4.21637 3.75 3.75 4.21637 3.75 4.79167V15.2083C3.75 15.7836 4.21637 16.25 4.79167 16.25H15.2083C15.7836 16.25 16.25 15.7836 16.25 15.2083V4.79167ZM17.5 15.2083C17.5 16.474 16.474 17.5 15.2083 17.5H4.79167C3.52601 17.5 2.5 16.474 2.5 15.2083V4.79167C2.5 3.52601 3.52601 2.5 4.79167 2.5H15.2083C16.474 2.5 17.5 3.52601 17.5 4.79167V15.2083Z",fill:"currentColor"}),(0,Q.jsx)("path",{d:"M7.5 3.125V16.875H6.25V3.125H7.5Z",fill:"currentColor"})]});function Gl({title:t="Tu Nave",sections:e,items:o,collapsed:a=!1,onToggleCollapse:n,onItemClick:r,className:l,tokens:s}){let p=P("sidebar",Ll,{tokens:s}),f=e!=null?e:o?[{id:"default",items:o}]:[];return(0,Q.jsxs)("aside",{style:p.styles,className:c("flex h-full flex-col border-r","bg-[var(--sb-bg)] border-[var(--sb-border)]","transition-[width] duration-[var(--sb-motion)] ease-in-out",a?"w-[var(--sb-width-collapsed)]":"w-[var(--sb-width)]",l),children:[(0,Q.jsxs)("div",{className:"flex items-center justify-between px-4 py-3",style:{minHeight:"var(--sb-header-h)"},children:[!a&&(0,Q.jsx)("span",{className:"truncate",style:{color:"var(--sb-title-color)",fontSize:"var(--sb-title-size)",fontWeight:"var(--sb-title-weight)",fontFamily:"var(--sb-title-family)",lineHeight:"var(--sb-title-line-height)",letterSpacing:"var(--sb-title-letter-spacing)"},children:t}),n&&(0,Q.jsx)("button",{type:"button",onClick:n,className:c("transition-colors outline-none cursor-pointer","text-[var(--sb-toggle-color)] hover:text-[var(--sb-toggle-hover)]",a&&"mx-auto"),"aria-label":a?"Expand sidebar":"Collapse sidebar",children:a?(0,Q.jsx)(Vl,{}):(0,Q.jsx)(Ol,{})})]}),(0,Q.jsx)("nav",{className:"flex flex-col overflow-y-auto overflow-x-hidden",style:{gap:"var(--sb-section-gap)",paddingLeft:"var(--sb-padding)",paddingRight:"var(--sb-padding)"},children:f.map(u=>(0,Q.jsxs)("div",{className:"flex flex-col gap-1",children:[!a&&u.title&&(0,Q.jsx)("span",{className:"px-2 mb-1 font-bold uppercase",style:{color:"var(--sb-section-color)",fontSize:"var(--sb-section-size)",fontFamily:"var(--sb-section-family)",lineHeight:"var(--sb-section-line-height)",letterSpacing:"var(--sb-section-letter-spacing)"},children:u.title}),u.items.map(d=>{let b=d.active;return(0,Q.jsxs)("div",{onClick:()=>d.href&&(r==null?void 0:r(d.href)),style:{cursor:d.href?"pointer":"default"},title:a?d.label:void 0,className:c("flex items-center transition-all select-none","h-[var(--sb-item-h)] rounded-[var(--sb-item-radius)] px-[var(--sb-item-px)] gap-[var(--sb-item-gap)]","text-[var(--sb-item-size)] font-[var(--sb-item-weight)]",a&&"justify-center px-0",b?"bg-[var(--sb-item-active-bg)] text-[var(--sb-item-active-color)]":"text-[var(--sb-item-color)] hover:bg-[var(--sb-item-hover-bg)] hover:text-[var(--sb-item-hover-color)]"),"aria-label":a?d.label:void 0,role:d.href?"button":void 0,children:[(0,Q.jsx)("span",{className:"flex h-5 w-5 shrink-0 items-center justify-center",children:d.icon}),!a&&(0,Q.jsx)("span",{className:"truncate",style:{fontFamily:"var(--sb-item-family)",lineHeight:"var(--sb-item-line-height)",letterSpacing:"var(--sb-item-letter-spacing)"},children:d.label})]},d.id)})]},u.id))})]})}var Ce=O(require("@radix-ui/react-tabs"),1);var ho=require("react/jsx-runtime"),$l={"--tabs-list-bg":{tokenPath:"tabsList.background",fallback:"#e2e5e9"},"--tabs-list-text":{tokenPath:"tabsList.color",fallback:"#000000"},"--tabs-trigger-color":{tokenPath:"tabsTrigger.color",fallback:"#000000"},"--tabs-trigger-active-bg":{tokenPath:"tabsTrigger.active.background",fallback:"#a3aab8"},"--tabs-trigger-active-text":{tokenPath:"tabsTrigger.active.color",fallback:"#000000"},"--tabs-trigger-disabled-opacity":{tokenPath:"tabsTrigger.disabled.opacity",fallback:"0.5"},"--tabs-trigger-disabled-bg":{tokenPath:"tabsTrigger.disabled.background",fallback:"#FFFFFF"},"--tabs-trigger-active-box-shadow":{tokenPath:"tabsTrigger.active.boxShadow",fallback:"0px 1px 2px rgba(0, 0, 0, 0.05)"},"--tabs-font-family":{tokenPath:"fontFamily",fallback:"inherit"},"--tabs-line-height":{tokenPath:"lineHeight",fallback:"130%"},"--tabs-letter-spacing":{tokenPath:"letterSpacing",fallback:"-0.04em"},"--tabs-hover-bg":{tokenPath:"tabsTrigger.hover.background",fallback:"#a3aab8"},"--tabs-trigger-disabled-color":{tokenPath:"tabsTrigger.disabled.color",fallback:"#000000"},"--tabs-focus-inner":{tokenPath:"tabsFocusRing.innerColor",fallback:"var(--color-white)"},"--tabs-focus-outer":{tokenPath:"tabsFocusRing.outerColor",fallback:"var(--color-focus-ring)"},"--tabs-focus-inner-size":{tokenPath:"tabsFocusRing.innerSize",fallback:"2px"},"--tabs-focus-outer-size":{tokenPath:"tabsFocusRing.outerSize",fallback:"4px"},"--tabs-list-border-radius":{tokenPath:"tabsList.radius",fallback:"6px"},"--tabs-trigger-border-radius":{tokenPath:"tabsList.radius",fallback:"6px"}};function jl(n){var r=n,{className:t,size:e="medium",tokens:o}=r,a=h(r,["className","size","tokens"]);let l=P("tabs",$l,{size:e,tokens:o}),s=W(l.tokens,"sizes",e),p=y(i({},l.styles),{"--tabs-font-size":s.fontSize,"--tabs-font-weight":s.fontWeight});return(0,ho.jsx)(Ce.Root,i({"data-slot":"tabs","data-size":e,style:p,className:c("group/tabs flex flex-col gap-2",t)},a))}function Ul(o){var a=o,{className:t}=a,e=h(a,["className"]);return(0,ho.jsx)(Ce.List,i({"data-slot":"tabs-list",style:{fontFamily:"var(--tabs-font-family)",lineHeight:"var(--tabs-line-height)",letterSpacing:"var(--tabs-letter-spacing)"},className:c("inline-flex items-center gap-1 rounded-[var(--tabs-list-border-radius)]","bg-[var(--tabs-list-bg)] text-[color:var(--tabs-list-text)]","text-[length:var(--tabs-font-size)] font-[var(--tabs-font-weight)]","group-data-[size=medium]/tabs:h-[42px]","group-data-[size=small]/tabs:h-[32px]","group-data-[size=medium]/tabs:p-[4px]","group-data-[size=small]/tabs:p-[3px]","group/tabs",t)},e))}function Kl(o){var a=o,{className:t}=a,e=h(a,["className"]);return(0,ho.jsx)(Ce.Trigger,i({"data-slot":"tabs-trigger",style:{fontFamily:"var(--tabs-font-family)",lineHeight:"var(--tabs-line-height)",letterSpacing:"var(--tabs-letter-spacing)"},className:c("inline-flex items-center justify-center whitespace-nowrap","rounded-[var(--tabs-trigger-border-radius)] border border-transparent transition-all","text-[var(--tabs-trigger-color)]","text-[length:var(--tabs-font-size)] font-[var(--tabs-font-weight)]","data-[state=active]:bg-[var(--tabs-trigger-active-bg)]","data-[state=active]:text-[var(--tabs-trigger-active-text)]","data-[state=active]:shadow-[0px_2px_4px_-1px_#0000000F,0px_4px_6px_-1px_#0000001A]","data-[state=active]:disabled:bg-[var(--tabs-trigger-active-bg)]","disabled:bg-[var(--tabs-trigger-disabled-bg)]","disabled:text-[var(--tabs-trigger-disabled-color)]","disabled:pointer-events-none","hover:bg-[var(--tabs-hover-bg)]","focus-visible:outline-none","focus-visible:relative","focus-visible:after:absolute","focus-visible:after:inset-0","focus-visible:after:rounded-[var(--tabs-trigger-border-radius)]","focus-visible:after:pointer-events-none","focus-visible:after:shadow-[0_0_0_var(--tabs-focus-inner-size)_var(--tabs-focus-inner),0_0_0_var(--tabs-focus-outer-size)_var(--tabs-focus-outer)]","group-data-[size=medium]/tabs:h-[34px]","group-data-[size=medium]/tabs:px-[12px]","group-data-[size=small]/tabs:h-[28px]","group-data-[size=small]/tabs:px-[10px]",t)},e))}function Xl(o){var a=o,{className:t}=a,e=h(a,["className"]);return(0,ho.jsx)(Ce.Content,i({"data-slot":"tabs-content",className:c("outline-none",t)},e))}var mt=require("react/jsx-runtime"),Yl={"--tour-bg":{tokenPath:"backgroundColor",fallback:"#FFFFFF"},"--tour-border":{tokenPath:"borderColor",fallback:"#E2E5E9"},"--tour-radius":{tokenPath:"borderRadius",fallback:"12px"},"--tour-padding":{tokenPath:"padding",fallback:"16px"},"--tour-shadow":{tokenPath:"shadow",fallback:"0px 4px 12px rgba(18, 18, 23, 0.08)"},"--tour-gap":{tokenPath:"gap",fallback:"12px"},"--tour-step-color":{tokenPath:"step.color",fallback:"#6E7991"},"--tour-step-family":{tokenPath:"step.fontFamily",fallback:"inherit"},"--tour-step-size":{tokenPath:"step.fontSize",fallback:"14px"},"--tour-step-weight":{tokenPath:"step.fontWeight",fallback:550},"--tour-step-line-height":{tokenPath:"step.lineHeight",fallback:"130%"},"--tour-step-letter-spacing":{tokenPath:"step.letterSpacing",fallback:"-0.04em"},"--tour-title-color":{tokenPath:"title.color",fallback:"#020303"},"--tour-title-family":{tokenPath:"title.fontFamily",fallback:"inherit"},"--tour-title-size":{tokenPath:"title.fontSize",fallback:"16px"},"--tour-title-weight":{tokenPath:"title.fontWeight",fallback:550},"--tour-title-line-height":{tokenPath:"title.lineHeight",fallback:"130%"},"--tour-title-letter-spacing":{tokenPath:"title.letterSpacing",fallback:"-0.04em"},"--tour-description-color":{tokenPath:"description.color",fallback:"#6E7991"},"--tour-description-family":{tokenPath:"description.fontFamily",fallback:"inherit"},"--tour-description-size":{tokenPath:"description.fontSize",fallback:"14px"},"--tour-description-weight":{tokenPath:"description.fontWeight",fallback:400},"--tour-description-line-height":{tokenPath:"description.lineHeight",fallback:"130%"},"--tour-description-letter-spacing":{tokenPath:"description.letterSpacing",fallback:"-0.04em"},"--tour-actions-gap":{tokenPath:"actions.gap",fallback:"8px"},"--tour-arrow-size":{tokenPath:"arrow.size",fallback:"12px"},"--tour-arrow-bg":{tokenPath:"arrow.background",fallback:"#FFFFFF"},"--tour-arrow-border":{tokenPath:"arrow.borderColor",fallback:"#E2E5E9"}};function Zl(w){var m=w,{className:t,currentStep:e,totalSteps:o,title:a,description:n,onBack:r,onNext:l,backLabel:s="Atras",nextLabel:p="Siguiente",disableBack:f=!1,disableNext:u=!1,showPointer:d=!0,tokens:b,style:v}=m,x=h(m,["className","currentStep","totalSteps","title","description","onBack","onNext","backLabel","nextLabel","disableBack","disableNext","showPointer","tokens","style"]);let z=P("tour",Yl,{tokens:b,extra:v}),T=Math.min(Math.max(e,1),Math.max(o,1)),E=Math.max(o,1);return(0,mt.jsx)("div",{className:"inline-block",style:z.styles,children:(0,mt.jsxs)("div",y(i({"data-slot":"tour",className:c("relative w-full min-w-[280px] max-w-[360px] border rounded-[var(--tour-radius)] bg-[var(--tour-bg)] border-[var(--tour-border)] p-[var(--tour-padding)] shadow-[var(--tour-shadow)]",t)},x),{children:[d&&(0,mt.jsx)("svg",{"aria-hidden":!0,width:"15",height:"7",viewBox:"0 0 15 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"absolute left-1/2 top-[-6px] z-10 -translate-x-1/2",children:(0,mt.jsx)("path",{d:"M5.65683 0.585783C6.43788 -0.195265 7.70421 -0.195265 8.48526 0.585783L14.1421 6.24264H7.07104H-2.2769e-05L5.65683 0.585783Z",fill:"var(--tour-arrow-bg)"})}),(0,mt.jsxs)("div",{className:"flex flex-col",style:{gap:"var(--tour-gap)"},children:[(0,mt.jsxs)("p",{className:"m-0",style:{color:"var(--tour-step-color)",fontFamily:"var(--tour-step-family)",fontSize:"var(--tour-step-size)",fontWeight:"var(--tour-step-weight)",lineHeight:"var(--tour-step-line-height)",letterSpacing:"var(--tour-step-letter-spacing)"},children:[T,"/",E]}),(0,mt.jsxs)("div",{className:"space-y-1",children:[(0,mt.jsx)("h3",{className:"m-0",style:{color:"var(--tour-title-color)",fontFamily:"var(--tour-title-family)",fontSize:"var(--tour-title-size)",fontWeight:"var(--tour-title-weight)",lineHeight:"var(--tour-title-line-height)",letterSpacing:"var(--tour-title-letter-spacing)"},children:a}),(0,mt.jsx)("p",{className:"m-0",style:{color:"var(--tour-description-color)",fontFamily:"var(--tour-description-family)",fontSize:"var(--tour-description-size)",fontWeight:"var(--tour-description-weight)",lineHeight:"var(--tour-description-line-height)",letterSpacing:"var(--tour-description-letter-spacing)"},children:n})]}),(0,mt.jsxs)("div",{className:"mt-2 flex items-center justify-between",style:{gap:"var(--tour-actions-gap)"},children:[(0,mt.jsx)(Lt,{variant:"secondary",size:"small",onClick:r,disabled:f,children:s}),(0,mt.jsx)(Lt,{variant:"primary",size:"small",onClick:l,disabled:u,children:p})]})]})]}))})}var Yn=require("@radix-ui/react-slot"),$o=O(require("react"),1);var Zn=require("react/jsx-runtime");function ia(p){var f=p,{className:t,size:e="md",color:o="default",tokens:a,asChild:n=!1,style:r,children:l}=f,s=h(f,["className","size","color","tokens","asChild","style","children"]);var w,m,z,T,E,B,M,C,k;let u=P("icon",{},{tokens:a,variant:o,size:e,extra:r}),d=(m=(w=W(u.tokens,"sizes"))==null?void 0:w[e])!=null?m:20,b=(T=(z=u.tokens)==null?void 0:z.color)!=null?T:"currentColor",v=i({"--icon-size":`${d}px`,"--icon-color":b},u.styles);return(0,Zn.jsx)(n?Yn.Slot:"span",y(i({"data-slot":"icon",style:v,className:c("inline-flex items-center justify-center shrink-0 leading-none","w-[var(--icon-size)] h-[var(--icon-size)] text-[var(--icon-color)]",t)},s),{children:$o.isValidElement(l)?$o.cloneElement(l,{width:(B=(E=l.props)==null?void 0:E.width)!=null?B:d,height:(C=(M=l.props)==null?void 0:M.height)!=null?C:d,stroke:"currentColor",color:"currentColor",className:c("shrink-0",(k=l.props)==null?void 0:k.className)}):l}))}var jo=require("react/jsx-runtime");function ql({icon:t,label:e,iconPosition:o="left",className:a}){return(0,jo.jsxs)("div",{className:c("inline-flex items-center gap-2 text-sm font-medium",a),children:[o==="left"&&t,(0,jo.jsx)("span",{className:"leading-none",children:e}),o==="right"&&t]})}var Te=require("react/jsx-runtime");function Jl({size:t="lg",className:e}){return(0,Te.jsx)("span",{className:e,style:{display:"inline-flex",alignItems:"center",justifyContent:"center",minHeight:"100vh",width:"100vw",background:"#fff"},children:(0,Te.jsx)(ia,{size:t,children:(0,Te.jsxs)("svg",{viewBox:"0 0 24 24",width:"48",height:"48",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Te.jsx)("circle",{cx:"12",cy:"12",r:"10",stroke:"#e0e0e0",strokeWidth:"4",fill:"none"}),(0,Te.jsx)("path",{d:"M12 2a10 10 0 0 1 10 10",stroke:"#652BDF",strokeWidth:"4",fill:"none",children:(0,Te.jsx)("animateTransform",{attributeName:"transform",type:"rotate",from:"0 12 12",to:"360 12 12",dur:"1s",repeatCount:"indefinite"})})]})})})}var qn=O(require("@radix-ui/react-separator"),1);var Jn=require("react/jsx-runtime"),Ql={"--separator-width":{tokenPath:"orientation.horizontal.width",fallback:"100%"},"--separator-height":{tokenPath:"orientation.horizontal.height",fallback:"1px"},"--separator-color":{tokenPath:"color",fallback:"#E5E7EB"},"--separator-opacity":{tokenPath:"opacity",fallback:"1"}},tc={"--separator-width":{tokenPath:"orientation.vertical.width",fallback:"1px"},"--separator-height":{tokenPath:"orientation.vertical.height",fallback:"18px"},"--separator-color":{tokenPath:"color",fallback:"#E5E7EB"},"--separator-opacity":{tokenPath:"opacity",fallback:"1"}};function ec(r){var l=r,{className:t,orientation:e="horizontal",decorative:o=!0,tokens:a}=l,n=h(l,["className","orientation","decorative","tokens"]);let s=e==="vertical"?tc:Ql,p=P("separator",s,{tokens:a});return(0,Jn.jsx)(qn.Root,i({"data-slot":"separator",decorative:o,orientation:e,style:p.styles,className:c(`
|
|
268
|
+
shrink-0
|
|
269
|
+
bg-[--separator-color]
|
|
270
|
+
opacity-[--separator-opacity]
|
|
271
|
+
w-[--separator-width]
|
|
272
|
+
h-[--separator-height]
|
|
273
|
+
data-[orientation=horizontal]:block
|
|
274
|
+
data-[orientation=vertical]:inline-block
|
|
275
|
+
`,t)},n))}var Je={name:"mockup-default",schema:"ui.theme.v1",version:"1.0.0",tokens:{meta:{theme:"default-v-4.0.1"},foundations:{colors:{brand:{50:"#F6F2FD",100:"#E6DCFA",200:"#F4F0FF",300:"#A78BFA",500:"#652BDF",700:"#3C168E",900:"#1E0A52"},neutral:{0:"#FFFFFF",50:"#F9FAFB",100:"#F3F4F6",125:"#F0F0F0",150:"#E2E5E9",200:"#E5E7EB",225:"#EEF2F7",300:"#D1D5DB",350:"#C3C7D1",400:"#9CA3AF",450:"#A3AAB8",500:"#6B7280",550:"#9DA5B5",600:"#4B5563",650:"#6E7991",700:"#374151",750:"#3A3F4B",800:"#1F2937",850:"#020303",900:"#111827",950:"#F9F9FA"},feedback:{success:{50:"#F2FDF8",500:"#16A34A",700:"#128751"},warning:{50:"#FEFAF0",100:"#FEF3C7",500:"#F59E0B",700:"#C26E04"},error:{50:"#FEEEEB",100:"#FEF2F2",500:"#DC2626",600:"#FB3131",700:"#C2040C",800:"#FECFCD"},info:{50:"#F0F5FE",500:"#2563EB",700:"#0465C2"}}},typography:{fontFamily:{base:"inherit"},size:{10:"10px",12:"12px",13:"13px",14:"14px",16:"16px",18:"18px",20:"20px",24:"24px",30:"30px",32:"32px"},weight:{400:400,500:500,550:550,600:600,700:700},lineHeight:{tight:"1.2",normal:"1.4",relaxed:"1.6"},letterSpacing:{normal:"0",tight:"-0.02em",tighter:"-0.04em"}},spacing:{0:"0px",.5:"2px",1:"4px",1.25:"5px",1.5:"6px",1.75:"7px",2:"8px",2.5:"10px",3:"12px",4:"16px",4.5:"18px",5:"20px",6:"24px",6.5:"26px",7:"28px",8:"32px",8.5:"34px",9:"36px",10:"40px",11:"44px",12:"48px",14:"56px",16:"64px",60:"240px"},maxWidth:{compact:"360px",full:"1184px",container:"1440px",dashboardMain:"767px",dashboardRight:"337px",dashboardAccred:"347px",sidebar:"240px",dropdown:"12rem"},radius:{none:"0px",xs:"2px",sm:"6px",md:"8px",lg:"12px",xl:"16px","2xl":"18px",full:"9999px"},shadow:{none:"none",xs:"0 1px 2px rgba(0,0,0,0.04)",sm:"0 1px 3px rgba(0,0,0,0.08)",md:"0 4px 12px rgba(0,0,0,0.1)",lg:"0 8px 24px rgba(0,0,0,0.12)",focus:"0px 0px 0px 4px",focusSm:"0px 0px 0px 2px",dropdown:"0px 2px 4px -1px rgba(0,0,0,0.06), 0px 4px 6px -1px rgba(0,0,0,0.1)",drawer:"0px 4px 6px -2px rgba(0, 0, 0, 0.05), 0px 6px 12px -4px rgba(0, 0, 0, 0.1)"},border:{width:{0:"0",1:"1px",2:"2px",4:"4px"}},motion:{duration:{fast:"120ms",normal:"200ms",slow:"300ms"},easing:{in:"ease-in",out:"ease-out",inOut:"ease-in-out",standard:"cubic-bezier(0.2, 0, 0, 1)"}},opacity:{disabled:.4,muted:.7,overlay:.5},zIndex:{base:1,dropdown:1e3,modal:1100,overlay:1200,toast:1300,tooltip:1400},other:{backdropBlur:"4px",cursor:{grab:"grab",grabbing:"grabbing"},borderStyle:{dashed:"dashed"},scrollBehavior:"smooth",maxHeight:"80vh",transparent:"transparent",auto:"auto"}},semanticTokens:{text:{primary:"{foundations.colors.neutral.900}",secondary:"{foundations.colors.neutral.700}",muted:"{foundations.colors.neutral.500}",inverse:"{foundations.colors.neutral.0}"},surface:{default:"{foundations.colors.neutral.0}",muted:"{foundations.colors.neutral.50}",hover:"{foundations.colors.neutral.100}",selected:"{foundations.colors.brand.50}"},border:{default:"{foundations.colors.neutral.200}",focus:"{foundations.colors.brand.500}",subtle:"{foundations.colors.neutral.100}"},action:{primary:"{foundations.colors.brand.500}",primaryHover:"{foundations.colors.brand.700}",secondary:"{foundations.colors.neutral.100}",disabled:"{foundations.colors.neutral.300}"},feedback:{success:{bg:"{foundations.colors.feedback.success.50}",text:"{foundations.colors.feedback.success.700}",border:"{foundations.colors.feedback.success.500}",iconBg:"{semanticTokens.surface.muted}",action:"{semanticTokens.text.primary}"},error:{bg:"{foundations.colors.feedback.error.50}",text:"{foundations.colors.feedback.error.700}",border:"{foundations.colors.feedback.error.500}"},warning:{bg:"{foundations.colors.feedback.warning.50}",text:"{foundations.colors.feedback.warning.700}",border:"{foundations.colors.feedback.warning.500}"},info:{bg:"{foundations.colors.feedback.info.50}",text:"{foundations.colors.feedback.info.700}",border:"{foundations.colors.feedback.info.500}"}},state:{disabled:{bg:"{foundations.colors.neutral.200}",text:"{foundations.colors.neutral.400}",border:"{foundations.colors.neutral.300}"}}},components:{button:{base:{radius:"{foundations.radius.md}",fontWeight:"{foundations.typography.weight.400}",transition:"{foundations.motion.duration.fast}",display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"{foundations.spacing.2}",outline:"none"},sizes:{small:{height:"{foundations.spacing.9}",paddingX:'{foundations.spacing.["2.5"]}',fontSize:"{foundations.typography.size.14}",fontWeight:"{foundations.typography.weight.550}",iconSize:"{foundations.typography.size.16}"},medium:{height:"{foundations.spacing.10}",paddingX:"{foundations.spacing.3}",fontSize:"{foundations.typography.size.14}",fontWeight:"{foundations.typography.weight.550}",iconSize:"{foundations.typography.size.16}"},large:{height:"{foundations.spacing.11}",paddingX:"{foundations.spacing.4}",fontSize:"{foundations.typography.size.16}",fontWeight:"{foundations.typography.weight.550}",iconSize:"{foundations.typography.size.20}"}},variants:{primary:{background:"{foundations.colors.brand.500}",color:"{foundations.colors.neutral.0}",hover:{background:"{foundations.colors.brand.700}"},focus:{boxShadow:"{foundations.shadow.focus} {foundations.colors.brand.500}"},disabled:{background:"{foundations.colors.neutral.150}",color:"{foundations.colors.neutral.450}"},loading:{background:"{foundations.colors.brand.500}",color:"{foundations.colors.neutral.0}"}},secondary:{background:"{foundations.colors.neutral.0}",color:"{foundations.colors.brand.500}",hover:{background:"{foundations.colors.brand.100}",color:"{foundations.colors.brand.700}"},focus:{boxShadow:"{foundations.shadow.focus} {foundations.colors.brand.500}"},disabled:{background:"{foundations.other.transparent}",color:"{foundations.colors.neutral.450}",border:"{foundations.colors.neutral.150}"},loading:{background:"{foundations.colors.neutral.0}",color:"{foundations.colors.brand.500}",border:"{foundations.colors.brand.100}"}},tertiary:{background:"{foundations.other.transparent}",color:"{foundations.colors.brand.500}",hover:{background:"{foundations.other.transparent}",color:"{foundations.colors.brand.700}"},focus:{boxShadow:"{foundations.shadow.focus} {foundations.colors.brand.500}",color:"{foundations.colors.brand.500}"},disabled:{color:"{foundations.colors.neutral.450}",background:"{foundations.other.transparent}"},loading:{color:"{foundations.colors.brand.500}",background:"{foundations.other.transparent}"}}},tones:{neutral:{variants:{primary:{background:"{foundations.colors.neutral.850}",color:"{foundations.colors.neutral.0}",hover:{background:"{foundations.colors.neutral.750}"},focus:{boxShadow:"{foundations.shadow.focus} {foundations.colors.neutral.500}"},loading:{background:"{foundations.colors.neutral.850}",color:"{foundations.colors.neutral.0}"},disabled:{background:"{foundations.colors.neutral.150}",color:"{foundations.colors.neutral.450}"}},secondary:{background:"{foundations.colors.neutral.0}",color:"{foundations.colors.neutral.850}",border:"{foundations.border.width.1} solid {foundations.colors.neutral.350}",hover:{background:"{foundations.colors.neutral.100}",color:"{foundations.colors.neutral.850}"},focus:{boxShadow:"{foundations.shadow.focus} {foundations.colors.neutral.500}"},loading:{background:"{foundations.colors.neutral.0}",color:"{foundations.colors.neutral.850}",border:"{foundations.colors.neutral.350}"},disabled:{background:"{foundations.other.transparent}",color:"{foundations.colors.neutral.450}",border:"{foundations.colors.neutral.150}"}},tertiary:{background:"{foundations.other.transparent}",color:"{foundations.colors.neutral.750}",hover:{background:"{foundations.other.transparent}",color:"{foundations.colors.neutral.850}"},focus:{boxShadow:"{foundations.shadow.focus} {foundations.colors.neutral.500}"},loading:{color:"{foundations.colors.neutral.750}",background:"{foundations.other.transparent}"},disabled:{color:"{foundations.colors.neutral.450}",background:"{foundations.other.transparent}"}}}},destructive:{variants:{primary:{background:"{foundations.colors.feedback.error.700}",color:"{foundations.colors.neutral.0}",hover:{background:"{foundations.colors.feedback.error.500}"},focus:{boxShadow:"{foundations.shadow.focus} {foundations.colors.feedback.error.500}"},loading:{background:"{foundations.colors.feedback.error.700}",color:"{foundations.colors.neutral.0}"},disabled:{background:"{foundations.colors.neutral.150}",color:"{foundations.colors.neutral.450}"}},secondary:{background:"{foundations.colors.neutral.0}",color:"{foundations.colors.feedback.error.700}",border:"{foundations.border.width.1} solid {foundations.colors.feedback.error.700}",hover:{background:"{foundations.colors.feedback.error.50}",color:"{foundations.colors.feedback.error.700}"},focus:{boxShadow:"{foundations.shadow.focus} {foundations.colors.feedback.error.500}"},loading:{background:"{foundations.colors.neutral.0}",color:"{foundations.colors.feedback.error.700}",border:"{foundations.colors.feedback.error.700}"},disabled:{background:"{foundations.other.transparent}",color:"{foundations.colors.neutral.450}",border:"{foundations.colors.neutral.150}"}},tertiary:{background:"{foundations.other.transparent}",color:"{foundations.colors.feedback.error.700}",hover:{background:"{foundations.other.transparent}",color:"{foundations.colors.feedback.error.500}"},focus:{boxShadow:"{foundations.shadow.focus} {foundations.colors.feedback.error.500}"},loading:{color:"{foundations.colors.feedback.error.700}",background:"{foundations.other.transparent}"},disabled:{color:"{foundations.colors.neutral.450}",background:"{foundations.other.transparent}"}}}}}},label:{fontSize:"{foundations.typography.size.14}",color:"{semanticTokens.text.primary}",padding:"{foundations.spacing.2} {foundations.spacing.3}",fontWeight:"{foundations.typography.weight.500}"},input:{base:{background:"{foundations.colors.neutral.0}",boxShadow:"{foundations.shadow.xs}",color:"{foundations.colors.neutral.850}",border:"{foundations.border.width.1} solid {foundations.colors.neutral.150}",radius:"{foundations.radius.md}",hover:{color:"{foundations.colors.neutral.850}",background:"{foundations.colors.neutral.0}",border:"{foundations.border.width.1} solid {foundations.colors.neutral.350}"},focus:{border:"{foundations.border.width.1} solid {foundations.colors.brand.500}",boxShadow:"{foundations.shadow.focusSm} {foundations.colors.brand.100}",color:"{foundations.colors.neutral.850}"},filled:{color:"{foundations.colors.neutral.850}",background:"{foundations.colors.neutral.950}",boxShadow:"{foundations.shadow.xs}"},disabled:{background:"{foundations.colors.neutral.150}",color:"{foundations.colors.neutral.550}",border:"{foundations.border.width.1} solid {foundations.colors.neutral.350}",boxShadow:"{foundations.shadow.xs}"},error:{background:"{foundations.colors.neutral.0}",border:"{foundations.border.width.1} solid {foundations.colors.feedback.error.600}",color:"{foundations.colors.feedback.error.600}",boxShadow:"{foundations.shadow.xs}",filled:{border:"{foundations.border.width.1} solid {foundations.colors.feedback.error.600}",color:"{foundations.colors.neutral.850}",boxShadow:"{foundations.shadow.xs}"},focus:{border:"{foundations.border.width.1} solid {foundations.colors.feedback.error.600}",boxShadow:"{foundations.shadow.focusSm} {foundations.colors.feedback.error.800}",color:"{foundations.colors.neutral.850}"},hover:{border:"{foundations.border.width.1} solid {foundations.colors.feedback.error.700}",boxShadow:"{foundations.shadow.focusSm} {foundations.colors.feedback.error.800}",color:"{foundations.colors.neutral.850}"}}},sizes:{medium:{height:"{foundations.spacing.11}",padding:"{foundations.spacing.3}",labelFontSize:"{foundations.typography.size.14}",inputFontSize:"{foundations.typography.size.16}",helperFontSize:"{foundations.typography.size.14}",labelFontWeight:"{foundations.typography.weight.550}",inputFontWeight:"{foundations.typography.weight.400}",helperFontWeight:"{foundations.typography.weight.400}",labelColor:"{foundations.colors.neutral.850}",helperColor:"{foundations.colors.neutral.650}",iconSize:"{foundations.typography.size.16}"},small:{height:"{foundations.spacing.8}",padding:'{foundations.spacing.3} {foundations.spacing.["2.5"]}',labelFontSize:"{foundations.typography.size.14}",inputFontSize:"{foundations.typography.size.14}",helperFontSize:"{foundations.typography.size.14}",labelFontWeight:"{foundations.typography.weight.550}",inputFontWeight:"{foundations.typography.weight.400}",helperFontWeight:"{foundations.typography.weight.400}",labelColor:"{foundations.colors.neutral.850}",helperColor:"{foundations.colors.neutral.650}",iconSize:"{foundations.typography.size.16}"}}},emptyState:{base:{fontFamily:"{foundations.typography.fontFamily.base}",lineHeight:"{foundations.typography.lineHeight.130}",letterSpacing:"{foundations.typography.letterSpacing.tighter}",container:{background:"{foundations.other.transparent}",paddingY:"{foundations.spacing.6}",paddingX:"{foundations.spacing.5}",gap:"{foundations.spacing.6}"},content:{gap:"{foundations.spacing.5}"},icon:{color:"{foundations.colors.neutral.650}",containerPadding:"{foundations.spacing.3}"},text:{gap:"{foundations.spacing.1.5}"},title:{color:"{foundations.colors.neutral.850}",fontWeight:"{foundations.typography.weight.550}"},description:{color:"{foundations.colors.neutral.650}",fontWeight:"{foundations.typography.weight.400}"},actions:{gap:"{foundations.spacing.2}"},sizes:{medium:{minWidth:"280px",maxWidth:"400px",iconSize:"{foundations.spacing.6}",titleSize:"{foundations.typography.size.16}",descriptionSize:"{foundations.typography.size.14}"},small:{minWidth:"280px",maxWidth:"360px",iconSize:"{foundations.spacing.4}",titleSize:"{foundations.typography.size.16}",descriptionSize:"{foundations.typography.size.12}"}}}},fileUpload:{base:{container:{background:"{foundations.other.transparent}",padding:"{foundations.spacing.6}"},dropzone:{radius:"{foundations.radius.xl}",borderStyle:"{foundations.other.borderStyle.dashed}",borderWidth:"{foundations.border.width.1}",borderColor:"{semanticTokens.border.default}",paddingX:"{foundations.spacing.10}",paddingY:"{foundations.spacing.14}",gap:"{foundations.spacing.4}"},icon:{size:"{foundations.typography.size.30}",color:"{foundations.colors.neutral.650}",wrapperSize:"{foundations.spacing.12}",wrapperRadius:"{foundations.spacing.6}",wrapperBg:"{foundations.colors.neutral.125}"},title:{color:"{foundations.colors.neutral.850}",fontSize:"{foundations.typography.size.16}",fontWeight:"{foundations.typography.weight.550}"},description:{color:"{foundations.colors.neutral.650}",fontSize:"{foundations.typography.size.14}",fontWeight:"{foundations.typography.weight.400}"},actions:{gap:"{foundations.spacing.2}"}}},select:{base:{background:"{foundations.colors.neutral.0}",boxShadow:"{foundations.shadow.xs}",color:"{foundations.colors.neutral.850}",border:"{foundations.border.width.1} solid {foundations.colors.neutral.150}",radius:"{foundations.radius.md}",hover:{color:"{foundations.colors.neutral.850}",background:"{foundations.colors.neutral.0}",border:"{foundations.border.width.1} solid {foundations.colors.neutral.350}"},focus:{border:"{foundations.border.width.1} solid {foundations.colors.brand.500}",boxShadow:"{foundations.shadow.focusSm} {foundations.colors.brand.100}",color:"{foundations.colors.neutral.850}"},filled:{color:"{foundations.colors.neutral.850}",background:"{foundations.colors.neutral.950}",boxShadow:"{foundations.shadow.xs}"},disabled:{background:"{foundations.colors.neutral.150}",color:"{foundations.colors.neutral.550}",border:"{foundations.border.width.1} solid {foundations.colors.neutral.350}",boxShadow:"{foundations.shadow.xs}"},error:{background:"{foundations.colors.neutral.0}",border:"{foundations.border.width.1} solid {foundations.colors.feedback.error.600}",color:"{foundations.colors.feedback.error.600}",boxShadow:"{foundations.shadow.xs}",filled:{border:"{foundations.border.width.1} solid {foundations.colors.feedback.error.600}",color:"{foundations.colors.neutral.850}",boxShadow:"{foundations.shadow.xs}"},focus:{border:"{foundations.border.width.1} solid {foundations.colors.feedback.error.600}",boxShadow:"{foundations.shadow.focusSm} {foundations.colors.feedback.error.800}",color:"{foundations.colors.neutral.850}"},hover:{border:"{foundations.border.width.1} solid {foundations.colors.feedback.error.700}",boxShadow:"{foundations.shadow.focusSm} {foundations.colors.feedback.error.800}",color:"{foundations.colors.neutral.850}"}}},sizes:{medium:{height:"{foundations.spacing.11}",padding:"{foundations.spacing.3}",labelFontSize:"{foundations.typography.size.14}",inputFontSize:"{foundations.typography.size.16}",helperFontSize:"{foundations.typography.size.14}",labelFontWeight:"{foundations.typography.weight.550}",inputFontWeight:"{foundations.typography.weight.400}",helperFontWeight:"{foundations.typography.weight.400}",labelColor:"{foundations.colors.neutral.850}",helperColor:"{foundations.colors.neutral.650}",iconSize:"{foundations.typography.size.16}"},small:{height:"{foundations.spacing.8}",padding:'{foundations.spacing.3} {foundations.spacing.["2.5"]}',labelFontSize:"{foundations.typography.size.14}",inputFontSize:"{foundations.typography.size.14}",helperFontSize:"{foundations.typography.size.14}",labelFontWeight:"{foundations.typography.weight.550}",inputFontWeight:"{foundations.typography.weight.400}",helperFontWeight:"{foundations.typography.weight.400}",labelColor:"{foundations.colors.neutral.850}",helperColor:"{foundations.colors.neutral.650}",iconSize:"{foundations.typography.size.16}"}}},tooltip:{background:"{foundations.colors.neutral.850}",color:"{foundations.colors.neutral.0}",radius:"{foundations.radius.sm}",maxWidth:"300px",minHeight:"30px",gap:"{foundations.spacing.1}",paddingX:"{foundations.spacing.3}",paddingY:"{foundations.spacing.1.5}",fontSize:"{foundations.typography.size.14}",fontWeight:"{foundations.typography.weight.400}",lineHeight:"18px",letterSpacing:"{foundations.typography.letterSpacing.tighter}",fontFamily:"{foundations.typography.fontFamily.base}",textAlign:"left",caretColor:"{foundations.colors.neutral.850}",caretSize:"{foundations.spacing.1.5}",zIndex:"{foundations.zIndex.tooltip}"},accordion:{base:{radius:"{foundations.radius.sm}",borderWidth:"{foundations.border.width.1}",borderColor:"{foundations.colors.neutral.150}",background:"{foundations.colors.neutral.0}",transition:"{foundations.motion.duration.fast}",text:{title:"{foundations.colors.neutral.850}",content:"{foundations.colors.neutral.750}",icon:"{foundations.colors.neutral.650}"},states:{default:{background:"{foundations.colors.neutral.0}",borderColor:"{foundations.other.transparent}",text:"{foundations.colors.neutral.850}"},hover:{text:"{foundations.colors.brand.500}",icon:"{foundations.colors.brand.500}"},focus:{borderColor:"{foundations.colors.brand.500}",ring:"{foundations.shadow.focus} {foundations.colors.brand.500}"}}},sizes:{small:{trigger:{paddingY:"{foundations.spacing.3}",fontSize:"{foundations.typography.size.14}"},content:{fontSize:"{foundations.typography.size.14}",paddingTop:"{foundations.spacing.2}",paddingBottom:"{foundations.spacing.3}"},icon:{size:"{foundations.typography.size.14}"}},medium:{trigger:{paddingY:"{foundations.spacing.4}",fontSize:"{foundations.typography.size.16}"},content:{fontSize:"{foundations.typography.size.16}",paddingTop:"{foundations.spacing.3}",paddingBottom:"{foundations.spacing.4}"},icon:{size:"{foundations.typography.size.16}"}}}},checkbox:{base:{fontWeight:"{foundations.typography.weight.400}",lineHeight:"{foundations.typography.lineHeight.130}",gap:"{foundations.spacing.3}",textGap:"{foundations.spacing.1}",track:{radius:"{foundations.radius.sm}",background:"{semanticTokens.surface.muted}",border:"{semanticTokens.border.default}",focusBorder:"{semanticTokens.border.focus}"},checked:{background:"{foundations.colors.brand.500}",backgroundHover:"{foundations.colors.brand.700}"},disabled:{background:"{foundations.colors.neutral.150}",border:"{foundations.colors.neutral.150}",text:"{foundations.colors.neutral.450}"},thumb:{color:"{semanticTokens.surface.default}"},motion:{duration:"{foundations.motion.duration.fast}"}},sizes:{regular:{control:"{foundations.spacing.5}",labelFontSize:"{foundations.typography.size.16}",descriptionFontSize:"{foundations.typography.size.14}",labelFontWeight:"{foundations.typography.weight.400}",descriptionFontWeight:"{foundations.typography.weight.400}",labelColor:"{foundations.colors.neutral.850}",descriptionColor:"{foundations.colors.neutral.650}",icon:"{foundations.typography.size.16}"},small:{control:"{foundations.spacing.4}",labelFontSize:"{foundations.typography.size.14}",descriptionFontSize:"{foundations.typography.size.12}",labelFontWeight:"{foundations.typography.weight.400}",descriptionFontWeight:"{foundations.typography.weight.400}",labelColor:"{foundations.colors.neutral.850}",descriptionColor:"{foundations.colors.neutral.650}",icon:"{foundations.typography.size.14}"},extraSmall:{control:"{foundations.typography.size.14}",labelFontSize:"{foundations.typography.size.12}",descriptionFontSize:"{foundations.typography.size.12}",labelFontWeight:"{foundations.typography.weight.400}",descriptionFontWeight:"{foundations.typography.weight.400}",labelColor:"{foundations.colors.neutral.850}",descriptionColor:"{foundations.colors.neutral.650}",icon:"{foundations.typography.size.12}"}}},badge:{base:{fontWeight:"{foundations.typography.weight.550}",fontFamily:"{foundations.typography.fontFamily.base}",lineHeight:"{foundations.typography.lineHeight.130}",letterSpacing:"{foundations.typography.letterSpacing.tighter}"},sizes:{small:{height:"20px",fontSize:"{foundations.typography.size.12}",padding:'{foundations.spacing.["0.5"]} {foundations.spacing.2}'},medium:{height:"24px",fontSize:"{foundations.typography.size.14}",padding:'3px {foundations.spacing.["2.5"]}'},large:{height:"28px",fontSize:"{foundations.typography.size.16}",padding:"3.5px {foundations.spacing.3}"}},shapes:{rounded:{radius:"{foundations.radius.full}"},square:{radius:"{foundations.radius.md}"}},tones:{success:{background:"{foundations.colors.feedback.success.50}",color:"{foundations.colors.feedback.success.700}"},warning:{background:"{foundations.colors.feedback.warning.50}",color:"{foundations.colors.feedback.warning.700}"},error:{background:"{foundations.colors.feedback.error.50}",color:"{foundations.colors.feedback.error.700}"},info:{background:"{foundations.colors.feedback.info.50}",color:"{foundations.colors.feedback.info.700}"},neutral:{background:"{foundations.colors.neutral.950}",color:"{foundations.colors.neutral.750}",border:"{foundations.colors.neutral.150}"},brand:{background:"{foundations.colors.brand.50}",color:"{foundations.colors.brand.500}"}}},banner:{base:{radius:"{foundations.radius.lg}",paddingX:"{foundations.spacing.4}",paddingY:"{foundations.spacing.4}"},sizes:{full:{maxWidth:"{foundations.maxWidth.full}"},compact:{maxWidth:"{foundations.maxWidth.compact}"}},tones:{success:{background:"{foundations.colors.feedback.success.50}",border:"{foundations.colors.feedback.success.700}",text:"{semanticTokens.text.primary}",iconBg:"{semanticTokens.feedback.success.iconBg}",iconColor:"{foundations.colors.feedback.success.700}",action:"{semanticTokens.feedback.success.action}"},warning:{background:"{foundations.colors.feedback.warning.50}",border:"{foundations.colors.feedback.warning.700}",text:"{semanticTokens.text.primary}",iconBg:"{semanticTokens.surface.muted}",iconColor:"{foundations.colors.feedback.warning.700}",action:"{semanticTokens.text.primary}"},error:{background:"{foundations.colors.feedback.error.50}",border:"{foundations.colors.feedback.error.700}",text:"{semanticTokens.text.primary}",iconBg:"{semanticTokens.surface.muted}",iconColor:"{foundations.colors.feedback.error.700}",action:"{semanticTokens.text.primary}"},info:{background:"{foundations.colors.feedback.info.50}",border:"{foundations.colors.feedback.info.700}",text:"{semanticTokens.text.primary}",iconBg:"{semanticTokens.surface.muted}",iconColor:"{foundations.colors.feedback.info.700}",action:"{semanticTokens.text.primary}"},neutral:{background:"{foundations.colors.neutral.950}",border:"{foundations.colors.neutral.150}",text:"{semanticTokens.text.primary}",iconBg:"{semanticTokens.surface.muted}",iconColor:"{foundations.colors.neutral.750}",action:"{semanticTokens.text.primary}"},brand:{background:"{foundations.colors.brand.50}",color:"{foundations.colors.brand.500}",text:"{semanticTokens.text.primary}",iconBg:"{semanticTokens.surface.muted}",iconColor:"{foundations.colors.brand.500}",action:"{semanticTokens.text.primary}"}}},promoBanner:{primary:{background:"{semanticTokens.action.primary}",color:"{semanticTokens.text.inverse}",linkColor:"{semanticTokens.text.inverse}",linkUnderline:!0,borderRadius:"{foundations.radius.xl}",padding:"{foundations.spacing.3} {foundations.spacing.4}",imageBg:"{foundations.colors.neutral.200}",imageRadius:"10px"},secondary:{background:"{foundations.colors.brand.100}",color:"{semanticTokens.text.primary}",linkColor:"{foundations.colors.brand.500}",linkUnderline:!1,borderRadius:"{foundations.radius.xl}",padding:"{foundations.spacing.3} {foundations.spacing.4}",imageBg:"{foundations.colors.neutral.200}",imageRadius:"10px"},tertiary:{background:"{foundations.colors.feedback.warning.50}",color:"{semanticTokens.text.primary}",linkColor:"{foundations.colors.feedback.warning.500}",linkUnderline:!0,borderRadius:"{foundations.radius.xl}",padding:"{foundations.spacing.3} {foundations.spacing.4}",imageBg:"{foundations.colors.feedback.warning.100}",imageRadius:"10px"}},alert:{base:{radius:"{foundations.radius.lg}",fontFamily:"{foundations.typography.fontFamily.base}",lineHeight:"{foundations.typography.lineHeight.130}",letterSpacing:"{foundations.typography.letterSpacing.tighter}"},sizes:{inline:{maxWidth:"343px",minHeight:"56px",paddingX:"{foundations.spacing.4}",paddingY:"{foundations.spacing.3}",gap:"{foundations.spacing.3}",titleMaxLines:2,descriptionMaxLines:4},"full-width":{maxWidth:"{foundations.maxWidth.full}",minHeight:"76px",paddingX:"{foundations.spacing.6}",paddingY:"{foundations.spacing.4}",gap:"{foundations.spacing.3}",titleMaxLines:1,descriptionMaxLines:1},stacked:{maxWidth:"343px",minHeight:"82px",paddingX:"{foundations.spacing.4}",paddingY:"{foundations.spacing.3}",gap:"{foundations.spacing.2}",titleMaxLines:1,descriptionMaxLines:4}},title:{color:"{foundations.colors.neutral.850}",fontSize:"{foundations.typography.size.14}",fontWeight:"{foundations.typography.weight.550}",fontFamily:"{foundations.typography.fontFamily.base}"},description:{color:"{foundations.colors.neutral.750}",fontSize:"{foundations.typography.size.12}",fontWeight:"{foundations.typography.weight.400}",fontFamily:"{foundations.typography.fontFamily.base}"},cta:{fontSize:"{foundations.typography.size.12}",fontWeight:"{foundations.typography.weight.550}",fontFamily:"{foundations.typography.fontFamily.base}"},icon:{containerSize:"{foundations.spacing.8}",containerRadius:"{foundations.radius.md}"},close:{iconSize:"{foundations.typography.size.18}"},tones:{success:{background:"{foundations.colors.feedback.success.50}",border:"{foundations.colors.feedback.success.700}",text:"{semanticTokens.text.primary}",iconBg:"{semanticTokens.feedback.success.iconBg}",iconColor:"{foundations.colors.feedback.success.700}",action:"{semanticTokens.feedback.success.action}"},warning:{background:"{foundations.colors.feedback.warning.50}",border:"{foundations.colors.feedback.warning.700}",text:"{semanticTokens.text.primary}",iconBg:"{semanticTokens.surface.muted}",iconColor:"{foundations.colors.feedback.warning.700}",action:"{semanticTokens.text.primary}"},error:{background:"{foundations.colors.feedback.error.50}",border:"{foundations.colors.feedback.error.700}",text:"{semanticTokens.text.primary}",iconBg:"{semanticTokens.surface.muted}",iconColor:"{foundations.colors.feedback.error.700}",action:"{semanticTokens.text.primary}"},info:{background:"{foundations.colors.feedback.info.50}",border:"{foundations.colors.feedback.info.700}",text:"{semanticTokens.text.primary}",iconBg:"{semanticTokens.surface.muted}",iconColor:"{foundations.colors.feedback.info.700}",action:"{semanticTokens.text.primary}"}}},avatar:{sizes:{sm:{size:"{foundations.spacing.8}",fontSize:"{foundations.typography.size.12}"},md:{size:"{foundations.spacing.9}",fontSize:"{foundations.typography.size.14}"},lg:{size:"{foundations.spacing.11}",fontSize:"{foundations.typography.size.14}"}},base:{fontFamily:"{foundations.typography.fontFamily.base}",lineHeight:"{foundations.typography.lineHeight.130}",letterSpacing:"{foundations.typography.letterSpacing.tighter}",fallback:{background:"{foundations.colors.neutral.950}",color:"{foundations.colors.neutral.850}",fontWeight:"{foundations.typography.weight.550}",fontFamily:"{foundations.typography.fontFamily.base}",lineHeight:"{foundations.typography.lineHeight.130}",letterSpacing:"{foundations.typography.letterSpacing.tighter}"}},shapes:{radius:"{foundations.radius.full}"}},radio:{base:{fontWeight:"{foundations.typography.weight.400}",fontFamily:"{foundations.typography.fontFamily.base}",lineHeight:"{foundations.typography.lineHeight.130}",gap:"{foundations.spacing.3}",textGap:"{foundations.spacing.1}",outer:{radius:"{foundations.radius.full}",background:"{foundations.colors.neutral.0}",border:"{foundations.colors.neutral.150}",hoverBorder:"{foundations.colors.neutral.350}",focusBorder:"{semanticTokens.border.focus}"},checked:{background:"{foundations.colors.brand.500}",backgroundHover:"{foundations.colors.brand.700}"},disabled:{background:"{foundations.colors.neutral.150}",border:"{foundations.colors.neutral.350}",dot:"{foundations.colors.neutral.450}",text:"{foundations.colors.neutral.450}"},motion:{duration:"{foundations.motion.duration.fast}"}},sizes:{regular:{outer:{size:"{foundations.spacing.5}"},dot:{size:"{foundations.spacing.3}"},labelFontSize:"{foundations.typography.size.16}",descriptionFontSize:"{foundations.typography.size.14}",labelFontWeight:"{foundations.typography.weight.400}",descriptionFontWeight:"{foundations.typography.weight.400}",labelColor:"{foundations.colors.neutral.850}",descriptionColor:"{foundations.colors.neutral.650}"},small:{outer:{size:"{foundations.spacing.4}"},dot:{size:"{foundations.spacing.2}"},labelFontSize:"{foundations.typography.size.14}",descriptionFontSize:"{foundations.typography.size.12}",labelFontWeight:"{foundations.typography.weight.400}",descriptionFontWeight:"{foundations.typography.weight.400}",labelColor:"{foundations.colors.neutral.850}",descriptionColor:"{foundations.colors.neutral.650}"},extraSmall:{outer:{size:"{foundations.spacing.4}"},dot:{size:"{foundations.spacing.2}"},labelFontWeight:"{foundations.typography.weight.400}",descriptionFontWeight:"{foundations.typography.weight.400}",labelFontSize:"{foundations.typography.size.14}",descriptionFontSize:"{foundations.typography.size.12}",labelColor:"{foundations.colors.neutral.850}",descriptionColor:"{foundations.colors.neutral.650}"}}},switch:{base:{fontWeight:"{foundations.typography.weight.400}",lineHeight:"{foundations.typography.lineHeight.130}",gap:"{foundations.spacing.3}",textGap:"{foundations.spacing.1}",background:"{foundations.colors.neutral.350}",track:{offBackground:"{foundations.colors.neutral.150}",offBackgroundHover:"{foundations.colors.neutral.450}",onBackground:"{foundations.colors.brand.500}",onBackgroundHover:"{foundations.colors.brand.700}"},disabled:{track:"{foundations.colors.neutral.450}",handle:"{foundations.colors.neutral.150}",background:"{foundations.colors.neutral.150}",text:"{foundations.colors.neutral.450}"},motion:{duration:"{foundations.motion.duration.fast}"}},sizes:{regular:{track:{width:'{foundations.spacing.["8.5"]}',height:"{foundations.spacing.5}"},handle:{size:"{foundations.spacing.4}",translate:'{foundations.spacing.["1.75"]}'},labelFontSize:"{foundations.typography.size.16}",descriptionFontSize:"{foundations.typography.size.14}",labelFontWeight:"{foundations.typography.weight.400}",descriptionFontWeight:"{foundations.typography.weight.400}",labelColor:"{foundations.colors.neutral.850}",descriptionColor:"{foundations.colors.neutral.650}"},small:{track:{width:'{foundations.spacing.["6.5"]}',height:"{foundations.spacing.4}"},handle:{size:"{foundations.spacing.3}",translate:'{foundations.spacing.["1.25"]}'},labelFontSize:"{foundations.typography.size.12}",descriptionFontSize:"{foundations.typography.size.12}",labelFontWeight:"{foundations.typography.weight.400}",descriptionFontWeight:"{foundations.typography.weight.400}",labelColor:"{foundations.colors.neutral.850}",descriptionColor:"{foundations.colors.neutral.650}"},extraSmall:{track:{width:'{foundations.spacing.["6.5"]}',height:"{foundations.spacing.4}"},handle:{size:"{foundations.spacing.3}",translate:'{foundations.spacing.["1.25"]}'},labelFontWeight:"{foundations.typography.weight.400}",descriptionFontWeight:"{foundations.typography.weight.400}",labelFontSize:"{foundations.typography.size.12}",descriptionFontSize:"{foundations.typography.size.12}",labelColor:"{foundations.colors.neutral.850}",descriptionColor:"{foundations.colors.neutral.650}"}}},dropdown:{background:"{foundations.colors.neutral.0}",color:"{foundations.colors.neutral.850}",border:"{foundations.border.width.1} solid {foundations.colors.neutral.150}",radius:"{foundations.radius.md}",shadow:"{foundations.shadow.dropdown}",paddingX:"{foundations.spacing.2}",paddingY:"{foundations.spacing.1}",minWidth:"{foundations.maxWidth.dropdown}",fontSize:"{foundations.typography.size.14}",fontWeight:"{foundations.typography.weight.400}",lineHeight:"{foundations.typography.lineHeight.normal}",animation:{duration:"{foundations.motion.duration.fast}",easing:"{foundations.motion.easing.out}"},item:{height:"{foundations.spacing.9}",gap:"{foundations.spacing.1}",color:"{foundations.colors.neutral.850}",background:"{foundations.colors.neutral.0}",hoverBackground:"{foundations.colors.neutral.950}",activeBackground:"{foundations.colors.neutral.150}",disabledOpacity:"{foundations.opacity.disabled}",borderRadius:"{foundations.radius.md}",iconSize:"{foundations.typography.size.13}",iconColor:"{foundations.colors.brand.500}",fontSize:"{foundations.typography.size.14}",fontWeight:"{foundations.typography.weight.400}"},section:{labelColor:"{foundations.colors.neutral.650}",separatorColor:"{foundations.colors.neutral.150}"}},separator:{base:{orientation:{vertical:{width:"{foundations.border.width.1}",height:'{foundations.spacing.["4.5"]}'},horizontal:{width:"100%",height:"{foundations.border.width.1}"}},color:"{foundations.colors.neutral.150}",opacity:"1"}},alertDialog:{base:{overlay:{background:"rgba(0,0,0,{foundations.opacity.overlay})"},content:{background:"{foundations.colors.neutral.0}",radius:"{foundations.radius.2xl}",borderColor:"{foundations.colors.neutral.150}",width:"clamp(360px, calc(100dvw - 32px), 512px)",maxWidth:"512px",maxHeight:"calc(100dvh - 64px)",padding:"{foundations.spacing.6}",gap:"{foundations.spacing.6}"},header:{gap:"{foundations.spacing.4}"},footer:{gap:"{foundations.spacing.2}"},title:{color:"{foundations.colors.neutral.850}",fontSize:"{foundations.typography.size.18}",fontFamily:"{foundations.typography.fontFamily.base}",lineHeight:"{foundations.typography.lineHeight.130}",letterSpacing:"{foundations.typography.letterSpacing.tighter}",fontWeight:"{foundations.typography.weight.550}"},description:{color:"{foundations.colors.neutral.650}",fontSize:"{foundations.typography.size.16}",fontFamily:"{foundations.typography.fontFamily.base}",lineHeight:"{foundations.typography.lineHeight.130}",letterSpacing:"{foundations.typography.letterSpacing.tighter}",fontWeight:"{foundations.typography.weight.400}"},sizes:{regular:{padding:"{foundations.spacing.6}",gap:"{foundations.spacing.6}",headerGap:"{foundations.spacing.4}",footerGap:"{foundations.spacing.2}"}}}},card:{backgroundColor:"{semanticTokens.surface.default}",borderColor:"{semanticTokens.border.default}",color:"{foundations.colors.neutral.900}",borderRadius:"{foundations.radius.lg}",padding:"{foundations.spacing.4}",title:{fontSize:"{foundations.typography.size.18}",fontWeight:"{foundations.typography.weight.550}",lineHeight:"{foundations.typography.lineHeight.tight}",letterSpacing:"{foundations.typography.letterSpacing.tighter}"},variants:{primary:{backgroundColor:"{foundations.colors.neutral.0}",borderColor:"{foundations.colors.neutral.200}"},secondary:{backgroundColor:"{foundations.colors.neutral.50}",borderColor:"{foundations.other.transparent}"},tertiary:{backgroundColor:"{foundations.colors.neutral.0}",borderColor:"{foundations.colors.brand.500}"}}},integrationCard:{backgroundColor:"{foundations.colors.neutral.950}",borderColor:"{foundations.colors.neutral.200}",borderRadius:"{foundations.radius.xl}",title:{color:"{foundations.colors.neutral.900}",fontSize:"{foundations.typography.size.16}",fontWeight:"{foundations.typography.weight.550}"},description:{color:"{foundations.colors.neutral.500}",fontSize:"{foundations.typography.size.14}"},link:{color:"{foundations.colors.brand.500}",fontSize:"{foundations.typography.size.14}",fontWeight:"{foundations.typography.weight.550}"},variants:{default:{borderColor:"{foundations.colors.neutral.200}"},subtle:{borderColor:"{foundations.colors.neutral.225}"},none:{borderColor:"{foundations.other.transparent}"}}},charts:{backgroundColor:"{foundations.other.transparent}",borderColor:"{foundations.other.transparent}",borderRadius:"{foundations.radius.lg}",padding:"{foundations.spacing.0}",height:260,fontFamily:"{foundations.typography.fontFamily.base}",lineHeight:"{foundations.typography.lineHeight.130}",letterSpacing:"{foundations.typography.letterSpacing.tighter}",title:{color:"{semanticTokens.text.primary}",fontSize:"{foundations.typography.size.16}",fontWeight:"{foundations.typography.weight.550}"},subtitle:{color:"{semanticTokens.text.muted}",fontSize:"{foundations.typography.size.14}",fontWeight:"{foundations.typography.weight.400}"},grid:{color:"{semanticTokens.border.default}",dasharray:"{foundations.border.width.0}"},axis:{lineColor:"{semanticTokens.border.default}",labelColor:"{semanticTokens.text.muted}",fontSize:"{foundations.typography.size.12}"},baseline:{color:"{semanticTokens.border.default}",strokeWidth:"{foundations.border.width.1}",dasharray:"{foundations.border.width.0}"},legend:{color:"{semanticTokens.text.secondary}",fontSize:"{foundations.typography.size.14}",fontWeight:"{foundations.typography.weight.500}",dotSize:"{foundations.typography.size.10}",gap:"{foundations.spacing.4}"},tooltip:{background:"{semanticTokens.surface.default}",borderColor:"{semanticTokens.border.default}",radius:"{foundations.radius.md}",titleColor:"{semanticTokens.text.secondary}",valueColor:"{semanticTokens.text.primary}",titleFontSize:"{foundations.typography.size.12}",titleFontWeight:"{foundations.typography.weight.550}",valueFontSize:"{foundations.typography.size.14}",valueFontWeight:"{foundations.typography.weight.600}"},bar:{radius:"{foundations.spacing.2.5}",gap:"{foundations.spacing.2}",categoryGap:"16%",maxBarSize:"{foundations.spacing.14}"},line:{stroke:"{semanticTokens.action.primary}",strokeWidth:"{foundations.border.width.2}",curveType:"monotone",activeDotRadius:"{foundations.spacing.1}"},pie:{strokeColor:"{semanticTokens.surface.default}",strokeWidth:"{foundations.border.width.2}",paddingAngle:"{foundations.spacing.0}",innerRadius:"{foundations.spacing.0}",outerRadius:"{foundations.spacing.18}"},donut:{innerRadius:"{foundations.spacing.13}",outerRadius:"{foundations.spacing.18}",centerValueColor:"{semanticTokens.text.secondary}",centerValueSize:"{foundations.typography.size.24}",centerValueWeight:"{foundations.typography.weight.600}",centerLabelColor:"{semanticTokens.text.muted}",centerLabelSize:"{foundations.typography.size.12}",centerLabelWeight:"{foundations.typography.weight.500}"},emptyState:{color:"{semanticTokens.text.muted}",fontSize:"{foundations.typography.size.14}",fontWeight:"{foundations.typography.weight.400}",lineHeight:"{foundations.typography.lineHeight.130}",letterSpacing:"{foundations.typography.letterSpacing.tighter}"}},dragslider:{gap:"{foundations.spacing.4}",cursorGrab:"{foundations.other.cursor.grab}",cursorGrabbing:"{foundations.other.cursor.grabbing}",scrollBehavior:"{foundations.other.scrollBehavior}"},calendar:{base:{background:"{semanticTokens.surface.default}",radius:"{foundations.radius.md}",text:"{semanticTokens.text.primary}",muted:"{semanticTokens.text.muted}",border:"{semanticTokens.border.default}",item:{size:"{foundations.spacing.8}",radius:"{foundations.radius.sm}",default:{color:"{semanticTokens.text.primary}",background:"{foundations.other.transparent}"},hover:{background:"{foundations.colors.neutral.150}",color:"{semanticTokens.text.primary}"},current:{background:"{foundations.colors.neutral.150}",color:"{semanticTokens.text.primary}"},active:{background:"{foundations.colors.brand.500}",color:"{semanticTokens.text.inverse}"}}}},popover:{background:"{foundations.colors.neutral.0}",color:"{foundations.colors.neutral.850}",border:"{foundations.colors.neutral.150}",radius:"{foundations.radius.lg}",shadow:"{foundations.shadow.dropdown}",padding:"{foundations.spacing.3}",fontSize:"{foundations.typography.size.16}",fontWeight:"{foundations.typography.weight.400}",lineHeight:"{foundations.typography.lineHeight.normal}",header:{fontSize:"{foundations.typography.size.16}",fontWeight:"{foundations.typography.weight.400}",color:"{foundations.colors.neutral.850}"},description:{fontSize:"{foundations.typography.size.14}",fontWeight:"{foundations.typography.weight.400}",color:"{foundations.colors.neutral.650}"},divider:{color:"{foundations.colors.neutral.150}"},motion:{duration:"{foundations.motion.duration.normal}",easing:"{foundations.motion.easing.out}"},zIndex:"{foundations.zIndex.dropdown}"},pagination:{base:{radius:"{foundations.radius.md}",gap:"{foundations.spacing.2}",pageNumber:{fontSize:"{foundations.typography.size.14}",fontWeight:"{foundations.typography.weight.500}",color:"{semanticTokens.text.primary}"},icon:{size:"{foundations.typography.size.16}",color:"{foundations.colors.neutral.500}"},item:{default:{background:"{semanticTokens.surface.default}",border:"{semanticTokens.border.default}",color:"{semanticTokens.text.primary}"},hover:{background:"{foundations.colors.brand.100}",border:"{semanticTokens.border.default}"},active:{background:"{foundations.colors.brand.200}",text:"{semanticTokens.action.primary}",border:"{foundations.other.transparent}"},focus:{border:"{semanticTokens.border.focus}"},disabled:{background:"{foundations.colors.neutral.0}",text:"{foundations.colors.neutral.400}",opacity:"{foundations.opacity.overlay}"}}}},tabs:{base:{tabsList:{background:"{foundations.colors.neutral.150}",color:"{foundations.colors.neutral.750}",radius:"{foundations.radius.sm}"},tabsTrigger:{color:"{foundations.colors.neutral.750}",hover:{background:"{foundations.colors.neutral.950}",color:"{foundations.colors.neutral.850}"},active:{background:"{foundations.colors.neutral.0}",color:"{foundations.colors.neutral.850}"},disabled:{background:"{foundations.colors.neutral.0}",color:"{foundations.colors.neutral.550}",opacity:"{foundations.opacity.overlay}"}},tabsFocusRing:{innerColor:"{foundations.colors.neutral.0}",outerColor:"{foundations.colors.brand.500}",innerSize:"{foundations.border.width.2}",outerSize:"{foundations.border.width.4}"}},sizes:{medium:{fontSize:"{foundations.typography.size.14}",fontWeight:"{foundations.typography.weight.500}"},small:{fontSize:"{foundations.typography.size.12}",fontWeight:"{foundations.typography.weight.500}"}}},table:{base:{background:"{semanticTokens.surface.default}",border:"{semanticTokens.border.default}",radius:"{foundations.radius.md}",shadow:"{foundations.shadow.md}",headerBackground:"{foundations.colors.neutral.950}",headerTextColor:"{foundations.colors.neutral.650}",headerFontSize:"{foundations.typography.size.12}",headerFontWeight:"{foundations.typography.weight.600}",rowHoverBackground:"{semanticTokens.surface.hover}",rowSelectedBackground:"{foundations.colors.brand.200}",cellTextColor:"{semanticTokens.text.primary}",cellFontSize:"{foundations.typography.size.14}",descriptionColor:"{foundations.colors.neutral.650}",descriptionFontSize:"{foundations.typography.size.12}",descriptionFontWeight:"{foundations.typography.weight.400}"}},breadcrumb:{base:{gap:"{foundations.spacing.2}",maxLabelLength:"24",fontFamily:"{foundations.typography.fontFamily.base}",lineHeight:"{foundations.typography.lineHeight.130}",letterSpacing:"{foundations.typography.letterSpacing.tighter}",link:{default:{color:"{foundations.colors.brand.500}",fontWeight:"{foundations.typography.weight.600}"},hover:{color:"{foundations.colors.brand.700}",textDecoration:"underline"}},page:{color:"{foundations.colors.neutral.650}",fontWeight:"{foundations.typography.weight.550}"},separator:{color:"{foundations.colors.neutral.400}",size:"{foundations.typography.size.14}"}},sizes:{medium:{fontSize:"{foundations.typography.size.14}",gap:"{foundations.spacing.2}",itemMinHeight:"{foundations.typography.size.20}"},small:{fontSize:"{foundations.typography.size.12}",gap:"{foundations.spacing.2}",itemMinHeight:"{foundations.typography.size.18}"}}},loader:{base:{fontFamily:"{foundations.typography.fontFamily.base}",lineHeight:"{foundations.typography.lineHeight.130}",letterSpacing:"{foundations.typography.letterSpacing.tighter}"},sizes:{small:{spinnerSize:"{foundations.typography.size.16}",minWidth:"200px",maxWidth:"360px",minHeight:"200px",paddingX:"{foundations.spacing.4}",paddingY:"{foundations.spacing.4}",contentGap:"{foundations.spacing.4}",textGap:"{foundations.spacing.1}",labelFontWeight:"{foundations.typography.weight.550}",descriptionFontWeight:"{foundations.typography.weight.400}",labelFontSize:"{foundations.typography.size.16}",descriptionFontSize:"{foundations.typography.size.12}",labelColor:"{foundations.colors.neutral.850}",descriptionColor:"{foundations.colors.neutral.650}"},medium:{spinnerSize:"{foundations.typography.size.20}",minWidth:"280px",maxWidth:"400px",minHeight:"280px",paddingX:"{foundations.spacing.5}",paddingY:"{foundations.spacing.6}",contentGap:"{foundations.spacing.5}",textGap:"{foundations.spacing.1.5}",labelFontWeight:"{foundations.typography.weight.550}",descriptionFontWeight:"{foundations.typography.weight.400}",labelFontSize:"{foundations.typography.size.18}",descriptionFontSize:"{foundations.typography.size.14}",labelColor:"{foundations.colors.neutral.850}",descriptionColor:"{foundations.colors.neutral.650}"},large:{spinnerSize:"{foundations.typography.size.24}",minWidth:"280px",maxWidth:"400px",minHeight:"280px",paddingX:"{foundations.spacing.5}",paddingY:"{foundations.spacing.6}",contentGap:"{foundations.spacing.5}",textGap:"{foundations.spacing.1.5}",labelFontWeight:"{foundations.typography.weight.550}",descriptionFontWeight:"{foundations.typography.weight.400}",labelFontSize:"{foundations.typography.size.18}",descriptionFontSize:"{foundations.typography.size.14}",labelColor:"{foundations.colors.neutral.850}",descriptionColor:"{foundations.colors.neutral.650}"},extraLarge:{spinnerSize:"{foundations.typography.size.32}",minWidth:"280px",maxWidth:"400px",minHeight:"280px",paddingX:"{foundations.spacing.5}",paddingY:"{foundations.spacing.6}",contentGap:"{foundations.spacing.5}",textGap:"{foundations.spacing.1.5}",labelFontWeight:"{foundations.typography.weight.550}",descriptionFontWeight:"{foundations.typography.weight.400}",labelFontSize:"{foundations.typography.size.18}",descriptionFontSize:"{foundations.typography.size.14}",labelColor:"{foundations.colors.neutral.850}",descriptionColor:"{foundations.colors.neutral.650}"}},variants:{default:{color:"{foundations.colors.brand.500}"},primary:{color:"{foundations.colors.brand.500}"}}},progress:{base:{labelColor:"{semanticTokens.text.primary}",labelFontSize:"{foundations.typography.size.14}",labelFontWeight:"{foundations.typography.weight.550}",descriptionColor:"{semanticTokens.text.muted}",descriptionFontSize:"{foundations.typography.size.12}",descriptionFontWeight:"{foundations.typography.weight.400}",gap:'{foundations.spacing.["1.5"]}'},track:{height:'{foundations.spacing.["1.5"]}',radius:"{foundations.radius.full}",background:"{semanticTokens.surface.muted}"},indicator:{background:"{semanticTokens.action.primary}"},motion:{duration:"{foundations.motion.duration.normal}",easing:"{foundations.motion.easing.standard}"}},sidebar:{base:{container:{background:"{semanticTokens.surface.default}",border:"{semanticTokens.border.default}",width:"{foundations.maxWidth.sidebar}",collapsedWidth:"{foundations.spacing.16}",padding:"{foundations.spacing.2}"},header:{minHeight:"{foundations.spacing.14}",titleColor:"{semanticTokens.text.muted}",titleFontSize:"{foundations.typography.size.14}",titleFontWeight:"{foundations.typography.weight.500}"},item:{radius:"{foundations.radius.md}",height:"{foundations.spacing.9}",paddingX:"{foundations.spacing.2}",gap:"{foundations.spacing.3}",fontSize:"{foundations.typography.size.14}",fontWeight:"{foundations.typography.weight.500}",color:"{semanticTokens.text.muted}",hover:{background:"{semanticTokens.surface.hover}",color:"{semanticTokens.text.primary}"},active:{background:"{foundations.colors.brand.200}",color:"{semanticTokens.action.primary}"}},section:{titleColor:"{foundations.colors.neutral.400}",titleFontSize:"{foundations.typography.size.10}",gap:"{foundations.spacing.4}"},toggle:{color:"{foundations.colors.neutral.400}",hoverColor:"{foundations.colors.neutral.500}"},motion:{duration:"{foundations.motion.duration.normal}"}}},header:{container:{gapDesktop:"{foundations.spacing.3}",gapMobile:"{foundations.spacing.2}",minHeightDesktop:"{foundations.spacing.12}",minHeightMobile:"59px"},title:{color:"{foundations.colors.neutral.850}",fontSizeDesktop:"{foundations.typography.size.24}",fontSizeMobile:"{foundations.typography.size.18}",fontWeight:"{foundations.typography.weight.550}",fontFamily:"{foundations.typography.fontFamily.base}",lineHeight:"{foundations.typography.lineHeight.130}",letterSpacing:"{foundations.typography.letterSpacing.tighter}"},description:{color:"{foundations.colors.neutral.650}",fontSizeDesktop:"{foundations.typography.size.16}",fontSizeMobile:"{foundations.typography.size.14}",fontWeight:"{foundations.typography.weight.400}",fontFamily:"{foundations.typography.fontFamily.base}",lineHeight:"{foundations.typography.lineHeight.130}",letterSpacing:"{foundations.typography.letterSpacing.tighter}"}},navbar:{container:{height:"{foundations.spacing.16}",background:"{foundations.colors.neutral.0}",border:"{foundations.colors.neutral.150}",radius:"{foundations.radius.md}",iconColor:"{foundations.colors.neutral.550}"},expanded:{background:"{foundations.colors.neutral.0}"},content:{maxWidth:"{foundations.maxWidth.container}",paddingX:"{foundations.spacing.5}",gap:"{foundations.spacing.4}"},start:{gap:"{foundations.spacing.4}"},end:{gap:"{foundations.spacing.2}"},logo:{gap:"{foundations.spacing.2}"},merchant:{color:"{foundations.colors.neutral.850}",fontSize:"{foundations.typography.size.14}",fontWeight:"{foundations.typography.weight.550}",fontFamily:"{foundations.typography.fontFamily.base}",lineHeight:"{foundations.typography.lineHeight.130}",letterSpacing:"{foundations.typography.letterSpacing.tighter}",gap:"{foundations.spacing.5}",triggerGap:"{foundations.spacing.1}",paddingX:"{foundations.spacing.4}",paddingY:"{foundations.spacing.2.5}"},action:{gap:"{foundations.spacing.3}"},user:{nameColor:"{foundations.colors.neutral.850}",roleColor:"{foundations.colors.neutral.650}",roleFontSize:"{foundations.typography.size.12}",nameFontSize:"{foundations.typography.size.12}",nameFontWeight:"{foundations.typography.weight.550}",roleFontWeight:"{foundations.typography.weight.400}",nameFontFamily:"{foundations.typography.fontFamily.base}",roleFontFamily:"{foundations.typography.fontFamily.base}",nameLineHeight:"{foundations.typography.lineHeight.130}",roleLineHeight:"{foundations.typography.lineHeight.130}",nameLetterSpacing:"{foundations.typography.letterSpacing.tighter}",roleLetterSpacing:"{foundations.typography.letterSpacing.tighter}",gap:"{foundations.spacing.2}",paddingX:"{foundations.spacing.2.5}",paddingY:"{foundations.spacing.2.5}",triggerHover:"{foundations.colors.neutral.950}",focusColor:"{foundations.colors.brand.500}"},motion:{duration:"{foundations.motion.duration.fast}"}},drawer:{base:{overlay:{background:"rgba(0,0,0,{foundations.opacity.overlay})",opacity:"{foundations.opacity.disabled}",backdropBlur:"{foundations.other.backdropBlur}"},content:{background:"{foundations.colors.neutral.0}",radius:"{foundations.radius.xs}",borderColor:"{foundations.colors.neutral.150}",color:"{semanticTokens.text.primary}",borderWidth:"{foundations.border.width.1}",shadow:"{foundations.shadow.drawer}",padding:"{foundations.spacing.6}",maxHeight:"{foundations.other.maxHeight}"},header:{gap:"{foundations.spacing.2}"},footer:{paddingTop:"{foundations.spacing.4}",gap:"{foundations.spacing.2}",align:"end"},title:{color:"{foundations.colors.neutral.850}",fontSize:"{foundations.typography.size.24}"},description:{color:"{foundations.colors.neutral.650}",fontSize:"{foundations.typography.size.16}"},close:{size:"{foundations.typography.size.12}",color:"{foundations.colors.neutral.850}"}}},icon:{base:{color:"{semanticTokens.action.primary}"},sizes:{xs:"{foundations.typography.size.12}",sm:"{foundations.typography.size.16}",md:"{foundations.typography.size.20}",lg:"{foundations.typography.size.24}",xl:"{foundations.typography.size.32}"},variants:{default:{color:"{semanticTokens.action.primary}"},muted:{color:"{semanticTokens.text.muted}"},danger:{color:"{foundations.colors.feedback.error.500}"},success:{color:"{foundations.colors.feedback.success.500}"}}}}}};var Qn,sa=(Qn=process.env.NEXT_PUBLIC_THEME_CDN)!=null?Qn:"https://e3-ranty-sdk-js.naranjax.com/theme";var tr=["ui.theme.v1"];async function oc(){let t=await fetch(`${sa}/manifest.json?v=${Date.now()}`,{cache:"no-store"});if(!t.ok)throw new Error("Theme manifest not available");return t.json()}async function er(t){let o=(await oc())[t];if(!o)return null;let{version:a,schema:n}=o;if(!tr.includes(n))return console.warn("[Theme] Unsupported schema:",n),Je;let r=await fetch(`${sa}/${t}@${a}.json`,{cache:"force-cache",next:{revalidate:3600}});return console.log("[Theme] Fetched theme for",r),r.ok?await r.json():Je}var bo=require("react");async function or(t){let e=await er(t);if(console.log("CDN Theme:",e),e)return e}var Uo=require("react/jsx-runtime"),la=new Map,ac=Je;function ar({channelId:t,theme:e,children:o}){let[a,n]=(0,bo.useState)(e),[r,l]=(0,bo.useState)(!1);return(0,bo.useEffect)(()=>{if(e){n(e),l(!1);return}if(!t)return;if(la.has(t)){n(la.get(t)),l(!1);return}let s=!1;return l(!0),(async()=>{let p=await or(t);!s&&p&&(la.set(t,p),n(p),l(!1))})(),()=>{s=!0}},[t,e]),r||!a?(0,Uo.jsx)("div",{style:{minHeight:"100vh",width:"100vw",display:"flex",alignItems:"center",justifyContent:"center",background:"#fff",position:"fixed",top:0,left:0,zIndex:9999},children:(0,Uo.jsx)(Qo,{size:"extraLarge",variant:"primary",label:"Loading theme..."})}):(0,Uo.jsx)(Yo.Provider,{value:a!=null?a:ac.tokens,children:o})}var Ko=require("react/jsx-runtime");function nc({channelId:t,theme:e,children:o}){return(0,Ko.jsx)(Ko.Fragment,{children:ar({channelId:t,theme:e,children:o})})}0&&(module.exports={AIProvider,Accordion,AccordionContent,AccordionItem,AccordionTrigger,Alert,AlertDialog,AlertDialogAction,AlertDialogCancel,AlertDialogContent,AlertDialogDescription,AlertDialogFooter,AlertDialogHeader,AlertDialogOverlay,AlertDialogPortal,AlertDialogTitle,AlertDialogTrigger,Avatar,AvatarFallback,AvatarImage,Badge,Banner,Breadcrumb,BreadcrumbEllipsis,BreadcrumbItem,BreadcrumbLink,BreadcrumbList,BreadcrumbPage,BreadcrumbSeparator,Button,COMPONENT_NAMES,Calendar,Card,Charts,Checkbox,ColorExample,Combobox,DatePickerInput,DragSlider,Drawer,DrawerBody,DrawerClose,DrawerCloseButton,DrawerContent,DrawerDescription,DrawerFooter,DrawerHeader,DrawerOverlay,DrawerPortal,DrawerTitle,DrawerTrigger,DropdownMenu,DropdownMenuCheckboxItem,DropdownMenuContent,DropdownMenuGroup,DropdownMenuItem,DropdownMenuLabel,DropdownMenuPortal,DropdownMenuRadioGroup,DropdownMenuRadioItem,DropdownMenuSeparator,DropdownMenuShortcut,DropdownMenuSub,DropdownMenuSubContent,DropdownMenuSubTrigger,DropdownMenuTrigger,EmptyState,FileUpload,Header,INPUT_TOKEN_MAP,Icon,IconLabel,Input,IntegrationCard,Label,ListItem,Loader,LoaderInit,ModuleBox,Navbar,NavbarLogo,NavbarMerchant,NavbarUserMenu,Pagination,PaginationContent,PaginationEllipsis,PaginationItem,PaginationLink,PaginationNext,PaginationPrevious,PasswordInput,Popover,PopoverAnchor,PopoverContent,PopoverTrigger,Progress,RadioGroup,RadioItem,SearchBar,Select,Separator,Sidebar,Switch,Table,TableBody,TableCaption,TableCell,TableCellDescription,TableFooter,TableHead,TableHeader,TableRow,Tabs,TabsContent,TabsList,TabsTrigger,Textarea,ThemeProvider,Tooltip,TooltipContent,TooltipProvider,TooltipTrigger,Tour,accordionContentVariants,accordionTriggerVariants,bannerVariants,buttonBaseClasses,cn,inputSizeExtras,mapTokenStyles,resolveTokens,tokenAt,useAI,useTheme,useTokenStyles});
|