PageSourceSearch

https://tastyeasyrecipe.com/_next/static/chunks/app/contact/page-b3486b0b34f32b03.js

js tastyeasyrecipe.com collected 2026-10-03 02:40:22 UTC 7,481 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[977],{2486:(e,r,a)=>{"use strict";a.d(r,{A:()=>s});let s=(0,a(9946).A)("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]])},2993:(e,r,a)=>{"use strict";a.d(r,{default:()=>c});var s=a(5155),t=a(2115),l=a(9946);let i=(0,l.A)("circle-check-big",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]),n=(0,l.A)("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]),o=(0,l.A)("loader",[["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m16.2 7.8 2.9-2.9",key:"r700ao"}],["path",{d:"M18 12h4",key:"wj9ykh"}],["path",{d:"m16.2 16.2 2.9 2.9",key:"1bxg5t"}],["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m4.9 19.1 2.9-2.9",key:"bwix9q"}],["path",{d:"M2 12h4",key:"j09sii"}],["path",{d:"m4.9 4.9 2.9 2.9",key:"giyufr"}]]);var d=a(2486);let c=e=>{let{formTitle:r}=e,[a,l]=(0,t.useState)({firstName:"",lastName:"",email:"",subject:"",message:""}),[c,m]=(0,t.useState)(!1),[u,h]=(0,t.useState)(!1),[g,p]=(0,t.useState)(null),b=e=>{let{name:r,value:a}=e.target;l(e=>({...e,[r]:a}))},x=async e=>{e.preventDefault(),m(!0),p(null);try{let e=new FormData;Object.entries(a).forEach(r=>{let[a,s]=r;e.append(a,s)});let r=await fetch("/api/contact",{method:"POST",body:e}),s=await r.json();if(!r.ok)throw Error(s.error||"Failed to send message");h(!0),l({firstName:"",lastName:"",email:"",subject:"",message:""})}catch(e){p(e instanceof Error?e.message:"Failed to send message")}finally{m(!1)}};return u?(0,s.jsx)("div",{className:"bg-white rounded-lg shadow-lg p-8",children:(0,s.jsxs)("div",{className:"text-center",children:[(0,s.jsx)(i,{className:"w-16 h-16 text-green-500 mx-auto mb-4"}),(0,s.jsx)("h2",{className:"text-2xl font-bold text-gray-900 mb-2",children:"Message Sent!"}),(0,s.jsx)("p",{className:"text-gray-600 mb-6",children:"Thank you for reaching out! We've received your message and will get back to you soon."}),(0,s.jsx)("button",{onClick:()=>{h(!1),p(null)},className:"bg-primary text-white px-6 py-2 rounded-lg hover:bg-primary/90 transition-colors",children:"Send Another Message"})]})}):(0,s.jsxs)("div",{className:"bg-white rounded-lg shadow-lg p-8",children:[(0,s.jsx)("h2",{className:"text-3xl font-bold text-gray-900 mb-6",children:r}),g&&(0,s.jsxs)("div",{className:"mb-6 p-4 bg-red-50 border border-red-200 rounded-lg flex items-center",children:[(0,s.jsx)(n,{className:"w-5 h-5 text-red-500 mr-2"}),(0,s.jsx)("span",{className:"text-red-700",children:g})]}),(0,s.jsxs)("form",{onSubmit:x,className:"space-y-6",children:[(0,s.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{htmlFor:"firstName",className:"block text-sm font-medium text-gray-700 mb-2",children:"First Name *"}),(0,s.jsx)("input",{type:"text",id:"firstName",name:"firstName",value:a.firstName,onChange:b,required:!0,disabled:c,className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent disabled:bg-gray-50",placeholder:"Your first name"})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{htmlFor:"lastName",className:"block text-sm font-medium text-gray-700 mb-2",children:"Last Name *"}),(0,s.jsx)("input",{type:"text",id:"lastName",name:"lastName",value:a.lastName,onChange:b,required:!0,disabled:c,className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent disabled:bg-gray-50",placeholder:"Your last name"})]})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{htmlFor:"email",className:"block text-sm font-medium text-gray-700 mb-2",children:"Email Address *"}),(0,s.jsx)("input",{type:"email",id:"email",name:"email",value:a.email,onChange:b,required:!0,disabled:c,className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent disabled:bg-gray-50",placeholder:"[email protected]"})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{htmlFor:"subject",className:"block text-sm font-medium text-gray-700 mb-2",children:"Subject *"}),(0,s.jsxs)("select",{id:"subject",name:"subject",value:a.subject,onChange:b,required:!0,disabled:c,
1className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent disabled:bg-gray-50",children:[(0,s.jsx)("option",{value:"",children:"Select a subject"}),(0,s.jsx)("option",{value:"recipe-question",children:"Recipe Question"}),(0,s.jsx)("option",{value:"cooking-tips",children:"Cooking Tips"}),(0,s.jsx)("option",{value:"website-feedback",children:"Website Feedback"}),(0,s.jsx)("option",{value:"partnership",children:"Partnership Inquiry"}),(0,s.jsx)("option",{value:"general",children:"General Inquiry"})]})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{htmlFor:"message",className:"block text-sm font-medium text-gray-700 mb-2",children:"Message *"}),(0,s.jsx)("textarea",{id:"message",name:"message",value:a.message,onChange:b,required:!0,disabled:c,rows:6,className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent resize-none disabled:bg-gray-50",placeholder:"Tell us what's on your mind..."})]}),(0,s.jsx)("button",{type:"submit",disabled:c,className:"w-full bg-primary text-white py-3 px-6 rounded-lg hover:bg-primary/90 transition-colors font-semibold flex items-center justify-center disabled:opacity-50 disabled:cursor-not-allowed",children:c?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o,{className:"w-5 h-5 mr-2 animate-spin"}),"Sending..."]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(d.A,{className:"w-5 h-5 mr-2"}),"Send Message"]})})]})]})}},7108:(e,r,a)=>{Promise.resolve().then(a.bind(a,2993))},9946:(e,r,a)=>{"use strict";a.d(r,{A:()=>m});var s=a(2115);let t=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),l=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,r,a)=>a?a.toUpperCase():r.toLowerCase()),i=e=>{let r=l(e);return r.charAt(0).toUpperCase()+r.slice(1)},n=function(){for(var e=arguments.length,r=Array(e),a=0;a<e;a++)r[a]=arguments[a];return r.filter((e,r,a)=>!!e&&""!==e.trim()&&a.indexOf(e)===r).join(" ").trim()},o=e=>{for(let r in e)if(r.startsWith("aria-")||"role"===r||"title"===r)return!0};var d={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let c=(0,s.forwardRef)((e,r)=>{let{color:a="currentColor",size:t=24,strokeWidth:l=2,absoluteStrokeWidth:i,className:c="",children:m,iconNode:u,...h}=e;return(0,s.createElement)("svg",{ref:r,...d,width:t,height:t,stroke:a,strokeWidth:i?24*Number(l)/Number(t):l,className:n("lucide",c),...!m&&!o(h)&&{"aria-hidden":"true"},...h},[...u.map(e=>{let[r,a]=e;return(0,s.createElement)(r,a)}),...Array.isArray(m)?m:[m]])}),m=(e,r)=>{let a=(0,s.forwardRef)((a,l)=>{let{className:o,...d}=a;return(0,s.createElement)(c,{ref:l,iconNode:r,className:n("lucide-".concat(t(i(e))),"lucide-".concat(e),o),...d})});return a.displayName=i(e),a}}},e=>{var r=r=>e(e.s=r);e.O(0,[8441,1317,7358],()=>r(7108)),_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.