!function(e){function t(t){for(var n,o,c=t[0],u=t[1],s=t[2],l=0,f=[];l=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var P,w=["/youraccount","/youraccount/plan-and-payment","/completesignup","/complete-signup","/complete-subscription","/youraccount/editpayment","/learn/lmi","/lmierror","/lmiadmin"],T=["/learn/lmi/","/lmiadmin/","/lmierror/"];!function(e){e.EXPIRED_FREE_WEEK="offboard-expired-free-week",e.EXPIRED_SUBSCRIPTION="offboard-expired-subscription",e.EXPIRED_TEAM_SUB="offboard-expired-team-sub"}(P||(P={}));var j=function(e){var t=!!T.find((function(t){return a.a.get(window,"location.pathname").includes(t)||a.a.get(e,"location.pathname").includes(t)})),r=a.a.includes(w,a.a.get(window,"location.pathname"))||a.a.includes(w,a.a.get(e,"location.pathname"));return t||r};t.b=Object(u.o)(Object(c.connect)((function(e,t){return{ownerName:a.a.get(e,"yourAccount.planAndPayment.accountOwner.name",""),ownerEmail:a.a.get(e,"yourAccount.planAndPayment.accountOwner.email",""),widgetsUndismissed:a.a.get(e,"myTraining.mytraining.widgetsUndismissed.Data"),ignoredRoutePath:j(t)}}),(function(e){return{myTrainingActions:Object(i.bindActionCreators)(v.c,e),getGroupAccountOwner:Object(i.bindActionCreators)(E.getAccountOwner,e)}}))((function(e){var t,r,o,i,c,u=e.ownerName,v=e.ownerEmail,E=e.myTrainingActions,w=e.widgetsUndismissed,T=_(e,S),j=Object(f.b)(p.a),C=j.loggedIn,I=j.logout,R=j.isLMIUser,D=Object(f.b)(b.a).memberType,N=Object(f.b)(n.a),A=N.subscriptionData,L=N.isAccessCodeUser,x=Object(f.b)(g.a),k=x.userStatus,G=x.getUser,M=Object(f.b)(m.a),U=M.isAccountOwner,B=M.getAccount,F=M.accountStatus,V=M.account,H=A&&(null==A||null===(t=A.activePlan)||void 0===t?void 0:t.hasTrial),Y=A&&(null==A?void 0:A.hasFutureSubscription),z=A&&a.a.isEmpty(null==A?void 0:A.activePlan),q=Object(f.b)(y.a),W=q.defaultPaymentData,J=q.getDefaultPayment,Q=q.defaultPaymentStatus,$=(null==W?void 0:W.type)&&(null==W?void 0:W.type)!==O.b.UNKNOWN,K=T.ignoredRoutePath,X=A&&(null!==(r=null==A||null===(o=A.activePlan)||void 0===o?void 0:o.primaryGroup)&&void 0!==r?r:null==A||null===(i=A.plans)||void 0===i||null===(c=i[0])||void 0===c?void 0:c.primaryGroup),Z=k===d.c.READY&&F===d.c.READY&&Q===d.c.READY&&w&&X;Object(s.useEffect)((function(){E.getWidgetsUndismissed()}),[]),Object(s.useEffect)((function(){k===d.c.INITIAL&&G()}),[k]),Object(s.useEffect)((function(){Q===d.c.INITIAL&&J()}),[Q]),Object(s.useEffect)((function(){F===d.c.INITIAL&&k===d.c.READY&&B()}),[F,k]),Object(s.useEffect)((function(){F===d.c.READY&&!U&&X&&T.getGroupAccountOwner(X)}),[F]);var ee=function(e){return!w.includes(e)},te=function(e,t){E.setWidgetDismissed(e,t)};if(!C)return null;if(!D)return null;if(K)return null;if(R)return null;if(L)return null;if(Y&&!H)return null;if(!z&&!H)return null;if(Z){var re,ne,oe,ae,ie,ce,ue,se,le=1===(null==A||null===(re=A.plans)||void 0===re||null===(ne=re[0])||void 0===ne||null===(oe=ne.subscriptions)||void 0===oe?void 0:oe.length)&&(null===(ae=A.plans[0].subscriptions[0])||void 0===ae?void 0:ae.isTrial),de=(null==A||null===(ie=A.plans)||void 0===ie||null===(ce=ie[0])||void 0===ce||null===(ue=ce.subscriptions)||void 0===ue||null===(se=ue[0])||void 0===se?void 0:se.licenses)>1,fe=F===d.c.READY&&void 0===V,pe=z&&!le&&U&&!ee(P.EXPIRED_SUBSCRIPTION),ye=z&&le&&!fe&&!ee(P.EXPIRED_FREE_WEEK);if(z&&!U&&!ee(P.EXPIRED_TEAM_SUB))return l.a.createElement(h.c,{onDismiss:function(e,t){return te(e,t)},accountOwner:{name:u,email:v},onLogout:I});if(ye)return l.a.createElement(h.a,{onDismiss:function(e,t){return te(e,t)},onLogout:I,isMultiUser:de,hasPaymentData:$});if(pe)return l.a.createElement(h.b,{onDismiss:function(e,t){return te(e,t)},onLogout:I,isMultiUser:de,hasPaymentData:$})}return null})))},103:function(e,t,r){"use strict";r.d(t,"b",(function(){return n})),r.d(t,"c",(function(){return o})),r.d(t,"a",(function(){return a}));var n=function(e){if("undefined"!=typeof localStorage){var t=localStorage.getItem("cbt_player_preferences");return("string"==typeof t?JSON.parse(t):{})[e]}return{}},o=function(e,t){if("undefined"!=typeof localStorage){var r=localStorage.getItem("cbt_player_preferences"),n="string"==typeof r?JSON.parse(r):{};n[e]=t,localStorage.setItem("cbt_player_preferences",JSON.stringify(n))}},a=function(){var e=n("volume"),t=n("autoPlayEnabled"),r=n("showQuizQuestions");return{showCaptions:n("showCaptions")||!1,showQuizQuestions:void 0===r||r,volume:void 0!==e?e:.5,muted:void 0!==e&&0===e,speed:n("speed")||1,quality:n("quality")||"auto",autoPlayEnabled:void 0===t||t,showDebugLogs:n("showDebugLogs")||!1}}},105:function(e,t,r){"use strict";r.d(t,"b",(function(){return n})),r.d(t,"a",(function(){return o})),r.d(t,"c",(function(){return a})),r.d(t,"h",(function(){return i})),r.d(t,"f",(function(){return c})),r.d(t,"g",(function(){return u})),r.d(t,"e",(function(){return s})),r.d(t,"d",(function(){return l}));var n="BUG_REPORT_PENDING",o="BUG_REPORT_ERROR",a="BUG_REPORT_RESOLVED",i="RESET_BUG_REPORT",c="FILE_IS_TOO_LARGE",u="FILE_IS_WRONG_TYPE",s="FILE_HINT_RESET",l="FILE_COUNT_TOO_LARGE"},109:function(e,t,r){"use strict";r.d(t,"h",(function(){return c})),r.d(t,"g",(function(){return u})),r.d(t,"i",(function(){return s})),r.d(t,"e",(function(){return l})),r.d(t,"d",(function(){return d})),r.d(t,"f",(function(){return f})),r.d(t,"b",(function(){return p})),r.d(t,"a",(function(){return y})),r.d(t,"c",(function(){return b})),r.d(t,"j",(function(){return m})),r.d(t,"m",(function(){return g})),r.d(t,"k",(function(){return h})),r.d(t,"l",(function(){return v})),r.d(t,"n",(function(){return E}));var n=r(7),o=r(3),a=r.n(o),i=r(4),c="FETCH_PLAYLIST_PENDING",u="FETCH_PLAYLIST_ERROR",s="FETCH_PLAYLIST_SUCCESS",l="CREATE_PLAYLIST_PENDING",d="CREATE_PLAYLIST_ERROR",f="CREATE_PLAYLIST_SUCCESS",p="ADD_TO_PLAYLIST_PENDING",y="ADD_TO_PLAYLIST_ERROR",b="ADD_TO_PLAYLIST_SUCCESS",m="SET_VIDEO_ID_FOR_PLAYLIST",g=function(){return function(e){return e({type:c}),n.axios.get("".concat(i.C,"/playlists/user?filters=role:admin"),{validateStatus:function(e){return 200===e}}).then((function(t){var r=t.data;e({type:s,payload:r})})).catch((function(t){e({type:u,error:t})}))}},h=function(e,t,r){return function(o,c){var u=a.a.get(c(),"course.playList.videoId",""),s=a.a.get(c(),"course.courseVideos._id",""),l=[];return"course"===t?l=[{id:"nrn:collection:".concat(s)}]:"playlist"===t?l=[{id:"nrn:video:".concat(u),ref_id:r}]:"video"===t?l=[{id:"nrn:video:".concat(u),ref_id:"nrn:collection:".concat(s)}]:"skillFromPlaylist"===t&&(l=[{id:r}]),o({type:p}),n.axios.post("".concat(i.G,"/playlist/").concat(e,"/item"),{items:l}).then((function(e){var t=e.data;o({type:b,payload:t}),o(g())})).catch((function(e){o({type:y,error:e})}))}},v=function(e,t,r){return function(o){return o({type:l}),n.axios.post("".concat(i.G,"/playlist"),{name:e,type:"user"}).then((function(e){var n=e.data;o({type:f,payload:n}),o(h(n.id,t,r))})).catch((function(e){o({type:d,error:e})}))}},E=function(e){return function(t){t({type:m,payload:e})}}},111:function(e,t,r){"use strict";r.d(t,"b",(function(){return n})),r.d(t,"a",(function(){return o})),r.d(t,"d",(function(){return f})),r.d(t,"c",(function(){return p}));var n,o,a=r(7),i=r(4),c=r(17);function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:[];return function(){var t=i(regeneratorRuntime.mark((function t(r,a){var i,l,d;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i="".concat(o.G,"/admin/usersearch"),r({type:c}),t.prev=2,t.next=5,n.axios.post(i,e);case 5:l=t.sent,d=l.data,r({type:s,payload:d}),t.next=13;break;case 10:t.prev=10,t.t0=t.catch(2),r({type:u,error:t.t0});case 13:case"end":return t.stop()}}),t,null,[[2,10]])})));return function(e,r){return t.apply(this,arguments)}}()},b=function(e){return function(t){t({type:l,payload:e})}},m=function(e){return function(){var t=i(regeneratorRuntime.mark((function t(r,a){var i,c,u;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i="".concat(o.G,"/admin/user"),r({type:d}),t.prev=2,t.next=5,n.axios.get("".concat(i,"/").concat(e));case 5:c=t.sent,u=c.data.member,r({type:p,payload:u}),t.next=13;break;case 10:t.prev=10,t.t0=t.catch(2),r({type:f,error:t.t0});case 13:case"end":return t.stop()}}),t,null,[[2,10]])})));return function(e,r){return t.apply(this,arguments)}}()}},121:function(e,t,r){"use strict";r.d(t,"b",(function(){return i})),r.d(t,"a",(function(){return c})),r.d(t,"c",(function(){return u})),r.d(t,"d",(function(){return s})),r.d(t,"e",(function(){return l}));var n=r(7),o=r(4),a=r(143),i="NLS_UPLOAD_SYNC_FILE_PROGRESS",c="NLS_UPLOAD_SYNC_FILE_PENDING",u="NLS_UPLOAD_SYNC_FILE_REJECTED",s="NLS_UPLOAD_SYNC_FILE_RESOLVED";function l(e){return function(t){var r;return t({type:c,payload:r}),Object(n.axios)({url:"".concat(o.A,"/uploadsync"),method:"post",onUploadProgress:function(e){t(function(e){return{type:i,payload:{uploaded:Object(a.a)(e.loaded),total:Object(a.a)(e.total),percent:Math.floor(100*e.loaded/e.total)}}}(e))},data:e}).then((function(e){return t(function(e){return{type:s,payload:e.data}}(e))})).catch((function(e){return t(function(e){return{type:u,payload:e.response?e.response.error:""}}(e))}))}}},123:function(e,t,r){"use strict";r.d(t,"g",(function(){return f})),r.d(t,"h",(function(){return p})),r.d(t,"i",(function(){return y})),r.d(t,"d",(function(){return b})),r.d(t,"e",(function(){return m})),r.d(t,"f",(function(){return g})),r.d(t,"a",(function(){return h})),r.d(t,"b",(function(){return v})),r.d(t,"c",(function(){return E})),r.d(t,"j",(function(){return P}));var n=r(3),o=r.n(n),a=r(7),i=r(4),c=r(137),u=r(17);function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t2&&void 0!==arguments[2])||arguments[2],n=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0;return function(a){a(O(e)).then((function(){return a(S(t))})).then((function(){return a(_(n))})).finally((function(){return n&&o(),a(Object(c.d)(r))}))}}},129:function(e,t,r){"use strict";r.r(t),r.d(t,"GET_CAPTURED_INVOICES_PENDING",(function(){return l})),r.d(t,"GET_CAPTURED_INVOICES_REJECTED",(function(){return d})),r.d(t,"GET_CAPTURED_INVOICES_RESOLVED",(function(){return f})),r.d(t,"GET_DEFAULT_PAYMENT_PENDING",(function(){return p})),r.d(t,"GET_DEFAULT_PAYMENT_REJECTED",(function(){return y})),r.d(t,"GET_DEFAULT_PAYMENT_RESOLVED",(function(){return b})),r.d(t,"queryGetCapturedInvoices",(function(){return m})),r.d(t,"getCapturedInvoices",(function(){return g})),r.d(t,"getDefaultPayment",(function(){return h}));var n=r(4),o=r(8),a=r(111),i=r(17);function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return function(t){return t(Object(g.a)({url:"".concat(m.F,"/completion/list/"),method:"get",params:v(v({},e),{},{format:"csv"}),types:{pending:null,rejected:null,resolved:function(e){return b()(new Blob([e]),"CBTNuggets_Completion_Report.csv","text/csv")}}}))}};function S(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return function(t){return t(Object(g.a)({url:"".concat(m.F,"/completion/list/detail"),method:"get",params:_(_({},e),{},{format:"csv"}),types:{pending:null,rejected:null,resolved:function(e){return b()(new Blob([e]),"CBTNuggets_Completion_Detail_Report.csv","text/csv")}}}))}};function T(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function j(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};return function(r){var n=j(j({},t),{},{format:"csv"});r(Object(g.a)({url:"".concat(m.F,"/").concat(e),method:"get",params:n,types:{pending:null,rejected:null,resolved:function(e){return b()(new Blob([e]),"CBTNuggets_Validated_Course_Minutes_Report.csv","text/csv")}}}))}};function R(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function D(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return function(t){return t(Object(g.a)({url:"".concat(m.F,"/training/list/detail"),method:"get",params:D(D({},e),{},{format:"csv"}),types:{pending:null,rejected:null,resolved:function(e){return b()(new Blob([e]),"CBTNuggets_Details_Training_Report.csv","text/csv")}}}))}};function L(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function x(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return function(t){return t(Object(g.a)({url:"".concat(m.F,"/completion/ind/video/list"),method:"get",params:x(x({},e),{},{format:"csv"}),types:{pending:null,rejected:null,resolved:function(e){return b()(new Blob([e]),"CBTNuggets_Completion_Report.csv","text/csv")}}}))}},M=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){return t(Object(g.a)({url:"".concat(m.F,"/completion/ind/collection/list"),method:"get",params:x(x({},e),{},{format:"csv"}),types:{pending:null,rejected:null,resolved:function(e){return b()(new Blob([e]),"CBTNuggets_Completion_Report.csv","text/csv")}}}))}};var U=r(7);function B(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function F(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return function(t){return t(Object(g.a)({url:"".concat(m.r,"/attempts/for/member/").concat(e.member_id),method:"get",params:F(F({},e),{},{format:"csv"}),types:{pending:null,rejected:null,resolved:function(e){return b()(new Blob([e]),"CBTNuggets_Individual_Practice_Exam_Report.csv","text/csv")}}}))}},W=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){t({type:H}),U.axios.get("".concat(m.r,"/attempts/for/member/").concat(e.member_id),{params:e}).then((function(e){return t({type:Y,payload:{data:e.data,status:e.request.status}})})).catch((function(e){return t({type:z,payload:e.response||{}})}))}};function J(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Q(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return function(t){return t(Object(g.a)({url:"".concat(m.F,"/training/ind/list"),method:"get",params:Q(Q({},e),{},{format:"csv"}),types:{pending:null,rejected:null,resolved:function(e){return b()(new Blob([e]),"CBTNuggets_Individual_Training_Report.csv","text/csv")}}}))}},X=r(226);function Z(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ee(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return function(t){return t(Object(g.a)({url:"".concat(m.F).concat(X.m),method:"get",params:ee(ee({},e),{},{format:"csv"}),types:{pending:null,rejected:null,resolved:function(e){return b()(new Blob([e]),"CBTNuggets_Individual_Validated_Minutes_Report.csv","text/csv")}}}))}};function ne(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function oe(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return function(t){return t(Object(g.a)({url:"".concat(m.r,"/attempts/for/group/").concat(e.group_id),method:"get",params:oe(oe({},e),{},{format:"csv"}),types:{pending:null,rejected:null,resolved:function(e){return b()(new Blob([e]),"CBTNuggets_Practice_Exam_Report.csv","text/csv")}}}))}},le=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){t({type:ie}),U.axios.get("".concat(m.r,"/attempts/for/group/").concat(e.group_id),{params:e}).then((function(e){return t({type:ce,payload:{data:e.data,status:e.request.status}})})).catch((function(e){return t({type:ue,payload:e.response||{}})}))}},de=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(r){r({type:ie}),U.axios.get("".concat(m.r,"/attempts/for/groups/").concat(e),{params:t}).then((function(e){return r({type:ce,payload:{data:e.data,status:e.request.status}})})).catch((function(e){return r({type:ue,payload:e.response||{}})}))}},fe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(r){return r(Object(g.a)({url:"".concat(m.r,"/attempts/for/groups/").concat(e),method:"get",params:oe(oe({},t),{},{format:"csv"}),types:{pending:null,rejected:null,resolved:function(e){return b()(new Blob([e]),"CBTNuggets_Practice_Exam_Report.csv","text/csv")}}}))}};function pe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ye(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return function(t){return t(Object(g.a)({url:"".concat(m.F,"/training/list"),method:"get",params:ye(ye({},e),{},{format:"csv"}),types:{pending:null,rejected:null,resolved:function(e){return b()(new Blob([e]),"CBTNuggets_Summary_Training_Report.csv","text/csv")}}}))}};function ge(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function he(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return function(t){return t(Object(g.a)({url:"".concat(m.F).concat(X.l),method:"get",params:he(he({},e),{},{format:"csv"}),types:{pending:null,rejected:null,resolved:function(e){return b()(new Blob([e]),"CBTNuggets_Admin_Validate_Minutes_Report.csv","text/csv")}}}))}};r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return o})),r.d(t,"c",(function(){return a})),r.d(t,"d",(function(){return i})),r.d(t,"e",(function(){return c})),r.d(t,"f",(function(){return u})),r.d(t,"g",(function(){return s})),r.d(t,"h",(function(){return l})),r.d(t,"i",(function(){return d})),r.d(t,"j",(function(){return f})),r.d(t,"k",(function(){return p}))},137:function(e,t,r){"use strict";r.d(t,"a",(function(){return d})),r.d(t,"b",(function(){return f})),r.d(t,"c",(function(){return p})),r.d(t,"d",(function(){return y}));var n=r(3),o=r.n(n),a=r(1),i=r(57),c=r(192);function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t0&&void 0!==arguments[0]&&arguments[0];return function(t,r){var n=o.a.get(r(),"userData.data"),u=o.a.get(r(),"userData.status",a.c);(e||u===a.c||n===a.a)&&(t({type:d}),Object(c.a)().then((function(e){Object(i.addGlobalContext)("memberId",e.profile.member_id),t({type:p,payload:s({},e)}),(window.dataLayer||[]).push({"Member Is Admin":"".concat(e.groupRoles.admin),Member:"".concat(e.authInfo.id),LoggedIn:"true"})})).catch((function(e){t({type:f,payload:e.response})})))}}},138:function(e,t,r){"use strict";r.d(t,"c",(function(){return p})),r.d(t,"b",(function(){return y})),r.d(t,"d",(function(){return b})),r.d(t,"e",(function(){return m})),r.d(t,"f",(function(){return g})),r.d(t,"g",(function(){return h})),r.d(t,"a",(function(){return v})),r.d(t,"i",(function(){return E})),r.d(t,"j",(function(){return O})),r.d(t,"l",(function(){return S})),r.d(t,"m",(function(){return _})),r.d(t,"h",(function(){return P})),r.d(t,"k",(function(){return w}));var n=r(7),o=r(47),a=r.n(o),i=r(122),c=r.n(i),u=r(96),s=r(4),l=r(277),d=r(262),f=r(363),p="FETCH_COURSE_VIDEOS_PENDING",y="FETCH_COURSE_VIDEOS_ERROR",b="FETCH_COURSE_VIDEOS_SUCCESS",m="TOGGLE_AUTOSTART",g="UPDATE_POSITION",h="UPDATE_SELECTED_COURSE_VIDEO",v="FETCH_COURSE_RATINGS_SUCCESS",E=function(e,t,r,o){return function(a){var i="".concat(s.G,"/course/summary/").concat(e);return a({type:p}),n.axios.get(i,{validateStatus:function(e){return 200===e}}).then((function(n){var i=n.data,u=Object(l.a)(),s=i.videos;o&&(i.videos=s.filter((function(e){return!1!==o["nrn:video:".concat(e._id)]})));var d=t;c()(s,s[t-1])||(d=1),a({type:b,payload:{data:i,videoIndex:d-1,number:d,seoslug:e,autoStart:r&&u}})})).catch((function(e){a({type:y,payload:e})}))}};function O(){return function(e,t){var r=!a()(t(),["course","courseVideos","autoStart"]);e({type:m,payload:r})}}function S(e){return function(t){t({type:g,payload:e})}}var _=function(e){return function(t){t({type:h,payload:e})}},P=function(e,t){return function(r){r({type:"FETCH_COURSE_RATINGS_PENDING"}),u.a.query({query:d.a,context:{headers:{authorization:"Bearer ".concat(t)}},variables:{nrn:e},skip:!t,fetchPolicy:"network-only"}).then((function(t){var n={ratingSummary:{thumbs_down:a()(t,"data.getRatingsSummaryForResource.thumbsDown",0),thumbs_up:a()(t,"data.getRatingsSummaryForResource.thumbsUp",0)},userRating:{owner:a()(t,"data.getRatingForResource.owner",""),rating:a()(t,"data.getRatingForResource.value",0)},resource:e};return r({type:v,payload:n})})).catch((function(e){return r({type:"FETCH_COURSE_RATINGS_ERROR",payload:e})}))}};function w(e,t,r){return function(n){return n({type:"UPDATE_COURSE_RATING_PENDING"}),0===t?u.a.mutate({mutation:f.a,context:{headers:{authorization:"Bearer ".concat(r)}},variables:{nrn:e}}).then((function(){n({type:"UPDATE_COURSE_RATING_SUCCESS"})})).catch((function(e){n({type:"UPDATE_COURSE_RATING_ERROR"})})):u.a.mutate({mutation:f.b,context:{headers:{authorization:"Bearer ".concat(r)}},variables:{nrn:e,vote:t}}).then((function(){n({type:"UPDATE_COURSE_RATING_SUCCESS"})})).catch((function(e){n({type:"UPDATE_COURSE_RATING_ERROR"})}))}}},143:function(e,t,r){"use strict";r.d(t,"a",(function(){return o})),r.d(t,"b",(function(){return n}));r(3);function n(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}function o(e){var t=["Bytes","KB","MB","GB","TB"];if(0===e)return" < 10 MB";var r=parseInt(Math.floor(Math.log(e)/Math.log(1024)),10);return 0===r?"".concat(e," ").concat(t[r],")"):"".concat((e/Math.pow(1024,r)).toFixed(1)," ").concat(t[r])}},144:function(e,t,r){"use strict";var n={};r.r(n),r.d(n,"LOAD_PLAYLIST_PENDING",(function(){return d})),r.d(n,"LOAD_PLAYLIST_SUCCESS",(function(){return f})),r.d(n,"LOAD_PLAYLIST_ERROR",(function(){return p})),r.d(n,"loadPlaylist",(function(){return y}));var o={};r.r(o),r.d(o,"getLeaderboardData",(function(){return g}));var a={};r.r(a),r.d(a,"getCurrentStats",(function(){return h}));var i={};r.r(i),r.d(i,"getRecentVideos",(function(){return v}));var c={};r.r(c),r.d(c,"subscribeEmail",(function(){return E}));var u={};r.r(u),r.d(u,"getValidatedMinutes",(function(){return O}));var s=r(4),l=r(8),d="LOAD_PLAYLIST_PENDING",f="LOAD_PLAYLIST_SUCCESS",p="LOAD_PLAYLIST_ERROR";function y(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){t(Object(l.a)({url:"".concat(s.G,"/playlists/user?type=certification&cache=").concat(Math.random()),method:"get",data:e,types:{pending:d,rejected:p,resolved:f}}))}}var b=r(393),m=r(12);function g(e){return function(t){return t(Object(l.a)({url:"".concat(s.v,"/leaderboard/for/validated_minutes"),method:"get",params:{group_id:e},types:{pending:m.k,resolved:m.m,rejected:m.l}}))}}r(505),r(188),r(256),r(154),r(7);function h(){return function(e){return e(Object(l.a)({url:"".concat(s.w,"/stats"),method:"get",types:{pending:m.w,resolved:m.y,rejected:m.x}}))}}var v=function(){return function(e){var t="".concat(s.G,"/playlist/user/history");return e(Object(l.a)({url:t,method:"get",params:{limit:6,cache:Math.random()},types:{pending:m.u,resolved:m.v,rejected:m.t}}))}};function E(e,t){return function(r){r(Object(l.a)({url:"".concat(s.G,"/email/preferences"),method:"post",data:e,types:{pending:m.i,rejected:function(e){r({type:m.h,error:e})},resolved:function(e){r({type:m.j,payload:e}),setTimeout(t,5e3)}}}))}}function O(e){return function(t){return t(Object(l.a)({url:"".concat(s.v,"/leaderboard/for/validated_minutes/"),method:"get",params:{group_id:e,per_page:25},types:{pending:m.z,resolved:m.B,rejected:m.A}}))}}r.d(t,"d",(function(){return n})),r.d(t,"c",(function(){return b})),r.d(t,"b",(function(){return o})),r.d(t,"e",(function(){return a})),r.d(t,"g",(function(){return i})),r.d(t,"a",(function(){return c})),r.d(t,"f",(function(){return u}))},145:function(e,t,r){"use strict";var n=r(0),o=r.n(n),a=r(2).e.svg.withConfig({displayName:"BaseSVG",componentId:"x1z1y3-0"})(["path,rect,circle,polygon,line,polyline,ellipse{fill:",";}"],(function(e){return e.color||e.themeFallback(e.theme)}));function i(){return(i=Object.assign||function(e){for(var t=1;t4&&void 0!==arguments[4])||arguments[4];return function(i){var c="".concat(u.G,"/playlist/").concat(e);return i({type:b}),n.axios.get(c,{validateStatus:function(e){return 200===e}}).then((function(n){var c=n.data;if(S(c))throw new Error("Invalid playlist requested: ".concat(e));o&&(c.collections=null==c?void 0:c.collections.filter((function(e){return e.items=null==e?void 0:e.items.filter((function(e){return!1!==o[e.id]})),e.items.length>0}))),i({type:g,payload:p(p({},c),{},{videoNumber:t,autoStart:r})}),!0===a&&i(w(c.collections.map((function(e){return e.id}))))})).catch((function(e){i({type:m,payload:e,error:e})}))}},P=function(e){return function(t){t({type:h,payload:e})}},w=function(e){return function(){var t,r=(t=regeneratorRuntime.mark((function t(r,n){var o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n(),o=a()(n(),"authenticationContainer.accessToken",""),r({type:v}),t.next=5,s.a.query({query:l.b,variables:{ids:e},context:{headers:{authorization:"Bearer ".concat(o)}}}).then((function(e){var t=a()(e,"data.getRatingsSummaryForResources"),n=c()(t,(function(e,t){return{thumbs_up:e.thumbs_up+t.thumbsUp,thumbs_down:e.thumbs_down+t.thumbsDown}}),{thumbs_up:0,thumbs_down:0});return r({type:O,payload:{ratingSummary:n}})})).catch((function(e){return console.log("Could not find rating",e),r({type:E,payload:{error:e,ratingSummary:{thumbs_down:0,thumbs_up:0}}})}));case 5:return t.abrupt("return",t.sent);case 6:case"end":return t.stop()}}),t)})),function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function i(e){d(a,n,o,i,c,"next",e)}function c(e){d(a,n,o,i,c,"throw",e)}i(void 0)}))});return function(e,t){return r.apply(this,arguments)}}()}},151:function(e,t,r){"use strict";r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return o})),r.d(t,"c",(function(){return a})),r.d(t,"d",(function(){return i})),r.d(t,"e",(function(){return c})),r.d(t,"f",(function(){return u})),r.d(t,"g",(function(){return s})),r.d(t,"h",(function(){return l}));r(3),r(7),r(4),r(8);var n="GET_EMAIL_SETTINGS_PENDING",o="GET_EMAIL_SETTINGS_REJECTED",a="GET_EMAIL_SETTINGS_RESOLVED",i="POST_EMAIL_SETTINGS_PENDING",c="POST_EMAIL_SETTINGS_REJECTED",u="POST_EMAIL_SETTINGS_RESOLVED",s="RESET_EMAIL_SETTINGS",l=function(){return function(e){return e({type:s,payload:{}})}}},16:function(e,t,r){"use strict";var n;r.d(t,"a",(function(){return o})),r.d(t,"b",(function(){return a})),function(e){e.WAITING_FOR_DEPENDENCY="WAITING_FOR_DEPENDENCY",e.INITIAL="INITIAL",e.LOADING="LOADING",e.ERROR="ERROR",e.READY="READY"}(n||(n={}));var o=function(e){return e===n.INITIAL||e===n.WAITING_FOR_DEPENDENCY},a=function(e){return e===n.ERROR||e===n.READY};t.c=n},167:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(82),o=Object(n.createBrowserHistory)()},168:function(e,t,r){"use strict";r.r(t),r.d(t,"PURCHASE_LEARNERS_PENDING",(function(){return s})),r.d(t,"PURCHASE_LEARNERS_REJECTED",(function(){return l})),r.d(t,"PURCHASE_LEARNERS_RESOLVED",(function(){return d})),r.d(t,"FETCH_PRICING_PENDING",(function(){return f})),r.d(t,"FETCH_PRICING_REJECTED",(function(){return p})),r.d(t,"FETCH_PRICING_RESOLVED",(function(){return y})),r.d(t,"purchaseLearners",(function(){return b})),r.d(t,"fetchPricingScenarios",(function(){return m}));var n=r(4),o=r(8),a=r(17);function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},u=Object(o.b)(i.a),s=u.userStatus,l=u.user,p=u.isOrphan,y=Object(n.useMemo)((function(){return["accountContainer",{accountId:null==l?void 0:l.account_id}]}),[l]),b=Object(c.c)(y,d,{enabled:!1}),m=b.data,g=b.status,h=b.error,v=b.refetch,E=null!==(e=null==r?void 0:r.account)&&void 0!==e?e:m,O=Object(n.useMemo)((function(){var e;return 404===(null==h||null===(e=h.response)||void 0===e?void 0:e.status)}),[h]),S=Object(n.useMemo)((function(){return g===c.a.Error&&!O||s===a.c.ERROR?a.c.ERROR:null!=l&&l.account_id?g!==c.a.Loading&&(E||O||p)?a.c.READY:g===c.a.Loading?a.c.LOADING:a.c.INITIAL:a.c.WAITING_FOR_DEPENDENCY}),[E,g,l,s,O,p]),_=Object(f.a)({containerStatus:S,fetchCallback:v,disabled:p}),P=Object(n.useMemo)((function(){return!(null==l||!l.user_id||null==E||!E.owner_id||(null==l?void 0:l.user_id)!==(null==E?void 0:E.owner_id))}),[E,l]);return{accountStatus:null!==(t=null==r?void 0:r.accountStatus)&&void 0!==t?t:S,account:E,isAccountOwner:P,getAccount:_}}));t.a=p},190:function(e,t,r){"use strict";var n=r(16),o=r(0),a=r(15),i=r(25),c=r(278),u=r(74),s=Object(a.a)((function(){var e,t=Object(i.c)("subscriptionsWithFutureContainer",c.b,{enabled:!1}),r=t.data,a=t.status,s=t.refetch,l=Object(o.useMemo)((function(){return a===i.a.Error?n.c.ERROR:a===i.a.Success?n.c.READY:a===i.a.Loading?n.c.LOADING:n.c.INITIAL}),[a]),d=Object(u.a)({containerStatus:l,fetchCallback:s}),f=Object(o.useMemo)((function(){return null==r?void 0:r.getPlansWithFuture}),[r]),p=Object(o.useMemo)((function(){var e,t;return null!==(e=null==f||null===(t=f[0])||void 0===t?void 0:t.isReseller)&&void 0!==e&&e}),[f]);return{subscriptionStatus:l,subscriptionPlanWFData:f,getSubscriptionPlansWithFuture:d,isReseller:p,billingEmail:null==f||null===(e=f[0])||void 0===e?void 0:e.billingEmail}}));t.a=s},191:function(e,t,r){"use strict";r.d(t,"a",(function(){return s})),r.d(t,"b",(function(){return l})),r.d(t,"c",(function(){return d})),r.d(t,"d",(function(){return f})),r.d(t,"e",(function(){return b}));var n=r(3),o=r.n(n),a=r(4),i=r(93),c=r(8);function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var s="RENAME_PLAYLIST_PENDING",l="RENAME_PLAYLIST_REJECTED",d="RENAME_PLAYLIST_RESOLVED",f="UPDATE_PLAYLIST_NAME_OF_GROUP";function p(){return{type:s}}function y(e){return{type:l,error:e}}function b(e){return function(t){var r="object"===u(e);e&&r?o.a.has(e,"id")&&o.a.has(e,"name")?(t(p()),t(Object(c.a)({url:"".concat(a.G,"/playlist/").concat(e.id),method:"post",data:e,types:{pending:function(){t(p())},rejected:function(e){t(y(e))},resolved:function(){t(function(e){return{type:d,payload:e}}(e)),t(function(e){return{type:f,payload:e}}(e)),t(function(e){return{type:i.g,payload:e}}(e))}}}))):t(y({status:400,message:"parameters id and name are required"})):y({status:400,message:"object parameter expected"})}}},192:function(e,t,r){"use strict";var n=r(122),o=r.n(n),a=r(7),i=r(4);function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var S=Object(u.d)(["font-weight:600;border-radius:3.2rem;padding:",";background-position:center;transition:background 0.6s,border-color 0.3s,background-color 0.3s;font-size:",";background-color:",";border:0.1rem solid ",";color:",";letter-spacing:0.042rem;margin:0 0.5rem;text-align:center;:hover{cursor:pointer;text-decoration:underline;background:",";}:disabled{opacity:0.6;cursor:default;}:disabled:hover{text-decoration:none;background-color:",";}:active{background-color:",";background-size:100%;transition:background 0s;}:first-child{margin:0;}"],(function(e){return e.small?"0.5rem 1.8rem":"0.75rem 3rem"}),(function(e){return e.small?e.theme.fonts.textSmall:e.theme.fonts.textStandard}),(function(e){return e.secondary?"transparent":e.theme.colors.primary}),(function(e){return e.theme.colors.primary}),(function(e){return e.secondary?e.theme.colors.primary:e.theme.colors.greyLight}),(function(e){return e.secondary?"".concat(Object(s.a)(.05,e.theme.colors.greyLight)," radial-gradient(circle, transparent 1%, ").concat(Object(s.a)(.05,e.theme.colors.greyLight)," 1%) center/15000%"):"".concat(Object(s.b)(.1,e.theme.colors.primary)," radial-gradient(circle, transparent 1%, ").concat(Object(s.b)(.1,e.theme.colors.primary)," 1%) center/15000%")}),(function(e){return e.secondary?"".concat(Object(s.a)(.05,e.theme.colors.greyLight)," radial-gradient(circle, transparent 1%, ").concat(Object(s.a)(.05,e.theme.colors.greyLight)," 1%) center/15000%"):"".concat(Object(s.b)(.1,e.theme.colors.primary)," radial-gradient(circle, transparent 1%, ").concat(Object(s.b)(.1,e.theme.colors.primary)," 1%) center/15000%")}),(function(e){return e.secondary?Object(s.a)(.2,e.theme.colors.greyLight):Object(s.a)(.1,e.theme.colors.primary)})),_=u.e.a.withConfig({displayName:"StyledAnchor",componentId:"sc-1sox3oz-0"})(["",""],S),P=Object(u.e)((function(e){e.small,e.secondary;var t=O(e,d);return o.a.createElement(a.Link,t)})).withConfig({displayName:"StyledRouterLink",componentId:"sc-1sox3oz-1"})(["",":hover{text-decoration:none;}"],S),w=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}(i,e);var t,r,n,a=g(i);function i(){return y(this,i),a.apply(this,arguments)}return t=i,(r=[{key:"renderAnchor",value:function(){var e=this.props,t=e.href,r=e.target,n=e.title,a=e.id,i=e.small,c=e.secondary,u=e["data-at"],s=O(e,f),l="_blank"===r?"noopener noreferrer":null;return this.props.routerLink?o.a.createElement(P,p({to:t,id:a,small:i,secondary:c},s),this.props.children):o.a.createElement(_,p({href:t,target:r,rel:l,title:n,small:i,secondary:c,"data-at":u},s),this.props.children)}},{key:"render",value:function(){return this.renderAnchor()}}])&&b(t.prototype,r),n&&b(t,n),i}(n.PureComponent);E(w,"propTypes",{href:c.a.string.isRequired,target:c.a.string,title:c.a.string,id:c.a.string,small:c.a.bool,secondary:c.a.bool,routerLink:c.a.bool,children:c.a.oneOfType([c.a.element.isRequired,c.a.node.isRequired]),"data-at":c.a.string}),E(w,"defaultProps",{id:"",small:!1,secondary:!1,routerLink:!1})},206:function(e,t,r){"use strict";var n=r(536),o=r(490),a=r.n(o),i=r(491),c=r.n(i),u=r(269),s=r.n(u),l=r(270),d=r.n(l),f=r(492),p=r.n(f),y=r(493),b=r.n(y),m=r(271),g=r.n(m),h=r(272),v=r.n(h);function E(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function O(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&void 0!==arguments[1]&&arguments[1],r=o.a.get(e,"errors")||o.a.get(e,"response.data")||o.a.get(e,"response");if(e instanceof Error)return t?{error:o.a.first(r)}:{error:r};var n=e;return(o.a.has(e,"items")||o.a.get(e,"data"))&&(n=o.a.get(e,"items")||o.a.get(e,"data"),t&&(n=o.a.first(n))),{data:n,lastFetch:(new Date).getTime(),paging:o.a.get(e,"paging",{}),summary:o.a.get(e,"summary",{})}},u=function(){return o.a.get(window.ENV_CONFIGURATION,"host","host")},s=function(){return o.a.get(window.ENV_CONFIGURATION,"api.baseUrl","api")};var l=function(e,t){return"".concat(e/t*100,"%")},d="(^/learn)?";function f(e,t){if(!e)return"";var r=t||{year:"numeric",month:"long",day:"numeric"};return new Date(e).toLocaleDateString("en-US",r)}var p=function(e){var t={},r="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})),n=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.location.href,r=e.replace(/[\[\]]/g,"\\$&"),n=new RegExp("[?&]".concat(r,"(=([^&#]*)|&|#|$)")),o=n.exec(t);return o?o[2]?decodeURIComponent(o[2].replace(/\+/g," ")):"":null}("ffuser"),o=localStorage.getItem("ffuser");try{(o||o.key)&&(t=JSON.parse(o))}catch(e){}if(e&&e.userId){var a=t.uniqueId||r;t={uniqueId:a,key:e.userId,secondary:a,anonymous:!1}}else t=n?{key:n,secondary:n,uniqueId:r,anonymous:!1,featureFlagUser:!0}:{key:"anonymous",secondary:r,uniqueId:r,anonymous:!0};try{localStorage.setItem("ffuser",JSON.stringify(t))}catch(e){}return t},y=function(){var e,t=(e=regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("data:application/pdf;base64,".concat(t)).then((function(e){return e.blob()}));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var a=e.apply(t,r);function c(e){i(a,n,o,c,u,"next",e)}function u(e){i(a,n,o,c,u,"throw",e)}c(void 0)}))});return function(e){return t.apply(this,arguments)}}()},232:function(e,t,r){"use strict";var n=r(39),o=r(16),a=r(0),i=r(15),c=r(25),u=r(111),s=r(74),l=Object(i.a)((function(){var e=Object(i.b)(n.a).userId,t=Object(a.useMemo)((function(){return["defaultPaymentContainer",{userId:e}]}),[e]),r=Object(c.c)(t,u.c,{enabled:!1}),l=r.data,d=r.status,f=r.refetch,p=Object(a.useMemo)((function(){return e?d===c.a.Error?o.c.ERROR:d===c.a.Success?o.c.READY:d===c.a.Loading?o.c.LOADING:o.c.INITIAL:o.c.WAITING_FOR_DEPENDENCY}),[d,e]),y=Object(s.a)({containerStatus:p,fetchCallback:f});return{defaultPaymentStatus:p,defaultPaymentData:Object(a.useMemo)((function(){return l?l.getDefaultPaymentInfo:null}),[l]),getDefaultPayment:y}}));t.a=l},235:function(e,t,r){"use strict";r.d(t,"a",(function(){return a})),r.d(t,"b",(function(){return i})),r.d(t,"c",(function(){return c})),r.d(t,"d",(function(){return u}));var n=r(4),o=r(8),a="VERIFY_PERMISSONS_OVER_LEARNERS_PENDING",i="VERIFY_PERMISSONS_OVER_LEARNERS_REJECTED",c="VERIFY_PERMISSONS_OVER_LEARNERS_RESOLVED";function u(e){return function(t){t(Object(o.a)({url:"".concat(n.b,"/permissions/over/users/").concat(e),method:"get",types:{pending:a,rejected:i,resolved:function(e){t({type:c,payload:e})}}}))}}},24:function(e,t,r){"use strict";r.r(t),r.d(t,"GET_CAPTURED_INVOICES_PENDING",(function(){return g})),r.d(t,"GET_CAPTURED_INVOICES_REJECTED",(function(){return h})),r.d(t,"GET_CAPTURED_INVOICES_RESOLVED",(function(){return v})),r.d(t,"GET_PENDING_QUOTES_PENDING",(function(){return E})),r.d(t,"GET_PENDING_QUOTES_REJECTED",(function(){return O})),r.d(t,"GET_PENDING_QUOTES_RESOLVED",(function(){return S})),r.d(t,"EMAIL_PENDING_INVOICE_PENDING",(function(){return _})),r.d(t,"EMAIL_PENDING_INVOICE_REJECTED",(function(){return P})),r.d(t,"EMAIL_PENDING_INVOICE_RESOLVED",(function(){return w})),r.d(t,"GENERATE_UNIVERSAL_PAYMENT_PENDING",(function(){return T})),r.d(t,"GENERATE_UNIVERSAL_PAYMENT_REJECTED",(function(){return j})),r.d(t,"GENERATE_UNIVERSAL_PAYMENT_RESOLVED",(function(){return C})),r.d(t,"GET_DEFAULT_PAYMENT_PENDING",(function(){return I})),r.d(t,"GET_DEFAULT_PAYMENT_REJECTED",(function(){return R})),r.d(t,"GET_DEFAULT_PAYMENT_RESOLVED",(function(){return D})),r.d(t,"GET_ACCOUNT_OWNER_PENDING",(function(){return N})),r.d(t,"GET_ACCOUNT_OWNER_REJECTED",(function(){return A})),r.d(t,"GET_ACCOUNT_OWNER_RESOLVED",(function(){return L})),r.d(t,"POST_CANCELL_SUBSCRIPTION_PENDING",(function(){return x})),r.d(t,"POST_CANCELL_SUBSCRIPTION_REJECTED",(function(){return k})),r.d(t,"POST_CANCELL_SUBSCRIPTION_RESOLVED",(function(){return G})),r.d(t,"POST_UNCANCELL_SUBSCRIPTION_PENDING",(function(){return M})),r.d(t,"POST_UNCANCELL_SUBSCRIPTION_REJECTED",(function(){return U})),r.d(t,"POST_UNCANCELL_SUBSCRIPTION_RESOLVED",(function(){return B})),r.d(t,"GET_CHECK_FOR_BILLINGAGREEMENT_PENDING",(function(){return F})),r.d(t,"GET_CHECK_FOR_BILLINGAGREEMENT_REJECTED",(function(){return V})),r.d(t,"GET_CHECK_FOR_BILLINGAGREEMENT_RESOLVED",(function(){return H})),r.d(t,"GET_PRICING_SCENARIOS_PENDING",(function(){return Y})),r.d(t,"GET_PRICING_SCENARIOS_REJECTED",(function(){return z})),r.d(t,"GET_PRICING_SCENARIOS_RESOLVED",(function(){return q})),r.d(t,"UPDATE_BILLING_CYCLE_PENDING",(function(){return W})),r.d(t,"UPDATE_BILLING_CYCLE_RESOLVED",(function(){return J})),r.d(t,"UPDATE_BILLING_CYCLE_REJECTED",(function(){return Q})),r.d(t,"REACTIVATE_SUBSCRIPTION_PENDING",(function(){return $})),r.d(t,"REACTIVATE_SUBSCRIPTION_RESOLVED",(function(){return K})),r.d(t,"REACTIVATE_SUBSCRIPTION_REJECTED",(function(){return X})),r.d(t,"REMOVE_PAYMENT_PENDING",(function(){return Z})),r.d(t,"REMOVE_PAYMENT_RESOLVED",(function(){return ee})),r.d(t,"REMOVE_PAYMENT_REJECTED",(function(){return te})),r.d(t,"GET_BILLING_PLAN_PENDING",(function(){return re})),r.d(t,"GET_BILLING_PLAN_RESOLVED",(function(){return ne})),r.d(t,"GET_BILLING_PLAN_REJECTED",(function(){return oe})),r.d(t,"postBillingAgreementPdf",(function(){return ae})),r.d(t,"getBillingPlanInfo",(function(){return ie})),r.d(t,"getCheckForBillingAgreement",(function(){return ce})),r.d(t,"getCapturedInvoices",(function(){return ue})),r.d(t,"getDefaultPayment",(function(){return se})),r.d(t,"getAccountOwner",(function(){return le})),r.d(t,"getPendingQuotes",(function(){return de})),r.d(t,"postCancellSubscription",(function(){return fe})),r.d(t,"emailPendingInvoice",(function(){return pe})),r.d(t,"generateUniversalPaymentLink",(function(){return ye})),r.d(t,"postUnCancellSubscription",(function(){return be})),r.d(t,"getPricingScenarios",(function(){return me})),r.d(t,"updateBillingCycle",(function(){return ge})),r.d(t,"reactivateSubscription",(function(){return he})),r.d(t,"removePayment",(function(){return ve}));var n=r(4),o=r(30),a=r.n(o),i=r(8),c=r(111),u=r(17),s=r(465),l=r(278),d=r(129),f=r(23);function p(e,t,r,n,o,a,i){try{var c=e[a](i),u=c.value}catch(e){return void r(e)}c.done?t(u):Promise.resolve(u).then(n,o)}function y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function b(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var s=Object(n.d)(["",""],i.b.StyledContentHighlight),l=n.e.div.withConfig({displayName:"StyledAppLayout",componentId:"ha2cbz-0"})(["display:grid;grid-template-rows:auto minmax(400px,1fr) auto;min-height:100vh;position:relative;overflow-x:auto;",";"],s),d=function(e){var t=e.children,r=u(e,c);return a.a.createElement(l,r,t)},f=n.e.main.withConfig({displayName:"StyledRouteContainerLayout",componentId:"sc-132zy5q-0"})(["width:100%;grid-template-rows:auto minmax(400px,1fr) auto;max-width:",";margin:0 auto;padding:4.8rem 2.4rem 4.8rem 2.4rem;.popout-player{margin:-4.8rem auto -4.8rem auto;}"],(function(e){return e.theme.breakpoints.siteContentMaxWidth})),p=Object(o.forwardRef)((function(e,t){return a.a.createElement(f,{id:"main",ref:t},e.children)}));p.displayName="RouteContainerLayout";var y=p,b=["children"];function m(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var g=n.e.div.withConfig({displayName:"StyledSidebarMenuLayout",componentId:"sc-15u2x1m-0"})([".nullstate-button{border:none;background-color:transparent;margin:0;padding:0;font-weight:600;font-size:1.6rem;text-decoration:none;display:inline-block;color:rgb(27,39,51);font-size:18px;letter-spacing:0.04px;line-height:25px;}display:-ms-grid;display:grid;-ms-grid-columns:30rem 1fr;grid-template-columns:30rem 1fr;-ms-grid-gap:4rem;grid-gap:4rem;@media (max-width:","){-ms-grid-columns:1fr;grid-template-columns:1fr;}overflow:hidden;overflow-x:scroll;"],(function(e){return e.theme.breakpoints.mediaDesktopMin})),h=function(e){var t=e.children,r=m(e,b);return a.a.createElement(g,r,t)};r.d(t,"a",(function(){return d})),r.d(t,"b",(function(){return y})),r.d(t,"c",(function(){return h}))},269:function(e,t,r){e.exports=r.p+"bbc00df90c4a92ac19a63dc5aa428047.svg"},270:function(e,t,r){e.exports=r.p+"905546d7d6a19fac1399f7f1399050c4.svg"},271:function(e,t,r){e.exports=r.p+"4cb8eb55a15d9827f8532923c8532380.svg"},272:function(e,t,r){e.exports=r.p+"4fea82921eb9ecf6db8e0ee887a99103.svg"},277:function(e,t,r){"use strict";r.d(t,"b",(function(){return d})),r.d(t,"a",(function(){return f}));var n=r(501),o=r(401),a=r(57);function i(e,t,r,n,o,a,i){try{var c=e[a](i),u=c.value}catch(e){return void r(e)}c.done?t(u):Promise.resolve(u).then(n,o)}var c=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),u=!1,s=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;localStorage.setItem("canAutoPlay",JSON.stringify(e)),localStorage.setItem("canAutoPlayTtl",t.toString()),localStorage.setItem("canAutoPlayCC",JSON.stringify(r))},l=function(e){var t=!1;try{var r=localStorage.getItem("canAutoPlay"),n=JSON.parse(localStorage.getItem("canAutoPlayCC")),o=n?n+1:1;t=JSON.parse(r);var i=parseInt(localStorage.getItem("canAutoPlayTtl"));return{autoPlayStatus:t,checkCount:o,isCacheValid:r&&i>e-600}}catch(e){Object(a.getLogger)().error(e,{message:"Unable to retrieve auto play status cache"})}return{autoPlayStatus:!1,isCacheValid:!1,checkCount:1}},d=function(){var e,t=(e=regeneratorRuntime.mark((function e(){var t,r,i,c,d,f,p,y=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(y.length>0&&void 0!==y[0]&&!y[0]){e.next=22;break}if(t=(new Date).getTime()/1e3,r=l(t),i=r.autoPlayStatus,c=r.isCacheValid,d=r.checkCount,!c){e.next=7;break}return u=i,e.abrupt("return",u);case 7:return e.prev=7,e.next=10,Object(o.a)(500);case 10:return e.next=12,n.a.video({timeout:5e3});case 12:f=e.sent,p=f.result,u=p,s(p,t,d),e.next=21;break;case 18:e.prev=18,e.t0=e.catch(7),Object(a.getLogger)().error(e.t0,{message:"Error initializing canAutoPlay functions"});case 21:return e.abrupt("return",u);case 22:return u=!0,e.abrupt("return",u);case 24:case"end":return e.stop()}}),e,null,[[7,18]])})),function(){var t=this,r=arguments;return new Promise((function(n,o){var a=e.apply(t,r);function c(e){i(a,n,o,c,u,"next",e)}function u(e){i(a,n,o,c,u,"throw",e)}c(void 0)}))});return function(){return t.apply(this,arguments)}}(),f=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return e&&(c||u)}},278:function(e,t,r){"use strict";r.d(t,"a",(function(){return l})),r.d(t,"b",(function(){return d}));var n=r(7),o=r(4),a=r(17);function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){c=!0,a=e},f:function(){try{i||null==r.return||r.return()}finally{if(c)throw a}}}}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&void 0!==arguments[1]?arguments[1]:function(){},r=arguments.length>2?arguments[2]:void 0;return function(n){var o=Date.now();n(Object(f.a)({url:"".concat(a.G,"/playlist/").concat(e),params:{},method:"get",types:{pending:w,rejected:function(e){t(),n({type:j,error:e})},resolved:function(e){var t=Date.now()-o;window.dataLayer&&window.dataLayer.push({event:"learner.playlist.timing.singlePlaylist",label:"Playlists",value:t}),e.relationship=r,n({type:T,payload:e})}}}))}},X=function(e){return function(t){t({type:q,payload:e})}},Z=function(e){return function(t){t({type:W,payload:e})}},ee=function(e,t,r){return function(n,o){var i=o().managePlaylists.playlists.activePlaylist.id;n(Object(f.a)({url:"".concat(a.G,"/playlist/").concat(i),params:{},method:"delete",data:{},types:{pending:function(){n({type:S,payload:e})},rejected:function(e){n({type:P,error:e}),r()},resolved:function(){n({type:_,payload:e}),t()}}}))}},te=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";return function(o){o({type:M}),c.a.mutate({mutation:u.a,context:{headers:{authorization:"Bearer ".concat(e)}},variables:{userId:t,contentNrn:r,itemId:n}}).then((function(e){if(!0===e.data.deleteBookshelfItem)return o({type:G});o({type:k})})).catch((function(e){o({type:k,err:e})}))}},re=function(e){var t=e.id,r=e.courseId,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};return function(e,i){1===o()(i(),"managePlaylists.playlists.activePlaylist.courses",[]).find((function(e){return e.id===r})).items.length&&(t=void 0);var c=i().managePlaylists.playlists.activePlaylist.id,u="nrn:collection:".concat(r),s={ref_id:u};e(Object(f.a)({url:"".concat(a.G,"/playlist/").concat(c,"/item/").concat(t||u),params:{},data:s,method:"delete",types:{pending:function(){e({type:D,payload:{itemId:t,courseId:r}})},rejected:function(n){e({type:t?A:L,error:n,payload:{itemId:t,courseId:r}})},resolved:function(){n(),e({type:t?N:x,payload:t?{itemId:t,courseId:r}:r})}}}))}};function ne(e,t){return function(r){r(Object(f.a)({url:"".concat(a.G,"/playlist/").concat(e,"/assign"),method:"post",data:t,types:{pending:d.a,rejected:d.b,resolved:function(n){r({payload:n,type:d.c}),r({type:d.g,payload:{groups:t.roles,playlist:e}})}}}))}}function oe(e,t){return function(r){r(Object(f.a)({url:"".concat(a.C,"/playlist/").concat(e,"/clone"),method:"post",data:{name:t},types:{pending:d.k,rejected:d.l,resolved:function(e){i.a.push("".concat("/learn/it-training-videos/playlist/").concat(e.id)),r({type:d.m,payload:m(m({},e),{},{playlist_name:t})})}}}))}}function ae(e,t,r){return function(n){n(Object(f.a)({url:"".concat(a.G,"/playlist/").concat(e,"/share/member"),method:"post",data:{member:"nrn:member:".concat(r),sendMail:!1,name:t,verify_clone:!1},types:{pending:d.k,rejected:d.l,resolved:function(e){i.a.push("".concat("/learn/it-training-videos/playlist/").concat(e.id)),n({type:d.m,payload:m(m({},e),{},{playlist_name:t})})}}}))}}function ie(e,t){return function(r){r(Object(f.a)({url:"".concat(a.G,"/playlist/").concat(e,"/assign"),method:"post",data:t,types:{pending:d.d,rejected:d.e,resolved:function(n){r({payload:n,type:d.f}),r({type:d.h,payload:{learners:t.roles,playlist:e}})}}}))}}var ce=function(){return function(e){return e({type:V})}};function ue(e,t,r,n){return function(o){o({type:F}),c.a.mutate({mutation:s.a,context:{headers:{authorization:"Bearer ".concat(e)}},variables:{userId:t,contentNrns:r,assigneeNrns:n}}).then((function(e){var r=e.data.assignBookshelfItems;if(!r.length)return o({type:U});var n,a=p(r);try{for(a.s();!(n=a.n()).done;){var i=n.value,c=i.created_by,u=i.assigned_by,s=i.relationship;if(c!==t&&"assigned"===s.type){var l="Course has already been assigned by ".concat(u,".");return o({type:U,payload:l})}if("assigned"!==s.type)return o({type:U})}}catch(e){a.e(e)}finally{a.f()}return o({type:B})})).catch((function(e){o({type:U,err:e})}))}}},280:function(e,t,r){e.exports=r.p+"e4f3e1ffa7f38b53f44af45df96e27e9.svg"},285:function(e,t,r){"use strict";r.d(t,"b",(function(){return o})),r.d(t,"a",(function(){return a}));var n=r(7),o=function(e,t,r){for(var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:50,a=[],i={},c=0;c3&&void 0!==arguments[3]?arguments[3]:50,a=[],i=[],c=0;ce.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,n=e.filter((function(e){return V.includes(e.action)&&e.resource.includes("nrn:account:group:")})).map((function(e){return e.resource.replace("nrn:account:group:","")}));return t.filter((function(e){return n.includes(e.group_id)})).map((function(e){return{group_id:e.group_id,group_name:e.name,accountId:r}}))}(t,a.data.items,e),y=o.a.sortBy(p,[function(e){return e.group_name.toLowerCase()}]);r(re(y))}u||!c||F.get("report_filter_selectedGroups")||r(ae(c))})).catch((function(){r(ne())}))}};function pe(e,t){var r=e.roles.find((function(t){return V.includes(t.action)&&t.resource.includes("nrn:account:".concat(e.account_id))})),n=t===e.user_id,a=e.roles.filter((function(e){return V.includes(e.action)&&e.resource.includes("nrn:account:group:")})),i=!1,c=!1;return(r||n)&&(c=!0,i=!0),o.a.isEmpty(a)||(c=!0),{isAccountAdminOrOwner:i,showAdminReports:c}}var ye=function(e){return{type:A,payload:e}},be=function(){return{type:M}},me=function(){F.remove("report_filter_from",{path:"/"}),F.remove("report_filter_to",{path:"/"}),F.remove("report_filter_label",{path:"/"}),F.remove("report_filter_option",{path:"/"}),F.remove("report_filter_selectedGroups",{path:"/"}),F.remove("report_filter_selectedAllGroups",{path:"/"}),F.remove("report_filter_refined_text",{path:"/"}),F.remove("report_filter_selectedAllLearners",{path:"/"}),F.remove("report_filter_includeNonViewers",{path:"/"})},ge=function(e){return{type:U,payload:e}},he=function(e){return{type:B,payload:e}},ve=function(e){return function(){var t=m(regeneratorRuntime.mark((function t(r,n){var a,i,c,u,l,d,f,y;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:a=o.a.get(n(),"yourAccount.reporting.filtersReport.reportTypeData"),i=o.a.get(n(),"yourAccount.reporting.filtersReport.selectedGroupsList"),c=o.a.get(n(),"yourAccount.reporting.filtersReport.hasUrlParams"),u=s.d.level,l=u.summary,d=u.details,f=u.individual,a.type&&e.type!==a.type&&(me(),r(be()),r($()),r(K()),r(ge(!1))),!a.type||e.type!==a.type||e.level!==f&&a.level!==f||(F.remove("report_filter_refined_text",{path:"/"}),r($()),r(K())),!a.type||e.type!==a.type||e.level!==l&&a.level!==d&&e.level!==d&&a.level!==l||(y=o.a.get(n(),"yourAccount.reporting.filtersReport.refineTextBox.optionSelected"))&&"email"!==y.name&&"name"!==y.name&&(F.remove("report_filter_refined_text",{path:"/"}),r($())),e.level!==l&&a.level!==d&&e.level!==d&&a.level!==l||!o.a.isEmpty(i)||r(be()),c||r(W()),r(ye(p({},e)));case 10:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}()},Ee=function(e){return{type:L,payload:e}}},316:function(e,t,r){"use strict";var n,o,a,i;r.d(t,"a",(function(){return n})),r.d(t,"d",(function(){return o})),r.d(t,"c",(function(){return a})),r.d(t,"h",(function(){return i})),r.d(t,"b",(function(){return c})),r.d(t,"e",(function(){return u})),r.d(t,"g",(function(){return s})),r.d(t,"f",(function(){return l})),r.d(t,"i",(function(){return f})),function(e){e.SANDBOX="SANDBOX",e.LIVE="LIVE"}(n||(n={})),function(e){e.Annually="ANNUALLY",e.Monthly="MONTHLY"}(o||(o={})),function(e){e.CREATE_CUSTOMER="create",e.UPDATE_CUSTOMER="update"}(a||(a={})),function(e){e.UPDATE_TOKEN="authorization,update_payment_token",e.CREATE_PAYMENT_TOKEN="authorization,create_payment_token"}(i||(i={}));var c=["CU","IR","KP","SY","MX"],u={bill_to_address_line1:60,bill_to_address_line2:60,bill_to_address_state:60,bill_to_address_city:50,bill_to_address_postal_code:10,bill_to_forename:60,bill_to_surname:60,bill_to_phone:15,bill_to_email:255,bill_to_company_name:60,card_number:16,card_name:100,card_cvn:4},s=["access_key","amount","currency","locale","profile_id","reference_number","signed_date_time","signed_field_names","transaction_type","transaction_uuid","bill_to_forename","bill_to_surname","bill_to_email","bill_to_company_name","bill_to_address_line1","bill_to_address_line2","bill_to_address_city","bill_to_address_postal_code","bill_to_address_state","bill_to_address_country","card_number","card_expiry_date","card_type","card_name","card_cvn","line_item_count","item_0_code","item_0_sku","item_0_name","item_0_quantity","item_0_unit_price","payment_method","allow_payment_token_update","merchant_defined_data1","merchant_defined_data2","merchant_defined_data3","merchant_defined_data4","merchant_defined_data5","merchant_defined_data6","merchant_defined_data10","merchant_defined_data11","payment_token"],l=[{value:"0",text:"Month..."},{value:"01-January",text:"01-January"},{value:"02-February",text:"02-February"},{value:"03-March",text:"03-March"},{value:"04-April",text:"04-April"},{value:"05-May",text:"05-May"},{value:"06-June",text:"06-June"},{value:"07-July",text:"07-July"},{value:"08-August",text:"08-August"},{value:"09-September",text:"09-September"},{value:"10-October",text:"10-October"},{value:"11-November",text:"11-November"},{value:"12-December",text:"12-December"}],d=(new Date).getFullYear(),f=Array.from({length:21},(function(e,t){return d+t}))},32:function(e,t,r){"use strict";var n=r(0),o=r.n(n),a=r(33),i=r(15),c=r(135),u=r.n(c),s=r(39),l=r(97),d=new u.a,f=function(){var e=(new Date).getTime(),t=parseInt(d.get("lrt"));if(!t||e>t+5e3){var r=new Date;return r.setDate(r.getDate()+1),d.set("lrt",e,{expires:r}),window.location.reload(!0),!0}return!1},p=r(279);function y(){return(y=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return function(t){t(Object(R.a)({url:"".concat(I.get_playlist,"?cacheId=").concat(Date.now()),method:"get",data:e,types:{pending:D,rejected:A,resolved:N}}))}}function Q(){return{type:H}}function $(e){return{type:V,activeView:e}}function K(e){return{type:z,itemsToAdd:e}}function X(e){return{type:q,playlistsToDisable:e}}function Z(e){return{type:Y,newName:e}}function ee(e){return{type:W,noticeParams:e}}function te(e,t){return function(r){r(Object(R.a)({url:I.add_playlist,method:"post",data:e,types:{pending:L,rejected:x,resolved:function(n){n.name=e.name,r(re(n,t))}}}))}}function re(e,t){return e.nrnCollection=t.items[0],function(r){r(Object(R.a)({url:"".concat(I.add_item_on_playlist,"/").concat(e.id,"/item"),method:"post",data:t,types:{pending:k,rejected:M,resolved:function(t){r({type:G,playlistData:e})}}}))}}function ne(e,t){return e.nrnCollection=t.items[0],function(r){r(Object(R.a)({url:"".concat(I.add_item_on_playlist,"/").concat(e.id,"/item"),method:"post",data:t,types:{pending:U,rejected:F,resolved:function(t){r({type:B,playlistData:e})}}}))}}r(889);function oe(e){return(oe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ae(e){return function(e){if(Array.isArray(e))return ie(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return ie(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ie(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ie(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r25?i.a.createElement(S.c,{key:r,disabled:!h()(a),onOptionClick:function(){return t.onPlaylistClicked(e)}},i.a.createElement("span",{"data-tooltip":o},"".concat(o.slice(0,21)," ..."))):i.a.createElement(S.c,{key:r,disabled:!h()(a),onOptionClick:function(){return t.onPlaylistClicked(e)}},o)}));return i.a.createElement(S.a,{vertical:!0},[o].concat(ae(a)))})),pe(de(t),"renderAddPLaylistView",(function(){var e=t.props.playlist,r=e.added,n=e.nameOfNewPlaylist,o=t.props.actions,c=o.resetPlaylistViews,u=o.setNewNameOfPlaylist,s="pending"===r?"ADDING...":"ADD PLAYLIST";return i.a.createElement(a.Fragment,null,i.a.createElement(_.a,{bottom:2},i.a.createElement("input",{maxLength:"40",autoFocus:!0,type:"text",value:n,onChange:function(e){return u(e.target.value)}})),i.a.createElement(O.a,{disabled:"pending"===r||n.length<=0,onClick:t.validateNameOfPlaylist},s),i.a.createElement(O.a,{secondary:!0,disabled:"pending"===r,onClick:c},"Cancel"))})),t.state={modalPlaylist:{visible:!1}},t}return t=c,n=[{key:"getDerivedStateFromProps",value:function(e,t){var r=e.actions.resetPlaylistViews;return!t.modalPlaylist.visible&&e.modalPlaylist.visible&&r(),e}}],(r=[{key:"componentDidMount",value:function(){this.props.actions.loadPlaylist()}},{key:"renderAddToPlaylistLink",value:function(){var e=this.props.actions.setActiveView;return i.a.createElement(_.a,{bottom:2,centered:!0,key:"default"},i.a.createElement(O.a,{displayAsLink:!0,className:"play-list-title",onClick:function(){return e("createPlaylistView")}},"Create new custom playlist..."))}},{key:"render",value:function(){var e=this.props,t=e.modalPlaylist.visible,r=e.playlist,n=r.activeView,o=r.showNotice,a=r.messageNotice,c=r.typeNotice,u=e.modalActions.closePlaylistModal;return i.a.createElement(v.c,{title:"Choose your playlist",width:40,height:55,unit:"rem",visible:t,onClose:u,scrollable:!0},"playlists"===n?this.renderPlaylistsView():this.renderAddPLaylistView(),i.a.createElement("br",null),this.renderNotice({showNotice:o,messageNotice:a,typeNotice:c}))}}])&&ce(t.prototype,r),n&&ce(t,n),c}(a.Component);var be=Object(c.connect)((function(e,t){var r=t.stateOrigin;return r?{playlist:l()(e,"".concat(r,".playlist"),[]),modalPlaylist:l()(e,"".concat(r,".modalPlaylist"),[])}:{playlist:e.playlist,modalPlaylist:e.modalPlaylist}}),(function(e){return{actions:Object(u.bindActionCreators)(o,e),modalActions:Object(u.bindActionCreators)(n,e)}}))(ye),me=r(3),ge=r.n(me);function he(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ve(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:Me,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload,o=t.activeView,a=t.newName,i=t.itemsToAdd,c=t.playlistsToDisable,u=t.noticeParams,s=t.playlistData;switch(r){case Oe:return ve(ve({},e),{},{status:"pending"});case _e:var l=ge.a.filter(n.items,(function(e){return e.is_admin}));return ve(ve({},e),{},{status:"loaded",items:l});case Se:var d=n.response.data.error;return ve(ve({},e),{},{status:"failed",error:d});case Pe:return ve(ve({},e),{},{added:"pending",created:"pending",status:"pending"});case we:var f=n.response.data.error;return ve(ve({},e),{},{status:"failed",created:"failed",error:f});case Te:return ve(ve({},e),{},{status:"pending",added:"pending"});case Ce:s.is_admin=!0;var p=ge.a.assign([],e.items);return p.push(s),ve(ve({},e),{},{status:"loaded",added:"success",created:"success",items:p,newPlaylist:s,activeView:"playlists",nameOfNewPlaylist:"",showNotice:!0,messageNotice:"The item was added on ".concat(s.name," successfully"),typeNotice:"success"});case je:var y=n.response.data.error;return ve(ve({},e),{},{status:"failed",added:"failed",error:y});case Ie:return ve(ve({},e),{},{status:"pending",added:"pending"});case De:return ve(ve({},e),{},{status:"loaded",added:"loaded",created:"success",newPlaylist:s,activeView:"playlists",nameOfNewPlaylist:"",showNotice:!0,messageNotice:"The item was added on ".concat(s.name," successfully"),typeNotice:"success"});case Re:var b=n.response.data.error;return ve(ve({},e),{},{status:"failed",added:"failed",error:b,showNotice:!0,messageNotice:b,typeNotice:"error"});case Ne:return ve(ve({},e),{},{activeView:"playlists",nameOfNewPlaylist:"",showNotice:!1,messageNotice:"",typeNotice:""});case Ae:return ve(ve({},e),{},{activeView:o});case Le:return ve(ve({},e),{},{nameOfNewPlaylist:a});case ke:return ve(ve({},e),{},{itemsToAdd:i});case Ge:return ve(ve({},e),{},{playlistsToDisable:c});case xe:return ve(ve({},e),u);default:return ve({},e)}}function Be(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Fe(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:ze,t=arguments.length>1?arguments[1]:void 0,r=t.type;switch(r){case He:return{visible:!0};case Ye:return{visible:!1};default:return Fe({},e)}}r.d(t,"c",(function(){return We})),r.d(t,"e",(function(){return Je})),r.d(t,"d",(function(){return Ue})),r.d(t,"b",(function(){return qe}));t.a=be;var We=T,Je=K},363:function(e,t,r){"use strict";r.d(t,"b",(function(){return c})),r.d(t,"a",(function(){return u}));var n,o,a=r(95);function i(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var c=Object(a.b)(n||(n=i(["\n mutation updateUserSkillRating($nrn: String!, $vote: Int!) {\n updateResourceRating(contentNrn: $nrn, value: $vote) {\n contentNrn\n }\n }\n"]))),u=Object(a.b)(o||(o=i(["\n mutation($nrn: String!) {\n deleteResourceRating(contentNrn: $nrn) {\n contentNrn\n }\n }\n"])))},372:function(e,t,r){e.exports=r.p+"8826584ee03b5624ae04146bb5217a24.svg"},375:function(e,t,r){"use strict";var n=r(0),o=r.n(n),a=r(5),i=r.n(a),c=r(2),u=r(225),s=r(87);function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e,t){for(var r=0;r0&&void 0!==s[0]&&s[0],o=s.length>1&&void 0!==s[1]&&s[1],!(void 0===e.activePlayer.playerId||null===e.activePlayer.playerId)||1!==e.players.length){t.next=6;break}return t.next=6,e.setActivePlayer(e.players[0].playerId);case 6:return a=e.activePlayer,c=a.videoId,u=a.context,r&&e.setManifestFetchTimedOut(!1),null!==e.licenseRetryTimeout&&e.clearLicenseRetryTimeout(),e.setLicenseStatus("CREATE","LOADING"),t.abrupt("return",Object(i.axios)({method:"POST",url:"".concat(d.w,"/create"),data:{context:u,video_id:c,manifest:r}}).then((function(t){var n=t.data,a=n.license,i=n.media,c=n.start_position,s=n.video_nrn;e.setLicense(a),e.setLicenseStatus("CREATE","SUCCESS"),e.setLicenseStatus("HEARTBEAT","NOT_STARTED"),r&&(e.setManifest({media:i,start_position:c,context:u,video_nrn:s}),e.start()),o&&e.play(),e.missedHeartbeats.length&&e.sendMissedHeartbeats(),e.activePlayer.isTrackingProgress||e.setTrackingProgress(!0)})).catch((function(t){e.setLicenseStatus("CREATE","FAILURE");var o=Object(n.get)(t,"response.status"),a="PLAYING"===e.activePlayer.playerState;switch(o){case 403:a&&(e.setTrackingProgress(!1),e.startLicenseRetryTimeout());break;case 409:e.takeoverLicense(r)}e.logErrors(t,"create_license",{video:e.activePlayer.videoNrn,statusCode:o})})));case 11:case"end":return t.stop()}}),t)})))),g(this,"start",(function(){e.sendEvent("start"),e.play(!0)})),g(this,"play",(function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];e.activePlayer.licenseRevoked&&e.setLicenseRevoked(!1),!t&&Object(n.isEmpty)(e.license)&&(e.licenseRetryWaitTimeIndex=0,e.createLicense()),e.setPlayerState("PLAYING"),e.activePlayer.autoStartFailed=!1,e.sendEvent("play")})),g(this,"pause",(function(){e.setPlayerState("PAUSED"),e.sendEvent("pause")})),g(this,"stop",(function(){e.setPlayerState("NOT_STARTED"),e.setHlsUrl(""),e.sendEvent("stop")})),g(this,"handlePlayerError",(function(t,r){e.logError(t,r),"hlsError"===t&&r&&"manifestLoadTimeOut"===r.details&&(e.stop(),e.setManifestFetchTimedOut(!0)),"NotAllowedError"===t.name&&e.setAutoStartFailed()})),g(this,"toggleShowCaptions",(function(){e.localStoragePreferences.showCaptions=!e.localStoragePreferences.showCaptions,e.sendEvent("toggleShowCaptions"),e.sendGTMEvent("showCaptions",e.localStoragePreferences.showCaptions),Object(l.c)("showCaptions",e.localStoragePreferences.showCaptions),"undefined"!=typeof window&&e.activePlayer.isPopout&&(window.showCaptions=e.localStoragePreferences.showCaptions)})),g(this,"setCaptions",function(){var t=b(regeneratorRuntime.mark((function t(r){var o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!Object(n.isEmpty)(r)){t.next=4;break}return e.activePlayer.captions=[],e.sendEvent("setCaptions"),t.abrupt("return");case 4:return t.prev=4,t.next=7,fetch(r);case 7:return o=t.sent,t.next=10,o.json();case 10:e.activePlayer.captions=t.sent,e.sendEvent("setCaptions"),t.next=17;break;case 14:t.prev=14,t.t0=t.catch(4),console.log("setCaptions error:",t.t0);case 17:case"end":return t.stop()}}),t,null,[[4,14]])})));return function(e){return t.apply(this,arguments)}}()),g(this,"toggleQuizQuestions",(function(){e.localStoragePreferences.showQuizQuestions=!e.localStoragePreferences.showQuizQuestions,e.sendEvent("toggleQuizQuestions"),Object(l.c)("showQuizQuestions",e.localStoragePreferences.showQuizQuestions),e.sendGTMEvent("showQuizQuestions",e.localStoragePreferences.showQuizQuestions),"undefined"!=typeof window&&e.activePlayer.isPopout&&(window.showQuizQuestions=e.localStoragePreferences.showQuizQuestions)})),g(this,"toggleAutoPlay",(function(){e.localStoragePreferences.autoPlayEnabled=!e.localStoragePreferences.autoPlayEnabled,e.sendEvent("toggleAutoPlay"),Object(l.c)("autoPlayEnabled",e.localStoragePreferences.autoPlayEnabled),e.sendGTMEvent("autoPlayEnabled",e.localStoragePreferences.autoPlayEnabled),"undefined"!=typeof window&&e.activePlayer.isPopout&&(window.autoPlayEnabled=e.localStoragePreferences.autoPlayEnabled)})),g(this,"toggleDebugLogs",(function(){e.localStoragePreferences.showDebugLogs=!e.localStoragePreferences.showDebugLogs,e.sendEvent("toggleDebugLogs"),Object(l.c)("showDebugLogs",e.localStoragePreferences.showDebugLogs),e.sendGTMEvent("showDebugLogs",e.localStoragePreferences.showDebugLogs),e.activePlayer.isPopout&&(window.showDebugLogs=e.localStoragePreferences.showDebugLogs)})),g(this,"setVolume",(function(t){e.localStoragePreferences.volume=t,e.sendEvent("volumeChange"),Object(l.c)("volume",t),"undefined"!=typeof window&&e.activePlayer.isPopout&&(window.volume=t)})),g(this,"answerQuizQuestion",(function(){"PLAYING"===e.activePlayer.playerState&&e.pause(),e.activePlayer.isFullScreen&&e.setFullScreen(!1);var t={questionIndex:e.activePlayer.currentQuizQuestion.order-1,questionId:e.activePlayer.currentQuizQuestion.question_id},r=new CustomEvent("quiz-answer-event",{detail:t});"undefined"!=typeof window&&window.dispatchEvent(r)})),g(this,"seekTo",(function(t){e.activePlayer.casting&&e.seekChromecastMedia(t),e.activePlayer.progress&&(e.activePlayer.progress.playedSeconds=t),e.lastSeekedPosition=Math.floor(t),e.sendEvent("seekTo")})),g(this,"toggleFullScreen",(function(){e.activePlayer.isFullScreen=!e.activePlayer.isFullScreen,e.sendEvent("toggleFullScreen"),e.sendGTMEvent("isFullScreen",e.activePlayer.isFullScreen)})),g(this,"setFullScreen",(function(t){e.activePlayer.isFullScreen=t,e.sendEvent("toggleFullScreen")})),h)return h;this.eventBus=new u.a,this.players=[],this.activePlayer={progress:{}},this.missedHeartbeats=[],this.lastSeekedPosition=0,this.lastHeartbeatType=null,this.lastHeartbeatPosition=null,this.arrivalHeartbeatTimeout=null,this.videoSecondsHistory=[],this.license=null,this.licenseStatuses=s.a,this.licenseRetryTimeout=null,this.licenseRetryWaitTimesMs=[5e3,1e4,15e3,3e4],this.licenseRetryWaitTimeIndex=0,this.userData=s.c,this.localStoragePreferences=s.b,h=this}var r,o,f,y;return r=t,o=[{key:"setApolloClient",value:function(e){this.client=e}},{key:"registerPlayer",value:function(e){this.players.push(e)}},{key:"setActivePlayer",value:function(e){var t=this,r=void 0===this.activePlayer.playerId||null===this.activePlayer.playerId,n=this.activePlayer.playerId!==e;return new Promise(function(){var o=b(regeneratorRuntime.mark((function o(a,i){return regeneratorRuntime.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(o.prev=0,r||!n){o.next=4;break}return o.next=4,t.shutdownActivePlayer();case 4:n&&(t.activePlayer=t.getPlayer(e)),a(t.activePlayer),o.next=11;break;case 8:o.prev=8,o.t0=o.catch(0),i(o.t0);case 11:case"end":return o.stop()}}),o,null,[[0,8]])})));return function(e,t){return o.apply(this,arguments)}}())}},{key:"getActivePlayer",value:function(){return this.activePlayer}},{key:"getPlayer",value:function(e){return this.players.find((function(t){return t.playerId===e}))}},{key:"updatePlayer",value:function(e,t){var r=this.getPlayer(e),n=this.players.findIndex((function(t){return t.playerId===e})),o=p(p({},r),t);this.players[n]=o,e===this.activePlayer.playerId&&(this.activePlayer=o),this.sendEvent("updatePlayer",e)}},{key:"getLicense",value:function(){return this.license}},{key:"shutdownActivePlayer",value:function(){return this.resetActivePlayer(),this.resetLicenseStatuses(),!Object(n.isEmpty)(this.license)&&this.releaseLicense()}},{key:"resetActivePlayer",value:function(){"NOT_STARTED"!==this.activePlayer.playerState&&this.stop(),this.setHlsUrl(""),this.resetProgress(),this.setLicenseRevoked(!1),this.clearMissedHeartbeats()}},{key:"resetLicenseStatuses",value:function(){this.licenseStatuses=s.a}},{key:"putPlayerOnWindow",value:function(e){window.cbtplayer={state:e.playerState,start:this.start,play:this.play,pause:this.pause,stop:this.stop,seekTo:this.seekTo,createLicense:this.createLicense}}},{key:"setPlayerState",value:function(e){this.activePlayer.playerState=e,this.setWindowPlayerState(e)}},{key:"setGroupId",value:function(e){this.userData.groupId=e}},{key:"setMemberId",value:function(e){this.userData.memberId=e}},{key:"startLicenseRetryTimeout",value:function(t){var r=this,n=this.licenseRetryWaitTimesMs,o=this.licenseRetryWaitTimeIndex,a=t||n[o];this.licenseRetryTimeout=e.setTimeout((function(){r.createLicense()}),a)}},{key:"clearLicenseRetryTimeout",value:function(){clearTimeout(this.licenseRetryTimeout),this.licenseRetryTimeout=null;var e=this.licenseRetryWaitTimesMs;this.licenseRetryWaitTimeIndex15&&this.videoSecondsHistory.length>1){for(var r=this.videoSecondsHistory[0],o=this.videoSecondsHistory[this.videoSecondsHistory.length-1],a=r;a=15&&this.resetSecondsHistory();this.videoSecondsHistory.push(t)}},{key:"sendOneOffHeartbeat",value:function(t){var r=this;clearTimeout(this.arrivalHeartbeatTimeout);var o=Object(n.get)(this.activePlayer,"progress.playedSeconds",0),a=Math.floor(o);if(this.setLocalStorageProgress(a),a<1&&(a=1),"arrival"===t&&Object(n.isEmpty)(this.missedHeartbeats))this.arrivalHeartbeatTimeout=e.setTimeout((function(){return r.sendHeartbeat(a,t)}),1e3);else{if("departure"!==t)return this.sendHeartbeat(a,t);if("departure"!==this.lastHeartbeatType)return this.sendHeartbeat(a,t)}}},{key:"queueMissedHeartbeat",value:function(e){if(!this.missedHeartbeats.map((function(e){return e.position})).includes(e)){var t={position:e,videoNrn:this.activePlayer.videoNrn,context:this.activePlayer.context};this.missedHeartbeats.push(t)}}},{key:"sendMissedHeartbeats",value:(y=b(regeneratorRuntime.mark((function e(){var t,r,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=this.missedHeartbeats.length,r=0;case 2:if(!(r0&&void 0!==arguments[0]&&arguments[0],r=this.activePlayer.videoNrn,o=Object(n.get)(this.activePlayer,"progress.playedSeconds",0),a=r.replace("nrn:video:",""),c=Math.ceil(t?o+1:o),u=this.license;return this.setLicenseStatus("RELEASE","LOADING"),this.setLicenseStatus("CREATE","NOT_STARTED"),Object(i.axios)({method:"POST",url:"".concat(d.w,"/release"),data:{video_id:a,license:u,position:c}}).then((function(){e.setLicenseStatus("RELEASE","SUCCESS"),e.setLicenseStatus("CREATE","NOT_STARTED"),e.setLicense("")})).catch((function(t){e.setLicenseStatus("RELEASE","FAILURE"),e.setLicenseStatus("CREATE","NOT_STARTED"),e.logErrors(t,"release_license",{video:e.activePlayer.videoNrn})}))}},{key:"releaseLicenseOnUnload",value:function(){var e,t=this.activePlayer.videoNrn,r=Object(n.get)(this.activePlayer,"progress.playedSeconds",0);t&&(e=t.replace("nrn:video:",""));var o=this.license;try{Object(i.axios)({method:"POST",url:"".concat(d.w,"/release"),data:{video_id:e,license:o,position:Math.ceil(r)}})}catch(e){this.setLicenseStatus("RELEASE","FAILURE"),this.setLicenseStatus("CREATE","NOT_STARTED"),this.logErrors(e,"release_license",{video:t})}this.setLicense("")}},{key:"takeoverLicense",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=this.userData,o=r.memberId,a=r.groupId;return this.setLicenseStatus("TAKEOVER","LOADING"),Object(i.axios)({method:"POST",url:"".concat(d.w,"/takeover"),data:{license:"".concat(a,".").concat(o)}}).then((function(){e.setLicenseStatus("TAKEOVER","SUCCESS"),e.createLicense(t,!0)})).catch((function(r){switch(e.setLicenseStatus("TAKEOVER","FAILURE"),Object(n.get)(r,"response.status")){case 404:e.createLicense(t,!0);break;case 429:var o="FAILED"===e.licenseStatuses.licenseCreateStatus;e.logError("429",{source:"License Service",details:"License takeover rate limited",licenseCreateFailed:o}),setTimeout((function(){o&&e.createLicense(t,!0)}),2e3)}}))}},{key:"initSeekPosition",value:function(e){this.lastSeekedPosition=e}},{key:"setLicenseStatus",value:function(e,t){switch(e){case"CREATE":this.licenseStatuses.licenseCreateStatus=t;break;case"TAKEOVER":this.licenseStatuses.licenseTakeoverStatus=t;break;case"RELEASE":this.licenseStatuses.licenseReleaseStatus=t;break;case"HEARTBEAT":this.licenseStatuses.licenseHeartbeatStatus=t}this.sendEvent("setLicenseStatus")}},{key:"setTrackingProgress",value:function(e){this.activePlayer.isTrackingProgress=e,this.sendEvent("setTrackingProgress")}},{key:"setLicenseRevoked",value:function(e){this.activePlayer.licenseRevoked=e,this.sendEvent("setLicenseRevoked")}},{key:"setManifestFetchTimedOut",value:function(e){this.activePlayer.manifestFetchTimedOut=e,this.sendEvent("setManifestFetchTimedOut")}},{key:"dismissBanner",value:function(e){this.activePlayer.dismissedBanners.push(e),this.sendEvent("dismissBanner")}},{key:"setHasPopout",value:function(e){this.activePlayer.hasPopout=e,this.sendEvent("hasPopout")}},{key:"setQuizQuestions",value:function(e){this.activePlayer.quizQuestions=e,this.sendEvent("setQuizQuestions")}},{key:"setHlsUrl",value:function(e){this.activePlayer.hlsUrl=e,this.sendEvent("setHlsUrl")}},{key:"setLicense",value:function(e){e!==this.license&&(this.license=e,this.sendEvent("setLicense"))}},{key:"setManifest",value:function(e){this.activePlayer.manifest=e,this.sendEvent("setManifest");var t=Object(n.get)(e,"media.x10.hlscf",""),r=Object(n.get)(e,"media.x10.hls5",""),o=Object(n.get)(e,"media.x10.caption.json",""),a="";a=Object(n.isEmpty)(t)?r:t;var i=e.context,c=void 0===i?"":i,u=e.video_nrn,s=void 0===u?"":u,l=e.start_position,d=void 0===l?0:l;this.setHlsUrl(a),this.setCaptions(o),this.setVideoNrn(s),this.setStartPosition(d),this.setContext(c)}},{key:"setContext",value:function(e){this.activePlayer.context=e,this.sendEvent("setContext")}},{key:"setVideoNrn",value:function(e){this.activePlayer.videoNrn=e,this.sendEvent("setVideoNrn")}},{key:"setVideoId",value:function(e){this.activePlayer.videoId=e,this.sendEvent("setVideoId")}},{key:"setStartPosition",value:function(e){this.activePlayer.startPosition=e,this.sendEvent("setStartPosition")}},{key:"setAutoStartFailed",value:function(){this.pause(),this.activePlayer.autoStartFailed=!0,this.sendEvent("setAutoStartFailed")}},{key:"logError",value:function(e,t){var r=this.activePlayer.hlsUrl,n="unknown";r.includes("akamai")?n="ak":r.match(/\/videos.*nuggets.com\//g)&&(n="cf"),"hlsError"===e?this.logErrors("hls_error: ".concat(t.type),"hls",{hlsDetails:t.details,hlsReason:t.reason,hlsType:t.type,hlsFatal:t.fatal,hlsErrorLevel:t.level,hlsBufferLen:t.buffer,videoNrn:this.activePlayer.videoNrn,memberId:this.userData.memberId,hlsUrl:r,host:n}):this.logErrors(e,"player",t)}},{key:"logErrors",value:function(e,t,r){"string"!=typeof e&&(e=e.toString()),r||(r={}),r.errorType=t,r.errorId=a()(),Object(c.getLogger)().error(e,r)}},{key:"sendGTMEvent",value:function(e,t){var r;if("speedChange"===e||"qualityChange"===e)r="".concat(e).concat(t);else{var n=t?"On":"Off";r="".concat(e).concat(n)}this.activePlayer.sendClickEvent(r)}},{key:"sendTimeToPlayToGTM",value:function(e){var t=e-this.activePlayer.playerMountedAtTime;"undefined"!=typeof window&&window.dataLayer&&window.dataLayer.push({event:"learner.course.timing.timeToPlay",label:"Video Player",value:t})}},{key:"resetActivePlayerMountedAtTime",value:function(){this.activePlayer.playerMountedAtTime=Date.now()}},{key:"rewind",value:function(){var e,t;if(null!==(e=this.activePlayer)&&void 0!==e&&null!==(t=e.progress)&&void 0!==t&&t.playedSeconds){var r=this.activePlayer.progress.playedSeconds-10;this.seekTo(Math.max(0,r))}}},{key:"forward",value:function(){var e,t;if(null!==(e=this.activePlayer)&&void 0!==e&&null!==(t=e.progress)&&void 0!==t&&t.playedSeconds){var r=this.activePlayer.progress.playedSeconds+10;this.seekTo(Math.min(r,this.activePlayer.durationSeconds-1))}}},{key:"setSpeed",value:function(e){this.localStoragePreferences.speed=e,this.sendEvent("speedChange"),Object(l.c)("speed",e),this.sendGTMEvent("speedChange",e),"undefined"!=typeof window&&this.activePlayer.isPopout&&(window.speed=e)}},{key:"setQuality",value:function(e){this.localStoragePreferences.quality=e,this.sendEvent("qualityChange"),Object(l.c)("quality",e),this.sendGTMEvent("qualityChange",e),"undefined"!=typeof window&&this.activePlayer.isPopout&&(window.quality=e)}},{key:"setMute",value:function(e){this.localStoragePreferences.muted=e,this.sendEvent("volumeChange")}},{key:"setProgress",value:function(e){var t=Math.floor(Object(n.get)(this.activePlayer,"progress.playedSeconds",0)),r=Math.floor(e.playedSeconds);this.activePlayer.progress=e,this.sendEvent("progress"),t!==r&&(this.sendNormalHeartbeat(),this.handleQuizEvent(r),this.setLocalStorageProgress(r))}},{key:"setLocalStorageProgress",value:function(e){var t=this.activePlayer,r=t.videoId,n=t.durationSeconds,o={position:Math.floor(n)-e<=5?0:e,updatedAt:Date.now()},a=p(p({},Object(l.b)("progress")),{},g({},r,o));Object(l.c)("progress",a)}},{key:"handleQuizEvent",value:function(e){var t=this.activePlayer.quizQuestions;Object.keys(t).map((function(e){return parseInt(e)})).includes(e)&&(this.activePlayer.currentQuizQuestion=t[e])}},{key:"resetCurrentQuizQuestion",value:function(){this.activePlayer.currentQuizQuestion={}}},{key:"resetProgress",value:function(){this.activePlayer.progress={playedSeconds:0,played:0,loadedSeconds:0,loaded:0},this.sendEvent("progress")}},{key:"setDuration",value:function(e){this.activePlayer.durationSeconds=e,this.sendEvent("duration")}},{key:"seekToPercentage",value:function(e){var t;if(null!==(t=this.activePlayer)&&void 0!==t&&t.progress){var r=this.activePlayer.durationSeconds*e;this.activePlayer.progress.playedSeconds=r,this.lastSeekedPosition=Math.floor(r),this.sendEvent("seekTo")}}},{key:"startCasting",value:function(e){this.pause(),this.setFullScreen(!1),this.activePlayer.casting=!0,this.activePlayer.castingDeviceName=e,this.sendEvent("startCasting"),this.sendGTMEvent("startCasting",this.activePlayer.casting),this.play()}},{key:"stopCasting",value:function(){this.activePlayer.casting=!1,this.activePlayer.chromecastMedia=null,this.activePlayer.castingDeviceName="unknown device",this.sendEvent("stopCasting")}},{key:"seekChromecastMedia",value:function(e){if("undefined"!=typeof window){var t=new window.chrome.cast.media.SeekRequest;t.currentTime=e;var r=Object(n.get)(window,"session.media[0]",{}),o=r.sessionId,a=void 0===o?null:o,i=r.mediaSessionId,c=void 0===i?null:i;new window.chrome.cast.media.Media(a,c).seek(t,(function(){console.log("Chromecast seek success")}),(function(e){console.error("Chromecast seek error:",e)}))}}},{key:"subscribeToEvent",value:function(e,t){this.eventBus.addListener(e,t)}},{key:"unsubscribeToEvent",value:function(e,t){this.eventBus.removeListener(e,t)}},{key:"getState",value:function(e){return p(p(p(p({},e?this.getPlayer(e):this.activePlayer),this.licenseStatuses),this.localStoragePreferences),{},{license:this.license})}},{key:"sendEvent",value:function(e,t){var r=this.getState(t),n=this.activePlayer.casting?"cast.":"",o="".concat(r.playerId,".playerEvent.").concat(n).concat(e);this.eventBus.sendEvent(o,r)}}],f=[{key:"getInstance",value:function(){return h}},{key:"getEventBus",value:function(){return h.eventBus}}],o&&m(r.prototype,o),f&&m(r,f),t}()}).call(this,r(77))},378:function(e,t,r){"use strict";r.d(t,"c",(function(){return n})),r.d(t,"a",(function(){return o})),r.d(t,"b",(function(){return a}));var n=1,o=2,a=3;t.d={level:{summary:n,details:o,individual:a}}},379:function(e,t,r){"use strict";var n=r(0),o=r.n(n),a=r(5),i=r.n(a),c=r(3),u=r.n(c),s=r(88),l=r(225),d=r(2),f=d.e.div.withConfig({displayName:"StyledModalDialogue",componentId:"sc-1yawwmw-0"})(["position:absolute;top:0;left:0;right:0;bottom:0;margin:auto;z-index:1051;max-height:100vh;max-width:100vw;padding:2rem;background:",";border-radius:0.3rem;box-shadow:0 0.5rem 1.5rem rgba(0,0,0,0.5);overflow-y:",";"],(function(e){return e.theme.colors.siteBg}),(function(e){return e.scrollable?"auto":"hidden"})),p=function(e){var t,r,n,a,i,c=e.animation,u=e.animationType,s=e.duration,l=e.width,d=e.height,p=e.unit,y=void 0===p?"px":p,b=e.children,m=e.custom,g=e["data-at"],h="modal-dialog modal-".concat(c,"-").concat(u),v=function(e){if(e){if("string"==typeof e&&("max-content"===e||"min-content"===e))return e;if("number"==typeof e)return"".concat(e).concat(y)}return null},E={animationDuration:"".concat(s,"ms"),WebkitAnimationDuration:"".concat(s,"ms"),width:null!==(t=v(l))&&void 0!==t?t:"30vw",height:null!==(r=v(d))&&void 0!==r?r:"63vh"};"fit-content"===(null==m?void 0:m.height)&&((null==b||null===(n=b[1])||void 0===n||null===(a=n.props)||void 0===a||null===(i=a.children)||void 0===i?void 0:i.length)-1<=7&&(E.height=m.height));return o.a.createElement(f,{style:E,className:h,scrollable:!0,"data-at":"".concat(g,"-ModalDialogue")},b)};p.propTypes={"data-at":i.a.string,animation:i.a.string,animationType:i.a.string,children:i.a.oneOfType([i.a.element.isRequired,i.a.node.isRequired]),custom:i.a.object,duration:i.a.number,height:i.a.oneOfType([i.a.number,i.a.string]),unit:i.a.string,width:i.a.oneOfType([i.a.number,i.a.string])};var y=p;r(888);function b(){return(b=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r0,j=function(e){var t=e["data-at"],r=e.animation,a=void 0===r?"zoom":r,i=e.children,c=e.closeOnOverlayClick,d=void 0===c||c,f=e.duration,p=void 0===f?300:f,v=e.height,w=void 0===v?400:v,j=e.onAnimationEnd,C=e.onClose,I=e.showClose,R=void 0===I||I,D=e.showFooterClose,N=void 0!==D&&D,A=e.showOverlay,L=void 0===A||A,x=e.title,k=e.unit,G=void 0===k?"px":k,M=e.visible,U=void 0!==M&&M,B=e.width,F=void 0===B?550:B,V=h(Object(n.useState)(!1),2),H=V[0],Y=V[1],z=h(Object(n.useState)("leave"),2),q=z[0],W=z[1];Object(n.useEffect)((function(){return document.addEventListener("keydown",K),U?J():U||Q(),function(){document.removeEventListener("keydown",K)}}),[U,K]);var J=function(){document.body.style.overflow="hidden",Y(!0),W("enter")},Q=function(){document.body.style.overflow=null,T?Y(!1):W("leave")},$=Object(n.useCallback)((function(){C&&C()}),[C]),K=Object(n.useCallback)((function(e){27===e.keyCode&&U&&$()}),[$,U]),X=function(){return R?o.a.createElement(P,{"aria-label":"Close modal",displayAsLink:!0,onClick:function(){return $()}},o.a.createElement(l.i,{width:24,height:24,alt:"Close Modal"})):null},Z={display:H?"":"none",animationDuration:"".concat(p,"ms"),WebkitAnimationDuration:"".concat(p,"ms")},ee="modal-fade-".concat(q);return o.a.createElement("span",{className:"modal-base"},o.a.createElement(E,{style:Z,className:"".concat(ee),onAnimationEnd:function(){"leave"===q&&Y(!1),j&&j()},"data-at":t},function(){if(L){var e=d?C:null;return o.a.createElement(O,{onClick:e})}return null}(),o.a.createElement(y,b({},function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},r=Object(o.b)(a.a),u=r.isAccountOwner,s=Object(o.b)(c.a),l=s.isAccountAdmin,d=s.isOrphan,f=s.user,p=s.userStatus,b=y({accountId:null==f?void 0:f.account_id,roles:null!==(e=null==f?void 0:f.roles)&&void 0!==e?e:[],isOwnerOrAdmin:u||l,isOrphan:d,initialState:t}),m=b.allGroups,g=b.administratedGroups,h=b.status,v=b.getGroups,E=Object(n.useMemo)((function(){return p===i.c.ERROR?i.c.ERROR:h}),[p,h]);return{allGroups:m,administratedGroups:g,groupsStatus:E,getGroups:v}}));t.a=b},389:function(e,t,r){"use strict";r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return o}));var n="UPDATE_CONTENT_TAB_INDEX";function o(e){var t=function(e){switch(e){case"Overview":return 0;case"Quiz":return 1;default:return 0}}(e.title);return function(e){e({type:n,payload:t})}}},39:function(e,t,r){"use strict";var n,o=r(0),a=r(15),i=r(7),c=r(16),u=r(47),s=r.n(u);function l(e){return function(e){if(Array.isArray(e))return d(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return d(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return d(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&l({type:n.RESET_ERRORS})}),[s]);return{auth:a,authStatus:u,authErrors:s,resetAuthErrors:d}},v=function(){return{startImpersonation:Object(o.useCallback)((function(e){return i.guardian.impersonate(e,!0)}),[]),stopImpersonation:Object(o.useCallback)((function(){return i.guardian.deImpersonate()}),[])}},E=r(57),O=r(458);function S(e,t,r,n,o,a,i){try{var c=e[a](i),u=c.value}catch(e){return void r(e)}c.done?t(u):Promise.resolve(u).then(n,o)}var _=function(){return{loginWithEmailAndPassword:Object(o.useCallback)((function(e,t){var r,n=Object(E.getLogger)();(r=regeneratorRuntime.mark((function r(){var o;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,Object(O.a)("login_user_password");case 3:return o=r.sent,r.next=6,i.guardian.loginWithEmailPasswordAndToken(e,t,o,!1,!0);case 6:r.next=11;break;case 8:r.prev=8,r.t0=r.catch(0),n.error("An error occurred while logging user in",r.t0);case 11:case"end":return r.stop()}}),r,null,[[0,8]])})),function(){var e=this,t=arguments;return new Promise((function(n,o){var a=r.apply(e,t);function i(e){S(a,n,o,i,c,"next",e)}function c(e){S(a,n,o,i,c,"throw",e)}i(void 0)}))})()}),[]),logout:Object(o.useCallback)((function(){i.guardian.logout()}),[])}},P=["expiresIn"];function w(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function T(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var I=Object(a.a)((function(e){var t=h(e),r=t.auth,n=t.authStatus,a=t.authErrors,i=t.resetAuthErrors,c=_(),u=c.loginWithEmailAndPassword,s=c.logout,l=v(),d=Object(o.useMemo)((function(){return!(null==r||!r.loggedIn)&&r.loggedIn}),[r]),f=Object(o.useMemo)((function(){var e,t,n,o,a,i,c;return{isAdmin:null==r||null===(e=r.roles)||void 0===e?void 0:e.includes("admin"),isStaff:null==r||null===(t=r.roles)||void 0===t?void 0:t.includes("staff"),isTrainer:null==r||null===(n=r.roles)||void 0===n?void 0:n.includes("trainer"),isSales:null==r||null===(o=r.roles)||void 0===o?void 0:o.includes("sales"),isFinance:null==r||null===(a=r.roles)||void 0===a?void 0:a.includes("finance"),isSupport:null==r||null===(i=r.roles)||void 0===i?void 0:i.includes("support"),isDeveloper:null==r||null===(c=r.roles)||void 0===c?void 0:c.includes("developer")}}),[r]),p=Object(o.useMemo)((function(){if(r){r.expiresIn;return T(T({},C(r,P)),{},{loggedIn:d,permissions:f})}return{expirationDate:null,loggedIn:d,permissions:f}}),[r,d,f]),y=Object(o.useCallback)((function(){if(null!=p&&p.expirationDate){var e=Number(new Date)/1e3;return p.expirationDate-e}return null}),[p]),b=Object(o.useMemo)((function(){var e;return(null!==(e=null==r?void 0:r.factors)&&void 0!==e?e:[]).includes("lmi")}),[null==r?void 0:r.factors]);return T(T({},p),{},{authStatus:n,authErrors:a,calculateExpirationInSeconds:y,resetAuthErrors:i,isLMIUser:b,loginWithEmailAndPassword:u,logout:s},l)}));t.a=I},390:function(e,t,r){"use strict";t.a=function(e){e&&e.preventDefault();try{document.getElementById("embeddedMessagingConversationButton").click()}catch(e){console.warn("Error starting chat, script possibly not loaded yet."),console.warn(e)}}},393:function(e,t,r){"use strict";r.r(t),r.d(t,"checkPendingBillingAgreement",(function(){return l})),r.d(t,"getWidgetsUndismissed",(function(){return d})),r.d(t,"setWidgetDismissed",(function(){return f})),r.d(t,"setAndGetWidgetDismissed",(function(){return p})),r.d(t,"setPreferredContactInfo",(function(){return y})),r.d(t,"setContactWidgetStage",(function(){return b}));var n=r(4),o=r(12),a=r(8),i=r(17);function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;return function(){var n=b(regeneratorRuntime.mark((function n(c){var u,s,l,d;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(u=!o.a.isEmpty(t.search)&&o.a.isString(t.search)||o.a.isString(t.filters),!(u&&t.search&&t.search.length<3)){n.next=4;break}return n.abrupt("return");case 4:return s=r?"".concat(i.a,"/users/").concat(e,"?").concat(r):"".concat(i.a,"/users/").concat(e),n.prev=5,c({type:m}),n.next=9,a.axios.get(s,{params:t}||{});case 9:return l=n.sent,d=l.data,n.abrupt("return",c({type:g,payload:f(f({},d),{},{isSubsectionOfAllLearners:u})}));case 14:n.prev=14,n.t0=n.catch(5),c({type:h,payload:n.t0.response||n.t0});case 17:case"end":return n.stop()}}),n,null,[[5,14]])})));return function(e){return n.apply(this,arguments)}}()},H=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;return function(n,a){var c=o.a.get(a(),"userData.data.primaryGroupId","");if(!((!o.a.isEmpty(t.search)&&o.a.isString(t.search)||o.a.isString(t.filters))&&t.search&&t.search.length<3)){var s=r?"".concat(i.a,"/groups/").concat(e,"/users?").concat(r):"".concat(i.a,"/groups/").concat(e,"/users");n(Object(u.a)({url:s,method:"get",params:t?f({account_id:c},t):{account_id:c},types:{pending:v,resolved:E,rejected:O}}))}}},Y=function(e){var t=e.learnersPerPage,r=e.params,n=void 0===r?{}:r,a=l(e,s);return function(e){if(!((!o.a.isEmpty(n.search)&&o.a.isString(n.search)||o.a.isString(n.filters))&&n.search&&n.search.length<3)){var r=a.accountId,s=a.admin,l=a.viewer,d=a.email;e(Object(u.a)({url:i.d,method:"post",headers:f(f({},c.b),c.a),data:{query:"\n mutation addLearner($accountId: Int!, $admin: Boolean!, $firstName: String!, $lastName: String!, $email: String!, $groups: [LearnerGroup!], $viewer: Boolean!) {\n addLearner(accountId: $accountId, admin: $admin, firstName: $firstName, lastName: $lastName, email: $email, groups: $groups, viewer: $viewer) {\n user_id\n }\n }\n",variables:a},types:{pending:S,resolved:function(o){var a,i;null!==(a=o.errors)&&void 0!==a&&a.length?e({type:w,payload:o}):(e({type:_,payload:null===(i=o.data)||void 0===i?void 0:i.addLearner}),e(V(r,f({limit:t},n))),(s&&l||!s&&!l)&&e({type:P,payload:{usedDelta:1,userIds:[d]}}))},rejected:w}}))}}},z=function(e,t,r,n){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},c=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};return function(s){(!o.a.isEmpty(a.search)&&o.a.isString(a.search)||o.a.isString(a.filters))&&a.search&&a.search.length<3||s(Object(u.a)({url:"".concat(i.a,"/user/").concat(t),method:"post",data:{account_id:e,user_id:t,original:r,new:n},types:{pending:T,resolved:function(e){s({type:j,payload:e}),n.viewer!==r.viewer&&s({type:P,payload:{usedDelta:n.viewer?1:-1,userIds:[t]}}),c()},rejected:C}}))}},q=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function(n){if(!((!o.a.isEmpty(r.search)&&o.a.isString(r.search)||o.a.isString(r.filters))&&r.search&&r.search.length<3)){var a=e.map((function(e){return e.userId}));n(Object(u.a)({url:"".concat(i.a,"/users/account/").concat(t),method:"delete",data:{users:a},types:{pending:I,resolved:function(o){n({type:R,payload:o}),n(V(t,f({},r)));var i=e.filter((function(e){return e.isAssignedLicense})).length;i&&n({type:P,payload:{usedDelta:-i,userIds:a}})},rejected:D}}))}}},W=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function(n){(!o.a.isEmpty(r.search)&&o.a.isString(r.search)||o.a.isString(r.filters))&&r.search&&r.search.length<3||n(Object(u.a)({url:"".concat(i.b,"/user/").concat(e,"/role"),method:"post",data:{resource:"nrn:account:group:".concat(t),action:"write"},types:{pending:"LEARNERS_ADD_AS_ADMIN_TO_GROUP_PENDING",resolved:function(e){n({type:"LEARNERS_ADD_AS_ADMIN_TO_GROUP_RESOLVED",payload:e}),n(H(t,f({},r)))},rejected:"LEARNERS_ADD_AS_ADMIN_TO_GROUP_REJECTED"}}))}},J=function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return function(a){(!o.a.isEmpty(n.search)&&o.a.isString(n.search)||o.a.isString(n.filters))&&n.search&&n.search.length<3||a(Object(u.a)({url:"".concat(i.b,"/user/").concat(e,"/role/").concat(t),method:"delete",types:{pending:"LEARNERS_REMOVE_AS_ADMIN_TO_GROUP_PENDING",resolved:function(e){a({type:"LEARNERS_REMOVE_AS_ADMIN_TO_GROUP_RESOLVED",payload:e}),a(H(r,f({},n)))},rejected:"LEARNERS_REMOVE_AS_ADMIN_TO_GROUP_REJECTED"}}))}},Q=function(e,t){return function(r,n){var a=o.a.filter(o.a.get(n(),"yourAccount.manageLearners.learners.data",[]),(function(e){return o.a.includes(o.a.map(t,"userId"),e.user_id)}));r(Object(u.a)({url:"".concat(i.a,"/email/verification"),method:"post",data:{account_id:e,users:o.a.map(t,(function(e){return o.a.mapKeys(e,(function(e,t){return o.a.snakeCase(t)}))}))},types:{pending:x,resolved:function(){r({type:k,payload:a})},rejected:G}}))}},$=function(e,t,r){return function(n){n(Object(u.a)({url:"".concat(i.a,"/user/").concat(t,"/license"),method:"post",data:{account_id:e},types:{pending:M,resolved:function(o){n({type:U,payload:o}),n(V(e,r)),n({type:P,payload:{usedDelta:1,userIds:[t]}})},rejected:B}}))}}},449:function(e,t,r){"use strict";r.d(t,"h",(function(){return o})),r.d(t,"g",(function(){return a})),r.d(t,"e",(function(){return i})),r.d(t,"f",(function(){return c})),r.d(t,"d",(function(){return u})),r.d(t,"b",(function(){return s})),r.d(t,"a",(function(){return l})),r.d(t,"c",(function(){return d}));var n=r(23),o="".concat(n.f,"/lmi/playlist/:playlistId/:videoNumber?"),a="".concat(n.f,"/lmi/:seoslug/:videoNumber?"),i="".concat(n.f,"/learn/popout-player/:collectionId/:videoNumber?"),c="".concat(n.f,"/learn/popout-player/:playlistId/:videoNumber?"),u="".concat(n.f,"/it-training/playlist/:playlistId/:videoNumber?"),s="".concat(n.f,"/it-training/skills/:seoslug/:videoNumber?"),l="".concat(n.f,"/it-training/:seoslug/:videoNumber?"),d=[o,a,i,c,u,s,l]},45:function(e,t,r){"use strict";r.d(t,"h",(function(){return f})),r.d(t,"k",(function(){return p})),r.d(t,"j",(function(){return y})),r.d(t,"i",(function(){return b})),r.d(t,"l",(function(){return m})),r.d(t,"o",(function(){return g})),r.d(t,"n",(function(){return h})),r.d(t,"m",(function(){return v})),r.d(t,"p",(function(){return E})),r.d(t,"s",(function(){return O})),r.d(t,"r",(function(){return S})),r.d(t,"q",(function(){return _})),r.d(t,"t",(function(){return P})),r.d(t,"w",(function(){return w})),r.d(t,"v",(function(){return T})),r.d(t,"u",(function(){return j})),r.d(t,"b",(function(){return C})),r.d(t,"d",(function(){return I})),r.d(t,"c",(function(){return R})),r.d(t,"e",(function(){return D})),r.d(t,"g",(function(){return N})),r.d(t,"f",(function(){return A})),r.d(t,"a",(function(){return L})),r.d(t,"z",(function(){return x})),r.d(t,"A",(function(){return k})),r.d(t,"B",(function(){return G})),r.d(t,"C",(function(){return M})),r.d(t,"x",(function(){return U})),r.d(t,"y",(function(){return B})),r.d(t,"D",(function(){return F})),r.d(t,"E",(function(){return V}));var n=r(3),o=r.n(n),a=r(7),i=r(4),c=r(23),u=r(8);function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;return function(n){if(!((!o.a.isEmpty(t.search)&&o.a.isString(t.search)||o.a.isString(t.filters))&&t.search&&t.search.length<3)){var a=r?"".concat(i.a,"/groups/").concat(e,"?").concat(r):"".concat(i.a,"/groups/").concat(e);n(Object(u.a)({url:a,method:"get",params:r||l({},t),types:{pending:f,resolved:p,rejected:y}}))}}},M=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(r){(!o.a.isEmpty(t.search)&&o.a.isString(t.search)||o.a.isString(t.filters))&&t.search&&t.search.length<3||r(Object(u.a)({url:"".concat(i.b,"/group/").concat(e),method:"get",params:t,types:{pending:b,resolved:m,rejected:g}}))}},U=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3?arguments[3]:void 0;return function(a){var c=n?"".concat(i.a,"/user/").concat(e,"/groups?account_id=").concat(t,"&").concat(n):"".concat(i.a,"/user/").concat(e,"/groups");(!o.a.isEmpty(r.search)&&o.a.isString(r.search)||o.a.isString(r.filters))&&r.search&&r.search.length<3||a(Object(u.a)({url:c,method:"get",params:n||l({account_id:t},r),types:{pending:w,resolved:T,rejected:j}}))}},B=function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},c=arguments.length>4?arguments[4]:void 0;return function(u){(!o.a.isEmpty(n.search)&&o.a.isString(n.search)||o.a.isString(n.filters))&&n.search&&n.search.length<3||(u({type:S}),a.axios.post("".concat(i.b,"/group"),{group_id:e,parent_group_id:null,name:t}).then((function(e){u({type:_,payload:e}),u(G(r,l({},n)))})).then(c).catch((function(e){u({type:P,payload:e})})))}},F=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function(n){(!o.a.isEmpty(r.search)&&o.a.isString(r.search)||o.a.isString(r.filters))&&r.search&&r.search.length<3||n(Object(u.a)({url:"".concat(i.b,"/group/").concat(e),method:"delete",types:{pending:D,resolved:function(e){n({type:N,payload:e}),n(G(t,l({},r)))},rejected:A}}))}},V=function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return function(o){o(Object(u.a)({url:"".concat(i.a,"/users/group/").concat(e),method:"post",data:{users:t},types:{pending:L,resolved:function(t){o({type:x,payload:t}),o(Object(c.D)(r,l({filters:"groups:nin:".concat(e)},n)))},rejected:k}}))}},H=function(){return function(e,t){return e({type:h,payload:{}})}}},481:function(e,t,r){"use strict";var n,o=r(95);var a,i,c=Object(o.a)(n||(a=["\n mutation deleteBookshelfItem($userId: String, $contentNrn: String, $itemId: String) {\n deleteBookshelfItem(userId: $userId, contentNrn: $contentNrn, itemId: $itemId)\n }\n"],i||(i=a.slice(0)),n=Object.freeze(Object.defineProperties(a,{raw:{value:Object.freeze(i)}}))));t.a=c},484:function(e,t,r){"use strict";var n=r(2),o=Object(n.d)(["body *{outline:none !important;}body[data-keyboard-navigator='true']{*:focus{outline:"," auto !important;}}"],(function(e){return e.theme.colors.blue}));r.d(t,"a",(function(){return i}));var a=Object(n.d)(["::-webkit-scrollbar{background:",";}::-webkit-scrollbar-thumb{background:",";}scrollbar-color:"," ",";scrollbar-base-color:",";scrollbar-face-color:",";scrollbar-track-color:",";scrollbar-arrow-color:",";"],(function(e){return e.theme.colors.scrollbar}),(function(e){return e.theme.colors.scrollbarThumb}),(function(e){return e.theme.colors.scrollbarThumb}),(function(e){return e.theme.colors.scrollbar}),(function(e){return e.theme.colors.scrollbarThumb}),(function(e){return e.theme.colors.scrollbarThumb}),(function(e){return e.theme.colors.scrollbar}),(function(e){return e.theme.colors.scrollbarThumb})),i=Object(n.d)(["color:",";text-decoration:none;font-weight:",";&:hover{text-decoration:underline;}"],(function(e){return e.theme.colors.blue}),(function(e){return e.theme.fonts.boldWeight})),c=Object(n.d)(["html,*,body{box-sizing:border-box;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-smoothing:antialiased;}"," html{margin:0;padding:0;border:0;font-size:62.5%;background-color:",";}*,*:before,*:after{box-sizing:inherit;}body{overflow-x:hidden;padding:0;margin:0;font-family:'Source Sans Pro',sans-serif;line-height:1.5;font-size:1.6rem;background-color:",";color:",";*{","}.prevent-body-scroll{overflow:hidden;@media screen and (min-width:86.5rem){overflow:auto;}}}div{box-sizing:border-box;}::before,::after{box-sizing:border-box;}h1,h2,h3,h4,h5,h6{line-height:1.3em;margin-top:0;color:",";font-weight:600;}h1{font-size:4rem;}h2{font-size:3.2rem;}h3{font-size:2.6rem;}h4{font-size:1.8rem;}h5{font-size:1.6rem;}h6{font-size:1.4rem;}p{margin:1rem 0;color:",";font-size:1.6rem;&.large{font-size:1.8rem;}&.small{font-size:1.4rem;}}a{","}hr{border:0;height:1px;background-color:",";margin:2rem 0;}.large{font-size:",";}.small{font-size:",";}.capitalize{text-transform:capitalize;}.align-right{text-align:right;}.align-left{text-align:left;}.align-center{text-align:center;}.ie-overflow-fix-resources main{overflow:auto;}._hj-f5b2a1eb-9b07_feedback_minimized_label{@media screen and (max-width:1425px){width:20px !important;padding:12px 0px 12px 2px !important;@media screen and (min-width:770px) and (max-width:960px){width:12px !important;padding:12px 0px 12px 0px !important;._hj-f5b2a1eb-9b07_feedback_minimized_label_text{font-size:8px !important;}}}}.grecaptcha-badge{display:none !important;}"],o,(function(e){return e.theme.colors.siteBg}),(function(e){return e.theme.colors.white}),(function(e){return e.theme.colors.primary}),a,(function(e){return e.theme.colors.primary}),(function(e){return e.theme.colors.primary}),i,(function(e){return e.theme.colors.greyBorder}),(function(e){return e.theme.fonts.textLarge}),(function(e){return e.theme.fonts.textSmall}));t.b=c},488:function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n,o=r(489);function a(e,t){for(var r=0;r=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){c=!0,a=e},f:function(){try{i||null==r.return||r.return()}finally{if(c)throw a}}}}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r4&&void 0!==arguments[4]&&arguments[4];return function(a){var c=o?f.a:T,u=o?f.c:C,s=o?f.b:j;a({type:c}),i.a.mutate({mutation:d.a,context:{headers:{authorization:"Bearer ".concat(e)}},variables:{userId:t,contentNrns:r,assigneeNrns:n}}).then((function(e){var r=e.data.assignBookshelfItems;if(!r||!r.length)return a({type:s});var n,o=b(r);try{for(o.s();!(n=o.n()).done;){var i=n.value,c=i.created_by,l=i.relationship;if(c!==t||"assigned"!==l.type)return a({type:s})}}catch(e){o.e(e)}finally{o.f()}return a({type:u})})).catch((function(e){a({type:s,err:e})}))}}function M(e,t,r,n){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=o?f.j:I,c=o?f.l:D,u=o?f.k:R;return function(o){o({type:a}),i.a.mutate({mutation:l,context:{headers:{authorization:"Bearer ".concat(e)}},variables:{userId:t,contentNrn:r,assigneeNrns:n}}).then((function(e){var r=e.data.unassignBookshelfItem;if(Array.isArray(r)){var n,a=!0,i=b(r);try{for(i.s();!(n=i.n()).done;){var s=n.value,l=s.created_by,d=s.relationship;if(l!==t||"assigned"!==d.type){a=!1;break}}}catch(e){i.e(e)}finally{i.f()}if(a)return o({type:c})}else{var f=r.created_by,p=r.relationship;if(f===t&&"assigned"===p.type)return o({type:c})}o({type:u})})).catch((function(e){o({type:u,err:e})}))}}},76:function(e,t,r){"use strict";r.d(t,"g",(function(){return a})),r.d(t,"i",(function(){return i})),r.d(t,"h",(function(){return c})),r.d(t,"j",(function(){return u})),r.d(t,"l",(function(){return s})),r.d(t,"k",(function(){return l})),r.d(t,"m",(function(){return d})),r.d(t,"d",(function(){return f})),r.d(t,"f",(function(){return p})),r.d(t,"e",(function(){return y})),r.d(t,"a",(function(){return b})),r.d(t,"c",(function(){return m})),r.d(t,"b",(function(){return g})),r.d(t,"o",(function(){return h})),r.d(t,"n",(function(){return v})),r.d(t,"p",(function(){return E}));var n=r(4),o=r(8),a="PLAYLISTS_GET_PENDING",i="PLAYLISTS_GET_RESOLVED",c="PLAYLISTS_GET_REJECTED",u="PLAYLIST_DETAILS_GET_PENDING",s="PLAYLIST_DETAILS_GET_RESOLVED",l="PLAYLIST_DETAILS_GET_REJECTED",d="RESET_PLAYLISTS_STATE",f="DELETE_ITEM_PENDING",p="DELETE_ITEM_RESOLVED",y="DELETE_ITEM_REJECTED",b="DELETE_COURSE_PENDING",m="DELETE_COURSE_RESOLVED",g="DELETE_COURSE_REJECTED",h=function(e,t,r){return function(a){var i={ref_id:r};a(Object(o.a)({url:"".concat(n.G,"/playlist/").concat(e,"/item/").concat(t),method:"delete",data:i,types:{pending:f,resolved:function(){a({type:p,itemRemoved:t,collection:r})},rejected:y}}))}},v=function(e,t){return function(r,a){var i={ref_id:t};r(Object(o.a)({url:"".concat(n.G,"/playlist/").concat(e,"/item/").concat(t),method:"delete",data:i,types:{pending:b,resolved:function(){r({type:m,courseRemoved:t})},rejected:g}}))}},E=function(){return{type:d}}},8:function(e,t,r){"use strict";var n=r(7),o=["method","types"];function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var d=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"get",t=["delete","get","head","post","put","patch","common"],r=e.toLowerCase();return t.includes(r)?r:"get"};t.a=function(e){return function(t,r){var a=e.method,c=e.types,u=l(e,o);null!=c&&c.pending&&t({type:c.pending});var f=r();if(!n.guardian.isLoggedIn()){var p="User is not authenticated";if(null!=c&&c.rejected)return"function"==typeof c.rejected?Promise.resolve(c.rejected(p,t,f)):Promise.resolve(t({type:c.rejected,error:p}))}var y=function(){var e=s(regeneratorRuntime.mark((function e(r){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null==c||!c.resolved){e.next=5;break}if(n=null!=r&&r.data?r.data:r,"function"!=typeof c.resolved){e.next=4;break}return e.abrupt("return",c.resolved(n,t,f));case 4:return e.abrupt("return",t({payload:n,type:c.resolved}));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),b=function(){var e=s(regeneratorRuntime.mark((function e(r){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null==c||!c.rejected){e.next=4;break}if("function"!=typeof c.rejected){e.next=3;break}return e.abrupt("return",c.rejected(r,t,f));case 3:return e.abrupt("return",t({type:c.rejected,payload:r}));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),m=i(i({},u),{},{method:d(a)});return Object(n.axios)(m).then((function(e){return y(e)})).catch(b)}}},80:function(e,t,r){"use strict";r.d(t,"e",(function(){return u})),r.d(t,"a",(function(){return s})),r.d(t,"b",(function(){return l})),r.d(t,"c",(function(){return d})),r.d(t,"d",(function(){return f})),r.d(t,"h",(function(){return p})),r.d(t,"f",(function(){return y})),r.d(t,"g",(function(){return m}));var n=r(3),o=r.n(n),a=r(4),i=r(8);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var u="SHOW_RENAME_PLAYLIST",s="HIDE_RENAME_PLAYLIST",l="RENAME_PLAYLIST_PENDING",d="RENAME_PLAYLIST_REJECTED",f="RENAME_PLAYLIST_RESOLVED";function p(){return{type:u}}function y(){return{type:s}}function b(e){return{type:d,error:e}}function m(e){return function(t){var r="object"===c(e);e&&r?o.a.has(e,"id")&&o.a.has(e,"name")?t(Object(i.a)({url:"".concat(a.G,"/playlist/").concat(e.id),method:"post",data:e,types:{pending:function(){t({type:l})},rejected:function(e){t(b(e))},resolved:function(){t(function(e){var t=e.id,r=e.name;return{type:f,payload:{id:t,label:r,playlist_name:r,path:"/playlist/".concat(t)}}}(e))}}})):t(b({status:400,message:"parameters id and name are required"})):t(b({status:400,message:"object parameter expected"}))}}},83:function(e,t,r){"use strict";r.d(t,"d",(function(){return u})),r.d(t,"f",(function(){return s})),r.d(t,"e",(function(){return l})),r.d(t,"g",(function(){return d})),r.d(t,"i",(function(){return f})),r.d(t,"h",(function(){return p})),r.d(t,"m",(function(){return y})),r.d(t,"a",(function(){return b})),r.d(t,"c",(function(){return m})),r.d(t,"b",(function(){return g})),r.d(t,"j",(function(){return h})),r.d(t,"l",(function(){return v})),r.d(t,"k",(function(){return E})),r.d(t,"n",(function(){return O})),r.d(t,"p",(function(){return S})),r.d(t,"o",(function(){return _})),r.d(t,"r",(function(){return P})),r.d(t,"q",(function(){return w})),r.d(t,"s",(function(){return T})),r.d(t,"t",(function(){return j}));var n=r(3),o=r.n(n),a=r(7),i=r(4),c=r(8),u="GET_PREFERENCES_PENDING",s="GET_PREFERENCES_RESOLVED",l="GET_PREFERENCES_REJECTED",d="POST_LEADERBOARD_PREFERENCES_PENDING",f="POST_LEADERBOARD_PREFERENCES_RESOLVED",p="POST_LEADERBOARD_PREFERENCES_REJECTED",y="RESET_LEADERBOARD_PREFERENCES",b="GET_GROUP_PREFERENCES_PENDING",m="GET_GROUP_PREFERENCES_RESOLVED",g="GET_GROUP_PREFERENCES_REJECTED",h="POST_QUIZ_PROMPT_PREFERENCES_PENDING",v="POST_QUIZ_PROMPT_PREFERENCES_RESOLVED",E="POST_QUIZ_PROMPT_PREFERENCES_REJECTED",O="RESET_QUIZ_PROMPT_PREFERENCES",S=function(){return function(e){e(Object(c.a)({url:"".concat(i.z,"/preferences"),method:"get",types:{pending:u,rejected:l,resolved:s}}))}},_=function(){return function(e,t){var r=o.a.get(t(),"userData.data.primaryGroupId");e(Object(c.a)({url:"".concat(i.z,"/preferences/for/group/").concat(r),method:"get",types:{pending:b,rejected:g,resolved:m}}))}},P=function(e){return function(t){t({type:d}),a.axios.post("".concat(i.z,"/preferences"),{leaderboard_public:e}).then((function(e){t({type:f,payload:e})})).catch((function(e){t({type:p,payload:e})})).finally((function(){t(S())}))}},w=function(e){return function(t,r){var n=o.a.get(r(),"userData.data.primaryGroupId");t({type:h}),a.axios.post("".concat(i.z,"/preferences/for/group/").concat(n),{require_questions:e.toString()}).then((function(e){t({type:v,payload:e})})).catch((function(e){t({type:E,payload:e})})).finally((function(){t(_())}))}},T=function(){return function(e){return e({type:y})}},j=function(){return function(e){return e({type:O})}}},84:function(e,t,r){"use strict";var n=r(39),o=r(16),a=r(0),i=r(15),c=r(25),u=r(7),s=r(4),l=r(17);function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){for(var r=0;r=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function C(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function I(e,t){for(var r=0;r=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function z(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function q(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);r\');&::-ms-expand{display:none;}}button{font-family:\'Source Sans Pro\',sans-serif;:hover{text-decoration:underline;}}button.dropdown-trigger{background-image:url(\'data:image/svg+xml;utf8,\');background-position:right 50%;background-repeat:no-repeat;padding-right:1.8rem;text-align:left;}label{font-size:1.6rem;color:',";margin-bottom:5px;padding-right:10px;display:inline-block;}input[type='checkbox'],input[type='radio']{position:relative;}"],(function(e){return e.theme.colors.tertiary}),(function(e){return e.theme.colors.blue}),(function(e){return e.theme.colors.tertiary}),(function(e){return e.theme.colors.secondary}),(function(e){return e.theme.colors.inputBackground}),(function(e){return e.theme.colors.blue}),(function(e){return e.theme.colors.white}),(function(e){return e.theme.colors.primary})),Ee=r(380),Oe=Object(h.d)(["::-webkit-scrollbar{background:",";}::-webkit-scrollbar-thumb{background:",";}scrollbar-color:"," ",";scrollbar-base-color:",";scrollbar-face-color:",";scrollbar-track-color:",";scrollbar-arrow-color:",";"],(function(e){return e.theme.colors.tempDarkMode.scrollbar}),(function(e){return e.theme.colors.tempDarkMode.scrollbarThumb}),(function(e){return e.theme.colors.tempDarkMode.scrollbarThumb}),(function(e){return e.theme.colors.tempDarkMode.scrollbar}),(function(e){return e.theme.colors.tempDarkMode.scrollbarThumb}),(function(e){return e.theme.colors.tempDarkMode.scrollbarThumb}),(function(e){return e.theme.colors.tempDarkMode.scrollbar}),(function(e){return e.theme.colors.tempDarkMode.scrollbarThumb})),Se=Object(h.d)(["body.dark-mode{"," *{","}background-color:",";color:",";a,button[data-type='link-style']{color:",";}input[type='text'],input[type='email'],input[type='phone'],input[type='password'],textarea,select,button.dropdown-trigger{background-color:",";border-color:",";color:",";:focus,:active{border-color:","}::placeholder{color:",';}}select{background-image:url(\'data:image/svg+xml;utf8,');}input[type='checkbox']{background-image:url(",") !important;:checked{background-image:url(",") !important;}}input[type='radio']{background-image:url(",") !important;:checked{background-image:url(",') !important;}}button[data-type="primary"]{background-color:',";border-color:",";color:",";&:hover{background-color:",";border-color:",';}}button[data-type="secondary"]{background-color:',";border-color:",";color:",";&:hover{background-color:",";border-color:",";}}[data-tooltip]{::before{border-color:"," transparent transparent transparent;}::after{background-color:",";color:",";}}.play-list-modal .modal-dialog{background-color:",";color:",";h1,h2,h3{color:",';}button[data-type="primary"]{background-color:',";border-color:",";color:",";&:hover{background-color:",";border-color:",";}}[data-role=closeModal]{stroke:",";fill:",';}}ul[data-type="action-dropdown"]{background-color:',";color:",";border-color:",";border-radius:0;a:hover{background-color:",";}}ul.underlinedTab,.sidebar-tab-container{border-color:",";li{color:",";}li:hover,li.active{color:",";}}.forum-container{a{color:"," !important;}.post-container{.post-component{.tab-list-item{color:",";}}}}}"],Oe,Oe,(function(e){return e.theme.colors.tempDarkMode.siteBg}),(function(e){return e.theme.colors.tempDarkMode.primary}),(function(e){return e.theme.colors.tempDarkMode.blue}),(function(e){return e.theme.colors.tempDarkMode.inputBackground}),(function(e){return e.theme.colors.tempDarkMode.inputBorder}),(function(e){return e.theme.colors.greyLight}),(function(e){return e.theme.colors.tempDarkMode.blue}),(function(e){return e.theme.colors.tertiary}),(function(e){return encodeURIComponent(e.theme.colors.tertiary)}),(function(e){return e.theme.colors.tempDarkMode.checkboxImageUnChecked}),(function(e){return e.theme.colors.tempDarkMode.checkboxImageChecked}),(function(e){return e.theme.colors.tempDarkMode.radioImageUnChecked}),(function(e){return e.theme.colors.tempDarkMode.radioImageChecked}),(function(e){return e.theme.colors.tempDarkMode.buttonPrimaryBg}),(function(e){return e.theme.colors.tempDarkMode.buttonPrimaryBg}),(function(e){return e.theme.colors.tempDarkMode.buttonPrimaryFont}),(function(e){return e.theme.colors.tempDarkMode.buttonPrimaryBgHover}),(function(e){return e.theme.colors.tempDarkMode.buttonPrimaryBgHover}),(function(e){return e.theme.colors.tempDarkMode.buttonSecondaryBg}),(function(e){return e.theme.colors.tempDarkMode.buttonSecondaryFont}),(function(e){return e.theme.colors.tempDarkMode.buttonSecondaryFont}),(function(e){return e.theme.colors.tempDarkMode.buttonSecondaryBgHover}),(function(e){return e.theme.colors.tempDarkMode.buttonSecondaryFont}),(function(e){return e.theme.colors.tempDarkMode.greyBorder}),(function(e){return e.theme.colors.tempDarkMode.greyBorder}),(function(e){return e.theme.colors.tempDarkMode.primary}),(function(e){return e.theme.colors.tempDarkMode.greyBorder}),(function(e){return e.theme.colors.tempDarkMode.primary}),(function(e){return e.theme.colors.tempDarkMode.primary}),(function(e){return e.theme.colors.tempDarkMode.buttonSecondaryBg}),(function(e){return e.theme.colors.tempDarkMode.buttonSecondaryFont}),(function(e){return e.theme.colors.tempDarkMode.primary}),(function(e){return e.theme.colors.tempDarkMode.buttonSecondaryBgHover}),(function(e){return e.theme.colors.tempDarkMode.buttonSecondaryFont}),(function(e){return e.theme.colors.tempDarkMode.primary}),(function(e){return e.theme.colors.tempDarkMode.primary}),(function(e){return e.theme.colors.tempDarkMode.greyBorder}),(function(e){return e.theme.colors.tempDarkMode.primary}),(function(e){return e.theme.colors.tempDarkMode.secondary}),(function(e){return e.theme.colors.tempDarkMode.secondary}),(function(e){return e.theme.colors.tempDarkMode.greyBorder}),(function(e){return e.theme.colors.tempDarkMode.inputBorder}),(function(e){return e.theme.colors.tempDarkMode.primary}),(function(e){return e.theme.colors.tempDarkMode.blue}),(function(e){return e.theme.colors.tempDarkMode.blue}));var _e,Pe,we=Object(h.c)(ge||(_e=["\n ","\n ","\n ","\n ","\n"],Pe||(Pe=_e.slice(0)),ge=Object.freeze(Object.defineProperties(_e,{raw:{value:Object.freeze(Pe)}}))),he.b,ve,Ee.a,Se),Te=r(137),je=r(84),Ce=r(39),Ie=r(119),Re=r(190),De=r(97),Ne=Object(d.connect)((function(){return{}}),{fetchUserSummary:Te.d})((function(e){var t=Object(g.b)(Ce.a).loggedIn,r=Object(g.b)(De.a).getUserSummary,o=Object(g.b)(Ie.a).getLegacyItems,a=Object(g.b)(je.a).getSubscription,i=Object(g.b)(Re.a).getSubscriptionPlansWithFuture,c=Object(n.useRef)(!1),u=Object(n.useRef)(null);return Object(n.useEffect)((function(){!c.current&&t&&(r(),o(),e.fetchUserSummary(),a(),i()),c.current=t,u.current=e})),null})),Ae=r(3),Le=r.n(Ae),xe=r(5),ke=r.n(xe),Ge=[{path:"/certification-playlist",title:"IT Certification Training Courses - Playlists | CBT Nuggets",description:"Save time, and reduce effort and anxiety while training for your next IT certification with the CBT Nuggets IT certification training Playlists. Subscribe today!",h1:"Online IT Certification Training Course Videos",descCharCount:161},{path:"/learn/it-training/cisco-training",title:"Cisco Training Courses | CCNA Certification Training | CBT Nuggets",description:"Get prepared for your CCNA, CCNP, CCIE, or other Cisco certification with Cisco Systems training courses led by experts. Whether you are new to networking or a seasoned pro looking to upgrade your skills, you’ll find classes to fit your needs. Start your free week of training today!",h1:"Cisco Training for CCNA, CCNP, CCIE and other Cisco Certifications",descCharCount:126},{path:"/learn/it-training",title:"Online IT Training - Learn IT Online | CBT Nuggets",description:"Save time and money with high quality online IT training videos by the top IT trainers in the industry with CBT Nuggets. Join us today and start with a FREE week!",h1:"Choose your IT training by path, vendor, or trainer.",descCharCount:162},{path:"/learn/it-training/agile-certified-practitioner",title:"PMI-ACP Training: Agile Certified Practitioner | CBT Nuggets",description:"Reduce risk, stress, and cost when taking your PMI-ACP exam with CBT Nuggets online IT training courses. Subscribe today and get a FREE week!",descCharCount:141},{path:"/learn/it-training/cisco-ccna-icnd1-100-101",title:"Cisco CCENT/CCNA ICND1 100-101 Training | CBT Nuggets",description:"High quality, simple, and effective Cisco CCENT/CCNA ICND1 100-101 training videos by CBT Nuggets. Start your FREE week today!",descCharCount:126},{path:"/learn/it-training/cisco-ccna-security-210-260",title:"CCNA Security Training: Welcome to CCNA Security | CBT Nuggets",description:"CCNA Security Training from industry experts at CBT Nuggets. Actively learn with Virtual Labs, ".concat("CyberVista"," IT Training Exams, Coaching - all offered in our subscription. Start FREE today!"),descCharCount:177},{path:"/learn/it-training/cisco-ccna-voice-icomm-640-461",title:"CCNA Voice Training ICOMM 640-461 | CBT Nuggets",description:"Prepare for the ICOMM 540-461 exam with quality, rewarding CCNA Voice training from CBT Nuggets. Start your FREE week today!",descCharCount:124},{path:"/learn/it-training/cisco-ccnp-routing-switching-300-101",title:"Cisco CCNP Routing and Switching 300-101 Training | CBT Nuggets",description:"Save time, and reduce effort and anxiety when preparing for your Cisco CCNP Routing and Switching 300-101 exam with CBT Nuggets. Start your FREE week today!",descCharCount:156},{path:"/all-courses",title:"Online IT Training Courses | CBT Nuggets",description:"CBT Nuggets has a variety of high quality, organized, and informative online IT training courses to help you to excel in your career. Start your FREE week today!",descCharCount:161},{path:"/learn/it-training/cisco-ccna-icnd1-100-105",title:"Cisco CCENT/CCNA ICND1 100-105 Training | CBT Nuggets",description:"High quality, easy to understand CCENT/CCNA ICND1 100-105 training from the top IT experts at CBT Nuggets. Start your FREE week today!",descCharCount:134},{path:"/subscriptions",title:"Online IT Training Subscription for Teams & Individuals - See Pricing",description:"Reduce cost, hassles, and time with a CBT Nuggets online IT training subscription. The perfect training solution for individuals or teams. Start your FREE week today!",descCharCount:166},{path:"/certification-playlist/cisco/56440",title:"CCNA Routing and Switching Certification Exam Training | CBT Nuggets",description:"Prepare for the Cisco CCNA Routing and Switching certification exam with the high quality, cost effective training subscription from CBT Nuggets. Start your FREE week!",descCharCount:167},{path:"/learn/it-training/white-hat-hacking",title:"White Hat Hacking Training Course | CBT Nuggets",description:"Quality, effective White Hat Hacking training courses by CBT Nuggets. Start your FREE week today!",descCharCount:115},{path:"/learn/it-training/comptia-training",title:"CompTIA Training Online | CBT Nuggets",description:"Trusted, quality CompTIA training courses online. Start your FREE week with CBT Nuggets!",h1:"CompTIA Training Courses",descCharCount:88},{path:"/learn/it-training/programming-and-development/database-development",title:"SQL Server Training - Learn SQL Online | CBT Nuggets",description:"Trusted, quality, preferred SQL Server training. Learn SQL online with CBT Nuggets. Start your FREE week today!",h1:"Database Development - SQL Training",descCharCount:111},{path:"/learn/it-training/linux-training",title:"Learn Linux with Online Open Source Training Videos | CBT Nuggets",description:"Learn Linux with CBT Nuggets' online Open Source training. Start your FREE week today!",descCharCount:86},{path:"/learn/it-training/programming-and-development",title:"Learn Programming & Development with Online Training Courses | CBT Nuggets",description:"Learn Programming & Development with simple, effective, and efficient online training courses from CBT Nuggets. Start your FREE week today!",descCharCount:139},{path:"/learn/it-training/pmi-training",title:"PMI® Training Courses | CBT Nuggets",description:"Effective online PMI® training videos from CBT Nuggets. Start your FREE week today!",h1:"PMI® Training",descCharCount:83},{path:"/learn/it-training/pmp-certification",title:"PMP Certification Training - Project Management Professional (PMP)® Certified Associate in Project Management (CAPM)® | CBT Nuggets",description:"High quality, trusted PMP Certification Training. Become a PMP Certified Associate with the help of CBT Nuggets. Start your FREE week today!",descCharCount:140},{path:"/certification-playlist/Microsoft",title:"Microsoft Certification Training | CBT Nuggets",description:"Save time, effort and actively learn with the CBT Nuggets Microsoft Certification Training Playlist. Start your FREE week today!",h1:"Microsoft Certification Training Playlist",descCharCount:128},{path:"/certification-playlist/microsoft/146167",title:"MCSE Certification Training - MCSE: Communications | CBT Nuggets",description:"Prepare with CBT Nuggets to earn your MCSE: Communications certification by watching our engaging training playlist. Start your FREE week today!",h1:"MCSE: Communications Certification Training Playlist",descCharCount:144},{path:"/learn/it-training/gns3-definitive-guide",title:"GNS3 Video Training: The Definitive Guide | CBT Nuggets",description:"Watch the CBT Nuggets Definitive Guide to GNS3. Start your FREE week today. Watch. Learn. Conquer.",descCharCount:98},{path:"/learn/it-training/reactjs",title:"ReactJS Training: Intro to ReactJS | CBT Nuggets",description:"The CBT Nuggets ReactJS training course covers the topics and reference needed to begin creating responsive and dynamic web pages with React. Watch FREE today!",h1:"ReactJS Training",descCharCount:159},{path:"/learn/it-training/wireshark-training-videos",title:"Wireshark Training: Getting the Most From This Course | CBT Nuggets",description:"Learn Wireshark today with CBT Nuggets Wireshark training videos. Start with a FREE week!",h1:"Wireshark Training",descCharCount:89},{path:"/learn/it-training/vmware-training",title:"VMware Online Courses & Certification Training | CBT Nuggets",description:"Quality, effective VMware training online. Watch CBT Nuggets VMware certification training videos, start with a FREE trial.",descCharCount:123},{path:"/learn/it-training/ubuntu-linux",title:"Ubuntu Training, Ubuntu Certification Training: Server Course Introduction | CBT Nuggets",description:"Watch the CBT Nuggets Ubunto Training introductory course to prepare for your certification. Start with a FREE week!",h1:"Ubuntu Training",descCharCount:116},{path:"/learn/it-training/penetration-testing-backtrack-kali-linux",title:"Penetration Testing Training with Linux Tools: Tools of BackTrack & Kali Linux | CBT Nuggets",description:"Start your Penetration Testing training with CBT Nuggets. Quality, effective online IT training. Start your FREE week today.",descCharCount:124},{path:"/learn/it-training/cisco-ccdp-642-874-arch",title:"CCDP Training - Cisco CCDP 300-320 ARCH: Welcome to ARCH | CBT Nuggets",description:"Prepare for the Cisco CCDP 300-320 ARCH exam through CBT Nuggets online CCDP training. Start with a FREE week.",descCharCount:110},{path:"/certification-playlist/cisco/110973",title:"CCIE Certification Training, Routing and Switching Certification Training | CBT Nuggets",h1:"CCIE Routing and Switching Certification Training",descCharCount:0},{path:"/certification-playlist/linux",title:"Linux Certification Training Playlist | CBT Nuggets",h1:"Linux Certification Training Playlist",descCharCount:0},{path:"/certification-playlist/microsoft/182114",title:"Microsoft Office 365 Certification Training - MCSA Training | CBT Nuggets",h1:"MCSA: Microsoft Office 365 Certification Training Playlist",descCharCount:0},{path:"/learn/it-training/microsoft-lync-server-2013-70-336",title:"Lync Training - Lync Server 2013 70-336: Lync to Skype Update | CBT Nuggets",h1:"Microsoft Lync Server 2013 70-336 Training",descCharCount:0},{path:"/microsoft-windows-10-70-697-configuring-windows-devices",title:"Microsoft Windows 10 Training 70-697: Configuring Windows Devices: Intro | CBT Nuggets",description:"Looking for Windows 10 training to get you certified for the 70-697 or to excel in your career? Start with CBT Nuggets Windows 10 training videos. Start FREE today!",descCharCount:164},{path:"/learn/it-training/docker",title:"Docker Training, Docker Certification Training: Intro | CBT Nuggets",h1:"Docker Training",descCharCount:0},{path:"/learn/it-training/amazon-web-services-training/amazon-cloud-infrastructure",title:"Amazon Cloud Infrastructure (AWS) Training Videos| CBT Nuggets",description:"Save time, reduce effort, and transcend in your career with AWS Training videos from CBT Nuggets. Start your FREE week today!",h1:"Online Amazon Cloud Infrastructure (AWS) Training",descCharCount:125},{path:"/learn/it-training/isc2-security-cissp",title:"(ISC)2 Security CISSP Training: Welcome to CISSP | CBT Nuggets",description:"Gain access to quality CISSP training videos from CBT Nuggets. Start your FREE week today!",h1:"(ISC)2 Security CISSP Training",descCharCount:90},{path:"/learn/it-training/it-soft-skills/it-project-management",title:"Project Management Training, PMP Certification Training | CBT Nuggets",descCharCount:0},{path:"/learn/it-training/emc-information-storage-and-management-emcisa",title:"EMC Training, Information Storage and Management (EMCISA) | CBT Nuggets",h1:"EMC Information Storage and Management (EMCISA) Training",descCharCount:0},{path:"/learn/it-training/comptia-security-plus-sy0-401",title:"CompTIA Security+ SY0-401, Security Plus Certification Training | CBT Nuggets",descCharCount:0},{path:"/learn/it-training/citrix-training/citrix-virtualization",title:"Citrix Virtualization Training, Citrix Certification Training | CBT Nuggets",h1:"Citrix Virtualization Training",descCharCount:0},{path:"/learn/it-training/microsoft-windows-7-configuration-70-680",title:"Microsoft Windows 7 Training Config 70-680: Course Introduction | CBT Nuggets",descCharCount:0},{path:"/learn/it-training/network-administration-engineering/voip",title:"VoIP Training Videos, VoIP Certification Training | CBT Nuggets",h1:"VoIP Training",descCharCount:0},{path:"/learn/it-training/angularjs-training",title:"AngularJS Training: Introduction to AngularJS | CBT Nuggets",h1:"AngularJS Training",descCharCount:0},{path:"/learn/it-training/cisco-ccda-network-design-640-864",title:"CCDA Training - Cisco CCDA 640-864 | CBT Nuggets",description:"Expert led CCDA training from CBT Nuggets. Actually learn with our subscription that offers ".concat("CyberVista"," IT Training Exams, Virtual Labs, Quizzes, and Coaching. Start FREE today!"),descCharCount:167},{path:"/learning-paths",title:"IT Learning Paths - Paths to Becoming an IT | CBT Nuggets",descCharCount:0},{path:"/certification-playlist/vmware/217878",title:"VMware VCP6-DCV Certification Training | CBT Nuggets",descCharCount:0},{path:"/certification-playlist/vmware/141506",title:"VMware VCA-DCV Certification Training | CBT Nuggets",descCharCount:0},{path:"/certification-playlist/vmware/109264",title:"VMware VCP5-DCV Certification Training | CBT Nuggets",descCharCount:0},{path:"/certification-playlist/microsoft/56620",title:"MCSA Certification Training: Upgrade to MCSA Server 2012 | CBT Nuggets",descCharCount:0},{path:"/certification-playlist/microsoft/56451",title:"MCSA: SQL Server 2012 Certification Training | CBT Nuggets",h1:"MCSA: SQL Server 2012 Certification Training",descCharCount:0},{path:"/learn/it-training/microsoft-windows-server-2012-70-412-with-r2-updates",title:"Microsoft Windows Server 2012 70-412 with R2 Updates Training | CBT Nuggets",descCharCount:0},{path:"/certification-playlist/microsoft/99008",title:"MCSE: SharePoint Certification Training Online | CBT Nuggets",descCharCount:0},{path:"/certification-playlist/microsoft/56449",title:"MCSE: Private Cloud Certification 2012 Training | CBT Nuggets",descCharCount:0},{path:"/certification-playlist/microsoft/56447",title:"MCSE Desktop Infrastructure 2012 Certification Training | CBT Nuggets",descCharCount:0},{path:"/certification-playlist/microsoft/56446",title:"MCSE Server Infrastructure 2012 Certification Training | CBT Nuggets",descCharCount:0},{path:"/certification-playlist/cisco/277064",title:"CCNA Collaboration Certification Training | CBT Nuggets",descCharCount:0},{path:"/certification-playlist/cisco/82098",title:"CCNA Data Center Certification Training | CBT Nuggets",descCharCount:0},{path:"/certification-playlist/cisco/113789",title:"CCNA Service Provider Certification Training | CBT Nuggets",descCharCount:0},{path:"/certification-playlist/cisco/14783",title:"CCNP Routing and Switching Certification Training | CBT Nuggets",descCharCount:0},{path:"/certification-playlist/cisco/95467",title:"Cisco Data Center Unified Computing Support Specialist Certification Training | CBT Nuggets",descCharCount:0},{path:"/certification-playlist/cisco/153322",title:"Cisco Data Center Unified Fabric Support Specialist Certification Training | CBT Nuggets",descCharCount:0},{path:"/certification-playlist/comptia",h1:"CompTIA Certification Training Playlist",descCharCount:0},{path:"/certification-playlist/comptia/94392",title:"CompTIA A+ (Exams 220-801 and 220-802) Certification Training | CBT Nuggets",descCharCount:0},{path:"/certification-playlist/comptia/273063",title:"CompTIA A+ (Exams 220-901, 220-902) Certification Training Videos",descCharCount:0},{path:"/certification-playlist/comptia/14957",title:"CompTIA Linux+ Powered by LPI Certification Training | CBT Nuggets",descCharCount:0},{path:"/certification-playlist/aws",h1:"AWS Certification Training Playlist",descCharCount:0},{path:"/certification-playlist/juniper",h1:"Juniper Certification Training Playlist",descCharCount:0},{path:"/certification-playlist/juniper/138795",title:"Juniper Networks Certified Specialist Security (JNCIS-SEC) Certification Training | CBT Nuggets",descCharCount:0},{path:"/certification-playlist/linux/141319",title:"LPI Linux Essentials Certification Training | CBT Nuggets",descCharCount:0},{path:"/certification-playlist/microsoft/14768",title:"MCITP: Enterprise Messaging Administrator Server 2010 Certification Training | CBT Nuggets",descCharCount:0},{path:"/certification-playlist/microsoft/14760",title:"MCITP: SharePoint Administrator 2010 Certification Training | CBT Nuggets",descCharCount:0},{path:"/certification-playlist/microsoft/28167",title:"MCSA: Windows Server 2008 Certification Training | CBT Nuggets",descCharCount:0},{path:"/certification-playlist/microsoft/56445",title:"MCSA: Windows Server 2012 Certification Training | CBT Nuggets",descCharCount:0},{path:"/certification-playlist/microsoft/263220",title:"MCSD Azure Solutions Architect Certification Training | CBT Nuggets",descCharCount:0},{path:"/certification-playlist/microsoft/139380",title:"Microsoft Technology Associate (MTA): IT Infrastructure Certification Training | CBT Nuggets",descCharCount:0},{path:"/learn/it-training/building-a-network-design-that-works",title:"Network Design Training, Online Networking Courses | CBT Nuggets",descCharCount:0},{path:"/learn/it-training/cisco-ccnp-voice-cvoice-642-437",title:"Cisco VoIP Training (642-437), CCNP Voice Training | CBT Nuggets",descCharCount:0},{path:"/learn/it-training/microsoft-mcse-sql-server-2012-70-465",title:"SQL Server 2012 70-465 Training | CBT Nuggets",descCharCount:0},{path:"/learn/it-training/microsoft-exchange-server-2013-70-341",title:"Microsoft Exchange 2013 70-341 Training | CBT Nuggets",descCharCount:0},{path:"/learn/it-training/microsoft-programming-net-4-software-development-fundamentals",title:"Microsoft Programming .Net 4 Training 98-361 | CBT Nuggets",descCharCount:0},{path:"/learn/it-training/cisco-ccnp-voice-cipt1-642-447",title:"Cisco VoIP CCNP Voice Training - CIPT1 v8.0 642-447 | CBT Nuggets",descCharCount:0},{path:"/learn/it-training/amazon-aws-certified-solutions-architect-architecting-for-aws",title:"AWS: Certified Solutions Architect - Associate Training | CBT Nuggets",descCharCount:0},{path:"Effective online Puppet Training with CBT Nuggets. Start your FREE week today!",title:"CPD200: Google Cloud Platform Training | CBT Nuggets",descCharCount:0},{path:"/learn/it-training/microsoft-windows-server-2012-training-70-411-r2",title:"Windows Server 2012 70-411 R2 Updates Training | CBT Nuggets",descCharCount:0},{path:"/learn/it-training/cisco-ccnp-routing-switching-300-115",title:"Cisco CCNP Routing/Switching 300-115 SWITCH Training | CBT Nuggets",description:"Cisco CCNP Routing/Switching Training from the industry experts at CBT Nuggets. Actively learn with Virtual Labs, ".concat("CyberVista"," IT Training Exams, Quizzes, and Coaching. Start FREE today!"),descCharCount:175},{path:"/learn/it-training/cisco-ccnp-security-formerly-known-as-ccsp-exam-pack-642-504-snrs-update",title:"Cisco CCNP Security Training 642-504: SNRS (update) | CBT Nuggets",descCharCount:0},{path:"/learn/it-training/microsoft-sql-server-2012-70-463",title:"Microsoft SQL Server Training - 2012 70-463 | CBT Nuggets",descCharCount:0},{path:"/learn/it-training/citrix-xenapp-xendesktop-7-cca-v-ccp-v",title:"Citrix XenApp XenDesktop 7.5 CCA-V CCP-V Training | CBT Nuggets",h1:"Citrix XenApp / XenDesktop 7.5 CCA-V CCP-V Training",descCharCount:0},{path:"/learn/it-training/microsoft-office-365-identities-and-requirements-70-346",title:"Microsoft Office 365 70-346 Training: Identities and Requirements | CBT Nuggets",h1:"Microsoft Office 365 Identities and Requirements 70-346 Training",descCharCount:0},{path:"/learn/it-training/cisco-ccnp-security-vpn-642-648",title:"CCNP Security Training - VPN v2.0 | CBT Nuggets",h1:"Cisco CCNP Security VPN v2.0 Training",descCharCount:0},{path:"/learn/it-training/amazon-aws-certified-sysops-administrator-associate",title:"AWS: Certified SysOps Administrator Training - Associate Level | CBT Nuggets",h1:"AWS: Certified SysOps Administrator - Associate Level Training",descCharCount:0},{path:"/learn/it-training/devops",title:"DevOps Training Online, DevOps Certification Training | CBT Nuggets",h1:"DevOps Training",descCharCount:0},{path:"/learn/it-training/microsoft-windows-10-70-698-installing-and-configuring-windows-devices",title:"70-698 - Microsoft Windows 10 Training : Install & Config Windows 10",h1:"Microsoft Windows 10 70-698: Installing and Configuring Windows 10 Training",descCharCount:0},{path:"/learn/it-training/gns3-training",title:"GNS3 Training Online, GNS3 Tutorial | CBT Nuggets",h1:"GNS3 Training",descCharCount:0},{path:"/learn/it-training/microsoft-windows-10-70-697-configuring-windows-devices",title:"70-697 - Microsoft Windows 10 Training: Configure Windows Devices | CBT Nuggets",h1:"Microsoft Windows 10 70-697 Training: Configuring Windows Devices",descCharCount:0},{path:"/learn/it-training/microsoft-azure-70-533",title:"70-533 - Microsoft Azure Training | CBT Nuggets",h1:"Microsoft Azure Training 70-533",descCharCount:0},{path:"/learn/it-training/java-essentials",title:"Java Training Course - Java Essentials - Learn Core Java! | CBT Nuggets",h1:"Java Training: Essentials",descCharCount:0},{path:"/learn/it-training/amazon-web-services-training",title:"AWS Training, Amazon Web Services Training | CBT Nuggets",h1:"Amazon Web Services (AWS) Training",descCharCount:0},{path:"/learn/it-training/itil-training",title:"ITIL Training, ITIL IT Documentation Training | CBT Nuggets",descCharCount:0},{path:"/learn/it-training/netapp-certified-storage-associate-ncsa-ns0-145",title:"NetApp Certified Storage Associate (NCSA) Training NS0-145 | CBT Nuggets",descCharCount:0},{path:"/learn/it-training/puppet-fundamentals",title:"Puppet Training: Fundamentals, Puppet Certification Training | CBT Nuggets",descCharCount:0},{path:"/learn/it-training/google-training",title:"Google Training, Google Cloud Training | CBT Nuggets",h1:"Google Training",descCharCount:0},{path:"/learn/it-training/microsoft-training/microsoft-server-administration",title:"Microsoft Server Administration Training, Windows Server Training | CBT Nuggets",descCharCount:0},{path:"/learn",title:"Dashboard | CBT Nuggets",description:"Start a FREE week of unlimited online IT training. Learn from top experts, Virtual Labs, quizzes, and coaches. CBT Nuggets - Watch. Learn. Conquer.",descCharCount:147},{path:"/learn/it-training/microsoft-training",title:"Online Microsoft Certifications Training Courses | CBT Nuggets",description:"Learn from expert trainers to prepare for your Microsoft Certifications. Increase your chances of getting hired and improve your career outlook with practice exams, virtual labs, accountability coaches, and more. Start your free week of training today!",h1:"Training Courses for Microsoft Certifications",descCharCount:144},{path:"/learn/it-training/oracle-training",title:"Oracle Training - Learn Java with Java Training | CBT Nuggets",description:"Oracle training from the experts. Save time, money, and alleviate exam anxiety with CBT Nuggets online training. Start today!",descCharCount:127},{path:"/learn/it-training/cisco-training/cisco-security",title:"Cisco Security Training - Cisco Training | CBT Nuggets"},{path:"/resources",title:"Resources - IT Training Educational Resources | CBT Nuggets"}],Me=r(1);function Ue(e){return(Ue="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Be(e,t){for(var r=0;r0);var t,r},r=function(){var r=null==e?void 0:e.activePlan,n=null==r?void 0:r.hasTrial,o=null==e?void 0:e.plans;if(window.dataLayer&&t()){var a={event:"freemiumStatus",isFreeTrial:n,hasActiveSubscription:!!r,hasSubscriptionHistory:!Le.a.isEmpty(o)};window.dataLayer.push(a)}};return null},Ke=r(961);function Xe(e,t,r,n,o,a,i){try{var c=e[a](i),u=c.value}catch(e){return void r(e)}c.done?t(u):Promise.resolve(u).then(n,o)}function Ze(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var a=e.apply(t,r);function i(e){Xe(a,n,o,i,c,"next",e)}function c(e){Xe(a,n,o,i,c,"throw",e)}i(void 0)}))}}var et=h.e.button.withConfig({displayName:"StyledReturnToAdminButton",componentId:"sc-1di3h4q-0"})(["&&{margin-left:2rem;}"]),tt=function(){var e=Object(g.b)(Ce.a),t=e.userId,r=e.stopImpersonation,a=e.impersonating,i="/admin/userdetail?member=".concat(t),c=Object(n.useCallback)(Ze(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r();case 2:"undefined"!=typeof window&&(window.location.href=i);case 3:case"end":return e.stop()}}),e)}))),[r,i]);return o.a.createElement(Ke.a.Error,{visible:a},o.a.createElement("p",null,"Impersonating a user ",o.a.createElement(et,{onClick:function(){return c()}},"Return to Admin")))},rt=r(32),nt=r(38),ot="".concat(Q.f,"/it-training/virtual-lab/:seoslug/:videoNumber"),at="".concat(Q.f,"/it-training/virtual-lab/:seoslug/:videoNumber/:playlistId"),it=[ot,at,"/complete-subscription"],ct=Object(nt.a)((function(){return Promise.all([r.e(0),r.e(47),r.e(49)]).then(r.bind(null,2012))})),ut=Object(nt.a)((function(){return r.e(17).then(r.bind(null,1988))})),st=function(){return o.a.createElement(s.g,null,o.a.createElement(rt.c,{exact:!0,path:ot,name:"VirtualLab",component:ct}),o.a.createElement(rt.c,{path:at,name:"VirtualLab",component:ct}),o.a.createElement(rt.c,{path:"/complete-subscription",name:"CompleteSubscription",component:ut}))},lt=r(503),dt=function(){return o.a.createElement("span",{id:"cbt-build-metadata",className:"cbt-build-metadata","data-at":"CBT-BuildMetadata","data-projectname":"static-learner","data-packageversion":lt.version,"data-nodeenv":"production"})},ft=function(){return Object(n.useEffect)((function(){var e=function(e){var t=e.key;("Enter"===t||"Tab"===t||" "===t||/Arrow/.test(t)||"Home"===t||"End"===t||"Escape"===t)&&(document.body.dataset.keyboardNavigator="true")};return document.addEventListener("keydown",e),function(){document.removeEventListener("keydown",e)}})),Object(n.useEffect)((function(){var e=function(){delete document.body.dataset.keyboardNavigator};return document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}})),null},pt=r(101),yt=function(){return o.a.createElement(o.a.Fragment,null,o.a.createElement(we,null),o.a.createElement(ft,null),o.a.createElement(Ne,null),o.a.createElement(Qe,null),o.a.createElement($e,null),o.a.createElement(tt,null),o.a.createElement(pt.b,null),o.a.createElement(st,null),o.a.createElement(dt,null))},bt=r(964);function mt(e){return(mt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function gt(e,t){for(var r=0;r0?"".concat(t+1," days remaining on your"):void 0}},{key:"calcFreeTrialDaysRemaining",value:function(e){var t=e.split(/[()]/)[1];return Math.floor(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date,r=Zt()("1day");return(er(t)-er(Number(e)))/r*-1}(t))}},{key:"getUpgradeCallToActionText",value:function(){var e=this.props,t=e.hasSubscriptionHistory,r=e.isReseller;return t?"Your subscription has expired. This is a Free Learner Account. Upgrade now to unlock our full learning library and all features.":r?"To start your subscription please contact your CBT Nuggets reseller":"This is a Free Learner Account. Upgrade now to unlock our full learning library and all features."}},{key:"renderModalButton",value:function(){return o.a.createElement(Rt.a,{"data-at":"TrialBanner-modalActivatePracticeExams",small:!0,onClick:this.showModal},"Activate practice exams.")}},{key:"renderAuditReactivateButton",value:function(e){var t=e.showExclamationMark;return this.state.checkingIap?o.a.createElement(Rt.a,{"data-at":"TrialBanner-reactivateNowProcessingButton",small:!0,disabled:!0},"Processing..."):o.a.createElement(Rt.a,{"data-at":"TrialBanner-reactivateNowButton",small:!0,onClick:this.checkIAPCaseBeforeRedirect},"Reactivate Now",t?"!":"")}},{key:"renderRightSideText",value:function(){var e=this.props,t=e.isExpired,r=e.hasTrial,n=e.memberType;return!t&&r?o.a.createElement(br,null,this.renderModalButton()):n&&"learner"!==n?"legacy"===n?o.a.createElement(br,{"data-at":"TrialBanner=legacyReactivateText"},"To reactivate, call sales."," ",o.a.createElement(Dt.a,{small:!0,href:"tel:+15412845522"},"541-284-5522")):o.a.createElement(br,null,this.renderAuditReactivateButton({showExclamationMark:!1})):o.a.createElement(br,null,this.renderAuditReactivateButton({showExclamationMark:!0}))}},{key:"render",value:function(){var e=this.props,t=e.isFreemium,r=e.hasTrial,n=e.trialEndDate,a=e.hasSubscriptionHistory,i=e.isReseller;return t?i&&!a?o.a.createElement(pr,null,o.a.createElement(dr,null,o.a.createElement(yr,null,this.getUpgradeCallToActionText()))):o.a.createElement(pr,null,o.a.createElement(dr,null,o.a.createElement(yr,null,this.getUpgradeCallToActionText()),o.a.createElement(It.a,{className:"small-center logged-out",routeTo:"/upgrade"}))):r&&n?o.a.createElement(o.a.Fragment,null,o.a.createElement(fr,null,o.a.createElement(dr,null,o.a.createElement(yr,null,this.getDaysRemainingText(n)),o.a.createElement(Dt.a,{"data-at":"TrialBanner-freeWeekButton",small:!0,href:"/youraccount/plan-and-payment"}," ","free week."),this.renderRightSideText())),o.a.createElement(Kt,{visible:this.state.modalVisible,hideModal:this.hideModal})):null}}])&&nr(t.prototype,r),n&&nr(t,n),i}(n.PureComponent);mr.propTypes={isReseller:ke.a.bool,isFreemium:ke.a.bool,hasTrial:ke.a.bool,trialEndDate:ke.a.string,memberType:ke.a.oneOf(["legacy","learner"]),isExpired:ke.a.bool,hasSubscriptionHistory:ke.a.bool};var gr=mr,hr=["/youraccount","/youraccount/plan-and-payment","/upgrade"],vr=h.e.div.withConfig({displayName:"StyledUpgradeAccountBannerWrapper",componentId:"sc-1fm58y2-0"})(["width:100%;height:6.5rem;flex:0 auto;margin:0;padding:0;display:inline-flex;align-items:center;@media screen and (max-width:865px){display:none;}"]),Er=function(e){return Le.a.includes(hr,Le.a.get(window,"location.pathname"))||Le.a.includes(hr,Le.a.get(e,"location.pathname"))},Or=Object(s.o)(Object(d.connect)((function(e,t){return{ignoredRoutePath:Er(t)}}))((function(e){var t,r,n=Object(g.b)(Ce.a).loggedIn,a=Object(g.b)(Ie.a).memberType,i=Object(g.b)(je.a),c=i.subscriptionData,u=i.isFreemium,s=i.isAccessCodeUser,l=null==c||null===(t=c.activePlan)||void 0===t?void 0:t.hasTrial,d=null==c||null===(r=c.activePlan)||void 0===r?void 0:r.subscriptionStop,f=null==c?void 0:c.hasFutureSubscription,p=Le.a.isEmpty(null==c?void 0:c.activePlan),y=!Le.a.isEmpty(null==c?void 0:c.plans),b=e.ignoredRoutePath,m=Object(g.b)(Re.a).isReseller;return n&&a?b||s||f&&!l?null:(p||l)&&u?o.a.createElement(vr,null,o.a.createElement(gr,{isFreemium:u,hasTrial:l,memberType:a,trialEndDate:d,hasSubscriptionHistory:y,isReseller:m})):null:null}))),Sr=r(16),_r=r(47),Pr=r.n(_r),wr=r(956),Tr=r(482);function jr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==r)return;var n,o,a=[],i=!0,c=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{i||null==r.return||r.return()}finally{if(c)throw o}}return a}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Cr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Cr(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Cr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:"cbt_initialize_data",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};void 0!==("undefined"==typeof window?"undefined":en(window))&&(null===(e=window.dataLayer)||void 0===e||e.push(Xr({event:t},r)))},rn=r(279);function nn(e,t,r,n,o,a,i){try{var c=e[a](i),u=c.value}catch(e){return void r(e)}c.done?t(u):Promise.resolve(u).then(n,o)}var on=h.e.div.withConfig({displayName:"StyledFooterContainer",componentId:"sc-11z1j2-0"})(["#emailSubmitSuccess,#emailSubmitFailure{font-size:",";}"],(function(e){return e.theme.fonts.textStandard})),an=Object(s.o)(Object(d.connect)((function(e){return{showFooter:!Le.a.get(e,"appUI.isPoppedOut")}}))((function(e){var t=Object(g.b)(Ce.a),r=t.loggedIn,a=t.isLMIUser,i=Object(g.b)(De.a).userSummary,c=ENV_CONFIGURATION.chatData,u=c.chatId,s=c.org,l=c.deployment,d=c.url;Object(n.useEffect)((function(){f()}),[]);var f=function(){var e,t=(e=regeneratorRuntime.mark((function e(){var t,r,n,o,a,c,u,s,l;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(r=null!==(t=localStorage.getItem("cbtauth"))&&void 0!==t?t:null)){e.next=16;break}if(o=JSON.parse(r).userId,a=JSON.parse(r).loggedIn,c="cbt_initialize_data",(u={membership:{}}).membership.logged_in=a,u.membership.user_id=o,u.membership.member_id=o,!a||null==i||null===(n=i.authInfo)||void 0===n||!n.email){e.next=15;break}return e.next=12,Object(rn.a)({email:i.authInfo.email});case 12:s=e.sent,l=s.emailForGtm,u.membership.email=l;case 15:tn(c,u);case 16:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var a=e.apply(t,r);function i(e){nn(a,n,o,i,c,"next",e)}function c(e){nn(a,n,o,i,c,"throw",e)}i(void 0)}))});return function(){return t.apply(this,arguments)}}();return e.showFooter&&!a?o.a.createElement(zr.a,{chatId:u,chatOrg:s,chatDeployment:l,chatUrl:d},o.a.createElement(on,null,o.a.createElement($r,{isLoggedIn:r}))):null})));function cn(){return(cn=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r0?"".concat(c.toFixed(0)," seconds"):"Expired"))))};function Qn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==r)return;var n,o,a=[],i=!0,c=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{i||null==r.return||r.return()}finally{if(c)throw o}}return a}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return $n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return $n(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:To(window.location.search),t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload;switch(r){case"SET_FEATURE_FLAG":return Po(Po({},e),{},wo({},n.name,!0===n.value));case"TOGGLE_FEATURE_FLAG":return Po(Po({},e),{},wo({},n.name,!e[n.name]));default:return e}}var Co=r(146),Io={status:Me.c,error:{}},Ro=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Io,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload;switch(r){case Co.a:return{status:Me.b};case Co.b:return{error:n,status:Me.a};case Co.c:return{status:Me.d};default:return e}};function Do(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function No(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:Lo,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload;switch(r){case Co.f:return{status:Me.d};case Co.d:return{status:Me.b};case Co.e:var o=Le.a.get(n,"data[0]",n);return{error:No(No({},o),{},{action:r}),status:Me.a};default:return e}},ko=Object(l.combineReducers)({forgotPassword:Ro,updatePassword:xo}),Go=r(138);function Mo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Uo(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:Fo,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload;switch(r){case Go.c:return Uo(Uo({},e),{},{status:Me.b});case Go.d:var o,a=n.autoStart,i=n.videoIndex,c=n.number,u=n.seoslug;o=(Vo=Le.a.filter(n.data.videos,(function(e){return"final"===e.status})))[i]?Vo[i]:Vo[0];var s=i===Vo.length-1;return Le.a.assign({},e,Uo(Uo({},n.data),{},{videos:Vo,videoNumber:Number(c),seoslug:u,autoStart:a,status:Me.d,selectedVideo:Uo(Uo({},o),{},{videoIndex:i,isLastVideo:s})}));case Go.b:return Uo(Uo({},e),{},{status:Me.a,error:n});case Go.e:return Le.a.assign({},e,{autoStart:n});case Go.g:var l,d=n;l=Vo[d]?Vo[d]:Vo[0];var f=d===Vo.length-1;return Le.a.assign({},e,{selectedVideo:Uo(Uo({},l),{},{videoIndex:d,isLastVideo:f})});case Go.f:return Le.a.assign({},e,{position:n});case"FETCH_PLAYLIST_SUMMARY_SUCCESS":return Uo(Uo({},e),{},{autoStart:n.autoStart});case Go.a:return Uo(Uo({},e),{},{ratings:{userRating:{value:t.payload.userRating.rating},ratingSummary:t.payload.ratingSummary,resource:t.payload.resource}});default:return e}},Yo=r(217);function zo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function qo(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:Jo,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload;switch(r){case Yo.d:var o=n.videoId,a=Le.a.get(e.videos[o],"isOpen",!1);return qo(qo({},e),{},{videos:qo(qo({},e.videos),{},Wo({},o,qo(qo({},e.videos[o]),{},{isOpen:!a})))});case Yo.b:var i=n.videoId;return qo(qo({},e),{},{videos:qo(qo({},e.videos),{},Wo({},i,qo(qo({},e.videos[i]),{},{fetchStatus:Me.b})))});case Yo.c:var c=n.videoId;return qo(qo({},e),{},{videos:qo(qo({},e.videos),{},Wo({},c,qo(qo({},e.videos[c]),{},{transcript:n.data,fetchStatus:Me.d})))});case Yo.a:var u=n.videoId;return qo(qo({},e),{},{videos:qo(qo({},e.videos),{},Wo({},u,qo(qo({},e.videos[u]),{},{fetchStatus:Me.a,error:n})))});default:return e}},$o=r(258);function Ko(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Xo(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:ea,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload;switch(r){case $o.b:return Xo(Xo({},e),{},{status:Me.b});case $o.c:return Xo(Xo(Xo({},e),t.payload),{},{status:Me.d});case $o.a:return Xo(Xo({},e),{},{status:Me.a,error:n});default:return e}},ra=r(286);function na(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function oa(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:ia,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload;switch(r){case ra.b:return oa(oa({},e),{},{status:Me.b});case ra.c:return oa(oa({},e),{},{data:n,status:Me.d});case ra.a:return oa(oa({},e),{},{status:Me.a,error:n});default:return e}};function ua(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function sa(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:da,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload;switch(r){case"FETCH_COURSE_RATING_PENDING":return sa(sa({},e),{},{status:Me.b});case"FETCH_COURSE_RATING_SUCCESS":return sa(sa({},e),{},{data:n,status:Me.d});case"FETCH_COURSE_RATING_ERROR":return sa(sa({},e),{},{status:Me.a,error:n});default:return e}},pa=r(287);function ya(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ba(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:ga,t=arguments.length>1?arguments[1]:void 0,r=t.examID,n=t.type,o=t.payload;switch(n){case pa.b:var a;return ba(ba({},e),{},(ma(a={},r,{status:Me.b}),ma(a,"status",Me.b),a));case pa.c:var i;return ba(ba({},e),{},(ma(i={},r,{status:Me.d,data:o}),ma(i,"status",Me.d),i));case pa.a:var c;return ba(ba({},e),{},(ma(c={},r,{status:Me.a,error:o}),ma(c,"status",Me.a),c));default:return e}},va=r(263);function Ea(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Oa(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:_a,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload;switch(r){case va.b:return Oa(Oa({},e),{},{status:Me.b});case va.c:return Oa(Oa({},e),{},{data:n,status:Me.d});case va.a:return Oa(Oa({},e),{},{status:Me.a,error:n});default:return e}},wa=r(50);function Ta(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ja(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:Ia,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload;switch(r){case wa.k:return Ia;case wa.d:return ja(ja({},e),{},{session:{status:Me.b}});case wa.e:return ja(ja({},e),{},{session:{id:n.session_id,status:Me.d}});case wa.c:return ja(ja({},e),{},{session:{status:Me.a,error:n}});case wa.o:return ja(ja({},e),{},{currentAnswer:{status:Me.b}});case wa.p:return ja(ja({},e),{},{currentAnswer:{status:Me.d,data:n}});case wa.n:return ja(ja({},e),{},{currentAnswer:{status:Me.a,error:n}});case wa.x:return ja(ja({},e),{},{currentAnswer:{skip:{status:Me.b}}});case wa.y:return ja(ja({},e),{},{currentAnswer:{skip:{status:Me.d}}});case wa.w:return ja(ja({},e),{},{currentAnswer:{skip:{status:Me.a,error:n}}});case wa.g:return ja(ja({},e),{},{report:{status:Me.b}});case wa.h:return ja(ja({},e),{},{report:{status:Me.d}});case wa.f:return ja(ja({},e),{},{report:{status:Me.a,error:n}});case wa.j:return ja(ja({},e),{},{currentAnswer:Ia.currentAnswer});case wa.m:return ja(ja({},e),{},{report:ja(ja({},e.report),{},{text:n})});case wa.a:return ja(ja({},e),{},{report:Ia.report});case wa.q:var o=n.questionId,a=n.answerValue;return ja(ja({},e),{},{answers:ja(ja({},e.answers),{},Ca({},o,a))});case wa.t:return ja(ja({},e),{},{questionIndex:n});case wa.r:return ja(ja({},e),{},{quizFinished:n});case wa.i:return ja(ja({},e),{},{answers:Ia.answers,currentAnswer:Ia.currentAnswer});case wa.b:var i=Le.a.omit(e.answers,n);return ja(ja({},e),{},{answers:i});case wa.l:return ja(ja({},e),{},{retakingQuestion:n});case wa.s:return ja(ja({},e),{},{fromQuizPrompt:n});case wa.u:return ja(ja({},e),{},{quizReviewClicked:n});case wa.v:return ja(ja({},e),{},{transcriptClicked:n});default:return e}},Da=r(214);function Na(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Aa(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:xa,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload;switch(r){case Da.b:return Aa(Aa({},e),{},{status:Me.b});case Da.c:return Aa(Aa(Aa({},e),t.payload),{},{status:Me.d});case Da.a:return Aa(Aa({},e),{},{status:Me.a,error:n});case Da.d:return xa;default:return e}},Ga=r(288);function Ma(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ua(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:Fa,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload;switch(r){case Ga.b:return Ua(Ua({},e),{},{status:Me.b});case Ga.c:return Ua(Ua({},e),{},{data:n,status:Me.d});case Ga.a:return Ua(Ua({},e),{},{status:Me.a,error:n});default:return e}},Ha=r(289);function Ya(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function za(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:Wa,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload;switch(r){case Ha.b:return za(za({},e),{},{status:Me.b});case Ha.c:return za(za({},e),{},{data:n,status:Me.d});case Ha.a:return za(za({},e),{},{status:Me.a,error:n});default:return e}},Qa=r(193);function $a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ka(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:Za,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload;switch(r){case Qa.c:return Ka(Ka({},e),{},{playerState:n,countdown:0});case Qa.b:return Ka(Ka({},e),{},{countdown:n});case Qa.d:return Ka(Ka({},e),{},{autoPlayCancelled:n});case Qa.a:return Ka(Ka({},e),{},{autoNext:n});case Qa.e:var o=!e.autoPlayNextVideo;return localStorage.setItem("CBTN_POPOUT_AUTOPLAY",o),Ka(Ka({},e),{},{autoPlayNextVideo:o});default:return e}},ti=r(389),ri={contentTabIndex:0},ni=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ri,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload;switch(r){case ti.a:return Le.a.assign({},e,{contentTabIndex:n});default:return e}},oi=r(109);function ai(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ii(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:ui,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload;switch(r){case oi.h:return ii(ii({},e),{},{status:Me.b});case oi.i:return ii(ii(ii({},e),t.payload),{},{status:Me.d});case oi.g:return ii(ii({},e),{},{status:Me.a,error:n});case oi.e:return ii(ii({},e),{},{createPlayList:{status:Me.b}});case oi.f:return ii(ii({},e),{},{createPlayList:{data:n,status:Me.d}});case oi.d:return ii(ii({},e),{},{createPlayList:{error:n,status:Me.a}});case oi.b:return ii(ii({},e),{},{addToPlayList:{status:Me.b}});case oi.c:return ii(ii({},e),{},{addToPlayList:{data:n,status:Me.d}});case oi.a:return ii(ii({},e),{},{addToPlayList:{error:n,status:Me.a}});case oi.j:return ii(ii({},e),{},{videoId:n});default:return e}};function li(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function di(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:pi,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload;switch(r){case"SEND_VIDEO_RATING_PENDING":return di(di({},e),{},{rating:n.rating,send:{status:Me.b}});case"SEND_VIDEO_RATING_SUCCESS":return di(di({},e),{},{send:{status:Me.d,data:n}});case"SEND_VIDEO_RATING_ERROR":return di(di({},e),{},{send:{status:Me.a,error:n}});case"GET_VIDEO_RATING_PENDING":return di(di({},e),{},{get:{status:Me.b}});case"GET_VIDEO_RATING_SUCCESS":return di(di({},e),{},{get:{status:Me.d,data:n}});case"GET_VIDEO_RATING_ERROR":return di(di({},e),{},{get:{status:Me.a,error:n}});case"RESET_VIDEO_RATING":return pi;default:return e}},bi=r(290);function mi(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function gi(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:vi,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload,o=t.uniqueLabId;switch(r){case bi.b:return gi(gi({},e),{},hi({},o,{status:Me.b}));case bi.c:return gi(gi({},e),{},hi({},o,{status:Me.d,data:n}));case bi.a:return gi(gi({},e),{},hi({},o,{status:Me.a,error:n}));default:return e}},Oi=Object(l.combineReducers)({courseVideos:Ho,courseVideosProgress:ta,courseProgress:ca,courseRating:fa,courseTranscript:Qo,courseUI:ni,examCatalog:ha,quizzesProgress:Pa,quizData:Ra,quizNotification:ka,leaderBoardRank:Va,quizSession:Ja,videoPlayer:ei,playList:si,videoRating:yi,virtualLabs:Ei}),Si=r(471);function _i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Pi(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:Ti,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload;switch(r){case Si.a:return Pi(Pi({},e),{},{isPoppedOut:n});default:return e}},Ci=r(130);function Ii(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ri(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:Ni,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload;switch(r){case Te.a:return Ri(Ri({},e),{},{status:Me.b});case Te.c:return Ri(Ri({},e),{},{data:n,status:Me.d});case Te.b:return Ri(Ri({},e),{},{status:Me.a,error:n});case Ci.f:return Ri(Ri({},e),{},{data:Ri(Ri({},e.data),{},{groupRoles:Ri(Ri({},e.data.groupRoles),{},{owner:!1,admin:!0})})});case ee.a:return Ni;default:return e}},Li=r(123);function xi(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ki(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:Mi,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload;switch(r){case Li.g:return ki(ki({},e),{},{profile:ki(ki({},e.profile),{},{status:Me.b})});case Li.i:return ki(ki({},e),{},{profile:{status:Me.d}});case Li.h:return ki(ki({},e),{},{profile:ki(ki({},e.profile),{},{status:Me.a,error:n})});case Li.a:return ki(ki({},e),{},{billing:ki(ki({},e.billing),{},{status:Me.b})});case Li.c:return ki(ki({},e),{},{billing:{status:Me.d}});case Li.b:return ki(ki({},e),{},{billing:ki(ki({},e.billing),{},{status:Me.a,error:n})});case Li.d:return ki(ki({},e),{},{user:ki(ki({},e.user),{},{status:Me.b})});case Li.f:return ki(ki({},e),{},{user:{data:n,status:Me.d}});case Li.e:return ki(ki({},e),{},{user:ki(ki({},e.user),{},{status:Me.a,error:n})});default:return e}},Bi=r(66),Fi=r.n(Bi),Vi=r(135),Hi=r.n(Vi),Yi={refineTextBoxOptionDefault:{optionSelected:{name:"email",value:"sortByEmail"},value:""}},zi=r(31);function qi(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Wi(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:null,t=uc.search_type,r=uc.refine,n=ic.get("report_filter_refined_text")||Yi.refineTextBoxOptionDefault;if(!Le.a.isEmpty(t)&&!Le.a.isEmpty(r)&&e!==zi.RESET_DATE_FILTER){var o=t.toUpperCase()+t.slice(1);n={optionSelected:{name:t,value:"sortBy".concat(o)},value:r}}return{refineTextBox:Wi({},n)}},dc=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=uc.account_groups,n=!1,o=ic.get("report_filter_selectedGroups")?ic.get("report_filter_selectedGroups").split(","):[];return Le.a.isEmpty(r)||t===zi.RESET_GROUP_FILTER||t===zi.SOFT_RESET_GROUP_FILTER||(o=r.split(","),n=!1),t===zi.SOFT_RESET_GROUP_FILTER&&o.length<=0&&(o=e.administratedGroupsList.map((function(e){return e.group_id})),n=!0),ic.get("report_filter_selectedAllGroups")&&(n="true"===ic.get("report_filter_selectedAllGroups")),o.length<=0&&(n=!0),{selectedGroupsList:o,selectedAll:n}},fc=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=uc.start_date,r=uc.end_date,n=uc.since,o=uc.until,a=ic.get("report_filter_from")||sc(7),i=ic.get("report_filter_to")||Fi()().format(),c=ic.get("report_filter_option")||"7",u=ic.get("report_filter_label")||"Last 7 Days";return cc.includes(c)&&(a=sc(c),i=Fi()().endOf("day").format()),(Le.a.isEmpty(t)||Le.a.isEmpty(r))&&(Le.a.isEmpty(n)||Le.a.isEmpty(o))||e===zi.RESET_DATE_FILTER||(a=t||n,i=r||o,c="custom",u="Custom"),{label:u,reportFilterFrom:a,reportFilterTo:i,reportFilterSelectedOption:c}},pc=Wi(Wi(Wi({showFilter:!1,dateRange:fc()},lc()),dc()),{},{hasUrlParams:(Zi=uc.start_date,ec=uc.end_date,tc=uc.since,rc=uc.until,nc=uc.account_groups,oc=uc.search_type,ac=uc.refine,!((Le.a.isEmpty(Zi)||Le.a.isEmpty(ec))&&(Le.a.isEmpty(tc)||Le.a.isEmpty(rc))&&Le.a.isEmpty(nc)&&Le.a.isEmpty(oc)&&Le.a.isEmpty(ac))),allLearners:(Ki=uc.all_learners,Xi="true"===ic.get("report_filter_selectedAllLearners"),Le.a.isEmpty(Ki)||(Xi="true"===Ki),Xi),includeNonViewers:(Qi=uc.exclude_non_viewers,$i="true"===ic.get("report_filter_includeNonViewers"),Le.a.isEmpty(Qi)||($i="false"===Qi),$i),administratedGroupsList:[],accountId:null,isMLAdmin:null,roles:null,reportTypeData:{},isLegacyView:!1,userDataLoading:!0,reportId:uc.report_id}),yc=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:pc,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case zi.OPTION_DATE_RANGE_SELECTED:return Wi(Wi({},e),{},{refineTextBox:e.refineTextBox,dateRange:t.optionSelected,showFilter:e.showFilter});case zi.OPTION_REFINE_TEXT_BOX_SELECTED:return Wi(Wi({},e),{},{refineTextBox:{optionSelected:t.optionSelected,value:e.refineTextBox.value},dateRange:e.dateRange,showFilter:e.showFilter});case zi.VALUE_REFINE_TEXT_BOX_CHANGED:return Wi(Wi({},e),{},{refineTextBox:{optionSelected:e.refineTextBox.optionSelected,value:t.value},dateRange:e.dateRange,showFilter:e.showFilter});case zi.TOGGLE_FILTERS:return Wi(Wi({},e),{},{refineTextBox:e.refineTextBox,dateRange:e.dateRange,showFilter:!e.showFilter});case zi.SHOW_FILTER:return Wi(Wi({},e),{},{showFilter:!0});case zi.RESET_TOGGLE_FILTERS:return Wi(Wi({},e),{},{refineTextBox:e.refineTextBox,dateRange:e.dateRange,showFilter:!1});case zi.RESET_TEXT_FILTERS:return Wi(Wi({},e),{},{dateRange:e.dateRange,showFilter:!1});case zi.RESET_DATE_FILTER:return Wi(Wi({},e),{},{dateRange:fc(t.type),showFilter:e.showFilter},lc());case zi.SOFT_RESET_GROUP_FILTER:case zi.RESET_GROUP_FILTER:return Wi(Wi({},e),dc(e,t.type));case zi.SET_ADMINISTRATED_GROUPS_SUCCESS:return Wi(Wi({},e),{},{administratedGroupsList:t.payload});case zi.SET_ADMINISTRATED_GROUPS_ERROR:return Wi(Wi({},e),{},{administratedGroupsList:[],selectedGroupsList:[],selectedAll:!1,isMLAdmin:!1,userDataLoading:!1});case zi.SET_SELECTED_GROUP_DATA:var r=t.payload?e.administratedGroupsList.map((function(e){return e.group_id})):[];return Wi(Wi({},e),{},{selectedGroupsList:r});case zi.SET_SELECTED_IND_GROUP:var n=t.payload.group_id,o=e.selectedGroupsList,a=o.find((function(e){return e===n})),i=a?o.filter((function(e){return e!==n})):o.concat(n),c=e.administratedGroupsList.length===i.length;return Wi(Wi({},e),{},{selectedGroupsList:i,selectedAll:c});case zi.SET_SELECTED_ALL_GROUPS:return Wi(Wi({},e),{},{selectedAll:t.payload});case zi.SET_USER_DATA:return Wi(Wi({},e),{},{accountId:t.payload.account_id,roles:t.payload.roles,isMLAdmin:t.payload.isMLAdmin,isAccountAdminOrOwner:t.payload.isAccountAdminOrOwner,userDataLoading:!1});case zi.SET_REPORT_ID:return Wi(Wi({},e),{},{reportId:t.payload});case zi.SET_REPORT_TYPE_DATA:return Wi(Wi({},e),{},{reportTypeData:t.payload});case zi.SET_LEGACY_VIEW:return Wi(Wi({},e),{},{isLegacyView:t.payload});case zi.SET_MEMBER_DATA:return Wi(Wi({},e),{},{requesterId:t.payload.requesterId,requestedUserId:t.payload.requestedUserId});case zi.SET_COMPLETION_REPORT_TYPE:return Wi(Wi({},e),{},{reportType:t.payload});case zi.TOGGLE_SHOW_ALL_LEARNERS_CHECKBOX:return Wi(Wi({},e),{},{allLearners:t.payload});case zi.TOGGLE_INCLUDE_NON_VIEWERS_CHECKBOX:return Wi(Wi({},e),{},{includeNonViewers:t.payload});case ee.a:return Object(zi.removeAllCookies)(),Wi(Wi({},pc),{},{reportId:null});default:return e}},bc=r(134);function mc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function gc(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:Sc,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload;switch(r){case vc:return{status:"pending",member:e.member};case Oc:return gc(gc({},n.data),{},{processingStatus:n.status,status:"loaded"});case Ec:return{member:e.member,payload:n,status:"failed",processingStatus:n.status};case zi.CLEAN_REPORT_DATA_ML:return gc({},Sc);default:return gc({},e)}},practiceExamReport:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ic,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload;switch(r){case Tc:return Pc(Pc({},Ic),{},{status:"pending"});case Cc:return Pc(Pc({},n.data),{},{processingStatus:n.status,status:"loaded"});case jc:return Pc(Pc({},Ic),{},{payload:n,status:"failed",processingStatus:n.status});case zi.CLEAN_REPORT_DATA_ML:return Pc({},Ic);default:return Pc({},e)}},filtersReport:yc}),Dc=r(121),Nc=r(264),Ac=r(215),Lc=r(143);function xc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function kc(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r90?r.item="Processing...":100===r.percent&&(r={}),{progress:r};case Dc.c:return{progress:{error:t.payload}};case Dc.d:case Ac.b:return{progress:{}};default:return e}},selectYourUpdates:function(){var e,t,r,n,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Jc,a=arguments.length>1?arguments[1]:void 0,i=0,c=[],u=!1,s=o.allSelected;switch(a.type){case Dc.d:return a.payload.courses_available.length&&a.payload.courses_available.forEach((function(e){c.push(e._id),i+=parseInt(e.size,10)||0})),a.payload.courses_fixes.length&&a.payload.courses_fixes.forEach((function(e){c.push(e._id),i+=parseInt(e.size,10)||0})),e=Object(Lc.a)(i),t=Object(Ae.orderBy)(a.payload.courses_available,["release_date"],["desc"]),r=Object(Ae.orderBy)(a.payload.courses_fixes,["release_date"],["desc"]),s=c.length===[].concat(qc(t),qc(r)).length,n=a.payload.courses_to_be_archived,Yc(Yc({},o),{},{availableCourses:t||[],coursesFixes:r||[],syncFileHash:a.payload.sync_file_hash,serviceCode:a.payload.service_code,syncFileAlreadyUsed:a.payload.syncFileAlreadyUsed,uuid:a.payload.uuid,downloadSize:e,collectionIds:c,allSelected:s,coursesToBeArchived:n||[]});case Nc.b:return u=o.collectionIds.length0&&void 0!==arguments[0]?arguments[0]:au,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload;switch(r){case Ci.a:return nu(nu({},e),{},{status:Me.b});case Ci.c:return nu(nu({},e),{},{status:Me.d,data:n});case Ci.b:return nu(nu({},e),{},{status:Me.a,error:n});default:return e}},ownerTransfer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:iu,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload;switch(r){case Ci.d:return nu(nu({},e),{},{status:Me.b});case Ci.f:return nu(nu({},e),{},{status:Me.d});case Ci.e:return nu(nu({},e),{},{status:Me.a,error:n});default:return e}}}),uu=r(48);function su(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function lu(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:fu,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload,o=Le.a.get(n,"items",[]),a=Le.a.get(n,"paging",{next:null,previous:null});switch(r){case uu.m:return lu(lu({},e),{},{status:Me.b});case uu.o:return lu(lu({},e),{},{data:o,paging:a,status:Me.d});case uu.n:return lu(lu({},e),{},{error:n,status:Me.a});default:return e}},yu=r(44);function bu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function mu(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:vu,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload;switch(r){case yu.m:return mu(mu({},e),{},{status:Me.b});case yu.o:var o=Le.a.get(n,"items",[]),a=Le.a.get(n,"paging",{}),i=Le.a.get(n,"isSearch",!0);return mu(mu({},e),{},{data:o,paging:a,isSearch:i,status:Me.d});case yu.n:return mu(mu({},e),{},{error:n,status:Me.a});default:return e}},Ou={data:[],paging:{previous:null,next:null,total_pages:0,current_page:0},error:{},status:Me.c},Su={data:[]},_u=r(358),Pu={isOpen:!1},wu=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Pu,t=arguments.length>1?arguments[1]:void 0,r=t.type;switch(r){case _u.b:return{isOpen:!0};case _u.a:return{isOpen:!1};default:return e}},Tu=function(e){return e.split(":")[2].split("v")[0]},ju=function(e){return/nrn:exam-provider:kaplan/i.test(e.join())},Cu=r(76),Iu=r(191);function Ru(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Du(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:Au,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload,o=n&&n.response?n.response.data.error:Lu;switch(r){case Cu.m:return Au;case Cu.g:return Du(Du({},e),{},{status:Me.b});case Cu.i:return Du(Du({},e),{},{data:n,status:Me.d});case Cu.h:return Du(Du({},e),{},{error:n,status:Me.a});case Cu.j:return Du(Du({},e),{},{status:Me.b});case Cu.l:return Du(Du({},e),{},{playlistDetails:Du(Du({},n),{},{collections:n.collections.map((function(e){return Du(Du({},e),{},{course:e.title,videos:"".concat(e.items.length," of ").concat(e.item_count," "),trainer:e.trainers[0].name,hours:Fi.a.utc(1e3*e.duration).format("HH:mm:ss"),trascender:ju(e.exams)})}))}),status:Me.d});case Cu.k:return Du(Du({},e),{},{error:n,status:Me.a});case Cu.a:case Cu.d:return Du(Du({},e),{},{status:Me.b});case Cu.b:case Cu.e:return Du(Du({},e),{},{status:Me.a});case Cu.c:var a=t.courseRemoved,i=e.playlistDetails,c=e.playlistDetails.collections,u=Le.a.filter(c,(function(e){return e.id!==a}));return i.collections=u,Du(Du({},e),{},{status:Me.d});case Cu.f:var s=t.itemRemoved,l=t.collection,d=e.playlistDetails.collections,f=Le.a.find(d,(function(e){return e.id===l})),p=f.items,y=Le.a.filter(p,(function(e){return e.id!==s}));return f.items=y,Du(Du({},e),{},{status:Me.d});case Iu.a:return Du(Du({},e),{},{renameStatus:"pending",status:Me.b});case Iu.b:return Du(Du({},e),{},{renameStatus:"error",error:o,status:Me.a});case Iu.c:var b=e.playlistDetails;return b.name=n.name,Du(Du({},e),{},{renameStatus:"success",displayRename:!1,status:Me.d});default:return e}},ku=r(49);function Gu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Mu(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:Bu,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload;switch(r){case Cu.m:return Bu;case ku.d:return Mu(Mu({},e),{},{status:Me.b});case ku.f:return n.map((function(e){if(e.groups){var t=Object.keys(e.groups)[0],r=e.groups[t];e.assigned_by=r.assigned_by,e.assigned_date=r.assigned_date,delete e.groups}return e})),Mu(Mu({},e),{},{data:n,status:Me.d});case ku.e:return Mu(Mu({},e),{},{error:n,status:Me.a});case ku.g:return Mu(Mu({},e),{},{status:Me.b});case ku.i:return Mu(Mu({},e),{},{playlistDetails:n,status:Me.d});case ku.h:return Mu(Mu({},e),{},{error:n,status:Me.a});case ku.m:return Mu(Mu({},e),{},{status:Me.b});case ku.n:return Mu(Mu({},e),{},{error:n,status:Me.a});case ku.o:var o=e.data,a=n.playlistId,i=Le.a.filter(o,(function(e){return e.id!==a}));return Mu(Mu({},e),{},{data:i,status:Me.d});case Iu.d:var c=e.data,u=Le.a.map(c,(function(e){return e.id===n.id&&(e.name=n.name),e}));return Mu(Mu({},e),{},{data:u});case ku.b:return Mu(Mu({},e),{},{assignBookshelfItems:{status:Me.a}});case ku.c:return Mu(Mu({},e),{},{assignBookshelfItems:{status:Me.d}});case ku.a:return Mu(Mu({},e),{},{assignBookshelfItems:{status:Me.b}});case ku.j:return Mu(Mu({},e),{},{unassignBookshelfItems:{status:Me.b}});case ku.k:return Mu(Mu({},e),{},{unassignBookshelfItems:{status:Me.a}});case ku.l:return Mu(Mu({},e),{},{unassignBookshelfItems:{status:Me.d}});default:return e}};r(8);function Vu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Hu(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:zu,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload;switch(r){case"PLAYLISTS_CERTIFICATION_GET_PENDING":return Hu(Hu({},e),{},{status:Me.b});case"PLAYLISTS_CERTIFICATION_GET_RESOLVED":return Hu(Hu({},e),{},{data:n,status:Me.d});case"PLAYLISTS_CERTIFICATION_GET_REJECTED":return Hu(Hu({},e),{},{error:n,status:Me.a});default:return e}},Wu=r(93);function Ju(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Qu(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:Ku,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload;switch(r){case Wu.d:return Qu(Qu({},e),{},{status:Me.b});case Wu.f:return Qu(Qu({},e),{},{data:n,status:Me.d});case Wu.e:return Qu(Qu({},e),{},{error:n,status:Me.a});default:return Qu({},e)}},Zu=r(75);function es(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ts(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:ns,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload,o=n&&n.response?n.response.data.error:os;switch(r){case Zu.g:return ts(ts({},ns),{},{status:Me.b});case Zu.i:return ts(ts({},ns),{},{playlists:n,status:Me.d});case Zu.h:return ts(ts({},ns),{},{error:o,status:Me.a});case Wu.g:var a=e.playlists,i=Le.a.map(a,(function(e){return e.id===n.id&&(e.name=n.name),e}));return ts(ts({},e),{},{playlists:i});case Zu.f:return ts(ts({},e),{},{status:Me.d,playlists:Le.a.filter(e.playlists,(function(e){return e.id!==n}))});case Zu.d:return ts(ts({},e),{},{status:Me.b});case Zu.e:return ts(ts({},e),{},{status:Me.a});case Zu.m:return ts(ts({},e),{},{status:Me.b});case Zu.n:var c=e.playlists,u=n.playlistId,s=Le.a.find(c,(function(e){return e.id===u}));return ts(ts({},e),{},{playlistNameSelected:s.name,status:Me.d,showUnassignFromLeanerError:!0});case Zu.o:var l=e.playlists,d=n.playlistId,f=Le.a.filter(l,(function(e){return e.id!==d}));return ts(ts({},e),{},{playlists:f,status:Me.d});case Zu.b:return ts(ts({},e),{},{assignBookshelfItems:{status:Me.a}});case Zu.c:return ts(ts({},e),{},{assignBookshelfItems:{status:Me.d}});case Zu.a:return ts(ts({},e),{},{assignBookshelfItems:{status:Me.b}});case Zu.j:return ts(ts({},e),{},{unassignBookshelfItems:{status:Me.b}});case Zu.k:return ts(ts({},e),{},{unassignBookshelfItems:{status:Me.a}});case Zu.l:return ts(ts({},e),{},{unassignBookshelfItems:{status:Me.d}});default:return ts({},e)}},is=r(45);function cs(e){return function(e){if(Array.isArray(e))return us(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return us(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return us(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function us(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:fs,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload;switch(r){case is.h:return ls(ls({},e),{},{status:Me.b});case is.k:var o=n.updatedUserRecords,a=void 0===o?[]:o,i=n.newUserRecords,c=void 0===i?[]:i,u=[].concat(cs(a),cs(c));return ls(ls({},e),{},{data:u,diff_id:n.diff_id,group:n.group,status:Me.d});case is.j:return ls(ls({},e),{},{error:n,status:Me.a});case is.i:return ls(ls({},e),{},{progress:n});case is.a:return fs;default:return e}},verify:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ps,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload;switch(r){case is.l:return ls(ls({},e),{},{status:Me.b});case is.o:return ls(ls({},e),{},{data:n,status:Me.d});case is.n:return ls(ls({},e),{},{error:n,status:Me.a});case is.m:return ls(ls({},e),{},{progress:n});case is.a:return ps;default:return e}}}),hs=Object(l.combineReducers)({upload:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ys,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload;switch(r){case is.p:return ls(ls({},e),{},{status:Me.b});case is.s:return ls(ls({},e),{},{data:n,status:Me.d});case is.r:return ls(ls({},e),{},{error:n,status:Me.a});case is.q:return ls(ls({},e),{},{progress:n});case is.a:return ys;default:return e}},preview:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:bs,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload;switch(r){case is.b:return ls(ls({},e),{},{status:Me.b});case is.d:var o=n.updatedUserRecords,a=void 0===o?[]:o,i=n.newUserRecords,c=void 0===i?[]:i,u=[].concat(cs(a),cs(c));return ls(ls({},e),{},{data:u,diff_id:n.diff_id,status:Me.d});case is.c:return ls(ls({},e),{},{error:n,status:Me.a});default:return e}},verify:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ms,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload;switch(r){case is.t:return ls(ls({},e),{},{status:Me.b});case is.w:return ls(ls({},e),{},{status:Me.d});case is.v:return ls(ls({},e),{},{error:n,status:Me.a});case is.u:return ls(ls({},e),{},{progress:n});case is.a:return ps;default:return e}},status:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:bs,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload;switch(r){case is.e:return ls(ls({},e),{},{status:Me.b});case is.g:return ls(ls({},e),{},{data:n,status:Me.d});case is.f:return ls(ls({},e),{},{error:n,status:Me.a});case is.a:return ps;default:return e}}});function vs(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Es(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:Ss,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload;switch(r){case"UPDATE_TAB_INDEX":return Es(Es({},e),{},{tabIndex:n});default:return e}},Ps=Object(l.combineReducers)({account:cu,groups:pu,groupsByUser:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:fu,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload,o=Le.a.get(n,"items",[]),a=Le.a.get(n,"paging",[]);switch(r){case uu.g:return lu(lu({},e),{},{status:Me.b});case uu.i:return lu(lu({},e),{},{data:o,paging:a,status:Me.d});case uu.h:return lu(lu({},e),{},{error:n,status:Me.a});default:return e}},addGroups:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:fu,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.type,n=t.payload;switch(r){case uu.d:return lu(lu({},e),{},{status:Me.b});case uu.f:return lu(lu({},e),{},{data:n,status:Me.d});case uu.e:return lu(lu({},e),{},{error:n,status:Me.a});default:return e}},updateGroups:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:fu,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.type,n=t.payload;switch(r){case uu.p:return lu(lu({},e),{},{status:Me.b});case uu.r:return lu(lu({},e),{},{data:n,status:Me.d});case uu.q:return lu(lu({},e),{},{error:n,status:Me.a});default:return e}},learners:Eu,addLearners:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:hu,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload;switch(r){case yu.d:return mu(mu({},e),{},{status:Me.b});case yu.f:return mu(mu({},e),{},{data:n.items,status:Me.d});case yu.e:return mu(mu({},e),{},{error:Le.a.get(n,"errors[0].extensions.exception.extra")||Le.a.get(n,"errors[0]",n),status:Me.a});default:return e}},deleteLearners:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:hu,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload;switch(r){case yu.j:return mu(mu({},e),{},{status:Me.b});case yu.l:return mu(mu({},e),{},{data:n.items,status:Me.d});case yu.k:return mu(mu({},e),{},{error:n,status:Me.a});default:return e}},deleteGroups:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:fu,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.type,n=t.payload;switch(r){case uu.j:return lu(lu({},e),{},{status:Me.b});case uu.l:return lu(lu({},e),{},{data:n,status:Me.d});case uu.k:return lu(lu({},e),{},{error:n,status:Me.a});default:return e}},learnersByGroup:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ou,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload;switch(r){case yu.g:return mu(mu({},e),{},{status:Me.b});case yu.i:var o=Le.a.get(n,"items",Ou.data),a=Le.a.get(n,"paging",Ou.paging);return mu(mu({},e),{},{data:o,paging:a,status:Me.d});case yu.h:return mu(mu({},e),{},{error:n,status:Me.a});default:return e}},playlist:tu.d,playlists:xu,playlistsOfGroup:Fu,playlistsOfUser:Xu,playlistsByUserId:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ku,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload;switch(r){case Wu.a:return Qu(Qu({},e),{},{status:Me.b});case Wu.c:return Qu(Qu({},e),{},{data:n,status:Me.d});case Wu.b:return Qu(Qu({},e),{},{error:n,status:Me.a});default:return Qu({},e)}},playlistsOfCertification:qu,assignPlaylistModal:wu,modalPlaylist:tu.b,userInfo:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:fu,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload;switch(r){case uu.w:return lu(lu({},e),{},{status:Me.b});case uu.y:return lu(lu({},e),{},{data:n,status:Me.d});case uu.x:return lu(lu({},e),{},{error:n,status:Me.a});default:return e}},addLearnersToGroup:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:fu,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.type,n=t.payload;switch(r){case uu.a:return lu(lu({},e),{},{status:Me.b});case uu.c:return lu(lu({},e),{},{data:n,status:Me.d});case uu.b:return lu(lu({},e),{},{error:n,status:Me.a});default:return e}},groupDetail:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload;switch(r){case uu.s:return lu(lu({},e),{},{status:Me.b});case uu.v:return lu(lu({},e),{},{data:n,status:Me.d});case uu.t:return lu(lu({},e),{},{error:n,status:Me.a});case uu.u:return{};default:return e}},manageGroupViaCSV:gs,accountCsv:hs,groupTabReducer:_s,licenseCount:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload;switch(r){case yu.s:return mu(mu({},e),{},{status:Me.b});case yu.u:return mu(mu({},e),{},{data:null!=n?n:{},status:Me.d});case yu.v:var o,a,i,c,u,s,l,d,f=null!==(o=n.usedDelta)&&void 0!==o?o:0,p=null!==(a=n.userIds)&&void 0!==a?a:[],y=null!==(i=null===(c=e.data)||void 0===c?void 0:c.assignees)&&void 0!==i?i:[];return mu(mu({},e),{},{data:mu(mu({},e.data),{},{inUse:(null!==(u=null===(s=e.data)||void 0===s?void 0:s.inUse)&&void 0!==u?u:0)+f,available:(null!==(l=null===(d=e.data)||void 0===d?void 0:d.available)&&void 0!==l?l:0)-f,assignees:f<0?y.filter((function(e){return!p.includes(e)})):y.concat(p)})});case yu.t:return mu(mu({},e),{},{error:n,status:Me.a});default:return e}},assignLicense:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:hu,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload;switch(r){case yu.a:return mu(mu({},e),{},{status:Me.b});case yu.c:return mu(mu({},e),{},{data:n,status:Me.d});case yu.b:return mu(mu({},e),{},{error:n,status:Me.a});default:return e}},updateLearner:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:hu,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload;switch(r){case yu.p:return mu(mu({},e),{},{status:Me.b});case yu.r:return mu(mu({},e),{},{data:n,status:Me.d});case yu.q:return mu(mu({},e),{},{error:n,status:Me.a});default:return e}},resendinvite:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Su,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload;switch(r){case yu.w:return mu(mu({},e),{},{status:Me.b});case yu.y:return mu(mu({},e),{},{status:Me.d,data:n});case yu.x:return mu(mu({},e),{},{error:n,status:Me.a});default:return e}},learnerPlaylists:as}),ws=r(129);function Ts(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function js(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:Is,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload;switch(r){case ws.GET_CAPTURED_INVOICES_PENDING:return js(js({},e),{},{orderHistoryStatus:Me.b});case ws.GET_DEFAULT_PAYMENT_PENDING:return js(js({},e),{},{defaultPaymentStatus:Me.b});case ws.GET_CAPTURED_INVOICES_RESOLVED:var o=Le.a.get(n,"data.getCapturedInvoices");if(o)return js(js({},e),{},{invoices:o,orderHistoryStatus:Me.d});var a=Le.a.get(n,"d.Message",null),i=Le.a.get(n,"d.ReasonText",null);return js(js({},e),{},{orderHistoryError:a||i,orderHistoryStatus:Me.a});case ws.GET_CAPTURED_INVOICES_REJECTED:var c=Le.a.get(n,"message",null),u=Le.a.get(n,"response.data.Message",null);return js(js({},e),{},{orderHistoryError:u||c,orderHistoryStatus:Me.a});case ws.GET_DEFAULT_PAYMENT_RESOLVED:var s=Le.a.get(n,"data.getDefaultPaymentInfo");if(s)return js(js({},e),{},{defaultPayment:s,defaultPaymentStatus:Me.d});var l=Le.a.get(n,"d.Message",null),d=Le.a.get(n,"d.ReasonText",null);return js(js({},e),{},{defaultPaymentError:l||d,defaultPaymentStatus:Me.a});case ws.GET_DEFAULT_PAYMENT_REJECTED:var f=Le.a.get(n,"message",null),p=Le.a.get(n,"response.data.Message",null);return js(js({},e),{},{defaultPaymentError:p||f,defaultPaymentStatus:Me.a});default:return e}},Ds=r(222);function Ns(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function As(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:xs,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload;switch(r){case Ds.a:return As(As({},e),{},{status:Me.b});case Ds.c:return As(As({},e),{},{status:Me.d});case Ds.b:return As(As({},e),{},{error:n,status:Me.a});case Ds.d:return xs;default:return e}},Gs=r(151);function Ms(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Us(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:Fs,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload;switch(r){case Gs.a:return Us(Us({},e),{},{status:Me.b});case Gs.c:return Us(Us({},e),{},{status:Me.d,data:n});case Gs.b:return Us(Us({},e),{},{error:n,status:Me.a});default:return e}},update:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Fs,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload;switch(r){case Gs.d:return Us(Us({},e),{},{status:Me.b});case Gs.f:return Us(Us({},e),{},{status:Me.d});case Gs.e:return Us(Us({},e),{},{error:n,status:Me.a});case Gs.g:return Fs;default:return e}}}),Hs=r(83);function Ys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function zs(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:Ws,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload;switch(r){case Hs.d:return zs(zs({},e),{},{status:Me.b});case Hs.f:return zs(zs({},e),{},{status:Me.d,data:n});case Hs.e:return zs(zs({},e),{},{error:n,status:Me.a});default:return e}},update:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ws,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload;switch(r){case Hs.g:return zs(zs({},e),{},{status:Me.b});case Hs.i:return zs(zs({},e),{},{status:Me.d,data:n});case Hs.h:return zs(zs({},e),{},{error:n,status:Me.a});case Hs.m:return Ws;default:return e}}}),Qs=Object(l.combineReducers)({preferences:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ws,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload;switch(r){case Hs.a:return zs(zs({},e),{},{status:Me.b});case Hs.c:return zs(zs({},e),{},{status:Me.d,data:n});case Hs.b:return zs(zs({},e),{},{error:n,status:Me.a});default:return e}},update:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ws,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload;switch(r){case Hs.j:return zs(zs({},e),{},{status:Me.b});case Hs.l:return zs(zs({},e),{},{status:Me.d,data:n});case Hs.k:return zs(zs({},e),{},{error:n,status:Me.a});case Hs.n:return Ws;default:return e}}}),$s=Object(l.combineReducers)({user:Js,account:Qs}),Ks=Object(l.combineReducers)({security:ks,notification:Vs,quiz:$s}),Xs=r(24),Zs=r(111);function el(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function tl(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:nl,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload;switch(r){case Xs.GET_CAPTURED_INVOICES_PENDING:return tl(tl({},e),{},{orderHistoryStatus:Me.b});case Xs.GET_DEFAULT_PAYMENT_PENDING:return tl(tl({},e),{},{defaultPaymentStatus:Me.b});case Xs.GET_ACCOUNT_OWNER_PENDING:return tl(tl({},e),{},{accountOwnerStatus:Me.b});case Xs.GET_CAPTURED_INVOICES_RESOLVED:var o=Le.a.get(n,"data.getCapturedInvoices");if(o)return tl(tl({},e),{},{invoices:o,orderHistoryStatus:Me.d});var a=Le.a.get(n,"d.Message",null),i=Le.a.get(n,"d.ReasonText",null);return tl(tl({},e),{},{orderHistoryError:a||i,orderHistoryStatus:Me.a});case Xs.GET_CAPTURED_INVOICES_REJECTED:var c=Le.a.get(n,"message",null),u=Le.a.get(n,"response.data.Message",null);return tl(tl({},e),{},{orderHistoryError:u||c,orderHistoryStatus:Me.a});case Xs.GET_DEFAULT_PAYMENT_RESOLVED:var s=Le.a.get(n,"data.getDefaultPaymentInfo");if(s)return tl(tl({},e),{},{defaultPayment:s,defaultPaymentStatus:Me.d});var l=Le.a.get(n,"d.Message",null),d=Le.a.get(n,"d.ReasonText",null);return tl(tl({},e),{},{defaultPaymentError:l||d,defaultPaymentStatus:Me.a});case Xs.GET_DEFAULT_PAYMENT_REJECTED:var f=Le.a.get(n,"message",null),p=Le.a.get(n,"response.data.Message",null);return tl(tl({},e),{},{defaultPaymentError:p||f,defaultPaymentStatus:Me.a});case Xs.GET_ACCOUNT_OWNER_RESOLVED:return tl(tl({},e),{},{accountOwner:n,accountOwnerStatus:Me.d});case Xs.GET_ACCOUNT_OWNER_REJECTED:return tl(tl({},e),{},{error:n,accountOwnerStatus:Me.a});case Xs.GET_PENDING_QUOTES_PENDING:return tl(tl({},e),{},{pendingQuotesStatus:Me.b});case Xs.GET_PENDING_QUOTES_RESOLVED:var y=Le.a.get(n,"data.getPendingInvoices");if(y)return tl(tl({},e),{},{pendingQuotes:y,pendingQuotesStatus:Me.d});var b=Le.a.get(n,"d.Message",null),m=Le.a.get(n,"d.ReasonText",null);return tl(tl({},e),{},{pendingQuotesError:b||m,pendingQuotesStatus:Me.a});case Xs.GET_PENDING_QUOTES_REJECTED:var g=Le.a.get(n,"message",null),h=Le.a.get(n,"response.data.Message",null);return tl(tl({},e),{},{pendingQuotesError:h||g,pendingQuotesStatus:Me.a});case Xs.EMAIL_PENDING_INVOICE_PENDING:return tl(tl({},e),{},{emailQuoteStatus:Me.b});case Xs.EMAIL_PENDING_INVOICE_RESOLVED:var v=Le.a.get(n,"data.emailPendingInvoice.success");return tl(tl({},e),{},{emailQuoteStatus:v?Me.d:Me.a});case Xs.EMAIL_PENDING_INVOICE_REJECTED:return tl(tl({},e),{},{emailQuoteStatus:Me.a});case Xs.GENERATE_UNIVERSAL_PAYMENT_PENDING:return tl(tl({},e),{},{universalPaymentLinkStatus:Me.b});case Xs.GENERATE_UNIVERSAL_PAYMENT_RESOLVED:var E=Le.a.get(n,"data.generateDirectSaleUniversalPaymentLink");return tl(tl({},e),{},E?{universalPaymentLinkStatus:Me.d,universalPaymentLink:E}:{universalPaymentLinkStatus:Me.a});case Xs.GENERATE_UNIVERSAL_PAYMENT_REJECTED:return tl(tl({},e),{},{universalPaymentLinkStatus:Me.a});case Xs.POST_CANCELL_SUBSCRIPTION_RESOLVED:var O=Le.a.get(n,"data.turnOffAutoRenew.success");return tl(tl({},e),{},O?{hasAutoRenew:!1,defaultCancelStatus:Me.d}:{defaultCancelStatus:Me.a});case Xs.POST_CANCELL_SUBSCRIPTION_PENDING:return tl(tl({},e),{},{defaultCancelStatus:Me.b});case Xs.POST_CANCELL_SUBSCRIPTION_REJECTED:var S=Le.a.get(n,"message",null),_=Le.a.get(n,"response.data.Message",null);return tl(tl({},e),{},{defaultCancelError:_||S,defaultCancelStatus:Me.a});case Xs.POST_UNCANCELL_SUBSCRIPTION_RESOLVED:var P=Le.a.get(n,"data.turnOnAutoRenew.success");return tl(tl({},e),{},P?{hasAutoRenew:!0,defaultUnCancelStatus:Me.d}:{defaultUnCancelStatus:Me.a});case Xs.POST_UNCANCELL_SUBSCRIPTION_PENDING:return tl(tl({},e),{},{defaultUnCancelStatus:Me.b});case Xs.POST_UNCANCELL_SUBSCRIPTION_REJECTED:var w=Le.a.get(n,"message",null),T=Le.a.get(n,"response.data.Message",null);return tl(tl({},e),{},{defaultUnCancelError:T||w,defaultUnCancelStatus:Me.a});case Xs.GET_CHECK_FOR_BILLINGAGREEMENT_PENDING:return tl(tl({},e),{},{getBillingAgreementStatus:Me.b});case Xs.GET_CHECK_FOR_BILLINGAGREEMENT_RESOLVED:var j=Le.a.get(n,"data.getBillingAgreementStatus");return tl(tl({},e),{},j?{billingAgreementStatus:j,getBillingAgreementStatus:Me.d}:{getBillingAgreementStatus:Me.a});case Xs.GET_CHECK_FOR_BILLINGAGREEMENT_REJECTED:var C=Le.a.get(n,"message",null),I=Le.a.get(n,"response.data.Message",null);return tl(tl({},e),{},{getBillingAgreementError:I||C,getBillingAgreementStatus:Me.a});case Xs.GET_PRICING_SCENARIOS_RESOLVED:var R=n.scenarios;return tl(tl({},e),{},{pricingScenarios:R,pricingScenariosStatus:Me.d});case Xs.GET_PRICING_SCENARIOS_PENDING:return tl(tl({},e),{},{pricingScenariosStatus:Me.b});case Xs.GET_PRICING_SCENARIOS_REJECTED:return tl(tl({},e),{},{pricingScenariosError:n,pricingScenariosStatus:Me.a});case Xs.UPDATE_BILLING_CYCLE_RESOLVED:var D=Le.a.get(n,"data.updateBillingCycle");if(D)return tl(tl({},e),{},{billingPlanInfo:tl(tl({},e.billingPlanInfo),{},{billingCycle:D}),updateBillingCycleStatus:Me.d});var N=Le.a.get(n,"d.Message",null);return tl(tl({},e),{},{updateBillingCycleStatus:Me.a,updateBillingCycleError:N});case Xs.UPDATE_BILLING_CYCLE_PENDING:return tl(tl({},e),{},{updateBillingCycleError:null,updateBillingCycleStatus:Me.b});case Xs.UPDATE_BILLING_CYCLE_REJECTED:var A=Le.a.get(n,"d.Message",null),L=Le.a.get(n,"message",null);return tl(tl({},e),{},{updateBillingCycleError:A||L,updateBillingCycleStatus:Me.a});case Xs.REACTIVATE_SUBSCRIPTION_RESOLVED:var x,k=null!==(x=Le.a.get(n,"data.reactivateSubscription"))&&void 0!==x?x:{},G=k.billingCycle,M=k.totalLicenses;if(G&&M)return tl(tl({},e),{},{billingPlanInfo:tl(tl({},e.billingPlanInfo),{},{billingCycle:G,totalLicenses:M}),reactivateSubscriptionStatus:Me.d});var U=Le.a.get(n,"errors[0].message",null),B=Le.a.get(n,"errors[0].extensions.exception.extra.message",null),F=[U,B].filter(Boolean).join(": ");return tl(tl({},e),{},{reactivateSubscriptionStatus:Me.a,reactivateSubscriptionError:F});case Xs.REACTIVATE_SUBSCRIPTION_PENDING:return tl(tl({},e),{},{reactivateSubscriptionError:null,reactivateSubscriptionStatus:Me.b});case Xs.REACTIVATE_SUBSCRIPTION_REJECTED:var V=Le.a.get(n,"errors[0].message",null),H=Le.a.get(n,"message",null);return tl(tl({},e),{},{reactivateSubscriptionError:V||H,reactivateSubscriptionStatus:Me.a});case Xs.REMOVE_PAYMENT_RESOLVED:var Y,z=Le.a.get(n,"data.deleteDefaultPaymentInfo.success");return tl(tl({},e),{},z?{removePaymentStatus:Me.d,hasAutoRenew:!1,defaultPayment:{type:Zs.b.UNKNOWN,nextBillDate:null===(Y=e.defaultPayment)||void 0===Y?void 0:Y.nextBillDate}}:{removePaymentStatus:Me.a});case Xs.REMOVE_PAYMENT_PENDING:return tl(tl({},e),{},{removePaymentStatus:Me.b});case Xs.REMOVE_PAYMENT_REJECTED:return tl(tl({},e),{},{removePaymentStatus:Me.a});case Xs.GET_BILLING_PLAN_RESOLVED:var q=Le.a.get(n,"data.getPlansWithFuture",[]),W=Le.a.get(n,"errors",[]);if(W.length<1){var J=q[0],Q=Le.a.get(J,"futureBillingCycleMonths"),$=Le.a.get(J,"billingCycleMonths"),K=null===Q?$:Q,X={totalLicenses:Le.a.get(J,"totalLicenses",0),billingCycle:K,companyName:Le.a.get(J,"company"),resellerName:Le.a.get(J,"resellerName"),isReseller:Le.a.get(J,"isReseller",!1)};return tl(tl({},e),{},{billingPlanInfo:X,getBillingPlanStatus:Me.d})}var Z=Le.a.get(n,"d.Message",null);return tl(tl({},e),{},{getBillingPlanStatus:Me.a,getBillingPlanError:Z});case Xs.GET_BILLING_PLAN_PENDING:return tl(tl({},e),{},{getBillingPlanError:null,getBillingPlanStatus:Me.b});case Xs.GET_BILLING_PLAN_REJECTED:var ee=Le.a.get(n,"d.Message",null),te=Le.a.get(n,"message",null);return tl(tl({},e),{},{getBillingPlanError:ee||te,getBillingPlanStatus:Me.a});default:return e}},al=r(168);function il(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function cl(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:sl,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload;switch(r){case al.PURCHASE_LEARNERS_PENDING:return cl(cl({},e),{},{purchaseLearnersStatus:Me.b});case al.PURCHASE_LEARNERS_REJECTED:var o=Le.a.get(n,"message",null),a=Le.a.get(n,"response.data.Message",null);return cl(cl({},e),{},{purchaseLearnersError:a||o,purchaseLearnersStatus:Me.a});case al.PURCHASE_LEARNERS_RESOLVED:var i,c=Le.a.get(n,"data.addGroupLicenses.success");if(c)return cl(cl({},e),{},{purchaseLearnersStatus:Me.d,additionalLearners:null!==(i=n.numLicenses)&&void 0!==i?i:0});var u=Le.a.get(n,"errors[0].message",null),s=Le.a.get(n,"errors[0].extensions.exception.extra.message",null),l=[u,s].filter(Boolean).join(": ");return cl(cl({},e),{},{purchaseLearnersError:l,purchaseLearnersStatus:Me.a});case al.FETCH_PRICING_PENDING:return cl(cl({},e),{},{pricingScenariosStatus:Me.b});case al.FETCH_PRICING_REJECTED:return cl(cl({},e),{},{pricingScenariosStatus:Me.a});case al.FETCH_PRICING_RESOLVED:var d=Le.a.get(n,"data.getPricingScenariosForAdditionalLicenses");return cl(cl({},e),{},d?{pricingScenarios:d,pricingScenariosStatus:Me.d}:{pricingScenariosStatus:Me.a});default:return e}},dl=r(170);function fl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function pl(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:bl,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload;switch(r){case dl.DOWNLOAD_PDF_PENDING:return pl(pl({},e),{},{downloadPdfStatus:Me.b});case dl.DOWNLOAD_PDF_REJECTED:return pl(pl({},e),{},{downloadPdfStatus:Me.a});case dl.DOWNLOAD_PDF_RESOLVED:return pl(pl({},e),{},{downloadPdfStatus:Me.d});case dl.FETCH_ORDER_PENDING:return pl(pl({},e),{},{fetchOrderStatus:Me.b});case dl.FETCH_ORDER_REJECTED:return pl(pl({},e),{},{fetchOrderStatus:Me.a});case dl.FETCH_ORDER_RESOLVED:var o=Le.a.get(n,"data.getOrder");return pl(pl({},e),{},o?{fetchOrderStatus:Me.d,orderInfo:o}:{fetchOrderStatus:Me.a});default:return e}},gl=Object(l.combineReducers)({profile:Ui,reporting:Rc,nls:eu,manageLearners:Ps,paymentInfo:Rs,settings:Ks,planAndPayment:ol,purchaseLearners:ll,viewOrder:ml}),hl=r(320);function vl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function El(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:Sl,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload;switch(r){case hl.a:return El(El({},e),{},{shouldSendTimeToGTM:!0,timeToPlayStartTime:n});case hl.b:return El(El({},e),{},{shouldSendTimeToGTM:!1,timeToPlayEndTime:n});default:return e}},Pl=r(197),wl=r(12);function Tl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function jl(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:Il,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload,o=t.error;switch(r){case wl.K:return Le.a.assign({},e,{widgetsUndismissed:{status:"LOADING"}});case wl.M:var a=Le.a.get(n,"d",{}),i=Le.a.get(a,"Data",[]),c=0;return Le.a.includes(i,"onboarding_training_tips")&&(c=3),Le.a.assign({},e,{widgetsUndismissed:jl(jl({},a),{},{status:"SUCCESS"}),contact:{stage:c}});case wl.L:var u=Le.a.get(n,"d",{});return Le.a.assign({},e,{widgetsUndismissed:jl(jl({},u),{},{status:Pl.a,error:{message:u.Message}})});case wl.N:return Le.a.assign({},e,{status:"POST_LOADING"});case wl.P:var s=e.widgetsUndismissed.Data.filter((function(e){return e!==n})),l=0;return Le.a.includes(e.widgetsUndismissed.Data,"onboarding_training_tips")&&"onboarding_training_tips"!==n&&(l=3),Le.a.assign({},e,{widgetsUndismissed:jl(jl({},e.widgetsUndismissed),{},{Data:s}),contact:{stage:l}},{status:"POST_SUCCESS",lastWidget:n});case wl.O:return Le.a.assign({},e,{status:"POST_ERROR",error:o});case wl.d:return jl(jl({},e),{},{status:"pending"});case wl.f:return jl(jl({},e),{},{contact:{postedContactRes:n,stage:0},status:"loaded"});case wl.e:return jl(jl({},e),{},{status:"failed",error:o});case wl.g:return jl(jl({},e),{},{contact:{stage:n}});case wl.n:return jl(jl({},e),{},{billingAgreementStatus:Pl.b});case wl.p:var d=Le.a.get(n,"data.getSignupStatus.state");return"HAS_PENDING_BILLING_AGREEMENT"===d?window.location.replace("/signup-agreement"):"IS_PENDING_COMPLETE_SIGNUP"===d?window.location.replace("/signup"):"HAS_INCOMPLETE_INVOICE"===d&&window.location.replace("/signup/success"),jl(jl({},e),{},{billingAgreementStatus:Pl.d,shouldCheckBillingAgreementStatus:!1});case wl.o:return jl(jl({},e),{},{billingAgreementStatus:Pl.a,shouldCheckBillingAgreementStatus:!1});default:return e}},Dl=r(144);function Nl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Al(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:Yl,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload;switch(r){case wl.u:return Vl(Vl({},e),{},{status:Me.b});case wl.v:return Vl(Vl({},e),{},{items:Ul(n.items),status:Me.d});case wl.t:return Vl(Vl({},e),{},{status:Me.a,items:[],error:n});case ee.a:return Yl;default:return e}},currentStats:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Jl,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload;switch(r){case wl.w:return ql(ql({},e),{},{status:"pending"});case wl.y:return ql(ql({},e),{},{currentStats:n,status:"loaded"});case wl.x:return ql(ql({},e),{},{status:"failed",error:n});default:return ql({},e)}},bookmarks:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Xl,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload,o=t.error;switch(r){case wl.a:return $l($l({},e),{},{bookmarks:[],status:"pending"});case wl.c:return $l($l({},e),{},{bookmarks:n,status:"loaded"});case wl.b:return $l($l({},e),{},{status:"failed",error:o});default:return $l({},e)}},notes:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:od,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload;switch(r){case wl.q:return rd(rd({},e),{},{status:"pending"});case wl.s:return rd(rd({},e),{},{data:Zl(n.d.Data),status:"loaded"});case wl.r:return rd(rd({},e),{},{status:"failed",error:n});default:return rd({},e)}},leaderboard:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ud,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload;switch(r){case wl.k:return id(id({},e),{},{status:"pending"});case wl.m:var o=Math.floor(n.member.score/60);return id(id({},e),{},{validatedMinutes:o,status:"loaded"});case wl.l:return id(id({},e),{},{status:"failed",error:n});case ee.a:return ud;default:return id({},e)}},playlist:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ml,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload;switch(r){case xl:return Al(Al({},e),{},{status:"pending"});case Gl:return Al(Al(Al({},e),n),{},{status:"loaded"});case kl:return Al(Al({},e),{},{status:"failed",error:n});default:return Al({},e)}},form:Eo.a,trainingReminder:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:md,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload;switch(r){case wl.C:return yd(yd({},e),{},{showTRModal:n});case wl.H:return yd(yd({},e),{},{statusSetTimezonePreferences:"pending"});case wl.I:return yd(yd({},e),{},{statusSetTimezonePreferences:"error"});case wl.J:return yd(yd({},e),{},{statusSetTimezonePreferences:"success"});case wl.E:return yd(yd({},e),{},{statusSetScheduleReminder:"pending"});case wl.F:return yd(yd({},e),{},{statusSetScheduleReminder:"error"});case wl.G:return yd(yd({},e),{},{statusSetScheduleReminder:"success",isEnrolledSuccessful:!0});case wl.D:return yd(yd({},e),{},{preferences:yd(yd({},e.preferences),{},bd({},n.field,n.value))});default:return yd({},e)}},emailSignup:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:fd,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.error;switch(r){case wl.i:return ld(ld({},e),{},{status:Me.b});case wl.j:return t.payload.completed?ld(ld({},e),{},{status:Me.d}):ld(ld({},e),{},{status:Me.a});case wl.h:return ld(ld({},e),{},{status:Me.a,error:n});default:return ld({},e)}},topLearners:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ed,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload;switch(r){case wl.z:return hd(hd({},e),{},{status:"pending"});case wl.B:return n.member&&n.member.rank>5&&(n.rankings[4]=n.member),hd(hd({},e),{},{rankings:n.rankings,status:"success"});case wl.A:return hd(hd({},e),{},{status:"failed",error:n});default:return hd({},e)}}}),Sd=r(13),_d=r(80),Pd=r(28);function wd(e){return function(e){if(Array.isArray(e))return Td(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Td(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Td(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Td(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:Pf,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload;switch(r){case Sd.H:return Sf(Sf({},Pf),{},{status:Me.b});case Sd.I:return Sf(Sf({},Pf),{},{status:Me.a});case Sd.J:return{playlistsByGroup:n,status:Me.d};case Sd.g:var o=n.groups,a=n.playlist,i=e.playlistsByGroup,c=Le.a.map(i,(function(e){if(e.id===a){var t=Le.a.zipObject(o,Le.a.fill(new Array(o.length),!0));e.groups=Sf(Sf({},e.groups),t)}return e}));return{playlistsByGroup:c,status:Me.d};default:return Sf({},e)}},Tf=r(235);function jf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Cf(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:Af,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload;switch(r){case Rf:return Cf(Cf({},Af),{},{status:Me.b});case Df:return Cf(Cf({},Af),{},{status:Me.a});case Nf:return{status:Me.d,learnersAllowed:n.users};default:return Cf({},e)}},xf=Object(l.combineReducers)({playlists:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Rd,t=arguments.length>1?arguments[1]:void 0,r={};switch(t.type){case Sd.s:return void 0!==t.payload.itemId?Cd(Cd({},e),{},{statusFlags:Cd(Cd({},e.statusFlags),{},{video:Cd(Cd({},e.statusFlags.video),{},Id({},t.payload.courseId,t.payload.itemId))})}):Cd(Cd({},e),{},{statusFlags:Cd(Cd({},e.statusFlags),{},{course:Cd(Cd({},e.statusFlags.course),{},Id({},t.payload.courseId,!0))})});case Sd.u:return Cd(Cd({},e),{},{statusFlags:Cd(Cd({},e.statusFlags),{},{playlist:!0})});case Sd.y:return Cd(Cd({},e),{},{userPlaylists:Cd(Cd({},e.userPlaylists),{},{status:Me.b})});case Sd.P:return Cd(Cd({},e),{},{statusFlags:Cd(Cd({},e.statusFlags),{},{playlist:!0}),activePlaylist:Cd(Cd({},e.activePlaylist),{},{status:Me.b})});case Sd.Q:r=t.payload;var n=1;return Cd(Cd({},e),{},{statusFlags:{video:!1,course:!1,playlist:!1},activePlaylist:Cd(Cd({status:Me.d,isAdmin:r.is_admin},Le.a.omit(r,"collections")),{},{courses:r.collections.map((function(e){return e.items.forEach((function(e){e.index=n++})),Cd(Cd({},e),{},{trascender:ju(e.exams),course:e.title,id:Tu(e.id),videos:"".concat(e.items.length," of ").concat(e.item_count," "),url:"/learn/it-training/".concat(e.seoslug),trainer:e.trainers[0].name,hours:Fi.a.utc(1e3*e.duration).format("HH:mm:ss")})}))})});case Sd.A:return Cd(Cd({},e),{},{statusFlags:{video:!1,course:!1,playlist:!1},userPlaylists:{status:Me.d,playlists:Le.a.mapKeys(t.payload.items.map((function(e){var t="";return e.assigned_by&&(t="Assigned by ".concat(e.assigned_by)),"certification"===e.type&&(t="Certification Playlist ".concat(t)),{label:e.assigned_by||"certification"===e.type?"".concat(e.name," ").concat(t,""):e.name,playlist_name:e.name,assigner:e.assigned_by,path:"/learn/it-training-videos/playlist/".concat(e.id),id:e.id}})),"id")}});case Sd.v:return Cd(Cd({},e),{},{userPlaylists:{status:Me.d,playlists:Le.a.omit(e.userPlaylists.playlists,t.payload)},statusFlags:Cd(Cd({},e.statusFlags),{},{playlist:!1})});case Pd.g:return Cd(Cd({},e),{},{bookshelfItems:{status:Me.d}});case Pd.f:return Cd(Cd({},e),{},{bookshelfItems:{status:Me.b}});case Pd.e:return Cd(Cd({},e),{},{bookshelfItems:{status:Me.a}});case Pd.c:return Cd(Cd({},e),{},{assignBookshelfItems:{status:Me.d}});case Pd.b:return Cd(Cd({},e),{},{assignBookshelfItems:{status:Me.b}});case Pd.a:return Cd(Cd({},e),{},{assignBookshelfItems:{status:Me.a,error:t.payload}});case Pd.d:return Cd(Cd({},e),{},{assignBookshelfItems:{status:Me.c,error:null}});case Sd.t:return Cd(Cd({},e),{},{statusFlags:Cd(Cd({},e.statusFlags),{},{playlist:!1})});case Sd.r:return Cd(Cd({},e),{},{statusFlags:Cd(Cd({},e.statusFlags),{},{course:Le.a.omit(e.statusFlags.course,t.payload.courseId)})});case Pd.i:return Cd(Cd({},e),{},{statusFlags:Cd(Cd({},e.statusFlags),{},{course:Le.a.omit(e.statusFlags.course,t.payload)}),activePlaylist:Cd(Cd({},e.activePlaylist),{},{courses:e.activePlaylist.courses.filter((function(e){return e.id!==t.payload}))})});case Sd.w:return Cd(Cd({},e),{},{statusFlags:Cd(Cd({},e.statusFlags),{},{video:Le.a.omit(e.statusFlags.video,t.payload.courseId)})});case Sd.x:var o=t.payload,a=o.courseId,i=o.itemId,c=wd(e.activePlaylist.courses),u=Le.a.findIndex(c,{id:a}),s=c.find((function(e){return e.id===a}));return s.items=Le.a.filter(s.items,(function(e){return e.id!==i})),s.videos="".concat(s.items.length," of ").concat(s.item_count," "),c.splice(u,1,s),Cd(Cd({},e),{},{statusFlags:Cd(Cd({},e.statusFlags),{},{video:Le.a.omit(e.statusFlags.video,t.payload.courseId)}),activePlaylist:Cd(Cd({},e.activePlaylist),{},{courses:c})});case _d.d:return Cd(Cd({},e),{},{userPlaylists:Cd(Cd({},e.userPlaylists),{},{playlists:Cd(Cd({},e.userPlaylists.playlists),{},Id({},t.payload.id,{label:t.payload.label,playlist_name:t.payload.playlist_name,path:t.payload.path,id:t.payload.id}))}),activePlaylist:Cd(Cd({},e.activePlaylist),{},{name:t.payload.label})});case Sd.q:return Cd(Cd({},e),{},{statusFlags:{video:!1,course:!1,playlist:!1},userPlaylists:Cd(Cd({},e.userPlaylists),{},{playlists:Cd(Cd({},e.userPlaylists.playlists),{},Id({},t.payload.id,t.payload.playlist))})});case Sd.z:return Cd(Cd({},e),{},{showBubbles:!1});case Sd.k:return Cd(Cd({},e),{},{cloneStatus:Me.b,recentlyClonedPlaylist:""});case Sd.l:return Cd(Cd({},e),{},{cloneStatus:Me.a});case Sd.m:var l=t.payload,d=l.id,f=l.playlist_name,p=Id({},t.payload.id,Cd(Cd({},t.payload),{},{label:f,path:"/learn/it-training-videos/playlist/".concat(d)}));return Cd(Cd({},e),{},{cloneStatus:Me.d,userPlaylists:{playlists:Le.a.assign({},e.userPlaylists.playlists,p)}});case Pd.w:return Cd(Cd({},e),{},{accountData:{status:Me.b}});case Pd.v:return Cd(Cd({},e),{},{accountData:{status:Me.a}});case Pd.x:return Cd(Cd({},e),{},{accountData:Cd(Cd({},t.payload),{},{status:Me.d})});case Pd.B:return Cd(Cd({},e),{},{activeBookshelfItem:Cd({},t.payload)});case Pd.C:return Cd(Cd({},e),{},{nullItemState:t.payload});default:return e}},learners:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ud,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.error,o=t.payload;switch(r){case xd:return Ad(Ad({},e),{},{status:Me.b,error:void 0});case Gd:return{list:Le.a.uniqBy(o.learners,"id"),status:Me.d,error:void 0};case kd:return Ad(Ad({},e),{},{error:n,status:Me.a});case Md:return Ad(Ad({},e),{},{error:void 0,status:Me.c});default:return e}},displaySharePlaylist:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Kd,t=arguments.length>1?arguments[1]:void 0,r=t.type;switch(r){case Sd.X:return{display:!0};case Sd.V:case Sd.U:case Sd.O:return{display:!1};default:return Qd({},e)}},newPlaylist:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rf,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=(t.error,t.payload);switch(r){case Sd.n:return{playListId:null,error:null,pending:!0};case Sd.o:return{playListId:null,error:null,pending:!1};case Sd.q:return{playListId:n,error:null,pending:!1};case Sd.p:return{playListId:null,error:null,pending:!1};default:return e}},renamePlaylist:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:qd,t=arguments.length>1?arguments[1]:void 0,r=t.payload,n=t.type,o=r&&r.response?r.response.data.error:Wd;switch(n){case Hd:return{status:Me.b};case Yd:return{status:Me.a,error:o};case zd:return{status:Me.d};default:return Fd({},e)}},displayRenamePlaylist:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:tf,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Sd.W:return{display:!0};case Sd.N:case Sd.T:return{display:!1};default:return Zd({},e)}},profile:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{status:Me.c,memberId:null,error:null,primaryGroupId:null},t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload;switch(r){case Sd.C:return{status:Me.b,memberId:null,error:null};case Sd.D:return{status:Me.d,memberId:"nrn:member:".concat(n.profile.member_id),primaryGroupId:"nrn:member-group:".concat(n.primaryGroupId),primaryGroupIdClean:n.primaryGroupId,error:null};case Sd.B:return{status:Me.a,memberId:null,error:n};default:return e}},notifications:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload,o=t.error,a=n&&n.message||o&&Le.a.isArray(Le.a.get(o,"response.data.error",null))&&Le.a.get(o,"response.data.error[0].msg",null)||o&&Le.a.get(o,"response.data.error",null)&&Le.a.get(o,"response.data.error",null)||o&&Le.a.get(o,"response.statusText",null);switch(r){case Sd.R:return[n].concat(nf(e));case Pd.q:return[{type:"error",message:"Unable to load playlists ".concat(a,' \n
If the problem persists, please contact Learner Support for help.'),id:Le.a.uniqueId(),status:Me.a}].concat(nf(e));case Pd.y:return[{type:"error",message:"Unable to load playlist ".concat(a,'\n
If the problem continues, contact Learner Support for help.'),id:Le.a.uniqueId(),status:Me.a}].concat(nf(e));case Pd.k:return[{type:"error",message:"Unable to delete playlist ".concat(a,'\n
If the problem continues, contact Learner Support for help.'),id:Le.a.uniqueId(),status:Me.a}].concat(nf(e));case Sd.V:return[{type:"success",message:n.message?n.message:"Your playlist has been shared.",id:Le.a.uniqueId(),status:Me.d}].concat(nf(e));case Sd.U:return[{type:"error",message:"Unable to share playlist ".concat(a,'. \n
Please try again or contact Learner Support for help.'),id:Le.a.uniqueId(),status:Me.a}].concat(nf(e));case Sd.o:return[{type:"error",message:"Cannot create playlist ".concat(a,' \n
If the problem continues, contact Learner Support for help.'),id:Le.a.uniqueId(),status:Me.a}].concat(nf(e));case _d.c:return[{type:"error",message:"Your playlist couldn’t be renamed ".concat(a,'. \n
Please try again. If the problem continues, contact Learner Support for help.'),id:Le.a.uniqueId(),status:Me.a}].concat(nf(e));case _d.d:return[{type:"success",message:'Your playlist was successfully renamed '.concat(n.label,""),id:Le.a.uniqueId(),status:Me.d}].concat(nf(e));case Sd.c:return[{type:"success",message:"Your playlist has been assigned to selected groups.",status:Me.d,id:Le.a.uniqueId()}].concat(nf(e));case Sd.b:return[{type:"error",message:"Unable to assign groups ".concat(a),status:Me.a,id:Le.a.uniqueId()}].concat(nf(e));case Sd.f:return[{type:"success",message:"Your playlist has been assigned with the learners you have selected",status:Me.d,id:Le.a.uniqueId()}].concat(nf(e));case Sd.e:return[{type:"error",message:"Unable to assign to learners ".concat(a),status:Me.a,id:Le.a.uniqueId()}].concat(nf(e));case Sd.m:return[{type:"success",message:"The playlist has been cloned succesfully",status:Me.d,id:Le.a.uniqueId()}].concat(nf(e));case Sd.l:return[{type:"error",message:"Unable to clone the playlist ".concat(a),status:Me.a,id:Le.a.uniqueId()}].concat(nf(e));case Sd.S:return e.filter((function(e){return e.id!==n}));default:return e}},sharePlaylistStatus:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ff,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload;switch(r){case sf:return cf(cf({},e),{},{status:Me.b});case lf:return cf(cf({},e),{},{status:Me.a});case df:var o=n.members;return cf(cf({},e),{},{status:Me.d,learnersShared:Le.a.concat(o,e.learnersShared)});case Sd.K:return cf(cf({},ff),{},{loadLearnersStatus:Me.b});case Sd.L:return cf(cf({},ff),{},{loadLearnersStatus:Me.a});case Sd.M:return{loadLearnersStatus:Me.d,learnersShared:n};default:return cf({},e)}},groups:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:mf,t=arguments.length>1?arguments[1]:void 0,r=t.payload,n=t.error,o=t.type;switch(o){case Sd.E:return yf(yf({},mf),{},{status:Me.b,type:o});case Sd.F:return yf(yf({},mf),{},{error:n,status:Me.a,type:o});case Sd.G:return{groups:r.items,status:Me.d,type:o};case Sd.j:return e.groups.map((function(e){return Le.a.assign(e,{selected:!1})})),yf(yf({},e),{},{type:""});default:return yf(yf({},e),{},{type:""})}},assignedGroups:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ef,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload;switch(r){case Sd.a:return hf(hf({},e),{},{status:Me.b});case Sd.b:return hf(hf({},e),{},{success:!0,error:n,status:Me.a});case Sd.c:return{payload:n,success:!0,status:Me.d};case Sd.i:return hf(hf({},e),Ef);default:return e}},playlistsByGroup:wf,permissionsOverLearners:Lf}),kf=r(366),Gf=r.n(kf),Mf=r(306),Uf=r.n(Mf),Bf=r(154),Ff=r.n(Bf),Vf=r(150);function Hf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Yf(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:qf,n=arguments.length>1?arguments[1]:void 0,o=n.type,a=n.payload,i=null!==(e=null===(t=r.data)||void 0===t?void 0:t.videos)&&void 0!==e?e:[];switch(o){case Vf.e:return{data:qf.data,status:Me.b};case Vf.f:a._id=Uf()(a.id,"nrn:playlist:user:","");var c,u=a.videoNumber,s=a.autoStart,l=Pr()(a,"collections",[]);return Gf()(l,(function(e){Gf()(e.items,(function(t){t._id=Uf()(t.id,"nrn:video:",""),t.collectionId=Uf()(e.id,"nrn:collection:",""),t.collectionTitle=e.title,t.collectionReleaseDate=e.release_date,t.collectionTrainers=e.trainers,t.collectionHasSupplementalFiles=e.legacy_supplemental_files,t.collectionPartNumber=e.partnumber,t.collectionVirtualLabs=e.virtual_labs,t.collectionLegacySeries=e.legacy_series,t.practiceExams=e.exams,t.index=Ff()(i)?0:i.length,i.push(t)}))})),(c=i[u-1]?i[u-1]:i[0]).isLastVideo=c.index===i.length-1,Yf(Yf({},r),{},{data:Yf(Yf({},a),{},{videos:i,selectedVideo:c,autoStart:s}),status:Me.d});case Vf.d:return{error:a,status:Me.a};case Vf.g:var d=a,f={};return f=i[d]?i[d]:i[0],Yf(Yf({},r),{},{data:Yf(Yf({},r.data),{},{selectedVideo:f}),status:r.status});case Vf.b:return Yf(Yf({},r),{},{rating:{loaded:!1}});case Vf.c:case Vf.a:return Yf(Yf({},r),{},{rating:{ratingSummary:n.payload.ratingSummary,loaded:!0}});default:return r}},Jf=r(223);function Qf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function $f(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:Xf,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload;switch(r){case Jf.d:var o=n.videoId,a=Le.a.get(e.videos[o],"isOpen",!1);return $f($f({},e),{},{videos:$f($f({},e.videos),{},Kf({},o,$f($f({},e.videos[o]),{},{isOpen:!a})))});case Jf.b:var i=n.videoId;return $f($f({},e),{},{videos:$f($f({},e.videos),{},Kf({},i,$f($f({},e.videos[i]),{},{fetchStatus:Me.b})))});case Jf.c:var c=n.videoId;return $f($f({},e),{},{videos:$f($f({},e.videos),{},Kf({},c,$f($f({},e.videos[c]),{},{transcript:n.data,fetchStatus:Me.d})))});case Jf.a:var u=n.videoId;return $f($f({},e),{},{videos:$f($f({},e.videos),{},Kf({},u,$f($f({},e.videos[u]),{},{fetchStatus:Me.a,error:n})))});default:return e}},ep=r(294);function tp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function rp(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:op,t=arguments.length>1?arguments[1]:void 0,r=t.examID,n=t.type,o=t.payload;switch(n){case ep.b:var a;return rp(rp({},e),{},(np(a={},r,{status:Me.b}),np(a,"status",Me.b),a));case ep.c:var i;return rp(rp({},e),{},(np(i={},r,{status:Me.d,data:o}),np(i,"status",Me.d),i));case ep.a:var c;return rp(rp({},e),{},(np(c={},r,{status:Me.a,error:o}),np(c,"status",Me.a),c));default:return e}},ip=Object(l.combineReducers)({playlistSummary:Wf,playlistTranscripts:Zf,playlistPracticeExamCatalog:ap}),cp=r(105);function up(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function sp(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:dp,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload,o=t.error;switch(r){case cp.b:return sp(sp({},e),{},{status:"PENDING"});case cp.c:return sp(sp({},e),{},{status:"SUCCESS",payload:n});case cp.a:return sp(sp({},e),{},{status:"ERROR",error:o});case cp.h:return dp;case cp.f:return sp(sp({},e),{},{uploadError:cp.f});case cp.g:return sp(sp({},e),{},{uploadError:cp.g});case cp.d:return sp(sp({},e),{},{uploadError:cp.d});case cp.e:return sp(sp({},e),{},{uploadError:null});default:return sp({},e)}}}),pp=r(295);function yp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function bp(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:gp,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload;switch(r){case pp.b:return bp(bp({},e),{},{status:Me.b});case pp.c:return bp(bp(bp({},e),Object(Q.b)(n,!0)),{},{status:Me.d});case pp.a:return bp(bp({},e),{},{status:Me.a,error:n});default:return e}},vp=Object(l.combineReducers)({invoice:hp}),Ep=r(120);function Op(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Sp(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:Pp,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload;switch(r){case Ep.e:return Sp(Sp({},e),{},{status:Me.b});case Ep.f:return Sp(Sp(Sp({},e),Object(Q.b)(n)),{},{status:Me.d});case Ep.d:return Sp(Sp({},e),{},{status:Me.a,error:n});default:return e}},Tp={},jp=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Tp,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload;switch(r){case Ep.g:return n;default:return e}};function Cp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ip(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:Dp,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload;switch(r){case Ep.b:return Ip(Ip({},e),{},{status:Me.b});case Ep.c:var o=n.id,a=n.name,i=void 0===a?{}:a,c=n.username,u=void 0===c?"":c,s=n.email,l=void 0===s?"":s,d={user_id:o,email:l,userName:u,firstName:i.first||"",lastName:i.last||""};return Ip(Ip(Ip({},e),Object(Q.b)(d,!0)),{},{status:Me.d});case Ep.a:return Ip(Ip({},e),{},{status:Me.a,error:n});default:return e}},Ap=r(296);function Lp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function xp(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:Gp,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload;switch(r){case Ap.b:return xp(xp({},e),{},{status:Me.b});case Ap.c:return xp(xp({},e),{},{data:n,status:Me.d});case Ap.a:return xp(xp({},e),{},{status:Me.a,error:n});default:return e}},Up=Object(l.combineReducers)({userSearch:wp,userSearchOptions:jp,user:Np,userLicenseActivity:Mp}),Bp=r(297);function Fp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Vp(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:Yp,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload;switch(r){case Bp.b:return Vp(Vp({},e),{},{status:Me.b});case Bp.c:return Vp(Vp({},e),{},{data:n,status:Me.d});case Bp.a:return Vp(Vp({},e),{},{error:n,status:Me.a});default:return e}},qp=r(200),Wp=r(218);function Jp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Qp(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:Kp,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload;switch(r){case Wp.b:return Qp(Qp({},e),{},{status:Me.b});case Wp.d:return Qp(Qp(Qp({},e),Object(Q.b)(n,!0)),{},{status:Me.d});case Wp.c:var o=Object(Q.b)(n,!1);return 401===qp.default.get(o,"error.status")&&(o.error=Qp(Qp({},o.error),{},{reason:"INVALID_TOKEN"})),Qp(Qp({},e),{},{status:Me.a},o);case Wp.a:return Kp;default:return e}},Zp=r(966);function ey(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ty(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:ny,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.data,o=t.error;switch(r){case"GET_REDIRECT_STATUS_PENDING":return ty(ty({},e),{},{status:Me.b});case"GET_REDIRECT_STATUS_SUCCESS":return ty(ty({},e),{},{status:Me.d},n);case"GET_REDIRECT_STATUS_ERROR":return ty(ty({},e),{},{status:Me.a,error:o});default:return e}},ay=Object(l.combineReducers)({redirect:oy,pricingScenarios:Zp.a}),iy=Object(l.combineReducers)({pricingScenarios:Zp.a});function cy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function uy(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:ly,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload;switch(r){case"GET_VALIDATED_MINUTES_PENDING":return uy(uy({},e),{},{status:Me.b});case"GET_VALIDATED_MINUTES_SUCCESS":var o=n.data,a=void 0===o?{}:o,i=a.score?Math.floor(a.score/60):0;return uy(uy({},e),{},{data:{score:i},status:Me.d});case"GET_VALIDATED_MINUTES_REJECTED":return uy(uy({},e),{},{status:Me.a});default:return e}};function fy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function py(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:by,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload,o={FETCH_ORGANIZATION_PENDING:py(py({},e),{},{status:Me.b}),FETCH_ORGANIZATION_SUCCESS:py(py({},e),{},{data:n,status:Me.d}),FETCH_ORGANIZATION_ERROR:py(py({},e),{},{status:Me.a,error:n}),DISPLAY_LMI_ADMIN_TOOLS_ERROR:py(py({},e),{},{error:n}),DISPLAY_LMI_ADMIN_TOOLS_SUCCESS:py(py({},e),{},{displayAdminTools:n}),SET_LMI_ADMIN_ROOT_PATH_ERROR:py(py({},e),{},{error:n}),SET_LMI_ADMIN_ROOT_PATH_SUCCESS:py(py({},e),{},{rootPath:n})};return o[r]||e};function gy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function hy(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:Ey,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload,o={FETCH_SECRETS_PENDING:hy(hy({},e),{},{status:Me.b}),FETCH_SECRETS_SUCCESS:hy(hy({},e),{},{data:n,status:Me.d}),FETCH_SECRETS_ERROR:hy(hy({},e),{},{status:Me.a,error:n})};return o[r]||e};function Sy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _y(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:wy,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload,o={FETCH_ACTIVITY_EVENTS_PENDING:_y(_y({},e),{},{status:Me.b}),FETCH_ACTIVITY_EVENTS_SUCCESS:_y(_y({},e),{},{data:n,status:Me.d}),FETCH_ACTIVITY_EVENTS_ERROR:_y(_y({},e),{},{status:Me.a,error:n})};return o[r]||e};function jy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Cy(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:Ry,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload,o={FETCH_BILLABLE_EVENTS_PENDING:Cy(Cy({},e),{},{status:Me.b}),FETCH_BILLABLE_EVENTS_SUCCESS:Cy(Cy(Cy({},e),n),{},{status:Me.d}),FETCH_BILLABLE_EVENTS_ERROR:Cy(Cy({},e),{},{status:Me.a,error:n}),DOWNLOAD_BILLING_EVENTS_PENDING:Cy({},e),DOWNLOAD_BILLING_EVENTS_ERROR:Cy(Cy({},e),{},{error:n}),DOWNLOAD_BILLING_EVENTS_SUCCESS:Cy({},e)};return o[r]||e},Ny=r(55);function Ay(e){return function(e){if(Array.isArray(e))return Ly(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Ly(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ly(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ly(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:My,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload;switch(r){case Ny.e:return ky(ky({},e),{},{status:Me.b});case Ny.f:return ky(ky({},e),{},{data:Le.a.unionBy(e.data,n.courses,"nrn"),objectMap:Le.a.merge(n.objectMap,e.objectMap),status:Me.d});case Ny.d:return ky(ky({},e),{},{status:Me.a,error:n});case Ny.b:return ky(ky({},e),{},{status:Me.b});case Ny.c:var o=ky({},e.objectMap);return o[n.contentId]=!0,ky(ky({},e),{},{objectMap:o,status:Me.d});case Ny.a:return ky(ky({},e),{},{status:Me.a,error:n});case Ny.h:return ky(ky({},e),{},{status:Me.b});case Ny.i:var a=ky({},e.objectMap);delete a[n.course.nrn];var i=Le.a.reduce([].concat(Ay(e.data),[n.course]),(function(e,t){return t.nrn!==n.course.nrn&&e.push(t),e}),[]);return ky(ky({},e),{},{data:i,objectMap:a,deleteStatus:Me.d});case Ny.g:return ky(ky({},e),{},{deleteStatus:Me.a,error:n});case Ny.q:return ky(ky({},e),{},{updateParamsStatus:Me.b});case Ny.u:var c=Le.a.map(e.data,(function(e){return e.reference===n.course.reference&&(e.customParams=n.course.customParams),e}));return ky(ky({},e),{},{data:c,updateParamsStatus:Me.d});case Ny.p:return ky(ky({},e),{},{updateParamsStatus:Me.a,error:n});case Ny.s:return ky(ky({},e),{},{updateActiveStatus:Me.b});case Ny.t:var u=Le.a.map(e.data,(function(e){return e.reference===n.course.reference&&(e.isActive=!n.course.isActive),e}));return ky(ky({},e),{},{data:u,updateParamsStatus:Me.d});case Ny.r:return ky(ky({},e),{},{updateActiveStatus:Me.a,error:n});case Ny.k:return ky({},e);case Ny.j:return ky(ky({},e),{},{error:n});case Ny.l:var s=n.reference;return ky(ky({},e),{},{modalIsOpenMap:ky(ky({},e.modalIsOpenMap),s)});case Ny.n:return ky({},e);case Ny.m:return ky(ky({},e),{},{error:n});case Ny.o:var l=n.pageNumber;return ky(ky({},e),{},{pageNumber:l});default:return ky({},e)}},By=Object(l.combineReducers)({organization:my,activityEvents:Ty,billableEvents:Dy,secrets:Oy,contentManager:Uy}),Fy=r(148),Vy={status:Me.c,error:{}},Hy=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Vy,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload;switch(r){case Fy.a:return{status:Me.b};case Fy.b:var o=(null==n?void 0:n.message)||(null==n?void 0:n.data.error);return{error:{status:null==n?void 0:n.status,message:o},status:Me.a};case Fy.c:return{status:Me.d};default:return e}},Yy=r(298),zy={status:Me.c,error:{}},qy=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:zy,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload;switch(r){case Yy.a:return{status:Me.b};case Yy.b:var o=(null==n?void 0:n.message)||(null==n?void 0:n.data.error);return{error:{status:null==n?void 0:n.status,message:o},status:Me.a};case Yy.c:return{status:Me.d};default:return e}},Wy={status:Me.c,error:{}},Jy=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Wy,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.payload;switch(r){case Fy.d:return{status:Me.b};case Fy.e:var o=(null==n?void 0:n.message)||(null==n?void 0:n.data.error);return{error:{status:null==n?void 0:n.status,message:o},status:Me.a};case Fy.f:return{status:Me.d};default:return e}},Qy=Object(l.combineReducers)({sendCode:Hy,verifyCode:Jy,signupComplete:qy});function $y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ky(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return e},form:Eo.a,featureFlags:jo},eb=Object(l.combineReducers)(Ky(Ky({},Zy),{},{login:ko,course:Oi,appUI:ji,userData:Ai,validatedMinutes:dy,yourAccount:gl,tagManager:_l,myTraining:Od,featureFlags:jo,managePlaylists:xf,playlist:ip,virtualLab:fp,cbtAdmin:Up,adminAddPayment:vp,suppFiles:zp,createPassword:Xp,redirectDetails:ay,paymentFormV2:iy,lmiAdmin:By,verifyPhone:Qy})),tb=r(266),rb=r(260),nb=r(142),ob=r(67),ab=r(219),ib=(r(927),Object(tb.a)({uri:J.s,fetch:rb.default})),cb=new nb.d({link:ob.ApolloLink.from([c.apolloLinkWithAuth,c.apolloLinkHandleAuthError,ib]),cache:new ab.a,connectToDevTools:!0}),ub=r(167);function sb(e,t,r,n,o,a,i){try{var c=e[a](i),u=c.value}catch(e){return void r(e)}c.done?t(u):Promise.resolve(u).then(n,o)}"undefined"!=typeof CDN_ASSETS&&CDN_ASSETS&&(r.p=CDN_ASSETS);var lb="undefined"==typeof ENV_CONFIGURATION?{}:ENV_CONFIGURATION;try{var db,fb,pb,yb,bb,mb,gb,hb,vb;Object(u.init)({disabled:null!==(db=null==lb||null===(fb=lb.datadog)||void 0===fb?void 0:fb.disabled)&&void 0!==db&&db,clientToken:null==lb||null===(pb=lb.datadog)||void 0===pb?void 0:pb.clientToken,useRum:(null==lb||null===(yb=lb.datadog)||void 0===yb?void 0:yb.rumApplicationId)&&!(null!=lb&&null!==(bb=lb.datadog)&&void 0!==bb&&bb.disabled),rumApplicationId:null==lb||null===(mb=lb.datadog)||void 0===mb?void 0:mb.rumApplicationId,sampleRate:null==lb||null===(gb=lb.datadog)||void 0===gb?void 0:gb.sampleRate,env:null==lb||null===(hb=lb.datadog)||void 0===hb?void 0:hb.env,additionalDatadogRUMOptions:null==lb||null===(vb=lb.datadog)||void 0===vb?void 0:vb.additionalDatadogRUMOptions,version:"4.4.0",service:"static-learner"}),Object(u.addGlobalContext)("spaName","static-learner"),Object(u.addGlobalContext)("spaVersion","4.4.0")}catch(e){console.error("Unable to initialize DataDog",e)}"undefined"!=typeof navigator&&(fe=navigator.connection||navigator.mozConnection||navigator.webkitConnection),fe&&fe.addEventListener("change",be),"undefined"!=typeof window&&(window.addEventListener("offline",me),window.addEventListener("online",me)),me(),be();var Eb=Object(Z.b)(!0),Ob=c.guardian.init({authUrl:J.f});(new b.a).setApolloClient(cb);var Sb,_b=!1,Pb=function(e){if(e&&""!==e)try{Beamer.update({user_id:e}),_b||(Beamer.init(),_b=!0)}catch(e){}};c.guardian.on(c.GuardianEvent.updatedToken,(function(e){var t=e.userId;Pb(t)})),(Sb=regeneratorRuntime.mark((function e(){var t,r,n,a,c,u,b;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([Eb,Ob]);case 2:return t=e.sent,r=t[1],e.next=6,Object(y.asyncWithLDProvider)({clientSideID:lb.LDConsumer.clientSideID,user:Object(Q.e)(r),sendEvents:!1});case 6:n=e.sent,a={configuration:lb},r&&r.userId&&!_b&&((c=document.createElement("script")).src="https://app.getbeamer.comhttps://www.cbtnuggets.com/js/beamer-embed.js",c.defer=!0,document.head.appendChild(c),Pb(r.userId)),u=Object(l.applyMiddleware)(f.default),b=Object(l.createStore)(eb,a,u),Object(ee.b)(b),X(window,b),i.a.render(o.a.createElement(W,null,o.a.createElement(n,null,o.a.createElement(p.a,{client:cb},o.a.createElement(d.Provider,{store:b},o.a.createElement(s.e,{history:ub.a},o.a.createElement(j,null,o.a.createElement(de,null,o.a.createElement(vo,{configuration:lb,authentication:r},o.a.createElement(s.d,{component:io}))))))))),document.getElementById("app"));case 14:case"end":return e.stop()}}),e)})),function(){var e=this,t=arguments;return new Promise((function(r,n){var o=Sb.apply(e,t);function a(e){sb(o,r,n,a,i,"next",e)}function i(e){sb(o,r,n,a,i,"throw",e)}a(void 0)}))})()},96:function(e,t,r){"use strict";var n=r(266),o=r(4),a=r(142),i=r(67),c=r(7),u=r(219),s=r(508),l=new u.b({introspectionQueryResultData:s}),d=Object(n.a)({uri:o.t});t.a=new a.d({link:i.ApolloLink.from([c.apolloLinkWithAuth,c.apolloLinkHandleAuthError,d]),cache:new u.a({fragmentMatcher:l})})},97:function(e,t,r){"use strict";var n=r(39),o=r(16),a=r(0),i=r(15),c=r(25),u=r(192),s=r(74),l=Object(i.a)((function(e){var t,r,l=Object(i.b)(n.a).loggedIn,d=Object(c.c)("userSummaryContainer",u.a,{enabled:!1}),f=d.data,p=d.status,y=d.refetch,b=Object(c.d)(),m=Object(a.useMemo)((function(){return l?p===c.a.Error?o.c.ERROR:p===c.a.Loading?o.c.LOADING:p===c.a.Success?o.c.READY:o.c.INITIAL:o.c.WAITING_FOR_DEPENDENCY}),[l,p]);Object(a.useEffect)((function(){!l&&f&&(null==b||b.removeQueries("userSummaryContainer"))}),[l,f,b]);var g=null!==(t=null==e?void 0:e.userSummary)&&void 0!==t?t:f,h=Object(s.a)({containerStatus:m,fetchCallback:y}),v=Object(a.useMemo)((function(){var e,t;return!0===(null===(e=null==g||null===(t=g.groupRoles)||void 0===t?void 0:t.viewer)||void 0===e||e)}),[g]);return{userSummary:g,userSummaryStatus:null!==(r=null==e?void 0:e.userSummaryStatus)&&void 0!==r?r:m,getUserSummary:h,isViewer:v}}));t.a=l}}); //# sourceMappingURL=35.static-learner.4.4.0.20f45cc588dd50e5f14b.js.map