!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="702553be-bc89-48c1-a373-952d70210e6d",e._sentryDebugIdIdentifier="sentry-dbid-702553be-bc89-48c1-a373-952d70210e6d")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7182],{61300:function(e,t,a){"use strict";a.d(t,{t:function(){return o}});var n=a(24386);let s=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{type:n.MY,data:{persist:e,preventPersist:t}}};var r=a(54529);let o={toggleSideBar:e=>(t,a)=>{t(s({isSideBarUncollapsed:r.V.getIsSideBarUncollapsed(a())?0:1},e))}}},54529:function(e,t,a){"use strict";a.d(t,{V:function(){return n}});let n={getIsSideBarUncollapsed:(0,a(22222).P1)(e=>{let{persist:t}=e;return t},e=>{let t=Number(e.isSideBarUncollapsed);return!!Number.isNaN(t)||!!t})}},3145:function(e,t,a){"use strict";a.d(t,{f:function(){return n}});let n={getTransactions:async(e,t,a)=>(await e.get(`/api/v1/users/${t}/transactions`,{params:a})).data,getPendingTransactions:async(e,t,a)=>(await e.post(`/api/v1/users/${t}/transactions/pending`,a)).data,getMoneyBalance:async(e,t)=>(await e.post(`/api/v1/users/${t}/money`)).data,getPayoutRequests:async(e,t)=>(await e.get("/api/v1/wallet/payout-requests",{params:t})).data}},99516:function(e,t,a){"use strict";a.d(t,{F:function(){return u}});var n=a(85893),s=a(67294),r=a(4515),o=a(33617),i=a(34338),l=a(61300),c=a(69203),d=a(73011),_=a(19234);let u=e=>{let{className:t}=e,a=(0,c.T)(),u=(0,r.a)(o.j.SM),p=(0,s.useCallback)(e=>{e.nativeEvent.stopImmediatePropagation(),u&&a(i.A.tutorSidebarOpenToggle()),a(l.t.toggleSideBar(u))},[a,u]);return(0,n.jsx)(d.h,{className:t,onClick:p,children:(0,n.jsx)(_.f,{mr:!1})})}},76246:function(e,t,a){"use strict";a.d(t,{O:function(){return H}});var n=a(85893),s=a(90512),r=a(90278),o=a(71356),i=a.n(o),l=a(75952),c=a(99516),d=a(11479),_=a(7176),u=a(44876),p=a.n(u);let g=e=>{let{className:t}=e,a=(0,l.T)("layout.header.broadcast");return(0,n.jsxs)("div",{className:(0,s.Z)(p().root,t),children:[(0,n.jsx)(c.F,{className:p().tutorSidebarBtn}),(0,n.jsx)(d.Z,{}),(0,n.jsx)("div",{className:p().divider}),(0,n.jsx)(_.Z,{className:p().broadcastLabel,color:"base-80",component:"h1",upperCase:!0,variant:"text-bold-10",children:a("title")})]})};g.messages=["layout.header.broadcast"];var x=a(21541),h=a(74448),m=a(96241),v=a(60894),f=a(67294),j=a(2664),B=a(79029),N=a(48047),b=a(54202),S=a(64564),I=a(46888),A=a(45653),y=a(44093),L=a(6352),T=a(76541),C=a.n(T);let R=(0,n.jsx)(L.n,{}),k=e=>{let{className:t}=e,{formatPricePrecise:a}=(0,N.B)(),s=(0,j.v9)(A.rc),{balance:r,isBalanceLoading:o,mutate:i}=(0,I.I)(s),l=(0,f.useCallback)(async e=>{let{balance:t}=e;await i(()=>({balance:t}),{revalidate:!1})},[i]);(0,S.G)(b.E.MONEY_BALANCE_UPDATE,l);let c=(0,f.useMemo)(()=>({content:o?C().loading:void 0}),[o]);return(0,n.jsx)(B.z,{className:t,classNames:c,startIcon:R,to:y.II.WALLET_BRANCH.path,type:"link",variant:"transparent",children:a(o?99:r,{currency:"usd"})})};var w=a(53311),Z=a.n(w);let E=e=>{let{className:t}=e;return(0,n.jsxs)("div",{className:(0,s.Z)(Z().root,t),children:[(0,n.jsx)(m.q,{className:Z().reactivateTutorCardBtn}),(0,n.jsx)(k,{className:Z().balanceBtn}),(0,n.jsx)(x.j,{}),(0,n.jsx)(h.K,{}),(0,n.jsx)(v.X,{})]})};E.messages=[...m.q.messages,...h.K.messages,...v.X.messages];let H=e=>{let{className:t}=e;return(0,n.jsxs)(r.g,{className:(0,s.Z)(i().root,t),isAlwaysVisibile:!0,children:[(0,n.jsx)(g,{}),(0,n.jsx)(E,{})]})};H.messages=[...g.messages,...E.messages]},83405:function(e,t,a){"use strict";a.d(t,{U:function(){return q}});var n=a(85893),s=a(90512),r=a(2664),o=a(61848),i=a(55975),l=a(97681),c=a(67294),d=a(54283),_=a(79029),u=a(11341),p=a(75952),g=a(21118),x=a(26332),h=a(74509),m=a(9054),v=a(11920),f=a(25214),j=a(37083),B=a(30806),N=a(49607),b=a(38386),S=a(7176),I=a(40900),A=a(76272),y=a(49453),L=a.n(y);let T=e=>{let{className:t}=e,a=(0,p.T)("LearningPathIntroductionBanner.ShowDetailsBtn"),{overlay:r,showOverlay:o}=(0,I.I)(),i=(0,c.useCallback)(()=>{o(A.g)},[o]);return(0,n.jsxs)(c.Fragment,{children:[(0,n.jsx)(_.z,{className:(0,s.Z)(L().root,t),color:"yellow",fullWidth:!0,onClick:i,size:"200",children:a("title")}),r]})};var C=a(45498),R=a.n(C);let k={tagBasics:e=>(0,n.jsxs)(S.Z,{className:R().tagLevel,component:"span",display:"inline",variant:"text-bold-14",children:[(0,n.jsx)(b.p,{}),e]}),tagAdvanced:e=>(0,n.jsxs)(S.Z,{className:R().tagLevel,component:"span",display:"inline",variant:"text-bold-14",children:[(0,n.jsx)(N.Z,{}),e]})},w=e=>{let{className:t,releaseDate:a}=e,r=(0,p.T)("LearningPathIntroductionBanner.AfterState"),{locale:o}=(0,B.x)(),{showModal:i}=(0,h.dd)(),{startConversationWithSupport:l}=(0,d.a)(),{isLoading:N,removeTags:b}=(0,m.e)(),I=(0,c.useCallback)(async()=>{await b(),i(v.g)},[b,i]),A=(0,c.useMemo)(()=>({contactLink:e=>(0,n.jsx)(S.Z,{className:R().contactLink,color:"inherit",component:"span",display:"inline",onClick:l,variant:"inherit",children:e})}),[l]),{formatAppointmentDateYear:y}=(0,u.W)(),L=(0,c.useMemo)(()=>({date:y(a),faqLink:e=>(0,n.jsx)(x.b,{className:R().faqLink,target:"_blank",to:j.N.getCommunityLocaleHref(o,f.W.LEARNING_PATH_FOR_TUTORS),children:e})}),[o,y,a]);return(0,n.jsxs)("div",{className:(0,s.Z)(R().root,t),children:[(0,n.jsxs)("div",{className:R().content,children:[(0,n.jsx)("div",{className:R().header,children:(0,n.jsx)(S.Z,{className:R().title,color:"token-color-150",component:"p",variant:"text-heading-32",children:r("title")})}),(0,n.jsxs)("div",{className:R().body,children:[(0,n.jsx)(S.Z,{color:"base-90",component:"p",variant:"text-16",children:r.rich("p1",{...k,...L})}),(0,n.jsx)(S.Z,{color:"base-90",component:"p",variant:"text-16",children:r("p2")}),(0,n.jsx)(S.Z,{color:"base-90",component:"p",variant:"text-16",children:r("p3")}),(0,n.jsx)(S.Z,{color:"base-90",component:"p",variant:"text-16",children:r("p4")}),(0,n.jsx)(S.Z,{color:"base-90",component:"p",variant:"text-16",children:r.rich("p5",A)})]})]}),(0,n.jsxs)("div",{className:R().actions,children:[(0,n.jsx)(T,{}),(0,n.jsx)(_.z,{className:R().cancelBtn,disabled:N,fullWidth:!0,isLoading:N,onClick:I,size:"200",children:r("cancelBtn")})]}),(0,n.jsx)(g.Y,{alt:"learning path example",className:R().image,height:476,src:"/images/learning-path-v2/introduction-banner/lp-example.png",width:448})]})};var Z=a(67213),E=a(27635),H=a(17570),O=a.n(H);let D=e=>{let{className:t,releaseDate:a}=e,r=(0,p.T)("LearningPathIntroductionBanner.BeforeState"),{locale:o}=(0,B.x)(),{startConversationWithSupport:i}=(0,d.a)(),l=(0,c.useMemo)(()=>({faqLink:e=>(0,n.jsx)(x.b,{className:O().faqLink,to:j.N.getCommunityLocaleHref(o,f.W.LEARNING_PATH_FOR_TUTORS),children:e}),tagBasics:e=>(0,n.jsxs)(S.Z,{className:O().tagLevel,component:"span",display:"inline",variant:"text-bold-14",children:[(0,n.jsx)(b.p,{}),e]}),tagAdvanced:e=>(0,n.jsxs)(S.Z,{className:O().tagLevel,component:"span",display:"inline",variant:"text-bold-14",children:[(0,n.jsx)(N.Z,{}),e]})}),[o]),_=(0,c.useMemo)(()=>({contactLink:e=>(0,n.jsx)(S.Z,{className:O().contactLink,color:"inherit",component:"span",display:"inline",onClick:i,variant:"inherit",children:e})}),[i]),{format:h}=(0,u.W)(),m=(0,c.useMemo)(()=>({date:h(a,{day:"numeric",month:"long"})}),[h,a]);return(0,n.jsxs)("div",{className:(0,s.Z)(O().root,t),children:[(0,n.jsxs)("div",{className:O().content,children:[(0,n.jsx)("div",{children:(0,n.jsx)(S.Z,{className:O().title,color:"token-color-150",component:"p",variant:"text-heading-32",children:r("title")})}),(0,n.jsxs)("div",{className:O().body,children:[(0,n.jsx)(S.Z,{component:"p",variant:"text-16",children:r.rich("p1",{...l,...m})}),(0,n.jsx)(S.Z,{component:"p",variant:"text-16",children:r("p2")}),(0,n.jsx)(S.Z,{component:"p",variant:"text-16",children:r.rich("p3",_)}),(0,n.jsx)(Z.i,{}),(0,n.jsxs)("div",{className:O().warning,children:[(0,n.jsx)(E.T,{className:O().iconAttention,mr:!1}),(0,n.jsx)(S.Z,{color:"token-color-150",component:"p",variant:"text-bold-14",children:r("warning")})]})]})]}),(0,n.jsx)("div",{className:O().actions,children:(0,n.jsx)(T,{})}),(0,n.jsx)(g.Y,{alt:"learning path example",className:O().image,height:476,src:"/images/learning-path-v2/introduction-banner/lp-example.png",width:448})]})};var M=a(4829),P=a.n(M);let U="2024-04-15T00:00:00Z",q=e=>{let{className:t}=e,a=(0,r.v9)(i.ts),c=(0,l.j)(a?.tags),d=(0,r.v9)(i.Rd.getIsLPEnabled);return c&&!d?(0,n.jsx)("div",{className:(0,s.Z)(P().root,t),children:o.i.isAfter(new Date(U),new Date)?(0,n.jsx)(D,{releaseDate:U}):(0,n.jsx)(w,{releaseDate:U})}):null}},96241:function(e,t,a){"use strict";a.d(t,{q:function(){return y}});var n=a(85893),s=a(11163),r=a(2664),o=a(79029),i=a(75952),l=a(58647),c=a(55975),d=a(39849),_=a(91667),u=a(44093),p=a(48197),g=a(27635),x=a(62601),h=a(2148),m=a(82826),v=a(62479),f=a(34365),j=a.n(f);let B=(0,n.jsx)(v.q,{}),N=(0,n.jsx)(g.T,{}),b=(0,n.jsx)(m.c,{}),S=(0,n.jsx)(h.g,{}),I=(0,n.jsx)(p.L,{className:j().iconAlert}),A=(0,n.jsx)(x.d,{}),y=e=>{let{...t}=e,{pathname:a}=(0,s.useRouter)(),p=(0,i.T)("profileStatusBtn"),g=!!(0,_.qI)(a,!1),x=(0,r.v9)(c.Rd.getIsProbablyTutor),h=(0,r.v9)(c.Rd.getIsTutorProfileHidden),m=(0,r.v9)(d.S.getIsVacationModeActive),v=(0,r.v9)(c.Rd.getIsInBusyMode),f=(0,r.v9)(c.Rd.getModerationStatus);return x&&f!==l.KA.REJECTED?f===l.KA.PENDING_MODERATION||f===l.KA.PENDING_INITIAL_MODERATION?(0,n.jsx)(o.z,{color:"white",startIcon:B,to:u.II.STUDIO_BROADCAST_BRANCH.path,type:"link",...t,children:p("pendingModeration")}):f===l.KA.NEEDS_MODERATION?(0,n.jsx)(o.z,{color:"yellow",startIcon:N,to:u.II.STUDIO_BROADCAST_BRANCH.path,type:"link",...t,children:p("needsModeration")}):m?(0,n.jsx)(o.z,{color:"yellow",startIcon:b,to:u.II.STUDIO_PRIVATE_LESSONS_GENERAL_BRANCH.path,type:"link",variant:"contained",...t,children:p("vacationMode")}):h?(0,n.jsx)(o.z,{color:"red",startIcon:I,to:u.II.STUDIO_BROADCAST_BRANCH.path,type:"link",variant:"contained",...t,children:p("reactivateTutorCard")}):v?(0,n.jsx)(o.z,{color:"yellow",startIcon:S,to:u.II.STUDIO_PRIVATE_LESSONS_GENERAL_BRANCH.path,type:"link",variant:"contained",...t,children:p("busyMode")}):g?null:(0,n.jsx)(o.z,{startIcon:A,to:u.II.STUDIO_BROADCAST_BRANCH.path,type:"link",variant:"transparent",...t,children:p("tutorStudio")}):null};y.messages=["profileStatusBtn"]},46888:function(e,t,a){"use strict";a.d(t,{I:function(){return i}});var n=a(95591),s=a(3145),r=a(76953);let o=e=>`/users/${e}/money`,i=e=>{let t=(0,r.S)(),a=async()=>{let a=await t.getInstance();return s.f.getMoneyBalance(a,e)},{data:i,error:l,mutate:c}=(0,n.ZP)(o(e),a);return{balance:i?.balance||0,isBalanceLoading:!i&&!l,isBalanceLoaded:!!i,mutate:c}}},19234:function(e,t,a){"use strict";a.d(t,{f:function(){return c}});var n,s=a(85893),r=a(67294);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e}).apply(null,arguments)}function i(e){return r.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},e),n||(n=r.createElement("path",{fillRule:"evenodd",d:"M4 8C3.45 8 3 7.55 3 7C3 6.45 3.45 6 4 6H20C20.55 6 21 6.45 21 7C21 7.55 20.55 8 20 8H4ZM4 13H20C20.55 13 21 12.55 21 12C21 11.45 20.55 11 20 11H4C3.45 11 3 11.45 3 12C3 12.55 3.45 13 4 13ZM4 18H20C20.55 18 21 17.55 21 17C21 16.45 20.55 16 20 16H4C3.45 16 3 16.45 3 17C3 17.55 3.45 18 4 18Z",clipRule:"evenodd"})))}var l=a(85079);let c=e=>(0,s.jsx)(l.Z,{...e,children:(0,s.jsx)(i,{})})},71356:function(e){e.exports={root:"HeaderBroadcast_root__GbwRy",pulse:"HeaderBroadcast_pulse__3nrMl"}},44876:function(e){e.exports={root:"HeaderBroadcastMain_root__R3cp2",tutorSidebarBtn:"HeaderBroadcastMain_tutorSidebarBtn__8z2EO",divider:"HeaderBroadcastMain_divider__25G_r",broadcastLabel:"HeaderBroadcastMain_broadcastLabel__0TDg7",pulse:"HeaderBroadcastMain_pulse__KK1Zn"}},76541:function(e){e.exports={loading:"HeaderBalanceBtn_loading__owwKU",pulse:"HeaderBalanceBtn_pulse__i29hh"}},53311:function(e){e.exports={root:"HeaderBroadcastRightUser_root__9KqDk",balanceBtn:"HeaderBroadcastRightUser_balanceBtn__yOaRR",reactivateTutorCardBtn:"HeaderBroadcastRightUser_reactivateTutorCardBtn__WJ3JU",pulse:"HeaderBroadcastRightUser_pulse__OffMJ"}},4829:function(e){e.exports={root:"LearningPathIntroductionBanner_root__yEAVp",pulse:"LearningPathIntroductionBanner_pulse__adXO5"}},45498:function(e){e.exports={root:"AfterState_root__AvrtF",content:"AfterState_content__Lg_Sm",header:"AfterState_header___eh6y",title:"AfterState_title__QKBX6",body:"AfterState_body__lDy6l",faqLink:"AfterState_faqLink__8TFu_",tagLevel:"AfterState_tagLevel__XjfdR",contactLink:"AfterState_contactLink__qf6TP",actions:"AfterState_actions__MUNNt",cancelBtn:"AfterState_cancelBtn__dp_Fg",image:"AfterState_image__SKG6T",pulse:"AfterState_pulse__fopks"}},17570:function(e){e.exports={root:"BeforeState_root__8HFbp",content:"BeforeState_content__2_VsQ",title:"BeforeState_title__ZlHVl",body:"BeforeState_body__v07Tp",faqLink:"BeforeState_faqLink__6ibe1",tagLevel:"BeforeState_tagLevel__iELT_",contactLink:"BeforeState_contactLink__jiOIC",warning:"BeforeState_warning__gAbPg",iconAttention:"BeforeState_iconAttention__PshvW",actions:"BeforeState_actions__lIzCY",image:"BeforeState_image__0Qnnq",pulse:"BeforeState_pulse__PXNVn"}},49453:function(e){e.exports={pulse:"ShowDetailsBtn_pulse__5IR0r"}},34365:function(e){e.exports={iconAlert:"TutorStatusBtn_iconAlert__BhGD0",pulse:"TutorStatusBtn_pulse__AcP4a"}}}]);