@rock10/ui 1.0.8 → 1.0.9
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/Tabs.d.ts +15 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +252 -230
- package/dist/index.umd.js +11 -11
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(Y,N){typeof exports=="object"&&typeof module<"u"?N(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],N):(Y=typeof globalThis<"u"?globalThis:Y||self,N(Y.Rock10UI={},Y.React))})(this,function(Y,N){"use strict";function Xe(e){var a,o,t="";if(typeof e=="string"||typeof e=="number")t+=e;else if(typeof e=="object")if(Array.isArray(e)){var c=e.length;for(a=0;a<c;a++)e[a]&&(o=Xe(e[a]))&&(t&&(t+=" "),t+=o)}else for(o in e)e[o]&&(t&&(t+=" "),t+=o);return t}function zr(){for(var e,a,o=0,t="",c=arguments.length;o<c;o++)(e=arguments[o])&&(a=Xe(e))&&(t&&(t+=" "),t+=a);return t}const Ir=(e,a)=>{const o=new Array(e.length+a.length);for(let t=0;t<e.length;t++)o[t]=e[t];for(let t=0;t<a.length;t++)o[e.length+t]=a[t];return o},Dr=(e,a)=>({classGroupId:e,validator:a}),He=(e=new Map,a=null,o)=>({nextPart:e,validators:a,classGroupId:o}),Oe="-",$e=[],Fr="arbitrary..",Mr=e=>{const a=Wr(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:t}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return Lr(s);const u=s.split(Oe),m=u[0]===""&&u.length>1?1:0;return Ze(u,m,a)},getConflictingClassGroupIds:(s,u)=>{if(u){const m=t[s],d=o[s];return m?d?Ir(d,m):m:d||$e}return o[s]||$e}}},Ze=(e,a,o)=>{if(e.length-a===0)return o.classGroupId;const c=e[a],i=o.nextPart.get(c);if(i){const d=Ze(e,a+1,i);if(d)return d}const s=o.validators;if(s===null)return;const u=a===0?e.join(Oe):e.slice(a).join(Oe),m=s.length;for(let d=0;d<m;d++){const x=s[d];if(x.validator(u))return x.classGroupId}},Lr=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const a=e.slice(1,-1),o=a.indexOf(":"),t=a.slice(0,o);return t?Fr+t:void 0})(),Wr=e=>{const{theme:a,classGroups:o}=e;return Gr(o,a)},Gr=(e,a)=>{const o=He();for(const t in e){const c=e[t];Fe(c,o,t,a)}return o},Fe=(e,a,o,t)=>{const c=e.length;for(let i=0;i<c;i++){const s=e[i];Br(s,a,o,t)}},Br=(e,a,o,t)=>{if(typeof e=="string"){Vr(e,a,o);return}if(typeof e=="function"){Ur(e,a,o,t);return}Yr(e,a,o,t)},Vr=(e,a,o)=>{const t=e===""?a:Qe(a,e);t.classGroupId=o},Ur=(e,a,o,t)=>{if(Kr(e)){Fe(e(t),a,o,t);return}a.validators===null&&(a.validators=[]),a.validators.push(Dr(o,e))},Yr=(e,a,o,t)=>{const c=Object.entries(e),i=c.length;for(let s=0;s<i;s++){const[u,m]=c[s];Fe(m,Qe(a,u),o,t)}},Qe=(e,a)=>{let o=e;const t=a.split(Oe),c=t.length;for(let i=0;i<c;i++){const s=t[i];let u=o.nextPart.get(s);u||(u=He(),o.nextPart.set(s,u)),o=u}return o},Kr=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Jr=e=>{if(e<1)return{get:()=>{},set:()=>{}};let a=0,o=Object.create(null),t=Object.create(null);const c=(i,s)=>{o[i]=s,a++,a>e&&(a=0,t=o,o=Object.create(null))};return{get(i){let s=o[i];if(s!==void 0)return s;if((s=t[i])!==void 0)return c(i,s),s},set(i,s){i in o?o[i]=s:c(i,s)}}},Me="!",qe=":",Xr=[],er=(e,a,o,t,c)=>({modifiers:e,hasImportantModifier:a,baseClassName:o,maybePostfixModifierPosition:t,isExternal:c}),Hr=e=>{const{prefix:a,experimentalParseClassName:o}=e;let t=c=>{const i=[];let s=0,u=0,m=0,d;const x=c.length;for(let T=0;T<x;T++){const I=c[T];if(s===0&&u===0){if(I===qe){i.push(c.slice(m,T)),m=T+1;continue}if(I==="/"){d=T;continue}}I==="["?s++:I==="]"?s--:I==="("?u++:I===")"&&u--}const k=i.length===0?c:c.slice(m);let _=k,w=!1;k.endsWith(Me)?(_=k.slice(0,-1),w=!0):k.startsWith(Me)&&(_=k.slice(1),w=!0);const A=d&&d>m?d-m:void 0;return er(i,w,_,A)};if(a){const c=a+qe,i=t;t=s=>s.startsWith(c)?i(s.slice(c.length)):er(Xr,!1,s,void 0,!0)}if(o){const c=t;t=i=>o({className:i,parseClassName:c})}return t},$r=e=>{const a=new Map;return e.orderSensitiveModifiers.forEach((o,t)=>{a.set(o,1e6+t)}),o=>{const t=[];let c=[];for(let i=0;i<o.length;i++){const s=o[i],u=s[0]==="[",m=a.has(s);u||m?(c.length>0&&(c.sort(),t.push(...c),c=[]),t.push(s)):c.push(s)}return c.length>0&&(c.sort(),t.push(...c)),t}},Zr=e=>({cache:Jr(e.cacheSize),parseClassName:Hr(e),sortModifiers:$r(e),postfixLookupClassGroupIds:Qr(e),...Mr(e)}),Qr=e=>{const a=Object.create(null),o=e.postfixLookupClassGroups;if(o)for(let t=0;t<o.length;t++)a[o[t]]=!0;return a},qr=/\s+/,et=(e,a)=>{const{parseClassName:o,getClassGroupId:t,getConflictingClassGroupIds:c,sortModifiers:i,postfixLookupClassGroupIds:s}=a,u=[],m=e.trim().split(qr);let d="";for(let x=m.length-1;x>=0;x-=1){const k=m[x],{isExternal:_,modifiers:w,hasImportantModifier:A,baseClassName:T,maybePostfixModifierPosition:I}=o(k);if(_){d=k+(d.length>0?" "+d:d);continue}let W=!!I,R;if(W){const z=T.substring(0,I);R=t(z);const g=R&&s[R]?t(T):void 0;g&&g!==R&&(R=g,W=!1)}else R=t(T);if(!R){if(!W){d=k+(d.length>0?" "+d:d);continue}if(R=t(T),!R){d=k+(d.length>0?" "+d:d);continue}W=!1}const q=w.length===0?"":w.length===1?w[0]:i(w).join(":"),V=A?q+Me:q,H=V+R;if(u.indexOf(H)>-1)continue;u.push(H);const S=c(R,W);for(let z=0;z<S.length;++z){const g=S[z];u.push(V+g)}d=k+(d.length>0?" "+d:d)}return d},rt=(...e)=>{let a=0,o,t,c="";for(;a<e.length;)(o=e[a++])&&(t=rr(o))&&(c&&(c+=" "),c+=t);return c},rr=e=>{if(typeof e=="string")return e;let a,o="";for(let t=0;t<e.length;t++)e[t]&&(a=rr(e[t]))&&(o&&(o+=" "),o+=a);return o},tt=(e,...a)=>{let o,t,c,i;const s=m=>{const d=a.reduce((x,k)=>k(x),e());return o=Zr(d),t=o.cache.get,c=o.cache.set,i=u,u(m)},u=m=>{const d=t(m);if(d)return d;const x=et(m,o);return c(m,x),x};return i=s,(...m)=>i(rt(...m))},ot=[],B=e=>{const a=o=>o[e]||ot;return a.isThemeGetter=!0,a},tr=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,or=/^\((?:(\w[\w-]*):)?(.+)\)$/i,at=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,st=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,nt=/\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$/,it=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,lt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ct=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,se=e=>at.test(e),v=e=>!!e&&!Number.isNaN(Number(e)),te=e=>!!e&&Number.isInteger(Number(e)),Le=e=>e.endsWith("%")&&v(e.slice(0,-1)),oe=e=>st.test(e),ar=()=>!0,dt=e=>nt.test(e)&&!it.test(e),We=()=>!1,ut=e=>lt.test(e),mt=e=>ct.test(e),ft=e=>!p(e)&&!b(e),pt=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)),bt=e=>ne(e,dr,We),p=e=>tr.test(e),le=e=>ne(e,ur,dt),sr=e=>ne(e,jt,v),gt=e=>ne(e,fr,ar),ht=e=>ne(e,mr,We),nr=e=>ne(e,lr,We),xt=e=>ne(e,cr,mt),Ae=e=>ne(e,pr,ut),b=e=>or.test(e),je=e=>ce(e,ur),yt=e=>ce(e,mr),ir=e=>ce(e,lr),vt=e=>ce(e,dr),kt=e=>ce(e,cr),ze=e=>ce(e,pr,!0),wt=e=>ce(e,fr,!0),ne=(e,a,o)=>{const t=tr.exec(e);return t?t[1]?a(t[1]):o(t[2]):!1},ce=(e,a,o=!1)=>{const t=or.exec(e);return t?t[1]?a(t[1]):o:!1},lr=e=>e==="position"||e==="percentage",cr=e=>e==="image"||e==="url",dr=e=>e==="length"||e==="size"||e==="bg-size",ur=e=>e==="length",jt=e=>e==="number",mr=e=>e==="family-name",fr=e=>e==="number"||e==="weight",pr=e=>e==="shadow",Rt=tt(()=>{const e=B("color"),a=B("font"),o=B("text"),t=B("font-weight"),c=B("tracking"),i=B("leading"),s=B("breakpoint"),u=B("container"),m=B("spacing"),d=B("radius"),x=B("shadow"),k=B("inset-shadow"),_=B("text-shadow"),w=B("drop-shadow"),A=B("blur"),T=B("perspective"),I=B("aspect"),W=B("ease"),R=B("animate"),q=()=>["auto","avoid","all","avoid-page","page","left","right","column"],V=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],H=()=>[...V(),b,p],S=()=>["auto","hidden","clip","visible","scroll"],z=()=>["auto","contain","none"],g=()=>[b,p,m],M=()=>[se,"full","auto",...g()],de=()=>[te,"none","subgrid",b,p],ge=()=>["auto",{span:["full",te,b,p]},te,b,p],ae=()=>[te,"auto",b,p],Z=()=>["auto","min","max","fr",b,p],K=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],X=()=>["start","end","center","stretch","center-safe","end-safe"],D=()=>["auto",...g()],ee=()=>[se,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...g()],he=()=>[se,"screen","full","dvw","lvw","svw","min","max","fit",...g()],xe=()=>[se,"screen","full","lh","dvh","lvh","svh","min","max","fit",...g()],h=()=>[e,b,p],Se=()=>[...V(),ir,nr,{position:[b,p]}],_e=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Ee=()=>["auto","cover","contain",vt,bt,{size:[b,p]}],Ne=()=>[Le,je,le],J=()=>["","none","full",d,b,p],U=()=>["",v,je,le],ie=()=>["solid","dashed","dotted","double"],ue=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],F=()=>[v,Le,ir,nr],me=()=>["","none",A,b,p],ye=()=>["none",v,b,p],fe=()=>["none",v,b,p],Te=()=>[v,b,p],ve=()=>[se,"full",...g()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[oe],breakpoint:[oe],color:[ar],container:[oe],"drop-shadow":[oe],ease:["in","out","in-out"],font:[ft],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[oe],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[oe],shadow:[oe],spacing:["px",v],text:[oe],"text-shadow":[oe],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",se,p,b,I]}],container:["container"],"container-type":[{"@container":["","normal","size",b,p]}],"container-named":[pt],columns:[{columns:[v,p,b,u]}],"break-after":[{"break-after":q()}],"break-before":[{"break-before":q()}],"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:H()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:z()}],"overscroll-x":[{"overscroll-x":z()}],"overscroll-y":[{"overscroll-y":z()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:M()}],"inset-x":[{"inset-x":M()}],"inset-y":[{"inset-y":M()}],start:[{"inset-s":M(),start:M()}],end:[{"inset-e":M(),end:M()}],"inset-bs":[{"inset-bs":M()}],"inset-be":[{"inset-be":M()}],top:[{top:M()}],right:[{right:M()}],bottom:[{bottom:M()}],left:[{left:M()}],visibility:["visible","invisible","collapse"],z:[{z:[te,"auto",b,p]}],basis:[{basis:[se,"full","auto",u,...g()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[v,se,"auto","initial","none",p]}],grow:[{grow:["",v,b,p]}],shrink:[{shrink:["",v,b,p]}],order:[{order:[te,"first","last","none",b,p]}],"grid-cols":[{"grid-cols":de()}],"col-start-end":[{col:ge()}],"col-start":[{"col-start":ae()}],"col-end":[{"col-end":ae()}],"grid-rows":[{"grid-rows":de()}],"row-start-end":[{row:ge()}],"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":Z()}],"auto-rows":[{"auto-rows":Z()}],gap:[{gap:g()}],"gap-x":[{"gap-x":g()}],"gap-y":[{"gap-y":g()}],"justify-content":[{justify:[...K(),"normal"]}],"justify-items":[{"justify-items":[...X(),"normal"]}],"justify-self":[{"justify-self":["auto",...X()]}],"align-content":[{content:["normal",...K()]}],"align-items":[{items:[...X(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...X(),{baseline:["","last"]}]}],"place-content":[{"place-content":K()}],"place-items":[{"place-items":[...X(),"baseline"]}],"place-self":[{"place-self":["auto",...X()]}],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:D()}],mx:[{mx:D()}],my:[{my:D()}],ms:[{ms:D()}],me:[{me:D()}],mbs:[{mbs:D()}],mbe:[{mbe:D()}],mt:[{mt:D()}],mr:[{mr:D()}],mb:[{mb:D()}],ml:[{ml:D()}],"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",...he()]}],"min-inline-size":[{"min-inline":["auto",...he()]}],"max-inline-size":[{"max-inline":["none",...he()]}],"block-size":[{block:["auto",...xe()]}],"min-block-size":[{"min-block":["auto",...xe()]}],"max-block-size":[{"max-block":["none",...xe()]}],w:[{w:[u,"screen",...ee()]}],"min-w":[{"min-w":[u,"screen","none",...ee()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[s]},...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",o,je,le]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[t,wt,gt]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Le,p]}],"font-family":[{font:[yt,ht,a]}],"font-features":[{"font-features":[p]}],"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:[c,b,p]}],"line-clamp":[{"line-clamp":[v,"none",b,sr]}],leading:[{leading:[i,...g()]}],"list-image":[{"list-image":["none",b,p]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",b,p]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:h()}],"text-color":[{text:h()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ie(),"wavy"]}],"text-decoration-thickness":[{decoration:[v,"from-font","auto",b,le]}],"text-decoration-color":[{decoration:h()}],"underline-offset":[{"underline-offset":[v,"auto",b,p]}],"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:[te,b,p]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",b,p]}],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",b,p]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Se()}],"bg-repeat":[{bg:_e()}],"bg-size":[{bg:Ee()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},te,b,p],radial:["",b,p],conic:[te,b,p]},kt,xt]}],"bg-color":[{bg:h()}],"gradient-from-pos":[{from:Ne()}],"gradient-via-pos":[{via:Ne()}],"gradient-to-pos":[{to:Ne()}],"gradient-from":[{from:h()}],"gradient-via":[{via:h()}],"gradient-to":[{to:h()}],rounded:[{rounded:J()}],"rounded-s":[{"rounded-s":J()}],"rounded-e":[{"rounded-e":J()}],"rounded-t":[{"rounded-t":J()}],"rounded-r":[{"rounded-r":J()}],"rounded-b":[{"rounded-b":J()}],"rounded-l":[{"rounded-l":J()}],"rounded-ss":[{"rounded-ss":J()}],"rounded-se":[{"rounded-se":J()}],"rounded-ee":[{"rounded-ee":J()}],"rounded-es":[{"rounded-es":J()}],"rounded-tl":[{"rounded-tl":J()}],"rounded-tr":[{"rounded-tr":J()}],"rounded-br":[{"rounded-br":J()}],"rounded-bl":[{"rounded-bl":J()}],"border-w":[{border:U()}],"border-w-x":[{"border-x":U()}],"border-w-y":[{"border-y":U()}],"border-w-s":[{"border-s":U()}],"border-w-e":[{"border-e":U()}],"border-w-bs":[{"border-bs":U()}],"border-w-be":[{"border-be":U()}],"border-w-t":[{"border-t":U()}],"border-w-r":[{"border-r":U()}],"border-w-b":[{"border-b":U()}],"border-w-l":[{"border-l":U()}],"divide-x":[{"divide-x":U()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":U()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ie(),"hidden","none"]}],"divide-style":[{divide:[...ie(),"hidden","none"]}],"border-color":[{border:h()}],"border-color-x":[{"border-x":h()}],"border-color-y":[{"border-y":h()}],"border-color-s":[{"border-s":h()}],"border-color-e":[{"border-e":h()}],"border-color-bs":[{"border-bs":h()}],"border-color-be":[{"border-be":h()}],"border-color-t":[{"border-t":h()}],"border-color-r":[{"border-r":h()}],"border-color-b":[{"border-b":h()}],"border-color-l":[{"border-l":h()}],"divide-color":[{divide:h()}],"outline-style":[{outline:[...ie(),"none","hidden"]}],"outline-offset":[{"outline-offset":[v,b,p]}],"outline-w":[{outline:["",v,je,le]}],"outline-color":[{outline:h()}],shadow:[{shadow:["","none",x,ze,Ae]}],"shadow-color":[{shadow:h()}],"inset-shadow":[{"inset-shadow":["none",k,ze,Ae]}],"inset-shadow-color":[{"inset-shadow":h()}],"ring-w":[{ring:U()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:h()}],"ring-offset-w":[{"ring-offset":[v,le]}],"ring-offset-color":[{"ring-offset":h()}],"inset-ring-w":[{"inset-ring":U()}],"inset-ring-color":[{"inset-ring":h()}],"text-shadow":[{"text-shadow":["none",_,ze,Ae]}],"text-shadow-color":[{"text-shadow":h()}],opacity:[{opacity:[v,b,p]}],"mix-blend":[{"mix-blend":[...ue(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ue()}],"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":[v]}],"mask-image-linear-from-pos":[{"mask-linear-from":F()}],"mask-image-linear-to-pos":[{"mask-linear-to":F()}],"mask-image-linear-from-color":[{"mask-linear-from":h()}],"mask-image-linear-to-color":[{"mask-linear-to":h()}],"mask-image-t-from-pos":[{"mask-t-from":F()}],"mask-image-t-to-pos":[{"mask-t-to":F()}],"mask-image-t-from-color":[{"mask-t-from":h()}],"mask-image-t-to-color":[{"mask-t-to":h()}],"mask-image-r-from-pos":[{"mask-r-from":F()}],"mask-image-r-to-pos":[{"mask-r-to":F()}],"mask-image-r-from-color":[{"mask-r-from":h()}],"mask-image-r-to-color":[{"mask-r-to":h()}],"mask-image-b-from-pos":[{"mask-b-from":F()}],"mask-image-b-to-pos":[{"mask-b-to":F()}],"mask-image-b-from-color":[{"mask-b-from":h()}],"mask-image-b-to-color":[{"mask-b-to":h()}],"mask-image-l-from-pos":[{"mask-l-from":F()}],"mask-image-l-to-pos":[{"mask-l-to":F()}],"mask-image-l-from-color":[{"mask-l-from":h()}],"mask-image-l-to-color":[{"mask-l-to":h()}],"mask-image-x-from-pos":[{"mask-x-from":F()}],"mask-image-x-to-pos":[{"mask-x-to":F()}],"mask-image-x-from-color":[{"mask-x-from":h()}],"mask-image-x-to-color":[{"mask-x-to":h()}],"mask-image-y-from-pos":[{"mask-y-from":F()}],"mask-image-y-to-pos":[{"mask-y-to":F()}],"mask-image-y-from-color":[{"mask-y-from":h()}],"mask-image-y-to-color":[{"mask-y-to":h()}],"mask-image-radial":[{"mask-radial":[b,p]}],"mask-image-radial-from-pos":[{"mask-radial-from":F()}],"mask-image-radial-to-pos":[{"mask-radial-to":F()}],"mask-image-radial-from-color":[{"mask-radial-from":h()}],"mask-image-radial-to-color":[{"mask-radial-to":h()}],"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":V()}],"mask-image-conic-pos":[{"mask-conic":[v]}],"mask-image-conic-from-pos":[{"mask-conic-from":F()}],"mask-image-conic-to-pos":[{"mask-conic-to":F()}],"mask-image-conic-from-color":[{"mask-conic-from":h()}],"mask-image-conic-to-color":[{"mask-conic-to":h()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Se()}],"mask-repeat":[{mask:_e()}],"mask-size":[{mask:Ee()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",b,p]}],filter:[{filter:["","none",b,p]}],blur:[{blur:me()}],brightness:[{brightness:[v,b,p]}],contrast:[{contrast:[v,b,p]}],"drop-shadow":[{"drop-shadow":["","none",w,ze,Ae]}],"drop-shadow-color":[{"drop-shadow":h()}],grayscale:[{grayscale:["",v,b,p]}],"hue-rotate":[{"hue-rotate":[v,b,p]}],invert:[{invert:["",v,b,p]}],saturate:[{saturate:[v,b,p]}],sepia:[{sepia:["",v,b,p]}],"backdrop-filter":[{"backdrop-filter":["","none",b,p]}],"backdrop-blur":[{"backdrop-blur":me()}],"backdrop-brightness":[{"backdrop-brightness":[v,b,p]}],"backdrop-contrast":[{"backdrop-contrast":[v,b,p]}],"backdrop-grayscale":[{"backdrop-grayscale":["",v,b,p]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[v,b,p]}],"backdrop-invert":[{"backdrop-invert":["",v,b,p]}],"backdrop-opacity":[{"backdrop-opacity":[v,b,p]}],"backdrop-saturate":[{"backdrop-saturate":[v,b,p]}],"backdrop-sepia":[{"backdrop-sepia":["",v,b,p]}],"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",b,p]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[v,"initial",b,p]}],ease:[{ease:["linear","initial",W,b,p]}],delay:[{delay:[v,b,p]}],animate:[{animate:["none",R,b,p]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[T,b,p]}],"perspective-origin":[{"perspective-origin":H()}],rotate:[{rotate:ye()}],"rotate-x":[{"rotate-x":ye()}],"rotate-y":[{"rotate-y":ye()}],"rotate-z":[{"rotate-z":ye()}],scale:[{scale:fe()}],"scale-x":[{"scale-x":fe()}],"scale-y":[{"scale-y":fe()}],"scale-z":[{"scale-z":fe()}],"scale-3d":["scale-3d"],skew:[{skew:Te()}],"skew-x":[{"skew-x":Te()}],"skew-y":[{"skew-y":Te()}],transform:[{transform:[b,p,"","none","gpu","cpu"]}],"transform-origin":[{origin:H()}],"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:[te,b,p]}],accent:[{accent:h()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:h()}],"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",b,p]}],"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":h()}],"scrollbar-track-color":[{"scrollbar-track":h()}],"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",b,p]}],fill:[{fill:["none",...h()]}],"stroke-w":[{stroke:[v,je,le,sr]}],stroke:[{stroke:["none",...h()]}],"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 O(...e){return Rt(zr(e))}var Ge={exports:{}},Re={};/**
|
|
1
|
+
(function(Y,N){typeof exports=="object"&&typeof module<"u"?N(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],N):(Y=typeof globalThis<"u"?globalThis:Y||self,N(Y.Rock10UI={},Y.React))})(this,function(Y,N){"use strict";function Xe(e){var a,o,t="";if(typeof e=="string"||typeof e=="number")t+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(a=0;a<i;a++)e[a]&&(o=Xe(e[a]))&&(t&&(t+=" "),t+=o)}else for(o in e)e[o]&&(t&&(t+=" "),t+=o);return t}function zr(){for(var e,a,o=0,t="",i=arguments.length;o<i;o++)(e=arguments[o])&&(a=Xe(e))&&(t&&(t+=" "),t+=a);return t}const Ir=(e,a)=>{const o=new Array(e.length+a.length);for(let t=0;t<e.length;t++)o[t]=e[t];for(let t=0;t<a.length;t++)o[e.length+t]=a[t];return o},Dr=(e,a)=>({classGroupId:e,validator:a}),He=(e=new Map,a=null,o)=>({nextPart:e,validators:a,classGroupId:o}),Oe="-",$e=[],Fr="arbitrary..",Mr=e=>{const a=Wr(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:t}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return Lr(s);const u=s.split(Oe),m=u[0]===""&&u.length>1?1:0;return Ze(u,m,a)},getConflictingClassGroupIds:(s,u)=>{if(u){const m=t[s],d=o[s];return m?d?Ir(d,m):m:d||$e}return o[s]||$e}}},Ze=(e,a,o)=>{if(e.length-a===0)return o.classGroupId;const i=e[a],l=o.nextPart.get(i);if(l){const d=Ze(e,a+1,l);if(d)return d}const s=o.validators;if(s===null)return;const u=a===0?e.join(Oe):e.slice(a).join(Oe),m=s.length;for(let d=0;d<m;d++){const x=s[d];if(x.validator(u))return x.classGroupId}},Lr=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const a=e.slice(1,-1),o=a.indexOf(":"),t=a.slice(0,o);return t?Fr+t:void 0})(),Wr=e=>{const{theme:a,classGroups:o}=e;return Gr(o,a)},Gr=(e,a)=>{const o=He();for(const t in e){const i=e[t];Fe(i,o,t,a)}return o},Fe=(e,a,o,t)=>{const i=e.length;for(let l=0;l<i;l++){const s=e[l];Br(s,a,o,t)}},Br=(e,a,o,t)=>{if(typeof e=="string"){Vr(e,a,o);return}if(typeof e=="function"){Ur(e,a,o,t);return}Yr(e,a,o,t)},Vr=(e,a,o)=>{const t=e===""?a:Qe(a,e);t.classGroupId=o},Ur=(e,a,o,t)=>{if(Kr(e)){Fe(e(t),a,o,t);return}a.validators===null&&(a.validators=[]),a.validators.push(Dr(o,e))},Yr=(e,a,o,t)=>{const i=Object.entries(e),l=i.length;for(let s=0;s<l;s++){const[u,m]=i[s];Fe(m,Qe(a,u),o,t)}},Qe=(e,a)=>{let o=e;const t=a.split(Oe),i=t.length;for(let l=0;l<i;l++){const s=t[l];let u=o.nextPart.get(s);u||(u=He(),o.nextPart.set(s,u)),o=u}return o},Kr=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Jr=e=>{if(e<1)return{get:()=>{},set:()=>{}};let a=0,o=Object.create(null),t=Object.create(null);const i=(l,s)=>{o[l]=s,a++,a>e&&(a=0,t=o,o=Object.create(null))};return{get(l){let s=o[l];if(s!==void 0)return s;if((s=t[l])!==void 0)return i(l,s),s},set(l,s){l in o?o[l]=s:i(l,s)}}},Me="!",qe=":",Xr=[],er=(e,a,o,t,i)=>({modifiers:e,hasImportantModifier:a,baseClassName:o,maybePostfixModifierPosition:t,isExternal:i}),Hr=e=>{const{prefix:a,experimentalParseClassName:o}=e;let t=i=>{const l=[];let s=0,u=0,m=0,d;const x=i.length;for(let P=0;P<x;P++){const I=i[P];if(s===0&&u===0){if(I===qe){l.push(i.slice(m,P)),m=P+1;continue}if(I==="/"){d=P;continue}}I==="["?s++:I==="]"?s--:I==="("?u++:I===")"&&u--}const k=l.length===0?i:i.slice(m);let _=k,w=!1;k.endsWith(Me)?(_=k.slice(0,-1),w=!0):k.startsWith(Me)&&(_=k.slice(1),w=!0);const A=d&&d>m?d-m:void 0;return er(l,w,_,A)};if(a){const i=a+qe,l=t;t=s=>s.startsWith(i)?l(s.slice(i.length)):er(Xr,!1,s,void 0,!0)}if(o){const i=t;t=l=>o({className:l,parseClassName:i})}return t},$r=e=>{const a=new Map;return e.orderSensitiveModifiers.forEach((o,t)=>{a.set(o,1e6+t)}),o=>{const t=[];let i=[];for(let l=0;l<o.length;l++){const s=o[l],u=s[0]==="[",m=a.has(s);u||m?(i.length>0&&(i.sort(),t.push(...i),i=[]),t.push(s)):i.push(s)}return i.length>0&&(i.sort(),t.push(...i)),t}},Zr=e=>({cache:Jr(e.cacheSize),parseClassName:Hr(e),sortModifiers:$r(e),postfixLookupClassGroupIds:Qr(e),...Mr(e)}),Qr=e=>{const a=Object.create(null),o=e.postfixLookupClassGroups;if(o)for(let t=0;t<o.length;t++)a[o[t]]=!0;return a},qr=/\s+/,et=(e,a)=>{const{parseClassName:o,getClassGroupId:t,getConflictingClassGroupIds:i,sortModifiers:l,postfixLookupClassGroupIds:s}=a,u=[],m=e.trim().split(qr);let d="";for(let x=m.length-1;x>=0;x-=1){const k=m[x],{isExternal:_,modifiers:w,hasImportantModifier:A,baseClassName:P,maybePostfixModifierPosition:I}=o(k);if(_){d=k+(d.length>0?" "+d:d);continue}let W=!!I,R;if(W){const z=P.substring(0,I);R=t(z);const g=R&&s[R]?t(P):void 0;g&&g!==R&&(R=g,W=!1)}else R=t(P);if(!R){if(!W){d=k+(d.length>0?" "+d:d);continue}if(R=t(P),!R){d=k+(d.length>0?" "+d:d);continue}W=!1}const q=w.length===0?"":w.length===1?w[0]:l(w).join(":"),V=A?q+Me:q,H=V+R;if(u.indexOf(H)>-1)continue;u.push(H);const S=i(R,W);for(let z=0;z<S.length;++z){const g=S[z];u.push(V+g)}d=k+(d.length>0?" "+d:d)}return d},rt=(...e)=>{let a=0,o,t,i="";for(;a<e.length;)(o=e[a++])&&(t=rr(o))&&(i&&(i+=" "),i+=t);return i},rr=e=>{if(typeof e=="string")return e;let a,o="";for(let t=0;t<e.length;t++)e[t]&&(a=rr(e[t]))&&(o&&(o+=" "),o+=a);return o},tt=(e,...a)=>{let o,t,i,l;const s=m=>{const d=a.reduce((x,k)=>k(x),e());return o=Zr(d),t=o.cache.get,i=o.cache.set,l=u,u(m)},u=m=>{const d=t(m);if(d)return d;const x=et(m,o);return i(m,x),x};return l=s,(...m)=>l(rt(...m))},ot=[],B=e=>{const a=o=>o[e]||ot;return a.isThemeGetter=!0,a},tr=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,or=/^\((?:(\w[\w-]*):)?(.+)\)$/i,at=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,st=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,nt=/\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$/,it=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,lt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ct=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,se=e=>at.test(e),v=e=>!!e&&!Number.isNaN(Number(e)),te=e=>!!e&&Number.isInteger(Number(e)),Le=e=>e.endsWith("%")&&v(e.slice(0,-1)),oe=e=>st.test(e),ar=()=>!0,dt=e=>nt.test(e)&&!it.test(e),We=()=>!1,ut=e=>lt.test(e),mt=e=>ct.test(e),ft=e=>!p(e)&&!b(e),pt=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)),bt=e=>ne(e,dr,We),p=e=>tr.test(e),le=e=>ne(e,ur,dt),sr=e=>ne(e,jt,v),gt=e=>ne(e,fr,ar),ht=e=>ne(e,mr,We),nr=e=>ne(e,lr,We),xt=e=>ne(e,cr,mt),Ae=e=>ne(e,pr,ut),b=e=>or.test(e),je=e=>ce(e,ur),yt=e=>ce(e,mr),ir=e=>ce(e,lr),vt=e=>ce(e,dr),kt=e=>ce(e,cr),ze=e=>ce(e,pr,!0),wt=e=>ce(e,fr,!0),ne=(e,a,o)=>{const t=tr.exec(e);return t?t[1]?a(t[1]):o(t[2]):!1},ce=(e,a,o=!1)=>{const t=or.exec(e);return t?t[1]?a(t[1]):o:!1},lr=e=>e==="position"||e==="percentage",cr=e=>e==="image"||e==="url",dr=e=>e==="length"||e==="size"||e==="bg-size",ur=e=>e==="length",jt=e=>e==="number",mr=e=>e==="family-name",fr=e=>e==="number"||e==="weight",pr=e=>e==="shadow",Rt=tt(()=>{const e=B("color"),a=B("font"),o=B("text"),t=B("font-weight"),i=B("tracking"),l=B("leading"),s=B("breakpoint"),u=B("container"),m=B("spacing"),d=B("radius"),x=B("shadow"),k=B("inset-shadow"),_=B("text-shadow"),w=B("drop-shadow"),A=B("blur"),P=B("perspective"),I=B("aspect"),W=B("ease"),R=B("animate"),q=()=>["auto","avoid","all","avoid-page","page","left","right","column"],V=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],H=()=>[...V(),b,p],S=()=>["auto","hidden","clip","visible","scroll"],z=()=>["auto","contain","none"],g=()=>[b,p,m],M=()=>[se,"full","auto",...g()],de=()=>[te,"none","subgrid",b,p],ge=()=>["auto",{span:["full",te,b,p]},te,b,p],ae=()=>[te,"auto",b,p],Z=()=>["auto","min","max","fr",b,p],K=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],X=()=>["start","end","center","stretch","center-safe","end-safe"],D=()=>["auto",...g()],ee=()=>[se,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...g()],he=()=>[se,"screen","full","dvw","lvw","svw","min","max","fit",...g()],xe=()=>[se,"screen","full","lh","dvh","lvh","svh","min","max","fit",...g()],h=()=>[e,b,p],Se=()=>[...V(),ir,nr,{position:[b,p]}],_e=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Ee=()=>["auto","cover","contain",vt,bt,{size:[b,p]}],Ne=()=>[Le,je,le],J=()=>["","none","full",d,b,p],U=()=>["",v,je,le],ie=()=>["solid","dashed","dotted","double"],ue=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],F=()=>[v,Le,ir,nr],me=()=>["","none",A,b,p],ye=()=>["none",v,b,p],fe=()=>["none",v,b,p],Te=()=>[v,b,p],ve=()=>[se,"full",...g()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[oe],breakpoint:[oe],color:[ar],container:[oe],"drop-shadow":[oe],ease:["in","out","in-out"],font:[ft],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[oe],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[oe],shadow:[oe],spacing:["px",v],text:[oe],"text-shadow":[oe],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",se,p,b,I]}],container:["container"],"container-type":[{"@container":["","normal","size",b,p]}],"container-named":[pt],columns:[{columns:[v,p,b,u]}],"break-after":[{"break-after":q()}],"break-before":[{"break-before":q()}],"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:H()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:z()}],"overscroll-x":[{"overscroll-x":z()}],"overscroll-y":[{"overscroll-y":z()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:M()}],"inset-x":[{"inset-x":M()}],"inset-y":[{"inset-y":M()}],start:[{"inset-s":M(),start:M()}],end:[{"inset-e":M(),end:M()}],"inset-bs":[{"inset-bs":M()}],"inset-be":[{"inset-be":M()}],top:[{top:M()}],right:[{right:M()}],bottom:[{bottom:M()}],left:[{left:M()}],visibility:["visible","invisible","collapse"],z:[{z:[te,"auto",b,p]}],basis:[{basis:[se,"full","auto",u,...g()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[v,se,"auto","initial","none",p]}],grow:[{grow:["",v,b,p]}],shrink:[{shrink:["",v,b,p]}],order:[{order:[te,"first","last","none",b,p]}],"grid-cols":[{"grid-cols":de()}],"col-start-end":[{col:ge()}],"col-start":[{"col-start":ae()}],"col-end":[{"col-end":ae()}],"grid-rows":[{"grid-rows":de()}],"row-start-end":[{row:ge()}],"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":Z()}],"auto-rows":[{"auto-rows":Z()}],gap:[{gap:g()}],"gap-x":[{"gap-x":g()}],"gap-y":[{"gap-y":g()}],"justify-content":[{justify:[...K(),"normal"]}],"justify-items":[{"justify-items":[...X(),"normal"]}],"justify-self":[{"justify-self":["auto",...X()]}],"align-content":[{content:["normal",...K()]}],"align-items":[{items:[...X(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...X(),{baseline:["","last"]}]}],"place-content":[{"place-content":K()}],"place-items":[{"place-items":[...X(),"baseline"]}],"place-self":[{"place-self":["auto",...X()]}],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:D()}],mx:[{mx:D()}],my:[{my:D()}],ms:[{ms:D()}],me:[{me:D()}],mbs:[{mbs:D()}],mbe:[{mbe:D()}],mt:[{mt:D()}],mr:[{mr:D()}],mb:[{mb:D()}],ml:[{ml:D()}],"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",...he()]}],"min-inline-size":[{"min-inline":["auto",...he()]}],"max-inline-size":[{"max-inline":["none",...he()]}],"block-size":[{block:["auto",...xe()]}],"min-block-size":[{"min-block":["auto",...xe()]}],"max-block-size":[{"max-block":["none",...xe()]}],w:[{w:[u,"screen",...ee()]}],"min-w":[{"min-w":[u,"screen","none",...ee()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[s]},...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",o,je,le]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[t,wt,gt]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Le,p]}],"font-family":[{font:[yt,ht,a]}],"font-features":[{"font-features":[p]}],"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:[i,b,p]}],"line-clamp":[{"line-clamp":[v,"none",b,sr]}],leading:[{leading:[l,...g()]}],"list-image":[{"list-image":["none",b,p]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",b,p]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:h()}],"text-color":[{text:h()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ie(),"wavy"]}],"text-decoration-thickness":[{decoration:[v,"from-font","auto",b,le]}],"text-decoration-color":[{decoration:h()}],"underline-offset":[{"underline-offset":[v,"auto",b,p]}],"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:[te,b,p]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",b,p]}],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",b,p]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Se()}],"bg-repeat":[{bg:_e()}],"bg-size":[{bg:Ee()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},te,b,p],radial:["",b,p],conic:[te,b,p]},kt,xt]}],"bg-color":[{bg:h()}],"gradient-from-pos":[{from:Ne()}],"gradient-via-pos":[{via:Ne()}],"gradient-to-pos":[{to:Ne()}],"gradient-from":[{from:h()}],"gradient-via":[{via:h()}],"gradient-to":[{to:h()}],rounded:[{rounded:J()}],"rounded-s":[{"rounded-s":J()}],"rounded-e":[{"rounded-e":J()}],"rounded-t":[{"rounded-t":J()}],"rounded-r":[{"rounded-r":J()}],"rounded-b":[{"rounded-b":J()}],"rounded-l":[{"rounded-l":J()}],"rounded-ss":[{"rounded-ss":J()}],"rounded-se":[{"rounded-se":J()}],"rounded-ee":[{"rounded-ee":J()}],"rounded-es":[{"rounded-es":J()}],"rounded-tl":[{"rounded-tl":J()}],"rounded-tr":[{"rounded-tr":J()}],"rounded-br":[{"rounded-br":J()}],"rounded-bl":[{"rounded-bl":J()}],"border-w":[{border:U()}],"border-w-x":[{"border-x":U()}],"border-w-y":[{"border-y":U()}],"border-w-s":[{"border-s":U()}],"border-w-e":[{"border-e":U()}],"border-w-bs":[{"border-bs":U()}],"border-w-be":[{"border-be":U()}],"border-w-t":[{"border-t":U()}],"border-w-r":[{"border-r":U()}],"border-w-b":[{"border-b":U()}],"border-w-l":[{"border-l":U()}],"divide-x":[{"divide-x":U()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":U()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ie(),"hidden","none"]}],"divide-style":[{divide:[...ie(),"hidden","none"]}],"border-color":[{border:h()}],"border-color-x":[{"border-x":h()}],"border-color-y":[{"border-y":h()}],"border-color-s":[{"border-s":h()}],"border-color-e":[{"border-e":h()}],"border-color-bs":[{"border-bs":h()}],"border-color-be":[{"border-be":h()}],"border-color-t":[{"border-t":h()}],"border-color-r":[{"border-r":h()}],"border-color-b":[{"border-b":h()}],"border-color-l":[{"border-l":h()}],"divide-color":[{divide:h()}],"outline-style":[{outline:[...ie(),"none","hidden"]}],"outline-offset":[{"outline-offset":[v,b,p]}],"outline-w":[{outline:["",v,je,le]}],"outline-color":[{outline:h()}],shadow:[{shadow:["","none",x,ze,Ae]}],"shadow-color":[{shadow:h()}],"inset-shadow":[{"inset-shadow":["none",k,ze,Ae]}],"inset-shadow-color":[{"inset-shadow":h()}],"ring-w":[{ring:U()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:h()}],"ring-offset-w":[{"ring-offset":[v,le]}],"ring-offset-color":[{"ring-offset":h()}],"inset-ring-w":[{"inset-ring":U()}],"inset-ring-color":[{"inset-ring":h()}],"text-shadow":[{"text-shadow":["none",_,ze,Ae]}],"text-shadow-color":[{"text-shadow":h()}],opacity:[{opacity:[v,b,p]}],"mix-blend":[{"mix-blend":[...ue(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ue()}],"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":[v]}],"mask-image-linear-from-pos":[{"mask-linear-from":F()}],"mask-image-linear-to-pos":[{"mask-linear-to":F()}],"mask-image-linear-from-color":[{"mask-linear-from":h()}],"mask-image-linear-to-color":[{"mask-linear-to":h()}],"mask-image-t-from-pos":[{"mask-t-from":F()}],"mask-image-t-to-pos":[{"mask-t-to":F()}],"mask-image-t-from-color":[{"mask-t-from":h()}],"mask-image-t-to-color":[{"mask-t-to":h()}],"mask-image-r-from-pos":[{"mask-r-from":F()}],"mask-image-r-to-pos":[{"mask-r-to":F()}],"mask-image-r-from-color":[{"mask-r-from":h()}],"mask-image-r-to-color":[{"mask-r-to":h()}],"mask-image-b-from-pos":[{"mask-b-from":F()}],"mask-image-b-to-pos":[{"mask-b-to":F()}],"mask-image-b-from-color":[{"mask-b-from":h()}],"mask-image-b-to-color":[{"mask-b-to":h()}],"mask-image-l-from-pos":[{"mask-l-from":F()}],"mask-image-l-to-pos":[{"mask-l-to":F()}],"mask-image-l-from-color":[{"mask-l-from":h()}],"mask-image-l-to-color":[{"mask-l-to":h()}],"mask-image-x-from-pos":[{"mask-x-from":F()}],"mask-image-x-to-pos":[{"mask-x-to":F()}],"mask-image-x-from-color":[{"mask-x-from":h()}],"mask-image-x-to-color":[{"mask-x-to":h()}],"mask-image-y-from-pos":[{"mask-y-from":F()}],"mask-image-y-to-pos":[{"mask-y-to":F()}],"mask-image-y-from-color":[{"mask-y-from":h()}],"mask-image-y-to-color":[{"mask-y-to":h()}],"mask-image-radial":[{"mask-radial":[b,p]}],"mask-image-radial-from-pos":[{"mask-radial-from":F()}],"mask-image-radial-to-pos":[{"mask-radial-to":F()}],"mask-image-radial-from-color":[{"mask-radial-from":h()}],"mask-image-radial-to-color":[{"mask-radial-to":h()}],"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":V()}],"mask-image-conic-pos":[{"mask-conic":[v]}],"mask-image-conic-from-pos":[{"mask-conic-from":F()}],"mask-image-conic-to-pos":[{"mask-conic-to":F()}],"mask-image-conic-from-color":[{"mask-conic-from":h()}],"mask-image-conic-to-color":[{"mask-conic-to":h()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Se()}],"mask-repeat":[{mask:_e()}],"mask-size":[{mask:Ee()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",b,p]}],filter:[{filter:["","none",b,p]}],blur:[{blur:me()}],brightness:[{brightness:[v,b,p]}],contrast:[{contrast:[v,b,p]}],"drop-shadow":[{"drop-shadow":["","none",w,ze,Ae]}],"drop-shadow-color":[{"drop-shadow":h()}],grayscale:[{grayscale:["",v,b,p]}],"hue-rotate":[{"hue-rotate":[v,b,p]}],invert:[{invert:["",v,b,p]}],saturate:[{saturate:[v,b,p]}],sepia:[{sepia:["",v,b,p]}],"backdrop-filter":[{"backdrop-filter":["","none",b,p]}],"backdrop-blur":[{"backdrop-blur":me()}],"backdrop-brightness":[{"backdrop-brightness":[v,b,p]}],"backdrop-contrast":[{"backdrop-contrast":[v,b,p]}],"backdrop-grayscale":[{"backdrop-grayscale":["",v,b,p]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[v,b,p]}],"backdrop-invert":[{"backdrop-invert":["",v,b,p]}],"backdrop-opacity":[{"backdrop-opacity":[v,b,p]}],"backdrop-saturate":[{"backdrop-saturate":[v,b,p]}],"backdrop-sepia":[{"backdrop-sepia":["",v,b,p]}],"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",b,p]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[v,"initial",b,p]}],ease:[{ease:["linear","initial",W,b,p]}],delay:[{delay:[v,b,p]}],animate:[{animate:["none",R,b,p]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[P,b,p]}],"perspective-origin":[{"perspective-origin":H()}],rotate:[{rotate:ye()}],"rotate-x":[{"rotate-x":ye()}],"rotate-y":[{"rotate-y":ye()}],"rotate-z":[{"rotate-z":ye()}],scale:[{scale:fe()}],"scale-x":[{"scale-x":fe()}],"scale-y":[{"scale-y":fe()}],"scale-z":[{"scale-z":fe()}],"scale-3d":["scale-3d"],skew:[{skew:Te()}],"skew-x":[{"skew-x":Te()}],"skew-y":[{"skew-y":Te()}],transform:[{transform:[b,p,"","none","gpu","cpu"]}],"transform-origin":[{origin:H()}],"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:[te,b,p]}],accent:[{accent:h()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:h()}],"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",b,p]}],"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":h()}],"scrollbar-track-color":[{"scrollbar-track":h()}],"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",b,p]}],fill:[{fill:["none",...h()]}],"stroke-w":[{stroke:[v,je,le,sr]}],stroke:[{stroke:["none",...h()]}],"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 T(...e){return Rt(zr(e))}var Ge={exports:{}},Re={};/**
|
|
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 br;function Ct(){if(br)return Re;br=1;var e=N,a=Symbol.for("react.element"),o=Symbol.for("react.fragment"),t=Object.prototype.hasOwnProperty,
|
|
9
|
+
*/var br;function Ct(){if(br)return Re;br=1;var e=N,a=Symbol.for("react.element"),o=Symbol.for("react.fragment"),t=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function s(u,m,d){var x,k={},_=null,w=null;d!==void 0&&(_=""+d),m.key!==void 0&&(_=""+m.key),m.ref!==void 0&&(w=m.ref);for(x in m)t.call(m,x)&&!l.hasOwnProperty(x)&&(k[x]=m[x]);if(u&&u.defaultProps)for(x in m=u.defaultProps,m)k[x]===void 0&&(k[x]=m[x]);return{$$typeof:a,type:u,key:_,ref:w,props:k,_owner:i.current}}return Re.Fragment=o,Re.jsx=s,Re.jsxs=s,Re}var Ce={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,20 +14,20 @@
|
|
|
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 gr;function St(){return gr||(gr=1,process.env.NODE_ENV!=="production"&&function(){var e=N,a=Symbol.for("react.element"),o=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),
|
|
18
|
-
`+ie+r}}var F=!1,me;{var ye=typeof WeakMap=="function"?WeakMap:Map;me=new ye}function fe(r,n){if(!r||F)return"";{var f=me.get(r);if(f!==void 0)return f}var y;F=!0;var E=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var
|
|
17
|
+
*/var gr;function St(){return gr||(gr=1,process.env.NODE_ENV!=="production"&&function(){var e=N,a=Symbol.for("react.element"),o=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),u=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),x=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),w=Symbol.for("react.offscreen"),A=Symbol.iterator,P="@@iterator";function I(r){if(r===null||typeof r!="object")return null;var n=A&&r[A]||r[P];return typeof n=="function"?n:null}var W=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function R(r){{for(var n=arguments.length,f=new Array(n>1?n-1:0),y=1;y<n;y++)f[y-1]=arguments[y];q("error",r,f)}}function q(r,n,f){{var y=W.ReactDebugCurrentFrame,E=y.getStackAddendum();E!==""&&(n+="%s",f=f.concat([E]));var O=f.map(function(C){return String(C)});O.unshift("Warning: "+n),Function.prototype.apply.call(console[r],console,O)}}var V=!1,H=!1,S=!1,z=!1,g=!1,M;M=Symbol.for("react.module.reference");function de(r){return!!(typeof r=="string"||typeof r=="function"||r===t||r===l||g||r===i||r===d||r===x||z||r===w||V||H||S||typeof r=="object"&&r!==null&&(r.$$typeof===_||r.$$typeof===k||r.$$typeof===s||r.$$typeof===u||r.$$typeof===m||r.$$typeof===M||r.getModuleId!==void 0))}function ge(r,n,f){var y=r.displayName;if(y)return y;var E=n.displayName||n.name||"";return E!==""?f+"("+E+")":f}function ae(r){return r.displayName||"Context"}function Z(r){if(r==null)return null;if(typeof r.tag=="number"&&R("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case t:return"Fragment";case o:return"Portal";case l:return"Profiler";case i:return"StrictMode";case d:return"Suspense";case x:return"SuspenseList"}if(typeof r=="object")switch(r.$$typeof){case u:var n=r;return ae(n)+".Consumer";case s:var f=r;return ae(f._context)+".Provider";case m:return ge(r,r.render,"ForwardRef");case k:var y=r.displayName||null;return y!==null?y:Z(r.type)||"Memo";case _:{var E=r,O=E._payload,C=E._init;try{return Z(C(O))}catch{return null}}}return null}var K=Object.assign,X=0,D,ee,he,xe,h,Se,_e;function Ee(){}Ee.__reactDisabledLog=!0;function Ne(){{if(X===0){D=console.log,ee=console.info,he=console.warn,xe=console.error,h=console.group,Se=console.groupCollapsed,_e=console.groupEnd;var r={configurable:!0,enumerable:!0,value:Ee,writable:!0};Object.defineProperties(console,{info:r,log:r,warn:r,error:r,group:r,groupCollapsed:r,groupEnd:r})}X++}}function J(){{if(X--,X===0){var r={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:K({},r,{value:D}),info:K({},r,{value:ee}),warn:K({},r,{value:he}),error:K({},r,{value:xe}),group:K({},r,{value:h}),groupCollapsed:K({},r,{value:Se}),groupEnd:K({},r,{value:_e})})}X<0&&R("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var U=W.ReactCurrentDispatcher,ie;function ue(r,n,f){{if(ie===void 0)try{throw Error()}catch(E){var y=E.stack.trim().match(/\n( *(at )?)/);ie=y&&y[1]||""}return`
|
|
18
|
+
`+ie+r}}var F=!1,me;{var ye=typeof WeakMap=="function"?WeakMap:Map;me=new ye}function fe(r,n){if(!r||F)return"";{var f=me.get(r);if(f!==void 0)return f}var y;F=!0;var E=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var O;O=U.current,U.current=null,Ne();try{if(n){var C=function(){throw Error()};if(Object.defineProperty(C.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(C,[])}catch(Q){y=Q}Reflect.construct(r,[],C)}else{try{C.call()}catch(Q){y=Q}r.call(C.prototype)}}else{try{throw Error()}catch(Q){y=Q}r()}}catch(Q){if(Q&&y&&typeof Q.stack=="string"){for(var j=Q.stack.split(`
|
|
19
19
|
`),$=y.stack.split(`
|
|
20
20
|
`),L=j.length-1,G=$.length-1;L>=1&&G>=0&&j[L]!==$[G];)G--;for(;L>=1&&G>=0;L--,G--)if(j[L]!==$[G]){if(L!==1||G!==1)do if(L--,G--,G<0||j[L]!==$[G]){var re=`
|
|
21
|
-
`+j[L].replace(" at new "," at ");return r.displayName&&re.includes("<anonymous>")&&(re=re.replace("<anonymous>",r.displayName)),typeof r=="function"&&me.set(r,re),re}while(L>=1&&G>=0);break}}}finally{F=!1,U.current=
|
|
21
|
+
`+j[L].replace(" at new "," at ");return r.displayName&&re.includes("<anonymous>")&&(re=re.replace("<anonymous>",r.displayName)),typeof r=="function"&&me.set(r,re),re}while(L>=1&&G>=0);break}}}finally{F=!1,U.current=O,J(),Error.prepareStackTrace=E}var we=r?r.displayName||r.name:"",pe=we?ue(we):"";return typeof r=="function"&&me.set(r,pe),pe}function Te(r,n,f){return fe(r,!1)}function ve(r){var n=r.prototype;return!!(n&&n.isReactComponent)}function Ie(r,n,f){if(r==null)return"";if(typeof r=="function")return fe(r,ve(r));if(typeof r=="string")return ue(r);switch(r){case d:return ue("Suspense");case x:return ue("SuspenseList")}if(typeof r=="object")switch(r.$$typeof){case m:return Te(r.render);case k:return Ie(r.type,n,f);case _:{var y=r,E=y._payload,O=y._init;try{return Ie(O(E),n,f)}catch{}}}return""}var Pe=Object.prototype.hasOwnProperty,vr={},kr=W.ReactDebugCurrentFrame;function De(r){if(r){var n=r._owner,f=Ie(r.type,r._source,n?n.type:null);kr.setExtraStackFrame(f)}else kr.setExtraStackFrame(null)}function Ut(r,n,f,y,E){{var O=Function.call.bind(Pe);for(var C in r)if(O(r,C)){var j=void 0;try{if(typeof r[C]!="function"){var $=Error((y||"React class")+": "+f+" type `"+C+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof r[C]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw $.name="Invariant Violation",$}j=r[C](n,C,y,f,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(L){j=L}j&&!(j instanceof Error)&&(De(E),R("%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).",y||"React class",f,C,typeof j),De(null)),j instanceof Error&&!(j.message in vr)&&(vr[j.message]=!0,De(E),R("Failed %s type: %s",f,j.message),De(null))}}}var Yt=Array.isArray;function Ve(r){return Yt(r)}function Kt(r){{var n=typeof Symbol=="function"&&Symbol.toStringTag,f=n&&r[Symbol.toStringTag]||r.constructor.name||"Object";return f}}function Jt(r){try{return wr(r),!1}catch{return!0}}function wr(r){return""+r}function jr(r){if(Jt(r))return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Kt(r)),wr(r)}var Rr=W.ReactCurrentOwner,Xt={key:!0,ref:!0,__self:!0,__source:!0},Cr,Sr;function Ht(r){if(Pe.call(r,"ref")){var n=Object.getOwnPropertyDescriptor(r,"ref").get;if(n&&n.isReactWarning)return!1}return r.ref!==void 0}function $t(r){if(Pe.call(r,"key")){var n=Object.getOwnPropertyDescriptor(r,"key").get;if(n&&n.isReactWarning)return!1}return r.key!==void 0}function Zt(r,n){typeof r.ref=="string"&&Rr.current}function Qt(r,n){{var f=function(){Cr||(Cr=!0,R("%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)",n))};f.isReactWarning=!0,Object.defineProperty(r,"key",{get:f,configurable:!0})}}function qt(r,n){{var f=function(){Sr||(Sr=!0,R("%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)",n))};f.isReactWarning=!0,Object.defineProperty(r,"ref",{get:f,configurable:!0})}}var eo=function(r,n,f,y,E,O,C){var j={$$typeof:a,type:r,key:n,ref:f,props:C,_owner:O};return j._store={},Object.defineProperty(j._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(j,"_self",{configurable:!1,enumerable:!1,writable:!1,value:y}),Object.defineProperty(j,"_source",{configurable:!1,enumerable:!1,writable:!1,value:E}),Object.freeze&&(Object.freeze(j.props),Object.freeze(j)),j};function ro(r,n,f,y,E){{var O,C={},j=null,$=null;f!==void 0&&(jr(f),j=""+f),$t(n)&&(jr(n.key),j=""+n.key),Ht(n)&&($=n.ref,Zt(n,E));for(O in n)Pe.call(n,O)&&!Xt.hasOwnProperty(O)&&(C[O]=n[O]);if(r&&r.defaultProps){var L=r.defaultProps;for(O in L)C[O]===void 0&&(C[O]=L[O])}if(j||$){var G=typeof r=="function"?r.displayName||r.name||"Unknown":r;j&&Qt(C,G),$&&qt(C,G)}return eo(r,j,$,E,y,Rr.current,C)}}var Ue=W.ReactCurrentOwner,_r=W.ReactDebugCurrentFrame;function ke(r){if(r){var n=r._owner,f=Ie(r.type,r._source,n?n.type:null);_r.setExtraStackFrame(f)}else _r.setExtraStackFrame(null)}var Ye;Ye=!1;function Ke(r){return typeof r=="object"&&r!==null&&r.$$typeof===a}function Er(){{if(Ue.current){var r=Z(Ue.current.type);if(r)return`
|
|
22
22
|
|
|
23
|
-
Check the render method of \``+r+"`."}return""}}function
|
|
23
|
+
Check the render method of \``+r+"`."}return""}}function to(r){return""}var Nr={};function oo(r){{var n=Er();if(!n){var f=typeof r=="string"?r:r.displayName||r.name;f&&(n=`
|
|
24
24
|
|
|
25
|
-
Check the top-level render call using <`+f+">.")}return n}}function Tr(r,n){{if(!r._store||r._store.validated||r.key!=null)return;r._store.validated=!0;var f=
|
|
25
|
+
Check the top-level render call using <`+f+">.")}return n}}function Tr(r,n){{if(!r._store||r._store.validated||r.key!=null)return;r._store.validated=!0;var f=oo(n);if(Nr[f])return;Nr[f]=!0;var y="";r&&r._owner&&r._owner!==Ue.current&&(y=" It was passed a child from "+Z(r._owner.type)+"."),ke(r),R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',f,y),ke(null)}}function Pr(r,n){{if(typeof r!="object")return;if(Ve(r))for(var f=0;f<r.length;f++){var y=r[f];Ke(y)&&Tr(y,n)}else if(Ke(r))r._store&&(r._store.validated=!0);else if(r){var E=I(r);if(typeof E=="function"&&E!==r.entries)for(var O=E.call(r),C;!(C=O.next()).done;)Ke(C.value)&&Tr(C.value,n)}}}function ao(r){{var n=r.type;if(n==null||typeof n=="string")return;var f;if(typeof n=="function")f=n.propTypes;else if(typeof n=="object"&&(n.$$typeof===m||n.$$typeof===k))f=n.propTypes;else return;if(f){var y=Z(n);Ut(f,r.props,"prop",y,r)}else if(n.PropTypes!==void 0&&!Ye){Ye=!0;var E=Z(n);R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",E||"Unknown")}typeof n.getDefaultProps=="function"&&!n.getDefaultProps.isReactClassApproved&&R("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function so(r){{for(var n=Object.keys(r.props),f=0;f<n.length;f++){var y=n[f];if(y!=="children"&&y!=="key"){ke(r),R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",y),ke(null);break}}r.ref!==null&&(ke(r),R("Invalid attribute `ref` supplied to `React.Fragment`."),ke(null))}}var Or={};function Ar(r,n,f,y,E,O){{var C=de(r);if(!C){var j="";(r===void 0||typeof r=="object"&&r!==null&&Object.keys(r).length===0)&&(j+=" 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 $=to();$?j+=$:j+=Er();var L;r===null?L="null":Ve(r)?L="array":r!==void 0&&r.$$typeof===a?(L="<"+(Z(r.type)||"Unknown")+" />",j=" Did you accidentally export a JSX literal instead of a component?"):L=typeof r,R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",L,j)}var G=ro(r,n,f,E,O);if(G==null)return G;if(C){var re=n.children;if(re!==void 0)if(y)if(Ve(re)){for(var we=0;we<re.length;we++)Pr(re[we],r);Object.freeze&&Object.freeze(re)}else R("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 Pr(re,r)}if(Pe.call(n,"key")){var pe=Z(r),Q=Object.keys(n).filter(function(mo){return mo!=="key"}),Je=Q.length>0?"{key: someKey, "+Q.join(": ..., ")+": ...}":"{key: someKey}";if(!Or[pe+Je]){var uo=Q.length>0?"{"+Q.join(": ..., ")+": ...}":"{}";R(`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} />`,Je,pe,
|
|
30
|
+
<%s key={someKey} {...props} />`,Je,pe,uo,pe),Or[pe+Je]=!0}}return r===t?so(G):ao(G),G}}function no(r,n,f){return Ar(r,n,f,!0)}function io(r,n,f){return Ar(r,n,f,!1)}var lo=io,co=no;Ce.Fragment=t,Ce.jsx=lo,Ce.jsxs=co}()),Ce}process.env.NODE_ENV==="production"?Ge.exports=Ct():Ge.exports=St();var c=Ge.exports;/**
|
|
31
31
|
* @license lucide-react v0.475.0 - ISC
|
|
32
32
|
*
|
|
33
33
|
* This source code is licensed under the ISC license.
|
|
@@ -42,12 +42,12 @@ React keys must be passed directly to JSX without using spread:
|
|
|
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 Nt=N.forwardRef(({color:e="currentColor",size:a=24,strokeWidth:o=2,absoluteStrokeWidth:t,className:
|
|
45
|
+
*/const Nt=N.forwardRef(({color:e="currentColor",size:a=24,strokeWidth:o=2,absoluteStrokeWidth:t,className:i="",children:l,iconNode:s,...u},m)=>N.createElement("svg",{ref:m,...Et,width:a,height:a,stroke:e,strokeWidth:t?Number(o)*24/Number(a):o,className:hr("lucide",i),...u},[...s.map(([d,x])=>N.createElement(d,x)),...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 be=(e,a)=>{const o=N.forwardRef(({className:t,...
|
|
50
|
+
*/const be=(e,a)=>{const o=N.forwardRef(({className:t,...i},l)=>N.createElement(Nt,{ref:l,iconNode:a,className:hr(`lucide-${_t(e)}`,t),...i}));return o.displayName=`${e}`,o};/**
|
|
51
51
|
* @license lucide-react v0.475.0 - ISC
|
|
52
52
|
*
|
|
53
53
|
* This source code is licensed under the ISC license.
|
|
@@ -77,4 +77,4 @@ React keys must be passed directly to JSX without using spread:
|
|
|
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 Be=be("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),zt=({variant:e="spinner",size:a="md",text:o,fullScreen:t=!1})=>{const c={sm:"w-6 h-6",md:"w-10 h-10",lg:"w-16 h-16"},i={sm:"text-xs",md:"text-sm font-medium",lg:"text-base font-semibold"};if(e==="skeleton")return l.jsxs("div",{className:O("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:[l.jsx("div",{className:"aspect-video bg-gray-200 dark:bg-dark-surface-light w-full"}),l.jsxs("div",{className:"p-4 space-y-3",children:[l.jsx("div",{className:"h-4 bg-gray-200 dark:bg-dark-surface-light rounded w-3/4"}),l.jsx("div",{className:"h-3 bg-gray-200 dark:bg-dark-surface-light rounded w-1/2"}),l.jsx("div",{className:"h-3 bg-gray-200 dark:bg-dark-surface-light rounded w-5/6"})]})]});const s=l.jsxs("div",{className:"flex flex-col items-center justify-center space-y-3 p-4",children:[l.jsx(xr,{className:O("text-primary-500 animate-spin",c[a])}),o&&l.jsx("p",{className:O("text-gray-500 dark:text-dark-text-muted select-none",i[a]),children:o})]});return t?l.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:s}):l.jsx("div",{className:"flex items-center justify-center w-full",children:s})},It=({icon:e,variant:a="primary",size:o="md",rounded:t=!1,ariaLabel:c,disabled:i=!1,loading:s=!1,className:u="",...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",x={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"},k=t?{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 l.jsx("button",{className:O(d,x[a],k[o],s&&"pointer-events-none",u),"aria-label":c,disabled:i||s,...m,children:s?l.jsx(xr,{className:"w-4 h-4 animate-spin",role:"status","aria-hidden":"true"}):l.jsx("span",{className:"flex items-center justify-center leading-none",children:e})})};function yr({isOpen:e,onClose:a,title:o,children:t,footer:c,size:i="md",closeOnOutsideClick:s=!1}){if(N.useEffect(()=>(e?document.body.style.overflow="hidden":document.body.style.overflow="unset",()=>{document.body.style.overflow="unset"}),[e]),!e)return null;const u={sm:"max-w-md",md:"max-w-lg",lg:"max-w-2xl",xl:"max-w-4xl"};return l.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:[l.jsx("div",{className:"fixed inset-0",onClick:s?a:void 0}),l.jsxs("div",{className:O("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]",u[i]),children:[l.jsxs("div",{className:"flex justify-between items-center px-6 py-4 border-b border-gray-100 dark:border-dark-border",children:[l.jsx("h2",{className:"text-lg font-bold text-gray-900 dark:text-dark-text",children:o}),l.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:l.jsx(Be,{className:"w-5 h-5"})})]}),l.jsx("div",{className:"p-6 overflow-y-auto flex-1 text-sm text-gray-700 dark:text-dark-text-muted",children:t}),c&&l.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:c})]})]})}function Dt({isOpen:e,onClose:a,onConfirm:o,title:t,message:c,confirmText:i="Confirmar",cancelText:s="Cancelar",isLoading:u=!1}){return l.jsx(yr,{isOpen:e,onClose:a,title:t,size:"sm",footer:l.jsxs(l.Fragment,{children:[l.jsx("button",{className:"px-4 py-2 text-sm font-semibold text-gray-700 dark:text-dark-text bg-gray-100 hover:bg-gray-200 dark:bg-dark-surface-light dark:hover:bg-gray-700 rounded-lg transition-all disabled:opacity-50 cursor-pointer",onClick:a,disabled:u,children:s}),l.jsx("button",{className:"px-4 py-2 text-sm font-semibold text-white bg-red-600 hover:bg-red-700 active:scale-[0.98] rounded-lg shadow-sm transition-all disabled:opacity-50 cursor-pointer",onClick:o,disabled:u,children:u?"Aguarde...":i})]}),children:l.jsxs("div",{className:"flex gap-4 items-start",children:[l.jsx("div",{className:"p-2.5 bg-red-50 dark:bg-red-950/20 text-red-600 dark:text-red-400 rounded-xl",children:l.jsx(At,{className:"w-6 h-6 flex-shrink-0"})}),l.jsx("div",{children:l.jsx("p",{className:"text-gray-600 dark:text-dark-text-muted mt-1 leading-relaxed",children:c})})]})})}const Ft=({icon:e,title:a,description:o,action:t,variant:c="default"})=>{const i={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 l.jsxs("div",{className:O("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&&l.jsx("div",{className:O("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",i[c]),children:e}),l.jsxs("div",{className:"max-w-[500px] mb-6 space-y-2",children:[l.jsx("h3",{className:"text-xl sm:text-2xl font-bold font-heading text-gray-900 dark:text-dark-text leading-tight",children:a}),o&&l.jsx("p",{className:"text-sm sm:text-base text-gray-600 dark:text-dark-text-muted leading-relaxed",children:o})]}),t&&l.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:t.onClick,children:t.label})]})},Mt=({onSearch:e,debounceMs:a=300,placeholder:o="Pesquisar vídeos...",initialValue:t="",showClear:c=!0,autoFocus:i=!1,size:s="md",className:u="",...m})=>{const[d,x]=N.useState(t),[k,_]=N.useState(!1),w=N.useRef(null),A=N.useRef();N.useEffect(()=>{i&&w.current&&w.current.focus()},[i]),N.useEffect(()=>(A.current&&clearTimeout(A.current),A.current=setTimeout(()=>{e(d)},a),()=>{A.current&&clearTimeout(A.current)}),[d,e,a]);const T=V=>{x(V.target.value)},I=()=>{var V;x(""),(V=w.current)==null||V.focus()},W=V=>{V.key==="Escape"&&I()},R={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"},q={sm:"w-4 h-4 ml-3",md:"w-5 h-5 ml-4",lg:"w-6 h-6 ml-5"};return l.jsxs("div",{className:O("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",k?"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",R[s],u),children:[l.jsx(Ot,{className:O("text-gray-400 dark:text-dark-text-muted flex-shrink-0",q[s]),"aria-hidden":"true"}),l.jsx("input",{ref:w,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:T,onKeyDown:W,onFocus:()=>_(!0),onBlur:()=>_(!1),placeholder:o,"aria-label":"Campo de busca",...m}),c&&d&&l.jsx("button",{type:"button",className:O("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",s==="sm"?"w-5 h-5 p-0.5":s==="md"?"w-6 h-6 p-1":"w-7 h-7 p-1.5"),onClick:I,"aria-label":"Limpar busca",children:l.jsx(Be,{className:"w-full h-full"})})]})},Lt=({onDateSelect:e,label:a="Selecione uma data",maxDate:o,minDate:t,initialDate:c})=>{const[i,s]=N.useState(c||"");N.useEffect(()=>{s(c||"")},[c]);const u=m=>{const d=m.target.value;s(d),e(d)};return l.jsxs("div",{className:"flex flex-col gap-2.5 w-full max-w-[400px] md:max-w-full",children:[l.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}),l.jsx("input",{id:"date-picker",type:"date",value:i,onChange:u,max:o,min:t,className:O("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")})]})},Wt=({onDateChange:e,initialStartDate:a,initialEndDate:o,allowRange:t=!0,placeholder:c="Selecionar data"})=>{const[i,s]=N.useState(a||""),[u,m]=N.useState(o||""),[d,x]=N.useState(null),[k,_]=N.useState(!1),w=()=>new Date().toISOString().split("T")[0],A=()=>{const S=new Date;return S.setDate(S.getDate()-1),S.toISOString().split("T")[0]},T=S=>{const z=new Date;return z.setDate(z.getDate()-S),z.toISOString().split("T")[0]},I=S=>{switch(x(S),S){case"today":s(w()),m(w()),e(w(),w());break;case"yesterday":s(A()),m(A()),e(A(),A());break;case"last7days":s(T(7)),m(w()),e(T(7),w());break;case"last30days":s(T(30)),m(w()),e(T(30),w());break;case"custom":x("custom");break}S!=="custom"&&_(!1)},W=S=>{const z=S.target.value;s(z),x("custom"),e(z,t?u:null)},R=S=>{const z=S.target.value;m(z),x("custom"),e(i,z)},q=()=>{s(""),m(""),x(null),e(null,null)},V=()=>i?d&&d!=="custom"?{today:"Hoje",yesterday:"Ontem",last7days:"Últimos 7 dias",last30days:"Últimos 30 dias",custom:"Personalizado"}[d]:t&&u&&i!==u?`${H(i)} - ${H(u)}`:H(i):c,H=S=>{const[z,g,M]=S.split("-");return`${M}/${g}/${z}`};return l.jsxs("div",{className:"relative inline-block w-full sm:w-auto",children:[l.jsxs("button",{type:"button",className:O("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",k&&"border-primary-500 ring-3 ring-primary-100 dark:ring-primary-900/30"),onClick:()=>_(!k),"aria-label":"Selecionar data","aria-expanded":k,children:[l.jsx(Tt,{className:"w-5 h-5 text-gray-400 dark:text-dark-text-muted flex-shrink-0"}),l.jsx("span",{className:"flex-1 text-left whitespace-nowrap overflow-hidden text-ellipsis",children:V()}),i||u?l.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:S=>{S.stopPropagation(),q()},"aria-label":"Limpar seleção",children:l.jsx(Be,{className:"w-3 h-3"})}):l.jsx(Pt,{className:"w-4 h-4 text-gray-400 dark:text-dark-text-muted flex-shrink-0"})]}),k&&l.jsxs(l.Fragment,{children:[l.jsx("div",{className:"fixed inset-0 z-40 sm:hidden",onClick:()=>_(!1)}),l.jsxs("div",{className:O("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:[l.jsxs("div",{className:"flex flex-col gap-1 p-3",children:[l.jsx("button",{type:"button",className:O("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:()=>I("today"),children:"Hoje"}),l.jsx("button",{type:"button",className:O("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:()=>I("yesterday"),children:"Ontem"}),l.jsx("button",{type:"button",className:O("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:()=>I("last7days"),children:"Últimos 7 dias"}),l.jsx("button",{type:"button",className:O("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:()=>I("last30days"),children:"Últimos 30 dias"})]}),l.jsx("div",{className:"h-[1px] mx-3 my-1 bg-gray-200 dark:bg-dark-border"}),l.jsxs("div",{className:"flex flex-col gap-3.5 p-4 bg-gray-50/50 dark:bg-dark-bg/20 rounded-b-2xl",children:[l.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",l.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:i,onChange:W,max:w()})]}),t&&l.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",l.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:u,onChange:R,min:i,max:w()})]})]})]})]})]})},Gt=({initialLikes:e=0,onLike:a,onLikeChange:o,size:t="md",iconOnly:c=!1,disabled:i=!1})=>{const[s,u]=N.useState(e),[m,d]=N.useState(!1),x=async()=>{if(i||m)return;const A=s+1;d(!0),u(A),o==null||o(A);try{const T=await a();u(T),T!==A&&(o==null||o(T))}catch{u(s),o==null||o(s)}finally{setTimeout(()=>d(!1),600)}},k={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]"},_={sm:"text-base",md:"text-lg",lg:"text-xl"},w={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 l.jsxs("button",{className:O("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",k[t],m&&"animate-heartBeat"),onClick:x,disabled:i,"aria-label":"Curtir vídeo","aria-pressed":!0,children:[l.jsxs("span",{className:"relative flex items-center justify-center leading-none flex-shrink-0",children:[l.jsx("span",{className:O("flex items-center justify-center transition-transform duration-150",m&&"animate-iconPop"),children:"❤️"}),m&&l.jsxs(l.Fragment,{children:[l.jsx("span",{className:O("absolute text-sm pointer-events-none opacity-0 animate-heartFloat1",_[t]),children:"❤️"}),l.jsx("span",{className:O("absolute text-sm pointer-events-none opacity-0 animate-heartFloat2",_[t]),children:"❤️"}),l.jsx("span",{className:O("absolute text-sm pointer-events-none opacity-0 animate-heartFloat3",_[t]),children:"❤️"})]})]}),!c&&l.jsxs("span",{className:"flex items-center gap-1.5",children:[l.jsx("span",{className:"whitespace-nowrap",children:"Curtido"}),s>0&&l.jsx("span",{className:O("inline-flex items-center justify-center rounded-full bg-primary-600 text-white font-bold transition-all duration-150 animate-countBounce",w[t]),children:s})]})]})},Bt=({videoUrl:e,fileName:a,downloadCount:o=0,onDownloadIncrement:t,onDownloadComplete:c,onDownloadChange:i,onError:s,size:u="md",iconOnly:m=!1})=>{const[d,x]=N.useState("idle"),[k,_]=N.useState(0),[w,A]=N.useState(o),T=async()=>{var H;try{x("downloading"),_(0);const S=await fetch(e);if(!S.ok)throw new Error("Falha ao baixar o vídeo");const z=S.headers.get("content-length");if(!z)throw new Error("Não foi possível obter o tamanho do arquivo");const g=(H=S.body)==null?void 0:H.getReader();if(!g)throw new Error("Não foi possível ler o stream do vídeo");let M=0;const de=[],ge=parseInt(z,10);for(;;){const{done:D,value:ee}=await g.read();if(D)break;de.push(ee),M+=ee.length,_(Math.round(M/ge*100))}_(100);const ae=new Blob(de),Z=window.URL.createObjectURL(ae),K=document.createElement("a");K.href=Z,K.download=a,document.body.appendChild(K),K.click(),document.body.removeChild(K),window.URL.revokeObjectURL(Z),x("success");const X=w+1;if(A(X),i==null||i(X),setTimeout(()=>{x("idle"),_(0)},2e3),t)try{const D=await t();D!==X&&(A(D),i==null||i(D))}catch(D){s==null||s(D)}c==null||c()}catch(S){x("error"),s==null||s(S),setTimeout(()=>{x("idle"),_(0)},2e3)}},I=()=>{switch(d){case"downloading":return"⏳";case"success":return"✓";case"error":return"✕";default:return"⬇️"}},W=()=>{switch(d){case"downloading":return`${k}%`;case"success":return"Baixado!";case"error":return"Erro";default:return m?"":"Download"}},R={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"},q={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"},V={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 l.jsxs("button",{className:O("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",R[d],q[u]),onClick:T,disabled:d==="downloading","aria-label":`Baixar vídeo ${a}`,children:[l.jsx("span",{className:"flex items-center justify-center leading-none flex-shrink-0",children:I()}),!m&&l.jsxs("span",{className:"flex items-center gap-1.5 z-10",children:[l.jsx("span",{className:"whitespace-nowrap",children:W()}),w>0&&l.jsx("span",{className:O("inline-flex items-center justify-center rounded-full bg-primary-500 text-white font-bold",V[u]),children:w})]}),d==="downloading"&&l.jsx("div",{className:"absolute bottom-0 left-0 right-0 h-[3px] bg-primary-100 dark:bg-primary-900 overflow-hidden",children:l.jsx("div",{className:"h-full bg-gradient-to-r from-primary-500 to-primary-600 transition-all duration-250 ease-out",style:{width:`${k}%`}})})]})};Y.ConfirmDialog=Dt,Y.DatePicker=Lt,Y.DateSelector=Wt,Y.DownloadButton=Bt,Y.EmptyState=Ft,Y.IconButton=It,Y.LikeButton=Gt,Y.Loading=zt,Y.Modal=yr,Y.SearchBar=Mt,Y.cn=O,Object.defineProperty(Y,Symbol.toStringTag,{value:"Module"})});
|
|
80
|
+
*/const Be=be("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),zt=({variant:e="spinner",size:a="md",text:o,fullScreen:t=!1})=>{const i={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 c.jsxs("div",{className:T("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:[c.jsx("div",{className:"aspect-video bg-gray-200 dark:bg-dark-surface-light w-full"}),c.jsxs("div",{className:"p-4 space-y-3",children:[c.jsx("div",{className:"h-4 bg-gray-200 dark:bg-dark-surface-light rounded w-3/4"}),c.jsx("div",{className:"h-3 bg-gray-200 dark:bg-dark-surface-light rounded w-1/2"}),c.jsx("div",{className:"h-3 bg-gray-200 dark:bg-dark-surface-light rounded w-5/6"})]})]});const s=c.jsxs("div",{className:"flex flex-col items-center justify-center space-y-3 p-4",children:[c.jsx(xr,{className:T("text-primary-500 animate-spin",i[a])}),o&&c.jsx("p",{className:T("text-gray-500 dark:text-dark-text-muted select-none",l[a]),children:o})]});return t?c.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:s}):c.jsx("div",{className:"flex items-center justify-center w-full",children:s})},It=({icon:e,variant:a="primary",size:o="md",rounded:t=!1,ariaLabel:i,disabled:l=!1,loading:s=!1,className:u="",...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",x={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"},k=t?{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 c.jsx("button",{className:T(d,x[a],k[o],s&&"pointer-events-none",u),"aria-label":i,disabled:l||s,...m,children:s?c.jsx(xr,{className:"w-4 h-4 animate-spin",role:"status","aria-hidden":"true"}):c.jsx("span",{className:"flex items-center justify-center leading-none",children:e})})};function yr({isOpen:e,onClose:a,title:o,children:t,footer:i,size:l="md",closeOnOutsideClick:s=!1}){if(N.useEffect(()=>(e?document.body.style.overflow="hidden":document.body.style.overflow="unset",()=>{document.body.style.overflow="unset"}),[e]),!e)return null;const u={sm:"max-w-md",md:"max-w-lg",lg:"max-w-2xl",xl:"max-w-4xl"};return c.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:[c.jsx("div",{className:"fixed inset-0",onClick:s?a:void 0}),c.jsxs("div",{className:T("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]",u[l]),children:[c.jsxs("div",{className:"flex justify-between items-center px-6 py-4 border-b border-gray-100 dark:border-dark-border",children:[c.jsx("h2",{className:"text-lg font-bold text-gray-900 dark:text-dark-text",children:o}),c.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:c.jsx(Be,{className:"w-5 h-5"})})]}),c.jsx("div",{className:"p-6 overflow-y-auto flex-1 text-sm text-gray-700 dark:text-dark-text-muted",children:t}),i&&c.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:i})]})]})}function Dt({isOpen:e,onClose:a,onConfirm:o,title:t,message:i,confirmText:l="Confirmar",cancelText:s="Cancelar",isLoading:u=!1}){return c.jsx(yr,{isOpen:e,onClose:a,title:t,size:"sm",footer:c.jsxs(c.Fragment,{children:[c.jsx("button",{className:"px-4 py-2 text-sm font-semibold text-gray-700 dark:text-dark-text bg-gray-100 hover:bg-gray-200 dark:bg-dark-surface-light dark:hover:bg-gray-700 rounded-lg transition-all disabled:opacity-50 cursor-pointer",onClick:a,disabled:u,children:s}),c.jsx("button",{className:"px-4 py-2 text-sm font-semibold text-white bg-red-600 hover:bg-red-700 active:scale-[0.98] rounded-lg shadow-sm transition-all disabled:opacity-50 cursor-pointer",onClick:o,disabled:u,children:u?"Aguarde...":l})]}),children:c.jsxs("div",{className:"flex gap-4 items-start",children:[c.jsx("div",{className:"p-2.5 bg-red-50 dark:bg-red-950/20 text-red-600 dark:text-red-400 rounded-xl",children:c.jsx(At,{className:"w-6 h-6 flex-shrink-0"})}),c.jsx("div",{children:c.jsx("p",{className:"text-gray-600 dark:text-dark-text-muted mt-1 leading-relaxed",children:i})})]})})}const Ft=({icon:e,title:a,description:o,action:t,variant:i="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 c.jsxs("div",{className:T("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&&c.jsx("div",{className:T("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[i]),children:e}),c.jsxs("div",{className:"max-w-[500px] mb-6 space-y-2",children:[c.jsx("h3",{className:"text-xl sm:text-2xl font-bold font-heading text-gray-900 dark:text-dark-text leading-tight",children:a}),o&&c.jsx("p",{className:"text-sm sm:text-base text-gray-600 dark:text-dark-text-muted leading-relaxed",children:o})]}),t&&c.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:t.onClick,children:t.label})]})},Mt=({onSearch:e,debounceMs:a=300,placeholder:o="Pesquisar vídeos...",initialValue:t="",showClear:i=!0,autoFocus:l=!1,size:s="md",className:u="",...m})=>{const[d,x]=N.useState(t),[k,_]=N.useState(!1),w=N.useRef(null),A=N.useRef();N.useEffect(()=>{l&&w.current&&w.current.focus()},[l]),N.useEffect(()=>(A.current&&clearTimeout(A.current),A.current=setTimeout(()=>{e(d)},a),()=>{A.current&&clearTimeout(A.current)}),[d,e,a]);const P=V=>{x(V.target.value)},I=()=>{var V;x(""),(V=w.current)==null||V.focus()},W=V=>{V.key==="Escape"&&I()},R={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"},q={sm:"w-4 h-4 ml-3",md:"w-5 h-5 ml-4",lg:"w-6 h-6 ml-5"};return c.jsxs("div",{className:T("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",k?"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",R[s],u),children:[c.jsx(Ot,{className:T("text-gray-400 dark:text-dark-text-muted flex-shrink-0",q[s]),"aria-hidden":"true"}),c.jsx("input",{ref:w,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:P,onKeyDown:W,onFocus:()=>_(!0),onBlur:()=>_(!1),placeholder:o,"aria-label":"Campo de busca",...m}),i&&d&&c.jsx("button",{type:"button",className:T("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",s==="sm"?"w-5 h-5 p-0.5":s==="md"?"w-6 h-6 p-1":"w-7 h-7 p-1.5"),onClick:I,"aria-label":"Limpar busca",children:c.jsx(Be,{className:"w-full h-full"})})]})},Lt=({onDateSelect:e,label:a="Selecione uma data",maxDate:o,minDate:t,initialDate:i})=>{const[l,s]=N.useState(i||"");N.useEffect(()=>{s(i||"")},[i]);const u=m=>{const d=m.target.value;s(d),e(d)};return c.jsxs("div",{className:"flex flex-col gap-2.5 w-full max-w-[400px] md:max-w-full",children:[c.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}),c.jsx("input",{id:"date-picker",type:"date",value:l,onChange:u,max:o,min:t,className:T("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")})]})},Wt=({onDateChange:e,initialStartDate:a,initialEndDate:o,allowRange:t=!0,placeholder:i="Selecionar data"})=>{const[l,s]=N.useState(a||""),[u,m]=N.useState(o||""),[d,x]=N.useState(null),[k,_]=N.useState(!1),w=()=>new Date().toISOString().split("T")[0],A=()=>{const S=new Date;return S.setDate(S.getDate()-1),S.toISOString().split("T")[0]},P=S=>{const z=new Date;return z.setDate(z.getDate()-S),z.toISOString().split("T")[0]},I=S=>{switch(x(S),S){case"today":s(w()),m(w()),e(w(),w());break;case"yesterday":s(A()),m(A()),e(A(),A());break;case"last7days":s(P(7)),m(w()),e(P(7),w());break;case"last30days":s(P(30)),m(w()),e(P(30),w());break;case"custom":x("custom");break}S!=="custom"&&_(!1)},W=S=>{const z=S.target.value;s(z),x("custom"),e(z,t?u:null)},R=S=>{const z=S.target.value;m(z),x("custom"),e(l,z)},q=()=>{s(""),m(""),x(null),e(null,null)},V=()=>l?d&&d!=="custom"?{today:"Hoje",yesterday:"Ontem",last7days:"Últimos 7 dias",last30days:"Últimos 30 dias",custom:"Personalizado"}[d]:t&&u&&l!==u?`${H(l)} - ${H(u)}`:H(l):i,H=S=>{const[z,g,M]=S.split("-");return`${M}/${g}/${z}`};return c.jsxs("div",{className:"relative inline-block w-full sm:w-auto",children:[c.jsxs("button",{type:"button",className:T("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",k&&"border-primary-500 ring-3 ring-primary-100 dark:ring-primary-900/30"),onClick:()=>_(!k),"aria-label":"Selecionar data","aria-expanded":k,children:[c.jsx(Tt,{className:"w-5 h-5 text-gray-400 dark:text-dark-text-muted flex-shrink-0"}),c.jsx("span",{className:"flex-1 text-left whitespace-nowrap overflow-hidden text-ellipsis",children:V()}),l||u?c.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:S=>{S.stopPropagation(),q()},"aria-label":"Limpar seleção",children:c.jsx(Be,{className:"w-3 h-3"})}):c.jsx(Pt,{className:"w-4 h-4 text-gray-400 dark:text-dark-text-muted flex-shrink-0"})]}),k&&c.jsxs(c.Fragment,{children:[c.jsx("div",{className:"fixed inset-0 z-40 sm:hidden",onClick:()=>_(!1)}),c.jsxs("div",{className:T("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:[c.jsxs("div",{className:"flex flex-col gap-1 p-3",children:[c.jsx("button",{type:"button",className:T("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:()=>I("today"),children:"Hoje"}),c.jsx("button",{type:"button",className:T("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:()=>I("yesterday"),children:"Ontem"}),c.jsx("button",{type:"button",className:T("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:()=>I("last7days"),children:"Últimos 7 dias"}),c.jsx("button",{type:"button",className:T("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:()=>I("last30days"),children:"Últimos 30 dias"})]}),c.jsx("div",{className:"h-[1px] mx-3 my-1 bg-gray-200 dark:bg-dark-border"}),c.jsxs("div",{className:"flex flex-col gap-3.5 p-4 bg-gray-50/50 dark:bg-dark-bg/20 rounded-b-2xl",children:[c.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",c.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:W,max:w()})]}),t&&c.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",c.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:u,onChange:R,min:l,max:w()})]})]})]})]})]})},Gt=({initialLikes:e=0,onLike:a,onLikeChange:o,size:t="md",iconOnly:i=!1,disabled:l=!1})=>{const[s,u]=N.useState(e),[m,d]=N.useState(!1),x=async()=>{if(l||m)return;const A=s+1;d(!0),u(A),o==null||o(A);try{const P=await a();u(P),P!==A&&(o==null||o(P))}catch{u(s),o==null||o(s)}finally{setTimeout(()=>d(!1),600)}},k={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]"},_={sm:"text-base",md:"text-lg",lg:"text-xl"},w={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 c.jsxs("button",{className:T("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",k[t],m&&"animate-heartBeat"),onClick:x,disabled:l,"aria-label":"Curtir vídeo","aria-pressed":!0,children:[c.jsxs("span",{className:"relative flex items-center justify-center leading-none flex-shrink-0",children:[c.jsx("span",{className:T("flex items-center justify-center transition-transform duration-150",m&&"animate-iconPop"),children:"❤️"}),m&&c.jsxs(c.Fragment,{children:[c.jsx("span",{className:T("absolute text-sm pointer-events-none opacity-0 animate-heartFloat1",_[t]),children:"❤️"}),c.jsx("span",{className:T("absolute text-sm pointer-events-none opacity-0 animate-heartFloat2",_[t]),children:"❤️"}),c.jsx("span",{className:T("absolute text-sm pointer-events-none opacity-0 animate-heartFloat3",_[t]),children:"❤️"})]})]}),!i&&c.jsxs("span",{className:"flex items-center gap-1.5",children:[c.jsx("span",{className:"whitespace-nowrap",children:"Curtido"}),s>0&&c.jsx("span",{className:T("inline-flex items-center justify-center rounded-full bg-primary-600 text-white font-bold transition-all duration-150 animate-countBounce",w[t]),children:s})]})]})},Bt=({videoUrl:e,fileName:a,downloadCount:o=0,onDownloadIncrement:t,onDownloadComplete:i,onDownloadChange:l,onError:s,size:u="md",iconOnly:m=!1})=>{const[d,x]=N.useState("idle"),[k,_]=N.useState(0),[w,A]=N.useState(o),P=async()=>{var H;try{x("downloading"),_(0);const S=await fetch(e);if(!S.ok)throw new Error("Falha ao baixar o vídeo");const z=S.headers.get("content-length");if(!z)throw new Error("Não foi possível obter o tamanho do arquivo");const g=(H=S.body)==null?void 0:H.getReader();if(!g)throw new Error("Não foi possível ler o stream do vídeo");let M=0;const de=[],ge=parseInt(z,10);for(;;){const{done:D,value:ee}=await g.read();if(D)break;de.push(ee),M+=ee.length,_(Math.round(M/ge*100))}_(100);const ae=new Blob(de),Z=window.URL.createObjectURL(ae),K=document.createElement("a");K.href=Z,K.download=a,document.body.appendChild(K),K.click(),document.body.removeChild(K),window.URL.revokeObjectURL(Z),x("success");const X=w+1;if(A(X),l==null||l(X),setTimeout(()=>{x("idle"),_(0)},2e3),t)try{const D=await t();D!==X&&(A(D),l==null||l(D))}catch(D){s==null||s(D)}i==null||i()}catch(S){x("error"),s==null||s(S),setTimeout(()=>{x("idle"),_(0)},2e3)}},I=()=>{switch(d){case"downloading":return"⏳";case"success":return"✓";case"error":return"✕";default:return"⬇️"}},W=()=>{switch(d){case"downloading":return`${k}%`;case"success":return"Baixado!";case"error":return"Erro";default:return m?"":"Download"}},R={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"},q={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"},V={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 c.jsxs("button",{className:T("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",R[d],q[u]),onClick:P,disabled:d==="downloading","aria-label":`Baixar vídeo ${a}`,children:[c.jsx("span",{className:"flex items-center justify-center leading-none flex-shrink-0",children:I()}),!m&&c.jsxs("span",{className:"flex items-center gap-1.5 z-10",children:[c.jsx("span",{className:"whitespace-nowrap",children:W()}),w>0&&c.jsx("span",{className:T("inline-flex items-center justify-center rounded-full bg-primary-500 text-white font-bold",V[u]),children:w})]}),d==="downloading"&&c.jsx("div",{className:"absolute bottom-0 left-0 right-0 h-[3px] bg-primary-100 dark:bg-primary-900 overflow-hidden",children:c.jsx("div",{className:"h-full bg-gradient-to-r from-primary-500 to-primary-600 transition-all duration-250 ease-out",style:{width:`${k}%`}})})]})};function Vt({tabs:e,activeTab:a,onChange:o,className:t}){return c.jsx("div",{className:T("border-b border-gray-150 dark:border-dark-border/40 flex gap-2 overflow-x-auto select-none",t),children:e.map(i=>{const l=i.id===a;return c.jsxs("button",{type:"button",onClick:()=>o(i.id),className:T("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:[i.icon,i.label]},i.id)})})}Y.ConfirmDialog=Dt,Y.DatePicker=Lt,Y.DateSelector=Wt,Y.DownloadButton=Bt,Y.EmptyState=Ft,Y.IconButton=It,Y.LikeButton=Gt,Y.Loading=zt,Y.Modal=yr,Y.SearchBar=Mt,Y.Tabs=Vt,Y.cn=T,Object.defineProperty(Y,Symbol.toStringTag,{value:"Module"})});
|