componentables 0.1.13 → 0.1.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1,143 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),T=require("react"),uo=require("react-dom");function yr(e){var t,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(r=yr(e[t]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function fo(){for(var e,t,r=0,o="",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=yr(e))&&(o&&(o+=" "),o+=t);return o}const Ot="-",po=e=>{const t=ho(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:s=>{const c=s.split(Ot);return c[0]===""&&c.length!==1&&c.shift(),br(c,t)||mo(s)},getConflictingClassGroupIds:(s,c)=>{const l=r[s]||[];return c&&o[s]?[...l,...o[s]]:l}}},br=(e,t)=>{if(e.length===0)return t.classGroupId;const r=e[0],o=t.nextPart.get(r),n=o?br(e.slice(1),o):void 0;if(n)return n;if(t.validators.length===0)return;const a=e.join(Ot);return t.validators.find(({validator:s})=>s(a))?.classGroupId},Ht=/^\[(.+)\]$/,mo=e=>{if(Ht.test(e)){const t=Ht.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},ho=e=>{const{theme:t,prefix:r}=e,o={nextPart:new Map,validators:[]};return yo(Object.entries(e.classGroups),r).forEach(([a,s])=>{wt(s,o,a,t)}),o},wt=(e,t,r,o)=>{e.forEach(n=>{if(typeof n=="string"){const a=n===""?t:Ut(t,n);a.classGroupId=r;return}if(typeof n=="function"){if(go(n)){wt(n(o),t,r,o);return}t.validators.push({validator:n,classGroupId:r});return}Object.entries(n).forEach(([a,s])=>{wt(s,Ut(t,a),r,o)})})},Ut=(e,t)=>{let r=e;return t.split(Ot).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},go=e=>e.isThemeGetter,yo=(e,t)=>t?e.map(([r,o])=>{const n=o.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([s,c])=>[t+s,c])):a);return[r,n]}):e,bo=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,o=new Map;const n=(a,s)=>{r.set(a,s),t++,t>e&&(t=0,o=r,r=new Map)};return{get(a){let s=r.get(a);if(s!==void 0)return s;if((s=o.get(a))!==void 0)return n(a,s),s},set(a,s){r.has(a)?r.set(a,s):n(a,s)}}},xr="!",xo=e=>{const{separator:t,experimentalParseClassName:r}=e,o=t.length===1,n=t[0],a=t.length,s=c=>{const l=[];let u=0,f=0,m;for(let y=0;y<c.length;y++){let C=c[y];if(u===0){if(C===n&&(o||c.slice(y,y+a)===t)){l.push(c.slice(f,y)),f=y+a;continue}if(C==="/"){m=y;continue}}C==="["?u++:C==="]"&&u--}const b=l.length===0?c:c.substring(f),h=b.startsWith(xr),p=h?b.substring(1):b,w=m&&m>f?m-f:void 0;return{modifiers:l,hasImportantModifier:h,baseClassName:p,maybePostfixModifierPosition:w}};return r?c=>r({className:c,parseClassName:s}):s},vo=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach(o=>{o[0]==="["?(t.push(...r.sort(),o),r=[]):r.push(o)}),t.push(...r.sort()),t},wo=e=>({cache:bo(e.cacheSize),parseClassName:xo(e),...po(e)}),ko=/\s+/,_o=(e,t)=>{const{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:n}=t,a=[],s=e.trim().split(ko);let c="";for(let l=s.length-1;l>=0;l-=1){const u=s[l],{modifiers:f,hasImportantModifier:m,baseClassName:b,maybePostfixModifierPosition:h}=r(u);let p=!!h,w=o(p?b.substring(0,h):b);if(!w){if(!p){c=u+(c.length>0?" "+c:c);continue}if(w=o(b),!w){c=u+(c.length>0?" "+c:c);continue}p=!1}const y=vo(f).join(":"),C=m?y+xr:y,x=C+w;if(a.includes(x))continue;a.push(x);const g=n(w,p);for(let N=0;N<g.length;++N){const v=g[N];a.push(C+v)}c=u+(c.length>0?" "+c:c)}return c};function Co(){let e=0,t,r,o="";for(;e<arguments.length;)(t=arguments[e++])&&(r=vr(t))&&(o&&(o+=" "),o+=r);return o}const vr=e=>{if(typeof e=="string")return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=vr(e[o]))&&(r&&(r+=" "),r+=t);return r};function To(e,...t){let r,o,n,a=s;function s(l){const u=t.reduce((f,m)=>m(f),e());return r=wo(u),o=r.cache.get,n=r.cache.set,a=c,c(l)}function c(l){const u=o(l);if(u)return u;const f=_o(l,r);return n(l,f),f}return function(){return a(Co.apply(null,arguments))}}const R=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},wr=/^\[(?:([a-z-]+):)?(.+)\]$/i,No=/^\d+\/\d+$/,jo=new Set(["px","full","screen"]),So=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Eo=/\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$/,Ao=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Io=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Po=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ne=e=>Te(e)||jo.has(e)||No.test(e),se=e=>Ae(e,"length",Fo),Te=e=>!!e&&!Number.isNaN(Number(e)),mt=e=>Ae(e,"number",Te),De=e=>!!e&&Number.isInteger(Number(e)),Do=e=>e.endsWith("%")&&Te(e.slice(0,-1)),A=e=>wr.test(e),ie=e=>So.test(e),Oo=new Set(["length","size","percentage"]),Mo=e=>Ae(e,Oo,kr),zo=e=>Ae(e,"position",kr),$o=new Set(["image","url"]),Lo=e=>Ae(e,$o,Bo),Ro=e=>Ae(e,"",Vo),Oe=()=>!0,Ae=(e,t,r)=>{const o=wr.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):r(o[2]):!1},Fo=e=>Eo.test(e)&&!Ao.test(e),kr=()=>!1,Vo=e=>Io.test(e),Bo=e=>Po.test(e),Go=()=>{const e=R("colors"),t=R("spacing"),r=R("blur"),o=R("brightness"),n=R("borderColor"),a=R("borderRadius"),s=R("borderSpacing"),c=R("borderWidth"),l=R("contrast"),u=R("grayscale"),f=R("hueRotate"),m=R("invert"),b=R("gap"),h=R("gradientColorStops"),p=R("gradientColorStopPositions"),w=R("inset"),y=R("margin"),C=R("opacity"),x=R("padding"),g=R("saturate"),N=R("scale"),v=R("sepia"),k=R("skew"),d=R("space"),E=R("translate"),$=()=>["auto","contain","none"],O=()=>["auto","hidden","clip","visible","scroll"],U=()=>["auto",A,t],P=()=>[A,t],S=()=>["",ne,se],z=()=>["auto",Te,A],X=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],B=()=>["solid","dashed","dotted","double","none"],te=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],j=()=>["start","end","center","between","around","evenly","stretch"],D=()=>["","0",A],G=()=>["auto","avoid","all","avoid-page","page","left","right","column"],W=()=>[Te,A];return{cacheSize:500,separator:":",theme:{colors:[Oe],spacing:[ne,se],blur:["none","",ie,A],brightness:W(),borderColor:[e],borderRadius:["none","","full",ie,A],borderSpacing:P(),borderWidth:S(),contrast:W(),grayscale:D(),hueRotate:W(),invert:D(),gap:P(),gradientColorStops:[e],gradientColorStopPositions:[Do,se],inset:U(),margin:U(),opacity:W(),padding:P(),saturate:W(),scale:W(),sepia:D(),skew:W(),space:P(),translate:P()},classGroups:{aspect:[{aspect:["auto","square","video",A]}],container:["container"],columns:[{columns:[ie]}],"break-after":[{"break-after":G()}],"break-before":[{"break-before":G()}],"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(),A]}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:$()}],"overscroll-x":[{"overscroll-x":$()}],"overscroll-y":[{"overscroll-y":$()}],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",De,A]}],basis:[{basis:U()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",A]}],grow:[{grow:D()}],shrink:[{shrink:D()}],order:[{order:["first","last","none",De,A]}],"grid-cols":[{"grid-cols":[Oe]}],"col-start-end":[{col:["auto",{span:["full",De,A]},A]}],"col-start":[{"col-start":z()}],"col-end":[{"col-end":z()}],"grid-rows":[{"grid-rows":[Oe]}],"row-start-end":[{row:["auto",{span:[De,A]},A]}],"row-start":[{"row-start":z()}],"row-end":[{"row-end":z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",A]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",A]}],gap:[{gap:[b]}],"gap-x":[{"gap-x":[b]}],"gap-y":[{"gap-y":[b]}],"justify-content":[{justify:["normal",...j()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...j(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...j(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[x]}],px:[{px:[x]}],py:[{py:[x]}],ps:[{ps:[x]}],pe:[{pe:[x]}],pt:[{pt:[x]}],pr:[{pr:[x]}],pb:[{pb:[x]}],pl:[{pl:[x]}],m:[{m:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],me:[{me:[y]}],mt:[{mt:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-x":[{"space-x":[d]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[d]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",A,t]}],"min-w":[{"min-w":[A,t,"min","max","fit"]}],"max-w":[{"max-w":[A,t,"none","full","min","max","fit","prose",{screen:[ie]},ie]}],h:[{h:[A,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[A,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[A,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[A,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ie,se]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",mt]}],"font-family":[{font:[Oe]}],"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",A]}],"line-clamp":[{"line-clamp":["none",Te,mt]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ne,A]}],"list-image":[{"list-image":["none",A]}],"list-style-type":[{list:["none","disc","decimal",A]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[C]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[C]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...B(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ne,se]}],"underline-offset":[{"underline-offset":["auto",ne,A]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",A]}],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",A]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[C]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...X(),zo]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Mo]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Lo]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[p]}],"gradient-via-pos":[{via:[p]}],"gradient-to-pos":[{to:[p]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[c]}],"border-w-x":[{"border-x":[c]}],"border-w-y":[{"border-y":[c]}],"border-w-s":[{"border-s":[c]}],"border-w-e":[{"border-e":[c]}],"border-w-t":[{"border-t":[c]}],"border-w-r":[{"border-r":[c]}],"border-w-b":[{"border-b":[c]}],"border-w-l":[{"border-l":[c]}],"border-opacity":[{"border-opacity":[C]}],"border-style":[{border:[...B(),"hidden"]}],"divide-x":[{"divide-x":[c]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[c]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[C]}],"divide-style":[{divide:B()}],"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:["",...B()]}],"outline-offset":[{"outline-offset":[ne,A]}],"outline-w":[{outline:[ne,se]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:S()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[C]}],"ring-offset-w":[{"ring-offset":[ne,se]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ie,Ro]}],"shadow-color":[{shadow:[Oe]}],opacity:[{opacity:[C]}],"mix-blend":[{"mix-blend":[...te(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":te()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",ie,A]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[m]}],saturate:[{saturate:[g]}],sepia:[{sepia:[v]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[m]}],"backdrop-opacity":[{"backdrop-opacity":[C]}],"backdrop-saturate":[{"backdrop-saturate":[g]}],"backdrop-sepia":[{"backdrop-sepia":[v]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",A]}],duration:[{duration:W()}],ease:[{ease:["linear","in","out","in-out",A]}],delay:[{delay:W()}],animate:[{animate:["none","spin","ping","pulse","bounce",A]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[N]}],"scale-x":[{"scale-x":[N]}],"scale-y":[{"scale-y":[N]}],rotate:[{rotate:[De,A]}],"translate-x":[{"translate-x":[E]}],"translate-y":[{"translate-y":[E]}],"skew-x":[{"skew-x":[k]}],"skew-y":[{"skew-y":[k]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",A]}],accent:[{accent:["auto",e]}],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",A]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",A]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[ne,se,mt]}],stroke:[{stroke:[e,"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"]}}},Wo=To(Go);function _(...e){return Wo(fo(e))}function _r(e){const t=parseInt(e.slice(1,3),16)/255,r=parseInt(e.slice(3,5),16)/255,o=parseInt(e.slice(5,7),16)/255,n=Math.max(t,r,o),a=Math.min(t,r,o);let s=0,c=0;const l=(n+a)/2;if(n!==a){const u=n-a;switch(c=l>.5?u/(2-n-a):u/(n+a),n){case t:s=((r-o)/u+(r<o?6:0))/6;break;case r:s=((o-t)/u+2)/6;break;case o:s=((t-r)/u+4)/6;break}}return[s*360,c*100,l*100]}function kt(e,t,r){r/=100;const o=t*Math.min(r,1-r)/100,n=a=>{const s=(a+e/30)%12,c=r-o*Math.max(Math.min(s-3,9-s,1),-1);return Math.round(255*c).toString(16).padStart(2,"0")};return`#${n(0)}${n(8)}${n(4)}`}function Ye(e){const[t,r,o]=_r(e);return{base:e,light:kt(t,Math.max(0,r-10),Math.min(100,o+15)),dark:kt(t,Math.min(100,r+10),Math.max(0,o-15))}}const V={colors:{primary:"#6366f1",primaryLight:"#818cf8",primaryDark:"#4f46e5",secondary:"#8b5cf6",secondaryLight:"#a78bfa",secondaryDark:"#7c3aed",danger:"#ef4444",dangerLight:"#f87171",dangerDark:"#dc2626",text:"#1f2937",textMuted:"#6b7280",textLight:"#9ca3af",border:"#e5e7eb",borderDark:"#d1d5db",background:"#ffffff",backgroundDark:"#f9fafb",backgroundLight:"#f3f4f6",disabled:"#e5e7eb",light:"#f9fafb",active:"#4338ca"}},Cr=T.createContext(V);function Ho(){return T.useContext(Cr)}function Yt(e){const t=document.documentElement;t.style.setProperty("--componentables-primary",e.colors.primary),t.style.setProperty("--componentables-primary-light",e.colors.primaryLight),t.style.setProperty("--componentables-primary-dark",e.colors.primaryDark),t.style.setProperty("--componentables-secondary",e.colors.secondary),t.style.setProperty("--componentables-secondary-light",e.colors.secondaryLight),t.style.setProperty("--componentables-secondary-dark",e.colors.secondaryDark),t.style.setProperty("--componentables-danger",e.colors.danger),t.style.setProperty("--componentables-danger-light",e.colors.dangerLight),t.style.setProperty("--componentables-danger-dark",e.colors.dangerDark),t.style.setProperty("--componentables-text",e.colors.text),t.style.setProperty("--componentables-text-muted",e.colors.textMuted),t.style.setProperty("--componentables-text-light",e.colors.textLight),t.style.setProperty("--componentables-border",e.colors.border),t.style.setProperty("--componentables-border-dark",e.colors.borderDark),t.style.setProperty("--componentables-background",e.colors.background),t.style.setProperty("--componentables-background-dark",e.colors.backgroundDark),t.style.setProperty("--componentables-background-light",e.colors.backgroundLight),t.style.setProperty("--componentables-disabled",e.colors.disabled),t.style.setProperty("--componentables-light",e.colors.light),t.style.setProperty("--componentables-active",e.colors.active)}function Uo({children:e,theme:t}){const r=T.useMemo(()=>{const o=t?.colors||{},n=o.primary?Ye(o.primary):null,a=o.secondary?Ye(o.secondary):null,s=o.danger?Ye(o.danger):null;return{colors:{primary:o.primary||V.colors.primary,primaryLight:n?.light||V.colors.primaryLight,primaryDark:n?.dark||V.colors.primaryDark,secondary:o.secondary||V.colors.secondary,secondaryLight:a?.light||V.colors.secondaryLight,secondaryDark:a?.dark||V.colors.secondaryDark,danger:o.danger||V.colors.danger,dangerLight:s?.light||V.colors.dangerLight,dangerDark:s?.dark||V.colors.dangerDark,text:o.text||V.colors.text,textMuted:o.textMuted||V.colors.textMuted,textLight:o.textLight||V.colors.textLight,border:o.border||V.colors.border,borderDark:o.borderDark||V.colors.borderDark,background:o.background||V.colors.background,backgroundDark:o.backgroundDark||V.colors.backgroundDark,backgroundLight:o.backgroundLight||V.colors.backgroundLight,disabled:o.disabled||V.colors.disabled,light:o.light||V.colors.light,active:o.active||V.colors.active}}},[t]);return typeof window<"u"&&Yt(r),T.useEffect(()=>{Yt(r)},[r]),T.createElement(Cr.Provider,{value:r},e)}const Yo={primary:"bg-primary text-white border-primary hover:bg-primary-dark hover:border-primary-dark active:bg-active",secondary:"bg-secondary text-white border-secondary hover:bg-secondary-dark hover:border-secondary-dark",outline:"bg-transparent text-primary border-primary hover:bg-primary hover:text-white",ghost:"bg-transparent text-primary border-transparent hover:bg-primary hover:text-white hover:border-primary",light:"bg-light text-text border-border hover:bg-background-light",danger:"bg-transparent text-danger border-danger hover:text-white hover:bg-danger hover:border-danger active:bg-danger-dark",link:"bg-transparent text-secondary-light! underline hover:text-primary! border-0"},qo={sm:"px-3 py-1.5 text-sm",md:"px-4 py-2 text-base",lg:"px-6 py-3 text-lg",xl:"px-8 py-4 text-xl"};function pe({children:e,onClick:t,disabled:r=!1,type:o="button",variant:n="primary",size:a="md",fullWidth:s=!1,loading:c=!1,className:l="",...u}){return i.jsxs("button",{type:o,onClick:r||c?void 0:t,disabled:r||c,className:_("inline-flex shadow-md hover:shadow-lg cursor-pointer items-center justify-center font-medium rounded-lg border transition-all duration-300 focus:outline-none focus:ring-2 focus:ring-primary focus:ring-opacity-50",r||c?"bg-disabled text-text-muted border-disabled cursor-not-allowed hover:bg-disabled hover:border-disabled hover:text-text-muted":Yo[n],qo[a],s&&"w-full",c&&"cursor-wait opacity-75",l),...u,children:[c&&i.jsxs("svg",{className:"w-4 h-4 mr-2 animate-spin",fill:"none",viewBox:"0 0 24 24",children:[i.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),i.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),e]})}function Xo({id:e,name:t,type:r="text",value:o,onChange:n,placeholder:a,label:s,error:c,disabled:l=!1,required:u=!1,colorScheme:f="secondary",className:m="",...b}){const h=()=>{const w="w-full p-4 border-2 rounded-lg text-base bg-white transition-all duration-300 focus:outline-none focus:ring-1 disabled:bg-light disabled:text-text-muted disabled:cursor-not-allowed placeholder:text-text-muted";if(c)return _(w,"border-danger focus:border-danger focus:shadow-danger-light");switch(f){case"primary":return _(w,"text-primary border-primary focus:border-primary");case"secondary":default:return _(w,"text-secondary border-secondary focus:border-secondary")}},p=()=>f==="primary"?"text-primary":"text-secondary";return i.jsxs("div",{className:_("mb-6",m),children:[s&&i.jsxs("label",{htmlFor:e,className:_("block mb-2 text-sm font-medium",p()),children:[s,u&&i.jsx("span",{className:"text-danger ml-1",children:"*"})]}),i.jsx("input",{id:e,name:t,type:r,value:o,onChange:n,placeholder:a,disabled:l,required:u,className:h(),...b}),c&&i.jsx("span",{className:"block mt-1 text-xs text-danger font-medium",children:c})]})}function Ko({id:e,name:t,value:r,onChange:o,placeholder:n,label:a,error:s,disabled:c=!1,required:l=!1,colorScheme:u="secondary",className:f="",rows:m=4,...b}){const h=()=>{const w="w-full p-4 border-2 rounded-lg text-base bg-white transition-all duration-300 focus:outline-none focus:ring-1 disabled:bg-light disabled:text-text-muted disabled:cursor-not-allowed placeholder:text-text-muted resize-none";if(s)return _(w,"border-danger focus:border-danger focus:shadow-danger-light");switch(u){case"primary":return _(w,"text-primary border-primary focus:border-primary");case"secondary":default:return _(w,"text-secondary border-secondary focus:border-secondary")}},p=()=>u==="primary"?"text-primary":"text-secondary";return i.jsxs("div",{className:_("mb-6",f),children:[a&&i.jsxs("label",{htmlFor:e,className:_("block mb-2 text-sm font-medium",p()),children:[a,l&&i.jsx("span",{className:"text-danger ml-1",children:"*"})]}),i.jsx("textarea",{id:e,name:t,value:r,onChange:o,placeholder:n,disabled:c,required:l,rows:m,className:h(),...b}),s&&i.jsx("span",{className:"block mt-1 text-xs text-danger font-medium",children:s})]})}const Tr={Input:Xo,InputArea:Ko};function Jo({id:e,name:t,checked:r=!1,onChange:o,disabled:n=!1,label:a,colorScheme:s="secondary",size:c="md",className:l="",...u}){const[f,m]=T.useState(r),b=x=>{const g=x.target.checked;m(g),o?.(g)},h=()=>({primary:{bg:"bg-primary",border:"border-primary",text:"text-primary"},secondary:{bg:"bg-secondary",border:"border-secondary",text:"text-secondary"}})[s],p=()=>{switch(c){case"sm":return"w-10 h-6";case"lg":return"w-16 h-8";case"md":default:return"w-13 h-7"}},w=()=>{switch(c){case"sm":return"w-5 h-5";case"lg":return"w-7 h-7";case"md":default:return"w-6 h-6"}},y=()=>{if(!f)return"translate-x-0";switch(c){case"sm":return"translate-x-5";case"lg":return"translate-x-8";case"md":default:return"translate-x-6"}},C=h();return i.jsxs("div",{className:_("flex items-center gap-3",l),children:[i.jsxs("div",{className:"relative",children:[i.jsx("input",{type:"checkbox",id:e,name:t,checked:f,onChange:b,disabled:n,className:"sr-only",...u}),i.jsx("label",{htmlFor:e,className:_("block cursor-pointer transition-all duration-300 rounded-full border-2",p(),f?_(C.bg,C.border):"bg-gray-200 border-gray-300",n?"opacity-50 cursor-not-allowed":"hover:shadow-md"),children:i.jsx("span",{className:_("absolute top-0.5 left-0.5 inline-block rounded-full bg-white transition-all duration-300 shadow-sm",w(),y())})})]}),a&&i.jsx("label",{htmlFor:e,className:_("text-sm font-medium cursor-pointer select-none",C.text,n&&"opacity-50 cursor-not-allowed"),children:a})]})}const Zo={Toggle:Jo};var K=function(){return K=Object.assign||function(t){for(var r,o=1,n=arguments.length;o<n;o++){r=arguments[o];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},K.apply(this,arguments)};function he(e,t,r){if(r||arguments.length===2)for(var o=0,n=t.length,a;o<n;o++)(a||!(o in t))&&(a||(a=Array.prototype.slice.call(t,0,o)),a[o]=t[o]);return e.concat(a||Array.prototype.slice.call(t))}function Qo(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var en=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,tn=Qo(function(e){return en.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),F="-ms-",$e="-moz-",M="-webkit-",Nr="comm",nt="rule",Mt="decl",rn="@import",on="@namespace",jr="@keyframes",nn="@layer",Sr=Math.abs,zt=String.fromCharCode,_t=Object.assign;function an(e,t){return q(e,0)^45?(((t<<2^q(e,0))<<2^q(e,1))<<2^q(e,2))<<2^q(e,3):0}function Er(e){return e.trim()}function ae(e,t){return(e=t.exec(e))?e[0]:e}function I(e,t,r){return e.replace(t,r)}function qe(e,t,r){return e.indexOf(t,r)}function q(e,t){return e.charCodeAt(t)|0}function ge(e,t,r){return e.slice(t,r)}function Q(e){return e.length}function Ar(e){return e.length}function Me(e,t){return t.push(e),e}function sn(e,t){return e.map(t).join("")}function qt(e,t){return e.filter(function(r){return!ae(r,t)})}var at=1,Ne=1,Ir=0,J=0,H=0,Ie="";function st(e,t,r,o,n,a,s,c){return{value:e,root:t,parent:r,type:o,props:n,children:a,line:at,column:Ne,length:s,return:"",siblings:c}}function ce(e,t){return _t(st("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function _e(e){for(;e.root;)e=ce(e.root,{children:[e]});Me(e,e.siblings)}function cn(){return H}function ln(){return H=J>0?q(Ie,--J):0,Ne--,H===10&&(Ne=1,at--),H}function ee(){return H=J<Ir?q(Ie,J++):0,Ne++,H===10&&(Ne=1,at++),H}function le(){return q(Ie,J)}function Xe(){return J}function it(e,t){return ge(Ie,e,t)}function Le(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function dn(e){return at=Ne=1,Ir=Q(Ie=e),J=0,[]}function un(e){return Ie="",e}function ht(e){return Er(it(J-1,Ct(e===91?e+2:e===40?e+1:e)))}function fn(e){for(;(H=le())&&H<33;)ee();return Le(e)>2||Le(H)>3?"":" "}function pn(e,t){for(;--t&&ee()&&!(H<48||H>102||H>57&&H<65||H>70&&H<97););return it(e,Xe()+(t<6&&le()==32&&ee()==32))}function Ct(e){for(;ee();)switch(H){case e:return J;case 34:case 39:e!==34&&e!==39&&Ct(H);break;case 40:e===41&&Ct(e);break;case 92:ee();break}return J}function mn(e,t){for(;ee()&&e+H!==57;)if(e+H===84&&le()===47)break;return"/*"+it(t,J-1)+"*"+zt(e===47?e:ee())}function hn(e){for(;!Le(le());)ee();return it(e,J)}function gn(e){return un(Ke("",null,null,null,[""],e=dn(e),0,[0],e))}function Ke(e,t,r,o,n,a,s,c,l){for(var u=0,f=0,m=s,b=0,h=0,p=0,w=1,y=1,C=1,x=0,g="",N=n,v=a,k=o,d=g;y;)switch(p=x,x=ee()){case 40:if(p!=108&&q(d,m-1)==58){qe(d+=I(ht(x),"&","&\f"),"&\f",Sr(u?c[u-1]:0))!=-1&&(C=-1);break}case 34:case 39:case 91:d+=ht(x);break;case 9:case 10:case 13:case 32:d+=fn(p);break;case 92:d+=pn(Xe()-1,7);continue;case 47:switch(le()){case 42:case 47:Me(yn(mn(ee(),Xe()),t,r,l),l),(Le(p||1)==5||Le(le()||1)==5)&&Q(d)&&ge(d,-1,void 0)!==" "&&(d+=" ");break;default:d+="/"}break;case 123*w:c[u++]=Q(d)*C;case 125*w:case 59:case 0:switch(x){case 0:case 125:y=0;case 59+f:C==-1&&(d=I(d,/\f/g,"")),h>0&&(Q(d)-m||w===0&&p===47)&&Me(h>32?Kt(d+";",o,r,m-1,l):Kt(I(d," ","")+";",o,r,m-2,l),l);break;case 59:d+=";";default:if(Me(k=Xt(d,t,r,u,f,n,c,g,N=[],v=[],m,a),a),x===123)if(f===0)Ke(d,t,k,k,N,a,m,c,v);else{switch(b){case 99:if(q(d,3)===110)break;case 108:if(q(d,2)===97)break;default:f=0;case 100:case 109:case 115:}f?Ke(e,k,k,o&&Me(Xt(e,k,k,0,0,n,c,g,n,N=[],m,v),v),n,v,m,c,o?N:v):Ke(d,k,k,k,[""],v,0,c,v)}}u=f=h=0,w=C=1,g=d="",m=s;break;case 58:m=1+Q(d),h=p;default:if(w<1){if(x==123)--w;else if(x==125&&w++==0&&ln()==125)continue}switch(d+=zt(x),x*w){case 38:C=f>0?1:(d+="\f",-1);break;case 44:c[u++]=(Q(d)-1)*C,C=1;break;case 64:le()===45&&(d+=ht(ee())),b=le(),f=m=Q(g=d+=hn(Xe())),x++;break;case 45:p===45&&Q(d)==2&&(w=0)}}return a}function Xt(e,t,r,o,n,a,s,c,l,u,f,m){for(var b=n-1,h=n===0?a:[""],p=Ar(h),w=0,y=0,C=0;w<o;++w)for(var x=0,g=ge(e,b+1,b=Sr(y=s[w])),N=e;x<p;++x)(N=Er(y>0?h[x]+" "+g:I(g,/&\f/g,h[x])))&&(l[C++]=N);return st(e,t,r,n===0?nt:c,l,u,f,m)}function yn(e,t,r,o){return st(e,t,r,Nr,zt(cn()),ge(e,2,-2),0,o)}function Kt(e,t,r,o,n){return st(e,t,r,Mt,ge(e,0,o),ge(e,o+1,-1),o,n)}function Pr(e,t,r){switch(an(e,t)){case 5103:return M+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return M+e+e;case 4855:return M+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return $e+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return M+e+$e+e+F+e+e;case 5936:switch(q(e,t+11)){case 114:return M+e+F+I(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return M+e+F+I(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return M+e+F+I(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return M+e+F+e+e;case 6165:return M+e+F+"flex-"+e+e;case 5187:return M+e+I(e,/(\w+).+(:[^]+)/,M+"box-$1$2"+F+"flex-$1$2")+e;case 5443:return M+e+F+"flex-item-"+I(e,/flex-|-self/g,"")+(ae(e,/flex-|baseline/)?"":F+"grid-row-"+I(e,/flex-|-self/g,""))+e;case 4675:return M+e+F+"flex-line-pack"+I(e,/align-content|flex-|-self/g,"")+e;case 5548:return M+e+F+I(e,"shrink","negative")+e;case 5292:return M+e+F+I(e,"basis","preferred-size")+e;case 6060:return M+"box-"+I(e,"-grow","")+M+e+F+I(e,"grow","positive")+e;case 4554:return M+I(e,/([^-])(transform)/g,"$1"+M+"$2")+e;case 6187:return I(I(I(e,/(zoom-|grab)/,M+"$1"),/(image-set)/,M+"$1"),e,"")+e;case 5495:case 3959:return I(e,/(image-set\([^]*)/,M+"$1$`$1");case 4968:return I(I(e,/(.+:)(flex-)?(.*)/,M+"box-pack:$3"+F+"flex-pack:$3"),/space-between/,"justify")+M+e+e;case 4200:if(!ae(e,/flex-|baseline/))return F+"grid-column-align"+ge(e,t)+e;break;case 2592:case 3360:return F+I(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(o,n){return t=n,ae(o.props,/grid-\w+-end/)})?~qe(e+(r=r[t].value),"span",0)?e:F+I(e,"-start","")+e+F+"grid-row-span:"+(~qe(r,"span",0)?ae(r,/\d+/):+ae(r,/\d+/)-+ae(e,/\d+/))+";":F+I(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(o){return ae(o.props,/grid-\w+-start/)})?e:F+I(I(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return I(e,/(.+)-inline(.+)/,M+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Q(e)-1-t>6)switch(q(e,t+1)){case 109:if(q(e,t+4)!==45)break;case 102:return I(e,/(.+:)(.+)-([^]+)/,"$1"+M+"$2-$3$1"+$e+(q(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~qe(e,"stretch",0)?Pr(I(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return I(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(o,n,a,s,c,l,u){return F+n+":"+a+u+(s?F+n+"-span:"+(c?l:+l-+a)+u:"")+e});case 4949:if(q(e,t+6)===121)return I(e,":",":"+M)+e;break;case 6444:switch(q(e,q(e,14)===45?18:11)){case 120:return I(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+M+(q(e,14)===45?"inline-":"")+"box$3$1"+M+"$2$3$1"+F+"$2box$3")+e;case 100:return I(e,":",":"+F)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return I(e,"scroll-","scroll-snap-")+e}return e}function Qe(e,t){for(var r="",o=0;o<e.length;o++)r+=t(e[o],o,e,t)||"";return r}function bn(e,t,r,o){switch(e.type){case nn:if(e.children.length)break;case rn:case on:case Mt:return e.return=e.return||e.value;case Nr:return"";case jr:return e.return=e.value+"{"+Qe(e.children,o)+"}";case nt:if(!Q(e.value=e.props.join(",")))return""}return Q(r=Qe(e.children,o))?e.return=e.value+"{"+r+"}":""}function xn(e){var t=Ar(e);return function(r,o,n,a){for(var s="",c=0;c<t;c++)s+=e[c](r,o,n,a)||"";return s}}function vn(e){return function(t){t.root||(t=t.return)&&e(t)}}function wn(e,t,r,o){if(e.length>-1&&!e.return)switch(e.type){case Mt:e.return=Pr(e.value,e.length,r);return;case jr:return Qe([ce(e,{value:I(e.value,"@","@"+M)})],o);case nt:if(e.length)return sn(r=e.props,function(n){switch(ae(n,o=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":_e(ce(e,{props:[I(n,/:(read-\w+)/,":"+$e+"$1")]})),_e(ce(e,{props:[n]})),_t(e,{props:qt(r,o)});break;case"::placeholder":_e(ce(e,{props:[I(n,/:(plac\w+)/,":"+M+"input-$1")]})),_e(ce(e,{props:[I(n,/:(plac\w+)/,":"+$e+"$1")]})),_e(ce(e,{props:[I(n,/:(plac\w+)/,F+"input-$1")]})),_e(ce(e,{props:[n]})),_t(e,{props:qt(r,o)});break}return""})}}var kn={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},ye=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Dr="active",Or="data-styled-version",ct="6.3.8",$t=`/*!sc*/
2
- `,et=typeof window<"u"&&typeof document<"u",be=T.createContext===void 0,_n=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==""?process.env.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&process.env.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.SC_DISABLE_SPEEDY!==void 0&&process.env.SC_DISABLE_SPEEDY!==""?process.env.SC_DISABLE_SPEEDY!=="false"&&process.env.SC_DISABLE_SPEEDY:process.env.NODE_ENV!=="production"),Jt=/invalid hook call/i,He=new Set,Cn=function(e,t){if(process.env.NODE_ENV!=="production"){if(be)return;var r=t?' with the id of "'.concat(t,'"'):"",o="The component ".concat(e).concat(r,` has been created dynamically.
3
- `)+`You may see this warning because you've called styled inside another component.
4
- To resolve this only create new StyledComponents outside of any render method and function component.
5
- See https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.
6
- `,n=console.error;try{var a=!0;console.error=function(s){for(var c=[],l=1;l<arguments.length;l++)c[l-1]=arguments[l];Jt.test(s)?(a=!1,He.delete(o)):n.apply(void 0,he([s],c,!1))},typeof T.useState=="function"&&T.useState(null),a&&!He.has(o)&&(console.warn(o),He.add(o))}catch(s){Jt.test(s.message)&&He.delete(o)}finally{console.error=n}}},lt=Object.freeze([]),je=Object.freeze({});function Tn(e,t,r){return r===void 0&&(r=je),e.theme!==r.theme&&e.theme||t||r.theme}var Tt=new Set(["a","abbr","address","area","article","aside","audio","b","bdi","bdo","blockquote","body","button","br","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","map","mark","menu","meter","nav","object","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","slot","small","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","switch","symbol","text","textPath","tspan","use"]),Nn=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,jn=/(^-|-$)/g;function Zt(e){return e.replace(Nn,"-").replace(jn,"")}var Sn=/(a)(d)/gi,Qt=function(e){return String.fromCharCode(e+(e>25?39:97))};function Nt(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=Qt(t%52)+r;return(Qt(t%52)+r).replace(Sn,"$1-$2")}var gt,ue=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},Mr=function(e){return ue(5381,e)};function zr(e){return Nt(Mr(e)>>>0)}function $r(e){return process.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function yt(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var Lr=typeof Symbol=="function"&&Symbol.for,Rr=Lr?Symbol.for("react.memo"):60115,En=Lr?Symbol.for("react.forward_ref"):60112,An={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},In={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Fr={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Pn=((gt={})[En]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},gt[Rr]=Fr,gt);function er(e){return("type"in(t=e)&&t.type.$$typeof)===Rr?Fr:"$$typeof"in e?Pn[e.$$typeof]:An;var t}var Dn=Object.defineProperty,On=Object.getOwnPropertyNames,tr=Object.getOwnPropertySymbols,Mn=Object.getOwnPropertyDescriptor,zn=Object.getPrototypeOf,rr=Object.prototype;function Vr(e,t,r){if(typeof t!="string"){if(rr){var o=zn(t);o&&o!==rr&&Vr(e,o,r)}var n=On(t);tr&&(n=n.concat(tr(t)));for(var a=er(e),s=er(t),c=0;c<n.length;++c){var l=n[c];if(!(l in In||r&&r[l]||s&&l in s||a&&l in a)){var u=Mn(t,l);try{Dn(e,l,u)}catch{}}}}return e}function Se(e){return typeof e=="function"}function Lt(e){return typeof e=="object"&&"styledComponentId"in e}function fe(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function jt(e,t){if(e.length===0)return"";for(var r=e[0],o=1;o<e.length;o++)r+=e[o];return r}function Ee(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function St(e,t,r){if(r===void 0&&(r=!1),!r&&!Ee(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var o=0;o<t.length;o++)e[o]=St(e[o],t[o]);else if(Ee(t))for(var o in t)e[o]=St(e[o],t[o]);return e}function Rt(e,t){Object.defineProperty(e,"toString",{value:t})}var $n=process.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
7
-
8
- `,2:`Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle.
9
-
10
- - Are you trying to reuse it across renders?
11
- - Are you accidentally calling collectStyles twice?
12
-
13
- `,3:`Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.
14
-
15
- `,4:`The \`StyleSheetManager\` expects a valid target or sheet prop!
16
-
17
- - Does this error occur on the client and is your target falsy?
18
- - Does this error occur on the server and is the sheet falsy?
19
-
20
- `,5:`The clone method cannot be used on the client!
21
-
22
- - Are you running in a client-like environment on the server?
23
- - Are you trying to run SSR on the client?
24
-
25
- `,6:`Trying to insert a new style tag, but the given Node is unmounted!
26
-
27
- - Are you using a custom target that isn't mounted?
28
- - Does your document not have a valid head element?
29
- - Have you accidentally removed a style tag manually?
30
-
31
- `,7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:`ThemeProvider: Please make your "theme" prop an object.
32
-
33
- `,9:"Missing document `<head>`\n\n",10:`Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021
34
-
35
- `,11:`_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.
36
-
37
- `,12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:`%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.
38
-
39
- `,14:`ThemeProvider: "theme" prop is required.
40
-
41
- `,15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:`Reached the limit of how many styled components may be created at group %s.
42
- You may only create up to 1,073,741,824 components. If you're creating components dynamically,
43
- as for instance in your render method then you may be running into this limitation.
44
-
45
- `,17:`CSSStyleSheet could not be found on HTMLStyleElement.
46
- Has styled-components' style tag been unmounted or altered by another script?
47
- `,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function Ln(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=e[0],o=[],n=1,a=e.length;n<a;n+=1)o.push(e[n]);return o.forEach(function(s){r=r.replace(/%[a-z]/,s)}),r}function Pe(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return process.env.NODE_ENV==="production"?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):"")):new Error(Ln.apply(void 0,he([$n[e]],t,!1)).trim())}var Rn=(function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var r=0,o=0;o<t;o++)r+=this.groupSizes[o];return r},e.prototype.insertRules=function(t,r){if(t>=this.groupSizes.length){for(var o=this.groupSizes,n=o.length,a=n;t>=a;)if((a<<=1)<0)throw Pe(16,"".concat(t));this.groupSizes=new Uint32Array(a),this.groupSizes.set(o),this.length=a;for(var s=n;s<a;s++)this.groupSizes[s]=0}for(var c=this.indexOfGroup(t+1),l=(s=0,r.length);s<l;s++)this.tag.insertRule(c,r[s])&&(this.groupSizes[t]++,c++)},e.prototype.clearGroup=function(t){if(t<this.length){var r=this.groupSizes[t],o=this.indexOfGroup(t),n=o+r;this.groupSizes[t]=0;for(var a=o;a<n;a++)this.tag.deleteRule(o)}},e.prototype.getGroup=function(t){var r="";if(t>=this.length||this.groupSizes[t]===0)return r;for(var o=this.groupSizes[t],n=this.indexOfGroup(t),a=n+o,s=n;s<a;s++)r+="".concat(this.tag.getRule(s)).concat($t);return r},e})(),Fn=1<<30,Je=new Map,tt=new Map,Ze=1,ze=function(e){if(Je.has(e))return Je.get(e);for(;tt.has(Ze);)Ze++;var t=Ze++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>Fn))throw Pe(16,"".concat(t));return Je.set(e,t),tt.set(t,e),t},Vn=function(e,t){Ze=t+1,Je.set(e,t),tt.set(t,e)},Bn="style[".concat(ye,"][").concat(Or,'="').concat(ct,'"]'),Gn=new RegExp("^".concat(ye,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Wn=function(e,t,r){for(var o,n=r.split(","),a=0,s=n.length;a<s;a++)(o=n[a])&&e.registerName(t,o)},Hn=function(e,t){for(var r,o=((r=t.textContent)!==null&&r!==void 0?r:"").split($t),n=[],a=0,s=o.length;a<s;a++){var c=o[a].trim();if(c){var l=c.match(Gn);if(l){var u=0|parseInt(l[1],10),f=l[2];u!==0&&(Vn(f,u),Wn(e,f,l[3]),e.getTag().insertRules(u,n)),n.length=0}else n.push(c)}}},or=function(e){for(var t=document.querySelectorAll(Bn),r=0,o=t.length;r<o;r++){var n=t[r];n&&n.getAttribute(ye)!==Dr&&(Hn(e,n),n.parentNode&&n.parentNode.removeChild(n))}};function Un(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var Br=function(e){var t=document.head,r=e||t,o=document.createElement("style"),n=(function(c){var l=Array.from(c.querySelectorAll("style[".concat(ye,"]")));return l[l.length-1]})(r),a=n!==void 0?n.nextSibling:null;o.setAttribute(ye,Dr),o.setAttribute(Or,ct);var s=Un();return s&&o.setAttribute("nonce",s),r.insertBefore(o,a),o},Yn=(function(){function e(t){this.element=Br(t),this.element.appendChild(document.createTextNode("")),this.sheet=(function(r){if(r.sheet)return r.sheet;for(var o=document.styleSheets,n=0,a=o.length;n<a;n++){var s=o[n];if(s.ownerNode===r)return s}throw Pe(17)})(this.element),this.length=0}return e.prototype.insertRule=function(t,r){try{return this.sheet.insertRule(r,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var r=this.sheet.cssRules[t];return r&&r.cssText?r.cssText:""},e})(),qn=(function(){function e(t){this.element=Br(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,r){if(t<=this.length&&t>=0){var o=document.createTextNode(r);return this.element.insertBefore(o,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e})(),Xn=(function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,r){return t<=this.length&&(this.rules.splice(t,0,r),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e})(),nr=et,Kn={isServer:!et,useCSSOMInjection:!_n},Gr=(function(){function e(t,r,o){t===void 0&&(t=je),r===void 0&&(r={});var n=this;this.options=K(K({},Kn),t),this.gs=r,this.names=new Map(o),this.server=!!t.isServer,!this.server&&et&&nr&&(nr=!1,or(this)),Rt(this,function(){return(function(a){for(var s=a.getTag(),c=s.length,l="",u=function(m){var b=(function(C){return tt.get(C)})(m);if(b===void 0)return"continue";var h=a.names.get(b),p=s.getGroup(m);if(h===void 0||!h.size||p.length===0)return"continue";var w="".concat(ye,".g").concat(m,'[id="').concat(b,'"]'),y="";h!==void 0&&h.forEach(function(C){C.length>0&&(y+="".concat(C,","))}),l+="".concat(p).concat(w,'{content:"').concat(y,'"}').concat($t)},f=0;f<c;f++)u(f);return l})(n)})}return e.registerId=function(t){return ze(t)},e.prototype.rehydrate=function(){!this.server&&et&&or(this)},e.prototype.reconstructWithOptions=function(t,r){return r===void 0&&(r=!0),new e(K(K({},this.options),t),this.gs,r&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=(function(r){var o=r.useCSSOMInjection,n=r.target;return r.isServer?new Xn(n):o?new Yn(n):new qn(n)})(this.options),new Rn(t)));var t},e.prototype.hasNameForId=function(t,r){return this.names.has(t)&&this.names.get(t).has(r)},e.prototype.registerName=function(t,r){if(ze(t),this.names.has(t))this.names.get(t).add(r);else{var o=new Set;o.add(r),this.names.set(t,o)}},e.prototype.insertRules=function(t,r,o){this.registerName(t,r),this.getTag().insertRules(ze(t),o)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(ze(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e})(),Jn=/&/g,Ce=47;function ar(e){if(e.indexOf("}")===-1)return!1;for(var t=e.length,r=0,o=0,n=!1,a=0;a<t;a++){var s=e.charCodeAt(a);if(o!==0||n||s!==Ce||e.charCodeAt(a+1)!==42)if(n)s===42&&e.charCodeAt(a+1)===Ce&&(n=!1,a++);else if(s!==34&&s!==39||a!==0&&e.charCodeAt(a-1)===92){if(o===0){if(s===123)r++;else if(s===125&&--r<0)return!0}}else o===0?o=s:o===s&&(o=0);else n=!0,a++}return r!==0||o!==0}function Wr(e,t){return e.map(function(r){return r.type==="rule"&&(r.value="".concat(t," ").concat(r.value),r.value=r.value.replaceAll(",",",".concat(t," ")),r.props=r.props.map(function(o){return"".concat(t," ").concat(o)})),Array.isArray(r.children)&&r.type!=="@keyframes"&&(r.children=Wr(r.children,t)),r})}function Zn(e){var t,r,o,n=je,a=n.options,s=a===void 0?je:a,c=n.plugins,l=c===void 0?lt:c,u=function(b,h,p){return p.startsWith(r)&&p.endsWith(r)&&p.replaceAll(r,"").length>0?".".concat(t):b},f=l.slice();f.push(function(b){b.type===nt&&b.value.includes("&")&&(b.props[0]=b.props[0].replace(Jn,r).replace(o,u))}),s.prefix&&f.push(wn),f.push(bn);var m=function(b,h,p,w){h===void 0&&(h=""),p===void 0&&(p=""),w===void 0&&(w="&"),t=w,r=h,o=new RegExp("\\".concat(r,"\\b"),"g");var y=(function(g){if(!ar(g))return g;for(var N=g.length,v="",k=0,d=0,E=0,$=!1,O=0;O<N;O++){var U=g.charCodeAt(O);if(E!==0||$||U!==Ce||g.charCodeAt(O+1)!==42)if($)U===42&&g.charCodeAt(O+1)===Ce&&($=!1,O++);else if(U!==34&&U!==39||O!==0&&g.charCodeAt(O-1)===92){if(E===0)if(U===123)d++;else if(U===125){if(--d<0){for(var P=O+1;P<N;){var S=g.charCodeAt(P);if(S===59||S===10)break;P++}P<N&&g.charCodeAt(P)===59&&P++,d=0,O=P-1,k=P;continue}d===0&&(v+=g.substring(k,O+1),k=O+1)}else U===59&&d===0&&(v+=g.substring(k,O+1),k=O+1)}else E===0?E=U:E===U&&(E=0);else $=!0,O++}if(k<N){var z=g.substring(k);ar(z)||(v+=z)}return v})((function(g){if(g.indexOf("//")===-1)return g;for(var N=g.length,v=[],k=0,d=0,E=0,$=0;d<N;){var O=g.charCodeAt(d);if(O!==34&&O!==39||d!==0&&g.charCodeAt(d-1)===92)if(E===0)if(O===40&&d>=3&&(32|g.charCodeAt(d-1))==108&&(32|g.charCodeAt(d-2))==114&&(32|g.charCodeAt(d-3))==117)$=1,d++;else if($>0)O===41?$--:O===40&&$++,d++;else if(O===Ce&&d+1<N&&g.charCodeAt(d+1)===Ce){for(d>k&&v.push(g.substring(k,d));d<N&&g.charCodeAt(d)!==10;)d++;k=d}else d++;else d++;else E===0?E=O:E===O&&(E=0),d++}return k===0?g:(k<N&&v.push(g.substring(k)),v.join(""))})(b)),C=gn(p||h?"".concat(p," ").concat(h," { ").concat(y," }"):y);s.namespace&&(C=Wr(C,s.namespace));var x=[];return Qe(C,xn(f.concat(vn(function(g){return x.push(g)})))),x};return m.hash=l.length?l.reduce(function(b,h){return h.name||Pe(15),ue(b,h.name)},5381).toString():"",m}var Qn=new Gr,Et=Zn(),At={shouldForwardProp:void 0,styleSheet:Qn,stylis:Et},Hr=be?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(At)}}:T.createContext(At);Hr.Consumer;be||T.createContext(void 0);function sr(){return be?At:T.useContext(Hr)}var It=(function(){function e(t,r){var o=this;this.inject=function(n,a){a===void 0&&(a=Et);var s=o.name+a.hash;n.hasNameForId(o.id,s)||n.insertRules(o.id,s,a(o.rules,s,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=r,Rt(this,function(){throw Pe(12,String(o.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=Et),this.name+t.hash},e})();function ea(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t!="number"||t===0||e in kn||e.startsWith("--")?String(t).trim():"".concat(t,"px")}var ta=function(e){return e>="A"&&e<="Z"};function ir(e){for(var t="",r=0;r<e.length;r++){var o=e[r];if(r===1&&o==="-"&&e[0]==="-")return e;ta(o)?t+="-"+o.toLowerCase():t+=o}return t.startsWith("ms-")?"-"+t:t}var Ur=function(e){return e==null||e===!1||e===""},Yr=function(e){var t=[];for(var r in e){var o=e[r];e.hasOwnProperty(r)&&!Ur(o)&&(Array.isArray(o)&&o.isCss||Se(o)?t.push("".concat(ir(r),":"),o,";"):Ee(o)?t.push.apply(t,he(he(["".concat(r," {")],Yr(o),!1),["}"],!1)):t.push("".concat(ir(r),": ").concat(ea(r,o),";")))}return t};function me(e,t,r,o){if(Ur(e))return[];if(Lt(e))return[".".concat(e.styledComponentId)];if(Se(e)){if(!Se(a=e)||a.prototype&&a.prototype.isReactComponent||!t)return[e];var n=e(t);return process.env.NODE_ENV==="production"||typeof n!="object"||Array.isArray(n)||n instanceof It||Ee(n)||n===null||console.error("".concat($r(e)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),me(n,t,r,o)}var a;return e instanceof It?r?(e.inject(r,o),[e.getName(o)]):[e]:Ee(e)?Yr(e):Array.isArray(e)?Array.prototype.concat.apply(lt,e.map(function(s){return me(s,t,r,o)})):[e.toString()]}function ra(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(Se(r)&&!Lt(r))return!1}return!0}var oa=Mr(ct),na=(function(){function e(t,r,o){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(o===void 0||o.isStatic)&&ra(t),this.componentId=r,this.baseHash=ue(oa,r),this.baseStyle=o,Gr.registerId(r)}return e.prototype.generateAndInjectStyles=function(t,r,o){var n=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,r,o).className:"";if(this.isStatic&&!o.hash)if(this.staticRulesId&&r.hasNameForId(this.componentId,this.staticRulesId))n=fe(n,this.staticRulesId);else{var a=jt(me(this.rules,t,r,o)),s=Nt(ue(this.baseHash,a)>>>0);if(!r.hasNameForId(this.componentId,s)){var c=o(a,".".concat(s),void 0,this.componentId);r.insertRules(this.componentId,s,c)}n=fe(n,s),this.staticRulesId=s}else{for(var l=ue(this.baseHash,o.hash),u="",f=0;f<this.rules.length;f++){var m=this.rules[f];if(typeof m=="string")u+=m,process.env.NODE_ENV!=="production"&&(l=ue(l,m));else if(m){var b=jt(me(m,t,r,o));l=ue(l,b+f),u+=b}}if(u){var h=Nt(l>>>0);if(!r.hasNameForId(this.componentId,h)){var p=o(u,".".concat(h),void 0,this.componentId);r.insertRules(this.componentId,h,p)}n=fe(n,h)}}return{className:n,css:typeof window>"u"?r.getTag().getGroup(ze(this.componentId)):""}},e})(),qr=be?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(void 0)}}:T.createContext(void 0);qr.Consumer;var bt={},cr=new Set;function aa(e,t,r){var o=Lt(e),n=e,a=!yt(e),s=t.attrs,c=s===void 0?lt:s,l=t.componentId,u=l===void 0?(function(N,v){var k=typeof N!="string"?"sc":Zt(N);bt[k]=(bt[k]||0)+1;var d="".concat(k,"-").concat(zr(ct+k+bt[k]));return v?"".concat(v,"-").concat(d):d})(t.displayName,t.parentComponentId):l,f=t.displayName,m=f===void 0?(function(N){return yt(N)?"styled.".concat(N):"Styled(".concat($r(N),")")})(e):f,b=t.displayName&&t.componentId?"".concat(Zt(t.displayName),"-").concat(t.componentId):t.componentId||u,h=o&&n.attrs?n.attrs.concat(c).filter(Boolean):c,p=t.shouldForwardProp;if(o&&n.shouldForwardProp){var w=n.shouldForwardProp;if(t.shouldForwardProp){var y=t.shouldForwardProp;p=function(N,v){return w(N,v)&&y(N,v)}}else p=w}var C=new na(r,b,o?n.componentStyle:void 0);function x(N,v){return(function(k,d,E){var $=k.attrs,O=k.componentStyle,U=k.defaultProps,P=k.foldedComponentIds,S=k.styledComponentId,z=k.target,X=be?void 0:T.useContext(qr),B=sr(),te=k.shouldForwardProp||B.shouldForwardProp;process.env.NODE_ENV!=="production"&&T.useDebugValue&&T.useDebugValue(S);var j=Tn(d,X,U)||je,D=(function(Be,ve,Ge){for(var we,oe=K(K({},ve),{className:void 0,theme:Ge}),pt=0;pt<Be.length;pt+=1){var We=Se(we=Be[pt])?we(oe):we;for(var ke in We)ke==="className"?oe.className=fe(oe.className,We[ke]):ke==="style"?oe.style=K(K({},oe.style),We[ke]):oe[ke]=We[ke]}return"className"in ve&&typeof ve.className=="string"&&(oe.className=fe(oe.className,ve.className)),oe})($,d,j),G=D.as||z,W={};for(var Y in D)D[Y]===void 0||Y[0]==="$"||Y==="as"||Y==="theme"&&D.theme===j||(Y==="forwardedAs"?W.as=D.forwardedAs:te&&!te(Y,G)||(W[Y]=D[Y],te||process.env.NODE_ENV!=="development"||tn(Y)||cr.has(Y)||!Tt.has(G)||(cr.add(Y),console.warn('styled-components: it looks like an unknown prop "'.concat(Y,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var Bt=(function(Be,ve){var Ge=sr(),we=Be.generateAndInjectStyles(ve,Ge.styleSheet,Ge.stylis);return process.env.NODE_ENV!=="production"&&T.useDebugValue&&T.useDebugValue(we.className),we})(O,D),Ve=Bt.className,Gt=Bt.css;process.env.NODE_ENV!=="production"&&k.warnTooManyClasses&&k.warnTooManyClasses(Ve);var ft=fe(P,S);Ve&&(ft+=" "+Ve),D.className&&(ft+=" "+D.className),W[yt(G)&&!Tt.has(G)?"class":"className"]=ft,E&&(W.ref=E);var Wt=T.createElement(G,W);return be&&Gt?T.createElement(T.Fragment,null,T.createElement("style",{precedence:"styled-components",href:"sc-".concat(S,"-").concat(Ve),children:Gt}),Wt):Wt})(g,N,v)}x.displayName=m;var g=T.forwardRef(x);return g.attrs=h,g.componentStyle=C,g.displayName=m,g.shouldForwardProp=p,g.foldedComponentIds=o?fe(n.foldedComponentIds,n.styledComponentId):"",g.styledComponentId=b,g.target=o?n.target:e,Object.defineProperty(g,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(N){this._foldedDefaultProps=o?(function(v){for(var k=[],d=1;d<arguments.length;d++)k[d-1]=arguments[d];for(var E=0,$=k;E<$.length;E++)St(v,$[E],!0);return v})({},n.defaultProps,N):N}}),process.env.NODE_ENV!=="production"&&(Cn(m,b),g.warnTooManyClasses=(function(N,v){var k={},d=!1;return function(E){if(!d&&(k[E]=!0,Object.keys(k).length>=200)){var $=v?' with the id of "'.concat(v,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(N).concat($,`.
48
- `)+`Consider using the attrs method, together with a style object for frequently changed styles.
49
- Example:
50
- const Component = styled.div.attrs(props => ({
51
- style: {
52
- background: props.background,
53
- },
54
- }))\`width: 100%;\`
55
-
56
- <Component />`),d=!0,k={}}}})(m,b)),Rt(g,function(){return".".concat(g.styledComponentId)}),a&&Vr(g,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),g}function lr(e,t){for(var r=[e[0]],o=0,n=t.length;o<n;o+=1)r.push(t[o],e[o+1]);return r}var dr=function(e){return Object.assign(e,{isCss:!0})};function Xr(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(Se(e)||Ee(e))return dr(me(lr(lt,he([e],t,!0))));var o=e;return t.length===0&&o.length===1&&typeof o[0]=="string"?me(o):dr(me(lr(o,t)))}function Pt(e,t,r){if(r===void 0&&(r=je),!t)throw Pe(1,t);var o=function(n){for(var a=[],s=1;s<arguments.length;s++)a[s-1]=arguments[s];return e(t,r,Xr.apply(void 0,he([n],a,!1)))};return o.attrs=function(n){return Pt(e,t,K(K({},r),{attrs:Array.prototype.concat(r.attrs,n).filter(Boolean)}))},o.withConfig=function(n){return Pt(e,t,K(K({},r),n))},o}var Kr=function(e){return Pt(aa,e)},xe=Kr;Tt.forEach(function(e){xe[e]=Kr(e)});function Ft(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");var o=jt(Xr.apply(void 0,he([e],t,!1))),n=zr(o);return new It(n,o)}process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn(`It looks like you've imported 'styled-components' on React Native.
57
- Perhaps you're looking to import 'styled-components/native'?
58
- Read more about this at https://www.styled-components.com/docs/basics#react-native`);var Ue="__sc-".concat(ye,"__");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[Ue]||(window[Ue]=0),window[Ue]===1&&console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
59
-
60
- See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-several-instances-of-module-on-the-page for more info.`),window[Ue]+=1);var sa={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};ia(sa);function ia(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}var ur="#4fa94d",ca={"aria-busy":!0,role:"progressbar"},la=xe.div`
61
- display: ${e=>e.$visible?"flex":"none"};
62
- `,Z=242.776657104492,da=1.6,ua=Ft`
63
- 12.5% {
64
- stroke-dasharray: ${Z*.14}px, ${Z}px;
65
- stroke-dashoffset: -${Z*.11}px;
66
- }
67
- 43.75% {
68
- stroke-dasharray: ${Z*.35}px, ${Z}px;
69
- stroke-dashoffset: -${Z*.35}px;
70
- }
71
- 100% {
72
- stroke-dasharray: ${Z*.01}px, ${Z}px;
73
- stroke-dashoffset: -${Z*.99}px;
74
- }
75
- `;xe.path`
76
- stroke-dasharray: ${Z*.01}px, ${Z};
77
- stroke-dashoffset: 0;
78
- animation: ${ua} ${da}s linear infinite;
79
- `;var xt=20,fa=e=>["M"+e+" 0c0-9.94-8.06",e,e,e].join("-"),pa=(e,t,r)=>{let o=Math.max(e,t),n=-r-o/2+1,a=r*2+o;return[n,n,a,a].join(" ")},ma=({height:e=80,width:t=80,color:r=ur,secondaryColor:o=ur,ariaLabel:n="oval-loading",wrapperStyle:a,wrapperClass:s,visible:c=!0,strokeWidth:l=2,strokeWidthSecondary:u,animationDuration:f=1})=>i.jsx(la,{style:a,$visible:c,className:s,"data-testid":"oval-loading","aria-label":n,...ca,children:i.jsx("svg",{width:t,height:e,viewBox:pa(Number(l),Number(u||l),xt),xmlns:"http://www.w3.org/2000/svg",stroke:r,"data-testid":"oval-svg",children:i.jsx("g",{fill:"none",fillRule:"evenodd",children:i.jsxs("g",{transform:"translate(1 1)",strokeWidth:Number(u||l),"data-testid":"oval-secondary-group",children:[i.jsx("circle",{strokeOpacity:".5",cx:"0",cy:"0",r:xt,stroke:o,strokeWidth:l}),i.jsx("path",{d:fa(xt),children:i.jsx("animateTransform",{attributeName:"transform",type:"rotate",from:"0 0 0",to:"360 0 0",dur:`${f}s`,repeatCount:"indefinite"})})]})})})}),ha=Ft`
80
- to {
81
- transform: rotate(360deg);
82
- }
83
- `;xe.svg`
84
- animation: ${ha} ${e=>String(e.$animationDuration).endsWith("s")?String(e.$animationDuration):`${e.$animationDuration}s`} steps(12, end) infinite;
85
- `;xe.polyline`
86
- stroke-width: ${e=>`${e.$strokeWidth}px`};
87
- stroke-linecap: round;
88
-
89
- &:nth-child(12n + 0) {
90
- stroke-opacity: 0.08;
91
- }
92
-
93
- &:nth-child(12n + 1) {
94
- stroke-opacity: 0.17;
95
- }
96
-
97
- &:nth-child(12n + 2) {
98
- stroke-opacity: 0.25;
99
- }
100
-
101
- &:nth-child(12n + 3) {
102
- stroke-opacity: 0.33;
103
- }
104
-
105
- &:nth-child(12n + 4) {
106
- stroke-opacity: 0.42;
107
- }
108
-
109
- &:nth-child(12n + 5) {
110
- stroke-opacity: 0.5;
111
- }
112
-
113
- &:nth-child(12n + 6) {
114
- stroke-opacity: 0.58;
115
- }
116
-
117
- &:nth-child(12n + 7) {
118
- stroke-opacity: 0.66;
119
- }
120
-
121
- &:nth-child(12n + 8) {
122
- stroke-opacity: 0.75;
123
- }
124
-
125
- &:nth-child(12n + 9) {
126
- stroke-opacity: 0.83;
127
- }
128
-
129
- &:nth-child(12n + 11) {
130
- stroke-opacity: 0.92;
131
- }
132
- `;var ga=Ft`
133
- to {
134
- stroke-dashoffset: 136;
135
- }
136
- `;xe.polygon`
137
- stroke-dasharray: 17;
138
- animation: ${ga} 2.5s cubic-bezier(0.35, 0.04, 0.63, 0.95) infinite;
139
- `;xe.svg`
140
- transform-origin: 50% 65%;
141
- `;const Jr=({size:e=40,wrapperStyle:t={},wrapperClass:r="",ariaLabel:o="Cargando...",label:n="Cargando...",visible:a=!0,direction:s="column"})=>{const c={display:"flex",flexDirection:s,justifyContent:"center",alignItems:"center",minHeight:"100px",...t};return i.jsxs("div",{style:c,className:r,children:[i.jsx("label",{children:n}),i.jsx(ma,{visible:a,height:e,width:e,ariaLabel:o,wrapperStyle:{},wrapperClass:"",secondaryColor:"#cdae90",color:"#cdae90"})]})},{Input:vt}=Tr,ya=({title:e="Iniciar Sesión",showForgotPassword:t=!0,className:r="",onLogin:o,onForgotPassword:n})=>{const[a,s]=T.useState({email:"",password:""}),[c,l]=T.useState({}),[u,f]=T.useState(!1),[m,b]=T.useState("login"),h=(v,k)=>{switch(v){case"email":return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(k)?"":"Por favor ingresa un email válido";case"password":return k.length>=6?"":"La contraseña debe tener al menos 6 caracteres";default:return""}},p=v=>{const{name:k,value:d}=v.target;s(E=>({...E,[k]:d})),c[k]&&l(E=>({...E,[k]:""}))},w=()=>{const v={},k=h("email",a.email);if(k&&(v.email=k),m==="login"){const d=h("password",a.password);d&&(v.password=d)}return l(v),Object.keys(v).length===0},y=async v=>{if(v.preventDefault(),!!w()){f(!0);try{switch(m){case"login":o&&await o({email:a.email,password:a.password});break;case"forgot":n&&await n(a.email);break}}catch(k){console.error("Login error:",k)}finally{f(!1)}}},C=v=>{b(v),l({}),s({email:a.email,password:""})},x=()=>{switch(m){case"forgot":return i.jsx(vt,{id:"email",type:"email",name:"email",placeholder:"Ingresa tu email",label:"Email",value:a.email,onChange:p,error:c.email,disabled:u,colorScheme:"secondary"});default:return i.jsxs(i.Fragment,{children:[i.jsx(vt,{id:"email",type:"email",name:"email",placeholder:"Ingresa tu email",label:"Email",value:a.email,onChange:p,error:c.email,disabled:u,colorScheme:"secondary"}),i.jsx(vt,{id:"password",type:"password",name:"password",placeholder:"Ingresa tu contraseña",label:"Contraseña",value:a.password,onChange:p,error:c.password,disabled:u,colorScheme:"secondary"})]})}},g=()=>{switch(m){case"forgot":return"Recuperar Contraseña";default:return e}},N=()=>{if(u)return i.jsx(Jr,{size:20,wrapperStyle:{minHeight:"auto"}});switch(m){case"forgot":return"Enviar Enlace";default:return"Entrar"}};return i.jsx("div",{className:`flex justify-center items-center min-h-[90vh] p-6 bg-background sm:p-4 ${r||""}`,children:i.jsxs("div",{className:"w-full max-w-100 p-12 bg-white rounded-2xl shadow-lg animate-[fadeIn_0.3s_ease-out] sm:p-8",children:[i.jsx("h2",{className:"text-center mb-12 text-3xl font-semibold text-primary sm:text-2xl sm:mb-8",children:g()}),i.jsx("div",{className:"space-y-4 mb-6",children:x()}),i.jsx("form",{onSubmit:y,children:i.jsx(pe,{type:"submit",disabled:u,loading:u,fullWidth:!0,variant:"primary",size:"lg",className:"mb-6",children:!u&&N()})}),m==="login"&&t&&i.jsx(pe,{type:"button",onClick:()=>C("forgot"),variant:"link",size:"sm",fullWidth:!0,className:"shadow-none! !hover:shadow-none",children:"¿Olvidaste tu contraseña?"}),m==="forgot"&&i.jsx(pe,{type:"button",onClick:()=>C("login"),variant:"link",size:"sm",fullWidth:!0,className:"shadow-none! !hover:shadow-none",children:"Volver al inicio de sesión"})]})})};var Zr={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},fr=T.createContext&&T.createContext(Zr),ba=["attr","size","title"];function xa(e,t){if(e==null)return{};var r=va(e,t),o,n;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)o=a[n],!(t.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}function va(e,t){if(e==null)return{};var r={};for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){if(t.indexOf(o)>=0)continue;r[o]=e[o]}return r}function rt(){return rt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},rt.apply(this,arguments)}function pr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function ot(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?pr(Object(r),!0).forEach(function(o){wa(e,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pr(Object(r)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o))})}return e}function wa(e,t,r){return t=ka(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ka(e){var t=_a(e,"string");return typeof t=="symbol"?t:t+""}function _a(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var o=r.call(e,t);if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Qr(e){return e&&e.map((t,r)=>T.createElement(t.tag,ot({key:r},t.attr),Qr(t.child)))}function de(e){return t=>T.createElement(Ca,rt({attr:ot({},e.attr)},t),Qr(e.child))}function Ca(e){var t=r=>{var{attr:o,size:n,title:a}=e,s=xa(e,ba),c=n||r.size||"1em",l;return r.className&&(l=r.className),e.className&&(l=(l?l+" ":"")+e.className),T.createElement("svg",rt({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,o,s,{className:l,style:ot(ot({color:e.color||r.color},r.style),e.style),height:c,width:c,xmlns:"http://www.w3.org/2000/svg"}),a&&T.createElement("title",null,a),e.children)};return fr!==void 0?T.createElement(fr.Consumer,null,r=>t(r)):t(Zr)}function Ta(e){return de({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"11",cy:"11",r:"8"},child:[]},{tag:"line",attr:{x1:"21",y1:"21",x2:"16.65",y2:"16.65"},child:[]}]})(e)}const eo=(e,t=500)=>{const[r,o]=T.useState(e);return T.useEffect(()=>{const n=setTimeout(()=>{o(e)},t);return()=>clearTimeout(n)},[e,t]),r};function Na(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t.firstChild?t.insertBefore(r,t.firstChild):t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}Na(`:root{--toastify-color-light: #fff;--toastify-color-dark: #121212;--toastify-color-info: #3498db;--toastify-color-success: #07bc0c;--toastify-color-warning: #f1c40f;--toastify-color-error: hsl(6, 78%, 57%);--toastify-color-transparent: rgba(255, 255, 255, .7);--toastify-icon-color-info: var(--toastify-color-info);--toastify-icon-color-success: var(--toastify-color-success);--toastify-icon-color-warning: var(--toastify-color-warning);--toastify-icon-color-error: var(--toastify-color-error);--toastify-container-width: fit-content;--toastify-toast-width: 320px;--toastify-toast-offset: 16px;--toastify-toast-top: max(var(--toastify-toast-offset), env(safe-area-inset-top));--toastify-toast-right: max(var(--toastify-toast-offset), env(safe-area-inset-right));--toastify-toast-left: max(var(--toastify-toast-offset), env(safe-area-inset-left));--toastify-toast-bottom: max(var(--toastify-toast-offset), env(safe-area-inset-bottom));--toastify-toast-background: #fff;--toastify-toast-padding: 14px;--toastify-toast-min-height: 64px;--toastify-toast-max-height: 800px;--toastify-toast-bd-radius: 6px;--toastify-toast-shadow: 0px 4px 12px rgba(0, 0, 0, .1);--toastify-font-family: sans-serif;--toastify-z-index: 9999;--toastify-text-color-light: #757575;--toastify-text-color-dark: #fff;--toastify-text-color-info: #fff;--toastify-text-color-success: #fff;--toastify-text-color-warning: #fff;--toastify-text-color-error: #fff;--toastify-spinner-color: #616161;--toastify-spinner-color-empty-area: #e0e0e0;--toastify-color-progress-light: linear-gradient(to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55);--toastify-color-progress-dark: #bb86fc;--toastify-color-progress-info: var(--toastify-color-info);--toastify-color-progress-success: var(--toastify-color-success);--toastify-color-progress-warning: var(--toastify-color-warning);--toastify-color-progress-error: var(--toastify-color-error);--toastify-color-progress-bgo: .2}.Toastify__toast-container{z-index:var(--toastify-z-index);-webkit-transform:translate3d(0,0,var(--toastify-z-index));position:fixed;width:var(--toastify-container-width);box-sizing:border-box;color:#fff;display:flex;flex-direction:column}.Toastify__toast-container--top-left{top:var(--toastify-toast-top);left:var(--toastify-toast-left)}.Toastify__toast-container--top-center{top:var(--toastify-toast-top);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--top-right{top:var(--toastify-toast-top);right:var(--toastify-toast-right);align-items:end}.Toastify__toast-container--bottom-left{bottom:var(--toastify-toast-bottom);left:var(--toastify-toast-left)}.Toastify__toast-container--bottom-center{bottom:var(--toastify-toast-bottom);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--bottom-right{bottom:var(--toastify-toast-bottom);right:var(--toastify-toast-right);align-items:end}.Toastify__toast{--y: 0;position:relative;touch-action:none;width:var(--toastify-toast-width);min-height:var(--toastify-toast-min-height);box-sizing:border-box;margin-bottom:1rem;padding:var(--toastify-toast-padding);border-radius:var(--toastify-toast-bd-radius);box-shadow:var(--toastify-toast-shadow);max-height:var(--toastify-toast-max-height);font-family:var(--toastify-font-family);z-index:0;display:flex;flex:1 auto;align-items:center;word-break:break-word}@media only screen and (max-width: 480px){.Toastify__toast-container{width:100vw;left:env(safe-area-inset-left);margin:0}.Toastify__toast-container--top-left,.Toastify__toast-container--top-center,.Toastify__toast-container--top-right{top:env(safe-area-inset-top);transform:translate(0)}.Toastify__toast-container--bottom-left,.Toastify__toast-container--bottom-center,.Toastify__toast-container--bottom-right{bottom:env(safe-area-inset-bottom);transform:translate(0)}.Toastify__toast-container--rtl{right:env(safe-area-inset-right);left:initial}.Toastify__toast{--toastify-toast-width: 100%;margin-bottom:0;border-radius:0}}.Toastify__toast-container[data-stacked=true]{width:var(--toastify-toast-width)}.Toastify__toast--stacked{position:absolute;width:100%;transform:translate3d(0,var(--y),0) scale(var(--s));transition:transform .3s}.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body,.Toastify__toast--stacked[data-collapsed] .Toastify__close-button{transition:opacity .1s}.Toastify__toast--stacked[data-collapsed=false]{overflow:visible}.Toastify__toast--stacked[data-collapsed=true]:not(:last-child)>*{opacity:0}.Toastify__toast--stacked:after{content:"";position:absolute;left:0;right:0;height:calc(var(--g) * 1px);bottom:100%}.Toastify__toast--stacked[data-pos=top]{top:0}.Toastify__toast--stacked[data-pos=bot]{bottom:0}.Toastify__toast--stacked[data-pos=bot].Toastify__toast--stacked:before{transform-origin:top}.Toastify__toast--stacked[data-pos=top].Toastify__toast--stacked:before{transform-origin:bottom}.Toastify__toast--stacked:before{content:"";position:absolute;left:0;right:0;bottom:0;height:100%;transform:scaleY(3);z-index:-1}.Toastify__toast--rtl{direction:rtl}.Toastify__toast--close-on-click{cursor:pointer}.Toastify__toast-icon{margin-inline-end:10px;width:22px;flex-shrink:0;display:flex}.Toastify--animate{animation-fill-mode:both;animation-duration:.5s}.Toastify--animate-icon{animation-fill-mode:both;animation-duration:.3s}.Toastify__toast-theme--dark{background:var(--toastify-color-dark);color:var(--toastify-text-color-dark)}.Toastify__toast-theme--light,.Toastify__toast-theme--colored.Toastify__toast--default{background:var(--toastify-color-light);color:var(--toastify-text-color-light)}.Toastify__toast-theme--colored.Toastify__toast--info{color:var(--toastify-text-color-info);background:var(--toastify-color-info)}.Toastify__toast-theme--colored.Toastify__toast--success{color:var(--toastify-text-color-success);background:var(--toastify-color-success)}.Toastify__toast-theme--colored.Toastify__toast--warning{color:var(--toastify-text-color-warning);background:var(--toastify-color-warning)}.Toastify__toast-theme--colored.Toastify__toast--error{color:var(--toastify-text-color-error);background:var(--toastify-color-error)}.Toastify__progress-bar-theme--light{background:var(--toastify-color-progress-light)}.Toastify__progress-bar-theme--dark{background:var(--toastify-color-progress-dark)}.Toastify__progress-bar--info{background:var(--toastify-color-progress-info)}.Toastify__progress-bar--success{background:var(--toastify-color-progress-success)}.Toastify__progress-bar--warning{background:var(--toastify-color-progress-warning)}.Toastify__progress-bar--error{background:var(--toastify-color-progress-error)}.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error{background:var(--toastify-color-transparent)}.Toastify__close-button{color:#fff;position:absolute;top:6px;right:6px;background:transparent;outline:none;border:none;padding:0;cursor:pointer;opacity:.7;transition:.3s ease;z-index:1}.Toastify__toast--rtl .Toastify__close-button{left:6px;right:unset}.Toastify__close-button--light{color:#000;opacity:.3}.Toastify__close-button>svg{fill:currentColor;height:16px;width:14px}.Toastify__close-button:hover,.Toastify__close-button:focus{opacity:1}@keyframes Toastify__trackProgress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Toastify__progress-bar{position:absolute;bottom:0;left:0;width:100%;height:100%;z-index:1;opacity:.7;transform-origin:left}.Toastify__progress-bar--animated{animation:Toastify__trackProgress linear 1 forwards}.Toastify__progress-bar--controlled{transition:transform .2s}.Toastify__progress-bar--rtl{right:0;left:initial;transform-origin:right;border-bottom-left-radius:initial}.Toastify__progress-bar--wrp{position:absolute;overflow:hidden;bottom:0;left:0;width:100%;height:5px;border-bottom-left-radius:var(--toastify-toast-bd-radius);border-bottom-right-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--wrp[data-hidden=true]{opacity:0}.Toastify__progress-bar--bg{opacity:var(--toastify-color-progress-bgo);width:100%;height:100%}.Toastify__spinner{width:20px;height:20px;box-sizing:border-box;border:2px solid;border-radius:100%;border-color:var(--toastify-spinner-color-empty-area);border-right-color:var(--toastify-spinner-color);animation:Toastify__spin .65s linear infinite}@keyframes Toastify__bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutRight{20%{opacity:1;transform:translate3d(-20px,var(--y),0)}to{opacity:0;transform:translate3d(2000px,var(--y),0)}}@keyframes Toastify__bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutLeft{20%{opacity:1;transform:translate3d(20px,var(--y),0)}to{opacity:0;transform:translate3d(-2000px,var(--y),0)}}@keyframes Toastify__bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@keyframes Toastify__bounceOutUp{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes Toastify__bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@keyframes Toastify__bounceOutDown{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,2000px,0)}}.Toastify__bounce-enter--top-left,.Toastify__bounce-enter--bottom-left{animation-name:Toastify__bounceInLeft}.Toastify__bounce-enter--top-right,.Toastify__bounce-enter--bottom-right{animation-name:Toastify__bounceInRight}.Toastify__bounce-enter--top-center{animation-name:Toastify__bounceInDown}.Toastify__bounce-enter--bottom-center{animation-name:Toastify__bounceInUp}.Toastify__bounce-exit--top-left,.Toastify__bounce-exit--bottom-left{animation-name:Toastify__bounceOutLeft}.Toastify__bounce-exit--top-right,.Toastify__bounce-exit--bottom-right{animation-name:Toastify__bounceOutRight}.Toastify__bounce-exit--top-center{animation-name:Toastify__bounceOutUp}.Toastify__bounce-exit--bottom-center{animation-name:Toastify__bounceOutDown}@keyframes Toastify__zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes Toastify__zoomOut{0%{opacity:1}50%{opacity:0;transform:translate3d(0,var(--y),0) scale3d(.3,.3,.3)}to{opacity:0}}.Toastify__zoom-enter{animation-name:Toastify__zoomIn}.Toastify__zoom-exit{animation-name:Toastify__zoomOut}@keyframes Toastify__flipIn{0%{transform:perspective(400px) rotateX(90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateX(-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotateX(10deg);opacity:1}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes Toastify__flipOut{0%{transform:translate3d(0,var(--y),0) perspective(400px)}30%{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(-20deg);opacity:1}to{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(90deg);opacity:0}}.Toastify__flip-enter{animation-name:Toastify__flipIn}.Toastify__flip-exit{animation-name:Toastify__flipOut}@keyframes Toastify__slideInRight{0%{transform:translate3d(110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInLeft{0%{transform:translate3d(-110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInUp{0%{transform:translate3d(0,110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInDown{0%{transform:translate3d(0,-110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideOutRight{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(110%,var(--y),0)}}@keyframes Toastify__slideOutLeft{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(-110%,var(--y),0)}}@keyframes Toastify__slideOutDown{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,500px,0)}}@keyframes Toastify__slideOutUp{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,-500px,0)}}.Toastify__slide-enter--top-left,.Toastify__slide-enter--bottom-left{animation-name:Toastify__slideInLeft}.Toastify__slide-enter--top-right,.Toastify__slide-enter--bottom-right{animation-name:Toastify__slideInRight}.Toastify__slide-enter--top-center{animation-name:Toastify__slideInDown}.Toastify__slide-enter--bottom-center{animation-name:Toastify__slideInUp}.Toastify__slide-exit--top-left,.Toastify__slide-exit--bottom-left{animation-name:Toastify__slideOutLeft;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-right,.Toastify__slide-exit--bottom-right{animation-name:Toastify__slideOutRight;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-center{animation-name:Toastify__slideOutUp;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--bottom-center{animation-name:Toastify__slideOutDown;animation-timing-function:ease-in;animation-duration:.3s}@keyframes Toastify__spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}
142
- `);var Vt=e=>typeof e=="number"&&!isNaN(e),Re=e=>typeof e=="string",to=e=>typeof e=="function",ja=e=>Re(e)||Vt(e),Sa=e=>T.isValidElement(e)||Re(e)||to(e)||Vt(e),Ea=1,ro=()=>`${Ea++}`,re=new Map,Dt=[],mr=new Set,oo=()=>re.size>0,Aa=(e,{containerId:t})=>{var r;return(r=re.get(t||1))==null?void 0:r.toasts.get(e)};function Ia(e,t){var r;if(t)return!!((r=re.get(t))!=null&&r.isToastActive(e));let o=!1;return re.forEach(n=>{n.isToastActive(e)&&(o=!0)}),o}function Pa(e){if(!oo()){Dt=Dt.filter(t=>e!=null&&t.options.toastId!==e);return}if(e==null||ja(e))re.forEach(t=>{t.removeToast(e)});else if(e&&("containerId"in e||"id"in e)){let t=re.get(e.containerId);t?t.removeToast(e.id):re.forEach(r=>{r.removeToast(e.id)})}}var Da=(e={})=>{re.forEach(t=>{t.props.limit&&(!e.containerId||t.id===e.containerId)&&t.clearQueue()})};function Oa(e,t){Sa(e)&&(oo()||Dt.push({content:e,options:t}),re.forEach(r=>{r.buildToast(e,t)}))}function no(e,t){re.forEach(r=>{(t==null||!(t!=null&&t.containerId)||t?.containerId===r.id)&&r.toggle(e,t?.id)})}function Ma(e){return mr.add(e),()=>{mr.delete(e)}}function za(e){return e&&(Re(e.toastId)||Vt(e.toastId))?e.toastId:ro()}function Fe(e,t){return Oa(e,t),t.toastId}function dt(e,t){return{...t,type:t&&t.type||e,toastId:za(t)}}function ut(e){return(t,r)=>Fe(t,dt(e,r))}function L(e,t){return Fe(e,dt("default",t))}L.loading=(e,t)=>Fe(e,dt("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t}));function $a(e,{pending:t,error:r,success:o},n){let a;t&&(a=Re(t)?L.loading(t,n):L.loading(t.render,{...n,...t}));let s={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},c=(u,f,m)=>{if(f==null){L.dismiss(a);return}let b={type:u,...s,...n,data:m},h=Re(f)?{render:f}:f;return a?L.update(a,{...b,...h}):L(h.render,{...b,...h}),m},l=to(e)?e():e;return l.then(u=>c("success",o,u)).catch(u=>c("error",r,u)),l}L.promise=$a;L.success=ut("success");L.info=ut("info");L.error=ut("error");L.warning=ut("warning");L.warn=L.warning;L.dark=(e,t)=>Fe(e,dt("default",{theme:"dark",...t}));function La(e){Pa(e)}L.dismiss=La;L.clearWaitingQueue=Da;L.isActive=Ia;L.update=(e,t={})=>{let r=Aa(e,t);if(r){let{props:o,content:n}=r,a={delay:100,...o,...t,toastId:t.toastId||e,updateId:ro()};a.toastId!==e&&(a.staleId=e);let s=a.render||n;delete a.render,Fe(s,a)}};L.done=e=>{L.update(e,{progress:1})};L.onChange=Ma;L.play=e=>no(!0,e);L.pause=e=>no(!1,e);const Ra=()=>({showToast:(t,r)=>{const o={position:"bottom-right",autoClose:2e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!1,progress:void 0};switch(t){case"success":L.success(r,o);break;case"error":L.error(r,o);break;case"warning":L.warning(r,o);break;case"info":L.info(r,o);break;default:L(r,o);break}}});function Fa(e=768){const[t,r]=T.useState(()=>typeof window>"u"?!1:window.innerWidth<e);return T.useEffect(()=>{if(typeof window>"u")return;const o=()=>{r(window.innerWidth<e)};return window.addEventListener("resize",o),()=>{window.removeEventListener("resize",o)}},[e]),t}function Va({value:e,onChange:t,placeholder:r="Search...",disabled:o=!1,colorScheme:n="secondary",label:a,className:s="",debounceDelay:c=500,...l}){const[u,f]=T.useState(e||""),m=eo(u,c),b=T.useCallback(t,[t]);T.useEffect(()=>{b(m)},[m,b]);const h=()=>{const y="w-full px-4 py-4 pl-10 border-2 rounded-lg text-base bg-white transition-all duration-300 focus:outline-none focus:ring-1 disabled:bg-light disabled:text-text-muted disabled:cursor-not-allowed placeholder:text-text-muted";switch(n){case"primary":return _(y,"text-primary border-primary focus:border-primary");case"secondary":default:return _(y,"text-secondary border-secondary focus:border-secondary")}},p=()=>n==="primary"?"text-primary":"text-secondary",w=()=>n==="primary"?"text-primary":"text-secondary";return i.jsxs("div",{className:_("mb-0",s),children:[a&&i.jsx("label",{className:_("block mb-2 text-sm font-medium",w()),children:a}),i.jsxs("div",{className:"relative w-full",children:[i.jsx(Ta,{className:_("absolute left-3 top-1/2 -translate-y-1/2 text-base pointer-events-none",p())}),i.jsx("input",{type:"text",value:u,onChange:y=>f(y.target.value),placeholder:r,disabled:o,className:h(),...l})]})]})}function Ba(e){return de({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M257.5 445.1l-22.2 22.2c-9.4 9.4-24.6 9.4-33.9 0L7 273c-9.4-9.4-9.4-24.6 0-33.9L201.4 44.7c9.4-9.4 24.6-9.4 33.9 0l22.2 22.2c9.5 9.5 9.3 25-.4 34.3L136.6 216H424c13.3 0 24 10.7 24 24v32c0 13.3-10.7 24-24 24H136.6l120.5 114.8c9.8 9.3 10 24.8.4 34.3z"},child:[]}]})(e)}function Ga(e){return de({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z"},child:[]}]})(e)}function Wa({labelPage:e="Page",labelOf:t="of",setPagination:r,totalPages:o,currentPage:n,showLabel:a=!0,className:s="",isLoading:c=!1,fetchPage:l}){const u=parseInt(String(n))===1||parseInt(String(o))===0||c,f=parseInt(String(n))===parseInt(String(o))||parseInt(String(o))===0||c,m=()=>{c||(l?l(n-1):r&&r(h=>({...h,page:h.page-1})))},b=()=>{c||(l?l(n+1):r&&r(h=>({...h,page:h.page+1})))};return i.jsxs("div",{className:_("flex justify-center items-center mt-8",s),children:[i.jsx(pe,{disabled:u,onClick:m,variant:"secondary",children:i.jsx(Ba,{size:14})}),i.jsx("h5",{className:"font-bold mx-2.5 text-text",children:`${a?e:""} ${n}${a?` ${t} `:" / "}${o}`}),i.jsx(pe,{disabled:f,onClick:b,variant:"primary",children:i.jsx(Ga,{size:14})})]})}function ao(e){return de({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"m112 184 144 144 144-144"},child:[]}]})(e)}function Ha(e){return de({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"m289.94 256 95-95A24 24 0 0 0 351 127l-95 95-95-95a24 24 0 0 0-34 34l95 95-95 95a24 24 0 1 0 34 34l95-95 95 95a24 24 0 0 0 34-34z"},child:[]}]})(e)}function Ua(e){return de({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M456.69 421.39 362.6 327.3a173.81 173.81 0 0 0 34.84-104.58C397.44 126.38 319.06 48 222.72 48S48 126.38 48 222.72s78.38 174.72 174.72 174.72A173.81 173.81 0 0 0 327.3 362.6l94.09 94.09a25 25 0 0 0 35.3-35.3zM97.92 222.72a124.8 124.8 0 1 1 124.8 124.8 124.95 124.95 0 0 1-124.8-124.8z"},child:[]}]})(e)}function Ya({title:e,subtitle:t,children:r,defaultExpanded:o=!1,expanded:n,onToggle:a,className:s="",colorScheme:c="primary",icon:l,disabled:u=!1,headerExtra:f}){const[m,b]=T.useState(o),h=n!==void 0?n:m,p=()=>{if(u)return;const x=!h;n===void 0&&b(x),a?.(x)},w=()=>c==="primary"?"border-primary":"border-secondary",y=()=>c==="primary"?"text-primary":"text-secondary",C=()=>c==="primary"?"hover:bg-primary/5":"hover:bg-secondary/5";return i.jsxs("div",{className:_("w-full rounded-lg border-2 bg-background transition-all duration-300",w(),h&&"shadow-lg",s),children:[i.jsxs("button",{type:"button",onClick:p,disabled:u,className:_("w-full flex cursor-pointer items-center justify-between p-4 text-left transition-all duration-300 rounded-lg",!u&&C(),u&&"opacity-50"),"aria-expanded":h,children:[i.jsxs("div",{className:"flex items-center gap-3 flex-1 min-w-0",children:[l&&i.jsx("div",{className:_("shrink-0",y()),children:l}),i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsx("h3",{className:_("text-base font-medium truncate",y()),children:e}),t&&i.jsx("p",{className:"text-sm text-text-muted truncate mt-0.5",children:t})]})]}),i.jsxs("div",{className:"flex items-center gap-3 shrink-0",children:[f&&i.jsx("div",{onClick:x=>x.stopPropagation(),children:f}),i.jsx("div",{className:_("h-5 w-5 transition-transform duration-300",y(),h&&"rotate-180"),children:i.jsx(ao,{className:"h-5 w-5"})})]})]}),i.jsx("div",{className:_("overflow-hidden transition-all duration-300 ease-in-out",h?"max-h-500 opacity-100":"max-h-0 opacity-0"),children:i.jsx("div",{className:_("p-4 pt-0 border-t-0",w()),children:i.jsx("div",{className:"border-t border-border pt-4",children:r})})})]})}function qa({children:e,className:t=""}){return i.jsx("div",{className:_("py-4",t),children:e})}function Xa({options:e,value:t,onChange:r,children:o,className:n="",colorScheme:a="primary",variant:s="underline"}){const[c,l]=T.useState(t??e[0]?.value??""),u=t!==void 0?t:c,f=p=>{t===void 0&&l(p),r?.(p)},m=(p,w)=>{const y=u===p,C="px-4 py-3 cursor-pointer text-sm font-medium transition-all duration-300 focus:outline-none disabled:opacity-50 disabled:cursor-not-allowed";if(w)return _(C,"text-text-muted");switch(s){case"filled":return _(C,"rounded-lg",y?a==="primary"?"bg-primary text-white":"bg-secondary text-white":"text-text-muted hover:bg-background-light");case"pills":return _(C,"rounded-full",y?a==="primary"?"bg-primary/10 text-primary border-2 border-primary":"bg-secondary/10 text-secondary border-2 border-secondary":"text-text-muted hover:bg-background-light border-2 border-transparent");case"underline":default:return _(C,"border-b-2",y?a==="primary"?"border-primary text-primary":"border-secondary text-secondary":"border-transparent text-text-muted hover:text-text hover:border-border")}},b=()=>{switch(s){case"filled":return"flex gap-1 p-1 bg-background-light rounded-lg";case"pills":return"flex gap-2 flex-wrap";case"underline":default:return"flex border-b-2 border-border"}},h=T.Children.toArray(o).find(p=>T.isValidElement(p)?p.props.value===u:!1);return i.jsxs("div",{className:_("w-full",n),children:[i.jsx("div",{className:b(),role:"tablist",children:e.map(p=>i.jsx("button",{type:"button",role:"tab","aria-selected":u===p.value,"aria-controls":`tabpanel-${p.value}`,disabled:p.disabled,onClick:()=>!p.disabled&&f(p.value),className:m(p.value,p.disabled),children:p.label},p.value))}),i.jsx("div",{role:"tabpanel",id:`tabpanel-${u}`,children:h})]})}function hr(e){return de({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"},child:[]}]})(e)}function gr(e){return de({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"},child:[]}]})(e)}const so=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],io=["Lun","Mar","Mié","Jue","Vie","Sáb","Dom"],co=["January","February","March","April","May","June","July","August","September","October","November","December"],lo=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"];function Ka(e){return new Date(e.getFullYear(),e.getMonth()+1,0).getDate()}function Ja(e){const t=new Date(e.getFullYear(),e.getMonth(),1).getDay();return t===0?6:t-1}function Za({value:e,onChange:t,disabled:r=!1,className:o="",colorScheme:n="secondary",lang:a="en",...s}){const[c,l]=T.useState(e||new Date),u={en:"en-US",es:"es-ES"},f={en:so,es:io},m={en:co,es:lo},b=Ka(c),h=Ja(c),p=[];for(let d=0;d<h;d++)p.push(null);for(let d=1;d<=b;d++){const E=new Date(c.getFullYear(),c.getMonth(),d,12,0,0);p.push(E)}const w=()=>{l(new Date(c.getFullYear(),c.getMonth()-1,1,12,0,0))},y=()=>{l(new Date(c.getFullYear(),c.getMonth()+1,1,12,0,0))},C=()=>{l(new Date(c.getFullYear()-1,c.getMonth(),1,12,0,0))},x=()=>{l(new Date(c.getFullYear()+1,c.getMonth(),1,12,0,0))},g=d=>{if(d&&!r){const E=new Date(d.getFullYear(),d.getMonth(),d.getDate(),12,0,0);l(E),t?.(E)}},v=(()=>{switch(n){case"primary":return{header:"text-primary",selected:"bg-primary text-white",hover:"hover:bg-primary/10",button:"text-primary border-primary hover:bg-primary/20"};case"secondary":default:return{header:"text-secondary",selected:"bg-secondary text-white",hover:"hover:bg-secondary/10",button:"text-secondary border-secondary hover:bg-secondary/20"}}})(),k=d=>d&&e?d.toDateString()===e.toDateString():!1;return i.jsxs("div",{className:_("w-full max-w-sm bg-background border-2 border-border rounded-lg p-6 shadow-md",o),...s,children:[i.jsxs("div",{className:"mb-6",children:[i.jsxs("div",{className:_("flex items-center justify-between mb-4",v.header),children:[i.jsx("button",{type:"button",onClick:C,disabled:r,className:_("p-2 rounded-lg border transition-all duration-300",v.button,r&&"opacity-50 cursor-not-allowed"),children:i.jsx(hr,{size:18})}),i.jsx("h2",{className:"font-semibold text-lg",children:c.getFullYear()}),i.jsx("button",{type:"button",onClick:x,disabled:r,className:_("p-2 rounded-lg border transition-all duration-300",v.button,r&&"opacity-50 cursor-not-allowed"),children:i.jsx(gr,{size:18})})]}),i.jsxs("div",{className:_("flex items-center justify-between",v.header),children:[i.jsx("button",{type:"button",onClick:w,disabled:r,className:_("p-2 rounded-lg border transition-all duration-300",v.button,r&&"opacity-50 cursor-not-allowed"),children:i.jsx(hr,{size:18})}),i.jsx("h2",{className:"font-semibold text-lg",children:m[a][c.getMonth()]}),i.jsx("button",{type:"button",onClick:y,disabled:r,className:_("p-2 rounded-lg border transition-all duration-300",v.button,r&&"opacity-50 cursor-not-allowed"),children:i.jsx(gr,{size:18})})]})]}),i.jsx("div",{className:"grid grid-cols-7 gap-2 mb-4",children:f[a].map(d=>i.jsx("div",{className:_("text-center text-sm font-medium py-2",v.header),children:d},d))}),i.jsx("div",{className:"grid grid-cols-7 gap-2",children:p.map((d,E)=>i.jsx("button",{type:"button",onClick:()=>g(d),disabled:!d||r,className:_("p-2 rounded-lg text-sm font-medium transition-all duration-300",d?_("cursor-pointer",v.hover,k(d)?v.selected:"text-text border border-transparent hover:border-border",r&&"opacity-50 cursor-not-allowed"):"cursor-default"),children:d?d.getDate():""},E))}),e&&i.jsx("div",{className:_("mt-6 p-3 rounded-lg bg-background-dark border border-border text-center text-sm font-medium",v.header),children:e.toLocaleDateString(u[a],{year:"numeric",month:"long",day:"numeric"})})]})}function Qa({headers:e,data:t,loading:r,loadingText:o="Loading...",actions:n,actionsHeader:a="Actions",onRowClick:s,className:c="",rowClassName:l="",cellClassName:u="",headerClassName:f="",emptyText:m="No data available",showCount:b=!0,countText:h=w=>`Showing ${w} record${w!==1?"s":""}`,keyExtractor:p=(w,y)=>w._id||w.id||y}){if(r)return i.jsx("div",{className:"flex justify-center items-center min-h-50",children:i.jsx("div",{className:"text-lg text-text-light",children:o})});if(t.length===0)return i.jsx("div",{className:"flex justify-center items-center min-h-50",children:i.jsx("div",{className:"text-lg text-text-muted",children:m})});const w=(y,C)=>{const x=C.toLowerCase().replace(/\s+/g,"_");let g=y[x];if(g===void 0){const N=[x.replace(/_/g,""),C.toLowerCase().replace(/\s+/g,""),x.replace(/_([a-z])/g,(v,k)=>k.toUpperCase())];for(const v of N)if(y[v]!==void 0){g=y[v];break}}if(g===void 0){const N=C.toLowerCase().split(" "),v=Object.keys(y).find(k=>N.some(d=>k.toLowerCase().includes(d)));v&&(g=y[v])}return g!=null?String(g):"N/A"};return i.jsxs("div",{className:_("overflow-x-auto",c),children:[i.jsxs("table",{className:"w-full border-collapse",children:[i.jsx("thead",{children:i.jsxs("tr",{className:"border-b-2 border-border",children:[e.map((y,C)=>i.jsx("th",{className:_("text-left py-3 px-4 font-semibold text-text",f),children:y},C)),n&&i.jsx("th",{className:_("text-center py-3 px-4 font-semibold text-text",f),children:a})]})}),i.jsx("tbody",{children:t.map((y,C)=>i.jsxs("tr",{className:_("border-b border-border-dark hover:bg-background-light transition-colors",s&&"cursor-pointer",l),onClick:()=>s?.(y),children:[e.map((x,g)=>i.jsx("td",{className:_("py-4 px-4",u),children:i.jsx("div",{className:"text-text-light",children:w(y,x)})},g)),n&&i.jsx("td",{className:_("py-4 px-4",u),children:i.jsx("div",{className:"flex gap-2 justify-center",children:n.map((x,g)=>{const N=v=>{v?.stopPropagation(),x.onClick?.(y)};if(x.component){const v=x.component;return i.jsxs(v,{onClick:N,className:x.className||"",...x.props||{},children:[x.icon&&i.jsx("span",{className:"inline-block",children:T.createElement(x.icon)}),x.label&&x.label]},g)}return i.jsxs(pe,{onClick:N,className:x.className||"",...x.props||{},children:[x.icon&&i.jsx("span",{className:"inline-block",children:T.createElement(x.icon)}),x.label&&x.label]},g)})})})]},p(y,C)))})]}),b&&t.length>0&&i.jsx("div",{className:"mt-6 text-center text-text-light text-sm",children:h(t.length)})]})}function es({label:e,options:t,value:r="",onChange:o,multiple:n=!1,className:a="",searchable:s=!1,onSearchInputCustom:c,placeholder:l="Select...",disabled:u=!1,error:f,required:m=!1,colorScheme:b="primary",noResultsText:h="No results found",searchPlaceholder:p="Search...",...w}){const[y,C]=T.useState(!1),[x,g]=T.useState(""),[N,v]=T.useState({top:0,left:0,openUpward:!1}),k=Array.isArray(r)?r:r?[r]:[],[d,E]=T.useState(k.map(j=>t.find(D=>D.value===j)).filter(Boolean)),$=T.useRef(null),O=T.useRef(null),U=()=>{const j="w-full p-4 border-2 rounded-lg text-base bg-white transition-all duration-300 focus:outline-none focus:ring-1 disabled:bg-light disabled:text-text-muted disabled:cursor-not-allowed";if(f)return _(j,"border-danger focus:border-danger");switch(b){case"primary":return _(j,"text-primary border-primary focus:border-primary");case"secondary":default:return _(j,"text-secondary border-secondary focus:border-secondary")}},P=()=>b==="primary"?"text-primary":"text-secondary";T.useEffect(()=>{const D=(Array.isArray(r)?r:r!==""&&r!==null&&r!==void 0?[r]:[]).map(G=>t.find(W=>W.value===G)).filter(Boolean);E(D)},[r,t]),T.useEffect(()=>{y&&s&&O.current&&O.current.focus()},[y,s]);const S=T.useCallback(()=>{if(!$.current)return;const j=$.current.getBoundingClientRect(),D=window.innerHeight,G=250,Y=D-j.bottom<G&&j.top>G;v({top:Y?j.top:j.bottom,left:j.left,width:j.width,openUpward:Y})},[]);T.useEffect(()=>{function j(G){$.current&&!$.current.contains(G.target)&&C(!1)}function D(){y&&S()}return document.addEventListener("mousedown",j),window.addEventListener("scroll",D,!0),window.addEventListener("resize",D),()=>{document.removeEventListener("mousedown",j),window.removeEventListener("scroll",D,!0),window.removeEventListener("resize",D)}},[y,S]);const z=j=>{const D=t.find(W=>W.value===j);if(!D)return;let G;n?(G=d.some(Y=>Y.value===j)?d.filter(Y=>Y.value!==j):[...d,D],E(G),o(G)):(G=[D],E(G),o(D),C(!1),g(""))},X=j=>{g(j),c?.(j)},B=s?t.filter(j=>j.label.toLowerCase().includes(x.toLowerCase())):t,te=()=>d.length===0?l:n?d.length===1?d[0].label:`${d.length} selected`:d[0]?.label||l;return i.jsxs("div",{className:_("mb-6",a),children:[e&&i.jsxs("label",{className:_("block mb-2 text-sm font-medium",P()),children:[e,m&&i.jsx("span",{className:"text-danger ml-1",children:"*"})]}),i.jsxs("div",{ref:$,className:"relative w-full",children:[i.jsxs("button",{type:"button",onClick:j=>{j.preventDefault(),j.stopPropagation(),y||S(),C(!y)},className:_(U(),"inline-flex items-center justify-between cursor-pointer h-auto min-h-14",u&&"cursor-not-allowed",y&&"ring-1"),disabled:u,...w,children:[i.jsxs("div",{className:"flex items-center gap-2 flex-1",children:[d.length>0&&d[0].hex&&i.jsx("div",{className:"h-4 w-4 rounded border border-border",style:{backgroundColor:d[0].hex}}),i.jsx("span",{className:d.length>0?"":"text-text-muted",children:te()})]}),i.jsx("div",{className:_("h-5 w-5 transition-transform duration-200",y&&"rotate-180"),children:i.jsx(ao,{className:"h-5 w-5"})})]}),y&&i.jsxs("div",{className:_("fixed z-9999 rounded-lg border-2 bg-white shadow-xl",f?"border-danger":b==="primary"?"border-primary":"border-secondary"),style:{top:`${N.top+(N.openUpward?0:8)}px`,left:`${N.left}px`,width:`${N.width}px`,transform:N.openUpward?"translateY(-100%)":"none"},children:[s&&i.jsx("div",{className:"border-b border-border p-3",children:i.jsxs("div",{className:"relative",children:[i.jsx(Ua,{className:"absolute top-1/2 left-3 h-4 w-4 -translate-y-1/2 transform text-text-muted"}),i.jsx("input",{ref:O,type:"text",value:x,onChange:j=>X(j.target.value),placeholder:p,className:_("w-full rounded-lg border-2 py-2 pr-10 pl-10 text-sm transition-all duration-300 focus:outline-none focus:ring-1",b==="primary"?"border-primary text-primary":"border-secondary text-secondary")}),x&&i.jsx("button",{type:"button",onClick:()=>g(""),className:"absolute top-1/2 right-3 h-4 w-4 -translate-y-1/2 transform text-text-muted hover:text-text",children:i.jsx(Ha,{className:"h-4 w-4"})})]})}),i.jsxs("div",{className:"max-h-60 overflow-y-auto py-1",children:[B.map(j=>i.jsx("button",{type:"button",onClick:()=>z(j.value??""),className:_("w-full px-4 py-3 text-left text-sm transition-colors",d.some(D=>D.value===j.value)?b==="primary"?"bg-primary/10 text-primary font-medium":"bg-secondary/10 text-secondary font-medium":"text-text hover:bg-background-light"),children:i.jsxs("div",{className:"flex items-center gap-3",children:[n&&i.jsx("div",{className:_("flex h-4 w-4 items-center justify-center rounded border-2 transition-colors",d.some(D=>D.value===j.value)?b==="primary"?"border-primary bg-primary":"border-secondary bg-secondary":"border-border"),children:d.some(D=>D.value===j.value)&&i.jsx("svg",{className:"h-3 w-3 text-white",fill:"currentColor",viewBox:"0 0 20 20",children:i.jsx("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})})}),j.hex&&i.jsx("div",{className:"h-4 w-4 rounded border border-border",style:{backgroundColor:j.hex}}),i.jsx("span",{children:j.label})]})},j.value)),B.length===0&&x&&t.length>0&&i.jsx("div",{className:"px-4 py-3",children:i.jsx("span",{className:"text-sm text-text-muted",children:h})})]})]})]}),f&&i.jsx("span",{className:"block mt-1 text-xs text-danger font-medium",children:f})]})}const ts=({id:e,name:t,onFilesSelected:r,placeholder:o="Arrastra y suelta archivos aquí o haz clic para seleccionar",labelSelectedFiles:n="archivo:",label:a,error:s,disabled:c=!1,required:l=!1,colorScheme:u="secondary",className:f="",accept:m="*/*",multiple:b=!1,...h})=>{const p=T.useRef(null),[w,y]=T.useState(!1),[C,x]=T.useState([]),g=()=>{const S="w-full p-4 border-2 rounded-lg text-base bg-white transition-all duration-300 focus:outline-none disabled:bg-light disabled:text-text-muted disabled:cursor-not-allowed cursor-pointer min-h-[120px]";if(s)return _(S,"border-danger focus:border-danger focus:ring-1 focus:ring-danger");switch(u){case"primary":return _(S,"border-primary focus:border-primary focus:ring-1 focus:ring-primary hover:border-primary-dark");case"secondary":default:return _(S,"border-secondary focus:border-secondary focus:ring-1 focus:ring-secondary hover:border-secondary-dark")}},N=()=>{switch(u){case"primary":return"text-primary";case"secondary":default:return"text-secondary"}},v=S=>{S.preventDefault(),S.stopPropagation(),c||(S.type==="dragenter"||S.type==="dragover"?y(!0):S.type==="dragleave"&&y(!1))},k=S=>{if(S.preventDefault(),S.stopPropagation(),y(!1),c)return;const z=S.dataTransfer.files;E(z)},d=S=>{const z=S.target.files;z&&E(z)},E=S=>{const z=Array.from(S);if(m!=="*/*"){const X=z.filter(B=>$(B,m));if(X.length===0){console.warn("No valid files selected");return}x(b?X:[X[0]]),r(b?X:[X[0]])}else x(b?z:[z[0]]),r(b?z:[z[0]])},$=(S,z)=>z.split(",").map(B=>B.trim()).some(B=>{if(B.startsWith("."))return S.name.toLowerCase().endsWith(B.toLowerCase());if(B.includes("/")){const[te,j]=B.split("/"),D=S.type.split("/")[0];return j==="*"?D===te:S.type===B}return!1}),O=()=>{c||p.current?.click()},U=S=>{const z=C.filter((X,B)=>B!==S);x(z),r(z)},P=S=>{(S.key==="Enter"||S.key===" ")&&(S.preventDefault(),O())};return i.jsxs("div",{className:`mb-6 ${f}`,children:[a&&i.jsxs("label",{className:`block mb-2 text-sm font-medium ${N()}`,children:[a,l&&i.jsx("span",{className:"text-danger ml-1",children:"*"})]}),i.jsxs("div",{className:_(g(),w&&"bg-background-light border-2-dashed"),onDragEnter:v,onDragLeave:v,onDragOver:v,onDrop:k,onClick:O,onKeyDown:P,role:"button",tabIndex:c?-1:0,children:[i.jsx("input",{ref:p,id:e,name:t,type:"file",onChange:d,disabled:c,required:l,accept:m,multiple:b,className:"hidden",...h}),i.jsxs("div",{className:"flex flex-col items-center justify-center py-4",children:[i.jsx("svg",{className:`w-8 h-8 mb-2 ${u==="primary"?"text-primary":"text-secondary"}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:i.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 4v16m8-8H4"})}),i.jsx("p",{className:`text-sm ${N()}`,children:o})]})]}),i.jsxs("div",{className:"mt-4 space-y-2",children:[i.jsxs("p",{className:`text-sm font-medium ${N()}`,children:[C.length," ",n,"(s) seleccionado(s):"]}),i.jsx("ul",{className:"space-y-1",children:C.map((S,z)=>i.jsxs("li",{className:"flex items-center justify-between p-2 bg-light rounded border border-border",children:[i.jsxs("div",{className:"flex items-center gap-2 flex-1 min-w-0",children:[i.jsxs("svg",{className:"w-4 h-4 text-text-muted shrink-0",fill:"currentColor",viewBox:"0 0 20 20",children:[i.jsx("path",{d:"M8 16.5a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0zM15 16.5a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0z"}),i.jsx("path",{d:"M3 4a1 1 0 00-1 1v10a1 1 0 001 1h1.05a2.5 2.5 0 014.9 0H10a1 1 0 001-1V5a1 1 0 00-1-1H3zM14 7a1 1 0 00-1 1v6.05A2.5 2.5 0 0115.95 10H17a1 1 0 001-1v-3a1 1 0 00-1-1h-3z"})]}),i.jsx("span",{className:"text-sm text-text truncate",children:S.name})]}),i.jsx("button",{onClick:X=>{X.stopPropagation(),U(z)},className:"ml-2 text-danger hover:text-danger-dark shrink-0",type:"button",children:"✕"})]},z))})]}),s&&i.jsx("span",{className:"block mt-1 text-xs text-danger font-medium",children:s})]})},rs=({text:e,className:t="",variant:r="default",visible:o=!0,...n})=>{if(!o)return null;const a={default:"bg-gray-200 text-gray-800",primary:"bg-primary text-white",secondary:"bg-secondary text-white",secondaryDark:"bg-secondary-dark text-white",danger:"bg-danger text-white",warning:"bg-warning text-white"},s="inline-flex items-center px-3 py-1 rounded-full text-xs font-bold uppercase shadow-md",c=a[r]||a.default;return i.jsx("div",{className:`${s} ${c} ${t}`,...n,children:e})};function os({isOpen:e,onClose:t,title:r,children:o,size:n="md",className:a="",overlayClassName:s="",showCloseButton:c=!0,closeOnOverlayClick:l=!0,closeOnEscape:u=!0}){if(T.useEffect(()=>(e?document.body.style.overflow="hidden":document.body.style.overflow="unset",()=>{document.body.style.overflow="unset"}),[e]),T.useEffect(()=>{if(!u||!e)return;const h=p=>{p.key==="Escape"&&t()};return document.addEventListener("keydown",h),()=>{document.removeEventListener("keydown",h)}},[e,t,u]),!e)return null;const f={sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg",xl:"max-w-xl","2xl":"max-w-2xl"},m=()=>{l&&t()},b=i.jsx("div",{className:_("fixed inset-0 bg-black/40 flex items-center justify-center z-9999 p-4",s),onClick:m,role:"dialog","aria-modal":"true","aria-labelledby":r?"modal-title":void 0,children:i.jsxs("div",{className:_("relative bg-white rounded-xl shadow-2xl max-h-[90vh] flex flex-col w-full transition-all duration-300",f[n],a),onClick:h=>h.stopPropagation(),children:[(r||c)&&i.jsxs("div",{className:"flex justify-between items-center px-6 py-5 border-b border-border rounded-t-xl shrink-0",children:[r&&i.jsx("h2",{id:"modal-title",className:"text-xl sm:text-2xl font-bold text-primary m-0",children:r}),c&&i.jsx("button",{className:"flex items-center justify-center w-8 h-8 text-text-muted hover:text-text hover:bg-background-light transition-colors duration-200 rounded-lg",onClick:t,"aria-label":"Cerrar modal",type:"button",children:i.jsx("span",{className:"text-2xl font-light leading-none",children:"×"})})]}),i.jsx("div",{className:"p-6 overflow-y-auto flex-1",children:o})]})});return uo.createPortal(b,document.body)}function ns({id:e,name:t,checked:r=!1,onChange:o,disabled:n=!1,required:a=!1,colorScheme:s="secondary",variant:c="solid",label:l,className:u="",...f}){const m=(b,h)=>{const p="checkbox-input size-4 shrink-0 rounded transition-all duration-300 cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-opacity-50 disabled:cursor-not-allowed disabled:opacity-50";if(b==="outline")switch(h){case"primary":return`${p} checkbox-outline checkbox-primary`;case"secondary":default:return`${p} checkbox-outline checkbox-secondary`}else switch(h){case"primary":return`${p} checkbox-solid checkbox-primary`;case"secondary":default:return`${p} checkbox-solid checkbox-secondary`}};return l?i.jsxs("div",{className:`flex items-center gap-2 ${u}`,children:[i.jsx("input",{id:e,name:t,type:"checkbox",checked:r,onChange:o,disabled:n,required:a,className:m(c,s),...f}),i.jsxs("label",{htmlFor:e,className:"text-sm text-text cursor-pointer font-medium",children:[l,a&&i.jsx("span",{className:"text-red-500 ml-1",children:"*"})]})]}):i.jsx("input",{id:e,name:t,type:"checkbox",checked:r,onChange:o,disabled:n,required:a,className:`${m(c,s)} ${u}`,style:{accentColor:"white"},...f})}const{Input:as,InputArea:ss}=Tr,{Toggle:is}=Zo;exports.Badge=rs;exports.Button=pe;exports.Calendar=Za;exports.Checkbox=ns;exports.Dropdown=es;exports.EN_DEFAULT_DAY_NAMES=so;exports.EN_DEFAULT_MONTH_NAMES=co;exports.ES_DEFAULT_DAY_NAMES=io;exports.ES_DEFAULT_MONTH_NAMES=lo;exports.ExpandableCard=Ya;exports.FileDropZone=ts;exports.Input=as;exports.InputArea=ss;exports.Loader=Jr;exports.Login=ya;exports.Modal=os;exports.Pagination=Wa;exports.SearchInput=Va;exports.TabPanel=qa;exports.Table=Qa;exports.Tabs=Xa;exports.ThemeProvider=Uo;exports.Toggle=is;exports.cn=_;exports.defaultTheme=V;exports.generateColorVariants=Ye;exports.hexToHsl=_r;exports.hslToHex=kt;exports.useDebounce=eo;exports.useIsMobile=Fa;exports.useTheme=Ho;exports.useToast=Ra;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),k=require("react"),Te=require("react-loader-spinner"),Ie=require("react-dom"),X=require("react-toastify");function fe(e){var t,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var l=e.length;for(t=0;t<l;t++)e[t]&&(r=fe(e[t]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function Oe(){for(var e,t,r=0,o="",l=arguments.length;r<l;r++)(e=arguments[r])&&(t=fe(e))&&(o&&(o+=" "),o+=t);return o}const ie="-",_e=e=>{const t=$e(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:i=>{const n=i.split(ie);return n[0]===""&&n.length!==1&&n.shift(),he(n,t)||Fe(i)},getConflictingClassGroupIds:(i,n)=>{const c=r[i]||[];return n&&o[i]?[...c,...o[i]]:c}}},he=(e,t)=>{if(e.length===0)return t.classGroupId;const r=e[0],o=t.nextPart.get(r),l=o?he(e.slice(1),o):void 0;if(l)return l;if(t.validators.length===0)return;const a=e.join(ie);return t.validators.find(({validator:i})=>i(a))?.classGroupId},ce=/^\[(.+)\]$/,Fe=e=>{if(ce.test(e)){const t=ce.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},$e=e=>{const{theme:t,prefix:r}=e,o={nextPart:new Map,validators:[]};return Ve(Object.entries(e.classGroups),r).forEach(([a,i])=>{ae(i,o,a,t)}),o},ae=(e,t,r,o)=>{e.forEach(l=>{if(typeof l=="string"){const a=l===""?t:de(t,l);a.classGroupId=r;return}if(typeof l=="function"){if(Re(l)){ae(l(o),t,r,o);return}t.validators.push({validator:l,classGroupId:r});return}Object.entries(l).forEach(([a,i])=>{ae(i,de(t,a),r,o)})})},de=(e,t)=>{let r=e;return t.split(ie).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},Re=e=>e.isThemeGetter,Ve=(e,t)=>t?e.map(([r,o])=>{const l=o.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([i,n])=>[t+i,n])):a);return[r,l]}):e,Be=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,o=new Map;const l=(a,i)=>{r.set(a,i),t++,t>e&&(t=0,o=r,r=new Map)};return{get(a){let i=r.get(a);if(i!==void 0)return i;if((i=o.get(a))!==void 0)return l(a,i),i},set(a,i){r.has(a)?r.set(a,i):l(a,i)}}},xe="!",Ge=e=>{const{separator:t,experimentalParseClassName:r}=e,o=t.length===1,l=t[0],a=t.length,i=n=>{const c=[];let d=0,g=0,h;for(let p=0;p<n.length;p++){let w=n[p];if(d===0){if(w===l&&(o||n.slice(p,p+a)===t)){c.push(n.slice(g,p)),g=p+a;continue}if(w==="/"){h=p;continue}}w==="["?d++:w==="]"&&d--}const x=c.length===0?n:n.substring(g),y=x.startsWith(xe),m=y?x.substring(1):x,v=h&&h>g?h-g:void 0;return{modifiers:c,hasImportantModifier:y,baseClassName:m,maybePostfixModifierPosition:v}};return r?n=>r({className:n,parseClassName:i}):i},We=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach(o=>{o[0]==="["?(t.push(...r.sort(),o),r=[]):r.push(o)}),t.push(...r.sort()),t},He=e=>({cache:Be(e.cacheSize),parseClassName:Ge(e),..._e(e)}),Ue=/\s+/,Ye=(e,t)=>{const{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:l}=t,a=[],i=e.trim().split(Ue);let n="";for(let c=i.length-1;c>=0;c-=1){const d=i[c],{modifiers:g,hasImportantModifier:h,baseClassName:x,maybePostfixModifierPosition:y}=r(d);let m=!!y,v=o(m?x.substring(0,y):x);if(!v){if(!m){n=d+(n.length>0?" "+n:n);continue}if(v=o(x),!v){n=d+(n.length>0?" "+n:n);continue}m=!1}const p=We(g).join(":"),w=h?p+xe:p,b=w+v;if(a.includes(b))continue;a.push(b);const S=l(v,m);for(let z=0;z<S.length;++z){const j=S[z];a.push(w+j)}n=d+(n.length>0?" "+n:n)}return n};function Je(){let e=0,t,r,o="";for(;e<arguments.length;)(t=arguments[e++])&&(r=ye(t))&&(o&&(o+=" "),o+=r);return o}const ye=e=>{if(typeof e=="string")return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=ye(e[o]))&&(r&&(r+=" "),r+=t);return r};function Ke(e,...t){let r,o,l,a=i;function i(c){const d=t.reduce((g,h)=>h(g),e());return r=He(d),o=r.cache.get,l=r.cache.set,a=n,n(c)}function n(c){const d=o(c);if(d)return d;const g=Ye(c,r);return l(c,g),g}return function(){return a(Je.apply(null,arguments))}}const A=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},ve=/^\[(?:([a-z-]+):)?(.+)\]$/i,qe=/^\d+\/\d+$/,Ze=new Set(["px","full","screen"]),Xe=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Qe=/\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$/,et=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,tt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,rt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,B=e=>q(e)||Ze.has(e)||qe.test(e),G=e=>Z(e,"length",dt),q=e=>!!e&&!Number.isNaN(Number(e)),se=e=>Z(e,"number",q),Q=e=>!!e&&Number.isInteger(Number(e)),ot=e=>e.endsWith("%")&&q(e.slice(0,-1)),N=e=>ve.test(e),W=e=>Xe.test(e),st=new Set(["length","size","percentage"]),nt=e=>Z(e,st,we),at=e=>Z(e,"position",we),lt=new Set(["image","url"]),it=e=>Z(e,lt,pt),ct=e=>Z(e,"",ut),ee=()=>!0,Z=(e,t,r)=>{const o=ve.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):r(o[2]):!1},dt=e=>Qe.test(e)&&!et.test(e),we=()=>!1,ut=e=>tt.test(e),pt=e=>rt.test(e),mt=()=>{const e=A("colors"),t=A("spacing"),r=A("blur"),o=A("brightness"),l=A("borderColor"),a=A("borderRadius"),i=A("borderSpacing"),n=A("borderWidth"),c=A("contrast"),d=A("grayscale"),g=A("hueRotate"),h=A("invert"),x=A("gap"),y=A("gradientColorStops"),m=A("gradientColorStopPositions"),v=A("inset"),p=A("margin"),w=A("opacity"),b=A("padding"),S=A("saturate"),z=A("scale"),j=A("sepia"),P=A("skew"),f=A("space"),I=A("translate"),R=()=>["auto","contain","none"],V=()=>["auto","hidden","clip","visible","scroll"],U=()=>["auto",N,t],L=()=>[N,t],M=()=>["",B,G],D=()=>["auto",q,N],$=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],O=()=>["solid","dashed","dotted","double","none"],J=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],C=()=>["start","end","center","between","around","evenly","stretch"],E=()=>["","0",N],_=()=>["auto","avoid","all","avoid-page","page","left","right","column"],F=()=>[q,N];return{cacheSize:500,separator:":",theme:{colors:[ee],spacing:[B,G],blur:["none","",W,N],brightness:F(),borderColor:[e],borderRadius:["none","","full",W,N],borderSpacing:L(),borderWidth:M(),contrast:F(),grayscale:E(),hueRotate:F(),invert:E(),gap:L(),gradientColorStops:[e],gradientColorStopPositions:[ot,G],inset:U(),margin:U(),opacity:F(),padding:L(),saturate:F(),scale:F(),sepia:E(),skew:F(),space:L(),translate:L()},classGroups:{aspect:[{aspect:["auto","square","video",N]}],container:["container"],columns:[{columns:[W]}],"break-after":[{"break-after":_()}],"break-before":[{"break-before":_()}],"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:[...$(),N]}],overflow:[{overflow:V()}],"overflow-x":[{"overflow-x":V()}],"overflow-y":[{"overflow-y":V()}],overscroll:[{overscroll:R()}],"overscroll-x":[{"overscroll-x":R()}],"overscroll-y":[{"overscroll-y":R()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[v]}],"inset-x":[{"inset-x":[v]}],"inset-y":[{"inset-y":[v]}],start:[{start:[v]}],end:[{end:[v]}],top:[{top:[v]}],right:[{right:[v]}],bottom:[{bottom:[v]}],left:[{left:[v]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Q,N]}],basis:[{basis:U()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",N]}],grow:[{grow:E()}],shrink:[{shrink:E()}],order:[{order:["first","last","none",Q,N]}],"grid-cols":[{"grid-cols":[ee]}],"col-start-end":[{col:["auto",{span:["full",Q,N]},N]}],"col-start":[{"col-start":D()}],"col-end":[{"col-end":D()}],"grid-rows":[{"grid-rows":[ee]}],"row-start-end":[{row:["auto",{span:[Q,N]},N]}],"row-start":[{"row-start":D()}],"row-end":[{"row-end":D()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",N]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",N]}],gap:[{gap:[x]}],"gap-x":[{"gap-x":[x]}],"gap-y":[{"gap-y":[x]}],"justify-content":[{justify:["normal",...C()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...C(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...C(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[b]}],px:[{px:[b]}],py:[{py:[b]}],ps:[{ps:[b]}],pe:[{pe:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],m:[{m:[p]}],mx:[{mx:[p]}],my:[{my:[p]}],ms:[{ms:[p]}],me:[{me:[p]}],mt:[{mt:[p]}],mr:[{mr:[p]}],mb:[{mb:[p]}],ml:[{ml:[p]}],"space-x":[{"space-x":[f]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[f]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",N,t]}],"min-w":[{"min-w":[N,t,"min","max","fit"]}],"max-w":[{"max-w":[N,t,"none","full","min","max","fit","prose",{screen:[W]},W]}],h:[{h:[N,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[N,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[N,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[N,t,"auto","min","max","fit"]}],"font-size":[{text:["base",W,G]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",se]}],"font-family":[{font:[ee]}],"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",N]}],"line-clamp":[{"line-clamp":["none",q,se]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",B,N]}],"list-image":[{"list-image":["none",N]}],"list-style-type":[{list:["none","disc","decimal",N]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[w]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[w]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...O(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",B,G]}],"underline-offset":[{"underline-offset":["auto",B,N]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:L()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",N]}],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",N]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[w]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...$(),at]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",nt]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},it]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[y]}],"gradient-via":[{via:[y]}],"gradient-to":[{to:[y]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[n]}],"border-w-x":[{"border-x":[n]}],"border-w-y":[{"border-y":[n]}],"border-w-s":[{"border-s":[n]}],"border-w-e":[{"border-e":[n]}],"border-w-t":[{"border-t":[n]}],"border-w-r":[{"border-r":[n]}],"border-w-b":[{"border-b":[n]}],"border-w-l":[{"border-l":[n]}],"border-opacity":[{"border-opacity":[w]}],"border-style":[{border:[...O(),"hidden"]}],"divide-x":[{"divide-x":[n]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[n]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[w]}],"divide-style":[{divide:O()}],"border-color":[{border:[l]}],"border-color-x":[{"border-x":[l]}],"border-color-y":[{"border-y":[l]}],"border-color-s":[{"border-s":[l]}],"border-color-e":[{"border-e":[l]}],"border-color-t":[{"border-t":[l]}],"border-color-r":[{"border-r":[l]}],"border-color-b":[{"border-b":[l]}],"border-color-l":[{"border-l":[l]}],"divide-color":[{divide:[l]}],"outline-style":[{outline:["",...O()]}],"outline-offset":[{"outline-offset":[B,N]}],"outline-w":[{outline:[B,G]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:M()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[w]}],"ring-offset-w":[{"ring-offset":[B,G]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",W,ct]}],"shadow-color":[{shadow:[ee]}],opacity:[{opacity:[w]}],"mix-blend":[{"mix-blend":[...J(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":J()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",W,N]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[g]}],invert:[{invert:[h]}],saturate:[{saturate:[S]}],sepia:[{sepia:[j]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[g]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[w]}],"backdrop-saturate":[{"backdrop-saturate":[S]}],"backdrop-sepia":[{"backdrop-sepia":[j]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",N]}],duration:[{duration:F()}],ease:[{ease:["linear","in","out","in-out",N]}],delay:[{delay:F()}],animate:[{animate:["none","spin","ping","pulse","bounce",N]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[z]}],"scale-x":[{"scale-x":[z]}],"scale-y":[{"scale-y":[z]}],rotate:[{rotate:[Q,N]}],"translate-x":[{"translate-x":[I]}],"translate-y":[{"translate-y":[I]}],"skew-x":[{"skew-x":[P]}],"skew-y":[{"skew-y":[P]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",N]}],accent:[{accent:["auto",e]}],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",N]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":L()}],"scroll-mx":[{"scroll-mx":L()}],"scroll-my":[{"scroll-my":L()}],"scroll-ms":[{"scroll-ms":L()}],"scroll-me":[{"scroll-me":L()}],"scroll-mt":[{"scroll-mt":L()}],"scroll-mr":[{"scroll-mr":L()}],"scroll-mb":[{"scroll-mb":L()}],"scroll-ml":[{"scroll-ml":L()}],"scroll-p":[{"scroll-p":L()}],"scroll-px":[{"scroll-px":L()}],"scroll-py":[{"scroll-py":L()}],"scroll-ps":[{"scroll-ps":L()}],"scroll-pe":[{"scroll-pe":L()}],"scroll-pt":[{"scroll-pt":L()}],"scroll-pr":[{"scroll-pr":L()}],"scroll-pb":[{"scroll-pb":L()}],"scroll-pl":[{"scroll-pl":L()}],"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",N]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[B,G,se]}],stroke:[{stroke:[e,"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"]}}},bt=Ke(mt);function u(...e){return bt(Oe(e))}function ke(e){const t=parseInt(e.slice(1,3),16)/255,r=parseInt(e.slice(3,5),16)/255,o=parseInt(e.slice(5,7),16)/255,l=Math.max(t,r,o),a=Math.min(t,r,o);let i=0,n=0;const c=(l+a)/2;if(l!==a){const d=l-a;switch(n=c>.5?d/(2-l-a):d/(l+a),l){case t:i=((r-o)/d+(r<o?6:0))/6;break;case r:i=((o-t)/d+2)/6;break;case o:i=((t-r)/d+4)/6;break}}return[i*360,n*100,c*100]}function le(e,t,r){r/=100;const o=t*Math.min(r,1-r)/100,l=a=>{const i=(a+e/30)%12,n=r-o*Math.max(Math.min(i-3,9-i,1),-1);return Math.round(255*n).toString(16).padStart(2,"0")};return`#${l(0)}${l(8)}${l(4)}`}function te(e){const[t,r,o]=ke(e);return{base:e,light:le(t,Math.max(0,r-10),Math.min(100,o+15)),dark:le(t,Math.min(100,r+10),Math.max(0,o-15))}}const T={colors:{primary:"#6366f1",primaryLight:"#818cf8",primaryDark:"#4f46e5",secondary:"#8b5cf6",secondaryLight:"#a78bfa",secondaryDark:"#7c3aed",danger:"#ef4444",dangerLight:"#f87171",dangerDark:"#dc2626",text:"#1f2937",textMuted:"#6b7280",textLight:"#9ca3af",border:"#e5e7eb",borderDark:"#d1d5db",background:"#ffffff",backgroundDark:"#f9fafb",backgroundLight:"#f3f4f6",disabled:"#e5e7eb",light:"#f9fafb",active:"#4338ca"}},je=k.createContext(T);function gt(){return k.useContext(je)}function ue(e){const t=document.documentElement;t.style.setProperty("--componentables-primary",e.colors.primary),t.style.setProperty("--componentables-primary-light",e.colors.primaryLight),t.style.setProperty("--componentables-primary-dark",e.colors.primaryDark),t.style.setProperty("--componentables-secondary",e.colors.secondary),t.style.setProperty("--componentables-secondary-light",e.colors.secondaryLight),t.style.setProperty("--componentables-secondary-dark",e.colors.secondaryDark),t.style.setProperty("--componentables-danger",e.colors.danger),t.style.setProperty("--componentables-danger-light",e.colors.dangerLight),t.style.setProperty("--componentables-danger-dark",e.colors.dangerDark),t.style.setProperty("--componentables-text",e.colors.text),t.style.setProperty("--componentables-text-muted",e.colors.textMuted),t.style.setProperty("--componentables-text-light",e.colors.textLight),t.style.setProperty("--componentables-border",e.colors.border),t.style.setProperty("--componentables-border-dark",e.colors.borderDark),t.style.setProperty("--componentables-background",e.colors.background),t.style.setProperty("--componentables-background-dark",e.colors.backgroundDark),t.style.setProperty("--componentables-background-light",e.colors.backgroundLight),t.style.setProperty("--componentables-disabled",e.colors.disabled),t.style.setProperty("--componentables-light",e.colors.light),t.style.setProperty("--componentables-active",e.colors.active)}function ft({children:e,theme:t}){const r=k.useMemo(()=>{const o=t?.colors||{},l=o.primary?te(o.primary):null,a=o.secondary?te(o.secondary):null,i=o.danger?te(o.danger):null;return{colors:{primary:o.primary||T.colors.primary,primaryLight:l?.light||T.colors.primaryLight,primaryDark:l?.dark||T.colors.primaryDark,secondary:o.secondary||T.colors.secondary,secondaryLight:a?.light||T.colors.secondaryLight,secondaryDark:a?.dark||T.colors.secondaryDark,danger:o.danger||T.colors.danger,dangerLight:i?.light||T.colors.dangerLight,dangerDark:i?.dark||T.colors.dangerDark,text:o.text||T.colors.text,textMuted:o.textMuted||T.colors.textMuted,textLight:o.textLight||T.colors.textLight,border:o.border||T.colors.border,borderDark:o.borderDark||T.colors.borderDark,background:o.background||T.colors.background,backgroundDark:o.backgroundDark||T.colors.backgroundDark,backgroundLight:o.backgroundLight||T.colors.backgroundLight,disabled:o.disabled||T.colors.disabled,light:o.light||T.colors.light,active:o.active||T.colors.active}}},[t]);return typeof window<"u"&&ue(r),k.useEffect(()=>{ue(r)},[r]),k.createElement(je.Provider,{value:r},e)}const ht={primary:"bg-primary text-white border-primary hover:bg-primary-dark hover:border-primary-dark active:bg-active",secondary:"bg-secondary text-white border-secondary hover:bg-secondary-dark hover:border-secondary-dark",outline:"bg-transparent text-primary border-primary hover:bg-primary hover:text-white",ghost:"bg-transparent text-primary border-transparent hover:bg-primary hover:text-white hover:border-primary",light:"bg-light text-text border-border hover:bg-background-light",danger:"bg-transparent text-danger border-danger hover:text-white hover:bg-danger hover:border-danger active:bg-danger-dark",link:"bg-transparent text-secondary-light! underline hover:text-primary! border-0"},xt={sm:"px-3 py-1.5 text-sm",md:"px-4 py-2 text-base",lg:"px-6 py-3 text-lg",xl:"px-8 py-4 text-xl"};function Y({children:e,onClick:t,disabled:r=!1,type:o="button",variant:l="primary",size:a="md",fullWidth:i=!1,loading:n=!1,className:c="",...d}){return s.jsxs("button",{type:o,onClick:r||n?void 0:t,disabled:r||n,className:u("inline-flex shadow-md hover:shadow-lg cursor-pointer items-center justify-center font-medium rounded-lg border transition-all duration-300 focus:outline-none focus:ring-2 focus:ring-primary focus:ring-opacity-50",r||n?"bg-disabled text-text-muted border-disabled cursor-not-allowed hover:bg-disabled hover:border-disabled hover:text-text-muted":ht[l],xt[a],i&&"w-full",n&&"cursor-wait opacity-75",c),...d,children:[n&&s.jsxs("svg",{className:"w-4 h-4 mr-2 animate-spin",fill:"none",viewBox:"0 0 24 24",children:[s.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),s.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),e]})}function yt({id:e,name:t,type:r="text",value:o,onChange:l,placeholder:a,label:i,error:n,disabled:c=!1,required:d=!1,colorScheme:g="secondary",className:h="",...x}){const y=()=>{const v="w-full p-4 border-2 rounded-lg text-base bg-white transition-all duration-300 focus:outline-none focus:ring-1 disabled:bg-light disabled:text-text-muted disabled:cursor-not-allowed placeholder:text-text-muted";if(n)return u(v,"border-danger focus:border-danger focus:shadow-danger-light");switch(g){case"primary":return u(v,"text-primary border-primary focus:border-primary");case"secondary":default:return u(v,"text-secondary border-secondary focus:border-secondary")}},m=()=>g==="primary"?"text-primary":"text-secondary";return s.jsxs("div",{className:u("mb-6",h),children:[i&&s.jsxs("label",{htmlFor:e,className:u("block mb-2 text-sm font-medium",m()),children:[i,d&&s.jsx("span",{className:"text-danger ml-1",children:"*"})]}),s.jsx("input",{id:e,name:t,type:r,value:o,onChange:l,placeholder:a,disabled:c,required:d,className:y(),...x}),n&&s.jsx("span",{className:"block mt-1 text-xs text-danger font-medium",children:n})]})}function vt({id:e,name:t,value:r,onChange:o,placeholder:l,label:a,error:i,disabled:n=!1,required:c=!1,colorScheme:d="secondary",className:g="",rows:h=4,...x}){const y=()=>{const v="w-full p-4 border-2 rounded-lg text-base bg-white transition-all duration-300 focus:outline-none focus:ring-1 disabled:bg-light disabled:text-text-muted disabled:cursor-not-allowed placeholder:text-text-muted resize-none";if(i)return u(v,"border-danger focus:border-danger focus:shadow-danger-light");switch(d){case"primary":return u(v,"text-primary border-primary focus:border-primary");case"secondary":default:return u(v,"text-secondary border-secondary focus:border-secondary")}},m=()=>d==="primary"?"text-primary":"text-secondary";return s.jsxs("div",{className:u("mb-6",g),children:[a&&s.jsxs("label",{htmlFor:e,className:u("block mb-2 text-sm font-medium",m()),children:[a,c&&s.jsx("span",{className:"text-danger ml-1",children:"*"})]}),s.jsx("textarea",{id:e,name:t,value:r,onChange:o,placeholder:l,disabled:n,required:c,rows:h,className:y(),...x}),i&&s.jsx("span",{className:"block mt-1 text-xs text-danger font-medium",children:i})]})}const Ce={Input:yt,InputArea:vt};function wt({id:e,name:t,checked:r=!1,onChange:o,disabled:l=!1,label:a,colorScheme:i="secondary",size:n="md",className:c="",...d}){const[g,h]=k.useState(r),x=b=>{const S=b.target.checked;h(S),o?.(S)},y=()=>({primary:{bg:"bg-primary",border:"border-primary",text:"text-primary"},secondary:{bg:"bg-secondary",border:"border-secondary",text:"text-secondary"}})[i],m=()=>{switch(n){case"sm":return"w-10 h-6";case"lg":return"w-16 h-8";case"md":default:return"w-13 h-7"}},v=()=>{switch(n){case"sm":return"w-5 h-5";case"lg":return"w-7 h-7";case"md":default:return"w-6 h-6"}},p=()=>{if(!g)return"translate-x-0";switch(n){case"sm":return"translate-x-5";case"lg":return"translate-x-8";case"md":default:return"translate-x-6"}},w=y();return s.jsxs("div",{className:u("flex items-center gap-3",c),children:[s.jsxs("div",{className:"relative",children:[s.jsx("input",{type:"checkbox",id:e,name:t,checked:g,onChange:x,disabled:l,className:"sr-only",...d}),s.jsx("label",{htmlFor:e,className:u("block cursor-pointer transition-all duration-300 rounded-full border-2",m(),g?u(w.bg,w.border):"bg-gray-200 border-gray-300",l?"opacity-50 cursor-not-allowed":"hover:shadow-md"),children:s.jsx("span",{className:u("absolute top-0.5 left-0.5 inline-block rounded-full bg-white transition-all duration-300 shadow-sm",v(),p())})})]}),a&&s.jsx("label",{htmlFor:e,className:u("text-sm font-medium cursor-pointer select-none",w.text,l&&"opacity-50 cursor-not-allowed"),children:a})]})}const kt={Toggle:wt},Ne=({size:e=40,wrapperStyle:t={},wrapperClass:r="",ariaLabel:o="Cargando...",label:l="Cargando...",visible:a=!0,direction:i="column"})=>{const n={display:"flex",flexDirection:i,justifyContent:"center",alignItems:"center",minHeight:"100px",...t};return s.jsxs("div",{style:n,className:r,children:[s.jsx("label",{children:l}),s.jsx(Te.Oval,{visible:a,height:e,width:e,ariaLabel:o,wrapperStyle:{},wrapperClass:"",secondaryColor:"#cdae90",color:"#cdae90"})]})},{Input:ne}=Ce,jt=({title:e="Iniciar Sesión",showForgotPassword:t=!0,className:r="",onLogin:o,onForgotPassword:l})=>{const[a,i]=k.useState({email:"",password:""}),[n,c]=k.useState({}),[d,g]=k.useState(!1),[h,x]=k.useState("login"),y=(j,P)=>{switch(j){case"email":return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(P)?"":"Por favor ingresa un email válido";case"password":return P.length>=6?"":"La contraseña debe tener al menos 6 caracteres";default:return""}},m=j=>{const{name:P,value:f}=j.target;i(I=>({...I,[P]:f})),n[P]&&c(I=>({...I,[P]:""}))},v=()=>{const j={},P=y("email",a.email);if(P&&(j.email=P),h==="login"){const f=y("password",a.password);f&&(j.password=f)}return c(j),Object.keys(j).length===0},p=async j=>{if(j.preventDefault(),!!v()){g(!0);try{switch(h){case"login":o&&await o({email:a.email,password:a.password});break;case"forgot":l&&await l(a.email);break}}catch(P){console.error("Login error:",P)}finally{g(!1)}}},w=j=>{x(j),c({}),i({email:a.email,password:""})},b=()=>{switch(h){case"forgot":return s.jsx(ne,{id:"email",type:"email",name:"email",placeholder:"Ingresa tu email",label:"Email",value:a.email,onChange:m,error:n.email,disabled:d,colorScheme:"secondary"});default:return s.jsxs(s.Fragment,{children:[s.jsx(ne,{id:"email",type:"email",name:"email",placeholder:"Ingresa tu email",label:"Email",value:a.email,onChange:m,error:n.email,disabled:d,colorScheme:"secondary"}),s.jsx(ne,{id:"password",type:"password",name:"password",placeholder:"Ingresa tu contraseña",label:"Contraseña",value:a.password,onChange:m,error:n.password,disabled:d,colorScheme:"secondary"})]})}},S=()=>{switch(h){case"forgot":return"Recuperar Contraseña";default:return e}},z=()=>{if(d)return s.jsx(Ne,{size:20,wrapperStyle:{minHeight:"auto"}});switch(h){case"forgot":return"Enviar Enlace";default:return"Entrar"}};return s.jsx("div",{className:`flex justify-center items-center min-h-[90vh] p-6 bg-background sm:p-4 ${r||""}`,children:s.jsxs("div",{className:"w-full max-w-100 p-12 bg-white rounded-2xl shadow-lg animate-[fadeIn_0.3s_ease-out] sm:p-8",children:[s.jsx("h2",{className:"text-center mb-12 text-3xl font-semibold text-primary sm:text-2xl sm:mb-8",children:S()}),s.jsx("div",{className:"space-y-4 mb-6",children:b()}),s.jsx("form",{onSubmit:p,children:s.jsx(Y,{type:"submit",disabled:d,loading:d,fullWidth:!0,variant:"primary",size:"lg",className:"mb-6",children:!d&&z()})}),h==="login"&&t&&s.jsx(Y,{type:"button",onClick:()=>w("forgot"),variant:"link",size:"sm",fullWidth:!0,className:"shadow-none! !hover:shadow-none",children:"¿Olvidaste tu contraseña?"}),h==="forgot"&&s.jsx(Y,{type:"button",onClick:()=>w("login"),variant:"link",size:"sm",fullWidth:!0,className:"shadow-none! !hover:shadow-none",children:"Volver al inicio de sesión"})]})})};var Me={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},pe=k.createContext&&k.createContext(Me),Ct=["attr","size","title"];function Nt(e,t){if(e==null)return{};var r=Mt(e,t),o,l;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(l=0;l<a.length;l++)o=a[l],!(t.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}function Mt(e,t){if(e==null)return{};var r={};for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){if(t.indexOf(o)>=0)continue;r[o]=e[o]}return r}function re(){return re=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},re.apply(this,arguments)}function me(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),r.push.apply(r,o)}return r}function oe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?me(Object(r),!0).forEach(function(o){St(e,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):me(Object(r)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o))})}return e}function St(e,t,r){return t=Et(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Et(e){var t=Lt(e,"string");return typeof t=="symbol"?t:t+""}function Lt(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var o=r.call(e,t);if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Se(e){return e&&e.map((t,r)=>k.createElement(t.tag,oe({key:r},t.attr),Se(t.child)))}function H(e){return t=>k.createElement(zt,re({attr:oe({},e.attr)},t),Se(e.child))}function zt(e){var t=r=>{var{attr:o,size:l,title:a}=e,i=Nt(e,Ct),n=l||r.size||"1em",c;return r.className&&(c=r.className),e.className&&(c=(c?c+" ":"")+e.className),k.createElement("svg",re({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,o,i,{className:c,style:oe(oe({color:e.color||r.color},r.style),e.style),height:n,width:n,xmlns:"http://www.w3.org/2000/svg"}),a&&k.createElement("title",null,a),e.children)};return pe!==void 0?k.createElement(pe.Consumer,null,r=>t(r)):t(Me)}function Dt(e){return H({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"11",cy:"11",r:"8"},child:[]},{tag:"line",attr:{x1:"21",y1:"21",x2:"16.65",y2:"16.65"},child:[]}]})(e)}const Ee=(e,t=500)=>{const[r,o]=k.useState(e);return k.useEffect(()=>{const l=setTimeout(()=>{o(e)},t);return()=>clearTimeout(l)},[e,t]),r},At=()=>({showToast:(t,r)=>{const o={position:"bottom-right",autoClose:2e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!1,progress:void 0};switch(t){case"success":X.toast.success(r,o);break;case"error":X.toast.error(r,o);break;case"warning":X.toast.warning(r,o);break;case"info":X.toast.info(r,o);break;default:X.toast(r,o);break}}});function Pt(e=768){const[t,r]=k.useState(()=>typeof window>"u"?!1:window.innerWidth<e);return k.useEffect(()=>{if(typeof window>"u")return;const o=()=>{r(window.innerWidth<e)};return window.addEventListener("resize",o),()=>{window.removeEventListener("resize",o)}},[e]),t}function Tt({value:e,onChange:t,placeholder:r="Search...",disabled:o=!1,colorScheme:l="secondary",label:a,className:i="",debounceDelay:n=500,...c}){const[d,g]=k.useState(e||""),h=Ee(d,n),x=k.useCallback(t,[t]);k.useEffect(()=>{x(h)},[h,x]);const y=()=>{const p="w-full px-4 py-4 pl-10 border-2 rounded-lg text-base bg-white transition-all duration-300 focus:outline-none focus:ring-1 disabled:bg-light disabled:text-text-muted disabled:cursor-not-allowed placeholder:text-text-muted";switch(l){case"primary":return u(p,"text-primary border-primary focus:border-primary");case"secondary":default:return u(p,"text-secondary border-secondary focus:border-secondary")}},m=()=>l==="primary"?"text-primary":"text-secondary",v=()=>l==="primary"?"text-primary":"text-secondary";return s.jsxs("div",{className:u("mb-0",i),children:[a&&s.jsx("label",{className:u("block mb-2 text-sm font-medium",v()),children:a}),s.jsxs("div",{className:"relative w-full",children:[s.jsx(Dt,{className:u("absolute left-3 top-1/2 -translate-y-1/2 text-base pointer-events-none",m())}),s.jsx("input",{type:"text",value:d,onChange:p=>g(p.target.value),placeholder:r,disabled:o,className:y(),...c})]})]})}function It(e){return H({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M257.5 445.1l-22.2 22.2c-9.4 9.4-24.6 9.4-33.9 0L7 273c-9.4-9.4-9.4-24.6 0-33.9L201.4 44.7c9.4-9.4 24.6-9.4 33.9 0l22.2 22.2c9.5 9.5 9.3 25-.4 34.3L136.6 216H424c13.3 0 24 10.7 24 24v32c0 13.3-10.7 24-24 24H136.6l120.5 114.8c9.8 9.3 10 24.8.4 34.3z"},child:[]}]})(e)}function Ot(e){return H({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z"},child:[]}]})(e)}function _t({labelPage:e="Page",labelOf:t="of",setPagination:r,totalPages:o,currentPage:l,showLabel:a=!0,className:i="",isLoading:n=!1,fetchPage:c}){const d=parseInt(String(l))===1||parseInt(String(o))===0||n,g=parseInt(String(l))===parseInt(String(o))||parseInt(String(o))===0||n,h=()=>{n||(c?c(l-1):r&&r(y=>({...y,page:y.page-1})))},x=()=>{n||(c?c(l+1):r&&r(y=>({...y,page:y.page+1})))};return s.jsxs("div",{className:u("flex justify-center items-center mt-8",i),children:[s.jsx(Y,{disabled:d,onClick:h,variant:"secondary",children:s.jsx(It,{size:14})}),s.jsx("h5",{className:"font-bold mx-2.5 text-text",children:`${a?e:""} ${l}${a?` ${t} `:" / "}${o}`}),s.jsx(Y,{disabled:g,onClick:x,variant:"primary",children:s.jsx(Ot,{size:14})})]})}function Le(e){return H({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"m112 184 144 144 144-144"},child:[]}]})(e)}function Ft(e){return H({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"m289.94 256 95-95A24 24 0 0 0 351 127l-95 95-95-95a24 24 0 0 0-34 34l95 95-95 95a24 24 0 1 0 34 34l95-95 95 95a24 24 0 0 0 34-34z"},child:[]}]})(e)}function $t(e){return H({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M456.69 421.39 362.6 327.3a173.81 173.81 0 0 0 34.84-104.58C397.44 126.38 319.06 48 222.72 48S48 126.38 48 222.72s78.38 174.72 174.72 174.72A173.81 173.81 0 0 0 327.3 362.6l94.09 94.09a25 25 0 0 0 35.3-35.3zM97.92 222.72a124.8 124.8 0 1 1 124.8 124.8 124.95 124.95 0 0 1-124.8-124.8z"},child:[]}]})(e)}function Rt({title:e,subtitle:t,children:r,defaultExpanded:o=!1,expanded:l,onToggle:a,className:i="",colorScheme:n="primary",icon:c,disabled:d=!1,headerExtra:g}){const[h,x]=k.useState(o),y=l!==void 0?l:h,m=()=>{if(d)return;const b=!y;l===void 0&&x(b),a?.(b)},v=()=>n==="primary"?"border-primary":"border-secondary",p=()=>n==="primary"?"text-primary":"text-secondary",w=()=>n==="primary"?"hover:bg-primary/5":"hover:bg-secondary/5";return s.jsxs("div",{className:u("w-full rounded-lg border-2 bg-background transition-all duration-300",v(),y&&"shadow-lg",i),children:[s.jsxs("button",{type:"button",onClick:m,disabled:d,className:u("w-full flex cursor-pointer items-center justify-between p-4 text-left transition-all duration-300 rounded-lg",!d&&w(),d&&"opacity-50"),"aria-expanded":y,children:[s.jsxs("div",{className:"flex items-center gap-3 flex-1 min-w-0",children:[c&&s.jsx("div",{className:u("shrink-0",p()),children:c}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("h3",{className:u("text-base font-medium truncate",p()),children:e}),t&&s.jsx("p",{className:"text-sm text-text-muted truncate mt-0.5",children:t})]})]}),s.jsxs("div",{className:"flex items-center gap-3 shrink-0",children:[g&&s.jsx("div",{onClick:b=>b.stopPropagation(),children:g}),s.jsx("div",{className:u("h-5 w-5 transition-transform duration-300",p(),y&&"rotate-180"),children:s.jsx(Le,{className:"h-5 w-5"})})]})]}),s.jsx("div",{className:u("overflow-hidden transition-all duration-300 ease-in-out",y?"max-h-500 opacity-100":"max-h-0 opacity-0"),children:s.jsx("div",{className:u("p-4 pt-0 border-t-0",v()),children:s.jsx("div",{className:"border-t border-border pt-4",children:r})})})]})}function Vt({children:e,className:t=""}){return s.jsx("div",{className:u("py-4",t),children:e})}function Bt({options:e,value:t,onChange:r,children:o,className:l="",colorScheme:a="primary",variant:i="underline"}){const[n,c]=k.useState(t??e[0]?.value??""),d=t!==void 0?t:n,g=m=>{t===void 0&&c(m),r?.(m)},h=(m,v)=>{const p=d===m,w="px-4 py-3 cursor-pointer text-sm font-medium transition-all duration-300 focus:outline-none disabled:opacity-50 disabled:cursor-not-allowed";if(v)return u(w,"text-text-muted");switch(i){case"filled":return u(w,"rounded-lg",p?a==="primary"?"bg-primary text-white":"bg-secondary text-white":"text-text-muted hover:bg-background-light");case"pills":return u(w,"rounded-full",p?a==="primary"?"bg-primary/10 text-primary border-2 border-primary":"bg-secondary/10 text-secondary border-2 border-secondary":"text-text-muted hover:bg-background-light border-2 border-transparent");case"underline":default:return u(w,"border-b-2",p?a==="primary"?"border-primary text-primary":"border-secondary text-secondary":"border-transparent text-text-muted hover:text-text hover:border-border")}},x=()=>{switch(i){case"filled":return"flex gap-1 p-1 bg-background-light rounded-lg";case"pills":return"flex gap-2 flex-wrap";case"underline":default:return"flex border-b-2 border-border"}},y=k.Children.toArray(o).find(m=>k.isValidElement(m)?m.props.value===d:!1);return s.jsxs("div",{className:u("w-full",l),children:[s.jsx("div",{className:x(),role:"tablist",children:e.map(m=>s.jsx("button",{type:"button",role:"tab","aria-selected":d===m.value,"aria-controls":`tabpanel-${m.value}`,disabled:m.disabled,onClick:()=>!m.disabled&&g(m.value),className:h(m.value,m.disabled),children:m.label},m.value))}),s.jsx("div",{role:"tabpanel",id:`tabpanel-${d}`,children:y})]})}function be(e){return H({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"},child:[]}]})(e)}function ge(e){return H({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"},child:[]}]})(e)}const ze=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],De=["Lun","Mar","Mié","Jue","Vie","Sáb","Dom"],Ae=["January","February","March","April","May","June","July","August","September","October","November","December"],Pe=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"];function Gt(e){return new Date(e.getFullYear(),e.getMonth()+1,0).getDate()}function Wt(e){const t=new Date(e.getFullYear(),e.getMonth(),1).getDay();return t===0?6:t-1}function Ht({value:e,onChange:t,disabled:r=!1,className:o="",colorScheme:l="secondary",lang:a="en",...i}){const[n,c]=k.useState(e||new Date),d={en:"en-US",es:"es-ES"},g={en:ze,es:De},h={en:Ae,es:Pe},x=Gt(n),y=Wt(n),m=[];for(let f=0;f<y;f++)m.push(null);for(let f=1;f<=x;f++){const I=new Date(n.getFullYear(),n.getMonth(),f,12,0,0);m.push(I)}const v=()=>{c(new Date(n.getFullYear(),n.getMonth()-1,1,12,0,0))},p=()=>{c(new Date(n.getFullYear(),n.getMonth()+1,1,12,0,0))},w=()=>{c(new Date(n.getFullYear()-1,n.getMonth(),1,12,0,0))},b=()=>{c(new Date(n.getFullYear()+1,n.getMonth(),1,12,0,0))},S=f=>{if(f&&!r){const I=new Date(f.getFullYear(),f.getMonth(),f.getDate(),12,0,0);c(I),t?.(I)}},j=(()=>{switch(l){case"primary":return{header:"text-primary",selected:"bg-primary text-white",hover:"hover:bg-primary/10",button:"text-primary border-primary hover:bg-primary/20"};case"secondary":default:return{header:"text-secondary",selected:"bg-secondary text-white",hover:"hover:bg-secondary/10",button:"text-secondary border-secondary hover:bg-secondary/20"}}})(),P=f=>f&&e?f.toDateString()===e.toDateString():!1;return s.jsxs("div",{className:u("w-full max-w-sm bg-background border-2 border-border rounded-lg p-6 shadow-md",o),...i,children:[s.jsxs("div",{className:"mb-6",children:[s.jsxs("div",{className:u("flex items-center justify-between mb-4",j.header),children:[s.jsx("button",{type:"button",onClick:w,disabled:r,className:u("p-2 rounded-lg border transition-all duration-300",j.button,r&&"opacity-50 cursor-not-allowed"),children:s.jsx(be,{size:18})}),s.jsx("h2",{className:"font-semibold text-lg",children:n.getFullYear()}),s.jsx("button",{type:"button",onClick:b,disabled:r,className:u("p-2 rounded-lg border transition-all duration-300",j.button,r&&"opacity-50 cursor-not-allowed"),children:s.jsx(ge,{size:18})})]}),s.jsxs("div",{className:u("flex items-center justify-between",j.header),children:[s.jsx("button",{type:"button",onClick:v,disabled:r,className:u("p-2 rounded-lg border transition-all duration-300",j.button,r&&"opacity-50 cursor-not-allowed"),children:s.jsx(be,{size:18})}),s.jsx("h2",{className:"font-semibold text-lg",children:h[a][n.getMonth()]}),s.jsx("button",{type:"button",onClick:p,disabled:r,className:u("p-2 rounded-lg border transition-all duration-300",j.button,r&&"opacity-50 cursor-not-allowed"),children:s.jsx(ge,{size:18})})]})]}),s.jsx("div",{className:"grid grid-cols-7 gap-2 mb-4",children:g[a].map(f=>s.jsx("div",{className:u("text-center text-sm font-medium py-2",j.header),children:f},f))}),s.jsx("div",{className:"grid grid-cols-7 gap-2",children:m.map((f,I)=>s.jsx("button",{type:"button",onClick:()=>S(f),disabled:!f||r,className:u("p-2 rounded-lg text-sm font-medium transition-all duration-300",f?u("cursor-pointer",j.hover,P(f)?j.selected:"text-text border border-transparent hover:border-border",r&&"opacity-50 cursor-not-allowed"):"cursor-default"),children:f?f.getDate():""},I))}),e&&s.jsx("div",{className:u("mt-6 p-3 rounded-lg bg-background-dark border border-border text-center text-sm font-medium",j.header),children:e.toLocaleDateString(d[a],{year:"numeric",month:"long",day:"numeric"})})]})}function Ut({headers:e,data:t,loading:r,loadingText:o="Loading...",actions:l,actionsHeader:a="Actions",onRowClick:i,className:n="",rowClassName:c="",cellClassName:d="",headerClassName:g="",emptyText:h="No data available",showCount:x=!0,countText:y=v=>`Showing ${v} record${v!==1?"s":""}`,keyExtractor:m=(v,p)=>v._id||v.id||p}){if(r)return s.jsx("div",{className:"flex justify-center items-center min-h-50",children:s.jsx("div",{className:"text-lg text-text-light",children:o})});if(t.length===0)return s.jsx("div",{className:"flex justify-center items-center min-h-50",children:s.jsx("div",{className:"text-lg text-text-muted",children:h})});const v=(p,w)=>{const b=w.toLowerCase().replace(/\s+/g,"_");let S=p[b];if(S===void 0){const z=[b.replace(/_/g,""),w.toLowerCase().replace(/\s+/g,""),b.replace(/_([a-z])/g,(j,P)=>P.toUpperCase())];for(const j of z)if(p[j]!==void 0){S=p[j];break}}if(S===void 0){const z=w.toLowerCase().split(" "),j=Object.keys(p).find(P=>z.some(f=>P.toLowerCase().includes(f)));j&&(S=p[j])}return S!=null?String(S):"N/A"};return s.jsxs("div",{className:u("overflow-x-auto",n),children:[s.jsxs("table",{className:"w-full border-collapse",children:[s.jsx("thead",{children:s.jsxs("tr",{className:"border-b-2 border-border",children:[e.map((p,w)=>s.jsx("th",{className:u("text-left py-3 px-4 font-semibold text-text",g),children:p},w)),l&&s.jsx("th",{className:u("text-center py-3 px-4 font-semibold text-text",g),children:a})]})}),s.jsx("tbody",{children:t.map((p,w)=>s.jsxs("tr",{className:u("border-b border-border-dark hover:bg-background-light transition-colors",i&&"cursor-pointer",c),onClick:()=>i?.(p),children:[e.map((b,S)=>s.jsx("td",{className:u("py-4 px-4",d),children:s.jsx("div",{className:"text-text-light",children:v(p,b)})},S)),l&&s.jsx("td",{className:u("py-4 px-4",d),children:s.jsx("div",{className:"flex gap-2 justify-center",children:l.map((b,S)=>{const z=j=>{j?.stopPropagation(),b.onClick?.(p)};if(b.component){const j=b.component;return s.jsxs(j,{onClick:z,className:b.className||"",...b.props||{},children:[b.icon&&s.jsx("span",{className:"inline-block",children:k.createElement(b.icon)}),b.label&&b.label]},S)}return s.jsxs(Y,{onClick:z,className:b.className||"",...b.props||{},children:[b.icon&&s.jsx("span",{className:"inline-block",children:k.createElement(b.icon)}),b.label&&b.label]},S)})})})]},m(p,w)))})]}),x&&t.length>0&&s.jsx("div",{className:"mt-6 text-center text-text-light text-sm",children:y(t.length)})]})}function Yt({label:e,options:t,value:r="",onChange:o,multiple:l=!1,className:a="",searchable:i=!1,onSearchInputCustom:n,placeholder:c="Select...",disabled:d=!1,error:g,required:h=!1,colorScheme:x="primary",noResultsText:y="No results found",searchPlaceholder:m="Search...",...v}){const[p,w]=k.useState(!1),[b,S]=k.useState(""),[z,j]=k.useState({top:0,left:0,openUpward:!1}),P=Array.isArray(r)?r:r?[r]:[],[f,I]=k.useState(P.map(C=>t.find(E=>E.value===C)).filter(Boolean)),R=k.useRef(null),V=k.useRef(null),U=()=>{const C="w-full p-4 border-2 rounded-lg text-base bg-white transition-all duration-300 focus:outline-none focus:ring-1 disabled:bg-light disabled:text-text-muted disabled:cursor-not-allowed";if(g)return u(C,"border-danger focus:border-danger");switch(x){case"primary":return u(C,"text-primary border-primary focus:border-primary");case"secondary":default:return u(C,"text-secondary border-secondary focus:border-secondary")}},L=()=>x==="primary"?"text-primary":"text-secondary";k.useEffect(()=>{const E=(Array.isArray(r)?r:r!==""&&r!==null&&r!==void 0?[r]:[]).map(_=>t.find(F=>F.value===_)).filter(Boolean);I(E)},[r,t]),k.useEffect(()=>{p&&i&&V.current&&V.current.focus()},[p,i]);const M=k.useCallback(()=>{if(!R.current)return;const C=R.current.getBoundingClientRect(),E=window.innerHeight,_=250,K=E-C.bottom<_&&C.top>_;j({top:K?C.top:C.bottom,left:C.left,width:C.width,openUpward:K})},[]);k.useEffect(()=>{function C(_){R.current&&!R.current.contains(_.target)&&w(!1)}function E(){p&&M()}return document.addEventListener("mousedown",C),window.addEventListener("scroll",E,!0),window.addEventListener("resize",E),()=>{document.removeEventListener("mousedown",C),window.removeEventListener("scroll",E,!0),window.removeEventListener("resize",E)}},[p,M]);const D=C=>{const E=t.find(F=>F.value===C);if(!E)return;let _;l?(_=f.some(K=>K.value===C)?f.filter(K=>K.value!==C):[...f,E],I(_),o(_)):(_=[E],I(_),o(E),w(!1),S(""))},$=C=>{S(C),n?.(C)},O=i?t.filter(C=>C.label.toLowerCase().includes(b.toLowerCase())):t,J=()=>f.length===0?c:l?f.length===1?f[0].label:`${f.length} selected`:f[0]?.label||c;return s.jsxs("div",{className:u("mb-6",a),children:[e&&s.jsxs("label",{className:u("block mb-2 text-sm font-medium",L()),children:[e,h&&s.jsx("span",{className:"text-danger ml-1",children:"*"})]}),s.jsxs("div",{ref:R,className:"relative w-full",children:[s.jsxs("button",{type:"button",onClick:C=>{C.preventDefault(),C.stopPropagation(),p||M(),w(!p)},className:u(U(),"inline-flex items-center justify-between cursor-pointer h-auto min-h-14",d&&"cursor-not-allowed",p&&"ring-1"),disabled:d,...v,children:[s.jsxs("div",{className:"flex items-center gap-2 flex-1",children:[f.length>0&&f[0].hex&&s.jsx("div",{className:"h-4 w-4 rounded border border-border",style:{backgroundColor:f[0].hex}}),s.jsx("span",{className:f.length>0?"":"text-text-muted",children:J()})]}),s.jsx("div",{className:u("h-5 w-5 transition-transform duration-200",p&&"rotate-180"),children:s.jsx(Le,{className:"h-5 w-5"})})]}),p&&s.jsxs("div",{className:u("fixed z-9999 rounded-lg border-2 bg-white shadow-xl",g?"border-danger":x==="primary"?"border-primary":"border-secondary"),style:{top:`${z.top+(z.openUpward?0:8)}px`,left:`${z.left}px`,width:`${z.width}px`,transform:z.openUpward?"translateY(-100%)":"none"},children:[i&&s.jsx("div",{className:"border-b border-border p-3",children:s.jsxs("div",{className:"relative",children:[s.jsx($t,{className:"absolute top-1/2 left-3 h-4 w-4 -translate-y-1/2 transform text-text-muted"}),s.jsx("input",{ref:V,type:"text",value:b,onChange:C=>$(C.target.value),placeholder:m,className:u("w-full rounded-lg border-2 py-2 pr-10 pl-10 text-sm transition-all duration-300 focus:outline-none focus:ring-1",x==="primary"?"border-primary text-primary":"border-secondary text-secondary")}),b&&s.jsx("button",{type:"button",onClick:()=>S(""),className:"absolute top-1/2 right-3 h-4 w-4 -translate-y-1/2 transform text-text-muted hover:text-text",children:s.jsx(Ft,{className:"h-4 w-4"})})]})}),s.jsxs("div",{className:"max-h-60 overflow-y-auto py-1",children:[O.map(C=>s.jsx("button",{type:"button",onClick:()=>D(C.value??""),className:u("w-full px-4 py-3 text-left text-sm transition-colors",f.some(E=>E.value===C.value)?x==="primary"?"bg-primary/10 text-primary font-medium":"bg-secondary/10 text-secondary font-medium":"text-text hover:bg-background-light"),children:s.jsxs("div",{className:"flex items-center gap-3",children:[l&&s.jsx("div",{className:u("flex h-4 w-4 items-center justify-center rounded border-2 transition-colors",f.some(E=>E.value===C.value)?x==="primary"?"border-primary bg-primary":"border-secondary bg-secondary":"border-border"),children:f.some(E=>E.value===C.value)&&s.jsx("svg",{className:"h-3 w-3 text-white",fill:"currentColor",viewBox:"0 0 20 20",children:s.jsx("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})})}),C.hex&&s.jsx("div",{className:"h-4 w-4 rounded border border-border",style:{backgroundColor:C.hex}}),s.jsx("span",{children:C.label})]})},C.value)),O.length===0&&b&&t.length>0&&s.jsx("div",{className:"px-4 py-3",children:s.jsx("span",{className:"text-sm text-text-muted",children:y})})]})]})]}),g&&s.jsx("span",{className:"block mt-1 text-xs text-danger font-medium",children:g})]})}const Jt=({id:e,name:t,onFilesSelected:r,placeholder:o="Arrastra y suelta archivos aquí o haz clic para seleccionar",labelSelectedFiles:l="archivo:",label:a,error:i,disabled:n=!1,required:c=!1,colorScheme:d="secondary",className:g="",accept:h="*/*",multiple:x=!1,...y})=>{const m=k.useRef(null),[v,p]=k.useState(!1),[w,b]=k.useState([]),S=()=>{const M="w-full p-4 border-2 rounded-lg text-base bg-white transition-all duration-300 focus:outline-none disabled:bg-light disabled:text-text-muted disabled:cursor-not-allowed cursor-pointer min-h-[120px]";if(i)return u(M,"border-danger focus:border-danger focus:ring-1 focus:ring-danger");switch(d){case"primary":return u(M,"border-primary focus:border-primary focus:ring-1 focus:ring-primary hover:border-primary-dark");case"secondary":default:return u(M,"border-secondary focus:border-secondary focus:ring-1 focus:ring-secondary hover:border-secondary-dark")}},z=()=>{switch(d){case"primary":return"text-primary";case"secondary":default:return"text-secondary"}},j=M=>{M.preventDefault(),M.stopPropagation(),n||(M.type==="dragenter"||M.type==="dragover"?p(!0):M.type==="dragleave"&&p(!1))},P=M=>{if(M.preventDefault(),M.stopPropagation(),p(!1),n)return;const D=M.dataTransfer.files;I(D)},f=M=>{const D=M.target.files;D&&I(D)},I=M=>{const D=Array.from(M);if(h!=="*/*"){const $=D.filter(O=>R(O,h));if($.length===0){console.warn("No valid files selected");return}b(x?$:[$[0]]),r(x?$:[$[0]])}else b(x?D:[D[0]]),r(x?D:[D[0]])},R=(M,D)=>D.split(",").map(O=>O.trim()).some(O=>{if(O.startsWith("."))return M.name.toLowerCase().endsWith(O.toLowerCase());if(O.includes("/")){const[J,C]=O.split("/"),E=M.type.split("/")[0];return C==="*"?E===J:M.type===O}return!1}),V=()=>{n||m.current?.click()},U=M=>{const D=w.filter(($,O)=>O!==M);b(D),r(D)},L=M=>{(M.key==="Enter"||M.key===" ")&&(M.preventDefault(),V())};return s.jsxs("div",{className:`mb-6 ${g}`,children:[a&&s.jsxs("label",{className:`block mb-2 text-sm font-medium ${z()}`,children:[a,c&&s.jsx("span",{className:"text-danger ml-1",children:"*"})]}),s.jsxs("div",{className:u(S(),v&&"bg-background-light border-2-dashed"),onDragEnter:j,onDragLeave:j,onDragOver:j,onDrop:P,onClick:V,onKeyDown:L,role:"button",tabIndex:n?-1:0,children:[s.jsx("input",{ref:m,id:e,name:t,type:"file",onChange:f,disabled:n,required:c,accept:h,multiple:x,className:"hidden",...y}),s.jsxs("div",{className:"flex flex-col items-center justify-center py-4",children:[s.jsx("svg",{className:`w-8 h-8 mb-2 ${d==="primary"?"text-primary":"text-secondary"}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 4v16m8-8H4"})}),s.jsx("p",{className:`text-sm ${z()}`,children:o})]})]}),s.jsxs("div",{className:"mt-4 space-y-2",children:[s.jsxs("p",{className:`text-sm font-medium ${z()}`,children:[w.length," ",l,"(s) seleccionado(s):"]}),s.jsx("ul",{className:"space-y-1",children:w.map((M,D)=>s.jsxs("li",{className:"flex items-center justify-between p-2 bg-light rounded border border-border",children:[s.jsxs("div",{className:"flex items-center gap-2 flex-1 min-w-0",children:[s.jsxs("svg",{className:"w-4 h-4 text-text-muted shrink-0",fill:"currentColor",viewBox:"0 0 20 20",children:[s.jsx("path",{d:"M8 16.5a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0zM15 16.5a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0z"}),s.jsx("path",{d:"M3 4a1 1 0 00-1 1v10a1 1 0 001 1h1.05a2.5 2.5 0 014.9 0H10a1 1 0 001-1V5a1 1 0 00-1-1H3zM14 7a1 1 0 00-1 1v6.05A2.5 2.5 0 0115.95 10H17a1 1 0 001-1v-3a1 1 0 00-1-1h-3z"})]}),s.jsx("span",{className:"text-sm text-text truncate",children:M.name})]}),s.jsx("button",{onClick:$=>{$.stopPropagation(),U(D)},className:"ml-2 text-danger hover:text-danger-dark shrink-0",type:"button",children:"✕"})]},D))})]}),i&&s.jsx("span",{className:"block mt-1 text-xs text-danger font-medium",children:i})]})},Kt=({text:e,className:t="",variant:r="default",visible:o=!0,...l})=>{if(!o)return null;const a={default:"bg-gray-200 text-gray-800",primary:"bg-primary text-white",secondary:"bg-secondary text-white",secondaryDark:"bg-secondary-dark text-white",danger:"bg-danger text-white",warning:"bg-warning text-white"},i="inline-flex items-center px-3 py-1 rounded-full text-xs font-bold uppercase shadow-md",n=a[r]||a.default;return s.jsx("div",{className:`${i} ${n} ${t}`,...l,children:e})};function qt({isOpen:e,onClose:t,title:r,children:o,size:l="md",className:a="",overlayClassName:i="",showCloseButton:n=!0,closeOnOverlayClick:c=!0,closeOnEscape:d=!0}){if(k.useEffect(()=>(e?document.body.style.overflow="hidden":document.body.style.overflow="unset",()=>{document.body.style.overflow="unset"}),[e]),k.useEffect(()=>{if(!d||!e)return;const y=m=>{m.key==="Escape"&&t()};return document.addEventListener("keydown",y),()=>{document.removeEventListener("keydown",y)}},[e,t,d]),!e)return null;const g={sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg",xl:"max-w-xl","2xl":"max-w-2xl"},h=()=>{c&&t()},x=s.jsx("div",{className:u("fixed inset-0 bg-black/40 flex items-center justify-center z-9999 p-4",i),onClick:h,role:"dialog","aria-modal":"true","aria-labelledby":r?"modal-title":void 0,children:s.jsxs("div",{className:u("relative bg-white rounded-xl shadow-2xl max-h-[90vh] flex flex-col w-full transition-all duration-300",g[l],a),onClick:y=>y.stopPropagation(),children:[(r||n)&&s.jsxs("div",{className:"flex justify-between items-center px-6 py-5 border-b border-border rounded-t-xl shrink-0",children:[r&&s.jsx("h2",{id:"modal-title",className:"text-xl sm:text-2xl font-bold text-primary m-0",children:r}),n&&s.jsx("button",{className:"flex items-center justify-center w-8 h-8 text-text-muted hover:text-text hover:bg-background-light transition-colors duration-200 rounded-lg",onClick:t,"aria-label":"Cerrar modal",type:"button",children:s.jsx("span",{className:"text-2xl font-light leading-none",children:"×"})})]}),s.jsx("div",{className:"p-6 overflow-y-auto flex-1",children:o})]})});return Ie.createPortal(x,document.body)}function Zt({id:e,name:t,checked:r=!1,onChange:o,disabled:l=!1,required:a=!1,colorScheme:i="secondary",variant:n="solid",label:c,className:d="",...g}){const h=(x,y)=>{const m="checkbox-input size-4 shrink-0 rounded transition-all duration-300 cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-opacity-50 disabled:cursor-not-allowed disabled:opacity-50";if(x==="outline")switch(y){case"primary":return`${m} checkbox-outline checkbox-primary`;case"secondary":default:return`${m} checkbox-outline checkbox-secondary`}else switch(y){case"primary":return`${m} checkbox-solid checkbox-primary`;case"secondary":default:return`${m} checkbox-solid checkbox-secondary`}};return c?s.jsxs("div",{className:`flex items-center gap-2 ${d}`,children:[s.jsx("input",{id:e,name:t,type:"checkbox",checked:r,onChange:o,disabled:l,required:a,className:h(n,i),...g}),s.jsxs("label",{htmlFor:e,className:"text-sm text-text cursor-pointer font-medium",children:[c,a&&s.jsx("span",{className:"text-red-500 ml-1",children:"*"})]})]}):s.jsx("input",{id:e,name:t,type:"checkbox",checked:r,onChange:o,disabled:l,required:a,className:`${h(n,i)} ${d}`,style:{accentColor:"white"},...g})}const{Input:Xt,InputArea:Qt}=Ce,{Toggle:er}=kt;exports.Badge=Kt;exports.Button=Y;exports.Calendar=Ht;exports.Checkbox=Zt;exports.Dropdown=Yt;exports.EN_DEFAULT_DAY_NAMES=ze;exports.EN_DEFAULT_MONTH_NAMES=Ae;exports.ES_DEFAULT_DAY_NAMES=De;exports.ES_DEFAULT_MONTH_NAMES=Pe;exports.ExpandableCard=Rt;exports.FileDropZone=Jt;exports.Input=Xt;exports.InputArea=Qt;exports.Loader=Ne;exports.Login=jt;exports.Modal=qt;exports.Pagination=_t;exports.SearchInput=Tt;exports.TabPanel=Vt;exports.Table=Ut;exports.Tabs=Bt;exports.ThemeProvider=ft;exports.Toggle=er;exports.cn=u;exports.defaultTheme=T;exports.generateColorVariants=te;exports.hexToHsl=ke;exports.hslToHex=le;exports.useDebounce=Ee;exports.useIsMobile=Pt;exports.useTheme=gt;exports.useToast=At;
143
2
  //# sourceMappingURL=index.cjs.map