oraculo-ui 0.1.53 → 0.1.54

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),L=require("@mui/material"),I=require("react"),ve=require("@splidejs/react-splide"),Xe=require("@mui/material/Box"),Qe=require("@mui/material/Skeleton"),Ye=require("@mui/material/Typography"),Ze=require("@mui/material/Stack"),X=require("@mui/icons-material"),et=require("@mui/icons-material/ChevronLeftRounded"),tt=require("@mui/icons-material/ChevronRightRounded"),nt=require("@mui/material/useMediaQuery"),fe=require("firebase/firestore"),q=t=>t&&t.__esModule?t:{default:t},ot=q(I),O=q(Xe),P=q(Qe),A=q(Ye),T=q(Ze),ye=q(et),we=q(tt),st=q(nt);function F({children:t,onClick:s,href:a,target:o,rel:c,type:n="button",disabled:r=!1,variant:p="primary",size:d,fullWidth:f=!1,fullHeight:h=!1,className:C="",ariaLabel:i,leftIcon:l,rightIcon:m,iconOnly:y}){const x=!!t&&t!==!0,b=(!!l?1:0)+(!!m?1:0)==1,S=y!=null?y:b&&!x,R=["orc-btn",p==="secondary"?"orc-btn--secondary":p==="tertiary"?"orc-btn--tertiary":"orc-btn--primary",d?`orc-btn--${d}`:"",f?"orc-btn--full":"",h?"orc-btn--fullHeight":"",S?"orc-btn--iconOnly":"",C].filter(Boolean).join(" "),N=e.jsxs(e.Fragment,{children:[l&&e.jsx("span",{className:"orc-btn__icon",children:l}),!S&&e.jsx("span",{className:"orc-btn__label",children:t}),m&&e.jsx("span",{className:"orc-btn__icon",children:m})]}),E=r?!0:void 0;return a?e.jsx(L.Link,{href:a,target:o,rel:c,"aria-label":i,"aria-disabled":E,tabIndex:E?-1:void 0,className:R,onClick:E?u=>u.preventDefault():s,children:N}):e.jsx("button",{type:n,onClick:s,disabled:!!E,"aria-label":i,className:R,children:N})}function D({title:t,iconUrl:s,size:a="md",className:o=""}){const n=["orc-section-title",a?`orc-section-title--${a}`:"",o].filter(Boolean).join(" ");return e.jsxs("div",{className:n,children:[s&&e.jsx("img",{src:s,alt:"",className:"orc-section-title__icon"}),e.jsx("h2",{className:"orc-section-title__title",children:t})]})}const ie=({total:t,active:s,onSelect:a,className:o=""})=>{if(t<=1)return null;const c=["orc-dots",o].filter(Boolean).join(" ");return e.jsx("div",{className:c,role:"tablist",children:Array.from({length:t}).map((n,r)=>e.jsx("span",{className:"orc-dots__cell",children:e.jsx("button",{type:"button",role:"tab","aria-selected":r===s,"aria-label":`Ir al slide ${r+1}`,className:"orc-dots__dot"+(r===s?" orc-dots__dot--active":""),onClick:()=>a==null?void 0:a(r)})},r))})};function z({children:t,minWidth:s=32,spacing:a=2,justify:o="stretch",columns:c=null}){const n=c||`repeat(auto-fit, minmax(${s}px, 1fr))`,r=typeof a=="number"?`${a*8}px`:a;return e.jsx("div",{style:{display:"grid",gridTemplateColumns:n,justifyItems:o,gap:r,height:"inherit"},children:t})}function re({src:t,alt:s}){return e.jsx(L.Box,{sx:{position:"relative",width:{xs:80,md:160},height:{xs:48,md:96},display:"inline-block"},children:e.jsx(L.Box,{component:"img",src:t,alt:s,sx:{position:"absolute",top:0,left:0,width:"100%",height:"100%",objectFit:"contain"}})})}const at="oraculo__OraculoEventTitle-module__contenedor___rg1vw",rt="oraculo__OraculoEventTitle-module__flexGroup___jMLFO",it="oraculo__OraculoEventTitle-module__subtitle___TmHna",ne={contenedor:at,flexGroup:rt,subtitle:it};function ct({title:t,subtitle:s}){return e.jsxs("div",{className:ne.contenedor,children:[e.jsx("span",{style:{fontWeight:700,fontSize:"12px",lineHeight:"16px"},children:t}),s&&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:s}),e.jsx("div",{})]})]})}function Se({text:t,color:s="#ff3b3b",textColor:a="#fff"}){return e.jsx("span",{className:"oli-font",style:{backgroundColor:s,color:a,borderRadius:"8px",padding:"4px 8px",fontSize:"12px",lineHeight:"16px",fontWeight:700,width:"41px",height:"16px",textAlign:"center"},children:t})}function Ce({live:t,time:s}){return e.jsxs("div",{className:"oli-font",style:{display:"flex",alignItems:"center",gap:"8px"},children:[t&&e.jsx(Se,{text:"En vivo"}),s&&e.jsx("span",{style:{fontSize:"14px",fontWeight:400,lineHeight:"18px",paddingTop:"4px"},children:s})]})}function Ee({title:t,subtitle:s,live:a=!1,time:o=""}){return e.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",color:"#FFFFFF"},children:[e.jsx(ct,{title:t,subtitle:s}),e.jsx(Ce,{live:a,time:o})]})}const lt="oraculo__OraculoEventLabel-module__label___c64Xw",dt={label:lt};function ce({text:t}){return e.jsx("span",{className:dt.label,children:t})}const ut="oraculo__OraculoEventLeague-module__container___rdk4F",pt={container:ut};function le({title:t}){return e.jsx("div",{className:pt.container,children:t.toUpperCase()})}const mt="oraculo__OraculoEventScore-module__scoreWrapper___fWwEr",xt="oraculo__OraculoEventScore-module__name___r4uL6",ft="oraculo__OraculoEventScore-module__score___Xl03M",ht="oraculo__OraculoEventScore-module__normal___cCNFz",gt="oraculo__OraculoEventScore-module__small___fVt8E",J={scoreWrapper:mt,name:xt,score:ft,normal:ht,small:gt};function de({text:t,name:s,size:a="normal"}){return e.jsxs("div",{className:`${J.scoreWrapper} ${J[a]}`,children:[e.jsx("div",{className:`${J.score} ${J[a]}`,children:t}),s&&e.jsx("span",{className:`${J.name} ${J[a]}`,children:s})]})}const _t="oraculo__OraculoEventTeamInfo-module__team___UfpUs",bt="oraculo__OraculoEventTeamInfo-module__regular___ag826",jt="oraculo__OraculoEventTeamInfo-module__compact___RCNOs",vt="oraculo__OraculoEventTeamInfo-module__logo___fKCl3",yt="oraculo__OraculoEventTeamInfo-module__name___4ikm-",ee={team:_t,regular:bt,compact:jt,logo:vt,name:yt};function Z({name:t,logo:s,size:a="regular"}){return e.jsxs("div",{className:`oli-font ${ee.team} ${ee[a]}`,children:[e.jsx("img",{loading:"lazy",src:s,alt:t,className:ee.logo}),e.jsx("span",{className:ee.name,children:t})]})}const wt=ve.Splide,St=ve.SplideSlide,H=I.forwardRef(({items:t=[],renderItem:s,perPage:a=1,gap:o="0px",breakpoints:c,options:n={},className:r="",onMove:p,useIndexAsKey:d=!1},f)=>{const h=I.useRef(null);I.useImperativeHandle(f,()=>({next:()=>{var m;return(m=h.current)==null?void 0:m.go(">")},prev:()=>{var m;return(m=h.current)==null?void 0:m.go("<")},go:m=>{var y;return(y=h.current)==null?void 0:y.go(m)}}));const C=I.useCallback(m=>{const y=m.Components.Controller,x=y.getIndex(),j=y.getEnd(),k=x===0,b=x>=j,S=m.Components.Slides.getLength();p==null||p({index:x,isStart:k,isEnd:b,total:S})},[p]),i=I.useCallback(m=>{C(m)},[C]),l={type:"slide",trimSpace:!1,drag:!0,pagination:!1,arrows:!1,rewind:!1,focus:"start",autoWidth:!1,perPage:a,gap:o,breakpoints:c,...n};return e.jsx("div",{className:r,style:{width:"100%"},children:e.jsx(wt,{ref:h,options:l,onMove:C,onMounted:i,children:t.map((m,y)=>{var x;return e.jsx(St,{children:s(m,y)},d?y:(x=m.id)!=null?x:y)})})})}),Y=({imageUrl:t,onClick:s,size:a="sm",fillParent:o=!1})=>{const c=a==="lg"?{w:280,h:352}:{w:152,h:168},n=p=>{p.stopPropagation(),s==null||s()},r=o?{width:"100%",height:"100%"}:{width:`${c.w}px`,height:`${c.h}px`};return e.jsxs(O.default,{onClick:s,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(F,{variant:"primary",size:"md",onClick:n,children:"JUGAR"})})]})};function Oe({imageUrl:t,orden:s=1,onClick:a,loading:o=!1,sizes:c={xs:{w:104,h:112,r:18,font:48},md:{w:186,h:264,r:22.6,font:64}}}){var C,i,l,m;const n=(y,x)=>{var j,k,b,S;return{xs:(k=(j=c.xs)==null?void 0:j[y])!=null?k:x,md:(S=(b=c.md)==null?void 0:b[y])!=null?S:x}},r=n("w",186),p=n("h",264),d=n("r",22.6),f=n("font",64),h={xs:Math.round(((i=(C=c.xs)==null?void 0:C.font)!=null?i:64)*.28),md:Math.round(((m=(l=c.md)==null?void 0:l.font)!=null?m: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}/${p.xs}`,md:`${r.md}/${p.md}`},borderRadius:{xs:`${d.xs}px`,md:`${d.md}px`},boxSizing:"border-box",overflow:"visible",pb:{xs:`${h.xs}px`,md:`${h.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:o?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:`-${h.xs}px`,md:`-${h.md}px`},fontFamily:"secondary",fontSize:{xs:`${f.xs}px`,md:`${f.md}px`},lineHeight:1,color:"#3CC666",WebkitTextStroke:"1px #9ee86e",zIndex:3,userSelect:"none"},children:s})]})}const Ie=({logo:t,provider:s,providerName:a,machine:o,onClick:c})=>{var n;return e.jsxs(O.default,{onClick:c,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 ${o!=null?o:""}`,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(A.default,{sx:{color:"#fff",fontWeight:700,fontSize:{xs:11,md:14},textTransform:"capitalize"},children:(n=s!=null?s:a)!=null?n:""})})]})},oe=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)"}}})}),ue=({items:t,layout:s="grid",onClick:a,loading:o=!1,gridSkeletonCount:c=4})=>{var n;if(s==="mosaic"){const r=t[0],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:`${oe}px`,rowGap:`${oe}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:o?e.jsx(se,{}):r&&e.jsx(Y,{imageUrl:`https://olimpo.bet${(n=r.imageUrl)!=null?n:""}`,size:"lg",fillParent:!0,onClick:()=>a==null?void 0:a(r,0)})}),(o?Array.from({length:4}):p).map((d,f)=>{var h;return e.jsx(O.default,{sx:{width:{xs:104,md:152},height:{xs:112,md:168},overflow:"hidden",borderRadius:2},children:o?e.jsx(se,{}):e.jsx(Y,{imageUrl:`https://olimpo.bet${(h=d.imageUrl)!=null?h:""}`,size:"sm",fillParent:!0,onClick:()=>a==null?void 0:a(d,f+1)})},o?`sk-${f}`:d.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:`${oe}px`,gridAutoFlow:"column"},children:(o?Array.from({length:c}):t).map((r,p)=>{var d,f;return e.jsx(O.default,{sx:{overflow:"hidden",borderRadius:2},children:o?e.jsx(se,{}):e.jsx(Y,{imageUrl:`https://olimpo.bet${(d=r.imageUrl)!=null?d:""}`,size:"sm",fillParent:!0,onClick:()=>a==null?void 0:a(r,p)})},o?`sk-${p}`:(f=r.id)!=null?f:p)})})},$e=({title:t,amount:s,subtitle:a,buttonText:o,onButtonClick:c,backgroundImage:n,alt:r,className:p="",variant:d="small"})=>{const f=s?s.slice(0,2):"",h=s?s.slice(2):"",C=d==="large";return e.jsxs(O.default,{className:p,sx:{position:"relative",width:"100%",maxWidth:{xs:328,md:C?618:456},mx:"auto"},children:[n&&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:n,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(A.default,{sx:{fontSize:{xs:12,md:20},fontWeight:400,color:"#e7f8ff"},children:t}),s&&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:f}),e.jsx(O.default,{component:"span",sx:{fontSize:{xs:52,md:77}},children:h})]}),a&&e.jsx(A.default,{sx:{pb:"20px",fontSize:14,fontWeight:600,color:"#e7f8ff"},children:a}),o&&e.jsx(F,{onClick:c,children:o})]})})]})},ke=({text:t,buttonLabel:s="Conoce más",onClick:a,imgAlt:o="Club Olimpo",imgSrcMobile:c,imgSrcDesktopBg:n,imgSrcDesktopLogo:r})=>e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"orc-co-bgMobile",children:e.jsx("img",{src:c,alt:o,className:"orc-co-bgMobileImg"})}),e.jsxs("div",{className:"orc-co-bgDesktop",children:[n&&e.jsx("div",{className:"orc-co-fillHost",children:e.jsx("img",{src:n,alt:`${o} fondo`,className:"orc-co-bgDesktopImg"})}),e.jsxs("div",{className:"orc-co-desktopContent",children:[r&&e.jsx("img",{src:r,alt:`${o} logo`,className:"orc-co-logoImg"}),e.jsx("p",{className:"orc-co-captionDesktop",children:t}),e.jsx(F,{onClick:a,variant:"primary",size:"md",children:s})]})]}),e.jsxs("div",{className:"orc-co-bottom",children:[e.jsx("p",{className:"orc-co-caption",children:t}),e.jsx(F,{onClick:a,variant:"primary",size:"md",children:s})]})]}),Ct="oraculo__OraculoEventCombinadasCard-module__card___ulQeY",Et="oraculo__OraculoEventCombinadasCard-module__combinadas___Gxrld",Ot="oraculo__OraculoEventCombinadasCard-module__apuestaItem___YnYMy",It="oraculo__OraculoEventCombinadasCard-module__lineContainer___G5rbU",$t="oraculo__OraculoEventCombinadasCard-module__circle___eehm-",kt="oraculo__OraculoEventCombinadasCard-module__line___Eb2pK",Nt="oraculo__OraculoEventCombinadasCard-module__apuestaText___b5s7S",Rt="oraculo__OraculoEventCombinadasCard-module__cuotaTotal___Lohvu",V={card:Ct,combinadas:Et,apuestaItem:Ot,lineContainer:It,circle:$t,line:kt,apuestaText:Nt,cuotaTotal:Rt};function pe(t){const s=Array.isArray(t)?t:[t];sessionStorage.setItem("landingOutcomes",JSON.stringify(s)),window.location.href="/deportes"}function Ne({event:t}){var o;function s(c){var h;const n=(h=c.betoffers)!=null?h:[],r=c.homeName,p=c.awayName,d=n.map(C=>{var y,x,j,k,b;let i=C.outcomes[0],l="",m=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 ${m}`,i!=null&&i.participant&&(l=`${i.participant} - ${l}`)):["Menos de","Menos"].includes(i==null?void 0:i.label)?(l=`Menos de ${m}`,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 ${p}`:i.label==="X2"&&(l=`${p} o Empate`):(i!=null&&i.participant?l=i.participant:l=(y=i==null?void 0:i.label)!=null?y:"",m!==""&&l===i.label&&(l=`${i.label} ${m}`)),{id:(x=i==null?void 0:i.id)!=null?x:0,value:l,label:C.criterion.label,odds:(j=i==null?void 0:i.odds)!=null?j:0,bl:(k=i==null?void 0:i.label)!=null?k:0,position:(b=i==null?void 0:i.position)!=null?b:0}}),f=d.reduce((C,i)=>C+i.odds,0)/1e3;return{outcomes:d,total:f.toFixed(2)}}const a=s(t);return e.jsxs("div",{className:V.card,children:[e.jsx("div",{className:V.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((c,n)=>c.position-n.position).map((c,n)=>e.jsxs("div",{className:V.apuestaItem,children:[e.jsxs("div",{className:V.lineContainer,children:[e.jsx("div",{className:V.circle}),n<a.outcomes.length-1&&e.jsx("div",{className:V.line})]}),e.jsxs("div",{className:V.apuestaText,children:[e.jsx("strong",{children:c.value})," ","| ",c.label]})]},n))})]})}),e.jsxs("button",{onClick:()=>{var c,n;return pe((n=(c=a==null?void 0:a.outcomes)==null?void 0:c.map(r=>r==null?void 0:r.id))!=null?n:[])},className:V.cuotaTotal,children:[e.jsxs("span",{children:["Cuota total: ",e.jsx("strong",{children:(((o=t.combinadoTotal)!=null?o: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 Bt({children:t,onClick:s,href:a,target:o,rel:c,type:n="button",disabled:r=!1,variant:p="primary",size:d,fullWidth:f=!1,fullHeight:h=!1,className:C="",ariaLabel:i,leftIcon:l,rightIcon:m,iconOnly:y}){const x=!!t&&t!==!0,b=(!!l?1:0)+(!!m?1:0)==1,S=y!=null?y:b&&!x,R=[G["orc-btn"],G[`orc-btn--${p}`],d?G[`orc-btn--${d}`]:"",f?G["orc-btn--full"]:"",h?G["orc-btn--fullHeight"]:"",S?G["orc-btn--iconOnly"]:"",C].filter(Boolean).join(" "),N=e.jsxs(e.Fragment,{children:[l&&e.jsx("span",{className:G["orc-btn__icon"],children:l}),!S&&e.jsx("span",{className:G["orc-btn__label"],children:t}),m&&e.jsx("span",{className:G["orc-btn__icon"],children:m})]}),E=r?!0:void 0;return a?e.jsx(L.Link,{href:a,target:o,rel:c,"aria-label":i,"aria-disabled":E,tabIndex:E?-1:void 0,className:R,onClick:E?u=>u.preventDefault():s,children:N}):e.jsx("button",{type:n,onClick:s,disabled:!!E,"aria-label":i,className:R,children:N})}const Tt="oraculo__OraculoEventEnVivoCard-module__cardWrapper___6b-cT",Re={cardWrapper:Tt};function Be({event:t,liveData:s,betOffers:a}){var c,n,r,p,d,f,h,C;const o=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(Ee,{title:(c=t.path[0].name)!=null?c:"",subtitle:t.group,live:!0,time:((n=s==null?void 0:s.matchClock)==null?void 0:n.minute)!=null?`${s.matchClock.minute}'`:""}),e.jsx("div",{style:{padding:"0 4px"},children:e.jsxs(z,{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(de,{text:((p=(r=s==null?void 0:s.score)==null?void 0:r.home)!=null?p:0)+":"+((f=(d=s==null?void 0:s.score)==null?void 0:d.away)!=null?f: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(z,{spacing:1,children:((h=o==null?void 0:o.outcomes)!=null?h:[]).map((i,l)=>e.jsx(ce,{text:i.label.toUpperCase()},l))}),e.jsx(z,{spacing:2,children:((C=o==null?void 0:o.outcomes)!=null?C:[]).map((i,l)=>e.jsx(Bt,{variant:"primary",disabled:i.odds==null||(o==null?void 0:o.cashOutStatus)=="SUSPENDED",onClick:()=>{pe(i.id)},children:i.odds===void 0?"":(i.odds/1e3).toFixed(2)},l))})]})]})})}const Pt="oraculo__OraculoEventDate-module__date___xhIlh",Lt={date:Pt};function Ft({text:t}){return e.jsx("div",{className:`oli-font ${Lt.date}`,children:t})}const Wt="oraculo__OraculoEventSemanaCard-module__cardContainer___4JuDe",Mt="oraculo__OraculoEventSemanaCard-module__cardBackground___vfalD",Ut="oraculo__OraculoEventSemanaCard-module__jugadas___W8b7H",zt="oraculo__OraculoEventSemanaCard-module__equipos___G5hLn",K={cardContainer:Wt,cardBackground:Mt,jugadas:Ut,equipos:zt};function Te({event:t}){var a,o,c,n,r,p,d;function s(f){const h=new Date(f),C=h.toLocaleDateString("es-ES",{weekday:"short"}).toUpperCase(),i=h.getDate().toString().padStart(2,"0"),l=(h.getMonth()+1).toString().padStart(2,"0");let m=h.toLocaleTimeString("es-PE",{hour:"numeric",minute:"2-digit",hour12:!0}).toUpperCase();return m=m.replace(/\./g,"").replace(/A\s*M/i,"AM").replace(/P\s*M/i,"PM"),`${C} ${i}/${l} | ${m}`}return e.jsxs("div",{className:K.cardContainer,children:[e.jsx(le,{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(de,{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(Ft,{text:s(t.start)})]}),e.jsxs(T.default,{direction:"column",spacing:{xs:.5,md:1},useFlexGap:!0,children:[e.jsx(z,{spacing:1,children:((n=(c=(o=t==null?void 0:t.outcome)==null?void 0:o[0])==null?void 0:c.outcomes)!=null?n:[]).map((f,h)=>e.jsx(ce,{text:f.label.toUpperCase()},h))}),e.jsx("div",{className:K.jugadas,children:e.jsx(z,{spacing:1,children:((d=(p=(r=t==null?void 0:t.outcome)==null?void 0:r[0])==null?void 0:p.outcomes)!=null?d:[]).map((f,h)=>e.jsx(F,{variant:"primary",fullHeight:!0,onClick:()=>{pe(f.id)},children:(f.odds/1e3).toFixed(2)},h))})})]})]})})]})}function Pe({items:t,title:s="Destacados",iconUrl:a,onViewMore:o,className:c=""}){const n=I.useRef(null),[r,p]=I.useState({isStart:!0,isEnd:!1}),d=()=>{var l;(l=n.current)==null||l.prev()},f=()=>{var l;(l=n.current)==null||l.next(),console.log("items: ",t)},h=()=>{window.location.href="https://www.olimpo.bet/promociones"},C=l=>{if(!l||typeof window=="undefined")return;const y=`https://www.olimpo.bet/promociones/${encodeURIComponent(l)}`;window.location.href=y},i=c||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:s,iconUrl:a,size:"md"}),e.jsxs("div",{style:{display:"flex",gap:8},children:[e.jsx(F,{ariaLabel:"Anterior",variant:"secondary",iconOnly:!0,leftIcon:e.jsx(X.ChevronLeftRounded,{}),onClick:d,disabled:r.isStart}),e.jsx(F,{ariaLabel:"Siguiente",variant:"secondary",iconOnly:!0,rightIcon:e.jsx(X.ChevronRightRounded,{}),onClick:f,disabled:r.isEnd})]}),e.jsx(F,{variant:"secondary",onClick:h,children:"Ver más"})]}),e.jsx(H,{ref:n,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:"137px",borderRadius:8,display:"block",objectFit:"cover"}})},`${l.title}-${l.image}`),onMove:({isStart:l,isEnd:m})=>p({isStart:l,isEnd:m})})]})}const Gt=t=>{var i,l,m,y,x,j;if(typeof window=="undefined")return;const s=(l=(i=t.name)!=null?i:t.web_name)!=null?l:"",a=(m=t.provider)!=null?m:"",o=(y=t.machine)!=null?y:"",c=(x=t.external_id)!=null?x:"",n=(j=t.type)!=null?j:"Casino",r=encodeURIComponent(String(a)),p=encodeURIComponent(String(o)),d=encodeURIComponent(String(s)),f=encodeURIComponent(String(c)),h=encodeURIComponent(String(n)),C=`https://www.olimpo.bet/casino?machine=${p}&provider=${r}&name=${d}&external_id=${f}&type=${h}`;window.location.href=C};function me({items:t,title:s="Top Juegos",iconUrl:a,onCardClick:o}){const c=I.useMemo(()=>(t!=null?t:[]).map((p,d)=>{var f;return{...p,orden:(f=p.orden)!=null?f:d+1,_originalIndex:d}}).sort((p,d)=>p.orden!=null&&d.orden!=null?p.orden-d.orden:p._originalIndex-d._originalIndex),[t]),n=!t||t.length===0,r=n?Array.from({length:6}):c.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:s,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((p,d)=>{var f,h;return e.jsx(Oe,{imageUrl:n?"":`https://olimpo.bet${(f=p.logo)!=null?f:""}`,orden:n?d+1:p.orden,loading:n,onClick:n?void 0:()=>{o?o(p):Gt(p)}},n?`sk-${d}`:(h=p.machine)!=null?h:`${d}`)})})]})})}const At=(t,s)=>{var a,o;return(o=(a=t.orden)!=null?a:t.machine)!=null?o:s},Dt=t=>{var i,l,m,y,x,j;if(typeof window=="undefined")return;const s=(l=(i=t.name)!=null?i:t.web_name)!=null?l:"",a=(m=t.provider)!=null?m:"",o=(y=t.machine)!=null?y:"",c=(x=t.external_id)!=null?x:"",n=(j=t.type)!=null?j:"Live",r=encodeURIComponent(String(a)),p=encodeURIComponent(String(o)),d=encodeURIComponent(String(s)),f=encodeURIComponent(String(c)),h=encodeURIComponent(String(n)),C=`https://www.olimpo.bet/casino-en-vivo?${p}?provider=${r}&name=${d}&external_id=${f}&type=${h}`;window.location.href=C},Le=({items:t,title:s="Casino en vivo",subtitle:a="Disfruta la emoción en tus juegos favoritos y gana en tiempo real.",backgroundMobileUrl:o="",backgroundDesktopUrl:c="",onCardClick:n,onViewMore:r,className:p})=>(console.log("items: ",t),e.jsxs(O.default,{className:p,sx:{position:"relative",color:"white",overflow:"hidden"},children:[e.jsx(O.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"),L=require("@mui/material"),I=require("react"),ve=require("@splidejs/react-splide"),Xe=require("@mui/material/Box"),Qe=require("@mui/material/Skeleton"),Ye=require("@mui/material/Typography"),Ze=require("@mui/material/Stack"),X=require("@mui/icons-material"),et=require("@mui/icons-material/ChevronLeftRounded"),tt=require("@mui/icons-material/ChevronRightRounded"),nt=require("@mui/material/useMediaQuery"),fe=require("firebase/firestore"),q=t=>t&&t.__esModule?t:{default:t},ot=q(I),O=q(Xe),P=q(Qe),A=q(Ye),T=q(Ze),ye=q(et),we=q(tt),st=q(nt);function F({children:t,onClick:s,href:a,target:o,rel:c,type:n="button",disabled:r=!1,variant:p="primary",size:d,fullWidth:f=!1,fullHeight:h=!1,className:C="",ariaLabel:i,leftIcon:l,rightIcon:m,iconOnly:y}){const x=!!t&&t!==!0,b=(!!l?1:0)+(!!m?1:0)==1,S=y!=null?y:b&&!x,R=["orc-btn",p==="secondary"?"orc-btn--secondary":p==="tertiary"?"orc-btn--tertiary":"orc-btn--primary",d?`orc-btn--${d}`:"",f?"orc-btn--full":"",h?"orc-btn--fullHeight":"",S?"orc-btn--iconOnly":"",C].filter(Boolean).join(" "),N=e.jsxs(e.Fragment,{children:[l&&e.jsx("span",{className:"orc-btn__icon",children:l}),!S&&e.jsx("span",{className:"orc-btn__label",children:t}),m&&e.jsx("span",{className:"orc-btn__icon",children:m})]}),E=r?!0:void 0;return a?e.jsx(L.Link,{href:a,target:o,rel:c,"aria-label":i,"aria-disabled":E,tabIndex:E?-1:void 0,className:R,onClick:E?u=>u.preventDefault():s,children:N}):e.jsx("button",{type:n,onClick:s,disabled:!!E,"aria-label":i,className:R,children:N})}function D({title:t,iconUrl:s,size:a="md",className:o=""}){const n=["orc-section-title",a?`orc-section-title--${a}`:"",o].filter(Boolean).join(" ");return e.jsxs("div",{className:n,children:[s&&e.jsx("img",{src:s,alt:"",className:"orc-section-title__icon"}),e.jsx("h2",{className:"orc-section-title__title",children:t})]})}const ie=({total:t,active:s,onSelect:a,className:o=""})=>{if(t<=1)return null;const c=["orc-dots",o].filter(Boolean).join(" ");return e.jsx("div",{className:c,role:"tablist",children:Array.from({length:t}).map((n,r)=>e.jsx("span",{className:"orc-dots__cell",children:e.jsx("button",{type:"button",role:"tab","aria-selected":r===s,"aria-label":`Ir al slide ${r+1}`,className:"orc-dots__dot"+(r===s?" orc-dots__dot--active":""),onClick:()=>a==null?void 0:a(r)})},r))})};function z({children:t,minWidth:s=32,spacing:a=2,justify:o="stretch",columns:c=null}){const n=c||`repeat(auto-fit, minmax(${s}px, 1fr))`,r=typeof a=="number"?`${a*8}px`:a;return e.jsx("div",{style:{display:"grid",gridTemplateColumns:n,justifyItems:o,gap:r,height:"inherit"},children:t})}function re({src:t,alt:s}){return e.jsx(L.Box,{sx:{position:"relative",width:{xs:80,md:160},height:{xs:48,md:96},display:"inline-block"},children:e.jsx(L.Box,{component:"img",src:t,alt:s,sx:{position:"absolute",top:0,left:0,width:"100%",height:"100%",objectFit:"contain"}})})}const at="oraculo__OraculoEventTitle-module__contenedor___rg1vw",rt="oraculo__OraculoEventTitle-module__flexGroup___jMLFO",it="oraculo__OraculoEventTitle-module__subtitle___TmHna",ne={contenedor:at,flexGroup:rt,subtitle:it};function ct({title:t,subtitle:s}){return e.jsxs("div",{className:ne.contenedor,children:[e.jsx("span",{style:{fontWeight:700,fontSize:"12px",lineHeight:"16px"},children:t}),s&&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:s}),e.jsx("div",{})]})]})}function Se({text:t,color:s="#ff3b3b",textColor:a="#fff"}){return e.jsx("span",{className:"oli-font",style:{backgroundColor:s,color:a,borderRadius:"8px",padding:"4px 8px",fontSize:"12px",lineHeight:"16px",fontWeight:700,width:"41px",height:"16px",textAlign:"center"},children:t})}function Ce({live:t,time:s}){return e.jsxs("div",{className:"oli-font",style:{display:"flex",alignItems:"center",gap:"8px"},children:[t&&e.jsx(Se,{text:"En vivo"}),s&&e.jsx("span",{style:{fontSize:"14px",fontWeight:400,lineHeight:"18px",paddingTop:"4px"},children:s})]})}function Ee({title:t,subtitle:s,live:a=!1,time:o=""}){return e.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",color:"#FFFFFF"},children:[e.jsx(ct,{title:t,subtitle:s}),e.jsx(Ce,{live:a,time:o})]})}const lt="oraculo__OraculoEventLabel-module__label___c64Xw",dt={label:lt};function ce({text:t}){return e.jsx("span",{className:dt.label,children:t})}const ut="oraculo__OraculoEventLeague-module__container___rdk4F",pt={container:ut};function le({title:t}){return e.jsx("div",{className:pt.container,children:t.toUpperCase()})}const mt="oraculo__OraculoEventScore-module__scoreWrapper___fWwEr",xt="oraculo__OraculoEventScore-module__name___r4uL6",ft="oraculo__OraculoEventScore-module__score___Xl03M",ht="oraculo__OraculoEventScore-module__normal___cCNFz",gt="oraculo__OraculoEventScore-module__small___fVt8E",J={scoreWrapper:mt,name:xt,score:ft,normal:ht,small:gt};function de({text:t,name:s,size:a="normal"}){return e.jsxs("div",{className:`${J.scoreWrapper} ${J[a]}`,children:[e.jsx("div",{className:`${J.score} ${J[a]}`,children:t}),s&&e.jsx("span",{className:`${J.name} ${J[a]}`,children:s})]})}const _t="oraculo__OraculoEventTeamInfo-module__team___UfpUs",bt="oraculo__OraculoEventTeamInfo-module__regular___ag826",jt="oraculo__OraculoEventTeamInfo-module__compact___RCNOs",vt="oraculo__OraculoEventTeamInfo-module__logo___fKCl3",yt="oraculo__OraculoEventTeamInfo-module__name___4ikm-",ee={team:_t,regular:bt,compact:jt,logo:vt,name:yt};function Z({name:t,logo:s,size:a="regular"}){return e.jsxs("div",{className:`oli-font ${ee.team} ${ee[a]}`,children:[e.jsx("img",{loading:"lazy",src:s,alt:t,className:ee.logo}),e.jsx("span",{className:ee.name,children:t})]})}const wt=ve.Splide,St=ve.SplideSlide,H=I.forwardRef(({items:t=[],renderItem:s,perPage:a=1,gap:o="0px",breakpoints:c,options:n={},className:r="",onMove:p,useIndexAsKey:d=!1},f)=>{const h=I.useRef(null);I.useImperativeHandle(f,()=>({next:()=>{var m;return(m=h.current)==null?void 0:m.go(">")},prev:()=>{var m;return(m=h.current)==null?void 0:m.go("<")},go:m=>{var y;return(y=h.current)==null?void 0:y.go(m)}}));const C=I.useCallback(m=>{const y=m.Components.Controller,x=y.getIndex(),j=y.getEnd(),k=x===0,b=x>=j,S=m.Components.Slides.getLength();p==null||p({index:x,isStart:k,isEnd:b,total:S})},[p]),i=I.useCallback(m=>{C(m)},[C]),l={type:"slide",trimSpace:!1,drag:!0,pagination:!1,arrows:!1,rewind:!1,focus:"start",autoWidth:!1,perPage:a,gap:o,breakpoints:c,...n};return e.jsx("div",{className:r,style:{width:"100%"},children:e.jsx(wt,{ref:h,options:l,onMove:C,onMounted:i,children:t.map((m,y)=>{var x;return e.jsx(St,{children:s(m,y)},d?y:(x=m.id)!=null?x:y)})})})}),Y=({imageUrl:t,onClick:s,size:a="sm",fillParent:o=!1})=>{const c=a==="lg"?{w:280,h:352}:{w:152,h:168},n=p=>{p.stopPropagation(),s==null||s()},r=o?{width:"100%",height:"100%"}:{width:`${c.w}px`,height:`${c.h}px`};return e.jsxs(O.default,{onClick:s,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(F,{variant:"primary",size:"md",onClick:n,children:"JUGAR"})})]})};function Oe({imageUrl:t,orden:s=1,onClick:a,loading:o=!1,sizes:c={xs:{w:104,h:112,r:18,font:48},md:{w:186,h:264,r:22.6,font:64}}}){var C,i,l,m;const n=(y,x)=>{var j,k,b,S;return{xs:(k=(j=c.xs)==null?void 0:j[y])!=null?k:x,md:(S=(b=c.md)==null?void 0:b[y])!=null?S:x}},r=n("w",186),p=n("h",264),d=n("r",22.6),f=n("font",64),h={xs:Math.round(((i=(C=c.xs)==null?void 0:C.font)!=null?i:64)*.28),md:Math.round(((m=(l=c.md)==null?void 0:l.font)!=null?m: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}/${p.xs}`,md:`${r.md}/${p.md}`},borderRadius:{xs:`${d.xs}px`,md:`${d.md}px`},boxSizing:"border-box",overflow:"visible",pb:{xs:`${h.xs}px`,md:`${h.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:o?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:`-${h.xs}px`,md:`-${h.md}px`},fontFamily:"secondary",fontSize:{xs:`${f.xs}px`,md:`${f.md}px`},lineHeight:1,color:"#3CC666",WebkitTextStroke:"1px #9ee86e",zIndex:3,userSelect:"none"},children:s})]})}const Ie=({logo:t,provider:s,providerName:a,machine:o,onClick:c})=>{var n;return e.jsxs(O.default,{onClick:c,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 ${o!=null?o:""}`,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(A.default,{sx:{color:"#fff",fontWeight:700,fontSize:{xs:11,md:14},textTransform:"capitalize"},children:(n=s!=null?s:a)!=null?n:""})})]})},oe=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)"}}})}),ue=({items:t,layout:s="grid",onClick:a,loading:o=!1,gridSkeletonCount:c=4})=>{var n;if(s==="mosaic"){const r=t[0],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:`${oe}px`,rowGap:`${oe}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:o?e.jsx(se,{}):r&&e.jsx(Y,{imageUrl:`https://olimpo.bet${(n=r.imageUrl)!=null?n:""}`,size:"lg",fillParent:!0,onClick:()=>a==null?void 0:a(r,0)})}),(o?Array.from({length:4}):p).map((d,f)=>{var h;return e.jsx(O.default,{sx:{width:{xs:104,md:152},height:{xs:112,md:168},overflow:"hidden",borderRadius:2},children:o?e.jsx(se,{}):e.jsx(Y,{imageUrl:`https://olimpo.bet${(h=d.imageUrl)!=null?h:""}`,size:"sm",fillParent:!0,onClick:()=>a==null?void 0:a(d,f+1)})},o?`sk-${f}`:d.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:`${oe}px`,gridAutoFlow:"column"},children:(o?Array.from({length:c}):t).map((r,p)=>{var d,f;return e.jsx(O.default,{sx:{overflow:"hidden",borderRadius:2},children:o?e.jsx(se,{}):e.jsx(Y,{imageUrl:`https://olimpo.bet${(d=r.imageUrl)!=null?d:""}`,size:"sm",fillParent:!0,onClick:()=>a==null?void 0:a(r,p)})},o?`sk-${p}`:(f=r.id)!=null?f:p)})})},$e=({title:t,amount:s,subtitle:a,buttonText:o,onButtonClick:c,backgroundImage:n,alt:r,className:p="",variant:d="small"})=>{const f=s?s.slice(0,2):"",h=s?s.slice(2):"",C=d==="large";return e.jsxs(O.default,{className:p,sx:{position:"relative",width:"100%",maxWidth:{xs:328,md:C?618:456},mx:"auto"},children:[n&&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:n,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(A.default,{sx:{fontSize:{xs:12,md:20},fontWeight:400,color:"#e7f8ff"},children:t}),s&&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:f}),e.jsx(O.default,{component:"span",sx:{fontSize:{xs:52,md:77}},children:h})]}),a&&e.jsx(A.default,{sx:{pb:"20px",fontSize:14,fontWeight:600,color:"#e7f8ff"},children:a}),o&&e.jsx(F,{onClick:c,children:o})]})})]})},ke=({text:t,buttonLabel:s="Conoce más",onClick:a,imgAlt:o="Club Olimpo",imgSrcMobile:c,imgSrcDesktopBg:n,imgSrcDesktopLogo:r})=>e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"orc-co-bgMobile",children:e.jsx("img",{src:c,alt:o,className:"orc-co-bgMobileImg"})}),e.jsxs("div",{className:"orc-co-bgDesktop",children:[n&&e.jsx("div",{className:"orc-co-fillHost",children:e.jsx("img",{src:n,alt:`${o} fondo`,className:"orc-co-bgDesktopImg"})}),e.jsxs("div",{className:"orc-co-desktopContent",children:[r&&e.jsx("img",{src:r,alt:`${o} logo`,className:"orc-co-logoImg"}),e.jsx("p",{className:"orc-co-captionDesktop",children:t}),e.jsx(F,{onClick:a,variant:"primary",size:"md",children:s})]})]}),e.jsxs("div",{className:"orc-co-bottom",children:[e.jsx("p",{className:"orc-co-caption",children:t}),e.jsx(F,{onClick:a,variant:"primary",size:"md",children:s})]})]}),Ct="oraculo__OraculoEventCombinadasCard-module__card___ulQeY",Et="oraculo__OraculoEventCombinadasCard-module__combinadas___Gxrld",Ot="oraculo__OraculoEventCombinadasCard-module__apuestaItem___YnYMy",It="oraculo__OraculoEventCombinadasCard-module__lineContainer___G5rbU",$t="oraculo__OraculoEventCombinadasCard-module__circle___eehm-",kt="oraculo__OraculoEventCombinadasCard-module__line___Eb2pK",Nt="oraculo__OraculoEventCombinadasCard-module__apuestaText___b5s7S",Rt="oraculo__OraculoEventCombinadasCard-module__cuotaTotal___Lohvu",V={card:Ct,combinadas:Et,apuestaItem:Ot,lineContainer:It,circle:$t,line:kt,apuestaText:Nt,cuotaTotal:Rt};function pe(t){const s=Array.isArray(t)?t:[t];sessionStorage.setItem("landingOutcomes",JSON.stringify(s)),window.location.href="/deportes"}function Ne({event:t}){var o;function s(c){var h;const n=(h=c.betoffers)!=null?h:[],r=c.homeName,p=c.awayName,d=n.map(C=>{var y,x,j,k,b;let i=C.outcomes[0],l="",m=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 ${m}`,i!=null&&i.participant&&(l=`${i.participant} - ${l}`)):["Menos de","Menos"].includes(i==null?void 0:i.label)?(l=`Menos de ${m}`,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 ${p}`:i.label==="X2"&&(l=`${p} o Empate`):(i!=null&&i.participant?l=i.participant:l=(y=i==null?void 0:i.label)!=null?y:"",m!==""&&l===i.label&&(l=`${i.label} ${m}`)),{id:(x=i==null?void 0:i.id)!=null?x:0,value:l,label:C.criterion.label,odds:(j=i==null?void 0:i.odds)!=null?j:0,bl:(k=i==null?void 0:i.label)!=null?k:0,position:(b=i==null?void 0:i.position)!=null?b:0}}),f=d.reduce((C,i)=>C+i.odds,0)/1e3;return{outcomes:d,total:f.toFixed(2)}}const a=s(t);return e.jsxs("div",{className:V.card,children:[e.jsx("div",{className:V.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((c,n)=>c.position-n.position).map((c,n)=>e.jsxs("div",{className:V.apuestaItem,children:[e.jsxs("div",{className:V.lineContainer,children:[e.jsx("div",{className:V.circle}),n<a.outcomes.length-1&&e.jsx("div",{className:V.line})]}),e.jsxs("div",{className:V.apuestaText,children:[e.jsx("strong",{children:c.value})," ","| ",c.label]})]},n))})]})}),e.jsxs("button",{onClick:()=>{var c,n;return pe((n=(c=a==null?void 0:a.outcomes)==null?void 0:c.map(r=>r==null?void 0:r.id))!=null?n:[])},className:V.cuotaTotal,children:[e.jsxs("span",{children:["Cuota total: ",e.jsx("strong",{children:(((o=t.combinadoTotal)!=null?o: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 Bt({children:t,onClick:s,href:a,target:o,rel:c,type:n="button",disabled:r=!1,variant:p="primary",size:d,fullWidth:f=!1,fullHeight:h=!1,className:C="",ariaLabel:i,leftIcon:l,rightIcon:m,iconOnly:y}){const x=!!t&&t!==!0,b=(!!l?1:0)+(!!m?1:0)==1,S=y!=null?y:b&&!x,R=[G["orc-btn"],G[`orc-btn--${p}`],d?G[`orc-btn--${d}`]:"",f?G["orc-btn--full"]:"",h?G["orc-btn--fullHeight"]:"",S?G["orc-btn--iconOnly"]:"",C].filter(Boolean).join(" "),N=e.jsxs(e.Fragment,{children:[l&&e.jsx("span",{className:G["orc-btn__icon"],children:l}),!S&&e.jsx("span",{className:G["orc-btn__label"],children:t}),m&&e.jsx("span",{className:G["orc-btn__icon"],children:m})]}),E=r?!0:void 0;return a?e.jsx(L.Link,{href:a,target:o,rel:c,"aria-label":i,"aria-disabled":E,tabIndex:E?-1:void 0,className:R,onClick:E?u=>u.preventDefault():s,children:N}):e.jsx("button",{type:n,onClick:s,disabled:!!E,"aria-label":i,className:R,children:N})}const Tt="oraculo__OraculoEventEnVivoCard-module__cardWrapper___6b-cT",Re={cardWrapper:Tt};function Be({event:t,liveData:s,betOffers:a}){var c,n,r,p,d,f,h,C;const o=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(Ee,{title:(c=t.path[0].name)!=null?c:"",subtitle:t.group,live:!0,time:((n=s==null?void 0:s.matchClock)==null?void 0:n.minute)!=null?`${s.matchClock.minute}'`:""}),e.jsx("div",{style:{padding:"0 4px"},children:e.jsxs(z,{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(de,{text:((p=(r=s==null?void 0:s.score)==null?void 0:r.home)!=null?p:0)+":"+((f=(d=s==null?void 0:s.score)==null?void 0:d.away)!=null?f: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(z,{spacing:1,children:((h=o==null?void 0:o.outcomes)!=null?h:[]).map((i,l)=>e.jsx(ce,{text:i.label.toUpperCase()},l))}),e.jsx(z,{spacing:2,children:((C=o==null?void 0:o.outcomes)!=null?C:[]).map((i,l)=>e.jsx(Bt,{variant:"primary",disabled:i.odds==null||(o==null?void 0:o.cashOutStatus)=="SUSPENDED",onClick:()=>{pe(i.id)},children:i.odds===void 0?"":(i.odds/1e3).toFixed(2)},l))})]})]})})}const Pt="oraculo__OraculoEventDate-module__date___xhIlh",Lt={date:Pt};function Ft({text:t}){return e.jsx("div",{className:`oli-font ${Lt.date}`,children:t})}const Wt="oraculo__OraculoEventSemanaCard-module__cardContainer___4JuDe",Mt="oraculo__OraculoEventSemanaCard-module__cardBackground___vfalD",Ut="oraculo__OraculoEventSemanaCard-module__jugadas___W8b7H",zt="oraculo__OraculoEventSemanaCard-module__equipos___G5hLn",K={cardContainer:Wt,cardBackground:Mt,jugadas:Ut,equipos:zt};function Te({event:t}){var a,o,c,n,r,p,d;function s(f){const h=new Date(f),C=h.toLocaleDateString("es-ES",{weekday:"short"}).toUpperCase(),i=h.getDate().toString().padStart(2,"0"),l=(h.getMonth()+1).toString().padStart(2,"0");let m=h.toLocaleTimeString("es-PE",{hour:"numeric",minute:"2-digit",hour12:!0}).toUpperCase();return m=m.replace(/\./g,"").replace(/A\s*M/i,"AM").replace(/P\s*M/i,"PM"),`${C} ${i}/${l} | ${m}`}return e.jsxs("div",{className:K.cardContainer,children:[e.jsx(le,{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(de,{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(Ft,{text:s(t.start)})]}),e.jsxs(T.default,{direction:"column",spacing:{xs:.5,md:1},useFlexGap:!0,children:[e.jsx(z,{spacing:1,children:((n=(c=(o=t==null?void 0:t.outcome)==null?void 0:o[0])==null?void 0:c.outcomes)!=null?n:[]).map((f,h)=>e.jsx(ce,{text:f.label.toUpperCase()},h))}),e.jsx("div",{className:K.jugadas,children:e.jsx(z,{spacing:1,children:((d=(p=(r=t==null?void 0:t.outcome)==null?void 0:r[0])==null?void 0:p.outcomes)!=null?d:[]).map((f,h)=>e.jsx(F,{variant:"primary",fullHeight:!0,onClick:()=>{pe(f.id)},children:(f.odds/1e3).toFixed(2)},h))})})]})]})})]})}function Pe({items:t,title:s="Destacados",iconUrl:a,onViewMore:o,className:c=""}){const n=I.useRef(null),[r,p]=I.useState({isStart:!0,isEnd:!1}),d=()=>{var l;(l=n.current)==null||l.prev()},f=()=>{var l;(l=n.current)==null||l.next(),console.log("items: ",t)},h=()=>{window.location.href="https://www.olimpo.bet/promociones"},C=l=>{if(!l||typeof window=="undefined")return;const y=`https://www.olimpo.bet/promociones/${encodeURIComponent(l)}`;window.location.href=y},i=c||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:s,iconUrl:a,size:"md"}),e.jsxs("div",{style:{display:"flex",gap:8},children:[e.jsx(F,{ariaLabel:"Anterior",variant:"secondary",iconOnly:!0,leftIcon:e.jsx(X.ChevronLeftRounded,{}),onClick:d,disabled:r.isStart}),e.jsx(F,{ariaLabel:"Siguiente",variant:"secondary",iconOnly:!0,rightIcon:e.jsx(X.ChevronRightRounded,{}),onClick:f,disabled:r.isEnd})]}),e.jsx(F,{variant:"secondary",onClick:h,children:"Ver más"})]}),e.jsx(H,{ref:n,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:m})=>p({isStart:l,isEnd:m})})]})}const Gt=t=>{var i,l,m,y,x,j;if(typeof window=="undefined")return;const s=(l=(i=t.name)!=null?i:t.web_name)!=null?l:"",a=(m=t.provider)!=null?m:"",o=(y=t.machine)!=null?y:"",c=(x=t.external_id)!=null?x:"",n=(j=t.type)!=null?j:"Casino",r=encodeURIComponent(String(a)),p=encodeURIComponent(String(o)),d=encodeURIComponent(String(s)),f=encodeURIComponent(String(c)),h=encodeURIComponent(String(n)),C=`https://www.olimpo.bet/casino?machine=${p}&provider=${r}&name=${d}&external_id=${f}&type=${h}`;window.location.href=C};function me({items:t,title:s="Top Juegos",iconUrl:a,onCardClick:o}){const c=I.useMemo(()=>(t!=null?t:[]).map((p,d)=>{var f;return{...p,orden:(f=p.orden)!=null?f:d+1,_originalIndex:d}}).sort((p,d)=>p.orden!=null&&d.orden!=null?p.orden-d.orden:p._originalIndex-d._originalIndex),[t]),n=!t||t.length===0,r=n?Array.from({length:6}):c.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:s,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((p,d)=>{var f,h;return e.jsx(Oe,{imageUrl:n?"":`https://olimpo.bet${(f=p.logo)!=null?f:""}`,orden:n?d+1:p.orden,loading:n,onClick:n?void 0:()=>{o?o(p):Gt(p)}},n?`sk-${d}`:(h=p.machine)!=null?h:`${d}`)})})]})})}const At=(t,s)=>{var a,o;return(o=(a=t.orden)!=null?a:t.machine)!=null?o:s},Dt=t=>{var i,l,m,y,x,j;if(typeof window=="undefined")return;const s=(l=(i=t.name)!=null?i:t.web_name)!=null?l:"",a=(m=t.provider)!=null?m:"",o=(y=t.machine)!=null?y:"",c=(x=t.external_id)!=null?x:"",n=(j=t.type)!=null?j:"Live",r=encodeURIComponent(String(a)),p=encodeURIComponent(String(o)),d=encodeURIComponent(String(s)),f=encodeURIComponent(String(c)),h=encodeURIComponent(String(n)),C=`https://www.olimpo.bet/casino-en-vivo?${p}?provider=${r}&name=${d}&external_id=${f}&type=${h}`;window.location.href=C},Le=({items:t,title:s="Casino en vivo",subtitle:a="Disfruta la emoción en tus juegos favoritos y gana en tiempo real.",backgroundMobileUrl:o="",backgroundDesktopUrl:c="",onCardClick:n,onViewMore:r,className:p})=>(console.log("items: ",t),e.jsxs(O.default,{className:p,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
4
  url('${o}')