1import{v as D,D as C,w as W,F as X,a as S,j as B,_ as E,l as Y,k as tt,p as et}from"./CZuL13tX.js";import{u as st}from"./CwzJgSp7.js";import{n as L,a4 as r,B as p,a7 as a,u as s,ab as w,ac as f,aa as q,a5 as y,ai as I,M as g,q as i,a9 as j,L as F,ad as T,a6 as M}from"./DFsHQQM9.js";import{_ as nt}from"./Bu5Gt-qF.js";import{c as ot}from"./DZCir7w9.js";import{u as at}from"./DY2MwOS8.js";import{u as rt}from"./BppQFsXP.js";import"./C9uadrci.js";import"./TS4IpSFE.js";import"./D7-VLWXr.js";import"./CUZ8X7di.js";const it={class:"press-release--item"},ct={class:"box--padding box--column tw-rounded-12 tw-relative tw-items-start tw-border-1/2 tw-border-default"},lt={key:0,class:"press--date tw-font-medium tw-mb-2"},ut={key:2,class:"tw-mt-2"},U=L({__name:"ReleaseBox",props:{sysId:{},title:{},shortDescription:{},slug:{},publishDate:{}},setup(e){const{t}=D({useScope:"local"}),{date:l}=st(),u=C();return(h,n)=>{const c=S,x=W,m=X;return r(),p("div",it,[a("div",ct,[a("div",null,[s(l)(e.publishDate)?(r(),p("div",lt,w(s(l)(e.publishDate)),1)):f("",!0),e.title?(r(),q(c,{key:1,class:"type-heading-xs-semibold",to:s(u)({name:"press-pressReleases-slug",params:{slug:e.slug}}),title:e.title},{default:y(()=>[I(w(e.title),1)]),_:1},8,["to","title"])):f("",!0),e.shortDescription?(r(),p("p",ut,w(e.shortDescription),1)):f("",!0)]),g(x,{variant:"secondary",href:s(u)({name:"press-pressReleases-slug",params:{slug:e.slug}}),title:e.title,class:"tw-w-full xs:tw-w-auto tw-mt-8 sm:tw-mt-9 lg:tw-mt-10"},{default:y(()=>[I(w(s(t)("readMore")),1)]),_:1},8,["href","title"]),g(m,{sysId:e.sysId},null,8,["sysId"])])])}}});function z(e){const t=e;t.__i18n=t.__i18n||[],t.__i18n.push({locale:"",resource:{en:{readMore:{t:0,b:{t:2,i:[{t:3}],s:"Read more"}}},de:{readMore:{t:0,b:{t:2,i:[{t:3}],s:"Mehr lesen"}}},it:{readMore:{t:0,b:{t:2,i:[{t:3}],s:"Leggi di più"}}},nl:{readMore:{t:0,b:{t:2,i:[{t:3}],s:"Lees meer"}}},fr:{readMore:{t:0,b:{t:2,i:[{t:3}],s:"Lire la suite"}}}}})}typeof z=="function"&&z(U);const dt=Object.assign(U,{__name:"PressReleaseBox"}),J=L({__name:"PreviousPage",props:{currentPage:{default:1},urlName:{default:""},hash:{}},setup(e){const t=e,l=B(),{t:u}=D({useScope:"local"}),h=C(),n=i(()=>{if(t.currentPage!==1)return t.currentPage-1}),c=i(()=>({...l.query,page:n.value}));return(x,m)=>{const _=E,b=S;return e.currentPage!==1?(r(),q(b,{key:0,class:"type-body-sm tw-font-medium tw-flex tw-items-center tw-gap-2 tw-px-2 tw-py-1 tw-leading-5 tw-rounded-8 tw-cursor-pointer hover:tw-bg-interaction-plain-hover tw-duration-200 tw-ease-in-out corner-squircle",to:s(h)({name:e.urlName,query:s(c),hash:e.hash})},{default:y(()=>[g(_,{name:"ChevronRight",size:12,type:"solid",svgClass:"-tw-scale-x-100"}),a("span",null,w(s(u)("back")),1)]),_:1},8,["to"])):f("",!0)}}});function A(e){const t=e;t.__i18n=t.__i18n||[],t.__i18n.push({locale:"",resource:{en:{back:{t:0,b:{t:2,i:[{t:3}],s:"Back"}}},de:{back:{t:0,b:{t:2,i:[{t:3}],s:"Zurück"}}},it:{back:{t:0,b:{t:2,i:[{t:3}],s:"Indietro"}}},nl:{back:{t:0,b:{t:2,i:[{t:3}],s:"Vorige"}}},fr:{back:{t:0,b:{t:2,i:[{t:3}],s:"Retour"}}}}})}typeof A=="function"&&A(J);const mt=Object.assign(J,{__name:"PaginationPreviousPage"}),Q=L({__name:"NextPage",props:{totalPages:{default:0},currentPage:{default:1},urlName:{default:""},hash:{}},setup(e){const t=e,l=B(),{t:u}=D({useScope:"local"}),h=C(),n=i(()=>t.currentPage+1),c=i(()=>({...l.query,page:n.value}));return(x,m)=>{const _=E,b=S;return e.currentPage!==e.totalPages?(r(),q(b,{key:0,class:"type-body-sm tw-font-medium tw-flex tw-items-center tw-gap-2 tw-px-2 tw-py-1 tw-leading-5 tw-rounded-8 tw-cursor-pointer hover:tw-bg-interaction-plain-hover tw-duration-200 tw-ease-in-out corner-squircle",to:s(h)({name:e.urlName,query:s(c),hash:e.hash})},{default:y(()=>[a("span",null,w(s(u)("next")),1),g(_,{name:"ChevronRight",size:12,type:"solid"})]),_:1},8,["to"])):f("",!0)}}});function H(e){const t=e;t.__i18n=t.__i18n||[],t.__i18n.push({locale:"",resource:{en:{next:{t:0,b:{t:2,i:[{t:3}],s:"Next"}}},de:{next:{t:0,b:{t:2,i:[{t:3}],s:"Vor"}}},it:{next:{t:0,b:{t:2,i:[{t:3}],s:"Avanti"}}},nl:{next:{t:0,b:{t:2,i:[{t:3}],s:"Volgende"}}},fr:{next:{t:0,b:{t:2,i:[{t:3}],s:"Suivant"}}}}})}typeof H=="function"&&H(Q);const pt=Object.assign(Q,{__name:"PaginationNextPage"}),wt={class:"tw-flex tw-justify-start tw-gap-x-3 tw-font-medium","data-markdown-omit":""},gt={key:0,class:"tw-flex tw-gap-x-0.5"},ht={key:0,class:"type-body-sm tw-font-medium tw-min-w-[30px] tw-min-h-[30px] tw-px-[5px] tw-py-1"},_t={key:1,class:"type-body-sm tw-font-medium tw-min-w-[30px] tw-min-h-[30px] tw-px-[5px] tw-py-1"},bt=L({__name:"Paginator",props:{totalPages:{},currentPage:{default:1},urlName:{},range:{default:3},hash:{}},setup(e){const t=e,l=B(),u=C(),h=i(()=>t.totalPages.length>1),n=i(()=>typeof t.currentPage=="string"?Number.parseInt(t.currentPage):t.currentPage),c=i(()=>t.totalPages.length),x=i(()=>n.value+t.range<c.value),m=i(()=>n.value-t.range>1),_=i(()=>{let v=[];return v=t.totalPages.filter(d=>d>n.value-t.range&&d<n.value+t.range&&d!==1&&d!==c.value),v});function b(v){return{name:t.urlName,query:{...l.query,...v&&{page:v}},hash:t.hash||void 0}}return(v,d)=>{const P=mt,N=S,R=pt;return r(),p("div",wt,[g(P,{currentPage:s(n),hash:e.hash,urlName:e.urlName},null,8,["currentPage","hash","urlName"]),s(h)?(r(),p("div",gt,[g(N,{to:s(u)(b(1)),class:j(["type-body-sm tw-font-medium tw-text-center tw-min-w-[30px] tw-min-h-[30px] tw-px-[5px] tw-py-1 tw-leading-5 tw-rounded-8 tw-cursor-pointer tw-tabular-nums tw-duration-200 tw-ease-in-out corner-squircle",{"!tw-text-inverse-strong hover:!tw-text-inverse-strong focus-visible:!tw-text-inverse-strong active:!tw-text-inverse-strong tw-bg-interaction-tertiary-rest hover:tw-bg-interaction-tertiary-hover focus-visible:tw-bg-interaction-tertiary-pressed active:tw-bg-interaction-tertiary-pressed":s(n)===1,"hover:tw-bg-interaction-plain-hover":s(n)!==1}])},{default:y(()=>[...d[0]||(d[0]=[I(" 1 ",-1)])]),_:1},8,["to","class"]),s(m)?(r(),p("span",ht," ⦠")):f("",!0),(r(!0),p(F,null,T(s(_),o=>(r(),q(N,{key:o,to:s(u)(b(o)),class:j(["type-body-sm tw-font-medium tw-text-center tw-min-w-[30px] tw-min-h-[30px] tw-px-[5px] tw-py-1 tw-leading-5 tw-rounded-8 tw-cursor-pointer tw-tabular-nums tw-duration-200 tw-ease-in-out corner-squircle",{"!tw-text-inverse-strong hover:!tw-text-inverse-strong focus-visible:!tw-text-inverse-strong active:!tw-text-inverse-strong tw-bg-interaction-tertiary-rest hover:tw-bg-interaction-tertiary-hover focus-visible:tw-bg-interaction-tertiary-pressed active:tw-bg-interaction-tertiary-pressed":s(n)===o,"hover:tw-bg-interaction-plain-hover":s(n)!==o}])},{default:y(()=>[I(w(o),1)]),_:2},1032,["to","class"]))),128)),s(x)?(r(),p("span",_t," ⦠")):f("",!0),g(N,{to:s(u)(b(s(c))),class:j(["type-body-sm tw-font-medium tw-text-center tw-min-w-[30px] tw-min-h-[30px] tw-px-[5px] tw-py-1 tw-leading-5 tw-rounded-8 tw-cursor-pointer tw-tabular-nums tw-duration-200 tw-ease-in-out corner-squircle",{"!tw-text-inverse-strong hover:!tw-text-inverse-strong focus-visible:!tw-text-inverse-strong active:!tw-text-inverse-strong tw-bg-interaction-tertiary-rest hover:tw-bg-interaction-tertiary-hover focus-visible:tw-bg-interaction-tertiary-pressed active:tw-bg-interaction-tertiary-pressed":s(n)===s(c),"hover:tw-bg-interaction-plain-hover":s(n)!==s(c)}])},{default:y(()=>[I(w(s(c)),1)]),_:1},8,["to","class"]),g(R,{currentPage:s(n),totalPages:e.totalPages?.length??0,hash:e.hash,urlName:e.urlName}
1,null,8,["currentPage","totalPages","hash","urlName"])])):f("",!0)])}}}),vt=Object.assign(bt,{__name:"Paginator"}),ft={class:"tw-bg-surface-subtle title"},xt={class:"section--inner"},yt={class:"row tw-justify-center"},Pt={class:"col col-12 col-s-9 col-m-7 tw-text-center"},kt={class:"col-inner"},Nt={class:"type-heading-lg"},$t={class:"tw-mt-4 sm:tw-mt-5"},It={class:"tw-bg-surface-subtle tw-pt-0"},Ct={class:"section--inner"},Lt={class:"row"},qt={class:"row"},Dt={class:"col col-12"},St=L({__name:"index",async setup(e){let t,l;const u=C(),{seoTitle:h,seoDescription:n,metaData:c}=([t,l]=M(()=>at("06417d32-a23e-4eb0-ad53-27c1f3ba1031")),t=await t,l(),t);Y({title:h,meta:c});const x=B(),m=i(()=>{const o=x.query.page;return Number.parseInt(o)||1}),{t:_}=D({useScope:"local"}),{isoCode:b,publishedLocales:v,localeCode:d}=tt(),{data:P}=([t,l]=M(async()=>et(`press-releases-${d.value}-${m.value}`,async()=>await $fetch(`/api/contentful/press-releases/${d.value}/general`,{query:{isoCode:b.value,publishedLocales:v.value,page:m.value}}),{watch:[d,m]})),t=await t,l(),t),N=i(()=>{const o=[],V=P.value?.totalItems||0;for(let $=1;$<V/20;$++)o.push($);return V%20!==0&&o.push(o.length+1),o}),R=i(()=>(P.value?.pressReleases??[]).filter(o=>o.fields?.slug).map(o=>({name:o.fields.title,url:ot(u({name:"press-pressReleases-slug",params:{slug:o.fields.slug}}))})));return rt({seoTitle:h,seoDescription:n,sectionName:i(()=>_("intro.header")),items:R,totalItems:i(()=>P.value?.totalItems)}),(o,V)=>{const $=dt,Z=vt,G=nt;return r(),p("div",null,[a("section",ft,[a("div",xt,[a("div",yt,[a("div",Pt,[a("div",kt,[a("h1",Nt,w(s(_)("intro.header")),1),a("p",$t,w(s(_)("intro.description")),1)])])])])]),a("section",It,[a("div",Ct,[a("div",Lt,[(r(!0),p(F,null,T(s(P)?.pressReleases,(k,K)=>(r(),q($,{key:K,class:"col col-12 col-m-6",sysId:k?.sys?.id,title:k.fields.title,shortDescription:k.fields.shortDescription,articleLink:k.fields.slug,slug:k.fields.slug,publishDate:k.fields.publishDate},null,8,["sysId","title","shortDescription","articleLink","slug","publishDate"]))),128))]),a("div",qt,[a("div",Dt,[g(Z,{totalPages:s(N),currentPage:s(m)},null,8,["totalPages","currentPage"])])])])]),g(G)])}}});function O(e){const t=e;t.__i18n=t.__i18n||[],t.__i18n.push({locale:"",resource:{en:{intro:{header:{t:0,b:{t:2,i:[{t:3}],s:"Press releases"}},description:{t:0,b:{t:2,i:[{t:3}],s:"Here you will find the latest information about Shopware and details about all innovations relating to the Shopware universe."}}}},de:{intro:{header:{t:0,b:{t:2,i:[{t:3}],s:"Pressemitteilungen"}},description:{t:0,b:{t:2,i:[{t:3}],s:"Hier erhältst du regelmäÃig die aktuellsten Informationen über Shopware und wirst über alle Neuerungen rund um das Shopware-Universum ausführlich informiert."}}}},it:{intro:{header:{t:0,b:{t:2,i:[{t:3}],s:"Comunicati stampa"}},description:{t:0,b:{t:2,i:[{t:3}],s:"Qui troverete le ultime notizie su Shopware e i dettagli su tutte le novità relative all'universo Shopware."}}}},nl:{intro:{header:{t:0,b:{t:2,i:[{t:3}],s:"Persberichten"}},description:{t:0,b:{t:2,i:[{t:3}],s:"Hier vind je de meest recente informatie over Shopware en details over alle innovaties binnen het Shopware-universum."}}}},fr:{intro:{header:{t:0,b:{t:2,i:[{t:3}],s:"Communiqués de presse"}},description:{t:0,b:{t:2,i:[{t:3}],s:"Vous trouverez ici les dernières informations concernant Shopware ainsi que des détails sur toutes les nouveautés relatives à l'univers Shopware."}}}}}})}typeof O=="function"&&O(St);export{St 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.