Files
VITEC-website/public/_frontend/assets/vitec_ctabanner-BSc8V7mB.js
o-rasche bb7c03235d Checkpoint: headless JSON architecture documented + cleanup (Stufe 1+2)
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>
2026-07-09 10:01:56 +02:00

1 line
2.5 KiB
JavaScript

import{C as e,D as t,S as n,Z as r,b as i,c as a,f as o,g as s,h as c,k as l,m as u,n as d,o as f,p,s as m,w as h}from"./index-7LYai_r-.js";var g=r();function _({element:r,className:_,nested:v,devInfoTags:y,uid:b,spaceBefore:x,spaceAfter:S}){let C=a(r),w=m(r),T=f(r.data?.background_variant),E=o(r.data?.background_image),D=o(r.data?.icon),O=p(r.data?.primary_cta),k=c(r.data?.primary_cta),A=p(r.data?.secondary_cta),j=c(r.data?.secondary_cta),M=r.data?.layout_variant??`stacked`,N=s(r.data?.button_style,`light`),P=s(r.data?.secondary_button_style,`ghost`),F=r.appearance?.frameClass?.split(`,`).map(e=>e.trim()).includes(`vitec-full-width`)??!1,I=M===`centered`,L=M===`split`,R=M===`compact`,z=M===`feature`,B=M===`icon_card`,V=R?{px:{xs:2,md:3},py:{xs:1.5,md:2}}:z?{px:{xs:3,md:5},py:{xs:4,md:5}}:{px:{xs:2.5,md:4},py:{xs:3,md:3.5}},H=R?120:z?320:200,U=z?`h3`:R?`h5`:`h4`,W=(0,g.jsxs)(e,{direction:L?`column`:{xs:`column`,sm:`row`},spacing:1.25,alignItems:I?`center`:void 0,children:[O&&(0,g.jsx)(n,{href:O,target:k??`_self`,variant:N,children:r.data?.primary_cta_label||u(r.data?.primary_cta,`Primary CTA`)}),A&&(0,g.jsx)(n,{href:A,target:j??`_self`,variant:P,children:r.data?.secondary_cta_label||u(r.data?.secondary_cta,`Secondary CTA`)})]});return(0,g.jsx)(d,{className:_,devInfoTags:y,fullWidth:F,nested:v,uid:b,spaceBefore:x,spaceAfter:S,children:(0,g.jsx)(`div`,{className:`vitec_ctabanner__inner vitec_ctabanner--${M}`,children:(0,g.jsxs)(t,{sx:{...T,position:`relative`,overflow:`hidden`,borderRadius:3,...V,minHeight:H},children:[E&&M!==`text_only`&&(0,g.jsx)(t,{sx:{position:`absolute`,inset:0,backgroundImage:`linear-gradient(90deg, rgba(var(--vitec-surface-dark), 0.9), rgba(var(--vitec-surface-dark), 0.45)), url(${E})`,backgroundSize:`cover`,backgroundPosition:`center`,opacity:.9}}),L?(0,g.jsxs)(h,{container:!0,spacing:4,alignItems:`center`,sx:{position:`relative`,zIndex:1},children:[(0,g.jsx)(h,{size:{xs:12,md:7},children:(0,g.jsxs)(e,{spacing:1.5,children:[C&&(0,g.jsx)(l,{variant:U,children:C}),w&&(0,g.jsx)(t,{sx:i,dangerouslySetInnerHTML:{__html:w}})]})}),(0,g.jsx)(h,{size:{xs:12,md:5},children:W})]}):(0,g.jsxs)(e,{spacing:R?1.5:2,sx:{position:`relative`,zIndex:1,maxWidth:I||z?760:640,textAlign:I?`center`:`left`,alignItems:I?`center`:`flex-start`,mx:I?`auto`:void 0},children:[B&&D&&(0,g.jsx)(t,{component:`img`,src:D,alt:``,sx:{height:48,width:`auto`,objectFit:`contain`}}),C&&(0,g.jsx)(l,{variant:U,children:C}),w&&(0,g.jsx)(t,{sx:i,dangerouslySetInnerHTML:{__html:w}}),W]})]})})})}export{_ as VitecCtaBanner};