1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,54690,e=>{"use strict";var t=e.i(71645);e.s(["emailValidation",0,e=>e.match(/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/),"useMedia",0,e=>{let[i,s]=(0,t.useState)();return(0,t.useEffect)(()=>{{let t=window.matchMedia(e);t.matches!==i&&s(t.matches);let r=()=>s(t.matches);return t.addListener(r),()=>t.removeListener(r)}},[e]),i}])},47186,e=>{"use strict";var t=e.i(43476),i=e.i(18566);e.i(63933);var s=e.i(75157),r=e.i(7670);let n=({product:e,liClassName:i,rootClassName:n})=>(0,t.jsx)("li",{className:(0,r.default)("w-full not-xl:max-w-2xl rounded ",i),children:(0,t.jsxs)("a",{href:e.path,target:(0,s.isExternalHref)(e.path)?"_blank":"_self",rel:(0,s.isExternalHref)(e.path)?"noopener noreferrer":void 0,className:(0,r.default)("cursor-pointer flex flex-col h-full gap-7 w-full rounded bg-white will-change-transform transition-transform duration-[400ms] ease-in-out hover:scale-[1.02] focus-within:scale-[1.02] motion-reduce:transform-none",n),style:{background:"linear-gradient(0deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.02) 100%), #FFF",boxShadow:"0 27px 7px 0 rgba(0, 0, 0, 0.00), 0 17px 7px 0 rgba(0, 0, 0, 0.01), 0 10px 6px 0 rgba(0, 0, 0, 0.04), 0 4px 4px 0 rgba(0, 0, 0, 0.06), 0 1px 2px 0 rgba(0, 0, 0, 0.07)"},children:[(0,t.jsx)("img",{src:e.image,alt:e.altText,className:"rounded-t aspect-video w-full"}),(0,t.jsxs)("div",{className:"p-4 pt-0! flex flex-col gap-8 w-full flex-1",children:[(0,t.jsxs)("div",{className:"w-full flex flex-col gap-4",children:[(0,t.jsxs)("h3",{className:"font-archia-light text-[32px] xl:text-[28px] leading-[110%] text-black",children:[(0,t.jsx)("span",{style:{color:e.color},className:"font-archia-semibold",children:e.mainTitle}),e.title]}),(0,t.jsx)("p",{className:"font-archia-light text-[16px] leading-[150%] text-black",children:e.description})]}),(0,t.jsx)("div",{className:"w-full mt-auto flex h-10 sm:h-12 items-center justify-center px-4 bg-black hover:bg-black/84 active:bg-black/80 font-hanken-semibold text-white! rounded text-base leading-[100%]",children:"Learn more"})]})]})});var o=e.i(10841),a=e.i(44147);e.s(["default",0,({products:e,withBtn:s=!1,withoutProducts:r=!1,bgColor:l=""})=>{let c=(0,i.useRouter)(),{t:u}=(0,a.default)(),d=Array.isArray(e)&&2===e.length;return(0,t.jsx)("section",{id:"ourproducts",className:"bg-[#E6E6E6] pt-18 xl:pt-24 pb-24 xl:pb-31 w-full px-4 sm:px-9 xl:px-16",style:{backgroundColor:l},children:(0,t.jsxs)("div",{className:"max-w-[1712px] w-full mx-auto flex justify-center flex-col gap-10 sm:gap-16 ",children:[!r&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex flex-col gap-4 sm:gap-6 justify-center",children:[(0,t.jsxs)("h4",{className:"font-space-mono-regular font-normal text-black text-[18px] 2xl:text-[22px] leading-[100%]",children:[(0,t.jsx)("span",{className:"font-space-mono-regular font-normal text-black text-sm leading-[100%]",children:"/"})," Our products"]}),(0,t.jsxs)("h2",{className:"text-[40px] sm:text-[48px] 2xl:text-[70px] font-archia-light leading-[120%] text-black",children:["Rethink ",(0,t.jsx)("span",{className:"font-archia-semibold text-[#FC440B]",children:"video."})]})]}),(0,t.jsx)("ul",{className:d?"flex flex-col xl:flex-row items-center justify-center gap-12 w-full":"w-full grid-cols-1 xl:grid-cols-3 justify-items-center grid gap-12",children:e.map(e=>(0,t.jsx)(n,{product:e,liClassName:d?"w-full! max-w-2xl! xl:w-[538px]! xl:max-w-none! h-fit":void 0},e.id))})]}),s&&(0,t.jsxs)("div",{className:"flex flex-col gap-6 items-center justify-center",children:[(0,t.jsxs)("h2",{className:"font-archia-light sm:text-[32px] text-[20px] text-center text-black",children:[u("headings:title.helping")," ",(0,t.jsxs)("span",{className:"font-archia-semibold",children:[" ",u("headings:title.make")]})," ",u("headings:title.marketing")," "]}),(0,t.jsx)(o.default,{variant:"primary",size:"large",className:"h-12!",onClick:()=>c.push("/contact-us"),children:"Contact us"})]})]})})}],47186)},63221,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getOriginalCounterPart=function(e,t,i){var s=t.slidesToShow,r=t.currentSlide;return i.length>2*s?e+2*s:r>=i.length?i.length+e:e},i.getOriginalIndexLookupTableByClones=function(e,t){if(t.length>2*e){for(var i={},s=t.length-2*e,r=t.length-s,n=s,o=0;o<r;o++)i[o]=n,n++;var a=t.length+r,l=a+t.slice(0,2*e).length,c=0;for(o=a;o<=l;o++)i[o]=c,c++;var u=0;for(o=r;o<a;o++)i[o]=u,u++;return i}i={};var d=3*t.length,h=0;for(o=0;o<d;o++)i[o]=h,++h===t.length&&(h=0);return i},i.getClones=function(e,t){return t.length<e?t:t.length>2*e?t.slice(t.length-2*e,t.length).concat(t,t.slice(0,2*e)):t.concat(t,t)},i.getInitialSlideInInfiniteMode=function(e,t){return t.length>2*e?2*e:t.length},i.checkClonesPosition=function(e,t,i){var s,r=e.currentSlide,n=e.slidesToShow,o=e.itemWidth,a=e.totalItems,l=0,c=0,u=0===r,d=t.length-(t.length-2*n);return t.length<n?(c=l=0,u=s=!1):t.length>2*n?((s=r>=d+t.length)&&(c=-o*(l=r-t.length)),u&&(c=-o*(l=d+(t.length-2*n)))):((s=r>
1=2*t.length)&&(c=-o*(l=r-t.length)),u&&(c=i.showDots?-o*(l=t.length):-o*(l=a/3))),{isReachingTheEnd:s,isReachingTheStart:u,nextSlide:l,nextPosition:c}}},3362,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getPartialVisibilityGutter=function(e,t,i,s){var r=0,n=s||i;return t&&n&&(r=e[n].partialVisibilityGutter||e[n].paritialVisibilityGutter),r},i.getWidthFromDeviceType=function(e,t){var i;return t[e]&&(i=(100/t[e].items).toFixed(1)),i},i.getItemClientSideWidth=function(e,t,i){return Math.round(i/(t+ +!!e.centerMode))}},55547,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var s=e.r(3362);function r(e){var t=e.slidesToShow;return e.totalItems<t}function n(e,t,i){var s=i||e.transform;return!t.infinite&&0===e.currentSlide||r(e)?s:s+e.itemWidth/2}function o(e){var t=e.currentSlide,i=e.totalItems;return!(t+e.slidesToShow<i)}function a(e,t,i,s){void 0===t&&(t=0);var n=e.currentSlide,a=e.slidesToShow,l=o(e),c=!i.infinite&&l,u=s||e.transform;if(r(e))return u;var d=u+n*t;return c?d+(e.containerWidth-(e.itemWidth-t)*a):d}function l(e,t){return e.rtl?-1*t:t}i.notEnoughChildren=r,i.getInitialState=function(e,t){var i,r=e.domLoaded,n=e.slidesToShow,o=e.containerWidth,a=e.itemWidth,l=t.deviceType,c=t.responsive,u=t.ssr,d=t.partialVisbile,h=t.partialVisible,p=!!(r&&n&&o&&a);u&&l&&!p&&(i=s.getWidthFromDeviceType(l,c));var m=!!(u&&l&&!p&&i);return{shouldRenderOnSSR:m,flexBisis:i,domFullyLoaded:p,partialVisibilityGutter:s.getPartialVisibilityGutter(c,d||h,l,e.deviceType),shouldRenderAtAll:m||p}},i.getIfSlideIsVisbile=function(e,t){var i=t.currentSlide,s=t.slidesToShow;return i<=e&&e<i+s},i.getTransformForCenterMode=n,i.isInLeftEnd=function(e){return!(0<e.currentSlide)},i.isInRightEnd=o,i.getTransformForPartialVsibile=a,i.parsePosition=l,i.getTransform=function(e,t,i){var r=t.partialVisbile,o=t.partialVisible,c=t.responsive,u=t.deviceType,d=t.centerMode,h=i||e.transform,p=s.getPartialVisibilityGutter(c,r||o,u,e.deviceType);return l(t,o||r?a(e,p,t,i):d?n(e,t,i):h)},i.getSlidesToSlide=function(e,t){var i=e.domLoaded,s=e.slidesToShow,r=e.containerWidth,n=e.itemWidth,o=t.deviceType,a=t.responsive,l=t.slidesToSlide||1,c=!!(i&&s&&r&&n);return t.ssr&&t.deviceType&&!c&&Object.keys(a).forEach(function(e){var t=a[e].slidesToSlide;o===e&&t&&(l=t)}),c&&Object.keys(a).forEach(function(e){var t=a[e],i=t.breakpoint,s=t.slidesToSlide,r=i.max,n=i.min;s&&window.innerWidth>=n&&window.innerWidth<=r&&(l=s)}),l}},70565,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t,i){var s;return function(){var r=arguments;s||(e.apply(this,r),s=!0,"function"==typeof i&&i(!0),setTimeout(function(){s=!1,"function"==typeof i&&i(!1)},t))}}},91459,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){var i=t.partialVisbile,s=t.partialVisible,r=t.centerMode,n=t.ssr,o=t.responsive;if((i||s)&&r)throw Error("center mode can not be used at the same time with partialVisible");if(!o)throw n?Error("ssr mode need to be used in conjunction with responsive prop"):Error("Responsive prop is needed for deciding the amount of items to show on the screen");if(o&&"object"!=typeof o)throw Error("responsive prop must be an object")}},43632,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var s=e.r(55547);i.populateNextSlides=function(e,t,i){void 0===i&&(i=0);var r,n,o=e.slidesToShow,a=e.currentSlide,l=e.itemWidth,c=e.totalItems,u=s.getSlidesToSlide(e,t),d=a+1+i+o+(0<i?0:u);return n=d<=c?-l*(r=a+i+(0<i?0:u)):c<d&&a!==c-o?-l*(r=c-o):r=void 0,{nextSlides:r,nextPosition:n}}},27719,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var s=e.r(71645),r=e.r(55547),n=e.r(55547);i.populatePreviousSlides=function(e,t,i){void 0===i&&(i=0);var o,a,l=e.currentSlide,c=e.itemWidth,u=e.slidesToShow,d=t.children,h=t.showDots,p=t.infinite,m=r.getSlidesToSlide(e,t),f=l-i-(0<i?0:m),x=(s.Children.toArray(d).length-u)%m;return a=0<=f?(o=f,h&&!p&&0<x&&n.isInRightEnd(e)&&(o=l-x),-c*o):o=f<0&&0!==l?0:void 0,{nextSlides:o,nextPosition:a}}},90051,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.populateSlidesOnMouseTouchMove=function(e,t,i,s,r,n){var o,a,l=e.itemWidth,c=e.slidesToShow,u=e.totalItems,d=e.currentSlide,h=t.infinite,p=!1,m=Math.round((i-s)/l),f=Math.round((s-i)/l);if(r<i&&m<=c){o="right";var x=n-(s-r);(Math.abs(x)<=Math.abs(-l*(u-c))||d===u-c&&h)&&(a=x,p=!0)}return i<r&&f<=c&&(o="left",((x=n+(r-s))<=0||0===d&&h)&&(p=!0,a=x)),{direction:o,nextPosition:a,canContinue:p}}},92675,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var s=e.r(63221);i.getOriginalCounterPart=s.getOriginalCounterPart,i.getClones=s.getClones,i.checkClonesPosition=s.checkClonesPosition,i.getInitialSlideInInfiniteMode=s.getInitialSlideInInfiniteMode;var r=e.r(3362);i.getWidthFromDeviceType=r.getWidthFromDeviceType,i.getPartialVisibilityGutter=r.getPartialVisibilityGutter,i.getItemClientSideWidth=r.getItemClientSideWidth;var n=e.r(55547);i.getInitialState=n.getInitialState,i.getIfSlideIsVisbile=n.getIfSlideIsVisbile,i.getTransformForCenterMode=n.getTransformForCenterMode,i.getTransformForParti
1alVsibile=n.getTransformForPartialVsibile,i.isInLeftEnd=n.isInLeftEnd,i.isInRightEnd=n.isInRightEnd,i.notEnoughChildren=n.notEnoughChildren,i.getSlidesToSlide=n.getSlidesToSlide,i.throttle=e.r(70565).default,i.throwError=e.r(91459).default,i.populateNextSlides=e.r(43632).populateNextSlides,i.populatePreviousSlides=e.r(27719).populatePreviousSlides,i.populateSlidesOnMouseTouchMove=e.r(90051).populateSlidesOnMouseTouchMove},56351,(e,t,i)=>{"use strict";var s,r=e.e&&e.e.__extends||(s=function(e,t){return(s=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}s(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(i,"__esModule",{value:!0});var n=e.r(71645);i.isMouseMoveEvent=function(e){return"clientY"in e},i.default=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(n.Component)},41229,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var s=e.r(63221),r=e.r(55547);i.getLookupTableForNextSlides=function(e,t,i,n){var o={},a=r.getSlidesToSlide(t,i);return Array(e).fill(0).forEach(function(e,i){var r=s.getOriginalCounterPart(i,t,n);if(0===i)o[0]=r;else{var l=o[i-1]+a;o[i]=l}}),o}},10039,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var s=e.r(71645),r=e.r(63221),n=e.r(41229),o=e.r(55547);i.default=function(e){var t=e.props,i=e.state,a=e.goToSlide,l=e.getState,c=t.showDots,u=t.customDot,d=t.dotListClass,h=t.infinite,p=t.children;if(!c||o.notEnoughChildren(i))return null;var m,f=i.currentSlide,x=i.slidesToShow,g=o.getSlidesToSlide(i,t),v=s.Children.toArray(p);m=h?Math.ceil(v.length/g):Math.ceil((v.length-x)/g)+1;var y=n.getLookupTableForNextSlides(m,i,t,v),w=r.getOriginalIndexLookupTableByClones(x,v),b=w[f];return s.createElement("ul",{className:"react-multi-carousel-dot-list "+d},Array(m).fill(0).map(function(e,t){var i,r;if(h){var n=w[r=y[t]];i=b===n||n<=b&&b<n+g}else{var o=v.length-x,c=t*g;i=(r=o<c?o:c)===f||r<f&&f<r+g&&f<v.length-x}return u?s.cloneElement(u,{index:t,active:i,key:t,onClick:function(){return a(r)},carouselState:l()}):s.createElement("li",{"data-index":t,key:t,className:"react-multi-carousel-dot "+(i?"react-multi-carousel-dot--active":"")},s.createElement("button",{"aria-label":"Go to slide "+(t+1),onClick:function(){return a(r)}}))}))}},54568,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var s=e.r(71645);i.LeftArrow=function(e){var t=e.customLeftArrow,i=e.getState,r=e.previous,n=e.disabled,o=e.rtl;if(t)return s.cloneElement(t,{onClick:function(){return r()},carouselState:i(),disabled:n,rtl:o});var a=o?"rtl":"";return s.createElement("button",{"aria-label":"Go to previous slide",className:"react-multiple-carousel__arrow react-multiple-carousel__arrow--left "+a,onClick:function(){return r()},type:"button",disabled:n})},i.RightArrow=function(e){var t=e.customRightArrow,i=e.getState,r=e.next,n=e.disabled,o=e.rtl;if(t)return s.cloneElement(t,{onClick:function(){return r()},carouselState:i(),disabled:n,rtl:o});var a=o?"rtl":"";return s.createElement("button",{"aria-label":"Go to next slide",className:"react-multiple-carousel__arrow react-multiple-carousel__arrow--right "+a,onClick:function(){return r()},type:"button",disabled:n})}},29131,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var s=e.r(71645),r=e.r(92675);i.default=function(e){var t=e.props,i=e.state,n=e.goToSlide,o=e.clones,a=e.notEnoughChildren,l=i.itemWidth,c=t.children,u=t.infinite,d=t.itemClass,h=t.itemAriaLabel,p=t.partialVisbile,m=t.partialVisible,f=r.getInitialState(i,t),x=f.flexBisis,g=f.shouldRenderOnSSR,v=f.domFullyLoaded,y=f.partialVisibilityGutter;return f.shouldRenderAtAll?(p&&console.warn('WARNING: Please correct props name: "partialVisible" as old typo will be removed in future versions!'),s.createElement(s.Fragment,null,(u?o:s.Children.toArray(c)).map(function(e,o){return s.createElement("li",{key:o,"data-index":o,onClick:function(){t.focusOnSelect&&n(o)},"aria-hidden":r.getIfSlideIsVisbile(o,i)?"false":"true","aria-label":h||(e.props.ariaLabel?e.props.ariaLabel:null),style:{flex:g?"1 0 "+x+"%":"auto",position:"relative",width:v?((p||m)&&y&&!a?l-y:l)+"px":"auto"},className:"react-multi-carousel-item "+(r.getIfSlideIsVisbile(o,i)?"react-multi-carousel-item--active":"")+" "+d},e)}))):null}},86192,(e,t,i)=>{"use strict";
1var s,r=e.e&&e.e.__extends||(s=function(e,t){return(s=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}s(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(i,"__esModule",{value:!0});var n=e.r(71645),o=e.r(92675),a=e.r(56351),l=e.r(10039),c=e.r(54568),u=e.r(29131),d=e.r(55547),h="transform 400ms ease-in-out";i.default=function(e){function t(t){var i=e.call(this,t)||this;return i.containerRef=n.createRef(),i.listRef=n.createRef(),i.state={itemWidth:0,slidesToShow:0,currentSlide:0,totalItems:n.Children.count(t.children),deviceType:"",domLoaded:!1,transform:0,containerWidth:0},i.onResize=i.onResize.bind(i),i.handleDown=i.handleDown.bind(i),i.handleMove=i.handleMove.bind(i),i.handleOut=i.handleOut.bind(i),i.onKeyUp=i.onKeyUp.bind(i),i.handleEnter=i.handleEnter.bind(i),i.setIsInThrottle=i.setIsInThrottle.bind(i),i.next=o.throttle(i.next.bind(i),t.transitionDuration||400,i.setIsInThrottle),i.previous=o.throttle(i.previous.bind(i),t.transitionDuration||400,i.setIsInThrottle),i.goToSlide=o.throttle(i.goToSlide.bind(i),t.transitionDuration||400,i.setIsInThrottle),i.onMove=!1,i.initialX=0,i.lastX=0,i.isAnimationAllowed=!1,i.direction="",i.initialY=0,i.isInThrottle=!1,i.transformPlaceHolder=0,i}return r(t,e),t.prototype.resetTotalItems=function(){var e=this,t=n.Children.count(this.props.children),i=o.notEnoughChildren(this.state)?0:Math.max(0,Math.min(this.state.currentSlide,t));this.setState({totalItems:t,currentSlide:i},function(){e.setContainerAndItemWidth(e.state.slidesToShow,!0)})},t.prototype.setIsInThrottle=function(e){void 0===e&&(e=!1),this.isInThrottle=e},t.prototype.setTransformDirectly=function(e,t){var i=this.props.additionalTransfrom;this.transformPlaceHolder=e;var s=d.getTransform(this.state,this.props,this.transformPlaceHolder);this.listRef&&this.listRef.current&&(this.setAnimationDirectly(t),this.listRef.current.style.transform="translate3d("+(s+i)+"px,0,0)")},t.prototype.setAnimationDirectly=function(e){this.listRef&&this.listRef.current&&(this.listRef.current.style.transition=e?this.props.customTransition||h:"none")},t.prototype.componentDidMount=function(){this.setState({domLoaded:!0}),this.setItemsToShow(),window.addEventListener("resize",this.onResize),this.onResize(!0),this.props.keyBoardControl&&window.addEventListener("keyup",this.onKeyUp),this.props.autoPlay&&(this.autoPlay=setInterval(this.next,this.props.autoPlaySpeed))},t.prototype.setClones=function(e,t,i,s){var r=this;void 0===s&&(s=!1),this.isAnimationAllowed=!1;var a=n.Children.toArray(this.props.children),l=o.getInitialSlideInInfiniteMode(e||this.state.slidesToShow,a),c=o.getClones(this.state.slidesToShow,a),u=a.length<this.state.slidesToShow?0:this.state.currentSlide;this.setState({totalItems:c.length,currentSlide:i&&!s?u:l},function(){r.correctItemsPosition(t||r.state.itemWidth)})},t.prototype.setItemsToShow=function(e,t){var i=this,s=this.props.responsive;Object.keys(s).forEach(function(r){var n=s[r],o=n.breakpoint,a=n.items,l=o.max,c=o.min,u=[window.innerWidth];window.screen&&window.screen.width&&u.push(window.screen.width);var d=Math.min.apply(Math,u);c<=d&&d<=l&&(i.setState({slidesToShow:a,deviceType:r}),i.setContainerAndItemWidth(a,e,t))})},t.prototype.setContainerAndItemWidth=function(e,t,i){var s=this;if(this.containerRef&&this.containerRef.current){var r=this.containerRef.current.offsetWidth,n=o.getItemClientSideWidth(this.props,e,r);this.setState({containerWidth:r,itemWidth:n},function(){s.props.infinite&&s.setClones(e,n,t,i)}),t&&this.correctItemsPosition(n)}},t.prototype.correctItemsPosition=function(e,t,i){t&&(this.isAnimationAllowed=!0),!t&&this.isAnimationAllowed&&(this.isAnimationAllowed=!1);var s=this.state.totalItems<this.state.slidesToShow?0:-e*this.state.currentSlide;i&&this.setTransformDirectly(s,!0),this.setState({transform:s})},t.prototype.onResize=function(e){var t;t=!!this.props.infinite&&("boolean"!=typeof e||!e),this.setItemsToShow(t)},t.prototype.componentDidUpdate=function(e,i){var s=this,r=e.keyBoardControl,n=e.autoPlay,a=e.children,l=i.containerWidth,c=i.domLoaded,u=i.currentSlide;this.containerRef&&this.containerRef.current&&this.containerRef.current.offsetWidth!==l&&(this.itemsToShowTimeout&&clearTimeout(this.itemsToShowTimeout),this.itemsToShowTimeout=setTimeout(function(){s.setItemsToShow(!0)},this.props.transitionDuration||400)),r&&!this.props.keyBoardControl&&window.removeEventListener("keyup",this.onKeyUp),!r&&this.props.keyBoardControl&&window.addEventListener("keyup",this.onKeyUp),n&&!this.props.autoPlay&&this.autoPlay&&(clearInterval(this.autoPlay),this.autoPlay=void 0),n||!this.props.autoPlay||this.autoPlay||(this.autoPlay=setInterval(this.next,this.props.autoPlaySpeed)),a.length!==this.props.children.length?t.clonesTimeout=setTimeout(function(){s.props.infinite?s.setClones(s.state.slidesToShow,s.state.itemWidth,!0,!0):s.resetTotalItems()},this.props.transitionDuration||400):this.props.infinite&&this.state.currentSlide!==u&&this.correctClonesPosition({domLoaded:c}),this.transformPlaceHolder!==this.state.transform&&(this.transformPlaceHolder=this.state.transform),this.props.autoPlay&&this.props.rewind&&!this.props.infinite&&o.isInRightEnd(this.state)&&(t.isInThrottleTimeout=setTimeout(function(){s.setIsInThrottle(!1),s.resetAutoplayInterval(),s.goToSlide(0,void 0,!!s.props.rewindWithAnimation)},(this.props.transitionDuration||400)+this.props.autoPlaySpeed))},t.prototype.correctClonesPosition=function(e){var i=this,s=e.domLoaded,r=n.Children.toArray(this.props.children),a=o.checkClonesPosition(this.state,r,this.props),l=a.isReachingTheEnd,c=a.isReachingTheStart,u=a.nextSlide,d=a.nextPosition;this.state.domLoaded&&s&&(l||c)&&(this.isAnimationAllowed=!1,t.transformTimeout=setTimeout(function(){i.setState({transform:d,currentSlide:u})},this.props.transitionDuration||400))},t.prototype.next=function(e){var i=this;void 0===e&&(e=0);var s=this.props,r=s.afterChange,n=s.beforeChange;if(!o.notEnoughChildren(this.state)){var a=o.populateNextSlides(this.state,this.props,e),l=a.nextSlides,c=a.nextPosition,u=this.state.currentSlide;
1void 0!==l&&void 0!==c&&("function"==typeof n&&n(l,this.getState()),this.isAnimationAllowed=!0,this.props.shouldResetAutoplay&&this.resetAutoplayInterval(),this.setState({transform:c,currentSlide:l},function(){"function"==typeof r&&(t.afterChangeTimeout=setTimeout(function(){r(u,i.getState())},i.props.transitionDuration||400))}))}},t.prototype.previous=function(e){var i=this;void 0===e&&(e=0);var s=this.props,r=s.afterChange,n=s.beforeChange;if(!o.notEnoughChildren(this.state)){var a=o.populatePreviousSlides(this.state,this.props,e),l=a.nextSlides,c=a.nextPosition;if(void 0!==l&&void 0!==c){var u=this.state.currentSlide;"function"==typeof n&&n(l,this.getState()),this.isAnimationAllowed=!0,this.props.shouldResetAutoplay&&this.resetAutoplayInterval(),this.setState({transform:c,currentSlide:l},function(){"function"==typeof r&&(t.afterChangeTimeout2=setTimeout(function(){r(u,i.getState())},i.props.transitionDuration||400))})}}},t.prototype.resetAutoplayInterval=function(){this.props.autoPlay&&(clearInterval(this.autoPlay),this.autoPlay=setInterval(this.next,this.props.autoPlaySpeed))},t.prototype.componentWillUnmount=function(){window.removeEventListener("resize",this.onResize),this.props.keyBoardControl&&window.removeEventListener("keyup",this.onKeyUp),this.props.autoPlay&&this.autoPlay&&(clearInterval(this.autoPlay),this.autoPlay=void 0),this.itemsToShowTimeout&&clearTimeout(this.itemsToShowTimeout),t.clonesTimeout&&clearTimeout(t.clonesTimeout),t.isInThrottleTimeout&&clearTimeout(t.isInThrottleTimeout),t.transformTimeout&&clearTimeout(t.transformTimeout),t.afterChangeTimeout&&clearTimeout(t.afterChangeTimeout),t.afterChangeTimeout2&&clearTimeout(t.afterChangeTimeout2),t.afterChangeTimeout3&&clearTimeout(t.afterChangeTimeout3)},t.prototype.resetMoveStatus=function(){this.onMove=!1,this.initialX=0,this.lastX=0,this.direction="",this.initialY=0},t.prototype.getCords=function(e){var t=e.clientX,i=e.clientY;return{clientX:d.parsePosition(this.props,t),clientY:d.parsePosition(this.props,i)}},t.prototype.handleDown=function(e){if(!(!a.isMouseMoveEvent(e)&&!this.props.swipeable||a.isMouseMoveEvent(e)&&!this.props.draggable||this.isInThrottle)){var t=this.getCords(a.isMouseMoveEvent(e)?e:e.touches[0]),i=t.clientX,s=t.clientY;this.onMove=!0,this.initialX=i,this.initialY=s,this.lastX=i,this.isAnimationAllowed=!1}},t.prototype.handleMove=function(e){if(!(!a.isMouseMoveEvent(e)&&!this.props.swipeable||a.isMouseMoveEvent(e)&&!this.props.draggable||o.notEnoughChildren(this.state))){var t=this.getCords(a.isMouseMoveEvent(e)?e:e.touches[0]),i=t.clientX,s=t.clientY,r=this.initialX-i,n=this.initialY-s;if(this.onMove){if(!(Math.abs(r)>Math.abs(n)))return;var l=o.populateSlidesOnMouseTouchMove(this.state,this.props,this.initialX,this.lastX,i,this.transformPlaceHolder),c=l.direction,u=l.nextPosition,d=l.canContinue;c&&(this.direction=c,d&&void 0!==u&&this.setTransformDirectly(u)),this.lastX=i}}},t.prototype.handleOut=function(e){this.props.autoPlay&&!this.autoPlay&&(this.autoPlay=setInterval(this.next,this.props.autoPlaySpeed));var t="touchend"===e.type&&!this.props.swipeable,i=("mouseleave"===e.type||"mouseup"===e.type)&&!this.props.draggable;if(!t&&!i&&this.onMove){if(this.setAnimationDirectly(!0),"right"===this.direction)if(this.initialX-this.lastX>=this.props.minimumTouchDrag){var s=Math.round((this.initialX-this.lastX)/this.state.itemWidth);this.next(s)}else this.correctItemsPosition(this.state.itemWidth,!0,!0);"left"===this.direction&&(this.lastX-this.initialX>this.props.minimumTouchDrag?(s=Math.round((this.lastX-this.initialX)/this.state.itemWidth),this.previous(s)):this.correctItemsPosition(this.state.itemWidth,!0,!0)),this.resetMoveStatus()}},t.prototype.isInViewport=function(e){var t=e.getBoundingClientRect(),i=t.top,s=t.left,r=t.bottom,n=t.right;return 0<=(void 0===i?0:i)&&0<=(void 0===s?0:s)&&(void 0===r?0:r)<=(window.innerHeight||document.documentElement.clientHeight)&&(void 0===n?0:n)<=(window.innerWidth||document.documentElement.clientWidth)},t.prototype.isChildOfCarousel=function(e){return!!(e instanceof Element&&this.listRef&&this.listRef.current)&&this.listRef.current.contains(e)},t.prototype.onKeyUp=function(e){var t=e.target;switch(e.keyCode){case 37:if(this.isChildOfCarousel(t))return this.previous();break;case 39:if(this.isChildOfCarousel(t))return this.next();break;case 9:if(this.isChildOfCarousel(t)&&t instanceof HTMLInputElement&&this.isInViewport(t))return this.next()}},t.prototype.handleEnter=function(e){a.isMouseMoveEvent(e)&&this.autoPlay&&this.props.autoPlay&&this.props.pauseOnHover&&(clearInterval(this.autoPlay),this.autoPlay=void 0)},t.prototype.goToSlide=function(e,i,s){var r=this;if(void 0===s&&(s=!0),!this.isInThrottle){var n=this.state.itemWidth,o=this.props,a=o.afterChange,l=o.beforeChange,c=this.state.currentSlide;"function"!=typeof l||i&&("object"!=typeof i||i.skipBeforeChange)||l(e,this.get
1State()),this.isAnimationAllowed=s,this.props.shouldResetAutoplay&&this.resetAutoplayInterval(),this.setState({currentSlide:e,transform:-n*e},function(){r.props.infinite&&r.correctClonesPosition({domLoaded:!0}),"function"!=typeof a||i&&("object"!=typeof i||i.skipAfterChange)||(t.afterChangeTimeout3=setTimeout(function(){a(c,r.getState())},r.props.transitionDuration||400))})}},t.prototype.getState=function(){return this.state},t.prototype.renderLeftArrow=function(e){var t=this,i=this.props,s=i.customLeftArrow,r=i.rtl;return n.createElement(c.LeftArrow,{customLeftArrow:s,getState:function(){return t.getState()},previous:this.previous,disabled:e,rtl:r})},t.prototype.renderRightArrow=function(e){var t=this,i=this.props,s=i.customRightArrow,r=i.rtl;return n.createElement(c.RightArrow,{customRightArrow:s,getState:function(){return t.getState()},next:this.next,disabled:e,rtl:r})},t.prototype.renderButtonGroups=function(){var e=this,t=this.props.customButtonGroup;return t?n.cloneElement(t,{previous:function(){return e.previous()},next:function(){return e.next()},goToSlide:function(t,i){return e.goToSlide(t,i)},carouselState:this.getState()}):null},t.prototype.renderDotsList=function(){var e=this;return n.createElement(l.default,{state:this.state,props:this.props,goToSlide:this.goToSlide,getState:function(){return e.getState()}})},t.prototype.renderCarouselItems=function(){var e=[];if(this.props.infinite){var t=n.Children.toArray(this.props.children);e=o.getClones(this.state.slidesToShow,t)}return n.createElement(u.default,{clones:e,goToSlide:this.goToSlide,state:this.state,notEnoughChildren:o.notEnoughChildren(this.state),props:this.props})},t.prototype.render=function(){var e=this.props,t=e.deviceType,i=e.arrows,s=e.renderArrowsWhenDisabled,r=e.removeArrowOnDeviceType,a=e.infinite,l=e.containerClass,c=e.sliderClass,u=e.customTransition,p=e.additionalTransfrom,m=e.renderDotsOutside,f=e.renderButtonGroupOutside,x=e.className,g=e.rtl,v=o.getInitialState(this.state,this.props),y=v.shouldRenderOnSSR,w=v.shouldRenderAtAll,b=o.isInLeftEnd(this.state),S=o.isInRightEnd(this.state),T=i&&!(r&&(t&&-1<r.indexOf(t)||this.state.deviceType&&-1<r.indexOf(this.state.deviceType)))&&!o.notEnoughChildren(this.state)&&w,C=!a&&b,j=!a&&S,I=d.getTransform(this.state,this.props);return n.createElement(n.Fragment,null,n.createElement("div",{className:"react-multi-carousel-list "+l+" "+x,dir:g?"rtl":"ltr",ref:this.containerRef},n.createElement("ul",{ref:this.listRef,className:"react-multi-carousel-track "+c,style:{transition:this.isAnimationAllowed?u||h:"none",overflow:y?"hidden":"unset",transform:"translate3d("+(I+p)+"px,0,0)"},onMouseMove:this.handleMove,onMouseDown:this.handleDown,onMouseUp:this.handleOut,onMouseEnter:this.handleEnter,onMouseLeave:this.handleOut,onTouchStart:this.handleDown,onTouchMove:this.handleMove,onTouchEnd:this.handleOut},this.renderCarouselItems()),T&&(!C||s)&&this.renderLeftArrow(C),T&&(!j||s)&&this.renderRightArrow(j),w&&!f&&this.renderButtonGroups(),w&&!m&&this.renderDotsList()),w&&m&&this.renderDotsList(),w&&f&&this.renderButtonGroups())},t.defaultProps={slidesToSlide:1,infinite:!1,draggable:!0,swipeable:!0,arrows:!0,renderArrowsWhenDisabled:!1,containerClass:"",sliderClass:"",itemClass:"",keyBoardControl:!0,autoPlaySpeed:3e3,showDots:!1,renderDotsOutside:!1,renderButtonGroupOutside:!1,minimumTouchDrag:80,className:"",dotListClass:"",focusOnSelect:!1,centerMode:!1,additionalTransfrom:0,pauseOnHover:!0,shouldResetAutoplay:!0,rewind:!1,rtl:!1,rewindWithAnimation:!1},t}(n.Component)},99974,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=e.r(86192).default},40888,(e,t,i)=>{t.exports=e.r(99974)},85488,52217,e=>{"use strict";let t=async(e,t,s,r)=>await fetch("/api/renderPersonalisedVideo",{method:"POST",body:JSON.stringify({recordsData:i(e,t,s),...r??{}}),headers:{"Content-Type":"application/json"}}),i=(e,t,i)=>[{firstName:e,emailAddress:t,companyName:i}];e.s(["renderPersonalisedVideoApiCall",0,t],85488);var s=e.i(71645);e.s(["useFakeProgress",0,(e={})=>{let{intervalMs:t=300,maxBeforeDone:i=95}
1=e,[r,n]=(0,s.useState)(0),o=(0,s.useRef)(null);return(0,s.useEffect)(()=>()=>{o.current&&window.clearInterval(o.current)},[]),{progress:r,start:()=>{n(0),o.current&&window.clearInterval(o.current),o.current=window.setInterval(()=>{n(e=>e>=i?e:Math.min(i,e+(Math.floor(5*Math.random())+1)))},t)},stop:()=>{o.current&&(window.clearInterval(o.current),o.current=null),n(0)}}}],52217)},79111,e=>{"use strict";var t=e.i(71645);function i(e){let[i,s]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{let t=e.current;if(!t)return;let i=new IntersectionObserver(([e])=>s(e.isIntersecting));return i.observe(t),()=>i.disconnect()},[e]),i}e.s(["default",()=>i])},97121,e=>{"use strict";e.i(47167);var t=e.i(43476),i=e.i(71645),s=e.i(18566),r=e.i(85488),n=e.i(87644),o=e.i(52217),a=e.i(79111),l=e.i(23875),c=e.i(10841);let u="w-6 h-5.5 sm:w-13 sm:h-12 xl:w-15.5 xl:h-14 2xl:w-19 2xl:h-17",d=({className:e})=>(0,t.jsxs)("svg",{className:e,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[(0,t.jsx)("path",{d:"M13.3327 8L2.66602 8",stroke:"white",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.jsx)("path",{d:"M9.33398 12L13.2923 8.04167C13.3153 8.01865 13.3153 7.98135 13.2923 7.95833L9.33398 4",stroke:"white",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})]}),h=({step:e,name:s,email:r,isGenerating:n,isInView:o,error:a,onChangeName:h,onChangeEmail:p,onNext:m,onClearError:f})=>{let x=(0,i.useRef)(null);return(0,i.useEffect)(()=>{if(n||!o)return;let e=window.setTimeout(()=>{let e=x.current;if(!e)return;let t=document.activeElement;if((!t||"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&"SELECT"!==t.tagName&&!t.isContentEditable||t===e)&&t!==e)try{e.focus({preventScroll:!0})}catch{e.focus()}},400);return()=>window.clearTimeout(e)},[n,o,e]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"w-full flex flex-col gap-5.5 sm:gap-12 xl:gap-14 2xl:gap-17",children:[(0,t.jsxs)("p",{className:"font-archia-light text-[18px] sm:text-[40px] xl:text-[48px] 2xl:text-[56px] leading-[100%] text-white",children:["Write"," ",(0,t.jsx)("span",{className:"font-archia-semibold",children:1===e?"your name":"your email"})," ","below"]}),(0,t.jsxs)("div",{className:"w-full flex flex-row justify-start items-center gap-4",children:[(0,t.jsx)("div",{className:u,children:(0,t.jsx)(l.Image,{src:"/assets/images/icons/script.svg",alt:"script"})}),(0,t.jsx)("div",{className:"relative w-full max-w-[82%]",children:(0,t.jsx)("input",{type:1===e?"text":"email",className:"peer w-full bg-transparent border-b border-solid border-white focus:outline-none font-archia-light text-white text-[16px] sm:text-[32px] xl:text-[48px] leading-[100%] py-2",disabled:n,ref:x,maxLength:1===e?50:void 0,onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),m())},onChange:t=>{1===e?h(t.target.value):p(t.target.value),f()},value:1===e?s:r})})]}),!!a&&(0,t.jsx)("p",{className:"mt-2 font-hanken-medium text-[#FC521D] text-xs sm:text-sm",children:a})]}),(0,t.jsx)("div",{className:"ml-auto",children:(0,t.jsx)("div",{className:u,children:(0,t.jsx)(l.Image,{src:"/assets/images/icons/script.svg",alt:"script"})})}),(0,t.jsx)("div",{className:"mt-auto ml-auto px-6 sm:px-13 xl:px-15.5 2xl:px-18.75",children:(0,t.jsx)(c.default,{size:"xsmall",variant:"primary",onClick:m,loading:n,className:"min-w-[54px] h-6! sm:h-7! xl:h-8! 2xl:h-9! text-xs! sm:text-sm! [&>svg]:w-3 [&>svg]:h-3 sm:[&>svg]:w-4 sm:[&>svg]:h-4",iconPosition:"right",loadingPosition:"right",icon:1===e?(0,t.jsx)(d,{}):void 0,children:1===e?"Next":"Create my video"})})]})},p="text-[40px] sm:text-[48px] 2xl:text-[70px] font-archia-light leading-[120%] text-white text-center",m="font-archia-medium text-[#2AE3AF]",f=({hasGeneratedVideo:e,renderOk:i})=>(0,t.jsxs)("div",{className:"flex flex-col gap-4 sm:gap-6 justify-center items-center",children:[(0,t.jsxs)("h4",{className:"font-space-mono-regular font-normal text-white text-[18px] 2xl:text-[22px] leading-[100%]",children:[(0,t.jsx)("span",{className:"font-space-mono-regular font-normal text-[#FC440B] text-sm leading-[100%]",children:"/"})," Try it now"]}),e?(0,t.jsx)("h2",{className:p,children:i?(0,t.jsxs)(t.Fragment,{children:["Your Video is ",(0,t.jsx)("span",{className:m,children:"Ready"})]}):(0,t.jsxs)(t.Fragment,{children:["Create your"," ",(0,t.jsx)("span",{className:m,children:"Personalised Video"})," "]})}):(0,t.jsxs)("h2",{className:p,children:["Create your"," ",(0,t.jsx)("span",{className:m,children:"Personalised Video"})," "]})]}),x="font-apercu text-xs text-white uppercase",g="font-punto text-[60px] text-white leading-none",v=({progress:e})=>(0,t.jsxs)("div",{className:"w-full h-full flex-1 flex flex-col",children:[(0,t.jsxs)("div",{className:"flex flex-row gap-4 w-full",children:[(0,t.jsx)("span",{className:x,children:e}),(0,t.jsx)("span",{className:x,children:"Loading"})]}),(0,t.jsx)("div",{className:"m-auto",children:(0,t.jsxs)("div",{className:"flex flex-row items-start justify-center gap-2.5 self-center justify-self-center",children:[(0,t.jsxs)("div",{className:"flex items-end justify-center gap-3 flex-col",children:[(0,t.jsx)("span",{className:g,children:e}),(0,t.jsx)("span",{className:"font-hanken-light font-normal text-xs text-white uppercase",children:"Loading"})]}),(0,t.jsx)("span",{className:g,children:"%"})]})}),(0,t.jsxs)("div",{className:"flex flex-row gap-4 ml-auto w-full justify-end",children:[(0,t.jsx)("span",{className:x,children:"Loading"}),(0,t.jsx)("span",{className:x,children:e})]})]}),y="w-4 h-4 sm:w-6 sm:h-6",w=()=>(0,t.jsxs)("div",{className:"flex flex-row w-full justify-between px-4 xl:px-16 max-w-612",children:[(0,t.jsx)(l.Image,{src:"/assets/images/icons/plus.svg",alt:"Plus icon",className:y}),(0,t.jsx)(l.Image,{src:"/assets/images/icons/plus.svg",alt:"Plus icon",className:y})]}),b="w-full sm:w-fit min-w-39.25",S="font-hanken-medium font-semibold",T="flex rounded cursor-pointer flex-col items-center justify-center gap-2 p-2 hover:bg-white/10",C="font-hanken-medium text-base leading-4.5 text-white",j=({onScheduleDemo:e,onContactUs:i,shareEmailHref:s,onShareEmail:r,onCopyLink:n,isLoadingScheduleDemo:o})=>(0,t.jsxs)("div",{className:"w-full flex flex-col items-center justify-center gap-6 sm:gap-8",children:[(0,t.jsxs)("div",{className:"flex flex-col w-full sm:w-fit sm:flex-row gap-4 sm:gap-6 items-center justify-center",children:[(0,t.jsx)(c.default,{variant:"outline",size:"large",className:b,onClick:e,loading:o,children:"Schedule a demo"}),(0,t.jsx)(c.default,{variant:"negative",size:"large",className:b,onClick:i,children:"Contact us"})]}),(0,t.jsxs)("p",{className:"font-hanken-light text-base sm:text-[22px] leading-[150%] text-white text-center max-w-270 mx-auto",children:["Combine data with video to serve"," ",(0,t.jsxs)("span",{className:S,children:["unique and engaging personalised content"," "]}),"throughout the customer lifecycle."," ",(0,t.jsx)("span",{className:S,children:"Contact us today "}),"and discover what it can do for you."]}),(0,t.jsxs)("div",{className:"flex flex-row gap-8 items-center justify-center",children:[s?(0,t.jsxs)("a",{className:T,href:s,children:[(0,t.jsx)(l.Image,{src:"/assets/images/icons/email-icon.svg",alt:"Share via email",width:24,height:24}),(0,t.jsx)("span",{className:C,children:"Share via email"})]}):(0,t.jsxs)("button",{className:T,onClick:r,type:"button",children:[(0,t.jsx)(l.Image,{src:"/assets/images/icons/email-icon.svg",alt:"Share via email",width:24,height:24}),(0,t.jsx)("span",{className:C,children:"Share via email"})]}),(0,t.jsxs)("button",{className:T,onClick:n,type:"button",children:[(0,t.jsx)(l.Image,{src:"/assets/images/icons/copy-link.svg",alt:"Copy link",width:24,height:24}),(0,t.jsx)("span",{className:C,children:"Copy video link"})]})]})]}),I="aspect-video w-full",P="Watch my personalised video from VideoSmart",A="%0D%0A%0D%0AWhat do you think?%0D%0A%0D%0ACreate one for yourself at https://www.videosmart.com/.%0D%0A%0D%0AKind regards,";var k=e.i(1797);let N=async()=>{let t=await e.A(46351),i=t?.en??t?.default?.en;return Array.isArray(i)?i:[]};var E=e.i(97201),M=e.i(82108),R=e.i(98906);e.s(["default",0,()=>{let e=(0,s.useRouter)(),l=(0,i.useRef)(null),c=(0,a.default)(l),[u,d]=(0,i.useState)(1),[p,m]=(0,i.useState)(""),[x,g]=(0,i.useState)(""),[y,b]=(0,i.useState)(!1),{executeRecaptcha:S}=(0,M.useGoogleReCaptcha)(),[T,C]=(0,i.useState)(!1),[O,D]=(0,i.useState)(null),[_,L]=(0,i.useState)(null),[W,V]=(0,i.useState)(!1),[F,B]=(0,i.useState)(null),{progress:G,start:X,stop:z}=(0,o.useFakeProgress)(),U=(0,i.useCallback)(e=>!(e=>{let t=e.trim();if(!t)return(0,k.showToast)("Please enter your name","error"),!0;if(t.length>50)return(0,k.showToast)("Name must be 50 characters or less","error"),!0;let i=!1;try{i=RegExp("^[\\p{L}][\\p{L}\\p{M}\\p{N} .'\\u2019.-]*$","u").test(t)}catch{let e="A-Za-z0-9\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u00FF\\u0100-\\u
1017F\\u0180-\\u024F\\u1E00-\\u1EFF";i=RegExp(`^[${e}][${e}.' -]*$`).test(t)}return!i&&((0,k.showToast)("Name can only contain letters (any language), numbers, spaces, hyphens, apostrophes, and dots","error"),!0)})(e)||(d(1),!1),[]),H=(0,i.useCallback)(e=>{let t,i;return((t=e.trim())?(i=t,!!/^[\w._%+-]+@[\w.-]+\.[A-Za-z]{2,}$/i.test(i.trim())||((0,k.showToast)("Please enter a valid email","error"),!1)):((0,k.showToast)("Looks like the form is empty. Fill in the form and try again.","error"),!1))||(d(2),!1)},[]),$=(0,i.useCallback)(()=>{(0,k.showToast)("Video generated with issues: Processing error.","error")},[]),K=(0,i.useCallback)(()=>{(0,k.showToast)("Thanks! Weâll be in touch shortly.","success")},[]),Y=(0,i.useCallback)(()=>{(0,k.showToast)("Could not schedule a demo. Please try again.","error")},[]),Z=(0,i.useCallback)(()=>{(0,k.showToast)("Link copied to clipboard","success")},[]),q=(0,i.useCallback)(()=>{(0,k.showToast)("Could not copy link. Please copy it manually.","error")},[]),J=(0,i.useCallback)(async e=>{if(!e)return!1;try{if("u">typeof navigator&&navigator.clipboard?.writeText)return await navigator.clipboard.writeText(e),!0}catch{}try{let t=document.createElement("textarea");t.value=e,t.setAttribute("readonly",""),t.style.position="fixed",t.style.left="-9999px",t.style.top="0",document.body.appendChild(t),t.select();let i=document.execCommand("copy");return document.body.removeChild(t),i}catch{return!1}},[]),Q=(0,i.useCallback)(async()=>{_&&(await J(_)?Z():q())},[J,_,q,Z]),ee=(0,i.useCallback)(async()=>{if(T)return;B(null),V(!1);let e=p.trim(),t=x.trim(),i="https://player-v2.videosmart.com/?v=b2337a21-4f8f-4c71-a8ff-fa618f0aec00",s="https://hello.videosmart.com/?videoid=b2337a21-4f8f-4c71-a8ff-fa618f0aec00&projectId=vssizzle&version=2";if(!U(e)||!H(t))return;let o={};try{o=await (0,R.getRecaptchaV3Fields)("render_personalised_video",S)}catch{B("Unable to verify reCAPTCHA. Please try again.");return}C(!0),X();try{let a;(0,n.sendGAEvent)({category:"User",action:"Create PV",label:t,value:1});let l=await N();if(a=e.toLowerCase(),l.some(e=>a.includes(e.toLowerCase()))){D(i),L(s),$(),V(!1);return}let c=await (0,r.renderPersonalisedVideoApiCall)(e,t,"you",o);if(!c.ok)throw Error(`Render request failed (${c.status})`);let u=await c.json(),d=u?.data?.outputData?.[0]?.url,h=u?.data?.outputData?.[0]?.landingPageUrl;d&&h?(D(d),L(h),V(!0)):(D(i),L(s),V(!1))}catch{$(),D(i),L(s)}finally{z(),C(!1)}},[x,S,T,p,$,X,z,H,U]),et=(0,i.useCallback)(()=>{let e=p.trim(),t=x.trim();if(1===u){if(!U(e))return;d(2);return}H(t)&&ee()},[x,ee,p,u,H,U]),ei=(0,i.useMemo)(()=>{if(!_)return;let e=p.trim(),t=encodeURIComponent(P),i=encodeURIComponent(_),s=encodeURIComponent(e);return`mailto:[email protected]?subject=${t}&body=Hi,%0D%0A%0D%0ACheck out my personalised video from VideoSmart:%0D%0A%0D%0A${i}${A}%0D%0A%0D%0A${s}`},[_,p]),es=(0,i.useCallback)(()=>{e.push("/contact-us")},[e]),er=(0,i.useCallback)(async()=>{if(y)return;b(!0);let e={};try{e=await (0,R.getRecaptchaV3Fields)("schedule_demo",S)}catch{Y(),b(!1);return}try{let t={...(0,k.createScheduleDemoEmailRequest)(p,x),...e},i=await (0,E.emailerApiCall)(t),s=await i.json().catch(()=>null);if(i.ok&&s?.isSuccess)return void K();Y()}catch(e){Y()}finally{b(!1)}},[x,S,y,p,Y,K]),en=(0,i.useCallback)(()=>{B(null),D(null),L(null),V(!1)},[]);return(0,t.jsxs)("section",{id:"tryPV",className:"bg-black pt-18 xl:pt-24 pb-24 xl:pb-31 flex flex-col",ref:l,style:{scrollSnapAlign:"center"},children:[(0,t.jsx)(w,{}),(0,t.jsxs)("div",{className:"max-w-612 w-full mx-auto flex justify-center flex-col gap-10 sm:gap-16 2xl:gap-20 px-4 sm:px-9 xl:px-16 pb-6",children:[(0,t.jsx)(f,{hasGeneratedVideo:!!O,renderOk:W}),(0,t.jsxs)("div",{className:"w-full relative mx-auto max-w-[1080px] rounded-[10px] border-2 border-solid border-[#333]",children:[O?(0,t.jsx)("iframe",{title:"Personalised video",src:O,className:I,frameBorder:0,allowFullScreen:!0,sandbox:"allow-scripts allow-same-origin allow-popups allow-top-navigation-by-user-activation"}):(0,t.jsx)("video",{src:"/assets/videos/pv-background.mp4",loop:!0,autoPlay:!0,poster:"/assets/images/backgrounds/fallback-poster.png",muted:!0,playsInl
1ine:!0,className:I}),!O&&(0,t.jsx)("div",{className:"absolute top-0 flex flex-col left-0 w-full h-full rounded-[10px] px-4 py-[18px] sm:px-8 sm:py-10 xl:px-11 xl:py-12 2xl:py-[58px] 2xl:py-14 2xl:px-13 gap-[18px] sm:gap-[40px] xl:gap-14",children:T?(0,t.jsx)(v,{progress:G}):(0,t.jsx)(h,{step:u,name:p,email:x,isGenerating:T,isInView:c,error:F,onChangeName:e=>{m(e),en()},onChangeEmail:e=>{g(e),en()},onNext:et,onClearError:()=>B(null)})})]}),!!O&&(0,t.jsx)(j,{shareEmailHref:ei,onCopyLink:()=>{Q()},onContactUs:es,onScheduleDemo:er,isLoadingScheduleDemo:y})]}),(0,t.jsx)(w,{})]})}],97121)}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.