1import{r as d,o as _,d as o,f as l,g as e,F as m,i as p,t as n,e as x,x as h}from"./app.Btm2sMGp.js";const f={class:"space-y-4"},v={key:0,class:"space-y-3"},b={key:1,class:"rounded-2xl border border-slate-200 bg-white/80 p-6 text-slate-600 shadow-sm"},g={key:2,class:"space-y-4"},y={class:"text-lg font-semibold text-slate-900"},k={class:"text-sm text-slate-600"},w={class:"mt-2 text-sm text-slate-600"},N={class:"mt-2 text-xs text-slate-400"},z={class:"mt-3 flex flex-wrap gap-2 text-sm"},A=["href"],B={__name:"UserJobApplicationsModule",setup(S){const r=d([]),i=d(!1),c=s=>{if(!s)return"â";const a=new Date(s);return Number.isNaN(a.getTime())?"â":a.toLocaleString("it-IT")},u=async()=>{i.value=!0;try{const{data:s}=await h.get("/api/frontend/modules/user/job-applications");r.value=s?.applications??[]}catch(s){console.error(s)}finally{i.value=!1}};return _(()=>{u()}),(s,a)=>(l(),o("div",f,[a[1]||(a[1]=e("header",null,[e("h2",{class:"text-2xl font-semibold text-slate-900"},"Candidature inviate"),e("p",{class:"text-sm text-slate-600"},"Tieniti aggiornato sulle posizioni alle quali hai applicato.")],-1)),i.value?(l(),o("div",v,[...a[0]||(a[0]=[e("div",{class:"h-32 animate-pulse rounded-2xl bg-slate-100"},null,-1)])])):r.value.length?(l(),o("div",g,[(l(!0),o(m,null,p(r.value,t=>(l(),o("article",{key:t.id,class:"rounded-2xl border border-slate-200 bg-white/90 p-5 shadow-sm"},[e("h3",y,n(t.job_title||"Annuncio"),1),e("p",k,n(t.company_name||"Azienda"),1),e("p",w,n(t.cover_letter||"Hai utilizzato la candidatura rapida."),1),e("p",N,"Inviata il "+n(t.submitted_at?c(t.submitted_at):"â"),1),e("div",z,[t.cv_url?(l(),o("a",{key:0,href:t.cv_url,target:"_blank",rel:"noopener",class:"btn-secondary"},"Scarica CV allegato",8,A)):x("",!0)])]))),128))])):(l(),o("div",b," Non hai ancora inviato candidature. Scopri le opportunità nella sezione Lavora. "))]))}};export{B 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.