(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7145],{18227:function(e,r,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/business",function(){return t(79155)}])},20873:function(e,r,t){"use strict";t.d(r,{Z:function(){return u}});var n=t(85893),l=t(64756),i=t.n(l),s=t(67294),a=t(94184),o=t.n(a),c=t(10990),d=t(56546);function u(e){let{children:r,type:t="blue",text:l="white",className:a,disableAnimation:u}=e,m=(0,s.useRef)(null);return(0,s.useEffect)(()=>{c.ZP.registerPlugin(d.ScrollTrigger);let e=c.ZP.context(()=>{!u&&m.current&&c.ZP.fromTo(m.current,{clipPath:"polygon(0 0, 0 0, 0 100%, 0 100%)"},{clipPath:"polygon(0 0, 100% 0, 100% 100%, 0 100%)",duration:1.1,ease:"ease.easeOut",scrollTrigger:{trigger:m.current,start:"top 75%"}})});return()=>e.revert()},[]),(0,n.jsxs)("div",{className:o()(i().wrapper,a),children:[(0,n.jsx)("img",{src:"/icons/heading_gradient_".concat(t,".svg"),ref:m}),(0,n.jsx)("div",{className:"".concat(i().text," ").concat(i()[l]),children:r})]})}},65023:function(e,r,t){"use strict";var n=t(85893),l=t(67294),i=t(10990),s=t(52806),a=t.n(s),o=t(94184),c=t.n(o),d=t(50779),u=t(33945);let m=[{opacity:0,scale:.5},{opacity:1,scale:1,duration:.3}];r.Z=function(e){let[r,t,s]=(0,u.Z)(),[o,p]=(0,l.useState)(!1),h=(0,l.useRef)(null),f=(0,l.useRef)(null),x=e=>{h.current&&(o||p(!0),i.ZP.to(h.current,{ease:"easeInOut",duration:.2,x:e.nativeEvent.clientX,y:e.nativeEvent.clientY}))};(0,l.useEffect)(()=>{!e.disabled&&h.current&&(f.current=i.ZP.timeline().fromTo(h.current,m[0],m[1]))},[e.disabled,h]);let g=e=>{h.current&&(f.current=i.ZP.timeline().to(h.current,{ease:"easeInOut",duration:.01,x:e.nativeEvent.clientX,y:e.nativeEvent.clientY}).fromTo(h.current,m[0],m[1]))},v=()=>{h.current&&(f.current=i.ZP.timeline().fromTo(h.current,{opacity:1,scale:1},{opacity:0,scale:.7,duration:.3}))},_=()=>{e.onClick()},w=()=>{h.current&&i.ZP.to(h.current,{duration:.1,filter:"blur(1px)",scale:1.05})},j=()=>{h.current&&i.ZP.to(h.current,{duration:.1,filter:"blur(0)",scale:1})};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{onClick:s?()=>{}:_,onMouseDown:w,onMouseUp:j,onMouseMove:x,onMouseEnter:g,onMouseLeave:v,className:c()({[a().contentWrapper]:!s,[e.contentWrapperClassName]:!0,[a().followerDisabled]:s||e.disabled}),children:e.children}),!s&&(0,n.jsx)(d.Z,{node:document&&document.getElementById("mouse-follower-portal"),children:(0,n.jsx)("div",{ref:h,className:c()({[a().follower]:!0,[a().followerDisabled]:e.disabled||!o}),children:e.follower})})]})}},79155:function(e,r,t){"use strict";t.r(r),t.d(r,{default:function(){return P}});var n=t(85893),l=t(67294),i=t(9008),s=t.n(i),a=t(59865),o=t(76553),c=t.n(o),d=t(10990),u=t(56546),m=t(39664),p=t(53145),h=t(20873),f=t(94184),x=t.n(f),g=t(65023),v=t(8920),_=t(42757),w=t(11163),j=function(){let e;let r=(0,w.useRouter)(),[t,i]=(0,v.f)(0,5),[s,a]=(0,l.useState)(!1);(0,l.useEffect)(()=>{d.ZP.registerPlugin(u.ScrollTrigger,m.ScrollToPlugin,p.Draggable,_.SplitText);let r=d.ZP.context(()=>{let r,t,n,l,s=0;d.ZP.set(".".concat(c().cards," li"),{xPercent:400,opacity:0,scale:0});let a=d.ZP.utils.snap(.16),o=d.ZP.utils.toArray(".".concat(c().cards," li")),m=e=>{let r=d.ZP.timeline();return r.fromTo(e,{scale:0,opacity:0,yPercent:200,color:"rgba(255,255,255,0)"},{color:"rgba(255,255,255,1)",scale:1,opacity:1,zIndex:100,duration:.5,yPercent:0,yoyo:!0,repeat:1,ease:"power1.inOut",immediateRender:!1}).fromTo(e,{xPercent:300},{xPercent:-300,duration:1,ease:"none",immediateRender:!1},0),r},h=(r=d.ZP.timeline({paused:!0}),t=d.ZP.timeline({paused:!0,repeat:-1,onRepeat(){this._time===this._dur&&(this._tTime+=this._dur-.01)},onReverseComplete(){this.totalTime(this.rawTime()+100*this.duration())}}),n=.16*o.length,o.concat(o).concat(o).forEach((e,t)=>{let n=m(o[t%o.length]);r.add(n,.16*t),l||(l=n.duration())}),t.fromTo(r,{time:n+l/2},{time:"+="+n,duration:n,ease:"none"}),t),f={offset:0},x=d.ZP.utils.wrap(0,h.duration()),g=d.ZP.to(f,{offset:0,onUpdate(){h.time(x(f.offset))},duration:.5,ease:"power3",paused:!0}),v=u.ScrollTrigger.create({start:0,onUpdate(e){let r=e.scroll();r>e.end-1?w(1,1):r<1&&e.direction<0?w(-1,e.end-1):(g.vars.offset=(s+e.progress)*h.duration(),g.invalidate().restart())},end:"+=3000",pin:".".concat(c().wrapper)}),_=e=>d.ZP.utils.clamp(1,v.end-1,d.ZP.utils.wrap(0,1,e)*v.end),w=(e,r)=>{s+=e,v.scroll(r),v.update()};function j(e){let r=(a(e)-h.duration()*s)/h.duration(),t=_(r);if(r&&i(Math.round(6*r)),r>=1||r<0)return w(Math.floor(r),t);v.scroll(t)}e=()=>j(g.vars.offset),u.ScrollTrigger.addEventListener("scrollEnd",e),p.Draggable.create(".drag-proxy",{type:"x",trigger:".".concat(c().cards),onPress(){this.startOffset=g.vars.offset},onDrag(){g.vars.offset=this.startOffset+(this.startX-this.x)*.001,g.invalidate().restart()},onDragEnd(){j(g.vars.offset)}})});return()=>{u.ScrollTrigger.removeEventListener("scrollEnd",e),r.revert()}},[]);let o=e=>{a(!0),function(){let e=document.querySelectorAll(".animateOut");e.forEach(e=>{e.anim&&(e.anim.progress(1).kill(),e.split.revert()),e.split=new _.SplitText(e,{type:"lines",linesClass:"split-line"}),e.splitParent=new _.SplitText(e,{type:"lines",linesClass:"split-line-parent"}),e.anim=d.ZP.to(e.split.lines,{duration:1.5,y:150,rotation:"+=8",stagger:.1})})}(),setTimeout(()=>{r.push("/business/".concat(e))},1500)};return(0,n.jsxs)("section",{className:c().wrapper,children:[(0,n.jsxs)("div",{className:"flex-column-center mt-[10vh] px-[2rem]",children:[(0,n.jsx)(h.Z,{type:"blue",text:"white",className:"animateOut",children:"Business"}),(0,n.jsxs)("h1",{className:"text-white fs-72 lh-110 mt-[0.5rem] text-center animateOut",children:["Explore how avatar scanning can ",(0,n.jsx)("br",{className:"only-desktop"}),"improve your business or product."]})]}),(0,n.jsx)("div",{children:(0,n.jsxs)("div",{className:c().gallery,children:[(0,n.jsxs)("ul",{className:x()({[c().cards]:!0,[c().cardsExited]:s}),children:[(0,n.jsx)(g.Z,{disabled:t%6!=0,follower:(0,n.jsx)("div",{className:c().cursor,children:"Explore"}),onClick:()=>o("ecommerce"),children:(0,n.jsx)("li",{className:x()(c().circle,c().ecommerce),onClick:()=>o("ecommerce"),children:"E-commerce"})}),(0,n.jsx)(g.Z,{disabled:t%6!=1,follower:(0,n.jsx)("div",{className:c().cursor,children:"Explore"}),onClick:()=>o("healthcare"),children:(0,n.jsx)("li",{className:x()(c().circle,c().healthcare),onClick:()=>o("healthcare"),children:"Healthcare"})}),(0,n.jsx)(g.Z,{disabled:t%6!=2,follower:(0,n.jsx)("div",{className:c().cursor,children:"Explore"}),onClick:()=>o("gaming"),children:(0,n.jsx)("li",{className:x()(c().circle,c().gaming),onClick:()=>o("gaming"),children:"Gaming"})}),(0,n.jsx)(g.Z,{disabled:t%6!=3,follower:(0,n.jsx)("div",{className:c().cursor,children:"Explore"}),onClick:()=>o("ecommerce"),children:(0,n.jsx)("li",{className:x()(c().circle,c().ecommerce),onClick:()=>o("ecommerce"),children:"E-commerce"})}),(0,n.jsx)(g.Z,{disabled:t%6!=4,follower:(0,n.jsx)("div",{className:c().cursor,children:"Explore"}),onClick:()=>o("healthcare"),children:(0,n.jsx)("li",{className:x()(c().circle,c().healthcare),onClick:()=>o("healthcare"),children:"Healthcare"})}),(0,n.jsx)(g.Z,{disabled:t%6!=5,follower:(0,n.jsx)("div",{className:c().cursor,children:"Explore"}),onClick:()=>o("gaming"),children:(0,n.jsx)("li",{className:x()(c().circle,c().gaming),onClick:()=>o("gaming"),children:"Gaming"})})]}),(0,n.jsx)("div",{className:"drag-proxy"})]})})]})},P=function(e){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(s(),{children:[(0,n.jsx)("title",{children:"Metahero | Business"}),(0,n.jsx)("meta",{name:"description",content:"Metaverse is not the future, it’s the present. Find Your nearest location now and get scanned \u2028into the digital space."}),(0,n.jsx)("meta",{name:"viewport",content:"initial-scale=1, viewport-fit=cover, interactive-widget=overlays-content"}),(0,n.jsx)("link",{rel:"icon",href:"/public/favicon.png"})]}),(0,n.jsx)(a.Z,{}),(0,n.jsxs)("main",{children:[(0,n.jsx)("div",{id:"mouse-follower-portal"}),(0,n.jsx)(j,{})]})]})}},64756:function(e){e.exports={wrapper:"IconHeading_wrapper__RMxkR",text:"IconHeading_text__zh1Jn",white:"IconHeading_white__efBDy",black:"IconHeading_black__Fi5o_",gradientAppear:"IconHeading_gradientAppear__v8WdE"}},52806:function(e){e.exports={follower:"MouseFollower_follower__U9eeJ",followerDisabled:"MouseFollower_followerDisabled__oZ51P",contentWrapper:"MouseFollower_contentWrapper__8xA2v"}},76553:function(e){e.exports={wrapper:"Revolver_wrapper__qu84l",circle:"Revolver_circle__fD9dl",cardsExited:"Revolver_cardsExited__f4Hz9",cursor:"Revolver_cursor__IGPSR",ecommerce:"Revolver_ecommerce__WVBCT",healthcare:"Revolver_healthcare__FhYKq",gaming:"Revolver_gaming__KFsW7",gallery:"Revolver_gallery__h5HL6",cards:"Revolver_cards__IEygk",actions:"Revolver_actions__L0F1L"}}},function(e){e.O(0,[8802,6137,433,2757,7678,9865,9774,2888,179],function(){return e(e.s=18227)}),_N_E=e.O()}]);