1import{y as $,x as A,g as m}from"./BG0khWh4.js";function B(e,t){const i=e.match(/(<header[^>]*>[\s\S]*?<\/header>\s*)((?:<nav[^>]*id="mobile-menu"[\s\S]*?<\/nav>\s*)?)/i),n=e.match(/<footer[^>]*>[\s\S]*?<\/footer>/i);let r=(i?.[1]||"")+(i?.[2]||""),o=n?.[0]||"";return t&&(r=f(r,t),o=f(o,t)),{header:r,footer:o}}function f(e,t){if(!e)return e;if(t.phone){const i=t.phone.replace(/[^\d+]/g,"");e=e.replace(/<a\s+href="tel:[^"]*"([^>]*class="[^"]*phone[^"]*"[^>]*)>[^<]*<\/a>/gi,`<a href="tel:${i}"$1>${u(t.phone)}</a>`),e=e.replace(/<a([^>]*class="[^"]*phone[^"]*"[^>]*)\s+href="tel:[^"]*"([^>]*)>[^<]*<\/a>/gi,`<a$1 href="tel:${i}"$2>${u(t.phone)}</a>`),e=e.replace(/(<li[^>]*class="[^"]*phone[^"]*"[^>]*>\s*<a[^>]*?\s)href="tel:[^"]*"([^>]*)>[^<]*<\/a>/gi,`$1href="tel:${i}"$2>${u(t.phone)}</a>`)}return t.email&&(e=e.replace(/<a\s+href="mailto:[^"]*"([^>]*class="[^"]*email[^"]*"[^>]*)>[^<]*<\/a>/gi,`<a href="mailto:${t.email}"$1>${u(t.email)}</a>`),e=e.replace(/<a([^>]*class="[^"]*email[^"]*"[^>]*)\s+href="mailto:[^"]*"([^>]*)>[^<]*<\/a>/gi,`<a$1 href="mailto:${t.email}"$2>${u(t.email)}</a>`)),t.social_facebook&&(e=e.replace(/(<a[^>]*href=")[^"]*(facebook\.com[^"]*)"/gi,`$1${t.social_facebook}"`)),t.social_instagram&&(e=e.replace(/(<a[^>]*href=")[^"]*(instagram\.com[^"]*)"/gi,`$1${t.social_instagram}"`)),t.social_twitter&&(e=e.replace(/(<a[^>]*href=")[^"]*(twitter\.com|x\.com)[^"]*"/gi,`$1${t.social_twitter}"`)),e}function u(e){return String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}async function Z(){const e=$("site-settings",()=>null);if(e.value)return e.value;try{const t=await $fetch("/api/getData",{method:"POST",body:{name:"setting"}});e.value=t?.data||null}catch{e.value=null}return e.value}function I(e){const t=A(),i="https://playgolf.co.nz",n=i+t.path,r=i+"/images/logo.svg";if(e!==null){const{browser_title:o,meta_keyword:s,meta_desc:l,og_image:g,twitter_card:d}=e,y=g?`${i}/cms/assets/${g}`:r;m({title:o??"",meta:[s&&{hid:"keywords",name:"keywords",content:s},l&&{hid:"description",name:"description",content:l},{hid:"og:type",property:"og:type",content:"website"},{hid:"og:title",property:"og:title",content:o??""},{hid:"og:url",property:"og:url",content:n},l&&{hid:"og:description",property:"og:description",content:l},{hid:"og:image",property:"og:image",content:y},{hid:"twitter:card",name:"twitter:card",content:"summary_large_image"},{hid:"twitter:title",name:"twitter:title",content:o??""},l&&{hid:"twitter:description",name:"twitter:description",content:l},{hid:"twitter:image",name:"twitter:image",content:d?`${i}/cms/assets/${d}`:y}].filter(Boolean),link:[{rel:"canonical",href:n}].filter(Boolean)})}else m({meta:[{hid:"og:url",property:"og:url",content:n},{hid:"og:image",property:"og:image",content:r},{hid:"twitter:card",name:"twitter:card",content:"summary_large_image"},{hid:"twitter:image",name:"twitter:image",content:r}],link:[{rel:"canonical",href:n}]})}const a="https://playgolf.co.nz",b="Playing Around New Zealand",v="Playing Around New Zealand Ltd",h=(e,t)=>e?`${a}/cms/assets/${e}${`?width=${t}&quality=82`}`:null,w=()=>({"@type":"Person","@id":`${a}/about-us#will-owen`,name:"Will Owen",jobTitle:"Founder and Managing Director",worksFor:{"@id":`${a}/#organization`},url:`${a}/about-us`,image:`${a}/cms/assets/0c0b8dca-b89c-4f2f-8333-b1da4975063c?width=600&quality=82`,knowsAbout:["New Zealand championship golf courses","Luxury travel design","IAGTO standards","Kauri Cliffs","Tara Iti","Cape Kidnappers","Te Arai Links"],memberOf:{"@id":"https://iagto.com/#org"}}),O=()=>({"@type":"TravelAgency","@id":`${a}/#organization`,name:b,legalName:v,url:a,logo:`${a}/images/logo.svg`,email:"[email protected]",telephone:"+64-9-414-6360",foundingDate:"2003",founder:w(),memberOf:{"@type":"Organization","@id":"https://iagto.com/#org",name:"International Association of Golf Tour Operators",alternateName:"IAGTO",url:"https://iagto.com/"},address:{"@type":"PostalAddress",addressCountry:"NZ",addressRegion:"Auckland"},sameAs:["https://www.facebook.com/NewZealandGolf","https://www.instagram.com/playgolfnz","https://www.tripadvisor.co.nz/Attraction_Review-g255106-d5111714-Reviews-Playing_Aroun
1d_New_Zealand-Auckland_Central_North_Island.html"],knowsAbout:["Golf tours","New Zealand golf","Luxury travel","Golf course bookings","Kauri Cliffs","Tara Iti","Cape Kidnappers","Te Arai Links"],areaServed:{"@type":"Country",name:"New Zealand"}}),_=()=>({"@context":"https://schema.org","@type":"AboutPage","@id":`${a}/about-us#page`,name:"About Playing Around New Zealand",description:"Will Owen and the team behind Playing Around New Zealand: 20+ years of IAGTO-accredited luxury golf travel.",url:`${a}/about-us`,mainEntity:{"@id":`${a}/#organization`},about:{"@id":`${a}/#organization`}}),k=()=>({"@context":"https://schema.org","@type":"ContactPage","@id":`${a}/contact#page`,name:"Contact Playing Around New Zealand",description:"Contact Will Owen and the Playing Around New Zealand team to plan your luxury golf vacation.",url:`${a}/contact`,isPartOf:{"@id":`${a}/#organization`},mainEntity:{"@id":`${a}/#organization`}}),T=()=>({"@context":"https://schema.org",...w()}),P=e=>!e||e.length===0?null:{"@context":"https://schema.org","@type":"FAQPage","@id":`${a}/faq#page`,url:`${a}/faq`,mainEntity:e.filter(t=>t&&t.question&&t.answer).map(t=>({"@type":"Question",name:c(t.question),acceptedAnswer:{"@type":"Answer",text:c(t.answer)}}))},E=e=>!e?.slug||!e?.title?null:{"@context":"https://schema.org","@type":"Service","@id":`${a}/golf-packages/${e.slug}#service`,name:e.title,description:p(c(e.seo_description||e.lead_copy||e.content),320),url:`${a}/golf-packages/${e.slug}`,image:h(e.hero_image||e.thumbnail_image,1600),provider:{"@id":`${a}/#organization`},serviceType:"Luxury Golf Tour",areaServed:{"@type":"Country",name:"New Zealand"},audience:{"@type":"Audience",audienceType:"Golf enthusiasts"},offers:{"@type":"Offer",priceCurrency:e.price_currency||"USD",priceSpecification:{"@type":"PriceSpecification",priceCurrency:e.price_currency||"USD",minPrice:e.price_from||15e3,maxPrice:e.price_to||4e4}}},C={auckland:{lat:-36.8485,lng:174.7633,region:"Auckland"},"auckland-golf":{lat:-36.8485,lng:174.7633,region:"Auckland"},"bay-of-islands":{lat:-35.2519,lng:174.0883,region:"Northland"},"rotorua-taupo":{lat:-38.1368,lng:176.2497,region:"Bay of Plenty"},"hawkes-bay":{lat:-39.4928,lng:176.912,region:"Hawkeâs Bay"},"hawkes-bay-1":{lat:-39.4928,lng:176.912,region:"Hawkeâs Bay"},wellington:{lat:-41.2866,lng:174.7756,region:"Wellington"},"wellington-1":{lat:-41.2866,lng:174.7756,region:"Wellington"},christchurch:{lat:-43.5321,lng:172.6362,region:"Canterbury"},queenstown:{lat:-45.0312,lng:168.6626,region:"Otago"},"north-island":{lat:-38,lng:175.5,region:"North Island"},"south-island":{lat:-43.5,lng:170,region:"South Island"}},N=e=>{if(!e?.slug||!e?.title)return null;const t=C[e.slug];return{"@context":"https://schema.org","@type":"TouristAttraction","@id":`${a}/destinations/${e.slug}#destination`,name:e.title,description:p(c(e.seo_description||e.lead_copy||e.content),320),url:`${a}/destinations/${e.slug}`,image:h(e.hero_image||e.thumbnail_image,1600),geo:t?{"@type":"GeoCoordinates",latitude:t.lat,longitude:t.lng}:void 0,address:t?{"@type":"PostalAddress",addressLocality:e.title,addressRegion:t.region,addressCountry:"NZ"}:{"@type":"PostalAddress",addressCountry:"NZ"},touristType:["Golf enthusiasts","Luxury travellers"]}},H={"tara-iti-2":{architect:"Tom Doak",dateEstablished:"2015",numberOfHoles:18,lat:-36.0944,lng:174.5764,locality:"Mangawhai",region:"Northland"},"tara-iti":{architect:"Tom Doak",dateEstablished:"2015",numberOfHoles:18,lat:-36.0944,lng:174.5764,locality:"Mangawhai",region:"Northland"},"kauri-cliffs":{architect:"David Harman",dateEstablished:"2000",numberOfHoles:18,lat:-35.0617,lng:173.7383,locality:"Matauri Bay",region:"Northland"},"cape-kidnappers":{architect:"Tom Doak",dateEstablished:"2004",numberOfHoles:18,lat:-39.6422,lng:177.0858,locality:"Cape Kidnappers",region:"Hawkeâs Bay"},"te-arai-links-south":{architect:"Bill Coore",dateEstablished:"2022",numberOfHoles:18,lat:-36.1739,lng:174.6647,locality:"Te Arai",region:"Northland"},"te-arai-links-north":{architect:"Tom Doak",dateEstablished:"2023",numberOfHoles:18,lat:-36.1739,lng:174.6647,locality:"Te Arai",region:"Northland"},"jacks-point":{architect:"John Darby",dateEstablished:"2008",numberOfHoles:18,lat:-45.083,lng:168.7028,locality:"Queenstown",region:"Otago"},"the-kinloch-club":{architect:"Jack Nicklaus",dateEstablished:"2007",numberOfHoles:18,lat:-38.7,lng:175.9667,locality:"Lake Taupo",region:"Waikato"},paraparaumu:{architect:"Alex Russell",dateEstablished:"1949",numberOfHoles:18,lat:-40.9043,lng:174.9837,locality:"Paraparaumu Beach",regi
1on:"Wellington"},"wairakei-golf-sanctuary":{architect:"Commander John Harris",dateEstablished:"1970",numberOfHoles:18,lat:-38.6233,lng:176.0964,locality:"Taupo",region:"Waikato"},"the-hills":{architect:"Darby Partners",dateEstablished:"2007",numberOfHoles:18,lat:-44.9836,lng:168.8275,locality:"Arrowtown",region:"Otago"},titirangi:{architect:"Alister MacKenzie",dateEstablished:"1927",numberOfHoles:18,lat:-36.9357,lng:174.6529,locality:"Auckland",region:"Auckland"},millbrook:{architect:"Sir Bob Charles",dateEstablished:"1993",numberOfHoles:27,lat:-44.9367,lng:168.84,locality:"Arrowtown",region:"Otago"},"royal-wellington":{architect:"James S. Macdonald",dateEstablished:"1895",numberOfHoles:18,lat:-41.1414,lng:175.0608,locality:"Heretaunga",region:"Wellington"},"windross-farm":{architect:"Brett Thomson",dateEstablished:"2015",numberOfHoles:18,lat:-37.0764,lng:174.9447,locality:"Ardmore",region:"Auckland"},clearwater:{architect:"John Darby",dateEstablished:"2003",numberOfHoles:18,lat:-43.4736,lng:172.5544,locality:"Christchurch",region:"Canterbury"},"terrace-downs":{architect:"Sid Puddicombe",dateEstablished:"2002",numberOfHoles:18,lat:-43.4839,lng:171.6925,locality:"Windwhistle",region:"Canterbury"},"royal-auckland-and-grange":{architect:"Alister MacKenzie",dateEstablished:"1894",numberOfHoles:27,lat:-36.9189,lng:174.8911,locality:"Auckland",region:"Auckland"},carrington:{architect:"Matt Dwyer",dateEstablished:"2003",numberOfHoles:18,lat:-34.8253,lng:173.3897,locality:"Karikari Peninsula",region:"Northland"}},S=()=>({"@context":"https://schema.org",...O()}),c=e=>(e||"").replace(/<[^>]+>/g," ").replace(/\s+/g," ").trim(),p=(e,t)=>e.length>t?e.slice(0,t-1).trimEnd()+"â¦":e,x=e=>{if(!e?.slug||!e?.title)return null;const t=H[e.slug]||{},i=e.architect||t.architect,n=e.date_established||t.dateEstablished,r=e.number_of_holes||t.numberOfHoles,o=e.latitude||t.lat,s=e.longitude||t.lng,l=e.locality||t.locality,g=e.region||t.region;return{"@context":"https://schema.org","@type":"GolfCourse","@id":`${a}/courses/${e.slug}#course`,name:e.title,description:p(c(e.seo_description||e.content),280),url:`${a}/courses/${e.slug}`,image:h(e.hero_image||e.thumbnail_image,1600),architect:i?{"@type":"Person",name:i}:void 0,dateEstablished:n||void 0,numberOfHoles:r||void 0,address:{"@type":"PostalAddress",addressLocality:l||void 0,addressRegion:g||void 0,addressCountry:"NZ"},geo:o&&s?{"@type":"GeoCoordinates",latitude:o,longitude:s}:void 0,provider:{"@id":`${a}/#organization`},amenityFeature:{"@type":"LocationFeatureSpecification",name:"Championship Golf Course"}}},L=e=>!e?.slug||!e?.title?null:{"@context":"https://schema.org","@type":"TouristTrip","@id":`${a}/itineraries/${e.slug}#trip`,name:e.title,description:p(c(e.lead_copy||e.seo_description||e.content),320),url:`${a}/itineraries/${e.slug}`,image:h(e.hero_image,1600),touristType:["Golf enthusiasts","Luxury travellers"],itinerary:{"@type":"ItemList",name:`${e.title} â schedule`},provider:{"@id":`${a}/#organization`},offers:e.price?{"@type":"Offer",priceCurrency:"NZD",price:String(e.price),availability:"https://schema.org/InStock",url:`${a}/itineraries/${e.slug}`}:void 0,partOfTrip:{"@id":`${a}/#organization`},subjectOf:{"@type":"WebPage",url:`${a}/itineraries/${e.slug}`}},z=e=>({"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:e.map((t,i)=>({"@type":"ListItem",position:i+1,name:t.name,item:t.url.startsWith("http")?t.url:`${a}${t.url}`}))}),R=(e,t)=>{const i=e.split("/").filter(Boolean),n=[{name:"Home",url:"/"}];let r="";return i.forEach((o,s)=>{r+=`/${o}`;const g=s===i.length-1&&t?t:o.split("-").map(d=>d[0]?.toUpperCase()+d.slice(1)).join(" ");n.push({name:g,url:r})}),n},D=e=>{const t=e.map(n=>({"@type":"Review",author:{"@type":"Person",name:n.author||"Anonymous client"},reviewBody:p(c(n.quote),500),reviewRating:{"@type":"Rating",ratingValue:5,bestRating:5},itemReviewed:{"@id":`${a}/#organization`}}));return{"@context":"https://schema.org","@type":"TravelAgency","@id":`${a}/#organization`,name:b,url:a,aggregateRating:{"@type":"AggregateRating",ratingValue:"4.9",reviewCount:String(e.length),bestRating:"5",worstRating:"1"},review:t}};function W(...e){const t=e.filter(i=>
1!!i&&typeof i=="object").map(i=>({type:"application/ld+json",innerHTML:JSON.stringify(i)}));t.length!==0&&m({script:t})}const M={travelAgency:S,golfCourse:x,touristTrip:L,breadcrumb:z,testimonialsPage:D,breadcrumbFromPath:R,aboutPage:_,contactPage:k,personWillOwen:T,faqPage:P,golfPackageService:E,touristAttraction:N};export{W as a,Z as b,B as e,M as s,I 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.