PageSourceSearch

https://ismshed.ai/_next/static/chunks/3397.c5c7975ba4e2e995.js

js ismshed.ai collected 2026-10-05 15:06:18 UTC 8,327 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3397],{3397:function(e,a,t){t.r(a),t.d(a,{default:function(){return b}});var s=t(7437),r=t(2265),l=t(7278),i=t(4644);let n=(0,t(4413).Z)("mail",[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]]);var c=t(335),o=t(8110),d=t(4722),m=t(8789),x=t(5897),u=t(1662),h=t(121),p=t(3036),g=t(8871);let f={hidden:{},show:{transition:{staggerChildren:.1}}},v={hidden:{opacity:0,y:30},show:{opacity:1,y:0,transition:{duration:.6,ease:[.25,.46,.45,.94]}}},y=/^[^\s@]+@[^\s@]+\.[^\s@]+$/;function b(e){let{source:a="ismshed"}=e,{t}=(0,u.$)(),b=(0,h.a)(),[j,N]=(0,r.useState)("idle"),[w,k]=(0,r.useState)({name:"",email:"",message:""}),[C,M]=(0,r.useState)({}),[F,q]=(0,r.useState)(""),L=(0,r.useRef)(!1),z=(0,r.useRef)(null),E=(0,r.useRef)(null),S=(0,r.useRef)(null),{open:Z}=(0,g.v)(),_="services"===a?t("booking.services.bookConsultation"):t("contact.scheduleDemo"),R="services"===a?"[email protected]":null,D=e=>{M(a=>a[e]?{...a,[e]:void 0}:a),"error"===j&&N("idle")},B=e=>{var a,t,s;e.name?null===(a=z.current)||void 0===a||a.focus():e.email?null===(t=E.current)||void 0===t||t.focus():e.message&&(null===(s=S.current)||void 0===s||s.focus())},T=e=>{if(e)return"email"===e?t("contact.errorEmail"):t("contact.errorRequired")},I=async e=>{if(e.preventDefault(),L.current)return;let t=w.name.trim(),s=w.email.trim(),r=w.message.trim(),l={};if(t||(l.name="required"),s?y.test(s)||(l.email="email"):l.email="required",r||(l.message="required"),M(l),Object.keys(l).length>0){N("idle"),B(l);return}L.current=!0,N("sending");try{if(!(await fetch("/api/contact",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:t,email:s,message:r,company_website:F,source:a})})).ok)throw Error("failed");N("done"),k({name:"",email:"",message:""}),M({})}catch(e){N("error")}finally{L.current=!1}},O=y.test(w.email),P=!!C.email||""!==w.email&&!O;return(0,s.jsxs)(l.m.section,{ref:b.ref,id:"contact",className:"ax-ch-close relative overflow-hidden py-24 lg:py-32 scroll-mt-32",variants:f,initial:b.initial,animate:b.animate,children:[(0,s.jsx)("div",{className:"pointer-events-none absolute bottom-0 left-1/2 -translate-x-1/2 w-[720px] h-[360px] max-w-full opacity-20 blur-3xl",style:{background:"radial-gradient(ellipse at center, #7E26EC, transparent 70%)"}}),(0,s.jsx)(p.MotionItem,{tier:"cta",className:"max-w-[1180px] mx-auto px-6 lg:px-8 relative z-10",children:(0,s.jsxs)("div",{className:"grid grid-cols-1 items-center gap-12 lg:grid-cols-[minmax(0,0.85fr)_minmax(0,1fr)] lg:gap-16",children:[(0,s.jsxs)(l.m.div,{variants:v,className:"flex flex-col items-center text-center lg:items-start lg:text-start",children:[(0,s.jsxs)("span",{className:"ax-eyebrow",children:[(0,s.jsx)(n,{className:"w-3.5 h-3.5 text-[color:var(--ax-viz-gold)]"}),t("contactButton.getInTouch")]}),(0,s.jsx)("h2",{dir:"auto",className:"ax-t-sm ax-display mt-6 text-balance text-fg",children:t("contact.title")}),(0,s.jsx)("p",{dir:"auto",className:"ax-lead mt-6 max-w-md text-pretty text-fgbody",children:t("contact.description")}),(0,s.jsxs)(i.z,{type:"button",onClick:()=>Z(),className:"ax-btn-gold mt-8 cursor-pointer rounded-full text-sm font-bold px-7 py-6",children:[(0,s.jsx)(c.Z,{className:"w-4 h-4 me-2"}),_]})]}),(0,s.jsx)(l.m.div,{variants:v,children:"done"===j?(0,s.jsxs)("div",{role:"status",className:"flex flex-col items-center gap-4 bg-surface border border-[#FFCE01]/30 rounded-3xl py-14 px-8 text-center backdrop-blur-xl",children:[(0,s.jsx)(o.Z,{className:"w-14 h-14 text-[color:var(--ax-viz-gold)]"}),(0,s.jsx)("p",{className:"text-fg text-xl font-semibold",children:t("contact.successMessage")}),(0,s.jsx)("p",{className:"text-fgbody",children:t("contactButton.successDescription")})]}):(0,s.jsxs)("form",{onSubmit:I,noValidate:!0,className:"ax-card ax-card-flat rounded-3xl p-6 md:p-8 lg:p-10 space-y-5",children:[(0,s.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[(0,s.jsxs)("div",{className:"ax-field",children:[(0,s.jsx)("input",{ref:z,id:"ax-contact-name",name:"name",type:"text",autoComplete:"name",required:!0,maxLength:200,"aria-required":"true","aria-invalid":C.name?"true":void 0,"aria-describedby":C.name?"ax-contact-name-error":void 0,className:"ax-field-input ".concat(C.name?"ax-invalid":""),placeholder:t("contact.nameLabel"),value:w.name,onChange:e=>{k(a=>({...a,name:e.target.value})),D("name")}}),(0,s.jsx)("label",{htmlFor:"ax-contact-name",className:"ax-field-label",children:t("contact.nameLabel")}),C.name&&(0,s.jsx)("p",{id:"ax-contact-name-error",role:"alert",className:"mt-1.5 text-red-400 text-xs",children:T(C.name)})]}),(0,s.jsxs)("div",{className:"ax-field",children:[(0,s.jsx)("input",{ref:E,id:"ax-contact-email",name:"email",type:"email",autoComplete:"email",inputMode:"email",required:!0,maxLength:320,"aria-required":"true","aria-invalid":P?"true":void 0,"aria-describedby":C.email?"ax-contact-email-error":void 0,className:"ax-field-input ".concat(P?"ax-invalid":w.email&&O?"ax-vali
1d":""),placeholder:t("contact.emailLabel"),value:w.email,onChange:e=>{k(a=>({...a,email:e.target.value})),D("email")}}),(0,s.jsx)("label",{htmlFor:"ax-contact-email",className:"ax-field-label",children:t("contact.emailLabel")}),C.email&&(0,s.jsx)("p",{id:"ax-contact-email-error",role:"alert",className:"mt-1.5 text-red-400 text-xs",children:T(C.email)})]})]}),(0,s.jsxs)("div",{className:"ax-field",children:[(0,s.jsx)("textarea",{ref:S,id:"ax-contact-message",name:"message",rows:5,required:!0,maxLength:5e3,"aria-required":"true","aria-invalid":C.message?"true":void 0,"aria-describedby":C.message?"ax-contact-message-error":void 0,className:"ax-field-input resize-none ".concat(C.message?"ax-invalid":""),placeholder:t("contact.messageLabel"),value:w.message,onChange:e=>{k(a=>({...a,message:e.target.value})),D("message")}}),(0,s.jsx)("label",{htmlFor:"ax-contact-message",className:"ax-field-label",children:t("contact.messageLabel")}),C.message&&(0,s.jsx)("p",{id:"ax-contact-message-error",role:"alert",className:"mt-1.5 text-red-400 text-xs",children:T(C.message)})]}),(0,s.jsxs)("div",{"aria-hidden":"true",style:{position:"absolute",left:"-9999px",width:"1px",height:"1px",overflow:"hidden"},children:[(0,s.jsx)("label",{htmlFor:"ax-contact-hp",children:t("contact.honeypotLabel")}),(0,s.jsx)("input",{id:"ax-contact-hp",type:"text",name:"hp_field",tabIndex:-1,autoComplete:"new-password","data-lpignore":"true","data-1p-ignore":"true",value:F,onChange:e=>q(e.target.value)})]}),"error"===j&&(0,s.jsx)("p",{role:"alert",className:"text-red-400 text-sm",children:R?(0,s.jsxs)(s.Fragment,{children:[t("contact.errorSend")," ",(0,s.jsx)("a",{href:"mailto:".concat(R),className:"underline text-[color:var(--ax-viz-gold)] hover:text-[#FFD84D]",children:R})]}):t("contact.errorSendNoEmail")}),(0,s.jsx)(i.z,{type:"submit",disabled:"sending"===j,onMouseMove:e=>{let a=e.currentTarget,t=a.getBoundingClientRect();a.style.setProperty("--mx","".concat(e.clientX-t.left,"px")),a.style.setProperty("--my","".concat(e.clientY-t.top,"px"))},className:"ax-btn-ink w-full cursor-pointer rounded-full border-none py-6 text-sm font-bold transition-transform duration-300 ease-in-out hover:-translate-y-0.5 disabled:opacity-60 disabled:hover:translate-y-0",children:"sending"===j?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(d.Z,{className:"w-4 h-4 me-2 animate-spin"}),t("contact.sending")]}):(0,s.jsxs)(s.Fragment,{children:[t("contact.sendButton"),(0,s.jsx)(m.Z,{className:"w-4 h-4 ms-2"})]})}),(0,s.jsxs)("p",{className:"flex items-center justify-center gap-2 text-center text-xs text-fgmuted",children:[(0,s.jsx)(x.Z,{className:"w-3.5 h-3.5 text-[#FFCE01]/80 flex-shrink-0"}),t("contact.trustLine")]})]})})]})})]})}},335:function(e,a,t){t.d(a,{Z:function(){return s}});let s=(0,t(4413).Z)("calendar-days",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]])}}]);

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.