PageSourceSearch

https://dcode.tech/_next/static/chunks/app/(frontend)/contact/page-a6b96e812d27f5a1.js

js dcode.tech collected 2026-10-03 21:03:03 UTC 8,383 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1779],{914:(e,a,t)=>{"use strict";t.d(a,{default:()=>o});var r=t(95155);t(76293),t(63733);var n=t(20765),l=t(82932);let o=()=>(0,r.jsx)("main",{className:"page page--contact",children:(0,r.jsxs)("div",{className:"page__container",children:[(0,r.jsx)("h1",{className:"page__title",children:"Contact Us"}),(0,r.jsx)("p",{children:"Ready to take your infrastructure to the next level? Get in touch with our team of DevOps experts."}),(0,r.jsxs)("div",{className:"contact-layout",children:[(0,r.jsx)("div",{className:"contact-layout__form",children:(0,r.jsx)(l.default,{variant:"light",source:"contact-page",submitLabel:"Send Message",namePlaceholder:"Your name",emailPlaceholder:"[email protected]",companyPlaceholder:"Your company",messagePlaceholder:"Tell us about your project...",initialEmail:""})}),(0,r.jsxs)("div",{className:"contact-layout__info",children:[(0,r.jsx)("h3",{children:"Get in Touch"}),(0,r.jsxs)("div",{className:"contact-info__block",children:[(0,r.jsx)("strong",{children:"Location"}),(0,r.jsx)("p",{children:"Bursa Tower, Ramat Gan, Israel"})]}),(0,r.jsxs)("div",{className:"contact-info__block",children:[(0,r.jsx)("strong",{children:"Email"}),(0,r.jsx)("p",{children:(0,r.jsx)("a",{href:"mailto:[email protected]",children:"[email protected]"})})]}),(0,r.jsxs)("div",{className:"contact-info__block",children:[(0,r.jsx)("strong",{children:"Schedule a Meeting"}),(0,r.jsx)("p",{children:"Book a free consultation with our DevOps experts to discuss your cloud strategy."}),(0,r.jsx)(n.default,{style:{color:"var(--color-primary, var(--primary-orange))",fontWeight:600,background:"none",border:"none",cursor:"pointer",padding:0},label:"Schedule now →"})]})]})]})]})})},20765:(e,a,t)=>{"use strict";t.d(a,{Z:()=>c,default:()=>i});var r=t(95155),n=t(12115),l=t(47650);let o="https://calendly.com/maordavidov/new-meeting",s=(0,n.createContext)({open:()=>{}});function c(e){let{children:a}=e,[t,c]=(0,n.useState)(!1),[i,d]=(0,n.useState)(!1);return(0,n.useEffect)(()=>d(!0),[]),(0,n.useEffect)(()=>{if(!t)return;document.body.style.overflow="hidden";let e=e=>{"Escape"===e.key&&c(!1)};return window.addEventListener("keydown",e),()=>{document.body.style.overflow="",window.removeEventListener("keydown",e)}},[t]),(0,r.jsxs)(s.Provider,{value:{open:()=>c(!0)},children:[a,i&&t&&(0,l.createPortal)((0,r.jsx)("div",{className:"booking-drawer__overlay",onClick:()=>c(!1),children:(0,r.jsxs)("div",{className:"booking-drawer__panel",onClick:e=>e.stopPropagation(),children:[(0,r.jsxs)("div",{className:"booking-drawer__header",children:[(0,r.jsx)("span",{className:"booking-drawer__title",children:"Schedule a Meeting"}),(0,r.jsx)("button",{className:"booking-drawer__close",onClick:()=>c(!1),"aria-label":"Close",children:"✕"})]}),(0,r.jsx)("iframe",{src:o,className:"booking-drawer__iframe",title:"Book a meeting with Dcode",allowFullScreen:!0})]})}),document.body)]})}function i(e){let{className:a,label:t,style:l}=e,{open:c}=(0,n.useContext)(s),i=(0,n.useCallback)(e=>{e.preventDefault(),c()},[c]);return(0,r.jsx)("a",{href:o,onClick:i,className:a,style:l,children:t??"Schedule a meeting →"})}},27565:(e,a,t)=>{Promise.resolve().then(t.bind(t,914))},63733:()=>{},76293:()=>{},82932:(e,a,t)=>{"use strict";t.d(a,{default:()=>s});var r=t(95155),n=t(12115);let l="cf-turnstile-script";function o(e){let{onToken:a,theme:t="auto"}=e,o=(0,n.useRef)(null),s=(0,n.useRef)(null),c="0x4AAAAAADJnAK36z-v_2X4P",i=(0,n.useCallback)(e=>a(e),[a]),d=(0,n.useCallback)(()=>a(null),[a]);return((0,n.useEffect)(()=>{if(!c||!o.current)return;!function(){if(document.getElementById(l))return;let e=document.createElement("script");e.id=l,e.src="https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit",e.async=!0,document.head.appendChild(e)}();let e=setInterval(()=>{window.turnstile&&o.current&&(clearInterval(e),s.current||(s.current=window.turnstile.render(o.current,{sitekey:c,callback:i,"expired-callback":d,"error-callback":d,theme:t,size:"invisible"})))},100);return()=>{clearInterval(e),s.current&&window.turnstile&&(window.turnstile.remove(s.current),s.current=null)}},[c,i,d,t]),c)?(0,r.jsx)("div",{ref:o}):null}let s=e=>{let{submitLabel:a="Send Message",source:t,subject:l,extraField:s,namePlaceholder:c="Name",emailPlaceholder:i="Work email",companyPlaceholder:d="Company",messagePlaceholder:u="How can we help?",successMessage:m="Thank y
1ou! We'll be in touch shortly.",initialEmail:h="",variant:p="dark"}=e,f="light"===p?" contact-form--light":"",[_,x]=(0,n.useState)({name:"",email:h,company:"",message:"",extra:""}),[g,v]=(0,n.useState)(""),[j,y]=(0,n.useState)(null),b=(0,n.useCallback)(e=>y(e),[]),k=(0,n.useRef)(Date.now()),[w,N]=(0,n.useState)(!1),[C,S]=(0,n.useState)("idle"),[E,P]=(0,n.useState)(""),[D,A]=(0,n.useState)({}),I=e=>{let{name:a,value:t}=e.target;x(e=>({...e,[a]:t})),D[a]&&A(e=>({...e,[a]:void 0}))},O=async e=>{e.preventDefault();let a=(()=>{let e={};return _.name.trim()||(e.name="Name is required."),_.email.trim()?/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(_.email.trim())||(e.email="Please enter a valid email address."):e.email="Email is required.",e})();if(Object.keys(a).length>0)return void A(a);if(!w){S("error"),P("Please agree to receive communications from Dcode to submit this form.");return}A({}),S("sending"),P("");let r={name:_.name,email:_.email,company:_.company,message:_.message,marketingConsent:!0,_url:g,_t:Math.floor((Date.now()-k.current)/1e3),...j?{"cf-turnstile-response":j}:{}};t&&(r.source=t),l&&(r.subject=l),s&&_.extra&&(r[s.name]=_.extra);try{let e=await fetch("/api/contact",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)}),a=await e.json().catch(()=>({}));if(!e.ok){S("error"),P(a?.error||"Something went wrong. Please try again.");return}S("success"),x({name:"",email:"",company:"",message:"",extra:""}),N(!1)}catch{S("error"),P("Network error. Please try again.")}};return"success"===C?(0,r.jsx)("div",{className:`contact-form__success${f}`,role:"status","aria-live":"polite",children:m}):(0,r.jsxs)("form",{className:`contact-form${f}`,onSubmit:O,noValidate:!0,children:[(0,r.jsxs)("div",{style:{position:"absolute",left:"-9999px",opacity:0,height:0,overflow:"hidden"},"aria-hidden":"true",children:[(0,r.jsx)("label",{htmlFor:"cf_url",children:"Website"}),(0,r.jsx)("input",{type:"text",id:"cf_url",name:"_url",tabIndex:-1,autoComplete:"off",value:g,onChange:e=>v(e.target.value)})]}),(0,r.jsxs)("div",{className:"contact-form__field",children:[(0,r.jsx)("input",{className:`contact-form__input${D.name?" contact-form__input--error":""}`,type:"text",name:"name",placeholder:c,required:!0,value:_.name,onChange:I,autoComplete:"name"}),D.name&&(0,r.jsx)("span",{className:"contact-form__field-error",children:D.name})]}),(0,r.jsxs)("div",{className:"contact-form__field",children:[(0,r.jsx)("input",{className:`contact-form__input${D.email?" contact-form__input--error":""}`,type:"email",name:"email",placeholder:i,required:!0,value:_.email,onChange:I,autoComplete:"email"}),D.email&&(0,r.jsx)("span",{className:"contact-form__field-error",children:D.email})]}),(0,r.jsx)("input",{className:"contact-form__input",type:"text",name:"company",placeholder:d,value:_.company,onChange:I,autoComplete:"organization"}),s&&(0,r.jsxs)("select",{className:"contact-form__input contact-form__select",name:"extra",value:_.extra,onChange:I,"aria-label":s.placeholder,children:[(0,r.jsx)("option",{value:"",children:s.placeholder}),s.options.map(e=>(0,r.jsx)("option",{value:e.value,children:e.label},e.value))]}),(0,r.jsx)("textarea",{className:"contact-form__input contact-form__textarea",name:"message",placeholder:u,rows:3,value:_.message,onChange:I}),(0,r.jsxs)("label",{className:"contact-form__consent",children:[(0,r.jsx)("input",{type:"checkbox",checked:w,onChange:e=>N(e.target.checked),required:!0}),(0,r.jsx)("span",{children:"I agree to receive follow-ups and occasional updates from Dcode by email. You can unsubscribe anytime."})]}),(0,r.jsx)(o,{onToken:b,theme:"dark"===p?"dark":"light"}),"error"===C&&(0,r.jsx)("p",{className:"contact-form__error",role:"alert",children:E}),(0,r.jsx)("button",{type:"submit",className:"hero-v2__cta hero-v2__cta--primary contact-form__submit",disabled:"sending"===C||!w,children:"sending"===C?"Sending…":a})]})}}},e=>{e.O(0,[6532,6260,8441,5964,7358],()=>e(e.s=27565)),_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.