(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[44],{12549:function(e,n,r){"use strict";var t=r(59499),o=r(4730);r(67294);var i=r(25675),a=r.n(i),s=r(85893),c=["src","alt","fill"];function l(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,t)}return r}function u(e){for(var n=1;n0&&void 0!==arguments[0]?arguments[0]:3,n=(0,t.useState)(0),r=n[0],o=n[1];return{numRetry:r,incNumRetry:function(){return o(function(e){return e+1})},shouldEndRetry:r>=e}},O=r(88427),Z=r(1989),_=function(e){var n=e.renderBlock,r=e.children,o=(0,t.useContext)(L.V),i=(0,T.Z)({},((0,S.Z)(o),o));return n&&!i.initialized?null:r(i)};_.Preferences=function(e){var n=e.children,r=e.renderBlock,o=(0,t.useContext)(L.V),i=(0,t.useContext)(N.z3),a=P(),s=a.incNumRetry,c=a.shouldEndRetry;return((0,t.useEffect)(function(){o.isLoggedIn&&!c&&(s(),i.refetch())},[]),r&&i.loading)?null:n(i)},_.Summary=function(e){var n=e.children,r=e.renderBlock,o=(0,t.useContext)(L.V),i=(0,t.useContext)(O.L9),a=P(),s=a.incNumRetry,c=a.shouldEndRetry;return((0,t.useEffect)(function(){!o.isLoggedIn||i.userSummary.primaryGroupId||c||(s(),i.refetch())},[o.isLoggedIn,i.userSummary.primaryGroupId]),r&&i.loading)?null:n(i)},_.Subscription=function(e){var n=e.children,r=e.renderBlock,o=(0,t.useContext)(L.V),i=(0,t.useContext)(Z.FF),a=P(),s=a.incNumRetry,c=a.shouldEndRetry;return((0,t.useEffect)(function(){o.isLoggedIn&&null===i.userSubscription.memberType&&!c&&(s(),i.refetch())},[o.isLoggedIn,i.userSubscription.memberType]),r&&i.loading)?null:n(i)};var R=function(){return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(m,{children:"Hosted on Slack, a real-time messaging platform, the Learner Community features channels on technologies, tech vendors, IT career advice, and more."}),(0,y.jsx)("p",{children:"The CBT Nuggets Learner Community provides a quick and easy way to connect with more than 2,000 learners in real time! Whether you’re studying for an IT certification or working through an on-the-job issue, get the answers you need."})]})},q=r(53418),B=function(e){var n=e.isEnrolled,r=e.joinCommunityClicked;return e.responseError?"ERROR":n||!r?null:"SUCCESS"},H={SUCCESS:(0,y.jsx)(function(){return(0,y.jsx)(q.qX,{children:(0,y.jsxs)("p",{children:["Thanks for your interest in the Learner Community. You should receive your invitation email within 48 hours. If you don't, please contact"," ",(0,y.jsx)("a",{href:"/contactus",children:"Learner Support"}),"."]})})},{}),ERROR:(0,y.jsx)(function(){return(0,y.jsxs)(q.qX.Error,{children:["Hey, it looks like you may have already joined the community! Click ",(0,y.jsx)("a",{href:"https://cbtlearners.slack.com/",children:"here"})," to enter.",(0,y.jsx)("br",{}),"If you’re not a member of the Learner Community and are seeing this message, please contact ",(0,y.jsx)("a",{href:"/contactus",children:"Learner Support"}),"."]})},{})},W=function(e){var n=e.isEnrolled,r=e.children,o=(0,t.useState)(!1),i=o[0],a=o[1],s=(0,t.useState)(),c=s[0],l=s[1],u=B({isEnrolled:n,joinCommunityClicked:i,responseError:c});return null!==u?H[u]:r(function(){return a(!0)},l)},D=r(50029),F=r(16835),G=r(64687),z=r.n(G),J=r(6609),V=r(84967),X=(0,a.ZP)(v.Z.Primary).withConfig({displayName:"CtaButton",componentId:"sc-8eki55-0"})(["&&{border:",";color:",";&:hover,&:focus{color:",";}&:active{background-color:",";}}"],function(e){return e.loggedin&&"0.1rem solid ".concat(e.theme.primary)},function(e){return e.loggedin&&e.theme.white},function(e){return e.loggedin?e.theme.white:e.theme.primary},function(e){return(0,V._j)(e.loggedin?.1:.05,e.loggedin?e.theme.primary:e.theme.gold)}),A=function(e){var n,r,t=e.isEnrolled,o=e.onJoinCommunity,i=e.onJoinCommunityError,a=(0,J.ZP)({url:"/api/member/v1/community/subscribe",method:"POST"},{manual:!0}),s=(0,F.Z)(a,2)[1],c="Join the learner community",l=(n=(0,D.Z)(z().mark(function e(){return z().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,s();case 3:o(),e.next=10;break;case 6:e.prev=6,e.t0=e.catch(0),window.DD_LOGS.logger.error("Request to join learner community failed"),i(e.t0);case 10:case"end":return e.stop()}},e,null,[[0,6]])})),function(){return n.apply(this,arguments)});return t&&(c="Go to the learner community",r=(0,D.Z)(z().mark(function e(){return z().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:window.open("https://cbtlearners.slack.com/messages/bulletin-board/","_blank");case 1:case"end":return e.stop()}},e)})),l=function(){return r.apply(this,arguments)}),(0,y.jsx)(X,{loggedin:!0,onClick:function(){l()},children:c})},Y=(0,a.ZP)(m).withConfig({displayName:"ThankYouLead",componentId:"sc-tlfawu-0"})(["font-weight:200;"]),K=function(){return(0,y.jsx)(Y,{children:"Thanks for joining the community!"})},M=function(e){var n=e.isEnrolled;return(0,y.jsxs)(y.Fragment,{children:[n?(0,y.jsx)(K,{}):(0,y.jsx)(R,{}),(0,y.jsx)(W,{isEnrolled:!!n,children:function(e,r){return(0,y.jsxs)("div",{children:[(0,y.jsx)(A,{isEnrolled:!!n,onJoinCommunity:e,onJoinCommunityError:r}),n?(0,y.jsx)(c,{}):null]})}})]})},U=function(){return(0,y.jsxs)("span",{className:"hero-text",children:[(0,y.jsx)(m,{children:"“The study groups are excellent for working in a team discussing lab scenarios or any topics that you are struggling with … it's a fantastic place for anyone who is willing to learn and interact with others solving problems and working together as a team.”"}),(0,y.jsx)("p",{children:(0,y.jsx)("strong",{children:"– Anthony H., CBT Nuggets Learner Community member"})})]})},Q=!0,$=function(){var e=(0,t.useContext)(L.V).isLoggedIn,n=!!(0,t.useContext)(N.z3).userPreferences.slack_community.enrolled_at;return(0,y.jsxs)(s,{isEnrolled:n,children:[(0,y.jsxs)(i(),{children:[(0,y.jsx)("title",{children:"Learner Community"}),(0,y.jsx)("meta",{name:"title",content:"Learner Community"},"title"),(0,y.jsx)("meta",{name:"twitter:title",content:"Learner Community"},"twitterTitle"),(0,y.jsx)("meta",{name:"description",content:"Whether you're studying for a certification exam or just need a quick answer to a question, CBT Nuggets Learner Community is a great way to stay informed."},"description"),(0,y.jsx)("meta",{name:"twitter:description",content:"Whether you're studying for a certification exam or just need a quick answer to a question, CBT Nuggets Learner Community is a great way to stay informed."},"twitterDescription"),(0,y.jsx)("meta",{property:"og:description",content:"Whether you're studying for a certification exam or just need a quick answer to a question, CBT Nuggets Learner Community is a great way to stay informed."},"ogDescription"),(0,y.jsx)("link",{rel:"canonical",href:"http://www.canuseducation.com/?cert=community"},"canonical")]}),(0,y.jsx)(g.b,{tree:[{title:"Features",path:"/features"},{title:"Learner community"}]}),(0,y.jsx)(_.Preferences,{renderBlock:!0,children:function(){return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)(l,{children:[(0,y.jsx)(u,{children:"Learner Community"}),!0===e?(0,y.jsx)(M,{isEnrolled:n}):(0,y.jsx)(U,{})]}),(0,y.jsx)(d,{isEnrolled:n,children:(0,y.jsx)(h.Z,{style:{maxWidth:"100%"},src:"/assetshttps://www.cbtnuggets.com/images/community/question.png",alt:"Slack Learner Community",width:75,height:75})}),(0,y.jsx)(x,{isEnrolled:n}),(0,y.jsx)(I,{isLoggedIn:e,isEnrolled:n})]})}})]})}},34401:function(e,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/community",function(){return r(34274)}])},36864:function(e,n,r){"use strict";function t(){return(t=Object.assign?Object.assign.bind():function(e){for(var n=1;n