1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9289],{12700:function(e,s,t){t.d(s,{Z:function(){return j}});var a=t(57437),r=t(2265),n=t(29501),i=t(13590),l=t(67119),o=t(12381),m=t(93448);let c=r.forwardRef((e,s)=>{let{className:t,type:r,...n}=e;return(0,a.jsx)("input",{type:r,className:(0,m.cn)("flex h-11 min-h-[44px] w-full rounded-md border border-input bg-background px-3.5 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",t),ref:s,...n})});c.displayName="Input";let d=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)("textarea",{className:(0,m.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",t),ref:s,...r})});d.displayName="Textarea";var u=t(89345),p=t(13041),x=t(82718),f=t(31047),h=t(40875),b=t(44743),g=t(23340),v=t(72926);let N=l.Ry({name:l.Z_().trim().min(1,{message:"Name is required"}).max(100,{message:"Name must be less than 100 characters"}),email:l.Z_().trim().email({message:"Invalid email address"}).max(255,{message:"Email must be less than 255 characters"}),phone:l.Z_().trim().optional().refine(e=>!e||/^\+?[\d\s\-\(\)]{10,20}$/.test(e),{message:"Invalid phone number format"}),company:l.Z_().trim().max(100,{message:"Company name must be less than 100 characters"}).optional(),service:l.Z_().trim().min(1,{message:"Please select a service"}),budget:l.Z_().trim().optional(),timeline:l.Z_().trim().optional(),message:l.Z_().trim().max(1e3,{message:"Message must be less than 1000 characters"}).optional(),terms:l.O7().refine(e=>!0===e,{message:"Please accept the terms and conditions"})});var j=()=>{var e;let[s,t]=(0,r.useState)(!1),{toast:l}=(0,g.pm)(),{register:m,handleSubmit:j,formState:{errors:y},reset:S,watch:w,setValue:T}=(0,n.cI)({resolver:(0,i.F)(N),defaultValues:{terms:!1}});u.Z,p.Z,x.Z,f.Z;let _=async e=>{t(!0);try{await v.ZP.send("service_gki9jcu","template_5uomjy8",{...e,date:new Date().toLocaleString()},"lbs3tu8TZk1knkjqe"),l({title:"Message sent successfully!",description:"We'll get back to you within 24 hours."}),S()}catch(e){console.error(e),l({title:"Error sending message",description:"Please try again or contact us directly.",variant:"destructive"})}finally{t(!1)}};return(0,a.jsx)("div",{className:"",children:(0,a.jsx)("section",{className:"",children:(0,a.jsxs)("form",{onSubmit:j(_),className:"space-y-6",children:[(0,a.jsxs)("div",{className:"grid md:grid-cols-2 gap-6",children:[(0,a.jsxs)("div",{children:[(0,a.jsxs)("label",{htmlFor:"form-name",className:"text-sm font-medium text-foreground mb-2 block",children:["Name ",(0,a.jsx)("span",{className:"text-rose-500",children:"*"})]}),(0,a.jsx)(c,{id:"form-name","aria-label":"Full Name",...m("name"),placeholder:"Your full name",className:y.name?"border-destructive":""}),y.name&&(0,a.jsx)("p",{className:"text-sm text-destructive mt-1",children:y.name.message})]}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("label",{htmlFor:"form-email",className:"text-sm font-medium text-foreground mb-2 block",children:["Email ",(0,a.jsx)("span",{className:"text-rose-500",children:"*"})]}),(0,a.jsx)(c,{id:"form-email","aria-label":"Email Address",...m("email"),type:"email",placeholder:"[email protected]",className:y.email?"border-destructive":""}),y.email&&(0,a.jsx)("p",{className:"text-sm text-destructive mt-1",children:y.email.message})]})]}),(0,a.jsxs)("div",{className:"grid md:grid-cols-2 gap-6",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{htmlFor:"form-phone",className:"text-sm font-medium text-foreground mb-2 block",children:"Phone"}),(0,a.jsx)(c,{id:"form-phone","aria-label":"Phone Number",...m("phone"),placeholder:"+1 (555) 123-4567",className:y.phone?"border-destructive":""}),y.phone&&(0,a.jsx)("p",{className:"text-sm text-destructive mt-1",children:y.phone.message})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{htmlFor:"form-company",className:"text-sm font-medium text-foreground mb-2 block",children:"Company"}),(0,a.jsx)(c,{id:"form-company","aria-label":"Company Name",...m("company"),placeholder:"Your company name",className:y.company?"border-destructive":""}),y.company&&(0,a.jsx)("p",{className:"text-sm text-destructive mt-1",children:y.company.message})]})]}),(0,a.jsx)("div",{className:"grid md:grid-cols-1 gap-6",children:(0,a.jsxs)("div",{children:[(0,a.jsxs)("label",{htmlFor:"form-service",className:"text-sm font-medium text-foreground mb-2 block",children:["Service Needed ",(0,a.jsx)("span",{className:"text-rose-500",children:"*"})]}),(0,a.jsxs)("div",{className:"relative w-full",children:[(0,a.jsxs)("select",{id:"form-service","aria-label":"Service Needed",...m("service"),className:"w-full h-11 min-h-[44px] px-4 py-2.5 border md:text-sm text-muted-foreground appearance-none rounded-md bg-background ".concat(y.service?"border-destructive":"border-border"),children:[(0,a.jsx)("option",{value:"",children:"Select a service"}),["Web Application Development","Mobile App Development","Salesforce Development","Custom Software Development","UI/UX Design","QA & Softw
1are Testing","AI & Machine Learning","SaaS Development","CMS Development","Technical Consulting","Maintenance & Support","Other"].map(e=>(0,a.jsx)("option",{value:e,children:e},e))]}),y.service&&(0,a.jsx)("p",{className:"text-sm text-destructive mt-1",children:y.service.message}),(0,a.jsx)(h.Z,{className:"absolute right-3 top-1/2 w-4 h-4 text-foreground pointer-events-none -translate-y-1/2"})]})]})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{htmlFor:"form-message",className:"text-sm font-medium text-foreground mb-2 block",children:"Project Description"}),(0,a.jsx)(d,{id:"form-message","aria-label":"Project Description",...m("message"),placeholder:"Tell us about your project goals, requirements, and any specific features you have in mind...",rows:6,className:y.message?"border-destructive":""}),y.message&&(0,a.jsx)("p",{className:"text-sm text-destructive mt-1",children:y.message.message}),(0,a.jsxs)("p",{className:"text-xs text-muted-foreground mt-1",children:[(null===(e=w("message"))||void 0===e?void 0:e.length)||0,"/1000 characters"]})]}),(0,a.jsxs)("div",{className:"flex items-start gap-3 pt-2",children:[(0,a.jsx)("input",{type:"checkbox",...m("terms"),className:"w-5 h-5 min-w-[20px] min-h-[20px] mt-0.5 rounded border-border accent-primary cursor-pointer",id:"terms"}),(0,a.jsxs)("label",{htmlFor:"terms",className:"text-sm text-muted-foreground cursor-pointer select-none",children:["I agree to the ",(0,a.jsx)("span",{className:"text-red-500",children:"terms and conditions"})," and ",(0,a.jsx)("span",{className:"text-red-500",children:"privacy policy."})," I consent to Creative Encode Technologies contacting me about this inquiry. *"]})]}),y.terms&&(0,a.jsx)("p",{className:"text-sm text-destructive",children:y.terms.message}),(0,a.jsx)(o.z,{type:"submit",disabled:s,className:"w-full bg-gradient-primary text-white hover:opacity-90 transition-all text-sm 2xl:text-base py-6",children:s?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"animate-spin rounded-full h-4 w-4 border-b-2 border-white mr-2"}),"Sending..."]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(b.Z,{className:"w-5 h-5 mr-2"}),"Send Message"]})})]})})})}},22549:function(e,s,t){t.d(s,{Qd:function(){return m},UQ:function(){return o},o4:function(){return c},vF:function(){return d}});var a=t(57437),r=t(2265),n=t(13134),i=t(40875),l=t(93448);let o=n.fC,m=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)(n.ck,{ref:s,className:(0,l.cn)("border-b",t),...r})});m.displayName="AccordionItem";let c=r.forwardRef((e,s)=>{let{className:t,children:r,...o}=e;return(0,a.jsx)(n.h4,{className:"flex",children:(0,a.jsxs)(n.xz,{ref:s,className:(0,l.cn)("flex flex-1 items-center justify-between py-4 text-base md:text-xl font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",t),...o,children:[r,(0,a.jsx)(i.Z,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})})});c.displayName=n.xz.displayName;let d=r.forwardRef((e,s)=>{let{className:t,children:r,...i}=e;return(0,a.jsx)(n.VY,{ref:s,className:"overflow-hidden text-md transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...i,children:(0,a.jsx)("div",{className:(0,l.cn)("pb-4 pt-0",t),children:r})})});d.displayName=n.VY.displayName},23340:function(e,s,t){t.d(s,{pm:function(){return u}});var a=t(2265);let r=0,n=new Map,i=e=>{if(n.has(e))return;let s=setTimeout(()=>{n.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);n.set(e,s)},l=(e,s)=>{switch(s.type){case"ADD_TOAST":return{...e,toasts:[s.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===s.toast.id?{...e,...s.toast}:e)};case"DISMISS_TOAST":{let{toastId:t}=s;return t?i(t):e.toasts.forEach(e=>{i(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===t||void 0===t?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===s.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==s.toastId)}}},o=[],m={toasts:[]};function c(e){m=l(m,e),o.forEach(e=>{e(m)})}function d(e){let{...s}=e,t=(r=(r+1)%Number.MAX_SAFE_INTEGER).toString(),a=()=>c({type:"DISMISS_TOAST",toastId:t});return c({type:"ADD_TOAST",toast:{...s,id:t,open:!0,onOpenChange:e=>{e||a()}}}),{id:t,dismiss:a,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:t}})}}function u(){let[e,s]=a.useState(m);return a.useEffect(()=>(o.push(s),()=>{let e=o.indexOf(s);e>-1&&o.splice(e,1)}),[e]),{...e,toast:d,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.