1import{_ as $}from"./rwPNAUPE.js";import{u as C,r as L,a as B,c as n,o as l,b as e,t as i,d as x,e as M,f as F,_ as H,g as A,h as D,w as O,i as V,j,k as z,l as N,m as b,F as T,n as J,p as S}from"#entry";import"./C5UXxsG3.js";const I={class:""},P={class:"bg-fg-bronce-900 border-b-4 border-b-fg-bronce-800"},q={class:"py-20 text-white text-2xl tracking-wide font-light max-w-screen-md mx-auto flex justify-between px-6"},R={key:0,xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor"},E={key:1,xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor"},U={ref:"offer",class:"max-w-screen-md mx-auto h-0 opacity-0 invisible overflow-hidden"},X={class:"py-12"},G=["innerHTML"],K={class:"px-6 mt-5"},Q={class:"max-w-screen-md flex justify-center px-6 pt-5 pb-6 border-2 border-gray-300 border-dashed rounded-md"},W={key:0,class:"space-y-1 text-center"},Y={class:"flex- text-sm uppercase text-gray-600"},Z=["for"],ee=["id"],te={key:1,class:"space-y-1 text-center text-fg-blue-900"},se={key:0},oe={class:"flex justify-center"},le={key:0,xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor"},ne={key:1,class:"animate-spin ml-1 h-5 w-5 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},ie={key:0,class:"text-red"},ae={key:1,class:"text-xl uppercase"},re={__name:"JobListItem",props:{job:{type:Object,required:!0}},setup(a){const c=F(),g=a,{t:_}=C(),o=L({file:null,loading:!1,thanks:!1,error:"",collapsed:!0,files:[]}),y=t=>{o.file=t.target.files[0]},v=t=>{if(t.preventDefault(),!o.loading){o.loading=!0;const s=new FormData;s.append("offre",g.job.data.job_title),s.append("fichier",o.file);const r=new XMLHttpRequest;r.open("POST",c.public.jobsApiUrl,!0),r.setRequestHeader("Accept","application/json"),r.onload=()=>{o.loading=!1;let u;try{u=JSON.parse(r.response)}catch{u={success:!1,error_msg:"no json request"},h(!1,"Unknown")}if(r.status===200&&u.success===!0)h(!0,"");else{let w=u.error;u.error_msg!==""&&(w=u.error_msg),h(!1,w)}},r.send(s)}},h=(t,s)=>{o.thanks=t,o.error=s},f=()=>{o.collapsed=!o.collapsed},m=()=>{o.collapsed?k():p(),o.collapsed=!o.collapsed},k=()=>{const t=gsap.timeline();d.value.classList.remove("invisible"),t.to(d.value,{height:"auto",ease:"expo.out",duration:.3}),t.to(d.value,{opacity:"1",duration:.2})},p=()=>{const t=gsap.timeline({onComplete:()=>{d.value.classList.add("invisible")}});t.to(d.value,{opacity:"0",y:0,duration:.1}),t.to(d.value,{height:"0",ease:"expo.out",duration:.2}),t.set(d.value,{display:"hidden"})},d=B(null);return(t,s)=>(l(),n("div",I,[e("div",P,[e("div",q,[e("div",null,i(a.job.data.job_title),1),e("button",{class:"btn-fg btn-fg-white btn-fg-md-icon",onClickk:f,onClick:m},[x(i(t.$t("jobs.read"))+" ",1),t.collapsed?(l(),n("svg",R,[...s[2]||(s[2]=[e("path",{"fill-rule":"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z","clip-rule":"evenodd"},null,-1)])])):(l(),n("svg",E,[...s[3]||(s[3]=[e("path",{"fill-rule":"evenodd",d:"M14.707 12.707a1 1 0 01-1.414 0L10 9.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z","clip-rule":"evenodd"},null,-1)])]))],32)])]),e("div",U,[e("div",X,[e("div",{class:"prismic-body prismic-body-blue px-6",innerHTML:t.$prismic.asHTML(a.job.data.job_description)},null,8,G),e("div",K,[e("div",Q,[t.file?(l(),n("div",te,[t.thanks?(l(),n("div",ae,i(t.$t("jobs.thanks")),1)):(l(),n("div",se,[e("div",oe,[e("div",null,i(t.file.name)+" ("+i(t.file.type)+")",1),e("button",{class:"btn-fg btn-fg-blue btn-fg-sm-icon ml-2",onClick:s[1]||(s[1]=r=>t.file=null)},[...s[7]||(s[7]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"})],-1)])])]),e("div",null,[e("button",{onClick:v,class:"btn-fg btn-fg-primary btn-fg-md-icon mt-4"},[x(i(t.$t("jobs.upload"))+" ",1),t.loading?(l(),n("svg",ne,[...s[9]||(s[9]=[e("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"},null,-1),e("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"},null,-1)])])):(l(),n("svg",le,[...s[8]||(s[8]=[e("path",{"fill-rule":"evenodd",d:"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z","clip-rule":"evenodd"},null,-1)])]))])]),t.error!=""?(l(),n("div",ie,i(t.$t("jobs.error")),1)):M("",!0)]))])):(l(),n("div",W,[s[5]||(s[5]=e("svg",{xmlns:"http://www.w3.org/2000/svg",class:"mx-auto h-12 w-12 text-fg-blue-600",stroke:"currentColor",fill:"none",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"})],-1)),e("div",Y,[e("label",{for:"file-upload-"+a.job.id,class:"relative cursor-pointer bg-white rounded-md font-medium text-fg-blue-900 hover:text-fg-blue-800 focus-within:outline-none focus-within:ring-2 focus-within:ring-offset-2 focus-within:ring-fg-blue-800"},[s[4]||(s[4]=e("span",null,"Upload a PDF file",-1)),e("input",{onChange:s[0]||(s[0]=r=>y(r)),id:"file-upload-"+a.job.id,type:"file",class:"sr-only"}
1,null,40,ee)],8,Z)]),s[6]||(s[6]=e("p",{class:"text-xs text-gray-500"},"Only PDF Files up to 10MB",-1))]))])])])],512)]))}},de={},ce={class:"bg-[#7B614C] h-[500px] md:flex-grow"},ue={class:"flex flex-col h-full antialiased text-white error-bg"},fe={class:"flex flex-col justify-center flex-grow max-w-xl mx-auto px-4"},pe={class:"lg:-ml-96 lg:w-[440px]"},me={class:"font-medium"},ge=["href"];function he(a,c){return l(),n("div",ce,[e("div",ue,[e("div",fe,[e("div",pe,[e("div",null,[e("p",me,i(a.$t("nojobs.title")),1),e("p",null,i(a.$t("nojobs.message")),1)]),e("a",{href:"mailto:"+a.$t("nojobs.email"),class:"mt-4 btn-fg btn-fg-white btn-md"},[x(i(a.$t("nojobs.email"))+" ",1),c[0]||(c[0]=e("svg",{xmlns:"http://www.w3.org/2000/svg",class:"w-5 h-5",viewBox:"0 0 20 20",fill:"currentColor"},[e("path",{"fill-rule":"evenodd",d:"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z","clip-rule":"evenodd"})],-1))],8,ge)])])])])}const be=H(de,[["render",he]]),ve={class:"bg-white antialiased flex flex-col h-full"},we={class:"max-w-screen-md px-6 mx-auto py-10 lg:py-20"},xe={ref:"copy",class:"hero-copy prismic-body prismic-body-blue"},je={__name:"jobs",async setup(a){let c,g;const{client:_}=A(),{locale:o,t:y,locales:v}=C();D({fr:{title:"Fiscogest - Carrières",meta:[{hid:"description",name:"description",content:"Le cabinet d'expertise comptable au Luxembourg vous accompagne à la fois dans votre comptabilité, votre fiscalité et toutes vos formalités administratives."}]},de:{title:"Fiscogest - Jobs",meta:[{hid:"description",name:"description",content:"Das Buchhaltungs- und Beratungsunternehmen in Luxemburg begleitet Sie sowohl bei Ihrer Buchhaltung als auch bei Ihren Steuerangelegenheiten und allen Verwaltungsformal
1itäten."}]}}[o.value]);const{data:f,error:m,status:k}=([c,g]=O(async()=>S("jobs",async()=>{const p=v.value.find(d=>d.code===o.value);return await _.getAllByType("jobs",{lang:p.language})})),c=await c,g(),c);if(m.value)throw V({statusCode:m.value.statusCode,statusMessage:m.value.statusMessage||"Page Content Error"});return(p,d)=>{const t=$,s=re,r=be;return l(),n("div",ve,[e("div",we,[z(t,null,{default:N(()=>[e("div",xe,[e("h1",null,i(p.$t("jobs.title")),1),e("p",null,i(p.$t("jobs.copy")),1)],512)]),_:1})]),b(f)&&b(f).results&&b(f).results.length>0?(l(!0),n(T,{key:0},J(b(f).results,u=>(l(),j(s,{job:u,key:u.id},null,8,["job"]))),128)):(l(),j(r,{key:1}))])}}};export{je as default}; 2//# sourceMappingURL=Bjbd8m4r.js.map
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.