1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1888],{34010:function(e,t,n){"use strict";n.d(t,{Z:function(){return H}});var l,r,i,a,s,o,c,d,u=n(52322),m=n(2784),h=n(25237),v=n.n(h),p=n(63602),f=n(98123),b=n(43669),x=n(64622),g=n(53472),_=["title","titleId"];function y(){return(y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var l in n)({}).hasOwnProperty.call(n,l)&&(e[l]=n[l])}return e}).apply(null,arguments)}var j=(0,m.forwardRef)(function(e,t){var n=e.title,u=e.titleId,h=function(e,t){if(null==e)return{};var n,l,r=function(e,t){if(null==e)return{};var n={};for(var l in e)if(({}).hasOwnProperty.call(e,l)){if(-1!==t.indexOf(l))continue;n[l]=e[l]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(l=0;l<i.length;l++)n=i[l],-1===t.indexOf(n)&&({}).propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,_);return m.createElement("svg",y({width:115,height:25,viewBox:"0 0 115 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":u},h),n?m.createElement("title",{id:u},n):null,l||(l=m.createElement("path",{d:"M38.3436 19.9274V4.53621H32.761V0.884019H47.9289V4.53621H42.3463V19.9274H38.3436Z",fill:"#0EE06E"})),r||(r=m.createElement("path",{d:"M47.297 19.9274V6.10141H50.9835V8.29264C51.8526 6.44057 52.9849 6.10141 54.1962 6.10141H55.6183V9.80567H54.407C52.6691 9.80567 51.1153 10.797 51.1153 13.8231V19.9274H47.297Z",fill:"#0EE06E"})),i||(i=m.createElement("path",{d:"M57.3563 14.8665V6.10141H61.1745V14.0057C61.1745 15.6231 61.9644 16.8231 63.5971 16.8231C65.1771 16.8231 66.1777 15.6231 66.1777 14.0318V6.10141H69.996V19.9274H66.3621V18.1796C65.4405 19.5622 64.0711 20.2405 62.333 20.2405C59.2784 20.2405 57.3563 18.1535 57.3563 14.8665Z",fill:"#0EE06E"})),a||(a=m.createElement("path",{d:"M71.6291 16.0404L74.947 15.2839C75.105 16.3535 75.9741 17.1621 77.6328 17.1621C78.9234 17.1621 79.6344 16.6404 79.6344 15.9882C79.6344 15.4666 79.3447 15.0752 78.0278 14.7883L75.8423 14.3188C73.0511 13.7187 71.8661 12.4405 71.8661 10.1187C71.8661 7.74489 73.8411 5.84053 77.5539 5.84053C81.5039 5.84053 83.0841 8.1884 83.2421 9.7274L79.8976 10.4579C79.7396 9.64914 79.1339 8.76223 77.4749 8.76223C76.4218 8.76223 75.6317 9.23183 75.6317 9.91002C75.6317 10.484 76.0267 10.797 76.7113 10.9536L79.8976 11.6839C82.3203 12.2317 83.4525 13.6666 83.4525 15.7014C83.4525 17.8926 81.6883 20.1883 77.6593 20.1883C73.2355 20.1883 71.7871 17.5534 71.6291 16.0404Z",fill:"#0EE06E"})),s||(s=m.createElement("path",{d:"M90.7998 19.9274C88.3244 19.9274 86.6655 18.5709 86.6655 15.8839V9.41445H84.3219V6.10141H86.6655V3.02318L90.4837 1.92757V6.10141H93.3013V9.41445H90.4837V15.2057C90.4837 16.2231 91.0103 16.6144 92.0373 16.6144H93.5119V19.9274H90.7998Z",fill:"#0EE06E"})),o||(o=m.createElement("path",{d:"M95.5927 19.9274V0.884019H99.4109V19.9274H95.5927Z",fill:"#0EE06E"})),c||(c=m.createElement("path",{d:"M110.919 6.10142H115L109.181 24.8838H105.098L106.705 19.9274H104.598L100.754 6.10142H104.835L107.706 16.797L110.919 6.10142Z",fill:"#0EE06E"})),d||(d=m.createElement("path",{d:"M0 9.22203H8.96253V2.13946L16.112 9.22203L8.96253 16.3035V19.9275H17.6409V9.22203H25.6133V0.883789H0V9.22203Z",fill:"#0EE06E"})))}),C=n(16237),w=n(83649);let E=v()(()=>Promise.all([n.e(1324),n.e(5592),n.e(901)]).then(n.bind(n,65592)),{loadableGenerated:{webpack:()=>[65592]},ssr:!1}),N=v()(()=>n.e(906).then(n.bind(n,70906)),{loadableGenerated:{webpack:()=>[70906]},ssr:!1});function H(e){let{initiator:t,onClose:n}=e,[l,r]=(0,m.useState)(!1),{t:i}=(0,f.$G)(["lexicons"]),{defaultData:a,publicConfig:s}=(0,x.useBrandConfig)(),{isLoggingIn:o,openTrustlyPopup:c}=(0,g.H)({initiator:t,onSuccess:n}),d=e=>{r(!0),e()},h=async e=>{c(e.Amount)},v=(e,t)=>
1{t("Amount",e)};return o?(0,u.jsx)(w.default,{publicConfigUrl:s}):(0,u.jsx)(p.J9,{initialValues:{...new b.Z({Amount:"20",minMessage:i("cashier_amount_min"),maxMessage:i("cashier_amount_max"),minDeposit:20,maxDeposit:5e3})},onSubmit:h,validationSchema:b.Z.schema,children:e=>{let{values:t,errors:n,handleChange:s,handleSubmit:o,isSubmitting:c,setFieldValue:m}=e;return(0,u.jsxs)("div",{className:"modal-form__body loginWrapper trustlyLoginWrapper trustlyBanner",children:[(0,u.jsx)("div",{className:"modal-form__header",children:(0,u.jsx)("div",{className:"modal-form__title trustlyTitle",children:i("start_first_deposit")})}),(0,u.jsx)("div",{className:"trustlySubtitle",children:i("trustlypnp_deposit_code")}),(0,u.jsx)("div",{className:"form__column trustlyDepositAmountStep",children:(0,u.jsx)(E,{type:"amount",amountData:["20","50","100","500"],placeholder:"".concat(null==a?void 0:a.currencySymbol,"0"),value:t.Amount,onHandleTextChange:e=>s("Amount")(e),error:i(n.Amount),isSetError:l,onFocus:()=>l&&r(!1),maxLength:6,isForm1First:!1,onAmount:e=>v(e,m)})}),(0,u.jsx)("div",{className:"modal-form__button m__b--1",children:(0,u.jsx)(N,{className:"btn trustlyBtn",onClick:()=>Number(t.Amount)>=20?d(o):r(!0),type:"button",isLoading:c,disabled:c,children:i("depositNow")})}),(0,u.jsx)("div",{className:"modal-form__button m__b--1",children:(0,u.jsx)(j,{})}),(0,u.jsx)("div",{className:"modal-form__textBodyBottom trustlyDisclaimer m__b--4",children:(0,u.jsx)(C.default,{text:"trustlypnp_terms_and_conditions"})})]})}})}},61888:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return N}});var l=n(52322),r=n(2784),i=n(98123),a=n(5632),s=n.n(a),o=n(97125),c=n(32042),d=n(87402),u=n(99511),m=n(38991);let h=e=>{let{promotion:t,publicConfigUrl:n,...r}=e,{background:i}=(0,m.o)({promotion:t,defaultFolder:n.promotionPageImagesFolder});return(0,l.jsxs)(l.Fragment,{children:[i&&(0,l.jsx)("div",{style:{backgroundImage:"url(".concat(i,")")},...r,children:r.children}),!i&&(0,l.jsx)("div",{...r,children:r.children})]})};var v=n(21723),p=n(51833),f=n(86275),b=n(37289),x=n(64622),g=n(74284),_=n(34010),y=n(66976),j=n(51286),C=n(91823),w=n(71292);let E=e=>{var t;let{publicConfigUrl:n}=e,[a,m]=(0,r.useState)([]),[E,N]=(0,r.useState)(0),[H,I]=(0,r.useState)(0),L=(0,r.useRef)(0),{promotions:P,isLoading:V}=(0,c.z)({showHtml:!1,publicConfigUrl:n}),{gameSubProviders:A}=(0,y.fn)({includeProviders:!0}),{t:k}=(0,i.$G)(["lexicons"]),{player:S}=(0,o.A)({}),{config:Z,defaultData:T,labelName:M}=(0,x.useBrandConfig)(),{tenantId:D}=(0,C.a)(M),{ua:F}=(0,v.e)(),{showAuth:R}=(0,f.useAuthContext)();(0,r.useEffect)(()=>{var e;let t=P&&Array.isArray(P)?P:[];I((null===(e=null==t?void 0:t.filter(e=>e.showInLobby))||void 0===e?void 0:e.length)-1),m(t)},[P]);let{isAllowed:O,handleIsNotAllowed:G}=(0,d.ZP)(),B=e=>{if(O){if(null==S?void 0:S.PlayerId){if(null==e?void 0:e.IsGameLink){let t=["".concat(y.bI,"/api/Game/Games"),{gameId:Number(null==e?void 0:e.Link),countryId:(null==S?void 0:S.CountryId)||(null==T?void 0:T.countryId),playerId:null==S?void 0:S.PlayerId,whiteLabelId:null==T?void 0:T.whiteLabelId,Page:1,PageSize:1e4,isLobby:!0,"x-tenantid":D}];(0,j.JG)(t,()=>(0,w.Z)(t[0],t[1]),{revalidate:!1}).then(e=>{var t,n,l;let r=null==e?void 0:null===(t=e.Data)||void 0===t?void 0:null===(n=t.Games)||void 0===n?void 0:n.pop();r&&(0,p.rH)({whiteLabelName:null==Z?void 0:Z.Name.toLowerCase(),providerName:null===(l=null==A?void 0:A.find(e=>(null==e?void 0:e.id)==(null==r?void 0:r.SubProviderID)))||void 0===l?void 0:l.name,isDemo:!1,game:r})})}else s().push(null==e?void 0:e.Link).catch()}else{var t;(null==window?void 0:null===(t=window.localStorage)||void 0===t?void 0:t.getItem("".concat(null==Z?void 0:Z.Name.toLowerCase(),"-login")))?R(b.PopupKeys.login):R(b.PopupKeys.registration)}}else G()},U=(0,r.useRef)(null),W=e=>{let t=U.current;t&&N("prev"===e?0===E?H:E-1:E===H?0:E+1)},Q=e=>{L.current=e.changedTouches[0].clientX},X=e=>{let t=e.changedTouches[0].clientX;Math.abs(t-L.current)>10&&(t>L.current?W("prev"):W("next"))};(0,r.useEffect)(()=>{if((null==a?void 0:a.length)>0){let e=setInterval(()=>{W("next")},1e4);return()=>clearInterval(e)}},[a,W]);let $=(0,r.useMemo)(()=>(0,l.jsx)("div",{className:"carousel__homepage-hero-promotions",ref:U,children:null==a?void 0:a.map(e=>{var t;return(0,l.jsxs)("div",{className:"carousel__container",style:{transform:"translateX(calc(".concat(E," * -100% - ").concat(E," * 20px))")},onTouchStart:Q,onTouchEnd:X,children:[(0,l.jsx)(h,{className:"carousel-buner__item",promotion:e,publicConfigUrl:n,children:(0,l.jsxs)("div",{className:"carousel-buner__item-bg",children:[(0,l.jsxs)("div",{className:"carousel-buner__item-typography",children:[(0,l.jsx)("h2",{className:"carousel-buner__title",dangerouslySetInnerHTML:{__html:null==e?void 0:e.title}}
1),(0,l.jsx)("p",{className:"carousel-buner__sub-title",dangerouslySetInnerHTML:{__html:null==e?void 0:e.subTitle}}),(0,l.jsx)("div",{className:"carousel-buner__buttons",children:null==e?void 0:null===(t=e.promotionContentCTAs)||void 0===t?void 0:t.map(e=>e.IsActive&&(0,l.jsx)("button",{className:"btn btn-light","data-testid":"btn__PromotionsCarousel-cta--".concat(e.Id),onClick:()=>B(e),children:k(e.DisplayText)},e.Id))})]}),(0,l.jsx)("div",{style:{display:"flex",justifyContent:"center"},children:(0,l.jsx)("a",{href:"/promotions?code=".concat(e.code),className:"carousel-buner__item-img",children:(0,l.jsx)(u.Z,{promotion:e,publicConfigUrl:n,characterPromotionImg:!1})})})]})}),(0,l.jsx)("div",{className:"carousel-buner__disclaimer promotions-buner__disclaimer",children:(0,l.jsxs)("p",{children:[(0,l.jsx)("span",{dangerouslySetInnerHTML:{__html:(null==e?void 0:e.disclaimer)||""}}),"\xa0",(null==e?void 0:e.disclaimer)&&(null==e?void 0:e.disclaimer)!=""&&(0,l.jsx)("a",{href:"/promotions?code=".concat(e.code),className:"",style:{cursor:"pointer"},children:k("termsApply")})]})})]},"".concat(null==e?void 0:e.orderIndex,"_").concat(null==e?void 0:e.title,"_").concat(null==e?void 0:e.subTitle))})}),[a,E]),q=(null==Z?void 0:null===(t=Z.WhiteLabelParams)||void 0===t?void 0:t.ShowTrustlyPnPForLoginRegistration)&&(null==T?void 0:T.countryId)===g.t3.finland&&(null==S?void 0:S.PlayerId)===0;return(0,l.jsx)("div",{className:"home-slider pp-PromotionsCarousel".concat(q?"__TrustlyPnP":"","--component"),children:q?(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)("div",{className:"TrustlyQuickReg__container",children:[(0,l.jsx)("div",{className:"TrustlyQuickReg__LeftContainer",children:(0,l.jsx)(_.Z,{initiator:"banner"})}),(0,l.jsx)("div",{className:"TrustlyQuickReg__RightContainer",children:(0,l.jsx)("img",{src:"https://data.progressplay.net/content/site_images/TrustlyPnP/c5f89841bbbb30cf6f90630575c8f022.webp?v=1",alt:"TrustlyCharacterImage"})})]})}):(0,l.jsxs)(l.Fragment,{children:[F.isDesktop&&(0,l.jsxs)(l.Fragment,{children:[(null==a?void 0:a.length)>1&&(0,l.jsx)("div",{className:"btn-circle btn-arrow promo-carousel-prev-button","data-testid":"btn__PromotionsCarousel-prev",onClick:()=>W("prev"),children:(0,l.jsx)("i",{className:"fa-solid fa-angle-left"})}),(null==a?void 0:a.length)>1&&(0,l.jsx)("div",{className:"btn-circle btn-arrow promo-carousel-next-button","data-testid":"btn__PromotionsCarousel-next",onClick:()=>W("next"),children:(0,l.jsx)("i",{className:"fa-solid fa-angle-right"})})]}),(null==a?void 0:a.length)>0&&Array.isArray(a)&&!V?(0,l.jsx)("div",{className:"carousel carousel-buner",children:$}):(0,l.jsx)(l.Fragment,{children:V?(0,l.jsxs)("div",{style:{display:"flex",flexDirection:"column"},children:[(0,l.jsx)("div",{className:"skeleton container"}),(0,l.jsx)("div",{style:{height:"20px"}})]}):null})]})})};var N=E},99511:function(e,t,n){"use strict";var l=n(52322),r=n(38991),i=n(83078),a=n.n(i),s=n(25237),o=n.n(s);let c=o()(()=>n.e(6688).then(n.bind(n,66688)),{loadableGenerated:{webpack:()=>[66688]},ssr:!1}),d=e=>{let{promotion:t,publicConfigUrl:n,width:i,height:s}=e,{character:o}=(0,r.o)({promotion:t,defaultFolder:n.promotionPageImagesFolder});return(0,l.jsx)(c,{src:o,width:i||460,height:s||373,alt:(null==t?void 0:t.title)||"",objectFit:"contain",objectPosition:"center bottom",className:a().img})};t.Z=d},38991:function(e,t,n){"use strict";n.d(t,{o:function(){return l}});let l=e=>{let{promotion:t,defaultFolder:n=""}=e,{imageCode:l,imageDomain:r}=t;return{background:"".concat(r||n,"background/").concat(l,".webp"),character:"".concat(r||n,"characters/").concat(l,".webp"),folder:"".concat(r||n)}}},43669:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var l=n(24511),r=n(11768);class i extends r.Z{constructor(e){super(),this.Amount="",this.DepositCode="",this.SettlementCompanyId=0,this.UserAgent="",this.width=window.innerWidth,this.height=window.innerHeight,this.minDeposit="",this.maxDeposit="",this.minMessage="",this.maxMessage="",Object.assign(this,e)}}i.schema=l.Ry({Amount:l.Z_().matches(/^\d+$/,"Amount should be a number").test({name:"Amount",test:function(){let{minDeposit:e=0,maxDeposit:t=0,Amount:n=0,minMessage:l="",maxMessage:r=""}=this.parent;return!n||n<e?this.createError({message:l}):!(n>t)||this.createError({message:r})}}).required("Amount is required field"),SettlementCompanyId:l.Rx(),DepositCode:l.Z_(),UserAgent:l.Z_(),minDeposit:l.Rx(),minMessage:l.Z_(),maxDeposit:l.Rx(),maxMessage:l.Z_(),width:l.Rx(),height:l.Rx()}).noUnknown()},83078:function(e){e.exports={img:"character_img__ela10"}}}]);
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.