banhaten-ui 0.0.12 → 0.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),E=require("react"),M=require("lucide-react"),Z=require("react-icons/fa6");function Fe(e){var s,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(s=0;s<i;s++)e[s]&&(r=Fe(e[s]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function te(){for(var e,s,r=0,o="",i=arguments.length;r<i;r++)(e=arguments[r])&&(s=Fe(e))&&(o&&(o+=" "),o+=s);return o}const tt=(e,s)=>{const r=new Array(e.length+s.length);for(let o=0;o<e.length;o++)r[o]=e[o];for(let o=0;o<s.length;o++)r[e.length+o]=s[o];return r},rt=(e,s)=>({classGroupId:e,validator:s}),Ge=(e=new Map,s=null,r)=>({nextPart:e,validators:s,classGroupId:r}),be="-",Se=[],ot="arbitrary..",st=e=>{const s=at(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:l=>{if(l.startsWith("[")&&l.endsWith("]"))return nt(l);const d=l.split(be),n=d[0]===""&&d.length>1?1:0;return Le(d,n,s)},getConflictingClassGroupIds:(l,d)=>{if(d){const n=o[l],c=r[l];return n?c?tt(c,n):n:c||Se}return r[l]||Se}}},Le=(e,s,r)=>{if(e.length-s===0)return r.classGroupId;const i=e[s],a=r.nextPart.get(i);if(a){const c=Le(e,s+1,a);if(c)return c}const l=r.validators;if(l===null)return;const d=s===0?e.join(be):e.slice(s).join(be),n=l.length;for(let c=0;c<n;c++){const h=l[c];if(h.validator(d))return h.classGroupId}},nt=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const s=e.slice(1,-1),r=s.indexOf(":"),o=s.slice(0,r);return o?ot+o:void 0})(),at=e=>{const{theme:s,classGroups:r}=e;return lt(r,s)},lt=(e,s)=>{const r=Ge();for(const o in e){const i=e[o];ye(i,r,o,s)}return r},ye=(e,s,r,o)=>{const i=e.length;for(let a=0;a<i;a++){const l=e[a];it(l,s,r,o)}},it=(e,s,r,o)=>{if(typeof e=="string"){ct(e,s,r);return}if(typeof e=="function"){dt(e,s,r,o);return}ut(e,s,r,o)},ct=(e,s,r)=>{const o=e===""?s:Oe(s,e);o.classGroupId=r},dt=(e,s,r,o)=>{if(pt(e)){ye(e(o),s,r,o);return}s.validators===null&&(s.validators=[]),s.validators.push(rt(r,e))},ut=(e,s,r,o)=>{const i=Object.entries(e),a=i.length;for(let l=0;l<a;l++){const[d,n]=i[l];ye(n,Oe(s,d),r,o)}},Oe=(e,s)=>{let r=e;const o=s.split(be),i=o.length;for(let a=0;a<i;a++){const l=o[a];let d=r.nextPart.get(l);d||(d=Ge(),r.nextPart.set(l,d)),r=d}return r},pt=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,xt=e=>{if(e<1)return{get:()=>{},set:()=>{}};let s=0,r=Object.create(null),o=Object.create(null);const i=(a,l)=>{r[a]=l,s++,s>e&&(s=0,o=r,r=Object.create(null))};return{get(a){let l=r[a];if(l!==void 0)return l;if((l=o[a])!==void 0)return i(a,l),l},set(a,l){a in r?r[a]=l:i(a,l)}}},ve="!",ze=":",mt=[],Ae=(e,s,r,o,i)=>({modifiers:e,hasImportantModifier:s,baseClassName:r,maybePostfixModifierPosition:o,isExternal:i}),bt=e=>{const{prefix:s,experimentalParseClassName:r}=e;let o=i=>{const a=[];let l=0,d=0,n=0,c;const h=i.length;for(let k=0;k<h;k++){const v=i[k];if(l===0&&d===0){if(v===ze){a.push(i.slice(n,k)),n=k+1;continue}if(v==="/"){c=k;continue}}v==="["?l++:v==="]"?l--:v==="("?d++:v===")"&&d--}const w=a.length===0?i:i.slice(n);let b=w,j=!1;w.endsWith(ve)?(b=w.slice(0,-1),j=!0):w.startsWith(ve)&&(b=w.slice(1),j=!0);const S=c&&c>n?c-n:void 0;return Ae(a,j,b,S)};if(s){const i=s+ze,a=o;o=l=>l.startsWith(i)?a(l.slice(i.length)):Ae(mt,!1,l,void 0,!0)}if(r){const i=o;o=a=>r({className:a,parseClassName:i})}return o},ht=e=>{const s=new Map;return e.orderSensitiveModifiers.forEach((r,o)=>{s.set(r,1e6+o)}),r=>{const o=[];let i=[];for(let a=0;a<r.length;a++){const l=r[a],d=l[0]==="[",n=s.has(l);d||n?(i.length>0&&(i.sort(),o.push(...i),i=[]),o.push(l)):i.push(l)}return i.length>0&&(i.sort(),o.push(...i)),o}},gt=e=>({cache:xt(e.cacheSize),parseClassName:bt(e),sortModifiers:ht(e),...st(e)}),ft=/\s+/,wt=(e,s)=>{const{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:i,sortModifiers:a}=s,l=[],d=e.trim().split(ft);let n="";for(let c=d.length-1;c>=0;c-=1){const h=d[c],{isExternal:w,modifiers:b,hasImportantModifier:j,baseClassName:S,maybePostfixModifierPosition:k}=r(h);if(w){n=h+(n.length>0?" "+n:n);continue}let v=!!k,A=o(v?S.substring(0,k):S);if(!A){if(!v){n=h+(n.length>0?" "+n:n);continue}if(A=o(S),!A){n=h+(n.length>0?" "+n:n);continue}v=!1}const _=b.length===0?"":b.length===1?b[0]:a(b).join(":"),G=j?_+ve:_,f=G+A;if(l.indexOf(f)>-1)continue;l.push(f);const O=i(A,v);for(let y=0;y<O.length;++y){const C=O[y];l.push(G+C)}n=h+(n.length>0?" "+n:n)}return n},vt=(...e)=>{let s=0,r,o,i="";for(;s<e.length;)(r=e[s++])&&(o=Pe(r))&&(i&&(i+=" "),i+=o);return i},Pe=e=>{if(typeof e=="string")return e;let s,r="";for(let o=0;o<e.length;o++)e[o]&&(s=Pe(e[o]))&&(r&&(r+=" "),r+=s);return r},yt=(e,...s)=>{let r,o,i,a;const l=n=>{const c=s.reduce((h,w)=>w(h),e());return r=gt(c),o=r.cache.get,i=r.cache.set,a=d,d(n)},d=n=>{const c=o(n);if(c)return c;const h=wt(n,r);return i(n,h),h};return a=l,(...n)=>a(vt(...n))},kt=[],F=e=>{const s=r=>r[e]||kt;return s.isThemeGetter=!0,s},Me=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Be=/^\((?:(\w[\w-]*):)?(.+)\)$/i,jt=/^\d+\/\d+$/,Ct=/^(\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$/,St=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,zt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,At=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ee=e=>jt.test(e),N=e=>!!e&&!Number.isNaN(Number(e)),Y=e=>!!e&&Number.isInteger(Number(e)),fe=e=>e.endsWith("%")&&N(e.slice(0,-1)),H=e=>Ct.test(e),Rt=()=>!0,_t=e=>Nt.test(e)&&!St.test(e),De=()=>!1,It=e=>zt.test(e),Ft=e=>At.test(e),Gt=e=>!u(e)&&!p(e),Lt=e=>re(e,$e,De),u=e=>Me.test(e),Q=e=>re(e,We,_t),we=e=>re(e,Dt,N),Re=e=>re(e,Ee,De),Ot=e=>re(e,Te,Ft),ue=e=>re(e,Ve,It),p=e=>Be.test(e),ne=e=>oe(e,We),Pt=e=>oe(e,Et),_e=e=>oe(e,Ee),Mt=e=>oe(e,$e),Bt=e=>oe(e,Te),pe=e=>oe(e,Ve,!0),re=(e,s,r)=>{const o=Me.exec(e);return o?o[1]?s(o[1]):r(o[2]):!1},oe=(e,s,r=!1)=>{const o=Be.exec(e);return o?o[1]?s(o[1]):r:!1},Ee=e=>e==="position"||e==="percentage",Te=e=>e==="image"||e==="url",$e=e=>e==="length"||e==="size"||e==="bg-size",We=e=>e==="length",Dt=e=>e==="number",Et=e=>e==="family-name",Ve=e=>e==="shadow",Tt=()=>{const e=F("color"),s=F("font"),r=F("text"),o=F("font-weight"),i=F("tracking"),a=F("leading"),l=F("breakpoint"),d=F("container"),n=F("spacing"),c=F("radius"),h=F("shadow"),w=F("inset-shadow"),b=F("text-shadow"),j=F("drop-shadow"),S=F("blur"),k=F("perspective"),v=F("aspect"),A=F("ease"),_=F("animate"),G=()=>["auto","avoid","all","avoid-page","page","left","right","column"],f=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],O=()=>[...f(),p,u],y=()=>["auto","hidden","clip","visible","scroll"],C=()=>["auto","contain","none"],m=()=>[p,u,n],z=()=>[ee,"full","auto",...m()],U=()=>[Y,"none","subgrid",p,u],T=()=>["auto",{span:["full",Y,p,u]},Y,p,u],$=()=>[Y,"auto",p,u],R=()=>["auto","min","max","fr",p,u],P=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],I=()=>["start","end","center","stretch","center-safe","end-safe"],B=()=>["auto",...m()],q=()=>[ee,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...m()],g=()=>[e,p,u],ae=()=>[...f(),_e,Re,{position:[p,u]}],J=()=>["no-repeat",{repeat:["","x","y","space","round"]}],je=()=>["auto","cover","contain",Mt,Lt,{size:[p,u]}],he=()=>[fe,ne,Q],D=()=>["","none","full",c,p,u],W=()=>["",N,ne,Q],le=()=>["solid","dashed","dotted","double"],Ce=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],L=()=>[N,fe,_e,Re],Ne=()=>["","none",S,p,u],ie=()=>["none",N,p,u],ce=()=>["none",N,p,u],ge=()=>[N,p,u],de=()=>[ee,"full",...m()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[H],breakpoint:[H],color:[Rt],container:[H],"drop-shadow":[H],ease:["in","out","in-out"],font:[Gt],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[H],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[H],shadow:[H],spacing:["px",N],text:[H],"text-shadow":[H],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ee,u,p,v]}],container:["container"],columns:[{columns:[N,u,p,d]}],"break-after":[{"break-after":G()}],"break-before":[{"break-before":G()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],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:O()}],overflow:[{overflow:y()}],"overflow-x":[{"overflow-x":y()}],"overflow-y":[{"overflow-y":y()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:z()}],"inset-x":[{"inset-x":z()}],"inset-y":[{"inset-y":z()}],start:[{start:z()}],end:[{end:z()}],top:[{top:z()}],right:[{right:z()}],bottom:[{bottom:z()}],left:[{left:z()}],visibility:["visible","invisible","collapse"],z:[{z:[Y,"auto",p,u]}],basis:[{basis:[ee,"full","auto",d,...m()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[N,ee,"auto","initial","none",u]}],grow:[{grow:["",N,p,u]}],shrink:[{shrink:["",N,p,u]}],order:[{order:[Y,"first","last","none",p,u]}],"grid-cols":[{"grid-cols":U()}],"col-start-end":[{col:T()}],"col-start":[{"col-start":$()}],"col-end":[{"col-end":$()}],"grid-rows":[{"grid-rows":U()}],"row-start-end":[{row:T()}],"row-start":[{"row-start":$()}],"row-end":[{"row-end":$()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":R()}],"auto-rows":[{"auto-rows":R()}],gap:[{gap:m()}],"gap-x":[{"gap-x":m()}],"gap-y":[{"gap-y":m()}],"justify-content":[{justify:[...P(),"normal"]}],"justify-items":[{"justify-items":[...I(),"normal"]}],"justify-self":[{"justify-self":["auto",...I()]}],"align-content":[{content:["normal",...P()]}],"align-items":[{items:[...I(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...I(),{baseline:["","last"]}]}],"place-content":[{"place-content":P()}],"place-items":[{"place-items":[...I(),"baseline"]}],"place-self":[{"place-self":["auto",...I()]}],p:[{p:m()}],px:[{px:m()}],py:[{py:m()}],ps:[{ps:m()}],pe:[{pe:m()}],pt:[{pt:m()}],pr:[{pr:m()}],pb:[{pb:m()}],pl:[{pl:m()}],m:[{m:B()}],mx:[{mx:B()}],my:[{my:B()}],ms:[{ms:B()}],me:[{me:B()}],mt:[{mt:B()}],mr:[{mr:B()}],mb:[{mb:B()}],ml:[{ml:B()}],"space-x":[{"space-x":m()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":m()}],"space-y-reverse":["space-y-reverse"],size:[{size:q()}],w:[{w:[d,"screen",...q()]}],"min-w":[{"min-w":[d,"screen","none",...q()]}],"max-w":[{"max-w":[d,"screen","none","prose",{screen:[l]},...q()]}],h:[{h:["screen","lh",...q()]}],"min-h":[{"min-h":["screen","lh","none",...q()]}],"max-h":[{"max-h":["screen","lh",...q()]}],"font-size":[{text:["base",r,ne,Q]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,p,we]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",fe,u]}],"font-family":[{font:[Pt,u,s]}],"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,p,u]}],"line-clamp":[{"line-clamp":[N,"none",p,we]}],leading:[{leading:[a,...m()]}],"list-image":[{"list-image":["none",p,u]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",p,u]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:g()}],"text-color":[{text:g()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...le(),"wavy"]}],"text-decoration-thickness":[{decoration:[N,"from-font","auto",p,Q]}],"text-decoration-color":[{decoration:g()}],"underline-offset":[{"underline-offset":[N,"auto",p,u]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:m()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",p,u]}],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",p,u]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ae()}],"bg-repeat":[{bg:J()}],"bg-size":[{bg:je()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Y,p,u],radial:["",p,u],conic:[Y,p,u]},Bt,Ot]}],"bg-color":[{bg:g()}],"gradient-from-pos":[{from:he()}],"gradient-via-pos":[{via:he()}],"gradient-to-pos":[{to:he()}],"gradient-from":[{from:g()}],"gradient-via":[{via:g()}],"gradient-to":[{to:g()}],rounded:[{rounded:D()}],"rounded-s":[{"rounded-s":D()}],"rounded-e":[{"rounded-e":D()}],"rounded-t":[{"rounded-t":D()}],"rounded-r":[{"rounded-r":D()}],"rounded-b":[{"rounded-b":D()}],"rounded-l":[{"rounded-l":D()}],"rounded-ss":[{"rounded-ss":D()}],"rounded-se":[{"rounded-se":D()}],"rounded-ee":[{"rounded-ee":D()}],"rounded-es":[{"rounded-es":D()}],"rounded-tl":[{"rounded-tl":D()}],"rounded-tr":[{"rounded-tr":D()}],"rounded-br":[{"rounded-br":D()}],"rounded-bl":[{"rounded-bl":D()}],"border-w":[{border:W()}],"border-w-x":[{"border-x":W()}],"border-w-y":[{"border-y":W()}],"border-w-s":[{"border-s":W()}],"border-w-e":[{"border-e":W()}],"border-w-t":[{"border-t":W()}],"border-w-r":[{"border-r":W()}],"border-w-b":[{"border-b":W()}],"border-w-l":[{"border-l":W()}],"divide-x":[{"divide-x":W()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":W()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...le(),"hidden","none"]}],"divide-style":[{divide:[...le(),"hidden","none"]}],"border-color":[{border:g()}],"border-color-x":[{"border-x":g()}],"border-color-y":[{"border-y":g()}],"border-color-s":[{"border-s":g()}],"border-color-e":[{"border-e":g()}],"border-color-t":[{"border-t":g()}],"border-color-r":[{"border-r":g()}],"border-color-b":[{"border-b":g()}],"border-color-l":[{"border-l":g()}],"divide-color":[{divide:g()}],"outline-style":[{outline:[...le(),"none","hidden"]}],"outline-offset":[{"outline-offset":[N,p,u]}],"outline-w":[{outline:["",N,ne,Q]}],"outline-color":[{outline:g()}],shadow:[{shadow:["","none",h,pe,ue]}],"shadow-color":[{shadow:g()}],"inset-shadow":[{"inset-shadow":["none",w,pe,ue]}],"inset-shadow-color":[{"inset-shadow":g()}],"ring-w":[{ring:W()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:g()}],"ring-offset-w":[{"ring-offset":[N,Q]}],"ring-offset-color":[{"ring-offset":g()}],"inset-ring-w":[{"inset-ring":W()}],"inset-ring-color":[{"inset-ring":g()}],"text-shadow":[{"text-shadow":["none",b,pe,ue]}],"text-shadow-color":[{"text-shadow":g()}],opacity:[{opacity:[N,p,u]}],"mix-blend":[{"mix-blend":[...Ce(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ce()}],"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":[N]}],"mask-image-linear-from-pos":[{"mask-linear-from":L()}],"mask-image-linear-to-pos":[{"mask-linear-to":L()}],"mask-image-linear-from-color":[{"mask-linear-from":g()}],"mask-image-linear-to-color":[{"mask-linear-to":g()}],"mask-image-t-from-pos":[{"mask-t-from":L()}],"mask-image-t-to-pos":[{"mask-t-to":L()}],"mask-image-t-from-color":[{"mask-t-from":g()}],"mask-image-t-to-color":[{"mask-t-to":g()}],"mask-image-r-from-pos":[{"mask-r-from":L()}],"mask-image-r-to-pos":[{"mask-r-to":L()}],"mask-image-r-from-color":[{"mask-r-from":g()}],"mask-image-r-to-color":[{"mask-r-to":g()}],"mask-image-b-from-pos":[{"mask-b-from":L()}],"mask-image-b-to-pos":[{"mask-b-to":L()}],"mask-image-b-from-color":[{"mask-b-from":g()}],"mask-image-b-to-color":[{"mask-b-to":g()}],"mask-image-l-from-pos":[{"mask-l-from":L()}],"mask-image-l-to-pos":[{"mask-l-to":L()}],"mask-image-l-from-color":[{"mask-l-from":g()}],"mask-image-l-to-color":[{"mask-l-to":g()}],"mask-image-x-from-pos":[{"mask-x-from":L()}],"mask-image-x-to-pos":[{"mask-x-to":L()}],"mask-image-x-from-color":[{"mask-x-from":g()}],"mask-image-x-to-color":[{"mask-x-to":g()}],"mask-image-y-from-pos":[{"mask-y-from":L()}],"mask-image-y-to-pos":[{"mask-y-to":L()}],"mask-image-y-from-color":[{"mask-y-from":g()}],"mask-image-y-to-color":[{"mask-y-to":g()}],"mask-image-radial":[{"mask-radial":[p,u]}],"mask-image-radial-from-pos":[{"mask-radial-from":L()}],"mask-image-radial-to-pos":[{"mask-radial-to":L()}],"mask-image-radial-from-color":[{"mask-radial-from":g()}],"mask-image-radial-to-color":[{"mask-radial-to":g()}],"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":f()}],"mask-image-conic-pos":[{"mask-conic":[N]}],"mask-image-conic-from-pos":[{"mask-conic-from":L()}],"mask-image-conic-to-pos":[{"mask-conic-to":L()}],"mask-image-conic-from-color":[{"mask-conic-from":g()}],"mask-image-conic-to-color":[{"mask-conic-to":g()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ae()}],"mask-repeat":[{mask:J()}],"mask-size":[{mask:je()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",p,u]}],filter:[{filter:["","none",p,u]}],blur:[{blur:Ne()}],brightness:[{brightness:[N,p,u]}],contrast:[{contrast:[N,p,u]}],"drop-shadow":[{"drop-shadow":["","none",j,pe,ue]}],"drop-shadow-color":[{"drop-shadow":g()}],grayscale:[{grayscale:["",N,p,u]}],"hue-rotate":[{"hue-rotate":[N,p,u]}],invert:[{invert:["",N,p,u]}],saturate:[{saturate:[N,p,u]}],sepia:[{sepia:["",N,p,u]}],"backdrop-filter":[{"backdrop-filter":["","none",p,u]}],"backdrop-blur":[{"backdrop-blur":Ne()}],"backdrop-brightness":[{"backdrop-brightness":[N,p,u]}],"backdrop-contrast":[{"backdrop-contrast":[N,p,u]}],"backdrop-grayscale":[{"backdrop-grayscale":["",N,p,u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[N,p,u]}],"backdrop-invert":[{"backdrop-invert":["",N,p,u]}],"backdrop-opacity":[{"backdrop-opacity":[N,p,u]}],"backdrop-saturate":[{"backdrop-saturate":[N,p,u]}],"backdrop-sepia":[{"backdrop-sepia":["",N,p,u]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":m()}],"border-spacing-x":[{"border-spacing-x":m()}],"border-spacing-y":[{"border-spacing-y":m()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",p,u]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[N,"initial",p,u]}],ease:[{ease:["linear","initial",A,p,u]}],delay:[{delay:[N,p,u]}],animate:[{animate:["none",_,p,u]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[k,p,u]}],"perspective-origin":[{"perspective-origin":O()}],rotate:[{rotate:ie()}],"rotate-x":[{"rotate-x":ie()}],"rotate-y":[{"rotate-y":ie()}],"rotate-z":[{"rotate-z":ie()}],scale:[{scale:ce()}],"scale-x":[{"scale-x":ce()}],"scale-y":[{"scale-y":ce()}],"scale-z":[{"scale-z":ce()}],"scale-3d":["scale-3d"],skew:[{skew:ge()}],"skew-x":[{"skew-x":ge()}],"skew-y":[{"skew-y":ge()}],transform:[{transform:[p,u,"","none","gpu","cpu"]}],"transform-origin":[{origin:O()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:de()}],"translate-x":[{"translate-x":de()}],"translate-y":[{"translate-y":de()}],"translate-z":[{"translate-z":de()}],"translate-none":["translate-none"],accent:[{accent:g()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:g()}],"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",p,u]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":m()}],"scroll-mx":[{"scroll-mx":m()}],"scroll-my":[{"scroll-my":m()}],"scroll-ms":[{"scroll-ms":m()}],"scroll-me":[{"scroll-me":m()}],"scroll-mt":[{"scroll-mt":m()}],"scroll-mr":[{"scroll-mr":m()}],"scroll-mb":[{"scroll-mb":m()}],"scroll-ml":[{"scroll-ml":m()}],"scroll-p":[{"scroll-p":m()}],"scroll-px":[{"scroll-px":m()}],"scroll-py":[{"scroll-py":m()}],"scroll-ps":[{"scroll-ps":m()}],"scroll-pe":[{"scroll-pe":m()}],"scroll-pt":[{"scroll-pt":m()}],"scroll-pr":[{"scroll-pr":m()}],"scroll-pb":[{"scroll-pb":m()}],"scroll-pl":[{"scroll-pl":m()}],"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",p,u]}],fill:[{fill:["none",...g()]}],"stroke-w":[{stroke:[N,ne,Q,we]}],stroke:[{stroke:["none",...g()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],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-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},se=yt(Tt);function X(...e){return se(te(e))}const $t={primary:X("bg-primary-600 text-white","hover:bg-primary-700","active:bg-primary-800","shadow-solid hover:shadow-solid-hover active:shadow-solid-active","dark:bg-primary-500 dark:text-white","dark:hover:bg-primary-600","dark:active:bg-primary-700"),soft:X("bg-primary-50 text-primary-700","hover:bg-primary-100","active:bg-primary-200","shadow-soft hover:shadow-soft-hover active:shadow-soft-active","dark:bg-primary-950 dark:text-primary-300","dark:hover:bg-primary-900","dark:active:bg-primary-800"),secondary:X("bg-neutral-800 text-white","hover:bg-neutral-900","active:bg-black","shadow-secondary hover:shadow-secondary-hover active:shadow-secondary-active","dark:bg-neutral-700 dark:text-neutral-100","dark:hover:bg-neutral-600","dark:active:bg-neutral-500"),dashed:X("bg-white text-neutral-700 border border-dashed border-neutral-300","hover:bg-neutral-50 hover:border-neutral-400","active:bg-neutral-100","shadow-outline hover:shadow-outline-hover active:shadow-outline-active","dark:bg-neutral-900 dark:text-neutral-300 dark:border-neutral-700","dark:hover:bg-neutral-800 dark:hover:border-neutral-600","dark:active:bg-neutral-700"),white:X("bg-white text-neutral-900","hover:bg-neutral-50","active:bg-neutral-100","shadow-white hover:shadow-white-hover active:shadow-white-active","dark:bg-neutral-100 dark:text-neutral-900","dark:hover:bg-neutral-200","dark:active:bg-neutral-300"),outline:X("bg-white text-neutral-700 border border-neutral-300","hover:bg-neutral-50 hover:border-neutral-400","active:bg-neutral-100","shadow-outline hover:shadow-outline-hover active:shadow-outline-active","dark:bg-neutral-900 dark:text-neutral-300 dark:border-neutral-700","dark:hover:bg-neutral-800 dark:hover:border-neutral-600","dark:active:bg-neutral-700"),ghost:X("bg-transparent text-neutral-700","hover:bg-neutral-100","active:bg-neutral-200","shadow-none","dark:text-neutral-300","dark:hover:bg-neutral-800","dark:active:bg-neutral-700"),"ghost-primary":X("bg-transparent text-primary-600","hover:bg-primary-50","active:bg-primary-100","shadow-none","dark:text-primary-400","dark:hover:bg-primary-950","dark:active:bg-primary-900"),danger:X("bg-critical-600 text-white","hover:bg-critical-700","active:bg-critical-800","shadow-solid hover:shadow-solid-hover active:shadow-solid-active","dark:bg-critical-500 dark:text-white","dark:hover:bg-critical-600","dark:active:bg-critical-700"),"soft-danger":X("bg-critical-50 text-critical-700","hover:bg-critical-100","active:bg-critical-200","shadow-soft hover:shadow-soft-hover active:shadow-soft-active","dark:bg-critical-950 dark:text-critical-300","dark:hover:bg-critical-900","dark:active:bg-critical-800")},Wt={xs:"h-btn-xs pl-3 pr-1.5 py-2 gap-0.5",sm:"h-btn-sm pl-3 pr-2 py-2 gap-1",md:"h-btn-md pl-3 pr-2.5 py-0 gap-1",lg:"h-btn-lg pl-3 pr-3 py-3 gap-1"},Vt={xs:"h-btn-xs w-btn-xs p-0",sm:"h-btn-sm w-btn-sm p-0",md:"h-btn-md w-btn-md p-0",lg:"h-btn-lg w-btn-lg p-0"},Ue=E.forwardRef(({variant:e="primary",size:s="md",loading:r=!1,disabled:o=!1,fullWidth:i=!1,iconLeft:a,iconRight:l,startIcon:d,endIcon:n,icon:c,rtl:h=!1,children:w,className:b,...j},S)=>{const k=c&&!w,v=a||d,A=l||n,_=X("inline-flex items-center justify-center","font-sans text-btn font-medium","rounded-control","transition-all duration-150 ease-in-out","focus:outline-none focus-visible:ring-2 focus-visible:ring-primary-500 focus-visible:ring-offset-2","cursor-pointer",$t[e],k?Vt[s]:Wt[s],h&&"font-sans-rtl",i&&"w-full",(o||r)&&"opacity-50 cursor-not-allowed shadow-none pointer-events-none",b);return t.jsxs("button",{ref:S,type:"button",disabled:o||r,dir:h?"rtl":void 0,className:_,...j,children:[r?t.jsx(M.Loader2,{className:"h-[20px] w-[20px] animate-spin"}):k?t.jsx("span",{className:"flex items-center justify-center h-[20px] w-[20px] [&>svg]:h-[20px] [&>svg]:w-[20px]",children:c}):null,!k&&!r&&t.jsx(t.Fragment,{children:h?t.jsxs(t.Fragment,{children:[A&&t.jsx("span",{className:"flex items-center justify-center h-[20px] w-[20px] [&>svg]:h-[20px] [&>svg]:w-[20px] mr-1",children:A}),w&&t.jsx("span",{className:"truncate",children:w}),v&&t.jsx("span",{className:"flex items-center justify-center h-[20px] w-[20px] [&>svg]:h-[20px] [&>svg]:w-[20px] ml-1",children:v})]}):t.jsxs(t.Fragment,{children:[v&&t.jsx("span",{className:"flex items-center justify-center h-[20px] w-[20px] [&>svg]:h-[20px] [&>svg]:w-[20px] mr-1",children:v}),w&&t.jsx("span",{className:"truncate",children:w}),A&&t.jsx("span",{className:"flex items-center justify-center h-[20px] w-[20px] [&>svg]:h-[20px] [&>svg]:w-[20px] ml-1",children:A})]})}),r&&!k&&w&&t.jsx("span",{className:"truncate ml-1",children:w})]})});Ue.displayName="Button";function K(...e){return se(te(e))}const Ut={Facebook:"Sign in with Facebook",LinkedIn:"Sign in with LinkedIn",Apple:"Sign in with Apple",WhatsApp:"Sign in with WhatsApp",Google:"Sign in with Google",X:"Sign in with X"},qt={Facebook:"تسجيل الدخول باستخدام فيسبوك",LinkedIn:"تسجيل الدخول باستخدام لينكد إن",Apple:"تسجيل الدخول باستخدام آبل",WhatsApp:"تسجيل الدخول باستخدام واتساب",Google:"تسجيل الدخول باستخدام جوجل",X:"تسجيل الدخول باستخدام إكس"},Xt={Facebook:{bg:"bg-social-facebook",hoverBg:"hover:bg-[#166FE5]",focusRing:"focus-visible:ring-[#1460CC]",text:"text-white",border:"border-social-facebook",textColor:"text-social-facebook"},LinkedIn:{bg:"bg-social-linkedin",hoverBg:"hover:bg-[#09599A]",focusRing:"focus-visible:ring-[#084C82]",text:"text-white",border:"border-social-linkedin",textColor:"text-social-linkedin"},Apple:{bg:"bg-social-apple",hoverBg:"hover:bg-[#1a1a1a]",focusRing:"focus-visible:ring-[#333333]",text:"text-white",border:"border-social-apple",textColor:"text-social-apple"},WhatsApp:{bg:"bg-social-whatsapp",hoverBg:"hover:bg-[#22C55E]",focusRing:"focus-visible:ring-[#1FA855]",text:"text-white",border:"border-social-whatsapp",textColor:"text-social-whatsapp"},Google:{bg:"bg-social-google",hoverBg:"hover:bg-[#357AE5]",focusRing:"focus-visible:ring-[#2E6FD6]",text:"text-white",border:"border-social-google",textColor:"text-social-google"},X:{bg:"bg-social-twitter",hoverBg:"hover:bg-[#1A91E0]",focusRing:"focus-visible:ring-[#1781CE]",text:"text-white",border:"border-social-twitter",textColor:"text-social-twitter"}},Ht=e=>({Facebook:t.jsx(Z.FaFacebook,{size:20}),LinkedIn:t.jsx(Z.FaLinkedin,{size:20}),Apple:t.jsx(Z.FaApple,{size:20}),WhatsApp:t.jsx(Z.FaWhatsapp,{size:20}),Google:t.jsx(Z.FaGoogle,{size:20}),X:t.jsx(Z.FaXTwitter,{size:20})})[e],qe=E.forwardRef(({platform:e,type:s="Default",style:r="Solid",rtl:o=!1,disabled:i=!1,className:a,...l},d)=>{const n=o,c=s==="IconOnly",h=r==="Outlined",w=Xt[e],b=Ht(e),j=n?qt[e]:Ut[e],S=K("inline-flex items-center justify-center","font-sans text-btn font-medium","rounded-control","transition-all duration-150 ease-in-out","focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2","cursor-pointer","relative",c?"h-9 w-9 p-0":"h-9 pl-3 pr-3 py-0 gap-0.5",n&&"font-sans-rtl",i&&"opacity-50 cursor-not-allowed pointer-events-none",a),k=K(r==="Solid"?K(w.bg,w.text,w.hoverBg,w.focusRing,"border border-transparent","shadow-component-default","hover:shadow-component-hover","focus-visible:shadow-component-focus"):K("bg-white",w.border,w.textColor,"border","shadow-outline","hover:bg-neutral-50","hover:shadow-outline-hover",w.focusRing)),v=K("flex items-center justify-center flex-shrink-0","h-[20px] w-[20px]",c?"":"mr-0.5",h&&w.textColor),A=()=>t.jsx("span",{className:v,children:b});return t.jsx("button",{ref:d,type:"button",disabled:i,dir:n?"rtl":void 0,className:K(S,k),...l,children:n?t.jsxs(t.Fragment,{children:[!c&&t.jsx("span",{className:K("truncate relative z-10",h&&w.textColor),children:j}),A()]}):t.jsxs(t.Fragment,{children:[A(),!c&&t.jsx("span",{className:K("truncate relative z-10",h&&w.textColor),children:j})]})})});qe.displayName="SocialButton";function x(...e){return se(te(e))}const Xe=E.forwardRef(({items:e=[],size:s="md",type:r="Default",rtl:o=!1,rtlLabels:i=[],className:a,...l},d)=>{const c={xs:{height:"h-[32px]",padding:r==="IconOnly"?"px-1.5":"px-2",gap:r==="IconOnly"?"gap-0.5":"gap-1"},sm:{height:"h-[36px]",padding:r==="IconOnly"?"px-2":"px-2.5",gap:"gap-1"},md:{height:"h-[40px]",padding:r==="IconOnly"?"px-2.5":"px-3.5",gap:"gap-1"}}[s],h=x("relative inline-flex items-center overflow-hidden","bg-neutral-50 border border-neutral-300 rounded-control","shadow-[0px_1px_2px_0px_rgba(15,17,20,0.05)]",o&&"flex-row-reverse",a),w=(b,j,S)=>x("relative flex items-center justify-center","bg-transparent transition-all duration-150",c.height,c.padding,c.gap,"text-neutral-700 text-[15px] font-medium leading-[24px]",!b.disabled&&"hover:bg-neutral-100 active:bg-neutral-200",!b.disabled&&"cursor-pointer",b.disabled&&"opacity-50 cursor-not-allowed",b.active&&"bg-neutral-100",!j&&"before:absolute before:left-0 before:top-0 before:bottom-0",!j&&"before:w-px before:bg-neutral-300/50",o&&!j&&"before:left-auto before:right-0");return t.jsxs("div",{ref:d,className:h,...l,children:[t.jsx("div",{className:"absolute inset-0 pointer-events-none rounded-control shadow-[inset_0px_-1px_0px_0px_rgba(0,0,0,0.08)]"}),e.map((b,j)=>{const S=b.icon||M.Plus,k=j===0;e.length-1;const v=o&&i[j]?i[j]:b.label;return t.jsx("button",{type:"button",onClick:b.onClick,disabled:b.disabled,className:w(b,k),children:r==="Default"?t.jsx(t.Fragment,{children:o?t.jsxs(t.Fragment,{children:[v&&t.jsx("span",{className:"px-0.5 whitespace-nowrap font-sans-rtl",children:v}),t.jsx(S,{className:"w-5 h-5 shrink-0"})]}):t.jsxs(t.Fragment,{children:[t.jsx(S,{className:"w-5 h-5 shrink-0"}),v&&t.jsx("span",{className:"px-0.5 whitespace-nowrap",children:v})]})}):t.jsx(S,{className:"w-5 h-5 shrink-0"})},j)})]})});Xe.displayName="ButtonGroup";const He=E.forwardRef(({label:e,supportText:s,rtlLabel:r,rtlSupportText:o,checkLocation:i="leading",indeterminate:a=!1,rtl:l=!1,error:d=!1,disabled:n=!1,checked:c=!1,className:h,...w},b)=>{const j=l&&r?r:e,S=l&&o?o:s,k=!!s||!!o,v=x("relative w-5 h-5 rounded border flex items-center justify-center transition-all duration-150","bg-white shadow-[0px_1px_2px_0px_rgba(15,17,20,0.05)]",!c&&!a&&!d&&!n&&"border-neutral-300",!c&&!a&&d&&!n&&"border-danger-500",(c||a)&&!n&&"bg-primary-500 border-primary-500",!n&&!c&&!a&&"hover:border-neutral-400",!n&&(c||a)&&"hover:bg-primary-600 hover:border-primary-600",n&&"opacity-50 cursor-not-allowed","after:absolute after:inset-0 after:rounded after:pointer-events-none","after:shadow-[inset_0px_-1px_0px_0px_rgba(0,0,0,0.08)]"),A=x("inline-flex gap-2 items-start",k?"items-start":"items-center",l&&"flex-row-reverse",i==="trailing"&&!l&&"flex-row-reverse",i==="leading"&&l&&"flex-row-reverse",h),_=x("flex flex-col flex-1 min-w-0","justify-center",l&&"items-end text-right"),G=x("text-[15px] leading-6 font-medium text-neutral-900",l&&"font-sans-rtl",n&&"opacity-50"),f=x("text-[13px] leading-5 font-normal text-neutral-600",l&&"font-sans-rtl",n&&"opacity-50");return t.jsxs("label",{className:A,children:[t.jsx("input",{ref:b,type:"checkbox",checked:c,disabled:n,className:"sr-only peer",...w}),t.jsxs("div",{className:"flex items-start shrink-0 pt-0.5",children:[t.jsxs("div",{className:v,children:[c&&!a&&t.jsx(M.Check,{className:"w-3 h-3 text-white stroke-[2.5]"}),a&&t.jsx(M.Minus,{className:"w-3 h-3 text-white stroke-[2.5]"})]}),t.jsx("div",{className:x("absolute inset-0 rounded pointer-events-none opacity-0","peer-focus-visible:opacity-100","shadow-[0_0_0_3px_rgba(50,118,255,0.2)]","transition-opacity duration-150")})]}),(e||r)&&t.jsxs("div",{className:_,dir:l?"rtl":void 0,children:[t.jsx("span",{className:G,children:j}),k&&t.jsx("span",{className:f,children:S})]})]})});He.displayName="Checkbox";const Ye=E.forwardRef(({label:e,supportText:s,rtlLabel:r,rtlSupportText:o,selected:i=!1,disabled:a=!1,type:l="default",icon:d,customIcon:n,rtl:c=!1,onChange:h,className:w,...b},j)=>{const S=c&&r?r:e,k=c&&o?o:s,v=!!d||!!n,A=!!s||!!o,_=()=>{!a&&h&&h(!i)},G=I=>{!a&&(I.key===" "||I.key==="Enter")&&(I.preventDefault(),h==null||h(!i))},f=x("relative flex items-start gap-4 p-4 w-full max-w-[338px]","bg-white border rounded-xl transition-all duration-150","shadow-[0px_1px_2px_0px_rgba(15,17,20,0.05)]","after:absolute after:inset-0 after:rounded-xl after:pointer-events-none","after:shadow-[inset_0px_-1px_0px_0px_rgba(0,0,0,0.08)]",!a&&!i&&"border-neutral-200",!a&&i&&"border-primary-500 border-2",!a&&"hover:bg-neutral-50 cursor-pointer",a&&"border-neutral-200 bg-neutral-50 cursor-not-allowed",c&&"flex-row-reverse",w),O=x("relative w-5 h-5 rounded border flex items-center justify-center transition-all duration-150 shrink-0 mt-0.5","bg-white shadow-[0px_1px_2px_0px_rgba(15,17,20,0.05)]",!i&&!a&&"border-neutral-300",i&&!a&&"bg-primary-500 border-primary-500",a&&"bg-neutral-100 border-neutral-200","after:absolute after:inset-0 after:rounded after:pointer-events-none","after:shadow-[inset_0px_-1px_0px_0px_rgba(0,0,0,0.08)]"),y=x("flex flex-1 min-w-0",l==="icon-left"&&v||l==="default"&&v?"gap-3":"",c&&"flex-row-reverse"),C=x("flex flex-col gap-0.5 flex-1 min-w-0",c&&"items-end text-right"),m=x("text-[15px] leading-6 font-medium text-neutral-900",c&&"font-sans-rtl",a&&"text-neutral-400"),z=x("text-[14px] leading-5 font-normal text-neutral-600",c&&"font-sans-rtl",a&&"text-neutral-400"),U=x("shrink-0",a&&"opacity-60"),T=()=>t.jsx("div",{className:O,children:i&&t.jsx("svg",{className:"w-3 h-3 text-white",fill:"none",viewBox:"0 0 12 12",stroke:"currentColor",strokeWidth:"2.5",children:t.jsx("path",{d:"M2.5 6.5L4.5 8.5L9.5 3.5",strokeLinecap:"round",strokeLinejoin:"round"})})}),$=()=>n?t.jsx("div",{className:U,children:n}):d?t.jsx("div",{className:U,children:t.jsx(d,{className:"w-6 h-6 text-neutral-600"})}):null,R=()=>l==="label-only"&&!A?t.jsxs("div",{className:x("flex items-center flex-1 gap-3",c&&"flex-row-reverse"),children:[T(),t.jsx("span",{className:m,dir:c?"rtl":void 0,children:S})]}):l==="icon-left"?t.jsxs(t.Fragment,{children:[T(),t.jsx("div",{className:y,children:t.jsxs("div",{className:C,dir:c?"rtl":void 0,children:[t.jsx("span",{className:m,children:S}),A&&t.jsx("span",{className:z,children:k})]})})]}):l==="icon-right"?t.jsxs(t.Fragment,{children:[t.jsx("div",{className:y,children:t.jsxs("div",{className:C,dir:c?"rtl":void 0,children:[t.jsx("span",{className:m,children:S}),A&&t.jsx("span",{className:z,children:k})]})}),T()]}):t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:y,children:[$(),t.jsxs("div",{className:C,dir:c?"rtl":void 0,children:[t.jsx("span",{className:m,children:S}),A&&t.jsx("span",{className:z,children:k})]})]}),T()]}),P=a?"div":"button";return t.jsx(P,{ref:j,className:f,onClick:a?void 0:_,onKeyDown:a?void 0:G,disabled:a,role:a?void 0:"checkbox","aria-checked":a?void 0:i,"aria-disabled":a,tabIndex:a?void 0:0,...b,children:R()})});Ye.displayName="CheckmarkCard";const Ke=E.forwardRef(({label:e,checked:s=!1,onChange:r,onCheckedChange:o,size:i="md",rtl:a=!1,disabled:l=!1,className:d,...n},c)=>{const h=()=>{r&&r(s),o&&o(s)},b={sm:{track:"w-9 h-5",thumb:"w-4 h-4",translateChecked:"translate-x-4",translateUnchecked:"translate-x-0.5"},md:{track:"w-11 h-6",thumb:"w-5 h-5",translateChecked:"translate-x-5",translateUnchecked:"translate-x-0.5"},lg:{track:"w-14 h-7",thumb:"w-6 h-6",translateChecked:"translate-x-7",translateUnchecked:"translate-x-0.5"}}[i],j=x("relative inline-flex items-center shrink-0 rounded-full transition-colors duration-200 ease-in-out","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-500 focus-visible:ring-offset-2",b.track,s?"bg-primary-600 hover:bg-primary-700":"bg-neutral-200 hover:bg-neutral-300","dark:focus-visible:ring-offset-neutral-900",s?"dark:bg-primary-500 dark:hover:bg-primary-600":"dark:bg-neutral-700 dark:hover:bg-neutral-600",l&&"opacity-50 cursor-not-allowed",!l&&"cursor-pointer",a&&"rtl"),S=x("pointer-events-none inline-block rounded-full bg-white shadow-lg ring-0 transition-transform duration-200 ease-in-out",b.thumb,s?b.translateChecked:b.translateUnchecked,"dark:bg-neutral-200"),k=x("inline-flex items-center gap-3",a&&"flex-row-reverse",d),v=x("text-sm font-medium","text-neutral-900 dark:text-neutral-100",l&&"opacity-50 cursor-not-allowed",!l&&"cursor-pointer");return t.jsxs("label",{className:k,dir:a?"rtl":void 0,children:[t.jsx("input",{ref:c,type:"checkbox",role:"switch",checked:s,onChange:h,disabled:l,className:"sr-only",...n}),t.jsx("span",{className:j,dir:a?"rtl":void 0,children:t.jsx("span",{className:S})}),e&&t.jsx("span",{className:v,children:e})]})});Ke.displayName="Switcher";function xe(...e){return se(te(e))}const Yt={Light:{Neutral:"bg-neutral-50 text-neutral-700 border border-neutral-100",Blue:"bg-blue-50 text-blue-700 border border-blue-100",Green:"bg-green-50 text-green-700 border border-green-100",Amber:"bg-amber-50 text-amber-700 border border-amber-100",Danger:"bg-critical-50 text-critical-700 border border-critical-100",Purple:"bg-purple-50 text-purple-700 border border-purple-100",Fuchsia:"bg-fuchsia-50 text-fuchsia-700 border border-fuchsia-100",Rose:"bg-rose-50 text-rose-700 border border-rose-100",Sky:"bg-sky-50 text-sky-700 border border-sky-100",Golden:"bg-golden-50 text-golden-700 border border-golden-100"},Outline:{Neutral:"bg-white text-neutral-700 border border-neutral-300",Blue:"bg-white text-neutral-700 border border-blue-300",Green:"bg-white text-neutral-700 border border-green-300",Amber:"bg-white text-neutral-700 border border-amber-300",Danger:"bg-white text-neutral-700 border border-critical-300",Purple:"bg-white text-neutral-700 border border-purple-300",Fuchsia:"bg-white text-neutral-700 border border-fuchsia-300",Rose:"bg-white text-neutral-700 border border-rose-300",Sky:"bg-white text-neutral-700 border border-sky-300",Golden:"bg-white text-neutral-700 border border-golden-300"},Solid:{Neutral:"bg-neutral-600 text-white border border-transparent",Blue:"bg-blue-600 text-white border border-transparent",Green:"bg-green-600 text-white border border-transparent",Amber:"bg-amber-600 text-white border border-transparent",Danger:"bg-critical-600 text-white border border-transparent",Purple:"bg-purple-600 text-white border border-transparent",Fuchsia:"bg-fuchsia-600 text-white border border-transparent",Rose:"bg-rose-600 text-white border border-transparent",Sky:"bg-sky-600 text-white border border-transparent",Golden:"bg-golden-600 text-white border border-transparent"}},Kt={Light:{Neutral:"bg-neutral-600",Blue:"bg-blue-600",Green:"bg-green-600",Amber:"bg-amber-600",Danger:"bg-critical-600",Purple:"bg-purple-600",Fuchsia:"bg-fuchsia-600",Rose:"bg-rose-600",Sky:"bg-sky-600",Golden:"bg-golden-600"},Outline:{Neutral:"bg-neutral-600",Blue:"bg-blue-600",Green:"bg-green-600",Amber:"bg-amber-600",Danger:"bg-critical-600",Purple:"bg-purple-600",Fuchsia:"bg-fuchsia-600",Rose:"bg-rose-600",Sky:"bg-sky-600",Golden:"bg-golden-600"},Solid:{Neutral:"bg-white",Blue:"bg-white",Green:"bg-white",Amber:"bg-white",Danger:"bg-white",Purple:"bg-white",Fuchsia:"bg-white",Rose:"bg-white",Sky:"bg-white",Golden:"bg-white"}},Jt={sm:"h-badge-sm px-2 py-0.5 gap-1 rounded-full",lg:"h-badge-lg px-2 py-1 gap-1.5 rounded-full"},me={sm:"h-3 w-3",lg:"h-4 w-4"},Qt={sm:"h-2 w-2",lg:"h-2.5 w-2.5"},ke=E.forwardRef(({type:e="Default",style:s="Light",size:r="sm",color:o="Neutral",showNumber:i=!1,number:a,children:l,leadingIcon:d,trailingIcon:n,flagIcon:c,rtl:h=!1,className:w,...b},j)=>{const S=h,k=xe("inline-flex items-center justify-center","font-sans text-badge font-medium","whitespace-nowrap",Jt[r],Yt[s][o],S&&"font-sans-rtl flex-row-reverse",w),v=(y,C)=>t.jsx("span",{className:xe("flex items-center justify-center flex-shrink-0",C),children:y}),A=()=>t.jsx("span",{className:xe("rounded-full flex-shrink-0",Qt[r],Kt[s][o])}),_=()=>c?v(c,me[r]):t.jsx("span",{className:xe("rounded-sm flex-shrink-0 bg-neutral-300",me[r])}),f=i&&a!==void 0?(y=>y>99?"99+":y.toString())(a):l,O=()=>{switch(e){case"LeadingIcon":return t.jsxs(t.Fragment,{children:[d&&v(d,me[r]),f&&t.jsx("span",{className:"truncate",children:f})]});case"TrailingIcon":return t.jsxs(t.Fragment,{children:[f&&t.jsx("span",{className:"truncate",children:f}),n&&v(n,me[r])]});case"Dot":return t.jsxs(t.Fragment,{children:[A(),f&&t.jsx("span",{className:"truncate",children:f})]});case"Flag":return t.jsxs(t.Fragment,{children:[_(),f&&t.jsx("span",{className:"truncate",children:f})]});case"Default":default:return f&&t.jsx("span",{className:"truncate",children:f})}};return t.jsx("div",{ref:j,dir:S?"rtl":void 0,className:k,...b,children:O()})});ke.displayName="Badge";const Zt={Danger:{icon:M.AlertCircle,colors:{Outline:{bg:"bg-white",border:"border border-critical-200",iconColor:"text-critical-600",titleColor:"text-neutral-900",messageColor:"text-neutral-700",actionColor:"text-blue-600 hover:text-blue-700",closeColor:"text-neutral-600 hover:text-neutral-700"},Light:{bg:"bg-critical-50",border:"border-none",iconColor:"text-critical-600",titleColor:"text-critical-800",messageColor:"text-critical-700",actionColor:"text-neutral-900 hover:text-neutral-950",closeColor:"text-neutral-600 hover:text-neutral-700"},Solid:{bg:"bg-critical-600",border:"border-none",iconColor:"text-white",titleColor:"text-white",messageColor:"text-white opacity-80",actionColor:"text-white hover:text-white/90",closeColor:"text-white hover:text-white/90"}}},Success:{icon:M.CheckCircle,colors:{Outline:{bg:"bg-white",border:"border border-green-200",iconColor:"text-green-600",titleColor:"text-neutral-900",messageColor:"text-neutral-700",actionColor:"text-blue-600 hover:text-blue-700",closeColor:"text-neutral-600 hover:text-neutral-700"},Light:{bg:"bg-green-50",border:"border-none",iconColor:"text-green-600",titleColor:"text-green-800",messageColor:"text-green-700",actionColor:"text-neutral-900 hover:text-neutral-950",closeColor:"text-neutral-600 hover:text-neutral-700"},Solid:{bg:"bg-green-600",border:"border-none",iconColor:"text-white",titleColor:"text-white",messageColor:"text-white opacity-80",actionColor:"text-white hover:text-white/90",closeColor:"text-white hover:text-white/90"}}},Warning:{icon:M.AlertTriangle,colors:{Outline:{bg:"bg-white",border:"border border-amber-200",iconColor:"text-amber-600",titleColor:"text-neutral-900",messageColor:"text-neutral-700",actionColor:"text-blue-600 hover:text-blue-700",closeColor:"text-neutral-600 hover:text-neutral-700"},Light:{bg:"bg-amber-50",border:"border-none",iconColor:"text-amber-600",titleColor:"text-amber-800",messageColor:"text-amber-700",actionColor:"text-neutral-900 hover:text-neutral-950",closeColor:"text-neutral-600 hover:text-neutral-700"},Solid:{bg:"bg-amber-500",border:"border-none",iconColor:"text-white",titleColor:"text-white",messageColor:"text-white opacity-80",actionColor:"text-white hover:text-white/90",closeColor:"text-white hover:text-white/90"}}},Info:{icon:M.Info,colors:{Outline:{bg:"bg-white",border:"border border-blue-200",iconColor:"text-blue-600",titleColor:"text-neutral-900",messageColor:"text-neutral-700",actionColor:"text-blue-600 hover:text-blue-700",closeColor:"text-neutral-600 hover:text-neutral-700"},Light:{bg:"bg-blue-50",border:"border-none",iconColor:"text-blue-600",titleColor:"text-blue-800",messageColor:"text-blue-700",actionColor:"text-neutral-900 hover:text-neutral-950",closeColor:"text-neutral-600 hover:text-neutral-700"},Solid:{bg:"bg-blue-600",border:"border-none",iconColor:"text-white",titleColor:"text-white",messageColor:"text-white opacity-80",actionColor:"text-white hover:text-white/90",closeColor:"text-white hover:text-white/90"}}},Neutral:{icon:M.Circle,colors:{Outline:{bg:"bg-white",border:"border border-neutral-300",iconColor:"text-neutral-600",titleColor:"text-neutral-900",messageColor:"text-neutral-700",actionColor:"text-blue-600 hover:text-blue-700",closeColor:"text-neutral-600 hover:text-neutral-700"},Light:{bg:"bg-neutral-100",border:"border-none",iconColor:"text-neutral-600",titleColor:"text-neutral-800",messageColor:"text-neutral-700",actionColor:"text-neutral-900 hover:text-neutral-950",closeColor:"text-neutral-600 hover:text-neutral-700"},Solid:{bg:"bg-neutral-600",border:"border-none",iconColor:"text-white",titleColor:"text-white",messageColor:"text-white opacity-80",actionColor:"text-white hover:text-white/90",closeColor:"text-white hover:text-white/90"}}}},Je=E.forwardRef(({style:e="Outline",status:s="Info",title:r="Alert title",message:o,showActions:i=!1,primaryAction:a="Action",secondaryAction:l="Action",onPrimaryAction:d,onSecondaryAction:n,closable:c=!0,onClose:h,rtl:w=!1,rtlTitle:b,rtlMessage:j,rtlPrimaryAction:S="زر الرابط",rtlSecondaryAction:k="زر الرابط",className:v,...A},_)=>{const G=Zt[s],f=G.colors[e],O=G.icon,y=w,C=!!o,m=y&&b?b:r,z=y&&j?j:o,U=y?S:a,T=y?k:l,$=x("flex items-start gap-2 px-4 py-3 rounded-control transition-all",f.bg,f.border,y&&"font-sans-rtl"),R=x("w-5 h-5 shrink-0",f.iconColor),P=x("text-[15px] font-medium leading-[24px]",f.titleColor,y?"text-right":"text-left"),I=x("text-[14px] font-normal leading-[20px]",f.messageColor,y?"text-right":"text-left"),B=x("text-[15px] font-medium leading-[24px] underline cursor-pointer transition-colors",f.actionColor),q=x("w-5 h-5 shrink-0 cursor-pointer transition-colors",f.closeColor);return t.jsxs("div",{ref:_,className:x($,v),dir:y?"rtl":void 0,...A,children:[t.jsxs("div",{className:"flex-1 flex items-start gap-2",children:[!y&&t.jsx(O,{className:R}),t.jsxs("div",{className:"flex-1 flex flex-col gap-1",children:[t.jsx("div",{className:P,dir:y?"rtl":void 0,children:m}),C&&z&&t.jsx("div",{className:I,dir:y?"rtl":void 0,children:z}),i&&C&&t.jsxs("div",{className:x("flex gap-4 mt-2",y&&"flex-row-reverse"),children:[d&&t.jsx("button",{type:"button",onClick:d,className:B,children:U}),n&&t.jsx("button",{type:"button",onClick:n,className:B,children:T})]})]}),y&&t.jsx(O,{className:R})]}),i&&!C&&d&&t.jsx("button",{type:"button",onClick:d,className:x(B,"shrink-0 whitespace-nowrap"),children:U}),c&&h&&t.jsx("button",{type:"button",onClick:h,className:q,"aria-label":"Close",children:t.jsx(M.X,{className:"w-4 h-4"})})]})});Je.displayName="Alert";const Qe=E.forwardRef(({direction:e="horizontal",type:s="solid",color:r,spacing:o="none",className:i,...a},l)=>{const d={none:"",xs:e==="horizontal"?"my-1":"mx-1",sm:e==="horizontal"?"my-2":"mx-2",md:e==="horizontal"?"my-4":"mx-4",lg:e==="horizontal"?"my-6":"mx-6",xl:e==="horizontal"?"my-8":"mx-8"};return e==="horizontal"?t.jsx("hr",{ref:l,className:x("w-full border-0",s==="solid"?"border-t border-solid":"border-t border-dashed",r?`border-[${r}]`:"border-neutral-200",d[o],i),...a}):t.jsx("div",{ref:l,className:x("h-full",s==="solid"?"border-l border-solid":"border-l border-dashed",r?`border-[${r}]`:"border-neutral-200",d[o],i),...a})});Qe.displayName="Divider";const er=E.forwardRef(({type:e="default",state:s="default",label:r="Text item",supportText:o,leadingIcon:i,trailingIcon:a,avatarSrc:l,avatarInitials:d,badgeText:n,badgeVariant:c="neutral",rightText:h,hasSwitch:w=!1,switchActive:b=!1,onSwitchChange:j,buttonText:S="Button",onButtonClick:k,progress:v=40,progressLabel:A="Label",progressOptional:_="(Optional)",caption:G,rtl:f=!1,onClick:O,className:y,...C},m)=>{if(e==="divider")return t.jsx("div",{ref:m,className:x("flex items-center px-0 py-0.5",y),...C,children:t.jsx("div",{className:"flex-1 border-t border-neutral-200"})});if(e==="button")return t.jsx("div",{ref:m,className:x("flex items-center px-1.5 py-0",y),...C,children:t.jsx("button",{onClick:k,className:x("w-full h-8 px-1.5 py-2 flex items-center justify-center","border border-neutral-300 rounded-lg","text-[15px] font-medium leading-6 text-neutral-900","hover:bg-neutral-50 transition-colors",s==="disabled"&&"opacity-50 cursor-not-allowed"),disabled:s==="disabled",children:S})});if(e==="label")return t.jsxs("div",{ref:m,className:x("flex items-center gap-0 px-4 py-1","text-[13px] leading-5",f&&"flex-row-reverse",y),...C,children:[t.jsx("div",{className:x("flex-1",f&&"text-right"),children:t.jsx("p",{className:"font-medium text-neutral-900",children:r})}),G&&t.jsx("p",{className:"text-neutral-600",children:G})]});if(e==="caption")return t.jsx("div",{ref:m,className:x("flex items-center px-1.5 py-0",y),...C,children:t.jsx("div",{className:"flex items-center justify-center px-1.5 py-1",children:t.jsx("p",{className:x("flex-1 text-[13px] leading-5 text-neutral-600",f&&"text-right"),children:"Lorem ipsum dolor sit amet"})})});if(e==="progress")return t.jsx("div",{ref:m,className:x("flex items-center px-1.5 py-0",f&&"justify-end",y),...C,children:t.jsx("div",{className:"flex flex-col items-start px-1.5 py-1 flex-1",children:t.jsxs("div",{className:"flex flex-col gap-2 items-start w-full",children:[t.jsx("div",{className:"flex flex-col items-center justify-center w-full",children:t.jsx("div",{className:"bg-neutral-200 h-2 rounded-full w-full relative",children:t.jsx("div",{className:"absolute left-0 top-0 h-full bg-blue-500 rounded-full transition-all",style:{width:`${v}%`}})})}),t.jsxs("div",{className:x("flex gap-2 items-center w-full",f&&"flex-row-reverse"),children:[t.jsxs("div",{className:x("flex items-center gap-1 flex-1",f&&"flex-row-reverse justify-end"),children:[t.jsx("p",{className:x("text-[13px] leading-5 font-medium text-neutral-900",f&&"text-right"),children:A}),t.jsx("p",{className:"text-[13px] leading-5 text-neutral-600",children:_})]}),t.jsx("div",{className:"flex gap-0.5 items-center",children:t.jsxs("p",{className:"text-[12px] leading-4 text-neutral-600",children:[v,"%"]})})]})]})})});const z=s==="disabled",T=x("flex gap-1 items-center px-1.5 py-1 rounded-md flex-1 transition-colors cursor-pointer",e==="multiline"&&"min-h-[48px] py-1",s==="hover"&&!z&&"bg-neutral-100",z&&"opacity-60 cursor-not-allowed",f&&"flex-row-reverse"),$=()=>{const R=[];if(i&&R.push(t.jsx("div",{className:x("flex items-center pl-0.5 pr-0",f&&"pl-0 pr-0.5"),children:t.jsx(i,{className:x("h-5 w-5",z?"text-neutral-400":"text-neutral-600")})},"leading-icon")),l||d){const P=e==="multiline"?"h-10 w-10":"h-6 w-6",I=e==="multiline"?"text-sm":"text-xs";R.push(t.jsx("div",{className:x("flex items-center pl-0.5 pr-0",f&&"pl-0 pr-0.5"),children:l?t.jsx("img",{src:l,alt:d||"Avatar",className:x(P,"rounded-full border border-neutral-200 object-cover",z&&"opacity-60")}):t.jsx("div",{className:x(P,"rounded-full bg-blue-100 border border-neutral-200","flex items-center justify-center",I,"font-medium text-blue-700",z&&"opacity-60"),children:d||"??"})},"avatar"))}return e==="multiline"||e==="cta"?R.push(t.jsxs("div",{className:x("flex flex-col items-start flex-1 pl-1 pr-0",f&&"pl-0 pr-1 items-end text-right"),children:[t.jsx("p",{className:x("text-[15px] leading-6",z?"text-neutral-400":"text-neutral-900"),children:r}),o&&t.jsx("p",{className:x("text-[12px] leading-4",z?"text-neutral-400":"text-neutral-600"),children:o})]},"text")):R.push(t.jsx("div",{className:x("flex items-center flex-1 pl-1 pr-0",f&&"pl-0 pr-1 justify-end"),children:t.jsx("p",{className:x("text-[15px] leading-6",z?"text-neutral-400":"text-neutral-900",f&&"text-right"),children:r})},"text")),w&&R.push(t.jsx("div",{className:"flex flex-col items-center",children:t.jsx("button",{onClick:P=>{P.stopPropagation(),!z&&j&&j(!b)},disabled:z,className:x("w-8 h-[18px] p-[3px] rounded-full flex items-center transition-colors",b?"bg-green-500 justify-end":"bg-neutral-300 justify-start",z&&"opacity-50 cursor-not-allowed"),children:t.jsx("div",{className:"w-3.5 h-3.5 bg-white rounded-full shadow-sm"})})},"switch")),n&&R.push(t.jsx("div",{className:"flex flex-col items-center",children:t.jsx(ke,{color:c,size:"sm",children:n})},"badge")),h&&R.push(t.jsx("div",{className:"flex items-center",children:t.jsx("p",{className:x("text-[12px] leading-4",z?"text-neutral-400":"text-neutral-600",f&&"text-left"),children:h})},"right-text")),e==="cta"&&R.push(t.jsx("button",{onClick:P=>{P.stopPropagation(),!z&&k&&k()},disabled:z,className:x("h-8 px-1.5 py-2 flex items-center justify-center","border border-neutral-300 rounded-lg","text-[15px] font-medium leading-6 text-neutral-900","hover:bg-neutral-50 transition-colors",z&&"opacity-50 cursor-not-allowed"),children:S},"cta-button")),a&&R.push(t.jsx("div",{className:"flex items-center",children:t.jsx(a,{className:x("h-4 w-4",z?"text-neutral-400":"text-neutral-500")})},"trailing-icon")),f?R.reverse():R};return t.jsx("div",{ref:m,className:x("flex items-center gap-0 px-1.5 py-0",f&&"justify-end",y),onClick:z?void 0:O,...C,children:t.jsx("div",{className:T,children:$()})})});er.displayName="MenuItem";const Ze=E.forwardRef(({children:e,width:s=260,rtl:r=!1,className:o,...i},a)=>t.jsx("div",{ref:a,className:x("bg-white border border-neutral-200 rounded-xl shadow-lg","flex flex-col gap-1 items-start py-1.5","overflow-hidden",o),style:{width:typeof s=="number"?`${s}px`:s},...i,children:e}));Ze.displayName="Menu";function V(...e){return se(te(e))}const et=E.forwardRef(({label:e="Enter question title",description:s="Ants are fascinating insects known for their complex social structures and teamwork. They communicate through pheromones and work together to build intricate nests. Ants play crucial roles in ecosystems, from soil aeration to seed dispersal.",icon:r=!0,iconLeft:o,badge:i=!0,badgeText:a="Badge",action:l=!0,actionText:d="Button",onActionClick:n,style:c="Default",state:h="Default",rtl:w=!1,expandable:b=!1,expanded:j,onToggle:S,rtlLabel:k,rtlDescription:v,className:A,..._},G)=>{const[f,O]=E.useState(!1),y=j!==void 0?j:f,C=w,m=()=>{if(b){const J=!y;j===void 0&&O(J),S==null||S(J)}},z=C&&k?k:e,U=C&&v?v:s,T=V("flex items-start gap-3 p-5","transition-all duration-150 ease-in-out",b&&"cursor-pointer","w-full",C&&"font-sans-rtl",c==="Default"?V("border-b border-neutral-200",h==="Hover"&&b&&"bg-neutral-50"):V("border border-neutral-200 rounded-xl","shadow-component-default",h==="Hover"&&b&&"bg-neutral-50","relative"),A),$=V("flex flex-col justify-center","font-semibold text-[17px] leading-[28px]","text-neutral-900",C?"text-right":"text-left"),R=V("text-[15px] leading-[24px]","text-neutral-600",C?"text-right":"text-left"),P=V("flex items-center justify-center","h-7 px-3 py-0","bg-neutral-50 rounded-full","text-[12px] leading-[16px] font-medium","text-neutral-900 whitespace-nowrap"),I=o||(r?t.jsx(M.Info,{className:"h-6 w-6 text-neutral-600 flex-shrink-0"}):null),B=y?M.ChevronUp:M.ChevronDown,q=V("h-6 w-6 text-neutral-500 flex-shrink-0"),g=b?"button":"div",ae=b?{ref:G,type:"button",onClick:m,..._}:{..._};return t.jsxs(g,{...ae,dir:C?"rtl":void 0,className:T,children:[I&&!C&&t.jsx("div",{className:"flex-shrink-0",children:I}),b&&C&&t.jsx("div",{className:"flex-shrink-0",children:t.jsx(B,{className:q})}),t.jsxs("div",{className:V("flex flex-col gap-1.5 flex-1 min-w-0",C?"items-end":"items-start"),children:[t.jsx("div",{className:V("flex gap-1.5 items-start w-full",C?"flex-row-reverse":"flex-row"),children:C?t.jsxs(t.Fragment,{children:[i&&t.jsx("div",{className:V(P,"font-sans-rtl"),dir:"rtl",children:a}),t.jsx("div",{className:V($,"flex-1"),dir:"rtl",children:t.jsx("p",{children:z})})]}):t.jsxs(t.Fragment,{children:[t.jsx("div",{className:V($,"flex-1"),children:t.jsx("p",{children:z})}),i&&t.jsx("div",{className:P,children:a})]})}),y&&U&&t.jsx("div",{className:"w-full",dir:C?"rtl":void 0,children:t.jsx("p",{className:R,children:U})}),y&&l&&t.jsx("div",{className:"pt-4 w-full flex",style:{justifyContent:C?"flex-end":"flex-start"},children:t.jsxs("button",{type:"button",onClick:J=>{J.stopPropagation(),n==null||n()},className:V("relative flex items-center justify-center gap-1","h-10 px-2.5 py-2","bg-neutral-50 border border-neutral-300 rounded-control","shadow-component-default","text-[15px] leading-[24px] font-medium text-neutral-900","hover:bg-neutral-100 transition-colors","cursor-pointer"),dir:C?"rtl":void 0,children:[t.jsx(M.Plus,{className:"h-5 w-5 flex-shrink-0"}),t.jsx("span",{className:"px-1 whitespace-nowrap",children:C?"انقر هنا":d}),t.jsx(M.Plus,{className:"h-5 w-5 flex-shrink-0"}),t.jsx("div",{className:"absolute inset-0 pointer-events-none rounded-control shadow-[inset_0px_-1px_0px_0px_rgba(0,0,0,0.08)]"})]})})]}),b&&!C&&t.jsx("div",{className:"flex-shrink-0",children:t.jsx(B,{className:q})}),I&&C&&t.jsx("div",{className:"flex-shrink-0",children:I}),c==="Boxed"&&t.jsx("div",{className:"absolute inset-0 pointer-events-none rounded-xl shadow-[inset_0px_-1px_0px_0px_rgba(0,0,0,0.08)]"})]})});et.displayName="Accordion";function Ie(...e){return se(te(e))}const tr=({code:e,language:s="tsx",className:r})=>{const[o,i]=E.useState(!1),a=async()=>{try{await navigator.clipboard.writeText(e),i(!0),setTimeout(()=>i(!1),2e3)}catch(d){console.error("Failed to copy:",d)}},l=d=>{let n=d;return n=n.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),n=n.replace(/(&quot;[^&]*&quot;|'[^']*'|"[^"]*")/g,'<span class="token string">$1</span>'),n=n.replace(/(`[^`]*`)/g,'<span class="token template">$1</span>'),n=n.replace(/(\/\/.*$)/gm,'<span class="token comment">$1</span>'),n=n.replace(/(\/\*[\s\S]*?\*\/)/g,'<span class="token comment">$1</span>'),["import","export","from","const","let","var","function","return","if","else","for","while","class","extends","new","this","true","false","null","undefined","typeof","instanceof","async","await"].forEach(h=>{const w=new RegExp(`\\b(${h})\\b`,"g");n=n.replace(w,'<span class="token keyword">$1</span>')}),n=n.replace(/(&lt;\/?)([\w]+)/g,'$1<span class="token tag">$2</span>'),n=n.replace(/\s([\w-]+)=/g,' <span class="token attr">$1</span>='),n=n.replace(/\b(\d+)\b/g,'<span class="token number">$1</span>'),n=n.replace(/(\{|\})/g,'<span class="token punctuation">$1</span>'),n};return t.jsxs("div",{className:Ie("rounded-lg overflow-hidden border border-neutral-800",r),children:[t.jsxs("div",{className:"flex items-center justify-between px-4 py-3 bg-docs-code-bg border-b border-neutral-700",children:[t.jsx("span",{className:"text-xs font-medium text-neutral-400 uppercase tracking-wider",children:s}),t.jsx("button",{className:Ie("inline-flex items-center gap-1.5 px-2.5 py-1","text-xs font-medium rounded","bg-neutral-800 border border-neutral-700","text-neutral-400 hover:text-white","hover:bg-neutral-700 hover:border-neutral-600","transition-colors duration-150","focus:outline-none focus-visible:ring-2 focus-visible:ring-primary-500"),onClick:a,"aria-label":"Copy code",children:o?t.jsxs(t.Fragment,{children:[t.jsx(M.Check,{className:"h-3.5 w-3.5"}),t.jsx("span",{children:"Copied!"})]}):t.jsxs(t.Fragment,{children:[t.jsx(M.Copy,{className:"h-3.5 w-3.5"}),t.jsx("span",{children:"Copy"})]})})]}),t.jsx("pre",{className:"m-0 p-4 bg-docs-code-bg overflow-x-auto",children:t.jsx("code",{className:"font-mono text-[13px] leading-relaxed text-docs-code-text",dangerouslySetInnerHTML:{__html:l(e)}})})]})};exports.Accordion=et;exports.Alert=Je;exports.Badge=ke;exports.Button=Ue;exports.ButtonGroup=Xe;exports.Checkbox=He;exports.CheckmarkCard=Ye;exports.CodeBlock=tr;exports.Divider=Qe;exports.Menu=Ze;exports.SocialButton=qe;exports.Switcher=Ke;exports.cn=x;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),M=require("react"),_=require("lucide-react"),ie=require("react-icons/fa6");function Fe(t){var s,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var l=t.length;for(s=0;s<l;s++)t[s]&&(n=Fe(t[s]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function ne(){for(var t,s,n=0,r="",l=arguments.length;n<l;n++)(t=arguments[n])&&(s=Fe(t))&&(r&&(r+=" "),r+=s);return r}const Nt=(t,s)=>{const n=new Array(t.length+s.length);for(let r=0;r<t.length;r++)n[r]=t[r];for(let r=0;r<s.length;r++)n[t.length+r]=s[r];return n},St=(t,s)=>({classGroupId:t,validator:s}),Be=(t=new Map,s=null,n)=>({nextPart:t,validators:s,classGroupId:n}),ke="-",_e=[],Rt="arbitrary..",At=t=>{const s=_t(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=t;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return zt(i);const u=i.split(ke),a=u[0]===""&&u.length>1?1:0;return Pe(u,a,s)},getConflictingClassGroupIds:(i,u)=>{if(u){const a=r[i],c=n[i];return a?c?Nt(c,a):a:c||_e}return n[i]||_e}}},Pe=(t,s,n)=>{if(t.length-s===0)return n.classGroupId;const l=t[s],o=n.nextPart.get(l);if(o){const c=Pe(t,s+1,o);if(c)return c}const i=n.validators;if(i===null)return;const u=s===0?t.join(ke):t.slice(s).join(ke),a=i.length;for(let c=0;c<a;c++){const d=i[c];if(d.validator(u))return d.classGroupId}},zt=t=>t.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const s=t.slice(1,-1),n=s.indexOf(":"),r=s.slice(0,n);return r?Rt+r:void 0})(),_t=t=>{const{theme:s,classGroups:n}=t;return It(n,s)},It=(t,s)=>{const n=Be();for(const r in t){const l=t[r];Re(l,n,r,s)}return n},Re=(t,s,n,r)=>{const l=t.length;for(let o=0;o<l;o++){const i=t[o];Lt(i,s,n,r)}},Lt=(t,s,n,r)=>{if(typeof t=="string"){Gt(t,s,n);return}if(typeof t=="function"){Mt(t,s,n,r);return}Tt(t,s,n,r)},Gt=(t,s,n)=>{const r=t===""?s:$e(s,t);r.classGroupId=n},Mt=(t,s,n,r)=>{if(Ft(t)){Re(t(r),s,n,r);return}s.validators===null&&(s.validators=[]),s.validators.push(St(n,t))},Tt=(t,s,n,r)=>{const l=Object.entries(t),o=l.length;for(let i=0;i<o;i++){const[u,a]=l[i];Re(a,$e(s,u),n,r)}},$e=(t,s)=>{let n=t;const r=s.split(ke),l=r.length;for(let o=0;o<l;o++){const i=r[o];let u=n.nextPart.get(i);u||(u=Be(),n.nextPart.set(i,u)),n=u}return n},Ft=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,Bt=t=>{if(t<1)return{get:()=>{},set:()=>{}};let s=0,n=Object.create(null),r=Object.create(null);const l=(o,i)=>{n[o]=i,s++,s>t&&(s=0,r=n,n=Object.create(null))};return{get(o){let i=n[o];if(i!==void 0)return i;if((i=r[o])!==void 0)return l(o,i),i},set(o,i){o in n?n[o]=i:l(o,i)}}},Se="!",Ie=":",Pt=[],Le=(t,s,n,r,l)=>({modifiers:t,hasImportantModifier:s,baseClassName:n,maybePostfixModifierPosition:r,isExternal:l}),$t=t=>{const{prefix:s,experimentalParseClassName:n}=t;let r=l=>{const o=[];let i=0,u=0,a=0,c;const d=l.length;for(let m=0;m<d;m++){const y=l[m];if(i===0&&u===0){if(y===Ie){o.push(l.slice(a,m)),a=m+1;continue}if(y==="/"){c=m;continue}}y==="["?i++:y==="]"?i--:y==="("?u++:y===")"&&u--}const b=o.length===0?l:l.slice(a);let p=b,h=!1;b.endsWith(Se)?(p=b.slice(0,-1),h=!0):b.startsWith(Se)&&(p=b.slice(1),h=!0);const g=c&&c>a?c-a:void 0;return Le(o,h,p,g)};if(s){const l=s+Ie,o=r;r=i=>i.startsWith(l)?o(i.slice(l.length)):Le(Pt,!1,i,void 0,!0)}if(n){const l=r;r=o=>n({className:o,parseClassName:l})}return r},Dt=t=>{const s=new Map;return t.orderSensitiveModifiers.forEach((n,r)=>{s.set(n,1e6+r)}),n=>{const r=[];let l=[];for(let o=0;o<n.length;o++){const i=n[o],u=i[0]==="[",a=s.has(i);u||a?(l.length>0&&(l.sort(),r.push(...l),l=[]),r.push(i)):l.push(i)}return l.length>0&&(l.sort(),r.push(...l)),r}},Et=t=>({cache:Bt(t.cacheSize),parseClassName:$t(t),sortModifiers:Dt(t),...At(t)}),Ot=/\s+/,Wt=(t,s)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:l,sortModifiers:o}=s,i=[],u=t.trim().split(Ot);let a="";for(let c=u.length-1;c>=0;c-=1){const d=u[c],{isExternal:b,modifiers:p,hasImportantModifier:h,baseClassName:g,maybePostfixModifierPosition:m}=n(d);if(b){a=d+(a.length>0?" "+a:a);continue}let y=!!m,f=r(y?g.substring(0,m):g);if(!f){if(!y){a=d+(a.length>0?" "+a:a);continue}if(f=r(g),!f){a=d+(a.length>0?" "+a:a);continue}y=!1}const w=p.length===0?"":p.length===1?p[0]:o(p).join(":"),A=h?w+Se:w,R=A+f;if(i.indexOf(R)>-1)continue;i.push(R);const G=l(f,y);for(let S=0;S<G.length;++S){const v=G[S];i.push(A+v)}a=d+(a.length>0?" "+a:a)}return a},Vt=(...t)=>{let s=0,n,r,l="";for(;s<t.length;)(n=t[s++])&&(r=De(n))&&(l&&(l+=" "),l+=r);return l},De=t=>{if(typeof t=="string")return t;let s,n="";for(let r=0;r<t.length;r++)t[r]&&(s=De(t[r]))&&(n&&(n+=" "),n+=s);return n},Ut=(t,...s)=>{let n,r,l,o;const i=a=>{const c=s.reduce((d,b)=>b(d),t());return n=Et(c),r=n.cache.get,l=n.cache.set,o=u,u(a)},u=a=>{const c=r(a);if(c)return c;const d=Wt(a,n);return l(a,d),d};return o=i,(...a)=>o(Vt(...a))},qt=[],O=t=>{const s=n=>n[t]||qt;return s.isThemeGetter=!0,s},Ee=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Oe=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Xt=/^\d+\/\d+$/,Ht=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Yt=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Kt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Jt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Qt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ce=t=>Xt.test(t),I=t=>!!t&&!Number.isNaN(Number(t)),ee=t=>!!t&&Number.isInteger(Number(t)),Ce=t=>t.endsWith("%")&&I(t.slice(0,-1)),J=t=>Ht.test(t),Zt=()=>!0,er=t=>Yt.test(t)&&!Kt.test(t),We=()=>!1,tr=t=>Jt.test(t),rr=t=>Qt.test(t),nr=t=>!C(t)&&!N(t),ar=t=>ue(t,qe,We),C=t=>Ee.test(t),se=t=>ue(t,Xe,er),Ne=t=>ue(t,cr,I),Ge=t=>ue(t,Ve,We),sr=t=>ue(t,Ue,rr),ve=t=>ue(t,He,tr),N=t=>Oe.test(t),be=t=>xe(t,Xe),or=t=>xe(t,dr),Me=t=>xe(t,Ve),lr=t=>xe(t,qe),ir=t=>xe(t,Ue),we=t=>xe(t,He,!0),ue=(t,s,n)=>{const r=Ee.exec(t);return r?r[1]?s(r[1]):n(r[2]):!1},xe=(t,s,n=!1)=>{const r=Oe.exec(t);return r?r[1]?s(r[1]):n:!1},Ve=t=>t==="position"||t==="percentage",Ue=t=>t==="image"||t==="url",qe=t=>t==="length"||t==="size"||t==="bg-size",Xe=t=>t==="length",cr=t=>t==="number",dr=t=>t==="family-name",He=t=>t==="shadow",ur=()=>{const t=O("color"),s=O("font"),n=O("text"),r=O("font-weight"),l=O("tracking"),o=O("leading"),i=O("breakpoint"),u=O("container"),a=O("spacing"),c=O("radius"),d=O("shadow"),b=O("inset-shadow"),p=O("text-shadow"),h=O("drop-shadow"),g=O("blur"),m=O("perspective"),y=O("aspect"),f=O("ease"),w=O("animate"),A=()=>["auto","avoid","all","avoid-page","page","left","right","column"],R=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],G=()=>[...R(),N,C],S=()=>["auto","hidden","clip","visible","scroll"],v=()=>["auto","contain","none"],k=()=>[N,C,a],z=()=>[ce,"full","auto",...k()],B=()=>[ee,"none","subgrid",N,C],P=()=>["auto",{span:["full",ee,N,C]},ee,N,C],$=()=>[ee,"auto",N,C],W=()=>["auto","min","max","fr",N,C],F=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],T=()=>["start","end","center","stretch","center-safe","end-safe"],L=()=>["auto",...k()],E=()=>[ce,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...k()],j=()=>[t,N,C],Q=()=>[...R(),Me,Ge,{position:[N,C]}],Y=()=>["no-repeat",{repeat:["","x","y","space","round"]}],oe=()=>["auto","cover","contain",lr,ar,{size:[N,C]}],Z=()=>[Ce,be,se],D=()=>["","none","full",c,N,C],U=()=>["",I,be,se],le=()=>["solid","dashed","dotted","double"],he=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],V=()=>[I,Ce,Me,Ge],ze=()=>["","none",g,N,C],me=()=>["none",I,N,C],ge=()=>["none",I,N,C],je=()=>[I,N,C],fe=()=>[ce,"full",...k()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[J],breakpoint:[J],color:[Zt],container:[J],"drop-shadow":[J],ease:["in","out","in-out"],font:[nr],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[J],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[J],shadow:[J],spacing:["px",I],text:[J],"text-shadow":[J],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ce,C,N,y]}],container:["container"],columns:[{columns:[I,C,N,u]}],"break-after":[{"break-after":A()}],"break-before":[{"break-before":A()}],"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:G()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:v()}],"overscroll-x":[{"overscroll-x":v()}],"overscroll-y":[{"overscroll-y":v()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:z()}],"inset-x":[{"inset-x":z()}],"inset-y":[{"inset-y":z()}],start:[{start:z()}],end:[{end:z()}],top:[{top:z()}],right:[{right:z()}],bottom:[{bottom:z()}],left:[{left:z()}],visibility:["visible","invisible","collapse"],z:[{z:[ee,"auto",N,C]}],basis:[{basis:[ce,"full","auto",u,...k()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[I,ce,"auto","initial","none",C]}],grow:[{grow:["",I,N,C]}],shrink:[{shrink:["",I,N,C]}],order:[{order:[ee,"first","last","none",N,C]}],"grid-cols":[{"grid-cols":B()}],"col-start-end":[{col:P()}],"col-start":[{"col-start":$()}],"col-end":[{"col-end":$()}],"grid-rows":[{"grid-rows":B()}],"row-start-end":[{row:P()}],"row-start":[{"row-start":$()}],"row-end":[{"row-end":$()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":W()}],"auto-rows":[{"auto-rows":W()}],gap:[{gap:k()}],"gap-x":[{"gap-x":k()}],"gap-y":[{"gap-y":k()}],"justify-content":[{justify:[...F(),"normal"]}],"justify-items":[{"justify-items":[...T(),"normal"]}],"justify-self":[{"justify-self":["auto",...T()]}],"align-content":[{content:["normal",...F()]}],"align-items":[{items:[...T(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...T(),{baseline:["","last"]}]}],"place-content":[{"place-content":F()}],"place-items":[{"place-items":[...T(),"baseline"]}],"place-self":[{"place-self":["auto",...T()]}],p:[{p:k()}],px:[{px:k()}],py:[{py:k()}],ps:[{ps:k()}],pe:[{pe:k()}],pt:[{pt:k()}],pr:[{pr:k()}],pb:[{pb:k()}],pl:[{pl:k()}],m:[{m:L()}],mx:[{mx:L()}],my:[{my:L()}],ms:[{ms:L()}],me:[{me:L()}],mt:[{mt:L()}],mr:[{mr:L()}],mb:[{mb:L()}],ml:[{ml:L()}],"space-x":[{"space-x":k()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":k()}],"space-y-reverse":["space-y-reverse"],size:[{size:E()}],w:[{w:[u,"screen",...E()]}],"min-w":[{"min-w":[u,"screen","none",...E()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[i]},...E()]}],h:[{h:["screen","lh",...E()]}],"min-h":[{"min-h":["screen","lh","none",...E()]}],"max-h":[{"max-h":["screen","lh",...E()]}],"font-size":[{text:["base",n,be,se]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,N,Ne]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ce,C]}],"font-family":[{font:[or,C,s]}],"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:[l,N,C]}],"line-clamp":[{"line-clamp":[I,"none",N,Ne]}],leading:[{leading:[o,...k()]}],"list-image":[{"list-image":["none",N,C]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",N,C]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:j()}],"text-color":[{text:j()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...le(),"wavy"]}],"text-decoration-thickness":[{decoration:[I,"from-font","auto",N,se]}],"text-decoration-color":[{decoration:j()}],"underline-offset":[{"underline-offset":[I,"auto",N,C]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:k()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",N,C]}],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",N,C]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Q()}],"bg-repeat":[{bg:Y()}],"bg-size":[{bg:oe()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ee,N,C],radial:["",N,C],conic:[ee,N,C]},ir,sr]}],"bg-color":[{bg:j()}],"gradient-from-pos":[{from:Z()}],"gradient-via-pos":[{via:Z()}],"gradient-to-pos":[{to:Z()}],"gradient-from":[{from:j()}],"gradient-via":[{via:j()}],"gradient-to":[{to:j()}],rounded:[{rounded:D()}],"rounded-s":[{"rounded-s":D()}],"rounded-e":[{"rounded-e":D()}],"rounded-t":[{"rounded-t":D()}],"rounded-r":[{"rounded-r":D()}],"rounded-b":[{"rounded-b":D()}],"rounded-l":[{"rounded-l":D()}],"rounded-ss":[{"rounded-ss":D()}],"rounded-se":[{"rounded-se":D()}],"rounded-ee":[{"rounded-ee":D()}],"rounded-es":[{"rounded-es":D()}],"rounded-tl":[{"rounded-tl":D()}],"rounded-tr":[{"rounded-tr":D()}],"rounded-br":[{"rounded-br":D()}],"rounded-bl":[{"rounded-bl":D()}],"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-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:[...le(),"hidden","none"]}],"divide-style":[{divide:[...le(),"hidden","none"]}],"border-color":[{border:j()}],"border-color-x":[{"border-x":j()}],"border-color-y":[{"border-y":j()}],"border-color-s":[{"border-s":j()}],"border-color-e":[{"border-e":j()}],"border-color-t":[{"border-t":j()}],"border-color-r":[{"border-r":j()}],"border-color-b":[{"border-b":j()}],"border-color-l":[{"border-l":j()}],"divide-color":[{divide:j()}],"outline-style":[{outline:[...le(),"none","hidden"]}],"outline-offset":[{"outline-offset":[I,N,C]}],"outline-w":[{outline:["",I,be,se]}],"outline-color":[{outline:j()}],shadow:[{shadow:["","none",d,we,ve]}],"shadow-color":[{shadow:j()}],"inset-shadow":[{"inset-shadow":["none",b,we,ve]}],"inset-shadow-color":[{"inset-shadow":j()}],"ring-w":[{ring:U()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:j()}],"ring-offset-w":[{"ring-offset":[I,se]}],"ring-offset-color":[{"ring-offset":j()}],"inset-ring-w":[{"inset-ring":U()}],"inset-ring-color":[{"inset-ring":j()}],"text-shadow":[{"text-shadow":["none",p,we,ve]}],"text-shadow-color":[{"text-shadow":j()}],opacity:[{opacity:[I,N,C]}],"mix-blend":[{"mix-blend":[...he(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":he()}],"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":[I]}],"mask-image-linear-from-pos":[{"mask-linear-from":V()}],"mask-image-linear-to-pos":[{"mask-linear-to":V()}],"mask-image-linear-from-color":[{"mask-linear-from":j()}],"mask-image-linear-to-color":[{"mask-linear-to":j()}],"mask-image-t-from-pos":[{"mask-t-from":V()}],"mask-image-t-to-pos":[{"mask-t-to":V()}],"mask-image-t-from-color":[{"mask-t-from":j()}],"mask-image-t-to-color":[{"mask-t-to":j()}],"mask-image-r-from-pos":[{"mask-r-from":V()}],"mask-image-r-to-pos":[{"mask-r-to":V()}],"mask-image-r-from-color":[{"mask-r-from":j()}],"mask-image-r-to-color":[{"mask-r-to":j()}],"mask-image-b-from-pos":[{"mask-b-from":V()}],"mask-image-b-to-pos":[{"mask-b-to":V()}],"mask-image-b-from-color":[{"mask-b-from":j()}],"mask-image-b-to-color":[{"mask-b-to":j()}],"mask-image-l-from-pos":[{"mask-l-from":V()}],"mask-image-l-to-pos":[{"mask-l-to":V()}],"mask-image-l-from-color":[{"mask-l-from":j()}],"mask-image-l-to-color":[{"mask-l-to":j()}],"mask-image-x-from-pos":[{"mask-x-from":V()}],"mask-image-x-to-pos":[{"mask-x-to":V()}],"mask-image-x-from-color":[{"mask-x-from":j()}],"mask-image-x-to-color":[{"mask-x-to":j()}],"mask-image-y-from-pos":[{"mask-y-from":V()}],"mask-image-y-to-pos":[{"mask-y-to":V()}],"mask-image-y-from-color":[{"mask-y-from":j()}],"mask-image-y-to-color":[{"mask-y-to":j()}],"mask-image-radial":[{"mask-radial":[N,C]}],"mask-image-radial-from-pos":[{"mask-radial-from":V()}],"mask-image-radial-to-pos":[{"mask-radial-to":V()}],"mask-image-radial-from-color":[{"mask-radial-from":j()}],"mask-image-radial-to-color":[{"mask-radial-to":j()}],"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":R()}],"mask-image-conic-pos":[{"mask-conic":[I]}],"mask-image-conic-from-pos":[{"mask-conic-from":V()}],"mask-image-conic-to-pos":[{"mask-conic-to":V()}],"mask-image-conic-from-color":[{"mask-conic-from":j()}],"mask-image-conic-to-color":[{"mask-conic-to":j()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Q()}],"mask-repeat":[{mask:Y()}],"mask-size":[{mask:oe()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",N,C]}],filter:[{filter:["","none",N,C]}],blur:[{blur:ze()}],brightness:[{brightness:[I,N,C]}],contrast:[{contrast:[I,N,C]}],"drop-shadow":[{"drop-shadow":["","none",h,we,ve]}],"drop-shadow-color":[{"drop-shadow":j()}],grayscale:[{grayscale:["",I,N,C]}],"hue-rotate":[{"hue-rotate":[I,N,C]}],invert:[{invert:["",I,N,C]}],saturate:[{saturate:[I,N,C]}],sepia:[{sepia:["",I,N,C]}],"backdrop-filter":[{"backdrop-filter":["","none",N,C]}],"backdrop-blur":[{"backdrop-blur":ze()}],"backdrop-brightness":[{"backdrop-brightness":[I,N,C]}],"backdrop-contrast":[{"backdrop-contrast":[I,N,C]}],"backdrop-grayscale":[{"backdrop-grayscale":["",I,N,C]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[I,N,C]}],"backdrop-invert":[{"backdrop-invert":["",I,N,C]}],"backdrop-opacity":[{"backdrop-opacity":[I,N,C]}],"backdrop-saturate":[{"backdrop-saturate":[I,N,C]}],"backdrop-sepia":[{"backdrop-sepia":["",I,N,C]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":k()}],"border-spacing-x":[{"border-spacing-x":k()}],"border-spacing-y":[{"border-spacing-y":k()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",N,C]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[I,"initial",N,C]}],ease:[{ease:["linear","initial",f,N,C]}],delay:[{delay:[I,N,C]}],animate:[{animate:["none",w,N,C]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,N,C]}],"perspective-origin":[{"perspective-origin":G()}],rotate:[{rotate:me()}],"rotate-x":[{"rotate-x":me()}],"rotate-y":[{"rotate-y":me()}],"rotate-z":[{"rotate-z":me()}],scale:[{scale:ge()}],"scale-x":[{"scale-x":ge()}],"scale-y":[{"scale-y":ge()}],"scale-z":[{"scale-z":ge()}],"scale-3d":["scale-3d"],skew:[{skew:je()}],"skew-x":[{"skew-x":je()}],"skew-y":[{"skew-y":je()}],transform:[{transform:[N,C,"","none","gpu","cpu"]}],"transform-origin":[{origin:G()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:fe()}],"translate-x":[{"translate-x":fe()}],"translate-y":[{"translate-y":fe()}],"translate-z":[{"translate-z":fe()}],"translate-none":["translate-none"],accent:[{accent:j()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:j()}],"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",N,C]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":k()}],"scroll-mx":[{"scroll-mx":k()}],"scroll-my":[{"scroll-my":k()}],"scroll-ms":[{"scroll-ms":k()}],"scroll-me":[{"scroll-me":k()}],"scroll-mt":[{"scroll-mt":k()}],"scroll-mr":[{"scroll-mr":k()}],"scroll-mb":[{"scroll-mb":k()}],"scroll-ml":[{"scroll-ml":k()}],"scroll-p":[{"scroll-p":k()}],"scroll-px":[{"scroll-px":k()}],"scroll-py":[{"scroll-py":k()}],"scroll-ps":[{"scroll-ps":k()}],"scroll-pe":[{"scroll-pe":k()}],"scroll-pt":[{"scroll-pt":k()}],"scroll-pr":[{"scroll-pr":k()}],"scroll-pb":[{"scroll-pb":k()}],"scroll-pl":[{"scroll-pl":k()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",N,C]}],fill:[{fill:["none",...j()]}],"stroke-w":[{stroke:[I,be,se,Ne]}],stroke:[{stroke:["none",...j()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],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-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},ae=Ut(ur);function q(...t){return ae(ne(t))}const xr={primary:q("bg-primary-600 text-white","hover:bg-primary-700","active:bg-primary-800","shadow-solid hover:shadow-solid-hover active:shadow-solid-active","dark:bg-primary-500 dark:text-white","dark:hover:bg-primary-600","dark:active:bg-primary-700"),soft:q("bg-primary-50 text-primary-700","hover:bg-primary-100","active:bg-primary-200","shadow-soft hover:shadow-soft-hover active:shadow-soft-active","dark:bg-primary-950 dark:text-primary-300","dark:hover:bg-primary-900","dark:active:bg-primary-800"),secondary:q("bg-neutral-800 text-white","hover:bg-neutral-900","active:bg-black","shadow-secondary hover:shadow-secondary-hover active:shadow-secondary-active","dark:bg-neutral-700 dark:text-neutral-100","dark:hover:bg-neutral-600","dark:active:bg-neutral-500"),dashed:q("bg-white text-neutral-700 border border-dashed border-neutral-300","hover:bg-neutral-50 hover:border-neutral-400","active:bg-neutral-100","shadow-outline hover:shadow-outline-hover active:shadow-outline-active","dark:bg-neutral-900 dark:text-neutral-300 dark:border-neutral-700","dark:hover:bg-neutral-800 dark:hover:border-neutral-600","dark:active:bg-neutral-700"),white:q("bg-white text-neutral-900","hover:bg-neutral-50","active:bg-neutral-100","shadow-white hover:shadow-white-hover active:shadow-white-active","dark:bg-neutral-100 dark:text-neutral-900","dark:hover:bg-neutral-200","dark:active:bg-neutral-300"),outline:q("bg-white text-neutral-700 border border-neutral-300","hover:bg-neutral-50 hover:border-neutral-400","active:bg-neutral-100","shadow-outline hover:shadow-outline-hover active:shadow-outline-active","dark:bg-neutral-900 dark:text-neutral-300 dark:border-neutral-700","dark:hover:bg-neutral-800 dark:hover:border-neutral-600","dark:active:bg-neutral-700"),ghost:q("bg-transparent text-neutral-700","hover:bg-neutral-100","active:bg-neutral-200","shadow-none","dark:text-neutral-300","dark:hover:bg-neutral-800","dark:active:bg-neutral-700"),"ghost-primary":q("bg-transparent text-primary-600","hover:bg-primary-50","active:bg-primary-100","shadow-none","dark:text-primary-400","dark:hover:bg-primary-950","dark:active:bg-primary-900"),danger:q("bg-critical-600 text-white","hover:bg-critical-700","active:bg-critical-800","shadow-solid hover:shadow-solid-hover active:shadow-solid-active","dark:bg-critical-500 dark:text-white","dark:hover:bg-critical-600","dark:active:bg-critical-700"),"soft-danger":q("bg-critical-50 text-critical-700","hover:bg-critical-100","active:bg-critical-200","shadow-soft hover:shadow-soft-hover active:shadow-soft-active","dark:bg-critical-950 dark:text-critical-300","dark:hover:bg-critical-900","dark:active:bg-critical-800"),link:q("bg-transparent text-primary-600 shadow-none","hover:text-primary-700","active:text-primary-800","dark:text-primary-400","dark:hover:text-primary-300","dark:active:text-primary-200"),"link-danger":q("bg-transparent text-critical-600 shadow-none","hover:text-critical-700","active:text-critical-800","dark:text-critical-400","dark:hover:text-critical-300","dark:active:text-critical-200"),"link-neutral":q("bg-transparent text-neutral-700 shadow-none","hover:text-neutral-900","active:text-black","dark:text-neutral-300","dark:hover:text-neutral-100","dark:active:text-white")},br={xs:"h-btn-xs pl-3 pr-1.5 py-2 gap-0.5",sm:"h-btn-sm pl-3 pr-2 py-2 gap-1",md:"h-btn-md pl-3 pr-2.5 py-0 gap-1",lg:"h-btn-lg pl-3 pr-3 py-3 gap-1"},pr={xs:"h-btn-xs w-btn-xs p-0",sm:"h-btn-sm w-btn-sm p-0",md:"h-btn-md w-btn-md p-0",lg:"h-btn-lg w-btn-lg p-0"},hr={rounded:"rounded-control",pill:"rounded-full",square:"rounded",circle:"rounded-full"},mr={xs:"px-0 py-1 gap-0.5 h-auto",sm:"px-0 py-1 gap-1 h-auto",md:"px-0 py-1.5 gap-1 h-auto",lg:"px-0 py-2 gap-1 h-auto"},Ye=M.forwardRef(({variant:t="primary",size:s="md",shape:n="rounded",loading:r=!1,disabled:l=!1,fullWidth:o=!1,iconLeft:i,iconRight:u,startIcon:a,endIcon:c,icon:d,showChevron:b=!1,underline:p=!1,rtl:h=!1,children:g,className:m,...y},f)=>{const w=d&&!g,A=t==="link"||t==="link-danger"||t==="link-neutral",R=i||a,G=u||c,S=h?_.ChevronLeft:_.ChevronRight;let v=R,k=G;b&&A&&(h?v=e.jsx(S,{className:"w-4 h-4"}):k=e.jsx(S,{className:"w-4 h-4"}));const z=q("inline-flex items-center justify-center","font-sans text-btn font-medium","transition-all duration-150 ease-in-out","focus:outline-none focus-visible:ring-2 focus-visible:ring-primary-500 focus-visible:ring-offset-2","cursor-pointer",xr[t],hr[n],A?mr[s]:w?pr[s]:br[s],A&&p&&"underline underline-offset-2",A&&"px-0",h&&"font-sans-rtl",o&&"w-full",(l||r)&&"opacity-50 cursor-not-allowed shadow-none pointer-events-none",m);return e.jsxs("button",{ref:f,type:"button",disabled:l||r,dir:h?"rtl":void 0,className:z,...y,children:[r?e.jsx(_.Loader2,{className:"h-[20px] w-[20px] animate-spin"}):w?e.jsx("span",{className:"flex items-center justify-center h-[20px] w-[20px] [&>svg]:h-[20px] [&>svg]:w-[20px]",children:d}):null,!w&&!r&&e.jsx(e.Fragment,{children:h?e.jsxs(e.Fragment,{children:[k&&e.jsx("span",{className:"flex items-center justify-center h-[20px] w-[20px] [&>svg]:h-[20px] [&>svg]:w-[20px] mr-1",children:k}),g&&e.jsx("span",{className:q("truncate",A&&"hover:underline"),children:g}),v&&e.jsx("span",{className:"flex items-center justify-center h-[20px] w-[20px] [&>svg]:h-[20px] [&>svg]:w-[20px] ml-1",children:v})]}):e.jsxs(e.Fragment,{children:[v&&e.jsx("span",{className:"flex items-center justify-center h-[20px] w-[20px] [&>svg]:h-[20px] [&>svg]:w-[20px] mr-1",children:v}),g&&e.jsx("span",{className:q("truncate",A&&"hover:underline"),children:g}),k&&e.jsx("span",{className:"flex items-center justify-center h-[20px] w-[20px] [&>svg]:h-[20px] [&>svg]:w-[20px] ml-1",children:k})]})}),r&&!w&&g&&e.jsx("span",{className:"truncate ml-1",children:g})]})});Ye.displayName="Button";function te(...t){return ae(ne(t))}const gr={Facebook:"Sign in with Facebook",LinkedIn:"Sign in with LinkedIn",Apple:"Sign in with Apple",WhatsApp:"Sign in with WhatsApp",Google:"Sign in with Google",X:"Sign in with X"},fr={Facebook:"تسجيل الدخول باستخدام فيسبوك",LinkedIn:"تسجيل الدخول باستخدام لينكد إن",Apple:"تسجيل الدخول باستخدام آبل",WhatsApp:"تسجيل الدخول باستخدام واتساب",Google:"تسجيل الدخول باستخدام جوجل",X:"تسجيل الدخول باستخدام إكس"},vr={Facebook:{bg:"bg-social-facebook",hoverBg:"hover:bg-[#166FE5]",focusRing:"focus-visible:ring-[#1460CC]",text:"text-white",border:"border-social-facebook",textColor:"text-social-facebook"},LinkedIn:{bg:"bg-social-linkedin",hoverBg:"hover:bg-[#09599A]",focusRing:"focus-visible:ring-[#084C82]",text:"text-white",border:"border-social-linkedin",textColor:"text-social-linkedin"},Apple:{bg:"bg-social-apple",hoverBg:"hover:bg-[#1a1a1a]",focusRing:"focus-visible:ring-[#333333]",text:"text-white",border:"border-social-apple",textColor:"text-social-apple"},WhatsApp:{bg:"bg-social-whatsapp",hoverBg:"hover:bg-[#22C55E]",focusRing:"focus-visible:ring-[#1FA855]",text:"text-white",border:"border-social-whatsapp",textColor:"text-social-whatsapp"},Google:{bg:"bg-social-google",hoverBg:"hover:bg-[#357AE5]",focusRing:"focus-visible:ring-[#2E6FD6]",text:"text-white",border:"border-social-google",textColor:"text-social-google"},X:{bg:"bg-social-twitter",hoverBg:"hover:bg-[#1A91E0]",focusRing:"focus-visible:ring-[#1781CE]",text:"text-white",border:"border-social-twitter",textColor:"text-social-twitter"}},wr=t=>({Facebook:e.jsx(ie.FaFacebook,{size:20}),LinkedIn:e.jsx(ie.FaLinkedin,{size:20}),Apple:e.jsx(ie.FaApple,{size:20}),WhatsApp:e.jsx(ie.FaWhatsapp,{size:20}),Google:e.jsx(ie.FaGoogle,{size:20}),X:e.jsx(ie.FaXTwitter,{size:20})})[t],Ke=M.forwardRef(({platform:t,type:s="Default",style:n="Solid",rtl:r=!1,disabled:l=!1,className:o,...i},u)=>{const a=r,c=s==="IconOnly",d=n==="Outlined",b=vr[t],p=wr(t),h=a?fr[t]:gr[t],g=te("inline-flex items-center justify-center","font-sans text-btn font-medium","rounded-control","transition-all duration-150 ease-in-out","focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2","cursor-pointer","relative",c?"h-9 w-9 p-0":"h-9 pl-3 pr-3 py-0 gap-0.5",a&&"font-sans-rtl",l&&"opacity-50 cursor-not-allowed pointer-events-none",o),m=te(n==="Solid"?te(b.bg,b.text,b.hoverBg,b.focusRing,"border border-transparent","shadow-component-default","hover:shadow-component-hover","focus-visible:shadow-component-focus"):te("bg-white",b.border,b.textColor,"border","shadow-outline","hover:bg-neutral-50","hover:shadow-outline-hover",b.focusRing)),y=te("flex items-center justify-center flex-shrink-0","h-[20px] w-[20px]",c?"":"mr-0.5",d&&b.textColor),f=()=>e.jsx("span",{className:y,children:p});return e.jsx("button",{ref:u,type:"button",disabled:l,dir:a?"rtl":void 0,className:te(g,m),...i,children:a?e.jsxs(e.Fragment,{children:[!c&&e.jsx("span",{className:te("truncate relative z-10",d&&b.textColor),children:h}),f()]}):e.jsxs(e.Fragment,{children:[f(),!c&&e.jsx("span",{className:te("truncate relative z-10",d&&b.textColor),children:h})]})})});Ke.displayName="SocialButton";function x(...t){return ae(ne(t))}const Je=M.forwardRef(({items:t=[],variant:s="outline",size:n="md",shape:r="rounded",iconOnly:l=!1,rtl:o=!1,className:i,...u},a)=>{const d={xs:{height:"h-btn-xs",padding:l?"px-0":"px-3",iconSize:"w-4 h-4",text:"text-[13px]",iconOnlyWidth:"w-btn-xs"},sm:{height:"h-btn-sm",padding:l?"px-0":"px-3",iconSize:"w-4 h-4",text:"text-[14px]",iconOnlyWidth:"w-btn-sm"},md:{height:"h-btn-md",padding:l?"px-0":"px-3",iconSize:"w-5 h-5",text:"text-[15px]",iconOnlyWidth:"w-btn-md"},lg:{height:"h-btn-lg",padding:l?"px-0":"px-4",iconSize:"w-5 h-5",text:"text-[16px]",iconOnlyWidth:"w-btn-lg"}}[n],p={rounded:{container:"rounded-control",firstItem:o?"rounded-r-control":"rounded-l-control",lastItem:o?"rounded-l-control":"rounded-r-control"},pill:{container:"rounded-full",firstItem:o?"rounded-r-full":"rounded-l-full",lastItem:o?"rounded-l-full":"rounded-r-full"},square:{container:"rounded",firstItem:o?"rounded-r":"rounded-l",lastItem:o?"rounded-l":"rounded-r"}}[r],g={primary:{container:"bg-primary-600 dark:bg-primary-500",button:x("text-white","hover:bg-primary-700 dark:hover:bg-primary-600","active:bg-primary-800 dark:active:bg-primary-700"),buttonActive:"bg-primary-800 dark:bg-primary-700",divider:"before:bg-primary-700/30 dark:before:bg-primary-400/20"},soft:{container:"bg-primary-50 dark:bg-primary-950",button:x("text-primary-700 dark:text-primary-300","hover:bg-primary-100 dark:hover:bg-primary-900","active:bg-primary-200 dark:active:bg-primary-800"),buttonActive:"bg-primary-200 dark:bg-primary-800",divider:"before:bg-primary-200/50 dark:before:bg-primary-800/50"},outline:{container:"bg-white dark:bg-neutral-900 border border-neutral-300 dark:border-neutral-700",button:x("text-neutral-700 dark:text-neutral-300","hover:bg-neutral-50 dark:hover:bg-neutral-800","active:bg-neutral-100 dark:active:bg-neutral-700"),buttonActive:"bg-neutral-100 dark:bg-neutral-800",divider:"before:bg-neutral-300/50 dark:before:bg-neutral-700/50"},ghost:{container:"bg-transparent",button:x("text-neutral-700 dark:text-neutral-300","hover:bg-neutral-100 dark:hover:bg-neutral-800","active:bg-neutral-200 dark:active:bg-neutral-700"),buttonActive:"bg-neutral-200 dark:bg-neutral-700",divider:"before:bg-neutral-300/50 dark:before:bg-neutral-600/50"}}[s],m=x("relative inline-flex items-center overflow-hidden",p.container,g.container,o&&"flex-row-reverse",i),y=(f,w,A)=>x("relative flex items-center justify-center gap-1.5","transition-all duration-150","font-sans font-medium",d.height,d.padding,d.text,(l||!f.label)&&d.iconOnlyWidth,g.button,f.active&&g.buttonActive,!f.disabled&&"cursor-pointer",f.disabled&&"opacity-50 cursor-not-allowed pointer-events-none",w&&p.firstItem,A&&p.lastItem,!w&&"before:absolute before:top-0 before:bottom-0 before:w-px",!w&&(o?"before:right-0":"before:left-0"),!w&&g.divider,o&&"font-sans-rtl");return e.jsx("div",{ref:a,className:m,...u,children:t.map((f,w)=>{const A=w===0,R=w===t.length-1;return e.jsx("button",{type:"button",onClick:f.onClick,disabled:f.disabled,className:y(f,A,R),dir:o?"rtl":void 0,children:l?f.icon&&e.jsx("span",{className:x("flex items-center justify-center",d.iconSize,"[&>svg]:w-full [&>svg]:h-full"),children:f.icon}):!f.label&&f.icon?e.jsx("span",{className:x("flex items-center justify-center",d.iconSize,"[&>svg]:w-full [&>svg]:h-full"),children:f.icon}):e.jsx(e.Fragment,{children:o?e.jsxs(e.Fragment,{children:[f.label&&e.jsx("span",{className:"truncate",children:f.label}),f.icon&&e.jsx("span",{className:x("flex items-center justify-center shrink-0",d.iconSize,"[&>svg]:w-full [&>svg]:h-full"),children:f.icon})]}):e.jsxs(e.Fragment,{children:[f.icon&&e.jsx("span",{className:x("flex items-center justify-center shrink-0",d.iconSize,"[&>svg]:w-full [&>svg]:h-full"),children:f.icon}),f.label&&e.jsx("span",{className:"truncate",children:f.label})]})})},w)})})});Je.displayName="ButtonGroup";const Qe=M.forwardRef(({label:t,supportText:s,rtlLabel:n,rtlSupportText:r,checkLocation:l="leading",indeterminate:o=!1,rtl:i=!1,error:u=!1,disabled:a=!1,checked:c=!1,className:d,...b},p)=>{const h=i&&n?n:t,g=i&&r?r:s,m=!!s||!!r,y=x("bnhtn-checkbox-box","relative w-5 h-5 rounded border flex items-center justify-center transition-all duration-150","bg-white shadow-[0px_1px_2px_0px_rgba(15,17,20,0.05)]",!c&&!o&&!u&&!a&&"border-neutral-300",!c&&!o&&u&&!a&&"border-danger-500",(c||o)&&!a&&"bg-primary-500 border-primary-500",!a&&!c&&!o&&"hover:border-neutral-400",!a&&(c||o)&&"hover:bg-primary-600 hover:border-primary-600",a&&"opacity-50 cursor-not-allowed","after:absolute after:inset-0 after:rounded after:pointer-events-none","after:shadow-[inset_0px_-1px_0px_0px_rgba(0,0,0,0.08)]"),f=x("bnhtn-checkbox","inline-flex gap-2 items-start",m?"items-start":"items-center",l==="trailing"&&!i&&"flex-row-reverse",d),w=x("bnhtn-checkbox-label-wrapper","flex flex-col flex-1 min-w-0","justify-center",i&&"items-end text-right"),A=x("bnhtn-checkbox-label","text-[15px] leading-6 font-medium text-neutral-900",i&&"font-sans-rtl",a&&"opacity-50"),R=x("bnhtn-checkbox-support-text","text-[13px] leading-5 font-normal text-neutral-600",i&&"font-sans-rtl",a&&"opacity-50");return e.jsxs("label",{className:f,children:[e.jsx("input",{ref:p,type:"checkbox",checked:c,disabled:a,className:"bnhtn-checkbox-input sr-only peer",...b}),e.jsxs("div",{className:"bnhtn-checkbox-wrapper flex items-start shrink-0 pt-0.5",children:[e.jsxs("div",{className:y,children:[c&&!o&&e.jsx(_.Check,{className:"bnhtn-checkbox-icon w-3 h-3 text-white stroke-[2.5]"}),o&&e.jsx(_.Minus,{className:"bnhtn-checkbox-icon w-3 h-3 text-white stroke-[2.5]"})]}),e.jsx("div",{className:x("bnhtn-checkbox-focus-ring","absolute inset-0 rounded pointer-events-none opacity-0","peer-focus-visible:opacity-100","shadow-[0_0_0_3px_rgba(50,118,255,0.2)]","transition-opacity duration-150")})]}),(t||n)&&e.jsxs("div",{className:w,dir:i?"rtl":void 0,children:[e.jsx("span",{className:A,children:h}),m&&e.jsx("span",{className:R,children:g})]})]})});Qe.displayName="Checkbox";const Ze=M.forwardRef(({label:t,description:s,icon:n,indeterminate:r=!1,rtl:l=!1,checkboxPosition:o="right",disabled:i=!1,checked:u=!1,className:a,...c},d)=>{const b=x("bnhtn-checkbox-card","relative flex items-center gap-3 p-4 rounded-lg border transition-all duration-150 cursor-pointer","bg-white dark:bg-neutral-900",!u&&!r&&!i&&"border-neutral-200 dark:border-neutral-700",!u&&!r&&!i&&"hover:border-neutral-300 dark:hover:border-neutral-600",(u||r)&&!i&&"border-primary-500 dark:border-primary-400 bg-primary-50/50 dark:bg-primary-950/50",(u||r)&&!i&&"shadow-[0_0_0_1px_rgba(var(--color-primary-500),0.1)]",i&&"opacity-50 cursor-not-allowed",l&&"flex-row-reverse",o==="left"&&!l&&"flex-row-reverse",a),p=x("bnhtn-checkbox-card-box","relative w-5 h-5 rounded border flex items-center justify-center transition-all duration-150 shrink-0","bg-white dark:bg-neutral-800",!u&&!r&&!i&&"border-neutral-300 dark:border-neutral-600",(u||r)&&!i&&"bg-primary-500 dark:bg-primary-600 border-primary-500 dark:border-primary-600",i&&"cursor-not-allowed"),h=x("bnhtn-checkbox-card-label","text-[15px] leading-6 font-medium text-neutral-900 dark:text-white",l&&"font-sans-rtl"),g=x("bnhtn-checkbox-card-description","text-[13px] leading-5 font-normal text-neutral-600 dark:text-neutral-400",l&&"font-sans-rtl");return e.jsxs("label",{className:b,dir:l?"rtl":void 0,children:[e.jsx("input",{ref:d,type:"checkbox",checked:u,disabled:i,className:"bnhtn-checkbox-card-input sr-only peer",...c}),n&&e.jsx("div",{className:"bnhtn-checkbox-card-icon-wrapper flex items-center justify-center shrink-0 w-10 h-10",children:n}),e.jsxs("div",{className:x("bnhtn-checkbox-card-text flex flex-col flex-1 min-w-0",l&&"text-right"),children:[t&&e.jsx("span",{className:h,children:t}),s&&e.jsx("span",{className:g,children:s})]}),e.jsxs("div",{className:"bnhtn-checkbox-card-wrapper flex items-center shrink-0",children:[e.jsxs("div",{className:p,children:[u&&!r&&e.jsx(_.Check,{className:"bnhtn-checkbox-card-icon w-3 h-3 text-white stroke-[2.5]"}),r&&e.jsx(_.Minus,{className:"bnhtn-checkbox-card-icon w-3 h-3 text-white stroke-[2.5]"})]}),e.jsx("div",{className:x("bnhtn-checkbox-card-focus-ring","absolute inset-0 rounded-lg pointer-events-none opacity-0","peer-focus-visible:opacity-100","ring-2 ring-primary-500/20 dark:ring-primary-400/20","transition-opacity duration-150")})]})]})});Ze.displayName="CheckboxCard";const et=M.forwardRef(({label:t,supportText:s,rtlLabel:n,rtlSupportText:r,radioLocation:l="leading",rtl:o=!1,error:i=!1,disabled:u=!1,checked:a=!1,className:c,...d},b)=>{const p=o&&n?n:t,h=o&&r?r:s,g=!!s||!!r,m=x("bnhtn-radio-box","relative w-5 h-5 rounded-full border flex items-center justify-center transition-all duration-150","bg-white shadow-[0px_1px_2px_0px_rgba(15,17,20,0.05)]",!a&&!i&&!u&&"border-neutral-300",!a&&i&&!u&&"border-danger-500",a&&!u&&"border-primary-500",!u&&!a&&"hover:border-neutral-400",!u&&a&&"hover:border-primary-600",u&&"opacity-50 cursor-not-allowed","after:absolute after:inset-0 after:rounded-full after:pointer-events-none","after:shadow-[inset_0px_-1px_0px_0px_rgba(0,0,0,0.08)]"),y=x("bnhtn-radio-dot","w-2.5 h-2.5 rounded-full transition-all duration-150",a&&!u&&"bg-primary-500",a&&!u&&"group-hover:bg-primary-600"),f=x("bnhtn-radio group","inline-flex gap-2 items-start",g?"items-start":"items-center",l==="trailing"&&!o&&"flex-row-reverse",c),w=x("bnhtn-radio-label-wrapper","flex flex-col flex-1 min-w-0","justify-center",o&&"items-end text-right"),A=x("bnhtn-radio-label","text-[15px] leading-6 font-medium text-neutral-900","dark:text-neutral-100",o&&"font-sans-rtl",u&&"opacity-50"),R=x("bnhtn-radio-support-text","text-[13px] leading-5 font-normal text-neutral-600","dark:text-neutral-400",o&&"font-sans-rtl",u&&"opacity-50");return e.jsxs("label",{className:f,children:[e.jsx("input",{ref:b,type:"radio",checked:a,disabled:u,className:"bnhtn-radio-input sr-only peer",...d}),e.jsxs("div",{className:"bnhtn-radio-wrapper relative flex items-start shrink-0 pt-0.5",children:[e.jsx("div",{className:m,children:a&&e.jsx("div",{className:y})}),e.jsx("div",{className:x("bnhtn-radio-focus-ring","absolute inset-0 rounded-full pointer-events-none opacity-0","peer-focus-visible:opacity-100","shadow-[0_0_0_3px_rgba(50,118,255,0.2)]","transition-opacity duration-150")})]}),(t||n)&&e.jsxs("div",{className:w,dir:o?"rtl":void 0,children:[e.jsx("span",{className:A,children:p}),g&&e.jsx("span",{className:R,children:h})]})]})});et.displayName="Radio";const tt=M.forwardRef(({label:t,description:s,rtlLabel:n,rtlDescription:r,leadingIcon:l,supportText:o,rtlSupportText:i,radioLocation:u="trailing",rtl:a=!1,error:c=!1,disabled:d=!1,checked:b=!1,className:p,...h},g)=>{const m=a&&n?n:t,y=a&&r?r:s,f=a&&i?i:o,w=!!s||!!r,A=!!o||!!i,R=x("bnhtn-radio-card group","relative flex items-center gap-3 p-4 rounded-control border-2 transition-all duration-150 cursor-pointer","bg-white dark:bg-neutral-800","shadow-[0px_1px_2px_0px_rgba(15,17,20,0.05)]",!b&&!c&&!d&&"border-neutral-200 dark:border-neutral-700",!b&&c&&!d&&"border-danger-500 dark:border-danger-500",b&&!d&&"border-primary-600 dark:border-primary-500",!d&&!b&&"hover:border-neutral-300 dark:hover:border-neutral-600",!d&&b&&"hover:border-primary-700 dark:hover:border-primary-600",b&&!d&&"bg-primary-50 dark:bg-primary-950/20",d&&"opacity-50 cursor-not-allowed",u==="leading"&&!a&&"flex-row-reverse",a&&"flex-row-reverse",p),G=x("bnhtn-radio-card-box","relative w-5 h-5 rounded-full border flex items-center justify-center shrink-0 transition-all duration-150","bg-white dark:bg-neutral-800","shadow-[0px_1px_2px_0px_rgba(15,17,20,0.05)]",!b&&!c&&!d&&"border-neutral-300 dark:border-neutral-600",!b&&c&&!d&&"border-danger-500 dark:border-danger-500",b&&!d&&"border-primary-500 dark:border-primary-500",!d&&!b&&"group-hover:border-neutral-400 dark:group-hover:border-neutral-500",!d&&b&&"group-hover:border-primary-600 dark:group-hover:border-primary-600","after:absolute after:inset-0 after:rounded-full after:pointer-events-none","after:shadow-[inset_0px_-1px_0px_0px_rgba(0,0,0,0.08)]"),S=x("bnhtn-radio-card-dot","w-2.5 h-2.5 rounded-full transition-all duration-150",b&&!d&&"bg-primary-500 dark:bg-primary-500",b&&!d&&"group-hover:bg-primary-600 dark:group-hover:bg-primary-600"),v=x("bnhtn-radio-card-content","flex items-center gap-3 flex-1 min-w-0",a&&"flex-row-reverse"),k=x("bnhtn-radio-card-text","flex flex-col flex-1 min-w-0",a&&"text-right"),z=x("bnhtn-radio-card-label","text-[15px] leading-6 font-semibold text-neutral-900","dark:text-neutral-100",a&&"font-sans-rtl"),B=x("bnhtn-radio-card-description","text-[13px] leading-5 font-normal text-neutral-600","dark:text-neutral-400",a&&"font-sans-rtl"),P=x("bnhtn-radio-card-support","text-[13px] leading-5 font-normal text-neutral-600","dark:text-neutral-400",a&&"font-sans-rtl");return e.jsxs("label",{className:R,children:[e.jsx("input",{ref:g,type:"radio",checked:b,disabled:d,className:"bnhtn-radio-card-input sr-only peer",...h}),e.jsxs("div",{className:v,children:[l&&e.jsx("div",{className:"bnhtn-radio-card-icon shrink-0 w-10 h-10 flex items-center justify-center",children:typeof l=="string"?e.jsx("img",{src:l,alt:"",className:"w-full h-full object-cover rounded-full"}):l}),e.jsxs("div",{className:k,dir:a?"rtl":void 0,children:[e.jsx("span",{className:z,children:m}),w&&e.jsx("span",{className:B,children:y})]}),A&&e.jsx("div",{className:P,children:f})]}),e.jsxs("div",{className:"bnhtn-radio-card-radio relative shrink-0",children:[e.jsx("div",{className:G,children:b&&e.jsx("div",{className:S})}),e.jsx("div",{className:x("bnhtn-radio-card-focus-ring","absolute inset-0 rounded-full pointer-events-none opacity-0","peer-focus-visible:opacity-100","shadow-[0_0_0_3px_rgba(50,118,255,0.2)]","transition-opacity duration-150")})]})]})});tt.displayName="RadioCard";const rt=M.forwardRef(({size:t="md",min:s=0,max:n=100,step:r=1,value:l,defaultValue:o=0,showValue:i=!1,showMinMax:u=!1,label:a,rtlLabel:c,helperText:d,rtlHelperText:b,rtl:p=!1,error:h=!1,disabled:g=!1,formatValue:m=R=>R.toString(),onChange:y,className:f,...w},A)=>{const[R,G]=M.useState(l??o),[S,v]=M.useState(!1),k=M.useRef(null),z=l??R,B=(z-s)/(n-s)*100,P=p&&c?c:a,$=p&&b?b:d,F={sm:{track:"h-1",thumb:"w-3 h-3",label:"text-sm",valueLabel:"text-xs"},md:{track:"h-1.5",thumb:"w-4 h-4",label:"text-[15px]",valueLabel:"text-sm"},lg:{track:"h-2",thumb:"w-5 h-5",label:"text-base",valueLabel:"text-base"}}[t];M.useEffect(()=>{l!==void 0&&G(l)},[l]);const T=D=>{const U=parseFloat(D.target.value);l===void 0&&G(U),y==null||y(D)},L=x("bnhtn-slider-track","relative w-full rounded-full bg-neutral-200 dark:bg-neutral-700",F.track,g&&"opacity-50"),E=x("bnhtn-slider-fill","absolute top-0 h-full rounded-full transition-all",h&&!g?"bg-danger-500":"bg-primary-500 dark:bg-primary-400",g&&"opacity-50",p?"right-0":"left-0"),j=x("bnhtn-slider-thumb","absolute top-1/2 -translate-y-1/2 rounded-full bg-white border-2 shadow-sm transition-all cursor-pointer","hover:scale-110","focus-visible:outline-none focus-visible:ring-4 focus-visible:ring-primary-200 dark:focus-visible:ring-primary-800",F.thumb,h&&!g?"border-danger-500":"border-primary-500 dark:border-primary-400",g&&"cursor-not-allowed opacity-50 hover:scale-100",S&&"scale-110"),Q=x("bnhtn-slider-label","block font-medium text-neutral-900 dark:text-neutral-100 mb-2",F.label,p&&"font-sans-rtl text-right",g&&"opacity-50"),Y=x("bnhtn-slider-helper-text","text-sm text-neutral-600 dark:text-neutral-400 mt-2",h&&!g&&"text-danger-600 dark:text-danger-400",p&&"font-sans-rtl text-right",g&&"opacity-50"),oe=x("bnhtn-slider-value-label","absolute -top-8 left-1/2 -translate-x-1/2 px-2 py-1 rounded bg-neutral-900 dark:bg-neutral-100 text-white dark:text-neutral-900 font-medium whitespace-nowrap",F.valueLabel,"opacity-0 transition-opacity pointer-events-none",(S||i)&&"opacity-100"),Z=x("text-xs text-neutral-500 dark:text-neutral-400",g&&"opacity-50");return e.jsxs("div",{className:x("bnhtn-slider-container","w-full",f),children:[(a||c)&&e.jsx("label",{className:Q,dir:p?"rtl":void 0,children:P}),e.jsxs("div",{className:"bnhtn-slider-wrapper relative",children:[e.jsxs("div",{ref:k,className:"relative pt-2 pb-2",onMouseDown:()=>v(!0),onMouseUp:()=>v(!1),onMouseLeave:()=>v(!1),children:[e.jsxs("div",{className:L,children:[e.jsx("div",{className:E,style:{width:`${B}%`}}),e.jsx("div",{className:j,style:{[p?"right":"left"]:`calc(${B}% - ${F.thumb==="w-3 h-3"?"6px":F.thumb==="w-4 h-4"?"8px":"10px"})`},children:e.jsx("div",{className:oe,children:m(z)})})]}),e.jsx("input",{ref:A,type:"range",min:s,max:n,step:r,value:z,disabled:g,onChange:T,onMouseDown:()=>v(!0),onMouseUp:()=>v(!1),onTouchStart:()=>v(!0),onTouchEnd:()=>v(!1),className:"bnhtn-slider-input absolute inset-0 w-full opacity-0 cursor-pointer disabled:cursor-not-allowed",dir:p?"rtl":void 0,...w})]}),u&&e.jsxs("div",{className:x("flex justify-between mt-1",p&&"flex-row-reverse"),children:[e.jsx("span",{className:Z,children:m(s)}),e.jsx("span",{className:Z,children:m(n)})]})]}),(d||b)&&e.jsx("p",{className:Y,dir:p?"rtl":void 0,children:$})]})});rt.displayName="Slider";const nt=M.forwardRef(({size:t="md",label:s,rtlLabel:n,supportText:r,rtlSupportText:l,labelPosition:o="trailing",showIcon:i=!1,iconOn:u,iconOff:a,rtl:c=!1,error:d=!1,disabled:b=!1,checked:p=!1,onCheckedChange:h,onChange:g,className:m,...y},f)=>{const w=c&&n?n:s,A=c&&l?l:r,R=!!r||!!l,S={sm:{track:"w-9 h-5",thumb:"w-3.5 h-3.5",translate:"translate-x-4",padding:"p-0.5",icon:"w-2.5 h-2.5"},md:{track:"w-11 h-6",thumb:"w-5 h-5",translate:"translate-x-5",padding:"p-0.5",icon:"w-3 h-3"},lg:{track:"w-14 h-7",thumb:"w-6 h-6",translate:"translate-x-7",padding:"p-0.5",icon:"w-4 h-4"}}[t],v=F=>{g==null||g(F),h==null||h(F.target.checked)},k=x("bnhtn-toggle-track","relative inline-flex items-center rounded-full transition-colors duration-200 cursor-pointer",S.track,S.padding,!p&&!d&&!b&&"bg-neutral-300 dark:bg-neutral-600",!p&&d&&!b&&"bg-danger-300 dark:bg-danger-900",p&&!b&&"bg-primary-500 dark:bg-primary-500",!b&&!p&&"hover:bg-neutral-400 dark:hover:bg-neutral-500",!b&&p&&"hover:bg-primary-600 dark:hover:bg-primary-600",b&&"opacity-50 cursor-not-allowed"),z=x("bnhtn-toggle-thumb","inline-flex items-center justify-center rounded-full bg-white shadow-sm transition-transform duration-200",S.thumb,p&&S.translate,c&&p&&"!-translate-x-0",c&&!p&&`-${S.translate}`),B=x("bnhtn-toggle-container","inline-flex items-start gap-2",R?"items-start":"items-center",o==="leading"&&!c&&"flex-row-reverse",c&&"flex-row-reverse",m),P=x("bnhtn-toggle-label-wrapper","flex flex-col flex-1 min-w-0",c&&"text-right"),$=x("bnhtn-toggle-label","text-[15px] leading-6 font-medium text-neutral-900 dark:text-neutral-100",c&&"font-sans-rtl",b&&"opacity-50"),W=x("bnhtn-toggle-support-text","text-[13px] leading-5 font-normal text-neutral-600 dark:text-neutral-400",d&&!b&&"text-danger-600 dark:text-danger-400",c&&"font-sans-rtl",b&&"opacity-50");return e.jsxs("label",{className:B,children:[e.jsxs("div",{className:"relative",children:[e.jsx("input",{ref:f,type:"checkbox",role:"switch","aria-checked":p,checked:p,disabled:b,onChange:v,className:"bnhtn-toggle-input sr-only peer",...y}),e.jsx("div",{className:k,children:e.jsxs("div",{className:z,children:[u&&p&&e.jsx("div",{className:x("flex items-center justify-center",S.icon),children:u}),a&&!p&&e.jsx("div",{className:x("flex items-center justify-center",S.icon),children:a}),!u&&!a&&i&&p&&e.jsx("svg",{className:x("text-primary-500 dark:text-primary-500",S.icon),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:3,children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 13l4 4L19 7"})})]})}),e.jsx("div",{className:x("bnhtn-toggle-focus-ring","absolute inset-0 rounded-full pointer-events-none opacity-0","peer-focus-visible:opacity-100","ring-4 ring-primary-200 dark:ring-primary-800","transition-opacity duration-150")})]}),(s||n)&&e.jsxs("div",{className:P,dir:c?"rtl":void 0,children:[e.jsx("span",{className:$,children:w}),R&&e.jsx("span",{className:W,children:A})]})]})});nt.displayName="Toggle";const at=M.createContext(void 0),Ae=()=>{const t=M.useContext(at);if(!t)throw new Error("Tab components must be used within a Tabs component");return t},st=({defaultValue:t,value:s,onChange:n,variant:r="line",size:l="md",fullWidth:o=!1,children:i,className:u,...a})=>{const[c,d]=M.useState(t||""),b=s!==void 0?s:c,p=h=>{s===void 0&&d(h),n==null||n(h)};return e.jsx(at.Provider,{value:{activeTab:b,setActiveTab:p,variant:r,size:l,fullWidth:o},children:e.jsx("div",{className:x("bnhtn-tabs",u),...a,children:i})})},ot=({children:t,className:s,...n})=>{const{variant:r,fullWidth:l}=Ae(),o=x("bnhtn-tabs-list","flex items-center",l?"w-full":"w-max",r==="line"&&"border-b border-neutral-200 dark:border-neutral-700",r==="contained"&&"bg-neutral-100 dark:bg-neutral-800 p-1 rounded-lg",r==="pills"&&"gap-2",s);return e.jsx("div",{className:o,role:"tablist",...n,children:t})},lt=({value:t,children:s,disabled:n=!1,icon:r,badge:l,className:o,onClick:i,...u})=>{const{activeTab:a,setActiveTab:c,variant:d,size:b,fullWidth:p}=Ae(),h=a===t,g=w=>{n||(c(t),i==null||i(w))},y={sm:{padding:"px-3 py-2",text:"text-sm",gap:"gap-1.5"},md:{padding:"px-4 py-2.5",text:"text-[15px]",gap:"gap-2"},lg:{padding:"px-5 py-3",text:"text-base",gap:"gap-2"}}[b],f=x("bnhtn-tab","relative inline-flex items-center justify-center font-medium transition-all duration-200","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-500 focus-visible:ring-offset-2",y.padding,y.text,y.gap,p&&"flex-1",n&&"opacity-50 cursor-not-allowed",!n&&"cursor-pointer",d==="line"&&["border-b-2 -mb-[2px]",!h&&"border-transparent text-neutral-600 dark:text-neutral-400",!h&&!n&&"hover:text-neutral-900 dark:hover:text-neutral-200",h&&"border-primary-600 text-primary-600 dark:text-primary-400"],d==="contained"&&["rounded-md",!h&&"text-neutral-600 dark:text-neutral-400",!h&&!n&&"hover:text-neutral-900 dark:hover:text-neutral-200",h&&"bg-white dark:bg-neutral-700 text-primary-600 dark:text-primary-400 shadow-sm"],d==="pills"&&["rounded-full",!h&&"text-neutral-600 dark:text-neutral-400",!h&&!n&&"hover:bg-neutral-100 dark:hover:bg-neutral-800 hover:text-neutral-900 dark:hover:text-neutral-200",h&&"bg-primary-100 dark:bg-primary-900/30 text-primary-700 dark:text-primary-300"],o);return e.jsxs("button",{type:"button",role:"tab","aria-selected":h,"aria-disabled":n,disabled:n,className:f,onClick:g,...u,children:[r&&e.jsx("span",{className:"bnhtn-tab-icon flex items-center",children:r}),e.jsx("span",{className:"bnhtn-tab-label",children:s}),l!==void 0&&e.jsx("span",{className:x("bnhtn-tab-badge","inline-flex items-center justify-center min-w-[20px] h-5 px-1.5 rounded-full text-xs font-medium",h?"bg-primary-600 dark:bg-primary-500 text-white":"bg-neutral-200 dark:bg-neutral-700 text-neutral-700 dark:text-neutral-300"),children:l})]})},it=({value:t,children:s,className:n,...r})=>{const{activeTab:l}=Ae();return l===t?e.jsx("div",{role:"tabpanel",className:x("bnhtn-tabs-content","py-4",n),...r,children:s}):null};st.displayName="Tabs";ot.displayName="TabsList";lt.displayName="Tab";it.displayName="TabsContent";const ct=M.forwardRef(({label:t,rtlLabel:s,hintText:n,rtlHintText:r,error:l,rtlError:o,success:i,rtlSuccess:u,leadingIcon:a,trailingIcon:c,prefix:d,suffix:b,actionButton:p,onActionClick:h,shortcut:g,rtl:m=!1,optional:y=!1,required:f=!1,clearable:w=!1,onClear:A,inputSize:R="md",fullWidth:G=!1,containerClassName:S,disabled:v=!1,className:k,...z},B)=>{const P=m&&s?s:t,$=m&&r?r:n,W=m&&o?o:l,F=m&&u?u:i,T=!!l||!!o,L=!!i||!!u,j={sm:{input:"h-9 text-sm",padding:a||d?"pl-9":"pl-3",paddingRight:c||b||g||w?"pr-9":"pr-3",icon:"w-4 h-4",iconPosition:"left-3",iconPositionRight:"right-3"},md:{input:"h-10 text-[15px]",padding:a||d?"pl-10":"pl-3.5",paddingRight:c||b||g||w||p?"pr-10":"pr-3.5",icon:"w-5 h-5",iconPosition:"left-3",iconPositionRight:"right-3"},lg:{input:"h-11 text-base",padding:a||d?"pl-11":"pl-4",paddingRight:c||b||g||w?"pr-11":"pr-4",icon:"w-5 h-5",iconPosition:"left-3.5",iconPositionRight:"right-3.5"}}[R],Q=x("bnhtn-input-container","flex flex-col gap-1.5",G?"w-full":"w-auto",m&&"items-end",S),Y=x("bnhtn-input-label","text-sm font-medium text-neutral-700 dark:text-neutral-300",m&&"font-sans-rtl",v&&"opacity-50"),oe=x("bnhtn-input-wrapper","relative flex items-center",G&&"w-full"),Z=x("bnhtn-input","w-full rounded-lg border-2 transition-all duration-150","bg-white dark:bg-neutral-900","text-neutral-900 dark:text-white","placeholder:text-neutral-400 dark:placeholder:text-neutral-500",j.input,!m&&j.padding,!m&&j.paddingRight,m&&(c||b||g||w||p?j.padding:j.paddingRight),m&&(a||d?j.paddingRight:j.padding),!T&&!L&&!v&&"border-neutral-300 dark:border-neutral-700",!T&&!L&&!v&&"focus:border-primary-500 focus:outline-none focus:ring-4 focus:ring-primary-500/20",T&&!v&&"border-danger-500 focus:outline-none focus:ring-4 focus:ring-danger-500/20",L&&!v&&"border-success-500 focus:border-success-500 focus:outline-none focus:ring-4 focus:ring-success-500/20",v&&"opacity-50 cursor-not-allowed bg-neutral-50 dark:bg-neutral-800",m&&"text-right font-sans-rtl",p&&!m&&"pr-20",p&&m&&"pl-20",k),D=x("bnhtn-input-leading","absolute flex items-center",m?j.iconPositionRight:j.iconPosition,"text-neutral-500 dark:text-neutral-400",v&&"opacity-50"),U=x("bnhtn-input-trailing","absolute flex items-center gap-2",m?j.iconPosition:j.iconPositionRight,"text-neutral-500 dark:text-neutral-400",v&&"opacity-50"),le=x("bnhtn-input-action-button","absolute",m?"left-1":"right-1","top-1/2 -translate-y-1/2","px-3 py-1.5 rounded-md","text-sm font-medium","bg-neutral-100 hover:bg-neutral-200 dark:bg-neutral-800 dark:hover:bg-neutral-700","text-neutral-700 dark:text-neutral-300","transition-colors duration-150",v&&"opacity-50 cursor-not-allowed"),he=x("bnhtn-input-message","text-xs",m&&"font-sans-rtl text-right",T&&"text-danger-600 dark:text-danger-400",L&&"text-success-600 dark:text-success-400",!T&&!L&&"text-neutral-600 dark:text-neutral-400",v&&"opacity-50");return e.jsxs("div",{className:Q,children:[P&&e.jsxs("label",{className:Y,dir:m?"rtl":void 0,children:[P,f&&e.jsx("span",{className:"text-danger-500 ml-1",children:"*"}),y&&e.jsx("span",{className:"text-neutral-500 text-xs font-normal ml-1",children:"(Optional)"})]}),e.jsxs("div",{className:oe,children:[(a||d)&&e.jsxs("div",{className:D,children:[a&&e.jsx("span",{className:j.icon,children:a}),d&&e.jsx("span",{className:"text-sm",children:d})]}),e.jsx("input",{ref:B,disabled:v,required:f,dir:m?"rtl":void 0,className:Z,...z}),(c||b||g||w)&&e.jsxs("div",{className:U,children:[w&&z.value&&!v&&e.jsx("button",{type:"button",onClick:A,className:"bnhtn-input-clear hover:text-neutral-700 dark:hover:text-neutral-300",children:e.jsx(_.X,{className:"w-4 h-4"})}),b&&e.jsx("span",{className:"text-sm",children:b}),g&&e.jsx("span",{className:"bnhtn-input-shortcut px-1.5 py-0.5 rounded text-xs bg-neutral-100 dark:bg-neutral-800 text-neutral-600 dark:text-neutral-400",children:g}),c&&e.jsx("span",{className:j.icon,children:c})]}),p&&e.jsx("button",{type:"button",onClick:h,disabled:v,className:le,children:p})]}),($||W||F)&&e.jsx("div",{className:he,dir:m?"rtl":void 0,children:W||F||$})]})});ct.displayName="Input";const dt=M.forwardRef(({label:t,rtlLabel:s,hintText:n,rtlHintText:r,error:l,rtlError:o,value:i=0,onChange:u,min:a,max:c,step:d=1,rtl:b=!1,showSpinner:p=!0,fullWidth:h=!1,containerClassName:g,disabled:m=!1,className:y,...f},w)=>{const A=b&&s?s:t,R=b&&r?r:n,G=b&&o?o:l,S=!!l||!!o,v=()=>{if(m)return;const L=i+d;c!==void 0&&L>c||u==null||u(L)},k=()=>{if(m)return;const L=i-d;a!==void 0&&L<a||u==null||u(L)},z=L=>{const E=parseFloat(L.target.value)||0;a!==void 0&&E<a||c!==void 0&&E>c||u==null||u(E)},B=x("bnhtn-number-input-container","flex flex-col gap-1.5",h?"w-full":"w-auto",b&&"items-end",g),P=x("bnhtn-number-input-label","text-sm font-medium text-neutral-700 dark:text-neutral-300",b&&"font-sans-rtl",m&&"opacity-50"),$=x("bnhtn-number-input-wrapper","relative flex items-center",h&&"w-full"),W=x("bnhtn-number-input","w-full h-10 rounded-lg border-2 transition-all duration-150 text-center","bg-white dark:bg-neutral-900","text-neutral-900 dark:text-white text-[15px]",p&&!b&&"pr-10 pl-10",p&&b&&"pl-10 pr-10",!p&&"px-3.5",!S&&!m&&"border-neutral-300 dark:border-neutral-700",!S&&!m&&"focus:border-primary-500 focus:outline-none focus:ring-4 focus:ring-primary-500/20",S&&!m&&"border-danger-500 focus:outline-none focus:ring-4 focus:ring-danger-500/20",m&&"opacity-50 cursor-not-allowed bg-neutral-50 dark:bg-neutral-800",b&&"font-sans-rtl",y),F=x("bnhtn-number-input-button","absolute top-1/2 -translate-y-1/2","w-8 h-8 flex items-center justify-center","text-neutral-600 dark:text-neutral-400","hover:text-neutral-900 dark:hover:text-white","transition-colors duration-150",m&&"opacity-50 cursor-not-allowed"),T=x("bnhtn-number-input-message","text-xs",b&&"font-sans-rtl text-right",S&&"text-danger-600 dark:text-danger-400",!S&&"text-neutral-600 dark:text-neutral-400",m&&"opacity-50");return e.jsxs("div",{className:B,children:[A&&e.jsx("label",{className:P,dir:b?"rtl":void 0,children:A}),e.jsxs("div",{className:$,children:[p&&e.jsx("button",{type:"button",onClick:k,disabled:m||a!==void 0&&i<=a,className:x(F,b?"right-1":"left-1"),children:e.jsx(_.Minus,{className:"w-4 h-4"})}),e.jsx("input",{ref:w,type:"number",value:i,onChange:z,min:a,max:c,step:d,disabled:m,dir:b?"rtl":void 0,className:W,...f}),p&&e.jsx("button",{type:"button",onClick:v,disabled:m||c!==void 0&&i>=c,className:x(F,b?"left-1":"right-1"),children:e.jsx(_.Plus,{className:"w-4 h-4"})})]}),(R||G)&&e.jsx("div",{className:T,dir:b?"rtl":void 0,children:G||R})]})});dt.displayName="NumberInput";const ut=M.forwardRef(({label:t,supportText:s,rtlLabel:n,rtlSupportText:r,selected:l=!1,disabled:o=!1,type:i="default",icon:u,customIcon:a,rtl:c=!1,onChange:d,className:b,...p},h)=>{const g=c&&n?n:t,m=c&&r?r:s,y=!!u||!!a,f=!!s||!!r,w=()=>{!o&&d&&d(!l)},A=T=>{!o&&(T.key===" "||T.key==="Enter")&&(T.preventDefault(),d==null||d(!l))},R=x("relative flex items-start gap-4 p-4 w-full max-w-[338px]","bg-white border rounded-xl transition-all duration-150","shadow-[0px_1px_2px_0px_rgba(15,17,20,0.05)]","after:absolute after:inset-0 after:rounded-xl after:pointer-events-none","after:shadow-[inset_0px_-1px_0px_0px_rgba(0,0,0,0.08)]",!o&&!l&&"border-neutral-200",!o&&l&&"border-primary-500 border-2",!o&&"hover:bg-neutral-50 cursor-pointer",o&&"border-neutral-200 bg-neutral-50 cursor-not-allowed",c&&"flex-row-reverse",b),G=x("relative w-5 h-5 rounded border flex items-center justify-center transition-all duration-150 shrink-0 mt-0.5","bg-white shadow-[0px_1px_2px_0px_rgba(15,17,20,0.05)]",!l&&!o&&"border-neutral-300",l&&!o&&"bg-primary-500 border-primary-500",o&&"bg-neutral-100 border-neutral-200","after:absolute after:inset-0 after:rounded after:pointer-events-none","after:shadow-[inset_0px_-1px_0px_0px_rgba(0,0,0,0.08)]"),S=x("flex flex-1 min-w-0",i==="icon-left"&&y||i==="default"&&y?"gap-3":"",c&&"flex-row-reverse"),v=x("flex flex-col gap-0.5 flex-1 min-w-0",c&&"items-end text-right"),k=x("text-[15px] leading-6 font-medium text-neutral-900",c&&"font-sans-rtl",o&&"text-neutral-400"),z=x("text-[14px] leading-5 font-normal text-neutral-600",c&&"font-sans-rtl",o&&"text-neutral-400"),B=x("shrink-0",o&&"opacity-60"),P=()=>e.jsx("div",{className:G,children:l&&e.jsx("svg",{className:"w-3 h-3 text-white",fill:"none",viewBox:"0 0 12 12",stroke:"currentColor",strokeWidth:"2.5",children:e.jsx("path",{d:"M2.5 6.5L4.5 8.5L9.5 3.5",strokeLinecap:"round",strokeLinejoin:"round"})})}),$=()=>a?e.jsx("div",{className:B,children:a}):u?e.jsx("div",{className:B,children:e.jsx(u,{className:"w-6 h-6 text-neutral-600"})}):null,W=()=>i==="label-only"&&!f?e.jsxs("div",{className:x("flex items-center flex-1 gap-3",c&&"flex-row-reverse"),children:[P(),e.jsx("span",{className:k,dir:c?"rtl":void 0,children:g})]}):i==="icon-left"?e.jsxs(e.Fragment,{children:[P(),e.jsx("div",{className:S,children:e.jsxs("div",{className:v,dir:c?"rtl":void 0,children:[e.jsx("span",{className:k,children:g}),f&&e.jsx("span",{className:z,children:m})]})})]}):i==="icon-right"?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:S,children:e.jsxs("div",{className:v,dir:c?"rtl":void 0,children:[e.jsx("span",{className:k,children:g}),f&&e.jsx("span",{className:z,children:m})]})}),P()]}):e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:S,children:[$(),e.jsxs("div",{className:v,dir:c?"rtl":void 0,children:[e.jsx("span",{className:k,children:g}),f&&e.jsx("span",{className:z,children:m})]})]}),P()]}),F=o?"div":"button";return e.jsx(F,{ref:h,className:R,onClick:o?void 0:w,onKeyDown:o?void 0:A,disabled:o,role:o?void 0:"checkbox","aria-checked":o?void 0:l,"aria-disabled":o,tabIndex:o?void 0:0,...p,children:W()})});ut.displayName="CheckmarkCard";const xt=M.forwardRef(({label:t,checked:s=!1,onChange:n,onCheckedChange:r,size:l="md",rtl:o=!1,disabled:i=!1,className:u,...a},c)=>{const d=()=>{n&&n(!s),r&&r(!s)},p={sm:{track:"w-9 h-5",thumb:"w-4 h-4",translateChecked:"translate-x-4",translateUnchecked:"translate-x-0.5"},md:{track:"w-11 h-6",thumb:"w-5 h-5",translateChecked:"translate-x-5",translateUnchecked:"translate-x-0.5"},lg:{track:"w-14 h-7",thumb:"w-6 h-6",translateChecked:"translate-x-7",translateUnchecked:"translate-x-0.5"}}[l],h=x("relative inline-flex items-center shrink-0 rounded-full transition-colors duration-200 ease-in-out","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-500 focus-visible:ring-offset-2",p.track,s?"bg-primary-600 hover:bg-primary-700":"bg-neutral-200 hover:bg-neutral-300","dark:focus-visible:ring-offset-neutral-900",s?"dark:bg-primary-500 dark:hover:bg-primary-600":"dark:bg-neutral-700 dark:hover:bg-neutral-600",i&&"opacity-50 cursor-not-allowed",!i&&"cursor-pointer",o&&"rtl"),g=x("pointer-events-none inline-block rounded-full bg-white shadow-lg ring-0 transition-transform duration-200 ease-in-out",p.thumb,s?p.translateChecked:p.translateUnchecked,"dark:bg-neutral-200"),m=x("inline-flex items-center gap-3",o&&"flex-row-reverse",u),y=x("text-sm font-medium","text-neutral-900 dark:text-neutral-100",i&&"opacity-50 cursor-not-allowed",!i&&"cursor-pointer");return e.jsxs("label",{className:m,dir:o?"rtl":void 0,children:[e.jsx("input",{ref:c,type:"checkbox",role:"switch",checked:s,onChange:d,disabled:i,className:"sr-only",...a}),e.jsx("span",{className:h,dir:o?"rtl":void 0,children:e.jsx("span",{className:g})}),t&&e.jsx("span",{className:y,children:t})]})});xt.displayName="Switcher";function de(...t){return ae(ne(t))}const kr={Light:{Neutral:"bg-neutral-50 text-neutral-700 border border-neutral-100 dark:bg-neutral-800 dark:text-neutral-300 dark:border-neutral-700",Blue:"bg-blue-50 text-blue-700 border border-blue-100 dark:bg-blue-900 dark:text-blue-300 dark:border-blue-800",Green:"bg-green-50 text-green-700 border border-green-100 dark:bg-green-900 dark:text-green-300 dark:border-green-800",Amber:"bg-amber-50 text-amber-700 border border-amber-100 dark:bg-amber-900 dark:text-amber-300 dark:border-amber-800",Danger:"bg-critical-50 text-critical-700 border border-critical-100 dark:bg-critical-900 dark:text-critical-300 dark:border-critical-800",Purple:"bg-purple-50 text-purple-700 border border-purple-100 dark:bg-purple-900 dark:text-purple-300 dark:border-purple-800",Fuchsia:"bg-fuchsia-50 text-fuchsia-700 border border-fuchsia-100 dark:bg-fuchsia-900 dark:text-fuchsia-300 dark:border-fuchsia-800",Rose:"bg-rose-50 text-rose-700 border border-rose-100 dark:bg-rose-900 dark:text-rose-300 dark:border-rose-800",Sky:"bg-sky-50 text-sky-700 border border-sky-100 dark:bg-sky-900 dark:text-sky-300 dark:border-sky-800",Golden:"bg-golden-50 text-golden-700 border border-golden-100 dark:bg-golden-900 dark:text-golden-300 dark:border-golden-800"},Outline:{Neutral:"bg-white text-neutral-700 border border-neutral-300 dark:bg-neutral-900 dark:text-neutral-300 dark:border-neutral-600",Blue:"bg-white text-neutral-700 border border-blue-300 dark:bg-neutral-900 dark:text-blue-300 dark:border-blue-600",Green:"bg-white text-neutral-700 border border-green-300 dark:bg-neutral-900 dark:text-green-300 dark:border-green-600",Amber:"bg-white text-neutral-700 border border-amber-300 dark:bg-neutral-900 dark:text-amber-300 dark:border-amber-600",Danger:"bg-white text-neutral-700 border border-critical-300 dark:bg-neutral-900 dark:text-critical-300 dark:border-critical-600",Purple:"bg-white text-neutral-700 border border-purple-300 dark:bg-neutral-900 dark:text-purple-300 dark:border-purple-600",Fuchsia:"bg-white text-neutral-700 border border-fuchsia-300 dark:bg-neutral-900 dark:text-fuchsia-300 dark:border-fuchsia-600",Rose:"bg-white text-neutral-700 border border-rose-300 dark:bg-neutral-900 dark:text-rose-300 dark:border-rose-600",Sky:"bg-white text-neutral-700 border border-sky-300 dark:bg-neutral-900 dark:text-sky-300 dark:border-sky-600",Golden:"bg-white text-neutral-700 border border-golden-300 dark:bg-neutral-900 dark:text-golden-300 dark:border-golden-600"},Solid:{Neutral:"bg-neutral-600 text-white border border-transparent dark:bg-neutral-700 dark:text-white",Blue:"bg-blue-600 text-white border border-transparent dark:bg-blue-700 dark:text-white",Green:"bg-green-600 text-white border border-transparent dark:bg-green-700 dark:text-white",Amber:"bg-amber-600 text-white border border-transparent dark:bg-amber-700 dark:text-white",Danger:"bg-critical-600 text-white border border-transparent dark:bg-critical-700 dark:text-white",Purple:"bg-purple-600 text-white border border-transparent dark:bg-purple-700 dark:text-white",Fuchsia:"bg-fuchsia-600 text-white border border-transparent dark:bg-fuchsia-700 dark:text-white",Rose:"bg-rose-600 text-white border border-transparent dark:bg-rose-700 dark:text-white",Sky:"bg-sky-600 text-white border border-transparent dark:bg-sky-700 dark:text-white",Golden:"bg-golden-600 text-white border border-transparent dark:bg-golden-700 dark:text-white"}},yr={Light:{Neutral:"bg-neutral-600",Blue:"bg-blue-600",Green:"bg-green-600",Amber:"bg-amber-600",Danger:"bg-critical-600",Purple:"bg-purple-600",Fuchsia:"bg-fuchsia-600",Rose:"bg-rose-600",Sky:"bg-sky-600",Golden:"bg-golden-600"},Outline:{Neutral:"bg-neutral-600",Blue:"bg-blue-600",Green:"bg-green-600",Amber:"bg-amber-600",Danger:"bg-critical-600",Purple:"bg-purple-600",Fuchsia:"bg-fuchsia-600",Rose:"bg-rose-600",Sky:"bg-sky-600",Golden:"bg-golden-600"},Solid:{Neutral:"bg-white",Blue:"bg-white",Green:"bg-white",Amber:"bg-white",Danger:"bg-white",Purple:"bg-white",Fuchsia:"bg-white",Rose:"bg-white",Sky:"bg-white",Golden:"bg-white"}},jr={sm:"h-badge-sm px-2 py-0.5 gap-1 rounded-full",lg:"h-badge-lg px-2 py-1 gap-1.5 rounded-full"},pe={sm:"h-3 w-3",lg:"h-4 w-4"},Cr={sm:"h-2 w-2",lg:"h-2.5 w-2.5"},bt=M.forwardRef(({type:t="Default",style:s="Light",size:n="sm",color:r="Neutral",showNumber:l=!1,number:o,children:i,leadingIcon:u,trailingIcon:a,flagIcon:c,imgSrc:d,imgAlt:b="Badge image",rtl:p=!1,className:h,...g},m)=>{const y=p,f=de("inline-flex items-center justify-center","font-sans text-badge font-medium","whitespace-nowrap",jr[n],kr[s][r],y&&"font-sans-rtl flex-row-reverse",h),w=(z,B)=>typeof z=="string"?e.jsx("img",{src:z,alt:"Badge icon",className:de("rounded-full flex-shrink-0 object-cover",B)}):e.jsx("span",{className:de("flex items-center justify-center flex-shrink-0 overflow-hidden rounded-full",B),children:z}),A=()=>e.jsx("span",{className:de("rounded-full flex-shrink-0",Cr[n],yr[s][r])}),R=()=>c?w(c,pe[n]):e.jsx("span",{className:de("rounded-sm flex-shrink-0 bg-neutral-300",pe[n])}),G=()=>d?e.jsx("img",{src:d,alt:b,className:de("rounded-sm flex-shrink-0 object-cover",pe[n])}):null,v=l&&o!==void 0?(z=>z>99?"99+":z.toString())(o):i,k=()=>{switch(t){case"LeadingIcon":return e.jsxs(e.Fragment,{children:[u&&w(u,pe[n]),v&&e.jsx("span",{className:"truncate",children:v})]});case"TrailingIcon":return e.jsxs(e.Fragment,{children:[v&&e.jsx("span",{className:"truncate",children:v}),a&&w(a,pe[n])]});case"Dot":return e.jsxs(e.Fragment,{children:[A(),v&&e.jsx("span",{className:"truncate",children:v})]});case"Flag":return e.jsxs(e.Fragment,{children:[R(),v&&e.jsx("span",{className:"truncate",children:v})]});case"LeadingImg":return e.jsxs(e.Fragment,{children:[G(),v&&e.jsx("span",{className:"truncate",children:v})]});case"Default":default:return v&&e.jsx("span",{className:"truncate",children:v})}};return e.jsx("div",{ref:m,dir:y?"rtl":void 0,className:f,...g,children:k()})});bt.displayName="Badge";const Nr={Danger:{icon:_.AlertCircle,colors:{Outline:{bg:"bg-white",border:"border border-critical-200",iconColor:"text-critical-600",titleColor:"text-neutral-900",messageColor:"text-neutral-700",actionColor:"text-blue-600 hover:text-blue-700",closeColor:"text-neutral-600 hover:text-neutral-700"},Light:{bg:"bg-critical-50",border:"border-none",iconColor:"text-critical-600",titleColor:"text-critical-800",messageColor:"text-critical-700",actionColor:"text-neutral-900 hover:text-neutral-950",closeColor:"text-neutral-600 hover:text-neutral-700"},Solid:{bg:"bg-critical-600",border:"border-none",iconColor:"text-white",titleColor:"text-white",messageColor:"text-white opacity-80",actionColor:"text-white hover:text-white/90",closeColor:"text-white hover:text-white/90"}}},Success:{icon:_.CheckCircle,colors:{Outline:{bg:"bg-white",border:"border border-green-200",iconColor:"text-green-600",titleColor:"text-neutral-900",messageColor:"text-neutral-700",actionColor:"text-blue-600 hover:text-blue-700",closeColor:"text-neutral-600 hover:text-neutral-700"},Light:{bg:"bg-green-50",border:"border-none",iconColor:"text-green-600",titleColor:"text-green-800",messageColor:"text-green-700",actionColor:"text-neutral-900 hover:text-neutral-950",closeColor:"text-neutral-600 hover:text-neutral-700"},Solid:{bg:"bg-green-600",border:"border-none",iconColor:"text-white",titleColor:"text-white",messageColor:"text-white opacity-80",actionColor:"text-white hover:text-white/90",closeColor:"text-white hover:text-white/90"}}},Warning:{icon:_.AlertTriangle,colors:{Outline:{bg:"bg-white",border:"border border-amber-200",iconColor:"text-amber-600",titleColor:"text-neutral-900",messageColor:"text-neutral-700",actionColor:"text-blue-600 hover:text-blue-700",closeColor:"text-neutral-600 hover:text-neutral-700"},Light:{bg:"bg-amber-50",border:"border-none",iconColor:"text-amber-600",titleColor:"text-amber-800",messageColor:"text-amber-700",actionColor:"text-neutral-900 hover:text-neutral-950",closeColor:"text-neutral-600 hover:text-neutral-700"},Solid:{bg:"bg-amber-500",border:"border-none",iconColor:"text-white",titleColor:"text-white",messageColor:"text-white opacity-80",actionColor:"text-white hover:text-white/90",closeColor:"text-white hover:text-white/90"}}},Info:{icon:_.Info,colors:{Outline:{bg:"bg-white",border:"border border-blue-200",iconColor:"text-blue-600",titleColor:"text-neutral-900",messageColor:"text-neutral-700",actionColor:"text-blue-600 hover:text-blue-700",closeColor:"text-neutral-600 hover:text-neutral-700"},Light:{bg:"bg-blue-50",border:"border-none",iconColor:"text-blue-600",titleColor:"text-blue-800",messageColor:"text-blue-700",actionColor:"text-neutral-900 hover:text-neutral-950",closeColor:"text-neutral-600 hover:text-neutral-700"},Solid:{bg:"bg-blue-600",border:"border-none",iconColor:"text-white",titleColor:"text-white",messageColor:"text-white opacity-80",actionColor:"text-white hover:text-white/90",closeColor:"text-white hover:text-white/90"}}},Neutral:{icon:_.Circle,colors:{Outline:{bg:"bg-white",border:"border border-neutral-300",iconColor:"text-neutral-600",titleColor:"text-neutral-900",messageColor:"text-neutral-700",actionColor:"text-blue-600 hover:text-blue-700",closeColor:"text-neutral-600 hover:text-neutral-700"},Light:{bg:"bg-neutral-100",border:"border-none",iconColor:"text-neutral-600",titleColor:"text-neutral-800",messageColor:"text-neutral-700",actionColor:"text-neutral-900 hover:text-neutral-950",closeColor:"text-neutral-600 hover:text-neutral-700"},Solid:{bg:"bg-neutral-600",border:"border-none",iconColor:"text-white",titleColor:"text-white",messageColor:"text-white opacity-80",actionColor:"text-white hover:text-white/90",closeColor:"text-white hover:text-white/90"}}}},pt=M.forwardRef(({style:t="Outline",status:s="Info",title:n="Alert title",message:r,showActions:l=!1,primaryAction:o="Action",secondaryAction:i="Action",onPrimaryAction:u,onSecondaryAction:a,closable:c=!0,onClose:d,rtl:b=!1,rtlTitle:p,rtlMessage:h,rtlPrimaryAction:g="زر الرابط",rtlSecondaryAction:m="زر الرابط",className:y,...f},w)=>{const A=Nr[s],R=A.colors[t],G=A.icon,S=b,v=!!r,k=S&&p?p:n,z=S&&h?h:r,B=S?g:o,P=S?m:i,$=x("flex items-start gap-2 px-4 py-3 rounded-control transition-all",R.bg,R.border,S&&"font-sans-rtl"),W=x("w-5 h-5 shrink-0",R.iconColor),F=x("text-[15px] font-medium leading-[24px]",R.titleColor,S?"text-right":"text-left"),T=x("text-[14px] font-normal leading-[20px]",R.messageColor,S?"text-right":"text-left"),L=x("text-[15px] font-medium leading-[24px] underline cursor-pointer transition-colors",R.actionColor),E=x("w-5 h-5 shrink-0 cursor-pointer transition-colors",R.closeColor);return e.jsxs("div",{ref:w,className:x($,y),dir:S?"rtl":void 0,...f,children:[e.jsxs("div",{className:"flex-1 flex items-start gap-2",children:[e.jsx(G,{className:W}),e.jsxs("div",{className:"flex-1 flex flex-col gap-1",children:[e.jsx("div",{className:F,dir:S?"rtl":void 0,children:k}),v&&z&&e.jsx("div",{className:T,dir:S?"rtl":void 0,children:z}),l&&v&&e.jsxs("div",{className:x("flex gap-4 mt-2",S&&"flex-row-reverse"),children:[u&&e.jsx("button",{type:"button",onClick:u,className:L,children:B}),a&&e.jsx("button",{type:"button",onClick:a,className:L,children:P})]})]})]}),l&&!v&&u&&e.jsx("button",{type:"button",onClick:u,className:x(L,"shrink-0 whitespace-nowrap"),children:B}),c&&d&&e.jsx("button",{type:"button",onClick:d,className:E,"aria-label":"Close",children:e.jsx(_.X,{className:"w-4 h-4"})})]})});pt.displayName="Alert";const Sr={"2xs":{container:"w-4 h-4",text:"text-[8px]",icon:"w-2 h-2",statusSize:"w-1 h-1",statusPosition:"bottom-0 right-0"},xs:{container:"w-5 h-5",text:"text-[9px]",icon:"w-2.5 h-2.5",statusSize:"w-1.5 h-1.5",statusPosition:"bottom-0 right-0"},sm:{container:"w-6 h-6",text:"text-[10px]",icon:"w-3 h-3",statusSize:"w-1.5 h-1.5",statusPosition:"bottom-0 right-0"},md:{container:"w-8 h-8",text:"text-xs",icon:"w-4 h-4",statusSize:"w-2 h-2",statusPosition:"bottom-0 right-0"},lg:{container:"w-9 h-9",text:"text-sm",icon:"w-4 h-4",statusSize:"w-2 h-2",statusPosition:"bottom-0 right-0"},xl:{container:"w-10 h-10",text:"text-sm",icon:"w-5 h-5",statusSize:"w-2.5 h-2.5",statusPosition:"bottom-0 right-0"},"2xl":{container:"w-12 h-12",text:"text-base",icon:"w-6 h-6",statusSize:"w-3 h-3",statusPosition:"bottom-0 right-0"},"3xl":{container:"w-14 h-14",text:"text-lg",icon:"w-7 h-7",statusSize:"w-3 h-3",statusPosition:"bottom-0 right-0"},"4xl":{container:"w-16 h-16",text:"text-xl",icon:"w-8 h-8",statusSize:"w-4 h-4",statusPosition:"bottom-0 right-0"}},Rr={online:"bg-green-500",offline:"bg-neutral-400",away:"bg-amber-500",busy:"bg-critical-500",blocked:"bg-neutral-900 dark:bg-neutral-100",none:"hidden"},ye=M.forwardRef(({size:t="md",src:s,alt:n="Avatar",initials:r,showIcon:l=!1,status:o="none",shape:i="circle",rtl:u=!1,showBorder:a=!1,className:c,...d},b)=>{const p=Sr[t],h=!!s,g=!!r&&!h,m=l&&!h&&!g,y=x("relative inline-flex items-center justify-center","bg-neutral-200 dark:bg-neutral-700",p.container,i==="circle"?"rounded-full":"rounded-lg",a&&"border-2 border-white dark:border-neutral-900",u&&"font-sans-rtl",c),f=x("w-full h-full overflow-hidden",i==="circle"?"rounded-full":"rounded-lg"),w=x("absolute rounded-full border-2 border-white dark:border-neutral-900",p.statusSize,p.statusPosition,Rr[o],u&&"left-0 right-auto");return e.jsxs("div",{ref:b,className:y,dir:u?"rtl":void 0,...d,children:[h&&e.jsx("div",{className:f,children:e.jsx("img",{src:s,alt:n,className:"w-full h-full object-cover",onError:A=>{A.currentTarget.style.display="none"}})}),g&&e.jsx("span",{className:x("font-semibold text-neutral-700 dark:text-neutral-200",p.text),children:r}),m&&e.jsx(_.User,{className:x("text-neutral-500 dark:text-neutral-400",p.icon)}),o!=="none"&&e.jsx("div",{className:w})]})});ye.displayName="Avatar";const Ar={"2xs":{container:"w-4 h-4",icon:"w-2 h-2"},xs:{container:"w-5 h-5",icon:"w-2.5 h-2.5"},sm:{container:"w-6 h-6",icon:"w-3 h-3"},md:{container:"w-8 h-8",icon:"w-4 h-4"},lg:{container:"w-9 h-9",icon:"w-4 h-4"},xl:{container:"w-10 h-10",icon:"w-5 h-5"},"2xl":{container:"w-12 h-12",icon:"w-6 h-6"},"3xl":{container:"w-14 h-14",icon:"w-7 h-7"},"4xl":{container:"w-16 h-16",icon:"w-8 h-8"}},ht=M.forwardRef(({size:t="md",shape:s="circle",rtl:n=!1,className:r,...l},o)=>{const i=Ar[t],u=x("inline-flex items-center justify-center cursor-pointer","border-2 border-dashed border-neutral-300 dark:border-neutral-600","bg-neutral-50 dark:bg-neutral-800","hover:border-neutral-400 dark:hover:border-neutral-500","hover:bg-neutral-100 dark:hover:bg-neutral-700","transition-colors duration-200",i.container,s==="circle"?"rounded-full":"rounded-lg",n&&"font-sans-rtl",r),a=x("text-neutral-500 dark:text-neutral-400",i.icon);return e.jsx("button",{ref:o,type:"button",className:u,dir:n?"rtl":void 0,...l,children:e.jsx(_.Plus,{className:a})})});ht.displayName="AvatarCallToAction";const zr={"2xs":"-ml-1",xs:"-ml-1.5",sm:"-ml-2",md:"-ml-2.5",lg:"-ml-3",xl:"-ml-3","2xl":"-ml-4","3xl":"-ml-4","4xl":"-ml-5"},_r={"2xs":"text-[8px]",xs:"text-[9px]",sm:"text-[10px]",md:"text-xs",lg:"text-sm",xl:"text-sm","2xl":"text-base","3xl":"text-lg","4xl":"text-xl"},mt=M.forwardRef(({size:t="md",shape:s="circle",max:n=5,avatars:r,rtl:l=!1,className:o,...i},u)=>{const a=r.slice(0,n),c=Math.max(0,r.length-n),d=zr[t],b=_r[t],p=x("inline-flex items-center",l?"flex-row-reverse":"flex-row",o);return e.jsxs("div",{ref:u,className:p,dir:l?"rtl":void 0,...i,children:[a.map((h,g)=>e.jsx("div",{className:x("relative",g>0&&!l&&d,g>0&&l&&d.replace("-ml-","-mr-")),style:{zIndex:a.length-g},children:e.jsx(ye,{size:t,shape:s,src:h.src,alt:h.alt,initials:h.initials,showIcon:h.showIcon,showBorder:!0,rtl:l})},g)),c>0&&e.jsxs("div",{className:x("relative inline-flex items-center justify-center","bg-neutral-200 dark:bg-neutral-700","text-neutral-700 dark:text-neutral-200 font-semibold",!l&&d,l&&d.replace("-ml-","-mr-"),s==="circle"?"rounded-full":"rounded-lg","border-2 border-white dark:border-neutral-900",b,t==="2xs"&&"w-4 h-4",t==="xs"&&"w-5 h-5",t==="sm"&&"w-6 h-6",t==="md"&&"w-8 h-8",t==="lg"&&"w-9 h-9",t==="xl"&&"w-10 h-10",t==="2xl"&&"w-12 h-12",t==="3xl"&&"w-14 h-14",t==="4xl"&&"w-16 h-16"),style:{zIndex:0},children:["+",c]})]})});mt.displayName="AvatarGroup";const gt=M.forwardRef(({size:t="md",shape:s="circle",src:n,alt:r,initials:l,showIcon:o,status:i="none",name:u,description:a,rtl:c=!1,className:d,...b},p)=>{const h=x("inline-flex items-center gap-3",c?"flex-row-reverse":"flex-row",c&&"font-sans-rtl",d),g=x("flex flex-col",c?"items-end":"items-start"),m=x("font-semibold text-neutral-900 dark:text-white",t==="2xs"&&"text-xs",t==="xs"&&"text-sm",t==="sm"&&"text-sm",t==="md"&&"text-base",t==="lg"&&"text-base",t==="xl"&&"text-lg",t==="2xl"&&"text-lg",t==="3xl"&&"text-xl",t==="4xl"&&"text-2xl",c&&"text-right"),y=x("text-neutral-600 dark:text-neutral-400",t==="2xs"&&"text-[10px]",t==="xs"&&"text-xs",t==="sm"&&"text-xs",t==="md"&&"text-sm",t==="lg"&&"text-sm",t==="xl"&&"text-base",t==="2xl"&&"text-base",t==="3xl"&&"text-lg",t==="4xl"&&"text-xl",c&&"text-right");return e.jsxs("div",{ref:p,className:h,dir:c?"rtl":void 0,...b,children:[e.jsx(ye,{size:t,shape:s,src:n,alt:r,initials:l,showIcon:o,status:i,rtl:c}),e.jsxs("div",{className:g,children:[e.jsx("span",{className:m,children:u}),a&&e.jsx("span",{className:y,children:a})]})]})});gt.displayName="AvatarProfile";const ft=M.forwardRef(({direction:t="horizontal",type:s="solid",color:n,spacing:r="none",className:l,...o},i)=>{const u={none:"",xs:t==="horizontal"?"my-1":"mx-1",sm:t==="horizontal"?"my-2":"mx-2",md:t==="horizontal"?"my-4":"mx-4",lg:t==="horizontal"?"my-6":"mx-6",xl:t==="horizontal"?"my-8":"mx-8"};return t==="horizontal"?e.jsx("hr",{ref:i,className:x("w-full border-0",s==="solid"?"border-t border-solid":"border-t border-dashed",n?`border-[${n}]`:"border-neutral-200",u[r],l),...o}):e.jsx("div",{ref:i,className:x("h-full",s==="solid"?"border-l border-solid":"border-l border-dashed",n?`border-[${n}]`:"border-neutral-200",u[r],l),...o})});ft.displayName="Divider";function K(...t){return ae(ne(t))}const Ir={default:"bg-primary-600",green:"bg-green-600",golden:"bg-yellow-600",amber:"bg-amber-600",red:"bg-critical-600",purple:"bg-purple-600",sky:"bg-sky-600",neutral:"bg-neutral-600"},Lr={sm:"h-1",lg:"h-2"},vt=M.forwardRef(({value:t=0,size:s="lg",color:n="default",label:r,labelType:l="none",helperText:o,helperDanger:i=!1,showInlineIndicator:u=!1,indicatorType:a="none",customIcon:c,rtl:d=!1,rtlLabel:b,rtlHelperText:p,className:h,...g},m)=>{const y=Math.min(Math.max(t,0),100),f=d&&b?b:r,w=d&&p?p:o,R=a==="loading"?e.jsx(_.Loader2,{className:"w-4 h-4 animate-spin"}):a==="completed"?e.jsx(_.CheckCircle,{className:"w-4 h-4"}):a==="error"?e.jsx(_.AlertCircle,{className:"w-4 h-4"}):a==="custom"&&c?c:null,G=i?"text-critical-600":"text-neutral-600";return e.jsxs("div",{ref:m,className:K("w-full",d&&"font-sans-rtl",h),dir:d?"rtl":void 0,...g,children:[l==="top"&&f&&e.jsxs("div",{className:"flex items-center justify-between mb-2",children:[e.jsx("span",{className:K("text-[15px] font-medium leading-6 text-neutral-900",d&&"text-right"),children:f}),e.jsxs("span",{className:K("text-[15px] font-medium leading-6 text-neutral-600",d&&"text-left"),children:[y,"%"]})]}),e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:K("w-full bg-neutral-200 rounded-full overflow-hidden",Lr[s]),children:e.jsx("div",{className:K("h-full rounded-full transition-all duration-300 ease-out",Ir[n]),style:{width:`${y}%`,transformOrigin:d?"right":"left"},role:"progressbar","aria-valuenow":y,"aria-valuemin":0,"aria-valuemax":100})}),u&&R&&e.jsxs("div",{className:K("absolute top-1/2 -translate-y-1/2 flex items-center gap-1","text-[13px] font-medium leading-4",d?"right-0":"left-0"),style:{[d?"right":"left"]:`calc(${y}% - ${d?0:20}px)`},children:[e.jsx("span",{className:K("text-neutral-900",a==="loading"&&"text-primary-600",a==="completed"&&"text-green-600",a==="error"&&"text-critical-600"),children:R}),e.jsxs("span",{className:"text-neutral-900 tabular-nums",children:[y,"%"]})]})]}),l==="bottom"&&f&&e.jsxs("div",{className:"flex items-center justify-between mt-1",children:[e.jsx("span",{className:K("text-[13px] font-normal leading-5 text-neutral-600",d&&"text-right"),children:f}),e.jsxs("span",{className:K("text-[13px] font-medium leading-5 text-neutral-900 tabular-nums",d&&"text-left"),children:[y,"%"]})]}),o&&!u&&e.jsxs("div",{className:"flex items-center gap-1 mt-1",children:[R&&e.jsx("span",{className:K(a==="loading"&&"text-primary-600",a==="completed"&&"text-green-600",a==="error"&&"text-critical-600",a==="custom"&&"text-neutral-600"),children:R}),e.jsx("span",{className:K("text-[13px] font-normal leading-4",G,d&&"text-right"),children:w})]})]})});vt.displayName="ProgressBar";function H(...t){return ae(ne(t))}const re={sm:"h-8 min-w-[32px] px-2 text-sm",md:"h-10 min-w-[40px] px-3 text-base",lg:"h-12 min-w-[48px] px-4 text-lg"},Gr={sm:16,md:20,lg:24};function Mr(t,s,n){const l=n*2+3+2;if(s<=l)return Array.from({length:s},(c,d)=>d+1);const o=Math.max(t-n,1),i=Math.min(t+n,s),u=o>2,a=i<s-1;if(!u&&a){const c=3+2*n;return[...Array.from({length:c},(b,p)=>p+1),"ellipsis",s]}if(u&&!a){const c=3+2*n;return[1,"ellipsis",...Array.from({length:c},(b,p)=>s-c+p+1)]}return u&&a?[1,"ellipsis",...Array.from({length:i-o+1},(d,b)=>o+b),"ellipsis",s]:Array.from({length:s},(c,d)=>d+1)}const wt=M.forwardRef(({currentPage:t,totalPages:s,onPageChange:n,size:r="md",variant:l="default",showFirstLast:o=!1,showPrevNext:i=!0,siblingCount:u=1,rtl:a=!1,disabled:c=!1,className:d,...b},p)=>{const h=w=>{c||w<1||w>s||w===t||n==null||n(w)},g=Mr(t,s,u),m=Gr[r],y=t>1&&!c,f=t<s&&!c;return l==="simple"?e.jsxs("div",{ref:p,className:H("flex items-center justify-between gap-4",a&&"flex-row-reverse",d),dir:a?"rtl":void 0,...b,children:[e.jsxs("button",{type:"button",onClick:()=>h(t-1),disabled:!y,className:H("inline-flex items-center gap-2 font-medium transition-colors","text-neutral-700 hover:text-neutral-900","dark:text-neutral-300 dark:hover:text-neutral-100","disabled:opacity-50 disabled:cursor-not-allowed",re[r]),children:[e.jsx(_.ChevronLeft,{size:m}),e.jsx("span",{children:"Previous"})]}),e.jsxs("span",{className:"text-sm text-neutral-600 dark:text-neutral-400 tabular-nums",children:["Page ",t," of ",s]}),e.jsxs("button",{type:"button",onClick:()=>h(t+1),disabled:!f,className:H("inline-flex items-center gap-2 font-medium transition-colors","text-neutral-700 hover:text-neutral-900","dark:text-neutral-300 dark:hover:text-neutral-100","disabled:opacity-50 disabled:cursor-not-allowed",re[r]),children:[e.jsx("span",{children:"Next"}),e.jsx(_.ChevronRight,{size:m})]})]}):e.jsxs("nav",{ref:p,className:H("flex items-center gap-1",a&&"flex-row-reverse",d),dir:a?"rtl":void 0,"aria-label":"Pagination",...b,children:[o&&e.jsx("button",{type:"button",onClick:()=>h(1),disabled:t===1||c,"aria-label":"Go to first page",className:H("inline-flex items-center justify-center","rounded-control font-medium transition-all","bg-white text-neutral-700 border border-neutral-300","hover:bg-neutral-50 hover:border-neutral-400","active:bg-neutral-100","focus:outline-none focus-visible:ring-2 focus-visible:ring-primary-500 focus-visible:ring-offset-2","disabled:opacity-50 disabled:cursor-not-allowed disabled:hover:bg-white disabled:hover:border-neutral-300","dark:bg-neutral-800 dark:text-neutral-300 dark:border-neutral-700","dark:hover:bg-neutral-700 dark:hover:border-neutral-600","dark:active:bg-neutral-600","dark:disabled:hover:bg-neutral-800 dark:disabled:hover:border-neutral-700",re[r]),children:e.jsx(_.ChevronsLeft,{size:m})}),i&&e.jsx("button",{type:"button",onClick:()=>h(t-1),disabled:!y,"aria-label":"Go to previous page",className:H("inline-flex items-center justify-center","rounded-control font-medium transition-all","bg-white text-neutral-700 border border-neutral-300","hover:bg-neutral-50 hover:border-neutral-400","active:bg-neutral-100","focus:outline-none focus-visible:ring-2 focus-visible:ring-primary-500 focus-visible:ring-offset-2","disabled:opacity-50 disabled:cursor-not-allowed disabled:hover:bg-white disabled:hover:border-neutral-300","dark:bg-neutral-800 dark:text-neutral-300 dark:border-neutral-700","dark:hover:bg-neutral-700 dark:hover:border-neutral-600","dark:active:bg-neutral-600","dark:disabled:hover:bg-neutral-800 dark:disabled:hover:border-neutral-700",re[r]),children:e.jsx(_.ChevronLeft,{size:m})}),g.map((w,A)=>{if(w==="ellipsis")return e.jsx("span",{className:H("inline-flex items-center justify-center","text-neutral-500 dark:text-neutral-400",re[r]),"aria-hidden":"true",children:e.jsx(_.MoreHorizontal,{size:m})},`ellipsis-${A}`);const R=w===t;return e.jsx("button",{type:"button",onClick:()=>h(w),disabled:c,"aria-label":`Go to page ${w}`,"aria-current":R?"page":void 0,className:H("inline-flex items-center justify-center","rounded-control font-medium transition-all tabular-nums",re[r],R?H("bg-primary-600 text-white border border-primary-600","hover:bg-primary-700 hover:border-primary-700","dark:bg-primary-500 dark:border-primary-500","dark:hover:bg-primary-600 dark:hover:border-primary-600"):H("bg-white text-neutral-700 border border-neutral-300","hover:bg-neutral-50 hover:border-neutral-400","active:bg-neutral-100","dark:bg-neutral-800 dark:text-neutral-300 dark:border-neutral-700","dark:hover:bg-neutral-700 dark:hover:border-neutral-600","dark:active:bg-neutral-600"),"focus:outline-none focus-visible:ring-2 focus-visible:ring-primary-500 focus-visible:ring-offset-2","disabled:opacity-50 disabled:cursor-not-allowed disabled:hover:bg-white disabled:hover:border-neutral-300","dark:disabled:hover:bg-neutral-800 dark:disabled:hover:border-neutral-700"),children:w},w)}),i&&e.jsx("button",{type:"button",onClick:()=>h(t+1),disabled:!f,"aria-label":"Go to next page",className:H("inline-flex items-center justify-center","rounded-control font-medium transition-all","bg-white text-neutral-700 border border-neutral-300","hover:bg-neutral-50 hover:border-neutral-400","active:bg-neutral-100","focus:outline-none focus-visible:ring-2 focus-visible:ring-primary-500 focus-visible:ring-offset-2","disabled:opacity-50 disabled:cursor-not-allowed disabled:hover:bg-white disabled:hover:border-neutral-300","dark:bg-neutral-800 dark:text-neutral-300 dark:border-neutral-700","dark:hover:bg-neutral-700 dark:hover:border-neutral-600","dark:active:bg-neutral-600","dark:disabled:hover:bg-neutral-800 dark:disabled:hover:border-neutral-700",re[r]),children:e.jsx(_.ChevronRight,{size:m})}),o&&e.jsx("button",{type:"button",onClick:()=>h(s),disabled:t===s||c,"aria-label":"Go to last page",className:H("inline-flex items-center justify-center","rounded-control font-medium transition-all","bg-white text-neutral-700 border border-neutral-300","hover:bg-neutral-50 hover:border-neutral-400","active:bg-neutral-100","focus:outline-none focus-visible:ring-2 focus-visible:ring-primary-500 focus-visible:ring-offset-2","disabled:opacity-50 disabled:cursor-not-allowed disabled:hover:bg-white disabled:hover:border-neutral-300","dark:bg-neutral-800 dark:text-neutral-300 dark:border-neutral-700","dark:hover:bg-neutral-700 dark:hover:border-neutral-600","dark:active:bg-neutral-600","dark:disabled:hover:bg-neutral-800 dark:disabled:hover:border-neutral-700",re[r]),children:e.jsx(_.ChevronsRight,{size:m})})]})});wt.displayName="Pagination";const kt=M.forwardRef(({children:t,rtl:s=!1,className:n},r)=>{const l=x("bnhtn-menu","flex flex-col","bg-white dark:bg-neutral-900","border border-neutral-200 dark:border-neutral-800","rounded-lg","overflow-hidden",s&&"font-sans-rtl",n);return e.jsx("div",{ref:r,className:l,children:t})});kt.displayName="Menu";const yt=M.forwardRef(({label:t,rtlLabel:s,supportingText:n,rtlSupportingText:r,leadingIcon:l,avatar:o,avatarSize:i="md",badge:u,toggle:a,trailingIcon:c="none",trailingText:d,rtlTrailingText:b,showAddButton:p=!1,rtl:h=!1,disabled:g=!1,onClick:m,className:y},f)=>{const w=h&&s?s:t,A=h&&r?r:n,R=h&&b?b:d,G={sm:"w-8 h-8",md:"w-10 h-10",lg:"w-12 h-12"},S=x("bnhtn-menu-item","flex items-center gap-3","px-4 py-2.5","min-h-[48px]","rounded-lg","transition-all duration-150","bg-white dark:bg-neutral-900",!g&&"hover:bg-neutral-100 dark:hover:bg-neutral-800",!g&&m&&"cursor-pointer",g&&"opacity-40 cursor-not-allowed pointer-events-none",h&&"flex-row-reverse",y),v=x("bnhtn-menu-item-leading","flex items-center gap-3","shrink-0",h&&"flex-row-reverse"),k=x("bnhtn-menu-item-content","flex flex-col gap-0.5","flex-1 min-w-0",h&&"items-end text-right"),z=x("bnhtn-menu-item-label","text-[15px] font-medium leading-6","text-neutral-900 dark:text-white",h&&"font-sans-rtl"),B=x("bnhtn-menu-item-supporting","text-sm leading-5","text-neutral-600 dark:text-neutral-400",h&&"font-sans-rtl"),P=x("bnhtn-menu-item-trailing","flex items-center gap-2","shrink-0",h&&"flex-row-reverse"),$=x("bnhtn-menu-item-trailing-text","text-sm leading-5","text-neutral-500 dark:text-neutral-400",h&&"font-sans-rtl"),W=x("bnhtn-menu-item-icon-button","w-5 h-5","text-neutral-500 dark:text-neutral-400",!g&&"hover:text-neutral-700 dark:hover:text-neutral-300","transition-colors duration-150"),F=()=>{if(c==="none")return null;if(c==="chevron"){const L=h?_.ChevronLeft:_.ChevronRight;return e.jsx(L,{className:"w-5 h-5 text-neutral-400"})}return c},T=()=>o?typeof o=="string"?e.jsx("img",{src:o,alt:"",className:x("bnhtn-menu-item-avatar-img","rounded-full object-cover shrink-0",G[i])}):o:null;return e.jsxs("div",{ref:f,className:S,onClick:g?void 0:m,role:m?"button":void 0,tabIndex:m&&!g?0:void 0,children:[e.jsxs("div",{className:v,children:[l&&e.jsx("div",{className:"bnhtn-menu-item-leading-icon shrink-0",children:l}),T()]}),e.jsxs("div",{className:k,children:[e.jsx("span",{className:z,children:w}),A&&e.jsx("span",{className:B,children:A})]}),e.jsxs("div",{className:P,children:[R&&e.jsx("span",{className:$,children:R}),u&&e.jsx("div",{className:"bnhtn-menu-item-badge shrink-0",children:u}),a&&e.jsx("div",{className:"bnhtn-menu-item-toggle shrink-0",children:a}),F(),p&&e.jsx("button",{className:W,onClick:L=>{L.stopPropagation()},disabled:g,children:e.jsx(_.Plus,{className:"w-5 h-5"})})]})]})});yt.displayName="MenuItem";function X(...t){return ae(ne(t))}const jt=M.forwardRef(({label:t="Enter question title",description:s="Ants are fascinating insects known for their complex social structures and teamwork. They communicate through pheromones and work together to build intricate nests. Ants play crucial roles in ecosystems, from soil aeration to seed dispersal.",icon:n=!0,iconLeft:r,badge:l=!0,badgeText:o="Badge",action:i=!0,actionText:u="Button",onActionClick:a,style:c="Default",state:d="Default",rtl:b=!1,expandable:p=!1,expanded:h,onToggle:g,rtlLabel:m,rtlDescription:y,className:f,...w},A)=>{const[R,G]=M.useState(!1),S=h!==void 0?h:R,v=b,k=()=>{if(p){const Y=!S;h===void 0&&G(Y),g==null||g(Y)}},z=v&&m?m:t,B=v&&y?y:s,P=X("flex items-start gap-3 p-5","transition-all duration-150 ease-in-out",p&&d!=="NoHover"&&"cursor-pointer",d==="NoHover"&&"cursor-default","w-full",v&&"font-sans-rtl",c==="Default"?X("border-b border-neutral-200 dark:border-neutral-700",d==="Hover"&&"bg-neutral-50 dark:bg-neutral-800",d==="Default"&&p&&"hover:bg-neutral-50 dark:hover:bg-neutral-800"):X("border border-neutral-200 dark:border-neutral-700 rounded-xl","shadow-component-default",d==="Hover"&&"bg-neutral-50 dark:bg-neutral-800",d==="Default"&&p&&"hover:bg-neutral-50 dark:hover:bg-neutral-800","relative"),f),$=X("flex flex-col justify-center","font-semibold text-[17px] leading-[28px]","text-neutral-900",v?"text-right":"text-left"),W=X("text-[15px] leading-[24px]","text-neutral-600",v?"text-right":"text-left"),F=X("flex items-center justify-center","h-7 px-3 py-0","bg-neutral-50 rounded-full","text-[12px] leading-[16px] font-medium","text-neutral-900 whitespace-nowrap"),T=r||(n?e.jsx(_.Info,{className:"h-6 w-6 text-neutral-600 flex-shrink-0"}):null),L=S?_.ChevronUp:_.ChevronDown,E=X("h-6 w-6 text-neutral-500 flex-shrink-0"),j=p?"button":"div",Q=p?{ref:A,type:"button",onClick:k,...w}:{...w};return e.jsxs(j,{...Q,dir:v?"rtl":void 0,className:P,children:[T&&!v&&e.jsx("div",{className:"flex-shrink-0",children:T}),p&&v&&e.jsx("div",{className:"flex-shrink-0",children:e.jsx(L,{className:E})}),e.jsxs("div",{className:X("flex flex-col gap-1.5 flex-1 min-w-0",v?"items-end":"items-start"),children:[e.jsx("div",{className:X("flex gap-1.5 items-start w-full",v?"flex-row-reverse":"flex-row"),children:v?e.jsxs(e.Fragment,{children:[l&&e.jsx("div",{className:X(F,"font-sans-rtl"),dir:"rtl",children:o}),e.jsx("div",{className:X($,"flex-1"),dir:"rtl",children:e.jsx("p",{children:z})})]}):e.jsxs(e.Fragment,{children:[e.jsx("div",{className:X($,"flex-1"),children:e.jsx("p",{children:z})}),l&&e.jsx("div",{className:F,children:o})]})}),S&&B&&e.jsx("div",{className:"w-full",dir:v?"rtl":void 0,children:e.jsx("p",{className:W,children:B})}),S&&i&&e.jsx("div",{className:"pt-4 w-full flex",style:{justifyContent:v?"flex-end":"flex-start"},children:e.jsxs("button",{type:"button",onClick:Y=>{Y.stopPropagation(),a==null||a()},className:X("relative flex items-center justify-center gap-1","h-10 px-2.5 py-2","bg-neutral-50 border border-neutral-300 rounded-control","shadow-component-default","text-[15px] leading-[24px] font-medium text-neutral-900","hover:bg-neutral-100 transition-colors","cursor-pointer"),dir:v?"rtl":void 0,children:[e.jsx(_.Plus,{className:"h-5 w-5 flex-shrink-0"}),e.jsx("span",{className:"px-1 whitespace-nowrap",children:v?"انقر هنا":u}),e.jsx(_.Plus,{className:"h-5 w-5 flex-shrink-0"}),e.jsx("div",{className:"absolute inset-0 pointer-events-none rounded-control shadow-[inset_0px_-1px_0px_0px_rgba(0,0,0,0.08)]"})]})})]}),p&&!v&&e.jsx("div",{className:"flex-shrink-0",children:e.jsx(L,{className:E})}),T&&v&&e.jsx("div",{className:"flex-shrink-0",children:T}),c==="Boxed"&&e.jsx("div",{className:"absolute inset-0 pointer-events-none rounded-xl shadow-[inset_0px_-1px_0px_0px_rgba(0,0,0,0.08)]"})]})});jt.displayName="Accordion";const Tr={sm:{text:"text-xs",icon:"w-3 h-3",separator:"w-3 h-3",gap:"gap-1"},md:{text:"text-sm",icon:"w-4 h-4",separator:"w-4 h-4",gap:"gap-1.5"},lg:{text:"text-base",icon:"w-5 h-5",separator:"w-5 h-5",gap:"gap-2"}},Ct=M.forwardRef(({items:t,size:s="md",variant:n="default",separator:r="chevron",showHomeIcon:l=!1,maxItems:o,bordered:i=!1,rtl:u=!1,className:a,...c},d)=>{const b=Tr[s],p=o&&t.length>o;let h=t;if(p){const f=t[0],w=t.slice(-(o-1));h=[f,{label:"...",isCurrent:!1},...w]}const g=()=>{const f=x("text-neutral-400 dark:text-neutral-600",b.separator);switch(r){case"slash":return e.jsx("span",{className:x("text-neutral-400 dark:text-neutral-600",b.text),children:"/"});case"dot":return e.jsx("span",{className:x("text-neutral-400 dark:text-neutral-600",b.text),children:"•"});case"chevron":default:const w=u?_.ChevronLeft:_.ChevronRight;return e.jsx(w,{className:f})}},m=(f,w)=>{const A=w===h.length-1,R=w===0,G=f.label==="...",S=x("inline-flex items-center",b.gap,b.text,"font-medium transition-colors",n==="boxed"&&["px-3 py-1.5 rounded-md",f.isCurrent||A?"bg-primary-600 text-white dark:bg-primary-500 cursor-default":"bg-neutral-100 dark:bg-neutral-800 text-neutral-700 dark:text-neutral-300 hover:bg-neutral-200 dark:hover:bg-neutral-700 cursor-pointer"],n==="default"&&[f.isCurrent||A?"text-neutral-900 dark:text-white cursor-default":"text-neutral-600 dark:text-neutral-400 hover:text-neutral-900 dark:hover:text-white cursor-pointer"],G&&"cursor-default"),v=e.jsxs(e.Fragment,{children:[R&&l&&e.jsx(_.Home,{className:b.icon}),f.icon&&!l&&e.jsx("span",{className:x("inline-flex",b.icon),children:f.icon}),e.jsx("span",{children:f.label})]});return G?e.jsx("span",{className:S,children:v},w):f.href&&!f.isCurrent&&!A?e.jsx("a",{href:f.href,className:S,onClick:k=>{f.onClick&&(k.preventDefault(),f.onClick())},children:v},w):f.onClick&&!f.isCurrent&&!A?e.jsx("button",{type:"button",onClick:f.onClick,className:S,children:v},w):e.jsx("span",{className:S,children:v},w)},y=x("inline-flex items-center flex-wrap",b.gap,u&&"font-sans-rtl",i&&"border border-neutral-200 dark:border-neutral-700 rounded-lg px-4 py-2",a);return e.jsx("nav",{ref:d,"aria-label":"Breadcrumb",className:y,dir:u?"rtl":void 0,...c,children:e.jsx("ol",{className:x("inline-flex items-center flex-wrap",b.gap),children:h.map((f,w)=>e.jsxs("li",{className:x("inline-flex items-center",b.gap),children:[u&&w>0&&e.jsx("span",{className:"inline-flex items-center",children:g()}),m(f,w),!u&&w<h.length-1&&e.jsx("span",{className:"inline-flex items-center",children:g()})]},w))})})});Ct.displayName="Breadcrumbs";function Te(...t){return ae(ne(t))}const Fr=({code:t,language:s="tsx",className:n})=>{const[r,l]=M.useState(!1),o=async()=>{try{await navigator.clipboard.writeText(t),l(!0),setTimeout(()=>l(!1),2e3)}catch(u){console.error("Failed to copy:",u)}},i=u=>{let a=u;return a=a.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),a=a.replace(/(&quot;[^&]*&quot;|'[^']*'|"[^"]*")/g,'<span class="token string">$1</span>'),a=a.replace(/(`[^`]*`)/g,'<span class="token template">$1</span>'),a=a.replace(/(\/\/.*$)/gm,'<span class="token comment">$1</span>'),a=a.replace(/(\/\*[\s\S]*?\*\/)/g,'<span class="token comment">$1</span>'),["import","export","from","const","let","var","function","return","if","else","for","while","class","extends","new","this","true","false","null","undefined","typeof","instanceof","async","await"].forEach(d=>{const b=new RegExp(`\\b(${d})\\b`,"g");a=a.replace(b,'<span class="token keyword">$1</span>')}),a=a.replace(/(&lt;\/?)([\w]+)/g,'$1<span class="token tag">$2</span>'),a=a.replace(/\s([\w-]+)=/g,' <span class="token attr">$1</span>='),a=a.replace(/\b(\d+)\b/g,'<span class="token number">$1</span>'),a=a.replace(/(\{|\})/g,'<span class="token punctuation">$1</span>'),a};return e.jsxs("div",{className:Te("rounded-lg overflow-hidden border border-neutral-800",n),children:[e.jsxs("div",{className:"flex items-center justify-between px-4 py-3 bg-docs-code-bg border-b border-neutral-700",children:[e.jsx("span",{className:"text-xs font-medium text-neutral-400 uppercase tracking-wider",children:s}),e.jsx("button",{className:Te("inline-flex items-center gap-1.5 px-2.5 py-1","text-xs font-medium rounded","bg-neutral-800 border border-neutral-700","text-neutral-400 hover:text-white","hover:bg-neutral-700 hover:border-neutral-600","transition-colors duration-150","focus:outline-none focus-visible:ring-2 focus-visible:ring-primary-500"),onClick:o,"aria-label":"Copy code",children:r?e.jsxs(e.Fragment,{children:[e.jsx(_.Check,{className:"h-3.5 w-3.5"}),e.jsx("span",{children:"Copied!"})]}):e.jsxs(e.Fragment,{children:[e.jsx(_.Copy,{className:"h-3.5 w-3.5"}),e.jsx("span",{children:"Copy"})]})})]}),e.jsx("pre",{className:"m-0 p-4 bg-docs-code-bg overflow-x-auto",children:e.jsx("code",{className:"font-mono text-[13px] leading-relaxed text-docs-code-text",dangerouslySetInnerHTML:{__html:i(t)}})})]})};exports.Accordion=jt;exports.Alert=pt;exports.Avatar=ye;exports.AvatarCallToAction=ht;exports.AvatarGroup=mt;exports.AvatarProfile=gt;exports.Badge=bt;exports.Breadcrumbs=Ct;exports.Button=Ye;exports.ButtonGroup=Je;exports.Checkbox=Qe;exports.CheckboxCard=Ze;exports.CheckmarkCard=ut;exports.CodeBlock=Fr;exports.Divider=ft;exports.Input=ct;exports.Menu=kt;exports.MenuItem=yt;exports.NumberInput=dt;exports.Pagination=wt;exports.ProgressBar=vt;exports.Radio=et;exports.RadioCard=tt;exports.Slider=rt;exports.SocialButton=Ke;exports.Switcher=xt;exports.Tab=lt;exports.Tabs=st;exports.TabsContent=it;exports.TabsList=ot;exports.Toggle=nt;exports.cn=x;
2
2
  //# sourceMappingURL=index.cjs.map