PageSourceSearch

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

js shopware.com collected 2026-09-24 07:50:33 UTC 6,817 bytes, 1 lines download raw bytes

1import{s as U}from"./CoZZuCbk.js";import{d as N,a as p,S as x,C as S,H as C}from"./DZCir7w9.js";import{r as g}from"./Cm6c080w.js";const O=["products","produits","produkte","prodotti","features"],_=["solutions","oplossingen","loesungen","soluzioni"],B=["company","unternehmen","azienda","bedrijf","entreprise"],D=[...O.filter(t=>t!=="features"),..._],$="community/community-edition",q="Open commerce platform for B2B and B2C.",F="Shopware plans",w="Shopware",M="pricing",G=/^[A-Z]{3}$/;function W(t){return t.split("/").filter(Boolean).some(e=>e.toLowerCase()===M)}function H(t,e,i,n){if(W(t))return{productId:N,productName:w,catalogName:F};const r=t.split("/").filter(Boolean).pop()??"product",s=h(i)??P(r)??e.split("|")[0]?.trim()??w,c=n.length===1&&typeof n[0]?.fields?.title=="string"&&n[0].fields.title.trim()?n[0].fields.title.trim():r;return{productId:`${S}/#product-${U(c)}`,productName:s,catalogName:`${s} plans`}}function j(t){return t.split("/").filter(Boolean)[0]?.toLowerCase()}function L(t,e){const i=j(t);return!!i&&e.includes(i)}function X(t){return t.split("/").filter(Boolean).some(e=>B.includes(e.toLowerCase()))}function Y(t){return X(t)}function k(t,e){return!e&&D.includes(t.toLowerCase())}function m(t){if(!t||typeof t!="object")return!1;const e=t;return e.sys?.type==="Entry"&&e.fields!=null}function P(t){return t.split("-").filter(Boolean).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}function J(t){const e=t?.fields?.file?.url;if(e)return e.startsWith("//")?`https:${e}`:e}function Q(t){const e=t?.fields?.file?.details?.image;return{width:e?.width,height:e?.height}}function R(t){if(!t?.fields)return;const{description:e,descriptionRichText:i}=t.fields;return typeof e=="string"&&e.trim()?e.trim():g(i)||void 0}function h(t){const e=t?.fields?.title;return typeof e=="string"&&e.trim()?e.trim():void 0}function Z(t,e){const i=t?.fields?.image,n=J(i);if(n)return{url:n,...Q(i)};if(e)return{url:e}}function z(t){const e=[],i=t.fields??{};for(const n of i.faqItems??[]){const r=n?.fields?.question,o=g(n?.fields?.answer);typeof r=="string"&&r.trim()&&o&&e.push({question:r.trim(),answer:o})}for(const n of i.groupedFaqItems??[])for(const r of n?.fields?.faqItems??[]){const o=r?.fields?.question,s=g(r?.fields?.answer);typeof o=="string"&&o.trim()&&s&&e.push({question:o.trim(),answer:s})}return e}function V(t){const e=[];for(const i of t)m(i)&&i.sys?.contentType?.sys?.id==="sectionFaqs"&&e.push(...z(i));return e}const K={sectionProductBoxes:"productBoxes",sectionComparisonTable:"productBoxes",sectionIntroPricing:"productBoxes",sectionProductsRow:"boxes"};function A(t){const e=t.sys?.contentType?.sys?.id,i=e?K[e]:void 0;return i?(t.fields?.[i]??[]).filter(m):[]}function tt(t){const e=[],i=new Set,n=t.fields?.introSection;if(m(n))for(const r of A(n))r.sys?.id&&!i.has(r.sys.id)&&(i.add(r.sys.id),e.push(r));for(const r of(t.fields?.sections??[]).filter(m))for(const o of A(r))o.sys?.id&&!i.has(o.sys.id)&&(i.add(o.sys.id),e.push(o));return e}function et(t){if(!t?.trim())return"EUR";const e=t.trim().toUpperCase();return e==="€"||e==="EUR"?"EUR":e==="$"||e==="USD"?"USD":G.test(e)?e:"EUR"}function it(t){if(t.fields?.excludeFromSchemaOrg===!0)return null;const{title:e,subtitle:i}=t.fields;if(typeof e!="string"||!e.trim())return null;const n=g(t.fields?.description),r=t.fields?.priceCustom,o=t.fields?.price,s=typeof o=="number"?o:typeof o=="string"?Number(o):Number.NaN,c={"@type":"Offer",name:`${i?.trim()??"Shopware"} ${e.trim()}`,availability:"https://schema.org/InStock"};return n&&(c.description=n),!r&&Number.isFinite(s)&&s>0&&(c.priceSpecification={"@type":"PriceSpecification",price:s,priceCurrency:et(t.fields?.currencySymbol),valueAddedTaxIncluded:!1}),c}function nt(t,e,i,n,r){const o=tt(t),s=o.map(it).filter(a=>a!=null);if(s.length===0)return;const{productId:c,productName:f,catalogName:d}=H(e,i,r,o);return{"@type":"Product","@id":c,name:f,description:n.trim()||q,brand:{"@id":p},offers:{"@type":"OfferCatalog",name:d,itemListElement:s}}}function rt(t){return t===$}function ot(t){return L(t,_)}
1function st(t,e,i){const n=t.split("/").filter(Boolean);return n.length>1?P(n.at(-1)??""):h(e)??i}function ct(t,e,i,n,r){if(ot(e))return{"@type":"Service","@id":`${t}#service`,serviceType:st(e,i,n),name:h(i)??n,description:R(i)??r??void 0,provider:{"@id":p},areaServed:"Worldwide"}}function at(t,e){return L(t,O)?!0:!!e?.fields?.productLogo}function v(t){const e=t.name?.trim()||t.seoTitle.trim(),i=t.seoDescription.trim()||void 0;return{"@type":"SoftwareApplication","@id":`${t.pageUrl}#software`,name:e,applicationCategory:"BusinessApplication",operatingSystem:"Web-based",description:i,url:t.pageUrl,publisher:{"@id":p},isPartOf:{"@id":N}}}function mt(t){return{"@context":"https://schema.org","@graph":[v(t)]}}function ut(t,e,i,n,r){if(rt(e))return{"@type":"SoftwareApplication","@id":`${t}#software`,name:"Shopware Community Edition",applicationCategory:"BusinessApplication",operatingSystem:"Web-based, self-hosted",softwareVersion:"6.7",license:"https://opensource.org/licenses/MIT",description:"The open-source, MIT-licensed core of Shopware, free to download and use.",publisher:{"@id":p},offers:{"@type":"Offer",price:"0",priceCurrency:"EUR",availability:"https://schema.org/InStock"}};if(at(e,i))return v({pageUrl:t,seoTitle:n,seoDescription:R(i)??r??"",name:h(i)??n})}function ft(t,e,i,n){if(n==="index")return;const r=n.split("/").filter(Boolean);if(r.length===0)return;const s=[{"@type":"ListItem",position:1,name:C[e]??C.en,item:`${S}/${e}/`}];let c=`/${e}`,f=1;for(const[d,a]of r.entries()){c+=`/${a}`;const l=d===r.length-1;k(a,l)||(f+=1,s.push({"@type":"ListItem",position:f,name:l?i:P(a),item:l?t:`${S}${c}/`}))}if(!(s.length<2))return{"@type":"BreadcrumbList","@id":`${t}#breadcrumb`,itemListElement:s}}function gt(t){const{entry:e,pageUrl:i,locale:n,categorizedSlug:r,seoTitle:o,seoDescription:s}=t;if(!o.trim()||!i)return null;const c=m(e.fields?.introSection)?e.fields.introSection:void 0,f=(e.fields?.sections??[]).filter(m),d=V(f),a=Z(c,t.seoImage),l=ut(i,r,c,o,s),I=ct(i,r,c,o,s),T=nt(e,r,o,s,c),y=ft(i,n,o,r),b=Y(r),u=[{"@type":b?"AboutPage":"WebPage","@id":`${i}#webpage`,url:i,name:o,description:s||void 0,isPartOf:{"@id":x},about:{"@id":p},inLanguage:n,...b?{mainEntity:{"@id":p}}:{},...a?{primaryImageOfPage:{"@id":`${i}#primaryimage`}}:{},...y?{breadcrumb:{"@id":`${i}#breadcrumb`}}:{}}];return d.length>0&&u.push({"@type":"FAQPage","@id":`${i}#faq`,inLanguage:n,mainEntity:d.map(E=>({"@type":"Question",name:E.question,acceptedAnswer:{"@type":"Answer",text:E.answer}}))}),l&&u.push(l),I&&u.push(I),T&&u.push(T),a&&u.push({"@type":"ImageObject","@id":`${i}#primaryimage`,url:a.url,...a.width?{width:a.width}:{},...a.height?{height:a.height}:{}}),y&&u.push(y),{"@context":"https://schema.org","@graph":u}}export{mt as a,gt as g};

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.