PageSourceSearch

https://maxwin.ro/assets/GamificationPage-Cp6cxGHx-1789482018402.js

js maxwin.ro collected 2026-10-06 18:24:34 UTC 26,897 bytes, 265 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Lotto-BuFAT7YM-1789482018450.js","./vendor-DbsMbOVk-1789482017689.js","./crypto-js-CJJSxndp-1789482017351.js","./main-DrgE7FAP.js","./lodash-ByDCjXp0-1789482017690.js","./framer-motion-D1KBGWJk-1789482017653.js","./shield-js-npm-CZORHk4v-1789482017809.js","./pako-CFLZ4Bv7-1789482017761.js"])))=>i.map(i=>d[i]);
2import{bb as C,F as R,z as w,u as A,q4 as G,h as B,q5 as de,q6 as pe,dc as ue,ac as k,ad as j,k as x,h$ as y,q7 as me,aO as F,i1 as W,q8 as he,q9 as xe,i4 as ye,qa as _e,qb as ge,qc as $e,an as we,e3 as fe,cY as be,mY as ke,qd as ve}from"./main-DrgE7FAP.js";import{r as c,j as i,i as K,s as Ce,h as $,v as b,M as u,S as je,B as Z,ad as Se,T as ee,W as te,C as Ie,P as Ae,Q as Re,U as Ne,c as Te,_ as Le,w as Pe,n as Me}from"./vendor-DbsMbOVk-1789482017689.js";import{s as ze}from"./sliceString-D_Yhv0Dh-1789482018394.js";import{m as M,A as Ee}from"./framer-motion-D1KBGWJk-1789482017653.js";import"./lodash-ByDCjXp0-1789482017690.js";import{A as Be}from"./AnimatedCounter-Vb_4pUQF-1789482018399.js";import{G as De}from"./UnityStage-CIEhbycI-1789482018402.js";import{G as Oe}from"./GamificationPageNotification-DsJ0HP-Y-1789482018402.js";const qe=({assets:e})=>{const t=c.useRef(null),{url:a}=C({image:`/${e.logo}`,ref:t});return i.jsx(R.Center,{className:"cp-logo",ref:t,style:{background:`url(${a}) center / contain no-repeat`}})},Ge={initial:{},enter:{transition:{staggerChildren:.3}},exit:{}},Fe={initial:{x:100,opacity:0},enter:{x:0,opacity:1,transition:{staggerChildren:.2,duration:.3}},exit:{x:-100,opacity:0}},We={exit:{scale:.2,opacity:0,transition:{duration:.5}},enter:{x:0,opacity:1,transition:{duration:.5}},initial:{x:-1e3,opacity:.5}},He=({item:e})=>{const t=c.useRef(null),a=K(),{url:o}=C({image:`/${e.image}`,ref:t}),s=()=>{a(e.url)};return i.jsx(M.div,{variants:We,className:"cp-box__item d-flex-center wh-100",onClick:s,ref:t,style:{background:`url(${o}) center / contain no-repeat`},children:(e==null?void 0:e.title)&&ze(e.title,55)})},ae=({title:e,isPast:t,isActiveDay:a,isActive:o,onClick:s,assets:n})=>{const l=c.useRef(null);let p=n.dayHeaderRegular;a?p=n.dayHeaderActive:t&&(p=n.dayHeaderInactive);const{url:m}=C({image:`/${p}`,ref:l});return i.jsx(M.div,{whileTap:Ce?{scale:1.1}:{},className:`cp-item__title  ${o?"cp-item__title--active":""}`,onClick:s,ref:l,style:{background:`url(${m}) center / contain no-repeat`},children:i.jsx("span",{className:"text-truncate",children:e})})},oe=({item:e,isMobile:t,assets:a,isPast:o})=>{const s=c.useRef(null);let n=a.dayFrameRegular;e.isActive?n=a.dayFrameActive:o&&(n=a.dayFrameInactive);const{url:l}=C({image:`/${n}`,ref:s});return w(e)?null:i.jsxs(M.div,{className:"cp-item ",variants:Fe,children:[!t&&i.jsx(ae,{isActiveDay:e.isActive,title:e.title,isPast:o,assets:a}),i.jsx("div",{className:"cp-box ",ref:s,style:{background:`url(${l}) center / 100% 100% no-repeat`},children:e.items.map((p,m)=>i.jsx(He,{item:p},m))})]})},ie=e=>{const t=a=>a.isActive;return e==null?void 0:e.findIndex(t)},Ue=({items:e,assets:t})=>{const a=ie(e);return i.jsx(i.Fragment,{children:e.map((o,s)=>i.jsx(oe,{item:o,assets:t,isPast:s<a},s))})},Xe=({items:e,assets:t})=>{const[a,o]=c.useState(0),s=ie(e),n=l=>{o(l)};return i.jsxs(i.Fragment,{children:[i.jsx(R.Col,{children:e.map((l,p)=>i.jsx(ae,{isActive:a===p,isActiveDay:l.isActive,title:l.title,assets:t,onClick:()=>n(p),isPast:p<s},p))}),i.jsx("div",{className:"overflow-hidden",children:e.map((l,p)=>i.jsx(Ee,{children:a===p&&i.jsx(oe,{isMobile:!0,isActive:!0,assets:t,item:l})},p))})]})},H=({items:e,assets:t})=>{const a=$({query:"(max-width: 1440px)"});return w(e)?null:i.jsx(i.Fragment,{children:a?i.jsx(Xe,{items:e,assets:t}):i.jsx(Ue,{items:e,assets:t})})},U=({handleChangeTabs:e,assets:t,isActive:a,title:o})=>{const s=c.useRef(null);let n=t.tabButtonInactive;a&&(n=t.tabButtonActive);const{url:l}=C({image:`/${n}`,ref:s,timeout:0});return i.jsx(R.Center,{ref:s,style:{background:`url(${l}) center / contain no-repeat`},onClick:e,className:`cp-tabs__item ${a?"cp-tabs__item--active":""}`,children:o})},Qe=({daysItems:e,specialItem:t,handleChangeTabs:a,activeTab:o,assets:s,daysTitle:n,specialsTitle:l})=>i.jsxs("div",{className:"cp-tabs",children:[e&&i.jsx(U,{assets:s,handleChangeTabs:()=>a("days"),isActive:o==="days",title:n}),t&&i.jsx(U,{assets:s,handleChangeTabs:()=>
2a("specials"),isActive:o==="specials",title:l})]}),Ve=({apiUrl:e})=>{var T,D,O,q;const t=c.useRef(null),a=c.useRef(null),o=A(G.calendar),s=A(G.isLoaded),n=o==null?void 0:o.days,l=o==null?void 0:o.specials,p=n&&l,[m,_]=c.useState("days"),r=$({query:"(min-width: 800px)"}),h=$({query:"(min-width: 1440px)"}),g=B();c.useEffect(()=>{_(o!=null&&o.days?"days":"specials")},[p]);const{url:I}=C({image:`/${r?(T=o==null?void 0:o.background)==null?void 0:T.desktop:(D=o==null?void 0:o.background)==null?void 0:D.mobile}`,ref:t,timeout:0,update:r||h,isDesktop:r}),{isImageLoaded:f,url:v}=C({image:`/${h?(O=o==null?void 0:o.frame)==null?void 0:O.desktop:(q=o==null?void 0:o.frame)==null?void 0:q.mobile}`,ref:a,timeout:0,update:r||h});c.useEffect(()=>(g(de.getCalendarPreview({url:e})),()=>{g(pe())}),[e,g]);const N=ce=>{_(ce)};if(w(o))return null;const S={logo:o.logo,background:o.background,frame:o.frame,dayFrameInactive:o.dayFrameInactive,dayFrameActive:o.dayFrameActive,dayFrameRegular:o.dayFrameRegular,dayHeaderInactive:o.dayHeaderInactive,dayHeaderActive:o.dayHeaderActive,dayHeaderRegular:o.dayHeaderRegular,tabButtonActive:o.tabButtonActive,tabButtonInactive:o.tabButtonInactive};return w(o)&&s?i.jsx(ue,{message:""}):i.jsx("div",{className:"cp-wrapper wh-100",ref:t,style:{background:`url(${I}) center / cover no-repeat`},children:i.jsxs("div",{className:"cp-wrapper__inner",children:[i.jsxs("div",{className:"cp-header",children:[i.jsx(qe,{assets:S}),p&&i.jsx(Qe,{daysItems:!!n,specialItem:!!l,handleChangeTabs:N,activeTab:m,assets:S,daysTitle:o.daysTitle,specialsTitle:o.specialsTitle})]}),i.jsx(M.div,{variants:Ge,style:{background:`url(${v}) center / cover no-repeat`},className:"cp-frame d-flex",initial:"initial",animate:f?"enter":"initial",ref:a,exit:"exit",children:i.jsxs(i.Fragment,{children:[(n&&!p||m==="days")&&i.jsx(H,{items:n||[],assets:S}),(m==="specials"||l&&!p)&&i.jsx(H,{items:l||[],assets:S})]})})]})})},Ye=b.div`
3  font-size: 12px;
4  font-weight: 700;
5
6  text-shadow: 0px 3px 7px rgba(0, 0, 0, 0.7);
7`,Je={layout_1:!1,layout_2:!1,layout_3:!1,layout_4:!1},d={layout_1:{mobile:{width:345,height:192},desktop:{width:345,height:192}},layout_2:{mobile:{width:319,height:180},desktop:{width:370,height:208}},layout_3:{mobile:{width:330,height:140},desktop:{width:450,height:192}},layout_4:{mobile:{width:330,height:180},desktop:{width:532,height:290}},layout_5:{mobile:{width:330,height:180},desktop:{width:926,height:450}},layout_6:{mobile:{width:320,height:160},desktop:{width:440,height:220}},layout_7:{mobile:{width:228,height:110},desktop:{width:228,height:110}},layout_9:{mobile:{width:206,height:140},desktop:{width:450,height:192}},layout_10:{mobile:{width:375,height:210},desktop:{width:1920,height:344}}},Ke=(e,t)=>e===0?t:[...Array(e)].map(()=>t.map(o=>o)).flat(),se=({$backgroundColor:e,$backgroundImage:t,$sliderLayout:a="layout_1"})=>{var s,n;const o=d!=null&&d[a]?d[a]:d.layout_1;return u`
8    background-color: ${e};
9    background-image: ${`url(${k.CDN_IMAGE_API}${j(((s=o.desktop)==null?void 0:s.width)*2,((n=o.desktop)==null?void 0:n.height)*2)}/${k.CASINO_CAROUSEL_CDN_IMAGE_API}${t})`};
10    background-position: right center;
11    background-size: cover;
12    background-repeat: no-repeat;
13  `},Ze={layout_10:!0},et=e=>e?{prev:{origin:"center center",translate:["-100%",0,0],rotate:[0,0,-10],scale:.5},next:{translate:[0,0,-10]}}:{prev:{origin:"center center",translate:["-150%",0,0],rotate:[0,0,-15],scale:.6},next:{translate:[0,0,-10]}},tt=b.div`
14  ${({$sliderLayout:e})=>{var t,a,o,s;return`
15    height: ${(a=(t=d[e])==null?void 0:t.mobile)==null?void 0:a.height}px !important;
16    @media screen and (min-width: ${x.isMobile}px) {
17      height: ${(s=(o=d[e])==null?void 0:o.desktop)==null?void 0:s.height}px !important;
18    }
19  `}}
20  ${({$sliderLayout:e,$backgroundImage:t,$backgroundColor:a})=>se({$sliderLayout:e,$backgroundImage:t,$backgroundColor:a})}
21
22  display: grid;
23  place-items: end center;
24
25  padding: 8px;
26
27  color: #fff;
28`,X={Title:Ye,Wrapper:tt},at=({banner:e})=>{const t=c.useRef(null),a=$({query:"(max-width: 768px)"});return c.useLayoutEffect(()=>{var o;if(t.current){const s=a?2:1;t.current.src=`${k.CDN_IMAGE_API}${j(((o=t.current)==null?void 0:o.clientWidth)*s,"auto")}/${k.CASINO_CAROUSEL_CDN_IMAGE_API}${e.imageName}`}},[e.imageName,t,a]),i.jsx("img",{...e.altText&&{alt:e.altText},ref:t,className:"w-100"})},ne=u`
29  font-size: ${y.Size.toRem(14)};
30  margin-bottom: ${y.Size.toRem(6)};
31  max-width: 200px;
32`,ot=u`
33  font-size: ${y.Size.toRem(14)};
34  margin-bottom: ${y.Size.toRem(6)};
35  max-width: 200px;
36
37  @media screen and (min-width: ${x.isDesktop}px) {
38    font-size: ${y.Size.toRem(16)};
39  }
40`,le=u`
41  font-size: ${y.Size.toRem(14)};
42  margin-bottom: ${y.Size.toRem(6)};
43  max-width: 160px;
44  @media screen and (min-width: ${x.isDesktop}px) {
45    font-size: ${y.Size.toRem(16)};
46  }
47`,Q=u`
48  font-size: ${y.Size.toRem(16)};
49  max-width: 200px;
50`,it=u`
51  ${le};
52  max-width: 200px;
53`,st={layout_1:ne,layout_2:ot,layout_3:le,layout_4:Q,layout_5:Q,layout_6:it},nt=b.div.attrs({className:"slide-item__title"})`
54  font-weight: bold;
55  display: -webkit-box;
56  text-overflow: ellipsis;
57  overflow: hidden;
58  -webkit-box-orient: vertical;
59  -webkit-line-clamp: 2;
60  line-height: 17px;
61  ${({$sliderLayout:e})=>e?st[e]:ne};
62`,lt=u`
63  width: ${d.layout_1.mobile.width}px !important;
64`,rt=u`
65  width: ${d.layout_2.mobile.width}px !important;
66
67  @media screen and (min-width: ${x.isDesktop}px) {
68    width: ${d.layout_2.desktop.width}px !important;
69  }
70`,ct=u`
71  width: ${d.layout_3.mobile.width}px !important;
72
73  @media screen and (min-width: ${x.isDesktop}px) {
74    width: ${d.layout_3.desktop.width}px !important;
75  }
76`,V=u`
77  width: ${d.layout_4.mobile.width}px !important;
78  @media screen and (min-width: ${x.isMobile}px) {
79    width: ${d.layout_4.desktop.width}px !important;
80  }
81`,dt=u`
82  width: ${d.layout_6.mobile.width}px !important;
83  margin-right: 8px !important;
84  @media screen and (min-width: ${x.isMobile}px) {
85    width: ${d.layout_6.desktop.width}px !important;
86  }
87`,pt=u`
88  width: ${d.layout_7.mobile.width}px !important;
89  margin-right: 8px !important;
90  @media screen and (min-width: ${x.isMobile}px) {
91    width: ${d.layout_7.desktop.width}px !important;
92  }
93`,ut=u`
94  width: ${d.layout_9.mobile.width}px !important;
95  @media screen and (min-width: ${x.isMobile}px) {
96    width: ${d.layout_9.desktop.width}px !important;
97  }
98`,mt=u`
99  width: 100%;
100`,z={layout_1:lt,layout_2:rt,layout_3:ct,layout_4:V,layout_5:V,layout_6:dt,layout_7:pt,layout_9:ut,layout_10:mt},ht=b("div").attrs({className:"swiper-slide  slide-item d-flex-col"})`
101  box-sizing: content-box;
102  ${({$sliderLayout:e})=>e&&z[e]?z[e]:z.containerLayout_1};
103`,L=u`
104  font-size: ${y.Size.toRem(12)};
105  display: -webkit-box;
106  text-overflow: ellipsis;
107  overflow: hidden;
108  -webkit-box-orient: vertical;
109  -webkit-line-clamp: 3;
110  max-width: 200px;
111
112  line-height: 12px;
113  /* padding-bottom: ${y.Size.toRem(30)};
114  @media screen and (min-width: ${x.isDesktop}px) {
115    padding-bottom: ${y.Size.toRem(28)};
116  } */
117`,xt=u`
118  font-size: ${y.Size.toRem(12)};
119  display: -webkit-box;
120  text-overflow: ellipsis;
121  overflow: hidden;
122  -webkit-box-orient: vertical;
123  -webkit-line-clamp: 3;
124  max-width: 150px;
125  line-height: 14px;
126`,yt=u``,_t=u`
127  ${L};
128  @media screen and (min-width: ${x.isDesktop}px) {
129    padding-bottom: ${y.Size.toRem(14)};
130  }
131`,gt={layout_1:L,layout_2:L,layout_3:xt,layout_4:yt,layout_6:_t},$t=b.div.attrs({className:"slide-item__subtitle"})`
132  ${({$sliderLayout:e})=>e?gt[e]:L};
133`,P=u`
134  padding: 6px 20px;
135  border-radius: 3px;
136  font-size: ${y.Size.toRem(12)};
137  line-height: ${y.Size.toRem(24)};
138  text-align: center;
139  white-space: nowrap;
140  user-select: none;
141`,wt=u`
142  ${P}
143`,ft=u`
144  border-radius: 100px;
145  padding: 6px 20px;
146  font-size: ${y.Size.toRem(14)};
147  text-align: center;
148  white-space: nowrap;
149  line-height: ${y.Size.toRem(17)};
150  display: inline-block;
151  user-select: none;
152`,Y=u``,bt={layout_1:P,layout_2:wt,layout_3:ft,layout_4:Y,layout_5:Y,layout_6:P},kt=b.span.attrs({className:"casino-carousel__btn"})`
153  align-self: flex-start;
154  font-weight: bold;
155  ${({$sliderLayout:e})=>e?bt[e]:P};
156`,vt=u`
157  height: ${d.layout_1.mobile.height}px !important;
158  padding-left: 20px;
159`,Ct=u`
160  /* border-radius: 6px; */
161  overflow: hidden;
162  height: ${d.layout_2.mobile.height}px !important;
163  padding-left: 20px;
164  @media screen and (min-width: ${x.isDesktop}px) {
165    height: ${d.layout_2.desktop.height}px !important;
166  }
167`,jt=u`
168  height: ${d.layout_3.mobile.height}px !important;
169  /* border-radius: 10px; */
170  overflow: hidden;
171  padding-left: 20px;
172
173  @media screen and (min-width: ${x.isDesktop}px) {
174    height: ${d.layout_3.desktop.height}px !important;
175  }
176`,J=u`
177  height: ${d.layout_4.mobile.height}px !important;
178  @media screen and (min-width: ${x.isMobile}px) {
179    height: ${d.layout_4.desktop.height}px !important;
180  }
181`,St=u`
182  height: ${d.layout_6.mobile.height}px !important;
183  padding-left: 24px;
184  @media screen and (min-width: ${x.isMobile}px) {
185    height: ${d.layout_6.desktop.height}px !important;
186  }
187`,It=u`
188  height: ${d.layout_7.mobile.height}px !important;
189  @media screen and (min-width: ${x.isMobile}px) {
190    height: ${d.layout_7.desktop.height}px !important;
191  }
192`,At=u`
193  height: ${d.layout_9.mobile.height}px !important;
194  @media screen and (min-width: ${x.isMobile}px) {
195    height: ${d.layout_9.desktop.height}px !important;
196  }
197`,Rt=u`
198  height: ${d.layout_10.mobile.height}px !important;
199  @media screen and (min-width: ${x.isMobile}px) {
200    height: ${d.layout_10.desktop.height}px !important;
201  }
202`,E={layout_1:vt,layout_2:Ct,layout_3:jt,layout_4:J,layout_5:J,layout_6:St,layout_7:It,layout_9:At,layout_10:Rt},Nt=b("div")`
203  ${({$sliderLayout:e})=>E[e]?E[e]:E.layout_1};
204  ${({$sliderLayout:e,$backgroundImage:t,$backgroundColor:a})=>se({$sliderLayout:e,$backgroundImage:t,$backgroundColor:a})}
205  color: #fff;
206  justify-content: space-evenly;
207`,Tt={layout_1:"6px 10px",layout_2:"6px 10px",layout_3:"6px 10px",layout_4:"6px 10px",layout_5:"6px 10px",layout_6:"10px 6px 6px 0",layout_7:"10px 6px 10px 0"},re=b.div`
208  font-size: ${y.Size.toRem(14)};
209  color: #fff;
210  padding: ${({$sliderLayout:e})=>Tt[e]};
211  opacity: ${({$hiddenTitle:e})=>e?0:1};
212  @media screen and (min-width: ${x.isMobile}px) {
213  }
214  @media screen and (min-width: ${x.isDesktop}px) {
215  }
216`,Lt={layout_1({showTitle:e,banner:t,sliderLayout:a,processedSubtitle:o}){return i.jsxs(i.Fragment,{children:[e&&i.jsx(re,{$hiddenTitle:!(t!=null&&t.topTitle),$sliderLayout:a,children:t!=null&&t.topTitle?t.topTitle:"1"}),i.jsxs(Nt,{className:`w-100 slide-item__wrapper slide-item__content d-flex-col ${me[t==null?void 0:t.typeId]||""}`,$sliderLayout:a,$backgroundColor:t.backgroundColor,$backgroundImage:t==null?void 0:t.imageName,...F(t.altText),children:[i.jsxs("div",{children:[i.jsx(nt,{$sliderLayout:a,children:t.title}),i.jsx($t,{$sliderLayout:a,children:o})]}),!!t.navigationText&&!!t.navigationUrl&&i.jsx(kt,{$sliderLayout:a,children:t.navigationText})]})]})},layout_2({banner:e,processedSubtitle:t,sliderLayout:a}){return i.jsx(X.Wrapper,{className:"slide-item__content",$sliderLayout:a??"layout_1",$backgroundColor:e.backgroundColor,$backgroundImage:e==null?void 0:e.imageName,...F(e.altText),children:i.jsx(X.Title,{children:t})})},layout_3({banner:e}){return i.jsx(at,{banner:e})}},Pt={layout_1:"layout_1",layout_2:"layout_1",layout_3:"layout_1",layout_4:"layout_1",layout_5:"layout_1",layout_6:"layout_1",layout_7:"layout_2",layout_9:"layout_1",layout_10:"layout_3"},Mt=({banner:e,casinoSliderConfig:t})=>{var l;const a=((l=e.description)==null?void 0:l.length)>58?`${e.description.substring(0,58)}
216...`:e.description,o=t.showTitle&&!t.staticTitle,s=t.layoutSelection||"layout_1",n=Lt[Pt[s]];return n?i.jsx(n,{showTitle:o,banner:e,sliderLayout:s,processedSubtitle:a}):null},zt=({banner:e,casinoSliderConfig:t})=>i.jsx(ht,{$sliderLayout:t.layoutSelection,"data-link":e.navigationUrl,"data-title":e.topTitle,"data-is-external-url":e.isExternalUrl,children:i.jsx(Mt,{banner:e,casinoSliderConfig:t})}),Et=c.memo(zt),Bt=({backgroundImage:e})=>{const t=c.useRef(null),a=$({query:`(min-width: ${x.isDesktop}px)`});return c.useEffect(()=>{if(t.current&&e){const o=a?1:2,s=`${k.CDN_IMAGE_API}${j(t.current.clientWidth*o,t.current.clientHeight*o)}/${k.CASINO_CAROUSEL_CDN_IMAGE_API}${e}`;t.current.style.backgroundImage=`url(${s})`}},[t,e,a]),i.jsx("div",{ref:t,className:"ca-carousel__item"})},Dt=({configuration:e,items:t,disableLine:a})=>{const o=$({query:`(min-width: ${x.isDesktop}px)`});return w(t)?null:i.jsxs(i.Fragment,{children:[i.jsx(je,{slidesPerView:1,modules:[Z,Se,ee,te],mousewheel:{forceToAxis:!0},className:"ca-carousel",effect:"creative",spaceBetween:0,creativeEffect:et(o),observer:!0,pagination:{enabled:!0,dynamicMainBullets:6,dynamicBullets:!0},loop:e==null?void 0:e.loopAccent,speed:1300,autoplay:e!=null&&e.autoplayAccent?{delay:e==null?void 0:e.slideIntervalAccent,pauseOnMouseEnter:!0,stopOnLastSlide:!1,disableOnInteraction:!1}:{},children:t.map((s,n)=>i.jsx(Ie,{children:i.jsx(Bt,{backgroundImage:s.imageName})},n))}),!a&&i.jsx("div",{className:"ca-carousel--line"})]})},Ot=({configuration:e})=>{const t=c.useRef(null),a=K(),o=(e==null?void 0:e.slideInterval)||0,s=c.useCallback(r=>{const h=r.clickedSlide&&r.clickedSlide.getAttribute("data-link"),g=r.clickedSlide&&r.clickedSlide.getAttribute("data-is-external-url");h&&(JSON.parse(g)?window.open(h,"_blank"):setTimeout(()=>{a(h)},200))},[]),n=c.useCallback(r=>{var h;if(r.navigation&&r.navigation.destroy(),r.update(),t!=null&&t.current){const g=(h=r.slides[r.activeIndex])==null?void 0:h.getAttribute("data-title");!g||g===""?(t.current.style.opacity="0",t.current.innerText="1"):(t.current.style.opacity="1",t.current.innerText=g)}},[t]),l=c.useCallback(r=>{r.navigation&&r.navigation.destroy(),n(r)},[n]),p=c.useCallback(r=>{r.autoplay.stop()},[]),m=e!=null&&e.pagination||(e==null?void 0:e.layoutSelection)==="layout_10"?{pagination:{el:".swiper-pagination",type:"bullets",clickable:!0,dynamicBullets:!0,dynamicMainBullets:6}}:void 0,_={Swiper:Ae,modules:[Re,ee,Z,Ne,te],loop:e==null?void 0:e.loop,mousewheel:{forceToAxis:!0},autoplay:void 0,rebuildOnUpdate:!1,shouldSwiperUpdate:!0,resizeObserver:!0,centeredSlides:Je[(e==null?void 0:e.layoutSelection)??"layout_1"],updateOnWindowResize:!0,autoHeight:!0,on:{init:l,slideChange:n,click:s,beforeDestroy:p},...m,navigation:{nextEl:".btn-next",prevEl:".btn-prev"},renderPrevButton:()=>i.jsx(W,{type:"prev"}),renderNextButton:()=>i.jsx(W,{type:"next"})};return o>0&&(_.autoplay={delay:o,pauseOnMouseEnter:!0,stopOnLastSlide:!(e!=null&&e.loop),disableOnInteraction:!1}),{params:_,carouselTitleRef:t}},qt=({itemsLength:e,loop:t,disableRepeat:a,minItemsToClone:o})=>{const[s,n]=c.useState({repeat:0,setRepeated:!1}),l=$({query:"(max-width: 1367px)"}),p=$({query:"(max-width: 1600px)"}),m=$({query:"(max-width: 1920px)"});return c.useEffect(()=>{if(a){n({repeat:0,setRepeated:!0});return}if(e&&e>0){const r={...{tablet:8,desktop:10,desktopXL:12,desktopXXL:16},...o};if(l){const h=r.tablet>=e&&t?Math.round(r.tablet/e):0;n({repeat:h,setRepeated:!0})}else if(p){const h=r.desktop>=e&&t?Math.round(r.desktop/e):0;n({repeat:h,setRepeated:!0})}else if(m){const h=r.desktopXL>=e&&t?Math.round(r.desktopXL/e):0;n({repeat:h,setRepeated:!0})}else{const h=r.desktopXXL>=e&&t?Math.round(r.desktopXXL/e):0;n({repeat:h,setRepeated:!0})}}},[e,l,p,m]),{repeatOptions:s}},Gt=({apiUri:e,containerId:t,configuration:a,forceShowCarousel:o})=>{const s=B(),n=A(f=>he.promoCasinoItems(f,t)),l={...a},p=l.layoutSelection==="layout_9",m=c.useMemo(()=>p?n==null?void 0:n.filter(f=>!f.isAccent):n,[n,p]),_=c.useMemo(()=>p?n==null?void 0:n.filter(f=>f.isAccent):void 0,[n,p]);c.useEffect(()=>{s(xe.fetchCasinoSlider({apiUri:e,containerId:t}))},[t]);const{repeatOptions:r}=qt({itemsLength:m==null?void 0:m.length,loop:(a==null?void 0:a.loop)||!1,disableRepeat:l.layoutSelection&&Ze[l.layoutSelection]}),{params:h,carouselTitleRef:g}=Ot({configuration:l});if(!o||w(m))return null;const I=Te("casino-carousel",`casino-carousel--${l.layoutSelection}`,(a==null?void 0:a.layoutSelection)==="layout_4"&&"casino-carousel--home-page");
216return m!=null&&m.length?i.jsxs("div",{id:"casino-carousel",className:I,children:[(l==null?void 0:l.showTitle)&&(l==null?void 0:l.staticTitle)&&i.jsx(re,{ref:g,$sliderLayout:l.layoutSelection??"layout_1"}),!w(_)&&i.jsx(Dt,{configuration:l,items:_}),i.jsx(ye,{slidesPerView:"auto",...h,children:r.setRepeated&&Ke(r.repeat,m).map((f,v)=>i.jsx(Et,{banner:f,casinoSliderConfig:l},`slide${v}_`))})]}):i.jsx(i.Fragment,{})},Ft=c.memo(Gt),Wt=({items:e})=>w(e)?null:i.jsx("div",{className:"gp-tc__items d-flex-center",children:e.map((t,a)=>i.jsxs("div",{className:"gp-tc__item d-flex-center",children:[i.jsx("div",{className:"gp-tc__item-title",children:t.title}),i.jsx("div",{className:"gp-tc__item-points  d-flex-center",children:t.points})]},a))}),Ht=({logo:e})=>{const t=c.useRef(null),{url:a}=C({image:`/${e}`,ref:t,fit:"contain",preload:!1});return w(e)?null:i.jsx("div",{className:"gp-tc__logo",style:{background:`url(${a}) center / contain no-repeat`},ref:t})},Ut=({apiUrl:e})=>{var m,_,r,h;const t=A(_e.item),a=c.useRef(null),o=B(),s=$({query:"(min-width: 800px)"}),n=$({query:"(min-width: 1440px)"});c.useEffect(()=>{e&&o(ge.getBackgroundContainer({url:e}))},[o,e]),c.useEffect(()=>()=>{o($e())},[o]);const{isAuthenticated:l}=we(),{url:p}=C({image:w(t)?"":`/${n?(m=t==null?void 0:t.background)==null?void 0:m.desktop:s&&((_=t==null?void 0:t.background)!=null&&_.tablet)?(r=t==null?void 0:t.background)==null?void 0:r.tablet:(h=t==null?void 0:t.background)==null?void 0:h.mobile}`,ref:a,fit:"contain",update:s||n,preload:!1,isDesktop:s});return w(t)?null:i.jsx("div",{className:"wh-100 gp-tc d-flex-center",ref:a,style:{background:`url(${p}) center  / cover no-repeat`},children:i.jsxs("div",{className:"w-100 gp-tc__wrapper",children:[i.jsx(Ht,{logo:t.logo}),i.jsxs("div",{className:"gp-tc__info",children:[i.jsx(R.Center,{children:i.jsx(Be,{expire:!0,text:t.title,date:new Date(t.date).getTime(),componentLocation:"counterPromotion",sizeTitle:"large"})}),l&&i.jsx(Wt,{items:t.items})]})]})})},Xt=c.lazy(()=>Le(()=>import("./Lotto-BuFAT7YM-1789482018450.js"),__vite__mapDeps([0,1,2,3,4,5,6,7]),import.meta.url)),Qt={[fe.PROMO_LOTTO]:i.jsx(Xt,{})},Vt=({containerSubType:e})=>{const t=Qt[e];return i.jsx(c.Suspense,{fallback:null,children:t||null})},Yt=({imageRef:e,backgroundFrame:t,backgroundDeviceImages:a})=>{const o=$({query:`(min-width: ${x.isDesktop}px)`}),s=$({query:`(min-width: ${x.isMobile}px) and (max-width: ${x.isTabletOrMobile}px)`}),n=$({query:`(max-width: ${x.isMobile}px)`}),l=$({query:"(orientation: landscape)"}),[p,m]=c.useState(""),[_,r]=c.useState();return c.useLayoutEffect(()=>{var I,f;const h=(I=e.current)==null?void 0:I.clientWidth,g=(f=e.current)==null?void 0:f.clientHeight;if(a&&h&&g){const v=a==null?void 0:a.desktop,N=a==null?void 0:a.tablet,S=a==null?void 0:a.mobile,T=(o||s&&l||n&&l)&&v?`${k.CDN_IMAGE_API}${j(h,g,"contain")}/${v}`:s&&(N||v)?`${k.CDN_IMAGE_API}${j(h,g,"cover")}/${N??v}`:n&&S?`${k.CDN_IMAGE_API}${j(h*2,g*2,"cover")}/${S}`:"";m(T)}if(t){const v=t?o?`${k.CDN_IMAGE_API}${j(838,523,"contain")}/${t}`:`${k.CDN_IMAGE_API}${j(672,420,"cover")}/${t}`:void 0;r(v)}},[e,o,s,n,l]),{backgroundImg:p,frame:_}},Jt=({externalUrl:e,backgroundFrame:t,backgroundDeviceImages:a})=>{const o=c.useRef(null),{backgroundImg:s,frame:n}=Yt({imageRef:o,backgroundFrame:t,backgroundDeviceImages:a}),[l,p]=c.useState(!1),m=()=>{p(!0)},{isImageLoaded:_}=be(s,m,0);if(!e)return null;const r=!w(a)||_||l;return i.jsx(Kt,{ref:o,$background:s,$isReady:r,children:i.jsxs(Zt,{children:[i.jsx(ea,{children:i.jsx(Pe,{url:e,width:"100%",height:"100%",controls:!1,config:{youtube:{playerVars:{showinfo:0,controls:0,enablejsapi:1,modestbranding:1}},file:{attributes:{controls:0,disablekb:0,fs:1}}}})}),t&&i.jsx(ta,{$background:n})]})})},Kt=b.div`
217  ${({$isReady:e})=>!e&&"opacity: 0"};
218  max-height: 261px;
219  background: ${({$background:e})=>`url(${e})`};
220  height: 100%;
221  background-size: cover;
222  background-repeat: no-repeat;
223  padding: 26px 0;
224  background-position: center bottom;
225  flex-shrink: 0;
226  @media screen and (min-width: 900px) {
227    padding: 39px 0;
228    max-height: 600px;
229  }
230`,Zt=b.div`
231  height: 100%;
232  width: 100%;
233  max-width: 336px;
234  max-height: 210px;
235  @media screen and (min-width: 900px) {
236    max-width: 808px;
237    max-height: 504px;
238  }
239  @media screen and (min-width: 1200px) {
240    max-width: 838px;
241    max-height: 523px;
242  }
243  aspect-ratio: 16 / 9;
244  position: relative;
245  margin: auto;
246`,ea=b.div`
247  width: 100%;
248  height: 100%;
249  padding: 24px 9px 7px 9px;
250  @media screen and (min-width: 900px) {
251    padding: 63px 21px 13px 22px;
252  }
253`,ta=b.div`
254  background: ${({$background:e})=>`url(${e})`};
255  width: 100%;
256  height: 100%;
257  background-size: contain;
258  background-repeat: no-repeat;
259  position: absolute;
260  user-select: none;
261  touch-action: none;
262  top: 0;
263  left: 0;
264  pointer-events: none;
265`,aa={promo({verticalId:e,verticalRoute:t,backgroundColor:a,backgroundImage:o,isInnerPage:s}){return i.jsx(Oe,{verticalId:e,verticalRoute:t,backgroundColor:a,isInnerPage:s,backgroundImage:o})},videoPlayer({externalUrl:e,backgroundFrame:t,backgroundDeviceImages:a}){return i.jsx(Jt,{externalUrl:e,backgroundFrame:t,backgroundDeviceImages:a})},adventCalendar({apiUri:e}){return i.jsx(Ve,{apiUrl:e??""})},tournamentTombola({apiUri:e}){return i.jsx(Ut,{apiUrl:e})},slider({apiUri:e,containerId:t,containerConfigurations:a}){return e&&t&&i.jsx(Ft,{apiUri:e,containerId:t,configuration:a,forceShowCarousel:!0})},promoGames({apiUri:e,containerId:t}){return e&&t&&i.jsx(De,{apiUrl:e})},wrapper({containerId:e,containerSubType:t}){return e&&i.jsx(Vt,{containerSubType:t})}},oa=({isInnerPage:e})=>{const{pathname:t}=Me(),a=A(s=>ke(s,t)),o=a!=null&&a.containers?ve([...a.containers],"ranking"):[];return w(o)||!a?null:i.jsx(R.Col,{className:"wh-100 position-relative",children:o==null?void 0:o.map(s=>{const n=aa[s.type];return n?i.jsx(n,{verticalId:a==null?void 0:a.id,verticalRoute:a==null?void 0:a.route,externalUrl:s.externalUrl,backgroundColor:a==null?void 0:a.backgroundColor,backgroundImage:a==null?void 0:a.backgroundImage,apiUri:s==null?void 0:s.apiUri,containerId:s.id,containerSubType:s.subType,containerConfigurations:s.containerConfigurations,backgroundFrame:s==null?void 0:s.backgroundFrame,backgroundDeviceImages:s==null?void 0:s.backgroundPerDevice,isInnerPage:e},s.id):null})})},ua=oa;export{ua as G};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.