PageSourceSearch

https://rolzo.com/_next/static/chunks/6409.f48a0fa8bba3b4f1.js

js rolzo.com collected 2026-10-01 23:57:04 UTC 4,272 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6409],{36409:(e,t,a)=>{a.r(t),a.d(t,{default:()=>x});var o=a(95155),r=a(27043),l=a(12115),i=a(62177),c=a(40496),s=a(88469),n=a(20473),d=a(11784),p=a(23464),h=a(91027),m=a.n(h),f=a(30832),u=a.n(f);u().extend(m());let x=()=>{var e,t;let a=(0,r.useTranslations)("globalSearch"),h=(0,l.useMemo)(()=>u().utc().add(1,"day").startOf("day").format(),[]),m=(0,l.useCallback)(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:15,a=t-e.get("minute")%t;return e.add(a,"minute")},[]),f=(0,l.useRef)(),{control:x,handleSubmit:g,setValue:b,watch:k,formState:{errors:w},clearErrors:j}=(0,i.mN)({defaultValues:{pickUpDate:h,selectedTime:m(u()()).format("HH:mm"),pickUpLocation:"",dropOffLocation:""},mode:"onChange"}),v=async e=>{if(e)try{var t,a,o;if(null==(t=window)?void 0:t.grecaptcha){await new Promise(e=>window.grecaptcha.ready(e));let t=await window.grecaptcha.execute("6LfzH3UqAAAAAKNWODz20HbPxKK_lPQ6dYDMhY9S",{action:"submit"}),r={...e,"g-recaptcha-response":t,active:!0,fromGoogle:new URLSearchParams(window.location.search).has("gclid")},l=window.location.origin,i=await p.A.post("".concat("https://business.rolzo.com/api/api/v1/","search/b2c"),{values:r}),c="https://dotcom-staging.rolzo.com"!==l&&"http://localhost:8080"!==l?"https://book.rolzo.com/book/airport-transfer".concat((null==(a=i.data)?void 0:a.data.searchId)?"?searchId=".concat(i.data.data.searchId):""):"https://staging.rolzo.com/book/airport-transfer".concat((null==(o=i.data)?void 0:o.data.searchId)?"?searchId=".concat(i.data.data.searchId):"");window.location.href=c}else throw Error("reCAPTCHA is not available.")}catch(e){console.error("Error handling form submission:",e)}};return(0,o.jsx)("form",{onSubmit:g(v),children:(0,o.jsxs)("div",{className:"fields-container",children:[(0,o.jsxs)("div",{ref:f,className:"field",children:[(0,o.jsx)("label",{htmlFor:"pickUpDate",children:a("label.pickUpDate")}),(0,o.jsx)(i.xI,{control:x,id:"pickUpDate",name:"pickUpDate",render:e=>{let{field:{onChange:t,value:a}}=e;return(0,o.jsx)(c.A,{onChange:t,selected:a,fieldRef:f})}})]}),(0,o.jsxs)("div",{className:"field",children:[(0,o.jsx)("label",{htmlFor:"selectedTime",className:"text-rolzo-dark-grey uppercase text-[10px]",children:a("label.selectedTime")}),(0,o.jsx)(i.xI,{name:"selectedTime",id:"selectedTime",control:x,rules:{required:"Pickup time is required"},render:e=>{let{field:{onChange:t,value:a}}=e;return(0,o.jsx)(s.A,{initialSelected:m(u()()).format("HH:mm"),onChange:t,selected:a})}})]}),(0,o.jsxs)("div",{className:"field",children:[(0,o.jsx)("label",{htmlFor:"pickUpLocation",className:"text-rolzo-dark-grey uppercase text-[10px]",children:a("label.pickUpLocation")}),(0,o.jsx)(i.xI,{name:"pickUpLocation",id:"pickUpLocation",control:x,rules:{required:a("errorText.pickUpLocation")},render:e=>{let{field:{onChange:t,value:r,name:l}}=e;return(0,o.jsx)(n.A,{watch:k,setValue:b,onChange:t,selected:r,name:l,t:a,clearErrors:j})}}),(0,o.jsx)("p",{className:"text-[#d32f2f] transition-all duration-500 ease-in-out ".concat(w.pickUpLocation?"translate-y-[7px] opacity-100":"translate-y-0 opacity-0","  right-0 bottom-[-7px] font-light absolute text-[10.5px]"),children:null==(e=w.pickUpLocation)?void 0:e.message})]}),(0,o.jsxs)("div",{className:"field",children:[(0,o.jsx)("label",{htmlFor:"dropOffLocation",className:"text-rolzo-dark-grey uppercase text-[10px]",children:a("label.dropOffLocation")}),(0,o.jsx)(i.xI,{name:"dropOffLocation",id:" dropOffLocation ",control:x,rules:{required:a("errorText.dropOffLocation")},render:e=>{let{field:{onChange:t,value:r,name:l}}=e;return(0,o.jsx)(n.A,{setValue:b,onChange:t,selected:r,name:l,t:a,clearErrors:j})}}),(0,o.jsx)("p",{className:"text-[#d32f2f] transition-all duration-500 ease-in-out ".concat(w.dropOffLocation?"translate-y-[7px] opacity-100":"translate-y-0 opacity-0","  right-0 bottom-[-7px] font-light absolute text-[10.5px]"),children:null==(t=w.dropOffLocation)?void 0:t.message})]}),(0,o.jsx)(d.default,{type:"submitBtn",className:"py-[10px] leading-[1.5] font-light px-12 rounded-[20px] text-[15px] bg-rolzo-gold text-white w-full",hasGoldBackgroun
1d:!0,isShowRightArrow:!1,text:"Search"})]})})}}}]);
2//# sourceMappingURL=6409.f48a0fa8bba3b4f1.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.