PageSourceSearch

https://meyers.dk/_nuxt/C70RBKox.js

js meyers.dk collected 2026-10-02 06:01:36 UTC 4,103 bytes, 2 lines download raw bytes

1import{aG as f,a0 as y,aH as g,aD as S}from"./DjUjRTxR.js";import{u as h}from"./Cchh0342.js";function _(e){return e?e.map(t=>t._type!=="block"||!t.children?"":t.children.map(n=>n.text||"").join("")).join(`
2`):""}function b(e){const t=f();if(!e)return null;const n=[e.socialLinks?.instagram,e.socialLinks?.facebook,e.socialLinks?.youtube,e.socialLinks?.linkedin].filter(Boolean),r={"@context":"https://schema.org","@type":"Organization",name:e.siteName||"Meyers",url:t.url},c=h(e.seo?.ogImage,400,400);return c&&(r.logo=c),e.address?.streetAddress&&(r.address={"@type":"PostalAddress",streetAddress:e.address.streetAddress,postalCode:e.address.postalCode,addressLocality:e.address.city,addressCountry:e.address.country==="Danmark"?"DK":e.address.country}),e.phone&&(r.telephone=e.phone),e.email&&(r.email=e.email),n.length>0&&(r.sameAs=n),r}function x(e){const t=f(),n=y();if(!e||e._type!=="recipe")return null;const r=e,c=r.name||r.title;if(!c)return null;const i={"@context":"https://schema.org","@type":"Recipe",name:c,author:{"@type":"Organization",name:"Meyers"}},d=h(r.image,1200,630);d&&(i.image=d),r.description&&(i.description=r.description),r.publishedAt&&(i.datePublished=r.publishedAt),r.setting&&r.settingUnit&&(i.recipeYield=`${r.setting} ${r.settingUnit}`);const s=r.tags?.filter(a=>a.category==="meal"||a.category==="type").map(a=>a.name).filter(Boolean);s&&s.length>0&&(i.recipeCategory=s);const o=r.tags?.filter(a=>a.category==="kitchen").map(a=>a.name).filter(Boolean);o&&o.length>0&&(i.recipeCuisine=o);const u=r.tags?.map(a=>a.name).filter(Boolean);u&&u.length>0&&(i.keywords=u.join(", "));const p=[];r.ingredientGroups?.forEach(a=>{a.ingredients?.forEach(l=>{if(l.ingredient?.name){const A=[l.beforeText,l.amount,l.unit,l.ingredient.name,l.afterText].filter(Boolean);p.push(A.join(" ").trim())}})}),p.length>0&&(i.recipeIngredient=p);const m=[];return r.instructions?.forEach(a=>{a.steps?.forEach(l=>{m.push({"@type":"HowToStep",text:l})})}),m.length>0&&(i.recipeInstructions=m),i.url=`${t.url}${n.path}`,i}function E(e,t){const n=f(),r=y();if(!e)return null;const c=e.name||e.title;if(!c)return null;const i={"@context":"https://schema.org","@type":"EducationEvent",name:c,eventAttendanceMode:"https://schema.org/OfflineEventAttendanceMode",eventStatus:"https://schema.org/EventScheduled",organizer:{"@type":"Organization",name:t?.siteName||"Meyers",url:n.url}},d=h(e.image,1200,630);if(d&&(i.image=d),e.description&&(i.description=e.description),"event_time_start"in e&&e.event_time_start&&(i.startDate=e.event_time_start),"event_time_end"in e&&e.event_time_end&&(i.endDate=e.event_time_end),t?.address?.streetAddress&&(i.location={"@type":"Place",name:t.siteName||"Meyers",address:{"@type":"PostalAddress",streetAddress:t.address.streetAddress,postalCode:t.address.postalCode,addressLocality:t.address.city,addressCountry:t.address.country==="Danmark"?"DK":t.address.country}}),e.chefs&&e.chefs.length>0){const s=e.chefs.filter(o=>o.name).map(o=>({"@type":"Person",name:o.name}));s.length>0&&(i.performer=s)}if(e.price){const s="event_availability"in e?e.event_availability:null,o=s==null||s>0?"https://schema.org/InStock":"https://schema.org/SoldOut";i.offers={"@type":"Offer",price:String(e.price),priceCurrency:"DKK",availability:o,url:`${n.url}${r.path}`}}return i}function k(e){if(!e||e.length===0)return null;const t=e.filter(n=>n.question&&n.answer).map(n=>({"@type":"Question",name:n.question,acceptedAnswer:{"@type":"Answer",text:typeof n.answer=="string"?n.answer:_(n.answer)}}));return t.length===0?null:{"@context":"https://schema.org","@type":"FAQPage",mainEntity:t}}function w(e){return!e||e.length===0?null:{"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:e.map((t,n)=>({"@type":"ListItem",position:n+1,name:t.name,item:t.url}))}}function M(e){g({script:[{type:"application/ld+json",innerHTML:()=>{const t=S(e);return t?JSON.stringify(t):""}}]})}function O(e){const t=e.filter(Boolean);t.length!==0&&g({script:t.map(n=>({type:"application/ld+json",innerHTML:JSON.stringify(n)}))})}export{M as a,w as b,x as c,k as d,E as e,O as f,b as u};

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.