1import{d as q,R as y,b as j,Z as _,T as x,o as M,c as e,m as k,f as z,O as L,r as n}from"./index-BWMC8nQi.js";const R=q({name:"CclJobList",components:{CclComponentWrapper:x,MaButton:_,MaSkeleton:j,MaIcon:y},props:{entryId:String,headline:String},setup(a,{attrs:S}){const r=n(!1),d=n([]),s=n(!1),i=n(null);M(()=>{r.value=window.innerWidth<768,window.addEventListener("resize",()=>{r.value=window.innerWidth<768}),w()});const w=async()=>{s.value=!0,i.value=null;try{const t=await(await fetch("https://meinauto-de.jobs.personio.de/xml")).text(),o=new DOMParser().parseFromString(t,"text/xml").querySelectorAll("position");d.value=Array.from(o).map(l=>{var c,u,v,m,p,b,f,h;return{id:((c=l.querySelector("id"))==null?void 0:c.textContent)||void 0,title:((u=l.querySelector("name"))==null?void 0:u.textContent)||void 0,department:((v=l.querySelector("department"))==null?void 0:v.textContent)||void 0,office:((m=l.querySelector("office"))==null?void 0:m.textContent)||void 0,employmentType:((p=l.querySelector("employmentType"))==null?void 0:p.textContent)||void 0,schedule:((b=l.querySelector("schedule"))==null?void 0:b.textContent)||void 0,description:((f=l.querySelector("description"))==null?void 0:f.textContent)||void 0,seniorityLevel:((h=l.querySelector("seniorityLevel"))==null?void 0:h.textContent)||void 0}})}catch(t){console.error("Error fetching jobs:",t),i.value=t}finally{s.value=!1}},C=t=>{if(t)return e("h3",{class:"ccl-joblist__headline"},[t])},g=t=>e("div",{class:"ccl-joblist__joblist"},[e("ul",null,[t.map(o=>e("li",{key:o.id,class:["ccl-joblist__joblist-item",{"ccl-joblist__joblist-item--mobile":r.value}]},[e("div",{class:"ccl-joblist__joblist-item-title"},[e("a",{href:`https://meinauto-de.jobs.personio.de/job/${o.id}`,target:"_blank"},[o.title])]),e("div",{class:"ccl-joblist__joblist-item-office"},[e(y,{iconClass:"icon-map-pin",size:"xs","aria-hidden":"true"},null),o.office]),e("div",{class:"ccl-joblist__joblist-item-button"},[e(_,{text:"Bewerben",size:"sm",target:"_blank",href:`https://meinauto-de.jobs.personio.de/job/${o.id}`},null)])]))])]);return()=>e(x,k({contentModelValidation:L(R.name)},z({...S,...a})),{default:()=>{if(s.value)return e(j,{width:"100%",height:"100vh",borderRadius:".5rem"},null);if(i.value){console.warn(i);return}return e("div",{class:"ccl-joblist"},[e("div",{class:["ma-grid","ma-relative"]},[C(a.headline),g(d.value)])])}})}});export{R 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.