-
Notifications
You must be signed in to change notification settings - Fork 0
/
71598b7b9331211c5dc2cdd9e7a07dc39cf581bb-3558ad62e70f9f6bfcfc.js
75 lines (66 loc) · 30.5 KB
/
71598b7b9331211c5dc2cdd9e7a07dc39cf581bb-3558ad62e70f9f6bfcfc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
(self.webpackChunkcode_cave=self.webpackChunkcode_cave||[]).push([[577],{1929:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var o=n(7294),r=n(8032),i=n(4471),a=n.n(i),l=n(1164),s=n(917);var c=e=>{let{className:t}=e;return(0,s.tZ)("div",{className:`flex justify-center items-center h-full w-full ${t}`},(0,s.tZ)("svg",{"aria-hidden":"true",className:"w-8 h-8 mr-2 text-main-10 animate-spin dark:text-secondary-10 fill-main-100",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,s.tZ)("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),(0,s.tZ)("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})))};var u=()=>{const{0:e,1:t}=(0,o.useState)(!1),r=(0,o.useRef)(!0),i=(0,o.useRef)(null);return(0,o.useEffect)((()=>{if(!r.current||!i.current||"undefined"==typeof window)return;r.current=!1;const e=new Worker(new URL(n.p+n.u(475),n.b),{type:void 0});e.onmessage=e=>{let{data:n}=e;"ready"===n&&t(!0)};const o=i.current;o.width=o.clientWidth,o.height=o.clientHeight;const a=o.transferControlToOffscreen();e.postMessage({canvas:a},[a]);const l=()=>{e.postMessage({width:o.clientWidth,height:o.clientHeight})};window.addEventListener("resize",l,{passive:!0});const s=t=>{t.preventDefault(),e.postMessage({wheel:t.deltaY})};o.addEventListener("wheel",s);const c=t=>{e.postMessage({x:t.movementX,y:t.movementY})};o.addEventListener("mousedown",(e=>{e.preventDefault(),window.addEventListener("mousemove",c,{passive:!0}),window.addEventListener("mouseup",(()=>window.removeEventListener("mousemove",c)),{once:!0,passive:!0})}));let u;return o.addEventListener("touchstart",(t=>{if(1!==t.touches.length)return;const n=t.touches[0];t.preventDefault();const o={x:n.screenX,y:n.screenY};u=t=>{const{newX:n,newY:r}=((t,n)=>{const o=t.touches[0];return e.postMessage({x:o.screenX-n.x,y:o.screenY-n.y}),{newX:o.screenX,newY:o.screenY}})(t,o);o.x=n,o.y=r},window.addEventListener("touchmove",u,{passive:!0}),window.addEventListener("touchend",(()=>{window.removeEventListener("touchmove",u)}),{passive:!0})}),{passive:!0}),()=>{window&&(window.removeEventListener("resize",l),window.removeEventListener("mousemove",c),window.removeEventListener("touchmove",u),o&&o.removeEventListener("wheel",s),e.terminate())}}),[]),(0,s.tZ)("div",{className:"h-full w-full relative"},(0,s.tZ)("canvas",{ref:i,className:"bg-main-100 h-91 w-full flex items-center justify-center cursor-pointer"}),e?null:(0,s.tZ)(c,{className:"absolute top-0 left-0 right-0 bottom-0 z-10"}))};var d=e=>{let{heightClass:t="lg:min-h-[396px]",title:n,className:i,borderBottom:c,borderTop:d,babylon:p,image:m,titleBlockClassName:h,childrenBlockClassName:f,children:v}=e;const{0:b,1:g}=(0,o.useState)("translate-y-full");return(0,o.useEffect)((()=>{g("translate-y-0")}),[]),(0,s.tZ)("div",{className:`w-full flex items-center bg-main-100 relative overflow-hidden ${t} ${i}`},d?(0,s.tZ)(a(),{className:"absolute top-0 left-0 right-0 w-full"}):null,(0,s.tZ)(l.Z,{className:"h-full flex flex-col lg:flex-row py-12 lg:py-0 items-center justify-between text-secondary-100 flex-grow gap-y-8"},(0,s.tZ)("div",{className:`flex flex-col overflow-hidden items-left h-full justify-center text-secondary-100 h-full w-full ${h||"lg:w-1/2"} bg-main-100`},(0,s.tZ)("h1",{className:"overflow-hidden w-full"},(0,s.tZ)("span",{className:`banner-title inline-block text-3xl lg:text-4xl w-full text-center lg:text-start transition-all duration-1000 font-light ${b}`,dangerouslySetInnerHTML:{__html:`${n}`}}))),p?(0,s.tZ)("div",{className:"w-[85%] lg:w-1/2 lg:h-full hidden md:flex -order-1 lg:order-none"},(0,s.tZ)(u,null)):null,m?(0,s.tZ)("div",{className:"w-[220px] lg:w-1/2 lg:h-full flex justify-center lg:justify-end items-center -order-1 lg:order-none"},(0,s.tZ)(r.G,{image:m,alt:"cover",className:"object-contain aspect-square"})):null,v?(0,s.tZ)("div",{className:`w-full lg:h-full flex justify-center lg:justify-start items-center ${f}`},v):null),c?(0,s.tZ)(a(),{className:"absolute bottom-0 left-0 right-0 w-full"}):null)}},5081:function(e,t,n){"use strict";n.d(t,{Z:function(){return qe}});var o=n(7294),r=n(4160),i=n(7462),a=n(7536),l=n(2305),s=n(2518),c=n(1213),u=n(7356),d=n(2359),p=n(3072),m=n(2531),h=n(1178),f=n(3366),v=n(512),b=n(8510),g=n(2101),x=n(948),y=n(4136),Z=n(1657),w=n(9773),k=n(1705),C=n(2010).Z,M=n(8849);let R=!0,E=!1;const N=new M.V,L={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function $(e){e.metaKey||e.altKey||e.ctrlKey||(R=!0)}function P(){R=!1}function T(){"hidden"===this.visibilityState&&E&&(R=!0)}function S(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(n){}return R||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!L[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}var F=function(){const e=o.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",$,!0),t.addEventListener("mousedown",P,!0),t.addEventListener("pointerdown",P,!0),t.addEventListener("touchstart",P,!0),t.addEventListener("visibilitychange",T,!0))}),[]),t=o.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!S(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(E=!0,N.start(100,(()=>{E=!1})),t.current=!1,!0)},ref:e}};var j=n(1721),V=n(220);function z(e,t){var n=Object.create(null);return e&&o.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,o.isValidElement)(e)?t(e):e}(e)})),n}function I(e,t,n){return null!=n[t]?n[t]:e.props[t]}function O(e,t,n){var r=z(e.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var o,r=Object.create(null),i=[];for(var a in e)a in t?i.length&&(r[a]=i,i=[]):i.push(a);var l={};for(var s in t){if(r[s])for(o=0;o<r[s].length;o++){var c=r[s][o];l[r[s][o]]=n(c)}l[s]=n(s)}for(o=0;o<i.length;o++)l[i[o]]=n(i[o]);return l}(t,r);return Object.keys(i).forEach((function(a){var l=i[a];if((0,o.isValidElement)(l)){var s=a in t,c=a in r,u=t[a],d=(0,o.isValidElement)(u)&&!u.props.in;!c||s&&!d?c||!s||d?c&&s&&(0,o.isValidElement)(u)&&(i[a]=(0,o.cloneElement)(l,{onExited:n.bind(null,l),in:u.props.in,exit:I(l,"exit",e),enter:I(l,"enter",e)})):i[a]=(0,o.cloneElement)(l,{in:!1}):i[a]=(0,o.cloneElement)(l,{onExited:n.bind(null,l),in:!0,exit:I(l,"exit",e),enter:I(l,"enter",e)})}})),i}var B=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},D=function(e){function t(t,n){var o,r=(o=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(o));return o.state={contextValue:{isMounting:!0},handleExited:r,firstRender:!0},o}(0,j.Z)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,i=t.children,a=t.handleExited;return{children:t.firstRender?(n=e,r=a,z(n.children,(function(e){return(0,o.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:I(e,"appear",n),enter:I(e,"enter",n),exit:I(e,"exit",n)})}))):O(e,i,a),firstRender:!1}},n.handleExited=function(e,t){var n=z(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=(0,i.Z)({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=(0,f.Z)(e,["component","childFactory"]),i=this.state.contextValue,a=B(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?o.createElement(V.Z.Provider,{value:i},a):o.createElement(V.Z.Provider,{value:i},o.createElement(t,r,a))},t}(o.Component);D.propTypes={},D.defaultProps={component:"div",childFactory:function(e){return e}};var W=D,X=n(917),A=n(5893);var H=function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:a,rippleSize:l,in:s,onExited:c,timeout:u}=e,[d,p]=o.useState(!1),m=(0,v.Z)(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),h={width:l,height:l,top:-l/2+a,left:-l/2+i},f=(0,v.Z)(n.child,d&&n.childLeaving,r&&n.childPulsate);return s||d||p(!0),o.useEffect((()=>{if(!s&&null!=c){const e=setTimeout(c,u);return()=>{clearTimeout(e)}}}),[c,s,u]),(0,A.jsx)("span",{className:m,style:h,children:(0,A.jsx)("span",{className:f})})},q=n(1977);var U=(0,q.Z)("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const Y=["center","classes","className"];let K,G,_,J,Q=e=>e;const ee=(0,X.F4)(K||(K=Q`
0% {
transform: scale(0);
opacity: 0.1;
}
100% {
transform: scale(1);
opacity: 0.3;
}
`)),te=(0,X.F4)(G||(G=Q`
0% {
opacity: 1;
}
100% {
opacity: 0;
}
`)),ne=(0,X.F4)(_||(_=Q`
0% {
transform: scale(1);
}
50% {
transform: scale(0.92);
}
100% {
transform: scale(1);
}
`)),oe=(0,x.ZP)("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),re=(0,x.ZP)(H,{name:"MuiTouchRipple",slot:"Ripple"})(J||(J=Q`
opacity: 0;
position: absolute;
&.${0} {
opacity: 0.3;
transform: scale(1);
animation-name: ${0};
animation-duration: ${0}ms;
animation-timing-function: ${0};
}
&.${0} {
animation-duration: ${0}ms;
}
& .${0} {
opacity: 1;
display: block;
width: 100%;
height: 100%;
border-radius: 50%;
background-color: currentColor;
}
& .${0} {
opacity: 0;
animation-name: ${0};
animation-duration: ${0}ms;
animation-timing-function: ${0};
}
& .${0} {
position: absolute;
/* @noflip */
left: 0px;
top: 0;
animation-name: ${0};
animation-duration: 2500ms;
animation-timing-function: ${0};
animation-iteration-count: infinite;
animation-delay: 200ms;
}
`),U.rippleVisible,ee,550,(({theme:e})=>e.transitions.easing.easeInOut),U.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),U.child,U.childLeaving,te,550,(({theme:e})=>e.transitions.easing.easeInOut),U.childPulsate,ne,(({theme:e})=>e.transitions.easing.easeInOut));var ie=o.forwardRef((function(e,t){const n=(0,Z.Z)({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:a={},className:l}=n,s=(0,f.Z)(n,Y),[c,u]=o.useState([]),d=o.useRef(0),p=o.useRef(null);o.useEffect((()=>{p.current&&(p.current(),p.current=null)}),[c]);const m=o.useRef(!1),h=(0,M.Z)(),b=o.useRef(null),g=o.useRef(null),x=o.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:o,rippleSize:r,cb:i}=e;u((e=>[...e,(0,A.jsx)(re,{classes:{ripple:(0,v.Z)(a.ripple,U.ripple),rippleVisible:(0,v.Z)(a.rippleVisible,U.rippleVisible),ripplePulsate:(0,v.Z)(a.ripplePulsate,U.ripplePulsate),child:(0,v.Z)(a.child,U.child),childLeaving:(0,v.Z)(a.childLeaving,U.childLeaving),childPulsate:(0,v.Z)(a.childPulsate,U.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:o,rippleSize:r},d.current)])),d.current+=1,p.current=i}),[a]),y=o.useCallback(((e={},t={},n=(()=>{}))=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&m.current)return void(m.current=!1);"touchstart"===(null==e?void 0:e.type)&&(m.current=!0);const l=a?null:g.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,d;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(s.width/2),u=Math.round(s.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-s.left),u=Math.round(n-s.top)}if(i)d=Math.sqrt((2*s.width**2+s.height**2)/3),d%2==0&&(d+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-u),u)+2;d=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===b.current&&(b.current=()=>{x({pulsate:o,rippleX:c,rippleY:u,rippleSize:d,cb:n})},h.start(80,(()=>{b.current&&(b.current(),b.current=null)}))):x({pulsate:o,rippleX:c,rippleY:u,rippleSize:d,cb:n})}),[r,x,h]),w=o.useCallback((()=>{y({},{pulsate:!0})}),[y]),k=o.useCallback(((e,t)=>{if(h.clear(),"touchend"===(null==e?void 0:e.type)&&b.current)return b.current(),b.current=null,void h.start(0,(()=>{k(e,t)}));b.current=null,u((e=>e.length>0?e.slice(1):e)),p.current=t}),[h]);return o.useImperativeHandle(t,(()=>({pulsate:w,start:y,stop:k})),[w,y,k]),(0,A.jsx)(oe,(0,i.Z)({className:(0,v.Z)(U.root,a.root,l),ref:g},s,{children:(0,A.jsx)(W,{component:null,exit:!0,children:c})}))})),ae=n(3559);function le(e){return(0,ae.ZP)("MuiButtonBase",e)}var se=(0,q.Z)("MuiButtonBase",["root","disabled","focusVisible"]);const ce=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],ue=(0,x.ZP)("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${se.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),de=o.forwardRef((function(e,t){const n=(0,Z.Z)({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:a=!1,children:l,className:s,component:c="button",disabled:u=!1,disableRipple:d=!1,disableTouchRipple:p=!1,focusRipple:m=!1,LinkComponent:h="a",onBlur:g,onClick:x,onContextMenu:y,onDragLeave:w,onFocus:M,onFocusVisible:R,onKeyDown:E,onKeyUp:N,onMouseDown:L,onMouseLeave:$,onMouseUp:P,onTouchEnd:T,onTouchMove:S,onTouchStart:j,tabIndex:V=0,TouchRippleProps:z,touchRippleRef:I,type:O}=n,B=(0,f.Z)(n,ce),D=o.useRef(null),W=o.useRef(null),X=(0,k.Z)(W,I),{isFocusVisibleRef:H,onFocus:q,onBlur:U,ref:Y}=F(),[K,G]=o.useState(!1);u&&K&&G(!1),o.useImperativeHandle(r,(()=>({focusVisible:()=>{G(!0),D.current.focus()}})),[]);const[_,J]=o.useState(!1);o.useEffect((()=>{J(!0)}),[]);const Q=_&&!d&&!u;function ee(e,t,n=p){return C((o=>{t&&t(o);return!n&&W.current&&W.current[e](o),!0}))}o.useEffect((()=>{K&&m&&!d&&_&&W.current.pulsate()}),[d,m,K,_]);const te=ee("start",L),ne=ee("stop",y),oe=ee("stop",w),re=ee("stop",P),ae=ee("stop",(e=>{K&&e.preventDefault(),$&&$(e)})),se=ee("start",j),de=ee("stop",T),pe=ee("stop",S),me=ee("stop",(e=>{U(e),!1===H.current&&G(!1),g&&g(e)}),!1),he=C((e=>{D.current||(D.current=e.currentTarget),q(e),!0===H.current&&(G(!0),R&&R(e)),M&&M(e)})),fe=()=>{const e=D.current;return c&&"button"!==c&&!("A"===e.tagName&&e.href)},ve=o.useRef(!1),be=C((e=>{m&&!ve.current&&K&&W.current&&" "===e.key&&(ve.current=!0,W.current.stop(e,(()=>{W.current.start(e)}))),e.target===e.currentTarget&&fe()&&" "===e.key&&e.preventDefault(),E&&E(e),e.target===e.currentTarget&&fe()&&"Enter"===e.key&&!u&&(e.preventDefault(),x&&x(e))})),ge=C((e=>{m&&" "===e.key&&W.current&&K&&!e.defaultPrevented&&(ve.current=!1,W.current.stop(e,(()=>{W.current.pulsate(e)}))),N&&N(e),x&&e.target===e.currentTarget&&fe()&&" "===e.key&&!e.defaultPrevented&&x(e)}));let xe=c;"button"===xe&&(B.href||B.to)&&(xe=h);const ye={};"button"===xe?(ye.type=void 0===O?"button":O,ye.disabled=u):(B.href||B.to||(ye.role="button"),u&&(ye["aria-disabled"]=u));const Ze=(0,k.Z)(t,Y,D);const we=(0,i.Z)({},n,{centerRipple:a,component:c,disabled:u,disableRipple:d,disableTouchRipple:p,focusRipple:m,tabIndex:V,focusVisible:K}),ke=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:o,classes:r}=e,i={root:["root",t&&"disabled",n&&"focusVisible"]},a=(0,b.Z)(i,le,r);return n&&o&&(a.root+=` ${o}`),a})(we);return(0,A.jsxs)(ue,(0,i.Z)({as:xe,className:(0,v.Z)(ke.root,s),ownerState:we,onBlur:me,onClick:x,onContextMenu:ne,onFocus:he,onKeyDown:be,onKeyUp:ge,onMouseDown:te,onMouseLeave:ae,onMouseUp:re,onDragLeave:oe,onTouchEnd:de,onTouchMove:pe,onTouchStart:se,ref:Ze,tabIndex:u?-1:V,type:O},ye,B,{children:[l,Q?(0,A.jsx)(ie,(0,i.Z)({ref:X,center:a},z)):null]}))}));var pe=de,me=n(8974);var he=(0,q.Z)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);var fe=(0,q.Z)("MuiListItemIcon",["root","alignItemsFlexStart"]);var ve=(0,q.Z)("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function be(e){return(0,ae.ZP)("MuiMenuItem",e)}var ge=(0,q.Z)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const xe=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],ye=(0,x.ZP)(pe,{shouldForwardProp:e=>(0,y.Z)(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>(0,i.Z)({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${ge.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,g.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${ge.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,g.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${ge.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,g.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,g.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${ge.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ge.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${he.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${he.inset}`]:{marginLeft:52},[`& .${ve.root}`]:{marginTop:0,marginBottom:0},[`& .${ve.inset}`]:{paddingLeft:36},[`& .${fe.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&(0,i.Z)({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${fe.root} svg`]:{fontSize:"1.25rem"}}))));var Ze=o.forwardRef((function(e,t){const n=(0,Z.Z)({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:a="li",dense:l=!1,divider:s=!1,disableGutters:c=!1,focusVisibleClassName:u,role:d="menuitem",tabIndex:p,className:m}=n,h=(0,f.Z)(n,xe),g=o.useContext(w.Z),x=o.useMemo((()=>({dense:l||g.dense||!1,disableGutters:c})),[g.dense,l,c]),y=o.useRef(null);(0,me.Z)((()=>{r&&y.current&&y.current.focus()}),[r]);const C=(0,i.Z)({},n,{dense:x.dense,divider:s,disableGutters:c}),M=(e=>{const{disabled:t,dense:n,divider:o,disableGutters:r,selected:a,classes:l}=e,s={root:["root",n&&"dense",t&&"disabled",!r&&"gutters",o&&"divider",a&&"selected"]},c=(0,b.Z)(s,be,l);return(0,i.Z)({},l,c)})(n),R=(0,k.Z)(y,t);let E;return n.disabled||(E=void 0!==p?p:-1),(0,A.jsx)(w.Z.Provider,{value:x,children:(0,A.jsx)(ye,(0,i.Z)({ref:R,role:d,tabIndex:E,component:a,focusVisibleClassName:(0,v.Z)(M.focusVisible,u),className:(0,v.Z)(M.root,m)},h,{ownerState:C,classes:M}))})})),we=n(8216),ke=n(1529),Ce=n(4423);function Me(e){return(0,ae.ZP)("PrivateSwitchBase",e)}(0,q.Z)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Re=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],Ee=(0,x.ZP)(pe)((({ownerState:e})=>(0,i.Z)({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12}))),Ne=(0,x.ZP)("input",{shouldForwardProp:y.Z})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1});var Le=o.forwardRef((function(e,t){const{autoFocus:n,checked:o,checkedIcon:r,className:a,defaultChecked:l,disabled:s,disableFocusRipple:c=!1,edge:u=!1,icon:d,id:p,inputProps:m,inputRef:h,name:g,onBlur:x,onChange:y,onFocus:Z,readOnly:w,required:k=!1,tabIndex:C,type:M,value:R}=e,E=(0,f.Z)(e,Re),[N,L]=(0,ke.Z)({controlled:o,default:Boolean(l),name:"SwitchBase",state:"checked"}),$=(0,Ce.Z)();let P=s;$&&void 0===P&&(P=$.disabled);const T="checkbox"===M||"radio"===M,S=(0,i.Z)({},e,{checked:N,disabled:P,disableFocusRipple:c,edge:u}),F=(e=>{const{classes:t,checked:n,disabled:o,edge:r}=e,i={root:["root",n&&"checked",o&&"disabled",r&&`edge${(0,we.Z)(r)}`],input:["input"]};return(0,b.Z)(i,Me,t)})(S);return(0,A.jsxs)(Ee,(0,i.Z)({component:"span",className:(0,v.Z)(F.root,a),centerRipple:!0,focusRipple:!c,disabled:P,tabIndex:null,role:void 0,onFocus:e=>{Z&&Z(e),$&&$.onFocus&&$.onFocus(e)},onBlur:e=>{x&&x(e),$&&$.onBlur&&$.onBlur(e)},ownerState:S,ref:t},E,{children:[(0,A.jsx)(Ne,(0,i.Z)({autoFocus:n,checked:o,defaultChecked:l,className:F.input,disabled:P,id:T?p:void 0,name:g,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;L(t),y&&y(e,t)},readOnly:w,ref:h,required:k,ownerState:S,tabIndex:C,type:M},"checkbox"===M&&void 0===R?{}:{value:R},m)),N?r:d]}))})),$e=n(5949),Pe=(0,$e.Z)((0,A.jsx)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),Te=(0,$e.Z)((0,A.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),Se=(0,$e.Z)((0,A.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function Fe(e){return(0,ae.ZP)("MuiCheckbox",e)}var je=(0,q.Z)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]);const Ve=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],ze=(0,x.ZP)(Le,{shouldForwardProp:e=>(0,y.Z)(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${(0,we.Z)(n.size)}`],"default"!==n.color&&t[`color${(0,we.Z)(n.color)}`]]}})((({theme:e,ownerState:t})=>(0,i.Z)({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,g.Fq)("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${je.checked}, &.${je.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${je.disabled}`]:{color:(e.vars||e).palette.action.disabled}}))),Ie=(0,A.jsx)(Te,{}),Oe=(0,A.jsx)(Pe,{}),Be=(0,A.jsx)(Se,{});var De=o.forwardRef((function(e,t){var n,r;const a=(0,Z.Z)({props:e,name:"MuiCheckbox"}),{checkedIcon:l=Ie,color:s="primary",icon:c=Oe,indeterminate:u=!1,indeterminateIcon:d=Be,inputProps:p,size:m="medium",className:h}=a,g=(0,f.Z)(a,Ve),x=u?d:c,y=u?d:l,w=(0,i.Z)({},a,{color:s,indeterminate:u,size:m}),k=(e=>{const{classes:t,indeterminate:n,color:o,size:r}=e,a={root:["root",n&&"indeterminate",`color${(0,we.Z)(o)}`,`size${(0,we.Z)(r)}`]},l=(0,b.Z)(a,Fe,t);return(0,i.Z)({},t,l)})(w);return(0,A.jsx)(ze,(0,i.Z)({type:"checkbox",inputProps:(0,i.Z)({"data-indeterminate":u},p),icon:o.cloneElement(x,{fontSize:null!=(n=x.props.fontSize)?n:m}),checkedIcon:o.cloneElement(y,{fontSize:null!=(r=y.props.fontSize)?r:m}),ownerState:w,ref:t,className:(0,v.Z)(k.root,h)},g,{classes:k}))})),We=n(7678);var Xe=e=>{var t,n,r;let{markup:f,validationMarkup:v}=e;const{0:b,1:g}=(0,o.useState)(!1),{0:x,1:y}=(0,o.useState)(!0),Z=(0,o.useRef)(null),{register:w,handleSubmit:k,control:C,reset:M,formState:{errors:R,isValid:E}}=(0,a.cI)({mode:"onBlur",resolver:(0,l.X)(c.h),defaultValues:{consentToProcess:!0}}),N=(e,t,n,o)=>{var r;return(0,X.tZ)(h.sc,(0,i.Z)({id:e,label:t,variant:"outlined",error:!(null===(r=R[e])||void 0===r||!r.message),helperText:(0,p.OZ)(e,R,v),"aria-label":e,fullWidth:!0,multiline:n,rows:o,size:"small"},w(e)))};return(0,X.tZ)("form",{onSubmit:k((async e=>{if(!E||!Z.current)return;if(!await Z.current.executeAsync())return;g(!0);const t=(0,u.e)("hubspotutk"),n=(0,p.WU)(e,t);try{200===(await d.l.post("/3eae609c-bcf2-47f4-ad93-11a65c4b4f9d",n)).status&&M()}catch(o){}g(!1)})),className:"flex-1 flex flex-col gap-2.5"},(0,X.tZ)("div",{className:"flex flex-col gap-4"},N("email",f.emailLabel),N("company",f.companyNameLabel),N("firstname",f.nameLabel),(0,X.tZ)(h.sc,(0,i.Z)({id:"services",label:f.servicesLabel,variant:"outlined",select:!0,defaultValue:"",error:!(null===(t=R.services)||void 0===t||!t.message),helperText:(0,p.OZ)("services",R,v),"aria-label":"services",fullWidth:!0,size:"small"},w("services")),Object.values(s.U5).map((e=>(0,X.tZ)(Ze,{key:e,value:e},f.servicesOptions[e])))),(0,X.tZ)(h.sc,(0,i.Z)({id:"budget",label:f.budgetLabel,variant:"outlined",select:!0,defaultValue:"",error:!(null===(n=R.budget)||void 0===n||!n.message),helperText:(0,p.OZ)("budget",R,v),"aria-label":"budget",fullWidth:!0,size:"small"},w("budget")),Object.values(s.D9).map((e=>(0,X.tZ)(Ze,{key:e,value:e},f.budgetOptions[e])))),N("describe_your_project",f.descriptionLabel,!0,5)),(0,X.tZ)(a.Qr,{control:C,name:"consentToProcess",render:e=>{let{field:{onChange:t,ref:n,value:o}}=e;return(0,X.tZ)(h.J$,{control:(0,X.tZ)(De,{id:"consentToProcess",checked:o,onChange:e=>{t(e),y(!!e.target.checked)},sx:{color:x?"#111":"#D32F2F","&.Mui-checked":{color:"#111"}},inputRef:n}),label:f.privacyPolicyCheckboxLabel,"aria-label":"consentToProcess",sx:{marginTop:"10px"}})}}),null!==(r=R.consentToProcess)&&void 0!==r&&r.message||!x?(0,X.tZ)("p",{className:"text-[10.5px] text-[#D32F2F] ml-3"},null==v?void 0:v.consent):null,(0,X.tZ)(h.J$,{control:(0,X.tZ)(De,{defaultChecked:!0,sx:{color:"#111","&.Mui-checked":{color:"#111"}}}),label:f.adsCheckboxLabel,"aria-label":"adsCheckboxLabel"}),(0,X.tZ)(h.sc,{id:"amex",label:"amex","aria-label":"amex",fullWidth:!0,style:{display:"none"},size:"small"}),(0,X.tZ)("div",{className:"flex items-center justify-center pt-5 text-main-100"},(0,X.tZ)(We.Z,{ref:Z,badge:"bottomleft",sitekey:"6LeqV4wqAAAAAMycXF-7Gcujzm9i-LPbTIPu1q90",size:"invisible",style:{display:"none"}}),(0,X.tZ)("button",{type:"submit",disabled:b||!x,className:"px-0 sm:px-5 md:px-6 font-bold whitespace-nowrap rounded-lg mx-0 text-secondary-100 h-12 flex items-center justify-center disabled:bg-main-70 hover:bg-main-70 px-6 relative "+(b?"bg-main-70":"bg-main-100")},b?(0,X.tZ)(m.Z,null):null,(0,X.tZ)("span",{className:"z-20"},f.buttonLabel.toUpperCase()))))},Ae=n(1164);var He=()=>{(0,o.useEffect)((()=>{if(null!==globalThis&&void 0!==globalThis&&globalThis.document){const e=globalThis.document.body;new MutationObserver((()=>{e.style.touchAction="hidden"===e.style.overflow?"none":""})).observe(e,{attributes:!0,attributeFilter:["style"]})}}),[])};var qe=e=>{var t,n,i,a,l,s,c,u,d,p;let{lang:m}=e;const h=(0,r.K2)(Ue);He();const f=null==h||null===(t=h.markupData)||void 0===t||null===(n=t.nodes)||void 0===n||null===(i=n.find((e=>e.fields.language===m)))||void 0===i?void 0:i.frontmatter,v=null==f?void 0:f.contactForm,b=null!==(a=null==h||null===(l=h[m])||void 0===l||null===(s=l.nodes)||void 0===s||null===(c=s[0])||void 0===c?void 0:c.html)&&void 0!==a?a:null==h||null===(u=h.en)||void 0===u||null===(d=u.nodes)||void 0===d||null===(p=d[0])||void 0===p?void 0:p.html,g=null==f?void 0:f.validation;return(0,X.tZ)(o.Fragment,null,v?(0,X.tZ)(o.Fragment,null,(0,X.tZ)("section",{className:"relative w-full bg-secondary-100 py-16"},(0,X.tZ)("div",{id:"contact-form",className:"absolute -top-16 opacity-0 pointer-events-none"},"anchor"),(0,X.tZ)(Ae.Z,{maxWidthClass:"max-w-[1280px]",className:"flex-col items-center text-main-100"},(0,X.tZ)("div",{className:"flex justify-between w-full items-center pb-8 sm:pb-14 flex-col sm:flex-row gap-5"},(0,X.tZ)("h2",{className:"text-4xl font-bold w-full text-main-100"},null==v?void 0:v.sectionTitle.toUpperCase()),(0,X.tZ)("div",{className:"w-full sm:w-max text-start sm:text-end text-xl font-normal grow shrink-0 text-main-100"},null==v?void 0:v.sectionLinkTitle.toUpperCase())),(0,X.tZ)("div",{className:"flex flex-col md:flex-row gap-10 lg:gap-28 justify-center max-w-4.5xl items-stretch"},b?(0,X.tZ)("div",{className:"contact-form-description flex-1 text-xl font-light w-full",dangerouslySetInnerHTML:{__html:b}}):null,(0,X.tZ)(Xe,{markup:v,validationMarkup:g}))))):null)};const Ue="772577693"},4471:function(e,t,n){var o=n(7294);function r(e){return o.createElement("svg",e,[o.createElement("line",{width:"800",height:"8",stroke:"#f9f9f9",strokeWidth:"8",strokeDasharray:"8 8",x1:"0",x2:"100%",y1:"4",y2:"4",key:0}),o.createElement("line",{width:"800",height:"8",stroke:"#111111",strokeWidth:"8",strokeDasharray:"8 8",x1:"8",x2:"100%",y1:"4",y2:"4",key:1})])}r.defaultProps={height:"8"},e.exports=r,r.default=r}}]);
//# sourceMappingURL=71598b7b9331211c5dc2cdd9e7a07dc39cf581bb-3558ad62e70f9f6bfcfc.js.map