1import{b as V}from"/_static/build/_shared/chunk-ALK6OKXI.js";import{a as M,c as y}from"/_static/build/_shared/chunk-EE7WH5V3.js";import{a as k,h as I}from"/_static/build/_shared/chunk-AIJG66E6.js";import{a as L,c as s}from"/_static/build/_shared/chunk-Q4UHB24Q.js";import{d as n}from"/_static/build/_shared/chunk-NPMEYKEH.js";var S=n(s(),1);function E({props:t,contentCategory:r}){if(!r)return null;let g=y.labels.content_category.sing[r],i=k({pathname:V(r)});return(0,S.jsx)(I,{end:!0,className:"cat_link",...t,to:i,children:g})}var $=n(L(),1);var f=n(s(),1);function x({...t}){return(0,f.jsx)("svg",{width:"15",height:"15",...t,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,f.jsx)("path",{d:"M5.5 2C5.77614 2 6 2.22386 6 2.5V5.5C6 5.77614 5.77614 6 5.5 6H2.5C2.22386 6 2 5.77614 2 5.5C2 5.22386 2.22386 5 2.5 5H5V2.5C5 2.22386 5.22386 2 5.5 2ZM9.5 2C9.77614 2 10 2.22386 10 2.5V5H12.5C12.7761 5 13 5.22386 13 5.5C13 5.77614 12.7761 6 12.5 6H9.5C9.22386 6 9 5.77614 9 5.5V2.5C9 2.22386 9.22386 2 9.5 2ZM2 9.5C2 9.22386 2.22386 9 2.5 9H5.5C5.77614 9 6 9.22386 6 9.5V12.5C6 12.7761 5.77614 13 5.5 13C5.22386 13 5 12.7761 5 12.5V10H2.5C2.22386 10 2 9.77614 2 9.5ZM9 9.5C9 9.22386 9.22386 9 9.5 9H12.5C12.7761 9 13 9.22386 13 9.5C13 9.77614 12.7761 10 12.5 10H10V12.5C10 12.7761 9.77614 13 9.5 13C9.22386 13 9 12.7761 9 12.5V9.5Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}
1var w=n(s(),1);function H({...t}){return(0,w.jsx)("svg",{width:"15",height:"15",...t,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,w.jsx)("path",{d:"M2 2.5C2 2.22386 2.22386 2 2.5 2H5.5C5.77614 2 6 2.22386 6 2.5C6 2.77614 5.77614 3 5.5 3H3V5.5C3 5.77614 2.77614 6 2.5 6C2.22386 6 2 5.77614 2 5.5V2.5ZM9 2.5C9 2.22386 9.22386 2 9.5 2H12.5C12.7761 2 13 2.22386 13 2.5V5.5C13 5.77614 12.7761 6 12.5 6C12.2239 6 12 5.77614 12 5.5V3H9.5C9.22386 3 9 2.77614 9 2.5ZM2.5 9C2.77614 9 3 9.22386 3 9.5V12H5.5C5.77614 12 6 12.2239 6 12.5C6 12.7761 5.77614 13 5.5 13H2.5C2.22386 13 2 12.7761 2 12.5V9.5C2 9.22386 2.22386 9 2.5 9ZM12.5 9C12.7761 9 13 9.22386 13 9.5V12.5C13 12.7761 12.7761 13 12.5 13H9.5C9.22386 13 9 12.7761 9 12.5C9 12.2239 9.22386 12 9.5 12H12V9.5C12 9.22386 12.2239 9 12.5 9Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}var e=n(s(),1);function T(t){let r=[".jpg",".png"];for(let g of r){let i=t.indexOf(g);if(i>-1)return t.slice(0,i+g.length)}return t}var D=({image:t,use_case:r,position:g})=>{let[i,A]=(0,$.useState)(!1);if(!t)return null;let{image_url:_,color_summary:C,alt_description:c,image_dimensions:d}=t;if(typeof _!="string")return null;let{STYLES:{FEED:b,ARTICLE:v}}=M,h=T(_),a,m,o,l,p;return r==="thumbnail"?(o=b.IMAGE_MAX_WIDTH_LOW,l=b.IMAGE_MAX_WIDTH_HIGH,d?.length&&(p=Math.round(l/d[0]*d[1])),m=encodeURI(h.replace("image.originalsize",`image.imageWidth__${o}`)),a=encodeURI(h.replace("image.originalsize",`image.imageWidth__${l}`))):(o=v.IMAGE_MAX_WIDTH_LOW,l=v.IMAGE_MAX_WIDTH_HIGH,d?.length&&(p=Math.round(l/d[0]*d[1])),m=encodeURI(h.replace("image.originalsize",`image.imageWidth__${o}`)),a=encodeURI(h.replace("image.originalsize",`image.imageWidth__${l}`))),r==="thumbnail"?(0,e.jsxs)("picture",{className:"page_image",style:{background:`linear-gradient(45deg, ${C?C.map(u=>u):"green, transparent"})`},children:[(0,e.jsx)("source",{srcSet:`${a} 2x`,media:`(max-width: ${o}px) and (-webkit-min-device-pixel-ratio: 2)`}),(0,e.jsx)("source",{srcSet:`${m} 1x`,media:`(max-width: ${o}px) and (-webkit-min-device-pixel-ratio: 1)`}),(0,e.jsx)("source",{srcSet:`${a} 2x`,media:"(-webkit-min-device-pixel-ratio: 2)"}),(0,e.jsx)("source",{srcSet:`${m} 1x`,media:"(-webkit-min-device-pixel-ratio: 1)"}),(0,e.jsx)("img",{width:l,height:p,loading:g!==0?"lazy":"eager",src:a,alt:c?.length>2?c:"Artikelbild",itemProp:"image"})]}):r==="article"?(0,e.jsxs)("figure",{className:"article_figure",style:i?{height:p}:{},children:[(0,e.jsxs)("picture",{className:`page_image${i?" expanded":""}`,style:{background:`linear-gradient(45deg, ${C?C.map(u=>u):"var(--green-9), transparent"})`},children:[i?null:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("source",{srcSet:`${a} 2x`,media:`(max-width: ${o}px) and (-webkit-min-device-pixel-ratio: 2)`}),(0,e.jsx)("source",{srcSet:`${m} 1x`,media:`(max-width: ${o}px) and (-webkit-min-device-pixel-ratio: 1)`}),(0,e.jsx)("source",{srcSet:`${m} 1x`,media:"(-webkit-min-device-pixel-ratio: 1)"}),(0,e.jsx)("source",{srcSet:`${a} 2x`,media:"(-webkit-min-device-pixel-ratio: 2)"})]}),(0,e.jsx)("img",{width:l,height:p,loading:g!==0?"lazy":"eager",src:a,alt:c?.length>2?c:"Artikelbild",itemProp:"image"})]}),(0,e.jsxs)("figcaption",{style:i?{height:"100%"}:{},children:[c?.length>2?c:"Artikelbild",(0,e.jsx)("button",{style:i?{position:"absolute",right:0,backgroundColor:"var(--green-10)",transform:"translate(0,0)"}:{transform:"translate(9px, -50px)"},className:"expand_btn btn1",type:"button",onClick:()=>A(u=>!u),children:i?(0,e.jsx)(x,{"aria-label":"Bild verkleinern",style:{color:"var(--green-1)"},width:33,height:33}):(0,e.jsx)(H,{"aria-label":"Bild vergr\xF6ssern",width:33,height:33})})]})]}):null};export{E as a,D as b};
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.