import{s as e}from"./rolldown-runtime-Bjp52BOI.js?dpl=dpl_4UDxC3erAcBDHX8QT9FjyxxnLZSQ";import{Lr as t,dr as n,ur as r}from"./initial-vendor-CbfHqnih.js?dpl=dpl_4UDxC3erAcBDHX8QT9FjyxxnLZSQ";import{Mr as i,S as a,gn as o}from"./index-DiVFqI9q.js?dpl=dpl_4UDxC3erAcBDHX8QT9FjyxxnLZSQ";import{t as s}from"./DynamicMarkdown-B7gJlzwx.js?dpl=dpl_4UDxC3erAcBDHX8QT9FjyxxnLZSQ";var c=e(t(),1),l=e(r(),1),u=({children:e})=>(0,l.jsx)(`p`,{className:`font-medium`,children:e}),d={h1:u,h2:u,h3:u,h4:u,h5:u,h6:u},f=e=>c.Children.map(e,e=>{if((0,c.isValidElement)(e)&&typeof e.type==`string`&&e.type===`video`){let t=e.props,n=e;if(t.autoPlay)return c.cloneElement(n,{...t,playsInline:t.playsInline??!0,loop:t.loop??!0,muted:t.muted??!0})}return e});function p({as:e,caption:t,suppressCaptionEditing:r,style:c,className:u,containerClassName:p,children:m,hint:h}){let g=e??(t?`figure`:`div`),_=typeof t==`string`?t:``,v=g===`figure`?`figcaption`:`div`,y=f(m);return(0,l.jsxs)(`div`,{className:p,children:[!!h&&(0,l.jsxs)(`div`,{className:`not-prose mb-4 flex items-start gap-2`,children:[(0,l.jsx)(o,{className:`leading-5`,children:(0,l.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`,"aria-hidden":`true`,className:`flex-none w-4 h-4 fill-gray-400 dark:fill-gray-300`,children:(0,l.jsx)(`path`,{d:`M224 320c0 17.69 14.33 32 32 32h64c17.67 0 32-14.31 32-32s-14.33-32-32-32h-64C238.3 288 224 302.3 224 320zM267.6 256H352c17.67 0 32-14.31 32-32s-14.33-32-32-32h-80v40C272 240.5 270.3 248.5 267.6 256zM272 160H480c17.67 0 32-14.31 32-32s-14.33-32-32-32h-208.8C271.5 98.66 272 101.3 272 104V160zM320 416c0-17.69-14.33-32-32-32H224c-17.67 0-32 14.31-32 32s14.33 32 32 32h64C305.7 448 320 433.7 320 416zM202.1 355.8C196 345.6 192 333.3 192 320c0-5.766 1.08-11.24 2.51-16.55C157.4 300.6 128 269.9 128 232V159.1C128 151.2 135.2 144 143.1 144S160 151.2 159.1 159.1l0 69.72C159.1 245.2 171.3 271.1 200 271.1C222.1 271.1 240 254.1 240 232v-128C240 81.91 222.1 64 200 64H136.6C103.5 64 72.03 80 52.47 106.8L26.02 143.2C9.107 166.5 0 194.5 0 223.3V312C0 387.1 60.89 448 136 448h32.88C163.4 438.6 160 427.7 160 416C160 388.1 178 364.6 202.1 355.8z`})})}),(0,l.jsx)(`p`,{className:`text-gray-700 text-sm leading-5 font-medium dark:text-gray-200`,children:h})]}),(0,l.jsxs)(g,{style:c,"data-name":`frame`,className:n(i.Frame,`p-2 not-prose relative bg-gray-50/50 rounded-2xl overflow-hidden dark:bg-gray-800/25 print:print-color-exact`),children:[(0,l.jsx)(`div`,{style:{backgroundPosition:`10px 10px`},className:`absolute inset-0 bg-grid-neutral-200/20 [mask-image:linear-gradient(0deg,#fff,rgba(255,255,255,0.6))] dark:bg-grid-white/5 dark:[mask-image:linear-gradient(0deg,rgba(255,255,255,0.1),rgba(255,255,255,0.5))] print:print-color-exact`}),(0,l.jsx)(`div`,{className:n(`relative rounded-xl overflow-hidden flex justify-center [&_:where(img:not([class*=rounded-]))]:rounded-xl`,u),children:y}),(0,l.jsx)(`div`,{className:n(`absolute inset-0 pointer-events-none border border-black/5 rounded-2xl dark:border-white/5`)}),t&&(0,l.jsx)(v,{className:`relative rounded-2xl text-center mt-3 pt-0 px-8 pb-2 text-sm text-gray-700 dark:text-gray-400 [&_p]:m-0 [&_a]:font-semibold [&_a]:no-underline [&_a]:border-b [&_a]:border-primary [&_a:hover]:border-b-2 dark:[&_a]:text-white dark:[&_a]:border-primary-light`,contentEditable:!r&&void 0,"data-component-part":`frame-caption`,children:typeof t==`string`&&a(t)?(0,l.jsx)(`p`,{children:t}):(0,l.jsx)(s,{mode:`static`,components:d,fallback:(0,l.jsx)(`p`,{children:_}),children:_})})]})]})}export{p as Frame};