1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7594],{25016:(e,t,s)=>{s.d(t,{V:()=>l,cn:()=>i});var a=s(2821),r=s(75889);function i(){for(var e=arguments.length,t=Array(e),s=0;s<e;s++)t[s]=arguments[s];return(0,r.QP)((0,a.$)(t))}function l(e){return e?e.startsWith("http")||e.startsWith("/")?e:"".concat("https://jansuraaj.org","/").concat(e):"https://placehold.co/400x400/amber/black?text=Jan+Suraaj"}},28171:(e,t,s)=>{s.d(t,{dj:()=>m});var a=s(12115);let r=0,i=new Map,l=e=>{if(i.has(e))return;let t=setTimeout(()=>{i.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);i.set(e,t)},n=[],o={toasts:[]};function c(e){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:s}=t;return s?l(s):e.toasts.forEach(e=>{l(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===s||void 0===s?{...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)}}})(o,e),n.forEach(e=>{e(o)})}function d(e){let{...t}=e,s=(r=(r+1)%Number.MAX_SAFE_INTEGER).toString(),a=()=>c({type:"DISMISS_TOAST",toastId:s});return c({type:"ADD_TOAST",toast:{...t,id:s,open:!0,onOpenChange:e=>{e||a()}}}),{id:s,dismiss:a,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:s}})}}function m(){let[e,t]=a.useState(o);return a.useEffect(()=>(n.push(t),()=>{let e=n.indexOf(t);e>-1&&n.splice(e,1)}),[e]),{...e,toast:d,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},33789:(e,t,s)=>{s.d(t,{p:()=>l});var a=s(95155),r=s(12115),i=s(25016);let l=r.forwardRef((e,t)=>{let{className:s,type:r,...l}=e;return(0,a.jsx)("input",{type:r,className:(0,i.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors 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-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",s),ref:t,...l})});l.displayName="Input"},67001:(e,t,s)=>{s.d(t,{T:()=>l});var a=s(95155),r=s(12115),i=s(25016);let l=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("textarea",{className:(0,i.cn)("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm r
1ing-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",s),ref:t,...r})});l.displayName="Textarea"},77594:(e,t,s)=>{s.d(t,{A:()=>j});var a=s(95155),r=s(12115),i=s(54879),l=s(22544),n=s(66942),o=s(97003),c=s(33789),d=s(67001),m=s(28171),u=s(95125),x=s(30451),h=s(35634),b=s(26497),p=s(50984),f=s(89679),g=s(96711),y=s(71708);function j(){let{lang:e}=(0,x.o)(),{toast:t}=(0,m.dj)(),[s,j]=(0,r.useState)(!1),[v,N]=(0,r.useState)(!1),w=(0,r.useMemo)(()=>i.Ik({name:i.Yj().min(2,"hi"===e?"नाम à¤à¤® सॠà¤à¤® 2 à¤
à¤à¥à¤·à¤°à¥à¤ à¤à¤¾ हà¥à¤¨à¤¾ à¤à¤¾à¤¹à¤¿à¤":"Name must be at least 2 characters"),phoneNumber:i.Yj().regex(/^[0-9]{10}$/,"hi"===e?"à¤à¥à¤ªà¤¯à¤¾ à¤à¤ मानà¥à¤¯ 10-à¤
à¤à¤à¥à¤¯ मà¥à¤¬à¤¾à¤à¤² नà¤à¤¬à¤° दरà¥à¤ à¤à¤°à¥à¤":"Please enter a valid 10-digit phone number"),subject:i.Yj().min(3,"hi"===e?"विषय à¤à¤® सॠà¤à¤® 3 à¤
à¤à¥à¤·à¤°à¥à¤ à¤à¤¾ हà¥à¤¨à¤¾ à¤à¤¾à¤¹à¤¿à¤":"Subject must be at least 3 characters"),message:i.Yj().min(10,"hi"===e?"सà¤à¤¦à¥à¤¶ à¤à¤® सॠà¤à¤® 10 à¤
à¤à¥à¤·à¤°à¥à¤ à¤à¤¾ हà¥à¤¨à¤¾ à¤à¤¾à¤¹à¤¿à¤":"Message must be at least 10 characters").max(500,"hi"===e?"सà¤à¤¦à¥à¤¶ 500 à¤
à¤à¥à¤·à¤°à¥à¤ सॠà¤
धिठनहà¥à¤ हॠसà¤à¤¤à¤¾":"Message cannot exceed 500 characters")}),[e]),{register:k,handleSubmit:S,reset:T,formState:{errors:A}}=(0,l.mN)({resolver:(0,n.u)(w),defaultValues:{name:"",phoneNumber:"",subject:"",message:""}}),I=async s=>{j(!0);try{await u.A.post("".concat("https://jsp-backend-nine.vercel.app/api","/pk-ko-patra"),s),N(!0);let e=Date.now()+3e3,t={startVelocity:30,spread:360,ticks:60,zIndex:0},a=(e,t)=>Math.random()*(t-e)+e,r=setInterval(function(){let s=e-Date.now();if(s<=0)return clearInterval(r);let i=s/3e3*50;(0,y.A)({...t,particleCount:i,origin:{x:a(.1,.3),y:Math.random()-.2}}),(0,y.A)({...t,particleCount:i,origin:{x:a(.7,.9),y:Math.random()-.2}})},250);T()}catch(s){console.error("Error sending message:",s),t({title:"hi"===e?"तà¥à¤°à¥à¤à¤¿":"Error",description:"hi"===e?"à¤à¤ªà¤à¤¾ सà¤à¤¦à¥à¤¶ à¤à¥à¤à¤¨à¥ मà¥à¤ विफल रहा। à¤à¥à¤ªà¤¯à¤¾ बाद मà¥à¤ पà¥à¤¨à¤ पà¥à¤°à¤¯à¤¾à¤¸ à¤à¤°à¥à¤à¥¤":"Failed to send your message. Please try again later.",variant:"destructive"})}finally{j(!1)}};return(0,a.jsxs)("section",{className:"py-20 bg-slate-50 relative overflow-hidden",children:[(0,a.jsx)("div",{className:"absolute top-0 left-0 w-full h-full opacity-[0.03] pointer-events-none",children:(0,a.jsx)("div",{className:"absolute top-[-10%] right-[-10%] w-[40%] h-[40%] bg-amber-400 rounded-full blur-[120px]"})}),(0,a.jsxs)("div",{className:"container mx-auto px-4 max-w-7xl relative z-10",children:[(0,a.jsxs)("div",{className:"text-center mb-12",children:[(0,a.jsx)(h.P.h2,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},className:"text-4xl md:text-5xl font-black mb-6 tracking-tight text-slate-900",children:"hi"===e?(0,a.jsxs)(a.Fragment,{children:["पà¥à¤°à¤¶à¤¾à¤à¤¤ à¤à¤¿à¤¶à¥à¤° ",(0,a.jsx)("span",{className:"text-amber-500",children:"à¤à¥ पतà¥à¤°"})]}):(0,a.jsxs)(a.Fragment,{children:["Letter to ",(0,a.jsx)("span",{className:"text-amber-500",children:"Prashant Kishor"})]})}),(0,a.jsx)(h.P.p,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{delay:.1},className:"text-slate-500 text-lg max-w-2xl mx-auto font-medium",children:"hi"===e?"à¤
पनॠबात, सà¥à¤à¤¾à¤µ या सवाल सà¥à¤§à¥ पà¥à¤°à¤¶à¤¾à¤à¤¤ à¤à¤¿à¤¶à¥à¤° तठपहà¥à¤à¤à¤¾à¤à¤à¥¤ बिहार à¤à¥ बदलाव मà¥à¤ à¤à¤ªà¤à¥ à¤à¤µà¤¾à¤à¤¼ à¤à¥ à¤
हम à¤à¥à¤®à¤¿à¤à¤¾ हà¥à¥¤":"Reach out to Prashant Kishor with your thoughts, suggestions, or questions. Your voice plays a key role in Bihar's transformation."})]}),(0,a.jsx)(h.P.div,{initial:{opacity:0,scale:.95},whileInView:{opacity:1,scale:1},className:"max-w-3xl mx-auto bg-white rounded-[32px] shadow-2xl shadow-slate-200/60 p-8 md:p-12 border border-slate-100",children:(0,a.jsxs)("form",{onSubmit:S(I),className:"space-y-8",children:[(0,a.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8",children:[(0,a.jsxs)("div",{className:"space-y-3",children:[(0,a.jsx)("label",{htmlFor:"name",className:"text-xs font-bold text-slate-400 uppercase tracking-widest ml-1",children:"hi"===e?"पà¥à¤°à¤¾ नाम":"Full Name"}),(0,a.jsx)(c.p,{id:"name",placeholder:"hi"===e?"à¤
पना नाम लिà¤à¥à¤":"Enter your name",...k("name"),className:"bg-slate-50 border-slate-100 rounded-2xl py-6 px-5 focus:ring-4 focus:ring-amber-400/10 focus:border-amber-400/50 transition-all ".concat(A.name?"border-red-500":"")}
1),A.name&&(0,a.jsx)("p",{className:"text-red-500 text-[10px] font-bold ml-1",children:A.name.message})]}),(0,a.jsxs)("div",{className:"space-y-3",children:[(0,a.jsx)("label",{htmlFor:"phoneNumber",className:"text-xs font-bold text-slate-400 uppercase tracking-widest ml-1",children:"hi"===e?"मà¥à¤¬à¤¾à¤à¤² नà¤à¤¬à¤°":"Mobile Number"}),(0,a.jsx)(c.p,{id:"phoneNumber",type:"tel",maxLength:10,placeholder:"hi"===e?"10 à¤
à¤à¤à¥à¤ à¤à¤¾ नà¤à¤¬à¤°":"10-digit number",...k("phoneNumber"),onInput:e=>{e.currentTarget.value=e.currentTarget.value.replace(/[^0-9]/g,"").slice(0,10)},className:"bg-slate-50 border-slate-100 rounded-2xl py-6 px-5 focus:ring-4 focus:ring-amber-400/10 focus:border-amber-400/50 transition-all ".concat(A.phoneNumber?"border-red-500":"")}),A.phoneNumber&&(0,a.jsx)("p",{className:"text-red-500 text-[10px] font-bold ml-1",children:A.phoneNumber.message})]})]}),(0,a.jsxs)("div",{className:"space-y-3",children:[(0,a.jsx)("label",{htmlFor:"subject",className:"text-xs font-bold text-slate-400 uppercase tracking-widest ml-1",children:"hi"===e?"विषय":"Subject"}),(0,a.jsx)(c.p,{id:"subject",placeholder:"hi"===e?"पतà¥à¤° à¤à¤¾ मà¥à¤à¥à¤¯ विषय":"Subject of your letter",...k("subject"),className:"bg-slate-50 border-slate-100 rounded-2xl py-6 px-5 focus:ring-4 focus:ring-amber-400/10 focus:border-amber-400/50 transition-all ".concat(A.subject?"border-red-500":"")}),A.subject&&(0,a.jsx)("p",{className:"text-red-500 text-[10px] font-bold ml-1",children:A.subject.message})]}),(0,a.jsxs)("div",{className:"space-y-3",children:[(0,a.jsx)("label",{htmlFor:"message",className:"text-xs font-bold text-slate-400 uppercase tracking-widest ml-1",children:"hi"===e?"विसà¥à¤¤à¥à¤¤ सà¤à¤¦à¥à¤¶":"Detailed Message"}),(0,a.jsx)(d.T,{id:"message",placeholder:"hi"===e?"à¤
पना सà¤à¤¦à¥à¤¶ यहाठविसà¥à¤¤à¤¾à¤° सॠलिà¤à¥à¤...":"Write your message in detail here...",rows:6,...k("message"),className:"bg-slate-50 border-slate-100 rounded-[24px] p-5 focus:ring-4 focus:ring-amber-400/10 focus:border-amber-400/50 transition-all ".concat(A.message?"border-red-500":"")}),A.message&&(0,a.jsx)("p",{className:"text-red-500 text-[10px] font-bold ml-1",children:A.message.message})]}),(0,a.jsx)(o.$,{type:"submit",className:"w-full h-14 bg-slate-900 hover:bg-slate-800 text-white font-bold rounded-2xl transition-all active:scale-[0.98] shadow-xl shadow-slate-200",disabled:s,children:"hi"===e?s?"à¤à¥à¤à¤¾ à¤à¤¾ रहा हà¥...":"पतà¥à¤° à¤à¥à¤à¥à¤":s?"Sending...":"Send Letter"})]})})]}),(0,a.jsx)(b.N,{children:v&&(0,a.jsxs)("div",{className:"fixed inset-0 z-[100] flex items-center justify-center p-4",children:[(0,a.jsx)(h.P.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},onClick:()=>N(!1),className:"absolute inset-0 bg-amber-950/20 backdrop-blur-sm"}),(0,a.jsxs)(h.P.div,{initial:{scale:.9,opacity:0,y:40},animate:{scale:1,opacity:1,y:0},exit:{scale:.9,opacity:0,y:40},className:"relative w-full max-w-xs bg-white rounded-[40px] shadow-2xl overflow-hidden p-8 text-center border-4 border-amber-300",children:[(0,a.jsx)("div",{className:"w-20 h-20 bg-amber-400 rounded-full flex items-center justify-center mx-auto mb-6 shadow-xl shadow-amber-200 border-4 border-white",children:(0,a.jsx)(p.A,{size:36,className:"text-white"})}),(0,a.jsx)("h2",{className:"text-2xl font-black text-slate-900 mb-2 tracking-tight",children:"hi"===e?"धयनावाद!":"Success!"}),(0,a.jsxs)("div",{className:"space-y-3 mb-8",children:[(0,a.jsx)("p",{className:"text-slate-600 text-sm font-bold leading-relaxed px-2",children:"hi"===e?"पà¥à¤°à¤¶à¤¾à¤à¤¤ à¤à¤¿à¤¶à¥à¤° à¤à¥ पतà¥à¤° लिà¤à¤¨à¥ à¤à¥ लिठधनà¥à¤¯à¤µà¤¾à¤¦, हमारॠà¤à¥à¤® à¤à¤ªà¤¸à¥ à¤à¤²à¥à¤¦ सà¤à¤ªà¤°à¥à¤ à¤à¤°à¥à¤à¥à¥¤":"Thank you for writing to Prashant Kishor. Our team will c
1ontact you soon."}),(0,a.jsx)("p",{className:"text-slate-500 text-[10px] font-medium",children:"hi"===e?"à¤
धिठà¤à¤¾à¤¨à¤à¤¾à¤°à¥ à¤à¥ लिठ9121691216 पर सà¤à¤ªà¤°à¥à¤ à¤à¤°à¥à¤à¥¤":"For more information, please contact 9121691216."}),(0,a.jsxs)("a",{href:"tel:9121691216",className:"py-2 px-4 bg-amber-50 rounded-2xl border border-amber-100 flex items-center justify-center gap-2 hover:bg-amber-100 transition-colors",children:[(0,a.jsx)(f.A,{size:14,className:"text-amber-600"}),(0,a.jsx)("span",{className:"text-amber-900 text-xs font-black tracking-widest",children:"9121691216"})]})]}),(0,a.jsxs)("button",{onClick:()=>N(!1),className:"w-full py-4 bg-slate-900 hover:bg-black text-white rounded-[24px] font-black text-xs uppercase tracking-widest shadow-xl shadow-slate-200 transition-all active:scale-95 flex items-center justify-center gap-2",children:["hi"===e?"धनà¥à¤¯à¤µà¤¾à¤¦":"Done",(0,a.jsx)(g.A,{size:14,className:"fill-red-500 text-red-500"})]})]})]})})]})}},97003:(e,t,s)=>{s.d(t,{$:()=>c,r:()=>o});var a=s(95155),r=s(12115),i=s(32467),l=s(83101),n=s(25016);let o=(0,l.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),c=r.forwardRef((e,t)=>{let{className:s,variant:r,size:l,asChild:c=!1,...d}=e,m=c?i.DX:"button";return(0,a.jsx)(m,{className:(0,n.cn)(o({variant:r,size:l,className:s})),ref:t,...d})});c.displayName="Button"}}]);
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.