text: (window.webpackJsonp=window.webpackJsonp||[]).push([[5],{148:function(e,a,t){"use strict";t.r(a);var n=t(0),r=t.n(n),i=t(186),l=t(182),s=function(){return r.a.createElement("div",{className:"hide-on-mobile hide-on-tablet"},r.a.createElement(l.a,null))},c=t(7),o=t.n(c),m=t(474),u=t.n(m),d=t(494),p=t.n(d),f=t(507),h=t(510),E="/api/contact/index.php",g=function(e){function a(a){var t;return(t=e.call(this,a)||this).handleFormSubmit=function(e){e.preventDefault(),t.validator.allValid()?u()({method:"post",url:""+E,headers:{"content-type":"application/json"},data:t.state}).then(function(e){t.setState({mailSent:e.data.sent})}).catch(function(e){t.setState({mailError:e.message})}):(t.validator.showMessages(),t.forceUpdate())},t.validator=new p.a,t.state={fname:"",lname:"",email:"",message:"",mailSent:!1,mailError:null},t}return o()(a,e),a.prototype.render=function(){var e=this;return r.a.createElement(f.a,{className:"form-container",size:"large",action:"#",success:!0,error:!0},r.a.createElement(f.a.Input,{fluid:!0,type:"text",id:"fname",name:"fname",label:"First name",placeholder:"First name",value:this.state.fname,onChange:function(a){return e.setState({fname:a.target.value})},required:!0}),this.validator.message("first_name",this.state.fname,"required|alpha"),r.a.createElement(f.a.Input,{fluid:!0,type:"text",id:"lname",label:"Last name",placeholder:"Last name",value:this.state.lname,onChange:function(a){return e.setState({lname:a.target.value})},required:!0}),this.validator.message("last_name",this.state.lname,"required|alpha"),r.a.createElement(f.a.Input,{fluid:!0,type:"email",id:"email",label:"Email",placeholder:"Email",value:this.state.email,onChange:function(a){return e.setState({email:a.target.value})},required:!0}),this.validator.message("email",this.state.email,"required|email"),r.a.createElement(f.a.TextArea,{id:"message",label:"Message",placeholder:"Type your message here...",value:this.state.message,onChange:function(a){return e.setState({message:a.target.value})},required:!0}),this.validator.message("message",this.state.message,"required|max:500"),r.a.createElement(f.a.Button,{type:"submit",onClick:function(a){return e.handleFormSubmit(a)},size:"big",color:"red"},"Send Message"),r.a.createElement("div",{className:"form-message-container"},this.state.mailSent&&r.a.createElement(h.a,{success:!0,className:"appointment-form",header:"Thank You!",content:"Your message has been sent. We will contact you soon."}),this.state.mailError&&r.a.createElement(h.a,{error:!0,header:"Oops!",content:"Sorry, there was a problem sending your message. Please refresh browser and try again. If problem persists, please use other contact channels. Thanks!"})))},a}(n.Component),b=t(184),v=t(517),y=t(514),k=t(513);a.default=function(){return r.a.createElement(i.a,null,r.a.createElement(b.a,{title:"Contact Us",description:"Send us a message.",article:!1}),r.a.createElement(s,null),r.a.createElement(v.a,{className:"one-column-segment with-color-bg",vertical:!0},r.a.createElement(y.a,null,r.a.createElement(y.a.Column,{className:"column width-600"},r.a.createElement(k.a,{as:"h2",className:"title center"},"Contact Us"),r.a.createElement("p",{className:"paragraph center"},"Please use the contact form below to send us your message."),r.a.createElement(g,null)))))}},152:function(e,a,t){"use strict";t.d(a,"b",function(){return m});var n=t(0),r=t.n(n),i=t(4),l=t.n(i),s=t(33),c=t.n(s);t.d(a,"a",function(){return c.a});t(165);var o=r.a.createContext({}),m=function(e){return r.a.createElement(o.Consumer,null,function(a){return e.data||a[e.query]&&a[e.query].data?(e.render||e.children)(e.data?e.data.data:a[e.query].data):r.a.createElement("div",null,"Loading (StaticQuery)")})};m.propTypes={data:l.a.object,query:l.a.string.isRequired,render:l.a.func,children:l.a.func}},165:function(e,a,t){var n;e.exports=(n=t(176))&&n.default||n},166:function(e,a,t){"use strict";var n=t(181),r=t(0),i=t.n(r),l=t(152),s=t(201),c=t.n(s);a.a=function(){return i.a.createElement(l.b,{query:o,render:function(e){var a=e.logo.childImageSharp.fluid;return i.a.createElement(c.a,{fluid:a,style:{margin:"0 auto",width:"30px"}})},data:n})};var o="172279078"},175:function(e){e.exports={data:{site:{siteMetadata:{mainMenuLinks:[{name:"Sample Page",link:"/sample-page"},{name:"About",link:"/about"},{name:"Contact",link:"/contact"}],servicesMenuLinks:[{name:"First Service",link:"/first-service"},{name:"Second Service",link:"/second-service"},{name:"Third Service",link:"/third-service"},{name:"Fourth Service",link:"/fourth-service"}]}}}}},176:function(e,a,t){"use strict";t.r(a);t(36);var n=t(0),r=t.n(n),i=t(4),l=t.n(i),s=t(55),c=t(2),o=function(e){var a=e.location,t=c.default.getResourcesForPathnameSync(a.pathname);return r.a.createElement(s.a,Object.assign({location:a,pageResources:t},t.json))};o.propTypes={location:l.a.shape({pathname:l.a.string.isRequired}).isRequired},a.default=o},180:function(e){e.exports={data:{site:{siteMetadata:{mainMenuLinks:[{name:"Sample Page",link:"/sample-page"},{name:"About",link:"/about"},{name:"Contact",link:"/contact"}],servicesMenuLinks:[{name:"First Service",link:"/first-service"},{name:"Second Service",link:"/second-service"},{name:"Third Service",link:"/third-service"},{name:"Fourth Service",link:"/fourth-service"}]}}}}},181:function(e){e.exports={data:{logo:{childImageSharp:{fluid:{aspectRatio:1,src:"/static/b7637c262ad964cf2f70abbbfc9e1f93/7c0ed/gatsby-logo.png",srcSet:"/static/b7637c262ad964cf2f70abbbfc9e1f93/09f8c/gatsby-logo.png 50w,\n/static/b7637c262ad964cf2f70abbbfc9e1f93/bf65b/gatsby-logo.png 100w,\n/static/b7637c262ad964cf2f70abbbfc9e1f93/7c0ed/gatsby-logo.png 200w,\n/static/b7637c262ad964cf2f70abbbfc9e1f93/fdbb0/gatsby-logo.png 300w",sizes:"(max-width: 200px) 100vw, 200px"}}}}}},182:function(e,a,t){"use strict";t(162),t(163);var n=t(183),r=t(0),i=t.n(r),l=t(152),s=t(166),c=t(511),o=t(506),m=t(508),u=t(512);a.a=function(){return i.a.createElement(l.b,{query:d,render:function(e){var a=e.site.siteMetadata.mainMenuLinks,t=e.site.siteMetadata.servicesMenuLinks;return i.a.createElement(c.a,{secondary:!0,size:"large",className:"main-menu"},i.a.createElement(o.a,{className:"menu-container"},i.a.createElement(c.a.Item,{as:l.a,to:"/",className:"logo"},i.a.createElement(s.a,null)),i.a.createElement(c.a.Item,{as:l.a,to:"/"},"Home"),i.a.createElement(m.a,{item:!0,text:"Services"},i.a.createElement(m.a.Menu,null,t.map(function(e){return i.a.createElement(m.a.Item,{as:l.a,to:e.link},e.name)}))),a.map(function(e){return i.a.createElement(c.a.Item,{as:l.a,name:e.name,to:e.link})}),i.a.createElement(c.a.Item,{position:"right"},i.a.createElement(u.a,{color:"red",size:"huge",as:l.a,to:"/"},"GET STARTED"))))},data:n})};var d="2018995573"},183:function(e){e.exports={data:{site:{siteMetadata:{mainMenuLinks:[{name:"Sample Page",link:"/sample-page"},{name:"About",link:"/about"},{name:"Contact",link:"/contact"}],servicesMenuLinks:[{name:"First Service",link:"/first-service"},{name:"Second Service",link:"/second-service"},{name:"Third Service",link:"/third-service"},{name:"Fourth Service",link:"/fourth-service"}]}}}}},184:function(e,a,t){"use strict";var n=t(185),r=t(0),i=t.n(r),l=t(224),s=t(4),c=t.n(s),o=t(152),m=function(e){var a=e.title,t=e.description,r=e.image,s=e.pathname,c=e.article,m=e.isHome;return i.a.createElement(o.b,{query:u,render:function(e){var n=e.site.siteMetadata,o=n.defaultTitle,u=n.titleTemplate,d=n.defaultDescription,p=n.siteUrl,f=n.defaultImage,h={title:a||o,description:t||d,image:""+p+(r||f),url:""+p+(s||"/")};return i.a.createElement(l.Helmet,{title:h.title,titleTemplate:m?null:u},i.a.createElement("meta",{name:"description",content:h.description}),i.a.createElement("meta",{name:"image",content:h.image}),h.url&&i.a.createElement("meta",{property:"og:url",content:h.url}),!c?null:i.a.createElement("meta",{property:"og:type",content:"article"}),h.title&&i.a.createElement("meta",{property:"og:title",content:h.title}),h.description&&i.a.createElement("meta",{property:"og:description",content:h.description}),h.image&&i.a.createElement("meta",{property:"og:image",content:h.image}),i.a.createElement("script",{type:"application/ld+json"},'\n                {\n                  "@context" : "http://schema.org",\n                  "@type" : "LocalBusiness",\n                  "name" : "Project Name",\n                  "openingHours": "Mo,Tu,We,Th,Fr 09:00-17:00",\n                  "telephone" : "123-456-7890",\n                  "email" : "jon@snow.com",\n                  "address" : {\n                    "@type" : "PostalAddress",\n                    "streetAddress" : "1234 Acme Ave., Suite 101",\n                    "addressLocality" : "Irvine",\n                    "addressRegion" : "CA",\n                    "postalCode" : "92606"\n                  },\n                  "image" : "'+h.image+'",\n                  "priceRange" : "$$$"\n                }\n              '))},data:n})};a.a=m,m.propTypes={title:c.a.string,description:c.a.string,image:c.a.string,pathname:c.a.string,article:c.a.bool},m.defaultProps={title:null,description:null,image:null,pathname:null,article:!1};var u="3849420707"},185:function(e){e.exports={data:{site:{siteMetadata:{defaultTitle:"Gatsby Starter for Webbroi",titleTemplate:"%s · Gatsby Starter for Webbroi",defaultDescription:"Some description of this project.",siteUrl:"https://gatsby-starter.webbroi.dev",defaultImage:"/gatsby-og-image.jpg"}}}}},186:function(e,a,t){"use strict";var n=t(4),r=t.n(n),i=t(0),l=t.n(i),s=t(7),c=t.n(s),o=(t(162),t(163),t(175)),m=t(152),u=t(517),d=t(506),p=t(514),f=t(513),h=t(509),E=t(248),g=function(){return l.a.createElement(m.b,{query:b,render:function(e){var a=e.site.siteMetadata.mainMenuLinks,t=e.site.siteMetadata.servicesMenuLinks;return l.a.createElement(u.a,{inverted:!0,vertical:!0,className:"footer-segment"},l.a.createElement(d.a,null,l.a.createElement(p.a,{inverted:!0,reversed:"mobile"},l.a.createElement(p.a.Row,null,l.a.createElement(p.a.Column,{computer:3,tablet:3,mobile:8,className:"footer-column"},l.a.createElement(f.a,{inverted:!0,as:"h4",content:"Learn More"}),l.a.createElement(h.a,{link:!0,inverted:!0},l.a.createElement(h.a.Item,{as:m.a,to:"/"},"Home"),a.map(function(e){return l.a.createElement(h.a.Item,{as:m.a,to:e.link},e.name)}),l.a.createElement(h.a.Item,{as:"a",href:"https://google.com",target:"_blank",rel:"noopener noreferrer"},"External Link"),l.a.createElement(h.a.Item,{as:m.a,to:"/"},"Privacy Policy"))),l.a.createElement(p.a.Column,{computer:3,tablet:3,mobile:8,className:"footer-column"},l.a.createElement(f.a,{inverted:!0,as:"h4",content:"Services"}),l.a.createElement(h.a,{link:!0,inverted:!0},t.map(function(e){return l.a.createElement(h.a.Item,{as:m.a,to:e.link},e.name)}))),l.a.createElement(p.a.Column,{computer:3,tablet:3,mobile:6,className:"footer-column"},l.a.createElement(f.a,{inverted:!0,as:"h4",content:"Follow Us"}),l.a.createElement(h.a,{link:!0,inverted:!0},l.a.createElement(h.a.Item,{as:"a",href:"https://www.facebook.com/",target:"_blank",rel:"noopener noreferrer"},l.a.createElement(E.a,{name:"facebook"}),"Facebook"),l.a.createElement(h.a.Item,{as:"a",href:"https://twitter.com/",target:"_blank",rel:"noopener noreferrer"},l.a.createElement(E.a,{name:"twitter"}),"Twitter"),l.a.createElement(h.a.Item,{as:"a",href:"https://www.linkedin.com/",target:"_blank",rel:"noopener noreferrer"},l.a.createElement(E.a,{name:"linkedin"}),"LinkedIn"),l.a.createElement(h.a.Item,{as:"a",href:"https://www.youtube.com/",target:"_blank",rel:"noopener noreferrer"},l.a.createElement(E.a,{name:"youtube"}),"Youtube"),l.a.createElement(h.a.Item,{as:"a",href:"https://www.instagram.com/",target:"_blank",rel:"noopener noreferrer"},l.a.createElement(E.a,{name:"instagram"}),"Instagram"),l.a.createElement(h.a.Item,{as:"a",href:"https://www.yelp.com/",target:"_blank",rel:"noopener noreferrer"},l.a.createElement(E.a,{name:"yelp"}),"Yelp"))),l.a.createElement(p.a.Column,{computer:7,tablet:7,mobile:10,className:"footer-column"},l.a.createElement(f.a,{as:"h2",inverted:!0},"Project Name"),l.a.createElement("p",null,"Awesome New Project",l.a.createElement("br",null),"1234 Acme Ave., Suite 101",l.a.createElement("br",null),"Irvine, CA 92606",l.a.createElement("br",null),l.a.createElement("a",{href:"mailto:jon@snow.com"},"jon@snow.com")),l.a.createElement("p",{style:{color:"#2d3436"}},"Site by ",l.a.createElement("a",{style:{color:"#2d3436",textDecoration:"underline"},href:"https://webbroi.com",target:"_blank",rel:"noopener noreferrer"},"WebbROI")))))))},data:o})},b="1645085616",v=(t(143),t(144),function(e){function a(){return e.apply(this,arguments)||this}return c()(a,e),a.prototype.render=function(){var e=this.props.children;return l.a.createElement("div",{className:"hide-on-mobile hide-on-tablet"},e,l.a.createElement(g,null))},a}(i.Component));v.propTypes={children:r.a.node};var y=v,k=t(180),S=t(511),w=function(){return l.a.createElement(m.b,{query:I,render:function(e){var a=e.site.siteMetadata.mainMenuLinks,t=e.site.siteMetadata.servicesMenuLinks;return l.a.createElement("div",{className:"sidebar-menu-container"},l.a.createElement(S.a.Item,{className:"menu-item",as:m.a,to:"/"},"Home"),l.a.createElement(S.a.Item,{className:"menu-item"},"Services",l.a.createElement(S.a.Menu,{className:"menu-sub-items"},t.map(function(e){return l.a.createElement(S.a.Item,{className:"menu-item",as:m.a,to:e.link},e.name)}))),a.map(function(e){return l.a.createElement(S.a.Item,{className:"menu-item",as:m.a,name:e.name,to:e.link})}),l.a.createElement("div",{className:"hide-on-tablet"},l.a.createElement(S.a.Item,{className:"menu-item-red-bg",to:"/"},"GET STARTED")))},data:k})},I="472837204",N=t(166),T=t(515),M=t(512),C=function(e){function a(){for(var a,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(a=e.call.apply(e,[this].concat(n))||this).state={},a.handleSidebarHide=function(){return a.setState({sidebarOpened:!1})},a.handleToggle=function(){return a.setState({sidebarOpened:!0})},a}return c()(a,e),a.prototype.render=function(){var e=this.props.children,a=this.state.sidebarOpened;return l.a.createElement(T.a.Pushable,{className:"hide-on-desktop"},l.a.createElement(T.a,{as:S.a,animation:"push",direction:"right",onHide:this.handleSidebarHide,vertical:!0,visible:a},l.a.createElement(w,null)),l.a.createElement(T.a.Pusher,{dimmed:a},l.a.createElement(d.a,{className:"menu-container"},l.a.createElement(S.a,{secondary:!0,size:"large",className:"main-menu"},l.a.createElement(S.a.Item,{as:m.a,to:"/",className:"logo"},l.a.createElement(N.a,null)),l.a.createElement(S.a,{secondary:!0,floated:"right"},l.a.createElement("div",{className:"hide-on-mobile"},l.a.createElement(S.a.Item,null,l.a.createElement(M.a,{color:"red",size:"huge",as:m.a,to:"/"},"GET STARTED"))),l.a.createElement(S.a.Item,{onClick:this.handleToggle},l.a.createElement(E.a,{name:"sidebar"})," MENU")))),e,l.a.createElement(g,null)))},a}(i.Component);C.propTypes={children:r.a.node};var q=C,x=function(e){var a=e.children;return l.a.createElement("div",null,l.a.createElement(y,null,a),l.a.createElement(q,null,a))};x.propTypes={children:r.a.node};a.a=x}}]);
  //# sourceMappingURL=component---src-pages-contact-js-d553735b8b82f6caf613.js.map