1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1183],{81183:function(e,t,n){"use strict";n.r(t),n.d(t,{PLAYING_EVENT_NAME:function(){return v}});var a=n(85893),i=n(99838),r=n.n(i),l=n(67294),s=n(82573),o=n.n(s),u=n(35756),d=n.n(u),c=n(99436),p=n(92079),y=n(5809),v="playingVideo",f=function(e,t){if("PLAY"===t.type){var n=t.payload.item,a=d().parse(n.code||"");if("youtube"===(null===a||void 0===a?void 0:a.provider)&&(null===a||void 0===a?void 0:a.id)&&t.payload.ytPlayerEl){var i=function(e,t){var n=new(o())(e);n.load(t,!0);var a=Math.random();n.on("playing",(function(){window.dispatchEvent(new CustomEvent(v,{detail:{playerId:a}}))}));var i=function(e){e.detail.playerId!==a&&n.pause()};return{player:n,listener:i}}(t.payload.ytPlayerEl,a.id);return{status:"playYt",player:i.player,listener:i.listener}}return n.code?{status:"playIframe",code:n.code}:e}return e};t.default=function(e){var t,n=e.item,i=(0,l.useRef)(null),s=(0,l.useReducer)(f,{status:"idle"}),o=s[0],u=s[1],d=(0,y.Z)();return(0,l.useEffect)((function(){return"playYt"===o.status&&window.addEventListener(v,o.listener),function(){"playYt"===o.status&&(window.removeEventListener(v,o.listener),o.player.destroy())}}),[o]),(0,a.jsxs)("div",{className:r().bg,children:[(0,a.jsx)(p.Z,{src:(null===(t=n.image)||void 0===t?void 0:t.image_800)||d,alt:"cover"}),"idle"===o.status&&(0,a.jsx)(c.Z,{onClick:function(){u({type:"PLAY",payload:{item:n,ytPlayerEl:i.current}})}}),(0,a.jsx)("div",{ref:i}),"playIframe"===o.status&&(0,a.jsx)("div",{dangerouslySetInnerHTML:{__html:o.code}})]})}},99436:function(e,t,n){"use strict";var a=n(85893),i=n(52125),r=n(31206),l=n.n(r);t.Z=function(e){var t=e.onClick,n=e.size,r=(0,i.F)().isMobile?60:70;return(0,a.jsx)("button",{type:"button",style:{"--size":"".concat(n||r,"px")},className:l().play,onClick:function(){t&&t()},children:(0,a.jsx)("svg",{viewBox:"0 0 45 45",children:(0,a.jsx)("path",{d:"M22.4860071,0 C10.087394,0 0,10.087394 0,22.4860071 C0,34.8846201 10.087394,44.9720141 22.4860071,44.9720141 C34.8846201,44.9720141 44.9720141,34.8846201 44.9720141,22.4860071 C44.9720141,10.087394 34.8846201,0 22.4860071,0 Z M16.8645053,33.7287721 L16.8645053,11.242924 L33.7290106,22.4857686 L16.8645053,33.7287721 Z"})})})}},99838:function(e){e.exports={bg:"Video_bg__slQA0"}},31206:function(e){e.exports={play:"PlayIcon_play__JXJjw"}}}]);
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.