(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2621],{26480:function(e,t,n){"use strict";n.d(t,{A_:function(){return r},uF:function(){return i}});var o=n(33811),i=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(e&&(0,o.Nq)()){var n=document.body.getBoundingClientRect().top,i=e.getBoundingClientRect().top;window.scrollTo({top:i-n-t,behavior:"smooth"})}},r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"contact-form";e&&i(document.getElementById(e),50)};t.ZP=function(e){e&&e.scrollIntoView({behavior:"smooth",block:"center"})}},99344:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return h}});var o=n(67294),i=n(5152),r=n.n(i),u=n(11163),c=n(26480),a=n(1989),l=n(17099),s=n(85893),f=r()(function(){return Promise.all([n.e(3792),n.e(4967),n.e(5675),n.e(9789),n.e(3418),n.e(3286),n.e(9378)]).then(n.bind(n,21070))},{loadableGenerated:{webpack:function(){return[21070]}}}),d=r()(function(){return Promise.all([n.e(3792),n.e(4967),n.e(5675),n.e(9789),n.e(8870),n.e(3165),n.e(3418),n.e(861),n.e(5184),n.e(3286),n.e(3516)]).then(n.bind(n,43516))},{loadableGenerated:{webpack:function(){return[43516]}}}),h=!0;t.default=function(e){var t=e.courseTotals,n=e.freeSkillData,i=e.catalogHomeData,r=e.coursesWithSkillData,h=(0,o.useContext)(l.V),m=h.initialized,_=h.isLoggedIn,g=(0,o.useContext)(a.FF),b=g.userSubscription,k=g.loading,v=g.refetch,w=(0,u.useRouter)().query;return(0,o.useEffect)(function(){m&&_&&!k&&v()},[_]),(0,o.useEffect)(function(){var e=w["scroll-to"],t=document.getElementById(String(e));t&&(0,c.ZP)(t)},[]),_?(0,s.jsx)(f,{isFreemium:b.isFreemium,courseTotals:t,freeSkillData:n,coursesWithSkillData:r}):(0,s.jsx)(d,{courseTotals:t,catalogHomeData:i,coursesWithSkillData:r})}},95595:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/free-it-training",function(){return n(99344)}])}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=95595)}),_N_E=e.O()}]);