text: (window.webpackJsonp=window.webpackJsonp||[]).push([[8],{141:function(e,t,a){"use strict";a.r(t);var n=a(7),i=a.n(n),r=a(51),o=a.n(r),l=a(0),c=a.n(l),s=(a(147),a(144)),d=a(162),p=a(160),u=a(148),m=a(156),h=a(203),f=a(204),g=a(205),b=a(206),x=a(146),y=s.a.div.withConfig({displayName:"referral__ContactWrapper",componentId:"sc-17pbuty-0"})(["display:flex;justify-content:space-around;@media (max-width:768px){flex-direction:column;}"]),v=s.a.div.withConfig({displayName:"referral__Separator",componentId:"sc-17pbuty-1"})(["margin:5px 10px 16px 10px;height:1px;background-color:",";"],x.a.border.lighter),w=Object(s.a)(h.a).withConfig({displayName:"referral__StyledForm",componentId:"sc-17pbuty-2"})(["width:50%;max-width:535px;padding-right:6px;@media (max-width:768px){padding:0;max-width:100%;width:100%;}button{background-color:",";border-color:",";&:hover{background-color:",";border-color:",";}}"],x.a.theme.main,x.a.theme.main,x.a.theme.lightmain,x.a.theme.lightmain),E=function(e){function t(t){var a;return(a=e.call(this,t)||this).state={yourname:"",youremail:"",friendname:"",friendemail:"",friendphone:"",city:""},a.handleChange=a.handleChange.bind(o()(o()(a))),a.handleSubmit=a.handleSubmit.bind(o()(o()(a))),a}i()(t,e);var a=t.prototype;return a.handleChange=function(e){var t;this.setState(((t={})[e.target.id]=e.target.value,t))},a.handleSubmit=function(e){},a.render=function(){return c.a.createElement(d.a,null,c.a.createElement(p.a,{title:"Referral Form"}),c.a.createElement(u.b,null,c.a.createElement("h1",null,"Referral Form"),c.a.createElement("h6",null,"Have a friend who would like to rent out their property? Refer them and earn rewards.")),c.a.createElement(m.a,null),c.a.createElement(u.b,null,c.a.createElement(y,null,c.a.createElement(w,{action:"https://formspree.io/elizabeth@bvrealestatepartners.com",method:"POST"},c.a.createElement(f.a,null,c.a.createElement(g.a,{type:"text",name:"fullname",id:"yourname",placeholder:"Your Name",value:this.state.yourname,onChange:this.handleChange})),c.a.createElement(f.a,null,c.a.createElement(g.a,{type:"email",name:"email",id:"youremail",placeholder:"Your Email Address",value:this.state.youremail,onChange:this.handleChange})),c.a.createElement(v,null),c.a.createElement(f.a,null,c.a.createElement(g.a,{type:"text",name:"fullname",id:"friendname",placeholder:"Friend's Name",value:this.state.friendname,onChange:this.handleChange})),c.a.createElement(f.a,null,c.a.createElement(g.a,{type:"email",name:"email",id:"friendemail",placeholder:"Friend's Email Address",value:this.state.friendemail,onChange:this.handleChange})),c.a.createElement(f.a,null,c.a.createElement(g.a,{type:"tel",name:"phone",id:"friendphone",placeholder:"Friend's Phone Number",value:this.state.friendphone,onChange:this.handleChange})),c.a.createElement(f.a,null,c.a.createElement(g.a,{type:"text",name:"text",id:"city",placeholder:"City of Friend's Property",value:this.state.city,onChange:this.handleChange})),c.a.createElement(b.a,{type:"submit",size:"lg",block:!0,onClick:this.handleSubmit},"Submit")))))},t}(l.Component);t.default=E},146:function(e,t,a){"use strict";t.a={theme:{main:"#F16664",secondary:"#FFF6E6",lightaccent:"#9CD6D2",accent:"#6BB7B9",darkaccent:"#007D8C",lightmain:"#F48583"},font:{dark:"#484848",light:"#767676"},border:{dark:"#484848",light:"#767676",lighter:"rgba(0,0,0,0.2)"}}},147:function(e,t,a){"use strict";a.r(t),a.d(t,"graphql",function(){return h}),a.d(t,"StaticQueryContext",function(){return u}),a.d(t,"StaticQuery",function(){return m});var n=a(0),i=a.n(n),r=a(4),o=a.n(r),l=a(145),c=a.n(l);a.d(t,"Link",function(){return c.a}),a.d(t,"withPrefix",function(){return l.withPrefix}),a.d(t,"navigate",function(){return l.navigate}),a.d(t,"push",function(){return l.push}),a.d(t,"replace",function(){return l.replace}),a.d(t,"navigateTo",function(){return l.navigateTo});var s=a(149),d=a.n(s);a.d(t,"PageRenderer",function(){return d.a});var p=a(32);a.d(t,"parsePath",function(){return p.a});var u=i.a.createContext({}),m=function(e){return i.a.createElement(u.Consumer,null,function(t){return e.data||t[e.query]&&t[e.query].data?(e.render||e.children)(e.data?e.data.data:t[e.query].data):i.a.createElement("div",null,"Loading (StaticQuery)")})};function h(){throw new Error("It appears like Gatsby is misconfigured. Gatsby related `graphql` calls are supposed to only be evaluated at compile time, and then compiled away,. Unfortunately, something went wrong and the query was left in the compiled code.\n\n.Unless your site has a complex or custom babel/Gatsby configuration this is likely a bug in Gatsby.")}m.propTypes={data:o.a.object,query:o.a.string.isRequired,render:o.a.func,children:o.a.func}},148:function(e,t,a){"use strict";a.d(t,"b",function(){return l}),a.d(t,"a",function(){return s});var n=a(0),i=a.n(n),r=a(144),o=(a(146),r.a.div.withConfig({displayName:"section__StyledSection",componentId:"sc-18ueukn-0"})(["margin:32px 0 0 0;border-radius:3px;overflow:hidden;"," @media (max-width:768px){margin-left:12px;margin-right:12px;}"],function(e){var t=e.color;return"#fff"!==t&&"\n    background-color: rgba(0,0,0,0.08);\n    // border-bottom: 2px solid "+t+";\n    // border-left: 2px solid "+t+";\n    // border-right: 2px solid "+t+";\n  "})),l=function(e){var t=e.children,a=e.color||"#fff";return i.a.createElement(o,{color:a},t)},c=r.a.div.withConfig({displayName:"section__StyledFullSection",componentId:"sc-18ueukn-1"})(["margin:32px -24px 0 -24px;padding:0 24px;border-radius:3px;overflow:hidden;"," @media (max-width:768px){margin-left:-12px;margin-right:-12px;}@media (min-width:1540px){margin-left:0px;margin-right:0px;}"],function(e){var t=e.color;return"#fff"!==t&&"\n    // background-color: rgba(0,0,0,0.08);\n    background-color: "+t+";\n    // color: white !important;\n    h2{color: white !important;}\n    span{color: white !important;}\n    p{color: white !important;}\n    *{color: white !important;}\n    // border-bottom: 2px solid "+t+";\n    // border-left: 2px solid "+t+";\n    // border-right: 2px solid "+t+";\n  "}),s=function(e){var t=e.children,a=e.color||"#fff";return i.a.createElement(c,{color:a},t)}},149:function(e,t,a){var n;e.exports=(n=a(158))&&n.default||n},156:function(e,t,a){"use strict";a.d(t,"b",function(){return i}),a.d(t,"a",function(){return r});a(0);var n=a(144),i=n.a.div.withConfig({displayName:"spaced-hr__SpacedHr",componentId:"sc-18jk6jo-0"})(["margin:1.5em 0;"]),r=n.a.div.withConfig({displayName:"spaced-hr__HalfSpacedHr",componentId:"sc-18jk6jo-1"})(["margin:1em 0;"])},157:function(e){e.exports={data:{site:{siteMetadata:{title:"TrustedBnB",officialTitle:"TrustedBnB, Inc."}}}}},158:function(e,t,a){"use strict";a.r(t);a(33);var n=a(0),i=a.n(n),r=a(4),o=a.n(r),l=a(52),c=a(2),s=function(e){var t=e.location,a=c.default.getResourcesForPathnameSync(t.pathname);return i.a.createElement(l.a,Object.assign({location:t,pageResources:a},a.json))};s.propTypes={location:o.a.shape({pathname:o.a.string.isRequired}).isRequired},t.default=s},159:function(e,t,a){},160:function(e,t,a){"use strict";var n=a(161),i=a(0),r=a.n(i),o=a(4),l=a.n(o),c=a(168),s=a.n(c),d=a(147);function p(e){var t=e.description,a=e.lang,i=e.meta,o=e.keywords,l=e.title;return r.a.createElement(d.StaticQuery,{query:u,render:function(e){var n=t||e.site.siteMetadata.description;return r.a.createElement(s.a,{htmlAttributes:{lang:a},title:l,titleTemplate:"%s | "+e.site.siteMetadata.title,meta:[{name:"description",content:n},{property:"og:title",content:l},{property:"og:description",content:n},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"},{name:"twitter:creator",content:e.site.siteMetadata.author},{name:"twitter:title",content:l},{name:"twitter:description",content:n}].concat(o.length>0?{name:"keywords",content:o.join(", ")}:[]).concat(i)})},data:n})}p.defaultProps={lang:"en",meta:[],keywords:[]},p.propTypes={description:l.a.string,lang:l.a.string,meta:l.a.array,keywords:l.a.arrayOf(l.a.string),title:l.a.string.isRequired},t.a=p;var u="1025518380"},161:function(e){e.exports={data:{site:{siteMetadata:{title:"TrustedBnB",description:"A website to showcase BV Real Estate Partners",author:"Alex Kim <agk2144@columbia.edu>"}}}}},162:function(e,t,a){"use strict";var n=a(157),i=a(0),r=a.n(i),o=a(144),l=a(4),c=a.n(l),s=a(147),d=a(7),p=a.n(d),u=a(51),m=a.n(u),h=a(150),f=a(151),g=a(146),b=a(221),x=o.a.div.withConfig({displayName:"header__StyledNavbar",componentId:"zi46uq-0"})(["margin:0px auto;width:100%;padding:12px 24px 12px 24px;position:fixed;display:flex;top:0;background-color:white;align-items:center;z-index:2;a{color:"," !important;}.navbar-brand{font-size:18px !important;font-weight:700;}.navbar-toggler{border-color:white !important;path{fill:",";}}@media (max-width:885px){.navbar-collapse{display:none;}}"],g.a.font.dark,g.a.font.dark),y=o.a.div.withConfig({displayName:"header__FlexGrow",componentId:"zi46uq-1"})(["flex:1;"]),v=o.a.div.withConfig({displayName:"header__NavItem",componentId:"zi46uq-2"})(["margin:auto 10px;a{color:"," !important;font-size:14px !important;font-weight:500;}@media (max-width:885px){display:none;}"],g.a.font.dark),w=o.a.div.withConfig({displayName:"header__Dropdown",componentId:"zi46uq-3"})(["display:none;position:absolute;top:75px;left:0;width:100%;background-color:white;padding:0 20px 12px 20px;z-index:2;@media (max-width:885px){display:",";flex-direction:column;}"],function(e){return e.isOpen?"flex":"none"}),E=o.a.div.withConfig({displayName:"header__DDNavItem",componentId:"zi46uq-4"})(["margin:5px 30px;border-bottom:2px solid ",";"],g.a.border.lighter),k=o.a.div.withConfig({displayName:"header__StyledNavbarToggler",componentId:"zi46uq-5"})(["display:none;margin:0 30px;height:42px;@media (max-width:885px){display:flex !important;align-items:center;}"]),C=o.a.div.withConfig({displayName:"header__StyledNav",componentId:"zi46uq-6"})(["display:flex;"]),j=o.a.div.withConfig({displayName:"header__ActionButton",componentId:"zi46uq-7"})(["background-color:",";border-radius:3px;transition:all 0.2s;padding:8px 15px;margin:0 5px;border-radius:3px;display:flex;align-items:center;a{color:white !important;font-size:14px !important;font-weight:500;transition:color 0.2s;&:hover{text-decoration:none;}}&:hover{box-shadow:0 3px 10px rgba(0,0,0,0.1);}@media (max-width:885px){display:visible;}@media (max-width:630px){display:none;}"],g.a.theme.main),O=Object(o.a)(j).withConfig({displayName:"header__ActionButtonOutline",componentId:"zi46uq-8"})(["border:2px solid ",";background-color:white;a{color:"," !important;transition:color 0.2s;}"],g.a.theme.accent,g.a.font.dark),N=function(e){function t(t){var a;return(a=e.call(this,t)||this).toggle=a.toggle.bind(m()(m()(a))),a.state={isOpen:!1},a}p()(t,e);var a=t.prototype;return a.toggle=function(){this.setState({isOpen:!this.state.isOpen})},a.render=function(){var e=this.props.siteTitle;return console.log(this.state.isOpen),r.a.createElement(i.Fragment,null,r.a.createElement(x,{color:"#fff",light:!0,expand:"md"},r.a.createElement(b.a,{href:"/"},e),r.a.createElement(y,null),r.a.createElement(k,{onClick:this.toggle},r.a.createElement(h.a,{icon:f.a})),r.a.createElement(w,{isOpen:this.state.isOpen},r.a.createElement(E,null,r.a.createElement(s.Link,{to:"/listings/"},"Our Listings")),r.a.createElement(E,null,r.a.createElement(s.Link,{to:"/faq/"},"FAQ")),r.a.createElement(E,null,r.a.createElement(s.Link,{to:"/contact/"},"Work With Us")),r.a.createElement(E,null,r.a.createElement(s.Link,{to:"/referral/"},"Refer & Earn"))),r.a.createElement(C,{navbar:!0},r.a.createElement(v,null,r.a.createElement(s.Link,{to:"/listings/"},"Our Listings")),r.a.createElement(v,null,r.a.createElement(s.Link,{to:"/faq"},"FAQ")),r.a.createElement(j,null,r.a.createElement(s.Link,{to:"/contact"},"Work With Us")),r.a.createElement(O,null,r.a.createElement(s.Link,{to:"/referral"},"Refer & Earn")))))},t}(i.Component);N.propTypes={siteTitle:c.a.string},N.defaultProps={siteTitle:""};var _=N,R=o.a.div.withConfig({displayName:"footer__StyledFooter",componentId:"sc-1o5r1n6-0"})(["margin:180px auto 50px auto;padding:55px 24px !important;border-top:1px solid ",";max-width:1540px;"],g.a.border.light),z=function(e){var t=e.company;return r.a.createElement(R,null,"© ",t)};z.propTypes={company:c.a.string.isRequired};var S=z,T=(a(159),a(167),o.a.div.withConfig({displayName:"layout__Body",componentId:"sc-13x6kjw-0"})(["padding:0 24px;max-width:1540px;margin:auto;margin-top:100px;display:flex;flex-direction:column;@media (max-width:767px){padding:0 12px;}"])),q=function(e){var t=e.children;return r.a.createElement(s.StaticQuery,{query:"3926456875",render:function(e){var a=e.site;return r.a.createElement(i.Fragment,null,r.a.createElement(_,{siteTitle:a.siteMetadata.title}),r.a.createElement(T,null,t),r.a.createElement(S,{company:a.siteMetadata.officialTitle}))},data:n})};q.propTypes={children:c.a.node.isRequired};t.a=q},163:function(e,t,a){"use strict";function n(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}a.d(t,"a",function(){return n})},164:function(e,t,a){"use strict";function n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}a.d(t,"a",function(){return n})},203:function(e,t,a){"use strict";var n=a(152),i=a(153),r=a(163),o=a(164),l=a(0),c=a.n(l),s=a(4),d=a.n(s),p=a(154),u=a.n(p),m=a(155),h={children:d.a.node,inline:d.a.bool,tag:m.h,innerRef:d.a.oneOfType([d.a.object,d.a.func,d.a.string]),className:d.a.string,cssModule:d.a.object},f=function(e){function t(t){var a;return(a=e.call(this,t)||this).getRef=a.getRef.bind(Object(o.a)(Object(o.a)(a))),a.submit=a.submit.bind(Object(o.a)(Object(o.a)(a))),a}Object(r.a)(t,e);var a=t.prototype;return a.getRef=function(e){this.props.innerRef&&this.props.innerRef(e),this.ref=e},a.submit=function(){this.ref&&this.ref.submit()},a.render=function(){var e=this.props,t=e.className,a=e.cssModule,r=e.inline,o=e.tag,l=e.innerRef,s=Object(i.a)(e,["className","cssModule","inline","tag","innerRef"]),d=Object(m.e)(u()(t,!!r&&"form-inline"),a);return c.a.createElement(o,Object(n.a)({},s,{ref:l,className:d}))},t}(l.Component);f.propTypes=h,f.defaultProps={tag:"form"},t.a=f},204:function(e,t,a){"use strict";var n=a(152),i=a(153),r=a(0),o=a.n(r),l=a(4),c=a.n(l),s=a(154),d=a.n(s),p=a(155),u={children:c.a.node,row:c.a.bool,check:c.a.bool,inline:c.a.bool,disabled:c.a.bool,tag:p.h,className:c.a.string,cssModule:c.a.object},m=function(e){var t=e.className,a=e.cssModule,r=e.row,l=e.disabled,c=e.check,s=e.inline,u=e.tag,m=Object(i.a)(e,["className","cssModule","row","disabled","check","inline","tag"]),h=Object(p.e)(d()(t,!!r&&"row",c?"form-check":"form-group",!(!c||!s)&&"form-check-inline",!(!c||!l)&&"disabled"),a);return o.a.createElement(u,Object(n.a)({},m,{className:h}))};m.propTypes=u,m.defaultProps={tag:"div"},t.a=m},205:function(e,t,a){"use strict";var n=a(152),i=a(153),r=a(163),o=a(164),l=a(0),c=a.n(l),s=a(4),d=a.n(s),p=a(154),u=a.n(p),m=a(155),h={children:d.a.node,type:d.a.string,size:d.a.string,bsSize:d.a.string,state:Object(m.d)(d.a.string,'Please use the props "valid" and "invalid" to indicate the state.'),valid:d.a.bool,invalid:d.a.bool,tag:m.h,innerRef:d.a.oneOfType([d.a.object,d.a.func,d.a.string]),static:Object(m.d)(d.a.bool,'Please use the prop "plaintext"'),plaintext:d.a.bool,addon:d.a.bool,className:d.a.string,cssModule:d.a.object},f=function(e){function t(t){var a;return(a=e.call(this,t)||this).getRef=a.getRef.bind(Object(o.a)(Object(o.a)(a))),a.focus=a.focus.bind(Object(o.a)(Object(o.a)(a))),a}Object(r.a)(t,e);var a=t.prototype;return a.getRef=function(e){this.props.innerRef&&this.props.innerRef(e),this.ref=e},a.focus=function(){this.ref&&this.ref.focus()},a.render=function(){var e=this.props,t=e.className,a=e.cssModule,r=e.type,o=e.bsSize,l=e.state,s=e.valid,d=e.invalid,p=e.tag,h=e.addon,f=e.static,g=e.plaintext,b=e.innerRef,x=Object(i.a)(e,["className","cssModule","type","bsSize","state","valid","invalid","tag","addon","static","plaintext","innerRef"]),y=["radio","checkbox"].indexOf(r)>-1,v=new RegExp("\\D","g"),w=p||("select"===r||"textarea"===r?r:"input"),E="form-control";g||f?(E+="-plaintext",w=p||"input"):"file"===r?E+="-file":y&&(E=h?null:"form-check-input"),l&&void 0===s&&void 0===d&&("danger"===l?d=!0:"success"===l&&(s=!0)),x.size&&v.test(x.size)&&(Object(m.i)('Please use the prop "bsSize" instead of the "size" to bootstrap\'s input sizing.'),o=x.size,delete x.size);var k=Object(m.e)(u()(t,d&&"is-invalid",s&&"is-valid",!!o&&"form-control-"+o,E),a);return("input"===w||p&&"function"==typeof p)&&(x.type=r),!x.children||g||f||"select"===r||"string"!=typeof w||"select"===w||(Object(m.i)('Input with a type of "'+r+'" cannot have children. Please use "value"/"defaultValue" instead.'),delete x.children),c.a.createElement(w,Object(n.a)({},x,{ref:b,className:k}))},t}(c.a.Component);f.propTypes=h,f.defaultProps={type:"text"},t.a=f},206:function(e,t,a){"use strict";var n=a(152),i=a(153),r=a(163),o=a(164),l=a(0),c=a.n(l),s=a(4),d=a.n(s),p=a(154),u=a.n(p),m=a(155),h={active:d.a.bool,"aria-label":d.a.string,block:d.a.bool,color:d.a.string,disabled:d.a.bool,outline:d.a.bool,tag:m.h,innerRef:d.a.oneOfType([d.a.object,d.a.func,d.a.string]),onClick:d.a.func,size:d.a.string,children:d.a.node,className:d.a.string,cssModule:d.a.object,close:d.a.bool},f=function(e){function t(t){var a;return(a=e.call(this,t)||this).onClick=a.onClick.bind(Object(o.a)(Object(o.a)(a))),a}Object(r.a)(t,e);var a=t.prototype;return a.onClick=function(e){this.props.disabled?e.preventDefault():this.props.onClick&&this.props.onClick(e)},a.render=function(){var e=this.props,t=e.active,a=e["aria-label"],r=e.block,o=e.className,l=e.close,s=e.cssModule,d=e.color,p=e.outline,h=e.size,f=e.tag,g=e.innerRef,b=Object(i.a)(e,["active","aria-label","block","className","close","cssModule","color","outline","size","tag","innerRef"]);l&&void 0===b.children&&(b.children=c.a.createElement("span",{"aria-hidden":!0},"×"));var x="btn"+(p?"-outline":"")+"-"+d,y=Object(m.e)(u()(o,{close:l},l||"btn",l||x,!!h&&"btn-"+h,!!r&&"btn-block",{active:t,disabled:this.props.disabled}),s);b.href&&"button"===f&&(f="a");var v=l?"Close":null;return c.a.createElement(f,Object(n.a)({type:"button"===f&&b.onClick?"button":void 0},b,{className:y,ref:g,onClick:this.onClick,"aria-label":a||v}))},t}(c.a.Component);f.propTypes=h,f.defaultProps={color:"secondary",tag:"button"},t.a=f}}]);
  //# sourceMappingURL=component---src-pages-referral-js-f65c1f39b2cb09bd8af2.js.map