boottent-design 0.1.165 → 0.1.166

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.
@@ -20,4 +20,4 @@ https://github.com/highlightjs/highlight.js/issues/2277`),Ae=_,Y=D);const he={co
20
20
  @keyframes `.concat(r,` {
21
21
  `).concat(t,`
22
22
  }
23
- `);return s&&s.insertRule(o,0),r},Zn=function(){return Zn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Zn.apply(this,arguments)},Jx=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},e0=Qx("BeatLoader","50% {transform: scale(0.75);opacity: 0.2} 100% {transform: scale(1);opacity: 1}","beat");function t0(e){var t=e.loading,n=t===void 0?!0:t,r=e.color,i=r===void 0?"#000000":r,s=e.speedMultiplier,o=s===void 0?1:s,a=e.cssOverride,l=a===void 0?{}:a,u=e.size,c=u===void 0?15:u,f=e.margin,d=f===void 0?2:f,p=Jx(e,["loading","color","speedMultiplier","cssOverride","size","margin"]),m=Zn({display:"inherit"},l),g=function(y){return{display:"inline-block",backgroundColor:i,width:kr(c),height:kr(c),margin:kr(d),borderRadius:"100%",animation:"".concat(e0," ").concat(.7/o,"s ").concat(y%2?"0s":"".concat(.35/o,"s")," infinite linear"),animationFillMode:"both"}};return n?M.createElement("span",Zn({style:m},p),M.createElement("span",{style:g(1)}),M.createElement("span",{style:g(2)}),M.createElement("span",{style:g(3)})):null}const dt=({group:e,depth:t,variant:n="default",isChildrenList:r=!1})=>{const i=di(n);if(!e||e.length===0)return null;const s=fi(e),o=["list-decimal","list-lower","list-roman"],a=["list-disc","list-square","list-circle"];return s.map((l,u)=>{const c=l.type==="numbered_list"?"ol":"ul",f=l.type==="numbered_list"?o[o.length%t]:a[a.length%t],d=l.type==="numbered_list"?"numbered_list_item":"bulleted_list_item";return l.type==="numbered_list"||l.type==="bulleted_list"?h.jsx(c,{className:b.cn(i.list,f,"rounded-lg not-italic",t===1?"mb-4 space-y-4 p-4 pl-8":"space-y-1 bg-transparent pl-4",r?"bg-transparent p-0 pl-4":"bg-grey-100"),children:l.blocks.map(p=>h.jsxs(ce.li,{initial:{opacity:0},animate:{opacity:1},className:b.cn(t===1?"text-grey-800 marker:text-grey-800":"text-grey-600 marker:text-main-400",i.listItem),children:[Ke(p,n),p.has_children&&(p.children||[]).length>0&&h.jsx("div",{className:"mt-1",children:(p.children||[]).some(m=>m.type===d)?dt({group:(p.children||[]).filter(m=>m.type===d),depth:t+1,variant:n,isChildrenList:!0}):h.jsx("div",{className:"pl-1 text-grey-600",children:(p.children||[]).map((m,g)=>h.jsx(Qn,{block:m,variant:n,isLast:!0},m.type+m.id+g))})})]},p.type+p.id+u))},l.type+u):h.jsx("div",{children:Ke(l.block,n)},l.block.id||u)})},n0=(e,t)=>!e||e.length===0?null:e.map((n,r)=>{const{annotations:i,text:s}=n;if(!s)return null;const{bold:o,italic:a,underline:l,strikethrough:u,code:c,color:f,backgroundColor:d}=i,p=b.cn("whitespace-pre-wrap",o&&"font-semibold",a&&"italic",l&&"underline",u&&"line-through",td[f]??"",c&&"bg-grey-200 bg-opacity-80 px-1.5 rounded py-0.5 text-red-400",ps[d||""]?`${ps[d]} bg-opacity-80 px-1.5 rounded py-0.5`:"",t),m=s.link&&s.link.url?h.jsx(J.Anchor,{type:"external",href:s.link.url,className:"text-main-600 underline",children:s.content}):s.content;return h.jsx("span",{className:p,children:m},r)}),Ke=(e,t="default",n=!1,r=null)=>{var f,d,p,m,g,y,v,x,w,E,T,C,L,j,K,H,ue,de,fe,pe,ae,ye,q,ne,le,se,Le,Pe,_,D,U,W,Y,Ae,he,ve,xe,Re,Qe,vt,$e,Pt,Ge,ze,Oe,Ot,Je,$,me,te,X,G,z;const i=`${e.type}-block`,s=di(t),o=((f=e[e.type])==null?void 0:f.rich_text)||"",a=(e==null?void 0:e.children)||[],l=ta(e,t)&&((d=er[t][e.type])==null?void 0:d.className)||"",u=a==null?void 0:a.some(N=>Jo.includes(N.type)),c=N=>n0(N,l);switch(e.type){case"loading":return h.jsx(ce.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:b.cn(i,s.loading),children:h.jsx(t0,{size:8})});case"paragraph":return o&&o.length>0?h.jsx(ce.p,{initial:{opacity:0},animate:{opacity:1},className:b.cn(i,s.paragraph,n&&"mb-0"),children:c(((p=e.paragraph)==null?void 0:p.rich_text)||"")}):h.jsx(ce.div,{initial:{opacity:0},animate:{opacity:1},className:b.cn(i,s.paragraph),children:" "});case"heading_1":return o&&o.length>0?h.jsx(ce.h1,{initial:{opacity:0},animate:{opacity:1},className:b.cn(i,s.heading1),children:c(((m=e.heading_1)==null?void 0:m.rich_text)||"")}):null;case"heading_2":return o&&o.length>0?h.jsx(ce.h2,{initial:{opacity:0},animate:{opacity:1},className:b.cn(i,s.heading2),children:c(((g=e.heading_2)==null?void 0:g.rich_text)||"")}):null;case"heading_3":return o&&o.length>0?h.jsx(ce.h3,{initial:{opacity:0},animate:{opacity:1},className:b.cn(i,s.heading3),children:c(((y=e.heading_3)==null?void 0:y.rich_text)||"")}):null;case"bulleted_list_item":case"numbered_list_item":return o&&o.length>0?h.jsx("span",{className:b.cn(i,s.listItem),children:c(e.type==="bulleted_list_item"?((v=e.bulleted_list_item)==null?void 0:v.rich_text)||"":((x=e.numbered_list_item)==null?void 0:x.rich_text)||"")}):null;case"quote":return o&&o.length>0?h.jsxs(ce.blockquote,{initial:{opacity:0},animate:{opacity:1},className:b.cn(i,s.quote),children:[c(((w=e.quote)==null?void 0:w.rich_text)||""),e.children&&e.children.length>0&&h.jsx("div",{className:"space-y-1",children:u?dt({group:e.children,depth:1,variant:t}):e.children.map((N,I)=>h.jsx(S.Fragment,{children:Ke(N,t,!0,"quote")},e.type+N.id+I))})]}):null;case"divider":return h.jsx("hr",{className:b.cn(i,s.divider)});case"image":{const N=((T=(E=e.image)==null?void 0:E.file)==null?void 0:T.url)||((L=(C=e.image)==null?void 0:C.external)==null?void 0:L.url),I=(j=e.image)!=null&&j.caption?e.image.caption:"Image";return h.jsxs(ce.figure,{initial:{opacity:0},animate:{opacity:1},className:b.cn(i,"flex flex-col items-center overflow-hidden rounded-lg"),children:[N?h.jsx("div",{className:s.image,children:h.jsx("img",{src:N||"/placeholder.svg",className:"h-full w-full object-cover",alt:I||"Image"})}):h.jsx("div",{className:"w-full rounded-lg bg-grey-200 p-4",children:"이미지를 불러올 수 없습니다"}),((H=(K=e.image)==null?void 0:K.caption)==null?void 0:H.length)>0&&h.jsx("figcaption",{className:"mt-2 text-center text-sm text-gray-500",children:typeof((ue=e.image)==null?void 0:ue.caption)=="string"?I:c(I)})]})}case"callout":{const N=((fe=(de=e.callout)==null?void 0:de.icon)==null?void 0:fe.emoji)||null,I=r==="column";return h.jsxs(ce.div,{initial:{opacity:0},animate:{opacity:1},className:b.cn(i,s.callout,I&&"h-full","flex rounded-lg px-4 py-6"),children:[h.jsx("div",{className:"flex-shrink-0",children:h.jsx("div",{className:"flex h-6 w-6 items-center justify-center text-lg md:text-xl",children:N||"💡"})}),h.jsxs("div",{className:"flex flex-col gap-2",children:[o.length>0&&h.jsx("div",{className:"text-base md:text-lg",children:c(o)}),e.children&&e.children.length>0&&h.jsx("div",{className:"space-y-1",children:u?dt({group:e.children,depth:1,variant:t,isChildrenList:u}):e.children.map((A,R)=>h.jsx(S.Fragment,{children:Ke(A,t,!0,"callout")},e.type+A.id+R))})]})]})}case"code":{const N=((pe=e.code)==null?void 0:pe.rich_text)||[],I=((ae=e.code)==null?void 0:ae.language)||"plaintext";if(N.length>0&&((ye=N[0].plain_text)!=null&&ye.startsWith("!#btrl"))){const R=[N[1]],O=N.slice(2);return I==="bash"?h.jsxs(ce.div,{initial:{opacity:0},animate:{opacity:1},className:b.cn(i,s.callout,"mb-2 flex h-full rounded-3xl px-6 py-8"),children:[h.jsx("span",{className:"break-keep text-lg font-bold md:text-xl",children:c(R)}),h.jsx("span",{className:"mt-[1px] whitespace-pre-wrap break-words text-base md:text-lg",children:c(O)})]}):I==="abap"?h.jsxs(ce.div,{initial:{opacity:0},animate:{opacity:1},className:b.cn(i,s.callout,"mb-2 flex h-full rounded-3xl border border-border bg-transparent px-6 py-8"),children:[h.jsx("span",{className:"break-keep text-lg font-bold md:text-xl",children:c(R)}),h.jsx("span",{className:"mt-[1px] whitespace-pre-wrap break-words text-base md:text-lg",children:c(O)})]}):h.jsxs(ce.div,{initial:{opacity:0},animate:{opacity:1},className:b.cn(i,s.callout,"mb-2 flex h-full rounded-3xl bg-grey-100 px-6 py-8"),children:[h.jsx("span",{className:"break-keep text-lg font-bold md:text-xl",children:c(R)}),h.jsx("span",{className:"mt-[1px] whitespace-pre-wrap break-words text-base md:text-lg",children:c(O)})]})}const A=N.map(R=>R.plain_text).join("")||"";return h.jsx(_u,{code:A,language:I})}case"to_do":{const N=((q=e.to_do)==null?void 0:q.checked)||!1;return o&&o.length>0?h.jsxs("div",{className:b.cn(i,"mb-2 flex items-start gap-2"),children:[h.jsx("input",{type:"checkbox",checked:N,readOnly:!0,className:"mt-1 h-4 w-4 rounded border-gray-300"}),h.jsx("span",{className:b.cn(s.paragraph,N?"text-gray-400 line-through":""),children:c(((ne=e.to_do)==null?void 0:ne.rich_text)||"")})]}):null}case"toggle":return o&&o.length>0?h.jsxs("details",{className:b.cn(i,"group mb-4"),children:[h.jsx("summary",{className:b.cn(s.paragraph,"cursor-pointer"),children:h.jsx("span",{className:"px-1",children:c(((le=e.toggle)==null?void 0:le.rich_text)||"")})}),h.jsx("div",{className:"mt-2 pl-4",children:e.children&&e.children.length>0&&h.jsx("div",{className:"space-y-1",children:u?dt({group:e.children,depth:1,variant:t}):e.children.map((N,I)=>h.jsx(S.Fragment,{children:Ke(N,t,!0,"toggle")},e.type+N.id+I))})})]}):null;case"table":return h.jsx("div",{className:b.cn(i,"mb-4 overflow-x-auto"),children:h.jsx("table",{className:b.cn(s.table,"min-w-full table-auto"),children:h.jsx("tbody",{children:a.map((N,I)=>{var A,R;return h.jsx("tr",{className:s.tableRow,children:(R=(A=N.table_row)==null?void 0:A.cells)==null?void 0:R.map((O,P)=>{var xt,hs;const Z=((xt=e.table)==null?void 0:xt.has_column_header)&&I===0,We=Z?"th":"td";return h.jsx(We,{className:b.cn(s.tableCell,"px-4 py-2 align-top",Z?"text-left font-semibold":"text-left"),style:{minWidth:"120px",textAlign:"left",wordBreak:"break-word"},children:(hs=O||[])==null?void 0:hs.map((Wu,Ku)=>h.jsx(S.Fragment,{children:c([Wu])},Ku))},P)})},N.id||I)})})})});case"bookmark":{const N=((se=e.bookmark)==null?void 0:se.url)||"",{meta:I,loading:A}=Yx(N);return N?h.jsx(ce.div,{initial:{opacity:0},animate:{opacity:1},className:b.cn(i,"mb-4 block"),children:A?h.jsx("div",{className:"h-24 animate-pulse rounded-md bg-gray-100"}):I?h.jsxs(S.Fragment,{children:[h.jsxs(J.Anchor,{type:"external",href:N,className:"flex h-auto w-full flex-col items-center overflow-hidden rounded-md border border-gray-200 transition-all hover:bg-gray-50 hover:shadow xs:h-24 xs:flex-row lg:h-28",children:[I.image&&h.jsx("div",{className:"aspect-video h-auto w-full flex-shrink-0 rounded-md xs:h-full xs:w-auto",children:h.jsx("img",{src:I.image,alt:I.title,className:"h-full w-full object-cover"})}),h.jsxs("div",{className:"flex flex-col p-4",children:[h.jsx("div",{className:"line-clamp-2 text-sm font-semibold md:text-base",children:I.title}),h.jsx("div",{className:"line-clamp-2 text-sm text-gray-500",children:I.description})]})]}),((Pe=(Le=e.bookmark)==null?void 0:Le.caption)==null?void 0:Pe.length)>0&&h.jsx("div",{className:"mt-2 text-xs text-grey-500 md:text-sm",children:c(e.bookmark.caption)})]}):h.jsxs("div",{className:"mb-4 block rounded-md border border-gray-200 p-4 text-base hover:bg-gray-50",children:[h.jsx(J.Anchor,{type:"external",href:N,children:N}),((D=(_=e.bookmark)==null?void 0:_.caption)==null?void 0:D.length)>0&&h.jsx("div",{className:"mt-2 text-sm text-gray-500",children:c(e.bookmark.caption)})]})}):null}case"embed":{const N=((U=e.embed)==null?void 0:U.url)||"";return h.jsxs("div",{className:b.cn(i,"mb-4"),children:[h.jsx("iframe",{src:N,className:"aspect-[3/4] max-h-[80vh] w-full overflow-hidden rounded-lg shadow-md md:aspect-square lg:aspect-video",title:"Embedded content",allowFullScreen:!0}),((Y=(W=e.embed)==null?void 0:W.caption)==null?void 0:Y.length)>0&&h.jsx("div",{className:"mt-2 text-sm text-muted",children:c(e.embed.caption)})]})}case"video":{const N=((he=(Ae=e.video)==null?void 0:Ae.external)==null?void 0:he.url)||((xe=(ve=e.video)==null?void 0:ve.file)==null?void 0:xe.url)||"",I=id(N);return h.jsxs(ce.div,{initial:{opacity:0},animate:{opacity:1},className:b.cn(i,"mb-4"),children:[N?h.jsx("div",{className:"w-full",children:h.jsx("div",{className:"relative aspect-video overflow-hidden",children:h.jsx("iframe",{className:"absolute left-0 top-0 h-full w-full",src:I,title:"YouTube video player",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})})}):h.jsx("div",{className:"mb-4 w-full rounded-lg bg-grey-200 p-4",children:"비디오를 불러올 수 없습니다"}),((Qe=(Re=e.video)==null?void 0:Re.caption)==null?void 0:Qe.length)>0&&h.jsx("div",{className:"mt-2 text-sm text-gray-500",children:c(e.video.caption)})]})}case"file":{const N=(($e=(vt=e.file)==null?void 0:vt.external)==null?void 0:$e.url)||((Ge=(Pt=e.file)==null?void 0:Pt.file)==null?void 0:Ge.url)||"",I=N.split("/").pop()||"File";return h.jsxs(ce.div,{initial:{opacity:0},animate:{opacity:1},className:b.cn("mb-4"),children:[h.jsxs(J.Anchor,{type:"external",href:N,className:b.cn(i,"flex flex-col gap-2 rounded-md border border-gray-200 p-3 hover:bg-gray-50"),children:[h.jsxs("span",{className:"flex items-center gap-1 text-sm text-muted",children:[h.jsx(b.Icon.CopyLink,{size:20,fill:Rt.colors.grey[400]}),"클릭하면 파일이 다운로드됩니다 :)"]}),h.jsx("span",{className:"line-clamp-2 break-all text-xs",children:I})]}),((Oe=((ze=e.file)==null?void 0:ze.caption)||[])==null?void 0:Oe.length)>0&&h.jsx("div",{className:"mt-2 text-xs text-grey-500 md:text-sm",children:c(e.file.caption)})]})}case"table_of_contents":return h.jsxs("div",{className:b.cn(i,"mb-4 rounded-md border border-gray-200 p-4"),children:[h.jsx("div",{className:"mb-2 font-medium",children:"목차"}),h.jsx("div",{className:"text-sm text-gray-600",children:"(목차 내용은 전체 문서 분석 후 생성됩니다)"})]});case"link_preview":case"link_to_page":{const N=((Ot=e.link_preview)==null?void 0:Ot.url)||((Je=e[e.type])==null?void 0:Je.url)||"#",I=(($=e.link_preview)==null?void 0:$.url)||((me=e[e.type])==null?void 0:me.page_id)||"링크";return h.jsx(ce.div,{initial:{opacity:0},animate:{opacity:1},className:b.cn(i,"mb-4"),children:h.jsx(J.Anchor,{type:"external",href:N,children:I})})}case"child_page":case"child_database":{const N=((te=e[e.type])==null?void 0:te.title)||"하위 페이지";return h.jsxs("div",{className:b.cn(i,"mb-4 rounded-md border border-gray-200 p-3"),children:[h.jsx("div",{className:"font-medium",children:N}),h.jsx("div",{className:"text-sm text-gray-500",children:e.type==="child_page"?"하위 페이지":"하위 데이터베이스"})]})}case"template":return h.jsxs("div",{className:b.cn(i,"mb-4 rounded-md border border-gray-200 p-3"),children:[h.jsx("div",{className:"font-medium",children:"템플릿"}),(((X=e.template)==null?void 0:X.rich_text)||"").length>0&&h.jsx("div",{children:c(((G=e.template)==null?void 0:G.rich_text)||"")})]});case"synced_block":return h.jsx("div",{className:b.cn(i,"mb-4"),children:a.map((N,I)=>h.jsx("div",{children:Ke(N,t,!1,"synced_block")},e.type+N.id+I))});case"column_list":return h.jsx(ce.div,{initial:{opacity:0},animate:{opacity:1},className:b.cn(i,"mb-4 grid w-full grid-cols-1 gap-0 sm:grid-cols-2 sm:gap-4"),children:a.map((N,I)=>h.jsx("div",{className:"w-full min-w-[150px] flex-1",children:Ke(N,t,!1,"column_list")},e.type+N.id+I))});case"column":return h.jsx(ce.div,{initial:{opacity:0},animate:{opacity:1},className:b.cn(i,"h-auto w-full sm:h-full"),children:a==null?void 0:a.map((N,I)=>h.jsx(S.Fragment,{children:Ke(N,t,!1,"column")},e.type+N.id+I))});case"unsupported":return null;default:return o&&o.length>0?h.jsx("p",{className:b.cn(i,s.paragraph),children:c(((z=e[e.type])==null?void 0:z.rich_text)||"")}):h.jsxs("div",{className:b.cn(i,"mb-4 rounded-md border border-gray-200 p-3 text-sm text-gray-500"),children:["지원되지 않는 블록 타입: ",e.type]})}},Qn=({block:e,accordionHeadings:t=[],variant:n="default",isLast:r=!1})=>{const i=ea(e,n),s=rd(e,n),o=ta(e,n);if(Jo.includes(e.type)&&e.children)return dt({group:e.children,depth:1,variant:n});if(i>0){const a=Ke(e,n);if(!a&&(!e.children||e.children.length===0))return null;const l=e.children?fi(e.children):[];return o&&t.includes(e.type)&&l.length>0?h.jsx(Zt.Root,{type:"single",collapsible:!0,className:"mb-1 w-full md:mb-2 lg:mb-4",children:h.jsxs(Zt.Item,{value:e.id,className:"border-b-main-100",children:[h.jsx(Zt.Trigger,{className:"whitespace-pre-wrap py-2 md:whitespace-normal",children:a}),h.jsx(Zt.Content,{children:l.map((u,c)=>u.type==="bulleted_list"||u.type==="numbered_list"?h.jsx("div",{children:dt({group:u.blocks,depth:1,variant:n})},u.type+c):h.jsx(Qn,{block:u.block,accordionHeadings:t,variant:n},u.block.id+c))})]})}):h.jsxs(s,{children:[a,l.length>0&&h.jsx("div",{className:"mt-4",children:l.map((u,c)=>u.type==="bulleted_list"||u.type==="numbered_list"?h.jsx("div",{children:dt({group:u.blocks,depth:1,variant:n})},u.type+c):h.jsx(Qn,{block:u.block,accordionHeadings:t,variant:n},u.block.id+c))})]})}return Ke(e,n,r)},r0=({blocks:e,accordionHeadings:t=[],className:n,variant:r="default"})=>{const i=nd(e,r),s=di(r),o=a=>fi(a).map((u,c)=>u.type==="bulleted_list"||u.type==="numbered_list"?h.jsx(S.Fragment,{children:dt({group:u.blocks,depth:1,variant:r})},u.type+c):h.jsx(Qn,{block:u.block,accordionHeadings:t,variant:r},u.type+c));return h.jsx(Fx,{children:h.jsx("div",{className:b.cn(s.container,n),children:o(i)})})},i0=()=>{const[e,t]=S.useState([]);return S.useEffect(()=>{const c=(d,p)=>{t(p?m=>m.includes(d.id)?m:[...m,d.id]:m=>m.filter(g=>g!==d.id))},f=V.portalManager.subscribe(c);return t(V.portalManager.getOpenPortals()),()=>{f()}},[]),{modal:c=>{const{onClose:f=()=>{}}=c;return V.portalManager.showPortal("modal",{...c,onClose:f})},toast:c=>{let f;return typeof c=="string"?f={description:c}:f=c,V.portalManager.showPortal("toast",f)},alert:c=>{let f;return typeof c=="string"?f={description:c,onClose:()=>{}}:f={...c,onClose:c.onClose||(()=>{})},V.portalManager.showPortal("alert",f)},dialog:c=>{const{onClose:f=()=>{}}=c;return V.portalManager.showPortal("dialog",{...c,onClose:f})},custom:c=>{const{onClose:f=()=>{}}=c;return V.portalManager.showPortal("custom",{...c,onClose:f})},getIsOpen:c=>V.portalManager.getIsPortalOpen(c),closePortal:c=>{V.portalManager.closePortal(c)},closeAllPortals:()=>{V.portalManager.closeAllPortals()},openPortals:e}};var[hr,F0]=b.createContextScope("Tooltip",[b.createPopperScope]),pr=b.createPopperScope(),Su="TooltipProvider",s0=700,ci="tooltip.open",[o0,ls]=hr(Su),Nu=e=>{const{__scopeTooltip:t,delayDuration:n=s0,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:s}=e,[o,a]=M.useState(!0),l=M.useRef(!1),u=M.useRef(0);return M.useEffect(()=>{const c=u.current;return()=>window.clearTimeout(c)},[]),h.jsx(o0,{scope:t,isOpenDelayed:o,delayDuration:n,onOpen:M.useCallback(()=>{window.clearTimeout(u.current),a(!1)},[]),onClose:M.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>a(!0),r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:M.useCallback(c=>{l.current=c},[]),disableHoverableContent:i,children:s})};Nu.displayName=Su;var mr="Tooltip",[a0,gr]=hr(mr),Cu=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:i=!1,onOpenChange:s,disableHoverableContent:o,delayDuration:a}=e,l=ls(mr,e.__scopeTooltip),u=pr(t),[c,f]=M.useState(null),d=b.useId(),p=M.useRef(0),m=o??l.disableHoverableContent,g=a??l.delayDuration,y=M.useRef(!1),[v=!1,x]=b.useControllableState({prop:r,defaultProp:i,onChange:L=>{L?(l.onOpen(),document.dispatchEvent(new CustomEvent(ci))):l.onClose(),s==null||s(L)}}),w=M.useMemo(()=>v?y.current?"delayed-open":"instant-open":"closed",[v]),E=M.useCallback(()=>{window.clearTimeout(p.current),p.current=0,y.current=!1,x(!0)},[x]),T=M.useCallback(()=>{window.clearTimeout(p.current),p.current=0,x(!1)},[x]),C=M.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>{y.current=!0,x(!0),p.current=0},g)},[g,x]);return M.useEffect(()=>()=>{p.current&&(window.clearTimeout(p.current),p.current=0)},[]),h.jsx(b.Root2,{...u,children:h.jsx(a0,{scope:t,contentId:d,open:v,stateAttribute:w,trigger:c,onTriggerChange:f,onTriggerEnter:M.useCallback(()=>{l.isOpenDelayed?C():E()},[l.isOpenDelayed,C,E]),onTriggerLeave:M.useCallback(()=>{m?T():(window.clearTimeout(p.current),p.current=0)},[T,m]),onOpen:E,onClose:T,disableHoverableContent:m,children:n})})};Cu.displayName=mr;var ui="TooltipTrigger",Au=M.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=gr(ui,n),s=ls(ui,n),o=pr(n),a=M.useRef(null),l=b.useComposedRefs(t,a,i.onTriggerChange),u=M.useRef(!1),c=M.useRef(!1),f=M.useCallback(()=>u.current=!1,[]);return M.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),h.jsx(b.Anchor,{asChild:!0,...o,children:h.jsx(b.Primitive.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:l,onPointerMove:b.composeEventHandlers(e.onPointerMove,d=>{d.pointerType!=="touch"&&!c.current&&!s.isPointerInTransitRef.current&&(i.onTriggerEnter(),c.current=!0)}),onPointerLeave:b.composeEventHandlers(e.onPointerLeave,()=>{i.onTriggerLeave(),c.current=!1}),onPointerDown:b.composeEventHandlers(e.onPointerDown,()=>{u.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:b.composeEventHandlers(e.onFocus,()=>{u.current||i.onOpen()}),onBlur:b.composeEventHandlers(e.onBlur,i.onClose),onClick:b.composeEventHandlers(e.onClick,i.onClose)})})});Au.displayName=ui;var l0="TooltipPortal",[U0,c0]=hr(l0,{forceMount:void 0}),zt="TooltipContent",Pu=M.forwardRef((e,t)=>{const n=c0(zt,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...s}=e,o=gr(zt,e.__scopeTooltip);return h.jsx(b.Presence,{present:r||o.open,children:o.disableHoverableContent?h.jsx(Ou,{side:i,...s,ref:t}):h.jsx(u0,{side:i,...s,ref:t})})}),u0=M.forwardRef((e,t)=>{const n=gr(zt,e.__scopeTooltip),r=ls(zt,e.__scopeTooltip),i=M.useRef(null),s=b.useComposedRefs(t,i),[o,a]=M.useState(null),{trigger:l,onClose:u}=n,c=i.current,{onPointerInTransitChange:f}=r,d=M.useCallback(()=>{a(null),f(!1)},[f]),p=M.useCallback((m,g)=>{const y=m.currentTarget,v={x:m.clientX,y:m.clientY},x=p0(v,y.getBoundingClientRect()),w=m0(v,x),E=g0(g.getBoundingClientRect()),T=y0([...w,...E]);a(T),f(!0)},[f]);return M.useEffect(()=>()=>d(),[d]),M.useEffect(()=>{if(l&&c){const m=y=>p(y,c),g=y=>p(y,l);return l.addEventListener("pointerleave",m),c.addEventListener("pointerleave",g),()=>{l.removeEventListener("pointerleave",m),c.removeEventListener("pointerleave",g)}}},[l,c,p,d]),M.useEffect(()=>{if(o){const m=g=>{const y=g.target,v={x:g.clientX,y:g.clientY},x=(l==null?void 0:l.contains(y))||(c==null?void 0:c.contains(y)),w=!b0(v,o);x?d():w&&(d(),u())};return document.addEventListener("pointermove",m),()=>document.removeEventListener("pointermove",m)}},[l,c,o,u,d]),h.jsx(Ou,{...e,ref:s})}),[d0,f0]=hr(mr,{isInside:!1}),Ou=M.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:s,onPointerDownOutside:o,...a}=e,l=gr(zt,n),u=pr(n),{onClose:c}=l;return M.useEffect(()=>(document.addEventListener(ci,c),()=>document.removeEventListener(ci,c)),[c]),M.useEffect(()=>{if(l.trigger){const f=d=>{const p=d.target;p!=null&&p.contains(l.trigger)&&c()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[l.trigger,c]),h.jsx(b.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:o,onFocusOutside:f=>f.preventDefault(),onDismiss:c,children:h.jsxs(b.Content,{"data-state":l.stateAttribute,...u,...a,ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[h.jsx(b.Slottable,{children:r}),h.jsx(d0,{scope:n,isInside:!0,children:h.jsx(V.Root,{id:l.contentId,role:"tooltip",children:i||r})})]})})});Pu.displayName=zt;var Mu="TooltipArrow",h0=M.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=pr(n);return f0(Mu,n).isInside?null:h.jsx(b.Arrow,{...i,...r,ref:t})});h0.displayName=Mu;function p0(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,i,s)){case s:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function m0(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function g0(e){const{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function b0(e,t){const{x:n,y:r}=e;let i=!1;for(let s=0,o=t.length-1;s<t.length;o=s++){const a=t[s].x,l=t[s].y,u=t[o].x,c=t[o].y;l>r!=c>r&&n<(u-a)*(r-l)/(c-l)+a&&(i=!i)}return i}function y0(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),v0(t)}function v0(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const i=e[r];for(;t.length>=2;){const s=t[t.length-1],o=t[t.length-2];if((s.x-o.x)*(i.y-o.y)>=(s.y-o.y)*(i.x-o.x))t.pop();else break}t.push(i)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const i=e[r];for(;n.length>=2;){const s=n[n.length-1],o=n[n.length-2];if((s.x-o.x)*(i.y-o.y)>=(s.y-o.y)*(i.x-o.x))n.pop();else break}n.push(i)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var x0=Nu,w0=Cu,E0=Au,Ru=Pu;const Zo={primary:"bg-main-600 text-white",secondary:"bg-grey-800 text-white",white:"bg-grey-50 text-grey-800"},T0={sm:"p-2 text-[13px] rounded",md:"p-2 text-sm font-normal rounded"},_0=x0,S0=w0,N0=E0,C0=(e,t)=>{const n=t==="primary"?Rt.colors.main[600]:t==="secondary"?Rt.colors.grey[800]:Rt.colors.grey[50],r=t==="white"?Rt.colors.grey[200]:n;return{...{width:"12px",height:"12px",backgroundColor:n,border:"1px solid",borderColor:r,opacity:t==="white"?1:.9,transform:"rotate(45deg)",borderRadius:"2px",zIndex:20},...{"top-left":{left:"1.5rem",top:"100%",transform:"translateX(-50%) translateY(-60%) rotate(45deg)"},"top-center":{left:"50%",top:"100%",transform:"translateX(-50%) translateY(-60%) rotate(45deg)"},"top-right":{right:"1.5rem",top:"100%",transform:"translateX(50%) translateY(-60%) rotate(45deg)"},"bottom-left":{left:"1.5rem",bottom:"100%",transform:"translateX(-50%) translateY(60%) rotate(45deg)"},"bottom-center":{left:"50%",bottom:"100%",transform:"translateX(-50%) translateY(60%) rotate(45deg)"},"bottom-right":{right:"1.5rem",bottom:"100%",transform:"translateX(50%) translateY(60%) rotate(45deg)"},right:{right:"100%",top:"50%",transform:"translateX(60%) translateY(-50%) rotate(45deg)"},left:{left:"100%",top:"50%",transform:"translateX(-60%) translateY(-50%) rotate(45deg)"}}[e]}},Du=M.forwardRef(({className:e,variant:t="primary",size:n="pc",position:r="top-center",sideOffset:i=8,icLeft:s,icRight:o,children:a,bubbleTip:l=!0,...u},c)=>{const f=C0(r,t),d=r.startsWith("top"),p=r==="right"||r==="left"?r:d?"top":"bottom",m=r==="right"||r==="left"?"center":r.includes("left")?"start":r.includes("right")?"end":"center";return h.jsx(Ru,{ref:c,avoidCollisions:!1,sideOffset:l?i:4,side:p,align:m,style:{zIndex:50},...u,children:h.jsxs("div",{className:b.cn("relative z-50 rounded",l&&"m-1",t==="white"&&"border-border border",Zo[t],e),children:[l&&h.jsx("div",{style:f,className:"absolute z-20"}),h.jsx("div",{className:"absolute inset-0 z-30 bg-white"}),h.jsxs("div",{className:b.cn("relative z-40 flex max-w-sm items-center font-normal",t!=="white"&&"bg-opacity-90",Zo[t],T0[n]),children:[s&&h.jsx("span",{className:"mr-1",children:s}),h.jsx("span",{className:"whitespace-pre-wrap break-keep",children:a}),o&&h.jsx("span",{className:"ml-1",children:o})]})]})})});Du.displayName=Ru.displayName;const cs=({label:e,variant:t="secondary",size:n="md",children:r,icLeft:i,icRight:s,position:o="top-center",bubbleTip:a=!0,forceMount:l,isMobile:u=Qt})=>{const[c,f]=M.useState(!1),d=M.useRef(null),p=typeof u=="number"?u:3e3,m=()=>{c?f(!1):(f(!0),d.current&&clearTimeout(d.current),d.current=setTimeout(()=>f(!1),p))};return M.useEffect(()=>()=>{d.current&&clearTimeout(d.current)},[]),h.jsx(_0,{delayDuration:200,children:h.jsxs(S0,{delayDuration:200,children:[h.jsx(N0,{asChild:!0,"data-state":c?"delayed-open":"closed",onMouseLeave:Qt?void 0:()=>f(!1),onMouseEnter:Qt?void 0:()=>f(!0),onClick:Qt?m:void 0,children:r}),h.jsx(Du,{variant:t,size:n,icLeft:i,icRight:s,position:o,forceMount:l||c||void 0,bubbleTip:a,children:e})]})})};function A0(e,t=[]){let n=[];function r(s,o){const a=M.createContext(o),l=n.length;n=[...n,o];function u(f){const{scope:d,children:p,...m}=f,g=(d==null?void 0:d[e][l])||a,y=M.useMemo(()=>m,Object.values(m));return h.jsx(g.Provider,{value:y,children:p})}function c(f,d){const p=(d==null?void 0:d[e][l])||a,m=M.useContext(p);if(m)return m;if(o!==void 0)return o;throw new Error(`\`${f}\` must be used within \`${s}\``)}return u.displayName=s+"Provider",[u,c]}const i=()=>{const s=n.map(o=>M.createContext(o));return function(a){const l=(a==null?void 0:a[e])||s;return M.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return i.scopeName=e,[r,P0(i,...t)]}function P0(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(s){const o=r.reduce((a,{useScope:l,scopeName:u})=>{const f=l(s)[`__scope${u}`];return{...a,...f}},{});return M.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}var O0="Toggle",Iu=M.forwardRef((e,t)=>{const{pressed:n,defaultPressed:r=!1,onPressedChange:i,...s}=e,[o=!1,a]=b.useControllableState({prop:n,onChange:i,defaultProp:r});return h.jsx(b.Primitive.button,{type:"button","aria-pressed":o,"data-state":o?"on":"off","data-disabled":e.disabled?"":void 0,...s,ref:t,onClick:b.composeEventHandlers(e.onClick,()=>{e.disabled||a(!o)})})});Iu.displayName=O0;var qt="ToggleGroup",[ku,$0]=A0(qt,[b.createRovingFocusGroupScope]),Lu=b.createRovingFocusGroupScope(),us=S.forwardRef((e,t)=>{const{type:n,...r}=e;if(n==="single"){const i=r;return h.jsx(M0,{...i,ref:t})}if(n==="multiple"){const i=r;return h.jsx(R0,{...i,ref:t})}throw new Error(`Missing prop \`type\` expected on \`${qt}\``)});us.displayName=qt;var[ju,Bu]=ku(qt),M0=S.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:i=()=>{},...s}=e,[o,a]=b.useControllableState({prop:n,defaultProp:r,onChange:i});return h.jsx(ju,{scope:e.__scopeToggleGroup,type:"single",value:o?[o]:[],onItemActivate:a,onItemDeactivate:S.useCallback(()=>a(""),[a]),children:h.jsx(Vu,{...s,ref:t})})}),R0=S.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:i=()=>{},...s}=e,[o=[],a]=b.useControllableState({prop:n,defaultProp:r,onChange:i}),l=S.useCallback(c=>a((f=[])=>[...f,c]),[a]),u=S.useCallback(c=>a((f=[])=>f.filter(d=>d!==c)),[a]);return h.jsx(ju,{scope:e.__scopeToggleGroup,type:"multiple",value:o,onItemActivate:l,onItemDeactivate:u,children:h.jsx(Vu,{...s,ref:t})})});us.displayName=qt;var[D0,I0]=ku(qt),Vu=S.forwardRef((e,t)=>{const{__scopeToggleGroup:n,disabled:r=!1,rovingFocus:i=!0,orientation:s,dir:o,loop:a=!0,...l}=e,u=Lu(n),c=b.useDirection(o),f={role:"group",dir:c,...l};return h.jsx(D0,{scope:n,rovingFocus:i,disabled:r,children:i?h.jsx(b.Root$1,{asChild:!0,...u,orientation:s,dir:c,loop:a,children:h.jsx(b.Primitive.div,{...f,ref:t})}):h.jsx(b.Primitive.div,{...f,ref:t})})}),Jn="ToggleGroupItem",Fu=S.forwardRef((e,t)=>{const n=Bu(Jn,e.__scopeToggleGroup),r=I0(Jn,e.__scopeToggleGroup),i=Lu(e.__scopeToggleGroup),s=n.value.includes(e.value),o=r.disabled||e.disabled,a={...e,pressed:s,disabled:o},l=S.useRef(null);return r.rovingFocus?h.jsx(b.Item,{asChild:!0,...i,focusable:!o,active:s,ref:l,children:h.jsx(Qo,{...a,ref:t})}):h.jsx(Qo,{...a,ref:t})});Fu.displayName=Jn;var Qo=S.forwardRef((e,t)=>{const{__scopeToggleGroup:n,value:r,...i}=e,s=Bu(Jn,n),o={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},a=s.type==="single"?o:void 0;return h.jsx(Iu,{...a,...i,ref:t,onPressedChange:l=>{l?s.onItemActivate(r):s.onItemDeactivate(r)}})}),Uu=us,$u=Fu;const k0=b.cva("inline-flex items-center justify-center gap-1 whitespace-nowrap text-sm font-normal ring-offset-background transition-all focus-visible:outline-none disabled:pointer-events-none",{variants:{variant:{solid:"disabled:bg-muted disabled:text-muted-foreground disabled:border-muted",outline:"disabled:bg-white disabled:text-muted disabled:border-border"},theme:{primary:"bg-white border border-main-200 text-primary hover:bg-main-100",secondary:"bg-white border border-grey-200 text-secondary hover:bg-grey-100"},size:{xs:"h-8 py-1 px-2 text-sm",sm:"h-9 py-2 px-3 text-sm",md:"h-11 px-3 py-3 text-sm",lg:"h-[52px] px-12 py-[14px] text-base",icon:"h-auto w-auto"},shape:{square:"rounded-lg",rounded:"rounded-full"},checked:{true:"",false:""}},compoundVariants:[{theme:"primary",checked:!0,className:"bg-main-600 border-main-600 text-white hover:bg-main-700 hover:border-main-700"},{theme:"secondary",checked:!0,className:"bg-grey-800 border-grey-800 text-white hover:bg-grey-900 hover:border-grey-900"}],defaultVariants:{theme:"primary",size:"md",shape:"square",checked:!1}}),ds=M.createContext({theme:"primary",size:"md",shape:"square"});ds.displayName="ToggleGroupContext";const fs=M.forwardRef(({className:e,variant:t,theme:n,size:r,shape:i,children:s,...o},a)=>h.jsx(ds.Provider,{value:{theme:n,size:r,shape:i},children:h.jsx(Uu,{ref:a,className:b.cn("flex items-center justify-center gap-1",e),...o,children:s})}));fs.displayName=Uu.displayName;const hn=M.forwardRef(({className:e,checked:t=!1,children:n,...r},i)=>{const s=M.useContext(ds);return h.jsx($u,{ref:i,className:b.cn(k0({theme:r.theme||s.theme||"primary",size:r.size||s.size||"md",shape:r.shape||s.shape||"square",variant:r.variant||"outline",checked:t}),e),...r,children:n})});hn.displayName=$u.displayName;const Gu=({options:e,variant:t="outline",theme:n="primary",size:r="md",shape:i="square",value:s,onChange:o,nullable:a=!0,className:l})=>h.jsx(fs,{type:"single",value:s,onValueChange:u=>{!a&&!u||o(u)},theme:n,size:r,shape:i,className:l,children:e.map(u=>u.tooltip?h.jsx(cs,{label:u.tooltip.label,variant:u.tooltip.variant,size:u.tooltip.size,icLeft:u.tooltip.icLeft,icRight:u.tooltip.icRight,position:u.tooltip.position,bubbleTip:u.tooltip.bubbleTip,children:h.jsx(hn,{value:u.value,checked:s===u.value,disabled:u.disabled,variant:t,children:u.label})},u.value):h.jsx(hn,{value:u.value,checked:s===u.value,disabled:u.disabled,variant:t,children:u.label},u.value))}),zu=({options:e,variant:t="outline",theme:n="primary",size:r="md",shape:i="square",value:s,onChange:o,className:a})=>h.jsx(fs,{type:"multiple",value:s,onValueChange:o,theme:n,size:r,shape:i,className:a,children:e.map(l=>l.tooltip?h.jsx(cs,{label:l.tooltip.label,variant:l.tooltip.variant,size:l.tooltip.size,icLeft:l.tooltip.icLeft,icRight:l.tooltip.icRight,position:l.tooltip.position,bubbleTip:l.tooltip.bubbleTip,children:h.jsx(hn,{value:l.value,checked:(s||[]).includes(l.value),disabled:l.disabled,variant:t,children:l.label})},l.value):h.jsx(hn,{value:l.value,checked:(s||[]).includes(l.value),disabled:l.disabled,variant:t,children:l.label},l.value))}),L0={Single:Gu,Multiple:zu};exports.AlertDialog=V.AlertDialog;exports.AlertDialogAction=V.AlertDialogAction;exports.AlertDialogCancel=V.AlertDialogCancel;exports.AlertDialogContent=V.AlertDialogContent;exports.AlertDialogDescription=V.AlertDialogDescription;exports.AlertDialogFooter=V.AlertDialogFooter;exports.AlertDialogHeader=V.AlertDialogHeader;exports.AlertDialogOverlay=V.AlertDialogOverlay;exports.AlertDialogPortal=V.AlertDialogPortal;exports.AlertDialogTitle=V.AlertDialogTitle;exports.AlertDialogTrigger=V.AlertDialogTrigger;exports.AlertForm=V.AlertForm;exports.Dialog=V.Dialog;exports.DialogClose=V.DialogClose;exports.DialogContent=V.DialogContent;exports.DialogDescription=V.DialogDescription;exports.DialogFooter=V.DialogFooter;exports.DialogForm=V.DialogForm;exports.DialogHeader=V.DialogHeader;exports.DialogOverlay=V.DialogOverlay;exports.DialogPortal=V.DialogPortal;exports.DialogTitle=V.DialogTitle;exports.DialogTrigger=V.DialogTrigger;exports.ModalForm=V.ModalForm;exports.PortalContainer=V.PortalContainer;exports.Toast=V.Toast;exports.ToastAction=V.ToastAction;exports.ToastClose=V.ToastClose;exports.ToastDescription=V.ToastDescription;exports.ToastForm=V.ToastForm;exports.ToastProvider=V.ToastProvider;exports.ToastTitle=V.ToastTitle;exports.ToastViewport=V.ToastViewport;exports.toastPositionVariants=V.toastPositionVariants;exports.toastVariants=V.toastVariants;exports.Accordion=Zt;exports.CheckboxBooleanFormField=Ux;exports.CheckboxGroupFormField=$x;exports.CodeBlock=_u;exports.ContentsCard=Ca;exports.DefaultFormField=Gx;exports.DropdownRadioFormField=zx;exports.EventCard=Gd;exports.LoadingCard=Aa;exports.MainBannerImage=gh;exports.MainBannerLoading=Cl;exports.Multiple=zu;exports.NotionParser=r0;exports.PremiumCard=bh;exports.RadioFormField=Wx;exports.Single=Gu;exports.StringArrayFormField=Kx;exports.StringInputField=Hx;exports.TitleTagCard=xh;exports.ToggleButtonGroup=L0;exports.Tooltip=cs;exports.UrlFormField=qx;exports.usePortal=i0;
23
+ `);return s&&s.insertRule(o,0),r},Zn=function(){return Zn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Zn.apply(this,arguments)},Jx=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},e0=Qx("BeatLoader","50% {transform: scale(0.75);opacity: 0.2} 100% {transform: scale(1);opacity: 1}","beat");function t0(e){var t=e.loading,n=t===void 0?!0:t,r=e.color,i=r===void 0?"#000000":r,s=e.speedMultiplier,o=s===void 0?1:s,a=e.cssOverride,l=a===void 0?{}:a,u=e.size,c=u===void 0?15:u,f=e.margin,d=f===void 0?2:f,p=Jx(e,["loading","color","speedMultiplier","cssOverride","size","margin"]),m=Zn({display:"inherit"},l),g=function(y){return{display:"inline-block",backgroundColor:i,width:kr(c),height:kr(c),margin:kr(d),borderRadius:"100%",animation:"".concat(e0," ").concat(.7/o,"s ").concat(y%2?"0s":"".concat(.35/o,"s")," infinite linear"),animationFillMode:"both"}};return n?M.createElement("span",Zn({style:m},p),M.createElement("span",{style:g(1)}),M.createElement("span",{style:g(2)}),M.createElement("span",{style:g(3)})):null}const dt=({group:e,depth:t,variant:n="default",isChildrenList:r=!1})=>{const i=di(n);if(!e||e.length===0)return null;const s=fi(e),o=["list-decimal","list-lower","list-roman"],a=["list-disc","list-square","list-circle"];return s.map((l,u)=>{const c=l.type==="numbered_list"?"ol":"ul",f=l.type==="numbered_list"?o[o.length%t]:a[a.length%t],d=l.type==="numbered_list"?"numbered_list_item":"bulleted_list_item";return l.type==="numbered_list"||l.type==="bulleted_list"?h.jsx(c,{className:b.cn(i.list,f,"rounded-lg not-italic",t===1?"mb-4 space-y-4 p-4 pl-8":"space-y-1 bg-transparent pl-4",r?"bg-transparent p-0 pl-4":"bg-grey-100"),children:l.blocks.map(p=>h.jsxs(ce.li,{initial:{opacity:0},animate:{opacity:1},className:b.cn(t===1?"text-grey-800 marker:text-grey-800":"text-grey-600 marker:text-main-400",i.listItem),children:[Ke(p,n),p.has_children&&(p.children||[]).length>0&&h.jsx("div",{className:"mt-1",children:(p.children||[]).some(m=>m.type===d)?dt({group:(p.children||[]).filter(m=>m.type===d),depth:t+1,variant:n,isChildrenList:!0}):h.jsx("div",{className:"pl-1 text-grey-600",children:(p.children||[]).map((m,g)=>h.jsx(Qn,{block:m,variant:n,isLast:!0},m.type+m.id+g))})})]},p.type+p.id+u))},l.type+u):h.jsx("div",{children:Ke(l.block,n)},l.block.id||u)})},n0=(e,t)=>!e||e.length===0?null:e.map((n,r)=>{const{annotations:i,text:s}=n;if(!s)return null;const{bold:o,italic:a,underline:l,strikethrough:u,code:c,color:f,backgroundColor:d}=i,p=b.cn("whitespace-pre-wrap",o&&"font-semibold",a&&"italic",l&&"underline",u&&"line-through",td[f]??"",c&&"bg-grey-200 bg-opacity-80 px-1.5 rounded py-0.5 text-red-400",ps[d||""]?`${ps[d]} bg-opacity-80 px-1.5 rounded py-0.5`:"",t),m=s.link&&s.link.url?h.jsx(J.Anchor,{type:"external",href:s.link.url,className:"text-main-600 underline",children:s.content}):s.content;return typeof m=="string"&&m.length===0?h.jsx("br",{}):h.jsx("span",{className:p,children:m},r)}),Ke=(e,t="default",n=!1,r=null)=>{var f,d,p,m,g,y,v,x,w,E,T,C,L,j,K,H,ue,de,fe,pe,ae,ye,q,ne,le,se,Le,Pe,_,D,U,W,Y,Ae,he,ve,xe,Re,Qe,vt,$e,Pt,Ge,ze,Oe,Ot,Je,$,me,te,X,G,z;const i=`${e.type}-block`,s=di(t),o=((f=e[e.type])==null?void 0:f.rich_text)||"",a=(e==null?void 0:e.children)||[],l=ta(e,t)&&((d=er[t][e.type])==null?void 0:d.className)||"",u=a==null?void 0:a.some(N=>Jo.includes(N.type)),c=N=>n0(N,l);switch(e.type){case"loading":return h.jsx(ce.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:b.cn(i,s.loading),children:h.jsx(t0,{size:8})});case"paragraph":return o&&o.length>0?h.jsx(ce.p,{initial:{opacity:0},animate:{opacity:1},className:b.cn(i,s.paragraph,n&&"mb-0"),children:c(((p=e.paragraph)==null?void 0:p.rich_text)||"")}):h.jsx(ce.div,{initial:{opacity:0},animate:{opacity:1},className:b.cn(i,s.paragraph),children:" "});case"heading_1":return o&&o.length>0?h.jsx(ce.h1,{initial:{opacity:0},animate:{opacity:1},className:b.cn(i,s.heading1),children:c(((m=e.heading_1)==null?void 0:m.rich_text)||"")}):null;case"heading_2":return o&&o.length>0?h.jsx(ce.h2,{initial:{opacity:0},animate:{opacity:1},className:b.cn(i,s.heading2),children:c(((g=e.heading_2)==null?void 0:g.rich_text)||"")}):null;case"heading_3":return o&&o.length>0?h.jsx(ce.h3,{initial:{opacity:0},animate:{opacity:1},className:b.cn(i,s.heading3),children:c(((y=e.heading_3)==null?void 0:y.rich_text)||"")}):null;case"bulleted_list_item":case"numbered_list_item":return o&&o.length>0?h.jsx("span",{className:b.cn(i,s.listItem),children:c(e.type==="bulleted_list_item"?((v=e.bulleted_list_item)==null?void 0:v.rich_text)||"":((x=e.numbered_list_item)==null?void 0:x.rich_text)||"")}):null;case"quote":return o&&o.length>0?h.jsxs(ce.blockquote,{initial:{opacity:0},animate:{opacity:1},className:b.cn(i,s.quote),children:[c(((w=e.quote)==null?void 0:w.rich_text)||""),e.children&&e.children.length>0&&h.jsx("div",{className:"space-y-1",children:u?dt({group:e.children,depth:1,variant:t}):e.children.map((N,I)=>h.jsx(S.Fragment,{children:Ke(N,t,!0,"quote")},e.type+N.id+I))})]}):null;case"divider":return h.jsx("hr",{className:b.cn(i,s.divider)});case"image":{const N=((T=(E=e.image)==null?void 0:E.file)==null?void 0:T.url)||((L=(C=e.image)==null?void 0:C.external)==null?void 0:L.url),I=(j=e.image)!=null&&j.caption?e.image.caption:"Image";return h.jsxs(ce.figure,{initial:{opacity:0},animate:{opacity:1},className:b.cn(i,"flex flex-col items-center overflow-hidden rounded-lg"),children:[N?h.jsx("div",{className:s.image,children:h.jsx("img",{src:N||"/placeholder.svg",className:"h-full w-full object-cover",alt:I||"Image"})}):h.jsx("div",{className:"w-full rounded-lg bg-grey-200 p-4",children:"이미지를 불러올 수 없습니다"}),((H=(K=e.image)==null?void 0:K.caption)==null?void 0:H.length)>0&&h.jsx("figcaption",{className:"mt-2 text-center text-sm text-gray-500",children:typeof((ue=e.image)==null?void 0:ue.caption)=="string"?I:c(I)})]})}case"callout":{const N=((fe=(de=e.callout)==null?void 0:de.icon)==null?void 0:fe.emoji)||null,I=r==="column";return h.jsxs(ce.div,{initial:{opacity:0},animate:{opacity:1},className:b.cn(i,s.callout,I&&"h-full","flex rounded-lg px-4 py-6"),children:[h.jsx("div",{className:"flex-shrink-0",children:h.jsx("div",{className:"flex h-6 w-6 items-center justify-center text-lg md:text-xl",children:N||"💡"})}),h.jsxs("div",{className:"flex flex-col gap-2",children:[o.length>0&&h.jsx("div",{className:"text-base md:text-lg",children:c(o)}),e.children&&e.children.length>0&&h.jsx("div",{className:"space-y-1",children:u?dt({group:e.children,depth:1,variant:t,isChildrenList:u}):e.children.map((A,R)=>h.jsx(S.Fragment,{children:Ke(A,t,!0,"callout")},e.type+A.id+R))})]})]})}case"code":{const N=((pe=e.code)==null?void 0:pe.rich_text)||[],I=((ae=e.code)==null?void 0:ae.language)||"plaintext";if(N.length>0&&((ye=N[0].plain_text)!=null&&ye.startsWith("!#btrl"))){const R=[N[1]],O=N.slice(2);return I==="bash"?h.jsxs(ce.div,{initial:{opacity:0},animate:{opacity:1},className:b.cn(i,s.callout,"mb-2 flex h-full rounded-3xl px-6 py-8"),children:[h.jsx("span",{className:"break-keep text-lg font-bold md:text-xl",children:c(R)}),h.jsx("span",{className:"mt-[1px] whitespace-pre-wrap break-words text-base md:text-lg",children:c(O)})]}):I==="abap"?h.jsxs(ce.div,{initial:{opacity:0},animate:{opacity:1},className:b.cn(i,s.callout,"mb-2 flex h-full rounded-3xl border border-border bg-transparent px-6 py-8"),children:[h.jsx("span",{className:"break-keep text-lg font-bold md:text-xl",children:c(R)}),h.jsx("span",{className:"mt-[1px] whitespace-pre-wrap break-words text-base md:text-lg",children:c(O)})]}):h.jsxs(ce.div,{initial:{opacity:0},animate:{opacity:1},className:b.cn(i,s.callout,"mb-2 flex h-full rounded-3xl bg-grey-100 px-6 py-8"),children:[h.jsx("span",{className:"break-keep text-lg font-bold md:text-xl",children:c(R)}),h.jsx("span",{className:"mt-[1px] whitespace-pre-wrap break-words text-base md:text-lg",children:c(O)})]})}const A=N.map(R=>R.plain_text).join("")||"";return h.jsx(_u,{code:A,language:I})}case"to_do":{const N=((q=e.to_do)==null?void 0:q.checked)||!1;return o&&o.length>0?h.jsxs("div",{className:b.cn(i,"mb-2 flex items-start gap-2"),children:[h.jsx("input",{type:"checkbox",checked:N,readOnly:!0,className:"mt-1 h-4 w-4 rounded border-gray-300"}),h.jsx("span",{className:b.cn(s.paragraph,N?"text-gray-400 line-through":""),children:c(((ne=e.to_do)==null?void 0:ne.rich_text)||"")})]}):null}case"toggle":return o&&o.length>0?h.jsxs("details",{className:b.cn(i,"group mb-4"),children:[h.jsx("summary",{className:b.cn(s.paragraph,"cursor-pointer"),children:h.jsx("span",{className:"px-1",children:c(((le=e.toggle)==null?void 0:le.rich_text)||"")})}),h.jsx("div",{className:"mt-2 pl-4",children:e.children&&e.children.length>0&&h.jsx("div",{className:"space-y-1",children:u?dt({group:e.children,depth:1,variant:t}):e.children.map((N,I)=>h.jsx(S.Fragment,{children:Ke(N,t,!0,"toggle")},e.type+N.id+I))})})]}):null;case"table":return h.jsx("div",{className:b.cn(i,"mb-4 overflow-x-auto"),children:h.jsx("table",{className:b.cn(s.table,"min-w-full table-auto"),children:h.jsx("tbody",{children:a.map((N,I)=>{var A,R;return h.jsx("tr",{className:s.tableRow,children:(R=(A=N.table_row)==null?void 0:A.cells)==null?void 0:R.map((O,P)=>{var xt,hs;const Z=((xt=e.table)==null?void 0:xt.has_column_header)&&I===0,We=Z?"th":"td";return h.jsx(We,{className:b.cn(s.tableCell,"px-4 py-2 align-top",Z?"text-left font-semibold":"text-left"),style:{minWidth:"120px",textAlign:"left",wordBreak:"break-word"},children:(hs=O||[])==null?void 0:hs.map((Wu,Ku)=>h.jsx(S.Fragment,{children:c([Wu])},Ku))},P)})},N.id||I)})})})});case"bookmark":{const N=((se=e.bookmark)==null?void 0:se.url)||"",{meta:I,loading:A}=Yx(N);return N?h.jsx(ce.div,{initial:{opacity:0},animate:{opacity:1},className:b.cn(i,"mb-4 block"),children:A?h.jsx("div",{className:"h-24 animate-pulse rounded-md bg-gray-100"}):I?h.jsxs(S.Fragment,{children:[h.jsxs(J.Anchor,{type:"external",href:N,className:"flex h-auto w-full flex-col items-center overflow-hidden rounded-md border border-gray-200 transition-all hover:bg-gray-50 hover:shadow xs:h-24 xs:flex-row lg:h-28",children:[I.image&&h.jsx("div",{className:"aspect-video h-auto w-full flex-shrink-0 rounded-md xs:h-full xs:w-auto",children:h.jsx("img",{src:I.image,alt:I.title,className:"h-full w-full object-cover"})}),h.jsxs("div",{className:"flex flex-col p-4",children:[h.jsx("div",{className:"line-clamp-2 text-sm font-semibold md:text-base",children:I.title}),h.jsx("div",{className:"line-clamp-2 text-sm text-gray-500",children:I.description})]})]}),((Pe=(Le=e.bookmark)==null?void 0:Le.caption)==null?void 0:Pe.length)>0&&h.jsx("div",{className:"mt-2 text-xs text-grey-500 md:text-sm",children:c(e.bookmark.caption)})]}):h.jsxs("div",{className:"mb-4 block rounded-md border border-gray-200 p-4 text-base hover:bg-gray-50",children:[h.jsx(J.Anchor,{type:"external",href:N,children:N}),((D=(_=e.bookmark)==null?void 0:_.caption)==null?void 0:D.length)>0&&h.jsx("div",{className:"mt-2 text-sm text-gray-500",children:c(e.bookmark.caption)})]})}):null}case"embed":{const N=((U=e.embed)==null?void 0:U.url)||"";return h.jsxs("div",{className:b.cn(i,"mb-4"),children:[h.jsx("iframe",{src:N,className:"aspect-[3/4] max-h-[80vh] w-full overflow-hidden rounded-lg shadow-md md:aspect-square lg:aspect-video",title:"Embedded content",allowFullScreen:!0}),((Y=(W=e.embed)==null?void 0:W.caption)==null?void 0:Y.length)>0&&h.jsx("div",{className:"mt-2 text-sm text-muted",children:c(e.embed.caption)})]})}case"video":{const N=((he=(Ae=e.video)==null?void 0:Ae.external)==null?void 0:he.url)||((xe=(ve=e.video)==null?void 0:ve.file)==null?void 0:xe.url)||"",I=id(N);return h.jsxs(ce.div,{initial:{opacity:0},animate:{opacity:1},className:b.cn(i,"mb-4"),children:[N?h.jsx("div",{className:"w-full",children:h.jsx("div",{className:"relative aspect-video overflow-hidden",children:h.jsx("iframe",{className:"absolute left-0 top-0 h-full w-full",src:I,title:"YouTube video player",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})})}):h.jsx("div",{className:"mb-4 w-full rounded-lg bg-grey-200 p-4",children:"비디오를 불러올 수 없습니다"}),((Qe=(Re=e.video)==null?void 0:Re.caption)==null?void 0:Qe.length)>0&&h.jsx("div",{className:"mt-2 text-sm text-gray-500",children:c(e.video.caption)})]})}case"file":{const N=(($e=(vt=e.file)==null?void 0:vt.external)==null?void 0:$e.url)||((Ge=(Pt=e.file)==null?void 0:Pt.file)==null?void 0:Ge.url)||"",I=N.split("/").pop()||"File";return h.jsxs(ce.div,{initial:{opacity:0},animate:{opacity:1},className:b.cn("mb-4"),children:[h.jsxs(J.Anchor,{type:"external",href:N,className:b.cn(i,"flex flex-col gap-2 rounded-md border border-gray-200 p-3 hover:bg-gray-50"),children:[h.jsxs("span",{className:"flex items-center gap-1 text-sm text-muted",children:[h.jsx(b.Icon.CopyLink,{size:20,fill:Rt.colors.grey[400]}),"클릭하면 파일이 다운로드됩니다 :)"]}),h.jsx("span",{className:"line-clamp-2 break-all text-xs",children:I})]}),((Oe=((ze=e.file)==null?void 0:ze.caption)||[])==null?void 0:Oe.length)>0&&h.jsx("div",{className:"mt-2 text-xs text-grey-500 md:text-sm",children:c(e.file.caption)})]})}case"table_of_contents":return h.jsxs("div",{className:b.cn(i,"mb-4 rounded-md border border-gray-200 p-4"),children:[h.jsx("div",{className:"mb-2 font-medium",children:"목차"}),h.jsx("div",{className:"text-sm text-gray-600",children:"(목차 내용은 전체 문서 분석 후 생성됩니다)"})]});case"link_preview":case"link_to_page":{const N=((Ot=e.link_preview)==null?void 0:Ot.url)||((Je=e[e.type])==null?void 0:Je.url)||"#",I=(($=e.link_preview)==null?void 0:$.url)||((me=e[e.type])==null?void 0:me.page_id)||"링크";return h.jsx(ce.div,{initial:{opacity:0},animate:{opacity:1},className:b.cn(i,"mb-4"),children:h.jsx(J.Anchor,{type:"external",href:N,children:I})})}case"child_page":case"child_database":{const N=((te=e[e.type])==null?void 0:te.title)||"하위 페이지";return h.jsxs("div",{className:b.cn(i,"mb-4 rounded-md border border-gray-200 p-3"),children:[h.jsx("div",{className:"font-medium",children:N}),h.jsx("div",{className:"text-sm text-gray-500",children:e.type==="child_page"?"하위 페이지":"하위 데이터베이스"})]})}case"template":return h.jsxs("div",{className:b.cn(i,"mb-4 rounded-md border border-gray-200 p-3"),children:[h.jsx("div",{className:"font-medium",children:"템플릿"}),(((X=e.template)==null?void 0:X.rich_text)||"").length>0&&h.jsx("div",{children:c(((G=e.template)==null?void 0:G.rich_text)||"")})]});case"synced_block":return h.jsx("div",{className:b.cn(i,"mb-4"),children:a.map((N,I)=>h.jsx("div",{children:Ke(N,t,!1,"synced_block")},e.type+N.id+I))});case"column_list":return h.jsx(ce.div,{initial:{opacity:0},animate:{opacity:1},className:b.cn(i,"mb-4 grid w-full grid-cols-1 gap-0 sm:grid-cols-2 sm:gap-4"),children:a.map((N,I)=>h.jsx("div",{className:"w-full min-w-[150px] flex-1",children:Ke(N,t,!1,"column_list")},e.type+N.id+I))});case"column":return h.jsx(ce.div,{initial:{opacity:0},animate:{opacity:1},className:b.cn(i,"h-auto w-full sm:h-full"),children:a==null?void 0:a.map((N,I)=>h.jsx(S.Fragment,{children:Ke(N,t,!1,"column")},e.type+N.id+I))});case"unsupported":return null;default:return o&&o.length>0?h.jsx("p",{className:b.cn(i,s.paragraph),children:c(((z=e[e.type])==null?void 0:z.rich_text)||"")}):h.jsxs("div",{className:b.cn(i,"mb-4 rounded-md border border-gray-200 p-3 text-sm text-gray-500"),children:["지원되지 않는 블록 타입: ",e.type]})}},Qn=({block:e,accordionHeadings:t=[],variant:n="default",isLast:r=!1})=>{const i=ea(e,n),s=rd(e,n),o=ta(e,n);if(Jo.includes(e.type)&&e.children)return dt({group:e.children,depth:1,variant:n});if(i>0){const a=Ke(e,n);if(!a&&(!e.children||e.children.length===0))return null;const l=e.children?fi(e.children):[];return o&&t.includes(e.type)&&l.length>0?h.jsx(Zt.Root,{type:"single",collapsible:!0,className:"mb-1 w-full md:mb-2 lg:mb-4",children:h.jsxs(Zt.Item,{value:e.id,className:"border-b-main-100",children:[h.jsx(Zt.Trigger,{className:"whitespace-pre-wrap py-2 md:whitespace-normal",children:a}),h.jsx(Zt.Content,{children:l.map((u,c)=>u.type==="bulleted_list"||u.type==="numbered_list"?h.jsx("div",{children:dt({group:u.blocks,depth:1,variant:n})},u.type+c):h.jsx(Qn,{block:u.block,accordionHeadings:t,variant:n},u.block.id+c))})]})}):h.jsxs(s,{children:[a,l.length>0&&h.jsx("div",{className:"mt-4",children:l.map((u,c)=>u.type==="bulleted_list"||u.type==="numbered_list"?h.jsx("div",{children:dt({group:u.blocks,depth:1,variant:n})},u.type+c):h.jsx(Qn,{block:u.block,accordionHeadings:t,variant:n},u.block.id+c))})]})}return Ke(e,n,r)},r0=({blocks:e,accordionHeadings:t=[],className:n,variant:r="default"})=>{const i=nd(e,r),s=di(r),o=a=>fi(a).map((u,c)=>u.type==="bulleted_list"||u.type==="numbered_list"?h.jsx(S.Fragment,{children:dt({group:u.blocks,depth:1,variant:r})},u.type+c):h.jsx(Qn,{block:u.block,accordionHeadings:t,variant:r},u.type+c));return h.jsx(Fx,{children:h.jsx("div",{className:b.cn(s.container,n),children:o(i)})})},i0=()=>{const[e,t]=S.useState([]);return S.useEffect(()=>{const c=(d,p)=>{t(p?m=>m.includes(d.id)?m:[...m,d.id]:m=>m.filter(g=>g!==d.id))},f=V.portalManager.subscribe(c);return t(V.portalManager.getOpenPortals()),()=>{f()}},[]),{modal:c=>{const{onClose:f=()=>{}}=c;return V.portalManager.showPortal("modal",{...c,onClose:f})},toast:c=>{let f;return typeof c=="string"?f={description:c}:f=c,V.portalManager.showPortal("toast",f)},alert:c=>{let f;return typeof c=="string"?f={description:c,onClose:()=>{}}:f={...c,onClose:c.onClose||(()=>{})},V.portalManager.showPortal("alert",f)},dialog:c=>{const{onClose:f=()=>{}}=c;return V.portalManager.showPortal("dialog",{...c,onClose:f})},custom:c=>{const{onClose:f=()=>{}}=c;return V.portalManager.showPortal("custom",{...c,onClose:f})},getIsOpen:c=>V.portalManager.getIsPortalOpen(c),closePortal:c=>{V.portalManager.closePortal(c)},closeAllPortals:()=>{V.portalManager.closeAllPortals()},openPortals:e}};var[hr,F0]=b.createContextScope("Tooltip",[b.createPopperScope]),pr=b.createPopperScope(),Su="TooltipProvider",s0=700,ci="tooltip.open",[o0,ls]=hr(Su),Nu=e=>{const{__scopeTooltip:t,delayDuration:n=s0,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:s}=e,[o,a]=M.useState(!0),l=M.useRef(!1),u=M.useRef(0);return M.useEffect(()=>{const c=u.current;return()=>window.clearTimeout(c)},[]),h.jsx(o0,{scope:t,isOpenDelayed:o,delayDuration:n,onOpen:M.useCallback(()=>{window.clearTimeout(u.current),a(!1)},[]),onClose:M.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>a(!0),r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:M.useCallback(c=>{l.current=c},[]),disableHoverableContent:i,children:s})};Nu.displayName=Su;var mr="Tooltip",[a0,gr]=hr(mr),Cu=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:i=!1,onOpenChange:s,disableHoverableContent:o,delayDuration:a}=e,l=ls(mr,e.__scopeTooltip),u=pr(t),[c,f]=M.useState(null),d=b.useId(),p=M.useRef(0),m=o??l.disableHoverableContent,g=a??l.delayDuration,y=M.useRef(!1),[v=!1,x]=b.useControllableState({prop:r,defaultProp:i,onChange:L=>{L?(l.onOpen(),document.dispatchEvent(new CustomEvent(ci))):l.onClose(),s==null||s(L)}}),w=M.useMemo(()=>v?y.current?"delayed-open":"instant-open":"closed",[v]),E=M.useCallback(()=>{window.clearTimeout(p.current),p.current=0,y.current=!1,x(!0)},[x]),T=M.useCallback(()=>{window.clearTimeout(p.current),p.current=0,x(!1)},[x]),C=M.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>{y.current=!0,x(!0),p.current=0},g)},[g,x]);return M.useEffect(()=>()=>{p.current&&(window.clearTimeout(p.current),p.current=0)},[]),h.jsx(b.Root2,{...u,children:h.jsx(a0,{scope:t,contentId:d,open:v,stateAttribute:w,trigger:c,onTriggerChange:f,onTriggerEnter:M.useCallback(()=>{l.isOpenDelayed?C():E()},[l.isOpenDelayed,C,E]),onTriggerLeave:M.useCallback(()=>{m?T():(window.clearTimeout(p.current),p.current=0)},[T,m]),onOpen:E,onClose:T,disableHoverableContent:m,children:n})})};Cu.displayName=mr;var ui="TooltipTrigger",Au=M.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=gr(ui,n),s=ls(ui,n),o=pr(n),a=M.useRef(null),l=b.useComposedRefs(t,a,i.onTriggerChange),u=M.useRef(!1),c=M.useRef(!1),f=M.useCallback(()=>u.current=!1,[]);return M.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),h.jsx(b.Anchor,{asChild:!0,...o,children:h.jsx(b.Primitive.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:l,onPointerMove:b.composeEventHandlers(e.onPointerMove,d=>{d.pointerType!=="touch"&&!c.current&&!s.isPointerInTransitRef.current&&(i.onTriggerEnter(),c.current=!0)}),onPointerLeave:b.composeEventHandlers(e.onPointerLeave,()=>{i.onTriggerLeave(),c.current=!1}),onPointerDown:b.composeEventHandlers(e.onPointerDown,()=>{u.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:b.composeEventHandlers(e.onFocus,()=>{u.current||i.onOpen()}),onBlur:b.composeEventHandlers(e.onBlur,i.onClose),onClick:b.composeEventHandlers(e.onClick,i.onClose)})})});Au.displayName=ui;var l0="TooltipPortal",[U0,c0]=hr(l0,{forceMount:void 0}),zt="TooltipContent",Pu=M.forwardRef((e,t)=>{const n=c0(zt,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...s}=e,o=gr(zt,e.__scopeTooltip);return h.jsx(b.Presence,{present:r||o.open,children:o.disableHoverableContent?h.jsx(Ou,{side:i,...s,ref:t}):h.jsx(u0,{side:i,...s,ref:t})})}),u0=M.forwardRef((e,t)=>{const n=gr(zt,e.__scopeTooltip),r=ls(zt,e.__scopeTooltip),i=M.useRef(null),s=b.useComposedRefs(t,i),[o,a]=M.useState(null),{trigger:l,onClose:u}=n,c=i.current,{onPointerInTransitChange:f}=r,d=M.useCallback(()=>{a(null),f(!1)},[f]),p=M.useCallback((m,g)=>{const y=m.currentTarget,v={x:m.clientX,y:m.clientY},x=p0(v,y.getBoundingClientRect()),w=m0(v,x),E=g0(g.getBoundingClientRect()),T=y0([...w,...E]);a(T),f(!0)},[f]);return M.useEffect(()=>()=>d(),[d]),M.useEffect(()=>{if(l&&c){const m=y=>p(y,c),g=y=>p(y,l);return l.addEventListener("pointerleave",m),c.addEventListener("pointerleave",g),()=>{l.removeEventListener("pointerleave",m),c.removeEventListener("pointerleave",g)}}},[l,c,p,d]),M.useEffect(()=>{if(o){const m=g=>{const y=g.target,v={x:g.clientX,y:g.clientY},x=(l==null?void 0:l.contains(y))||(c==null?void 0:c.contains(y)),w=!b0(v,o);x?d():w&&(d(),u())};return document.addEventListener("pointermove",m),()=>document.removeEventListener("pointermove",m)}},[l,c,o,u,d]),h.jsx(Ou,{...e,ref:s})}),[d0,f0]=hr(mr,{isInside:!1}),Ou=M.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:s,onPointerDownOutside:o,...a}=e,l=gr(zt,n),u=pr(n),{onClose:c}=l;return M.useEffect(()=>(document.addEventListener(ci,c),()=>document.removeEventListener(ci,c)),[c]),M.useEffect(()=>{if(l.trigger){const f=d=>{const p=d.target;p!=null&&p.contains(l.trigger)&&c()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[l.trigger,c]),h.jsx(b.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:o,onFocusOutside:f=>f.preventDefault(),onDismiss:c,children:h.jsxs(b.Content,{"data-state":l.stateAttribute,...u,...a,ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[h.jsx(b.Slottable,{children:r}),h.jsx(d0,{scope:n,isInside:!0,children:h.jsx(V.Root,{id:l.contentId,role:"tooltip",children:i||r})})]})})});Pu.displayName=zt;var Mu="TooltipArrow",h0=M.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=pr(n);return f0(Mu,n).isInside?null:h.jsx(b.Arrow,{...i,...r,ref:t})});h0.displayName=Mu;function p0(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,i,s)){case s:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function m0(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function g0(e){const{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function b0(e,t){const{x:n,y:r}=e;let i=!1;for(let s=0,o=t.length-1;s<t.length;o=s++){const a=t[s].x,l=t[s].y,u=t[o].x,c=t[o].y;l>r!=c>r&&n<(u-a)*(r-l)/(c-l)+a&&(i=!i)}return i}function y0(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),v0(t)}function v0(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const i=e[r];for(;t.length>=2;){const s=t[t.length-1],o=t[t.length-2];if((s.x-o.x)*(i.y-o.y)>=(s.y-o.y)*(i.x-o.x))t.pop();else break}t.push(i)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const i=e[r];for(;n.length>=2;){const s=n[n.length-1],o=n[n.length-2];if((s.x-o.x)*(i.y-o.y)>=(s.y-o.y)*(i.x-o.x))n.pop();else break}n.push(i)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var x0=Nu,w0=Cu,E0=Au,Ru=Pu;const Zo={primary:"bg-main-600 text-white",secondary:"bg-grey-800 text-white",white:"bg-grey-50 text-grey-800"},T0={sm:"p-2 text-[13px] rounded",md:"p-2 text-sm font-normal rounded"},_0=x0,S0=w0,N0=E0,C0=(e,t)=>{const n=t==="primary"?Rt.colors.main[600]:t==="secondary"?Rt.colors.grey[800]:Rt.colors.grey[50],r=t==="white"?Rt.colors.grey[200]:n;return{...{width:"12px",height:"12px",backgroundColor:n,border:"1px solid",borderColor:r,opacity:t==="white"?1:.9,transform:"rotate(45deg)",borderRadius:"2px",zIndex:20},...{"top-left":{left:"1.5rem",top:"100%",transform:"translateX(-50%) translateY(-60%) rotate(45deg)"},"top-center":{left:"50%",top:"100%",transform:"translateX(-50%) translateY(-60%) rotate(45deg)"},"top-right":{right:"1.5rem",top:"100%",transform:"translateX(50%) translateY(-60%) rotate(45deg)"},"bottom-left":{left:"1.5rem",bottom:"100%",transform:"translateX(-50%) translateY(60%) rotate(45deg)"},"bottom-center":{left:"50%",bottom:"100%",transform:"translateX(-50%) translateY(60%) rotate(45deg)"},"bottom-right":{right:"1.5rem",bottom:"100%",transform:"translateX(50%) translateY(60%) rotate(45deg)"},right:{right:"100%",top:"50%",transform:"translateX(60%) translateY(-50%) rotate(45deg)"},left:{left:"100%",top:"50%",transform:"translateX(-60%) translateY(-50%) rotate(45deg)"}}[e]}},Du=M.forwardRef(({className:e,variant:t="primary",size:n="pc",position:r="top-center",sideOffset:i=8,icLeft:s,icRight:o,children:a,bubbleTip:l=!0,...u},c)=>{const f=C0(r,t),d=r.startsWith("top"),p=r==="right"||r==="left"?r:d?"top":"bottom",m=r==="right"||r==="left"?"center":r.includes("left")?"start":r.includes("right")?"end":"center";return h.jsx(Ru,{ref:c,avoidCollisions:!1,sideOffset:l?i:4,side:p,align:m,style:{zIndex:50},...u,children:h.jsxs("div",{className:b.cn("relative z-50 rounded",l&&"m-1",t==="white"&&"border-border border",Zo[t],e),children:[l&&h.jsx("div",{style:f,className:"absolute z-20"}),h.jsx("div",{className:"absolute inset-0 z-30 bg-white"}),h.jsxs("div",{className:b.cn("relative z-40 flex max-w-sm items-center font-normal",t!=="white"&&"bg-opacity-90",Zo[t],T0[n]),children:[s&&h.jsx("span",{className:"mr-1",children:s}),h.jsx("span",{className:"whitespace-pre-wrap break-keep",children:a}),o&&h.jsx("span",{className:"ml-1",children:o})]})]})})});Du.displayName=Ru.displayName;const cs=({label:e,variant:t="secondary",size:n="md",children:r,icLeft:i,icRight:s,position:o="top-center",bubbleTip:a=!0,forceMount:l,isMobile:u=Qt})=>{const[c,f]=M.useState(!1),d=M.useRef(null),p=typeof u=="number"?u:3e3,m=()=>{c?f(!1):(f(!0),d.current&&clearTimeout(d.current),d.current=setTimeout(()=>f(!1),p))};return M.useEffect(()=>()=>{d.current&&clearTimeout(d.current)},[]),h.jsx(_0,{delayDuration:200,children:h.jsxs(S0,{delayDuration:200,children:[h.jsx(N0,{asChild:!0,"data-state":c?"delayed-open":"closed",onMouseLeave:Qt?void 0:()=>f(!1),onMouseEnter:Qt?void 0:()=>f(!0),onClick:Qt?m:void 0,children:r}),h.jsx(Du,{variant:t,size:n,icLeft:i,icRight:s,position:o,forceMount:l||c||void 0,bubbleTip:a,children:e})]})})};function A0(e,t=[]){let n=[];function r(s,o){const a=M.createContext(o),l=n.length;n=[...n,o];function u(f){const{scope:d,children:p,...m}=f,g=(d==null?void 0:d[e][l])||a,y=M.useMemo(()=>m,Object.values(m));return h.jsx(g.Provider,{value:y,children:p})}function c(f,d){const p=(d==null?void 0:d[e][l])||a,m=M.useContext(p);if(m)return m;if(o!==void 0)return o;throw new Error(`\`${f}\` must be used within \`${s}\``)}return u.displayName=s+"Provider",[u,c]}const i=()=>{const s=n.map(o=>M.createContext(o));return function(a){const l=(a==null?void 0:a[e])||s;return M.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return i.scopeName=e,[r,P0(i,...t)]}function P0(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(s){const o=r.reduce((a,{useScope:l,scopeName:u})=>{const f=l(s)[`__scope${u}`];return{...a,...f}},{});return M.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}var O0="Toggle",Iu=M.forwardRef((e,t)=>{const{pressed:n,defaultPressed:r=!1,onPressedChange:i,...s}=e,[o=!1,a]=b.useControllableState({prop:n,onChange:i,defaultProp:r});return h.jsx(b.Primitive.button,{type:"button","aria-pressed":o,"data-state":o?"on":"off","data-disabled":e.disabled?"":void 0,...s,ref:t,onClick:b.composeEventHandlers(e.onClick,()=>{e.disabled||a(!o)})})});Iu.displayName=O0;var qt="ToggleGroup",[ku,$0]=A0(qt,[b.createRovingFocusGroupScope]),Lu=b.createRovingFocusGroupScope(),us=S.forwardRef((e,t)=>{const{type:n,...r}=e;if(n==="single"){const i=r;return h.jsx(M0,{...i,ref:t})}if(n==="multiple"){const i=r;return h.jsx(R0,{...i,ref:t})}throw new Error(`Missing prop \`type\` expected on \`${qt}\``)});us.displayName=qt;var[ju,Bu]=ku(qt),M0=S.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:i=()=>{},...s}=e,[o,a]=b.useControllableState({prop:n,defaultProp:r,onChange:i});return h.jsx(ju,{scope:e.__scopeToggleGroup,type:"single",value:o?[o]:[],onItemActivate:a,onItemDeactivate:S.useCallback(()=>a(""),[a]),children:h.jsx(Vu,{...s,ref:t})})}),R0=S.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:i=()=>{},...s}=e,[o=[],a]=b.useControllableState({prop:n,defaultProp:r,onChange:i}),l=S.useCallback(c=>a((f=[])=>[...f,c]),[a]),u=S.useCallback(c=>a((f=[])=>f.filter(d=>d!==c)),[a]);return h.jsx(ju,{scope:e.__scopeToggleGroup,type:"multiple",value:o,onItemActivate:l,onItemDeactivate:u,children:h.jsx(Vu,{...s,ref:t})})});us.displayName=qt;var[D0,I0]=ku(qt),Vu=S.forwardRef((e,t)=>{const{__scopeToggleGroup:n,disabled:r=!1,rovingFocus:i=!0,orientation:s,dir:o,loop:a=!0,...l}=e,u=Lu(n),c=b.useDirection(o),f={role:"group",dir:c,...l};return h.jsx(D0,{scope:n,rovingFocus:i,disabled:r,children:i?h.jsx(b.Root$1,{asChild:!0,...u,orientation:s,dir:c,loop:a,children:h.jsx(b.Primitive.div,{...f,ref:t})}):h.jsx(b.Primitive.div,{...f,ref:t})})}),Jn="ToggleGroupItem",Fu=S.forwardRef((e,t)=>{const n=Bu(Jn,e.__scopeToggleGroup),r=I0(Jn,e.__scopeToggleGroup),i=Lu(e.__scopeToggleGroup),s=n.value.includes(e.value),o=r.disabled||e.disabled,a={...e,pressed:s,disabled:o},l=S.useRef(null);return r.rovingFocus?h.jsx(b.Item,{asChild:!0,...i,focusable:!o,active:s,ref:l,children:h.jsx(Qo,{...a,ref:t})}):h.jsx(Qo,{...a,ref:t})});Fu.displayName=Jn;var Qo=S.forwardRef((e,t)=>{const{__scopeToggleGroup:n,value:r,...i}=e,s=Bu(Jn,n),o={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},a=s.type==="single"?o:void 0;return h.jsx(Iu,{...a,...i,ref:t,onPressedChange:l=>{l?s.onItemActivate(r):s.onItemDeactivate(r)}})}),Uu=us,$u=Fu;const k0=b.cva("inline-flex items-center justify-center gap-1 whitespace-nowrap text-sm font-normal ring-offset-background transition-all focus-visible:outline-none disabled:pointer-events-none",{variants:{variant:{solid:"disabled:bg-muted disabled:text-muted-foreground disabled:border-muted",outline:"disabled:bg-white disabled:text-muted disabled:border-border"},theme:{primary:"bg-white border border-main-200 text-primary hover:bg-main-100",secondary:"bg-white border border-grey-200 text-secondary hover:bg-grey-100"},size:{xs:"h-8 py-1 px-2 text-sm",sm:"h-9 py-2 px-3 text-sm",md:"h-11 px-3 py-3 text-sm",lg:"h-[52px] px-12 py-[14px] text-base",icon:"h-auto w-auto"},shape:{square:"rounded-lg",rounded:"rounded-full"},checked:{true:"",false:""}},compoundVariants:[{theme:"primary",checked:!0,className:"bg-main-600 border-main-600 text-white hover:bg-main-700 hover:border-main-700"},{theme:"secondary",checked:!0,className:"bg-grey-800 border-grey-800 text-white hover:bg-grey-900 hover:border-grey-900"}],defaultVariants:{theme:"primary",size:"md",shape:"square",checked:!1}}),ds=M.createContext({theme:"primary",size:"md",shape:"square"});ds.displayName="ToggleGroupContext";const fs=M.forwardRef(({className:e,variant:t,theme:n,size:r,shape:i,children:s,...o},a)=>h.jsx(ds.Provider,{value:{theme:n,size:r,shape:i},children:h.jsx(Uu,{ref:a,className:b.cn("flex items-center justify-center gap-1",e),...o,children:s})}));fs.displayName=Uu.displayName;const hn=M.forwardRef(({className:e,checked:t=!1,children:n,...r},i)=>{const s=M.useContext(ds);return h.jsx($u,{ref:i,className:b.cn(k0({theme:r.theme||s.theme||"primary",size:r.size||s.size||"md",shape:r.shape||s.shape||"square",variant:r.variant||"outline",checked:t}),e),...r,children:n})});hn.displayName=$u.displayName;const Gu=({options:e,variant:t="outline",theme:n="primary",size:r="md",shape:i="square",value:s,onChange:o,nullable:a=!0,className:l})=>h.jsx(fs,{type:"single",value:s,onValueChange:u=>{!a&&!u||o(u)},theme:n,size:r,shape:i,className:l,children:e.map(u=>u.tooltip?h.jsx(cs,{label:u.tooltip.label,variant:u.tooltip.variant,size:u.tooltip.size,icLeft:u.tooltip.icLeft,icRight:u.tooltip.icRight,position:u.tooltip.position,bubbleTip:u.tooltip.bubbleTip,children:h.jsx(hn,{value:u.value,checked:s===u.value,disabled:u.disabled,variant:t,children:u.label})},u.value):h.jsx(hn,{value:u.value,checked:s===u.value,disabled:u.disabled,variant:t,children:u.label},u.value))}),zu=({options:e,variant:t="outline",theme:n="primary",size:r="md",shape:i="square",value:s,onChange:o,className:a})=>h.jsx(fs,{type:"multiple",value:s,onValueChange:o,theme:n,size:r,shape:i,className:a,children:e.map(l=>l.tooltip?h.jsx(cs,{label:l.tooltip.label,variant:l.tooltip.variant,size:l.tooltip.size,icLeft:l.tooltip.icLeft,icRight:l.tooltip.icRight,position:l.tooltip.position,bubbleTip:l.tooltip.bubbleTip,children:h.jsx(hn,{value:l.value,checked:(s||[]).includes(l.value),disabled:l.disabled,variant:t,children:l.label})},l.value):h.jsx(hn,{value:l.value,checked:(s||[]).includes(l.value),disabled:l.disabled,variant:t,children:l.label},l.value))}),L0={Single:Gu,Multiple:zu};exports.AlertDialog=V.AlertDialog;exports.AlertDialogAction=V.AlertDialogAction;exports.AlertDialogCancel=V.AlertDialogCancel;exports.AlertDialogContent=V.AlertDialogContent;exports.AlertDialogDescription=V.AlertDialogDescription;exports.AlertDialogFooter=V.AlertDialogFooter;exports.AlertDialogHeader=V.AlertDialogHeader;exports.AlertDialogOverlay=V.AlertDialogOverlay;exports.AlertDialogPortal=V.AlertDialogPortal;exports.AlertDialogTitle=V.AlertDialogTitle;exports.AlertDialogTrigger=V.AlertDialogTrigger;exports.AlertForm=V.AlertForm;exports.Dialog=V.Dialog;exports.DialogClose=V.DialogClose;exports.DialogContent=V.DialogContent;exports.DialogDescription=V.DialogDescription;exports.DialogFooter=V.DialogFooter;exports.DialogForm=V.DialogForm;exports.DialogHeader=V.DialogHeader;exports.DialogOverlay=V.DialogOverlay;exports.DialogPortal=V.DialogPortal;exports.DialogTitle=V.DialogTitle;exports.DialogTrigger=V.DialogTrigger;exports.ModalForm=V.ModalForm;exports.PortalContainer=V.PortalContainer;exports.Toast=V.Toast;exports.ToastAction=V.ToastAction;exports.ToastClose=V.ToastClose;exports.ToastDescription=V.ToastDescription;exports.ToastForm=V.ToastForm;exports.ToastProvider=V.ToastProvider;exports.ToastTitle=V.ToastTitle;exports.ToastViewport=V.ToastViewport;exports.toastPositionVariants=V.toastPositionVariants;exports.toastVariants=V.toastVariants;exports.Accordion=Zt;exports.CheckboxBooleanFormField=Ux;exports.CheckboxGroupFormField=$x;exports.CodeBlock=_u;exports.ContentsCard=Ca;exports.DefaultFormField=Gx;exports.DropdownRadioFormField=zx;exports.EventCard=Gd;exports.LoadingCard=Aa;exports.MainBannerImage=gh;exports.MainBannerLoading=Cl;exports.Multiple=zu;exports.NotionParser=r0;exports.PremiumCard=bh;exports.RadioFormField=Wx;exports.Single=Gu;exports.StringArrayFormField=Kx;exports.StringInputField=Hx;exports.TitleTagCard=xh;exports.ToggleButtonGroup=L0;exports.Tooltip=cs;exports.UrlFormField=qx;exports.usePortal=i0;
@@ -13667,7 +13667,7 @@ const wt = ({
13667
13667
  zs[d || ""] ? `${zs[d]} bg-opacity-80 px-1.5 rounded py-0.5` : "",
13668
13668
  t
13669
13669
  ), p = s.link && s.link.url ? /* @__PURE__ */ m(gn, { type: "external", href: s.link.url, className: "text-main-600 underline", children: s.content }) : s.content;
13670
- return /* @__PURE__ */ m("span", { className: h, children: p }, r);
13670
+ return typeof p == "string" && p.length === 0 ? /* @__PURE__ */ m("br", {}) : /* @__PURE__ */ m("span", { className: h, children: p }, r);
13671
13671
  }), Xe = (e, t = "default", n = !1, r = null) => {
13672
13672
  var f, d, h, p, g, b, y, v, w, x, E, N, L, V, G, H, ue, de, fe, pe, ae, ve, q, te, le, ie, Ve, Oe, T, R, U, z, Y, Pe, he, we, xe, De, rt, Mt, ze, Kt, Ge, Ke, Me, Ht, it, $, me, ee, X, j, W;
13673
13673
  const i = `${e.type}-block`, s = ji(t), o = ((f = e[e.type]) == null ? void 0 : f.rich_text) || "", a = (e == null ? void 0 : e.children) || [], l = Fa(e, t) && ((d = _r[t][e.type]) == null ? void 0 : d.className) || "", c = a == null ? void 0 : a.some((_) => Va.includes(_.type)), u = (_) => Qw(_, l);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "boottent-design",
3
3
  "private": false,
4
- "version": "0.1.165",
4
+ "version": "0.1.166",
5
5
  "description": "부트텐트 디자인시스템 라이브러리",
6
6
  "repository": {
7
7
  "type": "git",