1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3295],{25676:(e,o,t)=>{"use strict";t.r(o),t.d(o,{default:()=>x});var i=t(37876),a=t(14232),n=t(8805),s=t(7649),l=t(93131),c=t(21298),r=t(40563),d=t(15039),_=t.n(d),u=t(70508),p=t(82107),v=t(623),y=t(3288),m=t(20629),f=t(57156),k=t(60171),h=t(83170),w=t.n(h);function x(e){var o;let{autoPlay:t=!1,className:d,controls:h=!t,customPosterImage:x,fill:b=!1,video:C,sizes:g,aspectRatio:N}=e,j=C.width&&C.height?"".concat(C.width," / ").concat(C.height):void 0,[E,I]=(0,a.useState)(!1),T=(0,a.useRef)(null),P=(0,a.useRef)(null),R=(0,a.useRef)(null),O=(0,u.W)(T,{amount:"some",margin:"500px",once:!t}),[S,A]=(0,a.useState)(!1),[L,G]=(0,a.useState)(!1),M=(0,p.useTranslations)("web.shared"),{consents:z}=function(){let[e,o]=(0,a.useState)(()=>({cookie_cat_functional:!1,cookie_cat_marketing:!1,cookie_cat_necessary:!1,cookie_cat_statistic:!1,cookie_cat_unclassified:!1}));return(0,a.useEffect)(()=>{let e=e=>{let{detail:t}=e;o(t.consents)};return(async()=>{o((await function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100;return new Promise(o=>{let t=()=>{window.CookieInformation?o(window.CookieInformation):setTimeout(t,e)};t()})}()).getStatusOfUsedConsentTypes())})(),window.addEventListener("CookieInformationConsentGiven",e),()=>{window.removeEventListener("CookieInformationConsentGiven",e)}},[]),{consents:e}}(),V={style:{aspectRatio:N||j},streamType:"on-demand",disableCookies:!z.cookie_cat_statistic,disableTracking:!z.cookie_cat_statistic,playbackId:C.muxPlaybackId,preload:t?"none":"metadata",src:C.muxPlaybackId?void 0:(0,f.i)(C.url)},W=(0,s.r)(L),X=x||(null==(o=C.properties.posterImage)?void 0:o[0]),q=JSON.stringify(z.cookie_cat_statistic);return(0,l.E)({opened:L}),(0,c.O)([["Escape",()=>G(!1)]]),(0,a.useLayoutEffect)(()=>{A(!window.matchMedia("(hover: hover)").matches)},[]),(0,a.useLayoutEffect)(()=>{P.current&&t&&(O?P.current.play().catch(()=>{}):P.current.pause())},[O,t,q]),(0,a.useEffect)(()=>{!L&&R.current&&R.current.pause()},[L]),(0,i.jsxs)("div",{className:_()(w().video,d,{[w()["video--fill"]]:b}),style:{aspectRatio:N},ref:T,children:[(0,a.createElement)(r.Ay,{...V,key:t?void 0:q,onClick:()=>{if(!E&&!t){var e,o;S?null==(e=P.current)||e.play():(G(!0),null==(o=R.current)||o.play())}},onPause:()=>{I(!1)},onPlaying:()=>{I(!0)},className:w().video__element,controls:t?h:E&&h,loop:t,muted:t,poster:X?void 0:function(e){if(e.muxPlaybackId){var o;return"https://image.mux.com/".concat(e.muxPlaybackId,"/thumbnail.jpg?width=").concat(1e3,"&fit_mode=pad&time=").concat((null==e||null==(o=e.properties)?void 0:o.posterTimestamp)||0)}}(C),ref:P,disableCookies:!0,disableTracking:!0,playsInline:!0}),X&&(0,i.jsx)(y.j,{aspectRatio:N,className:w().video__poster,cropAlias:N?k.wX[N]:void 0,image:X,sizes:g,style:{display:E?"none":void 0}}),(0,i.jsxs)(v.K,{onClick:()=>{var e,o;S?null==(e=P.current)||e.play():(G(!0),null==(o=R.current)||o.play())},style:{display:E||t?"none":void 0,position:"absolute"},className:w().video__play,children:[(0,i.jsx)("span",{className:"visually-hidden",children:M("playVideo")}),(0,i.jsx)(m.A,{})]}),(0,i.jsx)(n.Z,{children:(0,i.jsxs)("div",{className:_()(w().player,{[w()["player--open"]]:L}),ref:W,children:[(0,a.createElement)(r.Ay,{...V,key:q,className:w().player__video,ref:R,tabIndex:0,controls:!0}),(0,i.jsx)("button",{onClick:()=>{G(!1)},className:w().player__close,type:"button",children:M("closeModal")})]})})]})}},83170:e=>{e.exports={video:"video_video__OVxc_","video--fill":"video_video--fill__A02x6",video__element:"video_video__element__4FscM",video__play:"video_video__play__vqxCu",video__poster:"video_video__poster__jOOTf",player:"video_player__WuHzR",player__video:"video_player__video__Nb8id",player__close:"video_player__close__nGB2Q","player--open":"video_player--open__jRNXl"}}}]);
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.