import{g as m,r as d,o as _,c as f,a as t,b as e,L as b,m as s,w as h,a2 as y,T as v}from"./entry.Ddy3dMw-.js";import{_ as k}from"./Layouts.vue.d17mTwCx.js";import{V}from"./vue3-slide-up-down.CNta260n.js";const w=["innerHTML"],x={class:"w-[1.8rem]"},C={class:"pt-linebreak pb-gap-half"},g=t("div",{class:"mt-gap-half"},[t("hr",{class:"border-[rgb(203,203,203)]"})],-1),E=m({__name:"Expand",props:{block:{}},setup(n){const l=JSON.parse(n.block.content.layout),o=d(!1),r=()=>{o.value=!o.value};return(c,a)=>{const i=v,u=k;return _(),f("div",null,[t("div",{class:"flex items-center justify-between mb-4 transition-opacity duration-100 cursor-pointer md:hover:opacity-50",onClick:r},[t("h4",{innerHTML:c.block.content.title},null,8,w),t("div",x,[e(i,{class:b(["w-full h-full transition-transform",{"transform rotate-45":s(o)}])},null,8,["class"])])]),e(s(V),{modelValue:s(o),"onUpdate:modelValue":a[0]||(a[0]=p=>y(o)?o.value=p:null),duration:300,"opacity-closed":1},{default:h(()=>[t("div",C,[e(u,{layouts:s(l)},null,8,["layouts"])])]),_:1},8,["modelValue"]),g])}}});export{E as default};