ddingdong-design-system 0.3.1 → 0.3.2

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.
@@ -1,2 +1,2 @@
1
- (function(d,a){typeof exports=="object"&&typeof module<"u"?a(exports,require("react/jsx-runtime"),require("react"),require("framer-motion"),require("react-dom"),require("@radix-ui/react-switch")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","framer-motion","react-dom","@radix-ui/react-switch"],a):(d=typeof globalThis<"u"?globalThis:d||self,a(d["ddingdong-design-system"]={},d.jsxRuntime,d.React,d.framerMotion,d.ReactDOM,d.SwitchPrimitives))})(this,(function(d,a,h,M,_e,De){"use strict";function de(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const c=de(h),ue=de(De);function ge(e){var r,t,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(r=0;r<n;r++)e[r]&&(t=ge(e[r]))&&(o&&(o+=" "),o+=t)}else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function pe(){for(var e,r,t=0,o="",n=arguments.length;t<n;t++)(e=arguments[t])&&(r=ge(e))&&(o&&(o+=" "),o+=r);return o}const Y="-",$e=e=>{const r=Ue(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:l=>{const i=l.split(Y);return i[0]===""&&i.length!==1&&i.shift(),he(i,r)||Ze(l)},getConflictingClassGroupIds:(l,i)=>{const g=t[l]||[];return i&&o[l]?[...g,...o[l]]:g}}},he=(e,r)=>{var l;if(e.length===0)return r.classGroupId;const t=e[0],o=r.nextPart.get(t),n=o?he(e.slice(1),o):void 0;if(n)return n;if(r.validators.length===0)return;const s=e.join(Y);return(l=r.validators.find(({validator:i})=>i(s)))==null?void 0:l.classGroupId},fe=/^\[(.+)\]$/,Ze=e=>{if(fe.test(e)){const r=fe.exec(e)[1],t=r==null?void 0:r.substring(0,r.indexOf(":"));if(t)return"arbitrary.."+t}},Ue=e=>{const{theme:r,prefix:t}=e,o={nextPart:new Map,validators:[]};return Je(Object.entries(e.classGroups),t).forEach(([s,l])=>{Q(l,o,s,r)}),o},Q=(e,r,t,o)=>{e.forEach(n=>{if(typeof n=="string"){const s=n===""?r:me(r,n);s.classGroupId=t;return}if(typeof n=="function"){if(qe(n)){Q(n(o),r,t,o);return}r.validators.push({validator:n,classGroupId:t});return}Object.entries(n).forEach(([s,l])=>{Q(l,me(r,s),t,o)})})},me=(e,r)=>{let t=e;return r.split(Y).forEach(o=>{t.nextPart.has(o)||t.nextPart.set(o,{nextPart:new Map,validators:[]}),t=t.nextPart.get(o)}),t},qe=e=>e.isThemeGetter,Je=(e,r)=>r?e.map(([t,o])=>{const n=o.map(s=>typeof s=="string"?r+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([l,i])=>[r+l,i])):s);return[t,n]}):e,Ke=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,t=new Map,o=new Map;const n=(s,l)=>{t.set(s,l),r++,r>e&&(r=0,o=t,t=new Map)};return{get(s){let l=t.get(s);if(l!==void 0)return l;if((l=o.get(s))!==void 0)return n(s,l),l},set(s,l){t.has(s)?t.set(s,l):n(s,l)}}},be="!",Xe=e=>{const{separator:r,experimentalParseClassName:t}=e,o=r.length===1,n=r[0],s=r.length,l=i=>{const g=[];let u=0,m=0,b;for(let f=0;f<i.length;f++){let x=i[f];if(u===0){if(x===n&&(o||i.slice(f,f+s)===r)){g.push(i.slice(m,f)),m=f+s;continue}if(x==="/"){b=f;continue}}x==="["?u++:x==="]"&&u--}const C=g.length===0?i:i.substring(m),S=C.startsWith(be),N=S?C.substring(1):C,k=b&&b>m?b-m:void 0;return{modifiers:g,hasImportantModifier:S,baseClassName:N,maybePostfixModifierPosition:k}};return t?i=>t({className:i,parseClassName:l}):l},Ye=e=>{if(e.length<=1)return e;const r=[];let t=[];return e.forEach(o=>{o[0]==="["?(r.push(...t.sort(),o),t=[]):t.push(o)}),r.push(...t.sort()),r},Qe=e=>({cache:Ke(e.cacheSize),parseClassName:Xe(e),...$e(e)}),Re=/\s+/,et=(e,r)=>{const{parseClassName:t,getClassGroupId:o,getConflictingClassGroupIds:n}=r,s=[],l=e.trim().split(Re);let i="";for(let g=l.length-1;g>=0;g-=1){const u=l[g],{modifiers:m,hasImportantModifier:b,baseClassName:C,maybePostfixModifierPosition:S}=t(u);let N=!!S,k=o(N?C.substring(0,S):C);if(!k){if(!N){i=u+(i.length>0?" "+i:i);continue}if(k=o(C),!k){i=u+(i.length>0?" "+i:i);continue}N=!1}const f=Ye(m).join(":"),x=b?f+be:f,L=x+k;if(s.includes(L))continue;s.push(L);const H=n(k,N);for(let j=0;j<H.length;++j){const J=H[j];s.push(x+J)}i=u+(i.length>0?" "+i:i)}return i};function tt(){let e=0,r,t,o="";for(;e<arguments.length;)(r=arguments[e++])&&(t=we(r))&&(o&&(o+=" "),o+=t);return o}const we=e=>{if(typeof e=="string")return e;let r,t="";for(let o=0;o<e.length;o++)e[o]&&(r=we(e[o]))&&(t&&(t+=" "),t+=r);return t};function rt(e,...r){let t,o,n,s=l;function l(g){const u=r.reduce((m,b)=>b(m),e());return t=Qe(u),o=t.cache.get,n=t.cache.set,s=i,i(g)}function i(g){const u=o(g);if(u)return u;const m=et(g,t);return n(g,m),m}return function(){return s(tt.apply(null,arguments))}}const w=e=>{const r=t=>t[e]||[];return r.isThemeGetter=!0,r},ye=/^\[(?:([a-z-]+):)?(.+)\]$/i,ot=/^\d+\/\d+$/,nt=new Set(["px","full","screen"]),st=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,at=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,it=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,lt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ct=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,I=e=>O(e)||nt.has(e)||ot.test(e),A=e=>P(e,"length",bt),O=e=>!!e&&!Number.isNaN(Number(e)),R=e=>P(e,"number",O),G=e=>!!e&&Number.isInteger(Number(e)),dt=e=>e.endsWith("%")&&O(e.slice(0,-1)),p=e=>ye.test(e),T=e=>st.test(e),ut=new Set(["length","size","percentage"]),gt=e=>P(e,ut,ve),pt=e=>P(e,"position",ve),ht=new Set(["image","url"]),ft=e=>P(e,ht,yt),mt=e=>P(e,"",wt),F=()=>!0,P=(e,r,t)=>{const o=ye.exec(e);return o?o[1]?typeof r=="string"?o[1]===r:r.has(o[1]):t(o[2]):!1},bt=e=>at.test(e)&&!it.test(e),ve=()=>!1,wt=e=>lt.test(e),yt=e=>ct.test(e),vt=rt(()=>{const e=w("colors"),r=w("spacing"),t=w("blur"),o=w("brightness"),n=w("borderColor"),s=w("borderRadius"),l=w("borderSpacing"),i=w("borderWidth"),g=w("contrast"),u=w("grayscale"),m=w("hueRotate"),b=w("invert"),C=w("gap"),S=w("gradientColorStops"),N=w("gradientColorStopPositions"),k=w("inset"),f=w("margin"),x=w("opacity"),L=w("padding"),H=w("saturate"),j=w("scale"),J=w("sepia"),Oe=w("skew"),Pe=w("space"),Ve=w("translate"),ae=()=>["auto","contain","none"],ie=()=>["auto","hidden","clip","visible","scroll"],le=()=>["auto",p,r],v=()=>[p,r],We=()=>["",I,A],K=()=>["auto",O,p],Ge=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],X=()=>["solid","dashed","dotted","double","none"],Fe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ce=()=>["start","end","center","between","around","evenly","stretch"],_=()=>["","0",p],He=()=>["auto","avoid","all","avoid-page","page","left","right","column"],z=()=>[O,p];return{cacheSize:500,separator:":",theme:{colors:[F],spacing:[I,A],blur:["none","",T,p],brightness:z(),borderColor:[e],borderRadius:["none","","full",T,p],borderSpacing:v(),borderWidth:We(),contrast:z(),grayscale:_(),hueRotate:z(),invert:_(),gap:v(),gradientColorStops:[e],gradientColorStopPositions:[dt,A],inset:le(),margin:le(),opacity:z(),padding:v(),saturate:z(),scale:z(),sepia:_(),skew:z(),space:v(),translate:v()},classGroups:{aspect:[{aspect:["auto","square","video",p]}],container:["container"],columns:[{columns:[T]}],"break-after":[{"break-after":He()}],"break-before":[{"break-before":He()}],"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"],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:[...Ge(),p]}],overflow:[{overflow:ie()}],"overflow-x":[{"overflow-x":ie()}],"overflow-y":[{"overflow-y":ie()}],overscroll:[{overscroll:ae()}],"overscroll-x":[{"overscroll-x":ae()}],"overscroll-y":[{"overscroll-y":ae()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[k]}],"inset-x":[{"inset-x":[k]}],"inset-y":[{"inset-y":[k]}],start:[{start:[k]}],end:[{end:[k]}],top:[{top:[k]}],right:[{right:[k]}],bottom:[{bottom:[k]}],left:[{left:[k]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",G,p]}],basis:[{basis:le()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",p]}],grow:[{grow:_()}],shrink:[{shrink:_()}],order:[{order:["first","last","none",G,p]}],"grid-cols":[{"grid-cols":[F]}],"col-start-end":[{col:["auto",{span:["full",G,p]},p]}],"col-start":[{"col-start":K()}],"col-end":[{"col-end":K()}],"grid-rows":[{"grid-rows":[F]}],"row-start-end":[{row:["auto",{span:[G,p]},p]}],"row-start":[{"row-start":K()}],"row-end":[{"row-end":K()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",p]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",p]}],gap:[{gap:[C]}],"gap-x":[{"gap-x":[C]}],"gap-y":[{"gap-y":[C]}],"justify-content":[{justify:["normal",...ce()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ce(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ce(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[L]}],px:[{px:[L]}],py:[{py:[L]}],ps:[{ps:[L]}],pe:[{pe:[L]}],pt:[{pt:[L]}],pr:[{pr:[L]}],pb:[{pb:[L]}],pl:[{pl:[L]}],m:[{m:[f]}],mx:[{mx:[f]}],my:[{my:[f]}],ms:[{ms:[f]}],me:[{me:[f]}],mt:[{mt:[f]}],mr:[{mr:[f]}],mb:[{mb:[f]}],ml:[{ml:[f]}],"space-x":[{"space-x":[Pe]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[Pe]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",p,r]}],"min-w":[{"min-w":[p,r,"min","max","fit"]}],"max-w":[{"max-w":[p,r,"none","full","min","max","fit","prose",{screen:[T]},T]}],h:[{h:[p,r,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[p,r,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[p,r,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[p,r,"auto","min","max","fit"]}],"font-size":[{text:["base",T,A]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",R]}],"font-family":[{font:[F]}],"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:["tighter","tight","normal","wide","wider","widest",p]}],"line-clamp":[{"line-clamp":["none",O,R]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",I,p]}],"list-image":[{"list-image":["none",p]}],"list-style-type":[{list:["none","disc","decimal",p]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[x]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[x]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...X(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",I,A]}],"underline-offset":[{"underline-offset":["auto",I,p]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:v()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",p]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",p]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[x]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Ge(),pt]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",gt]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},ft]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[N]}],"gradient-via-pos":[{via:[N]}],"gradient-to-pos":[{to:[N]}],"gradient-from":[{from:[S]}],"gradient-via":[{via:[S]}],"gradient-to":[{to:[S]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[x]}],"border-style":[{border:[...X(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[x]}],"divide-style":[{divide:X()}],"border-color":[{border:[n]}],"border-color-x":[{"border-x":[n]}],"border-color-y":[{"border-y":[n]}],"border-color-s":[{"border-s":[n]}],"border-color-e":[{"border-e":[n]}],"border-color-t":[{"border-t":[n]}],"border-color-r":[{"border-r":[n]}],"border-color-b":[{"border-b":[n]}],"border-color-l":[{"border-l":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:["",...X()]}],"outline-offset":[{"outline-offset":[I,p]}],"outline-w":[{outline:[I,A]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:We()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[x]}],"ring-offset-w":[{"ring-offset":[I,A]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",T,mt]}],"shadow-color":[{shadow:[F]}],opacity:[{opacity:[x]}],"mix-blend":[{"mix-blend":[...Fe(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Fe()}],filter:[{filter:["","none"]}],blur:[{blur:[t]}],brightness:[{brightness:[o]}],contrast:[{contrast:[g]}],"drop-shadow":[{"drop-shadow":["","none",T,p]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[m]}],invert:[{invert:[b]}],saturate:[{saturate:[H]}],sepia:[{sepia:[J]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[t]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[g]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[m]}],"backdrop-invert":[{"backdrop-invert":[b]}],"backdrop-opacity":[{"backdrop-opacity":[x]}],"backdrop-saturate":[{"backdrop-saturate":[H]}],"backdrop-sepia":[{"backdrop-sepia":[J]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",p]}],duration:[{duration:z()}],ease:[{ease:["linear","in","out","in-out",p]}],delay:[{delay:z()}],animate:[{animate:["none","spin","ping","pulse","bounce",p]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[j]}],"scale-x":[{"scale-x":[j]}],"scale-y":[{"scale-y":[j]}],rotate:[{rotate:[G,p]}],"translate-x":[{"translate-x":[Ve]}],"translate-y":[{"translate-y":[Ve]}],"skew-x":[{"skew-x":[Oe]}],"skew-y":[{"skew-y":[Oe]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",p]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],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]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":v()}],"scroll-mx":[{"scroll-mx":v()}],"scroll-my":[{"scroll-my":v()}],"scroll-ms":[{"scroll-ms":v()}],"scroll-me":[{"scroll-me":v()}],"scroll-mt":[{"scroll-mt":v()}],"scroll-mr":[{"scroll-mr":v()}],"scroll-mb":[{"scroll-mb":v()}],"scroll-ml":[{"scroll-ml":v()}],"scroll-p":[{"scroll-p":v()}],"scroll-px":[{"scroll-px":v()}],"scroll-py":[{"scroll-py":v()}],"scroll-ps":[{"scroll-ps":v()}],"scroll-pe":[{"scroll-pe":v()}],"scroll-pt":[{"scroll-pt":v()}],"scroll-pr":[{"scroll-pr":v()}],"scroll-pb":[{"scroll-pb":v()}],"scroll-pl":[{"scroll-pl":v()}],"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]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[I,A,R]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"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-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-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"],"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"]}}}),y=(...e)=>vt(pe(e)),xe=h.createContext(null),xt=()=>{const e=h.useContext(xe);if(!e)throw new Error("useAccordion must be used within an AccordionProvider");return e},V={primary:{50:"#EFF6FF",100:"#DBEAFE",200:"#BFDBFE",300:"#3b82f6",400:"#2563eb"},gray:{50:"#F9FAFB",100:"#f3f4f6",200:"#e5e7eb",300:"#9ca3af",400:"#6b7280",500:"#4b5563",600:"#1f2937"},red:{50:"#FEF2F2",100:"#FEE2E2",200:"#F87171",300:"#EF4444"},green:{50:"#dcfce7",100:"#BBF7D0",200:"#22c55e",300:"#16A34A"},orange:"#f97316",yellow:"#eab308",purple:"#a855f7",white:"#ffffff",black:"#000000"},Ce={primary:V.primary[300],gray:V.gray[300],red:V.red[300],green:V.green[300],black:V.black},ee={add:e=>c.createElement("svg",{width:"current",height:"current",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M12 5V19",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M19 12L5 12",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),arrowDown:e=>c.createElement("svg",{width:"current",height:"current",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M6 9L12 15L18 9",stroke:"currentColor",strokeWidth:2})),arrowUp:e=>c.createElement("svg",{width:"current",height:"current",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M18 15L12 9L6 15",stroke:"currentColor",strokeWidth:2})),arrowLeft:e=>c.createElement("svg",{width:"current",height:"current",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M15.5 5L8.5 12L15.5 19",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),arrowRight:e=>c.createElement("svg",{width:"current",height:"current",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M8.5 19L15.5 12L8.5 5",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),check:e=>c.createElement("svg",{width:"current",height:"current",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M22.1354 12.4999C22.1354 7.17836 17.8215 2.86444 12.5 2.86444C7.17852 2.86444 2.8646 7.17836 2.8646 12.4999C2.8646 17.8214 7.17852 22.1353 12.5 22.1353C17.8215 22.1353 22.1354 17.8214 22.1354 12.4999Z",fill:"currentColor",stroke:"currentColor",strokeWidth:1.83333}),c.createElement("path",{d:"M7.81272 11.9807L10.7307 15.3155C11.1089 15.7477 11.7866 15.7297 12.1414 15.2782L17.1877 8.85565",stroke:"white",strokeWidth:1.83333,strokeLinecap:"round",strokeLinejoin:"round"})),close:e=>c.createElement("svg",{width:"current",height:"current",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M19 19L5 5",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round"}),c.createElement("path",{d:"M19 5L5 19",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round"})),download:e=>c.createElement("svg",{width:"current",height:"current",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M9.58712 0.833984C9.05021 0.833984 8.61447 1.26944 8.61447 1.80664V12.0798L5.69651 9.19295L4.32896 10.5605L8.88779 15.1504C9.26809 15.5298 9.90614 15.5298 10.2864 15.1504L14.8453 10.5605L13.4777 9.19295L10.5598 12.0798V1.80664C10.5598 1.26944 10.124 0.833887 9.58712 0.833984ZM1.8059 12.5058C1.269 12.5058 0.833252 12.9415 0.833252 13.4785V15.4238C0.833252 17.5723 2.57527 19.3144 4.72386 19.3144H14.4504C16.599 19.3144 18.341 17.5723 18.341 15.4238V13.4785C18.341 12.9415 17.9052 12.5058 17.3683 12.5058C16.8314 12.5058 16.3957 12.9415 16.3957 13.4785V15.4238C16.3957 16.4985 15.5252 17.3691 14.4504 17.3691H4.72386C3.64908 17.3691 2.77856 16.4985 2.77856 15.4238V13.4785C2.77856 12.9415 2.34281 12.5058 1.8059 12.5058Z",fill:"currentColor"})),etc:e=>c.createElement("svg",{width:"current",height:"current",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M11.0002 5.4987C12.0127 5.4987 12.8335 4.67789 12.8335 3.66536C12.8335 2.65284 12.0127 1.83203 11.0002 1.83203C9.98764 1.83203 9.16683 2.65284 9.16683 3.66536C9.16683 4.67789 9.98764 5.4987 11.0002 5.4987Z",fill:"currentColor",stroke:"currentColor",strokeWidth:.458333}),c.createElement("path",{d:"M11.0002 12.8327C12.0127 12.8327 12.8335 12.0119 12.8335 10.9993C12.8335 9.98683 12.0127 9.16602 11.0002 9.16602C9.98764 9.16602 9.16683 9.98683 9.16683 10.9993C9.16683 12.0119 9.98764 12.8327 11.0002 12.8327Z",fill:"currentColor",stroke:"currentColor",strokeWidth:.458333}),c.createElement("path",{d:"M11.0002 20.1647C12.0127 20.1647 12.8335 19.3439 12.8335 18.3314C12.8335 17.3189 12.0127 16.498 11.0002 16.498C9.98764 16.498 9.16683 17.3189 9.16683 18.3314C9.16683 19.3439 9.98764 20.1647 11.0002 20.1647Z",fill:"currentColor",stroke:"currentColor",strokeWidth:.458333})),file:e=>c.createElement("svg",{width:"current",height:"current",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M6.4668 4.75H13.709C13.9521 4.75 14.1855 4.84669 14.3574 5.01855L18.1816 8.8418C18.3535 9.01368 18.4502 9.24716 18.4502 9.49023V18.333C18.4502 18.8392 18.0394 19.25 17.5332 19.25H6.4668C5.96054 19.25 5.5498 18.8393 5.5498 18.333V5.66699C5.5498 5.16073 5.96054 4.75 6.4668 4.75Z",stroke:"currentColor",strokeWidth:1.5}),c.createElement("path",{d:"M12 10V14.8109",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M14.4058 12.4062L9.59482 12.4063",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),list:e=>c.createElement("svg",{width:"current",height:"current",viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M2.62402 5.33984C2.14102 5.33984 1.74902 5.73184 1.74902 6.21484C1.74902 6.69784 2.14102 7.08984 2.62402 7.08984H18.374C18.857 7.08984 19.249 6.69784 19.249 6.21484C19.249 5.73184 18.857 5.33984 18.374 5.33984H2.62402ZM2.62402 9.71484C2.14102 9.71484 1.74902 10.1068 1.74902 10.5898C1.74902 11.0728 2.14102 11.4648 2.62402 11.4648H18.374C18.857 11.4648 19.249 11.0728 19.249 10.5898C19.249 10.1068 18.857 9.71484 18.374 9.71484H2.62402ZM2.62402 14.0898C2.14102 14.0898 1.74902 14.4818 1.74902 14.9648C1.74902 15.4478 2.14102 15.8398 2.62402 15.8398H18.374C18.857 15.8398 19.249 15.4478 19.249 14.9648C19.249 14.4818 18.857 14.0898 18.374 14.0898H2.62402Z",fill:"currentColor"})),navbarArrow:e=>c.createElement("svg",{width:27,height:27,viewBox:"0 0 27 27",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M17.9999 4.5L9.79537 12.7045C9.35603 13.1438 9.35603 13.8562 9.79537 14.2955L17.9999 22.5",stroke:"#4B5563",strokeWidth:3,strokeLinecap:"round"})),new:e=>c.createElement("svg",{width:"current",height:"current",viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("circle",{cx:10.0915,cy:10.0915,r:10.0915,fill:"currentColor"}),c.createElement("path",{d:"M13.3923 5.83097V14H12.0835L8.21334 8.41482H8.14564V14H6.67883V5.83097H8.01024L11.8578 11.4161H11.9368V5.83097H13.3923Z",fill:"white"})),pin:e=>c.createElement("svg",{width:"current",height:"current",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M15.0117 1.95312C14.7465 1.95312 14.4738 2.09163 14.2823 2.27493C12.7337 3.75773 12.2595 4.99773 12.8257 6.69633C11.5046 7.70893 10.6702 7.95743 9.02099 7.95743C6.76649 7.95743 5.29449 8.22923 4.29289 9.23013V9.26133C3.35569 10.1981 3.35569 11.6981 4.29289 12.6341L7.09309 15.4561L2.32199 20.2251C1.93149 20.6151 1.90239 21.2701 2.29289 21.6601C2.68349 22.0511 3.33989 22.0511 3.73049 21.6601L8.51929 16.8701L11.3242 19.6611C12.2615 20.5981 13.7619 20.5981 14.6992 19.6611H14.7305C15.7325 18.6601 16.0117 17.3771 16.0117 14.9451C16.0117 13.3991 16.329 12.3081 17.2897 11.1601C19.1386 11.7021 20.2143 11.1831 21.7305 9.66743C21.918 9.47993 22.0117 9.21413 22.0117 8.94903C22.0117 8.59733 21.9229 8.05823 21.6992 7.38743C21.3389 6.30733 20.7186 5.22063 19.7305 4.23303C18.7423 3.24553 17.6549 2.62553 16.5742 2.26543C15.903 2.04183 15.3636 1.95312 15.0117 1.95312Z",fill:"currentColor"})),search:e=>c.createElement("svg",{width:"current",height:"current",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M10.5 15C13.2614 15 15.5 12.7614 15.5 10C15.5 7.23858 13.2614 5 10.5 5C7.73858 5 5.5 7.23858 5.5 10C5.5 12.7614 7.73858 15 10.5 15Z",stroke:"currentColor",strokeWidth:1.5}),c.createElement("path",{d:"M13.5 14L18.5 19",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round"})),trash:e=>c.createElement("svg",{width:"current",height:"current",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M4.5 5L4.5 20C4.5 21.1046 5.39543 22 6.5 22H17.5C18.6046 22 19.5 21.1046 19.5 20V5",stroke:"currentColor",strokeWidth:2}),c.createElement("path",{d:"M10 11V16",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round"}),c.createElement("path",{d:"M14 11V16",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round"}),c.createElement("path",{d:"M2.5 5H21.5",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round"}),c.createElement("path",{d:"M7 5L7.22147 3.6712C7.3822 2.70683 8.21658 2 9.19425 2H12H14.8057C15.7834 2 16.6178 2.70683 16.7785 3.6712L17 5",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round"})),write:e=>c.createElement("svg",{width:"current",height:"current",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M12.5 3H5C3.89543 3 3 3.89543 3 5V19C3 20.1046 3.89543 21 5 21H19C20.1046 21 21 20.1046 21 19V11.5",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round"}),c.createElement("path",{d:"M17.7692 9.5553L11.4369 15.8419C11.2028 16.0743 10.9149 16.2452 10.5987 16.3394L6.84161 17.4584C6.65443 17.5141 6.47848 17.3434 6.52862 17.1546L7.44415 13.7085C7.53339 13.3726 7.70863 13.0657 7.95258 12.8182L14.4445 6.23064M17.7692 9.5553L19.5859 7.73859C20.3669 6.95754 20.3669 5.69122 19.5859 4.91017L19.0896 4.41394C18.3086 3.63289 17.0423 3.63289 16.2612 4.41394L14.4445 6.23064M17.7692 9.5553L14.4445 6.23064",stroke:"currentColor",strokeWidth:2})),loading:e=>c.createElement("svg",{width:"current",height:"current",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...e},c.createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),c.createElement("path",{d:"M18.364 5.636L16.95 7.05A7 7 0 1 0 19 12h2a9 9 0 1 1-2.636-6.364z"}))},Ct=Object.keys(ee);function E({name:e,color:r="gray",size:t=25,...o}){const n=ee[e];return a.jsx(n,{width:`${t}px`,height:`${t}px`,style:{color:Ce[r]},...o})}function kt({type:e="single",className:r="",children:t,...o}){const[n,s]=h.useState([]),l=i=>{if(e==="single"){s(g=>g.includes(i)?[]:[i]);return}s(g=>g.includes(i)?g.filter(u=>u!==i):[...g,i])};return a.jsx(xe.Provider,{value:{openItems:n,toggleItem:l,type:e},children:a.jsx("div",{className:y("w-full",r),...o,children:t})})}const D={initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{height:{duration:.2,ease:"easeOut"},opacity:{duration:.1}}};function Nt({trigger:e,isArrow:r=!0,value:t,btnClassName:o,contentClassName:n,children:s,...l}){const i=xt(),g=h.useId(),u=`accordion-trigger-${g}`,m=`accordion-content-${g}`,b=M.useReducedMotion(),{openItems:C,toggleItem:S}=i,N=C.includes(t);return a.jsxs("div",{className:"border-b border-gray-200","data-state":N?"open":"closed",...l,children:[a.jsxs("button",{id:u,"aria-controls":m,"aria-expanded":N,type:"button",onClick:()=>S(t),className:y("flex w-full cursor-pointer items-center justify-between px-6 py-4 text-left hover:bg-gray-50",o),children:[e,r&&a.jsx(M.motion.div,{animate:{rotate:N?180:0},transition:{duration:.2},className:"ml-2",children:a.jsx(E,{name:"arrowDown",size:20})})]}),a.jsx(M.AnimatePresence,{initial:!1,children:N&&a.jsx(M.motion.section,{id:m,"aria-labelledby":u,initial:b?void 0:D.initial,animate:b?void 0:D.animate,exit:b?void 0:D.exit,transition:b?void 0:D.transition,className:"overflow-hidden",children:a.jsx("div",{className:y("bg-gray-50 px-6 py-4",n),children:s})})})]})}const St={sm:{class:"size-14",width:56,height:56},md:{class:"size-16",width:64,height:64},lg:{class:"size-18",width:72,height:72},xl:{class:"size-20",width:80,height:80}};function Lt({size:e="lg",src:r,alt:t,className:o,...n}){const{class:s,width:l,height:i}=St[e];return a.jsx("img",{src:r,alt:t,width:l,height:i,loading:"lazy",className:y("rounded-full border border-gray-200 object-cover",s,o),...n})}const Et={positive:"bg-green-50 text-green-200",negative:"bg-red-100 text-red-300",neutral:"bg-gray-100 text-gray-400"};function Mt({variant:e="neutral",text:r,...t}){const o=Et[e];return a.jsx("div",{className:y("w-min rounded-lg px-2 py-1 text-sm font-semibold whitespace-nowrap",o),...t,children:r})}const ke=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Ne=pe,$=(e,r)=>t=>{var o;if((r==null?void 0:r.variants)==null)return Ne(e,t==null?void 0:t.class,t==null?void 0:t.className);const{variants:n,defaultVariants:s}=r,l=Object.keys(n).map(u=>{const m=t==null?void 0:t[u],b=s==null?void 0:s[u];if(m===null)return null;const C=ke(m)||ke(b);return n[u][C]}),i=t&&Object.entries(t).reduce((u,m)=>{let[b,C]=m;return C===void 0||(u[b]=C),u},{}),g=r==null||(o=r.compoundVariants)===null||o===void 0?void 0:o.reduce((u,m)=>{let{class:b,className:C,...S}=m;return Object.entries(S).every(N=>{let[k,f]=N;return Array.isArray(f)?f.includes({...s,...i}[k]):{...s,...i}[k]===f})?[...u,b,C]:u},[]);return Ne(e,l,g,t==null?void 0:t.class,t==null?void 0:t.className)},It=$("flex justify-center items-center text-sm font-medium py-2.5 md:py-4 md:text-base md:font-semibold cursor-pointer",{variants:{variant:{primary:"text-white",secondary:"",tertiary:"text-gray-400 bg-gray-100 hover:bg-gray-200"},size:{sm:"px-3 md:px-4",md:"px-5 md:px-7",lg:"px-10 md:px-[60px]",full:"w-full px-4"},color:{blue:"",red:"",green:""}},compoundVariants:[{variant:"primary",color:"red",class:"text-white bg-red-200 hover:bg-red-300"},{variant:"primary",color:"blue",class:"text-white bg-primary-300 hover:bg-primary-400"},{variant:"secondary",color:"blue",class:"text-primary-300 bg-primary-100 hover:bg-primary-200"},{variant:"secondary",color:"red",class:"text-red-200 bg-red-50 hover:bg-red-100"},{variant:"secondary",color:"green",class:"text-green-200 bg-green-50 hover:bg-green-100"}]});function zt({children:e,variant:r,color:t,size:o="md",rounded:n=!1,isLoading:s=!1,disabled:l,className:i,...g}){const u=s||l;return a.jsxs("button",{type:"button",className:y(It({variant:r,color:t,size:o}),u&&"cursor-not-allowed bg-gray-100 text-gray-400 hover:bg-gray-100",n?"rounded-full":"rounded-[10px] md:rounded-xl",i),disabled:u,...g,children:[s&&a.jsx(E,{name:"loading",size:25,className:"mr-1.5 -ml-1 animate-spin max-md:h-[20px]"}),e]})}const Se=h.createContext(null),te=()=>{const e=h.useContext(Se);if(!e)throw new Error("useCarousel must be used within a CarouselProvider");return e},At=()=>{const[e,r]=h.useState(0),[t,o]=h.useState(0),[n,s]=h.useState(!1),l=h.useRef(null),i=h.useRef(null);h.useEffect(()=>{if(l.current){const x=l.current.children.length;o(x)}},[]);const g=h.useCallback(f=>{if(!l.current)return;const x=l.current,L=x.clientWidth;x.scrollTo({left:L*f,behavior:"smooth"}),r(f)},[]),u=h.useCallback(()=>{if(n||t===0)return;const f=e>=t-1?0:e+1;g(f)},[g,n,e,t]),m=h.useCallback(()=>{const f=t-1,x=Math.min(e+1,f);g(x)},[e,t,g]),b=h.useCallback(()=>{const f=Math.max(0,e-1);g(f)},[e,g]);h.useEffect(()=>{if(!(t===0||n))return i.current=setInterval(u,3e3),()=>{i.current&&clearInterval(i.current)}},[u,t,n]);const C=()=>s(!0),S=()=>s(!1),N=e<t-1,k=e>0;return{currentIndex:e,totalItems:t,goToNext:m,goToPrevious:b,canGoNext:N,canGoPrevious:k,scrollContainerRef:l,handleMouseEnter:C,handleMouseLeave:S}};function Tt({className:e="",children:r}){const t=At();return a.jsx(Se.Provider,{value:t,children:a.jsxs("div",{className:y("relative",e),onMouseEnter:t.handleMouseEnter,onMouseLeave:t.handleMouseLeave,role:"region","aria-roledescription":"carousel",children:[r,a.jsx(Ot,{}),a.jsx(Pt,{})]})})}function Bt({children:e,className:r=""}){const{scrollContainerRef:t}=te();return a.jsx("div",{ref:t,className:y("scroll no-scrollbar flex overflow-x-auto overflow-y-hidden scroll-smooth",r),children:e})}function jt({children:e,className:r=""}){return a.jsx("div",{className:y("w-full min-w-full flex-shrink-0",r),children:e})}function Ot(){const{goToPrevious:e,canGoNext:r,canGoPrevious:t}=te();return r||t?a.jsx("button",{onClick:e,disabled:!t,className:"absolute top-1/2 left-4 z-10 flex size-10 -translate-y-1/2 cursor-pointer items-center justify-center rounded-full bg-white shadow-lg transition-all hover:bg-gray-50 disabled:cursor-not-allowed disabled:opacity-50","aria-label":"이전",children:a.jsx(E,{name:"arrowLeft",className:"pr-0.5"})}):null}function Pt(){const{goToNext:e,canGoNext:r,canGoPrevious:t}=te();return r||t?a.jsx("button",{onClick:e,disabled:!r,className:"absolute top-1/2 right-4 z-10 flex size-10 -translate-y-1/2 cursor-pointer items-center justify-center rounded-full bg-white shadow-lg transition-all hover:bg-gray-50 disabled:cursor-not-allowed disabled:opacity-50","aria-label":"다음",children:a.jsx(E,{name:"arrowRight",className:"pl-0.5"})}):null}function Vt({as:e,className:r,children:t,...o}){const n=e||"div";return a.jsx(n,{className:y("box-border rounded-xl border border-gray-200 bg-white px-[22px] py-6 transition-colors hover:bg-gray-50",r),...o,children:t})}const Wt={row:"flex-row","row-reverse":"flex-row-reverse",col:"flex-col","col-reverse":"flex-col-reverse"},Gt={start:"items-start",end:"items-end",center:"items-center",baseline:"items-baseline",stretch:"items-stretch"},Ft={start:"justify-start",end:"justify-end",center:"justify-center",between:"justify-between",around:"justify-around",evenly:"justify-evenly",stretch:"justify-stretch",baseline:"justify-baseline"},Ht={nowrap:"flex-nowrap",wrap:"flex-wrap","wrap-reverse":"flex-wrap-reverse"};function W({as:e="div",dir:r="row",alignItems:t="stretch",justifyContent:o="start",wrap:n="nowrap",gap:s=0,className:l="",children:i,...g}){const u=e;return a.jsx(u,{className:y("flex",Wt[r],Gt[t],Ft[o],Ht[n],`gap-${s}`,l),...g,children:i})}function _t({left:e,right:r}){return a.jsxs(W,{dir:"row",justifyContent:"between",alignItems:"center",className:"w-full gap-2 md:gap-4",children:[a.jsx("div",{className:"flex-1",children:e}),a.jsx("div",{className:"flex-1",children:r})]})}function Z({isOpen:e,children:r}){const[t,o]=h.useState(!1);return h.useEffect(()=>(o(!0),()=>o(!1)),[]),t?_e.createPortal(a.jsx(M.AnimatePresence,{children:e&&r}),document.body):null}const re={initial:{opacity:0},animate:{opacity:1},exit:{opacity:0}},U={initial:{x:"100%"},animate:{x:0},exit:{x:"100%"},transition:{type:"spring",damping:30,stiffness:260}};function Dt({isOpen:e,onClose:r,children:t}){return a.jsxs(Z,{isOpen:e,children:[a.jsx(M.motion.div,{onClick:r,className:"fixed inset-0 bg-black/50",initial:re.initial,animate:re.animate,exit:re.exit}),a.jsx("div",{className:"fixed top-0 right-0 z-50 h-full",children:a.jsx(M.motion.div,{className:"h-full bg-white shadow-lg",initial:U.initial,animate:U.animate,exit:U.exit,transition:U.transition,children:t})})]})}const $t=$("whitespace-pre-wrap",{variants:{type:{Title1:"md:text-4xl text-2xl",Title2:"md:text-3xl text-xl",Title3:"md:text-2xl text-xl",Body1:"md:text-xl text-lg",Body2:"md:text-lg text-base",Body3:"md:text-base text-base",Caption1:"md:text-sm text-sm"},weight:{normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold"}},defaultVariants:{type:"Body1",weight:"semibold"}});function Zt({as:e,weight:r,className:t,children:o,...n}){const s=e||"p";return h.createElement(s,{className:y($t({type:n.variant,weight:r}),t),...n},o)}const B=e=>{function r(t){return a.jsx(Zt,{variant:e,...t})}return r},Le=B("Title1"),Ut=B("Title2"),Ee=B("Title3"),qt=B("Body1"),Jt=B("Body2"),Me=B("Body3"),oe=B("Caption1");function Kt({id:e,mode:r,...t}){const o=h.useId(),n=e||o;return a.jsxs("label",{className:"focus-within:bg-primary-50 block w-full cursor-pointer rounded-xl border border-gray-200 bg-gray-50 px-4 py-3 transition-colors hover:bg-gray-100 md:py-3.5",htmlFor:n,children:[a.jsxs(W,{alignItems:"center",children:[a.jsx(E,{name:"file",size:25,color:"gray"}),a.jsx(Me,{className:"text-gray-400",weight:"medium",children:t.placeholder||(r==="single"?"파일을 업로드해주세요":"파일 여러개를 선택해주세요")})]}),a.jsx("input",{id:n,name:"uploadFile",type:"file",multiple:r==="multiple",className:"hidden",...t})]})}const Xt={primary:"hover:bg-primary-400/20",gray:"hover:bg-gray-400/20",red:"hover:bg-red-400/20",green:"hover:bg-green-400/20",black:"hover:bg-black/20"};function Ie({iconName:e,color:r="gray",size:t,className:o,...n}){return a.jsx("button",{type:"button",className:y("cursor-pointer rounded-md p-1 transition",Xt[r],o),...n,children:a.jsx(E,{name:e,color:r,size:t})})}function Yt({value:e,onClickReset:r,...t}){return a.jsxs(W,{gap:8,alignItems:"center",className:"relative w-full",children:[a.jsx("input",{value:e,className:"focus:ring-primary-200 focus:outline-primary-300 w-full rounded-xl border-none border-gray-100 bg-white px-4 py-3 outline-1 outline-gray-200 focus:ring-4 focus:outline-1 md:py-3.5",...t}),e&&a.jsx(Ie,{title:"입력값 지우기","aria-label":"입력값 지우기",iconName:"close",color:"gray",size:18,onClick:r,className:"absolute top-1/2 right-3 -translate-y-1/2 transform cursor-pointer"})]})}const q={initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.3}};function Qt({isOpen:e,closeModal:r,children:t,className:o}){const n=s=>{s.target instanceof HTMLElement&&s.target===s.currentTarget&&r&&r()};return a.jsx(Z,{isOpen:e,children:a.jsxs(M.motion.div,{initial:q.initial,animate:q.animate,exit:q.exit,transition:q.transition,className:y("fixed inset-0 z-30 flex w-full items-center justify-center",o),children:[a.jsx("div",{className:"absolute inset-0 bg-black/50",onClick:n}),a.jsx(Rt,{children:t})]})})}function Rt({children:e}){return a.jsx(W,{role:"dialog","aria-modal":"true",justifyContent:"center",alignItems:"center",className:"relative z-40 rounded-lg bg-white p-8",children:e})}function er({title:e,size:r,onClick:t}){const o=()=>{if(t){t==null||t();return}window.history.back()};return a.jsx("button",{className:"flex cursor-pointer flex-row items-center gap-2 align-middle whitespace-nowrap",onClick:o,children:r==="sm"?a.jsxs(a.Fragment,{children:[a.jsx(E,{name:"arrowLeft",className:"w-4 md:w-6"}),a.jsx(Ee,{className:"whitespace-nowrap text-gray-500",children:e})]}):a.jsxs(a.Fragment,{children:[a.jsx(E,{name:"navbarArrow",className:"w-6 md:w-8"}),a.jsx(Le,{className:"whitespace-nowrap text-gray-500",children:e})]})})}function tr({className:e,...r}){return a.jsx("nav",{role:"navigation","aria-label":"pagination",className:y("flex cursor-pointer items-center justify-center gap-1",e),...r})}function rr({page:e,isActive:r,onClick:t}){return a.jsx("button",{onClickCapture:t,className:`size-9 cursor-pointer rounded px-3 py-1 font-semibold ${r?"bg-primary-100 text-primary-300 shadow-sm":"hover:bg-gray-100"}`,children:e})}function or({currentPage:e,totalPages:r,onPageChange:t,className:o=""}){const n=()=>{e>1&&t(e-1)},s=()=>{e<r&&t(e+1)};return a.jsxs(tr,{className:o,children:[r>=3&&e>1&&a.jsx(E,{name:"arrowLeft",size:35,className:"size-9 rounded-md px-2 py-1 hover:bg-gray-100",onClickCapture:n}),Array.from({length:r},(l,i)=>a.jsx(rr,{page:i+1,isActive:i+1===e,onClick:()=>t(i+1)},i)),r>=3&&e<r&&a.jsx(E,{name:"arrowRight",size:35,className:"size-9 rounded-md px-2 py-1 hover:bg-gray-100",onClickCapture:s})]})}const ze=h.createContext(null),Ae=()=>{const e=h.useContext(ze);if(!e)throw new Error("error");return e},nr=$("font-semibold text- cursor-pointer first:rounded-t-md last:rounded-b-md hover:bg-gray-50",{variants:{size:{md:"px-3 py-1 text-sm",lg:"px-5 py-2 md:py-2.5"}},defaultVariants:{size:"lg"}});function Te({name:e,size:r,className:t}){const{onSelect:o,size:n,selected:s}=Ae();return a.jsx("div",{role:"option",tabIndex:0,"aria-selected":s===e,onClick:()=>o(e),onKeyDown:l=>{(l.key==="Enter"||l.key===" ")&&(l.preventDefault(),o(e))},className:y(nr({size:r||n}),t),children:e})}function sr({name:e}){return a.jsx("div",{className:"border-b-2 border-gray-100 px-5 py-2 text-base text-gray-300 md:text-lg",children:e})}const ar=$("absolute top-full left-0 z-50 mt-1 max-h-60 w-full overflow-y-auto rounded-md border border-gray-200 bg-white font-semibold text-gray-400 shadow-lg",{variants:{size:{md:"text-sm min-w-24",lg:"text-base md:text-lg"}},defaultVariants:{size:"lg"}});function ne({children:e,size:r}){const{size:t}=Ae();return a.jsx("div",{className:y(ar({size:r||t})),children:e})}const ir={md:"px-3 py-1 text-sm w-fit min-w-24",lg:"px-5 py-1.5 md:py-2.5 min-w-64 md:w-72 text-base md:text-lg"};function se({selected:e,onClick:r,isOpen:t,size:o="lg"}){return a.jsx("div",{onClick:r,className:y(ir[o],"flex cursor-pointer items-center rounded-lg border border-gray-200 bg-white text-start font-semibold text-gray-400"),children:a.jsxs("button",{className:y("flex w-full items-center justify-between rounded-lg align-middle hover:rounded-lg",t&&"hover:rounded-b-none"),children:[e,a.jsx(E,{name:"arrowDown",className:y("transform transition-transform duration-300",t&&"rotate-180",o==="md"&&"w-5")})]})})}function Be({value:e,onChange:r,size:t="lg",children:o}){const[n,s]=h.useState(!1),l=i=>{s(!1),r==null||r(i)};return a.jsx(ze.Provider,{value:{selected:e,onSelect:l,size:t},children:a.jsxs("div",{className:"relative w-fit",children:[a.jsx(se,{selected:e,onClick:()=>s(!n),size:t,isOpen:n}),n&&a.jsx(ne,{children:o})]})})}const lr=Object.assign(Be,{Option:Te,Button:se,List:ne});Object.assign(Be,{Option:Te,Select:se,List:ne,Group:sr});function cr({className:e,...r}){return a.jsx("div",{className:y("w-full animate-pulse rounded-md bg-gray-200",e),...r})}function dr({color:e="primary",...r}){return a.jsx(ue.Root,{...r,className:"group flex h-3.5 w-7 items-center rounded-full shadow-lg data-[state=checked]:bg-[var(--switch-color)] data-[state=unchecked]:bg-gray-500",style:e&&{"--switch-color":Ce[e]},children:a.jsx(ue.Thumb,{className:"h-5 w-5 -translate-x-1.5 rounded-full bg-white shadow-inner drop-shadow-md duration-100 group-data-[state=checked]:translate-x-3.5"})})}const je=h.createContext(void 0);function ur({children:e,defaultIndex:r=0,...t}){const o=h.useMemo(()=>h.Children.toArray(e).filter(l=>h.isValidElement(l)).map(l=>l.props.label),[e]),[n,s]=h.useState(o[r]);return a.jsx(je.Provider,{value:{activeLabel:n},children:a.jsxs("div",{...t,children:[a.jsx("nav",{className:"flex w-full",children:o.map(l=>a.jsxs(M.motion.button,{className:`relative grow transform p-3 font-semibold ${n===l?"text-primary-300 hover:bg-primary-50":"text-gray-500 hover:bg-gray-50"} md:p-4 md:text-xl`,onClick:()=>s(l),children:[l,l===n&&a.jsx(M.motion.div,{className:"bg-primary-300 absolute right-0 -bottom-0.5 left-0 h-0.5",layoutId:"underline",id:"underline"})]},l))}),e]})})}function gr({label:e,children:r,...t}){const o=h.useContext(je),n=(o==null?void 0:o.activeLabel)===e;return a.jsx("div",{className:`${!n&&"hidden"}`,...t,children:r})}const pr={gray:"bg-gray-50",white:"bg-white"};function hr({value:e,variant:r="gray",rows:t=3,showCounter:o=!1,className:n,...s}){return a.jsxs(W,{dir:"col",gap:2,children:[a.jsx("textarea",{rows:t,className:y("focus:border-primary-100 w-full resize-none rounded-xl border-none px-4 py-3 text-gray-900 outline-1 outline-gray-200 transition-colors placeholder:text-gray-400 focus:border-1",pr[r],n),...s}),o&&s.maxLength&&a.jsxs(oe,{weight:"normal",className:"text-right text-gray-500",children:[e.length??0,"/",s.maxLength]})]})}const fr={SPRING:{initial:{opacity:0,scale:.6,y:15},animate:{opacity:1,scale:1,y:0,transition:{type:"spring",stiffness:300,damping:20,mass:.8}},exit:{opacity:0,scale:.6,y:15,transition:{duration:.1}}},POP:{initial:{opacity:0,scale:.3},animate:{opacity:1,scale:1,transition:{type:"spring",stiffness:500,damping:15,mass:.5}},exit:{opacity:0,scale:.3,transition:{duration:.08}}},SMOOTH:{initial:{opacity:0,y:10},animate:{opacity:1,y:0,transition:{duration:.2,ease:"easeOut"}},exit:{opacity:0,y:10,transition:{duration:.15,ease:"easeIn"}}}},mr={primary:{bg:"bg-primary-300",text:"text-white"},gray:{bg:"bg-gray-400",text:"text-white"},red:{bg:"bg-red-300",text:"text-white"},green:{bg:"bg-green-300",text:"text-white"},orange:{bg:"bg-orange-500",text:"text-white"},yellow:{bg:"bg-yellow-400",text:"text-black"},purple:{bg:"bg-purple-500",text:"text-white"},white:{bg:"bg-white border border-gray-200",text:"text-gray-800"},black:{bg:"bg-black",text:"text-white"}},br=()=>{const[e,r]=h.useState(!1),[t,o]=h.useState(null),n=h.useRef(null),s=()=>r(!0),l=()=>r(!1);return h.useEffect(()=>{if(n.current&&e){const i=n.current.getBoundingClientRect();o({top:i.top,left:i.left+i.width/2})}},[e]),{open:e,ref:n,show:s,hide:l,position:t}};function wr({content:e,color:r="gray",animationMode:t="SPRING",children:o}){const n=h.useId(),{open:s,ref:l,show:i,hide:g,position:u}=br(),m=mr[r],b=fr[t];return a.jsxs("div",{ref:l,className:"inline-flex",onMouseEnter:i,onMouseLeave:g,onFocus:i,onBlur:g,onClick:()=>s?g():i(),"aria-describedby":s?n:void 0,children:[o,a.jsx(Z,{isOpen:s,children:a.jsx(M.motion.div,{id:n,role:"tooltip","aria-live":"polite",initial:b.initial,animate:b.animate,exit:b.exit,className:y("fixed -translate-x-1/2 -translate-y-full rounded px-2 py-1 whitespace-nowrap shadow-lg",m.bg),style:{top:u==null?void 0:u.top,left:u==null?void 0:u.left},children:a.jsx(oe,{weight:"medium",className:m.text,children:e})})})]})}const yr=()=>{const[e,r]=h.useState(!1);return{isOpen:e,openModal:()=>r(!0),closeModal:()=>r(!1)}};d.Accordion=kt,d.AccordionItem=Nt,d.Avatar=Lt,d.Badge=Mt,d.Body1=qt,d.Body2=Jt,d.Body3=Me,d.Button=zt,d.Caption1=oe,d.Card=Vt,d.Carousel=Tt,d.CarouselContent=Bt,d.CarouselItem=jt,d.DoubleButton=_t,d.Drawer=Dt,d.FileUpload=Kt,d.Flex=W,d.Icon=E,d.IconButton=Ie,d.Icons=ee,d.Input=Yt,d.Modal=Qt,d.NavBack=er,d.Pagination=or,d.Portal=Z,d.Select=lr,d.Skeleton=cr,d.Switch=dr,d.TabItem=gr,d.Tabs=ur,d.TextArea=hr,d.Title1=Le,d.Title2=Ut,d.Title3=Ee,d.Tooltip=wr,d.cn=y,d.colors=V,d.iconNames=Ct,d.usePortal=yr,Object.defineProperty(d,Symbol.toStringTag,{value:"Module"})}));
1
+ (function(d,a){typeof exports=="object"&&typeof module<"u"?a(exports,require("react/jsx-runtime"),require("react"),require("framer-motion"),require("react-dom"),require("@radix-ui/react-switch")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","framer-motion","react-dom","@radix-ui/react-switch"],a):(d=typeof globalThis<"u"?globalThis:d||self,a(d["ddingdong-design-system"]={},d.jsxRuntime,d.React,d.framerMotion,d.ReactDOM,d.SwitchPrimitives))})(this,(function(d,a,h,M,_e,De){"use strict";function de(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const c=de(h),ue=de(De);function ge(e){var r,t,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(r=0;r<n;r++)e[r]&&(t=ge(e[r]))&&(o&&(o+=" "),o+=t)}else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function pe(){for(var e,r,t=0,o="",n=arguments.length;t<n;t++)(e=arguments[t])&&(r=ge(e))&&(o&&(o+=" "),o+=r);return o}const Y="-",$e=e=>{const r=Ue(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:l=>{const i=l.split(Y);return i[0]===""&&i.length!==1&&i.shift(),he(i,r)||Ze(l)},getConflictingClassGroupIds:(l,i)=>{const g=t[l]||[];return i&&o[l]?[...g,...o[l]]:g}}},he=(e,r)=>{var l;if(e.length===0)return r.classGroupId;const t=e[0],o=r.nextPart.get(t),n=o?he(e.slice(1),o):void 0;if(n)return n;if(r.validators.length===0)return;const s=e.join(Y);return(l=r.validators.find(({validator:i})=>i(s)))==null?void 0:l.classGroupId},fe=/^\[(.+)\]$/,Ze=e=>{if(fe.test(e)){const r=fe.exec(e)[1],t=r==null?void 0:r.substring(0,r.indexOf(":"));if(t)return"arbitrary.."+t}},Ue=e=>{const{theme:r,prefix:t}=e,o={nextPart:new Map,validators:[]};return Je(Object.entries(e.classGroups),t).forEach(([s,l])=>{Q(l,o,s,r)}),o},Q=(e,r,t,o)=>{e.forEach(n=>{if(typeof n=="string"){const s=n===""?r:me(r,n);s.classGroupId=t;return}if(typeof n=="function"){if(qe(n)){Q(n(o),r,t,o);return}r.validators.push({validator:n,classGroupId:t});return}Object.entries(n).forEach(([s,l])=>{Q(l,me(r,s),t,o)})})},me=(e,r)=>{let t=e;return r.split(Y).forEach(o=>{t.nextPart.has(o)||t.nextPart.set(o,{nextPart:new Map,validators:[]}),t=t.nextPart.get(o)}),t},qe=e=>e.isThemeGetter,Je=(e,r)=>r?e.map(([t,o])=>{const n=o.map(s=>typeof s=="string"?r+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([l,i])=>[r+l,i])):s);return[t,n]}):e,Ke=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,t=new Map,o=new Map;const n=(s,l)=>{t.set(s,l),r++,r>e&&(r=0,o=t,t=new Map)};return{get(s){let l=t.get(s);if(l!==void 0)return l;if((l=o.get(s))!==void 0)return n(s,l),l},set(s,l){t.has(s)?t.set(s,l):n(s,l)}}},be="!",Xe=e=>{const{separator:r,experimentalParseClassName:t}=e,o=r.length===1,n=r[0],s=r.length,l=i=>{const g=[];let u=0,m=0,b;for(let f=0;f<i.length;f++){let x=i[f];if(u===0){if(x===n&&(o||i.slice(f,f+s)===r)){g.push(i.slice(m,f)),m=f+s;continue}if(x==="/"){b=f;continue}}x==="["?u++:x==="]"&&u--}const C=g.length===0?i:i.substring(m),S=C.startsWith(be),N=S?C.substring(1):C,k=b&&b>m?b-m:void 0;return{modifiers:g,hasImportantModifier:S,baseClassName:N,maybePostfixModifierPosition:k}};return t?i=>t({className:i,parseClassName:l}):l},Ye=e=>{if(e.length<=1)return e;const r=[];let t=[];return e.forEach(o=>{o[0]==="["?(r.push(...t.sort(),o),t=[]):t.push(o)}),r.push(...t.sort()),r},Qe=e=>({cache:Ke(e.cacheSize),parseClassName:Xe(e),...$e(e)}),Re=/\s+/,et=(e,r)=>{const{parseClassName:t,getClassGroupId:o,getConflictingClassGroupIds:n}=r,s=[],l=e.trim().split(Re);let i="";for(let g=l.length-1;g>=0;g-=1){const u=l[g],{modifiers:m,hasImportantModifier:b,baseClassName:C,maybePostfixModifierPosition:S}=t(u);let N=!!S,k=o(N?C.substring(0,S):C);if(!k){if(!N){i=u+(i.length>0?" "+i:i);continue}if(k=o(C),!k){i=u+(i.length>0?" "+i:i);continue}N=!1}const f=Ye(m).join(":"),x=b?f+be:f,L=x+k;if(s.includes(L))continue;s.push(L);const H=n(k,N);for(let j=0;j<H.length;++j){const J=H[j];s.push(x+J)}i=u+(i.length>0?" "+i:i)}return i};function tt(){let e=0,r,t,o="";for(;e<arguments.length;)(r=arguments[e++])&&(t=we(r))&&(o&&(o+=" "),o+=t);return o}const we=e=>{if(typeof e=="string")return e;let r,t="";for(let o=0;o<e.length;o++)e[o]&&(r=we(e[o]))&&(t&&(t+=" "),t+=r);return t};function rt(e,...r){let t,o,n,s=l;function l(g){const u=r.reduce((m,b)=>b(m),e());return t=Qe(u),o=t.cache.get,n=t.cache.set,s=i,i(g)}function i(g){const u=o(g);if(u)return u;const m=et(g,t);return n(g,m),m}return function(){return s(tt.apply(null,arguments))}}const w=e=>{const r=t=>t[e]||[];return r.isThemeGetter=!0,r},ye=/^\[(?:([a-z-]+):)?(.+)\]$/i,ot=/^\d+\/\d+$/,nt=new Set(["px","full","screen"]),st=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,at=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,it=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,lt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ct=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,I=e=>O(e)||nt.has(e)||ot.test(e),z=e=>P(e,"length",bt),O=e=>!!e&&!Number.isNaN(Number(e)),R=e=>P(e,"number",O),G=e=>!!e&&Number.isInteger(Number(e)),dt=e=>e.endsWith("%")&&O(e.slice(0,-1)),p=e=>ye.test(e),T=e=>st.test(e),ut=new Set(["length","size","percentage"]),gt=e=>P(e,ut,ve),pt=e=>P(e,"position",ve),ht=new Set(["image","url"]),ft=e=>P(e,ht,yt),mt=e=>P(e,"",wt),F=()=>!0,P=(e,r,t)=>{const o=ye.exec(e);return o?o[1]?typeof r=="string"?o[1]===r:r.has(o[1]):t(o[2]):!1},bt=e=>at.test(e)&&!it.test(e),ve=()=>!1,wt=e=>lt.test(e),yt=e=>ct.test(e),vt=rt(()=>{const e=w("colors"),r=w("spacing"),t=w("blur"),o=w("brightness"),n=w("borderColor"),s=w("borderRadius"),l=w("borderSpacing"),i=w("borderWidth"),g=w("contrast"),u=w("grayscale"),m=w("hueRotate"),b=w("invert"),C=w("gap"),S=w("gradientColorStops"),N=w("gradientColorStopPositions"),k=w("inset"),f=w("margin"),x=w("opacity"),L=w("padding"),H=w("saturate"),j=w("scale"),J=w("sepia"),Oe=w("skew"),Pe=w("space"),Ve=w("translate"),ae=()=>["auto","contain","none"],ie=()=>["auto","hidden","clip","visible","scroll"],le=()=>["auto",p,r],v=()=>[p,r],We=()=>["",I,z],K=()=>["auto",O,p],Ge=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],X=()=>["solid","dashed","dotted","double","none"],Fe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ce=()=>["start","end","center","between","around","evenly","stretch"],_=()=>["","0",p],He=()=>["auto","avoid","all","avoid-page","page","left","right","column"],A=()=>[O,p];return{cacheSize:500,separator:":",theme:{colors:[F],spacing:[I,z],blur:["none","",T,p],brightness:A(),borderColor:[e],borderRadius:["none","","full",T,p],borderSpacing:v(),borderWidth:We(),contrast:A(),grayscale:_(),hueRotate:A(),invert:_(),gap:v(),gradientColorStops:[e],gradientColorStopPositions:[dt,z],inset:le(),margin:le(),opacity:A(),padding:v(),saturate:A(),scale:A(),sepia:_(),skew:A(),space:v(),translate:v()},classGroups:{aspect:[{aspect:["auto","square","video",p]}],container:["container"],columns:[{columns:[T]}],"break-after":[{"break-after":He()}],"break-before":[{"break-before":He()}],"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"],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:[...Ge(),p]}],overflow:[{overflow:ie()}],"overflow-x":[{"overflow-x":ie()}],"overflow-y":[{"overflow-y":ie()}],overscroll:[{overscroll:ae()}],"overscroll-x":[{"overscroll-x":ae()}],"overscroll-y":[{"overscroll-y":ae()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[k]}],"inset-x":[{"inset-x":[k]}],"inset-y":[{"inset-y":[k]}],start:[{start:[k]}],end:[{end:[k]}],top:[{top:[k]}],right:[{right:[k]}],bottom:[{bottom:[k]}],left:[{left:[k]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",G,p]}],basis:[{basis:le()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",p]}],grow:[{grow:_()}],shrink:[{shrink:_()}],order:[{order:["first","last","none",G,p]}],"grid-cols":[{"grid-cols":[F]}],"col-start-end":[{col:["auto",{span:["full",G,p]},p]}],"col-start":[{"col-start":K()}],"col-end":[{"col-end":K()}],"grid-rows":[{"grid-rows":[F]}],"row-start-end":[{row:["auto",{span:[G,p]},p]}],"row-start":[{"row-start":K()}],"row-end":[{"row-end":K()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",p]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",p]}],gap:[{gap:[C]}],"gap-x":[{"gap-x":[C]}],"gap-y":[{"gap-y":[C]}],"justify-content":[{justify:["normal",...ce()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ce(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ce(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[L]}],px:[{px:[L]}],py:[{py:[L]}],ps:[{ps:[L]}],pe:[{pe:[L]}],pt:[{pt:[L]}],pr:[{pr:[L]}],pb:[{pb:[L]}],pl:[{pl:[L]}],m:[{m:[f]}],mx:[{mx:[f]}],my:[{my:[f]}],ms:[{ms:[f]}],me:[{me:[f]}],mt:[{mt:[f]}],mr:[{mr:[f]}],mb:[{mb:[f]}],ml:[{ml:[f]}],"space-x":[{"space-x":[Pe]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[Pe]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",p,r]}],"min-w":[{"min-w":[p,r,"min","max","fit"]}],"max-w":[{"max-w":[p,r,"none","full","min","max","fit","prose",{screen:[T]},T]}],h:[{h:[p,r,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[p,r,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[p,r,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[p,r,"auto","min","max","fit"]}],"font-size":[{text:["base",T,z]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",R]}],"font-family":[{font:[F]}],"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:["tighter","tight","normal","wide","wider","widest",p]}],"line-clamp":[{"line-clamp":["none",O,R]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",I,p]}],"list-image":[{"list-image":["none",p]}],"list-style-type":[{list:["none","disc","decimal",p]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[x]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[x]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...X(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",I,z]}],"underline-offset":[{"underline-offset":["auto",I,p]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:v()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",p]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",p]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[x]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Ge(),pt]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",gt]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},ft]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[N]}],"gradient-via-pos":[{via:[N]}],"gradient-to-pos":[{to:[N]}],"gradient-from":[{from:[S]}],"gradient-via":[{via:[S]}],"gradient-to":[{to:[S]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[x]}],"border-style":[{border:[...X(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[x]}],"divide-style":[{divide:X()}],"border-color":[{border:[n]}],"border-color-x":[{"border-x":[n]}],"border-color-y":[{"border-y":[n]}],"border-color-s":[{"border-s":[n]}],"border-color-e":[{"border-e":[n]}],"border-color-t":[{"border-t":[n]}],"border-color-r":[{"border-r":[n]}],"border-color-b":[{"border-b":[n]}],"border-color-l":[{"border-l":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:["",...X()]}],"outline-offset":[{"outline-offset":[I,p]}],"outline-w":[{outline:[I,z]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:We()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[x]}],"ring-offset-w":[{"ring-offset":[I,z]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",T,mt]}],"shadow-color":[{shadow:[F]}],opacity:[{opacity:[x]}],"mix-blend":[{"mix-blend":[...Fe(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Fe()}],filter:[{filter:["","none"]}],blur:[{blur:[t]}],brightness:[{brightness:[o]}],contrast:[{contrast:[g]}],"drop-shadow":[{"drop-shadow":["","none",T,p]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[m]}],invert:[{invert:[b]}],saturate:[{saturate:[H]}],sepia:[{sepia:[J]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[t]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[g]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[m]}],"backdrop-invert":[{"backdrop-invert":[b]}],"backdrop-opacity":[{"backdrop-opacity":[x]}],"backdrop-saturate":[{"backdrop-saturate":[H]}],"backdrop-sepia":[{"backdrop-sepia":[J]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",p]}],duration:[{duration:A()}],ease:[{ease:["linear","in","out","in-out",p]}],delay:[{delay:A()}],animate:[{animate:["none","spin","ping","pulse","bounce",p]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[j]}],"scale-x":[{"scale-x":[j]}],"scale-y":[{"scale-y":[j]}],rotate:[{rotate:[G,p]}],"translate-x":[{"translate-x":[Ve]}],"translate-y":[{"translate-y":[Ve]}],"skew-x":[{"skew-x":[Oe]}],"skew-y":[{"skew-y":[Oe]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",p]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],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]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":v()}],"scroll-mx":[{"scroll-mx":v()}],"scroll-my":[{"scroll-my":v()}],"scroll-ms":[{"scroll-ms":v()}],"scroll-me":[{"scroll-me":v()}],"scroll-mt":[{"scroll-mt":v()}],"scroll-mr":[{"scroll-mr":v()}],"scroll-mb":[{"scroll-mb":v()}],"scroll-ml":[{"scroll-ml":v()}],"scroll-p":[{"scroll-p":v()}],"scroll-px":[{"scroll-px":v()}],"scroll-py":[{"scroll-py":v()}],"scroll-ps":[{"scroll-ps":v()}],"scroll-pe":[{"scroll-pe":v()}],"scroll-pt":[{"scroll-pt":v()}],"scroll-pr":[{"scroll-pr":v()}],"scroll-pb":[{"scroll-pb":v()}],"scroll-pl":[{"scroll-pl":v()}],"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]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[I,z,R]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"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-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-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"],"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"]}}}),y=(...e)=>vt(pe(e)),xe=h.createContext(null),xt=()=>{const e=h.useContext(xe);if(!e)throw new Error("useAccordion must be used within an AccordionProvider");return e},V={primary:{50:"#EFF6FF",100:"#DBEAFE",200:"#BFDBFE",300:"#3b82f6",400:"#2563eb"},gray:{50:"#F9FAFB",100:"#f3f4f6",200:"#e5e7eb",300:"#9ca3af",400:"#6b7280",500:"#4b5563",600:"#1f2937"},red:{50:"#FEF2F2",100:"#FEE2E2",200:"#F87171",300:"#EF4444"},green:{50:"#dcfce7",100:"#BBF7D0",200:"#22c55e",300:"#16A34A"},orange:"#f97316",yellow:"#eab308",purple:"#a855f7",white:"#ffffff",black:"#000000"},Ce={primary:V.primary[300],gray:V.gray[300],red:V.red[300],green:V.green[300],black:V.black},ee={add:e=>c.createElement("svg",{width:"current",height:"current",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M12 5V19",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M19 12L5 12",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),arrowDown:e=>c.createElement("svg",{width:"current",height:"current",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M6 9L12 15L18 9",stroke:"currentColor",strokeWidth:2})),arrowUp:e=>c.createElement("svg",{width:"current",height:"current",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M18 15L12 9L6 15",stroke:"currentColor",strokeWidth:2})),arrowLeft:e=>c.createElement("svg",{width:"current",height:"current",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M15.5 5L8.5 12L15.5 19",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),arrowRight:e=>c.createElement("svg",{width:"current",height:"current",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M8.5 19L15.5 12L8.5 5",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),check:e=>c.createElement("svg",{width:"current",height:"current",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M22.1354 12.4999C22.1354 7.17836 17.8215 2.86444 12.5 2.86444C7.17852 2.86444 2.8646 7.17836 2.8646 12.4999C2.8646 17.8214 7.17852 22.1353 12.5 22.1353C17.8215 22.1353 22.1354 17.8214 22.1354 12.4999Z",fill:"currentColor",stroke:"currentColor",strokeWidth:1.83333}),c.createElement("path",{d:"M7.81272 11.9807L10.7307 15.3155C11.1089 15.7477 11.7866 15.7297 12.1414 15.2782L17.1877 8.85565",stroke:"white",strokeWidth:1.83333,strokeLinecap:"round",strokeLinejoin:"round"})),close:e=>c.createElement("svg",{width:"current",height:"current",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M19 19L5 5",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round"}),c.createElement("path",{d:"M19 5L5 19",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round"})),download:e=>c.createElement("svg",{width:"current",height:"current",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M9.58712 0.833984C9.05021 0.833984 8.61447 1.26944 8.61447 1.80664V12.0798L5.69651 9.19295L4.32896 10.5605L8.88779 15.1504C9.26809 15.5298 9.90614 15.5298 10.2864 15.1504L14.8453 10.5605L13.4777 9.19295L10.5598 12.0798V1.80664C10.5598 1.26944 10.124 0.833887 9.58712 0.833984ZM1.8059 12.5058C1.269 12.5058 0.833252 12.9415 0.833252 13.4785V15.4238C0.833252 17.5723 2.57527 19.3144 4.72386 19.3144H14.4504C16.599 19.3144 18.341 17.5723 18.341 15.4238V13.4785C18.341 12.9415 17.9052 12.5058 17.3683 12.5058C16.8314 12.5058 16.3957 12.9415 16.3957 13.4785V15.4238C16.3957 16.4985 15.5252 17.3691 14.4504 17.3691H4.72386C3.64908 17.3691 2.77856 16.4985 2.77856 15.4238V13.4785C2.77856 12.9415 2.34281 12.5058 1.8059 12.5058Z",fill:"currentColor"})),etc:e=>c.createElement("svg",{width:"current",height:"current",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M11.0002 5.4987C12.0127 5.4987 12.8335 4.67789 12.8335 3.66536C12.8335 2.65284 12.0127 1.83203 11.0002 1.83203C9.98764 1.83203 9.16683 2.65284 9.16683 3.66536C9.16683 4.67789 9.98764 5.4987 11.0002 5.4987Z",fill:"currentColor",stroke:"currentColor",strokeWidth:.458333}),c.createElement("path",{d:"M11.0002 12.8327C12.0127 12.8327 12.8335 12.0119 12.8335 10.9993C12.8335 9.98683 12.0127 9.16602 11.0002 9.16602C9.98764 9.16602 9.16683 9.98683 9.16683 10.9993C9.16683 12.0119 9.98764 12.8327 11.0002 12.8327Z",fill:"currentColor",stroke:"currentColor",strokeWidth:.458333}),c.createElement("path",{d:"M11.0002 20.1647C12.0127 20.1647 12.8335 19.3439 12.8335 18.3314C12.8335 17.3189 12.0127 16.498 11.0002 16.498C9.98764 16.498 9.16683 17.3189 9.16683 18.3314C9.16683 19.3439 9.98764 20.1647 11.0002 20.1647Z",fill:"currentColor",stroke:"currentColor",strokeWidth:.458333})),file:e=>c.createElement("svg",{width:"current",height:"current",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M6.4668 4.75H13.709C13.9521 4.75 14.1855 4.84669 14.3574 5.01855L18.1816 8.8418C18.3535 9.01368 18.4502 9.24716 18.4502 9.49023V18.333C18.4502 18.8392 18.0394 19.25 17.5332 19.25H6.4668C5.96054 19.25 5.5498 18.8393 5.5498 18.333V5.66699C5.5498 5.16073 5.96054 4.75 6.4668 4.75Z",stroke:"currentColor",strokeWidth:1.5}),c.createElement("path",{d:"M12 10V14.8109",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M14.4058 12.4062L9.59482 12.4063",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),list:e=>c.createElement("svg",{width:"current",height:"current",viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M2.62402 5.33984C2.14102 5.33984 1.74902 5.73184 1.74902 6.21484C1.74902 6.69784 2.14102 7.08984 2.62402 7.08984H18.374C18.857 7.08984 19.249 6.69784 19.249 6.21484C19.249 5.73184 18.857 5.33984 18.374 5.33984H2.62402ZM2.62402 9.71484C2.14102 9.71484 1.74902 10.1068 1.74902 10.5898C1.74902 11.0728 2.14102 11.4648 2.62402 11.4648H18.374C18.857 11.4648 19.249 11.0728 19.249 10.5898C19.249 10.1068 18.857 9.71484 18.374 9.71484H2.62402ZM2.62402 14.0898C2.14102 14.0898 1.74902 14.4818 1.74902 14.9648C1.74902 15.4478 2.14102 15.8398 2.62402 15.8398H18.374C18.857 15.8398 19.249 15.4478 19.249 14.9648C19.249 14.4818 18.857 14.0898 18.374 14.0898H2.62402Z",fill:"currentColor"})),navbarArrow:e=>c.createElement("svg",{width:27,height:27,viewBox:"0 0 27 27",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M17.9999 4.5L9.79537 12.7045C9.35603 13.1438 9.35603 13.8562 9.79537 14.2955L17.9999 22.5",stroke:"#4B5563",strokeWidth:3,strokeLinecap:"round"})),new:e=>c.createElement("svg",{width:"current",height:"current",viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("circle",{cx:10.0915,cy:10.0915,r:10.0915,fill:"currentColor"}),c.createElement("path",{d:"M13.3923 5.83097V14H12.0835L8.21334 8.41482H8.14564V14H6.67883V5.83097H8.01024L11.8578 11.4161H11.9368V5.83097H13.3923Z",fill:"white"})),pin:e=>c.createElement("svg",{width:"current",height:"current",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M15.0117 1.95312C14.7465 1.95312 14.4738 2.09163 14.2823 2.27493C12.7337 3.75773 12.2595 4.99773 12.8257 6.69633C11.5046 7.70893 10.6702 7.95743 9.02099 7.95743C6.76649 7.95743 5.29449 8.22923 4.29289 9.23013V9.26133C3.35569 10.1981 3.35569 11.6981 4.29289 12.6341L7.09309 15.4561L2.32199 20.2251C1.93149 20.6151 1.90239 21.2701 2.29289 21.6601C2.68349 22.0511 3.33989 22.0511 3.73049 21.6601L8.51929 16.8701L11.3242 19.6611C12.2615 20.5981 13.7619 20.5981 14.6992 19.6611H14.7305C15.7325 18.6601 16.0117 17.3771 16.0117 14.9451C16.0117 13.3991 16.329 12.3081 17.2897 11.1601C19.1386 11.7021 20.2143 11.1831 21.7305 9.66743C21.918 9.47993 22.0117 9.21413 22.0117 8.94903C22.0117 8.59733 21.9229 8.05823 21.6992 7.38743C21.3389 6.30733 20.7186 5.22063 19.7305 4.23303C18.7423 3.24553 17.6549 2.62553 16.5742 2.26543C15.903 2.04183 15.3636 1.95312 15.0117 1.95312Z",fill:"currentColor"})),search:e=>c.createElement("svg",{width:"current",height:"current",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M10.5 15C13.2614 15 15.5 12.7614 15.5 10C15.5 7.23858 13.2614 5 10.5 5C7.73858 5 5.5 7.23858 5.5 10C5.5 12.7614 7.73858 15 10.5 15Z",stroke:"currentColor",strokeWidth:1.5}),c.createElement("path",{d:"M13.5 14L18.5 19",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round"})),trash:e=>c.createElement("svg",{width:"current",height:"current",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M4.5 5L4.5 20C4.5 21.1046 5.39543 22 6.5 22H17.5C18.6046 22 19.5 21.1046 19.5 20V5",stroke:"currentColor",strokeWidth:2}),c.createElement("path",{d:"M10 11V16",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round"}),c.createElement("path",{d:"M14 11V16",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round"}),c.createElement("path",{d:"M2.5 5H21.5",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round"}),c.createElement("path",{d:"M7 5L7.22147 3.6712C7.3822 2.70683 8.21658 2 9.19425 2H12H14.8057C15.7834 2 16.6178 2.70683 16.7785 3.6712L17 5",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round"})),write:e=>c.createElement("svg",{width:"current",height:"current",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M12.5 3H5C3.89543 3 3 3.89543 3 5V19C3 20.1046 3.89543 21 5 21H19C20.1046 21 21 20.1046 21 19V11.5",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round"}),c.createElement("path",{d:"M17.7692 9.5553L11.4369 15.8419C11.2028 16.0743 10.9149 16.2452 10.5987 16.3394L6.84161 17.4584C6.65443 17.5141 6.47848 17.3434 6.52862 17.1546L7.44415 13.7085C7.53339 13.3726 7.70863 13.0657 7.95258 12.8182L14.4445 6.23064M17.7692 9.5553L19.5859 7.73859C20.3669 6.95754 20.3669 5.69122 19.5859 4.91017L19.0896 4.41394C18.3086 3.63289 17.0423 3.63289 16.2612 4.41394L14.4445 6.23064M17.7692 9.5553L14.4445 6.23064",stroke:"currentColor",strokeWidth:2})),loading:e=>c.createElement("svg",{width:"current",height:"current",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...e},c.createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),c.createElement("path",{d:"M18.364 5.636L16.95 7.05A7 7 0 1 0 19 12h2a9 9 0 1 1-2.636-6.364z"}))},Ct=Object.keys(ee);function E({name:e,color:r="gray",size:t=25,...o}){const n=ee[e];return a.jsx(n,{width:`${t}px`,height:`${t}px`,style:{color:Ce[r]},...o})}function kt({type:e="single",className:r="",children:t,...o}){const[n,s]=h.useState([]),l=i=>{if(e==="single"){s(g=>g.includes(i)?[]:[i]);return}s(g=>g.includes(i)?g.filter(u=>u!==i):[...g,i])};return a.jsx(xe.Provider,{value:{openItems:n,toggleItem:l,type:e},children:a.jsx("div",{className:y("w-full",r),...o,children:t})})}const D={initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{height:{duration:.2,ease:"easeOut"},opacity:{duration:.1}}};function Nt({trigger:e,isArrow:r=!0,value:t,btnClassName:o,contentClassName:n,children:s,...l}){const i=xt(),g=h.useId(),u=`accordion-trigger-${g}`,m=`accordion-content-${g}`,b=M.useReducedMotion(),{openItems:C,toggleItem:S}=i,N=C.includes(t);return a.jsxs("div",{className:"border-b border-gray-200","data-state":N?"open":"closed",...l,children:[a.jsxs("button",{id:u,"aria-controls":m,"aria-expanded":N,type:"button",onClick:()=>S(t),className:y("flex w-full cursor-pointer items-center justify-between px-6 py-4 text-left hover:bg-gray-50",o),children:[e,r&&a.jsx(M.motion.div,{animate:{rotate:N?180:0},transition:{duration:.2},className:"ml-2",children:a.jsx(E,{name:"arrowDown",size:20})})]}),a.jsx(M.AnimatePresence,{initial:!1,children:N&&a.jsx(M.motion.section,{id:m,"aria-labelledby":u,initial:b?void 0:D.initial,animate:b?void 0:D.animate,exit:b?void 0:D.exit,transition:b?void 0:D.transition,className:"overflow-hidden",children:a.jsx("div",{className:y("bg-gray-50 px-6 py-4",n),children:s})})})]})}const St={sm:{class:"size-14",width:56,height:56},md:{class:"size-16",width:64,height:64},lg:{class:"size-18",width:72,height:72},xl:{class:"size-20",width:80,height:80}};function Lt({size:e="lg",src:r,alt:t,className:o,...n}){const{class:s,width:l,height:i}=St[e];return a.jsx("img",{src:r,alt:t,width:l,height:i,loading:"lazy",className:y("rounded-full border border-gray-200 object-cover",s,o),...n})}const Et={positive:"bg-green-50 text-green-200",negative:"bg-red-100 text-red-300",neutral:"bg-gray-100 text-gray-400"};function Mt({variant:e="neutral",text:r,...t}){const o=Et[e];return a.jsx("div",{className:y("w-min rounded-lg px-2 py-1 text-sm font-semibold whitespace-nowrap",o),...t,children:r})}const ke=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Ne=pe,$=(e,r)=>t=>{var o;if((r==null?void 0:r.variants)==null)return Ne(e,t==null?void 0:t.class,t==null?void 0:t.className);const{variants:n,defaultVariants:s}=r,l=Object.keys(n).map(u=>{const m=t==null?void 0:t[u],b=s==null?void 0:s[u];if(m===null)return null;const C=ke(m)||ke(b);return n[u][C]}),i=t&&Object.entries(t).reduce((u,m)=>{let[b,C]=m;return C===void 0||(u[b]=C),u},{}),g=r==null||(o=r.compoundVariants)===null||o===void 0?void 0:o.reduce((u,m)=>{let{class:b,className:C,...S}=m;return Object.entries(S).every(N=>{let[k,f]=N;return Array.isArray(f)?f.includes({...s,...i}[k]):{...s,...i}[k]===f})?[...u,b,C]:u},[]);return Ne(e,l,g,t==null?void 0:t.class,t==null?void 0:t.className)},It=$("flex justify-center items-center py-2 md:py-3 md:text-base md:font-semibold text-sm font-medium cursor-pointer",{variants:{variant:{primary:"text-white",secondary:"",tertiary:"text-gray-400 bg-gray-100 hover:bg-gray-200"},size:{sm:"px-3 md:px-4",md:"px-5 md:px-7",lg:"px-10 md:px-[60px]",full:"w-full px-4"},color:{blue:"",red:"",green:""}},compoundVariants:[{variant:"primary",color:"red",class:"text-white bg-red-200 hover:bg-red-300"},{variant:"primary",color:"blue",class:"text-white bg-primary-300 hover:bg-primary-400"},{variant:"secondary",color:"blue",class:"text-primary-300 bg-primary-100 hover:bg-primary-200"},{variant:"secondary",color:"red",class:"text-red-200 bg-red-50 hover:bg-red-100"},{variant:"secondary",color:"green",class:"text-green-200 bg-green-50 hover:bg-green-100"}]});function At({children:e,variant:r,color:t,size:o="md",rounded:n=!1,isLoading:s=!1,disabled:l,className:i,...g}){const u=s||l;return a.jsxs("button",{type:"button",className:y(It({variant:r,color:t,size:o}),u&&"cursor-not-allowed bg-gray-100 text-gray-400 hover:bg-gray-100",n?"rounded-full":"rounded-[10px] md:rounded-xl",i),disabled:u,...g,children:[s&&a.jsx(E,{name:"loading",size:25,className:"mr-1.5 -ml-1 animate-spin max-md:h-[20px]"}),e]})}const Se=h.createContext(null),te=()=>{const e=h.useContext(Se);if(!e)throw new Error("useCarousel must be used within a CarouselProvider");return e},zt=()=>{const[e,r]=h.useState(0),[t,o]=h.useState(0),[n,s]=h.useState(!1),l=h.useRef(null),i=h.useRef(null);h.useEffect(()=>{if(l.current){const x=l.current.children.length;o(x)}},[]);const g=h.useCallback(f=>{if(!l.current)return;const x=l.current,L=x.clientWidth;x.scrollTo({left:L*f,behavior:"smooth"}),r(f)},[]),u=h.useCallback(()=>{if(n||t===0)return;const f=e>=t-1?0:e+1;g(f)},[g,n,e,t]),m=h.useCallback(()=>{const f=t-1,x=Math.min(e+1,f);g(x)},[e,t,g]),b=h.useCallback(()=>{const f=Math.max(0,e-1);g(f)},[e,g]);h.useEffect(()=>{if(!(t===0||n))return i.current=setInterval(u,3e3),()=>{i.current&&clearInterval(i.current)}},[u,t,n]);const C=()=>s(!0),S=()=>s(!1),N=e<t-1,k=e>0;return{currentIndex:e,totalItems:t,goToNext:m,goToPrevious:b,canGoNext:N,canGoPrevious:k,scrollContainerRef:l,handleMouseEnter:C,handleMouseLeave:S}};function Tt({className:e="",children:r}){const t=zt();return a.jsx(Se.Provider,{value:t,children:a.jsxs("div",{className:y("relative",e),onMouseEnter:t.handleMouseEnter,onMouseLeave:t.handleMouseLeave,role:"region","aria-roledescription":"carousel",children:[r,a.jsx(Ot,{}),a.jsx(Pt,{})]})})}function Bt({children:e,className:r=""}){const{scrollContainerRef:t}=te();return a.jsx("div",{ref:t,className:y("scroll no-scrollbar flex overflow-x-auto overflow-y-hidden scroll-smooth",r),children:e})}function jt({children:e,className:r=""}){return a.jsx("div",{className:y("w-full min-w-full flex-shrink-0",r),children:e})}function Ot(){const{goToPrevious:e,canGoNext:r,canGoPrevious:t}=te();return r||t?a.jsx("button",{onClick:e,disabled:!t,className:"absolute top-1/2 left-4 z-10 flex size-10 -translate-y-1/2 cursor-pointer items-center justify-center rounded-full bg-white shadow-lg transition-all hover:bg-gray-50 disabled:cursor-not-allowed disabled:opacity-50","aria-label":"이전",children:a.jsx(E,{name:"arrowLeft",className:"pr-0.5"})}):null}function Pt(){const{goToNext:e,canGoNext:r,canGoPrevious:t}=te();return r||t?a.jsx("button",{onClick:e,disabled:!r,className:"absolute top-1/2 right-4 z-10 flex size-10 -translate-y-1/2 cursor-pointer items-center justify-center rounded-full bg-white shadow-lg transition-all hover:bg-gray-50 disabled:cursor-not-allowed disabled:opacity-50","aria-label":"다음",children:a.jsx(E,{name:"arrowRight",className:"pl-0.5"})}):null}function Vt({as:e,className:r,children:t,...o}){const n=e||"div";return a.jsx(n,{className:y("box-border rounded-xl border border-gray-200 bg-white px-[22px] py-6 transition-colors hover:bg-gray-50",r),...o,children:t})}const Wt={row:"flex-row","row-reverse":"flex-row-reverse",col:"flex-col","col-reverse":"flex-col-reverse"},Gt={start:"items-start",end:"items-end",center:"items-center",baseline:"items-baseline",stretch:"items-stretch"},Ft={start:"justify-start",end:"justify-end",center:"justify-center",between:"justify-between",around:"justify-around",evenly:"justify-evenly",stretch:"justify-stretch",baseline:"justify-baseline"},Ht={nowrap:"flex-nowrap",wrap:"flex-wrap","wrap-reverse":"flex-wrap-reverse"};function W({as:e="div",dir:r="row",alignItems:t="stretch",justifyContent:o="start",wrap:n="nowrap",gap:s=0,className:l="",children:i,...g}){const u=e;return a.jsx(u,{className:y("flex",Wt[r],Gt[t],Ft[o],Ht[n],`gap-${s}`,l),...g,children:i})}function _t({left:e,right:r}){return a.jsxs(W,{dir:"row",justifyContent:"between",alignItems:"center",className:"w-full gap-2 md:gap-4",children:[a.jsx("div",{className:"flex-1",children:e}),a.jsx("div",{className:"flex-1",children:r})]})}function Z({isOpen:e,children:r}){const[t,o]=h.useState(!1);return h.useEffect(()=>(o(!0),()=>o(!1)),[]),t?_e.createPortal(a.jsx(M.AnimatePresence,{children:e&&r}),document.body):null}const re={initial:{opacity:0},animate:{opacity:1},exit:{opacity:0}},U={initial:{x:"100%"},animate:{x:0},exit:{x:"100%"},transition:{type:"spring",damping:30,stiffness:260}};function Dt({isOpen:e,onClose:r,children:t}){return a.jsxs(Z,{isOpen:e,children:[a.jsx(M.motion.div,{onClick:r,className:"fixed inset-0 bg-black/50",initial:re.initial,animate:re.animate,exit:re.exit}),a.jsx("div",{className:"fixed top-0 right-0 z-50 h-full",children:a.jsx(M.motion.div,{className:"h-full bg-white shadow-lg",initial:U.initial,animate:U.animate,exit:U.exit,transition:U.transition,children:t})})]})}const $t=$("whitespace-pre-wrap",{variants:{type:{Title1:"md:text-4xl text-2xl",Title2:"md:text-3xl text-xl",Title3:"md:text-2xl text-xl",Body1:"md:text-xl text-lg",Body2:"md:text-lg text-base",Body3:"md:text-base text-base",Caption1:"md:text-sm text-sm"},weight:{normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold"}},defaultVariants:{type:"Body1",weight:"semibold"}});function Zt({as:e,weight:r,className:t,children:o,...n}){const s=e||"p";return h.createElement(s,{className:y($t({type:n.variant,weight:r}),t),...n},o)}const B=e=>{function r(t){return a.jsx(Zt,{variant:e,...t})}return r},Le=B("Title1"),Ut=B("Title2"),Ee=B("Title3"),qt=B("Body1"),Jt=B("Body2"),Me=B("Body3"),oe=B("Caption1");function Kt({id:e,mode:r,...t}){const o=h.useId(),n=e||o;return a.jsxs("label",{className:"focus-within:bg-primary-50 block w-full cursor-pointer rounded-xl border border-gray-200 bg-gray-50 px-4 py-3 transition-colors hover:bg-gray-100 md:py-3.5",htmlFor:n,children:[a.jsxs(W,{alignItems:"center",children:[a.jsx(E,{name:"file",size:25,color:"gray"}),a.jsx(Me,{className:"text-gray-400",weight:"medium",children:t.placeholder||(r==="single"?"파일을 업로드해주세요":"파일 여러개를 선택해주세요")})]}),a.jsx("input",{id:n,name:"uploadFile",type:"file",multiple:r==="multiple",className:"hidden",...t})]})}const Xt={primary:"hover:bg-primary-400/20",gray:"hover:bg-gray-400/20",red:"hover:bg-red-400/20",green:"hover:bg-green-400/20",black:"hover:bg-black/20"};function Ie({iconName:e,color:r="gray",size:t,className:o,...n}){return a.jsx("button",{type:"button",className:y("cursor-pointer rounded-md p-1 transition",Xt[r],o),...n,children:a.jsx(E,{name:e,color:r,size:t})})}function Yt({value:e,onClickReset:r,...t}){return a.jsxs(W,{gap:8,alignItems:"center",className:"relative w-full",children:[a.jsx("input",{value:e,className:"focus:bg-primary-50 w-full rounded-xl border-none bg-gray-50 px-4 py-3 outline-1 outline-gray-200 md:py-3.5",...t}),e&&a.jsx(Ie,{title:"입력값 지우기","aria-label":"입력값 지우기",iconName:"close",color:"gray",size:18,onClick:r,className:"absolute top-1/2 right-3 -translate-y-1/2 transform cursor-pointer"})]})}const q={initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.3}};function Qt({isOpen:e,closeModal:r,children:t,className:o}){const n=s=>{s.target instanceof HTMLElement&&s.target===s.currentTarget&&r&&r()};return a.jsx(Z,{isOpen:e,children:a.jsxs(M.motion.div,{initial:q.initial,animate:q.animate,exit:q.exit,transition:q.transition,className:y("fixed inset-0 flex w-full items-center justify-center",o),children:[a.jsx("div",{className:"absolute inset-0 bg-black/50",onClick:n}),a.jsx(Rt,{children:t})]})})}function Rt({children:e}){return a.jsx(W,{role:"dialog","aria-modal":"true",justifyContent:"center",alignItems:"center",className:"relative z-40 rounded-lg bg-white p-6",children:e})}function er({title:e,size:r,onClick:t}){const o=()=>{if(t){t==null||t();return}window.history.back()};return a.jsx("button",{className:"flex cursor-pointer flex-row items-center gap-2 align-middle whitespace-nowrap",onClick:o,children:r==="sm"?a.jsxs(a.Fragment,{children:[a.jsx(E,{name:"arrowLeft",className:"w-4 md:w-6"}),a.jsx(Ee,{className:"whitespace-nowrap text-gray-500",children:e})]}):a.jsxs(a.Fragment,{children:[a.jsx(E,{name:"navbarArrow",className:"w-6 md:w-8"}),a.jsx(Le,{className:"whitespace-nowrap text-gray-500",children:e})]})})}function tr({className:e,...r}){return a.jsx("nav",{role:"navigation","aria-label":"pagination",className:y("flex cursor-pointer items-center justify-center gap-1",e),...r})}function rr({page:e,isActive:r,onClick:t}){return a.jsx("button",{onClickCapture:t,className:`size-9 cursor-pointer rounded px-3 py-1 font-semibold ${r?"bg-primary-100 text-primary-300 shadow-sm":"hover:bg-gray-100"}`,children:e})}function or({currentPage:e,totalPages:r,onPageChange:t,className:o=""}){const n=()=>{e>1&&t(e-1)},s=()=>{e<r&&t(e+1)};return a.jsxs(tr,{className:o,children:[r>=3&&e>1&&a.jsx(E,{name:"arrowLeft",size:35,className:"size-9 rounded-md px-2 py-1 hover:bg-gray-100",onClickCapture:n}),Array.from({length:r},(l,i)=>a.jsx(rr,{page:i+1,isActive:i+1===e,onClick:()=>t(i+1)},i)),r>=3&&e<r&&a.jsx(E,{name:"arrowRight",size:35,className:"size-9 rounded-md px-2 py-1 hover:bg-gray-100",onClickCapture:s})]})}const Ae=h.createContext(null),ze=()=>{const e=h.useContext(Ae);if(!e)throw new Error("error");return e},nr=$("font-semibold text- cursor-pointer first:rounded-t-md last:rounded-b-md hover:bg-gray-50",{variants:{size:{md:"px-3 py-1 text-sm",lg:"px-5 py-2 md:py-2.5"}},defaultVariants:{size:"lg"}});function Te({name:e,size:r,className:t}){const{onSelect:o,size:n,selected:s}=ze();return a.jsx("div",{role:"option",tabIndex:0,"aria-selected":s===e,onClick:()=>o(e),onKeyDown:l=>{(l.key==="Enter"||l.key===" ")&&(l.preventDefault(),o(e))},className:y(nr({size:r||n}),t),children:e})}function sr({name:e}){return a.jsx("div",{className:"border-b-2 border-gray-100 px-5 py-2 text-base text-gray-300 md:text-lg",children:e})}const ar=$("absolute top-full left-0 z-50 mt-1 max-h-60 w-full overflow-y-auto rounded-md border border-gray-200 bg-white font-semibold text-gray-400 shadow-lg",{variants:{size:{md:"text-sm min-w-24",lg:"text-base md:text-lg"}},defaultVariants:{size:"lg"}});function ne({children:e,size:r}){const{size:t}=ze();return a.jsx("div",{className:y(ar({size:r||t})),children:e})}const ir={md:"px-3 py-1 text-sm w-fit min-w-24",lg:"px-5 py-1.5 md:py-2.5 min-w-64 md:w-72 text-base md:text-lg"};function se({selected:e,onClick:r,isOpen:t,size:o="lg"}){return a.jsx("div",{onClick:r,className:y(ir[o],"flex cursor-pointer items-center rounded-lg border border-gray-200 bg-white text-start font-semibold text-gray-400"),children:a.jsxs("button",{className:y("flex w-full items-center justify-between rounded-lg align-middle hover:rounded-lg",t&&"hover:rounded-b-none"),children:[e,a.jsx(E,{name:"arrowDown",className:y("transform transition-transform duration-300",t&&"rotate-180",o==="md"&&"w-5")})]})})}function Be({value:e,onChange:r,size:t="lg",children:o}){const[n,s]=h.useState(!1),l=i=>{s(!1),r==null||r(i)};return a.jsx(Ae.Provider,{value:{selected:e,onSelect:l,size:t},children:a.jsxs("div",{className:"relative w-fit",children:[a.jsx(se,{selected:e,onClick:()=>s(!n),size:t,isOpen:n}),n&&a.jsx(ne,{children:o})]})})}const lr=Object.assign(Be,{Option:Te,Button:se,List:ne});Object.assign(Be,{Option:Te,Select:se,List:ne,Group:sr});function cr({className:e,...r}){return a.jsx("div",{className:y("w-full animate-pulse rounded-md bg-gray-200",e),...r})}function dr({color:e="primary",...r}){return a.jsx(ue.Root,{...r,className:"group flex h-3.5 w-7 items-center rounded-full shadow-lg data-[state=checked]:bg-[var(--switch-color)] data-[state=unchecked]:bg-gray-500",style:e&&{"--switch-color":Ce[e]},children:a.jsx(ue.Thumb,{className:"h-5 w-5 -translate-x-1.5 rounded-full bg-white shadow-inner drop-shadow-md duration-100 group-data-[state=checked]:translate-x-3.5"})})}const je=h.createContext(void 0);function ur({children:e,defaultIndex:r=0,...t}){const o=h.useMemo(()=>h.Children.toArray(e).filter(l=>h.isValidElement(l)).map(l=>l.props.label),[e]),[n,s]=h.useState(o[r]);return a.jsx(je.Provider,{value:{activeLabel:n},children:a.jsxs("div",{...t,children:[a.jsx("nav",{className:"flex w-full",children:o.map(l=>a.jsxs(M.motion.button,{className:`relative grow transform p-3 font-semibold ${n===l?"text-primary-300 hover:bg-primary-50":"text-gray-500 hover:bg-gray-50"} md:p-4 md:text-xl`,onClick:()=>s(l),children:[l,l===n&&a.jsx(M.motion.div,{className:"bg-primary-300 absolute right-0 -bottom-0.5 left-0 h-0.5",layoutId:"underline",id:"underline"})]},l))}),e]})})}function gr({label:e,children:r,...t}){const o=h.useContext(je),n=(o==null?void 0:o.activeLabel)===e;return a.jsx("div",{className:`${!n&&"hidden"}`,...t,children:r})}const pr={gray:"bg-gray-50",white:"bg-white"};function hr({value:e,variant:r="gray",rows:t=3,showCounter:o=!1,className:n,...s}){return a.jsxs(W,{dir:"col",gap:2,children:[a.jsx("textarea",{rows:t,className:y("focus:border-primary-100 w-full resize-none rounded-xl border-none px-4 py-3 text-gray-900 outline-1 outline-gray-200 transition-colors placeholder:text-gray-400 focus:border-1",pr[r],n),...s}),o&&s.maxLength&&a.jsxs(oe,{weight:"normal",className:"text-right text-gray-500",children:[e.length??0,"/",s.maxLength]})]})}const fr={SPRING:{initial:{opacity:0,scale:.6,y:15},animate:{opacity:1,scale:1,y:0,transition:{type:"spring",stiffness:300,damping:20,mass:.8}},exit:{opacity:0,scale:.6,y:15,transition:{duration:.1}}},POP:{initial:{opacity:0,scale:.3},animate:{opacity:1,scale:1,transition:{type:"spring",stiffness:500,damping:15,mass:.5}},exit:{opacity:0,scale:.3,transition:{duration:.08}}},SMOOTH:{initial:{opacity:0,y:10},animate:{opacity:1,y:0,transition:{duration:.2,ease:"easeOut"}},exit:{opacity:0,y:10,transition:{duration:.15,ease:"easeIn"}}}},mr={primary:{bg:"bg-primary-300",text:"text-white"},gray:{bg:"bg-gray-400",text:"text-white"},red:{bg:"bg-red-300",text:"text-white"},green:{bg:"bg-green-300",text:"text-white"},orange:{bg:"bg-orange-500",text:"text-white"},yellow:{bg:"bg-yellow-400",text:"text-black"},purple:{bg:"bg-purple-500",text:"text-white"},white:{bg:"bg-white border border-gray-200",text:"text-gray-800"},black:{bg:"bg-black",text:"text-white"}},br=()=>{const[e,r]=h.useState(!1),[t,o]=h.useState(null),n=h.useRef(null),s=()=>r(!0),l=()=>r(!1);return h.useEffect(()=>{if(n.current&&e){const i=n.current.getBoundingClientRect();o({top:i.top,left:i.left+i.width/2})}},[e]),{open:e,ref:n,show:s,hide:l,position:t}};function wr({content:e,color:r="gray",animationMode:t="SPRING",children:o}){const n=h.useId(),{open:s,ref:l,show:i,hide:g,position:u}=br(),m=mr[r],b=fr[t];return a.jsxs("div",{ref:l,className:"inline-flex",onMouseEnter:i,onMouseLeave:g,onFocus:i,onBlur:g,onClick:()=>s?g():i(),"aria-describedby":s?n:void 0,children:[o,a.jsx(Z,{isOpen:s,children:a.jsx(M.motion.div,{id:n,role:"tooltip","aria-live":"polite",initial:b.initial,animate:b.animate,exit:b.exit,className:y("fixed -translate-x-1/2 -translate-y-full rounded px-2 py-1 whitespace-nowrap shadow-lg",m.bg),style:{top:u==null?void 0:u.top,left:u==null?void 0:u.left},children:a.jsx(oe,{weight:"medium",className:m.text,children:e})})})]})}const yr=()=>{const[e,r]=h.useState(!1);return{isOpen:e,openModal:()=>r(!0),closeModal:()=>r(!1)}};d.Accordion=kt,d.AccordionItem=Nt,d.Avatar=Lt,d.Badge=Mt,d.Body1=qt,d.Body2=Jt,d.Body3=Me,d.Button=At,d.Caption1=oe,d.Card=Vt,d.Carousel=Tt,d.CarouselContent=Bt,d.CarouselItem=jt,d.DoubleButton=_t,d.Drawer=Dt,d.FileUpload=Kt,d.Flex=W,d.Icon=E,d.IconButton=Ie,d.Icons=ee,d.Input=Yt,d.Modal=Qt,d.NavBack=er,d.Pagination=or,d.Portal=Z,d.Select=lr,d.Skeleton=cr,d.Switch=dr,d.TabItem=gr,d.Tabs=ur,d.TextArea=hr,d.Title1=Le,d.Title2=Ut,d.Title3=Ee,d.Tooltip=wr,d.cn=y,d.colors=V,d.iconNames=Ct,d.usePortal=yr,Object.defineProperty(d,Symbol.toStringTag,{value:"Module"})}));
2
2
  //# sourceMappingURL=ddingdong-design-system.umd.js.map