1import{p as S,V as O,d as T,c as q,_ as K,b as B}from"./CQcL1C8p.js";import{_ as W,a as re,c as ce,b as ue}from"./CaglbIEd.js";import{a as c,A as R,U as Q,L as a,M as i,a2 as e,E as r,u as o,a1 as M,Q as D,R as _,W as A,I as E,N as I,_ as Y,H as de,$ as w,q as z,a6 as G,ae as X,ag as me,ad as ve,p as fe,P as pe}from"./DnWGbaG4.js";import{u as J}from"./BCj8FeFu.js";import{p as be,u as _e,a as he}from"./Dx8YmcWO.js";import{e as ge}from"./Dm_cnno6.js";import"./DMaVXbyd.js";const ke=S("/icons/icon-location-pin.svg"),N=S("/icons/icon-calendar.svg"),Ce={class:"select-ctr"},ye={class:"mobile-ctr mobile"},j="dd/MM/yyyy",Me={__name:"SelectCtr",props:{locations:{type:Array,default:[]},errors:{type:Object,default:{}}},setup(h,{expose:l}){const u=h,g=c(""),d=c(null),s=c("10:00"),k=new Date,p=c(null),y=c(null),v=()=>{p.value&&p.value.closeMenu(),y.value&&y.value.closeMenu()};R(()=>{document.addEventListener("customselect:open",v)}),Q(()=>{document.removeEventListener("customselect:open",v)});const f=()=>{p.value&&(document.dispatchEvent(new CustomEvent("customselect:open",{detail:"datepicker"})),p.value.openMenu())},x=()=>{y.value&&(document.dispatchEvent(new CustomEvent("customselect:open",{detail:"datepicker"})),y.value.openMenu())},V=u.locations.map($=>({value:$.id,label:$.title})),b=[{value:"00:00",label:"12:00 AM"},{value:"00:30",label:"12:30 AM"},{value:"01:00",label:"1:00 AM"},{value:"01:30",label:"1:30 AM"},{value:"02:00",label:"2:00 AM"},{value:"02:30",label:"2:30 AM"},{value:"03:00",label:"3:00 AM"},{value:"03:30",label:"3:30 AM"},{value:"04:00",label:"4:00 AM"},{value:"04:30",label:"4:30 AM"},{value:"05:00",label:"5:00 AM"},{value:"05:30",label:"5:30 AM"},{value:"06:00",label:"6:00 AM"},{value:"06:30",label:"6:30 AM"},{value:"07:00",label:"7:00 AM"},{value:"07:30",label:"7:30 AM"},{value:"08:00",label:"8:00 AM"},{value:"08:30",label:"8:30 AM"},{value:"09:00",label:"9:00 AM"},{value:"09:30",label:"9:30 AM"},{value:"10:00",label:"10:00 AM"},{value:"10:30",label:"10:30 AM"},{value:"11:00",label:"11:00 AM"},{value:"11:30",label:"11:30 AM"},{value:"12:00",label:"12:00 PM"},{value:"12:30",label:"12:30 PM"},{value:"13:00",label:"1:00 PM"},{value:"13:30",label:"1:30 PM"},{value:"14:00",label:"2:00 PM"},{value:"14:30",label:"2:30 PM"},{value:"15:00",label:"3:00 PM"},{value:"15:30",label:"3:30 PM"},{value:"16:00",label:"4:00 PM"},{value:"16:30",label:"4:30 PM"},{value:"17:00",label:"5:00 PM"},{value:"17:30",label:"5:30 PM"},{value:"18:00",label:"6:00 PM"},{value:"18:30",label:"6:30 PM"},{value:"19:00",label:"7:00 PM"},{value:"19:30",label:"7:30 PM"},{value:"20:00",label:"8:00 PM"},{value:"20:30",label:"8:30 PM"},{value:"21:00",label:"9:00 PM"},{value:"21:30",label:"9:30 PM"},{value:"22:00",label:"10:00 PM"},{value:"22:30",label:"10:30 PM"},{value:"23:00",label:"11:00 PM"},{value:"23:30",label:"11:30 PM"}];return l({selectedLocation:g,selectedDate:d,selectedTime:s}),($,m)=>{const F=W;return a(),i("div",Ce,[e("div",{class:M(["select-item location",{error:h.errors.location}])},[m[5]||(m[5]=e("img",{src:ke,alt:"Location",class:"icon",width:"15",height:"19"},null,-1)),r(F,{modelValue:g.value,"onUpdate:modelValue":m[0]||(m[0]=P=>g.value=P),options:o(V),placeholder:"Select a Location"},null,8,["modelValue","options"])],2),e("div",{class:M(["select-item date desktop",{error:h.errors.date}]),onClick:f},[r(o(O),{ref_key:"datePickerDesktop",ref:p,modelValue:d.value,"onUpdate:modelValue":m[1]||(m[1]=P=>d.value=P),format:j,placeholder:"Date",class:"date-picker",clearable:!1,"min-date":o(k),"enable-time-picker":!1,"hide-offset-dates":!0,"auto-apply":""},null,8,["modelValue","min-date"]),m[6]||(m[6]=e("img",{src:N,alt:"Calendar",class:"icon",width:"22",height:"22"},null,-1))],2),e("div",{class:M(["select-item time desktop",{error:h.errors.time}])},[r(F,{modelValue:s.value,"onUpdate:modelValue":m[2]||(m[2]=P=>s.value=P),options:b,placeholder:"Time","max-height":"250px"},null,8,["modelValue"])],2),e("div",ye,[e("div",{class:M(["select-item date",{error:h.errors.time}]),onClick:x},[r(o(O),{ref_key:"datePickerMobile",ref:y,modelValue:d.value,"onUpdate:modelValue":m[3]||(m[3]=P=>d.value=P),format:j,placeholder:"Date",class:"date-picker",clearable:!1,"min-date":o(k),"enable-time-picker":!1,"hide-offset-dates":!0,"auto-apply":""},null,8,["modelValue","min-date"]),m[7]||(m[7]=e("img",{src:N,alt:"Calendar",class:"icon",width:"22",height:"22"},null,-1))],2),e("div",{class:M(["select-item time",{error:h.errors.time}])},[r(F,{modelValue:s.value,"onUpdate:modelValue":m[4]||(m[4]=P=>s.value=P),options:b,placeholder:"Time","max-height":"250px"},null,8,["modelValue"])],2)])])}}},H=S("/images/logo.svg"),we=S("/icons/close.svg"),Pe=S("/images/logo-black.svg"),xe=H,De={class:"top"},Ve={class:"container"},Ae={class:"row"},$e={class:"col-12 d-flex flex-row justify-content-end align-items-center"}
1,Fe={class:"desktop-links d-flex"},Le={class:"links"},Ee=["href"],Se={class:"links nz"},Te=["href"],Ie=["href"],Ye={class:"mobile-contact-info"},Be={class:"mobile-phone-number main"},He={class:"mobile-phone-number sub"},Ue={class:"center"},ze={class:"container"},Ne={class:"row justify-content-between align-items-center"},Re={class:"col-6 col-md-9 d-flex justify-content-end align-items-center"},Ze={class:"desktop-nav"},Oe={class:"mobile-nav-content"},je={class:"mobile-info"},qe=["href"],Ke=["href"],We={class:"mobile-nav-section"},Qe={class:"mobile-nav-section mobile-additional-links"},Ge={class:"mobile-nav-section mobile-social"},Xe={class:"social-icons"},Je=["href"],el=["href"],ll=["href"],tl={class:"container"},ol={class:"row"},al={class:"pickup collapsed"},sl={class:"pickup"},nl={class:"return"},il={class:"group"},rl={class:"age"},cl={class:"promo-code"},ul={__name:"Header",props:{data:{type:Object,required:!0}},setup(h){const l=c(!1),u=c(!1),g=c("9"),d=c(""),s=c(null),k=c(null),p=c(null);let y=c(!1),v=c({location:!1,date:!1,time:!1}),f=c({location:!1,date:!1,time:!1}),x=c(!1),V=c(!1);const b=h,$=()=>{l.value=!l.value,l.value?document.body.classList.add("mobile-nav-open"):document.body.classList.remove("mobile-nav-open")},m=()=>{l.value=!1,document.body.classList.remove("mobile-nav-open")},F=()=>{u.value=!u.value},P=()=>{u.value=!u.value},ee=()=>{k.value.selectedLocation===""?v.value.location=!0:v.value.location=!1,k.value.selectedDate===null?v.value.date=!0:v.value.date=!1,k.value.selectedTime===""?v.value.time=!0:v.value.time=!1,p.value.selectedLocation===""?f.value.location=!0:f.value.location=!1,p.value.selectedDate===null?f.value.date=!0:f.value.date=!1,p.value.selectedTime===""?f.value.time=!0:f.value.time=!1,g.value===""?x.value=!0:x.value=!1,d.value===""?V.value=!0:V.value=!1,document.getElementById("form-Pickup-Location").value=k.value.selectedLocation,document.getElementById("form-Dropoff-Location").value=p.value.selectedLocation,document.getElementById("form-Pickup-Date").value=T(k.value.selectedDate).format("DD/MM/YYYY"),document.getElementById("form-Pickup-Time").value=k.value.selectedTime,document.getElementById("form-Dropoff-Date").value=T(p.value.selectedDate).format("DD/MM/YYYY"),document.getElementById("form-Dropoff-Time").value=p.value.selectedTime,document.getElementById("form-Minimum-Age").value=g.value,document.getElementById("form-Promo-Code").value=d.value;try{J("book_now_handoff",{pickup_location:k.value.selectedLocation,dropoff_location:p.value.selectedLocation,pickup_date:T(k.value.selectedDate).format("YYYY-MM-DD"),dropoff_date:T(p.value.selectedDate).format("YYYY-MM-DD"),minimum_age:g.value,promo_code:d.value||void 0})}catch{}document.getElementById("frmStep1").submit()},Z=()=>{!y.value&&window.scrollY>160?y.value=!0:y.value&&window.scrollY<120&&(y.value=!1)};R(()=>{window.addEventListener("scroll",Z,{passive:!0})}),Q(()=>{window.removeEventListener("scroll",Z)});const n={facebook:b.data.facebook,linkedin:b.data.linkedin,instagram:b.data.instagram,international:{label:"Call from anywhere",number:b.data.phone},bookingLink:b.data.manage_booking_url,nz:{label:"Free Call NZ",number:b.data.freephone},links:[{label:"Vehicles",url:"/vehicles"},{label:"Locations",url:"/locations"},{label:"About",url:"/about"},{label:"FAQs",url:"/faqs"},{label:"Travel Guide",url:"/travel-guide"},{label:"Contact",url:"/contact"}],mobileLinks:[{label:"Manage Your Booking",url:b.data.manage_booking_url},{label:"Terms & Conditions",url:"/terms-and-conditions"},{label:"Privacy Policy",url:"/privacy-policy"}]},le=[{value:"4",label:"21"},{value:"5",label:"22"},{value:"6",label:"23"},{value:"7",label:"24"},{value:"8",label:"25"},{value:"9",label:"26+"}];return(te,t)=>{const L=q,oe=re,ae=ce,se=ue,U=Me,ne=W,ie=K;return a(),i(E,null,[e("header",null,[e("div",De,[e("div",Ve,[e("div",Ae,[e("div",$e,[e("div",Fe,[e("p",Le,[D(_(n.international.label)+" ",1),e("a",{href:"tel:"+n.international.number},_(n.international.number),9,Ee)]),e("p",Se,[D(_(n.nz.label)+" ",1),e("a",{href:"tel:"+n.nz.number},_(n.nz.number),9,Te)]),e("a",{href:n.bookingLink,target:"_blank",rel:"noopener noreferrer",class:"links"},t[4]||(t[4]=[D(" Manage Your Booking "),e("img",{class:"icon icon--white",src:N,"aria-hidden":"true",width:"22",height:"22"},null,-1)]),8,Ie)]),e("div",Ye,[e("div",Be,_(n.nz.number),1),e("div",He,_(n.international.label)+" "+_(n.international.number),1)])])])])]),e("div",Ue,[e("div",ze,[e("div",Ne,[r(L,{to:"/",class:"logo"},{default:A(()=>t[5]||(t[5]=[e("img",{src:H,alt:"Samuels Logo",srcset:xe,width:"170",height:"67"},null,-1)])),_:1}),e("div",Re,[e("nav",Ze,[(a(!0),i(E,null,I(n.links,C=>(a(),Y(L,{key:C.label,to:C.url,class:"link"},{default:A(()=>[D(_(C.label),1)]),_:2},1032,["to"]))),128))]),e("div",{class:"mobile-menu-toggle",onClick:$},[e("span",{class:M(["burger-line",{active:o(l)}])},null,2),e("span",{class:M(["burger-line",{active:o(l)}])},null,2),e("span",{class:M(["burger-line",{active:o(l)}])},null,2)])])])])]),e("div",{class:M(["mobile-nav-overlay",{active:o(l)}]),onClick:m},[e("nav",{class:"mobile-nav",onClick:t[0]||(t[0]=de(()=>{},["stop"]))},[e("div",Oe,[e("img",{src:we,alt:"Close",class:"close",width:"22",height:"22",onClick:$}),e("div",je,[e("a",{href:"tel:"+n.nz.number,class:"nznumber"},_(n.nz.number),9,qe),t[6]||(t[6]=e("br",null,null,-1)),D(" "+_(n.international.label)+": ",1),e("a",{href:"tel:"+n.international.number,class:"intnumber"},_(n.international.number),9,Ke),t[7]||(t[7]=e("br",null,null,-1))]),r(L,{to:"/"},{default:A(()=>t[8]||(t[8]=[e("img",{src:Pe,alt:"Samuels Vehicle Hire",class:"mobile-logo",width:"132",height:"52"},null,-1)])),_:1}),e("div",We,[(a(!0),i(E,null,I(n.links,C=>(a(),Y(L,{key:C.label,to:C.url,class:"mobile-nav-link",onClick:m},{default:A(()=>[D(_(C.label),1)]),_:2},1032,["to"]))),128))]),e("div",Qe,[(a(!0),i(E,null,I(n.mobileLinks,C=>(a(),Y(L,{key:C.label,to:C.url,class:"mobile-nav-link",onClick:m},{default:A(()=>[D(_(C.label),1)]),_:2},1032,["to"]))),128))]),e("div",Ge,[e("div",Xe,[n.facebook!==null?(a(),i("a",{key:0,href:n.facebook,class:"social-icon","aria-label":"Facebook",target:"_blank",rel:"noopener noreferrer"},[r(oe)],8,Je)):w("",!0),n.facebook!==null?(a(),i("a",{key:1,href:n.linkedin,class:"social-icon","aria-label":"LinkedIn",target:"_blank",rel:"noopener noreferrer"},[r(ae)],8,el)):w("",!0),n.facebook!==null?(a(),i("a",{key:2,href:n.instagram,class:"social-icon","aria-label":"Instagram",target:"_blank",rel:"noopener noreferrer"},[r(se)],8,ll)):w("",!0)])])])])],2)]),e("div",{class:M(["header-bottom-sticky",{small:o(y)}])},[e("div",tl,[e("div",ol,[e("div",{class:M(["col-12 book-ctr",{"mobile-expanded":o(u)}])},[o(u)?w("",!0):(a(),i("div",{key:0,class:"mobile-collapsed-view",onClick:F},[e("div",al,[t[9]||(t[9]=e("span",{class:"label"},"Pick Up From:",-1)),r(U,{ref_key:"mobilePickupRef",ref:s},null,512)])])),e("div",{class:M(["full-form",{"mobile-hidden":!o(u)}])},[o(u)?(a(),i("button",{key:0,class:"mobile-close-btn",onClick:P,"aria-label":"Close booking form"}," Ã ")):w("",!0),e("div",sl,[t[10]||(t[10]=e("span",{class:"label"},"Pick Up From:",-1)),r(U,{ref_key:"fullPickupRef",ref:k,locations:h.data.location,errors:o(v)},null,8,["locations","errors"])]),e("div",nl,[t[11]||(t[11]=e("span",{class:"label"},"Return To:",-1)),r(U,{ref_key:"fullDropoffRef",ref:p,locations:h.data.location,errors:o(f)},null,8,["locations","errors"])]),e("div",il,[e("div",rl,[t[12]||(t[12]=e("span",{class:"label"},"Age:",-1)),e("div",{class:M(["select-item",{error:o(x)}])},[r(ne,{modelValue:o(g),"onUpdate:modelValue":t[1]||(t[1]=C=>z(g)?g.value=C:null),options:le,placeholder:"Age"},null,8,["modelValue"])],2)]),e("div",cl,[t[13]||(t[13]=e("span",{class:"label"},"Promo Code:",-1)),e("div",{class:M(["select-item",{error:o(V)}])},[G(e("input",{type:"text","onUpdate:modelValue":t[2]||(t[2]=C=>z(d)?d.value=C:null),class:"input",placeholder:"Enter Code"},null,512),[[X,o(d)]])],2)])]),r(ie,{color:"gold",label:"Find Vehicle",external:!0,arrow:!0,size:"small",onClick:t[3]||(t[3]=C=>ee())}),t[14]||(t[14]=e("form",{id:"frmStep1",name:"frmStep1",method:"post",action:"https://web.rentalcarmanager.com/API32/Samuels-Vehicle-Hire/step2#results"},[e("input",{type:"hidden",id:"form-Pickup-Location",name:"form-Pickup-Location",value:""}),e("input",{type:"hidden",id:"form-Dropoff-Location",name:"form-Dropoff-Location",value:""}),e("input",{type:"hidden",id:"form-Pickup-Date",name:"form-Pickup-Date",value:""}),e("input",{type:"hidden",id:"form-Pickup-Time",name:"form-Pickup-Time",value:""}),e("input",{type:"hidden",id:"form-Dropoff-Date",name:"form-Dropoff-Date",value:""}),e("input",{type:"hidden",id:"form-Dropoff-Time",name:"form-Dropoff-Time",value:""}),e("input",{type:"hidden",id:"form-Promo-Code",name:"form-Promo-Code",value:""}),e("input",{type:"hidden",id:"form-Minimum-Age",name:"form-Minimum-Age",value:""}),e("input",{type:"hidden",id:"form-Category-Type",name:"form-Category-Type",value:"
10"})],-1))],2)],2)])])],2)],64)}}},dl={},ml={width:"35",height:"35",viewBox:"0 0 35 35",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function vl(h,l){return a(),i("svg",ml,l[0]||(l[0]=[e("rect",{x:"1",y:"1",width:"33",height:"33",stroke:"#F7F5F2","stroke-width":"2"},null,-1),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.1699 26.6304V17.8793H13.3154V14.8639H15.1699V13.0536C15.1699 10.5939 16.2164 9.13037 19.1916 9.13037H21.668V12.1468H20.1203C18.962 12.1468 18.8855 12.5682 18.8855 13.3546L18.8804 14.8639H21.685L21.3567 17.8793H18.8804V26.6304H15.1699Z",fill:"#F7F5F2"},null,-1)]))}const fl=B(dl,[["render",vl]]),pl={},bl={width:"35",height:"35",viewBox:"0 0 35 35",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function _l(h,l){return a(),i("svg",bl,l[0]||(l[0]=[e("rect",{x:"1",y:"1",width:"33",height:"33",stroke:"#F7F5F2","stroke-width":"2"},null,-1),e("path",{d:"M17.0007 15.5001C16.3376 15.5001 15.7017 15.7635 15.2329 16.2323C14.7641 16.7012 14.5007 17.337 14.5007 18.0001C14.5007 18.6631 14.7641 19.299 15.2329 19.7678C15.7017 20.2367 16.3376 20.5001 17.0007 20.5001C17.6637 20.5001 18.2996 20.2367 18.7684 19.7678C19.2373 19.299 19.5007 18.6631 19.5007 18.0001C19.5007 17.337 19.2373 16.7012 18.7684 16.2323C18.2996 15.7635 17.6637 15.5001 17.0007 15.5001ZM17.0007 13.8334C18.1057 13.8334 19.1655 14.2724 19.9469 15.0538C20.7283 15.8352 21.1673 16.895 21.1673 18.0001C21.1673 19.1051 20.7283 20.165 19.9469 20.9464C19.1655 21.7278 18.1057 22.1667 17.0007 22.1667C15.8956 22.1667 14.8358 21.7278 14.0544 20.9464C13.273 20.165 12.834 19.1051 12.834 18.0001C12.834 16.895 13.273 15.8352 14.0544 15.0538C14.8358 14.2724 15.8956 13.8334 17.0007 13.8334ZM22.4173 13.6251C22.4173 13.9013 22.3076 14.1663 22.1122 14.3616C21.9169 14.557 21.6519 14.6667 21.3757 14.6667C21.0994 14.6667 20.8344 14.557 20.6391 14.3616C20.4437 14.1663 20.334 13.9013 20.334 13.6251C20.334 13.3488 20.4437 13.0839 20.6391 12.8885C20.8344 12.6932 21.0994 12.5834 21.3757 12.5834C21.6519 12.5834 21.9169 12.6932 22.1122 12.8885C22.3076 13.0839 22.4173 13.3488 22.4173 13.6251ZM17.0007 11.3334C14.939 11.3334 14.6023 11.3392 13.6432 11.3817C12.9898 11.4126 12.5515 11.5001 12.1448 11.6584C11.8047 11.7837 11.4971 11.9839 11.2448 12.2442C10.9842 12.4964 10.7837 12.804 10.6582 13.1442C10.4998 13.5526 10.4123 13.9901 10.3823 14.6426C10.339 15.5626 10.3332 15.8842 10.3332 18.0001C10.3332 20.0626 10.339 20.3984 10.3815 21.3576C10.4123 22.0101 10.4998 22.4492 10.6573 22.8551C10.799 23.2176 10.9657 23.4784 11.2423 23.7551C11.5232 24.0351 11.784 24.2026 12.1423 24.3409C12.554 24.5001 12.9923 24.5884 13.6423 24.6184C14.5623 24.6617 14.884 24.6667 16.9998 24.6667C19.0623 24.6667 19.3982 24.6609 20.3573 24.6184C21.009 24.5876 21.4473 24.5001 21.8548 24.3426C22.195 24.2173 22.5026 24.0171 22.7548 23.7567C23.0357 23.4767 23.2032 23.2159 23.3415 22.8567C23.4998 22.4467 23.5882 22.0084 23.6182 21.3567C23.6615 20.4376 23.6665 20.1151 23.6665 18.0001C23.6665 15.9384 23.6607 15.6017 23.6182 14.6426C23.5873 13.9909 23.499 13.5509 23.3415 13.1442C23.2162 12.8041 23.016 12.4965 22.7557 12.2442C22.5035 11.9836 22.1959 11.7831 21.8557 11.6576C21.4473 11.4992 21.009 11.4117 20.3573 11.3817C19.4382 11.3384 19.1165 11.3334 16.9998 11.3334M16.9998 9.66675C19.264 9.66675 19.5465 9.67508 20.4357 9.71675C21.3223 9.75841 21.9273 9.89758 22.4582 10.1042C23.0082 10.3159 23.4715 10.6026 23.9348 11.0651C24.3587 11.4815 24.6867 11.9855 24.8957 12.5417C25.1015 13.0726 25.2415 13.6776 25.2832 14.5651C25.3223 15.4534 25.3332 15.7359 25.3332 18.0001C25.3332 20.2642 25.3248 20.5467 25.2832 21.4351C25.2415 22.3234 25.1015 22.9267 24.8957 23.4584C24.6867 24.0147 24.3587 24.5186 23.9348 24.9351C23.5184 25.359 23.0144 25.6869 22.4582 25.8959C21.9273 26.1017 21.3223 26.2417 20.4357 26.2834C19.5465 26.3226 19.264 26.3334 16.9998 26.3334C14.7357 26.3334 14.4532 26.3251 13.564 26.2834C12.6773 26.2417 12.0732 26.1017 11.5415 25.8959C10.9852 25.6869 10.4813 25.359
110.0648 24.9351C9.64093 24.5186 9.31302 24.0147 9.104 23.4584C8.89734 22.9276 8.75817 22.3226 8.7165 21.4351C8.6765 20.5467 8.6665 20.2642 8.6665 18.0001C8.6665 15.7359 8.67484 15.4534 8.7165 14.5651C8.75817 13.6767 8.89734 13.0734 9.104 12.5417C9.31302 11.9855 9.64093 11.4815 10.0648 11.0651C10.4813 10.6412 10.9852 10.3133 11.5415 10.1042C12.0723 9.89758 12.6765 9.75841 13.564 9.71675C14.454 9.67758 14.7365 9.66675 17.0007 9.66675",fill:"#F7F5F2"},null,-1)]))}const hl=B(pl,[["render",_l]]),gl={},kl={width:"35",height:"35",viewBox:"0 0 35 35",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Cl(h,l){return a(),i("svg",kl,l[0]||(l[0]=[me('<rect x="1" y="1" width="33" height="33" stroke="#F7F5F2" stroke-width="2"></rect><g clip-path="url(#clip0_647_2823)"><path fill-rule="evenodd" clip-rule="evenodd" d="M26 26H22.6V20.0508C22.6 18.4188 21.8801 17.5083 20.5889 17.5083C19.1839 17.5083 18.35 18.4571 18.35 20.0508V26H14.95V14.95H18.35V16.1926C18.35 16.1926 19.4167 14.3208 21.8205 14.3208C24.2252 14.3208 26 15.7882 26 18.8244V26ZM11.0757 13.1828C9.92905 13.1828 9 12.2461 9 11.091C9 9.93667 9.92905 9 11.0757 9C12.2215 9 13.1505 9.93667 13.1505 11.091C13.1514 12.2461 12.2215 13.1828 11.0757 13.1828ZM9 26H13.25V14.95H9V26Z" fill="#F7F5F2"></path></g><defs><clipPath id="clip0_647_2823"><rect width="17" height="17" fill="white" transform="translate(9 9)"></rect></clipPath></defs>',3)]))}const yl=B(gl,[["render",Cl]]),Ml={},wl={width:"35",height:"35",viewBox:"0 0 35 35",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Pl(h,l){return a(),i("svg",wl,l[0]||(l[0]=[e("rect",{x:"1",y:"1",width:"33",height:"33",stroke:"#F7F5F2","stroke-width":"2"},null,-1),e("path",{d:"M27.4547 13.2335C27.2275 12.3835 26.558 11.7139 25.7079 11.4867C24.1673 11.0737 17.9888 11.0737 17.9888 11.0737C17.9888 11.0737 11.8103 11.0737 10.2696 11.4867C9.41959 11.7139 8.75002 12.3835 8.5228 13.2335C8.10986 14.7741 8.10986 17.989 8.10986 17.989C8.10986 17.989 8.10986 21.2038 8.5228 22.7445C8.75002 23.5945 9.41959 24.264 10.2696 24.4913C11.8103 24.9042 17.9888 24.9042 17.9888 24.9042C17.9888 24.9042 24.1673 24.9042 25.7079 24.4913C26.558 24.264 27.2275 23.5945 27.4547 22.7445C27.8677 21.2038 27.8677 17.989 27.8677 17.989C27.8677 17.989 27.8677 14.7741 27.4547 13.2335ZM16.013 20.9526V15.0253L21.1461 17.989L16.013 20.9526Z",fill:"#F7F5F2"},null,-1)]))}const xl=B(Ml,[["render",Pl]]),Dl=H,Vl={class:"container"},Al={class:"row"},$l={class:"col-12 col-md-6 left d-flex flex-column"},Fl=["href"],Ll={class:"social-ctr"},El=["href"],Sl=["href"],Tl=["href"],Il=["href"],Yl={class:"col-12 col-md-6 right d-flex flex-column"},Bl={class:"newsletter-ctr"},Hl={class:"title"},Ul={class:"leadcopy"},zl={key:0,class:"form-ctr"},Nl={key:1,class:"success"},Rl={key:2,class:"error"},Zl={class:"row bottom"},Ol={class:"col-12"},jl={class:"links-ctr"},ql={class:"copyright"},Kl={__name:"Footer",props:{data:{type:Object,required:!0}},setup(h){const l=h;let u=c(""),g=c(!1),d=c(!1);const s={number:l.data.freephone,newsletter:{title:l.data.subscribe,leadcopy:l.data.subscribe_desc},links:[{title:"Terms & Conditions",link:"/terms-and-conditions"},{title:"Privacy Policy",link:"/privacy-policy"}],facebook:l.data.facebook,linkedin:l.data.linkedin,instagram:l.data.instagram,youtube:l.data.youtube},k=new Date().getFullYear();function p(v){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(v)}const y=async()=>{if(u.value===""||!p(u.value))g.value=!0,d.value=!1;else try{const v=await new Promise((f,x)=>{grecaptcha.ready(()=>{grecaptcha.execute("6LcP36wsAAAAAPwKKjcKFcxlzts36uhqS8v30Xy7",{action:"subscribe"}).then(f).catch(x)})});g.value=!1,d.value=!0,be("subscribe",{email:u.value,token:v});try{J("sign_up",{method:"newsletter"})}catch{}}catch(v){console.error("reCAPTCHA error:",v)}};return(v,f)=>{const x=q,V=K;return a(),i("footer",null,[e("div",Vl,[e("div",Al,[e("div",$l,[r(x,{to:"/"},{default:A(()=>f[2]||(f[2]=[e("img",{class:"logo",src:H,alt:"Samuels Vehicle Hire",srcset:Dl,width:"170",height:"67"},null,-1)])),_:1}),e("a",{href:"tel:"+s.number,class:"phone"},_(s.number),9,Fl),e("div",Ll,[s.facebook!==null?(a(),i("a",{key:0,href:s.facebook,target:"_blank",rel:"noopener noreferrer"},[r(fl)],8,El)):w("",!0),s.linkedin!==null?(a(),i("a",{key:1,href:s.linkedin,target:"_blank",rel:"noopener noreferrer"},[r(yl)],8,Sl)):w("",!0),s.instagram!==null?(a(),i("a",{key:2,href:s.instagram,target:"_blank",rel:"noopener noreferrer"},[r(hl)],8,Tl)):w("",!0),s.youtube?(a(),i("a",{key:3,href:s.youtube,target:"_blank",rel:"noopener noreferrer"}
1,[r(xl)],8,Il)):w("",!0)])]),e("div",Yl,[e("div",Bl,[e("p",Hl,_(s.newsletter.title),1),e("p",Ul,_(s.newsletter.leadcopy),1),o(d)?w("",!0):(a(),i("div",zl,[G(e("input",{type:"email","onUpdate:modelValue":f[0]||(f[0]=b=>z(u)?u.value=b:u=b),placeholder:"Enter your email address"},null,512),[[X,o(u)]]),r(V,{color:"gold",arrow:!1,label:"Sign Up",size:"large",onClick:f[1]||(f[1]=b=>y())})])),o(d)?(a(),i("div",Nl," Thank you for signing up for our newsletter. ")):w("",!0),o(g)?(a(),i("p",Rl,"Please enter correct email address")):w("",!0)])])]),e("div",Zl,[e("div",Ol,[e("div",jl,[(a(!0),i(E,null,I(s.links,b=>(a(),Y(x,{key:b.title,to:b.link},{default:A(()=>[D(_(b.title),1)]),_:2},1032,["to"]))),128))]),e("div",ql,[e("p",null,"©"+_(o(k))+" Samuels Vehicle Hire",1)])])])])])}}},Wl={role:"main"},ot={__name:"default",async setup(h){let l,u;const g=c(!1),d=c(!1),{data:s}=([l,u]=ve(async()=>_e("settingData",async()=>await he())),l=await l,u(),l);return fe("settingData",s.value),ge(s.value),R(()=>{navigator.platform.indexOf("Mac")>-1?g.value=!0:navigator.platform.indexOf("Win")>-1&&(d.value=!0)}),(k,p)=>{const y=ul,v=Kl;return a(),i("div",{class:M({mac:o(g),"windows-os":o(d)})},[r(y,{data:o(s)},null,8,["data"]),e("main",Wl,[pe(k.$slots,"default")]),r(v,{data:o(s)},null,8,["data"])],2)}}};export{ot as default};
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.