"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7647],{67647:function(t,e,n){n.r(e),n.d(e,{default:function(){return v}});var r=n(59499),i=n(67294),o=n(68930),l=n(15590),a=n(44819),c=n(18200),u=n(34519),s=n(27041),d=n(85893);function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function h(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(Object(n),!0).forEach(function(e){(0,r.Z)(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}class v extends l.Po{constructor(t){super(t)}render(){var t=this.getProp("text"),e=this.getProp("cssAttributes",{}),n=this.getProp("animation"),r=this.removeSpaces("".concat((0,a.C1)(this.getProp("themeStyle"),this),"\n    ").concat((0,c.getDisplayClasses)(e)))?this.removeSpaces("".concat((0,a.C1)(this.getProp("themeStyle"),this),"\n    ").concat((0,c.getDisplayClasses)(e))):null;return(0,d.jsx)(u.Z,{children:(0,d.jsx)(s.default,{animation:n,children:(0,i.createElement)(c.default,h(h({id:"".concat(this.getId()),forceChildStyle:" *:not(i)"},(0,o.$f)(this.props)),{},{attributes:e,className:r,key:this.getId()}),(0,d.jsx)("div",{className:"text-container",dangerouslySetInnerHTML:{__html:this.compile(t)}}))})},(this.props.id?this.props.id:this.getId())+"_hydrate")}}},27041:function(t,e,n){n.r(e),n.d(e,{default:function(){return l}});var r=n(67294),i=n(18357),o=n(85893);function l(t){if(!t.animation&&!t.animationTarget)return t.children;var e=null!=t&&null!==(d=t.animation)&&void 0!==d&&d.duration?parseInt(null==t?void 0:null===(f=t.animation)||void 0===f?void 0:f.duration,10):3,n=null!=t&&null!==(h=t.animation)&&void 0!==h&&h.delay?parseInt(null==t?void 0:null===(v=t.animation)||void 0===v?void 0:v.delay,10):0,l=null!==(p=null==t?void 0:null===(g=t.animation)||void 0===g?void 0:g.isScrollBased)&&void 0!==p&&p,a=null==t||null===(m=t.animation)||void 0===m||!m.doNotTriggerOnce,c=null==t?void 0:null===(b=t.animation)||void 0===b?void 0:null===(y=b.animation)||void 0===y?void 0:y[0];if(!l){var{ref:u,inView:s}=(0,i.YD)({threshold:.5,rootMargin:"0px",triggerOnce:a});return(0,o.jsx)("div",{style:{width:"auto",height:"auto",display:"block"},ref:u,className:null==t?void 0:t.className,children:(0,o.jsx)("div",{style:{width:"auto",height:"auto",transitionDuration:"".concat(e,"s"),transitionDelay:"".concat(n,"s")},className:"".concat(c," ").concat(s?"animation-visible":""),children:t.children})})}if(l){var d,f,h,v,p,g,m,b,y,O,j,w,P,k,S,x=(0,r.useRef)(null);O=null!==(w=null==t?void 0:null===(P=t.animation)||void 0===P?void 0:P.transformX)&&void 0!==w?w:0,j=null!==(k=null==t?void 0:null===(S=t.animation)||void 0===S?void 0:S.transformY)&&void 0!==k?k:0;var E=()=>{if(x.current){var t=x.current.getBoundingClientRect(),e=window.scrollY,n=t.top+e,r=window.innerHeight;if(e+r>n&&e<n+t.height){var i=(e+r-n)/(r+t.height);x.current.style.transform="translate(".concat(O*i,"px , ").concat(j*i,"px)")}}},D=()=>{requestAnimationFrame(E)};return(0,r.useEffect)(()=>(window.addEventListener("scroll",D),()=>{window.removeEventListener("scroll",D)}),[]),(0,o.jsx)("div",{style:{width:"100%",height:"100%"},ref:x,className:"".concat(null==t?void 0:t.className),children:t.children})}}},44819:function(t,e,n){n.d(e,{C1:function(){return r},Qe:function(){return i},Uq:function(){return o}}),n(67294),n(15590),n(85893);var r=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1?arguments[1]:void 0,n=e.props.className?e.props.className+" ":"";return t&&t.background&&t.background.length>0&&(n+="theme-bg-"+t.background[0]),n},i=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e="";return t&&t.design&&t.design.length>0&&(e="theme-"+t.design[0]),e},o=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e="";return t&&t.background&&t.background.length>0&&(e="theme-bg-".concat(t.background[0])),e}},34519:function(t,e,n){n.d(e,{Z:function(){return u}});var r=n(59499),i=n(4730),o=n(67294),l=["children","element"];function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach(function(e){(0,r.Z)(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function u(t){var{children:e,element:n="div"}=t,r=(0,i.Z)(t,l),[a,u]=function(){var t=(0,o.useRef)(null),{0:e,1:n}=(0,o.useState)(!1);return(0,o.useEffect)(()=>{""===t.current.innerHTML&&n(!0)},[]),[e,t]}();return a?(0,o.createElement)(n,c(c({},r),{},{children:e})):(0,o.createElement)(n,c(c({},r),{},{ref:u,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:""}}))}},4730:function(t,e,n){n.d(e,{Z:function(){return r}});function r(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}}}]);