PageSourceSearch

https://www.diamant-software.de/_nuxt/CY-iD5CV.js

js diamant-software.de collected 2026-09-28 10:39:15 UTC 3,733 bytes, 1 lines download raw bytes

1import{_ as e}from"./t3DDe3zi.js";import{r as t}from"./CsLjExHQ.js";import{u as l}from"./USbAx02T.js";import{d as s,c as a,p as o,n as i,j as n,l as c,q as r,G as k,m as b,k as d,s as m,F as p,E as u,o as f,N as g,r as h}from"./DBRbC-fC.js";const x={class:"overflow-hidden rounded-2xl shadow-md flex flex-col"},y={key:0,class:"overflow-hidden rounded-b-lg aspect-[16_/_9] md:aspect-[16_/_7.7] flex-shrink-0"},_={class:"p-4 lg:pt-3.5 flex-grow flex-col flex items-start"},v={key:1,class:"text-lg mb-5 mt-5 first:mt-0"},w=["innerHTML"],S={key:3,class:"text-primary-black-900 flex flex-col gap-3.5 mb-4 text-sm font-semibold"},j={key:0,class:"grid grid-cols-2 gap-20"},A={key:0,class:"flex items-center gap-3"},z=["datetime"],E={key:1,class:"flex items-center gap-3"},H={key:1,class:"flex items-center gap-3"},Z={key:4,class:"mt-auto"},C=s({__name:"EventCard",props:{blok:{}},setup(s){const{truncateHtml:C}=(()=>{const e=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]);return{truncateText:(e,t=250)=>{if(!e)return"";const l=(e=>e.replace(/<script[\s\S]*?>[\s\S]*?<\/script>/gi,"").replace(/<style[\s\S]*?>[\s\S]*?<\/style>/gi,"").replace(/<[^>]+>/g,"").replace(/\s+/g," ").trim())(e);return l.length<=t?l:l.slice(0,t).trim()+"..."},truncateHtml:(t,l=250)=>{if(!t)return"";const s=t.replace(/<script[\s\S]*?>[\s\S]*?<\/script>/gi,"").replace(/<style[\s\S]*?>[\s\S]*?<\/style>/gi,""),a=[];let o="",i=0;for(const n of s.match(/<[^>]+>|[^<]+/g)??[]){if(n.startsWith("<")){o+=n;const t=/^<\s*(\/?)\s*([a-zA-Z][a-zA-Z0-9-]*)/.exec(n);if(!t)continue;const[,l,s]=t,i=s.toLowerCase();if(l){const e=a.lastIndexOf(i);-1!==e&&a.splice(e,1)}else n.endsWith("/>")||e.has(i)||a.push(i);continue}const t=n.match(/&(?:[a-zA-Z][a-zA-Z0-9]*|#\d+|#[xX][0-9a-fA-F]+);|[\s\S]/gu)??[];if(!(i+t.length<=l)){o+=t.slice(0,l-i).join("").trimEnd()+"...";break}o+=n,i+=t.length}for(;a.length;)o+=`</${a.pop()}>`;return o}}})(),L=s,T=a((()=>({label:L.blok.tag,style:"light_blue"}))),{date:D,time:F}=l(L.blok.date??"");return(l,s)=>{const a=e,G=h("StoryblokComponent"),M=i("editable");return o((f(),n("article",x,[l.blok.image?(f(),n("div",y,[k(b(g),{src:l.blok.image.filename,alt:l.blok.image.alt||l.blok.title||"Event",width:"400",height:"192",class:"object-cover object-center w-full h-full max-w-none"},null,8,["src","alt"])])):c("",!0),r("div",_,[L.blok.tag?(f(),d(a,{key:0,blok:T.value},null,8,["blok"])):c("",!0),l.blok.title?(f(),n("h3",v,m(l.blok.title),1)):c("",!0),l.blok.text&&l.blok.text.content?(f(),n("div",{key:2,class:"mb-4 text-base w-full event-card__description",innerHTML:b(C)(("renderedDescription"in l?l.renderedDescription:b(t))(l.blok.text),250)},null,8,w)):c("",!0),l.blok.date||l.blok.time||l.blok.location?(f(),n("div",S,[l.blok.date||l.blok.time?(f(),n("div",j,[l.blok.date?(f(),n("div",A,[l.blok.icon_date?(f(),d(b(g),{key:0,src:l.blok.icon_date,alt:"calendar icon",width:"12",height:"12",class:"flex-shrink-0"},null,8,["src"])):c("",!0),r("time",{datetime:l.blok.date},m(b(D)),9,z)])):c("",!0),"00:00"!==b(F)?(f(),n("div",E,[l.blok.icon_time?(f(),d(b(g),{key:0,src:l.blok.icon_time,alt:"calendar clock",width:"12",height:"12",class:"flex-shrink-0"},null,8,["src"])):c("",!0),r("span",null,m(b(F)),1)])):c("",!0)])):c("",!0),l.blok.location?(f(),n("div",H,[l.blok.icon_location?(f(),d(b(g),{key:0,src:l.blok.icon_location,alt:"calendar clock",width:"12",height:"12",class:"flex-shrink-0"},null,8,["src"])):c("",!0),r("span",null,m(l.blok.location),1)])):c("",!0)])):c("",!0),l.blok.button&&l.blok.button.length>0?(f(),n("div",Z,[(f(!0),n(p,null,u(l.blok.button,(e=>(f(),d(G,{key:e._uid,blok:e},null,8,["blok"])))),128))])):c("",!0)])])),[[M,l.blok]])}}});export{C 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.