1"use strict";(self.webpackChunkbotb_nextjs_app=self.webpackChunkbotb_nextjs_app||[]).push([[1288],{1288:(e,a,l)=>{l.r(a),l.d(a,{default:()=>i});var t=l(4848),s=l(6540);function i({sliceData:e}){const[a,l]=(0,s.useState)(!1),i=e.data.judgesMediaUrl,d=e=>/^[A-Za-z0-9_-]{11}$/.test(e),r=e=>e.startsWith("https://www.youtube"),o=d(i)||r(i)||/\.(mp4|webm|mov|avi|mkv|m4v|flv|wmv|3gp|mpeg|mpg|ogv)(\?.*)?(#.*)?$/i.test(i);return e.data.shouldShowJudgeSection?"Image"===e.data.judgesMediaType?e.data.judgesMediaUrl?(0,t.jsx)("div",{className:"lg:min-w-[666px] lg:rounded-lg relative",children:(0,t.jsx)("img",{src:e.data.judgesMediaUrl||"https://placehold.co/666x455",alt:"Image winner",width:666,height:455,className:"w-full h-auto lg:rounded-lg"})}):(0,t.jsx)(t.Fragment,{}):o?(0,t.jsx)("div",{className:"lg:min-w-[666px] lg:rounded-lg relative",children:a?d(e.data.judgesMediaUrl)||r(e.data.judgesMediaUrl)?(0,t.jsx)("iframe",{className:"w-full h-auto lg:rounded-lg aspect-video",src:`https://www.youtube-nocookie.com/embed/${e.data.judgesMediaUrl}?autoplay=1&enablejsapi=1&modestbranding=1&rel=0&playsinline=1`,title:"Winner video",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0}):(0,t.jsx)("video",{width:666,height:455,controls:!0,autoPlay:!0,playsInline:!0,className:"w-full h-auto aspect-video lg:rounded-lg",preload:"auto",children:(0,t.jsx)("source",{src:e.data.judgesMediaUrl,type:"video/mp4"})}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("button",{onClick:()=>l(!0),className:"absolute inset-0 size-full flex items-center justify-center",children:(0,t.jsx)("img",{src:"/assets/images/winners/video-play-btn.webp",alt:"Play Video",width:80,height:80,className:"size-10 lg:size-20 aspect-square shrink-0"})}),(0,t.jsx)("img",{src:e.data.mediaThumbnailUrl||"https://placehold.co/666x455",alt:"video winner",width:666,height:455,className:"w-full h-auto lg:rounded-lg"})]})}):(0,t.jsx)("div",{className:"lg:min-w-[666px] lg:rounded-lg relative",children:(0,t.jsx)("img",{src:e.data.mediaThumbnailUrl||"https://placehold.co/666x455",alt:"video winner",width:666,height:455,className:"w-full h-auto lg:rounded-lg"})}):(0,t.jsx)(t.Fragment,{})}}}]); 2//# sourceMappingURL=1288.45bcad72bca11d427cb7.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.