1import{bh as y,g as u,au as C,ax as l,b1 as S,b8 as x,n as L,x as O,bb as P}from"./CO53y7R9.js";import{d as v}from"./Dz6DoIb9.js";const B=()=>{const{data:s}=y("salesChannel");return{salesChannel:s}},k=()=>{const s=l(),{salesChannel:o}=B(),a=n=>n?`${s.public.site.url}${C(n)}`:void 0,i=(n,t=null)=>{const e=u(n);if(!e)return{};const r=e.parentId?e:e.children?.[0]||e;if(!r)return{};const{name:d,productNumber:p,translated:h,calculatedPrice:f,seoUrls:g=[],manufacturer:c,cover:b}=r;return{"@context":"https://schema.org","@type":"Product",name:d,image:b?.media?.customFields?.adobe_media_url??"",description:h?.description??"",sku:p,brand:c?.customFields?.shortName?{"@type":"Brand",name:c.customFields.shortName}:void 0,manufacturer:c?.name?{"@type":"Organization",name:c.name}:void 0,offers:{"@type":"Offer",price:f?.unitPrice??"",priceCurrency:o.value?.currency?.isoCode??"",availability:`https://schema.org/${t??"OutOfStock"}`,url:a(g)}}};return{defineProductSchema:i,defineProductListingSchema:n=>{const t=u(n);return t?.length?{"@context":"https://schema.org","@type":"ItemList",numberOfItems:t.length,itemListElement:t.map((e,r)=>({"@type":"ListItem",position:r+1,item:i(e)}))}:{}},defineBreadcrumbSchema:n=>{const t=u(n);return t?.length?{"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:t.map((e,r)=>({"@type":"ListItem",position:r+1,name:e.name,item:a(e.seoUrls)}))}:{}},defineCategorySchema:n=>{const t=u(n);if(!t)return{};const e=t.translated||{};return{"@context":"https://schema.org","@type":"CollectionPage",name:v(e.metaTitle||e.name||""),description:e.metaDescription??"",url:a(t.seoUrls),image:t.media?.url??""}}}};function I(){const s=l();return S(s.public["nuxt-schema-org"],{scriptAttributes:{}})}function D(s){const o=I(),a=x();let i=s;O(s)&&(i=()=>a.runWithContext(()=>P(s)));const m={type:"application/ld+json",key:"schema-org-graph",nodes:i,tagPriority:"high",...o.scriptAttributes};if(o?.reactive)return L({script:[m]})}export{D as a,B as b,k 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.