(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3446],{74769:function(e,t,n){"use strict";n.r(t),n.d(t,{UnfoldRoot:function(){return N},LinktempRoot:function(){return O},ElementaryRoot:function(){return g},ClassicRoot:function(){return x},ModernRoot:function(){return A},YogaRoot:function(){return L},GrowthRoot:function(){return k},EduverseRoot:function(){return D},Unlock:function(){return H},MiscellaneousDataContext:function(){return j}});var o,a=n(809),i=n.n(a),r=n(30266),l=n(85893),s=n(92809),u=n(67294),c=n(49226),d=n(11163),p=n(30221),f=n(5152),m=n(59824),v=n(86239),T=n(60250),P=n(81295),h=n(79689),E=n(40867),b=n(12282),w=n.n(b),y=n(33867);function I(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?I(Object(n),!0).forEach((function(t){(0,s.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var _=(0,f.default)((function(){return n.e(4966).then(n.bind(n,54966))}),{loadableGenerated:{webpack:function(){return[54966]},modules:["testimonials/index.tsx -> @Modules/hostPage/Placeholder"]}}),C=(0,f.default)((function(){return n.e(6423).then(n.bind(n,69909))}),{loadableGenerated:{webpack:function(){return[69909]},modules:["testimonials/index.tsx -> @Modules/common/HTMLHeader"]}}),N=(0,f.default)((function(){return Promise.all([n.e(9351),n.e(6310),n.e(5694)]).then(n.bind(n,35694))}),{loadableGenerated:{webpack:function(){return[35694]},modules:["testimonials/index.tsx -> @Templates/unfold/root"]}}),O=(0,f.default)((function(){return Promise.all([n.e(9351),n.e(6310),n.e(6529),n.e(3985)]).then(n.bind(n,53985))}),{loadableGenerated:{webpack:function(){return[53985]},modules:["testimonials/index.tsx -> @Templates/linktemp/root"]}}),g=(0,f.default)((function(){return Promise.all([n.e(630),n.e(9351),n.e(2150)]).then(n.bind(n,22150))}),{loadableGenerated:{webpack:function(){return[22150]},modules:["testimonials/index.tsx -> @Templates/elementary/root"]}}),x=(0,f.default)((function(){return Promise.all([n.e(630),n.e(9351),n.e(6310),n.e(6529),n.e(7776),n.e(4742),n.e(3315),n.e(8621)]).then(n.bind(n,38621))}),{loadableGenerated:{webpack:function(){return[38621]},modules:["testimonials/index.tsx -> @Templates/classic/TestimonialPageRoot"]}}),A=(0,f.default)((function(){return Promise.all([n.e(630),n.e(9351),n.e(6310),n.e(6529),n.e(1388),n.e(7986)]).then(n.bind(n,98738))}),{loadableGenerated:{webpack:function(){return[98738]},modules:["testimonials/index.tsx -> @Templates/modern/TestimonialPageRoot"]}}),L=(0,f.default)((function(){return Promise.all([n.e(630),n.e(9351),n.e(6310),n.e(6529),n.e(5675),n.e(7380),n.e(675),n.e(9207)]).then(n.bind(n,23552))}),{loadableGenerated:{webpack:function(){return[23552]},modules:["testimonials/index.tsx -> @Templates/yoga/TestimonialPageRoot"]}}),k=(0,f.default)((function(){return Promise.all([n.e(630),n.e(9351),n.e(6310),n.e(6529),n.e(3408),n.e(3054)]).then(n.bind(n,43054))}),{loadableGenerated:{webpack:function(){return[43054]},modules:["testimonials/index.tsx -> @Templates/growth/TestimonialPageRoot"]}}),D=(0,f.default)((function(){return Promise.all([n.e(630),n.e(9351),n.e(6529),n.e(1393),n.e(1545)]).then(n.bind(n,76459))}),{loadableGenerated:{webpack:function(){return[76459]},modules:["testimonials/index.tsx -> @Templates/eduverse/TestimonialPageRoot"]}}),H=(0,f.default)((function(){return Promise.all([n.e(630),n.e(9351),n.e(6529),n.e(3339),n.e(2831),n.e(602)]).then(n.bind(n,64873))}),{loadableGenerated:{webpack:function(){return[64873]},modules:["testimonials/index.tsx -> @Templates/unlock/TestimonialPageRoot"]}}),R=(o={},(0,s.Z)(o,m.a97.CLASSIC,x),(0,s.Z)(o,m.a97.ELEMENTARY,g),(0,s.Z)(o,m.a97.MODERN,A),(0,s.Z)(o,m.a97.UNFOLD,N),(0,s.Z)(o,m.a97.LINKTEMP,O),(0,s.Z)(o,m.a97.YOGA,L),(0,s.Z)(o,m.a97.EDUVERSE,D),(0,s.Z)(o,m.a97.GROWTH,k),(0,s.Z)(o,m.a97.UNLOCK,H),o),j=(0,u.createContext)(null),U=function(e){var t=e.template,n=e.preview,o=e.sampleTemplate,a=e.initContact,i=e.hostName,r=void 0===i?window.location.hostname.split(".")[0]:i,f=e.isSiteBuilder,b=(0,c.v9)(m.IRe.host),I=(0,d.useRouter)(),N=(0,p.K)(),O=N.makeContextualHref,g=N.returnHref,x=(0,c.I0)(),A=(0,m.ddY)(),L=A.openModal,k=A.closeModal,D=A.modalInfo,H=D.isModalOpen,U=D.modalType,G=(0,E.B)(),M=G.currentPlanUuid,Z=G.setCurrentPlanId,F=(0,u.useState)(!1),B=F[0],Y=F[1],q=(0,u.useState)(!1),V=q[0],X=q[1],K=(0,u.useState)(null),W=K[0],Q=K[1],z=t||b.template||m.Ac1;(0,u.useEffect)((function(){var e=function(e){var t="".concat("https://creator.exlyapp.com").split(",").filter(Boolean).map((function(e){return e.trim()}));if(null!==e&&void 0!==e&&e.data&&"object"===typeof(null===e||void 0===e?void 0:e.data)&&(t||[]).includes(e.origin))try{var n,o;if("miscellaneous_data"===(null===e||void 0===e||null===(n=e.data)||void 0===n?void 0:n.type))Q(null===e||void 0===e||null===(o=e.data)||void 0===o?void 0:o.miscellaneous_data);else x((0,m.PHw)(m.aIL.HOST.UPDATE_SITE_BUILDER_DATA,null===e||void 0===e?void 0:e.data))}catch(a){console.log("Iframe message error: ",a,e)}};return f?(window.addEventListener("message",e),function(){window.removeEventListener("message",e)}):function(){}}),[]),(0,u.useEffect)((function(){x((0,m.PHw)(m.aIL.UTILS.POST_ANALYTICS,{screen:"mypageScreen",funnel:"mypage",flow:"mypage",event_name:"completelyLoaded",action:"view"}))}),[]);var J=(0,u.useCallback)((function(e){x((0,m.PHw)(m.aIL.UTILS.POST_ANALYTICS,S(S({},e),{},{screen:"mypageScreen",funnel:"mypage",flow:"mypage"})))}),[]);(0,u.useEffect)((function(){return!H&&M&&Z(null),function(){H&&function(e){if(e.modalType===m.Nye.EventModal&&(I.push("",g,{shallow:!0}),x((0,m.PHw)(m.aIL.UTILS.UPDATE_API_CALL_STATUS,(0,s.Z)({},m.C15.FETCH_EVENT,m.e_n.NOT_FETCHED))),x((0,m.PHw)(m.aIL.EVENT.RESET_BOOKING_DATA)),x((0,m.PHw)(m.aIL.EVENT.RESET_DISCOUNT))),e.modalType===m.Nye.ExitIntent){var t,n=null!==(t=(0,v.St)(m.IaO.EXIT_INTENT_COUNT))&&void 0!==t?t:0;(0,v.D9)(m.IaO.EXIT_INTENT_COUNT,n?n+1:1)}}(D)}}),[H]);var $=(0,u.useCallback)((function(){L(m.Nye.PreviewPopup,{modalProps:{sampleTemplate:o,onClickBack:k,onClickContinue:k}})}),[]),ee=(0,u.useCallback)((function(e,t){n?$():(e||J({event_name:"getInTouch",action:"Tap",ui_component:"Button",identifier:"Get in touch"}),L(m.Nye.GetInTouch,{modalProps:{template:z,listingId:t}}))}),[]),te=(0,u.useCallback)((function(e,t){n?$():L(m.Nye.SocialShare,{modalProps:{postAnalyticalEvent:J,source:e||"spread",data:t||{}}})}),[]),ne=Object.values(m.a97).includes(z)?R[z]:R[m.Ac1],oe=(0,y.C)({preview:n,host:b,handlePreviewPopup:$,postAnalyticalEvent:J,router:I,makeContextualHref:O,onGetInTouchClick:ee,openModal:L,pauseTestimonialsAutoplay:B,setPauseTestimonialsAutoplay:Y,template:z,onShareClick:te,pauseGalleryAutoplay:V,setPauseGalleryAutoplay:X,dispatch:x,hostName:r}),ae=oe.hostData,ie=oe.headerProps,re=oe.navbarProps,le=oe.aboutSectionProps,se=oe.eventSectionsProps,ue=oe.testimonialsSectionProps,ce=oe.gallerySectionProps,de=oe.teamSectionProps,pe=oe.blogPostsSectionProps,fe=oe.footerSectionProps,me=oe.topFeaturesProps,ve=oe.statsSectionProps,Te=(0,T.O)({isPageFilterEnabled:null===ae||void 0===ae?void 0:ae.is_page_filter_enabled}).offeringAccessDenied;(0,u.useEffect)((function(){if(Te){var e=window.location.origin;window.location.href=e}}),[Te]);var Pe=(0,m.etY)("addToCartLoading",!1),he=Pe.data,Ee=Pe.setData;(0,u.useEffect)((function(){var e;null!==I&&void 0!==I&&null!==(e=I.query)&&void 0!==e&&e.eventId&&L(m.Nye.EventModal,{modalProps:{eventId:I.query.eventId,hostName:r,urlQueryParams:null===I||void 0===I?void 0:I.query,addToCartCallback:function(){Ee(!0),setTimeout((function(){Ee(!1)}),7e3)}}})}),[I.query]),(0,u.useEffect)((function(){if(f)return function(){};var e=function(){H||function(){var e;if(!n){var t=(0,v.St)(m.IaO.BOOKED_DEMO),o=null!==(e=(0,v.St)(m.IaO.EXIT_INTENT_COUNT))&&void 0!==e?e:0;!t&&!(0,m.xbD)(ae)&&!(0,m.xbD)(null===ae||void 0===ae?void 0:ae.exit_intent)&&o<2&&L(m.Nye.ExitIntent,{modalProps:{onClickBack:k,hostName:r,hostData:ae}})}}()},t=setTimeout((function(){return document.addEventListener("mouseleave",e)}),3e4),o=setTimeout(e,45e3);return function(){clearTimeout(t),clearTimeout(o),document.removeEventListener("mouseleave",e)}}),[H]),(0,u.useEffect)((function(){f||I.beforePopState((function(e){var t=e.url,n=e.as,o=e.options;if(H&&U===m.Nye.EventModal&&t.startsWith("/host")&&null!==o&&void 0!==o&&o.shallow&&n)k();else if(!H&&t.startsWith("/host?eventId=")&&null!==o&&void 0!==o&&o.shallow){var a=n.split("/")[1];I.push(O({eventId:a}),"".concat(a,"/").concat(window.location.search),{shallow:!0})}else!H&&t.startsWith("/event?eventId=")&&I.push(n);return!0}))}),[I]);var be=(0,m.ZVO)(m.C15.FETCH_HOST)===m.e_n.FETCHED,we=(0,m.fv9)();(0,m.riE)(1200);var ye=(0,m.etY)("hasShownInitContact"),Ie=ye.data,Se=ye.setData;(0,u.useEffect)((function(){a&&!Ie&&(ee(),Se(!0))}),[a,Ie]),(0,m.qXQ)(r);var _e=(0,m.etY)("showBlogVisitorPopup"),Ce=_e.data,Ne=_e.setData,Oe=(0,m.etY)("sharePopupData"),ge=Oe.data,xe=Oe.setData,Ae={hostName:r,hostData:ae,preview:n,handlePreviewPopup:$,postAnalyticalEvent:J,handleSocialShare:te,navbarProps:re,aboutSectionProps:le,eventSectionsProps:se,testimonialsSectionProps:ue,gallerySectionProps:ce,teamSectionProps:de,blogPostsSectionProps:pe,footerSectionProps:fe,topFeaturesProps:me,statsSectionProps:ve};return!we&&he?(0,l.jsx)(P.TF,{design:h.n.rotating_arcs}):be?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(C,S({},ie)),(0,l.jsx)(j.Provider,{value:W,children:(0,l.jsx)(ne,S({},Ae))}),Ce?(0,l.jsx)(P.W7,{classNames:{root:w().popupRoot},closePopup:function(){Ne(!1)}}):null,null!==ge&&void 0!==ge&&ge.show?(0,l.jsx)(P.po,S({classNames:{root:w().popupRoot},closePopup:function(){xe({show:!1,props:{}})}},ge.props)):null]}):(0,l.jsx)("div",{className:w().overlay,children:(0,l.jsx)(_,{})})};U.getInitialProps=function(){var e=(0,r.Z)(i().mark((function e(t){var n,o,a,r,l,s,u,c,d;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.query,o=n.template,a=n.theme,r=n.font,l=n.preview,s=n.sampleTemplate,u=n.init_contact,c=n.is_builder,d=t.params.hostName,t.store.dispatch((0,m.PHw)(m.aIL.UTILS.API_CALL,{apiActionType:m.C15.FETCH_HOST,urlArgs:{hostName:d,utm_affiliate:t.query.utm_affiliate}})),t.store.dispatch(a||o||r?(0,m.PHw)(m.aIL.UTILS.API_CALL,{apiActionType:m.C15.FETCH_UI_CUSTOMIZATION,urlArgs:{themeName:a,templateName:o,fontName:r}}):(0,m.PHw)(m.aIL.UTILS.API_CALL,{apiActionType:m.C15.FETCH_HOST_THEME,urlArgs:{hostName:d}})),e.abrupt("return",{template:o,theme:a,preview:!!l,hostName:d,sampleTemplate:s,initContact:u,isSiteBuilder:!!c});case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),t.default=U},20281:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/testimonials",function(){return n(74769)}])}},function(e){e.O(0,[5772,6478,282,9774,2888,179],(function(){return t=20281,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
//# sourceMappingURL=testimonials-f6db669e4de12f638242.js.map