1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[26],{6117:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dashboard",function(){return a(8995)}])},5960:function(e,t,a){"use strict";a.d(t,{u:function(){return n}});var i=a(5893),o=a(9578);let n={header:{title:"Teach Away Premium Membership",description:"Ensure your applications stand out to hiring managers and apply to unlimited jobs!",cta:"Upgrade my plan"},plans:{title:"Upgrade your membership to unlock all features",description:(0,i.jsx)(i.Fragment,{children:"Become a premium member to gain access to exclusive benefits that will make your job search a breeze and your options limitless. Choose the membership thatâs right for you!"}),promo:"Get annual access and SAVE up to 75%"},benefits:{free:["Basic Profile","View all job listings","Limited job applications","Get Job Alerts","Create a full Teacher profile and resume","Access job seeking resources"],premium:["Unlimited job applications","Stand out to employers with a featured badge","20% off courses (excludes teacher certification)","Get 15% off background checks with Avvanz","FREE culturally responsive teaching course ($49 value)","Eligible candidates receive access to Teach Away job fairs","Exclusive events/webinars"]},cards:{free:{title:"STANDARD MEMBERSHIP",subtitle:"Best for casual job seekers",price:"FREE",subprice:"Forever",cta:"KEEP STANDARD"},premium:{title:"PREMIUM MEMBERSHIP*",subtitle:"Great for dedicated candidates",monthlyPrice:e=>"$".concat(e,"/month"),yearlyPrice:e=>"$".concat(e,"/year"),subprice:"(USD)",cta:"UPGRADE MY PLAN"}},faq:{title:"Frequently Asked Questions (FAQs)",subtitle:"Do you have questions about Teach Away membership plans? We have the answers!",questions:[{question:"Do I need to pay to have a profile on Teach Away?",answer:"No, you can always choose to keep your free forever account on Teach Away."},{question:"Does my annual membership automatically renew?",answer:"Yes! Your annual membership will renew automatically using your original form of payment. You'll receive an email reminder in advance before payment is put through."},{question:"Can I try out the Premium Membership before committing?",answer:"No, trial periods for our Premium Memberships are not available at this time."},{question:"Is the Premium Membership available for international job seekers and teachers?",answer:"Yes, our Premium Membership is available to both domestic and international job seeking teachers."},{question:"What happens to my account if I cancel my Premium membership subscription?",answer:"If you cancel your Premium membership, you will retain access to your Premium benef
1its until the end of your membership subscription period, upon which your account will be converted back to a free account."},{question:"Are there any options for a monthly membership?",answer:"Monthly memberships are not currently available. At the moment, we're offering annual memberships only."},{question:"What form of payments are accepted for Premium memberships?",answer:"We accept major credit cards and other secure payment methods. You can choose the payment option that best suits your preferences during the subscription process."}]},contact:{title:"Contact us for more information on Teach Away Premium membership plans",description:"Have any questions about membership pricing, plans, or features that we can help you with? Please reach out and a member of our support team will be happy to get back to you.",cta:"Contact support"},shopify:{checkout:{staging:{yearly:{variantId:"40563408273482",sellingPlan:"1742536778"}},production:{yearly:{variantId:"52249685361008",sellingPlan:"691890880880"}}}},modals:{anonymousInterested:{title:"Youâre almost there!",content:(0,i.jsx)("div",{children:(0,i.jsx)(o.uT,{weight:"semibold",size:"x-large",children:"Please login or create an account to complete your Premium Membership purchase."})})},newSubscriber:{title:"Congratulations, youâre now a Teach Away Premium member!",content:(0,i.jsxs)("div",{children:[(0,i.jsx)(o.uT,{weight:"semibold",size:"x-large",children:"You're now one step closer to securing the teaching job of your dreams! You can start taking advantage of your new membership benefits right away."}),(0,i.jsx)("br",{}),(0,i.jsx)(o.uT,{weight:"semibold",size:"x-large",children:"We'll be emailing you shortly with more details about Premium, as well as exclusive membership benefits and offers."})]})},notInterested:{title:"Maybe next time!",content:(0,i.jsxs)("div",{children:[(0,i.jsx)(o.uT,{weight:"semibold",size:"x-large",children:"Not interested? No problem! We're here to help you find your dream teaching job. In case you change your mind, feel free to return and explore our Premium memberships at a later time."}),(0,i.jsx)("br",{}),(0,i.jsx)(o.uT,{weight:"semibold",size:"x-large",children:"Before you go, please let us know why you feel a Premium membership isnât right for you:"})]}),cta:"Submit",feedbackOptions:["Free access works for me right now","I have other financial priorities","Past Premium memberships didnât work out","Not too serious about finding a job abroad at the moment"]},hubspot:{development:{notInterested:"e11565d9-9305-4993-bc9f-89dd61124efd",interested:"d80c57ad-3378-4c75-b013-59d7778a4107"},staging:{notInterested:"e11565d9-9305-4993-bc9f-89dd61124efd",interested:"d80c57ad-3378-4c75-b013-59d7778a4107"},production:{notInterested:"dbe0419a-aba4-4908-b0ed-2dea3d3d8fb3",interested:"f8475ae3-0b55-4e31-be00-0e0e72028e6f"}}}}},8995:function(e,t,a){"use strict";a.r(t),a.d(t,{__N_SSP:function(){return aF},default:function(){return aM}});var i,o,n,s,r=a(5893),l=a(7294),c=a(5313),d=a(4298),h=a.n(d),u=a(1337),p=a(6128);let m=()=>(0,r.jsx)(p.Z,{id:"dashboard-banner",title:"Dashboard"});var x=a(2691),g=a(9921),j=a(2154),b=a(287),f=a(4892),y=a(5152),v=a.n(y),w=a(5675),T=a.n(w),C=a(1163),E=a(9578),N=a(6575),S=a(2708),k=a(2144),A=a(7443),_=a(3775),I=a(9192);let{assetsUrl:L}=(0,j.Z)(),P=e=>{let{children:t}=e;return(0,r.jsx)(N.h2,{children:(0,r.jsx)(S.cI,{children:(0,r.jsx)(k.iB,{children:(0,r.jsx)(A.lH,{children:(0,r.jsx)(_.CA,{children:t})})})})})},z=()=>{let{edit:{setShowEditModal:e}}=(0,x.ZP)("strength"),{completeness:t,profileStrength:a,statement:i}=(0,I.Z)(),o=(0,C.useRouter)();return(0,r.jsxs)("div",{className:"dashboard-strength-card",children:[(0,r.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"center"},children:[(0,r.jsx)("img",{src:"".concat(L,"/logos/trophy.svg"),alt:"Trophy"}),(0,r.jsxs)(E.uT,{weight:"bold",size:"large",children:["Profile Strength:"," ",(0,r.jsx)(E.uT,{element:"span",weight:"semibold",size:"medium",children:a})]})]}),(0,r.jsx)("div",{style:{width:"100%"},children:(0,r.jsx)(E.CD,{id:"strength-progress-bar",percentage:t,fullWidth:!0})}),(0,r.jsx)(E.uT,{weight:"semibold",children:100!==t?"Almost there! Complete your profile to increase your chances of getting hired.":i}),(0,r.jsx)(E.zx,{id:100!==t?"complete-profile-cta":"update-profile-cta",type:"primary",theme:"ta-teacher",onClick:()=>100!==t?e(!0):o.push("/teacher/profile"),children:(0,r.jsx)(E.zx.Text,{children:100!==t?"Complete Profile":"Update Profile"})})]})},D=()=>{let{edit:{setShowEditModal:e}}=(0,x.ZP)("strength"),{completeness:t,profileStrength:a,conditions:i}=(0,I.Z)(),[o,n,s]=function(e){let t=Object.values(e),a=t.filter(e=>!0===e).length,i=t.length;return[a,i,i-a]}(i),l=(0,C.useRouter)();return(0,r.jsxs)(E.Zb,{className:"dashboard-profile-strength-mobile__card ".concat("Professional"===a?"professional-strength":""),onClick:()=>100!==t?e(!0):l.push("/teacher/profile"),children:[(0,r.jsxs)(E.X6,{size:"x-small",weight:"semibold",className:"dashboard-profile-strength-mobile__card-header",children:["Profile Strength: ",(0,r.jsx)("span",{children:a}),"Professional"===a&&(0,r.jsx)(T(),{src:"".concat(L,"/icons/star.png"),alt:"star icon",width:"18",height:"15"})]}),(0,r.jsx)(E.uT,{weight:"medium",size:"large",children:"Professional"===a?"Donât forget to keep your profile up to date!":(0,r.jsxs)(r.Fragment,{children:[s," step",1!==s&&"s"," away from a Professional Profile"]})}),(0,r.jsxs)("div",{className:"dashboard-profile-strength-mobile__card-indicator",children:[(0,r.jsx)(E.CD,{id:"strength-progress-bar-mobile",percentage:t,fullWidth:!0}),(0,r.jsxs)("div",{className:"dashboard-profile-strength-mobile__card-indicator-counter",children:[o," / ",n]})]})]})};var U=a(7416);let O=v()(()=>Promise.all([a.e(375),a.e(202),a.e(128),a.e(72)]).then(a.bind(a,3072)),{loadableGenerated:{webpack:()=>[3072]}}),R=v()(()=>Promise.all([a.e(375),a.e(202),a.e(128)]).then(a.bind(a,8128)).then(e=>e.EditModal),{loadableGenerated:{webpack:()=>[8128]}}),Z=v()(()=>Promise.resolve().then(a.bind(a,4625)),{loadableGenerated:{webpack:()=>[4625]}}),F=v()(()=>Promise.all([a.e(329),a.e(993),a.e(546)]).then(a.bind(a,9993)).then(e=>e.AddModal),{loadableGenerated:{webpack:()=>[9993]}}),M=v()(()=>Promise.all([a.e(329),a.e(780)]).then(a.bind(a,1780)).then(e=>e.AddModal),{loadableGenerated:{webpack:()=>[1780]}}),B=v()(()=>Promise.all([a.e(329),a.e(380),a.e(152)]).then(a.bind(a,1380)).then(e=>e.AddModal),{loadableGenerated:{webpack:()=>[1380]}}),J=v()(()=>a.e(642).then(a.bind(a,6642)).then(e=>e.AddModal),{loadableGenerated:{webpack:()=>[6642]}}),G=v()(()=>a.e(642).then(a.bind(a,6642)).then(e=>e.SentRequestConfirmationModal),{loadableGenerated:{webpack:()=>[6642]}}),Y=v()(()=>Promise.all([a.e(375),a.e(202),a.e(78)]).then(a.bind(a,6078)).then(e=>e.AddModal),{loadableGenerated:{webpack:()=>[6078]}}
1),H=e=>{let{type:t}=e,{edit:{showEditModal:a}}=(0,x.ZP)("strength"),i=(0,x.Cl)();return(0,r.jsx)(P,{children:(0,r.jsxs)(U.Z,{id:"dashboard-profile-strength-".concat(t),children:["desktop"===t&&(0,r.jsxs)(r.Fragment,{children:[a&&(0,r.jsx)(O,{}),i.introduction.edit.showEditModal&&(0,r.jsx)(R,{type:"desktop"}),i.about.edit.showEditModal&&(0,r.jsx)(Z,{}),i.licenses.add.showAddModal&&(0,r.jsx)(F,{}),i.education.add.showAddModal&&(0,r.jsx)(M,{}),i.experience.add.showAddModal&&(0,r.jsx)(B,{}),i.referees.add.showAddModal&&(0,r.jsx)(J,{}),i.referees.notification.showNotificationModal&&(0,r.jsx)(G,{}),i.documents.add.showAddModal&&(0,r.jsx)(Y,{})]}),"desktop"===t?(0,r.jsx)(z,{}):(0,r.jsx)(D,{})]})})};var q=a(2688),W=a(4321),V=a(9936),Q=a(8662),X=a(1835);let $=()=>{var e;let t=(0,c.I0)(),a=(0,g.v)(e=>e.user),{preferences:i}=(0,l.useContext)(f.R0),o=null!==(e=null==a?void 0:a.preferences.schoolContactDirectly)&&void 0!==e?e:i.schoolContactDirectly,n=async()=>{let e=Object.assign(new W.u,{...a.preferences});e.schoolContactDirectly=!a.preferences.schoolContactDirectly;let i=a.clone();i.preferences=e;try{t((0,V.il)(e)),await Q.Z.updatePreferences(i),(0,X.c0)("Successfully updated user preference",3e3,"neutral",t)}catch(e){console.log(e),(0,X.c0)("Could not update user preference",3e3,"error",t)}};return(0,r.jsxs)(U.Z,{id:"let-schools-find-you-card",height:140,children:[(0,r.jsx)(U.Z.Header,{title:"Let schools find you",action:(0,r.jsx)(E.rs,{id:"let-schools-find-you-switch",theme:"ta-teacher",checked:o,onChange:n})}),(0,r.jsx)(U.Z.Body,{children:(0,r.jsx)("div",{style:{padding:"0 24px"},children:(0,r.jsx)(E.uT,{size:"medium",weight:"medium",children:q.S.letSchoolsFindYou})})})]})},K=()=>(0,r.jsx)("div",{className:"tile placeholder",children:(0,r.jsxs)("div",{className:"tile-main-content",children:[(0,r.jsx)("div",{style:{width:64,height:64,backgroundColor:"#9e9ea1"}}),(0,r.jsx)(E.aV.Item,{title:(0,r.jsx)("div",{style:{width:240,height:15,backgroundColor:"#9e9ea1"}}),description:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{style:{width:270,height:15,backgroundColor:"#9e9ea1"}}),(0,r.jsx)("br",{}),(0,r.jsx)("div",{style:{width:250,height:30,backgroundColor:"#9e9ea1"}})]})})]})});var ee=a(9356);let{marketingUrlTeachaway:et}=(0,j.Z)(),ea=e=>{let{placeholder:t,columnTitles:a,filter:i,loading:o,paginator:n,children:s}=e,c=Array.from(Array(10).keys()).map(e=>(0,r.jsx)(K,{},e));return(0,r.jsxs)("div",{className:"dashboard-panel-content",children:[a&&(0,r.jsx)("div",{className:"dashboard-panel-column-titles",children:a.map((e,t)=>(0,r.jsx)(E.uT,{weight:"semibold",children:e},t))}),i&&(0,r.jsx)("div",{className:"dashboard-panel-filter",children:i}),(0,r.jsx)("div",{className:"dashboard-panel-view",children:o?(0,r.jsx)(E.aV,{children:c}):l.Children.count(s)>0?(0,r.jsx)(E.aV,{children:s}):t}),n&&(0,r.jsx)("div",{className:"dashboard-panel-paginator",children:n})]})},ei=e=>{let{id:t,title:a,onClose:i,children:o}=e;return(0,r.jsx)(ee.Z,{id:t,title:a,type:"info",onClose:i,children:o})},eo=e=>{let{id:t,title:a,placeholder:i,modalContent:o,loading:n,children:s}=e,[c,d]=(0,l.useState)(!1),h=Array.from([,,,].keys()).map(e=>(0,r.jsx)(K,{},e));return(0,r.jsxs)("div",{className:"dashboard-panel-content-mobile",children:[c&&(0,r.jsx)(ei,{id:"".concat(t,"-modal"),title:a,onClose:()=>d(!1),children:o}),(0,r.jsx)("div",{className:"dashboard-panel-view",children:n?(0,r.jsx)(E.aV,{children:h}):l.Children.count(s)>0?(0,r.jsx)(E.aV,{children:l.Children.toArray(s).slice(0,3)}):i}),(l.Children.count(s)>3||"Suggested jobs"===a)&&(0,r.jsx)("div",{className:"dashboard-panel-view-more-button",onClick:()=>d(!0),children:(0,r.jsxs)(E.uT,{weight:"semibold",color:"ink--light",children:["View more ",a.toLowerCase()]})}),"Suggested jobs"===a&&(0,r.jsx)("div",{className:"dashboard-panel-content-mobile-filter",children:(0,r.jsxs)(E.zx,{id:"apply-for-jobs",theme:"ta-teacher",type:"outlined-secondary",onClick:()=>window.open("".concat(et,"/teaching-jobs-abroad"),"_blank"),className:"dashboard-panel-content-mobile-filter__all-jobs-button",children:[(0,r.jsx)(E.zx.Icon,{icon:"open-book",iconColor:"var(--primary)"}),(0,r.jsx)(E.zx.Text,{children:"Find more jobs on our job board"})]},"APPLY_FOR_JOBS")})]})},en=e=>{let{id:t,title:a,placeholder:i,alert:o,columnTitles:n,filter:s,loading:l,paginator:c,children:d}=e,h=(0,r.jsx)(ea,{placeholder:i,columnTitles:n,filter:s,loading:l,paginator:c,children:d});return(0,r.jsxs)("div",{id:t,className:"dashboard-panel",children:[o&&(0,r.jsx)("div",{className:"dashboard-panel-alert",children:o}),h,(0,r.jsx)(eo,{id:t,title:a,placeholder:i,modalContent:h,loading:l,children:d})]})},es=e=>{let{children:t,count:a}=e;return(0,r.jsxs)("div",{style:{display:"flex",gap:4},children:[t,a>0&&(0,r.jsx)(E.DR,{text:a})]})};var er=a(4883);let{assetsUrl:el}=(0,j.Z)(),ec=(e,t)=>{if(!t)return"";let a=t.split(", "),i=a.at(-1),o=(0,er.rZ)(e,i);return o&&a.length>1?(a[a.length-1]=o,a.join(", ")):o||t},ed=e=>{let{src:t,alt:a,children:i}=e;return(0,r.jsxs)("div",{className:"icon-detail",children:[(0,r.jsx)("img",{src:"".concat(el,"/").concat(t),alt:a}),(0,r.jsx)(E.uT,{element:"span",size:"medium",color:"ink--lighter",children:i})]})},eh=e=>{let{children:t}=e;
1return(0,r.jsx)("div",{className:"icon-details",children:t})},eu=e=>{let{job:t}=e;return(0,r.jsxs)(eh,{children:[(0,r.jsx)(ed,{src:"icons/building.svg",alt:"School name",children:t.schoolName}),t.jobLocation&&(0,r.jsx)(ed,{src:"icons/location.svg",alt:"School location",children:t.jobLocation})]})},ep=e=>{let{invitation:t}=e,{dropDownValues:{countries:a}}=(0,l.useContext)(f.R0),i=(0,l.useMemo)(()=>ec(a,t.schoolLocation),[t,a]);return(0,r.jsx)(ed,{src:"icons/location.svg",alt:"School invitation location",children:i})},em=e=>{let{label:t,text:a}=e;return(0,r.jsxs)(E.uT,{size:"medium",color:"ink--light",weight:"bold",children:[t,(0,r.jsx)(E.uT,{element:"span",size:"medium",weight:"semibold",color:"ink--lighter",children:a})]})},ex=e=>{let{job:t}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(eu,{job:t}),(0,r.jsxs)("div",{children:[t.jobStartDate?(0,r.jsx)(em,{label:"Start in: ",text:new Date(t.jobStartDate).toLocaleDateString("en-US",{month:"short",year:"numeric"})}):null,(0,r.jsx)(em,{label:"Eligible Candidates: ",text:t.eligibleCandidates}),(0,r.jsx)(em,{label:"Grade Level: ",text:t.gradeLevel})]})]})},eg=e=>{let{certification:t}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(E.uT,{size:"medium",weight:"semibold",color:"ink--light",children:t.description}),(0,r.jsxs)(eh,{children:[(0,r.jsx)(ed,{src:"icons/location.svg",alt:"Location",children:t.location}),(0,r.jsx)(ed,{src:"icons/clock.svg",alt:"Duration",children:t.duration}),(0,r.jsx)(ed,{src:"icons/certification.svg",alt:"Certification",children:t.certification})]}),t.extraCopy&&(0,r.jsx)(E.uT,{size:"medium",weight:"bold",color:"ink",children:t.extraCopy})]})},ej=e=>{let{title:t,href:a}=e;return(0,r.jsx)("a",{href:a,target:"_blank",rel:"noreferrer",children:t})},eb=e=>{let{id:t,children:a,title:i,titleHref:o,logo:n,logoAlt:s,details:l,loading:c,primaryText:d,primaryTitle:h,primaryDisabled:u,secondaryText:p,secondaryTitle:m,onPrimary:x,onSecondary:g,extraAction:j}=e;return(0,r.jsxs)("div",{id:t,className:"tile",children:[(0,r.jsxs)("div",{className:"tile-main-content",children:[n?(0,r.jsx)("img",{src:n,alt:s,width:"64"}):(0,r.jsx)(E.qE,{size:64,backgroundColor:"ocean--lighter",children:(0,r.jsx)(E.X6,{element:"span",size:"large",children:i[0]})}),(0,r.jsx)(E.aV.Item,{title:o?(0,r.jsx)(ej,{href:o,title:i}):i,description:(0,r.jsx)("div",{className:"tile-details",children:l})})]}),a&&(0,r.jsx)("div",{className:"tile-more-details",children:a}),(0,r.jsxs)("div",{className:"tile-actions",children:[(0,r.jsxs)("div",{style:{display:"flex",gap:4,alignItems:"center"},children:[(0,r.jsx)(E.zx,{id:"".concat(t,"-primary-action"),onClick:x,theme:"ta-teacher",size:"medium",type:"outlined",title:h,disabled:u||c,children:c?(0,r.jsx)(E.zx.Icon,{icon:"spinner",loading:!0}):(0,r.jsx)(E.zx.Text,{children:d})}),j]}),p&&g&&(0,r.jsx)(E.uT,{id:"".concat(t,"-secondary-action"),element:"a",onClick:g,size:"medium",weight:"semibold",color:"ink--lighter",title:m,children:p})]})]})},ef=()=>(0,r.jsxs)("span",{className:"popular-course",children:[(0,r.jsx)(E.JO,{name:"star",fill:"white",width:"12",height:"12"}),(0,r.jsx)(E.uT,{element:"span",color:"pebble--lightest",children:"Popular"})]}),ey=e=>{let{certification:t}=e,a=()=>{window.open(t.trackingUrl,"_blank")};return(0,r.jsx)(eb,{id:t.id,title:(0,r.jsxs)("span",{style:{display:"flex",gap:4},children:[(0,r.jsx)(ej,{href:t.trackingUrl,title:t.title}),t.popular&&(0,r.jsx)(ef,{})]}),logo:t.logoSrc,logoAlt:"Course logo",details:(0,r.jsx)(eg,{certification:t}),primaryText:"Learn more",primaryTitle:"Learn more about ".concat(t.title),onPrimary:a})},{assetsUrl:ev}=(0,j.Z)(),ew={tefl:[{id:"tefl-1",title:"TEFL Certification from Teach Away",description:"An internationally recognized online TEFL certification course from a global leader in education.",logoSrc:"".concat(ev,"/teacher-traveling-europe.png"),location:"Online",duration:"100-150 Hours",certification:"TEFL Certificate",trackingUrl:"https://teflonline.teachaway.com/pages/courses",extraCopy:"95% of graduates would recommend this course to a friend or colleague.",popular:!0},{id:"tcp-1",title:"TEACH-NOW Teacher Certification Program",description:"Earn your teaching credentials online in just 9 months. After you complete the program, you are eligible to apply for a teaching license.",logoSrc:"/ta-regi-fe_assets_nextjs/teacher-certification/teach-now-moreland.png",location:"Online",duration:"9 Months",certification:"Fully accredited",trackingUrl:"https://morelanduniversity.sjv.io/aOgeGo"},{id:"tcp-2",title:"Master's Degree Programs",description:"In just 12 months, earn your Masterâs in Education with teaching credential, Master's in Globalization & Educational Research, or Master's in Educational Leadership.",logoSrc:"/ta-regi-fe_assets_nextjs/teacher-certification/masters-degree-moreland.png",location:"Online",duration:"12 Months",certification:"Fully accredited",trackingUrl:"https://morelanduniversity.sjv.io/aOgeGo"},{id:"tcp-3",title:"Master's in Education Add On",description:"For candidates who have started or completed the TEACH-NOW\xae Teacher Certification Program, earn a Masterâs in Education at an accelerated rate.",logoSrc:"/ta-regi-fe_assets_nextjs/teacher-certification/masters-in-education-moreland.png",location:"Online",duration:"3 additional months",certification:"Fully Accredited",trackingUrl:"https://morelanduniversity.sjv.io/aOgeGo"}]},eT=e=>{let{section:t}=e;return(0,r.jsx)(en,{id:"certifications-panel",title:"Certifications",children:ew[t].map(e=>(0,r.jsx)(ey,{certification:e},e.id))})};var eC=a(1955);let eE=e=>{let{onCancel:t,onConfirm:a,loading:i}=e;return(0,r.jsx)(ee.c,{id:"unsave-job-confirmation-modal",title:"Are you sure you want to remove this?",cancelText:"Keep",confirmText:"Remove",onCancel:t,onConfirm:a,loading:i})};(i=n||(n={})).CRC_REQUIRED="CRC_REQUIRED",i.SAFEGUARDING_DECLARATION_REQUIRED="SAFEGUARDING_DECLARATION_REQUIRED",i.JOB_NOT_FOUND="JOB_NOT_FOUND",i.ALREADY_APPLIED="ALREADY_APPLIED",i.MISSING_TEACHER_LICENSE="MISSING_TEACHER_LICENSE",i.TEACHER_PROFILE_NOT_FOUND="TEACHER_PROFILE_NOT_FOUND",i.MISSING_TEFL_CERTIFICATION="MISSING_TEFL_CERTIFICATION",i.CITIZENSHIP_REQUIREMENT_NOT_MET="CITIZENSHIP_REQUIREMENT_NOT_MET",i.PROFILE_COMPLETION_BELOW_MINIMUM="PROFILE_COMPLETION_BELOW_MINIMUM",(o=s||(s={})).SUCCESS="success",o.WARNING="warning";let eN=e=>{window.location.href=e},eS=e=>{let{jobsUrl:t,onClose:a}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(E.zx,{id:"apply-result-close",type:"outlined",onClick:a,children:(0,r.jsx)(E.zx.Text,{children:"Close"})}),(0,r.jsx)(E.zx,{id:"apply-result-browse-jobs",theme:"ta-teacher",onClick:()=>eN(t),children:(0,r.jsx)(E.zx.Text,{children:"Browse Jobs"})})]})},ek=e=>{let{profileUrl:t,certificationsUrl:a,recommendationState:i}=e,o=(null==i?void 0:i.hasTeacherLicense)||(null==i?void 0:i.hasTefl),n=(null==i?void 0:i.hasTeacherLicense)?i.hasTefl?"Get Certifications":"Get License":"Get TEFL";return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(E.zx,{id:"apply-result-update-profile",type:"outlined",onClick:()=>eN(t),children:(0,r.jsx)(E.zx.Text,{children:"Update Profile"})}),o&&(0,r.jsx)(E.zx,{id:"apply-result-get-certified",theme:"ta-teacher",onClick:()=>eN(a),children:(0,r.jsx)(E.zx.Text,{children:n})})]})},eA=e=>{let{jobsUrl:t,profileDestination:a}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(E.zx,{id:"apply-result-see-other-jobs",theme:"ta-teacher",onClick:()=>eN(t),children:(0,r.jsx)(E.zx.Text,{children:"See Other Jobs"})}),(0,r.jsx)(E.zx,{id:"apply-result-update-profile",type:"outlined",onClick:()=>eN(a),children:(0,r.jsx)(E.zx.Text,{children:"Update Profile"})})]})},e_=e=>{let{profileDestination:t,onClose:a}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(E.zx,{id:"apply-result-close",type:"outlined",onClick:a,children:(0,r.jsx)(E.zx.Text,{children:"Close"})}),(0,r.jsx)(E.zx,{id:"apply-result-update-profile",theme:"ta-teacher",onClick:()=>eN(t),children:(0,r.jsx)(E.zx.Text,{children:"Update Profile"})})]})},eI=e=>{let{type:t,isRecommendation:a,errorCode:i,jobsUrl:o,profileUrl:s,profileDestination:l,certificationsUrl:c,recommendationState:d,onClose:h}
1=e,u=i===n.CITIZENSHIP_REQUIREMENT_NOT_MET;return a?(0,r.jsx)(ek,{profileUrl:s,certificationsUrl:c,recommendationState:d}):"error"===t?u?(0,r.jsx)(eA,{jobsUrl:o,profileDestination:l}):(0,r.jsx)(e_,{profileDestination:l,onClose:h}):(0,r.jsx)(eS,{jobsUrl:o,onClose:h})},eL={title:"Unable to apply for this job",paragraphs:["We could not submit your application. Please try again."]},eP={title:"Application submitted",paragraphs:["Your application has been submitted successfully."]},ez={title:"Job requires a multiple certificates",paragraphs:["Your application has been submitted! However, please note this role requires a Teaching License and TEFL Certificate.","Be sure to add yours to your profile to stand out for this position."]},eD={title:"Job requires a Teaching License",paragraphs:["Your application has been submitted! However, please note this role requires a Teaching License. Be sure to add yours to your profile to stand out for this position.","Don't have a Teaching License yet? Learn more about teacher certification opportunities with Teach Away."]},eU={title:"Job requires a TEFL Certificate",paragraphs:["Your application has been submitted! However, please note this role requires a TEFL Certificate.","Be sure to add yours to your profile to stand out for this position.","Don't have a TEFL certificate yet? Learn more about Teach Away's TEFL Certification courses."]},eO={title:"Recommended next steps",paragraphs:["Your application has been submitted successfully."]},eR={[n.ALREADY_APPLIED]:{title:"Already applied",paragraphs:["You have already applied for this job."]},[n.JOB_NOT_FOUND]:{title:"Job no longer available",paragraphs:["This job is no longer available or may have been removed. Explore other teaching opportunities on our job board."]},[n.TEACHER_PROFILE_NOT_FOUND]:{title:"Application submission issue",paragraphs:["Weâre having trouble submitting your application with your current profile information. Please try again. If the problem continues, contact our support team for assistance."]},[n.CITIZENSHIP_REQUIREMENT_NOT_MET]:{title:"Passport requirements for this role",paragraphs:["The school has specified that this role requires candidates to hold specific passports listed in the Job Requirements due to visa regulations. These requirements are based on visa eligibility.","If you don't meet these requirements, you can still explore other roles.","Make sure your passport details are up to date in your profile."]},[n.PROFILE_COMPLETION_BELOW_MINIMUM]:{title:"Complete your profile to apply",paragraphs:["This school needs a few more details before you can apply.","Use the Profile Completion Guide to complete missing sections of your profile to achieve a Professional Profile Strength.","Don't worry, we'll save this job for you so you can access it later from your Dashboard."]},[n.CRC_REQUIRED]:{title:"Missing details from your profile",paragraphs:["This school requires all applicants to complete a criminal background and child protection declaration.","To continue with your application, please update your profile with this information."]}},eZ=e=>e&&eR[e]||eL,eF=e=>{let t=e.includes(n.MISSING_TEACHER_LICENSE),a=e.includes(n.MISSING_TEFL_CERTIFICATION),i=eO;return t&&a?i=ez:t?i=eD:a&&(i=eU),{copy:i,hasTeacherLicense:t,hasTefl:a}},eM=(e,t)=>"".concat((e||"").replace(/\/$/,"")).concat(t),eB=e=>{var t;let{type:a,responseType:i,errorCode:o,warnings:l=[],onClose:c}=e,{appsiteUrlTeachaway:d,marketingUrlTeachaway:h}=(0,j.Z)(),u=eM(d,"/teacher/profile"),p=eM(h,"/teaching-jobs-abroad"),m=eM(h,"/courses-and-certifications"),x="success"===a&&i===s.WARNING,g=x?eF(l):null,b="error"===a?eZ(o):null!==(t=null==g?void 0:g.copy)&&void 0!==t?t:eP,f=o===n.CRC_REQUIRED?"".concat(u,"?crc=true"):u;return(0,r.jsx)(ee.Z,{id:"apply-result-modal",title:b.title,type:"info",height:"auto",onClose:c,children:(0,r.jsxs)("div",{className:"modal-content",children:[(0,r.jsx)("div",{className:"apply-result-modal-copy",children:b.paragraphs.map(e=>(0,r.jsx)(E.uT,{size:"x-large",children:e},e))}),(0,r.jsx)("div",{className:"apply-result-modal-actions",children:(0,r.jsx)(eI,{type:a,isRecommendation:x,errorCode:"error"===a?o:void 0,jobsUrl:p,profileUrl:u,profileDestination:f,certificationsUrl:m,recommendationState:g,onClose:c})})]})})};
1var eJ=a(2813),eG=a(5672),eY=a(6243);let eH=e=>{var t,a;let{onClose:i,onSaved:o}=e,n=(0,c.I0)(),s=(0,g.v)(e=>e.user),d=(0,g.v)(e=>e.userCopy),[h,u]=(0,l.useState)(null!==(a=null===(t=s.criminalBackground)||void 0===t?void 0:t.value)&&void 0!==a?a:null),[p,m]=(0,l.useState)(""),[x,j]=(0,l.useState)(!1),b=()=>{n((0,V.ss)(d)),i()},f=e=>{var t,a;u(e.value),m(""),n((0,V.KZ)({key:"criminalBackground",newValue:{value:e.value,updatedAt:null!==(a=null===(t=s.criminalBackground)||void 0===t?void 0:t.updatedAt)&&void 0!==a?a:""}}))},y=async()=>{var e,t;if(null===h){m(eG.MP),(0,X.c0)(eG.MP,2e3,"error",n);return}let a=s.clone();a.criminalBackground={value:h,updatedAt:null!==(t=null===(e=s.criminalBackground)||void 0===e?void 0:e.updatedAt)&&void 0!==t?t:""};try{j(!0),await Q.Z.updateCriminalBackground(a),n((0,V.ss)(a)),n((0,eJ.s)(a)),o()}catch(e){console.error(e),(0,X.c0)("Could not save criminal background declaration",3e3,"error",n)}finally{j(!1)}};return(0,r.jsxs)(ee.Z,{id:"criminal-background-apply-modal",title:eY.F.modalTitle,onClose:b,onSave:y,loading:x,height:"auto",children:[(0,r.jsxs)(E.aV,{hideDividers:!0,children:[(0,r.jsx)(E.aV.Item,{title:eY.F.title}),(0,r.jsx)(E.vO,{id:"criminalBackground",className:"ta-reggie__input",label:eY.F.label,options:eY.F.options,value:h,onChange:f,placeholder:"Select an option",tooltip:"This is not about minor offences unrelated to children, such as traffic violations. It is about anything that would prevent you from working in a school or entering a country. If you are unsure whether something applies to you, contact us before completing.",error:p,fullWidth:!0,isRequired:!0})]}),(0,r.jsx)("br",{})]})};var eq=a(8791),eW=a(5691);let eV=e=>{let{id:t,onClick:a}=e;return(0,r.jsx)(E.zx,{id:t,size:"small",type:"ghost",onClick:a,children:(0,r.jsx)(E.zx.Icon,{icon:"trash"})})},eQ=e=>{var t,a;let{id:i,job:o,isApplied:n}=e,{jobUrl:s,loading:l,actionDisabled:c,applied:d,applyResult:h,closeApplyResult:u,showCriminalBackgroundModal:p,closeCriminalBackgroundModal:m,handleCriminalBackgroundSaved:x,showDeclarationModal:g,declarationStatus:j,declarationError:b,isSubmittingDeclaration:f,closeDeclarationModal:y,handleDeclarationSigned:v,handlePrimaryAction:w,handleSecondaryAction:T}=tE(o,n),{loading:C,showModal:E,handleClick:N,handleCancel:S,removeSavedJob:k}=tN(o);return(0,r.jsxs)(eb,{id:i,title:o.jobTitle,titleHref:s,details:(0,r.jsx)(ex,{job:o}),logo:o.schoolLogo,logoAlt:"".concat(o.schoolName," logo"),primaryText:d||c?"Applied":"Quick Apply",primaryTitle:"Apply now for ".concat(o.jobTitle),onPrimary:w,primaryDisabled:!o.externalApplicationUrl&&d||c||g,secondaryText:"View Job Details",secondaryTitle:"View more details about ".concat(o.jobTitle),onSecondary:T,extraAction:(0,r.jsx)(eV,{id:"unsave-job-".concat(o.appSiteJobId),onClick:N}),loading:l,children:[h&&(0,r.jsx)(eB,{type:h.type,responseType:h.responseType,errorCode:h.code,warnings:h.warnings,onClose:u}),p&&(0,r.jsx)(eH,{onClose:m,onSaved:x}),g&&(0,r.jsx)(eq.Z,{statements:null!==(t=null==j?void 0:j.currentStatements)&&void 0!==t?t:null,version:null!==(a=null==j?void 0:j.currentVersion)&&void 0!==a?a:null,error:b,isSaving:f,onClose:y,onSign:v,leaveConfirmation:eW.j8}),E&&(0,r.jsx)(eE,{onCancel:S,onConfirm:()=>k(),loading:C})]})};var eX=a(9755),e$=a.n(eX);let{assetsUrl:eK,marketingUrlTeachaway:e0}=(0,j.Z)(),e1=()=>{let e=()=>{window.open("".concat(e0,"/teaching-jobs-abroad"),"_blank")};return(0,r.jsxs)("div",{id:"saved-jobs-placeholder",style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",height:"100%",padding:24,gap:30},children:[(0,r.jsx)(e$(),{src:"".concat(eK,"/logos/saved-jobs.svg"),width:"100",height:"88",priority:!0}),(0,r.jsx)(E.uT,{size:"medium",weight:"semibold",children:q.S.placeholders.savedJobs}),(0,r.jsx)(E.zx,{id:"saved-jobs-placeholder-cta",theme:"ta-teacher",onClick:e,children:(0,r.jsx)(E.zx.Text,{children:"View all jobs"})})]})};var e2=a(5160);let e3=e=>({type:e2.GA,payload:e}),e5=e=>({type:e2.D1,payload:e}),e4=e=>({type:e2.Fe,payload:e}),e9=e=>({type:e2.Gr,payload:e}),e8=e=>({type:e2.UB,payload:e}),e6=e=>({type:e2._V,payload:e});var e7=a(5866),te=a(4184),tt=a.n(te);let ta=e=>
1{let{id:t,title:a,icon:i,compact:o,rounded:n=!0,action:s,onClose:l,children:c}=e,d=tt()("alert",{compact:o,rounded:n});return(0,r.jsxs)("div",{id:t,className:d,children:[i&&(0,r.jsx)("div",{className:"alert-icon",children:(0,r.jsx)(E.JO,{name:i,fill:"#073847",width:16,height:16})}),(0,r.jsxs)("div",{className:"alert-text",children:[a&&(0,r.jsx)("div",{className:"alert-text-title",children:a}),(0,r.jsx)("div",{className:"alert-text-message",children:c})]}),(l||!!s)&&(0,r.jsx)("div",{className:"alert-action",children:l?(0,r.jsx)(E.JO,{id:"".concat(t,"-close-action"),name:"close",fill:"#073847",width:"13",height:"16",onClick:l}):s})]})},{marketingUrlTeachaway:ti}=(0,j.Z)(),to=e=>{var t;let{id:a,job:i}=e,o=(0,g.v)(e=>{var t;return null===(t=e.user)||void 0===t?void 0:t.id}),n="".concat(ti,"/teaching-jobs-abroad/").concat(i.jobSlug),s=o&&i.jobAppId?"".concat(ti,"/invites/").concat(o,"/").concat(i.jobAppId):"",l=null===(t=i.applicationStatus)||void 0===t?void 0:t.toUpperCase(),c="INVITED"===l||i.invited,d="DENIED"===l,h="EXPIRED"===l,u=c&&s?s:n,p=()=>{window.open(u,"_blank")};return(0,r.jsxs)(eb,{id:a,title:i.jobTitle,titleHref:u,details:(0,r.jsx)(eu,{job:i}),logo:i.schoolLogo,logoAlt:"".concat(i.schoolName," logo"),primaryText:c?"Apply Now":d?"Declined":h?"Expired":"View Job",primaryTitle:c?"Apply for ".concat(i.jobTitle):"View more details about ".concat(i.jobTitle),onPrimary:p,primaryDisabled:d||h||c&&!s,children:[(0,r.jsx)(E.DR,{text:c?"Invited":d?"Declined":h?"Expired":"Applied"}),i.dateApplied&&(0,r.jsxs)(E.uT,{size:"medium",weight:"semibold",children:[c?"Invited on: ":"Application date: ",new Date(i.dateApplied).toLocaleString("en-us",{day:"numeric",month:"short",year:"numeric"})]}),i.dateContacted&&(0,r.jsx)(E.DR,{text:"Contacted on: ".concat(i.dateContacted)})]})},{assetsUrl:tn,marketingUrlTeachaway:ts}=(0,j.Z)(),tr=()=>{let e=()=>{window.open("".concat(ts,"/teaching-jobs-abroad"),"_blank")};return(0,r.jsxs)("div",{id:"applied-jobs-placeholder",style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",height:"100%",padding:24,gap:30},children:[(0,r.jsx)(e$(),{src:"".concat(tn,"/logos/applied-jobs.svg"),width:"187",height:"140",priority:!0}),(0,r.jsx)(E.uT,{size:"medium",weight:"semibold",children:q.S.placeholders.appliedJobs}),(0,r.jsx)(E.zx,{id:"applied-jobs-placeholder-cta",theme:"ta-teacher",onClick:e,children:(0,r.jsx)(E.zx.Text,{children:"View all jobs"})})]})};var tl=a(5802);let tc=()=>{let e=(0,c.I0)(),t=(0,g.v)(e=>e.jobs),{drupalId:a}=(0,l.useContext)(f.R0),i=t.appliedJobs,o=t.totalApplied,n=async t=>{try{e(e3(!0));let{total:a,jobApplications:i}=await e7.Z.getAppliedJobs(10,t);e(e4(i)),e(e8(null!=a?a:0))}catch(t){console.log(t),(0,X.c0)("Could not load job applications",3e3,"error",e)}e(e3(!1))};return{appliedJobs:i,totalApplied:o,loadApplications:n,loading:t.isLoading}},td=e=>{let{total:t,activePage:a,onPageChange:i}=e;return(0,r.jsx)(E.Ds,{total:t,activePage:a,onPageChange:i})},th=e=>{let{count:t}=e,a=(0,c.I0)(),{appliedJobs:i,totalApplied:o,loadApplications:n,loading:s}=tc(),[d,h]=(0,l.useState)(0),u=async(e,t)=>{h(e),await n(e*t)};
1return(0,r.jsx)(en,{id:"applied-jobs-panel",title:"Applications",columnTitles:(null==i?void 0:i.length)>0?["Job Details","Status"]:null,placeholder:(0,r.jsx)(tr,{}),alert:t>0&&(0,r.jsx)(ta,{id:"job-applications-alert",icon:"email-outline",rounded:!1,onClose:async()=>await a((0,tl.l)()),children:q.S.applications.short(t)}),count:t,paginator:o>10?(0,r.jsx)(td,{total:o,activePage:d,onPageChange:u}):null,loading:s,children:null==i?void 0:i.map(e=>(0,r.jsx)(to,{id:"applied-job-".concat(e.tamsJobId),job:e},"applied-job-".concat(e.tamsJobId)))})},tu=()=>{let e=(0,c.I0)(),t=(0,g.v)(e=>e.jobs),a=t.savedJobs,i=t.totalSaved,o=async t=>{try{e(e3(!0));let{total:a,savedJobs:i}=await e7.Z.getSavedJobs(10,t);e(e9(i)),e(e6(null!=a?a:0))}catch(t){console.log(t),(0,X.c0)("Could not load saved jobs",3e3,"error",e)}e(e3(!1))};return{savedJobs:a,totalSaved:i,loadSavedJobs:o,loading:t.isLoading}},tp=e=>{let{total:t,activePage:a,onPageChange:i}=e;return(0,r.jsx)(E.Ds,{total:t,activePage:a,onPageChange:i})},tm=()=>{let{savedJobs:e,totalSaved:t,loadSavedJobs:a,loading:i}=tu(),{appliedJobs:o}=tc(),[n,s]=(0,l.useState)(0),c=async(e,t)=>{s(e),await a(e*t)};return(0,r.jsx)(en,{id:"saved-jobs-panel",title:"Saved Jobs",columnTitles:(null==e?void 0:e.length)>0?["Job details"]:null,placeholder:(0,r.jsx)(e1,{}),paginator:t>10?(0,r.jsx)(tp,{total:t,activePage:n,onPageChange:c}):null,loading:i,children:null==e?void 0:e.map(e=>(0,r.jsx)(eQ,{id:"saved-job-".concat(e.tamsJobId),job:e,isApplied:!!(null==o?void 0:o.find(t=>t.jobId===e.id))},"saved-job-".concat(e.tamsJobId)))})};var tx=a(9669),tg=a.n(tx),tj=new class{applyToJob(e){return tg().post("/api/jobs/".concat(e,"/apply")).then(e=>e.data).catch(e=>{var t;return(null==e?void 0:null===(t=e.response)||void 0===t?void 0:t.data)||{success:!1,error:"Could not apply for job."}})}},tb=new class{saveJob(e){let{jobId:t}=e;return tg().delete("/api/teacher/jobs/saved/".concat(t)).then(e=>e.data)}},tf=a(6581),ty=a(802);let{marketingUrlTeachaway:tv,appsiteUrlTeachaway:tw}=(0,j.Z)(),tT="pending-job-application",tC=e=>{let t={tamsJobId:e.tamsJobId,schoolLogo:e.schoolLogo,schoolName:e.schoolName,jobSlug:e.jobSlug,jobTitle:e.jobTitle,jobLocation:e.jobLocation,dateApplied:new Date().toLocaleString("en-us",{day:"numeric",month:"short",year:"numeric"})};return t},tE=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=(0,c.I0)(),[i,o]=(0,l.useState)(!1),[r,d]=(0,l.useState)(!1),[h,u]=(0,l.useState)(!1),[p,m]=(0,l.useState)(null),[x,g]=(0,l.useState)(!1),[j,b]=(0,l.useState)(!1),[f,y]=(0,l.useState)(null),[v,w]=(0,l.useState)(null),[T,C]=(0,l.useState)(!1),{appliedJobs:E,totalApplied:N}=tc(),{markSigned:S}=(0,ty.R)(),k=t||h,A=function(){let t=!(arguments.length>0)||void 0===arguments[0]||arguments[0];u(!0),d(t),a(e4([tC(e),...E])),a(e8(N+1))},_=function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];if(!0===e.success){if(e.data.responseType!==s.WARNING){(0,X.c0)(e.data.message,3e3,"neutral",a);return}m({type:"success",responseType:e.data.responseType,warnings:e.data.warnings});return}e.code===n.ALREADY_APPLIED&&t&&d(!0),m({type:"error",code:e.code})},I=()=>m(null),L=async()=>{let e=await tf.Z.getStatus();!0===e.success?(y(e.data),w(null)):(y(null),w(e.error)),b(!0)},P=()=>{if(e.jobSlug){eC.Z.set(tT,e.jobSlug,{path:"/"});try{let t=new URL(tw).hostname,a=t.split(".").slice(-2).join(".");eC.Z.set(tT,e.jobSlug,{domain:".".concat(a),path:"/"})}catch(e){}}},z=()=>{if(e.jobSlug&&eC.Z.get(tT)===e.jobSlug){eC.Z.remove(tT,{path:"/"});try{let e=new URL(tw).hostname,t=e.split(".").slice(-2).join(".");eC.Z.remove(tT,{domain:".".concat(t),path:"/"})}catch(e){}}},D=()=>tj.applyToJob((null==e?void 0:e.id)?"".concat(e.id):""),U=()=>{e.externalApplicationUrl&&window.open(e.externalApplicationUrl,"_blank","noopener")},O=function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];z(),A(t),_(e)},R=async function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];if(t&&!1===e.success&&e.code===n.SAFEGUARDING_DECLARATION_REQUIRED){await L();return}if(t&&!1===e.success&&e.code===n.CRC_REQUIRED){g(!0);return}P(),_(e)},Z=async function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];if(k){U();return}let t=await D();if(!0===t.success){z(),A(!1),U();return}if(t.code===n.ALREADY_APPLIED){z(),A(!1),_(t,!1);return}await R(t,e)},F=async function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],t=await D();if(!0===t.success){O(t);return}await R(t,e)},M=()=>{g(!1)},B=()=>{b(!1),y(null),w(null)},J=async t=>{let i=null==f?void 0:f.currentVersion;if(void 0!==i){C(!0),w(null);try{let a=await tf.Z.sign(i,t,"DASHBOARD");if(!0!==a.success){w(a.error);return}S(a.data),e.externalApplicationUrl?await Z(!1):await F(!1),B()}catch(e){console.error(e),B(),P(),(0,X.c0)("Could not apply for job",3e3,"error",a)}finally{C(!1)}}},G=async()=>{try{if(g(!1),o(!0),e.externalApplicationUrl){await Z();return}await F()}catch(e){console.error(e),P(),(0,X.c0)("Could not apply for job",3e3,"error",a)}finally{o(!1)}},Y=async()=>{try{if(o(!0),e.externalApplicationUrl){await Z();return}await F()}catch(e){console.error(e),P(),(0,X.c0)("Could not apply for job",3e3,"error",a)}finally{o(!1)}},H="".concat(tv,"/teaching-jobs-abroad/").concat(e.jobSlug),q=()=>{window.open(H,"_blank")};return{jobUrl:H,loading:i||T,actionDisabled:r,applied:k,applyResult:p,closeApplyResult:I,showCriminalBackgroun
1dModal:x,closeCriminalBackgroundModal:M,handleCriminalBackgroundSaved:G,showDeclarationModal:j,declarationStatus:f,declarationError:v,isSubmittingDeclaration:T,closeDeclarationModal:B,handleDeclarationSigned:J,handlePrimaryAction:Y,handleSecondaryAction:q}},tN=e=>{let t=(0,c.I0)(),{savedJobs:a,totalSaved:i}=tu(),[o,n]=(0,l.useState)(!1),[s,r]=(0,l.useState)(!1),d=()=>r(!0),h=()=>r(!1),u=async()=>{try{n(!0);let o=e.id;await tb.saveJob({jobId:"".concat(o)}),t(e6(i-1)),t(e9(a.filter(t=>t.appSiteJobId!==e.appSiteJobId))),(0,X.c0)("Successfully removed saved job",3e3,"success",t)}catch(e){console.log(e),(0,X.c0)("Could not unsave job",3e3,"error",t)}n(!1),r(!1)};return{loading:o,showModal:s,handleClick:d,handleCancel:h,removeSavedJob:u}},tS=e=>{var t,a;let{id:i,job:o,isApplied:n}=e,{jobUrl:s,loading:l,actionDisabled:c,applied:d,applyResult:h,closeApplyResult:u,showCriminalBackgroundModal:p,closeCriminalBackgroundModal:m,handleCriminalBackgroundSaved:x,showDeclarationModal:g,declarationStatus:j,declarationError:b,isSubmittingDeclaration:f,closeDeclarationModal:y,handleDeclarationSigned:v,handlePrimaryAction:w,handleSecondaryAction:T}=tE(o,n);return(0,r.jsxs)(eb,{id:i,title:o.jobTitle,titleHref:s,details:(0,r.jsx)(ex,{job:o}),logo:o.schoolLogo,logoAlt:"".concat(o.schoolName," logo"),primaryText:d||c?"Applied":"Quick Apply",primaryTitle:"Apply now for ".concat(o.jobTitle),onPrimary:w,primaryDisabled:!o.externalApplicationUrl&&d||c||g,secondaryText:"View Job Details",secondaryTitle:"View more details about ".concat(o.jobTitle),onSecondary:T,loading:l,children:[h&&(0,r.jsx)(eB,{type:h.type,responseType:h.responseType,errorCode:h.code,warnings:h.warnings,onClose:u}),p&&(0,r.jsx)(eH,{onClose:m,onSaved:x}),g&&(0,r.jsx)(eq.Z,{statements:null!==(t=null==j?void 0:j.currentStatements)&&void 0!==t?t:null,version:null!==(a=null==j?void 0:j.currentVersion)&&void 0!==a?a:null,error:b,isSaving:f,onClose:y,onSign:v,leaveConfirmation:eW.j8})]})},{assetsUrl:tk,marketingUrlTeachaway:tA}=(0,j.Z)(),t_=e=>{let{country:t,jobCategory:a}=e,{edit:{setShowEditModal:i}}=(0,x.ZP)("introduction"),o=()=>{window.open("".concat(tA,"/teaching-jobs-abroad"),"_blank")};return(0,r.jsxs)("div",{id:"suggested-jobs-placeholder",style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",height:"100%",padding:24,gap:40},children:[(0,r.jsx)(e$(),{src:"".concat(tk,"/logos/applied-jobs.svg"),width:"187",height:"140",priority:!0}),(0,r.jsx)("div",{style:{maxWidth:500,textAlign:"center"},children:(0,r.jsx)(E.uT,{size:"medium",weight:"semibold",children:t?q.S.placeholders.suggestedJobs.filtered(t):q.S.placeholders.suggestedJobs.unfiltered(a)})}),!t&&(0,r.jsx)(E.zx,{id:"suggested-jobs-update-category-cta",theme:"ta-teacher",type:"outlined",size:"medium",onClick:()=>i(!0),children:(0,r.jsx)(E.zx.Text,{children:"Update job category"})}),(0,r.jsx)(E.zx,{id:"suggested-jobs-placeholder-view-jobs-cta",theme:"ta-teacher",onClick:o,children:(0,r.jsx)(E.zx.Text,{children:"View all jobs"})})]})};var tI=a(5102),tL=a(1304),tP=a.n(tL);tP().extend({"/":"-"});let tz=e=>tP()(e,{lower:!0,strict:!0}),{marketingUrlTeachaway:tD}=(0,j.Z)(),tU="Online Teaching Jobs",tO={value:tU,label:"Online Teaching Jobs"},tR=()=>{var e;let t=(0,c.I0)(),a=(0,g.v)(e=>e.jobs),i=(0,g.v)(e=>e.userCopy),[o,n]=(0,l.useState)(""),{suggestedJobs:s,jobCategory:r,drupalId:d}=(0,l.useContext)(f.R0),h=a.isLoading,u=null!==(e=a.suggestedJobs)&&void 0!==e?e:s,p=i.id?i.jobCategory:r,m=async e=>{t(e3(!0));let a=tU===e;try{let i=await e7.Z.getSuggestedJobs({categories:tz(p),countries:a?void 0:e,...a&&{workplaceType:"ONLINE"}});t(e5(i))}catch(e){console.log(e),(0,X.c0)(eG.Fe,3e3,"error",t),t(e5([]))}t(e3(!1))};return(0,tI.Z)(()=>{m(null==o?void 0:o.value)},[p]),{value:o,setValue:n,loading:h,loadJobs:m,jobCategory:p,suggestedJobs:u}},tZ=()=>{let{value:e,setValue:t,loading:a,loadJobs:i,jobCategory:o,suggestedJobs:n}=tR(),{appliedJobs:s}=tc(),{countries:c}=(0,g.v)(e=>e.flowData),d=[tO,...c],[h,u]=(0,l.useState)(""),[p,m]=(0,l.useState)(!1),x=d.filter(e=>{let{label:t}=e,a=t.toLowerCase(),i=h.toLowerCase();return a.includes(i)}),j=async()=>{""!==e&&(u(""),t(""),i())},b=async e=>{t(e),i(e.value)};return(0,l.useEffect)(()=>{let e=()=>{m(window.innerWidth<640)};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),(0,r.jsxs)(en,{id:"suggested-jobs-panel",title:"Suggested jobs",loading:a,placeholder:(0,r.jsx)(t_,{jobCategory:o,country:null==e?void 0:e.label}),filter:(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(E.gA,{id:"suggested-jobs-country",placeholder:"Filter by country",options:x,selectedValue:e,search:h,onClear:j,onChange:b,onSearch:u})}),children:[null==n?void 0:n.map(e=>(0,r.jsx)(tS,{id:"job-".concat(e.appSiteJobId),isApplied:!!(null==s?void 0:s.find(t=>t.jobId===e.id)),job:e},e.appSiteJobId)),!p&&(0,r.jsxs)(E.zx,{id:"apply-for-jobs",theme:"ta-teacher",type:"outlined-secondary",onClick:()=>window.open("".concat(tD,"/teaching-jobs-abroad"),"_blank"),className:"dashboard-panel-filter__all-jobs-button",children:[(0,r.jsx)(E.zx.Icon,{icon:"open-book",iconColor:"var(--primary)"}),(0,r.jsx)(E.zx.Text,{children:"Find more jobs on our job board"})]},"APPLY_FOR_JOBS")]})},{marketingUrlTeachaway:tF}=(0,j.Z)(),tM=e=>{let{id:t,invitation:a}=e,i="".concat(tF,"/schools/").concat(a.schoolSlug,"/jobs"),o=()=>{window.open(i,"_blank")};return(0,r.jsx)(eb,{id:t,title:a.schoolName,titleHref:i,details:(0,r.jsx)(ep,{invitation:a}),logo:a.schoolLogo,logoAlt:"".concat(a.schoolName," logo"),primaryText:"View School Jobs",onPrimary:o,children:a.dateContacted&&(0,r.jsx)(E.DR,{text:"".concat(a.dateContacted)})})},{assetsUrl:tB}=(0,j.Z)(),tJ=()=>{let{edit:{setShowEditModal:e}}=(0,x.ZP)("strength"),{completeness:t}=(0,I.Z)(),a=(0,C.useRouter)();return(0,r.jsxs)("div",{id:"jobs-invitations-placeholder",children:[(0,r.jsx)(T(),{src:"".concat(tB,"/logos/invitation-illustration.svg"),width:"100",height:"88",alt:"Invitations placeholder",priority:!0}),q.S.placeholders.jobInvitations.map((e,t)=>(0,r.jsx)(E.uT,{size:"medium",weight:"semibold",children:e},t)),(0,r.jsx)(E.zx,{id:100!==t?"complete-profile-cta":"update-profile-cta",type:"primary",theme:"ta-teacher",onClick:()=>100!==t?e(!0):a.push("/teacher/profile"),children:(0,r.jsx)(E.zx.Text,{children:100!==t?"Complete Profile":"Update Profile"})})]})};var tG=a(6196);let tY=e=>{let{total:t,activePage:a,onPageChange:i,limit:o}=e;return(0,r.jsx)(E.Ds,{total:t,limit:o,activePage:a,onPageChange:i})},tH=e=>{var t,a,i,o;let{count:n}=e,s=(0,c.I0)(),[d,h]=(0,l.useState)(0),[u,p]=(0,l.useState)(10),[m,x]=(0,l.useState)([]),g=tG.S.job.jobInvitation.useQuery({limit:u,offset:d*u},{enabled:!0,retry:!1,keepPreviousData:!1,refetchOnMount:"always",staleTime:0,cacheTime:0}),j=(e,t)=>{h(e),p(t)};return(0,l.useEffect)(()=>{var e,t;let a=(null!==(t=null===(e=g.data)||void 0===e?void 0:e.invitations)&&void 0!==t?t:[]).map(e=>{var t,a,i,o,n,s,r,l;let c=[],d=null===(t=e.school)||void 0===t?void 0:null===(a=t.schoolProfiles)||void 0===a?void 0:a[0],{country:h,provinceTerritory:u,locality:p,address:m,streetName:x}=null!=d?d:{};m?c.push(m):(x&&c.push(x),p&&c.push(p),u&&c.push(u),h&&c.push(h));let g=e.createdAt?new Date(e.createdAt).toLocaleDateString("en-US",{day:"2-digit",month:"short",year:"numeric"}):"";return{teacherId:null!==(o=e.teacherId)&&void 0!==o?o:"",invitationsId:null!==(n=e.messageId)&&void 0!==n?n:"",schoolSlug:null!==(s=e.school.slug)&&void 0!==s?s:"",schoolLogo:null!==(r=null==d?void 0:d.logo)&&void 0!==r?r:"",schoolName:null!==(l=null===(i=e.school)||void 0===i?void 0:i.schoolName)&&void 0!==l?l:"",schoolLocation:c.join(", "),dateContacted:g}});x(a)},[g.data,g.isLoading]),(0,r.jsx)(en,{id:"job-invitations-panel",title:"Job Invitations",columnTitles:m.length>0?["School Name","Date Contacted by School"]:null,placeholder:(0,r.jsx)(tJ,{}),alert:n>0&&(0,r.jsx)(ta,{id:"job-invitations-alert",rounded:!1,compact:!0,onClose:async()=>await s((0,tl.r)()),children:q.S.jobInvitations}),paginator:(null!==(i=null===(t=g.data)||void 0===t?void 0:t.total)&&void 0!==i?i:0)>u?(0,r.jsx)(tY,{total:null!==(o=null===(a=g.data)||void 0===a?void 0:a.total)&&void 0!==o?o:0,limit:u,activePage:d,onPageChange:j}):null,loading:g.isLoading,children:g.isLoading?(0,r.jsx)(r.Fragment,{}):m.map(e=>(0,r.jsx)(tM,{id:"job-invitation-".concat(e.invitationsId,"-").concat(e.teacherId),invitation:e},"job-invitation-".concat(e.invitationsId,"-").concat(e.teacherId)))})},tq=e=>{let{title:t,active:a,onClick:i}=e;return(0,r.jsx)("div",{className:"dashboard-tab ".concat(a?"active":""),onClick:i,tabIndex:0,children:t})},tW=()=>{let[e,t]=(0,l.useState)(0),a=Object.keys(q.S.certifications)[e];return(0,r.jsxs)("div",{className:"dashboard-tab-certification",children:[(0,r.jsx)(ta,{id:"".concat(a,"-alert"),children:q.S.certifications[a]}),(0,r.jsx)(U.Z,{children:(0,r.jsx)(U.Z.Body,{children:(0,r.jsx)(eT,{section:"tefl"})})})]})},tV=()=>{var e,t;let{preferences:a}=(0,l.useContext)(f.R0),i=tG.S.job.jobInvitation.useQuery({limit:1,offset:0},{enabled:!0,retry:!1,keepPreviousData:!1,refetchOnMount:"always",staleTime:0,cacheTime:0}),o=(0,g.v)(e=>e.appNotifications.dashboard),n=o.applications.total,s=o.invitations.total,c=null!==(t=null==i?void 0:null===(e=i.data)||void 0===e?void 0:e.total)&&void 0!==t?t:0,d=a.schoolContactDirectly||c>0;return(0,r.jsx)(U.Z,{children:(0,r.jsx)(U.Z.Body,{children:(0,r.jsxs)(E.mQ,{children:[(0,r.jsx)(E.x4,{title:(0,r.jsx)(es,{count:n,children:"Applications"}),children:(0,r.jsx)(th,{count:n})}),d&&(0,r.jsx)(E.x4,{title:(0,r.jsxs)(es,{count:s,children:[(0,r.jsx)("p",{id:"desktop-tab",children:"Job Invitations"}),(0,r.jsx)("p",{id:"mobile-tab",children:"Invitations"})]}),children:(0,r.jsx)(tH,{count:s})}),(0,r.jsx)(E.x4,{title:"Suggested Jobs",children:(0,r.jsx)(tZ,{})}),(0,r.jsx)(E.x4,{title:"Saved Jobs",children:(0,r.jsx)(tm,{})})]})})})},tQ=()=>{let[e,t]=(0,l.useState)(0);return(0,r.jsxs)("div",{className:"dashboard-tabs",children:[(0,r.jsxs)("div",{className:"dashboard-tabs-list",children:[(0,r.jsx)(tq,{title:"Jobs",active:0===e,onClick:()=>t(0)}),(0,r.jsx)(tq,{title:"Get Certified",active:1===e,onClick:()=>t(1)})]}),(0,r.jsxs)("div",{className:"dashboard-tabs-content active-".concat(e),children:[(0,r.jsx)(tV,{}),(0,r.jsx)(tW,{})]})]})};var tX=a(1074);let{assetsUrl:t$}=(0,j.Z)(),tK=()=>(0,r.jsx)("a",{className:"dashboard-image-banner",href:tX.yX.DASHBOARD_BANNER,target:"_blank",rel:"noreferrer",children:(0,r.jsx)(e$(),{src:"".concat(t$,"/dashboard-banner.png"),width:"1070",height:"100",priority:!0})});var t0=a(1664),t1=a.n(t0),t2=function(){let[e,t]=(0,l.useState)("idle"),a=async(e,a)=>{t("downloading");try{let i=await fetch(e);if(!i.ok)throw Error("Network response was not ok.");let o=await i.blob(),n=window.URL.createObjectURL(o),s=document.createElement("a");s.href=n,s.download=a,document.body.appendChild(s),s.click(),s.remove(),window.URL.revokeObjectURL(n),t("completed")}catch(e){console.error("Download failed:",e),t("failed")}};return{downloadPdf:a,downloadStatus:e}},t3=a(9102);let t5=()=>{let e=(0,c.I0)(),t=(0,g.v)(e=>e.user),{hubspotTeflBrochureFormId:a}=(0,j.Z)(),{downloadPdf:i,downloadStatus:o}=t2(),[n,s]=(0,l.useState)({brochureOrWebinar:null}),d=(e,t)=>{localStorage.setItem(e,JSON.stringify(t))}
1,h=e=>{let t=localStorage.getItem(e);return t?JSON.parse(t):{}},u=()=>{i("https://info.teachaway.com/hubfs/%5BFY25%5D%20TA%20TEFL%20Brochure.pdf","TEFL brochure.pdf")};return(0,l.useEffect)(()=>{if("completed"===o){e((0,V.wD)({text:"Your brochure was downloaded successfully!",type:"warning",delay:5e3}));let i=[{name:"firstname",value:t.firstName},{name:"lastname",value:t.lastName},{name:"email",value:t.email}];(0,t3.Z)({fields:i,formId:a});let o=h("leadCaptureActionsStates");o.teflBrochureOrWebinar="webinar",d("leadCaptureActionsStates",o),s({brochureOrWebinar:"webinar"})}},[o]),(0,r.jsx)(E.zx,{onClick:u,className:"dashboard-carousel-slice--content__actions-".concat("downloading"===o?"downloading-pdf":"right"),disabled:"downloading"===o,children:"downloading"===o?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(E.oD,{children:"Downloading"}),(0,r.jsx)(E.Ei,{icon:"spinner",loading:!0})]}):(0,r.jsx)(E.oD,{children:"Download a Brochure"})})},t4=()=>{let{assetsUrl:e}=(0,j.Z)();return(0,r.jsxs)("div",{className:"dashboard-carousel-slice",children:[(0,r.jsx)("div",{className:"dashboard-carousel-slice--image",style:{backgroundImage:"url(".concat(e,"/teacher-traveling-europe.png)"),backgroundSize:"contain"}}),(0,r.jsxs)("div",{className:"dashboard-carousel-slice--content dashboard-carousel-slice--content__tefl",children:[(0,r.jsxs)("div",{className:"dashboard-carousel-slice--content__captions",children:[(0,r.jsx)(t1(),{className:"dashboard-carousel-slice--content__captions-title",target:"_blank",href:"https://teflonline.teachaway.com/pages/courses?utm_source=Dashboard&utm_medium=Onboarding+TEFL+Course&utm_campaign=Dashboard+Links&utm_id=6",children:"TEFL Certification & Job Placement Opportunities"}),(0,r.jsx)(E.uT,{size:"large",weight:"medium",color:"pebble--lightest",children:"Earn your TEFL certification with a course designed by experts in international teacher recruitment. Gain the skills schools are hiring for and access over 3,000 ESL teaching jobs worldwide!"})]}),(0,r.jsxs)("div",{className:"dashboard-carousel-slice--content__actions",children:[(0,r.jsx)(E.zx,{onClick:()=>window.open("https://teflonline.teachaway.com/pages/enroll?utm_source=Dashboard&utm_medium=Enroll+now+button&utm_campaign=Dashboard+Links&utm_id=4"),className:"dashboard-carousel-slice--content__actions-left",children:(0,r.jsx)(E.oD,{children:"Enroll Now"})}),(0,r.jsx)(t5,{})]})]})]})},t9=()=>{let{assetsUrl:e}=(0,j.Z)();return(0,g.v)(e=>e.user),(0,r.jsxs)("div",{className:"lead-capture-container",style:{"--icon-url":"url(".concat(e,"/icons/open-new-tab.svg)")},children:[(0,r.jsx)(E.X6,{className:"lead-capture-container__title",size:"medium",children:"Courses that match your profile"}),(0,r.jsx)(t4,{})]})},t8=e=>{let{color:t="#727272",...a}=e;return(0,r.jsx)("svg",{...a,width:"14",height:"9",viewBox:"0 0 14 9",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M1 7.5L7 1.5L13 7.5",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},t6=e=>{let{children:t,slices:a,prevButton:i=!0,nextButton:o=!0,dots:n=!0,clickableDots:s=!0,showGoBack:c=!1,showFirstPrevButton:d=!0,showLastNextButton:h=!0,onGoBack:u,onComplete:p}=e,[m,x]=(0,l.useState)(0),[g,j]=(0,l.useState)(i),[b,f]=(0,l.useState)(o),y=l.Children.count(t),v=()=>{p&&m===y-1?p():x(e=>(e+1)%y)},w=()=>{0===m&&u?u():x(e=>Math.max(e-1,0))},T=e=>{s&&x(e)};return(0,l.useEffect)(()=>{h||m!==y-1?b||f(!0):f(!1),d||0!==m?d||j(!0):j(!1)},[m]),(0,r.jsxs)("div",{className:"carousel-container",children:[(0,r.jsx)("div",{className:"carousel-slices",children:(0,r.jsx)("div",{className:"carousel-wrapper",style:{transform:"translateX(-".concat(100*m,"%)"),transition:"transform 0.5s ease-in-out"},children:l.Children.map(t,e=>(0,r.jsx)("div",{className:"slide",style:{flex:"0 0 100%"},children:e}))})}),(0,r.jsxs)("div",{className:"carousel-controls",style:{justifyContent:g&&b?"space-between":g?"flex-start":"flex-end"},children:[g&&(0,r.jsxs)(E.zx,{className:"carousel-controls__prev-button",onClick:w,children:[(0,r.jsx)(t8,{color:"var(--spearmint)",alt:"Arrow icon",className:"carousel-control
1s__icon"}),(0,r.jsx)("span",{children:a[m].prevButtonText&&a[m].prevButtonText})]}),n&&(0,r.jsxs)("div",{className:"carousel-indicators",children:[c&&(0,r.jsx)("span",{className:"dot",onClick:()=>s&&u,style:{cursor:s&&"pointer"}}),Array.from({length:y}).map((e,t)=>(0,r.jsx)("span",{className:t===m?"dot active":"dot",onClick:()=>T(t),style:{cursor:s&&"pointer"}},t))]}),b&&(0,r.jsxs)(E.zx,{className:"carousel-controls__next-button",onClick:v,children:[(0,r.jsx)("span",{children:a[m].nextButtonText&&a[m].nextButtonText}),(0,r.jsx)(t8,{color:"var(--spearmint)",alt:"Arrow icon",className:"carousel-controls__icon"})]})]})]})};var t7=a(7446);let ae=e=>{let{color:t="#073847",...a}=e;return(0,r.jsxs)("svg",{...a,width:"20",height:"17",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("path",{d:"M22.5 11.08V12C22.4988 14.1564 21.8005 16.2547 20.5093 17.9818C19.2182 19.709 17.4033 20.9725 15.3354 21.5839C13.2674 22.1953 11.0573 22.1219 9.03447 21.3746C7.01168 20.6273 5.28465 19.2461 4.11096 17.4371C2.93727 15.628 2.37979 13.4881 2.52168 11.3363C2.66356 9.18455 3.49721 7.13631 4.89828 5.49706C6.29935 3.85781 8.19279 2.71537 10.2962 2.24013C12.3996 1.7649 14.6003 1.98232 16.57 2.85999",stroke:"#1F7267","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),(0,r.jsx)("path",{d:"M22.5 4L12.5 14.01L9.5 11.01",stroke:"#1F7267","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})]})};var at=a(1423);let aa=()=>{let e=(0,c.I0)(),t=(0,g.v)(e=>e.user),{assetsUrl:a,hubspotTeflOnboardingBrochureFormId:i}=(0,j.Z)(),{downloadPdf:o,downloadStatus:n}=t2(),s=()=>{o("https://info.teachaway.com/hubfs/%5BFY25%5D%20TA%20TEFL%20Brochure.pdf","TEFL brochure.pdf")};return(0,l.useEffect)(()=>{if("completed"===n){e((0,t7.w)({text:"Your brochure was downloaded successfully!",type:"warning",delay:5e3}));let a=[{name:"firstname",value:t.firstName},{name:"lastname",value:t.lastName},{name:"email",value:t.email}];(0,t3.Z)({fields:a,formId:i,onboardingTitle:"Teach Away | Onboarding"}),e((0,at.j)({teflBrochureOrWebinar:"webinar"}))}},[n]),(0,r.jsxs)("div",{className:"onboarding-slice-teach-away",children:[(0,r.jsxs)(U.Z,{id:"onboarding-slice-teach-away",className:"get-certified-onboarding-slice",children:[(0,r.jsx)("div",{className:"onboarding-slice-teach-away__header",children:(0,r.jsx)(U.Z.Header,{title:"Qualify to teach English abroad or online",action:(0,r.jsx)(T(),{src:"".concat(a,"/ta-tefl-dashboard.png"),alt:"Recomendation icon",width:1e3,height:400,className:"university-of-toronto-image"})})}),(0,r.jsx)(U.Z.Body,{children:(0,r.jsxs)("div",{style:{paddingTop:"30px"},children:[(0,r.jsx)(E.uT,{weight:"medium",size:"large",children:"Get TEFL certified with the world's most recognized TEFL course. Join our graduates teaching worldwide."}),(0,r.jsxs)("div",{className:"check-caption-text",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)(ae,{}),(0,r.jsx)(E.uT,{weight:"bold",size:"large",children:"82% of our TEFL graduates find work in one week"})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)(ae,{}),(0,r.jsx)(E.uT,{weight:"bold",size:"large",children:"98% would recommend our course to a friend"})]})]})]})})]}),(0,r.jsx)(E.zx,{id:"download-brochure",className:"brochure".concat("downloading"===n?"Downloading":"completed"===n?"Completed":""),type:"primary",theme:"ta-teacher",onClick:s,disabled:"downloading"===n||"completed"===n,children:"downloading"===n?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(E.Ei,{icon:"spinner",loading:!0}),(0,r.jsx)(E.zx.Text,{children:"Downloading"})]}):"completed"===n?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(E.Ei,{icon:"checkmark-large"}),(0,r.jsx)(E.zx.Text,{children:"Downloaded!"})]}):(0,r.jsx)(E.zx.Text,{children:"Download Course Brochure"})})]})},ai={Bachelor:1,Master:2,PGCE:3,PhD:4,Other:5},ao=e=>{var t;return 0===(t=null==e?void 0:e.education).length?null:t.reduce((e,t)=>e?ai[t.degree]>ai[e.degree]?t:e:t,t[0])},an=()=>{let e=(0,c.I0)(),t=(0,g.v)(e=>e.user),{assetsUrl:a,hubspotTcpOnboardingBrochureFormId:i}=(0,j.Z)(),{downloadPdf:o,downloadStatus:n}=t2(),s=ao(t),{states:d,countries:h}=(0,g.v)(e=>e.flowData),u=h.find(e=>e.value===t.country),p=d.find(e=>e.value===t.state),m=()=>{o("https://info.teachaway.com/hubfs/%5BTA%5D%20TCP%20B2C/TCP%20General%20Brochure*.pdf","TCP brochure.pdf")};return(0,l.useEffect)(()=>
1{if("completed"===n){var a,o;e((0,t7.w)({text:"Your brochure was downloaded successfully!",type:"warning",delay:3e3}));let n=[{name:"firstname",value:t.firstName},{name:"lastname",value:t.lastName},{name:"email",value:t.email},{name:"country",value:p?"".concat(p.label,", ").concat(null==u?void 0:u.label):(null==u?void 0:u.label)||"Unknown"},{name:"teflcallbooking_education",value:null!==(o=null==s?void 0:s.degree)&&void 0!==o?o:t.preferences.bachelorDegree?"Bachelor":"Unknown"},{name:"are_you_legally_authorized_to_work_in_the_united_states_",value:(null===(a=t.citizenship)||void 0===a?void 0:a.includes("US"))||"US"===t.country?"Yes":t.citizenship||t.country?"No":"Unknown"}];(0,t3.Z)({fields:n,formId:i,onboardingTitle:"Teach Away | Onboarding"}),e((0,at.j)({tcpBrochureOrWebinar:"webinar"}))}},[n]),(0,r.jsxs)("div",{className:"onboarding-slice-teach-away",children:[(0,r.jsxs)(U.Z,{id:"onboarding-slice-teach-away",className:"get-certified-onboarding-slice",children:[(0,r.jsx)("div",{className:"onboarding-slice-teach-away__header",children:(0,r.jsx)(U.Z.Header,{title:"Earn your teacher certification with TCP",action:(0,r.jsx)(T(),{src:"".concat(a,"/icons/certified.svg"),alt:"Recomendation icon",width:160,height:136})})}),(0,r.jsx)(U.Z.Body,{children:(0,r.jsxs)("div",{className:"tcp-certfied",children:[(0,r.jsx)(E.uT,{children:"Maximize your earning potential with our state-approved Teacher Certification Program (TCP)."}),(0,r.jsxs)("div",{className:"check-caption-text",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)(ae,{}),(0,r.jsx)(E.uT,{weight:"bold",size:"large",children:"95% of grads received a job offer or pay increase"})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)(ae,{}),(0,r.jsx)(E.uT,{weight:"bold",size:"large",children:"100% would recommend TCP to a friend"})]})]})]})})]}),(0,r.jsx)(E.zx,{id:"download-brochure",className:"brochure".concat("downloading"===n?"Downloading":"completed"===n?"Completed":""),type:"primary",theme:"ta-teacher",onClick:m,disabled:"downloading"===n||"completed"===n,children:"downloading"===n?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(E.Ei,{icon:"spinner",loading:!0}),(0,r.jsx)(E.zx.Text,{children:"Downloading"})]}):"completed"===n?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(E.Ei,{icon:"checkmark-large"}),(0,r.jsx)(E.zx.Text,{children:"Downloaded!"})]}):(0,r.jsx)(E.zx.Text,{children:"Download Brochure"})})]})},{assetsUrl:as}=(0,j.Z)(),ar=e=>{let{handleContinue:t}=e;return(0,r.jsxs)("div",{className:"onboarding-slice-teach-away",children:[(0,r.jsxs)(U.Z,{id:"onboarding-slice-teach-away",className:"complete-profile-onboarding-slice",children:[(0,r.jsx)("div",{className:"onboarding-slice-teach-away__header",children:(0,r.jsx)(U.Z.Header,{title:"Complete your profile",action:(0,r.jsx)(T(),{src:"".concat(as,"/icons/complete-profile.svg"),alt:"Recomendation icon",width:300,height:100})})}),(0,r.jsx)(U.Z.Body,{children:(0,r.jsxs)("div",{className:"onboarding-slice-teach-away__body-captions",children:[(0,r.jsxs)(E.uT,{weight:"medium",size:"large",children:["Teachers with a complete profile are"," ",(0,r.jsx)("span",{className:"span-green-text",children:"5x more likely to be contacted by schools they apply to."})]}),(0,r.jsx)(E.uT,{weight:"medium",size:"large",children:"Use the âComplete profileâ guide to take action on missing sections of your profile."})]})})]}),(0,r.jsx)(E.zx,{id:"download-brochure",type:"primary",theme:"ta-teacher",onClick:()=>t(),children:(0,r.jsx)(E.zx.Text,{children:"Complete Profile"})})]})},{assetsUrl:al}=(0,j.Z)(),ac=e=>{let{handleContinue:t}=e;return(0,r.jsxs)("div",{className:"onboarding-slice-teach-away",children:[(0,r.jsxs)(U.Z,{id:"onboarding-slice-teach-away",children:[(0,r.jsx)("div",{className:"onboarding-slice-teach-away__header",children:(0,r.jsx)(U.Z.Header,{title:"Welcome to Teach Away",action:(0,r.jsx)(T(),{src:"".concat(al,"/icons/welcome.svg"),alt:"Welcome icon",width:160,height:180})})}),(0,r.jsx)(U.Z.Body,{children:(0,r.jsxs)("div",{className:"onboarding-slice-teach-away-teach-away__body-captions",children:[(0,r.jsx)(E.uT,{weight:"bold",size:"large",children:"Our mission is to find you a teaching job."}),(0,r.jsx)(E.uT,{weight:"medium",size:"large",children:"We offer the worldâs largest teaching job board
1with thousands of vacancies, as well as Certification opportunities to get you into the classroom."})]})})]}),(0,r.jsx)(E.zx,{id:"card-actions",theme:"ta-teacher",onClick:()=>t(),children:(0,r.jsx)(E.zx.Text,{children:"Get Started"})})]})},{assetsUrl:ad}=(0,j.Z)(),ah=e=>{let{handleContinue:t}=e;return(0,r.jsxs)("div",{className:"onboarding-slice-teach-away",children:[(0,r.jsxs)(U.Z,{id:"onboarding-slice-teach-away",className:"your-teacher-dashboard-onboarding-card",children:[(0,r.jsx)("div",{className:"onboarding-slice-teach-away__header",children:(0,r.jsx)(U.Z.Header,{title:"Your Teacher Dashboard",action:(0,r.jsx)(T(),{src:"".concat(ad,"/icons/teacher-dashboard.svg"),alt:"Your teacher dashboard icon",width:500,height:150})})}),(0,r.jsx)(U.Z.Body,{children:(0,r.jsxs)("div",{className:"onboarding-slice-teach-away__body-dashboard-card",children:[(0,r.jsxs)("div",{className:"your-teacher-dashboard-onboarding-card__body-columns",children:[(0,r.jsx)(T(),{src:"".concat(ad,"/icons/product.svg"),alt:"Briefcase icon",width:50,height:26}),(0,r.jsxs)(E.uT,{weight:"medium",size:"large",children:["Discover and apply to ",(0,r.jsx)("br",{}),"the latest teaching ",(0,r.jsx)("br",{}),"jobs"]})]}),(0,r.jsxs)("div",{className:"your-teacher-dashboard-onboarding-card__body-columns",children:[(0,r.jsx)(T(),{src:"".concat(ad,"/icons/letter.svg"),alt:"A letter icon",width:50,height:26}),(0,r.jsxs)(E.uT,{weight:"medium",size:"large",children:["Track your ",(0,r.jsx)("br",{}),"application progress ",(0,r.jsx)("br",{}),"and get notified"]})]}),(0,r.jsxs)("div",{className:"your-teacher-dashboard-onboarding-card__body-columns",children:[(0,r.jsx)(T(),{src:"".concat(ad,"/icons/running-time.svg"),alt:"Clock icon",width:50,height:26}),(0,r.jsxs)(E.uT,{weight:"medium",size:"large",children:["Stay up-to-date with ",(0,r.jsx)("br",{}),"the latest Teach Away ",(0,r.jsx)("br",{}),"news"]})]})]})})]}),(0,r.jsx)(E.zx,{id:"card-actions",theme:"ta-teacher",onClick:()=>t(),children:(0,r.jsx)(E.zx.Text,{children:"Continue"})})]})},au=e=>{let t,{onClose:a,onComplete:i}=e,o=(0,g.v)(e=>e.user),[n,s]=(0,l.useState)("initial"),[c,d]=(0,l.useState)(0),{onboarding:{setShowOnboardingModal:h}}=(0,x.ZP)("onboarding"),{edit:{setShowEditModal:u}}=(0,x.ZP)("strength"),p=null==o.preferences.interesedTEFL&&null==o.preferences.interesedTeacherCertification,m=!0===o.preferences.interesedTEFL||p,j=!0===o.preferences.interesedTeacherCertification||p,b=()=>s("continue"),f=()=>s("carousel"),y=()=>{0===c?s("continue"):d(e=>e-1)},v=()=>{s("initial"),h(!1),a&&a()},w=()=>{s("initial"),h(!1),u(!0),i&&i()},T={component:aa,key:"getCertifiedTefl",prevButtonText:"Go back",nextButtonText:"Continue"},C={component:ar,key:"completeProfile",prevButtonText:"Go back",props:{handleContinue:w}},E={bothLicensesInterested:[{...T},{...C}],teachingLicense:[{component:an,key:"getCertifiedTcp",prevButtonText:"Go back",nextButtonText:"Continue"},{...C}],teflLicense:[{...T},{...C}],noLicenseInterested:[{...C}]};return t=j&&!m?E.teachingLicense:!j&&m?E.teflLicense:j&&m?E.bothLicensesInterested:E.noLicenseInterested,(0,r.jsxs)(ee.Z,{id:"onboarding-modal",type:"info",height:"auto",onClose:v,children:["initial"===n&&(0,r.jsx)(ac,{handleContinue:b}),"continue"===n&&(0,r.jsx)(ah,{handleContinue:f}),"carousel"===n&&(0,r.jsx)(t6,{slices:t,onGoBack:y,onComplete:w,clickableDots:!1,showLastNextButton:!1,children:t.map(e=>{let t=e.component;return(0,r.jsx)(t,{...e.props},e.key)})})]})},{assetsUrl:ap}=(0,j.Z)(),am=()=>{let[e,t]=(0,l.useState)(!1),a=()=>{t(!1)};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(U.Z,{id:"recomendations-teach-away",children:[(0,r.jsxs)("div",{className:"recomendations-teach-away__header",children:[(0,r.jsx)("div",{className:"recomendations-teach-away__header-image",children:(0,r.jsx)(T(),{src:"".concat(ap,"/recommedations.png"),alt:"Recomendation icon",width:100,height:50})}),(0,r.jsx)(U.Z.Header,{title:"Your Teach Away Guide",action:(0,r.jsx)(E.uT,{weight:"semibold",size:"large",children:"Learn more about what Teach Away has to offer."})})]}),(0,r.jsx)(U.Z.Body,{children:(0,r.jsx)(E.zx,{id:"open-onboarding-modal-cta",theme:"ta-teacher",onClick:()=>t(!0),type:"outlined-secondary",style:{width:"190px",margin:"auto"},children:(0,r.jsx)(E.zx.Text,{children:"Explore Now"})})})]}),e&&(0,r.jsx)(au,{onClose:a,onComplete:a})]})},ax=e=>{let{title:t,description:a,buttonText:i,buttonLink:o,imageSrc:n,imageAlt:s}=e,l=()=>{o&&window.open(o,"_blank")};return(0,r.jsxs)("div",{id:"dashboard-certification-card",className:"certification-card",children:[n&&(0,r.jsx)("div",{className:"certification-card__media",children:(0,r.jsx)(T(),{src:n,alt:s||t,width:280,height:280,quality:95})}),(0,r.jsxs)("div",{className:"certification-card__content",children:[(0,r.jsx)(E.uT,{size:"large",weight:"bold",children:t}),(0,r.jsx)(E.uT,{size:"small",weight:"medium",children:a}),o&&i&&(0,r.jsx)("div",{className:"certification-card__button",children:(0,r.jsx)(E.zx,{id:"certification-explore-programs-button",theme:"ta-teacher",onClick:l,type:"outlined-secondary",children:(0,r.jsx)(E.zx.Text,{children:i})})})]})]})};var ag=a(8077),aj=a(940);
1let{showDashboardBanner:ab,assetsUrl:af}=(0,j.Z)(),ay=()=>{let{preferences:e}=(0,l.useContext)(f.R0),t=(0,g.v)(e=>e.user),[a,i]=(0,l.useState)(!1);(0,l.useEffect)(()=>{let e=()=>{let e=window.innerWidth<640;i(t=>t===e?t:e)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);let{hasTEFLCertifications:o,hasTeacherCertifications:n}=(0,l.useMemo)(()=>{let e=t.license||[],a=!1,i=!1;return e.forEach(e=>{e.type===ag.QU.ESL_CERTIFICATION&&e.eslCertification===ag.bW.TEFL&&(a=!0),e.type===ag.QU.TEACHER_QUALIFICATION&&(i=!0)}),{hasTEFLCertifications:a,hasTeacherCertifications:i}},[t.license]),s=!o,c=!n,d=()=>(0,r.jsxs)(r.Fragment,{children:[s&&(0,r.jsx)("div",{className:"dashboard-certification-card-wrapper",children:(0,r.jsx)(ax,{title:"Online TEFL Certification",description:"85% of Teach Away TEFL Grads Land a Job Overseas!",buttonText:"Explore Programs",buttonLink:"https://teflonline.teachaway.com/",imageSrc:a?void 0:"".concat(af,"/teacher-certification/online-tefl-certification.png"),imageAlt:"TEFL Certification"})}),c&&(0,r.jsx)("div",{className:"dashboard-certification-card-wrapper",children:(0,r.jsx)(ax,{title:"Online Teacher Certification & Masters programs",description:"Earn a U.S. teaching licence through this fully-accredited, 100% online pathway.",buttonText:"Explore Programs",buttonLink:"https://www.teachaway.com/courses/moreland-online-teacher-certification",imageSrc:a?void 0:"".concat(af,"/teacher-certification/online-teacher-certification.png"),imageAlt:"Teacher Certification"})})]});return(0,r.jsxs)("div",{className:"dashboard-grid",children:[(0,r.jsx)("div",{className:"dashboard-pending-job",children:(0,r.jsx)(aj.Z,{})}),"true"===ab&&(0,r.jsx)(tK,{}),(0,r.jsxs)("aside",{className:"dashboard-side-panel",children:[(0,r.jsx)(H,{type:"desktop"}),(0,r.jsx)(H,{type:"mobile"}),!a&&(0,r.jsx)(am,{}),a&&(0,b.$H)(t.tcpDashboard)&&(0,r.jsx)(t9,{}),(0,r.jsx)("div",{className:"dashboard-suggested-cards",children:!e.schoolContactDirectly&&(0,r.jsx)($,{})}),!a&&d()]}),(0,r.jsxs)("main",{className:"dashboard-main",children:[!a&&(0,b.$H)(t.tcpDashboard)&&(0,r.jsx)(t9,{}),(0,r.jsx)(tQ,{})]}),a&&d(),a&&(0,r.jsx)("div",{className:"recomendations-mobile",children:(0,r.jsx)(am,{})})]})};var av=a(2131);let aw=e=>{let{firstText:t,secondText:a,url:i,onClose:o,...n}=e,{add:{setShowAddModal:s}}=(0,x.ZP)("licenses");return(0,r.jsx)(ee.Z,{id:"requirements-modal",height:"auto",onClose:o,onSave:()=>{o(),s(!0)},onCancel:()=>{window.open(i),o()},...n,children:(0,r.jsxs)("div",{className:"modal-content",children:[(0,r.jsx)(E.uT,{size:"x-large",children:t}),(0,r.jsx)(E.uT,{size:"x-large",children:a})]})})},aT=(0,r.jsx)(E.JO,{name:"open-book",fill:"var(--spearmint)"}),aC={teachingLicense:{firstText:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("strong",{children:"Your application has been submitted!"})," For this role, a teaching license is required - add yours to your profile to stand out among applicants."]}),secondText:(0,r.jsx)(r.Fragment,{}),url:"https://www.teachaway.com/courses/teacher-certification?utm_campaign=Dashboard%20Job%20App%20Course%20Link&utm_source=Dashboard%20Job%20Board&utm_medium=Get%20certified%20button",confirmButton:"I'll do this later",cancelButton:"Update my profile"},esl:{firstText:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("strong",{children:"Your application has been submitted!"})," TEFL certification is required for this role - add yours to your profile to stand out among applicants."]}),secondText:(0,r.jsx)(r.Fragment,{children:"Learn more about Teach Away's TEFL certification coursers and how they will quialify you to teach English aboard or online."}),url:"https://teflonline.teachaway.com/pages/courses?utm_campaign=Dashboard%20Job%20App%20Course%20Link&utm_source=Dashboard%20Job%20Board&utm_medium=Get%20certified%20button",confirmButton:"Update my profile",cancelButton:(0,r.jsxs)(r.Fragment,{children:["Get an OISE TEFL Certificate ",aT]})},licenseAndEsl:{firstText:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("strong",{children:"Your application has been submitted!"})," This role requires a Teaching License & ESL Certificate - add yours to your profile to stand out among applicants."]}),secondText:(0,r.jsx)(r.Fragment,{children:"Donât have any teaching certificates yet? Learn more about Teach Awayâs certificates and courses."}
1),url:"https://www.teachaway.com/courses-and-certifications?utm_campaign=Dashboard",confirmButton:"Update my profile",cancelButton:(0,r.jsxs)(r.Fragment,{children:["Get Certified ",aT]})}},aE=()=>{let e=aC.teachingLicense,t=aC.esl,a=aC.licenseAndEsl,{showLicenseModal:i,setShowLicenseModal:o,showESLModal:n,setShowESLModal:s,showLicenseAndEslModal:c,setShowLicenseAndEslModal:d}=(0,l.useContext)(f.R0);return(0,r.jsx)(r.Fragment,{children:i?(0,r.jsx)(aw,{title:"Job requires a teaching license",firstText:e.firstText,secondText:e.secondText,confirmText:e.confirmButton,cancelText:e.cancelButton,url:e.url,onClose:()=>o(!1)}):n?(0,r.jsx)(aw,{title:"Job requires an ESL certificate",firstText:t.firstText,secondText:t.secondText,confirmText:t.confirmButton,cancelText:t.cancelButton,url:t.url,onClose:()=>s(!1)}):c?(0,r.jsx)(aw,{title:"Job requires multiple certificates",firstText:a.firstText,secondText:a.secondText,confirmText:a.confirmButton,cancelText:a.cancelButton,url:a.url,onClose:()=>d(!1)}):null})};var aN=a(8444);let{assetsUrl:aS}=(0,j.Z)(),ak=()=>{let{edit:{setShowEditModal:e}}=(0,x.ZP)("strength"),{handleClose:t,handleDismiss:a}=(0,aN.Z)();return(0,r.jsx)(ee.Z,{id:"profile-complete-modal",title:"Update missing sections of your profile",cancelText:"Dismiss",confirmText:"Update profile",height:"auto",onClose:t,onCancel:a,onSave:()=>{t(),e(!0)},children:(0,r.jsxs)("div",{className:"modal-content",children:[(0,r.jsx)(T(),{src:"".concat(aS,"/logos/update-profile.svg"),alt:"Update profile",width:"155",height:"150",priority:!0}),(0,r.jsxs)(E.uT,{weight:"semibold",size:"x-large",children:["A"," ",(0,r.jsxs)(E.uT,{weight:"bold",color:"spearmint",element:"span",size:"x-large",children:["Professional"," "]}),"profile strength is required to apply to jobs on Teach Away. This ensures"," ",(0,r.jsxs)(E.uT,{weight:"bold",color:"spearmint",element:"span",size:"x-large",children:["schools have the necessary information"," "]}),"when assessing your application."]}),(0,r.jsx)(E.uT,{size:"x-large",children:"Dismiss this message if youâve already completed all applicable sections of your profile."})]})})},{assetsUrl:aA,marketingUrlTeachaway:a_}=(0,j.Z)(),aI=()=>{let{handleDismiss:e}=(0,aN.Z)(),t=q.S.modals.premiumMembership;return(0,r.jsx)(ee.Z,{id:"interested-in-premium-modal",title:t.title,type:"info",height:"auto",onClose:e,children:(0,r.jsxs)("div",{className:"modal-content",style:{gap:32},children:[(0,r.jsx)(T(),{src:"".concat(aA,"/logos/level-up.svg"),alt:"Confetti",width:"80",height:"130",priority:!0}),(0,r.jsx)(E.uT,{weight:"semibold",size:"x-large",children:t.content[0]}),(0,r.jsx)(E.zx,{id:"tell-me-more",theme:"ta-teacher",onClick:()=>{window.open("".concat(a_,"/premium"),"_blank"),e()},children:(0,r.jsx)(E.zx.Text,{children:t.cta})}),(0,r.jsx)(E.uT,{weight:"semibold",size:"x-large",children:t.content[1]})]})})};var aL=a(5960);let{assetsUrl:aP}=(0,j.Z)(),az=()=>{let{handleDismiss:e}=(0,aN.Z)(),t=aL.u.modals.newSubscriber;return(0,r.jsx)(ee.Z,{id:"new-subscriber-modal",title:t.title,type:"info",height:"auto",onClose:e,children:(0,r.jsxs)("div",{className:"modal-content",children:[(0,r.jsx)(T(),{src:"".concat(aP,"/logos/confetti-alt.svg"),alt:"Confetti",width:"150",height:"150",priority:!0}),t.content]})})},aD=()=>{let[e,t]=(0,l.useState)(!1),[a,i]=(0,l.useState)(!1),[o,n]=(0,l.useState)(!1),{campaign:s,targetedByCampaign:c,showModal:d,setShowModal:h,handleDismiss:u}=(0,aN.Z)(),p=()=>{n(!0),h(!1),setTimeout(()=>{i(!0),h(!0)},300)},m=()=>{t(!0),h(!1),u()},x=(0,l.useCallback)(e=>{switch(e){case"NEW_REGISTRATION":if(o&&a)return(0,r.jsx)(ak,{});return(0,r.jsx)(au,{onClose:p,onComplete:m});case"NEW_SUBSCRIBER":return(0,r.jsx)(az,{});case"PROFILE_COMPLETION":return(0,r.jsx)(ak,{});case"PREMIUM_MEMBERSHIP":return(0,r.jsx)(aI,{});default:return null}},[e,o,a]);return(0,l.useEffect)(()=>{let e;return c&&(e=setTimeout(()=>h(!0),1e3)),()=>{clearTimeout(e)}},[c,h]),d&&x(s)};var aU=a(4625);let{assetsUrl:aO}=(0,j.Z)(),aR=()=>{let e=q.S.modals.criminalRecordCheck,{showCRCMessage:t,setShowCRCMessage:a}=(0,l.useContext)(f.R0),{add:{showAddModal:i,setShowAddModal:o}}=(0,x.ZP)("about");return(0,r.jsxs)(r.Fragment,{children:[i&&(0,r.jsx)(aU.CriminalBackgroun
1dModal,{}),t&&(0,r.jsx)(ee.Z,{id:"crc-message-modal",title:e.title,type:"info",height:"auto",onClose:()=>a(!1),children:(0,r.jsxs)("div",{className:"modal-content",children:[(0,r.jsx)(T(),{src:"".concat(aO,"/logos/criminal-record-check.svg"),width:160,height:160,alt:"Criminal Record Check"}),(0,r.jsx)(E.uT,{weight:"semibold",size:"x-large",children:e.content}),(0,r.jsx)(E.zx,{id:"crc-message-modal-action",theme:"ta-teacher",onClick:()=>{a(!1),o(!0)},children:(0,r.jsx)(E.zx.Text,{children:e.cta})})]})})]})},aZ=e=>{let{data:t,notifications:a,dropDownValues:i,declarationStatus:o,teacherJobCategory:n}=e,s=(0,c.I0)(),[d,p]=(0,l.useState)(!1),[g,j]=(0,l.useState)(!1),[b,f]=(0,l.useState)(!1),[y,v]=(0,l.useState)(!1),[w,T]=(0,l.useState)(null);return(0,l.useEffect)(()=>{let e=async()=>{e7.Z.getSuggestedJobs({categories:n}).then(e=>{T(e),s(e5(e))}).catch(e=>{console.log(e),T(null),s(e5([]))}),e7.Z.getAppliedJobs().then(e=>{let{jobApplications:t,total:a}=e;s(e4(t)),s(e8(a))}).catch(e=>{console.log(e),s(e4([])),s(e8(0))}),e7.Z.getSavedJobs().then(e=>{let{savedJobs:t,total:a}=e;s(e9(t)),s(e6(a))}).catch(e=>{console.log(e),s(e9([])),s(e6(0))})};e()},[t,s]),(0,r.jsxs)(u.Z,{pageTitle:"Dashboard",data:t,dropDownValues:i,notifications:a,declarationStatus:o,suggestedJobs:null!=w?w:[],showCRCMessage:d,setShowCRCMessage:p,showLicenseModal:g,setShowLicenseModal:j,showESLModal:b,setShowESLModal:f,showLicenseAndEslModal:y,setShowLicenseAndEslModal:v,children:[(0,r.jsx)(m,{}),(0,r.jsxs)(x.$i,{children:[(0,r.jsx)(aR,{}),(0,r.jsx)(ay,{}),(0,r.jsx)(aD,{}),(0,r.jsx)(aE,{}),(0,r.jsx)(av.Z,{})]}),(0,r.jsx)(h(),{src:"https://js.hsforms.net/forms/embed/v2.js"})]})};var aF=!0,aM=aZ},9102:function(e,t,a){"use strict";var i=a(9669),o=a.n(i);let n=async e=>{let{fields:t,formId:a,onboardingTitle:i}=e;try{let e=await o().post("/api/hubspot/submitForms/submitForm?formId=".concat(a),{fields:t,context:{pageUri:window.location.href,pageName:i||document.title}});return e}catch(e){console.error("Failed to submit form:",e)}};t.Z=n},4298:function(e,t,a){e.exports=a(5442)},1304:function(e){var t;t=function(){var e=JSON.parse('{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","\xa2":"cent","\xa3":"pound","\xa4":"currency","\xa5":"yen","\xa9":"(c)","\xaa":"a","\xae":"(r)","\xba":"o","\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xc6":"AE","\xc7":"C","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xd0":"D","\xd1":"N","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xdd":"Y","\xde":"TH","\xdf":"ss","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xe6":"ae","\xe7":"c","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xf0":"d","\xf1":"n","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xfd":"y","\xfe":"th","\xff":"y","Ä":"A","Ä":"a","Ä":"A","Ä":"a","Ä":"A","Ä
":"a","Ä":"C","Ä":"c","Ä":"C","Ä":"c","Ä":"D","Ä":"d","Ä":"DJ","Ä":"dj","Ä":"E","Ä":"e","Ä":"E","Ä":"e","Ä":"e","Ä":"e","Ä":"E","Ä":"e","Ä":"G","Ä":"g","Ä¢":"G","Ä£":"g","Ĩ":"I","Ä©":"i","Ī":"i","Ä«":"i","Ä®":"I","į":"i","İ":"I","ı":"i","Ķ":"k","Ä·":"k","Ä»":"L","ļ":"l","Ľ":"L","ľ":"l","Å":"L","Å":"l","Å":"N","Å":"n","Å
":"N","Å":"n","Å":"N","Å":"n","Å":"O","Å":"o","Å":"O","Å":"o","Å":"OE","Å":"oe","Å":"R","Å":"r","Å":"R","Å":"r","Å":"S","Å":"s","Å":"S","Å":"s","Å ":"S","Å¡":"s","Å¢":"T","Å£":"t","Ť":"T","Å¥":"t","Ũ":"U","Å©":"u","Ū":"u","Å«":"u","Å®":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Å´":"W","ŵ":"w","Ŷ":"Y","Å·":"y","Ÿ":"Y","Ź":"Z","ź":"z","Å»":"Z","ż":"z","Ž":"Z","ž":"z","Æ":"E","Æ":"f","Æ ":"O","Æ¡":"o","Ư":"U","ư":"u","Ç":"LJ","Ç":"lj","Ç":"NJ","Ç":"nj","È":"S","È":"s","È":"T","È":"t","É":"e","Ë":"o","Î":"A","Î":"E","Î":"H","Î":"I","Î":"O","Î":"Y","Î":"W","Î":"i","Î":"A","Î":"B","Î":"G","Î":"D","Î":"E","Î":"Z","Î":"H","Î":"8","Î":"I","Î":"K","Î":"L","Î":"M","Î":"N","Î":"3","Î":"O","Î ":"P","Ρ":"R","Σ":"S","Τ":"T","Î¥":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"W","Ϊ":"I","Ϋ":"Y","ά":"a","Î":"e","ή":"h","ί":"i","ΰ":"y","α":"a","β":"b","γ":"g","δ":"d","ε":"e","ζ":"z","η":"h","θ":"8","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"3","ο":"o","Ï":"p","Ï":"r","Ï":"s","Ï":"s","Ï":"t","Ï
":"y","Ï":"f","Ï":"x","Ï":"ps","Ï":"w","Ï":"i","Ï":"y","Ï":"o","Ï":"y","Ï":"w","Ð":"Yo","Ð":"DJ","Ð":"Ye","Ð":"I","Ð":"Yi","Ð":"J","Ð":"LJ","Ð":"NJ","Ð":"C","Ð":"DZ","Ð":"A","Ð":"B","Ð":"V","Ð":"G","Ð":"D","Ð":"E","Ð":"Zh","Ð":"Z","Ð":"I","Ð":"J","Ð":"K","Ð":"L","Ð":"M","Ð":"N","Ð":"O","Ð":"P","Ð ":"R","С":"S","Т":"T","У":"U","Ф":"F","Ð¥":"H","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"U","Ы":"Y","Ь":"","Ð":"E","Ю":"Yu","Я":"Ya","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","Ñ":"r","Ñ":"s","Ñ":"t","Ñ":"u","Ñ":"f","Ñ
":"h","Ñ":"c","Ñ":"ch","Ñ":"sh","Ñ":"sh","Ñ":"u","Ñ":"y","Ñ":"","Ñ":"e","Ñ":"yu","Ñ":"ya","Ñ":"yo","Ñ":"dj","Ñ":"ye","Ñ":"i","Ñ":"yi","Ñ":"j","Ñ":"lj","Ñ":"nj","Ñ":"c","Ñ":"u","Ñ":"dz","Ò":"G","Ò":"g","Ò":"GH","Ò":"gh","Ò":"KH","Ò":"kh","Ò¢":"NG","Ò£":"ng","Ò®":"UE","Ò¯":"ue","Ò°":"U","Ò±":"u","Òº":"H","Ò»":"h","Ó":"AE","Ó":"ae","Ó¨"
1:"OE","Ó©":"oe","Ô±":"A","Ô²":"B","Ô³":"G","Ô´":"D","Ôµ":"E","Ô¶":"Z","Ô·":"E\'","Ô¸":"Y\'","Ô¹":"T\'","Ôº":"JH","Ô»":"I","Ô¼":"L","Ô½":"X","Ô¾":"C\'","Ô¿":"K","Õ":"H","Õ":"D\'","Õ":"GH","Õ":"TW","Õ":"M","Õ
":"Y","Õ":"N","Õ":"SH","Õ":"CH","Õ":"P","Õ":"J","Õ":"R\'","Õ":"S","Õ":"V","Õ":"T","Õ":"R","Õ":"C","Õ":"P\'","Õ":"Q\'","Õ":"O\'\'","Õ":"F","Ö":"EV","Ø¡":"a","Ø¢":"aa","Ø£":"a","ؤ":"u","Ø¥":"i","ئ":"e","ا":"a","ب":"b","Ø©":"h","ت":"t","Ø«":"th","ج":"j","Ø":"h","Ø®":"kh","د":"d","ذ":"th","ر":"r","ز":"z","س":"s","Ø´":"sh","ص":"s","ض":"dh","Ø·":"t","ظ":"z","ع":"a","غ":"gh","Ù":"f","Ù":"q","Ù":"k","Ù":"l","Ù
":"m","Ù":"n","Ù":"h","Ù":"w","Ù":"a","Ù":"y","Ù":"an","Ù":"on","Ù":"en","Ù":"a","Ù":"u","Ù":"e","Ù":"","Ù ":"0","Ù¡":"1","Ù¢":"2","Ù£":"3","Ù¤":"4","Ù¥":"5","Ù¦":"6","Ù§":"7","Ù¨":"8","Ù©":"9","Ù¾":"p","Ú":"ch","Ú":"zh","Ú©":"k","Ú¯":"g","Û":"y","Û°":"0","Û±":"1","Û²":"2","Û³":"3","Û´":"4","Ûµ":"5","Û¶":"6","Û·":"7","Û¸":"8","Û¹":"9","฿":"baht","á":"a","á":"b","á":"g","á":"d","á":"e","á":"v","á":"z","á":"t","á":"i","á":"k","á":"l","á":"m","á":"n","á":"o","á":"p","á":"zh","á ":"r","á¡":"s","á¢":"t","á£":"u","á¤":"f","á¥":"k","á¦":"gh","á§":"q","á¨":"sh","á©":"ch","áª":"ts","á«":"dz","á¬":"ts","á":"ch","á®":"kh","á¯":"j","á°":"h","á¹¢":"S","á¹£":"s","áº":"W","áº":"w","áº":"W","áº":"w","áº":"W","áº
":"w","áº":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","áº":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","á»":"E","á»":"e","á»":"E","á»":"e","á»":"E","á»
":"e","á»":"E","á»":"e","á»":"I","á»":"i","á»":"I","á»":"i","á»":"O","á»":"o","á»":"O","á»":"o","á»":"O","á»":"o","á»":"O","á»":"o","á»":"O","á»":"o","á»":"O","á»":"o","á»":"O","á»":"o","á»":"O","á»":"o","á»":"O","á»":"o","á»":"O","á»":"o","á» ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","á»§":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","á»":"u","á»®":"U","ữ":"u","á»°":"U","á»±":"u","Ỳ":"Y","ỳ":"y","á»´":"Y","ỵ":"y","á»¶":"Y","á»·":"y","Ỹ":"Y","ỹ":"y","â":"-","â":"\'","â":"\'","â":"\\"","â":"\\"","â":"\\"","â ":"+","â¢":"*","â¦":"...","â ":"ecu","â¢":"cruzeiro","â£":"french franc","â¤":"lira","â¥":"mill","â¦":"naira","â§":"peseta","â¨":"rupee","â©":"won","âª":"new shequel","â«":"dong","â¬":"euro","â":"kip","â®":"tugrik","â¯":"drachma","â°":"penny","â±":"peso","â²":"guarani","â³":"austral","â´":"hryvnia","âµ":"cedi","â¸":"kazakhstani tenge","â¹":"indian rupee","âº":"turkish lira","â½":"russian ruble","â¿":"bitcoin","â ":"sm","â¢":"tm","â":"d","â":"delta","â":"sum","â":"infinity","â¥":"love","å
":"yuan","å":"yen","ï·¼":"rial","ﻵ":"laa","ï»·":"laa","ﻹ":"lai","ï»»":"la"}'),t=JSON.parse('{"bg":{"Ð":"Y","Ц":"Ts","Щ":"Sht","Ъ":"A","Ь":"Y","й":"y","Ñ":"ts","Ñ":"sht","Ñ":"a","Ñ":"y"},"de":{"\xc4":"AE","\xe4":"ae","\xd6":"OE","\xf6":"oe","\xdc":"UE","\xfc":"ue","\xdf":"ss","%":"prozent","&":"und","|":"oder","â":"summe","â":"unendlich","â¥":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","\xa2":"centavos","\xa3":"libras","\xa4":"moneda","â£":"francos","â":"suma","â":"infinito","â¥":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","\xa2":"centime","\xa3":"livre","\xa4":"devise","â£":"franc","â":"somme","â":"infini","â¥":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","\xa2":"centavo","â":"soma","\xa3":"libra","â":"infinito","â¥":"amor"},"uk":{"Ð":"Y","и":"y","Ð":"Y","й":"y","Ц":"Ts","Ñ":"ts","Ð¥":"Kh","Ñ
":"kh","Щ":"Shch","Ñ":"shch","Ð":"H","г":"h"},"vi":{"Ä":"D","Ä":"d"},"da":{"\xd8":"OE","\xf8":"oe","\xc5":"AA","\xe5":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"st\xf8rre end"},"nb":{"&":"og","\xc5":"AA","\xc6":"AE","\xd8":"OE","\xe5":"aa","\xe6":"ae","\xf8":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","\xc5":"AA","\xc4":"AE","\xd6":"OE","\xe5":"aa","\xe4":"ae","\xf6":"oe"}}');function a(a,i){if("string"!=typeof a)throw Error("slugify: string argument expected");var o=t[(i="string"==typeof i?{replacement:i}:i||{}).locale]||{},n=void 0===i.replacement?"-":i.replacement,s=void 0===i.trim||i.trim,r=a.normalize().split("").reduce(function(t,a){var s=o[a];return void 0===s&&(s=e[a]),void 0===s&&(s=a),s===n&&(s=" "),t+s.replace(i.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")},"");return i.strict&&(r=r.replace(/[^A-Za-z0-9\s]/g,"")),s&&(r=r.trim()),r=r.replace(/\s+/g,n),i.lower&&(r=r.toLowerCase()),r}return a.extend=function(t){Object.assign(e,t)},a},e.exports=t(),e.exports.default=t()}},function(e){e.O(0,[953,529,875,58,94,774,888,179],function(){return e(e.s=6117)}),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.