-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path71598b7b9331211c5dc2cdd9e7a07dc39cf581bb-0cdc2a4521f1d2ad11d3.js
75 lines (66 loc) · 30.5 KB
/
71598b7b9331211c5dc2cdd9e7a07dc39cf581bb-0cdc2a4521f1d2ad11d3.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 relative lg: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"}`},(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 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 Ye}});var o=n(7294),r=n(4160),i=n(8322),a=n(7462),l=n(7536),s=n(2305),c=n(2518),u=n(1213),d=n(7356),p=n(2359),m=n(3072),h=n(2531),f=n(1178),v=n(3366),b=n(512),g=n(8510),x=n(2101),y=n(948),Z=n(4136),w=n(1657),k=n(9773),C=n(1705),M=n(2010).Z,R=n(8849);let E=!0,N=!1;const L=new R.V,$={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 P(e){e.metaKey||e.altKey||e.ctrlKey||(E=!0)}function T(){E=!1}function S(){"hidden"===this.visibilityState&&N&&(E=!0)}function F(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(n){}return E||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!$[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}var j=function(){const e=o.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",P,!0),t.addEventListener("mousedown",T,!0),t.addEventListener("pointerdown",T,!0),t.addEventListener("touchstart",T,!0),t.addEventListener("visibilitychange",S,!0))}),[]),t=o.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!F(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(N=!0,L.start(100,(()=>{N=!1})),t.current=!1,!0)},ref:e}};var V=n(1721),z=n(220);function I(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 O(e,t,n){return null!=n[t]?n[t]:e.props[t]}function B(e,t,n){var r=I(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:O(l,"exit",e),enter:O(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:O(l,"exit",e),enter:O(l,"enter",e)})}})),i}var D=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},W=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,V.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,I(n.children,(function(e){return(0,o.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:O(e,"appear",n),enter:O(e,"enter",n),exit:O(e,"exit",n)})}))):B(e,i,a),firstRender:!1}},n.handleExited=function(e,t){var n=I(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=(0,a.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,v.Z)(e,["component","childFactory"]),i=this.state.contextValue,a=D(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?o.createElement(z.Z.Provider,{value:i},a):o.createElement(z.Z.Provider,{value:i},o.createElement(t,r,a))},t}(o.Component);W.propTypes={},W.defaultProps={component:"div",childFactory:function(e){return e}};var X=W,A=n(917),H=n(5893);var q=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,b.Z)(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),h={width:l,height:l,top:-l/2+a,left:-l/2+i},f=(0,b.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,H.jsx)("span",{className:m,style:h,children:(0,H.jsx)("span",{className:f})})},Y=n(1977);var U=(0,Y.Z)("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const K=["center","classes","className"];let G,_,J,Q,ee=e=>e;const te=(0,A.F4)(G||(G=ee`
0% {
transform: scale(0);
opacity: 0.1;
}
100% {
transform: scale(1);
opacity: 0.3;
}
`)),ne=(0,A.F4)(_||(_=ee`
0% {
opacity: 1;
}
100% {
opacity: 0;
}
`)),oe=(0,A.F4)(J||(J=ee`
0% {
transform: scale(1);
}
50% {
transform: scale(0.92);
}
100% {
transform: scale(1);
}
`)),re=(0,y.ZP)("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),ie=(0,y.ZP)(q,{name:"MuiTouchRipple",slot:"Ripple"})(Q||(Q=ee`
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,te,550,(({theme:e})=>e.transitions.easing.easeInOut),U.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),U.child,U.childLeaving,ne,550,(({theme:e})=>e.transitions.easing.easeInOut),U.childPulsate,oe,(({theme:e})=>e.transitions.easing.easeInOut));var ae=o.forwardRef((function(e,t){const n=(0,w.Z)({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:i={},className:l}=n,s=(0,v.Z)(n,K),[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,R.Z)(),f=o.useRef(null),g=o.useRef(null),x=o.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:o,rippleSize:r,cb:a}=e;u((e=>[...e,(0,H.jsx)(ie,{classes:{ripple:(0,b.Z)(i.ripple,U.ripple),rippleVisible:(0,b.Z)(i.rippleVisible,U.rippleVisible),ripplePulsate:(0,b.Z)(i.ripplePulsate,U.ripplePulsate),child:(0,b.Z)(i.child,U.child),childLeaving:(0,b.Z)(i.childLeaving,U.childLeaving),childPulsate:(0,b.Z)(i.childPulsate,U.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:o,rippleSize:r},d.current)])),d.current+=1,p.current=a}),[i]),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===f.current&&(f.current=()=>{x({pulsate:o,rippleX:c,rippleY:u,rippleSize:d,cb:n})},h.start(80,(()=>{f.current&&(f.current(),f.current=null)}))):x({pulsate:o,rippleX:c,rippleY:u,rippleSize:d,cb:n})}),[r,x,h]),Z=o.useCallback((()=>{y({},{pulsate:!0})}),[y]),k=o.useCallback(((e,t)=>{if(h.clear(),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void h.start(0,(()=>{k(e,t)}));f.current=null,u((e=>e.length>0?e.slice(1):e)),p.current=t}),[h]);return o.useImperativeHandle(t,(()=>({pulsate:Z,start:y,stop:k})),[Z,y,k]),(0,H.jsx)(re,(0,a.Z)({className:(0,b.Z)(U.root,i.root,l),ref:g},s,{children:(0,H.jsx)(X,{component:null,exit:!0,children:c})}))})),le=n(3559);function se(e){return(0,le.ZP)("MuiButtonBase",e)}var ce=(0,Y.Z)("MuiButtonBase",["root","disabled","focusVisible"]);const ue=["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"],de=(0,y.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"},[`&.${ce.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),pe=o.forwardRef((function(e,t){const n=(0,w.Z)({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:i=!1,children:l,className:s,component:c="button",disabled:u=!1,disableRipple:d=!1,disableTouchRipple:p=!1,focusRipple:m=!1,LinkComponent:h="a",onBlur:f,onClick:x,onContextMenu:y,onDragLeave:Z,onFocus:k,onFocusVisible:R,onKeyDown:E,onKeyUp:N,onMouseDown:L,onMouseLeave:$,onMouseUp:P,onTouchEnd:T,onTouchMove:S,onTouchStart:F,tabIndex:V=0,TouchRippleProps:z,touchRippleRef:I,type:O}=n,B=(0,v.Z)(n,ue),D=o.useRef(null),W=o.useRef(null),X=(0,C.Z)(W,I),{isFocusVisibleRef:A,onFocus:q,onBlur:Y,ref:U}=j(),[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 M((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",Z),re=ee("stop",P),ie=ee("stop",(e=>{K&&e.preventDefault(),$&&$(e)})),le=ee("start",F),ce=ee("stop",T),pe=ee("stop",S),me=ee("stop",(e=>{Y(e),!1===A.current&&G(!1),f&&f(e)}),!1),he=M((e=>{D.current||(D.current=e.currentTarget),q(e),!0===A.current&&(G(!0),R&&R(e)),k&&k(e)})),fe=()=>{const e=D.current;return c&&"button"!==c&&!("A"===e.tagName&&e.href)},ve=o.useRef(!1),be=M((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=M((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,C.Z)(t,U,D);const we=(0,a.Z)({},n,{centerRipple:i,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,g.Z)(i,se,r);return n&&o&&(a.root+=` ${o}`),a})(we);return(0,H.jsxs)(de,(0,a.Z)({as:xe,className:(0,b.Z)(ke.root,s),ownerState:we,onBlur:me,onClick:x,onContextMenu:ne,onFocus:he,onKeyDown:be,onKeyUp:ge,onMouseDown:te,onMouseLeave:ie,onMouseUp:re,onDragLeave:oe,onTouchEnd:ce,onTouchMove:pe,onTouchStart:le,ref:Ze,tabIndex:u?-1:V,type:O},ye,B,{children:[l,Q?(0,H.jsx)(ae,(0,a.Z)({ref:X,center:i},z)):null]}))}));var me=pe,he=n(8974);var fe=(0,Y.Z)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);var ve=(0,Y.Z)("MuiListItemIcon",["root","alignItemsFlexStart"]);var be=(0,Y.Z)("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function ge(e){return(0,le.ZP)("MuiMenuItem",e)}var xe=(0,Y.Z)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const ye=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Ze=(0,y.ZP)(me,{shouldForwardProp:e=>(0,Z.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,a.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"}},[`&.${xe.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,x.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${xe.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,x.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${xe.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,x.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,x.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${xe.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${xe.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${fe.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${fe.inset}`]:{marginLeft:52},[`& .${be.root}`]:{marginTop:0,marginBottom:0},[`& .${be.inset}`]:{paddingLeft:36},[`& .${ve.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&(0,a.Z)({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${ve.root} svg`]:{fontSize:"1.25rem"}}))));var we=o.forwardRef((function(e,t){const n=(0,w.Z)({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:i="li",dense:l=!1,divider:s=!1,disableGutters:c=!1,focusVisibleClassName:u,role:d="menuitem",tabIndex:p,className:m}=n,h=(0,v.Z)(n,ye),f=o.useContext(k.Z),x=o.useMemo((()=>({dense:l||f.dense||!1,disableGutters:c})),[f.dense,l,c]),y=o.useRef(null);(0,he.Z)((()=>{r&&y.current&&y.current.focus()}),[r]);const Z=(0,a.Z)({},n,{dense:x.dense,divider:s,disableGutters:c}),M=(e=>{const{disabled:t,dense:n,divider:o,disableGutters:r,selected:i,classes:l}=e,s={root:["root",n&&"dense",t&&"disabled",!r&&"gutters",o&&"divider",i&&"selected"]},c=(0,g.Z)(s,ge,l);return(0,a.Z)({},l,c)})(n),R=(0,C.Z)(y,t);let E;return n.disabled||(E=void 0!==p?p:-1),(0,H.jsx)(k.Z.Provider,{value:x,children:(0,H.jsx)(Ze,(0,a.Z)({ref:R,role:d,tabIndex:E,component:i,focusVisibleClassName:(0,b.Z)(M.focusVisible,u),className:(0,b.Z)(M.root,m)},h,{ownerState:Z,classes:M}))})})),ke=n(8216),Ce=n(1529),Me=n(4423);function Re(e){return(0,le.ZP)("PrivateSwitchBase",e)}(0,Y.Z)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Ee=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],Ne=(0,y.ZP)(me)((({ownerState:e})=>(0,a.Z)({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12}))),Le=(0,y.ZP)("input",{shouldForwardProp:Z.Z})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1});var $e=o.forwardRef((function(e,t){const{autoFocus:n,checked:o,checkedIcon:r,className:i,defaultChecked:l,disabled:s,disableFocusRipple:c=!1,edge:u=!1,icon:d,id:p,inputProps:m,inputRef:h,name:f,onBlur:x,onChange:y,onFocus:Z,readOnly:w,required:k=!1,tabIndex:C,type:M,value:R}=e,E=(0,v.Z)(e,Ee),[N,L]=(0,Ce.Z)({controlled:o,default:Boolean(l),name:"SwitchBase",state:"checked"}),$=(0,Me.Z)();let P=s;$&&void 0===P&&(P=$.disabled);const T="checkbox"===M||"radio"===M,S=(0,a.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,ke.Z)(r)}`],input:["input"]};return(0,g.Z)(i,Re,t)})(S);return(0,H.jsxs)(Ne,(0,a.Z)({component:"span",className:(0,b.Z)(F.root,i),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,H.jsx)(Le,(0,a.Z)({autoFocus:n,checked:o,defaultChecked:l,className:F.input,disabled:P,id:T?p:void 0,name:f,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]}))})),Pe=n(5949),Te=(0,Pe.Z)((0,H.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"),Se=(0,Pe.Z)((0,H.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"),Fe=(0,Pe.Z)((0,H.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 je(e){return(0,le.ZP)("MuiCheckbox",e)}var Ve=(0,Y.Z)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]);const ze=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],Ie=(0,y.ZP)($e,{shouldForwardProp:e=>(0,Z.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,ke.Z)(n.size)}`],"default"!==n.color&&t[`color${(0,ke.Z)(n.color)}`]]}})((({theme:e,ownerState:t})=>(0,a.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,x.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&&{[`&.${Ve.checked}, &.${Ve.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Ve.disabled}`]:{color:(e.vars||e).palette.action.disabled}}))),Oe=(0,H.jsx)(Se,{}),Be=(0,H.jsx)(Te,{}),De=(0,H.jsx)(Fe,{});var We=o.forwardRef((function(e,t){var n,r;const i=(0,w.Z)({props:e,name:"MuiCheckbox"}),{checkedIcon:l=Oe,color:s="primary",icon:c=Be,indeterminate:u=!1,indeterminateIcon:d=De,inputProps:p,size:m="medium",className:h}=i,f=(0,v.Z)(i,ze),x=u?d:c,y=u?d:l,Z=(0,a.Z)({},i,{color:s,indeterminate:u,size:m}),k=(e=>{const{classes:t,indeterminate:n,color:o,size:r}=e,i={root:["root",n&&"indeterminate",`color${(0,ke.Z)(o)}`,`size${(0,ke.Z)(r)}`]},l=(0,g.Z)(i,je,t);return(0,a.Z)({},t,l)})(Z);return(0,H.jsx)(Ie,(0,a.Z)({type:"checkbox",inputProps:(0,a.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:Z,ref:t,className:(0,b.Z)(k.root,h)},f,{classes:k}))})),Xe=n(7678);var Ae=e=>{var t,n,r;let{theme:i,markup:v,validationMarkup:b}=e;const{0:g,1:x}=(0,o.useState)(!1),{0:y,1:Z}=(0,o.useState)(!0),w=(0,o.useRef)(null),{register:k,handleSubmit:C,control:M,reset:R,formState:{errors:E,isValid:N}}=(0,l.cI)({mode:"onBlur",resolver:(0,s.X)(u.h),defaultValues:{consentToProcess:!0}}),L=(e,t,n,o)=>{var r;return(0,A.tZ)(f.sc,(0,a.Z)({id:e,theme:i,label:t,variant:"outlined",error:!(null===(r=E[e])||void 0===r||!r.message),helperText:(0,m.OZ)(e,E,b),"aria-label":e,fullWidth:!0,multiline:n,rows:o,size:"small"},k(e)))};return(0,A.tZ)("form",{onSubmit:C((async e=>{if(!N||!w.current)return;if(!await w.current.executeAsync())return;x(!0);const t=(0,d.e)("hubspotutk"),n=(0,m.WU)(e,t);try{200===(await p.l.post("/3eae609c-bcf2-47f4-ad93-11a65c4b4f9d",n)).status&&R()}catch(o){}x(!1)})),className:"flex-1 flex flex-col gap-2.5"},(0,A.tZ)("div",{className:"flex flex-col gap-4"},L("email",v.emailLabel),L("company",v.companyNameLabel),L("firstname",v.nameLabel),(0,A.tZ)(f.sc,(0,a.Z)({id:"services",label:v.servicesLabel,variant:"outlined",select:!0,defaultValue:"",error:!(null===(t=E.services)||void 0===t||!t.message),helperText:(0,m.OZ)("services",E,b),"aria-label":"services",fullWidth:!0,size:"small"},k("services")),Object.values(c.U5).map((e=>(0,A.tZ)(we,{key:e,value:e},v.servicesOptions[e])))),(0,A.tZ)(f.sc,(0,a.Z)({id:"budget",label:v.budgetLabel,variant:"outlined",select:!0,defaultValue:"",error:!(null===(n=E.budget)||void 0===n||!n.message),helperText:(0,m.OZ)("budget",E,b),"aria-label":"budget",fullWidth:!0,size:"small"},k("budget")),Object.values(c.D9).map((e=>(0,A.tZ)(we,{key:e,value:e},v.budgetOptions[e])))),L("describe_your_project",v.descriptionLabel,!0,5)),(0,A.tZ)(l.Qr,{control:M,name:"consentToProcess",render:e=>{let{field:{onChange:t,ref:n,value:o}}=e;return(0,A.tZ)(f.J$,{control:(0,A.tZ)(We,{id:"consentToProcess",checked:o,onChange:e=>{t(e),Z(!!e.target.checked)},sx:{color:y?"var(--color-primary-70)":"#D32F2F","&.Mui-checked":{color:"var(--color-primary-70)"}},inputRef:n}),label:v.privacyPolicyCheckboxLabel,"aria-label":"consentToProcess",sx:{marginTop:"10px"}})}}),null!==(r=E.consentToProcess)&&void 0!==r&&r.message||!y?(0,A.tZ)("p",{className:"text-[10.5px] text-[#D32F2F] ml-3"},null==b?void 0:b.consent):null,(0,A.tZ)(f.J$,{control:(0,A.tZ)(We,{defaultChecked:!0,sx:{color:"var(--color-primary-70)","&.Mui-checked":{color:"var(--color-primary-70)"}}}),label:v.adsCheckboxLabel,"aria-label":"adsCheckboxLabel"}),(0,A.tZ)(f.sc,{id:"amex",label:"amex","aria-label":"amex",fullWidth:!0,style:{display:"none"},size:"small"}),(0,A.tZ)("div",{className:"flex items-center justify-center pt-5 text-main-100"},(0,A.tZ)(Xe.Z,{ref:w,badge:"bottomleft",sitekey:"6LeqV4wqAAAAAMycXF-7Gcujzm9i-LPbTIPu1q90",size:"invisible",style:{display:"none"}}),(0,A.tZ)("button",{type:"submit",disabled:g||!y,className:"px-0 sm:px-5 md:px-6 font-bold whitespace-nowrap rounded-full mx-0 text-secondary-100 h-12 flex items-center justify-center disabled:text-main-10 px-6 relative bg-primary-70"},g?(0,A.tZ)(h.Z,null):null,(0,A.tZ)("span",{className:"z-20"},v.buttonLabel))))},He=n(1164);var qe=()=>{(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 Ye=e=>{var t,n,a,l,s,c,u,d,p,m;let{lang:h}=e;const f=(0,r.K2)(Ue);qe();const v=null==f||null===(t=f.markupData)||void 0===t||null===(n=t.nodes)||void 0===n||null===(a=n.find((e=>e.fields.language===h)))||void 0===a?void 0:a.frontmatter,b=null==v?void 0:v.contactForm,g=null!==(l=null==f||null===(s=f[h])||void 0===s||null===(c=s.nodes)||void 0===c||null===(u=c[0])||void 0===u?void 0:u.html)&&void 0!==l?l:null==f||null===(d=f.en)||void 0===d||null===(p=d.nodes)||void 0===p||null===(m=p[0])||void 0===m?void 0:m.html,x=null==v?void 0:v.validation;return(0,A.tZ)(o.Fragment,null,b?(0,A.tZ)(o.Fragment,null,(0,A.tZ)("section",{className:"relative w-full text-secondary-100 py-16"},(0,A.tZ)("div",{id:"contact-form",className:"absolute -top-16 opacity-0 pointer-events-none"},"anchor"),(0,A.tZ)(He.Z,{maxWidthClass:"max-w-[1280px]",className:"flex-col items-center"},(0,A.tZ)("div",{className:"flex justify-between w-full items-center pb-8 sm:pb-14 flex-col sm:flex-row gap-5"},(0,A.tZ)("h2",{className:"text-4xl font-bold w-full"},null==b?void 0:b.sectionTitle.toUpperCase()),(0,A.tZ)("div",{className:"w-full sm:w-max text-start sm:text-end text-xl font-normal grow shrink-0"},null==b?void 0:b.sectionLinkTitle.toUpperCase())),(0,A.tZ)("div",{className:"flex flex-col md:flex-row gap-10 lg:gap-28 justify-center max-w-4.5xl items-stretch"},g?(0,A.tZ)("div",{className:"contact-form-description flex-1 text-xl font-light w-full",dangerouslySetInnerHTML:{__html:g}}):null,(0,A.tZ)(Ae,{theme:i.Q.dark,markup:b,validationMarkup:x}))))):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:"#242326",strokeWidth:"8",strokeDasharray:"8 8",x1:"0",x2:"100%",y1:"4",y2:"4",key:0}),o.createElement("line",{width:"800",height:"8",stroke:"#111111",strokeOpacity:"0",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-0cdc2a4521f1d2ad11d3.js.map