oraculo-ui 0.1.84 → 0.1.85
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.
package/dist/index.cjs.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),U=require("@mui/material"),gt=require("@mui/material/Skeleton"),_=require("react"),qe=require("@splidejs/react-splide"),ht=require("@mui/material/Box"),bt=require("@mui/material/Typography"),xt=require("@mui/material/Stack"),se=require("@mui/icons-material"),H=require("@olimpo/capture-client"),vt=require("@mui/icons-material/ChevronLeftRounded"),_t=require("@mui/icons-material/ChevronRightRounded"),yt=require("@mui/material/useMediaQuery"),Te=require("firebase/firestore"),ae=t=>t&&t.__esModule?t:{default:t},q=ae(gt),Ae=ae(_),M=ae(ht),J=ae(bt),A=ae(xt),Pe=ae(vt),ze=ae(_t),wt=ae(yt);function V({children:t,onClick:a,href:n,target:i,rel:s,type:o="button",disabled:r=!1,variant:g="primary",size:v,fullWidth:c=!1,fullHeight:f=!1,className:x="",ariaLabel:l,leftIcon:m,rightIcon:C,iconOnly:S}){const O=!!t&&t!==!0,R=(!!m?1:0)+(!!C?1:0)==1,h=S!=null?S:R&&!O,T=["orc-btn",g==="secondary"?"orc-btn--secondary":g==="tertiary"?"orc-btn--tertiary":"orc-btn--primary",v?`orc-btn--${v}`:"",c?"orc-btn--full":"",f?"orc-btn--fullHeight":"",h?"orc-btn--iconOnly":"",x].filter(Boolean).join(" "),k=e.jsxs(e.Fragment,{children:[m&&e.jsx("span",{className:"orc-btn__icon",children:m}),!h&&e.jsx("span",{className:"orc-btn__label",children:t}),C&&e.jsx("span",{className:"orc-btn__icon",children:C})]}),B=r?!0:void 0;return n?e.jsx(U.Link,{href:n,target:i,rel:s,"aria-label":l,"aria-disabled":B,tabIndex:B?-1:void 0,className:T,onClick:B?$=>$.preventDefault():a,children:k}):e.jsx("button",{type:o,onClick:a,disabled:!!B,"aria-label":l,className:T,children:k})}function X({title:t,iconUrl:a,size:n="md",className:i=""}){const o=["orc-section-title",n?`orc-section-title--${n}`:"",i].filter(Boolean).join(" ");return e.jsxs("div",{className:o,children:[a&&e.jsx("img",{src:a,alt:"",className:"orc-section-title__icon"}),e.jsx("h2",{className:"orc-section-title__title",children:t})]})}const we=({total:t,active:a,onSelect:n,className:i=""})=>{if(t<=1)return null;const s=["orc-dots",i].filter(Boolean).join(" ");return e.jsx("div",{className:s,role:"tablist",children:Array.from({length:t}).map((o,r)=>e.jsx("span",{className:"orc-dots__cell",children:e.jsx("button",{type:"button",role:"tab","aria-selected":r===a,"aria-label":`Ir al slide ${r+1}`,className:"orc-dots__dot"+(r===a?" orc-dots__dot--active":""),onClick:()=>n==null?void 0:n(r)})},r))})};function K({children:t,minWidth:a=32,spacing:n=2,justify:i="stretch",columns:s=null}){const o=s||`repeat(auto-fit, minmax(${a}px, 1fr))`,r=typeof n=="number"?`${n*8}px`:n;return e.jsx("div",{style:{display:"grid",gridTemplateColumns:o,justifyItems:i,gap:r,height:"inherit"},children:t})}function _e({src:t,alt:a}){return e.jsx(U.Box,{sx:{position:"relative",width:{xs:65,sm:80,md:120,lg:160},height:{xs:48,md:96},display:"inline-block"},children:e.jsx(U.Box,{component:"img",src:t,alt:a,sx:{position:"absolute",top:0,left:0,width:"100%",height:"100%",objectFit:"contain"}})})}const St="oraculo__OraculoEventTitle-module__contenedor___rg1vw",jt="oraculo__OraculoEventTitle-module__flexGroup___jMLFO",Ot="oraculo__OraculoEventTitle-module__subtitle___TmHna",ge={contenedor:St,flexGroup:jt,subtitle:Ot};function Et({title:t,subtitle:a}){return e.jsxs("div",{className:ge.contenedor,children:[e.jsx("span",{style:{fontWeight:700,fontSize:"12px",lineHeight:"16px"},children:t}),a&&e.jsxs("div",{className:ge.flexGroup,children:[e.jsxs("svg",{width:"4",height:"4",viewBox:"0 0 5 5",xmlns:"http://www.w3.org/2000/svg",style:{flexShrink:0},children:[" ",e.jsx("circle",{cx:"2.5",cy:"2.5",r:"2.5",fill:"white"})," "]}),e.jsx("span",{className:ge.subtitle,children:a}),e.jsx("div",{})]})]})}function Ue({text:t,color:a="#ff3b3b",textColor:n="#fff"}){return e.jsx("span",{className:"oli-font",style:{backgroundColor:a,color:n,borderRadius:"8px",padding:"4px 8px",fontSize:"12px",lineHeight:"16px",fontWeight:700,width:"41px",height:"16px",textAlign:"center"},children:t})}function Ve({live:t,time:a}){return e.jsxs("div",{className:"oli-font",style:{display:"flex",alignItems:"center",gap:"8px"},children:[t&&e.jsx(Ue,{text:"En vivo"}),a&&e.jsx("span",{style:{fontSize:"14px",fontWeight:400,lineHeight:"18px",paddingTop:"4px"},children:a})]})}function We({title:t,subtitle:a,live:n=!1,time:i=""}){return e.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",color:"#FFFFFF"},children:[e.jsx(Et,{title:t,subtitle:a}),e.jsx(Ve,{live:n,time:i})]})}const Ct="oraculo__OraculoEventLabel-module__label___c64Xw",It={label:Ct};function Se({text:t}){return e.jsx("span",{className:It.label,children:t})}const Tt="oraculo__OraculoEventLeague-module__container___rdk4F",kt={container:Tt};function je({title:t}){return e.jsx("div",{className:kt.container,children:t.toUpperCase()})}const Mt="oraculo__OraculoEventScore-module__scoreWrapper___fWwEr",Bt="oraculo__OraculoEventScore-module__name___r4uL6",Nt="oraculo__OraculoEventScore-module__score___Xl03M",Rt="oraculo__OraculoEventScore-module__normal___cCNFz",$t="oraculo__OraculoEventScore-module__small___fVt8E",oe={scoreWrapper:Mt,name:Bt,score:Nt,normal:Rt,small:$t};function Oe({text:t,name:a,size:n="normal"}){return e.jsxs("div",{className:`${oe.scoreWrapper} ${oe[n]}`,children:[e.jsx("div",{className:`${oe.score} ${oe[n]}`,children:t}),a&&e.jsx("span",{className:`${oe.name} ${oe[n]}`,children:a})]})}const Ft="oraculo__OraculoEventTeamInfo-module__team___UfpUs",Lt="oraculo__OraculoEventTeamInfo-module__regular___ag826",qt="oraculo__OraculoEventTeamInfo-module__compact___RCNOs",At="oraculo__OraculoEventTeamInfo-module__logo___fKCl3",Pt="oraculo__OraculoEventTeamInfo-module__name___4ikm-",zt="oraculo__OraculoEventTeamInfo-module__skeleton___Yfaxh",ie={team:Ft,regular:Lt,compact:qt,logo:At,name:Pt,skeleton:zt},Ut="oraculo__OraculoTeamPolo-module__polo___BisRg",Vt="oraculo__OraculoTeamPolo-module__svgWrapper___HRKNX",Wt="oraculo__OraculoTeamPolo-module__shadow___-3DXb",Dt="oraculo__OraculoTeamPolo-module__highlight___1etm7",ce={polo:Ut,svgWrapper:Vt,shadow:Wt,highlight:Dt};function Gt({jersey:t,className:a}){const n=`#${t.base}`,i=t.sleeve?`#${t.sleeve}`:n,s=t.stripes?`#${t.stripes}`:null,o=t.sleevelong?`#${t.sleevelong}`:null;return e.jsxs("div",{className:`${ce.polo} ${a!=null?a:""}`,children:[e.jsx("div",{className:ce.svgWrapper,children:e.jsxs("svg",{viewBox:"0 0 656 656","aria-hidden":!0,children:[e.jsx("path",{fill:n,d:"m62 265 5.8-17c-.4-.7-.6-1.5-.4-2 .2-.7.8-1.2 1.2-1.4l1.2-4 9-21.6c.2-1 1-3.5 2.4-6.4a69.9 69.9 0 0 1 4.1-17.2l2.9-7 2.9-11.4c1.7-5.8 5.2-18.4 5.8-22 .6-3.6 6.8-19 9.8-26.2.4-.9 2.4-4.7 7.2-12.8 5.4-12.2 23.5-27.2 32-33.1l6.6-3.7 7.9-3.6 17.3-6.2 16.6-7.1L215 52c7-4.1 21.8-12.5 24.1-13.2 2.3-.8 5-3.5 6-4.7 1.2-1.2 4.2-3.8 6.6-4.7 2.3-1 8.2-6.8 10.8-9.6 1.6-1.4 3.8-4.7 9.2-7.5 5.3-2.9 20.4-4 27.2-4.3h25.6l16.7.3 14.1.6 10.3.7 9.5 1.7c6.4.6 12.6 4.3 15.4 8l2.7 3.1 8.9 8 1.8.7 4.9 3 2.7 3.5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4-13.8-1.5-17.8-4-5.2-14.9-6.6-18.5-7.1h-.7c-13.8-1.9-39.8-2-46-1.9-9-.2-28.1.2-32.5.7-.6 0-1.2 0-1.9.2-6.8.6-19.9 1.9-22.6 10.6a22.6 22.6 0 0 0 .9 10.3l.8 2.9Z"}),e.jsx("path",{fill:i,d:"m74.8 250.8-6.8-2.7-.3.7-3 8.7-2 5.7c-1 2.2-.5 1.9.1 2.3l2.2 1 8.8 3.3 10.4 3.8 10.7 3.8 14.3 4.8 13 4.3 7 2.3 13.8 4.3c2.2.7 3 1.4 3.8 0l6.3-15.6-4.6-1.8a88 88 0 0 1-9.4-3c-.8-.6-11.8-3.7-17.3-5.4l-7-2.4-13-4.3c-3.2-1.3-9.9-3.8-11-4-1.2-.2-11-3.8-16-5.8Z"}),e.jsx("path",{fill:i,d:"m505 284.5-3.5-7.5c.2-.2 1.2-.4 3 0 1.6.4 11.3-1.7 16-2.7l22.5-6.6 13.7-4.5 16.8-6.7a90 90 0 0 0 13.7-7.7v1l.6 2 1.9 5.5 2.9 7.8c.6 1.6-5.5 4.8-8.6 6.3l-17 7.2-15.3 5.4-13 4.2-13 3.3-9.9 2c-6.8 1.2-7.2-.4-8-2l-2.7-7Z"})]})}),e.jsx("img",{src:"https://widgets.sir.sportradar.com/assets/media/shadow.7a42eb6e.png",className:ce.shadow,alt:"","aria-hidden":!0}),e.jsx("img",{src:"https://widgets.sir.sportradar.com/assets/media/highlight.b1ac6c3e.png",className:ce.highlight,alt:"","aria-hidden":!0})]})}function le({name:t,jersey:a,size:n="regular"}){return e.jsxs("div",{className:`oli-font ${ie.team} ${ie[n]}`,children:[a!=null&&a.base?e.jsx(Gt,{jersey:a,className:`${ie.logo}`}):e.jsx(q.default,{variant:"circular",className:`${ie.logo} ${ie.skeleton}`}),e.jsx("span",{className:ie.name,children:t})]})}function Ht(t,a,{enabled:n=!0}={}){const i=_.useRef(null);_.useEffect(()=>{if(!n)return;const s=t.current;if(!s)return;const o=r=>{const g=a.current;if(!g||!g.go)return;const{deltaX:v,deltaY:c}=r;if(Math.abs(v)<=Math.abs(c)||Math.abs(v)<2)return;r.preventDefault();const f=v>0?">":"<";i.current===null&&(i.current=requestAnimationFrame(()=>{i.current=null,g.go(f)}))};return s.addEventListener("wheel",o,{passive:!1}),()=>{s.removeEventListener("wheel",o),i.current&&cancelAnimationFrame(i.current)}},[n,t,a])}const Kt=qe.Splide,Zt=qe.SplideSlide,Y=_.forwardRef(({items:t=[],renderItem:a,perPage:n=1,gap:i="0px",breakpoints:s,options:o={},className:r="",onMove:g,useIndexAsKey:v=!1,enableHorizontalWheel:c=!0},f)=>{const x=_.useRef(null),l=_.useRef(null),m=_.useRef(t.length);Ht(l,x,{enabled:c}),_.useImperativeHandle(f,()=>({next:()=>{var h;return(h=x.current)==null?void 0:h.go(">")},prev:()=>{var h;return(h=x.current)==null?void 0:h.go("<")},go:h=>{var T;return(T=x.current)==null?void 0:T.go(h)}}));const C=h=>{var p;const T=h.Components.Slides,k=h.Components.Controller,B=h.root.querySelector(".splide__track"),$=(p=B==null?void 0:B.clientWidth)!=null?p:0,y=k.getIndex(),j=T.getLength();let L=0,u=y;for(let d=y;d<j;d++){const b=T.getAt(d);if(!b||(L+=b.slide.offsetWidth,L>$))break;u=d}return{visibleStart:y,visibleEnd:u}},S=h=>{const T=h.root.querySelector(".splide__track"),k=h.root.querySelector(".splide__list");return!T||!k?!1:k.scrollWidth>T.clientWidth+1},O=_.useCallback(h=>{const k=h.Components.Slides.getLength();if(!S(h)){g==null||g({index:0,isStart:!0,isEnd:!0,total:k,visibleStart:0,visibleEnd:k-1});return}const{visibleStart:B,visibleEnd:$}=C(h),y=B===0,j=$===k-1,L=h.Components.Controller.getIndex();g==null||g({index:L,isStart:y,isEnd:j,total:k,visibleStart:B,visibleEnd:$})},[g]);Ae.default.useEffect(()=>{var k;const h=(k=x.current)==null?void 0:k.splide;if(!h)return;const T=m.current!==t.length;m.current=t.length,T&&requestAnimationFrame(()=>{h.refresh(),O(h)})},[t.length,O]);const I=_.useCallback(()=>{var T;const h=(T=x.current)==null?void 0:T.splide;h&&(h.go(0,!1),O(h))},[O]),F=_.useCallback(h=>{O(h)},[O]),R={type:"slide",trimSpace:!1,drag:!0,pagination:!1,arrows:!1,rewind:!1,focus:"start",autoWidth:!1,perPage:n,gap:i,breakpoints:s,...o,...c?{wheel:!1}:{}};return e.jsx("div",{ref:l,className:r,style:{width:"100%"},children:e.jsx(Kt,{ref:x,options:R,onMove:O,onMounted:F,onResize:I,children:t.map((h,T)=>{var k;return e.jsx(Zt,{children:a(h,T)},v?T:(k=h.id)!=null?k:T)})})})}),re=({imageUrl:t,onClick:a,size:n="sm",fillParent:i=!1})=>{const s=n==="lg"?{w:280,h:352}:{w:152,h:168},o=g=>{g.stopPropagation(),a==null||a()},r=i?{width:"100%",height:"100%"}:{width:`${s.w}px`,height:`${s.h}px`};return e.jsxs(M.default,{onClick:a,role:"button",sx:{position:"relative",borderRadius:"12px",overflow:"hidden",boxSizing:"border-box",transition:"transform .15s ease, box-shadow .15s ease",...r,"&:hover":{transform:"translateY(-2px)",boxShadow:8,cursor:"pointer"},"&:hover .oraculo-game-card-overlay":{opacity:1},"&:hover .oraculo-game-card-btn":{opacity:1,transform:"translate(-50%, -50%) scale(1)",pointerEvents:"auto"}},children:[e.jsx("img",{src:t,alt:"Juego de casino",loading:"lazy",style:{width:"100%",height:"100%",objectFit:"cover",display:"block",borderRadius:"inherit"}}),e.jsx(M.default,{className:"oraculo-game-card-overlay",sx:{position:"absolute",inset:0,backgroundColor:"rgba(0, 0, 0, 0.45)",opacity:0,transition:"opacity .15s ease",pointerEvents:"none",zIndex:1}}),e.jsx(M.default,{className:"oraculo-game-card-btn",sx:{position:"absolute",top:"50%",left:"50%",zIndex:2,transform:"translate(-50%, -50%) scale(0.95)",opacity:0,transition:"opacity .15s ease, transform .15s ease",pointerEvents:"none"},children:e.jsx(V,{variant:"primary",size:"md",onClick:o,children:"Jugar"})})]})};function De({imageUrl:t,orden:a=1,onClick:n,loading:i=!1,sizes:s={xs:{w:104,h:112,r:18,font:48},md:{w:186,h:264,r:22.6,font:64}}}){var x,l,m,C;const o=(S,O)=>{var I,F,R,h;return{xs:(F=(I=s.xs)==null?void 0:I[S])!=null?F:O,md:(h=(R=s.md)==null?void 0:R[S])!=null?h:O}},r=o("w",186),g=o("h",264),v=o("r",22.6),c=o("font",64),f={xs:Math.round(((l=(x=s.xs)==null?void 0:x.font)!=null?l:64)*.28),md:Math.round(((C=(m=s.md)==null?void 0:m.font)!=null?C:64)*.28)};return e.jsxs(M.default,{sx:{position:"relative",width:"100%",maxWidth:{xs:`${r.xs}px`,md:`${r.md}px`},aspectRatio:{xs:`${r.xs}/${g.xs}`,md:`${r.md}/${g.md}`},borderRadius:{xs:`${v.xs}px`,md:`${v.md}px`},boxSizing:"border-box",overflow:"visible",pb:{xs:`${f.xs}px`,md:`${f.md}px`},"&::before":{content:'""',position:"absolute",inset:0,borderRadius:"inherit",pointerEvents:"none",zIndex:2,background:"linear-gradient(21.29deg, #0B0D1B -1.16%, rgba(255,255,255,0) 51.92%, rgba(255,255,255,0) 127.62%)",backgroundBlendMode:"multiply"}},children:[e.jsx(M.default,{sx:{position:"absolute",inset:0,borderRadius:"inherit",overflow:"hidden"},children:i?e.jsx(q.default,{variant:"rectangular",width:"100%",height:"100%",sx:{bgcolor:"rgba(255,255,255,0.10)","&::after":{background:"linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent)"}}}):e.jsx(re,{imageUrl:t,onClick:n,size:"lg",fillParent:!0})}),e.jsx(M.default,{component:"span",sx:{position:"absolute",left:8,bottom:{xs:`-${f.xs}px`,md:`-${f.md}px`},fontFamily:"secondary",fontSize:{xs:`${c.xs}px`,md:`${c.md}px`},lineHeight:1,color:"#3CC666",WebkitTextStroke:"1px #9ee86e",zIndex:3,userSelect:"none"},children:a})]})}const Ge=({logo:t,provider:a,providerName:n,machine:i,onClick:s})=>{var o;return e.jsxs(M.default,{onClick:s,sx:{flex:"0 0 auto",position:"relative",borderRadius:"20px",overflow:"hidden",width:{xs:100,md:180},height:{xs:200,md:380},transition:"width .50s ease, transform .28s ease",willChange:"width, transform",cursor:"pointer",zIndex:0,"&:hover":{zIndex:2,width:{md:260,xs:110}},"&:hover .orc-live-provider-label":{opacity:1}},children:[e.jsx(M.default,{component:"img",src:t,alt:`Juego ${i!=null?i:""}`,sx:{position:"absolute",inset:0,width:"100%",height:"100%",objectFit:"cover",display:"block"}}),e.jsx(M.default,{className:"orc-live-provider-label",sx:{position:"absolute",left:"50%",top:{xs:"75%",md:"80%"},transform:"translate(-50%, -50%)",zIndex:3,opacity:0,transition:"opacity .25s ease",pointerEvents:"none"},children:e.jsx(J.default,{sx:{color:"#fff",fontWeight:700,fontSize:{xs:11,md:14},textTransform:"capitalize"},children:(o=a!=null?a:n)!=null?o:""})})]})},he=12,be=({r:t=16})=>e.jsx(M.default,{sx:{width:"100%",height:"100%",borderRadius:t,overflow:"hidden"},children:e.jsx(q.default,{variant:"rectangular",width:"100%",height:"100%",sx:{bgcolor:"rgba(255,255,255,0.10)","&::after":{background:"linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent)"}}})}),Ee=({items:t,layout:a="grid",onClick:n,loading:i=!1,gridSkeletonCount:s=4})=>{var o,r;if(a==="mosaic"){const g=t[0],v=t.slice(1,5);return e.jsxs(M.default,{sx:{display:"grid",gridTemplateRows:{xs:"repeat(2, 112px)",md:"repeat(2, 168px)"},gridTemplateColumns:{xs:"184px",md:"280px"},gridAutoFlow:"column",gridAutoColumns:{xs:"104px",md:"152px"},columnGap:`${he}px`,rowGap:`${he}px`,alignItems:"stretch",justifyItems:"stretch"},children:[e.jsx(M.default,{sx:{width:{xs:184,md:280},height:{xs:234,md:352},gridRow:"1 / span 2",overflow:"hidden",borderRadius:2},children:i?e.jsx(be,{}):g&&e.jsx(re,{imageUrl:`https://olimpo.bet${(r=(o=g.background)!=null?o:g.imageUrl)!=null?r:""}`,size:"lg",fillParent:!0,onClick:()=>n==null?void 0:n(g,0)})}),(i?Array.from({length:4}):v).map((c,f)=>{var x,l;return e.jsx(M.default,{sx:{width:{xs:104,md:152},height:{xs:112,md:168},overflow:"hidden",borderRadius:2},children:i?e.jsx(be,{}):e.jsx(re,{imageUrl:`https://olimpo.bet${(l=(x=c.background)!=null?x:c.imageUrl)!=null?l:""}`,size:"sm",fillParent:!0,onClick:()=>n==null?void 0:n(c,f+1)})},i?`sk-${f}`:c.id)})]})}return e.jsx(M.default,{sx:{display:"grid",gridTemplateColumns:{xs:"repeat(2, 104px)",md:"repeat(2, 152px)"},gridTemplateRows:{xs:"repeat(2, 112px)",md:"repeat(2, 168px)"},gap:`${he}px`,gridAutoFlow:"column"},children:(i?Array.from({length:s}):t).map((g,v)=>{var c,f,x;return e.jsx(M.default,{sx:{overflow:"hidden",borderRadius:2},children:i?e.jsx(be,{}):e.jsx(re,{imageUrl:`https://olimpo.bet${(f=(c=g.background)!=null?c:g.imageUrl)!=null?f:""}`,size:"sm",fillParent:!0,onClick:()=>n==null?void 0:n(g,v)})},i?`sk-${v}`:(x=g.id)!=null?x:v)})})},ye=({title:t,amount:a,subtitle:n,buttonText:i,onButtonClick:s,backgroundImage:o,alt:r,className:g="",variant:v="small"})=>{const c=a?a.slice(0,2):"",f=a?a.slice(2):"",x=v==="large";return e.jsxs(M.default,{className:g,sx:{position:"relative",width:"100%",maxWidth:{xs:328,md:x?618:456},mx:"auto"},children:[o&&e.jsx(M.default,{sx:{position:"relative",width:"100%",aspectRatio:{xs:"328 / 188",md:x?"618 / 346":"456 / 272"},borderRadius:"14px",overflow:"hidden"},children:e.jsx(M.default,{component:"img",src:o,alt:r!=null?r:"Fondo promocional",sx:{width:"100%",height:"100%",objectFit:"cover",objectPosition:{xs:"50% 0%",md:"45% 0%"},display:"block"}})}),e.jsx(M.default,{sx:{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"flex-end",color:"#e7f8ff",textAlign:"center",pl:"14%",pr:{xs:"14%",lg:"15%"}},children:e.jsxs(M.default,{sx:{maxWidth:"60%",display:"flex",flexDirection:"column",alignItems:"center"},children:[t&&e.jsx(J.default,{sx:{fontSize:{xs:12,md:20},fontWeight:400,color:"#e7f8ff"},children:t}),a&&e.jsxs(M.default,{component:"p",sx:{fontFamily:'"secondary", sans-serif',lineHeight:{xs:.9,lg:.87},m:"4px 0",background:"linear-gradient(175deg, #EDC421 -12.56%, #FFFABF 17.99%, #EDC421 49.74%)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",WebkitTextStroke:"0.5px #fff8c1",filter:"drop-shadow(0px 4px 0px #8D4406) drop-shadow(0px 4px 4px rgba(28, 28, 28, 0.4))",display:"flex",alignItems:"baseline",justifyContent:"center"},children:[e.jsx(M.default,{component:"span",sx:{fontSize:{xs:35,md:48},mr:.5},children:c}),e.jsx(M.default,{component:"span",sx:{fontSize:{xs:52,md:77}},children:f})]}),n&&e.jsx(J.default,{sx:{pb:"20px",fontSize:14,fontWeight:600,color:"#e7f8ff"},children:n}),i&&e.jsx(V,{onClick:s,children:i})]})})]})},He=({text:t,buttonLabel:a="Conoce más",onClick:n,imgAlt:i="Club Olimpo",imgSrcMobile:s,imgSrcDesktopBg:o,imgSrcDesktopLogo:r})=>e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"orc-co-bgMobile",children:e.jsx("img",{src:s,alt:i,className:"orc-co-bgMobileImg"})}),e.jsxs("div",{className:"orc-co-bgDesktop",children:[o&&e.jsx("div",{className:"orc-co-fillHost",children:e.jsx("img",{src:o,alt:`${i} fondo`,className:"orc-co-bgDesktopImg"})}),e.jsxs("div",{className:"orc-co-desktopContent",children:[r&&e.jsx("img",{src:r,alt:`${i} logo`,className:"orc-co-logoImg"}),e.jsx("p",{className:"orc-co-captionDesktop",children:t}),e.jsx(V,{onClick:n,variant:"primary",size:"md",children:a})]})]}),e.jsxs("div",{className:"orc-co-bottom",children:[e.jsx("p",{className:"orc-co-caption",children:t}),e.jsx(V,{onClick:n,variant:"primary",size:"md",children:a})]})]}),Jt="oraculo__OraculoEventCombinadasCard-module__card___ulQeY",Xt="oraculo__OraculoEventCombinadasCard-module__combinadas___Gxrld",Yt="oraculo__OraculoEventCombinadasCard-module__apuestaItem___YnYMy",Qt="oraculo__OraculoEventCombinadasCard-module__lineContainer___G5rbU",ea="oraculo__OraculoEventCombinadasCard-module__circle___eehm-",ta="oraculo__OraculoEventCombinadasCard-module__line___Eb2pK",aa="oraculo__OraculoEventCombinadasCard-module__apuestaText___b5s7S",na="oraculo__OraculoEventCombinadasCard-module__cuotaTotal___Lohvu",ee={card:Jt,combinadas:Xt,apuestaItem:Yt,lineContainer:Qt,circle:ea,line:ta,apuestaText:aa,cuotaTotal:na};function Ce(t){const a=Array.isArray(t)?t:[t];sessionStorage.setItem("landingOutcomes",JSON.stringify(a)),window.location.href="/deportes#in-play"}function oa(){window.location.href="/deportes#in-play"}function ia(){window.location.href="/deportes#sports-hub/football"}function sa(){window.location.href="/deportes#specials"}async function Ke(t){return await(await fetch("https://api.mktolimpo.com/api/jerseys/search",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({events:t})})).json()}function Ze(t,a=250){const[n,i]=_.useState(t);return _.useEffect(()=>{const s=setTimeout(()=>i(t),a);return()=>clearTimeout(s)},[t,a]),n}function Je({event:t}){var i;function a(s){var f;const o=(f=s.betoffers)!=null?f:[],r=s.homeName,g=s.awayName,v=o.map(x=>{var S,O,I,F,R;let l=x.outcomes[0],m="",C=l!=null&&l.line?l.line/1e3:"";return["Más de","Mas de","Over"].includes(l==null?void 0:l.label)?(m=`Más de ${C}`,l!=null&&l.participant&&(m=`${l.participant} - ${m}`)):["Menos de","Menos"].includes(l==null?void 0:l.label)?(m=`Menos de ${C}`,l!=null&&l.participant&&(m=`${l.participant} - ${m}`)):["Sí","No"].includes(l==null?void 0:l.label)?(m=l==null?void 0:l.label,l!=null&&l.participant&&(m=`${l.participant} - ${m}`)):["1X","12","X2"].includes(l==null?void 0:l.label)?l.label==="1X"?m=`${r} o Empate`:l.label==="12"?m=`${r} o ${g}`:l.label==="X2"&&(m=`${g} o Empate`):(l!=null&&l.participant?m=l.participant:m=(S=l==null?void 0:l.label)!=null?S:"",C!==""&&m===l.label&&(m=`${l.label} ${C}`)),{id:(O=l==null?void 0:l.id)!=null?O:0,value:m,label:x.criterion.label,odds:(I=l==null?void 0:l.odds)!=null?I:0,bl:(F=l==null?void 0:l.label)!=null?F:0,position:(R=l==null?void 0:l.position)!=null?R:0}}),c=v.reduce((x,l)=>x+l.odds,0)/1e3;return{outcomes:v,total:c.toFixed(2)}}const n=a(t);return e.jsxs("div",{className:ee.card,children:[e.jsx("div",{className:ee.combinadas,children:e.jsxs(A.default,{direction:"column",spacing:.5,useFlexGap:!0,children:[e.jsx(X,{title:t.name,iconUrl:"/assets/img/home/Combinadas/pelota.png",size:"xs"}),e.jsx("img",{loading:"lazy",src:"/assets/img/home/Combinadas/line.png"}),e.jsx(A.default,{direction:"column",spacing:.5,useFlexGap:!0,children:n.outcomes.sort((s,o)=>s.position-o.position).map((s,o)=>e.jsxs("div",{className:ee.apuestaItem,children:[e.jsxs("div",{className:ee.lineContainer,children:[e.jsx("div",{className:ee.circle}),o<n.outcomes.length-1&&e.jsx("div",{className:ee.line})]}),e.jsxs("div",{className:ee.apuestaText,children:[e.jsx("strong",{children:s.value})," ","| ",s.label]})]},o))})]})}),e.jsxs("button",{onClick:()=>{var s,o;return Ce((o=(s=n==null?void 0:n.outcomes)==null?void 0:s.map(r=>r==null?void 0:r.id))!=null?o:[])},className:ee.cuotaTotal,children:[e.jsxs("span",{children:["Cuota total: ",e.jsx("strong",{children:(((i=t.combinadoTotal)!=null?i:0)/1e3).toFixed(2)})]}),e.jsx("img",{loading:"lazy",src:"/assets/img/home/Combinadas/cuotaTotal.svg",alt:"cuota total"})]})]})}const Z={"orc-btn":"oraculo__OraculoButtonBet-module__orc-btn___jakza","orc-btn__label":"oraculo__OraculoButtonBet-module__orc-btn__label___zNFEH","orc-btn__icon":"oraculo__OraculoButtonBet-module__orc-btn__icon___5Rhyd","orc-btn--primary":"oraculo__OraculoButtonBet-module__orc-btn--primary___7TlJB","orc-btn--secondary":"oraculo__OraculoButtonBet-module__orc-btn--secondary___X4kJt","orc-btn--tertiary":"oraculo__OraculoButtonBet-module__orc-btn--tertiary___iS6eD","orc-btn--sm":"oraculo__OraculoButtonBet-module__orc-btn--sm___lIF2e","orc-btn--md":"oraculo__OraculoButtonBet-module__orc-btn--md___x4SI7","orc-btn--lg":"oraculo__OraculoButtonBet-module__orc-btn--lg___0BQNI","orc-btn--iconOnly":"oraculo__OraculoButtonBet-module__orc-btn--iconOnly___hQGwI","orc-btn--full":"oraculo__OraculoButtonBet-module__orc-btn--full___z-Myo","orc-btn--fullHeight":"oraculo__OraculoButtonBet-module__orc-btn--fullHeight___pCxq1"};function ra({children:t,onClick:a,href:n,target:i,rel:s,type:o="button",disabled:r=!1,variant:g="primary",size:v,fullWidth:c=!1,fullHeight:f=!1,className:x="",ariaLabel:l,leftIcon:m,rightIcon:C,iconOnly:S}){const O=!!t&&t!==!0,R=(!!m?1:0)+(!!C?1:0)==1,h=S!=null?S:R&&!O,T=[Z["orc-btn"],Z[`orc-btn--${g}`],v?Z[`orc-btn--${v}`]:"",c?Z["orc-btn--full"]:"",f?Z["orc-btn--fullHeight"]:"",h?Z["orc-btn--iconOnly"]:"",x].filter(Boolean).join(" "),k=e.jsxs(e.Fragment,{children:[m&&e.jsx("span",{className:Z["orc-btn__icon"],children:m}),!h&&e.jsx("span",{className:Z["orc-btn__label"],children:t}),C&&e.jsx("span",{className:Z["orc-btn__icon"],children:C})]}),B=r?!0:void 0;return n?e.jsx(U.Link,{href:n,target:i,rel:s,"aria-label":l,"aria-disabled":B,tabIndex:B?-1:void 0,className:T,onClick:B?$=>$.preventDefault():a,children:k}):e.jsx("button",{type:o,onClick:a,disabled:!!B,"aria-label":l,className:T,children:k})}const la="oraculo__OraculoEventEnVivoCard-module__cardWrapper___6b-cT",Xe={cardWrapper:la},ke={base:"FFFFFF",sleeve:"FFFFFF",number:"000000",real:!1,type:"short_sleeves"},Me={base:"000000",sleeve:"000000",number:"FFFFFF",real:!1,type:"short_sleeves"},ue=(t,a,n="player")=>{var s,o;if(t===void 0)return null;if(t===null)return a==="home"?ke:Me;const i=(o=(s=t==null?void 0:t.jerseys)==null?void 0:s[a])==null?void 0:o[n];return i||(a==="home"?ke:Me)};function Ye({event:t,liveData:a,betOffers:n,jersey:i}){var o,r,g,v,c,f,x,l,m,C,S;const s=n==null?void 0:n.find(O=>{var I;return((I=O.betOfferType)==null?void 0:I.id)===2});return e.jsx("div",{className:Xe.cardWrapper,children:e.jsxs(A.default,{direction:"column",spacing:1,useFlexGap:!0,children:[e.jsxs(A.default,{direction:"column",spacing:1.5,useFlexGap:!0,children:[e.jsx(We,{title:(g=(r=(o=t==null?void 0:t.path)==null?void 0:o[0])==null?void 0:r.name)!=null?g:"",subtitle:(v=t==null?void 0:t.group)!=null?v:"",live:!0,time:((c=a==null?void 0:a.matchClock)==null?void 0:c.minute)!=null?`${a.matchClock.minute}'`:""}),e.jsx("div",{style:{padding:"0 4px"},children:e.jsxs(K,{spacing:1.5,columns:"1fr auto 1fr",children:[e.jsx(le,{name:t==null?void 0:t.homeName,jersey:ue(i,"home")}),e.jsx(Oe,{text:((x=(f=a==null?void 0:a.score)==null?void 0:f.home)!=null?x:0)+":"+((m=(l=a==null?void 0:a.score)==null?void 0:l.away)!=null?m:0),name:"En vivo"}),e.jsx(le,{name:t==null?void 0:t.awayName,jersey:ue(i,"away")})]})})]}),e.jsxs(A.default,{direction:"column",spacing:1,useFlexGap:!0,children:[e.jsx(K,{spacing:1,children:((C=s==null?void 0:s.outcomes)!=null?C:[]).map((O,I)=>e.jsx(Se,{text:O.label.toUpperCase()},I))}),e.jsx(K,{spacing:2,children:((S=s==null?void 0:s.outcomes)!=null?S:[]).map((O,I)=>e.jsx(ra,{variant:"primary",disabled:O.odds==null||(s==null?void 0:s.cashOutStatus)=="SUSPENDED",onClick:()=>{Ce(O.id)},children:O.odds===void 0?"":(O.odds/1e3).toFixed(2)},I))})]})]})})}const ca="oraculo__OraculoEventDate-module__date___xhIlh",da={date:ca};function ua({text:t}){return e.jsx("div",{className:`oli-font ${da.date}`,children:t})}const ma="oraculo__OraculoEventSemanaCard-module__cardContainer___4JuDe",pa="oraculo__OraculoEventSemanaCard-module__cardBackground___vfalD",fa="oraculo__OraculoEventSemanaCard-module__jugadas___W8b7H",ga="oraculo__OraculoEventSemanaCard-module__equipos___G5hLn",ne={cardContainer:ma,cardBackground:pa,jugadas:fa,equipos:ga};function Qe({event:t,jersey:a}){var i,s,o,r,g,v,c;function n(f){const x=new Date(f),l=x.toLocaleDateString("es-ES",{weekday:"short"}).toUpperCase(),m=x.getDate().toString().padStart(2,"0"),C=(x.getMonth()+1).toString().padStart(2,"0");let S=x.toLocaleTimeString("es-PE",{hour:"numeric",minute:"2-digit",hour12:!0}).toUpperCase();return S=S.replace(/\./g,"").replace(/A\s*M/i,"AM").replace(/P\s*M/i,"PM"),`${l} ${m}/${C} | ${S}`}return e.jsxs("div",{className:ne.cardContainer,children:[e.jsx(je,{title:(i=t==null?void 0:t.group)!=null?i:""}),e.jsx("div",{className:ne.cardBackground,children:e.jsxs(A.default,{direction:"column",spacing:{xs:.5,md:1},useFlexGap:!0,children:[e.jsxs(A.default,{direction:"column",spacing:1,useFlexGap:!0,children:[e.jsxs("div",{className:ne.equipos,children:[e.jsx(le,{name:t.homeName,size:"compact",jersey:ue(a,"home")}),e.jsx(Oe,{text:"vs.",name:"",size:"small"}),e.jsx(le,{name:t.awayName,size:"compact",jersey:ue(a,"away")})]}),e.jsx(ua,{text:n(t.start)})]}),e.jsxs(A.default,{direction:"column",spacing:{xs:.5,md:1},useFlexGap:!0,children:[e.jsx(K,{spacing:1,children:((r=(o=(s=t==null?void 0:t.outcome)==null?void 0:s[0])==null?void 0:o.outcomes)!=null?r:[]).map((f,x)=>e.jsx(Se,{text:f.label.toUpperCase()},x))}),e.jsx("div",{className:ne.jugadas,children:e.jsx(K,{spacing:1,children:((c=(v=(g=t==null?void 0:t.outcome)==null?void 0:g[0])==null?void 0:v.outcomes)!=null?c:[]).map((f,x)=>e.jsx(V,{variant:"primary",fullHeight:!0,onClick:()=>{Ce(f.id)},children:(f.odds/1e3).toFixed(2)},x))})})]})]})})]})}function et({items:t,title:a="Destacados",iconUrl:n,onViewMore:i,className:s=""}){const o=_.useRef(null),[r,g]=_.useState({isStart:!0,isEnd:!1}),v=H.useCaptureInteraction(),c=!t||t.length===0,f=()=>{var S;v({element:"destacados_carousel_prev",label:"OraculoSeccionDestacados - Anterior",target:"carousel",event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{section:"OraculoSeccionDestacados"}}),(S=o.current)==null||S.prev()},x=()=>{var S;v({element:"destacados_carousel_next",label:"OraculoSeccionDestacados - Siguiente",target:"carousel",event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{section:"OraculoSeccionDestacados"}}),(S=o.current)==null||S.next()},l=()=>{v({element:"destacados_view_more",label:"OraculoSeccionDestacados - Ver más",target:"https://www.olimpo.bet/promociones",event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{section:"OraculoSeccionDestacados"}}),typeof globalThis!="undefined"&&globalThis.location&&globalThis.location.assign("https://www.olimpo.bet/promociones")},m=S=>{if(!S)return;const I=`https://www.olimpo.bet/promociones/${encodeURIComponent(S)}`;v({element:"destacados_card",label:`OraculoSeccionDestacados - Click: ${String(S)}`,target:I,event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{section:"OraculoSeccionDestacados",promotion:String(S)}}),typeof globalThis!="undefined"&&globalThis.location&&globalThis.location.assign(I)},C=s||void 0;return e.jsxs("section",{className:C,style:{width:"100%"},children:[e.jsxs("header",{style:{display:"grid",gridTemplateColumns:"1fr auto auto",alignItems:"center",columnGap:12,rowGap:8,marginBottom:16},children:[e.jsx(X,{title:a,iconUrl:n,size:"md"}),e.jsxs("div",{style:{display:"flex",gap:8},children:[e.jsx(V,{ariaLabel:"Anterior",variant:"secondary",iconOnly:!0,leftIcon:e.jsx(se.ChevronLeftRounded,{}),onClick:f,disabled:r.isStart||c}),e.jsx(V,{ariaLabel:"Siguiente",variant:"secondary",iconOnly:!0,rightIcon:e.jsx(se.ChevronRightRounded,{}),onClick:x,disabled:r.isEnd||c})]}),e.jsx(V,{variant:"secondary",onClick:l,children:"Ver más"})]}),e.jsx(Y,{ref:o,items:t,perPage:2,gap:"16px",enableHorizontalWheel:!0,options:{autoWidth:!0,gap:"12px",trimSpace:!0,pagination:!1,arrows:!1,drag:!0,focus:"start"},breakpoints:{768:{perPage:2,focus:"start"},1024:{perPage:2.5,focus:"start"}},renderItem:S=>e.jsx("div",{style:{textAlign:"center",marginTop:16,cursor:"pointer"},onClick:()=>m(S.promotion),children:e.jsx("img",{src:`https://olimpo.bet${S.image!==""?S.image:S.summary_image}`,alt:S.title,style:{width:"100%",height:typeof window!="undefined"&&window.innerWidth<768?"80px":"137px",borderRadius:8,display:"block",objectFit:"cover"}})},`${S.title}-${S.image}`),onMove:({isStart:S,isEnd:O})=>{g({isStart:S,isEnd:O}),v({element:"destacados_carousel_slide",label:"OraculoSeccionDestacados - Slide Carousel",target:"carousel",event_type:"slide",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:"",isStart:S,isEnd:O},tags:{section:"OraculoSeccionDestacados"}})}})]})}const de="__ORACULO_EXTRAS__";function tt(){const t=globalThis;return t[de]||(t[de]={}),t[de]}function ha(t){tt().extras=t}function te(t){var a;return(a=tt().extras)==null?void 0:a[t]}function ba(){delete globalThis[de]}function Ie({items:t,title:a="Top Juegos",iconUrl:n,onCardClick:i}){const s=H.useCaptureInteraction(),o=_.useMemo(()=>(t!=null?t:[]).map((c,f)=>{var x;return{...c,orden:(x=c.orden)!=null?x:f+1,_originalIndex:f}}).sort((c,f)=>c.orden!=null&&f.orden!=null?c.orden-f.orden:c._originalIndex-f._originalIndex),[t]),r=!t||t.length===0,g=r?Array.from({length:6}):o.slice(0,6),v=c=>{s({element:"top_juegos_card",label:`OraculoSeccionTopJuegos - Open game: ${String(c.machine||"unknown")}`,target:String(c.machine||"unknown"),event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{game_name:String(c.machine||"unknown"),section:"OraculoSeccionTopJuegos"}});const f=te("showIframe"),x=te("loadMachine");f==null||f(),requestAnimationFrame(()=>{x==null||x(c,!1,"CASINO")})};return e.jsx("section",{style:{width:"100%"},children:e.jsxs(A.default,{direction:"column",spacing:2,useFlexGap:!0,children:[e.jsx(X,{title:a,iconUrl:n,size:"md"}),e.jsx(M.default,{sx:{display:"grid",gridTemplateColumns:{xs:"repeat(3, minmax(0, 1fr))",md:"repeat(6, minmax(0, 1fr))"},gap:{xs:1.5,md:2},justifyItems:"center",width:"100%"},children:g.map((c,f)=>{var x,l;return e.jsx(De,{imageUrl:r?"":c.background?`https://olimpo.bet${c.background}`:`https://olimpo.bet${(x=c.logo)!=null?x:""}`,orden:r?f+1:c.orden,loading:r,onClick:r?void 0:()=>{i==null||i(c),v(c)}},r?`sk-${f}`:(l=c.machine)!=null?l:`${f}`)})})]})})}const xa=(t,a)=>{var n,i;return(i=(n=t.orden)!=null?n:t.machine)!=null?i:a},at=({items:t,title:a="Casino en vivo",subtitle:n="Disfruta la emoción en tus juegos favoritos y gana en tiempo real.",backgroundMobileUrl:i="",backgroundDesktopUrl:s="",onViewMore:o,className:r})=>{const g=H.useCaptureInteraction(),v=c=>{g({element:"live_casino_card",label:`OraculoSeccionCasinoEnVivo - Open game: ${String(c.machine||"OraculoSeccionCasinoEnVivo -unknown")}`,target:String(c.machine||"unknown"),event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{game_name:String(c.machine||"unknown"),provider:c.provider||"unknown",section:"OraculoSeccionCasinoEnVivo"}});const f=te("showIframe"),x=te("loadMachine");f==null||f(),typeof window!="undefined"&&window.scrollTo({top:0,behavior:"smooth"}),requestAnimationFrame(()=>{x==null||x(c,!1,"casino_en_vivo")})};return e.jsxs(M.default,{className:r,sx:{position:"relative",color:"white",overflow:"hidden"},children:[e.jsx(M.default,{sx:{position:"absolute",inset:0,backgroundImage:{xs:`
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),V=require("@mui/material"),gt=require("@mui/material/Skeleton"),v=require("react"),qe=require("@splidejs/react-splide"),ht=require("@mui/material/Box"),bt=require("@mui/material/Typography"),xt=require("@mui/material/Stack"),se=require("@mui/icons-material"),K=require("@olimpo/capture-client"),vt=require("@mui/icons-material/ChevronLeftRounded"),_t=require("@mui/icons-material/ChevronRightRounded"),yt=require("@mui/material/useMediaQuery"),Te=require("firebase/firestore"),ae=t=>t&&t.__esModule?t:{default:t},P=ae(gt),Ae=ae(v),N=ae(ht),X=ae(bt),U=ae(xt),ze=ae(vt),Pe=ae(_t),wt=ae(yt);function W({children:t,onClick:a,href:n,target:i,rel:r,type:s="button",disabled:o=!1,variant:d="primary",size:g,fullWidth:l=!1,fullHeight:u=!1,className:f="",ariaLabel:k,leftIcon:b,rightIcon:E,iconOnly:S}){const O=!!t&&t!==!0,B=(!!b?1:0)+(!!E?1:0)==1,_=S!=null?S:B&&!O,T=["orc-btn",d==="secondary"?"orc-btn--secondary":d==="tertiary"?"orc-btn--tertiary":"orc-btn--primary",g?`orc-btn--${g}`:"",l?"orc-btn--full":"",u?"orc-btn--fullHeight":"",_?"orc-btn--iconOnly":"",f].filter(Boolean).join(" "),M=e.jsxs(e.Fragment,{children:[b&&e.jsx("span",{className:"orc-btn__icon",children:b}),!_&&e.jsx("span",{className:"orc-btn__label",children:t}),E&&e.jsx("span",{className:"orc-btn__icon",children:E})]}),F=o?!0:void 0;return n?e.jsx(V.Link,{href:n,target:i,rel:r,"aria-label":k,"aria-disabled":F,tabIndex:F?-1:void 0,className:T,onClick:F?z=>z.preventDefault():a,children:M}):e.jsx("button",{type:s,onClick:a,disabled:!!F,"aria-label":k,className:T,children:M})}function Y({title:t,iconUrl:a,size:n="md",className:i=""}){const s=["orc-section-title",n?`orc-section-title--${n}`:"",i].filter(Boolean).join(" ");return e.jsxs("div",{className:s,children:[a&&e.jsx("img",{src:a,alt:"",className:"orc-section-title__icon"}),e.jsx("h2",{className:"orc-section-title__title",children:t})]})}const we=({total:t,active:a,onSelect:n,className:i=""})=>{if(t<=1)return null;const r=["orc-dots",i].filter(Boolean).join(" ");return e.jsx("div",{className:r,role:"tablist",children:Array.from({length:t}).map((s,o)=>e.jsx("span",{className:"orc-dots__cell",children:e.jsx("button",{type:"button",role:"tab","aria-selected":o===a,"aria-label":`Ir al slide ${o+1}`,className:"orc-dots__dot"+(o===a?" orc-dots__dot--active":""),onClick:()=>n==null?void 0:n(o)})},o))})};function H({children:t,minWidth:a=32,spacing:n=2,justify:i="stretch",columns:r=null}){const s=r||`repeat(auto-fit, minmax(${a}px, 1fr))`,o=typeof n=="number"?`${n*8}px`:n;return e.jsx("div",{style:{display:"grid",gridTemplateColumns:s,justifyItems:i,gap:o,height:"inherit"},children:t})}function _e({src:t,alt:a}){return e.jsx(V.Box,{sx:{position:"relative",width:{xs:65,sm:80,md:120,lg:160},height:{xs:48,md:96},display:"inline-block"},children:e.jsx(V.Box,{component:"img",src:t,alt:a,sx:{position:"absolute",top:0,left:0,width:"100%",height:"100%",objectFit:"contain"}})})}const St="oraculo__OraculoEventTitle-module__contenedor___rg1vw",jt="oraculo__OraculoEventTitle-module__flexGroup___jMLFO",Ot="oraculo__OraculoEventTitle-module__subtitle___TmHna",ge={contenedor:St,flexGroup:jt,subtitle:Ot};function Ct({title:t,subtitle:a}){return e.jsxs("div",{className:ge.contenedor,children:[e.jsx("span",{style:{fontWeight:700,fontSize:"12px",lineHeight:"16px"},children:t}),a&&e.jsxs("div",{className:ge.flexGroup,children:[e.jsxs("svg",{width:"4",height:"4",viewBox:"0 0 5 5",xmlns:"http://www.w3.org/2000/svg",style:{flexShrink:0},children:[" ",e.jsx("circle",{cx:"2.5",cy:"2.5",r:"2.5",fill:"white"})," "]}),e.jsx("span",{className:ge.subtitle,children:a}),e.jsx("div",{})]})]})}function Ue({text:t,color:a="#ff3b3b",textColor:n="#fff"}){return e.jsx("span",{className:"oli-font",style:{backgroundColor:a,color:n,borderRadius:"8px",padding:"4px 8px",fontSize:"12px",lineHeight:"16px",fontWeight:700,width:"41px",height:"16px",textAlign:"center"},children:t})}function Ve({live:t,time:a}){return e.jsxs("div",{className:"oli-font",style:{display:"flex",alignItems:"center",gap:"8px"},children:[t&&e.jsx(Ue,{text:"En vivo"}),a&&e.jsx("span",{style:{fontSize:"14px",fontWeight:400,lineHeight:"18px",paddingTop:"4px"},children:a})]})}function We({title:t,subtitle:a,live:n=!1,time:i=""}){return e.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",color:"#FFFFFF"},children:[e.jsx(Ct,{title:t,subtitle:a}),e.jsx(Ve,{live:n,time:i})]})}const Et="oraculo__OraculoEventLabel-module__label___c64Xw",It={label:Et};function Se({text:t}){return e.jsx("span",{className:It.label,children:t})}const Tt="oraculo__OraculoEventLeague-module__container___rdk4F",kt={container:Tt};function je({title:t}){return e.jsx("div",{className:kt.container,children:t.toUpperCase()})}const Mt="oraculo__OraculoEventScore-module__scoreWrapper___fWwEr",Bt="oraculo__OraculoEventScore-module__name___r4uL6",Nt="oraculo__OraculoEventScore-module__score___Xl03M",Rt="oraculo__OraculoEventScore-module__normal___cCNFz",$t="oraculo__OraculoEventScore-module__small___fVt8E",oe={scoreWrapper:Mt,name:Bt,score:Nt,normal:Rt,small:$t};function Oe({text:t,name:a,size:n="normal"}){return e.jsxs("div",{className:`${oe.scoreWrapper} ${oe[n]}`,children:[e.jsx("div",{className:`${oe.score} ${oe[n]}`,children:t}),a&&e.jsx("span",{className:`${oe.name} ${oe[n]}`,children:a})]})}const Ft="oraculo__OraculoEventTeamInfo-module__team___UfpUs",Lt="oraculo__OraculoEventTeamInfo-module__regular___ag826",qt="oraculo__OraculoEventTeamInfo-module__compact___RCNOs",At="oraculo__OraculoEventTeamInfo-module__logo___fKCl3",zt="oraculo__OraculoEventTeamInfo-module__name___4ikm-",Pt="oraculo__OraculoEventTeamInfo-module__skeleton___Yfaxh",ie={team:Ft,regular:Lt,compact:qt,logo:At,name:zt,skeleton:Pt},Ut="oraculo__OraculoTeamPolo-module__polo___BisRg",Vt="oraculo__OraculoTeamPolo-module__svgWrapper___HRKNX",Wt="oraculo__OraculoTeamPolo-module__shadow___-3DXb",Dt="oraculo__OraculoTeamPolo-module__highlight___1etm7",ce={polo:Ut,svgWrapper:Vt,shadow:Wt,highlight:Dt};function Gt({jersey:t,className:a}){const n=`#${t.base}`,i=t.sleeve?`#${t.sleeve}`:n,r=t.stripes?`#${t.stripes}`:null,s=t.sleevelong?`#${t.sleevelong}`:null;return e.jsxs("div",{className:`${ce.polo} ${a!=null?a:""}`,children:[e.jsx("div",{className:ce.svgWrapper,children:e.jsxs("svg",{viewBox:"0 0 656 656","aria-hidden":!0,children:[e.jsx("path",{fill:n,d:"m62 265 5.8-17c-.4-.7-.6-1.5-.4-2 .2-.7.8-1.2 1.2-1.4l1.2-4 9-21.6c.2-1 1-3.5 2.4-6.4a69.9 69.9 0 0 1 4.1-17.2l2.9-7 2.9-11.4c1.7-5.8 5.2-18.4 5.8-22 .6-3.6 6.8-19 9.8-26.2.4-.9 2.4-4.7 7.2-12.8 5.4-12.2 23.5-27.2 32-33.1l6.6-3.7 7.9-3.6 17.3-6.2 16.6-7.1L215 52c7-4.1 21.8-12.5 24.1-13.2 2.3-.8 5-3.5 6-4.7 1.2-1.2 4.2-3.8 6.6-4.7 2.3-1 8.2-6.8 10.8-9.6 1.6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1.1 100.1 0 59.3 1.1 82.6 2.7 114.6.9 18.8 2 40.7 3 74.9 1.5 48.3.8 98.4 0 148.6l-.8 68.3c0 13-.6 32.8-1.1 49Zm157.5-16.4-11.2 3.6a379.2 379.2 0 0 1-67 12c.2-11 .3-25.6.3-44.6 0-49.2-1.2-74.9-2.4-99.5-1.3-27.2-2.5-53-2-107.5.6-50.4 1.7-81.5 2.6-109.3 1-29.3 1.8-54.9 1.8-95.6 0-35.5-.6-70.6-1.2-98.6l3.6-3 5.3-5.1 3.5-3.6 3.5-3.4 4-5 4.2-5.3 2.7-4 .5.3 3.2 1.5 5.5 3.3 5.8 3 7.3 3 8.1 2.2c.7.2 3.3 1 8.4 2 2.4 0 6.5 1.5 11 3.4 2.6 29 5.2 68 5.2 107.8 0 41.5-1.6 70.2-3.2 102-1.6 28.7-3.3 60-4 105.6-.7 41.1.4 82.5 1.4 124.4.7 25.7 1.4 51.6 1.6 77.8a435 435 0 0 0 1.5 32.6Z"})]}),s&&e.jsx(e.Fragment,{children:e.jsx("path",{fill:s,d:"m153 277.8-5.8 14.5c-1 2.8-2.5 1.4-4.6.7l-2-.5-7.8-2.4-15.6-5-19-6.5-16-5.7-12-4.4-5.5-2.2c-3.5-1.1-3.1-1.2-1.9-4l1.8-4.9 3.2-9.3c-1.1-1.9 0-3.1.8-3.5l.2-.7.5-2 4.3-10.3 2.4-6 2.6-6.2.8-2.6 1.7-4.1v-.4l.3-2.6.6-3.4 1-3.5 1-3.8c.1-.9 2-5.6 3-7.8l.7-1.5.7-2 .9-3.6 3.4-12.6 2.4-8.6 2.7-11.2 3.5-9.6 3.6-9.4 3-6 2-4.1 3.6-5.8 2.2-4.3 3-4.4 3.2-3.9 1.7-1.9 3.6-3.6 3-2.9a109.3 109.3 0 0 1 13.3-11.2l1.2-.8a79.3 79.3 0 0 1 18-9l11.4-4.2 4-1.4 6.3-2.7 3.3-1.4 2.8-1.2 4-1.6 3.9-2.1 10.1-5 4.8-2.4 5.7-3.2 13.8-7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5 6.7 5.3 6.6 11 10.7 10.8 9.8 12.8 11.7 7.4 7 3 3 15-13.3 16.7-15.7 6.7-6.2 6-6.6a104.1 104.1 0 0 0 13.8-19.6c1-1.9 1.8-4.5 2-5.6 2.7-7.9 1.4-13.8-1.5-17.8-4-5.2-14.9-6.6-18.5-7.1h-.7c-13.8-1.9-39.8-2-46-1.9-9-.2-28.1.2-32.5.7-.6 0-1.2 0-1.9.2-6.8.6-19.9 1.9-22.6 10.6a22.6 22.6 0 0 0 .9 10.3l.8 2.9Z"}),e.jsx("path",{fill:i,d:"m74.8 250.8-6.8-2.7-.3.7-3 8.7-2 5.7c-1 2.2-.5 1.9.1 2.3l2.2 1 8.8 3.3 10.4 3.8 10.7 3.8 14.3 4.8 13 4.3 7 2.3 13.8 4.3c2.2.7 3 1.4 3.8 0l6.3-15.6-4.6-1.8a88 88 0 0 1-9.4-3c-.8-.6-11.8-3.7-17.3-5.4l-7-2.4-13-4.3c-3.2-1.3-9.9-3.8-11-4-1.2-.2-11-3.8-16-5.8Z"}),e.jsx("path",{fill:i,d:"m505 284.5-3.5-7.5c.2-.2 1.2-.4 3 0 1.6.4 11.3-1.7 16-2.7l22.5-6.6 13.7-4.5 16.8-6.7a90 90 0 0 0 13.7-7.7v1l.6 2 1.9 5.5 2.9 7.8c.6 1.6-5.5 4.8-8.6 6.3l-17 7.2-15.3 5.4-13 4.2-13 3.3-9.9 2c-6.8 1.2-7.2-.4-8-2l-2.7-7Z"})]})}),e.jsx("img",{src:"https://widgets.sir.sportradar.com/assets/media/shadow.7a42eb6e.png",className:ce.shadow,alt:"","aria-hidden":!0}),e.jsx("img",{src:"https://widgets.sir.sportradar.com/assets/media/highlight.b1ac6c3e.png",className:ce.highlight,alt:"","aria-hidden":!0})]})}function le({name:t,jersey:a,size:n="regular"}){return e.jsxs("div",{className:`oli-font ${ie.team} ${ie[n]}`,children:[a!=null&&a.base?e.jsx(Gt,{jersey:a,className:`${ie.logo}`}):e.jsx(P.default,{variant:"circular",className:`${ie.logo} ${ie.skeleton}`}),e.jsx("span",{className:ie.name,children:t})]})}function Ht(t,a,{enabled:n=!0}={}){const i=v.useRef(null);v.useEffect(()=>{if(!n)return;const r=t.current;if(!r)return;const s=o=>{const d=a.current;if(!d||!d.go)return;const{deltaX:g,deltaY:l}=o;if(Math.abs(g)<=Math.abs(l)||Math.abs(g)<2)return;o.preventDefault();const u=g>0?">":"<";i.current===null&&(i.current=requestAnimationFrame(()=>{i.current=null,d.go(u)}))};return r.addEventListener("wheel",s,{passive:!1}),()=>{r.removeEventListener("wheel",s),i.current&&cancelAnimationFrame(i.current)}},[n,t,a])}const Kt=qe.Splide,Zt=qe.SplideSlide,Q=v.forwardRef(({items:t=[],renderItem:a,perPage:n=1,gap:i="0px",breakpoints:r,options:s={},className:o="",onMove:d,useIndexAsKey:g=!1,enableHorizontalWheel:l=!0},u)=>{const f=v.useRef(null),k=v.useRef(null),b=v.useRef(t.length);Ht(k,f,{enabled:l}),v.useImperativeHandle(u,()=>({next:()=>{var _;return(_=f.current)==null?void 0:_.go(">")},prev:()=>{var _;return(_=f.current)==null?void 0:_.go("<")},go:_=>{var T;return(T=f.current)==null?void 0:T.go(_)}}));const E=_=>{var m;const T=_.Components.Slides,M=_.Components.Controller,F=_.root.querySelector(".splide__track"),z=(m=F==null?void 0:F.clientWidth)!=null?m:0,j=M.getIndex(),C=T.getLength();let A=0,p=j;for(let c=j;c<C;c++){const h=T.getAt(c);if(!h||(A+=h.slide.offsetWidth,A>z))break;p=c}return{visibleStart:j,visibleEnd:p}},S=_=>{const T=_.root.querySelector(".splide__track"),M=_.root.querySelector(".splide__list");return!T||!M?!1:M.scrollWidth>T.clientWidth+1},O=v.useCallback(_=>{const M=_.Components.Slides.getLength();if(!S(_)){d==null||d({index:0,isStart:!0,isEnd:!0,total:M,visibleStart:0,visibleEnd:M-1});return}const{visibleStart:F,visibleEnd:z}=E(_),j=F===0,C=z===M-1,A=_.Components.Controller.getIndex();d==null||d({index:A,isStart:j,isEnd:C,total:M,visibleStart:F,visibleEnd:z})},[d]);Ae.default.useEffect(()=>{var M;const _=(M=f.current)==null?void 0:M.splide;if(!_)return;const T=b.current!==t.length;b.current=t.length,T&&requestAnimationFrame(()=>{_.refresh(),O(_)})},[t.length,O]);const x=v.useCallback(()=>{var T;const _=(T=f.current)==null?void 0:T.splide;_&&(_.go(0,!1),O(_))},[O]),y=v.useCallback(_=>{O(_)},[O]),B={type:"slide",trimSpace:!1,drag:!0,pagination:!1,arrows:!1,rewind:!1,focus:"start",autoWidth:!1,perPage:n,gap:i,breakpoints:r,...s,...l?{wheel:!1}:{}};return e.jsx("div",{ref:k,className:o,style:{width:"100%"},children:e.jsx(Kt,{ref:f,options:B,onMove:O,onMounted:y,onResize:x,children:t.map((_,T)=>{var M;return e.jsx(Zt,{children:a(_,T)},g?T:(M=_.id)!=null?M:T)})})})}),re=({imageUrl:t,onClick:a,size:n="sm",fillParent:i=!1})=>{const r=n==="lg"?{w:280,h:352}:{w:152,h:168},s=d=>{d.stopPropagation(),a==null||a()},o=i?{width:"100%",height:"100%"}:{width:`${r.w}px`,height:`${r.h}px`};return e.jsxs(N.default,{onClick:a,role:"button",sx:{position:"relative",borderRadius:"12px",overflow:"hidden",boxSizing:"border-box",transition:"transform .15s ease, box-shadow .15s ease",...o,"&:hover":{transform:"translateY(-2px)",boxShadow:8,cursor:"pointer"},"&:hover .oraculo-game-card-overlay":{opacity:1},"&:hover .oraculo-game-card-btn":{opacity:1,transform:"translate(-50%, -50%) scale(1)",pointerEvents:"auto"}},children:[e.jsx("img",{src:t,alt:"Juego de casino",loading:"lazy",style:{width:"100%",height:"100%",objectFit:"cover",display:"block",borderRadius:"inherit"}}),e.jsx(N.default,{className:"oraculo-game-card-overlay",sx:{position:"absolute",inset:0,backgroundColor:"rgba(0, 0, 0, 0.45)",opacity:0,transition:"opacity .15s ease",pointerEvents:"none",zIndex:1}}),e.jsx(N.default,{className:"oraculo-game-card-btn",sx:{position:"absolute",top:"50%",left:"50%",zIndex:2,transform:"translate(-50%, -50%) scale(0.95)",opacity:0,transition:"opacity .15s ease, transform .15s ease",pointerEvents:"none"},children:e.jsx(W,{variant:"primary",size:"md",onClick:s,children:"Jugar"})})]})};function De({imageUrl:t,orden:a=1,onClick:n,loading:i=!1,sizes:r={xs:{w:104,h:112,r:18,font:48},md:{w:186,h:264,r:22.6,font:64}}}){var f,k,b,E;const s=(S,O)=>{var x,y,B,_;return{xs:(y=(x=r.xs)==null?void 0:x[S])!=null?y:O,md:(_=(B=r.md)==null?void 0:B[S])!=null?_:O}},o=s("w",186),d=s("h",264),g=s("r",22.6),l=s("font",64),u={xs:Math.round(((k=(f=r.xs)==null?void 0:f.font)!=null?k:64)*.28),md:Math.round(((E=(b=r.md)==null?void 0:b.font)!=null?E:64)*.28)};return e.jsxs(N.default,{sx:{position:"relative",width:"100%",maxWidth:{xs:`${o.xs}px`,md:`${o.md}px`},aspectRatio:{xs:`${o.xs}/${d.xs}`,md:`${o.md}/${d.md}`},borderRadius:{xs:`${g.xs}px`,md:`${g.md}px`},boxSizing:"border-box",overflow:"visible",pb:{xs:`${u.xs}px`,md:`${u.md}px`},"&::before":{content:'""',position:"absolute",inset:0,borderRadius:"inherit",pointerEvents:"none",zIndex:2,background:"linear-gradient(21.29deg, #0B0D1B -1.16%, rgba(255,255,255,0) 51.92%, rgba(255,255,255,0) 127.62%)",backgroundBlendMode:"multiply"}},children:[e.jsx(N.default,{sx:{position:"absolute",inset:0,borderRadius:"inherit",overflow:"hidden"},children:i?e.jsx(P.default,{variant:"rectangular",width:"100%",height:"100%",sx:{bgcolor:"rgba(255,255,255,0.10)","&::after":{background:"linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent)"}}}):e.jsx(re,{imageUrl:t,onClick:n,size:"lg",fillParent:!0})}),e.jsx(N.default,{component:"span",sx:{position:"absolute",left:8,bottom:{xs:`-${u.xs}px`,md:`-${u.md}px`},fontFamily:"secondary",fontSize:{xs:`${l.xs}px`,md:`${l.md}px`},lineHeight:1,color:"#3CC666",WebkitTextStroke:"1px #9ee86e",zIndex:3,userSelect:"none"},children:a})]})}const Ge=({logo:t,provider:a,providerName:n,machine:i,onClick:r})=>{var s;return e.jsxs(N.default,{onClick:r,sx:{flex:"0 0 auto",position:"relative",borderRadius:"20px",overflow:"hidden",width:{xs:100,md:180},height:{xs:200,md:380},transition:"width .50s ease, transform .28s ease",willChange:"width, transform",cursor:"pointer",zIndex:0,"&:hover":{zIndex:2,width:{md:260,xs:110}},"&:hover .orc-live-provider-label":{opacity:1}},children:[e.jsx(N.default,{component:"img",src:t,alt:`Juego ${i!=null?i:""}`,sx:{position:"absolute",inset:0,width:"100%",height:"100%",objectFit:"cover",display:"block"}}),e.jsx(N.default,{className:"orc-live-provider-label",sx:{position:"absolute",left:"50%",top:{xs:"75%",md:"80%"},transform:"translate(-50%, -50%)",zIndex:3,opacity:0,transition:"opacity .25s ease",pointerEvents:"none"},children:e.jsx(X.default,{sx:{color:"#fff",fontWeight:700,fontSize:{xs:11,md:14},textTransform:"capitalize"},children:(s=a!=null?a:n)!=null?s:""})})]})},he=12,be=({r:t=16})=>e.jsx(N.default,{sx:{width:"100%",height:"100%",borderRadius:t,overflow:"hidden"},children:e.jsx(P.default,{variant:"rectangular",width:"100%",height:"100%",sx:{bgcolor:"rgba(255,255,255,0.10)","&::after":{background:"linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent)"}}})}),Ce=({items:t,layout:a="grid",onClick:n,loading:i=!1,gridSkeletonCount:r=4})=>{var s,o;if(a==="mosaic"){const d=t[0],g=t.slice(1,5);return e.jsxs(N.default,{sx:{display:"grid",gridTemplateRows:{xs:"repeat(2, 112px)",md:"repeat(2, 168px)"},gridTemplateColumns:{xs:"184px",md:"280px"},gridAutoFlow:"column",gridAutoColumns:{xs:"104px",md:"152px"},columnGap:`${he}px`,rowGap:`${he}px`,alignItems:"stretch",justifyItems:"stretch"},children:[e.jsx(N.default,{sx:{width:{xs:184,md:280},height:{xs:234,md:352},gridRow:"1 / span 2",overflow:"hidden",borderRadius:2},children:i?e.jsx(be,{}):d&&e.jsx(re,{imageUrl:`https://olimpo.bet${(o=(s=d.background)!=null?s:d.imageUrl)!=null?o:""}`,size:"lg",fillParent:!0,onClick:()=>n==null?void 0:n(d,0)})}),(i?Array.from({length:4}):g).map((l,u)=>{var f,k;return e.jsx(N.default,{sx:{width:{xs:104,md:152},height:{xs:112,md:168},overflow:"hidden",borderRadius:2},children:i?e.jsx(be,{}):e.jsx(re,{imageUrl:`https://olimpo.bet${(k=(f=l.background)!=null?f:l.imageUrl)!=null?k:""}`,size:"sm",fillParent:!0,onClick:()=>n==null?void 0:n(l,u+1)})},i?`sk-${u}`:l.id)})]})}return e.jsx(N.default,{sx:{display:"grid",gridTemplateColumns:{xs:"repeat(2, 104px)",md:"repeat(2, 152px)"},gridTemplateRows:{xs:"repeat(2, 112px)",md:"repeat(2, 168px)"},gap:`${he}px`,gridAutoFlow:"column"},children:(i?Array.from({length:r}):t).map((d,g)=>{var l,u,f;return e.jsx(N.default,{sx:{overflow:"hidden",borderRadius:2},children:i?e.jsx(be,{}):e.jsx(re,{imageUrl:`https://olimpo.bet${(u=(l=d.background)!=null?l:d.imageUrl)!=null?u:""}`,size:"sm",fillParent:!0,onClick:()=>n==null?void 0:n(d,g)})},i?`sk-${g}`:(f=d.id)!=null?f:g)})})},ye=({title:t,amount:a,subtitle:n,buttonText:i,onButtonClick:r,backgroundImage:s,alt:o,className:d="",variant:g="small"})=>{const l=a?a.slice(0,2):"",u=a?a.slice(2):"",f=g==="large";return e.jsxs(N.default,{className:d,sx:{position:"relative",width:"100%",maxWidth:{xs:328,md:f?618:456},mx:"auto"},children:[s&&e.jsx(N.default,{sx:{position:"relative",width:"100%",aspectRatio:{xs:"328 / 188",md:f?"618 / 346":"456 / 272"},borderRadius:"14px",overflow:"hidden"},children:e.jsx(N.default,{component:"img",src:s,alt:o!=null?o:"Fondo promocional",sx:{width:"100%",height:"100%",objectFit:"cover",objectPosition:{xs:"50% 0%",md:"45% 0%"},display:"block"}})}),e.jsx(N.default,{sx:{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"flex-end",color:"#e7f8ff",textAlign:"center",pl:"14%",pr:{xs:"14%",lg:"15%"}},children:e.jsxs(N.default,{sx:{maxWidth:"60%",display:"flex",flexDirection:"column",alignItems:"center"},children:[t&&e.jsx(X.default,{sx:{fontSize:{xs:12,md:20},fontWeight:400,color:"#e7f8ff"},children:t}),a&&e.jsxs(N.default,{component:"p",sx:{fontFamily:'"secondary", sans-serif',lineHeight:{xs:.9,lg:.87},m:"4px 0",background:"linear-gradient(175deg, #EDC421 -12.56%, #FFFABF 17.99%, #EDC421 49.74%)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",WebkitTextStroke:"0.5px #fff8c1",filter:"drop-shadow(0px 4px 0px #8D4406) drop-shadow(0px 4px 4px rgba(28, 28, 28, 0.4))",display:"flex",alignItems:"baseline",justifyContent:"center"},children:[e.jsx(N.default,{component:"span",sx:{fontSize:{xs:35,md:48},mr:.5},children:l}),e.jsx(N.default,{component:"span",sx:{fontSize:{xs:52,md:77}},children:u})]}),n&&e.jsx(X.default,{sx:{pb:"20px",fontSize:14,fontWeight:600,color:"#e7f8ff"},children:n}),i&&e.jsx(W,{onClick:r,children:i})]})})]})},He=({text:t,buttonLabel:a="Conoce más",onClick:n,imgAlt:i="Club Olimpo",imgSrcMobile:r,imgSrcDesktopBg:s,imgSrcDesktopLogo:o})=>e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"orc-co-bgMobile",children:e.jsx("img",{src:r,alt:i,className:"orc-co-bgMobileImg"})}),e.jsxs("div",{className:"orc-co-bgDesktop",children:[s&&e.jsx("div",{className:"orc-co-fillHost",children:e.jsx("img",{src:s,alt:`${i} fondo`,className:"orc-co-bgDesktopImg"})}),e.jsxs("div",{className:"orc-co-desktopContent",children:[o&&e.jsx("img",{src:o,alt:`${i} logo`,className:"orc-co-logoImg"}),e.jsx("p",{className:"orc-co-captionDesktop",children:t}),e.jsx(W,{onClick:n,variant:"primary",size:"md",children:a})]})]}),e.jsxs("div",{className:"orc-co-bottom",children:[e.jsx("p",{className:"orc-co-caption",children:t}),e.jsx(W,{onClick:n,variant:"primary",size:"md",children:a})]})]}),Jt="oraculo__OraculoEventCombinadasCard-module__card___ulQeY",Xt="oraculo__OraculoEventCombinadasCard-module__combinadas___Gxrld",Yt="oraculo__OraculoEventCombinadasCard-module__combinadasScroll___47cZl",Qt="oraculo__OraculoEventCombinadasCard-module__apuestaItem___YnYMy",ea="oraculo__OraculoEventCombinadasCard-module__lineContainer___G5rbU",ta="oraculo__OraculoEventCombinadasCard-module__circle___eehm-",aa="oraculo__OraculoEventCombinadasCard-module__line___Eb2pK",na="oraculo__OraculoEventCombinadasCard-module__apuestaText___b5s7S",oa="oraculo__OraculoEventCombinadasCard-module__cuotaTotal___Lohvu",Z={card:Jt,combinadas:Xt,combinadasScroll:Yt,apuestaItem:Qt,lineContainer:ea,circle:ta,line:aa,apuestaText:na,cuotaTotal:oa};function Ee(t){const a=Array.isArray(t)?t:[t];sessionStorage.setItem("landingOutcomes",JSON.stringify(a)),window.location.href="/deportes#in-play"}function ia(){window.location.href="/deportes#in-play"}function sa(){window.location.href="/deportes#sports-hub/football"}function ra(){window.location.href="/deportes#specials"}async function Ke(t){return await(await fetch("https://api.mktolimpo.com/api/jerseys/search",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({events:t})})).json()}function Ze(t,a=250){const[n,i]=v.useState(t);return v.useEffect(()=>{const r=setTimeout(()=>i(t),a);return()=>clearTimeout(r)},[t,a]),n}function Je({coupon:t}){var s;function a(o){var l,u;const d=[],g=Array.from(new Map(((l=o==null?void 0:o.events)!=null?l:[]).filter(Boolean).map(f=>[f.id,f])).values());return g.forEach(f=>{var S;const k=(S=f.betoffers)!=null?S:[],b=f.homeName,E=f.awayName;k.forEach(O=>{var _,T,M,F,z,j,C;if(!((_=O==null?void 0:O.outcomes)!=null&&_.length))return;const x=O.outcomes[0];if(!x)return;let y="";const B=x!=null&&x.line?x.line/1e3:"";["Más de","Mas de","Over"].includes(x.label)?(y=`Más de ${B}`,x.participant&&(y=`${x.participant} - ${y}`)):["Menos de","Menos","Under"].includes(x.label)?(y=`Menos de ${B}`,x.participant&&(y=`${x.participant} - ${y}`)):["Sí","No"].includes(x.label)?(y=x.label,x.participant&&(y=`${x.participant} - ${y}`)):["1X","12","X2"].includes(x.label)?(x.label==="1X"&&(y=`${b} o Empate`),x.label==="12"&&(y=`${b} o ${E}`),x.label==="X2"&&(y=`${E} o Empate`)):(y=(M=(T=x.participant)!=null?T:x.label)!=null?M:"",B!==""&&y===x.label&&(y=`${x.label} ${B}`)),d.push({id:x.id,value:y,label:(z=(F=O.criterion)==null?void 0:F.label)!=null?z:"",odds:(j=x.odds)!=null?j:0,position:(C=x.position)!=null?C:0,eventId:f.id})})}),{outcomes:d.sort((f,k)=>f.position-k.position),total:(((u=o==null?void 0:o.combinadoTotal)!=null?u:0)/1e3).toFixed(2),events:g}}if(!((s=t==null?void 0:t.events)!=null&&s.length))return null;const n=a(t),i=n.outcomes.reduce((o,d)=>(o[d.eventId]||(o[d.eventId]=[]),o[d.eventId].push(d),o),{}),r=new Map(n.events.map(o=>[o.id,o]));return e.jsxs("div",{className:Z.card,children:[e.jsx("div",{className:Z.combinadas,children:e.jsx("div",{className:Z.combinadasScroll,children:e.jsx(U.default,{direction:"column",spacing:1.5,useFlexGap:!0,children:Object.entries(i).reverse().map(([o,d])=>{const g=r.get(Number(o));return g?e.jsxs(U.default,{direction:"column",spacing:.5,useFlexGap:!0,children:[e.jsx(Y,{title:g.name,iconUrl:"/assets/img/home/Combinadas/pelota.png",size:"xs"}),e.jsx("img",{loading:"lazy",src:"/assets/img/home/Combinadas/line.png"}),d.map((l,u)=>e.jsxs("div",{className:Z.apuestaItem,children:[e.jsxs("div",{className:Z.lineContainer,children:[e.jsx("div",{className:Z.circle}),u<d.length-1&&e.jsx("div",{className:Z.line})]}),e.jsxs("div",{className:Z.apuestaText,children:[e.jsx("strong",{children:l.value})," | ",l.label]})]},`${o}-${u}`))]},o):null})})})}),e.jsxs("button",{onClick:()=>Ee(n.outcomes.map(o=>o.id)),className:Z.cuotaTotal,children:[e.jsxs("span",{children:["Cuota total: ",e.jsx("strong",{children:n.total})]}),e.jsx("img",{loading:"lazy",src:"/assets/img/home/Combinadas/cuotaTotal.svg",alt:"cuota total"})]})]})}const J={"orc-btn":"oraculo__OraculoButtonBet-module__orc-btn___jakza","orc-btn__label":"oraculo__OraculoButtonBet-module__orc-btn__label___zNFEH","orc-btn__icon":"oraculo__OraculoButtonBet-module__orc-btn__icon___5Rhyd","orc-btn--primary":"oraculo__OraculoButtonBet-module__orc-btn--primary___7TlJB","orc-btn--secondary":"oraculo__OraculoButtonBet-module__orc-btn--secondary___X4kJt","orc-btn--tertiary":"oraculo__OraculoButtonBet-module__orc-btn--tertiary___iS6eD","orc-btn--sm":"oraculo__OraculoButtonBet-module__orc-btn--sm___lIF2e","orc-btn--md":"oraculo__OraculoButtonBet-module__orc-btn--md___x4SI7","orc-btn--lg":"oraculo__OraculoButtonBet-module__orc-btn--lg___0BQNI","orc-btn--iconOnly":"oraculo__OraculoButtonBet-module__orc-btn--iconOnly___hQGwI","orc-btn--full":"oraculo__OraculoButtonBet-module__orc-btn--full___z-Myo","orc-btn--fullHeight":"oraculo__OraculoButtonBet-module__orc-btn--fullHeight___pCxq1"};function la({children:t,onClick:a,href:n,target:i,rel:r,type:s="button",disabled:o=!1,variant:d="primary",size:g,fullWidth:l=!1,fullHeight:u=!1,className:f="",ariaLabel:k,leftIcon:b,rightIcon:E,iconOnly:S}){const O=!!t&&t!==!0,B=(!!b?1:0)+(!!E?1:0)==1,_=S!=null?S:B&&!O,T=[J["orc-btn"],J[`orc-btn--${d}`],g?J[`orc-btn--${g}`]:"",l?J["orc-btn--full"]:"",u?J["orc-btn--fullHeight"]:"",_?J["orc-btn--iconOnly"]:"",f].filter(Boolean).join(" "),M=e.jsxs(e.Fragment,{children:[b&&e.jsx("span",{className:J["orc-btn__icon"],children:b}),!_&&e.jsx("span",{className:J["orc-btn__label"],children:t}),E&&e.jsx("span",{className:J["orc-btn__icon"],children:E})]}),F=o?!0:void 0;return n?e.jsx(V.Link,{href:n,target:i,rel:r,"aria-label":k,"aria-disabled":F,tabIndex:F?-1:void 0,className:T,onClick:F?z=>z.preventDefault():a,children:M}):e.jsx("button",{type:s,onClick:a,disabled:!!F,"aria-label":k,className:T,children:M})}const ca="oraculo__OraculoEventEnVivoCard-module__cardWrapper___6b-cT",Xe={cardWrapper:ca},ke={base:"FFFFFF",sleeve:"FFFFFF",number:"000000",real:!1,type:"short_sleeves"},Me={base:"000000",sleeve:"000000",number:"FFFFFF",real:!1,type:"short_sleeves"},ue=(t,a,n="player")=>{var r,s;if(t===void 0)return null;if(t===null)return a==="home"?ke:Me;const i=(s=(r=t==null?void 0:t.jerseys)==null?void 0:r[a])==null?void 0:s[n];return i||(a==="home"?ke:Me)};function Ye({event:t,liveData:a,betOffers:n,jersey:i}){var s,o,d,g,l,u,f,k,b,E,S;const r=n==null?void 0:n.find(O=>{var x;return((x=O.betOfferType)==null?void 0:x.id)===2});return e.jsx("div",{className:Xe.cardWrapper,children:e.jsxs(U.default,{direction:"column",spacing:1,useFlexGap:!0,children:[e.jsxs(U.default,{direction:"column",spacing:1.5,useFlexGap:!0,children:[e.jsx(We,{title:(d=(o=(s=t==null?void 0:t.path)==null?void 0:s[0])==null?void 0:o.name)!=null?d:"",subtitle:(g=t==null?void 0:t.group)!=null?g:"",live:!0,time:((l=a==null?void 0:a.matchClock)==null?void 0:l.minute)!=null?`${a.matchClock.minute}'`:""}),e.jsx("div",{style:{padding:"0 4px"},children:e.jsxs(H,{spacing:1.5,columns:"1fr auto 1fr",children:[e.jsx(le,{name:t==null?void 0:t.homeName,jersey:ue(i,"home")}),e.jsx(Oe,{text:((f=(u=a==null?void 0:a.score)==null?void 0:u.home)!=null?f:0)+":"+((b=(k=a==null?void 0:a.score)==null?void 0:k.away)!=null?b:0),name:"En vivo"}),e.jsx(le,{name:t==null?void 0:t.awayName,jersey:ue(i,"away")})]})})]}),e.jsxs(U.default,{direction:"column",spacing:1,useFlexGap:!0,children:[e.jsx(H,{spacing:1,children:((E=r==null?void 0:r.outcomes)!=null?E:[]).map((O,x)=>e.jsx(Se,{text:O.label.toUpperCase()},x))}),e.jsx(H,{spacing:2,children:((S=r==null?void 0:r.outcomes)!=null?S:[]).map((O,x)=>e.jsx(la,{variant:"primary",disabled:O.odds==null||(r==null?void 0:r.cashOutStatus)=="SUSPENDED",onClick:()=>{Ee(O.id)},children:O.odds===void 0?"":(O.odds/1e3).toFixed(2)},x))})]})]})})}const da="oraculo__OraculoEventDate-module__date___xhIlh",ua={date:da};function ma({text:t}){return e.jsx("div",{className:`oli-font ${ua.date}`,children:t})}const pa="oraculo__OraculoEventSemanaCard-module__cardContainer___4JuDe",fa="oraculo__OraculoEventSemanaCard-module__cardBackground___vfalD",ga="oraculo__OraculoEventSemanaCard-module__jugadas___W8b7H",ha="oraculo__OraculoEventSemanaCard-module__equipos___G5hLn",ne={cardContainer:pa,cardBackground:fa,jugadas:ga,equipos:ha};function Qe({event:t,jersey:a}){var i,r,s,o,d,g,l;function n(u){const f=new Date(u),k=f.toLocaleDateString("es-ES",{weekday:"short"}).toUpperCase(),b=f.getDate().toString().padStart(2,"0"),E=(f.getMonth()+1).toString().padStart(2,"0");let S=f.toLocaleTimeString("es-PE",{hour:"numeric",minute:"2-digit",hour12:!0}).toUpperCase();return S=S.replace(/\./g,"").replace(/A\s*M/i,"AM").replace(/P\s*M/i,"PM"),`${k} ${b}/${E} | ${S}`}return e.jsxs("div",{className:ne.cardContainer,children:[e.jsx(je,{title:(i=t==null?void 0:t.group)!=null?i:""}),e.jsx("div",{className:ne.cardBackground,children:e.jsxs(U.default,{direction:"column",spacing:{xs:.5,md:1},useFlexGap:!0,children:[e.jsxs(U.default,{direction:"column",spacing:1,useFlexGap:!0,children:[e.jsxs("div",{className:ne.equipos,children:[e.jsx(le,{name:t.homeName,size:"compact",jersey:ue(a,"home")}),e.jsx(Oe,{text:"vs.",name:"",size:"small"}),e.jsx(le,{name:t.awayName,size:"compact",jersey:ue(a,"away")})]}),e.jsx(ma,{text:n(t.start)})]}),e.jsxs(U.default,{direction:"column",spacing:{xs:.5,md:1},useFlexGap:!0,children:[e.jsx(H,{spacing:1,children:((o=(s=(r=t==null?void 0:t.outcome)==null?void 0:r[0])==null?void 0:s.outcomes)!=null?o:[]).map((u,f)=>e.jsx(Se,{text:u.label.toUpperCase()},f))}),e.jsx("div",{className:ne.jugadas,children:e.jsx(H,{spacing:1,children:((l=(g=(d=t==null?void 0:t.outcome)==null?void 0:d[0])==null?void 0:g.outcomes)!=null?l:[]).map((u,f)=>e.jsx(W,{variant:"primary",fullHeight:!0,onClick:()=>{Ee(u.id)},children:(u.odds/1e3).toFixed(2)},f))})})]})]})})]})}function et({items:t,title:a="Destacados",iconUrl:n,onViewMore:i,className:r=""}){const s=v.useRef(null),[o,d]=v.useState({isStart:!0,isEnd:!1}),g=K.useCaptureInteraction(),l=!t||t.length===0,u=()=>{var S;g({element:"destacados_carousel_prev",label:"OraculoSeccionDestacados - Anterior",target:"carousel",event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{section:"OraculoSeccionDestacados"}}),(S=s.current)==null||S.prev()},f=()=>{var S;g({element:"destacados_carousel_next",label:"OraculoSeccionDestacados - Siguiente",target:"carousel",event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{section:"OraculoSeccionDestacados"}}),(S=s.current)==null||S.next()},k=()=>{g({element:"destacados_view_more",label:"OraculoSeccionDestacados - Ver más",target:"https://www.olimpo.bet/promociones",event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{section:"OraculoSeccionDestacados"}}),typeof globalThis!="undefined"&&globalThis.location&&globalThis.location.assign("https://www.olimpo.bet/promociones")},b=S=>{if(!S)return;const x=`https://www.olimpo.bet/promociones/${encodeURIComponent(S)}`;g({element:"destacados_card",label:`OraculoSeccionDestacados - Click: ${String(S)}`,target:x,event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{section:"OraculoSeccionDestacados",promotion:String(S)}}),typeof globalThis!="undefined"&&globalThis.location&&globalThis.location.assign(x)},E=r||void 0;return e.jsxs("section",{className:E,style:{width:"100%"},children:[e.jsxs("header",{style:{display:"grid",gridTemplateColumns:"1fr auto auto",alignItems:"center",columnGap:12,rowGap:8,marginBottom:16},children:[e.jsx(Y,{title:a,iconUrl:n,size:"md"}),e.jsxs("div",{style:{display:"flex",gap:8},children:[e.jsx(W,{ariaLabel:"Anterior",variant:"secondary",iconOnly:!0,leftIcon:e.jsx(se.ChevronLeftRounded,{}),onClick:u,disabled:o.isStart||l}),e.jsx(W,{ariaLabel:"Siguiente",variant:"secondary",iconOnly:!0,rightIcon:e.jsx(se.ChevronRightRounded,{}),onClick:f,disabled:o.isEnd||l})]}),e.jsx(W,{variant:"secondary",onClick:k,children:"Ver más"})]}),e.jsx(Q,{ref:s,items:t,perPage:2,gap:"16px",enableHorizontalWheel:!0,options:{autoWidth:!0,gap:"12px",trimSpace:!0,pagination:!1,arrows:!1,drag:!0,focus:"start"},breakpoints:{768:{perPage:2,focus:"start"},1024:{perPage:2.5,focus:"start"}},renderItem:S=>e.jsx("div",{style:{textAlign:"center",marginTop:16,cursor:"pointer"},onClick:()=>b(S.promotion),children:e.jsx("img",{src:`https://olimpo.bet${S.image!==""?S.image:S.summary_image}`,alt:S.title,style:{width:"100%",height:typeof window!="undefined"&&window.innerWidth<768?"80px":"137px",borderRadius:8,display:"block",objectFit:"cover"}})},`${S.title}-${S.image}`),onMove:({isStart:S,isEnd:O})=>{d({isStart:S,isEnd:O}),g({element:"destacados_carousel_slide",label:"OraculoSeccionDestacados - Slide Carousel",target:"carousel",event_type:"slide",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:"",isStart:S,isEnd:O},tags:{section:"OraculoSeccionDestacados"}})}})]})}const de="__ORACULO_EXTRAS__";function tt(){const t=globalThis;return t[de]||(t[de]={}),t[de]}function ba(t){tt().extras=t}function te(t){var a;return(a=tt().extras)==null?void 0:a[t]}function xa(){delete globalThis[de]}function Ie({items:t,title:a="Top Juegos",iconUrl:n,onCardClick:i}){const r=K.useCaptureInteraction(),s=v.useMemo(()=>(t!=null?t:[]).map((l,u)=>{var f;return{...l,orden:(f=l.orden)!=null?f:u+1,_originalIndex:u}}).sort((l,u)=>l.orden!=null&&u.orden!=null?l.orden-u.orden:l._originalIndex-u._originalIndex),[t]),o=!t||t.length===0,d=o?Array.from({length:6}):s.slice(0,6),g=l=>{r({element:"top_juegos_card",label:`OraculoSeccionTopJuegos - Open game: ${String(l.machine||"unknown")}`,target:String(l.machine||"unknown"),event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{game_name:String(l.machine||"unknown"),section:"OraculoSeccionTopJuegos"}});const u=te("showIframe"),f=te("loadMachine");u==null||u(),requestAnimationFrame(()=>{f==null||f(l,!1,"CASINO")})};return e.jsx("section",{style:{width:"100%"},children:e.jsxs(U.default,{direction:"column",spacing:2,useFlexGap:!0,children:[e.jsx(Y,{title:a,iconUrl:n,size:"md"}),e.jsx(N.default,{sx:{display:"grid",gridTemplateColumns:{xs:"repeat(3, minmax(0, 1fr))",md:"repeat(6, minmax(0, 1fr))"},gap:{xs:1.5,md:2},justifyItems:"center",width:"100%"},children:d.map((l,u)=>{var f,k;return e.jsx(De,{imageUrl:o?"":l.background?`https://olimpo.bet${l.background}`:`https://olimpo.bet${(f=l.logo)!=null?f:""}`,orden:o?u+1:l.orden,loading:o,onClick:o?void 0:()=>{i==null||i(l),g(l)}},o?`sk-${u}`:(k=l.machine)!=null?k:`${u}`)})})]})})}const va=(t,a)=>{var n,i;return(i=(n=t.orden)!=null?n:t.machine)!=null?i:a},at=({items:t,title:a="Casino en vivo",subtitle:n="Disfruta la emoción en tus juegos favoritos y gana en tiempo real.",backgroundMobileUrl:i="",backgroundDesktopUrl:r="",onViewMore:s,className:o})=>{const d=K.useCaptureInteraction(),g=l=>{d({element:"live_casino_card",label:`OraculoSeccionCasinoEnVivo - Open game: ${String(l.machine||"OraculoSeccionCasinoEnVivo -unknown")}`,target:String(l.machine||"unknown"),event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{game_name:String(l.machine||"unknown"),provider:l.provider||"unknown",section:"OraculoSeccionCasinoEnVivo"}});const u=te("showIframe"),f=te("loadMachine");u==null||u(),typeof window!="undefined"&&window.scrollTo({top:0,behavior:"smooth"}),requestAnimationFrame(()=>{f==null||f(l,!1,"casino_en_vivo")})};return e.jsxs(N.default,{className:o,sx:{position:"relative",color:"white",overflow:"hidden"},children:[e.jsx(N.default,{sx:{position:"absolute",inset:0,backgroundImage:{xs:`
|
|
2
2
|
linear-gradient(to bottom, #121212 0%, rgba(18,18,18,0) 10%),
|
|
3
3
|
linear-gradient(to top, #121212 0%, rgba(18,18,18,0) 10%),
|
|
4
4
|
url('${i}')
|
|
5
5
|
`,md:`
|
|
6
6
|
linear-gradient(to bottom, #121212 0%, rgba(18,18,18,0) 10%),
|
|
7
7
|
linear-gradient(to top, #121212 0%, rgba(18,18,18,0) 10%),
|
|
8
|
-
url('${
|
|
9
|
-
`},backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat",zIndex:0}}),e.jsxs(
|
|
8
|
+
url('${r}')
|
|
9
|
+
`},backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat",zIndex:0}}),e.jsxs(N.default,{sx:{position:"relative",zIndex:1,maxWidth:1200,height:{xs:"450px",md:"550px"},mx:"auto",px:{xs:2.5,md:6},display:"flex",flexDirection:{xs:"column",md:"row"},alignItems:{xs:"center",md:"center"},justifyContent:"center",gap:{xs:0,md:15},textAlign:{xs:"center",md:"left"}},children:[e.jsxs(U.default,{spacing:3,sx:{maxWidth:{md:280}},children:[e.jsx(X.default,{variant:"h4",sx:{fontWeight:800,fontSize:{xs:24,md:40},WebkitTextStroke:"0.5px rgba(255, 255, 255, .5)",textShadow:"0 0 2px rgba(255, 255, 255, .95),0 0 4px rgba(255, 255, 255, .6),0 1px 0 #898989"},children:a}),e.jsx(X.default,{sx:{fontSize:{xs:14,md:18},color:"rgba(255,255,255,0.9)",marginX:{xs:4,md:0},lineHeight:1.5},children:n}),e.jsx(N.default,{sx:{display:{xs:"none",md:"block"}},children:e.jsx(W,{variant:"primary",size:"md",onClick:()=>(s==null?void 0:s())||(window.location.href="https://www.olimpo.bet/casino-en-vivo"),children:"Ver más"})})]}),e.jsx(N.default,{sx:{display:"flex",gap:{xs:2,md:3},justifyContent:"center",overflowX:{xs:"auto",md:"visible"},py:{xs:3,md:0},alignItems:"center"},children:(t!=null?t:[]).slice(0,3).map((l,u)=>{var f;return e.jsx(Ge,{logo:`https://olimpo.bet${l.background?l.background:(f=l.logo)!=null?f:""}`,provider:l.provider,providerName:l.web_name,machine:l.machine,onClick:()=>g(l)},va(l,u))})}),e.jsx(N.default,{sx:{display:{xs:"block",md:"none"}},children:e.jsx(W,{variant:"primary",size:"lg",onClick:()=>(s==null?void 0:s())||(window.location.href="https://www.olimpo.bet/casino-en-vivo"),children:"Ver más"})})]})]})},nt=(t,a)=>{var n,i;return(i=(n=t.orden)!=null?n:t.machine)!=null?i:a},_a=(t,a=!0,n=1)=>{const i=t.map((o,d)=>{var g;return{id:nt(o,d),imageUrl:(g=o.logo)!=null?g:"",...o.background?{background:o.background}:{}}});if(!i.length)return[];const r=[];let s=0;if(a){const o=Math.min(i.length,1);r.push({id:"mosaic-0",kind:"mosaic",items:i.slice(0,o)}),s=o}for(;s<i.length;){const o=Math.min(s+n,i.length);r.push({id:`grid-${s}`,kind:"grid",items:i.slice(s,o)}),s=o}return r},ot=({items:t,title:a="Casino",iconUrl:n="/assets/img/home/Casino/diamante.svg",onItemClick:i,onViewMore:r,mosaicFirst:s=!0,gridSize:o=1})=>{const d=K.useCaptureInteraction(),g=v.useRef(null),[l,u]=v.useState({isStart:!0,isEnd:!1}),f=()=>{var x;d({element:"casino_prev",label:"OraculoSeccionCasino - Anterior",target:"prev",event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{section:"OraculoSeccionCasino"}}),(x=g.current)==null||x.prev()},k=()=>{var x;d({element:"casino_next",label:"OraculoSeccionCasino - Siguiente",target:"next",event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{section:"OraculoSeccionCasino"}}),(x=g.current)==null||x.next()},b=()=>{d({element:"casino_view_more",label:"OraculoSeccionCasino - Ver más",target:"https://www.olimpo.bet/casino",event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{section:"OraculoSeccionCasino"}}),typeof globalThis!="undefined"&&globalThis.location&&globalThis.location.assign("https://www.olimpo.bet/casino")},E=(x=!0,y=4)=>{const B=T=>Array.from({length:T},(M,F)=>({id:`sk-${T}-${F}`,imageUrl:""})),_=[];return x&&_.push({id:"mosaic-loading",kind:"mosaic",items:B(5)}),_.push({id:"grid-loading",kind:"grid",items:B(y)}),_},S=!t||t.length===0,O=S?E(s,o):_a(t,s,o);return e.jsx("section",{children:e.jsxs(U.default,{direction:"column",spacing:2,useFlexGap:!0,children:[e.jsxs(N.default,{sx:{display:"grid",gridTemplateColumns:"1fr auto auto",alignItems:"center",columnGap:1.5,rowGap:1},children:[e.jsx(Y,{title:a,iconUrl:n,size:"md"}),e.jsxs(N.default,{sx:{display:"flex",gap:1,justifyContent:"flex-end"},children:[e.jsx(W,{ariaLabel:"Anterior",variant:"secondary",iconOnly:!0,leftIcon:e.jsx(ze.default,{}),onClick:f,disabled:l.isStart}),e.jsx(W,{ariaLabel:"Siguiente",variant:"secondary",iconOnly:!0,rightIcon:e.jsx(Pe.default,{}),onClick:k,disabled:l.isEnd})]}),e.jsx(N.default,{sx:{justifySelf:"end"},children:e.jsx(W,{variant:"secondary",onClick:b,children:"Ver más"})})]}),e.jsx(Q,{ref:g,items:O,perPage:1,gap:"0px",enableHorizontalWheel:!0,options:{autoWidth:!0,gap:"12px",trimSpace:!0,pagination:!1,arrows:!1,drag:!0,focus:"start"},renderItem:x=>e.jsx("div",{style:{alignSelf:"start"},children:e.jsx(Ce,{items:x.items,layout:x.kind==="mosaic"?"mosaic":"grid",loading:S,onClick:y=>{if(S)return;const B=t.find((M,F)=>String(nt(M,F))===String(y.id));if(!B)return;d({element:"casino_game_card",label:`Casino - ${String(B.machine||"unknown")}`,target:String(B.machine||"unknown"),event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{game_name:String(B.machine||"unknown"),section:a||"Casino"}});const _=te("showIframe"),T=te("loadMachine");_==null||_(),T==null||T(B,!1,"CASINO")}})}),onMove:({isStart:x,isEnd:y})=>u({isStart:x,isEnd:y})})]})})},it=(t,a)=>{var n,i;return(i=(n=t.orden)!=null?n:t.machine)!=null?i:a},ya=(t,a=!0,n=1)=>{const i=t.map((o,d)=>{var g;return{id:it(o,d),imageUrl:(g=o.logo)!=null?g:"",...o.background?{background:o.background}:{}}});if(!i.length)return[];const r=[];let s=0;if(a){const o=Math.min(i.length,1);r.push({id:"mosaic-0",kind:"mosaic",items:i.slice(0,o)}),s=o}for(;s<i.length;){const o=Math.min(s+n,i.length);r.push({id:`grid-${s}`,kind:"grid",items:i.slice(s,o)}),s=o}return r},wa=(t=!0,a=4)=>{const n=r=>Array.from({length:r},(s,o)=>({id:`sk-${r}-${o}`,imageUrl:""})),i=[];return t&&i.push({id:"mosaic-loading",kind:"mosaic",items:n(5)}),i.push({id:"grid-loading",kind:"grid",items:n(a)}),i},st=({items:t,title:a="Virtuales",iconUrl:n="/assets/img/home/Virtuales/virtuales.svg",onItemClick:i,onViewMore:r,mosaicFirst:s=!0,gridSize:o=1})=>{const d=v.useRef(null),[g,l]=v.useState({isStart:!0,isEnd:!1}),u=K.useCaptureInteraction(),f=()=>{var O;u({element:"virtuales_prev",label:"OraculoSeccionVirtuales - Anterior",target:"prev",event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{section:"OraculoSeccionVirtuales"}}),(O=d.current)==null||O.prev()},k=()=>{var O;u({element:"virtuales_next",label:"OraculoSeccionVirtuales - Siguiente",target:"next",event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{section:"OraculoSeccionVirtuales"}}),(O=d.current)==null||O.next()},b=()=>{u({element:"virtuales_view_more",label:"OraculoSeccionVirtuales - Ver más",target:"https://www.olimpo.bet/juegos-virtuales",event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{section:"Virtuales"}}),typeof globalThis!="undefined"&&globalThis.location&&globalThis.location.assign("https://www.olimpo.bet/juegos-virtuales")},E=!t||t.length===0,S=E?wa(s,o):ya(t,s,o);return e.jsx("section",{children:e.jsxs(U.default,{direction:"column",spacing:2,useFlexGap:!0,children:[e.jsxs(N.default,{sx:{display:"grid",gridTemplateColumns:"1fr auto auto",alignItems:"center",columnGap:1.5,rowGap:1},children:[e.jsx(Y,{title:a,iconUrl:n,size:"md"}),e.jsxs(N.default,{sx:{display:"flex",gap:1,justifyContent:"flex-end"},children:[e.jsx(W,{ariaLabel:"Anterior",variant:"secondary",iconOnly:!0,leftIcon:e.jsx(ze.default,{}),onClick:f,disabled:g.isStart}),e.jsx(W,{ariaLabel:"Siguiente",variant:"secondary",iconOnly:!0,rightIcon:e.jsx(Pe.default,{}),onClick:k,disabled:g.isEnd})]}),e.jsx(N.default,{sx:{justifySelf:"end"},children:e.jsx(W,{variant:"secondary",onClick:b,children:"Ver más"})})]}),e.jsx(Q,{ref:d,items:S,perPage:1,gap:"0",enableHorizontalWheel:!0,options:{autoWidth:!0,gap:"12px",trimSpace:!0,pagination:!1,arrows:!1,drag:!0,focus:"start",perMove:1},renderItem:O=>e.jsx("div",{style:{alignSelf:"start"},children:e.jsx(Ce,{items:O.items,layout:O.kind==="mosaic"?"mosaic":"grid",loading:E,onClick:x=>{if(E)return;const y=t.find((T,M)=>String(it(T,M))===String(x.id));if(!y){console.warn("[virtuales] no se encontró game para id:",x.id);return}u({element:"virtuales_game_card",label:`OraculoSeccionVirtuales - Open game: ${String(y.machine||"`OraculoSeccionVirtuales - unknown")}`,target:String(y.machine||"unknown"),event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{game_name:String(y.machine||"unknown"),section:"`OraculoSeccionVirtuales"}});const B=te("showIframe"),_=te("loadMachine");B==null||B(),_==null||_(y,!1,"VIRTUALES")}})}),onMove:({isStart:O,isEnd:x})=>l({isStart:O,isEnd:x})})]})})},Sa=t=>({position:"relative",py:8,color:"#fff",backgroundImage:`
|
|
10
10
|
linear-gradient(to bottom,#121212 0%, rgba(18,18,18,0) 10%),
|
|
11
11
|
linear-gradient(to top, #121212 0%, rgba(18,18,18,0) 10%),
|
|
12
12
|
linear-gradient(to left, #121212 0%, rgba(18,18,18,0) 10%),
|
|
@@ -16,5 +16,5 @@
|
|
|
16
16
|
0 0 2px rgba(255, 255, 255, .95),
|
|
17
17
|
0 0 6px rgba(255, 255, 255, .6),
|
|
18
18
|
0 1px 0 rgba(137, 137, 137, .85)
|
|
19
|
-
`},rt=({headline:t,headline2:a,items:n,backgroundImageUrl:i})=>{const s=H.useCaptureInteraction(),o=wt.default("(max-width: 767px)"),r=n.length>1,g=_.useRef(null),v=_.useRef(null),c=_.useRef(!1),f=_.useRef(!1),[x,l]=_.useState(0),[m,C]=_.useState({isStart:!0,isEnd:!1});_.useEffect(()=>{const y=setTimeout(()=>{c.current=!0},500);return()=>clearTimeout(y)},[]);const S=_.useRef(m);_.useEffect(()=>{S.current=m},[m]);const O=_.useRef(!1),I=_.useRef(null),F=n==null?void 0:n[x],R=_.useMemo(()=>{var y,j;return(j=(y=F==null?void 0:F.backgroundImageUrl)!=null?y:i)!=null?j:""},[F,i]),h=wa(R),T=!n||n.length===0,k=(y,j)=>{s({element:"welcome_banner_button",label:`OraculoSeccionBonoBienvenida - Banner button click: ${y.title||"OraculoSeccionBonoBienvenida - Banner "+(j+1)}`,target:"action",event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:"",banner_position:j+1,banner_total:(n==null?void 0:n.length)||0},tags:{banner_title:y.title||"no_title",button_text:y.buttonText||"no_text"}}),y.onButtonClick&&y.onButtonClick()},B=y=>{if(!c.current)return;if(f.current){f.current=!1;return}const j=n==null?void 0:n[y];s({element:"welcome_banner_carousel",label:`OraculoSeccionBonoBienvenida - Banner view: ${(j==null?void 0:j.title)||"OraculoSeccionBonoBienvenida - Banner "+(y+1)}`,target:"no_url",event_type:"view",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:"",slide_index:y+1,total_slides:(n==null?void 0:n.length)||0,interaction_type:"manual_slide"},tags:{banner_position:String(y+1),banner_title:(j==null?void 0:j.title)||"no_title"}})};_.useEffect(()=>{const y=v.current;if(!y)return;const j=6,L=380,u=p=>{var E,N;if(T||p.ctrlKey||O.current)return;const d=p.deltaX,b=p.deltaY;if(Math.abs(d)<=Math.abs(b)||Math.abs(d)<j)return;const w=d>0;w&&S.current.isEnd||!w&&S.current.isStart||(p.preventDefault(),O.current=!0,w?(E=g.current)==null||E.next():(N=g.current)==null||N.prev(),I.current&&window.clearTimeout(I.current),I.current=window.setTimeout(()=>{O.current=!1},L))};return y.addEventListener("wheel",u,{passive:!1}),()=>{y.removeEventListener("wheel",u),I.current&&window.clearTimeout(I.current)}},[T]);const $=(y,j,L)=>{var d,b;const u=(d=y.headline)!=null?d:t,p=(b=y.headline2)!=null?b:a;return j?e.jsxs(M.default,{sx:{maxWidth:1200,mx:"auto",px:15,display:"grid",gridTemplateColumns:"260px minmax(0, 1fr)",alignItems:"center",columnGap:6},children:[(u||p)&&e.jsx(M.default,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-start",minHeight:"100%"},children:e.jsxs(M.default,{sx:{...Be,textAlign:"left",mb:0},children:[u&&e.jsx(J.default,{component:"span",sx:Ne,children:u}),p&&e.jsxs(e.Fragment,{children:[e.jsx("br",{}),e.jsx(J.default,{component:"span",sx:Re,children:p})]})]})}),e.jsx(M.default,{sx:{display:"flex",justifyContent:"center",alignItems:"center"},children:e.jsx(M.default,{sx:{width:"100%",maxWidth:600,mx:"auto"},children:e.jsx(ye,{...y,onButtonClick:()=>k(y,L),variant:"large"})})})]}):e.jsxs(M.default,{sx:{textAlign:"center"},children:[(u||p)&&e.jsxs(M.default,{sx:Be,children:[u&&e.jsx(J.default,{component:"span",sx:Ne,children:u}),p&&e.jsxs(e.Fragment,{children:[e.jsx("br",{}),e.jsx(J.default,{component:"span",sx:Re,children:p})]})]}),e.jsx(M.default,{sx:{display:"flex",justifyContent:"center"},children:e.jsx(ye,{...y,onButtonClick:()=>k(y,L),variant:"small"})})]})};return e.jsxs(M.default,{component:"section",sx:h,children:[e.jsx("div",{ref:v,style:{width:"100%"},children:e.jsx(Y,{ref:g,items:n,perPage:1,gap:"0px",options:{autoWidth:!1},renderItem:(y,j)=>e.jsx(M.default,{sx:{width:"100%"},children:$(y,!o,j)}),onMove:({index:y,isStart:j,isEnd:L})=>{l(y),typeof j=="boolean"&&typeof L=="boolean"&&C({isStart:j,isEnd:L}),B(y)}})}),r&&e.jsx(M.default,{sx:{mt:2,display:"flex",justifyContent:"center"},children:e.jsx(we,{total:n.length,active:x,onSelect:y=>{var j;s({element:"welcome_banner_dots",label:`Dot navigation: Banner ${y+1}`,target:"no_url",event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:"",dot_index:y+1,total_dots:n.length},tags:{navigation_type:"dot_click"}}),l(y),(j=g.current)==null||j.go(y)}})})]})},lt=({className:t="",fullBleed:a=!0,items:n,selectedIndex:i=0,ariaLabel:s})=>{const o=_.useRef(null),r=_.useRef(null),g=H.useCaptureInteraction();if(!n)return null;const v=()=>{g({element:"club_olimpo_button",label:"OraculoSeccionClubOlimpo - Click: Club Olimpo",target:"https://www.olimpo.bet/conoce-club-olimpo",event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{section:"OraculoSeccionClubOlimpo"}}),typeof globalThis!="undefined"&&globalThis.location&&globalThis.location.assign("https://www.olimpo.bet/conoce-club-olimpo")},c=Array.isArray(n)?n[i]:n;_.useLayoutEffect(()=>{if(!o.current||!r.current||typeof ResizeObserver=="undefined")return;const x=o.current,l=r.current,m=()=>{x.style.setProperty("--orc-co-bottomH",`${l.offsetHeight+16}px`)},C=new ResizeObserver(m);return C.observe(l),m(),()=>C.disconnect()},[]);const f=["orc-co-wrap",a?"orc-co-fullBleed":"",t].filter(Boolean).join(" ");return e.jsx("section",{ref:o,className:f,"aria-label":s||c.imgAlt||"Club Olimpo",children:e.jsx("div",{ref:r,children:e.jsx(He,{text:c.text,onClick:v,imgAlt:c.imgAlt,imgSrcMobile:c.imgMobile,imgSrcDesktopBg:c.imgDesktopBg,imgSrcDesktopLogo:c.imgDesktopLogo})})})},Sa="oraculo__OraculoSeccionEventoCombinadas-module__controls___Zsta4",ja={controls:Sa};function ct({items:t,title:a="Combinadas del Olimpo",iconUrl:n="https://stg-www.contodobet.com/static/img/landing/EventoCombinada/rayoIcon.svg",onViewMore:i,className:s=""}){const o=_.useRef(null),[r,g]=_.useState({isStart:!0,isEnd:!1}),[v,c]=_.useState([]),f=H.useCaptureInteraction(),x="https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/group/prepackcoupon.json?lang=es_PE&market=PE&client_id=200&channel_id=1&ncid=1764284658793&prePackCouponTags=CUSTOM",l=()=>{var h;f({element:"evento_combinadas_prev",label:"OraculoSeccionEventoCombinadas - Anterior",target:"prev",event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{section:"Evento Combinadas"}}),(h=o.current)==null||h.prev()},m=()=>{var h;f({element:"evento_combinadas_next",label:"OraculoSeccionEventoCombinadas - Siguiente",target:"next",event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{section:"Evento Combinadas"}}),(h=o.current)==null||h.next()},C=()=>{f({element:"evento_combinadas_view_more",label:"OraculoSeccionEventoCombinadas - Ver más",target:"ver_mas",event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{section:"OraculoSeccionEventoCombinadas"}}),sa()};async function S(){var h,T,k;try{const $=await(await fetch(x)).json(),y=(k=(T=(h=$==null?void 0:$.group)==null?void 0:h.groups)==null?void 0:T[0])==null?void 0:k.id;if(!y){console.error("Could not extract group ID");return}const j=`https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/prepackcoupon/eventgroup/${y}.json?lang=es_PE&market=PE&client_id=200&channel_id=1&ncid=1764283566783&prePackCouponTags=CUSTOM`,u=await(await fetch(j)).json();c(O(u.events,u.betOffers,u.prePackCoupons))}catch(B){console.error("loadDataEventSpecial error:",B)}}function O(h,T,k){const B=[];for(const $ of k){const y=F([$]),j=I($),L=T.reduce((u,p)=>{var b,w;u[p.eventId]||(u[p.eventId]=[]);const d=p.outcomes.filter(E=>y.has(E.id));if(d.length>0){const E=Array.from((w=(b=j==null?void 0:j[0])==null?void 0:b.requiredOutcomeIds)!=null?w:[]),N=d.map(z=>({...z,position:E.indexOf(z.id)}));u[p.eventId].push({...p,outcomes:N})}return u},{});h.forEach(u=>{if(u.id!==$.prePackCouponRows[0].eventId)return;const p=y;let d=null;for(const b of j)if([...b.requiredOutcomeIds].every(E=>p.has(E))){d=b.decimal;break}B.push({...u,combinadoTotal:d,betoffers:L[u.id]||[],couponId:$.id})})}return B}function I(h){var k;const T=[];for(const B of h.prePackCouponRows)if(B.type==="BET_BUILDER"&&((k=B.group)!=null&&k.groups)){const $=new Set;B.group.groups.forEach(y=>{var j;(j=y.outcomes)==null||j.forEach(L=>$.add(L.id))}),T.push({requiredOutcomeIds:$,decimal:B.odds.decimal})}return T}function F(h){var k;const T=new Set;for(const B of h)for(const $ of B.prePackCouponRows)$.type==="BET_BUILDER"&&((k=$.group)!=null&&k.groups)&&$.group.groups.forEach(y=>{var j;(j=y.outcomes)==null||j.forEach(L=>T.add(L.id))}),$.type==="SIMPLE"&&$.outcome&&T.add($.outcome.id);return T}_.useEffect(()=>{S()},[]);const R=s||void 0;return!v||v.length===0?null:e.jsx("section",{className:R,style:{width:"100%",boxSizing:"border-box"},children:e.jsxs(A.default,{direction:"column",spacing:1.5,useFlexGap:!0,children:[e.jsxs(K,{spacing:1.5,columns:"1fr auto ",justify:"start",children:[e.jsx(X,{title:a,iconUrl:n,size:"md"}),e.jsxs("div",{className:ja.controls,children:[e.jsxs(K,{spacing:1,columns:"auto auto",children:[e.jsx(V,{ariaLabel:"Anterior",variant:"secondary",iconOnly:!0,leftIcon:e.jsx(se.ChevronLeftRounded,{}),onClick:l,disabled:r.isStart}),e.jsx(V,{ariaLabel:"Siguiente",variant:"secondary",iconOnly:!0,rightIcon:e.jsx(se.ChevronRightRounded,{}),onClick:m,disabled:r.isEnd})]}),e.jsx(V,{variant:"secondary",onClick:C,children:"Ver más"})]})]}),e.jsx(Y,{ref:o,items:v.filter(h=>h.combinadoTotal!==null),perPage:void 0,gap:"16px",options:{autoWidth:!0,trimSpace:"move"},useIndexAsKey:!0,enableHorizontalWheel:!0,breakpoints:{768:{perPage:1.2,gap:"12px",padding:{left:"0px",right:"0px"}}},renderItem:h=>e.jsx(Je,{event:h}),onMove:({isStart:h,isEnd:T})=>g({isStart:h,isEnd:T})})]})})}function Oa({}){return e.jsx("div",{className:Xe.cardWrapper,children:e.jsxs(A.default,{direction:"column",spacing:1,children:[e.jsxs(A.default,{spacing:1,direction:"row",children:[e.jsx(q.default,{variant:"text",width:"60%",height:24}),e.jsx(q.default,{variant:"text",width:"39%",height:24})]}),e.jsxs(A.default,{spacing:8,direction:"row",justifyContent:"center",alignItems:"center",children:[e.jsx(q.default,{variant:"circular",width:32,height:40}),e.jsx(q.default,{variant:"text",width:40,height:40}),e.jsx(q.default,{variant:"circular",width:32,height:40})]}),e.jsxs(A.default,{spacing:8,direction:"row",justifyContent:"center",alignItems:"center",children:[e.jsx(q.default,{variant:"text",width:32,height:16}),e.jsx(q.default,{variant:"text",width:40,height:16}),e.jsx(q.default,{variant:"text",width:32,height:16})]}),e.jsxs(A.default,{spacing:2,direction:"row",children:[e.jsx(q.default,{variant:"rounded",width:88,height:16}),e.jsx(q.default,{variant:"rounded",width:88,height:16}),e.jsx(q.default,{variant:"rounded",width:88,height:16})]}),e.jsxs(A.default,{spacing:2,direction:"row",children:[e.jsx(q.default,{variant:"rounded",width:88,height:32}),e.jsx(q.default,{variant:"rounded",width:88,height:32}),e.jsx(q.default,{variant:"rounded",width:88,height:32})]})]})})}const Ea="oraculo__FadeItemWrapper-module__fadeWrapper___kFOH4",Ca={fadeWrapper:Ea};function me({children:t}){return e.jsx("div",{className:Ca.fadeWrapper,children:t})}function dt({items:t,title:a="En vivo",iconUrl:n="https://stg-www.contodobet.com/static/img/landing/EventoEnVivo/icon.svg",onViewMore:i,className:s=""}){const o="https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/listView/football/all/all/all/in-play.json?channel_id=3&channel_id=3&client_id=200&client_id=200&competitionId=undefined&lang=es_PE&lang=es_PE&market=PE&market=PE&useCombined=true&useCombinedLive=true",r=_.useRef(null),[g,v]=_.useState({isStart:!0,isEnd:!1}),[c,f]=_.useState(null),[x,l]=_.useState({}),[m,C]=_.useState({start:null,end:null}),S=_.useRef(!1),[O,I]=_.useState(null),F=_.useRef(!1),R=H.useCaptureInteraction(),h=Ze(m,300),T=()=>{var p;R({element:"evento_en_vivo_prev",label:"OraculoSeccionEventoEnVivo - Anterior",target:"prev",event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{section:"OraculoSeccionEventoEnVivo"}}),(p=r.current)==null||p.prev()},k=()=>{var p;R({element:"evento_en_vivo_next",label:"OraculoSeccionEventoEnVivo - Siguiente",target:"next",event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{section:"OraculoSeccionEventoEnVivo"}}),(p=r.current)==null||p.next()},B=()=>{R({element:"evento_en_vivo_view_more",label:"OraculoSeccionEventoEnVivo - Ver más",target:"ver_mas",event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{section:"OraculoSeccionEventoEnVivo"}}),oa()},$=["esports","cyber"],y=p=>p.filter(d=>{var w;if(d.event.sport!=="FOOTBALL")return!1;const b=((w=d.event.group)==null?void 0:w.toLowerCase())||"";return!$.some(E=>b.includes(E))}),j=_.useCallback(async()=>{var p;try{let d=O;if(!F.current&&O===null){F.current=!0;try{const W=await fetch("https://api.mktolimpo.com/api/kambi/eventos/orden"),P=W.ok?await W.json():null;d=((p=P==null?void 0:P.data)==null?void 0:p.event_ids)||[]}catch{d=[]}I(d)}const w=await(await fetch(o)).json(),E=y(w.events);if(!d||d.length===0){f(E);return}const N=new Map(d.map((W,P)=>[String(W),P])),z=[...E].sort((W,P)=>{const D=N.get(String(W.event.id)),G=N.get(String(P.event.id));return D!==void 0&&G!==void 0?D-G:D!==void 0?-1:G!==void 0?1:0});f(z)}catch(d){console.error(d)}},[O]);_.useEffect(()=>{j();const p=setInterval(j,2e4);return()=>clearInterval(p)},[j]),_.useEffect(()=>{if(h.start===null||h.end===null||!(c!=null&&c.length)||S.current)return;const p=3,d=Math.max(0,h.start-p),b=Math.min(c.length-1,h.end+p),w=c.slice(d,b+1).map(E=>E==null?void 0:E.event.id).filter(Boolean).filter(E=>x[E]===void 0);w.length&&(S.current=!0,Ke(w).then(E=>{l(N=>({...N,...E.events}))}).catch(E=>{console.error("Jersey fetch error",E)}).finally(()=>{S.current=!1}))},[h,c,x]);const L=s||void 0,u=c===null;return!u&&c.length===0?null:e.jsx("section",{className:L,style:{width:"100%",boxSizing:"border-box"},children:e.jsxs(A.default,{direction:"column",spacing:1.5,useFlexGap:!0,children:[e.jsxs(K,{spacing:1.5,columns:"1fr auto ",justify:"start",children:[e.jsx(X,{title:a,iconUrl:n,size:"md"}),e.jsxs("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[e.jsxs(K,{spacing:1,columns:"auto auto",children:[e.jsx(V,{ariaLabel:"Anterior",variant:"secondary",iconOnly:!0,leftIcon:e.jsx(se.ChevronLeftRounded,{}),onClick:T,disabled:g.isStart}),e.jsx(V,{ariaLabel:"Siguiente",variant:"secondary",iconOnly:!0,rightIcon:e.jsx(se.ChevronRightRounded,{}),onClick:k,disabled:g.isEnd})]}),e.jsx(V,{variant:"secondary",onClick:B,children:"Ver más"})]})]}),e.jsx(Y,{ref:r,items:u?Array(4).fill({}):c.slice(0,20),perPage:void 0,enableHorizontalWheel:!0,gap:"16px",options:{autoWidth:!0,trimSpace:"move"},breakpoints:{400:{gap:"4px",focus:"center"},768:{gap:"8px",focus:"center"},1024:{gap:"10px",focus:"center"}},renderItem:p=>{var w;const d=((w=p.event)==null?void 0:w.id)||p.eventId,b=d in x?x[d]:void 0;return u?e.jsx(me,{children:e.jsx(Oa,{})}):e.jsx(me,{children:e.jsx(Ye,{...p,jersey:b})})},onMove:({isStart:p,isEnd:d,visibleStart:b,visibleEnd:w})=>{v({isStart:p,isEnd:d}),C({start:b,end:w})}})]})})}function Ia(){return e.jsxs("div",{className:ne.cardContainer,children:[e.jsx(je,{title:""}),e.jsx("div",{className:ne.cardBackground,children:e.jsxs(A.default,{direction:"column",spacing:{xs:.5,md:1},useFlexGap:!0,children:[e.jsxs(A.default,{spacing:8,direction:"row",justifyContent:"center",alignItems:"center",children:[e.jsx(q.default,{variant:"circular",width:48,height:48}),e.jsx(q.default,{variant:"circular",width:48,height:48})]}),e.jsxs(A.default,{direction:"column",spacing:{xs:.5,md:1},useFlexGap:!0,children:[e.jsxs(A.default,{spacing:8,direction:"row",justifyContent:"center",alignItems:"center",children:[e.jsx(q.default,{variant:"text",width:80,height:12}),e.jsx(q.default,{variant:"text",width:80,height:12})]}),e.jsx(A.default,{spacing:8,direction:"row",justifyContent:"center",alignItems:"center",children:e.jsx(q.default,{variant:"text",width:160,height:12})}),e.jsxs(A.default,{direction:"row",spacing:1,children:[e.jsx(q.default,{variant:"text",width:80,height:16}),e.jsx(q.default,{variant:"text",width:80,height:16}),e.jsx(q.default,{variant:"text",width:80,height:16})]}),e.jsx("div",{className:ne.jugadas,children:e.jsxs(A.default,{direction:"row",spacing:1,children:[e.jsx(q.default,{variant:"rounded",width:80,height:32}),e.jsx(q.default,{variant:"rounded",width:80,height:32}),e.jsx(q.default,{variant:"rounded",width:80,height:32})]})})]})]})})]})}const Ta="oraculo__OraculoSeccionEventoSemana-module__wrapper___eqVq-",ka="oraculo__OraculoSeccionEventoSemana-module__container___5yFQs",Ma="oraculo__OraculoSeccionEventoSemana-module__buttonWrapper___-6IDT",xe={wrapper:Ta,container:ka,buttonWrapper:Ma};async function Ba(t,a=2,n){const i=[];for(let s=0;s<t.length;s+=a){if(n.aborted)throw new DOMException("Aborted","AbortError");const o=t.slice(s,s+a),r=await Promise.all(o.map(g=>fetch(g,{signal:n}).then(v=>v.json())));i.push(...r)}return i}function Na(t){return[...t].sort((a,n)=>new Date(a.start).getTime()-new Date(n.start).getTime())}function Ra(t){const a=new Date,n=new Date(a.getTime()+480*60*60*1e3);return t.filter(i=>{if(!i.start)return!1;const s=new Date(i.start);return s>=a&&s<=n})}function $a(t,a){const i=a.filter(s=>{var o;return((o=s.betOfferType)==null?void 0:o.id)===2}).reduce((s,o)=>(s[o.eventId]||(s[o.eventId]=[]),s[o.eventId].push(o),s),{});return t.filter(s=>i[s.id]).map(s=>({...s,outcome:i[s.id]}))}function ut({items:t,title:a="En vivo",iconUrl:n,onViewMore:i,className:s=""}){const o=H.useCaptureInteraction(),r="https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/group.json?channel_id=1&client_id=200&lang=es_PE&market=PE",g=_.useRef(null),[v,c]=_.useState({isStart:!0,isEnd:!1}),[f,x]=_.useState(null);_.useRef(new Set);const[l,m]=_.useState({}),[C,S]=_.useState({start:null,end:null}),O="channel_id=1&client_id=200&competitionId=undefined&lang=es_PE&market=PE&useCombined=true",I=Ze(C,250),F=_.useRef(!1),R=()=>{o({element:"evento_semana_view_more",label:"OraculoSeccionEventoSemana - Ver más",target:"ver_mas",event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{section:"OraculoSeccionEventoSemana"}}),ia()};async function h(y){var u,p;let j=[],L=[];try{const d=await fetch("https://api.mktolimpo.com/api/kambi/eventos/orden",{signal:y});if(d.ok){const b=await d.json();j=((u=b==null?void 0:b.data)==null?void 0:u.group_ids)||[],L=((p=b==null?void 0:b.data)==null?void 0:p.event_ids)||[]}}catch(d){d.name!=="AbortError"&&console.warn("Order API not available, using default group order");return}try{const w=(await(await fetch(r,{signal:y})).json()).group.groups.find(D=>D.englishName==="Football");if(!w||!Array.isArray(w.groups)){console.error("Football groups not found");return}let E=[...w.groups];if(j.length>0){const D=new Map(j.map((G,Q)=>[G,Q]));E.sort((G,Q)=>{const pe=D.get(String(G.id)),fe=D.get(String(Q.id));return pe!==void 0&&fe!==void 0?pe-fe:pe!==void 0?-1:fe!==void 0?1:0})}const z=E.slice(0,5),W=D=>{const G="https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/listView/football";if(D.groups&&D.groups.length>0){const Q=D.groups[0];return[`${G}/${D.termKey}/${Q.termKey}/all/matches.json?${O}`]}return[`${G}/${D.termKey}/all/all/matches.json?${O}`]},P=z.flatMap(W);T(P,L,y)}catch(d){console.error(d)}}async function T(y,j,L){try{const u=await Ba(y,2,L);let p=[],d=[];u.forEach(N=>{N.events&&(p.push(...N.events.map(z=>z.event)),d.push(...N.events.flatMap(z=>z.betOffers||[])))});const b=$a(p,d),w=Na(Ra(b));let E=w;if(j.length>0){const N=new Map(j.map((z,W)=>[String(z),W]));E=[...w].sort((z,W)=>{const P=N.get(String(z.id)),D=N.get(String(W.id));return P!==void 0&&D!==void 0?P-D:P!==void 0?-1:D!==void 0?1:0})}if(L.aborted)return;x(E)}catch(u){console.error("Error loading events:",u)}}_.useEffect(()=>{if(!t)return;const y=new AbortController;return h(y.signal),()=>{y.abort()}},[t]),_.useEffect(()=>{if(I.start===null||I.end===null||!(f!=null&&f.length)||F.current)return;const y=2,j=Math.max(0,I.start-y),L=Math.min(f.length-1,I.end+y),u=f.slice(j,L+1).map(d=>d==null?void 0:d.id).filter(Boolean).filter(d=>l[d]===void 0);if(!u.length)return;let p=!1;return F.current=!0,(async()=>{try{const d=await Ke(u);p||m(b=>({...b,...d.events}))}catch(d){console.error("Jersey fetch error",d)}finally{F.current=!1}})(),()=>{p=!0}},[I,f]);const k=s||void 0,B={paddingLeft:0,width:"100%",boxSizing:"border-box"},$=f===null;return!$&&f.length===0?null:e.jsx("section",{className:k,style:B,children:e.jsxs("div",{className:xe.wrapper,children:[e.jsx("div",{className:xe.container,children:e.jsxs(A.default,{direction:"column",spacing:1.5,useFlexGap:!0,children:[e.jsx(X,{title:"Eventos de la semana"}),e.jsx("div",{className:xe.buttonWrapper,children:e.jsx(V,{variant:"secondary",size:"lg",fullWidth:!0,onClick:()=>{R()},children:"Ver más"})})]})}),e.jsx("div",{style:{minWidth:"180px"},children:e.jsx(Y,{ref:g,items:$?Array(6).fill({}):f.slice(0,20),perPage:3.5,gap:"16px",enableHorizontalWheel:!0,options:{autoWidth:!0,trimSpace:!0},breakpoints:{1024:{perPage:1.4,gap:"8px",focus:"center",padding:{left:"8px",right:"8px"}}},renderItem:y=>{const j=y.id,L=j in l?l[j]:void 0;return $?e.jsx(me,{children:e.jsx(Ia,{})}):e.jsx(me,{children:e.jsx(Qe,{event:y,jersey:L})})},onMove:({isStart:y,isEnd:j,visibleStart:L,visibleEnd:u})=>{c({isStart:y,isEnd:j}),S({start:L,end:u}),o({element:"evento_semana_carousel_slide",label:"OraculoSeccionEventoSemana - Slide Carousel",target:"carousel",event_type:"slide",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:"",visibleStart:L,visibleEnd:u,isStart:y,isEnd:j},tags:{section:"OraculoSeccionEventoSemana"}})}})})]})})}function mt({backgrounds:t,items:a}){const[n,i]=_.useState(0),s=H.useCaptureInteraction(),o=_.useRef(null),r=_.useRef(!1),g=_.useRef(!1),v=(t==null?void 0:t.length)||1,c=!t||t.length===0;_.useEffect(()=>{const m=setTimeout(()=>{r.current=!0},500);return()=>clearTimeout(m)},[]);const f=(m,C)=>{s({element:"banner_carousel",label:`OraculoSeccionBanners - Banner click: Banner ${C+1}`,target:m.href||"no_url",event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:"",banner_position:C+1,banner_total:(t==null?void 0:t.length)||0},tags:{banner_type:"carousel",banner_target:"_self",banner_url:m.href||"no_url"}})},x=m=>{if(s({element:"banner_menu_item",label:`OraculoSeccionBanners - Menu item click: ${m.label||m.id}`,target:m.href||"action",event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:"",item_id:m.id},tags:{item_label:m.label||"no_label"}}),m.onClick){m.onClick();return}m.href&&typeof globalThis!="undefined"&&globalThis.location&&globalThis.location.assign(m.href)},l=m=>{var S;const C=(m%v+v)%v;if(i(C),!!r.current){if(g.current){g.current=!1;return}s({element:"banner_carousel",label:`OraculoSeccionBanners - Banner view: Slide ${C+1}`,target:((S=t==null?void 0:t[C])==null?void 0:S.href)||"no_url",event_type:"view",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:"",slide_index:C+1,total_slides:v,interaction_type:"manual_slide"},tags:{banner_position:String(C+1)}})}};return _.useEffect(()=>{if(c||!t||t.length<=1)return;const m=window.setInterval(()=>{var C;g.current=!0,(C=o.current)==null||C.next()},5e3);return()=>window.clearInterval(m)},[c,t==null?void 0:t.length]),e.jsxs(U.Box,{component:"section",sx:{position:"relative",overflow:"visible"},children:[e.jsxs(U.Box,{sx:{position:"relative",height:{xs:300,sm:360,md:420},borderRadius:0,overflow:"hidden"},children:[e.jsx(Y,{ref:o,items:t,perPage:1,gap:"0px",enableHorizontalWheel:!0,options:{type:"loop",perMove:1,pagination:!1,arrows:!1,drag:!0,focus:"center"},onMove:({index:m})=>{const C=(m%v+v)%v;i(C),l(m)},renderItem:(m,C)=>{var S,O;return e.jsxs(U.Box,{component:"a",href:m.href,target:(S=m.target)!=null?S:"_self",rel:m.target==="_blank"?"noopener noreferrer":void 0,onClick:()=>{f(m,C)},sx:{position:"relative",height:{xs:300,sm:360,md:420},display:"block",textDecoration:"none",cursor:"pointer"},children:[e.jsxs(U.Box,{component:"picture",sx:{position:"absolute",inset:0,lineHeight:0},children:[e.jsx("source",{srcSet:m.desktopSrc,media:"(min-width:800px)"}),e.jsx("source",{srcSet:m.mobileSrc,media:"(max-width:799px)"}),e.jsx(U.Box,{component:"img",src:(O=m.fallbackSrc)!=null?O:m.desktopSrc,alt:"","aria-hidden":!0,loading:"lazy",sx:{width:"100%",height:"100%",objectFit:"cover",display:"block"}})]}),e.jsx(U.Box,{sx:{position:"absolute",inset:0,pointerEvents:"none","&::before":{content:'""',position:"absolute",left:0,right:0,bottom:0,top:"40%",background:"linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(18,18,18,0.85) 80%, #121212 100%)"}}})]})}}),e.jsx(U.Box,{sx:{position:"absolute",left:0,right:0,bottom:72,display:"flex",justifyContent:"center",zIndex:2},children:e.jsx(we,{total:v,active:n})})]}),e.jsx(U.Box,{sx:{position:"absolute",bottom:{xs:-12,sm:0},left:120,right:120,"@media (max-width:1024px)":{left:24,right:24},backgroundColor:"#363636",borderRadius:2,p:1.5,display:"flex",justifyContent:"space-around",alignItems:"center",boxShadow:"0 10px 24px rgba(0,0,0,.35)",zIndex:3},children:a==null?void 0:a.map(m=>e.jsxs(U.Box,{sx:{display:"flex",flexDirection:{xs:"column",md:"row"},alignItems:"center",justifyContent:"center",gap:{xs:.5,md:1},color:"#FFFFFF",minWidth:0,cursor:m.onClick||m.href?"pointer":"default",whiteSpace:"nowrap"},onClick:()=>x(m),children:[m.icon&&e.jsx(U.Box,{component:"img",src:m.icon,alt:m.label||`icon-${m.id}`,sx:{width:{xs:20,sm:22,md:24},height:{xs:20,sm:22,md:24},objectFit:"contain"}}),e.jsx(U.Typography,{sx:{fontSize:{xs:10,sm:11,md:12},fontWeight:600,color:"#E0E0E0",textAlign:"center"},children:m.label})]},m.id))})]})}const Fa=[{src:"https://stg-www.contodobet.com/static/img/landing/MediosPago/IBK.svg",alt:"Interbank"},{src:"https://stg-www.contodobet.com/static/img/landing/MediosPago/Yape.svg",alt:"Yape"},{src:"https://stg-www.contodobet.com/static/img/landing/MediosPago/BCP.png",alt:"BCP"},{src:"https://stg-www.contodobet.com/static/img/landing/MediosPago/pagoEfectivo.png",alt:"PagoEfectivo"},{src:"https://stg-www.contodobet.com/static/img/landing/MediosPago/tupay.svg",alt:"Tupay"},{src:"https://stg-www.contodobet.com/static/img/landing/MediosPago/monnet.svg",alt:"Monnet"},{src:"https://stg-www.contodobet.com/static/img/landing/MediosPago/niubiz.svg",alt:"Niubiz"}];function pt({title:t="Medios de pago",items:a=Fa}){const n=Math.ceil(a.length/2),i=a.slice(0,n),s=a.slice(n);return e.jsxs(U.Box,{component:"section","aria-labelledby":"mp-title",sx:{color:"#fff"},children:[e.jsx(U.Typography,{id:"mp-title",variant:"h6",sx:{fontWeight:800,fontSize:{xs:20,md:32},textAlign:"center",mb:1.5},children:t}),e.jsx(U.Box,{sx:{width:"288px",height:"2px",mx:"auto",mb:3,opacity:.95,filter:"blur(0.2px)",background:"linear-gradient(90deg, rgba(0,0,0,0) 0%, #1dd75b 18%, #23d46b 50%, #1dd75b 82%, rgba(0,0,0,0) 100%)"}}),e.jsxs(U.Stack,{spacing:{xs:2,md:3},alignItems:"center",children:[e.jsx(U.Stack,{direction:"row",justifyContent:"center",alignItems:"center",gap:{xs:2,md:3},flexWrap:"wrap",children:i.map((o,r)=>e.jsx(_e,{...o},`${o.alt}-${o.src}-${r}`))}),e.jsx(U.Stack,{direction:"row",justifyContent:"center",alignItems:"center",gap:{xs:2,md:3},flexWrap:"wrap",children:s.map((o,r)=>e.jsx(_e,{...o},`${o.alt}-${o.src}-${r}`))})]})]})}const La={OraculoSeccionDestacados:et,OraculoSeccionTopJuegos:Ie,OraculoSeccionCasinoEnVivo:at,OraculoSeccionCasino:ot,OraculoSeccionVirtuales:st,OraculoSeccionClubOlimpo:lt,OraculoSeccionBonoBienvenida:rt,OraculoSeccionBanners:mt,OraculoSeccionMediosPago:pt,OraculoSeccionEventoEnVivo:dt,OraculoSeccionEventoSemana:ut,OraculoSeccionEventoCombinadas:ct},$e={sections:[{variableName2:"backgrounds",updatedAt:"2026-01-22T04:11:09.501Z",variableName:"items",dataMode:"manual",title:"Banners",visible:!0,id:9,manualItems:[{id:"724a1dc0-d55b-4443-a580-cad22e328536",fields:[{type:"string",id:"abb2c3d6-d5c5-47ee-8ffa-c764a8bc731e",isImage:!1,required:!0,value:"1",name:"id"},{name:"label",isImage:!1,value:"POR INICIAR",required:!1,id:"549c02bf-56b5-4652-93d9-46b9451bac39",type:"string"},{type:"string",id:"c6538242-1974-4bed-aed3-703a111987b5",maxSizeMB:.2,required:!0,isImage:!0,value:"https://stg-www.contodobet.com/static/img/landing/Banner/clock.svg",name:"icon"},{id:"7d564f31-69ff-4f32-983b-46d28ced4a18",type:"string",required:!1,value:"https://www.olimpo.bet/deportes#starting-soon",isImage:!1,name:"href"}]},{fields:[{type:"string",isImage:!1,id:"45c50e08-560e-42cb-8be1-e9722f69c8a0",required:!0,name:"id",value:"2"},{type:"string",name:"label",isImage:!1,value:"EXPLORAR",required:!1,id:"2eec0f3d-0126-4960-8ec0-17cc92b5eb43"},{maxSizeMB:.2,isImage:!0,required:!0,value:"https://stg-www.contodobet.com/static/img/landing/Banner/icon2.svg",id:"5530e6bd-d2b2-4045-9371-722e23d96e14",type:"string",name:"icon"},{id:"7e5375ad-ecbb-4354-868a-b9323bcfd053",required:!1,name:"href",isImage:!1,type:"string",value:"https://www.olimpo.bet/deportes#sports/a-z"}],id:"ad0df0e2-c8ce-4524-b05a-2a29578aba11"},{id:"966bc1fc-0b1a-4a50-a4a2-964262922c3d",fields:[{isImage:!1,required:!0,id:"fc35f393-6692-4d25-a534-d51f4bd6d9a2",value:"3",name:"id",type:"string"},{isImage:!1,name:"label",value:"TOP JUEGOS",id:"a323e324-cf04-4178-b2c2-596d51564123",type:"string",required:!1},{type:"string",name:"icon",maxSizeMB:.2,value:"https://imagenesolimpo.s3.us-east-1.amazonaws.com/landing/1765981473501-icon3.svg",id:"6ede5815-7336-40fa-99f2-57ac6cb938cd",required:!0,isImage:!0},{required:!1,id:"26a486fd-31e6-4ed4-ab83-0f9a7bf6adc4",value:"https://www.olimpo.bet/casino",isImage:!1,name:"href",type:"string"}]},{id:"31e00ff9-f2dd-4942-bff3-919902fde880",fields:[{id:"fbec2c21-cf32-426f-910b-9c78a6cd714c",required:!0,isImage:!1,value:"4",name:"id",type:"string"},{isImage:!1,name:"label",type:"string",value:"MISIONES",required:!1,id:"2de80dbf-998b-4bc7-8383-4b69746ef155"},{type:"string",id:"686c62bd-ea86-4aeb-97b7-6f1488912066",required:!0,isImage:!0,maxSizeMB:.2,value:"https://stg-www.contodobet.com/static/img/landing/Banner/icon3.svg",name:"icon"},{id:"4b72f490-75e4-458e-a4b5-68f0736a25d4",isImage:!1,required:!1,type:"string",value:"https://www.olimpo.bet/private/misiones",name:"href"}]}],manualScalarFields:[{id:"7ee165a0-1268-4825-82df-9fef9857f535",type:"string",isImage:!1,value:"",required:!1,name:"groups"}],order:1,manualItems2:[{id:"13b35362-5695-4687-b6a8-645f8effd264",fields:[{isImage:!0,name:"desktopSrc",id:"eea41214-3c26-41e9-a908-d87327147396",maxSizeMB:2,type:"string",value:"https://imagenesolimpo.s3.us-east-1.amazonaws.com/landing/1768333229541-banner032.webp",required:!1},{maxSizeMB:2,isImage:!0,type:"string",name:"mobileSrc",id:"b393dfd3-c085-43e0-b68a-97cc04c06b6a",value:"https://stg-www.contodobet.com/static/img/landing/Banner/FondoMisiones.png",required:!1},{maxSizeMB:2,id:"2616b944-7cd1-4919-bc56-38ddb1a3093b",value:"https://stg-www.contodobet.com/static/img/landing/Banner/FondoMisiones.png",isImage:!0,name:"fallbackSrc",type:"string",required:!1},{name:"href",id:"54689f0e-f698-48a1-9d84-d13a397e24ea",required:!1,value:"",type:"string",isImage:!1}]},{id:"024f8130-91e1-4296-b826-cffa32ab1a96",fields:[{maxSizeMB:2,isImage:!0,value:"https://imagenesolimpo.s3.us-east-1.amazonaws.com/landing/1768852295069-ftd_web_captacion60.jpg",name:"desktopSrc",type:"string",required:!1,id:"1ebab59e-f706-4795-81cb-7accfc9f33d7"},{id:"bdebd1b0-d633-4b9e-9247-8e769cdc5b3b",type:"string",isImage:!0,required:!1,value:"https://imagenesolimpo.s3.us-east-1.amazonaws.com/landing/1768852302781-ftd_mobile_captacion60.jpg",maxSizeMB:2,name:"mobileSrc"},{isImage:!0,maxSizeMB:2,value:"https://imagenesolimpo.s3.us-east-1.amazonaws.com/landing/1768852309554-ftd_web_captacion60.jpg",id:"4bc20da7-b769-43dd-ba2e-ee9261ec73d7",name:"fallbackSrc",type:"string",required:!1},{id:"b85e737d-97ec-430c-b819-ba6e91a25372",type:"string",isImage:!1,required:!1,value:"",name:"href"}]},{id:"cbd24716-9770-418f-aa87-ae60e7e9e0ee",fields:[{maxSizeMB:2,required:!1,name:"desktopSrc",type:"string",value:"https://imagenesolimpo.s3.us-east-1.amazonaws.com/landing/1768831142801-ftd_web_tenismasters.jpg",id:"fa31486e-ec9b-4c99-b870-396d25bc66d6",isImage:!0},{isImage:!0,name:"mobileSrc",id:"954a4363-1373-44f2-b677-1bea66882838",maxSizeMB:2,type:"string",value:"https://imagenesolimpo.s3.us-east-1.amazonaws.com/landing/1768831155101-ftd_mobile_tenismasters.jpg",required:!1},{required:!1,type:"string",id:"be8789e8-cbf6-49c1-9ae5-ebc958404369",maxSizeMB:2,name:"fallbackSrc",isImage:!0,value:"https://imagenesolimpo.s3.us-east-1.amazonaws.com/landing/1768831198671-ftd_web_tenismasters.jpg"},{value:"https://www.olimpo.bet/torneos/Torneo_Olimpo_Tennis",type:"string",required:!1,isImage:!1,id:"142b0cb2-e255-4240-aea1-807a67321e34",name:"href"}]},{fields:[{required:!1,isImage:!0,id:"4414dbe4-67b3-428c-9d9d-920fff30956a",value:"https://imagenesolimpo.s3.us-east-1.amazonaws.com/landing/1768831210432-ftd_web_verano.jpg",type:"string",maxSizeMB:2,name:"desktopSrc"},{required:!1,isImage:!0,id:"b74d7582-94be-4608-8cdc-e6f8cab3e115",name:"mobileSrc",type:"string",value:"https://imagenesolimpo.s3.us-east-1.amazonaws.com/landing/1768831218073-ftd_mobile_verano.jpg",maxSizeMB:2},{id:"ada12745-3851-4a86-912c-2c9ec7c3e5de",maxSizeMB:2,value:"https://imagenesolimpo.s3.us-east-1.amazonaws.com/landing/1768831228250-ftd_web_verano.jpg",name:"fallbackSrc",type:"string",required:!1,isImage:!0},{value:"https://www.olimpo.bet/torneos/Endorphina_09012026_Casino",isImage:!1,required:!1,name:"href",type:"string",id:"e23e8b63-0ca4-436f-b53a-1bdf8d6442a6"}],id:"0d5ffdb1-d55f-47b6-9e61-e6b571bf2db2"},{id:"cf073698-ff54-4a9e-9c4f-c34b6987e8b5",fields:[{type:"string",isImage:!0,required:!1,value:"https://imagenesolimpo.s3.us-east-1.amazonaws.com/landing/1768831260900-ftd_web_virtuales.jpg",maxSizeMB:2,name:"desktopSrc",id:"1a1ef092-aff6-49c5-81be-7d76c6ac94e1"},{required:!1,value:"https://imagenesolimpo.s3.us-east-1.amazonaws.com/landing/1768831267161-ftd_mobile_virtuales.jpg",isImage:!0,type:"string",maxSizeMB:2,name:"mobileSrc",id:"901cc080-4907-47a8-8b2e-73a7b9fc27a3"},{type:"string",name:"fallbackSrc",isImage:!0,id:"8f97418b-6f27-4231-b6f8-e01e1d3c94f8",maxSizeMB:2,value:"https://imagenesolimpo.s3.us-east-1.amazonaws.com/landing/1768831274473-ftd_web_virtuales.jpg",required:!1},{type:"string",value:"https://www.olimpo.bet/torneos/Torneo_Lo_Mejor_De_Virtuales",required:!1,name:"href",isImage:!1,id:"a140f16d-8af9-474a-a77c-6ddc1651b3e5"}]}],componentKey:"OraculoSeccionBanners"},{visible:!0,dataMode:"url",apiUrl:"https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/listView/football/all/all/all/in-play.json?channel_id=3&channel_id=3&client_id=200&client_id=200&competitionId=undefined&lang=es_PE&lang=es_PE&market=PE&market=PE&useCombined=true&useCombinedLive=true%22",variableName:"items",apiParams:[],id:2,componentKey:"OraculoSeccionEventoEnVivo",order:2,manualScalarFields:[{isUrl:!1,id:"7fc591db-555b-49b2-a3ad-30aa66eff17b",required:!0,name:"title",type:"string",value:"En vivo"},{type:"string",value:"https://stg-www.contodobet.com/assets/img/home/EnVivo/icon.svg",name:"iconUrl",isUrl:!0,required:!1,id:"db4b6355-ed6c-4265-ad78-d8fffb660997"},{required:!1,value:"",type:"function",id:"e4647a65-2e60-4243-bab4-25b7ba8461f8",isUrl:!1,name:"onViewMore"},{id:"a16ab6c6-321c-4ebe-bd36-a85ad49edf3e",type:"string",isUrl:!1,required:!1,value:"",name:"className"}],title:"Eventos en vivo",apiMethod:"GET",updatedAt:"2026-01-22T04:11:09.501Z"},{visible:!0,manualScalarFields:[{name:"title",required:!0,value:"Casino",id:"c2046b5a-4d30-46ff-9513-e15a6e0b0a7e",isImage:!1,type:"string"},{required:!0,type:"string",maxSizeMB:.2,name:"iconUrl",isImage:!0,value:"https://stg-www.contodobet.com/static/img/landing/Casino/diamante.svg",id:"9c5964ca-ce84-4c47-86ec-b34d7f3a5793"},{id:"1c32ea69-598b-4f80-81e4-709d887c12c1",value:"true",name:"mosaicFirst",required:!1,type:"boolean",isImage:!1},{value:"4",type:"number",required:!1,name:"gridSize",id:"5c3c60eb-cf49-4083-ab83-67d65f829554",isImage:!1},{value:"",name:"groups",isImage:!1,id:"c4d4c4b9-0c93-4aca-a61f-042e52fd9254",required:!1,type:"string"}],variableName:"items",componentKey:"OraculoSeccionCasino",order:3,apiUrl:"https://wallet-pe.olimpo.bet/api/contents/getLobby",apiParams:[{value:"OLI",key:"company",id:"2af22a50-07e2-4a48-8569-90c79827f3e7"},{key:"lobby",id:"efa2def8-eeb4-4fcc-80f6-32c24e7804e6",value:"HOME_CASINO"}],id:4,updatedAt:"2026-01-22T04:11:09.501Z",apiMethod:"GET",dataMode:"url",title:"Casino"},{title:"Eventos Combinadas",id:1,updatedAt:"2026-01-22T04:11:09.501Z",apiParams:[],apiMethod:"GET",order:4,apiUrl:"https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/group/prepackcoupon.json?lang=es_PE&market=PE&client_id=200&channel_id=1&ncid=1764284658793&prePackCouponTags=CUSTOM",manualScalarFields:[{required:!0,id:"33e5944d-b5be-4971-8c10-65aa6b71051c",name:"title",type:"string",value:"Combinadas",isImage:!1},{id:"95cd1489-206c-4a72-b4bd-b65161089f73",isImage:!0,name:"iconUrl",value:"https://imagenesolimpo.s3.us-east-1.amazonaws.com/landing/1765894618836-frame181009.svg",type:"string",dimensions:"40x40",required:!1,maxSizeMB:.2},{name:"className",value:"",id:"af234a92-41ad-4ff1-bfbb-ac63a9af19f7",type:"string",isImage:!1,required:!1},{value:"",required:!1,name:"groups",isImage:!1,id:"52f226c8-6456-4395-b72d-d140af6fa46d",type:"string"}],dataMode:"url",variableName:"items",visible:!0,componentKey:"OraculoSeccionEventoCombinadas"},{updatedAt:"2026-01-22T04:11:09.501Z",apiUrl:"https://us1.offering-api.kambicdn.com/coupon/v2018/nexuspe/coupon/3935.json?lang=es_PE&market=PE&client_id=200&channel_id=1&ncid=1764401676636&startTime=2025-11-29T06:00:00.000Z&endTime=2026-06-25T15:00:00.000Z&minNoOfEvents=0&maxNoOfEvents=25&categoryGroup=list_view_competitions",dataMode:"url",title:"Eventos de la semana",order:5,apiParams:[],variableName:"items",apiMethod:"GET",visible:!0,id:3,componentKey:"OraculoSeccionEventoSemana",manualScalarFields:[{id:"7a3de844-5727-4043-be42-7f965e2aa249",isUrl:!1,value:"Eventos esta semana",required:!1,name:"title",type:"string"},{value:"",isUrl:!0,required:!1,id:"2895f65f-e75b-4116-958d-04d4c34f16fe",name:"iconUrl",type:"string"},{type:"function",required:!1,value:"",id:"d973d3ee-721e-4d76-888c-6ad8b7bb3414",isUrl:!1,name:"onViewMore"},{required:!1,type:"string",value:"",name:"className",id:"c062fe02-c069-49fb-aae6-d39aa3fde89c",isUrl:!1}]},{componentKey:"OraculoSeccionBonoBienvenida",visible:!1,order:6,manualScalarFields:[{id:"fec2252c-2c2d-448d-8775-9d073bd8def9",value:"Te damos la",name:"headline",type:"string",required:!1,isUrl:!1},{name:"headline2",required:!1,id:"17e045d1-8ddb-46bc-b3ae-ae0c7ffc5952",isUrl:!1,value:"bienvenida al club",type:"string"},{type:"string",required:!1,isUrl:!0,name:"backgroundImageUrl",value:"https://stg-www.contodobet.com/static/img/landing/Bonos/Fondobg.png",id:"cae601b0-ed5d-4b97-9e1f-1816d7986c6b"}],variableName:"items",title:"Bono Bienvenida",updatedAt:"2026-01-22T04:11:09.501Z",manualItems:[{id:"8677b338-7d12-4ba9-a95f-d34ed71d92b0",fields:[{value:"Recibe",type:"string",name:"title",isUrl:!1,required:!0,id:"e015fc5e-983e-4096-b82e-6d5ed9957dd5"},{value:"S/60",required:!1,name:"amount",type:"string",id:"00b69888-d8ee-4bae-943c-be4e0dead26b",isUrl:!1},{name:"subtitle",required:!1,isUrl:!1,id:"376cd731-4a20-4435-a5ee-351ac55d4351",value:"SIN ROLLOVER",type:"string"},{value:"Hazlo aquí",name:"buttonText",required:!0,id:"3b73cff5-cb30-4b00-9b41-305455334e56",type:"string",isUrl:!1},{isUrl:!0,type:"string",required:!0,name:"backgroundImage",value:"https://stg-www.contodobet.com/static/img/landing/Bonos/Fondo.png",id:"89710b59-2a6a-4de8-be9a-7d9274bad84b"},{isUrl:!1,name:"onButtonClick",value:"window.location='https://www.olimpo.bet/promociones/Adq_Recibe30Flex_AAP100'",type:"function",required:!1,id:"e7ceaadc-b203-4587-856b-b9015201a43f"}]},{fields:[{id:"81e1730c-0f9b-4ab9-a4df-f36c974ae99d",required:!0,type:"string",name:"title",value:"Regístrate y recibe",isUrl:!1},{required:!1,value:"S/40",name:"amount",type:"string",isUrl:!1,id:"c1e96d9b-e7c7-4bb7-a8db-b67c32dcae32"},{required:!1,isUrl:!1,name:"subtitle",value:"SIN ROLLOVER",type:"string",id:"93242ead-5f09-4966-9484-471b27859c31"},{id:"0d97802b-7aaf-4ae3-b513-8a5a469e5d5d",value:"Hazlo aquí",name:"buttonText",type:"string",isUrl:!1,required:!0},{required:!0,isUrl:!0,id:"541fcdc8-07a7-47b8-9a33-d22cb865823c",name:"backgroundImage",value:"https://stg-www.contodobet.com/static/img/landing/Bonos/Fondo.png",type:"string"},{isUrl:!1,name:"onButtonClick",id:"b8c4b96c-0807-4040-8c3e-8392fb278aab",required:!1,type:"function",value:"window.location='https://www.olimpo.bet/promociones/Adq_Recibe30Flex_AAP100'"}],id:"6707ce1d-064a-43af-8679-712c7235873a"}],id:11,dataMode:"manual"},{dataMode:"url",componentKey:"OraculoSeccionCasinoEnVivo",order:7,title:"Casino en vivo",updatedAt:"2026-01-22T04:11:09.501Z",id:12,apiUrl:"https://wallet-pe.olimpo.bet/api/contents/getLobby",apiMethod:"POST",manualScalarFields:[{isImage:!1,value:"Casino en vivo",type:"string",name:"title",id:"52e655b4-7259-4f7f-9017-dafe24247810",required:!0},{required:!1,isImage:!1,id:"e299d500-abdc-4577-bb38-1943b6f02dfd",name:"subtitle",type:"string",value:"Disfruta la emoción en tus juegos favoritos y gana en tiempo real."},{isImage:!0,dimensions:"1080x1920",value:"https://stg-www.contodobet.com/static/img/landing/CasinoEnVivo/FondoMobile.png",name:"backgroundMobileUrl",required:!1,id:"6dcfd666-c2db-4a19-9fbf-08167bf56ae0",type:"string",maxSizeMB:2},{type:"string",maxSizeMB:2,name:"backgroundDesktopUrl",isImage:!0,id:"2aa55855-0865-4cf1-a1ee-e52db864c6b4",value:"https://stg-www.contodobet.com/static/img/landing/CasinoEnVivo/FondoDesktop.png",dimensions:"1920x1080",required:!1},{isImage:!1,name:"groups",type:"string",value:"",id:"e1599845-59d4-4320-903b-3857453b4322",required:!1}],variableName:"items",apiParams:[{key:"company",value:"OLI",id:"2822fa64-0e89-43ea-9c80-ee77076c95bd"},{key:"lobby",value:"HOME_CASINOENVIVO",id:"2d6f8267-0468-4320-976d-b01df40e8ca3"}],visible:!0},{order:8,title:"Oraculo Seccion Top Juegos",visible:!0,dataMode:"url",apiMethod:"GET",componentKey:"OraculoSeccionTopJuegos",updatedAt:"2026-01-22T04:11:09.501Z",manualScalarFields:[{isImage:!1,value:"Top juegos",type:"string",required:!0,name:"title",id:"a01c36e7-a551-4c92-89e0-e9eabcdbe344"},{required:!0,type:"string",id:"1960df1d-b07e-4461-b55f-39834ac30d8e",maxSizeMB:.2,value:"https://imagenesolimpo.s3.us-east-1.amazonaws.com/landing/1768597100868-virtuales.webp",isImage:!0,name:"iconUrl"},{value:"",name:"groups",isImage:!1,type:"string",id:"63dab0f6-b4d1-47af-b1e7-d3dcf4c69c4e",required:!1}],apiParams:[{id:"2bcfd8cd-8f1f-474f-beb4-170477acf9bd",value:"OLI",key:"company"},{id:"dac0b2d9-f00d-4979-9deb-31c6f66b1899",key:"lobby",value:"HOME_TOPJUEGOS"}],apiUrl:"https://wallet-pe.olimpo.bet/api/contents/getLobby",id:13,variableName:"items"},{apiMethod:"GET",componentKey:"OraculoSeccionDestacados",id:6,variableName:"items",title:'Promociones "Lo nuevo"',order:9,apiParams:[{id:"a2ee1b32-dc39-434f-9358-920e6c7bba0b",value:"OLI",key:"company"},{id:"16715513-30a1-4955-8e94-a4deee4722ba",value:"DESTACADOS",key:"lobby"}],dataMode:"url",updatedAt:"2026-01-22T04:11:09.501Z",apiUrl:"https://wallet-pe.olimpo.bet/api/contents/getPromotionsLobby",manualScalarFields:[{id:"f131acc5-a298-4583-9952-c0747dc1f1af",name:"title",type:"string",value:"Lo nuevo",required:!0,isImage:!1},{id:"8f0dadc8-ff0f-4074-870f-2bbcd9f38cab",required:!0,name:"iconUrl",type:"string",maxSizeMB:.2,dimensions:"40x40",value:"https://stg-www.contodobet.com/static/img/landing/Destacados/starIcon.svg",isImage:!0},{isImage:!1,type:"string",name:"className",value:"",required:!1,id:"39cd368d-0003-4145-88a9-f22b1a4ef32b"},{isImage:!1,type:"string",value:"",name:"groups",required:!1,id:"a9e218fd-9cc6-432f-a7bf-c119581e6927"}],visible:!0},{title:"Club Olimpo",componentKey:"OraculoSeccionClubOlimpo",dataMode:"manual",visible:!0,variableName:"items",manualItems:[{fields:[{required:!0,id:"65b37bc4-f480-4409-afd7-ff8b83c722e0",value:"¡Canjea bonos, productos y las mejores experiencias!",isUrl:!1,name:"text",type:"string"},{id:"cdc8fb20-5c5a-4165-93be-4df1026cdcee",required:!1,name:"buttonLabel",value:"Vamos",type:"string",isUrl:!1},{value:"",name:"imgAlt",type:"string",required:!1,id:"9f25442e-caeb-4fab-9bea-b91f1aef97eb",isUrl:!1},{id:"259ffa74-7e4f-48e6-90da-4837f2c37fe9",isUrl:!0,name:"imgMobile",type:"string",required:!0,value:"https://stg-www.contodobet.com/static/img/landing/ClubOlimpo/FondoMobile.png"},{value:"https://stg-www.contodobet.com/static/img/landing/ClubOlimpo/FondoDesktop.png",id:"e7812141-42d8-419f-9d15-b8711139e980",required:!1,type:"string",isUrl:!0,name:"imgDesktopBg"},{name:"imgDesktopLogo",id:"622d860b-9f9f-462a-a675-3768d6daf3c3",value:"https://stg-www.contodobet.com/static/img/landing/ClubOlimpo/Logo.png",required:!1,type:"string",isUrl:!0},{name:"onClick",id:"cc465fd9-907d-427a-b5bb-e0963bdd833a",value:"",required:!1,type:"function",isUrl:!1}],id:"03e20297-c0fa-4382-85b2-54eaa9325be1"}],id:8,updatedAt:"2026-01-22T04:11:09.501Z",order:10},{updatedAt:"2026-01-22T04:11:09.501Z",dataMode:"url",title:"Virtuales",order:11,variableName:"items",componentKey:"OraculoSeccionVirtuales",id:7,apiParams:[{value:"OLI",key:"company",id:"de915e1d-1742-4383-bd83-ed96fda1145a"},{key:"lobby",value:"HOME_VIRTUALES",id:"039b41a3-4e94-4a52-8798-e78d8651c090"}],apiMethod:"GET",manualScalarFields:[{required:!0,name:"title",id:"f6b16510-51db-4124-864d-2d12a0bb1b23",value:"Virtuales",type:"string",isImage:!1},{type:"string",id:"f9686ddc-f673-4784-8025-df26f48cc04f",value:"https://stg-www.contodobet.com/static/img/landing/Virtuales/virtuales.svg",maxSizeMB:.2,required:!0,isImage:!0,name:"iconUrl"},{type:"boolean",id:"4c4f348c-cb17-4fd6-bc4d-f816a42da249",name:"mosaicFirst",isImage:!1,value:"true",required:!1},{id:"c264c9c3-7178-4961-b366-163d9b818800",type:"number",name:"gridSize",value:"4",required:!1,isImage:!1},{id:"2310900e-68ce-4a64-89da-e0976d172fee",required:!1,type:"string",value:"",isImage:!1,name:"groups"}],visible:!0,apiUrl:"https://wallet-pe.olimpo.bet/api/contents/getLobby"},{title:"Medios de Pago",id:10,order:12,componentKey:"OraculoSeccionMediosPago",visible:!0,updatedAt:"2026-01-22T04:11:09.501Z"}]},qa=t=>typeof t=="function"||t&&typeof t=="object"&&"$$typeof"in t,Aa=t=>/^OraculoSeccion[A-Z]/.test(t);function ve(t){return t&&Array.isArray(t.sections)?t.sections.slice().sort((a,n)=>{var i,s;return((i=a.order)!=null?i:0)-((s=n.order)!=null?s:0)}).map((a,n)=>({...a,order:n+1})):t&&Array.isArray(t.components)?t.components.map((a,n)=>{var i,s,o,r,g;return{id:(i=a.id)!=null?i:n+1,title:(s=a.title)!=null?s:"",componentKey:a.componentKey,visible:(o=a.visible)!=null?o:!0,order:n+1,props:(r=a.props)!=null?r:{},apiUrl:(g=a.apiUrl)!=null?g:"",dataMode:a.dataMode,variableName:a.variableName,manualItems:a.manualItems,apiMethod:a.apiMethod,apiParams:a.apiParams}}):[]}const Pa=Object.fromEntries(Object.entries(La).filter(([t,a])=>Aa(t)&&qa(a))),za=t=>{try{return Object.fromEntries(t!=null?t:[])}catch{return console.warn("[oraculo] extras inválidos. Debe ser Array<[string, unknown]>",t),{}}};class Fe extends Error{constructor(a,n,i){super(`HTTP ${a} ${i}`),this.status=a,this.url=n,this.statusText=i,this.name="HttpError"}}const Le=["OraculoSeccionEventoEnVivo","OraculoSeccionEventoSemana","OraculoSeccionEventoCombinadas"],ft=({sectionsOverride:t,docId:a="home",db:n,extras:i,loader:s})=>{const o=_.useMemo(()=>za(i),[i]),r=s||o.loader,[g,v]=_.useState([]),[c,f]=_.useState(!1),[x,l]=_.useState({}),[m,C]=_.useState({}),[S,O]=_.useState({}),I=U.useMediaQuery("(min-width:1024px)");_.useEffect(()=>{if(t)return;if(!n){console.warn("[landing] sin db -> fallback json"),v(ve($e));return}const u=(d,b)=>{console.warn("[landing] FALLBACK:",d,b!=null?b:""),v(ve($e)),f(!1)};if(process.env.NEXT_PUBLIC_LANDING_FORCE_FALLBACK==="1"){f(!0),u("forzado por env");return}f(!0);const p=Te.onSnapshot(Te.doc(n,"landings",a),d=>{try{if(!d.exists()){u(`doc landings/${a} no existe`);return}const b=d.data(),w=ve(b);if(!w.length){u("JSON inválido o sin secciones normalizables",b);return}console.log("[landing] Firestore OK (json grande):",b),v(w)}catch(b){u("error procesando snapshot",b)}finally{f(!1)}},d=>{u("error onSnapshot",d)});return()=>p()},[t,a,n]),_.useEffect(()=>(ha(o),()=>ba()),[o]),_.useEffect(()=>{(t?t.slice():g.slice()).map(d=>d.componentKey).filter(d=>!!d).length},[t,g]);const F=async u=>{if(Le.includes(u.componentKey))return{items:[],events:[],data:{}};const p=(u.apiUrl||"").trim();if(!p)return;const d=u.apiMethod||"GET",b=u.apiParams||[];let w=p,E,N;if(d==="GET"){const W=new URL(p,typeof window=="undefined"?"http://localhost":window.location.origin);for(const P of b)P.key&&W.searchParams.append(P.key,P.value);w=W.toString()}else{const W=new URLSearchParams;for(const P of b)P.key&&W.append(P.key,P.value);E=W.toString(),N={"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"}}const z=await fetch(w,{method:d,headers:N,body:E});if(!z.ok)throw new Fe(z.status,w,z.statusText);return z.json()},R=_.useMemo(()=>t?t.slice():g.slice(),[t,g]),h=Ae.default.useRef(new Set);_.useEffect(()=>{const u=R.map(p=>({s:p,url:(p.apiUrl||"").trim()})).filter(({url:p})=>!!p);if(u.length)for(const{s:p,url:d}of u){const b=`${p.id}|${d}`;h.current.has(b)||(h.current.add(b),C(w=>({...w,[p.id]:!0})),O(w=>({...w,[p.id]:""})),(async()=>{try{const w=await F(p);l(E=>({...E,[p.id]:w}))}catch(w){let E="Error desconocido";w instanceof Fe?E=`Error HTTP ${w.status} (${w.statusText}) en ${w.url}`:w instanceof SyntaxError?E="Respuesta no es JSON válido":w instanceof TypeError?E="Fallo de red / CORS / conexión":typeof w=="string"&&(E=w.toString()),O(N=>({...N,[p.id]:E}))}finally{C(w=>({...w,[p.id]:!1}))}})())}},[R]);const T=_.useMemo(()=>R.filter(u=>u.visible).sort((u,p)=>u.order-p.order),[R]),k=u=>Array.isArray(u)?u.map(p=>{const d={};for(const b of p.fields||[]){const w=(b.type||"string").toLowerCase();if(w==="number"){const E=String(b.value||"").trim();if(E!==""){const N=Number(E);Number.isNaN(N)||(d[b.name]=N)}}else if(w==="boolean")d[b.name]=String(b.value).toLowerCase()==="true";else if(w==="function"){const E=String(b.value||"").trim();if(E)try{const N=new Function(E);d[b.name]=N}catch(N){console.error(`❌ Error creando función en item '${b.name}':`,N)}}else d[b.name]=b.value}return d}):[],B=u=>{const p={};if(!Array.isArray(u))return p;for(const d of u){if(!d.name)continue;const b=(d.type||"string").toLowerCase();if(b==="number"){const w=String(d.value||"").trim();if(w!==""){const E=Number(w);Number.isNaN(E)||(p[d.name]=E)}}else if(b==="boolean")p[d.name]=String(d.value).toLowerCase()==="true";else if(b==="function"){const w=String(d.value||"").trim();if(w)try{const E=new Function(w);p[d.name]=E}catch(E){console.error(`❌ Error creando función en item '${d.name}':`,E)}}else p[d.name]=d.value}return p},$=(u,p,d)=>{const b=d?{...d}:{};if(p){const P=(p.variableName||"items").trim()||"items";return b[P]=p.arr||[],b}const w=u,E=Array.isArray(w),N=!E&&typeof w=="object"&&w!==null?w:void 0,z=N&&Array.isArray(N.lobby||N.items)?N.lobby||N.items:void 0,W=P=>E?w:z||P;return b.items=W(z||[]),b},y=u=>{var E;const p=!!((E=u.apiUrl)!=null&&E.trim()),d=p?x[u.id]:void 0;let b=u.props?{...u.props}:{};const w=B(u.manualScalarFields);if(Le.includes(u.componentKey))return{items:d,...b,...w};if(b={...b,...w},p)b=$(d,null,b);else if(u.dataMode==="manual"){const N=k(u.manualItems);if(b=$(null,{arr:N,variableName:u.variableName},b),u.variableName2&&u.manualItems2){const z=k(u.manualItems2),W=(u.variableName2||"items2").trim()||"items2";b[W]=z}}return b},j=(u,p,d)=>{const b={loading:"bg-blue-100 text-blue-800",error:"bg-red-100 text-red-800",component:"bg-yellow-100 text-yellow-800"};return e.jsx("div",{className:`mx-4 p-4 rounded ${b[p]}`,children:d},u)},L=u=>{var Q;const p=u.componentKey,d=Pa[p];if(!d)return console.warn(`No hay componente registrado para "${p}"`),j(u.id,"component",`Componente "${p}" no encontrado`);const b=!!((Q=u.apiUrl)!=null&&Q.trim()),w=b?x[u.id]:void 0,E=b?!!m[u.id]:!1,N=b?S[u.id]:"";if(b){if(E&&!w)return j(u.id,"loading",`Cargando datos desde ${u.apiUrl}...`);if(N&&!w)return j(u.id,"error",`Error cargando ${u.apiUrl}: ${N}`)}const z=y(u),P=new Set(["OraculoSeccionBanners","OraculoSeccionBonoBienvenida","OraculoSeccionCasinoEnVivo",I?"":"OraculoSeccionClubOlimpo"]).has(u.componentKey),D=I?120:24,G=P?{width:"100%",boxSizing:"border-box"}:{paddingLeft:D,paddingRight:D,width:"100%",boxSizing:"border-box"};return e.jsx("div",{style:G,className:"oraculo-section-wrapper",children:e.jsx(d,{...z})},u.id)};return c&&!t?r?e.jsx(r,{}):e.jsx("div",{children:"Cargando..."}):!c&&!t&&g.length===0?e.jsx("div",{className:"text-xs text-gray-500",children:"Sin secciones (Firestore)"}):e.jsx(U.Container,{className:"oli-font",maxWidth:!1,disableGutters:!0,sx:{backgroundColor:"#121212",position:"relative",pb:5,width:"100%",maxWidth:"100%",overflowX:"hidden"},children:e.jsx(U.Stack,{direction:"column",spacing:I?8:5,useFlexGap:!0,children:T.map(L)})})};exports.OraculoButton=V;exports.OraculoCarousel=Y;exports.OraculoCarouselDots=we;exports.OraculoClubOlimpoVisual=He;exports.OraculoEventCombinadasCard=Je;exports.OraculoEventEnVivoCard=Ye;exports.OraculoEventHeader=We;exports.OraculoEventLabel=Se;exports.OraculoEventLeague=je;exports.OraculoEventScore=Oe;exports.OraculoEventSemanaCard=Qe;exports.OraculoEventStatus=Ve;exports.OraculoEventStatusBadge=Ue;exports.OraculoEventTeamInfo=le;exports.OraculoGameCard=re;exports.OraculoGameRankCard=De;exports.OraculoGameSlide=Ee;exports.OraculoGridGroup=K;exports.OraculoLiveCasinoCard=Ge;exports.OraculoLogoMediosPago=_e;exports.OraculoPageLandingPreview=ft;exports.OraculoSeccionBanners=mt;exports.OraculoSeccionBonoBienvenida=rt;exports.OraculoSeccionCasino=ot;exports.OraculoSeccionCasinoEnVivo=at;exports.OraculoSeccionClubOlimpo=lt;exports.OraculoSeccionDestacados=et;exports.OraculoSeccionEventoCombinadas=ct;exports.OraculoSeccionEventoEnVivo=dt;exports.OraculoSeccionEventoSemana=ut;exports.OraculoSeccionMediosPago=pt;exports.OraculoSeccionTopJuegos=Ie;exports.OraculoSeccionVirtuales=st;exports.OraculoSectionTitle=X;exports.OraculoTopJuegoItem=Ie;exports.OraculoWelcomeBanner=ye;exports.default=ft;
|
|
19
|
+
`},rt=({headline:t,headline2:a,items:n,backgroundImageUrl:i})=>{const r=K.useCaptureInteraction(),s=wt.default("(max-width: 767px)"),o=n.length>1,d=v.useRef(null),g=v.useRef(null),l=v.useRef(!1),u=v.useRef(!1),[f,k]=v.useState(0),[b,E]=v.useState({isStart:!0,isEnd:!1});v.useEffect(()=>{const j=setTimeout(()=>{l.current=!0},500);return()=>clearTimeout(j)},[]);const S=v.useRef(b);v.useEffect(()=>{S.current=b},[b]);const O=v.useRef(!1),x=v.useRef(null),y=n==null?void 0:n[f],B=v.useMemo(()=>{var j,C;return(C=(j=y==null?void 0:y.backgroundImageUrl)!=null?j:i)!=null?C:""},[y,i]),_=Sa(B),T=!n||n.length===0,M=(j,C)=>{r({element:"welcome_banner_button",label:`OraculoSeccionBonoBienvenida - Banner button click: ${j.title||"OraculoSeccionBonoBienvenida - Banner "+(C+1)}`,target:"action",event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:"",banner_position:C+1,banner_total:(n==null?void 0:n.length)||0},tags:{banner_title:j.title||"no_title",button_text:j.buttonText||"no_text"}}),j.onButtonClick&&j.onButtonClick()},F=j=>{if(!l.current)return;if(u.current){u.current=!1;return}const C=n==null?void 0:n[j];r({element:"welcome_banner_carousel",label:`OraculoSeccionBonoBienvenida - Banner view: ${(C==null?void 0:C.title)||"OraculoSeccionBonoBienvenida - Banner "+(j+1)}`,target:"no_url",event_type:"view",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:"",slide_index:j+1,total_slides:(n==null?void 0:n.length)||0,interaction_type:"manual_slide"},tags:{banner_position:String(j+1),banner_title:(C==null?void 0:C.title)||"no_title"}})};v.useEffect(()=>{const j=g.current;if(!j)return;const C=6,A=380,p=m=>{var I,$;if(T||m.ctrlKey||O.current)return;const c=m.deltaX,h=m.deltaY;if(Math.abs(c)<=Math.abs(h)||Math.abs(c)<C)return;const w=c>0;w&&S.current.isEnd||!w&&S.current.isStart||(m.preventDefault(),O.current=!0,w?(I=d.current)==null||I.next():($=d.current)==null||$.prev(),x.current&&window.clearTimeout(x.current),x.current=window.setTimeout(()=>{O.current=!1},A))};return j.addEventListener("wheel",p,{passive:!1}),()=>{j.removeEventListener("wheel",p),x.current&&window.clearTimeout(x.current)}},[T]);const z=(j,C,A)=>{var c,h;const p=(c=j.headline)!=null?c:t,m=(h=j.headline2)!=null?h:a;return C?e.jsxs(N.default,{sx:{maxWidth:1200,mx:"auto",px:15,display:"grid",gridTemplateColumns:"260px minmax(0, 1fr)",alignItems:"center",columnGap:6},children:[(p||m)&&e.jsx(N.default,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-start",minHeight:"100%"},children:e.jsxs(N.default,{sx:{...Be,textAlign:"left",mb:0},children:[p&&e.jsx(X.default,{component:"span",sx:Ne,children:p}),m&&e.jsxs(e.Fragment,{children:[e.jsx("br",{}),e.jsx(X.default,{component:"span",sx:Re,children:m})]})]})}),e.jsx(N.default,{sx:{display:"flex",justifyContent:"center",alignItems:"center"},children:e.jsx(N.default,{sx:{width:"100%",maxWidth:600,mx:"auto"},children:e.jsx(ye,{...j,onButtonClick:()=>M(j,A),variant:"large"})})})]}):e.jsxs(N.default,{sx:{textAlign:"center"},children:[(p||m)&&e.jsxs(N.default,{sx:Be,children:[p&&e.jsx(X.default,{component:"span",sx:Ne,children:p}),m&&e.jsxs(e.Fragment,{children:[e.jsx("br",{}),e.jsx(X.default,{component:"span",sx:Re,children:m})]})]}),e.jsx(N.default,{sx:{display:"flex",justifyContent:"center"},children:e.jsx(ye,{...j,onButtonClick:()=>M(j,A),variant:"small"})})]})};return e.jsxs(N.default,{component:"section",sx:_,children:[e.jsx("div",{ref:g,style:{width:"100%"},children:e.jsx(Q,{ref:d,items:n,perPage:1,gap:"0px",options:{autoWidth:!1},renderItem:(j,C)=>e.jsx(N.default,{sx:{width:"100%"},children:z(j,!s,C)}),onMove:({index:j,isStart:C,isEnd:A})=>{k(j),typeof C=="boolean"&&typeof A=="boolean"&&E({isStart:C,isEnd:A}),F(j)}})}),o&&e.jsx(N.default,{sx:{mt:2,display:"flex",justifyContent:"center"},children:e.jsx(we,{total:n.length,active:f,onSelect:j=>{var C;r({element:"welcome_banner_dots",label:`Dot navigation: Banner ${j+1}`,target:"no_url",event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:"",dot_index:j+1,total_dots:n.length},tags:{navigation_type:"dot_click"}}),k(j),(C=d.current)==null||C.go(j)}})})]})},lt=({className:t="",fullBleed:a=!0,items:n,selectedIndex:i=0,ariaLabel:r})=>{const s=v.useRef(null),o=v.useRef(null),d=K.useCaptureInteraction();if(!n)return null;const g=()=>{d({element:"club_olimpo_button",label:"OraculoSeccionClubOlimpo - Click: Club Olimpo",target:"https://www.olimpo.bet/conoce-club-olimpo",event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{section:"OraculoSeccionClubOlimpo"}}),typeof globalThis!="undefined"&&globalThis.location&&globalThis.location.assign("https://www.olimpo.bet/conoce-club-olimpo")},l=Array.isArray(n)?n[i]:n;v.useLayoutEffect(()=>{if(!s.current||!o.current||typeof ResizeObserver=="undefined")return;const f=s.current,k=o.current,b=()=>{f.style.setProperty("--orc-co-bottomH",`${k.offsetHeight+16}px`)},E=new ResizeObserver(b);return E.observe(k),b(),()=>E.disconnect()},[]);const u=["orc-co-wrap",a?"orc-co-fullBleed":"",t].filter(Boolean).join(" ");return e.jsx("section",{ref:s,className:u,"aria-label":r||l.imgAlt||"Club Olimpo",children:e.jsx("div",{ref:o,children:e.jsx(He,{text:l.text,onClick:g,imgAlt:l.imgAlt,imgSrcMobile:l.imgMobile,imgSrcDesktopBg:l.imgDesktopBg,imgSrcDesktopLogo:l.imgDesktopLogo})})})},ja="oraculo__OraculoSeccionEventoCombinadas-module__controls___Zsta4",Oa={controls:ja};function ct({items:t,title:a="Combinadas del Olimpo",iconUrl:n="https://stg-www.contodobet.com/static/img/landing/EventoCombinada/rayoIcon.svg",onViewMore:i,className:r=""}){const s=v.useRef(null),[o,d]=v.useState({isStart:!0,isEnd:!1}),[g,l]=v.useState([]),u="https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/group/prepackcoupon.json?lang=es_PE&market=PE&client_id=200&channel_id=1&ncid=1764284658793&prePackCouponTags=CUSTOM",f=()=>{var y;(y=s.current)==null||y.prev()},k=()=>{var y;(y=s.current)==null||y.next()},b=()=>{ra()};async function E(){var y,B,_;try{const M=await(await fetch(u)).json(),F=(_=(B=(y=M==null?void 0:M.group)==null?void 0:y.groups)==null?void 0:B[0])==null?void 0:_.id;if(!F){console.error("Could not extract group ID");return}const z=`https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/prepackcoupon/eventgroup/${F}.json?lang=es_PE&market=PE&client_id=200&channel_id=1&ncid=1764283566783&prePackCouponTags=CUSTOM`,C=await(await fetch(z)).json();l(O(C.events,C.betOffers,C.prePackCoupons))}catch(T){console.error("loadDataEventSpecial error:",T)}}function S(y){var B,_;return(B=y.outcome)!=null&&B.id?[y.outcome.id]:y.type==="BET_BUILDER"&&((_=y.group)!=null&&_.groups)?y.group.groups.flatMap(T=>{var M,F;return(F=(M=T.outcomes)==null?void 0:M.map(z=>z.id))!=null?F:[]}):[]}function O(y,B,_){return _.map(T=>{var m,c,h,w,I,$;const M=T.prePackCouponRows.flatMap(R=>S(R).map(L=>({eventId:R.eventId,outcomeId:L}))),F=new Set(M.map(R=>R.eventId)),z=new Set(M.map(R=>R.outcomeId)),j=new Map(M.map((R,q)=>[R.outcomeId,q])),C={};for(const R of B){if(!F.has(R.eventId))continue;const q=R.outcomes.filter(L=>z.has(L.id)).map(L=>({...L,position:j.get(L.id)}));q.length&&((c=C[m=R.eventId])!=null||(C[m]=[]),C[R.eventId].push({...R,outcomes:q}))}const A=y.filter(R=>F.has(R.id)).map(R=>{var q;return{...R,betoffers:(q=C[R.id])!=null?q:[]}}),p=($=(I=(w=(h=T.prePackCouponBets)==null?void 0:h[0])==null?void 0:w.odds)==null?void 0:I.decimal)!=null?$:null;return{couponId:T.id,status:T.status,combinadoTotal:p,events:A}})}v.useEffect(()=>{E()},[]);const x=r||void 0;return!g||g.length===0?null:e.jsx("section",{className:x,style:{width:"100%",boxSizing:"border-box"},children:e.jsxs(U.default,{direction:"column",spacing:1.5,useFlexGap:!0,children:[e.jsxs(H,{spacing:1.5,columns:"1fr auto ",justify:"start",children:[e.jsx(Y,{title:a,iconUrl:n,size:"md"}),e.jsxs("div",{className:Oa.controls,children:[e.jsxs(H,{spacing:1,columns:"auto auto",children:[e.jsx(W,{ariaLabel:"Anterior",variant:"secondary",iconOnly:!0,leftIcon:e.jsx(se.ChevronLeftRounded,{}),onClick:f,disabled:o.isStart}),e.jsx(W,{ariaLabel:"Siguiente",variant:"secondary",iconOnly:!0,rightIcon:e.jsx(se.ChevronRightRounded,{}),onClick:k,disabled:o.isEnd})]}),e.jsx(W,{variant:"secondary",onClick:b,children:"Ver más"})]})]}),e.jsx(Q,{ref:s,items:g.filter(y=>y.combinadoTotal!==null),perPage:void 0,gap:"16px",options:{autoWidth:!0,trimSpace:"move"},useIndexAsKey:!0,enableHorizontalWheel:!0,breakpoints:{768:{perPage:1.2,gap:"12px",padding:{left:"0px",right:"0px"}}},renderItem:y=>e.jsx(Je,{coupon:y}),onMove:({isStart:y,isEnd:B})=>d({isStart:y,isEnd:B})})]})})}function Ca({}){return e.jsx("div",{className:Xe.cardWrapper,children:e.jsxs(U.default,{direction:"column",spacing:1,children:[e.jsxs(U.default,{spacing:1,direction:"row",children:[e.jsx(P.default,{variant:"text",width:"60%",height:24}),e.jsx(P.default,{variant:"text",width:"39%",height:24})]}),e.jsxs(U.default,{spacing:8,direction:"row",justifyContent:"center",alignItems:"center",children:[e.jsx(P.default,{variant:"circular",width:32,height:40}),e.jsx(P.default,{variant:"text",width:40,height:40}),e.jsx(P.default,{variant:"circular",width:32,height:40})]}),e.jsxs(U.default,{spacing:8,direction:"row",justifyContent:"center",alignItems:"center",children:[e.jsx(P.default,{variant:"text",width:32,height:16}),e.jsx(P.default,{variant:"text",width:40,height:16}),e.jsx(P.default,{variant:"text",width:32,height:16})]}),e.jsxs(U.default,{spacing:2,direction:"row",children:[e.jsx(P.default,{variant:"rounded",width:88,height:16}),e.jsx(P.default,{variant:"rounded",width:88,height:16}),e.jsx(P.default,{variant:"rounded",width:88,height:16})]}),e.jsxs(U.default,{spacing:2,direction:"row",children:[e.jsx(P.default,{variant:"rounded",width:88,height:32}),e.jsx(P.default,{variant:"rounded",width:88,height:32}),e.jsx(P.default,{variant:"rounded",width:88,height:32})]})]})})}const Ea="oraculo__FadeItemWrapper-module__fadeWrapper___kFOH4",Ia={fadeWrapper:Ea};function me({children:t}){return e.jsx("div",{className:Ia.fadeWrapper,children:t})}function dt({items:t,title:a="En vivo",iconUrl:n="https://stg-www.contodobet.com/static/img/landing/EventoEnVivo/icon.svg",onViewMore:i,className:r=""}){const s="https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/listView/football/all/all/all/in-play.json?channel_id=3&channel_id=3&client_id=200&client_id=200&competitionId=undefined&lang=es_PE&lang=es_PE&market=PE&market=PE&useCombined=true&useCombinedLive=true",o=v.useRef(null),[d,g]=v.useState({isStart:!0,isEnd:!1}),[l,u]=v.useState(null),[f,k]=v.useState({}),[b,E]=v.useState({start:null,end:null}),S=v.useRef(!1),[O,x]=v.useState(null),y=v.useRef(!1),B=K.useCaptureInteraction(),_=Ze(b,300),T=()=>{var m;B({element:"evento_en_vivo_prev",label:"OraculoSeccionEventoEnVivo - Anterior",target:"prev",event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{section:"OraculoSeccionEventoEnVivo"}}),(m=o.current)==null||m.prev()},M=()=>{var m;B({element:"evento_en_vivo_next",label:"OraculoSeccionEventoEnVivo - Siguiente",target:"next",event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{section:"OraculoSeccionEventoEnVivo"}}),(m=o.current)==null||m.next()},F=()=>{B({element:"evento_en_vivo_view_more",label:"OraculoSeccionEventoEnVivo - Ver más",target:"ver_mas",event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{section:"OraculoSeccionEventoEnVivo"}}),ia()},z=["esports","cyber"],j=m=>m.filter(c=>{var w;if(c.event.sport!=="FOOTBALL")return!1;const h=((w=c.event.group)==null?void 0:w.toLowerCase())||"";return!z.some(I=>h.includes(I))}),C=v.useCallback(async()=>{var m;try{let c=O;if(!y.current&&O===null){y.current=!0;try{const q=await fetch("https://api.mktolimpo.com/api/kambi/eventos/orden"),L=q.ok?await q.json():null;c=((m=L==null?void 0:L.data)==null?void 0:m.event_ids)||[]}catch{c=[]}x(c)}const w=await(await fetch(s)).json(),I=j(w.events);if(!c||c.length===0){u(I);return}const $=new Map(c.map((q,L)=>[String(q),L])),R=[...I].sort((q,L)=>{const D=$.get(String(q.event.id)),G=$.get(String(L.event.id));return D!==void 0&&G!==void 0?D-G:D!==void 0?-1:G!==void 0?1:0});u(R)}catch(c){console.error(c)}},[O]);v.useEffect(()=>{C();const m=setInterval(C,2e4);return()=>clearInterval(m)},[C]),v.useEffect(()=>{if(_.start===null||_.end===null||!(l!=null&&l.length)||S.current)return;const m=3,c=Math.max(0,_.start-m),h=Math.min(l.length-1,_.end+m),w=l.slice(c,h+1).map(I=>I==null?void 0:I.event.id).filter(Boolean).filter(I=>f[I]===void 0);w.length&&(S.current=!0,Ke(w).then(I=>{k($=>({...$,...I.events}))}).catch(I=>{console.error("Jersey fetch error",I)}).finally(()=>{S.current=!1}))},[_,l,f]);const A=r||void 0,p=l===null;return!p&&l.length===0?null:e.jsx("section",{className:A,style:{width:"100%",boxSizing:"border-box"},children:e.jsxs(U.default,{direction:"column",spacing:1.5,useFlexGap:!0,children:[e.jsxs(H,{spacing:1.5,columns:"1fr auto ",justify:"start",children:[e.jsx(Y,{title:a,iconUrl:n,size:"md"}),e.jsxs("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[e.jsxs(H,{spacing:1,columns:"auto auto",children:[e.jsx(W,{ariaLabel:"Anterior",variant:"secondary",iconOnly:!0,leftIcon:e.jsx(se.ChevronLeftRounded,{}),onClick:T,disabled:d.isStart}),e.jsx(W,{ariaLabel:"Siguiente",variant:"secondary",iconOnly:!0,rightIcon:e.jsx(se.ChevronRightRounded,{}),onClick:M,disabled:d.isEnd})]}),e.jsx(W,{variant:"secondary",onClick:F,children:"Ver más"})]})]}),e.jsx(Q,{ref:o,items:p?Array(4).fill({}):l.slice(0,20),perPage:void 0,enableHorizontalWheel:!0,gap:"16px",options:{autoWidth:!0,trimSpace:"move"},breakpoints:{400:{gap:"4px",focus:"center"},768:{gap:"8px",focus:"center"},1024:{gap:"10px",focus:"center"}},renderItem:m=>{var w;const c=((w=m.event)==null?void 0:w.id)||m.eventId,h=c in f?f[c]:void 0;return p?e.jsx(me,{children:e.jsx(Ca,{})}):e.jsx(me,{children:e.jsx(Ye,{...m,jersey:h})})},onMove:({isStart:m,isEnd:c,visibleStart:h,visibleEnd:w})=>{g({isStart:m,isEnd:c}),E({start:h,end:w})}})]})})}function Ta(){return e.jsxs("div",{className:ne.cardContainer,children:[e.jsx(je,{title:""}),e.jsx("div",{className:ne.cardBackground,children:e.jsxs(U.default,{direction:"column",spacing:{xs:.5,md:1},useFlexGap:!0,children:[e.jsxs(U.default,{spacing:8,direction:"row",justifyContent:"center",alignItems:"center",children:[e.jsx(P.default,{variant:"circular",width:48,height:48}),e.jsx(P.default,{variant:"circular",width:48,height:48})]}),e.jsxs(U.default,{direction:"column",spacing:{xs:.5,md:1},useFlexGap:!0,children:[e.jsxs(U.default,{spacing:8,direction:"row",justifyContent:"center",alignItems:"center",children:[e.jsx(P.default,{variant:"text",width:80,height:12}),e.jsx(P.default,{variant:"text",width:80,height:12})]}),e.jsx(U.default,{spacing:8,direction:"row",justifyContent:"center",alignItems:"center",children:e.jsx(P.default,{variant:"text",width:160,height:12})}),e.jsxs(U.default,{direction:"row",spacing:1,children:[e.jsx(P.default,{variant:"text",width:80,height:16}),e.jsx(P.default,{variant:"text",width:80,height:16}),e.jsx(P.default,{variant:"text",width:80,height:16})]}),e.jsx("div",{className:ne.jugadas,children:e.jsxs(U.default,{direction:"row",spacing:1,children:[e.jsx(P.default,{variant:"rounded",width:80,height:32}),e.jsx(P.default,{variant:"rounded",width:80,height:32}),e.jsx(P.default,{variant:"rounded",width:80,height:32})]})})]})]})})]})}const ka="oraculo__OraculoSeccionEventoSemana-module__wrapper___eqVq-",Ma="oraculo__OraculoSeccionEventoSemana-module__container___5yFQs",Ba="oraculo__OraculoSeccionEventoSemana-module__buttonWrapper___-6IDT",xe={wrapper:ka,container:Ma,buttonWrapper:Ba};async function Na(t,a=2,n){const i=[];for(let r=0;r<t.length;r+=a){if(n.aborted)throw new DOMException("Aborted","AbortError");const s=t.slice(r,r+a),o=await Promise.all(s.map(d=>fetch(d,{signal:n}).then(g=>g.json())));i.push(...o)}return i}function Ra(t){return[...t].sort((a,n)=>new Date(a.start).getTime()-new Date(n.start).getTime())}function $a(t){const a=new Date,n=new Date(a.getTime()+480*60*60*1e3);return t.filter(i=>{if(!i.start)return!1;const r=new Date(i.start);return r>=a&&r<=n})}function Fa(t,a){const i=a.filter(r=>{var s;return((s=r.betOfferType)==null?void 0:s.id)===2}).reduce((r,s)=>(r[s.eventId]||(r[s.eventId]=[]),r[s.eventId].push(s),r),{});return t.filter(r=>i[r.id]).map(r=>({...r,outcome:i[r.id]}))}function ut({items:t,title:a="En vivo",iconUrl:n,onViewMore:i,className:r=""}){const s=K.useCaptureInteraction(),o="https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/group.json?channel_id=1&client_id=200&lang=es_PE&market=PE",d=v.useRef(null),[g,l]=v.useState({isStart:!0,isEnd:!1}),[u,f]=v.useState(null);v.useRef(new Set);const[k,b]=v.useState({}),[E,S]=v.useState({start:null,end:null}),O="channel_id=1&client_id=200&competitionId=undefined&lang=es_PE&market=PE&useCombined=true",x=Ze(E,250),y=v.useRef(!1),B=()=>{s({element:"evento_semana_view_more",label:"OraculoSeccionEventoSemana - Ver más",target:"ver_mas",event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{section:"OraculoSeccionEventoSemana"}}),sa()};async function _(j){var p,m;let C=[],A=[];try{const c=await fetch("https://api.mktolimpo.com/api/kambi/eventos/orden",{signal:j});if(c.ok){const h=await c.json();C=((p=h==null?void 0:h.data)==null?void 0:p.group_ids)||[],A=((m=h==null?void 0:h.data)==null?void 0:m.event_ids)||[]}}catch(c){c.name!=="AbortError"&&console.warn("Order API not available, using default group order");return}try{const w=(await(await fetch(o,{signal:j})).json()).group.groups.find(D=>D.englishName==="Football");if(!w||!Array.isArray(w.groups)){console.error("Football groups not found");return}let I=[...w.groups];if(C.length>0){const D=new Map(C.map((G,ee)=>[G,ee]));I.sort((G,ee)=>{const pe=D.get(String(G.id)),fe=D.get(String(ee.id));return pe!==void 0&&fe!==void 0?pe-fe:pe!==void 0?-1:fe!==void 0?1:0})}const R=I.slice(0,5),q=D=>{const G="https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/listView/football";if(D.groups&&D.groups.length>0){const ee=D.groups[0];return[`${G}/${D.termKey}/${ee.termKey}/all/matches.json?${O}`]}return[`${G}/${D.termKey}/all/all/matches.json?${O}`]},L=R.flatMap(q);T(L,A,j)}catch(c){console.error(c)}}async function T(j,C,A){try{const p=await Na(j,2,A);let m=[],c=[];p.forEach($=>{$.events&&(m.push(...$.events.map(R=>R.event)),c.push(...$.events.flatMap(R=>R.betOffers||[])))});const h=Fa(m,c),w=Ra($a(h));let I=w;if(C.length>0){const $=new Map(C.map((R,q)=>[String(R),q]));I=[...w].sort((R,q)=>{const L=$.get(String(R.id)),D=$.get(String(q.id));return L!==void 0&&D!==void 0?L-D:L!==void 0?-1:D!==void 0?1:0})}if(A.aborted)return;f(I)}catch(p){console.error("Error loading events:",p)}}v.useEffect(()=>{if(!t)return;const j=new AbortController;return _(j.signal),()=>{j.abort()}},[t]),v.useEffect(()=>{if(x.start===null||x.end===null||!(u!=null&&u.length)||y.current)return;const j=2,C=Math.max(0,x.start-j),A=Math.min(u.length-1,x.end+j),p=u.slice(C,A+1).map(c=>c==null?void 0:c.id).filter(Boolean).filter(c=>k[c]===void 0);if(!p.length)return;let m=!1;return y.current=!0,(async()=>{try{const c=await Ke(p);m||b(h=>({...h,...c.events}))}catch(c){console.error("Jersey fetch error",c)}finally{y.current=!1}})(),()=>{m=!0}},[x,u]);const M=r||void 0,F={paddingLeft:0,width:"100%",boxSizing:"border-box"},z=u===null;return!z&&u.length===0?null:e.jsx("section",{className:M,style:F,children:e.jsxs("div",{className:xe.wrapper,children:[e.jsx("div",{className:xe.container,children:e.jsxs(U.default,{direction:"column",spacing:1.5,useFlexGap:!0,children:[e.jsx(Y,{title:"Eventos de la semana"}),e.jsx("div",{className:xe.buttonWrapper,children:e.jsx(W,{variant:"secondary",size:"lg",fullWidth:!0,onClick:()=>{B()},children:"Ver más"})})]})}),e.jsx("div",{style:{minWidth:"180px"},children:e.jsx(Q,{ref:d,items:z?Array(6).fill({}):u.slice(0,20),perPage:3.5,gap:"16px",enableHorizontalWheel:!0,options:{autoWidth:!0,trimSpace:!0},breakpoints:{1024:{perPage:1.4,gap:"8px",focus:"center",padding:{left:"8px",right:"8px"}}},renderItem:j=>{const C=j.id,A=C in k?k[C]:void 0;return z?e.jsx(me,{children:e.jsx(Ta,{})}):e.jsx(me,{children:e.jsx(Qe,{event:j,jersey:A})})},onMove:({isStart:j,isEnd:C,visibleStart:A,visibleEnd:p})=>{l({isStart:j,isEnd:C}),S({start:A,end:p}),s({element:"evento_semana_carousel_slide",label:"OraculoSeccionEventoSemana - Slide Carousel",target:"carousel",event_type:"slide",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:"",visibleStart:A,visibleEnd:p,isStart:j,isEnd:C},tags:{section:"OraculoSeccionEventoSemana"}})}})})]})})}function mt({backgrounds:t,items:a}){const[n,i]=v.useState(0),r=K.useCaptureInteraction(),s=v.useRef(null),o=v.useRef(!1),d=v.useRef(!1),g=(t==null?void 0:t.length)||1,l=!t||t.length===0;v.useEffect(()=>{const b=setTimeout(()=>{o.current=!0},500);return()=>clearTimeout(b)},[]);const u=(b,E)=>{r({element:"banner_carousel",label:`OraculoSeccionBanners - Banner click: Banner ${E+1}`,target:b.href||"no_url",event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:"",banner_position:E+1,banner_total:(t==null?void 0:t.length)||0},tags:{banner_type:"carousel",banner_target:"_self",banner_url:b.href||"no_url"}})},f=b=>{if(r({element:"banner_menu_item",label:`OraculoSeccionBanners - Menu item click: ${b.label||b.id}`,target:b.href||"action",event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:"",item_id:b.id},tags:{item_label:b.label||"no_label"}}),b.onClick){b.onClick();return}b.href&&typeof globalThis!="undefined"&&globalThis.location&&globalThis.location.assign(b.href)},k=b=>{var S;const E=(b%g+g)%g;if(i(E),!!o.current){if(d.current){d.current=!1;return}r({element:"banner_carousel",label:`OraculoSeccionBanners - Banner view: Slide ${E+1}`,target:((S=t==null?void 0:t[E])==null?void 0:S.href)||"no_url",event_type:"view",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:"",slide_index:E+1,total_slides:g,interaction_type:"manual_slide"},tags:{banner_position:String(E+1)}})}};return v.useEffect(()=>{if(l||!t||t.length<=1)return;const b=window.setInterval(()=>{var E;d.current=!0,(E=s.current)==null||E.next()},5e3);return()=>window.clearInterval(b)},[l,t==null?void 0:t.length]),e.jsxs(V.Box,{component:"section",sx:{position:"relative",overflow:"visible"},children:[e.jsxs(V.Box,{sx:{position:"relative",height:{xs:300,sm:360,md:420},borderRadius:0,overflow:"hidden"},children:[e.jsx(Q,{ref:s,items:t,perPage:1,gap:"0px",enableHorizontalWheel:!0,options:{type:"loop",perMove:1,pagination:!1,arrows:!1,drag:!0,focus:"center"},onMove:({index:b})=>{const E=(b%g+g)%g;i(E),k(b)},renderItem:(b,E)=>{var S,O;return e.jsxs(V.Box,{component:"a",href:b.href,target:(S=b.target)!=null?S:"_self",rel:b.target==="_blank"?"noopener noreferrer":void 0,onClick:()=>{u(b,E)},sx:{position:"relative",height:{xs:300,sm:360,md:420},display:"block",textDecoration:"none",cursor:"pointer"},children:[e.jsxs(V.Box,{component:"picture",sx:{position:"absolute",inset:0,lineHeight:0},children:[e.jsx("source",{srcSet:b.desktopSrc,media:"(min-width:800px)"}),e.jsx("source",{srcSet:b.mobileSrc,media:"(max-width:799px)"}),e.jsx(V.Box,{component:"img",src:(O=b.fallbackSrc)!=null?O:b.desktopSrc,alt:"","aria-hidden":!0,loading:"lazy",sx:{width:"100%",height:"100%",objectFit:"cover",display:"block"}})]}),e.jsx(V.Box,{sx:{position:"absolute",inset:0,pointerEvents:"none","&::before":{content:'""',position:"absolute",left:0,right:0,bottom:0,top:"40%",background:"linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(18,18,18,0.85) 80%, #121212 100%)"}}})]})}}),e.jsx(V.Box,{sx:{position:"absolute",left:0,right:0,bottom:72,display:"flex",justifyContent:"center",zIndex:2},children:e.jsx(we,{total:g,active:n})})]}),e.jsx(V.Box,{sx:{position:"absolute",bottom:{xs:-12,sm:0},left:120,right:120,"@media (max-width:1024px)":{left:24,right:24},backgroundColor:"#363636",borderRadius:2,p:1.5,display:"flex",justifyContent:"space-around",alignItems:"center",boxShadow:"0 10px 24px rgba(0,0,0,.35)",zIndex:3},children:a==null?void 0:a.map(b=>e.jsxs(V.Box,{sx:{display:"flex",flexDirection:{xs:"column",md:"row"},alignItems:"center",justifyContent:"center",gap:{xs:.5,md:1},color:"#FFFFFF",minWidth:0,cursor:b.onClick||b.href?"pointer":"default",whiteSpace:"nowrap"},onClick:()=>f(b),children:[b.icon&&e.jsx(V.Box,{component:"img",src:b.icon,alt:b.label||`icon-${b.id}`,sx:{width:{xs:20,sm:22,md:24},height:{xs:20,sm:22,md:24},objectFit:"contain"}}),e.jsx(V.Typography,{sx:{fontSize:{xs:10,sm:11,md:12},fontWeight:600,color:"#E0E0E0",textAlign:"center"},children:b.label})]},b.id))})]})}const La=[{src:"https://stg-www.contodobet.com/static/img/landing/MediosPago/IBK.svg",alt:"Interbank"},{src:"https://stg-www.contodobet.com/static/img/landing/MediosPago/Yape.svg",alt:"Yape"},{src:"https://stg-www.contodobet.com/static/img/landing/MediosPago/BCP.png",alt:"BCP"},{src:"https://stg-www.contodobet.com/static/img/landing/MediosPago/pagoEfectivo.png",alt:"PagoEfectivo"},{src:"https://stg-www.contodobet.com/static/img/landing/MediosPago/tupay.svg",alt:"Tupay"},{src:"https://stg-www.contodobet.com/static/img/landing/MediosPago/monnet.svg",alt:"Monnet"},{src:"https://stg-www.contodobet.com/static/img/landing/MediosPago/niubiz.svg",alt:"Niubiz"}];function pt({title:t="Medios de pago",items:a=La}){const n=Math.ceil(a.length/2),i=a.slice(0,n),r=a.slice(n);return e.jsxs(V.Box,{component:"section","aria-labelledby":"mp-title",sx:{color:"#fff"},children:[e.jsx(V.Typography,{id:"mp-title",variant:"h6",sx:{fontWeight:800,fontSize:{xs:20,md:32},textAlign:"center",mb:1.5},children:t}),e.jsx(V.Box,{sx:{width:"288px",height:"2px",mx:"auto",mb:3,opacity:.95,filter:"blur(0.2px)",background:"linear-gradient(90deg, rgba(0,0,0,0) 0%, #1dd75b 18%, #23d46b 50%, #1dd75b 82%, rgba(0,0,0,0) 100%)"}}),e.jsxs(V.Stack,{spacing:{xs:2,md:3},alignItems:"center",children:[e.jsx(V.Stack,{direction:"row",justifyContent:"center",alignItems:"center",gap:{xs:2,md:3},flexWrap:"wrap",children:i.map((s,o)=>e.jsx(_e,{...s},`${s.alt}-${s.src}-${o}`))}),e.jsx(V.Stack,{direction:"row",justifyContent:"center",alignItems:"center",gap:{xs:2,md:3},flexWrap:"wrap",children:r.map((s,o)=>e.jsx(_e,{...s},`${s.alt}-${s.src}-${o}`))})]})]})}const qa={OraculoSeccionDestacados:et,OraculoSeccionTopJuegos:Ie,OraculoSeccionCasinoEnVivo:at,OraculoSeccionCasino:ot,OraculoSeccionVirtuales:st,OraculoSeccionClubOlimpo:lt,OraculoSeccionBonoBienvenida:rt,OraculoSeccionBanners:mt,OraculoSeccionMediosPago:pt,OraculoSeccionEventoEnVivo:dt,OraculoSeccionEventoSemana:ut,OraculoSeccionEventoCombinadas:ct},$e={sections:[{variableName2:"backgrounds",updatedAt:"2026-01-22T04:11:09.501Z",variableName:"items",dataMode:"manual",title:"Banners",visible:!0,id:9,manualItems:[{id:"724a1dc0-d55b-4443-a580-cad22e328536",fields:[{type:"string",id:"abb2c3d6-d5c5-47ee-8ffa-c764a8bc731e",isImage:!1,required:!0,value:"1",name:"id"},{name:"label",isImage:!1,value:"POR INICIAR",required:!1,id:"549c02bf-56b5-4652-93d9-46b9451bac39",type:"string"},{type:"string",id:"c6538242-1974-4bed-aed3-703a111987b5",maxSizeMB:.2,required:!0,isImage:!0,value:"https://stg-www.contodobet.com/static/img/landing/Banner/clock.svg",name:"icon"},{id:"7d564f31-69ff-4f32-983b-46d28ced4a18",type:"string",required:!1,value:"https://www.olimpo.bet/deportes#starting-soon",isImage:!1,name:"href"}]},{fields:[{type:"string",isImage:!1,id:"45c50e08-560e-42cb-8be1-e9722f69c8a0",required:!0,name:"id",value:"2"},{type:"string",name:"label",isImage:!1,value:"EXPLORAR",required:!1,id:"2eec0f3d-0126-4960-8ec0-17cc92b5eb43"},{maxSizeMB:.2,isImage:!0,required:!0,value:"https://stg-www.contodobet.com/static/img/landing/Banner/icon2.svg",id:"5530e6bd-d2b2-4045-9371-722e23d96e14",type:"string",name:"icon"},{id:"7e5375ad-ecbb-4354-868a-b9323bcfd053",required:!1,name:"href",isImage:!1,type:"string",value:"https://www.olimpo.bet/deportes#sports/a-z"}],id:"ad0df0e2-c8ce-4524-b05a-2a29578aba11"},{id:"966bc1fc-0b1a-4a50-a4a2-964262922c3d",fields:[{isImage:!1,required:!0,id:"fc35f393-6692-4d25-a534-d51f4bd6d9a2",value:"3",name:"id",type:"string"},{isImage:!1,name:"label",value:"TOP JUEGOS",id:"a323e324-cf04-4178-b2c2-596d51564123",type:"string",required:!1},{type:"string",name:"icon",maxSizeMB:.2,value:"https://imagenesolimpo.s3.us-east-1.amazonaws.com/landing/1765981473501-icon3.svg",id:"6ede5815-7336-40fa-99f2-57ac6cb938cd",required:!0,isImage:!0},{required:!1,id:"26a486fd-31e6-4ed4-ab83-0f9a7bf6adc4",value:"https://www.olimpo.bet/casino",isImage:!1,name:"href",type:"string"}]},{id:"31e00ff9-f2dd-4942-bff3-919902fde880",fields:[{id:"fbec2c21-cf32-426f-910b-9c78a6cd714c",required:!0,isImage:!1,value:"4",name:"id",type:"string"},{isImage:!1,name:"label",type:"string",value:"MISIONES",required:!1,id:"2de80dbf-998b-4bc7-8383-4b69746ef155"},{type:"string",id:"686c62bd-ea86-4aeb-97b7-6f1488912066",required:!0,isImage:!0,maxSizeMB:.2,value:"https://stg-www.contodobet.com/static/img/landing/Banner/icon3.svg",name:"icon"},{id:"4b72f490-75e4-458e-a4b5-68f0736a25d4",isImage:!1,required:!1,type:"string",value:"https://www.olimpo.bet/private/misiones",name:"href"}]}],manualScalarFields:[{id:"7ee165a0-1268-4825-82df-9fef9857f535",type:"string",isImage:!1,value:"",required:!1,name:"groups"}],order:1,manualItems2:[{id:"13b35362-5695-4687-b6a8-645f8effd264",fields:[{isImage:!0,name:"desktopSrc",id:"eea41214-3c26-41e9-a908-d87327147396",maxSizeMB:2,type:"string",value:"https://imagenesolimpo.s3.us-east-1.amazonaws.com/landing/1768333229541-banner032.webp",required:!1},{maxSizeMB:2,isImage:!0,type:"string",name:"mobileSrc",id:"b393dfd3-c085-43e0-b68a-97cc04c06b6a",value:"https://stg-www.contodobet.com/static/img/landing/Banner/FondoMisiones.png",required:!1},{maxSizeMB:2,id:"2616b944-7cd1-4919-bc56-38ddb1a3093b",value:"https://stg-www.contodobet.com/static/img/landing/Banner/FondoMisiones.png",isImage:!0,name:"fallbackSrc",type:"string",required:!1},{name:"href",id:"54689f0e-f698-48a1-9d84-d13a397e24ea",required:!1,value:"",type:"string",isImage:!1}]},{id:"024f8130-91e1-4296-b826-cffa32ab1a96",fields:[{maxSizeMB:2,isImage:!0,value:"https://imagenesolimpo.s3.us-east-1.amazonaws.com/landing/1768852295069-ftd_web_captacion60.jpg",name:"desktopSrc",type:"string",required:!1,id:"1ebab59e-f706-4795-81cb-7accfc9f33d7"},{id:"bdebd1b0-d633-4b9e-9247-8e769cdc5b3b",type:"string",isImage:!0,required:!1,value:"https://imagenesolimpo.s3.us-east-1.amazonaws.com/landing/1768852302781-ftd_mobile_captacion60.jpg",maxSizeMB:2,name:"mobileSrc"},{isImage:!0,maxSizeMB:2,value:"https://imagenesolimpo.s3.us-east-1.amazonaws.com/landing/1768852309554-ftd_web_captacion60.jpg",id:"4bc20da7-b769-43dd-ba2e-ee9261ec73d7",name:"fallbackSrc",type:"string",required:!1},{id:"b85e737d-97ec-430c-b819-ba6e91a25372",type:"string",isImage:!1,required:!1,value:"",name:"href"}]},{id:"cbd24716-9770-418f-aa87-ae60e7e9e0ee",fields:[{maxSizeMB:2,required:!1,name:"desktopSrc",type:"string",value:"https://imagenesolimpo.s3.us-east-1.amazonaws.com/landing/1768831142801-ftd_web_tenismasters.jpg",id:"fa31486e-ec9b-4c99-b870-396d25bc66d6",isImage:!0},{isImage:!0,name:"mobileSrc",id:"954a4363-1373-44f2-b677-1bea66882838",maxSizeMB:2,type:"string",value:"https://imagenesolimpo.s3.us-east-1.amazonaws.com/landing/1768831155101-ftd_mobile_tenismasters.jpg",required:!1},{required:!1,type:"string",id:"be8789e8-cbf6-49c1-9ae5-ebc958404369",maxSizeMB:2,name:"fallbackSrc",isImage:!0,value:"https://imagenesolimpo.s3.us-east-1.amazonaws.com/landing/1768831198671-ftd_web_tenismasters.jpg"},{value:"https://www.olimpo.bet/torneos/Torneo_Olimpo_Tennis",type:"string",required:!1,isImage:!1,id:"142b0cb2-e255-4240-aea1-807a67321e34",name:"href"}]},{fields:[{required:!1,isImage:!0,id:"4414dbe4-67b3-428c-9d9d-920fff30956a",value:"https://imagenesolimpo.s3.us-east-1.amazonaws.com/landing/1768831210432-ftd_web_verano.jpg",type:"string",maxSizeMB:2,name:"desktopSrc"},{required:!1,isImage:!0,id:"b74d7582-94be-4608-8cdc-e6f8cab3e115",name:"mobileSrc",type:"string",value:"https://imagenesolimpo.s3.us-east-1.amazonaws.com/landing/1768831218073-ftd_mobile_verano.jpg",maxSizeMB:2},{id:"ada12745-3851-4a86-912c-2c9ec7c3e5de",maxSizeMB:2,value:"https://imagenesolimpo.s3.us-east-1.amazonaws.com/landing/1768831228250-ftd_web_verano.jpg",name:"fallbackSrc",type:"string",required:!1,isImage:!0},{value:"https://www.olimpo.bet/torneos/Endorphina_09012026_Casino",isImage:!1,required:!1,name:"href",type:"string",id:"e23e8b63-0ca4-436f-b53a-1bdf8d6442a6"}],id:"0d5ffdb1-d55f-47b6-9e61-e6b571bf2db2"},{id:"cf073698-ff54-4a9e-9c4f-c34b6987e8b5",fields:[{type:"string",isImage:!0,required:!1,value:"https://imagenesolimpo.s3.us-east-1.amazonaws.com/landing/1768831260900-ftd_web_virtuales.jpg",maxSizeMB:2,name:"desktopSrc",id:"1a1ef092-aff6-49c5-81be-7d76c6ac94e1"},{required:!1,value:"https://imagenesolimpo.s3.us-east-1.amazonaws.com/landing/1768831267161-ftd_mobile_virtuales.jpg",isImage:!0,type:"string",maxSizeMB:2,name:"mobileSrc",id:"901cc080-4907-47a8-8b2e-73a7b9fc27a3"},{type:"string",name:"fallbackSrc",isImage:!0,id:"8f97418b-6f27-4231-b6f8-e01e1d3c94f8",maxSizeMB:2,value:"https://imagenesolimpo.s3.us-east-1.amazonaws.com/landing/1768831274473-ftd_web_virtuales.jpg",required:!1},{type:"string",value:"https://www.olimpo.bet/torneos/Torneo_Lo_Mejor_De_Virtuales",required:!1,name:"href",isImage:!1,id:"a140f16d-8af9-474a-a77c-6ddc1651b3e5"}]}],componentKey:"OraculoSeccionBanners"},{visible:!0,dataMode:"url",apiUrl:"https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/listView/football/all/all/all/in-play.json?channel_id=3&channel_id=3&client_id=200&client_id=200&competitionId=undefined&lang=es_PE&lang=es_PE&market=PE&market=PE&useCombined=true&useCombinedLive=true%22",variableName:"items",apiParams:[],id:2,componentKey:"OraculoSeccionEventoEnVivo",order:2,manualScalarFields:[{isUrl:!1,id:"7fc591db-555b-49b2-a3ad-30aa66eff17b",required:!0,name:"title",type:"string",value:"En vivo"},{type:"string",value:"https://stg-www.contodobet.com/assets/img/home/EnVivo/icon.svg",name:"iconUrl",isUrl:!0,required:!1,id:"db4b6355-ed6c-4265-ad78-d8fffb660997"},{required:!1,value:"",type:"function",id:"e4647a65-2e60-4243-bab4-25b7ba8461f8",isUrl:!1,name:"onViewMore"},{id:"a16ab6c6-321c-4ebe-bd36-a85ad49edf3e",type:"string",isUrl:!1,required:!1,value:"",name:"className"}],title:"Eventos en vivo",apiMethod:"GET",updatedAt:"2026-01-22T04:11:09.501Z"},{visible:!0,manualScalarFields:[{name:"title",required:!0,value:"Casino",id:"c2046b5a-4d30-46ff-9513-e15a6e0b0a7e",isImage:!1,type:"string"},{required:!0,type:"string",maxSizeMB:.2,name:"iconUrl",isImage:!0,value:"https://stg-www.contodobet.com/static/img/landing/Casino/diamante.svg",id:"9c5964ca-ce84-4c47-86ec-b34d7f3a5793"},{id:"1c32ea69-598b-4f80-81e4-709d887c12c1",value:"true",name:"mosaicFirst",required:!1,type:"boolean",isImage:!1},{value:"4",type:"number",required:!1,name:"gridSize",id:"5c3c60eb-cf49-4083-ab83-67d65f829554",isImage:!1},{value:"",name:"groups",isImage:!1,id:"c4d4c4b9-0c93-4aca-a61f-042e52fd9254",required:!1,type:"string"}],variableName:"items",componentKey:"OraculoSeccionCasino",order:3,apiUrl:"https://wallet-pe.olimpo.bet/api/contents/getLobby",apiParams:[{value:"OLI",key:"company",id:"2af22a50-07e2-4a48-8569-90c79827f3e7"},{key:"lobby",id:"efa2def8-eeb4-4fcc-80f6-32c24e7804e6",value:"HOME_CASINO"}],id:4,updatedAt:"2026-01-22T04:11:09.501Z",apiMethod:"GET",dataMode:"url",title:"Casino"},{title:"Eventos Combinadas",id:1,updatedAt:"2026-01-22T04:11:09.501Z",apiParams:[],apiMethod:"GET",order:4,apiUrl:"https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/group/prepackcoupon.json?lang=es_PE&market=PE&client_id=200&channel_id=1&ncid=1764284658793&prePackCouponTags=CUSTOM",manualScalarFields:[{required:!0,id:"33e5944d-b5be-4971-8c10-65aa6b71051c",name:"title",type:"string",value:"Combinadas",isImage:!1},{id:"95cd1489-206c-4a72-b4bd-b65161089f73",isImage:!0,name:"iconUrl",value:"https://imagenesolimpo.s3.us-east-1.amazonaws.com/landing/1765894618836-frame181009.svg",type:"string",dimensions:"40x40",required:!1,maxSizeMB:.2},{name:"className",value:"",id:"af234a92-41ad-4ff1-bfbb-ac63a9af19f7",type:"string",isImage:!1,required:!1},{value:"",required:!1,name:"groups",isImage:!1,id:"52f226c8-6456-4395-b72d-d140af6fa46d",type:"string"}],dataMode:"url",variableName:"items",visible:!0,componentKey:"OraculoSeccionEventoCombinadas"},{updatedAt:"2026-01-22T04:11:09.501Z",apiUrl:"https://us1.offering-api.kambicdn.com/coupon/v2018/nexuspe/coupon/3935.json?lang=es_PE&market=PE&client_id=200&channel_id=1&ncid=1764401676636&startTime=2025-11-29T06:00:00.000Z&endTime=2026-06-25T15:00:00.000Z&minNoOfEvents=0&maxNoOfEvents=25&categoryGroup=list_view_competitions",dataMode:"url",title:"Eventos de la semana",order:5,apiParams:[],variableName:"items",apiMethod:"GET",visible:!0,id:3,componentKey:"OraculoSeccionEventoSemana",manualScalarFields:[{id:"7a3de844-5727-4043-be42-7f965e2aa249",isUrl:!1,value:"Eventos esta semana",required:!1,name:"title",type:"string"},{value:"",isUrl:!0,required:!1,id:"2895f65f-e75b-4116-958d-04d4c34f16fe",name:"iconUrl",type:"string"},{type:"function",required:!1,value:"",id:"d973d3ee-721e-4d76-888c-6ad8b7bb3414",isUrl:!1,name:"onViewMore"},{required:!1,type:"string",value:"",name:"className",id:"c062fe02-c069-49fb-aae6-d39aa3fde89c",isUrl:!1}]},{componentKey:"OraculoSeccionBonoBienvenida",visible:!1,order:6,manualScalarFields:[{id:"fec2252c-2c2d-448d-8775-9d073bd8def9",value:"Te damos la",name:"headline",type:"string",required:!1,isUrl:!1},{name:"headline2",required:!1,id:"17e045d1-8ddb-46bc-b3ae-ae0c7ffc5952",isUrl:!1,value:"bienvenida al club",type:"string"},{type:"string",required:!1,isUrl:!0,name:"backgroundImageUrl",value:"https://stg-www.contodobet.com/static/img/landing/Bonos/Fondobg.png",id:"cae601b0-ed5d-4b97-9e1f-1816d7986c6b"}],variableName:"items",title:"Bono Bienvenida",updatedAt:"2026-01-22T04:11:09.501Z",manualItems:[{id:"8677b338-7d12-4ba9-a95f-d34ed71d92b0",fields:[{value:"Recibe",type:"string",name:"title",isUrl:!1,required:!0,id:"e015fc5e-983e-4096-b82e-6d5ed9957dd5"},{value:"S/60",required:!1,name:"amount",type:"string",id:"00b69888-d8ee-4bae-943c-be4e0dead26b",isUrl:!1},{name:"subtitle",required:!1,isUrl:!1,id:"376cd731-4a20-4435-a5ee-351ac55d4351",value:"SIN ROLLOVER",type:"string"},{value:"Hazlo aquí",name:"buttonText",required:!0,id:"3b73cff5-cb30-4b00-9b41-305455334e56",type:"string",isUrl:!1},{isUrl:!0,type:"string",required:!0,name:"backgroundImage",value:"https://stg-www.contodobet.com/static/img/landing/Bonos/Fondo.png",id:"89710b59-2a6a-4de8-be9a-7d9274bad84b"},{isUrl:!1,name:"onButtonClick",value:"window.location='https://www.olimpo.bet/promociones/Adq_Recibe30Flex_AAP100'",type:"function",required:!1,id:"e7ceaadc-b203-4587-856b-b9015201a43f"}]},{fields:[{id:"81e1730c-0f9b-4ab9-a4df-f36c974ae99d",required:!0,type:"string",name:"title",value:"Regístrate y recibe",isUrl:!1},{required:!1,value:"S/40",name:"amount",type:"string",isUrl:!1,id:"c1e96d9b-e7c7-4bb7-a8db-b67c32dcae32"},{required:!1,isUrl:!1,name:"subtitle",value:"SIN ROLLOVER",type:"string",id:"93242ead-5f09-4966-9484-471b27859c31"},{id:"0d97802b-7aaf-4ae3-b513-8a5a469e5d5d",value:"Hazlo aquí",name:"buttonText",type:"string",isUrl:!1,required:!0},{required:!0,isUrl:!0,id:"541fcdc8-07a7-47b8-9a33-d22cb865823c",name:"backgroundImage",value:"https://stg-www.contodobet.com/static/img/landing/Bonos/Fondo.png",type:"string"},{isUrl:!1,name:"onButtonClick",id:"b8c4b96c-0807-4040-8c3e-8392fb278aab",required:!1,type:"function",value:"window.location='https://www.olimpo.bet/promociones/Adq_Recibe30Flex_AAP100'"}],id:"6707ce1d-064a-43af-8679-712c7235873a"}],id:11,dataMode:"manual"},{dataMode:"url",componentKey:"OraculoSeccionCasinoEnVivo",order:7,title:"Casino en vivo",updatedAt:"2026-01-22T04:11:09.501Z",id:12,apiUrl:"https://wallet-pe.olimpo.bet/api/contents/getLobby",apiMethod:"POST",manualScalarFields:[{isImage:!1,value:"Casino en vivo",type:"string",name:"title",id:"52e655b4-7259-4f7f-9017-dafe24247810",required:!0},{required:!1,isImage:!1,id:"e299d500-abdc-4577-bb38-1943b6f02dfd",name:"subtitle",type:"string",value:"Disfruta la emoción en tus juegos favoritos y gana en tiempo real."},{isImage:!0,dimensions:"1080x1920",value:"https://stg-www.contodobet.com/static/img/landing/CasinoEnVivo/FondoMobile.png",name:"backgroundMobileUrl",required:!1,id:"6dcfd666-c2db-4a19-9fbf-08167bf56ae0",type:"string",maxSizeMB:2},{type:"string",maxSizeMB:2,name:"backgroundDesktopUrl",isImage:!0,id:"2aa55855-0865-4cf1-a1ee-e52db864c6b4",value:"https://stg-www.contodobet.com/static/img/landing/CasinoEnVivo/FondoDesktop.png",dimensions:"1920x1080",required:!1},{isImage:!1,name:"groups",type:"string",value:"",id:"e1599845-59d4-4320-903b-3857453b4322",required:!1}],variableName:"items",apiParams:[{key:"company",value:"OLI",id:"2822fa64-0e89-43ea-9c80-ee77076c95bd"},{key:"lobby",value:"HOME_CASINOENVIVO",id:"2d6f8267-0468-4320-976d-b01df40e8ca3"}],visible:!0},{order:8,title:"Oraculo Seccion Top Juegos",visible:!0,dataMode:"url",apiMethod:"GET",componentKey:"OraculoSeccionTopJuegos",updatedAt:"2026-01-22T04:11:09.501Z",manualScalarFields:[{isImage:!1,value:"Top juegos",type:"string",required:!0,name:"title",id:"a01c36e7-a551-4c92-89e0-e9eabcdbe344"},{required:!0,type:"string",id:"1960df1d-b07e-4461-b55f-39834ac30d8e",maxSizeMB:.2,value:"https://imagenesolimpo.s3.us-east-1.amazonaws.com/landing/1768597100868-virtuales.webp",isImage:!0,name:"iconUrl"},{value:"",name:"groups",isImage:!1,type:"string",id:"63dab0f6-b4d1-47af-b1e7-d3dcf4c69c4e",required:!1}],apiParams:[{id:"2bcfd8cd-8f1f-474f-beb4-170477acf9bd",value:"OLI",key:"company"},{id:"dac0b2d9-f00d-4979-9deb-31c6f66b1899",key:"lobby",value:"HOME_TOPJUEGOS"}],apiUrl:"https://wallet-pe.olimpo.bet/api/contents/getLobby",id:13,variableName:"items"},{apiMethod:"GET",componentKey:"OraculoSeccionDestacados",id:6,variableName:"items",title:'Promociones "Lo nuevo"',order:9,apiParams:[{id:"a2ee1b32-dc39-434f-9358-920e6c7bba0b",value:"OLI",key:"company"},{id:"16715513-30a1-4955-8e94-a4deee4722ba",value:"DESTACADOS",key:"lobby"}],dataMode:"url",updatedAt:"2026-01-22T04:11:09.501Z",apiUrl:"https://wallet-pe.olimpo.bet/api/contents/getPromotionsLobby",manualScalarFields:[{id:"f131acc5-a298-4583-9952-c0747dc1f1af",name:"title",type:"string",value:"Lo nuevo",required:!0,isImage:!1},{id:"8f0dadc8-ff0f-4074-870f-2bbcd9f38cab",required:!0,name:"iconUrl",type:"string",maxSizeMB:.2,dimensions:"40x40",value:"https://stg-www.contodobet.com/static/img/landing/Destacados/starIcon.svg",isImage:!0},{isImage:!1,type:"string",name:"className",value:"",required:!1,id:"39cd368d-0003-4145-88a9-f22b1a4ef32b"},{isImage:!1,type:"string",value:"",name:"groups",required:!1,id:"a9e218fd-9cc6-432f-a7bf-c119581e6927"}],visible:!0},{title:"Club Olimpo",componentKey:"OraculoSeccionClubOlimpo",dataMode:"manual",visible:!0,variableName:"items",manualItems:[{fields:[{required:!0,id:"65b37bc4-f480-4409-afd7-ff8b83c722e0",value:"¡Canjea bonos, productos y las mejores experiencias!",isUrl:!1,name:"text",type:"string"},{id:"cdc8fb20-5c5a-4165-93be-4df1026cdcee",required:!1,name:"buttonLabel",value:"Vamos",type:"string",isUrl:!1},{value:"",name:"imgAlt",type:"string",required:!1,id:"9f25442e-caeb-4fab-9bea-b91f1aef97eb",isUrl:!1},{id:"259ffa74-7e4f-48e6-90da-4837f2c37fe9",isUrl:!0,name:"imgMobile",type:"string",required:!0,value:"https://stg-www.contodobet.com/static/img/landing/ClubOlimpo/FondoMobile.png"},{value:"https://stg-www.contodobet.com/static/img/landing/ClubOlimpo/FondoDesktop.png",id:"e7812141-42d8-419f-9d15-b8711139e980",required:!1,type:"string",isUrl:!0,name:"imgDesktopBg"},{name:"imgDesktopLogo",id:"622d860b-9f9f-462a-a675-3768d6daf3c3",value:"https://stg-www.contodobet.com/static/img/landing/ClubOlimpo/Logo.png",required:!1,type:"string",isUrl:!0},{name:"onClick",id:"cc465fd9-907d-427a-b5bb-e0963bdd833a",value:"",required:!1,type:"function",isUrl:!1}],id:"03e20297-c0fa-4382-85b2-54eaa9325be1"}],id:8,updatedAt:"2026-01-22T04:11:09.501Z",order:10},{updatedAt:"2026-01-22T04:11:09.501Z",dataMode:"url",title:"Virtuales",order:11,variableName:"items",componentKey:"OraculoSeccionVirtuales",id:7,apiParams:[{value:"OLI",key:"company",id:"de915e1d-1742-4383-bd83-ed96fda1145a"},{key:"lobby",value:"HOME_VIRTUALES",id:"039b41a3-4e94-4a52-8798-e78d8651c090"}],apiMethod:"GET",manualScalarFields:[{required:!0,name:"title",id:"f6b16510-51db-4124-864d-2d12a0bb1b23",value:"Virtuales",type:"string",isImage:!1},{type:"string",id:"f9686ddc-f673-4784-8025-df26f48cc04f",value:"https://stg-www.contodobet.com/static/img/landing/Virtuales/virtuales.svg",maxSizeMB:.2,required:!0,isImage:!0,name:"iconUrl"},{type:"boolean",id:"4c4f348c-cb17-4fd6-bc4d-f816a42da249",name:"mosaicFirst",isImage:!1,value:"true",required:!1},{id:"c264c9c3-7178-4961-b366-163d9b818800",type:"number",name:"gridSize",value:"4",required:!1,isImage:!1},{id:"2310900e-68ce-4a64-89da-e0976d172fee",required:!1,type:"string",value:"",isImage:!1,name:"groups"}],visible:!0,apiUrl:"https://wallet-pe.olimpo.bet/api/contents/getLobby"},{title:"Medios de Pago",id:10,order:12,componentKey:"OraculoSeccionMediosPago",visible:!0,updatedAt:"2026-01-22T04:11:09.501Z"}]},Aa=t=>typeof t=="function"||t&&typeof t=="object"&&"$$typeof"in t,za=t=>/^OraculoSeccion[A-Z]/.test(t);function ve(t){return t&&Array.isArray(t.sections)?t.sections.slice().sort((a,n)=>{var i,r;return((i=a.order)!=null?i:0)-((r=n.order)!=null?r:0)}).map((a,n)=>({...a,order:n+1})):t&&Array.isArray(t.components)?t.components.map((a,n)=>{var i,r,s,o,d;return{id:(i=a.id)!=null?i:n+1,title:(r=a.title)!=null?r:"",componentKey:a.componentKey,visible:(s=a.visible)!=null?s:!0,order:n+1,props:(o=a.props)!=null?o:{},apiUrl:(d=a.apiUrl)!=null?d:"",dataMode:a.dataMode,variableName:a.variableName,manualItems:a.manualItems,apiMethod:a.apiMethod,apiParams:a.apiParams}}):[]}const Pa=Object.fromEntries(Object.entries(qa).filter(([t,a])=>za(t)&&Aa(a))),Ua=t=>{try{return Object.fromEntries(t!=null?t:[])}catch{return console.warn("[oraculo] extras inválidos. Debe ser Array<[string, unknown]>",t),{}}};class Fe extends Error{constructor(a,n,i){super(`HTTP ${a} ${i}`),this.status=a,this.url=n,this.statusText=i,this.name="HttpError"}}const Le=["OraculoSeccionEventoEnVivo","OraculoSeccionEventoSemana","OraculoSeccionEventoCombinadas"],ft=({sectionsOverride:t,docId:a="home",db:n,extras:i,loader:r})=>{const s=v.useMemo(()=>Ua(i),[i]),o=r||s.loader,[d,g]=v.useState([]),[l,u]=v.useState(!1),[f,k]=v.useState({}),[b,E]=v.useState({}),[S,O]=v.useState({}),x=V.useMediaQuery("(min-width:1024px)");v.useEffect(()=>{if(t)return;if(!n){console.warn("[landing] sin db -> fallback json"),g(ve($e));return}const p=(c,h)=>{console.warn("[landing] FALLBACK:",c,h!=null?h:""),g(ve($e)),u(!1)};if(process.env.NEXT_PUBLIC_LANDING_FORCE_FALLBACK==="1"){u(!0),p("forzado por env");return}u(!0);const m=Te.onSnapshot(Te.doc(n,"landings",a),c=>{try{if(!c.exists()){p(`doc landings/${a} no existe`);return}const h=c.data(),w=ve(h);if(!w.length){p("JSON inválido o sin secciones normalizables",h);return}console.log("[landing] Firestore OK (json grande):",h),g(w)}catch(h){p("error procesando snapshot",h)}finally{u(!1)}},c=>{p("error onSnapshot",c)});return()=>m()},[t,a,n]),v.useEffect(()=>(ba(s),()=>xa()),[s]),v.useEffect(()=>{(t?t.slice():d.slice()).map(c=>c.componentKey).filter(c=>!!c).length},[t,d]);const y=async p=>{if(Le.includes(p.componentKey))return{items:[],events:[],data:{}};const m=(p.apiUrl||"").trim();if(!m)return;const c=p.apiMethod||"GET",h=p.apiParams||[];let w=m,I,$;if(c==="GET"){const q=new URL(m,typeof window=="undefined"?"http://localhost":window.location.origin);for(const L of h)L.key&&q.searchParams.append(L.key,L.value);w=q.toString()}else{const q=new URLSearchParams;for(const L of h)L.key&&q.append(L.key,L.value);I=q.toString(),$={"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"}}const R=await fetch(w,{method:c,headers:$,body:I});if(!R.ok)throw new Fe(R.status,w,R.statusText);return R.json()},B=v.useMemo(()=>t?t.slice():d.slice(),[t,d]),_=Ae.default.useRef(new Set);v.useEffect(()=>{const p=B.map(m=>({s:m,url:(m.apiUrl||"").trim()})).filter(({url:m})=>!!m);if(p.length)for(const{s:m,url:c}of p){const h=`${m.id}|${c}`;_.current.has(h)||(_.current.add(h),E(w=>({...w,[m.id]:!0})),O(w=>({...w,[m.id]:""})),(async()=>{try{const w=await y(m);k(I=>({...I,[m.id]:w}))}catch(w){let I="Error desconocido";w instanceof Fe?I=`Error HTTP ${w.status} (${w.statusText}) en ${w.url}`:w instanceof SyntaxError?I="Respuesta no es JSON válido":w instanceof TypeError?I="Fallo de red / CORS / conexión":typeof w=="string"&&(I=w.toString()),O($=>({...$,[m.id]:I}))}finally{E(w=>({...w,[m.id]:!1}))}})())}},[B]);const T=v.useMemo(()=>B.filter(p=>p.visible).sort((p,m)=>p.order-m.order),[B]),M=p=>Array.isArray(p)?p.map(m=>{const c={};for(const h of m.fields||[]){const w=(h.type||"string").toLowerCase();if(w==="number"){const I=String(h.value||"").trim();if(I!==""){const $=Number(I);Number.isNaN($)||(c[h.name]=$)}}else if(w==="boolean")c[h.name]=String(h.value).toLowerCase()==="true";else if(w==="function"){const I=String(h.value||"").trim();if(I)try{const $=new Function(I);c[h.name]=$}catch($){console.error(`❌ Error creando función en item '${h.name}':`,$)}}else c[h.name]=h.value}return c}):[],F=p=>{const m={};if(!Array.isArray(p))return m;for(const c of p){if(!c.name)continue;const h=(c.type||"string").toLowerCase();if(h==="number"){const w=String(c.value||"").trim();if(w!==""){const I=Number(w);Number.isNaN(I)||(m[c.name]=I)}}else if(h==="boolean")m[c.name]=String(c.value).toLowerCase()==="true";else if(h==="function"){const w=String(c.value||"").trim();if(w)try{const I=new Function(w);m[c.name]=I}catch(I){console.error(`❌ Error creando función en item '${c.name}':`,I)}}else m[c.name]=c.value}return m},z=(p,m,c)=>{const h=c?{...c}:{};if(m){const L=(m.variableName||"items").trim()||"items";return h[L]=m.arr||[],h}const w=p,I=Array.isArray(w),$=!I&&typeof w=="object"&&w!==null?w:void 0,R=$&&Array.isArray($.lobby||$.items)?$.lobby||$.items:void 0,q=L=>I?w:R||L;return h.items=q(R||[]),h},j=p=>{var I;const m=!!((I=p.apiUrl)!=null&&I.trim()),c=m?f[p.id]:void 0;let h=p.props?{...p.props}:{};const w=F(p.manualScalarFields);if(Le.includes(p.componentKey))return{items:c,...h,...w};if(h={...h,...w},m)h=z(c,null,h);else if(p.dataMode==="manual"){const $=M(p.manualItems);if(h=z(null,{arr:$,variableName:p.variableName},h),p.variableName2&&p.manualItems2){const R=M(p.manualItems2),q=(p.variableName2||"items2").trim()||"items2";h[q]=R}}return h},C=(p,m,c)=>{const h={loading:"bg-blue-100 text-blue-800",error:"bg-red-100 text-red-800",component:"bg-yellow-100 text-yellow-800"};return e.jsx("div",{className:`mx-4 p-4 rounded ${h[m]}`,children:c},p)},A=p=>{var ee;const m=p.componentKey,c=Pa[m];if(!c)return console.warn(`No hay componente registrado para "${m}"`),C(p.id,"component",`Componente "${m}" no encontrado`);const h=!!((ee=p.apiUrl)!=null&&ee.trim()),w=h?f[p.id]:void 0,I=h?!!b[p.id]:!1,$=h?S[p.id]:"";if(h){if(I&&!w)return C(p.id,"loading",`Cargando datos desde ${p.apiUrl}...`);if($&&!w)return C(p.id,"error",`Error cargando ${p.apiUrl}: ${$}`)}const R=j(p),L=new Set(["OraculoSeccionBanners","OraculoSeccionBonoBienvenida","OraculoSeccionCasinoEnVivo",x?"":"OraculoSeccionClubOlimpo"]).has(p.componentKey),D=x?120:24,G=L?{width:"100%",boxSizing:"border-box"}:{paddingLeft:D,paddingRight:D,width:"100%",boxSizing:"border-box"};return e.jsx("div",{style:G,className:"oraculo-section-wrapper",children:e.jsx(c,{...R})},p.id)};return l&&!t?o?e.jsx(o,{}):e.jsx("div",{children:"Cargando..."}):!l&&!t&&d.length===0?e.jsx("div",{className:"text-xs text-gray-500",children:"Sin secciones (Firestore)"}):e.jsx(V.Container,{className:"oli-font",maxWidth:!1,disableGutters:!0,sx:{backgroundColor:"#121212",position:"relative",pb:5,width:"100%",maxWidth:"100%",overflowX:"hidden"},children:e.jsx(V.Stack,{direction:"column",spacing:x?8:5,useFlexGap:!0,children:T.map(A)})})};exports.OraculoButton=W;exports.OraculoCarousel=Q;exports.OraculoCarouselDots=we;exports.OraculoClubOlimpoVisual=He;exports.OraculoEventCombinadasCard=Je;exports.OraculoEventEnVivoCard=Ye;exports.OraculoEventHeader=We;exports.OraculoEventLabel=Se;exports.OraculoEventLeague=je;exports.OraculoEventScore=Oe;exports.OraculoEventSemanaCard=Qe;exports.OraculoEventStatus=Ve;exports.OraculoEventStatusBadge=Ue;exports.OraculoEventTeamInfo=le;exports.OraculoGameCard=re;exports.OraculoGameRankCard=De;exports.OraculoGameSlide=Ce;exports.OraculoGridGroup=H;exports.OraculoLiveCasinoCard=Ge;exports.OraculoLogoMediosPago=_e;exports.OraculoPageLandingPreview=ft;exports.OraculoSeccionBanners=mt;exports.OraculoSeccionBonoBienvenida=rt;exports.OraculoSeccionCasino=ot;exports.OraculoSeccionCasinoEnVivo=at;exports.OraculoSeccionClubOlimpo=lt;exports.OraculoSeccionDestacados=et;exports.OraculoSeccionEventoCombinadas=ct;exports.OraculoSeccionEventoEnVivo=dt;exports.OraculoSeccionEventoSemana=ut;exports.OraculoSeccionMediosPago=pt;exports.OraculoSeccionTopJuegos=Ie;exports.OraculoSeccionVirtuales=st;exports.OraculoSectionTitle=Y;exports.OraculoTopJuegoItem=Ie;exports.OraculoWelcomeBanner=ye;exports.default=ft;
|
|
20
20
|
//# sourceMappingURL=index.cjs.js.map
|