1import{N as n}from"./notFound-Cr0KC2gK.js";import{i as s,u as d,j as e}from"../indexDG-t2xYb.js";import{M as a}from"./miniGameStatuses-CB_BySm9.js";import{W as l}from"./index-CbwTSuiS.js";import{u as x}from"./useBranding-IbJA2ISi.js";import{B as g}from"./index-_wH0_aWu.js";import"./withDraggableScroll-eelHqWwn-DjyzrmXO.js";import"./picture-CvC75irv-BKcKF0i3.js";import"./update-swiper-B1V2aUn_.js";/** 2 * @name fu-widgets 3 * @version 5.5.0 4 * @copyright 2026 Sportal.bg 5 * @license All rights reserved. Unauthorized copying or distribution is strictly prohibited. 6 * Proprietary and confidential. 7 */const m=d(g)``,h=d.div` 8 display: flex; 9 justify-content: center; 10 flex-direction: column; 11 max-width: 950px; 12 margin: 0 auto; 13 padding: 10px; 14 border-radius: 20px; 15 box-shadow: 0 3px 10px 5px ${({theme:r})=>r.colors.content.black}; 16 17 ${({theme:r})=>r.applyLightThemeStyles(s` 18 box-shadow: 0 3px 10px 5px #00000040; 19 `)} 20 21 &:only-child { 22 border-radius: 20px; 23 } 24 25 &:has(${m}) { 26 padding-bottom: 0; 27 } 28 29 ${({$backgroundColor:r})=>s` 30 background-color: ${r}; 31 `} 32`,f=({data:r,completionSection:t})=>{const{backgroundColor:o,mainLogo:i,mobileLogo:c,href:u}=x(r.branding);return e.jsxs(h,{$backgroundColor:o,children:[e.jsx(l,{gameData:r,endData:t}),i&&e.jsx(m,{main:i,mobile:c,href:u})]})},p={},b=({data:r,completionSection:t,endGame:o})=>p[o]&&a.ended.includes(r.status)?p[o]:a.playable.includes(r.status)?e.jsx(f,{data:r,completionSection:t}):e.jsx(n,{}),S=async({id:r,completionSection:t,endGame:o})=>{if(!r)return console.error(`EitherOr widget missing initial data: id: ${r}`),[{},n];try{return[{data:await window.FU.sdk.miniGames.getEitherOrById(r),completionSection:JSON.parse(t??"{}"),endGame:o},b]}catch(i){return console.error(`EitherOr widget with id: ${r}`,i),[{},n]}};export{S as default};
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.