PageSourceSearch

https://www.brightermonday.co.ke/build/brightermonday/assets/chunks/softskills-retarget-DBFN5I3s.js

js brightermonday.co.ke collected 2026-09-25 23:41:08 UTC 6,741 bytes, 1 lines download raw bytes

1import{m as b}from"./minixhr-lLzcZcvn.js";import"./_commonjsHelpers-D6-XlEtG.js";const j=()=>{const d=document.querySelector("#zoom_webinar_id"),k=document.querySelector("#form-container"),g=()=>fetch("/ajax/softskills/zoom-webinar-links"),S=document.querySelector("#retarget-auth"),_=document.querySelector("#img-emojis"),u=document.querySelector("#img-loader"),q=document.querySelector("#auth-text"),v=document.querySelector("#auth-title"),w=document.querySelectorAll(".platforms"),L=document.querySelector("#platforms-container"),i=document.querySelector("#login-btn"),m="/softskills/register/",E=document.querySelector("#verify_form"),T=document.querySelector("#softskills_back_btn");document.querySelector("#step-2")&&(document.querySelector("#step-2").style.display="none"),document.querySelector("#submit_btn")&&(document.querySelector("#submit_btn").style.display="none"),document.querySelector("#not-completed")&&(document.querySelector("#not-completed").style.display="none"),document.querySelector("#completed")&&(document.querySelector("#completed").style.display="none"),document.querySelector("#enroll_softskills")&&(document.querySelector("#enroll_softskills").style.display="none"),document.querySelectorAll(".form_btn_div").forEach(e=>{e.style.display="none"});const y=localStorage.getItem("learner_email");y!==void 0&&document.querySelector("#auth-email")&&(document.querySelector("#auth-email").value=y),E?.addEventListener("click",e=>{e.preventDefault(),window.alpine_component("softskills_register_form").validate()&&document.querySelector("#softskills_register_form").submit()}),document.querySelector("#yes_btn")?.addEventListener("click",()=>{document.querySelectorAll(".form_btn_div").forEach(e=>{e.style.display="block"}),document.querySelector("#submit_btn").style.display="block",document.querySelector("#enroll_softskills").style.display="block"}),T?.addEventListener("click",e=>{e.preventDefault(),document.querySelector("#step-1").style.display="block",document.querySelector("#step-2").style.display="none",document.querySelector("#not-completed").style.display="none",document.querySelector("#completed").style.display="none"});const s={welcome:"wave-emoji-image.png",time:"time-image.png",congratulations:"congratulations.png",pencil:"pencil-image.png"},l={thinkific:`${m}thinkific`,zoom:`${m}zoom`};w.forEach(e=>{e.addEventListener("click",t=>{const n=t.target.id,r=t.target.closest("div").id;l[n]?window.location=l[n]:l[r]&&(window.location=l[r])})});const f=e=>{_.setAttribute("src",`/static-assets/img/ng/soft-skills/${e}`)},p=(e,t)=>{q.innerHTML=e,v.innerHTML=t??""},h=e=>{const{status:t=!1,message:n="",link:r=null}=e;let o,a,c=s.pencil;if(t)switch(n){case"thinkific_learner":o="You will be redirected shortly to Thinkific to complete your training. If you don’t get redirected in 3 seconds.",i.innerHTML="Continue learning";break;case"thinkific_re_enrollment":o="An email containing your Thinkific credentials has been sent to your email. You will be redirected shortly to Thinkific to start your training. If you don’t get redirected in 3 seconds.",i.innerHTML="Start learning";break;case"baseline_not_completed":o="We noticed you have not taken the baseline test. You will be redirected shortly to take the baseline assessment, if you don’t get redirected in 3 seconds, please check your email for the baseline assessment link",i.innerHTML="Skip to assessment";break;case"endline_not_completed":o="We noticed you have not taken the endline test. You will be redirected shortly to take the endline assessment, if you don’t get redirected in 3 seconds, please check your email for the endline assessment link",i.innerHTML="Skip to assessment";break;case"endline_invited":o="You have been invited to take the endline test. You will be redirected shortly to take the baseline assessment, if you don’t get redirected in 3 seconds, please check your email for the baseline assessment link",i.innerHTML="Skip to assessment";break;case"baseline_invited":o="You have been invited to take the endline test. You will be redirected shortly to take the endline assessment, if you don’t get redirected in 3 seconds, please check your email for the endline assessment link",i.innerHTML="Skip to assessment";break;case"endline_not_ready":o="You are not due for the endline test. We will automatically notify you as at when due. Please continue your learning";break;case"training_completed":a="Congratulations",c=s.congratulations,i.classList.remove("hidden"),o="You have completed the Soft Skills training. You will be redirected to Jobberman to register, update your profile and start exploring suitable job opportunities";break;case"need_to_login":o="You will be redirected shortly to Jobberman login page to continue your course progress. If you don’t get redirected in 3 seconds, click the link below",a="Login to continue";break;default:o="Unexpected error encountered. Please reload the page and try again."}else n==="leaner_not_found"&&(c=s.welcome,a="Welcome to Jobberman Softskill Training",o="Kindly select your preferred learning platform",L.classList.remove("hidden"));p(o,a),f(c),r&&(i.setAttribute("href",r),i.classList.remove("hidden"),setTimeout(()=>{window.location=r},3e3))};S?.addEventListener("submit",async e=>
1{const t=document.querySelector("#auth-email").value,n=document.querySelector("#auth-button");window.alpine_component("retarget-auth").validate()&&(u.classList.remove("hidden"),f(s.time),p("We are checking your profile and learner journey status","Please be patient"),k.style.display="none",b.post("/ajax/softskills/retarget/auth",{headers:{"X-CSRF-TOKEN":document.querySelector('meta[name="csrf-token"]').getAttribute("content")},data:{email:t}}).then(r=>{n.setAttribute("disabled",!1),h(r),u.classList.add("hidden")}),e.preventDefault())}),document.querySelector("#no_btn")?.addEventListener("click",e=>{const t=e.currentTarget,n=document.querySelector("#email").value;b.post("/ajax/softskills/retarget/auth",{headers:{"X-CSRF-TOKEN":document.querySelector('meta[name="csrf-token"]').getAttribute("content")},data:{email:n}}).then(r=>{t.setAttribute("disabled",!1),h(r.data)}).catch(()=>{}),e.preventDefault()}),d?.addEventListener("change",e=>{const t=e.currentTarget;document.querySelector("#webinar_date").value=t.options[t.selectedIndex].innerText}),document.querySelector("#terms_accepted_v3")?.addEventListener("change",()=>{document.querySelector("#terms_accepted_v3").checked?document.querySelector("#verify_form_v3").removeAttribute("disabled"):document.querySelector("#verify_form_v3").setAttribute("disabled",!0)}),g().then(e=>{e.json().then(t=>{t.forEach(n=>{d?.append(`<option value=${n.id}>${n.course_start_date}</option>`)})})})};export{j as default};

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.