@rock10/ui 1.0.15 → 1.0.17
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/components/ArenaPosterCard.d.ts +16 -0
- package/dist/components/ArenaProfileHeader.d.ts +16 -0
- package/dist/components/BannerCTA.d.ts +15 -0
- package/dist/components/CourtSelector.d.ts +16 -0
- package/dist/components/DateSeparator.d.ts +11 -0
- package/dist/components/HeroBanner.d.ts +23 -0
- package/dist/components/SegmentedControl.d.ts +21 -0
- package/dist/components/SponsorCarousel.d.ts +19 -0
- package/dist/components/StepCards.d.ts +15 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.es.js +2319 -1672
- package/dist/index.umd.js +55 -35
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(j,k){typeof exports=="object"&&typeof module<"u"?k(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],k):(j=typeof globalThis<"u"?globalThis:j||self,k(j.Rock10UI={},j.React))})(this,function(j,k){"use strict";function Qe(e){var a,t,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(a=0;a<n;a++)e[a]&&(t=Qe(e[a]))&&(o&&(o+=" "),o+=t)}else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function $e(){for(var e,a,t=0,o="",n=arguments.length;t<n;t++)(e=arguments[t])&&(a=Qe(e))&&(o&&(o+=" "),o+=a);return o}const gt=(e,a)=>{const t=new Array(e.length+a.length);for(let o=0;o<e.length;o++)t[o]=e[o];for(let o=0;o<a.length;o++)t[e.length+o]=a[o];return t},ht=(e,a)=>({classGroupId:e,validator:a}),qe=(e=new Map,a=null,t)=>({nextPart:e,validators:a,classGroupId:t}),Fe="-",er=[],yt="arbitrary..",kt=e=>{const a=wt(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return vt(i);const c=i.split(Fe),m=c[0]===""&&c.length>1?1:0;return rr(c,m,a)},getConflictingClassGroupIds:(i,c)=>{if(c){const m=o[i],d=t[i];return m?d?gt(d,m):m:d||er}return t[i]||er}}},rr=(e,a,t)=>{if(e.length-a===0)return t.classGroupId;const n=e[a],l=t.nextPart.get(n);if(l){const d=rr(e,a+1,l);if(d)return d}const i=t.validators;if(i===null)return;const c=a===0?e.join(Fe):e.slice(a).join(Fe),m=i.length;for(let d=0;d<m;d++){const f=i[d];if(f.validator(c))return f.classGroupId}},vt=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const a=e.slice(1,-1),t=a.indexOf(":"),o=a.slice(0,t);return o?yt+o:void 0})(),wt=e=>{const{theme:a,classGroups:t}=e;return jt(t,a)},jt=(e,a)=>{const t=qe();for(const o in e){const n=e[o];Be(n,t,o,a)}return t},Be=(e,a,t,o)=>{const n=e.length;for(let l=0;l<n;l++){const i=e[l];Nt(i,a,t,o)}},Nt=(e,a,t,o)=>{if(typeof e=="string"){_t(e,a,t);return}if(typeof e=="function"){Ct(e,a,t,o);return}Rt(e,a,t,o)},_t=(e,a,t)=>{const o=e===""?a:tr(a,e);o.classGroupId=t},Ct=(e,a,t,o)=>{if(St(e)){Be(e(o),a,t,o);return}a.validators===null&&(a.validators=[]),a.validators.push(ht(t,e))},Rt=(e,a,t,o)=>{const n=Object.entries(e),l=n.length;for(let i=0;i<l;i++){const[c,m]=n[i];Be(m,tr(a,c),t,o)}},tr=(e,a)=>{let t=e;const o=a.split(Fe),n=o.length;for(let l=0;l<n;l++){const i=o[l];let c=t.nextPart.get(i);c||(c=qe(),t.nextPart.set(i,c)),t=c}return t},St=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Tt=e=>{if(e<1)return{get:()=>{},set:()=>{}};let a=0,t=Object.create(null),o=Object.create(null);const n=(l,i)=>{t[l]=i,a++,a>e&&(a=0,o=t,t=Object.create(null))};return{get(l){let i=t[l];if(i!==void 0)return i;if((i=o[l])!==void 0)return n(l,i),i},set(l,i){l in t?t[l]=i:n(l,i)}}},We="!",ar=":",Et=[],sr=(e,a,t,o,n)=>({modifiers:e,hasImportantModifier:a,baseClassName:t,maybePostfixModifierPosition:o,isExternal:n}),Pt=e=>{const{prefix:a,experimentalParseClassName:t}=e;let o=n=>{const l=[];let i=0,c=0,m=0,d;const f=n.length;for(let S=0;S<f;S++){const T=n[S];if(i===0&&c===0){if(T===ar){l.push(n.slice(m,S)),m=S+1;continue}if(T==="/"){d=S;continue}}T==="["?i++:T==="]"?i--:T==="("?c++:T===")"&&c--}const y=l.length===0?n:n.slice(m);let N=y,v=!1;y.endsWith(We)?(N=y.slice(0,-1),v=!0):y.startsWith(We)&&(N=y.slice(1),v=!0);const C=d&&d>m?d-m:void 0;return sr(l,v,N,C)};if(a){const n=a+ar,l=o;o=i=>i.startsWith(n)?l(i.slice(n.length)):sr(Et,!1,i,void 0,!0)}if(t){const n=o;o=l=>t({className:l,parseClassName:n})}return o},zt=e=>{const a=new Map;return e.orderSensitiveModifiers.forEach((t,o)=>{a.set(t,1e6+o)}),t=>{const o=[];let n=[];for(let l=0;l<t.length;l++){const i=t[l],c=i[0]==="[",m=a.has(i);c||m?(n.length>0&&(n.sort(),o.push(...n),n=[]),o.push(i)):n.push(i)}return n.length>0&&(n.sort(),o.push(...n)),o}},At=e=>({cache:Tt(e.cacheSize),parseClassName:Pt(e),sortModifiers:zt(e),postfixLookupClassGroupIds:Ot(e),...kt(e)}),Ot=e=>{const a=Object.create(null),t=e.postfixLookupClassGroups;if(t)for(let o=0;o<t.length;o++)a[t[o]]=!0;return a},Ft=/\s+/,It=(e,a)=>{const{parseClassName:t,getClassGroupId:o,getConflictingClassGroupIds:n,sortModifiers:l,postfixLookupClassGroupIds:i}=a,c=[],m=e.trim().split(Ft);let d="";for(let f=m.length-1;f>=0;f-=1){const y=m[f],{isExternal:N,modifiers:v,hasImportantModifier:C,baseClassName:S,maybePostfixModifierPosition:T}=t(y);if(N){d=y+(d.length>0?" "+d:d);continue}let z=!!T,E;if(z){const I=S.substring(0,T);E=o(I);const b=E&&i[E]?o(S):void 0;b&&b!==E&&(E=b,z=!1)}else E=o(S);if(!E){if(!z){d=y+(d.length>0?" "+d:d);continue}if(E=o(S),!E){d=y+(d.length>0?" "+d:d);continue}z=!1}const X=v.length===0?"":v.length===1?v[0]:l(v).join(":"),G=C?X+We:X,Z=G+E;if(c.indexOf(Z)>-1)continue;c.push(Z);const O=n(E,z);for(let I=0;I<O.length;++I){const b=O[I];c.push(G+b)}d=y+(d.length>0?" "+d:d)}return d},Mt=(...e)=>{let a=0,t,o,n="";for(;a<e.length;)(t=e[a++])&&(o=or(t))&&(n&&(n+=" "),n+=o);return n},or=e=>{if(typeof e=="string")return e;let a,t="";for(let o=0;o<e.length;o++)e[o]&&(a=or(e[o]))&&(t&&(t+=" "),t+=a);return t},Dt=(e,...a)=>{let t,o,n,l;const i=m=>{const d=a.reduce((f,y)=>y(f),e());return t=At(d),o=t.cache.get,n=t.cache.set,l=c,c(m)},c=m=>{const d=o(m);if(d)return d;const f=It(m,t);return n(m,f),f};return l=i,(...m)=>l(Mt(...m))},Lt=[],K=e=>{const a=t=>t[e]||Lt;return a.isThemeGetter=!0,a},nr=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,lr=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Vt=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Bt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Wt=/\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$/,Gt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ut=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ht=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ce=e=>Vt.test(e),R=e=>!!e&&!Number.isNaN(Number(e)),oe=e=>!!e&&Number.isInteger(Number(e)),Ge=e=>e.endsWith("%")&&R(e.slice(0,-1)),ne=e=>Bt.test(e),ir=()=>!0,Yt=e=>Wt.test(e)&&!Gt.test(e),Ue=()=>!1,Kt=e=>Ut.test(e),Jt=e=>Ht.test(e),Xt=e=>!g(e)&&!h(e),Zt=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),Qt=e=>ue(e,xr,Ue),g=e=>nr.test(e),fe=e=>ue(e,br,Yt),dr=e=>ue(e,oa,R),$t=e=>ue(e,gr,ir),qt=e=>ue(e,pr,Ue),cr=e=>ue(e,mr,Ue),ea=e=>ue(e,fr,Jt),Ie=e=>ue(e,hr,Kt),h=e=>lr.test(e),Ne=e=>xe(e,br),ra=e=>xe(e,pr),ur=e=>xe(e,mr),ta=e=>xe(e,xr),aa=e=>xe(e,fr),Me=e=>xe(e,hr,!0),sa=e=>xe(e,gr,!0),ue=(e,a,t)=>{const o=nr.exec(e);return o?o[1]?a(o[1]):t(o[2]):!1},xe=(e,a,t=!1)=>{const o=lr.exec(e);return o?o[1]?a(o[1]):t:!1},mr=e=>e==="position"||e==="percentage",fr=e=>e==="image"||e==="url",xr=e=>e==="length"||e==="size"||e==="bg-size",br=e=>e==="length",oa=e=>e==="number",pr=e=>e==="family-name",gr=e=>e==="number"||e==="weight",hr=e=>e==="shadow",na=Dt(()=>{const e=K("color"),a=K("font"),t=K("text"),o=K("font-weight"),n=K("tracking"),l=K("leading"),i=K("breakpoint"),c=K("container"),m=K("spacing"),d=K("radius"),f=K("shadow"),y=K("inset-shadow"),N=K("text-shadow"),v=K("drop-shadow"),C=K("blur"),S=K("perspective"),T=K("aspect"),z=K("ease"),E=K("animate"),X=()=>["auto","avoid","all","avoid-page","page","left","right","column"],G=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],Z=()=>[...G(),h,g],O=()=>["auto","hidden","clip","visible","scroll"],I=()=>["auto","contain","none"],b=()=>[h,g,m],D=()=>[ce,"full","auto",...b()],le=()=>[oe,"none","subgrid",h,g],ie=()=>["auto",{span:["full",oe,h,g]},oe,h,g],ae=()=>[oe,"auto",h,g],$=()=>["auto","min","max","fr",h,g],L=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],H=()=>["start","end","center","stretch","center-safe","end-safe"],V=()=>["auto",...b()],ee=()=>[ce,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...b()],re=()=>[ce,"screen","full","dvw","lvw","svw","min","max","fit",...b()],de=()=>[ce,"screen","full","lh","dvh","lvh","svh","min","max","fit",...b()],w=()=>[e,h,g],Te=()=>[...G(),ur,cr,{position:[h,g]}],Ee=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Pe=()=>["auto","cover","contain",ta,Qt,{size:[h,g]}],ze=()=>[Ge,Ne,fe],Q=()=>["","none","full",d,h,g],J=()=>["",R,Ne,fe],me=()=>["solid","dashed","dotted","double"],pe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],B=()=>[R,Ge,ur,cr],ge=()=>["","none",C,h,g],ke=()=>["none",R,h,g],he=()=>["none",R,h,g],Ae=()=>[R,h,g],ve=()=>[ce,"full",...b()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ne],breakpoint:[ne],color:[ir],container:[ne],"drop-shadow":[ne],ease:["in","out","in-out"],font:[Xt],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ne],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ne],shadow:[ne],spacing:["px",R],text:[ne],"text-shadow":[ne],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ce,g,h,T]}],container:["container"],"container-type":[{"@container":["","normal","size",h,g]}],"container-named":[Zt],columns:[{columns:[R,g,h,c]}],"break-after":[{"break-after":X()}],"break-before":[{"break-before":X()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:Z()}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:I()}],"overscroll-x":[{"overscroll-x":I()}],"overscroll-y":[{"overscroll-y":I()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:D()}],"inset-x":[{"inset-x":D()}],"inset-y":[{"inset-y":D()}],start:[{"inset-s":D(),start:D()}],end:[{"inset-e":D(),end:D()}],"inset-bs":[{"inset-bs":D()}],"inset-be":[{"inset-be":D()}],top:[{top:D()}],right:[{right:D()}],bottom:[{bottom:D()}],left:[{left:D()}],visibility:["visible","invisible","collapse"],z:[{z:[oe,"auto",h,g]}],basis:[{basis:[ce,"full","auto",c,...b()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[R,ce,"auto","initial","none",g]}],grow:[{grow:["",R,h,g]}],shrink:[{shrink:["",R,h,g]}],order:[{order:[oe,"first","last","none",h,g]}],"grid-cols":[{"grid-cols":le()}],"col-start-end":[{col:ie()}],"col-start":[{"col-start":ae()}],"col-end":[{"col-end":ae()}],"grid-rows":[{"grid-rows":le()}],"row-start-end":[{row:ie()}],"row-start":[{"row-start":ae()}],"row-end":[{"row-end":ae()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":$()}],"auto-rows":[{"auto-rows":$()}],gap:[{gap:b()}],"gap-x":[{"gap-x":b()}],"gap-y":[{"gap-y":b()}],"justify-content":[{justify:[...L(),"normal"]}],"justify-items":[{"justify-items":[...H(),"normal"]}],"justify-self":[{"justify-self":["auto",...H()]}],"align-content":[{content:["normal",...L()]}],"align-items":[{items:[...H(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...H(),{baseline:["","last"]}]}],"place-content":[{"place-content":L()}],"place-items":[{"place-items":[...H(),"baseline"]}],"place-self":[{"place-self":["auto",...H()]}],p:[{p:b()}],px:[{px:b()}],py:[{py:b()}],ps:[{ps:b()}],pe:[{pe:b()}],pbs:[{pbs:b()}],pbe:[{pbe:b()}],pt:[{pt:b()}],pr:[{pr:b()}],pb:[{pb:b()}],pl:[{pl:b()}],m:[{m:V()}],mx:[{mx:V()}],my:[{my:V()}],ms:[{ms:V()}],me:[{me:V()}],mbs:[{mbs:V()}],mbe:[{mbe:V()}],mt:[{mt:V()}],mr:[{mr:V()}],mb:[{mb:V()}],ml:[{ml:V()}],"space-x":[{"space-x":b()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":b()}],"space-y-reverse":["space-y-reverse"],size:[{size:ee()}],"inline-size":[{inline:["auto",...re()]}],"min-inline-size":[{"min-inline":["auto",...re()]}],"max-inline-size":[{"max-inline":["none",...re()]}],"block-size":[{block:["auto",...de()]}],"min-block-size":[{"min-block":["auto",...de()]}],"max-block-size":[{"max-block":["none",...de()]}],w:[{w:[c,"screen",...ee()]}],"min-w":[{"min-w":[c,"screen","none",...ee()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[i]},...ee()]}],h:[{h:["screen","lh",...ee()]}],"min-h":[{"min-h":["screen","lh","none",...ee()]}],"max-h":[{"max-h":["screen","lh",...ee()]}],"font-size":[{text:["base",t,Ne,fe]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,sa,$t]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ge,g]}],"font-family":[{font:[ra,qt,a]}],"font-features":[{"font-features":[g]}],"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:[n,h,g]}],"line-clamp":[{"line-clamp":[R,"none",h,dr]}],leading:[{leading:[l,...b()]}],"list-image":[{"list-image":["none",h,g]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",h,g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:w()}],"text-color":[{text:w()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...me(),"wavy"]}],"text-decoration-thickness":[{decoration:[R,"from-font","auto",h,fe]}],"text-decoration-color":[{decoration:w()}],"underline-offset":[{"underline-offset":[R,"auto",h,g]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:b()}],"tab-size":[{tab:[oe,h,g]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",h,g]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",h,g]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Te()}],"bg-repeat":[{bg:Ee()}],"bg-size":[{bg:Pe()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},oe,h,g],radial:["",h,g],conic:[oe,h,g]},aa,ea]}],"bg-color":[{bg:w()}],"gradient-from-pos":[{from:ze()}],"gradient-via-pos":[{via:ze()}],"gradient-to-pos":[{to:ze()}],"gradient-from":[{from:w()}],"gradient-via":[{via:w()}],"gradient-to":[{to:w()}],rounded:[{rounded:Q()}],"rounded-s":[{"rounded-s":Q()}],"rounded-e":[{"rounded-e":Q()}],"rounded-t":[{"rounded-t":Q()}],"rounded-r":[{"rounded-r":Q()}],"rounded-b":[{"rounded-b":Q()}],"rounded-l":[{"rounded-l":Q()}],"rounded-ss":[{"rounded-ss":Q()}],"rounded-se":[{"rounded-se":Q()}],"rounded-ee":[{"rounded-ee":Q()}],"rounded-es":[{"rounded-es":Q()}],"rounded-tl":[{"rounded-tl":Q()}],"rounded-tr":[{"rounded-tr":Q()}],"rounded-br":[{"rounded-br":Q()}],"rounded-bl":[{"rounded-bl":Q()}],"border-w":[{border:J()}],"border-w-x":[{"border-x":J()}],"border-w-y":[{"border-y":J()}],"border-w-s":[{"border-s":J()}],"border-w-e":[{"border-e":J()}],"border-w-bs":[{"border-bs":J()}],"border-w-be":[{"border-be":J()}],"border-w-t":[{"border-t":J()}],"border-w-r":[{"border-r":J()}],"border-w-b":[{"border-b":J()}],"border-w-l":[{"border-l":J()}],"divide-x":[{"divide-x":J()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":J()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...me(),"hidden","none"]}],"divide-style":[{divide:[...me(),"hidden","none"]}],"border-color":[{border:w()}],"border-color-x":[{"border-x":w()}],"border-color-y":[{"border-y":w()}],"border-color-s":[{"border-s":w()}],"border-color-e":[{"border-e":w()}],"border-color-bs":[{"border-bs":w()}],"border-color-be":[{"border-be":w()}],"border-color-t":[{"border-t":w()}],"border-color-r":[{"border-r":w()}],"border-color-b":[{"border-b":w()}],"border-color-l":[{"border-l":w()}],"divide-color":[{divide:w()}],"outline-style":[{outline:[...me(),"none","hidden"]}],"outline-offset":[{"outline-offset":[R,h,g]}],"outline-w":[{outline:["",R,Ne,fe]}],"outline-color":[{outline:w()}],shadow:[{shadow:["","none",f,Me,Ie]}],"shadow-color":[{shadow:w()}],"inset-shadow":[{"inset-shadow":["none",y,Me,Ie]}],"inset-shadow-color":[{"inset-shadow":w()}],"ring-w":[{ring:J()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:w()}],"ring-offset-w":[{"ring-offset":[R,fe]}],"ring-offset-color":[{"ring-offset":w()}],"inset-ring-w":[{"inset-ring":J()}],"inset-ring-color":[{"inset-ring":w()}],"text-shadow":[{"text-shadow":["none",N,Me,Ie]}],"text-shadow-color":[{"text-shadow":w()}],opacity:[{opacity:[R,h,g]}],"mix-blend":[{"mix-blend":[...pe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":pe()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[R]}],"mask-image-linear-from-pos":[{"mask-linear-from":B()}],"mask-image-linear-to-pos":[{"mask-linear-to":B()}],"mask-image-linear-from-color":[{"mask-linear-from":w()}],"mask-image-linear-to-color":[{"mask-linear-to":w()}],"mask-image-t-from-pos":[{"mask-t-from":B()}],"mask-image-t-to-pos":[{"mask-t-to":B()}],"mask-image-t-from-color":[{"mask-t-from":w()}],"mask-image-t-to-color":[{"mask-t-to":w()}],"mask-image-r-from-pos":[{"mask-r-from":B()}],"mask-image-r-to-pos":[{"mask-r-to":B()}],"mask-image-r-from-color":[{"mask-r-from":w()}],"mask-image-r-to-color":[{"mask-r-to":w()}],"mask-image-b-from-pos":[{"mask-b-from":B()}],"mask-image-b-to-pos":[{"mask-b-to":B()}],"mask-image-b-from-color":[{"mask-b-from":w()}],"mask-image-b-to-color":[{"mask-b-to":w()}],"mask-image-l-from-pos":[{"mask-l-from":B()}],"mask-image-l-to-pos":[{"mask-l-to":B()}],"mask-image-l-from-color":[{"mask-l-from":w()}],"mask-image-l-to-color":[{"mask-l-to":w()}],"mask-image-x-from-pos":[{"mask-x-from":B()}],"mask-image-x-to-pos":[{"mask-x-to":B()}],"mask-image-x-from-color":[{"mask-x-from":w()}],"mask-image-x-to-color":[{"mask-x-to":w()}],"mask-image-y-from-pos":[{"mask-y-from":B()}],"mask-image-y-to-pos":[{"mask-y-to":B()}],"mask-image-y-from-color":[{"mask-y-from":w()}],"mask-image-y-to-color":[{"mask-y-to":w()}],"mask-image-radial":[{"mask-radial":[h,g]}],"mask-image-radial-from-pos":[{"mask-radial-from":B()}],"mask-image-radial-to-pos":[{"mask-radial-to":B()}],"mask-image-radial-from-color":[{"mask-radial-from":w()}],"mask-image-radial-to-color":[{"mask-radial-to":w()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":G()}],"mask-image-conic-pos":[{"mask-conic":[R]}],"mask-image-conic-from-pos":[{"mask-conic-from":B()}],"mask-image-conic-to-pos":[{"mask-conic-to":B()}],"mask-image-conic-from-color":[{"mask-conic-from":w()}],"mask-image-conic-to-color":[{"mask-conic-to":w()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Te()}],"mask-repeat":[{mask:Ee()}],"mask-size":[{mask:Pe()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",h,g]}],filter:[{filter:["","none",h,g]}],blur:[{blur:ge()}],brightness:[{brightness:[R,h,g]}],contrast:[{contrast:[R,h,g]}],"drop-shadow":[{"drop-shadow":["","none",v,Me,Ie]}],"drop-shadow-color":[{"drop-shadow":w()}],grayscale:[{grayscale:["",R,h,g]}],"hue-rotate":[{"hue-rotate":[R,h,g]}],invert:[{invert:["",R,h,g]}],saturate:[{saturate:[R,h,g]}],sepia:[{sepia:["",R,h,g]}],"backdrop-filter":[{"backdrop-filter":["","none",h,g]}],"backdrop-blur":[{"backdrop-blur":ge()}],"backdrop-brightness":[{"backdrop-brightness":[R,h,g]}],"backdrop-contrast":[{"backdrop-contrast":[R,h,g]}],"backdrop-grayscale":[{"backdrop-grayscale":["",R,h,g]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[R,h,g]}],"backdrop-invert":[{"backdrop-invert":["",R,h,g]}],"backdrop-opacity":[{"backdrop-opacity":[R,h,g]}],"backdrop-saturate":[{"backdrop-saturate":[R,h,g]}],"backdrop-sepia":[{"backdrop-sepia":["",R,h,g]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":b()}],"border-spacing-x":[{"border-spacing-x":b()}],"border-spacing-y":[{"border-spacing-y":b()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",h,g]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[R,"initial",h,g]}],ease:[{ease:["linear","initial",z,h,g]}],delay:[{delay:[R,h,g]}],animate:[{animate:["none",E,h,g]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[S,h,g]}],"perspective-origin":[{"perspective-origin":Z()}],rotate:[{rotate:ke()}],"rotate-x":[{"rotate-x":ke()}],"rotate-y":[{"rotate-y":ke()}],"rotate-z":[{"rotate-z":ke()}],scale:[{scale:he()}],"scale-x":[{"scale-x":he()}],"scale-y":[{"scale-y":he()}],"scale-z":[{"scale-z":he()}],"scale-3d":["scale-3d"],skew:[{skew:Ae()}],"skew-x":[{"skew-x":Ae()}],"skew-y":[{"skew-y":Ae()}],transform:[{transform:[h,g,"","none","gpu","cpu"]}],"transform-origin":[{origin:Z()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ve()}],"translate-x":[{"translate-x":ve()}],"translate-y":[{"translate-y":ve()}],"translate-z":[{"translate-z":ve()}],"translate-none":["translate-none"],zoom:[{zoom:[oe,h,g]}],accent:[{accent:w()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:w()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",h,g]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":w()}],"scrollbar-track-color":[{"scrollbar-track":w()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":b()}],"scroll-mx":[{"scroll-mx":b()}],"scroll-my":[{"scroll-my":b()}],"scroll-ms":[{"scroll-ms":b()}],"scroll-me":[{"scroll-me":b()}],"scroll-mbs":[{"scroll-mbs":b()}],"scroll-mbe":[{"scroll-mbe":b()}],"scroll-mt":[{"scroll-mt":b()}],"scroll-mr":[{"scroll-mr":b()}],"scroll-mb":[{"scroll-mb":b()}],"scroll-ml":[{"scroll-ml":b()}],"scroll-p":[{"scroll-p":b()}],"scroll-px":[{"scroll-px":b()}],"scroll-py":[{"scroll-py":b()}],"scroll-ps":[{"scroll-ps":b()}],"scroll-pe":[{"scroll-pe":b()}],"scroll-pbs":[{"scroll-pbs":b()}],"scroll-pbe":[{"scroll-pbe":b()}],"scroll-pt":[{"scroll-pt":b()}],"scroll-pr":[{"scroll-pr":b()}],"scroll-pb":[{"scroll-pb":b()}],"scroll-pl":[{"scroll-pl":b()}],"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",h,g]}],fill:[{fill:["none",...w()]}],"stroke-w":[{stroke:[R,Ne,fe,dr]}],stroke:[{stroke:["none",...w()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function x(...e){return na($e(e))}var He={exports:{}},_e={};/**
|
|
1
|
+
(function(j,k){typeof exports=="object"&&typeof module<"u"?k(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],k):(j=typeof globalThis<"u"?globalThis:j||self,k(j.Rock10UI={},j.React))})(this,function(j,k){"use strict";function ar(e){var t,a,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(a=ar(e[t]))&&(s&&(s+=" "),s+=a)}else for(a in e)e[a]&&(s&&(s+=" "),s+=a);return s}function sr(){for(var e,t,a=0,s="",n=arguments.length;a<n;a++)(e=arguments[a])&&(t=ar(e))&&(s&&(s+=" "),s+=t);return s}const vt=(e,t)=>{const a=new Array(e.length+t.length);for(let s=0;s<e.length;s++)a[s]=e[s];for(let s=0;s<t.length;s++)a[e.length+s]=t[s];return a},wt=(e,t)=>({classGroupId:e,validator:t}),or=(e=new Map,t=null,a)=>({nextPart:e,validators:t,classGroupId:a}),Oe="-",nr=[],jt="arbitrary..",Nt=e=>{const t=Ct(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return _t(i);const d=i.split(Oe),m=d[0]===""&&d.length>1?1:0;return lr(d,m,t)},getConflictingClassGroupIds:(i,d)=>{if(d){const m=s[i],c=a[i];return m?c?vt(c,m):m:c||nr}return a[i]||nr}}},lr=(e,t,a)=>{if(e.length-t===0)return a.classGroupId;const n=e[t],l=a.nextPart.get(n);if(l){const c=lr(e,t+1,l);if(c)return c}const i=a.validators;if(i===null)return;const d=t===0?e.join(Oe):e.slice(t).join(Oe),m=i.length;for(let c=0;c<m;c++){const u=i[c];if(u.validator(d))return u.classGroupId}},_t=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),a=t.indexOf(":"),s=t.slice(0,a);return s?jt+s:void 0})(),Ct=e=>{const{theme:t,classGroups:a}=e;return St(a,t)},St=(e,t)=>{const a=or();for(const s in e){const n=e[s];Ge(n,a,s,t)}return a},Ge=(e,t,a,s)=>{const n=e.length;for(let l=0;l<n;l++){const i=e[l];Rt(i,t,a,s)}},Rt=(e,t,a,s)=>{if(typeof e=="string"){Et(e,t,a);return}if(typeof e=="function"){Tt(e,t,a,s);return}zt(e,t,a,s)},Et=(e,t,a)=>{const s=e===""?t:ir(t,e);s.classGroupId=a},Tt=(e,t,a,s)=>{if(At(e)){Ge(e(s),t,a,s);return}t.validators===null&&(t.validators=[]),t.validators.push(wt(a,e))},zt=(e,t,a,s)=>{const n=Object.entries(e),l=n.length;for(let i=0;i<l;i++){const[d,m]=n[i];Ge(m,ir(t,d),a,s)}},ir=(e,t)=>{let a=e;const s=t.split(Oe),n=s.length;for(let l=0;l<n;l++){const i=s[l];let d=a.nextPart.get(i);d||(d=or(),a.nextPart.set(i,d)),a=d}return a},At=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Pt=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=Object.create(null),s=Object.create(null);const n=(l,i)=>{a[l]=i,t++,t>e&&(t=0,s=a,a=Object.create(null))};return{get(l){let i=a[l];if(i!==void 0)return i;if((i=s[l])!==void 0)return n(l,i),i},set(l,i){l in a?a[l]=i:n(l,i)}}},Ue="!",dr=":",Ft=[],cr=(e,t,a,s,n)=>({modifiers:e,hasImportantModifier:t,baseClassName:a,maybePostfixModifierPosition:s,isExternal:n}),Ot=e=>{const{prefix:t,experimentalParseClassName:a}=e;let s=n=>{const l=[];let i=0,d=0,m=0,c;const u=n.length;for(let _=0;_<u;_++){const T=n[_];if(i===0&&d===0){if(T===dr){l.push(n.slice(m,_)),m=_+1;continue}if(T==="/"){c=_;continue}}T==="["?i++:T==="]"?i--:T==="("?d++:T===")"&&d--}const f=l.length===0?n:n.slice(m);let w=f,b=!1;f.endsWith(Ue)?(w=f.slice(0,-1),b=!0):f.startsWith(Ue)&&(w=f.slice(1),b=!0);const R=c&&c>m?c-m:void 0;return cr(l,b,w,R)};if(t){const n=t+dr,l=s;s=i=>i.startsWith(n)?l(i.slice(n.length)):cr(Ft,!1,i,void 0,!0)}if(a){const n=s;s=l=>a({className:l,parseClassName:n})}return s},It=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((a,s)=>{t.set(a,1e6+s)}),a=>{const s=[];let n=[];for(let l=0;l<a.length;l++){const i=a[l],d=i[0]==="[",m=t.has(i);d||m?(n.length>0&&(n.sort(),s.push(...n),n=[]),s.push(i)):n.push(i)}return n.length>0&&(n.sort(),s.push(...n)),s}},Mt=e=>({cache:Pt(e.cacheSize),parseClassName:Ot(e),sortModifiers:It(e),postfixLookupClassGroupIds:Dt(e),...Nt(e)}),Dt=e=>{const t=Object.create(null),a=e.postfixLookupClassGroups;if(a)for(let s=0;s<a.length;s++)t[a[s]]=!0;return t},Lt=/\s+/,Vt=(e,t)=>{const{parseClassName:a,getClassGroupId:s,getConflictingClassGroupIds:n,sortModifiers:l,postfixLookupClassGroupIds:i}=t,d=[],m=e.trim().split(Lt);let c="";for(let u=m.length-1;u>=0;u-=1){const f=m[u],{isExternal:w,modifiers:b,hasImportantModifier:R,baseClassName:_,maybePostfixModifierPosition:T}=a(f);if(w){c=f+(c.length>0?" "+c:c);continue}let C=!!T,S;if(C){const I=_.substring(0,T);S=s(I);const g=S&&i[S]?s(_):void 0;g&&g!==S&&(S=g,C=!1)}else S=s(_);if(!S){if(!C){c=f+(c.length>0?" "+c:c);continue}if(S=s(_),!S){c=f+(c.length>0?" "+c:c);continue}C=!1}const X=b.length===0?"":b.length===1?b[0]:l(b).join(":"),G=R?X+Ue:X,Z=G+S;if(d.indexOf(Z)>-1)continue;d.push(Z);const F=n(S,C);for(let I=0;I<F.length;++I){const g=F[I];d.push(G+g)}c=f+(c.length>0?" "+c:c)}return c},Bt=(...e)=>{let t=0,a,s,n="";for(;t<e.length;)(a=e[t++])&&(s=mr(a))&&(n&&(n+=" "),n+=s);return n},mr=e=>{if(typeof e=="string")return e;let t,a="";for(let s=0;s<e.length;s++)e[s]&&(t=mr(e[s]))&&(a&&(a+=" "),a+=t);return a},Wt=(e,...t)=>{let a,s,n,l;const i=m=>{const c=t.reduce((u,f)=>f(u),e());return a=Mt(c),s=a.cache.get,n=a.cache.set,l=d,d(m)},d=m=>{const c=s(m);if(c)return c;const u=Vt(m,a);return n(m,u),u};return l=i,(...m)=>l(Bt(...m))},Gt=[],K=e=>{const t=a=>a[e]||Gt;return t.isThemeGetter=!0,t},ur=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,xr=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Ut=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Ht=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Yt=/\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$/,Kt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Jt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Xt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ce=e=>Ut.test(e),z=e=>!!e&&!Number.isNaN(Number(e)),oe=e=>!!e&&Number.isInteger(Number(e)),He=e=>e.endsWith("%")&&z(e.slice(0,-1)),ne=e=>Ht.test(e),fr=()=>!0,Zt=e=>Yt.test(e)&&!Kt.test(e),Ye=()=>!1,Qt=e=>Jt.test(e),$t=e=>Xt.test(e),qt=e=>!y(e)&&!v(e),ea=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),ra=e=>me(e,kr,Ye),y=e=>ur.test(e),xe=e=>me(e,vr,Zt),pr=e=>me(e,da,z),ta=e=>me(e,jr,fr),aa=e=>me(e,wr,Ye),br=e=>me(e,hr,Ye),sa=e=>me(e,yr,$t),Ie=e=>me(e,Nr,Qt),v=e=>xr.test(e),Ne=e=>fe(e,vr),oa=e=>fe(e,wr),gr=e=>fe(e,hr),na=e=>fe(e,kr),la=e=>fe(e,yr),Me=e=>fe(e,Nr,!0),ia=e=>fe(e,jr,!0),me=(e,t,a)=>{const s=ur.exec(e);return s?s[1]?t(s[1]):a(s[2]):!1},fe=(e,t,a=!1)=>{const s=xr.exec(e);return s?s[1]?t(s[1]):a:!1},hr=e=>e==="position"||e==="percentage",yr=e=>e==="image"||e==="url",kr=e=>e==="length"||e==="size"||e==="bg-size",vr=e=>e==="length",da=e=>e==="number",wr=e=>e==="family-name",jr=e=>e==="number"||e==="weight",Nr=e=>e==="shadow",ca=Wt(()=>{const e=K("color"),t=K("font"),a=K("text"),s=K("font-weight"),n=K("tracking"),l=K("leading"),i=K("breakpoint"),d=K("container"),m=K("spacing"),c=K("radius"),u=K("shadow"),f=K("inset-shadow"),w=K("text-shadow"),b=K("drop-shadow"),R=K("blur"),_=K("perspective"),T=K("aspect"),C=K("ease"),S=K("animate"),X=()=>["auto","avoid","all","avoid-page","page","left","right","column"],G=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],Z=()=>[...G(),v,y],F=()=>["auto","hidden","clip","visible","scroll"],I=()=>["auto","contain","none"],g=()=>[v,y,m],L=()=>[ce,"full","auto",...g()],le=()=>[oe,"none","subgrid",v,y],ie=()=>["auto",{span:["full",oe,v,y]},oe,v,y],ae=()=>[oe,"auto",v,y],$=()=>["auto","min","max","fr",v,y],V=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],H=()=>["start","end","center","stretch","center-safe","end-safe"],B=()=>["auto",...g()],ee=()=>[ce,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...g()],re=()=>[ce,"screen","full","dvw","lvw","svw","min","max","fit",...g()],de=()=>[ce,"screen","full","lh","dvh","lvh","svh","min","max","fit",...g()],N=()=>[e,v,y],Ee=()=>[...G(),gr,br,{position:[v,y]}],Te=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ze=()=>["auto","cover","contain",na,ra,{size:[v,y]}],Ae=()=>[He,Ne,xe],Q=()=>["","none","full",c,v,y],J=()=>["",z,Ne,xe],ue=()=>["solid","dashed","dotted","double"],be=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],W=()=>[z,He,gr,br],ge=()=>["","none",R,v,y],ke=()=>["none",z,v,y],he=()=>["none",z,v,y],Pe=()=>[z,v,y],ve=()=>[ce,"full",...g()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ne],breakpoint:[ne],color:[fr],container:[ne],"drop-shadow":[ne],ease:["in","out","in-out"],font:[qt],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ne],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ne],shadow:[ne],spacing:["px",z],text:[ne],"text-shadow":[ne],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ce,y,v,T]}],container:["container"],"container-type":[{"@container":["","normal","size",v,y]}],"container-named":[ea],columns:[{columns:[z,y,v,d]}],"break-after":[{"break-after":X()}],"break-before":[{"break-before":X()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:Z()}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:I()}],"overscroll-x":[{"overscroll-x":I()}],"overscroll-y":[{"overscroll-y":I()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:L()}],"inset-x":[{"inset-x":L()}],"inset-y":[{"inset-y":L()}],start:[{"inset-s":L(),start:L()}],end:[{"inset-e":L(),end:L()}],"inset-bs":[{"inset-bs":L()}],"inset-be":[{"inset-be":L()}],top:[{top:L()}],right:[{right:L()}],bottom:[{bottom:L()}],left:[{left:L()}],visibility:["visible","invisible","collapse"],z:[{z:[oe,"auto",v,y]}],basis:[{basis:[ce,"full","auto",d,...g()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[z,ce,"auto","initial","none",y]}],grow:[{grow:["",z,v,y]}],shrink:[{shrink:["",z,v,y]}],order:[{order:[oe,"first","last","none",v,y]}],"grid-cols":[{"grid-cols":le()}],"col-start-end":[{col:ie()}],"col-start":[{"col-start":ae()}],"col-end":[{"col-end":ae()}],"grid-rows":[{"grid-rows":le()}],"row-start-end":[{row:ie()}],"row-start":[{"row-start":ae()}],"row-end":[{"row-end":ae()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":$()}],"auto-rows":[{"auto-rows":$()}],gap:[{gap:g()}],"gap-x":[{"gap-x":g()}],"gap-y":[{"gap-y":g()}],"justify-content":[{justify:[...V(),"normal"]}],"justify-items":[{"justify-items":[...H(),"normal"]}],"justify-self":[{"justify-self":["auto",...H()]}],"align-content":[{content:["normal",...V()]}],"align-items":[{items:[...H(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...H(),{baseline:["","last"]}]}],"place-content":[{"place-content":V()}],"place-items":[{"place-items":[...H(),"baseline"]}],"place-self":[{"place-self":["auto",...H()]}],p:[{p:g()}],px:[{px:g()}],py:[{py:g()}],ps:[{ps:g()}],pe:[{pe:g()}],pbs:[{pbs:g()}],pbe:[{pbe:g()}],pt:[{pt:g()}],pr:[{pr:g()}],pb:[{pb:g()}],pl:[{pl:g()}],m:[{m:B()}],mx:[{mx:B()}],my:[{my:B()}],ms:[{ms:B()}],me:[{me:B()}],mbs:[{mbs:B()}],mbe:[{mbe:B()}],mt:[{mt:B()}],mr:[{mr:B()}],mb:[{mb:B()}],ml:[{ml:B()}],"space-x":[{"space-x":g()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":g()}],"space-y-reverse":["space-y-reverse"],size:[{size:ee()}],"inline-size":[{inline:["auto",...re()]}],"min-inline-size":[{"min-inline":["auto",...re()]}],"max-inline-size":[{"max-inline":["none",...re()]}],"block-size":[{block:["auto",...de()]}],"min-block-size":[{"min-block":["auto",...de()]}],"max-block-size":[{"max-block":["none",...de()]}],w:[{w:[d,"screen",...ee()]}],"min-w":[{"min-w":[d,"screen","none",...ee()]}],"max-w":[{"max-w":[d,"screen","none","prose",{screen:[i]},...ee()]}],h:[{h:["screen","lh",...ee()]}],"min-h":[{"min-h":["screen","lh","none",...ee()]}],"max-h":[{"max-h":["screen","lh",...ee()]}],"font-size":[{text:["base",a,Ne,xe]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[s,ia,ta]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",He,y]}],"font-family":[{font:[oa,aa,t]}],"font-features":[{"font-features":[y]}],"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:[n,v,y]}],"line-clamp":[{"line-clamp":[z,"none",v,pr]}],leading:[{leading:[l,...g()]}],"list-image":[{"list-image":["none",v,y]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",v,y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:N()}],"text-color":[{text:N()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ue(),"wavy"]}],"text-decoration-thickness":[{decoration:[z,"from-font","auto",v,xe]}],"text-decoration-color":[{decoration:N()}],"underline-offset":[{"underline-offset":[z,"auto",v,y]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:g()}],"tab-size":[{tab:[oe,v,y]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",v,y]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",v,y]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Ee()}],"bg-repeat":[{bg:Te()}],"bg-size":[{bg:ze()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},oe,v,y],radial:["",v,y],conic:[oe,v,y]},la,sa]}],"bg-color":[{bg:N()}],"gradient-from-pos":[{from:Ae()}],"gradient-via-pos":[{via:Ae()}],"gradient-to-pos":[{to:Ae()}],"gradient-from":[{from:N()}],"gradient-via":[{via:N()}],"gradient-to":[{to:N()}],rounded:[{rounded:Q()}],"rounded-s":[{"rounded-s":Q()}],"rounded-e":[{"rounded-e":Q()}],"rounded-t":[{"rounded-t":Q()}],"rounded-r":[{"rounded-r":Q()}],"rounded-b":[{"rounded-b":Q()}],"rounded-l":[{"rounded-l":Q()}],"rounded-ss":[{"rounded-ss":Q()}],"rounded-se":[{"rounded-se":Q()}],"rounded-ee":[{"rounded-ee":Q()}],"rounded-es":[{"rounded-es":Q()}],"rounded-tl":[{"rounded-tl":Q()}],"rounded-tr":[{"rounded-tr":Q()}],"rounded-br":[{"rounded-br":Q()}],"rounded-bl":[{"rounded-bl":Q()}],"border-w":[{border:J()}],"border-w-x":[{"border-x":J()}],"border-w-y":[{"border-y":J()}],"border-w-s":[{"border-s":J()}],"border-w-e":[{"border-e":J()}],"border-w-bs":[{"border-bs":J()}],"border-w-be":[{"border-be":J()}],"border-w-t":[{"border-t":J()}],"border-w-r":[{"border-r":J()}],"border-w-b":[{"border-b":J()}],"border-w-l":[{"border-l":J()}],"divide-x":[{"divide-x":J()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":J()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ue(),"hidden","none"]}],"divide-style":[{divide:[...ue(),"hidden","none"]}],"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-bs":[{"border-bs":N()}],"border-color-be":[{"border-be":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:[...ue(),"none","hidden"]}],"outline-offset":[{"outline-offset":[z,v,y]}],"outline-w":[{outline:["",z,Ne,xe]}],"outline-color":[{outline:N()}],shadow:[{shadow:["","none",u,Me,Ie]}],"shadow-color":[{shadow:N()}],"inset-shadow":[{"inset-shadow":["none",f,Me,Ie]}],"inset-shadow-color":[{"inset-shadow":N()}],"ring-w":[{ring:J()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:N()}],"ring-offset-w":[{"ring-offset":[z,xe]}],"ring-offset-color":[{"ring-offset":N()}],"inset-ring-w":[{"inset-ring":J()}],"inset-ring-color":[{"inset-ring":N()}],"text-shadow":[{"text-shadow":["none",w,Me,Ie]}],"text-shadow-color":[{"text-shadow":N()}],opacity:[{opacity:[z,v,y]}],"mix-blend":[{"mix-blend":[...be(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":be()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[z]}],"mask-image-linear-from-pos":[{"mask-linear-from":W()}],"mask-image-linear-to-pos":[{"mask-linear-to":W()}],"mask-image-linear-from-color":[{"mask-linear-from":N()}],"mask-image-linear-to-color":[{"mask-linear-to":N()}],"mask-image-t-from-pos":[{"mask-t-from":W()}],"mask-image-t-to-pos":[{"mask-t-to":W()}],"mask-image-t-from-color":[{"mask-t-from":N()}],"mask-image-t-to-color":[{"mask-t-to":N()}],"mask-image-r-from-pos":[{"mask-r-from":W()}],"mask-image-r-to-pos":[{"mask-r-to":W()}],"mask-image-r-from-color":[{"mask-r-from":N()}],"mask-image-r-to-color":[{"mask-r-to":N()}],"mask-image-b-from-pos":[{"mask-b-from":W()}],"mask-image-b-to-pos":[{"mask-b-to":W()}],"mask-image-b-from-color":[{"mask-b-from":N()}],"mask-image-b-to-color":[{"mask-b-to":N()}],"mask-image-l-from-pos":[{"mask-l-from":W()}],"mask-image-l-to-pos":[{"mask-l-to":W()}],"mask-image-l-from-color":[{"mask-l-from":N()}],"mask-image-l-to-color":[{"mask-l-to":N()}],"mask-image-x-from-pos":[{"mask-x-from":W()}],"mask-image-x-to-pos":[{"mask-x-to":W()}],"mask-image-x-from-color":[{"mask-x-from":N()}],"mask-image-x-to-color":[{"mask-x-to":N()}],"mask-image-y-from-pos":[{"mask-y-from":W()}],"mask-image-y-to-pos":[{"mask-y-to":W()}],"mask-image-y-from-color":[{"mask-y-from":N()}],"mask-image-y-to-color":[{"mask-y-to":N()}],"mask-image-radial":[{"mask-radial":[v,y]}],"mask-image-radial-from-pos":[{"mask-radial-from":W()}],"mask-image-radial-to-pos":[{"mask-radial-to":W()}],"mask-image-radial-from-color":[{"mask-radial-from":N()}],"mask-image-radial-to-color":[{"mask-radial-to":N()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":G()}],"mask-image-conic-pos":[{"mask-conic":[z]}],"mask-image-conic-from-pos":[{"mask-conic-from":W()}],"mask-image-conic-to-pos":[{"mask-conic-to":W()}],"mask-image-conic-from-color":[{"mask-conic-from":N()}],"mask-image-conic-to-color":[{"mask-conic-to":N()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Ee()}],"mask-repeat":[{mask:Te()}],"mask-size":[{mask:ze()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",v,y]}],filter:[{filter:["","none",v,y]}],blur:[{blur:ge()}],brightness:[{brightness:[z,v,y]}],contrast:[{contrast:[z,v,y]}],"drop-shadow":[{"drop-shadow":["","none",b,Me,Ie]}],"drop-shadow-color":[{"drop-shadow":N()}],grayscale:[{grayscale:["",z,v,y]}],"hue-rotate":[{"hue-rotate":[z,v,y]}],invert:[{invert:["",z,v,y]}],saturate:[{saturate:[z,v,y]}],sepia:[{sepia:["",z,v,y]}],"backdrop-filter":[{"backdrop-filter":["","none",v,y]}],"backdrop-blur":[{"backdrop-blur":ge()}],"backdrop-brightness":[{"backdrop-brightness":[z,v,y]}],"backdrop-contrast":[{"backdrop-contrast":[z,v,y]}],"backdrop-grayscale":[{"backdrop-grayscale":["",z,v,y]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[z,v,y]}],"backdrop-invert":[{"backdrop-invert":["",z,v,y]}],"backdrop-opacity":[{"backdrop-opacity":[z,v,y]}],"backdrop-saturate":[{"backdrop-saturate":[z,v,y]}],"backdrop-sepia":[{"backdrop-sepia":["",z,v,y]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":g()}],"border-spacing-x":[{"border-spacing-x":g()}],"border-spacing-y":[{"border-spacing-y":g()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",v,y]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[z,"initial",v,y]}],ease:[{ease:["linear","initial",C,v,y]}],delay:[{delay:[z,v,y]}],animate:[{animate:["none",S,v,y]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[_,v,y]}],"perspective-origin":[{"perspective-origin":Z()}],rotate:[{rotate:ke()}],"rotate-x":[{"rotate-x":ke()}],"rotate-y":[{"rotate-y":ke()}],"rotate-z":[{"rotate-z":ke()}],scale:[{scale:he()}],"scale-x":[{"scale-x":he()}],"scale-y":[{"scale-y":he()}],"scale-z":[{"scale-z":he()}],"scale-3d":["scale-3d"],skew:[{skew:Pe()}],"skew-x":[{"skew-x":Pe()}],"skew-y":[{"skew-y":Pe()}],transform:[{transform:[v,y,"","none","gpu","cpu"]}],"transform-origin":[{origin:Z()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ve()}],"translate-x":[{"translate-x":ve()}],"translate-y":[{"translate-y":ve()}],"translate-z":[{"translate-z":ve()}],"translate-none":["translate-none"],zoom:[{zoom:[oe,v,y]}],accent:[{accent:N()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:N()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",v,y]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":N()}],"scrollbar-track-color":[{"scrollbar-track":N()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":g()}],"scroll-mx":[{"scroll-mx":g()}],"scroll-my":[{"scroll-my":g()}],"scroll-ms":[{"scroll-ms":g()}],"scroll-me":[{"scroll-me":g()}],"scroll-mbs":[{"scroll-mbs":g()}],"scroll-mbe":[{"scroll-mbe":g()}],"scroll-mt":[{"scroll-mt":g()}],"scroll-mr":[{"scroll-mr":g()}],"scroll-mb":[{"scroll-mb":g()}],"scroll-ml":[{"scroll-ml":g()}],"scroll-p":[{"scroll-p":g()}],"scroll-px":[{"scroll-px":g()}],"scroll-py":[{"scroll-py":g()}],"scroll-ps":[{"scroll-ps":g()}],"scroll-pe":[{"scroll-pe":g()}],"scroll-pbs":[{"scroll-pbs":g()}],"scroll-pbe":[{"scroll-pbe":g()}],"scroll-pt":[{"scroll-pt":g()}],"scroll-pr":[{"scroll-pr":g()}],"scroll-pb":[{"scroll-pb":g()}],"scroll-pl":[{"scroll-pl":g()}],"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",v,y]}],fill:[{fill:["none",...N()]}],"stroke-w":[{stroke:[z,Ne,xe,pr]}],stroke:[{stroke:["none",...N()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function p(...e){return ca(sr(e))}var Ke={exports:{}},_e={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.min.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var
|
|
9
|
+
*/var _r;function ma(){if(_r)return _e;_r=1;var e=k,t=Symbol.for("react.element"),a=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,n=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function i(d,m,c){var u,f={},w=null,b=null;c!==void 0&&(w=""+c),m.key!==void 0&&(w=""+m.key),m.ref!==void 0&&(b=m.ref);for(u in m)s.call(m,u)&&!l.hasOwnProperty(u)&&(f[u]=m[u]);if(d&&d.defaultProps)for(u in m=d.defaultProps,m)f[u]===void 0&&(f[u]=m[u]);return{$$typeof:t,type:d,key:w,ref:b,props:f,_owner:n.current}}return _e.Fragment=a,_e.jsx=i,_e.jsxs=i,_e}var Ce={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,142 +14,162 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var
|
|
18
|
-
`+
|
|
19
|
-
`),q=
|
|
20
|
-
`),U=
|
|
21
|
-
`+
|
|
17
|
+
*/var Cr;function ua(){return Cr||(Cr=1,process.env.NODE_ENV!=="production"&&function(){var e=k,t=Symbol.for("react.element"),a=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),d=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),R=Symbol.iterator,_="@@iterator";function T(o){if(o===null||typeof o!="object")return null;var x=R&&o[R]||o[_];return typeof x=="function"?x:null}var C=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function S(o){{for(var x=arguments.length,h=new Array(x>1?x-1:0),E=1;E<x;E++)h[E-1]=arguments[E];X("error",o,h)}}function X(o,x,h){{var E=C.ReactDebugCurrentFrame,O=E.getStackAddendum();O!==""&&(x+="%s",h=h.concat([O]));var M=h.map(function(P){return String(P)});M.unshift("Warning: "+x),Function.prototype.apply.call(console[o],console,M)}}var G=!1,Z=!1,F=!1,I=!1,g=!1,L;L=Symbol.for("react.module.reference");function le(o){return!!(typeof o=="string"||typeof o=="function"||o===s||o===l||g||o===n||o===c||o===u||I||o===b||G||Z||F||typeof o=="object"&&o!==null&&(o.$$typeof===w||o.$$typeof===f||o.$$typeof===i||o.$$typeof===d||o.$$typeof===m||o.$$typeof===L||o.getModuleId!==void 0))}function ie(o,x,h){var E=o.displayName;if(E)return E;var O=x.displayName||x.name||"";return O!==""?h+"("+O+")":h}function ae(o){return o.displayName||"Context"}function $(o){if(o==null)return null;if(typeof o.tag=="number"&&S("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case s:return"Fragment";case a:return"Portal";case l:return"Profiler";case n:return"StrictMode";case c:return"Suspense";case u:return"SuspenseList"}if(typeof o=="object")switch(o.$$typeof){case d:var x=o;return ae(x)+".Consumer";case i:var h=o;return ae(h._context)+".Provider";case m:return ie(o,o.render,"ForwardRef");case f:var E=o.displayName||null;return E!==null?E:$(o.type)||"Memo";case w:{var O=o,M=O._payload,P=O._init;try{return $(P(M))}catch{return null}}}return null}var V=Object.assign,H=0,B,ee,re,de,N,Ee,Te;function ze(){}ze.__reactDisabledLog=!0;function Ae(){{if(H===0){B=console.log,ee=console.info,re=console.warn,de=console.error,N=console.group,Ee=console.groupCollapsed,Te=console.groupEnd;var o={configurable:!0,enumerable:!0,value:ze,writable:!0};Object.defineProperties(console,{info:o,log:o,warn:o,error:o,group:o,groupCollapsed:o,groupEnd:o})}H++}}function Q(){{if(H--,H===0){var o={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:V({},o,{value:B}),info:V({},o,{value:ee}),warn:V({},o,{value:re}),error:V({},o,{value:de}),group:V({},o,{value:N}),groupCollapsed:V({},o,{value:Ee}),groupEnd:V({},o,{value:Te})})}H<0&&S("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var J=C.ReactCurrentDispatcher,ue;function be(o,x,h){{if(ue===void 0)try{throw Error()}catch(O){var E=O.stack.trim().match(/\n( *(at )?)/);ue=E&&E[1]||""}return`
|
|
18
|
+
`+ue+o}}var W=!1,ge;{var ke=typeof WeakMap=="function"?WeakMap:Map;ge=new ke}function he(o,x){if(!o||W)return"";{var h=ge.get(o);if(h!==void 0)return h}var E;W=!0;var O=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var M;M=J.current,J.current=null,Ae();try{if(x){var P=function(){throw Error()};if(Object.defineProperty(P.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(P,[])}catch(te){E=te}Reflect.construct(o,[],P)}else{try{P.call()}catch(te){E=te}o.call(P.prototype)}}else{try{throw Error()}catch(te){E=te}o()}}catch(te){if(te&&E&&typeof te.stack=="string"){for(var A=te.stack.split(`
|
|
19
|
+
`),q=E.stack.split(`
|
|
20
|
+
`),U=A.length-1,Y=q.length-1;U>=1&&Y>=0&&A[U]!==q[Y];)Y--;for(;U>=1&&Y>=0;U--,Y--)if(A[U]!==q[Y]){if(U!==1||Y!==1)do if(U--,Y--,Y<0||A[U]!==q[Y]){var se=`
|
|
21
|
+
`+A[U].replace(" at new "," at ");return o.displayName&&se.includes("<anonymous>")&&(se=se.replace("<anonymous>",o.displayName)),typeof o=="function"&&ge.set(o,se),se}while(U>=1&&Y>=0);break}}}finally{W=!1,J.current=M,Q(),Error.prepareStackTrace=O}var je=o?o.displayName||o.name:"",ye=je?be(je):"";return typeof o=="function"&&ge.set(o,ye),ye}function Pe(o,x,h){return he(o,!1)}function ve(o){var x=o.prototype;return!!(x&&x.isReactComponent)}function Be(o,x,h){if(o==null)return"";if(typeof o=="function")return he(o,ve(o));if(typeof o=="string")return be(o);switch(o){case c:return be("Suspense");case u:return be("SuspenseList")}if(typeof o=="object")switch(o.$$typeof){case m:return Pe(o.render);case f:return Be(o.type,x,h);case w:{var E=o,O=E._payload,M=E._init;try{return Be(M(O),x,h)}catch{}}}return""}var Fe=Object.prototype.hasOwnProperty,lt={},it=C.ReactDebugCurrentFrame;function We(o){if(o){var x=o._owner,h=Be(o.type,o._source,x?x.type:null);it.setExtraStackFrame(h)}else it.setExtraStackFrame(null)}function ss(o,x,h,E,O){{var M=Function.call.bind(Fe);for(var P in o)if(M(o,P)){var A=void 0;try{if(typeof o[P]!="function"){var q=Error((E||"React class")+": "+h+" type `"+P+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[P]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw q.name="Invariant Violation",q}A=o[P](x,P,E,h,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(U){A=U}A&&!(A instanceof Error)&&(We(O),S("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",E||"React class",h,P,typeof A),We(null)),A instanceof Error&&!(A.message in lt)&&(lt[A.message]=!0,We(O),S("Failed %s type: %s",h,A.message),We(null))}}}var os=Array.isArray;function $e(o){return os(o)}function ns(o){{var x=typeof Symbol=="function"&&Symbol.toStringTag,h=x&&o[Symbol.toStringTag]||o.constructor.name||"Object";return h}}function ls(o){try{return dt(o),!1}catch{return!0}}function dt(o){return""+o}function ct(o){if(ls(o))return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ns(o)),dt(o)}var mt=C.ReactCurrentOwner,is={key:!0,ref:!0,__self:!0,__source:!0},ut,xt;function ds(o){if(Fe.call(o,"ref")){var x=Object.getOwnPropertyDescriptor(o,"ref").get;if(x&&x.isReactWarning)return!1}return o.ref!==void 0}function cs(o){if(Fe.call(o,"key")){var x=Object.getOwnPropertyDescriptor(o,"key").get;if(x&&x.isReactWarning)return!1}return o.key!==void 0}function ms(o,x){typeof o.ref=="string"&&mt.current}function us(o,x){{var h=function(){ut||(ut=!0,S("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",x))};h.isReactWarning=!0,Object.defineProperty(o,"key",{get:h,configurable:!0})}}function xs(o,x){{var h=function(){xt||(xt=!0,S("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",x))};h.isReactWarning=!0,Object.defineProperty(o,"ref",{get:h,configurable:!0})}}var fs=function(o,x,h,E,O,M,P){var A={$$typeof:t,type:o,key:x,ref:h,props:P,_owner:M};return A._store={},Object.defineProperty(A._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(A,"_self",{configurable:!1,enumerable:!1,writable:!1,value:E}),Object.defineProperty(A,"_source",{configurable:!1,enumerable:!1,writable:!1,value:O}),Object.freeze&&(Object.freeze(A.props),Object.freeze(A)),A};function ps(o,x,h,E,O){{var M,P={},A=null,q=null;h!==void 0&&(ct(h),A=""+h),cs(x)&&(ct(x.key),A=""+x.key),ds(x)&&(q=x.ref,ms(x,O));for(M in x)Fe.call(x,M)&&!is.hasOwnProperty(M)&&(P[M]=x[M]);if(o&&o.defaultProps){var U=o.defaultProps;for(M in U)P[M]===void 0&&(P[M]=U[M])}if(A||q){var Y=typeof o=="function"?o.displayName||o.name||"Unknown":o;A&&us(P,Y),q&&xs(P,Y)}return fs(o,A,q,O,E,mt.current,P)}}var qe=C.ReactCurrentOwner,ft=C.ReactDebugCurrentFrame;function we(o){if(o){var x=o._owner,h=Be(o.type,o._source,x?x.type:null);ft.setExtraStackFrame(h)}else ft.setExtraStackFrame(null)}var er;er=!1;function rr(o){return typeof o=="object"&&o!==null&&o.$$typeof===t}function pt(){{if(qe.current){var o=$(qe.current.type);if(o)return`
|
|
22
22
|
|
|
23
|
-
Check the render method of \``+
|
|
23
|
+
Check the render method of \``+o+"`."}return""}}function bs(o){return""}var bt={};function gs(o){{var x=pt();if(!x){var h=typeof o=="string"?o:o.displayName||o.name;h&&(x=`
|
|
24
24
|
|
|
25
|
-
Check the top-level render call using <`+
|
|
25
|
+
Check the top-level render call using <`+h+">.")}return x}}function gt(o,x){{if(!o._store||o._store.validated||o.key!=null)return;o._store.validated=!0;var h=gs(x);if(bt[h])return;bt[h]=!0;var E="";o&&o._owner&&o._owner!==qe.current&&(E=" It was passed a child from "+$(o._owner.type)+"."),we(o),S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',h,E),we(null)}}function ht(o,x){{if(typeof o!="object")return;if($e(o))for(var h=0;h<o.length;h++){var E=o[h];rr(E)&>(E,x)}else if(rr(o))o._store&&(o._store.validated=!0);else if(o){var O=T(o);if(typeof O=="function"&&O!==o.entries)for(var M=O.call(o),P;!(P=M.next()).done;)rr(P.value)&>(P.value,x)}}}function hs(o){{var x=o.type;if(x==null||typeof x=="string")return;var h;if(typeof x=="function")h=x.propTypes;else if(typeof x=="object"&&(x.$$typeof===m||x.$$typeof===f))h=x.propTypes;else return;if(h){var E=$(x);ss(h,o.props,"prop",E,o)}else if(x.PropTypes!==void 0&&!er){er=!0;var O=$(x);S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",O||"Unknown")}typeof x.getDefaultProps=="function"&&!x.getDefaultProps.isReactClassApproved&&S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ys(o){{for(var x=Object.keys(o.props),h=0;h<x.length;h++){var E=x[h];if(E!=="children"&&E!=="key"){we(o),S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",E),we(null);break}}o.ref!==null&&(we(o),S("Invalid attribute `ref` supplied to `React.Fragment`."),we(null))}}var yt={};function kt(o,x,h,E,O,M){{var P=le(o);if(!P){var A="";(o===void 0||typeof o=="object"&&o!==null&&Object.keys(o).length===0)&&(A+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var q=bs();q?A+=q:A+=pt();var U;o===null?U="null":$e(o)?U="array":o!==void 0&&o.$$typeof===t?(U="<"+($(o.type)||"Unknown")+" />",A=" Did you accidentally export a JSX literal instead of a component?"):U=typeof o,S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",U,A)}var Y=ps(o,x,h,O,M);if(Y==null)return Y;if(P){var se=x.children;if(se!==void 0)if(E)if($e(se)){for(var je=0;je<se.length;je++)ht(se[je],o);Object.freeze&&Object.freeze(se)}else S("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else ht(se,o)}if(Fe.call(x,"key")){var ye=$(o),te=Object.keys(x).filter(function(_s){return _s!=="key"}),tr=te.length>0?"{key: someKey, "+te.join(": ..., ")+": ...}":"{key: someKey}";if(!yt[ye+tr]){var Ns=te.length>0?"{"+te.join(": ..., ")+": ...}":"{}";S(`A props object containing a "key" prop is being spread into JSX:
|
|
26
26
|
let props = %s;
|
|
27
27
|
<%s {...props} />
|
|
28
28
|
React keys must be passed directly to JSX without using spread:
|
|
29
29
|
let props = %s;
|
|
30
|
-
<%s key={someKey} {...props} />`,
|
|
30
|
+
<%s key={someKey} {...props} />`,tr,ye,Ns,ye),yt[ye+tr]=!0}}return o===s?ys(Y):hs(Y),Y}}function ks(o,x,h){return kt(o,x,h,!0)}function vs(o,x,h){return kt(o,x,h,!1)}var ws=vs,js=ks;Ce.Fragment=s,Ce.jsx=ws,Ce.jsxs=js}()),Ce}process.env.NODE_ENV==="production"?Ke.exports=ma():Ke.exports=ua();var r=Ke.exports;const Sr=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Rr=sr,Er=(e,t)=>a=>{var s;if((t==null?void 0:t.variants)==null)return Rr(e,a==null?void 0:a.class,a==null?void 0:a.className);const{variants:n,defaultVariants:l}=t,i=Object.keys(n).map(c=>{const u=a==null?void 0:a[c],f=l==null?void 0:l[c];if(u===null)return null;const w=Sr(u)||Sr(f);return n[c][w]}),d=a&&Object.entries(a).reduce((c,u)=>{let[f,w]=u;return w===void 0||(c[f]=w),c},{}),m=t==null||(s=t.compoundVariants)===null||s===void 0?void 0:s.reduce((c,u)=>{let{class:f,className:w,...b}=u;return Object.entries(b).every(R=>{let[_,T]=R;return Array.isArray(T)?T.includes({...l,...d}[_]):{...l,...d}[_]===T})?[...c,f,w]:c},[]);return Rr(e,i,m,a==null?void 0:a.class,a==null?void 0:a.className)};/**
|
|
31
31
|
* @license lucide-react v0.475.0 - ISC
|
|
32
32
|
*
|
|
33
33
|
* This source code is licensed under the ISC license.
|
|
34
34
|
* See the LICENSE file in the root directory of this source tree.
|
|
35
|
-
*/const
|
|
35
|
+
*/const xa=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Tr=(...e)=>e.filter((t,a,s)=>!!t&&t.trim()!==""&&s.indexOf(t)===a).join(" ").trim();/**
|
|
36
36
|
* @license lucide-react v0.475.0 - ISC
|
|
37
37
|
*
|
|
38
38
|
* This source code is licensed under the ISC license.
|
|
39
39
|
* See the LICENSE file in the root directory of this source tree.
|
|
40
|
-
*/var
|
|
40
|
+
*/var fa={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
41
41
|
* @license lucide-react v0.475.0 - ISC
|
|
42
42
|
*
|
|
43
43
|
* This source code is licensed under the ISC license.
|
|
44
44
|
* See the LICENSE file in the root directory of this source tree.
|
|
45
|
-
*/const
|
|
45
|
+
*/const pa=k.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:a=2,absoluteStrokeWidth:s,className:n="",children:l,iconNode:i,...d},m)=>k.createElement("svg",{ref:m,...fa,width:t,height:t,stroke:e,strokeWidth:s?Number(a)*24/Number(t):a,className:Tr("lucide",n),...d},[...i.map(([c,u])=>k.createElement(c,u)),...Array.isArray(l)?l:[l]]));/**
|
|
46
46
|
* @license lucide-react v0.475.0 - ISC
|
|
47
47
|
*
|
|
48
48
|
* This source code is licensed under the ISC license.
|
|
49
49
|
* See the LICENSE file in the root directory of this source tree.
|
|
50
|
-
*/const
|
|
50
|
+
*/const D=(e,t)=>{const a=k.forwardRef(({className:s,...n},l)=>k.createElement(pa,{ref:l,iconNode:t,className:Tr(`lucide-${xa(e)}`,s),...n}));return a.displayName=`${e}`,a};/**
|
|
51
51
|
* @license lucide-react v0.475.0 - ISC
|
|
52
52
|
*
|
|
53
53
|
* This source code is licensed under the ISC license.
|
|
54
54
|
* See the LICENSE file in the root directory of this source tree.
|
|
55
|
-
*/const
|
|
55
|
+
*/const zr=D("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
|
|
56
56
|
* @license lucide-react v0.475.0 - ISC
|
|
57
57
|
*
|
|
58
58
|
* This source code is licensed under the ISC license.
|
|
59
59
|
* See the LICENSE file in the root directory of this source tree.
|
|
60
|
-
*/const
|
|
60
|
+
*/const ba=D("ArrowUpRight",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]);/**
|
|
61
61
|
* @license lucide-react v0.475.0 - ISC
|
|
62
62
|
*
|
|
63
63
|
* This source code is licensed under the ISC license.
|
|
64
64
|
* See the LICENSE file in the root directory of this source tree.
|
|
65
|
-
*/const
|
|
65
|
+
*/const Je=D("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);/**
|
|
66
66
|
* @license lucide-react v0.475.0 - ISC
|
|
67
67
|
*
|
|
68
68
|
* This source code is licensed under the ISC license.
|
|
69
69
|
* See the LICENSE file in the root directory of this source tree.
|
|
70
|
-
*/const
|
|
70
|
+
*/const Xe=D("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
|
|
71
71
|
* @license lucide-react v0.475.0 - ISC
|
|
72
72
|
*
|
|
73
73
|
* This source code is licensed under the ISC license.
|
|
74
74
|
* See the LICENSE file in the root directory of this source tree.
|
|
75
|
-
*/const
|
|
75
|
+
*/const De=D("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
|
76
76
|
* @license lucide-react v0.475.0 - ISC
|
|
77
77
|
*
|
|
78
78
|
* This source code is licensed under the ISC license.
|
|
79
79
|
* See the LICENSE file in the root directory of this source tree.
|
|
80
|
-
*/const
|
|
80
|
+
*/const ga=D("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
|
|
81
81
|
* @license lucide-react v0.475.0 - ISC
|
|
82
82
|
*
|
|
83
83
|
* This source code is licensed under the ISC license.
|
|
84
84
|
* See the LICENSE file in the root directory of this source tree.
|
|
85
|
-
*/const
|
|
85
|
+
*/const ha=D("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
|
|
86
86
|
* @license lucide-react v0.475.0 - ISC
|
|
87
87
|
*
|
|
88
88
|
* This source code is licensed under the ISC license.
|
|
89
89
|
* See the LICENSE file in the root directory of this source tree.
|
|
90
|
-
*/const
|
|
90
|
+
*/const ya=D("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
|
|
91
91
|
* @license lucide-react v0.475.0 - ISC
|
|
92
92
|
*
|
|
93
93
|
* This source code is licensed under the ISC license.
|
|
94
94
|
* See the LICENSE file in the root directory of this source tree.
|
|
95
|
-
*/const
|
|
95
|
+
*/const ka=D("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
|
|
96
96
|
* @license lucide-react v0.475.0 - ISC
|
|
97
97
|
*
|
|
98
98
|
* This source code is licensed under the ISC license.
|
|
99
99
|
* See the LICENSE file in the root directory of this source tree.
|
|
100
|
-
*/const
|
|
100
|
+
*/const Ar=D("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
|
|
101
101
|
* @license lucide-react v0.475.0 - ISC
|
|
102
102
|
*
|
|
103
103
|
* This source code is licensed under the ISC license.
|
|
104
104
|
* See the LICENSE file in the root directory of this source tree.
|
|
105
|
-
*/const
|
|
105
|
+
*/const va=D("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
|
|
106
106
|
* @license lucide-react v0.475.0 - ISC
|
|
107
107
|
*
|
|
108
108
|
* This source code is licensed under the ISC license.
|
|
109
109
|
* See the LICENSE file in the root directory of this source tree.
|
|
110
|
-
*/const
|
|
110
|
+
*/const wa=D("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]);/**
|
|
111
111
|
* @license lucide-react v0.475.0 - ISC
|
|
112
112
|
*
|
|
113
113
|
* This source code is licensed under the ISC license.
|
|
114
114
|
* See the LICENSE file in the root directory of this source tree.
|
|
115
|
-
*/const
|
|
115
|
+
*/const Se=D("Heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]]);/**
|
|
116
116
|
* @license lucide-react v0.475.0 - ISC
|
|
117
117
|
*
|
|
118
118
|
* This source code is licensed under the ISC license.
|
|
119
119
|
* See the LICENSE file in the root directory of this source tree.
|
|
120
|
-
*/const
|
|
120
|
+
*/const ja=D("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
|
|
121
121
|
* @license lucide-react v0.475.0 - ISC
|
|
122
122
|
*
|
|
123
123
|
* This source code is licensed under the ISC license.
|
|
124
124
|
* See the LICENSE file in the root directory of this source tree.
|
|
125
|
-
*/const
|
|
125
|
+
*/const Ze=D("LayoutGrid",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]]);/**
|
|
126
126
|
* @license lucide-react v0.475.0 - ISC
|
|
127
127
|
*
|
|
128
128
|
* This source code is licensed under the ISC license.
|
|
129
129
|
* See the LICENSE file in the root directory of this source tree.
|
|
130
|
-
*/const
|
|
130
|
+
*/const Le=D("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
|
|
131
131
|
* @license lucide-react v0.475.0 - ISC
|
|
132
132
|
*
|
|
133
133
|
* This source code is licensed under the ISC license.
|
|
134
134
|
* See the LICENSE file in the root directory of this source tree.
|
|
135
|
-
*/const
|
|
135
|
+
*/const Ve=D("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);/**
|
|
136
136
|
* @license lucide-react v0.475.0 - ISC
|
|
137
137
|
*
|
|
138
138
|
* This source code is licensed under the ISC license.
|
|
139
139
|
* See the LICENSE file in the root directory of this source tree.
|
|
140
|
-
*/const
|
|
140
|
+
*/const Na=D("Map",[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]]);/**
|
|
141
141
|
* @license lucide-react v0.475.0 - ISC
|
|
142
142
|
*
|
|
143
143
|
* This source code is licensed under the ISC license.
|
|
144
144
|
* See the LICENSE file in the root directory of this source tree.
|
|
145
|
-
*/const
|
|
145
|
+
*/const _a=D("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
|
|
146
146
|
* @license lucide-react v0.475.0 - ISC
|
|
147
147
|
*
|
|
148
148
|
* This source code is licensed under the ISC license.
|
|
149
149
|
* See the LICENSE file in the root directory of this source tree.
|
|
150
|
-
*/const
|
|
150
|
+
*/const Ca=D("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
|
|
151
151
|
* @license lucide-react v0.475.0 - ISC
|
|
152
152
|
*
|
|
153
153
|
* This source code is licensed under the ISC license.
|
|
154
154
|
* See the LICENSE file in the root directory of this source tree.
|
|
155
|
-
*/const be=W("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),ja=jr("inline-flex items-center justify-center font-bold transition-all select-none disabled:opacity-50 disabled:cursor-not-allowed disabled:pointer-events-none active:scale-[0.98]",{variants:{variant:{primary:"bg-primary-500 hover:bg-primary-600 active:bg-primary-700 text-white shadow-sm shadow-primary-500/20",secondary:"bg-gray-100 hover:bg-gray-200 dark:bg-dark-surface-light dark:hover:bg-gray-700 text-gray-700 dark:text-dark-text border border-gray-200 dark:border-dark-border",outline:"border border-gray-300 dark:border-dark-border text-gray-700 dark:text-dark-text hover:bg-gray-50 dark:hover:bg-dark-surface-light",ghost:"text-gray-600 dark:text-dark-text hover:bg-gray-100 dark:hover:bg-dark-surface-light",danger:"bg-red-600 hover:bg-red-700 active:bg-red-800 text-white shadow-sm shadow-red-600/20",success:"bg-emerald-600 hover:bg-emerald-700 active:bg-emerald-800 text-white shadow-sm shadow-emerald-600/20",purple:"bg-purple-600 hover:bg-purple-500 active:bg-purple-700 text-white shadow-sm shadow-purple-600/20",link:"text-primary-500 hover:text-primary-600 dark:text-primary-400 underline-offset-4 hover:underline p-0 h-auto font-semibold"},size:{sm:"h-8 px-3 text-xs gap-1.5 rounded-lg",md:"h-10 px-4 py-2 text-sm gap-2 rounded-xl",lg:"h-12 px-6 text-base gap-2.5 rounded-xl"},fullWidth:{true:"w-full",false:"w-auto"}},defaultVariants:{variant:"primary",size:"md",fullWidth:!1}}),zr=k.forwardRef(({className:e,variant:a,size:t,fullWidth:o,isLoading:n=!1,leftIcon:l,rightIcon:i,children:c,disabled:m,...d},f)=>r.jsxs("button",{ref:f,disabled:m||n,className:x(ja({variant:a,size:t,fullWidth:o}),e),...d,children:[n?r.jsx(De,{className:"w-4 h-4 animate-spin shrink-0"}):l&&r.jsx("span",{className:"shrink-0",children:l}),c&&r.jsx("span",{children:c}),!n&&i&&r.jsx("span",{className:"shrink-0",children:i})]}));zr.displayName="Button";const Ar=k.forwardRef(({className:e,label:a,error:t,helperText:o,startIcon:n,endIcon:l,clearable:i=!1,onClear:c,inputSize:m="md",fullWidth:d=!0,disabled:f,value:y,id:N,...v},C)=>{const S=N||(a?`input-${a.toLowerCase().replace(/\s+/g,"-")}`:void 0),T={sm:"h-8 px-2.5 text-xs rounded-lg",md:"h-10 px-3.5 text-sm rounded-xl",lg:"h-12 px-4 text-base rounded-xl"};return r.jsxs("div",{className:x("flex flex-col gap-1.5",d&&"w-full"),children:[a&&r.jsx("label",{htmlFor:S,className:"text-xs font-bold uppercase tracking-wider text-gray-700 dark:text-dark-text",children:a}),r.jsxs("div",{className:"relative flex items-center w-full",children:[n&&r.jsx("div",{className:"absolute left-3.5 flex items-center pointer-events-none text-gray-400 dark:text-dark-text-muted",children:n}),r.jsx("input",{id:S,ref:C,disabled:f,value:y,className:x("w-full bg-gray-50 dark:bg-dark-bg border border-gray-200 dark:border-dark-border text-gray-900 dark:text-dark-text placeholder-gray-400 dark:placeholder-gray-500 font-medium transition-all focus:outline-none focus:bg-white dark:focus:bg-dark-bg focus:border-primary-500 focus:ring-2 focus:ring-primary-500/20 disabled:bg-gray-100 dark:disabled:bg-dark-surface disabled:opacity-60 disabled:cursor-not-allowed",T[m],n&&"pl-10",(l||i&&y)&&"pr-10",t&&"border-red-500 focus:border-red-500 focus:ring-red-500/20 text-red-900 dark:text-red-300",e),...v}),i&&y&&!f&&r.jsx("button",{type:"button",onClick:c,className:"absolute right-3 p-1 rounded-md text-gray-400 hover:text-gray-600 dark:hover:text-gray-200 transition-colors",children:r.jsx(be,{className:"w-3.5 h-3.5"})}),!i&&l&&r.jsx("div",{className:"absolute right-3.5 flex items-center pointer-events-none text-gray-400 dark:text-dark-text-muted",children:l})]}),t&&r.jsx("span",{className:"text-xs font-semibold text-red-500",children:t}),!t&&o&&r.jsx("span",{className:"text-xs text-gray-500 dark:text-dark-text-muted",children:o})]})});Ar.displayName="Input";const Or=k.forwardRef(({className:e,label:a,error:t,helperText:o,options:n,selectSize:l="md",fullWidth:i=!0,disabled:c,children:m,id:d,...f},y)=>{const N=d||(a?`select-${a.toLowerCase().replace(/\s+/g,"-")}`:void 0),v={sm:"h-8 pl-2.5 pr-8 text-xs rounded-lg",md:"h-10 pl-3.5 pr-10 text-sm rounded-xl",lg:"h-12 pl-4 pr-12 text-base rounded-xl"};return r.jsxs("div",{className:x("flex flex-col gap-1.5",i&&"w-full"),children:[a&&r.jsx("label",{htmlFor:N,className:"text-xs font-bold uppercase tracking-wider text-gray-700 dark:text-dark-text",children:a}),r.jsxs("div",{className:"relative flex items-center w-full",children:[r.jsx("select",{id:N,ref:y,disabled:c,className:x("w-full appearance-none bg-gray-50 dark:bg-dark-bg border border-gray-200 dark:border-dark-border text-gray-900 dark:text-dark-text font-medium transition-all focus:outline-none focus:bg-white dark:focus:bg-dark-bg focus:border-primary-500 focus:ring-2 focus:ring-primary-500/20 disabled:bg-gray-100 dark:disabled:bg-dark-surface disabled:opacity-60 disabled:cursor-not-allowed cursor-pointer",v[l],t&&"border-red-500 focus:border-red-500 focus:ring-red-500/20 text-red-900 dark:text-red-300",e),...f,children:n?n.map(C=>r.jsx("option",{value:C.value,disabled:C.disabled,children:C.label},C.value)):m}),r.jsx("div",{className:"absolute right-3 pointer-events-none text-gray-400 dark:text-dark-text-muted",children:r.jsx(Rr,{className:"w-4 h-4"})})]}),t&&r.jsx("span",{className:"text-xs font-semibold text-red-500",children:t}),!t&&o&&r.jsx("span",{className:"text-xs text-gray-500 dark:text-dark-text-muted",children:o})]})});Or.displayName="Select";const Fr=k.forwardRef(({className:e,label:a,error:t,helperText:o,fullWidth:n=!0,disabled:l,rows:i=3,id:c,...m},d)=>{const f=c||(a?`textarea-${a.toLowerCase().replace(/\s+/g,"-")}`:void 0);return r.jsxs("div",{className:x("flex flex-col gap-1.5",n&&"w-full"),children:[a&&r.jsx("label",{htmlFor:f,className:"text-xs font-bold uppercase tracking-wider text-gray-700 dark:text-dark-text",children:a}),r.jsx("textarea",{id:f,ref:d,rows:i,disabled:l,className:x("w-full p-3 bg-gray-50 dark:bg-dark-bg border border-gray-200 dark:border-dark-border text-gray-900 dark:text-dark-text placeholder-gray-400 dark:placeholder-gray-500 text-sm font-medium rounded-xl transition-all focus:outline-none focus:bg-white dark:focus:bg-dark-bg focus:border-primary-500 focus:ring-2 focus:ring-primary-500/20 disabled:bg-gray-100 dark:disabled:bg-dark-surface disabled:opacity-60 disabled:cursor-not-allowed resize-y",t&&"border-red-500 focus:border-red-500 focus:ring-red-500/20 text-red-900 dark:text-red-300",e),...m}),t&&r.jsx("span",{className:"text-xs font-semibold text-red-500",children:t}),!t&&o&&r.jsx("span",{className:"text-xs text-gray-500 dark:text-dark-text-muted",children:o})]})});Fr.displayName="Textarea";const Ir=k.forwardRef(({className:e,label:a,description:t,checked:o,disabled:n,id:l,onChange:i,...c},m)=>{const d=l||(typeof a=="string"?`checkbox-${a.toLowerCase().replace(/\s+/g,"-")}`:void 0);return r.jsxs("label",{htmlFor:d,className:x("inline-flex items-start gap-2.5 select-none cursor-pointer group",n&&"opacity-60 cursor-not-allowed pointer-events-none",e),children:[r.jsxs("div",{className:"relative flex items-center justify-center shrink-0 mt-0.5",children:[r.jsx("input",{id:d,ref:m,type:"checkbox",checked:o,disabled:n,onChange:i,className:"peer sr-only",...c}),r.jsx("div",{className:x("w-5 h-5 rounded-md border border-gray-300 dark:border-dark-border bg-white dark:bg-dark-surface transition-all flex items-center justify-center peer-checked:bg-primary-500 peer-checked:border-primary-500 peer-focus-visible:ring-2 peer-focus-visible:ring-primary-500/30 group-hover:border-primary-500/60 shadow-xs",o&&"bg-primary-500 border-primary-500 text-white"),children:o&&r.jsx(Cr,{className:"w-3.5 h-3.5 stroke-[3] text-white"})})]}),(a||t)&&r.jsxs("div",{className:"flex flex-col",children:[a&&r.jsx("span",{className:"text-sm font-semibold text-gray-800 dark:text-dark-text leading-tight",children:a}),t&&r.jsx("span",{className:"text-xs text-gray-500 dark:text-dark-text-muted mt-0.5",children:t})]})]})});Ir.displayName="Checkbox";const Mr=k.forwardRef(({className:e,label:a,description:t,checked:o,disabled:n,switchSize:l="md",id:i,onChange:c,...m},d)=>{const f=i||(typeof a=="string"?`switch-${a.toLowerCase().replace(/\s+/g,"-")}`:void 0),y={sm:"w-8 h-4.5",md:"w-11 h-6",lg:"w-14 h-7.5"},N={sm:"w-3.5 h-3.5 translate-x-0.5 peer-checked:translate-x-4",md:"w-5 h-5 translate-x-0.5 peer-checked:translate-x-5.5",lg:"w-6.5 h-6.5 translate-x-0.5 peer-checked:translate-x-7"};return r.jsxs("label",{htmlFor:f,className:x("inline-flex items-center gap-3 select-none cursor-pointer group",n&&"opacity-60 cursor-not-allowed pointer-events-none",e),children:[r.jsxs("div",{className:"relative inline-flex items-center shrink-0",children:[r.jsx("input",{id:f,ref:d,type:"checkbox",role:"switch",checked:o,disabled:n,onChange:c,className:"peer sr-only",...m}),r.jsx("div",{className:x("rounded-full bg-gray-200 dark:bg-dark-surface-light peer-checked:bg-primary-500 transition-colors duration-200 ease-in-out border border-transparent shadow-inner",y[l])}),r.jsx("div",{className:x("absolute bg-white rounded-full shadow-md transform transition-transform duration-200 ease-in-out pointer-events-none",N[l])})]}),(a||t)&&r.jsxs("div",{className:"flex flex-col",children:[a&&r.jsx("span",{className:"text-sm font-semibold text-gray-800 dark:text-dark-text leading-tight",children:a}),t&&r.jsx("span",{className:"text-xs text-gray-500 dark:text-dark-text-muted mt-0.5",children:t})]})]})});Mr.displayName="Switch";const Na=jr("inline-flex items-center font-bold tracking-tight transition-colors select-none shrink-0",{variants:{variant:{success:"bg-emerald-50 dark:bg-emerald-950/30 text-emerald-700 dark:text-emerald-300 border border-emerald-200 dark:border-emerald-800/60",danger:"bg-red-50 dark:bg-red-950/30 text-red-700 dark:text-red-400 border border-red-200 dark:border-red-800/60",warning:"bg-amber-50 dark:bg-amber-950/30 text-amber-700 dark:text-amber-400 border border-amber-200 dark:border-amber-800/60",info:"bg-blue-50 dark:bg-blue-950/30 text-blue-700 dark:text-blue-300 border border-blue-200 dark:border-blue-800/60",purple:"bg-purple-50 dark:bg-purple-950/30 text-purple-700 dark:text-purple-300 border border-purple-200 dark:border-purple-800/60",neutral:"bg-gray-100 dark:bg-dark-surface-light text-gray-700 dark:text-dark-text-muted border border-gray-200 dark:border-dark-border",primary:"bg-primary-50 dark:bg-primary-950/30 text-primary-700 dark:text-primary-300 border border-primary-200 dark:border-primary-800/60",secondary:"bg-secondary-50 dark:bg-secondary-950/30 text-secondary-700 dark:text-secondary-300 border border-secondary-200 dark:border-secondary-800/60"},size:{sm:"text-[10px] px-2 py-0.5 gap-1",md:"text-xs px-2.5 py-1 gap-1.5"},shape:{pill:"rounded-full",rounded:"rounded-md"}},defaultVariants:{variant:"neutral",size:"sm",shape:"pill"}}),_a={success:"bg-emerald-500",danger:"bg-red-500",warning:"bg-amber-500",info:"bg-blue-500",purple:"bg-purple-500",neutral:"bg-gray-400",primary:"bg-primary-500",secondary:"bg-secondary-500"};function Dr({className:e,variant:a="neutral",size:t="sm",shape:o="pill",dot:n=!1,pulseDot:l=!1,children:i,...c}){const d=_a[a||"neutral"]||"bg-gray-400";return r.jsxs("span",{className:x(Na({variant:a,size:t,shape:o}),e),...c,children:[n&&r.jsxs("span",{className:"relative flex h-1.5 w-1.5 shrink-0",children:[l&&r.jsx("span",{className:x("animate-ping absolute inline-flex h-full w-full rounded-full opacity-75",d)}),r.jsx("span",{className:x("relative inline-flex rounded-full h-1.5 w-1.5",d)})]}),i]})}function Se({className:e,variant:a="text",width:t,height:o,style:n,...l}){const i={text:"h-4 rounded-md w-full",circular:"rounded-full",rectangular:"rounded-xl",card:"h-32 rounded-2xl w-full"};return r.jsx("div",{className:x("animate-pulse bg-gray-200/80 dark:bg-dark-surface-light/80",i[a],e),style:{width:typeof t=="number"?`${t}px`:t,height:typeof o=="number"?`${o}px`:o,...n},...l})}const Lr=({icon:e,variant:a="primary",size:t="md",rounded:o=!1,ariaLabel:n,disabled:l=!1,loading:i=!1,className:c="",...m})=>{const d="relative inline-flex items-center justify-center gap-2 border-none font-semibold cursor-pointer transition-all select-none -webkit-tap-highlight-color-transparent outline-none focus-visible:ring-3 focus-visible:ring-primary-300 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed disabled:pointer-events-none active:scale-95 duration-150",f={primary:"bg-gradient-to-br from-primary-500 to-primary-600 text-white shadow-md hover:from-primary-600 hover:to-primary-700 hover:shadow-lg hover:-translate-y-0.5",secondary:"bg-gray-100 dark:bg-dark-surface text-gray-700 dark:text-dark-text border border-gray-300 dark:border-dark-border hover:bg-gray-200 dark:hover:bg-dark-surface-light hover:-translate-y-0.5",ghost:"bg-transparent text-gray-600 dark:text-dark-text-muted hover:bg-gray-100 dark:hover:bg-dark-surface hover:text-gray-800 dark:hover:text-dark-text",danger:"bg-gradient-to-br from-red-500 to-red-600 text-white shadow-md hover:from-red-600 hover:to-red-700 hover:shadow-lg hover:-translate-y-0.5"},y=o?{sm:"w-8 h-8 rounded-full p-0 text-base",md:"w-10 h-10 rounded-full p-0 text-lg sm:w-11 sm:h-11",lg:"w-12 h-12 rounded-full p-0 text-xl sm:w-13 sm:h-13"}:{sm:"px-3 py-1.5 text-sm rounded-md min-h-[32px]",md:"px-4 py-2 text-base rounded-md min-h-[40px] sm:min-h-[44px]",lg:"px-6 py-3 text-lg rounded-lg min-h-[48px] sm:min-h-[52px]"};return r.jsx("button",{className:x(d,f[a],y[t],i&&"pointer-events-none",c),"aria-label":n,disabled:l||i,...m,children:i?r.jsx(De,{className:"w-4 h-4 animate-spin",role:"status","aria-hidden":"true"}):r.jsx("span",{className:"flex items-center justify-center leading-none",children:e})})},Vr=k.forwardRef(({className:e,hoverable:a=!1,padded:t=!0,children:o,...n},l)=>r.jsx("div",{ref:l,className:x("bg-white dark:bg-dark-surface border border-gray-150 dark:border-dark-border rounded-2xl shadow-xs transition-all duration-200 overflow-hidden",t&&"p-5 sm:p-6",a&&"hover:shadow-md hover:-translate-y-0.5 cursor-pointer",e),...n,children:o}));Vr.displayName="Card";const Br=k.forwardRef(({className:e,actions:a,children:t,...o},n)=>r.jsxs("div",{ref:n,className:x("flex items-center justify-between gap-4 mb-4",e),...o,children:[r.jsx("div",{className:"flex flex-col gap-1",children:t}),a&&r.jsx("div",{className:"flex items-center gap-2 shrink-0",children:a})]}));Br.displayName="CardHeader";const Wr=k.forwardRef(({className:e,children:a,...t},o)=>r.jsx("h3",{ref:o,className:x("text-base font-bold text-gray-900 dark:text-dark-text tracking-tight",e),...t,children:a}));Wr.displayName="CardTitle";const Gr=k.forwardRef(({className:e,children:a,...t},o)=>r.jsx("p",{ref:o,className:x("text-xs text-gray-500 dark:text-dark-text-muted font-medium",e),...t,children:a}));Gr.displayName="CardDescription";const Ur=k.forwardRef(({className:e,children:a,...t},o)=>r.jsx("div",{ref:o,className:x("space-y-4",e),...t,children:a}));Ur.displayName="CardContent";const Hr=k.forwardRef(({className:e,children:a,...t},o)=>r.jsx("div",{ref:o,className:x("flex items-center justify-end gap-3 pt-4 mt-4 border-t border-gray-100 dark:border-dark-border",e),...t,children:a}));Hr.displayName="CardFooter";const Yr={purple:{text:"text-purple-600 dark:text-purple-400",bg:"bg-purple-100 dark:bg-purple-900/30 text-purple-600 dark:text-purple-400",border:"border-purple-200/50 dark:border-purple-950/20"},blue:{text:"text-blue-600 dark:text-blue-400",bg:"bg-blue-100 dark:bg-blue-900/30 text-blue-600 dark:text-blue-400",border:"border-blue-200/50 dark:border-blue-950/20"},emerald:{text:"text-emerald-600 dark:text-emerald-400",bg:"bg-emerald-100 dark:bg-emerald-900/30 text-emerald-600 dark:text-emerald-400",border:"border-emerald-200/50 dark:border-emerald-950/20"},amber:{text:"text-amber-600 dark:text-amber-400",bg:"bg-amber-100 dark:bg-amber-900/30 text-amber-600 dark:text-amber-400",border:"border-amber-200/50 dark:border-amber-950/20"},red:{text:"text-red-600 dark:text-red-400",bg:"bg-red-100 dark:bg-red-900/30 text-red-600 dark:text-red-400",border:"border-red-200/50 dark:border-red-950/20"},cyan:{text:"text-cyan-600 dark:text-cyan-400",bg:"bg-cyan-100 dark:bg-cyan-900/30 text-cyan-600 dark:text-cyan-400",border:"border-cyan-200/50 dark:border-cyan-950/20"},pink:{text:"text-pink-600 dark:text-pink-400",bg:"bg-pink-100 dark:bg-pink-900/30 text-pink-600 dark:text-pink-400",border:"border-pink-200/50 dark:border-pink-950/20"},yellow:{text:"text-yellow-600 dark:text-yellow-400",bg:"bg-yellow-100 dark:bg-yellow-900/30 text-yellow-600 dark:text-yellow-400",border:"border-yellow-200/50 dark:border-yellow-950/20"}};function Ca({title:e,value:a,subtitle:t,icon:o,color:n="purple",isLoading:l=!1,animateValue:i=!0,className:c,onClick:m}){const[d,f]=k.useState(typeof a=="number"&&i?0:a),y=Yr[n]||Yr.purple;return k.useEffect(()=>{if(typeof a!="number"||!i){f(a);return}let N=!0,v=null;const C=1e3,S=T=>{if(!N)return;v||(v=T);const z=Math.min((T-v)/C,1),E=z*(2-z),X=Math.floor(E*a);f(X.toLocaleString("pt-BR")),z<1?window.requestAnimationFrame(S):f(a.toLocaleString("pt-BR"))};return window.requestAnimationFrame(S),()=>{N=!1}},[a,i]),l?r.jsxs("div",{className:"bg-white dark:bg-dark-surface p-5 rounded-2xl border border-gray-150 dark:border-dark-border shadow-xs",children:[r.jsxs("div",{className:"flex items-center justify-between mb-3",children:[r.jsx(Se,{width:"50%",height:14}),r.jsx(Se,{variant:"circular",width:40,height:40})]}),r.jsx(Se,{width:"40%",height:32,className:"my-2"}),r.jsx(Se,{width:"70%",height:12})]}):r.jsxs("div",{onClick:m,className:x("bg-white dark:bg-dark-surface p-5 rounded-2xl border border-gray-150 dark:border-dark-border shadow-xs hover:shadow-sm transition-all",m&&"cursor-pointer hover:-translate-y-0.5",c),children:[r.jsxs("div",{className:"flex items-center justify-between mb-3",children:[r.jsx("span",{className:x("text-xs font-bold uppercase tracking-wider",y.text),children:e}),o&&r.jsx("div",{className:x("w-10 h-10 rounded-xl flex items-center justify-center shrink-0",y.bg),children:o})]}),r.jsx("div",{className:"text-3xl font-black text-gray-900 dark:text-dark-text tracking-tight",children:typeof a=="number"&&!i?a.toLocaleString("pt-BR"):d}),t&&r.jsx("div",{className:"text-xs text-gray-500 dark:text-dark-text-muted font-medium mt-1.5 flex items-center gap-1",children:t})]})}function Ra({variant:e="info",title:a,children:t,icon:o,onClose:n,className:l}){const c={info:{container:"bg-blue-50 dark:bg-blue-950/30 border-blue-200 dark:border-blue-800/60 text-blue-900 dark:text-blue-200",icon:r.jsx(ha,{className:"w-5 h-5 text-blue-600 dark:text-blue-400 shrink-0"})},success:{container:"bg-emerald-50 dark:bg-emerald-950/30 border-emerald-200 dark:border-emerald-800/60 text-emerald-900 dark:text-emerald-200",icon:r.jsx(xa,{className:"w-5 h-5 text-emerald-600 dark:text-emerald-400 shrink-0"})},warning:{container:"bg-amber-50 dark:bg-amber-950/30 border-amber-200 dark:border-amber-800/60 text-amber-900 dark:text-amber-200",icon:r.jsx(Pr,{className:"w-5 h-5 text-amber-600 dark:text-amber-400 shrink-0"})},danger:{container:"bg-red-50 dark:bg-red-950/30 border-red-200 dark:border-red-800/60 text-red-900 dark:text-red-200",icon:r.jsx(fa,{className:"w-5 h-5 text-red-600 dark:text-red-400 shrink-0"})}}[e];return r.jsxs("div",{role:"alert",className:x("p-4 rounded-xl border flex items-start gap-3 relative transition-all",c.container,l),children:[r.jsx("div",{className:"mt-0.5",children:o||c.icon}),r.jsxs("div",{className:"flex-1 text-sm",children:[a&&r.jsx("h5",{className:"font-bold text-sm mb-1",children:a}),r.jsx("div",{className:"font-medium text-xs sm:text-sm leading-relaxed",children:t})]}),n&&r.jsx("button",{onClick:n,className:"p-1 rounded-md text-gray-400 hover:text-gray-600 dark:hover:text-gray-200 transition-colors",children:r.jsx(be,{className:"w-4 h-4"})})]})}const Kr=k.forwardRef(({className:e,bordered:a=!0,children:t,...o},n)=>r.jsx("div",{ref:n,className:x("w-full overflow-x-auto rounded-2xl bg-white dark:bg-dark-surface shadow-xs",a&&"border border-gray-150 dark:border-dark-border",e),...o,children:t}));Kr.displayName="TableContainer";const Jr=k.forwardRef(({className:e,...a},t)=>r.jsx("table",{ref:t,className:x("w-full text-left text-sm border-collapse",e),...a}));Jr.displayName="Table";const Xr=k.forwardRef(({className:e,...a},t)=>r.jsx("thead",{ref:t,className:x("bg-gray-50/80 dark:bg-dark-surface-light/80 border-b border-gray-150 dark:border-dark-border text-gray-600 dark:text-dark-text-muted text-xs uppercase font-bold tracking-wider",e),...a}));Xr.displayName="TableHeader";const Zr=k.forwardRef(({className:e,...a},t)=>r.jsx("tbody",{ref:t,className:x("divide-y divide-gray-100 dark:divide-dark-border",e),...a}));Zr.displayName="TableBody";const Qr=k.forwardRef(({className:e,...a},t)=>r.jsx("tr",{ref:t,className:x("transition-colors hover:bg-gray-50/60 dark:hover:bg-dark-surface-light/40 data-[state=selected]:bg-gray-50",e),...a}));Qr.displayName="TableRow";const $r=k.forwardRef(({className:e,...a},t)=>r.jsx("th",{ref:t,className:x("px-6 py-4 text-left font-bold text-gray-600 dark:text-dark-text-muted select-none text-xs uppercase tracking-wider",e),...a}));$r.displayName="TableHead";const qr=k.forwardRef(({className:e,...a},t)=>r.jsx("td",{ref:t,className:x("px-6 py-4 align-middle text-gray-800 dark:text-dark-text text-sm font-medium",e),...a}));qr.displayName="TableCell";function Sa({title:e="Filtros",hasActiveFilters:a=!1,activeFiltersCount:t,onClearFilters:o,children:n,className:l}){return r.jsxs("div",{className:x("bg-white dark:bg-dark-surface p-4 sm:p-5 rounded-2xl border border-gray-150 dark:border-dark-border shadow-xs space-y-3",l),children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("div",{className:"p-1.5 rounded-lg bg-purple-50 dark:bg-purple-950/40 text-purple-600 dark:text-purple-400",children:r.jsx(ga,{className:"w-4 h-4"})}),r.jsx("span",{className:"text-xs font-bold uppercase tracking-wider text-gray-700 dark:text-dark-text",children:e}),a&&r.jsx("span",{className:"px-2 py-0.5 rounded-full text-[10px] font-extrabold bg-purple-100 dark:bg-purple-900/40 text-purple-700 dark:text-purple-300",children:t!==void 0?`${t} ${t===1?"ativo":"ativos"}`:"Filtro Ativo"})]}),a&&o&&r.jsxs("button",{type:"button",onClick:o,className:"inline-flex items-center gap-1 text-xs font-bold text-red-500 hover:text-red-600 dark:hover:text-red-400 transition-colors cursor-pointer",children:[r.jsx(be,{className:"w-3.5 h-3.5"}),"Limpar Filtros"]})]}),r.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-3 pt-1",children:n})]})}function Ta({title:e,description:a,badge:t,actions:o,breadcrumb:n,className:l}){return r.jsxs("div",{className:x("flex flex-col sm:flex-row sm:items-center justify-between gap-4 select-none",l),children:[r.jsxs("div",{className:"flex flex-col gap-1",children:[n&&r.jsx("div",{className:"text-xs text-gray-500 mb-0.5",children:n}),r.jsxs("div",{className:"flex items-center gap-3 flex-wrap",children:[r.jsx("h1",{className:"text-2xl font-bold text-gray-900 dark:text-dark-text tracking-tight",children:e}),t&&r.jsx("div",{children:t})]}),a&&r.jsx("div",{className:"text-sm text-gray-500 dark:text-dark-text-muted mt-0.5 font-medium",children:a})]}),o&&r.jsx("div",{className:"flex items-center gap-2.5 flex-wrap shrink-0",children:o})]})}const Ea=({variant:e="spinner",size:a="md",text:t,fullScreen:o=!1})=>{const n={sm:"w-6 h-6",md:"w-10 h-10",lg:"w-16 h-16"},l={sm:"text-xs",md:"text-sm font-medium",lg:"text-base font-semibold"};if(e==="skeleton")return r.jsxs("div",{className:x("w-full bg-white dark:bg-dark-surface border border-gray-150 dark:border-dark-border rounded-xl overflow-hidden shadow-sm animate-pulse",a==="sm"?"max-w-xs":a==="md"?"max-w-sm":"max-w-md"),children:[r.jsx("div",{className:"aspect-video bg-gray-200 dark:bg-dark-surface-light w-full"}),r.jsxs("div",{className:"p-4 space-y-3",children:[r.jsx("div",{className:"h-4 bg-gray-200 dark:bg-dark-surface-light rounded w-3/4"}),r.jsx("div",{className:"h-3 bg-gray-200 dark:bg-dark-surface-light rounded w-1/2"}),r.jsx("div",{className:"h-3 bg-gray-200 dark:bg-dark-surface-light rounded w-5/6"})]})]});const i=r.jsxs("div",{className:"flex flex-col items-center justify-center space-y-3 p-4",children:[r.jsx(De,{className:x("text-primary-500 animate-spin",n[a])}),t&&r.jsx("p",{className:x("text-gray-500 dark:text-dark-text-muted select-none",l[a]),children:t})]});return o?r.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-white/80 dark:bg-dark-bg/80 backdrop-blur-sm",children:i}):r.jsx("div",{className:"flex items-center justify-center w-full",children:i})};function et({isOpen:e,onClose:a,title:t,children:o,footer:n,size:l="md",closeOnOutsideClick:i=!1}){if(k.useEffect(()=>(e?document.body.style.overflow="hidden":document.body.style.overflow="unset",()=>{document.body.style.overflow="unset"}),[e]),!e)return null;const c={sm:"max-w-md",md:"max-w-lg",lg:"max-w-2xl",xl:"max-w-4xl"};return r.jsxs("div",{className:"fixed inset-0 z-[100] flex items-center justify-center p-4 bg-black/50 backdrop-blur-sm animate-[fadeIn_0.2s_ease-out]",children:[r.jsx("div",{className:"fixed inset-0",onClick:i?a:void 0}),r.jsxs("div",{className:x("relative w-full bg-white dark:bg-dark-surface border border-gray-150 dark:border-dark-border rounded-xl shadow-xl overflow-hidden flex flex-col max-h-[90vh] z-10 animate-[slideUp_0.2s_ease-out]",c[l]),children:[r.jsxs("div",{className:"flex justify-between items-center px-6 py-4 border-b border-gray-100 dark:border-dark-border",children:[r.jsx("h2",{className:"text-lg font-bold text-gray-900 dark:text-dark-text",children:t}),r.jsx("button",{className:"text-gray-400 hover:text-gray-600 dark:hover:text-gray-200 transition-colors p-1.5 hover:bg-gray-100 dark:hover:bg-dark-surface-light rounded-lg cursor-pointer",onClick:a,children:r.jsx(be,{className:"w-5 h-5"})})]}),r.jsx("div",{className:"p-6 overflow-y-auto flex-1 text-sm text-gray-700 dark:text-dark-text-muted",children:o}),n&&r.jsx("div",{className:"flex justify-end items-center gap-3 px-6 py-4 border-t border-gray-100 dark:border-dark-border bg-gray-50/50 dark:bg-dark-surface/50",children:n})]})]})}function Pa({isOpen:e,onClose:a,onConfirm:t,title:o,message:n,confirmText:l="Confirmar",cancelText:i="Cancelar",isLoading:c=!1}){return r.jsx(et,{isOpen:e,onClose:a,title:o,size:"sm",footer:r.jsxs(r.Fragment,{children:[r.jsx("button",{type:"button",onClick:a,disabled:c,className:"px-4 py-2 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded-lg hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-500 disabled:opacity-50 disabled:cursor-not-allowed dark:bg-dark-surface dark:text-dark-text dark:border-dark-border dark:hover:bg-dark-surface-light cursor-pointer",children:i}),r.jsxs("button",{type:"button",onClick:t,disabled:c,className:"px-4 py-2 text-sm font-medium text-white bg-red-600 border border-transparent rounded-lg hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 disabled:opacity-50 disabled:cursor-not-allowed flex items-center gap-2 cursor-pointer",children:[c&&r.jsx("div",{className:"w-4 h-4 border-2 border-white border-t-transparent rounded-full animate-spin"}),c?"Aguarde...":l]})]}),children:r.jsxs("div",{className:"flex items-start gap-4",children:[r.jsx("div",{className:"flex-shrink-0 w-10 h-10 rounded-full bg-red-100 dark:bg-red-900/30 flex items-center justify-center text-red-600 dark:text-red-400",children:r.jsx(Pr,{className:"w-5 h-5"})}),r.jsx("div",{className:"flex-1 text-sm text-gray-600 dark:text-dark-text-muted",children:n})]})})}const za=({icon:e,title:a,description:t,action:o,variant:n="default"})=>{const l={default:"text-primary-500 bg-primary-50 dark:bg-primary-950/20",error:"text-red-500 bg-red-50 dark:bg-red-950/20",search:"text-secondary-500 bg-secondary-50 dark:bg-secondary-950/20"};return r.jsxs("div",{className:x("flex flex-col items-center justify-center p-8 sm:p-12 text-center min-h-[300px] sm:min-h-[400px] animate-fadeIn group"),children:[e&&r.jsx("div",{className:x("flex items-center justify-center w-16 h-16 sm:w-20 sm:h-20 mb-6 text-4xl sm:text-[48px] rounded-full transition-all duration-200 group-hover:scale-105 group-hover:bg-opacity-80",l[n]),children:e}),r.jsxs("div",{className:"max-w-[500px] mb-6 space-y-2",children:[r.jsx("h3",{className:"text-xl sm:text-2xl font-bold font-heading text-gray-900 dark:text-dark-text leading-tight",children:a}),t&&r.jsx("p",{className:"text-sm sm:text-base text-gray-600 dark:text-dark-text-muted leading-relaxed",children:t})]}),o&&r.jsx("button",{className:"inline-flex items-center justify-center px-6 py-3 font-semibold text-white bg-gradient-to-br from-primary-500 to-primary-600 rounded-lg shadow-md transition-all duration-200 cursor-pointer hover:from-primary-600 hover:to-primary-700 hover:shadow-lg hover:-translate-y-0.5 active:scale-95 active:translate-y-0 min-h-[44px]",onClick:o.onClick,children:o.label})]})},Aa=({onSearch:e,debounceMs:a=300,placeholder:t="Pesquisar vídeos...",initialValue:o="",showClear:n=!0,autoFocus:l=!1,size:i="md",className:c="",...m})=>{const[d,f]=k.useState(o),[y,N]=k.useState(!1),v=k.useRef(null),C=k.useRef();k.useEffect(()=>{l&&v.current&&v.current.focus()},[l]),k.useEffect(()=>(C.current&&clearTimeout(C.current),C.current=setTimeout(()=>{e(d)},a),()=>{C.current&&clearTimeout(C.current)}),[d,e,a]);const S=G=>{f(G.target.value)},T=()=>{var G;f(""),(G=v.current)==null||G.focus()},z=G=>{G.key==="Escape"&&T()},E={sm:"h-9 text-sm rounded-lg",md:"h-11 sm:h-12 text-base rounded-xl",lg:"h-13 sm:h-14 text-lg rounded-2xl"},X={sm:"w-4 h-4 ml-3",md:"w-5 h-5 ml-4",lg:"w-6 h-6 ml-5"};return r.jsxs("div",{className:x("relative flex items-center w-full max-w-[600px] bg-white dark:bg-dark-surface border border-gray-300 dark:border-dark-border shadow-sm transition-all duration-150 overflow-hidden",y?"border-primary-500 ring-3 ring-primary-100 dark:ring-primary-900/30":"hover:border-gray-400 dark:hover:border-dark-border/80 hover:shadow",E[i],c),children:[r.jsx(va,{className:x("text-gray-400 dark:text-dark-text-muted flex-shrink-0",X[i]),"aria-hidden":"true"}),r.jsx("input",{ref:v,type:"text",className:"flex-1 h-full px-3 py-2 border-none bg-transparent font-sans text-gray-900 dark:text-dark-text outline-none placeholder-gray-400 dark:placeholder-dark-text-muted text-inherit",value:d,onChange:S,onKeyDown:z,onFocus:()=>N(!0),onBlur:()=>N(!1),placeholder:t,"aria-label":"Campo de busca",...m}),n&&d&&r.jsx("button",{type:"button",className:x("flex items-center justify-center mr-3 bg-gray-150 dark:bg-dark-surface-light border-none rounded-full cursor-pointer text-gray-500 dark:text-dark-text-muted transition-all duration-150 flex-shrink-0 hover:bg-gray-200 dark:hover:bg-dark-surface-light/80 hover:scale-105 active:scale-95",i==="sm"?"w-5 h-5 p-0.5":i==="md"?"w-6 h-6 p-1":"w-7 h-7 p-1.5"),onClick:T,"aria-label":"Limpar busca",children:r.jsx(be,{className:"w-full h-full"})})]})},Oa=({onDateSelect:e,label:a="Selecione uma data",maxDate:t,minDate:o,initialDate:n})=>{const[l,i]=k.useState(n||"");k.useEffect(()=>{i(n||"")},[n]);const c=m=>{const d=m.target.value;i(d),e(d)};return r.jsxs("div",{className:"flex flex-col gap-2.5 w-full max-w-[400px] md:max-w-full",children:[r.jsx("label",{htmlFor:"date-picker",className:"font-sans text-xs font-semibold text-gray-700 dark:text-dark-text-muted uppercase tracking-wider",children:a}),r.jsx("input",{id:"date-picker",type:"date",value:l,onChange:c,max:t,min:o,className:x("w-full px-4 py-3 font-sans text-base font-medium border-2 border-gray-300 dark:border-dark-border rounded-xl bg-white dark:bg-dark-surface text-gray-900 dark:text-dark-text shadow-sm cursor-pointer outline-none transition-all duration-200","hover:border-primary-400 hover:shadow-md focus:border-primary-500 focus:ring-3 focus:ring-primary-100 dark:focus:ring-primary-900/30","webkit-calendar-picker-indicator:cursor-pointer webkit-calendar-picker-indicator:p-1 webkit-calendar-picker-indicator:rounded-md webkit-calendar-picker-indicator:transition-colors hover:webkit-calendar-picker-indicator:bg-primary-50")})]})},Fa=({onDateChange:e,initialStartDate:a,initialEndDate:t,allowRange:o=!0,placeholder:n="Selecionar data"})=>{const[l,i]=k.useState(a||""),[c,m]=k.useState(t||""),[d,f]=k.useState(null),[y,N]=k.useState(!1),v=()=>new Date().toISOString().split("T")[0],C=()=>{const O=new Date;return O.setDate(O.getDate()-1),O.toISOString().split("T")[0]},S=O=>{const I=new Date;return I.setDate(I.getDate()-O),I.toISOString().split("T")[0]},T=O=>{switch(f(O),O){case"today":i(v()),m(v()),e(v(),v());break;case"yesterday":i(C()),m(C()),e(C(),C());break;case"last7days":i(S(7)),m(v()),e(S(7),v());break;case"last30days":i(S(30)),m(v()),e(S(30),v());break;case"custom":f("custom");break}O!=="custom"&&N(!1)},z=O=>{const I=O.target.value;i(I),f("custom"),e(I,o?c:null)},E=O=>{const I=O.target.value;m(I),f("custom"),e(l,I)},X=()=>{i(""),m(""),f(null),e(null,null)},G=()=>l?d&&d!=="custom"?{today:"Hoje",yesterday:"Ontem",last7days:"Últimos 7 dias",last30days:"Últimos 30 dias",custom:"Personalizado"}[d]:o&&c&&l!==c?`${Z(l)} - ${Z(c)}`:Z(l):n,Z=O=>{const[I,b,D]=O.split("-");return`${D}/${b}/${I}`};return r.jsxs("div",{className:"relative inline-block w-full sm:w-auto",children:[r.jsxs("button",{type:"button",className:x("w-full sm:w-auto min-w-[200px] h-11 sm:h-12 px-4 flex items-center gap-2.5 bg-white dark:bg-dark-surface border-2 border-gray-300 dark:border-dark-border rounded-xl font-sans font-medium text-base text-gray-700 dark:text-dark-text cursor-pointer transition-all duration-200 outline-none select-none hover:border-gray-400 dark:hover:border-dark-border/80 hover:shadow-sm focus-visible:ring-3 focus-visible:ring-primary-300",y&&"border-primary-500 ring-3 ring-primary-100 dark:ring-primary-900/30"),onClick:()=>N(!y),"aria-label":"Selecionar data","aria-expanded":y,children:[r.jsx(_r,{className:"w-5 h-5 text-gray-400 dark:text-dark-text-muted flex-shrink-0"}),r.jsx("span",{className:"flex-1 text-left whitespace-nowrap overflow-hidden text-ellipsis",children:G()}),l||c?r.jsx("button",{type:"button",className:"flex items-center justify-center w-5 h-5 bg-gray-200 dark:bg-dark-surface-light border-none rounded-full text-[10px] text-gray-600 dark:text-dark-text-muted transition-all duration-150 flex-shrink-0 hover:bg-gray-300 dark:hover:bg-dark-surface hover:scale-105 active:scale-95",onClick:O=>{O.stopPropagation(),X()},"aria-label":"Limpar seleção",children:r.jsx(be,{className:"w-3 h-3"})}):r.jsx(Rr,{className:"w-4 h-4 text-gray-400 dark:text-dark-text-muted flex-shrink-0"})]}),y&&r.jsxs(r.Fragment,{children:[r.jsx("div",{className:"fixed inset-0 z-40 sm:hidden",onClick:()=>N(!1)}),r.jsxs("div",{className:x("absolute top-[calc(100%+8px)] left-0 sm:left-auto z-50 min-w-[280px] bg-white dark:bg-dark-surface border border-gray-300 dark:border-dark-border rounded-2xl shadow-xl animate-slideUp sm:animate-slideDown","w-[calc(100vw-32px)] max-w-[340px] left-1/2 -translate-x-1/2 sm:left-0 sm:translate-x-0"),children:[r.jsxs("div",{className:"flex flex-col gap-1 p-3",children:[r.jsx("button",{type:"button",className:x("w-full px-3 py-2 text-left font-sans text-sm font-medium text-gray-700 dark:text-dark-text rounded-xl border-none bg-transparent cursor-pointer transition-all hover:bg-gray-150 dark:hover:bg-dark-surface-light min-h-[40px]",d==="today"&&"bg-primary-50 dark:bg-primary-950/20 text-primary-700 dark:text-primary-400 font-semibold"),onClick:()=>T("today"),children:"Hoje"}),r.jsx("button",{type:"button",className:x("w-full px-3 py-2 text-left font-sans text-sm font-medium text-gray-700 dark:text-dark-text rounded-xl border-none bg-transparent cursor-pointer transition-all hover:bg-gray-150 dark:hover:bg-dark-surface-light min-h-[40px]",d==="yesterday"&&"bg-primary-50 dark:bg-primary-950/20 text-primary-700 dark:text-primary-400 font-semibold"),onClick:()=>T("yesterday"),children:"Ontem"}),r.jsx("button",{type:"button",className:x("w-full px-3 py-2 text-left font-sans text-sm font-medium text-gray-700 dark:text-dark-text rounded-xl border-none bg-transparent cursor-pointer transition-all hover:bg-gray-150 dark:hover:bg-dark-surface-light min-h-[40px]",d==="last7days"&&"bg-primary-50 dark:bg-primary-950/20 text-primary-700 dark:text-primary-400 font-semibold"),onClick:()=>T("last7days"),children:"Últimos 7 dias"}),r.jsx("button",{type:"button",className:x("w-full px-3 py-2 text-left font-sans text-sm font-medium text-gray-700 dark:text-dark-text rounded-xl border-none bg-transparent cursor-pointer transition-all hover:bg-gray-150 dark:hover:bg-dark-surface-light min-h-[40px]",d==="last30days"&&"bg-primary-50 dark:bg-primary-950/20 text-primary-700 dark:text-primary-400 font-semibold"),onClick:()=>T("last30days"),children:"Últimos 30 dias"})]}),r.jsx("div",{className:"h-[1px] mx-3 my-1 bg-gray-200 dark:bg-dark-border"}),r.jsxs("div",{className:"flex flex-col gap-3.5 p-4 bg-gray-50/50 dark:bg-dark-bg/20 rounded-b-2xl",children:[r.jsxs("label",{className:"flex flex-col gap-1.5 font-sans text-xs font-semibold text-gray-500 dark:text-dark-text-muted uppercase tracking-wider",children:["Data inicial",r.jsx("input",{type:"date",className:"w-full px-3 py-2 bg-white dark:bg-dark-surface border border-gray-300 dark:border-dark-border rounded-lg font-sans text-sm text-gray-900 dark:text-dark-text cursor-pointer outline-none transition-colors hover:border-gray-400 focus:border-primary-500",value:l,onChange:z,max:v()})]}),o&&r.jsxs("label",{className:"flex flex-col gap-1.5 font-sans text-xs font-semibold text-gray-500 dark:text-dark-text-muted uppercase tracking-wider",children:["Data final",r.jsx("input",{type:"date",className:"w-full px-3 py-2 bg-white dark:bg-dark-surface border border-gray-300 dark:border-dark-border rounded-lg font-sans text-sm text-gray-900 dark:text-dark-text cursor-pointer outline-none transition-colors hover:border-gray-400 focus:border-primary-500",value:c,onChange:E,min:l,max:v()})]})]})]})]})]})};function Ia({tabs:e,activeTab:a,onChange:t,className:o}){return r.jsx("div",{className:x("border-b border-gray-150 dark:border-dark-border/40 flex gap-2 overflow-x-auto select-none",o),children:e.map(n=>{const l=n.id===a;return r.jsxs("button",{type:"button",onClick:()=>t(n.id),className:x("flex items-center gap-2 px-4 py-3 text-xs font-bold uppercase tracking-wider border-b-2 transition-all cursor-pointer whitespace-nowrap outline-none",l?"border-primary-500 text-primary-500 font-extrabold":"border-transparent text-gray-500 hover:text-gray-700 dark:text-dark-text-muted dark:hover:text-dark-text"),children:[n.icon,n.label]},n.id)})})}const rt=({videoUrl:e,fileName:a,downloadCount:t=0,onDownloadIncrement:o,onDownloadComplete:n,onDownloadChange:l,onError:i,size:c="md",iconOnly:m=!1,useLucide:d=!0})=>{const[f,y]=k.useState("idle"),[N,v]=k.useState(0),[C,S]=k.useState(t),T=async()=>{var I;try{y("downloading"),v(0);const b=await fetch(e);if(!b.ok)throw new Error("Falha ao baixar o vídeo");const D=b.headers.get("content-length");if(!D)throw new Error("Não foi possível obter o tamanho do arquivo");const le=(I=b.body)==null?void 0:I.getReader();if(!le)throw new Error("Não foi possível ler o stream do vídeo");let ie=0;const ae=[],$=parseInt(D,10);for(;;){const{done:re,value:de}=await le.read();if(re)break;ae.push(de),ie+=de.length,v(Math.round(ie/$*100))}v(100);const L=new Blob(ae),H=window.URL.createObjectURL(L),V=document.createElement("a");V.href=H,V.download=a,document.body.appendChild(V),V.click(),document.body.removeChild(V),window.URL.revokeObjectURL(H),y("success");const ee=C+1;if(S(ee),l==null||l(ee),setTimeout(()=>{y("idle"),v(0)},2e3),o)try{const re=await o();re!==ee&&(S(re),l==null||l(re))}catch(re){i==null||i(re)}n==null||n()}catch(b){y("error"),i==null||i(b),setTimeout(()=>{y("idle"),v(0)},2e3)}},z={sm:16,md:20,lg:24},E=()=>{if(d)switch(f){case"downloading":return r.jsx(De,{className:"animate-spin text-primary-500",size:z[c]});case"success":return r.jsx(Cr,{className:"text-green-600 dark:text-green-400",size:z[c]});case"error":return r.jsx(be,{className:"text-red-600 dark:text-red-400",size:z[c]});default:return r.jsx(Sr,{className:"text-gray-600 dark:text-dark-text-muted group-hover:text-primary-500 transition-colors",size:z[c]})}switch(f){case"downloading":return"⏳";case"success":return"✓";case"error":return"✕";default:return"⬇️"}},X=()=>{switch(f){case"downloading":return`${N}%`;case"success":return"Baixado!";case"error":return"Erro";default:return m?"":"Download"}},G={idle:"bg-gray-100 dark:bg-dark-surface hover:bg-gray-200 dark:hover:bg-dark-surface-light border-gray-300 dark:border-dark-border text-gray-700 dark:text-dark-text hover:-translate-y-0.5",downloading:"bg-primary-50 dark:bg-primary-900/20 border-primary-300 dark:border-primary-800 text-primary-700 dark:text-primary-400",success:"bg-green-50 dark:bg-green-950/20 border-green-300 dark:border-green-800 text-green-700 dark:text-green-400 animate-successPulse",error:"bg-red-50 dark:bg-red-950/20 border-red-300 dark:border-red-800 text-red-700 dark:text-red-400 animate-shake"},Z={sm:"px-2 py-1 text-sm min-h-[32px] rounded-md",md:"px-3 py-2 text-base min-h-[40px] sm:min-h-[44px] rounded-md",lg:"px-4 py-3 text-lg min-h-[48px] sm:min-h-[52px] rounded-lg"},O={sm:"min-w-[16px] h-4 text-[10px] px-1",md:"min-w-[20px] h-5 text-xs px-1.5",lg:"min-w-[22px] h-[22px] text-xs px-2"};return r.jsxs("button",{className:x("relative inline-flex items-center gap-2 font-semibold cursor-pointer transition-all duration-200 select-none border overflow-hidden focus-visible:ring-3 focus-visible:ring-primary-300 focus-visible:ring-offset-2 disabled:opacity-75 disabled:cursor-not-allowed",G[f],Z[c]),onClick:T,disabled:f==="downloading","aria-label":`Baixar vídeo ${a}`,children:[r.jsx("span",{className:"flex items-center justify-center leading-none flex-shrink-0",children:E()}),!m&&r.jsxs("span",{className:"flex items-center gap-1.5 z-10",children:[r.jsx("span",{className:"whitespace-nowrap",children:X()}),C>0&&r.jsx("span",{className:x("inline-flex items-center justify-center rounded-full bg-primary-500 text-white font-bold",O[c]),children:C})]}),f==="downloading"&&r.jsx("div",{className:"absolute bottom-0 left-0 right-0 h-[3px] bg-primary-100 dark:bg-primary-900 overflow-hidden",children:r.jsx("div",{className:"h-full bg-gradient-to-r from-primary-500 to-primary-600 transition-all duration-250 ease-out",style:{width:`${N}%`}})})]})},tt=({initialLikes:e=0,onLike:a,onLikeChange:t,size:o="md",iconOnly:n=!1,disabled:l=!1,useLucide:i=!0})=>{const[c,m]=k.useState(e),[d,f]=k.useState(!1),y=async()=>{if(l||d)return;const T=c+1;if(f(!0),m(T),t==null||t(T),a)try{const z=await a();m(z),z!==T&&(t==null||t(z))}catch{m(c),t==null||t(c)}finally{setTimeout(()=>f(!1),600)}else setTimeout(()=>f(!1),600)},N={sm:"px-2 py-1 text-sm min-h-[32px]",md:"px-3 py-2 text-base min-h-[40px] sm:min-h-[44px]",lg:"px-4 py-3 text-lg min-h-[48px] sm:min-h-[52px]"},v={sm:"text-base",md:"text-lg",lg:"text-xl"},C={sm:16,md:20,lg:24},S={sm:"min-w-[16px] h-4 text-[10px] px-1",md:"min-w-[20px] h-5 text-xs px-1.5",lg:"min-w-[22px] h-[22px] text-xs px-2"};return r.jsxs("button",{className:x("relative inline-flex items-center justify-center gap-2 font-semibold cursor-pointer transition-all duration-200 select-none rounded-lg border focus-visible:ring-3 focus-visible:ring-primary-300 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed","bg-primary-50 border-primary-300 text-primary-700 hover:bg-primary-100 hover:border-primary-400 active:scale-95",N[o],d&&"animate-heartBeat"),onClick:y,disabled:l,"aria-label":"Curtir vídeo","aria-pressed":!0,children:[r.jsxs("span",{className:"relative flex items-center justify-center leading-none flex-shrink-0",children:[i?r.jsx(Re,{className:x("fill-rose-500 text-rose-500 transition-transform duration-150",d&&"animate-iconPop"),size:C[o]}):r.jsx("span",{className:x("flex items-center justify-center transition-transform duration-150",d&&"animate-iconPop"),children:"❤️"}),d&&r.jsx(r.Fragment,{children:i?r.jsxs(r.Fragment,{children:[r.jsx(Re,{className:"absolute pointer-events-none opacity-0 animate-heartFloat1 fill-rose-500 text-rose-500",size:C[o]-4}),r.jsx(Re,{className:"absolute pointer-events-none opacity-0 animate-heartFloat2 fill-rose-500 text-rose-500",size:C[o]-4}),r.jsx(Re,{className:"absolute pointer-events-none opacity-0 animate-heartFloat3 fill-rose-500 text-rose-500",size:C[o]-4})]}):r.jsxs(r.Fragment,{children:[r.jsx("span",{className:x("absolute text-sm pointer-events-none opacity-0 animate-heartFloat1",v[o]),children:"❤️"}),r.jsx("span",{className:x("absolute text-sm pointer-events-none opacity-0 animate-heartFloat2",v[o]),children:"❤️"}),r.jsx("span",{className:x("absolute text-sm pointer-events-none opacity-0 animate-heartFloat3",v[o]),children:"❤️"})]})})]}),!n&&r.jsxs("span",{className:"flex items-center gap-1.5",children:[r.jsx("span",{className:"whitespace-nowrap",children:"Curtido"}),c>0&&r.jsx("span",{className:x("inline-flex items-center justify-center rounded-full bg-primary-600 text-white font-bold transition-all duration-150 animate-countBounce",S[o]),children:c})]})]})};function Ma({video:e,showShare:a=!0,onPlay:t,onShare:o,onLikeChange:n,onDownloadComplete:l,onDownloadIncrement:i,extraActions:c,className:m}){const[d,f]=k.useState(!1),[y,N]=k.useState(!1),v=k.useRef(null),[C,S]=k.useState(e.curtidas),[T,z]=k.useState(e.downloads),[E,X]=k.useState(e.visualizacoes||0),[G,Z]=k.useState(e.compartilhamentos||0),O=e.is_vertical===void 0||e.is_vertical!==!1&&e.is_vertical!==0;k.useEffect(()=>{S(e.curtidas),z(e.downloads),X(e.visualizacoes||0),Z(e.compartilhamentos||0)},[e.curtidas,e.downloads,e.visualizacoes,e.compartilhamentos]);const I=e.dthr&&e.dthr.length>=16?e.dthr.substring(11,16):"",b=e.dthr&&e.dthr.length>=10?new Date(e.dthr).toLocaleDateString("pt-BR",{day:"2-digit",month:"2-digit"}):"",D=L=>L.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/\s+/g,"-").replace(/[^\w-]/g,"").replace(/-{2,}/g,"-").trim(),le=["Rock10",e.arena_nome?D(e.arena_nome):null,e.quadra_nome?D(e.quadra_nome):null,D(e.nome.replace(/\.mp4$/i,""))].filter(Boolean).join("-")+".mp4",ie=()=>{N(!0),f(!0),X(L=>L+1),t&&t(e)},ae=()=>{v.current&&(d?v.current.pause():ie())},$=async()=>{if(o){o(e);return}const L=`${window.location.origin}/video/${e.id}`,H={title:e.nome,text:"Confira este lance gravado no Rock10 Replay:",url:L};if(navigator.share)try{await navigator.share(H),Z(V=>V+1);return}catch{}try{await navigator.clipboard.writeText(`${H.text} ${H.url}`),Z(V=>V+1),alert("Link copiado para a área de transferência!")}catch{window.open(H.url,"_blank")}};return r.jsxs("article",{className:x("group relative flex flex-col bg-white dark:bg-dark-surface rounded-2xl shadow-xs hover:shadow-xl hover:-translate-y-1 transition-all duration-300 overflow-hidden border border-gray-150 dark:border-dark-border",m),children:[r.jsxs("div",{className:x("relative w-full overflow-hidden bg-black z-10 cursor-pointer select-none",O?"aspect-[9/16]":"aspect-[16/9]",d&&"rounded-b-none"),onClick:ae,children:[r.jsx("video",{ref:v,className:"w-full h-full object-contain transition-transform duration-300 bg-black group-hover:scale-[1.02]",src:y?e.url:void 0,poster:e.poster,controls:d,autoPlay:d,playsInline:!0,muted:!1,preload:y?"metadata":"none",onPlay:()=>f(!0),onPause:()=>f(!1)}),!d&&r.jsxs(r.Fragment,{children:[r.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-black/15 transition-opacity duration-300 z-20 pointer-events-none group-hover:bg-black/30",children:r.jsx("div",{className:"w-14 h-14 sm:w-16 sm:h-16 flex items-center justify-center bg-white/95 dark:bg-dark-surface/95 text-primary-500 rounded-full shadow-2xl backdrop-blur-sm transition-transform duration-200 hover:scale-110 active:scale-95",children:r.jsx(ka,{className:"w-6 h-6 fill-current ml-1"})})}),r.jsxs("div",{className:"absolute left-0 right-0 bottom-0 bg-gradient-to-t from-white via-white/80 to-transparent dark:from-dark-surface dark:via-dark-surface/85 dark:to-transparent pt-8 pb-3 px-3.5 flex flex-col gap-1 z-20 pointer-events-none",children:[(e.arena_nome||e.quadra_nome)&&r.jsxs("div",{className:"text-xs font-bold text-primary-600 dark:text-primary-400 flex items-center gap-1.5 leading-none",children:[r.jsx(Tr,{className:"w-3.5 h-3.5"}),r.jsxs("span",{children:[e.arena_nome||""," ",e.arena_nome&&e.quadra_nome?"•":""," ",e.quadra_nome||""]})]}),r.jsxs("div",{className:"flex justify-between items-center w-full mt-1.5",children:[r.jsxs("span",{className:"text-xs font-bold text-gray-800 dark:text-dark-text flex items-center gap-1.5 leading-none",children:[r.jsx(_r,{className:"w-3.5 h-3.5 text-gray-500 dark:text-dark-text-muted"})," ",b,r.jsx(ba,{className:"w-3.5 h-3.5 text-gray-500 dark:text-dark-text-muted ml-0.5"})," ",I]}),r.jsxs("div",{className:"flex gap-2 sm:gap-2.5 items-center text-xs font-bold text-gray-800 dark:text-dark-text leading-none",children:[r.jsxs("span",{className:"flex items-center gap-1",title:"Visualizações",children:[r.jsx(pa,{className:"w-3.5 h-3.5 text-gray-500 dark:text-dark-text-muted"})," ",E]}),r.jsxs("span",{className:"flex items-center gap-1",title:"Compartilhamentos",children:[r.jsx(Er,{className:"w-3.5 h-3.5 text-gray-500 dark:text-dark-text-muted"})," ",G]}),r.jsxs("span",{className:"flex items-center gap-1",title:"Downloads",children:[r.jsx(Sr,{className:"w-3.5 h-3.5 text-gray-500 dark:text-dark-text-muted"})," ",T]}),r.jsxs("span",{className:"flex items-center gap-1",title:"Curtidas",children:[r.jsx(Re,{className:"w-3.5 h-3.5 text-gray-500 dark:text-dark-text-muted"})," ",C]})]})]})]})]})]}),r.jsx("div",{className:"p-3.5 sm:p-4 flex flex-col gap-3 relative z-20 bg-white dark:bg-dark-surface flex-1",children:r.jsxs("div",{className:"flex gap-2.5 items-center justify-start pointer-events-auto",onClick:L=>L.stopPropagation(),children:[r.jsx(rt,{videoUrl:e.url,fileName:le,downloadCount:T,size:"sm",iconOnly:!0,onDownloadIncrement:i?()=>i(e.id):void 0,onDownloadChange:L=>z(L),onDownloadComplete:()=>l==null?void 0:l(e.id)}),r.jsx(tt,{videoId:e.id,initialLikes:C,size:"sm",iconOnly:!0,onLikeChange:L=>{S(L),n==null||n(e.id,!0)}}),a&&r.jsx(Lr,{icon:r.jsx(Er,{className:"w-4 h-4 text-gray-600 dark:text-dark-text"}),ariaLabel:"Compartilhar vídeo",variant:"ghost",size:"sm",rounded:!0,onClick:$}),c&&r.jsx("div",{className:"ml-auto flex items-center gap-2",children:c})]})})]})}function Da({arena:e,onClick:a,actionText:t="Ver Replays",extraBadge:o,className:n}){return r.jsxs("div",{onClick:()=>a==null?void 0:a(e),className:x("group bg-white dark:bg-dark-surface border border-gray-150 dark:border-dark-border rounded-2xl p-5 shadow-xs hover:shadow-md hover:-translate-y-1 transition-all duration-200 cursor-pointer flex flex-col justify-between",n),children:[r.jsxs("div",{className:"space-y-4",children:[r.jsxs("div",{className:"flex items-start justify-between gap-3",children:[r.jsx("div",{className:"w-12 h-12 rounded-xl bg-blue-50 dark:bg-blue-950/40 text-blue-600 dark:text-blue-400 flex items-center justify-center font-bold text-base shrink-0 overflow-hidden border border-blue-150 dark:border-blue-900/40",children:e.logo_url?r.jsx("img",{src:e.logo_url,alt:e.nome,className:"w-full h-full object-cover"}):r.jsx(wa,{className:"w-6 h-6"})}),r.jsxs("div",{className:"flex items-center gap-1.5 flex-wrap justify-end",children:[o,e.ativo!==void 0&&r.jsx(Dr,{variant:e.ativo?"success":"danger",dot:!0,size:"sm",children:e.ativo?"Ativa":"Inativa"})]})]}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-base font-bold text-gray-900 dark:text-dark-text group-hover:text-primary-500 transition-colors line-clamp-1",children:e.nome}),(e.cidade||e.uf)&&r.jsxs("p",{className:"text-xs text-gray-500 dark:text-dark-text-muted font-medium flex items-center gap-1 mt-1",children:[r.jsx(Tr,{className:"w-3.5 h-3.5 text-gray-400 shrink-0"}),r.jsxs("span",{children:[e.cidade,e.cidade&&e.uf?" / ":"",e.uf]})]})]}),e.total_quadras!==void 0&&r.jsxs("div",{className:"flex items-center gap-1.5 text-xs font-semibold text-gray-600 dark:text-dark-text-muted pt-2 border-t border-gray-100 dark:border-dark-border",children:[r.jsx(ya,{className:"w-4 h-4 text-emerald-500"}),r.jsxs("span",{children:[e.total_quadras," ",e.total_quadras===1?"quadra disponível":"quadras disponíveis"]})]})]}),r.jsxs("div",{className:"mt-4 pt-3 flex items-center justify-between text-xs font-bold text-primary-600 dark:text-primary-400 group-hover:text-primary-700 dark:group-hover:text-primary-300 transition-colors",children:[r.jsx("span",{children:t}),r.jsx(ma,{className:"w-4 h-4 transform group-hover:translate-x-1 transition-transform"})]})]})}function La({variant:e="full",themeMode:a="auto",size:t="md",className:o,...n}){const l={sm:e==="full"?"h-6 w-auto":"h-6 w-6",md:e==="full"?"h-8 w-auto":"h-8 w-8",lg:e==="full"?"h-10 w-auto":"h-10 w-10",xl:e==="full"?"h-12 w-auto":"h-12 w-12"};return e==="icon"?r.jsxs("svg",{viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:x(l[t],o),...n,children:[r.jsx("rect",{width:"40",height:"40",rx:"10",fill:"#0EA571"}),r.jsx("path",{d:"M12 28V12H21C23.7614 12 26 14.2386 26 17C26 19.7614 23.7614 22 21 22H16V28H12Z",fill:"white"}),r.jsx("path",{d:"M20 21L26 28H21L16.5 22.5H20V21Z",fill:"#FF6B35"}),r.jsx("circle",{cx:"28",cy:"14",r:"3",fill:"#FF6B35"})]}):r.jsxs("svg",{viewBox:"0 0 160 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:x(l[t],o),...n,children:[r.jsx("rect",{width:"40",height:"40",rx:"10",fill:"#0EA571"}),r.jsx("path",{d:"M12 28V12H21C23.7614 12 26 14.2386 26 17C26 19.7614 23.7614 22 21 22H16V28H12Z",fill:"white"}),r.jsx("path",{d:"M20 21L26 28H21L16.5 22.5H20V21Z",fill:"#FF6B35"}),r.jsx("circle",{cx:"28",cy:"14",r:"3",fill:"#FF6B35"}),r.jsx("text",{x:"48",y:"28",fontFamily:"Inter, system-ui, sans-serif",fontSize:"20",fontWeight:"800",fill:a==="light"?"#0F1419":a==="dark"?"#FFFFFF":"currentColor",letterSpacing:"-0.5px",children:"ROCK"}),r.jsx("text",{x:"112",y:"28",fontFamily:"Inter, system-ui, sans-serif",fontSize:"20",fontWeight:"900",fill:"#0EA571",children:"10"})]})}j.Alert=Ra,j.ArenaCard=Da,j.Badge=Dr,j.Button=zr,j.Card=Vr,j.CardContent=Ur,j.CardDescription=Gr,j.CardFooter=Hr,j.CardHeader=Br,j.CardTitle=Wr,j.Checkbox=Ir,j.ConfirmDialog=Pa,j.DatePicker=Oa,j.DateSelector=Fa,j.DownloadButton=rt,j.EmptyState=za,j.FilterBar=Sa,j.IconButton=Lr,j.Input=Ar,j.LikeButton=tt,j.Loading=Ea,j.Logo=La,j.Modal=et,j.PageHeader=Ta,j.SearchBar=Aa,j.Select=Or,j.Skeleton=Se,j.StatCard=Ca,j.Switch=Mr,j.Table=Jr,j.TableBody=Zr,j.TableCell=qr,j.TableContainer=Kr,j.TableHead=$r,j.TableHeader=Xr,j.TableRow=Qr,j.Tabs=Ia,j.Textarea=Fr,j.VideoCard=Ma,j.cn=x,Object.defineProperty(j,Symbol.toStringTag,{value:"Module"})});
|
|
155
|
+
*/const Qe=D("Share2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]]);/**
|
|
156
|
+
* @license lucide-react v0.475.0 - ISC
|
|
157
|
+
*
|
|
158
|
+
* This source code is licensed under the ISC license.
|
|
159
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
160
|
+
*/const Pr=D("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
|
|
161
|
+
* @license lucide-react v0.475.0 - ISC
|
|
162
|
+
*
|
|
163
|
+
* This source code is licensed under the ISC license.
|
|
164
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
165
|
+
*/const Sa=D("Trophy",[["path",{d:"M6 9H4.5a2.5 2.5 0 0 1 0-5H6",key:"17hqa7"}],["path",{d:"M18 9h1.5a2.5 2.5 0 0 0 0-5H18",key:"lmptdp"}],["path",{d:"M4 22h16",key:"57wxv0"}],["path",{d:"M10 14.66V17c0 .55-.47.98-.97 1.21C7.85 18.75 7 20.24 7 22",key:"1nw9bq"}],["path",{d:"M14 14.66V17c0 .55.47.98.97 1.21C16.15 18.75 17 20.24 17 22",key:"1np0yb"}],["path",{d:"M18 2H6v7a6 6 0 0 0 12 0V2Z",key:"u46fv3"}]]);/**
|
|
166
|
+
* @license lucide-react v0.475.0 - ISC
|
|
167
|
+
*
|
|
168
|
+
* This source code is licensed under the ISC license.
|
|
169
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
170
|
+
*/const Ra=D("Warehouse",[["path",{d:"M22 8.35V20a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V8.35A2 2 0 0 1 3.26 6.5l8-3.2a2 2 0 0 1 1.48 0l8 3.2A2 2 0 0 1 22 8.35Z",key:"gksnxg"}],["path",{d:"M6 18h12",key:"9pbo8z"}],["path",{d:"M6 14h12",key:"4cwo0f"}],["rect",{width:"12",height:"12",x:"6",y:"10",key:"apd30q"}]]);/**
|
|
171
|
+
* @license lucide-react v0.475.0 - ISC
|
|
172
|
+
*
|
|
173
|
+
* This source code is licensed under the ISC license.
|
|
174
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
175
|
+
*/const pe=D("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Ea=Er("inline-flex items-center justify-center font-bold transition-all select-none disabled:opacity-50 disabled:cursor-not-allowed disabled:pointer-events-none active:scale-[0.98]",{variants:{variant:{primary:"bg-primary-500 hover:bg-primary-600 active:bg-primary-700 text-white shadow-sm shadow-primary-500/20",secondary:"bg-gray-100 hover:bg-gray-200 dark:bg-dark-surface-light dark:hover:bg-gray-700 text-gray-700 dark:text-dark-text border border-gray-200 dark:border-dark-border",outline:"border border-gray-300 dark:border-dark-border text-gray-700 dark:text-dark-text hover:bg-gray-50 dark:hover:bg-dark-surface-light",ghost:"text-gray-600 dark:text-dark-text hover:bg-gray-100 dark:hover:bg-dark-surface-light",danger:"bg-red-600 hover:bg-red-700 active:bg-red-800 text-white shadow-sm shadow-red-600/20",success:"bg-emerald-600 hover:bg-emerald-700 active:bg-emerald-800 text-white shadow-sm shadow-emerald-600/20",purple:"bg-purple-600 hover:bg-purple-500 active:bg-purple-700 text-white shadow-sm shadow-purple-600/20",link:"text-primary-500 hover:text-primary-600 dark:text-primary-400 underline-offset-4 hover:underline p-0 h-auto font-semibold"},size:{sm:"h-8 px-3 text-xs gap-1.5 rounded-lg",md:"h-10 px-4 py-2 text-sm gap-2 rounded-xl",lg:"h-12 px-6 text-base gap-2.5 rounded-xl"},fullWidth:{true:"w-full",false:"w-auto"}},defaultVariants:{variant:"primary",size:"md",fullWidth:!1}}),Fr=k.forwardRef(({className:e,variant:t,size:a,fullWidth:s,isLoading:n=!1,leftIcon:l,rightIcon:i,children:d,disabled:m,...c},u)=>r.jsxs("button",{ref:u,disabled:m||n,className:p(Ea({variant:t,size:a,fullWidth:s}),e),...c,children:[n?r.jsx(Le,{className:"w-4 h-4 animate-spin shrink-0"}):l&&r.jsx("span",{className:"shrink-0",children:l}),d&&r.jsx("span",{children:d}),!n&&i&&r.jsx("span",{className:"shrink-0",children:i})]}));Fr.displayName="Button";const Or=k.forwardRef(({className:e,label:t,error:a,helperText:s,startIcon:n,endIcon:l,clearable:i=!1,onClear:d,inputSize:m="md",fullWidth:c=!0,disabled:u,value:f,id:w,...b},R)=>{const _=w||(t?`input-${t.toLowerCase().replace(/\s+/g,"-")}`:void 0),T={sm:"h-8 px-2.5 text-xs rounded-lg",md:"h-10 px-3.5 text-sm rounded-xl",lg:"h-12 px-4 text-base rounded-xl"};return r.jsxs("div",{className:p("flex flex-col gap-1.5",c&&"w-full"),children:[t&&r.jsx("label",{htmlFor:_,className:"text-xs font-bold uppercase tracking-wider text-gray-700 dark:text-dark-text",children:t}),r.jsxs("div",{className:"relative flex items-center w-full",children:[n&&r.jsx("div",{className:"absolute left-3.5 flex items-center pointer-events-none text-gray-400 dark:text-dark-text-muted",children:n}),r.jsx("input",{id:_,ref:R,disabled:u,value:f,className:p("w-full bg-gray-50 dark:bg-dark-bg border border-gray-200 dark:border-dark-border text-gray-900 dark:text-dark-text placeholder-gray-400 dark:placeholder-gray-500 font-medium transition-all focus:outline-none focus:bg-white dark:focus:bg-dark-bg focus:border-primary-500 focus:ring-2 focus:ring-primary-500/20 disabled:bg-gray-100 dark:disabled:bg-dark-surface disabled:opacity-60 disabled:cursor-not-allowed",T[m],n&&"pl-10",(l||i&&f)&&"pr-10",a&&"border-red-500 focus:border-red-500 focus:ring-red-500/20 text-red-900 dark:text-red-300",e),...b}),i&&f&&!u&&r.jsx("button",{type:"button",onClick:d,className:"absolute right-3 p-1 rounded-md text-gray-400 hover:text-gray-600 dark:hover:text-gray-200 transition-colors",children:r.jsx(pe,{className:"w-3.5 h-3.5"})}),!i&&l&&r.jsx("div",{className:"absolute right-3.5 flex items-center pointer-events-none text-gray-400 dark:text-dark-text-muted",children:l})]}),a&&r.jsx("span",{className:"text-xs font-semibold text-red-500",children:a}),!a&&s&&r.jsx("span",{className:"text-xs text-gray-500 dark:text-dark-text-muted",children:s})]})});Or.displayName="Input";const Ir=k.forwardRef(({className:e,label:t,error:a,helperText:s,options:n,selectSize:l="md",fullWidth:i=!0,disabled:d,children:m,id:c,...u},f)=>{const w=c||(t?`select-${t.toLowerCase().replace(/\s+/g,"-")}`:void 0),b={sm:"h-8 pl-2.5 pr-8 text-xs rounded-lg",md:"h-10 pl-3.5 pr-10 text-sm rounded-xl",lg:"h-12 pl-4 pr-12 text-base rounded-xl"};return r.jsxs("div",{className:p("flex flex-col gap-1.5",i&&"w-full"),children:[t&&r.jsx("label",{htmlFor:w,className:"text-xs font-bold uppercase tracking-wider text-gray-700 dark:text-dark-text",children:t}),r.jsxs("div",{className:"relative flex items-center w-full",children:[r.jsx("select",{id:w,ref:f,disabled:d,className:p("w-full appearance-none bg-gray-50 dark:bg-dark-bg border border-gray-200 dark:border-dark-border text-gray-900 dark:text-dark-text font-medium transition-all focus:outline-none focus:bg-white dark:focus:bg-dark-bg focus:border-primary-500 focus:ring-2 focus:ring-primary-500/20 disabled:bg-gray-100 dark:disabled:bg-dark-surface disabled:opacity-60 disabled:cursor-not-allowed cursor-pointer",b[l],a&&"border-red-500 focus:border-red-500 focus:ring-red-500/20 text-red-900 dark:text-red-300",e),...u,children:n?n.map(R=>r.jsx("option",{value:R.value,disabled:R.disabled,children:R.label},R.value)):m}),r.jsx("div",{className:"absolute right-3 pointer-events-none text-gray-400 dark:text-dark-text-muted",children:r.jsx(De,{className:"w-4 h-4"})})]}),a&&r.jsx("span",{className:"text-xs font-semibold text-red-500",children:a}),!a&&s&&r.jsx("span",{className:"text-xs text-gray-500 dark:text-dark-text-muted",children:s})]})});Ir.displayName="Select";const Mr=k.forwardRef(({className:e,label:t,error:a,helperText:s,fullWidth:n=!0,disabled:l,rows:i=3,id:d,...m},c)=>{const u=d||(t?`textarea-${t.toLowerCase().replace(/\s+/g,"-")}`:void 0);return r.jsxs("div",{className:p("flex flex-col gap-1.5",n&&"w-full"),children:[t&&r.jsx("label",{htmlFor:u,className:"text-xs font-bold uppercase tracking-wider text-gray-700 dark:text-dark-text",children:t}),r.jsx("textarea",{id:u,ref:c,rows:i,disabled:l,className:p("w-full p-3 bg-gray-50 dark:bg-dark-bg border border-gray-200 dark:border-dark-border text-gray-900 dark:text-dark-text placeholder-gray-400 dark:placeholder-gray-500 text-sm font-medium rounded-xl transition-all focus:outline-none focus:bg-white dark:focus:bg-dark-bg focus:border-primary-500 focus:ring-2 focus:ring-primary-500/20 disabled:bg-gray-100 dark:disabled:bg-dark-surface disabled:opacity-60 disabled:cursor-not-allowed resize-y",a&&"border-red-500 focus:border-red-500 focus:ring-red-500/20 text-red-900 dark:text-red-300",e),...m}),a&&r.jsx("span",{className:"text-xs font-semibold text-red-500",children:a}),!a&&s&&r.jsx("span",{className:"text-xs text-gray-500 dark:text-dark-text-muted",children:s})]})});Mr.displayName="Textarea";const Dr=k.forwardRef(({className:e,label:t,description:a,checked:s,disabled:n,id:l,onChange:i,...d},m)=>{const c=l||(typeof t=="string"?`checkbox-${t.toLowerCase().replace(/\s+/g,"-")}`:void 0);return r.jsxs("label",{htmlFor:c,className:p("inline-flex items-start gap-2.5 select-none cursor-pointer group",n&&"opacity-60 cursor-not-allowed pointer-events-none",e),children:[r.jsxs("div",{className:"relative flex items-center justify-center shrink-0 mt-0.5",children:[r.jsx("input",{id:c,ref:m,type:"checkbox",checked:s,disabled:n,onChange:i,className:"peer sr-only",...d}),r.jsx("div",{className:p("w-5 h-5 rounded-md border border-gray-300 dark:border-dark-border bg-white dark:bg-dark-surface transition-all flex items-center justify-center peer-checked:bg-primary-500 peer-checked:border-primary-500 peer-focus-visible:ring-2 peer-focus-visible:ring-primary-500/30 group-hover:border-primary-500/60 shadow-xs",s&&"bg-primary-500 border-primary-500 text-white"),children:s&&r.jsx(Xe,{className:"w-3.5 h-3.5 stroke-[3] text-white"})})]}),(t||a)&&r.jsxs("div",{className:"flex flex-col",children:[t&&r.jsx("span",{className:"text-sm font-semibold text-gray-800 dark:text-dark-text leading-tight",children:t}),a&&r.jsx("span",{className:"text-xs text-gray-500 dark:text-dark-text-muted mt-0.5",children:a})]})]})});Dr.displayName="Checkbox";const Lr=k.forwardRef(({className:e,label:t,description:a,checked:s,disabled:n,switchSize:l="md",id:i,onChange:d,...m},c)=>{const u=i||(typeof t=="string"?`switch-${t.toLowerCase().replace(/\s+/g,"-")}`:void 0),f={sm:"w-8 h-4.5",md:"w-11 h-6",lg:"w-14 h-7.5"},w={sm:"w-3.5 h-3.5 translate-x-0.5 peer-checked:translate-x-4",md:"w-5 h-5 translate-x-0.5 peer-checked:translate-x-5.5",lg:"w-6.5 h-6.5 translate-x-0.5 peer-checked:translate-x-7"};return r.jsxs("label",{htmlFor:u,className:p("inline-flex items-center gap-3 select-none cursor-pointer group",n&&"opacity-60 cursor-not-allowed pointer-events-none",e),children:[r.jsxs("div",{className:"relative inline-flex items-center shrink-0",children:[r.jsx("input",{id:u,ref:c,type:"checkbox",role:"switch",checked:s,disabled:n,onChange:d,className:"peer sr-only",...m}),r.jsx("div",{className:p("rounded-full bg-gray-200 dark:bg-dark-surface-light peer-checked:bg-primary-500 transition-colors duration-200 ease-in-out border border-transparent shadow-inner",f[l])}),r.jsx("div",{className:p("absolute bg-white rounded-full shadow-md transform transition-transform duration-200 ease-in-out pointer-events-none",w[l])})]}),(t||a)&&r.jsxs("div",{className:"flex flex-col",children:[t&&r.jsx("span",{className:"text-sm font-semibold text-gray-800 dark:text-dark-text leading-tight",children:t}),a&&r.jsx("span",{className:"text-xs text-gray-500 dark:text-dark-text-muted mt-0.5",children:a})]})]})});Lr.displayName="Switch";const Ta=Er("inline-flex items-center font-bold tracking-tight transition-colors select-none shrink-0",{variants:{variant:{success:"bg-emerald-50 dark:bg-emerald-950/30 text-emerald-700 dark:text-emerald-300 border border-emerald-200 dark:border-emerald-800/60",danger:"bg-red-50 dark:bg-red-950/30 text-red-700 dark:text-red-400 border border-red-200 dark:border-red-800/60",warning:"bg-amber-50 dark:bg-amber-950/30 text-amber-700 dark:text-amber-400 border border-amber-200 dark:border-amber-800/60",info:"bg-blue-50 dark:bg-blue-950/30 text-blue-700 dark:text-blue-300 border border-blue-200 dark:border-blue-800/60",purple:"bg-purple-50 dark:bg-purple-950/30 text-purple-700 dark:text-purple-300 border border-purple-200 dark:border-purple-800/60",neutral:"bg-gray-100 dark:bg-dark-surface-light text-gray-700 dark:text-dark-text-muted border border-gray-200 dark:border-dark-border",primary:"bg-primary-50 dark:bg-primary-950/30 text-primary-700 dark:text-primary-300 border border-primary-200 dark:border-primary-800/60",secondary:"bg-secondary-50 dark:bg-secondary-950/30 text-secondary-700 dark:text-secondary-300 border border-secondary-200 dark:border-secondary-800/60"},size:{sm:"text-[10px] px-2 py-0.5 gap-1",md:"text-xs px-2.5 py-1 gap-1.5"},shape:{pill:"rounded-full",rounded:"rounded-md"}},defaultVariants:{variant:"neutral",size:"sm",shape:"pill"}}),za={success:"bg-emerald-500",danger:"bg-red-500",warning:"bg-amber-500",info:"bg-blue-500",purple:"bg-purple-500",neutral:"bg-gray-400",primary:"bg-primary-500",secondary:"bg-secondary-500"};function Vr({className:e,variant:t="neutral",size:a="sm",shape:s="pill",dot:n=!1,pulseDot:l=!1,children:i,...d}){const c=za[t||"neutral"]||"bg-gray-400";return r.jsxs("span",{className:p(Ta({variant:t,size:a,shape:s}),e),...d,children:[n&&r.jsxs("span",{className:"relative flex h-1.5 w-1.5 shrink-0",children:[l&&r.jsx("span",{className:p("animate-ping absolute inline-flex h-full w-full rounded-full opacity-75",c)}),r.jsx("span",{className:p("relative inline-flex rounded-full h-1.5 w-1.5",c)})]}),i]})}function Re({className:e,variant:t="text",width:a,height:s,style:n,...l}){const i={text:"h-4 rounded-md w-full",circular:"rounded-full",rectangular:"rounded-xl",card:"h-32 rounded-2xl w-full"};return r.jsx("div",{className:p("animate-pulse bg-gray-200/80 dark:bg-dark-surface-light/80",i[t],e),style:{width:typeof a=="number"?`${a}px`:a,height:typeof s=="number"?`${s}px`:s,...n},...l})}const Br=({icon:e,variant:t="primary",size:a="md",rounded:s=!1,ariaLabel:n,disabled:l=!1,loading:i=!1,className:d="",...m})=>{const c="relative inline-flex items-center justify-center gap-2 border-none font-semibold cursor-pointer transition-all select-none -webkit-tap-highlight-color-transparent outline-none focus-visible:ring-3 focus-visible:ring-primary-300 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed disabled:pointer-events-none active:scale-95 duration-150",u={primary:"bg-gradient-to-br from-primary-500 to-primary-600 text-white shadow-md hover:from-primary-600 hover:to-primary-700 hover:shadow-lg hover:-translate-y-0.5",secondary:"bg-gray-100 dark:bg-dark-surface text-gray-700 dark:text-dark-text border border-gray-300 dark:border-dark-border hover:bg-gray-200 dark:hover:bg-dark-surface-light hover:-translate-y-0.5",ghost:"bg-transparent text-gray-600 dark:text-dark-text-muted hover:bg-gray-100 dark:hover:bg-dark-surface hover:text-gray-800 dark:hover:text-dark-text",danger:"bg-gradient-to-br from-red-500 to-red-600 text-white shadow-md hover:from-red-600 hover:to-red-700 hover:shadow-lg hover:-translate-y-0.5"},f=s?{sm:"w-8 h-8 rounded-full p-0 text-base",md:"w-10 h-10 rounded-full p-0 text-lg sm:w-11 sm:h-11",lg:"w-12 h-12 rounded-full p-0 text-xl sm:w-13 sm:h-13"}:{sm:"px-3 py-1.5 text-sm rounded-md min-h-[32px]",md:"px-4 py-2 text-base rounded-md min-h-[40px] sm:min-h-[44px]",lg:"px-6 py-3 text-lg rounded-lg min-h-[48px] sm:min-h-[52px]"};return r.jsx("button",{className:p(c,u[t],f[a],i&&"pointer-events-none",d),"aria-label":n,disabled:l||i,...m,children:i?r.jsx(Le,{className:"w-4 h-4 animate-spin",role:"status","aria-hidden":"true"}):r.jsx("span",{className:"flex items-center justify-center leading-none",children:e})})},Wr=k.forwardRef(({className:e,hoverable:t=!1,padded:a=!0,children:s,...n},l)=>r.jsx("div",{ref:l,className:p("bg-white dark:bg-dark-surface border border-gray-150 dark:border-dark-border rounded-2xl shadow-xs transition-all duration-200 overflow-hidden",a&&"p-5 sm:p-6",t&&"hover:shadow-md hover:-translate-y-0.5 cursor-pointer",e),...n,children:s}));Wr.displayName="Card";const Gr=k.forwardRef(({className:e,actions:t,children:a,...s},n)=>r.jsxs("div",{ref:n,className:p("flex items-center justify-between gap-4 mb-4",e),...s,children:[r.jsx("div",{className:"flex flex-col gap-1",children:a}),t&&r.jsx("div",{className:"flex items-center gap-2 shrink-0",children:t})]}));Gr.displayName="CardHeader";const Ur=k.forwardRef(({className:e,children:t,...a},s)=>r.jsx("h3",{ref:s,className:p("text-base font-bold text-gray-900 dark:text-dark-text tracking-tight",e),...a,children:t}));Ur.displayName="CardTitle";const Hr=k.forwardRef(({className:e,children:t,...a},s)=>r.jsx("p",{ref:s,className:p("text-xs text-gray-500 dark:text-dark-text-muted font-medium",e),...a,children:t}));Hr.displayName="CardDescription";const Yr=k.forwardRef(({className:e,children:t,...a},s)=>r.jsx("div",{ref:s,className:p("space-y-4",e),...a,children:t}));Yr.displayName="CardContent";const Kr=k.forwardRef(({className:e,children:t,...a},s)=>r.jsx("div",{ref:s,className:p("flex items-center justify-end gap-3 pt-4 mt-4 border-t border-gray-100 dark:border-dark-border",e),...a,children:t}));Kr.displayName="CardFooter";const Jr={purple:{text:"text-purple-600 dark:text-purple-400",bg:"bg-purple-100 dark:bg-purple-900/30 text-purple-600 dark:text-purple-400",border:"border-purple-200/50 dark:border-purple-950/20"},blue:{text:"text-blue-600 dark:text-blue-400",bg:"bg-blue-100 dark:bg-blue-900/30 text-blue-600 dark:text-blue-400",border:"border-blue-200/50 dark:border-blue-950/20"},emerald:{text:"text-emerald-600 dark:text-emerald-400",bg:"bg-emerald-100 dark:bg-emerald-900/30 text-emerald-600 dark:text-emerald-400",border:"border-emerald-200/50 dark:border-emerald-950/20"},amber:{text:"text-amber-600 dark:text-amber-400",bg:"bg-amber-100 dark:bg-amber-900/30 text-amber-600 dark:text-amber-400",border:"border-amber-200/50 dark:border-amber-950/20"},red:{text:"text-red-600 dark:text-red-400",bg:"bg-red-100 dark:bg-red-900/30 text-red-600 dark:text-red-400",border:"border-red-200/50 dark:border-red-950/20"},cyan:{text:"text-cyan-600 dark:text-cyan-400",bg:"bg-cyan-100 dark:bg-cyan-900/30 text-cyan-600 dark:text-cyan-400",border:"border-cyan-200/50 dark:border-cyan-950/20"},pink:{text:"text-pink-600 dark:text-pink-400",bg:"bg-pink-100 dark:bg-pink-900/30 text-pink-600 dark:text-pink-400",border:"border-pink-200/50 dark:border-pink-950/20"},yellow:{text:"text-yellow-600 dark:text-yellow-400",bg:"bg-yellow-100 dark:bg-yellow-900/30 text-yellow-600 dark:text-yellow-400",border:"border-yellow-200/50 dark:border-yellow-950/20"}};function Aa({title:e,value:t,subtitle:a,icon:s,color:n="purple",isLoading:l=!1,animateValue:i=!0,className:d,onClick:m}){const[c,u]=k.useState(typeof t=="number"&&i?0:t),f=Jr[n]||Jr.purple;return k.useEffect(()=>{if(typeof t!="number"||!i){u(t);return}let w=!0,b=null;const R=1e3,_=T=>{if(!w)return;b||(b=T);const C=Math.min((T-b)/R,1),S=C*(2-C),X=Math.floor(S*t);u(X.toLocaleString("pt-BR")),C<1?window.requestAnimationFrame(_):u(t.toLocaleString("pt-BR"))};return window.requestAnimationFrame(_),()=>{w=!1}},[t,i]),l?r.jsxs("div",{className:"bg-white dark:bg-dark-surface p-5 rounded-2xl border border-gray-150 dark:border-dark-border shadow-xs",children:[r.jsxs("div",{className:"flex items-center justify-between mb-3",children:[r.jsx(Re,{width:"50%",height:14}),r.jsx(Re,{variant:"circular",width:40,height:40})]}),r.jsx(Re,{width:"40%",height:32,className:"my-2"}),r.jsx(Re,{width:"70%",height:12})]}):r.jsxs("div",{onClick:m,className:p("bg-white dark:bg-dark-surface p-5 rounded-2xl border border-gray-150 dark:border-dark-border shadow-xs hover:shadow-sm transition-all",m&&"cursor-pointer hover:-translate-y-0.5",d),children:[r.jsxs("div",{className:"flex items-center justify-between mb-3",children:[r.jsx("span",{className:p("text-xs font-bold uppercase tracking-wider",f.text),children:e}),s&&r.jsx("div",{className:p("w-10 h-10 rounded-xl flex items-center justify-center shrink-0",f.bg),children:s})]}),r.jsx("div",{className:"text-3xl font-black text-gray-900 dark:text-dark-text tracking-tight",children:typeof t=="number"&&!i?t.toLocaleString("pt-BR"):c}),a&&r.jsx("div",{className:"text-xs text-gray-500 dark:text-dark-text-muted font-medium mt-1.5 flex items-center gap-1",children:a})]})}function Pa({variant:e="info",title:t,children:a,icon:s,onClose:n,className:l}){const d={info:{container:"bg-blue-50 dark:bg-blue-950/30 border-blue-200 dark:border-blue-800/60 text-blue-900 dark:text-blue-200",icon:r.jsx(ja,{className:"w-5 h-5 text-blue-600 dark:text-blue-400 shrink-0"})},success:{container:"bg-emerald-50 dark:bg-emerald-950/30 border-emerald-200 dark:border-emerald-800/60 text-emerald-900 dark:text-emerald-200",icon:r.jsx(ya,{className:"w-5 h-5 text-emerald-600 dark:text-emerald-400 shrink-0"})},warning:{container:"bg-amber-50 dark:bg-amber-950/30 border-amber-200 dark:border-amber-800/60 text-amber-900 dark:text-amber-200",icon:r.jsx(Pr,{className:"w-5 h-5 text-amber-600 dark:text-amber-400 shrink-0"})},danger:{container:"bg-red-50 dark:bg-red-950/30 border-red-200 dark:border-red-800/60 text-red-900 dark:text-red-200",icon:r.jsx(ha,{className:"w-5 h-5 text-red-600 dark:text-red-400 shrink-0"})}}[e];return r.jsxs("div",{role:"alert",className:p("p-4 rounded-xl border flex items-start gap-3 relative transition-all",d.container,l),children:[r.jsx("div",{className:"mt-0.5",children:s||d.icon}),r.jsxs("div",{className:"flex-1 text-sm",children:[t&&r.jsx("h5",{className:"font-bold text-sm mb-1",children:t}),r.jsx("div",{className:"font-medium text-xs sm:text-sm leading-relaxed",children:a})]}),n&&r.jsx("button",{onClick:n,className:"p-1 rounded-md text-gray-400 hover:text-gray-600 dark:hover:text-gray-200 transition-colors",children:r.jsx(pe,{className:"w-4 h-4"})})]})}const Xr=k.forwardRef(({className:e,bordered:t=!0,children:a,...s},n)=>r.jsx("div",{ref:n,className:p("w-full overflow-x-auto rounded-2xl bg-white dark:bg-dark-surface shadow-xs",t&&"border border-gray-150 dark:border-dark-border",e),...s,children:a}));Xr.displayName="TableContainer";const Zr=k.forwardRef(({className:e,...t},a)=>r.jsx("table",{ref:a,className:p("w-full text-left text-sm border-collapse",e),...t}));Zr.displayName="Table";const Qr=k.forwardRef(({className:e,...t},a)=>r.jsx("thead",{ref:a,className:p("bg-gray-50/80 dark:bg-dark-surface-light/80 border-b border-gray-150 dark:border-dark-border text-gray-600 dark:text-dark-text-muted text-xs uppercase font-bold tracking-wider",e),...t}));Qr.displayName="TableHeader";const $r=k.forwardRef(({className:e,...t},a)=>r.jsx("tbody",{ref:a,className:p("divide-y divide-gray-100 dark:divide-dark-border",e),...t}));$r.displayName="TableBody";const qr=k.forwardRef(({className:e,...t},a)=>r.jsx("tr",{ref:a,className:p("transition-colors hover:bg-gray-50/60 dark:hover:bg-dark-surface-light/40 data-[state=selected]:bg-gray-50",e),...t}));qr.displayName="TableRow";const et=k.forwardRef(({className:e,...t},a)=>r.jsx("th",{ref:a,className:p("px-6 py-4 text-left font-bold text-gray-600 dark:text-dark-text-muted select-none text-xs uppercase tracking-wider",e),...t}));et.displayName="TableHead";const rt=k.forwardRef(({className:e,...t},a)=>r.jsx("td",{ref:a,className:p("px-6 py-4 align-middle text-gray-800 dark:text-dark-text text-sm font-medium",e),...t}));rt.displayName="TableCell";function Fa({title:e="Filtros",hasActiveFilters:t=!1,activeFiltersCount:a,onClearFilters:s,children:n,className:l}){return r.jsxs("div",{className:p("bg-white dark:bg-dark-surface p-4 sm:p-5 rounded-2xl border border-gray-150 dark:border-dark-border shadow-xs space-y-3",l),children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("div",{className:"p-1.5 rounded-lg bg-purple-50 dark:bg-purple-950/40 text-purple-600 dark:text-purple-400",children:r.jsx(wa,{className:"w-4 h-4"})}),r.jsx("span",{className:"text-xs font-bold uppercase tracking-wider text-gray-700 dark:text-dark-text",children:e}),t&&r.jsx("span",{className:"px-2 py-0.5 rounded-full text-[10px] font-extrabold bg-purple-100 dark:bg-purple-900/40 text-purple-700 dark:text-purple-300",children:a!==void 0?`${a} ${a===1?"ativo":"ativos"}`:"Filtro Ativo"})]}),t&&s&&r.jsxs("button",{type:"button",onClick:s,className:"inline-flex items-center gap-1 text-xs font-bold text-red-500 hover:text-red-600 dark:hover:text-red-400 transition-colors cursor-pointer",children:[r.jsx(pe,{className:"w-3.5 h-3.5"}),"Limpar Filtros"]})]}),r.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-3 pt-1",children:n})]})}function Oa({title:e,description:t,badge:a,actions:s,breadcrumb:n,className:l}){return r.jsxs("div",{className:p("flex flex-col sm:flex-row sm:items-center justify-between gap-4 select-none",l),children:[r.jsxs("div",{className:"flex flex-col gap-1",children:[n&&r.jsx("div",{className:"text-xs text-gray-500 mb-0.5",children:n}),r.jsxs("div",{className:"flex items-center gap-3 flex-wrap",children:[r.jsx("h1",{className:"text-2xl font-bold text-gray-900 dark:text-dark-text tracking-tight",children:e}),a&&r.jsx("div",{children:a})]}),t&&r.jsx("div",{className:"text-sm text-gray-500 dark:text-dark-text-muted mt-0.5 font-medium",children:t})]}),s&&r.jsx("div",{className:"flex items-center gap-2.5 flex-wrap shrink-0",children:s})]})}const Ia=({variant:e="spinner",size:t="md",text:a,fullScreen:s=!1})=>{const n={sm:"w-6 h-6",md:"w-10 h-10",lg:"w-16 h-16"},l={sm:"text-xs",md:"text-sm font-medium",lg:"text-base font-semibold"};if(e==="skeleton")return r.jsxs("div",{className:p("w-full bg-white dark:bg-dark-surface border border-gray-150 dark:border-dark-border rounded-xl overflow-hidden shadow-sm animate-pulse",t==="sm"?"max-w-xs":t==="md"?"max-w-sm":"max-w-md"),children:[r.jsx("div",{className:"aspect-video bg-gray-200 dark:bg-dark-surface-light w-full"}),r.jsxs("div",{className:"p-4 space-y-3",children:[r.jsx("div",{className:"h-4 bg-gray-200 dark:bg-dark-surface-light rounded w-3/4"}),r.jsx("div",{className:"h-3 bg-gray-200 dark:bg-dark-surface-light rounded w-1/2"}),r.jsx("div",{className:"h-3 bg-gray-200 dark:bg-dark-surface-light rounded w-5/6"})]})]});const i=r.jsxs("div",{className:"flex flex-col items-center justify-center space-y-3 p-4",children:[r.jsx(Le,{className:p("text-primary-500 animate-spin",n[t])}),a&&r.jsx("p",{className:p("text-gray-500 dark:text-dark-text-muted select-none",l[t]),children:a})]});return s?r.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-white/80 dark:bg-dark-bg/80 backdrop-blur-sm",children:i}):r.jsx("div",{className:"flex items-center justify-center w-full",children:i})};function tt({isOpen:e,onClose:t,title:a,children:s,footer:n,size:l="md",closeOnOutsideClick:i=!1}){if(k.useEffect(()=>(e?document.body.style.overflow="hidden":document.body.style.overflow="unset",()=>{document.body.style.overflow="unset"}),[e]),!e)return null;const d={sm:"max-w-md",md:"max-w-lg",lg:"max-w-2xl",xl:"max-w-4xl"};return r.jsxs("div",{className:"fixed inset-0 z-[100] flex items-center justify-center p-4 bg-black/50 backdrop-blur-sm animate-[fadeIn_0.2s_ease-out]",children:[r.jsx("div",{className:"fixed inset-0",onClick:i?t:void 0}),r.jsxs("div",{className:p("relative w-full bg-white dark:bg-dark-surface border border-gray-150 dark:border-dark-border rounded-xl shadow-xl overflow-hidden flex flex-col max-h-[90vh] z-10 animate-[slideUp_0.2s_ease-out]",d[l]),children:[r.jsxs("div",{className:"flex justify-between items-center px-6 py-4 border-b border-gray-100 dark:border-dark-border",children:[r.jsx("h2",{className:"text-lg font-bold text-gray-900 dark:text-dark-text",children:a}),r.jsx("button",{className:"text-gray-400 hover:text-gray-600 dark:hover:text-gray-200 transition-colors p-1.5 hover:bg-gray-100 dark:hover:bg-dark-surface-light rounded-lg cursor-pointer",onClick:t,children:r.jsx(pe,{className:"w-5 h-5"})})]}),r.jsx("div",{className:"p-6 overflow-y-auto flex-1 text-sm text-gray-700 dark:text-dark-text-muted",children:s}),n&&r.jsx("div",{className:"flex justify-end items-center gap-3 px-6 py-4 border-t border-gray-100 dark:border-dark-border bg-gray-50/50 dark:bg-dark-surface/50",children:n})]})]})}function Ma({isOpen:e,onClose:t,onConfirm:a,title:s,message:n,confirmText:l="Confirmar",cancelText:i="Cancelar",isLoading:d=!1}){return r.jsx(tt,{isOpen:e,onClose:t,title:s,size:"sm",footer:r.jsxs(r.Fragment,{children:[r.jsx("button",{type:"button",onClick:t,disabled:d,className:"px-4 py-2 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded-lg hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-500 disabled:opacity-50 disabled:cursor-not-allowed dark:bg-dark-surface dark:text-dark-text dark:border-dark-border dark:hover:bg-dark-surface-light cursor-pointer",children:i}),r.jsxs("button",{type:"button",onClick:a,disabled:d,className:"px-4 py-2 text-sm font-medium text-white bg-red-600 border border-transparent rounded-lg hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 disabled:opacity-50 disabled:cursor-not-allowed flex items-center gap-2 cursor-pointer",children:[d&&r.jsx("div",{className:"w-4 h-4 border-2 border-white border-t-transparent rounded-full animate-spin"}),d?"Aguarde...":l]})]}),children:r.jsxs("div",{className:"flex items-start gap-4",children:[r.jsx("div",{className:"flex-shrink-0 w-10 h-10 rounded-full bg-red-100 dark:bg-red-900/30 flex items-center justify-center text-red-600 dark:text-red-400",children:r.jsx(Pr,{className:"w-5 h-5"})}),r.jsx("div",{className:"flex-1 text-sm text-gray-600 dark:text-dark-text-muted",children:n})]})})}const Da=({icon:e,title:t,description:a,action:s,variant:n="default"})=>{const l={default:"text-primary-500 bg-primary-50 dark:bg-primary-950/20",error:"text-red-500 bg-red-50 dark:bg-red-950/20",search:"text-secondary-500 bg-secondary-50 dark:bg-secondary-950/20"};return r.jsxs("div",{className:p("flex flex-col items-center justify-center p-8 sm:p-12 text-center min-h-[300px] sm:min-h-[400px] animate-fadeIn group"),children:[e&&r.jsx("div",{className:p("flex items-center justify-center w-16 h-16 sm:w-20 sm:h-20 mb-6 text-4xl sm:text-[48px] rounded-full transition-all duration-200 group-hover:scale-105 group-hover:bg-opacity-80",l[n]),children:e}),r.jsxs("div",{className:"max-w-[500px] mb-6 space-y-2",children:[r.jsx("h3",{className:"text-xl sm:text-2xl font-bold font-heading text-gray-900 dark:text-dark-text leading-tight",children:t}),a&&r.jsx("p",{className:"text-sm sm:text-base text-gray-600 dark:text-dark-text-muted leading-relaxed",children:a})]}),s&&r.jsx("button",{className:"inline-flex items-center justify-center px-6 py-3 font-semibold text-white bg-gradient-to-br from-primary-500 to-primary-600 rounded-lg shadow-md transition-all duration-200 cursor-pointer hover:from-primary-600 hover:to-primary-700 hover:shadow-lg hover:-translate-y-0.5 active:scale-95 active:translate-y-0 min-h-[44px]",onClick:s.onClick,children:s.label})]})},La=({onSearch:e,debounceMs:t=300,placeholder:a="Pesquisar vídeos...",initialValue:s="",showClear:n=!0,autoFocus:l=!1,size:i="md",className:d="",...m})=>{const[c,u]=k.useState(s),[f,w]=k.useState(!1),b=k.useRef(null),R=k.useRef();k.useEffect(()=>{l&&b.current&&b.current.focus()},[l]),k.useEffect(()=>(R.current&&clearTimeout(R.current),R.current=setTimeout(()=>{e(c)},t),()=>{R.current&&clearTimeout(R.current)}),[c,e,t]);const _=G=>{u(G.target.value)},T=()=>{var G;u(""),(G=b.current)==null||G.focus()},C=G=>{G.key==="Escape"&&T()},S={sm:"h-9 text-sm rounded-lg",md:"h-11 sm:h-12 text-base rounded-xl",lg:"h-13 sm:h-14 text-lg rounded-2xl"},X={sm:"w-4 h-4 ml-3",md:"w-5 h-5 ml-4",lg:"w-6 h-6 ml-5"};return r.jsxs("div",{className:p("relative flex items-center w-full max-w-[600px] bg-white dark:bg-dark-surface border border-gray-300 dark:border-dark-border shadow-sm transition-all duration-150 overflow-hidden",f?"border-primary-500 ring-3 ring-primary-100 dark:ring-primary-900/30":"hover:border-gray-400 dark:hover:border-dark-border/80 hover:shadow",S[i],d),children:[r.jsx(Ca,{className:p("text-gray-400 dark:text-dark-text-muted flex-shrink-0",X[i]),"aria-hidden":"true"}),r.jsx("input",{ref:b,type:"text",className:"flex-1 h-full px-3 py-2 border-none bg-transparent font-sans text-gray-900 dark:text-dark-text outline-none placeholder-gray-400 dark:placeholder-dark-text-muted text-inherit",value:c,onChange:_,onKeyDown:C,onFocus:()=>w(!0),onBlur:()=>w(!1),placeholder:a,"aria-label":"Campo de busca",...m}),n&&c&&r.jsx("button",{type:"button",className:p("flex items-center justify-center mr-3 bg-gray-150 dark:bg-dark-surface-light border-none rounded-full cursor-pointer text-gray-500 dark:text-dark-text-muted transition-all duration-150 flex-shrink-0 hover:bg-gray-200 dark:hover:bg-dark-surface-light/80 hover:scale-105 active:scale-95",i==="sm"?"w-5 h-5 p-0.5":i==="md"?"w-6 h-6 p-1":"w-7 h-7 p-1.5"),onClick:T,"aria-label":"Limpar busca",children:r.jsx(pe,{className:"w-full h-full"})})]})},Va=({onDateSelect:e,label:t="Selecione uma data",maxDate:a,minDate:s,initialDate:n})=>{const[l,i]=k.useState(n||"");k.useEffect(()=>{i(n||"")},[n]);const d=m=>{const c=m.target.value;i(c),e(c)};return r.jsxs("div",{className:"flex flex-col gap-2.5 w-full max-w-[400px] md:max-w-full",children:[r.jsx("label",{htmlFor:"date-picker",className:"font-sans text-xs font-semibold text-gray-700 dark:text-dark-text-muted uppercase tracking-wider",children:t}),r.jsx("input",{id:"date-picker",type:"date",value:l,onChange:d,max:a,min:s,className:p("w-full px-4 py-3 font-sans text-base font-medium border-2 border-gray-300 dark:border-dark-border rounded-xl bg-white dark:bg-dark-surface text-gray-900 dark:text-dark-text shadow-sm cursor-pointer outline-none transition-all duration-200","hover:border-primary-400 hover:shadow-md focus:border-primary-500 focus:ring-3 focus:ring-primary-100 dark:focus:ring-primary-900/30","webkit-calendar-picker-indicator:cursor-pointer webkit-calendar-picker-indicator:p-1 webkit-calendar-picker-indicator:rounded-md webkit-calendar-picker-indicator:transition-colors hover:webkit-calendar-picker-indicator:bg-primary-50")})]})},Ba=({onDateChange:e,initialStartDate:t,initialEndDate:a,allowRange:s=!0,placeholder:n="Selecionar data"})=>{const[l,i]=k.useState(t||""),[d,m]=k.useState(a||""),[c,u]=k.useState(null),[f,w]=k.useState(!1),b=()=>new Date().toISOString().split("T")[0],R=()=>{const F=new Date;return F.setDate(F.getDate()-1),F.toISOString().split("T")[0]},_=F=>{const I=new Date;return I.setDate(I.getDate()-F),I.toISOString().split("T")[0]},T=F=>{switch(u(F),F){case"today":i(b()),m(b()),e(b(),b());break;case"yesterday":i(R()),m(R()),e(R(),R());break;case"last7days":i(_(7)),m(b()),e(_(7),b());break;case"last30days":i(_(30)),m(b()),e(_(30),b());break;case"custom":u("custom");break}F!=="custom"&&w(!1)},C=F=>{const I=F.target.value;i(I),u("custom"),e(I,s?d:null)},S=F=>{const I=F.target.value;m(I),u("custom"),e(l,I)},X=()=>{i(""),m(""),u(null),e(null,null)},G=()=>l?c&&c!=="custom"?{today:"Hoje",yesterday:"Ontem",last7days:"Últimos 7 dias",last30days:"Últimos 30 dias",custom:"Personalizado"}[c]:s&&d&&l!==d?`${Z(l)} - ${Z(d)}`:Z(l):n,Z=F=>{const[I,g,L]=F.split("-");return`${L}/${g}/${I}`};return r.jsxs("div",{className:"relative inline-block w-full sm:w-auto",children:[r.jsxs("button",{type:"button",className:p("w-full sm:w-auto min-w-[200px] h-11 sm:h-12 px-4 flex items-center gap-2.5 bg-white dark:bg-dark-surface border-2 border-gray-300 dark:border-dark-border rounded-xl font-sans font-medium text-base text-gray-700 dark:text-dark-text cursor-pointer transition-all duration-200 outline-none select-none hover:border-gray-400 dark:hover:border-dark-border/80 hover:shadow-sm focus-visible:ring-3 focus-visible:ring-primary-300",f&&"border-primary-500 ring-3 ring-primary-100 dark:ring-primary-900/30"),onClick:()=>w(!f),"aria-label":"Selecionar data","aria-expanded":f,children:[r.jsx(Je,{className:"w-5 h-5 text-gray-400 dark:text-dark-text-muted flex-shrink-0"}),r.jsx("span",{className:"flex-1 text-left whitespace-nowrap overflow-hidden text-ellipsis",children:G()}),l||d?r.jsx("button",{type:"button",className:"flex items-center justify-center w-5 h-5 bg-gray-200 dark:bg-dark-surface-light border-none rounded-full text-[10px] text-gray-600 dark:text-dark-text-muted transition-all duration-150 flex-shrink-0 hover:bg-gray-300 dark:hover:bg-dark-surface hover:scale-105 active:scale-95",onClick:F=>{F.stopPropagation(),X()},"aria-label":"Limpar seleção",children:r.jsx(pe,{className:"w-3 h-3"})}):r.jsx(De,{className:"w-4 h-4 text-gray-400 dark:text-dark-text-muted flex-shrink-0"})]}),f&&r.jsxs(r.Fragment,{children:[r.jsx("div",{className:"fixed inset-0 z-40 sm:hidden",onClick:()=>w(!1)}),r.jsxs("div",{className:p("absolute top-[calc(100%+8px)] left-0 sm:left-auto z-50 min-w-[280px] bg-white dark:bg-dark-surface border border-gray-300 dark:border-dark-border rounded-2xl shadow-xl animate-slideUp sm:animate-slideDown","w-[calc(100vw-32px)] max-w-[340px] left-1/2 -translate-x-1/2 sm:left-0 sm:translate-x-0"),children:[r.jsxs("div",{className:"flex flex-col gap-1 p-3",children:[r.jsx("button",{type:"button",className:p("w-full px-3 py-2 text-left font-sans text-sm font-medium text-gray-700 dark:text-dark-text rounded-xl border-none bg-transparent cursor-pointer transition-all hover:bg-gray-150 dark:hover:bg-dark-surface-light min-h-[40px]",c==="today"&&"bg-primary-50 dark:bg-primary-950/20 text-primary-700 dark:text-primary-400 font-semibold"),onClick:()=>T("today"),children:"Hoje"}),r.jsx("button",{type:"button",className:p("w-full px-3 py-2 text-left font-sans text-sm font-medium text-gray-700 dark:text-dark-text rounded-xl border-none bg-transparent cursor-pointer transition-all hover:bg-gray-150 dark:hover:bg-dark-surface-light min-h-[40px]",c==="yesterday"&&"bg-primary-50 dark:bg-primary-950/20 text-primary-700 dark:text-primary-400 font-semibold"),onClick:()=>T("yesterday"),children:"Ontem"}),r.jsx("button",{type:"button",className:p("w-full px-3 py-2 text-left font-sans text-sm font-medium text-gray-700 dark:text-dark-text rounded-xl border-none bg-transparent cursor-pointer transition-all hover:bg-gray-150 dark:hover:bg-dark-surface-light min-h-[40px]",c==="last7days"&&"bg-primary-50 dark:bg-primary-950/20 text-primary-700 dark:text-primary-400 font-semibold"),onClick:()=>T("last7days"),children:"Últimos 7 dias"}),r.jsx("button",{type:"button",className:p("w-full px-3 py-2 text-left font-sans text-sm font-medium text-gray-700 dark:text-dark-text rounded-xl border-none bg-transparent cursor-pointer transition-all hover:bg-gray-150 dark:hover:bg-dark-surface-light min-h-[40px]",c==="last30days"&&"bg-primary-50 dark:bg-primary-950/20 text-primary-700 dark:text-primary-400 font-semibold"),onClick:()=>T("last30days"),children:"Últimos 30 dias"})]}),r.jsx("div",{className:"h-[1px] mx-3 my-1 bg-gray-200 dark:bg-dark-border"}),r.jsxs("div",{className:"flex flex-col gap-3.5 p-4 bg-gray-50/50 dark:bg-dark-bg/20 rounded-b-2xl",children:[r.jsxs("label",{className:"flex flex-col gap-1.5 font-sans text-xs font-semibold text-gray-500 dark:text-dark-text-muted uppercase tracking-wider",children:["Data inicial",r.jsx("input",{type:"date",className:"w-full px-3 py-2 bg-white dark:bg-dark-surface border border-gray-300 dark:border-dark-border rounded-lg font-sans text-sm text-gray-900 dark:text-dark-text cursor-pointer outline-none transition-colors hover:border-gray-400 focus:border-primary-500",value:l,onChange:C,max:b()})]}),s&&r.jsxs("label",{className:"flex flex-col gap-1.5 font-sans text-xs font-semibold text-gray-500 dark:text-dark-text-muted uppercase tracking-wider",children:["Data final",r.jsx("input",{type:"date",className:"w-full px-3 py-2 bg-white dark:bg-dark-surface border border-gray-300 dark:border-dark-border rounded-lg font-sans text-sm text-gray-900 dark:text-dark-text cursor-pointer outline-none transition-colors hover:border-gray-400 focus:border-primary-500",value:d,onChange:S,min:l,max:b()})]})]})]})]})]})};function Wa({date:e,videoCount:t,sticky:a=!1,onClick:s,onToggleCollapse:n,isCollapsed:l=!1,className:i}){return r.jsxs("div",{className:p("relative p-3.5 sm:p-4 my-4 mb-3 bg-gradient-to-r from-primary-500 to-primary-600 text-white rounded-2xl shadow-md overflow-hidden select-none animate-slideDown","before:absolute before:inset-0 before:bg-gradient-to-r before:from-transparent before:via-white/20 before:to-transparent before:opacity-0 before:pointer-events-none before:transition-opacity hover:before:opacity-100",a&&"sticky top-0 z-30 mt-0",n&&"cursor-pointer",i),onClick:n,children:[r.jsxs("div",{className:p("relative flex items-center justify-center gap-2.5 mx-auto w-fit z-10",s&&"cursor-pointer transition-all hover:scale-[1.03] active:scale-[0.97]"),onClick:d=>{s&&(d.stopPropagation(),s())},children:[r.jsx(Je,{className:"w-5 h-5 shrink-0"}),r.jsx("h2",{className:"m-0 font-heading text-lg sm:text-xl font-bold text-shadow-md",children:e}),t!==void 0&&t>0&&r.jsx("span",{className:"inline-flex items-center justify-center min-w-[24px] h-6 sm:min-w-[28px] sm:h-7 px-1.5 sm:px-2 bg-white/20 backdrop-blur-md rounded-full font-sans text-xs sm:text-sm font-bold shadow-xs",children:t})]}),n&&r.jsx("button",{type:"button",className:"absolute right-4 top-1/2 -translate-y-1/2 bg-transparent border-none text-white cursor-pointer p-2 rounded-full hover:bg-white/15 transition-all duration-200 flex items-center justify-center w-8 h-8",onClick:d=>{d.stopPropagation(),n()},"aria-label":l?"Expandir":"Colapsar",children:r.jsx(De,{className:p("w-5 h-5 transition-transform duration-250 ease-out",l?"-rotate-90":"rotate-0")})})]})}function Ga({tabs:e,activeTab:t,onChange:a,className:s}){return r.jsx("div",{className:p("border-b border-gray-150 dark:border-dark-border/40 flex gap-2 overflow-x-auto select-none",s),children:e.map(n=>{const l=n.id===t;return r.jsxs("button",{type:"button",onClick:()=>a(n.id),className:p("flex items-center gap-2 px-4 py-3 text-xs font-bold uppercase tracking-wider border-b-2 transition-all cursor-pointer whitespace-nowrap outline-none",l?"border-primary-500 text-primary-500 font-extrabold":"border-transparent text-gray-500 hover:text-gray-700 dark:text-dark-text-muted dark:hover:text-dark-text"),children:[n.icon,n.label]},n.id)})})}const Ua={sm:"text-xs py-1.5 px-2.5 sm:px-3 gap-1 sm:gap-1.5 rounded-xl",md:"text-sm py-2 px-3 sm:px-4 gap-1.5 sm:gap-2 rounded-xl",lg:"text-base py-2.5 px-4 sm:px-5 gap-2 rounded-2xl"};function Ha({options:e,value:t,onChange:a,size:s="sm",fullWidth:n=!1,className:l}){const i=e.length===2?"grid-cols-2":e.length===3?"grid-cols-3":e.length===4?"grid-cols-4":"grid-flow-col auto-cols-fr";return r.jsx("div",{role:"tablist",className:p("grid sm:flex items-center gap-1 p-1 bg-gray-100/90 dark:bg-dark-surface rounded-2xl border border-gray-200/70 dark:border-dark-border/70 shadow-xs select-none scrollbar-none",i,n?"w-full":"w-full sm:w-auto",l),children:e.map(d=>{const m=d.value===t;return r.jsxs("button",{type:"button",role:"tab","aria-selected":m,disabled:d.disabled,title:d.title||d.label,onClick:()=>!d.disabled&&a(d.value),className:p("flex items-center justify-center font-bold transition-all duration-200 cursor-pointer whitespace-nowrap text-center outline-none",Ua[s],m?"bg-white dark:bg-dark-surface-light text-primary-600 dark:text-primary-400 shadow-xs":"text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-white",d.disabled&&"opacity-50 cursor-not-allowed pointer-events-none"),children:[d.icon&&r.jsx("span",{className:"shrink-0 flex items-center",children:d.icon}),d.mobileLabel?r.jsxs(r.Fragment,{children:[r.jsx("span",{className:"inline sm:hidden",children:d.mobileLabel}),r.jsx("span",{className:"hidden sm:inline",children:d.label})]}):r.jsx("span",{children:d.label}),d.badge&&r.jsx("span",{className:"shrink-0 ml-1",children:d.badge})]},d.value)})})}function Ya({badge:e,title:t,description:a,primaryAction:s,secondaryAction:n,ambientGlow:l=!0,className:i}){const d=(m,c)=>{const f=!!m.href?"a":"button",w="w-full sm:w-auto px-8 py-4 rounded-2xl font-bold text-base transition-all duration-200 flex items-center justify-center gap-2 cursor-pointer border border-transparent active:scale-95 shadow-sm",b=(m.variant||(c?"primary":"secondary"))==="primary"?"bg-primary-500 text-white hover:bg-primary-600 shadow-primary-500/20 hover:shadow-lg":(m.variant||"secondary")==="outline"?"border-gray-300 dark:border-dark-border text-gray-700 dark:text-dark-text hover:bg-gray-100 dark:hover:bg-dark-surface":"bg-gray-100 dark:bg-dark-surface-light hover:bg-gray-200 dark:hover:bg-dark-surface text-gray-700 dark:text-dark-text";return r.jsxs(f,{href:m.href,onClick:m.onClick,className:p(w,b),children:[m.icon&&r.jsx("span",{className:"shrink-0",children:m.icon}),r.jsx("span",{children:m.label})]},m.label)};return r.jsxs("section",{className:p("relative overflow-hidden bg-gradient-to-br from-primary-500/10 via-transparent to-transparent py-16 sm:py-24 border-b border-gray-100 dark:border-dark-border/40 select-none",i),children:[l&&r.jsxs(r.Fragment,{children:[r.jsx("div",{className:"absolute top-0 right-0 -z-10 w-[300px] h-[300px] bg-primary-500/10 rounded-full blur-3xl opacity-60 dark:opacity-20 animate-pulse pointer-events-none"}),r.jsx("div",{className:"absolute bottom-0 left-0 -z-10 w-[250px] h-[250px] bg-secondary-500/10 rounded-full blur-3xl opacity-60 dark:opacity-20 pointer-events-none"})]}),r.jsxs("div",{className:"w-full max-w-[1400px] mx-auto px-4 text-center",children:[e&&r.jsxs("div",{className:"inline-flex items-center gap-2 px-3 py-1.5 rounded-full bg-primary-50 dark:bg-primary-950/20 border border-primary-100 dark:border-primary-950/30 text-xs sm:text-sm font-bold text-primary-600 dark:text-primary-400 mb-6 animate-fadeIn",children:[e.icon&&r.jsx("span",{className:"shrink-0",children:e.icon}),r.jsx("span",{children:e.text})]}),r.jsx("h1",{className:"text-4xl sm:text-5xl md:text-6xl font-heading font-extrabold tracking-tight text-gray-800 dark:text-dark-text leading-[1.15]",children:t}),a&&r.jsx("p",{className:"mt-6 max-w-2xl mx-auto text-base sm:text-lg md:text-xl text-gray-600 dark:text-dark-text-muted leading-relaxed",children:a}),(s||n)&&r.jsxs("div",{className:"mt-10 flex flex-col sm:flex-row items-center justify-center gap-4",children:[s&&d(s,!0),n&&d(n,!1)]})]})]})}const Ka={primary:"from-primary-600 to-primary-800 dark:from-primary-700 dark:to-primary-900 border-primary-500/20 text-white",dark:"from-gray-900 to-gray-800 dark:from-dark-surface dark:to-dark-surface-light border-gray-700 text-white",emerald:"from-emerald-600 to-teal-800 dark:from-emerald-700 dark:to-teal-900 border-emerald-500/20 text-white"};function Ja({title:e,description:t,icon:a,actionText:s,actionIcon:n=r.jsx(ba,{className:"w-5 h-5"}),onAction:l,actionHref:i,variant:d="primary",className:m}){const u=!!i?"a":"button";return r.jsx("section",{className:p("w-full max-w-[1400px] mx-auto px-4 py-12 select-none",m),children:r.jsxs("div",{className:p("relative rounded-3xl overflow-hidden bg-gradient-to-r shadow-xl py-12 px-6 sm:px-12 text-center flex flex-col items-center gap-6 border",Ka[d]),children:[r.jsx("div",{className:"absolute top-0 left-0 w-full h-full bg-[radial-gradient(ellipse_at_top,_var(--tw-gradient-stops))] from-white/10 via-transparent to-transparent pointer-events-none"}),a&&r.jsx("div",{className:"p-3.5 rounded-2xl bg-white/10 border border-white/15 flex items-center justify-center",children:a}),r.jsxs("div",{className:"max-w-2xl",children:[r.jsx("h2",{className:"text-2xl sm:text-3xl font-heading font-extrabold m-0 leading-tight",children:e}),r.jsx("p",{className:"text-xs sm:text-sm opacity-90 mt-3 leading-relaxed",children:t})]}),r.jsxs(u,{href:i,onClick:l,className:"w-full sm:w-auto mt-2 px-8 py-4 rounded-2xl bg-white text-primary-700 font-bold text-base hover:bg-primary-50 active:scale-95 transition-all duration-200 cursor-pointer shadow-md flex items-center justify-center gap-2 border-none hover:scale-[1.02]",children:[r.jsx("span",{children:s}),n&&r.jsx("span",{className:"shrink-0",children:n})]})]})})}const Xa={2:"grid-cols-1 md:grid-cols-2",3:"grid-cols-1 md:grid-cols-2 lg:grid-cols-3",4:"grid-cols-1 md:grid-cols-2 lg:grid-cols-4"};function Za({steps:e,columns:t=4,className:a}){return r.jsx("div",{className:p("grid gap-6 sm:gap-8 relative select-none",Xa[t],a),children:e.map((s,n)=>{const l=s.stepNumber!==void 0?s.stepNumber:n+1,i=typeof l=="number"&&l<10?`0${l}`:`${l}`;return r.jsxs("div",{className:"relative p-6 rounded-3xl border border-gray-150/40 dark:border-dark-border/40 bg-white dark:bg-dark-surface hover:shadow-md transition-all duration-300 flex flex-col gap-4 text-center md:text-left hover:-translate-y-1",children:[r.jsxs("div",{className:"flex items-center justify-center md:justify-between w-full",children:[s.icon&&r.jsx("div",{className:"p-3.5 rounded-2xl bg-primary-50 dark:bg-primary-950/20 border border-primary-100 dark:border-primary-950/30 flex items-center justify-center",children:s.icon}),r.jsx("span",{className:"hidden md:inline text-5xl font-black text-gray-100 dark:text-dark-border/30 select-none",children:i})]}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-lg font-bold text-gray-800 dark:text-dark-text mb-2",children:s.title}),r.jsx("p",{className:"text-xs sm:text-sm text-gray-500 dark:text-dark-text-muted leading-relaxed",children:s.description})]})]},n)})})}function Qa({courts:e,selectedCourt:t,onSelectCourt:a,allLabel:s="Todas as Quadras",title:n="Filtrar por Quadra:",defaultCollapsed:l=!0,className:i}){const[d,m]=k.useState(l);return r.jsxs("div",{className:p("border-b border-gray-150 dark:border-dark-border/40 transition-all duration-200 select-none",d?"mb-3 sm:mb-4 pb-1.5 sm:pb-2":"mb-5 sm:mb-6 pb-3 sm:pb-4",i),children:[r.jsxs("div",{onClick:()=>m(!d),className:p("flex items-center justify-between cursor-pointer select-none group/quadras min-h-[38px] sm:min-h-[42px] py-1 active:opacity-80 transition-all touch-manipulation",!d&&"mb-2"),children:[r.jsxs("div",{className:"flex items-center gap-2 flex-wrap min-w-0",children:[r.jsx(Ze,{className:"w-4 h-4 text-gray-500 shrink-0"}),r.jsx("h2",{className:"text-sm font-bold text-gray-600 dark:text-dark-text-muted m-0",children:n}),d&&r.jsx("span",{className:"text-xs text-primary-600 dark:text-primary-400 font-bold bg-primary-50 dark:bg-primary-950/20 border border-primary-100 dark:border-primary-950/30 px-2.5 py-0.5 rounded-full animate-fadeIn ml-2",children:t?t.nome:s})]}),r.jsx("div",{className:"text-gray-400 group-hover/quadras:text-gray-600 dark:group-hover/quadras:text-dark-text transition-colors duration-150",children:d?r.jsx(De,{className:"w-4 h-4"}):r.jsx(ga,{className:"w-4 h-4"})})]}),r.jsx("div",{className:p("grid transition-all duration-300 ease-in-out overflow-hidden",d?"grid-rows-[0fr] opacity-0":"grid-rows-[1fr] opacity-100"),children:r.jsx("div",{className:"min-h-0 overflow-hidden",children:e.length===0?r.jsx("div",{className:"text-xs text-gray-500 dark:text-dark-text-muted py-2",children:"Nenhuma quadra disponível para esta arena."}):r.jsxs("div",{className:"flex flex-wrap gap-2.5 pt-2 pb-1",children:[r.jsx("button",{type:"button",onClick:()=>a(null),className:p("px-4.5 py-2.5 min-h-[44px] rounded-xl text-sm font-semibold border transition-all duration-200 cursor-pointer focus:outline-none active:scale-95 touch-manipulation",t===null?"bg-primary-500 text-white border-primary-500 shadow-xs shadow-primary-500/10 hover:bg-primary-600 hover:border-primary-600":"bg-gray-100 dark:bg-dark-surface-light text-gray-700 dark:text-dark-text border-transparent hover:bg-gray-200 dark:hover:bg-dark-surface-light/80"),children:s}),e.map(c=>{const u=(t==null?void 0:t.id)===c.id;return r.jsx("button",{type:"button",onClick:()=>a(c),className:p("px-4.5 py-2.5 min-h-[44px] rounded-xl text-sm font-semibold border transition-all duration-200 cursor-pointer focus:outline-none active:scale-95 touch-manipulation",u?"bg-primary-500 text-white border-primary-500 shadow-xs shadow-primary-500/10 hover:bg-primary-600 hover:border-primary-600":"bg-gray-100 dark:bg-dark-surface-light text-gray-700 dark:text-dark-text border-transparent hover:bg-gray-200 dark:hover:bg-dark-surface-light/80"),children:c.nome},c.id)})]})})})]})}const at=({videoUrl:e,fileName:t,downloadCount:a=0,onDownloadIncrement:s,onDownloadComplete:n,onDownloadChange:l,onError:i,size:d="md",iconOnly:m=!1,useLucide:c=!0})=>{const[u,f]=k.useState("idle"),[w,b]=k.useState(0),[R,_]=k.useState(a),T=async()=>{var I;try{f("downloading"),b(0);const g=await fetch(e);if(!g.ok)throw new Error("Falha ao baixar o vídeo");const L=g.headers.get("content-length");if(!L)throw new Error("Não foi possível obter o tamanho do arquivo");const le=(I=g.body)==null?void 0:I.getReader();if(!le)throw new Error("Não foi possível ler o stream do vídeo");let ie=0;const ae=[],$=parseInt(L,10);for(;;){const{done:re,value:de}=await le.read();if(re)break;ae.push(de),ie+=de.length,b(Math.round(ie/$*100))}b(100);const V=new Blob(ae),H=window.URL.createObjectURL(V),B=document.createElement("a");B.href=H,B.download=t,document.body.appendChild(B),B.click(),document.body.removeChild(B),window.URL.revokeObjectURL(H),f("success");const ee=R+1;if(_(ee),l==null||l(ee),setTimeout(()=>{f("idle"),b(0)},2e3),s)try{const re=await s();re!==ee&&(_(re),l==null||l(re))}catch(re){i==null||i(re)}n==null||n()}catch(g){f("error"),i==null||i(g),setTimeout(()=>{f("idle"),b(0)},2e3)}},C={sm:16,md:20,lg:24},S=()=>{if(c)switch(u){case"downloading":return r.jsx(Le,{className:"animate-spin text-primary-500",size:C[d]});case"success":return r.jsx(Xe,{className:"text-green-600 dark:text-green-400",size:C[d]});case"error":return r.jsx(pe,{className:"text-red-600 dark:text-red-400",size:C[d]});default:return r.jsx(Ar,{className:"text-gray-600 dark:text-dark-text-muted group-hover:text-primary-500 transition-colors",size:C[d]})}switch(u){case"downloading":return"⏳";case"success":return"✓";case"error":return"✕";default:return"⬇️"}},X=()=>{switch(u){case"downloading":return`${w}%`;case"success":return"Baixado!";case"error":return"Erro";default:return m?"":"Download"}},G={idle:"bg-gray-100 dark:bg-dark-surface hover:bg-gray-200 dark:hover:bg-dark-surface-light border-gray-300 dark:border-dark-border text-gray-700 dark:text-dark-text hover:-translate-y-0.5",downloading:"bg-primary-50 dark:bg-primary-900/20 border-primary-300 dark:border-primary-800 text-primary-700 dark:text-primary-400",success:"bg-green-50 dark:bg-green-950/20 border-green-300 dark:border-green-800 text-green-700 dark:text-green-400 animate-successPulse",error:"bg-red-50 dark:bg-red-950/20 border-red-300 dark:border-red-800 text-red-700 dark:text-red-400 animate-shake"},Z={sm:"px-2 py-1 text-sm min-h-[32px] rounded-md",md:"px-3 py-2 text-base min-h-[40px] sm:min-h-[44px] rounded-md",lg:"px-4 py-3 text-lg min-h-[48px] sm:min-h-[52px] rounded-lg"},F={sm:"min-w-[16px] h-4 text-[10px] px-1",md:"min-w-[20px] h-5 text-xs px-1.5",lg:"min-w-[22px] h-[22px] text-xs px-2"};return r.jsxs("button",{className:p("relative inline-flex items-center gap-2 font-semibold cursor-pointer transition-all duration-200 select-none border overflow-hidden focus-visible:ring-3 focus-visible:ring-primary-300 focus-visible:ring-offset-2 disabled:opacity-75 disabled:cursor-not-allowed",G[u],Z[d]),onClick:T,disabled:u==="downloading","aria-label":`Baixar vídeo ${t}`,children:[r.jsx("span",{className:"flex items-center justify-center leading-none flex-shrink-0",children:S()}),!m&&r.jsxs("span",{className:"flex items-center gap-1.5 z-10",children:[r.jsx("span",{className:"whitespace-nowrap",children:X()}),R>0&&r.jsx("span",{className:p("inline-flex items-center justify-center rounded-full bg-primary-500 text-white font-bold",F[d]),children:R})]}),u==="downloading"&&r.jsx("div",{className:"absolute bottom-0 left-0 right-0 h-[3px] bg-primary-100 dark:bg-primary-900 overflow-hidden",children:r.jsx("div",{className:"h-full bg-gradient-to-r from-primary-500 to-primary-600 transition-all duration-250 ease-out",style:{width:`${w}%`}})})]})},st=({initialLikes:e=0,onLike:t,onLikeChange:a,size:s="md",iconOnly:n=!1,disabled:l=!1,useLucide:i=!0})=>{const[d,m]=k.useState(e),[c,u]=k.useState(!1),f=async()=>{if(l||c)return;const T=d+1;if(u(!0),m(T),a==null||a(T),t)try{const C=await t();m(C),C!==T&&(a==null||a(C))}catch{m(d),a==null||a(d)}finally{setTimeout(()=>u(!1),600)}else setTimeout(()=>u(!1),600)},w={sm:"px-2 py-1 text-sm min-h-[32px]",md:"px-3 py-2 text-base min-h-[40px] sm:min-h-[44px]",lg:"px-4 py-3 text-lg min-h-[48px] sm:min-h-[52px]"},b={sm:"text-base",md:"text-lg",lg:"text-xl"},R={sm:16,md:20,lg:24},_={sm:"min-w-[16px] h-4 text-[10px] px-1",md:"min-w-[20px] h-5 text-xs px-1.5",lg:"min-w-[22px] h-[22px] text-xs px-2"};return r.jsxs("button",{className:p("relative inline-flex items-center justify-center gap-2 font-semibold cursor-pointer transition-all duration-200 select-none rounded-lg border focus-visible:ring-3 focus-visible:ring-primary-300 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed","bg-primary-50 border-primary-300 text-primary-700 hover:bg-primary-100 hover:border-primary-400 active:scale-95",w[s],c&&"animate-heartBeat"),onClick:f,disabled:l,"aria-label":"Curtir vídeo","aria-pressed":!0,children:[r.jsxs("span",{className:"relative flex items-center justify-center leading-none flex-shrink-0",children:[i?r.jsx(Se,{className:p("fill-rose-500 text-rose-500 transition-transform duration-150",c&&"animate-iconPop"),size:R[s]}):r.jsx("span",{className:p("flex items-center justify-center transition-transform duration-150",c&&"animate-iconPop"),children:"❤️"}),c&&r.jsx(r.Fragment,{children:i?r.jsxs(r.Fragment,{children:[r.jsx(Se,{className:"absolute pointer-events-none opacity-0 animate-heartFloat1 fill-rose-500 text-rose-500",size:R[s]-4}),r.jsx(Se,{className:"absolute pointer-events-none opacity-0 animate-heartFloat2 fill-rose-500 text-rose-500",size:R[s]-4}),r.jsx(Se,{className:"absolute pointer-events-none opacity-0 animate-heartFloat3 fill-rose-500 text-rose-500",size:R[s]-4})]}):r.jsxs(r.Fragment,{children:[r.jsx("span",{className:p("absolute text-sm pointer-events-none opacity-0 animate-heartFloat1",b[s]),children:"❤️"}),r.jsx("span",{className:p("absolute text-sm pointer-events-none opacity-0 animate-heartFloat2",b[s]),children:"❤️"}),r.jsx("span",{className:p("absolute text-sm pointer-events-none opacity-0 animate-heartFloat3",b[s]),children:"❤️"})]})})]}),!n&&r.jsxs("span",{className:"flex items-center gap-1.5",children:[r.jsx("span",{className:"whitespace-nowrap",children:"Curtido"}),d>0&&r.jsx("span",{className:p("inline-flex items-center justify-center rounded-full bg-primary-600 text-white font-bold transition-all duration-150 animate-countBounce",_[s]),children:d})]})]})};function $a({video:e,showShare:t=!0,onPlay:a,onShare:s,onLikeChange:n,onDownloadComplete:l,onDownloadIncrement:i,extraActions:d,className:m}){const[c,u]=k.useState(!1),[f,w]=k.useState(!1),b=k.useRef(null),[R,_]=k.useState(e.curtidas),[T,C]=k.useState(e.downloads),[S,X]=k.useState(e.visualizacoes||0),[G,Z]=k.useState(e.compartilhamentos||0),F=e.is_vertical===void 0||e.is_vertical!==!1&&e.is_vertical!==0;k.useEffect(()=>{_(e.curtidas),C(e.downloads),X(e.visualizacoes||0),Z(e.compartilhamentos||0)},[e.curtidas,e.downloads,e.visualizacoes,e.compartilhamentos]);const I=e.dthr&&e.dthr.length>=16?e.dthr.substring(11,16):"",g=e.dthr&&e.dthr.length>=10?new Date(e.dthr).toLocaleDateString("pt-BR",{day:"2-digit",month:"2-digit"}):"",L=V=>V.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/\s+/g,"-").replace(/[^\w-]/g,"").replace(/-{2,}/g,"-").trim(),le=["Rock10",e.arena_nome?L(e.arena_nome):null,e.quadra_nome?L(e.quadra_nome):null,L(e.nome.replace(/\.mp4$/i,""))].filter(Boolean).join("-")+".mp4",ie=()=>{w(!0),u(!0),X(V=>V+1),a&&a(e)},ae=()=>{b.current&&(c?b.current.pause():ie())},$=async()=>{if(s){s(e);return}const V=`${window.location.origin}/video/${e.id}`,H={title:e.nome,text:"Confira este lance gravado no Rock10 Replay:",url:V};if(navigator.share)try{await navigator.share(H),Z(B=>B+1);return}catch{}try{await navigator.clipboard.writeText(`${H.text} ${H.url}`),Z(B=>B+1),alert("Link copiado para a área de transferência!")}catch{window.open(H.url,"_blank")}};return r.jsxs("article",{className:p("group relative flex flex-col bg-white dark:bg-dark-surface rounded-2xl shadow-xs hover:shadow-xl hover:-translate-y-1 transition-all duration-300 overflow-hidden border border-gray-150 dark:border-dark-border",m),children:[r.jsxs("div",{className:p("relative w-full overflow-hidden bg-black z-10 cursor-pointer select-none",F?"aspect-[9/16]":"aspect-[16/9]",c&&"rounded-b-none"),onClick:ae,children:[r.jsx("video",{ref:b,className:"w-full h-full object-contain transition-transform duration-300 bg-black group-hover:scale-[1.02]",src:f?e.url:void 0,poster:e.poster,controls:c,autoPlay:c,playsInline:!0,muted:!1,preload:f?"metadata":"none",onPlay:()=>u(!0),onPause:()=>u(!1)}),!c&&r.jsxs(r.Fragment,{children:[r.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-black/15 transition-opacity duration-300 z-20 pointer-events-none group-hover:bg-black/30",children:r.jsx("div",{className:"w-14 h-14 sm:w-16 sm:h-16 flex items-center justify-center bg-white/95 dark:bg-dark-surface/95 text-primary-500 rounded-full shadow-2xl backdrop-blur-sm transition-transform duration-200 hover:scale-110 active:scale-95",children:r.jsx(_a,{className:"w-6 h-6 fill-current ml-1"})})}),r.jsxs("div",{className:"absolute left-0 right-0 bottom-0 bg-gradient-to-t from-white via-white/80 to-transparent dark:from-dark-surface dark:via-dark-surface/85 dark:to-transparent pt-8 pb-3 px-3.5 flex flex-col gap-1 z-20 pointer-events-none",children:[(e.arena_nome||e.quadra_nome)&&r.jsxs("div",{className:"text-xs font-bold text-primary-600 dark:text-primary-400 flex items-center gap-1.5 leading-none",children:[r.jsx(Ve,{className:"w-3.5 h-3.5"}),r.jsxs("span",{children:[e.arena_nome||""," ",e.arena_nome&&e.quadra_nome?"•":""," ",e.quadra_nome||""]})]}),r.jsxs("div",{className:"flex justify-between items-center w-full mt-1.5",children:[r.jsxs("span",{className:"text-xs font-bold text-gray-800 dark:text-dark-text flex items-center gap-1.5 leading-none",children:[r.jsx(Je,{className:"w-3.5 h-3.5 text-gray-500 dark:text-dark-text-muted"})," ",g,r.jsx(ka,{className:"w-3.5 h-3.5 text-gray-500 dark:text-dark-text-muted ml-0.5"})," ",I]}),r.jsxs("div",{className:"flex gap-2 sm:gap-2.5 items-center text-xs font-bold text-gray-800 dark:text-dark-text leading-none",children:[r.jsxs("span",{className:"flex items-center gap-1",title:"Visualizações",children:[r.jsx(va,{className:"w-3.5 h-3.5 text-gray-500 dark:text-dark-text-muted"})," ",S]}),r.jsxs("span",{className:"flex items-center gap-1",title:"Compartilhamentos",children:[r.jsx(Qe,{className:"w-3.5 h-3.5 text-gray-500 dark:text-dark-text-muted"})," ",G]}),r.jsxs("span",{className:"flex items-center gap-1",title:"Downloads",children:[r.jsx(Ar,{className:"w-3.5 h-3.5 text-gray-500 dark:text-dark-text-muted"})," ",T]}),r.jsxs("span",{className:"flex items-center gap-1",title:"Curtidas",children:[r.jsx(Se,{className:"w-3.5 h-3.5 text-gray-500 dark:text-dark-text-muted"})," ",R]})]})]})]})]})]}),r.jsx("div",{className:"p-3.5 sm:p-4 flex flex-col gap-3 relative z-20 bg-white dark:bg-dark-surface flex-1",children:r.jsxs("div",{className:"flex gap-2.5 items-center justify-start pointer-events-auto",onClick:V=>V.stopPropagation(),children:[r.jsx(at,{videoUrl:e.url,fileName:le,downloadCount:T,size:"sm",iconOnly:!0,onDownloadIncrement:i?()=>i(e.id):void 0,onDownloadChange:V=>C(V),onDownloadComplete:()=>l==null?void 0:l(e.id)}),r.jsx(st,{videoId:e.id,initialLikes:R,size:"sm",iconOnly:!0,onLikeChange:V=>{_(V),n==null||n(e.id,!0)}}),t&&r.jsx(Br,{icon:r.jsx(Qe,{className:"w-4 h-4 text-gray-600 dark:text-dark-text"}),ariaLabel:"Compartilhar vídeo",variant:"ghost",size:"sm",rounded:!0,onClick:$}),d&&r.jsx("div",{className:"ml-auto flex items-center gap-2",children:d})]})})]})}function qa({arena:e,onClick:t,actionText:a="Ver Replays",extraBadge:s,className:n}){return r.jsxs("div",{onClick:()=>t==null?void 0:t(e),className:p("group bg-white dark:bg-dark-surface border border-gray-150 dark:border-dark-border rounded-2xl p-5 shadow-xs hover:shadow-md hover:-translate-y-1 transition-all duration-200 cursor-pointer flex flex-col justify-between",n),children:[r.jsxs("div",{className:"space-y-4",children:[r.jsxs("div",{className:"flex items-start justify-between gap-3",children:[r.jsx("div",{className:"w-12 h-12 rounded-xl bg-blue-50 dark:bg-blue-950/40 text-blue-600 dark:text-blue-400 flex items-center justify-center font-bold text-base shrink-0 overflow-hidden border border-blue-150 dark:border-blue-900/40",children:e.logo_url?r.jsx("img",{src:e.logo_url,alt:e.nome,className:"w-full h-full object-cover"}):r.jsx(Ra,{className:"w-6 h-6"})}),r.jsxs("div",{className:"flex items-center gap-1.5 flex-wrap justify-end",children:[s,e.ativo!==void 0&&r.jsx(Vr,{variant:e.ativo?"success":"danger",dot:!0,size:"sm",children:e.ativo?"Ativa":"Inativa"})]})]}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-base font-bold text-gray-900 dark:text-dark-text group-hover:text-primary-500 transition-colors line-clamp-1",children:e.nome}),(e.cidade||e.uf)&&r.jsxs("p",{className:"text-xs text-gray-500 dark:text-dark-text-muted font-medium flex items-center gap-1 mt-1",children:[r.jsx(Ve,{className:"w-3.5 h-3.5 text-gray-400 shrink-0"}),r.jsxs("span",{children:[e.cidade,e.cidade&&e.uf?" / ":"",e.uf]})]})]}),e.total_quadras!==void 0&&r.jsxs("div",{className:"flex items-center gap-1.5 text-xs font-semibold text-gray-600 dark:text-dark-text-muted pt-2 border-t border-gray-100 dark:border-dark-border",children:[r.jsx(Ze,{className:"w-4 h-4 text-emerald-500"}),r.jsxs("span",{children:[e.total_quadras," ",e.total_quadras===1?"quadra disponível":"quadras disponíveis"]})]})]}),r.jsxs("div",{className:"mt-4 pt-3 flex items-center justify-between text-xs font-bold text-primary-600 dark:text-primary-400 group-hover:text-primary-700 dark:group-hover:text-primary-300 transition-colors",children:[r.jsx("span",{children:a}),r.jsx(zr,{className:"w-4 h-4 transform group-hover:translate-x-1 transition-transform"})]})]})}const ot=["https://images.unsplash.com/photo-1626224583764-f87db24ac4ea?q=80&w=600&auto=format&fit=crop","https://images.unsplash.com/photo-1595435934249-5df7ed86e1c0?q=80&w=600&auto=format&fit=crop","https://images.unsplash.com/photo-1554068865-24cecd4e34b8?q=80&w=600&auto=format&fit=crop","https://images.unsplash.com/photo-1574629810360-7efbbe195018?q=80&w=600&auto=format&fit=crop"];function es({arena:e,courtCount:t,isMostAccessed:a,accessRank:s,rankBadge:n,actionText:l="Ver Replay",onClick:i,fallbackImage:d,className:m}){const c=d||ot[Math.abs(e.id)%ot.length],u=e.slug?`/Arenas/${e.slug}.png`:void 0,f=()=>e.banner_url||e.logo_url||u||c,[w,b]=k.useState(f);k.useEffect(()=>{b(f())},[e.banner_url,e.logo_url,e.slug,c]);const R=()=>{u&&w!==u&&(w===e.banner_url||w===e.logo_url)?b(u):w!==c&&b(c)},_=t!==void 0?t:e.total_quadras;return r.jsxs("div",{onClick:()=>i==null?void 0:i(e),className:p("group relative h-56 sm:h-72 md:h-80 rounded-2xl sm:rounded-3xl overflow-hidden border border-gray-150/40 dark:border-dark-border/40 shadow-md hover:shadow-xl dark:shadow-none bg-white dark:bg-dark-surface cursor-pointer select-none transition-all duration-300 hover:-translate-y-1.5 hover:scale-[1.01] active:scale-[0.99]",m),children:[n?r.jsx("div",{className:"absolute top-3 left-3 sm:top-4 sm:left-4 z-20 select-none animate-fadeIn",children:n}):s===1?r.jsx("div",{className:"absolute top-3 left-3 sm:top-4 sm:left-4 z-20 bg-gradient-to-r from-amber-500 to-amber-600 text-white text-[10px] sm:text-xs font-bold px-2.5 py-1 rounded-full shadow-md flex items-center gap-1 select-none animate-fadeIn border border-amber-300/30",children:"🔥 1ª mais acessada por você"}):s===2?r.jsx("div",{className:"absolute top-3 left-3 sm:top-4 sm:left-4 z-20 bg-gradient-to-r from-sky-500 to-blue-600 text-white text-[10px] sm:text-xs font-bold px-2.5 py-1 rounded-full shadow-md flex items-center gap-1 select-none animate-fadeIn border border-sky-300/30",children:"⚡ 2ª mais acessada por você"}):a?r.jsx("div",{className:"absolute top-3 left-3 sm:top-4 sm:left-4 z-20 bg-gradient-to-r from-amber-500 to-amber-600 text-white text-[10px] sm:text-xs font-bold px-2.5 py-1 rounded-full shadow-md flex items-center gap-1 select-none animate-fadeIn border border-amber-300/30",children:"🔥 Mais acessada por você"}):null,r.jsxs("div",{className:"absolute inset-0 z-0",children:[r.jsx("img",{src:w,onError:R,alt:e.nome,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-700 ease-out",loading:"lazy"}),r.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/90 via-black/45 to-black/25 transition-opacity duration-300 group-hover:opacity-95"})]}),r.jsxs("div",{className:"relative z-10 h-full w-full p-4 sm:p-6 flex flex-col justify-end text-white",children:[r.jsxs("div",{className:"mb-2 sm:mb-4",children:[r.jsx("h3",{className:"text-sm sm:text-xl md:text-2xl font-heading font-extrabold tracking-tight group-hover:text-primary-400 transition-colors duration-200 line-clamp-2",children:e.nome}),(e.cidade||e.uf)&&r.jsxs("div",{className:"flex items-center gap-1.5 mt-1.5 sm:mt-2.5 text-white/80 text-[10px] sm:text-sm",children:[r.jsx(Ve,{className:"w-3 h-3 sm:w-4 sm:h-4 flex-shrink-0 text-primary-400"}),r.jsxs("span",{className:"truncate",children:[e.cidade,e.cidade&&e.uf?" - ":"",e.uf]})]}),_!==void 0&&r.jsxs("div",{className:"flex items-center gap-1.5 mt-1 sm:mt-2 text-white/70 text-[9px] sm:text-xs font-semibold",children:[r.jsx(Ze,{className:"w-3 h-3 sm:w-3.5 sm:h-3.5 text-primary-400"}),r.jsxs("span",{children:[_," ",_===1?"Quadra":"Quadras"]})]})]}),r.jsxs("div",{className:"flex items-center justify-between border-t border-white/10 pt-2 sm:pt-4 mt-0.5 sm:mt-1",children:[r.jsx("span",{className:"text-xs sm:text-sm font-bold text-primary-400 group-hover:text-primary-300 transition-colors duration-200",children:l}),r.jsx("div",{className:"w-7 h-7 sm:w-9 sm:h-9 rounded-lg sm:rounded-xl bg-primary-500 group-hover:bg-primary-600 flex items-center justify-center transition-all duration-300 shadow-md group-hover:translate-x-1",children:r.jsx(zr,{className:"w-3 h-3 sm:w-4 sm:h-4 text-white"})})]})]})]})}const nt=["https://images.unsplash.com/photo-1626224583764-f87db24ac4ea?q=80&w=600&auto=format&fit=crop","https://images.unsplash.com/photo-1595435934249-5df7ed86e1c0?q=80&w=600&auto=format&fit=crop","https://images.unsplash.com/photo-1554068865-24cecd4e34b8?q=80&w=600&auto=format&fit=crop","https://images.unsplash.com/photo-1574629810360-7efbbe195018?q=80&w=600&auto=format&fit=crop"];function rs({arena:e,activeCourtsCount:t,instagramUrl:a,mapsUrl:s,onShare:n,shareCopied:l=!1,extraActions:i,fallbackImage:d,className:m}){const c=d||nt[Math.abs(e.id)%nt.length],u=e.slug?`/Arenas/${e.slug}.png`:void 0,f=()=>e.logo_url||e.banner_url||u||c,[w,b]=k.useState(f);k.useEffect(()=>{b(f())},[e.logo_url,e.banner_url,e.slug,c]);const R=()=>{u&&w!==u&&(w===e.logo_url||w===e.banner_url)?b(u):w!==c&&b(c)},_=t!==void 0?t:e.total_quadras;return r.jsxs("div",{className:p("bg-gradient-to-br from-primary-500/10 via-transparent to-transparent border border-gray-150 dark:border-dark-border/40 p-4 sm:p-5 rounded-2xl mb-3 sm:mb-4 shadow-xs flex flex-row justify-between items-center gap-4 select-none",m),children:[r.jsxs("div",{className:"flex items-center gap-3.5 text-left min-w-0 flex-1",children:[r.jsx("div",{className:"w-14 h-14 sm:w-16 sm:h-16 rounded-xl overflow-hidden border border-gray-200 dark:border-dark-border/60 shadow-xs shrink-0 bg-white flex items-center justify-center",children:w?r.jsx("img",{src:w,alt:`Logo ${e.nome}`,onError:R,className:"w-full h-full object-cover",loading:"lazy"}):r.jsx(Sa,{className:"w-7 h-7 text-primary-500"})}),r.jsxs("div",{className:"min-w-0 flex-1",children:[r.jsx("h1",{className:"text-xl sm:text-2xl font-heading font-extrabold text-gray-800 dark:text-dark-text mb-1 m-0 break-words whitespace-normal leading-tight",children:e.nome}),r.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1 text-xs text-gray-500 dark:text-dark-text-muted",children:[(e.cidade||e.uf)&&r.jsxs("div",{className:"flex items-center gap-1",children:[r.jsx(Ve,{className:"w-3.5 h-3.5 text-gray-400 shrink-0"}),r.jsxs("span",{children:[e.cidade,e.cidade&&e.uf?" - ":"",e.uf]})]}),_!==void 0&&_>0&&r.jsxs("div",{className:"flex items-center gap-1.5 pl-3 border-l border-gray-200 dark:border-dark-border/40",children:[r.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-green-500 animate-pulse"}),r.jsxs("span",{children:[_," ",_===1?"quadra":"quadras"]})]})]})]})]}),r.jsxs("div",{className:"flex flex-col gap-1.5 shrink-0",children:[n&&r.jsxs("button",{type:"button",onClick:n,className:p("relative flex items-center justify-center w-8 h-8 sm:w-8.5 sm:h-8.5 rounded-lg border transition-all duration-200 shadow-xs cursor-pointer touch-manipulation active:scale-95",l?"border-emerald-500 bg-emerald-500/10 text-emerald-600 dark:text-emerald-400":"border-gray-200 dark:border-dark-border/60 bg-white dark:bg-dark-surface hover:bg-gray-50 dark:hover:bg-dark-surface-light text-blue-600 dark:text-blue-400"),title:l?"Link copiado!":"Compartilhar link da Arena",children:[l?r.jsx(Xe,{className:"w-4 h-4 text-emerald-500"}):r.jsx(Qe,{className:"w-4 h-4"}),l&&r.jsx("span",{className:"absolute right-full mr-2 top-1/2 -translate-y-1/2 text-[10px] font-extrabold bg-emerald-600 text-white px-2 py-0.5 rounded-md shadow-md whitespace-nowrap pointer-events-none z-10 animate-fadeIn",children:"Copiado!"})]}),a&&r.jsx("a",{href:a,target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-center w-8 h-8 sm:w-8.5 sm:h-8.5 rounded-lg border border-gray-200 dark:border-dark-border/60 bg-white dark:bg-dark-surface hover:bg-gray-50 dark:hover:bg-dark-surface-light active:scale-95 transition-all duration-200 shadow-xs cursor-pointer touch-manipulation",title:"Instagram da Arena",children:r.jsxs("svg",{className:"w-4 h-4 text-pink-600 dark:text-pink-400",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",viewBox:"0 0 24 24",children:[r.jsx("rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5"}),r.jsx("path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z"}),r.jsx("line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5"})]})}),s&&r.jsx("a",{href:s,target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-center w-8 h-8 sm:w-8.5 sm:h-8.5 rounded-lg border border-gray-200 dark:border-dark-border/60 bg-white dark:bg-dark-surface hover:bg-gray-50 dark:hover:bg-dark-surface-light active:scale-95 transition-all duration-200 shadow-xs cursor-pointer touch-manipulation",title:"Como Chegar (Google Maps)",children:r.jsx(Na,{className:"w-4 h-4 text-primary-500"})}),i]})]})}function ts({items:e,intervalMs:t=5e3,height:a=90,autoplay:s=!0,onItemClick:n,badgeText:l,className:i}){const[d,m]=k.useState(0),c=k.useRef(null),u=e.map((C,S)=>typeof C=="string"?{id:S,imageUrl:C,alt:`Patrocinador ${S+1}`}:C),f=u[d];if(k.useEffect(()=>{if(!s||u.length<=1)return;const C=f!=null&&f.displayDurationMs&&f.displayDurationMs>0?f.displayDurationMs:t;return c.current=window.setTimeout(()=>{m(S=>(S+1)%u.length)},C),()=>{c.current&&window.clearTimeout(c.current)}},[d,s,u.length,f==null?void 0:f.displayDurationMs,t]),!u||u.length===0)return null;const w=e[d],b=()=>{n?n(w,d):f!=null&&f.linkUrl&&window.open(f.linkUrl,"_blank","noopener,noreferrer")},R=C=>{(C.key==="Enter"||C.key===" ")&&(C.preventDefault(),b())},_=typeof l=="function"?l(w):l||(f==null?void 0:f.title),T=typeof a=="number"?{height:`${a}px`}:{height:a};return r.jsxs("div",{role:"button",tabIndex:0,onClick:b,onKeyDown:R,style:T,"aria-label":(f==null?void 0:f.title)||(f==null?void 0:f.alt)||"Patrocinadores",className:p("relative w-full flex justify-center items-center overflow-hidden p-2 sm:p-4 box-border cursor-pointer group select-none",i),children:[u.map((C,S)=>r.jsx("div",{className:p("absolute inset-0 flex justify-center items-center opacity-0 scale-95 transition-all duration-500 ease-in-out pointer-events-none",S===d&&"opacity-100 scale-100"),"aria-hidden":S!==d,children:r.jsx("img",{src:C.imageUrl,alt:C.alt||C.title||`Patrocinador ${S+1}`,className:"max-h-full max-w-[85%] sm:max-w-[65%] object-contain drop-shadow-[0_4px_8px_rgba(0,0,0,0.12)] select-none",loading:"lazy"})},C.id??C.imageUrl+S)),_&&r.jsx("div",{className:"absolute bottom-1 right-2 sm:bottom-2 sm:right-3 bg-black/40 backdrop-blur-sm px-2 py-0.5 rounded text-[9px] sm:text-[10px] text-white/70 font-medium opacity-0 group-hover:opacity-100 transition-opacity duration-300 pointer-events-none",children:_})]})}function as({variant:e="full",themeMode:t="auto",size:a="md",className:s,...n}){const l={sm:e==="full"?"h-6 w-auto":"h-6 w-6",md:e==="full"?"h-8 w-auto":"h-8 w-8",lg:e==="full"?"h-10 w-auto":"h-10 w-10",xl:e==="full"?"h-12 w-auto":"h-12 w-12"};return e==="icon"?r.jsxs("svg",{viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:p(l[a],s),...n,children:[r.jsx("rect",{width:"40",height:"40",rx:"10",fill:"#0EA571"}),r.jsx("path",{d:"M12 28V12H21C23.7614 12 26 14.2386 26 17C26 19.7614 23.7614 22 21 22H16V28H12Z",fill:"white"}),r.jsx("path",{d:"M20 21L26 28H21L16.5 22.5H20V21Z",fill:"#FF6B35"}),r.jsx("circle",{cx:"28",cy:"14",r:"3",fill:"#FF6B35"})]}):r.jsxs("svg",{viewBox:"0 0 160 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:p(l[a],s),...n,children:[r.jsx("rect",{width:"40",height:"40",rx:"10",fill:"#0EA571"}),r.jsx("path",{d:"M12 28V12H21C23.7614 12 26 14.2386 26 17C26 19.7614 23.7614 22 21 22H16V28H12Z",fill:"white"}),r.jsx("path",{d:"M20 21L26 28H21L16.5 22.5H20V21Z",fill:"#FF6B35"}),r.jsx("circle",{cx:"28",cy:"14",r:"3",fill:"#FF6B35"}),r.jsx("text",{x:"48",y:"28",fontFamily:"Inter, system-ui, sans-serif",fontSize:"20",fontWeight:"800",fill:t==="light"?"#0F1419":t==="dark"?"#FFFFFF":"currentColor",letterSpacing:"-0.5px",children:"ROCK"}),r.jsx("text",{x:"112",y:"28",fontFamily:"Inter, system-ui, sans-serif",fontSize:"20",fontWeight:"900",fill:"#0EA571",children:"10"})]})}j.Alert=Pa,j.ArenaCard=qa,j.ArenaPosterCard=es,j.ArenaProfileHeader=rs,j.Badge=Vr,j.BannerCTA=Ja,j.Button=Fr,j.Card=Wr,j.CardContent=Yr,j.CardDescription=Hr,j.CardFooter=Kr,j.CardHeader=Gr,j.CardTitle=Ur,j.Checkbox=Dr,j.ConfirmDialog=Ma,j.CourtSelector=Qa,j.DatePicker=Va,j.DateSelector=Ba,j.DateSeparator=Wa,j.DownloadButton=at,j.EmptyState=Da,j.FilterBar=Fa,j.HeroBanner=Ya,j.IconButton=Br,j.Input=Or,j.LikeButton=st,j.Loading=Ia,j.Logo=as,j.Modal=tt,j.PageHeader=Oa,j.SearchBar=La,j.SegmentedControl=Ha,j.Select=Ir,j.Skeleton=Re,j.SponsorCarousel=ts,j.StatCard=Aa,j.StepCards=Za,j.Switch=Lr,j.Table=Zr,j.TableBody=$r,j.TableCell=rt,j.TableContainer=Xr,j.TableHead=et,j.TableHeader=Qr,j.TableRow=qr,j.Tabs=Ga,j.Textarea=Mr,j.VideoCard=$a,j.cn=p,Object.defineProperty(j,Symbol.toStringTag,{value:"Module"})});
|