import{b as d}from"./DR96n_VU.js";import{_}from"./ABctaOB9.js";import{_ as u}from"./DaLgO_IH.js";import{u as f}from"./Cy--ZdFw.js";import{u as g}from"./CB3BcoM2.js";import{d as h,c as b,a as B,b as S,a5 as C,w as s,q as a,n as y,ac as r,t as v,u as P,e as n,E as N}from"./B2UyoCas.js";const I={class:"grid grid-simpleresult gap-px bg-uiBg-30"},k={class:"grid-simpleresult__screenshot bg-uiBg-10"},w={class:"bg-uiBg h-full"},H=h({__name:"SimpleResultsWrapper",props:{componentInfo:{},displayHeader:{type:Boolean,default:!0},contentPadding:{type:Boolean,default:!0},contentBg:{default:"bg-uiBg"}},setup(V){const{pageComponentName:c}=f(),p=g(),m=e=>{var t,o;return((o=(t=p.selectProjectScreenshots)==null?void 0:t.components)==null?void 0:o[Number(e)])||{}};return(e,t)=>{const o=d,i=_,l=u;return e.componentInfo?(S(),b(l,{key:0,ui:{body:"o_p-0 sm:p-0 border-b-0"},variant:"subtle",class:"overflow-hidden"},C({default:s(()=>[n("div",I,[n("div",k,[n("div",w,[a(i,{screenshot:m(e.componentInfo.id),"with-border":!1},null,8,["screenshot"])])]),n("div",{class:N(["grid-simpleresult__content",[{"o_p-4":e.contentPadding},e.contentBg]])},[r(e.$slots,"default")],2)])]),_:2},[e.displayHeader?{name:"header",fn:s(()=>[a(o,{component:e.componentInfo},{default:s(()=>[y(v(P(c)(e.componentInfo))+" ",1),r(e.$slots,"header")]),_:3},8,["component"])]),key:"0"}:void 0]),1024)):B("",!0)}}}),D=Object.assign(H,{__name:"SimpleResultsWrapper"});export{D as _};
