PageSourceSearch

https://www.blick.ch/fr/_next/static/chunks/3t2-m6q1q6vrt.js

js blick.ch collected 2026-09-24 08:32:59 UTC 33,507 bytes, 430 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="0749b6e5-328d-5709-9a50-0555b7e69f6e")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,62432,e=>{"use strict";var t=e.i(80447),a=e.i(99161),i=e.i(37760),l=e.i(75681),s=e.i(20160),r=e.i(81542),o=e.i(65894),n=e.i(4653),d=e.i(8924),c=e.i(95388);let{image:{densities:u,acceleratorImage:p}}=l.default,m=({url:e,media:i,width:l,onLoad:s,onError:r})=>{let o=(0,a.useMemo)(()=>new c.AcceleratorImage({originalImageUrl:e,transformationKey:p.transformationKey,transformationHost:p.transformationHost}),[e]),n=(0,a.useMemo)(()=>u.reduce((e,t,a)=>`${e}${0!==a?", ":""}${o.resize(Math.ceil(l*t)).getUrl()} ${t}x`,""),[o,l]);return(0,t.jsx)("source",{media:i,srcSet:n,onLoad:s,onError:r})},{image:{viewports:{desktop:f,tablet:h,mobile:g}}}=l.default,b=r.default.picture.withConfig({displayName:"Existing__StyledPicture",componentId:"sc-b96d2142-0"})`
3  ${({hasError:e,hasValidSourceDesktop:t,hasValidSourceTablet:a,hasValidSourceMobile:i})=>r.css`
4    ${!t?(0,o.desktopCSS)(r.css`
5            display: none;
6          `):""};
7
8    ${!a?(0,o.tabletCSS)(r.css`
9            display: none;
10          `):""};
11
12    ${!i?(0,o.mobileCSS)(r.css`
13            display: none;
14          `):""};
15
16    ${e?r.css`
17            ${!t?(0,o.desktopCSS)(r.css`
18                    display: none;
19                  `):""};
20
21            ${!a?(0,o.tabletCSS)(r.css`
22                    display: none;
23                  `):""};
24
25            ${!i?(0,o.mobileCSS)(r.css`
26                    display: none;
27                  `):""};
28          `:""};
29
30    position: absolute;
31    top: 0;
32    left: 0;
33    width: 100%;
34    height: 100%;
35
36    > img {
37      width: 100%;
38      height: 100%;
39      position: absolute;
40      top: 0;
41      left: 0;
42    }
43  `};
44`,y=({alt:e,ratios:i,crops:l,widths:s,loading:r,fetchPriority:o,Placeholder:c,disablePlaceholder:u,className:p,children:y})=>{let S=(0,n.default)(),$=(0,d.default)(),[C,v]=(0,a.useState)(""),w=(0,a.useCallback)(()=>{v("errored")},[]),k=(0,a.useCallback)(()=>{v("loaded")},[]),x=(0,a.useMemo)(()=>{if(!$)return null;let e=l[i[$]],a="viewport-width"===s[$]?g.viewportWidthMediaQueries[g.viewportWidthMediaQueries.length-1].imWidth:s[$];return e?.src?(0,t.jsx)(m,{media:"all",url:e.src,width:a,onError:w,onLoad:k}):(console.warn("Crop source not found for standalone viewport!"),null)},[$,i,l,s,w,k]),_=(0,a.useMemo)(()=>{let e=i.desktop,a=l[e],r=s.desktop;return a?.src?(0,t.jsx)(m,{media:f.mediaQuery,url:a.src,width:r,onError:w,onLoad:k}):(console.warn(`Crop source not found for desktop viewport! Required crop: ${e}, available crops: ${Object.keys(l).join(", ")}`),null)},[i,l,s,w,k]),I=(0,a.useMemo)(()=>{let e=l[i.tablet],a=s.tablet;return e?.src?(0,t.jsx)(m,{media:h.mediaQuery,url:e.src,width:a,onError:w,onLoad:k}):(console.warn("Crop source not found for tablet viewport!"),null)},[i,l,s,w,k]),T=(0,a.useMemo)(()=>{let e=l[i.mobile],a=s.mobile;return e?.src?"viewport-width"!==a?(0,t.jsx)(m,{media:g.mediaQuery,url:e.src,width:a,onError:w,onLoad:k}):(0,t.jsx)(t.Fragment,{children:g.viewportWidthMediaQueries.map(({mediaQuery:a,imWidth:i})=>(0,t.jsx)(m,{media:a,url:e.src,width:i},a))}):(console.warn("Crop source not found for mobile viewport!"),null)},[i,l,s,w,k]);return(0,t.jsxs)(c,{className:p,ratios:i,isLoaded:"loaded"===C,hasValidSourceDesktop:!!_,hasValidSourceTablet:!!I,hasValidSourceMobile:!!T,disablePlaceholder:u,children:[(0,t.jsxs)(b,{hasError:"errored"===C,hasValidSourceDesktop:!!_,hasValidSourceTablet:!!I,hasValidSourceMobile:!!T,children:[S?x:(0,t.jsxs)(t.Fragment,{children:[_,I,T]}),(0,t.jsx)("img",{alt:e,loading:r,fetchPriority:o})]}),y]})},S=({ratios:e,Placeholder:a,className:i,children:l})=>(0,t.jsx)(a,{ratios:e,isLoaded:!1,className:i,hasValidSourceDesktop:!1,hasValidSourceTablet:!1,hasValidSourceMobile:!1,children:l}),$=r.default.div.withConfig({displayName:"Placeholder__StyledPlaceholder",componentId:"sc-69016a1c-0"})`
45  ${({theme:{colors:{fillWeak:e}},disablePlaceholder:t,ratios:a,isLoaded:i,hasValidSourceDesktop:l,hasValidSourceTablet:s,hasValidSourceMobile:n})=>{let[d,c]=a.desktop.split("_").slice(0,2).map(e=>parseInt(e,10)),[u,p]=a.tablet.split("_").slice(0,2).map(e=>parseInt(e,10)),[m,f]=a.mobile.split("_").slice(0,2).map(e=>parseInt(e,10));return r.css`
46      position: relative;
47      width: 100%;
48      height: 0;
49
50      ${(0,o.desktopCSS)(r.css`
51        background-color: ${i&&l?"transparent":e};
52      `)};
53
54      ${(0,o.tabletCSS)(r.css`
55        background-color: ${i&&s?"transparent":e};
56      `)};
57
58      ${(0,o.mobileCSS)(r.css`
59        background-color: ${i&&n?"transparent":e};
60      `)};
61
62      ${!t?r.css`
63              ${(0,o.desktopCSS)(r.css`
64                padding-bottom: ${100*c/d}%;
65              `)}
66
67              ${(0,o.tabletCSS)(r.css`
68                padding-bottom: ${100*p/u}%;
69              `)}
70
71              ${(0,o.mobileCSS)(r.css`
72                padding-bottom: ${100*f/m}%;
73              `)}
74            `:""}
75    `}}
76`,C=({ratios:e,isLoaded:a,children:i,disablePlaceholder:l,className:s,hasValidSourceDesktop:r,hasValidSourceTablet:o,hasValidSourceMobile:n})=>(0,t.jsx)($,{ratios:e,isLoaded:a,disablePlaceholder:l,className:s,hasValidSourceDesktop:r,hasValidSourceTablet:o,hasValidSourceMobile:n,children:i}),{image:{missingImageSrc:v}}=l.default,w=(0,a.memo)(e=>{let{loading:a,isLazy:i=!0,Placeholder:l=C,children:r,darkModeImage:o,src:n,crops:d,...c}=e,{src:u,crops:p}="dark"===(0,s.default)()&&o?.src?{src:o.src,crops:o.crops}:{src:n,crops:d};return u===v?(0,t.jsx)(S,{ratios:c.ratios,Placeholder:l,className:c.className,children:r}):p?(0,t.jsx)(y,{src:u,crops:p,loading:a??(i?"lazy":void 0),Placeholder:l,...c,children:r}):(console.error("Crops object not found!",e.src),(0,t.jsx)(S,{ratios:c.ratios,Placeholder:l,className:c.className,children:r}))},({src:e,darkModeImage:t,children:a},{src:l,darkModeImage:s,children:r})=>e===l&&t?.src===s?.src&&(0,i.default)(a,r));w.displayName="MemoizedResponsiveImageV2",e.s(["default",0,w],62432)},45110,e=>{"use strict";var t=e.i(80447),a=e.i(99161),i=e.i(81542),l=e.i(75681),s=e.i(34650),r=e.i(94178),o=e.i(15498);let{video:{transparentPoster:n}}=l.default,d=i.default.div.withConfig({displayName:"TeaserBackgroun
76dVideo__VideoWrapper",componentId:"sc-7bda5b11-0"})`
77  position: relative;
78  width: 100%;
79  height: 100%;
80`,c=i.css`
81  ${({theme:{colors:{staticBlack:e}}})=>i.css`
82    pointer-events: none;
83
84    position: absolute;
85    top: 0;
86    left: 0;
87    width: 100%;
88    height: 100%;
89    object-fit: cover;
90    background-color: ${e};
91  `}
92`,u=i.default.video.withConfig({displayName:"TeaserBackgroundVideo__StyledVideo",componentId:"sc-7bda5b11-1"})`
93  ${c}
94  object-fit: cover;
95`,p=(0,i.default)(({src:e,className:i,onPlay:l,onError:s})=>{let[r,n]=(0,a.useState)(!1),d=(0,a.useRef)(void 0),c=(0,a.useCallback)(e=>{d.current=e,n(!0)},[]),u=(0,a.useCallback)(()=>{d.current?.setCurrentCaptions(0),l?.()},[l]);(0,a.useEffect)(()=>{let e=d.current;if(r&&e&&u)return e.on("play",u),()=>{e.off("play",u)}},[u,r]),(0,a.useEffect)(()=>{let e=d.current;if(r&&e&&s)return e.on("error",s),()=>{e.off("error",s)}},[s,r]);let p=(0,a.useMemo)(()=>[{file:e}],[e]);return(0,a.useEffect)(()=>()=>{d.current?.remove()},[]),(0,t.jsx)(o.default,{autostart:!0,mute:!0,controls:!1,className:i,playlist:p,onSetup:c,aspectratio:"16:9",stretching:"exactfit",height:320,width:"100%",displaytitle:!1,pipIcon:"disabled",allowFullscreen:!1,renderCaptionsNatively:!1})}).withConfig({displayName:"TeaserBackgroundVideo__StyledToiBackgroundLiveStreamVideo",componentId:"sc-7bda5b11-2"})`
96  ${c}
97`;e.s(["default",0,({videoId:e,isLiveStream:i=!1,onPlay:l,onStop:o})=>{let c=(0,a.useRef)(void 0),[m,f]=(0,a.useState)(null),[h,g]=(0,a.useState)(!1),{fetchedSourceUrl:b}=(0,r.default)({videoId:e,enabled:!!m,width:640}),y=m&&b&&!h,S=(0,a.useCallback)(e=>{f(e)},[]),$=(0,s.default)({track:!0,threshold:.75,delay:500,onInViewChange:S});(0,a.useEffect)(()=>{y||o?.()},[y,o]);let C=(0,a.useCallback)(()=>{l?.()},[l]),v=(0,a.useCallback)(()=>{c.current&&(clearTimeout(c.current),c.current=void 0),c.current=setTimeout(()=>{g(!1),c.current=void 0},5e3)},[]),w=(0,a.useCallback)(()=>{g(!0),v()},[v]),k=(0,a.useCallback)(()=>{g(!0)},[]);return(0,a.useEffect)(()=>{m||(clearTimeout(c.current),g(!1))},[m]),(0,a.useEffect)(()=>()=>{c.current&&clearTimeout(c.current)},[]),(0,t.jsx)(d,{ref:$,children:y?i?(0,t.jsx)(p,{src:b,onPlay:C,onError:k}):(0,t.jsx)(u,{muted:!0,autoPlay:!0,playsInline:!0,"x-webkit-airplay":"deny",src:b,onPlay:C,onEnded:w,poster:n}):null})}],45110)},82946,1019,53491,e=>{"use strict";var t=e.i(80447),a=e.i(81542),i=e.i(65894),l=e.i(38290);let s=(0,a.default)(l.default).withConfig({displayName:"BlickPlusLogo__StyledBlickPlusLogo",componentId:"sc-97e4625c-0"})`
98  ${({theme:{typography:{subheads:{xlarge:{fontSize:e,lineHeight:t},large1:{fontSize:l,lineHeight:s}}},spacing:{spacing8:r}}})=>a.css`
99    vertical-align: top;
100    margin-right: ${r};
101
102    // catchword line height (in px)
103    height: calc(${l} * ${s});
104    // catchword line height (in px) * blick plus logo aspect ratio
105    width: calc(${l} * ${s} * 54 / 40);
106
107    ${(0,i.desktopCSS)(a.css`
108      height: calc(${e} * ${t});
109      width: calc(${e} * ${t} * 54 / 40);
110    `)};
111  `}
112`;e.s(["default",0,()=>(0,t.jsx)(s,{iconName:"blick-plus-logo",size:18})],82946);let r=a.default.ul.withConfig({displayName:"BulletPoints__StyledBulletPoints",componentId:"sc-f1c39e07-0"})`
113  ${({theme:{spacing:{spacing8:e}}})=>a.css`
114    position: relative;
115    padding: 0;
116    margin: 0;
117    list-style: none;
118    appearance: none;
119    display: grid;
120    grid-row-gap: ${e};
121    align-items: flex-start;
122  `}
123`,o=a.default.li.withConfig({displayName:"BulletPoints__StyledBulletPoint",componentId:"sc-f1c39e07-1"})`
124  ${({theme:{spacing:{spacing8:e},colors:{staticWhite:t},typography:{subheads:{medium2:{bundledCSS:l,fontSize:s,lineHeight:r},large2:{bundledCSS:o,fontSize:n,lineHeight:d}}}},accentColor:c})=>a.css`
125    appearance: none;
126    display: flex;
127    column-gap: ${e};
128    ${l};
129    ${(0,i.desktopCSS)(a.css`
130      ${o};
131    `)};
132    color: ${t};
133
134    &:before {
135      transform: translateY(
136        calc((${s} * ${r} - 8px) / 2)
137      );
138      content: '';
139      display: inline-block;
140      flex: none;
141      width: 8px;
142      height: 8px;
143      background-color: ${c};
144      border-radius: 50%;
145      ${(0,i.desktopCSS)(a.css`
146        transform: translateY(
147          calc((${n} * ${d} - 8px) / 2)
148        );
149      `)};
150    }
151  `}
152`;e.s(["default",0,({accentColor:e,children:a,className:i})=>(0,t.jsx)(r,{className:i,children:a.map((a,i)=>(0,t.jsx)(o,{accentColor:e,children:a},i))})],1019);var n=e.i(99161);
152let d=a.default.div.withConfig({displayName:"Catchword__StyledCatchword",componentId:"sc-ba501c1f-0"})`
153  ${({theme:{spacing:{spacing8:e},colors:{staticWhite:t},typography:{subheads:{xlarge:{bundledCSS:l},large1:{bundledCSS:s}}}}})=>{let r=a.css`
154      ${s};
155      ${(0,i.desktopCSS)(a.css`
156        ${l};
157      `)};
158
159      color: ${t};
160    `;return a.css`
161      position: relative;
162      margin-bottom: ${e};
163      ${r};
164
165      > strong,
166      > p {
167        ${r};
168      }
169
170      > p {
171        margin: 0;
172      }
173    `}}
174`,c=a.default.div.withConfig({displayName:"Catchword__Wrapper",componentId:"sc-ba501c1f-1"})`
175  width: 100%;
176
177  > :nth-child(1) {
178    float: left;
179  }
180
181  :after {
182    content: '';
183    display: table;
184    clear: both;
185  }
186`;e.s(["default",0,({children:e})=>{let a=n.Children.toArray(e);return 1===a.length&&"string"==typeof a[0]?(0,t.jsx)(d,{dangerouslySetInnerHTML:{__html:a[0]}}):(0,t.jsxs)(c,{children:[a[0],(0,t.jsx)(d,{dangerouslySetInnerHTML:{__html:a[1]}})]})}],53491)},47305,36804,3476,85527,20599,81269,67434,40292,e=>{"use strict";var t=e.i(80447),a=e.i(62432);let i={desktop:"1_1",tablet:"3_4",mobile:"3_4"},l={desktop:"3_2",tablet:"1_1",mobile:"1_1"},s={desktop:632,tablet:632,mobile:"viewport-width"};e.s(["default",0,({image:e,layoutTemplate:r,children:o,className:n})=>{let{src:d,alt:c,crops:u}=e;return(0,t.jsx)(a.default,{src:d,alt:c,crops:u,ratios:"big"===r?i:l,widths:s,className:n,children:o})}],47305);var r=e.i(81542);let o=r.default.div.withConfig({displayName:"Label__StyledLabel",componentId:"sc-7ad5e198-0"})`
187  ${({theme:{colors:{staticWhite:e},typography:{catchword:{small2:{bundledCSS:t}}},utils:{ellipsis:a}},labelColor:i})=>r.css`
188    box-sizing: border-box;
189    ${a("100%",1)};
190    display: inline-block;
191    ${t};
192    color: ${e};
193    background-color: ${i};
194    padding: 0.28em 0.4em 0.2em;
195    text-transform: uppercase;
196  `}
197`;e.s(["default",0,({labelColor:e,children:a,className:i})=>(0,t.jsx)(o,{labelColor:e,className:i,children:a})],36804);let n=r.default.div.withConfig({displayName:"PromoLabel__StyledPromoLabel",componentId:"sc-2f487961-0"})`
198  ${({theme:{colors:{staticWhite:e,staticBlack:t},typography:{catchword:{small2:{bundledCSS:a}}}}})=>r.css`
199    display: inline-block;
200    ${a};
201    color: ${t};
202    background-color: ${e};
203    padding: 0.2em 0.4em 0.12em;
204    text-transform: uppercase;
205  `}
206`;e.s(["default",0,({children:e,className:a})=>(0,t.jsx)(n,{className:a,children:e})],3476);let d=r.default.div.withConfig({displayName:"SponsoredLabel__StyledSponsoredLabel",componentId:"sc-5123215c-0"})`
207  ${({theme:{spacing:{spacing8:e},colors:{staticWhite:t},typography:{catchword:{small1:{bundledCSS:a}}}}})=>r.css`
208    display: inline-flex;
209    column-gap: ${e};
210    ${a};
211    color: ${t};
212    text-transform: uppercase;
213  `}
214`;e.s(["default",0,({children:e,className:a})=>(0,t.jsx)(d,{className:a,children:e})],85527);var c=e.i(64932);let u={desktop:{width:120,height:100},tablet:{width:90,height:75},mobile:{width:90,height:75},mobileSmall:{width:90,height:75}};e.s(["default",0,({src:e,alt:a,height:i,width:l})=>(0,t.jsx)(c.default,{src:e,alt:a,originalDimensions:{width:l,height:i},constraints:u})],20599);var p=e.i(65894);let m=r.default.div.withConfig({displayName:"Subtitle__StyledSubtitle",componentId:"sc-332cf36e-0"})`
215  ${({theme:{spacing:{spacing8:e},colors:{staticWhite:t},typography:{subheads:{medium2:{bundledCSS:a},large2:{bundledCSS:i}}}}})=>{let l=r.css`
216      ${a};
217      ${(0,p.desktopCSS)(r.css`
218        ${i};
219      `)};
220
221      color: ${t};
222    `;return r.css`
223      position: relative;
224      margin-top: ${e};
225      ${l};
226
227      > strong,
228      > p {
229        ${l};
230      }
231
232      > p {
233        margin: 0;
234      }
235    `}}
236`;e.s(["default",0,({children:e})=>(0,t.jsx)(m,{dangerouslySetInnerHTML:{__html:e}})],81269);let f=r.default.div.withConfig({displayName:"Title__StyledTitle",componentId:"sc-f7c9ab04-0"})`
237  ${({theme:{colors:{staticWhite:e},typography:{headings:{medium:{bundledCSS:t},large:{bundledCSS:a},xxlarge:{bundledCSS:i},xxxlarge:{bundledCSS:l}}}},layoutTemplate:s})=>{let o=r.css`
238      ${"big"===s?a:t};
239      ${(0,p.desktopCSS)(r.css`
240        ${"big"===s?l:i};
241      `)};
242      color: ${e};
243    `;return r.css`
244      position: relative;
245      ${o};
246
247      > strong,
248      > p {
249        ${o};
250      }
251
252      > p {
253        margin: 0;
254      }
255    `}}
256`;e.s(["default",0,({layoutTemplate:e,children:a})=>(0,t.jsx)(f,{layoutTemplate:e,dangerouslySetInnerHTML:{__html:a}})],67434);let h=r.default.div.withConfig({displayName:"VideoBackground__StyledVideoBackground",componentId:"sc-4ca0e804-0"})`
257  user-select: none;
258  position: absolute;
259  top: 0;
260  left: 0;
261  width: 100%;
262  height: 100%;
263`;e.s(["default",0,({children:e,className:a})=>(0,t.jsx)(h,{className:a,children:e})],40292)},15776,e=>{"use strict";var t=e.i(81542),a=e.i(90265);let i=(0,t.default)(a.default).withConfig({displayName:"Wrapper__TeaserToiCommercialWrapper",componentId:"sc-9ee7b427-0"})`
264  display: block;
265  appearance: none;
266  text-decoration: none;
267`;e.s(["default",0,i])},15498,42883,e=>{"use strict";var t=e.i(80447),a=e.i(99161),i=e.i(67886),l=e.i(10612);let{abTest:{windowKey:s}}=e.i(75681).default,r=({queryClient:e,method:t},...a)=>{"show"===e.getQueryData([s,"showVideoPlayerLogs"])&&console[t??"log"]("VideoPlayer::",...a)};e.s(["logVideoPlayer",0,r],42883);let o=(0,a.memo)(e=>{let l=(0,i.useQueryClient)(),s=(0,a.useRef)(!1),o=(()=>{let e=(0,i.useQueryClient)(),t=e.getQueryCache(),l=(0,a.useRef)(void 0),[s,r]=(0,a.useState)(()=>!!e.getQueryData(["has-jwplayer-script-loaded"])),o=(0,a.useCallback)(t=>{["invalidate"].includes(t?.action?.type)&&"has-jwplayer-script-loaded"===t.query.queryKey[0]&&r(!!e.getQueryData(["has-jwplayer-script-loaded"]))},[e]);return(0,a.useEffect)(()=>(r(!!e.getQueryData(["has-jwplayer-script-loaded"])),l.current=t.subscribe(o),()=>{l.current&&l.current()}),[t,e,o]),(0,a.useEffect)(()=>{e.getQueryData(["trigger-jwplayer-script-loading-func"])?.load?.()},[e]),s})(),n=(0,a.useRef)(null),d=(0,a.useCallback)(()=>{if(n.current){let t=window?.jwplayer(n.current);if(t){let{onSetup:a,...i}=e,s={...i,key:l.getQueryData(["jwplayer-key"])};r({queryClient:l},"initialize::",t,s),a?.(t),t.setup(s)}}},[l,e]);return(0,a.useEffect)(()=>{!s.current&&o&&(r({queryClient:l},"isJWPlayerScriptLoaded::shouldInitialize"),s.current=!0,d())},[o,s,d,l]),(0,t.jsx)("div",{className:e.className,"data-chromatic":"ignore",children:(0,t.jsx)("div",{id:e.widgetId,ref:n})})},(e,t)=>(0,l.default)(e.playlist,t.playlist));e.s(["default",0,o],15498)},7692,e=>{"use strict";var t=e.i(80447),a=e.i(81542),i=e.i(4655),l=e.i(36151),s=e.i(38290);let r=a.default.div.withConfig({displayName:"VideoLabel__StyledVideoLabel",componentId:"sc-2b06b31e-0"})`
268  ${({theme:{colors:{staticWhite:e,fillBrand:t},spacing:{spacing4:i,spacing8:l,spacing96:s},typography:{subheads:{xsmall1:{bundledCSS:r}}}}})=>a.css`
269    position: relative;
270    user-select: none;
271    display: inline-flex;
272    background-color: ${t};
273    border-radius: ${s};
274    padding: 6px ${l};
275    ${r};
276    color: ${e};
277    text-transform: uppercase;
278    column-gap: ${i};
279  `}
280`;e.s(["default",0,({isInVideoPoster:e=!1,contentType:o,duration:n,className:d})=>{let c=(0,a.useTheme)(),u=(0,l.isLiveStream)(n),p="video"===o||"bite"===o;return(0,t.jsxs)(r,{className:d,children:[!e&&(u||p)&&(0,t.jsx)(s.default,{iconName:"video-play-sharp-filled",color:c.colors.staticWhite,size:14}),u?(0,i.default)("video.liveLabel"):p||e?(0,l.formatDuration)(n):(0,i.default)("video.withVideoLabel")]})}])},88998,44073,47109,94178,e=>{"use strict";var t=e.i(99161),a=e.i(40756),i=e.i(34650),l=e.i(53112),s=e.i(17810),r=e.i(36151),o=e.i(67886),n=e.i(6344);let d=()=>{let e,a,i,l,s,r,d,c=(0,t.useRef)(void 0),u=(e=(0,o.useQueryClient)(),a=(0,t.useCallback)(()=>e.getQueryData(["active-animated-preview"]),[e]),i=(0,t.useCallback)(t=>{e.setQueryData(["active-animated-preview"],t),e.invalidateQueries({queryKey:["active-animated-preview"],exact:!0})},[e]),(0,t.useCallback)(e=>{i("function"==typeof e?e(a()):e)},[a,i])),{getAnimatedPreviewsList:p,setAnimatedPreviewsList:m}=(l=(0,o.useQueryClient)(),s=(0,t.useCallback)(()=>l.getQueryData(["animated-previews-list"])??[],[l]),r=(0,t.useCallback)(e=>
280{l.setQueryData(["animated-previews-list"],e),l.invalidateQueries({queryKey:["animated-previews-list"],exact:!0})},[l]),d=(0,t.useCallback)(e=>{r("function"==typeof e?e(s()):e)},[s,r]),{getAnimatedPreviewsList:s,setAnimatedPreviewsList:d}),f=(0,t.useCallback)((e=-1)=>(0,n.getNextCircularItem)(p(),e),[p]),h=(0,t.useCallback)(()=>{p()?.length&&u(e=>{let t=e||f();if(t)return t})},[p,f,u]),g=(0,t.useCallback)(e=>{m(t=>[...t,e]),h()},[h,m]),b=(0,t.useCallback)(e=>{m(t=>t.filter(t=>!(0,n.isTheSameInstance)(t,e))),h()},[h,m]),y=(0,t.useCallback)(e=>{u(e)},[u]),S=(0,t.useCallback)(e=>{c.current&&(clearTimeout(c.current),c.current=void 0),c.current=setTimeout(()=>{let t=p();1===t.length&&(0,n.isTheSameInstance)(t[0],e)&&u(t=>t||e),c.current=void 0},5e3)},[p,u]);return{registerAnimatedPreview:g,deRegisterAnimatedPreview:b,playAnimatedPreview:y,playNextAnimatedPreview:(0,t.useCallback)(()=>{u(e=>{if(e){let t=p(),a=f(t.findIndex(t=>(0,n.isTheSameInstance)(t,e)));if(a)return 1===t.length&&(0,n.isTheSameInstance)(a,e)?(S(a),null):a}})},[p,f,S,u])}};e.s(["default",0,({video:e,articleUrl:o})=>{let n=e?.videoId,c=!!e&&(0,r.isLiveStream)(e.duration),u=!!e?.isAnimatedPreviewDisabled,p=(0,l.default)(e?.geoblocking),m=!!n&&!c&&!p&&!u&&!(0,a.default)(),f=(0,t.useRef)(null),[h,g]=(0,t.useState)(null),{registerAnimatedPreview:b,deRegisterAnimatedPreview:y,playAnimatedPreview:S}=d(),$=(0,s.default)({track:m,elementRef:f}),C=(0,t.useCallback)(e=>{g(e)},[]),v=(0,i.default)({track:m,threshold:.75,delay:500,onInViewChange:C});return(0,t.useEffect)(()=>{m&&(h?b({videoId:n,articleUrl:o,wrapperRef:f}):!1===h&&y({videoId:n,articleUrl:o,wrapperRef:f}))},[b,y,h,n,p,o,m]),(0,t.useEffect)(()=>()=>{m&&y({videoId:n,articleUrl:o,wrapperRef:f})},[y,n,p,o,m]),(0,t.useEffect)(()=>{m&&$&&S({videoId:n,articleUrl:o,wrapperRef:f})},[$,S,n,p,o,m]),(0,t.useCallback)(e=>{m&&(f.current=e,v(e))},[v,m])}],88998);var c=e.i(80447),u=e.i(81542),p=e.i(75681);let{video:{transparentPoster:m}}=p.default,f=u.default.video.withConfig({displayName:"AnimatedPreview__StyledVideo",componentId:"sc-79ceb0d0-0"})`
281  ${({isVisible:e})=>u.css`
282    position: absolute;
283    top: 0;
284    left: 0;
285    width: 100%;
286    height: 100%;
287    object-fit: cover;
288    transition: opacity 0.3s ease-in-out;
289    pointer-events: none;
290    background-color: black;
291    opacity: ${+!!e};
292  `}
293`,h=({videoId:e,articleUrl:a})=>{let i=(()=>{let e=(0,o.useQueryClient)(),a=(0,t.useRef)(void 0),i=e.getQueryCache(),[l,s]=(0,t.useState)(()=>e.getQueryData(["active-animated-preview"])),r=(0,t.useCallback)(t=>{t?.action?.type==="invalidate"&&"active-animated-preview"===t.query.queryKey[0]&&s(e.getQueryData(["active-animated-preview"]))},[e]);return(0,t.useEffect)(()=>(a.current=i.subscribe(r),()=>{a.current&&a.current()}),[i,r]),l})(),{playNextAnimatedPreview:l}=d(),[s,r]=(0,t.useState)(!1),u=(0,t.useRef)(null),p=(0,t.useRef)(0),h=i?.videoId===e&&i?.articleUrl===a,g=(0,t.useMemo)(()=>(0,n.getVideoPreviewURL)(e,640),[e]);(0,t.useEffect)(()=>{h||r(!1)},[h]);let b=(0,t.useCallback)(()=>{r(!0)},[]),y=(0,t.useCallback)(()=>{l()},[l]),S=(0,t.useCallback)(e=>{let t=e.target.currentTime??0;p.current>t&&y(),p.current=t},[y]),$=(0,t.useCallback)(e=>{p.current=0,u.current=e},[]);return h?(0,c.jsx)(f,{muted:!0,autoPlay:!0,loop:!0,playsInline:!0,ref:$,src:g,onPlay:b,"x-webkit-airplay":"deny",onTimeUpdate:S,isVisible:s,poster:m}):null};e.s(["default",0,h],44073),e.s(["default",0,({articleUrl:e,video:t})=>t?(0,c.jsx)(h,{videoId:t.videoId,articleUrl:e}):null],47109);let{video:{videoMetadataUrl:g}}=p.default;e.s(["default",0,({videoId:e,enabled:a=!0,width:i=640})=>{let[l,s]=(0,t.useState)(),r=(0,t.useCallback)(()=>{fetch(`${g}${[e]}`).then(e=>e.json()).catch(e=>console.error(e)).then(e=>{s(e?.playlist?.[0])})},[e]);return(0,t.useEffect)(()=>{a&&e&&!l&&r()},[l,r,a,e]),{fetchedSourceUrl:(0,t.useMemo)(()=>l?.sources?((e,t)=>{if(1===e.length)return e[0].file;let a=e?.filter(e=>"video/mp4"===e.type),i=a?.find(e=>e.width===t),l=a?.sort((e,t)=>e.width-t.width).find(e=>e.width<t);return i?.file||l?.file||a[0]?.file})(l?.sources,i):void 0,[l?.sources,i])}}],94178)},34650,e=>{"use strict";var t=e.i(99161),a=e.i(2748);e.s(["default",0,({threshold:e,track:i=!0,delay:l,onInViewChange:s})=>{let{ref:r,inView:o}=(0,a.useInView)({threshold:e,delay:l,skip:!i});return(0,t.useEffect)(()=>{s(o)},[o,s]),r}])},53112,17810,e=>{"use strict";var t=e.i(67370);e.s(["default",0,e=>!(0,t.default)()&&"block_all_except_switzerland"===e],53112);var a=e.i(99161);e.s(["default",0,({elementRef:e,track:t=!0})=>{let[i,l]=(0,a.useState)(!1),s=(0,a.useCallback)(()=>{l(!0)},[]),r=(0,a.useCallback)(()=>{l(!1)},[]);return(0,a.useEffect)(()=>{let a=e.current;return t&&a&&(a.addEventListener("mouseenter",s),a.addEventListener("mouseleave",r)),()=>{t&&a&&(a.removeEventListener("mouseenter",s),a.removeEventListener("mouseleave",r))}},[e,s,r,t]),i}],17810)},40756,e=>{"use strict";e.s(["default",0,function(e){let t=e||void 0!==globalThis.window&&globalThis;return!!(t&&(/Chromatic/.test(t.navigator.userAgent)||/chromatic=true/.test(t.location.href)))}])},26311,e=>{"use strict";
293var t=e.i(80447),a=e.i(99161),i=e.i(50050),l=e.i(81542),s=e.i(65894),r=e.i(88998),o=e.i(4653),n=e.i(67979),d=e.i(66918),c=e.i(51609),u=e.i(79161),p=e.i(47109),m=e.i(45110),f=e.i(82946),h=e.i(1019),g=e.i(53491),b=e.i(47305),y=e.i(36804),S=e.i(3476),$=e.i(85527),C=e.i(20599),v=e.i(81269),w=e.i(67434),k=e.i(40292),x=e.i(15776),_=e.i(7692);let I=new Set(["localhost","local.blick.ch","127.0.0.1"]),T=["www","ring","next"],j=e=>"/fr"===e||e.startsWith("/fr/"),E=l.default.div.withConfig({displayName:"TeaserToiCommercial__TextStack",componentId:"sc-637a46fa-0"})`
294  display: grid;
295  grid-template-columns: minmax(0, 1fr);
296  align-items: flex-start;
297  justify-items: flex-start;
298  position: relative;
299  z-index: 1;
300`,L=l.default.div.withConfig({displayName:"TeaserToiCommercial__GradientStack",componentId:"sc-637a46fa-1"})`
301  ${({theme:{colors:{staticBlack:e},spacing:{spacing24:t,spacing32:a,spacing16:i},utils:{opacity:r}},isEditorial:o})=>{let n=o?t:a;return l.css`
302      position: relative;
303      box-sizing: border-box;
304      width: 100%;
305      display: grid;
306      grid-template-columns: minmax(0, 1fr);
307      align-items: flex-start;
308      justify-items: flex-start;
309      padding: 0 ${o?i:t} ${t};
310
311      ${(0,s.desktopCSS)(l.css`
312        padding: 0 ${n} ${n};
313      `)}
314      &:before {
315        content: '';
316        position: absolute;
317        z-index: -1;
318        top: -80px;
319        left: 0;
320        width: 100%;
321        height: calc(100% + 80px);
322        background: linear-gradient(
323          2deg,
324          ${r(e,"99")} 60%,
325          ${r(e,"00")} 90%
326        );
327      }
328    `}}
329`,N=l.default.div.withConfig({displayName:"TeaserToiCommercial__GridWrapper",componentId:"sc-637a46fa-2"})`
330  position: absolute;
331  height: 100%;
332  width: 100%;
333  display: grid;
334  grid-template-rows: minmax(0, 1fr);
335  grid-template-columns: minmax(0, 1fr);
336  align-items: flex-end;
337`,V=(0,l.default)(b.default).withConfig({displayName:"TeaserToiCommercial__StyledImageComponent",componentId:"sc-637a46fa-3"})`
338  ${({theme:{spacing:{spacing12:e,spacing16:t,spacing56:a},colors:{staticBlack:i,staticWhite:r},utils:{opacity:o}},hasBorder:n,isCompact:d})=>l.css`
339    &:after {
340      content: '';
341      position: absolute;
342      top: 0;
343      left: 0;
344      z-index: 0;
345      width: 100%;
346      height: 60px;
347
348      ${d?(0,s.mobileAndTabletCSS)(l.css`
349              height: ${a};
350            `):""};
351
352      background: linear-gradient(
353        180deg,
354        ${o(i,"BF")} 0%,
355        ${o(i,"00")} 100%
356      );
357    }
358
359    ${n?l.css`
360            &:before {
361              content: '';
362              position: absolute;
363              top: ${e};
364              right: ${e};
365              bottom: ${e};
366              left: ${e};
367              ${(0,s.desktopCSS)(l.css`
368                top: ${t};
369                right: ${t};
370                bottom: ${t};
371                left: ${t};
372              `)}
373              border: 1px solid ${r};
374              z-index: 2;
375            }
376          `:""};
377  `}
378`,P=(0,l.default)(k.default).withConfig({displayName:"TeaserToiCommercial__StyledVideoBackground",componentId:"sc-637a46fa-4"})`
379  ${({isVisible:e})=>l.css`
380    opacity: ${+!!e};
381    transition: opacity 0.3s ease-in-out;
382  `}
383`,D=(0,l.default)(y.default).withConfig({displayName:"TeaserToiCommercial__StyledLabel",componentId:"sc-637a46fa-5"})`
384  ${({theme:{spacing:{spacing8:e,spacing16:t,spacing24:a,spacing32:i}},isEditorial:r})=>{let o=r?a:i,n=r?t:a;return l.css`
385      margin-bottom: ${e};
386      margin-left: ${n};
387      max-width: calc(100% - 2 * ${n});
388      ${(0,s.desktopCSS)(l.css`
389        margin-left: ${o};
390        max-width: calc(100% - 2 * ${o});
391      `)};
392    `}}
393`,R=(0,l.default)(_.default).withConfig({displayName:"TeaserToiCommercial__StyledVideoLabel",componentId:"sc-637a46fa-6"})`
394  ${({theme:{spacing:{spacing8:e,spacing16:t,spacing24:a,spacing32:i}},isEditorial:r})=>l.css`
395    margin-bottom: ${e};
396    margin-left: ${r?t:a};
397    ${(0,s.desktopCSS)(l.css`
398      margin-left: ${r?a:i};
399    `)};
400  `}
401`,M=(0,l.default)(h.default).withConfig({displayName:"TeaserToiCommercial__StyledBulletPoints",componentId:"sc-637a46fa-7"})`
402  ${({theme:{spacing:{spacing8:e}}})=>l.css`
403    margin-top: ${e};
404  `}
405`,Q=(0,l.default)(S.default).withConfig({displayName:"TeaserToiCommercial__StyledPromoLabel",componentId:"sc-637a46fa-8"})`
406  ${({theme:{spacing:{spacing24:e,spacing32:t}}})=>l.css`
407    position: absolute;
408    top: ${e};
409    ${(0,s.desktopCSS)(l.css`
410      top: ${t};
411    `)};
412    left: 50%;
413    transform: translateX(-50%);
414    z-index: 2;
415  `}
416`,U=(0,l.default)($.default).withConfig({displayName:"TeaserToiCommercial__StyledSponsoredLabel",componentId:"sc-637a46fa-9"})`
417  ${({theme:{spacing:{spacing24:e,spacing32:t,spacing16:a}},isEditorial:i})=>l.css`
418    position: absolute;
419    top: ${e};
420    right: ${i?a:e};
421    ${(0,s.desktopCSS)(l.css`
422      top: ${i?e:t};
423      right: ${i?e:t};
424    `)};
425    z-index: 2;
426  `}
427`,A=e=>{let{title:l,link:s,image:h,contentType:b,accentColor:y,supertitle:S,premium:$,video:k,badge:_,bulletpoints:A,layoutTemplate:B,commercialType:z,commercial:O,teaserVideo:W,storyId:H,contentOrigin:Y,track:F,aureusOfferId:K,aureusData:q}=e,G=(0,i.useRouter)(),J="compact"===B,X=!!W,[Z,ee]=(0,a.useState)(!1),et=(0,a.useCallback)(()=>{ee(!0)},[]),ea=(0,a.useCallback)(()=>{ee(!1)},[]),ei=(0,a.useCallback)(()=>({event:"teaser_impression",eventCategory:k?"video_teaser":"article_teaser",eventLabel:`${H}:${(0,c.stripHtml)(l)}`,eventAction:"impression",is_branded:!!Y,link_url:s.href}),[k,H,l,Y,s.href]),el=(0,a.useCallback)(()=>({event:"contentcommerce_impression",eventCategory:"BrandStudio",eventAction:"Impression / Brandstudio"}),[]),es=(0,a.useCallback)(()=>({event:"teaser_click",eventCategory:k?"video_teaser":"article_teaser",eventLabel:`${H}:${(0,c.stripHtml)(l)}`,eventAction:"click",id:H,is_branded:!!Y,link_url:s.href}),[k,H,l,Y,s.href]),er=(0,d.default)(ei),eo=(0,d.default)(el),en=(0,d.default)(es),ed=F?.features.includes("click"),ec=F?.features.includes("impression"),eu=(0,a.useCallback)(()=>{ec&&(er(),eo())}
427,[ec,er,eo]),ep={aureusOfferId:K,aureusData:q,storyUUID:H,...ed?{onClick:en}:{},...s},em="editorial"===z,ef=(0,r.default)({video:k,articleUrl:ep.href}),eh=(0,u.default)({onImpression:eu,track:!0}),eg=(0,n.default)((0,a.useMemo)(()=>[ef,eh],[ef,eh])),eb=(0,o.default)();return(0,t.jsx)(x.default,{...eb?function(e){try{let t,a,i=new URL(e),l=i.searchParams.get("adurl");if(!l)return null;let s=(a=((t=new URL(l)).hostname.endsWith(".blick.ch")?t.hostname.slice(0,-9):"").split(".").some(e=>T.some(t=>e.includes(t))),I.has(t.hostname)||a?`${window.location.origin}${t.pathname}${t.search}${t.hash}`:t.toString()),r=`${window.location.origin}/fr/native-navigation/?redirectTo=${encodeURIComponent(s)}`;if(!((e,t)=>{try{let a=new URL(e),i=new URL(t),l=a.hostname===i.hostname||I.has(a.hostname)&&I.has(i.hostname);return a.protocol===i.protocol&&a.port===i.port&&l&&j(a.pathname)===j(i.pathname)}catch{return!1}})(s,r))return{href:i.toString(),target:"_blank"};return i.searchParams.set("adurl",r),{href:i.toString(),target:"_self"}}catch{return null}}(G.query.clickUrl)??{href:"",target:"_self"}:ep,ref:eg,children:(0,t.jsxs)(V,{...{layoutTemplate:B,image:h},hasBorder:!em,isCompact:J,children:[X&&(0,t.jsx)(P,{isVisible:Z,children:(0,t.jsx)(m.default,{videoId:W.videoId,onPlay:et,onStop:ea})}),!!k&&!X&&(0,t.jsx)(p.default,{video:k,articleUrl:s?.href}),(0,t.jsxs)(N,{children:["promo"===z?(0,t.jsx)(Q,{children:O.label}):(0,t.jsxs)(U,{isEditorial:em,children:[O.label,!!O.logo&&(0,t.jsx)(C.default,{...O.logo})]}),(0,t.jsxs)(E,{children:[!!k&&(0,t.jsx)(R,{duration:k.duration,contentType:b,isEditorial:em}),!!_&&(0,t.jsx)(D,{labelColor:y,isEditorial:em,children:_}),(0,t.jsxs)(L,{isEditorial:em,children:[(!!$||!!S)&&(0,t.jsxs)(g.default,{children:[$&&(0,t.jsx)(f.default,{}),S]}),(0,t.jsx)(w.default,{layoutTemplate:B,children:l}),!!A&&(0,t.jsx)(M,{accentColor:y,children:A}
427),!A&&!!e.subtitle&&(0,t.jsx)(v.default,{children:e.subtitle})]})]})]})]})})};e.s(["TeaserToiCommercialComponent",0,A,"default",0,{kind:"teaser-toi-commercial",component:A}])},36151,e=>{"use strict";var t=e.i(75681);e.i(5543);var a=e.i(68409),i=e.i(35260);let l={VOD:"vod",LIVE:"live",LIVE_IN_ARTICLE:"live_in_article",BITE:"bite"},{date:{timeInputFormat:s},video:{durationFormat:r,durationFormatWithHours:o}}=t.default,n=e=>-1===e||e===1/0;e.s(["PLAYER_MODES",0,{OVERLAY:"overlay",INLINE:"inline",FASTLANE:"fastlane"},"PLAYER_TYPES",0,l,"VIDEO_TYPES",0,{YOUTUBE:"youtube",BLICKTV:"blicktv",VOD:"vod",LIVE:"live"},"formatDuration",0,(e,t)=>null==e||e<0?"--:--":a.dayjs.duration(Number(e),s).format(t||(e>=3600?o:r)),"getPlayerType",0,({isBlickTV:e,duration:t})=>e?l.LIVE:-1===t?l.LIVE_IN_ARTICLE:l.VOD,"getPosterImageUrl",0,e=>e?.crops?.["16_9"]?.src||e?.src,"getTextWithExtraColon",0,e=>`${e}${[":","!","?","."].some(t=>e.endsWith(t))?"":":"}`,"getVideoTypeParam",0,({duration:e,shortVideoLengthThresholdInSeconds:t})=>n(e)?i.VIDEO_TYPES.LIVESTREAM:void 0===e?i.VIDEO_TYPES.DEFAULT:Number.isInteger(e)?e>=t?i.VIDEO_TYPES.LONGFORM:i.VIDEO_TYPES.SHORTFORM:i.VIDEO_TYPES.DEFAULT,"isLiveStream",0,n,"shouldAutoplay",0,(e,t)=>{let a=n(e);return t||a}])}]);
428
429//# debugId=0749b6e5-328d-5709-9a50-0555b7e69f6e
430//# sourceMappingURL=2wnckpyeyw8mr.js.map

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.