PageSourceSearch

https://constructor.tech/assets/ch-SimpleItem-DWMbmlgM.js

js constructor.tech collected 2026-09-24 11:18:05 UTC 2,804 bytes, 1 lines download raw bytes

1import{_ as u,o as a,c as l,w as s,h as d,F as h,a as _,b as g,n as f,d as o,r as v}from"./app-index-CXQob2hh.js";const b={name:"SimpleItem",components:{},data(){return{image_style:"swiper"}},props:{paragraph:{type:Object,required:!0},editorFlag:{type:Boolean,required:!1},parentHasTitle:{type:Boolean,required:!1,default:!1}},computed:{titleSvgTag(){const t=this.paragraph.field_title_svg?.[0]?.data?.default?.default;if(!t||!t.src)return"";const r=e=>String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;");return`<img class="vbup-simple-item-title-svg" src="${r(t.src)}" alt="${r(t.alt||"")}">`},titleHtml(){return this.titleSvgTag+(this.paragraph.field_title||"")}},methods:{cmMeta(t,r=0){return{type:this.paragraph.entity_type,id:this.paragraph.entity_id,field:t,delta:r,langcode:this.paragraph.langcode}},hasText(){return this.paragraph.field_title||this.paragraph.field_description},hasMedia(){return this.paragraph.field_media}}},y=["innerHTML"],k=["innerHTML"],M=["innerHTML"],H=["innerHTML"],T=["innerHTML"],L={key:5,class:"vbup-content-links vbup-simple-item-links"};function S(t,r,e,B,w,i){const p=v("BaseLink"),n=o("editable");return a(),l("div",{class:f(["vbup-simple-item",e.paragraph.field_additional_class])},[e.paragraph.field_title&&t.$isBlockHtml(e.paragraph.field_title)?s((a(),l("div",{key:0,class:"vbup-content-title vbup-simple-item-title",innerHTML:e.paragraph.field_title},null,8,y)),[[n,i.cmMeta("field_title")]]):e.parentHasTitle&&e.paragraph.field_title?s((a(),l("h3",{key:1,class:"vbup-content-title vbup-simple-item-title",innerHTML:i.titleHtml},null,8,k)),[[n,i.cmMeta("field_title")]]):e.paragraph.field_title||i.titleSvgTag||t.$cmShowEmpty(e.paragraph,"field_title")?s((a(),l("h2",{key:2,class:"vbup-content-title vbup-simple-item-title",innerHTML:i.titleHtml},null,8,M)),[[n,i.cmMeta("field_title")]]):d("",!0),e.paragraph.field_subtitle||t.$cmShowEmpty(e.paragraph,"field_subtitle")?s((a(),l("div",{key:3,class:"vbup-content-subtitle vbup-simple-item-subtitle",innerHTML:e.paragraph.field_subtitle},null,8,H)),[[n,i.cmMeta("field_subtitle")]]):d("",!0),e.paragraph.field_description||t.$cmShowEmpty(e.paragraph,"field_description")?s((a(),l("div",{key:4,class:"vbup-content-subtitle vbup-simple-item-subtitle",innerHTML:e.paragraph.field_description},null,8,T)),[[n,i.cmMeta("field_description")]]):d("",!0),e.paragraph.field_links?(a(),l("div",L,[(a(!0),l(h,null,_(e.paragraph.field_links,(m,c)=>(a(),g(p,{key:c,"base-link":m,version:e.paragraph.version,delta:c,"field-name":"field_links","lang-code":e.paragraph.langcode,"entity-id":e.paragraph.entity_id,"entity-type":e.paragraph.entity_type},null,8,["base-link","version","delta","lang-code","entity-id","entity-type"]))),128))])):d("",!0)],2)}const E=u(b,[["render",S]]);export{E as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.