1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9335],{33459:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSG:function(){return q},default:function(){return F}});var n=r(23642),i=r(51776),a=r(51228),o=r(23792),s=r(77895),c=r(17),l=r.n(c),u=r(76954),p=r(98578),d=r(86005),f=r(21922),h=r(63726),m=r(11659),g=r(56111),x=r(85403),y=r(18435);var j=r(36734),b=(0,p.Z)((function(e){return(0,u.Z)({root:{},form:{},wrapper:{marginBottom:"1rem","& input":{fontSize:15,fontWeight:400,padding:"15.1px 14px"},"& label":{color:"#8D8D8D",fontSize:15,fontWeight:400},"& .MuiOutlinedInput-notchedOutline":{borderColor:"#E0E0E0"},"& .MuiInputLabel-outlined.MuiInputLabel-marginDense":{transform:"translate(14px, 17px) scale(1)"},"& .MuiInputLabel-outlined.MuiInputLabel-shrink":{transform:"translate(14px, -6px) scale(0.75)"}},lastElement:{"& > *:nth-child(odd):last-of-type":{maxWidth:"100%",flexBasis:"100%"}},formBtn:{"@media (max-width:799px)":{alignItems:"center"}},submitBtn:{width:210,height:48,fontSize:25,fontWeight:800,background:"#F2CD00"}})}));var v=function(){var e=b(),t={fieldConfigurations:{sectionA:[{label:"Full Name",name:"fullName",fieldType:"textField",rules:{required:"This field is required"}},{label:"Email",name:"email",fieldType:"textField",rules:{required:"This field is required"}},{label:"Phone",name:"phone",fieldType:"textField",rules:{required:"This field is required"}},{label:"Message",name:"message",fieldType:"textField",rules:{required:"This field is required"},fieldProps:{multiline:!0,minRows:4}}]}}.fieldConfigurations,r=(0,h.Z)(),n=r.open,a=r.message,o=r.setMessageAndOpen,c=r.handleClose,u=(0,m.Z)("contact").mutate,p=i.useRef(null),v=function(){var e=(0,s.Z)(l().mark((function e(r,n){var i,a,s;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,null===(i=p.current)||void 0===i?void 0:i.executeAsync();case 3:if(a=e.sent,!t||!a){e.next=11;break}return o({type:"loading",text:"Uploading..."}),e.next=8,(0,x.Z)(r,t,(function(){}));case 8:s=e.sent,o({type:"loading",text:"Submitting..."}),u({to:["[email protected]"],subject:"Contact Submission",formData:s,captcha:a},{onSuccess:function(){var e;o({type:"success",text:"Thank you for contacting us. We will be in touch shortly."}),n.resetForm(),null===(e=p.current)||void 0===e||e.reset()},onError:function(e){o({type:"error",text:"Something went wrong. Please try again later."}),console.error(e)}});case 11:e.next=16;break;case 13:e.prev=13,e.t0=e.catch(0),n.setError("recaptcha",{type:"manual",message:"Recaptcha validation failed"});case 16:case"end":return e.stop()}}),e,null,[[0,13]])})));return function(t,r){return e.apply(this,arguments)}}();return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsxs)(y.ZP,{onSubmit:v,fieldConfigurations:t,children:[(0,j.jsx)(d.Z,{className:e.wrapper,container:!0,spacing:3,justifyContent:"center",children:(0,j.jsx)(y.Zl,{fieldConfig:t.sectionA,wrapperProps:{item:!0,xs:12}}
1)}),(0,j.jsxs)(d.Z,{className:e.formBtn,container:!0,direction:"column",alignItems:"flex-end",spacing:0,children:[(0,j.jsx)(d.Z,{item:!0,style:{paddingTop:21},children:(0,j.jsx)(y.ee,{captchaRef:p})}),(0,j.jsx)(d.Z,{item:!0,style:{paddingTop:46},children:(0,j.jsx)(f.Z,{variant:"contained",color:"primary",type:"submit",className:e.submitBtn,children:"Submit"})})]})]}),(0,j.jsx)(g.Z,{open:n,onClose:c,message:a})]})},w=r(54307),Z=r(77889),O=r(32403),k=r(55649),P=r(1892),S=r(31279),N=S.D.agencyTitle,C=(S.D.agencyLocation,function(e){return e===k.Status.FAILURE?(0,j.jsx)("div",{children:"Some error occurred."}):(0,j.jsx)(P.Z,{})}),T=i.forwardRef((function(e,t){var r=e.center,n=e.zoom,a=e.markerPosition,o=e.markerTitle,s=void 0===o?N:o,c=e.mapStyles,l=void 0===c?[]:c,u=(0,i.useRef)();return(0,i.useEffect)((function(){var e=new window.google.maps.Map(u.current,{center:r,zoom:n,styles:l});new window.google.maps.Marker({position:a,map:e,title:s})}),[]),(0,j.jsx)("div",{ref:u,id:"map",style:{width:"100%",height:600}})})),E=T,D=r(48684),I=(0,p.Z)({gridContainer:{display:"flex",justifyContent:"space-between"},para:{fontSize:16,color:"#000000",display:"flex",alignItems:"center"},icons:{fontSize:20,fontWeight:300,marginRight:4},headerWrapper:{height:"491px",width:"100%",backgroundImage:"url(/static/images/contact/header.png)",backgroundPosition:"right",backgroundSize:"cover",backgroundRepeat:"no-repeat",zIndex:2,position:"relative",marginBottom:50,marginTop:10,"@media (max-width:800px)":{height:"35vh"}},headerContent:{backgroundColor:"rgb(0 0 0 / 50%)",backgroundImage:"url(/static/images/arrows-element.svg)",height:"100%",width:"100%",position:"relative",zIndex:1,backgroundPosition:0,backgroundSize:"contain",backgroundRepeat:"no-repeat",display:"flex",justifyContent:"center",alignItems:"center","@media (max-width:311px)":{backgroundPosition:"right",backgroundSize:"cover"}}});var z=function(e){var t=e.children,r=I();return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)("div",{children:(0,j.jsx)("div",{className:r.headerWrapper,children:(0,j.jsx)("div",{className:r.headerContent,children:(0,j.jsx)(w.Z,{variant:"h2",component:"h1",align:"center",style:{color:"#fff",textTransform:"uppercase",margin:0},children:"Contact"})})})}),(0,j.jsx)(Z.Z,{maxWidth:"md",style:{marginBottom:120},children:(0,j.jsxs)(d.Z,{container:!0,spacing:3,className:r.gridContainer,children:[(0,j.jsxs)(d.Z,{item:!0,xs:12,sm:12,md:6,style:{},children:[(0,j.jsx)(w.Z,{variant:"h4",component:"h4",style:{marginBottom:20,textTransform:"uppercase"},children:"The Next Paige Agency"}),(0,j.jsxs)(w.Z,{paragraph:!0,className:r.para,style:{marginBottom:0},children:["5930 Troost Ave"," "]}),(0,j.jsx)(w.Z,{paragraph:!0,className:r.para,style:{marginBottom:8},children:"Kansas City, MO 64110"}),(0,j.jsxs)(w.Z,{paragraph:!0,className:r.para,style:{marginBottom:20},children:[(0,j.jsx)(D.Z,{code:"\ue0c8","aria-label":"location_on",style:{fontSize:24,fontWeight:300,marginRight:4}}),"Map/Directions"]}),(0,j.jsxs)(w.Z,{paragraph:!0,className:r.para,style:{marginBottom:6},children:[(0,j.jsx)(D.Z,{code:"\t\ue325","aria-label":"phone_iphone",className:r.icons}),(0,j.jsx)(O.Z,{href:"tel:816-490-6411",children:"816-490-6411"})]}),(0,j.jsxs)(w.Z,{paragraph:!0,className:r.para,style:{marginBottom:0},children:[(0,j.jsx)(D.Z,{code:"\ue0e1","aria-label":"\tmail_outline",className:r.icons}),(0,j.jsx)(O.Z,{href:"mail to:[email protected]",children:"[email protected]"})]})]}),(0,j.jsx)(d.Z,{item:!0,xs:12,sm:12,md:5,children:t})]})}),(0,j.jsx)(Z.Z,{maxWidth:"xl",disableGutters:!0,children:(0,j.jsx)(k.Wrapper,{apiKey:"AIzaSyC01SRu3mGKnnbZGCYnruBDxkEIrcVPEvU",render:C,children:(0,j.jsx)(E,{center:{lat:39.0189316,lng:-94.5745735},zoom:15,markerPosition:{lat:39.0189316,lng:-94.5745735}})})})]})};function B(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
1t%2?B(Object(r),!0).forEach((function(t){(0,n.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):B(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var q=!0,F=function(){var e=(0,o.xU)("contact");return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(a.PB,_({},e)),(0,j.jsx)(z,{children:(0,j.jsx)(v,{})})]})}},1892:function(e,t,r){"use strict";r.d(t,{C:function(){return l},Z:function(){return c}});r(51776);var n=r(98578),i=r(16786),a=r(72123),o=r(36734),s=(0,n.Z)({root:{display:"block",position:"relative",height:"100%",width:"100%"},inner:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%",width:"100%"},backdrop:{zIndex:10,position:"fixed",width:"100%",height:"100%",left:0,top:0,display:"flex",justifyContent:"center",alignItems:"center"}});function c(e){var t=e.color,r=s();return(0,o.jsx)(i.Z,{children:(0,o.jsx)("div",{className:r.root,children:(0,o.jsx)("div",{className:r.inner,children:(0,o.jsx)(a.Z,{color:t})})})})}function l(e){var t=e.open,r=s();return(0,o.jsx)(o.Fragment,{children:t&&(0,o.jsx)("div",{className:r.backdrop,children:(0,o.jsx)(a.Z,{color:"inherit"})})})}},28813:function(e,t,r){"use strict";r.d(t,{Ac:function(){return g},Lp:function(){return m}});var n=r(23642),i=r(77895),a=r(17),o=r.n(a),s=r(59295),c=r(47215);function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){(0,n.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var p=new s.S;function d(){return f.apply(this,arguments)}function f(){return f=(0,i.Z)(o().mark((function e(){var t;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return"get-jwt",e.next=3,p.fetchQuery({queryKey:["get-jwt"],queryFn:function(){var e=(0,i.Z)(o().mark((function e(){var t;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("/api/jwt");case 2:return t=e.sent.json(),e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),staleTime:354e4,initialDataUpdatedAt:Date.now()});case 3:return t=e.sent,e.abrupt("return",t);case 5:case"end":return e.stop()}}),e)}))),f.apply(this,arguments)}var h=function(){var e=(0,i.Z)(o().mark((function e(t){var r,n,i,a;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return!1,e.next=3,d();case 3:return r=e.sent,n=r.accessToken,i=r.idToken,(a=new Headers(t.headers)).set("content-type","application/json"),a.set("authorization","Bearer ".concat(n)),a.set("x-id-token","Bearer ".concat(i)),a.set("Apollo-Require-Preflight","true"),e.abrupt("return",u(u({},t),{},{headers:a}));case 12:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),m=new c.g6("https://graphql.portfoliopad.com/v2/website/graphql",{requestMiddleware:h,errorPolicy:"all",method:"GET",jsonSerializer:{parse:JSON.parse,stringify:JSON.stringify}}),g=new c.g6("https://graphql.portfoliopad.com/v2/website/graphql",{requestMiddleware:h,errorPolicy:"all"})},81382:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/contact",function(){return r(33459)}])}},function(e){e.O(0,[653,8308,8955,3615,5600,8129,7819,722,9774,2888,179],(function(){return t=81382,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
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.