1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/feature-jobs-COCWk5Gp.js","assets/vendor-core-C42Os7bm.js","assets/vendor-84Wnd_bx.js","assets/vendor-DxfFSaxS.css","assets/vendor-charts-D6-qvknE.js","assets/vendor-core-Cb_E52D-.css","assets/vendor-inertia--4SwMw6d.js","assets/vendor-swal-DqgyAEpo.js","assets/feature-applications-BzFev5Wu.js","assets/feature-applications-BeUzGkeW.css","assets/vendor-editors-DtSPydHE.js","assets/vendor-utils-D_g9guu3.js","assets/vendor-editors-CrSYVOAc.css","assets/vendor-izitoast-DmE-2cdH.js","assets/vendor-izitoast-Ct2Ww6gF.css","assets/vendor-firebase-B3-1BnB6.js","assets/vendor-lucide-9BRyh9x5.js","assets/vendor-headlessui-24D15VP8.js","assets/feature-jobs-hNW7RyUL.css"])))=>i.map(i=>d[i]); 2import{L as p,_ as r}from"./feature-jobs-COCWk5Gp.js";import{a5 as c,E as a,C as n}from"./vendor-core-C42Os7bm.js";import"./vendor-izitoast-DmE-2cdH.js";import"./vendor-inertia--4SwMw6d.js";import"./vendor-84Wnd_bx.js";import"./vendor-swal-DqgyAEpo.js";import"./feature-applications-BzFev5Wu.js";import"./vendor-editors-DtSPydHE.js";import"./vendor-utils-D_g9guu3.js";import"./vendor-firebase-B3-1BnB6.js";import"./vendor-lucide-9BRyh9x5.js";import"./vendor-headlessui-24D15VP8.js";import"./vendor-charts-D6-qvknE.js";const h=a(()=>r(()=>import("./feature-jobs-COCWk5Gp.js").then(e=>e.F),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18]))),d=a(()=>r(()=>import("./vendor-headlessui-24D15VP8.js"),__vite__mapDeps([17,1,2,3,4,5])).then(e=>e.Dialog)),m=a(()=>r(()=>import("./vendor-headlessui-24D15VP8.js"),__vite__mapDeps([17,1,2,3,4,5])).then(e=>e.DialogPanel)),_=a(()=>r(()=>import("./vendor-headlessui-24D15VP8.js"),__vite__mapDeps([17,1,2,3,4,5])).then(e=>e.DialogTitle)),u=a(()=>r(()=>import("./vendor-headlessui-24D15VP8.js"),__vite__mapDeps([17,1,2,3,4,5])).then(e=>e.DialogDescription)),f=a(()=>r(()=>import("./vendor-headlessui-24D15VP8.js"),__vite__mapDeps([17,1,2,3,4,5])).then(e=>e.TransitionRoot)),w=a(()=>r(()=>import("./vendor-headlessui-24D15VP8.js"),__vite__mapDeps([17,1,2,3,4,5])).then(e=>e.TransitionChild)),l=c({components:{Dialog:d,DialogPanel:m,DialogTitle:_,DialogDescription:u,TransitionRoot:f,TransitionChild:w,TextEditor:h,Loader:p},data(){return{application_means:{show_modal:!1},guest_application:{show_modal:!1},application:{name:"",email:"",cover_letter:"Write your cover letter here",attachments:[]},errors:{name:"",email:"",cover_letter:"",attachments:""},report:{email:"",reason:"",honeypot:"",recaptchaToken:"",errors:{},submitting:!1},showReportModal:!1,applying:!1,job:window.job}},mounted(){this.expired(this.job.deadline)&&this.job.apply_method!=="url"&&(this.application_means.show_modal=!0),this.registerView(),this.initUI()},methods:{initUI(){},async getIziToast(){return window.iziToast||(window.iziToast=(await r(async()=>{const{default:e}=await import("./vendor-izitoast-DmE-2cdH.js").then(t=>t.i);return{default:e}},__vite__mapDeps([13,2,1,4,5,3,14]))).default),window.iziToast},async getSwal(){return window.Swal||(window.Swal=(await r(async()=>{const{default:e}=await import("./vendor-swal-DqgyAEpo.js");return{default:e}},[])).default),window.Swal},registerView(){n.post("/job/register-view",{job_id:this.job.id}).then(e=>{}).catch(e=>{})},expired(e){const t=new Date;return e=new Date(e),e<t},async apply(){if(this.job.apply_method==="url"){let e=Object.keys(window.url_query),t=[],i=decodeURIComponent(window.application_url.replace("\\",""));if(e.length)for(let o=0;o<e.length;o++)t.push(e[o]+"="+window.url_query[e[o]]);let s=t.length?"&"+t.join("&"):"";window.open(i+s+"&"+window.link,"_blank"),setTimeout(()=>{confirm("Have you applied for this job?")&&this.recordExternalApplication()},1e3)}else window.location.href="/apply-intent/"+this.job.slug},async recordExternalApplication(){const e=await this.getIziToast();n.post("/job/record-external-application",{job_id:this.job.id}).then(()=>{e.success({title:"Success",message:"Your application has been recorded"})}).catch(t=>{})},closeApply(){this.application_means.show_modal=!1},applyWithoutLogin(){this.application_means.show_modal=!1,this.guest_application.show_modal=!0,this.clearErrors()},editorChanged(e){this.application.cover_letter=e,this.validateField("cover_letter")},updateAttachments(e){this.application.attachments=Array.from(e.target.files),this.validateField("attachments")},clearErrors(){this.errors={name:"",email:"",cover_letter:"",attachments:""}}
2,validateField(e){const t=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,i="Write your cover letter here";switch(e){case"name":this.errors.name=this.application.name.trim()?"":"Full name is required.";break;case"email":this.application.email.trim()?t.test(this.application.email)?this.errors.email="":this.errors.email="Please enter a valid email address.":this.errors.email="Email is required.";break;case"cover_letter":!this.application.cover_letter.trim()||this.application.cover_letter===i?this.errors.cover_letter="Please write a cover letter.":this.errors.cover_letter="";break;case"attachments":this.errors.attachments=this.application.attachments.length===0?"At least one attachment is required.":"";break}},validateApplication(){return this.validateField("name"),this.validateField("email"),this.validateField("cover_letter"),this.validateField("attachments"),!Object.values(this.errors).some(e=>e!=="")},async sendApplication(){if(!this.validateApplication())return;this.applying=!0;const e=new FormData;e.append("full_name",this.application.name),e.append("email",this.application.email),e.append("cover_letter",this.application.cover_letter),e.append("job_id",this.job.id),this.application.attachments.forEach((i,s)=>{e.append(`attachments[${s}]`,i)});const t=await this.getIziToast();n.post(window.applyUrl,e,{headers:{"Content-Type":"multipart/form-data"}}).then(i=>{i.data&&(this.application={name:"",email:"",cover_letter:"Write your cover letter here",attachments:[]},this.$refs.attachments.value="",this.clearErrors(),this.applying=!1,this.guest_application.show_modal=!1,t.success({title:"Done",message:"Application successfully sent"}))}).catch(i=>{this.applying=!1,t.error({title:"Error",message:"Failed to send application. Please try again."})})},async submitReport(){if(this.report.submitting=!0,this.report.errors={},this.report.email.trim()?/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(this.report.email)||(this.report.errors.email="Please enter a valid email address."):this.report.errors.email="Please provide your email address.",this.report.reason.trim()||(this.report.errors.reason="Please provide a reason for reporting this job."),this.report.honeypot&&(this.report.errors.reason="Invalid submission detected."),Object.keys(this.report.errors).length>0){this.report.submitting=!1;return}const e=()=>{grecaptcha.ready(()=>{grecaptcha.execute(window.site_key,{action:"report_job"}).then(t=>{this.report.recaptchaToken=t,n.post("/jobs/report",{job_id:window.job.id,email:this.report.email,reason:this.report.reason,"g-recaptcha-response":this.report.recaptchaToken,honeypot:this.report.honeypot}).then(i=>{this.showReportModal=!1,this.report.email="",this.report.reason="",this.report.submitting=!1,alert("Thank you! Your report has been submitted. We may contact you via email for further details.")}).catch(i=>{this.report.errors=i.response.data.errors||{},this.report.submitting=!1})})})};if(typeof grecaptcha>"u"){typeof window.loadRecaptcha=="function"&&window.loadRecaptcha();let t=0;const i=setInterval(async()=>{t++,typeof grecaptcha<"u"?(clearInterval(i),e()):t>50&&(clearInterval(i),this.report.submitting=!1,(await this.getIziToast()).error({title:"Error",message:"Security check failed to load. Please refresh the page."}))},100)}else e()}}}),g=()=>{window.requestIdleCallback?window.requestIdleCallback(()=>{l.mount("#job-page-new")},{timeout:2e3}):setTimeout(()=>{l.mount("#job-page-new")},500)};g();
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.