boottent-design 0.1.180 → 0.1.181
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components.cjs.js +1 -1
- package/dist/components.es.js +1 -1
- package/package.json +1 -1
package/dist/components.cjs.js
CHANGED
|
@@ -12,4 +12,4 @@ https://github.com/highlightjs/highlight.js/issues/2277`),Ae=_,Q=R);const he={co
|
|
|
12
12
|
@keyframes `.concat(r,` {
|
|
13
13
|
`).concat(t,`
|
|
14
14
|
}
|
|
15
|
-
`);return s&&s.insertRule(o,0),r},Xn=function(){return Xn=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},Xn.apply(this,arguments)},Kx=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},Hx=zx("BeatLoader","50% {transform: scale(0.75);opacity: 0.2} 100% {transform: scale(1);opacity: 1}","beat");function qx(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,c=e.size,u=c===void 0?15:c,f=e.margin,d=f===void 0?2:f,p=Kx(e,["loading","color","speedMultiplier","cssOverride","size","margin"]),m=Xn({display:"inherit"},l),g=function(y){return{display:"inline-block",backgroundColor:i,width:Dr(u),height:Dr(u),margin:Dr(d),borderRadius:"100%",animation:"".concat(Hx," ").concat(.7/o,"s ").concat(y%2?"0s":"".concat(.35/o,"s")," infinite linear"),animationFillMode:"both"}};return n?M.createElement("span",Xn({style:m},p),M.createElement("span",{style:g(1)}),M.createElement("span",{style:g(2)}),M.createElement("span",{style:g(3)})):null}const ut=({group:e,depth:t,variant:n="default",isChildrenList:r=!1})=>{const i=ci(n);if(!e||e.length===0)return null;const s=ui(e),o=["list-decimal","list-lower","list-roman"],a=["list-disc","list-square","list-circle"];return s.map((l,c)=>{const u=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(u,{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("li",{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)?ut({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(Zn,{block:m,variant:n,isLast:!0},m.type+m.id+g))})})]},p.type+p.id+c))},l.type+c):h.jsx("div",{children:Ke(l.block,n)},l.block.id||c)})},Yx=(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:c,code:u,color:f,backgroundColor:d}=i,p=b.cn("whitespace-pre-wrap",o&&"font-semibold",a&&"italic",l&&"underline",c&&"line-through",Zu[f]??"",u&&"bg-grey-200 bg-opacity-80 px-1.5 rounded py-0.5 text-red-400",us[d||""]?`${us[d]} bg-opacity-80 px-1.5 rounded py-0.5`:"",t),m=s.link&&s.link.url?h.jsx(te.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,N,B,k,q,X,ue,de,fe,pe,le,be,Z,re,ce,oe,Le,Pe,_,R,W,H,Q,Ae,he,ye,ve,Re,Qe,vt,$e,At,Ge,We,Oe,Pt,Je,z;const i=`${e.type}-block`,s=ci(t),o=((f=e[e.type])==null?void 0:f.rich_text)||"",a=(e==null?void 0:e.children)||[],l=Xo(e,t)&&((d=Jn[t][e.type])==null?void 0:d.className)||"",c=a==null?void 0:a.some(A=>qo.includes(A.type)),u=A=>Yx(A,l);switch(e.type){case"loading":return h.jsx(xe.div,{initial:{opacity:0},animate:{opacity:1},className:b.cn(i,s.loading),children:h.jsx(qx,{size:8})});case"paragraph":return o&&o.length>0?h.jsx(xe.p,{initial:{opacity:0},animate:{opacity:1},className:b.cn(i,s.paragraph,n&&"mb-0"),children:u(((p=e.paragraph)==null?void 0:p.rich_text)||"")}):h.jsx(xe.div,{initial:{opacity:0},animate:{opacity:1},className:b.cn(i,s.paragraph),children:" "});case"heading_1":return o&&o.length>0?h.jsx(xe.h1,{initial:{opacity:0},animate:{opacity:1},className:b.cn(i,s.heading1),children:u(((m=e.heading_1)==null?void 0:m.rich_text)||"")}):null;case"heading_2":return o&&o.length>0?h.jsx(xe.h2,{initial:{opacity:0},animate:{opacity:1},className:b.cn(i,s.heading2),children:u(((g=e.heading_2)==null?void 0:g.rich_text)||"")}):null;case"heading_3":return o&&o.length>0?h.jsx(xe.h3,{initial:{opacity:0},animate:{opacity:1},className:b.cn(i,s.heading3),children:u(((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:u(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(xe.blockquote,{initial:{opacity:0},animate:{opacity:1},className:b.cn(i,s.quote),children:[u(((w=e.quote)==null?void 0:w.rich_text)||""),e.children&&e.children.length>0&&h.jsx("div",{className:"space-y-1",children:c?ut({group:e.children,depth:1,variant:t}):e.children.map((A,L)=>h.jsx(S.Fragment,{children:Ke(A,t,!0,"quote")},e.type+A.id+L))})]}):null;case"divider":return h.jsx("hr",{className:b.cn(i,s.divider)});case"image":{const A=e.image,L=((E=A==null?void 0:A.file)==null?void 0:E.url)||((T=A==null?void 0:A.external)==null?void 0:T.url),K=Array.isArray(A==null?void 0:A.caption)?A.caption:[];let V={},U=K;if(K.length>0){const j=K[0].plain_text||"";if(j.includes("||")){const[Y,P]=j.split("||").map(I=>I.trim());V=b.parseInlineStyle(P),Y?U=[{...K[0],plain_text:Y,text:{...K[0].text,content:Y}},...K.slice(1)]:U=[]}}return h.jsxs(xe.figure,{initial:{opacity:0},animate:{opacity:1},className:b.cn(i,"overflow-hidden rounded-lg"),children:[L?h.jsx("div",{style:V,className:s.image,children:h.jsx("img",{src:L,className:"h-full w-full object-cover",alt:((N=U[0])==null?void 0:N.plain_text)||"Image"})}):h.jsx("div",{className:"w-full rounded-lg bg-grey-200 p-4",children:"이미지를 불러올 수 없습니다"}),U.length>0&&h.jsx("figcaption",{className:"mt-2 text-center text-sm text-gray-500",children:u(U)})]})}case"callout":{const A=((k=(B=e.callout)==null?void 0:B.icon)==null?void 0:k.emoji)||null,L=r==="column";return h.jsxs(xe.div,{initial:{opacity:0},animate:{opacity:1},className:b.cn(i,s.callout,L&&"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:A||"💡"})}),h.jsxs("div",{className:"flex flex-col gap-2",children:[o.length>0&&h.jsx("div",{className:"text-base md:text-lg",children:u(o)}),e.children&&e.children.length>0&&h.jsx("div",{className:"space-y-1",children:c?ut({group:e.children,depth:1,variant:t,isChildrenList:c}):e.children.map((K,V)=>h.jsx(S.Fragment,{children:Ke(K,t,!0,"callout")},e.type+K.id+V))})]})]})}case"code":{const A=((q=e.code)==null?void 0:q.rich_text)||[],L=((X=e.code)==null?void 0:X.language)||"plaintext";if(A.length>0&&((ue=A[0].plain_text)!=null&&ue.startsWith("!#btrl"))){const V=[A[1]],U=A.slice(2);let j="mb-2 flex rounded-3xl px-6 py-8";return L==="bash"?j+=" bg-main-100/60":L==="abap"?j+=" border border-border bg-transparent":j+=" bg-grey-100",h.jsxs(xe.div,{initial:{opacity:0},animate:{opacity:1},className:b.cn(i,s.callout,j),children:[h.jsx("span",{className:"break-keep text-lg font-bold md:text-xl",children:u(V)}),h.jsx("span",{className:"mt-[1px] whitespace-pre-wrap break-words text-base md:text-lg",children:u(U)})]})}const K=A.map(V=>V.plain_text).join("")||"";return h.jsx(zl,{code:K,language:L})}case"to_do":{const A=((de=e.to_do)==null?void 0:de.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:A,readOnly:!0,className:"mt-1 h-4 w-4 rounded border-gray-300"}),h.jsx("span",{className:b.cn(s.paragraph,A?"text-gray-400 line-through":""),children:u(((fe=e.to_do)==null?void 0:fe.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:u(((pe=e.toggle)==null?void 0:pe.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:c?ut({group:e.children,depth:1,variant:t}):e.children.map((A,L)=>h.jsx(S.Fragment,{children:Ke(A,t,!0,"toggle")},e.type+A.id+L))})})]}):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((A,L)=>{var K,V;return h.jsx("tr",{className:s.tableRow,children:(V=(K=A.table_row)==null?void 0:K.cells)==null?void 0:V.map((U,j)=>{var O,C,J;const Y=((O=e.table)==null?void 0:O.has_column_header)&&L===0,P=((C=e.table)==null?void 0:C.has_row_header)&&j===0,I=Y?"th":"td";return h.jsx(I,{className:b.cn(s.tableCell,"px-4 py-2 align-top",Y?"bg-grey-100 text-left font-semibold":"text-left",P?"bg-grey-100":""),style:{minWidth:"120px",textAlign:"left",wordBreak:"break-word"},children:(J=U||[])==null?void 0:J.map((ze,Ot)=>h.jsx(S.Fragment,{children:u([ze])},Ot))},j)})},A.id||L)})})})});case"bookmark":{const A=((le=e.bookmark)==null?void 0:le.url)||"",{meta:L,loading:K}=Sg(A);return A?h.jsx(xe.div,{initial:{opacity:0},animate:{opacity:1},className:b.cn(i,"mb-4 block"),children:K?h.jsx("div",{className:"h-24 animate-pulse rounded-md bg-gray-100"}):L?h.jsxs(S.Fragment,{children:[h.jsxs(te.Anchor,{type:"external",href:A,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:[L.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:L.image,alt:L.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:L.title}),h.jsx("div",{className:"line-clamp-2 text-sm text-gray-500",children:L.description})]})]}),((Z=(be=e.bookmark)==null?void 0:be.caption)==null?void 0:Z.length)>0&&h.jsx("div",{className:"mt-2 text-xs text-grey-500 md:text-sm",children:u(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(te.Anchor,{type:"external",href:A,children:A}),((ce=(re=e.bookmark)==null?void 0:re.caption)==null?void 0:ce.length)>0&&h.jsx("div",{className:"mt-2 text-sm text-gray-500",children:u(e.bookmark.caption)})]})}):null}case"embed":{const A=((oe=e.embed)==null?void 0:oe.url)||"";return h.jsxs("div",{className:b.cn(i,"mb-4"),children:[h.jsx("iframe",{src:A,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}),((Pe=(Le=e.embed)==null?void 0:Le.caption)==null?void 0:Pe.length)>0&&h.jsx("div",{className:"mt-2 text-sm text-muted",children:u(e.embed.caption)})]})}case"video":{const A=((R=(_=e.video)==null?void 0:_.external)==null?void 0:R.url)||((H=(W=e.video)==null?void 0:W.file)==null?void 0:H.url)||"",L=ed(A);return h.jsxs(xe.div,{initial:{opacity:0},animate:{opacity:1},className:b.cn(i,"mb-4"),children:[A?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:L,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:"비디오를 불러올 수 없습니다"}),((Ae=(Q=e.video)==null?void 0:Q.caption)==null?void 0:Ae.length)>0&&h.jsx("div",{className:"mt-2 text-sm text-gray-500",children:u(e.video.caption)})]})}case"file":{const A=((ye=(he=e.file)==null?void 0:he.external)==null?void 0:ye.url)||((Re=(ve=e.file)==null?void 0:ve.file)==null?void 0:Re.url)||"",L=A.split("/").pop()||"File";return h.jsxs(xe.div,{initial:{opacity:0},animate:{opacity:1},className:b.cn("mb-4"),children:[h.jsxs(te.Anchor,{type:"external",href:A,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:L})]}),((vt=((Qe=e.file)==null?void 0:Qe.caption)||[])==null?void 0:vt.length)>0&&h.jsx("div",{className:"mt-2 text-xs text-grey-500 md:text-sm",children:u(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 A=(($e=e.link_preview)==null?void 0:$e.url)||((At=e[e.type])==null?void 0:At.url)||"#",L=((Ge=e.link_preview)==null?void 0:Ge.url)||((We=e[e.type])==null?void 0:We.page_id)||"링크";return h.jsx(xe.div,{initial:{opacity:0},animate:{opacity:1},className:b.cn(i,"mb-4"),children:h.jsx(te.Anchor,{type:"external",href:A,children:L})})}case"child_page":case"child_database":{const A=((Oe=e[e.type])==null?void 0:Oe.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:A}),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:"템플릿"}),(((Pt=e.template)==null?void 0:Pt.rich_text)||"").length>0&&h.jsx("div",{children:u(((Je=e.template)==null?void 0:Je.rich_text)||"")})]});case"synced_block":return h.jsx("div",{className:b.cn(i,"mb-4"),children:a.map((A,L)=>h.jsx("div",{children:Ke(A,t,!1,"synced_block")},e.type+A.id+L))});case"column_list":return h.jsx(xe.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((A,L)=>h.jsx("div",{className:"w-full min-w-[150px] flex-1",children:Ke(A,t,!1,"column_list")},e.type+A.id+L))});case"column":return h.jsx(xe.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((A,L)=>h.jsx(S.Fragment,{children:Ke(A,t,!1,"column")},e.type+A.id+L))});case"unsupported":return null;default:return o&&o.length>0?h.jsx("p",{className:b.cn(i,s.paragraph),children:u(((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]})}},Zn=({block:e,accordionHeadings:t=[],variant:n="default",isLast:r=!1})=>{const i=Yo(e,n),s=Ju(e,n),o=Xo(e,n);if(qo.includes(e.type)&&e.children)return ut({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?ui(e.children):[];return o&&t.includes(e.type)&&l.length>0?h.jsx(Zt.Root,{type:"single",collapsible:!0,className:"w-full bg-white pb-1 md:pb-2 lg:pb-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((c,u)=>c.type==="bulleted_list"||c.type==="numbered_list"?h.jsx(S.Fragment,{children:ut({group:c.blocks,depth:1,variant:n})},c.type+u):h.jsx(Zn,{block:c.block,accordionHeadings:t,variant:n},c.block.id+u))})]})}):h.jsxs(s,{children:[a,l.length>0&&h.jsx("div",{className:"mt-4",children:l.map((c,u)=>c.type==="bulleted_list"||c.type==="numbered_list"?h.jsx(S.Fragment,{children:ut({group:c.blocks,depth:1,variant:n})},c.type+u):h.jsx(Zn,{block:c.block,accordionHeadings:t,variant:n},c.block.id+u))})]})}return Ke(e,n,r)},Xx=({blocks:e,accordionHeadings:t=[],className:n,variant:r="default"})=>{const i=Qu(e,r),s=ci(r),o=a=>ui(a).map((c,u)=>c.type==="bulleted_list"||c.type==="numbered_list"?h.jsx(S.Fragment,{children:ut({group:c.blocks,depth:1,variant:r})},c.type+u):h.jsx(Zn,{block:c.block,accordionHeadings:t,variant:r},c.type+u));return h.jsx("div",{className:b.cn(s.container,n),children:o(i)})},Zx=()=>{const[e,t]=S.useState([]);return S.useEffect(()=>{const u=(d,p)=>{t(p?m=>m.includes(d.id)?m:[...m,d.id]:m=>m.filter(g=>g!==d.id))},f=$.portalManager.subscribe(u);return t($.portalManager.getOpenPortals()),()=>{f()}},[]),{modal:u=>{const{onClose:f=()=>{}}=u;return $.portalManager.showPortal("modal",{...u,onClose:f})},toast:u=>{let f;return typeof u=="string"?f={description:u}:f=u,$.portalManager.showPortal("toast",f)},alert:u=>{let f;return typeof u=="string"?f={description:u,onClose:()=>{}}:f={...u,onClose:u.onClose||(()=>{})},$.portalManager.showPortal("alert",f)},dialog:u=>{const{onClose:f=()=>{}}=u;return $.portalManager.showPortal("dialog",{...u,onClose:f})},custom:u=>{const{onClose:f=()=>{}}=u;return $.portalManager.showPortal("custom",{...u,onClose:f})},getIsOpen:u=>$.portalManager.getIsPortalOpen(u),closePortal:u=>{$.portalManager.closePortal(u)},closeAllPortals:()=>{$.portalManager.closeAllPortals()},openPortals:e}};var[dr,O0]=b.createContextScope("Tooltip",[b.createPopperScope]),fr=b.createPopperScope(),wu="TooltipProvider",Qx=700,ai="tooltip.open",[Jx,is]=dr(wu),Eu=e=>{const{__scopeTooltip:t,delayDuration:n=Qx,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:s}=e,[o,a]=M.useState(!0),l=M.useRef(!1),c=M.useRef(0);return M.useEffect(()=>{const u=c.current;return()=>window.clearTimeout(u)},[]),h.jsx(Jx,{scope:t,isOpenDelayed:o,delayDuration:n,onOpen:M.useCallback(()=>{window.clearTimeout(c.current),a(!1)},[]),onClose:M.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>a(!0),r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:M.useCallback(u=>{l.current=u},[]),disableHoverableContent:i,children:s})};Eu.displayName=wu;var hr="Tooltip",[e0,pr]=dr(hr),Tu=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:i=!1,onOpenChange:s,disableHoverableContent:o,delayDuration:a}=e,l=is(hr,e.__scopeTooltip),c=fr(t),[u,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:B=>{B?(l.onOpen(),document.dispatchEvent(new CustomEvent(ai))):l.onClose(),s==null||s(B)}}),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]),N=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,{...c,children:h.jsx(e0,{scope:t,contentId:d,open:v,stateAttribute:w,trigger:u,onTriggerChange:f,onTriggerEnter:M.useCallback(()=>{l.isOpenDelayed?N():E()},[l.isOpenDelayed,N,E]),onTriggerLeave:M.useCallback(()=>{m?T():(window.clearTimeout(p.current),p.current=0)},[T,m]),onOpen:E,onClose:T,disableHoverableContent:m,children:n})})};Tu.displayName=hr;var li="TooltipTrigger",_u=M.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=pr(li,n),s=is(li,n),o=fr(n),a=M.useRef(null),l=b.useComposedRefs(t,a,i.onTriggerChange),c=M.useRef(!1),u=M.useRef(!1),f=M.useCallback(()=>c.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"&&!u.current&&!s.isPointerInTransitRef.current&&(i.onTriggerEnter(),u.current=!0)}),onPointerLeave:b.composeEventHandlers(e.onPointerLeave,()=>{i.onTriggerLeave(),u.current=!1}),onPointerDown:b.composeEventHandlers(e.onPointerDown,()=>{c.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:b.composeEventHandlers(e.onFocus,()=>{c.current||i.onOpen()}),onBlur:b.composeEventHandlers(e.onBlur,i.onClose),onClick:b.composeEventHandlers(e.onClick,i.onClose)})})});_u.displayName=li;var t0="TooltipPortal",[M0,n0]=dr(t0,{forceMount:void 0}),Wt="TooltipContent",Su=M.forwardRef((e,t)=>{const n=n0(Wt,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...s}=e,o=pr(Wt,e.__scopeTooltip);return h.jsx(b.Presence,{present:r||o.open,children:o.disableHoverableContent?h.jsx(Nu,{side:i,...s,ref:t}):h.jsx(r0,{side:i,...s,ref:t})})}),r0=M.forwardRef((e,t)=>{const n=pr(Wt,e.__scopeTooltip),r=is(Wt,e.__scopeTooltip),i=M.useRef(null),s=b.useComposedRefs(t,i),[o,a]=M.useState(null),{trigger:l,onClose:c}=n,u=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=a0(v,y.getBoundingClientRect()),w=l0(v,x),E=c0(g.getBoundingClientRect()),T=d0([...w,...E]);a(T),f(!0)},[f]);return M.useEffect(()=>()=>d(),[d]),M.useEffect(()=>{if(l&&u){const m=y=>p(y,u),g=y=>p(y,l);return l.addEventListener("pointerleave",m),u.addEventListener("pointerleave",g),()=>{l.removeEventListener("pointerleave",m),u.removeEventListener("pointerleave",g)}}},[l,u,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))||(u==null?void 0:u.contains(y)),w=!u0(v,o);x?d():w&&(d(),c())};return document.addEventListener("pointermove",m),()=>document.removeEventListener("pointermove",m)}},[l,u,o,c,d]),h.jsx(Nu,{...e,ref:s})}),[i0,s0]=dr(hr,{isInside:!1}),Nu=M.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:s,onPointerDownOutside:o,...a}=e,l=pr(Wt,n),c=fr(n),{onClose:u}=l;return M.useEffect(()=>(document.addEventListener(ai,u),()=>document.removeEventListener(ai,u)),[u]),M.useEffect(()=>{if(l.trigger){const f=d=>{const p=d.target;p!=null&&p.contains(l.trigger)&&u()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[l.trigger,u]),h.jsx(b.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:o,onFocusOutside:f=>f.preventDefault(),onDismiss:u,children:h.jsxs(b.Content,{"data-state":l.stateAttribute,...c,...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(i0,{scope:n,isInside:!0,children:h.jsx($.Root,{id:l.contentId,role:"tooltip",children:i||r})})]})})});Su.displayName=Wt;var Cu="TooltipArrow",o0=M.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=fr(n);return s0(Cu,n).isInside?null:h.jsx(b.Arrow,{...i,...r,ref:t})});o0.displayName=Cu;function a0(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 l0(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 c0(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 u0(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,c=t[o].x,u=t[o].y;l>r!=u>r&&n<(c-a)*(r-l)/(u-l)+a&&(i=!i)}return i}function d0(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),f0(t)}function f0(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 h0=Eu,p0=Tu,m0=_u,Au=Su;const Ko={primary:"bg-main-600 text-white",secondary:"bg-grey-800 text-white",white:"bg-grey-50 text-grey-800"},g0={sm:"p-2 text-[13px] rounded",md:"p-2 text-sm font-normal rounded"},Pu=h0,Ou=p0,Mu=m0,b0=(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]}},ss=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,...c},u)=>{const f=b0(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(Au,{ref:u,avoidCollisions:!1,sideOffset:l?i:4,side:p,align:m,style:{zIndex:50},...c,children:h.jsxs("div",{className:b.cn("relative z-50 rounded",l&&"m-1",t==="white"&&"border border-border",Ko[t],e),children:[l&&h.jsx("div",{style:f,className:"absolute z-20"}),h.jsx("div",{className:"absolute inset-0 z-30 rounded bg-white"}),h.jsxs("div",{className:b.cn("relative z-40 flex max-w-sm items-center font-normal",t!=="white"&&"bg-opacity-90",Ko[t],g0[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})]})]})})});ss.displayName=Au.displayName;const os=({label:e,variant:t="secondary",size:n="md",children:r,icLeft:i,icRight:s,position:o="top-center",bubbleTip:a=!0,forceMount:l,isMobile:c=Qt})=>{const[u,f]=M.useState(!1),d=M.useRef(null),p=typeof c=="number"?c:3e3,m=()=>{u?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(Pu,{delayDuration:200,children:h.jsxs(Ou,{delayDuration:200,children:[h.jsx(Mu,{asChild:!0,"data-state":u?"delayed-open":"closed",onMouseLeave:Qt?void 0:()=>f(!1),onMouseEnter:Qt?void 0:()=>f(!0),onClick:Qt?m:void 0,children:r}),h.jsx(ss,{variant:t,size:n,icLeft:i,icRight:s,position:o,forceMount:l||u||void 0,bubbleTip:a,children:e})]})})};function y0(e,t=[]){let n=[];function r(s,o){const a=M.createContext(o),l=n.length;n=[...n,o];function c(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 u(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 c.displayName=s+"Provider",[c,u]}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,v0(i,...t)]}function v0(...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:c})=>{const f=l(s)[`__scope${c}`];return{...a,...f}},{});return M.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}var x0="Toggle",Ru=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)})})});Ru.displayName=x0;var qt="ToggleGroup",[Du,R0]=y0(qt,[b.createRovingFocusGroupScope]),Iu=b.createRovingFocusGroupScope(),as=S.forwardRef((e,t)=>{const{type:n,...r}=e;if(n==="single"){const i=r;return h.jsx(w0,{...i,ref:t})}if(n==="multiple"){const i=r;return h.jsx(E0,{...i,ref:t})}throw new Error(`Missing prop \`type\` expected on \`${qt}\``)});as.displayName=qt;var[ku,Lu]=Du(qt),w0=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(ku,{scope:e.__scopeToggleGroup,type:"single",value:o?[o]:[],onItemActivate:a,onItemDeactivate:S.useCallback(()=>a(""),[a]),children:h.jsx(ju,{...s,ref:t})})}),E0=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(u=>a((f=[])=>[...f,u]),[a]),c=S.useCallback(u=>a((f=[])=>f.filter(d=>d!==u)),[a]);return h.jsx(ku,{scope:e.__scopeToggleGroup,type:"multiple",value:o,onItemActivate:l,onItemDeactivate:c,children:h.jsx(ju,{...s,ref:t})})});as.displayName=qt;var[T0,_0]=Du(qt),ju=S.forwardRef((e,t)=>{const{__scopeToggleGroup:n,disabled:r=!1,rovingFocus:i=!0,orientation:s,dir:o,loop:a=!0,...l}=e,c=Iu(n),u=b.useDirection(o),f={role:"group",dir:u,...l};return h.jsx(T0,{scope:n,rovingFocus:i,disabled:r,children:i?h.jsx(b.Root$1,{asChild:!0,...c,orientation:s,dir:u,loop:a,children:h.jsx(b.Primitive.div,{...f,ref:t})}):h.jsx(b.Primitive.div,{...f,ref:t})})}),Qn="ToggleGroupItem",Bu=S.forwardRef((e,t)=>{const n=Lu(Qn,e.__scopeToggleGroup),r=_0(Qn,e.__scopeToggleGroup),i=Iu(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(Ho,{...a,ref:t})}):h.jsx(Ho,{...a,ref:t})});Bu.displayName=Qn;var Ho=S.forwardRef((e,t)=>{const{__scopeToggleGroup:n,value:r,...i}=e,s=Lu(Qn,n),o={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},a=s.type==="single"?o:void 0;return h.jsx(Ru,{...a,...i,ref:t,onPressedChange:l=>{l?s.onItemActivate(r):s.onItemDeactivate(r)}})}),Vu=as,Fu=Bu;const S0=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}}),ls=M.createContext({theme:"primary",size:"md",shape:"square"});ls.displayName="ToggleGroupContext";const cs=M.forwardRef(({className:e,variant:t,theme:n,size:r,shape:i,children:s,...o},a)=>h.jsx(ls.Provider,{value:{theme:n,size:r,shape:i},children:h.jsx(Vu,{ref:a,className:b.cn("flex items-center justify-center gap-1",e),...o,children:s})}));cs.displayName=Vu.displayName;const hn=M.forwardRef(({className:e,checked:t=!1,children:n,...r},i)=>{const s=M.useContext(ls);return h.jsx(Fu,{ref:i,className:b.cn(S0({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=Fu.displayName;const Uu=({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(cs,{type:"single",value:s,onValueChange:c=>{!a&&!c||o(c)},theme:n,size:r,shape:i,className:l,children:e.map(c=>c.tooltip?h.jsx(os,{label:c.tooltip.label,variant:c.tooltip.variant,size:c.tooltip.size,icLeft:c.tooltip.icLeft,icRight:c.tooltip.icRight,position:c.tooltip.position,bubbleTip:c.tooltip.bubbleTip,children:h.jsx(hn,{value:c.value,checked:s===c.value,disabled:c.disabled,variant:t,children:c.label})},c.value):h.jsx(hn,{value:c.value,checked:s===c.value,disabled:c.disabled,variant:t,children:c.label},c.value))}),$u=({options:e,variant:t="outline",theme:n="primary",size:r="md",shape:i="square",value:s,onChange:o,className:a})=>h.jsx(cs,{type:"multiple",value:s,onValueChange:o,theme:n,size:r,shape:i,className:a,children:e.map(l=>l.tooltip?h.jsx(os,{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))}),N0={Single:Uu,Multiple:$u};exports.AlertDialog=$.AlertDialog;exports.AlertDialogAction=$.AlertDialogAction;exports.AlertDialogCancel=$.AlertDialogCancel;exports.AlertDialogContent=$.AlertDialogContent;exports.AlertDialogDescription=$.AlertDialogDescription;exports.AlertDialogFooter=$.AlertDialogFooter;exports.AlertDialogHeader=$.AlertDialogHeader;exports.AlertDialogOverlay=$.AlertDialogOverlay;exports.AlertDialogPortal=$.AlertDialogPortal;exports.AlertDialogTitle=$.AlertDialogTitle;exports.AlertDialogTrigger=$.AlertDialogTrigger;exports.AlertForm=$.AlertForm;exports.Dialog=$.Dialog;exports.DialogClose=$.DialogClose;exports.DialogContent=$.DialogContent;exports.DialogDescription=$.DialogDescription;exports.DialogFooter=$.DialogFooter;exports.DialogForm=$.DialogForm;exports.DialogHeader=$.DialogHeader;exports.DialogOverlay=$.DialogOverlay;exports.DialogPortal=$.DialogPortal;exports.DialogTitle=$.DialogTitle;exports.DialogTrigger=$.DialogTrigger;exports.ModalForm=$.ModalForm;exports.PortalContainer=$.PortalContainer;exports.Toast=$.Toast;exports.ToastAction=$.ToastAction;exports.ToastClose=$.ToastClose;exports.ToastDescription=$.ToastDescription;exports.ToastForm=$.ToastForm;exports.ToastProvider=$.ToastProvider;exports.ToastTitle=$.ToastTitle;exports.ToastViewport=$.ToastViewport;exports.toastPositionVariants=$.toastPositionVariants;exports.toastVariants=$.toastVariants;exports.Accordion=Zt;exports.CheckboxBooleanFormField=bg;exports.CheckboxGroupFormField=yg;exports.CodeBlock=zl;exports.ContentsCard=Ea;exports.DefaultFormField=vg;exports.DropdownRadioFormField=xg;exports.EventCard=Vd;exports.LoadingCard=Ta;exports.MainBannerImage=fh;exports.MainBannerLoading=El;exports.Multiple=$u;exports.NotionParser=Xx;exports.PremiumCard=hh;exports.RadioFormField=wg;exports.Single=Uu;exports.StringArrayFormField=Eg;exports.StringInputField=Tg;exports.TitleTagCard=gh;exports.ToggleButtonGroup=N0;exports.Tooltip=os;exports.TooltipContent=ss;exports.TooltipProvider=Pu;exports.TooltipRoot=Ou;exports.TooltipTrigger=Mu;exports.UrlFormField=_g;exports.usePortal=Zx;
|
|
15
|
+
`);return s&&s.insertRule(o,0),r},Xn=function(){return Xn=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},Xn.apply(this,arguments)},Kx=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},Hx=zx("BeatLoader","50% {transform: scale(0.75);opacity: 0.2} 100% {transform: scale(1);opacity: 1}","beat");function qx(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,c=e.size,u=c===void 0?15:c,f=e.margin,d=f===void 0?2:f,p=Kx(e,["loading","color","speedMultiplier","cssOverride","size","margin"]),m=Xn({display:"inherit"},l),g=function(y){return{display:"inline-block",backgroundColor:i,width:Dr(u),height:Dr(u),margin:Dr(d),borderRadius:"100%",animation:"".concat(Hx," ").concat(.7/o,"s ").concat(y%2?"0s":"".concat(.35/o,"s")," infinite linear"),animationFillMode:"both"}};return n?M.createElement("span",Xn({style:m},p),M.createElement("span",{style:g(1)}),M.createElement("span",{style:g(2)}),M.createElement("span",{style:g(3)})):null}const ut=({group:e,depth:t,variant:n="default",isChildrenList:r=!1})=>{const i=ci(n);if(!e||e.length===0)return null;const s=ui(e),o=["list-decimal","list-lower","list-roman"],a=["list-disc","list-square","list-circle"];return s.map((l,c)=>{const u=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(u,{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("li",{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)?ut({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(Zn,{block:m,variant:n,isLast:!0},m.type+m.id+g))})})]},p.type+p.id+c))},l.type+c):h.jsx("div",{children:Ke(l.block,n)},l.block.id||c)})},Yx=(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:c,code:u,color:f,backgroundColor:d}=i,p=b.cn("whitespace-pre-wrap",o&&"font-semibold",a&&"italic",l&&"underline",c&&"line-through",Zu[f]??"",u&&"bg-grey-200 bg-opacity-80 px-1.5 rounded py-0.5 text-red-400",us[d||""]?`${us[d]} bg-opacity-80 px-1.5 rounded py-0.5`:"",t),m=s.link&&s.link.url?h.jsx(te.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,N,B,k,q,X,ue,de,fe,pe,le,be,Z,re,ce,oe,Le,Pe,_,R,W,H,Q,Ae,he,ye,ve,Re,Qe,vt,$e,At,Ge,We,Oe,Pt,Je,z;const i=`${e.type}-block`,s=ci(t),o=((f=e[e.type])==null?void 0:f.rich_text)||"",a=(e==null?void 0:e.children)||[],l=Xo(e,t)&&((d=Jn[t][e.type])==null?void 0:d.className)||"",c=a==null?void 0:a.some(A=>qo.includes(A.type)),u=A=>Yx(A,l);switch(e.type){case"loading":return h.jsx(xe.div,{initial:{opacity:0},animate:{opacity:1},className:b.cn(i,s.loading),children:h.jsx(qx,{size:8})});case"paragraph":return o&&o.length>0?h.jsx(xe.p,{initial:{opacity:0},animate:{opacity:1},className:b.cn(i,s.paragraph,n&&"mb-0"),children:u(((p=e.paragraph)==null?void 0:p.rich_text)||"")}):h.jsx(xe.div,{initial:{opacity:0},animate:{opacity:1},className:b.cn(i,s.paragraph),children:" "});case"heading_1":return o&&o.length>0?h.jsx(xe.h1,{initial:{opacity:0},animate:{opacity:1},className:b.cn(i,s.heading1),children:u(((m=e.heading_1)==null?void 0:m.rich_text)||"")}):null;case"heading_2":return o&&o.length>0?h.jsx(xe.h2,{initial:{opacity:0},animate:{opacity:1},className:b.cn(i,s.heading2),children:u(((g=e.heading_2)==null?void 0:g.rich_text)||"")}):null;case"heading_3":return o&&o.length>0?h.jsx(xe.h3,{initial:{opacity:0},animate:{opacity:1},className:b.cn(i,s.heading3),children:u(((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:u(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(xe.blockquote,{initial:{opacity:0},animate:{opacity:1},className:b.cn(i,s.quote),children:[u(((w=e.quote)==null?void 0:w.rich_text)||""),e.children&&e.children.length>0&&h.jsx("div",{className:"space-y-1",children:c?ut({group:e.children,depth:1,variant:t}):e.children.map((A,L)=>h.jsx(S.Fragment,{children:Ke(A,t,!0,"quote")},e.type+A.id+L))})]}):null;case"divider":return h.jsx("hr",{className:b.cn(i,s.divider)});case"image":{const A=e.image,L=((E=A==null?void 0:A.file)==null?void 0:E.url)||((T=A==null?void 0:A.external)==null?void 0:T.url),K=Array.isArray(A==null?void 0:A.caption)?A.caption:[];let V={},U=K;if(K.length>0){const j=K[0].plain_text||"";if(j.includes("||")){const[Y,P]=j.split("||").map(I=>I.trim());V=b.parseInlineStyle(P),Y?U=[{...K[0],plain_text:Y,text:{...K[0].text,content:Y}},...K.slice(1)]:U=[]}}return h.jsxs(xe.figure,{initial:{opacity:0},animate:{opacity:1},className:b.cn(i,"overflow-hidden rounded-lg"),children:[L?h.jsx("div",{style:V,className:s.image,children:h.jsx("img",{src:L,className:"h-full w-full object-cover",alt:((N=U[0])==null?void 0:N.plain_text)||"Image"})}):h.jsx("div",{className:"w-full rounded-lg bg-grey-200 p-4",children:"이미지를 불러올 수 없습니다"}),U.length>0&&h.jsx("figcaption",{className:"mt-2 text-center text-sm text-gray-500",children:u(U)})]})}case"callout":{const A=((k=(B=e.callout)==null?void 0:B.icon)==null?void 0:k.emoji)||null,L=r==="column";return h.jsxs(xe.div,{initial:{opacity:0},animate:{opacity:1},className:b.cn(i,s.callout,L&&"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:A||"💡"})}),h.jsxs("div",{className:"flex w-full flex-col gap-2",children:[o.length>0&&h.jsx("div",{className:"text-base md:text-lg",children:u(o)}),e.children&&e.children.length>0&&h.jsx("div",{className:"space-y-1",children:c?ut({group:e.children,depth:1,variant:t,isChildrenList:c}):e.children.map((K,V)=>h.jsx(S.Fragment,{children:Ke(K,t,!0,"callout")},e.type+K.id+V))})]})]})}case"code":{const A=((q=e.code)==null?void 0:q.rich_text)||[],L=((X=e.code)==null?void 0:X.language)||"plaintext";if(A.length>0&&((ue=A[0].plain_text)!=null&&ue.startsWith("!#btrl"))){const V=[A[1]],U=A.slice(2);let j="mb-2 flex rounded-3xl px-6 py-8";return L==="bash"?j+=" bg-main-100/60":L==="abap"?j+=" border border-border bg-transparent":j+=" bg-grey-100",h.jsxs(xe.div,{initial:{opacity:0},animate:{opacity:1},className:b.cn(i,s.callout,j),children:[h.jsx("span",{className:"break-keep text-lg font-bold md:text-xl",children:u(V)}),h.jsx("span",{className:"mt-[1px] whitespace-pre-wrap break-words text-base md:text-lg",children:u(U)})]})}const K=A.map(V=>V.plain_text).join("")||"";return h.jsx(zl,{code:K,language:L})}case"to_do":{const A=((de=e.to_do)==null?void 0:de.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:A,readOnly:!0,className:"mt-1 h-4 w-4 rounded border-gray-300"}),h.jsx("span",{className:b.cn(s.paragraph,A?"text-gray-400 line-through":""),children:u(((fe=e.to_do)==null?void 0:fe.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:u(((pe=e.toggle)==null?void 0:pe.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:c?ut({group:e.children,depth:1,variant:t}):e.children.map((A,L)=>h.jsx(S.Fragment,{children:Ke(A,t,!0,"toggle")},e.type+A.id+L))})})]}):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((A,L)=>{var K,V;return h.jsx("tr",{className:s.tableRow,children:(V=(K=A.table_row)==null?void 0:K.cells)==null?void 0:V.map((U,j)=>{var O,C,J;const Y=((O=e.table)==null?void 0:O.has_column_header)&&L===0,P=((C=e.table)==null?void 0:C.has_row_header)&&j===0,I=Y?"th":"td";return h.jsx(I,{className:b.cn(s.tableCell,"px-4 py-2 align-top",Y?"bg-grey-100 text-left font-semibold":"text-left",P?"bg-grey-100":""),style:{minWidth:"120px",textAlign:"left",wordBreak:"break-word"},children:(J=U||[])==null?void 0:J.map((ze,Ot)=>h.jsx(S.Fragment,{children:u([ze])},Ot))},j)})},A.id||L)})})})});case"bookmark":{const A=((le=e.bookmark)==null?void 0:le.url)||"",{meta:L,loading:K}=Sg(A);return A?h.jsx(xe.div,{initial:{opacity:0},animate:{opacity:1},className:b.cn(i,"mb-4 block"),children:K?h.jsx("div",{className:"h-24 animate-pulse rounded-md bg-gray-100"}):L?h.jsxs(S.Fragment,{children:[h.jsxs(te.Anchor,{type:"external",href:A,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:[L.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:L.image,alt:L.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:L.title}),h.jsx("div",{className:"line-clamp-2 text-sm text-gray-500",children:L.description})]})]}),((Z=(be=e.bookmark)==null?void 0:be.caption)==null?void 0:Z.length)>0&&h.jsx("div",{className:"mt-2 text-xs text-grey-500 md:text-sm",children:u(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(te.Anchor,{type:"external",href:A,children:A}),((ce=(re=e.bookmark)==null?void 0:re.caption)==null?void 0:ce.length)>0&&h.jsx("div",{className:"mt-2 text-sm text-gray-500",children:u(e.bookmark.caption)})]})}):null}case"embed":{const A=((oe=e.embed)==null?void 0:oe.url)||"";return h.jsxs("div",{className:b.cn(i,"mb-4"),children:[h.jsx("iframe",{src:A,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}),((Pe=(Le=e.embed)==null?void 0:Le.caption)==null?void 0:Pe.length)>0&&h.jsx("div",{className:"mt-2 text-sm text-muted",children:u(e.embed.caption)})]})}case"video":{const A=((R=(_=e.video)==null?void 0:_.external)==null?void 0:R.url)||((H=(W=e.video)==null?void 0:W.file)==null?void 0:H.url)||"",L=ed(A);return h.jsxs(xe.div,{initial:{opacity:0},animate:{opacity:1},className:b.cn(i,"mb-4"),children:[A?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:L,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:"비디오를 불러올 수 없습니다"}),((Ae=(Q=e.video)==null?void 0:Q.caption)==null?void 0:Ae.length)>0&&h.jsx("div",{className:"mt-2 text-sm text-gray-500",children:u(e.video.caption)})]})}case"file":{const A=((ye=(he=e.file)==null?void 0:he.external)==null?void 0:ye.url)||((Re=(ve=e.file)==null?void 0:ve.file)==null?void 0:Re.url)||"",L=A.split("/").pop()||"File";return h.jsxs(xe.div,{initial:{opacity:0},animate:{opacity:1},className:b.cn("mb-4"),children:[h.jsxs(te.Anchor,{type:"external",href:A,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:L})]}),((vt=((Qe=e.file)==null?void 0:Qe.caption)||[])==null?void 0:vt.length)>0&&h.jsx("div",{className:"mt-2 text-xs text-grey-500 md:text-sm",children:u(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 A=(($e=e.link_preview)==null?void 0:$e.url)||((At=e[e.type])==null?void 0:At.url)||"#",L=((Ge=e.link_preview)==null?void 0:Ge.url)||((We=e[e.type])==null?void 0:We.page_id)||"링크";return h.jsx(xe.div,{initial:{opacity:0},animate:{opacity:1},className:b.cn(i,"mb-4"),children:h.jsx(te.Anchor,{type:"external",href:A,children:L})})}case"child_page":case"child_database":{const A=((Oe=e[e.type])==null?void 0:Oe.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:A}),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:"템플릿"}),(((Pt=e.template)==null?void 0:Pt.rich_text)||"").length>0&&h.jsx("div",{children:u(((Je=e.template)==null?void 0:Je.rich_text)||"")})]});case"synced_block":return h.jsx("div",{className:b.cn(i,"mb-4"),children:a.map((A,L)=>h.jsx("div",{children:Ke(A,t,!1,"synced_block")},e.type+A.id+L))});case"column_list":return h.jsx(xe.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((A,L)=>h.jsx("div",{className:"w-full min-w-[150px] flex-1",children:Ke(A,t,!1,"column_list")},e.type+A.id+L))});case"column":return h.jsx(xe.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((A,L)=>h.jsx(S.Fragment,{children:Ke(A,t,!1,"column")},e.type+A.id+L))});case"unsupported":return null;default:return o&&o.length>0?h.jsx("p",{className:b.cn(i,s.paragraph),children:u(((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]})}},Zn=({block:e,accordionHeadings:t=[],variant:n="default",isLast:r=!1})=>{const i=Yo(e,n),s=Ju(e,n),o=Xo(e,n);if(qo.includes(e.type)&&e.children)return ut({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?ui(e.children):[];return o&&t.includes(e.type)&&l.length>0?h.jsx(Zt.Root,{type:"single",collapsible:!0,className:"w-full bg-white pb-1 md:pb-2 lg:pb-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((c,u)=>c.type==="bulleted_list"||c.type==="numbered_list"?h.jsx(S.Fragment,{children:ut({group:c.blocks,depth:1,variant:n})},c.type+u):h.jsx(Zn,{block:c.block,accordionHeadings:t,variant:n},c.block.id+u))})]})}):h.jsxs(s,{children:[a,l.length>0&&h.jsx("div",{className:"mt-4",children:l.map((c,u)=>c.type==="bulleted_list"||c.type==="numbered_list"?h.jsx(S.Fragment,{children:ut({group:c.blocks,depth:1,variant:n})},c.type+u):h.jsx(Zn,{block:c.block,accordionHeadings:t,variant:n},c.block.id+u))})]})}return Ke(e,n,r)},Xx=({blocks:e,accordionHeadings:t=[],className:n,variant:r="default"})=>{const i=Qu(e,r),s=ci(r),o=a=>ui(a).map((c,u)=>c.type==="bulleted_list"||c.type==="numbered_list"?h.jsx(S.Fragment,{children:ut({group:c.blocks,depth:1,variant:r})},c.type+u):h.jsx(Zn,{block:c.block,accordionHeadings:t,variant:r},c.type+u));return h.jsx("div",{className:b.cn(s.container,n),children:o(i)})},Zx=()=>{const[e,t]=S.useState([]);return S.useEffect(()=>{const u=(d,p)=>{t(p?m=>m.includes(d.id)?m:[...m,d.id]:m=>m.filter(g=>g!==d.id))},f=$.portalManager.subscribe(u);return t($.portalManager.getOpenPortals()),()=>{f()}},[]),{modal:u=>{const{onClose:f=()=>{}}=u;return $.portalManager.showPortal("modal",{...u,onClose:f})},toast:u=>{let f;return typeof u=="string"?f={description:u}:f=u,$.portalManager.showPortal("toast",f)},alert:u=>{let f;return typeof u=="string"?f={description:u,onClose:()=>{}}:f={...u,onClose:u.onClose||(()=>{})},$.portalManager.showPortal("alert",f)},dialog:u=>{const{onClose:f=()=>{}}=u;return $.portalManager.showPortal("dialog",{...u,onClose:f})},custom:u=>{const{onClose:f=()=>{}}=u;return $.portalManager.showPortal("custom",{...u,onClose:f})},getIsOpen:u=>$.portalManager.getIsPortalOpen(u),closePortal:u=>{$.portalManager.closePortal(u)},closeAllPortals:()=>{$.portalManager.closeAllPortals()},openPortals:e}};var[dr,O0]=b.createContextScope("Tooltip",[b.createPopperScope]),fr=b.createPopperScope(),wu="TooltipProvider",Qx=700,ai="tooltip.open",[Jx,is]=dr(wu),Eu=e=>{const{__scopeTooltip:t,delayDuration:n=Qx,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:s}=e,[o,a]=M.useState(!0),l=M.useRef(!1),c=M.useRef(0);return M.useEffect(()=>{const u=c.current;return()=>window.clearTimeout(u)},[]),h.jsx(Jx,{scope:t,isOpenDelayed:o,delayDuration:n,onOpen:M.useCallback(()=>{window.clearTimeout(c.current),a(!1)},[]),onClose:M.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>a(!0),r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:M.useCallback(u=>{l.current=u},[]),disableHoverableContent:i,children:s})};Eu.displayName=wu;var hr="Tooltip",[e0,pr]=dr(hr),Tu=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:i=!1,onOpenChange:s,disableHoverableContent:o,delayDuration:a}=e,l=is(hr,e.__scopeTooltip),c=fr(t),[u,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:B=>{B?(l.onOpen(),document.dispatchEvent(new CustomEvent(ai))):l.onClose(),s==null||s(B)}}),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]),N=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,{...c,children:h.jsx(e0,{scope:t,contentId:d,open:v,stateAttribute:w,trigger:u,onTriggerChange:f,onTriggerEnter:M.useCallback(()=>{l.isOpenDelayed?N():E()},[l.isOpenDelayed,N,E]),onTriggerLeave:M.useCallback(()=>{m?T():(window.clearTimeout(p.current),p.current=0)},[T,m]),onOpen:E,onClose:T,disableHoverableContent:m,children:n})})};Tu.displayName=hr;var li="TooltipTrigger",_u=M.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=pr(li,n),s=is(li,n),o=fr(n),a=M.useRef(null),l=b.useComposedRefs(t,a,i.onTriggerChange),c=M.useRef(!1),u=M.useRef(!1),f=M.useCallback(()=>c.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"&&!u.current&&!s.isPointerInTransitRef.current&&(i.onTriggerEnter(),u.current=!0)}),onPointerLeave:b.composeEventHandlers(e.onPointerLeave,()=>{i.onTriggerLeave(),u.current=!1}),onPointerDown:b.composeEventHandlers(e.onPointerDown,()=>{c.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:b.composeEventHandlers(e.onFocus,()=>{c.current||i.onOpen()}),onBlur:b.composeEventHandlers(e.onBlur,i.onClose),onClick:b.composeEventHandlers(e.onClick,i.onClose)})})});_u.displayName=li;var t0="TooltipPortal",[M0,n0]=dr(t0,{forceMount:void 0}),Wt="TooltipContent",Su=M.forwardRef((e,t)=>{const n=n0(Wt,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...s}=e,o=pr(Wt,e.__scopeTooltip);return h.jsx(b.Presence,{present:r||o.open,children:o.disableHoverableContent?h.jsx(Nu,{side:i,...s,ref:t}):h.jsx(r0,{side:i,...s,ref:t})})}),r0=M.forwardRef((e,t)=>{const n=pr(Wt,e.__scopeTooltip),r=is(Wt,e.__scopeTooltip),i=M.useRef(null),s=b.useComposedRefs(t,i),[o,a]=M.useState(null),{trigger:l,onClose:c}=n,u=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=a0(v,y.getBoundingClientRect()),w=l0(v,x),E=c0(g.getBoundingClientRect()),T=d0([...w,...E]);a(T),f(!0)},[f]);return M.useEffect(()=>()=>d(),[d]),M.useEffect(()=>{if(l&&u){const m=y=>p(y,u),g=y=>p(y,l);return l.addEventListener("pointerleave",m),u.addEventListener("pointerleave",g),()=>{l.removeEventListener("pointerleave",m),u.removeEventListener("pointerleave",g)}}},[l,u,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))||(u==null?void 0:u.contains(y)),w=!u0(v,o);x?d():w&&(d(),c())};return document.addEventListener("pointermove",m),()=>document.removeEventListener("pointermove",m)}},[l,u,o,c,d]),h.jsx(Nu,{...e,ref:s})}),[i0,s0]=dr(hr,{isInside:!1}),Nu=M.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:s,onPointerDownOutside:o,...a}=e,l=pr(Wt,n),c=fr(n),{onClose:u}=l;return M.useEffect(()=>(document.addEventListener(ai,u),()=>document.removeEventListener(ai,u)),[u]),M.useEffect(()=>{if(l.trigger){const f=d=>{const p=d.target;p!=null&&p.contains(l.trigger)&&u()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[l.trigger,u]),h.jsx(b.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:o,onFocusOutside:f=>f.preventDefault(),onDismiss:u,children:h.jsxs(b.Content,{"data-state":l.stateAttribute,...c,...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(i0,{scope:n,isInside:!0,children:h.jsx($.Root,{id:l.contentId,role:"tooltip",children:i||r})})]})})});Su.displayName=Wt;var Cu="TooltipArrow",o0=M.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=fr(n);return s0(Cu,n).isInside?null:h.jsx(b.Arrow,{...i,...r,ref:t})});o0.displayName=Cu;function a0(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 l0(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 c0(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 u0(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,c=t[o].x,u=t[o].y;l>r!=u>r&&n<(c-a)*(r-l)/(u-l)+a&&(i=!i)}return i}function d0(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),f0(t)}function f0(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 h0=Eu,p0=Tu,m0=_u,Au=Su;const Ko={primary:"bg-main-600 text-white",secondary:"bg-grey-800 text-white",white:"bg-grey-50 text-grey-800"},g0={sm:"p-2 text-[13px] rounded",md:"p-2 text-sm font-normal rounded"},Pu=h0,Ou=p0,Mu=m0,b0=(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]}},ss=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,...c},u)=>{const f=b0(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(Au,{ref:u,avoidCollisions:!1,sideOffset:l?i:4,side:p,align:m,style:{zIndex:50},...c,children:h.jsxs("div",{className:b.cn("relative z-50 rounded",l&&"m-1",t==="white"&&"border border-border",Ko[t],e),children:[l&&h.jsx("div",{style:f,className:"absolute z-20"}),h.jsx("div",{className:"absolute inset-0 z-30 rounded bg-white"}),h.jsxs("div",{className:b.cn("relative z-40 flex max-w-sm items-center font-normal",t!=="white"&&"bg-opacity-90",Ko[t],g0[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})]})]})})});ss.displayName=Au.displayName;const os=({label:e,variant:t="secondary",size:n="md",children:r,icLeft:i,icRight:s,position:o="top-center",bubbleTip:a=!0,forceMount:l,isMobile:c=Qt})=>{const[u,f]=M.useState(!1),d=M.useRef(null),p=typeof c=="number"?c:3e3,m=()=>{u?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(Pu,{delayDuration:200,children:h.jsxs(Ou,{delayDuration:200,children:[h.jsx(Mu,{asChild:!0,"data-state":u?"delayed-open":"closed",onMouseLeave:Qt?void 0:()=>f(!1),onMouseEnter:Qt?void 0:()=>f(!0),onClick:Qt?m:void 0,children:r}),h.jsx(ss,{variant:t,size:n,icLeft:i,icRight:s,position:o,forceMount:l||u||void 0,bubbleTip:a,children:e})]})})};function y0(e,t=[]){let n=[];function r(s,o){const a=M.createContext(o),l=n.length;n=[...n,o];function c(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 u(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 c.displayName=s+"Provider",[c,u]}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,v0(i,...t)]}function v0(...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:c})=>{const f=l(s)[`__scope${c}`];return{...a,...f}},{});return M.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}var x0="Toggle",Ru=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)})})});Ru.displayName=x0;var qt="ToggleGroup",[Du,R0]=y0(qt,[b.createRovingFocusGroupScope]),Iu=b.createRovingFocusGroupScope(),as=S.forwardRef((e,t)=>{const{type:n,...r}=e;if(n==="single"){const i=r;return h.jsx(w0,{...i,ref:t})}if(n==="multiple"){const i=r;return h.jsx(E0,{...i,ref:t})}throw new Error(`Missing prop \`type\` expected on \`${qt}\``)});as.displayName=qt;var[ku,Lu]=Du(qt),w0=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(ku,{scope:e.__scopeToggleGroup,type:"single",value:o?[o]:[],onItemActivate:a,onItemDeactivate:S.useCallback(()=>a(""),[a]),children:h.jsx(ju,{...s,ref:t})})}),E0=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(u=>a((f=[])=>[...f,u]),[a]),c=S.useCallback(u=>a((f=[])=>f.filter(d=>d!==u)),[a]);return h.jsx(ku,{scope:e.__scopeToggleGroup,type:"multiple",value:o,onItemActivate:l,onItemDeactivate:c,children:h.jsx(ju,{...s,ref:t})})});as.displayName=qt;var[T0,_0]=Du(qt),ju=S.forwardRef((e,t)=>{const{__scopeToggleGroup:n,disabled:r=!1,rovingFocus:i=!0,orientation:s,dir:o,loop:a=!0,...l}=e,c=Iu(n),u=b.useDirection(o),f={role:"group",dir:u,...l};return h.jsx(T0,{scope:n,rovingFocus:i,disabled:r,children:i?h.jsx(b.Root$1,{asChild:!0,...c,orientation:s,dir:u,loop:a,children:h.jsx(b.Primitive.div,{...f,ref:t})}):h.jsx(b.Primitive.div,{...f,ref:t})})}),Qn="ToggleGroupItem",Bu=S.forwardRef((e,t)=>{const n=Lu(Qn,e.__scopeToggleGroup),r=_0(Qn,e.__scopeToggleGroup),i=Iu(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(Ho,{...a,ref:t})}):h.jsx(Ho,{...a,ref:t})});Bu.displayName=Qn;var Ho=S.forwardRef((e,t)=>{const{__scopeToggleGroup:n,value:r,...i}=e,s=Lu(Qn,n),o={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},a=s.type==="single"?o:void 0;return h.jsx(Ru,{...a,...i,ref:t,onPressedChange:l=>{l?s.onItemActivate(r):s.onItemDeactivate(r)}})}),Vu=as,Fu=Bu;const S0=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}}),ls=M.createContext({theme:"primary",size:"md",shape:"square"});ls.displayName="ToggleGroupContext";const cs=M.forwardRef(({className:e,variant:t,theme:n,size:r,shape:i,children:s,...o},a)=>h.jsx(ls.Provider,{value:{theme:n,size:r,shape:i},children:h.jsx(Vu,{ref:a,className:b.cn("flex items-center justify-center gap-1",e),...o,children:s})}));cs.displayName=Vu.displayName;const hn=M.forwardRef(({className:e,checked:t=!1,children:n,...r},i)=>{const s=M.useContext(ls);return h.jsx(Fu,{ref:i,className:b.cn(S0({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=Fu.displayName;const Uu=({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(cs,{type:"single",value:s,onValueChange:c=>{!a&&!c||o(c)},theme:n,size:r,shape:i,className:l,children:e.map(c=>c.tooltip?h.jsx(os,{label:c.tooltip.label,variant:c.tooltip.variant,size:c.tooltip.size,icLeft:c.tooltip.icLeft,icRight:c.tooltip.icRight,position:c.tooltip.position,bubbleTip:c.tooltip.bubbleTip,children:h.jsx(hn,{value:c.value,checked:s===c.value,disabled:c.disabled,variant:t,children:c.label})},c.value):h.jsx(hn,{value:c.value,checked:s===c.value,disabled:c.disabled,variant:t,children:c.label},c.value))}),$u=({options:e,variant:t="outline",theme:n="primary",size:r="md",shape:i="square",value:s,onChange:o,className:a})=>h.jsx(cs,{type:"multiple",value:s,onValueChange:o,theme:n,size:r,shape:i,className:a,children:e.map(l=>l.tooltip?h.jsx(os,{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))}),N0={Single:Uu,Multiple:$u};exports.AlertDialog=$.AlertDialog;exports.AlertDialogAction=$.AlertDialogAction;exports.AlertDialogCancel=$.AlertDialogCancel;exports.AlertDialogContent=$.AlertDialogContent;exports.AlertDialogDescription=$.AlertDialogDescription;exports.AlertDialogFooter=$.AlertDialogFooter;exports.AlertDialogHeader=$.AlertDialogHeader;exports.AlertDialogOverlay=$.AlertDialogOverlay;exports.AlertDialogPortal=$.AlertDialogPortal;exports.AlertDialogTitle=$.AlertDialogTitle;exports.AlertDialogTrigger=$.AlertDialogTrigger;exports.AlertForm=$.AlertForm;exports.Dialog=$.Dialog;exports.DialogClose=$.DialogClose;exports.DialogContent=$.DialogContent;exports.DialogDescription=$.DialogDescription;exports.DialogFooter=$.DialogFooter;exports.DialogForm=$.DialogForm;exports.DialogHeader=$.DialogHeader;exports.DialogOverlay=$.DialogOverlay;exports.DialogPortal=$.DialogPortal;exports.DialogTitle=$.DialogTitle;exports.DialogTrigger=$.DialogTrigger;exports.ModalForm=$.ModalForm;exports.PortalContainer=$.PortalContainer;exports.Toast=$.Toast;exports.ToastAction=$.ToastAction;exports.ToastClose=$.ToastClose;exports.ToastDescription=$.ToastDescription;exports.ToastForm=$.ToastForm;exports.ToastProvider=$.ToastProvider;exports.ToastTitle=$.ToastTitle;exports.ToastViewport=$.ToastViewport;exports.toastPositionVariants=$.toastPositionVariants;exports.toastVariants=$.toastVariants;exports.Accordion=Zt;exports.CheckboxBooleanFormField=bg;exports.CheckboxGroupFormField=yg;exports.CodeBlock=zl;exports.ContentsCard=Ea;exports.DefaultFormField=vg;exports.DropdownRadioFormField=xg;exports.EventCard=Vd;exports.LoadingCard=Ta;exports.MainBannerImage=fh;exports.MainBannerLoading=El;exports.Multiple=$u;exports.NotionParser=Xx;exports.PremiumCard=hh;exports.RadioFormField=wg;exports.Single=Uu;exports.StringArrayFormField=Eg;exports.StringInputField=Tg;exports.TitleTagCard=gh;exports.ToggleButtonGroup=N0;exports.Tooltip=os;exports.TooltipContent=ss;exports.TooltipProvider=Pu;exports.TooltipRoot=Ou;exports.TooltipTrigger=Mu;exports.UrlFormField=_g;exports.usePortal=Zx;
|
package/dist/components.es.js
CHANGED
|
@@ -13623,7 +13623,7 @@ const yt = ({
|
|
|
13623
13623
|
className: I(i, s.callout, L && "h-full", "flex rounded-lg px-4 py-6"),
|
|
13624
13624
|
children: [
|
|
13625
13625
|
/* @__PURE__ */ m("div", { className: "flex-shrink-0", children: /* @__PURE__ */ m("div", { className: "flex h-6 w-6 items-center justify-center text-lg md:text-xl", children: N || "💡" }) }),
|
|
13626
|
-
/* @__PURE__ */ C("div", { className: "flex flex-col gap-2", children: [
|
|
13626
|
+
/* @__PURE__ */ C("div", { className: "flex w-full flex-col gap-2", children: [
|
|
13627
13627
|
o.length > 0 && /* @__PURE__ */ m("div", { className: "text-base md:text-lg", children: u(o) }),
|
|
13628
13628
|
e.children && e.children.length > 0 && /* @__PURE__ */ m("div", { className: "space-y-1", children: c ? yt({ group: e.children, depth: 1, variant: t, isChildrenList: c }) : e.children.map((z, F) => /* @__PURE__ */ m(K.Fragment, { children: Ze(z, t, !0, "callout") }, e.type + z.id + F)) })
|
|
13629
13629
|
] })
|