1import{_ as A,u as V,c as a,r as D,a as s,o as t,b as o,d as e,e as z,f as T,t as r,F as M,g as W,w as R,h as N,i as K,j as F,k as P,l as J,m as G}from"./index-NBXO8Zdf.js";const Q={key:0,class:"icon-bg-1"},X=["src"],Y={class:"business-and-system-analyst"},Z=["innerHTML"],ee={class:"job-details"},te={class:"job-details-grid"},se={key:0,class:"column"},ae={class:"job-tasks"},ne={class:"job-section-heading"},oe={class:"job-section-heading-wrapper"},le={key:1,class:"column"},ie={class:"job-expectation"},re={class:"job-section-heading"},ce={class:"job-section-heading-wrapper"},ue={class:"column"},de={key:0,class:"job-offer"},pe={class:"job-section-heading"},_e={class:"job-section-heading-wrapper"},ve={class:"job-application-info"},he={key:0,class:"job-application-heading"},be=["innerHTML"],ge={key:1,class:"job-application-email"},ke=["href"],fe={key:2,class:"apply-fallback-note"},me={key:3,class:"rodo-box"},ye={key:0,class:"job-application-clause-label"},$e=["innerHTML"],we={__name:"StandardJobOffer",props:{data:{type:Object,required:!0}},setup(b){const c=V(),n=b,L=a(()=>c.params.lang==="en"?"en":"pl"),x=a(()=>n.data.title||""),p=a(()=>n.data.sections||{}),i=a(()=>n.data.tasks||[]),l=a(()=>n.data.expectations||[]),v=a(()=>n.data.offer||[]),m=a(()=>n.data.email||""),g=a(()=>typeof n.data.rodo=="string"?{title:p.value?.clause_label||"",content:n.data.rodo}:n.data.rodo||{title:"",content:""}),k=a(()=>n.data.button||""),y=a(()=>n.data.background_image||""),u=a(()=>n.data.apply_button||"Aplikuj!"),_=a(()=>m.value?`mailto:${m.value}`:""),$=a(()=>L.value==="en"?`or send your CV to: ${m.value}`:`lub przeÅlij CV na adres: ${m.value}`);return(H,f)=>{const O=D("router-link");return t(),s(M,null,[y.value?(t(),s("div",Q,[e("img",{src:y.value,alt:"TÅo",class:"image"},null,8,X)])):o("",!0),e("main",Y,[e("h2",{innerHTML:x.value},null,8,Z),e("section",ee,[e("div",te,[p.value.tasks||i.value.length?(t(),s("div",se,[e("div",ae,[e("h2",ne,[e("span",oe,[T(r(p.value.tasks)+" ",1),f[0]||(f[0]=e("span",{class:"job-section-arrow"},"â",-1))])]),e("ul",null,[(t(!0),s(M,null,W(i.value,(S,w)=>(t(),s("li",{key:w},r(S),1))),128))])]),f[1]||(f[1]=e("div",{class:"unvisible-tile"},"B",-1))])):o("",!0),p.value.expectations||l.value.length?(t(),s("div",le,[e("div",ie,[e("h2",re,[e("span",ce,[T(r(p.value.expectations)+" ",1),f[2]||(f[2]=e("span",{class:"job-section-arrow"},"â",-1))])]),e("ul",null,[(t(!0),s(M,null,W(l.value,(S,w)=>(t(),s("li",{key:w},r(S),1))),128))])]),f[3]||(f[3]=e("div",{class:"unvisible-tile-2"},"D",-1))])):o("",!0),e("div",ue,[p.value.offer||v.value.length?(t(),s("div",de,[e("h2",pe,[e("span",_e,[T(r(p.value.offer)+" ",1),f[4]||(f[4]=e("span",{class:"job-section-arrow"},"â",-1))])]),e("ul",null,[(t(!0),s(M,null,W(v.value,(S,w)=>(t(),s("li",{key:w},r(S),1))),128))])])):o("",!0),e("div",ve,[p.value.application_heading?(t(),s("p",he,[e("strong",{innerHTML:p.value.application_heading},null,8,be)])):o("",!0),_.value?(t(),s("p",ge,[e("a",{href:_.value,class:"apply-button"},r(u.value),9,ke)])):o("",!0),_.value?(t(),s("p",fe,r($.value),1)):o("",!0),g.value.title||g.value.content?(t(),s("div",me,[g.value.title?(t(),s("p",ye,r(g.value.title),1)):o("",!0),g.value.content?(t(),s("blockquote",{key:1,class:"job-application-clause",innerHTML:g.value.content},null,8,$e)):o("",!0)])):o("",!0)])])]),k.value?(t(),z(O,{key:0,class:"return-button",to:{name:"career",params:{lang:L.value}}},{default:R(()=>[f[5]||(f[5]=e("span",{class:"arrow"},"â",-1)),T(" "+r(k.value),1)]),_:1},8,["to"])):o("",!0)])])],64)}}},je=A(we,[["__scopeId","data-v-68fa4b27"]]),Le={class:"spontan-application"},Te={key:0,class:"icon-bg-1"},He=["src"],Me=["innerHTML"],xe={key:1,class:"spontan-application-description"},Se=["innerHTML"],We=["href"],Be={key:3,class:"apply-fallback-note"},Ce={key:4,class:"rodo-box"},Oe={key:0,class:"rodo-title"},qe=["innerHTML"],Ie={__name:"SpontaneousApplication",props:{data:{type:Object,required:!0}},setup(b){const c=V(),n=b,L=a(()=>c.params.lang==="en"?"en":"pl"),x=a(()=>n.data.title||""),p=a(()=>n.data.description||""),i=a(()=>n.data.email||""),l=a(()=>n.data.rodo||null),v=a(()=>n.data.button||""),m=a(()=>n.data.background_image||""),g=a(()=>n.data.apply_button||"Aplikuj!"),k=a(()=>i.value?`mailto:${i.value}`:""),y=a(()=>L.value==="en"?`or send your CV to: ${i.value}`:`lub przeÅlij CV na adres: ${i.value}`);return(u,_)=>{const $=D("router-link");return t(),s("section",Le,[m.value?(t(),s("div",Te,[e("img",{src:m.value,alt:"TÅo",class:"spontan-image"},null,8,He)])):o("",!0),e("h2",{innerHTML:x.value},null,8,Me),p.value?(t(),s("div",xe,[e("p",{innerHTML:p.value},null,8,Se)])):o("",!0),k.value?(t(),s("a",{key:2,href:k.value,class:"apply-button"},r(g.value),9,We)):o("",!0),k.value?(t(),s("p",Be,r(y.value),1)):o("",!0),l.value&&(l.value.title||l.value.content)?(t(),s("div",Ce,[l.value.title?(t(),s("p",Oe,r(l.value.title),
11)):o("",!0),l.value.content?(t(),s("p",{key:1,class:"rodo-content",innerHTML:l.value.content},null,8,qe)):o("",!0)])):o("",!0),v.value?(t(),z($,{key:5,class:"return-button",to:{name:"career",params:{lang:L.value}}},{default:R(()=>[_[0]||(_[0]=e("span",{class:"arrow"},"â",-1)),T(" "+r(v.value),1)]),_:1},8,["to"])):o("",!0)])}}},Ve=A(Ie,[["__scopeId","data-v-7d8b2887"]]),ze={key:0,class:"icon-bg-1"},Ne=["src"],Ae={class:"special-offer"},De=["innerHTML"],Re={class:"job-details-grid"},Fe={key:0,class:"column"},Je={class:"job-tasks"},Ee={class:"job-section-heading"},Ue={class:"job-section-heading-wrapper"},Ke={key:0,class:"job-tasks-subheading"},Pe=["innerHTML"],Ge={key:1,class:"column"},Qe={class:"job-expectation"},Xe={class:"job-section-heading"},Ye={class:"job-section-heading-wrapper"},Ze=["innerHTML"],et={class:"column"},tt={key:0,class:"nice-to-have"},st={class:"job-section-heading"},at={class:"job-section-heading-wrapper"},nt=["innerHTML"],ot={key:1,class:"job-offer"},lt={class:"job-section-heading"},it={class:"job-section-heading-wrapper"},rt=["innerHTML"],ct={key:0,class:"application-full"},ut={class:"application-inner"},dt={key:0,class:"job-application-heading"},pt=["innerHTML"],_t={key:1,class:"job-application-email"},vt=["href"],ht={key:2,class:"apply-fallback-note"},bt={key:3,class:"rodo-box"},gt={key:0,class:"job-application-clause-label"},kt=["innerHTML"],ft="Szukamy doswiadczonego inżyniera, który:",mt={__name:"WithNiceToHaveOffer",props:{data:{type:Object,required:!0}},setup(b){const c=V(),n=b,L=a(()=>c.params.lang==="en"?"en":"pl"),x=a(()=>n.data.title||""),p=a(()=>n.data.background_image||""),i=a(()=>n.data.sections||{}),l=a(()=>S(n.data.tasks)),v=a(()=>S(n.data.expectations)),m=a(()=>S(n.data.offer)),g=a(()=>S(n.data.nice_to_have)),k=a(()=>i.value?.nice_to_have||"MiÅe widziane"),y=a(()=>n.data.email||""),u=a(()=>{const w=n.data.rodo||{};return{title:(w.title||"").trim(),content:(w.content||"").trim()}}),_=a(()=>n.data.button||""),$=a(()=>n.data.apply_button||"Aplikuj!"),H=a(()=>y.value?`mailto:${y.value}`:""),f=a(()=>L.value==="en"?`or send your CV to: ${y.value}`:`lub przeÅlij CV na adres: ${y.value}`),O=a(()=>(i.value?.tasks||"").trim()==="Kogo Szukamy");function S(w){return(w||[]).map(d=>typeof d=="string"?d:String(d?.text??"")).map(d=>d.replace(/\r?\n/g,"").replace(/ {2,}/g," ").trim()).filter(Boolean)}return(w,d)=>{const h=D("router-link");return t(),s(M,null,[p.value?(t(),s("div",ze,[e("img",{src:p.value,alt:"TÅo",class:"image"},null,8,Ne)])):o("",!0),e("main",Ae,[e("h2",{innerHTML:x.value},null,8,De),e("div",Re,[i.value.tasks||l.value.length?(t(),s("div",Fe,[e("div",Je,[e("h2",Ee,[e("span",Ue,[T(r(i.value.tasks)+" ",1),d[0]||(d[0]=e("span",{class:"job-section-arrow"},"â",-1))])]),O.value?(t(),s("h3",Ke,r(ft))):o("",!0),e("ul",null,[(t(!0),s(M,null,W(l.value,(B,j)=>(t(),s("li",{key:j,innerHTML:B},null,8,Pe))),128))])]),d[1]||(d[1]=e("div",{class:"unvisible-tile"},"B",-1))])):o("",!0),i.value.expectations||v.value.length?(t(),s("div",Ge,[e("div",Qe,[e("h2",Xe,[e("span",Ye,[T(r(i.value.expectations)+" ",1),d[2]||(d[2]=e("span",{class:"job-section-arrow"},"â",-1))])]),e("ul",null,[(t(!0),s(M,null,W(v.value,(B,j)=>(t(),s("li",{key:j,innerHTML:B},null,8,Ze))),128))])]),d[3]||(d[3]=e("div",{class:"unvisible-tile-2"},"D",-1))])):o("",!0),e("div",et,[g.value.length?(t(),s("div",tt,[e("h2",st,[e("span",at,[T(r(k.value)+" ",1),d[4]||(d[4]=e("span",{class:"job-section-arrow"},"â",-1))])]),e("ul",null,[(t(!0),s(M,null,W(g.value,(B,j)=>(t(),s("li",{key:j,innerHTML:B},null,8,nt))),128))])])):o("",!0),i.value.offer||m.value.length?(t(),s("div",ot,[e("h2",lt,[e("span",it,[T(r(i.value.offer)+" ",1),d[5]||(d[5]=e("span",{class:"job-section-arrow"},"â",-1))])]),e("ul",null,[(t(!0),s(M,null,W(m.value,(B,j)=>(t(),s("li",{key:j,innerHTML:B},null,8,rt))),128))])])):o("",!0)])]),y.value||u.value.title||u.value.content?(t(),s("section",ct,[e("div",ut,[i.value.application_heading?(t(),s("p",dt,[e("strong",{innerHTML:i.value.application_heading},null,8,pt)])):o("",!0),H.value?(t(),s("p",_t,[e("a",{href:H.value,class:"apply-button"},r($.value),9,vt)])):o("",!0),H.value?(t(),s("p",ht,r(f.value),1)):o("",!0),u.value.title||u.value.content?(t(),s("div",bt,[u.value.title?(t(),s("p",gt,r(u.value.title),
11)):o("",!0),u.value.content?(t(),s("blockquote",{key:1,class:"job-application-clause",innerHTML:u.value.content},null,8,kt)):o("",!0)])):o("",!0)])])):o("",!0),_.value?(t(),z(h,{key:1,class:"return-button",to:{name:"career",params:{lang:L.value}}},{default:R(()=>[d[6]||(d[6]=e("span",{class:"arrow"},"â",-1)),T(" "+r(_.value),1)]),_:1},8,["to"])):o("",!0)])],64)}}},yt=A(mt,[["__scopeId","data-v-aec916f8"]]),$t={key:0,class:"icon-bg-1"},wt=["src"],jt={class:"special-offer"},Lt=["innerHTML"],Tt={class:"job-details-grid"},Ht={key:0,class:"left-col"},Mt={key:0,class:"who-we-seek"},xt={class:"job-section-heading"},St={class:"job-section-heading-wrapper"},Wt=["innerHTML"],Bt={key:1,class:"job-tasks"},Ct={class:"job-section-heading"},Ot={class:"job-section-heading-wrapper"},qt=["innerHTML"],It={class:"right-group"},Vt={class:"right-grid"},zt={key:0,class:"job-expectation"},Nt={class:"job-section-heading"},At={class:"job-section-heading-wrapper"},Dt=["innerHTML"],Rt={class:"right-stack"},Ft={key:0,class:"nice-to-have"},Jt={class:"job-section-heading"},Et={class:"job-section-heading-wrapper"},Ut=["innerHTML"],Kt={key:1,class:"job-offer"},Pt={class:"job-section-heading"},Gt={class:"job-section-heading-wrapper"},Qt=["innerHTML"],Xt={key:1,class:"application-full"},Yt={class:"application-inner"},Zt={key:0,class:"job-application-heading"},es=["innerHTML"],ts={key:1,class:"job-application-email"},ss=["href"],as={key:2,class:"apply-fallback-note"},ns={key:3,class:"rodo-box"},os={key:0,class:"job-application-clause-label"},ls=["innerHTML"],is={__name:"WithWhoWeSeek",props:{data:{type:Object,required:!0}},setup(b){const c=V(),n=b,L=a(()=>c.params.lang==="en"?"en":"pl"),x=a(()=>n.data.title||""),p=a(()=>n.data.background_image||""),i=a(()=>n.data.sections||{}),l=a(()=>w(n.data.who_we_seek)),v=a(()=>w(n.data.tasks)),m=a(()=>w(n.data.expectations)),g=a(()=>w(n.data.offer)),k=a(()=>(i.value?.who_we_seek||"Kogo Szukamy").trim()),y=a(()=>w(n.data.nice_to_have)),u=a(()=>(i.value?.nice_to_have||"MiÅe widziane").trim()),_=a(()=>n.data.email||""),$=a(()=>{const d=n.data.rodo||{};return{title:(d.title||"").trim(),content:(d.content||"").trim()}}),H=a(()=>n.data.button||""),f=a(()=>n.data.apply_button||"Aplikuj!"),O=a(()=>_.value?`mailto:${_.value}`:""),S=a(()=>L.value==="en"?`or send your CV to: ${_.value}`:`lub przeÅlij CV na adres: ${_.value}`);function w(d){return(d||[]).map(h=>typeof h=="string"?h:String(h?.text??"")).map(h=>h.replace(/\r?\n/g,"").replace(/ {2,}/g," ").trim()).filter(Boolean)}return(d,h)=>{const B=D("router-link");return t(),s(M,null,[p.value?(t(),s("div",$t,[e("img",{src:p.value,alt:"TÅo",class:"image"},null,8,wt)])):o("",!0),e("main",jt,[e("h2",{innerHTML:x.value},null,8,Lt),e("div",Tt,[l.value.length||v.value.length||i.value?.tasks||i.value?.who_we_seek?(t(),s("div",Ht,[l.value.length||k.value?(t(),s("section",Mt,[e("h2",xt,[e("span",St,[T(r(k.value)+" ",1),h[0]||(h[0]=e("span",{class:"job-section-arrow"},"â",-1))])]),e("ul",null,[(t(!0),s(M,null,W(l.value,(j,C)=>(t(),s("li",{key:C,innerHTML:j},null,8,Wt))),128))])])):o("",!0),i.value.tasks||v.value.length?(t(),s("section",Bt,[e("h2",Ct,[e("span",Ot,[T(r(i.value.tasks)+" ",1),h[1]||(h[1]=e("span",{class:"job-section-arrow"},"â",-1))])]),e("ul",null,[(t(!0),s(M,null,W(v.value,(j,C)=>(t(),s("li",{key:C,innerHTML:j},null,8,qt))),128))])])):o("",!0)])):o("",!0),e("div",It,[e("div",Vt,[i.value.expectations||m.value.length?(t(),s("section",zt,[e("h2",Nt,[e("span",At,[T(r(i.value.expectations)+" ",1),h[2]||(h[2]=e("span",{class:"job-section-arrow"},"â",-1))])]),e("ul",null,[(t(!0),s(M,null,W(m.value,(j,C)=>(t(),s("li",{key:C,innerHTML:j},null,8,Dt))),128))])])):o("",!0),e("div",Rt,[u.value||y.value.length?(t(),s("section",Ft,[e("h2",Jt,[e("span",Et,[T(r(u.value)+" ",1),h[3]||(h[3]=e("span",{class:"job-section-arrow"},"â",-1))])]),e("ul",null,[(t(!0),s(M,null,W(y.value,(j,C)=>(t(),s("li",{key:C,innerHTML:j},null,8,Ut))),128))])])):o("",!0),i.value.offer||g.value.length?(t(),s("section",Kt,[e("h2",Pt,[e("span",Gt,[T(r(i.value.offer)+" ",1),h[4]||(h[4]=e("span",{class:"job-section-arrow"},"â",-1))])]),e("ul",null,[(t(!0),s(M,null,W(g.value,(j,C)=>(t(),s("li",{key:C,innerHTML:j},null,8,Qt))),128))])])):o("",!0)]),_.value||$.value.title||$.value.content?(t(),s("section",Xt,[e("div",Yt,[i.value.application_heading?(t(),s("p",Zt,[e("strong",{innerHTML:i.value.application_heading},null,8,es)])):o("",!0),O.value?(t(),s("p",ts,[e("a",{href:O.value,class:"apply-button"},r(f.value),9,ss)])):o("",!0),O.value?(t(),s("p",as,r(S.value),1)):o("",!0),$.value.title||$.value.content?(t(),s("div",ns,[$.value.title?(t(),s("p",os,r($.value.title),
11)):o("",!0),$.value.content?(t(),s("blockquote",{key:1,class:"job-application-clause",innerHTML:$.value.content},null,8,ls)):o("",!0)])):o("",!0)])])):o("",!0)])])]),H.value?(t(),z(B,{key:0,class:"return-button",to:{name:"career",params:{lang:L.value}}},{default:R(()=>[h[5]||(h[5]=e("span",{class:"arrow"},"â",-1)),T(" "+r(H.value),1)]),_:1},8,["to"])):o("",!0)])],64)}}},rs=A(is,[["__scopeId","data-v-9065fb85"]]),U="https://www.payarto.com";function cs(b){const c=b?.url||b?.data?.attributes?.url||"";return c?c.startsWith("http")?c:c.startsWith("/uploads")?`${U}${c}`:c:""}const q=b=>b?String(b).replace(/^['"]+|['"]+$/g,""):"",I=b=>(b||[]).map(c=>typeof c=="string"?c:String(c?.text??"")).map(c=>c.replace(/\s+/g," ").trim()).filter(Boolean);async function E(b,c="pl"){const n=`${U}/api/carrer-offers`,L=`?locale=${encodeURIComponent(c)}&filters[slug][$eq]=${encodeURIComponent(b)}&populate[background_image]=true&populate[sections]=true&populate[tasks]=true&populate[expectations]=true&populate[offer]=true&populate[rodo_box]=true&populate[nice_to_have]=true&populate[who_we_seek]=true`,x=await fetch(n+L,{headers:{Accept:"application/json"}});if(!x.ok)throw new Error(`JobOfferBySlug ${x.status}`);const p=(await x.json())?.data,i=Array.isArray(p)?p[0]:null;if(!i)throw new Error(`JobOffer '${b}' not found`);const l=i?.attributes??i??{},v=l?.type||"standard",m=v==="with_nice_to_have",g=v==="with_who_we_seek",k={tasks:q(l?.sections?.tasks||""),who_we_seek:q(l?.sections?.who_we_seek||""),expectations:q(l?.sections?.expectations||""),offer:q(l?.sections?.offer||""),application_heading:q(l?.sections?.application_heading||""),nice_to_have:q(l?.sections?.nice_to_have||"")};return{type:v,slug:l?.slug||"",title:String(l?.title||""),email:String(l?.email||""),apply_button:String(l?.apply_button||""),button:String(l?.button||""),background_image:cs(l?.background_image),description:String(l?.description_spontaneous||l?.description||""),rodo:{title:q(l?.rodo_box?.title||""),content:String(l?.rodo_box?.rodo||"")},sections:k,tasks:I(l?.tasks),expectations:I(l?.expectations),offer:I(l?.offer),nice_to_have:m||g?I(l?.nice_to_have):[],who_we_seek:g?I(l?.who_we_seek):[]}}const us={key:0},ds={key:1},_s={__name:"OfferDetailsView",setup(b){const c=V(),n=G(),L=J("lang"),x=J("setLang",u=>{L&&(L.value=u)}),p=N(null),i=N(null),l=N(!1),v=N(null),m=a(()=>c.params.lang==="en"?"en":"pl");function g(u){return u==="spontaneous"?Ve:u==="with_nice_to_have"?yt:u==="with_who_we_seek"?rs:je}let k=0;async function y(){const u=++k;l.value=!0,v.value=null,p.value=null;try{const _=String(c.params.slug||""),$=m.value;let H=null;try{H=await E(_,$)}catch{H=null}if(!H&&$==="pl"){if(H=await E(_,"en"),u!==k)return;x("en");try{localStorage.setItem("lang","en")}catch{}await n.replace({name:c.name,params:{...c.params,lang:"en"},query:c.query,hash:c.hash})}if(u!==k)return;if(!H)throw new Error(`Offer '${_}' not found in any locale`);p.value=H,i.value=g(H.type)}catch(_){if(u!==k)return;console.error("[OfferDetailsView] load error",_),v.value="Nie udaÅo siÄ zaÅadowaÄ ogÅoszenia."}finally{u===k&&(l.value=!1)}}return K(y),F(()=>c.params.lang,y),F(()=>c.params.slug,y),(u,_)=>l.value?(t(),s("div",us,"Åadowanieâ¦")):v.value?(t(),s("div",ds,r(v.value),1)):(t(),z(P(i.value),{key:2,data:p.value},null,8,["data"]))}};export{_s 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.