import{d as n,c as r,j as e,t as c,r as i,o as u,_ as p}from"./framework.Cre9sSJa.js";const f={class:"demo-code-group-root vp-code-group vp-adaptive-theme"},_={class:"tabs"},m=["id"],b=["for","data-title"],v=["id"],h=["for","data-title"],g={class:"blocks"},$={class:"vp-block active"},k={class:"language-vue vp-adaptive-theme demo-code-group__second-block"},L=n({__name:"DemoCodeGroup",props:{firstLabel:{default:"在线演示"},secondLabel:{default:"源码"},groupSuffix:{default:""}},setup(t){const l=t.groupSuffix.replace(/[^a-zA-Z0-9_-]/g,"")||"x",a=`${Math.random().toString(36).slice(2,10)}-${l}`,s=`demo-cg-${a}`,o=[`tab-${a}-0`,`tab-${a}-1`];return(d,x)=>(u(),r("div",f,[e("div",_,[e("input",{id:o[0],type:"radio",name:s,checked:""},null,8,m),e("label",{for:o[0],"data-title":t.firstLabel},c(t.firstLabel),9,b),e("input",{id:o[1],type:"radio",name:s},null,8,v),e("label",{for:o[1],"data-title":t.secondLabel},c(t.secondLabel),9,h)]),e("div",g,[e("div",$,[i(d.$slots,"default",{},void 0,!0)]),e("div",k,[i(d.$slots,"second",{},void 0,!0)])])]))}}),B=p(L,[["__scopeId","data-v-52ca27b3"]]);export{B as default};
