1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4953,8786],{7470:(e,t,o)=>{o.d(t,{A:()=>n});let n={src:"/_next/static/media/warning.257facc5.png",height:90,width:108,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAHCAMAAAACh/xsAAAAOVBMVEVMaXH6wn3vo005HACjXwZ2OwC7YwD0hAaKTQlwOgzDbw9SLAwAABgAABf0nTL/1pr5iAv9ixJvOw4kd64nAAAADnRSTlMA/P4svmTe/pP2834VFujLjusAAAAJcEhZcwAACxMAAAsTAQCanBgAAAA4SURBVHicHcVHEsAgDACxpdqGxJT/P5YBXQSQM09xL/e/jlE/QCUEUUhtxjhbQpe4y1L6NjPb/QAj7AGKpk0qvgAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:7}},17656:(e,t,o)=>{o.d(t,{A:()=>i,E:()=>r});var n=o(65641);let r=(0,n.y$)(!1,{sid:"9220gx9w",name:"$isPromoCodeModalOpen"}),i=(0,n.lh)({sid:"39r9jzn7",name:"setIsPromoCodeModalOpen"});r.on(i,(e,t)=>t)},28173:(e,t,o)=>{o.d(t,{W:()=>n});let n="Promocode type does not match activation method"},42504:(e,t,o)=>{o.d(t,{H:()=>a});var n=o(29037),r=o(97186),i=o(90663),l=o(23825),s=o(3934);let a=(e,t)=>{let o=(0,l.e3)(n.xX),a=(0,s.useMemo)(()=>o.filter(t=>null==e?void 0:e.categoryIds.includes(t.id)).map(e=>e.visibleName).join(", "),[o,e]),d=(0,s.useMemo)(()=>e?e.type===r.DOV.SpinCount?"Make ".concat(e.taskRate.value," spins"):e.type===r.DOV.SpinSum?"Make spins for ".concat(t).concat(e.taskRate.value):"Mission":"Mission",[e,t]),c=(0,s.useMemo)(()=>e?e.type===r.DOV.SpinCount?"You need to make ".concat(e.taskRate.value," spins in the ").concat(a," categor").concat(a.length>1?"ies":"y"," of games."):e.type===r.DOV.SpinSum?"You need to make spins for ".concat(i.yR[t||"EUR"]).concat(e.taskRate.value," in the ").concat(a," categor").concat(a.length>1?"ies":"y"," of games."):"Mission":"Mission",[e,a,t]),p=(0,s.useMemo)(()=>{var o,n;if(!e)return"Mission";let r=c;return(null==(n=e.spinParams)||null==(o=n[0])?void 0:o.minBet)&&(r+="\nMin bet ".concat(t).concat(e.spinParams[0].minBet," on Cash wallet.")),r},[e,c,t]);return{title:d,text:c,detailedText:p}}},44953:(e,t,o)=>{o.r(t),o.d(t,{Modals:()=>t1});var n=o(47758),r=o(20879),i=o(34144),l=o(69736),s=o(44416),a=o(37193),d=o(61514),c=o(80011),p=o(23825),x=o(60034),u=o(18959),m=o(97790),h=o(78744),g=o(400),f=o(69580),A=o(76356),y=o(3934),v=o(53339),j=o(67458),b=o(84339),w=o(43335),C=o(30122),S=o(45791),k=o(41855),I=o(55141),W=o(54201),M=o(5525);let P=()=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"21",height:"21",fill:"none",viewBox:"0 0 21 21",children:[(0,n.jsxs)("g",{fill:"#fff",clipPath:"url(#clip0_8280_39894)",children:[(0,n.jsx)("path",{d:"M10.5 8.682v3.872h5.382a4.6 4.6 0 0 1-2.01 3.01l3.246 2.518c1.891-1.746 2.982-4.31 2.982-7.355 0-.709-.064-1.39-.182-2.045zm-5.605 3.721-.732.56-2.59 2.019C3.217 18.245 6.59 20.5 10.498 20.5c2.7 0 4.964-.89 6.618-2.418l-3.245-2.518c-.891.6-2.027.963-3.373.963-2.6 0-4.809-1.754-5.6-4.118z"}),(0,n.jsx)("path",{d:"M1.573 6.019A9.9 9.9 0 0 0 .5 10.5c0 1.618.39 3.137 1.073 4.482 0 .01 3.327-2.582 3.327-2.582-.2-.6-.318-1.236-.318-1.9S4.7 9.2 4.9 8.6z"}),(0,n.jsx)("path",{d:"M10.5 4.482c1.472 0 2.781.509 3.827 1.49L17.19 3.11C15.454 1.491 13.2.5 10.5.5 6.59.5 3.217 2.745 1.571 6.018L4.9 8.6c.791-2.364 3-4.118 5.6-4.118"})]}),(0,n.jsx)("defs",{children:(0,n.jsx)("clipPath",{id:"clip0_8280_39894",children:(0,n.jsx)("path",{fill:"#fff",d:"M.5.5h20v20H.5z"})})})]}),R=e=>{let{languageId:t,currencyId:o,validate:r}=e,i=(0,p.e3)(g.f3),l=(0,p.e3)(I.EM),[s,a]=(0,y.useState)(!1),{t:d}=(0,h.Bd)("common"),c=async()=>{if(!(0,W.EC)(l))return void j.me.error({description:d("errors.registrationNotAvailable")});if(!r||await r()){a(!0);try{let{dto:e,postback:n}=(0,M.H)({languageId:t,currencyId:o,fingerprint:i});window.location.href=await k.o.authApi.signInWithGoogle(e,n?{params:n.params}:void 0)}finally{a(!1)}}};return(0,n.jsx)(S.A,{sx:{m:"0 auto",width:"40px",height:"40px"},onClick:c,disabled:s,children:(0,n.jsx)(P,{})})},T=()=>{var e,t;let o=(0,r.A)(),{t:i,i18n:l}=(0,h.Bd)("common"),a=(0,p.e3)(v.df),d=(0,p.e3)(v.gs),c=(0,p.e3)(v.eK),x=(0,p.e3)(g.R6),S=(0,p.e3)(g.f3),k=null!=(t=null==(e=(0,p.e3)(g.kc).find(e=>{var t;return e.code===(null==(t=l.language)?void 0:t.toUpperCase())}))?void 0:e.id)?t:3,{handleSubmit:I,register:W,setValue:M,formState:{errors:P,isSubmitting:T}}=(0,f.mN)({defaultValues:{email:"",password:""}}),z=async e=>{try{await x({...e,email:e.email.toLowerCase(),fingerprint:S}),a.afterSuccessCallback&&a.afterSuccessCallback(),d()}catch(e){if(e instanceof Error){if("Unauthorized"===e.message)return void j.me.error({description:i("errors.incorrectEmailOrPassword")});j.me.error({description:i(e.message)})}}},[E,F]=(0,y.useState)(!1);return(0,n.jsxs)(s.A,{component:"form",onSubmit:I(z),sx:{display:"flex",flexDirection:"column"},children:[(0,n.jsx)(C.h,{children:i("emailAddress")}),(0,n.jsx)(u.A,{...W("email",{required:!0}),error:!!P.email,placeholder:i("enterYourEmailAddress"),sx:{mb:"12px"},InputProps:{endAdornment:(0,n.jsx)(s.A,{sx:{position:"absolute",right:"4px",cursor:"pointer",width:"32px",height:"32px",display:"flex",justifyContent:"center",alignItems:"center"},onClick:()=>{M("email","")}})}}),(0,n.jsx)(C.h,{children:i("password")}),(0,n.jsx)(u.A,{sx:{"& .MuiInputBase-root":{pr:"30px"}},placeholder:i("enterThePassword"),...W("password",{required:!0}),type:E?"text":"password",InputProps:{endAdornment:(0,n.jsx)(s.A,{sx:{position:"absolute",right:"10px",cursor:"pointer",display:"flex",justifyContent:"center",alignItems:"center"},onClick:()=>{F(!E)},children:E?(0,n.jsx)(b.L,{}):(0,n.jsx)(w.k,{})})},error:!!P.password}),(0,n.jsx)(m.A,{variant:"text",onClick:()=>c({type:"forgotPass"}),sx:{color:o.colors.link,textDecoration:"underline",borderRadius:"4px",fontSize:"12px",fontWeight:600,letterSpacing:"none",mt:"12px",mb:"20px",mx:"auto",textTransform:"none",height:"fit-content",width:"fit-content"},children:i("auth.forgotYourPassword")}),(0,n.jsx)(A.l,{sx:{mb:"20px"},loading:T,type:"submit",children:i("login")}),(0,n.jsx)(R,{languageId:k,currencyId:1})]})};var z=o(62991),E=o(77181),F=o(68392),D=o(61577),B=o.n(D),V=o(49773),O=o(18862),H=o(49483),N=o(87634),L=o.n(N),U=o(56423),Y=o(11982),q=o(25221),G=o(95272);let _=()=>{var e,t,o,i,l,a,d,x;let m=(0,r.A)(),{t:S,i18n:P}=(0,h.Bd)("common"),T=(0,p.e3)(I.c_),D=(0,p.e3)(I.EM),N=(0,p.e3)(g.f3),_=(0,p.e3)(v.gs),$=(0,p.e3)(G.H),J=(0,p.e3)(g.aI),Z=(0,p.e3)(g.kc),X=(0,p.e3)(g.Bd),K=(0,p.e3)(g.y8);(0,y.useEffect)(()=>{0===Z.length&&K()},[]);let Q=(0,V.L)(T),ee=null==(e=J.find(e=>e.name===Q))?void 0:e.id,et=null!=(x=null==(t=Z.find(e=>{var t;return e.code===(null==(t=P.language)?void 0:t.toUpperCase())}
1))?void 0:t.id)?x:3,{control:eo,register:en,handleSubmit:er,setValue:ei,getValues:el,trigger:es,clearErrors:ea,formState:{errors:ed,isSubmitting:ec}}=(0,f.mN)({defaultValues:{email:"",password:"",currencyId:ee,languageId:et,emailSubscribed:!0,ageConfirmed:!1},resolver:(0,H.H)(L().object({email:(0,O.Sl)(S),password:(0,O.HX)(S),currencyId:L().number().required(),languageId:L().number(),emailSubscribed:L().boolean(),ageConfirmed:L().boolean().valid(!0).required()}))});(0,y.useEffect)(()=>{ee&&ei("currencyId",ee)},[J,ee,ei]);let ep=async e=>{var t;if(!(0,W.EC)(D))return void j.me.error({description:S("errors.registrationNotAvailable")});let o={...e};delete o.ageConfirmed;let{dto:n,postback:r}=(0,M.E)({formData:o,fingerprint:N,languageId:null!=(t=o.languageId)?t:et});try{await X({dto:n,postback:r}),j.me.warning({description:S("verifyEmail")}),$(!0),_(),await (0,W.mf)(k.o)}catch(t){let{message:e}=(0,W.z0)(t,o.email,S);j.me.error({description:e}),console.log("Register error:",t)}},[ex,eu,em]=(0,f.FH)({control:eo,name:["currencyId","emailSubscribed","ageConfirmed"]}),[eh,eg]=(0,y.useState)(!1);return(0,n.jsxs)(s.A,{display:"flex",flexDirection:"column",component:"form",onSubmit:er(ep),children:[(0,n.jsx)(C.h,{children:S("emailAddress")}),(0,n.jsx)(u.A,{...en("email"),placeholder:"[email protected]",onChange:e=>{let t=e.target.value.replace(/[^a-zA-Z0-9@._-]/g,"");if(!t){ea("email"),ei("email",t);return}ei("email",t,{shouldValidate:!0})},error:!!ed.email}),(null==(o=ed.email)?void 0:o.message)&&(0,n.jsx)(c.A,{sx:{fontSize:"12px",color:m.palette.error.main},children:null==(i=ed.email)?void 0:i.message}),(0,n.jsx)(C.h,{sx:{mt:ed.email?0:"12px"},children:S("password")}),(0,n.jsx)(u.A,{...en("password"),error:!!ed.password,sx:{"& .MuiInputBase-root":{pr:"30px"}},placeholder:S("enterThePassword"),type:eh?"text":"password",InputProps:{endAdornment:(0,n.jsx)(s.A,{sx:{position:"absolute",right:"10px",cursor:"pointer",display:"flex",justifyContent:"center",alignItems:"center"},onClick:()=>{eg(!eh)},children:eh?(0,n.jsx)(b.L,{}):(0,n.jsx)(w.k,{})})}}),(null==(l=ed.password)?void 0:l.message)&&(0,n.jsx)(c.A,{sx:{fontSize:"12px",mb:"12px",color:m.palette.error.main},children:null==(a=ed.password)?void 0:a.message}),(0,n.jsx)(z.A,{disabled:0===J.length,sx:{mt:(null==(d=ed.password)?void 0:d.message)?0:"12px"},MenuProps:{PaperProps:{sx:{backgroundColor:m.colors.color400,p:"5px 3px"}}},...en("currencyId"),onChange:e=>{ei("currencyId",Number(e.target.value))},value:ex,error:!!ed.currencyId,children:J.map(e=>{let t=q.yR[e.name];return(0,n.jsx)(E.A,{sx:{width:"calc(100% - 8px)",borderRadius:"24px",minHeight:"40px !important",py:"5px",mx:"4px",mt:"4px","&:last-child":{mb:"4px"},backgroundColor:e.id===ex?m.colors.primary500:m.colors.opacity222,"&.Mui-selected":{backgroundColor:"".concat(m.colors.primary500," !important")}},value:e.id,children:(0,n.jsxs)(s.A,{sx:{display:"flex",alignItems:"center"},children:[(0,n.jsx)(c.A,{sx:{width:"32px",fontSize:"20px",mr:"7px",fontWeight:800,textTransform:"none",color:m.colors.secondary500},children:t}),e.name]})},"".concat(e.id,"_currency"))})},ex),(0,n.jsxs)(s.A,{sx:{display:"flex",alignItems:"center",mt:"20px",cursor:"pointer"},onClick:()=>{ei("emailSubscribed",!el("emailSubscribed"))},children:[(0,n.jsx)(F.A,{icon:(0,n.jsx)(U.R,{}),checkedIcon:(0,n.jsx)(Y.S,{}),checked:!!eu,size:"small"}),(0,n.jsx)(c.A,{fontSize:"12px",lineHeight:1,children:S("auth.receiveInformation")})]}),(0,n.jsxs)(s.A,{sx:{display:"flex",alignItems:"center",mt:"10px",cursor:"pointer"},onClick:()=>{ei("ageConfirmed",!em),es("ageConfirmed")},children:[(0,n.jsx)(F.A,{icon:(0,n.jsx)(U.R,{color:ed.ageConfirmed?m.colors.error:void 0}),checkedIcon:(0,n.jsx)(Y.S,{}),checked:em,size:"small"}),(0,n.jsx)(c.A,{fontSize:"12px",lineHeight:1,sx:{color:ed.ageConfirmed?m.colors.error:""},children:(0,n.jsx)(h.x6,{i18nKey:"auth.ageApproval",ns:"common",components:{1:(0,n.jsx)(B(),{href:"/terms",onClick:()=>{_()}})}})})]}),(0,n.jsx)(A.l,{sx:{my:"20px"},onClick:er(ep),loading:ec,disabled:!em,children:S("auth.register")}),(0,n.jsx)(R,{languageId:et,currencyId:ex,validate:async()=>(es(["currencyId","ageConfirmed"]),!!em&&!!ex)}),(0,n.jsx)(c.A,{sx:{mt:"15px",fontWeight:600,fontSize:"12px",color:m.colors.text3},children:(0,n.jsx)(h.x6,{i18nKey:"auth.termsAndConditions",ns:"common",components:{1:(0,n.jsx)(B(),{target:"_blank",href:"/terms",onClick:()=>{_()},style:{color:m.colors.link}}),2:(0,n.jsx)(B(),{target:"_blank",href:"/privacy",onClick:()=>{_()},style:{color:m.colors.link}})}})})]})};var $=o(20637);let J=()=>{var e,t;let{t:o}=(0,h.Bd)("common"),i=(0,r.A)(),l=(0,p.e3)(v.eK),a=(0,p.e3)(v.gs),{control:d,register:x,handleSubmit:m,setValue:g,clearErrors:b,formState:{errors:w,isValid:S}}=(0,f.mN)({mode:"onChange",defaultValues:{email:""},resolver:(0,H.H)(L().object({email:(0,O.Sl)(o)}))}),[I]=(0,f.FH)({control:d,name:["email"]}),[W,M]=(0,y.useState)(!1),P=async e=>{try{M(!0);let t=await k.o.authApi.restorePassword(e.email);"ok"===t&&(j.me.success({description:o("checkEmail")}),a())}catch(e){e instanceof Error&&j.me.error({description:e.message})}finally{M(!1)}};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(s.A,{sx:{display:"flex",alignItems:"center",gap:"8px",mb:"20px"},children:[(0,n.jsxs)(s.A,{onClick:()=>l({type:"login"}),sx:{cursor:"pointer",display:"flex",gap:"8px",alignItems:"center","&:hover p":{color:i.colors.text1}},children:[(0,n.jsx)($.m,{}),(0,n.jsx)(c.A,{sx:{fontWeight:700,fontSize:"14px",lineHeight:"114%",maxWidth:"110px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",color:i.colors.text4,transition:"color 0.2s ease-in-out"},children:o("signUp")})]}
1),(0,n.jsxs)(s.A,{sx:{gap:"8px",display:"flex",alignItems:"center"},children:[(0,n.jsx)($.m,{color:i.colors.text1}),(0,n.jsx)(c.A,{sx:{fontWeight:700,fontSize:"14px",lineHeight:"114%",maxWidth:"110px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:o("auth.forgotYourPassword")})]})]}),(0,n.jsx)(c.A,{sx:{fontWeight:800,fontSize:"16px",lineHeight:1,mb:"8px"},children:o("resetPassword")}),(0,n.jsx)(c.A,{sx:{fontWeight:600,fontSize:"14px",color:i.colors.text2,mb:"12px"},children:o("enterEmailAssociated")}),(0,n.jsx)(C.h,{children:o("emailAddress")}),(0,n.jsx)(u.A,{fullWidth:!0,placeholder:o("enterYourEmailAddress"),...x("email"),onChange:e=>{let t=e.target.value.replace(/[^a-zA-Z0-9@._-]/g,"");if(!t){b("email"),g("email",t,{shouldValidate:!0});return}g("email",t,{shouldValidate:!0})},error:!!w.email}),(null==(e=w.email)?void 0:e.message)&&(0,n.jsx)(c.A,{sx:{fontSize:"12px",color:i.palette.error.main},children:null==(t=w.email)?void 0:t.message}),(0,n.jsx)(A.l,{fullWidth:!0,sx:{mt:"20px"},onClick:m(P),loading:W,disabled:!I||!S||W,children:o("sendInstruction")})]})};var Z=o(58261);let X=()=>{let e=(0,r.A)(),{t}=(0,h.Bd)("common"),o=(0,p.e3)(v.df),u=(0,p.e3)(v.gs),m=(0,p.e3)(v.eK),g=(0,i.A)(e.breakpoints.down(768));return(0,n.jsx)(l.A,{open:o.open,onClose:u,BackdropProps:{sx:{backdropFilter:"blur(10px)",backgroundColor:"rgba(0, 0, 0, 0.5)"}},sx:{zIndex:5e3,"& .MuiDialog-paper":{position:"relative",width:"375px",overflow:"visible",...!g&&{borderRadius:"register"===o.type?"0 12px 12px 0":"",transition:"left 0.7s ease",left:"register"===o.type?"180px":"",transform:(o.type,"")}}},children:(0,n.jsxs)(Z.E,{children:[(0,n.jsx)(x.n,{onClick:u}),("login"===o.type||"register"===o.type)&&(0,n.jsx)(s.A,{sx:{width:"100%",mb:"24px"},children:(0,n.jsxs)(a.A,{value:o.type,onChange:(e,t)=>
1{("login"===t||"register"===t)&&m({type:t})},children:[(0,n.jsx)(d.A,{value:"register",label:t("signUp")}),(0,n.jsx)(d.A,{value:"login",label:t("login")})]})}),("login"===o.type||"register"===o.type)&&(0,n.jsx)(c.A,{sx:{fontWeight:600,fontSize:"20px",mb:"20px"},children:(0,n.jsx)(h.x6,{i18nKey:"auth.welcomeToGDFPlay",ns:"common",components:{1:(0,n.jsx)("span",{style:{color:e.colors.secondary500}})}})}),!g&&(0,n.jsxs)(s.A,{sx:{position:"absolute",overflow:"hidden",borderRadius:"12px 0 0 12px",top:0,left:0,height:"100%",width:"347px",background:"linear-gradient(180deg, #c0c 0%, #990080 100%)",transform:"register"===o.type?"translateX(-100%)":"translateX(0)",visibility:"register"===o.type?"visible":"hidden",opacity:+("register"===o.type),transition:"transform 0.3s ease, opacity 0.3s ease"},children:[(0,n.jsx)(s.A,{sx:{position:"absolute",top:"50%",left:0,width:"110%",height:"97%",borderTop:"50px solid transparent",borderBottom:"50px solid transparent",background:"linear-gradient(91deg, #990080 0%, #c0c 100%)",clipPath:"pol
1ygon(0 0, 120% 50%, 0 100%)",transform:"translateY(-50%)",zIndex:1}}),(0,n.jsxs)(s.A,{sx:{width:"100%",px:"10px",textAlign:"center",position:"absolute",zIndex:10,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},children:[(0,n.jsx)(c.A,{sx:{fontSize:"20px",fontWeight:700},children:t("auth.welcomeBonusOffer")}),(0,n.jsx)(c.A,{lineHeight:1.2,sx:{fontSize:"48px",fontWeight:800,color:e.colors.secondary500,textTransform:"uppercase"},children:t("auth.get2000or5")}),(0,n.jsx)(c.A,{sx:{fontSize:"28px",fontWeight:800,textTransform:"uppercase"},children:t("auth.100FreeSpins")})]})]}),"register"===o.type&&(0,n.jsx)(_,{}),"login"===o.type&&(0,n.jsx)(T,{}),"forgotPass"===o.type&&(0,n.jsx)(J,{})]})})};var K=o(46687),Q=o(26258),ee=o.n(Q);let et="cookieConsent";var eo=o(2627),en=o(14527);let er=(0,eo.Ay)(en.A)(()=>({position:"fixed",display:"flex",justifyContent:"center",alignItems:"center",bottom:"24px",zIndex:1800,right:0,left:0,background:"transparent",boxShadow:"none",padding:"0 12px"}));(0,eo.Ay)(s.A)(e=>{let{theme:t}=e;return{width:"100%",background:"linear-gradient(90deg, #3B1D4A 0%, #502250 100%)",border:"1px solid rgba(255, 255, 255, 0.12)",borderRadius:"16px",padding:"16px 24px",display:"flex",alignItems:"center",gap:"20px",boxShadow:"0px 12px 48px rgba(16, 7, 16, 0.55)",[t.breakpoints.down(1024)]:{flexDirection:"column",alignItems:"stretch",gap:"16px",padding:"12px"}}}),(0,eo.Ay)(s.A)(e=>{let{theme:t}=e;return{width:"56px",height:"56px",minWidth:"56px",borderRadius:"12px",background:t.colors.color500,border:"1px solid rgba(255, 255, 255, 0.12)",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:"0px 6px 24px rgba(10, 4, 10, 0.65)"}}),(0,eo.Ay)("img")({width:"38px",height:"38px"}),(0,eo.Ay)(s.A)(e=>{let{theme:t}=e;return{display:"flex",flexDirection:"column",gap:"6px",color:t.colors.text1,flex:1}}),(0,eo.Ay)(c.A)(e=>{let{theme:t}=e;return{fontSize:"16px",fontWeight:600,lineHeight:1.25,color:t.colors.text1}});let ei=(0,eo.Ay)(c.A)(e=>{let{theme:t}=e;return{fontSize:"14px",lineHeight:1.5,color:t.colors.text2,maxWidth:"700px"}});(0,eo.Ay)(B())(e=>{let{theme:t}=e;return{color:t.colors.secondary300,fontWeight:600,textDecoration:"none",borderBottom:"1px solid transparent",transition:"border-color 0.2s ease, color 0.2s ease","&:hover":{borderColor:t.colors.secondary300,color:t.colors.secondary300}}});let el=(0,eo.Ay)(s.A)(e=>{let{theme:t}=e;return{display:"flex",gap:"12px",marginLeft:"auto",justifyContent:"center",alignItems:"center",[t.breakpoints.down(1024)]:{marginLeft:0}}}),es=(0,eo.Ay)(s.A)(e=>{let{theme:t}=e;return{padding:"15px 24px",maxWidth:"1200px",width:"1200px",borderRadius:"12px",border:"1px solid #664766",display:"flex",gap:"16px",alignItems:"center",background:t.colors.color500,[t.breakpoints.down(1024)]:{flexDirection:"column",alignItems:"flex-start",padding:"12px",width:"100%"}}});var ea=o(65641);let ed=(0,ea.y$)(!1,{sid:"d53rg9df",name:"$isCookieConsentModalOpen"}),ec=(0,ea.lh)({sid:"6q3uxau9",name:"setIsCookieConsentModalOpen"});ed.on(ec,(e,t)=>t);var ep=o(85747),ex=o(73080);let eu=()=>{let{t:e}=(0,h.Bd)("common"),t=(0,p.e3)(ed),o=(0,p.e3)(ec),i=(0,r.A)(),l=(0,ex.useRouter)(),s=(0,ep.Zf)(l.pathname);(0,y.useEffect)(()=>{(()=>{try{let e=localStorage.getItem(et);if(!e)return null;return e}catch(e){return null}})()||o(!0)},[o]);let a=(0,y.useCallback)(e=>{(e=>{try{e?localStorage.setItem(et,e):localStorage.removeItem(et)}catch(e){}})(e),o(!1)},[o]);return t?(0,n.jsx)(K.A,{direction:"up",in:!0,mountOnEnter:!0,unmountOnExit:!0,children:(0,n.jsx)(er,{elevation:6,sx:{bottom:s?"80px":"24px",[i.breakpoints.down(q.eS)]:{bottom:"80px"}},children:(0,n.jsxs)(es,{children:[(0,n.jsx)(ee(),{src:"/assets/images/cookie.png",alt:"cookie",width:38,height:38}),(0,n.jsx)(ei,{children:e("cookieConsentModal.description")}),(0,n.jsxs)(el,{children:[(0,n.jsx)(m.A,{color:"secondary",variant:"outlined",onClick:()=>a("denied"),children:e("cookieConsentModal.deny")}),(0,n.jsx)(m.A,{color:"secondary",onClick:()=>a("allowed"),children:e("cookieConsentModal.allow")})]})]})})}):null};var em=o(89120),eh=o(13903);let eg={src:"/_next/static/media/email-confirm.d77798c4.png"},ef=()=>{let{t:e}=(0,h.Bd)("common"),t=(0,r.A)(),o=(0,p.e3)(em.s),i=(0,p.e3)(em.k),a=(0,p.e3)(eh.Yq);return(0,n.jsxs)(l.A,{open:o,onClose:()=>i(!1),BackdropProps:{sx:{backdropFilter:"blur(10px)",backgroundColor:"rgba(0, 0, 0, 0.5)"}},sx:{zIndex:2100,"& .MuiDialog-paper":{overflow:"visible"}},children:[(0,n.jsx)(x.n,{onClick:()=>i(!1)}),(0,n.jsx)(Z.E,{children:(0,n.jsxs)(s.A,{sx:{width:"355px",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",[t.breakpoints.down(768)]:{width:"auto"}}
1,children:[(0,n.jsx)(ee(),{src:eg.src,width:99,height:99,alt:"email-confirm"}),(0,n.jsx)(c.A,{fontSize:"16px",fontWeight:600,mt:"15px",textAlign:"center",children:e("emailVerified")}),(0,n.jsx)(c.A,{fontSize:"14px",fontWeight:"500",mt:"5px",textAlign:"center",children:e("emailVerifiedText")}),(0,n.jsx)(m.A,{fullWidth:!0,sx:{mt:"15px"},onClick:()=>{i(!1),a({})},children:e("goToBonuses")})]})})]})};var eA=o(97269),ey=o(68282),ev=o(85965);let ej=()=>{let{t:e}=(0,h.Bd)("common"),t=(0,r.A)(),o=(0,p.e3)(eA.b),i=(0,p.e3)(eA.f),a=(0,p.e3)(eh.Yq),d=()=>{i(!1),(0,ey.z)(["modal"])};return(0,n.jsxs)(l.A,{open:o,onClose:d,BackdropProps:{sx:{backdropFilter:"blur(10px)",backgroundColor:"rgba(0, 0, 0, 0.5)"}},sx:{zIndex:2100,"& .MuiDialog-paper":{width:"355px",overflow:"visible"}},children:[(0,n.jsx)(x.n,{onClick:d}),(0,n.jsx)(Z.E,{children:(0,n.jsxs)(s.A,{sx:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",[t.breakpoints.down(768)]:{width:"auto"}},children:[(0,n.jsx)(ee(),{src:ev.A.src,width:108,height:85,alt:"failed"}),(0,n.jsx)(c.A,{fontSize:"16px",fontWeight:600,mt:"15px",textAlign:"center",children:e("failedDeposit")}),(0,n.jsx)(c.A,{fontSize:"14px",fontWeight:"500",mt:"5px",textAlign:"center",children:e("failedDepositText")}),(0,n.jsx)(m.A,{fullWidth:!0,onClick:()=>{a({}),d()},color:"success",sx:{mt:"15px"},children:e("deposit")})]})})]})},eb={src:"/_next/static/media/maintenance.b6660063.png"},ew=new Date("2026-07-02T00:00:00Z").getTime(),eC=new Date("2026-07-02T10:00:00Z").getTime(),eS="".concat("gdf","_maintenance_").concat("2026-07-02"),ek=()=>{let e=(0,r.A)(),{t}=(0,h.Bd)("common"),[o,i]=(0,y.useState)(!1);(0,y.useEffect)(()=>{let e=Date.now();e>=ew&&e<eC&&"true"!==localStorage.getItem(eS)&&i(!0)},[]);let a=(0,y.useCallback)(()=>{localStorage.setItem(eS,"true"),i(!1)},[]);return o?(0,n.jsxs)(l.A,{open:o,onClose:a,BackdropProps:{sx:{backdropFilter:"blur(10px)",backgroundColor:"rgba(0,0,0,0.5)"}},sx:{zIndex:5e3,"& .MuiDialog-paper":{width:"355px",overflow:"visible"}},children:[(0,n.jsx)(x.n,{onClick:a}),(0,n.jsxs)(Z.E,{children:[(0,n.jsxs)(s.A,{sx:{display:"flex",gap:"20px",justifyContent:"center",alignItems:"center",[e.breakpoints.down(768)]:{width:"auto"}},children:[(0,n.jsx)(ee(),{src:eb.src,width:63,height:63,alt:"maintenance"}),(0,n.jsxs)(s.A,{children:[(0,n.jsx)(c.A,{sx:{fontSize:"16px",fontWeight:800},children:t("scheduledWorkSite")}),(0,n.jsx)(c.A,{sx:{mt:"5px",fontSize:"14px",fontWeight:500},children:t("plannedMaintenanceMessageMinutes",{DATE:"02.07.2026",TIME:"06:00â10:00 UTC"})})]})]}),(0,n.jsx)(m.A,{fullWidth:!0,onClick:a,color:"inherit",sx:{mt:"20px"},children:t("itClear")})]})]}):null};var eI=o(83655);let eW=()=>{var e,t,o,i,a;let{t:d}=(0,h.Bd)("common"),m=(0,p.e3)(eI.Y2),g=(0,p.e3)(eI.PC),v=(0,ex.useRouter)(),b=(0,r.A)(),{register:w,handleSubmit:S,formState:{errors:I,isValid:W}}=(0,f.mN)({mode:"onChange",defaultValues:{password:"",repeat:""},resolver:(0,H.H)((e=>L().object({password:(0,O.HX)(e),repeat:L().string().valid(L().ref("password")).required().messages({"any.only":e("repeatShouldMatch"),"string.empty":e("repeatShouldMatch")})}))(d))}),[M,P]=(0,y.useState)({password:!1,repeat:!1}),[R,T]=(0,y.useState)(!1),z=async e=>{if("string"==typeof v.query.passwordrestoration)try{T(!0),await k.o.authApi.restorePasswordCommit({password:e.password,token:v.query.passwordrestoration}),j.me.success({description:d("passwordChanged")}),g()}catch(e){e instanceof Error&&j.me.error({description:e.message}),g()}finally{T(!1);let e={...v.query};delete e.passwordrestoration,v.replace({pathname:v.pathname,query:e},void 0,{shallow:!0}).catch(console.error)}};return(0,n.jsxs)(l.A,{open:m,sx:{zIndex:5e3},BackdropProps:{sx:{backdropFilter:"blur(10px)",backgroundColor:"rgba(0, 0, 0, 0.5)"}},PaperProps:{component:"form",onSubmit:S(z),sx:{overflow:"visible",width:"375px",minWidth:"355px"}},children:[(0,n.jsx)(x.n,{onClick:g}),(0,n.jsx)(Z.E,{children:(0,n.jsxs)(s.A,{sx:{display:"flex",flexDirection:"column"},children:[(0,n.jsx)(c.A,{sx:{fontWeight:800,fontSize:"16px",lineHeight:1,mb:"12px"},children:d("setNewPassword")}),(0,n.jsx)(C.h,{children:d("password")}),(0,n.jsx)(u.A,{...w("password"),error:!!I.password,type:M.password?"text":"password",placeholder:d("enterThePassword"),InputProps:{endAdornment:(0,n.jsx)(eM,{name:"password",showStates:M,setShowStates:P})}}),(null==(e=I.password)?void 0:e.message)&&(0,n.jsx)(c.A,{sx:{fontSize:"12px",color:b.palette.error.main},children:null==(t=I.password)?void 0:t.message}),(0,n.jsx)(C.h,{sx:{mt:(null==(o=I.password)?void 0:o.message)?"":"12px"},children:d("repeatPassword")}),(0,n.jsx)(u.A,{...w("repeat"),error:!!I.repeat,type:M.repeat?"text":"password",placeholder:d("enterThePassword"),InputProps:{endAdornment:(0,n.jsx)(eM,{name:"repeat",showStates:M,setShowStates:P})}}),(null==(i=I.repeat)?void 0:i.message)&&(0,n.jsx)(c.A,{sx:{fontSize:"12px",color:b.palette.error.main},children:null==(a=I.repeat)?void 0:a.message}),(0,n.jsx)(A.l,{sx:{mt:"20px"},loading:R,disabled:!W||R,type:"submit",children:d("save")})]})})]})},eM=e=>{let{showStates:t,name:o,setShowStates:r}=e;return(0,n.jsx)(s.A,{sx:{position:"absolute",right:"10px",pt:"4px",zIndex:1,cursor:"pointer"},onClick:()=>{r(e=>({...e,[o]:!e[o]}))},children:t[o]?(0,n.jsx)(b.L,{}):(0,n.jsx)(w.k,{})})};var eP=o(93657),eR=o(44657),eT=o(28173);let ez=()=>{let e=(0,r.A)();return(0,n.jsx)(s.A,{sx:{width:"30px",padding:"4px",aspectRatio:"1",borderRadius:"50%",background:e.colors.primary500,"--_m":"\n conic-gradient(#0000 10%,#000),\n linear-gradient(#000 0 0) content-box\n ",WebkitMask:"var(--_m)",mask:"var(--_m)",WebkitMaskComposite:"source-out",maskComposite:"subtract",animation:"1s linear infinite","@keyframes rotate":{"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}},animationName:"rotate"}})},eE=e=>{var t,o,i;let{isDisabled:l,paymentSystemId:a,payment:d,setValue:p}=e,x=(0,r.A)(),[u,m]=(0,y.useState)(!0),h="view"in d&&(null==(t=d.view)?void 0:t.isPopular),g=Number(a)===d.id;return(0,n.jsxs)(s.A,{sx:{width:"100%",display:"flex",flexDirection:"column",alignItems:"center",cursor:l?"auto":"pointer","&:hover ":{".wrapper":{border:"2px s
1olid ".concat(x.colors.text1)},".title":{color:x.colors.text1}}},onClick:()=>{l||p("paymentSystemId",d.id)},children:[(0,n.jsxs)(s.A,{className:"wrapper",sx:{width:"100%",position:"relative",height:"60px",borderRadius:"12px",overflow:"hidden",p:h?"5px 5px 12px":"5px",background:g?"rgba(178, 114, 178, 0.24)":"",border:Number(a)===d.id?"2px solid ".concat(x.colors.secondary500," !important"):"2px solid ".concat(x.colors.color300),transition:"border 0.3s ease"},children:[u&&(0,n.jsx)(s.A,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:1},children:(0,n.jsx)(ez,{})}),(0,n.jsx)(s.A,{component:"img",src:null==d||null==(i=d.icons)||null==(o=i[0])?void 0:o.icon,onLoad:()=>{m(!1)},alt:d.name,sx:{width:"100%",height:"100%",objectFit:"contain",display:u?"none":"block"}}),h&&(0,n.jsx)(s.A,{sx:{fontSize:"8px",background:"#4A9C13",width:"100%",bottom:0,left:0,color:"#fff",display:"flex",letterSpacing:"1px",textAlign:"center",justifyContent:"center",pt:"1px",position:"absolute",borderBottomLeftRadius:"2px",borderBottomRightRadius:"2px",whiteSpace:"nowrap"},children:"âµ RECOMMENDED â´"})]}),!l&&(0,n.jsx)(c.A,{className:"title",title:d.name,sx:{maxWidth:"110px",fontWeight:600,fontSize:"14px",textAlign:"center",color:g?"".concat(x.colors.secondary500," !important"):x.colors.text3,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",transition:"color 0.3s ease"},children:d.name})]},d.id)},eF=(0,eo.Ay)(A.l)(()=>({marginTop:"12px"})),eD=(0,eo.Ay)(c.A)(()=>({fontWeight:600,fontSize:"16px"})),eB=(0,eo.Ay)(eD)(e=>{let{theme:t}=e;return{fontWeight:600,fontSize:"14px",maxWidth:"346px",marginTop:"5px",color:t.colors.text3}}),eV=(0,eo.Ay)(u.A)(()=>({})),eO=e=>{let{systems:t,paymentSystemId:o,loading:i,hidden:l}=e,a=(0,r.A)(),{t:d}=(0,h.Bd)("common"),x=(0,p.e3)(eh.Mw),{setValue:u}=(0,f.xW)(),m=0===t.length&&!i;return(0,n.jsxs)(s.A,{sx:{background:a.colors.opacity222,p:l?"0":"8px",borderRadius:"12px",display:"grid",gridTemplateColumns:i||m?"1fr":"repeat(3, 1fr)",gap:"8px",visibility:l?"hidden":"visible",height:l?"0px":"auto",overflow:l?"hidden":"visible",[a.breakpoints.between(495,tv)]:{gridTemplateColumns:i||m?"1fr":"repeat(4, 1fr)"}},children:[i?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c.A,{textAlign:"center",width:"100%",fontSize:"14px",fontWeight:600,children:d("paymentForm.checkingMethods")}),(0,n.jsx)(s.A,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:"60px"},children:(0,n.jsx)(ez,{})})]}):t.map(e=>(0,n.jsx)(eE,{payment:e,paymentSystemId:o,setValue:u},"".concat(e.id,"_").concat((null==x?void 0:x.withdraw)?"withdraw":null))),!i&&0===t.length&&(0,n.jsx)(eD,{textAlign:"center",width:"100%",children:d("errors.noDataYet")})]})};var eH=o(45670),eN=o(42739);let eL=e=>{let{bonusConfig:t,currencySymbol:o,tPromotions:n,giftConfigRateMinDepValue:r}=e;return"".concat(n("wager",{ns:"promotions"})," x").concat(null==t?void 0:t.wager," | ").concat(n("minDep",{ns:"promotions"})," ").concat((0,eN.PO)(r,o).minDep)},eU=e=>{let{title:t,bonus:o,conditions:i,isSelected:l,onClick:a}=e,d=(0,r.A)();return(0,n.jsxs)(s.A,{onClick:()=>{a&&a(!l)},sx:{display:"flex",alignItems:"center",cursor:a?"pointer":"auto",border:l?"1px solid ".concat(d.colors.secondary500," !important"):"1px solid transparent",borderRadius:"12px",background:l?"rgba(178, 114, 178, 0.40) !important":"rgba(178, 114, 178, 0.24)",p:"8px",gap:"8px",transition:"all 0.3s ease","&:hover":{border:"1px solid ".concat(d.colors.text1," ")}},children:[(0,n.jsx)(s.A,{sx:{background:"url(/assets/images/gift.png) no-repeat center center",height:"40px",width:"40px",backgroundSize:"contain"}}),(0,n.jsxs)(s.A,{sx:{display:"flex",flexDirection:"column",justifyContent:"space-between",gap:"4px"},children:[(0,n.jsx)(c.A,{lineHeight:1,fontWeight:600,fontSize:"14px",children:t}),(0,n.jsx)(c.A,{fontWeight:800,lineHeight:1,fontSize:"14px",children:o}),(0,n.jsx)(c.A,{color:d.colors.text4,lineHeight:1,fontSize:"14px",children:i})]}),a&&(0,n.jsx)(eH.A,{checked:l,sx:{ml:"auto"}})]})};var eY=o(97186);let eq=()=>{let{t:e}=(0,h.Bd)("common");return(0,n.jsxs)(s.A,{sx:{display:"flex",flexDirection:"column",gap:"8px",justifyContent:"center",alignItems:"center"},children:[(0,n.jsx)(c.A,{textAlign:"center",width:"100%",fontSize:"14px",fontWeight:600,children:e("paymentForm.checkingBonu
1ses")}),(0,n.jsx)(ez,{})]})},eG=(0,eo.Ay)(s.A)(e=>{let{theme:t}=e;return{maxWidth:"375px",[t.breakpoints.down(tv)]:{maxWidth:"100%"}}}),e_=(0,eo.Ay)(s.A)(e=>{let{theme:t}=e;return{marginTop:"20px",background:t.colors.opacity222,borderRadius:"12px",padding:"8px",display:"flex",flexDirection:"column",gap:"8px"}}),e$=(0,eo.Ay)(eD)(()=>({fontSize:"14",lineHeight:1,fontWeight:600,marginLeft:""}));var eJ=o(82769);let eZ=e=>{let{value:t,onChange:o}=e,{t:r}=(0,h.Bd)("common");return(0,n.jsx)(s.A,{sx:{display:"flex",gap:"8px",mt:"8px"},children:(0,n.jsx)(eV,{value:t,onChange:e=>{o(e.target.value)},fullWidth:!0,placeholder:r("paymentForm.enterPromocode"),slotProps:{input:{endAdornment:(0,n.jsx)(s.A,{onClick:()=>o(""),sx:{cursor:"pointer"},children:(0,n.jsx)(eJ.O,{style:{marginTop:"5px"}})})}}})})};var eX=o(84377);let eK=e=>{var t;let{setStep:o,step:r,tab:i,setTab:l,paymentSystemId:a}=e,{t:d}=(0,h.Bd)(["common","promotions"]),{setValue:c,clearErrors:x}=(0,f.xW)(),[u,A]=(0,y.useState)(),v=e=>{A(e),void 0!==e&&""!==e&&e||K()},[b,w]=(0,y.useState)(!1),[C,S]=(0,y.useState)(!1),k=(0,p.e3)(eR._E),I=(0,p.e3)(eR.wO),W=(0,p.e3)(eR.YP),M=(0,p.e3)(eR.ae),P=(0,p.e3)(eh.Mw),R=(0,p.e3)(eP.x$),T=(0,p.e3)(eP.$x),z=(0,p.e3)(eR.k4),E=(0,p.e3)(eR.ZU),D=(0,p.e3)(g.A5),B=(0,p.e3)(eP.qk),V=(0,p.e3)(eP.Y8),O=(0,p.e3)(eR.Th.pending),H=!!(null==P?void 0:P.withdraw),N=q.yR[(null==D||null==(t=D.currency)?void 0:t.code)||"EUR"],L=(null==P?void 0:P.withdraw)?T:R,G=(null==P?void 0:P.withdraw)?V:B,_=(0,y.useCallback)(e=>{let t=L.find(t=>"CRYPTO"===t.type&&"CRYPTO"===e||"CRYPTO"!==t.type&&"FIAT"===e);(null==t?void 0:t.id)&&c("paymentSystemId",t.id)},[c,L]),$=(0,y.useCallback)(e=>{l(e),_(e),x()},[x,_,l]),J=(0,y.useMemo)(()=>L.find(e=>e.id===Number(a)),[a,L]),Z=(0,y.useCallback)(async()=>{if(C&&!u)return void j.me.error({description:d("paymentForm.enterPromocode")});w(!0);try{(null==P?void 0:P.withdraw)||!u||(await k({name:u}),await I()),o("amount")}catch(e){e instanceof Error&&(e.message.includes(eT.W)?j.me.warning({description:d("promoCodeTypeMismatchActivate")}):j.me.error({description:e.message}))}finally{w(!1)}},[k,I,C,null==P?void 0:P.withdraw,u,o,d]),X=(0,y.useCallback)(e=>{e&&((null==E?void 0:E.find(t=>{var o;return(null==(o=t.promocodeConfig)?void 0:o.name)===e}))||S(!0),v(e))},[E]),K=(0,y.useCallback)(async()=>{try{await W(),await I()}catch(e){e instanceof Error&&j.me.error({description:e.message})}},[W,I,d]);(0,y.useEffect)(()=>{x(),a||_(i)},[x,a,_,i]),(0,y.useEffect)(()=>{if(!(null==P?void 0:P.promocode)&&M&&!(null==P?void 0:P.withdraw)){var e;X(null==(e=M.config)?void 0:e.name)}},[M,z,null==P?void 0:P.promocode,null==P?void 0:P.withdraw,X]),(0,y.useEffect)(()=>{if(null==P?void 0:P.psId){let e=L.find(e=>e.id===P.psId);e&&(l((null==e?void 0:e.type)==="CRYPTO"?"CRYPTO":"FIAT"),c("paymentSystemId",P.psId),(null==P?void 0:P.autoToSecondStep)&&Z())}},[null==P?void 0:P.psId,L]),(0,y.useEffect)(()=>{(null==P?void 0:P.promocode)&&X(null==P?void 0:P.promocode)},[null==P?void 0:P.promocode,E,X]);let Q=async e=>{S(e),v(void 0)},ee=(0,y.useMemo)(()=>L.filter(e=>e.type!==eY.TeX.Crypto),[L]),et=(0,y.useMemo)(()=>L.filter(e=>e.type===eY.TeX.Crypto),[L]),eo=L.length>0,en=ee.length>0,er=et.length>0;return(0,y.useEffect)(()=>{eo&&!en&&$("CRYPTO")},[$,en,eo]),(0,n.jsxs)(eG,{role:"tabpanel",hidden:"system"!==r,children:[(0,n.jsx)(eD,{sx:{lineHeight:1},width:"100%",marginBottom:"20px",children:d(H?"paymentForm.chooseWithdrawalMethod":"paymentForm.choosePaymentMethod")}),(0,n.jsxs)(s.A,{sx:{borderRadius:"32px",p:"4px",mb:"20px",width:"100%",height:"40px",background:eX.w.colors.color1000},children:[en&&(0,n.jsx)(m.A,{variant:"text",onClick:()=>$("FIAT"),sx:{background:"FIAT"===i?eX.w.colors.color400:"",height:"100%",color:"FIAT"===i?eX.w.colors.text1:eX.w.colors.text3,transition:"all 0.3s ease","&:hover":{color:eX.w.colors.text1}},children:"FIAT"}),er&&(0,n.jsx)(m.A,{variant:"text",sx:{background:"CRYPTO"===i?eX.w.colors.color400:"",height:"100%",color:"CRYPTO"===i?eX.w.colors.text1:eX.w.colors.text3,transition:"all 0.3s ease","&:hover":{color:eX.w.colors.text1}},onClick:()=>$("CRYPTO"),children:"CRYPTO"})]}),(0,n.jsx)(eO,{systems:ee,paymentSystemId:a,loading:G,hidden:"FIAT"!==i}),(0,n.jsx)(eO,{systems:et,paymentSystemId:a,loading:G,hidden:"CRYPTO"!==i}),(null==J?void 0:J.message)&&(0,n.jsx)(eB,{dangerouslySetInnerHTML:{__html:null==J?void 0:J.message}}),!H&&(O||G?(0,n.jsx)(e_,{children:(0,n.jsx)(eq,{})}):E&&(null==E?void 0:E.length)>0&&(0,n.jsx)(e_,{children:null==E?void 0:E.map(e=>{var t,o,r,i,l;let s=e.bonusConfigs.map(e=>{var t,o;return(0,eN.PG)({currencySymbol:N,valueType:e.valueType,configValue:e.value,freespinParamsCount:null==(t=e.freespinParams)?void 0:t.count,rateFixedValue:null==(o=e.rate)?void 0:o.fixedValue})}).join(" + "),a=eL({bonusConfig:e.bonusConfigs[0],currencySymbol:N,giftConfigRateMinDepValue:null==(t=e.giftConfigRate)?void 0:t.minDepValue,tPromotions:d});return(0,n.jsx)(eU,{title:d((null==(r=e.promo)||null==(o=r.card)?void 0:o.title)||"",{ns:"promotions"}),bonus:s,conditions:a,isSelected:!C&&u===(null==(i=e.promocodeConfig)?void 0:i.name),onClick:async()=>{var t,o;S(!1),u===(null==e||null==(t=e.promocodeConfig)?void 0:t.name)?v(void 0):v(null==e||null==(o=e.promocodeConfig)?void 0:o.name)}},null==(l=e.promocodeConfig)?void 0:l.name)})})),!(null==P?void 0:P.withdraw)&&(0,n.jsxs)(s.A,{onClick:()=>Q(!C),sx:{display:"flex",alignItems:"center",mt:"10px",width:"fit-content",curs
1or:"pointer"},children:[(0,n.jsx)(F.A,{icon:(0,n.jsx)(U.R,{}),checkedIcon:(0,n.jsx)(Y.S,{}),checked:C,size:"small"}),(0,n.jsx)(e$,{children:d("paymentForm.iHavePromo")})]}),C&&(0,n.jsx)(eZ,{value:u,onChange:v}),(0,n.jsx)(eF,{color:H?"primary":"success",loading:b,onClick:Z,fullWidth:!0,disabled:!(null==J?void 0:J.id),children:d("paymentForm.continue")})]})},eQ=e=>{var t,o,i,l;let{selectedPaymentMethod:a,currencyName:d}=e,x=(0,r.A)(),u=(0,p.e3)(eh.Mw),{setValue:m,watch:h}=(0,f.xW)(),g=h("amount");return(0,y.useEffect)(()=>{if((null==a?void 0:a.currency)&&"options"in a.currency){var e,t,o;let n=(null==u?void 0:u.amountStep)?(null==u?void 0:u.amountStep)-1:1;m("amount","".concat((null==a||null==(o=a.currency)||null==(t=o.options)||null==(e=t[n])?void 0:e.value)||(null==a?void 0:a.currency.minValue)))}},[null==a?void 0:a.id,m]),(null==a?void 0:a.currency)&&"options"in(null==a?void 0:a.currency)&&d&&(null==a||null==(o=a.currency)||null==(t=o.options)?void 0:t.length)?(0,n.jsx)(s.A,{sx:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(70px, 1fr))",gap:"8px",mt:"8px",borderTop:"none"},children:"options"in(null==a?void 0:a.currency)&&(null==a||null==(l=a.currency)||null==(i=l.options)?void 0:i.map(e=>{let t=e.value===Number(g);return(0,n.jsxs)(s.A,{sx:{cursor:"pointer",height:"32px",borderRadius:"8px",fontSize:"14px",display:"flex",justifyContent:"center",alignItems:"center",letterSpacing:"0.08rem",px:"8px",gap:"4px",border:t?"2px solid ".concat(x.colors.secondary500," !important"):"2px solid transparent",background:t?x.colors.opacity222:x.colors.color400,transition:"all 0.3s ease","&:hover":{border:"2px solid ".concat(x.colors.text1)}},onClick:()=>{m("amount","".concat(e.value))},children:[(0,n.jsx)(c.A,{fontWeight:800,fontSize:"16px",sx:{color:t?x.colors.secondary500:x.colors.color200},children:q.yR[d]}),(0,n.jsx)(c.A,{fontWeight:700,fontSize:"14px",color:x.colors.text2,letterSpacing:"0.08rem",children:e.value})]},e.id)}))}):null},e0=e=>{var t,o,i;let{hideInput:l}=e,{t:s}=(0,h.Bd)(["common","profile"]),a=(0,r.A)(),d=(0,p.e3)(g.aI),x=(0,p.e3)(g.A5),u=(0,p.e3)(eP.x$),m=(0,p.e3)(eP.$x),A=(0,p.e3)(eh.Mw),v=(0,p.e3)(g.jX),j=!!(null==A?void 0:A.withdraw),{setValue:b,register:w,formState:{errors:C},watch:S}=(0,f.xW)(),k=S("paymentSystemId"),I=S("amount"),W=S("paymentDetails"),M=(0,y.useMemo)(()=>(j?m:u).find(e=>e.id===Number(k)),[j,m,u,k]),P=null==(t=d.find(e=>{var t;return e.id===(null==x||null==(t=x.currency)?void 0:t.id)}))?void 0:t.name,R=Math.ceil((null==M||null==(o=M.currency)?void 0:o.minValue)||0),T=Math.ceil((null==M||null==(i=M.currency)?void 0:i.maxValue)||0);return(0,n.jsxs)(n.Fragment,{children:[j&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c.A,{sx:{color:a.colors.text2,fontSize:"12px",fontWeight:600,mb:"12px",lineHeight:1},children:s("paymentForm.availableBalance")}),(0,n.jsx)(c.A,{sx:{mr:"5px",mb:"16px"},fontSize:"16px",fontWeight:800,lineHeight:1,children:"".concat(q.yR[P]," ").concat(Number(v).toFixed(2))})]}),!l&&(0,n.jsx)(eV,{variant:"filled",label:s(j?"paymentForm.enterWithdrawalAmount":"paymentForm.enterDepositAmount"),...w("amount",{required:!0,min:{value:R,message:s("paymentForm.minAmount",{value:"".concat(R," ").concat(q.yR[P])})},max:{value:T,message:s("paymentForm.maxAmount",{value:"".concat(T," ").concat(q.yR[P])})}}),error:!!C.amount,value:I||"",sx:{minHeight:"60px",borderRadius:"12px",".MuiInputBase-root":{background:"".concat(a.colors.opacity222," !important")},".MuiInputBase-input":{fontSize:"24px",fontWeight:800},".MuiInputBase-root.Mui-focused":{border:"1px solid #FFF"},"fieldset, .MuiInputBase-root":{borderRadius:"12px"}},InputProps:{startAdornment:(0,n.jsx)(c.A,{sx:{mr:"5px",mt:"13px",fontWeight:800,fontSize:"24px"},children:q.yR[P]}),inputMode:"decimal",type:"text"},slotProps:{htmlInput:{inputMode:"decimal",pattern:"[0-9]*[.,]?[0-9]*"}},onChange:e=>{let t=e.target.value.trim();!(t.startsWith("0")||t.startsWith(".")||t.startsWith(","))&&!/\.\d{3}$/.test(t)&&/^\d*(?:[.,]\d*)?$/.test(t)&&b("amount",t.replace(",","."))},fullWidth:!0}),(0,n.jsx)(eQ,{selectedPaymentMethod:M,currencyName:P}),!l&&C.amount&&(0,n.jsx)(c.A,{sx:{fontSize:"12px",fontWeight:600,color:a.colors.error},children:C.amount.message}),j&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c.A,{sx:{color:a.colors.text2,fontSize:"14px",mt:"10px"},children:s("paymentForm.paymentDetails")}),(0,n.jsx)(eV,{...w("paymentDetails",{required:!0,validate:e=>!!e&&((null==M?void 0:M.type)!==eY.TeX.Card||!(e.length<16))}),sx:{height:"100%"},error:!!C.paymentDetails,value:W,onChange:e=>{(null==M?void 0:M.type)===eY.TeX.Card?b("paymentDetails",e.target.value.replace(/\D/g,"").slice(0,16),{shouldValidate:!0}):b("paymentDetails",e.target.value)},fullWidth:!0}),(0,n.jsx)(c.A,{sx:{color:a.colors.text2,fontSize:"14px",mt:"10px"},children:s("paymentForm.comment")}),(0,n.jsx)(eV,{...w("comments"),fullWidth:!0,onChange:e=>{b("comments",e.target.value)}})]})]})};var e1=o(5741),e2=o(59769);let e3=()=>{let e=(0,r.A)(),{t}=(0,h.Bd)("common"),[o,i]=(0,y.useState)(null),{watch:l}=(0,f.xW)(),a=l("paymentSystemId"),d=(0,y.useMemo)(()=>(null==o?void 0:o.addressWallet)?(null==o?void 0:o.addressWallet.length)>20?"".concat(null==o?void 0:o.addressWallet.slice(0,10),"...").concat(null==o?void 0:o.addressWallet.slice(-10)):null==o?void 0:o.addressWallet:"",[o]);return(0,y.useEffect)(()=>{i(null),k.o.paymentsApi.createCryptoWallet(a||0).then(e=>{i(e)}).catch(console.error)},[a]),(0,n.jsxs)(s.A,{children:[(0,n.jsxs)(s.A,{sx:{width:"100%",display:"grid",gridTemplateColumns:"auto min-content",p:"0 0 10px",gap:"10px",[e.breakpoints.down(530)]:{gridTemplateColumns:"auto",gridTemplateRows:"auto auto"}},children:[(0,n.jsx)(s.A,{sx:{display:"flex",flexDirection:"column",justifyContent:"space-between",border:"1px solid ".concat(e.colors.color300),borderRadius:"12px",p:"12px",overflow:"hidden"},children:o?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c.A,{lineHeight:1,fontSize:"14px",fontWeight:600,color:e.colors.text4,children:t("cryptoDeposit.wallet")}),(0,n.jsx)(c.A,{fontSize:"16px",fontWeight:800,sx:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:d}),(0,n.jsx)(m.A,{onClick:()=>{o&&(0,e2.l)(null==o?void 0:o.addressWallet,t("copied"))},sx:{borderRadius:"8px",maxHeight:"37px"},color:"inherit",fullWidth:!0,children:t("copy")})]}):(0,n.jsx)(s.A,{sx:{display:"flex",height:"100%",alignItems:"center",justifyContent:"center"},children:(0,n.jsx)(e1.A,{})})}),(0,n.jsx)(s.A,{sx:{border:"1px solid ".concat(e.colors.color300),borderRadius:"8px",display:"flex",justifyContent:"center",alignItems:"center",width:"110px",height:"110px",position:"relative",background:e.colors.opacity222}
1,children:(null==o?void 0:o.qrCodeImage)?(0,n.jsx)(ee(),{style:{justifySelf:"center",borderRadius:"5px"},src:o.qrCodeImage,alt:"qr-code",width:93,height:93}):(0,n.jsx)(e1.A,{})})]}),(null==o?void 0:o.tag)&&(0,n.jsxs)(s.A,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",border:"1px solid ".concat(e.colors.color300),borderRadius:"12px",p:"12px"},children:[(0,n.jsxs)(s.A,{children:[(0,n.jsx)(c.A,{lineHeight:1,fontSize:"14px",fontWeight:600,color:e.colors.text4,children:t("cryptoDeposit.tag")}),(0,n.jsx)(c.A,{fontSize:"16px",fontWeight:800,children:null==o?void 0:o.tag})]}),(0,n.jsx)(m.A,{onClick:()=>{(null==o?void 0:o.tag)&&(0,e2.l)(null==o?void 0:o.tag,t("copied"))},sx:{borderRadius:"8px",maxHeight:"37px"},color:"inherit",children:t("copy")})]})]})},e5=(0,eo.Ay)(s.A)(()=>({fontSize:"14px",fontWeight:500})),e4=(0,eo.Ay)(s.A,{shouldForwardProp:e=>"hide"!==e})(e=>{let{hide:t,theme:o}=e;return t?{}:{padding:"8px",border:"1px dashed ".concat(o.colors.primary500),marginTop:"12px",borderRadius:"24px",backgroundColor:o.colors.opacity222}}),e6=(0,eo.Ay)(c.A)(e=>{let{theme:t}=e;return{fontWeight:600,fontSize:"12px",color:t.colors.link}}),e8=(0,eo.Ay)("span")(()=>({fontWeight:600,fontSize:"12px"})),e7=(0,eo.Ay)(s.A)(()=>({}));var e9=o(95315);let te="cad_amount",tt=e=>{var t;let{paymentSystemId:o,amount:r}=e,{t:i}=(0,h.Bd)(["common"]),l=(0,p.e3)(eP.x$),a=(0,p.e3)(eh.Mx),d=(0,p.e3)(g.A5),x=(0,p.e3)(eh.El),u=l.find(e=>e.id===Number(o));return(0,y.useEffect)(()=>{a||k.o.utilsApi.getCurrencyByCode("CAD").then(e=>{var t;k.o.utilsApi.getExchangeRate((null==d||null==(t=d.currency)?void 0:t.id)||0,e.id).then(e=>{x(e)})})},[a,x,null==d||null==(t=d.currency)?void 0:t.id]),(0,y.useMemo)(()=>null==u?void 0:u.inputs.find(e=>e.name===te),[null==u?void 0:u.inputs])&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c.A,{textAlign:"left",marginTop:"8px",fontSize:"14px",fontWeight:600,children:i("depositSumInCAD")}),(0,n.jsx)(s.A,{sx:{display:"flex",borderRadius:"12px"},children:(0,n.jsx)(eV,{fullWidth:!0,disabled:!0,value:a?"C$ ".concat((Number(r)*a).toFixed(2)):"No rate for CAD"})})]})};var to=o(17448),tn=o(25837);let tr=()=>{var e;let{t}=(0,h.Bd)(["common","profile"]),o=(0,r.A)(),i=(0,p.e3)(g.A5),l=(0,p.e3)(eP.x$),a=(0,p.e3)(eP.$x),d=(0,p.e3)(eh.Mw),x=!!(null==d?void 0:d.withdraw),{setValue:u,register:m,clearErrors:A,setError:v,formState:{errors:j},watch:b}=(0,f.xW)(),w=b("paymentSystemId"),C=b("inputValues"),[S,k]=(0,y.useState)(void 0),I=(0,y.useMemo)(()=>(x?a:l).find(e=>e.id===Number(w)),[x,a,l,w]);return(0,y.useEffect)(()=>{var e,t;u("inputValues",{}),null==I||null==(e=I.inputs)||e.forEach(e=>{u("inputValues.".concat(e.name),"")});let o=null==I||null==(t=I.inputs)?void 0:t.find(e=>e.name.toLowerCase().includes("phone"));if((null==i?void 0:i.phone)&&o)try{let e=(0,e9.L)(i.phone),t=(0,tn.ok)(e.country);k(t),u("inputValues.".concat(o.name),i.phone)}catch(e){console.error(e)}},[null==d?void 0:d.amountStep,null==I?void 0:I.currency,null==I?void 0:I.inputs,u,null==i?void 0:i.phone,null==i?void 0:i.phoneVerified]),null==I||null==(e=I.inputs)?void 0:e.map(e=>{var r,l,a,d;return e.name===te?null:e.name.toLowerCase().includes("phone")?(0,n.jsx)(s.A,{mt:"10px",children:(0,n.jsx)(to.L,{maxWidth:"370px",name:e.name,label:e.label,value:null==C?void 0:C[e.name],onChangePhone:o=>((e,o,n)=>{A("inputValues.".concat(o)),u("inputValues.".concat(o),e),new RegExp(n).test("".concat(e))||v("inputValues.".concat(o),{type:"manual",message:t("invalidPhoneNumber",{ns:"profile"})})})(o,e.name,e.regexp),onEnterNotValidPhone:o=>{var n;return n=e.name,void v("inputValues.".concat(n),{type:"manual",message:t("invalidPhoneNumber",{ns:"profile"})})},country:S||(0,tn.ok)(null==i||null==(a=i.country)||null==(l=a.code)?void 0:l.toUpperCase()),error:!!(null==j||null==(d=j.inputValues)?void 0:d[e.name])})}):(0,n.jsxs)(s.A,{children:[(0,n.jsx)(c.A,{sx:{color:o.colors.text2,fontSize:"14px",mt:"10px"},children:t(e.label)}),(0,n.jsx)(eV,{...m("inputValues.".concat(e.name),{validate:t=>new RegExp(e.regexp).test(t)}),error:!!(null==j||null==(r=j.inputValues)?void 0:r[e.name]),value:null==C?void 0:C[e.name],onChange:t=>{u("inputValues.".concat(e.name),t.target.value)},fullWidth:!0},e.label)]},e.name)})};var ti=o(35089);let tl=e=>{let{items:t}=e,o=(0,r.A)();return(0,n.jsx)(s.A,{sx:{display:"flex",flexWrap:"wrap",alignItems:"center",gap:"8px",mb:"20px"},children:t.map((e,t,r)=>(0,n.jsxs)(s.A,{onClick:e.onClick,sx:{cursor:r.length!==t+1?"pointer":"auto",display:"flex",gap:"8px",alignItems:"center","&:hover":{"& .label":{transition:"color 0.2s ease",color:o.colors.text1},"& path":{transition:"all 0.2s ease",fill:o.colors.text1,fillOpacity:1}}},children:[(0,n.jsx)($.m,{color:r.length===t+1?o.colors.text1:void 0}),(0,n.jsx)(c.A,{className:"label",sx:{fontWeight:700,fontSize:"14px",lineHeight:1,maxWidth:"110px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",color:r.length===t+1?o.colors.text1:o.colors.text3},children:e.label})]},t))})},ts=e=>{var t,o,i,l,a;let{setStep:d,step:x,paymentSystemId:u}=e,{t:m}=(0,h.Bd)(["common","promotions"]),{watch:A}=(0,f.xW)(),v=(0,r.A)(),j=(0,p.e3)(eP.F0.pending),b=(0,p.e3)(eP.x$),w=(0,p.e3)(eP.$x),C=(0,p.e3)(eR.ae),S=(0,p.e3)(eh.Mw),k=(0,p.e3)(eR.XA),I=((null==S?void 0:S.withdraw)?w:b).find(e=>e.id===Number(u)),W=!(null==S?void 0:S.withdraw),M=!!(null==S?void 0:S.withdraw),P=W&&(null==I?void 0:I.type)===eY.TeX.Voucher,R=Math.ceil((null==I||null==(t=I.currency)?void 0:t.minValue)||0),T=Math.ceil((null==I||null==(o=I.currency)?void 0:o.maxValue)||0),z=(0,p.zN)(g.A5,e=>{var t;return null==e||null==(t=e.currency)?void 0:t.code}),E=q.yR[z||"EUR"],F=(0,p.e3)(eR.ZU),D=I&&"withInvoice"in I&&(null==I?void 0:I.withInvoice),B=(0,y.useMemo)(()=>null==k?void 0:k.find(e=>{var t;return(null==(t=e.promocodeConfig)?void 0:t.id)===(null==C?void 0:C.configId)}),[k,C]),V=A("amount"),O=null==B?void 0:B.bonusConfigs.map(e=>{var t,o;let n=(0,eN.PG)({currencySymbol:E,valueType:e.valueType,configValue:e.value,freespinParamsCount:null==(t=e.freespinParams)?void 0:t.count,rateFixedValue:null==(o=e.rate)?void 0:o.fixedValue});if(null==n?void 0:n.includes("%")){let e=Number(n.replace("%",""));return"".concat(m("bonus")," ").concat(E).concat((e*Number(V)/100).toFixed(2))}return(null==n?void 0:n.includes(E))?"".concat(m("bonus")," ").concat(n):null!=n&&n.includes("undefined")?void 0:n}
1).filter(Boolean).join(" + "),H=(0,y.useMemo)(()=>null==F?void 0:F.find(e=>{var t;return(null==(t=e.promocodeConfig)?void 0:t.id)===(null==C?void 0:C.configId)}),[F,C]),N=null==H?void 0:H.bonusConfigs.map(e=>{var t,o;return(0,eN.PG)({currencySymbol:E,valueType:e.valueType,configValue:e.value,freespinParamsCount:null==(t=e.freespinParams)?void 0:t.count,rateFixedValue:null==(o=e.rate)?void 0:o.fixedValue})}).join(" + ");return(0,n.jsxs)(e7,{role:"tabpanel",hidden:"amount"!==x,children:[(0,n.jsx)(tl,{items:[{onClick:()=>{d("system")},label:m(M?"paymentForm.chooseWithdrawalMethod":"paymentForm.choosePaymentMethod")},{label:m(M?"paymentForm.enterWithdrawalAmount":"paymentForm.quickDeposit")}]}),I&&(0,n.jsxs)(s.A,{sx:{display:"flex",borderRadius:"12px",justifyContent:"space-between",alignItems:"center",gap:"33px",mb:"20px",p:"8px",border:"1px solid ".concat(v.colors.color300)},children:[(0,n.jsx)(c.A,{sx:{fontWeight:600,fontSize:"12px",maxWidth:"121px"},children:m("paymentForm.haveChosenPaymentMethod")}),(0,n.jsx)($.m,{style:{transform:"rotate(180deg)"}}),(0,n.jsx)(s.A,{sx:{maxWidth:"107px",width:"100%"},children:(0,n.jsx)(eE,{isDisabled:!0,payment:I,paymentSystemId:u,setValue:()=>{}})})]}),(null==I?void 0:I.type)!==eY.TeX.Crypto&&!P&&(0,n.jsxs)(s.A,{sx:{position:"relative",overflow:"hidden",background:v.colors.color1000,p:"12px 16px",borderBottom:"2px solid ".concat(v.colors.orange),borderRadius:"12px 12px 0 0"},children:[(0,n.jsx)(ti.M,{style:{width:"70px",height:"70px",opacity:"0.1",position:"absolute",right:"-20px",top:"50%",transform:"translateY(-50%)"}}),(0,n.jsxs)(e5,{sx:{display:"flex",flexWrap:"wrap"},children:[(0,n.jsx)("span",{style:{marginRight:"4px"},children:"".concat(M?m("paymentForm.minWithdraw"):m("paymentForm.minDep")," ").concat(R," ").concat(z,",")}),(0,n.jsx)("span",{children:" ".concat(m((null==S?void 0:S.withdraw)?"paymentForm.maxWithdraw":"paymentForm.maxDep")," ").concat(T," ").concat(z)})]})]}),(null==I?void 0:I.type)!=="CRYPTO"||D||M?(0,n.jsxs)(s.A,{sx:{...M?{mt:"12px",border:"1px dashed ".concat(v.colors.primary500),p:"12px",borderRadius:"12px"}:{mt:"12px"}},children:[(0,n.jsx)(e0,{hideInput:P}),(0,n.jsx)(tr,{},"".concat(null==I?void 0:I.id,"_inputs"))]}):null,W&&(null==I?void 0:I.type)==="CRYPTO"&&!D&&"amount"===x&&(0,n.jsx)(e3,{}),(null==I?void 0:I.message)&&(0,n.jsxs)(s.A,{sx:{position:"relative",overflow:"hidden",background:v.colors.color1000,p:"12px 16px",borderBottom:"2px solid ".concat(v.colors.orange),borderRadius:"12px 12px 0 0"},children:[(0,n.jsx)(ti.M,{style:{width:"70px",height:"70px",opacity:"0.1",position:"absolute",right:"-20px",top:"50%",transform:"translateY(-50%)"}}),(0,n.jsx)(eB,{dangerouslySetInnerHTML:{__html:null==I?void 0:I.message}})]}),H&&!(null==S?void 0:S.withdraw)&&(0,n.jsx)(s.A,{sx:{mt:"12px"},children:(0,n.jsx)(eU,{title:m((null==H||null==(l=H.promo)||null==(i=l.card)?void 0:i.title)||"",{ns:"promotions"}),bonus:N,conditions:eL({bonusConfig:null==H?void 0:H.bonusConfigs[0],currencySymbol:E,tPromotions:m,giftConfigRateMinDepValue:null==(a=H.giftConfigRate)?void 0:a.minDepValue}),isSelected:!0})}),!P&&(0,n.jsx)(tt,{paymentSystemId:u,amount:V}),(null==I?void 0:I.type)!=="CRYPTO"||D||M?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(e4,{hide:!O,children:O&&(0,n.jsxs)(e6,{textAlign:"center",children:["".concat(m("receive"),": "),(0,n.jsx)(e8,{children:"".concat(E).concat(V," + ").concat(O)})]})}),(0,n.jsx)(eF,{color:M?"primary":"success",type:"submit",fullWidth:!0,loading:j,children:m((null==S?void 0:S.withdraw)?"paymentForm.withdrawFunds":"paymentForm.deposit")})]}):null]})};var ta=o(93795);let td=(0,ea.lh)({sid:"b3n44me7",name:"openConfirmModal"}),tc=(0,ea.lh)({sid:"aaleh20m",name:"closeConfirmModal"}),tp=(0,ea.y$)(null,{sid:"owwjt7",name:"$confirmHtml"}).on(td,(e,t)=>t).on(tc,()=>null);var tx=o(53844);let tu=()=>{let{t:e}=(0,h.Bd)("common"),t=(0,r.A)(),o=(0,p.e3)(tp),i=(0,p.e3)(tc),a=async()=>{let e=window.open("","_blank");o&&(null==e||e.document.write(o))};return(0,n.jsxs)(l.A,{open:!!o,sx:{zIndex:5e3},BackdropProps:{sx:{backdropFilter:"blur(10px)",backgroundColor:"rgba(0, 0, 0, 0.5)"}},PaperProps:{component:"form",sx:{overflow:"visible",minWidth:"375px"}},children:[(0,n.jsx)(x.n,{onClick:i}),(0,n.jsxs)(Z.E,{children:[(0,n.jsx)(c.A,{sx:{mb:"12px",fontSize:"16px",fontWeight:800,textAlign:"center"},children:e("paymentForm.youWillBeRedirected")}),(0,n.jsx)(A.l,{type:"submit",fullWidth:!0,onClick:a,children:e("confirm")}),(0,n.jsxs)(s.A,{sx:{display:"flex",justifyContent:"center",alignItems:"center",gap:"4px",mt:"12px"},children:[(0,n.jsx)(tx.J,{style:{width:"13px",height:"11px"},color:t.colors.text3}),(0,n.jsx)(c.A,{sx:{lineHeight:1,fontWeight:800,fontSize:"14px",textTransform:"uppercase",color:t.colors.text3},children:e("paymentForm.securePayment")})]})]})]})};var tm=o(43560),th=o(35724);let tg=e=>{let{setStep:t,step:o}=e,{t:r}=(0,h.Bd)("common"),i=(0,p.e3)(g.A5);return(0,y.useEffect)(()=>{"profile"===o&&(null==i?void 0:i.firstName)&&t("amount")},[t,o,null==i?void 0:i.firstName]),(0,n.jsxs)(s.A,{role:"tabpanel",hidden:"profile"!==o,children:[(0,n.jsx)(tl,{items:[{onClick:()=>{t("system")},label:r("paymentForm.choosePaymentMethod")},{onClick:()=>{t("amount")},label:r("paymentForm.quickDeposit")},{label:r("personalData",{ns:"profile"})}]}),(0,n.jsx)(th.v,{})]})},tf=e=>{let t=new URL(window.location.href),o=new URLSearchParams(t.search);
1return Object.entries(e).forEach(e=>{let[t,n]=e;n?o.set(t,String(n)):o.delete(t)}),"".concat(t.origin).concat(t.pathname,"?").concat(o.toString())};var tA=o(7172);let ty=()=>{let[e,t]=(0,y.useState)("system"),[o,r]=(0,y.useState)("FIAT"),[i,l]=(0,y.useState)(!1),{t:s}=(0,h.Bd)("common"),a=(0,p.e3)(eP.pj),d=(0,p.e3)(eh.cT),c=(0,p.e3)(eP.F0),x=(0,p.e3)(eR.wO),u=(0,p.e3)(g.f3),m=(0,p.e3)(eh.Mx),A=(0,p.e3)(eh.Mw),v=(0,p.e3)(g.A5),b=(0,p.e3)(eR.ae),w=(0,p.e3)(td),C=(0,p.e3)(g.$4),S=(0,f.mN)({defaultValues:{paymentSystemId:void 0,amount:void 0,inputValues:{},paymentDetails:""}}),I=(0,p.e3)(eP.x$),W=(0,p.e3)(eP.$x),M=(null==A?void 0:A.withdraw)?W:I,P=S.watch("paymentSystemId"),R=M.find(e=>e.id===Number(P)),T=(()=>{if(R)return(null==A?void 0:A.withdraw)?R.fillProfileRequiredForWithdrawal:R.fillProfileRequiredForDeposit})(),z={"No successful deposits":s("errors.noSuccessfulDeposits"),prohibited_deposit:s("errors.prohibitedDeposit"),prohibited_payout:s("errors.prohibitedPayout")},E=async o=>{let n=!1;if(Object.entries(o.inputValues).forEach(e=>{let[t,r]=e;if(t===te)return o.inputValues[te]=(Number(o.amount)*(m||0)).toFixed(2),!0;r||(n=!0,S.setError("inputValues.".concat(t),{type:"manual",message:"Complete the required field to proceed with your deposit"}),j.me.error({description:"Complete the required field to proceed with your deposit"}))}),!n)try{var r,i;let n=null==(r=Object.entries(o.inputValues).find(e=>{let[t]=e;return t.toLowerCase().includes("phone")}))?void 0:r[1];if((null==v?void 0:v.phoneVerified)||!n||k.o.authApi.updatePhoneNumber(n).then(async()=>await C()).catch(()=>void 0),T&&!(null==v?void 0:v.lastName)&&!(null==v?void 0:v.firstName)&&"amount"===e)return void t("profile");if(null==A?void 0:A.withdraw)await c({...o,type:eY.cpw.Withdrawal,amount:+o.amount,promoCode:null==b?void 0:b.id,fingerprint:u}),j.me.success({description:"Withdraw request created"}),d();else{let e=new Date,t=await c({...o,amount:Number(o.amount),type:eY.cpw.Deposit,fingerprint:u,returnOnFail:tf({modal:tA.Fm}),returnOnSuccess:tf({modal:tA.zJ})}),n=new Date().getTime()-e.getTime(),{browser:r,device:l}=(0,ta.O)(navigator.userAgent);if(n>4500||(null==(i=r.name)?void 0:i.includes("Safari"))||"mobile"===l.type)w(t);else{await (0,tm.A)(500);let e=window.open("","_blank");null==e||e.document.write(t)}}}catch(e){e instanceof Error&&(z[e.message]?j.me.error({description:z[e.message]}):(j.me.error({description:e.message}),console.log(e)),("invalid additional input options"===e.message||"Complete the required field to proceed with your deposit"===e.message||"Missing propepty"===e.message)&&Object.keys(S.getValues("inputValues")).forEach(t=>{S.setError("inputValues.".concat(t),{type:"manual",message:e.message})}))}};return(0,y.useEffect)(()=>{A&&l(!0),!A&&i&&((0,ey.S)(),setTimeout(()=>{l(!1),S.reset(),t("system"),r("FIAT")},300))},[i,S,A]),(0,y.useEffect)(()=>{A&&!b&&x()},[b,x,A]),(0,y.useEffect)(()=>{(null==v?void 0:v.email)&&a()},[a,null==v?void 0:v.email]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(f.Op,{...S,children:[(0,n.jsxs)("form",{name:"paymentForm",onSubmit:S.handleSubmit(E),autoComplete:"off",children:[(0,n.jsx)(eK,{setStep:t,step:e,tab:o,setTab:r,paymentSystemId:P}),(0,n.jsx)(ts,{setStep:t,step:e,paymentSystemId:P})]}),(0,n.jsx)(tg,{setStep:t,step:e})]}),(0,n.jsx)(tu,{})]})},tv=600,tj=()=>{let{t:e}=(0,h.Bd)("common"),t=(0,r.A)(),o=(0,p.e3)(eh.cT),i=(0,p.e3)(eP.zR),a=(0,p.e3)(eR.Th),d=(0,p.e3)(eh.Mw),u=(0,p.e3)(g.A5),m=(0,p.e3)(g.E),f=()=>{o()};return(0,y.useEffect)(()=>{(null==u?void 0:u.email)&&i()},[i,null==u?void 0:u.email]),(0,y.useEffect)(()=>{(null==u?void 0:u.email)&&a()},[a,null==u?void 0:u.email]),(null==u?void 0:u.email)||(null==m?void 0:m.email)?(0,n.jsxs)(l.A,{open:!!d,onClose:f,BackdropProps:{sx:{backdropFilter:"blur(10px)",backgroundColor:"rgba(0, 0, 0, 0.5)"}},PaperProps:{sx:{overflow:"visible",minWidth:"375px"}},children:[(0,n.jsx)(x.n,{onClick:f}),(0,n.jsxs)(Z.E,{children:[(0,n.jsx)(ty,{}),(0,n.jsxs)(s.A,{sx:{display:"flex",justifyContent:"center",alignItems:"center",gap:"4px",mt:"12px"},children:[(0,n.jsx)(tx.J,{style:{width:"13px",height:"11px"},color:t.colors.text3}),(0,n.jsx)(c.A,{sx:{lineHeight:1,fontWeight:800,fontSize:"14px",textTransform:"uppercase",color:t.colors.text3},children:e("paymentForm.securePayment")})]})]})]}):null};var tb=o(17656);let tw=()=>(0,n.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("path",{d:"M3.75 3.75V0H6.25C8.32107 0 10 1.67893 10 3.75C10 1.67893 11.6789 0 13.75 0H16.25V3.75H20V7.5H0V3.75H3.75Z",fill:"white"}),(0,n.jsx)("path",{d:"M1.25 10H8.75V18.75H1.25V10Z",fill:"white"}),(0,n.jsx)("path",{d:"M18.75 10H11.25V18.75H18.75V10Z",fill:"white"})]});var tC=o(36162),tS=o(69800),tk=o(7470);let tI=()=>{let{t:e}=(0,h.Bd)("bonuses"),{t}=(0,h.Bd)("common"),o=(0,r.A)(),i=(0,p.e3)(tb.E),a=(0,p.e3)(tb.A),d=()=>{a(!1)},[m,g]=(0,y.useState)(!1),[f,v]=(0,y.useState)(""),b=(0,p.e3)(eR.pp),[w,C]=(0,y.useState)(!1),[S,I]=(0,y.useState)(!0),W=async e=>{if(!f)return void I(!1);I(!0),C(!0);let o=await b();if(C(!1),o.length>0&&!e){d(),g(!0);return}try{C(!0),await k.o.bonusesApi.activateStandalone(f),await b(),j.me.success({description:t("promocodeActivated")}),v(""),d()}catch(e){e instanceof Error&&(e.message.includes(eT.W)?j.me.warning({description:t("promoCodeTypeMismatchStandalone")}):(j.me.error({description:t(e.message)}),I(!1)))}finally{C(!1)}};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(tS.T,{open:m,loading:w,image:tk.A.src,title:e("alreadyHaveBonus"),description:e("cancelCurrentBonus"),confirmText:e("agree"),cancelText:e("keepCurrent"),onClose:()=>g(!1),onConfirm:W}),(0,n.jsxs)(l.A,{open:i,onClose:d,BackdropProps:{sx:{backdropFilter:"blur(10px)",backgroundColor:"rgba(0, 0, 0, 0.5)"}},sx:{zIndex:2100,"& .MuiDialog-paper":{width:"355px",overflow:"visible"}},children:[(0,n.jsx)(x.n,{onClick:d}),(0,n.jsx)(Z.E,{children:(0,n.jsxs)(s.A,{sx:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",[o.breakpoints.down(768)]:{width:"auto"}},children:[(0,n.jsx)(tw,{}),(0,n.jsx)(c.A,{sx:{mt:"8px",fontSize:"16px",fontWeight:600,textAlign:"center"},children:t("promocode")}),(0,n.jsx)(c.A,{sx:{mt:"5px",fontSize:"14px",textAlign:"center",fontWeight:500},children:t("activateRightNow")}),(0,n.jsx)(u.A,{fullWidth:!0,placeholder:t("enterThePromocode"),value:f,error:!S,sx:{mt:"20px","& .MuiInputBase-root:hover .MuiOutlinedInput-notchedOutline":{border:"2px dashed ".concat(o.colors.text1)},"& .MuiOutlinedInput-notchedOutline":{border:"2px dashed ".concat(o.colors.color300)},"& .MuiInputBase-root.Mui-focused .MuiOutlinedInput-notchedOutline":{border:"2px dashed ".concat(o.colors.text1)}},InputProps:{startAdornment:(0,n.jsx)(tC.q,{color:o.colors.secondary500,style:{marginTop:"-2px",marginRight:"8px"}})},onChange:e=>{v(e.target.value),e.target.value&&I(!0)}}),(0,n.jsx)(A.l,{loading:w,fullWidth:!0,onClick:()=>W(!1),color:"secondary",sx:{mt:"12px"},children:t("apply")})]})})]})]})};var tW=o(12802),tM=o(31049),tP=o(19288),tR=o.n(tP),tT=o(29037),tz=o(44094),tE=o(59420),tF=o(50765),tD=o(78642),tB=o(71864);let tV=new ta.O(navigator.userAgent),tO={main:{xxl:[8,q.yF],xl:[8,q.yF],lg:[8,q.yF],lmd:[8,q.yF],md:[6,q.yF],sm:[3,q.yF],xs:[3,q.yF]}},tH=()=>{var e,t;let{t:o}=(0,h.Bd)("common"),{i18n:l}=(0,h.Bd)(),a=(0,r.A)(),d=(0,p.e3)(tT.kq),c=(0,p.e3)(tT.g5),x=(0,p.e3)(tT.tg),m=(0,p.e3)(tT.TG),f=(0,p.e3)(tT.Gb),A=(0,p.e3)(tT.gP),v=(0,p.e3)(tW.ZN),j=(0,p.e3)(g.A5),b=(0,p.e3)(g.E),w=(0,p.e3)(g.kc),C=!!(null==j?void 0:j.email)||!!(null==b?void 0:b.email),I=null!=(t=null==(e=w.find(e=>{var t;return e.code===(null==(t=l.language)?void 0:t.toUpperCase())}))?void 0:e.id)?t:3,[W,M]=(0,y.useState)(!1),[P,R]=(0,y.useState)(!1),[T,z]=(0,y.useState)({totalCount:0,games:[]}),[E,F]=(0,y.useState)(!1),D=(0,i.A)(a.breakpoints.up("xs")),B=(0,i.A)(a.breakpoints.up("sm")),V=(0,i.A)(a.breakpoints.up("md")),O=(0,i.A)(a.breakpoints.up("lmd")),H=(0,i.A)(a.breakpoints.up("lg")),N=(0,i.A)(a.breakpoints.up("xl")),L=(0,i.A)(a.breakpoints.up("xxl")),U=(0,y.useMemo)(()=>L?tO.main.xxl[1]:N?tO.main.xl[1]:H?tO.main.lg[1]:O?tO.main.lmd[1]:V?tO.main.md[1]:B?tO.main.sm[1]:D?tO.main.xs[1]:tO.main.xxl[1],[L,N,H,O,V,B,D]),[Y,q]=(0,y.useState)({offset:0,limit:U}),G=(0,y.useRef)(0),_=async()=>
1{if(!E&&!P&&0!==T.games.length&&T.games.length!==T.totalCount&&!W)try{G.current=G.current+U;let e=await k.o.gamesApi.getGames({getGamesDto:{...Y,offset:G.current,devices:"mobile"===tV.getDevice().type?"MOBILE":"PC"},headers:{}});if(0===e.games.length)return F(!0);return z(t=>({totalCount:e.totalCount,games:[...t.games,...e.games]}))}catch(e){console.log(e)}},$=(0,y.useMemo)(()=>tR()(e=>{q(t=>{let o={...t,offset:0};return""!==e.trim()?o.name=e:delete o.name,o})},300),[]);(0,y.useEffect)(()=>{(async e=>{try{G.current=0,R(!0),F(!1);let t=await k.o.gamesApi.getGames({getGamesDto:{...e,devices:"mobile"===tV.getDevice().type?"MOBILE":"PC"},headers:{}});return z({totalCount:t.totalCount,games:t.games})}catch(e){console.log(e)}finally{R(!1)}})(Y)},[Y]),(0,y.useEffect)(()=>{C&&0===d.length&&c().catch(console.error),0===A.length&&m({headers:null}).catch(console.error)},[]),(0,y.useEffect)(()=>{I&&x({languageId:I}).catch(console.error)},[I,x]);let J=async e=>{var t;M(!1);let o=null!=(t=Y.gameBrandsSlug)?t:[],n=o.includes(e)?o.filter(t=>t!==e):[...o,e];q(e=>({...e,offset:0,...n.length>0?{gameBrandsSlug:n}:{gameBrandsSlug:void 0}}))},Z=async e=>{var t;M(!1);let o=null!=(t=Y.gameCategories)?t:[],n=o.includes(Number(e))?o.filter(t=>t!==Number(e)):[...o,Number(e)];q(e=>({...e,offset:0,...n.length>0?{gameCategories:n}:{gameCategories:void 0}}))};return(0,n.jsxs)(s.A,{sx:{p:"12px 20px 20px 12px",height:"100%",maxHeight:"100%",overflowY:"scroll",[a.breakpoints.down(768)]:{p:"12px"}},children:[(0,n.jsxs)(s.A,{sx:{mx:"auto",width:"100%",display:"flex",gap:"10px",alignItems:"center",mb:"20px"},children:[(0,n.jsx)(u.A,{autoFocus:!0,autoComplete:"off",placeholder:o("enterGameName"),fullWidth:!0,InputProps:{startAdornment:(0,n.jsx)(tz.W,{style:{marginTop:"-2px",marginRight:"8px"}})},onChange:e=>{$(e.target.value),M(!1)}}),(0,n.jsx)(S.A,{sx:{width:"40px",height:"40px",ml:"auto",borderRadius:"12px",background:a.colors.opacity333},onClick:v,"aria-label":"Close",children:(0,n.jsx)(eJ.O,{})})]}),(0,n.jsxs)(s.A,{sx:{pb:"12px",display:"flex"},children:[(0,n.jsxs)(s.A,{sx:{display:"flex",gap:"8px",[a.breakpoints.down(768)]:{flexDirection:"column",width:"100%"}},children:[(0,n.jsxs)(s.A,{sx:{display:"flex",gap:"8px",width:"100%"},children:[(0,n.jsx)(tE.$,{isMobile:!0,onClick:()=>M(e=>!e),isAtcive:W}),(0,n.jsx)(tF.W,{loading:P,selectedElements:Y.gameCategories?Y.gameCategories.map(e=>e.toString()):[],elements:f,onChange:Z,onClear:()=>{q(e=>({...e,offset:0,gameCategories:void 0}))},label:o("category"),disableSearch:!0,startIconBtn:(0,n.jsx)(tD.k,{})})]}),(0,n.jsx)(tF.W,{loading:P,selectedElements:Y.gameBrandsSlug?Y.gameBrandsSlug:[],label:o("providers"),elements:A,onChange:J,onClear:()=>{q(e=>({...e,offset:0,gameBrandsSlug:void 0}))},startIconBtn:(0,n.jsx)(tB.Q,{color:a.colors.text2})})]}),(0,n.jsx)(tE.$,{onClick:()=>M(e=>!e),isAtcive:W})]}),(0,n.jsx)(tM.Q,{uniqueKey:"search-modal-all-games",games:W?d:T.games,gridConfig:tO,onShowMore:_,showSkeletonLoader:P})]})},tN=()=>{let e=(0,p.e3)(tW.ub),t=(0,p.e3)(tW.ZN),o=(0,r.A)();return(0,n.jsx)(l.A,{open:e,onClose:t,sx:{zIndex:2100,"& .MuiDialog-container":{alignItems:"center",[o.breakpoints.down(768)]:{alignItems:"flex-start"}}},BackdropProps:{sx:{backdropFilter:"blur(10px)",backgroundColor:"rgba(0, 0, 0, 0.5)"}},PaperProps:{sx:{maxWidth:"1237px",width:"100%",height:"90%",borderRadius:"12px",maxHeight:"90%",m:0,p:0,[o.breakpoints.down(768)]:{borderRadius:0,border:0,height:"100%",maxHeight:"100%"}}},children:(0,n.jsx)(tH,{})})};var tL=o(33457);let tU={src:"/_next/static/media/successful.70415e80.png"},tY=()=>{let{t:e}=(0,h.Bd)("common"),t=(0,r.A)(),o=(0,p.e3)(tL.l),i=(0,p.e3)(tL.n),a=(0,ex.useRouter)(),d=()=>{i(!1),(0,ey.z)(["modal"])};return(0,n.jsxs)(l.A,{open:o,onClose:d,BackdropProps:{sx:{backdropFilter:"blur(10px)",backgroundColor:"rgba(0, 0, 0, 0.5)"}},sx:{zIndex:2100,"& .MuiDialog-paper":{width:"355px",overflow:"visible"}},children:[(0,n.jsx)(x.n,{onClick:d}),(0,n.jsx)(Z.E,{children:(0,n.jsxs)(s.A,{sx:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",[t.breakpoints.down(768)]:{width:"auto"}}
1,children:[(0,n.jsx)(ee(),{src:tU.src,width:100,height:100,alt:"successful"}),(0,n.jsx)(c.A,{sx:{mt:"15px",fontSize:"16px",fontWeight:600,textAlign:"center"},children:e("successfulDeposit")}),(0,n.jsx)(c.A,{sx:{mt:"5px",fontSize:"14px",textAlign:"center",fontWeight:500},children:e("successfulDepositText")}),(0,n.jsx)(m.A,{fullWidth:!0,onClick:()=>{a.push("/games").catch(console.error),d()},color:"secondary",sx:{mt:"20px"},children:e("goToTheGames")})]})})]})};var tq=o(26890),tG=o(48687);let t_=()=>{let e=(0,ex.useRouter)(),t=(0,p.e3)(tq.a3),o=(0,p.e3)(tq.oD),r=(0,p.e3)(tT.L2),i=(0,p.e3)(g.f3),a="mobile"===new ta.O(navigator.userAgent).getDevice().type,[d,x]=(0,y.useState)(!1),u=async()=>{x(!0);try{let e=(0,tG.m)();t&&await r({startGameDto:{gameId:t,homeUrl:"https://"+window.location.host+e,bonusBank:!0,isMobile:a,fingerprint:i},headers:null})}catch(t){t instanceof Error&&j.me.error({description:t.message}),e.push("/")}finally{o(),x(!1)}},h=async()=>{o(),await e.push("/")};return(0,n.jsxs)(l.A,{open:!!t,sx:{zIndex:5e3},PaperProps:{sx:{padding:"10px",minWidth:"375px"}},children:[(0,n.jsx)(c.A,{textAlign:"center",children:"Continue playing with bonus funds?"}),(0,n.jsxs)(s.A,{sx:{display:"flex",gap:"16px",mt:"15px"},children:[(0,n.jsx)(m.A,{fullWidth:!0,variant:"outlined",color:"secondary",sx:{borderRadius:"4px"},onClick:h,children:"Cancel"}),(0,n.jsx)(A.l,{fullWidth:!0,loading:d,color:"secondary",sx:{borderRadius:"4px"},onClick:u,children:"Continue"})]})]})};var t$=o(22905);let tJ={src:"/_next/static/media/mission-small.b4562966.png",height:128,width:129,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAY1BMVEVMaXGlwFgNY4w3g7BdPS01i75ft9XFeSnBQzSEus7JoUPPokK+PTbCoUA6gKDGHjONak0/colTl6lalaR5vcpatOAgns3GjV8vir8egbFcn8w8i7iDzduCxemK1OGOv8ZdpNS8I+HqAAAAHHRSTlMAC5HxEy2Q/Eb+JmxjamkyJGRWQf1dV/5ghOP8IrNWygAAAAlwSFlzAAAWJQAAFiUBSVIk8AAAAERJREFUeJxjYOBi5OFgAAFuXn4Ig0GARViUFcxiE5GRlWDgExSSEWeXl2JgZWGTY2fnZGZgYBCT5eRUYAKpkZRmZmIEAFB5Aoe2Net5AAAAAElFTkSuQmCC",blurWidth:8,blurHeight:8};var tZ=o(42504),tX=o(90663),tK=o(78786);let tQ="missionOfferDismissed",t0=()=>{var e,t,o,i,l,a,d,x,u,f,A;let{i18n:v,t:b}=(0,h.Bd)("common"),w=(0,p.e3)(t$.Xp),C=(0,p.e3)(g.kc),S=(0,p.e3)(t$.ze),[k,W]=(0,y.useState)([]),[M,P]=(0,y.useState)(!0),R=(0,p.e3)(I.m4),T=(0,p.zN)(g.A5,e=>{var t;return tX.yR[(null==e||null==(t=e.currency)?void 0:t.code)||"EUR"]}),z=(e=>{let t=(0,r.A)();return{paper:{position:"fixed",left:24,bottom:24,zIndex:1300,minWidth:280,maxWidth:396,p:2,display:"flex",flexDirection:"column",gap:"16px",background:"#331F33",overflow:"visible",[t.breakpoints.down(q.eS)]:{bottom:24+e},[t.breakpoints.down(480)]:{left:5,bottom:5+e,width:"calc(100% - 10px)"}},row:{display:"flex",gap:"20px"},imageWrap:{position:"relative",width:64,height:64,display:"inline-block"},glow:{position:"absolute",top:7,right:-5,width:64,height:64,background:"#ffffff38",filter:"blur(10px)",zIndex:0,pointerEvents:"none"},textCol:{display:"flex",flexDirection:"column",gap:"8px"},buttons:{display:"grid",gap:"8px",gridTemplateColumns:"1fr 1fr"},timerWrap:{minWidth:"150px",display:"flex",justifyContent:"center",mb:"5px",ml:"auto","& div":{"& > p":{fontSize:"12px",color:"#999",textAlign:"center"},"& > div > p":{fontSize:"12px",color:"#999"}}},closeBtn:{position:"absolute",top:"10px",right:"10px",cursor:"pointer"}}})(R),E=w.find(e=>!k.includes(e.id)),F=null!=(A=null==(e=C.find(e=>{var t;return e.code===(null==(t=v.language)?void 0:t.toUpperCase())}))?void 0:e.id)?A:3;(0,y.useLayoutEffect)(()=>{W((()=>{try{let e=localStorage.getItem(tQ);if(!e)return[];return JSON.parse(e)}catch(e){return[]}})())},[]);let D=async()=>{if(E)try{await S({missionStartId:E.id,languageId:F})}catch(t){let e=t instanceof Error?t.message:"An error occurred while accepting the mission";j.me.error({description:e})}},{title:B,text:V}=(0,tZ.H)(null==E?void 0:E.taskConfigs[0],T);if(!E||!M)return null;let O=E.endAt;return(0,n.jsx)(K.A,{direction:"up",in:!0,mountOnEnter:!0,unmountOnExit:!0,children:(0,n.jsxs)(en.A,{elevation:6,sx:z.paper,children:[(0,n.jsx)(s.A,{sx:z.closeBtn,onClick:()=>{P(!1)},children:(0,n.jsx)(eJ.O,{})}),(0,n.jsxs)(s.A,{sx:z.row,children:[(0,n.jsxs)(s.A,{sx:z.imageWrap,children:[(0,n.jsx)(s.A,{sx:z.glow}
1),(0,n.jsx)(ee(),{src:(null==(t=E.missionConfig)?void 0:t.image)||tJ,alt:"mission",width:64,height:64})]}),(0,n.jsxs)(s.A,{sx:z.textCol,children:[(0,n.jsx)(c.A,{fontWeight:800,fontSize:16,children:(null==E||null==(a=E.taskConfigs)||null==(l=a[0])||null==(i=l.taskLanguages)||null==(o=i[0])?void 0:o.title)||B}),(0,n.jsx)(c.A,{fontSize:14,children:(null==E||null==(f=E.taskConfigs)||null==(u=f[0])||null==(x=u.taskLanguages)||null==(d=x[0])?void 0:d.description)||V})]})]}),(0,n.jsxs)(s.A,{sx:z.buttons,children:[(0,n.jsx)(m.A,{size:"small",onClick:()=>{if(!E)return;let e=[...k,E.id];W(e);try{localStorage.setItem(tQ,JSON.stringify(e))}catch(e){}},color:"inherit",sx:{mt:"auto"},children:"DON'T WANT"}),(0,n.jsxs)(s.A,{children:[O&&(0,n.jsx)(s.A,{sx:z.timerWrap,children:(0,n.jsx)(tK.ExpiresTimerWithText,{date:O,hideZero:!0,title:b("untilTheEnd")})}),(0,n.jsx)(m.A,{size:"small",onClick:D,color:"secondary",variant:"contained",sx:{width:"100%"},children:"I'M IN"})]})]})]})})},t1=()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(X,{}),(0,n.jsx)(tj,{}),(0,n.jsx)(tY,{}),(0,n.jsx)(ej,{}),(0,n.jsx)(ef,{}),(0,n.jsx)(eW,{}),(0,n.jsx)(tN,{}),(0,n.jsx)(tI,{}),(0,n.jsx)(t_,{}),(0,n.jsx)(t0,{}),(0,n.jsx)(eu,{}),(0,n.jsx)(ek,{})]})},59769:(e,t,o)=>{o.d(t,{l:()=>r});var n=o(67458);let r=(e,t)=>{navigator.clipboard.writeText(e).then(()=>{n.me.success({description:t})}).catch(console.error)}},69800:(e,t,o)=>{o.d(t,{T:()=>x});var n=o(47758),r=o(20879),i=o(69736),l=o(80011),s=o(44416),a=o(26258),d=o.n(a),c=o(76356),p=o(60034);let x=e=>{let{open:t,title:o,description:a,image:x,confirmText:u="Confirm",cancelText:m="Cancel",loading:h=!1,onConfirm:g,onClose:f}=e,A=(0,r.A)();return(0,n.jsxs)(i.A,{open:t,onClose:f,sx:{zIndex:5e3},PaperProps:{sx:{p:"20px",maxWidth:"396px",width:"100%",display:"flex",flexDirection:"column",alignItems:"center",overflow:"visible",[A.breakpoints.down(768)]:{m:"10px",p:"12px"}}},children:[(0,n.jsx)(p.n,{onClick:f,sx:{background:"rgba(178, 114, 178, 0.24)"}}),x&&(0,n.jsx)(d(),{src:x,width:108,height:90,alt:"dialog-image",style:{marginBottom:"24px"}}),(0,n.jsx)(l.A,{fontWeight:800,fontSize:"16px",lineHeight:"16px",textAlign:"center",mb:"16px",children:o}),a&&(0,n.jsx)(l.A,{fontWeight:500,fontSize:"14px",lineHeight:"130%",textAlign:"center",mb:"24px",children:a}),(0,n.jsxs)(s.A,{display:"flex",width:"100%",gap:"8px",children:[(0,n.jsx)(c.l,{color:"secondary",fullWidth:!0,loading:h,onClick:g,children:u}),(0,n.jsx)(c.l,{color:"inherit",fullWidth:!0,onClick:f,children:m})]})]})}},78786:(e,t,o)=>{o.r(t),o.d(t,{ExpiresTimerWithText:()=>u});var n=o(47758),r=o(2627),i=o(80011),l=o(44416),s=o(78744),a=o(3934);let d=(0,r.Ay)(i.A)(e=>{let{theme:t}=e;return{fontSize:"16px",fontWeight:800,color:t.colors.text1,lineHeight:1}}),c=(0,r.Ay)(i.A)(e=>{let{theme:t}=e;return{fontSize:"14px",fontWeight:600,color:t.colors.text4,lineHeight:1}}),p=(0,r.Ay)(i.A)(()=>({fontSize:"12px",fontWeight:800,lineHeight:1,marginLeft:"2px",marginRight:"2px"})),x=e=>{let t=new Date().getTime(),o=e.getTime()-t;return[{number:Math.max(Math.floor(o/864e5),0),label:"day"},{number:Math.max(Math.floor(o%864e5/36e5),0),label:"hour"},{number:Math.max(Math.floor(o%36e5/6e4),0),label:"min"},{number:Math.max(Math.floor(o%6e4/1e3),0),label:"sec"}]},u=e=>{let{date:t,title:o,hideZero:r}=e,{t:i}=(0,s.Bd)("common"),[u,m]=(0,a.useState)(()=>x(new Date(t)));return(0,a.useEffect)(()=>{let e=setInterval(()=>{let o=x(new Date(t));m(o),o.every(e=>0===e.number)&&clearInterval(e)},1e3);return()=>{clearInterval(e)}},[t]),(0,n.jsxs)(l.A,{sx:{display:"flex",justifyContent:"center",flexDirection:"column",gap:"5px"},children:[o&&(0,n.jsx)(c,{children:o}),(0,n.jsx)(l.A,{sx:{display:"flex"},children:null==u?void 0:u.map((e,t,o)=>{let s=e.label,a=e.number;return 0===a&&0===t&&r?null:(0,n.jsxs)(l.A,{sx:{display:"flex",alignItems:"center"},children:[(0,n.jsx)(l.A,{children:(0,n.jsxs)(d,{children:[a<0?"00":a<10?"0".concat(a):a,s&&i(s)]})}),t!==o.length-1&&(0,n.jsx)(p,{children:":"})]},t)})})]})}},85965:(e,t,o)=>{o.d(t,{A:()=>n});let n={src:"/_next/static/media/failed.fa7fd6b9.png",height:180,width:216,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAHCAMAAAACh/xsAAAASFBMVEVMaXH3w7WqJwjPSyoqCAiqIAdnFgmNIAnFKgStKArBMA7TPRjLLgmHGADFJwG/Lw2LHwjcgmx6Ggjmc1bRLweTIQn9TyTeMgjSteHqAAAAE3RSTlMA/aD+EH4m/v1dws/aPujw5f6Op8MEpQAAAAlwSFlzAAALEwAACxMBAJqcGAAAADlJREFUeJwdxkcOwCAMAMGl2pAeG/L/n0ZiTgPQOkveZlspFvYM1NP
1CV4Do6fGrcqgmU4+8Q0Rk3D8pawG70YU/GwAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:7}},95272:(e,t,o)=>{o.d(t,{H:()=>i,j:()=>r});var n=o(65641);let r=(0,n.y$)(!1,{sid:"c3aigkea",name:"$isProgressMenuOpen"}),i=(0,n.lh)({sid:"16ivxz7",name:"setIsProgressMenuOpen"});r.on(i,(e,t)=>t)}}]);
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.