oraculo-ui 0.1.105 → 0.1.106
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.es.js +1304 -1292
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),U=require("@mui/material"),b=require("react"),St=require("@mui/material/Skeleton"),He=require("@splidejs/react-splide"),jt=require("@mui/material/Box"),Ot=require("@mui/material/Typography"),Ct=require("@mui/material/Stack"),H=require("@olimpo/capture-client"),oe=require("@mui/icons-material"),Et=require("@mui/icons-material/ChevronLeftRounded"),It=require("@mui/icons-material/ChevronRightRounded"),Tt=require("@mui/material/useMediaQuery"),Se=require("@mui/material/styles"),kt=require("@mui/material/CssBaseline"),Fe=require("firebase/firestore"),ee=t=>t&&t.__esModule?t:{default:t},re=ee(b),q=ee(St),N=ee(jt),Q=ee(Ot),z=ee(Ct),Ke=ee(Et),Ze=ee(It),$t=ee(Tt),Mt=ee(kt);function D({children:t,onClick:a,href:n,target:i,rel:s,type:o="button",disabled:d=!1,variant:p="primary",size:x,fullWidth:u=!1,fullHeight:c=!1,className:m="",ariaLabel:h,leftIcon:w,rightIcon:_,iconOnly:M}){const v=!!t&&t!==!0,O=(!!w?1:0)+(!!_?1:0)==1,E=M!=null?M:O&&!v,B=["orc-btn",p==="secondary"?"orc-btn--secondary":p==="tertiary"?"orc-btn--tertiary":"orc-btn--primary",x?`orc-btn--${x}`:"",u?"orc-btn--full":"",c?"orc-btn--fullHeight":"",E?"orc-btn--iconOnly":"",m].filter(Boolean).join(" "),R=e.jsxs(e.Fragment,{children:[w&&e.jsx("span",{className:"orc-btn__icon",children:w}),!E&&e.jsx("span",{className:"orc-btn__label",children:t}),_&&e.jsx("span",{className:"orc-btn__icon",children:_})]}),C=d?!0:void 0;return n?e.jsx(U.Link,{href:n,target:i,rel:s,"aria-label":h,"aria-disabled":C,tabIndex:C?-1:void 0,className:B,onClick:C?L=>L.preventDefault():a,children:R}):e.jsx("button",{type:o,onClick:a,disabled:!!C,"aria-label":h,className:B,children:R})}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 ke=({total:t,active:a,onSelect:n,className:i="",durationMs:s=5e3})=>{if(t<=1)return null;const o=["orc-dots",i].filter(Boolean).join(" "),[d,p]=b.useState(0);return b.useEffect(()=>{p(x=>x+1)},[a,s]),e.jsx("div",{className:o,role:"tablist","aria-label":"Carousel pagination",children:Array.from({length:t}).map((x,u)=>{const c=u===a;return e.jsx("span",{className:"orc-dots__cell",children:e.jsx("button",{type:"button",role:"tab","aria-selected":c,"aria-label":`Ir al slide ${u+1}`,className:"orc-dots__dot"+(c?" orc-dots__dot--active":""),style:c?{"--dot-progress-ms":`${s}ms`}:void 0,onClick:()=>{c&&p(m=>m+1),n==null||n(u)}},c?`a-${u}-${d}`:`i-${u}`)},u)})})};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))`,d=typeof n=="number"?`${n*8}px`:n;return e.jsx("div",{style:{display:"grid",gridTemplateColumns:o,justifyItems:i,gap:d,height:"inherit"},children:t})}function Ie({src:t,alt:a}){return e.jsx(U.Box,{sx:{position:"relative",width:{xs:65,sm:80,md:120,lg:160},height:{xs:48,md:96},display:"inline-block"},children:e.jsx(U.Box,{component:"img",src:t,alt:a,sx:{position:"absolute",top:0,left:0,width:"100%",height:"100%",objectFit:"contain"}})})}const Bt="oraculo__OraculoEventTitle-module__contenedor___rg1vw",Nt="oraculo__OraculoEventTitle-module__flexGroup___jMLFO",Rt="oraculo__OraculoEventTitle-module__subtitle___TmHna",je={contenedor:Bt,flexGroup:Nt,subtitle:Rt};function Lt({title:t,subtitle:a}){return e.jsxs("div",{className:je.contenedor,children:[e.jsx("span",{style:{fontWeight:700,fontSize:"12px",lineHeight:"16px"},children:t}),a&&e.jsxs("div",{className:je.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:je.subtitle,children:a}),e.jsx("div",{})]})]})}function Je({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:"42px",height:"16px",textAlign:"center"},children:t})}function Xe({live:t,time:a}){return e.jsxs("div",{className:"oli-font",style:{display:"flex",alignItems:"center",gap:"8px"},children:[t&&e.jsx(Je,{text:"En vivo"}),a&&e.jsx("span",{style:{fontSize:"14px",fontWeight:400,lineHeight:"18px",paddingTop:"4px"},children:a})]})}function Ye({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(Lt,{title:t,subtitle:a}),e.jsx(Xe,{live:n,time:i})]})}const Ft="oraculo__OraculoEventLabel-module__label___c64Xw",At={label:Ft};function $e({text:t}){return e.jsx("span",{className:At.label,children:t})}const Pt="oraculo__OraculoEventLeague-module__container___rdk4F",qt={container:Pt};function Me({title:t}){return e.jsx("div",{className:qt.container,children:t.toUpperCase()})}const zt="oraculo__OraculoEventScore-module__scoreWrapper___fWwEr",Ut="oraculo__OraculoEventScore-module__name___r4uL6",Vt="oraculo__OraculoEventScore-module__score___Xl03M",Dt="oraculo__OraculoEventScore-module__normal___cCNFz",Wt="oraculo__OraculoEventScore-module__small___fVt8E",ce={scoreWrapper:zt,name:Ut,score:Vt,normal:Dt,small:Wt};function Be({text:t,name:a,size:n="normal"}){return e.jsxs("div",{className:`${ce.scoreWrapper} ${ce[n]}`,children:[e.jsx("div",{className:`${ce.score} ${ce[n]}`,children:t}),a&&e.jsx("span",{className:`${ce.name} ${ce[n]}`,children:a})]})}const Gt="oraculo__OraculoEventTeamInfo-module__team___UfpUs",Ht="oraculo__OraculoEventTeamInfo-module__regular___ag826",Kt="oraculo__OraculoEventTeamInfo-module__compact___RCNOs",Zt="oraculo__OraculoEventTeamInfo-module__logo___fKCl3",Jt="oraculo__OraculoEventTeamInfo-module__name___4ikm-",Xt="oraculo__OraculoEventTeamInfo-module__skeleton___Yfaxh",de={team:Gt,regular:Ht,compact:Kt,logo:Zt,name:Jt,skeleton:Xt},Yt="oraculo__OraculoTeamPolo-module__polo___BisRg",Qt="oraculo__OraculoTeamPolo-module__svgWrapper___HRKNX",ea="oraculo__OraculoTeamPolo-module__shadow___-3DXb",ta="oraculo__OraculoTeamPolo-module__highlight___1etm7",ge={polo:Yt,svgWrapper:Qt,shadow:ea,highlight:ta};function aa({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:`${ge.polo} ${a!=null?a:""}`,children:[e.jsx("div",{className:ge.svgWrapper,children:e.jsxs("svg",{viewBox:"0 0 656 656","aria-hidden":!0,children:[e.jsx("path",{fill:n,d:"m62 265 5.8-17c-.4-.7-.6-1.5-.4-2 .2-.7.8-1.2 1.2-1.4l1.2-4 9-21.6c.2-1 1-3.5 2.4-6.4a69.9 69.9 0 0 1 4.1-17.2l2.9-7 2.9-11.4c1.7-5.8 5.2-18.4 5.8-22 .6-3.6 6.8-19 9.8-26.2.4-.9 2.4-4.7 7.2-12.8 5.4-12.2 23.5-27.2 32-33.1l6.6-3.7 7.9-3.6 17.3-6.2 16.6-7.1L215 52c7-4.1 21.8-12.5 24.1-13.2 2.3-.8 5-3.5 6-4.7 1.2-1.2 4.2-3.8 6.6-4.7 2.3-1 8.2-6.8 10.8-9.6 1.6-1.4 3.8-4.7 9.2-7.5 5.3-2.9 20.4-4 27.2-4.3h25.6l16.7.3 14.1.6 10.3.7 9.5 1.7c6.4.6 12.6 4.3 15.4 8l2.7 3.1 8.9 8 1.8.7 4.9 3 2.7 3.5c4.2 2.2 13.1 7.1 15.2 8.7 2 1.6 30.1 15.4 44 22 8 3.2 39 12.3 55.3 30 5.2 4.3 7 7.8 11.4 12.4 5.1 5.3 15.1 29 16.9 32 1.4 2.6 5 17 6.8 24l4.8 20.5 8.4 29 8.9 22.7 2.3 5.4.6 1.5c.5.6 1.4 2 1 2.6-.2.6 0 2 .2 2.7l1 2.6 2 5.8 2.2 5.9c.3 1.3-4.3 4-6.6 5.2l-11.1 5-12.6 4.7-15 5-14.6 4.6-10.9 2.4a66 66 0 0 1-8.6 1.4c-3.4.3-4.7-.4-4.9-.8l-5-12.3-1.9-3.8-1.8-1.6.1-.8v-1l-.4-1.8-1.3-4.1-3.3-9-1.3-2-2.2-5.7-2.5-.3-1 .8v2l-2.7 13.1-8.7 58-.9 6.4-.2 7.9c0 3-1 16-1.7 18.3l-2.5 9-.2 7.6-.3 8.7-.3 7.5.3 4 .5 15c.3 1.9-.6 7-1.1 9.3-.6 2.4-1.6 7.5-1.4 8.8.3 1.4-.2 4.4-.5 5.8l-1.3 8.9c-.2 1.4-.8 5-1.3 7.2.7 1.6 4.7 14.6 5.9 17.8 1.2 3.3 4.8 19.4 5 20.7.3 1 1.1 7.8 1.5 11 .1 2.5.3 8 .2 10 0 2-.8 6.6-1.1 8.6-.2 1.7-.7 5.5-1.2 7s-1.2 8.5-1.4 11.8A81.1 81.1 0 0 1 477 552l.3 7.1.2 6.5 1.4 17.7.5 6 1.5 7.7.4 4.6c.3 2.1.7 7 .7 10.1.3 3-2.5 6-4 7 0 .2-1.2 1-4.6 3-6.4 5-26.3 11.6-35.5 14.3a379.2 379.2 0 0 1-58.6 11.2c-2.3.8-27 2.2-39 2.7-8.3 0-27 0-34.5-.4-11.5.9-47.4-4.8-63.9-7.7-6.3-.9-42.1-10.4-48-14.4-3.7-2.4-14.3-8-16.9-9.7a10.7 10.7 0 0 1-4.1-5.4c-.3-1 .1-8.6.4-12.3l.6-5 1.4-9.6 1-8 .3-4.3-.4-7.7-1-10.8v-13.8l.7-10 1.1-7.7 1.8-8 2.8-9.5 3.3-9.3a78 78 0 0 1-2.5-20.8 1112.2 1112.2 0 0 1 .6-14.1c-.1-.7 2.1-10.2 3.3-15l1-3.8-.1-.8c-1.4-8.3-1.5-14-1.9-15.4a78 78 0 0 1 .4-10.9l2-6.7.4-2-.4-1.5a67.6 67.6 0 0 1-7.3-27l-.2-7.7.5-5.4.3-1.5.4-3.9.7-5 .2-2.2-.2-.4-.3-6-1-3.1-.3-4-.7-7.6-1.5-8.3-.8-4.2-1.4-9.2-.4-4.3L172 279l-2.2-14.6a545 545 0 0 1-1.7-8.5c-.1-1-2-2.1-3-2.6 0 .6-.6 1.5-1.7 2-1.2.7-2.4 1.3-2.7 2.2l-.8 4.7a15 15 0 0 1-2.5 4.1 16.4 16.4 0 0 0-2.6 6.3l-.3 2.4v1.3l-1.4 1.1-.3.3-6 14.5c-.7 2.3-1.3 1.8-1.9 1.5l-10.5-3.1-9-3-18.3-6-20-6.8-13-4.8c-2.1-1-7-3-9.4-3.8-2.5-.8-3-1.3-2.8-1.4Z"}),s&&e.jsxs(e.Fragment,{children:[e.jsx("path",{fill:s,d:"m153 277.8-5.8 14.5c-1 2.8-2.5 1.4-4.6.7l-2-.5-7.8-2.4-15.6-5-19-6.5-16-5.7-12-4.4-5.5-2.2c-3.5-1.1-3.1-1.2-1.9-4l1.8-4.9 3.2-9.3c-1.1-1.9 0-3.1.8-3.5l.2-.7.5-2 4.3-10.3 2.4-6 2.6-6.2.8-2.6 1.7-4.1v-.4l.3-2.6.6-3.4 1-3.5 1-3.8c.1-.9 2-5.6 3-7.8l.7-1.5.7-2 .9-3.6 3.4-12.6 2.4-8.6 2.7-11.2 3.5-9.6 3.6-9.4 3-6 2-4.1 3.6-5.8 2.2-4.3 3-4.4 3.2-3.9 1.7-1.9 3.6-3.6 3-2.9a109.3 109.3 0 0 1 13.3-11.2l1.2-.8a79.3 79.3 0 0 1 18-9l11.4-4.2 4-1.4 6.3-2.7 3.3-1.4 2.8-1.2 4-1.6 3.9-2.1 10.1-5 4.8-2.4 5.7-3.2 13.8-7.7c1.5-.8 4.7-2.7 6-3a8.5 8.5 0 0 0 3-1.8c3.4-2.5 4.5-4.8 6-5.3.4-.4 2-1.6 5.2-3.2-4.4 3.3-3.2 11-2.1 14.6a77 77 0 0 0 8.7 18.8l-.6.4-3.9 2-9 5-6.6 3.7-10 3.2c-4.3.8-13.2 2.4-14.4 2.8-1.2.3-10.2 4-14.5 5.8l-11.8 5.6-8.8 3.2-12 3.4-19 8.7c-5.8 1.4-19.3 14.2-25.3 20.4L122 128l.3.4 6.6 16.6 10.5 22.6 6.2 10.8c2.9 3 8.7 9.7 9.1 11.7.5 2 4.3 5.1 6.1 6.5.2.8.8 3.1 1.7 5.4-3.2 4.8-.4 10.6 1.4 12.9l1 4.6.3 6.5-.5 1c-1.4 1.4-.3 4 .4 5l.1 3c.5 1.4 1.3 4.2.8 5.2s0 2.7.3 3.4v4.9c-3.1.5-2 3.7-1 5.2-.5.7-1.8 2.2-3.2 2.7-1.4.5-1.8 3.6-1.8 5.2a9 9 0 0 1-2.7 4.7c-1.8 1.6-2.8 7.4-3 10.1l-1.6 1.5ZM403.8 31.1l-1.6-.7c1.2 1 2 2.2 2.8 4 1.8 2.8.6 8-.7 12.2a78 78 0 0 1-7.6 17l.5.2 3.3 1.5 5.4 3.3 5.9 3 7.2 3 8.2 2.2c.7.2 3.3 1 8.4 2 5.5.1 21.1 8 28.2 11.8l14 4.5a517 517 0 0 1 23.8 9.3c6.3.5 24.7 17 33.1 25.2l-4.6 11.6-8.2 19.3-3.8 9-5.2 8.6c-2.2 3.2-7.3 10.2-9.4 12.4-1.3-.3-5.6 4.4-7.6 6.7.3 2 .6 6.7-1.4 9.1-2 2.5-1.8 6.9-1.4 8.7.3.8.5 3-1 5.3-1.4 2.4-1 4-.5 4.5-.2.8-.7 2.5-1.4 3.4-.8.8-.4 3.3 0 4.5l.1 3-.1 2.2c-.2.6-.6 2.6-1.1 6.2 3.6 3.3 1.3 5.7-.3 6.5l2.2.3 1.3 2.7 1.5 3.8 1.1 2.3 2.7 7.1 1.6 4.8.3 2.1v1.6l1.9 1.9 4 8.9 1.8 4.5c.5 4 5.5 3.6 8 3l5.9-1.1 7.3-1.7 5.2-1.2 7.3-2.1 8.3-2.7 7.5-2.5 9.8-3.6 8-3 6.3-2.8 3.4-1.6 3-1.3 2.5-1.6 1-.8c1.9-1 2-2.1 1.6-2.9l-.6-1.7-1-2.7-1.6-4.2-1.4-4-.5-1.4-.1-.7v-1.2c.7-1-.4-2.5-1-3v-.2l-1-2-2.4-6-3.3-8.3-2.3-6a3896.4 3896.4 0 0 0-3.1-8.4l-2.2-7.1-1.5-5.7-2.5-8.9-1-3.1-1.2-4.5-2-8.2-2.2-9.3-2.8-11.4-2.6-9.1-.9-3c0-.3-.6-1.5-1-2l-2.5-5.6-3-6.6-5.7-11.3-2.5-4.3-2.3-3.3-.7-.7-4.3-5-3-3.8a73 73 0 0 0-4.2-3.8c-1.1-2-7.6-7-10.8-9.4-6.2-5-23.4-12.8-34-16.7l-11-4-16-7.9-20.1-10-7.1-3.8-2.4-1.5-13-7.3-2.6-3.4-5-3Z"}),e.jsx("path",{fill: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.4 1-3.5 1-3.8c.1-.9 2-5.6 3-7.8l.7-1.5.7-2 .9-3.6 3.4-12.6 2.4-8.6 2.7-11.2 3.5-9.6 3.6-9.4 3-6 2-4.1 3.6-5.8 2.2-4.3 3-4.4 3.2-3.9 1.7-1.9 3.6-3.6 3-2.9a109.3 109.3 0 0 1 13.3-11.2l1.2-.8a79.3 79.3 0 0 1 18-9l11.4-4.2 4-1.4 6.3-2.7 3.3-1.4 2.8-1.2 4-1.6 3.9-2.1 10.1-5 4.8-2.4 5.7-3.2 13.8-7.7c1.5-.8 4.7-2.7 6-3a8.5 8.5 0 0 0 3-1.8c3.4-2.5 4.5-4.8 6-5.3.4-.4 2-1.6 5.2-3.2-4.4 3.3-3.2 11-2.1 14.6a77 77 0 0 0 8.7 18.8l-.6.4-3.9 2-9 5-6.6 3.7-10 3.2c-4.3.8-13.2 2.4-14.4 2.8-1.2.3-10.2 4-14.5 5.8l-11.8 5.6-8.8 3.2-12 3.4-19 8.7c-5.8 1.4-19.3 14.2-25.3 20.4L122 128l.3.4 6.6 16.6 10.5 22.6 6.2 10.8c2.9 3 8.7 9.7 9.1 11.7.5 2 4.3 5.1 6.1 6.5.2.8.8 3.1 1.7 5.4-3.2 4.8-.4 10.6 1.4 12.9l1 4.6.3 6.5-.5 1c-1.4 1.4-.3 4 .4 5l.1 3c.5 1.4 1.3 4.2.8 5.2s0 2.7.3 3.4v4.9c-3.1.5-2 3.7-1 5.2-.5.7-1.8 2.2-3.2 2.7-1.4.5-1.8 3.6-1.8 5.2a9 9 0 0 1-2.7 4.7c-1.8 1.6-2.8 7.4-3 10.1l-1.6 1.5ZM403.8 31.1l-1.6-.7c1.2 1 2 2.2 2.8 4 1.8 2.8.6 8-.7 12.2a78 78 0 0 1-7.6 17l.5.2 3.3 1.5 5.4 3.3 5.9 3 7.2 3 8.2 2.2c.7.2 3.3 1 8.4 2 5.5.1 21.1 8 28.2 11.8l14 4.5a517 517 0 0 1 23.8 9.3c6.3.5 24.7 17 33.1 25.2l-4.6 11.6-8.2 19.3-3.8 9-5.2 8.6c-2.2 3.2-7.3 10.2-9.4 12.4-1.3-.3-5.6 4.4-7.6 6.7.3 2 .6 6.7-1.4 9.1-2 2.5-1.8 6.9-1.4 8.7.3.8.5 3-1 5.3-1.4 2.4-1 4-.5 4.5-.2.8-.7 2.5-1.4 3.4-.8.8-.4 3.3 0 4.5l.1 3-.1 2.2c-.2.6-.6 2.6-1.1 6.2 3.6 3.3 1.3 5.7-.3 6.5l2.2.3 1.3 2.7 1.5 3.8 1.1 2.3 2.7 7.1 1.6 4.8.3 2.1v1.6l1.9 1.9 4 8.9 1.8 4.5c.5 4 5.5 3.6 8 3l5.9-1.1 7.3-1.7 5.2-1.2 7.3-2.1 8.3-2.7 7.5-2.5 9.8-3.6 8-3 6.3-2.8 3.4-1.6 3-1.3 2.5-1.6 1-.8c1.9-1 2-2.1 1.6-2.9l-.6-1.7-1-2.7-1.6-4.2-1.4-4-.5-1.4-.1-.7v-1.2c.7-1-.4-2.5-1-3v-.2l-1-2-2.4-6-3.3-8.3-2.3-6a3896.4 3896.4 0 0 0-3.1-8.4l-2.2-7.1-1.5-5.7-2.5-8.9-1-3.1-1.2-4.5-2-8.2-2.2-9.3-2.8-11.4-2.6-9.1-.9-3c0-.3-.6-1.5-1-2l-2.5-5.6-3-6.6-5.7-11.3-2.5-4.3-2.3-3.3-.7-.7-4.3-5-3-3.8a73 73 0 0 0-4.2-3.8c-1.1-2-7.6-7-10.8-9.4-6.2-5-23.4-12.8-34-16.7l-11-4-16-7.9-20.1-10-7.1-3.8-2.4-1.5-13-7.3-2.6-3.4-5-3Z"})}),e.jsx("path",{fill:i,fillRule:"evenodd",d:"m262.9 19.6-3.7 3.8-3.5 3.3-2.7 2.1c-2 1.6-5 5.7-1 17.1 4 9.8 5.2 12 5.3 11.9 1.4 2.5 4.4 7.9 5.9 9.1l6 7.8 15 14.6 10.5 8.7 12.6 11.3 8.3 6.2 7.6.6 17 .8 9.2-6.6 7-5.6 10.3-9 7-5.7 5.3-5.2 3.6-3.6 3.4-3.4 4.2-5 4-5.3 2.7-4C403.5 53 407 40 406 37.3c0-1.3-.9-4.6-3.9-7.2A129 129 0 0 1 391.2 20c-.8-1.1-4.2-4.3-7.3-6a52 52 0 0 0-15.3-3.9L353.5 9l-10.2-.4-15.4-.4H301.6c-4.6.2-14.6.6-17.2 1.2l-3.4.6c-3.2.5-6.9 1-8.4 2l-1.4.8c-1.5.7-2.8 1.4-5 3.7l-3.3 3.2Zm4.3 14 1.9 5.5 4.6 8.2 5 6.7 5.3 6.6 11 10.7 10.8 9.8 12.8 11.7 7.4 7 3 3 15-13.3 16.7-15.7 6.7-6.2 6-6.6a104.1 104.1 0 0 0 13.8-19.6c1-1.9 1.8-4.5 2-5.6 2.7-7.9 1.4-13.8-1.5-17.8-4-5.2-14.9-6.6-18.5-7.1h-.7c-13.8-1.9-39.8-2-46-1.9-9-.2-28.1.2-32.5.7-.6 0-1.2 0-1.9.2-6.8.6-19.9 1.9-22.6 10.6a22.6 22.6 0 0 0 .9 10.3l.8 2.9Z"}),e.jsx("path",{fill: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:ge.shadow,alt:"","aria-hidden":!0}),e.jsx("img",{src:"https://widgets.sir.sportradar.com/assets/media/highlight.b1ac6c3e.png",className:ge.highlight,alt:"","aria-hidden":!0})]})}function fe({name:t,jersey:a,size:n="regular"}){return e.jsxs("div",{className:`oli-font ${de.team} ${de[n]}`,children:[a!=null&&a.base?e.jsx(aa,{jersey:a,className:`${de.logo}`}):e.jsx(q.default,{variant:"circular",className:`${de.logo} ${de.skeleton}`}),e.jsx("span",{className:de.name,children:t})]})}function na(t,a,{enabled:n=!0,threshold:i=60,cooldownMs:s=500}={}){const o=b.useRef(0),d=b.useRef(0);b.useEffect(()=>{if(!n)return;const p=t.current;if(!p)return;const x=u=>{const c=a.current;if(!c||!c.go)return;const{deltaX:m,deltaY:h}=u;if(Math.abs(m)<=Math.abs(h))return;u.preventDefault(),o.current+=m;const w=Date.now();if(w-d.current<s||Math.abs(o.current)<i)return;const _=o.current>0?">":"<";o.current=0,d.current=w,c.go(_)};return p.addEventListener("wheel",x,{passive:!1}),()=>{p.removeEventListener("wheel",x),o.current=0}},[n,i,s,t,a])}const oa="oraculo__OraculoCarousel-module__gradientOverlay___xYDfc",ia="oraculo__OraculoCarousel-module__right___KwpOE",sa="oraculo__OraculoCarousel-module__left___n3WQu",ra="oraculo__OraculoCarousel-module__svg___0mGuX",ue={gradientOverlay:oa,right:ia,left:sa,svg:ra},la=He.Splide,ca=He.SplideSlide,ae=b.forwardRef(({items:t=[],renderItem:a,perPage:n=1,gap:i="0px",breakpoints:s,options:o={},className:d="",onMove:p,useIndexAsKey:x=!1,enableHorizontalWheel:u=!0,showRightGradient:c=!1},m)=>{const h=b.useRef(null),w=b.useRef(null),_=b.useRef(t.length),M=b.useRef(null),v=b.useRef(null);na(w,h,{enabled:u}),b.useImperativeHandle(m,()=>({next:()=>{var C;return(C=h.current)==null?void 0:C.go(">")},prev:()=>{var C;return(C=h.current)==null?void 0:C.go("<")},go:C=>{var L;return(L=h.current)==null?void 0:L.go(C)}}));const I=C=>{var g;const L=C.Components.Slides,P=C.Components.Controller,j=C.root.querySelector(".splide__track"),T=(g=j==null?void 0:j.clientWidth)!=null?g:0,F=P.getIndex(),f=L.getLength();let r=0,l=F;for(let y=F;y<f;y++){const k=L.getAt(y);if(!k||(r+=k.slide.offsetWidth,r>T))break;l=y}return{visibleStart:F,visibleEnd:l}},S=C=>{const L=C.root.querySelector(".splide__track"),P=C.root.querySelector(".splide__list");return!L||!P?!1:P.scrollWidth>L.clientWidth+1},O=b.useCallback(C=>{var l,g;const P=C.Components.Slides.getLength();if(!S(C)){p==null||p({index:0,isStart:!0,isEnd:!0,total:P,visibleStart:0,visibleEnd:P-1});return}const{visibleStart:j,visibleEnd:T}=I(C),F=j===0,f=T===P-1;c&&((l=M.current)==null||l.style.setProperty("--gradient-opacity",F?"0":"1"),(g=v.current)==null||g.style.setProperty("--gradient-opacity",f?"0":"1"));const r=C.Components.Controller.getIndex();p==null||p({index:r,isStart:F,isEnd:f,total:P,visibleStart:j,visibleEnd:T})},[p]);re.default.useEffect(()=>{var P;const C=(P=h.current)==null?void 0:P.splide;if(!C)return;const L=_.current!==t.length;_.current=t.length,L&&requestAnimationFrame(()=>{C.refresh(),O(C)})},[t.length,O]);const E=b.useCallback(()=>{var L;const C=(L=h.current)==null?void 0:L.splide;C&&(C.go(0,!1),O(C))},[O]),B=b.useCallback(C=>{O(C)},[O]),R={type:"slide",trimSpace:!1,drag:!0,pagination:!1,arrows:!1,rewind:!1,focus:"start",autoWidth:!1,perPage:n,gap:i,breakpoints:s,...o,...u?{wheel:!1}:{}};return e.jsxs("div",{ref:w,className:d,style:{width:"100%",position:"relative"},children:[e.jsx(la,{ref:h,options:R,onMove:O,onMounted:B,onResize:E,children:t.map((C,L)=>{var P;return e.jsx(ca,{children:a(C,L)},x?L:(P=C.id)!=null?P:L)})}),c&&e.jsxs(e.Fragment,{children:[e.jsx("div",{ref:M,className:`${ue.gradientOverlay} ${ue.left}`,style:{"--gradient-opacity":"0"},children:e.jsxs("svg",{className:ue.svg,viewBox:"0 0 152 184",preserveAspectRatio:"none",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{d:"M0 0H152V184H0V0Z",fill:"url(#paint_left)"}),e.jsx("defs",{children:e.jsxs("linearGradient",{id:"paint_left",x1:"0",y1:"92",x2:"152",y2:"92",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{offset:"0.59737",stopColor:"#121212",stopOpacity:"0"}),e.jsx("stop",{offset:"1",stopColor:"#121212"})]})})]})}),e.jsx("div",{ref:v,className:`${ue.gradientOverlay} ${ue.right}`,style:{"--gradient-opacity":"1"},children:e.jsxs("svg",{className:ue.svg,viewBox:"0 0 152 184",preserveAspectRatio:"none",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{d:"M0 0H152V184H0V0Z",fill:"url(#paint_right)"}),e.jsx("defs",{children:e.jsxs("linearGradient",{id:"paint_right",x1:"0",y1:"92",x2:"152",y2:"92",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{offset:"0.59737",stopColor:"#121212",stopOpacity:"0"}),e.jsx("stop",{offset:"1",stopColor:"#121212"})]})})]})})]})]})}),pe=({imageUrl:t,onClick:a,size:n="sm",fillParent:i=!1})=>{const s=n==="lg"?{w:280,h:352}:{w:152,h:168},o=p=>{p.stopPropagation(),a==null||a()},d=i?{width:"100%",height:"100%"}:{width:`${s.w}px`,height:`${s.h}px`};return e.jsxs(N.default,{onClick:a,role:"button",sx:{position:"relative",borderRadius:"12px",overflow:"hidden",boxSizing:"border-box",transition:"transform .15s ease, box-shadow .15s ease",...d,"&:hover":{transform:"translateY(-2px)",boxShadow:8,cursor:"pointer"},"&:hover .oraculo-game-card-overlay":{opacity:1},"&:hover .oraculo-game-card-btn":{opacity:1,transform:"translate(-50%, -50%) scale(1)",pointerEvents:"auto"}},children:[e.jsx("img",{src:t,alt:"Juego de casino",loading:"lazy",style:{width:"100%",height:"100%",objectFit:"cover",display:"block",borderRadius:"inherit"}}),e.jsx(N.default,{className:"oraculo-game-card-overlay",sx:{position:"absolute",inset:0,backgroundColor:"rgba(0, 0, 0, 0.45)",opacity:0,transition:"opacity .15s ease",pointerEvents:"none",zIndex:1}}),e.jsx(N.default,{className:"oraculo-game-card-btn",sx:{position:"absolute",top:"50%",left:"50%",zIndex:2,transform:"translate(-50%, -50%) scale(0.95)",opacity:0,transition:"opacity .15s ease, transform .15s ease",pointerEvents:"none"},children:e.jsx(D,{variant:"primary",size:"md",onClick:o,children:"Jugar"})})]})};function Qe({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,h,w,_;const o=(M,v)=>{var I,S,O,E;return{xs:(S=(I=s.xs)==null?void 0:I[M])!=null?S:v,md:(E=(O=s.md)==null?void 0:O[M])!=null?E:v}},d=o("w",186),p=o("h",264),x=o("r",22.6),u=o("font",64),c={xs:Math.round(((h=(m=s.xs)==null?void 0:m.font)!=null?h:64)*.28),md:Math.round(((_=(w=s.md)==null?void 0:w.font)!=null?_:64)*.28)};return e.jsxs(N.default,{sx:{position:"relative",width:"100%",maxWidth:{xs:`${d.xs}px`,md:`${d.md}px`},aspectRatio:{xs:`${d.xs}/${p.xs}`,md:`${d.md}/${p.md}`},borderRadius:{xs:`${x.xs}px`,md:`${x.md}px`},boxSizing:"border-box",overflow:"visible",pb:{xs:`${c.xs}px`,md:`${c.md}px`},"&::before":{content:'""',position:"absolute",inset:0,borderRadius:"inherit",pointerEvents:"none",zIndex:2,background:"linear-gradient(21.29deg, #0B0D1B -1.16%, rgba(255,255,255,0) 51.92%, rgba(255,255,255,0) 127.62%)",backgroundBlendMode:"multiply"}},children:[e.jsx(N.default,{sx:{position:"absolute",inset:0,borderRadius:"inherit",overflow:"hidden"},children:i?e.jsx(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(pe,{imageUrl:t,onClick:n,size:"lg",fillParent:!0})}),e.jsx(N.default,{component:"span",sx:{position:"absolute",left:8,bottom:{xs:`-${c.xs}px`,md:`-${c.md}px`},fontFamily:'"secondary", sans-serif',fontSize:{xs:`${u.xs}px`,md:`${u.md}px`},lineHeight:1,color:"#3CC666",WebkitTextStroke:"1px #9ee86e",zIndex:3,userSelect:"none"},children:a})]})}const et=({logo:t,provider:a,providerName:n,machine:i,onClick:s})=>{var o;return e.jsxs(N.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(N.default,{component:"img",src:t,alt:`Juego ${i!=null?i:""}`,sx:{position:"absolute",inset:0,width:"100%",height:"100%",objectFit:"cover",display:"block"}}),e.jsx(N.default,{className:"orc-live-provider-label",sx:{position:"absolute",left:"50%",top:{xs:"75%",md:"80%"},transform:"translate(-50%, -50%)",zIndex:3,opacity:0,transition:"opacity .25s ease",pointerEvents:"none"},children:e.jsx(Q.default,{sx:{color:"#fff",fontWeight:700,fontSize:{xs:11,md:14},textTransform:"capitalize"},children:(o=a!=null?a:n)!=null?o:""})})]})},Oe=12,Ce=({r:t=16})=>e.jsx(N.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)"}}})}),Ne=({items:t,layout:a="grid",onClick:n,loading:i=!1,gridSkeletonCount:s=4})=>{var o,d;if(a==="mosaic"){const p=t[0],x=t.slice(1,5);return e.jsxs(N.default,{sx:{display:"grid",gridTemplateRows:{xs:"repeat(2, 112px)",md:"repeat(2, 168px)"},gridTemplateColumns:{xs:"184px",md:"280px"},gridAutoFlow:"column",gridAutoColumns:{xs:"104px",md:"152px"},columnGap:`${Oe}px`,rowGap:`${Oe}px`,alignItems:"stretch",justifyItems:"stretch"},children:[e.jsx(N.default,{sx:{width:{xs:184,md:280},height:{xs:234,md:352},gridRow:"1 / span 2",overflow:"hidden",borderRadius:2},children:i?e.jsx(Ce,{}):p&&e.jsx(pe,{imageUrl:`https://olimpo.bet${(d=(o=p.background)!=null?o:p.imageUrl)!=null?d:""}`,size:"lg",fillParent:!0,onClick:()=>n==null?void 0:n(p,0)})}),(i?Array.from({length:4}):x).map((u,c)=>{var m,h;return e.jsx(N.default,{sx:{width:{xs:104,md:152},height:{xs:112,md:168},overflow:"hidden",borderRadius:2},children:i?e.jsx(Ce,{}):e.jsx(pe,{imageUrl:`https://olimpo.bet${(h=(m=u.background)!=null?m:u.imageUrl)!=null?h:""}`,size:"sm",fillParent:!0,onClick:()=>n==null?void 0:n(u,c+1)})},i?`sk-${c}`:u.id)})]})}return e.jsx(N.default,{sx:{display:"grid",gridTemplateColumns:{xs:"repeat(2, 104px)",md:"repeat(2, 152px)"},gridTemplateRows:{xs:"repeat(2, 112px)",md:"repeat(2, 168px)"},gap:`${Oe}px`,gridAutoFlow:"column"},children:(i?Array.from({length:s}):t).map((p,x)=>{var u,c,m;return e.jsx(N.default,{sx:{overflow:"hidden",borderRadius:2},children:i?e.jsx(Ce,{}):e.jsx(pe,{imageUrl:`https://olimpo.bet${(c=(u=p.background)!=null?u:p.imageUrl)!=null?c:""}`,size:"sm",fillParent:!0,onClick:()=>n==null?void 0:n(p,x)})},i?`sk-${x}`:(m=p.id)!=null?m:x)})})},Te=({title:t,amount:a,subtitle:n,buttonText:i,onButtonClick:s,backgroundImage:o,alt:d,className:p="",variant:x="small"})=>{const u=a?a.slice(0,2):"",c=a?a.slice(2):"",m=x==="large";return e.jsxs(N.default,{className:p,sx:{position:"relative",width:"100%",maxWidth:{xs:328,md:m?618:456},mx:"auto"},children:[o&&e.jsx(N.default,{sx:{position:"relative",width:"100%",aspectRatio:{xs:"328 / 188",md:m?"618 / 346":"456 / 272"},borderRadius:"14px",overflow:"hidden"},children:e.jsx(N.default,{component:"img",src:o,alt:d!=null?d:"Fondo promocional",sx:{width:"100%",height:"100%",objectFit:"cover",objectPosition:{xs:"50% 0%",md:"45% 0%"},display:"block"}})}),e.jsx(N.default,{sx:{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"flex-end",color:"#e7f8ff",textAlign:"center",pl:"14%",pr:{xs:"14%",lg:"15%"}},children:e.jsxs(N.default,{sx:{maxWidth:"60%",display:"flex",flexDirection:"column",alignItems:"center"},children:[t&&e.jsx(Q.default,{sx:{fontSize:{xs:12,md:20},fontWeight:400,color:"#e7f8ff"},children:t}),a&&e.jsxs(N.default,{component:"p",sx:{fontFamily:'"secondary", sans-serif',lineHeight:{xs:.9,lg:.87},m:"4px 0",background:"linear-gradient(175deg, #EDC421 -12.56%, #FFFABF 17.99%, #EDC421 49.74%)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",WebkitTextStroke:"0.5px #fff8c1",filter:"drop-shadow(0px 4px 0px #8D4406) drop-shadow(0px 4px 4px rgba(28, 28, 28, 0.4))",display:"flex",alignItems:"baseline",justifyContent:"center"},children:[e.jsx(N.default,{component:"span",sx:{fontSize:{xs:35,md:48},mr:.5},children:u}),e.jsx(N.default,{component:"span",sx:{fontSize:{xs:52,md:77}},children:c})]}),n&&e.jsx(Q.default,{sx:{pb:"20px",fontSize:14,fontWeight:600,color:"#e7f8ff"},children:n}),i&&e.jsx(D,{onClick:s,children:i})]})})]})},tt=({text:t,buttonLabel:a="Conoce más",onClick:n,imgAlt:i="Club Olimpo",imgSrcMobile:s,imgSrcDesktopBg:o,imgSrcDesktopLogo:d})=>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:[d&&e.jsx("img",{src:d,alt:`${i} logo`,className:"orc-co-logoImg"}),e.jsx("p",{className:"orc-co-captionDesktop",children:t}),e.jsx(D,{onClick:n,variant:"primary",size:"md",children:a})]})]}),e.jsxs("div",{className:"orc-co-bottom",children:[e.jsx("p",{className:"orc-co-caption",children:t}),e.jsx(D,{onClick:n,variant:"primary",size:"md",children:a})]})]}),da="oraculo__OraculoEventCombinadasCard-module__card___ulQeY",ua="oraculo__OraculoEventCombinadasCard-module__combinadas___Gxrld",ma="oraculo__OraculoEventCombinadasCard-module__combinadasScroll___47cZl",pa="oraculo__OraculoEventCombinadasCard-module__apuestaItem___YnYMy",fa="oraculo__OraculoEventCombinadasCard-module__lineContainer___G5rbU",ga="oraculo__OraculoEventCombinadasCard-module__circle___eehm-",ha="oraculo__OraculoEventCombinadasCard-module__line___Eb2pK",ba="oraculo__OraculoEventCombinadasCard-module__apuestaText___b5s7S",xa="oraculo__OraculoEventCombinadasCard-module__cuotaTotal___Lohvu",X={card:da,combinadas:ua,combinadasScroll:ma,apuestaItem:pa,lineContainer:fa,circle:ga,line:ha,apuestaText:ba,cuotaTotal:xa};function Re(t){const a=Array.isArray(t)?t:[t];sessionStorage.setItem("landingOutcomes",JSON.stringify(a)),window.location.href="/deportes#in-play"}function va(){window.location.href="/deportes#in-play"}function _a(){window.location.href="/deportes#sports-hub/football"}function ya(){window.location.href="/deportes#specials"}async function at(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 nt(t,a=250){const[n,i]=b.useState(t);return b.useEffect(()=>{const s=setTimeout(()=>i(t),a);return()=>clearTimeout(s)},[t,a]),n}const ot=b.createContext(void 0),ve=({children:t,docId:a})=>{const n=re.default.useMemo(()=>({docId:a}),[a]);return e.jsx(ot.Provider,{value:n,children:t})},K=()=>{const t=b.useContext(ot);if(!t)throw new Error("useDocId debe usarse dentro de DocIdProvider");return t.docId};function it({coupon:t}){var x;const a=H.useCaptureInteraction(),n=K();function i(u){var h,w;const c=[],m=Array.from(new Map(((h=u==null?void 0:u.events)!=null?h:[]).filter(Boolean).map(_=>[_.id,_])).values());return m.forEach(_=>{var S;const M=(S=_.betoffers)!=null?S:[],v=_.homeName,I=_.awayName;M.forEach(O=>{var C,L,P,j,T,F,f;if(!((C=O==null?void 0:O.outcomes)!=null&&C.length))return;const E=O.outcomes[0];if(!E)return;let B="";const R=E!=null&&E.line?E.line/1e3:"";["Más de","Mas de","Over"].includes(E.label)?(B=`Más de ${R}`,E.participant&&(B=`${E.participant} - ${B}`)):["Menos de","Menos","Under"].includes(E.label)?(B=`Menos de ${R}`,E.participant&&(B=`${E.participant} - ${B}`)):["Sí","No"].includes(E.label)?(B=E.label,E.participant&&(B=`${E.participant} - ${B}`)):["1X","12","X2"].includes(E.label)?(E.label==="1X"&&(B=`${v} o Empate`),E.label==="12"&&(B=`${v} o ${I}`),E.label==="X2"&&(B=`${I} o Empate`)):(B=(P=(L=E.participant)!=null?L:E.label)!=null?P:"",R!==""&&B===E.label&&(B=`${E.label} ${R}`)),c.push({id:E.id,value:B,label:(T=(j=O.criterion)==null?void 0:j.label)!=null?T:"",odds:(F=E.odds)!=null?F:0,position:(f=E.position)!=null?f:0,eventId:_.id})})}),{outcomes:c.sort((_,M)=>_.position-M.position),total:(((w=u==null?void 0:u.combinadoTotal)!=null?w:0)/1e3).toFixed(2),events:m}}const s=(u,c)=>{const m=Array.isArray(u)?u:[u],h=Array.from(new Set(o.outcomes.map(M=>{var I;const v=p.get(Number(M.eventId));return(I=v==null?void 0:v.name)!=null?I:""}))).filter(Boolean),w=h.length>0?h.join(" + "):JSON.stringify(m),_=c?`${w} - Cuota: ${c}`:w;a({element:"evento_semana_outcome",label:`Landing: ${n} - OraculoEventCombinadasCard - Click: ${_}`,target:"/deportes#in-play",event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{section:"OraculoEventCombinadasCard",outcomes:_}}),Re(u)};if(!((x=t==null?void 0:t.events)!=null&&x.length))return null;const o=i(t),d=o.outcomes.reduce((u,c)=>(u[c.eventId]||(u[c.eventId]=[]),u[c.eventId].push(c),u),{}),p=new Map(o.events.map(u=>[u.id,u]));return e.jsxs("div",{className:X.card,children:[e.jsx("div",{className:X.combinadas,children:e.jsx("div",{className:X.combinadasScroll,children:e.jsx(z.default,{direction:"column",spacing:1.5,useFlexGap:!0,children:Object.entries(d).reverse().map(([u,c])=>{const m=p.get(Number(u));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"}),c.map((h,w)=>e.jsxs("div",{className:X.apuestaItem,children:[e.jsxs("div",{className:X.lineContainer,children:[e.jsx("div",{className:X.circle}),w<c.length-1&&e.jsx("div",{className:X.line})]}),e.jsxs("div",{className:X.apuestaText,children:[e.jsx("strong",{children:h.value})," | ",h.label]})]},`${u}-${w}`))]},u):null})})})}),e.jsxs("button",{onClick:()=>s(o.outcomes.map(u=>u.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 wa({children:t,onClick:a,href:n,target:i,rel:s,type:o="button",disabled:d=!1,variant:p="primary",size:x,fullWidth:u=!1,fullHeight:c=!1,className:m="",ariaLabel:h,leftIcon:w,rightIcon:_,iconOnly:M}){const v=!!t&&t!==!0,O=(!!w?1:0)+(!!_?1:0)==1,E=M!=null?M:O&&!v,B=[Y["orc-btn"],Y[`orc-btn--${p}`],x?Y[`orc-btn--${x}`]:"",u?Y["orc-btn--full"]:"",c?Y["orc-btn--fullHeight"]:"",E?Y["orc-btn--iconOnly"]:"",m].filter(Boolean).join(" "),R=e.jsxs(e.Fragment,{children:[w&&e.jsx("span",{className:Y["orc-btn__icon"],children:w}),!E&&e.jsx("span",{className:Y["orc-btn__label"],children:t}),_&&e.jsx("span",{className:Y["orc-btn__icon"],children:_})]}),C=d?!0:void 0;return n?e.jsx(U.Link,{href:n,target:i,rel:s,"aria-label":h,"aria-disabled":C,tabIndex:C?-1:void 0,className:B,onClick:C?L=>L.preventDefault():a,children:R}):e.jsx("button",{type:o,onClick:a,disabled:!!C,"aria-label":h,className:B,children:R})}const Sa="oraculo__OraculoEventEnVivoCard-module__cardWrapper___6b-cT",ja="oraculo__OraculoEventEnVivoCard-module__customButtonLabel___QRhk7",Oa="oraculo__OraculoEventEnVivoCard-module__customButtonDisabled___jwioF",be={cardWrapper:Sa,customButtonLabel:ja,customButtonDisabled:Oa},Ae={base:"FFFFFF",sleeve:"FFFFFF",number:"000000",real:!1,type:"short_sleeves"},Pe={base:"000000",sleeve:"000000",number:"FFFFFF",real:!1,type:"short_sleeves"},_e=(t,a,n="player")=>{var s,o;if(t===void 0)return null;if(t===null)return a==="home"?Ae:Pe;const i=(o=(s=t==null?void 0:t.jerseys)==null?void 0:s[a])==null?void 0:o[n];return i||(a==="home"?Ae:Pe)};function st({event:t,liveData:a,betOffers:n,jersey:i}){var p,x,u,c,m,h,w,_,M,v,I;const s=n==null?void 0:n.find(S=>{var O;return((O=S.betOfferType)==null?void 0:O.id)===2}),o={englishLabel:"",type:"",betOfferId:0,changedDate:"",oddsFractional:"",oddsAmerican:"",status:"INACTIVE",cashOutStatus:"SUSPENDED"},d=[{...o,id:-1,label:"1",odds:void 0},{...o,id:-2,label:"X",odds:void 0},{...o,id:-3,label:"2",odds:void 0}];return e.jsx("div",{className:be.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(Ye,{title:(u=(x=(p=t==null?void 0:t.path)==null?void 0:p[0])==null?void 0:x.name)!=null?u:"",subtitle:(c=t==null?void 0:t.group)!=null?c:"",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(fe,{name:t==null?void 0:t.homeName,jersey:_e(i,"home")}),e.jsx(Be,{text:((w=(h=a==null?void 0:a.score)==null?void 0:h.home)!=null?w:0)+":"+((M=(_=a==null?void 0:a.score)==null?void 0:_.away)!=null?M:0),name:"En vivo"}),e.jsx(fe,{name:t==null?void 0:t.awayName,jersey:_e(i,"away")})]})})]}),e.jsxs(z.default,{direction:"column",spacing:1,useFlexGap:!0,children:[e.jsx(J,{spacing:1,children:((v=s==null?void 0:s.outcomes)!=null?v:d).map((S,O)=>e.jsx($e,{text:S.label.toUpperCase()},O))}),e.jsx(J,{spacing:2,children:((I=s==null?void 0:s.outcomes)!=null?I:d).map((S,O)=>e.jsx(wa,{variant:"primary",disabled:S.odds==null||(s==null?void 0:s.cashOutStatus)=="SUSPENDED",onClick:()=>{Re(S.id)},className:be.customButtonDisabled,children:e.jsx("span",{className:be.customButtonLabel,children:S.odds===void 0?"":(S.odds/1e3).toFixed(2)})},O))})]})]})})}const Ca="oraculo__OraculoEventDate-module__date___xhIlh",Ea={date:Ca};function Ia({text:t}){return e.jsx("div",{className:`oli-font ${Ea.date}`,children:t})}const Ta="oraculo__OraculoEventSemanaCard-module__cardContainer___4JuDe",ka="oraculo__OraculoEventSemanaCard-module__cardBackground___vfalD",$a="oraculo__OraculoEventSemanaCard-module__jugadas___W8b7H",Ma="oraculo__OraculoEventSemanaCard-module__equipos___G5hLn",se={cardContainer:Ta,cardBackground:ka,jugadas:$a,equipos:Ma};function rt({event:t,jersey:a}){var d,p,x,u,c,m,h;const n=H.useCaptureInteraction(),i=K();function s(w){const _=new Date(w),M=_.toLocaleDateString("es-ES",{weekday:"short"}).toUpperCase(),v=_.getDate().toString().padStart(2,"0"),I=(_.getMonth()+1).toString().padStart(2,"0");let S=_.toLocaleTimeString("es-PE",{hour:"numeric",minute:"2-digit",hour12:!0}).toUpperCase();return S=S.replace(/\./g,"").replace(/A\s*M/i,"AM").replace(/P\s*M/i,"PM"),`${M} ${v}/${I} | ${S}`}const o=(w,_)=>{const M=`${t.homeName} vs ${t.awayName}`,v=_?(_/1e3).toFixed(2):"",I=v?`${M} - Cuota: ${v}`:M;n({element:"evento_semana_outcome",label:`Landing: ${i} - OraculoEventSemanaCard - Click: ${I}`,target:"/deportes#in-play",event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{section:"OraculoEventSemanaCard",outcomes:I}}),Re(w)};return e.jsxs("div",{className:se.cardContainer,children:[e.jsx(Me,{title:(d=t==null?void 0:t.group)!=null?d:""}),e.jsx("div",{className:se.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:se.equipos,children:[e.jsx(fe,{name:t.homeName,size:"compact",jersey:_e(a,"home")}),e.jsx(Be,{text:"vs.",name:"",size:"small"}),e.jsx(fe,{name:t.awayName,size:"compact",jersey:_e(a,"away")})]}),e.jsx(Ia,{text:s(t.start)})]}),e.jsxs(z.default,{direction:"column",spacing:{xs:.5,md:1},useFlexGap:!0,children:[e.jsx(J,{spacing:1,children:((u=(x=(p=t==null?void 0:t.outcome)==null?void 0:p[0])==null?void 0:x.outcomes)!=null?u:[]).map((w,_)=>e.jsx($e,{text:w.label.toUpperCase()},_))}),e.jsx("div",{className:se.jugadas,children:e.jsx(J,{spacing:1,children:((h=(m=(c=t==null?void 0:t.outcome)==null?void 0:c[0])==null?void 0:m.outcomes)!=null?h:[]).map((w,_)=>e.jsx(D,{variant:"primary",fullHeight:!0,onClick:()=>{o(w.id,w.odds)},children:(w.odds/1e3).toFixed(2)},_))})})]})]})})]})}function lt({items:t,title:a="Destacados",iconUrl:n,onViewMore:i,className:s=""}){const o=b.useRef(null),[d,p]=b.useState({isStart:!0,isEnd:!1}),x=H.useCaptureInteraction(),u=K(),c=!t||t.length===0,m=()=>{var v;x({element:"destacados_carousel_prev",label:`Landing: ${u} - OraculoSeccionDestacados - Anterior`,target:"carousel",event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{section:"OraculoSeccionDestacados"}}),(v=o.current)==null||v.prev()},h=()=>{var v;x({element:"destacados_carousel_next",label:`Landing: ${u} - OraculoSeccionDestacados - Siguiente`,target:"carousel",event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{section:"OraculoSeccionDestacados"}}),(v=o.current)==null||v.next()},w=()=>{x({element:"destacados_view_more",label:`Landing: ${u} - OraculoSeccionDestacados - Ver más`,target:"https://www.olimpo.bet/promociones",event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{section:"OraculoSeccionDestacados"}}),typeof globalThis!="undefined"&&globalThis.location&&globalThis.location.assign("https://www.olimpo.bet/promociones")},_=v=>{if(!v)return;const S=`https://www.olimpo.bet/promociones/${encodeURIComponent(v)}`;x({element:"destacados_card",label:`Landing: ${u} - OraculoSeccionDestacados - Click: ${String(v)}`,target:S,event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{section:"OraculoSeccionDestacados",promotion:String(v)}}),typeof globalThis!="undefined"&&globalThis.location&&globalThis.location.assign(S)},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,paddingLeft:16,paddingRight:16},children:[e.jsx(te,{title:a,iconUrl:n,size:"md"}),e.jsxs("div",{style:{display:"flex",gap:8},children:[e.jsx(D,{ariaLabel:"Anterior",variant:"secondary",iconOnly:!0,leftIcon:e.jsx(oe.ChevronLeftRounded,{}),onClick:m,disabled:d.isStart||c}),e.jsx(D,{ariaLabel:"Siguiente",variant:"secondary",iconOnly:!0,rightIcon:e.jsx(oe.ChevronRightRounded,{}),onClick:h,disabled:d.isEnd||c})]}),e.jsx(D,{variant:"secondary",onClick:w,children:"Ver más"})]}),e.jsx(ae,{ref:o,items:t,perPage:void 0,gap:"16px",enableHorizontalWheel:!0,showRightGradient:!0,options:{autoWidth:!0,trimSpace:"move"},breakpoints:{768:{perPage:2,focus:"start",padding:{left:"24px",right:"24px"}},1024:{perPage:2.5,focus:"start",padding:{left:"24px",right:"24px"}}},renderItem:v=>e.jsx("div",{style:{textAlign:"center",marginTop:16,cursor:"pointer"},onClick:()=>_(v.promotion),children:e.jsx("img",{src:`https://olimpo.bet${v.image!==""?v.image:v.summary_image}`,alt:v.title,style:{width:"100%",height:typeof window!="undefined"&&window.innerWidth<768?"80px":"137px",borderRadius:8,display:"block",objectFit:"cover"}})},`${v.title}-${v.image}`),onMove:({isStart:v,isEnd:I})=>{p({isStart:v,isEnd:I}),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:v,isEnd:I},tags:{section:"OraculoSeccionDestacados"}})}})]})}const xe="__ORACULO_EXTRAS__";function ct(){const t=globalThis;return t[xe]||(t[xe]={}),t[xe]}function Ba(t){ct().extras=t}function ie(t){var a;return(a=ct().extras)==null?void 0:a[t]}function Na(){delete globalThis[xe]}function Le({items:t,title:a="Top Juegos",iconUrl:n,onCardClick:i}){const s=H.useCaptureInteraction(),o=K(),d=b.useMemo(()=>(t!=null?t:[]).map((c,m)=>{var h;return{...c,orden:(h=c.orden)!=null?h:m+1,_originalIndex:m}}).sort((c,m)=>c.orden!=null&&m.orden!=null?c.orden-m.orden:c._originalIndex-m._originalIndex),[t]),p=!t||t.length===0,x=p?Array.from({length:6}):d.slice(0,6),u=c=>{s({element:"top_juegos_card",label:`Landing: ${o} - OraculoSeccionTopJuegos - Open game: ${String(c.machine||"unknown")}`,target:String(c.machine||"unknown"),event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{game_name:String(c.machine||"unknown"),section:"OraculoSeccionTopJuegos"}});const m=ie("showIframe"),h=ie("loadMachine");m==null||m(),requestAnimationFrame(()=>{h==null||h(c,!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(N.default,{sx:{display:"grid",gridTemplateColumns:{xs:"repeat(3, minmax(0, 1fr))",md:"repeat(6, minmax(0, 1fr))"},gap:{xs:1.5,md:2},justifyItems:"center",width:"100%"},children:x.map((c,m)=>{var h,w;return e.jsx(Qe,{imageUrl:p?"":c.background?`https://olimpo.bet${c.background}`:`https://olimpo.bet${(h=c.logo)!=null?h:""}`,orden:p?m+1:c.orden,loading:p,onClick:p?void 0:()=>{i==null||i(c),u(c)}},p?`sk-${m}`:(w=c.machine)!=null?w:`${m}`)})})]})})}const Ra=(t,a)=>{var n,i;return(i=(n=t.orden)!=null?n:t.machine)!=null?i:a},dt=({items:t,title:a="Casino en vivo",subtitle:n="Disfruta la emoción en tus juegos favoritos y gana en tiempo real.",backgroundMobileUrl:i="",onCardClick:s,backgroundDesktopUrl:o="",onViewMore:d,className:p})=>{const x=H.useCaptureInteraction(),u=K(),c=h=>{x({element:"live_casino_card",label:`Landing: ${u} - OraculoSeccionCasinoEnVivo - Open game: ${String(h.machine||"unknown")}`,target:String(h.machine||"unknown"),event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{game_name:String(h.machine||"unknown"),provider:h.provider||"unknown",section:"OraculoSeccionCasinoEnVivo"}});const w=ie("showIframe"),_=ie("loadMachine");if(!_){if(s){s(h);return}console.warn("[OraculoSeccionCasinoEnVivo] No existe loadMachine en extras ni onCardClick. No se puede abrir el juego.",{machine:h==null?void 0:h.machine,provider:h==null?void 0:h.provider});return}w==null||w(),typeof window!="undefined"&&window.scrollTo({top:0,behavior:"smooth"}),requestAnimationFrame(()=>{_==null||_(h,!1,"casino_en_vivo")})},m=()=>{x({element:"casino_en_vivo_view_more",label:`Landing: ${u} - 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&&(d?d():globalThis.location.assign("https://www.olimpo.bet/casino-en-vivo"))};return e.jsxs(N.default,{className:p,sx:{position:"relative",color:"white",overflow:"hidden"},children:[e.jsx(N.default,{sx:{position:"absolute",inset:0,mt:{xs:0,md:4},backgroundImage:{xs:`
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),U=require("@mui/material"),b=require("react"),St=require("@mui/material/Skeleton"),He=require("@splidejs/react-splide"),jt=require("@mui/material/Box"),Ct=require("@mui/material/Typography"),Ot=require("@mui/material/Stack"),H=require("@olimpo/capture-client"),oe=require("@mui/icons-material"),Et=require("@mui/icons-material/ChevronLeftRounded"),It=require("@mui/icons-material/ChevronRightRounded"),Tt=require("@mui/material/useMediaQuery"),Se=require("@mui/material/styles"),kt=require("@mui/material/CssBaseline"),Fe=require("firebase/firestore"),ee=t=>t&&t.__esModule?t:{default:t},re=ee(b),q=ee(St),N=ee(jt),Q=ee(Ct),z=ee(Ot),Ke=ee(Et),Ze=ee(It),$t=ee(Tt),Mt=ee(kt);function D({children:t,onClick:a,href:n,target:o,rel:s,type:i="button",disabled:d=!1,variant:f="primary",size:x,fullWidth:m=!1,fullHeight:c=!1,className:p="",ariaLabel:u,leftIcon:v,rightIcon:_,iconOnly:$}){const O=!!t&&t!==!0,S=(!!v?1:0)+(!!_?1:0)==1,C=$!=null?$:S&&!O,B=["orc-btn",f==="secondary"?"orc-btn--secondary":f==="tertiary"?"orc-btn--tertiary":"orc-btn--primary",x?`orc-btn--${x}`:"",m?"orc-btn--full":"",c?"orc-btn--fullHeight":"",C?"orc-btn--iconOnly":"",p].filter(Boolean).join(" "),R=e.jsxs(e.Fragment,{children:[v&&e.jsx("span",{className:"orc-btn__icon",children:v}),!C&&e.jsx("span",{className:"orc-btn__label",children:t}),_&&e.jsx("span",{className:"orc-btn__icon",children:_})]}),j=d?!0:void 0;return n?e.jsx(U.Link,{href:n,target:o,rel:s,"aria-label":u,"aria-disabled":j,tabIndex:j?-1:void 0,className:B,onClick:j?L=>L.preventDefault():a,children:R}):e.jsx("button",{type:i,onClick:a,disabled:!!j,"aria-label":u,className:B,children:R})}function te({title:t,iconUrl:a,size:n="md",className:o=""}){const i=["orc-section-title",n?`orc-section-title--${n}`:"",o].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 ke=({total:t,active:a,onSelect:n,className:o="",durationMs:s=5e3})=>{if(t<=1)return null;const i=["orc-dots",o].filter(Boolean).join(" "),[d,f]=b.useState(0);return b.useEffect(()=>{f(x=>x+1)},[a,s]),e.jsx("div",{className:i,role:"tablist","aria-label":"Carousel pagination",children:Array.from({length:t}).map((x,m)=>{const c=m===a;return e.jsx("span",{className:"orc-dots__cell",children:e.jsx("button",{type:"button",role:"tab","aria-selected":c,"aria-label":`Ir al slide ${m+1}`,className:"orc-dots__dot"+(c?" orc-dots__dot--active":""),style:c?{"--dot-progress-ms":`${s}ms`}:void 0,onClick:()=>{c&&f(p=>p+1),n==null||n(m)}},c?`a-${m}-${d}`:`i-${m}`)},m)})})};function J({children:t,minWidth:a=32,spacing:n=2,justify:o="stretch",columns:s=null}){const i=s||`repeat(auto-fit, minmax(${a}px, 1fr))`,d=typeof n=="number"?`${n*8}px`:n;return e.jsx("div",{style:{display:"grid",gridTemplateColumns:i,justifyItems:o,gap:d,height:"inherit"},children:t})}function Ie({src:t,alt:a}){return e.jsx(U.Box,{sx:{position:"relative",width:{xs:65,sm:80,md:120,lg:160},height:{xs:48,md:96},display:"inline-block"},children:e.jsx(U.Box,{component:"img",src:t,alt:a,sx:{position:"absolute",top:0,left:0,width:"100%",height:"100%",objectFit:"contain"}})})}const Bt="oraculo__OraculoEventTitle-module__contenedor___rg1vw",Nt="oraculo__OraculoEventTitle-module__flexGroup___jMLFO",Rt="oraculo__OraculoEventTitle-module__subtitle___TmHna",je={contenedor:Bt,flexGroup:Nt,subtitle:Rt};function Lt({title:t,subtitle:a}){return e.jsxs("div",{className:je.contenedor,children:[e.jsx("span",{style:{fontWeight:700,fontSize:"12px",lineHeight:"16px"},children:t}),a&&e.jsxs("div",{className:je.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:je.subtitle,children:a}),e.jsx("div",{})]})]})}function Je({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:"42px",height:"16px",textAlign:"center"},children:t})}function Xe({live:t,time:a}){return e.jsxs("div",{className:"oli-font",style:{display:"flex",alignItems:"center",gap:"8px"},children:[t&&e.jsx(Je,{text:"En vivo"}),a&&e.jsx("span",{style:{fontSize:"14px",fontWeight:400,lineHeight:"18px",paddingTop:"4px"},children:a})]})}function Ye({title:t,subtitle:a,live:n=!1,time:o=""}){return e.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",color:"#FFFFFF"},children:[e.jsx(Lt,{title:t,subtitle:a}),e.jsx(Xe,{live:n,time:o})]})}const Ft="oraculo__OraculoEventLabel-module__label___c64Xw",At={label:Ft};function $e({text:t}){return e.jsx("span",{className:At.label,children:t})}const Pt="oraculo__OraculoEventLeague-module__container___rdk4F",qt={container:Pt};function Me({title:t}){return e.jsx("div",{className:qt.container,children:t.toUpperCase()})}const zt="oraculo__OraculoEventScore-module__scoreWrapper___fWwEr",Ut="oraculo__OraculoEventScore-module__name___r4uL6",Vt="oraculo__OraculoEventScore-module__score___Xl03M",Dt="oraculo__OraculoEventScore-module__normal___cCNFz",Wt="oraculo__OraculoEventScore-module__small___fVt8E",ce={scoreWrapper:zt,name:Ut,score:Vt,normal:Dt,small:Wt};function Be({text:t,name:a,size:n="normal"}){return e.jsxs("div",{className:`${ce.scoreWrapper} ${ce[n]}`,children:[e.jsx("div",{className:`${ce.score} ${ce[n]}`,children:t}),a&&e.jsx("span",{className:`${ce.name} ${ce[n]}`,children:a})]})}const Gt="oraculo__OraculoEventTeamInfo-module__team___UfpUs",Ht="oraculo__OraculoEventTeamInfo-module__regular___ag826",Kt="oraculo__OraculoEventTeamInfo-module__compact___RCNOs",Zt="oraculo__OraculoEventTeamInfo-module__logo___fKCl3",Jt="oraculo__OraculoEventTeamInfo-module__name___4ikm-",Xt="oraculo__OraculoEventTeamInfo-module__skeleton___Yfaxh",de={team:Gt,regular:Ht,compact:Kt,logo:Zt,name:Jt,skeleton:Xt},Yt="oraculo__OraculoTeamPolo-module__polo___BisRg",Qt="oraculo__OraculoTeamPolo-module__svgWrapper___HRKNX",ea="oraculo__OraculoTeamPolo-module__shadow___-3DXb",ta="oraculo__OraculoTeamPolo-module__highlight___1etm7",ge={polo:Yt,svgWrapper:Qt,shadow:ea,highlight:ta};function aa({jersey:t,className:a}){const n=`#${t.base}`,o=t.sleeve?`#${t.sleeve}`:n,s=t.stripes?`#${t.stripes}`:null,i=t.sleevelong?`#${t.sleevelong}`:null;return e.jsxs("div",{className:`${ge.polo} ${a!=null?a:""}`,children:[e.jsx("div",{className:ge.svgWrapper,children:e.jsxs("svg",{viewBox:"0 0 656 656","aria-hidden":!0,children:[e.jsx("path",{fill:n,d:"m62 265 5.8-17c-.4-.7-.6-1.5-.4-2 .2-.7.8-1.2 1.2-1.4l1.2-4 9-21.6c.2-1 1-3.5 2.4-6.4a69.9 69.9 0 0 1 4.1-17.2l2.9-7 2.9-11.4c1.7-5.8 5.2-18.4 5.8-22 .6-3.6 6.8-19 9.8-26.2.4-.9 2.4-4.7 7.2-12.8 5.4-12.2 23.5-27.2 32-33.1l6.6-3.7 7.9-3.6 17.3-6.2 16.6-7.1L215 52c7-4.1 21.8-12.5 24.1-13.2 2.3-.8 5-3.5 6-4.7 1.2-1.2 4.2-3.8 6.6-4.7 2.3-1 8.2-6.8 10.8-9.6 1.6-1.4 3.8-4.7 9.2-7.5 5.3-2.9 20.4-4 27.2-4.3h25.6l16.7.3 14.1.6 10.3.7 9.5 1.7c6.4.6 12.6 4.3 15.4 8l2.7 3.1 8.9 8 1.8.7 4.9 3 2.7 3.5c4.2 2.2 13.1 7.1 15.2 8.7 2 1.6 30.1 15.4 44 22 8 3.2 39 12.3 55.3 30 5.2 4.3 7 7.8 11.4 12.4 5.1 5.3 15.1 29 16.9 32 1.4 2.6 5 17 6.8 24l4.8 20.5 8.4 29 8.9 22.7 2.3 5.4.6 1.5c.5.6 1.4 2 1 2.6-.2.6 0 2 .2 2.7l1 2.6 2 5.8 2.2 5.9c.3 1.3-4.3 4-6.6 5.2l-11.1 5-12.6 4.7-15 5-14.6 4.6-10.9 2.4a66 66 0 0 1-8.6 1.4c-3.4.3-4.7-.4-4.9-.8l-5-12.3-1.9-3.8-1.8-1.6.1-.8v-1l-.4-1.8-1.3-4.1-3.3-9-1.3-2-2.2-5.7-2.5-.3-1 .8v2l-2.7 13.1-8.7 58-.9 6.4-.2 7.9c0 3-1 16-1.7 18.3l-2.5 9-.2 7.6-.3 8.7-.3 7.5.3 4 .5 15c.3 1.9-.6 7-1.1 9.3-.6 2.4-1.6 7.5-1.4 8.8.3 1.4-.2 4.4-.5 5.8l-1.3 8.9c-.2 1.4-.8 5-1.3 7.2.7 1.6 4.7 14.6 5.9 17.8 1.2 3.3 4.8 19.4 5 20.7.3 1 1.1 7.8 1.5 11 .1 2.5.3 8 .2 10 0 2-.8 6.6-1.1 8.6-.2 1.7-.7 5.5-1.2 7s-1.2 8.5-1.4 11.8A81.1 81.1 0 0 1 477 552l.3 7.1.2 6.5 1.4 17.7.5 6 1.5 7.7.4 4.6c.3 2.1.7 7 .7 10.1.3 3-2.5 6-4 7 0 .2-1.2 1-4.6 3-6.4 5-26.3 11.6-35.5 14.3a379.2 379.2 0 0 1-58.6 11.2c-2.3.8-27 2.2-39 2.7-8.3 0-27 0-34.5-.4-11.5.9-47.4-4.8-63.9-7.7-6.3-.9-42.1-10.4-48-14.4-3.7-2.4-14.3-8-16.9-9.7a10.7 10.7 0 0 1-4.1-5.4c-.3-1 .1-8.6.4-12.3l.6-5 1.4-9.6 1-8 .3-4.3-.4-7.7-1-10.8v-13.8l.7-10 1.1-7.7 1.8-8 2.8-9.5 3.3-9.3a78 78 0 0 1-2.5-20.8 1112.2 1112.2 0 0 1 .6-14.1c-.1-.7 2.1-10.2 3.3-15l1-3.8-.1-.8c-1.4-8.3-1.5-14-1.9-15.4a78 78 0 0 1 .4-10.9l2-6.7.4-2-.4-1.5a67.6 67.6 0 0 1-7.3-27l-.2-7.7.5-5.4.3-1.5.4-3.9.7-5 .2-2.2-.2-.4-.3-6-1-3.1-.3-4-.7-7.6-1.5-8.3-.8-4.2-1.4-9.2-.4-4.3L172 279l-2.2-14.6a545 545 0 0 1-1.7-8.5c-.1-1-2-2.1-3-2.6 0 .6-.6 1.5-1.7 2-1.2.7-2.4 1.3-2.7 2.2l-.8 4.7a15 15 0 0 1-2.5 4.1 16.4 16.4 0 0 0-2.6 6.3l-.3 2.4v1.3l-1.4 1.1-.3.3-6 14.5c-.7 2.3-1.3 1.8-1.9 1.5l-10.5-3.1-9-3-18.3-6-20-6.8-13-4.8c-2.1-1-7-3-9.4-3.8-2.5-.8-3-1.3-2.8-1.4Z"}),s&&e.jsxs(e.Fragment,{children:[e.jsx("path",{fill:s,d:"m153 277.8-5.8 14.5c-1 2.8-2.5 1.4-4.6.7l-2-.5-7.8-2.4-15.6-5-19-6.5-16-5.7-12-4.4-5.5-2.2c-3.5-1.1-3.1-1.2-1.9-4l1.8-4.9 3.2-9.3c-1.1-1.9 0-3.1.8-3.5l.2-.7.5-2 4.3-10.3 2.4-6 2.6-6.2.8-2.6 1.7-4.1v-.4l.3-2.6.6-3.4 1-3.5 1-3.8c.1-.9 2-5.6 3-7.8l.7-1.5.7-2 .9-3.6 3.4-12.6 2.4-8.6 2.7-11.2 3.5-9.6 3.6-9.4 3-6 2-4.1 3.6-5.8 2.2-4.3 3-4.4 3.2-3.9 1.7-1.9 3.6-3.6 3-2.9a109.3 109.3 0 0 1 13.3-11.2l1.2-.8a79.3 79.3 0 0 1 18-9l11.4-4.2 4-1.4 6.3-2.7 3.3-1.4 2.8-1.2 4-1.6 3.9-2.1 10.1-5 4.8-2.4 5.7-3.2 13.8-7.7c1.5-.8 4.7-2.7 6-3a8.5 8.5 0 0 0 3-1.8c3.4-2.5 4.5-4.8 6-5.3.4-.4 2-1.6 5.2-3.2-4.4 3.3-3.2 11-2.1 14.6a77 77 0 0 0 8.7 18.8l-.6.4-3.9 2-9 5-6.6 3.7-10 3.2c-4.3.8-13.2 2.4-14.4 2.8-1.2.3-10.2 4-14.5 5.8l-11.8 5.6-8.8 3.2-12 3.4-19 8.7c-5.8 1.4-19.3 14.2-25.3 20.4L122 128l.3.4 6.6 16.6 10.5 22.6 6.2 10.8c2.9 3 8.7 9.7 9.1 11.7.5 2 4.3 5.1 6.1 6.5.2.8.8 3.1 1.7 5.4-3.2 4.8-.4 10.6 1.4 12.9l1 4.6.3 6.5-.5 1c-1.4 1.4-.3 4 .4 5l.1 3c.5 1.4 1.3 4.2.8 5.2s0 2.7.3 3.4v4.9c-3.1.5-2 3.7-1 5.2-.5.7-1.8 2.2-3.2 2.7-1.4.5-1.8 3.6-1.8 5.2a9 9 0 0 1-2.7 4.7c-1.8 1.6-2.8 7.4-3 10.1l-1.6 1.5ZM403.8 31.1l-1.6-.7c1.2 1 2 2.2 2.8 4 1.8 2.8.6 8-.7 12.2a78 78 0 0 1-7.6 17l.5.2 3.3 1.5 5.4 3.3 5.9 3 7.2 3 8.2 2.2c.7.2 3.3 1 8.4 2 5.5.1 21.1 8 28.2 11.8l14 4.5a517 517 0 0 1 23.8 9.3c6.3.5 24.7 17 33.1 25.2l-4.6 11.6-8.2 19.3-3.8 9-5.2 8.6c-2.2 3.2-7.3 10.2-9.4 12.4-1.3-.3-5.6 4.4-7.6 6.7.3 2 .6 6.7-1.4 9.1-2 2.5-1.8 6.9-1.4 8.7.3.8.5 3-1 5.3-1.4 2.4-1 4-.5 4.5-.2.8-.7 2.5-1.4 3.4-.8.8-.4 3.3 0 4.5l.1 3-.1 2.2c-.2.6-.6 2.6-1.1 6.2 3.6 3.3 1.3 5.7-.3 6.5l2.2.3 1.3 2.7 1.5 3.8 1.1 2.3 2.7 7.1 1.6 4.8.3 2.1v1.6l1.9 1.9 4 8.9 1.8 4.5c.5 4 5.5 3.6 8 3l5.9-1.1 7.3-1.7 5.2-1.2 7.3-2.1 8.3-2.7 7.5-2.5 9.8-3.6 8-3 6.3-2.8 3.4-1.6 3-1.3 2.5-1.6 1-.8c1.9-1 2-2.1 1.6-2.9l-.6-1.7-1-2.7-1.6-4.2-1.4-4-.5-1.4-.1-.7v-1.2c.7-1-.4-2.5-1-3v-.2l-1-2-2.4-6-3.3-8.3-2.3-6a3896.4 3896.4 0 0 0-3.1-8.4l-2.2-7.1-1.5-5.7-2.5-8.9-1-3.1-1.2-4.5-2-8.2-2.2-9.3-2.8-11.4-2.6-9.1-.9-3c0-.3-.6-1.5-1-2l-2.5-5.6-3-6.6-5.7-11.3-2.5-4.3-2.3-3.3-.7-.7-4.3-5-3-3.8a73 73 0 0 0-4.2-3.8c-1.1-2-7.6-7-10.8-9.4-6.2-5-23.4-12.8-34-16.7l-11-4-16-7.9-20.1-10-7.1-3.8-2.4-1.5-13-7.3-2.6-3.4-5-3Z"}),e.jsx("path",{fill: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"})]}),i&&e.jsx(e.Fragment,{children:e.jsx("path",{fill:i,d:"m153 277.8-5.8 14.5c-1 2.8-2.5 1.4-4.6.7l-2-.5-7.8-2.4-15.6-5-19-6.5-16-5.7-12-4.4-5.5-2.2c-3.5-1.1-3.1-1.2-1.9-4l1.8-4.9 3.2-9.3c-1.1-1.9 0-3.1.8-3.5l.2-.7.5-2 4.3-10.3 2.4-6 2.6-6.2.8-2.6 1.7-4.1v-.4l.3-2.6.6-3.4 1-3.5 1-3.8c.1-.9 2-5.6 3-7.8l.7-1.5.7-2 .9-3.6 3.4-12.6 2.4-8.6 2.7-11.2 3.5-9.6 3.6-9.4 3-6 2-4.1 3.6-5.8 2.2-4.3 3-4.4 3.2-3.9 1.7-1.9 3.6-3.6 3-2.9a109.3 109.3 0 0 1 13.3-11.2l1.2-.8a79.3 79.3 0 0 1 18-9l11.4-4.2 4-1.4 6.3-2.7 3.3-1.4 2.8-1.2 4-1.6 3.9-2.1 10.1-5 4.8-2.4 5.7-3.2 13.8-7.7c1.5-.8 4.7-2.7 6-3a8.5 8.5 0 0 0 3-1.8c3.4-2.5 4.5-4.8 6-5.3.4-.4 2-1.6 5.2-3.2-4.4 3.3-3.2 11-2.1 14.6a77 77 0 0 0 8.7 18.8l-.6.4-3.9 2-9 5-6.6 3.7-10 3.2c-4.3.8-13.2 2.4-14.4 2.8-1.2.3-10.2 4-14.5 5.8l-11.8 5.6-8.8 3.2-12 3.4-19 8.7c-5.8 1.4-19.3 14.2-25.3 20.4L122 128l.3.4 6.6 16.6 10.5 22.6 6.2 10.8c2.9 3 8.7 9.7 9.1 11.7.5 2 4.3 5.1 6.1 6.5.2.8.8 3.1 1.7 5.4-3.2 4.8-.4 10.6 1.4 12.9l1 4.6.3 6.5-.5 1c-1.4 1.4-.3 4 .4 5l.1 3c.5 1.4 1.3 4.2.8 5.2s0 2.7.3 3.4v4.9c-3.1.5-2 3.7-1 5.2-.5.7-1.8 2.2-3.2 2.7-1.4.5-1.8 3.6-1.8 5.2a9 9 0 0 1-2.7 4.7c-1.8 1.6-2.8 7.4-3 10.1l-1.6 1.5ZM403.8 31.1l-1.6-.7c1.2 1 2 2.2 2.8 4 1.8 2.8.6 8-.7 12.2a78 78 0 0 1-7.6 17l.5.2 3.3 1.5 5.4 3.3 5.9 3 7.2 3 8.2 2.2c.7.2 3.3 1 8.4 2 5.5.1 21.1 8 28.2 11.8l14 4.5a517 517 0 0 1 23.8 9.3c6.3.5 24.7 17 33.1 25.2l-4.6 11.6-8.2 19.3-3.8 9-5.2 8.6c-2.2 3.2-7.3 10.2-9.4 12.4-1.3-.3-5.6 4.4-7.6 6.7.3 2 .6 6.7-1.4 9.1-2 2.5-1.8 6.9-1.4 8.7.3.8.5 3-1 5.3-1.4 2.4-1 4-.5 4.5-.2.8-.7 2.5-1.4 3.4-.8.8-.4 3.3 0 4.5l.1 3-.1 2.2c-.2.6-.6 2.6-1.1 6.2 3.6 3.3 1.3 5.7-.3 6.5l2.2.3 1.3 2.7 1.5 3.8 1.1 2.3 2.7 7.1 1.6 4.8.3 2.1v1.6l1.9 1.9 4 8.9 1.8 4.5c.5 4 5.5 3.6 8 3l5.9-1.1 7.3-1.7 5.2-1.2 7.3-2.1 8.3-2.7 7.5-2.5 9.8-3.6 8-3 6.3-2.8 3.4-1.6 3-1.3 2.5-1.6 1-.8c1.9-1 2-2.1 1.6-2.9l-.6-1.7-1-2.7-1.6-4.2-1.4-4-.5-1.4-.1-.7v-1.2c.7-1-.4-2.5-1-3v-.2l-1-2-2.4-6-3.3-8.3-2.3-6a3896.4 3896.4 0 0 0-3.1-8.4l-2.2-7.1-1.5-5.7-2.5-8.9-1-3.1-1.2-4.5-2-8.2-2.2-9.3-2.8-11.4-2.6-9.1-.9-3c0-.3-.6-1.5-1-2l-2.5-5.6-3-6.6-5.7-11.3-2.5-4.3-2.3-3.3-.7-.7-4.3-5-3-3.8a73 73 0 0 0-4.2-3.8c-1.1-2-7.6-7-10.8-9.4-6.2-5-23.4-12.8-34-16.7l-11-4-16-7.9-20.1-10-7.1-3.8-2.4-1.5-13-7.3-2.6-3.4-5-3Z"})}),e.jsx("path",{fill:o,fillRule:"evenodd",d:"m262.9 19.6-3.7 3.8-3.5 3.3-2.7 2.1c-2 1.6-5 5.7-1 17.1 4 9.8 5.2 12 5.3 11.9 1.4 2.5 4.4 7.9 5.9 9.1l6 7.8 15 14.6 10.5 8.7 12.6 11.3 8.3 6.2 7.6.6 17 .8 9.2-6.6 7-5.6 10.3-9 7-5.7 5.3-5.2 3.6-3.6 3.4-3.4 4.2-5 4-5.3 2.7-4C403.5 53 407 40 406 37.3c0-1.3-.9-4.6-3.9-7.2A129 129 0 0 1 391.2 20c-.8-1.1-4.2-4.3-7.3-6a52 52 0 0 0-15.3-3.9L353.5 9l-10.2-.4-15.4-.4H301.6c-4.6.2-14.6.6-17.2 1.2l-3.4.6c-3.2.5-6.9 1-8.4 2l-1.4.8c-1.5.7-2.8 1.4-5 3.7l-3.3 3.2Zm4.3 14 1.9 5.5 4.6 8.2 5 6.7 5.3 6.6 11 10.7 10.8 9.8 12.8 11.7 7.4 7 3 3 15-13.3 16.7-15.7 6.7-6.2 6-6.6a104.1 104.1 0 0 0 13.8-19.6c1-1.9 1.8-4.5 2-5.6 2.7-7.9 1.4-13.8-1.5-17.8-4-5.2-14.9-6.6-18.5-7.1h-.7c-13.8-1.9-39.8-2-46-1.9-9-.2-28.1.2-32.5.7-.6 0-1.2 0-1.9.2-6.8.6-19.9 1.9-22.6 10.6a22.6 22.6 0 0 0 .9 10.3l.8 2.9Z"}),e.jsx("path",{fill:o,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:o,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:ge.shadow,alt:"","aria-hidden":!0}),e.jsx("img",{src:"https://widgets.sir.sportradar.com/assets/media/highlight.b1ac6c3e.png",className:ge.highlight,alt:"","aria-hidden":!0})]})}function fe({name:t,jersey:a,size:n="regular"}){return e.jsxs("div",{className:`oli-font ${de.team} ${de[n]}`,children:[a!=null&&a.base?e.jsx(aa,{jersey:a,className:`${de.logo}`}):e.jsx(q.default,{variant:"circular",className:`${de.logo} ${de.skeleton}`}),e.jsx("span",{className:de.name,children:t})]})}function na(t,a,{enabled:n=!0,threshold:o=60,cooldownMs:s=500}={}){const i=b.useRef(0),d=b.useRef(0);b.useEffect(()=>{if(!n)return;const f=t.current;if(!f)return;const x=m=>{const c=a.current;if(!c||!c.go)return;const{deltaX:p,deltaY:u}=m;if(Math.abs(p)<=Math.abs(u))return;m.preventDefault(),i.current+=p;const v=Date.now();if(v-d.current<s||Math.abs(i.current)<o)return;const _=i.current>0?">":"<";i.current=0,d.current=v,c.go(_)};return f.addEventListener("wheel",x,{passive:!1}),()=>{f.removeEventListener("wheel",x),i.current=0}},[n,o,s,t,a])}const oa="oraculo__OraculoCarousel-module__gradientOverlay___xYDfc",ia="oraculo__OraculoCarousel-module__right___KwpOE",sa="oraculo__OraculoCarousel-module__left___n3WQu",ra="oraculo__OraculoCarousel-module__svg___0mGuX",ue={gradientOverlay:oa,right:ia,left:sa,svg:ra},la=He.Splide,ca=He.SplideSlide,ae=b.forwardRef(({items:t=[],renderItem:a,perPage:n=1,gap:o="0px",breakpoints:s,options:i={},className:d="",onMove:f,useIndexAsKey:x=!1,enableHorizontalWheel:m=!0,showRightGradient:c=!1},p)=>{const u=b.useRef(null),v=b.useRef(null),_=b.useRef(t.length),$=b.useRef(null),O=b.useRef(null);na(v,u,{enabled:m}),b.useImperativeHandle(p,()=>({next:()=>{var j;return(j=u.current)==null?void 0:j.go(">")},prev:()=>{var j;return(j=u.current)==null?void 0:j.go("<")},go:j=>{var L;return(L=u.current)==null?void 0:L.go(j)}}));const M=j=>{var h;const L=j.Components.Slides,P=j.Components.Controller,w=j.root.querySelector(".splide__track"),I=(h=w==null?void 0:w.clientWidth)!=null?h:0,F=P.getIndex(),g=L.getLength();let r=0,l=F;for(let y=F;y<g;y++){const T=L.getAt(y);if(!T||(r+=T.slide.offsetWidth,r>I))break;l=y}return{visibleStart:F,visibleEnd:l}},E=j=>{const L=j.root.querySelector(".splide__track"),P=j.root.querySelector(".splide__list");return!L||!P?!1:P.scrollWidth>L.clientWidth+1},S=b.useCallback(j=>{var l,h;const P=j.Components.Slides.getLength();if(!E(j)){f==null||f({index:0,isStart:!0,isEnd:!0,total:P,visibleStart:0,visibleEnd:P-1});return}const{visibleStart:w,visibleEnd:I}=M(j),F=w===0,g=I===P-1;c&&((l=$.current)==null||l.style.setProperty("--gradient-opacity",F?"0":"1"),(h=O.current)==null||h.style.setProperty("--gradient-opacity",g?"0":"1"));const r=j.Components.Controller.getIndex();f==null||f({index:r,isStart:F,isEnd:g,total:P,visibleStart:w,visibleEnd:I})},[f]);re.default.useEffect(()=>{var P;const j=(P=u.current)==null?void 0:P.splide;if(!j)return;const L=_.current!==t.length;_.current=t.length,L&&requestAnimationFrame(()=>{j.refresh(),S(j)})},[t.length,S]);const C=b.useCallback(()=>{var L;const j=(L=u.current)==null?void 0:L.splide;j&&(j.go(0,!1),S(j))},[S]),B=b.useCallback(j=>{S(j)},[S]),R={type:"slide",trimSpace:!1,drag:!0,pagination:!1,arrows:!1,rewind:!1,focus:"start",autoWidth:!1,perPage:n,gap:o,breakpoints:s,...i,...m?{wheel:!1}:{}};return e.jsxs("div",{ref:v,className:d,style:{width:"100%",position:"relative"},children:[e.jsx(la,{ref:u,options:R,onMove:S,onMounted:B,onResize:C,children:t.map((j,L)=>{var P;return e.jsx(ca,{children:a(j,L)},x?L:(P=j.id)!=null?P:L)})}),c&&e.jsxs(e.Fragment,{children:[e.jsx("div",{ref:$,className:`${ue.gradientOverlay} ${ue.left}`,style:{"--gradient-opacity":"0"},children:e.jsxs("svg",{className:ue.svg,viewBox:"0 0 152 184",preserveAspectRatio:"none",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{d:"M0 0H152V184H0V0Z",fill:"url(#paint_left)"}),e.jsx("defs",{children:e.jsxs("linearGradient",{id:"paint_left",x1:"0",y1:"92",x2:"152",y2:"92",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{offset:"0.59737",stopColor:"#121212",stopOpacity:"0"}),e.jsx("stop",{offset:"1",stopColor:"#121212"})]})})]})}),e.jsx("div",{ref:O,className:`${ue.gradientOverlay} ${ue.right}`,style:{"--gradient-opacity":"1"},children:e.jsxs("svg",{className:ue.svg,viewBox:"0 0 152 184",preserveAspectRatio:"none",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{d:"M0 0H152V184H0V0Z",fill:"url(#paint_right)"}),e.jsx("defs",{children:e.jsxs("linearGradient",{id:"paint_right",x1:"0",y1:"92",x2:"152",y2:"92",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{offset:"0.59737",stopColor:"#121212",stopOpacity:"0"}),e.jsx("stop",{offset:"1",stopColor:"#121212"})]})})]})})]})]})}),pe=({imageUrl:t,onClick:a,size:n="sm",fillParent:o=!1})=>{const s=n==="lg"?{w:280,h:352}:{w:152,h:168},i=f=>{f.stopPropagation(),a==null||a()},d=o?{width:"100%",height:"100%"}:{width:`${s.w}px`,height:`${s.h}px`};return e.jsxs(N.default,{onClick:a,role:"button",sx:{position:"relative",borderRadius:"12px",overflow:"hidden",boxSizing:"border-box",transition:"transform .15s ease, box-shadow .15s ease",...d,"&:hover":{transform:"translateY(-2px)",boxShadow:8,cursor:"pointer"},"&:hover .oraculo-game-card-overlay":{opacity:1},"&:hover .oraculo-game-card-btn":{opacity:1,transform:"translate(-50%, -50%) scale(1)",pointerEvents:"auto"}},children:[e.jsx("img",{src:t,alt:"Juego de casino",loading:"lazy",style:{width:"100%",height:"100%",objectFit:"cover",display:"block",borderRadius:"inherit"}}),e.jsx(N.default,{className:"oraculo-game-card-overlay",sx:{position:"absolute",inset:0,backgroundColor:"rgba(0, 0, 0, 0.45)",opacity:0,transition:"opacity .15s ease",pointerEvents:"none",zIndex:1}}),e.jsx(N.default,{className:"oraculo-game-card-btn",sx:{position:"absolute",top:"50%",left:"50%",zIndex:2,transform:"translate(-50%, -50%) scale(0.95)",opacity:0,transition:"opacity .15s ease, transform .15s ease",pointerEvents:"none"},children:e.jsx(D,{variant:"primary",size:"md",onClick:i,children:"Jugar"})})]})};function Qe({imageUrl:t,orden:a=1,onClick:n,loading:o=!1,sizes:s={xs:{w:104,h:112,r:18,font:48},md:{w:186,h:264,r:22.6,font:64}}}){var p,u,v,_;const i=($,O)=>{var M,E,S,C;return{xs:(E=(M=s.xs)==null?void 0:M[$])!=null?E:O,md:(C=(S=s.md)==null?void 0:S[$])!=null?C:O}},d=i("w",186),f=i("h",264),x=i("r",22.6),m=i("font",64),c={xs:Math.round(((u=(p=s.xs)==null?void 0:p.font)!=null?u:64)*.28),md:Math.round(((_=(v=s.md)==null?void 0:v.font)!=null?_:64)*.28)};return e.jsxs(N.default,{sx:{position:"relative",width:"100%",maxWidth:{xs:`${d.xs}px`,md:`${d.md}px`},aspectRatio:{xs:`${d.xs}/${f.xs}`,md:`${d.md}/${f.md}`},borderRadius:{xs:`${x.xs}px`,md:`${x.md}px`},boxSizing:"border-box",overflow:"visible",pb:{xs:`${c.xs}px`,md:`${c.md}px`},"&::before":{content:'""',position:"absolute",inset:0,borderRadius:"inherit",pointerEvents:"none",zIndex:2,background:"linear-gradient(21.29deg, #0B0D1B -1.16%, rgba(255,255,255,0) 51.92%, rgba(255,255,255,0) 127.62%)",backgroundBlendMode:"multiply"}},children:[e.jsx(N.default,{sx:{position:"absolute",inset:0,borderRadius:"inherit",overflow:"hidden"},children:o?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(pe,{imageUrl:t,onClick:n,size:"lg",fillParent:!0})}),e.jsx(N.default,{component:"span",sx:{position:"absolute",left:8,bottom:{xs:`-${c.xs}px`,md:`-${c.md}px`},fontFamily:'"secondary", sans-serif',fontSize:{xs:`${m.xs}px`,md:`${m.md}px`},lineHeight:1,color:"#3CC666",WebkitTextStroke:"1px #9ee86e",zIndex:3,userSelect:"none"},children:a})]})}const et=({logo:t,provider:a,providerName:n,machine:o,onClick:s})=>{var i;return e.jsxs(N.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(N.default,{component:"img",src:t,alt:`Juego ${o!=null?o:""}`,sx:{position:"absolute",inset:0,width:"100%",height:"100%",objectFit:"cover",display:"block"}}),e.jsx(N.default,{className:"orc-live-provider-label",sx:{position:"absolute",left:"50%",top:{xs:"75%",md:"80%"},transform:"translate(-50%, -50%)",zIndex:3,opacity:0,transition:"opacity .25s ease",pointerEvents:"none"},children:e.jsx(Q.default,{sx:{color:"#fff",fontWeight:700,fontSize:{xs:11,md:14},textTransform:"capitalize"},children:(i=a!=null?a:n)!=null?i:""})})]})},Ce=12,Oe=({r:t=16})=>e.jsx(N.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)"}}})}),Ne=({items:t,layout:a="grid",onClick:n,loading:o=!1,gridSkeletonCount:s=4})=>{var i,d;if(a==="mosaic"){const f=t[0],x=t.slice(1,5);return e.jsxs(N.default,{sx:{display:"grid",gridTemplateRows:{xs:"repeat(2, 112px)",md:"repeat(2, 168px)"},gridTemplateColumns:{xs:"184px",md:"280px"},gridAutoFlow:"column",gridAutoColumns:{xs:"104px",md:"152px"},columnGap:`${Ce}px`,rowGap:`${Ce}px`,alignItems:"stretch",justifyItems:"stretch"},children:[e.jsx(N.default,{sx:{width:{xs:184,md:280},height:{xs:234,md:352},gridRow:"1 / span 2",overflow:"hidden",borderRadius:2},children:o?e.jsx(Oe,{}):f&&e.jsx(pe,{imageUrl:`https://olimpo.bet${(d=(i=f.background)!=null?i:f.imageUrl)!=null?d:""}`,size:"lg",fillParent:!0,onClick:()=>n==null?void 0:n(f,0)})}),(o?Array.from({length:4}):x).map((m,c)=>{var p,u;return e.jsx(N.default,{sx:{width:{xs:104,md:152},height:{xs:112,md:168},overflow:"hidden",borderRadius:2},children:o?e.jsx(Oe,{}):e.jsx(pe,{imageUrl:`https://olimpo.bet${(u=(p=m.background)!=null?p:m.imageUrl)!=null?u:""}`,size:"sm",fillParent:!0,onClick:()=>n==null?void 0:n(m,c+1)})},o?`sk-${c}`:m.id)})]})}return e.jsx(N.default,{sx:{display:"grid",gridTemplateColumns:{xs:"repeat(2, 104px)",md:"repeat(2, 152px)"},gridTemplateRows:{xs:"repeat(2, 112px)",md:"repeat(2, 168px)"},gap:`${Ce}px`,gridAutoFlow:"column"},children:(o?Array.from({length:s}):t).map((f,x)=>{var m,c,p;return e.jsx(N.default,{sx:{overflow:"hidden",borderRadius:2},children:o?e.jsx(Oe,{}):e.jsx(pe,{imageUrl:`https://olimpo.bet${(c=(m=f.background)!=null?m:f.imageUrl)!=null?c:""}`,size:"sm",fillParent:!0,onClick:()=>n==null?void 0:n(f,x)})},o?`sk-${x}`:(p=f.id)!=null?p:x)})})},Te=({title:t,amount:a,subtitle:n,buttonText:o,onButtonClick:s,backgroundImage:i,alt:d,className:f="",variant:x="small"})=>{const m=a?a.slice(0,2):"",c=a?a.slice(2):"",p=x==="large";return e.jsxs(N.default,{className:f,sx:{position:"relative",width:"100%",maxWidth:{xs:328,md:p?618:456},mx:"auto"},children:[i&&e.jsx(N.default,{sx:{position:"relative",width:"100%",aspectRatio:{xs:"328 / 188",md:p?"618 / 346":"456 / 272"},borderRadius:"14px",overflow:"hidden"},children:e.jsx(N.default,{component:"img",src:i,alt:d!=null?d:"Fondo promocional",sx:{width:"100%",height:"100%",objectFit:"cover",objectPosition:{xs:"50% 0%",md:"45% 0%"},display:"block"}})}),e.jsx(N.default,{sx:{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"flex-end",color:"#e7f8ff",textAlign:"center",pl:"14%",pr:{xs:"14%",lg:"15%"}},children:e.jsxs(N.default,{sx:{maxWidth:"60%",display:"flex",flexDirection:"column",alignItems:"center"},children:[t&&e.jsx(Q.default,{sx:{fontSize:{xs:12,md:20},fontWeight:400,color:"#e7f8ff"},children:t}),a&&e.jsxs(N.default,{component:"p",sx:{fontFamily:'"secondary", sans-serif',lineHeight:{xs:.9,lg:.87},m:"4px 0",background:"linear-gradient(175deg, #EDC421 -12.56%, #FFFABF 17.99%, #EDC421 49.74%)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",WebkitTextStroke:"0.5px #fff8c1",filter:"drop-shadow(0px 4px 0px #8D4406) drop-shadow(0px 4px 4px rgba(28, 28, 28, 0.4))",display:"flex",alignItems:"baseline",justifyContent:"center"},children:[e.jsx(N.default,{component:"span",sx:{fontSize:{xs:35,md:48},mr:.5},children:m}),e.jsx(N.default,{component:"span",sx:{fontSize:{xs:52,md:77}},children:c})]}),n&&e.jsx(Q.default,{sx:{pb:"20px",fontSize:14,fontWeight:600,color:"#e7f8ff"},children:n}),o&&e.jsx(D,{onClick:s,children:o})]})})]})},tt=({text:t,buttonLabel:a="Conoce más",onClick:n,imgAlt:o="Club Olimpo",imgSrcMobile:s,imgSrcDesktopBg:i,imgSrcDesktopLogo:d})=>e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"orc-co-bgMobile",children:e.jsx("img",{src:s,alt:o,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:`${o} fondo`,className:"orc-co-bgDesktopImg"})}),e.jsxs("div",{className:"orc-co-desktopContent",children:[d&&e.jsx("img",{src:d,alt:`${o} logo`,className:"orc-co-logoImg"}),e.jsx("p",{className:"orc-co-captionDesktop",children:t}),e.jsx(D,{onClick:n,variant:"primary",size:"md",children:a})]})]}),e.jsxs("div",{className:"orc-co-bottom",children:[e.jsx("p",{className:"orc-co-caption",children:t}),e.jsx(D,{onClick:n,variant:"primary",size:"md",children:a})]})]}),da="oraculo__OraculoEventCombinadasCard-module__card___ulQeY",ua="oraculo__OraculoEventCombinadasCard-module__combinadas___Gxrld",ma="oraculo__OraculoEventCombinadasCard-module__combinadasScroll___47cZl",pa="oraculo__OraculoEventCombinadasCard-module__apuestaItem___YnYMy",fa="oraculo__OraculoEventCombinadasCard-module__lineContainer___G5rbU",ga="oraculo__OraculoEventCombinadasCard-module__circle___eehm-",ha="oraculo__OraculoEventCombinadasCard-module__line___Eb2pK",ba="oraculo__OraculoEventCombinadasCard-module__apuestaText___b5s7S",xa="oraculo__OraculoEventCombinadasCard-module__cuotaTotal___Lohvu",X={card:da,combinadas:ua,combinadasScroll:ma,apuestaItem:pa,lineContainer:fa,circle:ga,line:ha,apuestaText:ba,cuotaTotal:xa};function Re(t){const a=Array.isArray(t)?t:[t];sessionStorage.setItem("landingOutcomes",JSON.stringify(a)),window.location.href="/deportes#in-play"}function va(){window.location.href="/deportes#in-play"}function _a(){window.location.href="/deportes#sports-hub/football"}function ya(){window.location.href="/deportes#specials"}async function at(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 nt(t,a=250){const[n,o]=b.useState(t);return b.useEffect(()=>{const s=setTimeout(()=>o(t),a);return()=>clearTimeout(s)},[t,a]),n}const ot=b.createContext(void 0),ve=({children:t,docId:a})=>{const n=re.default.useMemo(()=>({docId:a}),[a]);return e.jsx(ot.Provider,{value:n,children:t})},K=()=>{const t=b.useContext(ot);if(!t)throw new Error("useDocId debe usarse dentro de DocIdProvider");return t.docId};function it({coupon:t}){var x;const a=H.useCaptureInteraction(),n=K();function o(m){var u,v;const c=[],p=Array.from(new Map(((u=m==null?void 0:m.events)!=null?u:[]).filter(Boolean).map(_=>[_.id,_])).values());return p.forEach(_=>{var E;const $=(E=_.betoffers)!=null?E:[],O=_.homeName,M=_.awayName;$.forEach(S=>{var j,L,P,w,I,F,g;if(!((j=S==null?void 0:S.outcomes)!=null&&j.length))return;const C=S.outcomes[0];if(!C)return;let B="";const R=C!=null&&C.line?C.line/1e3:"";["Más de","Mas de","Over"].includes(C.label)?(B=`Más de ${R}`,C.participant&&(B=`${C.participant} - ${B}`)):["Menos de","Menos","Under"].includes(C.label)?(B=`Menos de ${R}`,C.participant&&(B=`${C.participant} - ${B}`)):["Sí","No"].includes(C.label)?(B=C.label,C.participant&&(B=`${C.participant} - ${B}`)):["1X","12","X2"].includes(C.label)?(C.label==="1X"&&(B=`${O} o Empate`),C.label==="12"&&(B=`${O} o ${M}`),C.label==="X2"&&(B=`${M} o Empate`)):(B=(P=(L=C.participant)!=null?L:C.label)!=null?P:"",R!==""&&B===C.label&&(B=`${C.label} ${R}`)),c.push({id:C.id,value:B,label:(I=(w=S.criterion)==null?void 0:w.label)!=null?I:"",odds:(F=C.odds)!=null?F:0,position:(g=C.position)!=null?g:0,eventId:_.id})})}),{outcomes:c.sort((_,$)=>_.position-$.position),total:Number((v=m==null?void 0:m.combinadoTotal)!=null?v:0).toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2}),events:p}}const s=(m,c)=>{const p=Array.isArray(m)?m:[m],u=Array.from(new Set(i.outcomes.map($=>{var M;const O=f.get(Number($.eventId));return(M=O==null?void 0:O.name)!=null?M:""}))).filter(Boolean),v=u.length>0?u.join(" + "):JSON.stringify(p),_=c?`${v} - Cuota: ${c}`:v;a({element:"evento_semana_outcome",label:`Landing: ${n} - OraculoEventCombinadasCard - Click: ${_}`,target:"/deportes#in-play",event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{section:"OraculoEventCombinadasCard",outcomes:_}}),Re(m)};if(!((x=t==null?void 0:t.events)!=null&&x.length))return null;const i=o(t),d=i.outcomes.reduce((m,c)=>(m[c.eventId]||(m[c.eventId]=[]),m[c.eventId].push(c),m),{}),f=new Map(i.events.map(m=>[m.id,m]));return e.jsxs("div",{className:X.card,children:[e.jsx("div",{className:X.combinadas,children:e.jsx("div",{className:X.combinadasScroll,children:e.jsx(z.default,{direction:"column",spacing:1.5,useFlexGap:!0,children:Object.entries(d).reverse().map(([m,c])=>{const p=f.get(Number(m));return p?e.jsxs(z.default,{direction:"column",spacing:.5,useFlexGap:!0,children:[e.jsx(te,{title:p.name,iconUrl:"/assets/img/home/Combinadas/pelota.png",size:"xs"}),e.jsx("img",{loading:"lazy",src:"/assets/img/home/Combinadas/line.png"}),c.map((u,v)=>e.jsxs("div",{className:X.apuestaItem,children:[e.jsxs("div",{className:X.lineContainer,children:[e.jsx("div",{className:X.circle}),v<c.length-1&&e.jsx("div",{className:X.line})]}),e.jsxs("div",{className:X.apuestaText,children:[e.jsx("strong",{children:u.value})," | ",u.label]})]},`${m}-${v}`))]},m):null})})})}),e.jsxs("button",{onClick:()=>s(i.outcomes.map(m=>m.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 wa({children:t,onClick:a,href:n,target:o,rel:s,type:i="button",disabled:d=!1,variant:f="primary",size:x,fullWidth:m=!1,fullHeight:c=!1,className:p="",ariaLabel:u,leftIcon:v,rightIcon:_,iconOnly:$}){const O=!!t&&t!==!0,S=(!!v?1:0)+(!!_?1:0)==1,C=$!=null?$:S&&!O,B=[Y["orc-btn"],Y[`orc-btn--${f}`],x?Y[`orc-btn--${x}`]:"",m?Y["orc-btn--full"]:"",c?Y["orc-btn--fullHeight"]:"",C?Y["orc-btn--iconOnly"]:"",p].filter(Boolean).join(" "),R=e.jsxs(e.Fragment,{children:[v&&e.jsx("span",{className:Y["orc-btn__icon"],children:v}),!C&&e.jsx("span",{className:Y["orc-btn__label"],children:t}),_&&e.jsx("span",{className:Y["orc-btn__icon"],children:_})]}),j=d?!0:void 0;return n?e.jsx(U.Link,{href:n,target:o,rel:s,"aria-label":u,"aria-disabled":j,tabIndex:j?-1:void 0,className:B,onClick:j?L=>L.preventDefault():a,children:R}):e.jsx("button",{type:i,onClick:a,disabled:!!j,"aria-label":u,className:B,children:R})}const Sa="oraculo__OraculoEventEnVivoCard-module__cardWrapper___6b-cT",ja="oraculo__OraculoEventEnVivoCard-module__customButtonLabel___QRhk7",Ca="oraculo__OraculoEventEnVivoCard-module__customButtonDisabled___jwioF",be={cardWrapper:Sa,customButtonLabel:ja,customButtonDisabled:Ca},Ae={base:"FFFFFF",sleeve:"FFFFFF",number:"000000",real:!1,type:"short_sleeves"},Pe={base:"000000",sleeve:"000000",number:"FFFFFF",real:!1,type:"short_sleeves"},_e=(t,a,n="player")=>{var s,i;if(t===void 0)return null;if(t===null)return a==="home"?Ae:Pe;const o=(i=(s=t==null?void 0:t.jerseys)==null?void 0:s[a])==null?void 0:i[n];return o||(a==="home"?Ae:Pe)};function st({event:t,liveData:a,betOffers:n,jersey:o}){var f,x,m,c,p,u,v,_,$,O,M;const s=n==null?void 0:n.find(E=>{var S;return((S=E.betOfferType)==null?void 0:S.id)===2}),i={englishLabel:"",type:"",betOfferId:0,changedDate:"",oddsFractional:"",oddsAmerican:"",status:"INACTIVE",cashOutStatus:"SUSPENDED"},d=[{...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:be.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(Ye,{title:(m=(x=(f=t==null?void 0:t.path)==null?void 0:f[0])==null?void 0:x.name)!=null?m:"",subtitle:(c=t==null?void 0:t.group)!=null?c:"",live:!0,time:((p=a==null?void 0:a.matchClock)==null?void 0:p.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(fe,{name:t==null?void 0:t.homeName,jersey:_e(o,"home")}),e.jsx(Be,{text:((v=(u=a==null?void 0:a.score)==null?void 0:u.home)!=null?v:0)+":"+(($=(_=a==null?void 0:a.score)==null?void 0:_.away)!=null?$:0),name:"En vivo"}),e.jsx(fe,{name:t==null?void 0:t.awayName,jersey:_e(o,"away")})]})})]}),e.jsxs(z.default,{direction:"column",spacing:1,useFlexGap:!0,children:[e.jsx(J,{spacing:1,children:((O=s==null?void 0:s.outcomes)!=null?O:d).map((E,S)=>e.jsx($e,{text:E.label.toUpperCase()},S))}),e.jsx(J,{spacing:2,children:((M=s==null?void 0:s.outcomes)!=null?M:d).map((E,S)=>e.jsx(wa,{variant:"primary",disabled:E.odds==null||(s==null?void 0:s.cashOutStatus)=="SUSPENDED",onClick:()=>{Re(E.id)},className:be.customButtonDisabled,children:e.jsx("span",{className:be.customButtonLabel,children:E.odds===void 0?"":(E.odds/1e3).toFixed(2)})},S))})]})]})})}const Oa="oraculo__OraculoEventDate-module__date___xhIlh",Ea={date:Oa};function Ia({text:t}){return e.jsx("div",{className:`oli-font ${Ea.date}`,children:t})}const Ta="oraculo__OraculoEventSemanaCard-module__cardContainer___4JuDe",ka="oraculo__OraculoEventSemanaCard-module__cardBackground___vfalD",$a="oraculo__OraculoEventSemanaCard-module__jugadas___W8b7H",Ma="oraculo__OraculoEventSemanaCard-module__equipos___G5hLn",se={cardContainer:Ta,cardBackground:ka,jugadas:$a,equipos:Ma};function rt({event:t,jersey:a}){var d,f,x,m,c,p,u;const n=H.useCaptureInteraction(),o=K();function s(v){const _=new Date(v),$=_.toLocaleDateString("es-ES",{weekday:"short"}).toUpperCase(),O=_.getDate().toString().padStart(2,"0"),M=(_.getMonth()+1).toString().padStart(2,"0");let E=_.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"),`${$} ${O}/${M} | ${E}`}const i=(v,_)=>{const $=`${t.homeName} vs ${t.awayName}`,O=_?(_/1e3).toFixed(2):"",M=O?`${$} - Cuota: ${O}`:$;n({element:"evento_semana_outcome",label:`Landing: ${o} - OraculoEventSemanaCard - Click: ${M}`,target:"/deportes#in-play",event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{section:"OraculoEventSemanaCard",outcomes:M}}),Re(v)};return e.jsxs("div",{className:se.cardContainer,children:[e.jsx(Me,{title:(d=t==null?void 0:t.group)!=null?d:""}),e.jsx("div",{className:se.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:se.equipos,children:[e.jsx(fe,{name:t.homeName,size:"compact",jersey:_e(a,"home")}),e.jsx(Be,{text:"vs.",name:"",size:"small"}),e.jsx(fe,{name:t.awayName,size:"compact",jersey:_e(a,"away")})]}),e.jsx(Ia,{text:s(t.start)})]}),e.jsxs(z.default,{direction:"column",spacing:{xs:.5,md:1},useFlexGap:!0,children:[e.jsx(J,{spacing:1,children:((m=(x=(f=t==null?void 0:t.outcome)==null?void 0:f[0])==null?void 0:x.outcomes)!=null?m:[]).map((v,_)=>e.jsx($e,{text:v.label.toUpperCase()},_))}),e.jsx("div",{className:se.jugadas,children:e.jsx(J,{spacing:1,children:((u=(p=(c=t==null?void 0:t.outcome)==null?void 0:c[0])==null?void 0:p.outcomes)!=null?u:[]).map((v,_)=>e.jsx(D,{variant:"primary",fullHeight:!0,onClick:()=>{i(v.id,v.odds)},children:(v.odds/1e3).toFixed(2)},_))})})]})]})})]})}function lt({items:t,title:a="Destacados",iconUrl:n,onViewMore:o,className:s=""}){const i=b.useRef(null),[d,f]=b.useState({isStart:!0,isEnd:!1}),x=H.useCaptureInteraction(),m=K(),c=!t||t.length===0,p=()=>{var O;x({element:"destacados_carousel_prev",label:`Landing: ${m} - OraculoSeccionDestacados - Anterior`,target:"carousel",event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{section:"OraculoSeccionDestacados"}}),(O=i.current)==null||O.prev()},u=()=>{var O;x({element:"destacados_carousel_next",label:`Landing: ${m} - OraculoSeccionDestacados - Siguiente`,target:"carousel",event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{section:"OraculoSeccionDestacados"}}),(O=i.current)==null||O.next()},v=()=>{x({element:"destacados_view_more",label:`Landing: ${m} - 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")},_=O=>{if(!O)return;const E=`https://www.olimpo.bet/promociones/${encodeURIComponent(O)}`;x({element:"destacados_card",label:`Landing: ${m} - OraculoSeccionDestacados - Click: ${String(O)}`,target:E,event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{section:"OraculoSeccionDestacados",promotion:String(O)}}),typeof globalThis!="undefined"&&globalThis.location&&globalThis.location.assign(E)},$=s||void 0;return e.jsxs("section",{className:$,style:{width:"100%"},children:[e.jsxs("header",{style:{display:"grid",gridTemplateColumns:"1fr auto auto",alignItems:"center",columnGap:12,rowGap:8,marginBottom:16,paddingLeft:16,paddingRight:16},children:[e.jsx(te,{title:a,iconUrl:n,size:"md"}),e.jsxs("div",{style:{display:"flex",gap:8},children:[e.jsx(D,{ariaLabel:"Anterior",variant:"secondary",iconOnly:!0,leftIcon:e.jsx(oe.ChevronLeftRounded,{}),onClick:p,disabled:d.isStart||c}),e.jsx(D,{ariaLabel:"Siguiente",variant:"secondary",iconOnly:!0,rightIcon:e.jsx(oe.ChevronRightRounded,{}),onClick:u,disabled:d.isEnd||c})]}),e.jsx(D,{variant:"secondary",onClick:v,children:"Ver más"})]}),e.jsx(ae,{ref:i,items:t,perPage:void 0,gap:"16px",enableHorizontalWheel:!0,showRightGradient:!0,options:{autoWidth:!0,trimSpace:"move"},breakpoints:{768:{perPage:2,focus:"start",padding:{left:"24px",right:"24px"}},1024:{perPage:2.5,focus:"start",padding:{left:"24px",right:"24px"}}},renderItem:O=>e.jsx("div",{style:{textAlign:"center",marginTop:16,cursor:"pointer"},onClick:()=>_(O.promotion),children:e.jsx("img",{src:`https://olimpo.bet${O.image!==""?O.image:O.summary_image}`,alt:O.title,style:{width:"100%",height:typeof window!="undefined"&&window.innerWidth<768?"80px":"137px",borderRadius:8,display:"block",objectFit:"cover"}})},`${O.title}-${O.image}`),onMove:({isStart:O,isEnd:M})=>{f({isStart:O,isEnd:M}),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:O,isEnd:M},tags:{section:"OraculoSeccionDestacados"}})}})]})}const xe="__ORACULO_EXTRAS__";function ct(){const t=globalThis;return t[xe]||(t[xe]={}),t[xe]}function Ba(t){ct().extras=t}function ie(t){var a;return(a=ct().extras)==null?void 0:a[t]}function Na(){delete globalThis[xe]}function Le({items:t,title:a="Top Juegos",iconUrl:n,onCardClick:o}){const s=H.useCaptureInteraction(),i=K(),d=b.useMemo(()=>(t!=null?t:[]).map((c,p)=>{var u;return{...c,orden:(u=c.orden)!=null?u:p+1,_originalIndex:p}}).sort((c,p)=>c.orden!=null&&p.orden!=null?c.orden-p.orden:c._originalIndex-p._originalIndex),[t]),f=!t||t.length===0,x=f?Array.from({length:6}):d.slice(0,6),m=c=>{s({element:"top_juegos_card",label:`Landing: ${i} - OraculoSeccionTopJuegos - Open game: ${String(c.machine||"unknown")}`,target:String(c.machine||"unknown"),event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{game_name:String(c.machine||"unknown"),section:"OraculoSeccionTopJuegos"}});const p=ie("showIframe"),u=ie("loadMachine");p==null||p(),requestAnimationFrame(()=>{u==null||u(c,!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(N.default,{sx:{display:"grid",gridTemplateColumns:{xs:"repeat(3, minmax(0, 1fr))",md:"repeat(6, minmax(0, 1fr))"},gap:{xs:1.5,md:2},justifyItems:"center",width:"100%"},children:x.map((c,p)=>{var u,v;return e.jsx(Qe,{imageUrl:f?"":c.background?`https://olimpo.bet${c.background}`:`https://olimpo.bet${(u=c.logo)!=null?u:""}`,orden:f?p+1:c.orden,loading:f,onClick:f?void 0:()=>{o==null||o(c),m(c)}},f?`sk-${p}`:(v=c.machine)!=null?v:`${p}`)})})]})})}const Ra=(t,a)=>{var n,o;return(o=(n=t.orden)!=null?n:t.machine)!=null?o:a},dt=({items:t,title:a="Casino en vivo",subtitle:n="Disfruta la emoción en tus juegos favoritos y gana en tiempo real.",backgroundMobileUrl:o="",onCardClick:s,backgroundDesktopUrl:i="",onViewMore:d,className:f})=>{const x=H.useCaptureInteraction(),m=K(),c=u=>{x({element:"live_casino_card",label:`Landing: ${m} - 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 v=ie("showIframe"),_=ie("loadMachine");if(!_){if(s){s(u);return}console.warn("[OraculoSeccionCasinoEnVivo] No existe loadMachine en extras ni onCardClick. No se puede abrir el juego.",{machine:u==null?void 0:u.machine,provider:u==null?void 0:u.provider});return}v==null||v(),typeof window!="undefined"&&window.scrollTo({top:0,behavior:"smooth"}),requestAnimationFrame(()=>{_==null||_(u,!1,"casino_en_vivo")})},p=()=>{x({element:"casino_en_vivo_view_more",label:`Landing: ${m} - 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&&(d?d():globalThis.location.assign("https://www.olimpo.bet/casino-en-vivo"))};return e.jsxs(N.default,{className:f,sx:{position:"relative",color:"white",overflow:"hidden"},children:[e.jsx(N.default,{sx:{position:"absolute",inset:0,mt:{xs:0,md:4},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('${o}')
|
|
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(N.default,{sx:{position:"relative",zIndex:1,maxWidth:1200,height:{xs:"450px",md:"590px"},mx:"auto",px:{xs:2.5,md:6},display:"flex",flexDirection:{xs:"column",md:"row"},alignItems:{xs:"center",md:"center"},justifyContent:"center",gap:{xs:0,md:15},textAlign:{xs:"center",md:"left"}},children:[e.jsxs(z.default,{spacing:3,sx:{maxWidth:{md:280}},children:[e.jsx(Q.default,{variant:"h4",sx:{fontWeight:800,fontSize:{xs:24,md:40},WebkitTextStroke:"0.5px rgba(255, 255, 255, .5)",textShadow:"0 0 2px rgba(255, 255, 255, .95),0 0 4px rgba(255, 255, 255, .6),0 1px 0 #898989"},children:a}),e.jsx(Q.default,{sx:{fontSize:{xs:14,md:18},color:"rgba(255,255,255,0.9)",marginX:{xs:4,md:0},lineHeight:1.5},children:n}),e.jsx(N.default,{sx:{display:{xs:"none",md:"block"}},children:e.jsx(D,{variant:"primary",size:"md",onClick:
|
|
8
|
+
url('${i}')
|
|
9
|
+
`},backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat",zIndex:0}}),e.jsxs(N.default,{sx:{position:"relative",zIndex:1,maxWidth:1200,height:{xs:"450px",md:"590px"},mx:"auto",px:{xs:2.5,md:6},display:"flex",flexDirection:{xs:"column",md:"row"},alignItems:{xs:"center",md:"center"},justifyContent:"center",gap:{xs:0,md:15},textAlign:{xs:"center",md:"left"}},children:[e.jsxs(z.default,{spacing:3,sx:{maxWidth:{md:280}},children:[e.jsx(Q.default,{variant:"h4",sx:{fontWeight:800,fontSize:{xs:24,md:40},WebkitTextStroke:"0.5px rgba(255, 255, 255, .5)",textShadow:"0 0 2px rgba(255, 255, 255, .95),0 0 4px rgba(255, 255, 255, .6),0 1px 0 #898989"},children:a}),e.jsx(Q.default,{sx:{fontSize:{xs:14,md:18},color:"rgba(255,255,255,0.9)",marginX:{xs:4,md:0},lineHeight:1.5},children:n}),e.jsx(N.default,{sx:{display:{xs:"none",md:"block"}},children:e.jsx(D,{variant:"primary",size:"md",onClick:p,children:"Ver más"})})]}),e.jsx(N.default,{sx:{display:"flex",gap:{xs:2,md:3},justifyContent:"center",overflowX:{xs:"auto",md:"visible"},py:{xs:3,md:0},alignItems:"center"},children:(t!=null?t:[]).slice(0,3).map((u,v)=>{var _;return e.jsx(et,{logo:`https://olimpo.bet${u.background?u.background:(_=u.logo)!=null?_:""}`,provider:u.provider,providerName:u.web_name,machine:u.machine,onClick:()=>c(u)},Ra(u,v))})}),e.jsx(N.default,{sx:{display:{xs:"block",md:"none"}},children:e.jsx(D,{variant:"primary",size:"lg",onClick:p,children:"Ver más"})})]})]})},ut=(t,a)=>{var n,o;return(o=(n=t.orden)!=null?n:t.machine)!=null?o:a},La=(t,a=!0,n=1)=>{const o=t.map((d,f)=>{var x;return{id:ut(d,f),imageUrl:(x=d.logo)!=null?x:"",...d.background?{background:d.background}:{}}});if(!o.length)return[];const s=[];let i=0;if(a){const d=Math.min(o.length,1);s.push({id:"mosaic-0",kind:"mosaic",items:o.slice(0,d)}),i=d}for(;i<o.length;){const d=Math.min(i+n,o.length);s.push({id:`grid-${i}`,kind:"grid",items:o.slice(i,d)}),i=d}return s},mt=({items:t,title:a="Casino",iconUrl:n="/assets/img/home/Casino/diamante.svg",onItemClick:o,onViewMore:s,mosaicFirst:i=!0,gridSize:d=1})=>{const f=H.useCaptureInteraction(),x=K(),m=b.useRef(null),[c,p]=b.useState({isStart:!0,isEnd:!1}),u=()=>{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=m.current)==null||E.prev()},v=()=>{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=m.current)==null||E.next()},_=()=>{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")},$=(E=!0,S=4)=>{const C=R=>Array.from({length:R},(j,L)=>({id:`sk-${R}-${L}`,imageUrl:""})),B=[];return E&&B.push({id:"mosaic-loading",kind:"mosaic",items:C(5)}),B.push({id:"grid-loading",kind:"grid",items:C(S)}),B},O=!t||t.length===0,M=O?$(i,d):La(t,i,d);return e.jsx("section",{children:e.jsxs(z.default,{direction:"column",spacing:2,useFlexGap:!0,children:[e.jsxs(N.default,{sx:{display:"grid",gridTemplateColumns:"1fr auto auto",alignItems:"center",columnGap:1.5,rowGap:1,px:{xs:2,sm:0}},children:[e.jsx(te,{title:a,iconUrl:n,size:"md"}),e.jsxs(N.default,{sx:{display:"flex",gap:1,justifyContent:"flex-end"},children:[e.jsx(D,{ariaLabel:"Anterior",variant:"secondary",iconOnly:!0,leftIcon:e.jsx(Ke.default,{}),onClick:u,disabled:c.isStart}),e.jsx(D,{ariaLabel:"Siguiente",variant:"secondary",iconOnly:!0,rightIcon:e.jsx(Ze.default,{}),onClick:v,disabled:c.isEnd})]}),e.jsx(N.default,{sx:{justifySelf:"end"},children:e.jsx(D,{variant:"secondary",onClick:_,children:"Ver más"})})]}),e.jsx(ae,{ref:m,items:M,perPage:void 0,gap:"16px",enableHorizontalWheel:!0,showRightGradient:!0,options:{autoWidth:!0,trimSpace:"move"},breakpoints:{400:{gap:"4px",focus:"center",padding:{left:"24px",right:"24px"}},768:{gap:"8px",focus:"center",padding:{left:"24px",right:"24px"}},1024:{gap:"10px",focus:"center",padding:{left:"24px",right:"24px"}}},renderItem:E=>e.jsx("div",{style:{alignSelf:"start"},children:e.jsx(Ne,{items:E.items,layout:E.kind==="mosaic"?"mosaic":"grid",loading:O,onClick:S=>{if(O)return;const C=t.find((j,L)=>String(ut(j,L))===String(S.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 B=ie("showIframe"),R=ie("loadMachine");B==null||B(),R==null||R(C,!1,"CASINO")}})}),onMove:({isStart:E,isEnd:S})=>p({isStart:E,isEnd:S})})]})})},pt=(t,a)=>{var n,o;return(o=(n=t.orden)!=null?n:t.machine)!=null?o:a},Fa=(t,a=!0,n=1)=>{const o=t.map((d,f)=>{var x;return{id:pt(d,f),imageUrl:(x=d.logo)!=null?x:"",...d.background?{background:d.background}:{}}});if(!o.length)return[];const s=[];let i=0;if(a){const d=Math.min(o.length,1);s.push({id:"mosaic-0",kind:"mosaic",items:o.slice(0,d)}),i=d}for(;i<o.length;){const d=Math.min(i+n,o.length);s.push({id:`grid-${i}`,kind:"grid",items:o.slice(i,d)}),i=d}return s},Aa=(t=!0,a=4)=>{const n=s=>Array.from({length:s},(i,d)=>({id:`sk-${s}-${d}`,imageUrl:""})),o=[];return t&&o.push({id:"mosaic-loading",kind:"mosaic",items:n(5)}),o.push({id:"grid-loading",kind:"grid",items:n(a)}),o},ft=({items:t,title:a="Virtuales",iconUrl:n="/assets/img/home/Virtuales/virtuales.svg",onItemClick:o,onViewMore:s,mosaicFirst:i=!0,gridSize:d=1})=>{const f=b.useRef(null),[x,m]=b.useState({isStart:!0,isEnd:!1}),c=H.useCaptureInteraction(),p=K(),u=()=>{var M;c({element:"virtuales_prev",label:`Landing: ${p} - OraculoSeccionVirtuales - Anterior`,target:"prev",event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{section:"OraculoSeccionVirtuales"}}),(M=f.current)==null||M.prev()},v=()=>{var M;c({element:"virtuales_next",label:`Landing: ${p} - OraculoSeccionVirtuales - Siguiente`,target:"next",event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{section:"OraculoSeccionVirtuales"}}),(M=f.current)==null||M.next()},_=()=>{c({element:"virtuales_view_more",label:`Landing: ${p} - 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")},$=!t||t.length===0,O=$?Aa(i,d):Fa(t,i,d);return e.jsx("section",{children:e.jsxs(z.default,{direction:"column",spacing:2,useFlexGap:!0,children:[e.jsxs(N.default,{sx:{display:"grid",gridTemplateColumns:"1fr auto auto",alignItems:"center",columnGap:1.5,rowGap:1,px:{xs:2,sm:0}},children:[e.jsx(te,{title:a,iconUrl:n,size:"md"}),e.jsxs(N.default,{sx:{display:"flex",gap:1,justifyContent:"flex-end"},children:[e.jsx(D,{ariaLabel:"Anterior",variant:"secondary",iconOnly:!0,leftIcon:e.jsx(Ke.default,{}),onClick:u,disabled:x.isStart}),e.jsx(D,{ariaLabel:"Siguiente",variant:"secondary",iconOnly:!0,rightIcon:e.jsx(Ze.default,{}),onClick:v,disabled:x.isEnd})]}),e.jsx(N.default,{sx:{justifySelf:"end"},children:e.jsx(D,{variant:"secondary",onClick:_,children:"Ver más"})})]}),e.jsx(ae,{ref:f,items:O,perPage:void 0,gap:"16px",breakpoints:{400:{gap:"4px",focus:"center",padding:{left:"24px",right:"24px"}},768:{gap:"8px",focus:"center",padding:{left:"24px",right:"24px"}},1024:{gap:"10px",focus:"center",padding:{left:"24px",right:"24px"}}},enableHorizontalWheel:!0,showRightGradient:!0,options:{autoWidth:!0,trimSpace:"move"},renderItem:M=>e.jsx("div",{style:{alignSelf:"start"},children:e.jsx(Ne,{items:M.items,layout:M.kind==="mosaic"?"mosaic":"grid",loading:$,onClick:E=>{if($)return;const S=t.find((R,j)=>String(pt(R,j))===String(E.id));if(!S){console.warn("[virtuales] no se encontró game para id:",E.id);return}c({element:"virtuales_game_card",label:`Landing: ${p} - OraculoSeccionVirtuales - Open game: ${String(S.machine||"unknown")}`,target:String(S.machine||"unknown"),event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{game_name:String(S.machine||"unknown"),section:"OraculoSeccionVirtuales"}});const C=ie("showIframe"),B=ie("loadMachine");C==null||C(),B==null||B(S,!1,"VIRTUALES")}})}),onMove:({isStart:M,isEnd:E})=>m({isStart:M,isEnd:E})})]})})},Pa=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
|
-
`},gt=({headline:t,headline2:a,items:n,backgroundImageUrl:i})=>{const s=H.useCaptureInteraction(),o=K(),d=$t.default("(max-width: 767px)"),p=n.length>1,x=b.useRef(null),u=b.useRef(null),c=b.useRef(!1),m=b.useRef(!1),[h,w]=b.useState(0),[_,M]=b.useState({isStart:!0,isEnd:!1});b.useEffect(()=>{const j=setTimeout(()=>{c.current=!0},500);return()=>clearTimeout(j)},[]);const v=b.useRef(_);b.useEffect(()=>{v.current=_},[_]);const I=b.useRef(!1),S=b.useRef(null),O=n==null?void 0:n[h],E=b.useMemo(()=>{var j,T;return(T=(j=O==null?void 0:O.backgroundImageUrl)!=null?j:i)!=null?T:""},[O,i]),B=Pa(E),R=!n||n.length===0,C=(j,T)=>{s({element:"welcome_banner_button",label:`OraculoSeccionBonoBienvenida - Banner button click: ${j.title||"OraculoSeccionBonoBienvenida - Banner "+(T+1)}`,target:"action",event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:"",banner_position:T+1,banner_total:(n==null?void 0:n.length)||0},tags:{banner_title:j.title||"no_title",button_text:j.buttonText||"no_text"}}),j.onButtonClick&&j.onButtonClick()},L=j=>{if(!c.current)return;if(m.current){m.current=!1;return}const T=n==null?void 0:n[j];s({element:"welcome_banner_carousel",label:`Landing: ${o} - OraculoSeccionBonoBienvenida - Banner view: ${(T==null?void 0:T.title)||"OraculoSeccionBonoBienvenida - Banner "+(j+1)}`,target:"no_url",event_type:"view",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:"",slide_index:j+1,total_slides:(n==null?void 0:n.length)||0,interaction_type:"manual_slide"},tags:{banner_position:String(j+1),banner_title:(T==null?void 0:T.title)||"no_title"}})};b.useEffect(()=>{const j=u.current;if(!j)return;const T=6,F=380,f=r=>{var k,$;if(R||r.ctrlKey||I.current)return;const l=r.deltaX,g=r.deltaY;if(Math.abs(l)<=Math.abs(g)||Math.abs(l)<T)return;const y=l>0;y&&v.current.isEnd||!y&&v.current.isStart||(r.preventDefault(),I.current=!0,y?(k=x.current)==null||k.next():($=x.current)==null||$.prev(),S.current&&window.clearTimeout(S.current),S.current=window.setTimeout(()=>{I.current=!1},F))};return j.addEventListener("wheel",f,{passive:!1}),()=>{j.removeEventListener("wheel",f),S.current&&window.clearTimeout(S.current)}},[R]);const P=(j,T,F)=>{var l,g;const f=(l=j.headline)!=null?l:t,r=(g=j.headline2)!=null?g:a;return T?e.jsxs(N.default,{sx:{maxWidth:1200,mx:"auto",px:15,display:"grid",gridTemplateColumns:"260px minmax(0, 1fr)",alignItems:"center",columnGap:6},children:[(f||r)&&e.jsx(N.default,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-start",minHeight:"100%"},children:e.jsxs(N.default,{sx:{...qe,textAlign:"left",mb:0},children:[f&&e.jsx(Q.default,{component:"span",sx:ze,children:f}),r&&e.jsxs(e.Fragment,{children:[e.jsx("br",{}),e.jsx(Q.default,{component:"span",sx:Ue,children:r})]})]})}),e.jsx(N.default,{sx:{display:"flex",justifyContent:"center",alignItems:"center"},children:e.jsx(N.default,{sx:{width:"100%",maxWidth:600,mx:"auto"},children:e.jsx(Te,{...j,onButtonClick:()=>C(j,F),variant:"large"})})})]}):e.jsxs(N.default,{sx:{textAlign:"center"},children:[(f||r)&&e.jsxs(N.default,{sx:qe,children:[f&&e.jsx(Q.default,{component:"span",sx:ze,children:f}),r&&e.jsxs(e.Fragment,{children:[e.jsx("br",{}),e.jsx(Q.default,{component:"span",sx:Ue,children:r})]})]}),e.jsx(N.default,{sx:{display:"flex",justifyContent:"center"},children:e.jsx(Te,{...j,onButtonClick:()=>C(j,F),variant:"small"})})]})};return e.jsxs(N.default,{component:"section",sx:B,children:[e.jsx("div",{ref:u,style:{width:"100%"},children:e.jsx(ae,{ref:x,items:n,perPage:1,gap:"0px",options:{autoWidth:!1},renderItem:(j,T)=>e.jsx(N.default,{sx:{width:"100%"},children:P(j,!d,T)}),onMove:({index:j,isStart:T,isEnd:F})=>{w(j),typeof T=="boolean"&&typeof F=="boolean"&&M({isStart:T,isEnd:F}),L(j)}})}),p&&e.jsx(N.default,{sx:{mt:2,display:"flex",justifyContent:"center"},children:e.jsx(ke,{total:n.length,active:h,onSelect:j=>{var T;s({element:"welcome_banner_dots",label:`Landing: ${o} - OraculoSeccionBonoBienvenida - Dot navigation: Banner ${j+1}`,target:"no_url",event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:"",dot_index:j+1,total_dots:n.length},tags:{navigation_type:"dot_click"}}),w(j),(T=x.current)==null||T.go(j)}})})]})},ht=({className:t="",fullBleed:a=!0,items:n,selectedIndex:i=0,ariaLabel:s})=>{const o=b.useRef(null),d=b.useRef(null),p=H.useCaptureInteraction(),x=K();if(!n)return null;const u=()=>{p({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")},c=Array.isArray(n)?n[i]:n;b.useLayoutEffect(()=>{if(!o.current||!d.current||typeof ResizeObserver=="undefined")return;const h=o.current,w=d.current,_=()=>{h.style.setProperty("--orc-co-bottomH",`${w.offsetHeight+16}px`)},M=new ResizeObserver(_);return M.observe(w),_(),()=>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||c.imgAlt||"Club Olimpo",children:e.jsx("div",{ref:d,children:e.jsx(tt,{text:c.text,onClick:u,imgAlt:c.imgAlt,buttonLabel:c.buttonLabel,imgSrcMobile:c.imgMobile,imgSrcDesktopBg:c.imgDesktopBg,imgSrcDesktopLogo:c.imgDesktopLogo})})})},qa="oraculo__OraculoSeccionEventoCombinadas-module__controls___Zsta4",za="oraculo__OraculoSeccionEventoCombinadas-module__padding___vf-yF",Ve={controls:qa,padding:za},Ua=t=>{var a,n;return(a=t.outcome)!=null&&a.id?[t.outcome.id]:t.type==="BET_BUILDER"&&((n=t.group)!=null&&n.groups)?t.group.groups.flatMap(i=>{var s,o;return(o=(s=i.outcomes)==null?void 0:s.map(d=>d.id))!=null?o:[]}):[]};function Va(t,a,n){return n?n.map(i=>{var c,m,h,w,_,M;const s=i.prePackCouponRows.flatMap(v=>Ua(v).map(I=>({eventId:v.eventId,outcomeId:I}))),o=new Set(s.map(v=>v.eventId)),d=new Set(s.map(v=>v.outcomeId)),p=new Map(s.map((v,I)=>[v.outcomeId,I])),x={};for(const v of a){if(!o.has(v.eventId))continue;const I=v.outcomes.filter(S=>d.has(S.id)).map(S=>({...S,position:p.get(S.id)}));I.length&&((m=x[c=v.eventId])!=null||(x[c]=[]),x[v.eventId].push({...v,outcomes:I}))}const u=t.filter(v=>o.has(v.id)).map(v=>{var I;return{...v,betoffers:(I=x[v.id])!=null?I:[]}});return{couponId:i.id,status:i.status,combinadoTotal:(M=(_=(w=(h=i.prePackCouponBets)==null?void 0:h[0])==null?void 0:w.odds)==null?void 0:_.decimal)!=null?M:null,events:u}}):[]}const Da=re.default.memo(it);function bt({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=H.useCaptureInteraction(),d=K(),p=b.useRef(null),[x,u]=b.useState({isStart:!0,isEnd:!1}),[c,m]=b.useState([]),h="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",w=()=>{var O;o({element:"evento_combinadas_prev",label:`Landing: ${d} - OraculoSeccionEventoCombinadas - Click: Anterior`,event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{section:"OraculoSeccionEventoCombinadas"}}),(O=p.current)==null||O.prev()},_=()=>{var O;o({element:"evento_combinadas_next",label:`Landing: ${d} - OraculoSeccionEventoCombinadas - Click: Siguiente`,event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{section:"OraculoSeccionEventoCombinadas"}}),(O=p.current)==null||O.next()},M=()=>{o({element:"evento_combinadas_ver_mas",label:`Landing: ${d} - OraculoSeccionEventoCombinadas - Click: Ver más`,event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{section:"OraculoSeccionEventoCombinadas"}}),ya()},v=b.useMemo(()=>c.filter(O=>O.combinadoTotal!==null),[c]);async function I(){var O,E,B;try{const C=await(await fetch(h)).json(),L=(B=(E=(O=C==null?void 0:C.group)==null?void 0:O.groups)==null?void 0:E[0])==null?void 0:B.id;if(!L){console.error("Could not extract group ID");return}const P=`https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/prepackcoupon/eventgroup/${L}.json?lang=es_PE&market=PE&client_id=200&channel_id=1&ncid=1764283566783&prePackCouponTags=CUSTOM`,T=await(await fetch(P)).json();m(Va(T.events,T.betOffers,T.prePackCoupons))}catch(R){console.error("loadDataEventSpecial error:",R)}}b.useEffect(()=>{I()},[]);const S=s||void 0;return v.length===0?null:e.jsx("section",{className:S,style:{width:"100%",boxSizing:"border-box"},children:e.jsxs(z.default,{direction:"column",spacing:1.5,useFlexGap:!0,children:[e.jsx("div",{className:Ve.padding,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:Ve.controls,children:[e.jsxs(J,{spacing:1,columns:"auto auto",children:[e.jsx(D,{ariaLabel:"Anterior",variant:"secondary",iconOnly:!0,leftIcon:e.jsx(oe.ChevronLeftRounded,{}),onClick:w,disabled:x.isStart}),e.jsx(D,{ariaLabel:"Siguiente",variant:"secondary",iconOnly:!0,rightIcon:e.jsx(oe.ChevronRightRounded,{}),onClick:_,disabled:x.isEnd})]}),e.jsx(D,{variant:"secondary",onClick:M,children:"Ver más"})]})]})}),e.jsx(ae,{ref:p,items:v,perPage:void 0,gap:"16px",options:{autoWidth:!0,trimSpace:"move"},useIndexAsKey:!0,enableHorizontalWheel:!0,showRightGradient:!0,breakpoints:{768:{perPage:1.2,gap:"12px",padding:{left:"24px",right:"24px"}}},renderItem:O=>e.jsx(Da,{coupon:O}),onMove:({isStart:O,isEnd:E})=>u({isStart:O,isEnd:E})})]})})}function Wa({}){return e.jsx("div",{className:be.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 Ga="oraculo__FadeItemWrapper-module__fadeWrapper___kFOH4",Ha={fadeWrapper:Ga};function ye({children:t}){return e.jsx("div",{className:Ha.fadeWrapper,children:t})}const Ka="oraculo__OraculoSeccionEventoEnVivo-module__padding___Sh8tD",Za={padding:Ka},Ja=t=>{const a=["esports","cyber"];return t.filter(n=>{var s;if(n.event.sport!=="FOOTBALL")return!1;const i=((s=n.event.group)==null?void 0:s.toLowerCase())||"";return!a.some(o=>i.includes(o))})},Xa=re.default.memo(st);function xt({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",d=b.useRef(null),[p,x]=b.useState({isStart:!0,isEnd:!1}),[u,c]=b.useState(null),[m,h]=b.useState({}),[w,_]=b.useState({start:null,end:null}),M=b.useRef(!1),[v,I]=b.useState(null),S=b.useRef(!1),O=H.useCaptureInteraction(),E=K(),B=b.useRef(new Map),R=nt(w,300),C=b.useRef(new Set),L=()=>{var l;O({element:"evento_en_vivo_prev",label:`Landing: ${E} - OraculoSeccionEventoEnVivo - Anterior`,target:"prev",event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{section:"OraculoSeccionEventoEnVivo"}}),(l=d.current)==null||l.prev()},P=()=>{var l;O({element:"evento_en_vivo_next",label:`Landing: ${E} - OraculoSeccionEventoEnVivo - Siguiente`,target:"next",event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{section:"OraculoSeccionEventoEnVivo"}}),(l=d.current)==null||l.next()},j=()=>{O({element:"evento_en_vivo_view_more",label:`Landing: ${E} - 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"}}),va()},T=b.useCallback(async()=>{var l;try{if(!S.current){S.current=!0;try{const A=await(await fetch("https://api.mktolimpo.com/api/kambi/eventos/orden")).json(),W=((l=A==null?void 0:A.data)==null?void 0:l.event_ids)||[],V=new Map;W.forEach((G,Z)=>V.set(String(G),Z)),B.current=V}catch($){console.error("Order fetch failed, using default sorting",$)}}const g=await fetch(o);if(!g.ok)throw new Error("Failed to fetch live events");const y=await g.json(),k=Ja(y.events);if(B.current.size===0)c(k);else{const $=[...k].sort((A,W)=>{const V=B.current.get(String(A.event.id)),G=B.current.get(String(W.event.id));return(V!==void 0?V:1/0)-(G!==void 0?G:1/0)});c($)}}catch(g){console.error("LoadData Error:",g)}},[]);b.useEffect(()=>{T();const l=setInterval(T,2e4);return()=>clearInterval(l)},[T]),b.useEffect(()=>{if(R.start===null||R.end===null||!(u!=null&&u.length)||M.current)return;const l=3,g=Math.max(0,R.start-l),y=Math.min(u.length-1,R.end+l),k=u.slice(g,y+1).map($=>{var A;return(A=$==null?void 0:$.event)==null?void 0:A.id}).filter($=>$&&!C.current.has($));k.length!==0&&(k.forEach($=>C.current.add($)),M.current=!0,at(k).then($=>{$!=null&&$.events&&h(A=>({...A,...$.events}))}).catch($=>{console.error("Jersey fetch error",$),k.forEach(A=>C.current.delete(A))}).finally(()=>{M.current=!1}))},[R,u]);const F=s||void 0,f=u===null;if(!f&&u.length===0)return null;const r=b.useMemo(()=>f?Array(4).fill({}):(u==null?void 0:u.slice(0,20))||[],[f,u]);return e.jsx("section",{className:F,style:{width:"100%",boxSizing:"border-box"},children:e.jsxs(z.default,{direction:"column",spacing:1.5,useFlexGap:!0,children:[e.jsx("div",{className:Za.padding,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(D,{ariaLabel:"Anterior",variant:"secondary",iconOnly:!0,leftIcon:e.jsx(oe.ChevronLeftRounded,{}),onClick:L,disabled:p.isStart}),e.jsx(D,{ariaLabel:"Siguiente",variant:"secondary",iconOnly:!0,rightIcon:e.jsx(oe.ChevronRightRounded,{}),onClick:P,disabled:p.isEnd})]}),e.jsx(D,{variant:"secondary",onClick:j,children:"Ver más"})]})]})}),e.jsx(ae,{ref:d,items:r,perPage:void 0,showRightGradient:!0,enableHorizontalWheel:!0,gap:"16px",options:{autoWidth:!0,trimSpace:"move"},breakpoints:{400:{gap:"4px",focus:"center",padding:{left:"24px",right:"24px"}},768:{gap:"8px",focus:"center",padding:{left:"24px",right:"24px"}},1024:{gap:"10px",focus:"center",padding:{left:"24px",right:"24px"}}},renderItem:l=>{var k;const g=((k=l.event)==null?void 0:k.id)||l.eventId,y=g in m?m[g]:void 0;return f?e.jsx(ye,{children:e.jsx(Wa,{})}):e.jsx(ye,{children:e.jsx(Xa,{...l,jersey:y})})},onMove:({isStart:l,isEnd:g,visibleStart:y,visibleEnd:k})=>{x($=>$.isStart===l&&$.isEnd===g?$:{isStart:l,isEnd:g}),_({start:y,end:k})}})]})})}function Ya(){return e.jsxs("div",{className:se.cardContainer,children:[e.jsx(Me,{title:""}),e.jsx("div",{className:se.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:se.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 Qa="oraculo__OraculoSeccionEventoSemana-module__wrapper___eqVq-",en="oraculo__OraculoSeccionEventoSemana-module__container___5yFQs",tn="oraculo__OraculoSeccionEventoSemana-module__buttonWrapper___-6IDT",an="oraculo__OraculoSeccionEventoSemana-module__padding___vfUcV",he={wrapper:Qa,container:en,buttonWrapper:tn,padding:an},nn=re.default.memo(rt);async function on(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),d=await Promise.all(o.map(p=>fetch(p,{signal:n}).then(x=>x.json())));i.push(...d)}return i}function sn(t){return[...t].sort((a,n)=>new Date(a.start).getTime()-new Date(n.start).getTime())}function rn(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 ln(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 vt({items:t,title:a="En vivo",iconUrl:n,onViewMore:i,className:s=""}){const o=H.useCaptureInteraction(),d=K(),p="https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/group.json?channel_id=1&client_id=200&lang=es_PE&market=PE",x=b.useRef(null),[u,c]=b.useState({isStart:!0,isEnd:!1}),[m,h]=b.useState(null);b.useRef(new Set);const[w,_]=b.useState({}),[M,v]=b.useState({start:null,end:null}),I="channel_id=1&client_id=200&competitionId=undefined&lang=es_PE&market=PE&useCombined=true",S=nt(M,250),O=b.useRef(!1);b.useMemo(()=>m===null?Array(6).fill({}):m.slice(0,20),[m]);const E=()=>{o({element:"evento_semana_view_more",label:`Landing: ${d} - OraculoSeccionEventoSemana - Ver más`,target:"ver_mas",event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{section:"OraculoSeccionEventoSemana"}}),_a()};async function B(j){var f,r;let T=[],F=[];try{const l=await fetch("https://api.mktolimpo.com/api/kambi/eventos/orden",{signal:j});if(l.ok){const g=await l.json();T=((f=g==null?void 0:g.data)==null?void 0:f.group_ids)||[],F=((r=g==null?void 0:g.data)==null?void 0:r.event_ids)||[]}}catch(l){l.name!=="AbortError"&&console.warn("Order API not available, using default group order");return}try{const y=(await(await fetch(p,{signal:j})).json()).group.groups.find(G=>G.englishName==="Football");if(!y||!Array.isArray(y.groups)){console.error("Football groups not found");return}let k=[...y.groups];if(T.length>0){const G=new Map(T.map((Z,ne)=>[Z,ne]));k.sort((Z,ne)=>{const me=G.get(String(Z.id)),le=G.get(String(ne.id));return me!==void 0&&le!==void 0?me-le:me!==void 0?-1:le!==void 0?1:0})}const A=k.slice(0,5),W=G=>{const Z="https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/listView/football";if(G.groups&&G.groups.length>0){const ne=G.groups[0];return[`${Z}/${G.termKey}/${ne.termKey}/all/matches.json?${I}`]}return[`${Z}/${G.termKey}/all/all/matches.json?${I}`]},V=A.flatMap(W);R(V,F,j)}catch(l){console.error(l)}}async function R(j,T,F){try{const f=await on(j,2,F);let r=[],l=[];f.forEach($=>{$.events&&(r.push(...$.events.map(A=>A.event)),l.push(...$.events.flatMap(A=>A.betOffers||[])))});const g=ln(r,l),y=sn(rn(g));let k=y;if(T.length>0){const $=new Map(T.map((A,W)=>[String(A),W]));k=[...y].sort((A,W)=>{const V=$.get(String(A.id)),G=$.get(String(W.id));return V!==void 0&&G!==void 0?V-G:V!==void 0?-1:G!==void 0?1:0})}if(F.aborted)return;h(k)}catch(f){console.error("Error loading events:",f)}}b.useEffect(()=>{if(!t)return;const j=new AbortController;return B(j.signal),()=>{j.abort()}},[t]),b.useEffect(()=>{if(S.start===null||S.end===null||!(m!=null&&m.length)||O.current)return;const j=2,T=Math.max(0,S.start-j),F=Math.min(m.length-1,S.end+j),f=m.slice(T,F+1).map(l=>l==null?void 0:l.id).filter(Boolean).filter(l=>w[l]===void 0);if(!f.length)return;let r=!1;return O.current=!0,(async()=>{try{const l=await at(f);r||_(g=>({...g,...l.events}))}catch(l){console.error("Jersey fetch error",l)}finally{O.current=!1}})(),()=>{r=!0}},[S,m]);const C=s||void 0,L={paddingLeft:0,width:"100%",boxSizing:"border-box"},P=m===null;return!P&&m.length===0?null:e.jsx("section",{className:C,style:L,children:e.jsxs("div",{className:`${he.wrapper} ${he.padding}`,children:[e.jsx("div",{className:he.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:he.buttonWrapper,children:e.jsx(D,{variant:"secondary",size:"lg",fullWidth:!0,onClick:()=>{E()},children:"Ver más"})})]})}),e.jsx("div",{style:{minWidth:"180px"},children:e.jsx(ae,{ref:x,items:P?Array(6).fill({}):m.slice(0,20),perPage:3.5,gap:"16px",enableHorizontalWheel:!0,showRightGradient:!0,options:{autoWidth:!0,trimSpace:!0},breakpoints:{1024:{perPage:1.4,gap:"8px",focus:"center",padding:{left:"8px",right:"8px"}}},renderItem:j=>{const T=j.id,F=T in w?w[T]:void 0;return P?e.jsx(ye,{children:e.jsx(Ya,{})}):e.jsx(ye,{children:e.jsx(nn,{event:j,jersey:F})})},onMove:({isStart:j,isEnd:T,visibleStart:F,visibleEnd:f})=>{c({isStart:j,isEnd:T}),v({start:F,end:f}),o({element:"evento_semana_carousel_slide",label:`Landing: ${d} - OraculoSeccionEventoSemana - Slide Carousel`,target:"carousel",event_type:"slide",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:"",visibleStart:F,visibleEnd:f,isStart:j,isEnd:T},tags:{section:"OraculoSeccionEventoSemana"}})}})})]})})}function _t({backgrounds:t,items:a,hideItems:n}){var T,F,f;const[i,s]=b.useState(0),o=H.useCaptureInteraction(),d=K(),p=b.useRef(null),x=b.useRef(!1),u=b.useRef(!1),c=(t==null?void 0:t.length)||1,m=!t||t.length===0,h=!m&&((T=t==null?void 0:t.length)!=null?T:0)>1,w=!n&&((F=a==null?void 0:a.length)!=null?F:0)>0,_=r=>{var l;r.preventDefault(),r.stopPropagation(),P(),(l=p.current)==null||l.prev()},M=r=>{var l;r.preventDefault(),r.stopPropagation(),P(),(l=p.current)==null||l.next()},v="#B5B5B5",I={position:"absolute",top:"50%",transform:"translateY(-50%)",zIndex:5,width:48,height:40,borderRadius:"12px",border:`1.5px solid ${v}`,py:1,px:1.5,color:v,backgroundColor:"transparent","&:hover":{backgroundColor:"rgba(181,181,181,0.08)"},"&.Mui-disabled":{opacity:.35,borderColor:v,color:v,backgroundColor:"transparent",cursor:"default"}},S=b.useMemo(()=>({type:"loop",perMove:1,pagination:!1,arrows:!1,drag:!0,focus:"center"}),[]);b.useEffect(()=>{const r=setTimeout(()=>{x.current=!0},500);return()=>clearTimeout(r)},[]);const O=(r,l)=>{var y,k;const g=((k=(y=r.href)==null?void 0:y.split("/").pop())==null?void 0:k.split(".")[0])||r.label||r.id||`banner_${l+1}`;o({element:"banner_carousel",label:`Landing: ${d} - OraculoSeccionBanners - Banner click: ${g}`,target:r.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:r.href||"no_url"}})},E=r=>{if(o({element:"banner_menu_item",label:`Landing: ${d} - OraculoSeccionBanners - Menu item click: ${r.label||r.id}`,target:r.href||"action",event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:"",item_id:r.id},tags:{item_label:r.label||"no_label"}}),r.onClick){r.onClick();return}r.href&&typeof globalThis!="undefined"&&globalThis.location&&globalThis.location.assign(r.href)},B=r=>{var k,$,A,W;const l=(r%c+c)%c;s(l);const g=u.current;if(u.current=!1,g||j(),!x.current||g)return;const y=(k=t==null?void 0:t[l])!=null&&k.href?((A=($=t[l].href)==null?void 0:$.split("/").pop())==null?void 0:A.split(".")[0])||`banner_${l+1}`:`banner_${l+1}`;o({element:"banner_carousel",label:`Landing: ${d} - OraculoSeccionBanners - Banner view: Slide ${l+1} - ${y}`,target:((W=t==null?void 0:t[l])==null?void 0:W.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:c,interaction_type:"manual_slide"},tags:{banner_position:String(l+1)}})},R=5e3,C=b.useRef(null),L=!m&&((f=t==null?void 0:t.length)!=null?f:0)>1,P=()=>{C.current!=null&&(window.clearInterval(C.current),C.current=null)},j=()=>{P(),L&&(C.current=window.setInterval(()=>{var r;u.current=!0,(r=p.current)==null||r.next()},R))};return b.useEffect(()=>(j(),()=>P()),[m,t==null?void 0:t.length,R]),e.jsxs(U.Box,{component:"section",sx:{position:"relative",overflow:"visible"},children:[e.jsxs(U.Box,{sx:{position:"relative",height:{xs:300,sm:360,md:420},borderRadius:0,overflow:"hidden"},children:[e.jsx(ae,{ref:p,items:t,perPage:1,gap:"0px",enableHorizontalWheel:!0,options:S,onMove:({index:r})=>{const l=(r%c+c)%c;s(l),B(r)},renderItem:(r,l)=>{var g,y;return e.jsxs(U.Box,{component:"a",href:r.href,target:(g=r.target)!=null?g:"_self",rel:r.target==="_blank"?"noopener noreferrer":void 0,onClick:()=>{O(r,l)},sx:{position:"relative",height:{xs:300,sm:360,md:420},display:"block",textDecoration:"none",cursor:"pointer"},children:[e.jsxs(U.Box,{component:"picture",sx:{position:"absolute",inset:0,lineHeight:0},children:[e.jsx("source",{srcSet:r.desktopSrc,media:"(min-width:800px)"}),e.jsx("source",{srcSet:r.mobileSrc,media:"(max-width:799px)"}),e.jsx(U.Box,{component:"img",src:(y=r.fallbackSrc)!=null?y:r.desktopSrc,alt:"","aria-hidden":!0,loading:"lazy",sx:{width:"100%",height:"100%",objectFit:"cover",display:"block"}})]}),e.jsx(U.Box,{sx:{position:"absolute",inset:0,pointerEvents:"none","&::before":{content:'""',position:"absolute",left:0,right:0,bottom:0,top:"40%",background:"linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(18,18,18,0.85) 80%, #121212 100%)"}}})]})}}),h&&e.jsxs(e.Fragment,{children:[e.jsx(U.IconButton,{"aria-label":"Anterior",onClick:_,sx:{...I,left:"120px","@media (max-width:1024px)":{left:24},"@media (max-width:786px)":{display:"none"}},children:e.jsx(oe.ChevronLeftRounded,{})}),e.jsx(U.IconButton,{"aria-label":"Siguiente",onClick:M,sx:{...I,right:"120px","@media (max-width:1024px)":{right:24},"@media (max-width:786px)":{display:"none"}},children:e.jsx(oe.ChevronRightRounded,{})})]}),e.jsx(U.Box,{sx:{position:"absolute",left:0,right:0,bottom:72,display:"flex",justifyContent:"center",zIndex:2},children:e.jsx(ke,{total:c,active:i,durationMs:R})})]}),w&&e.jsx(U.Box,{sx:{position:"absolute",bottom:{xs:-12,sm:0},left:120,right:120,"@media (max-width:1024px)":{left:24,right:24},backgroundColor:"#363636",borderRadius:2,p:1.5,display:"flex",justifyContent:"space-around",alignItems:"center",boxShadow:"0 10px 24px rgba(0,0,0,.35)",zIndex:3},children:a==null?void 0:a.map(r=>e.jsxs(U.Box,{sx:{display:"flex",flexDirection:{xs:"column",md:"row"},alignItems:"center",justifyContent:"center",gap:{xs:.5,md:1},color:"#FFFFFF",minWidth:0,cursor:r.onClick||r.href?"pointer":"default",whiteSpace:"nowrap"},onClick:()=>E(r),children:[r.icon&&e.jsx(U.Box,{component:"img",src:r.icon,alt:r.label||`icon-${r.id}`,sx:{width:{xs:20,sm:22,md:24},height:{xs:20,sm:22,md:24},objectFit:"contain"}}),e.jsx(U.Typography,{sx:{fontSize:{xs:10,sm:11,md:12},fontWeight:600,color:"#E0E0E0",textAlign:"center"},children:r.label})]},r.id))})]})}const cn=[{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 yt({title:t="Medios de pago",items:a=cn}){const n=Math.ceil(a.length/2),i=a.slice(0,n),s=a.slice(n);return e.jsxs(U.Box,{component:"section","aria-labelledby":"mp-title",sx:{color:"#fff"},children:[e.jsx(U.Typography,{id:"mp-title",variant:"h6",sx:{fontWeight:800,fontSize:{xs:20,md:32},textAlign:"center",mb:1.5},children:t}),e.jsx(U.Box,{sx:{width:"288px",height:"2px",mx:"auto",mb:3,opacity:.95,filter:"blur(0.2px)",background:"linear-gradient(90deg, rgba(0,0,0,0) 0%, #1dd75b 18%, #23d46b 50%, #1dd75b 82%, rgba(0,0,0,0) 100%)"}}),e.jsxs(U.Stack,{spacing:{xs:2,md:3},alignItems:"center",children:[e.jsx(U.Stack,{direction:"row",justifyContent:"center",alignItems:"center",gap:{xs:2,md:3},flexWrap:"wrap",children:i.map((o,d)=>e.jsx(Ie,{...o},`${o.alt}-${o.src}-${d}`))}),e.jsx(U.Stack,{direction:"row",justifyContent:"center",alignItems:"center",gap:{xs:2,md:3},flexWrap:"wrap",children:s.map((o,d)=>e.jsx(Ie,{...o},`${o.alt}-${o.src}-${d}`))})]})]})}function we({children:t}){const a=Se.useTheme(),n=re.default.useMemo(()=>Se.createTheme(a,{typography:{fontFamily:"var(--orc-font)"},components:{MuiTypography:{styleOverrides:{root:{fontFamily:"var(--orc-font)"}}}}}),[a]);return e.jsxs(Se.ThemeProvider,{theme:n,children:[e.jsx(Mt.default,{}),t]})}function dn({docId:t="home",children:a}){return e.jsx(we,{children:e.jsx(ve,{docId:t,children:a})})}const un={OraculoSeccionDestacados:lt,OraculoSeccionTopJuegos:Le,OraculoSeccionCasinoEnVivo:dt,OraculoSeccionCasino:mt,OraculoSeccionVirtuales:ft,OraculoSeccionClubOlimpo:ht,OraculoSeccionBonoBienvenida:gt,OraculoSeccionBanners:_t,OraculoSeccionMediosPago:yt,OraculoSeccionEventoEnVivo:xt,OraculoSeccionEventoSemana:vt,OraculoSeccionEventoCombinadas:bt},De={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"}]},mn=t=>typeof t=="function"||t&&typeof t=="object"&&"$$typeof"in t,pn=t=>/^OraculoSeccion[A-Z]/.test(t);function Ee(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,d,p;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:(d=a.props)!=null?d:{},apiUrl:(p=a.apiUrl)!=null?p:"",dataMode:a.dataMode,variableName:a.variableName,manualItems:a.manualItems,apiMethod:a.apiMethod,apiParams:a.apiParams}}):[]}const fn=Object.fromEntries(Object.entries(un).filter(([t,a])=>pn(t)&&mn(a))),gn=t=>{try{return Object.fromEntries(t!=null?t:[])}catch{return console.warn("[oraculo] extras inválidos. Debe ser Array<[string, unknown]>",t),{}}};class We extends Error{constructor(a,n,i){super(`HTTP ${a} ${i}`),this.status=a,this.url=n,this.statusText=i,this.name="HttpError"}}const Ge=["OraculoSeccionEventoEnVivo","OraculoSeccionEventoSemana","OraculoSeccionEventoCombinadas"],wt=({sectionsOverride:t,docId:a="home",db:n,extras:i,loader:s,disableWrapper:o=!1})=>{const d=b.useMemo(()=>gn(i),[i]),p=s||d.loader,[x,u]=b.useState([]),[c,m]=b.useState(!1),[h,w]=b.useState({}),[_,M]=b.useState({}),[v,I]=b.useState({}),S=U.useMediaQuery("(min-width:1024px)");b.useEffect(()=>{if(t)return;if(!n){console.warn("[landing] sin db -> fallback json"),u(Ee(De));return}const f=(l,g)=>{console.warn("[landing] FALLBACK:",l,g!=null?g:""),u(Ee(De)),m(!1)};if(process.env.NEXT_PUBLIC_LANDING_FORCE_FALLBACK==="1"){m(!0),f("forzado por env");return}m(!0);const r=Fe.onSnapshot(Fe.doc(n,"landings",a),l=>{try{if(!l.exists()){f(`doc landings/${a} no existe`);return}const g=l.data(),y=Ee(g);if(!y.length){f("JSON inválido o sin secciones normalizables",g);return}console.log("[landing] Firestore OK (json grande):",g),u(y)}catch(g){f("error procesando snapshot",g)}finally{m(!1)}},l=>{f("error onSnapshot",l)});return()=>r()},[t,a,n]),b.useEffect(()=>(Ba(d),()=>Na()),[d]),b.useEffect(()=>{(t?t.slice():x.slice()).map(l=>l.componentKey).filter(l=>!!l).length},[t,x]);const O=async f=>{if(Ge.includes(f.componentKey))return{items:[],events:[],data:{}};const r=(f.apiUrl||"").trim();if(!r)return;const l=f.apiMethod||"GET",g=f.apiParams||[];let y=r,k,$;if(l==="GET"){const W=new URL(r,typeof window=="undefined"?"http://localhost":window.location.origin);for(const V of g)V.key&&W.searchParams.append(V.key,V.value);y=W.toString()}else{const W=new URLSearchParams;for(const V of g)V.key&&W.append(V.key,V.value);k=W.toString(),$={"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"}}const A=await fetch(y,{method:l,headers:$,body:k});if(!A.ok)throw new We(A.status,y,A.statusText);return A.json()},E=b.useMemo(()=>t?t.slice():x.slice(),[t,x]),B=re.default.useRef(new Set);b.useEffect(()=>{const f=E.map(r=>({s:r,url:(r.apiUrl||"").trim()})).filter(({url:r})=>!!r);if(f.length)for(const{s:r,url:l}of f){const g=`${r.id}|${l}`;B.current.has(g)||(B.current.add(g),M(y=>({...y,[r.id]:!0})),I(y=>({...y,[r.id]:""})),(async()=>{try{const y=await O(r);w(k=>({...k,[r.id]:y}))}catch(y){let k="Error desconocido";y instanceof We?k=`Error HTTP ${y.status} (${y.statusText}) en ${y.url}`:y instanceof SyntaxError?k="Respuesta no es JSON válido":y instanceof TypeError?k="Fallo de red / CORS / conexión":typeof y=="string"&&(k=y.toString()),I($=>({...$,[r.id]:k}))}finally{M(y=>({...y,[r.id]:!1}))}})())}},[E]);const R=b.useMemo(()=>E.filter(f=>f.visible).sort((f,r)=>f.order-r.order),[E]),C=f=>Array.isArray(f)?f.map(r=>{const l={};for(const g of r.fields||[]){const y=(g.type||"string").toLowerCase();if(y==="number"){const k=String(g.value||"").trim();if(k!==""){const $=Number(k);Number.isNaN($)||(l[g.name]=$)}}else if(y==="boolean")l[g.name]=String(g.value).toLowerCase()==="true";else if(y==="function"){const k=String(g.value||"").trim();if(k)try{const $=new Function(k);l[g.name]=$}catch($){console.error(`❌ Error creando función en item '${g.name}':`,$)}}else l[g.name]=g.value}return l}):[],L=f=>{const r={};if(!Array.isArray(f))return r;for(const l of f){if(!l.name)continue;const g=(l.type||"string").toLowerCase();if(g==="number"){const y=String(l.value||"").trim();if(y!==""){const k=Number(y);Number.isNaN(k)||(r[l.name]=k)}}else if(g==="boolean")r[l.name]=String(l.value).toLowerCase()==="true";else if(g==="function"){const y=String(l.value||"").trim();if(y)try{const k=new Function(y);r[l.name]=k}catch(k){console.error(`❌ Error creando función en item '${l.name}':`,k)}}else r[l.name]=l.value}return r},P=(f,r,l)=>{const g=l?{...l}:{};if(r){const V=(r.variableName||"items").trim()||"items";return g[V]=r.arr||[],g}const y=f,k=Array.isArray(y),$=!k&&typeof y=="object"&&y!==null?y:void 0,A=$&&Array.isArray($.lobby||$.items)?$.lobby||$.items:void 0,W=V=>k?y:A||V;return g.items=W(A||[]),g},j=f=>{var k;const r=!!((k=f.apiUrl)!=null&&k.trim()),l=r?h[f.id]:void 0;let g=f.props?{...f.props}:{};const y=L(f.manualScalarFields);if(Ge.includes(f.componentKey))return{items:l,...g,...y};if(g={...g,...y},r)g=P(l,null,g);else if(f.dataMode==="manual"){const $=C(f.manualItems);if(g=P(null,{arr:$,variableName:f.variableName},g),f.variableName2&&f.manualItems2){const A=C(f.manualItems2),W=(f.variableName2||"items2").trim()||"items2";g[W]=A}}return g},T=(f,r,l)=>{const g={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 ${g[r]}`,children:l},f)},F=f=>{var le;const r=f.componentKey,l=fn[r];if(!l)return console.warn(`No hay componente registrado para "${r}"`),T(f.id,"component",`Componente "${r}" no encontrado`);const g=!!((le=f.apiUrl)!=null&&le.trim()),y=g?h[f.id]:void 0,k=g?!!_[f.id]:!1,$=g?v[f.id]:"";if(g){if(k&&!y)return T(f.id,"loading",`Cargando datos desde ${f.apiUrl}...`);if($&&!y)return T(f.id,"error",`Error cargando ${f.apiUrl}: ${$}`)}const A=j(f),V=new Set(["OraculoSeccionBanners","OraculoSeccionBonoBienvenida","OraculoSeccionCasinoEnVivo",...S?[]:["OraculoSeccionClubOlimpo","OraculoSeccionEventoEnVivo","OraculoSeccionEventoSemana","OraculoSeccionEventoCombinadas","OraculoSeccionVirtuales","OraculoSeccionDestacados","OraculoSeccionCasino"]]).has(f.componentKey),G=S?120:24,Z=(S?8:5)*8,ne=f.componentKey==="OraculoSeccionCasinoEnVivo",me={width:"100%",boxSizing:"border-box",...V?{}:{paddingLeft:G,paddingRight:G},...ne?{marginTop:-Z,marginBottom:-Z}:{}};return e.jsx("div",{style:me,className:"oraculo-section-wrapper",children:e.jsx(l,{...A})},f.id)};return c&&!t?p?e.jsx(p,{}):e.jsx("div",{children:"Cargando..."}):!c&&!t&&x.length===0?e.jsx("div",{className:"text-xs text-gray-500",children:"Sin secciones (Firestore)"}):o?e.jsx(we,{children:e.jsx(ve,{docId:a,children:e.jsx(e.Fragment,{children:R.map(F)})})}):e.jsx(we,{children:e.jsx(ve,{docId:a,children:e.jsx(U.Container,{className:"oli-font",maxWidth:!1,disableGutters:!0,sx:{backgroundColor:"#121212",position:"relative",pb:5,width:"100%",maxWidth:"100%",overflowX:"hidden"},children:e.jsx(U.Stack,{direction:"column",spacing:S?8:5,useFlexGap:!0,children:R.map(F)})})})})};exports.DocIdProvider=ve;exports.OraculoButton=D;exports.OraculoCarousel=ae;exports.OraculoCarouselDots=ke;exports.OraculoClubOlimpoVisual=tt;exports.OraculoEventCombinadasCard=it;exports.OraculoEventEnVivoCard=st;exports.OraculoEventHeader=Ye;exports.OraculoEventLabel=$e;exports.OraculoEventLeague=Me;exports.OraculoEventScore=Be;exports.OraculoEventSemanaCard=rt;exports.OraculoEventStatus=Xe;exports.OraculoEventStatusBadge=Je;exports.OraculoEventTeamInfo=fe;exports.OraculoGameCard=pe;exports.OraculoGameRankCard=Qe;exports.OraculoGameSlide=Ne;exports.OraculoGridGroup=J;exports.OraculoLiveCasinoCard=et;exports.OraculoLogoMediosPago=Ie;exports.OraculoPageLandingPreview=wt;exports.OraculoSeccionBanners=_t;exports.OraculoSeccionBonoBienvenida=gt;exports.OraculoSeccionCasino=mt;exports.OraculoSeccionCasinoEnVivo=dt;exports.OraculoSeccionClubOlimpo=ht;exports.OraculoSeccionDestacados=lt;exports.OraculoSeccionEventoCombinadas=bt;exports.OraculoSeccionEventoEnVivo=xt;exports.OraculoSeccionEventoSemana=vt;exports.OraculoSeccionMediosPago=yt;exports.OraculoSeccionTopJuegos=Le;exports.OraculoSeccionVirtuales=ft;exports.OraculoSectionHost=dn;exports.OraculoSectionTitle=te;exports.OraculoThemeProvider=we;exports.OraculoTopJuegoItem=Le;exports.OraculoWelcomeBanner=Te;exports.default=wt;
|
|
19
|
+
`},gt=({headline:t,headline2:a,items:n,backgroundImageUrl:o})=>{const s=H.useCaptureInteraction(),i=K(),d=$t.default("(max-width: 767px)"),f=n.length>1,x=b.useRef(null),m=b.useRef(null),c=b.useRef(!1),p=b.useRef(!1),[u,v]=b.useState(0),[_,$]=b.useState({isStart:!0,isEnd:!1});b.useEffect(()=>{const w=setTimeout(()=>{c.current=!0},500);return()=>clearTimeout(w)},[]);const O=b.useRef(_);b.useEffect(()=>{O.current=_},[_]);const M=b.useRef(!1),E=b.useRef(null),S=n==null?void 0:n[u],C=b.useMemo(()=>{var w,I;return(I=(w=S==null?void 0:S.backgroundImageUrl)!=null?w:o)!=null?I:""},[S,o]),B=Pa(C),R=!n||n.length===0,j=(w,I)=>{s({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()},L=w=>{if(!c.current)return;if(p.current){p.current=!1;return}const I=n==null?void 0:n[w];s({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"}})};b.useEffect(()=>{const w=m.current;if(!w)return;const I=6,F=380,g=r=>{var T,k;if(R||r.ctrlKey||M.current)return;const l=r.deltaX,h=r.deltaY;if(Math.abs(l)<=Math.abs(h)||Math.abs(l)<I)return;const y=l>0;y&&O.current.isEnd||!y&&O.current.isStart||(r.preventDefault(),M.current=!0,y?(T=x.current)==null||T.next():(k=x.current)==null||k.prev(),E.current&&window.clearTimeout(E.current),E.current=window.setTimeout(()=>{M.current=!1},F))};return w.addEventListener("wheel",g,{passive:!1}),()=>{w.removeEventListener("wheel",g),E.current&&window.clearTimeout(E.current)}},[R]);const P=(w,I,F)=>{var l,h;const g=(l=w.headline)!=null?l:t,r=(h=w.headline2)!=null?h:a;return I?e.jsxs(N.default,{sx:{maxWidth:1200,mx:"auto",px:15,display:"grid",gridTemplateColumns:"260px minmax(0, 1fr)",alignItems:"center",columnGap:6},children:[(g||r)&&e.jsx(N.default,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-start",minHeight:"100%"},children:e.jsxs(N.default,{sx:{...qe,textAlign:"left",mb:0},children:[g&&e.jsx(Q.default,{component:"span",sx:ze,children:g}),r&&e.jsxs(e.Fragment,{children:[e.jsx("br",{}),e.jsx(Q.default,{component:"span",sx:Ue,children:r})]})]})}),e.jsx(N.default,{sx:{display:"flex",justifyContent:"center",alignItems:"center"},children:e.jsx(N.default,{sx:{width:"100%",maxWidth:600,mx:"auto"},children:e.jsx(Te,{...w,onButtonClick:()=>j(w,F),variant:"large"})})})]}):e.jsxs(N.default,{sx:{textAlign:"center"},children:[(g||r)&&e.jsxs(N.default,{sx:qe,children:[g&&e.jsx(Q.default,{component:"span",sx:ze,children:g}),r&&e.jsxs(e.Fragment,{children:[e.jsx("br",{}),e.jsx(Q.default,{component:"span",sx:Ue,children:r})]})]}),e.jsx(N.default,{sx:{display:"flex",justifyContent:"center"},children:e.jsx(Te,{...w,onButtonClick:()=>j(w,F),variant:"small"})})]})};return e.jsxs(N.default,{component:"section",sx:B,children:[e.jsx("div",{ref:m,style:{width:"100%"},children:e.jsx(ae,{ref:x,items:n,perPage:1,gap:"0px",options:{autoWidth:!1},renderItem:(w,I)=>e.jsx(N.default,{sx:{width:"100%"},children:P(w,!d,I)}),onMove:({index:w,isStart:I,isEnd:F})=>{v(w),typeof I=="boolean"&&typeof F=="boolean"&&$({isStart:I,isEnd:F}),L(w)}})}),f&&e.jsx(N.default,{sx:{mt:2,display:"flex",justifyContent:"center"},children:e.jsx(ke,{total:n.length,active:u,onSelect:w=>{var I;s({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"}}),v(w),(I=x.current)==null||I.go(w)}})})]})},ht=({className:t="",fullBleed:a=!0,items:n,selectedIndex:o=0,ariaLabel:s})=>{const i=b.useRef(null),d=b.useRef(null),f=H.useCaptureInteraction(),x=K();if(!n)return null;const m=()=>{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")},c=Array.isArray(n)?n[o]:n;b.useLayoutEffect(()=>{if(!i.current||!d.current||typeof ResizeObserver=="undefined")return;const u=i.current,v=d.current,_=()=>{u.style.setProperty("--orc-co-bottomH",`${v.offsetHeight+16}px`)},$=new ResizeObserver(_);return $.observe(v),_(),()=>$.disconnect()},[]);const p=["orc-co-wrap",a?"orc-co-fullBleed":"",t].filter(Boolean).join(" ");return e.jsx("section",{ref:i,className:p,"aria-label":s||c.imgAlt||"Club Olimpo",children:e.jsx("div",{ref:d,children:e.jsx(tt,{text:c.text,onClick:m,imgAlt:c.imgAlt,buttonLabel:c.buttonLabel,imgSrcMobile:c.imgMobile,imgSrcDesktopBg:c.imgDesktopBg,imgSrcDesktopLogo:c.imgDesktopLogo})})})},qa="oraculo__OraculoSeccionEventoCombinadas-module__controls___Zsta4",za="oraculo__OraculoSeccionEventoCombinadas-module__padding___vf-yF",Ve={controls:qa,padding:za},Ua=t=>{var a,n;return(a=t.outcome)!=null&&a.id?[t.outcome.id]:t.type==="BET_BUILDER"&&((n=t.group)!=null&&n.groups)?t.group.groups.flatMap(o=>{var s,i;return(i=(s=o.outcomes)==null?void 0:s.map(d=>d.id))!=null?i:[]}):[]};function Va(t,a,n){return n?n.map(o=>{var c,p;const s=o.prePackCouponRows.flatMap(u=>Ua(u).map(v=>({eventId:u.eventId,outcomeId:v}))),i=new Set(s.map(u=>u.eventId)),d=new Set(s.map(u=>u.outcomeId)),f=new Map(s.map((u,v)=>[u.outcomeId,v])),x={};for(const u of a){if(!i.has(u.eventId))continue;const v=u.outcomes.filter(_=>d.has(_.id)).map(_=>({..._,position:f.get(_.id)}));v.length&&((p=x[c=u.eventId])!=null||(x[c]=[]),x[u.eventId].push({...u,outcomes:v}))}const m=t.filter(u=>i.has(u.id)).map(u=>{var v;return{...u,betoffers:(v=x[u.id])!=null?v:[]}});return{couponId:o.id,status:o.status,combinadoTotal:Da(o.prePackCouponRows),events:m}}):[]}function Da(t){if(!Array.isArray(t)||t.length===0)return 0;let a=1;for(const n of t){const o=n.odds.decimal/1e3,s=Math.round(o*100)/100;a*=s}return Math.floor(a*100)/100}const Wa=re.default.memo(it);function bt({items:t,title:a="Combinadas del Olimpo",iconUrl:n="https://stg-www.contodobet.com/static/img/landing/EventoCombinada/rayoIcon.svg",onViewMore:o,className:s=""}){const i=H.useCaptureInteraction(),d=K(),f=b.useRef(null),[x,m]=b.useState({isStart:!0,isEnd:!1}),[c,p]=b.useState([]),u="https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/group/prepackcoupon.json?lang=es_PE&market=PE&client_id=200&channel_id=1&ncid=1764284658793&prePackCouponTags=CUSTOM",v=()=>{var S;i({element:"evento_combinadas_prev",label:`Landing: ${d} - OraculoSeccionEventoCombinadas - Click: Anterior`,event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{section:"OraculoSeccionEventoCombinadas"}}),(S=f.current)==null||S.prev()},_=()=>{var S;i({element:"evento_combinadas_next",label:`Landing: ${d} - OraculoSeccionEventoCombinadas - Click: Siguiente`,event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{section:"OraculoSeccionEventoCombinadas"}}),(S=f.current)==null||S.next()},$=()=>{i({element:"evento_combinadas_ver_mas",label:`Landing: ${d} - OraculoSeccionEventoCombinadas - Click: Ver más`,event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{section:"OraculoSeccionEventoCombinadas"}}),ya()},O=b.useMemo(()=>c.filter(S=>S.combinadoTotal!==null),[c]);async function M(){var S,C,B;try{const j=await(await fetch(u)).json(),L=(B=(C=(S=j==null?void 0:j.group)==null?void 0:S.groups)==null?void 0:C[0])==null?void 0:B.id;if(!L){console.error("Could not extract group ID");return}const P=`https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/prepackcoupon/eventgroup/${L}.json?lang=es_PE&market=PE&client_id=200&channel_id=1&ncid=1764283566783&prePackCouponTags=CUSTOM`,I=await(await fetch(P)).json();p(Va(I.events,I.betOffers,I.prePackCoupons))}catch(R){console.error("loadDataEventSpecial error:",R)}}b.useEffect(()=>{M()},[]);const E=s||void 0;return O.length===0?null:e.jsx("section",{className:E,style:{width:"100%",boxSizing:"border-box"},children:e.jsxs(z.default,{direction:"column",spacing:1.5,useFlexGap:!0,children:[e.jsx("div",{className:Ve.padding,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:Ve.controls,children:[e.jsxs(J,{spacing:1,columns:"auto auto",children:[e.jsx(D,{ariaLabel:"Anterior",variant:"secondary",iconOnly:!0,leftIcon:e.jsx(oe.ChevronLeftRounded,{}),onClick:v,disabled:x.isStart}),e.jsx(D,{ariaLabel:"Siguiente",variant:"secondary",iconOnly:!0,rightIcon:e.jsx(oe.ChevronRightRounded,{}),onClick:_,disabled:x.isEnd})]}),e.jsx(D,{variant:"secondary",onClick:$,children:"Ver más"})]})]})}),e.jsx(ae,{ref:f,items:O,perPage:void 0,gap:"16px",options:{autoWidth:!0,trimSpace:"move"},useIndexAsKey:!0,enableHorizontalWheel:!0,showRightGradient:!0,breakpoints:{768:{perPage:1.2,gap:"12px",padding:{left:"24px",right:"24px"}}},renderItem:S=>e.jsx(Wa,{coupon:S}),onMove:({isStart:S,isEnd:C})=>m({isStart:S,isEnd:C})})]})})}function Ga({}){return e.jsx("div",{className:be.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 Ha="oraculo__FadeItemWrapper-module__fadeWrapper___kFOH4",Ka={fadeWrapper:Ha};function ye({children:t}){return e.jsx("div",{className:Ka.fadeWrapper,children:t})}const Za="oraculo__OraculoSeccionEventoEnVivo-module__padding___Sh8tD",Ja={padding:Za},Xa=t=>{const a=["esports","cyber"];return t.filter(n=>{var s;if(n.event.sport!=="FOOTBALL")return!1;const o=((s=n.event.group)==null?void 0:s.toLowerCase())||"";return!a.some(i=>o.includes(i))})},Ya=re.default.memo(st);function xt({items:t,title:a="En vivo",iconUrl:n="https://stg-www.contodobet.com/static/img/landing/EventoEnVivo/icon.svg",onViewMore:o,className:s=""}){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",d=b.useRef(null),[f,x]=b.useState({isStart:!0,isEnd:!1}),[m,c]=b.useState(null),[p,u]=b.useState({}),[v,_]=b.useState({start:null,end:null}),$=b.useRef(!1),[O,M]=b.useState(null),E=b.useRef(!1),S=H.useCaptureInteraction(),C=K(),B=b.useRef(new Map),R=nt(v,300),j=b.useRef(new Set),L=()=>{var l;S({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"}}),(l=d.current)==null||l.prev()},P=()=>{var l;S({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"}}),(l=d.current)==null||l.next()},w=()=>{S({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"}}),va()},I=b.useCallback(async()=>{var l;try{if(!E.current){E.current=!0;try{const A=await(await fetch("https://api.mktolimpo.com/api/kambi/eventos/orden")).json(),W=((l=A==null?void 0:A.data)==null?void 0:l.event_ids)||[],V=new Map;W.forEach((G,Z)=>V.set(String(G),Z)),B.current=V}catch(k){console.error("Order fetch failed, using default sorting",k)}}const h=await fetch(i);if(!h.ok)throw new Error("Failed to fetch live events");const y=await h.json(),T=Xa(y.events);if(B.current.size===0)c(T);else{const k=[...T].sort((A,W)=>{const V=B.current.get(String(A.event.id)),G=B.current.get(String(W.event.id));return(V!==void 0?V:1/0)-(G!==void 0?G:1/0)});c(k)}}catch(h){console.error("LoadData Error:",h)}},[]);b.useEffect(()=>{I();const l=setInterval(I,2e4);return()=>clearInterval(l)},[I]),b.useEffect(()=>{if(R.start===null||R.end===null||!(m!=null&&m.length)||$.current)return;const l=3,h=Math.max(0,R.start-l),y=Math.min(m.length-1,R.end+l),T=m.slice(h,y+1).map(k=>{var A;return(A=k==null?void 0:k.event)==null?void 0:A.id}).filter(k=>k&&!j.current.has(k));T.length!==0&&(T.forEach(k=>j.current.add(k)),$.current=!0,at(T).then(k=>{k!=null&&k.events&&u(A=>({...A,...k.events}))}).catch(k=>{console.error("Jersey fetch error",k),T.forEach(A=>j.current.delete(A))}).finally(()=>{$.current=!1}))},[R,m]);const F=s||void 0,g=m===null;if(!g&&m.length===0)return null;const r=b.useMemo(()=>g?Array(4).fill({}):(m==null?void 0:m.slice(0,20))||[],[g,m]);return e.jsx("section",{className:F,style:{width:"100%",boxSizing:"border-box"},children:e.jsxs(z.default,{direction:"column",spacing:1.5,useFlexGap:!0,children:[e.jsx("div",{className:Ja.padding,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(D,{ariaLabel:"Anterior",variant:"secondary",iconOnly:!0,leftIcon:e.jsx(oe.ChevronLeftRounded,{}),onClick:L,disabled:f.isStart}),e.jsx(D,{ariaLabel:"Siguiente",variant:"secondary",iconOnly:!0,rightIcon:e.jsx(oe.ChevronRightRounded,{}),onClick:P,disabled:f.isEnd})]}),e.jsx(D,{variant:"secondary",onClick:w,children:"Ver más"})]})]})}),e.jsx(ae,{ref:d,items:r,perPage:void 0,showRightGradient:!0,enableHorizontalWheel:!0,gap:"16px",options:{autoWidth:!0,trimSpace:"move"},breakpoints:{400:{gap:"4px",focus:"center",padding:{left:"24px",right:"24px"}},768:{gap:"8px",focus:"center",padding:{left:"24px",right:"24px"}},1024:{gap:"10px",focus:"center",padding:{left:"24px",right:"24px"}}},renderItem:l=>{var T;const h=((T=l.event)==null?void 0:T.id)||l.eventId,y=h in p?p[h]:void 0;return g?e.jsx(ye,{children:e.jsx(Ga,{})}):e.jsx(ye,{children:e.jsx(Ya,{...l,jersey:y})})},onMove:({isStart:l,isEnd:h,visibleStart:y,visibleEnd:T})=>{x(k=>k.isStart===l&&k.isEnd===h?k:{isStart:l,isEnd:h}),_({start:y,end:T})}})]})})}function Qa(){return e.jsxs("div",{className:se.cardContainer,children:[e.jsx(Me,{title:""}),e.jsx("div",{className:se.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:se.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 en="oraculo__OraculoSeccionEventoSemana-module__wrapper___eqVq-",tn="oraculo__OraculoSeccionEventoSemana-module__container___5yFQs",an="oraculo__OraculoSeccionEventoSemana-module__buttonWrapper___-6IDT",nn="oraculo__OraculoSeccionEventoSemana-module__padding___vfUcV",he={wrapper:en,container:tn,buttonWrapper:an,padding:nn},on=re.default.memo(rt);async function sn(t,a=2,n){const o=[];for(let s=0;s<t.length;s+=a){if(n.aborted)throw new DOMException("Aborted","AbortError");const i=t.slice(s,s+a),d=await Promise.all(i.map(f=>fetch(f,{signal:n}).then(x=>x.json())));o.push(...d)}return o}function rn(t){return[...t].sort((a,n)=>new Date(a.start).getTime()-new Date(n.start).getTime())}function ln(t){const a=new Date,n=new Date(a.getTime()+480*60*60*1e3);return t.filter(o=>{if(!o.start)return!1;const s=new Date(o.start);return s>=a&&s<=n})}function cn(t,a){const o=a.filter(s=>{var i;return((i=s.betOfferType)==null?void 0:i.id)===2}).reduce((s,i)=>(s[i.eventId]||(s[i.eventId]=[]),s[i.eventId].push(i),s),{});return t.filter(s=>o[s.id]).map(s=>({...s,outcome:o[s.id]}))}function vt({items:t,title:a="En vivo",iconUrl:n,onViewMore:o,className:s=""}){const i=H.useCaptureInteraction(),d=K(),f="https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/group.json?channel_id=1&client_id=200&lang=es_PE&market=PE",x=b.useRef(null),[m,c]=b.useState({isStart:!0,isEnd:!1}),[p,u]=b.useState(null);b.useRef(new Set);const[v,_]=b.useState({}),[$,O]=b.useState({start:null,end:null}),M="channel_id=1&client_id=200&competitionId=undefined&lang=es_PE&market=PE&useCombined=true",E=nt($,250),S=b.useRef(!1);b.useMemo(()=>p===null?Array(6).fill({}):p.slice(0,20),[p]);const C=()=>{i({element:"evento_semana_view_more",label:`Landing: ${d} - OraculoSeccionEventoSemana - Ver más`,target:"ver_mas",event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{section:"OraculoSeccionEventoSemana"}}),_a()};async function B(w){var g,r;let I=[],F=[];try{const l=await fetch("https://api.mktolimpo.com/api/kambi/eventos/orden",{signal:w});if(l.ok){const h=await l.json();I=((g=h==null?void 0:h.data)==null?void 0:g.group_ids)||[],F=((r=h==null?void 0:h.data)==null?void 0:r.event_ids)||[]}}catch(l){l.name!=="AbortError"&&console.warn("Order API not available, using default group order");return}try{const y=(await(await fetch(f,{signal:w})).json()).group.groups.find(G=>G.englishName==="Football");if(!y||!Array.isArray(y.groups)){console.error("Football groups not found");return}let T=[...y.groups];if(I.length>0){const G=new Map(I.map((Z,ne)=>[Z,ne]));T.sort((Z,ne)=>{const me=G.get(String(Z.id)),le=G.get(String(ne.id));return me!==void 0&&le!==void 0?me-le:me!==void 0?-1:le!==void 0?1:0})}const A=T.slice(0,5),W=G=>{const Z="https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/listView/football";if(G.groups&&G.groups.length>0){const ne=G.groups[0];return[`${Z}/${G.termKey}/${ne.termKey}/all/matches.json?${M}`]}return[`${Z}/${G.termKey}/all/all/matches.json?${M}`]},V=A.flatMap(W);R(V,F,w)}catch(l){console.error(l)}}async function R(w,I,F){try{const g=await sn(w,2,F);let r=[],l=[];g.forEach(k=>{k.events&&(r.push(...k.events.map(A=>A.event)),l.push(...k.events.flatMap(A=>A.betOffers||[])))});const h=cn(r,l),y=rn(ln(h));let T=y;if(I.length>0){const k=new Map(I.map((A,W)=>[String(A),W]));T=[...y].sort((A,W)=>{const V=k.get(String(A.id)),G=k.get(String(W.id));return V!==void 0&&G!==void 0?V-G:V!==void 0?-1:G!==void 0?1:0})}if(F.aborted)return;u(T)}catch(g){console.error("Error loading events:",g)}}b.useEffect(()=>{if(!t)return;const w=new AbortController;return B(w.signal),()=>{w.abort()}},[t]),b.useEffect(()=>{if(E.start===null||E.end===null||!(p!=null&&p.length)||S.current)return;const w=2,I=Math.max(0,E.start-w),F=Math.min(p.length-1,E.end+w),g=p.slice(I,F+1).map(l=>l==null?void 0:l.id).filter(Boolean).filter(l=>v[l]===void 0);if(!g.length)return;let r=!1;return S.current=!0,(async()=>{try{const l=await at(g);r||_(h=>({...h,...l.events}))}catch(l){console.error("Jersey fetch error",l)}finally{S.current=!1}})(),()=>{r=!0}},[E,p]);const j=s||void 0,L={paddingLeft:0,width:"100%",boxSizing:"border-box"},P=p===null;return!P&&p.length===0?null:e.jsx("section",{className:j,style:L,children:e.jsxs("div",{className:`${he.wrapper} ${he.padding}`,children:[e.jsx("div",{className:he.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:he.buttonWrapper,children:e.jsx(D,{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({}):p.slice(0,20),perPage:3.5,gap:"16px",enableHorizontalWheel:!0,showRightGradient:!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,F=I in v?v[I]:void 0;return P?e.jsx(ye,{children:e.jsx(Qa,{})}):e.jsx(ye,{children:e.jsx(on,{event:w,jersey:F})})},onMove:({isStart:w,isEnd:I,visibleStart:F,visibleEnd:g})=>{c({isStart:w,isEnd:I}),O({start:F,end:g}),i({element:"evento_semana_carousel_slide",label:`Landing: ${d} - OraculoSeccionEventoSemana - Slide Carousel`,target:"carousel",event_type:"slide",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:"",visibleStart:F,visibleEnd:g,isStart:w,isEnd:I},tags:{section:"OraculoSeccionEventoSemana"}})}})})]})})}function _t({backgrounds:t,items:a,hideItems:n}){var I,F,g;const[o,s]=b.useState(0),i=H.useCaptureInteraction(),d=K(),f=b.useRef(null),x=b.useRef(!1),m=b.useRef(!1),c=(t==null?void 0:t.length)||1,p=!t||t.length===0,u=!p&&((I=t==null?void 0:t.length)!=null?I:0)>1,v=!n&&((F=a==null?void 0:a.length)!=null?F:0)>0,_=r=>{var l;r.preventDefault(),r.stopPropagation(),P(),(l=f.current)==null||l.prev()},$=r=>{var l;r.preventDefault(),r.stopPropagation(),P(),(l=f.current)==null||l.next()},O="#B5B5B5",M={position:"absolute",top:"50%",transform:"translateY(-50%)",zIndex:5,width:48,height:40,borderRadius:"12px",border:`1.5px solid ${O}`,py:1,px:1.5,color:O,backgroundColor:"transparent","&:hover":{backgroundColor:"rgba(181,181,181,0.08)"},"&.Mui-disabled":{opacity:.35,borderColor:O,color:O,backgroundColor:"transparent",cursor:"default"}},E=b.useMemo(()=>({type:"loop",perMove:1,pagination:!1,arrows:!1,drag:!0,focus:"center"}),[]);b.useEffect(()=>{const r=setTimeout(()=>{x.current=!0},500);return()=>clearTimeout(r)},[]);const S=(r,l)=>{var y,T;const h=((T=(y=r.href)==null?void 0:y.split("/").pop())==null?void 0:T.split(".")[0])||r.label||r.id||`banner_${l+1}`;i({element:"banner_carousel",label:`Landing: ${d} - OraculoSeccionBanners - Banner click: ${h}`,target:r.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:r.href||"no_url"}})},C=r=>{if(i({element:"banner_menu_item",label:`Landing: ${d} - OraculoSeccionBanners - Menu item click: ${r.label||r.id}`,target:r.href||"action",event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:"",item_id:r.id},tags:{item_label:r.label||"no_label"}}),r.onClick){r.onClick();return}r.href&&typeof globalThis!="undefined"&&globalThis.location&&globalThis.location.assign(r.href)},B=r=>{var T,k,A,W;const l=(r%c+c)%c;s(l);const h=m.current;if(m.current=!1,h||w(),!x.current||h)return;const y=(T=t==null?void 0:t[l])!=null&&T.href?((A=(k=t[l].href)==null?void 0:k.split("/").pop())==null?void 0:A.split(".")[0])||`banner_${l+1}`:`banner_${l+1}`;i({element:"banner_carousel",label:`Landing: ${d} - OraculoSeccionBanners - Banner view: Slide ${l+1} - ${y}`,target:((W=t==null?void 0:t[l])==null?void 0:W.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:c,interaction_type:"manual_slide"},tags:{banner_position:String(l+1)}})},R=5e3,j=b.useRef(null),L=!p&&((g=t==null?void 0:t.length)!=null?g:0)>1,P=()=>{j.current!=null&&(window.clearInterval(j.current),j.current=null)},w=()=>{P(),L&&(j.current=window.setInterval(()=>{var r;m.current=!0,(r=f.current)==null||r.next()},R))};return b.useEffect(()=>(w(),()=>P()),[p,t==null?void 0:t.length,R]),e.jsxs(U.Box,{component:"section",sx:{position:"relative",overflow:"visible"},children:[e.jsxs(U.Box,{sx:{position:"relative",height:{xs:300,sm:360,md:420},borderRadius:0,overflow:"hidden"},children:[e.jsx(ae,{ref:f,items:t,perPage:1,gap:"0px",enableHorizontalWheel:!0,options:E,onMove:({index:r})=>{const l=(r%c+c)%c;s(l),B(r)},renderItem:(r,l)=>{var h,y;return e.jsxs(U.Box,{component:"a",href:r.href,target:(h=r.target)!=null?h:"_self",rel:r.target==="_blank"?"noopener noreferrer":void 0,onClick:()=>{S(r,l)},sx:{position:"relative",height:{xs:300,sm:360,md:420},display:"block",textDecoration:"none",cursor:"pointer"},children:[e.jsxs(U.Box,{component:"picture",sx:{position:"absolute",inset:0,lineHeight:0},children:[e.jsx("source",{srcSet:r.desktopSrc,media:"(min-width:800px)"}),e.jsx("source",{srcSet:r.mobileSrc,media:"(max-width:799px)"}),e.jsx(U.Box,{component:"img",src:(y=r.fallbackSrc)!=null?y:r.desktopSrc,alt:"","aria-hidden":!0,loading:"lazy",sx:{width:"100%",height:"100%",objectFit:"cover",display:"block"}})]}),e.jsx(U.Box,{sx:{position:"absolute",inset:0,pointerEvents:"none","&::before":{content:'""',position:"absolute",left:0,right:0,bottom:0,top:"40%",background:"linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(18,18,18,0.85) 80%, #121212 100%)"}}})]})}}),u&&e.jsxs(e.Fragment,{children:[e.jsx(U.IconButton,{"aria-label":"Anterior",onClick:_,sx:{...M,left:"120px","@media (max-width:1024px)":{left:24},"@media (max-width:786px)":{display:"none"}},children:e.jsx(oe.ChevronLeftRounded,{})}),e.jsx(U.IconButton,{"aria-label":"Siguiente",onClick:$,sx:{...M,right:"120px","@media (max-width:1024px)":{right:24},"@media (max-width:786px)":{display:"none"}},children:e.jsx(oe.ChevronRightRounded,{})})]}),e.jsx(U.Box,{sx:{position:"absolute",left:0,right:0,bottom:72,display:"flex",justifyContent:"center",zIndex:2},children:e.jsx(ke,{total:c,active:o,durationMs:R})})]}),v&&e.jsx(U.Box,{sx:{position:"absolute",bottom:{xs:-12,sm:0},left:120,right:120,"@media (max-width:1024px)":{left:24,right:24},backgroundColor:"#363636",borderRadius:2,p:1.5,display:"flex",justifyContent:"space-around",alignItems:"center",boxShadow:"0 10px 24px rgba(0,0,0,.35)",zIndex:3},children:a==null?void 0:a.map(r=>e.jsxs(U.Box,{sx:{display:"flex",flexDirection:{xs:"column",md:"row"},alignItems:"center",justifyContent:"center",gap:{xs:.5,md:1},color:"#FFFFFF",minWidth:0,cursor:r.onClick||r.href?"pointer":"default",whiteSpace:"nowrap"},onClick:()=>C(r),children:[r.icon&&e.jsx(U.Box,{component:"img",src:r.icon,alt:r.label||`icon-${r.id}`,sx:{width:{xs:20,sm:22,md:24},height:{xs:20,sm:22,md:24},objectFit:"contain"}}),e.jsx(U.Typography,{sx:{fontSize:{xs:10,sm:11,md:12},fontWeight:600,color:"#E0E0E0",textAlign:"center"},children:r.label})]},r.id))})]})}const dn=[{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 yt({title:t="Medios de pago",items:a=dn}){const n=Math.ceil(a.length/2),o=a.slice(0,n),s=a.slice(n);return e.jsxs(U.Box,{component:"section","aria-labelledby":"mp-title",sx:{color:"#fff"},children:[e.jsx(U.Typography,{id:"mp-title",variant:"h6",sx:{fontWeight:800,fontSize:{xs:20,md:32},textAlign:"center",mb:1.5},children:t}),e.jsx(U.Box,{sx:{width:"288px",height:"2px",mx:"auto",mb:3,opacity:.95,filter:"blur(0.2px)",background:"linear-gradient(90deg, rgba(0,0,0,0) 0%, #1dd75b 18%, #23d46b 50%, #1dd75b 82%, rgba(0,0,0,0) 100%)"}}),e.jsxs(U.Stack,{spacing:{xs:2,md:3},alignItems:"center",children:[e.jsx(U.Stack,{direction:"row",justifyContent:"center",alignItems:"center",gap:{xs:2,md:3},flexWrap:"wrap",children:o.map((i,d)=>e.jsx(Ie,{...i},`${i.alt}-${i.src}-${d}`))}),e.jsx(U.Stack,{direction:"row",justifyContent:"center",alignItems:"center",gap:{xs:2,md:3},flexWrap:"wrap",children:s.map((i,d)=>e.jsx(Ie,{...i},`${i.alt}-${i.src}-${d}`))})]})]})}function we({children:t}){const a=Se.useTheme(),n=re.default.useMemo(()=>Se.createTheme(a,{typography:{fontFamily:"var(--orc-font)"},components:{MuiTypography:{styleOverrides:{root:{fontFamily:"var(--orc-font)"}}}}}),[a]);return e.jsxs(Se.ThemeProvider,{theme:n,children:[e.jsx(Mt.default,{}),t]})}function un({docId:t="home",children:a}){return e.jsx(we,{children:e.jsx(ve,{docId:t,children:a})})}const mn={OraculoSeccionDestacados:lt,OraculoSeccionTopJuegos:Le,OraculoSeccionCasinoEnVivo:dt,OraculoSeccionCasino:mt,OraculoSeccionVirtuales:ft,OraculoSeccionClubOlimpo:ht,OraculoSeccionBonoBienvenida:gt,OraculoSeccionBanners:_t,OraculoSeccionMediosPago:yt,OraculoSeccionEventoEnVivo:xt,OraculoSeccionEventoSemana:vt,OraculoSeccionEventoCombinadas:bt},De={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"}]},pn=t=>typeof t=="function"||t&&typeof t=="object"&&"$$typeof"in t,fn=t=>/^OraculoSeccion[A-Z]/.test(t);function Ee(t){return t&&Array.isArray(t.sections)?t.sections.slice().sort((a,n)=>{var o,s;return((o=a.order)!=null?o: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 o,s,i,d,f;return{id:(o=a.id)!=null?o:n+1,title:(s=a.title)!=null?s:"",componentKey:a.componentKey,visible:(i=a.visible)!=null?i:!0,order:n+1,props:(d=a.props)!=null?d:{},apiUrl:(f=a.apiUrl)!=null?f:"",dataMode:a.dataMode,variableName:a.variableName,manualItems:a.manualItems,apiMethod:a.apiMethod,apiParams:a.apiParams}}):[]}const gn=Object.fromEntries(Object.entries(mn).filter(([t,a])=>fn(t)&&pn(a))),hn=t=>{try{return Object.fromEntries(t!=null?t:[])}catch{return console.warn("[oraculo] extras inválidos. Debe ser Array<[string, unknown]>",t),{}}};class We extends Error{constructor(a,n,o){super(`HTTP ${a} ${o}`),this.status=a,this.url=n,this.statusText=o,this.name="HttpError"}}const Ge=["OraculoSeccionEventoEnVivo","OraculoSeccionEventoSemana","OraculoSeccionEventoCombinadas"],wt=({sectionsOverride:t,docId:a="home",db:n,extras:o,loader:s,disableWrapper:i=!1})=>{const d=b.useMemo(()=>hn(o),[o]),f=s||d.loader,[x,m]=b.useState([]),[c,p]=b.useState(!1),[u,v]=b.useState({}),[_,$]=b.useState({}),[O,M]=b.useState({}),E=U.useMediaQuery("(min-width:1024px)");b.useEffect(()=>{if(t)return;if(!n){console.warn("[landing] sin db -> fallback json"),m(Ee(De));return}const g=(l,h)=>{console.warn("[landing] FALLBACK:",l,h!=null?h:""),m(Ee(De)),p(!1)};if(process.env.NEXT_PUBLIC_LANDING_FORCE_FALLBACK==="1"){p(!0),g("forzado por env");return}p(!0);const r=Fe.onSnapshot(Fe.doc(n,"landings",a),l=>{try{if(!l.exists()){g(`doc landings/${a} no existe`);return}const h=l.data(),y=Ee(h);if(!y.length){g("JSON inválido o sin secciones normalizables",h);return}console.log("[landing] Firestore OK (json grande):",h),m(y)}catch(h){g("error procesando snapshot",h)}finally{p(!1)}},l=>{g("error onSnapshot",l)});return()=>r()},[t,a,n]),b.useEffect(()=>(Ba(d),()=>Na()),[d]),b.useEffect(()=>{(t?t.slice():x.slice()).map(l=>l.componentKey).filter(l=>!!l).length},[t,x]);const S=async g=>{if(Ge.includes(g.componentKey))return{items:[],events:[],data:{}};const r=(g.apiUrl||"").trim();if(!r)return;const l=g.apiMethod||"GET",h=g.apiParams||[];let y=r,T,k;if(l==="GET"){const W=new URL(r,typeof window=="undefined"?"http://localhost":window.location.origin);for(const V of h)V.key&&W.searchParams.append(V.key,V.value);y=W.toString()}else{const W=new URLSearchParams;for(const V of h)V.key&&W.append(V.key,V.value);T=W.toString(),k={"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"}}const A=await fetch(y,{method:l,headers:k,body:T});if(!A.ok)throw new We(A.status,y,A.statusText);return A.json()},C=b.useMemo(()=>t?t.slice():x.slice(),[t,x]),B=re.default.useRef(new Set);b.useEffect(()=>{const g=C.map(r=>({s:r,url:(r.apiUrl||"").trim()})).filter(({url:r})=>!!r);if(g.length)for(const{s:r,url:l}of g){const h=`${r.id}|${l}`;B.current.has(h)||(B.current.add(h),$(y=>({...y,[r.id]:!0})),M(y=>({...y,[r.id]:""})),(async()=>{try{const y=await S(r);v(T=>({...T,[r.id]:y}))}catch(y){let T="Error desconocido";y instanceof We?T=`Error HTTP ${y.status} (${y.statusText}) en ${y.url}`:y instanceof SyntaxError?T="Respuesta no es JSON válido":y instanceof TypeError?T="Fallo de red / CORS / conexión":typeof y=="string"&&(T=y.toString()),M(k=>({...k,[r.id]:T}))}finally{$(y=>({...y,[r.id]:!1}))}})())}},[C]);const R=b.useMemo(()=>C.filter(g=>g.visible).sort((g,r)=>g.order-r.order),[C]),j=g=>Array.isArray(g)?g.map(r=>{const l={};for(const h of r.fields||[]){const y=(h.type||"string").toLowerCase();if(y==="number"){const T=String(h.value||"").trim();if(T!==""){const k=Number(T);Number.isNaN(k)||(l[h.name]=k)}}else if(y==="boolean")l[h.name]=String(h.value).toLowerCase()==="true";else if(y==="function"){const T=String(h.value||"").trim();if(T)try{const k=new Function(T);l[h.name]=k}catch(k){console.error(`❌ Error creando función en item '${h.name}':`,k)}}else l[h.name]=h.value}return l}):[],L=g=>{const r={};if(!Array.isArray(g))return r;for(const l of g){if(!l.name)continue;const h=(l.type||"string").toLowerCase();if(h==="number"){const y=String(l.value||"").trim();if(y!==""){const T=Number(y);Number.isNaN(T)||(r[l.name]=T)}}else if(h==="boolean")r[l.name]=String(l.value).toLowerCase()==="true";else if(h==="function"){const y=String(l.value||"").trim();if(y)try{const T=new Function(y);r[l.name]=T}catch(T){console.error(`❌ Error creando función en item '${l.name}':`,T)}}else r[l.name]=l.value}return r},P=(g,r,l)=>{const h=l?{...l}:{};if(r){const V=(r.variableName||"items").trim()||"items";return h[V]=r.arr||[],h}const y=g,T=Array.isArray(y),k=!T&&typeof y=="object"&&y!==null?y:void 0,A=k&&Array.isArray(k.lobby||k.items)?k.lobby||k.items:void 0,W=V=>T?y:A||V;return h.items=W(A||[]),h},w=g=>{var T;const r=!!((T=g.apiUrl)!=null&&T.trim()),l=r?u[g.id]:void 0;let h=g.props?{...g.props}:{};const y=L(g.manualScalarFields);if(Ge.includes(g.componentKey))return{items:l,...h,...y};if(h={...h,...y},r)h=P(l,null,h);else if(g.dataMode==="manual"){const k=j(g.manualItems);if(h=P(null,{arr:k,variableName:g.variableName},h),g.variableName2&&g.manualItems2){const A=j(g.manualItems2),W=(g.variableName2||"items2").trim()||"items2";h[W]=A}}return h},I=(g,r,l)=>{const h={loading:"bg-blue-100 text-blue-800",error:"bg-red-100 text-red-800",component:"bg-yellow-100 text-yellow-800"};return e.jsx("div",{className:`mx-4 p-4 rounded ${h[r]}`,children:l},g)},F=g=>{var le;const r=g.componentKey,l=gn[r];if(!l)return console.warn(`No hay componente registrado para "${r}"`),I(g.id,"component",`Componente "${r}" no encontrado`);const h=!!((le=g.apiUrl)!=null&&le.trim()),y=h?u[g.id]:void 0,T=h?!!_[g.id]:!1,k=h?O[g.id]:"";if(h){if(T&&!y)return I(g.id,"loading",`Cargando datos desde ${g.apiUrl}...`);if(k&&!y)return I(g.id,"error",`Error cargando ${g.apiUrl}: ${k}`)}const A=w(g),V=new Set(["OraculoSeccionBanners","OraculoSeccionBonoBienvenida","OraculoSeccionCasinoEnVivo",...E?[]:["OraculoSeccionClubOlimpo","OraculoSeccionEventoEnVivo","OraculoSeccionEventoSemana","OraculoSeccionEventoCombinadas","OraculoSeccionVirtuales","OraculoSeccionDestacados","OraculoSeccionCasino"]]).has(g.componentKey),G=E?120:24,Z=(E?8:5)*8,ne=g.componentKey==="OraculoSeccionCasinoEnVivo",me={width:"100%",boxSizing:"border-box",...V?{}:{paddingLeft:G,paddingRight:G},...ne?{marginTop:-Z,marginBottom:-Z}:{}};return e.jsx("div",{style:me,className:"oraculo-section-wrapper",children:e.jsx(l,{...A})},g.id)};return c&&!t?f?e.jsx(f,{}):e.jsx("div",{children:"Cargando..."}):!c&&!t&&x.length===0?e.jsx("div",{className:"text-xs text-gray-500",children:"Sin secciones (Firestore)"}):i?e.jsx(we,{children:e.jsx(ve,{docId:a,children:e.jsx(e.Fragment,{children:R.map(F)})})}):e.jsx(we,{children:e.jsx(ve,{docId:a,children:e.jsx(U.Container,{className:"oli-font",maxWidth:!1,disableGutters:!0,sx:{backgroundColor:"#121212",position:"relative",pb:5,width:"100%",maxWidth:"100%",overflowX:"hidden"},children:e.jsx(U.Stack,{direction:"column",spacing:E?8:5,useFlexGap:!0,children:R.map(F)})})})})};exports.DocIdProvider=ve;exports.OraculoButton=D;exports.OraculoCarousel=ae;exports.OraculoCarouselDots=ke;exports.OraculoClubOlimpoVisual=tt;exports.OraculoEventCombinadasCard=it;exports.OraculoEventEnVivoCard=st;exports.OraculoEventHeader=Ye;exports.OraculoEventLabel=$e;exports.OraculoEventLeague=Me;exports.OraculoEventScore=Be;exports.OraculoEventSemanaCard=rt;exports.OraculoEventStatus=Xe;exports.OraculoEventStatusBadge=Je;exports.OraculoEventTeamInfo=fe;exports.OraculoGameCard=pe;exports.OraculoGameRankCard=Qe;exports.OraculoGameSlide=Ne;exports.OraculoGridGroup=J;exports.OraculoLiveCasinoCard=et;exports.OraculoLogoMediosPago=Ie;exports.OraculoPageLandingPreview=wt;exports.OraculoSeccionBanners=_t;exports.OraculoSeccionBonoBienvenida=gt;exports.OraculoSeccionCasino=mt;exports.OraculoSeccionCasinoEnVivo=dt;exports.OraculoSeccionClubOlimpo=ht;exports.OraculoSeccionDestacados=lt;exports.OraculoSeccionEventoCombinadas=bt;exports.OraculoSeccionEventoEnVivo=xt;exports.OraculoSeccionEventoSemana=vt;exports.OraculoSeccionMediosPago=yt;exports.OraculoSeccionTopJuegos=Le;exports.OraculoSeccionVirtuales=ft;exports.OraculoSectionHost=un;exports.OraculoSectionTitle=te;exports.OraculoThemeProvider=we;exports.OraculoTopJuegoItem=Le;exports.OraculoWelcomeBanner=Te;exports.default=wt;
|
|
20
20
|
//# sourceMappingURL=index.cjs.js.map
|