oraculo-ui 0.1.9 → 0.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,31 +1,13 @@
1
1
  import {
2
2
  OraculoSeccionClubOlimpo_default
3
3
  } from "./chunk-2D7ZJMJV.mjs";
4
- import {
5
- OraculoSeccionTopJuegos
6
- } from "./chunk-DKP3HTEP.mjs";
7
4
  import {
8
5
  OraculoSeccionCasinoEnVivo_default
9
6
  } from "./chunk-PVY5Z3JS.mjs";
10
7
  import {
11
- OraculoSeccionCasino_default
12
- } from "./chunk-AFPCFXMZ.mjs";
13
- import {
14
- OraculoSeccionVirtuales_default
15
- } from "./chunk-YY5T37WR.mjs";
16
- import {
17
- ChevronLeftRounded_default,
18
- ChevronRightRounded_default
19
- } from "./chunk-AIT7B2J3.mjs";
20
- import {
21
- OraculoSectionTitle
22
- } from "./chunk-5GTDKE3I.mjs";
23
- import {
8
+ OraculoCarousel_default,
24
9
  OraculoSeccionBonoBienvenida_default
25
- } from "./chunk-WPLILXPP.mjs";
26
- import {
27
- OraculoCarousel_default
28
- } from "./chunk-VHW77D2M.mjs";
10
+ } from "./chunk-4LBAYKDQ.mjs";
29
11
  import {
30
12
  OraculoButton
31
13
  } from "./chunk-IJQLK4NO.mjs";
@@ -19748,15 +19730,749 @@ var require_src3 = __commonJS({
19748
19730
  });
19749
19731
 
19750
19732
  // src/organisms/OraculoSeccionDestacados/OraculoSeccionDestacados.tsx
19751
- import { useRef, useState as useState2 } from "react";
19733
+ import { useRef as useRef3, useState as useState4 } from "react";
19734
+
19735
+ // ../node_modules/@mui/icons-material/esm/utils/createSvgIcon.js
19736
+ import { createSvgIcon } from "@mui/material/utils";
19737
+
19738
+ // ../node_modules/@mui/icons-material/esm/ChevronLeftRounded.js
19739
+ import { jsx as _jsx } from "react/jsx-runtime";
19740
+ var ChevronLeftRounded_default = createSvgIcon(/* @__PURE__ */ _jsx("path", {
19741
+ d: "M14.71 6.71a.996.996 0 0 0-1.41 0L8.71 11.3c-.39.39-.39 1.02 0 1.41l4.59 4.59c.39.39 1.02.39 1.41 0s.39-1.02 0-1.41L10.83 12l3.88-3.88c.39-.39.38-1.03 0-1.41"
19742
+ }), "ChevronLeftRounded");
19743
+
19744
+ // ../node_modules/@mui/icons-material/esm/ChevronRightRounded.js
19745
+ import { jsx as _jsx2 } from "react/jsx-runtime";
19746
+ var ChevronRightRounded_default = createSvgIcon(/* @__PURE__ */ _jsx2("path", {
19747
+ d: "M9.29 6.71c-.39.39-.39 1.02 0 1.41L13.17 12l-3.88 3.88c-.39.39-.39 1.02 0 1.41s1.02.39 1.41 0l4.59-4.59c.39-.39.39-1.02 0-1.41L10.7 6.7c-.38-.38-1.02-.38-1.41.01"
19748
+ }), "ChevronRightRounded");
19749
+
19750
+ // src/atoms/OraculoSectionTitle/OraculoSectionTitle.tsx
19751
+ import { jsx, jsxs } from "react/jsx-runtime";
19752
+ function OraculoSectionTitle({
19753
+ title,
19754
+ iconUrl,
19755
+ size = "md",
19756
+ className = ""
19757
+ }) {
19758
+ const sizeClass = size ? `orc-section-title--${size}` : "";
19759
+ const wrapperClass = [
19760
+ "orc-section-title",
19761
+ sizeClass,
19762
+ className
19763
+ ].filter(Boolean).join(" ");
19764
+ return /* @__PURE__ */ jsxs("div", { className: wrapperClass, children: [
19765
+ iconUrl && /* @__PURE__ */ jsx(
19766
+ "img",
19767
+ {
19768
+ src: iconUrl,
19769
+ alt: "",
19770
+ className: "orc-section-title__icon"
19771
+ }
19772
+ ),
19773
+ /* @__PURE__ */ jsx("h2", { className: "orc-section-title__title", children: title })
19774
+ ] });
19775
+ }
19776
+
19777
+ // src/molecules/OraculoGameRankCard/OraculoGameRankCard.tsx
19778
+ import Box2 from "@mui/material/Box";
19779
+
19780
+ // src/molecules/OraculoGameCard/OraculoGameCard.tsx
19781
+ import Box from "@mui/material/Box";
19782
+ import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
19783
+ var OraculoGameCard = ({
19784
+ imageUrl,
19785
+ onClick,
19786
+ size = "sm",
19787
+ fillParent = false
19788
+ }) => {
19789
+ const dim = size === "lg" ? { w: 280, h: 352 } : { w: 152, h: 168 };
19790
+ const handleButtonClick = (e) => {
19791
+ e.stopPropagation();
19792
+ onClick == null ? void 0 : onClick();
19793
+ };
19794
+ const sizeStyles = fillParent ? { width: "100%", height: "100%" } : { width: `${dim.w}px`, height: `${dim.h}px` };
19795
+ return /* @__PURE__ */ jsxs2(
19796
+ Box,
19797
+ {
19798
+ onClick,
19799
+ role: "button",
19800
+ sx: {
19801
+ position: "relative",
19802
+ borderRadius: "12px",
19803
+ overflow: "hidden",
19804
+ boxSizing: "border-box",
19805
+ transition: "transform .15s ease, box-shadow .15s ease",
19806
+ ...sizeStyles,
19807
+ "&:hover": {
19808
+ transform: "translateY(-2px)",
19809
+ boxShadow: 8,
19810
+ cursor: "pointer"
19811
+ },
19812
+ "&:hover .oraculo-game-card-overlay": {
19813
+ opacity: 1
19814
+ },
19815
+ "&:hover .oraculo-game-card-btn": {
19816
+ opacity: 1,
19817
+ transform: "translate(-50%, -50%) scale(1)",
19818
+ pointerEvents: "auto"
19819
+ }
19820
+ },
19821
+ children: [
19822
+ /* @__PURE__ */ jsx2(
19823
+ "img",
19824
+ {
19825
+ src: imageUrl,
19826
+ alt: "Juego de casino",
19827
+ loading: "lazy",
19828
+ style: {
19829
+ width: "100%",
19830
+ height: "100%",
19831
+ objectFit: "cover",
19832
+ display: "block",
19833
+ borderRadius: "inherit"
19834
+ }
19835
+ }
19836
+ ),
19837
+ /* @__PURE__ */ jsx2(
19838
+ Box,
19839
+ {
19840
+ className: "oraculo-game-card-overlay",
19841
+ sx: {
19842
+ position: "absolute",
19843
+ inset: 0,
19844
+ backgroundColor: "rgba(0, 0, 0, 0.45)",
19845
+ opacity: 0,
19846
+ transition: "opacity .15s ease",
19847
+ pointerEvents: "none",
19848
+ zIndex: 1
19849
+ }
19850
+ }
19851
+ ),
19852
+ /* @__PURE__ */ jsx2(
19853
+ Box,
19854
+ {
19855
+ className: "oraculo-game-card-btn",
19856
+ sx: {
19857
+ position: "absolute",
19858
+ top: "50%",
19859
+ left: "50%",
19860
+ zIndex: 2,
19861
+ transform: "translate(-50%, -50%) scale(0.95)",
19862
+ opacity: 0,
19863
+ transition: "opacity .15s ease, transform .15s ease",
19864
+ pointerEvents: "none"
19865
+ },
19866
+ children: /* @__PURE__ */ jsx2(OraculoButton, { variant: "primary", onClick: handleButtonClick, children: "JUGAR" })
19867
+ }
19868
+ )
19869
+ ]
19870
+ }
19871
+ );
19872
+ };
19873
+ var OraculoGameCard_default = OraculoGameCard;
19874
+
19875
+ // src/molecules/OraculoGameRankCard/OraculoGameRankCard.tsx
19876
+ import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
19877
+ function OraculoGameRankCard({
19878
+ imageUrl,
19879
+ orden = 1,
19880
+ onClick,
19881
+ sizes = {
19882
+ xs: { w: 104, h: 112, r: 18, font: 48 },
19883
+ md: { w: 186, h: 264, r: 22.6, font: 64 }
19884
+ }
19885
+ }) {
19886
+ var _a, _b, _c, _d;
19887
+ const getVal = (k, def) => {
19888
+ var _a2, _b2, _c2, _d2;
19889
+ return {
19890
+ xs: (_b2 = (_a2 = sizes.xs) == null ? void 0 : _a2[k]) != null ? _b2 : def,
19891
+ md: (_d2 = (_c2 = sizes.md) == null ? void 0 : _c2[k]) != null ? _d2 : def
19892
+ };
19893
+ };
19894
+ const W = getVal("w", 186);
19895
+ const H = getVal("h", 264);
19896
+ const R = getVal("r", 22.6);
19897
+ const F = getVal("font", 64);
19898
+ const hang = {
19899
+ xs: Math.round(((_b = (_a = sizes.xs) == null ? void 0 : _a.font) != null ? _b : 64) * 0.28),
19900
+ md: Math.round(((_d = (_c = sizes.md) == null ? void 0 : _c.font) != null ? _d : 64) * 0.28)
19901
+ };
19902
+ return /* @__PURE__ */ jsxs3(
19903
+ Box2,
19904
+ {
19905
+ sx: {
19906
+ position: "relative",
19907
+ width: "100%",
19908
+ maxWidth: { xs: `${W.xs}px`, md: `${W.md}px` },
19909
+ aspectRatio: {
19910
+ xs: `${W.xs}/${H.xs}`,
19911
+ md: `${W.md}/${H.md}`
19912
+ },
19913
+ borderRadius: { xs: `${R.xs}px`, md: `${R.md}px` },
19914
+ boxSizing: "border-box",
19915
+ overflow: "visible",
19916
+ pb: { xs: `${hang.xs}px`, md: `${hang.md}px` }
19917
+ },
19918
+ children: [
19919
+ /* @__PURE__ */ jsx3(
19920
+ Box2,
19921
+ {
19922
+ sx: {
19923
+ position: "absolute",
19924
+ inset: 0,
19925
+ borderRadius: "inherit",
19926
+ overflow: "hidden"
19927
+ },
19928
+ children: /* @__PURE__ */ jsx3(
19929
+ OraculoGameCard_default,
19930
+ {
19931
+ imageUrl,
19932
+ onClick,
19933
+ size: "lg",
19934
+ fillParent: true
19935
+ }
19936
+ )
19937
+ }
19938
+ ),
19939
+ /* @__PURE__ */ jsx3(
19940
+ Box2,
19941
+ {
19942
+ component: "span",
19943
+ sx: {
19944
+ position: "absolute",
19945
+ left: 8,
19946
+ bottom: {
19947
+ xs: `-${hang.xs}px`,
19948
+ md: `-${hang.md}px`
19949
+ },
19950
+ fontFamily: "secondary",
19951
+ fontSize: {
19952
+ xs: `${F.xs}px`,
19953
+ md: `${F.md}px`
19954
+ },
19955
+ lineHeight: 1,
19956
+ color: "#3CC666",
19957
+ WebkitTextStroke: "1px #9ee86e",
19958
+ zIndex: 3,
19959
+ userSelect: "none"
19960
+ },
19961
+ children: orden
19962
+ }
19963
+ )
19964
+ ]
19965
+ }
19966
+ );
19967
+ }
19968
+
19969
+ // src/molecules/OraculoGameSlide/OraculoGameSlide.tsx
19970
+ import Box3 from "@mui/material/Box";
19971
+ import { jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
19972
+ var GAP = 12;
19973
+ var OraculoGameSlide = ({
19974
+ items,
19975
+ layout = "grid",
19976
+ onClick
19977
+ }) => {
19978
+ var _a;
19979
+ if (layout === "mosaic") {
19980
+ const big = items[0];
19981
+ const smalls = items.slice(1, 5);
19982
+ return /* @__PURE__ */ jsxs4(
19983
+ Box3,
19984
+ {
19985
+ sx: {
19986
+ display: "grid",
19987
+ gridTemplateRows: {
19988
+ xs: `repeat(2, 112px)`,
19989
+ md: `repeat(2, 168px)`
19990
+ },
19991
+ gridTemplateColumns: {
19992
+ xs: `184px`,
19993
+ md: `280px`
19994
+ },
19995
+ gridAutoFlow: "column",
19996
+ gridAutoColumns: {
19997
+ xs: `104px`,
19998
+ md: `152px`
19999
+ },
20000
+ columnGap: `${GAP}px`,
20001
+ rowGap: `${GAP}px`,
20002
+ alignItems: "stretch",
20003
+ justifyItems: "stretch"
20004
+ },
20005
+ children: [
20006
+ big && /* @__PURE__ */ jsx4(
20007
+ Box3,
20008
+ {
20009
+ sx: {
20010
+ width: { xs: 184, md: 280 },
20011
+ height: { xs: 234, md: 352 },
20012
+ gridRow: "1 / span 2",
20013
+ overflow: "hidden",
20014
+ borderRadius: 2
20015
+ },
20016
+ children: /* @__PURE__ */ jsx4(
20017
+ OraculoGameCard_default,
20018
+ {
20019
+ imageUrl: `https://olimpo.bet${(_a = big.imageUrl) != null ? _a : ""}`,
20020
+ size: "lg",
20021
+ fillParent: true,
20022
+ onClick: () => onClick == null ? void 0 : onClick(big, 0)
20023
+ }
20024
+ )
20025
+ }
20026
+ ),
20027
+ smalls.map((it, index) => {
20028
+ var _a2;
20029
+ return /* @__PURE__ */ jsx4(
20030
+ Box3,
20031
+ {
20032
+ sx: {
20033
+ width: { xs: 104, md: 152 },
20034
+ height: { xs: 112, md: 168 },
20035
+ overflow: "hidden",
20036
+ borderRadius: 2
20037
+ },
20038
+ children: /* @__PURE__ */ jsx4(
20039
+ OraculoGameCard_default,
20040
+ {
20041
+ imageUrl: `https://olimpo.bet${(_a2 = it.imageUrl) != null ? _a2 : ""}`,
20042
+ size: "sm",
20043
+ fillParent: true,
20044
+ onClick: () => onClick == null ? void 0 : onClick(it, index + 1)
20045
+ }
20046
+ )
20047
+ },
20048
+ it.id
20049
+ );
20050
+ })
20051
+ ]
20052
+ }
20053
+ );
20054
+ }
20055
+ return /* @__PURE__ */ jsx4(
20056
+ Box3,
20057
+ {
20058
+ sx: {
20059
+ display: "grid",
20060
+ gridTemplateColumns: {
20061
+ xs: `repeat(2, 104px)`,
20062
+ md: `repeat(2, 152px)`
20063
+ },
20064
+ gridTemplateRows: {
20065
+ xs: `repeat(2, 112px)`,
20066
+ md: `repeat(2, 168px)`
20067
+ },
20068
+ gap: `${GAP}px`,
20069
+ gridAutoFlow: "column"
20070
+ },
20071
+ children: items.map((it, index) => {
20072
+ var _a2, _b;
20073
+ return /* @__PURE__ */ jsx4(
20074
+ Box3,
20075
+ {
20076
+ sx: {
20077
+ overflow: "hidden",
20078
+ borderRadius: 2
20079
+ },
20080
+ children: /* @__PURE__ */ jsx4(
20081
+ OraculoGameCard_default,
20082
+ {
20083
+ imageUrl: `https://olimpo.bet${(_b = it.imageUrl) != null ? _b : ""}`,
20084
+ size: "sm",
20085
+ fillParent: true,
20086
+ onClick: () => onClick == null ? void 0 : onClick(it, index)
20087
+ }
20088
+ )
20089
+ },
20090
+ (_a2 = it.id) != null ? _a2 : index
20091
+ );
20092
+ })
20093
+ }
20094
+ );
20095
+ };
20096
+ var OraculoGameSlide_default = OraculoGameSlide;
20097
+
20098
+ // src/organisms/OraculoSeccionTopJuegos/OraculoSeccionTopJuegos.tsx
20099
+ import { useMemo } from "react";
20100
+ import Stack from "@mui/material/Stack";
20101
+ import Box4 from "@mui/material/Box";
20102
+ import { jsx as jsx5, jsxs as jsxs5 } from "react/jsx-runtime";
20103
+ function OraculoSeccionTopJuegos({
20104
+ items,
20105
+ title = "Top Juegos",
20106
+ iconUrl,
20107
+ onCardClick
20108
+ }) {
20109
+ const normalizedItems = useMemo(
20110
+ () => items.map((item, index) => {
20111
+ var _a;
20112
+ return {
20113
+ ...item,
20114
+ // si no viene orden, usamos el índice (1-based)
20115
+ orden: (_a = item.orden) != null ? _a : index + 1,
20116
+ _originalIndex: index
20117
+ };
20118
+ }).sort((a, b) => {
20119
+ if (a.orden != null && b.orden != null) return a.orden - b.orden;
20120
+ return a._originalIndex - b._originalIndex;
20121
+ }),
20122
+ [items]
20123
+ );
20124
+ return /* @__PURE__ */ jsx5("section", { style: { width: "100%" }, children: /* @__PURE__ */ jsxs5(Stack, { direction: "column", spacing: 2, useFlexGap: true, children: [
20125
+ /* @__PURE__ */ jsx5(OraculoSectionTitle, { title, iconUrl, size: "md" }),
20126
+ /* @__PURE__ */ jsx5(
20127
+ Box4,
20128
+ {
20129
+ sx: {
20130
+ display: "grid",
20131
+ gridTemplateColumns: {
20132
+ xs: "repeat(3, minmax(0, 1fr))",
20133
+ md: "repeat(6, minmax(0, 1fr))"
20134
+ },
20135
+ gap: { xs: 1.5, md: 2 },
20136
+ justifyItems: "center",
20137
+ width: "100%"
20138
+ },
20139
+ children: normalizedItems.slice(0, 6).map((juego) => {
20140
+ var _a;
20141
+ return /* @__PURE__ */ jsx5(
20142
+ OraculoGameRankCard,
20143
+ {
20144
+ imageUrl: `https://olimpo.bet${(_a = juego.logo) != null ? _a : ""}`,
20145
+ orden: juego.orden,
20146
+ onClick: () => onCardClick == null ? void 0 : onCardClick(juego)
20147
+ },
20148
+ juego.machine
20149
+ );
20150
+ })
20151
+ }
20152
+ )
20153
+ ] }) });
20154
+ }
20155
+
20156
+ // src/organisms/OraculoSeccionCasino/OraculoSeccionCasino.tsx
20157
+ import { useRef, useState } from "react";
20158
+ import Stack2 from "@mui/material/Stack";
20159
+ import Box5 from "@mui/material/Box";
20160
+ import { jsx as jsx6, jsxs as jsxs6 } from "react/jsx-runtime";
20161
+ var buildCasinoSlides = (games, mosaicFirst = true, gridSize = 4) => {
20162
+ const baseItems = games.map((g, idx) => {
20163
+ var _a, _b, _c;
20164
+ return {
20165
+ id: (_b = (_a = g.orden) != null ? _a : g.machine) != null ? _b : idx,
20166
+ imageUrl: (_c = g.logo) != null ? _c : ""
20167
+ };
20168
+ });
20169
+ if (!baseItems.length) return [];
20170
+ const slides = [];
20171
+ let start = 0;
20172
+ if (mosaicFirst) {
20173
+ const take = Math.min(baseItems.length, 5);
20174
+ slides.push({
20175
+ id: "mosaic-0",
20176
+ kind: "mosaic",
20177
+ items: baseItems.slice(0, take)
20178
+ });
20179
+ start = take;
20180
+ }
20181
+ while (start < baseItems.length) {
20182
+ const end = Math.min(start + gridSize, baseItems.length);
20183
+ slides.push({
20184
+ id: `grid-${start}`,
20185
+ kind: "grid",
20186
+ items: baseItems.slice(start, end)
20187
+ });
20188
+ start = end;
20189
+ }
20190
+ return slides;
20191
+ };
20192
+ var OraculoSeccionCasino = ({
20193
+ items,
20194
+ title = "Casino",
20195
+ iconUrl = "/assets/img/home/Casino/diamante.svg",
20196
+ onItemClick,
20197
+ onViewMore,
20198
+ mosaicFirst = true,
20199
+ gridSize = 4
20200
+ }) => {
20201
+ const carouselRef = useRef(null);
20202
+ const [navState, setNavState] = useState({ isStart: true, isEnd: false });
20203
+ const slides = buildCasinoSlides(items, mosaicFirst, gridSize);
20204
+ const handlePrev = () => {
20205
+ var _a;
20206
+ (_a = carouselRef.current) == null ? void 0 : _a.prev();
20207
+ };
20208
+ const handleNext = () => {
20209
+ var _a;
20210
+ (_a = carouselRef.current) == null ? void 0 : _a.next();
20211
+ };
20212
+ const handleViewMore = () => {
20213
+ onViewMore == null ? void 0 : onViewMore();
20214
+ };
20215
+ return /* @__PURE__ */ jsx6("section", { children: /* @__PURE__ */ jsxs6(Stack2, { direction: "column", spacing: 2, useFlexGap: true, children: [
20216
+ /* @__PURE__ */ jsxs6(
20217
+ Box5,
20218
+ {
20219
+ sx: {
20220
+ display: "grid",
20221
+ gridTemplateColumns: "1fr auto auto",
20222
+ alignItems: "center",
20223
+ columnGap: 1.5,
20224
+ rowGap: 1
20225
+ },
20226
+ children: [
20227
+ /* @__PURE__ */ jsx6(
20228
+ OraculoSectionTitle,
20229
+ {
20230
+ title,
20231
+ iconUrl,
20232
+ size: "md"
20233
+ }
20234
+ ),
20235
+ /* @__PURE__ */ jsxs6(
20236
+ Box5,
20237
+ {
20238
+ sx: {
20239
+ display: "flex",
20240
+ gap: 1,
20241
+ justifyContent: "flex-end"
20242
+ },
20243
+ children: [
20244
+ /* @__PURE__ */ jsx6(
20245
+ OraculoButton,
20246
+ {
20247
+ ariaLabel: "Anterior",
20248
+ variant: "secondary",
20249
+ iconOnly: true,
20250
+ leftIcon: /* @__PURE__ */ jsx6(ChevronLeftRounded_default, {}),
20251
+ onClick: handlePrev,
20252
+ disabled: navState.isStart
20253
+ }
20254
+ ),
20255
+ /* @__PURE__ */ jsx6(
20256
+ OraculoButton,
20257
+ {
20258
+ ariaLabel: "Siguiente",
20259
+ variant: "secondary",
20260
+ iconOnly: true,
20261
+ rightIcon: /* @__PURE__ */ jsx6(ChevronRightRounded_default, {}),
20262
+ onClick: handleNext,
20263
+ disabled: navState.isEnd
20264
+ }
20265
+ )
20266
+ ]
20267
+ }
20268
+ ),
20269
+ /* @__PURE__ */ jsx6(Box5, { sx: { justifySelf: "end" }, children: /* @__PURE__ */ jsx6(OraculoButton, { variant: "secondary", onClick: handleViewMore, children: "Ver m\xE1s" }) })
20270
+ ]
20271
+ }
20272
+ ),
20273
+ /* @__PURE__ */ jsx6(
20274
+ OraculoCarousel_default,
20275
+ {
20276
+ ref: carouselRef,
20277
+ items: slides,
20278
+ perPage: 1,
20279
+ gap: "0px",
20280
+ options: {
20281
+ autoWidth: true,
20282
+ gap: "12px",
20283
+ trimSpace: false,
20284
+ pagination: false,
20285
+ arrows: false,
20286
+ drag: true,
20287
+ focus: "start"
20288
+ },
20289
+ renderItem: (slide) => /* @__PURE__ */ jsx6("div", { style: { alignSelf: "start" }, children: /* @__PURE__ */ jsx6(
20290
+ OraculoGameSlide_default,
20291
+ {
20292
+ items: slide.items,
20293
+ layout: slide.kind === "mosaic" ? "mosaic" : "grid",
20294
+ onClick: (itm) => {
20295
+ const game = items.find(
20296
+ (g, idx) => {
20297
+ var _a;
20298
+ return ((_a = g.orden) != null ? _a : idx) === itm.id;
20299
+ }
20300
+ );
20301
+ if (game) onItemClick == null ? void 0 : onItemClick(game);
20302
+ }
20303
+ }
20304
+ ) }),
20305
+ onMove: ({ isStart, isEnd }) => setNavState({ isStart, isEnd })
20306
+ }
20307
+ )
20308
+ ] }) });
20309
+ };
20310
+ var OraculoSeccionCasino_default = OraculoSeccionCasino;
20311
+
20312
+ // src/organisms/OraculoSeccionVirtuales/OraculoSeccionVirtuales.tsx
20313
+ import { useRef as useRef2, useState as useState2 } from "react";
20314
+ import Stack3 from "@mui/material/Stack";
20315
+ import Box6 from "@mui/material/Box";
20316
+ import { jsx as jsx7, jsxs as jsxs7 } from "react/jsx-runtime";
20317
+ var buildVirtualSlides = (games, mosaicFirst = true, gridSize = 4) => {
20318
+ const baseItems = games.map((g, idx) => {
20319
+ var _a, _b;
20320
+ return {
20321
+ id: (_a = g.orden) != null ? _a : idx,
20322
+ imageUrl: (_b = g.logo) != null ? _b : ""
20323
+ };
20324
+ });
20325
+ if (!baseItems.length) return [];
20326
+ const slides = [];
20327
+ let start = 0;
20328
+ if (mosaicFirst) {
20329
+ const take = Math.min(baseItems.length, 5);
20330
+ slides.push({
20331
+ id: "mosaic-0",
20332
+ kind: "mosaic",
20333
+ items: baseItems.slice(0, take)
20334
+ });
20335
+ start = take;
20336
+ }
20337
+ while (start < baseItems.length) {
20338
+ const end = Math.min(start + gridSize, baseItems.length);
20339
+ slides.push({
20340
+ id: `grid-${start}`,
20341
+ kind: "grid",
20342
+ items: baseItems.slice(start, end)
20343
+ });
20344
+ start = end;
20345
+ }
20346
+ return slides;
20347
+ };
20348
+ var OraculoSeccionVirtuales = ({
20349
+ items,
20350
+ title = "Virtuales",
20351
+ iconUrl = "/assets/img/home/Virtuales/virtuales.svg",
20352
+ onItemClick,
20353
+ onViewMore,
20354
+ mosaicFirst = true,
20355
+ gridSize = 4
20356
+ }) => {
20357
+ const carouselRef = useRef2(null);
20358
+ const [navState, setNavState] = useState2({ isStart: true, isEnd: false });
20359
+ const slides = buildVirtualSlides(items, mosaicFirst, gridSize);
20360
+ const handlePrev = () => {
20361
+ var _a;
20362
+ (_a = carouselRef.current) == null ? void 0 : _a.prev();
20363
+ };
20364
+ const handleNext = () => {
20365
+ var _a;
20366
+ (_a = carouselRef.current) == null ? void 0 : _a.next();
20367
+ };
20368
+ const handleViewMore = () => {
20369
+ onViewMore == null ? void 0 : onViewMore();
20370
+ };
20371
+ return /* @__PURE__ */ jsx7("section", { children: /* @__PURE__ */ jsxs7(Stack3, { direction: "column", spacing: 2, useFlexGap: true, children: [
20372
+ /* @__PURE__ */ jsxs7(
20373
+ Box6,
20374
+ {
20375
+ sx: {
20376
+ display: "grid",
20377
+ gridTemplateColumns: "1fr auto auto",
20378
+ alignItems: "center",
20379
+ columnGap: 1.5,
20380
+ rowGap: 1
20381
+ },
20382
+ children: [
20383
+ /* @__PURE__ */ jsx7(
20384
+ OraculoSectionTitle,
20385
+ {
20386
+ title,
20387
+ iconUrl,
20388
+ size: "md"
20389
+ }
20390
+ ),
20391
+ /* @__PURE__ */ jsxs7(
20392
+ Box6,
20393
+ {
20394
+ sx: {
20395
+ display: "flex",
20396
+ gap: 1,
20397
+ justifyContent: "flex-end"
20398
+ },
20399
+ children: [
20400
+ /* @__PURE__ */ jsx7(
20401
+ OraculoButton,
20402
+ {
20403
+ ariaLabel: "Anterior",
20404
+ variant: "secondary",
20405
+ iconOnly: true,
20406
+ leftIcon: /* @__PURE__ */ jsx7(ChevronLeftRounded_default, {}),
20407
+ onClick: handlePrev,
20408
+ disabled: navState.isStart
20409
+ }
20410
+ ),
20411
+ /* @__PURE__ */ jsx7(
20412
+ OraculoButton,
20413
+ {
20414
+ ariaLabel: "Siguiente",
20415
+ variant: "secondary",
20416
+ iconOnly: true,
20417
+ rightIcon: /* @__PURE__ */ jsx7(ChevronRightRounded_default, {}),
20418
+ onClick: handleNext,
20419
+ disabled: navState.isEnd
20420
+ }
20421
+ )
20422
+ ]
20423
+ }
20424
+ ),
20425
+ /* @__PURE__ */ jsx7(Box6, { sx: { justifySelf: "end" }, children: /* @__PURE__ */ jsx7(OraculoButton, { variant: "secondary", onClick: handleViewMore, children: "Ver m\xE1s" }) })
20426
+ ]
20427
+ }
20428
+ ),
20429
+ /* @__PURE__ */ jsx7(
20430
+ OraculoCarousel_default,
20431
+ {
20432
+ ref: carouselRef,
20433
+ items: slides,
20434
+ perPage: 1,
20435
+ gap: "0",
20436
+ options: {
20437
+ autoWidth: true,
20438
+ gap: "12px",
20439
+ trimSpace: false,
20440
+ pagination: false,
20441
+ arrows: false,
20442
+ drag: true,
20443
+ focus: "start",
20444
+ perMove: 1
20445
+ },
20446
+ renderItem: (slide) => /* @__PURE__ */ jsx7("div", { style: { alignSelf: "start" }, children: /* @__PURE__ */ jsx7(
20447
+ OraculoGameSlide_default,
20448
+ {
20449
+ items: slide.items,
20450
+ layout: slide.kind === "mosaic" ? "mosaic" : "grid",
20451
+ onClick: (itm) => {
20452
+ const game = items.find(
20453
+ (g, idx) => {
20454
+ var _a;
20455
+ return ((_a = g.orden) != null ? _a : idx) === itm.id;
20456
+ }
20457
+ );
20458
+ if (game) onItemClick == null ? void 0 : onItemClick(game);
20459
+ }
20460
+ }
20461
+ ) }),
20462
+ onMove: ({ isStart, isEnd }) => setNavState({ isStart, isEnd })
20463
+ }
20464
+ )
20465
+ ] }) });
20466
+ };
20467
+ var OraculoSeccionVirtuales_default = OraculoSeccionVirtuales;
19752
20468
 
19753
20469
  // src/templates/OraculoPageLanding.tsx
19754
20470
  import {
19755
20471
  Container,
19756
- Stack
20472
+ Stack as Stack4
19757
20473
  } from "@mui/material";
19758
20474
  import "@splidejs/react-splide/css";
19759
- import { jsx, jsxs } from "react/jsx-runtime";
20475
+ import { jsx as jsx8, jsxs as jsxs8 } from "react/jsx-runtime";
19760
20476
  function OraculoPageLanding({ props }) {
19761
20477
  const listaDestacados = [
19762
20478
  {
@@ -19806,16 +20522,16 @@ function OraculoPageLanding({ props }) {
19806
20522
  promotion: ""
19807
20523
  }
19808
20524
  ];
19809
- return /* @__PURE__ */ jsxs(Container, { className: "oli-font", sx: { backgroundColor: "#121212", position: "relative", pb: 5 }, maxWidth: false, children: [
19810
- /* @__PURE__ */ jsx(
20525
+ return /* @__PURE__ */ jsxs8(Container, { className: "oli-font", sx: { backgroundColor: "#121212", position: "relative", pb: 5 }, maxWidth: false, children: [
20526
+ /* @__PURE__ */ jsx8(
19811
20527
  OraculoSeccionBonoBienvenida_default,
19812
20528
  {
19813
20529
  headline: props.bonos.headline,
19814
20530
  items: props.bonos.items
19815
20531
  }
19816
20532
  ),
19817
- /* @__PURE__ */ jsxs(Stack, { direction: "column", spacing: 12, useFlexGap: true, children: [
19818
- /* @__PURE__ */ jsx(
20533
+ /* @__PURE__ */ jsxs8(Stack4, { direction: "column", spacing: 12, useFlexGap: true, children: [
20534
+ /* @__PURE__ */ jsx8(
19819
20535
  OraculoSeccionTopJuegos,
19820
20536
  {
19821
20537
  items: props.topJuegos.items,
@@ -19824,7 +20540,7 @@ function OraculoPageLanding({ props }) {
19824
20540
  onCardClick: props.topJuegos.onCardClick
19825
20541
  }
19826
20542
  ),
19827
- /* @__PURE__ */ jsx(
20543
+ /* @__PURE__ */ jsx8(
19828
20544
  OraculoSeccionCasino_default,
19829
20545
  {
19830
20546
  items: props.casino.items,
@@ -19835,7 +20551,7 @@ function OraculoPageLanding({ props }) {
19835
20551
  }
19836
20552
  )
19837
20553
  ] }),
19838
- /* @__PURE__ */ jsx(
20554
+ /* @__PURE__ */ jsx8(
19839
20555
  OraculoSeccionCasinoEnVivo_default,
19840
20556
  {
19841
20557
  items: props.casinoEnVivo.items,
@@ -19847,8 +20563,8 @@ function OraculoPageLanding({ props }) {
19847
20563
  onViewMore: props.casinoEnVivo.onViewMore
19848
20564
  }
19849
20565
  ),
19850
- /* @__PURE__ */ jsxs(Stack, { direction: "column", spacing: 12, useFlexGap: true, children: [
19851
- /* @__PURE__ */ jsx(
20566
+ /* @__PURE__ */ jsxs8(Stack4, { direction: "column", spacing: 12, useFlexGap: true, children: [
20567
+ /* @__PURE__ */ jsx8(
19852
20568
  OraculoSeccionVirtuales_default,
19853
20569
  {
19854
20570
  items: props.virtuales.items,
@@ -19858,7 +20574,7 @@ function OraculoPageLanding({ props }) {
19858
20574
  onViewMore: props.virtuales.onViewMore
19859
20575
  }
19860
20576
  ),
19861
- /* @__PURE__ */ jsx(
20577
+ /* @__PURE__ */ jsx8(
19862
20578
  OraculoSeccionDestacados,
19863
20579
  {
19864
20580
  items: listaDestacados,
@@ -19867,14 +20583,14 @@ function OraculoPageLanding({ props }) {
19867
20583
  onViewMore: () => console.log("Ver m\xE1s clickeado")
19868
20584
  }
19869
20585
  ),
19870
- /* @__PURE__ */ jsx(OraculoSeccionClubOlimpo_default, { items: props.clubOlimpo })
20586
+ /* @__PURE__ */ jsx8(OraculoSeccionClubOlimpo_default, { items: props.clubOlimpo })
19871
20587
  ] })
19872
20588
  ] });
19873
20589
  }
19874
20590
 
19875
20591
  // src/templates/OraculoPageLandingPreview.tsx
19876
- import React, { useEffect, useState, useMemo } from "react";
19877
- import { Container as Container2, Stack as Stack2 } from "@mui/material";
20592
+ import React4, { useEffect, useState as useState3, useMemo as useMemo2 } from "react";
20593
+ import { Container as Container2, Stack as Stack5 } from "@mui/material";
19878
20594
 
19879
20595
  // ../node_modules/@firebase/util/dist/postinstall.mjs
19880
20596
  var getDefaultsFromPostinstall = () => void 0;
@@ -37629,18 +38345,18 @@ var db = getFirestore(app);
37629
38345
 
37630
38346
  // src/templates/OraculoPageLandingPreview.tsx
37631
38347
  import "@splidejs/react-splide/css";
37632
- import { jsx as jsx2 } from "react/jsx-runtime";
38348
+ import { jsx as jsx9 } from "react/jsx-runtime";
37633
38349
 
37634
38350
  // import("../organisms/**/*/**/*") in src/templates/OraculoPageLandingPreview.tsx
37635
38351
  var globImport_organisms = __glob({
37636
- "../organisms/OraculoSeccionBonoBienvenida/OraculoSeccionBonoBienvenida.tsx": () => import("./OraculoSeccionBonoBienvenida-EDS6UQVL.mjs"),
37637
- "../organisms/OraculoSeccionCasino/OraculoSeccionCasino.tsx": () => import("./OraculoSeccionCasino-GXRRODCJ.mjs"),
38352
+ "../organisms/OraculoSeccionBonoBienvenida/OraculoSeccionBonoBienvenida.tsx": () => import("./OraculoSeccionBonoBienvenida-2APXZQQA.mjs"),
38353
+ "../organisms/OraculoSeccionCasino/OraculoSeccionCasino.tsx": () => import("./OraculoSeccionCasino-WBPCNYC5.mjs"),
37638
38354
  "../organisms/OraculoSeccionCasinoEnVivo/OraculoSeccionCasinoEnVivo.tsx": () => import("./OraculoSeccionCasinoEnVivo-ISYMJSUN.mjs"),
37639
38355
  "../organisms/OraculoSeccionClubOlimpo/OraculoSeccionClubOlimpo.css": () => import("./OraculoSeccionClubOlimpo-XGB4KUKX.mjs"),
37640
38356
  "../organisms/OraculoSeccionClubOlimpo/OraculoSeccionClubOlimpo.tsx": () => import("./OraculoSeccionClubOlimpo-TV3LABJ5.mjs"),
37641
- "../organisms/OraculoSeccionDestacados/OraculoSeccionDestacados.tsx": () => import("./OraculoSeccionDestacados-QU6BT2NM.mjs"),
37642
- "../organisms/OraculoSeccionTopJuegos/OraculoSeccionTopJuegos.tsx": () => import("./OraculoSeccionTopJuegos-FZUYQEMC.mjs"),
37643
- "../organisms/OraculoSeccionVirtuales/OraculoSeccionVirtuales.tsx": () => import("./OraculoSeccionVirtuales-MGW5X23B.mjs")
38357
+ "../organisms/OraculoSeccionDestacados/OraculoSeccionDestacados.tsx": () => import("./OraculoSeccionDestacados-IMREYQ6W.mjs"),
38358
+ "../organisms/OraculoSeccionTopJuegos/OraculoSeccionTopJuegos.tsx": () => import("./OraculoSeccionTopJuegos-DWEO36ND.mjs"),
38359
+ "../organisms/OraculoSeccionVirtuales/OraculoSeccionVirtuales.tsx": () => import("./OraculoSeccionVirtuales-IBYOMEJV.mjs")
37644
38360
  });
37645
38361
 
37646
38362
  // src/templates/OraculoPageLandingPreview.tsx
@@ -37657,12 +38373,12 @@ var OraculoPageLandingPreview = ({
37657
38373
  sectionsOverride,
37658
38374
  docId = "home"
37659
38375
  }) => {
37660
- const [sections, setSections] = useState([]);
37661
- const [loading, setLoading] = useState(false);
37662
- const [componentMap, setComponentMap] = useState({});
37663
- const [sectionDataMap, setSectionDataMap] = useState({});
37664
- const [sectionLoadingMap, setSectionLoadingMap] = useState({});
37665
- const [sectionErrorMap, setSectionErrorMap] = useState({});
38376
+ const [sections, setSections] = useState3([]);
38377
+ const [loading, setLoading] = useState3(false);
38378
+ const [componentMap, setComponentMap] = useState3({});
38379
+ const [sectionDataMap, setSectionDataMap] = useState3({});
38380
+ const [sectionLoadingMap, setSectionLoadingMap] = useState3({});
38381
+ const [sectionErrorMap, setSectionErrorMap] = useState3({});
37666
38382
  useEffect(() => {
37667
38383
  if (sectionsOverride) return;
37668
38384
  setLoading(true);
@@ -37728,11 +38444,11 @@ var OraculoPageLandingPreview = ({
37728
38444
  if (!res.ok) throw new HttpError(res.status, url, res.statusText);
37729
38445
  return res.json();
37730
38446
  };
37731
- const effectiveSections = useMemo(
38447
+ const effectiveSections = useMemo2(
37732
38448
  () => sectionsOverride ? sectionsOverride.slice() : sections.slice(),
37733
38449
  [sectionsOverride, sections]
37734
38450
  );
37735
- const fetchedKeysRef = React.useRef(/* @__PURE__ */ new Set());
38451
+ const fetchedKeysRef = React4.useRef(/* @__PURE__ */ new Set());
37736
38452
  useEffect(() => {
37737
38453
  const fetchables = effectiveSections.map((s) => ({ s, url: (s.apiUrl || "").trim() })).filter(({ url }) => !!url);
37738
38454
  if (!fetchables.length) return;
@@ -37764,7 +38480,7 @@ var OraculoPageLandingPreview = ({
37764
38480
  })();
37765
38481
  }
37766
38482
  }, [effectiveSections]);
37767
- const orderedVisible = useMemo(
38483
+ const orderedVisible = useMemo2(
37768
38484
  () => effectiveSections.filter((s) => s.visible).sort((a, b) => a.order - b.order),
37769
38485
  [effectiveSections]
37770
38486
  );
@@ -37868,7 +38584,7 @@ var OraculoPageLandingPreview = ({
37868
38584
  error: "bg-red-100 text-red-800",
37869
38585
  component: "bg-yellow-100 text-yellow-800"
37870
38586
  };
37871
- return /* @__PURE__ */ jsx2("div", { className: `mx-4 p-4 rounded ${colorMap[type]}`, children: message }, key);
38587
+ return /* @__PURE__ */ jsx9("div", { className: `mx-4 p-4 rounded ${colorMap[type]}`, children: message }, key);
37872
38588
  };
37873
38589
  const renderSingleSection = (s) => {
37874
38590
  var _a;
@@ -37901,7 +38617,7 @@ var OraculoPageLandingPreview = ({
37901
38617
  );
37902
38618
  }
37903
38619
  const compProps = buildCompProps(s);
37904
- return /* @__PURE__ */ jsx2(
38620
+ return /* @__PURE__ */ jsx9(
37905
38621
  "div",
37906
38622
  {
37907
38623
  style: {
@@ -37910,16 +38626,16 @@ var OraculoPageLandingPreview = ({
37910
38626
  width: "100%",
37911
38627
  boxSizing: "border-box"
37912
38628
  },
37913
- children: /* @__PURE__ */ jsx2(Comp, { ...compProps })
38629
+ children: /* @__PURE__ */ jsx9(Comp, { ...compProps })
37914
38630
  },
37915
38631
  s.id
37916
38632
  );
37917
38633
  };
37918
38634
  if (loading && !sectionsOverride)
37919
- return /* @__PURE__ */ jsx2("div", { className: "text-xs text-gray-400", children: "Cargando preview..." });
38635
+ return /* @__PURE__ */ jsx9("div", { className: "text-xs text-gray-400", children: "Cargando preview..." });
37920
38636
  if (!loading && !sectionsOverride && sections.length === 0)
37921
- return /* @__PURE__ */ jsx2("div", { className: "text-xs text-gray-500", children: "Sin secciones (Firestore)" });
37922
- return /* @__PURE__ */ jsx2(
38637
+ return /* @__PURE__ */ jsx9("div", { className: "text-xs text-gray-500", children: "Sin secciones (Firestore)" });
38638
+ return /* @__PURE__ */ jsx9(
37923
38639
  Container2,
37924
38640
  {
37925
38641
  className: "oli-font",
@@ -37934,14 +38650,14 @@ var OraculoPageLandingPreview = ({
37934
38650
  maxWidth: "100%",
37935
38651
  overflowX: "hidden"
37936
38652
  },
37937
- children: /* @__PURE__ */ jsx2(Stack2, { direction: "column", spacing: 8, useFlexGap: true, children: orderedVisible.map(renderSingleSection) })
38653
+ children: /* @__PURE__ */ jsx9(Stack5, { direction: "column", spacing: 8, useFlexGap: true, children: orderedVisible.map(renderSingleSection) })
37938
38654
  }
37939
38655
  );
37940
38656
  };
37941
38657
  var OraculoPageLandingPreview_default = OraculoPageLandingPreview;
37942
38658
 
37943
38659
  // src/organisms/OraculoSeccionDestacados/OraculoSeccionDestacados.tsx
37944
- import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
38660
+ import { jsx as jsx10, jsxs as jsxs9 } from "react/jsx-runtime";
37945
38661
  function OraculoSeccionDestacados({
37946
38662
  items,
37947
38663
  title = "Destacados",
@@ -37949,8 +38665,8 @@ function OraculoSeccionDestacados({
37949
38665
  onViewMore,
37950
38666
  className = ""
37951
38667
  }) {
37952
- const carouselRef = useRef(null);
37953
- const [navState, setNavState] = useState2({ isStart: true, isEnd: false });
38668
+ const carouselRef = useRef3(null);
38669
+ const [navState, setNavState] = useState4({ isStart: true, isEnd: false });
37954
38670
  const handlePrev = () => {
37955
38671
  var _a;
37956
38672
  (_a = carouselRef.current) == null ? void 0 : _a.prev();
@@ -37964,8 +38680,8 @@ function OraculoSeccionDestacados({
37964
38680
  onViewMore == null ? void 0 : onViewMore();
37965
38681
  };
37966
38682
  const sectionClassName = className || void 0;
37967
- return /* @__PURE__ */ jsxs2("section", { className: sectionClassName, style: { width: "100%" }, children: [
37968
- /* @__PURE__ */ jsxs2(
38683
+ return /* @__PURE__ */ jsxs9("section", { className: sectionClassName, style: { width: "100%" }, children: [
38684
+ /* @__PURE__ */ jsxs9(
37969
38685
  "header",
37970
38686
  {
37971
38687
  style: {
@@ -37977,36 +38693,36 @@ function OraculoSeccionDestacados({
37977
38693
  marginBottom: 16
37978
38694
  },
37979
38695
  children: [
37980
- /* @__PURE__ */ jsx3(OraculoSectionTitle, { title, iconUrl, size: "md" }),
37981
- /* @__PURE__ */ jsxs2("div", { style: { display: "flex", gap: 8 }, children: [
37982
- /* @__PURE__ */ jsx3(
38696
+ /* @__PURE__ */ jsx10(OraculoSectionTitle, { title, iconUrl, size: "md" }),
38697
+ /* @__PURE__ */ jsxs9("div", { style: { display: "flex", gap: 8 }, children: [
38698
+ /* @__PURE__ */ jsx10(
37983
38699
  OraculoButton,
37984
38700
  {
37985
38701
  ariaLabel: "Anterior",
37986
38702
  variant: "secondary",
37987
38703
  iconOnly: true,
37988
- leftIcon: /* @__PURE__ */ jsx3(ChevronLeftRounded_default, {}),
38704
+ leftIcon: /* @__PURE__ */ jsx10(ChevronLeftRounded_default, {}),
37989
38705
  onClick: handlePrev,
37990
38706
  disabled: navState.isStart
37991
38707
  }
37992
38708
  ),
37993
- /* @__PURE__ */ jsx3(
38709
+ /* @__PURE__ */ jsx10(
37994
38710
  OraculoButton,
37995
38711
  {
37996
38712
  ariaLabel: "Siguiente",
37997
38713
  variant: "secondary",
37998
38714
  iconOnly: true,
37999
- rightIcon: /* @__PURE__ */ jsx3(ChevronRightRounded_default, {}),
38715
+ rightIcon: /* @__PURE__ */ jsx10(ChevronRightRounded_default, {}),
38000
38716
  onClick: handleNext,
38001
38717
  disabled: navState.isEnd
38002
38718
  }
38003
38719
  )
38004
38720
  ] }),
38005
- /* @__PURE__ */ jsx3(OraculoButton, { variant: "secondary", onClick: handleViewMore, children: "Ver m\xE1s" })
38721
+ /* @__PURE__ */ jsx10(OraculoButton, { variant: "secondary", onClick: handleViewMore, children: "Ver m\xE1s" })
38006
38722
  ]
38007
38723
  }
38008
38724
  ),
38009
- /* @__PURE__ */ jsx3(
38725
+ /* @__PURE__ */ jsx10(
38010
38726
  OraculoCarousel_default,
38011
38727
  {
38012
38728
  ref: carouselRef,
@@ -38018,32 +38734,31 @@ function OraculoSeccionDestacados({
38018
38734
  768: { perPage: 1.15, focus: "start" },
38019
38735
  1024: { perPage: 2.5, focus: "start" }
38020
38736
  },
38021
- renderItem: (item) => {
38022
- var _a;
38023
- return /* @__PURE__ */ jsx3(
38024
- "div",
38025
- {
38026
- style: {
38027
- textAlign: "center",
38028
- marginTop: 16
38029
- },
38030
- children: /* @__PURE__ */ jsx3(
38031
- "img",
38032
- {
38033
- src: `https://olimpo.bet${(_a = item.image) != null ? _a : ""}`,
38034
- alt: item.title,
38035
- style: {
38036
- width: "100%",
38037
- height: "auto",
38038
- borderRadius: 8,
38039
- display: "block"
38040
- }
38041
- }
38042
- )
38737
+ renderItem: (item) => /* @__PURE__ */ jsx10(
38738
+ "div",
38739
+ {
38740
+ style: {
38741
+ textAlign: "center",
38742
+ marginTop: 16
38043
38743
  },
38044
- `${item.title}-${item.image}`
38045
- );
38046
- },
38744
+ children: /* @__PURE__ */ jsx10(
38745
+ "img",
38746
+ {
38747
+ src: `https://olimpo.bet${item.image !== "" ? item.image : item.summary_image}`,
38748
+ alt: item.title,
38749
+ style: {
38750
+ width: "100%",
38751
+ // minHeight: "150px",
38752
+ // maxHeight: "150px",
38753
+ height: "150px",
38754
+ borderRadius: 8,
38755
+ display: "block"
38756
+ }
38757
+ }
38758
+ )
38759
+ },
38760
+ `${item.title}-${item.image}`
38761
+ ),
38047
38762
  onMove: ({ isStart, isEnd }) => setNavState({ isStart, isEnd })
38048
38763
  }
38049
38764
  )
@@ -38051,7 +38766,14 @@ function OraculoSeccionDestacados({
38051
38766
  }
38052
38767
 
38053
38768
  export {
38769
+ OraculoSectionTitle,
38770
+ OraculoGameCard_default,
38771
+ OraculoGameRankCard,
38772
+ OraculoGameSlide_default,
38054
38773
  OraculoSeccionDestacados,
38774
+ OraculoSeccionTopJuegos,
38775
+ OraculoSeccionCasino_default,
38776
+ OraculoSeccionVirtuales_default,
38055
38777
  OraculoPageLanding,
38056
38778
  OraculoPageLandingPreview_default
38057
38779
  };