PageSourceSearch

https://hedinautomotive.de/_next/static/chunks/7495.d2cd096927ed81ca.js

js hedinautomotive.de collected 2026-10-10 01:52:34 UTC 13,160 bytes, 36 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7495],{8970:(e,l,n)=>{n.d(l,{A:()=>t});let t={prod:"aGVKUEhOdEpORms4aCtZRWhkNFJvNEdlL0g1cTZDZ1k5Nm9iM21TY0FJbz18aGVkaW5pdGFiYW4yN2ExLWhlZGluODgzNy1wcm9kNWM0Yi00NjA0",stage:"MlcwYVlDMzZZaThJNm5jYXFKcXV0NVRTNjRnUmJHWXRjRmFLS3MzUEFTdz18aGVkaW5pdGFiYW4wYjYxLWhlZGluNDVhZS1zdGFnZTA2NjMtYjA5ZA==",local:"MlcwYVlDMzZZaThJNm5jYXFKcXV0NVRTNjRnUmJHWXRjRmFLS3MzUEFTdz18aGVkaW5pdGFiYW4wYjYxLWhlZGluNDVhZS1zdGFnZTA2NjMtYjA5ZA=="}},27495:(e,l,n)=>{n.r(l),n.d(l,{default:()=>k,hasImage:()=>b});var t=n(2183),i=n(27861),s=n(36439),r=n(18365),a=n(69197);function d(e){return"Image"in e.fields}var o=n(61639),c=n(29437);function u(e){let l,n,s=(0,i.c)(3),{cell:r,columnHeaders:a}=e,d=r.fields.Header.value??void 0,o=d?a[d]??d:d;return o?(s[0]===Symbol.for("react.memo_cache_sentinel")?(l={fontSize:"0.625rem",fontWeight:600,lineHeight:1.25},s[0]=l):l=s[0],s[1]!==o?(n=(0,t.jsx)("p",{style:l,className:"text-text-secondary mb-0.5",children:o}),s[1]=o,s[2]=n):n=s[2],n):null}function f(e){let l,n,d,f,m,x,h,p,w,v,j,g,b,N,L,T,k,H,E,y,I,R,A,F=(0,i.c)(58),{cell:W,columnHeaders:M,rowIndex:O,rowRef:C}=e,D=(0,s.useRef)(null),Z=(0,s.useRef)(null),[z,Y]=(0,s.useState)(20);F[0]!==O||F[1]!==C?(l=()=>{let e;if(!C||!D?.current||!Z?.current||void 0===O)return;let l=()=>{let e=(C.current[O].row?.offsetHeight||0)-17-((D.current?.offsetHeight||0)+(Z.current?.offsetHeight||0));e>0&&Y(l=>Math.abs(l-e)>3?e:l)},n=setTimeout(l,300),t=()=>{e&&clearTimeout(e),e=window.setTimeout(l,250)};return window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t),clearTimeout(n),e&&clearTimeout(e)}},n=[C,D,Z,O],F[0]=O,F[1]=C,F[2]=l,F[3]=n):(l=F[2],n=F[3]),(0,s.useEffect)(l,n),F[4]!==W||F[5]!==M?(d=(0,t.jsx)(u,{cell:W,columnHeaders:M}),F[4]=W,F[5]=M,F[6]=d):d=F[6];let S=W.fields.LineOneBold?.value&&"font-bold";F[7]!==S?(f=(0,r.cn)("truncate text-nowrap",S),F[7]=S,F[8]=f):f=F[8],F[9]!==W.fields.LineOne?(m=(0,t.jsx)(c.Text,{field:W.fields.LineOne}),F[9]=W.fields.LineOne,F[10]=m):m=F[10],F[11]!==f||F[12]!==m?(x=(0,t.jsx)("span",{className:f,children:m}),F[11]=f,F[12]=m,F[13]=x):x=F[13],F[14]!==W.fields.LineTwo?(h=(0,t.jsx)("span",{className:"truncate text-nowrap",children:(0,t.jsx)(c.Text,{field:W.fields.LineTwo})}),F[14]=W.fields.LineTwo,F[15]=h):h=F[15],F[16]!==x||F[17]!==h?(p=(0,t.jsxs)("div",{className:"flex flex-wrap gap-x-3 gap-y-0.5 overflow-hidden",children:[x,h]}),F[16]=x,F[17]=h,F[18]=p):p=F[18],F[19]!==W.fields.Link.value.text?(w=(0,t.jsx)("span",{className:"text-nowrap underline",children:W.fields.Link.value.text}),F[19]=W.fields.Link.value.text,F[20]=w):w=F[20],F[21]===Symbol.for("react.memo_cache_sentinel")?(v=(0,t.jsx)(a.sI,{className:"ml-1 h-4 w-4 transform transition-transform duration-300 group-hover:translate-x-1"}),F[21]=v):v=F[21],F[22]!==W.fields.Link||F[23]!==w?(j=(0,t.jsx)("div",{children:(0,t.jsxs)(o.A,{prefetch:!1,field:W.fields.Link,className:"text-text-link hover:text-text-invert-link-hover group flex cursor-pointer items-center",children:[w,v]})}),F[22]=W.fields.Link,F[23]=w,F[24]=j):j=F[24],F[25]!==j||F[26]!==p?(g=(0,t.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-2 gap-y-0.5",children:[p,j]}),F[25]=j,F[26]=p,F[27]=g):g=F[27],F[28]!==g||F[29]!==d?(b=(0,t.jsxs)("div",{className:"bp:hidden flex flex-col",children:[d,g]}),F[28]=g,F[29]=d,F[30]=b):b=F[30],F[31]!==W||F[32]!==M?(N=(0,t.jsx)(u,{cell:W,columnHeaders:M}),F[31]=W,F[32]=M,F[33]=N):N=F[33];let G=W.fields.LineOneBold?.value&&"font-bold";return F[34]!==G?(L=(0,r.cn)("overflow-visible truncate text-nowrap",G),F[34]=G,F[35]=L):L=F[35],F[36]!==W.fields.LineOne?(T=(0,t.jsx)(c.Text,{field:W.fields.LineOne}),F[36]=W.fields.LineOne,F[37]=T):T=F[37],F[38]!==L||F[39]!==T?(k=(0,t.jsx)("span",{className:L,children:T}),F[38]=L,F[39]=T,F[40]=k):k=F[40],F[41]!==W.fields.LineTwo?(H=(0,t.jsx)("span",{className:"overflow-visible truncate text-nowrap",children:(0,t.jsx)(c.Text,{field:W.fields.LineTwo})}),F[41]=W.fields.LineTwo,F[42]=H):H=F[42],F[43]!==k||F[44]!==H?(E=(0,t.jsxs)("div",{className:"flex flex-col flex-nowrap gap-0.5 overflow-visible",children:[k,H]}),F[43]=k,F[44]=H,F[45]=E):E=F[45],F[46]!==N||F[47]!==E?(y=(0,t.jsxs)("div",{ref:D,children:[N,E]}),F[46]=N,F[47]=E,F[48]=y):y=F[48],F[49]!==W.fields.Link||F[50]!==z?(I=W.fields.Link?.value?.href&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{style:{height:z},className:"transition-all duration-300"}),(0,t.jsx)("div",{ref:Z,children:(0,t.jsxs)(o.A,{prefetch:!1,field:W.fields.Link,className:"text-text-link hover:text-text-invert-link-hover group flex cursor-pointer items-center",children:[(0,t.jsx)("span",{className:"text-nowrap underline",children:W.fields.Link.value.text}),(0,t.jsx)(a.sI,{className:"ml-1 h-4 w-4 transform transition-transform duration-300 group-hover:translate-x-1"})]})})]}),F[49]=W.fields.Link,F[50]=z,F[51]=I):I=F[51],F[52]!==y||F[53]!==I?(R=(0,t.jsxs)("div",{className:"bp:block hidden",children:[y,I]}),F[52]=y,F[53]=I,F[54]=R):R=F[54],F[55]!==b||F[56]!==R?(A=(0,t.jsxs)(t.Fragment,{children:[b,R]}),F[55]=b,F[56]=R,F[57]=A):A=F[57],A}function m(e){let l,n,s,r,a,d,o=(0,i.c)(16),{cell:f,columnHeaders:m}=e;return o[0]!==f||o[1]!==m?(l=(0,t.jsx)(u,{cell:f,columnHeaders:m}),o[0]=f,o[1]=m,o[2]=l):l=o[2],o[3]!==f.fields.LineOne?(n=f.fields.LineOne.value&&(0,t.jsx)("span",{className:"bp:overflow-visible truncate text-nowrap",children:(0,t.jsx)(c.Text,{field:f.fields.LineOne})}),o[3]=f.fields.LineOne,o[4]=n):n=o[4],o[5]!==f.fields.LineTwo?(s=f.fields.LineTwo.value&&(0,t.jsx)("span",{className:"bp:overflow-visible truncate text-nowrap",children:(0,t.jsx)(c.Text,{field:f.fields.LineTwo})}),o[5]=f.fields.LineTwo,o[6]=s):s=o[6],o[7]!==f.fields.LineThree?(r=f.fields.LineThree.value&&(0,t.jsx)("span",{className:"bp:overflow-visible truncate text-nowrap",children:(0,t.jsx)(c.Text,{field:f.fields.LineThree})}),o[7]=f.fields.LineThree,o[8]=r):r=o[8],o[9]!==n||o[10]!==s||o[11]!==r?(a=(0,t.jsxs)("div",{className:"bp:flex-col bp:gap-0.5 bp:flex-nowrap flex flex-wrap gap-x-3 gap-y-0.5 text-sm",children:[n,s,r]}),o[9]=n,o[10]=s,o[11]=r,o[12]=a):a=o[12],o[13]!==l||o[14]!==a?(d=(0,t.jsxs)(t.Fragment,{children:[l,a]}),o[13]=l,o[14]=a,o[15]=d):d=o[15],d}var x=n(11592);function h(e){let l=e.fields.Image?.value?.width,n=e.fields.Image?.value?.height;return l&&n?Number(l)/Number(n):1}function p(e){let l,n,r,a,d,o,c,u=(0,i.c)(22),{cell:f,columnHeaders:m,rowIndex:x,columnIndex:
1p,rowRef:j,columnImgAspectRatios:g}=e,[b,N]=(0,s.useState)(150),[L,T]=(0,s.useState)(150*h(f));u[0]!==f||u[1]!==g||u[2]!==p||u[3]!==x||u[4]!==j?(l=()=>{let e;if(!j?.current||"number"!=typeof x||x<0||void 0===g)return;let l=0,n=0,t=()=>{var e;if(!(window.innerWidth>=640))return;let t=(e=void 0===p||!j?[]:j.current.map(e=>e.cells[p]??null),!g?[]:e.map((e,l)=>{let n=g[l];if(!e||null===n)return null;let t=e.offsetHeight*n;return t<e.offsetWidth&&(t=e.offsetWidth),t})).filter(w),i=Math.round(t.length>0?Math.max(...t):0),s=Math.round(i/h(f));(Math.abs(i-l)>3||Math.abs(s-n)>3)&&(T(i),N(s),l=i,n=s)};t();let i=()=>{clearTimeout(e),e=window.setTimeout(()=>{t()},250)};return window.addEventListener("resize",i),()=>{window.removeEventListener("resize",i),e&&clearTimeout(e)}},n=[j,x,p,g,f],u[0]=f,u[1]=g,u[2]=p,u[3]=x,u[4]=j,u[5]=l,u[6]=n):(l=u[5],n=u[6]),(0,s.useEffect)(l,n);let k=`${L}px`,H=`${b}px`;return u[7]!==k||u[8]!==H?(r={width:k,height:H},u[7]=k,u[8]=H,u[9]=r):r=u[9],u[10]!==f||u[11]!==m?(a=(0,t.jsx)(v,{cell:f,columnHeaders:m}),u[10]=f,u[11]=m,u[12]=a):a=u[12],u[13]!==r||u[14]!==a?(d=(0,t.jsx)("div",{style:r,className:"bp:block transition-height relative hidden duration-100 ease-in-out",children:a}),u[13]=r,u[14]=a,u[15]=d):d=u[15],u[16]!==f||u[17]!==m?(o=(0,t.jsx)("div",{className:"transition-height bp:hidden relative h-full w-full duration-100 ease-in-out",children:(0,t.jsx)(v,{cell:f,columnHeaders:m})}),u[16]=f,u[17]=m,u[18]=o):o=u[18],u[19]!==d||u[20]!==o?(c=(0,t.jsxs)(t.Fragment,{children:[d,o]}),u[19]=d,u[20]=o,u[21]=c):c=u[21],c}function w(e){return null!==e&&!isNaN(e)}function v(e){let l,n,s,r,a=(0,i.c)(11),{cell:d,columnHeaders:o}=e;a[0]!==d||a[1]!==o?(l=""!==d.fields.Header.value&&(0,t.jsx)("div",{className:"px-2 pb-1.5 pt-2",children:(0,t.jsx)(u,{cell:d,columnHeaders:o})}),a[0]=d,a[1]=o,a[2]=l):l=a[2];let c=""!==d.fields.Header.value?"calc(100% - (1.25*0.625rem) - (1rem))":void 0;return a[3]!==c?(n={maxHeight:c},a[3]=c,a[4]=n):n=a[4],a[5]!==d.fields.Image||a[6]!==n?(s=(0,t.jsx)(x.A,{field:d.fields.Image,className:"h-full w-full object-cover",style:n}),a[5]=d.fields.Image,a[6]=n,a[7]=s):s=a[7],a[8]!==l||a[9]!==s?(r=(0,t.jsxs)(t.Fragment,{children:[l,s]}),a[8]=l,a[9]=s,a[10]=r):r=a[10],r}function j(e){let l,n=(0,i.c)(16),{cell:s,columnHeaders:r,rowIndex:a,columnIndex:o,rowRef:c,columnImgAspectRatios:u}=e;if(d(s)){let e;return n[0]!==s||n[1]!==r||n[2]!==u||n[3]!==o||n[4]!==a||n[5]!==c?(e=(0,t.jsx)(p,{cell:s,columnHeaders:r,rowRef:c,rowIndex:a,columnIndex:o,columnImgAspectRatios:u}),n[0]=s,n[1]=r,n[2]=u,n[3]=o,n[4]=a,n[5]=c,n[6]=e):e=n[6],e}if("Link"in s.fields){let e;return n[7]!==s||n[8]!==r||n[9]!==a||n[10]!==c?(e=(0,t.jsx)(f,{cell:s,columnHeaders:r,rowRef:c,rowIndex:a}),n[7]=s,n[8]=r,n[9]=a,n[10]=c,n[11]=e):e=n[11],e}if("LineOne"in s.fields){let e;return n[12]!==s||n[13]!==r?(e=(0,t.jsx)(m,{cell:s,columnHeaders:r}),n[12]=s,n[13]=r,n[14]=e):e=n[14],e}return n[15]===Symbol.for("react.memo_cache_sentinel")?(l=(0,t.jsx)("div",{children:"Unknown cell type"}),n[15]=l):l=n[15],l}var g=n(68417);function b(e){return"Image"in e.fields&&!!e.fields.Image?.value?.src}function N(e){let l,n,a,o,c,u,f=(0,i.c)(12),{rows:m,columnHeaders:x}=e,h=m.reduce(L,0),p=(0,s.useRef)(m.map(()=>({row:null,cells:Array(h).fill(null)}))),[w]=(0,s.useState)((l=[],m.forEach(e=>{let n=[];Array.from({length:h}).forEach((l,t)=>{let i=e?.fields?.Cells?.[t];if(!i)return void n.push(null);if(b(i)&&d(i)&&i.fields.Image.value){let{width:e,height:l}=i.fields.Image.value;n.push(Number(e)/Number(l))}else n.push(null)}),l.push(n)}),l)),v=h<=3;f[0]!==w?(n=function(e){return w.map(l=>l[e]??null)},f[0]=w,f[1]=n):n=f[1];let g=n,N=v?"mx-auto":"w-full";f[2]!==N?(a=(0,r.cn)("bp:table hidden table-auto text-nowrap bg-white",N),f[2]=N,f[3]=a):a=f[3],f[4]!==v?(o=v?{width:"auto"}:void 0,f[4]=v,f[5]=o):o=f[5];let T=m.map((e,l)=>(0,t.jsx)("tr",{ref:e=>{p.current[l].row=e},children:Array.from({length:h}).map((n,i)=>{let s=e.fields.Cells?.[i],a=!s;return(0,t.jsx)("td",{ref:e=>{p.current[l].cells[i]=e},style:{minWidth:a?"120px":b(s)&&d(s)?"200px":"120px",width:v||!a&&b(s)&&d(s)?"auto":`calc(1/${h}*100%)`},className:(0,r.cn)(l%2>0&&"bg-background-200",!a&&!b(s)&&"p-2","border-outline-2 relative border align-top"),children:a?null:(0,t.jsx)(j,{cell:s,columnHeaders:x,rowIndex:l,columnIndex:i,rowRef:p,columnImgAspectRatios:g(i)})},s?.id||`empty-${i}`)})},e.id));return f[6]!==T?(c=(0,t.jsx)("tbody",{children:T}),f[6]=T,f[7]=c):c=f[7],f[8]!==a||f[9]!==o||f[10]!==c?(u=(0,t.jsx)("div",{className:"w-full min-w-max",children:(0,t.jsx)("table",{className:a,style:o,children:c})}
1),f[8]=a,f[9]=o,f[10]=c,f[11]=u):u=f[11],u}function L(e,l){return Math.max(e,l.fields.Cells.length)}function T(e){let l,n,s=(0,i.c)(7),{rows:a,columnHeaders:d}=e;if(s[0]!==d||s[1]!==a){let e;s[3]!==d?(e=e=>(0,t.jsx)("div",{className:"border-outline-2 border bg-white",children:e.fields.Cells.map((e,l)=>(0,t.jsx)("div",{className:(0,r.cn)(!b(e)&&"px-4 py-2",l%2>0&&"bg-background-200"),children:(0,t.jsx)(j,{cell:e,columnHeaders:d})},e.id))},e.id),s[3]=d,s[4]=e):e=s[4],l=a.map(e),s[0]=d,s[1]=a,s[2]=l}else l=s[2];return s[5]!==l?(n=(0,t.jsx)("div",{className:"bp:hidden flex flex-col",children:l}),s[5]=l,s[6]=n):n=s[6],n}n(8970),n(49914),(0,g.J1)`
2  query GetTableColumnHeaders($path: String!, $language: String!) {
3    item(path: $path, language: $language) {
4      headers: children(
5        includeTemplateIDs: "{5D6B6CE2-99E9-478D-8AEE-4728A8ED0C03}"
6      ) {
7        results {
8          ... on ColumnHeader {
9            name
10            title {
11              value
12            }
13          }
14        }
15      }
16      headersInFolder: children(
17        includeTemplateIDs: "{7715F260-8E57-477C-9787-32031FBD2618}"
18      ) {
19        results {
20          children(
21            includeTemplateIDs: "{5D6B6CE2-99E9-478D-8AEE-4728A8ED0C03}"
22          ) {
23            results {
24              ... on ColumnHeader {
25                name
26                title {
27                  value
28                }
29              }
30            }
31          }
32        }
33      }
34    }
35  }
36`;let k=(0,r.es)(function(e){let l,n,s,r,d=(0,i.c)(11),{fields:o,columnHeaders:c,rendering:u}=e;d[0]!==c?(l=void 0===c?{}:c,d[0]=c,d[1]=l):l=d[1];let f=l;return d[2]!==f||d[3]!==o.Rows?(n=(0,t.jsx)(N,{rows:o.Rows,columnHeaders:f}),s=(0,t.jsx)(T,{rows:o.Rows,columnHeaders:f}),d[2]=f,d[3]=o.Rows,d[4]=n,d[5]=s):(n=d[4],s=d[5]),d[6]!==o||d[7]!==u.uid||d[8]!==n||d[9]!==s?(r=(0,t.jsxs)(a.mO,{"data-component":"Table",id:u.uid,fields:o,scrollContent:!0,children:[n,s]}),d[6]=o,d[7]=u.uid,d[8]=n,d[9]=s,d[10]=r):r=d[10],r},{validateAsWarnings:e=>(e.Rows?.length??0)>0||"Add at least one row — only the wrapper's title renders as it stands."})}}]);

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.