banhaten-ui 0.0.11 → 0.0.12

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 ADDED
@@ -0,0 +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;
2
+ //# sourceMappingURL=index.cjs.map