Restore point before Stufe 3 (central resolver-service refactoring). Includes this session's work: - Success Story (usecase) rebuild: new fields/tabs, UsecaseSerializer, thin List/Show renderers, MM relations, inline content elements. - vitec_columns content block (two-column layout with per-item content) incl. unified header section; special-cased JSON resolution. - Container per-column flex (items[].config align/justify) + gap on parent. - Unified header section across CEs/plugins/containers; header fields in JSON. - ISO-style architecture spec: Documentation/Headless-JSON-Architecture.md. - Cleanup: removed local scratch + verified .bak backups. - Fixes: B-6 (undefined thumbnail variable in Downloadcardcollection image resolver), B-7 (unsatisfiable legacy CType OR branch in Downloadcard/Datasheets). Rollback: git reset --hard snapshot-2026-07-09-pre-stufe3 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 line
1.6 KiB
JavaScript
1 line
1.6 KiB
JavaScript
import{C as e,D as t,S as n,Z as r,_ as i,b as a,c as o,d as s,h as c,i as l,k as u,l as d,m as f,n as p,p as m,s as h,t as g,u as _,v,w as y,y as b}from"./index-7LYai_r-.js";var x=r();function S({element:r,className:S,nested:C,devInfoTags:w,uid:T,spaceBefore:E,spaceAfter:D}){let O=o(r),k=s(r),A=h(r),j=Number(d(r)??0),M=v(j),N=b(j),P=i(_(r)),F=P===`center`?`center`:P===`right`?`right`:`left`,I=P===`center`?`center`:P===`right`?`flex-end`:`flex-start`,L=r.appearance?.frameClass?.split(`,`).map(e=>e.trim()).includes(`vitec-full-width`)??!1,R=m(r.content?.headerLink),z=c(r.content?.headerLink),B=f(r.content?.headerLink,`Mehr erfahren`),V=l(r.content?.gallery),H=r.content?.gallery?.position?.horizontal,U=V.length>0&&(H===`right`||H===`left`),W=H!==`left`,G=(r.content?.gallery?.width??480)>=600?5:4;return(0,x.jsx)(p,{className:S,devInfoTags:w,fullWidth:L,nested:C,uid:T,spaceBefore:E,spaceAfter:D,children:(0,x.jsx)(`div`,{className:`textpic__inner`,children:(0,x.jsxs)(y,{container:!0,spacing:3,alignItems:`start`,direction:W?`row`:`row-reverse`,children:[(0,x.jsx)(y,{size:{xs:12,md:U?12-G:12},children:(0,x.jsxs)(e,{spacing:2.5,children:[(0,x.jsxs)(e,{spacing:.5,sx:{width:`100%`,textAlign:F,alignItems:I},children:[(0,x.jsx)(u,{variant:M,children:O??`Untitled content`}),k&&(0,x.jsx)(u,{variant:N,color:`text.secondary`,children:k})]}),R&&(0,x.jsx)(n,{href:R,target:z??`_self`,variant:`outlined`,size:`sm`,alignStart:!0,children:B}),A&&(0,x.jsx)(t,{sx:{...a,textAlign:`left`},dangerouslySetInnerHTML:{__html:A}})]})}),V.length>0&&(0,x.jsx)(y,{size:{xs:12,md:U?G:12},children:(0,x.jsx)(g,{images:V})})]})})})}export{S as Textpic}; |