1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1521],{1804:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/fale-conosco",function(){return n(55619)}])},7530:function(e,t,n){"use strict";var s=n(85893),a=n(23923),l=n(35952),r=n.n(l);t.Z=function(e){var t;let{initialProps:n,...l}=e,{themeSettings:o}=n||{},{children:c}=l;return(0,s.jsx)(a.Z,{className:"".concat(l.className," ").concat(r().breadcrumb," ").concat(r()[null==o?void 0:null===(t=o.components)||void 0===t?void 0:t.breadcrumb]),children:c})}},55619:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return L},default:function(){return q}});var s=n(85893),a=n(67294),l=n(41664),r=n.n(l),o=n(9008),c=n.n(o),i=n(51615),d=n(90476);function m(e){let{children:t}=e;return(0,s.jsx)(d.t,{apiKey:"AIzaSyBgZ8jedOjMxFN0fXHWymSubXoZwntSxU4",children:t})}var u=n(81323);function x(e){let{lat:t,lng:n}=e;return(0,s.jsx)(u.D5,{style:{width:"40vw",height:"50vh"},defaultCenter:{lat:t,lng:n},defaultZoom:20,gestureHandling:"greedy",disableDefaultUI:!1,children:(0,s.jsx)(u.Jx,{position:{lat:t,lng:n}})})}var h=n(40782),g=n(22143),j=n(36955),p=n(65881),b=n(10267),f=n(51252),y=n(15538),v=n(82669),N=n(67954),Z=n(609),_=n(97975),S=n(76627),C=n.n(S),w=n(7530),T=n(12589),k=n(69283),E=e=>{let{address:t,sellerId:n}=e,[s,l]=(0,a.useState)(null),[r,o]=(0,a.useState)(null),[c,i]=(0,a.useState)(!1),d=(0,a.useCallback)(async()=>{i(!0);try{let e=await (0,k.v)("".concat(T.Y,"/getLatAndLngLocation?sellerId=").concat(n),{method:"POST",requestedTokenType:"guest",headers:{"Content-Type":"application/json"},body:JSON.stringify({cep:t.cep,street:t.street,number:t.number,city:t.city,uf:t.uf})}),s=await e.json();l(s),o(null)}catch(e){console.error("err fetching maps"),o(e.message||"unknowed error")}finally{i(!1)}},[]);return(0,a.useEffect)(()=>{d()},[d]),{data:s,error:r,isLoading:c}},O=n(49573),P=n(78058),L=!0,q=function(e){let{serverSideProps:t,initialProps:n}=e,{dental:l}=n||{},{url:o}=t,[d,u]=(0,a.useState)(!1),{isLoading:S,error:L,data:q}=E({address:null==l?void 0:l.splittedAddress,sellerId:null==l?void 0:l.id}),[A,B]=(0,a.useState)({name:"",email:"",tel:"",message:""}),{t:U}=(0,O.$G)("common"),D={title:"".concat(U("contactUs")," - ").concat(null==l?void 0:l.name),description:"Entre em contato com a ".concat(null==l?void 0:l.name,"."),url:o,image:"https://catalogomaisodonto.com.br/images/catalogo-mais-odonto.png"};async function I(e){e.preventDefault();try{return u(!0),await (0,k.v)("".concat(T.Y,"/sendContact"),{method:"POST",requestedTokenType:"guest",body:JSON.stringify({...A,to:null==l?void 0:l.emailToBudget})}),h.Am.success(U("messageSentSuccess")),u(!1)}catch(e){return console.log(e),h.Am.error(U("errorAction")),u(!1)}}return(0,s.jsxs)(i.Z,{initialProps:n,children:[(0,s.jsxs)(c(),{children:[(0,s.jsx)("title",{children:D.title}),(0,s.jsx)("meta",{name:"robots",content:"INDEX,FOLLOW"}),(0,s.jsx)("meta",{name:"title",content:D.title}),(0,s.jsx)("meta",{name:"description",content:D.description}),(0,s.jsx)("meta",{property:"og:title",content:D.title}),(0,s.jsx)("meta",{property:"og:url",content:D.url}),(0,s.jsx)("meta",{property:"og:description",content:D.description}),(0,s.jsx)("meta",{property:"og:image",content:D.image}),(0,s.jsx)("meta",{property:"og:image:alt",content:null==l?void 0:l.name}),(0,s.jsx)("meta",{property:"og:type",content:"Website"}),(0,s.jsx)("meta",{property:"og:locale",content:P.ogLocale}),(0,s.jsx)("link",{rel:"canonical",href:D.url})]}),(0,s.jsxs)("div",{className:"minorContainer justify-content-start mt-3",children:[(0,s.jsxs)("div",{className:"d-flex align-items-center mb-2",children:[(0,s.jsx)("h2",{className:"customContentTitle content-header-title mb-0 mr-2",children:U("contactUs")}),(0,s.jsx)("div",{className:"globalDivBreadcrumb",children:(0,s.jsxs)(w.Z,{initialProps:n,className:"mb-0",children:[(0,s.jsx)(p.Z,{children:(0,s.jsx)(r(),{legacyBehavior:!0,href:"/",className:"text-body",children:" Home "})}),(0,s.jsx)(p.Z,{active:!0,children:(0,s.jsx)("span",{children:U("contactUs")})})]})})]}),(0,s.jsx)("div",{children:(0,s.jsxs)(b.Z,{children:[(0,s.jsx)(f.Z,{md:8,lg:6,children:(0,s.jsxs)(y.Z,{onSubmit:I,children:[(0,s.jsxs)(v.Z,{className:"mb-2",children:[(0,s.jsx)(N.Z,{for:"name",className:"mb-25",children:(0,s.jsxs)("strong",{children:[U("labelYourName"),":"]})}),(0,s.jsx)(Z.Z,{required:!0,type:"text",id:"name",value:A.name,onChange:e=>B({...A,name:e.target.value})})]}),(0,s.jsxs)(v.Z,{className:"mb-2",children:[(0,s.jsx)(N.Z,{for:"tel",className:"mb-25",children:(0,s.jsxs)("strong",{children:[U("labelCelWhats"),":"]})}),"es"===P.language?(0,s.jsx)(g.ZP,{maxLength:12,id:"tel",className:"form-control",country:P.nationalities[0].toUpperCase(),international:!1,value:A.tel,onChange:e=>B({...A,tel:e})}):(0,s.jsx)(C(),{className:"form-control",type:"tel",autoComplete:"off",id:"tel",mask:"(99) 99999-9999",value:A.tel,onChange:e=>B({...A,tel:e.target.value}),required:!0})]}),(0,s.jsxs)(v.Z,{className:"mb-2",children:[(0,s.jsx)(N.Z,{for:"email",className:"mb-25",children:(0,s.jsx)("strong",{children:"E-mail:"})}),(0,s.jsx)(Z.Z,{required:!0,type:"email",id:"email",value:A.email,onChange:e=>B({...A,email:e.target.value})})]}),(0,s.jsxs)(v.Z,{className:"mb-2",children:[(0,s.jsx)(N.Z,{for:"message",className:"mb-25",children:(0,s.jsxs)("strong",{children:[U("labelMessage"),":"]})}),(0,s.jsx)(Z.Z,{required:!0,style:{minHeight:"100px"},type:"textarea",id:"message",value:A.message,onChange:e=>B({...A,message:e.target.value})})]}),(0,s.jsx)(_.Z,{type:"submit",color:"success",disabled:d,children:U("actionSe
1ndMessage")})]})}),(0,s.jsx)(f.Z,{md:8,lg:6,children:S?(0,s.jsx)(j.Z,{color:"primary"}):!S&&L||L?null:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"color-secondary",children:(0,s.jsxs)("b",{children:[U("howToGet"),":"]})}),(0,s.jsx)(m,{children:(0,s.jsx)(x,{lat:null==q?void 0:q.lat,lng:null==q?void 0:q.lng})})]})})]})})]})]})}},35952:function(e){e.exports={breadcrumb:"Breadcrumb_breadcrumb__TkZ_t",styled:"Breadcrumb_styled__YyYbx"}}},function(e){e.O(0,[3714,3996,7795,9655,2923,4517,2143,2667,571,953,2888,9774,179],function(){return e(e.s=1804)}),_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.