1import{m as s}from"./chunk-K5PPIXKC.js";import{b as f}from"./chunk-UKABXLTO.js";import{e as g}from"./chunk-6NR6QOGC.js";import{Bb as d,Ea as p,ad as i,dd as u,gc as l,hb as m,ja as c}from"./chunk-YGOACZTK.js";var M=(()=>{class o{constructor(){this.sanitizer=c(g),this.json=u({}),p(()=>{let t=this.json();this.jsonLD=this.getSafeHTML(t)})}getSafeHTML(t){let a=`<script type="application/ld+json">${t?JSON.stringify(t).replace(/<\/script>/g,"<\\/script>"):""}<\/script>`;return this.sanitizer.bypassSecurityTrustHtml(a)}static{this.\u0275fac=function(n){return new(n||o)}}static{this.\u0275cmp=d({type:o,selectors:[["app-json-ld"]],hostVars:1,hostBindings:function(n,a){n&2&&l("innerHTML",a.jsonLD,m)},inputs:{json:[1,"json"]},decls:0,vars:0,template:function(n,a){},encapsulation:2,changeDetection:0})}}return o})();var H={fromEvent(o){return i(()=>{let e=o();if(!e)return{};let t={"@context":"https://schema.org","@type":"Event",name:`${e?.title}`,image:`https:${e?.image?.absoluteUrl}`,description:`${new f().transform(e?.description)}`,eventStatus:"https://schema.org/EventScheduled",eventAttendanceMode:"https://schema.org/OfflineEventAttendanceMode",organizer:{"@type":"Organization",name:"CODA Apeldoorn",url:"https://www.coda-apeldoorn.nl"},location:e?.locations?.[0]!==void 0?{"@type":"Place",name:`${e?.locations?.[0].name}`,geo:{"@type":"GeoCoordinates",latitude:`${e?.locations?.[0].geoLocation?.lat}`,longitude:`${e?.locations?.[0].geoLocation?.lng}`}}:{"@type":"Place",name:"CODA Apeldoorn",address:{"@type":"PostalAddress",streetAddress:"Vosselmanstraat 299",addressLocality:"Apeldoorn",postalCode:"7311 CL",addressCountry:"NL"}}};if(e.startDate){let n=s(new Date(e.startDate),"yyyy-MM-dd");e.displayEventStartTime&&(n+="T"+s(new Date(e.startDate),"HH:mm:ss")),t.startDate=n}if(e.endDate){let n=s(new Date(e.endDate),"yyyy-MM-dd");e.displayEventEndTime&&(n+="T"+s(new Date(e.endDate),"HH:mm:ss")),t.endDate=n}else{let n=s(new Date(e.startDate),"yyyy-MM-dd");e.displayEventEndTime&&(n+="T"+s(new Date(e.startDate),"HH:mm:ss")),t.endDate=n}return t})},fromBreadcrumb(o){return i(()=>o()?{"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:o()?.map((t,n)=>{let a=t.url||`https://www.coda-apeldoorn.nl/${t.routerLink?.filter(r=>r!=="/").map(r=>r.replace(/^\/+/,"")).join("/")||""}`;if(t.queryParams){let r=new URLSearchParams(t.queryParams).toString();a+=`?${r}`}return t.fragment&&(a+=`#${t.fragment}`),{"@type":"ListItem",position:n+1,name:t.text,item:a}})}:{})},organization(o){return i(()=>{let e=o().map(t=>({"@type":"SocialMediaPosting",accountName:t.title,url:t.url}));return{"@context":"https://schema.org","@type":"Organization",name:"CODA Apeldoorn",logo:"https://www.coda-apeldoorn.nl/assets/gfx/logo-coda-black.svg",contactPoint:{"@type":"ContactPoint",email:"[email protected]",contactType:"customer service"},sameAs:e.map(t=>t.url)}})},museum(o){return i(()=>({"@context":"https://schema.org","@type":"Museum",name:"CODA Apeldoorn",logo:"https://www.coda-apeldoorn.nl/assets/gfx/logo-coda-black.svg",sameAs:o().map(t=>({"@type":"SocialMediaPosting",accountName:t.title,url:t.url})).map(t=>t.url)}))}};export{M as a,H as b}; 2//# sourceMappingURL=chunk-DWB77OL7.js.map
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.