PageSourceSearch

https://wrappixel.com/_next/static/immutable/chunks/2r_fhmjjm1u0d.js

js wrappixel.com collected 2026-10-02 10:52:09 UTC 5,166 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,210912,e=>{"use strict";var s=e.i(773359),a=e.i(867960),t=e.i(793479),l=e.i(110204),i=e.i(624687),r=e.i(519455),m=e.i(349694);e.s(["default",0,()=>{let[e,c]=(0,a.useState)({firstname:"",subject:"",email:"",message:""}),[n,d]=(0,a.useState)({firstname:"",subject:"",email:"",message:""}),[o,x]=(0,a.useState)(!1),[u,p]=(0,a.useState)(!1),f=e=>{let{name:s,value:a}=e.target;c(e=>({...e,[s]:a})),d(e=>({...e,[s]:""}))},j=async s=>{let a,t;if(s.preventDefault(),x(!1),a={},t=!0,e.firstname.trim()||(a.firstname="Name is required",t=!1),e.subject.trim()||(a.subject="Subject is required",t=!1),e.email.trim()?/^\S+@\S+\.\S+$/.test(e.email)||(a.email="Email is invalid",t=!1):(a.email="Email is required",t=!1),e.message.trim()||(a.message="Message is required",t=!1),d(a),t){p(!0);try{let s=await fetch("/api/contact",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),a=await s.json();a.success?(x(!0),c({firstname:"",subject:"",email:"",message:""}),d({firstname:"",subject:"",email:"",message:""})):console.error(a.error||"Unknown error")}catch(e){console.log(e.message)}finally{p(!1)}}};return(0,s.jsx)("section",{children:(0,s.jsx)("div",{className:"py-11 md:py-16 xl:px-0 px-4",children:(0,s.jsxs)("div",{className:"container flex flex-col gap-10",children:[(0,s.jsx)("h1",{className:"text-dark ",children:"Contact us"}),(0,s.jsxs)("div",{className:"md:grid flex md:flex-row flex-col grid-cols-12 gap-8 border border-border md:p-8 p-6 rounded",children:[(0,s.jsx)("div",{className:"col-span-12 md:col-span-8",children:(0,s.jsx)("div",{className:"flex flex-col gap-8 ",children:(0,s.jsxs)("form",{onSubmit:j,className:"grid grid-cols-1 gap-6",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)(l.Label,{htmlFor:"firstname",className:"block font-medium text-sm mb-1",children:"Your Name*"}),(0,s.jsx)(t.Input,{id:"firstname",type:"text",className:"py-6",name:"firstname",value:e.firstname,onChange:f}),n.firstname&&(0,s.jsx)("p",{className:"text-red-500 text-sm mt-1 ",children:n.firstname})]}),(0,s.jsxs)("div",{className:"flex-1",children:[(0,s.jsx)(l.Label,{htmlFor:"email",className:"block font-medium text-sm mb-1",children:"Email address*"}),(0,s.jsx)(t.Input,{id:"email",type:"email",name:"email",className:"py-6",value:e.email,onChange:f}),n.email&&(0,s.jsx)("p",{className:"text-red-500 text-sm mt-1",children:n.email})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)(l.Label,{htmlFor:"subject",className:"block font-medium text-sm mb-1",children:"Subject"}),(0,s.jsx)(t.Input,{id:"subject",type:"text",name:"subject",className:"py-6",value:e.subject,onChange:f}),n.subject&&(0,s.jsx)("p",{className:"text-red-500 text-sm mt-1",children:n.subject})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)(l.Label,{htmlFor:"message",className:"block font-medium text-sm mb-1",children:"Your Message"}),(0,s.jsx)(i.Textarea,{rows:4,id:"message",name:"message",className:"min-h-36",value:e.message,onChange:f}),n.message&&(0,s.jsx)("p",{className:"text-red-500 text-sm",children:n.message})]}),(0,s.jsxs)("div",{className:"w-full",children:[(0,s.jsx)(r.Button,{disabled:u,className:"group transition-colors duration-200 flex items-center justify-center gap-2 px-8!",size:"lg",children:"Send"}),o&&(0,s.jsx)("p",{className:"text-secondary text-sm mt-5",children:"Great!!! Email has been Successfully Sent. We will get in touch asap."})]})]})})}),(0,s.jsx)("div",{className:"col-span-12 md:col-span-4",children:(0,s.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,s.jsx)("div",{className:"font-medium text-base",children:"Email:"}),(0,s.jsx)(m.default,{href:"mailto:[email protected]",target:"_blank",className:"text-primary",children:"[email protected]"})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,s.jsx)("div",{className:"font-medium text-base",children:"Website:"}),(0,s.jsx)(m.default,{href:"https://wrappixel.com/",className:"text-primary",target:"_blank",children:"wrappixel.com"})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,s.jsx)("div",{className:"font-medium text-base",children:"Address:"}),(0,s.jsxs)("p",{className:"text-base text-muted",children:["1029-30 Money Plant High Street,",(0,s.jsx)("br",{}),"Jagatpur Road,Gota,",(0,s.jsx)("br",{}),"Ahmedabad, Gujarat-INDIA"]})]})]})})]})]})})})}])},110204,e=>{"use strict";var s=e.i(773359),a=e.i(867960),t=e.i(980939),l=a.forwardRef((e,a)=>(0,s.jsx)(t.Primitive.label,{...e,ref:a,onMouseDown:s=>{s.target.closest("button, input, select, textarea")||(e.onMouseDown?.(s),!s.defaultPrevented&&s.detail>1&&s.preventDefault())}}));l.displayName="Label",e.s(["Label",0,l,"Root",0,l],837587);var i=e.i(837587),i=i,r=e.i(975157);e.s(["Label",0,function({className:e,...a}){return(0,s.jsx)(i.Root,{"data-slot":"label",className:(0,r.cn)("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...a})}],110204)}]);

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.