PageSourceSearch

https://ammoniteadventure.com/_next/static/chunks/6968.900bd7dcc7a19453.js

js ammoniteadventure.com collected 2026-10-04 01:05:37 UTC 5,653 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6968],{16968:function(e,t,a){a.r(t);var s=a(57437),r=a(99551),l=a(99376),o=a(2265),n=a(72223);t.default=e=>{let{apiUrl:t,initialFormData:a,formData:c,setFormData:i}=e,[p,u]=(0,o.useState)({}),[m,d]=(0,o.useState)(!1),[x,h]=(0,o.useState)(""),[f,b]=(0,o.useState)(""),N=(0,l.useRouter)(),g=e=>{let{name:t,value:a}=e.target;i(e=>({...e,[t]:a})),u(e=>({...e,[t]:void 0}))},j=async e=>{e.preventDefault(),d(!0),u(e=>({...e,recaptcha_response:""}));try{let{csrf_token:e}=await (0,r._V)(),s=await fetch(t+"/send-popup-quick-inquiry",{method:"POST",headers:{"Content-Type":"application/json","X-CSRF-TOKEN":e},body:JSON.stringify(c)}),l=await s.json();s.ok?(u({}),i(a),N.push("/thank-you"),h(l.success)):422===s.status&&l.errors?u(l.errors):b(l.error)}catch(e){console.error("Network error:",e.message),b("An error occurred. Please try again.")}finally{d(!1)}};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("form",{action:"#",onSubmit:j,className:"floating-form",children:[(0,s.jsx)("div",{className:"item-center relative flex justify-between",children:(0,s.jsx)("h4",{className:"text-heading-color mb-4 text-xl font-bold",children:"Ask a Question?"})}),(0,s.jsxs)("div",{className:"group relative mb-5 w-full",children:[(0,s.jsx)("input",{onChange:g,value:c.fullname,type:"text",name:"fullname",id:"fullname",className:"text-heading-color peer block w-full appearance-none rounded bg-transparent text-base focus:outline-none focus:ring-0 ".concat(p.fullname?"has-error":""),placeholder:""}),(0,s.jsxs)("label",{htmlFor:"fullname",className:" text-text-color peer-focus:text-text-color peer-focus:dark:text-text-color absolute  left-0 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,s.jsx)("span",{className:"text-red-700",children:"*"})]}),p.fullname&&(0,s.jsx)("small",{className:"font-semibold text-red-500",children:p.fullname[0]})]}),(0,s.jsxs)("div",{className:"group relative mb-5 w-full",children:[(0,s.jsx)("input",{onChange:g,value:c.email,type:"email",name:"email",id:"email",className:"text-heading-color peer block w-full appearance-none rounded bg-transparent text-base focus:outline-none focus:ring-0 ".concat(p.email?"has-error":""),placeholder:""}),(0,s.jsxs)("label",{htmlFor:"email",className:"text-text-color peer-focus:text-text-color peer-focus:dark:text-text-color absolute left-0 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,s.jsx)("span",{className:"text-red-700",children:"*"})]}),p.email&&(0,s.jsx)("small",{className:"font-semibold text-red-500",children:p.email[0]})]}),(0,s.jsxs)("div",{className:"group relative mb-5 w-full",children:[(0,s.jsx)("input",{onChange:g,value:c.phone_number,type:"text",name:"phone_number",id:"phone_number",className:"text-heading-color peer block w-full appearance-none rounded bg-transparent text-base focus:outline-none focus:ring-0 ".concat(p.phone_number?"has-error":""),placeholder:""}),(0,s.jsxs)("label",{htmlFor:"phone_number",className:" text-text-color peer-focus:text-text-color peer-focus:dark:text-text-color absolute  left-0 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:["Country Code + Phone Number ",(0,s.jsx)("span",{className:"text-red-700",children:"*"})]}),p.phone_number&&(0,s.jsx)("small",{className:"font-semibold text-red-500",children:p.phone_number[0]})]}),(0,s.jsx)("div",{className:"relative w-full md:mt-0 ",children:(0,s.jsxs)("div",{className:"relative mb-5 w-full",children:[(0,s.jsx)("textarea",{onChange:g,value:c.comments,name:"comments",id:"comments",rows:5,className:"text-heading-color peer block w-full appearance-none rounded bg-transparent text-base focus:outline-none focus:ring-0 ".concat(p.comments?"has-error":""),placeholder:""}),(0,s.jsxs)("label",{htmlFor:"comments",className:"peer-focus:text-text-color peer-focus:dark:text-text-color absolute left-0 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:["More Information ",(0,s.jsx)("span",{className:"text-red-700",children:"*"})]}),p.comments&&(0,s.jsx)("small",{className:"font-semibold text-red-500",children:p.comments[0]})]})}),p.recaptcha_response&&(0,s.jsx)("small",{className:"font-semibold text-red-500",children:p.recaptcha_response[0]}),(0,s.jsxs)("button",{type:"submit",name:"submit",disabled:m,"aria-busy":m,variant:"primary",className:"align-center mt-2 flex gap-3 rounded border bg-primary px-8 py-2 text-base font-bold uppercase text-white transition-all delay-75 ease-in hover:border-primary hover:bg-white hover:text-primary",children:[m&&(0,s.jsx)(n.Z,{className:"h-5 w-5"}),(0,s.jsx)("span",{children:"Submit"})]})]}),x&&(0,s.jsx)("div",{className:"mt-2 font-semibold text-green-500",children:x}),f&&(0,s.jsx)("div",{className:"mt-2 font-semibold text-red-500",children:f})]})}}}]);

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.