1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[823,491],{823:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return u}});var n=r(6156),o=r(5893),c=r(4280),s=r(9223),i=r(1491);function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){(0,n.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var u=function(e){var t=e.appearance,r=void 0===t?"default":t,n=e.context,a=e.column,u=void 0===a?{sizes:{xs:12,sm:6}}:a,d=e.data,p=void 0===d?[]:d;return p.length?(0,o.jsx)("div",{className:"video-list video-list--".concat(r," margin-top-2 margin-bottom-2"),children:(0,o.jsx)(s.default,{gutter:"gutter",children:p.map((function(e,t){return(0,o.jsx)(c.default,l(l({},u),{},{children:(0,o.jsx)(i.default,l(l({context:n},e),{},{cancelLazy:!0,appearance:r}))}),t)}))})}):null}},1491:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return d}});var n=r(6156),o=r(5893),c=r(7375),s=r(7294),i=r(7756);var a=r(5123);function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){(0,n.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var d=function(e){var t=e.appearance,r=void 0===t?"default":t,n=e.autoPlay,l=void 0!==n&&n,d=e.category,p=(e.children,e.className),f=e.context,v=e.controls,m=void 0===v||v,j=e.description,y=(e.external,e.filter),b=e.formats,h=void 0===b?{}:b,x=e.formatsLight,g=void 0===x?h:x,O=e.poster,w=void 0===O?"":O,P=e.preload,E=void 0===P?"none":P,N=e.posterMedium,k=e.posterSmall,L=e.subtitle,D=e.title,S=e.cancelLazy,z=(0,c.Z)(e,["appearance","autoPlay","category","children","className","context","controls","description","external","filter","formats","formatsLight","poster","preload","posterMedium","posterSmall","subtitle","title","cancelLazy"]),C=(0,s.use
1State)(l),F=C[0],R=C[1],q=(0,s.useRef)(),A=(0,s.useRef)(),_=Boolean(Object.values(h).length),B=function(){var e=(0,s.useState)(!1),t=e[0],r=e[1];return(0,s.useEffect)((function(){return r(!0)}),[]),t}(),T=null,Z=function(e){var t=document.getElementsByTagName("video");Array.from(t).forEach((function(t){t.autoplay||e.target===t||t.pause()})),q.current&&(q.current.style.opacity="0"),R(!0)},M=function(){q.current&&(q.current.style.opacity="1"),R(!1)},X=function(){return B?(0,i.FJ)()&&N?N:(0,i.XA)()&&k?k:w:null},Y=function(){A.current&&T&&!A.current.hasAttribute("poster")&&((window.scrollY||document.documentElement.scrollTop)>300&&A.current.setAttribute("poster",e.poster))};function G(){A.current.requestFullscreen?A.current.requestFullscreen():A.current.webkitRequestFullscreen?A.current.webkitRequestFullscreen():A.current.msRequestFullscreen&&A.current.msRequestFullscreen()}var J=function(){var e=A.current;e.paused?e.play():e.pause()},V=function(){return F?(0,o.jsxs)("div",{className:"video-controls",children:[(0,o.jsx)("button",{className:"video-controls-button",onClick:J,children:(0,o.jsx)(a.default,{name:"pause",size:"large"})}),(0,o.jsx)("button",{className:"video-controls-fullscreen-button",onClick:G,children:(0,o.jsx)(a.default,{name:"fullscreen",size:"small"})})]}):(0,o.jsx)("button",{className:"video-play-button",onClick:J,children:"material"===r?(0,o.jsx)("img",{src:"/icons/icon-play.svg",alt:"GoT\xfcrkiye Video"}):(0,o.jsx)(a.default,{name:"play-arrow",size:"xlarge"})})};if((0,s.useEffect)((function(){return _&&(A.current.addEventListener("play",Z,!0),A.current.addEventListener("pause",M,!0),l&&A.current.play()),e.poster&&(T=A.current.getBoundingClientRect(),window.addEventListener("scroll",Y,!0)),function(){_&&(A.current.removeEventListener("play",Z,!0),A.current.removeEventListener("pause",M,!0)),e.poster&&window.removeEventListener("scroll",Y,!0)}}),[]),_){var H=z.src||"",I={};return S?I.poster=X():I["data-poster"]=X(),(0,o.jsxs)("div",{className:["video-player","video-player--".concat(r),p].filter((function(e){return e})).join(" "),children:[(0,o.jsxs)("div",{className:"video-wrapper",children:[(0,o.jsxs)("video",u(u(u({className:"video-target",autoPlay:l,onCanPlay:function(){l&&A.current.play()},ref:A,style:{filter:y},preload:"none"!==E?"true":"none"},I),z),{},{src:_&&H&&!w?"".concat(H,"#t=0.001"):void 0,children:[function(){var e="light"===(null===f||void 0===f?void 0:f.post.theme)&&null!==g&&void 0!==g&&g.mp4?g:h;if(B){if((0,i.XA)()&&e.webm)return(0,o.jsx)("source",{src:w?e.webm:"".concat(e.webm,"#t=0.001"),type:"video/mp4"});if(e.mp4)return(0,o.jsx)("source",{src:w?e.mp4:"".concat(e.mp4,"#t=0.001"),type:"video/mp4"})}}(),"Your browser does not support the video tag."]})),m&&(0,o.jsx)(V,{})]}),d||D||L||j?(0,o.jsxs)("div",{className:"video-content-wrapper",ref:q,children:["material"===r?(0,o.jsxs)("div",{className:"video-content",children:[d&&(0,o.jsx)("h6",{children:d}),L&&(0,o.jsx)("h5",{children:L}),D&&(0,o.jsx)("h4",{children:D}),j&&(0,o.jsx)("p",{children:j})]}):(0,o.jsxs)("div",{className:"video-content",children:[d&&(0,o.jsx)("h6",{children:d}),D&&(0,o.jsx)("h4",{children:D}),L&&(0,o.jsx)("h5",{children:L}),j&&(0,o.jsx)("p",{children:j})]}),(0,o.jsx)("div",{className:"video-backdrop"})]}):null]})}return null}}}]);
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.