(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[335],{874:function(e,t,a){"use strict";var n=a(4836);t.Z=void 0;var c=n(a(4938)),o=a(5893),l=(0,c.default)([(0,o.jsx)("path",{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zM7 9c0-2.76 2.24-5 5-5s5 2.24 5 5c0 2.88-2.88 7.19-5 9.88C9.92 16.21 7 11.85 7 9z"},"0"),(0,o.jsx)("circle",{cx:"12",cy:"9",r:"2.5"},"1")],"LocationOnOutlined");t.Z=l},7897:function(e,t,a){"use strict";var n=a(4836);t.Z=void 0;var c=n(a(4938)),o=a(5893),l=(0,c.default)((0,o.jsx)("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H4V8l8 5 8-5v10zm-8-7L4 6h16l-8 5z"}),"MailOutlineOutlined");t.Z=l},6994:function(e,t,a){"use strict";var n=a(4836);t.Z=void 0;var c=n(a(4938)),o=a(5893),l=(0,c.default)((0,o.jsx)("path",{d:"M6.54 5c.06.89.21 1.76.45 2.59l-1.2 1.2c-.41-1.2-.67-2.47-.76-3.79h1.51m9.86 12.02c.85.24 1.72.39 2.6.45v1.49c-1.32-.09-2.59-.35-3.8-.75l1.2-1.19M7.5 3H4c-.55 0-1 .45-1 1 0 9.39 7.61 17 17 17 .55 0 1-.45 1-1v-3.49c0-.55-.45-1-1-1-1.24 0-2.45-.2-3.57-.57-.1-.04-.21-.05-.31-.05-.26 0-.51.1-.71.29l-2.2 2.2c-2.83-1.45-5.15-3.76-6.59-6.59l2.2-2.2c.28-.28.36-.67.25-1.02C8.7 6.45 8.5 5.25 8.5 4c0-.55-.45-1-1-1z"}),"PhoneOutlined");t.Z=l},9055:function(e,t,a){"use strict";var n=a(4836);t.Z=void 0;var c=n(a(4938)),o=a(5893),l=(0,c.default)((0,o.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z"}),"Public");t.Z=l},8105:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/contact",function(){return a(2894)}])},2894:function(e,t,a){"use strict";a.r(t),a.d(t,{__N_SSG:function(){return w},default:function(){return M}});var n=a(5893),c=a(7294),o=a(7357),l=a(5861),i=a(1737),r=a(6886),s=a(4398),m=a(480),d=a(5071),u=a(5582),x=a(6858),h=a(1163),p=a(9008),j=a.n(p),g=a(874),f=a(7897),y=a(6994),Z=a(4853),v=a(497),_=a(9593),b=a(1575),C=a(9055),w=!0;function M(e){let{data:t}=e,a=(0,h.useRouter)(),p=e=>{let{icon:t,content:a,url:c}=e;return(0,n.jsxs)(o.Z,{sx:{display:"inline-flex",width:"100%",alignItems:"center",my:1},children:[(0,n.jsx)(o.Z,{sx:{color:e=>e.palette.primary.main,flex:"0 0 50px",mb:-.5},children:t}),(0,n.jsx)(o.Z,{...c&&{component:"a",href:c,sx:{textDecoration:"none"}},children:(0,n.jsx)(l.Z,{variant:"body1",dangerouslySetInnerHTML:{__html:a}})})]})};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(j(),{children:[(0,n.jsx)("title",{children:"Contact | ".concat("Fermele Moraru")}),(0,n.jsx)("meta",{property:"og:description",content:"ro"==a.locale?"Contactează-ne":"Contact us"}),(0,n.jsx)("meta",{name:"description",content:"ro"==a.locale?"Contactează-ne":"Contact us"})]}),(0,n.jsx)(v.Z,{meta:t.meta,children:(0,n.jsx)(u.Z,{maxWidth:"lg",sx:{pt:{xs:20,md:24,lg:28},pb:{xs:8,md:12,lg:16}},children:(0,n.jsxs)(r.ZP,{container:!0,spacing:5,children:[(0,n.jsx)(r.ZP,{item:!0,xs:12,md:5,children:(0,n.jsxs)(b.M,{delay:.1,children:[(0,n.jsx)(l.Z,{variant:"title",component:"h2",sx:{mb:{xs:5,md:10}},children:"ro"==a.locale?"Contactează-ne":"Contact us"}),(0,n.jsx)(l.Z,{variant:"body1",sx:{my:2},children:"ro"==a.locale?"Locație":"Location"}),(0,n.jsx)(p,{icon:(0,n.jsx)(g.Z,{}),content:t.meta.contact.address}),(0,n.jsx)(l.Z,{variant:"body1",sx:{my:2},children:"Info"}),(0,n.jsx)(p,{icon:(0,n.jsx)(f.Z,{}),content:t.meta.contact.email,url:"mailto:".concat(t.meta.contact.email)}),(0,n.jsx)(p,{icon:(0,n.jsx)(y.Z,{}),content:t.meta.contact.phone,url:"tel:".concat(t.meta.contact.phone)}),null!=t.meta.contact.social_media1&&""!=t.meta.contact.social_media1&&(0,n.jsx)(p,{icon:(0,n.jsx)(C.Z,{}),content:t.meta.contact.social_media1,url:"".concat(t.meta.contact.social_media1)}),null!=t.meta.contact.social_media2&&""!=t.meta.contact.social_media2&&(0,n.jsx)(p,{icon:(0,n.jsx)(C.Z,{}),content:t.meta.contact.social_media2,url:"".concat(t.meta.contact.social_media2)}),null!=t.meta.contact.social_media3&&""!=t.meta.contact.social_media3&&(0,n.jsx)(p,{icon:(0,n.jsx)(C.Z,{}),content:t.meta.contact.social_media3,url:"".concat(t.meta.contact.social_media3)}),null!=t.meta.contact.social_media4&&""!=t.meta.contact.social_media4&&(0,n.jsx)(p,{icon:(0,n.jsx)(C.Z,{}),content:t.meta.contact.social_media4,url:"".concat(t.meta.contact.social_media4)})]})}),(0,n.jsx)(r.ZP,{item:!0,xs:12,md:7,children:(0,n.jsx)(o.Z,{sx:{py:{xs:3,md:6},px:{xs:4,md:8},background:e=>e.palette.neutral.light},children:(0,n.jsx)(e=>{let[t,u]=c.useState(!1),[h,p]=c.useState(!1),[j,g]=c.useState(null),[f,y]=c.useState(null),[v,C]=c.useState(!1),[w,M]=c.useState({firstName:"",lastName:"",phone:"",email:"",message:""}),S={firstName:null,lastName:null,phone:null,email:null,message:null},[P,z]=c.useState(S),k=c.createRef(),N=async e=>{e.preventDefault(),z(S),y(null),g(null);let t=await k.current.executeAsync();if(!v){y(!1),g("ro"==a.locale?"Trebuie să fii de acord cu Termenii și Condițiile pentru a putea continua.":"You must first agree with the Terms and Conditions.");return}p(!0),_.Z.post("/contact",{...w,"g-recaptcha-response":t}).then(e=>{e.data.success?(y(!0),g(e.data.message)):(y(!1),g(e.data.message?e.data.message:null),z({...P,...e.data.field_errors&&e.data.field_errors})),p(!1)}).catch(e=>{g(e.response&&e.response.data&&e.response.data.message?e.response.data.message:"Something went wrong. Please try again later."),p(!1)})},T=e=>{t||u(!0),M({...w,[e.target.name]:e.target.value}),z({...P,[e.target.name]:null})},H=[{type:"text",name:"lastName",label:"ro"==a.locale?"Nume":"Last name",placeHolder:"ro"==a.locale?"Popescu":"Johnson"},{type:"text",name:"firstName",label:"ro"==a.locale?"Prenume":"First name",placeHolder:"ro"==a.locale?"Ioan":"John"},{type:"text",name:"phone",label:"ro"==a.locale?"Telefon":"Phone number",placeHolder:"ro"==a.locale?"Nr. tău de telefon":"Your phone number"},{type:"email",name:"email",label:"Email",placeHolder:"ro"==a.locale?"exemplu@mail.com":"example@mail.com"},{type:"textarea",name:"message",label:"ro"==a.locale?"Mesaj":"Message",placeHolder:"ro"==a.locale?"Mesajul tău...":"Your message..."}];return(0,n.jsx)(o.Z,{component:"form",onSubmit:N,children:f?(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(i.Z,{severity:"success",children:j})}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(b.M,{delay:.2,children:(0,n.jsx)(l.Z,{variant:"h6",sx:{fontWeight:400,fontSize:{xs:"1.25rem",md:"1.5rem"}},children:"ro"==a.locale?"Completează formularul de mai jos și te contactăm \xeen cel mai scurt timp.":"Fill the form below and we'll get back to you as soon as possible."})}),(0,n.jsx)(b.M,{delay:.3,children:(0,n.jsxs)(r.ZP,{container:!0,spacing:3,rowSpacing:2,sx:{mt:2},children:[H.map((e,t)=>(0,c.createElement)(r.ZP,{item:!0,xs:12,..."textarea"!=e.type&&{md:6},key:t},(0,n.jsx)(s.Z,{type:e.type,id:e.name,name:e.name,label:e.label,placeholder:e.placeHolder,value:w[e.name],variant:"standard",fullWidth:!0,error:!!P[e.name],helperText:P[e.name],multiline:"textarea"==e.type,rows:4,onChange:T,required:!0,sx:{"& .MuiInputLabel-root":{fontWeight:400},"& .MuiInput-root":{color:"white",fontWeight:400,"&:before":{borderColor:"rgba(255, 255, 255, 0.5) !important"}}}}))),(0,n.jsx)(r.ZP,{item:!0,xs:12,children:(0,n.jsx)(m.Z,{control:(0,n.jsx)(d.Z,{onChange:e=>{C(e.target.checked),g(null),z(S)},checked:v,sx:{"& .MuiTypography-root":{fontWeight:400},"&:not(.Mui-checked) .MuiSvgIcon-root":{color:"white"}}}),label:"ro"==a.locale?"Am citit și sunt de acord cu Termenii și Condițiile site-ului.":"I read and agree with the Terms and Conditions."})}),!!j&&(0,n.jsx)(r.ZP,{item:!0,xs:12,children:(0,n.jsx)(i.Z,{severity:f?"warning":"error",children:j||"Something went wrong. Please try again later."})}),(0,n.jsx)(r.ZP,{item:!0,xs:12,children:(0,n.jsx)(x.Z,{fullWidth:!0,size:"large",variant:"secondary",type:"submit",sx:{display:"flex","& .MuiLoadingButton-loadingIndicator":{color:"white"}},loading:h,children:"ro"==a.locale?"Trimite":"Send"})})]})}),t&&(0,n.jsx)(Z.Z,{ref:k,size:"invisible",sitekey:"6LcSybwpAAAAACSqWKsZzAifkEkeVK7kPkCje7y0",onChange:e=>{e&&k.current.reset()}})]})})},{})})})]})})})]})}},497:function(e,t,a){"use strict";var n=a(5893),c=a(2023),o=a(9889),l=a(9199);t.Z=e=>{let{children:t,...a}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(l.Z,{...a.meta.menu,logo_site:a.meta.logo_site}),(0,n.jsxs)(c.E.div,{initial:{y:0,opacity:0,scale:1.05},animate:{y:0,opacity:1,scale:1},exit:{y:0,opacity:0,scale:1},transition:{type:"ease-in",duration:.5},style:{transformOrigin:"top center"},children:[t,(0,n.jsx)(o.Z,{meta:a.meta})]})]})}},1575:function(e,t,a){"use strict";a.d(t,{M:function(){return l},U:function(){return i}});var n=a(5893);a(7294);var c=a(2708),o=a(2023);let l=e=>{let{delay:t,children:a}=e,[l,i]=(0,c.YD)({triggerOnce:!0}),r={opacity:0,scale:.95,y:50};return(0,n.jsx)(o.E.div,{ref:l,initial:r,animate:i?{opacity:1,scale:1,y:0}:r,transition:{duration:.2,delay:.1+(t||0),type:"spring",stiffness:100},children:a})},i=e=>{let t=Math.round(255*((e-0)/100)).toString(16).toUpperCase();return 1===t.length?"0"+t:t}}},function(e){e.O(0,[294,852,774,888,179],function(){return e(e.s=8105)}),_N_E=e.O()}]);