oraculo-ui 0.2.33 → 0.2.34
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 +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +159 -159
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
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"),U=require("@mui/material"),v=require("react"),zt=require("@mui/material/Skeleton"),it=require("@splidejs/react-splide"),Dt=require("@mui/material/Box"),Ut=require("@mui/material/Typography"),Vt=require("@mui/material/Stack"),Q=require("@olimpo/capture-client"),me=require("@mui/icons-material"),Wt=require("@mui/material/useMediaQuery"),Gt=require("@mui/icons-material/ChevronLeftRounded"),Ht=require("@mui/icons-material/ChevronRightRounded"),Te=require("@mui/material/styles"),Kt=require("@mui/material/CssBaseline"),Xe=require("firebase/firestore"),ce=t=>t&&t.__esModule?t:{default:t},fe=ce(v),H=ce(zt),P=ce(Dt),le=ce(Ut),K=ce(Vt),xe=ce(Wt),lt=ce(Gt),ct=ce(Ht),Zt=ce(Kt);function X({children:t,onClick:a,href:n,target:o,rel:r,type:s="button",disabled:i=!1,variant:c="primary",size:p,fullWidth:h=!1,fullHeight:u=!1,className:m="",ariaLabel:d,leftIcon:g,rightIcon:b,iconOnly:y}){const C=!!t&&t!==!0,$=(!!g?1:0)+(!!b?1:0)==1,F=y!=null?y:$&&!C,_=["orc-btn",c==="secondary"?"orc-btn--secondary":c==="tertiary"?"orc-btn--tertiary":"orc-btn--primary",p?`orc-btn--${p}`:"",h?"orc-btn--full":"",u?"orc-btn--fullHeight":"",F?"orc-btn--iconOnly":"",m].filter(Boolean).join(" "),k=e.jsxs(e.Fragment,{children:[g&&e.jsx("span",{className:"orc-btn__icon",children:g}),!F&&e.jsx("span",{className:"orc-btn__label",children:t}),b&&e.jsx("span",{className:"orc-btn__icon",children:b})]}),L=i?!0:void 0;return n?e.jsx(U.Link,{href:n,target:o,rel:r,"aria-label":d,"aria-disabled":L,tabIndex:L?-1:void 0,className:_,onClick:L?z=>z.preventDefault():a,children:k}):e.jsx("button",{type:s,onClick:a,disabled:!!L,"aria-label":d,className:_,children:k})}function de({title:t,iconUrl:a,size:n="md",className:o=""}){const s=["orc-section-title",n?`orc-section-title--${n}`:"",o].filter(Boolean).join(" ");return e.jsxs("div",{className:s,children:[a&&e.jsx("img",{src:a,alt:"",className:"orc-section-title__icon"}),e.jsx("h2",{className:"orc-section-title__title",children:t})]})}const qe=({total:t,active:a,onSelect:n,className:o="",durationMs:r=5e3})=>{if(t<=1)return null;const s=["orc-dots",o].filter(Boolean).join(" "),[i,c]=v.useState(0);return v.useEffect(()=>{c(p=>p+1)},[a,r]),e.jsx("div",{className:s,role:"tablist","aria-label":"Carousel pagination",children:Array.from({length:t}).map((p,h)=>{const u=h===a;return e.jsx("span",{className:"orc-dots__cell",children:e.jsx("button",{type:"button",role:"tab","aria-selected":u,"aria-label":`Ir al slide ${h+1}`,className:"orc-dots__dot"+(u?" orc-dots__dot--active":""),style:u?{"--dot-progress-ms":`${r}ms`}:void 0,onClick:()=>{u&&c(m=>m+1),n==null||n(h)}},u?`a-${h}-${i}`:`i-${h}`)},h)})})};function oe({children:t,minWidth:a=32,spacing:n=2,justify:o="stretch",columns:r=null}){const s=r||`repeat(auto-fit, minmax(${a}px, 1fr))`,i=typeof n=="number"?`${n*8}px`:n;return e.jsx("div",{style:{display:"grid",gridTemplateColumns:s,justifyItems:o,gap:i,height:"inherit"},children:t})}function Re({src:t,alt:a}){return e.jsx(U.Box,{sx:{position:"relative",width:{xs:65,sm:80,md:120,lg:160},height:{xs:48,md:96},display:"inline-block"},children:e.jsx(U.Box,{component:"img",src:t,alt:a,sx:{position:"absolute",top:0,left:0,width:"100%",height:"100%",objectFit:"contain"}})})}const Jt="oraculo__OraculoEventTitle-module__contenedor___rg1vw",Xt="oraculo__OraculoEventTitle-module__flexGroup___jMLFO",Yt="oraculo__OraculoEventTitle-module__subtitle___TmHna",Ne={contenedor:Jt,flexGroup:Xt,subtitle:Yt};function Qt({title:t,subtitle:a}){return e.jsxs("div",{className:Ne.contenedor,children:[e.jsx("span",{style:{fontWeight:700,fontSize:"12px",lineHeight:"16px"},children:t}),a&&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:a}),e.jsx("div",{})]})]})}function dt({text:t,color:a="#ff3b3b",textColor:n="#fff"}){return e.jsx("span",{className:"oli-font",style:{backgroundColor:a,color:n,borderRadius:"8px",padding:"4px 8px",fontSize:"12px",lineHeight:"16px",fontWeight:700,width:"42px",height:"16px",textAlign:"center"},children:t})}function ut({live:t,time:a}){return e.jsxs("div",{className:"oli-font",style:{display:"flex",alignItems:"center",gap:"8px"},children:[t&&e.jsx(dt,{text:"En vivo"}),a&&e.jsx("span",{style:{fontSize:"14px",fontWeight:400,lineHeight:"18px",paddingTop:"4px"},children:a})]})}function mt({title:t,subtitle:a,live:n=!1,time:o=""}){return e.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",color:"#FFFFFF"},children:[e.jsx(Qt,{title:t,subtitle:a}),e.jsx(ut,{live:n,time:o})]})}const ea="oraculo__OraculoEventLabel-module__label___c64Xw",ta={label:ea};function Le({text:t}){return e.jsx("span",{className:ta.label,children:t})}const aa="oraculo__OraculoEventLeague-module__container___rdk4F",na={container:aa};function Fe({title:t}){return e.jsx("div",{className:na.container,children:t.toUpperCase()})}const oa="oraculo__OraculoEventScore-module__scoreWrapper___fWwEr",ra="oraculo__OraculoEventScore-module__name___r4uL6",sa="oraculo__OraculoEventScore-module__score___Xl03M",ia="oraculo__OraculoEventScore-module__normal___cCNFz",la="oraculo__OraculoEventScore-module__small___fVt8E",ge={scoreWrapper:oa,name:ra,score:sa,normal:ia,small:la};function Pe({text:t,name:a,size:n="normal"}){return e.jsxs("div",{className:`${ge.scoreWrapper} ${ge[n]}`,children:[e.jsx("div",{className:`${ge.score} ${ge[n]}`,children:t}),a&&e.jsx("span",{className:`${ge.name} ${ge[n]}`,children:a})]})}const ca="oraculo__OraculoEventTeamInfo-module__team___UfpUs",da="oraculo__OraculoEventTeamInfo-module__regular___ag826",ua="oraculo__OraculoEventTeamInfo-module__compact___RCNOs",ma="oraculo__OraculoEventTeamInfo-module__logo___fKCl3",fa="oraculo__OraculoEventTeamInfo-module__name___4ikm-",pa="oraculo__OraculoEventTeamInfo-module__skeleton___Yfaxh",he={team:ca,regular:da,compact:ua,logo:ma,name:fa,skeleton:pa},ga="oraculo__OraculoTeamPolo-module__polo___BisRg",ha="oraculo__OraculoTeamPolo-module__svgWrapper___HRKNX",ba="oraculo__OraculoTeamPolo-module__shadow___-3DXb",xa="oraculo__OraculoTeamPolo-module__highlight___1etm7",Se={polo:ga,svgWrapper:ha,shadow:ba,highlight:xa};function va({jersey:t,className:a}){const n=`#${t.base}`,o=t.sleeve?`#${t.sleeve}`:n,r=t.stripes?`#${t.stripes}`:null,s=t.sleevelong?`#${t.sleevelong}`:null;return e.jsxs("div",{className:`${Se.polo} ${a!=null?a:""}`,children:[e.jsx("div",{className:Se.svgWrapper,children:e.jsxs("svg",{viewBox:"0 0 656 656","aria-hidden":!0,children:[e.jsx("path",{fill:n,d:"m62 265 5.8-17c-.4-.7-.6-1.5-.4-2 .2-.7.8-1.2 1.2-1.4l1.2-4 9-21.6c.2-1 1-3.5 2.4-6.4a69.9 69.9 0 0 1 4.1-17.2l2.9-7 2.9-11.4c1.7-5.8 5.2-18.4 5.8-22 .6-3.6 6.8-19 9.8-26.2.4-.9 2.4-4.7 7.2-12.8 5.4-12.2 23.5-27.2 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-29 2.9-77.3 5.3-112.9l2.6-1c1.3-.3 10.1-2 14.4-2.7l10-3.2 6.6-3.7 9-5 4-2 .5-.3c1.2 2 2.6 4.1 3.4 4.8l6.1 7.8 15 14.6 4.8 4c-.6 26.4-1.1 60.6-1.1 100.1 0 59.3 1.1 82.6 2.7 114.6.9 18.8 2 40.7 3 74.9 1.5 48.3.8 98.4 0 148.6l-.8 68.3c0 13-.6 32.8-1.1 49Zm157.5-16.4-11.2 3.6a379.2 379.2 0 0 1-67 12c.2-11 .3-25.6.3-44.6 0-49.2-1.2-74.9-2.4-99.5-1.3-27.2-2.5-53-2-107.5.6-50.4 1.7-81.5 2.6-109.3 1-29.3 1.8-54.9 1.8-95.6 0-35.5-.6-70.6-1.2-98.6l3.6-3 5.3-5.1 3.5-3.6 3.5-3.4 4-5 4.2-5.3 2.7-4 .5.3 3.2 1.5 5.5 3.3 5.8 3 7.3 3 8.1 2.2c.7.2 3.3 1 8.4 2 2.4 0 6.5 1.5 11 3.4 2.6 29 5.2 68 5.2 107.8 0 41.5-1.6 70.2-3.2 102-1.6 28.7-3.3 60-4 105.6-.7 41.1.4 82.5 1.4 124.4.7 25.7 1.4 51.6 1.6 77.8a435 435 0 0 0 1.5 32.6Z"})]}),s&&e.jsx(e.Fragment,{children:e.jsx("path",{fill:s,d:"m153 277.8-5.8 14.5c-1 2.8-2.5 1.4-4.6.7l-2-.5-7.8-2.4-15.6-5-19-6.5-16-5.7-12-4.4-5.5-2.2c-3.5-1.1-3.1-1.2-1.9-4l1.8-4.9 3.2-9.3c-1.1-1.9 0-3.1.8-3.5l.2-.7.5-2 4.3-10.3 2.4-6 2.6-6.2.8-2.6 1.7-4.1v-.4l.3-2.6.6-3.4 1-3.5 1-3.8c.1-.9 2-5.6 3-7.8l.7-1.5.7-2 .9-3.6 3.4-12.6 2.4-8.6 2.7-11.2 3.5-9.6 3.6-9.4 3-6 2-4.1 3.6-5.8 2.2-4.3 3-4.4 3.2-3.9 1.7-1.9 3.6-3.6 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.5 9l-10.2-.4-15.4-.4H301.6c-4.6.2-14.6.6-17.2 1.2l-3.4.6c-3.2.5-6.9 1-8.4 2l-1.4.8c-1.5.7-2.8 1.4-5 3.7l-3.3 3.2Zm4.3 14 1.9 5.5 4.6 8.2 5 6.7 5.3 6.6 11 10.7 10.8 9.8 12.8 11.7 7.4 7 3 3 15-13.3 16.7-15.7 6.7-6.2 6-6.6a104.1 104.1 0 0 0 13.8-19.6c1-1.9 1.8-4.5 2-5.6 2.7-7.9 1.4-13.8-1.5-17.8-4-5.2-14.9-6.6-18.5-7.1h-.7c-13.8-1.9-39.8-2-46-1.9-9-.2-28.1.2-32.5.7-.6 0-1.2 0-1.9.2-6.8.6-19.9 1.9-22.6 10.6a22.6 22.6 0 0 0 .9 10.3l.8 2.9Z"}),e.jsx("path",{fill:o,d:"m74.8 250.8-6.8-2.7-.3.7-3 8.7-2 5.7c-1 2.2-.5 1.9.1 2.3l2.2 1 8.8 3.3 10.4 3.8 10.7 3.8 14.3 4.8 13 4.3 7 2.3 13.8 4.3c2.2.7 3 1.4 3.8 0l6.3-15.6-4.6-1.8a88 88 0 0 1-9.4-3c-.8-.6-11.8-3.7-17.3-5.4l-7-2.4-13-4.3c-3.2-1.3-9.9-3.8-11-4-1.2-.2-11-3.8-16-5.8Z"}),e.jsx("path",{fill:o,d:"m505 284.5-3.5-7.5c.2-.2 1.2-.4 3 0 1.6.4 11.3-1.7 16-2.7l22.5-6.6 13.7-4.5 16.8-6.7a90 90 0 0 0 13.7-7.7v1l.6 2 1.9 5.5 2.9 7.8c.6 1.6-5.5 4.8-8.6 6.3l-17 7.2-15.3 5.4-13 4.2-13 3.3-9.9 2c-6.8 1.2-7.2-.4-8-2l-2.7-7Z"})]})}),e.jsx("img",{src:"https://widgets.sir.sportradar.com/assets/media/shadow.7a42eb6e.png",className:Se.shadow,alt:"","aria-hidden":!0}),e.jsx("img",{src:"https://widgets.sir.sportradar.com/assets/media/highlight.b1ac6c3e.png",className:Se.highlight,alt:"","aria-hidden":!0})]})}function _e({name:t,jersey:a,size:n="regular"}){return e.jsxs("div",{className:`oli-font ${he.team} ${he[n]}`,children:[a!=null&&a.base?e.jsx(va,{jersey:a,className:`${he.logo}`}):e.jsx(H.default,{variant:"circular",className:`${he.logo} ${he.skeleton}`}),e.jsx("span",{className:he.name,children:t})]})}function _a(t,a,{enabled:n=!0,threshold:o=60,cooldownMs:r=500}={}){const s=v.useRef(0),i=v.useRef(0);v.useEffect(()=>{if(!n)return;const c=t.current;if(!c)return;const p=h=>{const u=a.current;if(!u||!u.go)return;const{deltaX:m,deltaY:d}=h;if(Math.abs(m)<=Math.abs(d))return;h.preventDefault(),s.current+=m;const g=Date.now();if(g-i.current<r||Math.abs(s.current)<o)return;const b=s.current>0?">":"<";s.current=0,i.current=g,u.go(b)};return c.addEventListener("wheel",p,{passive:!1}),()=>{c.removeEventListener("wheel",p),s.current=0}},[n,o,r,t,a])}const ya="oraculo__OraculoCarousel-module__gradientOverlay___xYDfc",Sa="oraculo__OraculoCarousel-module__right___KwpOE",wa="oraculo__OraculoCarousel-module__left___n3WQu",ja="oraculo__OraculoCarousel-module__svg___0mGuX",be={gradientOverlay:ya,right:Sa,left:wa,svg:ja},Ia=it.Splide,Oa=it.SplideSlide,ue=v.forwardRef(({items:t=[],renderItem:a,perPage:n=1,gap:o="0px",breakpoints:r,options:s={},className:i="",onMove:c,useIndexAsKey:p=!1,enableHorizontalWheel:h=!0,showRightGradient:u=!1},m)=>{const d=v.useRef(null),g=v.useRef(null),b=v.useRef(t.length),y=v.useRef(null),C=v.useRef(null),f=v.useRef("user");_a(g,d,{enabled:h}),v.useImperativeHandle(m,()=>({next:()=>{var I;return(I=d.current)==null?void 0:I.go(">")},prev:()=>{var I;return(I=d.current)==null?void 0:I.go("<")},go:I=>{var x;return(x=d.current)==null?void 0:x.go(I)}}));const S=I=>{var Z;const x=I.Components.Slides,j=I.Components.Controller,R=I.root.querySelector(".splide__track"),M=(Z=R==null?void 0:R.clientWidth)!=null?Z:0,B=j.getIndex(),D=x.getLength();let V=0,G=B;for(let W=B;W<D;W++){const O=x.getAt(W);if(!O||(V+=O.slide.offsetWidth,V>M))break;G=W}return{visibleStart:B,visibleEnd:G}},$=I=>{const x=I.root.querySelector(".splide__track"),j=I.root.querySelector(".splide__list");return!x||!j?!1:j.scrollWidth>x.clientWidth+1},F=v.useRef(!1),_=v.useCallback(I=>{var Z,W;if(F.current)return;const j=I.Components.Slides.getLength(),R=f.current;if(f.current="user",!$(I)){c==null||c({index:0,isStart:!0,isEnd:!0,total:j,visibleStart:0,visibleEnd:j-1,source:R});return}const{visibleStart:M,visibleEnd:B}=S(I),D=M===0,V=B===j-1;u&&((Z=y.current)==null||Z.style.setProperty("--gradient-opacity",D?"0":"1"),(W=C.current)==null||W.style.setProperty("--gradient-opacity",V?"0":"1"));const G=I.Components.Controller.getIndex();c==null||c({index:G,isStart:D,isEnd:V,total:j,visibleStart:M,visibleEnd:B,source:R})},[c]);fe.default.useEffect(()=>{var j;const I=(j=d.current)==null?void 0:j.splide;if(!I)return;const x=b.current!==t.length;b.current=t.length,x&&requestAnimationFrame(()=>{F.current=!0;try{I.refresh()}finally{F.current=!1}f.current="resize",_(I)})},[t.length,_]);const k=v.useCallback(()=>{var x;const I=(x=d.current)==null?void 0:x.splide;if(I){F.current=!0;try{I.go(0,!1)}finally{F.current=!1}f.current="resize",_(I)}},[_]),L=v.useCallback(I=>{f.current="mounted",_(I)},[_]),z={type:"slide",trimSpace:!1,drag:!0,pagination:!1,arrows:!1,rewind:!1,focus:"start",autoWidth:!1,perPage:n,gap:o,breakpoints:r,...s,...h?{wheel:!1}:{}};return e.jsxs("div",{ref:g,className:i,style:{width:"100%",position:"relative",height:"100%"},children:[e.jsx(Ia,{ref:d,options:z,onMove:_,onMounted:L,onResize:k,children:t.map((I,x)=>{var j;return e.jsx(Oa,{children:a(I,x)},p?x:(j=I.id)!=null?j:x)})}),u&&e.jsxs(e.Fragment,{children:[e.jsx("div",{ref:y,className:`${be.gradientOverlay} ${be.left}`,style:{"--gradient-opacity":"0"},children:e.jsxs("svg",{className:be.svg,viewBox:"0 0 152 184",preserveAspectRatio:"none",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{d:"M0 0H152V184H0V0Z",fill:"url(#paint_left)"}),e.jsx("defs",{children:e.jsxs("linearGradient",{id:"paint_left",x1:"0",y1:"92",x2:"152",y2:"92",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{offset:"0.59737",stopColor:"#121212",stopOpacity:"0"}),e.jsx("stop",{offset:"1",stopColor:"#121212"})]})})]})}),e.jsx("div",{ref:C,className:`${be.gradientOverlay} ${be.right}`,style:{"--gradient-opacity":"1"},children:e.jsxs("svg",{className:be.svg,viewBox:"0 0 152 184",preserveAspectRatio:"none",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{d:"M0 0H152V184H0V0Z",fill:"url(#paint_right)"}),e.jsx("defs",{children:e.jsxs("linearGradient",{id:"paint_right",x1:"0",y1:"92",x2:"152",y2:"92",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{offset:"0.59737",stopColor:"#121212",stopOpacity:"0"}),e.jsx("stop",{offset:"1",stopColor:"#121212"})]})})]})})]})]})}),ve=({imageUrl:t,onClick:a,size:n="sm",fillParent:o=!1})=>{const r=n==="lg"?{w:280,h:352}:{w:152,h:168},s=c=>{c.stopPropagation(),a==null||a()},i=o?{width:"100%",height:"100%"}:{width:`${r.w}px`,height:`${r.h}px`};return e.jsxs(P.default,{onClick:a,role:"button",sx:{position:"relative",borderRadius:"12px",overflow:"hidden",boxSizing:"border-box",transition:"transform .15s ease, box-shadow .15s ease",...i,"&: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(P.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(P.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(X,{variant:"primary",size:"md",onClick:s,children:"Jugar"})})]})};function ft({imageUrl:t,orden:a=1,onClick:n,loading:o=!1,sizes:r={xs:{w:104,h:112,r:18,font:48},md:{w:186,h:264,r:22.6,font:64}}}){var m,d,g,b;const s=(y,C)=>{var f,S,$,F;return{xs:(S=(f=r.xs)==null?void 0:f[y])!=null?S:C,md:(F=($=r.md)==null?void 0:$[y])!=null?F:C}},i=s("w",186),c=s("h",264),p=s("r",22.6),h=s("font",64),u={xs:Math.round(((d=(m=r.xs)==null?void 0:m.font)!=null?d:64)*.28),md:Math.round(((b=(g=r.md)==null?void 0:g.font)!=null?b:64)*.28)};return e.jsxs(P.default,{sx:{position:"relative",width:"100%",maxWidth:{xs:`${i.xs}px`,md:`${i.md}px`},aspectRatio:{xs:`${i.xs}/${c.xs}`,md:`${i.md}/${c.md}`},borderRadius:{xs:`${p.xs}px`,md:`${p.md}px`},boxSizing:"border-box",overflow:"visible",pb:{xs:`${u.xs}px`,md:`${u.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(P.default,{sx:{position:"absolute",inset:0,borderRadius:"inherit",overflow:"hidden"},children:o?e.jsx(H.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(ve,{imageUrl:t,onClick:n,size:"lg",fillParent:!0})}),e.jsx(P.default,{component:"span",sx:{position:"absolute",left:8,bottom:{xs:`-${u.xs}px`,md:`-${u.md}px`},fontFamily:'"secondary", sans-serif',fontSize:{xs:`${h.xs}px`,md:`${h.md}px`},lineHeight:1,color:"#3CC666",WebkitTextStroke:"1px #9ee86e",zIndex:3,userSelect:"none"},children:a})]})}const pt=({logo:t,provider:a,providerName:n,machine:o,onClick:r})=>{var s;return e.jsxs(P.default,{onClick:r,sx:{flex:"0 0 auto",position:"relative",borderRadius:"20px",overflow:"hidden",width:{xs:100,md:180},height:{xs:200,md:380},transition:"width .50s ease, transform .28s ease",willChange:"width, transform",cursor:"pointer",zIndex:0,"&:hover":{zIndex:2,width:{md:260,xs:110}},"&:hover .orc-live-provider-label":{opacity:1}},children:[e.jsx(P.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(P.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(le.default,{sx:{color:"#fff",fontWeight:700,fontSize:{xs:11,md:14},textTransform:"capitalize"},children:(s=a!=null?a:n)!=null?s:""})})]})},$e=12,Me=({r:t=16})=>e.jsx(P.default,{sx:{width:"100%",height:"100%",borderRadius:t,overflow:"hidden"},children:e.jsx(H.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)"}}})}),ze=({items:t,layout:a="grid",onClick:n,loading:o=!1,gridSkeletonCount:r=4})=>{var s,i;if(a==="mosaic"){const c=t[0],p=t.slice(1,5);return e.jsxs(P.default,{sx:{display:"grid",gridTemplateRows:{xs:"repeat(2, 112px)",md:"repeat(2, 168px)"},gridTemplateColumns:{xs:"184px",md:"280px"},gridAutoFlow:"column",gridAutoColumns:{xs:"104px",md:"152px"},columnGap:`${$e}px`,rowGap:`${$e}px`,alignItems:"stretch",justifyItems:"stretch"},children:[e.jsx(P.default,{sx:{width:{xs:184,md:280},height:{xs:234,md:352},gridRow:"1 / span 2",overflow:"hidden",borderRadius:2},children:o?e.jsx(Me,{}):c&&e.jsx(ve,{imageUrl:`https://olimpo.bet${(i=(s=c.background)!=null?s:c.imageUrl)!=null?i:""}`,size:"lg",fillParent:!0,onClick:()=>n==null?void 0:n(c,0)})}),(o?Array.from({length:4}):p).map((h,u)=>{var m,d;return e.jsx(P.default,{sx:{width:{xs:104,md:152},height:{xs:112,md:168},overflow:"hidden",borderRadius:2},children:o?e.jsx(Me,{}):e.jsx(ve,{imageUrl:`https://olimpo.bet${(d=(m=h.background)!=null?m:h.imageUrl)!=null?d:""}`,size:"sm",fillParent:!0,onClick:()=>n==null?void 0:n(h,u+1)})},o?`sk-${u}`:h.id)})]})}return e.jsx(P.default,{sx:{display:"grid",gridTemplateColumns:{xs:"repeat(2, 104px)",md:"repeat(2, 152px)"},gridTemplateRows:{xs:"repeat(2, 112px)",md:"repeat(2, 168px)"},gap:`${$e}px`,gridAutoFlow:"column"},children:(o?Array.from({length:r}):t).map((c,p)=>{var h,u,m;return e.jsx(P.default,{sx:{overflow:"hidden",borderRadius:2},children:o?e.jsx(Me,{}):e.jsx(ve,{imageUrl:`https://olimpo.bet${(u=(h=c.background)!=null?h:c.imageUrl)!=null?u:""}`,size:"sm",fillParent:!0,onClick:()=>n==null?void 0:n(c,p)})},o?`sk-${p}`:(m=c.id)!=null?m:p)})})},Ae=({title:t,amount:a,subtitle:n,buttonText:o,onButtonClick:r,backgroundImage:s,alt:i,className:c="",variant:p="small"})=>{const h=a?a.slice(0,2):"",u=a?a.slice(2):"",m=p==="large";return e.jsxs(P.default,{className:c,sx:{position:"relative",width:"100%",maxWidth:{xs:328,md:m?618:456},mx:"auto"},children:[s&&e.jsx(P.default,{sx:{position:"relative",width:"100%",aspectRatio:{xs:"328 / 188",md:m?"618 / 346":"456 / 272"},borderRadius:"14px",overflow:"hidden"},children:e.jsx(P.default,{component:"img",src:s,alt:i!=null?i:"Fondo promocional",sx:{width:"100%",height:"100%",objectFit:"cover",objectPosition:{xs:"50% 0%",md:"45% 0%"},display:"block"}})}),e.jsx(P.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(P.default,{sx:{maxWidth:"60%",display:"flex",flexDirection:"column",alignItems:"center"},children:[t&&e.jsx(le.default,{sx:{fontSize:{xs:12,md:20},fontWeight:400,color:"#e7f8ff"},children:t}),a&&e.jsxs(P.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(P.default,{component:"span",sx:{fontSize:{xs:35,md:48},mr:.5},children:h}),e.jsx(P.default,{component:"span",sx:{fontSize:{xs:52,md:77}},children:u})]}),n&&e.jsx(le.default,{sx:{pb:"20px",fontSize:14,fontWeight:600,color:"#e7f8ff"},children:n}),o&&e.jsx(X,{onClick:r,children:o})]})})]})},gt=({text:t,buttonLabel:a="Conoce más",onClick:n,imgAlt:o="Club Olimpo",imgSrcMobile:r,imgSrcDesktopBg:s,imgSrcDesktopLogo:i})=>e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"orc-co-bgMobile",children:e.jsx("img",{src:r,alt:o,className:"orc-co-bgMobileImg"})}),e.jsx("div",{className:"orc-co-bgDesktop",children:e.jsxs("div",{className:"orc-co-desktopInner",children:[s&&e.jsx("div",{className:"orc-co-fillHost",children:e.jsx("img",{src:s,alt:`${o} fondo`,className:"orc-co-bgDesktopImg"})}),e.jsxs("div",{className:"orc-co-desktopContent",children:[i&&e.jsx("img",{src:i,alt:`${o} logo`,className:"orc-co-logoImg"}),e.jsx("p",{className:"orc-co-captionDesktop",children:t}),e.jsx(X,{onClick:n,variant:"primary",size:"md",children:a})]})]})}),e.jsxs("div",{className:"orc-co-bottom",children:[e.jsx("p",{className:"orc-co-caption",children:t}),e.jsx(X,{onClick:n,variant:"primary",size:"md",children:a})]})]}),Ca="oraculo__OraculoEventCombinadasCard-module__card___ulQeY",Ea="oraculo__OraculoEventCombinadasCard-module__combinadas___Gxrld",ka="oraculo__OraculoEventCombinadasCard-module__combinadasScroll___47cZl",Ta="oraculo__OraculoEventCombinadasCard-module__apuestaItem___YnYMy",Na="oraculo__OraculoEventCombinadasCard-module__lineContainer___G5rbU",$a="oraculo__OraculoEventCombinadasCard-module__circle___eehm-",Ma="oraculo__OraculoEventCombinadasCard-module__line___Eb2pK",Ba="oraculo__OraculoEventCombinadasCard-module__apuestaText___b5s7S",Ra="oraculo__OraculoEventCombinadasCard-module__cuotaTotal___Lohvu",se={card:Ca,combinadas:Ea,combinadasScroll:ka,apuestaItem:Ta,lineContainer:Na,circle:$a,line:Ma,apuestaText:Ba,cuotaTotal:Ra};function De(t,a){const n=Array.isArray(a)?a:[a];sessionStorage.setItem("landingOutcomes",JSON.stringify(n)),window.location.href=t}function Aa(){window.location.href="/deportes#in-play"}function qa(){window.location.href="/deportes#sports-hub/football"}function La(){window.location.href="/deportes#specials"}async function ht(t){return await(await fetch("https://api.mktolimpo.com/api/jerseys/search",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({events:t})})).json()}const bt=v.createContext(void 0),Ue=({children:t,docId:a,moduleId:n})=>{const o=fe.default.useMemo(()=>({docId:a,moduleId:n}),[a,n]);return e.jsx(bt.Provider,{value:o,children:t})},xt=()=>{const t=v.useContext(bt);if(!t)throw new Error("useDocContext debe usarse dentro de DocIdProvider");return t},ee=()=>xt().docId,re=()=>xt().moduleId;function vt({coupon:t}){var h;const a=Q.useCaptureInteraction(),n=ee();function o(u){var g,b;const m=[],d=Array.from(new Map(((g=u==null?void 0:u.events)!=null?g:[]).filter(Boolean).map(y=>[y.id,y])).values());return d.forEach(y=>{var $;const C=($=y.betoffers)!=null?$:[],f=y.homeName,S=y.awayName;C.forEach(F=>{var z,I,x,j,R,M,B;if(!((z=F==null?void 0:F.outcomes)!=null&&z.length))return;const _=F.outcomes[0];if(!_)return;let k="";const L=_!=null&&_.line?_.line/1e3:"";["Más de","Mas de","Over"].includes(_.label)?(k=`Más de ${L}`,_.participant&&(k=`${_.participant} - ${k}`)):["Menos de","Menos","Under"].includes(_.label)?(k=`Menos de ${L}`,_.participant&&(k=`${_.participant} - ${k}`)):["Sí","No"].includes(_.label)?(k=_.label,_.participant&&(k=`${_.participant} - ${k}`)):["1X","12","X2"].includes(_.label)?(_.label==="1X"&&(k=`${f} o Empate`),_.label==="12"&&(k=`${f} o ${S}`),_.label==="X2"&&(k=`${S} o Empate`)):(k=(x=(I=_.participant)!=null?I:_.label)!=null?x:"",L!==""&&k===_.label&&(k=`${_.label} ${L}`)),m.push({id:_.id,value:k,label:(R=(j=F.criterion)==null?void 0:j.label)!=null?R:"",odds:(M=_.odds)!=null?M:0,position:(B=_.position)!=null?B:0,eventId:y.id})})}),{outcomes:m.sort((y,C)=>y.position-C.position),total:Number((b=u==null?void 0:u.combinadoTotal)!=null?b:0).toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2}),events:d}}function r(u){if(!u||!Array.isArray(u.events)||u.events.length===0)return"/deportes#home";const m=u.events;if(m.length===1)return`/deportes#event/${m[0].id}`;const d=m[0].groupId;if(m.every(b=>b.groupId===d)){const b=m[0].path;if(Array.isArray(b)&&b.length>0)return`/deportes#sports-hub/${b.map(C=>C.termKey).filter(Boolean).join("/")}`}return"/deportes#home"}const s=(u,m)=>{const d=Array.isArray(u)?u:[u],g=Array.from(new Set(i.outcomes.map(C=>{var S;const f=p.get(Number(C.eventId));return(S=f==null?void 0:f.name)!=null?S:""}))).filter(Boolean),b=g.length>0?g.join(" + "):JSON.stringify(d),y=m?`${b} - Cuota: ${m}`:b;a({element:"evento_semana_outcome",label:`Landing: ${n} - OraculoEventCombinadasCard - Click: ${y}`,target:"/deportes#in-play",event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{section:"OraculoEventCombinadasCard",outcomes:y}}),De(r(t),u)};if(!((h=t==null?void 0:t.events)!=null&&h.length))return null;const i=o(t),c=i.outcomes.reduce((u,m)=>(u[m.eventId]||(u[m.eventId]=[]),u[m.eventId].push(m),u),{}),p=new Map(i.events.map(u=>[u.id,u]));return e.jsxs("div",{className:se.card,children:[e.jsx("div",{className:se.combinadas,children:e.jsx("div",{className:se.combinadasScroll,children:e.jsx(K.default,{direction:"column",spacing:1.5,useFlexGap:!0,children:Object.entries(c).reverse().map(([u,m])=>{const d=p.get(Number(u));return d?e.jsxs(K.default,{direction:"column",spacing:.5,useFlexGap:!0,children:[e.jsx(de,{title:d.name,iconUrl:"/assets/img/home/Combinadas/pelota.png",size:"xs"}),e.jsx("img",{loading:"lazy",src:"/assets/img/home/Combinadas/line.png"}),m.map((g,b)=>e.jsxs("div",{className:se.apuestaItem,children:[e.jsxs("div",{className:se.lineContainer,children:[e.jsx("div",{className:se.circle}),b<m.length-1&&e.jsx("div",{className:se.line})]}),e.jsxs("div",{className:se.apuestaText,children:[e.jsx("strong",{children:g.value})," | ",g.label]})]},`${u}-${b}`))]},u):null})})})}),e.jsxs("button",{onClick:()=>s(i.outcomes.map(u=>u.id),i.total),className:se.cuotaTotal,children:[e.jsxs("span",{children:["Cuota total: ",e.jsx("strong",{children:i.total})]}),e.jsx("img",{loading:"lazy",src:"/assets/img/home/Combinadas/cuotaTotal.svg",alt:"cuota total"})]})]})}const ie={"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 Fa({children:t,onClick:a,href:n,target:o,rel:r,type:s="button",disabled:i=!1,variant:c="primary",size:p,fullWidth:h=!1,fullHeight:u=!1,className:m="",ariaLabel:d,leftIcon:g,rightIcon:b,iconOnly:y}){const C=!!t&&t!==!0,$=(!!g?1:0)+(!!b?1:0)==1,F=y!=null?y:$&&!C,_=[ie["orc-btn"],ie[`orc-btn--${c}`],p?ie[`orc-btn--${p}`]:"",h?ie["orc-btn--full"]:"",u?ie["orc-btn--fullHeight"]:"",F?ie["orc-btn--iconOnly"]:"",m].filter(Boolean).join(" "),k=e.jsxs(e.Fragment,{children:[g&&e.jsx("span",{className:ie["orc-btn__icon"],children:g}),!F&&e.jsx("span",{className:ie["orc-btn__label"],children:t}),b&&e.jsx("span",{className:ie["orc-btn__icon"],children:b})]}),L=i?!0:void 0;return n?e.jsx(U.Link,{href:n,target:o,rel:r,"aria-label":d,"aria-disabled":L,tabIndex:L?-1:void 0,className:_,onClick:L?z=>z.preventDefault():a,children:k}):e.jsx("button",{type:s,onClick:a,disabled:!!L,"aria-label":d,className:_,children:k})}const Pa="oraculo__OraculoEventEnVivoCard-module__cardWrapper___6b-cT",za="oraculo__OraculoEventEnVivoCard-module__customButtonLabel___QRhk7",Da="oraculo__OraculoEventEnVivoCard-module__customButtonDisabled___jwioF",Ie={cardWrapper:Pa,customButtonLabel:za,customButtonDisabled:Da},Ye={base:"FFFFFF",sleeve:"FFFFFF",number:"000000",real:!1,type:"short_sleeves"},Qe={base:"000000",sleeve:"000000",number:"FFFFFF",real:!1,type:"short_sleeves"},Ce=(t,a,n="player")=>{var r,s;if(t===void 0)return null;if(t===null)return a==="home"?Ye:Qe;const o=(s=(r=t==null?void 0:t.jerseys)==null?void 0:r[a])==null?void 0:s[n];return o||(a==="home"?Ye:Qe)};function _t({event:t,liveData:a,betOffers:n,jersey:o}){var c,p,h,u,m,d,g,b,y,C,f;const r=n==null?void 0:n.find(S=>{var $;return(($=S.betOfferType)==null?void 0:$.id)===2}),s={englishLabel:"",type:"",betOfferId:0,changedDate:"",oddsFractional:"",oddsAmerican:"",status:"INACTIVE",cashOutStatus:"SUSPENDED"},i=[{...s,id:-1,label:"1",odds:void 0},{...s,id:-2,label:"X",odds:void 0},{...s,id:-3,label:"2",odds:void 0}];return e.jsx("div",{className:Ie.cardWrapper,children:e.jsxs(K.default,{direction:"column",spacing:1,useFlexGap:!0,children:[e.jsxs(K.default,{direction:"column",spacing:1.5,useFlexGap:!0,children:[e.jsx(mt,{title:(h=(p=(c=t==null?void 0:t.path)==null?void 0:c[0])==null?void 0:p.name)!=null?h:"",subtitle:(u=t==null?void 0:t.group)!=null?u:"",live:!0,time:((m=a==null?void 0:a.matchClock)==null?void 0:m.minute)!=null?`${a.matchClock.minute}'`:""}),e.jsx("div",{style:{padding:"0 4px"},children:e.jsxs(oe,{spacing:1.5,columns:"1fr auto 1fr",children:[e.jsx(_e,{name:t==null?void 0:t.homeName,jersey:Ce(o,"home")}),e.jsx(Pe,{text:((g=(d=a==null?void 0:a.score)==null?void 0:d.home)!=null?g:0)+":"+((y=(b=a==null?void 0:a.score)==null?void 0:b.away)!=null?y:0),name:"En vivo"}),e.jsx(_e,{name:t==null?void 0:t.awayName,jersey:Ce(o,"away")})]})})]}),e.jsxs(K.default,{direction:"column",spacing:1,useFlexGap:!0,children:[e.jsx(oe,{spacing:1,children:((C=r==null?void 0:r.outcomes)!=null?C:i).map((S,$)=>e.jsx(Le,{text:S.label.toUpperCase()},$))}),e.jsx(oe,{spacing:2,children:((f=r==null?void 0:r.outcomes)!=null?f:i).map((S,$)=>e.jsx(Fa,{variant:"primary",disabled:S.odds==null||(r==null?void 0:r.cashOutStatus)=="SUSPENDED",onClick:()=>{De("/deportes#event/live/"+t.id,S.id)},className:Ie.customButtonDisabled,children:e.jsx("span",{className:Ie.customButtonLabel,children:S.odds===void 0?"":(S.odds/1e3).toFixed(2)})},$))})]})]})})}const Ua="oraculo__OraculoEventDate-module__date___xhIlh",Va={date:Ua};function Wa({text:t}){return e.jsx("div",{className:`oli-font ${Va.date}`,children:t})}const Ga="oraculo__OraculoEventSemanaCard-module__cardContainer___4JuDe",Ha="oraculo__OraculoEventSemanaCard-module__cardBackground___vfalD",Ka="oraculo__OraculoEventSemanaCard-module__jugadas___W8b7H",Za="oraculo__OraculoEventSemanaCard-module__equipos___G5hLn",pe={cardContainer:Ga,cardBackground:Ha,jugadas:Ka,equipos:Za};function yt({event:t,jersey:a}){var i,c,p,h,u,m,d;const n=Q.useCaptureInteraction(),o=ee();function r(g){const b=new Date(g),y=b.toLocaleDateString("es-ES",{weekday:"short"}).toUpperCase(),C=b.getDate().toString().padStart(2,"0"),f=(b.getMonth()+1).toString().padStart(2,"0");let S=b.toLocaleTimeString("es-PE",{hour:"numeric",minute:"2-digit",hour12:!0}).toUpperCase();return S=S.replace(/\./g,"").replace(/A\s*M/i,"AM").replace(/P\s*M/i,"PM"),`${y} ${C}/${f} | ${S}`}const s=(g,b)=>{const y=`${t.homeName} vs ${t.awayName}`,C=b?(b/1e3).toFixed(2):"",f=C?`${y} - Cuota: ${C}`:y;n({element:"evento_semana_outcome",label:`Landing: ${o} - OraculoEventSemanaCard - Click: ${f}`,target:"/deportes#in-play",event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{section:"OraculoEventSemanaCard",outcomes:f}}),De("/deportes#event/"+t.id,g)};return e.jsxs("div",{className:pe.cardContainer,children:[e.jsx(Fe,{title:(i=t==null?void 0:t.group)!=null?i:""}),e.jsx("div",{className:pe.cardBackground,children:e.jsxs(K.default,{direction:"column",spacing:{xs:.5,md:1},useFlexGap:!0,children:[e.jsxs(K.default,{direction:"column",spacing:1,useFlexGap:!0,children:[e.jsxs("div",{className:pe.equipos,children:[e.jsx(_e,{name:t.homeName,size:"compact",jersey:Ce(a,"home")}),e.jsx(Pe,{text:"vs.",name:"",size:"small"}),e.jsx(_e,{name:t.awayName,size:"compact",jersey:Ce(a,"away")})]}),e.jsx(Wa,{text:r(t.start)})]}),e.jsxs(K.default,{direction:"column",spacing:{xs:.5,md:1},useFlexGap:!0,children:[e.jsx(oe,{spacing:1,children:((h=(p=(c=t==null?void 0:t.outcome)==null?void 0:c[0])==null?void 0:p.outcomes)!=null?h:[]).map((g,b)=>e.jsx(Le,{text:g.label.toUpperCase()},b))}),e.jsx("div",{className:pe.jugadas,children:e.jsx(oe,{spacing:1,children:((d=(m=(u=t==null?void 0:t.outcome)==null?void 0:u[0])==null?void 0:m.outcomes)!=null?d:[]).map((g,b)=>e.jsx(X,{variant:"primary",fullHeight:!0,onClick:()=>{s(g.id,g.odds)},children:(g.odds/1e3).toFixed(2)},b))})})]})]})})]})}function St({items:t,title:a="Destacados",iconUrl:n,onViewMore:o,className:r="",paddingMobile:s="16px"}){var F;const i=v.useRef(null),[c,p]=v.useState({isStart:!0,isEnd:!1}),h=Q.useCaptureInteraction(),u=ee(),m=re(),d=!t||t.length===0,g=()=>{var _;h({element:"destacados_carousel_prev",label:`${u} - OraculoSeccionDestacados - Anterior`,target:"carousel",event_type:"click",module_id:m,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{section:"OraculoSeccionDestacados"}}),(_=i.current)==null||_.prev()},b=()=>{var _;h({element:"destacados_carousel_next",label:`${u} - OraculoSeccionDestacados - Siguiente`,target:"carousel",event_type:"click",module_id:m,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{section:"OraculoSeccionDestacados"}}),(_=i.current)==null||_.next()},y=()=>{h({element:"destacados_view_more",label:`${u} - OraculoSeccionDestacados - Ver más`,target:"https://www.olimpo.bet/promociones",event_type:"click",module_id:m,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{section:"OraculoSeccionDestacados"}}),typeof globalThis!="undefined"&&globalThis.location&&globalThis.location.assign("https://www.olimpo.bet/promociones")},C=_=>{if(!_)return;const L=`https://www.olimpo.bet/promociones/${encodeURIComponent(_)}`;h({element:"destacados_card",label:`${u} - OraculoSeccionDestacados - Click: ${String(_)}`,target:L,event_type:"click",module_id:m,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{section:"OraculoSeccionDestacados",promotion:String(_)}}),typeof globalThis!="undefined"&&globalThis.location&&globalThis.location.assign(L)},f=r||void 0,S=xe.default("(max-width:950px)"),$=(F=t==null?void 0:t.length)!=null?F:0;return v.useEffect(()=>{if($===0){p({isStart:!0,isEnd:!0});return}p({isStart:!0,isEnd:!1})},[$,S,s]),e.jsxs("section",{className:f,style:{width:"100%"},children:[e.jsxs("header",{style:{display:"grid",gridTemplateColumns:"1fr auto auto",alignItems:"center",columnGap:12,rowGap:8,marginBottom:16,paddingLeft:S?s:0,paddingRight:S?s:0},children:[e.jsx(de,{title:a,iconUrl:n,size:"md"}),e.jsxs("div",{style:{display:"flex",gap:8},children:[e.jsx(X,{ariaLabel:"Anterior",variant:"secondary",iconOnly:!0,leftIcon:e.jsx(me.ChevronLeftRounded,{}),onClick:g,disabled:c.isStart||d}),e.jsx(X,{ariaLabel:"Siguiente",variant:"secondary",iconOnly:!0,rightIcon:e.jsx(me.ChevronRightRounded,{}),onClick:b,disabled:c.isEnd||d})]}),e.jsx(X,{variant:"secondary",onClick:y,children:"Ver más"})]}),e.jsx(ue,{ref:i,items:t,perPage:void 0,gap:"16px",enableHorizontalWheel:!0,showRightGradient:!S,options:{autoWidth:!0,trimSpace:"move"},breakpoints:{768:{perPage:2,focus:"start",padding:{left:s,right:s}},1024:{perPage:2.5,focus:"start",padding:{left:"24px",right:"24px"}}},renderItem:_=>e.jsx("div",{style:{textAlign:"center",cursor:"pointer"},onClick:()=>C(_.promotion),children:e.jsx("img",{src:`https://olimpo.bet${_.image!==""?_.image:_.summary_image}`,alt:_.title,style:{width:"100%",height:typeof window!="undefined"&&window.innerWidth<768?"80px":"137px",borderRadius:8,display:"block",objectFit:"cover"}})},`${_.title}-${_.image}`),onMove:({isStart:_,isEnd:k,source:L})=>{p({isStart:_,isEnd:k}),L==="user"&&h({element:"destacados_carousel_slide",label:`${u} - OraculoSeccionDestacados - Slide Carousel`,target:"carousel",event_type:"slide",module_id:m,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:"",isStart:_,isEnd:k},tags:{section:"OraculoSeccionDestacados"}})}})]})}const Oe="__ORACULO_EXTRAS__";function wt(){const t=globalThis;return t[Oe]||(t[Oe]={}),t[Oe]}function Ja(t){wt().extras=t}function ae(t){var a;return(a=wt().extras)==null?void 0:a[t]}function Xa(){delete globalThis[Oe]}function Ve({items:t,title:a="Top Juegos",iconUrl:n,onCardClick:o}){const r=Q.useCaptureInteraction(),s=ee(),i=re(),c=v.useMemo(()=>(t!=null?t:[]).map((m,d)=>{var g;return{...m,orden:(g=m.orden)!=null?g:d+1,_originalIndex:d}}).sort((m,d)=>m.orden!=null&&d.orden!=null?m.orden-d.orden:m._originalIndex-d._originalIndex),[t]),p=!t||t.length===0,h=p?Array.from({length:6}):c.slice(0,6),u=m=>{r({element:"top_juegos_card",label:`${s} - OraculoSeccionTopJuegos - Open game: ${String(m.machine||"unknown")}`,target:String(m.machine||"unknown"),event_type:"click",module_id:i,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{game_name:String(m.machine||"unknown"),section:"OraculoSeccionTopJuegos"}});const d=ae("showIframe"),g=ae("loadMachine");d==null||d(),requestAnimationFrame(()=>{g==null||g(m,!1,"CASINO")})};return e.jsx("section",{style:{width:"100%"},children:e.jsxs(K.default,{direction:"column",spacing:2,useFlexGap:!0,children:[e.jsx(de,{title:a,iconUrl:n,size:"md"}),e.jsx(P.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:h.map((m,d)=>{var g,b;return e.jsx(ft,{imageUrl:p?"":m.background?`https://olimpo.bet${m.background}`:`https://olimpo.bet${(g=m.logo)!=null?g:""}`,orden:p?d+1:m.orden,loading:p,onClick:p?void 0:()=>{o==null||o(m),u(m)}},p?`sk-${d}`:(b=m.machine)!=null?b:`${d}`)})})]})})}const Ya="https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommendations",Qa=(t,a)=>{var n,o,r,s,i,c,p,h,u,m,d,g,b,y;return{orden:Number(a),machine:String((n=t.id)!=null?n:t.external_id),logo:(o=t.logo)!=null?o:"",name:(r=t.room_name)!=null?r:"",web_name:(s=t.product)!=null?s:"",provider:(i=t.service)!=null?i:"",sub_provider:(c=t.service)!=null?c:"",external_id:(p=t.external_id)!=null?p:"",type:(h=t.game_type)!=null?h:"",tags:(u=t.tags)!=null?u:"",lobby_tag:(m=t.lobby_tag)!=null?m:null,background:(d=t.background)!=null?d:"",rtp:(g=t.rtp)!=null?g:null,demo_allowed:(b=t.demo_allowed)!=null?b:!1,gaming_session_required:(y=t.gaming_session_required)!=null?y:!1}},en=t=>t?!Array.isArray(t)&&Array.isArray(t.recommendations)?t.recommendations.filter(Boolean).map(a=>String(a)):[]:[],jt=()=>{var a,n,o;const t=ae("user");return(o=(n=(a=t==null?void 0:t.userId)!=null?a:t==null?void 0:t.user)!=null?n:t==null?void 0:t.id)!=null?o:null},tn=async t=>{const a=jt(),n=new URLSearchParams({userId:String(a),productType:t}),o=`${Ya}?${n.toString()}`,r=await fetch(o);if(!r.ok)throw new Error(`No se pudo obtener recomendaciones. HTTP ${r.status} ${r.statusText}`);const s=await r.json();return{...s,recommendations:Array.isArray(s==null?void 0:s.recommendations)?s.recommendations.slice(0,49):[]}},an=async(t,a)=>{const n="https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",o=JSON.stringify({userId:String(t),items:a}),r=await fetch(n,{method:"POST",headers:{"Content-Type":"application/json"},body:o});if(!r.ok)throw new Error(`No se pudo obtener el ranking. HTTP ${r.status} ${r.statusText}`);return(await r.json()).rankedItems},We=(t,a=!1,n="Casino")=>{const[o,r]=v.useState([]),[s,i]=v.useState(!1);return v.useEffect(()=>{let c=!1;return(async()=>{if(!a){r(Array.isArray(t)?t:[]),i(!1);return}i(!0);try{const h=await tn(n),u=en(h);if(!u.length){c||r([]);return}const m=jt(),d=await an(m,u),g=d.map(f=>f.itemId),b=await Promise.allSettled(g.map(async(f,S)=>{const $=await fetch(`https://api.mktolimpo.com/api/machine/${f}`);if(!$.ok)throw new Error(`No se pudo obtener machine ${f}`);const F=await $.json();return Qa(F,S)}));if(c)return;const y=b.filter(f=>f.status==="fulfilled").map(f=>f.value),C=d.map(f=>{const S=y.find($=>$.machine===f.itemId);return S?{...S,score:f.score}:null}).filter(Boolean).sort((f,S)=>{var $,F;return(($=S.score)!=null?$:0)-((F=f.score)!=null?F:0)});r(C)}catch(h){console.error(`[usePersonalizeGameItems:${n}] error:`,h),c||r([])}finally{c||i(!1)}})(),()=>{c=!0}},[t,a,n]),{resolvedItems:o,loading:s}},nn=(t,a=!1)=>We(t,a,"Casino"),on=(t,a=!1)=>We(t,a,"Deportes virtuales"),rn=(t,a=!1)=>We(t,a,"Casino en vivo"),sn=(t,a)=>{var n,o;return(o=(n=t.orden)!=null?n:t.machine)!=null?o:a},ln=t=>{if(typeof t=="boolean")return t;if(typeof t=="string")return t.toLowerCase()==="true";if(t&&typeof t=="object"){if(typeof t.value=="boolean")return t.value;if(typeof t.value=="string")return t.value.toLowerCase()==="true"}return!1},It=({items:t,title:a="Casino en vivo",subtitle:n="Disfruta la emoción en tus juegos favoritos y gana en tiempo real.",backgroundMobileUrl:o="",onCardClick:r,backgroundDesktopUrl:s="",onViewMore:i,className:c,isPersonalize:p=!1})=>{const h=Q.useCaptureInteraction(),u=ee(),m=re(),d=ln(p),{resolvedItems:g}=rn(t,d),b=d?g:Array.isArray(t)?t:[],y=f=>{h({element:"live_casino_card",label:`${u} - OraculoSeccionCasinoEnVivo${d?" - personalize":""} - Open game: ${String(f.machine||"unknown")}`,target:String(f.machine||"unknown"),event_type:"click",module_id:m,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{game_name:String(f.machine||"unknown"),provider:f.provider||"unknown",section:"OraculoSeccionCasinoEnVivo"}});const S=ae("showIframe"),$=ae("loadMachine");if(!$){if(r){r(f);return}console.warn("[OraculoSeccionCasinoEnVivo] No existe loadMachine en extras ni onCardClick. No se puede abrir el juego.",{machine:f==null?void 0:f.machine,provider:f==null?void 0:f.provider});return}S==null||S(),typeof window!="undefined"&&window.scrollTo({top:0,behavior:"smooth"}),requestAnimationFrame(()=>{$==null||$(f,!1,"casino_en_vivo")})},C=()=>{h({element:"casino_en_vivo_view_more",label:`${u} - OraculoSeccionCasinoEnVivo${d?" - personalize":""} - Ver más`,target:"https://www.olimpo.bet/casino-en-vivo",event_type:"click",module_id:m,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{section:"OraculoSeccionCasinoEnVivo"}}),typeof globalThis!="undefined"&&globalThis.location&&(i?i():globalThis.location.assign("https://www.olimpo.bet/casino-en-vivo"))};return e.jsxs(P.default,{className:c,sx:{position:"relative",color:"white",overflow:"hidden"},children:[e.jsx(P.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"),U=require("@mui/material"),v=require("react"),zt=require("@mui/material/Skeleton"),it=require("@splidejs/react-splide"),Dt=require("@mui/material/Box"),Ut=require("@mui/material/Typography"),Vt=require("@mui/material/Stack"),Q=require("@olimpo/capture-client"),me=require("@mui/icons-material"),Wt=require("@mui/material/useMediaQuery"),Gt=require("@mui/icons-material/ChevronLeftRounded"),Ht=require("@mui/icons-material/ChevronRightRounded"),Te=require("@mui/material/styles"),Kt=require("@mui/material/CssBaseline"),Xe=require("firebase/firestore"),ce=t=>t&&t.__esModule?t:{default:t},fe=ce(v),H=ce(zt),P=ce(Dt),le=ce(Ut),K=ce(Vt),xe=ce(Wt),lt=ce(Gt),ct=ce(Ht),Zt=ce(Kt);function X({children:t,onClick:a,href:n,target:o,rel:r,type:s="button",disabled:i=!1,variant:c="primary",size:p,fullWidth:h=!1,fullHeight:u=!1,className:m="",ariaLabel:d,leftIcon:g,rightIcon:b,iconOnly:y}){const C=!!t&&t!==!0,$=(!!g?1:0)+(!!b?1:0)==1,F=y!=null?y:$&&!C,_=["orc-btn",c==="secondary"?"orc-btn--secondary":c==="tertiary"?"orc-btn--tertiary":"orc-btn--primary",p?`orc-btn--${p}`:"",h?"orc-btn--full":"",u?"orc-btn--fullHeight":"",F?"orc-btn--iconOnly":"",m].filter(Boolean).join(" "),k=e.jsxs(e.Fragment,{children:[g&&e.jsx("span",{className:"orc-btn__icon",children:g}),!F&&e.jsx("span",{className:"orc-btn__label",children:t}),b&&e.jsx("span",{className:"orc-btn__icon",children:b})]}),L=i?!0:void 0;return n?e.jsx(U.Link,{href:n,target:o,rel:r,"aria-label":d,"aria-disabled":L,tabIndex:L?-1:void 0,className:_,onClick:L?z=>z.preventDefault():a,children:k}):e.jsx("button",{type:s,onClick:a,disabled:!!L,"aria-label":d,className:_,children:k})}function de({title:t,iconUrl:a,size:n="md",className:o=""}){const s=["orc-section-title",n?`orc-section-title--${n}`:"",o].filter(Boolean).join(" ");return e.jsxs("div",{className:s,children:[a&&e.jsx("img",{src:a,alt:"",className:"orc-section-title__icon"}),e.jsx("h2",{className:"orc-section-title__title",children:t})]})}const qe=({total:t,active:a,onSelect:n,className:o="",durationMs:r=5e3})=>{if(t<=1)return null;const s=["orc-dots",o].filter(Boolean).join(" "),[i,c]=v.useState(0);return v.useEffect(()=>{c(p=>p+1)},[a,r]),e.jsx("div",{className:s,role:"tablist","aria-label":"Carousel pagination",children:Array.from({length:t}).map((p,h)=>{const u=h===a;return e.jsx("span",{className:"orc-dots__cell",children:e.jsx("button",{type:"button",role:"tab","aria-selected":u,"aria-label":`Ir al slide ${h+1}`,className:"orc-dots__dot"+(u?" orc-dots__dot--active":""),style:u?{"--dot-progress-ms":`${r}ms`}:void 0,onClick:()=>{u&&c(m=>m+1),n==null||n(h)}},u?`a-${h}-${i}`:`i-${h}`)},h)})})};function oe({children:t,minWidth:a=32,spacing:n=2,justify:o="stretch",columns:r=null}){const s=r||`repeat(auto-fit, minmax(${a}px, 1fr))`,i=typeof n=="number"?`${n*8}px`:n;return e.jsx("div",{style:{display:"grid",gridTemplateColumns:s,justifyItems:o,gap:i,height:"inherit"},children:t})}function Re({src:t,alt:a}){return e.jsx(U.Box,{sx:{position:"relative",width:{xs:65,sm:80,md:120,lg:160},height:{xs:48,md:96},display:"inline-block"},children:e.jsx(U.Box,{component:"img",src:t,alt:a,sx:{position:"absolute",top:0,left:0,width:"100%",height:"100%",objectFit:"contain"}})})}const Jt="oraculo__OraculoEventTitle-module__contenedor___rg1vw",Xt="oraculo__OraculoEventTitle-module__flexGroup___jMLFO",Yt="oraculo__OraculoEventTitle-module__subtitle___TmHna",Ne={contenedor:Jt,flexGroup:Xt,subtitle:Yt};function Qt({title:t,subtitle:a}){return e.jsxs("div",{className:Ne.contenedor,children:[e.jsx("span",{style:{fontWeight:700,fontSize:"12px",lineHeight:"16px"},children:t}),a&&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:a}),e.jsx("div",{})]})]})}function dt({text:t,color:a="#ff3b3b",textColor:n="#fff"}){return e.jsx("span",{className:"oli-font",style:{backgroundColor:a,color:n,borderRadius:"8px",padding:"4px 8px",fontSize:"12px",lineHeight:"16px",fontWeight:700,width:"42px",height:"16px",textAlign:"center"},children:t})}function ut({live:t,time:a}){return e.jsxs("div",{className:"oli-font",style:{display:"flex",alignItems:"center",gap:"8px"},children:[t&&e.jsx(dt,{text:"En vivo"}),a&&e.jsx("span",{style:{fontSize:"14px",fontWeight:400,lineHeight:"18px",paddingTop:"4px"},children:a})]})}function mt({title:t,subtitle:a,live:n=!1,time:o=""}){return e.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",color:"#FFFFFF"},children:[e.jsx(Qt,{title:t,subtitle:a}),e.jsx(ut,{live:n,time:o})]})}const ea="oraculo__OraculoEventLabel-module__label___c64Xw",ta={label:ea};function Le({text:t}){return e.jsx("span",{className:ta.label,children:t})}const aa="oraculo__OraculoEventLeague-module__container___rdk4F",na={container:aa};function Fe({title:t}){return e.jsx("div",{className:na.container,children:t.toUpperCase()})}const oa="oraculo__OraculoEventScore-module__scoreWrapper___fWwEr",ra="oraculo__OraculoEventScore-module__name___r4uL6",sa="oraculo__OraculoEventScore-module__score___Xl03M",ia="oraculo__OraculoEventScore-module__normal___cCNFz",la="oraculo__OraculoEventScore-module__small___fVt8E",ge={scoreWrapper:oa,name:ra,score:sa,normal:ia,small:la};function Pe({text:t,name:a,size:n="normal"}){return e.jsxs("div",{className:`${ge.scoreWrapper} ${ge[n]}`,children:[e.jsx("div",{className:`${ge.score} ${ge[n]}`,children:t}),a&&e.jsx("span",{className:`${ge.name} ${ge[n]}`,children:a})]})}const ca="oraculo__OraculoEventTeamInfo-module__team___UfpUs",da="oraculo__OraculoEventTeamInfo-module__regular___ag826",ua="oraculo__OraculoEventTeamInfo-module__compact___RCNOs",ma="oraculo__OraculoEventTeamInfo-module__logo___fKCl3",fa="oraculo__OraculoEventTeamInfo-module__name___4ikm-",pa="oraculo__OraculoEventTeamInfo-module__skeleton___Yfaxh",he={team:ca,regular:da,compact:ua,logo:ma,name:fa,skeleton:pa},ga="oraculo__OraculoTeamPolo-module__polo___BisRg",ha="oraculo__OraculoTeamPolo-module__svgWrapper___HRKNX",ba="oraculo__OraculoTeamPolo-module__shadow___-3DXb",xa="oraculo__OraculoTeamPolo-module__highlight___1etm7",Se={polo:ga,svgWrapper:ha,shadow:ba,highlight:xa};function va({jersey:t,className:a}){const n=`#${t.base}`,o=t.sleeve?`#${t.sleeve}`:n,r=t.stripes?`#${t.stripes}`:null,s=t.sleevelong?`#${t.sleevelong}`:null;return e.jsxs("div",{className:`${Se.polo} ${a!=null?a:""}`,children:[e.jsx("div",{className:Se.svgWrapper,children:e.jsxs("svg",{viewBox:"0 0 656 656","aria-hidden":!0,children:[e.jsx("path",{fill:n,d:"m62 265 5.8-17c-.4-.7-.6-1.5-.4-2 .2-.7.8-1.2 1.2-1.4l1.2-4 9-21.6c.2-1 1-3.5 2.4-6.4a69.9 69.9 0 0 1 4.1-17.2l2.9-7 2.9-11.4c1.7-5.8 5.2-18.4 5.8-22 .6-3.6 6.8-19 9.8-26.2.4-.9 2.4-4.7 7.2-12.8 5.4-12.2 23.5-27.2 32-33.1l6.6-3.7 7.9-3.6 17.3-6.2 16.6-7.1L215 52c7-4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l10-3.2 6.6-3.7 9-5 4-2 .5-.3c1.2 2 2.6 4.1 3.4 4.8l6.1 7.8 15 14.6 4.8 4c-.6 26.4-1.1 60.6-1.1 100.1 0 59.3 1.1 82.6 2.7 114.6.9 18.8 2 40.7 3 74.9 1.5 48.3.8 98.4 0 148.6l-.8 68.3c0 13-.6 32.8-1.1 49Zm157.5-16.4-11.2 3.6a379.2 379.2 0 0 1-67 12c.2-11 .3-25.6.3-44.6 0-49.2-1.2-74.9-2.4-99.5-1.3-27.2-2.5-53-2-107.5.6-50.4 1.7-81.5 2.6-109.3 1-29.3 1.8-54.9 1.8-95.6 0-35.5-.6-70.6-1.2-98.6l3.6-3 5.3-5.1 3.5-3.6 3.5-3.4 4-5 4.2-5.3 2.7-4 .5.3 3.2 1.5 5.5 3.3 5.8 3 7.3 3 8.1 2.2c.7.2 3.3 1 8.4 2 2.4 0 6.5 1.5 11 3.4 2.6 29 5.2 68 5.2 107.8 0 41.5-1.6 70.2-3.2 102-1.6 28.7-3.3 60-4 105.6-.7 41.1.4 82.5 1.4 124.4.7 25.7 1.4 51.6 1.6 77.8a435 435 0 0 0 1.5 32.6Z"})]}),s&&e.jsx(e.Fragment,{children:e.jsx("path",{fill:s,d:"m153 277.8-5.8 14.5c-1 2.8-2.5 1.4-4.6.7l-2-.5-7.8-2.4-15.6-5-19-6.5-16-5.7-12-4.4-5.5-2.2c-3.5-1.1-3.1-1.2-1.9-4l1.8-4.9 3.2-9.3c-1.1-1.9 0-3.1.8-3.5l.2-.7.5-2 4.3-10.3 2.4-6 2.6-6.2.8-2.6 1.7-4.1v-.4l.3-2.6.6-3.4 1-3.5 1-3.8c.1-.9 2-5.6 3-7.8l.7-1.5.7-2 .9-3.6 3.4-12.6 2.4-8.6 2.7-11.2 3.5-9.6 3.6-9.4 3-6 2-4.1 3.6-5.8 2.2-4.3 3-4.4 3.2-3.9 1.7-1.9 3.6-3.6 3-2.9a109.3 109.3 0 0 1 13.3-11.2l1.2-.8a79.3 79.3 0 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-3.4.6c-3.2.5-6.9 1-8.4 2l-1.4.8c-1.5.7-2.8 1.4-5 3.7l-3.3 3.2Zm4.3 14 1.9 5.5 4.6 8.2 5 6.7 5.3 6.6 11 10.7 10.8 9.8 12.8 11.7 7.4 7 3 3 15-13.3 16.7-15.7 6.7-6.2 6-6.6a104.1 104.1 0 0 0 13.8-19.6c1-1.9 1.8-4.5 2-5.6 2.7-7.9 1.4-13.8-1.5-17.8-4-5.2-14.9-6.6-18.5-7.1h-.7c-13.8-1.9-39.8-2-46-1.9-9-.2-28.1.2-32.5.7-.6 0-1.2 0-1.9.2-6.8.6-19.9 1.9-22.6 10.6a22.6 22.6 0 0 0 .9 10.3l.8 2.9Z"}),e.jsx("path",{fill:o,d:"m74.8 250.8-6.8-2.7-.3.7-3 8.7-2 5.7c-1 2.2-.5 1.9.1 2.3l2.2 1 8.8 3.3 10.4 3.8 10.7 3.8 14.3 4.8 13 4.3 7 2.3 13.8 4.3c2.2.7 3 1.4 3.8 0l6.3-15.6-4.6-1.8a88 88 0 0 1-9.4-3c-.8-.6-11.8-3.7-17.3-5.4l-7-2.4-13-4.3c-3.2-1.3-9.9-3.8-11-4-1.2-.2-11-3.8-16-5.8Z"}),e.jsx("path",{fill:o,d:"m505 284.5-3.5-7.5c.2-.2 1.2-.4 3 0 1.6.4 11.3-1.7 16-2.7l22.5-6.6 13.7-4.5 16.8-6.7a90 90 0 0 0 13.7-7.7v1l.6 2 1.9 5.5 2.9 7.8c.6 1.6-5.5 4.8-8.6 6.3l-17 7.2-15.3 5.4-13 4.2-13 3.3-9.9 2c-6.8 1.2-7.2-.4-8-2l-2.7-7Z"})]})}),e.jsx("img",{src:"https://widgets.sir.sportradar.com/assets/media/shadow.7a42eb6e.png",className:Se.shadow,alt:"","aria-hidden":!0}),e.jsx("img",{src:"https://widgets.sir.sportradar.com/assets/media/highlight.b1ac6c3e.png",className:Se.highlight,alt:"","aria-hidden":!0})]})}function _e({name:t,jersey:a,size:n="regular"}){return e.jsxs("div",{className:`oli-font ${he.team} ${he[n]}`,children:[a!=null&&a.base?e.jsx(va,{jersey:a,className:`${he.logo}`}):e.jsx(H.default,{variant:"circular",className:`${he.logo} ${he.skeleton}`}),e.jsx("span",{className:he.name,children:t})]})}function _a(t,a,{enabled:n=!0,threshold:o=60,cooldownMs:r=500}={}){const s=v.useRef(0),i=v.useRef(0);v.useEffect(()=>{if(!n)return;const c=t.current;if(!c)return;const p=h=>{const u=a.current;if(!u||!u.go)return;const{deltaX:m,deltaY:d}=h;if(Math.abs(m)<=Math.abs(d))return;h.preventDefault(),s.current+=m;const g=Date.now();if(g-i.current<r||Math.abs(s.current)<o)return;const b=s.current>0?">":"<";s.current=0,i.current=g,u.go(b)};return c.addEventListener("wheel",p,{passive:!1}),()=>{c.removeEventListener("wheel",p),s.current=0}},[n,o,r,t,a])}const ya="oraculo__OraculoCarousel-module__gradientOverlay___xYDfc",Sa="oraculo__OraculoCarousel-module__right___KwpOE",wa="oraculo__OraculoCarousel-module__left___n3WQu",ja="oraculo__OraculoCarousel-module__svg___0mGuX",be={gradientOverlay:ya,right:Sa,left:wa,svg:ja},Ia=it.Splide,Oa=it.SplideSlide,ue=v.forwardRef(({items:t=[],renderItem:a,perPage:n=1,gap:o="0px",breakpoints:r,options:s={},className:i="",onMove:c,useIndexAsKey:p=!1,enableHorizontalWheel:h=!0,showRightGradient:u=!1},m)=>{const d=v.useRef(null),g=v.useRef(null),b=v.useRef(t.length),y=v.useRef(null),C=v.useRef(null),f=v.useRef("user");_a(g,d,{enabled:h}),v.useImperativeHandle(m,()=>({next:()=>{var I;return(I=d.current)==null?void 0:I.go(">")},prev:()=>{var I;return(I=d.current)==null?void 0:I.go("<")},go:I=>{var x;return(x=d.current)==null?void 0:x.go(I)}}));const S=I=>{var Z;const x=I.Components.Slides,j=I.Components.Controller,R=I.root.querySelector(".splide__track"),M=(Z=R==null?void 0:R.clientWidth)!=null?Z:0,B=j.getIndex(),D=x.getLength();let V=0,G=B;for(let W=B;W<D;W++){const O=x.getAt(W);if(!O||(V+=O.slide.offsetWidth,V>M))break;G=W}return{visibleStart:B,visibleEnd:G}},$=I=>{const x=I.root.querySelector(".splide__track"),j=I.root.querySelector(".splide__list");return!x||!j?!1:j.scrollWidth>x.clientWidth+1},F=v.useRef(!1),_=v.useCallback(I=>{var Z,W;if(F.current)return;const j=I.Components.Slides.getLength(),R=f.current;if(f.current="user",!$(I)){c==null||c({index:0,isStart:!0,isEnd:!0,total:j,visibleStart:0,visibleEnd:j-1,source:R});return}const{visibleStart:M,visibleEnd:B}=S(I),D=M===0,V=B===j-1;u&&((Z=y.current)==null||Z.style.setProperty("--gradient-opacity",D?"0":"1"),(W=C.current)==null||W.style.setProperty("--gradient-opacity",V?"0":"1"));const G=I.Components.Controller.getIndex();c==null||c({index:G,isStart:D,isEnd:V,total:j,visibleStart:M,visibleEnd:B,source:R})},[c]);fe.default.useEffect(()=>{var j;const I=(j=d.current)==null?void 0:j.splide;if(!I)return;const x=b.current!==t.length;b.current=t.length,x&&requestAnimationFrame(()=>{F.current=!0;try{I.refresh()}finally{F.current=!1}f.current="resize",_(I)})},[t.length,_]);const k=v.useCallback(()=>{var x;const I=(x=d.current)==null?void 0:x.splide;if(I){F.current=!0;try{I.go(0,!1)}finally{F.current=!1}f.current="resize",_(I)}},[_]),L=v.useCallback(I=>{f.current="mounted",_(I)},[_]),z={type:"slide",trimSpace:!1,drag:!0,pagination:!1,arrows:!1,rewind:!1,focus:"start",autoWidth:!1,perPage:n,gap:o,breakpoints:r,...s,...h?{wheel:!1}:{}};return e.jsxs("div",{ref:g,className:i,style:{width:"100%",position:"relative",height:"100%"},children:[e.jsx(Ia,{ref:d,options:z,onMove:_,onMounted:L,onResize:k,children:t.map((I,x)=>{var j;return e.jsx(Oa,{children:a(I,x)},p?x:(j=I.id)!=null?j:x)})}),u&&e.jsxs(e.Fragment,{children:[e.jsx("div",{ref:y,className:`${be.gradientOverlay} ${be.left}`,style:{"--gradient-opacity":"0"},children:e.jsxs("svg",{className:be.svg,viewBox:"0 0 152 184",preserveAspectRatio:"none",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{d:"M0 0H152V184H0V0Z",fill:"url(#paint_left)"}),e.jsx("defs",{children:e.jsxs("linearGradient",{id:"paint_left",x1:"0",y1:"92",x2:"152",y2:"92",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{offset:"0.59737",stopColor:"#121212",stopOpacity:"0"}),e.jsx("stop",{offset:"1",stopColor:"#121212"})]})})]})}),e.jsx("div",{ref:C,className:`${be.gradientOverlay} ${be.right}`,style:{"--gradient-opacity":"1"},children:e.jsxs("svg",{className:be.svg,viewBox:"0 0 152 184",preserveAspectRatio:"none",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{d:"M0 0H152V184H0V0Z",fill:"url(#paint_right)"}),e.jsx("defs",{children:e.jsxs("linearGradient",{id:"paint_right",x1:"0",y1:"92",x2:"152",y2:"92",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{offset:"0.59737",stopColor:"#121212",stopOpacity:"0"}),e.jsx("stop",{offset:"1",stopColor:"#121212"})]})})]})})]})]})}),ve=({imageUrl:t,onClick:a,size:n="sm",fillParent:o=!1})=>{const r=n==="lg"?{w:280,h:352}:{w:152,h:168},s=c=>{c.stopPropagation(),a==null||a()},i=o?{width:"100%",height:"100%"}:{width:`${r.w}px`,height:`${r.h}px`};return e.jsxs(P.default,{onClick:a,role:"button",sx:{position:"relative",borderRadius:"12px",overflow:"hidden",boxSizing:"border-box",transition:"transform .15s ease, box-shadow .15s ease",...i,"&: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(P.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(P.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(X,{variant:"primary",size:"md",onClick:s,children:"Jugar"})})]})};function ft({imageUrl:t,orden:a=1,onClick:n,loading:o=!1,sizes:r={xs:{w:104,h:112,r:18,font:48},md:{w:186,h:264,r:22.6,font:64}}}){var m,d,g,b;const s=(y,C)=>{var f,S,$,F;return{xs:(S=(f=r.xs)==null?void 0:f[y])!=null?S:C,md:(F=($=r.md)==null?void 0:$[y])!=null?F:C}},i=s("w",186),c=s("h",264),p=s("r",22.6),h=s("font",64),u={xs:Math.round(((d=(m=r.xs)==null?void 0:m.font)!=null?d:64)*.28),md:Math.round(((b=(g=r.md)==null?void 0:g.font)!=null?b:64)*.28)};return e.jsxs(P.default,{sx:{position:"relative",width:"100%",maxWidth:{xs:`${i.xs}px`,md:`${i.md}px`},aspectRatio:{xs:`${i.xs}/${c.xs}`,md:`${i.md}/${c.md}`},borderRadius:{xs:`${p.xs}px`,md:`${p.md}px`},boxSizing:"border-box",overflow:"visible",pb:{xs:`${u.xs}px`,md:`${u.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(P.default,{sx:{position:"absolute",inset:0,borderRadius:"inherit",overflow:"hidden"},children:o?e.jsx(H.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(ve,{imageUrl:t,onClick:n,size:"lg",fillParent:!0})}),e.jsx(P.default,{component:"span",sx:{position:"absolute",left:8,bottom:{xs:`-${u.xs}px`,md:`-${u.md}px`},fontFamily:'"secondary", sans-serif',fontSize:{xs:`${h.xs}px`,md:`${h.md}px`},lineHeight:1,color:"#3CC666",WebkitTextStroke:"1px #9ee86e",zIndex:3,userSelect:"none"},children:a})]})}const pt=({logo:t,provider:a,providerName:n,machine:o,onClick:r})=>{var s;return e.jsxs(P.default,{onClick:r,sx:{flex:"0 0 auto",position:"relative",borderRadius:"20px",overflow:"hidden",width:{xs:100,md:180},height:{xs:200,md:380},transition:"width .50s ease, transform .28s ease",willChange:"width, transform",cursor:"pointer",zIndex:0,"&:hover":{zIndex:2,width:{md:260,xs:110}},"&:hover .orc-live-provider-label":{opacity:1}},children:[e.jsx(P.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(P.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(le.default,{sx:{color:"#fff",fontWeight:700,fontSize:{xs:11,md:14},textTransform:"capitalize"},children:(s=a!=null?a:n)!=null?s:""})})]})},$e=12,Me=({r:t=16})=>e.jsx(P.default,{sx:{width:"100%",height:"100%",borderRadius:t,overflow:"hidden"},children:e.jsx(H.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)"}}})}),ze=({items:t,layout:a="grid",onClick:n,loading:o=!1,gridSkeletonCount:r=4})=>{var s,i;if(a==="mosaic"){const c=t[0],p=t.slice(1,5);return e.jsxs(P.default,{sx:{display:"grid",gridTemplateRows:{xs:"repeat(2, 112px)",md:"repeat(2, 168px)"},gridTemplateColumns:{xs:"184px",md:"280px"},gridAutoFlow:"column",gridAutoColumns:{xs:"104px",md:"152px"},columnGap:`${$e}px`,rowGap:`${$e}px`,alignItems:"stretch",justifyItems:"stretch"},children:[e.jsx(P.default,{sx:{width:{xs:184,md:280},height:{xs:234,md:352},gridRow:"1 / span 2",overflow:"hidden",borderRadius:2},children:o?e.jsx(Me,{}):c&&e.jsx(ve,{imageUrl:`https://olimpo.bet${(i=(s=c.background)!=null?s:c.imageUrl)!=null?i:""}`,size:"lg",fillParent:!0,onClick:()=>n==null?void 0:n(c,0)})}),(o?Array.from({length:4}):p).map((h,u)=>{var m,d;return e.jsx(P.default,{sx:{width:{xs:104,md:152},height:{xs:112,md:168},overflow:"hidden",borderRadius:2},children:o?e.jsx(Me,{}):e.jsx(ve,{imageUrl:`https://olimpo.bet${(d=(m=h.background)!=null?m:h.imageUrl)!=null?d:""}`,size:"sm",fillParent:!0,onClick:()=>n==null?void 0:n(h,u+1)})},o?`sk-${u}`:h.id)})]})}return e.jsx(P.default,{sx:{display:"grid",gridTemplateColumns:{xs:"repeat(2, 104px)",md:"repeat(2, 152px)"},gridTemplateRows:{xs:"repeat(2, 112px)",md:"repeat(2, 168px)"},gap:`${$e}px`,gridAutoFlow:"column"},children:(o?Array.from({length:r}):t).map((c,p)=>{var h,u,m;return e.jsx(P.default,{sx:{overflow:"hidden",borderRadius:2},children:o?e.jsx(Me,{}):e.jsx(ve,{imageUrl:`https://olimpo.bet${(u=(h=c.background)!=null?h:c.imageUrl)!=null?u:""}`,size:"sm",fillParent:!0,onClick:()=>n==null?void 0:n(c,p)})},o?`sk-${p}`:(m=c.id)!=null?m:p)})})},Ae=({title:t,amount:a,subtitle:n,buttonText:o,onButtonClick:r,backgroundImage:s,alt:i,className:c="",variant:p="small"})=>{const h=a?a.slice(0,2):"",u=a?a.slice(2):"",m=p==="large";return e.jsxs(P.default,{className:c,sx:{position:"relative",width:"100%",maxWidth:{xs:328,md:m?618:456},mx:"auto"},children:[s&&e.jsx(P.default,{sx:{position:"relative",width:"100%",aspectRatio:{xs:"328 / 188",md:m?"618 / 346":"456 / 272"},borderRadius:"14px",overflow:"hidden"},children:e.jsx(P.default,{component:"img",src:s,alt:i!=null?i:"Fondo promocional",sx:{width:"100%",height:"100%",objectFit:"cover",objectPosition:{xs:"50% 0%",md:"45% 0%"},display:"block"}})}),e.jsx(P.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(P.default,{sx:{maxWidth:"60%",display:"flex",flexDirection:"column",alignItems:"center"},children:[t&&e.jsx(le.default,{sx:{fontSize:{xs:12,md:20},fontWeight:400,color:"#e7f8ff"},children:t}),a&&e.jsxs(P.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(P.default,{component:"span",sx:{fontSize:{xs:35,md:48},mr:.5},children:h}),e.jsx(P.default,{component:"span",sx:{fontSize:{xs:52,md:77}},children:u})]}),n&&e.jsx(le.default,{sx:{pb:"20px",fontSize:14,fontWeight:600,color:"#e7f8ff"},children:n}),o&&e.jsx(X,{onClick:r,children:o})]})})]})},gt=({text:t,buttonLabel:a="Conoce más",onClick:n,imgAlt:o="Club Olimpo",imgSrcMobile:r,imgSrcDesktopBg:s,imgSrcDesktopLogo:i})=>e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"orc-co-bgMobile",children:e.jsx("img",{src:r,alt:o,className:"orc-co-bgMobileImg"})}),e.jsx("div",{className:"orc-co-bgDesktop",children:e.jsxs("div",{className:"orc-co-desktopInner",children:[s&&e.jsx("div",{className:"orc-co-fillHost",children:e.jsx("img",{src:s,alt:`${o} fondo`,className:"orc-co-bgDesktopImg"})}),e.jsxs("div",{className:"orc-co-desktopContent",children:[i&&e.jsx("img",{src:i,alt:`${o} logo`,className:"orc-co-logoImg"}),e.jsx("p",{className:"orc-co-captionDesktop",children:t}),e.jsx(X,{onClick:n,variant:"primary",size:"md",children:a})]})]})}),e.jsxs("div",{className:"orc-co-bottom",children:[e.jsx("p",{className:"orc-co-caption",children:t}),e.jsx(X,{onClick:n,variant:"primary",size:"md",children:a})]})]}),Ca="oraculo__OraculoEventCombinadasCard-module__card___ulQeY",Ea="oraculo__OraculoEventCombinadasCard-module__combinadas___Gxrld",ka="oraculo__OraculoEventCombinadasCard-module__combinadasScroll___47cZl",Ta="oraculo__OraculoEventCombinadasCard-module__apuestaItem___YnYMy",Na="oraculo__OraculoEventCombinadasCard-module__lineContainer___G5rbU",$a="oraculo__OraculoEventCombinadasCard-module__circle___eehm-",Ma="oraculo__OraculoEventCombinadasCard-module__line___Eb2pK",Ba="oraculo__OraculoEventCombinadasCard-module__apuestaText___b5s7S",Ra="oraculo__OraculoEventCombinadasCard-module__cuotaTotal___Lohvu",se={card:Ca,combinadas:Ea,combinadasScroll:ka,apuestaItem:Ta,lineContainer:Na,circle:$a,line:Ma,apuestaText:Ba,cuotaTotal:Ra};function De(t,a){const n=Array.isArray(a)?a:[a];sessionStorage.setItem("landingOutcomes",JSON.stringify(n)),window.location.href=t}function Aa(){window.location.href="/deportes#in-play"}function qa(){window.location.href="/deportes#sports-hub/football"}function La(){window.location.href="/deportes#specials"}async function ht(t){return await(await fetch("https://api.mktolimpo.com/api/jerseys/search",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({events:t})})).json()}const bt=v.createContext(void 0),Ue=({children:t,docId:a,moduleId:n})=>{const o=fe.default.useMemo(()=>({docId:a,moduleId:n}),[a,n]);return e.jsx(bt.Provider,{value:o,children:t})},xt=()=>{const t=v.useContext(bt);if(!t)throw new Error("useDocContext debe usarse dentro de DocIdProvider");return t},ee=()=>xt().docId,re=()=>xt().moduleId;function vt({coupon:t}){var h;const a=Q.useCaptureInteraction(),n=ee();function o(u){var g,b;const m=[],d=Array.from(new Map(((g=u==null?void 0:u.events)!=null?g:[]).filter(Boolean).map(y=>[y.id,y])).values());return d.forEach(y=>{var $;const C=($=y.betoffers)!=null?$:[],f=y.homeName,S=y.awayName;C.forEach(F=>{var z,I,x,j,R,M,B;if(!((z=F==null?void 0:F.outcomes)!=null&&z.length))return;const _=F.outcomes[0];if(!_)return;let k="";const L=_!=null&&_.line?_.line/1e3:"";["Más de","Mas de","Over"].includes(_.label)?(k=`Más de ${L}`,_.participant&&(k=`${_.participant} - ${k}`)):["Menos de","Menos","Under"].includes(_.label)?(k=`Menos de ${L}`,_.participant&&(k=`${_.participant} - ${k}`)):["Sí","No"].includes(_.label)?(k=_.label,_.participant&&(k=`${_.participant} - ${k}`)):["1X","12","X2"].includes(_.label)?(_.label==="1X"&&(k=`${f} o Empate`),_.label==="12"&&(k=`${f} o ${S}`),_.label==="X2"&&(k=`${S} o Empate`)):(k=(x=(I=_.participant)!=null?I:_.label)!=null?x:"",L!==""&&k===_.label&&(k=`${_.label} ${L}`)),m.push({id:_.id,value:k,label:(R=(j=F.criterion)==null?void 0:j.label)!=null?R:"",odds:(M=_.odds)!=null?M:0,position:(B=_.position)!=null?B:0,eventId:y.id})})}),{outcomes:m.sort((y,C)=>y.position-C.position),total:Number((b=u==null?void 0:u.combinadoTotal)!=null?b:0).toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2}),events:d}}function r(u){if(!u||!Array.isArray(u.events)||u.events.length===0)return"/deportes#home";const m=u.events;if(m.length===1)return`/deportes#event/${m[0].id}`;const d=m[0].groupId;if(m.every(b=>b.groupId===d)){const b=m[0].path;if(Array.isArray(b)&&b.length>0)return`/deportes#sports-hub/${b.map(C=>C.termKey).filter(Boolean).join("/")}`}return"/deportes#home"}const s=(u,m)=>{const d=Array.isArray(u)?u:[u],g=Array.from(new Set(i.outcomes.map(C=>{var S;const f=p.get(Number(C.eventId));return(S=f==null?void 0:f.name)!=null?S:""}))).filter(Boolean),b=g.length>0?g.join(" + "):JSON.stringify(d),y=m?`${b} - Cuota: ${m}`:b;a({element:"evento_semana_outcome",label:`Landing: ${n} - OraculoEventCombinadasCard - Click: ${y}`,target:"/deportes#in-play",event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{section:"OraculoEventCombinadasCard",outcomes:y}}),De(r(t),u)};if(!((h=t==null?void 0:t.events)!=null&&h.length))return null;const i=o(t),c=i.outcomes.reduce((u,m)=>(u[m.eventId]||(u[m.eventId]=[]),u[m.eventId].push(m),u),{}),p=new Map(i.events.map(u=>[u.id,u]));return e.jsxs("div",{className:se.card,children:[e.jsx("div",{className:se.combinadas,children:e.jsx("div",{className:se.combinadasScroll,children:e.jsx(K.default,{direction:"column",spacing:1.5,useFlexGap:!0,children:Object.entries(c).reverse().map(([u,m])=>{const d=p.get(Number(u));return d?e.jsxs(K.default,{direction:"column",spacing:.5,useFlexGap:!0,children:[e.jsx(de,{title:d.name,iconUrl:"/assets/img/home/Combinadas/pelota.png",size:"xs"}),e.jsx("img",{loading:"lazy",src:"/assets/img/home/Combinadas/line.png"}),m.map((g,b)=>e.jsxs("div",{className:se.apuestaItem,children:[e.jsxs("div",{className:se.lineContainer,children:[e.jsx("div",{className:se.circle}),b<m.length-1&&e.jsx("div",{className:se.line})]}),e.jsxs("div",{className:se.apuestaText,children:[e.jsx("strong",{children:g.value})," | ",g.label]})]},`${u}-${b}`))]},u):null})})})}),e.jsxs("button",{onClick:()=>s(i.outcomes.map(u=>u.id),i.total),className:se.cuotaTotal,children:[e.jsxs("span",{children:["Cuota total: ",e.jsx("strong",{children:i.total})]}),e.jsx("img",{loading:"lazy",src:"/assets/img/home/Combinadas/cuotaTotal.svg",alt:"cuota total"})]})]})}const ie={"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 Fa({children:t,onClick:a,href:n,target:o,rel:r,type:s="button",disabled:i=!1,variant:c="primary",size:p,fullWidth:h=!1,fullHeight:u=!1,className:m="",ariaLabel:d,leftIcon:g,rightIcon:b,iconOnly:y}){const C=!!t&&t!==!0,$=(!!g?1:0)+(!!b?1:0)==1,F=y!=null?y:$&&!C,_=[ie["orc-btn"],ie[`orc-btn--${c}`],p?ie[`orc-btn--${p}`]:"",h?ie["orc-btn--full"]:"",u?ie["orc-btn--fullHeight"]:"",F?ie["orc-btn--iconOnly"]:"",m].filter(Boolean).join(" "),k=e.jsxs(e.Fragment,{children:[g&&e.jsx("span",{className:ie["orc-btn__icon"],children:g}),!F&&e.jsx("span",{className:ie["orc-btn__label"],children:t}),b&&e.jsx("span",{className:ie["orc-btn__icon"],children:b})]}),L=i?!0:void 0;return n?e.jsx(U.Link,{href:n,target:o,rel:r,"aria-label":d,"aria-disabled":L,tabIndex:L?-1:void 0,className:_,onClick:L?z=>z.preventDefault():a,children:k}):e.jsx("button",{type:s,onClick:a,disabled:!!L,"aria-label":d,className:_,children:k})}const Pa="oraculo__OraculoEventEnVivoCard-module__cardWrapper___6b-cT",za="oraculo__OraculoEventEnVivoCard-module__customButtonLabel___QRhk7",Da="oraculo__OraculoEventEnVivoCard-module__customButtonDisabled___jwioF",Ie={cardWrapper:Pa,customButtonLabel:za,customButtonDisabled:Da},Ye={base:"FFFFFF",sleeve:"FFFFFF",number:"000000",real:!1,type:"short_sleeves"},Qe={base:"000000",sleeve:"000000",number:"FFFFFF",real:!1,type:"short_sleeves"},Ce=(t,a,n="player")=>{var r,s;if(t===void 0)return null;if(t===null)return a==="home"?Ye:Qe;const o=(s=(r=t==null?void 0:t.jerseys)==null?void 0:r[a])==null?void 0:s[n];return o||(a==="home"?Ye:Qe)};function _t({event:t,liveData:a,betOffers:n,jersey:o}){var c,p,h,u,m,d,g,b,y,C,f;const r=n==null?void 0:n.find(S=>{var $;return(($=S.betOfferType)==null?void 0:$.id)===2}),s={englishLabel:"",type:"",betOfferId:0,changedDate:"",oddsFractional:"",oddsAmerican:"",status:"INACTIVE",cashOutStatus:"SUSPENDED"},i=[{...s,id:-1,label:"1",odds:void 0},{...s,id:-2,label:"X",odds:void 0},{...s,id:-3,label:"2",odds:void 0}];return e.jsx("div",{className:Ie.cardWrapper,children:e.jsxs(K.default,{direction:"column",spacing:1,useFlexGap:!0,children:[e.jsxs(K.default,{direction:"column",spacing:1.5,useFlexGap:!0,children:[e.jsx(mt,{title:(h=(p=(c=t==null?void 0:t.path)==null?void 0:c[0])==null?void 0:p.name)!=null?h:"",subtitle:(u=t==null?void 0:t.group)!=null?u:"",live:!0,time:((m=a==null?void 0:a.matchClock)==null?void 0:m.minute)!=null?`${a.matchClock.minute}'`:""}),e.jsx("div",{style:{padding:"0 4px"},children:e.jsxs(oe,{spacing:1.5,columns:"1fr auto 1fr",children:[e.jsx(_e,{name:t==null?void 0:t.homeName,jersey:Ce(o,"home")}),e.jsx(Pe,{text:((g=(d=a==null?void 0:a.score)==null?void 0:d.home)!=null?g:0)+":"+((y=(b=a==null?void 0:a.score)==null?void 0:b.away)!=null?y:0),name:"En vivo"}),e.jsx(_e,{name:t==null?void 0:t.awayName,jersey:Ce(o,"away")})]})})]}),e.jsxs(K.default,{direction:"column",spacing:1,useFlexGap:!0,children:[e.jsx(oe,{spacing:1,children:((C=r==null?void 0:r.outcomes)!=null?C:i).map((S,$)=>e.jsx(Le,{text:S.label.toUpperCase()},$))}),e.jsx(oe,{spacing:2,children:((f=r==null?void 0:r.outcomes)!=null?f:i).map((S,$)=>e.jsx(Fa,{variant:"primary",disabled:S.odds==null||(r==null?void 0:r.cashOutStatus)=="SUSPENDED",onClick:()=>{De("/deportes#event/live/"+t.id,S.id)},className:Ie.customButtonDisabled,children:e.jsx("span",{className:Ie.customButtonLabel,children:S.odds===void 0?"":(S.odds/1e3).toFixed(2)})},$))})]})]})})}const Ua="oraculo__OraculoEventDate-module__date___xhIlh",Va={date:Ua};function Wa({text:t}){return e.jsx("div",{className:`oli-font ${Va.date}`,children:t})}const Ga="oraculo__OraculoEventSemanaCard-module__cardContainer___4JuDe",Ha="oraculo__OraculoEventSemanaCard-module__cardBackground___vfalD",Ka="oraculo__OraculoEventSemanaCard-module__jugadas___W8b7H",Za="oraculo__OraculoEventSemanaCard-module__equipos___G5hLn",pe={cardContainer:Ga,cardBackground:Ha,jugadas:Ka,equipos:Za};function yt({event:t,jersey:a}){var i,c,p,h,u,m,d;const n=Q.useCaptureInteraction(),o=ee();function r(g){const b=new Date(g),y=b.toLocaleDateString("es-ES",{weekday:"short"}).toUpperCase(),C=b.getDate().toString().padStart(2,"0"),f=(b.getMonth()+1).toString().padStart(2,"0");let S=b.toLocaleTimeString("es-PE",{hour:"numeric",minute:"2-digit",hour12:!0}).toUpperCase();return S=S.replace(/\./g,"").replace(/A\s*M/i,"AM").replace(/P\s*M/i,"PM"),`${y} ${C}/${f} | ${S}`}const s=(g,b)=>{const y=`${t.homeName} vs ${t.awayName}`,C=b?(b/1e3).toFixed(2):"",f=C?`${y} - Cuota: ${C}`:y;n({element:"evento_semana_outcome",label:`Landing: ${o} - OraculoEventSemanaCard - Click: ${f}`,target:"/deportes#in-play",event_type:"click",module_id:301,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{section:"OraculoEventSemanaCard",outcomes:f}}),De("/deportes#event/"+t.id,g)};return e.jsxs("div",{className:pe.cardContainer,children:[e.jsx(Fe,{title:(i=t==null?void 0:t.group)!=null?i:""}),e.jsx("div",{className:pe.cardBackground,children:e.jsxs(K.default,{direction:"column",spacing:{xs:.5,md:1},useFlexGap:!0,children:[e.jsxs(K.default,{direction:"column",spacing:1,useFlexGap:!0,children:[e.jsxs("div",{className:pe.equipos,children:[e.jsx(_e,{name:t.homeName,size:"compact",jersey:Ce(a,"home")}),e.jsx(Pe,{text:"vs.",name:"",size:"small"}),e.jsx(_e,{name:t.awayName,size:"compact",jersey:Ce(a,"away")})]}),e.jsx(Wa,{text:r(t.start)})]}),e.jsxs(K.default,{direction:"column",spacing:{xs:.5,md:1},useFlexGap:!0,children:[e.jsx(oe,{spacing:1,children:((h=(p=(c=t==null?void 0:t.outcome)==null?void 0:c[0])==null?void 0:p.outcomes)!=null?h:[]).map((g,b)=>e.jsx(Le,{text:g.label.toUpperCase()},b))}),e.jsx("div",{className:pe.jugadas,children:e.jsx(oe,{spacing:1,children:((d=(m=(u=t==null?void 0:t.outcome)==null?void 0:u[0])==null?void 0:m.outcomes)!=null?d:[]).map((g,b)=>e.jsx(X,{variant:"primary",fullHeight:!0,onClick:()=>{s(g.id,g.odds)},children:(g.odds/1e3).toFixed(2)},b))})})]})]})})]})}function St({items:t,title:a="Destacados",iconUrl:n="https://d28gilnhu2bcbp.cloudfront.net/landing/1770307276612-lonuevo.webp",onViewMore:o,className:r="",paddingMobile:s="16px"}){var F;const i=v.useRef(null),[c,p]=v.useState({isStart:!0,isEnd:!1}),h=Q.useCaptureInteraction(),u=ee(),m=re(),d=!t||t.length===0,g=()=>{var _;h({element:"destacados_carousel_prev",label:`${u} - OraculoSeccionDestacados - Anterior`,target:"carousel",event_type:"click",module_id:m,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{section:"OraculoSeccionDestacados"}}),(_=i.current)==null||_.prev()},b=()=>{var _;h({element:"destacados_carousel_next",label:`${u} - OraculoSeccionDestacados - Siguiente`,target:"carousel",event_type:"click",module_id:m,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{section:"OraculoSeccionDestacados"}}),(_=i.current)==null||_.next()},y=()=>{h({element:"destacados_view_more",label:`${u} - OraculoSeccionDestacados - Ver más`,target:"https://www.olimpo.bet/promociones",event_type:"click",module_id:m,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{section:"OraculoSeccionDestacados"}}),typeof globalThis!="undefined"&&globalThis.location&&globalThis.location.assign("https://www.olimpo.bet/promociones")},C=_=>{if(!_)return;const L=`https://www.olimpo.bet/promociones/${encodeURIComponent(_)}`;h({element:"destacados_card",label:`${u} - OraculoSeccionDestacados - Click: ${String(_)}`,target:L,event_type:"click",module_id:m,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{section:"OraculoSeccionDestacados",promotion:String(_)}}),typeof globalThis!="undefined"&&globalThis.location&&globalThis.location.assign(L)},f=r||void 0,S=xe.default("(max-width:950px)"),$=(F=t==null?void 0:t.length)!=null?F:0;return v.useEffect(()=>{if($===0){p({isStart:!0,isEnd:!0});return}p({isStart:!0,isEnd:!1})},[$,S,s]),e.jsxs("section",{className:f,style:{width:"100%"},children:[e.jsxs("header",{style:{display:"grid",gridTemplateColumns:"1fr auto auto",alignItems:"center",columnGap:12,rowGap:8,marginBottom:16,paddingLeft:S?s:0,paddingRight:S?s:0},children:[e.jsx(de,{title:a,iconUrl:n,size:"md"}),e.jsxs("div",{style:{display:"flex",gap:8},children:[e.jsx(X,{ariaLabel:"Anterior",variant:"secondary",iconOnly:!0,leftIcon:e.jsx(me.ChevronLeftRounded,{}),onClick:g,disabled:c.isStart||d}),e.jsx(X,{ariaLabel:"Siguiente",variant:"secondary",iconOnly:!0,rightIcon:e.jsx(me.ChevronRightRounded,{}),onClick:b,disabled:c.isEnd||d})]}),e.jsx(X,{variant:"secondary",onClick:y,children:"Ver más"})]}),e.jsx(ue,{ref:i,items:t,perPage:void 0,gap:"16px",enableHorizontalWheel:!0,showRightGradient:!S,options:{autoWidth:!0,trimSpace:"move"},breakpoints:{768:{perPage:2,focus:"start",padding:{left:s,right:s}},1024:{perPage:2.5,focus:"start",padding:{left:"24px",right:"24px"}}},renderItem:_=>e.jsx("div",{style:{textAlign:"center",cursor:"pointer"},onClick:()=>C(_.promotion),children:e.jsx("img",{src:`https://olimpo.bet${_.image!==""?_.image:_.summary_image}`,alt:_.title,style:{width:"100%",height:typeof window!="undefined"&&window.innerWidth<768?"80px":"137px",borderRadius:8,display:"block",objectFit:"cover"}})},`${_.title}-${_.image}`),onMove:({isStart:_,isEnd:k,source:L})=>{p({isStart:_,isEnd:k}),L==="user"&&h({element:"destacados_carousel_slide",label:`${u} - OraculoSeccionDestacados - Slide Carousel`,target:"carousel",event_type:"slide",module_id:m,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:"",isStart:_,isEnd:k},tags:{section:"OraculoSeccionDestacados"}})}})]})}const Oe="__ORACULO_EXTRAS__";function wt(){const t=globalThis;return t[Oe]||(t[Oe]={}),t[Oe]}function Ja(t){wt().extras=t}function ae(t){var a;return(a=wt().extras)==null?void 0:a[t]}function Xa(){delete globalThis[Oe]}function Ve({items:t,title:a="Top Juegos",iconUrl:n,onCardClick:o}){const r=Q.useCaptureInteraction(),s=ee(),i=re(),c=v.useMemo(()=>(t!=null?t:[]).map((m,d)=>{var g;return{...m,orden:(g=m.orden)!=null?g:d+1,_originalIndex:d}}).sort((m,d)=>m.orden!=null&&d.orden!=null?m.orden-d.orden:m._originalIndex-d._originalIndex),[t]),p=!t||t.length===0,h=p?Array.from({length:6}):c.slice(0,6),u=m=>{r({element:"top_juegos_card",label:`${s} - OraculoSeccionTopJuegos - Open game: ${String(m.machine||"unknown")}`,target:String(m.machine||"unknown"),event_type:"click",module_id:i,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{game_name:String(m.machine||"unknown"),section:"OraculoSeccionTopJuegos"}});const d=ae("showIframe"),g=ae("loadMachine");d==null||d(),requestAnimationFrame(()=>{g==null||g(m,!1,"CASINO")})};return e.jsx("section",{style:{width:"100%"},children:e.jsxs(K.default,{direction:"column",spacing:2,useFlexGap:!0,children:[e.jsx(de,{title:a,iconUrl:n,size:"md"}),e.jsx(P.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:h.map((m,d)=>{var g,b;return e.jsx(ft,{imageUrl:p?"":m.background?`https://olimpo.bet${m.background}`:`https://olimpo.bet${(g=m.logo)!=null?g:""}`,orden:p?d+1:m.orden,loading:p,onClick:p?void 0:()=>{o==null||o(m),u(m)}},p?`sk-${d}`:(b=m.machine)!=null?b:`${d}`)})})]})})}const Ya="https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommendations",Qa=(t,a)=>{var n,o,r,s,i,c,p,h,u,m,d,g,b,y;return{orden:Number(a),machine:String((n=t.id)!=null?n:t.external_id),logo:(o=t.logo)!=null?o:"",name:(r=t.room_name)!=null?r:"",web_name:(s=t.product)!=null?s:"",provider:(i=t.service)!=null?i:"",sub_provider:(c=t.service)!=null?c:"",external_id:(p=t.external_id)!=null?p:"",type:(h=t.game_type)!=null?h:"",tags:(u=t.tags)!=null?u:"",lobby_tag:(m=t.lobby_tag)!=null?m:null,background:(d=t.background)!=null?d:"",rtp:(g=t.rtp)!=null?g:null,demo_allowed:(b=t.demo_allowed)!=null?b:!1,gaming_session_required:(y=t.gaming_session_required)!=null?y:!1}},en=t=>t?!Array.isArray(t)&&Array.isArray(t.recommendations)?t.recommendations.filter(Boolean).map(a=>String(a)):[]:[],jt=()=>{var a,n,o;const t=ae("user");return(o=(n=(a=t==null?void 0:t.userId)!=null?a:t==null?void 0:t.user)!=null?n:t==null?void 0:t.id)!=null?o:null},tn=async t=>{const a=jt(),n=new URLSearchParams({userId:String(a),productType:t}),o=`${Ya}?${n.toString()}`,r=await fetch(o);if(!r.ok)throw new Error(`No se pudo obtener recomendaciones. HTTP ${r.status} ${r.statusText}`);const s=await r.json();return{...s,recommendations:Array.isArray(s==null?void 0:s.recommendations)?s.recommendations.slice(0,49):[]}},an=async(t,a)=>{const n="https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",o=JSON.stringify({userId:String(t),items:a}),r=await fetch(n,{method:"POST",headers:{"Content-Type":"application/json"},body:o});if(!r.ok)throw new Error(`No se pudo obtener el ranking. HTTP ${r.status} ${r.statusText}`);return(await r.json()).rankedItems},We=(t,a=!1,n="Casino")=>{const[o,r]=v.useState([]),[s,i]=v.useState(!1);return v.useEffect(()=>{let c=!1;return(async()=>{if(!a){r(Array.isArray(t)?t:[]),i(!1);return}i(!0);try{const h=await tn(n),u=en(h);if(!u.length){c||r([]);return}const m=jt(),d=await an(m,u),g=d.map(f=>f.itemId),b=await Promise.allSettled(g.map(async(f,S)=>{const $=await fetch(`https://api.mktolimpo.com/api/machine/${f}`);if(!$.ok)throw new Error(`No se pudo obtener machine ${f}`);const F=await $.json();return Qa(F,S)}));if(c)return;const y=b.filter(f=>f.status==="fulfilled").map(f=>f.value),C=d.map(f=>{const S=y.find($=>$.machine===f.itemId);return S?{...S,score:f.score}:null}).filter(Boolean).sort((f,S)=>{var $,F;return(($=S.score)!=null?$:0)-((F=f.score)!=null?F:0)});r(C)}catch(h){console.error(`[usePersonalizeGameItems:${n}] error:`,h),c||r([])}finally{c||i(!1)}})(),()=>{c=!0}},[t,a,n]),{resolvedItems:o,loading:s}},nn=(t,a=!1)=>We(t,a,"Casino"),on=(t,a=!1)=>We(t,a,"Deportes virtuales"),rn=(t,a=!1)=>We(t,a,"Casino en vivo"),sn=(t,a)=>{var n,o;return(o=(n=t.orden)!=null?n:t.machine)!=null?o:a},ln=t=>{if(typeof t=="boolean")return t;if(typeof t=="string")return t.toLowerCase()==="true";if(t&&typeof t=="object"){if(typeof t.value=="boolean")return t.value;if(typeof t.value=="string")return t.value.toLowerCase()==="true"}return!1},It=({items:t,title:a="Casino en vivo",subtitle:n="Disfruta la emoción en tus juegos favoritos y gana en tiempo real.",backgroundMobileUrl:o="",onCardClick:r,backgroundDesktopUrl:s="",onViewMore:i,className:c,isPersonalize:p=!1})=>{const h=Q.useCaptureInteraction(),u=ee(),m=re(),d=ln(p),{resolvedItems:g}=rn(t,d),b=d?g:Array.isArray(t)?t:[],y=f=>{h({element:"live_casino_card",label:`${u} - OraculoSeccionCasinoEnVivo${d?" - personalize":""} - Open game: ${String(f.machine||"unknown")}`,target:String(f.machine||"unknown"),event_type:"click",module_id:m,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{game_name:String(f.machine||"unknown"),provider:f.provider||"unknown",section:"OraculoSeccionCasinoEnVivo"}});const S=ae("showIframe"),$=ae("loadMachine");if(!$){if(r){r(f);return}console.warn("[OraculoSeccionCasinoEnVivo] No existe loadMachine en extras ni onCardClick. No se puede abrir el juego.",{machine:f==null?void 0:f.machine,provider:f==null?void 0:f.provider});return}S==null||S(),typeof window!="undefined"&&window.scrollTo({top:0,behavior:"smooth"}),requestAnimationFrame(()=>{$==null||$(f,!1,"casino_en_vivo")})},C=()=>{h({element:"casino_en_vivo_view_more",label:`${u} - OraculoSeccionCasinoEnVivo${d?" - personalize":""} - Ver más`,target:"https://www.olimpo.bet/casino-en-vivo",event_type:"click",module_id:m,metadata:{location:typeof globalThis!="undefined"&&globalThis.location?globalThis.location.pathname:""},tags:{section:"OraculoSeccionCasinoEnVivo"}}),typeof globalThis!="undefined"&&globalThis.location&&(i?i():globalThis.location.assign("https://www.olimpo.bet/casino-en-vivo"))};return e.jsxs(P.default,{className:c,sx:{position:"relative",color:"white",overflow:"hidden"},children:[e.jsx(P.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}')
|