import{l as R}from"./Cj1rHpJu.js";const _=o=>{var s,b,f,m,p,g,k,y,C,$,w,S,x,v,j,z,I,O,D;const l=R();if(o==null||o==null)return"";const a=[];o.theme&&(o={fontColor:(m=(f=(b=(s=l.public.club)==null?void 0:s.theme)==null?void 0:b[o.theme])==null?void 0:f.color)==null?void 0:m.color,fontShade:(y=(k=(g=(p=l.public.club)==null?void 0:p.theme)==null?void 0:g[o.theme])==null?void 0:k.color)==null?void 0:y.shade,backgroundColor:(S=(w=($=(C=l.public.club)==null?void 0:C.theme)==null?void 0:$[o.theme])==null?void 0:w.backgroundColor)==null?void 0:S.color,backgroundShade:(z=(j=(v=(x=l.public.club)==null?void 0:x.theme)==null?void 0:v[o.theme])==null?void 0:j.backgroundColor)==null?void 0:z.shade,...o});for(const[r,e]of Object.entries(o))r==="background"&&(o.backgroundColor=(I=o[r].color)==null?void 0:I.value,o.backgroundShade=(O=o[r].color)==null?void 0:O.shade);for(const[r,e]of Object.entries(o)){const u=r;if(h[u]){if(r==="color"&&e.value&&e.shade)a.push(`text-${e.value}-${e.shade}`);else if(!r.includes("Shade"))if(r.includes("Color")){const n=r.replace("Color",""),F=o[`${n}Shade`],t=(D=h[u])==null?void 0:D[e],i=n==="font"?"text":n==="background"?"bg":n;if(t==="white"||t==="black"){a.push(`${i}-${t}`);continue}if(!F){a.push(`${i}-${t}-500`);continue}a.push(`${i}-${t}-${F}`)}else r!=="backgroundImage"?a.push(h[u][e]):a.push(`bg-[url('${e}')`)}}return a.join(" ")},d={primary:"primary",secondary:"secondary",tertiary:"tertiary",light:"white",dark:"black",black:"black",white:"white",away:"away"},c={100:"100",200:"200",300:"300",400:"400",500:"500",600:"600",700:"700",800:"800",900:"900",950:"950"},h={backgroundImage:"",border:{thin:"border",medium:"border-2",thick:"border-4"},color:{value:d,shade:c},fontColor:d,fontShade:c,fontCasing:{uppercase:"uppercase",capitalize:"capitalize"},fontDecoration:{default:"",underline:"underline"},backgroundColor:d,backgroundShade:c,borderColor:d,borderShade:c,fontWeight:{light:"font-light",normal:"font-normal",bold:"font-bold"},borderRadius:{small:"rounded-sm",medium:"rounded-lg",large:"rounded-2xl"},fontFamily:{primary:"font-primary",secondary:"font-secondary",tertiary:"font-tertiary"},dropShadow:{flat:"",shallow:"shadow-md",deep:"shadow-xl"}};export{_};