1import{f1 as a,f3 as s,f5 as n,f6 as r,f7 as h,f2 as t}from"./index-DcSVvNrM.js";import{m as p,q as l}from"./schema-org.F44ipjVJ-D1Hbsjq7.js";const u=a({defaults:{"@type":"MerchantReturnPolicy"},resolve(e,i){return e.returnPolicyCategory&&(e.returnPolicyCategory=r(e.returnPolicyCategory,"https://schema.org/")),e.returnFees&&(e.returnFees=r(e.returnFees,"https://schema.org/")),e.returnMethod&&(e.returnMethod=r(e.returnMethod,"https://schema.org/")),e.returnShippingFeesAmount=t(e.returnShippingFeesAmount,i,p),e}}),f=a({defaults:{"@type":"DefinedRegion"}}),m=a({defaults:{"@type":"ShippingDeliveryTime"},resolve(e,i){return e.handlingTime=t(e.handlingTime,i,l),e.transitTime=t(e.transitTime,i,l),e}}),y=a({defaults:{"@type":"OfferShippingDetails"},resolve(e,i){return e.deliveryTime=t(e.deliveryTime,i,m),e.shippingDestination=t(e.shippingDestination,i,f),e.shippingRate=t(e.shippingRate,i,p),e}}),o=a({cast(e){return typeof e=="number"||typeof e=="string"?{price:e}:e},defaults:{"@type":"Offer",availability:"InStock"},resolve(e,i){return s(e,"priceCurrency",i.meta.currency),s(e,"priceValidUntil",new Date(Date.UTC(new Date().getFullYear()+1,12,-1,0,0,0))),e.url&&n(i.meta.host,e.url),e.availability&&(e.availability=r(e.availability,"https://schema.org/")),e.itemCondition&&(e.itemCondition=r(e.itemCondition,"https://schema.org/")),e.priceValidUntil&&(e.priceValidUntil=h(e.priceValidUntil)),e.hasMerchantReturnPolicy=t(e.hasMerchantReturnPolicy,i,u),e.shippingDetails=t(e.shippingDetails,i,y),e}});export{o as offerResolver};
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.