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