oraculo-ui 0.1.92 → 0.1.93
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 +5 -5
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.es.js +1285 -1284
- package/dist/index.es.js.map +1 -1
- package/dist/organisms/OraculoSeccionBanners/OraculoSeccionBanners.d.ts +3 -1
- package/dist/organisms/OraculoSeccionCarousel/OraculoSeccionCarousel.d.ts +36 -0
- package/dist/templates/OraculoOnlyBanners.d.ts +8 -0
- package/package.json +2 -2
package/dist/index.cjs.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),V=require("@mui/material"),x=require("react"),vt=require("@mui/material/Skeleton"),Ue=require("@splidejs/react-splide"),_t=require("@mui/material/Box"),yt=require("@mui/material/Typography"),wt=require("@mui/material/Stack"),K=require("@olimpo/capture-client"),ne=require("@mui/icons-material"),St=require("@mui/icons-material/ChevronLeftRounded"),jt=require("@mui/icons-material/ChevronRightRounded"),Ct=require("@mui/material/useMediaQuery"),Be=require("firebase/firestore"),xe=require("@mui/material/styles"),Ot=require("@mui/material/CssBaseline"),ee=t=>t&&t.__esModule?t:{default:t},ge=ee(x),q=ee(vt),L=ee(_t),Q=ee(yt),z=ee(wt),Ve=ee(St),We=ee(jt),Et=ee(Ct),It=ee(Ot);function G({children:t,onClick:a,href:n,target:i,rel:s,type:o="button",disabled:u=!1,variant:h="primary",size:v,fullWidth:f=!1,fullHeight:d=!1,className:m="",ariaLabel:O,leftIcon:j,rightIcon:C,iconOnly:M}){const S=!!t&&t!==!0,T=(!!j?1:0)+(!!C?1:0)==1,r=M!=null?M:T&&!S,_=["orc-btn",h==="secondary"?"orc-btn--secondary":h==="tertiary"?"orc-btn--tertiary":"orc-btn--primary",v?`orc-btn--${v}`:"",f?"orc-btn--full":"",d?"orc-btn--fullHeight":"",r?"orc-btn--iconOnly":"",m].filter(Boolean).join(" "),k=e.jsxs(e.Fragment,{children:[j&&e.jsx("span",{className:"orc-btn__icon",children:j}),!r&&e.jsx("span",{className:"orc-btn__label",children:t}),C&&e.jsx("span",{className:"orc-btn__icon",children:C})]}),N=u?!0:void 0;return n?e.jsx(V.Link,{href:n,target:i,rel:s,"aria-label":O,"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":O,className:_,children:k})}function te({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 Oe=({total:t,active:a,onSelect:n,className:i="",durationMs:s=5e3})=>{if(t<=1)return null;const o=["orc-dots",i].filter(Boolean).join(" "),[u,h]=x.useState(0);return x.useEffect(()=>{h(v=>v+1)},[a,s]),e.jsx("div",{className:o,role:"tablist","aria-label":"Carousel pagination",children:Array.from({length:t}).map((v,f)=>{const d=f===a;return e.jsx("span",{className:"orc-dots__cell",children:e.jsx("button",{type:"button",role:"tab","aria-selected":d,"aria-label":`Ir al slide ${f+1}`,className:"orc-dots__dot"+(d?" orc-dots__dot--active":""),style:d?{"--dot-progress-ms":`${s}ms`}:void 0,onClick:()=>{d&&h(m=>m+1),n==null||n(f)}},d?`a-${f}-${u}`:`i-${f}`)},f)})})};function J({children:t,minWidth:a=32,spacing:n=2,justify:i="stretch",columns:s=null}){const o=s||`repeat(auto-fit, minmax(${a}px, 1fr))`,u=typeof n=="number"?`${n*8}px`:n;return e.jsx("div",{style:{display:"grid",gridTemplateColumns:o,justifyItems:i,gap:u,height:"inherit"},children:t})}function je({src:t,alt:a}){return e.jsx(V.Box,{sx:{position:"relative",width:{xs:65,sm:80,md:120,lg:160},height:{xs:48,md:96},display:"inline-block"},children:e.jsx(V.Box,{component:"img",src:t,alt:a,sx:{position:"absolute",top:0,left:0,width:"100%",height:"100%",objectFit:"contain"}})})}const Tt="oraculo__OraculoEventTitle-module__contenedor___rg1vw",kt="oraculo__OraculoEventTitle-module__flexGroup___jMLFO",$t="oraculo__OraculoEventTitle-module__subtitle___TmHna",ve={contenedor:Tt,flexGroup:kt,subtitle:$t};function Mt({title:t,subtitle:a}){return e.jsxs("div",{className:ve.contenedor,children:[e.jsx("span",{style:{fontWeight:700,fontSize:"12px",lineHeight:"16px"},children:t}),a&&e.jsxs("div",{className:ve.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:ve.subtitle,children:a}),e.jsx("div",{})]})]})}function De({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 Ge({live:t,time:a}){return e.jsxs("div",{className:"oli-font",style:{display:"flex",alignItems:"center",gap:"8px"},children:[t&&e.jsx(De,{text:"En vivo"}),a&&e.jsx("span",{style:{fontSize:"14px",fontWeight:400,lineHeight:"18px",paddingTop:"4px"},children:a})]})}function He({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(Mt,{title:t,subtitle:a}),e.jsx(Ge,{live:n,time:i})]})}const Bt="oraculo__OraculoEventLabel-module__label___c64Xw",Nt={label:Bt};function Ee({text:t}){return e.jsx("span",{className:Nt.label,children:t})}const Lt="oraculo__OraculoEventLeague-module__container___rdk4F",Rt={container:Lt};function Ie({title:t}){return e.jsx("div",{className:Rt.container,children:t.toUpperCase()})}const Ft="oraculo__OraculoEventScore-module__scoreWrapper___fWwEr",At="oraculo__OraculoEventScore-module__name___r4uL6",Pt="oraculo__OraculoEventScore-module__score___Xl03M",qt="oraculo__OraculoEventScore-module__normal___cCNFz",zt="oraculo__OraculoEventScore-module__small___fVt8E",se={scoreWrapper:Ft,name:At,score:Pt,normal:qt,small:zt};function Te({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 Ut="oraculo__OraculoEventTeamInfo-module__team___UfpUs",Vt="oraculo__OraculoEventTeamInfo-module__regular___ag826",Wt="oraculo__OraculoEventTeamInfo-module__compact___RCNOs",Dt="oraculo__OraculoEventTeamInfo-module__logo___fKCl3",Gt="oraculo__OraculoEventTeamInfo-module__name___4ikm-",Ht="oraculo__OraculoEventTeamInfo-module__skeleton___Yfaxh",re={team:Ut,regular:Vt,compact:Wt,logo:Dt,name:Gt,skeleton:Ht},Kt="oraculo__OraculoTeamPolo-module__polo___BisRg",Zt="oraculo__OraculoTeamPolo-module__svgWrapper___HRKNX",Jt="oraculo__OraculoTeamPolo-module__shadow___-3DXb",Xt="oraculo__OraculoTeamPolo-module__highlight___1etm7",ue={polo:Kt,svgWrapper:Zt,shadow:Jt,highlight:Xt};function Yt({jersey:t,className:a}){const n=`#${t.base}`,i=t.sleeve?`#${t.sleeve}`:n,s=t.stripes?`#${t.stripes}`:null,o=t.sleevelong?`#${t.sleevelong}`:null;return e.jsxs("div",{className:`${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.4l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:s,d:"M292.1 648.8c-15.7-1.4-37.7-5-49.7-7.1-4.3-.6-22.6-5.3-35.5-9.5 1.5-10 3-21 4.3-32.7 7-60.5 4.8-132.8 3.1-185.6l-.9-32c-1-49-2.4-83.5-3.6-112-1.2-29-2.1-51.7-2.1-77 0-29 2.9-77.3 5.3-112.9l2.6-1c1.3-.3 10.1-2 14.4-2.7l10-3.2 6.6-3.7 9-5 4-2 .5-.3c1.2 2 2.6 4.1 3.4 4.8l6.1 7.8 15 14.6 4.8 4c-.6 26.4-1.1 60.6-1.1 100.1 0 59.3 1.1 82.6 2.7 114.6.9 18.8 2 40.7 3 74.9 1.5 48.3.8 98.4 0 148.6l-.8 68.3c0 13-.6 32.8-1.1 49Zm157.5-16.4-11.2 3.6a379.2 379.2 0 0 1-67 12c.2-11 .3-25.6.3-44.6 0-49.2-1.2-74.9-2.4-99.5-1.3-27.2-2.5-53-2-107.5.6-50.4 1.7-81.5 2.6-109.3 1-29.3 1.8-54.9 1.8-95.6 0-35.5-.6-70.6-1.2-98.6l3.6-3 5.3-5.1 3.5-3.6 3.5-3.4 4-5 4.2-5.3 2.7-4 .5.3 3.2 1.5 5.5 3.3 5.8 3 7.3 3 8.1 2.2c.7.2 3.3 1 8.4 2 2.4 0 6.5 1.5 11 3.4 2.6 29 5.2 68 5.2 107.8 0 41.5-1.6 70.2-3.2 102-1.6 28.7-3.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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.3-9 7-5.7 5.3-5.2 3.6-3.6 3.4-3.4 4.2-5 4-5.3 2.7-4C403.5 53 407 40 406 37.3c0-1.3-.9-4.6-3.9-7.2A129 129 0 0 1 391.2 20c-.8-1.1-4.2-4.3-7.3-6a52 52 0 0 0-15.3-3.9L353.5 9l-10.2-.4-15.4-.4H301.6c-4.6.2-14.6.6-17.2 1.2l-3.4.6c-3.2.5-6.9 1-8.4 2l-1.4.8c-1.5.7-2.8 1.4-5 3.7l-3.3 3.2Zm4.3 14 1.9 5.5 4.6 8.2 5 6.7 5.3 6.6 11 10.7 10.8 9.8 12.8 11.7 7.4 7 3 3 15-13.3 16.7-15.7 6.7-6.2 6-6.6a104.1 104.1 0 0 0 13.8-19.6c1-1.9 1.8-4.5 2-5.6 2.7-7.9 1.4-13.8-1.5-17.8-4-5.2-14.9-6.6-18.5-7.1h-.7c-13.8-1.9-39.8-2-46-1.9-9-.2-28.1.2-32.5.7-.6 0-1.2 0-1.9.2-6.8.6-19.9 1.9-22.6 10.6a22.6 22.6 0 0 0 .9 10.3l.8 2.9Z"}),e.jsx("path",{fill: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(Yt,{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 Qt(t,a,{enabled:n=!0,threshold:i=60,cooldownMs:s=500}={}){const o=x.useRef(0),u=x.useRef(0);x.useEffect(()=>{if(!n)return;const h=t.current;if(!h)return;const v=f=>{const d=a.current;if(!d||!d.go)return;const{deltaX:m,deltaY:O}=f;if(Math.abs(m)<=Math.abs(O))return;f.preventDefault(),o.current+=m;const j=Date.now();if(j-u.current<s||Math.abs(o.current)<i)return;const C=o.current>0?">":"<";o.current=0,u.current=j,d.go(C)};return h.addEventListener("wheel",v,{passive:!1}),()=>{h.removeEventListener("wheel",v),o.current=0}},[n,i,s,t,a])}const ea=Ue.Splide,ta=Ue.SplideSlide,ae=x.forwardRef(({items:t=[],renderItem:a,perPage:n=1,gap:i="0px",breakpoints:s,options:o={},className:u="",onMove:h,useIndexAsKey:v=!1,enableHorizontalWheel:f=!0},d)=>{const m=x.useRef(null),O=x.useRef(null),j=x.useRef(t.length);Qt(O,m,{enabled:f}),x.useImperativeHandle(d,()=>({next:()=>{var r;return(r=m.current)==null?void 0:r.go(">")},prev:()=>{var r;return(r=m.current)==null?void 0:r.go("<")},go:r=>{var _;return(_=m.current)==null?void 0:_.go(r)}}));const C=r=>{var b;const _=r.Components.Slides,k=r.Components.Controller,N=r.root.querySelector(".splide__track"),F=(b=N==null?void 0:N.clientWidth)!=null?b:0,A=k.getIndex(),w=_.getLength();let p=0,l=A;for(let g=A;g<w;g++){const c=_.getAt(g);if(!c||(p+=c.slide.offsetWidth,p>F))break;l=g}return{visibleStart:A,visibleEnd:l}},M=r=>{const _=r.root.querySelector(".splide__track"),k=r.root.querySelector(".splide__list");return!_||!k?!1:k.scrollWidth>_.clientWidth+1},S=x.useCallback(r=>{const k=r.Components.Slides.getLength();if(!M(r)){h==null||h({index:0,isStart:!0,isEnd:!0,total:k,visibleStart:0,visibleEnd:k-1});return}const{visibleStart:N,visibleEnd:F}=C(r),A=N===0,w=F===k-1,p=r.Components.Controller.getIndex();h==null||h({index:p,isStart:A,isEnd:w,total:k,visibleStart:N,visibleEnd:F})},[h]);ge.default.useEffect(()=>{var k;const r=(k=m.current)==null?void 0:k.splide;if(!r)return;const _=j.current!==t.length;j.current=t.length,_&&requestAnimationFrame(()=>{r.refresh(),S(r)})},[t.length,S]);const $=x.useCallback(()=>{var _;const r=(_=m.current)==null?void 0:_.splide;r&&(r.go(0,!1),S(r))},[S]),E=x.useCallback(r=>{S(r)},[S]),T={type:"slide",trimSpace:!1,drag:!0,pagination:!1,arrows:!1,rewind:!1,focus:"start",autoWidth:!1,perPage:n,gap:i,breakpoints:s,...o,...f?{wheel:!1}:{}};return e.jsx("div",{ref:O,className:u,style:{width:"100%"},children:e.jsx(ea,{ref:m,options:T,onMove:S,onMounted:E,onResize:$,children:t.map((r,_)=>{var k;return e.jsx(ta,{children:a(r,_)},v?_:(k=r.id)!=null?k:_)})})})}),ce=({imageUrl:t,onClick:a,size:n="sm",fillParent:i=!1})=>{const s=n==="lg"?{w:280,h:352}:{w:152,h:168},o=h=>{h.stopPropagation(),a==null||a()},u=i?{width:"100%",height:"100%"}:{width:`${s.w}px`,height:`${s.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",...u,"&: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 Ke({imageUrl:t,orden:a=1,onClick:n,loading:i=!1,sizes:s={xs:{w:104,h:112,r:18,font:48},md:{w:186,h:264,r:22.6,font:64}}}){var m,O,j,C;const o=(M,S)=>{var $,E,T,r;return{xs:(E=($=s.xs)==null?void 0:$[M])!=null?E:S,md:(r=(T=s.md)==null?void 0:T[M])!=null?r:S}},u=o("w",186),h=o("h",264),v=o("r",22.6),f=o("font",64),d={xs:Math.round(((O=(m=s.xs)==null?void 0:m.font)!=null?O:64)*.28),md:Math.round(((C=(j=s.md)==null?void 0:j.font)!=null?C:64)*.28)};return e.jsxs(L.default,{sx:{position:"relative",width:"100%",maxWidth:{xs:`${u.xs}px`,md:`${u.md}px`},aspectRatio:{xs:`${u.xs}/${h.xs}`,md:`${u.md}/${h.md}`},borderRadius:{xs:`${v.xs}px`,md:`${v.md}px`},boxSizing:"border-box",overflow:"visible",pb:{xs:`${d.xs}px`,md:`${d.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:`-${d.xs}px`,md:`-${d.md}px`},fontFamily:'"secondary", sans-serif',fontSize:{xs:`${f.xs}px`,md:`${f.md}px`},lineHeight:1,color:"#3CC666",WebkitTextStroke:"1px #9ee86e",zIndex:3,userSelect:"none"},children:a})]})}const Ze=({logo:t,provider:a,providerName:n,machine:i,onClick:s})=>{var o;return e.jsxs(L.default,{onClick:s,sx:{flex:"0 0 auto",position:"relative",borderRadius:"20px",overflow:"hidden",width:{xs:100,md:180},height:{xs:200,md:380},transition:"width .50s ease, transform .28s ease",willChange:"width, transform",cursor:"pointer",zIndex:0,"&:hover":{zIndex:2,width:{md:260,xs:110}},"&:hover .orc-live-provider-label":{opacity:1}},children:[e.jsx(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:""})})]})},_e=12,ye=({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)"}}})}),ke=({items:t,layout:a="grid",onClick:n,loading:i=!1,gridSkeletonCount:s=4})=>{var o,u;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:`${_e}px`,rowGap:`${_e}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(ye,{}):h&&e.jsx(ce,{imageUrl:`https://olimpo.bet${(u=(o=h.background)!=null?o:h.imageUrl)!=null?u:""}`,size:"lg",fillParent:!0,onClick:()=>n==null?void 0:n(h,0)})}),(i?Array.from({length:4}):v).map((f,d)=>{var m,O;return e.jsx(L.default,{sx:{width:{xs:104,md:152},height:{xs:112,md:168},overflow:"hidden",borderRadius:2},children:i?e.jsx(ye,{}):e.jsx(ce,{imageUrl:`https://olimpo.bet${(O=(m=f.background)!=null?m:f.imageUrl)!=null?O:""}`,size:"sm",fillParent:!0,onClick:()=>n==null?void 0:n(f,d+1)})},i?`sk-${d}`:f.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:`${_e}px`,gridAutoFlow:"column"},children:(i?Array.from({length:s}):t).map((h,v)=>{var f,d,m;return e.jsx(L.default,{sx:{overflow:"hidden",borderRadius:2},children:i?e.jsx(ye,{}):e.jsx(ce,{imageUrl:`https://olimpo.bet${(d=(f=h.background)!=null?f:h.imageUrl)!=null?d:""}`,size:"sm",fillParent:!0,onClick:()=>n==null?void 0:n(h,v)})},i?`sk-${v}`:(m=h.id)!=null?m:v)})})},Ce=({title:t,amount:a,subtitle:n,buttonText:i,onButtonClick:s,backgroundImage:o,alt:u,className:h="",variant:v="small"})=>{const f=a?a.slice(0,2):"",d=a?a.slice(2):"",m=v==="large";return e.jsxs(L.default,{className:h,sx:{position:"relative",width:"100%",maxWidth:{xs:328,md:m?618:456},mx:"auto"},children:[o&&e.jsx(L.default,{sx:{position:"relative",width:"100%",aspectRatio:{xs:"328 / 188",md:m?"618 / 346":"456 / 272"},borderRadius:"14px",overflow:"hidden"},children:e.jsx(L.default,{component:"img",src:o,alt:u!=null?u:"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:f}),e.jsx(L.default,{component:"span",sx:{fontSize:{xs:52,md:77}},children:d})]}),n&&e.jsx(Q.default,{sx:{pb:"20px",fontSize:14,fontWeight:600,color:"#e7f8ff"},children:n}),i&&e.jsx(G,{onClick:s,children:i})]})})]})},Je=({text:t,buttonLabel:a="Conoce más",onClick:n,imgAlt:i="Club Olimpo",imgSrcMobile:s,imgSrcDesktopBg:o,imgSrcDesktopLogo:u})=>e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"orc-co-bgMobile",children:e.jsx("img",{src:s,alt:i,className:"orc-co-bgMobileImg"})}),e.jsxs("div",{className:"orc-co-bgDesktop",children:[o&&e.jsx("div",{className:"orc-co-fillHost",children:e.jsx("img",{src:o,alt:`${i} fondo`,className:"orc-co-bgDesktopImg"})}),e.jsxs("div",{className:"orc-co-desktopContent",children:[u&&e.jsx("img",{src:u,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})]})]}),aa="oraculo__OraculoEventCombinadasCard-module__card___ulQeY",na="oraculo__OraculoEventCombinadasCard-module__combinadas___Gxrld",oa="oraculo__OraculoEventCombinadasCard-module__combinadasScroll___47cZl",ia="oraculo__OraculoEventCombinadasCard-module__apuestaItem___YnYMy",sa="oraculo__OraculoEventCombinadasCard-module__lineContainer___G5rbU",ra="oraculo__OraculoEventCombinadasCard-module__circle___eehm-",la="oraculo__OraculoEventCombinadasCard-module__line___Eb2pK",ca="oraculo__OraculoEventCombinadasCard-module__apuestaText___b5s7S",da="oraculo__OraculoEventCombinadasCard-module__cuotaTotal___Lohvu",X={card:aa,combinadas:na,combinadasScroll:oa,apuestaItem:ia,lineContainer:sa,circle:ra,line:la,apuestaText:ca,cuotaTotal:da};function $e(t){const a=Array.isArray(t)?t:[t];sessionStorage.setItem("landingOutcomes",JSON.stringify(a)),window.location.href="/deportes#in-play"}function ua(){window.location.href="/deportes#in-play"}function ma(){window.location.href="/deportes#sports-hub/football"}function pa(){window.location.href="/deportes#specials"}async function Xe(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 Ye(t,a=250){const[n,i]=x.useState(t);return x.useEffect(()=>{const s=setTimeout(()=>i(t),a);return()=>clearTimeout(s)},[t,a]),n}const Qe=x.createContext(void 0),fa=({children:t,docId:a})=>{const n=ge.default.useMemo(()=>({docId:a}),[a]);return e.jsx(Qe.Provider,{value:n,children:t})},Z=()=>{const t=x.useContext(Qe);if(!t)throw new Error("useDocId debe usarse dentro de DocIdProvider");return t.docId};function et({coupon:t}){var v;const a=K.useCaptureInteraction(),n=Z();function i(f){var O,j;const d=[],m=Array.from(new Map(((O=f==null?void 0:f.events)!=null?O:[]).filter(Boolean).map(C=>[C.id,C])).values());return m.forEach(C=>{var E;const M=(E=C.betoffers)!=null?E:[],S=C.homeName,$=C.awayName;M.forEach(T=>{var N,F,A,w,p,l,b;if(!((N=T==null?void 0:T.outcomes)!=null&&N.length))return;const r=T.outcomes[0];if(!r)return;let _="";const k=r!=null&&r.line?r.line/1e3:"";["Más de","Mas de","Over"].includes(r.label)?(_=`Más de ${k}`,r.participant&&(_=`${r.participant} - ${_}`)):["Menos de","Menos","Under"].includes(r.label)?(_=`Menos de ${k}`,r.participant&&(_=`${r.participant} - ${_}`)):["Sí","No"].includes(r.label)?(_=r.label,r.participant&&(_=`${r.participant} - ${_}`)):["1X","12","X2"].includes(r.label)?(r.label==="1X"&&(_=`${S} o Empate`),r.label==="12"&&(_=`${S} o ${$}`),r.label==="X2"&&(_=`${$} o Empate`)):(_=(A=(F=r.participant)!=null?F:r.label)!=null?A:"",k!==""&&_===r.label&&(_=`${r.label} ${k}`)),d.push({id:r.id,value:_,label:(p=(w=T.criterion)==null?void 0:w.label)!=null?p:"",odds:(l=r.odds)!=null?l:0,position:(b=r.position)!=null?b:0,eventId:C.id})})}),{outcomes:d.sort((C,M)=>C.position-M.position),total:(((j=f==null?void 0:f.combinadoTotal)!=null?j:0)/1e3).toFixed(2),events:m}}const s=(f,d)=>{const m=Array.isArray(f)?f:[f],O=Array.from(new Set(o.outcomes.map(M=>{var $;const S=h.get(Number(M.eventId));return($=S==null?void 0:S.name)!=null?$:""}))).filter(Boolean),j=O.length>0?O.join(" + "):JSON.stringify(m),C=d?`${j} - Cuota: ${d}`:j;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}}),$e(f)};if(!((v=t==null?void 0:t.events)!=null&&v.length))return null;const o=i(t),u=o.outcomes.reduce((f,d)=>(f[d.eventId]||(f[d.eventId]=[]),f[d.eventId].push(d),f),{}),h=new Map(o.events.map(f=>[f.id,f]));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(u).reverse().map(([f,d])=>{const m=h.get(Number(f));return m?e.jsxs(z.default,{direction:"column",spacing:.5,useFlexGap:!0,children:[e.jsx(te,{title:m.name,iconUrl:"/assets/img/home/Combinadas/pelota.png",size:"xs"}),e.jsx("img",{loading:"lazy",src:"/assets/img/home/Combinadas/line.png"}),d.map((O,j)=>e.jsxs("div",{className:X.apuestaItem,children:[e.jsxs("div",{className:X.lineContainer,children:[e.jsx("div",{className:X.circle}),j<d.length-1&&e.jsx("div",{className:X.line})]}),e.jsxs("div",{className:X.apuestaText,children:[e.jsx("strong",{children:O.value})," | ",O.label]})]},`${f}-${j}`))]},f):null})})})}),e.jsxs("button",{onClick:()=>s(o.outcomes.map(f=>f.id),o.total),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 ga({children:t,onClick:a,href:n,target:i,rel:s,type:o="button",disabled:u=!1,variant:h="primary",size:v,fullWidth:f=!1,fullHeight:d=!1,className:m="",ariaLabel:O,leftIcon:j,rightIcon:C,iconOnly:M}){const S=!!t&&t!==!0,T=(!!j?1:0)+(!!C?1:0)==1,r=M!=null?M:T&&!S,_=[Y["orc-btn"],Y[`orc-btn--${h}`],v?Y[`orc-btn--${v}`]:"",f?Y["orc-btn--full"]:"",d?Y["orc-btn--fullHeight"]:"",r?Y["orc-btn--iconOnly"]:"",m].filter(Boolean).join(" "),k=e.jsxs(e.Fragment,{children:[j&&e.jsx("span",{className:Y["orc-btn__icon"],children:j}),!r&&e.jsx("span",{className:Y["orc-btn__label"],children:t}),C&&e.jsx("span",{className:Y["orc-btn__icon"],children:C})]}),N=u?!0:void 0;return n?e.jsx(V.Link,{href:n,target:i,rel:s,"aria-label":O,"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":O,className:_,children:k})}const ha="oraculo__OraculoEventEnVivoCard-module__cardWrapper___6b-cT",tt={cardWrapper:ha},Ne={base:"FFFFFF",sleeve:"FFFFFF",number:"000000",real:!1,type:"short_sleeves"},Le={base:"000000",sleeve:"000000",number:"FFFFFF",real:!1,type:"short_sleeves"},pe=(t,a,n="player")=>{var s,o;if(t===void 0)return null;if(t===null)return a==="home"?Ne:Le;const i=(o=(s=t==null?void 0:t.jerseys)==null?void 0:s[a])==null?void 0:o[n];return i||(a==="home"?Ne:Le)};function at({event:t,liveData:a,betOffers:n,jersey:i}){var h,v,f,d,m,O,j,C,M,S,$;const s=n==null?void 0:n.find(E=>{var T;return((T=E.betOfferType)==null?void 0:T.id)===2}),o={englishLabel:"",type:"",betOfferId:0,changedDate:"",oddsFractional:"",oddsAmerican:"",status:"INACTIVE",cashOutStatus:"SUSPENDED"},u=[{...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:tt.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(He,{title:(f=(v=(h=t==null?void 0:t.path)==null?void 0:h[0])==null?void 0:v.name)!=null?f:"",subtitle:(d=t==null?void 0:t.group)!=null?d:"",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(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(Te,{text:((j=(O=a==null?void 0:a.score)==null?void 0:O.home)!=null?j:0)+":"+((M=(C=a==null?void 0:a.score)==null?void 0:C.away)!=null?M: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:((S=s==null?void 0:s.outcomes)!=null?S:u).map((E,T)=>e.jsx(Ee,{text:E.label.toUpperCase()},T))}),e.jsx(J,{spacing:2,children:(($=s==null?void 0:s.outcomes)!=null?$:u).map((E,T)=>e.jsx(ga,{variant:"primary",disabled:E.odds==null||(s==null?void 0:s.cashOutStatus)=="SUSPENDED",onClick:()=>{$e(E.id)},children:E.odds===void 0?"":(E.odds/1e3).toFixed(2)},T))})]})]})})}const ba="oraculo__OraculoEventDate-module__date___xhIlh",xa={date:ba};function va({text:t}){return e.jsx("div",{className:`oli-font ${xa.date}`,children:t})}const _a="oraculo__OraculoEventSemanaCard-module__cardContainer___4JuDe",ya="oraculo__OraculoEventSemanaCard-module__cardBackground___vfalD",wa="oraculo__OraculoEventSemanaCard-module__jugadas___W8b7H",Sa="oraculo__OraculoEventSemanaCard-module__equipos___G5hLn",ie={cardContainer:_a,cardBackground:ya,jugadas:wa,equipos:Sa};function nt({event:t,jersey:a}){var u,h,v,f,d,m,O;const n=K.useCaptureInteraction(),i=Z();function s(j){const C=new Date(j),M=C.toLocaleDateString("es-ES",{weekday:"short"}).toUpperCase(),S=C.getDate().toString().padStart(2,"0"),$=(C.getMonth()+1).toString().padStart(2,"0");let E=C.toLocaleTimeString("es-PE",{hour:"numeric",minute:"2-digit",hour12:!0}).toUpperCase();return E=E.replace(/\./g,"").replace(/A\s*M/i,"AM").replace(/P\s*M/i,"PM"),`${M} ${S}/${$} | ${E}`}const o=(j,C)=>{const M=`${t.homeName} vs ${t.awayName}`,S=C?(C/1e3).toFixed(2):"",$=S?`${M} - Cuota: ${S}`:M;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:$}}),$e(j)};return e.jsxs("div",{className:ie.cardContainer,children:[e.jsx(Ie,{title:(u=t==null?void 0:t.group)!=null?u:""}),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(Te,{text:"vs.",name:"",size:"small"}),e.jsx(de,{name:t.awayName,size:"compact",jersey:pe(a,"away")})]}),e.jsx(va,{text:s(t.start)})]}),e.jsxs(z.default,{direction:"column",spacing:{xs:.5,md:1},useFlexGap:!0,children:[e.jsx(J,{spacing:1,children:((f=(v=(h=t==null?void 0:t.outcome)==null?void 0:h[0])==null?void 0:v.outcomes)!=null?f:[]).map((j,C)=>e.jsx(Ee,{text:j.label.toUpperCase()},C))}),e.jsx("div",{className:ie.jugadas,children:e.jsx(J,{spacing:1,children:((O=(m=(d=t==null?void 0:t.outcome)==null?void 0:d[0])==null?void 0:m.outcomes)!=null?O:[]).map((j,C)=>e.jsx(G,{variant:"primary",fullHeight:!0,onClick:()=>{o(j.id,j.odds)},children:(j.odds/1e3).toFixed(2)},C))})})]})]})})]})}function ot({items:t,title:a="Destacados",iconUrl:n,onViewMore:i,className:s=""}){const o=x.useRef(null),[u,h]=x.useState({isStart:!0,isEnd:!1}),v=K.useCaptureInteraction(),f=Z(),d=!t||t.length===0,m=()=>{var S;v({element:"destacados_carousel_prev",label:`Landing: ${f} - OraculoSeccionDestacados - Anterior`,target:"carousel",event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{section:"OraculoSeccionDestacados"}}),(S=o.current)==null||S.prev()},O=()=>{var S;v({element:"destacados_carousel_next",label:`Landing: ${f} - OraculoSeccionDestacados - Siguiente`,target:"carousel",event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{section:"OraculoSeccionDestacados"}}),(S=o.current)==null||S.next()},j=()=>{v({element:"destacados_view_more",label:`Landing: ${f} - 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")},C=S=>{if(!S)return;const E=`https://www.olimpo.bet/promociones/${encodeURIComponent(S)}`;v({element:"destacados_card",label:`Landing: ${f} - OraculoSeccionDestacados - Click: ${String(S)}`,target:E,event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{section:"OraculoSeccionDestacados",promotion:String(S)}}),typeof globalThis!="undefined"&&globalThis.location&&globalThis.location.assign(E)},M=s||void 0;return e.jsxs("section",{className:M,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(te,{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(ne.ChevronLeftRounded,{}),onClick:m,disabled:u.isStart||d}),e.jsx(G,{ariaLabel:"Siguiente",variant:"secondary",iconOnly:!0,rightIcon:e.jsx(ne.ChevronRightRounded,{}),onClick:O,disabled:u.isEnd||d})]}),e.jsx(G,{variant:"secondary",onClick:j,children:"Ver más"})]}),e.jsx(ae,{ref:o,items:t,perPage:2,gap:"16px",enableHorizontalWheel:!0,options:{autoWidth:!0,gap:"12px",trimSpace:!0,pagination:!1,arrows:!1,drag:!0,focus:"start"},breakpoints:{768:{perPage:2,focus:"start"},1024:{perPage:2.5,focus:"start"}},renderItem:S=>e.jsx("div",{style:{textAlign:"center",marginTop:16,cursor:"pointer"},onClick:()=>C(S.promotion),children:e.jsx("img",{src:`https://olimpo.bet${S.image!==""?S.image:S.summary_image}`,alt:S.title,style:{width:"100%",height:typeof window!="undefined"&&window.innerWidth<768?"80px":"137px",borderRadius:8,display:"block",objectFit:"cover"}})},`${S.title}-${S.image}`),onMove:({isStart:S,isEnd:$})=>{h({isStart:S,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:S,isEnd:$},tags:{section:"OraculoSeccionDestacados"}})}})]})}const me="__ORACULO_EXTRAS__";function it(){const t=globalThis;return t[me]||(t[me]={}),t[me]}function ja(t){it().extras=t}function oe(t){var a;return(a=it().extras)==null?void 0:a[t]}function Ca(){delete globalThis[me]}function Me({items:t,title:a="Top Juegos",iconUrl:n,onCardClick:i}){const s=K.useCaptureInteraction(),o=Z(),u=x.useMemo(()=>(t!=null?t:[]).map((d,m)=>{var O;return{...d,orden:(O=d.orden)!=null?O:m+1,_originalIndex:m}}).sort((d,m)=>d.orden!=null&&m.orden!=null?d.orden-m.orden:d._originalIndex-m._originalIndex),[t]),h=!t||t.length===0,v=h?Array.from({length:6}):u.slice(0,6),f=d=>{s({element:"top_juegos_card",label:`Landing: ${o} - OraculoSeccionTopJuegos - Open game: ${String(d.machine||"unknown")}`,target:String(d.machine||"unknown"),event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{game_name:String(d.machine||"unknown"),section:"OraculoSeccionTopJuegos"}});const m=oe("showIframe"),O=oe("loadMachine");m==null||m(),requestAnimationFrame(()=>{O==null||O(d,!1,"CASINO")})};return e.jsx("section",{style:{width:"100%"},children:e.jsxs(z.default,{direction:"column",spacing:2,useFlexGap:!0,children:[e.jsx(te,{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((d,m)=>{var O,j;return e.jsx(Ke,{imageUrl:h?"":d.background?`https://olimpo.bet${d.background}`:`https://olimpo.bet${(O=d.logo)!=null?O:""}`,orden:h?m+1:d.orden,loading:h,onClick:h?void 0:()=>{i==null||i(d),f(d)}},h?`sk-${m}`:(j=d.machine)!=null?j:`${m}`)})})]})})}const Oa=(t,a)=>{var n,i;return(i=(n=t.orden)!=null?n:t.machine)!=null?i:a},st=({items:t,title:a="Casino en vivo",subtitle:n="Disfruta la emoción en tus juegos favoritos y gana en tiempo real.",backgroundMobileUrl:i="",backgroundDesktopUrl:s="",onViewMore:o,className:u})=>{const h=K.useCaptureInteraction(),v=Z(),f=m=>{h({element:"live_casino_card",label:`Landing: ${v} - OraculoSeccionCasinoEnVivo - Open game: ${String(m.machine||"unknown")}`,target:String(m.machine||"unknown"),event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{game_name:String(m.machine||"unknown"),provider:m.provider||"unknown",section:"OraculoSeccionCasinoEnVivo"}});const O=oe("showIframe"),j=oe("loadMachine");O==null||O(),typeof window!="undefined"&&window.scrollTo({top:0,behavior:"smooth"}),requestAnimationFrame(()=>{j==null||j(m,!1,"casino_en_vivo")})},d=()=>{h({element:"casino_en_vivo_view_more",label:`Landing: ${v} - OraculoSeccionCasinoEnVivo - Ver más`,target:"https://www.olimpo.bet/casino-en-vivo",event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{section:"OraculoSeccionCasinoEnVivo"}}),typeof globalThis!="undefined"&&globalThis.location&&(o?o():globalThis.location.assign("https://www.olimpo.bet/casino-en-vivo"))};return e.jsxs(L.default,{className:u,sx:{position:"relative",color:"white",overflow:"hidden"},children:[e.jsx(L.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"),h=require("react"),vt=require("@mui/material/Skeleton"),Ue=require("@splidejs/react-splide"),_t=require("@mui/material/Box"),yt=require("@mui/material/Typography"),wt=require("@mui/material/Stack"),K=require("@olimpo/capture-client"),ne=require("@mui/icons-material"),St=require("@mui/icons-material/ChevronLeftRounded"),jt=require("@mui/icons-material/ChevronRightRounded"),Ct=require("@mui/material/useMediaQuery"),Be=require("firebase/firestore"),xe=require("@mui/material/styles"),Ot=require("@mui/material/CssBaseline"),ee=t=>t&&t.__esModule?t:{default:t},ge=ee(h),z=ee(vt),R=ee(_t),Q=ee(yt),U=ee(wt),Ve=ee(St),We=ee(jt),Et=ee(Ct),It=ee(Ot);function G({children:t,onClick:a,href:n,target:r,rel:l,type:i="button",disabled:m=!1,variant:f="primary",size:x,fullWidth:p=!1,fullHeight:d=!1,className:u="",ariaLabel:j,leftIcon:S,rightIcon:C,iconOnly:B}){const _=!!t&&t!==!0,$=(!!S?1:0)+(!!C?1:0)==1,c=B!=null?B:$&&!_,y=["orc-btn",f==="secondary"?"orc-btn--secondary":f==="tertiary"?"orc-btn--tertiary":"orc-btn--primary",x?`orc-btn--${x}`:"",p?"orc-btn--full":"",d?"orc-btn--fullHeight":"",c?"orc-btn--iconOnly":"",u].filter(Boolean).join(" "),T=e.jsxs(e.Fragment,{children:[S&&e.jsx("span",{className:"orc-btn__icon",children:S}),!c&&e.jsx("span",{className:"orc-btn__label",children:t}),C&&e.jsx("span",{className:"orc-btn__icon",children:C})]}),L=m?!0:void 0;return n?e.jsx(W.Link,{href:n,target:r,rel:l,"aria-label":j,"aria-disabled":L,tabIndex:L?-1:void 0,className:y,onClick:L?F=>F.preventDefault():a,children:T}):e.jsx("button",{type:i,onClick:a,disabled:!!L,"aria-label":j,className:y,children:T})}function te({title:t,iconUrl:a,size:n="md",className:r=""}){const i=["orc-section-title",n?`orc-section-title--${n}`:"",r].filter(Boolean).join(" ");return e.jsxs("div",{className:i,children:[a&&e.jsx("img",{src:a,alt:"",className:"orc-section-title__icon"}),e.jsx("h2",{className:"orc-section-title__title",children:t})]})}const Oe=({total:t,active:a,onSelect:n,className:r="",durationMs:l=5e3})=>{if(t<=1)return null;const i=["orc-dots",r].filter(Boolean).join(" "),[m,f]=h.useState(0);return h.useEffect(()=>{f(x=>x+1)},[a,l]),e.jsx("div",{className:i,role:"tablist","aria-label":"Carousel pagination",children:Array.from({length:t}).map((x,p)=>{const d=p===a;return e.jsx("span",{className:"orc-dots__cell",children:e.jsx("button",{type:"button",role:"tab","aria-selected":d,"aria-label":`Ir al slide ${p+1}`,className:"orc-dots__dot"+(d?" orc-dots__dot--active":""),style:d?{"--dot-progress-ms":`${l}ms`}:void 0,onClick:()=>{d&&f(u=>u+1),n==null||n(p)}},d?`a-${p}-${m}`:`i-${p}`)},p)})})};function J({children:t,minWidth:a=32,spacing:n=2,justify:r="stretch",columns:l=null}){const i=l||`repeat(auto-fit, minmax(${a}px, 1fr))`,m=typeof n=="number"?`${n*8}px`:n;return e.jsx("div",{style:{display:"grid",gridTemplateColumns:i,justifyItems:r,gap:m,height:"inherit"},children:t})}function je({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 Tt="oraculo__OraculoEventTitle-module__contenedor___rg1vw",kt="oraculo__OraculoEventTitle-module__flexGroup___jMLFO",$t="oraculo__OraculoEventTitle-module__subtitle___TmHna",ve={contenedor:Tt,flexGroup:kt,subtitle:$t};function Mt({title:t,subtitle:a}){return e.jsxs("div",{className:ve.contenedor,children:[e.jsx("span",{style:{fontWeight:700,fontSize:"12px",lineHeight:"16px"},children:t}),a&&e.jsxs("div",{className:ve.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:ve.subtitle,children:a}),e.jsx("div",{})]})]})}function De({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 Ge({live:t,time:a}){return e.jsxs("div",{className:"oli-font",style:{display:"flex",alignItems:"center",gap:"8px"},children:[t&&e.jsx(De,{text:"En vivo"}),a&&e.jsx("span",{style:{fontSize:"14px",fontWeight:400,lineHeight:"18px",paddingTop:"4px"},children:a})]})}function He({title:t,subtitle:a,live:n=!1,time:r=""}){return e.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",color:"#FFFFFF"},children:[e.jsx(Mt,{title:t,subtitle:a}),e.jsx(Ge,{live:n,time:r})]})}const Bt="oraculo__OraculoEventLabel-module__label___c64Xw",Nt={label:Bt};function Ee({text:t}){return e.jsx("span",{className:Nt.label,children:t})}const Lt="oraculo__OraculoEventLeague-module__container___rdk4F",Rt={container:Lt};function Ie({title:t}){return e.jsx("div",{className:Rt.container,children:t.toUpperCase()})}const Ft="oraculo__OraculoEventScore-module__scoreWrapper___fWwEr",At="oraculo__OraculoEventScore-module__name___r4uL6",Pt="oraculo__OraculoEventScore-module__score___Xl03M",qt="oraculo__OraculoEventScore-module__normal___cCNFz",zt="oraculo__OraculoEventScore-module__small___fVt8E",se={scoreWrapper:Ft,name:At,score:Pt,normal:qt,small:zt};function Te({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 Ut="oraculo__OraculoEventTeamInfo-module__team___UfpUs",Vt="oraculo__OraculoEventTeamInfo-module__regular___ag826",Wt="oraculo__OraculoEventTeamInfo-module__compact___RCNOs",Dt="oraculo__OraculoEventTeamInfo-module__logo___fKCl3",Gt="oraculo__OraculoEventTeamInfo-module__name___4ikm-",Ht="oraculo__OraculoEventTeamInfo-module__skeleton___Yfaxh",re={team:Ut,regular:Vt,compact:Wt,logo:Dt,name:Gt,skeleton:Ht},Kt="oraculo__OraculoTeamPolo-module__polo___BisRg",Zt="oraculo__OraculoTeamPolo-module__svgWrapper___HRKNX",Jt="oraculo__OraculoTeamPolo-module__shadow___-3DXb",Xt="oraculo__OraculoTeamPolo-module__highlight___1etm7",ue={polo:Kt,svgWrapper:Zt,shadow:Jt,highlight:Xt};function Yt({jersey:t,className:a}){const n=`#${t.base}`,r=t.sleeve?`#${t.sleeve}`:n,l=t.stripes?`#${t.stripes}`:null,i=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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1-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:r,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:r,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(Yt,{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 Qt(t,a,{enabled:n=!0,threshold:r=60,cooldownMs:l=500}={}){const i=h.useRef(0),m=h.useRef(0);h.useEffect(()=>{if(!n)return;const f=t.current;if(!f)return;const x=p=>{const d=a.current;if(!d||!d.go)return;const{deltaX:u,deltaY:j}=p;if(Math.abs(u)<=Math.abs(j))return;p.preventDefault(),i.current+=u;const S=Date.now();if(S-m.current<l||Math.abs(i.current)<r)return;const C=i.current>0?">":"<";i.current=0,m.current=S,d.go(C)};return f.addEventListener("wheel",x,{passive:!1}),()=>{f.removeEventListener("wheel",x),i.current=0}},[n,r,l,t,a])}const ea=Ue.Splide,ta=Ue.SplideSlide,ae=h.forwardRef(({items:t=[],renderItem:a,perPage:n=1,gap:r="0px",breakpoints:l,options:i={},className:m="",onMove:f,useIndexAsKey:x=!1,enableHorizontalWheel:p=!0},d)=>{const u=h.useRef(null),j=h.useRef(null),S=h.useRef(t.length);Qt(j,u,{enabled:p}),h.useImperativeHandle(d,()=>({next:()=>{var c;return(c=u.current)==null?void 0:c.go(">")},prev:()=>{var c;return(c=u.current)==null?void 0:c.go("<")},go:c=>{var y;return(y=u.current)==null?void 0:y.go(c)}}));const C=c=>{var v;const y=c.Components.Slides,T=c.Components.Controller,L=c.root.querySelector(".splide__track"),F=(v=L==null?void 0:L.clientWidth)!=null?v:0,P=T.getIndex(),w=y.getLength();let I=0,g=P;for(let o=P;o<w;o++){const s=y.getAt(o);if(!s||(I+=s.slide.offsetWidth,I>F))break;g=o}return{visibleStart:P,visibleEnd:g}},B=c=>{const y=c.root.querySelector(".splide__track"),T=c.root.querySelector(".splide__list");return!y||!T?!1:T.scrollWidth>y.clientWidth+1},_=h.useCallback(c=>{const T=c.Components.Slides.getLength();if(!B(c)){f==null||f({index:0,isStart:!0,isEnd:!0,total:T,visibleStart:0,visibleEnd:T-1});return}const{visibleStart:L,visibleEnd:F}=C(c),P=L===0,w=F===T-1,I=c.Components.Controller.getIndex();f==null||f({index:I,isStart:P,isEnd:w,total:T,visibleStart:L,visibleEnd:F})},[f]);ge.default.useEffect(()=>{var T;const c=(T=u.current)==null?void 0:T.splide;if(!c)return;const y=S.current!==t.length;S.current=t.length,y&&requestAnimationFrame(()=>{c.refresh(),_(c)})},[t.length,_]);const k=h.useCallback(()=>{var y;const c=(y=u.current)==null?void 0:y.splide;c&&(c.go(0,!1),_(c))},[_]),E=h.useCallback(c=>{_(c)},[_]),$={type:"slide",trimSpace:!1,drag:!0,pagination:!1,arrows:!1,rewind:!1,focus:"start",autoWidth:!1,perPage:n,gap:r,breakpoints:l,...i,...p?{wheel:!1}:{}};return e.jsx("div",{ref:j,className:m,style:{width:"100%"},children:e.jsx(ea,{ref:u,options:$,onMove:_,onMounted:E,onResize:k,children:t.map((c,y)=>{var T;return e.jsx(ta,{children:a(c,y)},x?y:(T=c.id)!=null?T:y)})})})}),ce=({imageUrl:t,onClick:a,size:n="sm",fillParent:r=!1})=>{const l=n==="lg"?{w:280,h:352}:{w:152,h:168},i=f=>{f.stopPropagation(),a==null||a()},m=r?{width:"100%",height:"100%"}:{width:`${l.w}px`,height:`${l.h}px`};return e.jsxs(R.default,{onClick:a,role:"button",sx:{position:"relative",borderRadius:"12px",overflow:"hidden",boxSizing:"border-box",transition:"transform .15s ease, box-shadow .15s ease",...m,"&: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(R.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(R.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:i,children:"Jugar"})})]})};function Ke({imageUrl:t,orden:a=1,onClick:n,loading:r=!1,sizes:l={xs:{w:104,h:112,r:18,font:48},md:{w:186,h:264,r:22.6,font:64}}}){var u,j,S,C;const i=(B,_)=>{var k,E,$,c;return{xs:(E=(k=l.xs)==null?void 0:k[B])!=null?E:_,md:(c=($=l.md)==null?void 0:$[B])!=null?c:_}},m=i("w",186),f=i("h",264),x=i("r",22.6),p=i("font",64),d={xs:Math.round(((j=(u=l.xs)==null?void 0:u.font)!=null?j:64)*.28),md:Math.round(((C=(S=l.md)==null?void 0:S.font)!=null?C:64)*.28)};return e.jsxs(R.default,{sx:{position:"relative",width:"100%",maxWidth:{xs:`${m.xs}px`,md:`${m.md}px`},aspectRatio:{xs:`${m.xs}/${f.xs}`,md:`${m.md}/${f.md}`},borderRadius:{xs:`${x.xs}px`,md:`${x.md}px`},boxSizing:"border-box",overflow:"visible",pb:{xs:`${d.xs}px`,md:`${d.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(R.default,{sx:{position:"absolute",inset:0,borderRadius:"inherit",overflow:"hidden"},children:r?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(ce,{imageUrl:t,onClick:n,size:"lg",fillParent:!0})}),e.jsx(R.default,{component:"span",sx:{position:"absolute",left:8,bottom:{xs:`-${d.xs}px`,md:`-${d.md}px`},fontFamily:'"secondary", sans-serif',fontSize:{xs:`${p.xs}px`,md:`${p.md}px`},lineHeight:1,color:"#3CC666",WebkitTextStroke:"1px #9ee86e",zIndex:3,userSelect:"none"},children:a})]})}const Ze=({logo:t,provider:a,providerName:n,machine:r,onClick:l})=>{var i;return e.jsxs(R.default,{onClick:l,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(R.default,{component:"img",src:t,alt:`Juego ${r!=null?r:""}`,sx:{position:"absolute",inset:0,width:"100%",height:"100%",objectFit:"cover",display:"block"}}),e.jsx(R.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:(i=a!=null?a:n)!=null?i:""})})]})},_e=12,ye=({r:t=16})=>e.jsx(R.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)"}}})}),ke=({items:t,layout:a="grid",onClick:n,loading:r=!1,gridSkeletonCount:l=4})=>{var i,m;if(a==="mosaic"){const f=t[0],x=t.slice(1,5);return e.jsxs(R.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:`${_e}px`,rowGap:`${_e}px`,alignItems:"stretch",justifyItems:"stretch"},children:[e.jsx(R.default,{sx:{width:{xs:184,md:280},height:{xs:234,md:352},gridRow:"1 / span 2",overflow:"hidden",borderRadius:2},children:r?e.jsx(ye,{}):f&&e.jsx(ce,{imageUrl:`https://olimpo.bet${(m=(i=f.background)!=null?i:f.imageUrl)!=null?m:""}`,size:"lg",fillParent:!0,onClick:()=>n==null?void 0:n(f,0)})}),(r?Array.from({length:4}):x).map((p,d)=>{var u,j;return e.jsx(R.default,{sx:{width:{xs:104,md:152},height:{xs:112,md:168},overflow:"hidden",borderRadius:2},children:r?e.jsx(ye,{}):e.jsx(ce,{imageUrl:`https://olimpo.bet${(j=(u=p.background)!=null?u:p.imageUrl)!=null?j:""}`,size:"sm",fillParent:!0,onClick:()=>n==null?void 0:n(p,d+1)})},r?`sk-${d}`:p.id)})]})}return e.jsx(R.default,{sx:{display:"grid",gridTemplateColumns:{xs:"repeat(2, 104px)",md:"repeat(2, 152px)"},gridTemplateRows:{xs:"repeat(2, 112px)",md:"repeat(2, 168px)"},gap:`${_e}px`,gridAutoFlow:"column"},children:(r?Array.from({length:l}):t).map((f,x)=>{var p,d,u;return e.jsx(R.default,{sx:{overflow:"hidden",borderRadius:2},children:r?e.jsx(ye,{}):e.jsx(ce,{imageUrl:`https://olimpo.bet${(d=(p=f.background)!=null?p:f.imageUrl)!=null?d:""}`,size:"sm",fillParent:!0,onClick:()=>n==null?void 0:n(f,x)})},r?`sk-${x}`:(u=f.id)!=null?u:x)})})},Ce=({title:t,amount:a,subtitle:n,buttonText:r,onButtonClick:l,backgroundImage:i,alt:m,className:f="",variant:x="small"})=>{const p=a?a.slice(0,2):"",d=a?a.slice(2):"",u=x==="large";return e.jsxs(R.default,{className:f,sx:{position:"relative",width:"100%",maxWidth:{xs:328,md:u?618:456},mx:"auto"},children:[i&&e.jsx(R.default,{sx:{position:"relative",width:"100%",aspectRatio:{xs:"328 / 188",md:u?"618 / 346":"456 / 272"},borderRadius:"14px",overflow:"hidden"},children:e.jsx(R.default,{component:"img",src:i,alt:m!=null?m:"Fondo promocional",sx:{width:"100%",height:"100%",objectFit:"cover",objectPosition:{xs:"50% 0%",md:"45% 0%"},display:"block"}})}),e.jsx(R.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(R.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(R.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(R.default,{component:"span",sx:{fontSize:{xs:35,md:48},mr:.5},children:p}),e.jsx(R.default,{component:"span",sx:{fontSize:{xs:52,md:77}},children:d})]}),n&&e.jsx(Q.default,{sx:{pb:"20px",fontSize:14,fontWeight:600,color:"#e7f8ff"},children:n}),r&&e.jsx(G,{onClick:l,children:r})]})})]})},Je=({text:t,buttonLabel:a="Conoce más",onClick:n,imgAlt:r="Club Olimpo",imgSrcMobile:l,imgSrcDesktopBg:i,imgSrcDesktopLogo:m})=>e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"orc-co-bgMobile",children:e.jsx("img",{src:l,alt:r,className:"orc-co-bgMobileImg"})}),e.jsxs("div",{className:"orc-co-bgDesktop",children:[i&&e.jsx("div",{className:"orc-co-fillHost",children:e.jsx("img",{src:i,alt:`${r} fondo`,className:"orc-co-bgDesktopImg"})}),e.jsxs("div",{className:"orc-co-desktopContent",children:[m&&e.jsx("img",{src:m,alt:`${r} 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})]})]}),aa="oraculo__OraculoEventCombinadasCard-module__card___ulQeY",na="oraculo__OraculoEventCombinadasCard-module__combinadas___Gxrld",oa="oraculo__OraculoEventCombinadasCard-module__combinadasScroll___47cZl",ia="oraculo__OraculoEventCombinadasCard-module__apuestaItem___YnYMy",sa="oraculo__OraculoEventCombinadasCard-module__lineContainer___G5rbU",ra="oraculo__OraculoEventCombinadasCard-module__circle___eehm-",la="oraculo__OraculoEventCombinadasCard-module__line___Eb2pK",ca="oraculo__OraculoEventCombinadasCard-module__apuestaText___b5s7S",da="oraculo__OraculoEventCombinadasCard-module__cuotaTotal___Lohvu",X={card:aa,combinadas:na,combinadasScroll:oa,apuestaItem:ia,lineContainer:sa,circle:ra,line:la,apuestaText:ca,cuotaTotal:da};function $e(t){const a=Array.isArray(t)?t:[t];sessionStorage.setItem("landingOutcomes",JSON.stringify(a)),window.location.href="/deportes#in-play"}function ua(){window.location.href="/deportes#in-play"}function ma(){window.location.href="/deportes#sports-hub/football"}function pa(){window.location.href="/deportes#specials"}async function Xe(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 Ye(t,a=250){const[n,r]=h.useState(t);return h.useEffect(()=>{const l=setTimeout(()=>r(t),a);return()=>clearTimeout(l)},[t,a]),n}const Qe=h.createContext(void 0),fa=({children:t,docId:a})=>{const n=ge.default.useMemo(()=>({docId:a}),[a]);return e.jsx(Qe.Provider,{value:n,children:t})},Z=()=>{const t=h.useContext(Qe);if(!t)throw new Error("useDocId debe usarse dentro de DocIdProvider");return t.docId};function et({coupon:t}){var x;const a=K.useCaptureInteraction(),n=Z();function r(p){var j,S;const d=[],u=Array.from(new Map(((j=p==null?void 0:p.events)!=null?j:[]).filter(Boolean).map(C=>[C.id,C])).values());return u.forEach(C=>{var E;const B=(E=C.betoffers)!=null?E:[],_=C.homeName,k=C.awayName;B.forEach($=>{var L,F,P,w,I,g,v;if(!((L=$==null?void 0:$.outcomes)!=null&&L.length))return;const c=$.outcomes[0];if(!c)return;let y="";const T=c!=null&&c.line?c.line/1e3:"";["Más de","Mas de","Over"].includes(c.label)?(y=`Más de ${T}`,c.participant&&(y=`${c.participant} - ${y}`)):["Menos de","Menos","Under"].includes(c.label)?(y=`Menos de ${T}`,c.participant&&(y=`${c.participant} - ${y}`)):["Sí","No"].includes(c.label)?(y=c.label,c.participant&&(y=`${c.participant} - ${y}`)):["1X","12","X2"].includes(c.label)?(c.label==="1X"&&(y=`${_} o Empate`),c.label==="12"&&(y=`${_} o ${k}`),c.label==="X2"&&(y=`${k} o Empate`)):(y=(P=(F=c.participant)!=null?F:c.label)!=null?P:"",T!==""&&y===c.label&&(y=`${c.label} ${T}`)),d.push({id:c.id,value:y,label:(I=(w=$.criterion)==null?void 0:w.label)!=null?I:"",odds:(g=c.odds)!=null?g:0,position:(v=c.position)!=null?v:0,eventId:C.id})})}),{outcomes:d.sort((C,B)=>C.position-B.position),total:(((S=p==null?void 0:p.combinadoTotal)!=null?S:0)/1e3).toFixed(2),events:u}}const l=(p,d)=>{const u=Array.isArray(p)?p:[p],j=Array.from(new Set(i.outcomes.map(B=>{var k;const _=f.get(Number(B.eventId));return(k=_==null?void 0:_.name)!=null?k:""}))).filter(Boolean),S=j.length>0?j.join(" + "):JSON.stringify(u),C=d?`${S} - Cuota: ${d}`: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}}),$e(p)};if(!((x=t==null?void 0:t.events)!=null&&x.length))return null;const i=r(t),m=i.outcomes.reduce((p,d)=>(p[d.eventId]||(p[d.eventId]=[]),p[d.eventId].push(d),p),{}),f=new Map(i.events.map(p=>[p.id,p]));return e.jsxs("div",{className:X.card,children:[e.jsx("div",{className:X.combinadas,children:e.jsx("div",{className:X.combinadasScroll,children:e.jsx(U.default,{direction:"column",spacing:1.5,useFlexGap:!0,children:Object.entries(m).reverse().map(([p,d])=>{const u=f.get(Number(p));return u?e.jsxs(U.default,{direction:"column",spacing:.5,useFlexGap:!0,children:[e.jsx(te,{title:u.name,iconUrl:"/assets/img/home/Combinadas/pelota.png",size:"xs"}),e.jsx("img",{loading:"lazy",src:"/assets/img/home/Combinadas/line.png"}),d.map((j,S)=>e.jsxs("div",{className:X.apuestaItem,children:[e.jsxs("div",{className:X.lineContainer,children:[e.jsx("div",{className:X.circle}),S<d.length-1&&e.jsx("div",{className:X.line})]}),e.jsxs("div",{className:X.apuestaText,children:[e.jsx("strong",{children:j.value})," | ",j.label]})]},`${p}-${S}`))]},p):null})})})}),e.jsxs("button",{onClick:()=>l(i.outcomes.map(p=>p.id),i.total),className:X.cuotaTotal,children:[e.jsxs("span",{children:["Cuota total: ",e.jsx("strong",{children:i.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 ga({children:t,onClick:a,href:n,target:r,rel:l,type:i="button",disabled:m=!1,variant:f="primary",size:x,fullWidth:p=!1,fullHeight:d=!1,className:u="",ariaLabel:j,leftIcon:S,rightIcon:C,iconOnly:B}){const _=!!t&&t!==!0,$=(!!S?1:0)+(!!C?1:0)==1,c=B!=null?B:$&&!_,y=[Y["orc-btn"],Y[`orc-btn--${f}`],x?Y[`orc-btn--${x}`]:"",p?Y["orc-btn--full"]:"",d?Y["orc-btn--fullHeight"]:"",c?Y["orc-btn--iconOnly"]:"",u].filter(Boolean).join(" "),T=e.jsxs(e.Fragment,{children:[S&&e.jsx("span",{className:Y["orc-btn__icon"],children:S}),!c&&e.jsx("span",{className:Y["orc-btn__label"],children:t}),C&&e.jsx("span",{className:Y["orc-btn__icon"],children:C})]}),L=m?!0:void 0;return n?e.jsx(W.Link,{href:n,target:r,rel:l,"aria-label":j,"aria-disabled":L,tabIndex:L?-1:void 0,className:y,onClick:L?F=>F.preventDefault():a,children:T}):e.jsx("button",{type:i,onClick:a,disabled:!!L,"aria-label":j,className:y,children:T})}const ha="oraculo__OraculoEventEnVivoCard-module__cardWrapper___6b-cT",tt={cardWrapper:ha},Ne={base:"FFFFFF",sleeve:"FFFFFF",number:"000000",real:!1,type:"short_sleeves"},Le={base:"000000",sleeve:"000000",number:"FFFFFF",real:!1,type:"short_sleeves"},pe=(t,a,n="player")=>{var l,i;if(t===void 0)return null;if(t===null)return a==="home"?Ne:Le;const r=(i=(l=t==null?void 0:t.jerseys)==null?void 0:l[a])==null?void 0:i[n];return r||(a==="home"?Ne:Le)};function at({event:t,liveData:a,betOffers:n,jersey:r}){var f,x,p,d,u,j,S,C,B,_,k;const l=n==null?void 0:n.find(E=>{var $;return(($=E.betOfferType)==null?void 0:$.id)===2}),i={englishLabel:"",type:"",betOfferId:0,changedDate:"",oddsFractional:"",oddsAmerican:"",status:"INACTIVE",cashOutStatus:"SUSPENDED"},m=[{...i,id:-1,label:"1",odds:void 0},{...i,id:-2,label:"X",odds:void 0},{...i,id:-3,label:"2",odds:void 0}];return e.jsx("div",{className:tt.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(He,{title:(p=(x=(f=t==null?void 0:t.path)==null?void 0:f[0])==null?void 0:x.name)!=null?p:"",subtitle:(d=t==null?void 0:t.group)!=null?d:"",live:!0,time:((u=a==null?void 0:a.matchClock)==null?void 0:u.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(r,"home")}),e.jsx(Te,{text:((S=(j=a==null?void 0:a.score)==null?void 0:j.home)!=null?S:0)+":"+((B=(C=a==null?void 0:a.score)==null?void 0:C.away)!=null?B:0),name:"En vivo"}),e.jsx(de,{name:t==null?void 0:t.awayName,jersey:pe(r,"away")})]})})]}),e.jsxs(U.default,{direction:"column",spacing:1,useFlexGap:!0,children:[e.jsx(J,{spacing:1,children:((_=l==null?void 0:l.outcomes)!=null?_:m).map((E,$)=>e.jsx(Ee,{text:E.label.toUpperCase()},$))}),e.jsx(J,{spacing:2,children:((k=l==null?void 0:l.outcomes)!=null?k:m).map((E,$)=>e.jsx(ga,{variant:"primary",disabled:E.odds==null||(l==null?void 0:l.cashOutStatus)=="SUSPENDED",onClick:()=>{$e(E.id)},children:E.odds===void 0?"":(E.odds/1e3).toFixed(2)},$))})]})]})})}const ba="oraculo__OraculoEventDate-module__date___xhIlh",xa={date:ba};function va({text:t}){return e.jsx("div",{className:`oli-font ${xa.date}`,children:t})}const _a="oraculo__OraculoEventSemanaCard-module__cardContainer___4JuDe",ya="oraculo__OraculoEventSemanaCard-module__cardBackground___vfalD",wa="oraculo__OraculoEventSemanaCard-module__jugadas___W8b7H",Sa="oraculo__OraculoEventSemanaCard-module__equipos___G5hLn",ie={cardContainer:_a,cardBackground:ya,jugadas:wa,equipos:Sa};function nt({event:t,jersey:a}){var m,f,x,p,d,u,j;const n=K.useCaptureInteraction(),r=Z();function l(S){const C=new Date(S),B=C.toLocaleDateString("es-ES",{weekday:"short"}).toUpperCase(),_=C.getDate().toString().padStart(2,"0"),k=(C.getMonth()+1).toString().padStart(2,"0");let E=C.toLocaleTimeString("es-PE",{hour:"numeric",minute:"2-digit",hour12:!0}).toUpperCase();return E=E.replace(/\./g,"").replace(/A\s*M/i,"AM").replace(/P\s*M/i,"PM"),`${B} ${_}/${k} | ${E}`}const i=(S,C)=>{const B=`${t.homeName} vs ${t.awayName}`,_=C?(C/1e3).toFixed(2):"",k=_?`${B} - Cuota: ${_}`:B;n({element:"evento_semana_outcome",label:`Landing: ${r} - OraculoEventSemanaCard - Click: ${k}`,target:"/deportes#in-play",event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{section:"OraculoEventSemanaCard",outcomes:k}}),$e(S)};return e.jsxs("div",{className:ie.cardContainer,children:[e.jsx(Ie,{title:(m=t==null?void 0:t.group)!=null?m:""}),e.jsx("div",{className:ie.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:ie.equipos,children:[e.jsx(de,{name:t.homeName,size:"compact",jersey:pe(a,"home")}),e.jsx(Te,{text:"vs.",name:"",size:"small"}),e.jsx(de,{name:t.awayName,size:"compact",jersey:pe(a,"away")})]}),e.jsx(va,{text:l(t.start)})]}),e.jsxs(U.default,{direction:"column",spacing:{xs:.5,md:1},useFlexGap:!0,children:[e.jsx(J,{spacing:1,children:((p=(x=(f=t==null?void 0:t.outcome)==null?void 0:f[0])==null?void 0:x.outcomes)!=null?p:[]).map((S,C)=>e.jsx(Ee,{text:S.label.toUpperCase()},C))}),e.jsx("div",{className:ie.jugadas,children:e.jsx(J,{spacing:1,children:((j=(u=(d=t==null?void 0:t.outcome)==null?void 0:d[0])==null?void 0:u.outcomes)!=null?j:[]).map((S,C)=>e.jsx(G,{variant:"primary",fullHeight:!0,onClick:()=>{i(S.id,S.odds)},children:(S.odds/1e3).toFixed(2)},C))})})]})]})})]})}function ot({items:t,title:a="Destacados",iconUrl:n,onViewMore:r,className:l=""}){const i=h.useRef(null),[m,f]=h.useState({isStart:!0,isEnd:!1}),x=K.useCaptureInteraction(),p=Z(),d=!t||t.length===0,u=()=>{var _;x({element:"destacados_carousel_prev",label:`Landing: ${p} - OraculoSeccionDestacados - Anterior`,target:"carousel",event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{section:"OraculoSeccionDestacados"}}),(_=i.current)==null||_.prev()},j=()=>{var _;x({element:"destacados_carousel_next",label:`Landing: ${p} - OraculoSeccionDestacados - Siguiente`,target:"carousel",event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{section:"OraculoSeccionDestacados"}}),(_=i.current)==null||_.next()},S=()=>{x({element:"destacados_view_more",label:`Landing: ${p} - 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")},C=_=>{if(!_)return;const E=`https://www.olimpo.bet/promociones/${encodeURIComponent(_)}`;x({element:"destacados_card",label:`Landing: ${p} - OraculoSeccionDestacados - Click: ${String(_)}`,target:E,event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{section:"OraculoSeccionDestacados",promotion:String(_)}}),typeof globalThis!="undefined"&&globalThis.location&&globalThis.location.assign(E)},B=l||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(te,{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(ne.ChevronLeftRounded,{}),onClick:u,disabled:m.isStart||d}),e.jsx(G,{ariaLabel:"Siguiente",variant:"secondary",iconOnly:!0,rightIcon:e.jsx(ne.ChevronRightRounded,{}),onClick:j,disabled:m.isEnd||d})]}),e.jsx(G,{variant:"secondary",onClick:S,children:"Ver más"})]}),e.jsx(ae,{ref:i,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:_=>e.jsx("div",{style:{textAlign:"center",marginTop:16,cursor:"pointer"},onClick:()=>C(_.promotion),children:e.jsx("img",{src:`https://olimpo.bet${_.image!==""?_.image:_.summary_image}`,alt:_.title,style:{width:"100%",height:typeof window!="undefined"&&window.innerWidth<768?"80px":"137px",borderRadius:8,display:"block",objectFit:"cover"}})},`${_.title}-${_.image}`),onMove:({isStart:_,isEnd:k})=>{f({isStart:_,isEnd:k}),x({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:_,isEnd:k},tags:{section:"OraculoSeccionDestacados"}})}})]})}const me="__ORACULO_EXTRAS__";function it(){const t=globalThis;return t[me]||(t[me]={}),t[me]}function ja(t){it().extras=t}function oe(t){var a;return(a=it().extras)==null?void 0:a[t]}function Ca(){delete globalThis[me]}function Me({items:t,title:a="Top Juegos",iconUrl:n,onCardClick:r}){const l=K.useCaptureInteraction(),i=Z(),m=h.useMemo(()=>(t!=null?t:[]).map((d,u)=>{var j;return{...d,orden:(j=d.orden)!=null?j:u+1,_originalIndex:u}}).sort((d,u)=>d.orden!=null&&u.orden!=null?d.orden-u.orden:d._originalIndex-u._originalIndex),[t]),f=!t||t.length===0,x=f?Array.from({length:6}):m.slice(0,6),p=d=>{l({element:"top_juegos_card",label:`Landing: ${i} - OraculoSeccionTopJuegos - Open game: ${String(d.machine||"unknown")}`,target:String(d.machine||"unknown"),event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{game_name:String(d.machine||"unknown"),section:"OraculoSeccionTopJuegos"}});const u=oe("showIframe"),j=oe("loadMachine");u==null||u(),requestAnimationFrame(()=>{j==null||j(d,!1,"CASINO")})};return e.jsx("section",{style:{width:"100%"},children:e.jsxs(U.default,{direction:"column",spacing:2,useFlexGap:!0,children:[e.jsx(te,{title:a,iconUrl:n,size:"md"}),e.jsx(R.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:x.map((d,u)=>{var j,S;return e.jsx(Ke,{imageUrl:f?"":d.background?`https://olimpo.bet${d.background}`:`https://olimpo.bet${(j=d.logo)!=null?j:""}`,orden:f?u+1:d.orden,loading:f,onClick:f?void 0:()=>{r==null||r(d),p(d)}},f?`sk-${u}`:(S=d.machine)!=null?S:`${u}`)})})]})})}const Oa=(t,a)=>{var n,r;return(r=(n=t.orden)!=null?n:t.machine)!=null?r:a},st=({items:t,title:a="Casino en vivo",subtitle:n="Disfruta la emoción en tus juegos favoritos y gana en tiempo real.",backgroundMobileUrl:r="",backgroundDesktopUrl:l="",onViewMore:i,className:m})=>{const f=K.useCaptureInteraction(),x=Z(),p=u=>{f({element:"live_casino_card",label:`Landing: ${x} - OraculoSeccionCasinoEnVivo - Open game: ${String(u.machine||"unknown")}`,target:String(u.machine||"unknown"),event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{game_name:String(u.machine||"unknown"),provider:u.provider||"unknown",section:"OraculoSeccionCasinoEnVivo"}});const j=oe("showIframe"),S=oe("loadMachine");j==null||j(),typeof window!="undefined"&&window.scrollTo({top:0,behavior:"smooth"}),requestAnimationFrame(()=>{S==null||S(u,!1,"casino_en_vivo")})},d=()=>{f({element:"casino_en_vivo_view_more",label:`Landing: ${x} - OraculoSeccionCasinoEnVivo - Ver más`,target:"https://www.olimpo.bet/casino-en-vivo",event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{section:"OraculoSeccionCasinoEnVivo"}}),typeof globalThis!="undefined"&&globalThis.location&&(i?i():globalThis.location.assign("https://www.olimpo.bet/casino-en-vivo"))};return e.jsxs(R.default,{className:m,sx:{position:"relative",color:"white",overflow:"hidden"},children:[e.jsx(R.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
|
-
url('${
|
|
4
|
+
url('${r}')
|
|
5
5
|
`,md:`
|
|
6
6
|
linear-gradient(to bottom, #121212 0%, rgba(18,18,18,0) 10%),
|
|
7
7
|
linear-gradient(to top, #121212 0%, rgba(18,18,18,0) 10%),
|
|
8
|
-
url('${
|
|
9
|
-
`},backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat",zIndex:0}}),e.jsxs(
|
|
8
|
+
url('${l}')
|
|
9
|
+
`},backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat",zIndex:0}}),e.jsxs(R.default,{sx:{position:"relative",zIndex:1,maxWidth:1200,height:{xs:"450px",md:"550px"},mx:"auto",px:{xs:2.5,md:6},display:"flex",flexDirection:{xs:"column",md:"row"},alignItems:{xs:"center",md:"center"},justifyContent:"center",gap:{xs:0,md:15},textAlign:{xs:"center",md:"left"}},children:[e.jsxs(U.default,{spacing:3,sx:{maxWidth:{md:280}},children:[e.jsx(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(R.default,{sx:{display:{xs:"none",md:"block"}},children:e.jsx(G,{variant:"primary",size:"md",onClick:d,children:"Ver más"})})]}),e.jsx(R.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((u,j)=>{var S;return e.jsx(Ze,{logo:`https://olimpo.bet${u.background?u.background:(S=u.logo)!=null?S:""}`,provider:u.provider,providerName:u.web_name,machine:u.machine,onClick:()=>p(u)},Oa(u,j))})}),e.jsx(R.default,{sx:{display:{xs:"block",md:"none"}},children:e.jsx(G,{variant:"primary",size:"lg",onClick:d,children:"Ver más"})})]})]})},rt=(t,a)=>{var n,r;return(r=(n=t.orden)!=null?n:t.machine)!=null?r:a},Ea=(t,a=!0,n=1)=>{const r=t.map((m,f)=>{var x;return{id:rt(m,f),imageUrl:(x=m.logo)!=null?x:"",...m.background?{background:m.background}:{}}});if(!r.length)return[];const l=[];let i=0;if(a){const m=Math.min(r.length,1);l.push({id:"mosaic-0",kind:"mosaic",items:r.slice(0,m)}),i=m}for(;i<r.length;){const m=Math.min(i+n,r.length);l.push({id:`grid-${i}`,kind:"grid",items:r.slice(i,m)}),i=m}return l},lt=({items:t,title:a="Casino",iconUrl:n="/assets/img/home/Casino/diamante.svg",onItemClick:r,onViewMore:l,mosaicFirst:i=!0,gridSize:m=1})=>{const f=K.useCaptureInteraction(),x=Z(),p=h.useRef(null),[d,u]=h.useState({isStart:!0,isEnd:!1}),j=()=>{var E;f({element:"casino_prev",label:`Landing: ${x} - OraculoSeccionCasino - Anterior`,target:"prev",event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{section:"OraculoSeccionCasino"}}),(E=p.current)==null||E.prev()},S=()=>{var E;f({element:"casino_next",label:`Landing: ${x} - OraculoSeccionCasino - Siguiente`,target:"next",event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{section:"OraculoSeccionCasino"}}),(E=p.current)==null||E.next()},C=()=>{f({element:"casino_view_more",label:`Landing: ${x} - 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=(E=!0,$=4)=>{const c=T=>Array.from({length:T},(L,F)=>({id:`sk-${T}-${F}`,imageUrl:""})),y=[];return E&&y.push({id:"mosaic-loading",kind:"mosaic",items:c(5)}),y.push({id:"grid-loading",kind:"grid",items:c($)}),y},_=!t||t.length===0,k=_?B(i,m):Ea(t,i,m);return e.jsx("section",{children:e.jsxs(U.default,{direction:"column",spacing:2,useFlexGap:!0,children:[e.jsxs(R.default,{sx:{display:"grid",gridTemplateColumns:"1fr auto auto",alignItems:"center",columnGap:1.5,rowGap:1},children:[e.jsx(te,{title:a,iconUrl:n,size:"md"}),e.jsxs(R.default,{sx:{display:"flex",gap:1,justifyContent:"flex-end"},children:[e.jsx(G,{ariaLabel:"Anterior",variant:"secondary",iconOnly:!0,leftIcon:e.jsx(Ve.default,{}),onClick:j,disabled:d.isStart}),e.jsx(G,{ariaLabel:"Siguiente",variant:"secondary",iconOnly:!0,rightIcon:e.jsx(We.default,{}),onClick:S,disabled:d.isEnd})]}),e.jsx(R.default,{sx:{justifySelf:"end"},children:e.jsx(G,{variant:"secondary",onClick:C,children:"Ver más"})})]}),e.jsx(ae,{ref:p,items:k,perPage:1,gap:"0px",enableHorizontalWheel:!0,options:{autoWidth:!0,gap:"12px",trimSpace:!0,pagination:!1,arrows:!1,drag:!0,focus:"start"},renderItem:E=>e.jsx("div",{style:{alignSelf:"start"},children:e.jsx(ke,{items:E.items,layout:E.kind==="mosaic"?"mosaic":"grid",loading:_,onClick:$=>{if(_)return;const c=t.find((L,F)=>String(rt(L,F))===String($.id));if(!c)return;f({element:"casino_game_card",label:`Landing: ${x} - OraculoSeccionCasino - Open game: ${String(c.machine)||"unknown"}`,target:String(c.machine||"unknown"),event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{game_name:String(c.machine||"unknown"),section:a||"Casino"}});const y=oe("showIframe"),T=oe("loadMachine");y==null||y(),T==null||T(c,!1,"CASINO")}})}),onMove:({isStart:E,isEnd:$})=>u({isStart:E,isEnd:$})})]})})},ct=(t,a)=>{var n,r;return(r=(n=t.orden)!=null?n:t.machine)!=null?r:a},Ia=(t,a=!0,n=1)=>{const r=t.map((m,f)=>{var x;return{id:ct(m,f),imageUrl:(x=m.logo)!=null?x:"",...m.background?{background:m.background}:{}}});if(!r.length)return[];const l=[];let i=0;if(a){const m=Math.min(r.length,1);l.push({id:"mosaic-0",kind:"mosaic",items:r.slice(0,m)}),i=m}for(;i<r.length;){const m=Math.min(i+n,r.length);l.push({id:`grid-${i}`,kind:"grid",items:r.slice(i,m)}),i=m}return l},Ta=(t=!0,a=4)=>{const n=l=>Array.from({length:l},(i,m)=>({id:`sk-${l}-${m}`,imageUrl:""})),r=[];return t&&r.push({id:"mosaic-loading",kind:"mosaic",items:n(5)}),r.push({id:"grid-loading",kind:"grid",items:n(a)}),r},dt=({items:t,title:a="Virtuales",iconUrl:n="/assets/img/home/Virtuales/virtuales.svg",onItemClick:r,onViewMore:l,mosaicFirst:i=!0,gridSize:m=1})=>{const f=h.useRef(null),[x,p]=h.useState({isStart:!0,isEnd:!1}),d=K.useCaptureInteraction(),u=Z(),j=()=>{var k;d({element:"virtuales_prev",label:`Landing: ${u} - OraculoSeccionVirtuales - Anterior`,target:"prev",event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{section:"OraculoSeccionVirtuales"}}),(k=f.current)==null||k.prev()},S=()=>{var k;d({element:"virtuales_next",label:`Landing: ${u} - OraculoSeccionVirtuales - Siguiente`,target:"next",event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{section:"OraculoSeccionVirtuales"}}),(k=f.current)==null||k.next()},C=()=>{d({element:"virtuales_view_more",label:`Landing: ${u} - 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,_=B?Ta(i,m):Ia(t,i,m);return e.jsx("section",{children:e.jsxs(U.default,{direction:"column",spacing:2,useFlexGap:!0,children:[e.jsxs(R.default,{sx:{display:"grid",gridTemplateColumns:"1fr auto auto",alignItems:"center",columnGap:1.5,rowGap:1},children:[e.jsx(te,{title:a,iconUrl:n,size:"md"}),e.jsxs(R.default,{sx:{display:"flex",gap:1,justifyContent:"flex-end"},children:[e.jsx(G,{ariaLabel:"Anterior",variant:"secondary",iconOnly:!0,leftIcon:e.jsx(Ve.default,{}),onClick:j,disabled:x.isStart}),e.jsx(G,{ariaLabel:"Siguiente",variant:"secondary",iconOnly:!0,rightIcon:e.jsx(We.default,{}),onClick:S,disabled:x.isEnd})]}),e.jsx(R.default,{sx:{justifySelf:"end"},children:e.jsx(G,{variant:"secondary",onClick:C,children:"Ver más"})})]}),e.jsx(ae,{ref:f,items:_,perPage:1,gap:"0",enableHorizontalWheel:!0,options:{autoWidth:!0,gap:"12px",trimSpace:!0,pagination:!1,arrows:!1,drag:!0,focus:"start",perMove:1},renderItem:k=>e.jsx("div",{style:{alignSelf:"start"},children:e.jsx(ke,{items:k.items,layout:k.kind==="mosaic"?"mosaic":"grid",loading:B,onClick:E=>{if(B)return;const $=t.find((T,L)=>String(ct(T,L))===String(E.id));if(!$){console.warn("[virtuales] no se encontró game para id:",E.id);return}d({element:"virtuales_game_card",label:`Landing: ${u} - OraculoSeccionVirtuales - Open game: ${String($.machine||"unknown")}`,target:String($.machine||"unknown"),event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{game_name:String($.machine||"unknown"),section:"OraculoSeccionVirtuales"}});const c=oe("showIframe"),y=oe("loadMachine");c==null||c(),y==null||y($,!1,"VIRTUALES")}})}),onMove:({isStart:k,isEnd:E})=>p({isStart:k,isEnd:E})})]})})},ka=t=>({position:"relative",py:8,color:"#fff",backgroundImage:`
|
|
10
10
|
linear-gradient(to bottom,#121212 0%, rgba(18,18,18,0) 10%),
|
|
11
11
|
linear-gradient(to top, #121212 0%, rgba(18,18,18,0) 10%),
|
|
12
12
|
linear-gradient(to left, #121212 0%, rgba(18,18,18,0) 10%),
|
|
@@ -16,5 +16,5 @@
|
|
|
16
16
|
0 0 2px rgba(255, 255, 255, .95),
|
|
17
17
|
0 0 6px rgba(255, 255, 255, .6),
|
|
18
18
|
0 1px 0 rgba(137, 137, 137, .85)
|
|
19
|
-
`},ut=({headline:t,headline2:a,items:n,backgroundImageUrl:i})=>{const s=K.useCaptureInteraction(),o=Z(),u=Et.default("(max-width: 767px)"),h=n.length>1,v=x.useRef(null),f=x.useRef(null),d=x.useRef(!1),m=x.useRef(!1),[O,j]=x.useState(0),[C,M]=x.useState({isStart:!0,isEnd:!1});x.useEffect(()=>{const w=setTimeout(()=>{d.current=!0},500);return()=>clearTimeout(w)},[]);const S=x.useRef(C);x.useEffect(()=>{S.current=C},[C]);const $=x.useRef(!1),E=x.useRef(null),T=n==null?void 0:n[O],r=x.useMemo(()=>{var w,p;return(p=(w=T==null?void 0:T.backgroundImageUrl)!=null?w:i)!=null?p:""},[T,i]),_=ka(r),k=!n||n.length===0,N=(w,p)=>{s({element:"welcome_banner_button",label:`OraculoSeccionBonoBienvenida - Banner button click: ${w.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:w.title||"no_title",button_text:w.buttonText||"no_text"}}),w.onButtonClick&&w.onButtonClick()},F=w=>{if(!d.current)return;if(m.current){m.current=!1;return}const p=n==null?void 0:n[w];s({element:"welcome_banner_carousel",label:`Landing: ${o} - OraculoSeccionBonoBienvenida - Banner view: ${(p==null?void 0:p.title)||"OraculoSeccionBonoBienvenida - Banner "+(w+1)}`,target:"no_url",event_type:"view",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:"",slide_index:w+1,total_slides:(n==null?void 0:n.length)||0,interaction_type:"manual_slide"},tags:{banner_position:String(w+1),banner_title:(p==null?void 0:p.title)||"no_title"}})};x.useEffect(()=>{const w=f.current;if(!w)return;const p=6,l=380,b=g=>{var B,P;if(k||g.ctrlKey||$.current)return;const c=g.deltaX,y=g.deltaY;if(Math.abs(c)<=Math.abs(y)||Math.abs(c)<p)return;const I=c>0;I&&S.current.isEnd||!I&&S.current.isStart||(g.preventDefault(),$.current=!0,I?(B=v.current)==null||B.next():(P=v.current)==null||P.prev(),E.current&&window.clearTimeout(E.current),E.current=window.setTimeout(()=>{$.current=!1},l))};return w.addEventListener("wheel",b,{passive:!1}),()=>{w.removeEventListener("wheel",b),E.current&&window.clearTimeout(E.current)}},[k]);const A=(w,p,l)=>{var c,y;const b=(c=w.headline)!=null?c:t,g=(y=w.headline2)!=null?y: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:[(b||g)&&e.jsx(L.default,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-start",minHeight:"100%"},children:e.jsxs(L.default,{sx:{...Re,textAlign:"left",mb:0},children:[b&&e.jsx(Q.default,{component:"span",sx:Fe,children:b}),g&&e.jsxs(e.Fragment,{children:[e.jsx("br",{}),e.jsx(Q.default,{component:"span",sx:Ae,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(Ce,{...w,onButtonClick:()=>N(w,l),variant:"large"})})})]}):e.jsxs(L.default,{sx:{textAlign:"center"},children:[(b||g)&&e.jsxs(L.default,{sx:Re,children:[b&&e.jsx(Q.default,{component:"span",sx:Fe,children:b}),g&&e.jsxs(e.Fragment,{children:[e.jsx("br",{}),e.jsx(Q.default,{component:"span",sx:Ae,children:g})]})]}),e.jsx(L.default,{sx:{display:"flex",justifyContent:"center"},children:e.jsx(Ce,{...w,onButtonClick:()=>N(w,l),variant:"small"})})]})};return e.jsxs(L.default,{component:"section",sx:_,children:[e.jsx("div",{ref:f,style:{width:"100%"},children:e.jsx(ae,{ref:v,items:n,perPage:1,gap:"0px",options:{autoWidth:!1},renderItem:(w,p)=>e.jsx(L.default,{sx:{width:"100%"},children:A(w,!u,p)}),onMove:({index:w,isStart:p,isEnd:l})=>{j(w),typeof p=="boolean"&&typeof l=="boolean"&&M({isStart:p,isEnd:l}),F(w)}})}),h&&e.jsx(L.default,{sx:{mt:2,display:"flex",justifyContent:"center"},children:e.jsx(Oe,{total:n.length,active:O,onSelect:w=>{var p;s({element:"welcome_banner_dots",label:`Landing: ${o} - OraculoSeccionBonoBienvenida - Dot navigation: Banner ${w+1}`,target:"no_url",event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:"",dot_index:w+1,total_dots:n.length},tags:{navigation_type:"dot_click"}}),j(w),(p=v.current)==null||p.go(w)}})})]})},mt=({className:t="",fullBleed:a=!0,items:n,selectedIndex:i=0,ariaLabel:s})=>{const o=x.useRef(null),u=x.useRef(null),h=K.useCaptureInteraction(),v=Z();if(!n)return null;const f=()=>{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")},d=Array.isArray(n)?n[i]:n;x.useLayoutEffect(()=>{if(!o.current||!u.current||typeof ResizeObserver=="undefined")return;const O=o.current,j=u.current,C=()=>{O.style.setProperty("--orc-co-bottomH",`${j.offsetHeight+16}px`)},M=new ResizeObserver(C);return M.observe(j),C(),()=>M.disconnect()},[]);const m=["orc-co-wrap",a?"orc-co-fullBleed":"",t].filter(Boolean).join(" ");return e.jsx("section",{ref:o,className:m,"aria-label":s||d.imgAlt||"Club Olimpo",children:e.jsx("div",{ref:u,children:e.jsx(Je,{text:d.text,onClick:f,imgAlt:d.imgAlt,imgSrcMobile:d.imgMobile,imgSrcDesktopBg:d.imgDesktopBg,imgSrcDesktopLogo:d.imgDesktopLogo})})})},$a="oraculo__OraculoSeccionEventoCombinadas-module__controls___Zsta4",Ma={controls:$a};function pt({items:t,title:a="Combinadas del Olimpo",iconUrl:n="https://stg-www.contodobet.com/static/img/landing/EventoCombinada/rayoIcon.svg",onViewMore:i,className:s=""}){const o=K.useCaptureInteraction(),u=Z(),h=x.useRef(null),[v,f]=x.useState({isStart:!0,isEnd:!1}),[d,m]=x.useState([]),O="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",j=()=>{var r;o({element:"evento_combinadas_prev",label:`Landing: ${u} - OraculoSeccionEventoCombinadas - Click: Anterior`,event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{section:"OraculoSeccionEventoCombinadas"}}),(r=h.current)==null||r.prev()},C=()=>{var r;o({element:"evento_combinadas_next",label:`Landing: ${u} - OraculoSeccionEventoCombinadas - Click: Siguiente`,event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{section:"OraculoSeccionEventoCombinadas"}}),(r=h.current)==null||r.next()},M=()=>{o({element:"evento_combinadas_ver_mas",label:`Landing: ${u} - OraculoSeccionEventoCombinadas - Click: Ver más`,event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{section:"OraculoSeccionEventoCombinadas"}}),pa()};async function S(){var r,_,k;try{const F=await(await fetch(O)).json(),A=(k=(_=(r=F==null?void 0:F.group)==null?void 0:r.groups)==null?void 0:_[0])==null?void 0:k.id;if(!A){console.error("Could not extract group ID");return}const w=`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`,l=await(await fetch(w)).json();m(E(l.events,l.betOffers,l.prePackCoupons))}catch(N){console.error("loadDataEventSpecial error:",N)}}function $(r){var _,k;return(_=r.outcome)!=null&&_.id?[r.outcome.id]:r.type==="BET_BUILDER"&&((k=r.group)!=null&&k.groups)?r.group.groups.flatMap(N=>{var F,A;return(A=(F=N.outcomes)==null?void 0:F.map(w=>w.id))!=null?A:[]}):[]}function E(r,_,k){return k.map(N=>{var c,y,I,B,P,W;const F=N.prePackCouponRows.flatMap(R=>$(R).map(U=>({eventId:R.eventId,outcomeId:U}))),A=new Set(F.map(R=>R.eventId)),w=new Set(F.map(R=>R.outcomeId)),p=new Map(F.map((R,D)=>[R.outcomeId,D])),l={};for(const R of _){if(!A.has(R.eventId))continue;const D=R.outcomes.filter(U=>w.has(U.id)).map(U=>({...U,position:p.get(U.id)}));D.length&&((y=l[c=R.eventId])!=null||(l[c]=[]),l[R.eventId].push({...R,outcomes:D}))}const b=r.filter(R=>A.has(R.id)).map(R=>{var D;return{...R,betoffers:(D=l[R.id])!=null?D:[]}}),g=(W=(P=(B=(I=N.prePackCouponBets)==null?void 0:I[0])==null?void 0:B.odds)==null?void 0:P.decimal)!=null?W:null;return{couponId:N.id,status:N.status,combinadoTotal:g,events:b}})}x.useEffect(()=>{S()},[]);const T=s||void 0;return!d||d.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(te,{title:a,iconUrl:n,size:"md"}),e.jsxs("div",{className:Ma.controls,children:[e.jsxs(J,{spacing:1,columns:"auto auto",children:[e.jsx(G,{ariaLabel:"Anterior",variant:"secondary",iconOnly:!0,leftIcon:e.jsx(ne.ChevronLeftRounded,{}),onClick:j,disabled:v.isStart}),e.jsx(G,{ariaLabel:"Siguiente",variant:"secondary",iconOnly:!0,rightIcon:e.jsx(ne.ChevronRightRounded,{}),onClick:C,disabled:v.isEnd})]}),e.jsx(G,{variant:"secondary",onClick:M,children:"Ver más"})]})]}),e.jsx(ae,{ref:h,items:d.filter(r=>r.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:r=>e.jsx(et,{coupon:r}),onMove:({isStart:r,isEnd:_})=>f({isStart:r,isEnd:_})})]})})}function Ba({}){return e.jsx("div",{className:tt.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 Na="oraculo__FadeItemWrapper-module__fadeWrapper___kFOH4",La={fadeWrapper:Na};function fe({children:t}){return e.jsx("div",{className:La.fadeWrapper,children:t})}function ft({items:t,title:a="En vivo",iconUrl:n="https://stg-www.contodobet.com/static/img/landing/EventoEnVivo/icon.svg",onViewMore:i,className:s=""}){const o="https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/listView/football/all/all/all/in-play.json?channel_id=3&channel_id=3&client_id=200&client_id=200&competitionId=undefined&lang=es_PE&lang=es_PE&market=PE&market=PE&useCombined=true&useCombinedLive=true",u=x.useRef(null),[h,v]=x.useState({isStart:!0,isEnd:!1}),[f,d]=x.useState(null),[m,O]=x.useState({}),[j,C]=x.useState({start:null,end:null}),M=x.useRef(!1),[S,$]=x.useState(null),E=x.useRef(!1),T=K.useCaptureInteraction(),r=Z(),_=Ye(j,300),k=()=>{var g;T({element:"evento_en_vivo_prev",label:`Landing: ${r} - OraculoSeccionEventoEnVivo - Anterior`,target:"prev",event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{section:"OraculoSeccionEventoEnVivo"}}),(g=u.current)==null||g.prev()},N=()=>{var g;T({element:"evento_en_vivo_next",label:`Landing: ${r} - OraculoSeccionEventoEnVivo - Siguiente`,target:"next",event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{section:"OraculoSeccionEventoEnVivo"}}),(g=u.current)==null||g.next()},F=()=>{T({element:"evento_en_vivo_view_more",label:`Landing: ${r} - 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"}}),ua()},A=["esports","cyber"],w=g=>g.filter(c=>{var I;if(c.event.sport!=="FOOTBALL")return!1;const y=((I=c.event.group)==null?void 0:I.toLowerCase())||"";return!A.some(B=>y.includes(B))}),p=x.useCallback(async()=>{var g;try{let c=S;if(!E.current&&S===null){E.current=!0;try{const R=await fetch("https://api.mktolimpo.com/api/kambi/eventos/orden"),D=R.ok?await R.json():null;c=((g=D==null?void 0:D.data)==null?void 0:g.event_ids)||[]}catch{c=[]}$(c)}const I=await(await fetch(o)).json(),B=w(I.events);if(!c||c.length===0){d(B);return}const P=new Map(c.map((R,D)=>[String(R),D])),W=[...B].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});d(W)}catch(c){console.error(c)}},[S]);x.useEffect(()=>{p();const g=setInterval(p,2e4);return()=>clearInterval(g)},[p]),x.useEffect(()=>{if(_.start===null||_.end===null||!(f!=null&&f.length)||M.current)return;const g=3,c=Math.max(0,_.start-g),y=Math.min(f.length-1,_.end+g),I=f.slice(c,y+1).map(B=>B==null?void 0:B.event.id).filter(Boolean).filter(B=>m[B]===void 0);I.length&&(M.current=!0,Xe(I).then(B=>{O(P=>({...P,...B.events}))}).catch(B=>{console.error("Jersey fetch error",B)}).finally(()=>{M.current=!1}))},[_,f,m]);const l=s||void 0,b=f===null;return!b&&f.length===0?null:e.jsx("section",{className:l,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(te,{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(ne.ChevronLeftRounded,{}),onClick:k,disabled:h.isStart}),e.jsx(G,{ariaLabel:"Siguiente",variant:"secondary",iconOnly:!0,rightIcon:e.jsx(ne.ChevronRightRounded,{}),onClick:N,disabled:h.isEnd})]}),e.jsx(G,{variant:"secondary",onClick:F,children:"Ver más"})]})]}),e.jsx(ae,{ref:u,items:b?Array(4).fill({}):f.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 I;const c=((I=g.event)==null?void 0:I.id)||g.eventId,y=c in m?m[c]:void 0;return b?e.jsx(fe,{children:e.jsx(Ba,{})}):e.jsx(fe,{children:e.jsx(at,{...g,jersey:y})})},onMove:({isStart:g,isEnd:c,visibleStart:y,visibleEnd:I})=>{v({isStart:g,isEnd:c}),C({start:y,end:I})}})]})})}function Ra(){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 Fa="oraculo__OraculoSeccionEventoSemana-module__wrapper___eqVq-",Aa="oraculo__OraculoSeccionEventoSemana-module__container___5yFQs",Pa="oraculo__OraculoSeccionEventoSemana-module__buttonWrapper___-6IDT",we={wrapper:Fa,container:Aa,buttonWrapper:Pa};async function qa(t,a=2,n){const i=[];for(let s=0;s<t.length;s+=a){if(n.aborted)throw new DOMException("Aborted","AbortError");const o=t.slice(s,s+a),u=await Promise.all(o.map(h=>fetch(h,{signal:n}).then(v=>v.json())));i.push(...u)}return i}function za(t){return[...t].sort((a,n)=>new Date(a.start).getTime()-new Date(n.start).getTime())}function Ua(t){const a=new Date,n=new Date(a.getTime()+480*60*60*1e3);return t.filter(i=>{if(!i.start)return!1;const s=new Date(i.start);return s>=a&&s<=n})}function Va(t,a){const i=a.filter(s=>{var o;return((o=s.betOfferType)==null?void 0:o.id)===2}).reduce((s,o)=>(s[o.eventId]||(s[o.eventId]=[]),s[o.eventId].push(o),s),{});return t.filter(s=>i[s.id]).map(s=>({...s,outcome:i[s.id]}))}function gt({items:t,title:a="En vivo",iconUrl:n,onViewMore:i,className:s=""}){const o=K.useCaptureInteraction(),u=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=x.useRef(null),[f,d]=x.useState({isStart:!0,isEnd:!1}),[m,O]=x.useState(null);x.useRef(new Set);const[j,C]=x.useState({}),[M,S]=x.useState({start:null,end:null}),$="channel_id=1&client_id=200&competitionId=undefined&lang=es_PE&market=PE&useCombined=true",E=Ye(M,250),T=x.useRef(!1),r=()=>{o({element:"evento_semana_view_more",label:`Landing: ${u} - 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"}}),ma()};async function _(w){var b,g;let p=[],l=[];try{const c=await fetch("https://api.mktolimpo.com/api/kambi/eventos/orden",{signal:w});if(c.ok){const y=await c.json();p=((b=y==null?void 0:y.data)==null?void 0:b.group_ids)||[],l=((g=y==null?void 0:y.data)==null?void 0:g.event_ids)||[]}}catch(c){c.name!=="AbortError"&&console.warn("Order API not available, using default group order");return}try{const I=(await(await fetch(h,{signal:w})).json()).group.groups.find(U=>U.englishName==="Football");if(!I||!Array.isArray(I.groups)){console.error("Football groups not found");return}let B=[...I.groups];if(p.length>0){const U=new Map(p.map((H,le)=>[H,le]));B.sort((H,le)=>{const he=U.get(String(H.id)),be=U.get(String(le.id));return he!==void 0&&be!==void 0?he-be:he!==void 0?-1:be!==void 0?1:0})}const W=B.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=W.flatMap(R);k(D,l,w)}catch(c){console.error(c)}}async function k(w,p,l){try{const b=await qa(w,2,l);let g=[],c=[];b.forEach(P=>{P.events&&(g.push(...P.events.map(W=>W.event)),c.push(...P.events.flatMap(W=>W.betOffers||[])))});const y=Va(g,c),I=za(Ua(y));let B=I;if(p.length>0){const P=new Map(p.map((W,R)=>[String(W),R]));B=[...I].sort((W,R)=>{const D=P.get(String(W.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(l.aborted)return;O(B)}catch(b){console.error("Error loading events:",b)}}x.useEffect(()=>{if(!t)return;const w=new AbortController;return _(w.signal),()=>{w.abort()}},[t]),x.useEffect(()=>{if(E.start===null||E.end===null||!(m!=null&&m.length)||T.current)return;const w=2,p=Math.max(0,E.start-w),l=Math.min(m.length-1,E.end+w),b=m.slice(p,l+1).map(c=>c==null?void 0:c.id).filter(Boolean).filter(c=>j[c]===void 0);if(!b.length)return;let g=!1;return T.current=!0,(async()=>{try{const c=await Xe(b);g||C(y=>({...y,...c.events}))}catch(c){console.error("Jersey fetch error",c)}finally{T.current=!1}})(),()=>{g=!0}},[E,m]);const N=s||void 0,F={paddingLeft:0,width:"100%",boxSizing:"border-box"},A=m===null;return!A&&m.length===0?null:e.jsx("section",{className:N,style:F,children:e.jsxs("div",{className:we.wrapper,children:[e.jsx("div",{className:we.container,children:e.jsxs(z.default,{direction:"column",spacing:1.5,useFlexGap:!0,children:[e.jsx(te,{title:"Eventos de la semana"}),e.jsx("div",{className:we.buttonWrapper,children:e.jsx(G,{variant:"secondary",size:"lg",fullWidth:!0,onClick:()=>{r()},children:"Ver más"})})]})}),e.jsx("div",{style:{minWidth:"180px"},children:e.jsx(ae,{ref:v,items:A?Array(6).fill({}):m.slice(0,20),perPage:3.5,gap:"16px",enableHorizontalWheel:!0,options:{autoWidth:!0,trimSpace:!0},breakpoints:{1024:{perPage:1.4,gap:"8px",focus:"center",padding:{left:"8px",right:"8px"}}},renderItem:w=>{const p=w.id,l=p in j?j[p]:void 0;return A?e.jsx(fe,{children:e.jsx(Ra,{})}):e.jsx(fe,{children:e.jsx(nt,{event:w,jersey:l})})},onMove:({isStart:w,isEnd:p,visibleStart:l,visibleEnd:b})=>{d({isStart:w,isEnd:p}),S({start:l,end:b}),o({element:"evento_semana_carousel_slide",label:`Landing: ${u} - OraculoSeccionEventoSemana - Slide Carousel`,target:"carousel",event_type:"slide",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:"",visibleStart:l,visibleEnd:b,isStart:w,isEnd:p},tags:{section:"OraculoSeccionEventoSemana"}})}})})]})})}function ht({backgrounds:t,items:a}){var A,w;const[n,i]=x.useState(0),s=K.useCaptureInteraction(),o=Z(),u=x.useRef(null),h=x.useRef(!1),v=x.useRef(!1),f=(t==null?void 0:t.length)||1,d=!t||t.length===0,m=!d&&((A=t==null?void 0:t.length)!=null?A:0)>1,O=p=>{var l;p.preventDefault(),p.stopPropagation(),N(),(l=u.current)==null||l.prev()},j=p=>{var l;p.preventDefault(),p.stopPropagation(),N(),(l=u.current)==null||l.next()},C="#B5B5B5",M={position:"absolute",top:"50%",transform:"translateY(-50%)",zIndex:5,width:48,height:40,borderRadius:"12px",border:`1.5px solid ${C}`,py:1,px:1.5,color:C,backgroundColor:"transparent","&:hover":{backgroundColor:"rgba(181,181,181,0.08)"},"&.Mui-disabled":{opacity:.35,borderColor:C,color:C,backgroundColor:"transparent",cursor:"default"}},S=x.useMemo(()=>({type:"loop",perMove:1,pagination:!1,arrows:!1,drag:!0,focus:"center"}),[]);x.useEffect(()=>{const p=setTimeout(()=>{h.current=!0},500);return()=>clearTimeout(p)},[]);const $=(p,l)=>{var g,c;const b=((c=(g=p.href)==null?void 0:g.split("/").pop())==null?void 0:c.split(".")[0])||p.label||p.id||`banner_${l+1}`;s({element:"banner_carousel",label:`Landing: ${o} - OraculoSeccionBanners - Banner click: ${b}`,target:p.href||"no_url",event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:"",banner_position:l+1,banner_total:(t==null?void 0:t.length)||0},tags:{banner_type:"carousel",banner_target:"_self",banner_url:p.href||"no_url"}})},E=p=>{if(s({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 c,y,I,B;const l=(p%f+f)%f;i(l);const b=v.current;if(v.current=!1,b||F(),!h.current||b)return;const g=(c=t==null?void 0:t[l])!=null&&c.href?((I=(y=t[l].href)==null?void 0:y.split("/").pop())==null?void 0:I.split(".")[0])||`banner_${l+1}`:`banner_${l+1}`;s({element:"banner_carousel",label:`Landing: ${o} - OraculoSeccionBanners - Banner view: Slide ${l+1} - ${g}`,target:((B=t==null?void 0:t[l])==null?void 0:B.href)||"no_url",event_type:"view",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:"",slide_index:l+1,total_slides:f,interaction_type:"manual_slide"},tags:{banner_position:String(l+1)}})},r=5e3,_=x.useRef(null),k=!d&&((w=t==null?void 0:t.length)!=null?w:0)>1,N=()=>{_.current!=null&&(window.clearInterval(_.current),_.current=null)},F=()=>{N(),k&&(_.current=window.setInterval(()=>{var p;v.current=!0,(p=u.current)==null||p.next()},r))};return x.useEffect(()=>(F(),()=>N()),[d,t==null?void 0:t.length,r]),e.jsxs(V.Box,{component:"section",sx:{position:"relative",overflow:"visible"},children:[e.jsxs(V.Box,{sx:{position:"relative",height:{xs:300,sm:360,md:420},borderRadius:0,overflow:"hidden"},children:[e.jsx(ae,{ref:u,items:t,perPage:1,gap:"0px",enableHorizontalWheel:!0,options:S,onMove:({index:p})=>{const l=(p%f+f)%f;i(l),T(p)},renderItem:(p,l)=>{var b,g;return e.jsxs(V.Box,{component:"a",href:p.href,target:(b=p.target)!=null?b:"_self",rel:p.target==="_blank"?"noopener noreferrer":void 0,onClick:()=>{$(p,l)},sx:{position:"relative",height:{xs:300,sm:360,md:420},display:"block",textDecoration:"none",cursor:"pointer"},children:[e.jsxs(V.Box,{component:"picture",sx:{position:"absolute",inset:0,lineHeight:0},children:[e.jsx("source",{srcSet:p.desktopSrc,media:"(min-width:800px)"}),e.jsx("source",{srcSet:p.mobileSrc,media:"(max-width:799px)"}),e.jsx(V.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(V.Box,{sx:{position:"absolute",inset:0,pointerEvents:"none","&::before":{content:'""',position:"absolute",left:0,right:0,bottom:0,top:"40%",background:"linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(18,18,18,0.85) 80%, #121212 100%)"}}})]})}}),m&&e.jsxs(e.Fragment,{children:[e.jsx(V.IconButton,{"aria-label":"Anterior",onClick:O,sx:{...M,left:"120px","@media (max-width:1024px)":{left:24}},children:e.jsx(ne.ChevronLeftRounded,{})}),e.jsx(V.IconButton,{"aria-label":"Siguiente",onClick:j,sx:{...M,right:"120px","@media (max-width:1024px)":{right:24}},children:e.jsx(ne.ChevronRightRounded,{})})]}),e.jsx(V.Box,{sx:{position:"absolute",left:0,right:0,bottom:72,display:"flex",justifyContent:"center",zIndex:2},children:e.jsx(Oe,{total:f,active:n,durationMs:r})})]}),e.jsx(V.Box,{sx:{position:"absolute",bottom:{xs:-12,sm:0},left:120,right:120,"@media (max-width:1024px)":{left:24,right:24},backgroundColor:"#363636",borderRadius:2,p:1.5,display:"flex",justifyContent:"space-around",alignItems:"center",boxShadow:"0 10px 24px rgba(0,0,0,.35)",zIndex:3},children:a==null?void 0:a.map(p=>e.jsxs(V.Box,{sx:{display:"flex",flexDirection:{xs:"column",md:"row"},alignItems:"center",justifyContent:"center",gap:{xs:.5,md:1},color:"#FFFFFF",minWidth:0,cursor:p.onClick||p.href?"pointer":"default",whiteSpace:"nowrap"},onClick:()=>E(p),children:[p.icon&&e.jsx(V.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(V.Typography,{sx:{fontSize:{xs:10,sm:11,md:12},fontWeight:600,color:"#E0E0E0",textAlign:"center"},children:p.label})]},p.id))})]})}const Wa=[{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 bt({title:t="Medios de pago",items:a=Wa}){const n=Math.ceil(a.length/2),i=a.slice(0,n),s=a.slice(n);return e.jsxs(V.Box,{component:"section","aria-labelledby":"mp-title",sx:{color:"#fff"},children:[e.jsx(V.Typography,{id:"mp-title",variant:"h6",sx:{fontWeight:800,fontSize:{xs:20,md:32},textAlign:"center",mb:1.5},children:t}),e.jsx(V.Box,{sx:{width:"288px",height:"2px",mx:"auto",mb:3,opacity:.95,filter:"blur(0.2px)",background:"linear-gradient(90deg, rgba(0,0,0,0) 0%, #1dd75b 18%, #23d46b 50%, #1dd75b 82%, rgba(0,0,0,0) 100%)"}}),e.jsxs(V.Stack,{spacing:{xs:2,md:3},alignItems:"center",children:[e.jsx(V.Stack,{direction:"row",justifyContent:"center",alignItems:"center",gap:{xs:2,md:3},flexWrap:"wrap",children:i.map((o,u)=>e.jsx(je,{...o},`${o.alt}-${o.src}-${u}`))}),e.jsx(V.Stack,{direction:"row",justifyContent:"center",alignItems:"center",gap:{xs:2,md:3},flexWrap:"wrap",children:s.map((o,u)=>e.jsx(je,{...o},`${o.alt}-${o.src}-${u}`))})]})]})}const Da={OraculoSeccionDestacados:ot,OraculoSeccionTopJuegos:Me,OraculoSeccionCasinoEnVivo:st,OraculoSeccionCasino:lt,OraculoSeccionVirtuales:dt,OraculoSeccionClubOlimpo:mt,OraculoSeccionBonoBienvenida:ut,OraculoSeccionBanners:ht,OraculoSeccionMediosPago:bt,OraculoSeccionEventoEnVivo:ft,OraculoSeccionEventoSemana:gt,OraculoSeccionEventoCombinadas:pt},Pe={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"}]};function Ga({children:t}){const a=xe.useTheme(),n=ge.default.useMemo(()=>xe.createTheme(a,{typography:{fontFamily:"var(--orc-font)"},components:{MuiTypography:{styleOverrides:{root:{fontFamily:"var(--orc-font)"}}}}}),[a]);return e.jsxs(xe.ThemeProvider,{theme:n,children:[e.jsx(It.default,{}),t]})}const Ha=t=>typeof t=="function"||t&&typeof t=="object"&&"$$typeof"in t,Ka=t=>/^OraculoSeccion[A-Z]/.test(t);function Se(t){return t&&Array.isArray(t.sections)?t.sections.slice().sort((a,n)=>{var i,s;return((i=a.order)!=null?i:0)-((s=n.order)!=null?s:0)}).map((a,n)=>({...a,order:n+1})):t&&Array.isArray(t.components)?t.components.map((a,n)=>{var i,s,o,u,h;return{id:(i=a.id)!=null?i:n+1,title:(s=a.title)!=null?s:"",componentKey:a.componentKey,visible:(o=a.visible)!=null?o:!0,order:n+1,props:(u=a.props)!=null?u:{},apiUrl:(h=a.apiUrl)!=null?h:"",dataMode:a.dataMode,variableName:a.variableName,manualItems:a.manualItems,apiMethod:a.apiMethod,apiParams:a.apiParams}}):[]}const Za=Object.fromEntries(Object.entries(Da).filter(([t,a])=>Ka(t)&&Ha(a))),Ja=t=>{try{return Object.fromEntries(t!=null?t:[])}catch{return console.warn("[oraculo] extras inválidos. Debe ser Array<[string, unknown]>",t),{}}};class qe extends Error{constructor(a,n,i){super(`HTTP ${a} ${i}`),this.status=a,this.url=n,this.statusText=i,this.name="HttpError"}}const ze=["OraculoSeccionEventoEnVivo","OraculoSeccionEventoSemana","OraculoSeccionEventoCombinadas"],xt=({sectionsOverride:t,docId:a="home",db:n,extras:i,loader:s})=>{const o=x.useMemo(()=>Ja(i),[i]),u=s||o.loader,[h,v]=x.useState([]),[f,d]=x.useState(!1),[m,O]=x.useState({}),[j,C]=x.useState({}),[M,S]=x.useState({}),$=V.useMediaQuery("(min-width:1024px)");x.useEffect(()=>{if(t)return;if(!n){console.warn("[landing] sin db -> fallback json"),v(Se(Pe));return}const l=(g,c)=>{console.warn("[landing] FALLBACK:",g,c!=null?c:""),v(Se(Pe)),d(!1)};if(process.env.NEXT_PUBLIC_LANDING_FORCE_FALLBACK==="1"){d(!0),l("forzado por env");return}d(!0);const b=Be.onSnapshot(Be.doc(n,"landings",a),g=>{try{if(!g.exists()){l(`doc landings/${a} no existe`);return}const c=g.data(),y=Se(c);if(!y.length){l("JSON inválido o sin secciones normalizables",c);return}console.log("[landing] Firestore OK (json grande):",c),v(y)}catch(c){l("error procesando snapshot",c)}finally{d(!1)}},g=>{l("error onSnapshot",g)});return()=>b()},[t,a,n]),x.useEffect(()=>(ja(o),()=>Ca()),[o]),x.useEffect(()=>{(t?t.slice():h.slice()).map(g=>g.componentKey).filter(g=>!!g).length},[t,h]);const E=async l=>{if(ze.includes(l.componentKey))return{items:[],events:[],data:{}};const b=(l.apiUrl||"").trim();if(!b)return;const g=l.apiMethod||"GET",c=l.apiParams||[];let y=b,I,B;if(g==="GET"){const W=new URL(b,typeof window=="undefined"?"http://localhost":window.location.origin);for(const R of c)R.key&&W.searchParams.append(R.key,R.value);y=W.toString()}else{const W=new URLSearchParams;for(const R of c)R.key&&W.append(R.key,R.value);I=W.toString(),B={"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"}}const P=await fetch(y,{method:g,headers:B,body:I});if(!P.ok)throw new qe(P.status,y,P.statusText);return P.json()},T=x.useMemo(()=>t?t.slice():h.slice(),[t,h]),r=ge.default.useRef(new Set);x.useEffect(()=>{const l=T.map(b=>({s:b,url:(b.apiUrl||"").trim()})).filter(({url:b})=>!!b);if(l.length)for(const{s:b,url:g}of l){const c=`${b.id}|${g}`;r.current.has(c)||(r.current.add(c),C(y=>({...y,[b.id]:!0})),S(y=>({...y,[b.id]:""})),(async()=>{try{const y=await E(b);O(I=>({...I,[b.id]:y}))}catch(y){let I="Error desconocido";y instanceof qe?I=`Error HTTP ${y.status} (${y.statusText}) en ${y.url}`:y instanceof SyntaxError?I="Respuesta no es JSON válido":y instanceof TypeError?I="Fallo de red / CORS / conexión":typeof y=="string"&&(I=y.toString()),S(B=>({...B,[b.id]:I}))}finally{C(y=>({...y,[b.id]:!1}))}})())}},[T]);const _=x.useMemo(()=>T.filter(l=>l.visible).sort((l,b)=>l.order-b.order),[T]),k=l=>Array.isArray(l)?l.map(b=>{const g={};for(const c of b.fields||[]){const y=(c.type||"string").toLowerCase();if(y==="number"){const I=String(c.value||"").trim();if(I!==""){const B=Number(I);Number.isNaN(B)||(g[c.name]=B)}}else if(y==="boolean")g[c.name]=String(c.value).toLowerCase()==="true";else if(y==="function"){const I=String(c.value||"").trim();if(I)try{const B=new Function(I);g[c.name]=B}catch(B){console.error(`❌ Error creando función en item '${c.name}':`,B)}}else g[c.name]=c.value}return g}):[],N=l=>{const b={};if(!Array.isArray(l))return b;for(const g of l){if(!g.name)continue;const c=(g.type||"string").toLowerCase();if(c==="number"){const y=String(g.value||"").trim();if(y!==""){const I=Number(y);Number.isNaN(I)||(b[g.name]=I)}}else if(c==="boolean")b[g.name]=String(g.value).toLowerCase()==="true";else if(c==="function"){const y=String(g.value||"").trim();if(y)try{const I=new Function(y);b[g.name]=I}catch(I){console.error(`❌ Error creando función en item '${g.name}':`,I)}}else b[g.name]=g.value}return b},F=(l,b,g)=>{const c=g?{...g}:{};if(b){const R=(b.variableName||"items").trim()||"items";return c[R]=b.arr||[],c}const y=l,I=Array.isArray(y),B=!I&&typeof y=="object"&&y!==null?y:void 0,P=B&&Array.isArray(B.lobby||B.items)?B.lobby||B.items:void 0,W=R=>I?y:P||R;return c.items=W(P||[]),c},A=l=>{var I;const b=!!((I=l.apiUrl)!=null&&I.trim()),g=b?m[l.id]:void 0;let c=l.props?{...l.props}:{};const y=N(l.manualScalarFields);if(ze.includes(l.componentKey))return{items:g,...c,...y};if(c={...c,...y},b)c=F(g,null,c);else if(l.dataMode==="manual"){const B=k(l.manualItems);if(c=F(null,{arr:B,variableName:l.variableName},c),l.variableName2&&l.manualItems2){const P=k(l.manualItems2),W=(l.variableName2||"items2").trim()||"items2";c[W]=P}}return c},w=(l,b,g)=>{const c={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 ${c[b]}`,children:g},l)},p=l=>{var H;const b=l.componentKey,g=Za[b];if(!g)return console.warn(`No hay componente registrado para "${b}"`),w(l.id,"component",`Componente "${b}" no encontrado`);const c=!!((H=l.apiUrl)!=null&&H.trim()),y=c?m[l.id]:void 0,I=c?!!j[l.id]:!1,B=c?M[l.id]:"";if(c){if(I&&!y)return w(l.id,"loading",`Cargando datos desde ${l.apiUrl}...`);if(B&&!y)return w(l.id,"error",`Error cargando ${l.apiUrl}: ${B}`)}const P=A(l),R=new Set(["OraculoSeccionBanners","OraculoSeccionBonoBienvenida","OraculoSeccionCasinoEnVivo",$?"":"OraculoSeccionClubOlimpo"]).has(l.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})},l.id)};return f&&!t?u?e.jsx(u,{}):e.jsx("div",{children:"Cargando..."}):!f&&!t&&h.length===0?e.jsx("div",{className:"text-xs text-gray-500",children:"Sin secciones (Firestore)"}):e.jsx(Ga,{children:e.jsx(fa,{docId:a,children:e.jsx(V.Container,{className:"oli-font",maxWidth:!1,disableGutters:!0,sx:{backgroundColor:"#121212",position:"relative",pb:5,width:"100%",maxWidth:"100%",overflowX:"hidden"},children:e.jsx(V.Stack,{direction:"column",spacing:$?8:5,useFlexGap:!0,children:_.map(p)})})})})};exports.OraculoButton=G;exports.OraculoCarousel=ae;exports.OraculoCarouselDots=Oe;exports.OraculoClubOlimpoVisual=Je;exports.OraculoEventCombinadasCard=et;exports.OraculoEventEnVivoCard=at;exports.OraculoEventHeader=He;exports.OraculoEventLabel=Ee;exports.OraculoEventLeague=Ie;exports.OraculoEventScore=Te;exports.OraculoEventSemanaCard=nt;exports.OraculoEventStatus=Ge;exports.OraculoEventStatusBadge=De;exports.OraculoEventTeamInfo=de;exports.OraculoGameCard=ce;exports.OraculoGameRankCard=Ke;exports.OraculoGameSlide=ke;exports.OraculoGridGroup=J;exports.OraculoLiveCasinoCard=Ze;exports.OraculoLogoMediosPago=je;exports.OraculoPageLandingPreview=xt;exports.OraculoSeccionBanners=ht;exports.OraculoSeccionBonoBienvenida=ut;exports.OraculoSeccionCasino=lt;exports.OraculoSeccionCasinoEnVivo=st;exports.OraculoSeccionClubOlimpo=mt;exports.OraculoSeccionDestacados=ot;exports.OraculoSeccionEventoCombinadas=pt;exports.OraculoSeccionEventoEnVivo=ft;exports.OraculoSeccionEventoSemana=gt;exports.OraculoSeccionMediosPago=bt;exports.OraculoSeccionTopJuegos=Me;exports.OraculoSeccionVirtuales=dt;exports.OraculoSectionTitle=te;exports.OraculoTopJuegoItem=Me;exports.OraculoWelcomeBanner=Ce;exports.default=xt;
|
|
19
|
+
`},ut=({headline:t,headline2:a,items:n,backgroundImageUrl:r})=>{const l=K.useCaptureInteraction(),i=Z(),m=Et.default("(max-width: 767px)"),f=n.length>1,x=h.useRef(null),p=h.useRef(null),d=h.useRef(!1),u=h.useRef(!1),[j,S]=h.useState(0),[C,B]=h.useState({isStart:!0,isEnd:!1});h.useEffect(()=>{const w=setTimeout(()=>{d.current=!0},500);return()=>clearTimeout(w)},[]);const _=h.useRef(C);h.useEffect(()=>{_.current=C},[C]);const k=h.useRef(!1),E=h.useRef(null),$=n==null?void 0:n[j],c=h.useMemo(()=>{var w,I;return(I=(w=$==null?void 0:$.backgroundImageUrl)!=null?w:r)!=null?I:""},[$,r]),y=ka(c),T=!n||n.length===0,L=(w,I)=>{l({element:"welcome_banner_button",label:`OraculoSeccionBonoBienvenida - Banner button click: ${w.title||"OraculoSeccionBonoBienvenida - Banner "+(I+1)}`,target:"action",event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:"",banner_position:I+1,banner_total:(n==null?void 0:n.length)||0},tags:{banner_title:w.title||"no_title",button_text:w.buttonText||"no_text"}}),w.onButtonClick&&w.onButtonClick()},F=w=>{if(!d.current)return;if(u.current){u.current=!1;return}const I=n==null?void 0:n[w];l({element:"welcome_banner_carousel",label:`Landing: ${i} - OraculoSeccionBonoBienvenida - Banner view: ${(I==null?void 0:I.title)||"OraculoSeccionBonoBienvenida - Banner "+(w+1)}`,target:"no_url",event_type:"view",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:"",slide_index:w+1,total_slides:(n==null?void 0:n.length)||0,interaction_type:"manual_slide"},tags:{banner_position:String(w+1),banner_title:(I==null?void 0:I.title)||"no_title"}})};h.useEffect(()=>{const w=p.current;if(!w)return;const I=6,g=380,v=o=>{var M,A;if(T||o.ctrlKey||k.current)return;const s=o.deltaX,b=o.deltaY;if(Math.abs(s)<=Math.abs(b)||Math.abs(s)<I)return;const O=s>0;O&&_.current.isEnd||!O&&_.current.isStart||(o.preventDefault(),k.current=!0,O?(M=x.current)==null||M.next():(A=x.current)==null||A.prev(),E.current&&window.clearTimeout(E.current),E.current=window.setTimeout(()=>{k.current=!1},g))};return w.addEventListener("wheel",v,{passive:!1}),()=>{w.removeEventListener("wheel",v),E.current&&window.clearTimeout(E.current)}},[T]);const P=(w,I,g)=>{var s,b;const v=(s=w.headline)!=null?s:t,o=(b=w.headline2)!=null?b:a;return I?e.jsxs(R.default,{sx:{maxWidth:1200,mx:"auto",px:15,display:"grid",gridTemplateColumns:"260px minmax(0, 1fr)",alignItems:"center",columnGap:6},children:[(v||o)&&e.jsx(R.default,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-start",minHeight:"100%"},children:e.jsxs(R.default,{sx:{...Re,textAlign:"left",mb:0},children:[v&&e.jsx(Q.default,{component:"span",sx:Fe,children:v}),o&&e.jsxs(e.Fragment,{children:[e.jsx("br",{}),e.jsx(Q.default,{component:"span",sx:Ae,children:o})]})]})}),e.jsx(R.default,{sx:{display:"flex",justifyContent:"center",alignItems:"center"},children:e.jsx(R.default,{sx:{width:"100%",maxWidth:600,mx:"auto"},children:e.jsx(Ce,{...w,onButtonClick:()=>L(w,g),variant:"large"})})})]}):e.jsxs(R.default,{sx:{textAlign:"center"},children:[(v||o)&&e.jsxs(R.default,{sx:Re,children:[v&&e.jsx(Q.default,{component:"span",sx:Fe,children:v}),o&&e.jsxs(e.Fragment,{children:[e.jsx("br",{}),e.jsx(Q.default,{component:"span",sx:Ae,children:o})]})]}),e.jsx(R.default,{sx:{display:"flex",justifyContent:"center"},children:e.jsx(Ce,{...w,onButtonClick:()=>L(w,g),variant:"small"})})]})};return e.jsxs(R.default,{component:"section",sx:y,children:[e.jsx("div",{ref:p,style:{width:"100%"},children:e.jsx(ae,{ref:x,items:n,perPage:1,gap:"0px",options:{autoWidth:!1},renderItem:(w,I)=>e.jsx(R.default,{sx:{width:"100%"},children:P(w,!m,I)}),onMove:({index:w,isStart:I,isEnd:g})=>{S(w),typeof I=="boolean"&&typeof g=="boolean"&&B({isStart:I,isEnd:g}),F(w)}})}),f&&e.jsx(R.default,{sx:{mt:2,display:"flex",justifyContent:"center"},children:e.jsx(Oe,{total:n.length,active:j,onSelect:w=>{var I;l({element:"welcome_banner_dots",label:`Landing: ${i} - OraculoSeccionBonoBienvenida - Dot navigation: Banner ${w+1}`,target:"no_url",event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:"",dot_index:w+1,total_dots:n.length},tags:{navigation_type:"dot_click"}}),S(w),(I=x.current)==null||I.go(w)}})})]})},mt=({className:t="",fullBleed:a=!0,items:n,selectedIndex:r=0,ariaLabel:l})=>{const i=h.useRef(null),m=h.useRef(null),f=K.useCaptureInteraction(),x=Z();if(!n)return null;const p=()=>{f({element:"club_olimpo_button",label:`Landing: ${x} - 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")},d=Array.isArray(n)?n[r]:n;h.useLayoutEffect(()=>{if(!i.current||!m.current||typeof ResizeObserver=="undefined")return;const j=i.current,S=m.current,C=()=>{j.style.setProperty("--orc-co-bottomH",`${S.offsetHeight+16}px`)},B=new ResizeObserver(C);return B.observe(S),C(),()=>B.disconnect()},[]);const u=["orc-co-wrap",a?"orc-co-fullBleed":"",t].filter(Boolean).join(" ");return e.jsx("section",{ref:i,className:u,"aria-label":l||d.imgAlt||"Club Olimpo",children:e.jsx("div",{ref:m,children:e.jsx(Je,{text:d.text,onClick:p,imgAlt:d.imgAlt,imgSrcMobile:d.imgMobile,imgSrcDesktopBg:d.imgDesktopBg,imgSrcDesktopLogo:d.imgDesktopLogo})})})},$a="oraculo__OraculoSeccionEventoCombinadas-module__controls___Zsta4",Ma={controls:$a};function pt({items:t,title:a="Combinadas del Olimpo",iconUrl:n="https://stg-www.contodobet.com/static/img/landing/EventoCombinada/rayoIcon.svg",onViewMore:r,className:l=""}){const i=K.useCaptureInteraction(),m=Z(),f=h.useRef(null),[x,p]=h.useState({isStart:!0,isEnd:!1}),[d,u]=h.useState([]),j="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",S=()=>{var c;i({element:"evento_combinadas_prev",label:`Landing: ${m} - OraculoSeccionEventoCombinadas - Click: Anterior`,event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{section:"OraculoSeccionEventoCombinadas"}}),(c=f.current)==null||c.prev()},C=()=>{var c;i({element:"evento_combinadas_next",label:`Landing: ${m} - OraculoSeccionEventoCombinadas - Click: Siguiente`,event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{section:"OraculoSeccionEventoCombinadas"}}),(c=f.current)==null||c.next()},B=()=>{i({element:"evento_combinadas_ver_mas",label:`Landing: ${m} - OraculoSeccionEventoCombinadas - Click: Ver más`,event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{section:"OraculoSeccionEventoCombinadas"}}),pa()};async function _(){var c,y,T;try{const F=await(await fetch(j)).json(),P=(T=(y=(c=F==null?void 0:F.group)==null?void 0:c.groups)==null?void 0:y[0])==null?void 0:T.id;if(!P){console.error("Could not extract group ID");return}const w=`https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/prepackcoupon/eventgroup/${P}.json?lang=es_PE&market=PE&client_id=200&channel_id=1&ncid=1764283566783&prePackCouponTags=CUSTOM`,g=await(await fetch(w)).json();u(E(g.events,g.betOffers,g.prePackCoupons))}catch(L){console.error("loadDataEventSpecial error:",L)}}function k(c){var y,T;return(y=c.outcome)!=null&&y.id?[c.outcome.id]:c.type==="BET_BUILDER"&&((T=c.group)!=null&&T.groups)?c.group.groups.flatMap(L=>{var F,P;return(P=(F=L.outcomes)==null?void 0:F.map(w=>w.id))!=null?P:[]}):[]}function E(c,y,T){return T.map(L=>{var s,b,O,M,A,q;const F=L.prePackCouponRows.flatMap(N=>k(N).map(V=>({eventId:N.eventId,outcomeId:V}))),P=new Set(F.map(N=>N.eventId)),w=new Set(F.map(N=>N.outcomeId)),I=new Map(F.map((N,D)=>[N.outcomeId,D])),g={};for(const N of y){if(!P.has(N.eventId))continue;const D=N.outcomes.filter(V=>w.has(V.id)).map(V=>({...V,position:I.get(V.id)}));D.length&&((b=g[s=N.eventId])!=null||(g[s]=[]),g[N.eventId].push({...N,outcomes:D}))}const v=c.filter(N=>P.has(N.id)).map(N=>{var D;return{...N,betoffers:(D=g[N.id])!=null?D:[]}}),o=(q=(A=(M=(O=L.prePackCouponBets)==null?void 0:O[0])==null?void 0:M.odds)==null?void 0:A.decimal)!=null?q:null;return{couponId:L.id,status:L.status,combinadoTotal:o,events:v}})}h.useEffect(()=>{_()},[]);const $=l||void 0;return!d||d.length===0?null:e.jsx("section",{className:$,style:{width:"100%",boxSizing:"border-box"},children:e.jsxs(U.default,{direction:"column",spacing:1.5,useFlexGap:!0,children:[e.jsxs(J,{spacing:1.5,columns:"1fr auto ",justify:"start",children:[e.jsx(te,{title:a,iconUrl:n,size:"md"}),e.jsxs("div",{className:Ma.controls,children:[e.jsxs(J,{spacing:1,columns:"auto auto",children:[e.jsx(G,{ariaLabel:"Anterior",variant:"secondary",iconOnly:!0,leftIcon:e.jsx(ne.ChevronLeftRounded,{}),onClick:S,disabled:x.isStart}),e.jsx(G,{ariaLabel:"Siguiente",variant:"secondary",iconOnly:!0,rightIcon:e.jsx(ne.ChevronRightRounded,{}),onClick:C,disabled:x.isEnd})]}),e.jsx(G,{variant:"secondary",onClick:B,children:"Ver más"})]})]}),e.jsx(ae,{ref:f,items:d.filter(c=>c.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:c=>e.jsx(et,{coupon:c}),onMove:({isStart:c,isEnd:y})=>p({isStart:c,isEnd:y})})]})})}function Ba({}){return e.jsx("div",{className:tt.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 Na="oraculo__FadeItemWrapper-module__fadeWrapper___kFOH4",La={fadeWrapper:Na};function fe({children:t}){return e.jsx("div",{className:La.fadeWrapper,children:t})}function ft({items:t,title:a="En vivo",iconUrl:n="https://stg-www.contodobet.com/static/img/landing/EventoEnVivo/icon.svg",onViewMore:r,className:l=""}){const i="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",m=h.useRef(null),[f,x]=h.useState({isStart:!0,isEnd:!1}),[p,d]=h.useState(null),[u,j]=h.useState({}),[S,C]=h.useState({start:null,end:null}),B=h.useRef(!1),[_,k]=h.useState(null),E=h.useRef(!1),$=K.useCaptureInteraction(),c=Z(),y=Ye(S,300),T=()=>{var o;$({element:"evento_en_vivo_prev",label:`Landing: ${c} - OraculoSeccionEventoEnVivo - Anterior`,target:"prev",event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{section:"OraculoSeccionEventoEnVivo"}}),(o=m.current)==null||o.prev()},L=()=>{var o;$({element:"evento_en_vivo_next",label:`Landing: ${c} - OraculoSeccionEventoEnVivo - Siguiente`,target:"next",event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{section:"OraculoSeccionEventoEnVivo"}}),(o=m.current)==null||o.next()},F=()=>{$({element:"evento_en_vivo_view_more",label:`Landing: ${c} - 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"}}),ua()},P=["esports","cyber"],w=o=>o.filter(s=>{var O;if(s.event.sport!=="FOOTBALL")return!1;const b=((O=s.event.group)==null?void 0:O.toLowerCase())||"";return!P.some(M=>b.includes(M))}),I=h.useCallback(async()=>{var o;try{let s=_;if(!E.current&&_===null){E.current=!0;try{const N=await fetch("https://api.mktolimpo.com/api/kambi/eventos/orden"),D=N.ok?await N.json():null;s=((o=D==null?void 0:D.data)==null?void 0:o.event_ids)||[]}catch{s=[]}k(s)}const O=await(await fetch(i)).json(),M=w(O.events);if(!s||s.length===0){d(M);return}const A=new Map(s.map((N,D)=>[String(N),D])),q=[...M].sort((N,D)=>{const V=A.get(String(N.event.id)),H=A.get(String(D.event.id));return V!==void 0&&H!==void 0?V-H:V!==void 0?-1:H!==void 0?1:0});d(q)}catch(s){console.error(s)}},[_]);h.useEffect(()=>{I();const o=setInterval(I,2e4);return()=>clearInterval(o)},[I]),h.useEffect(()=>{if(y.start===null||y.end===null||!(p!=null&&p.length)||B.current)return;const o=3,s=Math.max(0,y.start-o),b=Math.min(p.length-1,y.end+o),O=p.slice(s,b+1).map(M=>M==null?void 0:M.event.id).filter(Boolean).filter(M=>u[M]===void 0);O.length&&(B.current=!0,Xe(O).then(M=>{j(A=>({...A,...M.events}))}).catch(M=>{console.error("Jersey fetch error",M)}).finally(()=>{B.current=!1}))},[y,p,u]);const g=l||void 0,v=p===null;return!v&&p.length===0?null:e.jsx("section",{className:g,style:{width:"100%",boxSizing:"border-box"},children:e.jsxs(U.default,{direction:"column",spacing:1.5,useFlexGap:!0,children:[e.jsxs(J,{spacing:1.5,columns:"1fr auto ",justify:"start",children:[e.jsx(te,{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(ne.ChevronLeftRounded,{}),onClick:T,disabled:f.isStart}),e.jsx(G,{ariaLabel:"Siguiente",variant:"secondary",iconOnly:!0,rightIcon:e.jsx(ne.ChevronRightRounded,{}),onClick:L,disabled:f.isEnd})]}),e.jsx(G,{variant:"secondary",onClick:F,children:"Ver más"})]})]}),e.jsx(ae,{ref:m,items:v?Array(4).fill({}):p.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:o=>{var O;const s=((O=o.event)==null?void 0:O.id)||o.eventId,b=s in u?u[s]:void 0;return v?e.jsx(fe,{children:e.jsx(Ba,{})}):e.jsx(fe,{children:e.jsx(at,{...o,jersey:b})})},onMove:({isStart:o,isEnd:s,visibleStart:b,visibleEnd:O})=>{x({isStart:o,isEnd:s}),C({start:b,end:O})}})]})})}function Ra(){return e.jsxs("div",{className:ie.cardContainer,children:[e.jsx(Ie,{title:""}),e.jsx("div",{className:ie.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:ie.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 Fa="oraculo__OraculoSeccionEventoSemana-module__wrapper___eqVq-",Aa="oraculo__OraculoSeccionEventoSemana-module__container___5yFQs",Pa="oraculo__OraculoSeccionEventoSemana-module__buttonWrapper___-6IDT",we={wrapper:Fa,container:Aa,buttonWrapper:Pa};async function qa(t,a=2,n){const r=[];for(let l=0;l<t.length;l+=a){if(n.aborted)throw new DOMException("Aborted","AbortError");const i=t.slice(l,l+a),m=await Promise.all(i.map(f=>fetch(f,{signal:n}).then(x=>x.json())));r.push(...m)}return r}function za(t){return[...t].sort((a,n)=>new Date(a.start).getTime()-new Date(n.start).getTime())}function Ua(t){const a=new Date,n=new Date(a.getTime()+480*60*60*1e3);return t.filter(r=>{if(!r.start)return!1;const l=new Date(r.start);return l>=a&&l<=n})}function Va(t,a){const r=a.filter(l=>{var i;return((i=l.betOfferType)==null?void 0:i.id)===2}).reduce((l,i)=>(l[i.eventId]||(l[i.eventId]=[]),l[i.eventId].push(i),l),{});return t.filter(l=>r[l.id]).map(l=>({...l,outcome:r[l.id]}))}function gt({items:t,title:a="En vivo",iconUrl:n,onViewMore:r,className:l=""}){const i=K.useCaptureInteraction(),m=Z(),f="https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/group.json?channel_id=1&client_id=200&lang=es_PE&market=PE",x=h.useRef(null),[p,d]=h.useState({isStart:!0,isEnd:!1}),[u,j]=h.useState(null);h.useRef(new Set);const[S,C]=h.useState({}),[B,_]=h.useState({start:null,end:null}),k="channel_id=1&client_id=200&competitionId=undefined&lang=es_PE&market=PE&useCombined=true",E=Ye(B,250),$=h.useRef(!1),c=()=>{i({element:"evento_semana_view_more",label:`Landing: ${m} - 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"}}),ma()};async function y(w){var v,o;let I=[],g=[];try{const s=await fetch("https://api.mktolimpo.com/api/kambi/eventos/orden",{signal:w});if(s.ok){const b=await s.json();I=((v=b==null?void 0:b.data)==null?void 0:v.group_ids)||[],g=((o=b==null?void 0:b.data)==null?void 0:o.event_ids)||[]}}catch(s){s.name!=="AbortError"&&console.warn("Order API not available, using default group order");return}try{const O=(await(await fetch(f,{signal:w})).json()).group.groups.find(V=>V.englishName==="Football");if(!O||!Array.isArray(O.groups)){console.error("Football groups not found");return}let M=[...O.groups];if(I.length>0){const V=new Map(I.map((H,le)=>[H,le]));M.sort((H,le)=>{const he=V.get(String(H.id)),be=V.get(String(le.id));return he!==void 0&&be!==void 0?he-be:he!==void 0?-1:be!==void 0?1:0})}const q=M.slice(0,5),N=V=>{const H="https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/listView/football";if(V.groups&&V.groups.length>0){const le=V.groups[0];return[`${H}/${V.termKey}/${le.termKey}/all/matches.json?${k}`]}return[`${H}/${V.termKey}/all/all/matches.json?${k}`]},D=q.flatMap(N);T(D,g,w)}catch(s){console.error(s)}}async function T(w,I,g){try{const v=await qa(w,2,g);let o=[],s=[];v.forEach(A=>{A.events&&(o.push(...A.events.map(q=>q.event)),s.push(...A.events.flatMap(q=>q.betOffers||[])))});const b=Va(o,s),O=za(Ua(b));let M=O;if(I.length>0){const A=new Map(I.map((q,N)=>[String(q),N]));M=[...O].sort((q,N)=>{const D=A.get(String(q.id)),V=A.get(String(N.id));return D!==void 0&&V!==void 0?D-V:D!==void 0?-1:V!==void 0?1:0})}if(g.aborted)return;j(M)}catch(v){console.error("Error loading events:",v)}}h.useEffect(()=>{if(!t)return;const w=new AbortController;return y(w.signal),()=>{w.abort()}},[t]),h.useEffect(()=>{if(E.start===null||E.end===null||!(u!=null&&u.length)||$.current)return;const w=2,I=Math.max(0,E.start-w),g=Math.min(u.length-1,E.end+w),v=u.slice(I,g+1).map(s=>s==null?void 0:s.id).filter(Boolean).filter(s=>S[s]===void 0);if(!v.length)return;let o=!1;return $.current=!0,(async()=>{try{const s=await Xe(v);o||C(b=>({...b,...s.events}))}catch(s){console.error("Jersey fetch error",s)}finally{$.current=!1}})(),()=>{o=!0}},[E,u]);const L=l||void 0,F={paddingLeft:0,width:"100%",boxSizing:"border-box"},P=u===null;return!P&&u.length===0?null:e.jsx("section",{className:L,style:F,children:e.jsxs("div",{className:we.wrapper,children:[e.jsx("div",{className:we.container,children:e.jsxs(U.default,{direction:"column",spacing:1.5,useFlexGap:!0,children:[e.jsx(te,{title:"Eventos de la semana"}),e.jsx("div",{className:we.buttonWrapper,children:e.jsx(G,{variant:"secondary",size:"lg",fullWidth:!0,onClick:()=>{c()},children:"Ver más"})})]})}),e.jsx("div",{style:{minWidth:"180px"},children:e.jsx(ae,{ref:x,items:P?Array(6).fill({}):u.slice(0,20),perPage:3.5,gap:"16px",enableHorizontalWheel:!0,options:{autoWidth:!0,trimSpace:!0},breakpoints:{1024:{perPage:1.4,gap:"8px",focus:"center",padding:{left:"8px",right:"8px"}}},renderItem:w=>{const I=w.id,g=I in S?S[I]:void 0;return P?e.jsx(fe,{children:e.jsx(Ra,{})}):e.jsx(fe,{children:e.jsx(nt,{event:w,jersey:g})})},onMove:({isStart:w,isEnd:I,visibleStart:g,visibleEnd:v})=>{d({isStart:w,isEnd:I}),_({start:g,end:v}),i({element:"evento_semana_carousel_slide",label:`Landing: ${m} - OraculoSeccionEventoSemana - Slide Carousel`,target:"carousel",event_type:"slide",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:"",visibleStart:g,visibleEnd:v,isStart:w,isEnd:I},tags:{section:"OraculoSeccionEventoSemana"}})}})})]})})}function ht({backgrounds:t,items:a,hideItems:n}){var I,g,v;const[r,l]=h.useState(0),i=K.useCaptureInteraction(),m=Z(),f=h.useRef(null),x=h.useRef(!1),p=h.useRef(!1),d=(t==null?void 0:t.length)||1,u=!t||t.length===0,j=!u&&((I=t==null?void 0:t.length)!=null?I:0)>1,S=!n&&((g=a==null?void 0:a.length)!=null?g:0)>0,C=o=>{var s;o.preventDefault(),o.stopPropagation(),P(),(s=f.current)==null||s.prev()},B=o=>{var s;o.preventDefault(),o.stopPropagation(),P(),(s=f.current)==null||s.next()},_="#B5B5B5",k={position:"absolute",top:"50%",transform:"translateY(-50%)",zIndex:5,width:48,height:40,borderRadius:"12px",border:`1.5px solid ${_}`,py:1,px:1.5,color:_,backgroundColor:"transparent","&:hover":{backgroundColor:"rgba(181,181,181,0.08)"},"&.Mui-disabled":{opacity:.35,borderColor:_,color:_,backgroundColor:"transparent",cursor:"default"}},E=h.useMemo(()=>({type:"loop",perMove:1,pagination:!1,arrows:!1,drag:!0,focus:"center"}),[]);h.useEffect(()=>{const o=setTimeout(()=>{x.current=!0},500);return()=>clearTimeout(o)},[]);const $=(o,s)=>{var O,M;const b=((M=(O=o.href)==null?void 0:O.split("/").pop())==null?void 0:M.split(".")[0])||o.label||o.id||`banner_${s+1}`;i({element:"banner_carousel",label:`Landing: ${m} - OraculoSeccionBanners - Banner click: ${b}`,target:o.href||"no_url",event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:"",banner_position:s+1,banner_total:(t==null?void 0:t.length)||0},tags:{banner_type:"carousel",banner_target:"_self",banner_url:o.href||"no_url"}})},c=o=>{if(i({element:"banner_menu_item",label:`Landing: ${m} - OraculoSeccionBanners - Menu item click: ${o.label||o.id}`,target:o.href||"action",event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:"",item_id:o.id},tags:{item_label:o.label||"no_label"}}),o.onClick){o.onClick();return}o.href&&typeof globalThis!="undefined"&&globalThis.location&&globalThis.location.assign(o.href)},y=o=>{var M,A,q,N;const s=(o%d+d)%d;l(s);const b=p.current;if(p.current=!1,b||w(),!x.current||b)return;const O=(M=t==null?void 0:t[s])!=null&&M.href?((q=(A=t[s].href)==null?void 0:A.split("/").pop())==null?void 0:q.split(".")[0])||`banner_${s+1}`:`banner_${s+1}`;i({element:"banner_carousel",label:`Landing: ${m} - OraculoSeccionBanners - Banner view: Slide ${s+1} - ${O}`,target:((N=t==null?void 0:t[s])==null?void 0:N.href)||"no_url",event_type:"view",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:"",slide_index:s+1,total_slides:d,interaction_type:"manual_slide"},tags:{banner_position:String(s+1)}})},T=5e3,L=h.useRef(null),F=!u&&((v=t==null?void 0:t.length)!=null?v:0)>1,P=()=>{L.current!=null&&(window.clearInterval(L.current),L.current=null)},w=()=>{P(),F&&(L.current=window.setInterval(()=>{var o;p.current=!0,(o=f.current)==null||o.next()},T))};return h.useEffect(()=>(w(),()=>P()),[u,t==null?void 0:t.length,T]),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(ae,{ref:f,items:t,perPage:1,gap:"0px",enableHorizontalWheel:!0,options:E,onMove:({index:o})=>{const s=(o%d+d)%d;l(s),y(o)},renderItem:(o,s)=>{var b,O;return e.jsxs(W.Box,{component:"a",href:o.href,target:(b=o.target)!=null?b:"_self",rel:o.target==="_blank"?"noopener noreferrer":void 0,onClick:()=>{$(o,s)},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:o.desktopSrc,media:"(min-width:800px)"}),e.jsx("source",{srcSet:o.mobileSrc,media:"(max-width:799px)"}),e.jsx(W.Box,{component:"img",src:(O=o.fallbackSrc)!=null?O:o.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%)"}}})]})}}),j&&e.jsxs(e.Fragment,{children:[e.jsx(W.IconButton,{"aria-label":"Anterior",onClick:C,sx:{...k,left:"120px","@media (max-width:1024px)":{left:24}},children:e.jsx(ne.ChevronLeftRounded,{})}),e.jsx(W.IconButton,{"aria-label":"Siguiente",onClick:B,sx:{...k,right:"120px","@media (max-width:1024px)":{right:24}},children:e.jsx(ne.ChevronRightRounded,{})})]}),e.jsx(W.Box,{sx:{position:"absolute",left:0,right:0,bottom:72,display:"flex",justifyContent:"center",zIndex:2},children:e.jsx(Oe,{total:d,active:r,durationMs:T})})]}),S&&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(o=>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:o.onClick||o.href?"pointer":"default",whiteSpace:"nowrap"},onClick:()=>c(o),children:[o.icon&&e.jsx(W.Box,{component:"img",src:o.icon,alt:o.label||`icon-${o.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:o.label})]},o.id))})]})}const Wa=[{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 bt({title:t="Medios de pago",items:a=Wa}){const n=Math.ceil(a.length/2),r=a.slice(0,n),l=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:r.map((i,m)=>e.jsx(je,{...i},`${i.alt}-${i.src}-${m}`))}),e.jsx(W.Stack,{direction:"row",justifyContent:"center",alignItems:"center",gap:{xs:2,md:3},flexWrap:"wrap",children:l.map((i,m)=>e.jsx(je,{...i},`${i.alt}-${i.src}-${m}`))})]})]})}const Da={OraculoSeccionDestacados:ot,OraculoSeccionTopJuegos:Me,OraculoSeccionCasinoEnVivo:st,OraculoSeccionCasino:lt,OraculoSeccionVirtuales:dt,OraculoSeccionClubOlimpo:mt,OraculoSeccionBonoBienvenida:ut,OraculoSeccionBanners:ht,OraculoSeccionMediosPago:bt,OraculoSeccionEventoEnVivo:ft,OraculoSeccionEventoSemana:gt,OraculoSeccionEventoCombinadas:pt},Pe={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"}]};function Ga({children:t}){const a=xe.useTheme(),n=ge.default.useMemo(()=>xe.createTheme(a,{typography:{fontFamily:"var(--orc-font)"},components:{MuiTypography:{styleOverrides:{root:{fontFamily:"var(--orc-font)"}}}}}),[a]);return e.jsxs(xe.ThemeProvider,{theme:n,children:[e.jsx(It.default,{}),t]})}const Ha=t=>typeof t=="function"||t&&typeof t=="object"&&"$$typeof"in t,Ka=t=>/^OraculoSeccion[A-Z]/.test(t);function Se(t){return t&&Array.isArray(t.sections)?t.sections.slice().sort((a,n)=>{var r,l;return((r=a.order)!=null?r:0)-((l=n.order)!=null?l:0)}).map((a,n)=>({...a,order:n+1})):t&&Array.isArray(t.components)?t.components.map((a,n)=>{var r,l,i,m,f;return{id:(r=a.id)!=null?r:n+1,title:(l=a.title)!=null?l:"",componentKey:a.componentKey,visible:(i=a.visible)!=null?i:!0,order:n+1,props:(m=a.props)!=null?m:{},apiUrl:(f=a.apiUrl)!=null?f:"",dataMode:a.dataMode,variableName:a.variableName,manualItems:a.manualItems,apiMethod:a.apiMethod,apiParams:a.apiParams}}):[]}const Za=Object.fromEntries(Object.entries(Da).filter(([t,a])=>Ka(t)&&Ha(a))),Ja=t=>{try{return Object.fromEntries(t!=null?t:[])}catch{return console.warn("[oraculo] extras inválidos. Debe ser Array<[string, unknown]>",t),{}}};class qe extends Error{constructor(a,n,r){super(`HTTP ${a} ${r}`),this.status=a,this.url=n,this.statusText=r,this.name="HttpError"}}const ze=["OraculoSeccionEventoEnVivo","OraculoSeccionEventoSemana","OraculoSeccionEventoCombinadas"],xt=({sectionsOverride:t,docId:a="home",db:n,extras:r,loader:l})=>{const i=h.useMemo(()=>Ja(r),[r]),m=l||i.loader,[f,x]=h.useState([]),[p,d]=h.useState(!1),[u,j]=h.useState({}),[S,C]=h.useState({}),[B,_]=h.useState({}),k=W.useMediaQuery("(min-width:1024px)");h.useEffect(()=>{if(t)return;if(!n){console.warn("[landing] sin db -> fallback json"),x(Se(Pe));return}const g=(o,s)=>{console.warn("[landing] FALLBACK:",o,s!=null?s:""),x(Se(Pe)),d(!1)};if(process.env.NEXT_PUBLIC_LANDING_FORCE_FALLBACK==="1"){d(!0),g("forzado por env");return}d(!0);const v=Be.onSnapshot(Be.doc(n,"landings",a),o=>{try{if(!o.exists()){g(`doc landings/${a} no existe`);return}const s=o.data(),b=Se(s);if(!b.length){g("JSON inválido o sin secciones normalizables",s);return}console.log("[landing] Firestore OK (json grande):",s),x(b)}catch(s){g("error procesando snapshot",s)}finally{d(!1)}},o=>{g("error onSnapshot",o)});return()=>v()},[t,a,n]),h.useEffect(()=>(ja(i),()=>Ca()),[i]),h.useEffect(()=>{(t?t.slice():f.slice()).map(o=>o.componentKey).filter(o=>!!o).length},[t,f]);const E=async g=>{if(ze.includes(g.componentKey))return{items:[],events:[],data:{}};const v=(g.apiUrl||"").trim();if(!v)return;const o=g.apiMethod||"GET",s=g.apiParams||[];let b=v,O,M;if(o==="GET"){const q=new URL(v,typeof window=="undefined"?"http://localhost":window.location.origin);for(const N of s)N.key&&q.searchParams.append(N.key,N.value);b=q.toString()}else{const q=new URLSearchParams;for(const N of s)N.key&&q.append(N.key,N.value);O=q.toString(),M={"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"}}const A=await fetch(b,{method:o,headers:M,body:O});if(!A.ok)throw new qe(A.status,b,A.statusText);return A.json()},$=h.useMemo(()=>t?t.slice():f.slice(),[t,f]),c=ge.default.useRef(new Set);h.useEffect(()=>{const g=$.map(v=>({s:v,url:(v.apiUrl||"").trim()})).filter(({url:v})=>!!v);if(g.length)for(const{s:v,url:o}of g){const s=`${v.id}|${o}`;c.current.has(s)||(c.current.add(s),C(b=>({...b,[v.id]:!0})),_(b=>({...b,[v.id]:""})),(async()=>{try{const b=await E(v);j(O=>({...O,[v.id]:b}))}catch(b){let O="Error desconocido";b instanceof qe?O=`Error HTTP ${b.status} (${b.statusText}) en ${b.url}`:b instanceof SyntaxError?O="Respuesta no es JSON válido":b instanceof TypeError?O="Fallo de red / CORS / conexión":typeof b=="string"&&(O=b.toString()),_(M=>({...M,[v.id]:O}))}finally{C(b=>({...b,[v.id]:!1}))}})())}},[$]);const y=h.useMemo(()=>$.filter(g=>g.visible).sort((g,v)=>g.order-v.order),[$]),T=g=>Array.isArray(g)?g.map(v=>{const o={};for(const s of v.fields||[]){const b=(s.type||"string").toLowerCase();if(b==="number"){const O=String(s.value||"").trim();if(O!==""){const M=Number(O);Number.isNaN(M)||(o[s.name]=M)}}else if(b==="boolean")o[s.name]=String(s.value).toLowerCase()==="true";else if(b==="function"){const O=String(s.value||"").trim();if(O)try{const M=new Function(O);o[s.name]=M}catch(M){console.error(`❌ Error creando función en item '${s.name}':`,M)}}else o[s.name]=s.value}return o}):[],L=g=>{const v={};if(!Array.isArray(g))return v;for(const o of g){if(!o.name)continue;const s=(o.type||"string").toLowerCase();if(s==="number"){const b=String(o.value||"").trim();if(b!==""){const O=Number(b);Number.isNaN(O)||(v[o.name]=O)}}else if(s==="boolean")v[o.name]=String(o.value).toLowerCase()==="true";else if(s==="function"){const b=String(o.value||"").trim();if(b)try{const O=new Function(b);v[o.name]=O}catch(O){console.error(`❌ Error creando función en item '${o.name}':`,O)}}else v[o.name]=o.value}return v},F=(g,v,o)=>{const s=o?{...o}:{};if(v){const N=(v.variableName||"items").trim()||"items";return s[N]=v.arr||[],s}const b=g,O=Array.isArray(b),M=!O&&typeof b=="object"&&b!==null?b:void 0,A=M&&Array.isArray(M.lobby||M.items)?M.lobby||M.items:void 0,q=N=>O?b:A||N;return s.items=q(A||[]),s},P=g=>{var O;const v=!!((O=g.apiUrl)!=null&&O.trim()),o=v?u[g.id]:void 0;let s=g.props?{...g.props}:{};const b=L(g.manualScalarFields);if(ze.includes(g.componentKey))return{items:o,...s,...b};if(s={...s,...b},v)s=F(o,null,s);else if(g.dataMode==="manual"){const M=T(g.manualItems);if(s=F(null,{arr:M,variableName:g.variableName},s),g.variableName2&&g.manualItems2){const A=T(g.manualItems2),q=(g.variableName2||"items2").trim()||"items2";s[q]=A}}return s},w=(g,v,o)=>{const s={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 ${s[v]}`,children:o},g)},I=g=>{var H;const v=g.componentKey,o=Za[v];if(!o)return console.warn(`No hay componente registrado para "${v}"`),w(g.id,"component",`Componente "${v}" no encontrado`);const s=!!((H=g.apiUrl)!=null&&H.trim()),b=s?u[g.id]:void 0,O=s?!!S[g.id]:!1,M=s?B[g.id]:"";if(s){if(O&&!b)return w(g.id,"loading",`Cargando datos desde ${g.apiUrl}...`);if(M&&!b)return w(g.id,"error",`Error cargando ${g.apiUrl}: ${M}`)}const A=P(g),N=new Set(["OraculoSeccionBanners","OraculoSeccionBonoBienvenida","OraculoSeccionCasinoEnVivo",k?"":"OraculoSeccionClubOlimpo"]).has(g.componentKey),D=k?120:24,V=N?{width:"100%",boxSizing:"border-box"}:{paddingLeft:D,paddingRight:D,width:"100%",boxSizing:"border-box"};return e.jsx("div",{style:V,className:"oraculo-section-wrapper",children:e.jsx(o,{...A})},g.id)};return p&&!t?m?e.jsx(m,{}):e.jsx("div",{children:"Cargando..."}):!p&&!t&&f.length===0?e.jsx("div",{className:"text-xs text-gray-500",children:"Sin secciones (Firestore)"}):e.jsx(Ga,{children:e.jsx(fa,{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:k?8:5,useFlexGap:!0,children:y.map(I)})})})})};exports.OraculoButton=G;exports.OraculoCarousel=ae;exports.OraculoCarouselDots=Oe;exports.OraculoClubOlimpoVisual=Je;exports.OraculoEventCombinadasCard=et;exports.OraculoEventEnVivoCard=at;exports.OraculoEventHeader=He;exports.OraculoEventLabel=Ee;exports.OraculoEventLeague=Ie;exports.OraculoEventScore=Te;exports.OraculoEventSemanaCard=nt;exports.OraculoEventStatus=Ge;exports.OraculoEventStatusBadge=De;exports.OraculoEventTeamInfo=de;exports.OraculoGameCard=ce;exports.OraculoGameRankCard=Ke;exports.OraculoGameSlide=ke;exports.OraculoGridGroup=J;exports.OraculoLiveCasinoCard=Ze;exports.OraculoLogoMediosPago=je;exports.OraculoPageLandingPreview=xt;exports.OraculoSeccionBanners=ht;exports.OraculoSeccionBonoBienvenida=ut;exports.OraculoSeccionCasino=lt;exports.OraculoSeccionCasinoEnVivo=st;exports.OraculoSeccionClubOlimpo=mt;exports.OraculoSeccionDestacados=ot;exports.OraculoSeccionEventoCombinadas=pt;exports.OraculoSeccionEventoEnVivo=ft;exports.OraculoSeccionEventoSemana=gt;exports.OraculoSeccionMediosPago=bt;exports.OraculoSeccionTopJuegos=Me;exports.OraculoSeccionVirtuales=dt;exports.OraculoSectionTitle=te;exports.OraculoTopJuegoItem=Me;exports.OraculoWelcomeBanner=Ce;exports.default=xt;
|
|
20
20
|
//# sourceMappingURL=index.cjs.js.map
|