PageSourceSearch

https://www.renault.se/transportbilar/_next/static/chunks/887.496da70cd7bf594c.js

js renault.se collected 2026-10-02 11:17:14 UTC 8,499 bytes, 197 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[887],{101:(e,a,t)=>{t.d(a,{wF:()=>i});var r=t(68417),s=t(80172);let l="{CD784F69-3959-4C11-B651-81E6A5951466}",i=async(e,a,t,r,l)=>{let[i,u]=await Promise.all([(0,s.p)(d,{language:a,datasource:e}),(0,s.p)(n,{language:a,datasource:e})]),g=i.parentId.parent.parent.id,c=await (0,s.p)(o(l),{language:a,limit:t,cursor:r??null,itemId:g});return{storiesindex:u.storiesindex,storieslistpage:c.storieslistpage}};(0,r.J1)`
2  query GetStoryPublishDate($language: String!, $storyId: String!) {
3    storyPage: item(path: $storyId, language: $language) {
4      ... on StoryPage {
5        date {
6          formattedDateValue
7        }
8      }
9    }
10  }
11`,(0,r.J1)`
12  query getStoryIndexId($language: String!, $storyId: String!) {
13    storyPage: item(path: $storyId, language: $language) {
14      indexAncestors: ancestors(
15        includeTemplateIDs: "${"{7554923F-CB70-4124-B6EF-F76D30E9BD82}"}"
16      ) {
17        id
18        url {
19          path
20        }
21      }
22      parent {
23        id
24        url {
25          path
26        }
27      }
28    }
29  }
30`,(0,r.J1)`
31  fragment IndexStory on StoryPage {
32    id
33    date {
34      value
35    }
36    url {
37      path
38    }
39  }
40
41  query getIndexStories($language: String!, $indexId: String!, $limit: Int!) {
42    stories: search(
43      first: $limit
44      where: {
45        AND: [
46          {
47            name: "_templates"
48            value: "${l}"
49            operator: EQ
50          }
51          { name: "_name", value: "__Standard Values", operator: NCONTAINS }
52          # One index entry per item version — see getStoriesListQuery.
53          { name: "_latestversion", value: "true", operator: EQ }
54          { name: "_language", value: $language, operator: EQ }
55          # CONTAINS matches ancestors, so this spans the year folders authors
56          # group stories into rather than just the current story's siblings.
57          { name: "_path", value: $indexId, operator: CONTAINS }
58        ]
59      }
60    ) {
61      pageInfo {
62        hasNext
63      }
64      results {
65        ...IndexStory
66      }
67    }
68  }
69`;let n=(0,r.J1)`
70  query GetStoriesIndex($language: String!, $datasource: String!) {
71    storiesindex: item(path: $datasource, language: $language) {
72      id
73      displayName
74      name
75      url {
76        path
77      }
78      ... on StoriesIndex {
79        id
80        displayName
81        showDates {
82          boolValue
83        }
84        layout {
85          value
86        }
87        highlightLatestStory {
88          boolValue
89          value
90        }
91      }
92    }
93  }
94`,o=(e=[])=>(0,r.J1)`
95  fragment StoriesFields on StoryPage {
96    id
97    date {
98      value
99      dateValue
100      formattedDateValue
101    }
102    name
103    image {
104      src
105      alt
106      height
107      width
108    }
109    displayName
110    url {
111      path
112    }
113    title {
114      value
115    }
116    premble {
117      value
118    }
119    tags{
120      value
121    }
122    dateFormat {
123      value
124    }
125  }
126
127  query GetStoriesList(
128    $language: String!
129    $limit: Int!
130    $cursor: String
131    $itemId: String
132  ) {
133    storieslistpage: search(
134      first: $limit
135      after: $cursor
136      where: {
137        AND: [
138          {
139            name: "_templates"
140            value: "${l}"
141            operator: EQ
142          }
143          { name: "_name", value: "__Standard Values", operator: NCONTAINS }
144          # Sitecore's search index holds one entry per item version, so without
145          # this every historic version of a story is returned as its own result
146          # (including empty v1 drafts).
147          { name: "_latestversion", value: "true", operator: EQ }
148          ${e?.length>0?`{ OR: [${e.map(e=>`
149            { name: "tags", value: "${e}", operator: CONTAINS }
150          `).join(",")}]}`:""}
151          { name: "_language", value: $language, operator: EQ }
152          {name: "_path", value: $itemId, operator: CONTAINS}
153        ]
154      }
155      orderBy: { name: "date", direction: DESC }
156    ) {
157      total
158      pageInfo {
159        endCursor
160        hasNext
161      }
162      stories: results {
163        ...StoriesFields
164      }
165    }
166  }
167`;(0,r.J1)`
168  fragment Tags on StoryTagsItem {
169    key {
170      value
171    }
172    value {
173      value
174    }
175    id
176  }
177
178  query getTags($language: String!) {
179    item(language: $language, path: "5B4232E3-3EF1-45AB-AE38-0152FD23FA57") {
180      children {
181        results {
182          ...Tags
183        }
184      }
185    }
186  }
187`;let d=(0,r.J1)`
188  query getParentId($language: String!, $datasource: String!) {
189    parentId: item(path: $datasource, language: $language) {
190      parent {
191        parent {
192          id
193        }
194      }
195    }
196  }
197`},40887:(e,a,t)=>{t.r(a),t.d(a,{default:()=>o});var r=t(2183),s=t(27861),l=t(3638);t(101);var i=t(99772),n=t(5728);let o=(0,i.es)(e=>{let a,t,o,d,u,g,c,m=(0,s.c)(46),{fields:h,data:p,pageLink:v}=e,{Title:x,Layout:f,HasMarginTop:S}=h,{t:y,locale:N}=(0,i.s9)();if(!p?.storiesindex)return null;let $=p?.storieslistpage?.stories;if(!Array.isArray($))return null;let j=p.storiesindex?.showDates?.boolValue,I=f?.value!=="Variant 2",w=!!S?.value;if(I){let e,a,t,s,i,o,d,u=w&&"mt-sm bp:mt-lg";m[0]!==u?(e=(0,l.A)(u),m[0]=u,m[1]=e):e=m[1];let g=x?.value;if(m[2]!==g?(a=(0,r.jsx)("h2",{children:g}),m[2]=g,m[3]=a):a=m[3],m[4]!==N||m[5]!==j||m[6]!==$||m[7]!==y){let e;m[9]!==N||m[10]!==j||m[11]!==y?(e=(e,a)=>(0,r.jsxs)("a",{href:e?.url?.path,className:"group flex flex-1 flex-col",children:[(0,r.jsx)("div",{className:"rounded-corner relative aspect-video overflow-clip",children:e?.image?.src&&(0,r.jsx)(n._V,{field:{value:e?.image}
197,className:(0,l.A)("rounded-corner object-cover transition duration-300 group-hover:scale-[1.058]","scale-[1.008]"),fill:!0,sizes:"(max-width: 768px) 100vw, 25vw"})}),(0,r.jsx)("div",{className:"mb-1 mt-2 flex gap-4",children:j&&(0,r.jsx)("span",{children:new Date(e.date?.formattedDateValue??"").toLocaleDateString(N())})}),(0,r.jsx)(n.DZ,{tagName:"h2",tagStyle:"h4",children:e?.title?.value}),(0,r.jsx)("p",{children:e?.premble?.value}),(0,r.jsx)(n.$n,{variant:"iconLink",icon:"ArrowForwardIcon",className:"w-fit",iconClassName:"transition group-hover:translate-x-1",onlyStyle:!0,children:y("storiesReadMore")})]},e?.id??e?.url?.path??a),m[9]=N,m[10]=j,m[11]=y,m[12]=e):e=m[12],t=$.map(e),m[4]=N,m[5]=j,m[6]=$,m[7]=y,m[8]=t}else t=m[8];return m[13]!==t?(s=(0,r.jsx)("div",{className:"gap-lg flex w-full flex-col md:flex-row",children:t}),m[13]=t,m[14]=s):s=m[14],m[15]!==v||m[16]!==y?(i=v&&(0,r.jsx)(n.$n,{variant:"ghost",href:v,className:"h-fit",children:y("showMore")}),m[15]=v,m[16]=y,m[17]=i):i=m[17],m[18]!==a||m[19]!==s||m[20]!==i?(o=(0,r.jsxs)("div",{className:"gap-lg flex flex-col place-items-center",children:[a,s,i]}),m[18]=a,m[19]=s,m[20]=i,m[21]=o):o=m[21],m[22]!==e||m[23]!==o?(d=(0,r.jsx)(n.mc,{size:"2xl",dataComponent:"StoriesTeaser",className:e,children:o}),m[22]=e,m[23]=o,m[24]=d):d=m[24],d}let b=w&&"mt-sm bp:mt-lg";m[25]!==b?(a=(0,l.A)(b),m[25]=b,m[26]=a):a=m[26];let _=x?.value;if(m[27]!==_?(t=(0,r.jsx)(n.DZ,{tagName:"h2",tagStyle:"h3",children:_}),m[27]=_,m[28]=t):t=m[28],m[29]!==$||m[30]!==y){let e;m[32]!==y?(e=(e,a)=>(0,r.jsxs)("div",{className:"bg-background-100 border-outline-2 rounded-corner flex flex-col gap-4 border p-4 md:flex-row",children:[(0,r.jsx)("div",{className:"relative aspect-video object-contain md:w-1/3",children:e?.image?.src&&(0,r.jsx)(n._V,{field:{value:e?.image},className:"rounded-corner object-cover",fill:!0,alt:e?.image?.alt||e?.title?.value||"Story image",sizes:"(max-width: 768px) 100vw, 33vw"})}),(0,r.jsxs)("div",{className:"grid flex-1",children:[(0,r.jsx)(n.DZ,{tagName:"h2",tagStyle:"h4",className:"h-fit",children:e?.title?.value}),(0,r.jsx)("p",{children:e?.premble?.value}),(0,r.jsx)(n.$n,{variant:"ghost",href:e?.url?.path,sm:!0,className:"h-max self-end justify-self-end",children:y("storiesReadMore")})]})]},e?.id??e?.url?.path??a),m[32]=y,m[33]=e):e=m[33],o=$.map(e),m[29]=$,m[30]=y,m[31]=o}else o=m[31];return m[34]!==o?(d=(0,r.jsx)("div",{className:"flex w-full flex-col gap-4",children:o}),m[34]=o,m[35]=d):d=m[35],m[36]!==v||m[37]!==y?(u=v&&(0,r.jsx)(n.$n,{variant:"ghost",href:v,className:"h-fit",children:y("showMore")}),m[36]=v,m[37]=y,m[38]=u):u=m[38],m[39]!==t||m[40]!==d||m[41]!==u?(g=(0,r.jsxs)("div",{className:"grid grid-cols-1 place-items-center gap-4",children:[t,d,u]}),m[39]=t,m[40]=d,m[41]=u,m[42]=g):g=m[42],m[43]!==a||m[44]!==g?(c=(0,r.jsx)(n.mc,{size:"2xl",dataComponent:"StoriesTeaser",className:a,children:g}),m[43]=a,m[44]=g,m[45]=c):c=m[45],c})}}]);

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.