PageSourceSearch

https://www.regioradstuttgart.de/_nuxt/BnAC6YzM.js

js regioradstuttgart.de collected 2026-10-04 13:24:55 UTC 2,992 bytes, 1 lines download raw bytes

1import{d as m,bi as k,h as t,bj as u,F as x,D as b,x as _,y as T,m as v}from"./BJhlU1rR.js";import{_ as B}from"./CL93qZiK.js";const C="vue-strapi-blocks-renderer",$=e=>{const n=e.split(/\r?\n|\r/g);if(n.length===1)return[e];const r=[];return n.forEach((o,s)=>{s>0&&r.push(t("br")),o&&r.push(o)}),r},M=({componentsContext:e,text:n,...r})=>{const{modifiers:o,missingModifierTypes:s}=e;return Object.keys(r).reduce((l,i)=>{if(!r[i])return l;const c=o[i];return c?c({children:l}):(s.includes(i)||s.push(i),l)},$(n))},w=["image"],R=e=>{const{children:n,type:r,...o}=e;if(r==="code"||r==="heading"){const s=l=>l.reduce((i,c)=>c.type==="text"?i.concat(c.text):c.type==="link"?i.concat(s(c.children)):i,"");return{...o,plainText:s(e.children)}}return o},h=({content:e,componentsContext:n})=>{const{children:r,type:o,...s}=e,{blocks:l,missingBlockTypes:i}=n,c=l[o];if(!c)return i.includes(o)||i.push(o),null;if(w.includes(o))return c(s);const a=r[0];if(o==="paragraph"&&r.length===1&&(a==null?void 0:a.type)==="text"&&a.text==="")return t("br");const f=R(e),g=r.flatMap(d=>{if(d.type==="text"){const{type:q,...y}=d;return M({componentsContext:n,...y})}return h({content:d,componentsContext:n})});return c({children:g,...f})},j=Symbol(C),p={blocks:{paragraph:e=>t("p",{},e.children),quote:e=>t("blockquote",{},e.children),code:e=>t("pre",{},[t("code",{},e.plainText)]),heading:({level:e,children:n})=>{switch(e){case 1:return t("h1",{},n);case 2:return t("h2",{},n);case 3:return t("h3",{},n);case 4:return t("h4",{},n);case 5:return t("h5",{},n);case 6:return t("h6",{},n)}},link:e=>t("a",{href:e.url,target:e.target||void 0,rel:e.rel||void 0},e.children),list:e=>{const n=e.format==="ordered";return t(n?"ol":"ul",{},e.children)},"list-item":e=>t("li",{},e.children),image:({image:e})=>t("img",{src:e.url,alt:e.alternativeText||void 0})},modifiers:{bold:e=>t("strong",{},e.children),italic:e=>t("em",{},e.children),underline:e=>t("u",{},e.children),strikethrough:e=>t("del",{},e.children),code:e=>t("code",{},e.children)}},O=m({name:"BlocksRenderer",props:{content:{type:Array,required:!0},blocks:{type:Object,default:()=>({})},modifiers:{type:Object,default:()=>({})}},setup(e){const{content:n,blocks:r,modifiers:o}=k(e),s={...p.blocks,...r.value},l={...p.modifiers,...o.value},i={blocks:s,modifiers:l,missingBlockTypes:[],missingModifierTypes:[]};return b(j,i),()=>{if(!n.value)throw new Error("BlocksRenderer content is empty");const c=n.value.map(a=>h({content:a,componentsContext:i}));return i.missingBlockTypes.length&&c.unshift(t(u,`missingBlockTypes: ${i.missingBlockTypes}`)),i.missingModifierTypes.length&&c.unshift(t(u,`missingModifierTypes: ${i.missingModifierTypes}`)),t(x,c)}}}),S=m({__name:"UtilityStrapiRichText",props:{content:{}},setup(e){const n={link:({url:r,target:o,rel:s,children:l})=>t(B,{to:r,target:o||void 0,rel:s||void 0},l)};return(r,o)=>(_(),T(v(O),{content:e.content,blocks:n},null,8,["content"]))}}),N=Object.assign(S,{__name:"UtilityStrapiRichText"});export{N as _};

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.