PageSourceSearch

https://www.rishikeshtigersafari.com/_next/static/chunks/2131-f0b4…?dpl=dpl_FzZsyWufTaTwKxan5GSr5YaBSQUD

js rishikeshtigersafari.com collected 2026-10-04 02:39:52 UTC 12,819 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2131],{42131:function(e,t,a){a.d(t,{default:function(){return I}});var s=a(57437),r=a(2265),i=a(79820),n=a(12381),o=a(40279),l=a(75060),d=a(93448);let c=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)("textarea",{className:(0,d.cn)("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",a),ref:t,...r})});c.displayName="Textarea";var u=a(68245),m=a(23340),f=a(31047),p=a(44743),h=a(99376),g=a(27648),x=a(27107),b=a(92451),v=a(10407),y=a(17811);function j(e){let{className:t,classNames:a,showOutsideDays:r=!0,...i}=e;return(0,s.jsx)(y._W,{showOutsideDays:r,className:(0,d.cn)("p-3",t),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:(0,d.cn)((0,n.d)({variant:"outline"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:"h-9 w-9 text-center text-sm p-0 relative [&:has([aria-selected].day-range-end)]:rounded-r-md [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected])]:bg-accent first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md focus-within:relative focus-within:z-20",day:(0,d.cn)((0,n.d)({variant:"ghost"}),"h-9 w-9 p-0 font-normal aria-selected:opacity-100"),day_range_end:"day-range-end",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground opacity-50 aria-selected:bg-accent/50 aria-selected:text-muted-foreground aria-selected:opacity-30",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...a},components:{IconLeft:e=>{let{...t}=e;return(0,s.jsx)(b.Z,{className:"h-4 w-4"})},IconRight:e=>{let{...t}=e;return(0,s.jsx)(v.Z,{className:"h-4 w-4"})}},...i})}j.displayName="Calendar";var N=a(27312);let w=N.fC,_=N.xz,S=r.forwardRef((e,t)=>{let{className:a,align:r="center",sideOffset:i=4,...n}=e;return(0,s.jsx)(N.h_,{children:(0,s.jsx)(N.VY,{ref:t,align:r,sideOffset:i,className:(0,d.cn)("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...n})})});S.displayName=N.VY.displayName;var T=a(96281);a(28356);let k=()=>{let{toast:e}=(0,m.pm)(),t=(0,h.useRouter)(),a=(0,h.usePathname)(),b=(0,h.useSearchParams)(),[v,y]=(0,r.useState)(!1),[N,k]=(0,r.useState)(!1),[I,A]=(0,r.useState)(!1),[P,C]=(0,r.useState)({name:"",email:"",phone:"",guests:"",date:void 0,message:"",services:[]}),E=(e,t)=>{C(a=>({...a,services:t?[...a.services,e]:a.services.filter(t=>t!==e)}))},O=e=>{let{name:t,value:a}=e.target;if("name"===t){let e=a.replace(/[^a-zA-Z\s]/g,"").slice(0,50);C(t=>({...t,name:e}));return}if("email"===t){let e=a.replace(/[^a-zA-Z0-9@._-]/g,"");C(t=>({...t,email:e}));return}C(e=>({...e,[t]:a}))},D=async s=>{if(s.preventDefault(),!P.name||!P.email||!P.phone){e({title:"Missing Information",description:"Please fill in all required fields marked with *",variant:"destructive"});return}if(!P.name||P.name.length<3){e({title:"Invalid Name",description:"Name must be at least 3 characters long",variant:"destructive"});return}if(!/^[^\s@]+@[^\s@]+\.[a-zA-Z]{2,}$/.test(P.email)){e({title:"Invalid Email",description:"Please enter a valid email address (e.g. [email protected])",variant:"destructive"});return}if(!(0,T.yf)(P.phone)){e({title:"Invalid Phone Number",description:"Please enter a valid phone number including country code",variant:"destructive"});return}if(0===P.services.length){e({title:"No Service Selected",description:"Please select at least one service before submitting.",variant:"destructive"});return}if(!v){e({title:"Terms Not Accepted",description:"Please accept terms & conditions before submitting.",variant:"destructive"});return}k(!0);try{if((await fetch("/api/send-email",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(P)})).ok){let e=new URLSearchParams(Array.from(b.entries()));e.has("utm_source")||e.set("utm_source","/safari"===a?"safari_page":"/contact"===a?"contact_page":"website");let s=e.toString();t.push("/thankyou".concat(s?"?".concat(s):""));return}e({title:"Failed to Send",description:"Something went wrong. Please try again later.",variant:"destructive"})}catch(t){console.error("Send error:",t),e({title:"Error Sending Message",description:"Please check your internet connection or try again.",variant:"destructive"})}finally{k(!1)}};return(0,s.jsx)("div",{children:(0,s.jsx)(i.Zb,{className:"safari-shadow",children:(0,s.jsx)(i.aY,{className:"p-8",children:(0,s.jsxs)("form",{onSubmit:D,className:"space-y-6",children:[(0,s.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)(l._,{htmlFor:"name",children:"Full Name *"}),(0,s.jsx)(o.I,{id:"name",name:"name",value:P.name,onChange:O,placeholder:"Enter your full name",minLength:3,maxLength:50,required:!0})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)(l._,{htmlFor:"email",children:"Email Address *"}),(0,s.jsx)(o.I,{id:"email",name:"email",type:"email",value:P.email,onChange:O,placeholder:"Enter your email",required:!0})]})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)(l._,{htmlFor:"phone",children:"Phone Number *"}),(0,s.jsx)(T.ZP,{international:!0,defaultCountry:"IN",value:P.phone,onChange:e=>C(t=>({...t,phone:e||""})),className:"[&>input]:flex [&>input]:h-10 [&>input]:w-full [&>input]:rounded-md [&>input]:border [&>input]:border-input [&>input]:bg-background [&>input]:px-3 [&>input]:py-2 [&>input]:text-base [&>input]:ring-offset-background [&>input]:placeholder:text-muted-foreground [&>input:focus-visible]:outline-none [&>input:focus-visible]:ring-2 [&>input:focus-visible]:ring-ring [&>input:focus-visible]:ring-offset-2 [&>input:disabled]:cursor-not-allowed [&>input:disabled]:opacity-50 [&>input]:md:text-sm",countrySelectProps:{className:"border rounded-lg p-2 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2"},placeholder:"+91 9927180586",required:!0})]}),(0,s.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 items-end",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)(l._,{htmlFor:"guests",children:"No. of Guests"}),(0,s.jsx)(o.I,{id:"guests",name:"guests",type:"number",min:"1",value:P.guests,onChange:O,placeholder:"Enter number of guests"})]}),(0,s.jsxs)("div",{className:"flex flex-col space-y-2",children:[(0,s.jsx)(l._,{children:"Preferred Date"}),(0,s.jsxs)(w,{open:I,onOpenChange:A,children:[(0,s.jsx)(_,{asChild:!0,children:(0,s.jsxs)(n.z,{variant:"outline",className:(0,d.cn)("w-full pl-3 text-left font-normal",!P.date&&"text-muted-foreground"),children:[P.date?(0,x.WU)(P.date,"PPP"):(0,s.jsx)("span",{children:"Pick a date"}),(0,s.jsx)(f.Z,{className:"ml-auto h-4 w-4 opacity-50"})]})}),(0,s.jsx)(S,{className:"w-auto p-0",align:"start",children:(0,s.jsx)(j,{mode:"single",selected:P.date,onSelect:e=>{C(t=>({...t,date:e})),A(!1)},disabled:e=>e<new Date(new Date().setHours(0,0,0,0)),initialFocus:!0})})]})]})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)(l._,{className:"text-base font-semibold",children:"Services Required *"}),(0,s.jsx)("p",{className:"text-sm text-muted-foreground mb-4",children:"Select all services you're interested in"}),(0,s.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:[{id:"safari",label:"Safari"},{id:"accommodation",label:"Accommodation Booking"},{id:"bungee-jumping",label:"Bungee Jumping"},{id:"char-dham",label:"Char Dham Yatra"},{id:"local-sightseeing",label:"Local Sightseeing"},{id:"river-rafting",label:"River Rafting"},{id:"other",label:"Other"}].map(e=>(0,s.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,s.jsx)(u.X,{id:e.id,checked:P.services.includes(e.label),onCheckedChange:t=>E(e.label,t)}),(0,s.jsx)(l._,{htmlFor:e.id,className:"text-sm font-normal cursor-pointer",children:e.label})]},e.id))})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)(l._,{htmlFor:"message",children:"Additional Message"}),(0,s.jsx)(c,{id:"message",name:"message",value:P.message,onChange:O,placeholder:"Tell us about your requirements, special requests, or any questions...",rows:4})]}),(0,s.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,s.jsx)(u.X,{id:"terms",checked:v,onCheckedChange:e=>y(e)}),(0,s.jsxs)(l._,{htmlFor:"terms",className:"text-sm font-normal cursor-pointer",children:["I accept",(0,s.jsx)(g.default,{href:"/terms-of-service",className:"text-blue-600 underline ps-1",children:"terms and conditions*"})]})]}),(0,s.jsxs)(n.z,{type:"submit",size:"lg",className:"w-full bg-safari text-secondary-foreground hover:bg-secondary-hover gold-shadow bg-[#265926] text-white transform hover:scale-105 transition-all",disabled:!v||N,children:[(0,s.jsx)(p.Z,{className:"w-5 h-5 mr-2 text-white"}),N?"Sending...":"Send Inquiry via Mail"]})]})})})})};var I=()=>(0,s.jsx)(r.Suspense,{fallback:(0,s.jsx)("div",{children:"Loading..."}),children:(0,s.jsx)(k,{})})},68245:function(e,t,a){a.d(t,{X:function(){return l}});var s=a(57437),r=a(2265),i=a(71027),n=a(30401),o=a(93448);let l=r.forwardRef((e,t)=>
1{let{className:a,...r}=e;return(0,s.jsx)(i.fC,{ref:t,className:(0,o.cn)("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",a),...r,children:(0,s.jsx)(i.z$,{className:(0,o.cn)("flex items-center justify-center text-current"),children:(0,s.jsx)(n.Z,{className:"h-4 w-4"})})})});l.displayName=i.fC.displayName},40279:function(e,t,a){a.d(t,{I:function(){return n}});var s=a(57437),r=a(2265),i=a(93448);let n=r.forwardRef((e,t)=>{let{className:a,type:r,...n}=e;return(0,s.jsx)("input",{type:r,className:(0,i.cn)("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",a),ref:t,...n})});n.displayName="Input"},75060:function(e,t,a){a.d(t,{_:function(){return d}});var s=a(57437),r=a(2265),i=a(6394),n=a(90535),o=a(93448);let l=(0,n.j)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),d=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)(i.f,{ref:t,className:(0,o.cn)(l(),a),...r})});d.displayName=i.f.displayName},23340:function(e,t,a){a.d(t,{pm:function(){return m}});var s=a(2265);let r=0,i=new Map,n=e=>{if(i.has(e))return;let t=setTimeout(()=>{i.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);i.set(e,t)},o=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:a}=t;return a?n(a):e.toasts.forEach(e=>{n(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===a||void 0===a?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},l=[],d={toasts:[]};function c(e){d=o(d,e),l.forEach(e=>{e(d)})}function u(e){let{...t}=e,a=(r=(r+1)%Number.MAX_SAFE_INTEGER).toString(),s=()=>c({type:"DISMISS_TOAST",toastId:a});return c({type:"ADD_TOAST",toast:{...t,id:a,open:!0,onOpenChange:e=>{e||s()}}}),{id:a,dismiss:s,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:a}})}}function m(){let[e,t]=s.useState(d);return s.useEffect(()=>(l.push(t),()=>{let e=l.indexOf(t);e>-1&&l.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}}}]);

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.