1import{a as e}from"./B69vJRmp.js";import{R as t,S as n,St as r,V as i,W as a,Wt as o,b as s,d as c,f as l,m as u,mt as d,p as f,r as p,rt as m,u as h}from"./Cb8twsq3.js";import{t as g}from"./DcSpuYlc.js";import{t as _}from"./BlMw-eRi.js";import{t as v}from"./CcZLZr5y.js";import{o as y,u as b}from"#entry";import{t as x}from"./wECDjBfu.js";import{t as S}from"./Dt7IilO-.js";import{t as C}from"./MzIpL8XN.js";var w={class:`sb-career-teaser-job-cards`},T=[`innerHTML`],E={class:`sb-career-teaser-job-cards-grid`},D={key:1,class:`sb-career-teaser-job-cards-loading`},O={key:2},k={class:`sb-career-teaser-job-cards-listview-button`},A=Object.assign(n({__name:`CareerTeaser`,props:{blok:{}},setup(n){let A=_(),j=n,M=j.blok.countryFilter??``,N=j.blok.jobFamilyFilter??``,P=h(()=>y(j.blok.headerJobCards)),F=j.blok.showAllJobsLink,I=d(!1),L=d({}),R=d(!1);t(()=>{z()});let z=async()=>{R.value=!1,I.value=!0;let t=[];M!==``&&t.push({key:`country_stringS`,value:M}),N!==``&&t.push({key:`entryLevel_stringS`,value:N}),await g(`/api/workday`,{method:`POST`,body:{page:1,pageCount:j.blok.maxJobCards??4,filters:t,sort:`postStartDate_stringS desc`,currentLocale:A.currentLocale}}).then(e=>{L.value=e.response}).catch(t=>{console.error(`careers-list`,t),e(t,{level:`error`,tags:{source:`career-teaser-fetch`}})}),I.value=!1,R.value=!0};return(e,t)=>{let d=C,h=S,g=x,_=v;return i(),u(p,null,[s(d,{blok:n.blok},null,8,[`blok`]),c(`div`,w,[r(P)?(i(),u(`div`,{key:0,class:`sb-career-teaser-job-cards-headline`,innerHTML:r(P)},null,8,T)):f(``,!0),c(`div`,null,[c(`div`,E,[(i(!0),u(p,null,a(L.value.docs,e=>(i(),l(h,{key:e.id,item:e},null,8,[`item`]))),128))])]),I.value?(i(),u(`div`,D,[s(g,{"show-spinner":I.value,size:`lg`,"has-dark-background":!1},null,8,[`show-spinner`])])):f(``,!0),R.value&&L.value?.numFound===0?(i(),u(`div`,O,[c(`p`,null,o(e.$t(`components.career.teaser.no-jobs-found`)),1)])):f(``,!0),c(`div`,k,[s(_,{color:`secondary`,variant:`link`,label:e.$t(`components.career.teaser.button.show-all`),ui:{variant:{link:`decoration-green-500 decoration-2`}},to:(`linkToUrl`in e?e.linkToUrl:r(b))(r(F))},{trailing:m(()=>[...t[0]||=[c(`div`,{class:`icon icon-arrow-head-right`},null,-1)]]),_:1},8,[`label`,`to`])])])],64)}}}),{__name:`CareerTeaser`});export{A 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.