1import{a as e}from"./nuxt-tb9gGaKW.js";import{n as t}from"./composables-HCUvmiyL.js";import{t as n}from"./useUrls-D6CDavxz.js";import{n as r}from"./UniversalLink-BTJp_tmN.js";import{t as i}from"./appendTrailingSlash-Co3HjzrW.js";function a(){let{$sitewideConfig:a,$router:o}=e(),s=r(),{getImageUrl:c}=n();function l(e){let t=i(`https://`+a.domain+o.resolve(s.formatRoute({name:`product`,params:{productLine:e.productLineSlug}})).href),n=c(e.image.key,e.image.filename);return{"@type":`Product`,name:e.productLineName,url:t,...n&&{image:n},brand:{"@type":`Brand`,name:e.brand},...e.totalReviews>0&&{aggregateRating:{"@type":`AggregateRating`,ratingValue:e.averageRating,reviewCount:e.totalReviews}},...!e.hasMAPViolation&&{offers:{"@type":`Offer`,price:e.salePrice/100,priceCurrency:`USD`}}}}function u(e,t){if(Array.isArray(e)){let n=i(`https://`+a.domain+o.currentRoute.value.path);return JSON.stringify({"@context":`http://schema.org/`,"@type":`ItemList`,"@id":`${n}#itemlist`,url:n,name:t,itemListOrder:`https://schema.org/ItemListUnordered`,itemListElement:e.map((e,t)=>({"@type":`ListItem`,position:t+1,item:l(e)}))})}return JSON.stringify({"@context":`http://schema.org/`,...l(e)})}function d(e,n){t({script:[{type:`application/ld+json`,innerHTML:u(e,n),tagPosition:`bodyClose`}]})}return{render:d}}export{a as t}; 2//# sourceMappingURL=useProductSchema-CZhPIor4.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.