oraculo-ui 0.1.58 → 0.1.60

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -1,20 +1,20 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),M=require("@mui/material"),O=require("react"),ye=require("@splidejs/react-splide"),Qe=require("@mui/material/Box"),Ye=require("@mui/material/Skeleton"),Ze=require("@mui/material/Typography"),et=require("@mui/material/Stack"),X=require("@mui/icons-material"),tt=require("@mui/icons-material/ChevronLeftRounded"),ot=require("@mui/icons-material/ChevronRightRounded"),nt=require("@mui/material/useMediaQuery"),he=require("firebase/firestore"),q=t=>t&&t.__esModule?t:{default:t},st=q(O),C=q(Qe),T=q(Ye),D=q(Ze),P=q(et),we=q(tt),Se=q(ot),at=q(nt);function L({children:t,onClick:n,href:a,target:r,rel:l,type:o="button",disabled:s=!1,variant:p="primary",size:d,fullWidth:h=!1,fullHeight:g=!1,className:k="",ariaLabel:i,leftIcon:u,rightIcon:_,iconOnly:E}){const b=!!t&&t!==!0,f=(!!u?1:0)+(!!_?1:0)==1,w=E!=null?E:f&&!b,B=["orc-btn",p==="secondary"?"orc-btn--secondary":p==="tertiary"?"orc-btn--tertiary":"orc-btn--primary",d?`orc-btn--${d}`:"",h?"orc-btn--full":"",g?"orc-btn--fullHeight":"",w?"orc-btn--iconOnly":"",k].filter(Boolean).join(" "),$=e.jsxs(e.Fragment,{children:[u&&e.jsx("span",{className:"orc-btn__icon",children:u}),!w&&e.jsx("span",{className:"orc-btn__label",children:t}),_&&e.jsx("span",{className:"orc-btn__icon",children:_})]}),S=s?!0:void 0;return a?e.jsx(M.Link,{href:a,target:r,rel:l,"aria-label":i,"aria-disabled":S,tabIndex:S?-1:void 0,className:B,onClick:S?c=>c.preventDefault():n,children:$}):e.jsx("button",{type:o,onClick:n,disabled:!!S,"aria-label":i,className:B,children:$})}function U({title:t,iconUrl:n,size:a="md",className:r=""}){const o=["orc-section-title",a?`orc-section-title--${a}`:"",r].filter(Boolean).join(" ");return e.jsxs("div",{className:o,children:[n&&e.jsx("img",{src:n,alt:"",className:"orc-section-title__icon"}),e.jsx("h2",{className:"orc-section-title__title",children:t})]})}const le=({total:t,active:n,onSelect:a,className:r=""})=>{if(t<=1)return null;const l=["orc-dots",r].filter(Boolean).join(" ");return e.jsx("div",{className:l,role:"tablist",children:Array.from({length:t}).map((o,s)=>e.jsx("span",{className:"orc-dots__cell",children:e.jsx("button",{type:"button",role:"tab","aria-selected":s===n,"aria-label":`Ir al slide ${s+1}`,className:"orc-dots__dot"+(s===n?" orc-dots__dot--active":""),onClick:()=>a==null?void 0:a(s)})},s))})};function A({children:t,minWidth:n=32,spacing:a=2,justify:r="stretch",columns:l=null}){const o=l||`repeat(auto-fit, minmax(${n}px, 1fr))`,s=typeof a=="number"?`${a*8}px`:a;return e.jsx("div",{style:{display:"grid",gridTemplateColumns:o,justifyItems:r,gap:s,height:"inherit"},children:t})}function ie({src:t,alt:n}){return e.jsx(M.Box,{sx:{position:"relative",width:{xs:80,md:160},height:{xs:48,md:96},display:"inline-block"},children:e.jsx(M.Box,{component:"img",src:t,alt:n,sx:{position:"absolute",top:0,left:0,width:"100%",height:"100%",objectFit:"contain"}})})}const rt="oraculo__OraculoEventTitle-module__contenedor___rg1vw",it="oraculo__OraculoEventTitle-module__flexGroup___jMLFO",lt="oraculo__OraculoEventTitle-module__subtitle___TmHna",ne={contenedor:rt,flexGroup:it,subtitle:lt};function ct({title:t,subtitle:n}){return e.jsxs("div",{className:ne.contenedor,children:[e.jsx("span",{style:{fontWeight:700,fontSize:"12px",lineHeight:"16px"},children:t}),n&&e.jsxs("div",{className:ne.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:ne.subtitle,children:n}),e.jsx("div",{})]})]})}function Ce({text:t,color:n="#ff3b3b",textColor:a="#fff"}){return e.jsx("span",{className:"oli-font",style:{backgroundColor:n,color:a,borderRadius:"8px",padding:"4px 8px",fontSize:"12px",lineHeight:"16px",fontWeight:700,width:"41px",height:"16px",textAlign:"center"},children:t})}function Ee({live:t,time:n}){return e.jsxs("div",{className:"oli-font",style:{display:"flex",alignItems:"center",gap:"8px"},children:[t&&e.jsx(Ce,{text:"En vivo"}),n&&e.jsx("span",{style:{fontSize:"14px",fontWeight:400,lineHeight:"18px",paddingTop:"4px"},children:n})]})}function Oe({title:t,subtitle:n,live:a=!1,time:r=""}){return e.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",color:"#FFFFFF"},children:[e.jsx(ct,{title:t,subtitle:n}),e.jsx(Ee,{live:a,time:r})]})}const dt="oraculo__OraculoEventLabel-module__label___c64Xw",ut={label:dt};function ce({text:t}){return e.jsx("span",{className:ut.label,children:t})}const pt="oraculo__OraculoEventLeague-module__container___rdk4F",mt={container:pt};function de({title:t}){return e.jsx("div",{className:mt.container,children:t.toUpperCase()})}const xt="oraculo__OraculoEventScore-module__scoreWrapper___fWwEr",ft="oraculo__OraculoEventScore-module__name___r4uL6",ht="oraculo__OraculoEventScore-module__score___Xl03M",gt="oraculo__OraculoEventScore-module__normal___cCNFz",_t="oraculo__OraculoEventScore-module__small___fVt8E",J={scoreWrapper:xt,name:ft,score:ht,normal:gt,small:_t};function ue({text:t,name:n,size:a="normal"}){return e.jsxs("div",{className:`${J.scoreWrapper} ${J[a]}`,children:[e.jsx("div",{className:`${J.score} ${J[a]}`,children:t}),n&&e.jsx("span",{className:`${J.name} ${J[a]}`,children:n})]})}const bt="oraculo__OraculoEventTeamInfo-module__team___UfpUs",jt="oraculo__OraculoEventTeamInfo-module__regular___ag826",vt="oraculo__OraculoEventTeamInfo-module__compact___RCNOs",yt="oraculo__OraculoEventTeamInfo-module__logo___fKCl3",wt="oraculo__OraculoEventTeamInfo-module__name___4ikm-",ee={team:bt,regular:jt,compact:vt,logo:yt,name:wt};function Z({name:t,logo:n,size:a="regular"}){return e.jsxs("div",{className:`oli-font ${ee.team} ${ee[a]}`,children:[e.jsx("img",{loading:"lazy",src:n,alt:t,className:ee.logo}),e.jsx("span",{className:ee.name,children:t})]})}const St=ye.Splide,Ct=ye.SplideSlide,V=O.forwardRef(({items:t=[],renderItem:n,perPage:a=1,gap:r="0px",breakpoints:l,options:o={},className:s="",onMove:p,useIndexAsKey:d=!1},h)=>{const g=O.useRef(null);O.useImperativeHandle(h,()=>({next:()=>{var _;return(_=g.current)==null?void 0:_.go(">")},prev:()=>{var _;return(_=g.current)==null?void 0:_.go("<")},go:_=>{var E;return(E=g.current)==null?void 0:E.go(_)}}));const k=O.useCallback(_=>{const E=_.Components.Controller,b=E.getIndex(),y=E.getEnd(),I=b===0,f=b>=y,w=_.Components.Slides.getLength();p==null||p({index:b,isStart:I,isEnd:f,total:w})},[p]),i=O.useCallback(_=>{k(_)},[k]),u={type:"slide",trimSpace:!1,drag:!0,pagination:!1,arrows:!1,rewind:!1,focus:"start",autoWidth:!1,perPage:a,gap:r,breakpoints:l,...o};return e.jsx("div",{className:s,style:{width:"100%"},children:e.jsx(St,{ref:g,options:u,onMove:k,onMounted:i,children:t.map((_,E)=>{var b;return e.jsx(Ct,{children:n(_,E)},d?E:(b=_.id)!=null?b:E)})})})}),Y=({imageUrl:t,onClick:n,size:a="sm",fillParent:r=!1})=>{const l=a==="lg"?{w:280,h:352}:{w:152,h:168},o=p=>{p.stopPropagation(),n==null||n()},s=r?{width:"100%",height:"100%"}:{width:`${l.w}px`,height:`${l.h}px`};return e.jsxs(C.default,{onClick:n,role:"button",sx:{position:"relative",borderRadius:"12px",overflow:"hidden",boxSizing:"border-box",transition:"transform .15s ease, box-shadow .15s ease",...s,"&:hover":{transform:"translateY(-2px)",boxShadow:8,cursor:"pointer"},"&:hover .oraculo-game-card-overlay":{opacity:1},"&:hover .oraculo-game-card-btn":{opacity:1,transform:"translate(-50%, -50%) scale(1)",pointerEvents:"auto"}},children:[e.jsx("img",{src:t,alt:"Juego de casino",loading:"lazy",style:{width:"100%",height:"100%",objectFit:"cover",display:"block",borderRadius:"inherit"}}),e.jsx(C.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(C.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(L,{variant:"primary",size:"md",onClick:o,children:"JUGAR"})})]})};function ke({imageUrl:t,orden:n=1,onClick:a,loading:r=!1,sizes:l={xs:{w:104,h:112,r:18,font:48},md:{w:186,h:264,r:22.6,font:64}}}){var k,i,u,_;const o=(E,b)=>{var y,I,f,w;return{xs:(I=(y=l.xs)==null?void 0:y[E])!=null?I:b,md:(w=(f=l.md)==null?void 0:f[E])!=null?w:b}},s=o("w",186),p=o("h",264),d=o("r",22.6),h=o("font",64),g={xs:Math.round(((i=(k=l.xs)==null?void 0:k.font)!=null?i:64)*.28),md:Math.round(((_=(u=l.md)==null?void 0:u.font)!=null?_:64)*.28)};return e.jsxs(C.default,{sx:{position:"relative",width:"100%",maxWidth:{xs:`${s.xs}px`,md:`${s.md}px`},aspectRatio:{xs:`${s.xs}/${p.xs}`,md:`${s.md}/${p.md}`},borderRadius:{xs:`${d.xs}px`,md:`${d.md}px`},boxSizing:"border-box",overflow:"visible",pb:{xs:`${g.xs}px`,md:`${g.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(C.default,{sx:{position:"absolute",inset:0,borderRadius:"inherit",overflow:"hidden"},children:r?e.jsx(T.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(Y,{imageUrl:t,onClick:a,size:"lg",fillParent:!0})}),e.jsx(C.default,{component:"span",sx:{position:"absolute",left:8,bottom:{xs:`-${g.xs}px`,md:`-${g.md}px`},fontFamily:"secondary",fontSize:{xs:`${h.xs}px`,md:`${h.md}px`},lineHeight:1,color:"#3CC666",WebkitTextStroke:"1px #9ee86e",zIndex:3,userSelect:"none"},children:n})]})}const Ne=({logo:t,provider:n,providerName:a,machine:r,onClick:l})=>{var o;return e.jsxs(C.default,{onClick:l,sx:{flex:"0 0 auto",position:"relative",borderRadius:"20px",overflow:"hidden",width:{xs:100,md:180},height:{xs:200,md:380},transition:"width .50s ease, transform .28s ease",willChange:"width, transform",cursor:"pointer",zIndex:0,"&:hover":{zIndex:2,width:{md:260,xs:110}},"&:hover .orc-live-provider-label":{opacity:1}},children:[e.jsx(C.default,{component:"img",src:t,alt:`Juego ${r!=null?r:""}`,sx:{position:"absolute",inset:0,width:"100%",height:"100%",objectFit:"cover",display:"block"}}),e.jsx(C.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(D.default,{sx:{color:"#fff",fontWeight:700,fontSize:{xs:11,md:14},textTransform:"capitalize"},children:(o=n!=null?n:a)!=null?o:""})})]})},se=12,ae=({r:t=16})=>e.jsx(C.default,{sx:{width:"100%",height:"100%",borderRadius:t,overflow:"hidden"},children:e.jsx(T.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)"}}})}),pe=({items:t,layout:n="grid",onClick:a,loading:r=!1,gridSkeletonCount:l=4})=>{var o;if(n==="mosaic"){const s=t[0],p=t.slice(1,5);return e.jsxs(C.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:`${se}px`,rowGap:`${se}px`,alignItems:"stretch",justifyItems:"stretch"},children:[e.jsx(C.default,{sx:{width:{xs:184,md:280},height:{xs:234,md:352},gridRow:"1 / span 2",overflow:"hidden",borderRadius:2},children:r?e.jsx(ae,{}):s&&e.jsx(Y,{imageUrl:`https://olimpo.bet${(o=s.imageUrl)!=null?o:""}`,size:"lg",fillParent:!0,onClick:()=>a==null?void 0:a(s,0)})}),(r?Array.from({length:4}):p).map((d,h)=>{var g;return e.jsx(C.default,{sx:{width:{xs:104,md:152},height:{xs:112,md:168},overflow:"hidden",borderRadius:2},children:r?e.jsx(ae,{}):e.jsx(Y,{imageUrl:`https://olimpo.bet${(g=d.imageUrl)!=null?g:""}`,size:"sm",fillParent:!0,onClick:()=>a==null?void 0:a(d,h+1)})},r?`sk-${h}`:d.id)})]})}return e.jsx(C.default,{sx:{display:"grid",gridTemplateColumns:{xs:"repeat(2, 104px)",md:"repeat(2, 152px)"},gridTemplateRows:{xs:"repeat(2, 112px)",md:"repeat(2, 168px)"},gap:`${se}px`,gridAutoFlow:"column"},children:(r?Array.from({length:l}):t).map((s,p)=>{var d,h;return e.jsx(C.default,{sx:{overflow:"hidden",borderRadius:2},children:r?e.jsx(ae,{}):e.jsx(Y,{imageUrl:`https://olimpo.bet${(d=s.imageUrl)!=null?d:""}`,size:"sm",fillParent:!0,onClick:()=>a==null?void 0:a(s,p)})},r?`sk-${p}`:(h=s.id)!=null?h:p)})})},Ie=({title:t,amount:n,subtitle:a,buttonText:r,onButtonClick:l,backgroundImage:o,alt:s,className:p="",variant:d="small"})=>{const h=n?n.slice(0,2):"",g=n?n.slice(2):"",k=d==="large";return e.jsxs(C.default,{className:p,sx:{position:"relative",width:"100%",maxWidth:{xs:328,md:k?618:456},mx:"auto"},children:[o&&e.jsx(C.default,{sx:{position:"relative",width:"100%",aspectRatio:{xs:"328 / 188",md:k?"618 / 346":"456 / 272"},borderRadius:"14px",overflow:"hidden"},children:e.jsx(C.default,{component:"img",src:o,alt:s!=null?s:"Fondo promocional",sx:{width:"100%",height:"100%",objectFit:"cover",objectPosition:{xs:"50% 0%",md:"45% 0%"},display:"block"}})}),e.jsx(C.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(C.default,{sx:{maxWidth:"60%",display:"flex",flexDirection:"column",alignItems:"center"},children:[t&&e.jsx(D.default,{sx:{fontSize:{xs:12,md:20},fontWeight:400,color:"#e7f8ff"},children:t}),n&&e.jsxs(C.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(C.default,{component:"span",sx:{fontSize:{xs:35,md:48},mr:.5},children:h}),e.jsx(C.default,{component:"span",sx:{fontSize:{xs:52,md:77}},children:g})]}),a&&e.jsx(D.default,{sx:{pb:"20px",fontSize:14,fontWeight:600,color:"#e7f8ff"},children:a}),r&&e.jsx(L,{onClick:l,children:r})]})})]})},$e=({text:t,buttonLabel:n="Conoce más",onClick:a,imgAlt:r="Club Olimpo",imgSrcMobile:l,imgSrcDesktopBg:o,imgSrcDesktopLogo:s})=>e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"orc-co-bgMobile",children:e.jsx("img",{src:l,alt:r,className:"orc-co-bgMobileImg"})}),e.jsxs("div",{className:"orc-co-bgDesktop",children:[o&&e.jsx("div",{className:"orc-co-fillHost",children:e.jsx("img",{src:o,alt:`${r} fondo`,className:"orc-co-bgDesktopImg"})}),e.jsxs("div",{className:"orc-co-desktopContent",children:[s&&e.jsx("img",{src:s,alt:`${r} logo`,className:"orc-co-logoImg"}),e.jsx("p",{className:"orc-co-captionDesktop",children:t}),e.jsx(L,{onClick:a,variant:"primary",size:"md",children:n})]})]}),e.jsxs("div",{className:"orc-co-bottom",children:[e.jsx("p",{className:"orc-co-caption",children:t}),e.jsx(L,{onClick:a,variant:"primary",size:"md",children:n})]})]}),Et="oraculo__OraculoEventCombinadasCard-module__card___ulQeY",Ot="oraculo__OraculoEventCombinadasCard-module__combinadas___Gxrld",kt="oraculo__OraculoEventCombinadasCard-module__apuestaItem___YnYMy",Nt="oraculo__OraculoEventCombinadasCard-module__lineContainer___G5rbU",It="oraculo__OraculoEventCombinadasCard-module__circle___eehm-",$t="oraculo__OraculoEventCombinadasCard-module__line___Eb2pK",Bt="oraculo__OraculoEventCombinadasCard-module__apuestaText___b5s7S",Rt="oraculo__OraculoEventCombinadasCard-module__cuotaTotal___Lohvu",H={card:Et,combinadas:Ot,apuestaItem:kt,lineContainer:Nt,circle:It,line:$t,apuestaText:Bt,cuotaTotal:Rt};function me(t){const n=Array.isArray(t)?t:[t];sessionStorage.setItem("landingOutcomes",JSON.stringify(n)),window.location.href="/deportes"}function Pt(){window.location.href="/#in-play"}function Tt(){window.location.href="/#sports-hub/football"}function Mt(){window.location.href="/#specials"}function Be({event:t}){var r;function n(l){var g;const o=(g=l.betoffers)!=null?g:[],s=l.homeName,p=l.awayName,d=o.map(k=>{var E,b,y,I,f;let i=k.outcomes[0],u="",_=i!=null&&i.line?i.line/1e3:"";return["Más de","Mas de","Over"].includes(i==null?void 0:i.label)?(u=`Más de ${_}`,i!=null&&i.participant&&(u=`${i.participant} - ${u}`)):["Menos de","Menos"].includes(i==null?void 0:i.label)?(u=`Menos de ${_}`,i!=null&&i.participant&&(u=`${i.participant} - ${u}`)):["Sí","No"].includes(i==null?void 0:i.label)?(u=i==null?void 0:i.label,i!=null&&i.participant&&(u=`${i.participant} - ${u}`)):["1X","12","X2"].includes(i==null?void 0:i.label)?i.label==="1X"?u=`${s} o Empate`:i.label==="12"?u=`${s} o ${p}`:i.label==="X2"&&(u=`${p} o Empate`):(i!=null&&i.participant?u=i.participant:u=(E=i==null?void 0:i.label)!=null?E:"",_!==""&&u===i.label&&(u=`${i.label} ${_}`)),{id:(b=i==null?void 0:i.id)!=null?b:0,value:u,label:k.criterion.label,odds:(y=i==null?void 0:i.odds)!=null?y:0,bl:(I=i==null?void 0:i.label)!=null?I:0,position:(f=i==null?void 0:i.position)!=null?f:0}}),h=d.reduce((k,i)=>k+i.odds,0)/1e3;return{outcomes:d,total:h.toFixed(2)}}const a=n(t);return e.jsxs("div",{className:H.card,children:[e.jsx("div",{className:H.combinadas,children:e.jsxs(P.default,{direction:"column",spacing:.5,useFlexGap:!0,children:[e.jsx(U,{title:t.name,iconUrl:"/assets/img/home/Combinadas/pelota.png",size:"xs"}),e.jsx("img",{loading:"lazy",src:"/assets/img/home/Combinadas/line.png"}),e.jsx(P.default,{direction:"column",spacing:.5,useFlexGap:!0,children:a.outcomes.sort((l,o)=>l.position-o.position).map((l,o)=>e.jsxs("div",{className:H.apuestaItem,children:[e.jsxs("div",{className:H.lineContainer,children:[e.jsx("div",{className:H.circle}),o<a.outcomes.length-1&&e.jsx("div",{className:H.line})]}),e.jsxs("div",{className:H.apuestaText,children:[e.jsx("strong",{children:l.value})," ","| ",l.label]})]},o))})]})}),e.jsxs("button",{onClick:()=>{var l,o;return me((o=(l=a==null?void 0:a.outcomes)==null?void 0:l.map(s=>s==null?void 0:s.id))!=null?o:[])},className:H.cuotaTotal,children:[e.jsxs("span",{children:["Cuota total: ",e.jsx("strong",{children:(((r=t.combinadoTotal)!=null?r:0)/1e3).toFixed(2)})]}),e.jsx("img",{loading:"lazy",src:"/assets/img/home/Combinadas/cuotaTotal.svg",alt:"cuota total"})]})]})}const G={"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 Lt({children:t,onClick:n,href:a,target:r,rel:l,type:o="button",disabled:s=!1,variant:p="primary",size:d,fullWidth:h=!1,fullHeight:g=!1,className:k="",ariaLabel:i,leftIcon:u,rightIcon:_,iconOnly:E}){const b=!!t&&t!==!0,f=(!!u?1:0)+(!!_?1:0)==1,w=E!=null?E:f&&!b,B=[G["orc-btn"],G[`orc-btn--${p}`],d?G[`orc-btn--${d}`]:"",h?G["orc-btn--full"]:"",g?G["orc-btn--fullHeight"]:"",w?G["orc-btn--iconOnly"]:"",k].filter(Boolean).join(" "),$=e.jsxs(e.Fragment,{children:[u&&e.jsx("span",{className:G["orc-btn__icon"],children:u}),!w&&e.jsx("span",{className:G["orc-btn__label"],children:t}),_&&e.jsx("span",{className:G["orc-btn__icon"],children:_})]}),S=s?!0:void 0;return a?e.jsx(M.Link,{href:a,target:r,rel:l,"aria-label":i,"aria-disabled":S,tabIndex:S?-1:void 0,className:B,onClick:S?c=>c.preventDefault():n,children:$}):e.jsx("button",{type:o,onClick:n,disabled:!!S,"aria-label":i,className:B,children:$})}const Ft="oraculo__OraculoEventEnVivoCard-module__cardWrapper___6b-cT",Re={cardWrapper:Ft};function Pe({event:t,liveData:n,betOffers:a}){var l,o,s,p,d,h,g,k;const r=a==null?void 0:a.find(i=>{var u;return((u=i.betOfferType)==null?void 0:u.id)===2});return e.jsx("div",{className:Re.cardWrapper,children:e.jsxs(P.default,{direction:"column",spacing:1,useFlexGap:!0,children:[e.jsxs(P.default,{direction:"column",spacing:1.5,useFlexGap:!0,children:[e.jsx(Oe,{title:(l=t.path[0].name)!=null?l:"",subtitle:t.group,live:!0,time:((o=n==null?void 0:n.matchClock)==null?void 0:o.minute)!=null?`${n.matchClock.minute}'`:""}),e.jsx("div",{style:{padding:"0 4px"},children:e.jsxs(A,{spacing:1.5,columns:"1fr auto 1fr",children:[e.jsx(Z,{name:t.homeName,logo:"https://stg-www.contodobet.com/static/img/landing/EventoEnVivo/Juventus.png"}),e.jsx(ue,{text:((p=(s=n==null?void 0:n.score)==null?void 0:s.home)!=null?p:0)+":"+((h=(d=n==null?void 0:n.score)==null?void 0:d.away)!=null?h:0),name:"En vivo"}),e.jsx(Z,{name:t.awayName,logo:"https://stg-www.contodobet.com/static/img/landing/EventoEnVivo/Racing.png"})]})})]}),e.jsxs(P.default,{direction:"column",spacing:1,useFlexGap:!0,children:[e.jsx(A,{spacing:1,children:((g=r==null?void 0:r.outcomes)!=null?g:[]).map((i,u)=>e.jsx(ce,{text:i.label.toUpperCase()},u))}),e.jsx(A,{spacing:2,children:((k=r==null?void 0:r.outcomes)!=null?k:[]).map((i,u)=>e.jsx(Lt,{variant:"primary",disabled:i.odds==null||(r==null?void 0:r.cashOutStatus)=="SUSPENDED",onClick:()=>{me(i.id)},children:i.odds===void 0?"":(i.odds/1e3).toFixed(2)},u))})]})]})})}const Wt="oraculo__OraculoEventDate-module__date___xhIlh",zt={date:Wt};function At({text:t}){return e.jsx("div",{className:`oli-font ${zt.date}`,children:t})}const Gt="oraculo__OraculoEventSemanaCard-module__cardContainer___4JuDe",Dt="oraculo__OraculoEventSemanaCard-module__cardBackground___vfalD",Ut="oraculo__OraculoEventSemanaCard-module__jugadas___W8b7H",Vt="oraculo__OraculoEventSemanaCard-module__equipos___G5hLn",K={cardContainer:Gt,cardBackground:Dt,jugadas:Ut,equipos:Vt};function Te({event:t}){var a,r,l,o,s,p,d;function n(h){const g=new Date(h),k=g.toLocaleDateString("es-ES",{weekday:"short"}).toUpperCase(),i=g.getDate().toString().padStart(2,"0"),u=(g.getMonth()+1).toString().padStart(2,"0");let _=g.toLocaleTimeString("es-PE",{hour:"numeric",minute:"2-digit",hour12:!0}).toUpperCase();return _=_.replace(/\./g,"").replace(/A\s*M/i,"AM").replace(/P\s*M/i,"PM"),`${k} ${i}/${u} | ${_}`}return e.jsxs("div",{className:K.cardContainer,children:[e.jsx(de,{title:(a=t==null?void 0:t.group)!=null?a:""}),e.jsx("div",{className:K.cardBackground,children:e.jsxs(P.default,{direction:"column",spacing:{xs:.5,md:1},useFlexGap:!0,children:[e.jsxs(P.default,{direction:"column",spacing:1,useFlexGap:!0,children:[e.jsxs("div",{className:K.equipos,children:[e.jsx(Z,{name:t.awayName,logo:"https://stg-www.contodobet.com/static/img/landing/EventoSemana/Flamengo.png",size:"compact"}),e.jsx(ue,{text:"vs.",name:"",size:"small"}),e.jsx(Z,{name:t.homeName,logo:"https://stg-www.contodobet.com/static/img/landing/EventoSemana/RealMadrid.png",size:"compact"})]}),e.jsx(At,{text:n(t.start)})]}),e.jsxs(P.default,{direction:"column",spacing:{xs:.5,md:1},useFlexGap:!0,children:[e.jsx(A,{spacing:1,children:((o=(l=(r=t==null?void 0:t.outcome)==null?void 0:r[0])==null?void 0:l.outcomes)!=null?o:[]).map((h,g)=>e.jsx(ce,{text:h.label.toUpperCase()},g))}),e.jsx("div",{className:K.jugadas,children:e.jsx(A,{spacing:1,children:((d=(p=(s=t==null?void 0:t.outcome)==null?void 0:s[0])==null?void 0:p.outcomes)!=null?d:[]).map((h,g)=>e.jsx(L,{variant:"primary",fullHeight:!0,onClick:()=>{me(h.id)},children:(h.odds/1e3).toFixed(2)},g))})})]})]})})]})}function Me({items:t,title:n="Destacados",iconUrl:a,onViewMore:r,className:l=""}){const o=O.useRef(null),[s,p]=O.useState({isStart:!0,isEnd:!1}),d=()=>{var u;(u=o.current)==null||u.prev()},h=()=>{var u;(u=o.current)==null||u.next(),console.log("items: ",t)},g=()=>{window.location.href="https://www.olimpo.bet/promociones"},k=u=>{if(!u||typeof window=="undefined")return;const E=`https://www.olimpo.bet/promociones/${encodeURIComponent(u)}`;window.location.href=E},i=l||void 0;return e.jsxs("section",{className:i,style:{width:"100%"},children:[e.jsxs("header",{style:{display:"grid",gridTemplateColumns:"1fr auto auto",alignItems:"center",columnGap:12,rowGap:8,marginBottom:16},children:[e.jsx(U,{title:n,iconUrl:a,size:"md"}),e.jsxs("div",{style:{display:"flex",gap:8},children:[e.jsx(L,{ariaLabel:"Anterior",variant:"secondary",iconOnly:!0,leftIcon:e.jsx(X.ChevronLeftRounded,{}),onClick:d,disabled:s.isStart}),e.jsx(L,{ariaLabel:"Siguiente",variant:"secondary",iconOnly:!0,rightIcon:e.jsx(X.ChevronRightRounded,{}),onClick:h,disabled:s.isEnd})]}),e.jsx(L,{variant:"secondary",onClick:g,children:"Ver más"})]}),e.jsx(V,{ref:o,items:t,perPage:2,gap:"16px",options:{autoWidth:!0,gap:"12px",trimSpace:!1,pagination:!1,arrows:!1,drag:!0,focus:"start"},breakpoints:{768:{perPage:2,focus:"start"},1024:{perPage:2.5,focus:"start"}},renderItem:u=>e.jsx("div",{style:{textAlign:"center",marginTop:16,cursor:"pointer"},onClick:()=>k(u.promotion),children:e.jsx("img",{src:`https://olimpo.bet${u.image!==""?u.image:u.summary_image}`,alt:u.title,style:{width:"100%",height:window.innerWidth<768?"80px":"137px",borderRadius:8,display:"block",objectFit:"cover"}})},`${u.title}-${u.image}`),onMove:({isStart:u,isEnd:_})=>p({isStart:u,isEnd:_})})]})}function oe(t,{basePath:n="/casino",src:a,demo:r=!1,host:l="https://www.olimpo.bet"}={}){if(typeof window=="undefined")return;const o=t==null?void 0:t.machine;if(!o)return;const s=new URLSearchParams;s.set("machine",String(o)),r&&s.set("demo","1"),window.location.href=`${l}${n}?${s.toString()}`}function xe({items:t,title:n="Top Juegos",iconUrl:a,onCardClick:r}){const l=O.useMemo(()=>(t!=null?t:[]).map((p,d)=>{var h;return{...p,orden:(h=p.orden)!=null?h:d+1,_originalIndex:d}}).sort((p,d)=>p.orden!=null&&d.orden!=null?p.orden-d.orden:p._originalIndex-d._originalIndex),[t]),o=!t||t.length===0,s=o?Array.from({length:6}):l.slice(0,6);return e.jsx("section",{style:{width:"100%"},children:e.jsxs(P.default,{direction:"column",spacing:2,useFlexGap:!0,children:[e.jsx(U,{title:n,iconUrl:a,size:"md"}),e.jsx(C.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:s.map((p,d)=>{var h,g;return e.jsx(ke,{imageUrl:o?"":`https://olimpo.bet${(h=p.logo)!=null?h:""}`,orden:o?d+1:p.orden,loading:o,onClick:o?void 0:()=>{r?r(p):oe(p,{basePath:"/casino"})}},o?`sk-${d}`:(g=p.machine)!=null?g:`${d}`)})})]})})}const Ht=(t,n)=>{var a,r;return(r=(a=t.orden)!=null?a:t.machine)!=null?r:n},Le=({items:t,title:n="Casino en vivo",subtitle:a="Disfruta la emoción en tus juegos favoritos y gana en tiempo real.",backgroundMobileUrl:r="",backgroundDesktopUrl:l="",onCardClick:o,onViewMore:s,className:p})=>(console.log("items: ",t),e.jsxs(C.default,{className:p,sx:{position:"relative",color:"white",overflow:"hidden"},children:[e.jsx(C.default,{sx:{position:"absolute",inset:0,backgroundImage:{xs:`
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),M=require("@mui/material"),k=require("react"),we=require("@splidejs/react-splide"),Qe=require("@mui/material/Box"),Ye=require("@mui/material/Skeleton"),Ze=require("@mui/material/Typography"),et=require("@mui/material/Stack"),X=require("@mui/icons-material"),tt=require("@mui/icons-material/ChevronLeftRounded"),ot=require("@mui/icons-material/ChevronRightRounded"),nt=require("@mui/material/useMediaQuery"),ge=require("firebase/firestore"),q=t=>t&&t.__esModule?t:{default:t},at=q(k),O=q(Qe),P=q(Ye),U=q(Ze),T=q(et),Se=q(tt),Ce=q(ot),st=q(nt);function L({children:t,onClick:n,href:a,target:s,rel:d,type:o="button",disabled:r=!1,variant:u="primary",size:p,fullWidth:x=!1,fullHeight:g=!1,className:C="",ariaLabel:i,leftIcon:l,rightIcon:h,iconOnly:E}){const _=!!t&&t!==!0,b=(!!l?1:0)+(!!h?1:0)==1,y=E!=null?E:b&&!_,B=["orc-btn",u==="secondary"?"orc-btn--secondary":u==="tertiary"?"orc-btn--tertiary":"orc-btn--primary",p?`orc-btn--${p}`:"",x?"orc-btn--full":"",g?"orc-btn--fullHeight":"",y?"orc-btn--iconOnly":"",C].filter(Boolean).join(" "),$=e.jsxs(e.Fragment,{children:[l&&e.jsx("span",{className:"orc-btn__icon",children:l}),!y&&e.jsx("span",{className:"orc-btn__label",children:t}),h&&e.jsx("span",{className:"orc-btn__icon",children:h})]}),S=r?!0:void 0;return a?e.jsx(M.Link,{href:a,target:s,rel:d,"aria-label":i,"aria-disabled":S,tabIndex:S?-1:void 0,className:B,onClick:S?c=>c.preventDefault():n,children:$}):e.jsx("button",{type:o,onClick:n,disabled:!!S,"aria-label":i,className:B,children:$})}function D({title:t,iconUrl:n,size:a="md",className:s=""}){const o=["orc-section-title",a?`orc-section-title--${a}`:"",s].filter(Boolean).join(" ");return e.jsxs("div",{className:o,children:[n&&e.jsx("img",{src:n,alt:"",className:"orc-section-title__icon"}),e.jsx("h2",{className:"orc-section-title__title",children:t})]})}const ce=({total:t,active:n,onSelect:a,className:s=""})=>{if(t<=1)return null;const d=["orc-dots",s].filter(Boolean).join(" ");return e.jsx("div",{className:d,role:"tablist",children:Array.from({length:t}).map((o,r)=>e.jsx("span",{className:"orc-dots__cell",children:e.jsx("button",{type:"button",role:"tab","aria-selected":r===n,"aria-label":`Ir al slide ${r+1}`,className:"orc-dots__dot"+(r===n?" orc-dots__dot--active":""),onClick:()=>a==null?void 0:a(r)})},r))})};function A({children:t,minWidth:n=32,spacing:a=2,justify:s="stretch",columns:d=null}){const o=d||`repeat(auto-fit, minmax(${n}px, 1fr))`,r=typeof a=="number"?`${a*8}px`:a;return e.jsx("div",{style:{display:"grid",gridTemplateColumns:o,justifyItems:s,gap:r,height:"inherit"},children:t})}function ie({src:t,alt:n}){return e.jsx(M.Box,{sx:{position:"relative",width:{xs:80,md:160},height:{xs:48,md:96},display:"inline-block"},children:e.jsx(M.Box,{component:"img",src:t,alt:n,sx:{position:"absolute",top:0,left:0,width:"100%",height:"100%",objectFit:"contain"}})})}const rt="oraculo__OraculoEventTitle-module__contenedor___rg1vw",it="oraculo__OraculoEventTitle-module__flexGroup___jMLFO",lt="oraculo__OraculoEventTitle-module__subtitle___TmHna",ne={contenedor:rt,flexGroup:it,subtitle:lt};function ct({title:t,subtitle:n}){return e.jsxs("div",{className:ne.contenedor,children:[e.jsx("span",{style:{fontWeight:700,fontSize:"12px",lineHeight:"16px"},children:t}),n&&e.jsxs("div",{className:ne.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:ne.subtitle,children:n}),e.jsx("div",{})]})]})}function Ee({text:t,color:n="#ff3b3b",textColor:a="#fff"}){return e.jsx("span",{className:"oli-font",style:{backgroundColor:n,color:a,borderRadius:"8px",padding:"4px 8px",fontSize:"12px",lineHeight:"16px",fontWeight:700,width:"41px",height:"16px",textAlign:"center"},children:t})}function Oe({live:t,time:n}){return e.jsxs("div",{className:"oli-font",style:{display:"flex",alignItems:"center",gap:"8px"},children:[t&&e.jsx(Ee,{text:"En vivo"}),n&&e.jsx("span",{style:{fontSize:"14px",fontWeight:400,lineHeight:"18px",paddingTop:"4px"},children:n})]})}function ke({title:t,subtitle:n,live:a=!1,time:s=""}){return e.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",color:"#FFFFFF"},children:[e.jsx(ct,{title:t,subtitle:n}),e.jsx(Oe,{live:a,time:s})]})}const dt="oraculo__OraculoEventLabel-module__label___c64Xw",ut={label:dt};function de({text:t}){return e.jsx("span",{className:ut.label,children:t})}const pt="oraculo__OraculoEventLeague-module__container___rdk4F",mt={container:pt};function ue({title:t}){return e.jsx("div",{className:mt.container,children:t.toUpperCase()})}const xt="oraculo__OraculoEventScore-module__scoreWrapper___fWwEr",ft="oraculo__OraculoEventScore-module__name___r4uL6",ht="oraculo__OraculoEventScore-module__score___Xl03M",gt="oraculo__OraculoEventScore-module__normal___cCNFz",bt="oraculo__OraculoEventScore-module__small___fVt8E",J={scoreWrapper:xt,name:ft,score:ht,normal:gt,small:bt};function pe({text:t,name:n,size:a="normal"}){return e.jsxs("div",{className:`${J.scoreWrapper} ${J[a]}`,children:[e.jsx("div",{className:`${J.score} ${J[a]}`,children:t}),n&&e.jsx("span",{className:`${J.name} ${J[a]}`,children:n})]})}const _t="oraculo__OraculoEventTeamInfo-module__team___UfpUs",jt="oraculo__OraculoEventTeamInfo-module__regular___ag826",vt="oraculo__OraculoEventTeamInfo-module__compact___RCNOs",yt="oraculo__OraculoEventTeamInfo-module__logo___fKCl3",wt="oraculo__OraculoEventTeamInfo-module__name___4ikm-",ee={team:_t,regular:jt,compact:vt,logo:yt,name:wt};function Z({name:t,logo:n,size:a="regular"}){return e.jsxs("div",{className:`oli-font ${ee.team} ${ee[a]}`,children:[e.jsx("img",{loading:"lazy",src:n,alt:t,className:ee.logo}),e.jsx("span",{className:ee.name,children:t})]})}const St=we.Splide,Ct=we.SplideSlide,V=k.forwardRef(({items:t=[],renderItem:n,perPage:a=1,gap:s="0px",breakpoints:d,options:o={},className:r="",onMove:u,useIndexAsKey:p=!1},x)=>{const g=k.useRef(null);k.useImperativeHandle(x,()=>({next:()=>{var h;return(h=g.current)==null?void 0:h.go(">")},prev:()=>{var h;return(h=g.current)==null?void 0:h.go("<")},go:h=>{var E;return(E=g.current)==null?void 0:E.go(h)}}));const C=k.useCallback(h=>{const E=h.Components.Controller,_=E.getIndex(),w=E.getEnd(),N=_===0,b=_>=w,y=h.Components.Slides.getLength();u==null||u({index:_,isStart:N,isEnd:b,total:y})},[u]),i=k.useCallback(h=>{C(h)},[C]),l={type:"slide",trimSpace:!1,drag:!0,pagination:!1,arrows:!1,rewind:!1,focus:"start",autoWidth:!1,perPage:a,gap:s,breakpoints:d,...o};return e.jsx("div",{className:r,style:{width:"100%"},children:e.jsx(St,{ref:g,options:l,onMove:C,onMounted:i,children:t.map((h,E)=>{var _;return e.jsx(Ct,{children:n(h,E)},p?E:(_=h.id)!=null?_:E)})})})}),Y=({imageUrl:t,onClick:n,size:a="sm",fillParent:s=!1})=>{const d=a==="lg"?{w:280,h:352}:{w:152,h:168},o=u=>{u.stopPropagation(),n==null||n()},r=s?{width:"100%",height:"100%"}:{width:`${d.w}px`,height:`${d.h}px`};return e.jsxs(O.default,{onClick:n,role:"button",sx:{position:"relative",borderRadius:"12px",overflow:"hidden",boxSizing:"border-box",transition:"transform .15s ease, box-shadow .15s ease",...r,"&:hover":{transform:"translateY(-2px)",boxShadow:8,cursor:"pointer"},"&:hover .oraculo-game-card-overlay":{opacity:1},"&:hover .oraculo-game-card-btn":{opacity:1,transform:"translate(-50%, -50%) scale(1)",pointerEvents:"auto"}},children:[e.jsx("img",{src:t,alt:"Juego de casino",loading:"lazy",style:{width:"100%",height:"100%",objectFit:"cover",display:"block",borderRadius:"inherit"}}),e.jsx(O.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(O.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(L,{variant:"primary",size:"md",onClick:o,children:"JUGAR"})})]})};function Ie({imageUrl:t,orden:n=1,onClick:a,loading:s=!1,sizes:d={xs:{w:104,h:112,r:18,font:48},md:{w:186,h:264,r:22.6,font:64}}}){var C,i,l,h;const o=(E,_)=>{var w,N,b,y;return{xs:(N=(w=d.xs)==null?void 0:w[E])!=null?N:_,md:(y=(b=d.md)==null?void 0:b[E])!=null?y:_}},r=o("w",186),u=o("h",264),p=o("r",22.6),x=o("font",64),g={xs:Math.round(((i=(C=d.xs)==null?void 0:C.font)!=null?i:64)*.28),md:Math.round(((h=(l=d.md)==null?void 0:l.font)!=null?h:64)*.28)};return e.jsxs(O.default,{sx:{position:"relative",width:"100%",maxWidth:{xs:`${r.xs}px`,md:`${r.md}px`},aspectRatio:{xs:`${r.xs}/${u.xs}`,md:`${r.md}/${u.md}`},borderRadius:{xs:`${p.xs}px`,md:`${p.md}px`},boxSizing:"border-box",overflow:"visible",pb:{xs:`${g.xs}px`,md:`${g.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(O.default,{sx:{position:"absolute",inset:0,borderRadius:"inherit",overflow:"hidden"},children:s?e.jsx(P.default,{variant:"rectangular",width:"100%",height:"100%",sx:{bgcolor:"rgba(255,255,255,0.10)","&::after":{background:"linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent)"}}}):e.jsx(Y,{imageUrl:t,onClick:a,size:"lg",fillParent:!0})}),e.jsx(O.default,{component:"span",sx:{position:"absolute",left:8,bottom:{xs:`-${g.xs}px`,md:`-${g.md}px`},fontFamily:"secondary",fontSize:{xs:`${x.xs}px`,md:`${x.md}px`},lineHeight:1,color:"#3CC666",WebkitTextStroke:"1px #9ee86e",zIndex:3,userSelect:"none"},children:n})]})}const Ne=({logo:t,provider:n,providerName:a,machine:s,onClick:d})=>{var o;return e.jsxs(O.default,{onClick:d,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(O.default,{component:"img",src:t,alt:`Juego ${s!=null?s:""}`,sx:{position:"absolute",inset:0,width:"100%",height:"100%",objectFit:"cover",display:"block"}}),e.jsx(O.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(U.default,{sx:{color:"#fff",fontWeight:700,fontSize:{xs:11,md:14},textTransform:"capitalize"},children:(o=n!=null?n:a)!=null?o:""})})]})},ae=12,se=({r:t=16})=>e.jsx(O.default,{sx:{width:"100%",height:"100%",borderRadius:t,overflow:"hidden"},children:e.jsx(P.default,{variant:"rectangular",width:"100%",height:"100%",sx:{bgcolor:"rgba(255,255,255,0.10)","&::after":{background:"linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent)"}}})}),me=({items:t,layout:n="grid",onClick:a,loading:s=!1,gridSkeletonCount:d=4})=>{var o,r;if(n==="mosaic"){const u=t[0];console.log("big: ",u);const p=t.slice(1,5);return e.jsxs(O.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:`${ae}px`,rowGap:`${ae}px`,alignItems:"stretch",justifyItems:"stretch"},children:[e.jsx(O.default,{sx:{width:{xs:184,md:280},height:{xs:234,md:352},gridRow:"1 / span 2",overflow:"hidden",borderRadius:2},children:s?e.jsx(se,{}):u&&e.jsx(Y,{imageUrl:`https://olimpo.bet${(r=(o=u.background)!=null?o:u.imageUrl)!=null?r:""}`,size:"lg",fillParent:!0,onClick:()=>a==null?void 0:a(u,0)})}),(s?Array.from({length:4}):p).map((x,g)=>{var C,i;return e.jsx(O.default,{sx:{width:{xs:104,md:152},height:{xs:112,md:168},overflow:"hidden",borderRadius:2},children:s?e.jsx(se,{}):e.jsx(Y,{imageUrl:`https://olimpo.bet${(i=(C=x.background)!=null?C:x.imageUrl)!=null?i:""}`,size:"sm",fillParent:!0,onClick:()=>a==null?void 0:a(x,g+1)})},s?`sk-${g}`:x.id)})]})}return e.jsx(O.default,{sx:{display:"grid",gridTemplateColumns:{xs:"repeat(2, 104px)",md:"repeat(2, 152px)"},gridTemplateRows:{xs:"repeat(2, 112px)",md:"repeat(2, 168px)"},gap:`${ae}px`,gridAutoFlow:"column"},children:(s?Array.from({length:d}):t).map((u,p)=>{var x,g,C;return e.jsx(O.default,{sx:{overflow:"hidden",borderRadius:2},children:s?e.jsx(se,{}):e.jsx(Y,{imageUrl:`https://olimpo.bet${(g=(x=u.background)!=null?x:u.imageUrl)!=null?g:""}`,size:"sm",fillParent:!0,onClick:()=>a==null?void 0:a(u,p)})},s?`sk-${p}`:(C=u.id)!=null?C:p)})})},le=({title:t,amount:n,subtitle:a,buttonText:s,onButtonClick:d,backgroundImage:o,alt:r,className:u="",variant:p="small"})=>{const x=n?n.slice(0,2):"",g=n?n.slice(2):"",C=p==="large";return e.jsxs(O.default,{className:u,sx:{position:"relative",width:"100%",maxWidth:{xs:328,md:C?618:456},mx:"auto"},children:[o&&e.jsx(O.default,{sx:{position:"relative",width:"100%",aspectRatio:{xs:"328 / 188",md:C?"618 / 346":"456 / 272"},borderRadius:"14px",overflow:"hidden"},children:e.jsx(O.default,{component:"img",src:o,alt:r!=null?r:"Fondo promocional",sx:{width:"100%",height:"100%",objectFit:"cover",objectPosition:{xs:"50% 0%",md:"45% 0%"},display:"block"}})}),e.jsx(O.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(O.default,{sx:{maxWidth:"60%",display:"flex",flexDirection:"column",alignItems:"center"},children:[t&&e.jsx(U.default,{sx:{fontSize:{xs:12,md:20},fontWeight:400,color:"#e7f8ff"},children:t}),n&&e.jsxs(O.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(O.default,{component:"span",sx:{fontSize:{xs:35,md:48},mr:.5},children:x}),e.jsx(O.default,{component:"span",sx:{fontSize:{xs:52,md:77}},children:g})]}),a&&e.jsx(U.default,{sx:{pb:"20px",fontSize:14,fontWeight:600,color:"#e7f8ff"},children:a}),s&&e.jsx(L,{onClick:d,children:s})]})})]})},$e=({text:t,buttonLabel:n="Conoce más",onClick:a,imgAlt:s="Club Olimpo",imgSrcMobile:d,imgSrcDesktopBg:o,imgSrcDesktopLogo:r})=>e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"orc-co-bgMobile",children:e.jsx("img",{src:d,alt:s,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:`${s} fondo`,className:"orc-co-bgDesktopImg"})}),e.jsxs("div",{className:"orc-co-desktopContent",children:[r&&e.jsx("img",{src:r,alt:`${s} logo`,className:"orc-co-logoImg"}),e.jsx("p",{className:"orc-co-captionDesktop",children:t}),e.jsx(L,{onClick:a,variant:"primary",size:"md",children:n})]})]}),e.jsxs("div",{className:"orc-co-bottom",children:[e.jsx("p",{className:"orc-co-caption",children:t}),e.jsx(L,{onClick:a,variant:"primary",size:"md",children:n})]})]}),Et="oraculo__OraculoEventCombinadasCard-module__card___ulQeY",Ot="oraculo__OraculoEventCombinadasCard-module__combinadas___Gxrld",kt="oraculo__OraculoEventCombinadasCard-module__apuestaItem___YnYMy",It="oraculo__OraculoEventCombinadasCard-module__lineContainer___G5rbU",Nt="oraculo__OraculoEventCombinadasCard-module__circle___eehm-",$t="oraculo__OraculoEventCombinadasCard-module__line___Eb2pK",Bt="oraculo__OraculoEventCombinadasCard-module__apuestaText___b5s7S",Rt="oraculo__OraculoEventCombinadasCard-module__cuotaTotal___Lohvu",H={card:Et,combinadas:Ot,apuestaItem:kt,lineContainer:It,circle:Nt,line:$t,apuestaText:Bt,cuotaTotal:Rt};function xe(t){const n=Array.isArray(t)?t:[t];sessionStorage.setItem("landingOutcomes",JSON.stringify(n)),window.location.href="/deportes#in-play"}function Tt(){window.location.href="/deportes#in-play"}function Pt(){window.location.href="/deportes#sports-hub/football"}function Mt(){window.location.href="/deportes#specials"}function Be({event:t}){var s;function n(d){var g;const o=(g=d.betoffers)!=null?g:[],r=d.homeName,u=d.awayName,p=o.map(C=>{var E,_,w,N,b;let i=C.outcomes[0],l="",h=i!=null&&i.line?i.line/1e3:"";return["Más de","Mas de","Over"].includes(i==null?void 0:i.label)?(l=`Más de ${h}`,i!=null&&i.participant&&(l=`${i.participant} - ${l}`)):["Menos de","Menos"].includes(i==null?void 0:i.label)?(l=`Menos de ${h}`,i!=null&&i.participant&&(l=`${i.participant} - ${l}`)):["Sí","No"].includes(i==null?void 0:i.label)?(l=i==null?void 0:i.label,i!=null&&i.participant&&(l=`${i.participant} - ${l}`)):["1X","12","X2"].includes(i==null?void 0:i.label)?i.label==="1X"?l=`${r} o Empate`:i.label==="12"?l=`${r} o ${u}`:i.label==="X2"&&(l=`${u} o Empate`):(i!=null&&i.participant?l=i.participant:l=(E=i==null?void 0:i.label)!=null?E:"",h!==""&&l===i.label&&(l=`${i.label} ${h}`)),{id:(_=i==null?void 0:i.id)!=null?_:0,value:l,label:C.criterion.label,odds:(w=i==null?void 0:i.odds)!=null?w:0,bl:(N=i==null?void 0:i.label)!=null?N:0,position:(b=i==null?void 0:i.position)!=null?b:0}}),x=p.reduce((C,i)=>C+i.odds,0)/1e3;return{outcomes:p,total:x.toFixed(2)}}const a=n(t);return e.jsxs("div",{className:H.card,children:[e.jsx("div",{className:H.combinadas,children:e.jsxs(T.default,{direction:"column",spacing:.5,useFlexGap:!0,children:[e.jsx(D,{title:t.name,iconUrl:"/assets/img/home/Combinadas/pelota.png",size:"xs"}),e.jsx("img",{loading:"lazy",src:"/assets/img/home/Combinadas/line.png"}),e.jsx(T.default,{direction:"column",spacing:.5,useFlexGap:!0,children:a.outcomes.sort((d,o)=>d.position-o.position).map((d,o)=>e.jsxs("div",{className:H.apuestaItem,children:[e.jsxs("div",{className:H.lineContainer,children:[e.jsx("div",{className:H.circle}),o<a.outcomes.length-1&&e.jsx("div",{className:H.line})]}),e.jsxs("div",{className:H.apuestaText,children:[e.jsx("strong",{children:d.value})," ","| ",d.label]})]},o))})]})}),e.jsxs("button",{onClick:()=>{var d,o;return xe((o=(d=a==null?void 0:a.outcomes)==null?void 0:d.map(r=>r==null?void 0:r.id))!=null?o:[])},className:H.cuotaTotal,children:[e.jsxs("span",{children:["Cuota total: ",e.jsx("strong",{children:(((s=t.combinadoTotal)!=null?s:0)/1e3).toFixed(2)})]}),e.jsx("img",{loading:"lazy",src:"/assets/img/home/Combinadas/cuotaTotal.svg",alt:"cuota total"})]})]})}const G={"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 Lt({children:t,onClick:n,href:a,target:s,rel:d,type:o="button",disabled:r=!1,variant:u="primary",size:p,fullWidth:x=!1,fullHeight:g=!1,className:C="",ariaLabel:i,leftIcon:l,rightIcon:h,iconOnly:E}){const _=!!t&&t!==!0,b=(!!l?1:0)+(!!h?1:0)==1,y=E!=null?E:b&&!_,B=[G["orc-btn"],G[`orc-btn--${u}`],p?G[`orc-btn--${p}`]:"",x?G["orc-btn--full"]:"",g?G["orc-btn--fullHeight"]:"",y?G["orc-btn--iconOnly"]:"",C].filter(Boolean).join(" "),$=e.jsxs(e.Fragment,{children:[l&&e.jsx("span",{className:G["orc-btn__icon"],children:l}),!y&&e.jsx("span",{className:G["orc-btn__label"],children:t}),h&&e.jsx("span",{className:G["orc-btn__icon"],children:h})]}),S=r?!0:void 0;return a?e.jsx(M.Link,{href:a,target:s,rel:d,"aria-label":i,"aria-disabled":S,tabIndex:S?-1:void 0,className:B,onClick:S?c=>c.preventDefault():n,children:$}):e.jsx("button",{type:o,onClick:n,disabled:!!S,"aria-label":i,className:B,children:$})}const Ft="oraculo__OraculoEventEnVivoCard-module__cardWrapper___6b-cT",Re={cardWrapper:Ft};function Te({event:t,liveData:n,betOffers:a}){var d,o,r,u,p,x,g,C;const s=a==null?void 0:a.find(i=>{var l;return((l=i.betOfferType)==null?void 0:l.id)===2});return e.jsx("div",{className:Re.cardWrapper,children:e.jsxs(T.default,{direction:"column",spacing:1,useFlexGap:!0,children:[e.jsxs(T.default,{direction:"column",spacing:1.5,useFlexGap:!0,children:[e.jsx(ke,{title:(d=t.path[0].name)!=null?d:"",subtitle:t.group,live:!0,time:((o=n==null?void 0:n.matchClock)==null?void 0:o.minute)!=null?`${n.matchClock.minute}'`:""}),e.jsx("div",{style:{padding:"0 4px"},children:e.jsxs(A,{spacing:1.5,columns:"1fr auto 1fr",children:[e.jsx(Z,{name:t.homeName,logo:"https://stg-www.contodobet.com/static/img/landing/EventoEnVivo/Juventus.png"}),e.jsx(pe,{text:((u=(r=n==null?void 0:n.score)==null?void 0:r.home)!=null?u:0)+":"+((x=(p=n==null?void 0:n.score)==null?void 0:p.away)!=null?x:0),name:"En vivo"}),e.jsx(Z,{name:t.awayName,logo:"https://stg-www.contodobet.com/static/img/landing/EventoEnVivo/Racing.png"})]})})]}),e.jsxs(T.default,{direction:"column",spacing:1,useFlexGap:!0,children:[e.jsx(A,{spacing:1,children:((g=s==null?void 0:s.outcomes)!=null?g:[]).map((i,l)=>e.jsx(de,{text:i.label.toUpperCase()},l))}),e.jsx(A,{spacing:2,children:((C=s==null?void 0:s.outcomes)!=null?C:[]).map((i,l)=>e.jsx(Lt,{variant:"primary",disabled:i.odds==null||(s==null?void 0:s.cashOutStatus)=="SUSPENDED",onClick:()=>{xe(i.id)},children:i.odds===void 0?"":(i.odds/1e3).toFixed(2)},l))})]})]})})}const Wt="oraculo__OraculoEventDate-module__date___xhIlh",zt={date:Wt};function At({text:t}){return e.jsx("div",{className:`oli-font ${zt.date}`,children:t})}const Gt="oraculo__OraculoEventSemanaCard-module__cardContainer___4JuDe",Ut="oraculo__OraculoEventSemanaCard-module__cardBackground___vfalD",Dt="oraculo__OraculoEventSemanaCard-module__jugadas___W8b7H",Vt="oraculo__OraculoEventSemanaCard-module__equipos___G5hLn",K={cardContainer:Gt,cardBackground:Ut,jugadas:Dt,equipos:Vt};function Pe({event:t}){var a,s,d,o,r,u,p;function n(x){const g=new Date(x),C=g.toLocaleDateString("es-ES",{weekday:"short"}).toUpperCase(),i=g.getDate().toString().padStart(2,"0"),l=(g.getMonth()+1).toString().padStart(2,"0");let h=g.toLocaleTimeString("es-PE",{hour:"numeric",minute:"2-digit",hour12:!0}).toUpperCase();return h=h.replace(/\./g,"").replace(/A\s*M/i,"AM").replace(/P\s*M/i,"PM"),`${C} ${i}/${l} | ${h}`}return e.jsxs("div",{className:K.cardContainer,children:[e.jsx(ue,{title:(a=t==null?void 0:t.group)!=null?a:""}),e.jsx("div",{className:K.cardBackground,children:e.jsxs(T.default,{direction:"column",spacing:{xs:.5,md:1},useFlexGap:!0,children:[e.jsxs(T.default,{direction:"column",spacing:1,useFlexGap:!0,children:[e.jsxs("div",{className:K.equipos,children:[e.jsx(Z,{name:t.awayName,logo:"https://stg-www.contodobet.com/static/img/landing/EventoSemana/Flamengo.png",size:"compact"}),e.jsx(pe,{text:"vs.",name:"",size:"small"}),e.jsx(Z,{name:t.homeName,logo:"https://stg-www.contodobet.com/static/img/landing/EventoSemana/RealMadrid.png",size:"compact"})]}),e.jsx(At,{text:n(t.start)})]}),e.jsxs(T.default,{direction:"column",spacing:{xs:.5,md:1},useFlexGap:!0,children:[e.jsx(A,{spacing:1,children:((o=(d=(s=t==null?void 0:t.outcome)==null?void 0:s[0])==null?void 0:d.outcomes)!=null?o:[]).map((x,g)=>e.jsx(de,{text:x.label.toUpperCase()},g))}),e.jsx("div",{className:K.jugadas,children:e.jsx(A,{spacing:1,children:((p=(u=(r=t==null?void 0:t.outcome)==null?void 0:r[0])==null?void 0:u.outcomes)!=null?p:[]).map((x,g)=>e.jsx(L,{variant:"primary",fullHeight:!0,onClick:()=>{xe(x.id)},children:(x.odds/1e3).toFixed(2)},g))})})]})]})})]})}function Me({items:t,title:n="Destacados",iconUrl:a,onViewMore:s,className:d=""}){const o=k.useRef(null),[r,u]=k.useState({isStart:!0,isEnd:!1}),p=()=>{var l;(l=o.current)==null||l.prev()},x=()=>{var l;(l=o.current)==null||l.next(),console.log("items: ",t)},g=()=>{window.location.href="https://www.olimpo.bet/promociones"},C=l=>{if(!l||typeof window=="undefined")return;const E=`https://www.olimpo.bet/promociones/${encodeURIComponent(l)}`;window.location.href=E},i=d||void 0;return e.jsxs("section",{className:i,style:{width:"100%"},children:[e.jsxs("header",{style:{display:"grid",gridTemplateColumns:"1fr auto auto",alignItems:"center",columnGap:12,rowGap:8,marginBottom:16},children:[e.jsx(D,{title:n,iconUrl:a,size:"md"}),e.jsxs("div",{style:{display:"flex",gap:8},children:[e.jsx(L,{ariaLabel:"Anterior",variant:"secondary",iconOnly:!0,leftIcon:e.jsx(X.ChevronLeftRounded,{}),onClick:p,disabled:r.isStart}),e.jsx(L,{ariaLabel:"Siguiente",variant:"secondary",iconOnly:!0,rightIcon:e.jsx(X.ChevronRightRounded,{}),onClick:x,disabled:r.isEnd})]}),e.jsx(L,{variant:"secondary",onClick:g,children:"Ver más"})]}),e.jsx(V,{ref:o,items:t,perPage:2,gap:"16px",options:{autoWidth:!0,gap:"12px",trimSpace:!1,pagination:!1,arrows:!1,drag:!0,focus:"start"},breakpoints:{768:{perPage:2,focus:"start"},1024:{perPage:2.5,focus:"start"}},renderItem:l=>e.jsx("div",{style:{textAlign:"center",marginTop:16,cursor:"pointer"},onClick:()=>C(l.promotion),children:e.jsx("img",{src:`https://olimpo.bet${l.image!==""?l.image:l.summary_image}`,alt:l.title,style:{width:"100%",height:window.innerWidth<768?"80px":"137px",borderRadius:8,display:"block",objectFit:"cover"}})},`${l.title}-${l.image}`),onMove:({isStart:l,isEnd:h})=>u({isStart:l,isEnd:h})})]})}function oe(t,{basePath:n="/casino",src:a,demo:s=!1,host:d="https://www.olimpo.bet"}={}){if(typeof window=="undefined")return;const o=t==null?void 0:t.machine;if(!o)return;const r=new URLSearchParams;r.set("machine",String(o)),s&&r.set("demo","1"),window.location.href=`${d}${n}?${r.toString()}`}function fe({items:t,title:n="Top Juegos",iconUrl:a,onCardClick:s}){const d=k.useMemo(()=>(t!=null?t:[]).map((u,p)=>{var x;return{...u,orden:(x=u.orden)!=null?x:p+1,_originalIndex:p}}).sort((u,p)=>u.orden!=null&&p.orden!=null?u.orden-p.orden:u._originalIndex-p._originalIndex),[t]),o=!t||t.length===0,r=o?Array.from({length:6}):d.slice(0,6);return e.jsx("section",{style:{width:"100%"},children:e.jsxs(T.default,{direction:"column",spacing:2,useFlexGap:!0,children:[e.jsx(D,{title:n,iconUrl:a,size:"md"}),e.jsx(O.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:r.map((u,p)=>{var x,g;return e.jsx(Ie,{imageUrl:o?"":`https://olimpo.bet${(x=u.logo)!=null?x:""}`,orden:o?p+1:u.orden,loading:o,onClick:o?void 0:()=>{s?s(u):oe(u,{basePath:"/casino"})}},o?`sk-${p}`:(g=u.machine)!=null?g:`${p}`)})})]})})}const Ht=(t,n)=>{var a,s;return(s=(a=t.orden)!=null?a:t.machine)!=null?s:n},Le=({items:t,title:n="Casino en vivo",subtitle:a="Disfruta la emoción en tus juegos favoritos y gana en tiempo real.",backgroundMobileUrl:s="",backgroundDesktopUrl:d="",onCardClick:o,onViewMore:r,className:u})=>(console.log("items: ",t),e.jsxs(O.default,{className:u,sx:{position:"relative",color:"white",overflow:"hidden"},children:[e.jsx(O.default,{sx:{position:"absolute",inset:0,backgroundImage:{xs:`
2
2
  linear-gradient(to bottom, #121212 0%, rgba(18,18,18,0) 10%),
3
3
  linear-gradient(to top, #121212 0%, rgba(18,18,18,0) 10%),
4
- url('${r}')
4
+ url('${s}')
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('${l}')
9
- `},backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat",zIndex:0}}),e.jsxs(C.default,{sx:{position:"relative",zIndex:1,maxWidth:1200,height:{xs:"450px",md:"550px"},mx:"auto",px:{xs:2.5,md:6},display:"flex",flexDirection:{xs:"column",md:"row"},alignItems:{xs:"center",md:"center"},justifyContent:"center",gap:{xs:0,md:15},textAlign:{xs:"center",md:"left"}},children:[e.jsxs(P.default,{spacing:3,sx:{maxWidth:{md:280}},children:[e.jsx(D.default,{variant:"h4",sx:{fontWeight:800,fontSize:{xs:24,md:40},WebkitTextStroke:"0.5px rgba(255, 255, 255, .5)",textShadow:"0 0 2px rgba(255, 255, 255, .95),0 0 4px rgba(255, 255, 255, .6),0 1px 0 #898989"},children:n}),e.jsx(D.default,{sx:{fontSize:{xs:14,md:18},color:"rgba(255,255,255,0.9)",marginX:{xs:4,md:0},lineHeight:1.5},children:a}),e.jsx(C.default,{sx:{display:{xs:"none",md:"block"}},children:e.jsx(L,{variant:"primary",size:"md",onClick:()=>(s==null?void 0:s())||(window.location.href="https://www.olimpo.bet/casino-en-vivo"),children:"Ver más"})})]}),e.jsx(C.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((d,h)=>{var g;return e.jsx(Ne,{logo:`https://olimpo.bet${(g=d.logo)!=null?g:""}`,provider:d.provider,providerName:d.web_name,machine:d.machine,onClick:()=>{oe(d,{basePath:"/casino-en-vivo"})}},Ht(d,h))})}),e.jsx(C.default,{sx:{display:{xs:"block",md:"none"}},children:e.jsx(L,{variant:"primary",size:"lg",onClick:()=>(s==null?void 0:s())||(window.location.href="https://www.olimpo.bet/casino-en-vivo"),children:"Ver más"})})]})]})),Fe=(t,n)=>{var a,r;return(r=(a=t.orden)!=null?a:t.machine)!=null?r:n},qt=(t,n=!0,a=4)=>{const r=t.map((s,p)=>{var d;return{id:Fe(s,p),imageUrl:(d=s.logo)!=null?d:""}});if(!r.length)return[];const l=[];let o=0;if(n){const s=Math.min(r.length,5);l.push({id:"mosaic-0",kind:"mosaic",items:r.slice(0,s)}),o=s}for(;o<r.length;){const s=Math.min(o+a,r.length);l.push({id:`grid-${o}`,kind:"grid",items:r.slice(o,s)}),o=s}return l},We=({items:t,title:n="Casino",iconUrl:a="/assets/img/home/Casino/diamante.svg",onItemClick:r,onViewMore:l,mosaicFirst:o=!0,gridSize:s=4})=>{const p=O.useRef(null),[d,h]=O.useState({isStart:!0,isEnd:!1}),g=()=>{var b;(b=p.current)==null||b.prev()},k=()=>{var b;(b=p.current)==null||b.next()},i=()=>{window.location.href="https://www.olimpo.bet/casino"},u=(b=!0,y=4)=>{const I=w=>Array.from({length:w},(B,$)=>({id:`sk-${w}-${$}`,imageUrl:""})),f=[];return b&&f.push({id:"mosaic-loading",kind:"mosaic",items:I(5)}),f.push({id:"grid-loading",kind:"grid",items:I(y)}),f},_=!t||t.length===0,E=_?u(o,s):qt(t,o,s);return e.jsx("section",{children:e.jsxs(P.default,{direction:"column",spacing:2,useFlexGap:!0,children:[e.jsxs(C.default,{sx:{display:"grid",gridTemplateColumns:"1fr auto auto",alignItems:"center",columnGap:1.5,rowGap:1},children:[e.jsx(U,{title:n,iconUrl:a,size:"md"}),e.jsxs(C.default,{sx:{display:"flex",gap:1,justifyContent:"flex-end"},children:[e.jsx(L,{ariaLabel:"Anterior",variant:"secondary",iconOnly:!0,leftIcon:e.jsx(we.default,{}),onClick:g,disabled:d.isStart}),e.jsx(L,{ariaLabel:"Siguiente",variant:"secondary",iconOnly:!0,rightIcon:e.jsx(Se.default,{}),onClick:k,disabled:d.isEnd})]}),e.jsx(C.default,{sx:{justifySelf:"end"},children:e.jsx(L,{variant:"secondary",onClick:i,children:"Ver más"})})]}),e.jsx(V,{ref:p,items:E,perPage:1,gap:"0px",options:{autoWidth:!0,gap:"12px",trimSpace:!1,pagination:!1,arrows:!1,drag:!0,focus:"start"},renderItem:b=>e.jsx("div",{style:{alignSelf:"start"},children:e.jsx(pe,{items:b.items,layout:b.kind==="mosaic"?"mosaic":"grid",loading:_,onClick:y=>{const I=t.find((f,w)=>Fe(f,w)===y.id);_||I&&oe(I,{basePath:"/casino"})}})}),onMove:({isStart:b,isEnd:y})=>h({isStart:b,isEnd:y})})]})})},ze=(t,n)=>{var a,r;return(r=(a=t.orden)!=null?a:t.machine)!=null?r:n},Kt=(t,n=!0,a=4)=>{const r=t.map((s,p)=>{var d;return{id:ze(s,p),imageUrl:(d=s.logo)!=null?d:""}});if(!r.length)return[];const l=[];let o=0;if(n){const s=Math.min(r.length,5);l.push({id:"mosaic-0",kind:"mosaic",items:r.slice(0,s)}),o=s}for(;o<r.length;){const s=Math.min(o+a,r.length);l.push({id:`grid-${o}`,kind:"grid",items:r.slice(o,s)}),o=s}return l},Ae=({items:t,title:n="Virtuales",iconUrl:a="/assets/img/home/Virtuales/virtuales.svg",onItemClick:r,onViewMore:l,mosaicFirst:o=!0,gridSize:s=4})=>{const p=O.useRef(null),[d,h]=O.useState({isStart:!0,isEnd:!1}),g=()=>{var b;(b=p.current)==null||b.prev()},k=()=>{var b;(b=p.current)==null||b.next()},i=()=>{window.location.href="https://www.olimpo.bet/juegos-virtuales"},u=(b=!0,y=4)=>{const I=w=>Array.from({length:w},(B,$)=>({id:`sk-${w}-${$}`,imageUrl:""})),f=[];return b&&f.push({id:"mosaic-loading",kind:"mosaic",items:I(5)}),f.push({id:"grid-loading",kind:"grid",items:I(y)}),f},_=!t||t.length===0,E=_?u(o,s):Kt(t,o,s);return e.jsx("section",{children:e.jsxs(P.default,{direction:"column",spacing:2,useFlexGap:!0,children:[e.jsxs(C.default,{sx:{display:"grid",gridTemplateColumns:"1fr auto auto",alignItems:"center",columnGap:1.5,rowGap:1},children:[e.jsx(U,{title:n,iconUrl:a,size:"md"}),e.jsxs(C.default,{sx:{display:"flex",gap:1,justifyContent:"flex-end"},children:[e.jsx(L,{ariaLabel:"Anterior",variant:"secondary",iconOnly:!0,leftIcon:e.jsx(we.default,{}),onClick:g,disabled:d.isStart}),e.jsx(L,{ariaLabel:"Siguiente",variant:"secondary",iconOnly:!0,rightIcon:e.jsx(Se.default,{}),onClick:k,disabled:d.isEnd})]}),e.jsx(C.default,{sx:{justifySelf:"end"},children:e.jsx(L,{variant:"secondary",onClick:i,children:"Ver más"})})]}),e.jsx(V,{ref:p,items:E,perPage:1,gap:"0",options:{autoWidth:!0,gap:"12px",trimSpace:!1,pagination:!1,arrows:!1,drag:!0,focus:"start",perMove:1},renderItem:b=>e.jsx("div",{style:{alignSelf:"start"},children:e.jsx(pe,{items:b.items,layout:b.kind==="mosaic"?"mosaic":"grid",loading:_,onClick:y=>{const I=t.find((f,w)=>ze(f,w)===y.id);_||I&&oe(I,{basePath:"/casino"})}})}),onMove:({isStart:b,isEnd:y})=>h({isStart:b,isEnd:y})})]})})},Jt=t=>({position:"relative",py:8,color:"#fff",backgroundImage:`
8
+ url('${d}')
9
+ `},backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat",zIndex:0}}),e.jsxs(O.default,{sx:{position:"relative",zIndex:1,maxWidth:1200,height:{xs:"450px",md:"550px"},mx:"auto",px:{xs:2.5,md:6},display:"flex",flexDirection:{xs:"column",md:"row"},alignItems:{xs:"center",md:"center"},justifyContent:"center",gap:{xs:0,md:15},textAlign:{xs:"center",md:"left"}},children:[e.jsxs(T.default,{spacing:3,sx:{maxWidth:{md:280}},children:[e.jsx(U.default,{variant:"h4",sx:{fontWeight:800,fontSize:{xs:24,md:40},WebkitTextStroke:"0.5px rgba(255, 255, 255, .5)",textShadow:"0 0 2px rgba(255, 255, 255, .95),0 0 4px rgba(255, 255, 255, .6),0 1px 0 #898989"},children:n}),e.jsx(U.default,{sx:{fontSize:{xs:14,md:18},color:"rgba(255,255,255,0.9)",marginX:{xs:4,md:0},lineHeight:1.5},children:a}),e.jsx(O.default,{sx:{display:{xs:"none",md:"block"}},children:e.jsx(L,{variant:"primary",size:"md",onClick:()=>(r==null?void 0:r())||(window.location.href="https://www.olimpo.bet/casino-en-vivo"),children:"Ver más"})})]}),e.jsx(O.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((p,x)=>{var g;return e.jsx(Ne,{logo:`https://olimpo.bet${(g=p.logo)!=null?g:""}`,provider:p.provider,providerName:p.web_name,machine:p.machine,onClick:()=>{oe(p,{basePath:"/casino-en-vivo"})}},Ht(p,x))})}),e.jsx(O.default,{sx:{display:{xs:"block",md:"none"}},children:e.jsx(L,{variant:"primary",size:"lg",onClick:()=>(r==null?void 0:r())||(window.location.href="https://www.olimpo.bet/casino-en-vivo"),children:"Ver más"})})]})]})),Fe=(t,n)=>{var a,s;return(s=(a=t.orden)!=null?a:t.machine)!=null?s:n},qt=(t,n=!0,a=4)=>{const s=t.map((r,u)=>{var p;return{id:Fe(r,u),imageUrl:(p=r.logo)!=null?p:"",background:r.background}});if(!s.length)return[];const d=[];let o=0;if(n){const r=Math.min(s.length,5);d.push({id:"mosaic-0",kind:"mosaic",items:s.slice(0,r)}),o=r}for(;o<s.length;){const r=Math.min(o+a,s.length);d.push({id:`grid-${o}`,kind:"grid",items:s.slice(o,r)}),o=r}return d},We=({items:t,title:n="Casino",iconUrl:a="/assets/img/home/Casino/diamante.svg",onItemClick:s,onViewMore:d,mosaicFirst:o=!0,gridSize:r=4})=>{const u=k.useRef(null),[p,x]=k.useState({isStart:!0,isEnd:!1}),g=()=>{var _;(_=u.current)==null||_.prev()},C=()=>{var _;(_=u.current)==null||_.next()},i=()=>{window.location.href="https://www.olimpo.bet/casino"},l=(_=!0,w=4)=>{const N=y=>Array.from({length:y},(B,$)=>({id:`sk-${y}-${$}`,imageUrl:""})),b=[];return _&&b.push({id:"mosaic-loading",kind:"mosaic",items:N(5)}),b.push({id:"grid-loading",kind:"grid",items:N(w)}),b},h=!t||t.length===0,E=h?l(o,r):qt(t,o,r);return e.jsx("section",{children:e.jsxs(T.default,{direction:"column",spacing:2,useFlexGap:!0,children:[e.jsxs(O.default,{sx:{display:"grid",gridTemplateColumns:"1fr auto auto",alignItems:"center",columnGap:1.5,rowGap:1},children:[e.jsx(D,{title:n,iconUrl:a,size:"md"}),e.jsxs(O.default,{sx:{display:"flex",gap:1,justifyContent:"flex-end"},children:[e.jsx(L,{ariaLabel:"Anterior",variant:"secondary",iconOnly:!0,leftIcon:e.jsx(Se.default,{}),onClick:g,disabled:p.isStart}),e.jsx(L,{ariaLabel:"Siguiente",variant:"secondary",iconOnly:!0,rightIcon:e.jsx(Ce.default,{}),onClick:C,disabled:p.isEnd})]}),e.jsx(O.default,{sx:{justifySelf:"end"},children:e.jsx(L,{variant:"secondary",onClick:i,children:"Ver más"})})]}),e.jsx(V,{ref:u,items:E,perPage:1,gap:"0px",options:{autoWidth:!0,gap:"12px",trimSpace:!1,pagination:!1,arrows:!1,drag:!0,focus:"start"},renderItem:_=>e.jsx("div",{style:{alignSelf:"start"},children:e.jsx(me,{items:_.items,layout:_.kind==="mosaic"?"mosaic":"grid",loading:h,onClick:w=>{const N=t.find((b,y)=>Fe(b,y)===w.id);h||N&&oe(N,{basePath:"/casino"})}})}),onMove:({isStart:_,isEnd:w})=>x({isStart:_,isEnd:w})})]})})},ze=(t,n)=>{var a,s;return(s=(a=t.orden)!=null?a:t.machine)!=null?s:n},Kt=(t,n=!0,a=4)=>{const s=t.map((r,u)=>{var p;return{id:ze(r,u),imageUrl:(p=r.logo)!=null?p:""}});if(!s.length)return[];const d=[];let o=0;if(n){const r=Math.min(s.length,5);d.push({id:"mosaic-0",kind:"mosaic",items:s.slice(0,r)}),o=r}for(;o<s.length;){const r=Math.min(o+a,s.length);d.push({id:`grid-${o}`,kind:"grid",items:s.slice(o,r)}),o=r}return d},Ae=({items:t,title:n="Virtuales",iconUrl:a="/assets/img/home/Virtuales/virtuales.svg",onItemClick:s,onViewMore:d,mosaicFirst:o=!0,gridSize:r=4})=>{const u=k.useRef(null),[p,x]=k.useState({isStart:!0,isEnd:!1}),g=()=>{var _;(_=u.current)==null||_.prev()},C=()=>{var _;(_=u.current)==null||_.next()},i=()=>{window.location.href="https://www.olimpo.bet/juegos-virtuales"},l=(_=!0,w=4)=>{const N=y=>Array.from({length:y},(B,$)=>({id:`sk-${y}-${$}`,imageUrl:""})),b=[];return _&&b.push({id:"mosaic-loading",kind:"mosaic",items:N(5)}),b.push({id:"grid-loading",kind:"grid",items:N(w)}),b},h=!t||t.length===0,E=h?l(o,r):Kt(t,o,r);return e.jsx("section",{children:e.jsxs(T.default,{direction:"column",spacing:2,useFlexGap:!0,children:[e.jsxs(O.default,{sx:{display:"grid",gridTemplateColumns:"1fr auto auto",alignItems:"center",columnGap:1.5,rowGap:1},children:[e.jsx(D,{title:n,iconUrl:a,size:"md"}),e.jsxs(O.default,{sx:{display:"flex",gap:1,justifyContent:"flex-end"},children:[e.jsx(L,{ariaLabel:"Anterior",variant:"secondary",iconOnly:!0,leftIcon:e.jsx(Se.default,{}),onClick:g,disabled:p.isStart}),e.jsx(L,{ariaLabel:"Siguiente",variant:"secondary",iconOnly:!0,rightIcon:e.jsx(Ce.default,{}),onClick:C,disabled:p.isEnd})]}),e.jsx(O.default,{sx:{justifySelf:"end"},children:e.jsx(L,{variant:"secondary",onClick:i,children:"Ver más"})})]}),e.jsx(V,{ref:u,items:E,perPage:1,gap:"0",options:{autoWidth:!0,gap:"12px",trimSpace:!1,pagination:!1,arrows:!1,drag:!0,focus:"start",perMove:1},renderItem:_=>e.jsx("div",{style:{alignSelf:"start"},children:e.jsx(me,{items:_.items,layout:_.kind==="mosaic"?"mosaic":"grid",loading:h,onClick:w=>{const N=t.find((b,y)=>ze(b,y)===w.id);h||N&&oe(N,{basePath:"/casino"})}})}),onMove:({isStart:_,isEnd:w})=>x({isStart:_,isEnd:w})})]})})},Jt=t=>({position:"relative",py:8,color:"#fff",backgroundImage:`
10
10
  linear-gradient(to bottom,#121212 0%, rgba(18,18,18,0) 10%),
11
11
  linear-gradient(to top, #121212 0%, rgba(18,18,18,0) 10%),
12
12
  linear-gradient(to left, #121212 0%, rgba(18,18,18,0) 10%),
13
13
  linear-gradient(to right, #121212 0%, rgba(18,18,18,0) 10%),
14
14
  url("${t}")
15
- `,backgroundRepeat:"no-repeat",backgroundPosition:"center",backgroundSize:"cover"}),ge={textAlign:"center",lineHeight:1.1,mb:1.5},_e={display:"inline-block",fontWeight:600,fontSize:24},be={display:"inline-block",fontSize:24,lineHeight:1.1,WebkitTextStroke:"0.3px rgba(255, 255, 255, .5)",textShadow:`
15
+ `,backgroundRepeat:"no-repeat",backgroundPosition:"center",backgroundSize:"cover"}),be={textAlign:"center",lineHeight:1.1,mb:1.5},_e={display:"inline-block",fontWeight:600,fontSize:24},je={display:"inline-block",fontSize:24,lineHeight:1.1,WebkitTextStroke:"0.3px rgba(255, 255, 255, .5)",textShadow:`
16
16
  0 0 2px rgba(255, 255, 255, .95),
17
17
  0 0 6px rgba(255, 255, 255, .6),
18
18
  0 1px 0 rgba(137, 137, 137, .85)
19
- `},Ge=({headline:t,headline2:n,items:a,backgroundImageUrl:r})=>{const l=t,o=n,s=at.default("(max-width: 767px)"),p=a.length>1,d=r!=null?r:"",h=Jt(d),g=O.useRef(null),[k,i]=O.useState({isStart:!0,isEnd:!1}),[u,_]=O.useState(0),E=b=>e.jsxs(C.default,{sx:{width:"100%",maxWidth:b?600:"100%",mx:b?"auto":0},children:[e.jsx(V,{ref:g,items:a,perPage:1,gap:b?"24px":"12px",breakpoints:b?void 0:{480:{perPage:1,gap:"8px",padding:{left:"8px",right:"8px"}},768:{perPage:1,gap:"12px",padding:{left:"8px",right:"8px"}}},options:{autoWidth:!1},renderItem:y=>e.jsx(Ie,{...y,onButtonClick:y.onButtonClick,isDesktop:b}),onMove:({index:y,isStart:I,isEnd:f})=>{i({isStart:I,isEnd:f}),_(y)}}),p&&e.jsx(C.default,{sx:{mt:2,display:"flex",justifyContent:"center"},children:e.jsx(le,{total:a.length,active:u,onSelect:y=>{var I;_(y),(I=g.current)==null||I.go(y)}})})]});return s?e.jsxs(C.default,{component:"section",sx:{...h,textAlign:"center"},children:[(l||o)&&e.jsxs(C.default,{sx:ge,children:[l&&e.jsx(D.default,{component:"span",sx:_e,children:l}),o&&e.jsxs(e.Fragment,{children:[e.jsx("br",{}),e.jsx(D.default,{component:"span",sx:be,children:o})]})]}),E(!1)]}):e.jsx(C.default,{component:"section",sx:h,children:e.jsxs(C.default,{sx:{maxWidth:1200,mx:"auto",px:15,display:"grid",gridTemplateColumns:"260px minmax(0, 1fr)",alignItems:"center",columnGap:6},children:[(l||o)&&e.jsx(C.default,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-start",minHeight:"100%"},children:e.jsxs(C.default,{sx:{...ge,textAlign:"left",mb:0},children:[l&&e.jsx(D.default,{component:"span",sx:_e,children:l}),o&&e.jsxs(e.Fragment,{children:[e.jsx("br",{}),e.jsx(D.default,{component:"span",sx:be,children:o})]})]})}),e.jsx(C.default,{sx:{display:"flex",justifyContent:"center",alignItems:"center"},children:E(!0)})]})})},De=({className:t="",fullBleed:n=!0,items:a,selectedIndex:r=0,ariaLabel:l})=>{const o=O.useRef(null),s=O.useRef(null);if(!a)return null;const p=()=>{window.location.href="https://www.olimpo.bet/conoce-club-olimpo"},d=Array.isArray(a)?a[r]:a;O.useLayoutEffect(()=>{if(!o.current||!s.current||typeof ResizeObserver=="undefined")return;const g=o.current,k=s.current,i=()=>{g.style.setProperty("--orc-co-bottomH",`${k.offsetHeight+16}px`)},u=new ResizeObserver(i);return u.observe(k),i(),()=>u.disconnect()},[]);const h=["orc-co-wrap",n?"orc-co-fullBleed":"",t].filter(Boolean).join(" ");return e.jsx("section",{ref:o,className:h,"aria-label":l||d.imgAlt||"Club Olimpo",children:e.jsx("div",{ref:s,children:e.jsx($e,{text:d.text,onClick:p,imgAlt:d.imgAlt,imgSrcMobile:d.imgMobile,imgSrcDesktopBg:d.imgDesktopBg,imgSrcDesktopLogo:d.imgDesktopLogo})})})},Xt="oraculo__OraculoSeccionEventoCombinadas-module__controls___Zsta4",Qt={controls:Xt};function Ue({items:t,title:n="Combinadas del Olimpo",iconUrl:a="https://stg-www.contodobet.com/static/img/landing/EventoCombinada/rayoIcon.svg",onViewMore:r,className:l=""}){const o=O.useRef(null),[s,p]=O.useState({isStart:!0,isEnd:!1}),[d,h]=O.useState([]),g="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",k=()=>{var f;(f=o.current)==null||f.prev()},i=()=>{var f;(f=o.current)==null||f.next()},u=()=>{Mt()};async function _(){var f,w,B;try{const S=await(await fetch(g)).json(),c=(B=(w=(f=S==null?void 0:S.group)==null?void 0:f.groups)==null?void 0:w[0])==null?void 0:B.id;if(!c){console.error("Could not extract group ID");return}const m=`https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/prepackcoupon/eventgroup/${c}.json?lang=es_PE&market=PE&client_id=200&channel_id=1&ncid=1764283566783&prePackCouponTags=CUSTOM`,x=await(await fetch(m)).json();h(E(x.events,x.betOffers,x.prePackCoupons))}catch($){console.error("loadDataEventSpecial error:",$)}}function E(f,w,B){const $=[];for(const S of B){const c=y([S]),m=b(S),v=w.reduce((x,j)=>{var R,F;x[j.eventId]||(x[j.eventId]=[]);const N=j.outcomes.filter(W=>c.has(W.id));if(N.length>0){const W=Array.from((F=(R=m==null?void 0:m[0])==null?void 0:R.requiredOutcomeIds)!=null?F:[]),z=N.map(Q=>({...Q,position:W.indexOf(Q.id)}));x[j.eventId].push({...j,outcomes:z})}return x},{});f.forEach(x=>{if(x.id!==S.prePackCouponRows[0].eventId)return;const j=c;let N=null;for(const R of m)if([...R.requiredOutcomeIds].every(W=>j.has(W))){N=R.decimal;break}$.push({...x,combinadoTotal:N,betoffers:v[x.id]||[],couponId:S.id})})}return $}function b(f){var B;const w=[];for(const $ of f.prePackCouponRows)if($.type==="BET_BUILDER"&&((B=$.group)!=null&&B.groups)){const S=new Set;$.group.groups.forEach(c=>{var m;(m=c.outcomes)==null||m.forEach(v=>S.add(v.id))}),w.push({requiredOutcomeIds:S,decimal:$.odds.decimal})}return w}function y(f){var B;const w=new Set;for(const $ of f)for(const S of $.prePackCouponRows)S.type==="BET_BUILDER"&&((B=S.group)!=null&&B.groups)&&S.group.groups.forEach(c=>{var m;(m=c.outcomes)==null||m.forEach(v=>w.add(v.id))}),S.type==="SIMPLE"&&S.outcome&&w.add(S.outcome.id);return w}O.useEffect(()=>{_()},[]);const I=l||void 0;return!d||d.length===0?null:e.jsx("section",{className:I,style:{width:"100%",boxSizing:"border-box"},children:e.jsxs(P.default,{direction:"column",spacing:1.5,useFlexGap:!0,children:[e.jsxs(A,{spacing:1.5,columns:"1fr auto ",justify:"start",children:[e.jsx(U,{title:n,iconUrl:a,size:"md"}),e.jsxs("div",{className:Qt.controls,children:[e.jsxs(A,{spacing:1,columns:"auto auto",children:[e.jsx(L,{ariaLabel:"Anterior",variant:"secondary",iconOnly:!0,leftIcon:e.jsx(X.ChevronLeftRounded,{}),onClick:k,disabled:s.isStart}),e.jsx(L,{ariaLabel:"Siguiente",variant:"secondary",iconOnly:!0,rightIcon:e.jsx(X.ChevronRightRounded,{}),onClick:i,disabled:s.isEnd})]}),e.jsx(L,{variant:"secondary",onClick:u,children:"Ver más"})]})]}),e.jsx(V,{ref:o,items:d.filter(f=>f.combinadoTotal!==null),perPage:void 0,gap:"16px",options:{autoWidth:!0,trimSpace:"move"},useIndexAsKey:!0,breakpoints:{768:{perPage:1.2,gap:"12px",padding:{left:"0px",right:"0px"}}},renderItem:f=>e.jsx(Be,{event:f}),onMove:({isStart:f,isEnd:w})=>p({isStart:f,isEnd:w})})]})})}function Yt({}){return e.jsx("div",{className:Re.cardWrapper,children:e.jsxs(P.default,{direction:"column",spacing:1,children:[e.jsxs(P.default,{spacing:1,direction:"row",children:[e.jsx(T.default,{variant:"text",width:"60%",height:24}),e.jsx(T.default,{variant:"text",width:"39%",height:24})]}),e.jsxs(P.default,{spacing:8,direction:"row",justifyContent:"center",alignItems:"center",children:[e.jsx(T.default,{variant:"circular",width:32,height:40}),e.jsx(T.default,{variant:"text",width:40,height:40}),e.jsx(T.default,{variant:"circular",width:32,height:40})]}),e.jsxs(P.default,{spacing:8,direction:"row",justifyContent:"center",alignItems:"center",children:[e.jsx(T.default,{variant:"text",width:32,height:16}),e.jsx(T.default,{variant:"text",width:40,height:16}),e.jsx(T.default,{variant:"text",width:32,height:16})]}),e.jsxs(P.default,{spacing:2,direction:"row",children:[e.jsx(T.default,{variant:"rounded",width:88,height:16}),e.jsx(T.default,{variant:"rounded",width:88,height:16}),e.jsx(T.default,{variant:"rounded",width:88,height:16})]}),e.jsxs(P.default,{spacing:2,direction:"row",children:[e.jsx(T.default,{variant:"rounded",width:88,height:32}),e.jsx(T.default,{variant:"rounded",width:88,height:32}),e.jsx(T.default,{variant:"rounded",width:88,height:32})]})]})})}const Zt="oraculo__FadeItemWrapper-module__fadeWrapper___kFOH4",eo={fadeWrapper:Zt};function te({children:t}){return e.jsx("div",{className:eo.fadeWrapper,children:t})}function Ve({items:t,title:n="En vivo",iconUrl:a="https://stg-www.contodobet.com/static/img/landing/EventoEnVivo/icon.svg",onViewMore:r,className:l=""}){const o="https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/listView/football/all/all/all/in-play.json?channel_id=3&channel_id=3&client_id=200&client_id=200&competitionId=undefined&lang=es_PE&lang=es_PE&market=PE&market=PE&useCombined=true&useCombinedLive=true",s=O.useRef(null),[p,d]=O.useState({isStart:!0,isEnd:!1}),[h,g]=O.useState([]),k=()=>{var y;(y=s.current)==null||y.prev()},i=()=>{var y;(y=s.current)==null||y.next()},u=()=>{Pt()};async function _(){try{const I=await(await fetch(o)).json();g(I.events)}catch(y){console.error(y)}}O.useEffect(()=>{_();const y=setInterval(()=>{_()},2e4);return()=>clearInterval(y)},[]);const E=l||void 0,b=!h||h.length===0;return e.jsx("section",{className:E,style:{width:"100%",boxSizing:"border-box"},children:e.jsxs(P.default,{direction:"column",spacing:1.5,useFlexGap:!0,children:[e.jsxs(A,{spacing:1.5,columns:"1fr auto ",justify:"start",children:[e.jsx(U,{title:n,iconUrl:a,size:"md"}),e.jsxs("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[e.jsxs(A,{spacing:1,columns:"auto auto",children:[e.jsx(L,{ariaLabel:"Anterior",variant:"secondary",iconOnly:!0,leftIcon:e.jsx(X.ChevronLeftRounded,{}),onClick:k,disabled:p.isStart}),e.jsx(L,{ariaLabel:"Siguiente",variant:"secondary",iconOnly:!0,rightIcon:e.jsx(X.ChevronRightRounded,{}),onClick:i,disabled:p.isEnd})]}),e.jsx(L,{variant:"secondary",onClick:u,children:"Ver más"})]})]}),e.jsx(V,{ref:s,items:b?Array(4).fill({}):h==null?void 0:h.filter(y=>y.event.sport==="FOOTBALL").sort((y,I)=>new Date(I.event.start).getTime()-new Date(y.event.start).getTime()),perPage:void 0,gap:"16px",options:{autoWidth:!0,trimSpace:"move"},breakpoints:{400:{gap:"4px",focus:"center"},768:{gap:"8px",focus:"center"},1024:{gap:"10px",focus:"center"}},renderItem:y=>b?e.jsx(te,{children:e.jsx(Yt,{})}):e.jsx(te,{children:e.jsx(Pe,{...y})}),onMove:({isStart:y,isEnd:I})=>d({isStart:y,isEnd:I})})]})})}function to(){return e.jsxs("div",{className:K.cardContainer,children:[e.jsx(de,{title:""}),e.jsx("div",{className:K.cardBackground,children:e.jsxs(P.default,{direction:"column",spacing:{xs:.5,md:1},useFlexGap:!0,children:[e.jsxs(P.default,{spacing:8,direction:"row",justifyContent:"center",alignItems:"center",children:[e.jsx(T.default,{variant:"circular",width:48,height:48}),e.jsx(T.default,{variant:"circular",width:48,height:48})]}),e.jsxs(P.default,{direction:"column",spacing:{xs:.5,md:1},useFlexGap:!0,children:[e.jsxs(P.default,{spacing:8,direction:"row",justifyContent:"center",alignItems:"center",children:[e.jsx(T.default,{variant:"text",width:80,height:12}),e.jsx(T.default,{variant:"text",width:80,height:12})]}),e.jsx(P.default,{spacing:8,direction:"row",justifyContent:"center",alignItems:"center",children:e.jsx(T.default,{variant:"text",width:160,height:12})}),e.jsxs(P.default,{direction:"row",spacing:1,children:[e.jsx(T.default,{variant:"text",width:80,height:16}),e.jsx(T.default,{variant:"text",width:80,height:16}),e.jsx(T.default,{variant:"text",width:80,height:16})]}),e.jsx("div",{className:K.jugadas,children:e.jsxs(P.default,{direction:"row",spacing:1,children:[e.jsx(T.default,{variant:"rounded",width:80,height:32}),e.jsx(T.default,{variant:"rounded",width:80,height:32}),e.jsx(T.default,{variant:"rounded",width:80,height:32})]})})]})]})})]})}const oo="oraculo__OraculoSeccionEventoSemana-module__wrapper___eqVq-",no="oraculo__OraculoSeccionEventoSemana-module__container___5yFQs",so="oraculo__OraculoSeccionEventoSemana-module__buttonWrapper___-6IDT",re={wrapper:oo,container:no,buttonWrapper:so};function He({items:t,title:n="En vivo",iconUrl:a,onViewMore:r,className:l=""}){const o="https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/group.json?channel_id=1&client_id=200&lang=es_PE&market=PE",s=O.useRef(null),[p,d]=O.useState({isStart:!0,isEnd:!1}),[h,g]=O.useState([]);function k(f){return[...f].sort((w,B)=>new Date(w.start).getTime()-new Date(B.start).getTime())}function i(f){const w=new Date,B=new Date(w.getTime()+10080*60*1e3);return f.filter($=>{if(!$.start)return!1;const S=new Date($.start);return S>=w&&S<=B})}const u=()=>{Tt()};async function _(){try{const B=(await(await fetch(o)).json()).group.groups.find(v=>v.englishName==="Football");if(!B||!Array.isArray(B.groups)){console.error("Football groups not found");return}const S=B.groups.slice(0,5),c=v=>{const x="https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/listView/football";if(v.groups&&v.groups.length>0){const j=v.groups[0];return[`${x}/${v.termKey}/${j.termKey}/all/matches.json?channel_id=1&channel_id=1&client_id=200&client_id=200&competitionId=undefined&lang=es_PE&lang=es_PE&market=PE&market=PE&useCombined=true&useCombinedLive=true`]}return[`${x}/${v.termKey}/all/all/matches.json?channel_id=1&channel_id=1&client_id=200&client_id=200&competitionId=undefined&lang=es_PE&lang=es_PE&market=PE&market=PE&useCombined=true&useCombinedLive=true`]},m=S.flatMap(c);E(m)}catch(f){console.error(f)}}async function E(f){try{const w=await Promise.all(f.map(c=>fetch(c).then(m=>m.json())));let B=[],$=[];w.forEach(c=>{c.events&&(B.push(...c.events.map(m=>m.event)),$.push(...c.events.flatMap(m=>m.betOffers||[])))});const S=b(B,$);g(k(i(S)))}catch(w){console.error("Error loading events:",w)}}function b(f,w){const $=w.filter(S=>{var c;return((c=S.betOfferType)==null?void 0:c.id)===2}).reduce((S,c)=>(S[c.eventId]||(S[c.eventId]=[]),S[c.eventId].push(c),S),{});return f.filter(S=>$[S.id]).map(S=>({...S,outcome:$[S.id]}))}O.useEffect(()=>{t&&_()},[t]);const y=l||void 0,I=!h||h.length===0;return e.jsx("section",{className:y,style:{width:"100%",boxSizing:"border-box"},children:e.jsxs("div",{className:re.wrapper,children:[e.jsx("div",{className:re.container,children:e.jsxs(P.default,{direction:"column",spacing:1.5,useFlexGap:!0,children:[e.jsx(U,{title:"Eventos de la semana"}),e.jsx("div",{className:re.buttonWrapper,children:e.jsx(L,{variant:"secondary",size:"lg",fullWidth:!0,onClick:()=>{u()},children:"Ver más"})})]})}),e.jsx("div",{style:{minWidth:"180px"},children:e.jsx(V,{ref:s,items:I?Array(6).fill({}):h,perPage:3.5,gap:"16px",options:{autoWidth:!0,trimSpace:!0},breakpoints:{1024:{perPage:1.4,gap:"8px",focus:"center",padding:{left:"8px",right:"8px"}}},renderItem:f=>I?e.jsx(te,{children:e.jsx(to,{})}):e.jsx(te,{children:e.jsx(Te,{event:f})}),onMove:({isStart:f,isEnd:w})=>d({isStart:f,isEnd:w})})})]})})}function qe({backgrounds:t,items:n}){const[a,r]=O.useState(0),l=(t==null?void 0:t.length)||1;return e.jsxs(M.Box,{component:"section",sx:{position:"relative",overflow:"visible"},children:[e.jsxs(M.Box,{sx:{position:"relative",height:{xs:300,sm:360,md:420},borderRadius:0,overflow:"hidden"},children:[e.jsx(V,{items:t,perPage:0,gap:"0px",options:{type:"loop",pagination:!1,arrows:!1,drag:!0,focus:"center"},onMove:({index:o})=>r(o),renderItem:o=>{var s;return e.jsxs(M.Box,{sx:{position:"relative",height:{xs:300,sm:360,md:420}},children:[e.jsxs(M.Box,{component:"picture",sx:{position:"absolute",inset:0,lineHeight:0},children:[e.jsx("source",{srcSet:o.desktopSrc,media:"(min-width:800px)"}),e.jsx("source",{srcSet:o.mobileSrc,media:"(max-width:799px)"}),e.jsx(M.Box,{component:"img",src:(s=o.fallbackSrc)!=null?s:o.desktopSrc,alt:"","aria-hidden":!0,loading:"lazy",sx:{width:"100%",height:"100%",objectFit:"cover",display:"block"}})]}),e.jsx(M.Box,{sx:{position:"absolute",inset:0,pointerEvents:"none","&::before":{content:'""',position:"absolute",left:0,right:0,bottom:0,top:"40%",background:"linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(18,18,18,0.85) 80%, #121212 100%)"}}})]})}}),e.jsx(M.Box,{sx:{position:"absolute",left:0,right:0,bottom:72,display:"flex",justifyContent:"center",zIndex:2},children:e.jsx(le,{total:l,active:a})})]}),e.jsx(M.Box,{sx:{position:"absolute",bottom:{xs:10,sm:10},left:120,right:120,"@media (max-width:1024px)":{left:24,right:24},backgroundColor:"#363636",borderRadius:2,py:{xs:.8,md:1.2},px:{xs:1.5,md:2},display:"flex",justifyContent:"space-around",alignItems:"center",boxShadow:"0 10px 24px rgba(0,0,0,.35)",zIndex:3},children:n==null?void 0:n.map(o=>e.jsxs(M.Box,{sx:{display:"flex",flexDirection:{xs:"column",md:"row"},alignItems:"center",justifyContent:"center",gap:{xs:.5,md:1},color:"#FFFFFF",minWidth:0,cursor:o.onClick||o.href?"pointer":"default",whiteSpace:"nowrap"},onClick:()=>{var s;if(o.onClick)return o.onClick();if(o.href)return window.location.href=(s=o.href)!=null?s:"/#"},children:[o.icon&&e.jsx(M.Box,{component:"img",src:o.icon,alt:o.label||`icon-${o.id}`,sx:{width:{xs:20,sm:22,md:24},height:{xs:20,sm:22,md:24},objectFit:"contain"}}),e.jsx(M.Typography,{sx:{fontSize:{xs:10,sm:11,md:12},fontWeight:600,color:"#E0E0E0",textAlign:"center"},children:o.label})]},o.id))})]})}const ao=[[{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/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 Ke({title:t="Medios de pago",rows:n=ao}){const a=n.flat();return e.jsxs(M.Box,{component:"section","aria-labelledby":"mp-title",sx:{color:"#fff"},children:[e.jsx(M.Typography,{id:"mp-title",variant:"h6",sx:{fontWeight:800,fontSize:{xs:20,md:32},textAlign:"center",mb:1.5},children:t}),e.jsx(M.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.jsx(M.Box,{sx:{display:{xs:"block",md:"none"}},children:n.map((r,l)=>e.jsx(M.Stack,{direction:"row",justifyContent:"center",alignItems:"center",gap:2.5,flexWrap:"wrap",children:r.map(o=>e.jsx(ie,{...o},`${o.src}-${o.alt}`))},l))}),e.jsx(M.Box,{sx:{mt:3,display:{xs:"none",md:"grid"},gap:{xs:2.5,md:2.75},justifyItems:"center",alignItems:"center",gridTemplateColumns:{md:"repeat(auto-fit, 160px)"},justifyContent:{md:"center"}},children:a.map(r=>e.jsx(ie,{...r},`${r.src}-${r.alt}`))})]})}const ro={OraculoSeccionDestacados:Me,OraculoSeccionTopJuegos:xe,OraculoSeccionCasinoEnVivo:Le,OraculoSeccionCasino:We,OraculoSeccionVirtuales:Ae,OraculoSeccionClubOlimpo:De,OraculoSeccionBonoBienvenida:Ge,OraculoSeccionBanners:qe,OraculoSeccionMediosPago:Ke,OraculoSeccionEventoEnVivo:Ve,OraculoSeccionEventoSemana:He,OraculoSeccionEventoCombinadas:Ue},io=t=>typeof t=="function"||t&&typeof t=="object"&&"$$typeof"in t,lo=t=>/^OraculoSeccion[A-Z]/.test(t),co=Object.fromEntries(Object.entries(ro).filter(([t,n])=>lo(t)&&io(n)));class je extends Error{constructor(n,a,r){super(`HTTP ${n} ${r}`),this.status=n,this.url=a,this.statusText=r,this.name="HttpError"}}const ve=["OraculoSeccionEventoEnVivo","OraculoSeccionEventoSemana","OraculoSeccionEventoCombinadas"],Je=({sectionsOverride:t,docId:n="home",db:a})=>{const[r,l]=O.useState([]),[o,s]=O.useState(!1),[p,d]=O.useState({}),[h,g]=O.useState({}),[k,i]=O.useState({}),u=M.useMediaQuery("(min-width:1024px)");O.useEffect(()=>{if(t||!a)return;s(!0);const c=he.onSnapshot(he.doc(a,"landings",n),m=>{var v;try{let x=m.exists()?((v=m.data())==null?void 0:v.sections)||[]:[];x=x.slice().sort((j,N)=>{var R,F;return((R=j.order)!=null?R:0)-((F=N.order)!=null?F:0)}).map((j,N)=>({...j,order:N+1})),l(x),console.log("fetched: ",x)}catch(x){console.error("Error procesando landings/"+n,x)}finally{s(!1)}},m=>{console.error("Error escuchando landings/"+n,m),s(!1)});return()=>c()},[t,n,a]),O.useEffect(()=>{(t?t.slice():r.slice()).map(v=>v.componentKey).filter(v=>!!v).length},[t,r]);const _=async c=>{if(ve.includes(c.componentKey))return{items:[],events:[],data:{}};const m=(c.apiUrl||"").trim();if(!m)return;const v=c.apiMethod||"GET",x=c.apiParams||[];let j=m,N,R;if(v==="GET"){const W=new URL(m,typeof window=="undefined"?"http://localhost":window.location.origin);for(const z of x)z.key&&W.searchParams.append(z.key,z.value);j=W.toString()}else{const W=new URLSearchParams;for(const z of x)z.key&&W.append(z.key,z.value);N=W.toString(),R={"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"}}const F=await fetch(j,{method:v,headers:R,body:N});if(!F.ok)throw new je(F.status,j,F.statusText);return F.json()},E=O.useMemo(()=>t?t.slice():r.slice(),[t,r]),b=st.default.useRef(new Set);O.useEffect(()=>{const c=E.map(m=>({s:m,url:(m.apiUrl||"").trim()})).filter(({url:m})=>!!m);if(c.length)for(const{s:m,url:v}of c){const x=`${m.id}|${v}`;b.current.has(x)||(b.current.add(x),g(j=>({...j,[m.id]:!0})),i(j=>({...j,[m.id]:""})),(async()=>{try{const j=await _(m);d(N=>({...N,[m.id]:j}))}catch(j){let N="Error desconocido";j instanceof je?N=`Error HTTP ${j.status} (${j.statusText}) en ${j.url}`:j instanceof SyntaxError?N="Respuesta no es JSON válido":j instanceof TypeError?N="Fallo de red / CORS / conexión":typeof j=="string"&&(N=j.toString()),i(R=>({...R,[m.id]:N}))}finally{g(j=>({...j,[m.id]:!1}))}})())}},[E]);const y=O.useMemo(()=>E.filter(c=>c.visible).sort((c,m)=>c.order-m.order),[E]),I=c=>Array.isArray(c)?c.map(m=>{const v={};for(const x of m.fields||[]){const j=(x.type||"string").toLowerCase();if(j==="number"){const N=String(x.value||"").trim();if(N!==""){const R=Number(N);Number.isNaN(R)||(v[x.name]=R)}}else if(j==="boolean")v[x.name]=String(x.value).toLowerCase()==="true";else if(j==="function"){const N=String(x.value||"").trim();if(N)try{const R=new Function(N);v[x.name]=R}catch(R){console.error(`❌ Error creando función en item '${x.name}':`,R)}}else v[x.name]=x.value}return v}):[],f=c=>{const m={};if(!Array.isArray(c))return m;for(const v of c){if(!v.name)continue;const x=(v.type||"string").toLowerCase();if(x==="number"){const j=String(v.value||"").trim();if(j!==""){const N=Number(j);Number.isNaN(N)||(m[v.name]=N)}}else if(x==="boolean")m[v.name]=String(v.value).toLowerCase()==="true";else if(x==="function"){const j=String(v.value||"").trim();if(j)try{const N=new Function(j);m[v.name]=N}catch(N){console.error(`❌ Error creando función en item '${v.name}':`,N)}}else m[v.name]=v.value}return m},w=(c,m,v)=>{const x=v?{...v}:{};if(m){const z=(m.variableName||"items").trim()||"items";return x[z]=m.arr||[],x}const j=c,N=Array.isArray(j),R=!N&&typeof j=="object"&&j!==null?j:void 0,F=R&&Array.isArray(R.lobby||R.items)?R.lobby||R.items:void 0,W=z=>N?j:F||z;return x.items=W(F||[]),x},B=c=>{var N;const m=!!((N=c.apiUrl)!=null&&N.trim()),v=m?p[c.id]:void 0;let x=c.props?{...c.props}:{};const j=f(c.manualScalarFields);if(ve.includes(c.componentKey))return{items:v,...x,...j};if(x={...x,...j},m)x=w(v,null,x);else if(c.dataMode==="manual"){const R=I(c.manualItems);if(x=w(null,{arr:R,variableName:c.variableName},x),c.variableName2&&c.manualItems2){const F=I(c.manualItems2),W=(c.variableName2||"items2").trim()||"items2";x[W]=F}}return x},$=(c,m,v)=>{const x={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 ${x[m]}`,children:v},c)},S=c=>{var fe;const m=c.componentKey,v=co[m];if(!v)return console.warn(`No hay componente registrado para "${m}"`),$(c.id,"component",`Componente "${m}" no encontrado`);const x=!!((fe=c.apiUrl)!=null&&fe.trim()),j=x?p[c.id]:void 0,N=x?!!h[c.id]:!1,R=x?k[c.id]:"";if(x){if(N&&!j)return $(c.id,"loading",`Cargando datos desde ${c.apiUrl}...`);if(R&&!j)return $(c.id,"error",`Error cargando ${c.apiUrl}: ${R}`)}const F=B(c),z=new Set(["OraculoSeccionBanners","OraculoSeccionBonoBienvenida","OraculoSeccionCasinoEnVivo",u?"":"OraculoSeccionClubOlimpo"]).has(c.componentKey),Q=u?120:24,Xe=z?{width:"100%",boxSizing:"border-box"}:{paddingLeft:Q,paddingRight:Q,width:"100%",boxSizing:"border-box"};return e.jsx("div",{style:Xe,children:e.jsx(v,{...F})},c.id)};return o&&!t?e.jsx("div",{className:"text-xs text-gray-400",children:"Cargando preview..."}):!o&&!t&&r.length===0?e.jsx("div",{className:"text-xs text-gray-500",children:"Sin secciones (Firestore)"}):e.jsx(M.Container,{className:"oli-font",maxWidth:!1,disableGutters:!0,sx:{backgroundColor:"#121212",position:"relative",pb:5,width:"100%",maxWidth:"100%",overflowX:"hidden"},children:e.jsx(M.Stack,{direction:"column",spacing:8,useFlexGap:!0,children:y.map(S)})})};exports.OraculoButton=L;exports.OraculoCarousel=V;exports.OraculoCarouselDots=le;exports.OraculoClubOlimpoVisual=$e;exports.OraculoEventCombinadasCard=Be;exports.OraculoEventEnVivoCard=Pe;exports.OraculoEventHeader=Oe;exports.OraculoEventLabel=ce;exports.OraculoEventLeague=de;exports.OraculoEventScore=ue;exports.OraculoEventSemanaCard=Te;exports.OraculoEventStatus=Ee;exports.OraculoEventStatusBadge=Ce;exports.OraculoEventTeamInfo=Z;exports.OraculoGameCard=Y;exports.OraculoGameRankCard=ke;exports.OraculoGameSlide=pe;exports.OraculoGridGroup=A;exports.OraculoLiveCasinoCard=Ne;exports.OraculoLogoMediosPago=ie;exports.OraculoPageLandingPreview=Je;exports.OraculoSeccionBanners=qe;exports.OraculoSeccionBonoBienvenida=Ge;exports.OraculoSeccionCasino=We;exports.OraculoSeccionCasinoEnVivo=Le;exports.OraculoSeccionClubOlimpo=De;exports.OraculoSeccionDestacados=Me;exports.OraculoSeccionEventoCombinadas=Ue;exports.OraculoSeccionEventoEnVivo=Ve;exports.OraculoSeccionEventoSemana=He;exports.OraculoSeccionMediosPago=Ke;exports.OraculoSeccionTopJuegos=xe;exports.OraculoSeccionVirtuales=Ae;exports.OraculoSectionTitle=U;exports.OraculoTopJuegoItem=xe;exports.OraculoWelcomeBanner=Ie;exports.default=Je;
19
+ `},Ge=({headline:t,headline2:n,items:a,backgroundImageUrl:s})=>{const d=st.default("(max-width: 767px)"),o=a.length>1,r=k.useRef(null),[u,p]=k.useState(0),x=a==null?void 0:a[u],g=k.useMemo(()=>{var l,h;return(h=(l=x==null?void 0:x.backgroundImageUrl)!=null?l:s)!=null?h:""},[x,s]),C=Jt(g),i=(l,h)=>{var w,N;const E=(w=l.headline)!=null?w:t,_=(N=l.headline2)!=null?N:n;return h?e.jsxs(O.default,{sx:{maxWidth:1200,mx:"auto",px:15,display:"grid",gridTemplateColumns:"260px minmax(0, 1fr)",alignItems:"center",columnGap:6},children:[(E||_)&&e.jsx(O.default,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-start",minHeight:"100%"},children:e.jsxs(O.default,{sx:{...be,textAlign:"left",mb:0},children:[E&&e.jsx(U.default,{component:"span",sx:_e,children:E}),_&&e.jsxs(e.Fragment,{children:[e.jsx("br",{}),e.jsx(U.default,{component:"span",sx:je,children:_})]})]})}),e.jsx(O.default,{sx:{display:"flex",justifyContent:"center",alignItems:"center"},children:e.jsx(O.default,{sx:{width:"100%",maxWidth:600,mx:"auto"},children:e.jsx(le,{...l,onButtonClick:l.onButtonClick,variant:"large"})})})]}):e.jsxs(O.default,{sx:{textAlign:"center"},children:[(E||_)&&e.jsxs(O.default,{sx:be,children:[E&&e.jsx(U.default,{component:"span",sx:_e,children:E}),_&&e.jsxs(e.Fragment,{children:[e.jsx("br",{}),e.jsx(U.default,{component:"span",sx:je,children:_})]})]}),e.jsx(O.default,{sx:{display:"flex",justifyContent:"center"},children:e.jsx(le,{...l,onButtonClick:l.onButtonClick,variant:"small"})})]})};return e.jsxs(O.default,{component:"section",sx:C,children:[e.jsx(V,{ref:r,items:a,perPage:1,gap:"0px",options:{autoWidth:!1},renderItem:l=>e.jsx(O.default,{sx:{width:"100%"},children:i(l,!d)}),onMove:({index:l})=>{p(l)}}),o&&e.jsx(O.default,{sx:{mt:2,display:"flex",justifyContent:"center"},children:e.jsx(ce,{total:a.length,active:u,onSelect:l=>{var h;p(l),(h=r.current)==null||h.go(l)}})})]})},Ue=({className:t="",fullBleed:n=!0,items:a,selectedIndex:s=0,ariaLabel:d})=>{const o=k.useRef(null),r=k.useRef(null);if(!a)return null;const u=()=>{window.location.href="https://www.olimpo.bet/conoce-club-olimpo"},p=Array.isArray(a)?a[s]:a;k.useLayoutEffect(()=>{if(!o.current||!r.current||typeof ResizeObserver=="undefined")return;const g=o.current,C=r.current,i=()=>{g.style.setProperty("--orc-co-bottomH",`${C.offsetHeight+16}px`)},l=new ResizeObserver(i);return l.observe(C),i(),()=>l.disconnect()},[]);const x=["orc-co-wrap",n?"orc-co-fullBleed":"",t].filter(Boolean).join(" ");return e.jsx("section",{ref:o,className:x,"aria-label":d||p.imgAlt||"Club Olimpo",children:e.jsx("div",{ref:r,children:e.jsx($e,{text:p.text,onClick:u,imgAlt:p.imgAlt,imgSrcMobile:p.imgMobile,imgSrcDesktopBg:p.imgDesktopBg,imgSrcDesktopLogo:p.imgDesktopLogo})})})},Xt="oraculo__OraculoSeccionEventoCombinadas-module__controls___Zsta4",Qt={controls:Xt};function De({items:t,title:n="Combinadas del Olimpo",iconUrl:a="https://stg-www.contodobet.com/static/img/landing/EventoCombinada/rayoIcon.svg",onViewMore:s,className:d=""}){const o=k.useRef(null),[r,u]=k.useState({isStart:!0,isEnd:!1}),[p,x]=k.useState([]),g="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",C=()=>{var b;(b=o.current)==null||b.prev()},i=()=>{var b;(b=o.current)==null||b.next()},l=()=>{Mt()};async function h(){var b,y,B;try{const S=await(await fetch(g)).json(),c=(B=(y=(b=S==null?void 0:S.group)==null?void 0:b.groups)==null?void 0:y[0])==null?void 0:B.id;if(!c){console.error("Could not extract group ID");return}const m=`https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/prepackcoupon/eventgroup/${c}.json?lang=es_PE&market=PE&client_id=200&channel_id=1&ncid=1764283566783&prePackCouponTags=CUSTOM`,f=await(await fetch(m)).json();x(E(f.events,f.betOffers,f.prePackCoupons))}catch($){console.error("loadDataEventSpecial error:",$)}}function E(b,y,B){const $=[];for(const S of B){const c=w([S]),m=_(S),v=y.reduce((f,j)=>{var R,F;f[j.eventId]||(f[j.eventId]=[]);const I=j.outcomes.filter(W=>c.has(W.id));if(I.length>0){const W=Array.from((F=(R=m==null?void 0:m[0])==null?void 0:R.requiredOutcomeIds)!=null?F:[]),z=I.map(Q=>({...Q,position:W.indexOf(Q.id)}));f[j.eventId].push({...j,outcomes:z})}return f},{});b.forEach(f=>{if(f.id!==S.prePackCouponRows[0].eventId)return;const j=c;let I=null;for(const R of m)if([...R.requiredOutcomeIds].every(W=>j.has(W))){I=R.decimal;break}$.push({...f,combinadoTotal:I,betoffers:v[f.id]||[],couponId:S.id})})}return $}function _(b){var B;const y=[];for(const $ of b.prePackCouponRows)if($.type==="BET_BUILDER"&&((B=$.group)!=null&&B.groups)){const S=new Set;$.group.groups.forEach(c=>{var m;(m=c.outcomes)==null||m.forEach(v=>S.add(v.id))}),y.push({requiredOutcomeIds:S,decimal:$.odds.decimal})}return y}function w(b){var B;const y=new Set;for(const $ of b)for(const S of $.prePackCouponRows)S.type==="BET_BUILDER"&&((B=S.group)!=null&&B.groups)&&S.group.groups.forEach(c=>{var m;(m=c.outcomes)==null||m.forEach(v=>y.add(v.id))}),S.type==="SIMPLE"&&S.outcome&&y.add(S.outcome.id);return y}k.useEffect(()=>{h()},[]);const N=d||void 0;return!p||p.length===0?null:e.jsx("section",{className:N,style:{width:"100%",boxSizing:"border-box"},children:e.jsxs(T.default,{direction:"column",spacing:1.5,useFlexGap:!0,children:[e.jsxs(A,{spacing:1.5,columns:"1fr auto ",justify:"start",children:[e.jsx(D,{title:n,iconUrl:a,size:"md"}),e.jsxs("div",{className:Qt.controls,children:[e.jsxs(A,{spacing:1,columns:"auto auto",children:[e.jsx(L,{ariaLabel:"Anterior",variant:"secondary",iconOnly:!0,leftIcon:e.jsx(X.ChevronLeftRounded,{}),onClick:C,disabled:r.isStart}),e.jsx(L,{ariaLabel:"Siguiente",variant:"secondary",iconOnly:!0,rightIcon:e.jsx(X.ChevronRightRounded,{}),onClick:i,disabled:r.isEnd})]}),e.jsx(L,{variant:"secondary",onClick:l,children:"Ver más"})]})]}),e.jsx(V,{ref:o,items:p.filter(b=>b.combinadoTotal!==null),perPage:void 0,gap:"16px",options:{autoWidth:!0,trimSpace:"move"},useIndexAsKey:!0,breakpoints:{768:{perPage:1.2,gap:"12px",padding:{left:"0px",right:"0px"}}},renderItem:b=>e.jsx(Be,{event:b}),onMove:({isStart:b,isEnd:y})=>u({isStart:b,isEnd:y})})]})})}function Yt({}){return e.jsx("div",{className:Re.cardWrapper,children:e.jsxs(T.default,{direction:"column",spacing:1,children:[e.jsxs(T.default,{spacing:1,direction:"row",children:[e.jsx(P.default,{variant:"text",width:"60%",height:24}),e.jsx(P.default,{variant:"text",width:"39%",height:24})]}),e.jsxs(T.default,{spacing:8,direction:"row",justifyContent:"center",alignItems:"center",children:[e.jsx(P.default,{variant:"circular",width:32,height:40}),e.jsx(P.default,{variant:"text",width:40,height:40}),e.jsx(P.default,{variant:"circular",width:32,height:40})]}),e.jsxs(T.default,{spacing:8,direction:"row",justifyContent:"center",alignItems:"center",children:[e.jsx(P.default,{variant:"text",width:32,height:16}),e.jsx(P.default,{variant:"text",width:40,height:16}),e.jsx(P.default,{variant:"text",width:32,height:16})]}),e.jsxs(T.default,{spacing:2,direction:"row",children:[e.jsx(P.default,{variant:"rounded",width:88,height:16}),e.jsx(P.default,{variant:"rounded",width:88,height:16}),e.jsx(P.default,{variant:"rounded",width:88,height:16})]}),e.jsxs(T.default,{spacing:2,direction:"row",children:[e.jsx(P.default,{variant:"rounded",width:88,height:32}),e.jsx(P.default,{variant:"rounded",width:88,height:32}),e.jsx(P.default,{variant:"rounded",width:88,height:32})]})]})})}const Zt="oraculo__FadeItemWrapper-module__fadeWrapper___kFOH4",eo={fadeWrapper:Zt};function te({children:t}){return e.jsx("div",{className:eo.fadeWrapper,children:t})}function Ve({items:t,title:n="En vivo",iconUrl:a="https://stg-www.contodobet.com/static/img/landing/EventoEnVivo/icon.svg",onViewMore:s,className:d=""}){const o="https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/listView/football/all/all/all/in-play.json?channel_id=3&channel_id=3&client_id=200&client_id=200&competitionId=undefined&lang=es_PE&lang=es_PE&market=PE&market=PE&useCombined=true&useCombinedLive=true",r=k.useRef(null),[u,p]=k.useState({isStart:!0,isEnd:!1}),[x,g]=k.useState([]),C=()=>{var w;(w=r.current)==null||w.prev()},i=()=>{var w;(w=r.current)==null||w.next()},l=()=>{Tt()};async function h(){try{const N=await(await fetch(o)).json();g(N.events)}catch(w){console.error(w)}}k.useEffect(()=>{h();const w=setInterval(()=>{h()},2e4);return()=>clearInterval(w)},[]);const E=d||void 0,_=!x||x.length===0;return e.jsx("section",{className:E,style:{width:"100%",boxSizing:"border-box"},children:e.jsxs(T.default,{direction:"column",spacing:1.5,useFlexGap:!0,children:[e.jsxs(A,{spacing:1.5,columns:"1fr auto ",justify:"start",children:[e.jsx(D,{title:n,iconUrl:a,size:"md"}),e.jsxs("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[e.jsxs(A,{spacing:1,columns:"auto auto",children:[e.jsx(L,{ariaLabel:"Anterior",variant:"secondary",iconOnly:!0,leftIcon:e.jsx(X.ChevronLeftRounded,{}),onClick:C,disabled:u.isStart}),e.jsx(L,{ariaLabel:"Siguiente",variant:"secondary",iconOnly:!0,rightIcon:e.jsx(X.ChevronRightRounded,{}),onClick:i,disabled:u.isEnd})]}),e.jsx(L,{variant:"secondary",onClick:l,children:"Ver más"})]})]}),e.jsx(V,{ref:r,items:_?Array(4).fill({}):x==null?void 0:x.filter(w=>w.event.sport==="FOOTBALL").sort((w,N)=>new Date(N.event.start).getTime()-new Date(w.event.start).getTime()),perPage:void 0,gap:"16px",options:{autoWidth:!0,trimSpace:"move"},breakpoints:{400:{gap:"4px",focus:"center"},768:{gap:"8px",focus:"center"},1024:{gap:"10px",focus:"center"}},renderItem:w=>_?e.jsx(te,{children:e.jsx(Yt,{})}):e.jsx(te,{children:e.jsx(Te,{...w})}),onMove:({isStart:w,isEnd:N})=>p({isStart:w,isEnd:N})})]})})}function to(){return e.jsxs("div",{className:K.cardContainer,children:[e.jsx(ue,{title:""}),e.jsx("div",{className:K.cardBackground,children:e.jsxs(T.default,{direction:"column",spacing:{xs:.5,md:1},useFlexGap:!0,children:[e.jsxs(T.default,{spacing:8,direction:"row",justifyContent:"center",alignItems:"center",children:[e.jsx(P.default,{variant:"circular",width:48,height:48}),e.jsx(P.default,{variant:"circular",width:48,height:48})]}),e.jsxs(T.default,{direction:"column",spacing:{xs:.5,md:1},useFlexGap:!0,children:[e.jsxs(T.default,{spacing:8,direction:"row",justifyContent:"center",alignItems:"center",children:[e.jsx(P.default,{variant:"text",width:80,height:12}),e.jsx(P.default,{variant:"text",width:80,height:12})]}),e.jsx(T.default,{spacing:8,direction:"row",justifyContent:"center",alignItems:"center",children:e.jsx(P.default,{variant:"text",width:160,height:12})}),e.jsxs(T.default,{direction:"row",spacing:1,children:[e.jsx(P.default,{variant:"text",width:80,height:16}),e.jsx(P.default,{variant:"text",width:80,height:16}),e.jsx(P.default,{variant:"text",width:80,height:16})]}),e.jsx("div",{className:K.jugadas,children:e.jsxs(T.default,{direction:"row",spacing:1,children:[e.jsx(P.default,{variant:"rounded",width:80,height:32}),e.jsx(P.default,{variant:"rounded",width:80,height:32}),e.jsx(P.default,{variant:"rounded",width:80,height:32})]})})]})]})})]})}const oo="oraculo__OraculoSeccionEventoSemana-module__wrapper___eqVq-",no="oraculo__OraculoSeccionEventoSemana-module__container___5yFQs",ao="oraculo__OraculoSeccionEventoSemana-module__buttonWrapper___-6IDT",re={wrapper:oo,container:no,buttonWrapper:ao};function He({items:t,title:n="En vivo",iconUrl:a,onViewMore:s,className:d=""}){const o="https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/group.json?channel_id=1&client_id=200&lang=es_PE&market=PE",r=k.useRef(null),[u,p]=k.useState({isStart:!0,isEnd:!1}),[x,g]=k.useState([]);function C(b){return[...b].sort((y,B)=>new Date(y.start).getTime()-new Date(B.start).getTime())}function i(b){const y=new Date,B=new Date(y.getTime()+10080*60*1e3);return b.filter($=>{if(!$.start)return!1;const S=new Date($.start);return S>=y&&S<=B})}const l=()=>{Pt()};async function h(){try{const B=(await(await fetch(o)).json()).group.groups.find(v=>v.englishName==="Football");if(!B||!Array.isArray(B.groups)){console.error("Football groups not found");return}const S=B.groups.slice(0,5),c=v=>{const f="https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/listView/football";if(v.groups&&v.groups.length>0){const j=v.groups[0];return[`${f}/${v.termKey}/${j.termKey}/all/matches.json?channel_id=1&channel_id=1&client_id=200&client_id=200&competitionId=undefined&lang=es_PE&lang=es_PE&market=PE&market=PE&useCombined=true&useCombinedLive=true`]}return[`${f}/${v.termKey}/all/all/matches.json?channel_id=1&channel_id=1&client_id=200&client_id=200&competitionId=undefined&lang=es_PE&lang=es_PE&market=PE&market=PE&useCombined=true&useCombinedLive=true`]},m=S.flatMap(c);E(m)}catch(b){console.error(b)}}async function E(b){try{const y=await Promise.all(b.map(c=>fetch(c).then(m=>m.json())));let B=[],$=[];y.forEach(c=>{c.events&&(B.push(...c.events.map(m=>m.event)),$.push(...c.events.flatMap(m=>m.betOffers||[])))});const S=_(B,$);g(C(i(S)))}catch(y){console.error("Error loading events:",y)}}function _(b,y){const $=y.filter(S=>{var c;return((c=S.betOfferType)==null?void 0:c.id)===2}).reduce((S,c)=>(S[c.eventId]||(S[c.eventId]=[]),S[c.eventId].push(c),S),{});return b.filter(S=>$[S.id]).map(S=>({...S,outcome:$[S.id]}))}k.useEffect(()=>{t&&h()},[t]);const w=d||void 0,N=!x||x.length===0;return e.jsx("section",{className:w,style:{width:"100%",boxSizing:"border-box"},children:e.jsxs("div",{className:re.wrapper,children:[e.jsx("div",{className:re.container,children:e.jsxs(T.default,{direction:"column",spacing:1.5,useFlexGap:!0,children:[e.jsx(D,{title:"Eventos de la semana"}),e.jsx("div",{className:re.buttonWrapper,children:e.jsx(L,{variant:"secondary",size:"lg",fullWidth:!0,onClick:()=>{l()},children:"Ver más"})})]})}),e.jsx("div",{style:{minWidth:"180px"},children:e.jsx(V,{ref:r,items:N?Array(6).fill({}):x,perPage:3.5,gap:"16px",options:{autoWidth:!0,trimSpace:!0},breakpoints:{1024:{perPage:1.4,gap:"8px",focus:"center",padding:{left:"8px",right:"8px"}}},renderItem:b=>N?e.jsx(te,{children:e.jsx(to,{})}):e.jsx(te,{children:e.jsx(Pe,{event:b})}),onMove:({isStart:b,isEnd:y})=>p({isStart:b,isEnd:y})})})]})})}function qe({backgrounds:t,items:n}){const[a,s]=k.useState(0),d=(t==null?void 0:t.length)||1;return e.jsxs(M.Box,{component:"section",sx:{position:"relative",overflow:"visible"},children:[e.jsxs(M.Box,{sx:{position:"relative",height:{xs:300,sm:360,md:420},borderRadius:0,overflow:"hidden"},children:[e.jsx(V,{items:t,perPage:0,gap:"0px",options:{type:"loop",pagination:!1,arrows:!1,drag:!0,focus:"center"},onMove:({index:o})=>s(o),renderItem:o=>{var r;return e.jsxs(M.Box,{sx:{position:"relative",height:{xs:300,sm:360,md:420}},children:[e.jsxs(M.Box,{component:"picture",sx:{position:"absolute",inset:0,lineHeight:0},children:[e.jsx("source",{srcSet:o.desktopSrc,media:"(min-width:800px)"}),e.jsx("source",{srcSet:o.mobileSrc,media:"(max-width:799px)"}),e.jsx(M.Box,{component:"img",src:(r=o.fallbackSrc)!=null?r:o.desktopSrc,alt:"","aria-hidden":!0,loading:"lazy",sx:{width:"100%",height:"100%",objectFit:"cover",display:"block"}})]}),e.jsx(M.Box,{sx:{position:"absolute",inset:0,pointerEvents:"none","&::before":{content:'""',position:"absolute",left:0,right:0,bottom:0,top:"40%",background:"linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(18,18,18,0.85) 80%, #121212 100%)"}}})]})}}),e.jsx(M.Box,{sx:{position:"absolute",left:0,right:0,bottom:72,display:"flex",justifyContent:"center",zIndex:2},children:e.jsx(ce,{total:d,active:a})})]}),e.jsx(M.Box,{sx:{position:"absolute",bottom:{xs:10,sm:10},left:120,right:120,"@media (max-width:1024px)":{left:24,right:24},backgroundColor:"#363636",borderRadius:2,py:{xs:.8,md:1.2},px:{xs:1.5,md:2},display:"flex",justifyContent:"space-around",alignItems:"center",boxShadow:"0 10px 24px rgba(0,0,0,.35)",zIndex:3},children:n==null?void 0:n.map(o=>e.jsxs(M.Box,{sx:{display:"flex",flexDirection:{xs:"column",md:"row"},alignItems:"center",justifyContent:"center",gap:{xs:.5,md:1},color:"#FFFFFF",minWidth:0,cursor:o.onClick||o.href?"pointer":"default",whiteSpace:"nowrap"},onClick:()=>{var r;if(o.onClick)return o.onClick();if(o.href)return window.location.href=(r=o.href)!=null?r:"/#"},children:[o.icon&&e.jsx(M.Box,{component:"img",src:o.icon,alt:o.label||`icon-${o.id}`,sx:{width:{xs:20,sm:22,md:24},height:{xs:20,sm:22,md:24},objectFit:"contain"}}),e.jsx(M.Typography,{sx:{fontSize:{xs:10,sm:11,md:12},fontWeight:600,color:"#E0E0E0",textAlign:"center"},children:o.label})]},o.id))})]})}const so=[[{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/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 Ke({title:t="Medios de pago",rows:n=so}){const a=n.flat();return e.jsxs(M.Box,{component:"section","aria-labelledby":"mp-title",sx:{color:"#fff"},children:[e.jsx(M.Typography,{id:"mp-title",variant:"h6",sx:{fontWeight:800,fontSize:{xs:20,md:32},textAlign:"center",mb:1.5},children:t}),e.jsx(M.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.jsx(M.Box,{sx:{display:{xs:"block",md:"none"}},children:n.map((s,d)=>e.jsx(M.Stack,{direction:"row",justifyContent:"center",alignItems:"center",gap:2.5,flexWrap:"wrap",children:s.map(o=>e.jsx(ie,{...o},`${o.src}-${o.alt}`))},d))}),e.jsx(M.Box,{sx:{mt:3,display:{xs:"none",md:"grid"},gap:{xs:2.5,md:2.75},justifyItems:"center",alignItems:"center",gridTemplateColumns:{md:"repeat(auto-fit, 160px)"},justifyContent:{md:"center"}},children:a.map(s=>e.jsx(ie,{...s},`${s.src}-${s.alt}`))})]})}const ro={OraculoSeccionDestacados:Me,OraculoSeccionTopJuegos:fe,OraculoSeccionCasinoEnVivo:Le,OraculoSeccionCasino:We,OraculoSeccionVirtuales:Ae,OraculoSeccionClubOlimpo:Ue,OraculoSeccionBonoBienvenida:Ge,OraculoSeccionBanners:qe,OraculoSeccionMediosPago:Ke,OraculoSeccionEventoEnVivo:Ve,OraculoSeccionEventoSemana:He,OraculoSeccionEventoCombinadas:De},io=t=>typeof t=="function"||t&&typeof t=="object"&&"$$typeof"in t,lo=t=>/^OraculoSeccion[A-Z]/.test(t),co=Object.fromEntries(Object.entries(ro).filter(([t,n])=>lo(t)&&io(n)));class ve extends Error{constructor(n,a,s){super(`HTTP ${n} ${s}`),this.status=n,this.url=a,this.statusText=s,this.name="HttpError"}}const ye=["OraculoSeccionEventoEnVivo","OraculoSeccionEventoSemana","OraculoSeccionEventoCombinadas"],Je=({sectionsOverride:t,docId:n="home",db:a})=>{const[s,d]=k.useState([]),[o,r]=k.useState(!1),[u,p]=k.useState({}),[x,g]=k.useState({}),[C,i]=k.useState({}),l=M.useMediaQuery("(min-width:1024px)");k.useEffect(()=>{if(t||!a)return;r(!0);const c=ge.onSnapshot(ge.doc(a,"landings",n),m=>{var v;try{let f=m.exists()?((v=m.data())==null?void 0:v.sections)||[]:[];f=f.slice().sort((j,I)=>{var R,F;return((R=j.order)!=null?R:0)-((F=I.order)!=null?F:0)}).map((j,I)=>({...j,order:I+1})),d(f),console.log("fetched: ",f)}catch(f){console.error("Error procesando landings/"+n,f)}finally{r(!1)}},m=>{console.error("Error escuchando landings/"+n,m),r(!1)});return()=>c()},[t,n,a]),k.useEffect(()=>{(t?t.slice():s.slice()).map(v=>v.componentKey).filter(v=>!!v).length},[t,s]);const h=async c=>{if(ye.includes(c.componentKey))return{items:[],events:[],data:{}};const m=(c.apiUrl||"").trim();if(!m)return;const v=c.apiMethod||"GET",f=c.apiParams||[];let j=m,I,R;if(v==="GET"){const W=new URL(m,typeof window=="undefined"?"http://localhost":window.location.origin);for(const z of f)z.key&&W.searchParams.append(z.key,z.value);j=W.toString()}else{const W=new URLSearchParams;for(const z of f)z.key&&W.append(z.key,z.value);I=W.toString(),R={"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"}}const F=await fetch(j,{method:v,headers:R,body:I});if(!F.ok)throw new ve(F.status,j,F.statusText);return F.json()},E=k.useMemo(()=>t?t.slice():s.slice(),[t,s]),_=at.default.useRef(new Set);k.useEffect(()=>{const c=E.map(m=>({s:m,url:(m.apiUrl||"").trim()})).filter(({url:m})=>!!m);if(c.length)for(const{s:m,url:v}of c){const f=`${m.id}|${v}`;_.current.has(f)||(_.current.add(f),g(j=>({...j,[m.id]:!0})),i(j=>({...j,[m.id]:""})),(async()=>{try{const j=await h(m);p(I=>({...I,[m.id]:j}))}catch(j){let I="Error desconocido";j instanceof ve?I=`Error HTTP ${j.status} (${j.statusText}) en ${j.url}`:j instanceof SyntaxError?I="Respuesta no es JSON válido":j instanceof TypeError?I="Fallo de red / CORS / conexión":typeof j=="string"&&(I=j.toString()),i(R=>({...R,[m.id]:I}))}finally{g(j=>({...j,[m.id]:!1}))}})())}},[E]);const w=k.useMemo(()=>E.filter(c=>c.visible).sort((c,m)=>c.order-m.order),[E]),N=c=>Array.isArray(c)?c.map(m=>{const v={};for(const f of m.fields||[]){const j=(f.type||"string").toLowerCase();if(j==="number"){const I=String(f.value||"").trim();if(I!==""){const R=Number(I);Number.isNaN(R)||(v[f.name]=R)}}else if(j==="boolean")v[f.name]=String(f.value).toLowerCase()==="true";else if(j==="function"){const I=String(f.value||"").trim();if(I)try{const R=new Function(I);v[f.name]=R}catch(R){console.error(`❌ Error creando función en item '${f.name}':`,R)}}else v[f.name]=f.value}return v}):[],b=c=>{const m={};if(!Array.isArray(c))return m;for(const v of c){if(!v.name)continue;const f=(v.type||"string").toLowerCase();if(f==="number"){const j=String(v.value||"").trim();if(j!==""){const I=Number(j);Number.isNaN(I)||(m[v.name]=I)}}else if(f==="boolean")m[v.name]=String(v.value).toLowerCase()==="true";else if(f==="function"){const j=String(v.value||"").trim();if(j)try{const I=new Function(j);m[v.name]=I}catch(I){console.error(`❌ Error creando función en item '${v.name}':`,I)}}else m[v.name]=v.value}return m},y=(c,m,v)=>{const f=v?{...v}:{};if(m){const z=(m.variableName||"items").trim()||"items";return f[z]=m.arr||[],f}const j=c,I=Array.isArray(j),R=!I&&typeof j=="object"&&j!==null?j:void 0,F=R&&Array.isArray(R.lobby||R.items)?R.lobby||R.items:void 0,W=z=>I?j:F||z;return f.items=W(F||[]),f},B=c=>{var I;const m=!!((I=c.apiUrl)!=null&&I.trim()),v=m?u[c.id]:void 0;let f=c.props?{...c.props}:{};const j=b(c.manualScalarFields);if(ye.includes(c.componentKey))return{items:v,...f,...j};if(f={...f,...j},m)f=y(v,null,f);else if(c.dataMode==="manual"){const R=N(c.manualItems);if(f=y(null,{arr:R,variableName:c.variableName},f),c.variableName2&&c.manualItems2){const F=N(c.manualItems2),W=(c.variableName2||"items2").trim()||"items2";f[W]=F}}return f},$=(c,m,v)=>{const f={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 ${f[m]}`,children:v},c)},S=c=>{var he;const m=c.componentKey,v=co[m];if(!v)return console.warn(`No hay componente registrado para "${m}"`),$(c.id,"component",`Componente "${m}" no encontrado`);const f=!!((he=c.apiUrl)!=null&&he.trim()),j=f?u[c.id]:void 0,I=f?!!x[c.id]:!1,R=f?C[c.id]:"";if(f){if(I&&!j)return $(c.id,"loading",`Cargando datos desde ${c.apiUrl}...`);if(R&&!j)return $(c.id,"error",`Error cargando ${c.apiUrl}: ${R}`)}const F=B(c),z=new Set(["OraculoSeccionBanners","OraculoSeccionBonoBienvenida","OraculoSeccionCasinoEnVivo",l?"":"OraculoSeccionClubOlimpo"]).has(c.componentKey),Q=l?120:24,Xe=z?{width:"100%",boxSizing:"border-box"}:{paddingLeft:Q,paddingRight:Q,width:"100%",boxSizing:"border-box"};return e.jsx("div",{style:Xe,children:e.jsx(v,{...F})},c.id)};return o&&!t?e.jsx("div",{className:"text-xs text-gray-400",children:"Cargando preview..."}):!o&&!t&&s.length===0?e.jsx("div",{className:"text-xs text-gray-500",children:"Sin secciones (Firestore)"}):e.jsx(M.Container,{className:"oli-font",maxWidth:!1,disableGutters:!0,sx:{backgroundColor:"#121212",position:"relative",pb:5,width:"100%",maxWidth:"100%",overflowX:"hidden"},children:e.jsx(M.Stack,{direction:"column",spacing:8,useFlexGap:!0,children:w.map(S)})})};exports.OraculoButton=L;exports.OraculoCarousel=V;exports.OraculoCarouselDots=ce;exports.OraculoClubOlimpoVisual=$e;exports.OraculoEventCombinadasCard=Be;exports.OraculoEventEnVivoCard=Te;exports.OraculoEventHeader=ke;exports.OraculoEventLabel=de;exports.OraculoEventLeague=ue;exports.OraculoEventScore=pe;exports.OraculoEventSemanaCard=Pe;exports.OraculoEventStatus=Oe;exports.OraculoEventStatusBadge=Ee;exports.OraculoEventTeamInfo=Z;exports.OraculoGameCard=Y;exports.OraculoGameRankCard=Ie;exports.OraculoGameSlide=me;exports.OraculoGridGroup=A;exports.OraculoLiveCasinoCard=Ne;exports.OraculoLogoMediosPago=ie;exports.OraculoPageLandingPreview=Je;exports.OraculoSeccionBanners=qe;exports.OraculoSeccionBonoBienvenida=Ge;exports.OraculoSeccionCasino=We;exports.OraculoSeccionCasinoEnVivo=Le;exports.OraculoSeccionClubOlimpo=Ue;exports.OraculoSeccionDestacados=Me;exports.OraculoSeccionEventoCombinadas=De;exports.OraculoSeccionEventoEnVivo=Ve;exports.OraculoSeccionEventoSemana=He;exports.OraculoSeccionMediosPago=Ke;exports.OraculoSeccionTopJuegos=fe;exports.OraculoSeccionVirtuales=Ae;exports.OraculoSectionTitle=D;exports.OraculoTopJuegoItem=fe;exports.OraculoWelcomeBanner=le;exports.default=Je;
20
20
  //# sourceMappingURL=index.cjs.js.map