PageSourceSearch

https://www.shopware.com/_nuxt/aBAtrSgN.js

js shopware.com collected 2026-09-24 07:50:58 UTC 12,584 bytes, 1 lines download raw bytes

1import{a as vt,_ as kt,C as Lt}from"./SaFOBlFB.js";import{j as M,k as Y,l as R,C as At,v as Tt,m as Nt,D as Bt,o as It,n as $,E as Pt,q as jt,w as Dt,e as Et,f as St,F as $t,r as Ct,a as qt,h as Rt}from"./CZuL13tX.js";import{_ as Mt}from"./DvnNKgaI.js";import{_ as Ot}from"./CAzJF14d.js";import{R as Ft}from"./C9uadrci.js";import{S as Ut,a as Gt,C as K,b as tt,H as V,c as Wt}from"./DZCir7w9.js";import{w as zt,d as N,ao as Ht,l as Vt,n as et,a6 as J,ah as Jt,u as e,a4 as o,B as l,a7 as r,a9 as Z,M as h,a5 as C,ab as u,ai as Q,ac as m,aa as q,ag as Zt,L as Qt,ad as Xt,q as _,k as Yt}from"./DFsHQQM9.js";import{u as Kt}from"./DY2MwOS8.js";import{u as te}from"./CwzJgSp7.js";import"./BHgPH2rx.js";import"./BsCZ9zce.js";import"./BppQFsXP.js";import"./TS4IpSFE.js";import"./D7-VLWXr.js";import"./CUZ8X7di.js";const ee=1200,se=630;function ne(s){const t=s?.fields?.file?.url;if(t)return t.startsWith("//")?`https:${t}`:t}function ie(s){const t=s?.fields?.file?.details,n=t&&"image"in t?t.image:void 0;return{width:n?.width??ee,height:n?.height??se}}function oe(s){return s.startsWith(K)?s.endsWith("/")?s:`${s}/`:tt(s)}function ae(s){if(typeof s.deviatingAuthors=="string"&&s.deviatingAuthors.trim())return s.deviatingAuthors.split(",").map(n=>n.trim()).filter(Boolean).map(n=>({"@type":"Person",name:n}));const t=s.authors;return!Array.isArray(t)||t.length===0?[]:t.map(n=>{const i=n?.fields?.firstName?.trim()??"",a=n?.fields?.lastName?.trim()??"",p=`${i} ${a}`.trim();return p?{"@type":"Person",name:p}:null}).filter(n=>n!==null)}function re(s,t,n,i){const a=V[t]??V.en;return{"@type":"BreadcrumbList","@id":`${s}#breadcrumb`,itemListElement:[{"@type":"ListItem",position:1,name:a,item:`${K}/${t}/`},{"@type":"ListItem",position:2,name:i.newsLabel,item:i.newsUrl},{"@type":"ListItem",position:3,name:n,item:s}]}}function le(s){const t=s.entry?.fields,n=typeof t?.title=="string"?t.title.trim():"";if(!n||!s.pageTitle.trim())return null;const i=oe(s.pageUrl),a=typeof t?.shortDescription=="string"&&t.shortDescription.trim()?t.shortDescription.trim():void 0,p=ne(t?.thumbnail),b=ie(t?.thumbnail),f=typeof t?.creationDate=="string"&&t.creationDate.trim()?t.creationDate.trim():void 0,j=typeof s.entry?.sys?.updatedAt=="string"&&s.entry.sys.updatedAt.trim()?s.entry.sys.updatedAt.trim():void 0,y=ae(t),k={"@type":"WebPage","@id":`${i}#webpage`,url:i,name:s.pageTitle.trim(),isPartOf:{"@id":Ut},breadcrumb:{"@id":`${i}#breadcrumb`},inLanguage:s.locale},x={"@type":"NewsArticle","@id":`${i}#article`,headline:n,description:a,datePublished:f,dateModified:j??f,publisher:{"@id":Gt},mainEntityOfPage:{"@id":`${i}#webpage`}};y.length===1?x.author=y[0]:y.length>1&&(x.author=y);const L=[k,x];return p&&(k.primaryImageOfPage={"@id":`${i}#primaryimage`},x.image={"@id":`${i}#primaryimage`},L.push({"@type":"ImageObject","@id":`${i}#primaryimage`,url:p,width:b.width,height:b.height})),L.push(re(i,s.locale,n,s.breadcrumb)),{"@context":"https://schema.org","@graph":L}}const ce=/</g;function de(s,t,n){const i=N(s.entry);return!i||N(s.enabled)===!1?null:le({entry:i,pageUrl:t,locale:n,pageTitle:N(s.seoTitle),breadcrumb:N(s.breadcrumb)})}function ue(s){const t=M(),{localeCode:n}=Y(),i=Vt(null);return zt(()=>{const a=N(s.pageUrl)??tt(t.path);i.value=de(s,a,n.value)}),R(()=>i.value?{script:[{key:"blog-post-json-ld",type:"application/ld+json",innerHTML:JSON.stringify(i.value).replace(ce,"\\u003c")}]}:{script:[]}),{jsonLdSchema:Ht(i)}}const me={key:0,class:"blog--detail tw-relative"},pe={class:"has--background-white xs:!tw-pt-5"},we={class:"section--inner"},he={class:"row tw-justify-center"},_e={class:"col col-12"},be={id:"content",class:"tw-col-span-2"},ge={class:"header xs:tw-mb-10 tw-mb-5 tw-pb-5 tw-border-b tw-border-b-default"},fe={key:0,class:"reading-time :tw-text-base tw-text-sm tw-mb-2.5 tw-text-subtle"},ye={key:0},xe={key:1},ve={class:"headline type-heading-md",itemprop:"headline"},ke={class:"row metadata tw-mt-4"},Le=["content"],Ae={key:1,class:"tw-inline-block tw-mx-1 tw-text-sm tw-font-medium sm:tw-text-base tw-text-subtle"},Te={key:2,class:"authors tw-text-sm tw-font-medium sm:tw-text-base tw-text-subtle",itemprop:"author"},Ne={key:3,class:"authors tw-text-sm tw-font-medium sm:tw-text-base tw-text-subtle",itemprop:"author"},Be={key:0,class:"img--holder tw-mb-8 tw-object-cover tw-overflow-hidden"},Ie={key:1},Pe={key:1,id:"recommended-articles",class:"tw-col-span-2"},je={class:"lg:tw-text-lg tw-font-bold"},De={class:"tw-mt-2.5"},Ee={key:0,id:"newsletter",class:"tw-bg-container-brand-subtle section--xl"},Se={class:"section--inner"},$e={class:"row tw-justify-center"},Ce={class:"col col-12"},st=et({__name:"DetailStage",async setup(s){let t,n;const{$md:i}=At(),{t:a}=Tt({useScope:"local"}),{isoCode:p,localeCode:b}=Y(),{addSlugData:f,clearCurrent:j,isBlog:y}=Nt(),k=Bt(),x=M(),L=_(()=>x.params.slug),{data:c,error:O}=([t,n]=J(()=>It(`/api/contentful/news/${b.value}/detail/${L.value}`,{query:{isoCode:p.value}},"$GFQFIdjfA8")),t=await t,n(),t);
1if(c.value&&typeof c.value=="object"&&"ok"in c.value&&c.value.ok===!1)throw $({status:404,statusText:"NewsNotFound"});if(O.value)throw $({status:O.value.statusCode||404,statusText:"NewsNotFound"});if(!c.value||!c.value.sys)throw $({status:404,statusText:"NewsNotFound"});c.value.sys&&f(c.value.sys,"news");const d=c.value.entry.fields,nt=c.value.entry.fields.seo,{seoTitle:F,metaData:it}=([t,n]=J(()=>Kt(nt??"f47ac6a1-b0a7-451f-90af-35c66d279eed")),t=await t,n(),t);R({title:F,meta:it});const ot=_(()=>c.value?.entry),at=_(()=>({newsLabel:a("jsonLd.breadcrumb.news"),newsUrl:Wt(k({name:"news"}))}));ue({entry:ot,seoTitle:F,breadcrumb:at});const rt=/\s+/,lt=w=>w.trim().split(rt)?.length??0;function ct(w){const v=w*.45/60;return Math.ceil(v)}const U=d.authors,D=d.deviatingAuthors,A=d.title;let B,G;d.description&&(B={nodeType:"document",content:d.description.content},G=B.content?.length>0);const{date:dt}=te(),W=Yt(null),ut=d.descriptionInMarkdown||"",I=dt(d.creationDate),z=d.thumbnail?.fields.file,H=d.recommendedArticles,g=d.displayInFocusMode,E=_(()=>{const w=lt(W.value?.textContent||"");return ct(w)}),S=_(()=>{const w=new Intl.ListFormat(b.value,{style:"long",type:"conjunction"});if(U?.length>0){const P=[];return U.forEach(v=>P.push(`${v.fields.firstName} ${v.fields.lastName}`)),w.format(P)}else return""}),mt=_(()=>E.value===1);R({meta:[{property:"og:site_name",content:"Shopware's Blog - Ecommerce News"}]});function pt(){return{...Ct({contentfulPicture:{imageClass:"content--image tw-w-full",sources:[{width:1190,quality:90,media:"(min-width: 1024px)",type:"webp"},{width:1190,quality:80,media:"(min-width: 1024px)",type:"jpg"},{width:668,quality:90,media:"(min-width: 480px)",type:"webp"},{width:668,quality:80,media:"(min-width: 480px)",type:"jpg"},{width:400,quality:90,type:"webp"},{width:400,quality:80,type:"jpg"}]}})}}return A===""&&B===""&&Pt("/news/",{}),jt(()=>{j(),y.value=!1}),(w,P)=>{const v=Dt,wt=Mt,ht=Et,_t=St,bt=vt,gt=qt,ft=Ot,yt=$t,xt=Jt("dompurify-html");return e(c)?(o(),l("div",me,[r("section",pe,[r("div",we,[r("div",he,[r("div",_e,[r("div",{class:Z({"tw-grid tw-grid-cols-1 tn:tw-grid-cols-2 lg:tw-grid-cols-3 tw-gap-x-6 lg:tw-gap-x-10 tw-gap-y-8 tn:tw-gap-y-10":!e(g),"tw-max-w-[820px] tw-mx-auto":e(g)})},[r("div",{class:Z(["cta tw-flex",{"tw-col-start-1 -tw-col-end-1":!e(g),"tw-mb-6 sm:tw-mb-10":e(g)}])},[h(v,{variant:"plain",href:e(a)("back.href"),title:e(a)("back.name"),iconPrefix:"long-arrow",iconPrefixMirrored:!0},{default:C(()=>[r("span",null,u(e(a)("back.name")),1)]),_:1},8,["href","title"])],2),r("div",be,[r("div",ge,[e(E)?(o(),l("div",fe,[Q(u(e(E))+" ",1),e(mt)?(o(),l("span",ye,u(e(a)("readingTime.singular")),1)):(o(),l("span",xe,u(e(a)("readingTime.plural")),1))])):m("",!0),r("h1",ve,u(e(A)),1),r("div",ke,[e(I)?(o(),l("span",{key:0,class:"release-date tw-text-sm tw-font-medium sm:tw-text-base tw-text-subtle",itemprop:"datePublished",content:e(I)},u(e(I)),9,Le)):m("",!0),e(I)&&(e(D)||e(S))?(o(),l("span",Ae," - ")):m("",!0),e(D)?(o(),l("span",Te,u(e(D)),1)):e(S)?(o(),l("span",Ne,u(e(S)),1)):m("",!0),h(wt,{title:e(A),monochrome:!0,class:"blog--detail-share--items tw-w-full xs:tw-w-auto tw-mx-0 tw-mt-3 xs:tw-mt-0 xs:tw-ml-auto tw-text-sm tw-font-medium"},null,8,["title"])])]),r("div",{ref_key:"newsBody",ref:W,class:"body tw-block tw-relative tw-max-w-full tw-w-full md:tw-h-auto md:tw-min-h-[460px] tw-clear-both",itemprop:"articleBody"},[e(z)?(o(),l("div",Be,[h(ht,{imageSrc:e(z).url,imageAlt:e(A),imageClass:"thumbnail tw-w-full tw-rounded-8",lazyLoading:!1,sources:[{width:820,quality:90,media:"(min-width: 1024px)",type:"webp"},{width:820,quality:80,media:"(min-width: 1024px)",type:"jpg"},{width:964,quality:90,media:"(min-width: 768px)",type:"webp"},{width:964,quality:80,media:"(min-width: 768px)",type:"jpg"},{width:710,quality:90,media:"(min-width: 480px)",type:"webp"},{width:710,quality:80,media:"(min-width: 480px)",type:"jpg"},{width:430,quality:90,type:"webp"},{width:430,quality:80,type:"jpg"}]},null,8,["imageSrc","imageAlt"])])):m("",!0),h(_t,{class:"blog--detail-description"},{default:C(()=>[e(G)?(o(),q(e(Ft),{key:0,document:e(B),nodeRenderers:pt()},null,8,["document","nodeRenderers"])):Zt((o(),l("div",Ie,null,512)),[[xt,e
1(i).render(e(ut)),"embed"]])]),_:1})],512)]),e(g)?m("",!0):(o(),q(bt,{key:0,detail:""})),e(H)&&!e(g)?(o(),l("div",Pe,[r("h2",je,u(e(a)("recommendedArticles.title"))+": ",1),r("div",De,[r("ul",null,[(o(!0),l(Qt,null,Xt(e(H),T=>(o(),l("li",{key:T?.sys.id},[T?(o(),q(gt,{key:0,to:e(k)({name:"news-slug",params:{slug:T?.fields.slug}}),title:T.fields.title},{default:C(()=>[Q(" - "+u(T.fields.title),1)]),_:2},1032,["to","title"])):m("",!0)]))),128))])])])):m("",!0)],2)])])])]),e(g)?m("",!0):(o(),l("section",Ee,[r("div",Se,[r("div",$e,[r("div",Ce,[h(ft,{title:e(a)("newsletter.title"),description:e(a)("newsletter.desc")},null,8,["title","description"])])])])])),h(yt,{sysId:e(c)?.sys?.id,label:e(A)},null,8,["sysId","label"])])):m("",!0)}}});function X(s){const t=s;t.__i18n=t.__i18n||[],t.__i18n.push({locale:"",resource:{en:{back:{name:{t:0,b:{t:2,i:[{t:3}],s:"Back to the blog"}},href:{t:0,b:{t:2,i:[{t:3}],s:"/en/news/"}}},jsonLd:{breadcrumb:{news:{t:0,b:{t:2,i:[{t:3}],s:"News"}}}},readingTime:{singular:{t:0,b:{t:2,i:[{t:3}],s:"minute to read"}},plural:{t:0,b:{t:2,i:[{t:3}],s:"minutes to read"}}},recommendedArticles:{title:{t:0,b:{t:2,i:[{t:3}],s:"This could also be interesting for you"}}},newsletter:{title:{t:0,b:{t:2,i:[{t:3}],s:"Newsletter"}},desc:{t:0,b:{t:2,i:[{t:3}],s:"Never miss out - get all the latest news sent straight to your inbox."}}}},de:{back:{name:{t:0,b:{t:2,i:[{t:3}],s:"Zurück zum Blog"}},href:{t:0,b:{t:2,i:[{t:3}],s:"/de/news/"}}},jsonLd:{breadcrumb:{news:{t:0,b:{t:2,i:[{t:3}],s:"News"}}}},readingTime:{singular:{t:0,b:{t:2,i:[{t:3}],s:"Minute Lesezeit"}},plural:{t:0,b:{t:2,i:[{t:3}],s:"Minuten Lesezeit"}}},recommendedArticles:{title:{t:0,b:{t:2,i:[{t:3}],s:"Das könnte dich auch interessieren"}}},newsletter:{title:{t:0,b:{t:2,i:[{t:3}],s:"Newsletter"}},desc:{t:0,b:{t:2,i:[{t:3}],s:"Nichts mehr verpassen. Wir halten dich per E-Mail auf dem Laufenden."}}}},it:{back:{name:{t:0,b:{t:2,i:[{t:3}],s:"Back to the blog"}},href:{t:0,b:{t:2,i:[{t:3}],s:"/it/news/"}}},jsonLd:{breadcrumb:{news:{t:0,b:{t:2,i:[{t:3}],s:"News"}}}},readingTime:{singular:{t:0,b:{t:2,i:[{t:3}],s:"minute to read"}},plural:{t:0,b:{t:2,i:[{t:3}],s:"minutes to read"}}},recommendedArticles:{title:{t:0,b:{t:2,i:[{t:3}],s:"This could also be interesting for you"}}},newsletter:{title:{t:0,b:{t:2,i:[{t:3}],s:"Newsletter"}},desc:{t:0,b:{t:2,i:[{t:3}],s:"Non perderti le ultime novità: ricevi tutte le notizie direttamente nella tua casella di posta elettronica."}}}},nl:{back:{name:{t:0,b:{t:2,i:[{t:3}],s:"Back to the blog"}},href:{t:0,b:{t:2,i:[{t:3}],s:"/nl/news/"}}},jsonLd:{breadcrumb:{news:{t:0,b:{t:2,i:[{t:3}],s:"Nieuws"}}}},readingTime:{singular:{t:0,b:{t:2,i:[{t:3}],s:"minute to read"}},plural:{t:0,b:{t:2,i:[{t:3}],s:"minutes to read"}}},recommendedArticles:{title:{t:0,b:{t:2,i:[{t:3}],s:"This could also be interesting for you"}}},newsletter:{title:{t:0,b:{t:2,i:[{t:3}],s:"Nieuwsbrief"}},desc:{t:0,b:{t:2,i:[{t:3}],s:"Blijf op de hoogte en ontvang het laatste nieuws rechtstreeks in je inbox."}}}}}})}typeof X=="function"&&X(st);const qe=Object.assign(Rt(st,[["__scopeId","data-v-8896a9c6"]]),{__name:"BlogPostDetailStage"}),Re={key:0},Me={key:1},es=et({__name:"[slug]",setup(s){const t=M(),n=_(()=>t.params.slug),i=_(()=>Object.hasOwn(Lt,n.value));return(a,p)=>{const b=kt,f=qe;return o(),l("div",null,[e(i)?(o(),l("div",Re,[h(b)])):(o(),l("div",Me,[h(f)]))])}}});export{es 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.