import{At as e,C as t,I as n,O as r,S as i,T as a,Tt as o,k as s,q as c,w as l}from"./framework-Cy4cevSy.js";import{F as u}from"./app-D39ss9YM.js";import{t as d}from"./PollForm-iRtLtXJn.js";var f={key:0,class:`rounded-lg border bg-card p-5 @3xl:p-8`},p={class:`mb-1 flex items-center gap-1.5 text-xs font-semibold tracking-wider text-brand-text uppercase`},m={class:`text-xl font-semibold tracking-tight`},h={key:0,class:`mt-2 text-sm leading-relaxed whitespace-pre-line text-muted-foreground`},g={key:1,class:`rounded-lg border border-dashed p-4 text-sm text-muted-foreground`},_={__name:`PollBlock`,props:{block:{type:Object,required:!0}},setup(_){let v=n(`pagebuilder:editing`,!1);return(n,y)=>_.block.props?(c(),a(`section`,f,[i(`p`,p,[s(o(u),{class:`size-3.5`}),y[0]||=r(` Umfrage`,-1)]),i(`h3`,m,e(_.block.props.title),1),_.block.props.description?(c(),a(`p`,h,e(_.block.props.description),1)):l(``,!0),(c(),t(d,{key:_.block.props.id,poll:_.block.props,disabled:o(v),compact:``,class:`mt-6`},null,8,[`poll`,`disabled`]))])):o(v)?(c(),a(`p`,g,`Bitte rechts eine Umfrage auswählen.`)):l(``,!0)}};export{_ as default};