oraculo-ui 0.1.77 → 0.1.78

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,4 +1,4 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),U=require("@mui/material"),dt=require("@mui/material/Skeleton"),g=require("react"),Me=require("@splidejs/react-splide"),ut=require("@mui/material/Box"),pt=require("@mui/material/Typography"),mt=require("@mui/material/Stack"),se=require("@mui/icons-material"),ft=require("@mui/icons-material/ChevronLeftRounded"),ht=require("@mui/icons-material/ChevronRightRounded"),xt=require("@mui/material/useMediaQuery"),Ce=require("firebase/firestore"),Q=t=>t&&t.__esModule?t:{default:t},W=Q(dt),gt=Q(g),N=Q(ut),K=Q(pt),A=Q(mt),Be=Q(ft),Fe=Q(ht),bt=Q(xt);function D({children:t,onClick:n,href:o,target:s,rel:a,type:r="button",disabled:i=!1,variant:c="primary",size:l,fullWidth:m=!1,fullHeight:f=!1,className:_="",ariaLabel:d,leftIcon:y,rightIcon:w,iconOnly:C}){const E=!!t&&t!==!0,v=(!!y?1:0)+(!!w?1:0)==1,j=C!=null?C:v&&!E,R=["orc-btn",c==="secondary"?"orc-btn--secondary":c==="tertiary"?"orc-btn--tertiary":"orc-btn--primary",l?`orc-btn--${l}`:"",m?"orc-btn--full":"",f?"orc-btn--fullHeight":"",j?"orc-btn--iconOnly":"",_].filter(Boolean).join(" "),$=e.jsxs(e.Fragment,{children:[y&&e.jsx("span",{className:"orc-btn__icon",children:y}),!j&&e.jsx("span",{className:"orc-btn__label",children:t}),w&&e.jsx("span",{className:"orc-btn__icon",children:w})]}),O=i?!0:void 0;return o?e.jsx(U.Link,{href:o,target:s,rel:a,"aria-label":d,"aria-disabled":O,tabIndex:O?-1:void 0,className:R,onClick:O?I=>I.preventDefault():n,children:$}):e.jsx("button",{type:r,onClick:n,disabled:!!O,"aria-label":d,className:R,children:$})}function J({title:t,iconUrl:n,size:o="md",className:s=""}){const r=["orc-section-title",o?`orc-section-title--${o}`:"",s].filter(Boolean).join(" ");return e.jsxs("div",{className:r,children:[n&&e.jsx("img",{src:n,alt:"",className:"orc-section-title__icon"}),e.jsx("h2",{className:"orc-section-title__title",children:t})]})}const _e=({total:t,active:n,onSelect:o,className:s=""})=>{if(t<=1)return null;const a=["orc-dots",s].filter(Boolean).join(" ");return e.jsx("div",{className:a,role:"tablist",children:Array.from({length:t}).map((r,i)=>e.jsx("span",{className:"orc-dots__cell",children:e.jsx("button",{type:"button",role:"tab","aria-selected":i===n,"aria-label":`Ir al slide ${i+1}`,className:"orc-dots__dot"+(i===n?" orc-dots__dot--active":""),onClick:()=>o==null?void 0:o(i)})},i))})};function H({children:t,minWidth:n=32,spacing:o=2,justify:s="stretch",columns:a=null}){const r=a||`repeat(auto-fit, minmax(${n}px, 1fr))`,i=typeof o=="number"?`${o*8}px`:o;return e.jsx("div",{style:{display:"grid",gridTemplateColumns:r,justifyItems:s,gap:i,height:"inherit"},children:t})}function ge({src:t,alt:n}){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:n,sx:{position:"absolute",top:0,left:0,width:"100%",height:"100%",objectFit:"contain"}})})}const _t="oraculo__OraculoEventTitle-module__contenedor___rg1vw",vt="oraculo__OraculoEventTitle-module__flexGroup___jMLFO",jt="oraculo__OraculoEventTitle-module__subtitle___TmHna",me={contenedor:_t,flexGroup:vt,subtitle:jt};function wt({title:t,subtitle:n}){return e.jsxs("div",{className:me.contenedor,children:[e.jsx("span",{style:{fontWeight:700,fontSize:"12px",lineHeight:"16px"},children:t}),n&&e.jsxs("div",{className:me.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:me.subtitle,children:n}),e.jsx("div",{})]})]})}function Le({text:t,color:n="#ff3b3b",textColor:o="#fff"}){return e.jsx("span",{className:"oli-font",style:{backgroundColor:n,color:o,borderRadius:"8px",padding:"4px 8px",fontSize:"12px",lineHeight:"16px",fontWeight:700,width:"41px",height:"16px",textAlign:"center"},children:t})}function Pe({live:t,time:n}){return e.jsxs("div",{className:"oli-font",style:{display:"flex",alignItems:"center",gap:"8px"},children:[t&&e.jsx(Le,{text:"En vivo"}),n&&e.jsx("span",{style:{fontSize:"14px",fontWeight:400,lineHeight:"18px",paddingTop:"4px"},children:n})]})}function We({title:t,subtitle:n,live:o=!1,time:s=""}){return e.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",color:"#FFFFFF"},children:[e.jsx(wt,{title:t,subtitle:n}),e.jsx(Pe,{live:o,time:s})]})}const yt="oraculo__OraculoEventLabel-module__label___c64Xw",St={label:yt};function ve({text:t}){return e.jsx("span",{className:St.label,children:t})}const Et="oraculo__OraculoEventLeague-module__container___rdk4F",Ct={container:Et};function je({title:t}){return e.jsx("div",{className:Ct.container,children:t.toUpperCase()})}const Ot="oraculo__OraculoEventScore-module__scoreWrapper___fWwEr",kt="oraculo__OraculoEventScore-module__name___r4uL6",It="oraculo__OraculoEventScore-module__score___Xl03M",$t="oraculo__OraculoEventScore-module__normal___cCNFz",Nt="oraculo__OraculoEventScore-module__small___fVt8E",oe={scoreWrapper:Ot,name:kt,score:It,normal:$t,small:Nt};function we({text:t,name:n,size:o="normal"}){return e.jsxs("div",{className:`${oe.scoreWrapper} ${oe[o]}`,children:[e.jsx("div",{className:`${oe.score} ${oe[o]}`,children:t}),n&&e.jsx("span",{className:`${oe.name} ${oe[o]}`,children:n})]})}const Rt="oraculo__OraculoEventTeamInfo-module__team___UfpUs",Tt="oraculo__OraculoEventTeamInfo-module__regular___ag826",Mt="oraculo__OraculoEventTeamInfo-module__compact___RCNOs",Bt="oraculo__OraculoEventTeamInfo-module__logo___fKCl3",Ft="oraculo__OraculoEventTeamInfo-module__name___4ikm-",Lt="oraculo__OraculoEventTeamInfo-module__skeleton___Yfaxh",re={team:Rt,regular:Tt,compact:Mt,logo:Bt,name:Ft,skeleton:Lt},Pt="oraculo__OraculoTeamPolo-module__polo___BisRg",Wt="oraculo__OraculoTeamPolo-module__svgWrapper___HRKNX",At="oraculo__OraculoTeamPolo-module__shadow___-3DXb",zt="oraculo__OraculoTeamPolo-module__highlight___1etm7",le={polo:Pt,svgWrapper:Wt,shadow:At,highlight:zt};function Gt({jersey:t,className:n}){const o=`#${t.base}`,s=t.sleeve?`#${t.sleeve}`:o,a=t.stripes?`#${t.stripes}`:null,r=t.sleevelong?`#${t.sleevelong}`:null;return e.jsxs("div",{className:`${le.polo} ${n!=null?n:""}`,children:[e.jsx("div",{className:le.svgWrapper,children:e.jsxs("svg",{viewBox:"0 0 656 656","aria-hidden":!0,children:[e.jsx("path",{fill:o,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.5c4.2 2.2 13.1 7.1 15.2 8.7 2 1.6 30.1 15.4 44 22 8 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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:s,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:s,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:le.shadow,alt:"","aria-hidden":!0}),e.jsx("img",{src:"https://widgets.sir.sportradar.com/assets/media/highlight.b1ac6c3e.png",className:le.highlight,alt:"","aria-hidden":!0})]})}function ie({name:t,jersey:n,size:o="regular"}){return e.jsxs("div",{className:`oli-font ${re.team} ${re[o]}`,children:[n!=null&&n.base?e.jsx(Gt,{jersey:n,className:`${re.logo}`}):e.jsx(W.default,{variant:"circular",className:`${re.logo} ${re.skeleton}`}),e.jsx("span",{className:re.name,children:t})]})}function Ut(t,n,{enabled:o=!0}={}){const s=g.useRef(null);g.useEffect(()=>{if(!o)return;const a=t.current;if(!a)return;const r=i=>{const c=n.current;if(!c||!c.go)return;const{deltaX:l,deltaY:m}=i;if(Math.abs(l)<=Math.abs(m)||Math.abs(l)<2)return;i.preventDefault();const f=l>0?">":"<";s.current===null&&(s.current=requestAnimationFrame(()=>{s.current=null,c.go(f)}))};return a.addEventListener("wheel",r,{passive:!1}),()=>{a.removeEventListener("wheel",r),s.current&&cancelAnimationFrame(s.current)}},[o,t,n])}const Dt=Me.Splide,Vt=Me.SplideSlide,X=g.forwardRef(({items:t=[],renderItem:n,perPage:o=1,gap:s="0px",breakpoints:a,options:r={},className:i="",onMove:c,useIndexAsKey:l=!1,enableHorizontalWheel:m=!0},f)=>{const _=g.useRef(null),d=g.useRef(null);Ut(d,_,{enabled:m}),g.useImperativeHandle(f,()=>({next:()=>{var S;return(S=_.current)==null?void 0:S.go(">")},prev:()=>{var S;return(S=_.current)==null?void 0:S.go("<")},go:S=>{var M;return(M=_.current)==null?void 0:M.go(S)}}));const y=S=>{var P;const M=S.Components.Slides,v=S.Components.Controller,j=S.root.querySelector(".splide__track"),R=(P=j==null?void 0:j.clientWidth)!=null?P:0,$=v.getIndex(),O=M.getLength();let I=0,T=$;for(let F=$;F<O;F++){const u=M.getAt(F);if(!u||(I+=u.slide.getBoundingClientRect().width,I>R))break;T=F}return{visibleStart:$,visibleEnd:T}},w=g.useCallback(S=>{const M=S.Components.Controller,v=M.getIndex(),j=M.getEnd(),R=v===0,$=v>=j,O=S.Components.Slides.getLength(),{visibleStart:I,visibleEnd:T}=y(S);c==null||c({index:v,isStart:R,isEnd:$,total:O,visibleEnd:T,visibleStart:I})},[c]),C=g.useCallback(S=>{w(S)},[w]),E={type:"slide",trimSpace:!1,drag:!0,pagination:!1,arrows:!1,rewind:!1,focus:"start",autoWidth:!1,perPage:o,gap:s,breakpoints:a,...r,...m?{wheel:!1}:{}};return e.jsx("div",{ref:d,className:i,style:{width:"100%"},children:e.jsx(Dt,{ref:_,options:E,onMove:w,onMounted:C,children:t.map((S,M)=>{var v;return e.jsx(Vt,{children:n(S,M)},l?M:(v=S.id)!=null?v:M)})})})}),ae=({imageUrl:t,onClick:n,size:o="sm",fillParent:s=!1})=>{const a=o==="lg"?{w:280,h:352}:{w:152,h:168},r=c=>{c.stopPropagation(),n==null||n()},i=s?{width:"100%",height:"100%"}:{width:`${a.w}px`,height:`${a.h}px`};return e.jsxs(N.default,{onClick:n,role:"button",sx:{position:"relative",borderRadius:"12px",overflow:"hidden",boxSizing:"border-box",transition:"transform .15s ease, box-shadow .15s ease",...i,"&: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(D,{variant:"primary",size:"md",onClick:r,children:"Jugar"})})]})};function Ae({imageUrl:t,orden:n=1,onClick:o,loading:s=!1,sizes:a={xs:{w:104,h:112,r:18,font:48},md:{w:186,h:264,r:22.6,font:64}}}){var _,d,y,w;const r=(C,E)=>{var S,M,v,j;return{xs:(M=(S=a.xs)==null?void 0:S[C])!=null?M:E,md:(j=(v=a.md)==null?void 0:v[C])!=null?j:E}},i=r("w",186),c=r("h",264),l=r("r",22.6),m=r("font",64),f={xs:Math.round(((d=(_=a.xs)==null?void 0:_.font)!=null?d:64)*.28),md:Math.round(((w=(y=a.md)==null?void 0:y.font)!=null?w:64)*.28)};return e.jsxs(N.default,{sx:{position:"relative",width:"100%",maxWidth:{xs:`${i.xs}px`,md:`${i.md}px`},aspectRatio:{xs:`${i.xs}/${c.xs}`,md:`${i.md}/${c.md}`},borderRadius:{xs:`${l.xs}px`,md:`${l.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(N.default,{sx:{position:"absolute",inset:0,borderRadius:"inherit",overflow:"hidden"},children:s?e.jsx(W.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(ae,{imageUrl:t,onClick:o,size:"lg",fillParent:!0})}),e.jsx(N.default,{component:"span",sx:{position:"absolute",left:8,bottom:{xs:`-${f.xs}px`,md:`-${f.md}px`},fontFamily:"secondary",fontSize:{xs:`${m.xs}px`,md:`${m.md}px`},lineHeight:1,color:"#3CC666",WebkitTextStroke:"1px #9ee86e",zIndex:3,userSelect:"none"},children:n})]})}const ze=({logo:t,provider:n,providerName:o,machine:s,onClick:a})=>{var r;return e.jsxs(N.default,{onClick:a,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 ${s!=null?s:""}`,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(K.default,{sx:{color:"#fff",fontWeight:700,fontSize:{xs:11,md:14},textTransform:"capitalize"},children:(r=n!=null?n:o)!=null?r:""})})]})},fe=12,he=({r:t=16})=>e.jsx(N.default,{sx:{width:"100%",height:"100%",borderRadius:t,overflow:"hidden"},children:e.jsx(W.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)"}}})}),ye=({items:t,layout:n="grid",onClick:o,loading:s=!1,gridSkeletonCount:a=4})=>{var r,i;if(n==="mosaic"){const c=t[0];console.log("big: ",c);const l=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:`${fe}px`,rowGap:`${fe}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:s?e.jsx(he,{}):c&&e.jsx(ae,{imageUrl:`https://olimpo.bet${(i=(r=c.background)!=null?r:c.imageUrl)!=null?i:""}`,size:"lg",fillParent:!0,onClick:()=>o==null?void 0:o(c,0)})}),(s?Array.from({length:4}):l).map((m,f)=>{var _,d;return e.jsx(N.default,{sx:{width:{xs:104,md:152},height:{xs:112,md:168},overflow:"hidden",borderRadius:2},children:s?e.jsx(he,{}):e.jsx(ae,{imageUrl:`https://olimpo.bet${(d=(_=m.background)!=null?_:m.imageUrl)!=null?d:""}`,size:"sm",fillParent:!0,onClick:()=>o==null?void 0:o(m,f+1)})},s?`sk-${f}`:m.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:`${fe}px`,gridAutoFlow:"column"},children:(s?Array.from({length:a}):t).map((c,l)=>{var m,f,_;return e.jsx(N.default,{sx:{overflow:"hidden",borderRadius:2},children:s?e.jsx(he,{}):e.jsx(ae,{imageUrl:`https://olimpo.bet${(f=(m=c.background)!=null?m:c.imageUrl)!=null?f:""}`,size:"sm",fillParent:!0,onClick:()=>o==null?void 0:o(c,l)})},s?`sk-${l}`:(_=c.id)!=null?_:l)})})},be=({title:t,amount:n,subtitle:o,buttonText:s,onButtonClick:a,backgroundImage:r,alt:i,className:c="",variant:l="small"})=>{const m=n?n.slice(0,2):"",f=n?n.slice(2):"",_=l==="large";return e.jsxs(N.default,{className:c,sx:{position:"relative",width:"100%",maxWidth:{xs:328,md:_?618:456},mx:"auto"},children:[r&&e.jsx(N.default,{sx:{position:"relative",width:"100%",aspectRatio:{xs:"328 / 188",md:_?"618 / 346":"456 / 272"},borderRadius:"14px",overflow:"hidden"},children:e.jsx(N.default,{component:"img",src:r,alt:i!=null?i:"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(K.default,{sx:{fontSize:{xs:12,md:20},fontWeight:400,color:"#e7f8ff"},children:t}),n&&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:m}),e.jsx(N.default,{component:"span",sx:{fontSize:{xs:52,md:77}},children:f})]}),o&&e.jsx(K.default,{sx:{pb:"20px",fontSize:14,fontWeight:600,color:"#e7f8ff"},children:o}),s&&e.jsx(D,{onClick:a,children:s})]})})]})},Ge=({text:t,buttonLabel:n="Conoce más",onClick:o,imgAlt:s="Club Olimpo",imgSrcMobile:a,imgSrcDesktopBg:r,imgSrcDesktopLogo:i})=>e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"orc-co-bgMobile",children:e.jsx("img",{src:a,alt:s,className:"orc-co-bgMobileImg"})}),e.jsxs("div",{className:"orc-co-bgDesktop",children:[r&&e.jsx("div",{className:"orc-co-fillHost",children:e.jsx("img",{src:r,alt:`${s} fondo`,className:"orc-co-bgDesktopImg"})}),e.jsxs("div",{className:"orc-co-desktopContent",children:[i&&e.jsx("img",{src:i,alt:`${s} logo`,className:"orc-co-logoImg"}),e.jsx("p",{className:"orc-co-captionDesktop",children:t}),e.jsx(D,{onClick:o,variant:"primary",size:"md",children:n})]})]}),e.jsxs("div",{className:"orc-co-bottom",children:[e.jsx("p",{className:"orc-co-caption",children:t}),e.jsx(D,{onClick:o,variant:"primary",size:"md",children:n})]})]}),Ht="oraculo__OraculoEventCombinadasCard-module__card___ulQeY",qt="oraculo__OraculoEventCombinadasCard-module__combinadas___Gxrld",Kt="oraculo__OraculoEventCombinadasCard-module__apuestaItem___YnYMy",Jt="oraculo__OraculoEventCombinadasCard-module__lineContainer___G5rbU",Xt="oraculo__OraculoEventCombinadasCard-module__circle___eehm-",Yt="oraculo__OraculoEventCombinadasCard-module__line___Eb2pK",Zt="oraculo__OraculoEventCombinadasCard-module__apuestaText___b5s7S",Qt="oraculo__OraculoEventCombinadasCard-module__cuotaTotal___Lohvu",Y={card:Ht,combinadas:qt,apuestaItem:Kt,lineContainer:Jt,circle:Xt,line:Yt,apuestaText:Zt,cuotaTotal:Qt};function Se(t){const n=Array.isArray(t)?t:[t];sessionStorage.setItem("landingOutcomes",JSON.stringify(n)),window.location.href="/deportes#in-play"}function en(){window.location.href="/deportes#in-play"}function tn(){window.location.href="/deportes#sports-hub/football"}function nn(){window.location.href="/deportes#specials"}async function Ue(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 De(t,n=250){const[o,s]=g.useState(t);return g.useEffect(()=>{const a=setTimeout(()=>s(t),n);return()=>clearTimeout(a)},[t,n]),o}function Ve({event:t}){var s;function n(a){var f;const r=(f=a.betoffers)!=null?f:[],i=a.homeName,c=a.awayName,l=r.map(_=>{var C,E,S,M,v;let d=_.outcomes[0],y="",w=d!=null&&d.line?d.line/1e3:"";return["Más de","Mas de","Over"].includes(d==null?void 0:d.label)?(y=`Más de ${w}`,d!=null&&d.participant&&(y=`${d.participant} - ${y}`)):["Menos de","Menos"].includes(d==null?void 0:d.label)?(y=`Menos de ${w}`,d!=null&&d.participant&&(y=`${d.participant} - ${y}`)):["Sí","No"].includes(d==null?void 0:d.label)?(y=d==null?void 0:d.label,d!=null&&d.participant&&(y=`${d.participant} - ${y}`)):["1X","12","X2"].includes(d==null?void 0:d.label)?d.label==="1X"?y=`${i} o Empate`:d.label==="12"?y=`${i} o ${c}`:d.label==="X2"&&(y=`${c} o Empate`):(d!=null&&d.participant?y=d.participant:y=(C=d==null?void 0:d.label)!=null?C:"",w!==""&&y===d.label&&(y=`${d.label} ${w}`)),{id:(E=d==null?void 0:d.id)!=null?E:0,value:y,label:_.criterion.label,odds:(S=d==null?void 0:d.odds)!=null?S:0,bl:(M=d==null?void 0:d.label)!=null?M:0,position:(v=d==null?void 0:d.position)!=null?v:0}}),m=l.reduce((_,d)=>_+d.odds,0)/1e3;return{outcomes:l,total:m.toFixed(2)}}const o=n(t);return e.jsxs("div",{className:Y.card,children:[e.jsx("div",{className:Y.combinadas,children:e.jsxs(A.default,{direction:"column",spacing:.5,useFlexGap:!0,children:[e.jsx(J,{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:o.outcomes.sort((a,r)=>a.position-r.position).map((a,r)=>e.jsxs("div",{className:Y.apuestaItem,children:[e.jsxs("div",{className:Y.lineContainer,children:[e.jsx("div",{className:Y.circle}),r<o.outcomes.length-1&&e.jsx("div",{className:Y.line})]}),e.jsxs("div",{className:Y.apuestaText,children:[e.jsx("strong",{children:a.value})," ","| ",a.label]})]},r))})]})}),e.jsxs("button",{onClick:()=>{var a,r;return Se((r=(a=o==null?void 0:o.outcomes)==null?void 0:a.map(i=>i==null?void 0:i.id))!=null?r:[])},className:Y.cuotaTotal,children:[e.jsxs("span",{children:["Cuota total: ",e.jsx("strong",{children:(((s=t.combinadoTotal)!=null?s:0)/1e3).toFixed(2)})]}),e.jsx("img",{loading:"lazy",src:"/assets/img/home/Combinadas/cuotaTotal.svg",alt:"cuota total"})]})]})}const q={"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 on({children:t,onClick:n,href:o,target:s,rel:a,type:r="button",disabled:i=!1,variant:c="primary",size:l,fullWidth:m=!1,fullHeight:f=!1,className:_="",ariaLabel:d,leftIcon:y,rightIcon:w,iconOnly:C}){const E=!!t&&t!==!0,v=(!!y?1:0)+(!!w?1:0)==1,j=C!=null?C:v&&!E,R=[q["orc-btn"],q[`orc-btn--${c}`],l?q[`orc-btn--${l}`]:"",m?q["orc-btn--full"]:"",f?q["orc-btn--fullHeight"]:"",j?q["orc-btn--iconOnly"]:"",_].filter(Boolean).join(" "),$=e.jsxs(e.Fragment,{children:[y&&e.jsx("span",{className:q["orc-btn__icon"],children:y}),!j&&e.jsx("span",{className:q["orc-btn__label"],children:t}),w&&e.jsx("span",{className:q["orc-btn__icon"],children:w})]}),O=i?!0:void 0;return o?e.jsx(U.Link,{href:o,target:s,rel:a,"aria-label":d,"aria-disabled":O,tabIndex:O?-1:void 0,className:R,onClick:O?I=>I.preventDefault():n,children:$}):e.jsx("button",{type:r,onClick:n,disabled:!!O,"aria-label":d,className:R,children:$})}const rn="oraculo__OraculoEventEnVivoCard-module__cardWrapper___6b-cT",He={cardWrapper:rn},Oe={base:"FFFFFF",sleeve:"FFFFFF",number:"000000",real:!1,type:"short_sleeves"},ke={base:"000000",sleeve:"000000",number:"FFFFFF",real:!1,type:"short_sleeves"},de=(t,n,o="player")=>{var a,r;if(t===void 0)return null;if(t===null)return n==="home"?Oe:ke;const s=(r=(a=t==null?void 0:t.jerseys)==null?void 0:a[n])==null?void 0:r[o];return s||(n==="home"?Oe:ke)};function qe({event:t,liveData:n,betOffers:o,jersey:s}){var r,i,c,l,m,f,_,d,y,w,C;const a=o==null?void 0:o.find(E=>{var S;return((S=E.betOfferType)==null?void 0:S.id)===2});return e.jsx("div",{className:He.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:(c=(i=(r=t==null?void 0:t.path)==null?void 0:r[0])==null?void 0:i.name)!=null?c:"",subtitle:(l=t==null?void 0:t.group)!=null?l:"",live:!0,time:((m=n==null?void 0:n.matchClock)==null?void 0:m.minute)!=null?`${n.matchClock.minute}'`:""}),e.jsx("div",{style:{padding:"0 4px"},children:e.jsxs(H,{spacing:1.5,columns:"1fr auto 1fr",children:[e.jsx(ie,{name:t==null?void 0:t.homeName,jersey:de(s,"home")}),e.jsx(we,{text:((_=(f=n==null?void 0:n.score)==null?void 0:f.home)!=null?_:0)+":"+((y=(d=n==null?void 0:n.score)==null?void 0:d.away)!=null?y:0),name:"En vivo"}),e.jsx(ie,{name:t==null?void 0:t.awayName,jersey:de(s,"away")})]})})]}),e.jsxs(A.default,{direction:"column",spacing:1,useFlexGap:!0,children:[e.jsx(H,{spacing:1,children:((w=a==null?void 0:a.outcomes)!=null?w:[]).map((E,S)=>e.jsx(ve,{text:E.label.toUpperCase()},S))}),e.jsx(H,{spacing:2,children:((C=a==null?void 0:a.outcomes)!=null?C:[]).map((E,S)=>e.jsx(on,{variant:"primary",disabled:E.odds==null||(a==null?void 0:a.cashOutStatus)=="SUSPENDED",onClick:()=>{Se(E.id)},children:E.odds===void 0?"":(E.odds/1e3).toFixed(2)},S))})]})]})})}const sn="oraculo__OraculoEventDate-module__date___xhIlh",an={date:sn};function ln({text:t}){return e.jsx("div",{className:`oli-font ${an.date}`,children:t})}const cn="oraculo__OraculoEventSemanaCard-module__cardContainer___4JuDe",dn="oraculo__OraculoEventSemanaCard-module__cardBackground___vfalD",un="oraculo__OraculoEventSemanaCard-module__jugadas___W8b7H",pn="oraculo__OraculoEventSemanaCard-module__equipos___G5hLn",te={cardContainer:cn,cardBackground:dn,jugadas:un,equipos:pn};function Ke({event:t,jersey:n}){var s,a,r,i,c,l,m;function o(f){const _=new Date(f),d=_.toLocaleDateString("es-ES",{weekday:"short"}).toUpperCase(),y=_.getDate().toString().padStart(2,"0"),w=(_.getMonth()+1).toString().padStart(2,"0");let C=_.toLocaleTimeString("es-PE",{hour:"numeric",minute:"2-digit",hour12:!0}).toUpperCase();return C=C.replace(/\./g,"").replace(/A\s*M/i,"AM").replace(/P\s*M/i,"PM"),`${d} ${y}/${w} | ${C}`}return e.jsxs("div",{className:te.cardContainer,children:[e.jsx(je,{title:(s=t==null?void 0:t.group)!=null?s:""}),e.jsx("div",{className:te.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:te.equipos,children:[e.jsx(ie,{name:t.homeName,size:"compact",jersey:de(n,"home")}),e.jsx(we,{text:"vs.",name:"",size:"small"}),e.jsx(ie,{name:t.awayName,size:"compact",jersey:de(n,"away")})]}),e.jsx(ln,{text:o(t.start)})]}),e.jsxs(A.default,{direction:"column",spacing:{xs:.5,md:1},useFlexGap:!0,children:[e.jsx(H,{spacing:1,children:((i=(r=(a=t==null?void 0:t.outcome)==null?void 0:a[0])==null?void 0:r.outcomes)!=null?i:[]).map((f,_)=>e.jsx(ve,{text:f.label.toUpperCase()},_))}),e.jsx("div",{className:te.jugadas,children:e.jsx(H,{spacing:1,children:((m=(l=(c=t==null?void 0:t.outcome)==null?void 0:c[0])==null?void 0:l.outcomes)!=null?m:[]).map((f,_)=>e.jsx(D,{variant:"primary",fullHeight:!0,onClick:()=>{Se(f.id)},children:(f.odds/1e3).toFixed(2)},_))})})]})]})})]})}function Je({items:t,title:n="Destacados",iconUrl:o,onViewMore:s,className:a=""}){const r=g.useRef(null),[i,c]=g.useState({isStart:!0,isEnd:!1}),l=!t||t.length===0,m=()=>{var w;return(w=r.current)==null?void 0:w.prev()},f=()=>{var w;return(w=r.current)==null?void 0:w.next()},_=()=>{window.location.href="https://www.olimpo.bet/promociones"},d=w=>{if(!w||typeof window=="undefined")return;const E=`https://www.olimpo.bet/promociones/${encodeURIComponent(w)}`;window.location.href=E},y=a||void 0;return e.jsxs("section",{className:y,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(J,{title:n,iconUrl:o,size:"md"}),e.jsxs("div",{style:{display:"flex",gap:8},children:[e.jsx(D,{ariaLabel:"Anterior",variant:"secondary",iconOnly:!0,leftIcon:e.jsx(se.ChevronLeftRounded,{}),onClick:m,disabled:i.isStart||l}),e.jsx(D,{ariaLabel:"Siguiente",variant:"secondary",iconOnly:!0,rightIcon:e.jsx(se.ChevronRightRounded,{}),onClick:f,disabled:i.isEnd||l})]}),e.jsx(D,{variant:"secondary",onClick:_,children:"Ver más"})]}),e.jsx(X,{ref:r,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:w=>e.jsx("div",{style:{textAlign:"center",marginTop:16,cursor:"pointer"},onClick:()=>d(w.promotion),children:e.jsx("img",{src:`https://olimpo.bet${w.image!==""?w.image:w.summary_image}`,alt:w.title,style:{width:"100%",height:typeof window!="undefined"&&window.innerWidth<768?"80px":"137px",borderRadius:8,display:"block",objectFit:"cover"}})},`${w.title}-${w.image}`),onMove:({isStart:w,isEnd:C})=>c({isStart:w,isEnd:C})})]})}const ce="__ORACULO_EXTRAS__";function Xe(){const t=globalThis;return t[ce]||(t[ce]={}),t[ce]}function mn(t){Xe().extras=t}function Z(t){var n;return(n=Xe().extras)==null?void 0:n[t]}function fn(){delete globalThis[ce]}function Ee({items:t,title:n="Top Juegos",iconUrl:o,onCardClick:s}){const a=g.useMemo(()=>(t!=null?t:[]).map((l,m)=>{var f;return{...l,orden:(f=l.orden)!=null?f:m+1,_originalIndex:m}}).sort((l,m)=>l.orden!=null&&m.orden!=null?l.orden-m.orden:l._originalIndex-m._originalIndex),[t]),r=!t||t.length===0,i=r?Array.from({length:6}):a.slice(0,6),c=l=>{const m=Z("showIframe"),f=Z("loadMachine");m==null||m(),requestAnimationFrame(()=>{f==null||f(l,!1,"CASINO")})};return e.jsx("section",{style:{width:"100%"},children:e.jsxs(A.default,{direction:"column",spacing:2,useFlexGap:!0,children:[e.jsx(J,{title:n,iconUrl:o,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:i.map((l,m)=>{var f,_;return e.jsx(Ae,{imageUrl:r?"":l.background?`https://olimpo.bet${l.background}`:`https://olimpo.bet${(f=l.logo)!=null?f:""}`,orden:r?m+1:l.orden,loading:r,onClick:r?void 0:()=>{s==null||s(l),c(l)}},r?`sk-${m}`:(_=l.machine)!=null?_:`${m}`)})})]})})}const hn=(t,n)=>{var o,s;return(s=(o=t.orden)!=null?o:t.machine)!=null?s:n},Ye=({items:t,title:n="Casino en vivo",subtitle:o="Disfruta la emoción en tus juegos favoritos y gana en tiempo real.",backgroundMobileUrl:s="",backgroundDesktopUrl:a="",onViewMore:r,className:i})=>{const c=l=>{const m=Z("showIframe"),f=Z("loadMachine");m==null||m(),typeof window!="undefined"&&window.scrollTo({top:0,behavior:"smooth"}),requestAnimationFrame(()=>{f==null||f(l,!1,"casino_en_vivo")})};return e.jsxs(N.default,{className:i,sx:{position:"relative",color:"white",overflow:"hidden"},children:[e.jsx(N.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"),U=require("@mui/material"),ut=require("@mui/material/Skeleton"),_=require("react"),Fe=require("@splidejs/react-splide"),pt=require("@mui/material/Box"),ft=require("@mui/material/Typography"),mt=require("@mui/material/Stack"),se=require("@mui/icons-material"),ht=require("@mui/icons-material/ChevronLeftRounded"),xt=require("@mui/icons-material/ChevronRightRounded"),gt=require("@mui/material/useMediaQuery"),Ce=require("firebase/firestore"),Q=t=>t&&t.__esModule?t:{default:t},W=Q(ut),Me=Q(_),N=Q(pt),K=Q(ft),A=Q(mt),Be=Q(ht),Le=Q(xt),bt=Q(gt);function D({children:t,onClick:n,href:o,target:s,rel:a,type:r="button",disabled:i=!1,variant:c="primary",size:l,fullWidth:m=!1,fullHeight:x=!1,className:v="",ariaLabel:d,leftIcon:y,rightIcon:w,iconOnly:O}){const j=!!t&&t!==!0,S=(!!y?1:0)+(!!w?1:0)==1,f=O!=null?O:S&&!j,E=["orc-btn",c==="secondary"?"orc-btn--secondary":c==="tertiary"?"orc-btn--tertiary":"orc-btn--primary",l?`orc-btn--${l}`:"",m?"orc-btn--full":"",x?"orc-btn--fullHeight":"",f?"orc-btn--iconOnly":"",v].filter(Boolean).join(" "),C=e.jsxs(e.Fragment,{children:[y&&e.jsx("span",{className:"orc-btn__icon",children:y}),!f&&e.jsx("span",{className:"orc-btn__label",children:t}),w&&e.jsx("span",{className:"orc-btn__icon",children:w})]}),k=i?!0:void 0;return o?e.jsx(U.Link,{href:o,target:s,rel:a,"aria-label":d,"aria-disabled":k,tabIndex:k?-1:void 0,className:E,onClick:k?$=>$.preventDefault():n,children:C}):e.jsx("button",{type:r,onClick:n,disabled:!!k,"aria-label":d,className:E,children:C})}function J({title:t,iconUrl:n,size:o="md",className:s=""}){const r=["orc-section-title",o?`orc-section-title--${o}`:"",s].filter(Boolean).join(" ");return e.jsxs("div",{className:r,children:[n&&e.jsx("img",{src:n,alt:"",className:"orc-section-title__icon"}),e.jsx("h2",{className:"orc-section-title__title",children:t})]})}const _e=({total:t,active:n,onSelect:o,className:s=""})=>{if(t<=1)return null;const a=["orc-dots",s].filter(Boolean).join(" ");return e.jsx("div",{className:a,role:"tablist",children:Array.from({length:t}).map((r,i)=>e.jsx("span",{className:"orc-dots__cell",children:e.jsx("button",{type:"button",role:"tab","aria-selected":i===n,"aria-label":`Ir al slide ${i+1}`,className:"orc-dots__dot"+(i===n?" orc-dots__dot--active":""),onClick:()=>o==null?void 0:o(i)})},i))})};function H({children:t,minWidth:n=32,spacing:o=2,justify:s="stretch",columns:a=null}){const r=a||`repeat(auto-fit, minmax(${n}px, 1fr))`,i=typeof o=="number"?`${o*8}px`:o;return e.jsx("div",{style:{display:"grid",gridTemplateColumns:r,justifyItems:s,gap:i,height:"inherit"},children:t})}function ge({src:t,alt:n}){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:n,sx:{position:"absolute",top:0,left:0,width:"100%",height:"100%",objectFit:"contain"}})})}const _t="oraculo__OraculoEventTitle-module__contenedor___rg1vw",vt="oraculo__OraculoEventTitle-module__flexGroup___jMLFO",jt="oraculo__OraculoEventTitle-module__subtitle___TmHna",fe={contenedor:_t,flexGroup:vt,subtitle:jt};function wt({title:t,subtitle:n}){return e.jsxs("div",{className:fe.contenedor,children:[e.jsx("span",{style:{fontWeight:700,fontSize:"12px",lineHeight:"16px"},children:t}),n&&e.jsxs("div",{className:fe.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:fe.subtitle,children:n}),e.jsx("div",{})]})]})}function Pe({text:t,color:n="#ff3b3b",textColor:o="#fff"}){return e.jsx("span",{className:"oli-font",style:{backgroundColor:n,color:o,borderRadius:"8px",padding:"4px 8px",fontSize:"12px",lineHeight:"16px",fontWeight:700,width:"41px",height:"16px",textAlign:"center"},children:t})}function We({live:t,time:n}){return e.jsxs("div",{className:"oli-font",style:{display:"flex",alignItems:"center",gap:"8px"},children:[t&&e.jsx(Pe,{text:"En vivo"}),n&&e.jsx("span",{style:{fontSize:"14px",fontWeight:400,lineHeight:"18px",paddingTop:"4px"},children:n})]})}function Ae({title:t,subtitle:n,live:o=!1,time:s=""}){return e.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",color:"#FFFFFF"},children:[e.jsx(wt,{title:t,subtitle:n}),e.jsx(We,{live:o,time:s})]})}const yt="oraculo__OraculoEventLabel-module__label___c64Xw",St={label:yt};function ve({text:t}){return e.jsx("span",{className:St.label,children:t})}const Et="oraculo__OraculoEventLeague-module__container___rdk4F",Ct={container:Et};function je({title:t}){return e.jsx("div",{className:Ct.container,children:t.toUpperCase()})}const Ot="oraculo__OraculoEventScore-module__scoreWrapper___fWwEr",kt="oraculo__OraculoEventScore-module__name___r4uL6",It="oraculo__OraculoEventScore-module__score___Xl03M",$t="oraculo__OraculoEventScore-module__normal___cCNFz",Nt="oraculo__OraculoEventScore-module__small___fVt8E",oe={scoreWrapper:Ot,name:kt,score:It,normal:$t,small:Nt};function we({text:t,name:n,size:o="normal"}){return e.jsxs("div",{className:`${oe.scoreWrapper} ${oe[o]}`,children:[e.jsx("div",{className:`${oe.score} ${oe[o]}`,children:t}),n&&e.jsx("span",{className:`${oe.name} ${oe[o]}`,children:n})]})}const Rt="oraculo__OraculoEventTeamInfo-module__team___UfpUs",Tt="oraculo__OraculoEventTeamInfo-module__regular___ag826",Ft="oraculo__OraculoEventTeamInfo-module__compact___RCNOs",Mt="oraculo__OraculoEventTeamInfo-module__logo___fKCl3",Bt="oraculo__OraculoEventTeamInfo-module__name___4ikm-",Lt="oraculo__OraculoEventTeamInfo-module__skeleton___Yfaxh",re={team:Rt,regular:Tt,compact:Ft,logo:Mt,name:Bt,skeleton:Lt},Pt="oraculo__OraculoTeamPolo-module__polo___BisRg",Wt="oraculo__OraculoTeamPolo-module__svgWrapper___HRKNX",At="oraculo__OraculoTeamPolo-module__shadow___-3DXb",zt="oraculo__OraculoTeamPolo-module__highlight___1etm7",le={polo:Pt,svgWrapper:Wt,shadow:At,highlight:zt};function Gt({jersey:t,className:n}){const o=`#${t.base}`,s=t.sleeve?`#${t.sleeve}`:o,a=t.stripes?`#${t.stripes}`:null,r=t.sleevelong?`#${t.sleevelong}`:null;return e.jsxs("div",{className:`${le.polo} ${n!=null?n:""}`,children:[e.jsx("div",{className:le.svgWrapper,children:e.jsxs("svg",{viewBox:"0 0 656 656","aria-hidden":!0,children:[e.jsx("path",{fill:o,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.5c4.2 2.2 13.1 7.1 15.2 8.7 2 1.6 30.1 15.4 44 22 8 3.2 39 12.3 55.3 30 5.2 4.3 7 7.8 11.4 12.4 5.1 5.3 15.1 29 16.9 32 1.4 2.6 5 17 6.8 24l4.8 20.5 8.4 29 8.9 22.7 2.3 5.4.6 1.5c.5.6 1.4 2 1 2.6-.2.6 0 2 .2 2.7l1 2.6 2 5.8 2.2 5.9c.3 1.3-4.3 4-6.6 5.2l-11.1 5-12.6 4.7-15 5-14.6 4.6-10.9 2.4a66 66 0 0 1-8.6 1.4c-3.4.3-4.7-.4-4.9-.8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.4-6-3.3-8.3-2.3-6a3896.4 3896.4 0 0 0-3.1-8.4l-2.2-7.1-1.5-5.7-2.5-8.9-1-3.1-1.2-4.5-2-8.2-2.2-9.3-2.8-11.4-2.6-9.1-.9-3c0-.3-.6-1.5-1-2l-2.5-5.6-3-6.6-5.7-11.3-2.5-4.3-2.3-3.3-.7-.7-4.3-5-3-3.8a73 73 0 0 0-4.2-3.8c-1.1-2-7.6-7-10.8-9.4-6.2-5-23.4-12.8-34-16.7l-11-4-16-7.9-20.1-10-7.1-3.8-2.4-1.5-13-7.3-2.6-3.4-5-3Z"}),e.jsx("path",{fill:a,d:"M292.1 648.8c-15.7-1.4-37.7-5-49.7-7.1-4.3-.6-22.6-5.3-35.5-9.5 1.5-10 3-21 4.3-32.7 7-60.5 4.8-132.8 3.1-185.6l-.9-32c-1-49-2.4-83.5-3.6-112-1.2-29-2.1-51.7-2.1-77 0-29 2.9-77.3 5.3-112.9l2.6-1c1.3-.3 10.1-2 14.4-2.7l10-3.2 6.6-3.7 9-5 4-2 .5-.3c1.2 2 2.6 4.1 3.4 4.8l6.1 7.8 15 14.6 4.8 4c-.6 26.4-1.1 60.6-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.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7-4.3-5-3-3.8a73 73 0 0 0-4.2-3.8c-1.1-2-7.6-7-10.8-9.4-6.2-5-23.4-12.8-34-16.7l-11-4-16-7.9-20.1-10-7.1-3.8-2.4-1.5-13-7.3-2.6-3.4-5-3Z"})}),e.jsx("path",{fill:s,fillRule:"evenodd",d:"m262.9 19.6-3.7 3.8-3.5 3.3-2.7 2.1c-2 1.6-5 5.7-1 17.1 4 9.8 5.2 12 5.3 11.9 1.4 2.5 4.4 7.9 5.9 9.1l6 7.8 15 14.6 10.5 8.7 12.6 11.3 8.3 6.2 7.6.6 17 .8 9.2-6.6 7-5.6 10.3-9 7-5.7 5.3-5.2 3.6-3.6 3.4-3.4 4.2-5 4-5.3 2.7-4C403.5 53 407 40 406 37.3c0-1.3-.9-4.6-3.9-7.2A129 129 0 0 1 391.2 20c-.8-1.1-4.2-4.3-7.3-6a52 52 0 0 0-15.3-3.9L353.5 9l-10.2-.4-15.4-.4H301.6c-4.6.2-14.6.6-17.2 1.2l-3.4.6c-3.2.5-6.9 1-8.4 2l-1.4.8c-1.5.7-2.8 1.4-5 3.7l-3.3 3.2Zm4.3 14 1.9 5.5 4.6 8.2 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:s,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:s,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:le.shadow,alt:"","aria-hidden":!0}),e.jsx("img",{src:"https://widgets.sir.sportradar.com/assets/media/highlight.b1ac6c3e.png",className:le.highlight,alt:"","aria-hidden":!0})]})}function ie({name:t,jersey:n,size:o="regular"}){return e.jsxs("div",{className:`oli-font ${re.team} ${re[o]}`,children:[n!=null&&n.base?e.jsx(Gt,{jersey:n,className:`${re.logo}`}):e.jsx(W.default,{variant:"circular",className:`${re.logo} ${re.skeleton}`}),e.jsx("span",{className:re.name,children:t})]})}function Ut(t,n,{enabled:o=!0}={}){const s=_.useRef(null);_.useEffect(()=>{if(!o)return;const a=t.current;if(!a)return;const r=i=>{const c=n.current;if(!c||!c.go)return;const{deltaX:l,deltaY:m}=i;if(Math.abs(l)<=Math.abs(m)||Math.abs(l)<2)return;i.preventDefault();const x=l>0?">":"<";s.current===null&&(s.current=requestAnimationFrame(()=>{s.current=null,c.go(x)}))};return a.addEventListener("wheel",r,{passive:!1}),()=>{a.removeEventListener("wheel",r),s.current&&cancelAnimationFrame(s.current)}},[o,t,n])}const Dt=Fe.Splide,Vt=Fe.SplideSlide,X=_.forwardRef(({items:t=[],renderItem:n,perPage:o=1,gap:s="0px",breakpoints:a,options:r={},className:i="",onMove:c,useIndexAsKey:l=!1,enableHorizontalWheel:m=!0},x)=>{const v=_.useRef(null),d=_.useRef(null),y=_.useRef(t.length);Ut(d,v,{enabled:m}),_.useImperativeHandle(x,()=>({next:()=>{var f;return(f=v.current)==null?void 0:f.go(">")},prev:()=>{var f;return(f=v.current)==null?void 0:f.go("<")},go:f=>{var E;return(E=v.current)==null?void 0:E.go(f)}}));const w=f=>{var u;const E=f.Components.Slides,C=f.Components.Controller,k=f.root.querySelector(".splide__track"),$=(u=k==null?void 0:k.clientWidth)!=null?u:0,R=C.getIndex(),P=E.getLength();let M=0,p=R;for(let b=R;b<P;b++){const h=E.getAt(b);if(!h||(M+=h.slide.offsetWidth,M>$))break;p=b}return{visibleStart:R,visibleEnd:p}},O=f=>{const E=f.root.querySelector(".splide__track"),C=f.root.querySelector(".splide__list");return!E||!C?!1:C.scrollWidth>E.clientWidth+1},j=_.useCallback(f=>{const C=f.Components.Slides.getLength();if(!O(f)){c==null||c({index:0,isStart:!0,isEnd:!0,total:C,visibleStart:0,visibleEnd:C-1});return}const{visibleStart:k,visibleEnd:$}=w(f),R=k===0,P=$===C-1,M=f.Components.Controller.getIndex();c==null||c({index:M,isStart:R,isEnd:P,total:C,visibleStart:k,visibleEnd:$})},[c]);Me.default.useEffect(()=>{var C;const f=(C=v.current)==null?void 0:C.splide;if(!f)return;const E=y.current!==t.length;y.current=t.length,E&&requestAnimationFrame(()=>{f.refresh(),j(f)})},[t.length,j]);const F=_.useCallback(()=>{var E;const f=(E=v.current)==null?void 0:E.splide;f&&(f.go(0,!1),j(f))},[j]),L=_.useCallback(f=>{j(f)},[j]),S={type:"slide",trimSpace:!1,drag:!0,pagination:!1,arrows:!1,rewind:!1,focus:"start",autoWidth:!1,perPage:o,gap:s,breakpoints:a,...r,...m?{wheel:!1}:{}};return e.jsx("div",{ref:d,className:i,style:{width:"100%"},children:e.jsx(Dt,{ref:v,options:S,onMove:j,onMounted:L,onResize:F,children:t.map((f,E)=>{var C;return e.jsx(Vt,{children:n(f,E)},l?E:(C=f.id)!=null?C:E)})})})}),ae=({imageUrl:t,onClick:n,size:o="sm",fillParent:s=!1})=>{const a=o==="lg"?{w:280,h:352}:{w:152,h:168},r=c=>{c.stopPropagation(),n==null||n()},i=s?{width:"100%",height:"100%"}:{width:`${a.w}px`,height:`${a.h}px`};return e.jsxs(N.default,{onClick:n,role:"button",sx:{position:"relative",borderRadius:"12px",overflow:"hidden",boxSizing:"border-box",transition:"transform .15s ease, box-shadow .15s ease",...i,"&: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(D,{variant:"primary",size:"md",onClick:r,children:"Jugar"})})]})};function ze({imageUrl:t,orden:n=1,onClick:o,loading:s=!1,sizes:a={xs:{w:104,h:112,r:18,font:48},md:{w:186,h:264,r:22.6,font:64}}}){var v,d,y,w;const r=(O,j)=>{var F,L,S,f;return{xs:(L=(F=a.xs)==null?void 0:F[O])!=null?L:j,md:(f=(S=a.md)==null?void 0:S[O])!=null?f:j}},i=r("w",186),c=r("h",264),l=r("r",22.6),m=r("font",64),x={xs:Math.round(((d=(v=a.xs)==null?void 0:v.font)!=null?d:64)*.28),md:Math.round(((w=(y=a.md)==null?void 0:y.font)!=null?w:64)*.28)};return e.jsxs(N.default,{sx:{position:"relative",width:"100%",maxWidth:{xs:`${i.xs}px`,md:`${i.md}px`},aspectRatio:{xs:`${i.xs}/${c.xs}`,md:`${i.md}/${c.md}`},borderRadius:{xs:`${l.xs}px`,md:`${l.md}px`},boxSizing:"border-box",overflow:"visible",pb:{xs:`${x.xs}px`,md:`${x.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:s?e.jsx(W.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(ae,{imageUrl:t,onClick:o,size:"lg",fillParent:!0})}),e.jsx(N.default,{component:"span",sx:{position:"absolute",left:8,bottom:{xs:`-${x.xs}px`,md:`-${x.md}px`},fontFamily:"secondary",fontSize:{xs:`${m.xs}px`,md:`${m.md}px`},lineHeight:1,color:"#3CC666",WebkitTextStroke:"1px #9ee86e",zIndex:3,userSelect:"none"},children:n})]})}const Ge=({logo:t,provider:n,providerName:o,machine:s,onClick:a})=>{var r;return e.jsxs(N.default,{onClick:a,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 ${s!=null?s:""}`,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(K.default,{sx:{color:"#fff",fontWeight:700,fontSize:{xs:11,md:14},textTransform:"capitalize"},children:(r=n!=null?n:o)!=null?r:""})})]})},me=12,he=({r:t=16})=>e.jsx(N.default,{sx:{width:"100%",height:"100%",borderRadius:t,overflow:"hidden"},children:e.jsx(W.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)"}}})}),ye=({items:t,layout:n="grid",onClick:o,loading:s=!1,gridSkeletonCount:a=4})=>{var r,i;if(n==="mosaic"){const c=t[0],l=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:`${me}px`,rowGap:`${me}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:s?e.jsx(he,{}):c&&e.jsx(ae,{imageUrl:`https://olimpo.bet${(i=(r=c.background)!=null?r:c.imageUrl)!=null?i:""}`,size:"lg",fillParent:!0,onClick:()=>o==null?void 0:o(c,0)})}),(s?Array.from({length:4}):l).map((m,x)=>{var v,d;return e.jsx(N.default,{sx:{width:{xs:104,md:152},height:{xs:112,md:168},overflow:"hidden",borderRadius:2},children:s?e.jsx(he,{}):e.jsx(ae,{imageUrl:`https://olimpo.bet${(d=(v=m.background)!=null?v:m.imageUrl)!=null?d:""}`,size:"sm",fillParent:!0,onClick:()=>o==null?void 0:o(m,x+1)})},s?`sk-${x}`:m.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:`${me}px`,gridAutoFlow:"column"},children:(s?Array.from({length:a}):t).map((c,l)=>{var m,x,v;return e.jsx(N.default,{sx:{overflow:"hidden",borderRadius:2},children:s?e.jsx(he,{}):e.jsx(ae,{imageUrl:`https://olimpo.bet${(x=(m=c.background)!=null?m:c.imageUrl)!=null?x:""}`,size:"sm",fillParent:!0,onClick:()=>o==null?void 0:o(c,l)})},s?`sk-${l}`:(v=c.id)!=null?v:l)})})},be=({title:t,amount:n,subtitle:o,buttonText:s,onButtonClick:a,backgroundImage:r,alt:i,className:c="",variant:l="small"})=>{const m=n?n.slice(0,2):"",x=n?n.slice(2):"",v=l==="large";return e.jsxs(N.default,{className:c,sx:{position:"relative",width:"100%",maxWidth:{xs:328,md:v?618:456},mx:"auto"},children:[r&&e.jsx(N.default,{sx:{position:"relative",width:"100%",aspectRatio:{xs:"328 / 188",md:v?"618 / 346":"456 / 272"},borderRadius:"14px",overflow:"hidden"},children:e.jsx(N.default,{component:"img",src:r,alt:i!=null?i:"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(K.default,{sx:{fontSize:{xs:12,md:20},fontWeight:400,color:"#e7f8ff"},children:t}),n&&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:m}),e.jsx(N.default,{component:"span",sx:{fontSize:{xs:52,md:77}},children:x})]}),o&&e.jsx(K.default,{sx:{pb:"20px",fontSize:14,fontWeight:600,color:"#e7f8ff"},children:o}),s&&e.jsx(D,{onClick:a,children:s})]})})]})},Ue=({text:t,buttonLabel:n="Conoce más",onClick:o,imgAlt:s="Club Olimpo",imgSrcMobile:a,imgSrcDesktopBg:r,imgSrcDesktopLogo:i})=>e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"orc-co-bgMobile",children:e.jsx("img",{src:a,alt:s,className:"orc-co-bgMobileImg"})}),e.jsxs("div",{className:"orc-co-bgDesktop",children:[r&&e.jsx("div",{className:"orc-co-fillHost",children:e.jsx("img",{src:r,alt:`${s} fondo`,className:"orc-co-bgDesktopImg"})}),e.jsxs("div",{className:"orc-co-desktopContent",children:[i&&e.jsx("img",{src:i,alt:`${s} logo`,className:"orc-co-logoImg"}),e.jsx("p",{className:"orc-co-captionDesktop",children:t}),e.jsx(D,{onClick:o,variant:"primary",size:"md",children:n})]})]}),e.jsxs("div",{className:"orc-co-bottom",children:[e.jsx("p",{className:"orc-co-caption",children:t}),e.jsx(D,{onClick:o,variant:"primary",size:"md",children:n})]})]}),Ht="oraculo__OraculoEventCombinadasCard-module__card___ulQeY",qt="oraculo__OraculoEventCombinadasCard-module__combinadas___Gxrld",Kt="oraculo__OraculoEventCombinadasCard-module__apuestaItem___YnYMy",Jt="oraculo__OraculoEventCombinadasCard-module__lineContainer___G5rbU",Xt="oraculo__OraculoEventCombinadasCard-module__circle___eehm-",Yt="oraculo__OraculoEventCombinadasCard-module__line___Eb2pK",Zt="oraculo__OraculoEventCombinadasCard-module__apuestaText___b5s7S",Qt="oraculo__OraculoEventCombinadasCard-module__cuotaTotal___Lohvu",Y={card:Ht,combinadas:qt,apuestaItem:Kt,lineContainer:Jt,circle:Xt,line:Yt,apuestaText:Zt,cuotaTotal:Qt};function Se(t){const n=Array.isArray(t)?t:[t];sessionStorage.setItem("landingOutcomes",JSON.stringify(n)),window.location.href="/deportes#in-play"}function en(){window.location.href="/deportes#in-play"}function tn(){window.location.href="/deportes#sports-hub/football"}function nn(){window.location.href="/deportes#specials"}async function De(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 Ve(t,n=250){const[o,s]=_.useState(t);return _.useEffect(()=>{const a=setTimeout(()=>s(t),n);return()=>clearTimeout(a)},[t,n]),o}function He({event:t}){var s;function n(a){var x;const r=(x=a.betoffers)!=null?x:[],i=a.homeName,c=a.awayName,l=r.map(v=>{var O,j,F,L,S;let d=v.outcomes[0],y="",w=d!=null&&d.line?d.line/1e3:"";return["Más de","Mas de","Over"].includes(d==null?void 0:d.label)?(y=`Más de ${w}`,d!=null&&d.participant&&(y=`${d.participant} - ${y}`)):["Menos de","Menos"].includes(d==null?void 0:d.label)?(y=`Menos de ${w}`,d!=null&&d.participant&&(y=`${d.participant} - ${y}`)):["Sí","No"].includes(d==null?void 0:d.label)?(y=d==null?void 0:d.label,d!=null&&d.participant&&(y=`${d.participant} - ${y}`)):["1X","12","X2"].includes(d==null?void 0:d.label)?d.label==="1X"?y=`${i} o Empate`:d.label==="12"?y=`${i} o ${c}`:d.label==="X2"&&(y=`${c} o Empate`):(d!=null&&d.participant?y=d.participant:y=(O=d==null?void 0:d.label)!=null?O:"",w!==""&&y===d.label&&(y=`${d.label} ${w}`)),{id:(j=d==null?void 0:d.id)!=null?j:0,value:y,label:v.criterion.label,odds:(F=d==null?void 0:d.odds)!=null?F:0,bl:(L=d==null?void 0:d.label)!=null?L:0,position:(S=d==null?void 0:d.position)!=null?S:0}}),m=l.reduce((v,d)=>v+d.odds,0)/1e3;return{outcomes:l,total:m.toFixed(2)}}const o=n(t);return e.jsxs("div",{className:Y.card,children:[e.jsx("div",{className:Y.combinadas,children:e.jsxs(A.default,{direction:"column",spacing:.5,useFlexGap:!0,children:[e.jsx(J,{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:o.outcomes.sort((a,r)=>a.position-r.position).map((a,r)=>e.jsxs("div",{className:Y.apuestaItem,children:[e.jsxs("div",{className:Y.lineContainer,children:[e.jsx("div",{className:Y.circle}),r<o.outcomes.length-1&&e.jsx("div",{className:Y.line})]}),e.jsxs("div",{className:Y.apuestaText,children:[e.jsx("strong",{children:a.value})," ","| ",a.label]})]},r))})]})}),e.jsxs("button",{onClick:()=>{var a,r;return Se((r=(a=o==null?void 0:o.outcomes)==null?void 0:a.map(i=>i==null?void 0:i.id))!=null?r:[])},className:Y.cuotaTotal,children:[e.jsxs("span",{children:["Cuota total: ",e.jsx("strong",{children:(((s=t.combinadoTotal)!=null?s:0)/1e3).toFixed(2)})]}),e.jsx("img",{loading:"lazy",src:"/assets/img/home/Combinadas/cuotaTotal.svg",alt:"cuota total"})]})]})}const q={"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 on({children:t,onClick:n,href:o,target:s,rel:a,type:r="button",disabled:i=!1,variant:c="primary",size:l,fullWidth:m=!1,fullHeight:x=!1,className:v="",ariaLabel:d,leftIcon:y,rightIcon:w,iconOnly:O}){const j=!!t&&t!==!0,S=(!!y?1:0)+(!!w?1:0)==1,f=O!=null?O:S&&!j,E=[q["orc-btn"],q[`orc-btn--${c}`],l?q[`orc-btn--${l}`]:"",m?q["orc-btn--full"]:"",x?q["orc-btn--fullHeight"]:"",f?q["orc-btn--iconOnly"]:"",v].filter(Boolean).join(" "),C=e.jsxs(e.Fragment,{children:[y&&e.jsx("span",{className:q["orc-btn__icon"],children:y}),!f&&e.jsx("span",{className:q["orc-btn__label"],children:t}),w&&e.jsx("span",{className:q["orc-btn__icon"],children:w})]}),k=i?!0:void 0;return o?e.jsx(U.Link,{href:o,target:s,rel:a,"aria-label":d,"aria-disabled":k,tabIndex:k?-1:void 0,className:E,onClick:k?$=>$.preventDefault():n,children:C}):e.jsx("button",{type:r,onClick:n,disabled:!!k,"aria-label":d,className:E,children:C})}const rn="oraculo__OraculoEventEnVivoCard-module__cardWrapper___6b-cT",qe={cardWrapper:rn},Oe={base:"FFFFFF",sleeve:"FFFFFF",number:"000000",real:!1,type:"short_sleeves"},ke={base:"000000",sleeve:"000000",number:"FFFFFF",real:!1,type:"short_sleeves"},de=(t,n,o="player")=>{var a,r;if(t===void 0)return null;if(t===null)return n==="home"?Oe:ke;const s=(r=(a=t==null?void 0:t.jerseys)==null?void 0:a[n])==null?void 0:r[o];return s||(n==="home"?Oe:ke)};function Ke({event:t,liveData:n,betOffers:o,jersey:s}){var r,i,c,l,m,x,v,d,y,w,O;const a=o==null?void 0:o.find(j=>{var F;return((F=j.betOfferType)==null?void 0:F.id)===2});return e.jsx("div",{className:qe.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(Ae,{title:(c=(i=(r=t==null?void 0:t.path)==null?void 0:r[0])==null?void 0:i.name)!=null?c:"",subtitle:(l=t==null?void 0:t.group)!=null?l:"",live:!0,time:((m=n==null?void 0:n.matchClock)==null?void 0:m.minute)!=null?`${n.matchClock.minute}'`:""}),e.jsx("div",{style:{padding:"0 4px"},children:e.jsxs(H,{spacing:1.5,columns:"1fr auto 1fr",children:[e.jsx(ie,{name:t==null?void 0:t.homeName,jersey:de(s,"home")}),e.jsx(we,{text:((v=(x=n==null?void 0:n.score)==null?void 0:x.home)!=null?v:0)+":"+((y=(d=n==null?void 0:n.score)==null?void 0:d.away)!=null?y:0),name:"En vivo"}),e.jsx(ie,{name:t==null?void 0:t.awayName,jersey:de(s,"away")})]})})]}),e.jsxs(A.default,{direction:"column",spacing:1,useFlexGap:!0,children:[e.jsx(H,{spacing:1,children:((w=a==null?void 0:a.outcomes)!=null?w:[]).map((j,F)=>e.jsx(ve,{text:j.label.toUpperCase()},F))}),e.jsx(H,{spacing:2,children:((O=a==null?void 0:a.outcomes)!=null?O:[]).map((j,F)=>e.jsx(on,{variant:"primary",disabled:j.odds==null||(a==null?void 0:a.cashOutStatus)=="SUSPENDED",onClick:()=>{Se(j.id)},children:j.odds===void 0?"":(j.odds/1e3).toFixed(2)},F))})]})]})})}const sn="oraculo__OraculoEventDate-module__date___xhIlh",an={date:sn};function ln({text:t}){return e.jsx("div",{className:`oli-font ${an.date}`,children:t})}const cn="oraculo__OraculoEventSemanaCard-module__cardContainer___4JuDe",dn="oraculo__OraculoEventSemanaCard-module__cardBackground___vfalD",un="oraculo__OraculoEventSemanaCard-module__jugadas___W8b7H",pn="oraculo__OraculoEventSemanaCard-module__equipos___G5hLn",te={cardContainer:cn,cardBackground:dn,jugadas:un,equipos:pn};function Je({event:t,jersey:n}){var s,a,r,i,c,l,m;function o(x){const v=new Date(x),d=v.toLocaleDateString("es-ES",{weekday:"short"}).toUpperCase(),y=v.getDate().toString().padStart(2,"0"),w=(v.getMonth()+1).toString().padStart(2,"0");let O=v.toLocaleTimeString("es-PE",{hour:"numeric",minute:"2-digit",hour12:!0}).toUpperCase();return O=O.replace(/\./g,"").replace(/A\s*M/i,"AM").replace(/P\s*M/i,"PM"),`${d} ${y}/${w} | ${O}`}return e.jsxs("div",{className:te.cardContainer,children:[e.jsx(je,{title:(s=t==null?void 0:t.group)!=null?s:""}),e.jsx("div",{className:te.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:te.equipos,children:[e.jsx(ie,{name:t.homeName,size:"compact",jersey:de(n,"home")}),e.jsx(we,{text:"vs.",name:"",size:"small"}),e.jsx(ie,{name:t.awayName,size:"compact",jersey:de(n,"away")})]}),e.jsx(ln,{text:o(t.start)})]}),e.jsxs(A.default,{direction:"column",spacing:{xs:.5,md:1},useFlexGap:!0,children:[e.jsx(H,{spacing:1,children:((i=(r=(a=t==null?void 0:t.outcome)==null?void 0:a[0])==null?void 0:r.outcomes)!=null?i:[]).map((x,v)=>e.jsx(ve,{text:x.label.toUpperCase()},v))}),e.jsx("div",{className:te.jugadas,children:e.jsx(H,{spacing:1,children:((m=(l=(c=t==null?void 0:t.outcome)==null?void 0:c[0])==null?void 0:l.outcomes)!=null?m:[]).map((x,v)=>e.jsx(D,{variant:"primary",fullHeight:!0,onClick:()=>{Se(x.id)},children:(x.odds/1e3).toFixed(2)},v))})})]})]})})]})}function Xe({items:t,title:n="Destacados",iconUrl:o,onViewMore:s,className:a=""}){const r=_.useRef(null),[i,c]=_.useState({isStart:!0,isEnd:!1}),l=!t||t.length===0,m=()=>{var w;return(w=r.current)==null?void 0:w.prev()},x=()=>{var w;return(w=r.current)==null?void 0:w.next()},v=()=>{window.location.href="https://www.olimpo.bet/promociones"},d=w=>{if(!w||typeof window=="undefined")return;const j=`https://www.olimpo.bet/promociones/${encodeURIComponent(w)}`;window.location.href=j},y=a||void 0;return e.jsxs("section",{className:y,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(J,{title:n,iconUrl:o,size:"md"}),e.jsxs("div",{style:{display:"flex",gap:8},children:[e.jsx(D,{ariaLabel:"Anterior",variant:"secondary",iconOnly:!0,leftIcon:e.jsx(se.ChevronLeftRounded,{}),onClick:m,disabled:i.isStart||l}),e.jsx(D,{ariaLabel:"Siguiente",variant:"secondary",iconOnly:!0,rightIcon:e.jsx(se.ChevronRightRounded,{}),onClick:x,disabled:i.isEnd||l})]}),e.jsx(D,{variant:"secondary",onClick:v,children:"Ver más"})]}),e.jsx(X,{ref:r,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:w=>e.jsx("div",{style:{textAlign:"center",marginTop:16,cursor:"pointer"},onClick:()=>d(w.promotion),children:e.jsx("img",{src:`https://olimpo.bet${w.image!==""?w.image:w.summary_image}`,alt:w.title,style:{width:"100%",height:typeof window!="undefined"&&window.innerWidth<768?"80px":"137px",borderRadius:8,display:"block",objectFit:"cover"}})},`${w.title}-${w.image}`),onMove:({isStart:w,isEnd:O})=>c({isStart:w,isEnd:O})})]})}const ce="__ORACULO_EXTRAS__";function Ye(){const t=globalThis;return t[ce]||(t[ce]={}),t[ce]}function fn(t){Ye().extras=t}function Z(t){var n;return(n=Ye().extras)==null?void 0:n[t]}function mn(){delete globalThis[ce]}function Ee({items:t,title:n="Top Juegos",iconUrl:o,onCardClick:s}){const a=_.useMemo(()=>(t!=null?t:[]).map((l,m)=>{var x;return{...l,orden:(x=l.orden)!=null?x:m+1,_originalIndex:m}}).sort((l,m)=>l.orden!=null&&m.orden!=null?l.orden-m.orden:l._originalIndex-m._originalIndex),[t]),r=!t||t.length===0,i=r?Array.from({length:6}):a.slice(0,6),c=l=>{const m=Z("showIframe"),x=Z("loadMachine");m==null||m(),requestAnimationFrame(()=>{x==null||x(l,!1,"CASINO")})};return e.jsx("section",{style:{width:"100%"},children:e.jsxs(A.default,{direction:"column",spacing:2,useFlexGap:!0,children:[e.jsx(J,{title:n,iconUrl:o,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:i.map((l,m)=>{var x,v;return e.jsx(ze,{imageUrl:r?"":l.background?`https://olimpo.bet${l.background}`:`https://olimpo.bet${(x=l.logo)!=null?x:""}`,orden:r?m+1:l.orden,loading:r,onClick:r?void 0:()=>{s==null||s(l),c(l)}},r?`sk-${m}`:(v=l.machine)!=null?v:`${m}`)})})]})})}const hn=(t,n)=>{var o,s;return(s=(o=t.orden)!=null?o:t.machine)!=null?s:n},Ze=({items:t,title:n="Casino en vivo",subtitle:o="Disfruta la emoción en tus juegos favoritos y gana en tiempo real.",backgroundMobileUrl:s="",backgroundDesktopUrl:a="",onViewMore:r,className:i})=>{const c=l=>{const m=Z("showIframe"),x=Z("loadMachine");m==null||m(),typeof window!="undefined"&&window.scrollTo({top:0,behavior:"smooth"}),requestAnimationFrame(()=>{x==null||x(l,!1,"casino_en_vivo")})};return e.jsxs(N.default,{className:i,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('${s}')
@@ -6,7 +6,7 @@
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
8
  url('${a}')
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(A.default,{spacing:3,sx:{maxWidth:{md:280}},children:[e.jsx(K.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:n}),e.jsx(K.default,{sx:{fontSize:{xs:14,md:18},color:"rgba(255,255,255,0.9)",marginX:{xs:4,md:0},lineHeight:1.5},children:o}),e.jsx(N.default,{sx:{display:{xs:"none",md:"block"}},children:e.jsx(D,{variant:"primary",size:"md",onClick:()=>(r==null?void 0:r())||(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,m)=>{var f;return e.jsx(ze,{logo:`https://olimpo.bet${l.background?l.background:(f=l.logo)!=null?f:""}`,provider:l.provider,providerName:l.web_name,machine:l.machine,onClick:()=>c(l)},hn(l,m))})}),e.jsx(N.default,{sx:{display:{xs:"block",md:"none"}},children:e.jsx(D,{variant:"primary",size:"lg",onClick:()=>(r==null?void 0:r())||(window.location.href="https://www.olimpo.bet/casino-en-vivo"),children:"Ver más"})})]})]})},Ze=(t,n)=>{var o,s;return(s=(o=t.orden)!=null?o:t.machine)!=null?s:n},xn=(t,n=!0,o=4)=>{const s=t.map((i,c)=>{var l;return{id:Ze(i,c),imageUrl:(l=i.logo)!=null?l:"",...i.background?{background:i.background}:{}}});if(!s.length)return[];const a=[];let r=0;if(n){const i=Math.min(s.length,5);a.push({id:"mosaic-0",kind:"mosaic",items:s.slice(0,i)}),r=i}for(;r<s.length;){const i=Math.min(r+o,s.length);a.push({id:`grid-${r}`,kind:"grid",items:s.slice(r,i)}),r=i}return a},Qe=({items:t,title:n="Casino",iconUrl:o="/assets/img/home/Casino/diamante.svg",onItemClick:s,onViewMore:a,mosaicFirst:r=!0,gridSize:i=4})=>{const c=g.useRef(null),[l,m]=g.useState({isStart:!0,isEnd:!1}),f=()=>{var E;return(E=c.current)==null?void 0:E.prev()},_=()=>{var E;return(E=c.current)==null?void 0:E.next()},d=()=>{window.location.href="https://www.olimpo.bet/casino"},y=(E=!0,S=4)=>{const M=j=>Array.from({length:j},(R,$)=>({id:`sk-${j}-${$}`,imageUrl:""})),v=[];return E&&v.push({id:"mosaic-loading",kind:"mosaic",items:M(5)}),v.push({id:"grid-loading",kind:"grid",items:M(S)}),v},w=!t||t.length===0,C=w?y(r,i):xn(t,r,i);return e.jsx("section",{children:e.jsxs(A.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(J,{title:n,iconUrl:o,size:"md"}),e.jsxs(N.default,{sx:{display:"flex",gap:1,justifyContent:"flex-end"},children:[e.jsx(D,{ariaLabel:"Anterior",variant:"secondary",iconOnly:!0,leftIcon:e.jsx(Be.default,{}),onClick:f,disabled:l.isStart}),e.jsx(D,{ariaLabel:"Siguiente",variant:"secondary",iconOnly:!0,rightIcon:e.jsx(Fe.default,{}),onClick:_,disabled:l.isEnd})]}),e.jsx(N.default,{sx:{justifySelf:"end"},children:e.jsx(D,{variant:"secondary",onClick:d,children:"Ver más"})})]}),e.jsx(X,{ref:c,items:C,perPage:1,gap:"0px",enableHorizontalWheel:!0,options:{autoWidth:!0,gap:"12px",trimSpace:!0,pagination:!1,arrows:!1,drag:!0,focus:"start"},renderItem:E=>e.jsx("div",{style:{alignSelf:"start"},children:e.jsx(ye,{items:E.items,layout:E.kind==="mosaic"?"mosaic":"grid",loading:w,onClick:S=>{if(w)return;const M=t.find((R,$)=>String(Ze(R,$))===String(S.id));if(!M)return;const v=Z("showIframe"),j=Z("loadMachine");v==null||v(),j==null||j(M,!1,"CASINO")}})}),onMove:({isStart:E,isEnd:S})=>m({isStart:E,isEnd:S})})]})})},et=(t,n)=>{var o,s;return(s=(o=t.orden)!=null?o:t.machine)!=null?s:n},gn=(t,n=!0,o=4)=>{const s=t.map((i,c)=>{var l;return{id:et(i,c),imageUrl:(l=i.logo)!=null?l:"",...i.background?{background:i.background}:{}}});if(!s.length)return[];const a=[];let r=0;if(n){const i=Math.min(s.length,5);a.push({id:"mosaic-0",kind:"mosaic",items:s.slice(0,i)}),r=i}for(;r<s.length;){const i=Math.min(r+o,s.length);a.push({id:`grid-${r}`,kind:"grid",items:s.slice(r,i)}),r=i}return a},bn=(t=!0,n=4)=>{const o=a=>Array.from({length:a},(r,i)=>({id:`sk-${a}-${i}`,imageUrl:""})),s=[];return t&&s.push({id:"mosaic-loading",kind:"mosaic",items:o(5)}),s.push({id:"grid-loading",kind:"grid",items:o(n)}),s},tt=({items:t,title:n="Virtuales",iconUrl:o="/assets/img/home/Virtuales/virtuales.svg",onItemClick:s,onViewMore:a,mosaicFirst:r=!0,gridSize:i=4})=>{const c=g.useRef(null),[l,m]=g.useState({isStart:!0,isEnd:!1}),f=()=>{var C;return(C=c.current)==null?void 0:C.prev()},_=()=>{var C;return(C=c.current)==null?void 0:C.next()},d=()=>{window.location.href="https://www.olimpo.bet/juegos-virtuales"},y=!t||t.length===0,w=y?bn(r,i):gn(t,r,i);return e.jsx("section",{children:e.jsxs(A.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(J,{title:n,iconUrl:o,size:"md"}),e.jsxs(N.default,{sx:{display:"flex",gap:1,justifyContent:"flex-end"},children:[e.jsx(D,{ariaLabel:"Anterior",variant:"secondary",iconOnly:!0,leftIcon:e.jsx(Be.default,{}),onClick:f,disabled:l.isStart}),e.jsx(D,{ariaLabel:"Siguiente",variant:"secondary",iconOnly:!0,rightIcon:e.jsx(Fe.default,{}),onClick:_,disabled:l.isEnd})]}),e.jsx(N.default,{sx:{justifySelf:"end"},children:e.jsx(D,{variant:"secondary",onClick:d,children:"Ver más"})})]}),e.jsx(X,{ref:c,items:w,perPage:1,gap:"0",enableHorizontalWheel:!0,options:{autoWidth:!0,gap:"12px",trimSpace:!0,pagination:!1,arrows:!1,drag:!0,focus:"start",perMove:1},renderItem:C=>e.jsx("div",{style:{alignSelf:"start"},children:e.jsx(ye,{items:C.items,layout:C.kind==="mosaic"?"mosaic":"grid",loading:y,onClick:E=>{if(y)return;const S=t.find((j,R)=>String(et(j,R))===String(E.id));if(!S){console.warn("[virtuales] no se encontró game para id:",E.id);return}const M=Z("showIframe"),v=Z("loadMachine");M==null||M(),v==null||v(S,!1,"VIRTUALES")}})}),onMove:({isStart:C,isEnd:E})=>m({isStart:C,isEnd:E})})]})})},_n=t=>({position:"relative",py:8,color:"#fff",backgroundImage:`
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(A.default,{spacing:3,sx:{maxWidth:{md:280}},children:[e.jsx(K.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:n}),e.jsx(K.default,{sx:{fontSize:{xs:14,md:18},color:"rgba(255,255,255,0.9)",marginX:{xs:4,md:0},lineHeight:1.5},children:o}),e.jsx(N.default,{sx:{display:{xs:"none",md:"block"}},children:e.jsx(D,{variant:"primary",size:"md",onClick:()=>(r==null?void 0:r())||(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,m)=>{var x;return e.jsx(Ge,{logo:`https://olimpo.bet${l.background?l.background:(x=l.logo)!=null?x:""}`,provider:l.provider,providerName:l.web_name,machine:l.machine,onClick:()=>c(l)},hn(l,m))})}),e.jsx(N.default,{sx:{display:{xs:"block",md:"none"}},children:e.jsx(D,{variant:"primary",size:"lg",onClick:()=>(r==null?void 0:r())||(window.location.href="https://www.olimpo.bet/casino-en-vivo"),children:"Ver más"})})]})]})},Qe=(t,n)=>{var o,s;return(s=(o=t.orden)!=null?o:t.machine)!=null?s:n},xn=(t,n=!0,o=1)=>{const s=t.map((i,c)=>{var l;return{id:Qe(i,c),imageUrl:(l=i.logo)!=null?l:"",...i.background?{background:i.background}:{}}});if(!s.length)return[];const a=[];let r=0;if(n){const i=Math.min(s.length,1);a.push({id:"mosaic-0",kind:"mosaic",items:s.slice(0,i)}),r=i}for(;r<s.length;){const i=Math.min(r+o,s.length);a.push({id:`grid-${r}`,kind:"grid",items:s.slice(r,i)}),r=i}return a},et=({items:t,title:n="Casino",iconUrl:o="/assets/img/home/Casino/diamante.svg",onItemClick:s,onViewMore:a,mosaicFirst:r=!0,gridSize:i=1})=>{const c=_.useRef(null),[l,m]=_.useState({isStart:!0,isEnd:!1}),x=()=>{var j;return(j=c.current)==null?void 0:j.prev()},v=()=>{var j;return(j=c.current)==null?void 0:j.next()},d=()=>{window.location.href="https://www.olimpo.bet/casino"},y=(j=!0,F=4)=>{const L=f=>Array.from({length:f},(E,C)=>({id:`sk-${f}-${C}`,imageUrl:""})),S=[];return j&&S.push({id:"mosaic-loading",kind:"mosaic",items:L(5)}),S.push({id:"grid-loading",kind:"grid",items:L(F)}),S},w=!t||t.length===0,O=w?y(r,i):xn(t,r,i);return e.jsx("section",{children:e.jsxs(A.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(J,{title:n,iconUrl:o,size:"md"}),e.jsxs(N.default,{sx:{display:"flex",gap:1,justifyContent:"flex-end"},children:[e.jsx(D,{ariaLabel:"Anterior",variant:"secondary",iconOnly:!0,leftIcon:e.jsx(Be.default,{}),onClick:x,disabled:l.isStart}),e.jsx(D,{ariaLabel:"Siguiente",variant:"secondary",iconOnly:!0,rightIcon:e.jsx(Le.default,{}),onClick:v,disabled:l.isEnd})]}),e.jsx(N.default,{sx:{justifySelf:"end"},children:e.jsx(D,{variant:"secondary",onClick:d,children:"Ver más"})})]}),e.jsx(X,{ref:c,items:O,perPage:1,gap:"0px",enableHorizontalWheel:!0,options:{autoWidth:!0,gap:"12px",trimSpace:!0,pagination:!1,arrows:!1,drag:!0,focus:"start"},renderItem:j=>e.jsx("div",{style:{alignSelf:"start"},children:e.jsx(ye,{items:j.items,layout:j.kind==="mosaic"?"mosaic":"grid",loading:w,onClick:F=>{if(w)return;const L=t.find((E,C)=>String(Qe(E,C))===String(F.id));if(!L)return;const S=Z("showIframe"),f=Z("loadMachine");S==null||S(),f==null||f(L,!1,"CASINO")}})}),onMove:({isStart:j,isEnd:F})=>m({isStart:j,isEnd:F})})]})})},tt=(t,n)=>{var o,s;return(s=(o=t.orden)!=null?o:t.machine)!=null?s:n},gn=(t,n=!0,o=1)=>{const s=t.map((i,c)=>{var l;return{id:tt(i,c),imageUrl:(l=i.logo)!=null?l:"",...i.background?{background:i.background}:{}}});if(!s.length)return[];const a=[];let r=0;if(n){const i=Math.min(s.length,1);a.push({id:"mosaic-0",kind:"mosaic",items:s.slice(0,i)}),r=i}for(;r<s.length;){const i=Math.min(r+o,s.length);a.push({id:`grid-${r}`,kind:"grid",items:s.slice(r,i)}),r=i}return a},bn=(t=!0,n=4)=>{const o=a=>Array.from({length:a},(r,i)=>({id:`sk-${a}-${i}`,imageUrl:""})),s=[];return t&&s.push({id:"mosaic-loading",kind:"mosaic",items:o(5)}),s.push({id:"grid-loading",kind:"grid",items:o(n)}),s},nt=({items:t,title:n="Virtuales",iconUrl:o="/assets/img/home/Virtuales/virtuales.svg",onItemClick:s,onViewMore:a,mosaicFirst:r=!0,gridSize:i=1})=>{const c=_.useRef(null),[l,m]=_.useState({isStart:!0,isEnd:!1}),x=()=>{var O;return(O=c.current)==null?void 0:O.prev()},v=()=>{var O;return(O=c.current)==null?void 0:O.next()},d=()=>{window.location.href="https://www.olimpo.bet/juegos-virtuales"},y=!t||t.length===0,w=y?bn(r,i):gn(t,r,i);return e.jsx("section",{children:e.jsxs(A.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(J,{title:n,iconUrl:o,size:"md"}),e.jsxs(N.default,{sx:{display:"flex",gap:1,justifyContent:"flex-end"},children:[e.jsx(D,{ariaLabel:"Anterior",variant:"secondary",iconOnly:!0,leftIcon:e.jsx(Be.default,{}),onClick:x,disabled:l.isStart}),e.jsx(D,{ariaLabel:"Siguiente",variant:"secondary",iconOnly:!0,rightIcon:e.jsx(Le.default,{}),onClick:v,disabled:l.isEnd})]}),e.jsx(N.default,{sx:{justifySelf:"end"},children:e.jsx(D,{variant:"secondary",onClick:d,children:"Ver más"})})]}),e.jsx(X,{ref:c,items:w,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(ye,{items:O.items,layout:O.kind==="mosaic"?"mosaic":"grid",loading:y,onClick:j=>{if(y)return;const F=t.find((f,E)=>String(tt(f,E))===String(j.id));if(!F){console.warn("[virtuales] no se encontró game para id:",j.id);return}const L=Z("showIframe"),S=Z("loadMachine");L==null||L(),S==null||S(F,!1,"VIRTUALES")}})}),onMove:({isStart:O,isEnd:j})=>m({isStart:O,isEnd:j})})]})})},_n=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
- `},nt=({headline:t,headline2:n,items:o,backgroundImageUrl:s})=>{const a=bt.default("(max-width: 767px)"),r=o.length>1,i=g.useRef(null),c=g.useRef(null),[l,m]=g.useState(0),[f,_]=g.useState({isStart:!0,isEnd:!1}),d=g.useRef(f);g.useEffect(()=>{d.current=f},[f]);const y=g.useRef(!1),w=g.useRef(null),C=o==null?void 0:o[l],E=g.useMemo(()=>{var j,R;return(R=(j=C==null?void 0:C.backgroundImageUrl)!=null?j:s)!=null?R:""},[C,s]),S=_n(E),M=!o||o.length===0;g.useEffect(()=>{const j=c.current;if(!j)return;const R=6,$=380,O=I=>{var u,p;if(M||I.ctrlKey||y.current)return;const T=I.deltaX,P=I.deltaY;if(Math.abs(T)<=Math.abs(P)||Math.abs(T)<R)return;const F=T>0;F&&d.current.isEnd||!F&&d.current.isStart||(I.preventDefault(),y.current=!0,F?(u=i.current)==null||u.next():(p=i.current)==null||p.prev(),w.current&&window.clearTimeout(w.current),w.current=window.setTimeout(()=>{y.current=!1},$))};return j.addEventListener("wheel",O,{passive:!1}),()=>{j.removeEventListener("wheel",O),w.current&&window.clearTimeout(w.current)}},[M]);const v=(j,R)=>{var I,T;const $=(I=j.headline)!=null?I:t,O=(T=j.headline2)!=null?T:n;return R?e.jsxs(N.default,{sx:{maxWidth:1200,mx:"auto",px:15,display:"grid",gridTemplateColumns:"260px minmax(0, 1fr)",alignItems:"center",columnGap:6},children:[($||O)&&e.jsx(N.default,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-start",minHeight:"100%"},children:e.jsxs(N.default,{sx:{...Ie,textAlign:"left",mb:0},children:[$&&e.jsx(K.default,{component:"span",sx:$e,children:$}),O&&e.jsxs(e.Fragment,{children:[e.jsx("br",{}),e.jsx(K.default,{component:"span",sx:Ne,children:O})]})]})}),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(be,{...j,onButtonClick:j.onButtonClick,variant:"large"})})})]}):e.jsxs(N.default,{sx:{textAlign:"center"},children:[($||O)&&e.jsxs(N.default,{sx:Ie,children:[$&&e.jsx(K.default,{component:"span",sx:$e,children:$}),O&&e.jsxs(e.Fragment,{children:[e.jsx("br",{}),e.jsx(K.default,{component:"span",sx:Ne,children:O})]})]}),e.jsx(N.default,{sx:{display:"flex",justifyContent:"center"},children:e.jsx(be,{...j,onButtonClick:j.onButtonClick,variant:"small"})})]})};return e.jsxs(N.default,{component:"section",sx:S,children:[e.jsx("div",{ref:c,style:{width:"100%"},children:e.jsx(X,{ref:i,items:o,perPage:1,gap:"0px",options:{autoWidth:!1},renderItem:j=>e.jsx(N.default,{sx:{width:"100%"},children:v(j,!a)}),onMove:({index:j,isStart:R,isEnd:$})=>{m(j),typeof R=="boolean"&&typeof $=="boolean"&&_({isStart:R,isEnd:$})}})}),r&&e.jsx(N.default,{sx:{mt:2,display:"flex",justifyContent:"center"},children:e.jsx(_e,{total:o.length,active:l,onSelect:j=>{var R;m(j),(R=i.current)==null||R.go(j)}})})]})},ot=({className:t="",fullBleed:n=!0,items:o,selectedIndex:s=0,ariaLabel:a})=>{const r=g.useRef(null),i=g.useRef(null);if(!o)return null;const c=()=>{window.location.href="https://www.olimpo.bet/conoce-club-olimpo"},l=Array.isArray(o)?o[s]:o;g.useLayoutEffect(()=>{if(!r.current||!i.current||typeof ResizeObserver=="undefined")return;const f=r.current,_=i.current,d=()=>{f.style.setProperty("--orc-co-bottomH",`${_.offsetHeight+16}px`)},y=new ResizeObserver(d);return y.observe(_),d(),()=>y.disconnect()},[]);const m=["orc-co-wrap",n?"orc-co-fullBleed":"",t].filter(Boolean).join(" ");return e.jsx("section",{ref:r,className:m,"aria-label":a||l.imgAlt||"Club Olimpo",children:e.jsx("div",{ref:i,children:e.jsx(Ge,{text:l.text,onClick:c,imgAlt:l.imgAlt,imgSrcMobile:l.imgMobile,imgSrcDesktopBg:l.imgDesktopBg,imgSrcDesktopLogo:l.imgDesktopLogo})})})},vn="oraculo__OraculoSeccionEventoCombinadas-module__controls___Zsta4",jn={controls:vn};function rt({items:t,title:n="Combinadas del Olimpo",iconUrl:o="https://stg-www.contodobet.com/static/img/landing/EventoCombinada/rayoIcon.svg",onViewMore:s,className:a=""}){const r=g.useRef(null),[i,c]=g.useState({isStart:!0,isEnd:!1}),[l,m]=g.useState([]),f="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",_=()=>{var v;(v=r.current)==null||v.prev()},d=()=>{var v;(v=r.current)==null||v.next()},y=()=>{nn()};async function w(){var v,j,R;try{const O=await(await fetch(f)).json(),I=(R=(j=(v=O==null?void 0:O.group)==null?void 0:v.groups)==null?void 0:j[0])==null?void 0:R.id;if(!I){console.error("Could not extract group ID");return}const T=`https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/prepackcoupon/eventgroup/${I}.json?lang=es_PE&market=PE&client_id=200&channel_id=1&ncid=1764283566783&prePackCouponTags=CUSTOM`,F=await(await fetch(T)).json();m(C(F.events,F.betOffers,F.prePackCoupons))}catch($){console.error("loadDataEventSpecial error:",$)}}function C(v,j,R){const $=[];for(const O of R){const I=S([O]),T=E(O),P=j.reduce((F,u)=>{var b,h;F[u.eventId]||(F[u.eventId]=[]);const p=u.outcomes.filter(x=>I.has(x.id));if(p.length>0){const x=Array.from((h=(b=T==null?void 0:T[0])==null?void 0:b.requiredOutcomeIds)!=null?h:[]),k=p.map(B=>({...B,position:x.indexOf(B.id)}));F[u.eventId].push({...u,outcomes:k})}return F},{});v.forEach(F=>{if(F.id!==O.prePackCouponRows[0].eventId)return;const u=I;let p=null;for(const b of T)if([...b.requiredOutcomeIds].every(x=>u.has(x))){p=b.decimal;break}$.push({...F,combinadoTotal:p,betoffers:P[F.id]||[],couponId:O.id})})}return $}function E(v){var R;const j=[];for(const $ of v.prePackCouponRows)if($.type==="BET_BUILDER"&&((R=$.group)!=null&&R.groups)){const O=new Set;$.group.groups.forEach(I=>{var T;(T=I.outcomes)==null||T.forEach(P=>O.add(P.id))}),j.push({requiredOutcomeIds:O,decimal:$.odds.decimal})}return j}function S(v){var R;const j=new Set;for(const $ of v)for(const O of $.prePackCouponRows)O.type==="BET_BUILDER"&&((R=O.group)!=null&&R.groups)&&O.group.groups.forEach(I=>{var T;(T=I.outcomes)==null||T.forEach(P=>j.add(P.id))}),O.type==="SIMPLE"&&O.outcome&&j.add(O.outcome.id);return j}g.useEffect(()=>{w()},[]);const M=a||void 0;return!l||l.length===0?null:e.jsx("section",{className:M,style:{width:"100%",boxSizing:"border-box"},children:e.jsxs(A.default,{direction:"column",spacing:1.5,useFlexGap:!0,children:[e.jsxs(H,{spacing:1.5,columns:"1fr auto ",justify:"start",children:[e.jsx(J,{title:n,iconUrl:o,size:"md"}),e.jsxs("div",{className:jn.controls,children:[e.jsxs(H,{spacing:1,columns:"auto auto",children:[e.jsx(D,{ariaLabel:"Anterior",variant:"secondary",iconOnly:!0,leftIcon:e.jsx(se.ChevronLeftRounded,{}),onClick:_,disabled:i.isStart}),e.jsx(D,{ariaLabel:"Siguiente",variant:"secondary",iconOnly:!0,rightIcon:e.jsx(se.ChevronRightRounded,{}),onClick:d,disabled:i.isEnd})]}),e.jsx(D,{variant:"secondary",onClick:y,children:"Ver más"})]})]}),e.jsx(X,{ref:r,items:l.filter(v=>v.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:v=>e.jsx(Ve,{event:v}),onMove:({isStart:v,isEnd:j})=>c({isStart:v,isEnd:j})})]})})}function wn({}){return e.jsx("div",{className:He.cardWrapper,children:e.jsxs(A.default,{direction:"column",spacing:1,children:[e.jsxs(A.default,{spacing:1,direction:"row",children:[e.jsx(W.default,{variant:"text",width:"60%",height:24}),e.jsx(W.default,{variant:"text",width:"39%",height:24})]}),e.jsxs(A.default,{spacing:8,direction:"row",justifyContent:"center",alignItems:"center",children:[e.jsx(W.default,{variant:"circular",width:32,height:40}),e.jsx(W.default,{variant:"text",width:40,height:40}),e.jsx(W.default,{variant:"circular",width:32,height:40})]}),e.jsxs(A.default,{spacing:8,direction:"row",justifyContent:"center",alignItems:"center",children:[e.jsx(W.default,{variant:"text",width:32,height:16}),e.jsx(W.default,{variant:"text",width:40,height:16}),e.jsx(W.default,{variant:"text",width:32,height:16})]}),e.jsxs(A.default,{spacing:2,direction:"row",children:[e.jsx(W.default,{variant:"rounded",width:88,height:16}),e.jsx(W.default,{variant:"rounded",width:88,height:16}),e.jsx(W.default,{variant:"rounded",width:88,height:16})]}),e.jsxs(A.default,{spacing:2,direction:"row",children:[e.jsx(W.default,{variant:"rounded",width:88,height:32}),e.jsx(W.default,{variant:"rounded",width:88,height:32}),e.jsx(W.default,{variant:"rounded",width:88,height:32})]})]})})}const yn="oraculo__FadeItemWrapper-module__fadeWrapper___kFOH4",Sn={fadeWrapper:yn};function ue({children:t}){return e.jsx("div",{className:Sn.fadeWrapper,children:t})}function st({items:t,title:n="En vivo",iconUrl:o="https://stg-www.contodobet.com/static/img/landing/EventoEnVivo/icon.svg",onViewMore:s,className:a=""}){const r="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",i=g.useRef(null),[c,l]=g.useState({isStart:!0,isEnd:!1}),[m,f]=g.useState(null),[_,d]=g.useState({}),[y,w]=g.useState({start:null,end:null}),C=g.useRef(!1),[E,S]=g.useState(null),M=g.useRef(!1),v=De(y,300),j=()=>{var u;(u=i.current)==null||u.prev()},R=()=>{var u;(u=i.current)==null||u.next()},$=()=>{en()},O=["esports","cyber"],I=u=>u.filter(p=>{var h;if(p.event.sport!=="FOOTBALL")return!1;const b=((h=p.event.group)==null?void 0:h.toLowerCase())||"";return!O.some(x=>b.includes(x))}),T=g.useCallback(async()=>{var u;try{let p=E;if(!M.current&&E===null){M.current=!0;try{const z=await fetch("https://api.mktolimpo.com/api/kambi/eventos/orden"),G=z.ok?await z.json():null;p=((u=G==null?void 0:G.data)==null?void 0:u.event_ids)||[]}catch{p=[]}S(p)}const h=await(await fetch(r)).json(),x=I(h.events);if(!p||p.length===0){f(x);return}const k=new Map(p.map((z,G)=>[String(z),G])),B=[...x].sort((z,G)=>{const L=k.get(String(z.event.id)),V=k.get(String(G.event.id));return L!==void 0&&V!==void 0?L-V:L!==void 0?-1:V!==void 0?1:0});f(B)}catch(p){console.error(p)}},[E]);g.useEffect(()=>{T();const u=setInterval(T,2e4);return()=>clearInterval(u)},[T]),g.useEffect(()=>{if(v.start===null||v.end===null||!(m!=null&&m.length)||C.current)return;const u=3,p=Math.max(0,v.start-u),b=Math.min(m.length-1,v.end+u),h=m.slice(p,b+1).map(x=>x==null?void 0:x.event.id).filter(Boolean).filter(x=>_[x]===void 0);h.length&&(C.current=!0,Ue(h).then(x=>{d(k=>({...k,...x.events}))}).catch(x=>{console.error("Jersey fetch error",x)}).finally(()=>{C.current=!1}))},[v,m,_]);const P=a||void 0,F=m===null;return!F&&m.length===0?null:e.jsx("section",{className:P,style:{width:"100%",boxSizing:"border-box"},children:e.jsxs(A.default,{direction:"column",spacing:1.5,useFlexGap:!0,children:[e.jsxs(H,{spacing:1.5,columns:"1fr auto ",justify:"start",children:[e.jsx(J,{title:n,iconUrl:o,size:"md"}),e.jsxs("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[e.jsxs(H,{spacing:1,columns:"auto auto",children:[e.jsx(D,{ariaLabel:"Anterior",variant:"secondary",iconOnly:!0,leftIcon:e.jsx(se.ChevronLeftRounded,{}),onClick:j,disabled:c.isStart}),e.jsx(D,{ariaLabel:"Siguiente",variant:"secondary",iconOnly:!0,rightIcon:e.jsx(se.ChevronRightRounded,{}),onClick:R,disabled:c.isEnd})]}),e.jsx(D,{variant:"secondary",onClick:$,children:"Ver más"})]})]}),e.jsx(X,{ref:i,items:F?Array(4).fill({}):m.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:u=>{var h;const p=((h=u.event)==null?void 0:h.id)||u.eventId,b=p in _?_[p]:void 0;return F?e.jsx(ue,{children:e.jsx(wn,{})}):e.jsx(ue,{children:e.jsx(qe,{...u,jersey:b})})},onMove:({isStart:u,isEnd:p,visibleStart:b,visibleEnd:h})=>{l({isStart:u,isEnd:p}),w({start:b,end:h})}})]})})}function En(){return e.jsxs("div",{className:te.cardContainer,children:[e.jsx(je,{title:""}),e.jsx("div",{className:te.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(W.default,{variant:"circular",width:48,height:48}),e.jsx(W.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(W.default,{variant:"text",width:80,height:12}),e.jsx(W.default,{variant:"text",width:80,height:12})]}),e.jsx(A.default,{spacing:8,direction:"row",justifyContent:"center",alignItems:"center",children:e.jsx(W.default,{variant:"text",width:160,height:12})}),e.jsxs(A.default,{direction:"row",spacing:1,children:[e.jsx(W.default,{variant:"text",width:80,height:16}),e.jsx(W.default,{variant:"text",width:80,height:16}),e.jsx(W.default,{variant:"text",width:80,height:16})]}),e.jsx("div",{className:te.jugadas,children:e.jsxs(A.default,{direction:"row",spacing:1,children:[e.jsx(W.default,{variant:"rounded",width:80,height:32}),e.jsx(W.default,{variant:"rounded",width:80,height:32}),e.jsx(W.default,{variant:"rounded",width:80,height:32})]})})]})]})})]})}const Cn="oraculo__OraculoSeccionEventoSemana-module__wrapper___eqVq-",On="oraculo__OraculoSeccionEventoSemana-module__container___5yFQs",kn="oraculo__OraculoSeccionEventoSemana-module__buttonWrapper___-6IDT",xe={wrapper:Cn,container:On,buttonWrapper:kn};async function In(t,n=2,o){const s=[];for(let a=0;a<t.length;a+=n){if(o.aborted)throw new DOMException("Aborted","AbortError");const r=t.slice(a,a+n),i=await Promise.all(r.map(c=>fetch(c,{signal:o}).then(l=>l.json())));s.push(...i)}return s}function $n(t){return[...t].sort((n,o)=>new Date(n.start).getTime()-new Date(o.start).getTime())}function Nn(t){const n=new Date,o=new Date(n.getTime()+480*60*60*1e3);return t.filter(s=>{if(!s.start)return!1;const a=new Date(s.start);return a>=n&&a<=o})}function Rn(t,n){const s=n.filter(a=>{var r;return((r=a.betOfferType)==null?void 0:r.id)===2}).reduce((a,r)=>(a[r.eventId]||(a[r.eventId]=[]),a[r.eventId].push(r),a),{});return t.filter(a=>s[a.id]).map(a=>({...a,outcome:s[a.id]}))}function at({items:t,title:n="En vivo",iconUrl:o,onViewMore:s,className:a=""}){const r="https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/group.json?channel_id=1&client_id=200&lang=es_PE&market=PE",i=g.useRef(null),[c,l]=g.useState({isStart:!0,isEnd:!1}),[m,f]=g.useState(null);g.useRef(new Set);const[_,d]=g.useState({}),[y,w]=g.useState({start:null,end:null}),C="channel_id=1&client_id=200&competitionId=undefined&lang=es_PE&market=PE&useCombined=true",E=De(y,250),S=g.useRef(!1),M=()=>{tn()};async function v(I){var F,u;let T=[],P=[];try{const p=await fetch("https://api.mktolimpo.com/api/kambi/eventos/orden",{signal:I});if(p.ok){const b=await p.json();T=((F=b==null?void 0:b.data)==null?void 0:F.group_ids)||[],P=((u=b==null?void 0:b.data)==null?void 0:u.event_ids)||[]}}catch(p){p.name!=="AbortError"&&console.warn("Order API not available, using default group order");return}try{const h=(await(await fetch(r,{signal:I})).json()).group.groups.find(L=>L.englishName==="Football");if(!h||!Array.isArray(h.groups)){console.error("Football groups not found");return}let x=[...h.groups];if(T.length>0){const L=new Map(T.map((V,ee)=>[V,ee]));x.sort((V,ee)=>{const ne=L.get(String(V.id)),pe=L.get(String(ee.id));return ne!==void 0&&pe!==void 0?ne-pe:ne!==void 0?-1:pe!==void 0?1:0})}const B=x.slice(0,5),z=L=>{const V="https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/listView/football";if(L.groups&&L.groups.length>0){const ee=L.groups[0];return[`${V}/${L.termKey}/${ee.termKey}/all/matches.json?${C}`]}return[`${V}/${L.termKey}/all/all/matches.json?${C}`]},G=B.flatMap(z);j(G,P,I)}catch(p){console.error(p)}}async function j(I,T,P){try{const F=await In(I,2,P);let u=[],p=[];F.forEach(k=>{k.events&&(u.push(...k.events.map(B=>B.event)),p.push(...k.events.flatMap(B=>B.betOffers||[])))});const b=Rn(u,p),h=$n(Nn(b));let x=h;if(T.length>0){const k=new Map(T.map((B,z)=>[String(B),z]));x=[...h].sort((B,z)=>{const G=k.get(String(B.id)),L=k.get(String(z.id));return G!==void 0&&L!==void 0?G-L:G!==void 0?-1:L!==void 0?1:0})}if(P.aborted)return;f(x)}catch(F){console.error("Error loading events:",F)}}g.useEffect(()=>{if(!t)return;const I=new AbortController;return v(I.signal),()=>{I.abort()}},[t]),g.useEffect(()=>{if(E.start===null||E.end===null||!(m!=null&&m.length)||S.current)return;const I=2,T=Math.max(0,E.start-I),P=Math.min(m.length-1,E.end+I),F=m.slice(T,P+1).map(p=>p==null?void 0:p.id).filter(Boolean).filter(p=>_[p]===void 0);if(!F.length)return;let u=!1;return S.current=!0,(async()=>{try{const p=await Ue(F);u||d(b=>({...b,...p.events}))}catch(p){console.error("Jersey fetch error",p)}finally{S.current=!1}})(),()=>{u=!0}},[E,m]);const R=a||void 0,$={paddingLeft:0,width:"100%",boxSizing:"border-box"},O=m===null;return!O&&m.length===0?null:e.jsx("section",{className:R,style:$,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(J,{title:"Eventos de la semana"}),e.jsx("div",{className:xe.buttonWrapper,children:e.jsx(D,{variant:"secondary",size:"lg",fullWidth:!0,onClick:()=>{M()},children:"Ver más"})})]})}),e.jsx("div",{style:{minWidth:"180px"},children:e.jsx(X,{ref:i,items:O?Array(6).fill({}):m.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:I=>{const T=I.id,P=T in _?_[T]:void 0;return O?e.jsx(ue,{children:e.jsx(En,{})}):e.jsx(ue,{children:e.jsx(Ke,{event:I,jersey:P})})},onMove:({isStart:I,isEnd:T,visibleStart:P,visibleEnd:F})=>{l({isStart:I,isEnd:T}),w({start:P,end:F})}})})]})})}function it({backgrounds:t,items:n}){const[o,s]=g.useState(0),a=g.useRef(null),r=(t==null?void 0:t.length)||1,i=!t||t.length===0;return g.useEffect(()=>{if(i||!t||t.length<=1)return;const c=window.setInterval(()=>{var l;(l=a.current)==null||l.next()},5e3);return()=>window.clearInterval(c)},[i,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(X,{ref:a,items:t,perPage:1,gap:"0px",enableHorizontalWheel:!0,options:{type:"loop",perMove:1,pagination:!1,arrows:!1,drag:!0,focus:"center"},onMove:({index:c})=>{const l=(c%r+r)%r;s(l)},renderItem:c=>{var l,m;return e.jsxs(U.Box,{component:"a",href:c.href,target:(l=c.target)!=null?l:"_self",rel:c.target==="_blank"?"noopener noreferrer":void 0,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:c.desktopSrc,media:"(min-width:800px)"}),e.jsx("source",{srcSet:c.mobileSrc,media:"(max-width:799px)"}),e.jsx(U.Box,{component:"img",src:(m=c.fallbackSrc)!=null?m:c.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(_e,{total:r,active:o})})]}),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:n==null?void 0:n.map(c=>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:c.onClick||c.href?"pointer":"default",whiteSpace:"nowrap"},onClick:()=>{var l;if(c.onClick)return c.onClick();if(c.href)return window.location.href=(l=c.href)!=null?l:"/#"},children:[c.icon&&e.jsx(U.Box,{component:"img",src:c.icon,alt:c.label||`icon-${c.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:c.label})]},c.id))})]})}const Tn=[{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 lt({title:t="Medios de pago",items:n=Tn}){const o=Math.ceil(n.length/2),s=n.slice(0,o),a=n.slice(o);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:s.map((r,i)=>e.jsx(ge,{...r},`${r.alt}-${r.src}-${i}`))}),e.jsx(U.Stack,{direction:"row",justifyContent:"center",alignItems:"center",gap:{xs:2,md:3},flexWrap:"wrap",children:a.map((r,i)=>e.jsx(ge,{...r},`${r.alt}-${r.src}-${i}`))})]})]})}const Mn={OraculoSeccionDestacados:Je,OraculoSeccionTopJuegos:Ee,OraculoSeccionCasinoEnVivo:Ye,OraculoSeccionCasino:Qe,OraculoSeccionVirtuales:tt,OraculoSeccionClubOlimpo:ot,OraculoSeccionBonoBienvenida:nt,OraculoSeccionBanners:it,OraculoSeccionMediosPago:lt,OraculoSeccionEventoEnVivo:st,OraculoSeccionEventoSemana:at,OraculoSeccionEventoCombinadas:rt},Bn=t=>typeof t=="function"||t&&typeof t=="object"&&"$$typeof"in t,Fn=t=>/^OraculoSeccion[A-Z]/.test(t),Ln=Object.fromEntries(Object.entries(Mn).filter(([t,n])=>Fn(t)&&Bn(n))),Pn=t=>{try{return Object.fromEntries(t!=null?t:[])}catch{return console.warn("[oraculo] extras inválidos. Debe ser Array<[string, unknown]>",t),{}}};class Re extends Error{constructor(n,o,s){super(`HTTP ${n} ${s}`),this.status=n,this.url=o,this.statusText=s,this.name="HttpError"}}const Te=["OraculoSeccionEventoEnVivo","OraculoSeccionEventoSemana","OraculoSeccionEventoCombinadas"],ct=({sectionsOverride:t,docId:n="home",db:o,extras:s,loader:a})=>{const r=g.useMemo(()=>Pn(s),[s]),i=a||r.loader,[c,l]=g.useState([]),[m,f]=g.useState(!1),[_,d]=g.useState({}),[y,w]=g.useState({}),[C,E]=g.useState({}),S=U.useMediaQuery("(min-width:1024px)");g.useEffect(()=>{if(t||!o)return;f(!0);const u=Ce.onSnapshot(Ce.doc(o,"landings",n),p=>{var b;try{let h=p.exists()?((b=p.data())==null?void 0:b.sections)||[]:[];h=h.slice().sort((x,k)=>{var B,z;return((B=x.order)!=null?B:0)-((z=k.order)!=null?z:0)}).map((x,k)=>({...x,order:k+1})),l(h),console.log("fetched: ",h)}catch(h){console.error("Error procesando landings/"+n,h)}finally{f(!1)}},p=>{console.error("Error escuchando landings/"+n,p),f(!1)});return()=>u()},[t,n,o]),g.useEffect(()=>(mn(r),()=>fn()),[r]),g.useEffect(()=>{(t?t.slice():c.slice()).map(b=>b.componentKey).filter(b=>!!b).length},[t,c]);const M=async u=>{if(Te.includes(u.componentKey))return{items:[],events:[],data:{}};const p=(u.apiUrl||"").trim();if(!p)return;const b=u.apiMethod||"GET",h=u.apiParams||[];let x=p,k,B;if(b==="GET"){const G=new URL(p,typeof window=="undefined"?"http://localhost":window.location.origin);for(const L of h)L.key&&G.searchParams.append(L.key,L.value);x=G.toString()}else{const G=new URLSearchParams;for(const L of h)L.key&&G.append(L.key,L.value);k=G.toString(),B={"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"}}const z=await fetch(x,{method:b,headers:B,body:k});if(!z.ok)throw new Re(z.status,x,z.statusText);return z.json()},v=g.useMemo(()=>t?t.slice():c.slice(),[t,c]),j=gt.default.useRef(new Set);g.useEffect(()=>{const u=v.map(p=>({s:p,url:(p.apiUrl||"").trim()})).filter(({url:p})=>!!p);if(u.length)for(const{s:p,url:b}of u){const h=`${p.id}|${b}`;j.current.has(h)||(j.current.add(h),w(x=>({...x,[p.id]:!0})),E(x=>({...x,[p.id]:""})),(async()=>{try{const x=await M(p);d(k=>({...k,[p.id]:x}))}catch(x){let k="Error desconocido";x instanceof Re?k=`Error HTTP ${x.status} (${x.statusText}) en ${x.url}`:x instanceof SyntaxError?k="Respuesta no es JSON válido":x instanceof TypeError?k="Fallo de red / CORS / conexión":typeof x=="string"&&(k=x.toString()),E(B=>({...B,[p.id]:k}))}finally{w(x=>({...x,[p.id]:!1}))}})())}},[v]);const R=g.useMemo(()=>v.filter(u=>u.visible).sort((u,p)=>u.order-p.order),[v]),$=u=>Array.isArray(u)?u.map(p=>{const b={};for(const h of p.fields||[]){const x=(h.type||"string").toLowerCase();if(x==="number"){const k=String(h.value||"").trim();if(k!==""){const B=Number(k);Number.isNaN(B)||(b[h.name]=B)}}else if(x==="boolean")b[h.name]=String(h.value).toLowerCase()==="true";else if(x==="function"){const k=String(h.value||"").trim();if(k)try{const B=new Function(k);b[h.name]=B}catch(B){console.error(`❌ Error creando función en item '${h.name}':`,B)}}else b[h.name]=h.value}return b}):[],O=u=>{const p={};if(!Array.isArray(u))return p;for(const b of u){if(!b.name)continue;const h=(b.type||"string").toLowerCase();if(h==="number"){const x=String(b.value||"").trim();if(x!==""){const k=Number(x);Number.isNaN(k)||(p[b.name]=k)}}else if(h==="boolean")p[b.name]=String(b.value).toLowerCase()==="true";else if(h==="function"){const x=String(b.value||"").trim();if(x)try{const k=new Function(x);p[b.name]=k}catch(k){console.error(`❌ Error creando función en item '${b.name}':`,k)}}else p[b.name]=b.value}return p},I=(u,p,b)=>{const h=b?{...b}:{};if(p){const L=(p.variableName||"items").trim()||"items";return h[L]=p.arr||[],h}const x=u,k=Array.isArray(x),B=!k&&typeof x=="object"&&x!==null?x:void 0,z=B&&Array.isArray(B.lobby||B.items)?B.lobby||B.items:void 0,G=L=>k?x:z||L;return h.items=G(z||[]),h},T=u=>{var k;const p=!!((k=u.apiUrl)!=null&&k.trim()),b=p?_[u.id]:void 0;let h=u.props?{...u.props}:{};const x=O(u.manualScalarFields);if(Te.includes(u.componentKey))return{items:b,...h,...x};if(h={...h,...x},p)h=I(b,null,h);else if(u.dataMode==="manual"){const B=$(u.manualItems);if(h=I(null,{arr:B,variableName:u.variableName},h),u.variableName2&&u.manualItems2){const z=$(u.manualItems2),G=(u.variableName2||"items2").trim()||"items2";h[G]=z}}return h},P=(u,p,b)=>{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[p]}`,children:b},u)},F=u=>{var ne;const p=u.componentKey,b=Ln[p];if(!b)return console.warn(`No hay componente registrado para "${p}"`),P(u.id,"component",`Componente "${p}" no encontrado`);const h=!!((ne=u.apiUrl)!=null&&ne.trim()),x=h?_[u.id]:void 0,k=h?!!y[u.id]:!1,B=h?C[u.id]:"";if(h){if(k&&!x)return P(u.id,"loading",`Cargando datos desde ${u.apiUrl}...`);if(B&&!x)return P(u.id,"error",`Error cargando ${u.apiUrl}: ${B}`)}const z=T(u),L=new Set(["OraculoSeccionBanners","OraculoSeccionBonoBienvenida","OraculoSeccionCasinoEnVivo",S?"":"OraculoSeccionClubOlimpo"]).has(u.componentKey),V=S?120:24,ee=L?{width:"100%",boxSizing:"border-box"}:{paddingLeft:V,paddingRight:V,width:"100%",boxSizing:"border-box"};return e.jsx("div",{style:ee,className:"oraculo-section-wrapper",children:e.jsx(b,{...z})},u.id)};return m&&!t?i?e.jsx(i,{}):e.jsx("div",{children:"Cargando..."}):!m&&!t&&c.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:S?8:5,useFlexGap:!0,children:R.map(F)})})};exports.OraculoButton=D;exports.OraculoCarousel=X;exports.OraculoCarouselDots=_e;exports.OraculoClubOlimpoVisual=Ge;exports.OraculoEventCombinadasCard=Ve;exports.OraculoEventEnVivoCard=qe;exports.OraculoEventHeader=We;exports.OraculoEventLabel=ve;exports.OraculoEventLeague=je;exports.OraculoEventScore=we;exports.OraculoEventSemanaCard=Ke;exports.OraculoEventStatus=Pe;exports.OraculoEventStatusBadge=Le;exports.OraculoEventTeamInfo=ie;exports.OraculoGameCard=ae;exports.OraculoGameRankCard=Ae;exports.OraculoGameSlide=ye;exports.OraculoGridGroup=H;exports.OraculoLiveCasinoCard=ze;exports.OraculoLogoMediosPago=ge;exports.OraculoPageLandingPreview=ct;exports.OraculoSeccionBanners=it;exports.OraculoSeccionBonoBienvenida=nt;exports.OraculoSeccionCasino=Qe;exports.OraculoSeccionCasinoEnVivo=Ye;exports.OraculoSeccionClubOlimpo=ot;exports.OraculoSeccionDestacados=Je;exports.OraculoSeccionEventoCombinadas=rt;exports.OraculoSeccionEventoEnVivo=st;exports.OraculoSeccionEventoSemana=at;exports.OraculoSeccionMediosPago=lt;exports.OraculoSeccionTopJuegos=Ee;exports.OraculoSeccionVirtuales=tt;exports.OraculoSectionTitle=J;exports.OraculoTopJuegoItem=Ee;exports.OraculoWelcomeBanner=be;exports.default=ct;
19
+ `},ot=({headline:t,headline2:n,items:o,backgroundImageUrl:s})=>{const a=bt.default("(max-width: 767px)"),r=o.length>1,i=_.useRef(null),c=_.useRef(null),[l,m]=_.useState(0),[x,v]=_.useState({isStart:!0,isEnd:!1}),d=_.useRef(x);_.useEffect(()=>{d.current=x},[x]);const y=_.useRef(!1),w=_.useRef(null),O=o==null?void 0:o[l],j=_.useMemo(()=>{var f,E;return(E=(f=O==null?void 0:O.backgroundImageUrl)!=null?f:s)!=null?E:""},[O,s]),F=_n(j),L=!o||o.length===0;_.useEffect(()=>{const f=c.current;if(!f)return;const E=6,C=380,k=$=>{var p,u;if(L||$.ctrlKey||y.current)return;const R=$.deltaX,P=$.deltaY;if(Math.abs(R)<=Math.abs(P)||Math.abs(R)<E)return;const M=R>0;M&&d.current.isEnd||!M&&d.current.isStart||($.preventDefault(),y.current=!0,M?(p=i.current)==null||p.next():(u=i.current)==null||u.prev(),w.current&&window.clearTimeout(w.current),w.current=window.setTimeout(()=>{y.current=!1},C))};return f.addEventListener("wheel",k,{passive:!1}),()=>{f.removeEventListener("wheel",k),w.current&&window.clearTimeout(w.current)}},[L]);const S=(f,E)=>{var $,R;const C=($=f.headline)!=null?$:t,k=(R=f.headline2)!=null?R:n;return E?e.jsxs(N.default,{sx:{maxWidth:1200,mx:"auto",px:15,display:"grid",gridTemplateColumns:"260px minmax(0, 1fr)",alignItems:"center",columnGap:6},children:[(C||k)&&e.jsx(N.default,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-start",minHeight:"100%"},children:e.jsxs(N.default,{sx:{...Ie,textAlign:"left",mb:0},children:[C&&e.jsx(K.default,{component:"span",sx:$e,children:C}),k&&e.jsxs(e.Fragment,{children:[e.jsx("br",{}),e.jsx(K.default,{component:"span",sx:Ne,children:k})]})]})}),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(be,{...f,onButtonClick:f.onButtonClick,variant:"large"})})})]}):e.jsxs(N.default,{sx:{textAlign:"center"},children:[(C||k)&&e.jsxs(N.default,{sx:Ie,children:[C&&e.jsx(K.default,{component:"span",sx:$e,children:C}),k&&e.jsxs(e.Fragment,{children:[e.jsx("br",{}),e.jsx(K.default,{component:"span",sx:Ne,children:k})]})]}),e.jsx(N.default,{sx:{display:"flex",justifyContent:"center"},children:e.jsx(be,{...f,onButtonClick:f.onButtonClick,variant:"small"})})]})};return e.jsxs(N.default,{component:"section",sx:F,children:[e.jsx("div",{ref:c,style:{width:"100%"},children:e.jsx(X,{ref:i,items:o,perPage:1,gap:"0px",options:{autoWidth:!1},renderItem:f=>e.jsx(N.default,{sx:{width:"100%"},children:S(f,!a)}),onMove:({index:f,isStart:E,isEnd:C})=>{m(f),typeof E=="boolean"&&typeof C=="boolean"&&v({isStart:E,isEnd:C})}})}),r&&e.jsx(N.default,{sx:{mt:2,display:"flex",justifyContent:"center"},children:e.jsx(_e,{total:o.length,active:l,onSelect:f=>{var E;m(f),(E=i.current)==null||E.go(f)}})})]})},rt=({className:t="",fullBleed:n=!0,items:o,selectedIndex:s=0,ariaLabel:a})=>{const r=_.useRef(null),i=_.useRef(null);if(!o)return null;const c=()=>{window.location.href="https://www.olimpo.bet/conoce-club-olimpo"},l=Array.isArray(o)?o[s]:o;_.useLayoutEffect(()=>{if(!r.current||!i.current||typeof ResizeObserver=="undefined")return;const x=r.current,v=i.current,d=()=>{x.style.setProperty("--orc-co-bottomH",`${v.offsetHeight+16}px`)},y=new ResizeObserver(d);return y.observe(v),d(),()=>y.disconnect()},[]);const m=["orc-co-wrap",n?"orc-co-fullBleed":"",t].filter(Boolean).join(" ");return e.jsx("section",{ref:r,className:m,"aria-label":a||l.imgAlt||"Club Olimpo",children:e.jsx("div",{ref:i,children:e.jsx(Ue,{text:l.text,onClick:c,imgAlt:l.imgAlt,imgSrcMobile:l.imgMobile,imgSrcDesktopBg:l.imgDesktopBg,imgSrcDesktopLogo:l.imgDesktopLogo})})})},vn="oraculo__OraculoSeccionEventoCombinadas-module__controls___Zsta4",jn={controls:vn};function st({items:t,title:n="Combinadas del Olimpo",iconUrl:o="https://stg-www.contodobet.com/static/img/landing/EventoCombinada/rayoIcon.svg",onViewMore:s,className:a=""}){const r=_.useRef(null),[i,c]=_.useState({isStart:!0,isEnd:!1}),[l,m]=_.useState([]),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",v=()=>{var S;(S=r.current)==null||S.prev()},d=()=>{var S;(S=r.current)==null||S.next()},y=()=>{nn()};async function w(){var S,f,E;try{const k=await(await fetch(x)).json(),$=(E=(f=(S=k==null?void 0:k.group)==null?void 0:S.groups)==null?void 0:f[0])==null?void 0:E.id;if(!$){console.error("Could not extract group ID");return}const R=`https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/prepackcoupon/eventgroup/${$}.json?lang=es_PE&market=PE&client_id=200&channel_id=1&ncid=1764283566783&prePackCouponTags=CUSTOM`,M=await(await fetch(R)).json();m(O(M.events,M.betOffers,M.prePackCoupons))}catch(C){console.error("loadDataEventSpecial error:",C)}}function O(S,f,E){const C=[];for(const k of E){const $=F([k]),R=j(k),P=f.reduce((M,p)=>{var b,h;M[p.eventId]||(M[p.eventId]=[]);const u=p.outcomes.filter(g=>$.has(g.id));if(u.length>0){const g=Array.from((h=(b=R==null?void 0:R[0])==null?void 0:b.requiredOutcomeIds)!=null?h:[]),I=u.map(T=>({...T,position:g.indexOf(T.id)}));M[p.eventId].push({...p,outcomes:I})}return M},{});S.forEach(M=>{if(M.id!==k.prePackCouponRows[0].eventId)return;const p=$;let u=null;for(const b of R)if([...b.requiredOutcomeIds].every(g=>p.has(g))){u=b.decimal;break}C.push({...M,combinadoTotal:u,betoffers:P[M.id]||[],couponId:k.id})})}return C}function j(S){var E;const f=[];for(const C of S.prePackCouponRows)if(C.type==="BET_BUILDER"&&((E=C.group)!=null&&E.groups)){const k=new Set;C.group.groups.forEach($=>{var R;(R=$.outcomes)==null||R.forEach(P=>k.add(P.id))}),f.push({requiredOutcomeIds:k,decimal:C.odds.decimal})}return f}function F(S){var E;const f=new Set;for(const C of S)for(const k of C.prePackCouponRows)k.type==="BET_BUILDER"&&((E=k.group)!=null&&E.groups)&&k.group.groups.forEach($=>{var R;(R=$.outcomes)==null||R.forEach(P=>f.add(P.id))}),k.type==="SIMPLE"&&k.outcome&&f.add(k.outcome.id);return f}_.useEffect(()=>{w()},[]);const L=a||void 0;return!l||l.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(H,{spacing:1.5,columns:"1fr auto ",justify:"start",children:[e.jsx(J,{title:n,iconUrl:o,size:"md"}),e.jsxs("div",{className:jn.controls,children:[e.jsxs(H,{spacing:1,columns:"auto auto",children:[e.jsx(D,{ariaLabel:"Anterior",variant:"secondary",iconOnly:!0,leftIcon:e.jsx(se.ChevronLeftRounded,{}),onClick:v,disabled:i.isStart}),e.jsx(D,{ariaLabel:"Siguiente",variant:"secondary",iconOnly:!0,rightIcon:e.jsx(se.ChevronRightRounded,{}),onClick:d,disabled:i.isEnd})]}),e.jsx(D,{variant:"secondary",onClick:y,children:"Ver más"})]})]}),e.jsx(X,{ref:r,items:l.filter(S=>S.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:S=>e.jsx(He,{event:S}),onMove:({isStart:S,isEnd:f})=>c({isStart:S,isEnd:f})})]})})}function wn({}){return e.jsx("div",{className:qe.cardWrapper,children:e.jsxs(A.default,{direction:"column",spacing:1,children:[e.jsxs(A.default,{spacing:1,direction:"row",children:[e.jsx(W.default,{variant:"text",width:"60%",height:24}),e.jsx(W.default,{variant:"text",width:"39%",height:24})]}),e.jsxs(A.default,{spacing:8,direction:"row",justifyContent:"center",alignItems:"center",children:[e.jsx(W.default,{variant:"circular",width:32,height:40}),e.jsx(W.default,{variant:"text",width:40,height:40}),e.jsx(W.default,{variant:"circular",width:32,height:40})]}),e.jsxs(A.default,{spacing:8,direction:"row",justifyContent:"center",alignItems:"center",children:[e.jsx(W.default,{variant:"text",width:32,height:16}),e.jsx(W.default,{variant:"text",width:40,height:16}),e.jsx(W.default,{variant:"text",width:32,height:16})]}),e.jsxs(A.default,{spacing:2,direction:"row",children:[e.jsx(W.default,{variant:"rounded",width:88,height:16}),e.jsx(W.default,{variant:"rounded",width:88,height:16}),e.jsx(W.default,{variant:"rounded",width:88,height:16})]}),e.jsxs(A.default,{spacing:2,direction:"row",children:[e.jsx(W.default,{variant:"rounded",width:88,height:32}),e.jsx(W.default,{variant:"rounded",width:88,height:32}),e.jsx(W.default,{variant:"rounded",width:88,height:32})]})]})})}const yn="oraculo__FadeItemWrapper-module__fadeWrapper___kFOH4",Sn={fadeWrapper:yn};function ue({children:t}){return e.jsx("div",{className:Sn.fadeWrapper,children:t})}function at({items:t,title:n="En vivo",iconUrl:o="https://stg-www.contodobet.com/static/img/landing/EventoEnVivo/icon.svg",onViewMore:s,className:a=""}){const r="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",i=_.useRef(null),[c,l]=_.useState({isStart:!0,isEnd:!1}),[m,x]=_.useState(null),[v,d]=_.useState({}),[y,w]=_.useState({start:null,end:null}),O=_.useRef(!1),[j,F]=_.useState(null),L=_.useRef(!1),S=Ve(y,300),f=()=>{var p;(p=i.current)==null||p.prev()},E=()=>{var p;(p=i.current)==null||p.next()},C=()=>{en()},k=["esports","cyber"],$=p=>p.filter(u=>{var h;if(u.event.sport!=="FOOTBALL")return!1;const b=((h=u.event.group)==null?void 0:h.toLowerCase())||"";return!k.some(g=>b.includes(g))}),R=_.useCallback(async()=>{var p;try{let u=j;if(!L.current&&j===null){L.current=!0;try{const z=await fetch("https://api.mktolimpo.com/api/kambi/eventos/orden"),G=z.ok?await z.json():null;u=((p=G==null?void 0:G.data)==null?void 0:p.event_ids)||[]}catch{u=[]}F(u)}const h=await(await fetch(r)).json(),g=$(h.events);if(!u||u.length===0){x(g);return}const I=new Map(u.map((z,G)=>[String(z),G])),T=[...g].sort((z,G)=>{const B=I.get(String(z.event.id)),V=I.get(String(G.event.id));return B!==void 0&&V!==void 0?B-V:B!==void 0?-1:V!==void 0?1:0});x(T)}catch(u){console.error(u)}},[j]);_.useEffect(()=>{R();const p=setInterval(R,2e4);return()=>clearInterval(p)},[R]),_.useEffect(()=>{if(S.start===null||S.end===null||!(m!=null&&m.length)||O.current)return;const p=3,u=Math.max(0,S.start-p),b=Math.min(m.length-1,S.end+p),h=m.slice(u,b+1).map(g=>g==null?void 0:g.event.id).filter(Boolean).filter(g=>v[g]===void 0);h.length&&(O.current=!0,De(h).then(g=>{d(I=>({...I,...g.events}))}).catch(g=>{console.error("Jersey fetch error",g)}).finally(()=>{O.current=!1}))},[S,m,v]);const P=a||void 0,M=m===null;return!M&&m.length===0?null:e.jsx("section",{className:P,style:{width:"100%",boxSizing:"border-box"},children:e.jsxs(A.default,{direction:"column",spacing:1.5,useFlexGap:!0,children:[e.jsxs(H,{spacing:1.5,columns:"1fr auto ",justify:"start",children:[e.jsx(J,{title:n,iconUrl:o,size:"md"}),e.jsxs("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[e.jsxs(H,{spacing:1,columns:"auto auto",children:[e.jsx(D,{ariaLabel:"Anterior",variant:"secondary",iconOnly:!0,leftIcon:e.jsx(se.ChevronLeftRounded,{}),onClick:f,disabled:c.isStart}),e.jsx(D,{ariaLabel:"Siguiente",variant:"secondary",iconOnly:!0,rightIcon:e.jsx(se.ChevronRightRounded,{}),onClick:E,disabled:c.isEnd})]}),e.jsx(D,{variant:"secondary",onClick:C,children:"Ver más"})]})]}),e.jsx(X,{ref:i,items:M?Array(4).fill({}):m.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 h;const u=((h=p.event)==null?void 0:h.id)||p.eventId,b=u in v?v[u]:void 0;return M?e.jsx(ue,{children:e.jsx(wn,{})}):e.jsx(ue,{children:e.jsx(Ke,{...p,jersey:b})})},onMove:({isStart:p,isEnd:u,visibleStart:b,visibleEnd:h})=>{l({isStart:p,isEnd:u}),w({start:b,end:h})}})]})})}function En(){return e.jsxs("div",{className:te.cardContainer,children:[e.jsx(je,{title:""}),e.jsx("div",{className:te.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(W.default,{variant:"circular",width:48,height:48}),e.jsx(W.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(W.default,{variant:"text",width:80,height:12}),e.jsx(W.default,{variant:"text",width:80,height:12})]}),e.jsx(A.default,{spacing:8,direction:"row",justifyContent:"center",alignItems:"center",children:e.jsx(W.default,{variant:"text",width:160,height:12})}),e.jsxs(A.default,{direction:"row",spacing:1,children:[e.jsx(W.default,{variant:"text",width:80,height:16}),e.jsx(W.default,{variant:"text",width:80,height:16}),e.jsx(W.default,{variant:"text",width:80,height:16})]}),e.jsx("div",{className:te.jugadas,children:e.jsxs(A.default,{direction:"row",spacing:1,children:[e.jsx(W.default,{variant:"rounded",width:80,height:32}),e.jsx(W.default,{variant:"rounded",width:80,height:32}),e.jsx(W.default,{variant:"rounded",width:80,height:32})]})})]})]})})]})}const Cn="oraculo__OraculoSeccionEventoSemana-module__wrapper___eqVq-",On="oraculo__OraculoSeccionEventoSemana-module__container___5yFQs",kn="oraculo__OraculoSeccionEventoSemana-module__buttonWrapper___-6IDT",xe={wrapper:Cn,container:On,buttonWrapper:kn};async function In(t,n=2,o){const s=[];for(let a=0;a<t.length;a+=n){if(o.aborted)throw new DOMException("Aborted","AbortError");const r=t.slice(a,a+n),i=await Promise.all(r.map(c=>fetch(c,{signal:o}).then(l=>l.json())));s.push(...i)}return s}function $n(t){return[...t].sort((n,o)=>new Date(n.start).getTime()-new Date(o.start).getTime())}function Nn(t){const n=new Date,o=new Date(n.getTime()+480*60*60*1e3);return t.filter(s=>{if(!s.start)return!1;const a=new Date(s.start);return a>=n&&a<=o})}function Rn(t,n){const s=n.filter(a=>{var r;return((r=a.betOfferType)==null?void 0:r.id)===2}).reduce((a,r)=>(a[r.eventId]||(a[r.eventId]=[]),a[r.eventId].push(r),a),{});return t.filter(a=>s[a.id]).map(a=>({...a,outcome:s[a.id]}))}function it({items:t,title:n="En vivo",iconUrl:o,onViewMore:s,className:a=""}){const r="https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/group.json?channel_id=1&client_id=200&lang=es_PE&market=PE",i=_.useRef(null),[c,l]=_.useState({isStart:!0,isEnd:!1}),[m,x]=_.useState(null);_.useRef(new Set);const[v,d]=_.useState({}),[y,w]=_.useState({start:null,end:null}),O="channel_id=1&client_id=200&competitionId=undefined&lang=es_PE&market=PE&useCombined=true",j=Ve(y,250),F=_.useRef(!1),L=()=>{tn()};async function S($){var M,p;let R=[],P=[];try{const u=await fetch("https://api.mktolimpo.com/api/kambi/eventos/orden",{signal:$});if(u.ok){const b=await u.json();R=((M=b==null?void 0:b.data)==null?void 0:M.group_ids)||[],P=((p=b==null?void 0:b.data)==null?void 0:p.event_ids)||[]}}catch(u){u.name!=="AbortError"&&console.warn("Order API not available, using default group order");return}try{const h=(await(await fetch(r,{signal:$})).json()).group.groups.find(B=>B.englishName==="Football");if(!h||!Array.isArray(h.groups)){console.error("Football groups not found");return}let g=[...h.groups];if(R.length>0){const B=new Map(R.map((V,ee)=>[V,ee]));g.sort((V,ee)=>{const ne=B.get(String(V.id)),pe=B.get(String(ee.id));return ne!==void 0&&pe!==void 0?ne-pe:ne!==void 0?-1:pe!==void 0?1:0})}const T=g.slice(0,5),z=B=>{const V="https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/listView/football";if(B.groups&&B.groups.length>0){const ee=B.groups[0];return[`${V}/${B.termKey}/${ee.termKey}/all/matches.json?${O}`]}return[`${V}/${B.termKey}/all/all/matches.json?${O}`]},G=T.flatMap(z);f(G,P,$)}catch(u){console.error(u)}}async function f($,R,P){try{const M=await In($,2,P);let p=[],u=[];M.forEach(I=>{I.events&&(p.push(...I.events.map(T=>T.event)),u.push(...I.events.flatMap(T=>T.betOffers||[])))});const b=Rn(p,u),h=$n(Nn(b));let g=h;if(R.length>0){const I=new Map(R.map((T,z)=>[String(T),z]));g=[...h].sort((T,z)=>{const G=I.get(String(T.id)),B=I.get(String(z.id));return G!==void 0&&B!==void 0?G-B:G!==void 0?-1:B!==void 0?1:0})}if(P.aborted)return;x(g)}catch(M){console.error("Error loading events:",M)}}_.useEffect(()=>{if(!t)return;const $=new AbortController;return S($.signal),()=>{$.abort()}},[t]),_.useEffect(()=>{if(j.start===null||j.end===null||!(m!=null&&m.length)||F.current)return;const $=2,R=Math.max(0,j.start-$),P=Math.min(m.length-1,j.end+$),M=m.slice(R,P+1).map(u=>u==null?void 0:u.id).filter(Boolean).filter(u=>v[u]===void 0);if(!M.length)return;let p=!1;return F.current=!0,(async()=>{try{const u=await De(M);p||d(b=>({...b,...u.events}))}catch(u){console.error("Jersey fetch error",u)}finally{F.current=!1}})(),()=>{p=!0}},[j,m]);const E=a||void 0,C={paddingLeft:0,width:"100%",boxSizing:"border-box"},k=m===null;return!k&&m.length===0?null:e.jsx("section",{className:E,style:C,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(J,{title:"Eventos de la semana"}),e.jsx("div",{className:xe.buttonWrapper,children:e.jsx(D,{variant:"secondary",size:"lg",fullWidth:!0,onClick:()=>{L()},children:"Ver más"})})]})}),e.jsx("div",{style:{minWidth:"180px"},children:e.jsx(X,{ref:i,items:k?Array(6).fill({}):m.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:$=>{const R=$.id,P=R in v?v[R]:void 0;return k?e.jsx(ue,{children:e.jsx(En,{})}):e.jsx(ue,{children:e.jsx(Je,{event:$,jersey:P})})},onMove:({isStart:$,isEnd:R,visibleStart:P,visibleEnd:M})=>{l({isStart:$,isEnd:R}),w({start:P,end:M})}})})]})})}function lt({backgrounds:t,items:n}){const[o,s]=_.useState(0),a=_.useRef(null),r=(t==null?void 0:t.length)||1,i=!t||t.length===0;return _.useEffect(()=>{if(i||!t||t.length<=1)return;const c=window.setInterval(()=>{var l;(l=a.current)==null||l.next()},5e3);return()=>window.clearInterval(c)},[i,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(X,{ref:a,items:t,perPage:1,gap:"0px",enableHorizontalWheel:!0,options:{type:"loop",perMove:1,pagination:!1,arrows:!1,drag:!0,focus:"center"},onMove:({index:c})=>{const l=(c%r+r)%r;s(l)},renderItem:c=>{var l,m;return e.jsxs(U.Box,{component:"a",href:c.href,target:(l=c.target)!=null?l:"_self",rel:c.target==="_blank"?"noopener noreferrer":void 0,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:c.desktopSrc,media:"(min-width:800px)"}),e.jsx("source",{srcSet:c.mobileSrc,media:"(max-width:799px)"}),e.jsx(U.Box,{component:"img",src:(m=c.fallbackSrc)!=null?m:c.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(_e,{total:r,active:o})})]}),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:n==null?void 0:n.map(c=>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:c.onClick||c.href?"pointer":"default",whiteSpace:"nowrap"},onClick:()=>{var l;if(c.onClick)return c.onClick();if(c.href)return window.location.href=(l=c.href)!=null?l:"/#"},children:[c.icon&&e.jsx(U.Box,{component:"img",src:c.icon,alt:c.label||`icon-${c.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:c.label})]},c.id))})]})}const Tn=[{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 ct({title:t="Medios de pago",items:n=Tn}){const o=Math.ceil(n.length/2),s=n.slice(0,o),a=n.slice(o);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:s.map((r,i)=>e.jsx(ge,{...r},`${r.alt}-${r.src}-${i}`))}),e.jsx(U.Stack,{direction:"row",justifyContent:"center",alignItems:"center",gap:{xs:2,md:3},flexWrap:"wrap",children:a.map((r,i)=>e.jsx(ge,{...r},`${r.alt}-${r.src}-${i}`))})]})]})}const Fn={OraculoSeccionDestacados:Xe,OraculoSeccionTopJuegos:Ee,OraculoSeccionCasinoEnVivo:Ze,OraculoSeccionCasino:et,OraculoSeccionVirtuales:nt,OraculoSeccionClubOlimpo:rt,OraculoSeccionBonoBienvenida:ot,OraculoSeccionBanners:lt,OraculoSeccionMediosPago:ct,OraculoSeccionEventoEnVivo:at,OraculoSeccionEventoSemana:it,OraculoSeccionEventoCombinadas:st},Mn=t=>typeof t=="function"||t&&typeof t=="object"&&"$$typeof"in t,Bn=t=>/^OraculoSeccion[A-Z]/.test(t),Ln=Object.fromEntries(Object.entries(Fn).filter(([t,n])=>Bn(t)&&Mn(n))),Pn=t=>{try{return Object.fromEntries(t!=null?t:[])}catch{return console.warn("[oraculo] extras inválidos. Debe ser Array<[string, unknown]>",t),{}}};class Re extends Error{constructor(n,o,s){super(`HTTP ${n} ${s}`),this.status=n,this.url=o,this.statusText=s,this.name="HttpError"}}const Te=["OraculoSeccionEventoEnVivo","OraculoSeccionEventoSemana","OraculoSeccionEventoCombinadas"],dt=({sectionsOverride:t,docId:n="home",db:o,extras:s,loader:a})=>{const r=_.useMemo(()=>Pn(s),[s]),i=a||r.loader,[c,l]=_.useState([]),[m,x]=_.useState(!1),[v,d]=_.useState({}),[y,w]=_.useState({}),[O,j]=_.useState({}),F=U.useMediaQuery("(min-width:1024px)");_.useEffect(()=>{if(t||!o)return;x(!0);const p=Ce.onSnapshot(Ce.doc(o,"landings",n),u=>{var b;try{let h=u.exists()?((b=u.data())==null?void 0:b.sections)||[]:[];h=h.slice().sort((g,I)=>{var T,z;return((T=g.order)!=null?T:0)-((z=I.order)!=null?z:0)}).map((g,I)=>({...g,order:I+1})),l(h),console.log("fetched: ",h)}catch(h){console.error("Error procesando landings/"+n,h)}finally{x(!1)}},u=>{console.error("Error escuchando landings/"+n,u),x(!1)});return()=>p()},[t,n,o]),_.useEffect(()=>(fn(r),()=>mn()),[r]),_.useEffect(()=>{(t?t.slice():c.slice()).map(b=>b.componentKey).filter(b=>!!b).length},[t,c]);const L=async p=>{if(Te.includes(p.componentKey))return{items:[],events:[],data:{}};const u=(p.apiUrl||"").trim();if(!u)return;const b=p.apiMethod||"GET",h=p.apiParams||[];let g=u,I,T;if(b==="GET"){const G=new URL(u,typeof window=="undefined"?"http://localhost":window.location.origin);for(const B of h)B.key&&G.searchParams.append(B.key,B.value);g=G.toString()}else{const G=new URLSearchParams;for(const B of h)B.key&&G.append(B.key,B.value);I=G.toString(),T={"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"}}const z=await fetch(g,{method:b,headers:T,body:I});if(!z.ok)throw new Re(z.status,g,z.statusText);return z.json()},S=_.useMemo(()=>t?t.slice():c.slice(),[t,c]),f=Me.default.useRef(new Set);_.useEffect(()=>{const p=S.map(u=>({s:u,url:(u.apiUrl||"").trim()})).filter(({url:u})=>!!u);if(p.length)for(const{s:u,url:b}of p){const h=`${u.id}|${b}`;f.current.has(h)||(f.current.add(h),w(g=>({...g,[u.id]:!0})),j(g=>({...g,[u.id]:""})),(async()=>{try{const g=await L(u);d(I=>({...I,[u.id]:g}))}catch(g){let I="Error desconocido";g instanceof Re?I=`Error HTTP ${g.status} (${g.statusText}) en ${g.url}`:g instanceof SyntaxError?I="Respuesta no es JSON válido":g instanceof TypeError?I="Fallo de red / CORS / conexión":typeof g=="string"&&(I=g.toString()),j(T=>({...T,[u.id]:I}))}finally{w(g=>({...g,[u.id]:!1}))}})())}},[S]);const E=_.useMemo(()=>S.filter(p=>p.visible).sort((p,u)=>p.order-u.order),[S]),C=p=>Array.isArray(p)?p.map(u=>{const b={};for(const h of u.fields||[]){const g=(h.type||"string").toLowerCase();if(g==="number"){const I=String(h.value||"").trim();if(I!==""){const T=Number(I);Number.isNaN(T)||(b[h.name]=T)}}else if(g==="boolean")b[h.name]=String(h.value).toLowerCase()==="true";else if(g==="function"){const I=String(h.value||"").trim();if(I)try{const T=new Function(I);b[h.name]=T}catch(T){console.error(`❌ Error creando función en item '${h.name}':`,T)}}else b[h.name]=h.value}return b}):[],k=p=>{const u={};if(!Array.isArray(p))return u;for(const b of p){if(!b.name)continue;const h=(b.type||"string").toLowerCase();if(h==="number"){const g=String(b.value||"").trim();if(g!==""){const I=Number(g);Number.isNaN(I)||(u[b.name]=I)}}else if(h==="boolean")u[b.name]=String(b.value).toLowerCase()==="true";else if(h==="function"){const g=String(b.value||"").trim();if(g)try{const I=new Function(g);u[b.name]=I}catch(I){console.error(`❌ Error creando función en item '${b.name}':`,I)}}else u[b.name]=b.value}return u},$=(p,u,b)=>{const h=b?{...b}:{};if(u){const B=(u.variableName||"items").trim()||"items";return h[B]=u.arr||[],h}const g=p,I=Array.isArray(g),T=!I&&typeof g=="object"&&g!==null?g:void 0,z=T&&Array.isArray(T.lobby||T.items)?T.lobby||T.items:void 0,G=B=>I?g:z||B;return h.items=G(z||[]),h},R=p=>{var I;const u=!!((I=p.apiUrl)!=null&&I.trim()),b=u?v[p.id]:void 0;let h=p.props?{...p.props}:{};const g=k(p.manualScalarFields);if(Te.includes(p.componentKey))return{items:b,...h,...g};if(h={...h,...g},u)h=$(b,null,h);else if(p.dataMode==="manual"){const T=C(p.manualItems);if(h=$(null,{arr:T,variableName:p.variableName},h),p.variableName2&&p.manualItems2){const z=C(p.manualItems2),G=(p.variableName2||"items2").trim()||"items2";h[G]=z}}return h},P=(p,u,b)=>{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[u]}`,children:b},p)},M=p=>{var ne;const u=p.componentKey,b=Ln[u];if(!b)return console.warn(`No hay componente registrado para "${u}"`),P(p.id,"component",`Componente "${u}" no encontrado`);const h=!!((ne=p.apiUrl)!=null&&ne.trim()),g=h?v[p.id]:void 0,I=h?!!y[p.id]:!1,T=h?O[p.id]:"";if(h){if(I&&!g)return P(p.id,"loading",`Cargando datos desde ${p.apiUrl}...`);if(T&&!g)return P(p.id,"error",`Error cargando ${p.apiUrl}: ${T}`)}const z=R(p),B=new Set(["OraculoSeccionBanners","OraculoSeccionBonoBienvenida","OraculoSeccionCasinoEnVivo",F?"":"OraculoSeccionClubOlimpo"]).has(p.componentKey),V=F?120:24,ee=B?{width:"100%",boxSizing:"border-box"}:{paddingLeft:V,paddingRight:V,width:"100%",boxSizing:"border-box"};return e.jsx("div",{style:ee,className:"oraculo-section-wrapper",children:e.jsx(b,{...z})},p.id)};return m&&!t?i?e.jsx(i,{}):e.jsx("div",{children:"Cargando..."}):!m&&!t&&c.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:F?8:5,useFlexGap:!0,children:E.map(M)})})};exports.OraculoButton=D;exports.OraculoCarousel=X;exports.OraculoCarouselDots=_e;exports.OraculoClubOlimpoVisual=Ue;exports.OraculoEventCombinadasCard=He;exports.OraculoEventEnVivoCard=Ke;exports.OraculoEventHeader=Ae;exports.OraculoEventLabel=ve;exports.OraculoEventLeague=je;exports.OraculoEventScore=we;exports.OraculoEventSemanaCard=Je;exports.OraculoEventStatus=We;exports.OraculoEventStatusBadge=Pe;exports.OraculoEventTeamInfo=ie;exports.OraculoGameCard=ae;exports.OraculoGameRankCard=ze;exports.OraculoGameSlide=ye;exports.OraculoGridGroup=H;exports.OraculoLiveCasinoCard=Ge;exports.OraculoLogoMediosPago=ge;exports.OraculoPageLandingPreview=dt;exports.OraculoSeccionBanners=lt;exports.OraculoSeccionBonoBienvenida=ot;exports.OraculoSeccionCasino=et;exports.OraculoSeccionCasinoEnVivo=Ze;exports.OraculoSeccionClubOlimpo=rt;exports.OraculoSeccionDestacados=Xe;exports.OraculoSeccionEventoCombinadas=st;exports.OraculoSeccionEventoEnVivo=at;exports.OraculoSeccionEventoSemana=it;exports.OraculoSeccionMediosPago=ct;exports.OraculoSeccionTopJuegos=Ee;exports.OraculoSeccionVirtuales=nt;exports.OraculoSectionTitle=J;exports.OraculoTopJuegoItem=Ee;exports.OraculoWelcomeBanner=be;exports.default=dt;
20
20
  //# sourceMappingURL=index.cjs.js.map