PageSourceSearch

https://samuels.co.nz/_nuxt/Dm_cnno6.js

js samuels.co.nz collected 2026-10-09 03:40:11 UTC 3,816 bytes, 1 lines download raw bytes

1import{e as u}from"./CQcL1C8p.js";const n="https://samuels.co.nz",o=`${n}/#organization`,p=e=>JSON.stringify(e).replace(/<\/script/gi,"<\\/script"),t=(e,i)=>u({script:[{id:`ld-${e}`,type:"application/ld+json",innerHTML:p(i)}]}),s=e=>e?String(e).replace(/<[^>]+>/g," ").replace(/\s+/g," ").trim():"";function d(e){const i={"@context":"https://schema.org","@type":"AutoRental","@id":o,name:"Samuels Vehicle Hire",alternateName:"Samuels",url:n,logo:`${n}/images/logo.svg`,description:"Premium Mercedes vans, minibuses and coaches for hire across New Zealand. Pick up in Auckland, Christchurch or Queenstown.",areaServed:[{"@type":"Country",name:"New Zealand"},{"@type":"City",name:"Auckland"},{"@type":"City",name:"Christchurch"},{"@type":"City",name:"Queenstown"}],address:{"@type":"PostalAddress",addressCountry:"NZ"},priceRange:"$$",currenciesAccepted:"NZD"},r=[];e!=null&&e.facebook&&r.push(e.facebook),e!=null&&e.instagram&&r.push(e.instagram),e!=null&&e.youtube&&r.push(e.youtube),e!=null&&e.linkedin&&r.push(e.linkedin),r.length&&(i.sameAs=r),e!=null&&e.email&&(i.email=e.email),e!=null&&e.phone&&(i.telephone=e.phone),t("organization",i),t("website",{"@context":"https://schema.org","@type":"WebSite","@id":`${n}/#website`,url:n,name:"Samuels Vehicle Hire",publisher:{"@id":o},inLanguage:"en-NZ"})}function m(e){if(!Array.isArray(e)||!e.length)return;const i=e.map((r,a)=>{const c={"@type":"AutoRental","@id":`${n}/locations#${(r.title||`branch-${a}`).toLowerCase().replace(/[^a-z0-9]+/g,"-")}`,name:`Samuels Vehicle Hire — ${r.title}`,parentOrganization:{"@id":o},address:{"@type":"PostalAddress",streetAddress:s(r.address),addressLocality:r.title,addressCountry:"NZ"},url:`${n}/locations`};return r.hour&&(c.openingHours=s(r.hour)),c});t("branches",{"@context":"https://schema.org","@graph":i})}function h(e){if(!(e!=null&&e.title)||!(e!=null&&e.slug))return;const i=`${n}/vehicles/${e.slug}`,r=Number(String(e.price??"").replace(/[^0-9.]/g,""))||void 0,a={"@context":"https://schema.org","@type":"Vehicle",name:e.title,url:i,brand:{"@type":"Brand",name:"Mercedes-Benz"},manufacturer:{"@type":"Organization",name:"Mercedes-Benz"}};if(e.description&&(a.description=s(e.description)),e.image&&(a.image=e.image),e.year&&(a.modelDate=String(e.year).replace(/[^0-9]/g,"")||void 0),e.passengers){const c=Number(String(e.passengers).replace(/[^0-9]/g,""))||void 0;c&&(a.vehicleSeatingCapacity=c)}e.transmission&&(a.vehicleTransmission=e.transmission),e.engine&&(a.vehicleEngine={"@type":"EngineSpecification",name:e.engine}),r&&(a.offers={"@type":"Offer",url:i,priceCurrency:"NZD",price:r,priceSpecification:{"@type":"UnitPriceSpecification",price:r,priceCurrency:"NZD",unitCode:"DAY",unitText:"per day"},availability:"https://schema.org/InStock",businessFunction:"https://purl.org/goodrelations/v1#LeaseOut",seller:{"@id":o}}),t("vehicle",a)}function f(e){!Array.isArray(e)||!e.length||t("faq",{"@context":"https://schema.org","@type":"FAQPage",mainEntity:e.filter(i=>i.question&&i.answer).map(i=>({"@type":"Question",name:s(i.question),acceptedAnswer:{"@type":"Answer",text:s(i.answer)}}))})}function y(e){!Array.isArray(e)||e.length<2||t("breadcrumbs",{"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:e.map((i,r)=>({"@type":"ListItem",position:r+1,name:i.name,item:i.url.startsWith("http")?i.url:n+i.url}))})}function g(e){if(!(e!=null&&e.title)||!(e!=null&&e.slug))return;const i=`${n}/travel-guide/${e.slug}`,r={"@context":"https://schema.org","@type":"Article",headline:e.title,url:i,mainEntityOfPage:i,publisher:{"@id":o},inLanguage:"en-NZ"};e.description&&(r.description=s(e.description)),e.image&&(r.image=e.image),e.datePublished&&(r.datePublished=e.datePublished),e.dateModified&&(r.dateModified=e.dateModified),t("article",r)}export{y as a,m as b,g as c,h as d,d as e,f 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.