-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path71598b7b9331211c5dc2cdd9e7a07dc39cf581bb-d14b98082a04313846a8.js
More file actions
75 lines (66 loc) · 28.3 KB
/
71598b7b9331211c5dc2cdd9e7a07dc39cf581bb-d14b98082a04313846a8.js
File metadata and controls
75 lines (66 loc) · 28.3 KB
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([[465],{1421:function(e,t,n){var o=n(6540);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},3609:function(e,t,n){"use strict";var o=n(6540),r=n(5588),a=n(1421),i=n.n(a),l=n(5471),s=n(7437);t.A=e=>{let{heightClass:t="lg:min-h-[396px]",title:n,className:a,borderBottom:c,borderTop:u,image:d,titleBlockClassName:p,childrenBlockClassName:m,children:h}=e;const{0:f,1:b}=(0,o.useState)("translate-y-full");return(0,o.useEffect)(()=>{b("translate-y-0")},[]),(0,s.Y)("div",{className:`w-full flex items-center relative lg:overflow-hidden ${t} ${a}`},u?(0,s.Y)(i(),{className:"absolute top-0 left-0 right-0 w-full"}):null,(0,s.Y)(l.A,{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.Y)("div",{className:`flex flex-col overflow-hidden items-left h-full justify-center text-secondary-100 h-full w-full ${p||"lg:w-1/2"}`},(0,s.Y)("h1",{className:"overflow-hidden w-full"},(0,s.Y)("span",{className:`banner-title inline-block text-3xl lg:text-4xl w-full text-center transition-all duration-1000 font-light ${f}`,dangerouslySetInnerHTML:{__html:`${n}`}}))),d?(0,s.Y)("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.Y)(r.G,{image:d,alt:"cover",className:"object-contain aspect-square"})):null,h?(0,s.Y)("div",{className:`w-full lg:h-full flex justify-center lg:justify-start items-center ${m}`},h):null),c?(0,s.Y)(i(),{className:"absolute bottom-0 left-0 right-0 w-full"}):null)}},4716:function(e,t,n){"use strict";n.d(t,{A:function(){return De}});var o=n(6540),r=n(4810),a=n(9585),i=n(8168),l=n(9785),s=n(1575),c=n(1664),u=n(3300),d=n(3025),p=n(5613),m=n(8946),h=n(297),f=n(2104),b=n(4164),v=n(6797),g=n(8374),y=n(5064),x=n(6942),k=n(4283),w=n(6022);function A(e){try{return e.matches(":focus-visible")}catch(t){0}return!1}var M=n(1784),C=n(4714);const R={};function S(e){const{nativeButton:t,nativeButtonProp:n,internalNativeButton:r=t,allowInferredHostMismatch:a=!1,disabled:i,type:l,hasFormAction:s=!1,tabIndex:c=0,focusableWhenDisabled:u,stopEventPropagation:d=!1,onBeforeKeyDown:p,onBeforeKeyUp:m}=e,h=o.useRef(null),f=!0===u,b=function(e){const{focusableWhenDisabled:t,disabled:n,composite:r=!1,tabIndex:a=0,isNativeButton:i}=e,l=r&&!1!==t,s=r&&!1===t;return o.useMemo(()=>{const e={onKeyDown(e){n&&t&&"Tab"!==e.key&&e.preventDefault()}};return r||(e.tabIndex=a,!i&&n&&(e.tabIndex=t?a:-1)),(i&&(t||l)||!i&&n)&&(e["aria-disabled"]=n),!i||t&&!s||(e.disabled=n),e},[r,n,t,l,s,i,a])}({focusableWhenDisabled:f,disabled:i,isNativeButton:t,tabIndex:c});const v=o.useCallback(()=>{const e=h.current;return null==e?t:"BUTTON"===e.tagName||Boolean("A"===e.tagName&&e.href)},[t]),g=o.useMemo(()=>{const e=f?{}:{tabIndex:i?-1:c};return t?(e.type=void 0!==l||s?l:"button",f||(e.disabled=i)):(e.role="button",!f&&i&&(e["aria-disabled"]=i)),f?{...e,...b}:e},[i,f,b,s,t,c,l]);return{getButtonProps:o.useCallback((e=R)=>{const{onClick:t,onKeyDown:n,onKeyUp:o,...r}=e;return{...g,...r,onClick:e=>{d&&e.stopPropagation(),i?e.preventDefault():t?.(e)},onKeyDown:e=>{f&&b.onKeyDown(e),i||(p?.(e),n?.(e),e.target!==e.currentTarget||v()||(" "!==e.key?"Enter"===e.key&&(e.preventDefault(),e.currentTarget.click()):e.preventDefault()))},onKeyUp:e=>{i||(m?.(e),o?.(e),e.target!==e.currentTarget||v()||" "!==e.key||e.defaultPrevented||e.currentTarget.click())}}},[g,i,f,b,v,p,m,d]),rootRef:h}}var P=n(4377);class B{static create(){return new B}static use(){const e=(0,P.A)(B.create).current,[t,n]=o.useState(!1);return e.shouldMount=t,e.setShouldMount=n,o.useEffect(e.mountEffect,[t]),e}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=function(){let e,t;const n=new Promise((n,o)=>{e=n,t=o});return n.resolve=e,n.reject=t,n}(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&null!==this.ref.current&&(this.didMount=!0,this.mounted.resolve())};start(...e){this.mount().then(()=>this.ref.current?.start(...e))}stop(...e){this.mount().then(()=>this.ref.current?.stop(...e))}pulsate(...e){this.mount().then(()=>this.ref.current?.pulsate(...e))}}var N=n(8587);var T=n(5540),$=n(7241);function E(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 Y(e,t,n){return null!=n[t]?n[t]:e.props[t]}function I(e,t,n){var r=E(e.children),a=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var o,r=Object.create(null),a=[];for(var i in e)i in t?a.length&&(r[i]=a,a=[]):a.push(i);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<a.length;o++)l[a[o]]=n(a[o]);return l}(t,r);return Object.keys(a).forEach(function(i){var l=a[i];if((0,o.isValidElement)(l)){var s=i in t,c=i in r,u=t[i],d=(0,o.isValidElement)(u)&&!u.props.in;!c||s&&!d?c||!s||d?c&&s&&(0,o.isValidElement)(u)&&(a[i]=(0,o.cloneElement)(l,{onExited:n.bind(null,l),in:u.props.in,exit:Y(l,"exit",e),enter:Y(l,"enter",e)})):a[i]=(0,o.cloneElement)(l,{in:!1}):a[i]=(0,o.cloneElement)(l,{onExited:n.bind(null,l),in:!0,exit:Y(l,"exit",e),enter:Y(l,"enter",e)})}}),a}var j=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},F=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,T.A)(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,a=t.children,i=t.handleExited;return{children:t.firstRender?(n=e,r=i,E(n.children,function(e){return(0,o.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:Y(e,"appear",n),enter:Y(e,"enter",n),exit:Y(e,"exit",n)})})):I(e,a,i),firstRender:!1}},n.handleExited=function(e,t){var n=E(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=(0,i.A)({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=(0,N.A)(e,["component","childFactory"]),a=this.state.contextValue,i=j(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?o.createElement($.A.Provider,{value:a},i):o.createElement($.A.Provider,{value:a},o.createElement(t,r,i))},t}(o.Component);F.propTypes={},F.defaultProps={component:"div",childFactory:function(e){return e}};var V=F,z=n(3355),L=n(7437),D=n(4848);var O=function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:a,rippleY:i,rippleSize:l,in:s,onExited:c,timeout:u}=e,[d,p]=o.useState(!1),m=(0,b.A)(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),h={width:l,height:l,top:-l/2+i,left:-l/2+a},f=(0,b.A)(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,D.jsx)("span",{className:m,style:h,children:(0,D.jsx)("span",{className:f})})},W=n(6051);var K=(0,W.A)("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const H=L.i7`
0% {
transform: scale(0);
opacity: 0.1;
}
100% {
transform: scale(1);
opacity: 0.3;
}
`,U=L.i7`
0% {
opacity: 1;
}
100% {
opacity: 0;
}
`,q=L.i7`
0% {
transform: scale(1);
}
50% {
transform: scale(0.92);
}
100% {
transform: scale(1);
}
`,G=(0,y.Ay)("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),X=(0,y.Ay)(O,{name:"MuiTouchRipple",slot:"Ripple"})`
opacity: 0;
position: absolute;
&.${K.rippleVisible} {
opacity: 0.3;
transform: scale(1);
animation-name: ${H};
animation-duration: ${550}ms;
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
}
&.${K.ripplePulsate} {
animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
}
& .${K.child} {
opacity: 1;
display: block;
width: 100%;
height: 100%;
border-radius: 50%;
background-color: currentColor;
}
& .${K.childLeaving} {
opacity: 0;
animation-name: ${U};
animation-duration: ${550}ms;
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
}
& .${K.childPulsate} {
position: absolute;
/* @noflip */
left: 0px;
top: 0;
animation-name: ${q};
animation-duration: 2500ms;
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
animation-iteration-count: infinite;
animation-delay: 200ms;
}
`;var _=o.forwardRef(function(e,t){const n=(0,k.b)({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:a={},className:i,...l}=n,[s,c]=o.useState([]),u=o.useRef(0),d=o.useRef(null);o.useEffect(()=>{d.current&&(d.current(),d.current=null)},[s]);const p=o.useRef(!1),m=(0,z.A)(),h=o.useRef(null),f=o.useRef(null),v=o.useCallback(e=>{const{pulsate:t,rippleX:n,rippleY:o,rippleSize:r,cb:i}=e;c(e=>[...e,(0,D.jsx)(X,{classes:{ripple:(0,b.A)(a.ripple,K.ripple),rippleVisible:(0,b.A)(a.rippleVisible,K.rippleVisible),ripplePulsate:(0,b.A)(a.ripplePulsate,K.ripplePulsate),child:(0,b.A)(a.child,K.child),childLeaving:(0,b.A)(a.childLeaving,K.childLeaving),childPulsate:(0,b.A)(a.childPulsate,K.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:o,rippleSize:r},u.current)]),u.current+=1,d.current=i},[a]),g=o.useCallback((e={},t={},n=()=>{})=>{const{pulsate:o=!1,center:a=r||t.pulsate,fakeElement:i=!1}=t;if("mousedown"===e?.type&&p.current)return void(p.current=!1);"touchstart"===e?.type&&(p.current=!0);const l=i?null:f.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,d;if(a||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(a)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)}e?.touches?null===h.current&&(h.current=()=>{v({pulsate:o,rippleX:c,rippleY:u,rippleSize:d,cb:n})},m.start(80,()=>{h.current&&(h.current(),h.current=null)})):v({pulsate:o,rippleX:c,rippleY:u,rippleSize:d,cb:n})},[r,v,m]),y=o.useCallback(()=>{g({},{pulsate:!0})},[g]),x=o.useCallback((e,t)=>{if(m.clear(),"touchend"===e?.type&&h.current)return h.current(),h.current=null,void m.start(0,()=>{x(e,t)});h.current=null,c(e=>e.length>0?e.slice(1):e),d.current=t},[m]);return o.useImperativeHandle(t,()=>({pulsate:y,start:g,stop:x}),[y,g,x]),(0,D.jsx)(G,{className:(0,b.A)(K.root,a.root,i),ref:f,...l,children:(0,D.jsx)(V,{component:null,exit:!0,children:s})})}),J=n(8805);function Q(e){return(0,J.Ay)("MuiButtonBase",e)}var Z=(0,W.A)("MuiButtonBase",["root","disabled","focusVisible"]);const ee=(0,y.Ay)("button",{name:"MuiButtonBase",slot:"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"},[`&.${Z.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}});function te(e,t,n,o=!1){return(0,C.A)(r=>(n&&n(r),o||e[t](r),!0))}var ne=o.forwardRef(function(e,t){const n=(0,k.b)({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:a=!1,children:i,className:l,component:s="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:d=!1,focusRipple:p=!1,focusVisibleClassName:m,focusableWhenDisabled:h,suppressFocusVisible:f=!1,internalNativeButton:g,LinkComponent:y="a",nativeButton:x,onBlur:w,onClick:R,onContextMenu:P,onDragLeave:N,onFocus:T,onFocusVisible:$,onKeyDown:E,onKeyUp:Y,onMouseDown:I,onMouseLeave:j,onMouseUp:F,onTouchEnd:V,onTouchMove:z,onTouchStart:L,tabIndex:O=0,TouchRippleProps:W,touchRippleRef:K,type:H,...U}=n,q=Boolean(U.href||U.to),G=Boolean(U.formAction);let X=s;"button"===X&&q&&(X=y);const J="string"==typeof X?"button"===X:g??!1,Z=x??J,ne=B.use(),oe=(0,M.A)(ne.ref,K),[re,ae]=o.useState(!1);(c||f)&&re&&ae(!1);const ie=(0,C.A)(e=>{p&&!e.repeat&&re&&" "===e.key&&ne.stop(e,()=>{ne.start(e)})}),le=(0,C.A)(e=>{p&&" "===e.key&&re&&!e.defaultPrevented&&ne.stop(e,()=>{ne.pulsate(e)})}),{getButtonProps:se,rootRef:ce}=S({nativeButton:Z,nativeButtonProp:x,internalNativeButton:J,allowInferredHostMismatch:q||"string"==typeof X,disabled:c,type:H,hasFormAction:G,tabIndex:O,onBeforeKeyDown:ie,onBeforeKeyUp:le}),{onClick:ue,onKeyDown:de,onKeyUp:pe,...me}=se({onClick:R,onKeyDown:E,onKeyUp:Y});o.useImperativeHandle(r,()=>({focusVisible:()=>{ae(!0),ce.current.focus()}}),[ce]);const he=ne.shouldMount&&!u&&!c;o.useEffect(()=>{re&&p&&!u&&ne.pulsate()},[u,p,re,ne]);const fe=te(ne,"start",I,d),be=te(ne,"stop",P,d),ve=te(ne,"stop",N,d),ge=te(ne,"stop",F,d),ye=te(ne,"stop",e=>{re&&e.preventDefault(),j&&j(e)},d),xe=te(ne,"start",L,d),ke=te(ne,"stop",V,d),we=te(ne,"stop",z,d),Ae=te(ne,"stop",e=>{A(e.target)||ae(!1),w&&w(e)},!1),Me=(0,C.A)(e=>{ce.current||(ce.current=e.currentTarget),!f&&A(e.target)&&(ae(!0),$&&$(e)),T&&T(e)}),Ce={};q&&(Ce.tabIndex=c?-1:O,c&&(Ce["aria-disabled"]=c),Ce.type=H);const Re=(0,M.A)(t,ce),Se={...n,centerRipple:a,component:s,disabled:c,disableRipple:u,disableTouchRipple:d,focusRipple:p,suppressFocusVisible:f,tabIndex:O,focusVisible:re},Pe=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:o,suppressFocusVisible:r,classes:a}=e,i={root:["root",t&&"disabled",n&&!r&&"focusVisible"]},l=(0,v.A)(i,Q,a);return n&&!r&&o&&(l.root+=` ${o}`),l})(Se);return(0,D.jsxs)(ee,{as:X,className:(0,b.A)(Pe.root,l),ownerState:Se,onBlur:Ae,onClick:ue,onContextMenu:be,onFocus:Me,onKeyDown:de,onKeyUp:pe,onMouseDown:fe,onMouseLeave:ye,onMouseUp:ge,onDragLeave:ve,onTouchEnd:ke,onTouchMove:we,onTouchStart:xe,ref:Re,...q?Ce:me,...U,children:[i,he?(0,D.jsx)(_,{ref:oe,center:a,...W}):null]})}),oe=n(3252),re=n(6982),ae=n(3875).A,ie=n(5411);var le=(0,W.A)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","vertical","withChildren","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);var se=(0,W.A)("MuiListItemIcon",["root","alignItemsFlexStart"]);var ce=(0,W.A)("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),ue=n(7036),de=n(8975);function pe(e){return(0,J.Ay)("MuiMenuItem",e)}var me=(0,W.A)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const he=(0,y.Ay)(ne,{shouldForwardProp:e=>(0,g.A)(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]}})((0,x.A)(({theme:e})=>({...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","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${me.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${me.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${me.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${me.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${me.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${le.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${le.inset}`]:{marginLeft:52},[`& .${ce.root}`]:{marginTop:0,marginBottom:0},[`& .${ce.inset}`]:{paddingLeft:36},[`& .${se.root}`]:{minWidth:36},variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:e})=>!e.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:e})=>e.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${se.root} svg`]:{fontSize:"1.25rem"}}}]})));var fe=o.forwardRef(function(e,t){const n=(0,k.b)({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:a="li",dense:i=!1,divider:l=!1,disableGutters:s=!1,focusVisibleClassName:c,role:u="menuitem",tabIndex:d,className:p,...m}=n,h=(0,de.x)(),f=o.useContext(w.A),g=o.useMemo(()=>({dense:i||f.dense||!1,disableGutters:s}),[f.dense,i,s]),y=(0,ue.W)(),x=ae(),A=y.suppressInitialFocusVisible,C=y.itemsFocusableWhenDisabled,R=o.useRef(null);(0,oe.A)(()=>{r&&R.current&&(0,re.A)(R.current,h)},[r]);const S={...n,dense:g.dense,divider:l,disableGutters:s},P=(e=>{const{disabled:t,dense:n,divider:o,disableGutters:r,selected:a,classes:i}=e,l={root:["root",n&&"dense",t&&"disabled",!r&&"gutters",o&&"divider",a&&"selected"]},s=(0,v.A)(l,pe,i);return{...i,...s}})(n),B=(0,ie.bE)({id:x,ref:t,disabled:n.disabled,focusableWhenDisabled:C,selected:n.selected}),N=(0,M.A)(R,B.ref);let T;return void 0!==d?T=d:"selectedMenu"===y.variant?T=B.tabIndex:n.disabled&&!C||(T=-1),(0,D.jsx)(w.A.Provider,{value:g,children:(0,D.jsx)(he,{ref:N,role:u,tabIndex:T,component:a,internalNativeButton:!1,focusableWhenDisabled:C,suppressFocusVisible:A,focusVisibleClassName:(0,b.A)(P.focusVisible,c),className:(0,b.A)(P.root,p),...m,ownerState:S,classes:P})})}),be=n(6198),ve=n(4578),ge=n(9404);function ye(e){return(0,J.Ay)("PrivateSwitchBase",e)}(0,W.A)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);var xe=n(9873);const ke=(0,y.Ay)(ne,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>"start"===e&&"small"!==t.size,style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>"end"===e&&"small"!==t.size,style:{marginRight:-12}}]}),we=(0,y.Ay)("input",{name:"MuiSwitchBase",shouldForwardProp:g.A})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1});var Ae=o.forwardRef(function(e,t){const{autoFocus:n,checked:o,checkedIcon:r,defaultChecked:a,disabled:i,disableFocusRipple:l=!1,edge:s=!1,icon:c,id:u,name:d,onBlur:p,onChange:m,onFocus:h,readOnly:f,required:b=!1,tabIndex:g,type:y,value:x,slots:k={},slotProps:w={},...A}=e,{nativeButton:M,...C}=A,[R,S]=(0,ve.A)({controlled:o,default:Boolean(a),name:"SwitchBase",state:"checked"}),P=(0,ge.A)();let B=i;P&&void 0===B&&(B=P.disabled);const N="checkbox"===y||"radio"===y,T={...e,checked:R,disabled:B,disableFocusRipple:l,edge:s},$=(e=>{const{classes:t,checked:n,disabled:o,edge:r}=e,a={root:["root",n&&"checked",o&&"disabled",r&&`edge${(0,be.A)(r)}`],input:["input"]};return(0,v.A)(a,ye,t)})(T),E={slots:k,slotProps:w},[Y,I]=(0,xe.A)("root",{ref:t,elementType:ke,className:$.root,shouldForwardComponentProp:!0,externalForwardedProps:{...E,component:"span",...C},getSlotProps:e=>({...e,onFocus:t=>{e.onFocus?.(t),(e=>{h&&h(e),P&&P.onFocus&&P.onFocus(e)})(t)},onBlur:t=>{e.onBlur?.(t),(e=>{p&&p(e),P&&P.onBlur&&P.onBlur(e)})(t)}}),ownerState:T,additionalProps:{centerRipple:!0,focusRipple:!l,role:void 0,tabIndex:null}}),[j,F]=(0,xe.A)("input",{elementType:we,className:$.input,externalForwardedProps:E,getSlotProps:e=>({...e,onChange:t=>{e.onChange?.(t),(e=>{if(e.nativeEvent.defaultPrevented||f)return;const t=e.target.checked;S(t),m&&m(e,t)})(t)}}),ownerState:T,additionalProps:{autoFocus:n,checked:o,defaultChecked:a,disabled:B,id:N?u:void 0,name:d,readOnly:f,required:b,tabIndex:g,type:y,..."checkbox"===y&&void 0===x?{}:{value:x}}});return(0,D.jsxs)(Y,{...I,children:[(0,D.jsx)(j,{...F}),R?r:c]})}),Me=n(5048),Ce=(0,Me.A)((0,D.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"),Re=(0,Me.A)((0,D.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,Me.A)((0,D.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 Pe(e){return(0,J.Ay)("MuiCheckbox",e)}var Be=(0,W.A)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Ne=n(1676),Te=n(3574);const $e=(0,y.Ay)(Ae,{shouldForwardProp:e=>(0,g.A)(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${(0,be.A)(n.size)}`],"default"!==n.color&&t[`color${(0,be.A)(n.color)}`]]}})((0,x.A)(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter((0,Ne.A)()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter((0,Ne.A)()).map(([t])=>({props:{color:t},style:{[`&.${Be.checked}, &.${Be.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${Be.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),Ee=(0,D.jsx)(Re,{}),Ye=(0,D.jsx)(Ce,{}),Ie=(0,D.jsx)(Se,{});var je=o.forwardRef(function(e,t){const n=(0,k.b)({props:e,name:"MuiCheckbox"}),{checkedIcon:r=Ee,color:a="primary",icon:i=Ye,indeterminate:l=!1,indeterminateIcon:s=Ie,size:c="medium",disableRipple:u=!1,className:d,slots:p={},slotProps:m={},...h}=n,f=l?s:i,g=l?s:r,y={...n,disableRipple:u,color:a,indeterminate:l,size:c},x=(e=>{const{classes:t,indeterminate:n,color:o,size:r}=e,a={root:["root",n&&"indeterminate",`color${(0,be.A)(o)}`,`size${(0,be.A)(r)}`]},i=(0,v.A)(a,Pe,t);return{...t,...i}})(y),w=m.input,[A,M]=(0,xe.A)("root",{ref:t,elementType:$e,className:(0,b.A)(x.root,d),shouldForwardComponentProp:!0,externalForwardedProps:{slots:p,slotProps:m,...h},ownerState:y,additionalProps:{type:"checkbox",icon:o.cloneElement(f,{fontSize:f.props.fontSize??c}),checkedIcon:o.cloneElement(g,{fontSize:g.props.fontSize??c}),disableRipple:u,slots:p,slotProps:{input:(0,Te.A)("function"==typeof w?w(y):w,{"data-indeterminate":l})}}});return(0,D.jsx)(A,{...M,classes:x})}),Fe=n(3413);var Ve=e=>{var t,n,r;let{theme:a,markup:b,validationMarkup:v}=e;const{0:g,1:y}=(0,o.useState)(!1),{0:x,1:k}=(0,o.useState)(!0),w=(0,o.useRef)(null),{register:A,handleSubmit:M,control:C,reset:R,formState:{errors:S,isValid:P}}=(0,l.mN)({mode:"onBlur",resolver:(0,s.t)(u.q),defaultValues:{consentToProcess:!0}}),B=(e,t,n,o)=>{var r;return(0,L.Y)(f.L4,(0,i.A)({id:e,theme:a,label:t,variant:"outlined",error:!(null===(r=S[e])||void 0===r||!r.message),helperText:(0,m.t$)(e,S,v),"aria-label":e,fullWidth:!0,multiline:n,rows:o,size:"small"},A(e)))};return(0,L.Y)("form",{onSubmit:M(async e=>{if(!P||!w.current)return;if(!await w.current.executeAsync())return;y(!0);const t=(0,d.R)("hubspotutk"),n=(0,m.VS)(e,t);try{200===(await p.m.post("/3eae609c-bcf2-47f4-ad93-11a65c4b4f9d",n)).status&&R()}catch(o){}y(!1)}),className:"flex-1 flex flex-col gap-2.5"},(0,L.Y)("div",{className:"flex flex-col gap-4"},B("email",b.emailLabel),B("company",b.companyNameLabel),B("firstname",b.nameLabel),(0,L.Y)(f.L4,(0,i.A)({id:"services",label:b.servicesLabel,variant:"outlined",select:!0,defaultValue:"",error:!(null===(t=S.services)||void 0===t||!t.message),helperText:(0,m.t$)("services",S,v),"aria-label":"services",fullWidth:!0,size:"small"},A("services")),Object.values(c.NK).map(e=>(0,L.Y)(fe,{key:e,value:e},b.servicesOptions[e]))),(0,L.Y)(f.L4,(0,i.A)({id:"budget",label:b.budgetLabel,variant:"outlined",select:!0,defaultValue:"",error:!(null===(n=S.budget)||void 0===n||!n.message),helperText:(0,m.t$)("budget",S,v),"aria-label":"budget",fullWidth:!0,size:"small"},A("budget")),Object.values(c.CH).map(e=>(0,L.Y)(fe,{key:e,value:e},b.budgetOptions[e]))),B("describe_your_project",b.descriptionLabel,!0,5)),(0,L.Y)(l.xI,{control:C,name:"consentToProcess",render:e=>{let{field:{onChange:t,ref:n,value:o}}=e;return(0,L.Y)(f.mq,{control:(0,L.Y)(je,{id:"consentToProcess",checked:o,onChange:e=>{t(e),k(!!e.target.checked)},sx:{color:x?"var(--color-primary-70)":"#D32F2F","&.Mui-checked":{color:"var(--color-primary-70)"}},inputRef:n}),label:b.privacyPolicyCheckboxLabel,"aria-label":"consentToProcess",sx:{marginTop:"10px"}})}}),null!==(r=S.consentToProcess)&&void 0!==r&&r.message||!x?(0,L.Y)("p",{className:"text-[10.5px] text-[#D32F2F] ml-3"},null==v?void 0:v.consent):null,(0,L.Y)(f.mq,{control:(0,L.Y)(je,{defaultChecked:!0,sx:{color:"var(--color-primary-70)","&.Mui-checked":{color:"var(--color-primary-70)"}}}),label:b.adsCheckboxLabel,"aria-label":"adsCheckboxLabel"}),(0,L.Y)(f.L4,{id:"amex",label:"amex","aria-label":"amex",fullWidth:!0,style:{display:"none"},size:"small"}),(0,L.Y)("div",{className:"flex items-center justify-center pt-5 text-main-100"},(0,L.Y)(Fe.A,{ref:w,badge:"bottomleft",sitekey:"6LeqV4wqAAAAAMycXF-7Gcujzm9i-LPbTIPu1q90",size:"invisible",style:{display:"none"}}),(0,L.Y)("button",{type:"submit",disabled:g||!x,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,L.Y)(h.A,null):null,(0,L.Y)("span",{className:"z-20"},b.buttonLabel))))},ze=n(5471);var Le=()=>{(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 De=e=>{var t,n,i,l,s,c,u,d,p,m;let{lang:h}=e;const f=(0,r.GR)(Oe);Le();const b=null==f||null===(t=f.markupData)||void 0===t||null===(n=t.nodes)||void 0===n||null===(i=n.find(e=>e.fields.language===h))||void 0===i?void 0:i.frontmatter,v=null==b?void 0:b.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,y=null==b?void 0:b.validation;return(0,L.Y)(o.Fragment,null,v?(0,L.Y)(o.Fragment,null,(0,L.Y)("section",{className:"relative w-full text-secondary-100 py-16"},(0,L.Y)("div",{id:"contact-form",className:"absolute -top-16 opacity-0 pointer-events-none"},"anchor"),(0,L.Y)(ze.A,{maxWidthClass:"max-w-[1280px]",className:"flex-col items-center"},(0,L.Y)("div",{className:"flex justify-between w-full items-center pb-8 sm:pb-14 flex-col sm:flex-row gap-5"},(0,L.Y)("h2",{className:"text-4xl font-bold w-full"},null==v?void 0:v.sectionTitle.toUpperCase()),(0,L.Y)("div",{className:"w-full sm:w-max text-start sm:text-end text-xl font-normal grow shrink-0"},null==v?void 0:v.sectionLinkTitle.toUpperCase())),(0,L.Y)("div",{className:"flex flex-col md:flex-row gap-10 lg:gap-28 justify-center max-w-4.5xl items-stretch"},g?(0,L.Y)("div",{className:"contact-form-description flex-1 text-xl font-light w-full",dangerouslySetInnerHTML:{__html:g}}):null,(0,L.Y)(Ve,{theme:a.S.dark,markup:v,validationMarkup:y}))))):null)};const Oe="772577693"}}]);
//# sourceMappingURL=71598b7b9331211c5dc2cdd9e7a07dc39cf581bb-d14b98082a04313846a8.js.map