PageSourceSearch

https://travzcarrental.com/_next/static/chunks/app/contact/page-6a03258607f33a53.js

js travzcarrental.com collected 2026-10-07 00:42:44 UTC 9,574 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[977],{2045:(e,t,r)=>{Promise.resolve().then(r.t.bind(r,2619,23)),Promise.resolve().then(r.bind(r,4329))},2761:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let a=r(5125).A.create({baseURL:"https://admin.travzcarrental.com/api"}),s=(e,t)=>{let r=t.match(new RegExp("".concat(e,"=([^;]+)")));return null==r?void 0:r[1]};a.interceptors.request.use(async e=>{e.headers=e.headers||{},e.headers.Accept="application/json";let t="en",r="",a="";{let n=document.cookie,i=s("token",n),o=s("device_token",n);t=s("NEXT_LOCALE",n)||(()=>{let e=window.location.pathname;if(e){let t=e.split("/");if(t[1]&&["en","ar","fr","es","de","it","pl"].includes(t[1]))return t[1]}return"en"})(),r=s("country",n)||"",a=s("currency",n)||"",i&&(e.headers.Authorization="Bearer ".concat(i)),o&&(e.headers.DeviceToken=o)}return e.headers.language=t,r&&(e.headers["X-Country"]=r),a&&(e.headers["X-Currency"]=a),e.data instanceof FormData?e.headers["Content-Type"]="multipart/form-data":e.headers["Content-Type"]="application/json",e},e=>Promise.reject(e)),a.interceptors.response.use(e=>e,e=>Promise.reject(e));let n=a},3323:(e,t,r)=>{"use strict";r.d(t,{NR:()=>i,hC:()=>l,xb:()=>o,xv:()=>n});var a=r(9344);r(2761);let s="https://admin.travzcarrental.com/api";async function n(e,t){try{let r=await fetch(s+a.A.HOME_PAGE,{method:"GET",headers:{"Content-Type":"application/json","X-Country":e,"X-Currency":t},next:{revalidate:60}});if(!r.ok)throw Error("HTTP error! status: ".concat(r.status));return await r.json()}catch(e){return{error_code:1,message:"Failed to fetch home page",data:null}}}async function i(e){try{let t=await fetch(s+a.A.CONTACT_US_SUBMIT,{method:"POST",headers:{"Content-Type":"application/json",language:"en"},body:JSON.stringify(e)});if(!t.ok)throw Error("HTTP error! status: ".concat(t.status));return await t.json()}catch(e){return{error_code:1,message:"Failed to fetch contact us submit",data:null}}}async function o(){try{let e=await fetch(s+a.A.COUNTRIES,{method:"GET",headers:{"Content-Type":"application/json",language:"en"},cache:"no-store"});if(!e.ok)throw Error("HTTP error! status: ".concat(e.status));return await e.json()}catch(e){return{error_code:1,message:"Failed to fetch countries",data:null}}}async function l(e){try{let t=await fetch(s+a.A.VERIFY_TOKEN,{method:"POST",headers:{"Content-Type":"application/json",language:"en"},body:JSON.stringify({token:e})});if(!t.ok)throw Error("HTTP error! status: ".concat(t.status));return await t.json()}catch(e){return{error_code:1,message:"Failed to fetch successful payment",data:null}}}},3998:(e,t,r)=>{"use strict";r.d(t,{$:()=>l,r:()=>o});var a=r(5155);r(2115);var s=r(2467),n=r(3101),i=r(4269);let o=(0,n.F)("inline-flex items-center cursor-pointer justify-center gap-2 whitespace-nowrap rounded-md text-[20px] font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-[#D72638] text-white  hover:bg-primary/90 text-[20px]",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border border-[#D72638] bg-white text-[#D72638]  dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline",input:"text-primary underline-offset-4 hover:underline border border-[rgb(160, 170, 186)]"},size:{default:" px-[34px] py-[12px] has-[>svg]:px-[34px]",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function l(e){let{className:t,variant:r,size:n,asChild:l=!1,...c}=e,d=l?s.DX:"button";return(0,a.jsx)(d,{"data-slot":"button",className:(0,i.cn)(o({variant:r,size:n,className:t})),...c})}},4269:(e,t,r)=>{"use strict";r.d(t,{cn:()=>n});var a=r(2821),s=r(5889);function n(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,s.QP)((0,a.$)(t))}},4329:(e,t,r)=>{"use strict";r.d(t,{default:()=>l});var a=r(5155);r(2115);var s=r(2544),n=r(3998),i=r(4517),o=r(3323);let l=()=>{let{register:e,handleSubmit:t,reset:r,formState:{errors:l,isSubmitting:c}}=(0,s.mN)(),d=async e=>{try{let t=await (0,o.NR)(e);0===t.error_code?(i.Ay.success(t.message||"Form Submitted Successfully"),r()):i.Ay.error("Form Submission Failed")}catch(e){return}finally{r()}};return(0,a.jsx)("div",{className:"form_wrapper max-w-[500px] w-full max-lg:max-w-full",children:(0,a.jsxs)("form",{onSubmit:t(d),children:[(0,a.jsxs)("div",{className:"input_wrapper flex justify-start items-start gap-x-[26px] gap-y-[36px] flex-wrap",children:[(0,a.jsx)("div",{className:"input_singleitem w-[calc(100%/2-13px)] max-sm:w-full",children:(0,a.jsxs)("div",{className:"input_parent",children:[(0,a.jsx)("input",{...e("first_name",{required:"First name is required",minLength:{value:2,message:"First name must be at least 2 characters"}}),className:"text-[16px] font-normal w-full pb-[16px] pt-[12px] border-b border-[#A0AABA] placeholder:text-[#788098] focus:outline-none text-black",placeholder:"First name",type:"text"}),l.first_name&&(0,a.jsx)("span",{className:"text-red-500 text-sm",children:l.first_name.message})]})}),(0,a.jsx)("div",{className:"input_singleitem w-[calc(100%/2-13px)] max-sm:w-full",children:(0,a.jsxs)("div",{className:"input_parent",children:[(0,a.jsx)("input",{...e("last_name",{required:"Last name is required",minLength:{value:2,message:"Last name must be at least 2 characters"}}),className:"text-[16px] font-normal w-full pb-[16px] pt-[12px] border-b border-[#A0AABA] placeholder:text-[#788098] focus:outline-none text-black",placeholder:"Last name",type:"text"}),l.last_name&&(0,a.jsx)("span",{className:"text-red-500 text-sm",children:l.last_name.message})]})}),(0,a.jsx)("div",{className:"input_singleitem w-[calc(100%/2-13px)] max-sm:w-full",children:(0,a.jsxs)("div",{className:"input_parent",children:[(0,a.jsx)("input",{...e("email",{required:"Email is required",pattern:{value:/^\S+@\S+$/i,message:"Invalid email address"}}),className:"text-[16px] font-normal w-full pb-[16px] pt-[12px] border-b border-[#A0AABA] placeholder:text-[#788098] focus:outline-none text-black",placeholder:"Email",type:"email"}),l.email&&(0,a.jsx)("span",{className:"text-red-500 text-sm",children:l.email.message})]})}),(0,a.jsx)("div",{className:"input_singleitem w-[calc(100%/2-13px)] max-sm:w-full",children:(0,a.jsxs)("div",{className:"input_parent",children:[(0,a.jsx)("input",{...e("phone",{required:"Phone number is required",minLength:{value:8,message:"Invalid phone number"},pattern:{value:/^[0-9+\-()\s]*$/,message:"Invalid phone number"}}),className:"text-[16px] font-normal w-full pb-[16px] pt-[12px] border-b border-[#A0AABA] placeholder:text-[#788098] focus:outline-none text-black",placeholder:"Phone number",type:"text"}),l.phone&&(0,a.jsx)("span",{className:"text-red-500 text-sm",children:l.phone.message})]})}),(0,a.jsx)("div",{className:"input_singleitem w-full",children:(0,a.jsxs)("div",{className:"input_parent",children:[(0,a.jsx)("textarea",{...e("message",{required:"Message is required"}),placeholder:"Your message",className:"text-[16px] font-normal min-h-[142px] w-full pb-[16px] pt-[12px] border-b border-[#A0AABA] placeholder:text-[#788098] focus:outline-none text-black"}),l.message&&(0,a.jsx)("span",{className:"text-red-500 text-sm",children:l.message.message})]})})]}),(0,a.jsx)("div",{className:"btn_wrapper mt-[36px]",children:(0,a.jsxs)(n.$,{className:"max-sm:max-w-full max-sm:w-full max-sm:text-lg max-sm:py-[10px]",type:"submit",disabled:c,
1children:["Submit Now",(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",className:"ml-2",children:[(0,a.jsx)("path",{d:"M10 6.66669L13.3333 10L10 13.3334",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,a.jsx)("path",{d:"M2.66699 2.66669V7.33335C2.66699 8.0406 2.94794 8.71888 3.44804 9.21897C3.94814 9.71907 4.62641 10 5.33366 10H13.3337",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})]})})]})})}},9344:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a={HEADER:"/header",FOOTER:"/footer",HOME_PAGE:"/home",BLOGS:"/blogs",BLOG_PAGE:"/blogs/cms",BLOG_DETAILS:"/blogs",COUNTRIES:"/countries",PICKUP_POINTS:"/pickup-locations",DROPOFF_POINTS:"/dropoff-locations",ABOUT_PAGE:"/about-us",CONTACT_PAGE:"/contact-us",CONTACT_US_SUBMIT:"/contact-us/submit",VEHICLES_PICKUP_LOCATION:"/pickup-locations",VEHICLES_DROPOFF_LOCATION:"/dropoff-locations",VEHICLES:"/cars",VEHICLES_FILTERS:"/cars/filters",VEHICLE_DETAILS:"/cars",CART_ADD:"/cart/add",CART_GET:"/cart/get",UPDATE_DATE:"/cart/update-date-time",APPLY_COUPON:"/cart/apply-coupon",REMOVE_COUPON:"/cart/remove-coupon",ADD_ADDON:"/cart/add-addon",REMOVE_ADDON:"/cart/remove-addon",CHECKOUT:"/checkout/book",VERIFY_TOKEN:"/checkout/verify-token",PLACE_DETAIL:"/places",META_SEO:"/meta-tags?page=",FAQ:"/faq",REFUND_POLICY:"/refund-policy",DYNAMIC_PAGES:"/pages"}}},e=>{e.O(0,[2619,5707,5125,4517,2329,8441,1255,7358],()=>e(e.s=2045)),_N_E=e.O()}]);

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.