PageSourceSearch

https://globaladventuretrekking.com/_next/static/chunks/3867.4bd66f5c46079603.js

js globaladventuretrekking.com collected 2026-10-02 19:32:21 UTC 7,205 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3867],{23867:function(e,r,t){t.r(r);var a=t(57437),s=t(63628),l=t(99551),o=t(99376),n=t(2265),c=t(3507),u=t(72223);r.default=e=>{let{countries:r}=e,t="6LcthjYrAAAAAHpXygXbQbD5xuBCqvXD4dcKjOkL",p="https://globaladventuretrekking.com"+(0,o.usePathname)(),i=(0,o.useRouter)(),m={fullname:"",email:"",phone_number:"",country:"",comments:"",recaptcha_response:"",page_url:p,submit:"contact"},[d,h]=(0,n.useState)({}),[x,f]=(0,n.useState)(m),[b,y]=(0,n.useState)(!1),g=(0,n.useCallback)(async()=>{try{let{grecaptcha:e}=window;if(e&&"function"==typeof e.execute)return await e.execute(t,{action:"contactSubmit"});return console.error("reCAPTCHA is not properly initialized"),null}catch(e){return console.error("Error fetching reCAPTCHA token:",e),null}},[t]);(0,n.useEffect)(()=>{(()=>{let e=document.createElement("script");return e.src="https://www.google.com/recaptcha/api.js?render=".concat(t),e.async=!0,e.onload=()=>{setTimeout(g,1e3)},document.head.appendChild(e),()=>{document.head.removeChild(e)}})()},[g,t]);let j=e=>{let{name:r,value:t}=e.target;f(e=>({...e,[r]:t})),h(e=>({...e,[r]:void 0}))},w=async e=>{e.preventDefault(),y(!0);let r=await g();r||h(e=>({...e,recaptcha_response:""})),f(e=>({...e,recaptcha_response:r}));try{let{csrf_token:e}=await (0,l._V)(),t=await fetch("https://app.globaladventuretrekking.com/api/send-quick-inquiry",{method:"POST",headers:{"Content-Type":"application/json","X-CSRF-TOKEN":e},body:JSON.stringify({...x,recaptcha_response:r})}),a=await t.json();t.ok?(h({}),f({...m,recaptcha_response:x.recaptcha_response}),i.push("/thank-you")):422===t.status&&a.errors?h(a.errors):(0,s.Z)({type:"error",message:a.error})}catch(e){console.error("Network error:",e.message),(0,s.Z)({type:"error",message:"An error occurred. Please try again."})}finally{y(!1)}};return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("form",{action:"#",onSubmit:w,children:[(0,a.jsxs)("div",{className:"group relative z-0 mb-5 w-full",children:[(0,a.jsx)("input",{onChange:j,value:x.fullname,type:"text",name:"fullname",id:"fullname",className:"text-heading_color peer block w-full appearance-none rounded-[5px] focus:outline-none focus:ring-0 ".concat(d.fullname?"has-error":""),placeholder:""}),(0,a.jsxs)("label",{htmlFor:"fullname",className:" text-text-color peer-focus:text-text-color peer-focus:dark:text-text-color  absolute top-3   origin-[0] -translate-y-3 scale-75 transform pl-3  text-base duration-300 focus:pl-0 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:start-0 peer-focus:-translate-y-3 peer-focus:scale-75 rtl:peer-focus:translate-x-1/4",children:["Full Name ",(0,a.jsx)("span",{className:"text-red-700",children:"*"})]}),d.fullname&&(0,a.jsx)("small",{className:"font-semibold text-red-500",children:d.fullname[0]})]}),(0,a.jsxs)("div",{className:"group relative z-0 mb-5 w-full",children:[(0,a.jsx)("input",{onChange:j,value:x.email,type:"email",name:"email",id:"email",className:"text-heading_color peer block w-full appearance-none rounded-[5px] focus:outline-none focus:ring-0 ".concat(d.email?"has-error":""),placeholder:""}),(0,a.jsxs)("label",{htmlFor:"email",className:"text-text-color peer-focus:text-text-color peer-focus:dark:text-text-color absolute top-3   origin-[0] -translate-y-3 scale-75 transform pl-3  text-base duration-300 focus:pl-0 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:start-0 peer-focus:-translate-y-3 peer-focus:scale-75 rtl:peer-focus:translate-x-1/4",children:["Email Address ",(0,a.jsx)("span",{className:"text-red-700",children:"*"})]}),d.email&&(0,a.jsx)("small",{className:"font-semibold text-red-500",children:d.email[0]})]}),(0,a.jsxs)("div",{className:"mb-5 grid md:grid-cols-2 md:gap-6",children:[(0,a.jsxs)("div",{className:"group relative z-0 w-full",children:[(0,a.jsx)("input",{onChange:j,value:x.phone_number,type:"text",name:"phone_number",id:"phone_number",className:"text-heading_color peer block w-full appearance-none rounded-[5px] focus:outline-none focus:ring-0 ".concat(d.phone_number?"has-error":""),placeholder:""}),(0,a.jsxs)("label",{htmlFor:"phone_number",className:"text-text-color peer-focus:text-text-color peer-focus:dark:text-text-color absolute top-3   origin-[0] -translate-y-3 scale-75 transform pl-3  text-base duration-300 focus:pl-0 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:start-0 peer-focus:-translate-y-3 peer-focus:scale-75 rtl:peer-focus:translate-x-1/4",children:["Phone Number ",(0,a.jsx)("span",{className:"text-red-700",children:"*"})]}),d.phone_number&&(0,a.jsx)("small",{className:"font-semibold text-red-500",children:d.phone_number[0]})]}),(0,a.jsxs)("div",{className:"group relative z-0 w-full",children:[(0,a.jsxs)("select",{onChange:j,value:x.country,name:"country",id:"country",className:"text-heading_color peer block w-full appearance-none rounded-[5px] focus:outline-none focus:ring-0 ".concat(d.country?"has-error":""),children:[(0,a.jsx)("option",{value:"",children:"Choose Your Country"}),r.length>0&&r.map(e=>(0,a.jsx)("option",{value:e.name,children:e.name},e.id))]}),(0,a.jsxs)("label",{htmlFor:"country",className:"text-text-color peer-focus:text-text-color peer-focus:dark:text-text-color absolute top-3 origin-[0] -translate-y-3 scale-75 transform pl-3 text-base duration-300 focus:pl-0 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:start-0 peer-focus:-translate-y-3 peer-focus:scale-75 rtl:peer-focus:translate-x-1/4",children:["Choose Your Country ",(0,a.jsx)("span",{className:"text-red-700",children:"*"})]}),d.country&&(0,a.jsx)("small",{className:"font-semibold text-red-500",children:d.country[0]})]})]}),(0,a.jsxs)("div",{className:"relative z-0 mb-5 w-full",children:[(0,a.jsx)("textarea",{onChange:j,value:x.comments,name:"comments",id:"comments",rows:5,className:"text-heading_color peer block w-full appearance-none rounded-[5px] focus:outline-none focus:ring-0 ".concat(d.comments?"has-error":""),placeholder:""}),(0,a.jsxs)("label",{htmlFor:"comments",className:"peer-focus:text-text-color peer-focus:dark:text-text-color absolute top-3 origin-[0] -translate-y-3 scale-75 transform pl-3  text-base duration-300 focus:pl-0 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:start-0 peer-focus:-translate-y-3 peer-focus:scale-75 rtl:peer-focus:translate-x-1/4",children:["Questions / Comments ",(0,a.jsx)("span",{className:"text-red-700",children:"*"})]}),d.comments&&(0,a.jsx)("small",{className:"block font-semibold text-red-500",children:d.comments[0]}),d.recaptcha_response&&(0,a.jsx)("small",{className:"mb-2 block font-semibold text-red-500",children:d.recaptcha_response[0]})]}),(0,a.jsxs)("button",{type:"submit",name:"submit",disabled:b,"aria-busy":b,className:"arrow-move-effect border-purple text-purple inline-flex items-center gap-2 rounded-[30px] border bg-white px-[18px] py-2 text-sm font-medium transition-all duration-500",children:[b&&(0,a.jsx)(u.default,{className:"loader icon-purple h-4 w-4"}),(0,a.jsx)("span",{children:"Send Message"}),(0,a.jsx)(c.LZ,{className:"icon-purple h-4 w-5"})]})]})})}}}]);

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.