-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path4a519dbe114cb549bc497a357901eeeb0da3015e-3b577a21dcf6ab656780.js
3 lines (3 loc) · 14.1 KB
/
4a519dbe114cb549bc497a357901eeeb0da3015e-3b577a21dcf6ab656780.js
1
2
3
/*! For license information please see 4a519dbe114cb549bc497a357901eeeb0da3015e-3b577a21dcf6ab656780.js.LICENSE.txt */
(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{CNgt:function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},a=this&&this.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&(n[o[r]]=e[o[r]])}return n};t.__esModule=!0;var c=n("q1tI"),s=n("17x9"),l=n("GemG"),u=n("Rk8H"),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={lineHeight:null},t.textarea=null,t.onResize=function(e){t.props.onResize&&t.props.onResize(e)},t.updateLineHeight=function(){t.textarea&&t.setState({lineHeight:u(t.textarea)})},t.onChange=function(e){var n=t.props.onChange;t.currentValue=e.currentTarget.value,n&&n(e)},t}return r(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props,n=t.maxRows,o=t.async;"number"==typeof n&&this.updateLineHeight(),"number"==typeof n||o?setTimeout((function(){return e.textarea&&l(e.textarea)})):this.textarea&&l(this.textarea),this.textarea&&this.textarea.addEventListener("autosize:resized",this.onResize)},t.prototype.componentWillUnmount=function(){this.textarea&&(this.textarea.removeEventListener("autosize:resized",this.onResize),l.destroy(this.textarea))},t.prototype.render=function(){var e=this,t=this.props,n=(t.onResize,t.maxRows),o=(t.onChange,t.style),r=(t.innerRef,t.children),s=a(t,["onResize","maxRows","onChange","style","innerRef","children"]),l=this.state.lineHeight,u=n&&l?l*n:null;return c.createElement("textarea",i({},s,{onChange:this.onChange,style:u?i({},o,{maxHeight:u}):o,ref:function(t){e.textarea=t,"function"==typeof e.props.innerRef?e.props.innerRef(t):e.props.innerRef&&(e.props.innerRef.current=t)}}),r)},t.prototype.componentDidUpdate=function(){this.textarea&&l.update(this.textarea)},t.defaultProps={rows:1,async:!1},t.propTypes={rows:s.number,maxRows:s.number,onResize:s.func,innerRef:s.any,async:s.bool},t}(c.Component);t.TextareaAutosize=c.forwardRef((function(e,t){return c.createElement(d,i({},e,{innerRef:t}))}))},GemG:function(e,t,n){var o,r,i;r=[e,t],void 0===(i="function"==typeof(o=function(e,t){"use strict";var n,o,r="function"==typeof Map?new Map:(n=[],o=[],{has:function(e){return n.indexOf(e)>-1},get:function(e){return o[n.indexOf(e)]},set:function(e,t){-1===n.indexOf(e)&&(n.push(e),o.push(t))},delete:function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),o.splice(t,1))}}),i=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(u){i=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function a(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!r.has(e)){var t,n=null,o=null,a=null,c=function(){e.clientWidth!==o&&d()},s=function(t){window.removeEventListener("resize",c,!1),e.removeEventListener("input",d,!1),e.removeEventListener("keyup",d,!1),e.removeEventListener("autosize:destroy",s,!1),e.removeEventListener("autosize:update",d,!1),Object.keys(t).forEach((function(n){e.style[n]=t[n]})),r.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",s,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",d,!1),window.addEventListener("resize",c,!1),e.addEventListener("input",d,!1),e.addEventListener("autosize:update",d,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",r.set(e,{destroy:s,update:d}),"vertical"===(t=window.getComputedStyle(e,null)).resize?e.style.resize="none":"both"===t.resize&&(e.style.resize="horizontal"),n="content-box"===t.boxSizing?-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),isNaN(n)&&(n=0),d()}function l(t){var n=e.style.width;e.style.width="0px",e.offsetWidth,e.style.width=n,e.style.overflowY=t}function u(){if(0!==e.scrollHeight){var t=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}(e),r=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+n+"px",o=e.clientWidth,t.forEach((function(e){e.node.scrollTop=e.scrollTop})),r&&(document.documentElement.scrollTop=r)}}function d(){u();var t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null),o="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):e.offsetHeight;if(o<t?"hidden"===n.overflowY&&(l("scroll"),u(),o="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight):"hidden"!==n.overflowY&&(l("hidden"),u(),o="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight),a!==o){a=o;var r=i("autosize:resized");try{e.dispatchEvent(r)}catch(c){}}}}function c(e){var t=r.get(e);t&&t.destroy()}function s(e){var t=r.get(e);t&&t.update()}var l=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((l=function(e){return e}).destroy=function(e){return e},l.update=function(e){return e}):((l=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],(function(e){return a(e)})),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],c),e},l.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],s),e}),t.default=l,e.exports=t.default})?o.apply(t,r):o)||(e.exports=i)},LlZQ:function(e,t,n){"use strict";n.d(t,"a",(function(){return R}));var o=n("2A+t"),r=n("Bl7J"),i=n("upwP"),a=function(e){var t=e.titleBeforeColon,n=e.titleAfterColon,r=e.subtitle;return Object(o.c)("div",null,Object(o.c)("h1",{sx:Object.assign({},i.a.styles.h1,{color:"primary",mt:"2rem",mb:"1rem"})},t,t&&n&&": ",Object(o.c)("div",{sx:{display:"inline-block",color:"white"}},n)),Object(o.c)("p",{sx:{color:"text",mb:"4rem"}},r))},c=n("uoG0"),s=n("vOnD"),l=n("Wbzz"),u=(Object(s.keyframes)(["0%{transform:translateY(70px);opacity:.5;}100%{transform:translateY(0px);opacity:1;}"]),Object(s.keyframes)(["from{opacity:0;-webkit-transform:translate3d(0,20px,0);transform:translate3d(0,20px,0);}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);}"]),function(e){var t=e.scroll,n=e.scrollTo,r=e.navigateTo,i=e.buttonText,a=e.animation,c=e.transition;return Object(o.c)(d,{onClick:function(){n?t.animateScroll(document.getElementById(n),null,{speed:300}):r&&Object(l.c)(r)},sx:{display:"flex",alignItems:"center",justifyContent:"center",mb:"4rem",mr:".5rem",width:"fit-content",mx:"auto",borderRadius:"30px",p:".5rem .5rem .5rem 1rem",bg:"transparent",borderStyle:"solid",borderWidth:"1px",borderColor:"primary",cursor:"pointer",textDecoration:"none",color:"inherit",":hover":{boxShadow:"0px 0px 0px 14px rgba(255, 10, 142, .1)"},transition:{transition:c}},$_css:a},Object(o.c)("div",{sx:{mr:"1.5rem"}},i),Object(o.c)("div",{sx:{display:"flex",alignItems:"center",justifyContent:"center",bg:"primary",borderRadius:"50%",width:30,height:30}},"→"))}),d=Object(s.default)("button").withConfig({displayName:"OutlineButton___StyledButton",componentId:"sc-1dn2mut-0"})(["",""],(function(e){return e.$_css})),p=function(e){var t=e.title,n=e.subtitle,r=e.body,a=e.list,s=e.visual,l=e.sideContent,d=e.alignVisualRight,p=e.htmlBody,f=e.bottomPadding,m=e.cta;return Object(o.c)("div",{sx:{mb:"6rem"}},t&&Object(o.c)("h2",{sx:{mb:f||"2rem",color:"white"}},t),n&&Object(o.c)("p",{sx:Object.assign({},i.a.styles.blockSubtitle,{mb:"2rem"})},n),r&&Object(o.c)("div",{sx:{mb:s||l?"2rem":0,color:"text"}},r),p,s&&!d&&Object(o.c)("div",{sx:{mr:"2rem",width:"35%",display:"inline-block"}},s),Object(o.c)("div",{sx:{display:"inline-block",verticalAlign:"top",width:"60%",color:"text"}},l&&l.map((function(e,t){return Object(o.c)("p",{key:t},e)})),a&&Object(o.c)(c.a,{list:a})),s&&d&&Object(o.c)("div",{sx:{ml:"2rem",width:"35%",display:"inline-block"}},s),m&&Object(o.c)(u,m))},f=n("q1tI"),m=n("O6Fj"),h=n.n(m),b=Object(s.keyframes)(["from{opacity:0;transform:translate3d(0,50%,0);}to{opacity:1;transform:translate3d(0,0,0);}"]),y=s.default.label.withConfig({displayName:"UnderlineInput__Label",componentId:"sc-1edlbu5-0"})(["position:absolute;top:.5rem;left:1rem;z-index:1;opacity:0;animation:"," 0.5s forwards;font-size:14px;font-weight:600;color:rgba(255,255,255,0.6);text-transform:capitalize;"],b),g=s.default.label.withConfig({displayName:"UnderlineInput__HiddenLabel",componentId:"sc-1edlbu5-1"})(["border:0;clip:rect(1px 1px 1px 1px);clip;rect(1px,1px,1px,1px);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;"]);function x(e){var t=Object(f.useState)(!1),n=t[0],r=t[1],i=Object(f.useState)(""),a=i[0],c=i[1],s=n||Boolean(a),l=s?y:g;return Object(o.c)("div",{sx:{position:"relative"}},Object(o.c)(l,{htmlFor:e.id},e.name),Object(o.c)(h.a,Object.assign({className:"data-hj-whitelist",onChange:function(e){return c(e.target.value)},onFocus:function(){return r(!0)},onBlur:function(){return r(!1)},sx:{display:"block",width:"100%",border:0,mb:"1rem",fontSize:"1rem",bg:"secondaryBackground",padding:s?"2rem 1rem 1rem 1rem":"1rem",lineHeight:1.5,transition:"all .3s",color:"white",resize:"none",minHeight:120,borderRadius:8,"::placeholder":{color:"rgba(255, 255, 255, 1)"},":focus::-webkit-input-placeholder":{color:"transparent"}}},e)))}var v=function(e){var t=Object(f.useState)(!1),n=t[0],r=t[1],i=Object(f.useState)(""),a=i[0],c=i[1],s=n||Boolean(a),l=s?y:g;return Object(o.c)("div",{sx:{position:"relative"}},Object(o.c)(l,{htmlFor:e.id},e.name),Object(o.c)("input",Object.assign({onChange:function(e){return c(e.target.value)},onFocus:function(){return r(!0)},onBlur:function(){return r(!1)},sx:{display:"block",width:"100%",border:0,mb:"1rem",fontSize:"1rem",bg:"secondaryBackground",padding:s?"2rem 1rem 1rem 1rem":"1rem",lineHeight:1.5,transition:"all .3s",color:"white",borderRadius:8,"::placeholder":{color:"rgba(255, 255, 255, 1)"},":focus::-webkit-input-placeholder":{color:"transparent"}}},e)))},w=n("nocd"),O="clickSubmitForm",j="submitContactForm",z="submitSuccess",E="submitFailure";function S(e,t){void 0===t&&(t={}),"undefined"!=typeof window&&window.gtag&&window.gtag("event",e,Object.assign({},t))}var C=function(){var e=Object(f.useState)(!1),t=e[0],n=e[1];return Object(o.c)("div",{sx:{mt:"6rem",mx:"auto",maxWidth:"30rem"},id:"contact-form"},Object(o.c)("h1",{sx:{fontSize:["3rem","3rem","4rem"],textAlign:"center",mb:"6rem"}},"Let's chat"),Object(o.c)("div",null,Object(o.c)("form",{action:"https://formspree.io/[email protected]",method:"POST",onClick:function(){S(O)},onSubmit:function(e){e.preventDefault(),S(j);var t=e.target,o=new FormData(t),r=new XMLHttpRequest;r.open(t.method,t.action),r.setRequestHeader("Accept","application/json"),r.onreadystatechange=function(){r.readyState===XMLHttpRequest.DONE&&(200===r.status?(S(z),t.reset(),n(!0)):(S(E),n(!1)))},r.send(o)}},Object(o.c)(v,{placeholder:"Your name",type:"text",name:"name",id:"name",required:!0}),Object(o.c)(v,{placeholder:"Your email",name:"email",type:"email",id:"email",required:!0}),Object(o.c)(v,{placeholder:"Your phone",name:"phone",type:"tel",id:"phone",required:!0}),Object(o.c)(x,{placeholder:"Your message",name:"message",id:"message",required:!0}),t&&Object(o.c)("div",null,Object(o.c)("div",{sx:{display:"flex",alignItems:"center",mb:"1rem",p:"1rem",bg:"deeppink",color:"white"}},Object(o.c)(w.b,{fill:"white"})," ",Object(o.c)("div",{sx:{ml:".5rem",fontWeight:600}},"Message sent. We'll reach out soon.",Object(o.c)("img",{height:"1",width:"1",style:{display:"none"},alt:"",src:"https://px.ads.linkedin.com/collect/?pid=1820420&conversionId=1891828&fmt=gif"})))),Object(o.c)("button",{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%",p:"1rem",bg:"#5A06E3",color:"white",cursor:"pointer",transition:"all .3s",borderRadius:8,"&:hover":{bg:"#390096"}}},Object(o.c)("div",{sx:{width:"100%",textAlign:"center"}},Object(o.c)("div",{sx:{fontWeight:600}},"Send"))))))},R="contact-form";t.b=function(e){var t=e.headerProps,n=e.contentPropList;return Object(o.c)(r.a,null,Object(o.c)(a,t),n.map((function(e,t){return Object(o.c)(p,Object.assign({key:t},e))})),Object(o.c)(C,{id:R}),Object(o.c)("div",{sx:{mt:"4rem"}},Object(o.c)(u,{navigateTo:"/",buttonText:"Learn More about Bitmatica"})))}},O6Fj:function(e,t,n){"use strict";t.__esModule=!0;var o=n("CNgt");t.default=o.TextareaAutosize},Rk8H:function(e,t,n){var o=n("jTPX");e.exports=function(e){var t=o(e,"line-height"),n=parseFloat(t,10);if(t===n+""){var r=e.style.lineHeight;e.style.lineHeight=t+"em",t=o(e,"line-height"),n=parseFloat(t,10),r?e.style.lineHeight=r:delete e.style.lineHeight}if(-1!==t.indexOf("pt")?(n*=4,n/=3):-1!==t.indexOf("mm")?(n*=96,n/=25.4):-1!==t.indexOf("cm")?(n*=96,n/=2.54):-1!==t.indexOf("in")?n*=96:-1!==t.indexOf("pc")&&(n*=16),n=Math.round(n),"normal"===t){var i=e.nodeName,a=document.createElement(i);a.innerHTML=" ","TEXTAREA"===i.toUpperCase()&&a.setAttribute("rows","1");var c=o(e,"font-size");a.style.fontSize=c,a.style.padding="0px",a.style.border="0px";var s=document.body;s.appendChild(a),n=a.offsetHeight,s.removeChild(a)}return n}},jTPX:function(e,t){e.exports=function(e,t,n){return((n=window.getComputedStyle)?n(e):e.currentStyle)[t.replace(/-(\w)/gi,(function(e,t){return t.toUpperCase()}))]}},uoG0:function(e,t,n){"use strict";var o=n("2A+t"),r=n("nocd");t.a=function(e){return e.list.map((function(e){return Object(o.c)("div",{key:e,sx:{display:"flex",alignItems:"center",mb:".5rem"}},Object(o.c)("div",{sx:{display:"flex",flexShrink:0}},Object(o.c)(r.b,{sx:{alignSelf:"center"},fill:"#755BFF"})),Object(o.c)("div",{sx:{ml:".75rem"}},e))}))}}}]);
//# sourceMappingURL=4a519dbe114cb549bc497a357901eeeb0da3015e-3b577a21dcf6ab656780.js.map