PageSourceSearch

https://www.jaisaltours.com/_next/static/chunks/app/contact/page-e8aa5f181364dd1b.js

js jaisaltours.com collected 2026-10-04 02:43:46 UTC 6,448 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[977],{1136:(e,a,n)=>{"use strict";n.d(a,{EnquiryForm:()=>h});var t=n(5155),r=n(2115),s=n(932),o=n(7268),l=n(5016);let i=["Taxi or cab","Airport / railway transfer","Desert camp & safari","Sightseeing tour","Hotel booking","Outstation drive","A full trip — not sure yet"],c={name:"",phone:"",date:"",travellers:"2",service:i[0],message:""};function d(e){return["Hi Jaisal Tours, I'd like to enquire about: ".concat(e.service,"."),"","Name: ".concat(e.name),"Phone: ".concat(e.phone),e.date?"Travel date: ".concat(e.date):null,e.travellers?"Travellers: ".concat(e.travellers):null,e.message?"\n".concat(e.message):null].filter(Boolean).join("\n")}let m="h-12 w-full rounded-[4px] border border-line bg-paper px-3.5 text-[15px] text-ink transition-[border-color,box-shadow] duration-150 ease-out placeholder:text-muted-2/70 hover:border-line focus:border-gold-deep focus:outline-none focus:ring-2 focus:ring-gold/25",p="block text-[13px] font-medium tracking-[-0.01em] text-ink";function h(){let[e,a]=(0,r.useState)(c),[n,h]=(0,r.useState)({}),[u,x]=(0,r.useState)(null),g=e=>t=>{a(a=>({...a,[e]:t.target.value})),n[e]&&h(a=>({...a,[e]:void 0}))};function v(){let a={};return e.name.trim().length<2&&(a.name="Please add your name so we know who we're talking to."),e.phone.replace(/\D/g,"").length<8&&(a.phone="We need a number we can call back on."),h(a),0===Object.keys(a).length}return(0,t.jsxs)("form",{onSubmit:function(a){if(a.preventDefault(),!v())return;let n="https://wa.me/".concat(s._P.whatsapp.digits,"?text=").concat(encodeURIComponent(d(e)));x(n),window.open(n,"_blank","noopener")},noValidate:!0,className:"grid gap-5 sm:grid-cols-2",children:[(0,t.jsxs)("div",{className:"sm:col-span-1",children:[(0,t.jsx)("label",{htmlFor:"name",className:p,children:"Your name"}),(0,t.jsx)("input",{id:"name",name:"name",value:e.name,onChange:g("name"),autoComplete:"name","aria-invalid":!!n.name,"aria-describedby":n.name?"name-error":void 0,className:(0,l.cn)(m,"mt-2",n.name&&"border-terracotta-deep"),placeholder:"Aditi Sharma"}),n.name&&(0,t.jsx)("p",{id:"name-error",className:"mt-1.5 text-[12.5px] text-terracotta-deep",children:n.name})]}),(0,t.jsxs)("div",{className:"sm:col-span-1",children:[(0,t.jsx)("label",{htmlFor:"phone",className:p,children:"Phone or WhatsApp number"}),(0,t.jsx)("input",{id:"phone",name:"phone",type:"tel",inputMode:"tel",value:e.phone,onChange:g("phone"),autoComplete:"tel","aria-invalid":!!n.phone,"aria-describedby":n.phone?"phone-error":void 0,className:(0,l.cn)(m,"mt-2",n.phone&&"border-terracotta-deep"),placeholder:"+91 …"}),n.phone&&(0,t.jsx)("p",{id:"phone-error",className:"mt-1.5 text-[12.5px] text-terracotta-deep",children:n.phone})]}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("label",{htmlFor:"date",className:p,children:["Travel date",(0,t.jsx)("span",{className:"ml-1.5 font-normal text-muted-2",children:"optional"})]}),(0,t.jsx)("input",{id:"date",name:"date",type:"date",value:e.date,onChange:g("date"),className:(0,l.cn)(m,"mt-2")})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"travellers",className:p,children:"Travellers"}),(0,t.jsx)("input",{id:"travellers",name:"travellers",type:"number",min:1,max:60,inputMode:"numeric",value:e.travellers,onChange:g("travellers"),className:(0,l.cn)(m,"mt-2")})]}),(0,t.jsxs)("div",{className:"sm:col-span-2",children:[(0,t.jsx)("label",{htmlFor:"service",className:p,children:"What do you need?"}),(0,t.jsx)("select",{id:"service",name:"service",value:e.service,onChange:g("service"),className:(0,l.cn)(m,"mt-2 cursor-pointer appearance-none bg-[length:14px] bg-[right_0.9rem_center] bg-no-repeat pr-10"),style:{backgroundImage:"url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%236d6354' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E\")"},children:i.map(e=>(0,t.jsx)("option",{children:e},e))})]}),(0,t.jsxs)("div",{className:"sm:col-span-2",children:[(0,t.jsxs)("label",{htmlFor:"message",className:p,children:["Anything else",(0,t.jsx)("span",{className:"ml-1.5 font-normal text-muted-2",children:"arrival train, hotel, what you want to see"})]}),(0,t.jsx)("textarea",{id:"message",name:"message",rows:4,value:e.message,onChange:g("message"),className:(0,l.cn)(m,"mt-2 h-auto resize-y py-3 leading-[1.55]"),placeholder:"Arriving on the Delhi train at 11:15, two nights, want a camp night and the fort."})]}),(0,t.jsxs)("div",{className:"sm:col-span-2",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-3",children:[(0,t.jsxs)("button",{type:"submit",className:"inline-flex h-[52px] curs
1or-pointer items-center justify-center gap-2 rounded-[4px] bg-emerald px-7 text-[15px] font-medium text-white transition-[transform,background-color] duration-150 ease-out hover:bg-emerald-deep active:scale-[0.97]",children:[(0,t.jsx)(o.mr,{className:"size-[18px]"}),"Send on WhatsApp"]}),(0,t.jsxs)("button",{type:"button",onClick:function(){if(!v())return;let a="Jaisalmer enquiry — ".concat(e.service);window.location.href="mailto:".concat(s._P.email,"?subject=").concat(encodeURIComponent(a),"&body=").concat(encodeURIComponent(d(e)))},className:"inline-flex h-[52px] cursor-pointer items-center justify-center gap-2 rounded-[4px] border border-ink/18 px-6 text-[15px] font-medium text-ink transition-[transform,border-color,background-color] duration-150 ease-out hover:border-ink/40 hover:bg-ink/[0.035] active:scale-[0.97]",children:[(0,t.jsx)(o.r4,{className:"size-[18px]"}),"Send by email"]})]}),(0,t.jsx)("p",{"aria-live":"polite",className:(0,l.cn)("mt-4 text-[13.5px] leading-[1.55] transition-opacity duration-200 ease-out",u?"text-ink opacity-100":"text-muted-2 opacity-100"),children:u?(0,t.jsxs)(t.Fragment,{children:["WhatsApp should have opened with your message ready to send. If it didn’t,"," ",(0,t.jsx)("a",{href:u,target:"_blank",rel:"noopener",className:"underline decoration-line underline-offset-[4px] hover:decoration-gold-deep",children:"open it here"}),"."]}):(0,t.jsx)(t.Fragment,{children:"Nothing is stored on this site. The form simply writes your message and opens WhatsApp so you can read it before it goes."})})]})]})}},2586:(e,a,n)=>{Promise.resolve().then(n.bind(n,1136)),Promise.resolve().then(n.t.bind(n,2619,23)),Promise.resolve().then(n.t.bind(n,1356,23))}},e=>{e.O(0,[619,356,909,434,441,255,358],()=>e(e.s=2586)),_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.