Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 7m17s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 7m28s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 6m32s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 6m48s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 8m51s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 8m52s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 7m31s
CI / Bekannte Sicherheitslücken in Paketen (pull_request) Successful in 52s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 7m51s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m22s
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
1 line
No EOL
1.8 KiB
JavaScript
1 line
No EOL
1.8 KiB
JavaScript
import{D as e,E as t,J as n,On as r,_ as i,b as a,g as o,gt as s,mt as c,tr as l,v as u,y as d}from"./runtime-core.esm-bundler-B8D2lM98.js";import{w as f}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{t as p}from"./component-5v7AiJbe.js";import{t as m}from"./triangle-alert-DyO_Fk2w.js";import{St as h}from"./app-9hFE_0ay.js";import{t as g}from"./BlockList-DoooBcnr.js";var _={key:0,class:`rounded-md border border-dashed border-brand-300 p-3`},v={class:`mb-3 flex flex-wrap items-center gap-2 text-xs`},y={class:`inline-flex items-center gap-1.5 rounded bg-brand-soft px-2 py-0.5 font-medium text-brand-soft-foreground`},b=[`href`],x={key:0,class:`text-sm text-muted-foreground`},S={key:1,class:`flex items-center gap-2 text-sm text-amber-700 dark:text-amber-400`},C={key:2,class:`pointer-events-none`},w={__name:`Snippet`,props:{block:{type:Object,required:!0}},setup(w){let T=w,E=n(`pagebuilder:editing`,o(()=>!1));s(`pagebuilder:list`,g),s(`pagebuilder:editing`,o(()=>!1));let D=o(()=>({blocks:T.block.props?.blocks??[]}));return(n,o)=>r(E)?(c(),a(`div`,_,[i(`div`,v,[i(`span`,y,[e(r(p),{class:`size-3.5`}),t(` Baustein`+l(w.block.props?.name?`: ${w.block.props.name}`:``),1)]),w.block.props?.edit_url?(c(),a(`a`,{key:0,href:w.block.props.edit_url,target:`_blank`,class:`inline-flex items-center gap-1 text-brand-text hover:underline`,onClick:o[0]||=f(()=>{},[`stop`])},[e(r(h),{class:`size-3`}),o[1]||=t(` Baustein bearbeiten`,-1)],8,b)):d(``,!0)]),w.block.data.snippet?w.block.props?.missing?(c(),a(`p`,S,[e(r(m),{class:`size-4`}),o[2]||=t(` Dieser Baustein wurde gelöscht und wird nicht angezeigt.`,-1)])):(c(),a(`div`,C,[e(g,{item:D.value},null,8,[`item`])])):(c(),a(`p`,x,`Bitte rechts einen Baustein auswählen.`))])):D.value.blocks.length?(c(),u(g,{key:1,item:D.value},null,8,[`item`])):d(``,!0)}};export{w as default}; |