1"use strict";(self.webpackChunkfrontend=self.webpackChunkfrontend||[]).push([[768],{74129:(e,i,l)=>{l.d(i,{u:()=>h});var o=l(89379),n=l(9950),s=l(82569),t=l(15935),a=l(48063),d=l(57941),r=l(40326),u=l(20381);const c=e=>{let{show:i,setShow:l,handleYes:o}=e;const t=(0,s.wA)(),{languageData:u}=(0,s.d4)((e=>e.language));return(0,n.useEffect)((()=>{if(i)return t((0,a.qf)({name:d.lx.CANCEL_MODAL,graphic:"",title:(null===u||void 0===u?void 0:u.areYouSure)||"Are you sure?",body:(null===u||void 0===u?void 0:u.cancelWithdrawRequest)||"Do you want to cancel your withdrawal request?",buttons:[{text:(null===u||void 0===u?void 0:u.no)||"No",variant:r.Vt.SECONDARY,onClick:()=>{t((0,a.Oo)(d.lx.CANCEL_MODAL)),l(!1)}},{text:(null===u||void 0===u?void 0:u.yes)||"Yes",variant:r.Vt.TERTIARY,onClick:()=>{null===o||void 0===o||o(),t((0,a.Oo)(d.lx.CANCEL_MODAL)),l(!1)}}],onClose:()=>{t((0,a.Oo)(d.lx.CANCEL_MODAL)),l(!1)}})),()=>{i&&t((0,a.Oo)(d.lx.CANCEL_MODAL))}}),[i,t,u,o,l]),null};var v=l(44414);const m=e=>{let{show:i,setShow:l,handleYes:o}=e;const t=(0,s.wA)(),{languageData:c}=(0,s.d4)((e=>e.language));(0,n.useEffect)((()=>{t((0,a.qf)({name:d.lx.CANCEL_MODAL,graphic:(0,v.jsx)(u.A,{name:"warning",height:80,width:140}),title:(null===c||void 0===c?void 0:c.areYouSure)||"Are you sure?",body:(null===c||void 0===c?void 0:c.cancelWithdrawRequest)||"Do you want to cancel your withdrawal request?",buttons:[{text:(null===c||void 0===c?void 0:c.yes)||"Yes",variant:r.Vt.SECONDARY,onClick:()=>{null===o||void 0===o||o(),t((0,a.Oo)(d.lx.CANCEL_MODAL)),l(!1)}},{text:(null===c||void 0===c?void 0:c.no)||"No",variant:r.Vt.TERTIARY,onClick:()=>{t((0,a.Oo)(d.lx.CANCEL_MODAL)),l(!1)}}],onClose:()=>{t((0,a.Oo)(d.lx.CANCEL_MODAL)),l(!1)}}))}),[])}
1,h=e=>{var i;const l=(0,s.d4)((e=>{var i;return null===(i=e.uiConfig)||void 0===i?void 0:i.general})),n=null!==(i=null===l||void 0===l?void 0:l.cancelModal)&&void 0!==i?i:t.Sm.V1;return("object"===typeof n&&null!==n&&void 0!==n&&n.variant?n.variant:n)===t.Sm.V2?(0,v.jsx)(m,(0,o.A)({},e)):(0,v.jsx)(c,(0,o.A)({},e))}},81664:(e,i,l)=>{l.d(i,{A:()=>c});var o=l(9950),n=l(20162),s=l(82569),t=l(85685),a=l(11425),d=l(3667),r=l(20381),u=l(44414);const c=e=>{var i,l;let{state:c,setState:v,showCalendarIcon:m=!1}=e;const{languageData:h}=(0,s.d4)((e=>e.language)),p=(0,d.s)(),{ref:x,isVisible:g,setIsVisible:y}=(0,a.A)(!1);return(0,o.useEffect)((()=>{var e;const i=null===(e=document.getElementsByClassName("rdrDateDisplay"))||void 0===e?void 0:e[0],l=document.createElement("button");return l.textContent="X",l.style="border: 0px;background: unset;font-size: 21px;margin: 5px 0px 5px 5px;",l.onclick=()=>y(!1),null===i||void 0===i||i.appendChild(l),()=>null===i||void 0===i?void 0:i.removeChild(l)}),[g]),(0,u.jsxs)("div",{className:"form-group custom-container",children:[(0,u.jsx)("input",{readOnly:!0,className:"custom-input form-control cursor-pointer",onClick:()=>y(!g),value:"".concat((0,t.UX)(null===(i=c[0])||void 0===i?void 0:i.startDate)," ").concat((null===h||void 0===h?void 0:h.to)||"to"," ").concat((0,t.UX)(null===(l=c[0])||void 0===l?void 0:l.endDate))}),m&&(0,u.jsx)(r.A,{name:"calendar",width:"16px",height:"16px",className:"calendar-icon"}),g&&(0,u.jsx)("div",{ref:x,style:{zIndex:"100"},children:(0,u.jsx)(n.ad,{editableDateInputs:!0,onChange:e=>{v([e.selection])},moveRangeOnFirstSelection:!1,ranges:c,locale:p||void 0})})]})}},62934:(e,i,l)=>{l.d(i,{A:()=>n});l(9950);var o=l(44414);const n=e=>{let{containerClass:i,progressClass:l,percentage:n,labelClass:s,label:t,levelCountIconClass:a,levelCount:d,iconWidth:r=0,centerLabel:u=!1}=e;const c=Math.min(n,100)||0,v=u?"50%":"calc(".concat((e=>e>90?"50%":e>80?"40%":e<10?"50%":e>50?"20%":"60%")(c)," - ").concat(r,"px)");return(0,o.jsxs)("div",{className:i,children:[(0,o.jsx)("div",{className:l,style:{width:"".concat(c,"%")}}),(0,o.jsx)("div",{className:s,style:{left:v},children:t}),a&&(0,o.jsx)("button",{className:a,style:{left:"calc(".concat(c,"% - ").concat(r,"px)")},children:d})]})}},85472:(e,i,l)=>{l.d(i,{A:()=>r});l(9950);var o=l(44268),n=l(70804),s=l(26338),t=l(13564),a=l(82569),d=l(44414);const r=e=>{var i,l,r,u,c,v,m,h,p,x,g,y;let{showInfo:j,setShowInfo:b,bonusDetails:f}=e;const w=(0,t.Zp)(),{selectedLanguageCode:N,languageData:A}=(0,a.d4)((e=>e.language));return(0,d.jsxs)(o.A,{show:j,className:"bonus-info-modal-container",size:"lg",children:[(0,d.jsx)(o.A.Header,{closeButton:!0,closeVariant:"white",onHide:()=>b(!1),children:(0,d.jsx)(o.A.Title,{children:(0,n.Ay)((null===f||void 0===f||null===(i=f.bonus)||void 0===i||null===(l=i.promotionTitle)||void 0===l?void 0:l[N])||(null===f||void 0===f||null===(r=f.bonus)||void 0===r||null===(u=r.promotionTitle)||void 0===u?void 0:u.EN))})}),(0,d.jsx)(o.A.Body,{children:(0,d.jsx)("div",{className:"bonus-info",children:(0,s.mb)((null===f||void 0===f||null===(c=f.bonus)||void 0===c||null===(v=c.termCondition)||void 0===v?void 0:v[N])||(null===f||void 0===f||null===(m=f.bonus)||void 0===m||null===(h=m.termCondition)||void 0===h?void 0:h.EN))?(0,n.Ay)((0,s.wz)((null===f||void 0===f||null===(p=f.bonus)||void 0===p||null===(x=p.termCondition)||void 0===x?void 0:x[N])||(null===f||void 0===f||null===(g=f.bonus)||void 0===g||null===(y=g.termCondition)||void 0===y?void 0:y.EN))):(0,d.jsx)("div",{onClick:()=>{w("/".concat(null===N||void 0===N?void 0:N.toLowerCase(),"/bonus-terms"))},style:{cursor:"pointer"},children:(null===A||void 0===A?void 0:A.dashboard_activeBonusDefaultTnCText)||"Click here to view the full bonus terms and conditions."})})})]})}},48253:(e,i,l)=>{l.d(i,{A:()=>n});var o=l(9950);const n=e=>{const[i,l]=(0,o.useState)(!1),[n,s]=(0,o.useState)("");return{showInfo:i,setShowInfo:l,selectedBonusInfo:n,setSelectedBonusInfo:s}}},48106:(e,i,l)=>{l.d(i,{A:()=>c});l(9950);var o=l(81605),n=l(49782),s=l(68353),t=l(11425),a=l(82569),d=l(20381),r=l(44414);const u=e=>{let{active:i,onClick:l,label:o,disabled:n}=e;return(0,r.jsx)("li",{className:"page-list-item ".concat(i),onClick:()=>{n||l()},children:o})},c=e=>{let{page:i,totalPages:l,setPage:c,limit:v,setLimit:m}=e;const h=[];[10,20,50,100].flatMap((e=>e!==v&&h.push(e)));const{languageData:p}=(0,a.d4)((e=>e.language)),x=[v,...h],g=[];if(l>5){const e=i<3,o=i>l-2;if(e)for(let l=1;l<=2;l++)g.push((0,r.jsx)(u,{active:l===i,onClick:()=>c(l),label:l},l));else g.push((0,r.jsx)(u,{active:1===i,onClick:()=>c(1),label:1},1)),g.push((0,r.jsx)(u,{label:"..."},"ellipsis1"));if(o)for(let n=l-2;n<=l;n++)g.push((0,r.jsx)(u,{active:n===i,onClick:()=>c(n),label:n},n));e||o||(g.push((0,r.jsx)(u,{active:i===i-1,onClick:()=>c(i-1),label:i-1}
1,i-1)),g.push((0,r.jsx)(u,{active:!0,onClick:()=>c(i),label:i},i)),g.push((0,r.jsx)(u,{active:i===i+1,onClick:()=>c(i+1),label:i+1},i+1))),o||(g.push((0,r.jsx)(u,{label:"..."},"ellipsis2")),g.push((0,r.jsx)(u,{active:i===l,onClick:()=>c(l),label:l},l)))}else for(let o=1;o<=l;o++)g.push((0,r.jsx)(u,{active:o===i,onClick:()=>c(o),label:o},o));const{ref:y,isVisible:j,setIsVisible:b}=(0,t.A)(!1);return(0,r.jsx)(o.A.Item,{className:"pagination-wrapper",children:(0,r.jsxs)("div",{className:"pagination-wrapper-flex",children:[(0,r.jsxs)("div",{className:"dropdown-group d-flex align-items-center justify-content-center flex-sm-row flex-column",children:[(0,r.jsx)("h6",{className:"mb-0 row-per-page",children:(null===p||void 0===p?void 0:p.rowsPerPage)||"Rows per page:"}),(0,r.jsx)(n.A.Group,{children:(0,r.jsxs)(s.A,{className:"dropdown-btn icon-right row-dropdown",ref:y,children:[!j&&(0,r.jsxs)(s.A.Toggle,{id:"dropdown-basic",className:"show",onClick:()=>b(!0),children:[(0,r.jsx)("span",{className:"text-capitalize",children:v}),(0,r.jsx)(d.A,{name:"pagination-drop-arrow",width:"16px",height:"16px"})]}),j&&(0,r.jsx)("div",{className:"dropdown-menu show",children:x.map((e=>(0,r.jsxs)(s.A.Item,{className:v===e?"selected":"",onClick:()=>{m(e),c(1)},children:[e,v===e&&(0,r.jsx)(d.A,{name:"pagination-drop-arrow",width:"16px",height:"16px"})]},e)))})]})})]}),(0,r.jsx)("div",{className:"pages-group",children:(0,r.jsxs)("ul",{className:"pages-list",children:[(0,r.jsx)("span",{className:"pages-list-go-prev ".concat(1===i?"disabled":""),children:(0,r.jsx)("span",{onClick:()=>1!==i&&c(i-1),children:(0,r.jsx)("svg",{width:"9.618px",height:"16.359px",viewBox:"0 0 9.618 16.359",enableBackground:"new 0 0 9.618 16.359",children:(0,r.jsx)("path",{fill:"#FFFFFF",d:"M7.795,16.357c-0.699-0.341-1.152-0.966-1.688-1.491c-1.853-1.825-3.678-3.679-5.512-5.521 c-0.783-0.785-0.798-1.499-0.019-2.282C2.753,4.875,4.936,2.698,7.12,0.52c0.654-0.653,1.488-0.69,2.064-0.112 c0.592,0.595,0.58,1.396-0.082,2.061c-1.871,1.879-3.76,3.743-5.641,5.614c-0.035,0.035-0.061,0.081-0.05,0.067 c1.86,1.885,3.708,3.76,5.562,5.63c0.965,0.976,0.844,1.898-0.351,2.579C8.348,16.357,8.072,16.357,7.795,16.357z"})})})}),g,(0,r.jsx)("span",{className:"pages-list-go-next ".concat(i>=l?"disabled":""),children:(0,r.jsx)("span",{onClick:()=>i<l&&c(i+1),children:(0,r.jsx)("svg",{width:"9.618px",height:"16.359px",viewBox:"0 0 9.618 16.359",enableBackground:"new 0 0 9.618 16.359",children:(0,r.jsx)("path",{fill:"#FFFFFF",d:"M1.823,0.001C2.522,0.342,2.975,0.967,3.51,1.492c1.853,1.825,3.678,3.679,5.512,5.521 C9.805,7.799,9.82,8.513,9.041,9.296c-2.176,2.188-4.358,4.365-6.542,6.543c-0.654,0.653-1.488,0.69-2.064,0.112 c-0.592-0.595-0.58-1.396,0.082-2.061c1.871-1.879,3.76-3.743,5.641-5.614c0.035-0.035,0.061-0.081,0.05-0.067 c-1.86-1.885-3.708-3.76-5.562-5.63C-0.32,1.604-0.199,0.681,0.996,0C1.27,0.001,1.546,0.001,1.823,0.001z"})})})})]})})]})})}},26639:(e,i,l)=>{l.d(i,{A:()=>g});var o=l(89379),n=l(43939),s=l(9950),t=l(13098),a=l(48658),d=l(95557),r=l(40885),u=l(70804),c=l(82569),v=l(55213),m=l(40326),h=l(87620),p=l(44414);const x=e=>{var i,l,s,x,g,y,j,b,f,w,N,A,C,D,L,S,k,I,E,T,B,P,F,R,M,O,V,U;let{initValues:_,data:G,currencyCode:W,handleSubmit:Y,amt:q,setAmt:z,type:H,setType:K,selectedBonus:Z,walletAmount:Q,deposit:J=!1,languageData:X,amtOptions:$,minWithdraw:ee="",maxWithdraw:ie="",identifier:le,utorgCurrencies:oe,isBonusActive:ne,showActiveBonusForfeitWarningModal:se,setPaymentDetails:te}=e;const{selectedLanguageCode:ae}=(0,c.d4)((e=>e.language)),de=null===G||void 0===G||null===(i=G.settings)||void 0===i||null===(l=i.requiredFields)||void 0===l||null===(s=l.find((e=>{let{name:i}=e;return"amount"===i})))||void 0===s?void 0:s.name;let re=J?null!==G&&void 0!==G&&null!==(x=G.settings)&&void 0!==x&&x.minDeposit?Z&&null!==(g=Object.keys(Z))&&void 0!==g&&g.length?Math.max(Number("object"===typeof(null===G||void 0===G||null===(y=G.settings)||void 0===y?void 0:y.minDeposit)?null===G||void 0===G||null===(j=G.settings)||void 0===j?void 0:j.minDeposit[W||"EUR"]:null===G||void 0===G||null===(b=G.settings)||void 0===b?void 0:b.minDeposit),Number(null===Z||void 0===Z||null===(f=Z.bonus)||void 0===f||null===(w=f.currency)||void 0===w||null===(N=w[W||"EUR"])||void 0===N?void 0:N.minDeposit)||1):Number("object"===typeof(null===G||void 0===G||null===(A=G.settings)||void 0===A?void 0:A.minDeposit)?null===G||void 0===G||null===(C=G.settings)||void 0===C?void 0:C.minDeposit[W||"EUR"]:G.settings.minDeposit):Z&&null!==(D=Object.keys(Z))&&void 0!==D&&D.length?Math.max(1,Number((null===Z||void 0===Z||null===(L=Z.bonus)||void 0===L||null===(S=L.currency)||void 0===S||null===(k=S[W])||void 0===k?void 0:k.minDeposit)||0)):1:"object"===typeof(null===G||void 0===G||null===(I=G.settings)||void 0===I?void 0:I.minWithdraw)?Number(null===G||void 0===G||null===(E=G.settings)||void 0===E?void 0:E.minWithdraw[W||"EUR"]):Number(null===G||void 0===G||null===(T=G.settings)||void 0===T?void 0:T.minWithdraw)||Number(Q);const ue=J?Number("object"===typeof(null===G||void 0===G||null===(B=G.settings)||void 0===B?void 0:B.maxDeposit)?Number(null===G||void 0===G||null===(P=G.settings)||void 0===P||null===(F=P.maxDeposit)||void 0===F?void 0:F[W||"EUR"]):Number(null===G||void 0===G||null===(R=G.settings)||void 0===R?void 0:R.maxDeposit))||1e5:"object"===typeof(null===G||void 0===G||null===(M=G.settings)||void 0===M?void 0:M.maxWithdraw)?Number(null===G||void 0===G||null===(O=G.settings)||void 0===O||null===(V=O.maxWithdraw)||void 0===V?void 0:V[W||"EUR"]):Number(null===G||void 0===G||null===(U=G.settings)||void 0===U?void 0:U.maxWithdraw)||Number(Q);re=J?re:Math.min(ue,re),document.addEventListener("wheel",(function(){var e,i,l,o,n,s,t;"number"===(null===(e=document)||void 0===e||null===(i=e.activeElement)||void 0===i?void 0:i.type)&&null!==(l=document)&&void 0!==l&&null!==(o=l.activeElement)&&void 0!==o&&null!==(n=o.classList)&&void 0!==n&&n.contains("noscroll")&&(null===(s=document)||void 0===s||null===(t=s.activeElement)||void 0===t||t.blur())}));const ce=e=>{let{name:i}=e;return(0,p.jsx)("div",{style:{minHeight:"18px",position:"relative"},children:(0,p.jsx)(n.Kw,{component:"div",name:i,className:"error-message"})})};return(0,p.jsx)(p.Fragment,{children:(0,p.jsx)(n.l1,{enableReinitialize:!0,initialValues:(0,o.A)({},_),validationSchema:(0,t.O)({initValues:_,data:G,minDeposit:J?re:ee,maxDeposit:J?ue:ie,currencyCode:W,type:J?"deposit":"withdraw",selectedBonus:J?Z:Q,languageData:X,walletAmount:Q}),onSubmit:e=>{J?Y((0,o.A)((0,o.A)({},e),{},{amount:parseFloat(e.amount)})):ne?(se(),te((0,o.A)((0,o.A)({},e),{},{amount:parseFloat(e.amount)}))):Y((0,o.A)((0,o.A)({},e),{},{amount:parseFloat(e.amount)})),window.scrollTo(0,0)},children:e=>{var i,l,o,s,t,c,x,g,y,j,b,f,w,N,A,C,D,L,S,k,I,E,T,B,P,F,R,M,O;let{values:V,handleSubmit:U,handleChange:Y,setFieldValue:Q,errors:ee,touched:ie}=e;return(0,p.jsxs)(n.lV,{className:"payment-form",children:[de?(0,p.jsx)("p",{className:"min-max-amt",children:null!==G&&void 0!==G&&null!==(i=G.settings)&&void 0!==i&&null!==(l=i.description)&&void 0!==l&&l[ae]?(0,u.Ay)(null===G||void 0===G||null===(o=G.settings)||void 0===o||null===(s=o.description)||void 0===s?void 0:s[ae]):""}):(0,p.jsx)("p",{className:"min-max-amt",children:null!==G&&void 0!==G&&null!==(t=G.settings)&&void 0!==t&&null!==(c=t.description)&&void 0!==c&&c[ae]?(0,u.Ay)(null===G||void 0===G||null===(x=G.settings)||void 0===x||null===(g=x.description)||void 0===g?void 0:g[ae]):null!==G&&void 0!==G&&null!==(y=G.settings)&&void 0!==y&&null!==(j=y.description)&&void 0!==j&&j.EN?(0,u.Ay)(null===G||void 0===G||null===(b=G.settings)||void 0===b||null===(f=b.description)||void 0===f?void 0:f.EN):""}),de&&(0,p.jsxs)(p.Fragment,{children:[(0,p.jsxs)("div",{className:"deposit-amt-text",children:[(0,p.jsx)("p",{className:"deposit-amt-text-title",children:J?null===X||void 0===X?void 0:X.depositAmount:null===X||void 0===X?void 0:X.withdrawAmount}),(0,p.jsxs)("span",{className:"deposit-amt-text-note",children:[J?null===X||void 0===X?void 0:X.minDeposit:null===X||void 0===X?void 0:X.minWithdrawal," ",r.L[W||"EUR"]," ",re," | ",J?null===X||void 0===X?void 0:X.maxDeposit:null===X||void 0===X?void 0:X.maxWithdrawal," ",r.L[W||"EUR"]," ",ue]})]}),(0,p.jsx)("div",{className:"amout-show-btn",children:(0,p.jsx)("input",{name:"amount",type:"number",min:0,step:"any",disabled:"Siru"===(null===G||void 0===G?void 0:G.name),className:"noscroll deposit-amount-input payment-form-control",placeholder:J?null===X||void 0===X?void 0:X.enterDepositAmount:null===X||void 0===X?void 0:X.enterWithdrawAmount,value:V.amount||"",onChange:Y})})]}),(0,p.jsx)("div",{className:"deposit-amt-btn-group",children:$&&de&&Object.keys($).map((e=>("Siru"!==(null===G||void 0===G?void 0:G.name)||"Other"!==$[e])&&![0,"0"].includes($[e])&&(0,p.jsx)("div",{className:"btn-group-wrapper",children:(0,p.jsx)(v.Ay,{variant:m.Vt.PRIMARY,type:"button",className:q===$[e]?"other-amount":"",onClick:()=>{z($[e]),Q("amount","Other"!==$[e]?$[e]:"")},children:"Other"===$[e]?X[$[e]]:"".concat(r.L[W||"EUR"]," ").concat($[e])})},e)))}),null!==ee&&void 0!==ee&&ee.amount&&null!==ie&&void 0!==ie&&ie.amount?(0,p.jsx)(ce,{name:"amount"}):null,null===G||void 0===G||null===(w=G.settings)||void 0===w||null===(N=w.requiredFields)||void 0===N?void 0:N.map(((e,i)=>{let{name:l,values:o,dataType:n}=e,s=[];return o&&(s=o),"currency"===l&&"utorg"===(null===G||void 0===G?void 0:G.aggregator)&&(s=oe),"amount"!==l&&void 0!==_[l]&&(0,p.jsxs)("div",{className:"payment-form-field-group",children:[(0,p.jsx)("div",{className:"deposit-amt-text",children:(0,p.jsx)("p",{className:"deposit-amt-text-label",children:"expirymmyyyy"===l?null===X||void 0===X?void 0:X.capExpiry:(null===X||void 0===X?void 0:X[l])||l.split(/(?=[A-Z])/).filter((e=>"enc"!==e)).map((e=>e.toUpperCase())).join(" ")})}),o||"currency"===l?(0,p.jsxs)("div",{className:"amout-show-btn",children:[(0,p.jsxs)("select",{name:l,className:"payment-form-control",value:(null===V||void 0===V?void 0:V[l])||"",onChange:Y,children:[(0,p.jsx)("option",{value:"",disabled:!0,children:(null===X||void 0===X?void 0:X["select"+(null===l||void 0===l?void 0:l.charAt(0).toUpperCase())+(null===l||void 0===l?void 0:l.slice(1))])||"".concat(null===X||void 0===X?void 0:X.select," ").concat(null===l||void 0===l?void 0:l.charAt(0).toUpperCase()).concat(null===l||void 0===l?void 0:l.slice(1))},""),("string"===typeof s?JSON.parse(s):s).map((e=>null!==e&&void 0!==e&&e.value?(0,p.jsx)("option",{value:e.value,children:e.name},e.value):(0,p.jsx)("option",{value:e,children:e},e)))]}),null!==ee&&void 0!==ee&&ee[l]&&null!==ie&&void 0!==ie&&ie[l]?(0,p.jsx)(ce,{name:l}):null]}):(null===l||void 0===l?void 0:l.length)>8&&"Password"===l.substr((null===l||void 0===l?void 0:l.length)-8)?(0,p.jsxs)("div",{className:"amout-show-btn",children:[(0,p.jsxs)("div",{className:"d-flex",children:[(0,p.jsx)("input",{name:l,type:H,className:"payment-form-control",placeholder:"*******",value:(null===V||void 0===V?void 0:V[l])||"",onChange:Y}),(0,p.jsx)("span",{style:{marginLeft:"-30px",cursor:"pointer"},onClick:()=>K("password"===H?"text":"password"),children:"password"===H?(0,p.jsx)(a.A,{name:"eye-password-visible"}):(0,p.jsx)(a.A,{name:"eye-password-invisible"})})]}),null!==ee&&void 0!==ee&&ee[l]&&null!==ie&&void 0!==ie&&ie[l]?(0,p.jsx)(ce,{name:l}):null]}):"date"===n?(0,p.jsxs)("div",{className:"amout-show-btn",children:[(0,p.jsx)("input",{name:l,type:"text",className:"payment-form-control",placeholder:"MM/YYYY",value:(null===V||void 0===V?void 0:V.expirymmyyyy)||"",onChange:e=>{let i=e.target.value;const l=e.target.value;if(!isNaN(null===l||void 0===l?void 0:l.replace(/[/]/,""))&&i.length<8){var o;if(i.length>2&&(null===(o=i)||void 0===o||!o.includes("/"))){var n;const e=i.substring(0,2),l=null===(n=i.substring(2))||void 0===n?void 0:n.replaceAll("/","");i="".concat(e,"/").concat(l)}Q("expirymmyyyy",i)}}}),null!==ee&&void 0!==ee&&ee[l]&&null!==ie&&void 0!==ie&&ie[l]?(0,p.jsx)(ce,{name:l}):null]}):(0,p.jsxs)("div",{className:"amout-show-btn",children:[(0,p.jsx)("input",{name:l,className:"payment-form-control",type:["string","text"].includes(n)||"encCreditcardNumber"===l?"text":"encCvv"===l?"password":"number",placeholder:(null===X||void 0===X?void 0:X["".concat(l,"Placeholder")])||"".concat(null===X||void 0===X?void 0:X.loginEnter," ").concat(l.split(/(?=[A-Z])/).filter((e=>"enc"!==e)).map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join(" ")),value:(null===V||void 0===V?void 0:V[l])||"",onChange:e=>{var i;if("encCvv"===l)(null===(i=e.target.value)||void 0===i?void 0:i.length)<5&&!isNaN(e.target.value)&&Y(e);else if("encCreditcardNumber"===l){var o;const i=e.target.value,l=e.target.value;(null===(o=e.target.value)||void 0===o?void 0:o.length)<20&&!isNaN(l.replaceAll(/ /g,""))&&Q("encCreditcardNumber",i)}else Y(e)}}),null!==ee&&void 0!==ee&&ee[l]&&null!==ie&&void 0!==ie&&ie[l]?(0,p.jsx)(ce,{name:l}):null]})]},i)})),(0,p.jsxs)("div",{className:"make-deposit-btn text-center w-100",children:[J&&(null===Z||void 0===Z?void 0:Z.bonus)&&(0,p.jsx)("div",{className:"deposit-amt-text mt-4",children:(0,p.jsxs)("p",{className:"deposit-amt-text-label",children:[null===X||void 0===X?void 0:X.bonusSelected,": ",(null===Z||void 0===Z||null===(A=Z.bonus)||void 0===A||null===(C=A.promotionTitle)||void 0===C?void 0:C[null===(D=(0,d.Gq)("language"))||void 0===D?void 0:D.toUpperCase()])||(null===Z||void 0===Z||null===(L=Z.bonus)||void 0===L||null===(S=L.promotionTitle)||void 0===S?void 0:S.EN)||(null===Z||void 0===Z||null===(k=Z.bonus)||void 0===k?void 0:k.promotionTitle)]})}),(0,p.jsxs)(v.Ay,{variant:m.Vt.PRIMARY,type:"submit",className:"".concat(J&&null!==Z&&void 0!==Z&&Z.bonus?"":"mt-4"),onClick:U,children:[J?null===X||void 0===X?void 0:X[de?"headerDepositOf":"headerDeposit"]:null===X||void 0===X?void 0:X[de?"withdrawalOf":"withdrawal"]," ",de?r.L[W||"EUR"]:""," ",de?V.amount||0:"",J&&(null===V||void 0===V?void 0:V.amount)&&(null===Z||void 0===Z||null===(I=Z.bonus)||void 0===I||null===(E=I.currency)||void 0===E||null===(T=E[W])||void 0===T?void 0:T.maxBonusThreshold)&&(null===Z||void 0===Z||null===(B=Z.bonus)||void 0===B?void 0:B.depositBonusPercent)&&" + ".concat(null!==Z&&void 0!==Z&&Z.freeSpinsQty?"":r.L[W||"EUR"]," ").concat(null!==Z&&void 0!==Z&&Z.freeSpinsQty?(0,h.ih)(Z,W,le):Math.min(null===(P=(null===V||void 0===V?void 0:V.amount)*(null===Z||void 0===Z||null===(F=Z.bonus)||void 0===F?void 0:F.depositBonusPercent)/100)||void 0===P?void 0:P.toFixed(2),null===Z||void 0===Z||null===(R=Z.bonus)||void 0===R||null===(M=R.currency)||void 0===M||null===(O=M[W])||void 0===O?void 0:O.maxBonusThreshold)," ").concat(null!==Z&&void 0!==Z&&Z.freeSpinsQty?"Freespin(s)":"Bonus")]})]})]})}})})},g=s.memo(x)},13098:(e,i,l)=>{l.d(i,{O:()=>s});var o=l(60666),n=l(40885);const s=e=>{let{initValues:i,data:l,minDeposit:n,maxDeposit:s,currencyCode:a,type:d,languageData:r,walletAmount:u}=e;return o.Ik().shape(t(i,l,n,s,a,d,r,u))},t=(e,i,l,s,t,a,d,r)=>{const u={};for(const v in null===i||void 0===i||null===(c=i.settings)||void 0===c?void 0:c.requiredFields){var c;const m=i.settings.requiredFields[v],h=m.name,p=m.dataType;if("amount"===h)u[h]=o.ai().typeError(null===d||void 0===d?void 0:d.onlyNumbers).min(l,"".concat("deposit"===a?null===d||void 0===d?void 0:d.minDepositOf:null===d||void 0===d?void 0:d.minWithdrawalOf," ").concat(n.L[t||"EUR"]," ").concat(l," ").concat(null===d||void 0===d?void 0:d.isRequired)).max(s,"".concat("deposit"===a?null===d||void 0===d?void 0:d.maxDeposit:null===d||void 0===d?void 0:d.maxWithdrawal," ").concat(n.L[t||"EUR"]," ").concat(s," ").concat(null===d||void 0===d?void 0:d.isAllowed)).test("is-withdrawable",null===d||void 0===d?void 0:d.notEnoughBalance,(function(){return"deposit"===a||parseFloat(l)<=parseFloat(r)})).required("".concat("deposit"===a?null===d||void 0===d?void 0:d.depositAmountRequired:null===d||void 0===d?void 0:d.withdrawAmountRequired," !"));else if(void 0!==e[h])switch(h){case"encCreditcardNumber":u[h]=o.Yj().min(13,null===d||void 0===d?void 0:d.min13Numbers).max(19,null===d||void 0===d?void 0:d.max19Numbers).required("".concat(null===d||void 0===d?void 0:d.capCreditCardRequired," !"));break;case"encCvv":u[h]=o.Yj().min(3,null===d||void 0===d?void 0:d.min3Numbers).max(4,null===d||void 0===d?void 0:d.max4Numbers).required("".concat(null===d||void 0===d?void 0:d.capCvvRequired," !"));break;case"expi
1rymmyyyy":u[h]=o.Yj().matches(/^((0[1-9])|(1[0-2]))\/(\d{2}|\d{4})$/,null===d||void 0===d?void 0:d.expiryIncorrectFormat).required("".concat(null===d||void 0===d?void 0:d.capExpiryRequired," !"));break;default:u[h]="number"===p?o.ai().required((null===d||void 0===d?void 0:d["".concat(h,"Required")])||"".concat(h.split(/(?=[A-Z])/).filter((e=>"enc"!==e)).map((e=>e.toUpperCase())).join(" ")," ").concat(null===d||void 0===d?void 0:d.required," !")):"email"===h?o.Yj().email(null===d||void 0===d?void 0:d.invalidEmail).required("".concat(null===d||void 0===d?void 0:d.capEmailRequired," !")):o.Yj().required((null===d||void 0===d?void 0:d["".concat(h,"Required")])||"".concat(h.split(/(?=[A-Z]_)/).filter((e=>"enc"!==e)).map((e=>e.toUpperCase())).join(" ")," ").concat(null===d||void 0===d?void 0:d.required," !"))}}return u}},54251:(e,i,l)=>{l.d(i,{A:()=>v});var o=l(89379),n=l(80045),s=(l(9950),l(48063)),t=l(57941),a=l(82569),d=l(12783),r=l(32425),u=l(44414);const c=["showModal"],v=e=>{let{showModal:i}=e,l=(0,n.A)(e,c);const v=(0,a.wA)();return(0,u.jsx)(r.d,{modalType:"PAYMENT_RECEIPT_MODAL",show:i,className:"payment-receipt-modal-container",body:()=>(0,u.jsx)(d.A,(0,o.A)({onClose:()=>{v((0,s.Oo)(t.lx.PAYMENT_RECEIPT_MODAL))}},l))})}},12783:(e,i,l)=>{l.d(i,{A:()=>N});var o=l(89379),n=l(9950),s=l(82569),t=l(15935),a=l(95557),d=l(86615),r=l(20381),u=l(55213),c=l(40326),v=l(44414);const m=e=>{var i,l,o,n,t,d,m;let{paymentStatus:h,navigate:p,setShow:x,deposit:g}=e;const{languageData:y}=(0,s.d4)((e=>e.language));return(0,v.jsxs)("div",{className:"deposit-receipt-content payment-receipt-failed",children:[(0,v.jsx)("div",{className:"text-center status_animation_wrapper",children:(0,v.jsx)(r.A,{name:"payment-failed",className:"payment-status-icon payment-status-icon--failed",width:"83",height:"83"})}),(0,v.jsx)("div",{className:"deposit-receipt-detail"}),(0,v.jsxs)("div",{className:"deposit-receipt-list",children:[null!==h&&void 0!==h&&null!==(i=h.messages)&&void 0!==i&&i.length?h.messages.map(((e,i)=>e.value&&(0,v.jsxs)("div",{className:"info-list-item",children:[(0,v.jsx)("span",{className:"info-list-item-label",children:e.label}),(0,v.jsx)("span",{className:"info-list-item-value",children:e.value})]},i))):(0,v.jsx)("p",{className:"payment-receipt-failed-message",children:null===y||void 0===y?void 0:y.somethingWentWrong}),(0,v.jsx)("div",{className:"info-list-item info-list-item--message",children:(0,v.jsx)("span",{className:"info-list-item-message",children:g?null!==h&&void 0!==h&&h.error?null===(n=(null===h||void 0===h?void 0:h.error)||(null===h||void 0===h?void 0:h.statusCode))||void 0===n||null===(t=n.split("_"))||void 0===t?void 0:t.join(" "):(null===h||void 0===h||null===(l=h.errors)||void 0===l||null===(o=l[0])||void 0===o?void 0:o.msg)||(null===y||void 0===y?void 0:y.somethingWentWrong):null===h||void 0===h||null===(d=h.statusCode)||void 0===d||null===(m=d.split("_"))||void 0===m?void 0:m.join(" ")})})]}),(0,v.jsx)("div",{className:"continue-site-btn",children:(0,v.jsx)(u.Ay,{variant:c.Vt.PRIMARY,type:"button",className:"text-center",onClick:()=>{x(!1),p("/".concat((0,a.Gq)("language").toLowerCase(),"/account/").concat(g?"deposit":"withdraw"))},children:null===y||void 0===y?void 0:y.continueToSite})})]})},h=e=>{var i,l,o,n;let{paymentStatus:t,navigate:d,setShow:c,deposit:m,fetchAmount:h,setShowReceipt:p}=e;const{languageData:x}=(0,s.d4)((e=>e.language));return(0,v.jsx)(v.Fragment,{children:m?(0,v.jsxs)("div",{className:"deposit-receipt-content",children:[(0,v.jsx)("div",{className:"text-center status_animation_wrapper",children:(0,v.jsx)(r.A,{name:"payment-success",className:"payment-status-icon payment-status-icon--success",width:"83",height:"83"})}),(0,v.jsxs)("div",{className:"deposit-receipt-detail",children:[(0,v.jsx)("h4",{className:"deposit-receipt-detail-title",children:null===t||void 0===t||null===(i=t.messages)||void 0===i||null===(l=i.find((e=>{let{label:i}=e;return"Amount deposited to player account"===i})))||void 0===l?void 0:l.value}),(0,v.jsxs)("p",{className:"deposit-receipt-detail-date text-center",children:[(new Date).toDateString(),", ",(new Date).toLocaleTimeString()]})]}),(0,v.jsxs)("div",{className:"deposit-receipt-list",children:[(null===t||void 0===t?void 0:t.messages)&&(null===(o=t.messages)||void 0===o?void 0:o.map(((e,i)=>e.value&&(0,v.jsxs)("div",{className:"info-list-item",children:[(0,v.jsx)("span",{className:"info-list-item-label",children:e.label}),(0,v.jsx)("span",{className:"info-list-item-value",children:e.value})]},i)))),(0,v.jsx)("div",{className:"info-list-item info-list-item--message",children:(0,v.jsxs)("span",{className:"info-list-item-message",children:[null===x||void 0===x?void 0:x.receiptOfYour," ",(null===t||void 0===t?void 0:t.pspService)||(null===t||void 0===t?void 0:t.psp)," ",null===x||void 0===x?void 0:x.transaction]})})]}),(0,v.jsx)("div",{className:"continue-site-btn",children:(0,v.jsx)(u.Ay,{type:"button",className:"text-center",onClick:()=>{c(!1),d("/".concat((0,a.Gq)("language").toLowerCase(),"/account/transaction"))},children:null===x||void 0===x?void 0:x.continueToSite})})]}):(0,v.jsxs)("div",{className:"deposit-receipt-content",children:[(0,v.jsx)("div",{className:"text-center status_animation_wrapper",children:(0,v.jsx)(r.A,{name:"payment-success",className:"payment-status-icon payment-status-icon--success",width:"83",height:"83"})}),(0,v.jsxs)("div",{className:"deposit-receipt-detail",children:[(0,v.jsx)("h4",{className:"deposit-receipt-detail-title",children:h&&("-"===h.substr(0,1)?h.substr(1):h)}),(0,v.jsxs)("p",{className:"deposit-receipt-detail-date text-center",children:[(new Date).toLocaleDateString(),","," ",(new Date).toLocaleTimeString()]})]}),(0,v.jsxs)("div",{className:"deposit-receipt-list",children:[(null===t||void 0===t?void 0:t.messages)&&(null===(n=t.messages)||void 0===n?void 0:n.map(((e,i)=>e.value&&(0,v.jsxs)("div",{className:"info-list-item",children:[(0,v.jsx)("span",{className:"info-list-item-label",children:e.label}),(0,v.jsx)("span",{className:"info-list-item-value",children:e.value})]},i)))),(0,v.jsx)("div",{className:"info-list-item info-list-item--message",children:(0,v.jsxs)("span",{className:"info-list-item-message",children:[null===x||void 0===x?void 0:x.receiptOfYour," ",(null===t||void 0===t?void 0:t.pspService)||(null===t||void 0===t?void 0:t.psp)," ",null===x||void 0===x?void 0:x.withdrawal,".",(0,v.jsx)("br",{}),(0,v.jsx)("br",{}),null===x||void 0===x?void 0:x.withdrawRequestCreated,"."]})})]}),(0,v.jsx)("div",{className:"continue-site-btn",children:(0,v.jsx)(u.Ay,{type:"button",className:"text-center",onClick:()=>{var e;null===(e=p||c)||void 0===e||e(!1),d("/".concat((0,a.Gq)("language").toLowerCase(),"/account/withdraw"))},children:null===x||void 0===x?void 0:x.continueToSite})})]})})},p=e=>{var i,l,o,n,t,d,c,m,h,p,x,g,y,j,b,f,w,N;let{paymentStatus:A,status:C,setShow:D,navigate:L,deposit:S}
1=e;const{languageData:k}=(0,s.d4)((e=>e.language)),{paymentErrCode:I}=(0,s.d4)((e=>e.casinoMenu)),{paymentData:E}=(0,s.d4)((e=>e.payment));return(0,v.jsxs)("div",{className:"deposit-receipt-content",children:[(0,v.jsx)("div",{className:"text-center status_animation_wrapper",children:(0,v.jsx)(r.A,{name:"payment-success",className:"payment-status-icon payment-status-icon--success",width:"83",height:"83"})}),(0,v.jsxs)("div",{className:"deposit-receipt-list text-center",children:[(0,v.jsx)("p",{children:null===k||void 0===k?void 0:k.transactionInfo}),(0,v.jsx)("div",{className:"deposit-receipt-detail"})]}),(0,v.jsxs)("div",{className:"deposit-receipt-list",children:[null!==A&&void 0!==A&&A.messages?(null===A||void 0===A?void 0:A.messages)&&(null===(g=A.messages)||void 0===g?void 0:g.map(((e,i)=>e.value&&(0,v.jsxs)("div",{className:"info-list-item",children:[(0,v.jsx)("span",{className:"info-list-item-label",children:e.label}),(0,v.jsx)("span",{className:"info-list-item-value",children:e.value})]},i)))):(0,v.jsx)("p",{children:3086===I?"".concat(null===k||void 0===k?void 0:k.depositLimitReached,"."):null!==A&&void 0!==A&&null!==(i=A.errors)&&void 0!==i&&null!==(l=i[0])&&void 0!==l&&l.msg?null===A||void 0===A||null===(o=A.errors)||void 0===o||null===(n=o[0])||void 0===n||null===(t=n.msg)||void 0===t||null===(d=t.split("_"))||void 0===d?void 0:d.join(" "):null!==E&&void 0!==E&&null!==(c=E.error)&&void 0!==c&&null!==(m=c[0])&&void 0!==m&&m.msg?null===E||void 0===E||null===(h=E.error)||void 0===h||null===(p=h[0])||void 0===p||null===(x=p.msg)||void 0===x?void 0:x.replaceAll("_"," "):(null===E||void 0===E?void 0:E.description)||(null===k||void 0===k?void 0:k.somethingWentWrong)}),(0,v.jsx)("div",{className:"info-list-item info-list-item--message",children:(0,v.jsx)("span",{className:"info-list-item-message",children:S?null!==A&&void 0!==A&&A.error?null===(b=(null===A||void 0===A?void 0:A.error)||(null===A||void 0===A?void 0:A.statusCode))||void 0===b||null===(f=b.split("_"))||void 0===f?void 0:f.join(" "):(null===A||void 0===A||null===(y=A.errors)||void 0===y||null===(j=y[0])||void 0===j?void 0:j.msg)||(null===k||void 0===k?void 0:k.somethingWentWrong):null===A||void 0===A||null===(w=A.statusCode)||void 0===w||null===(N=w.split("_"))||void 0===N?void 0:N.join(" ")})})]}),(0,v.jsx)("div",{className:"continue-site-btn text-center",children:(0,v.jsx)(u.Ay,{type:"button",onClick:()=>{D(!1),L("/".concat((0,a.Gq)("language").toLowerCase(),"/account/").concat(S?"deposit":"withdraw"))},children:null===k||void 0===k?void 0:k.continueToSite})})]})},x=e=>{let{paymentStatus:i,navigate:l,deposit:o=!1,setShow:n,fetchAmount:s,setShowReceipt:t,loading:a=!1}=e;return a?(0,v.jsx)(d.A,{top:"6%"}):(0,v.jsx)(v.Fragment,{children:["FAILED","INCONSISTENT","CANCELLED"].includes(null===i||void 0===i?void 0:i.txState)?(0,v.jsx)(m,{deposit:o,paymentStatus:i,navigate:l,setShow:n}):"SUCCESSFUL"===(null===i||void 0===i?void 0:i.txState)?(0,v.jsx)(h,{setShowReceipt:t,fetchAmount:s,deposit:o,paymentStatus:i,navigate:l,setShow:n}):(0,v.jsx)(p,{deposit:o,paymentStatus:i,status:null===i||void 0===i?void 0:i.txState,setShow:n,navigate:l})})};var g=l(80010),y=l(95252);const j=e=>{var i,l,o,n;let{amount:t="",provider:a="",onTryAgain:d,deposit:m,paymentStatus:h,languageData:p}=e;const{paymentData:x}=(0,s.d4)((e=>e.payment));return(0,v.jsxs)("div",{className:"payment-failure-receipt-container-v2",children:[(0,v.jsxs)("div",{className:"payment-section-receipt-content-top",children:[(0,v.jsxs)("div",{className:"header-section-failure",children:[(0,v.jsx)("div",{className:"hourglass-circle",children:(0,v.jsx)(r.A,{name:"xmark",height:43,width:43})}),(0,v.jsx)("div",{className:"amount-text-failure",children:t}),(0,v.jsx)("div",{className:"status-text-failure",children:(null===p||void 0===p?void 0:p.transactionFailed)||"Transaction Failed"})]}),(a||(null===x||void 0===x?void 0:x.txId))&&(0,v.jsxs)("div",{className:"details-section-failure",children:[(null===x||void 0===x?void 0:x.txId)&&(0,v.jsxs)("div",{className:"detail-row-failure",children:[(0,v.jsxs)("div",{className:"detail-row-left-section",children:[(0,v.jsx)("div",{className:"detail-label-failure",children:null===p||void 0===p?void 0:p.transactionId}),(0,v.jsx)("div",{className:"detail-value-failure transaction-id-value-failure",children:null===x||void 0===x?void 0:x.txId})]}),(0,v.jsx)("div",{className:"copy-button-wrapper",children:(0,v.jsx)(u.Ay,{variant:c.Vt.TEXT_ONLY,className:"copy-button-failure",onClick:()=>{navigator.clipboard.writeText(null===x||void 0===x?void 0:x.txId).then((()=>{(0,g.o)(null===p||void 0===p?void 0:p.copied,"success")})).catch((e=>console.error("Could not copy text: ",e)))},"aria-label":"Copy Transaction ID",children:(0,v.jsx)(r.A,{name:"copy",width:18,height:18})})})]}),(null===x||void 0===x?void 0:x.txId)&&a&&(0,v.jsx)("div",{className:"divider"}),a&&(0,v.jsx)(v.Fragment,{children:(0,v.jsx)("div",{className:"detail-row-failure",children:(0,v.jsxs)("div",{className:"detail-row-left-section",children:[(0,v.jsx)("div",{className:"detail-label-failure",children:(null===p||void 0===p?void 0:p.provider)||""}),(0,v.jsx)("div",{className:"detail-value-failure",children:a})]})})})]}),(0,v.jsx)("div",{className:"error-message-wrapper",children:null!==h&&void 0!==h&&h.error?null===(o=(null===h||void 0===h?void 0:h.error)||(null===h||void 0===h?void 0:h.statusCode))||void 0===o||null===(n=o.split("_"))||void 0===n?void 0:n.join(" "):(null===h||void 0===h||null===(i=h.errors)||void 0===i||null===(l=i[0])||void 0===l?void 0:l.msg)||(null===p||void 0===p?void 0:p.somethingWentWrong)})]}),(0,v.jsx)(u.Ay,{variant:c.Vt.PRIMARY,className:"try-again-button-failure",onClick:d,children:m?null===p||void 0===p?void 0:p.tryDepositAgain:null===p||void 0===p?void 0:p.tryWithdrawAgain})]})},b=e=>{var i,l;let{amount:o="",provider:s="",deposit:t=!1,languageData:d,onClose:m=()=>{},paymentStatus:h,navigate:p}=e;
1const[x,j]=(0,n.useState)(5);(0,n.useEffect)((()=>{if(!t)return;if(x<=0)return void m();const e=setInterval((()=>{j((e=>e-1))}),1e3);return()=>clearInterval(e)}),[x,t]);const b=null===h||void 0===h||null===(i=h.messages)||void 0===i?void 0:i.find((e=>{let{keys:i}=e;return null===i||void 0===i?void 0:i.includes("receiptWithdrawalFee")})),f=null===h||void 0===h||null===(l=h.messages)||void 0===l?void 0:l.find((e=>{let{keys:i}=e;return null===i||void 0===i?void 0:i.includes("receiptWithdrawalTxAmount")}));return(0,v.jsxs)("div",{className:"payment-success-receipt-container-v2",children:[(0,v.jsxs)("div",{className:"payment-section-receipt-content-top",children:[(0,v.jsxs)("div",{className:"header-section-success",children:[(0,v.jsx)("div",{className:"hourglass-circle",children:(0,v.jsx)(r.A,{name:"receiptSuccess",height:100,width:100})}),(0,v.jsx)("div",{className:"amount-text-success",children:o}),(0,v.jsx)("div",{className:"status-text-success",children:"".concat(t?(null===d||void 0===d?void 0:d.transactionSuccessfull)||"Transaction Successful":(null===d||void 0===d?void 0:d.withdrawRequestedSuccessfully)||"Withdraw Requested Successfully")})]}),((null===h||void 0===h?void 0:h.txRefId)||s)&&(0,v.jsxs)("div",{className:"details-section-success",children:[(null===h||void 0===h?void 0:h.txRefId)&&(0,v.jsxs)("div",{className:"detail-row-success",children:[(0,v.jsxs)("div",{className:"detail-row-left-section",children:[(0,v.jsx)("div",{className:"detail-label-success",children:null===d||void 0===d?void 0:d.TransactionId}),(0,v.jsx)("div",{className:"detail-value-success transaction-id-value-success",children:null===h||void 0===h?void 0:h.txRefId})]}),(0,v.jsx)("div",{className:"copy-button-wrapper",children:(0,v.jsx)(u.Ay,{variant:c.Vt.TEXT_ONLY,className:"copy-button-success",onClick:()=>{navigator.clipboard.writeText(null===h||void 0===h?void 0:h.txRefId).then((()=>{(0,g.o)(null===d||void 0===d?void 0:d.copied,"success")})).catch((e=>console.error("Could not copy text: ",e)))},"aria-label":"Copy Transaction ID",children:(0,v.jsx)(r.A,{name:"copy",width:18,height:18})})})]}),(null===h||void 0===h?void 0:h.txRefId)&&(null===h||void 0===h?void 0:h.psp)&&(0,v.jsx)("div",{className:"divider"}),(null===h||void 0===h?void 0:h.psp)&&(0,v.jsx)(v.Fragment,{children:(0,v.jsx)("div",{className:"detail-row-success",children:(0,v.jsxs)("div",{className:"detail-row-left-section",children:[(0,v.jsx)("div",{className:"detail-label-success",children:(null===d||void 0===d?void 0:d.provider)||"Provider"}),(0,v.jsx)("div",{className:"detail-value-success",children:null===h||void 0===h?void 0:h.psp})]})})}),(null===b||void 0===b?void 0:b.value)&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("div",{className:"divider"}),(0,v.jsx)("div",{className:"detail-row-success",children:(0,v.jsxs)("div",{className:"detail-row-left-section",children:[(0,v.jsx)("div",{className:"detail-label-success",children:(null===d||void 0===d?void 0:d.withdrawFee)||"Withdraw Fee"}),(0,v.jsx)("div",{className:"detail-value-success",children:null===b||void 0===b?void 0:b.value})]})})]}),(null===f||void 0===f?void 0:f.value)&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("div",{className:"divider"}),(0,v.jsx)("div",{className:"detail-row-success",children:(0,v.jsxs)("div",{className:"detail-row-left-section",children:[(0,v.jsx)("div",{className:"detail-label-success",children:(null===d||void 0===d?void 0:d.receiptWithdrawTxText)||"Amount that will be deposited to your account"}),(0,v.jsx)("div",{className:"detail-value-success",children:null===f||void 0===f?void 0:f.value})]})})]})]}),t&&(0,v.jsxs)("div",{className:"user-feedback-section",children:[(0,v.jsx)(y.A,{as:"span",animation:"border",size:"sm",role:"status","aria-hidden":"true"}),(0,v.jsx)("span",{className:"feedback-text",children:"".concat((null===d||void 0===d?void 0:d.casinoRedirectionSuccessText)||"Redirecting to Casino"," ").concat(x)})]})]}),!t&&(0,v.jsx)(u.Ay,{variant:c.Vt.PRIMARY,className:"explore-games-button",onClick:()=>{p("/".concat((0,a.Gq)("language").toLowerCase(),"/casino/all"))},children:(null===d||void 0===d?void 0:d.exploreGamesWhileYouWait)||"Explore Games While You Wait"})]})},f=e=>{var i,l,o,n,t,a,d,m,h,p,x,y,j,b,f,w,N,A;let{amount:C="",provider:D="",onTryAgain:L,languageData:S,deposit:k,paymentStatus:I}=e;const{paymentErrCode:E}=(0,s.d4)((e=>e.casinoMenu)),{paymentData:T}=(0,s.d4)((e=>e.payment));return(0,v.jsxs)("div",{className:"payment-status-receipt-container-v2",children:[(0,v.jsxs)("div",{className:"payment-section-receipt-content-top",children:[(0,v.jsxs)("div",{className:"header-section-pending",children:[(0,v.jsx)("div",{className:"hourglass-circle",children:(0,v.jsx)(r.A,{name:"hourglass",height:50,width:32})}),(0,v.jsx)("div",{className:"amount-text-pending",children:C}),(0,v.jsx)("div",{className:"status-text-pending",children:"Transaction Pending"})]}),((null===T||void 0===T?void 0:T.txId)||(null===T||void 0===T?void 0:T.provider))&&(0,v.jsxs)("div",{className:"details-section-pending",children:[(null===T||void 0===T?void 0:T.txId)&&(0,v.jsxs)("div",{className:"detail-row-pending",children:[(0,v.jsxs)("div",{className:"detail-row-left-section",children:[(0,v.jsx)("div",{className:"detail-label-pending",children:null===S||void 0===S?void 0:S.transactionId}),(0,v.jsx)("div",{className:"detail-value-pending transaction-id-value-pending",children:null===T||void 0===T?void 0:T.txId})]}),(0,v.jsx)("div",{className:"copy-button-wrapper",children:(0,v.jsx)(u.Ay,{variant:c.Vt.TEXT_ONLY,className:"copy-button-pending",onClick:()=>{navigator.clipboard.writeText(null===T||void 0===T?void 0:T.txId).then((()=>{(0,g.o)(null===S||void 0===S?void 0:S.copied,"success")})).catch((e=>console.error("Could not copy text: ",e)))},"aria-label":"Copy Transaction ID",children:(0,v.jsx)(r.A,{name:"copy",width:18,height:18})})})]}),(null===T||void 0===T?void 0:T.txId)&&D&&(0,v.jsx)("div",{className:"divider"}),D&&(0,v.jsx)(v.Fragment,{children:(0,v.jsx)("div",{className:"detail-row-pending",children:(0,v.jsxs)("div",{className:"detail-row-left-section",children:[(0,v.jsx)("div",{className:"detail-label-pending",children:(null===S||void 0===S?void 0:S.provider)||""}),(0,v.jsx)("div",{className:"detail-value-pending",children:D})]})})})]}),(0,v.jsx)("div",{className:"error-message-wrapper",children:null!==I&&void 0!==I&&I.messages?(null===I||void 0===I?void 0:I.messages)&&(null===(y=I.messages)||void 0===y?void 0:y.map(((e,i)=>e.value&&(0,v.jsxs)("div",{className:"info-list-item",children:[(0,v.jsx)("span",{className:"info-list-item-label",children:e.label}),(0,v.jsx)("span",{className:"info-list-item-value",children:e.value})]},i)))):(0,v.jsx)("p",{className:"error-message",children:3086===E?"".concat(null===S||void 0===S?void 0:S.depositLimitReached,"."):null!==I&&void 0!==I&&null!==(i=I.errors)&&void 0!==i&&null!==(l=i[0])&&void 0!==l&&l.msg?null===I||void 0===I||null===(o=I.errors)||void 0===o||null===(n=o[0])||void 0===n||null===(t=n.msg)||void 0===t||null===(a=t.split("_"))||void 0===a?void 0:a.join(" "):null!==T&&void 0!==T&&null!==(d=T.error)&&void 0!==d&&null!==(m=d[0])&&void 0!==m&&m.msg?null===T||void 0===T||null===(h=T.error)||void 0===h||null===(p=h[0])||void 0===p||null===(x=p.msg)||void 0===x?void 0:x.replaceAll("_"," "):(null===T||void 0===T?void 0:T.description)||(null===S||void 0===S?void 0:S.somethingWentWrong)})}),(0,v.jsx)("div",{className:"user-feedback-section",children:(0,v.jsx)("span",{className:"feedback-text",children:k?null!==I&&void 0!==I&&I.error?null===(f=(null===I||void 0===I?void 0:I.error)||(null===I||void 0===I?void 0:I.statusCode))||void 0===f||null===(w=f.split("_"))||void 0===w?void 0:w.join(" "):(null===I||void 0===I||null===(j=I.errors)||void 0===j||null===(b=j[0])||void 0===b?void 0:b.msg)||(null===S||void 0===S?void 0:S.somethingWentWrong):null===I||void 0===I||null===(N=I.statusCode)||void 0===N||null===(A=N.split("_"))||void 0===A?void 0:A.join(" ")})})]}),(0,v.jsx)(u.Ay,{variant:c.Vt.PRIMARY,className:"try-again-button-pending",onClick:L,children:k?null===S||void 0===S?void 0:S.tryDepositAgain:null===S||void 0===S?void 0:S.tryWithdrawAgain})]})},w=e=>{let{paymentStatus:i,navigate:l,deposit:o=!1,setShow:n,fetchAmount:t,setShowReceipt:r,loading:u=!1,provider:c="",onClose:m=()=>{}}=e;const{languageData:h}=(0,s.d4)((e=>e.language));return u?(0,v.jsx)("div",{className:"payment-receipt-loader",children:(0,v.jsx)(d.A,{top:"6%"})}):(0,v.jsx)(v.Fragment,{children:["FAILED","INCONSISTENT","CANCELLED"].includes(null===i||void 0===i?void 0:i.txState)?(0,v.jsx)(j,{deposit:o,paymentStatus:i,navigate:l,setShow:n,languageData:h,provider:c,onTryAgain:()=>{n(!1),l("/".concat((0,a.Gq)("language").toLowerCase(),"/account/").concat(o?"deposit":"withdraw")),m()}}):"SUCCESSFUL"===(null===i||void 0===i?void 0:i.txState)||!o&&"WAITING_APPROVAL"===(null===i||void 0===i?void 0:i.txState)?(0,v.jsx)(b,{setShowReceipt:r,fetchAmount:t,deposit:o,paymentStatus:i,navigate:l,setShow:n,languageData:h,provider:c,onClose:()=>{n(!1),l("/".concat((0,a.Gq)("language").toLowerCase(),"/account/").concat(o?"deposit":"withdraw")),m()}}):(0,v.jsx)(f,{deposit:o,languageData:h,paymentStatus:i,status:null===i||void 0===i?void 0:i.txState,setShow:n,navigate:l,provider:c,onTryAgain:()=>{n(!1),l("/".concat((0,a.Gq)("language").toLowerCase(),"/account/").concat(o?"deposit":"withdraw")),m()}})})},N=e=>{var i;const l=(0,s.d4)((e=>{var i;return null===(i=e.uiConfig)||void 0===i?void 0:i.general})),n=null!==(i=null===l||void 0===l?void 0:l.paymentReceipt)&&void 0!==i?i:t.Ue.V1;return("object"===typeof n&&null!==n&&void 0!==n&&n.variant?n.variant:n)===t.Ue.V1?(0,v.jsx)(x,(0,o.A)({},e)):(0,v.jsx)(w,(0,o.A)({},e))}},57597:(e,i,l)=>{l.d(i,{A:()=>t});l(9950);var o=l(20381),n=l(82569),s=l(44414);const t=e=>{let{status:i}=e;const{languageData:l}=(0,n.d4)((e=>e.language)),t=((e,i)=>{switch(e){case 0:return{variant:"status-pending",text:(null===i||void 0===i?void 0:i.pending)||"Pending",icon:"clock"};case 1:default:return{variant:"status-success",text:(null===i||void 0===i?void 0:i.success)||"Successful",icon:"check-circle"};case 2:return{variant:"status-failed",text:(null===i||void 0===i?void 0:i.cancelled)||"Cancelled",icon:"x-circle"};case 3:return{variant:"status-failed",text:(null===i||void 0===i?void 0:i.failed)||"Failed",icon:"x-circle"};case 4:return{variant:"status-pending",text:(null===i||void 0===i?void 0:i.rollback)||"Rollback",icon:"clock"};case 5:return{variant:"status-success",text:(null===i||void 0===i?void 0:i.approved)||"Approved",icon:"check-circle"};case 6:return{variant:"status-failed",text:(null===i||void 0===i?void 0:i.rejected)||"Rejected",icon:"x-circle"};case 7:return{variant:"status-pending",text:(null===i||void 0===i?void 0:i.requested)||"Requested",icon:"clock"};case 11:return{variant:"status-pending",text:(null===i||void 0===i?void 0:i.initiated)||"Initiated",icon:"clock"};case 10:return{variant:"status-failed",text:(null===i||void 0===i?void 0:i.reRequested)||"Re-Requested",icon:"x-circle"}}})(i,l);return(0,s.jsx)("div",{className:"status-badge ".concat(t.variant),children:(0,s.jsxs)("div",{className:"status-content",children:[(0,s.jsx)("div",{className:"status-icon",children:(0,s.jsx)(o.A,{name:t.icon,width:"14px",height:"14px"})}),(0,s.jsx)("p",{className:"status-text",children:t.text})]})})}},48801:(e,i,l)=>{l.d(i,{x:()=>o});const o={betHistory:"noBetHistory",promotionPage:"noPromotions",bonusPage:"noBonuses",bonusPageHistory:"noHistory",bonusPageYourBonuses:"noBonuses",withdrawalHistory:"noWithdrawalHistory",favoriteGames:"noFavouriteGames",cms:"noCMS"}},51141:(e,i,l)=>{l.d(i,{A:()=>c});var o=l(89379),n=(l(9950),l(82569)),s=l(95557),t=l(13564),a=l(40326),d=l(55213),r=l(20381),u=l(44414);const c=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return i=>function(l){const{variant:c}=e,{languageData:v}=(0,n.d4)((e=>e.language)),m=(0,t.Zp)(),h=(0,n.d4)((e=>{var i;return null===e||void 0===e||null===(i=e.uiConfig)||void 0===i?void 0:i.general})),{userDetails:p}=(0,n.d4)((e=>e.user)),{rejectLabels:x=[]}=(null===p||void 0===p?void 0:p.other)||{},{kycRejectedStatus:g=[]}=h||{};return g.some((e=>x.includes(e)))?c===a.s9.ROUTE?(0,u.jsx)("section",{className:"rejected-kyc-info-block-version-route",children:(0,u.jsxs)("div",{className:"rejected-kyc-info-block",children:[(0,u.jsx)(r.A,{name:"ban",className:"restriction-icon"}),(0,u.jsxs)("h5",{class:"title-text kyc-description",children:[" ",(null===v||void 0===v?void 0:v.kycRejectedDescription)||"Your account is restricted due to failed identity verification. Please contact support for further assistance."]}),(0,u.jsx)(d.Ay,{variant:a.Vt.PRIMARY,type:"button",className:"text-center back-to-home-button",size:"sm",onClick:()=>{m("/".concat((0,s.Gq)("language")))},children:null===v||void 0===v?void 0:v.backToHome})]})}):(0,u.jsxs)("div",{className:"rejected-kyc-info-block variant-card",children:[(0,u.jsx)(r.A,{name:"ban",className:"restriction-icon"}),(0,u.jsxs)("h5",{class:"title-text kyc-description",children:[" ",(null===v||void 0===v?void 0:v.kycRejectedDescription)||"Your account is restricted due to failed identity verification. Please contact support for further assistance."]})]}):(0,u.jsx)(i,(0,o.A)({},l))}}},83397:(e,i,l)=>{l.d(i,{A:()=>u});var o=l(89379),n=(l(9950),l(55213)),s=l(40326),t=l(20381),a=l(169),d=l(26159),r=l(44414);const u=e=>{let{ref:i=null,showBackButton:l,handleRedirect:u,languageData:c,onReload:v,showReload:m,title:h,infoIconText:p=null,reloadLoading:x=!1}=e;return(0,r.jsxs)("h2",{ref:i,className:"tab-title accounts-btn d-flex justify-content-center",children:[l&&(0,r.jsx)(n.Ay,{className:"d-inline ms-3 me-3",size:"sm",onClick:u,children:null===c||void 0===c?void 0:c.signupBack}),h,p&&(0,r.jsx)(a.A,(0,o.A)((0,o.A)({overlayContent:p},d.$7),{},{children:(0,r.jsx)("div",{className:"loyalty-info ml-2 cursor-pointer d-flex justify-content-center align-items-center",children:(0,r.jsx)(t.A,{name:"circle-info",width:"20",height:"20"})})})),m&&(0,r.jsx)(n.Ay,{variant:s.Vt.CONTENT_ONLY,className:"align-items-center d-flex justify-content-end bg-transparent border-0 btn-refresh",size:"sm",onClick:v,children:(0,r.jsx)(t.A,{name:"reload",className:"cursor-pointer ".concat(x?"rotate-reverse":""),width:"16",height:"16"})})]})}},57157:(e,i,l)=>{l.d(i,{A:()=>v});var o=l(89379),n=l(9950),s=l(82569),t=l(13564),a=l(78691),d=l(5859),r=l(64495),u=l(48523),c=l(44073);const v=()=>{const e=(0,t.Zp)(),i=(0,s.wA)(),{section:l}=(0,t.g)(),{state:v}
1=(0,t.zy)(),m=v&&v.tab,[h,p]=(0,n.useState)(m||l),{selectedLanguageCode:x}=(0,s.d4)((e=>e.language)),{languageData:g}=(0,s.d4)((e=>e.language)),[y,j]=(0,n.useState)(),[b,f]=(0,n.useState)([]),{loading:w,accounts:N}=(0,s.d4)((e=>e.uiConfig)),{userDetails:A}=(0,s.d4)((e=>e.user));(0,n.useEffect)((()=>{m?p(m):l&&p(l),window.scrollTo({top:0,behavior:"smooth"}),i((0,a.T0)(!0))}),[m,l]),(0,n.useEffect)((()=>{v&&v.bonusDetail&&j(v.bonusDetail)}),[v]),(0,n.useEffect)((()=>{if(N){var e;const i=[],l=(0,u.I)(g);null===N||void 0===N||null===(e=N.components)||void 0===e||e.forEach((e=>{if(null!==e&&void 0!==e&&e.isVisible){var n;if("account-verify"===(null===e||void 0===e?void 0:e.name)&&"APPROVED"===(null===A||void 0===A?void 0:A.kycStatus)&&"SCATTER"===(null===A||void 0===A||null===(n=A.other)||void 0===n?void 0:n.migratedFrom))return;i.push((0,o.A)((0,o.A)({},null===l||void 0===l?void 0:l[null===e||void 0===e?void 0:e.name]),{},{key:null===e||void 0===e?void 0:e.name}))}})),f(i)}}),[w,g,A]);return{navTabs:b,key:h,bonusDetail:y,languageData:g,selectedLanguageCode:x,navigate:e,setKey:p,logout:()=>{i((0,d.T1)({navigate:e,reason:c.H.FROM_ACCOUNT_PAGE})),e("/".concat(null===x||void 0===x?void 0:x.toLowerCase())),r.n$.disconnect(),r.U0.disconnect()},section:l,loading:w}}},86189:(e,i,l)=>{l.d(i,{A:()=>I});var o=l(9950),n=l(82569),s=l(18835),t=l(41635);const a={Afghanistan:"AFG","Aland Islands":"ALA",Algeria:"DZA",Andorra:"AND",Angola:"AGO",Anguilla:"AIA",Antarctica:"ATA","Antigua and Barbuda":"ATG",Argentina:"ARG",Armenia:"ARM",Aruba:"ABW",Australia:"AUS",Austria:"AUT",Azerbaijan:"AZE",Bahamas:"BHS",Bahrain:"BHR",Bangladesh:"BGD",Barbados:"BRB",Belarus:"BLR",Belgium:"BEL",Belize:"BLZ",Benin:"BEN",Bermuda:"BMU",Bhutan:"BTN",Bolivia:"BOL","Bonaire, Saint Eustatius and Saba ":"BES","Bosnia and Herzegovina":"BIH",Botswana:"BWA","Bouvet Island":"BVT",Brazil:"BRA","British Indian Ocean Territory":"IOT","British Virgin Islands":"VGB",Brunei:"BRN",Bulgaria:"BGR","Burkina Faso":"BFA",Burundi:"BDI",Cambodia:"KHM",Cameroon:"CMR",Canada:"CAN","Cape Verde":"CPV","Cayman Islands":"CYM","Central African Republic":"CAF",Chad:"TCD",Chile:"CHL",China:"CHN","Christmas Island":"CXR","Cocos Islands":"CCK",Colombia:"COL",Comoros:"COM","Cook Islands":"COK","Costa Rica":"CRI",Croatia:"HRV",Cuba:"CUB",Curacao:"CUW",Cyprus:"CYP","Czech Republic":"CZE","Democratic Republic of the Congo":"COD",Denmark:"DNK",Djibouti:"DJI",Dominica:"DMA","Dominican Republic":"DOM","East Timor":"TLS",Ecuador:"ECU",Egypt:"EGY","El Salvador":"SLV","Equatorial Guinea":"GNQ",Eritrea:"ERI",Estonia:"EST",Ethiopia:"ETH","Falkland Islands":"FLK","Faroe Islands":"FRO",Fiji:"FJI",Finland:"FIN",France:"FRA","French Guiana":"GUF","French Polynesia":"PYF","French Southern Territories":"ATF",Gabon:"GAB",Gambia:"GMB",Georgia:"GEO",Ghana:"GHA",Gibraltar:"GIB",Greece:"GRC",Greenland:"GRL",Grenada:"GRD",Guadeloupe:"GLP",Guam:"GUM",Guatemala:"GTM",Guernsey:"GGY",Guinea:"GIN","Guinea-Bissau":"GNB",Guyana:"GUY",Haiti:"HTI","Heard Island and McDonald Islands":"HMD",Honduras:"HND","Hong Kong":"HKG",Hungary:"HUN",Iceland:"ISL",India:"IND",Indonesia:"IDN",Iran:"IRN",Iraq:"IRQ",Ireland:"IRL","Isle of Man":"IMN",Israel:"ISR",Italy:"ITA","Ivory Coast":"CIV",Jamaica:"JAM",Japan:"JPN",Jersey:"JEY",Jordan:"JOR",Kazakhstan:"KAZ",Kenya:"KEN",Kiribati:"KIR",Kuwait:"KWT",Kyrgyzstan:"KGZ",Laos:"LAO",Latvia:"LVA",Lebanon:"LBN",Lesotho:"LSO",Liberia:"LBR",Libya:"LBY",Liechtenstein:"LIE",Lithuania:"LTU",Luxembourg:"LUX",Macao:"MAC",Macedonia:"MKD",Madagascar:"MDG",Malawi:"MWI",Malaysia:"MYS",Maldives:"MDV",Mali:"MLI",Malta:"MLT","Marshall Islands":"MHL",Martinique:"MTQ",Mauritania:"MRT",Mauritius:"MUS",Mayotte:"MYT",Mexico:"MEX",Micronesia:"FSM",Moldova:"MDA",Monaco:"MCO",Mongolia:"MNG",Montenegro:"MNE",Montserrat:"MSR",Morocco:"MAR",Mozambique:"MOZ",Myanmar:"MMR",Namibia:"NAM",Nauru:"NRU",Nepal:"NPL",Netherlands:"NLD","New Caledonia":"NCL","New Zealand":"NZL",Nicaragua:"NIC",Niger:"NER",Nigeria:"NGA",Niue:"NIU","Norfolk Island":"NFK","Northern Mariana Islands":"MNP","North Korea":"PRK",Norway:"NOR",Oman:"OMN",Pakistan:"PAK",Palau:"PLW","Palestinian Territory":"PSE",Panama:"PAN","Papua New Guinea":"PNG",Paraguay:"PRY",Peru:"PER",Philippines:"PHL",Pitcairn:"PCN",Poland:"POL",Portugal:"PRT","Puerto Rico":"PRI",Qatar:"QAT","Republic of the Congo":"COG",Reunion:"REU",Romania:"ROU",Russia:"RUS",Rwanda:"RWA","Saint Barthelemy":"BLM","Saint Helena":"SHN","Saint Kitts and Nevis":"KNA","Saint Lucia":"LCA","Saint Martin":"MAF","Saint Pierre and Miquelon":"SPM","Saint Vincent and the Grenadines":"VCT",Samoa:"WSM","San Marino":"SMR","S
1ao Tome and Principe":"STP","Saudi Arabia":"SAU",Senegal:"SEN",Serbia:"SRB",Seychelles:"SYC","Sierra Leone":"SLE",Singapore:"SGP","Sint Maarten":"SXM",Slovakia:"SVK",Slovenia:"SVN","Solomon Islands":"SLB",Somalia:"SOM","South Africa":"ZAF","South Georgia and the South Sandwich Islands":"SGS","South Korea":"KOR","South Sudan":"SSD",Spain:"ESP","Sri Lanka":"LKA",Sudan:"SDN",Suriname:"SUR","Svalbard and Jan Mayen":"SJM",Swaziland:"SWZ",Sweden:"SWE",Switzerland:"CHE",Syria:"SYR",Taiwan:"TWN",Tajikistan:"TJK",Tanzania:"TZA",Thailand:"THA",Togo:"TGO",Tokelau:"TKL",Tonga:"TON","Trinidad and Tobago":"TTO",Tunisia:"TUN",Turkey:"TUR",Turkmenistan:"TKM","Turks and Caicos Islands":"TCA",Tuvalu:"TUV",Uganda:"UGA",Ukraine:"UKR","United Arab Emirates":"ARE","United Kingdom":"GBR","United States":"USA","United States Minor Outlying Islands":"UMI",Uruguay:"URY","U.S. Virgin Islands":"VIR",Uzbekistan:"UZB",Vanuatu:"VUT",Vatican:"VAT",Venezuela:"VEN",Vietnam:"VNM","Wallis and Futuna":"WLF","Western Sahara":"ESH",Yemen:"YEM",Zambia:"ZMB",Zimbabwe:"ZWE"},d={RU:"ru",PS:"en",AR:"ar",EN:"en",PT:"pt",DE:"de",DU:"nl",FR:"fr",ES:"es",SR:"en",BS:"en",BG:"bg",CN:"zh",JA:"ja",MS:"ms",GR:"el",TR:"tr",CZ:"cs",SK:"sk",DA:"en",HI:"hi",FI:"fi",SW:"en",HU:"hu",ID:"id",FA:"fa",IT:"it",KO:"ko",MT:"en",MU:"en",RO:"to",TH:"th",VI:"vi",PL:"pl",NO:"no"};var r=l(5859),u=l(95557),c=l(13564);const v=()=>{var e;const{userDetails:i,loading:l,userLoading:v,sumsubAccessToken:m}=(0,n.d4)((e=>e.user||"")),{userDocument:h}=(0,n.d4)((e=>e.user)),{allCountries:p}=(0,n.d4)((e=>e.login)),{selectedLanguageCode:x}=(0,n.d4)((e=>e.language)),g=(0,n.d4)((e=>{var i,l,o;return null===(i=e.user)||void 0===i||null===(l=i.labels)||void 0===l||null===(o=l.data)||void 0===o?void 0:o.documentLabel})),{languageData:y}=(0,n.d4)((e=>e.language)),[j,b]=(0,o.useState)(!1),[f,w]=(0,o.useState)(""),[N,A]=(0,o.useState)(""),[C,D]=(0,o.useState)({}),L=(0,n.wA)(),S=(0,c.Zp)(),k={},I=[],E=p?a[null===(e=p.rows.find((e=>{let{code:l}=e;return(null===i||void 0===i?void 0:i.countryCode)===l})))||void 0===e?void 0:e.name]:"";(0,o.useEffect)((()=>{if(1===(null===i||void 0===i?void 0:i.kycMethod)||!(null!==i&&void 0!==i&&i.kycMethod||1!==(null===i||void 0===i?void 0:i.countryKycMethod))){L((0,r.i8)()),L(L((0,t.l6)()));const e=document.createElement("script");return e.src="https://static.sumsub.com/idensic/static/sns-websdk-builder.js",e.async=!0,document.body.appendChild(e),()=>{document.body.removeChild(e)}}L((0,t.bZ)()),L((0,t.RG)())}),[null===i||void 0===i?void 0:i.countryKycMethod,null===i||void 0===i?void 0:i.kycMethod]),(0,o.useEffect)((()=>{var e;m&&function(e){let{sumsubAccessToken:i,country:l,email:o,firstName:n,lastName:a,phone:r,language:u}=e;s.A.init(i,(()=>async function(){return await L((0,t.l6)()),Promise.resolve(m)}())).withConf({lang:d[u]||"en",email:o,country:l,fixedInfo:{firstName:n,lastName:a,phone:r}}).withOptions({addViewportTag:!1,adaptIframeHeight:!0}).on("idCheck.stepCompleted",(e=>{})).on("idCheck.onError",(e=>{console.log("onError",e)})).build().launch("#sumsub-websdk")}({sumsubAccessToken:m,country:E,email:null===i||void 0===i?void 0:i.email,firstName:null===i||void 0===i?void 0:i.firstName,lastName:null===i||void 0===i?void 0:i.lastName,phone:null!==i&&void 0!==i&&i.phoneCode?(null===i||void 0===i?void 0:i.phoneCode)+(null===i||void 0===i?void 0:i.phone):"",language:(null===(e=(0,u.Gq)("language"))||void 0===e?void 0:e.toUpperCase())||"EN"})}),[m]),g&&g.map((e=>{let{name:i,documentLabelId:l}=e;return I.push({label:(null===i||void 0===i?void 0:i[x])||(null===i||void 0===i?void 0:i.EN),documentLabelId:l}),null}));for(const o in I)k[I[o].label]=null;h&&h.rows.map((e=>{let{documentName:i,status:l}=e;return 2!==l&&0!==l&&4!==l&&delete k[i],null})),(0,o.useEffect)((()=>{h&&C&&k&&Object.keys(C).length!==Object.keys(k).length&&D((()=>k))}),[k]),(0,o.useEffect)((()=>{(0===(null===i||void 0===i?void 0:i.kycMethod)||null===(null===i||void 0===i?void 0:i.kycMethod)&&0===(null===i||void 0===i?void 0:i.countryKycMethod))&&(L((0,t.RG)()),L((0,t.bZ)()))}),[]);(0,o.useEffect)((()=>{var e;if((null===h||void 0===h||null===(e=h.rows)||void 0===e?void 0:e.length)>0){var i;const e=null===h||void 0===h||null===(i=h.rows)||void 0===i?void 0:i.filter((e=>1===(null===e||void 0===e?void 0:e.status)&&f===(null===e||void 0===e?void 0:e.documentName)));(null===e||void 0===e?void 0:e.length)>0?b(!0):b(!1)}}),[f]),(0,o.useLayoutEffect)((()=>{h&&(null===I||void 0===I?void 0:I.length)>0&&w((()=>{var e,i,l;return null===h||void 0===h||null===(e=h.rows)||void 0===e||null===(i=e.filter((e=>{var i;return(null===e||void 0===e?void 0:e.documentName)===(null===I||void 0===I||null===(i=I[0])||void 0===i?void 0:i.label)})))||void 0===i||null===(l=i[0])||void 0===l?void 0:l.documentName}))}),[h,g]);return{docs:C,list:I,loading:l,kycStatus:null===i||void 0===i?void 0:i.kycStatus,userDocument:h,hideButton:j,languageData:y,status:["PENDING","APPROVED","REJECTED","","RE-REQUESTED"],fetchLatestChanges:()=>{D((()=>{})),w((()=>"")),L((0,t.C7)()),L((0,t.bZ)()),L((0,t.RG)())},selectedLanguageCode:x,update:e=>{const i={};for(const l in e){const o=h&&h.rows.find((e=>e.documentName===l));o?(i["".concat(o.documentName,"_").concat(o.userDocumentId)]=e[l],i.labelId=N):(i[l]=e[l],i.labelId=N)}L((0,t.AE)({data:i})),D({})},setDocs:D,selectedTab:f,setSelectedTab:w,setLabelId:A,userDetails:i,navigate:S,dispatch:L,userLoading:v}};var m=l(86615),h=l(89379),p=l(43939),x=l(80409),g=l(86781),y=l(68459),j=l(97028),b=l(5830),f=l(95942),w=l(48658),N=l(20381),A=l(55213),C=l(40326);const D=function(e){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];const[n,s]=(0,o.useState)(!1),[t,a]=(0,o.useState)(!1);return(0,o.useEffect)((()=>{let l=null===e||void 0===e?void 0:e.current;if(i&&l&&(l=l.querySelector(i)),!l)return;const o=()=>{const e=l.scrollLeft,i=l.scrollWidth-l.clientWidth;s(e>
15),a(e<i-5)};o(),l.addEventListener("scroll",o);const n=()=>{o()};return window.addEventListener("resize",n),()=>{l.removeEventListener("scroll",o),window.removeEventListener("resize",n)}}),[e,i,...l]),{showLeftShadow:n,showRightShadow:t}};var L=l(44414);const S=e=>{let{docs:i,update:l,list:n,userDocument:s,kycStatus:t,selectedTab:a,setSelectedTab:d,selectedTabDocURL:r,status:u,selectedTabData:c,setDocs:v,setLabelId:m,hideButton:S,languageData:k}=e;const I=(0,o.useRef)(null),{showLeftShadow:E,showRightShadow:T}=D(I,null,[n]);return(0,L.jsx)(L.Fragment,{children:(0,L.jsx)("div",{className:"user-account-block acc-verify-info accounts-btn",children:(0,L.jsx)(p.l1,{enableReinitialize:!0,initialValues:(0,h.A)({},i),onSubmit:e=>{(function(){for(const i in e)if(null!==e[i])return!0})()&&l(e)},children:e=>{var l;let{handleSubmit:o}=e;return(0,L.jsxs)(p.lV,{children:[(0,L.jsx)(x.A.Container,{className:"mb-3",id:"left-tabs-example",defaultActiveKey:(null===n||void 0===n?void 0:n.length)>0&&(null===n||void 0===n||null===(l=n[0])||void 0===l?void 0:l.label),children:(0,L.jsxs)(g.A,{className:"align-items-center",children:[(0,L.jsx)(y.A,{sm:12,children:(0,L.jsx)("div",{className:"verification-menu-wrapper ".concat(E?"verification-menu-wrapper--shadow-left":""," ").concat(T?"verification-menu-wrapper--shadow-right":""),children:(0,L.jsx)(j.A,{ref:I,variant:"tabs",className:"verification-menu",children:n.map(((e,l)=>{let{label:o}=e;const n=s&&s.rows.find((e=>e.documentName===o));return!("APPROVED"===t&&void 0===n)&&(0,L.jsx)(j.A.Item,{onClick:()=>{URL.revokeObjectURL(null===i||void 0===i?void 0:i[a]),d((()=>o))},children:(0,L.jsx)(j.A.Link,{eventKey:o,className:"position-relative",children:(0,L.jsx)(b.A,{overlay:e=>(0,L.jsx)(f.A,(0,h.A)((0,h.A)({},e),{},{children:o})),placement:"top",children:(0,L.jsxs)("span",{className:"kyc-status-wrapper",children:[(0,L.jsxs)("span",{className:"kyc-status-icon",children:["APPROVED"===u[null===n||void 0===n?void 0:n.status]&&(0,L.jsx)(N.A,{name:"shield-check",width:"24",height:"24",fill:"#2eb52e"}),"REJECTED"===u[null===n||void 0===n?void 0:n.status]&&(0,L.jsx)(N.A,{name:"xmark-to-slot",fill:"#dd0000"}),("PENDING"===u[null===n||void 0===n?void 0:n.status]||"RE-REQUESTED"===u[null===n||void 0===n?void 0:n.status])&&(0,L.jsx)(N.A,{name:"timer",fill:"#e78c0e"})]}),(0,L.jsx)("span",{children:o})]})})})},"account-verification-nav ".concat(l))}))})})}),(0,L.jsxs)(y.A,{sm:12,children:[(0,L.jsx)("div",{className:"d-flex align-items-center justify-content-center",children:(0,L.jsx)("div",{className:"document-img",children:(()=>{var e,l,o,n;return null!==i&&void 0!==i&&i[a]&&null!==(null===i||void 0===i?void 0:i[a])?null!==i&&void 0!==i&&i[a]?(0,L.jsx)(L.Fragment,{children:null!==i&&void 0!==i&&null!==(e=i[a])&&void 0!==e&&null!==(l=e.type)&&void 0!==l&&l.match("pdf")?(0,L.jsx)("iframe",{src:null===(o=URL)||void 0===o?void 0:o.createObjectURL(null===i||void 0===i?void 0:i[a]),className:"kyc-prev-img",title:"document-verify"}):(0,L.jsx)("img",{src:null===(n=URL)||void 0===n?void 0:n.createObjectURL(null===i||void 0===i?void 0:i[a]),className:"kyc-prev-img",alt:"document-verify"})}):(0,L.jsx)("img",{src:"".concat("https://d1urdgvrz10048.cloudfront.net/static/shinywilds","/document-verify.png"),alt:"document-verify"}):(0,L.jsx)(L.Fragment,{children:r?(0,L.jsx)(L.Fragment,{children:null!==r&&void 0!==r&&r.match(".pdf")?(0,L.jsx)("iframe",{src:r,className:"kyc-prev-img",title:"document-verify"}):(0,L.jsx)("img",{src:r,className:"kyc-prev-img",onClick:()=>window.open(r),alt:"document-verify"})}):(0,L.jsx)("img",{src:"".concat("https://d1urdgvrz10048.cloudfront.net/static/shinywilds","/document-verify.png"),alt:"document-verify"})})})()})}),a?(0,L.jsxs)("div",{className:"approved-denied-text",children:["APPROVED"===u[null===c||void 0===c?void 0:c.status]&&(0,L.jsxs)("p",{children:[(0,L.jsx)("span",{className:"approved-text",children:null===k||void 0===k?void 0:k.approved}),(0,L.jsx)("span",{children:(0,L.jsx)("img",{src:"".concat("https://d1urdgvrz10048.cloudfront.net/static/shinywilds","/green-tick.svg"),alt:"green-tick"})})]}),"REJECTED"===u[null===c||void 0===c?void 0:c.status]&&(0,L.jsxs)("p",{children:[(0,L.jsx)("span",{className:"denied-text",children:null===k||void 0===k?void 0:k.denied}),(0,L.jsx)("span",{children:(0,L.jsx)("img",{src:"".concat("https://d1urdgvrz10048.cloudfront.net/static/shinywilds","/denied-icon.svg"),alt:"denied-icon"})})]})]}):(0,L.jsxs)("div",{className:"approved-denied-text",children:["APPROVED"===t&&(0,L.jsxs)("p",{children:[(0,L.jsx)("span",{className:"approved-text",children:null===k||void 0===k?void 0:k.approved}),(0,L.jsx)("span",{children:(0,L.jsx)("img",{src:"".concat("https://d1urdgvrz10048.cloudfront.net/static/shinywilds","/green-tick.svg"),alt:"green-tick"})})]}),"REJECTED"===t&&(0,L.jsxs)("p",{children:[(0,L.jsx)("span",{className:"denied-text",children:null===k||void 0===k?void 0:k.approved}),(0,L.jsx)("span",{children:(0,L.jsx)("img",{src:"".concat("https://d1urdgvrz10048.cloudfront.net/static/shinywilds","/denied-icon.svg"),alt:"denied-icon"})})]})]}),(0,L.jsx)(x.A.Content,{style:{minHeight:"50px"},children:n.map(((e,l)=>{var o;let{label:n,documentLabelId:a}=e;const d=s&&s.rows.find((e=>e.documentName===n));return!("APPROVED"===t&&void 0===d)&&(0,L.jsx)(x.A.Pane,{eventKey:n,children:(0,L.jsxs)(g.A,{className:"align-items-center flex-column",children:[(0,L.jsx)(y.A,{className:"d-flex justify-content-center",children:(0,L.jsx)("div",{children:(2===(null===d||void 0===d?void 0:d.status)||4===(null===d||void 0===d?void 0:d.status))&&(0,L.jsx)(b.A,{overlay:e=>(0,L.jsx)(f.A,(0,h.A)((0,h.A)({},e),{},{children:d.reason})),placement:"top",children:(0,L.jsx)("div",{style:{width:"230px",cursor:"pointer",color:"red",textAlign:"center",marginTop:"10px"},className:"d-inline-block text-truncate",children:d.reason})})})}),(0,L.jsx)(y.A,{children:(0,L.jsx)("div",{className:"d-flex justify-content-center",children:(0,L.jsxs)("div",{children:[(0,L.jsx)(y.A,{className:"d-flex justify-content-end p-0",children:(d&&1!==d.status||void 0===d||4===d.status)&&(0,L.jsxs)("div",{className:"d-flex justify-content-end",children:[(0,L.jsx)("label",{htmlFor:n,style:{margin:"0",minWidth:"0",cursor:"pointer"},className:"deposit-btn",children:null===k||void 0===k?void 0:k.chooseFile}),(0,L.jsx)("input",{name:n,type:"file",id:n,style:{display:"none"},onClick:e=>{e.currentTarget.value=null,v({})},onChange:e=>{v((0,h.A)((0,h.A)({},i),{},{[n]:e.target.files[0]})),m(a)}})]})}),(0,L.jsx)(p.Kw,{component:"div",name:n,className:"text-danger d-flex justify-content-end align-items-center"})]})})}),(0,L.jsx)(y.A,{xs:12,className:"mt-2",children:(0,L.jsx)("div",{className:"d-flex justify-content-center align-items-center",children:(d&&(2===(null===d||void 0===d?void 0:d.status)||0===(null===d||void 0===d?void 0:d.status)||4===(null===d||void 0===d?void 0:d.status))&&(null===i||void 0===i?void 0:i[n])||void 0===d&&(null===i||void 0===i?void 0:i[n])&&null!==(null===i||void 0===i?void 0:i[n]))&&(0,L.jsxs)(L.Fragment,{children:[null===i||void 0===i||null===(o=i[n])||void 0===o?void 0:o.name,(0,L.jsx)(A.Ay,{variant:C.Vt.CONTENT_ONLY,type:"button",className:"btn p-0 ml-1",onClick:()=>{v((0,h.A)((0,h.A)({},i),{},{[n]:null}))},children:(0,L.jsx)(w.A,{name:"trash"})})]})})})]})},"account-verification-content ".concat(l))}))})]})]})}),"APPROVED"!==t&&(0,L.jsx)("div",{className:"text-center",children:(0,L.jsx)(A.Ay,{type:"submit",hidden:S,className:"mt-4 btn btn-success figma btn-sm submitButton save-button btn-h
1over-effect btn-primary-hover-shadow",onClick:o,children:null===k||void 0===k?void 0:k.upload})})]})}})})})};var k=l(83397);const I=e=>{var i;let{isModal:l=!1}=e;const{docs:o,list:n,loading:s,kycStatus:t,userDocument:a,hideButton:d,languageData:r,status:u,fetchLatestChanges:c,update:h,setDocs:p,selectedTab:x,setSelectedTab:g,setLabelId:y,userDetails:j}=v(),b=a&&(null===a||void 0===a?void 0:a.rows.find((e=>e.documentName===x)));let f;var w;null!==b&&void 0!==b&&null!==(i=b.documentUrl)&&void 0!==i&&i.length&&(f=null===b||void 0===b?void 0:b.documentUrl[(null===b||void 0===b||null===(w=b.documentUrl)||void 0===w?void 0:w.length)-1]);return(0,L.jsxs)(L.Fragment,{children:[!l&&(0,L.jsx)(k.A,{title:null===r||void 0===r?void 0:r.headerAccVerify,onReload:c,showReload:0===(null===j||void 0===j?void 0:j.kycMethod)||null===(null===j||void 0===j?void 0:j.kycMethod)&&0===(null===j||void 0===j?void 0:j.countryKycMethod)}),s?(0,L.jsx)(m.A,{}):!s&&!l&&(0,L.jsx)(L.Fragment,{children:(0===(null===j||void 0===j?void 0:j.kycMethod)||null===(null===j||void 0===j?void 0:j.kycMethod)&&0===(null===j||void 0===j?void 0:j.countryKycMethod))&&(null===n||void 0===n?void 0:n.length)>0&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("div",{className:"user-account-block",children:"APPROVED"===t?(0,L.jsxs)("div",{className:"user-account acc-verify-info",children:[(0,L.jsxs)("h5",{className:"text-center p-0",children:[null===r||void 0===r?void 0:r.accountStatus,":\xa0",(0,L.jsx)("span",{className:"kyc-status",children:t})]}),(0,L.jsx)("small",{className:"text-center",children:null===r||void 0===r?void 0:r.kycVerified})]}):(0,L.jsxs)("div",{className:"user-account acc-verify-info",children:[(0,L.jsxs)("h5",{className:"text-center p-0",children:[null===r||void 0===r?void 0:r.accountStatus,":\xa0",(0,L.jsx)("span",{className:"kyc-status",children:t})]}),(0,L.jsx)("small",{className:"text-center",children:null===r||void 0===r?void 0:r.kycProtocolDetails})]})}),(0,L.jsx)(S,{docs:o,update:h,list:n,userDocument:a,kycStatus:t,selectedTab:x,setSelectedTab:g,selectedTabDocURL:f,status:u,selectedTabData:b,setDocs:p,setLabelId:y,hideButton:d,languageData:r})]})}),(0,L.jsx)(L.Fragment,{children:(0,L.jsx)("div",{id:"sumsub-websdk"})})]})}},17847:(e,i,l)=>{l.d(i,{b:()=>o,k:()=>n});const o=[{label:"all",value:"all"},{label:"win",value:"win"},{label:"bet",value:"bet"},{label:"rollback",value:"rollback"},{label:"rollbackbeforebetwin",value:"rollbackbeforebetwin"},{label:"freeSpins",value:"freespins"}],n=[{label:"betInternal",value:"betInternal"},{label:"winInternal",value:"winInternal"}]},87019:(e,i,l)=>{l.d(i,{A:()=>d});var o=l(9950),n=l(82569),s=l(19241),t=l(85685),a=l(2987);const d=()=>{var e,i;const l=(0,a.f)(),d=(0,n.wA)(),[r,u]=(0,o.useState)(1),[c,v]=(0,o.useState)(10),[m,h]=(0,o.useState)(""),[p,x]=(0,o.useState)("all"),{betHistory:g,betLoading:y}=(0,n.d4)((e=>e.transactions)),{languageData:j}=(0,n.d4)((e=>e.language)),{userDetails:b}=(0,n.d4)((e=>e.user)),f=Math.ceil((null===g||void 0===g?void 0:g.count)/c),[w,N]=(0,o.useState)([{startDate:(0,t.t6)(10),endDate:new Date,key:"selection"}]),A=()=>{var e,i;d((0,s.jA)({limit:c,pageNo:r,search:m,startDate:(0,t.UX)(null===w||void 0===w||null===(e=w[0])||void 0===e?void 0:e.startDate),endDate:(0,t.UX)(null===w||void 0===w||null===(i=w[0])||void 0===i?void 0:i.endDate),actionType:p}))};(0,o.useEffect)((()=>{A()}),[r]),(0,o.useEffect)((()=>{1!==r?u(1):A()}),[p,c,null===w||void 0===w||null===(e=w[0])||void 0===e?void 0:e.startDate,null===w||void 0===w||null===(i=w[0])||void 0===i?void 0:i.endDate],m),(0,o.useEffect)((()=>{const e=setTimeout((()=>{var e,i;l||(1===r?d((0,s.jA)({limit:c,pageNo:r,search:m,startDate:(0,t.UX)(null===w||void 0===w||null===(e=w[0])||void 0===e?void 0:e.startDate),endDate:(0,t.UX)(null===w||void 0===w||null===(i=w[0])||void 0===i?void 0:i.endDate),actionType:p})):u(1))}),1e3);return()=>clearTimeout(e)}),[m]);return{loading:y,betHistory:g,limit:c,page:r,search:m,selectedAction:p,totalPages:f,userDetails:b,languageData:j,setSelectedAction:x,setSearch:h,setLimit:v,setPage:u,fetchLatestChanges:()=>{var e,i,l,o;10===c&&1===r&&(null===w||void 0===w||null===(e=w[0])||void 0===e?void 0:e.startDate)===(new Date).setDate((new Date).getDate()-10)&&(null===w||void 0===w||null===(i=w[0])||void 0===i?void 0:i.endDate)===new Date&&"all"===p&&""===m?d(d((0,s.jA)({limit:c,page:r,startDate:(0,t.UX)(null===w||void 0===w||null===(l=w[0])||void 0===l?void 0:l.startDate),endDate:(0,t.UX)(null===w||void 0===w||null===(o=w[0])||void 0===o?void 0:o.endDate),transactionType:p,search:m}))):(v(10),u(1),N([{startDate:(0,t.t6)(10),endDate:new Date,key:"selection"}]),x("all"),h(""))},state:w,setState:N}}},35192:(e,i,l)=>{l.d(i,{A:()=>b});var o=l(89379),n=l(9950),s=l(82569),t=l(15935),a=l(44268),d=l(95252),r=l(86615),u=l(47503),c=l(44414);const v=e=>{let{game:i,setIdentifier:l,identifier:o}=e;const{brandLogo:n,languageData:t}=(0,s.d4)((e=>e.language));return(0,c.jsxs)("div",{xs:2,md:4,lg:4,className:"free-spin-game-container ".concat(i.identifier===o?"selected":""),onClick:()=>
1l(i.identifier),children:[(0,c.jsx)("div",{className:"hover-area",children:(0,c.jsx)("img",{loading:"lazy",src:(null===i||void 0===i?void 0:i.thumbnailUrl)||(null===i||void 0===i?void 0:i.gameThumbnailUrl)||(null===t||void 0===t?void 0:t.gameCardPlaceholderImage)||"/images/placeholder.svg",onError:e=>{e.target.onerror=null,e.target.src=(null===t||void 0===t?void 0:t.gameCardPlaceholderImage)||"/images/placeholder.svg"},className:"w-100 game-img",alt:"game"})}),(0,c.jsxs)("div",{className:"lobby-game-info",children:[(0,c.jsx)("div",{className:"lobby-game-name",children:null===i||void 0===i?void 0:i.name}),(0,c.jsxs)("div",{className:"lobby-game-provider",children:[(0,c.jsx)("img",{src:(null===i||void 0===i?void 0:i.providerLogo)||n||"/images/brand-logo.svg",onError:e=>{e.target.onerror=null,e.target.src=n||"/images/brand-logo.svg"},className:"lobby-game-provider-logo",alt:"provider"}),(0,c.jsx)("span",{className:"lobby-game-provider-name",children:(null===i||void 0===i?void 0:i.studioDisplayName)||(null===i||void 0===i?void 0:i.studioName)||(null===i||void 0===i?void 0:i.providerDisplayName)||(null===i||void 0===i?void 0:i.providerName)})]})]})]})};var m=l(54112);const h=e=>{const i=(0,s.d4)((e=>{var i,l;return null===e||void 0===e||null===(i=e.uiConfig)||void 0===i||null===(l=i.general)||void 0===l?void 0:l.gameCardVariant}));return i===t.tg.V1?(0,c.jsx)(v,(0,o.A)({},e)):i===t.tg.V2?(0,c.jsx)(u.A,(0,o.A)((0,o.A)({},e),{},{selected:(null===e||void 0===e||null===(l=e.game)||void 0===l?void 0:l.identifier)===(null===e||void 0===e?void 0:e.identifier),onSelect:null===e||void 0===e?void 0:e.setIdentifier,disablePlay:!0})):i===t.tg.V3?(0,c.jsx)(m.A,(0,o.A)((0,o.A)({},e),{},{selected:(null===e||void 0===e||null===(n=e.game)||void 0===n?void 0:n.identifier)===(null===e||void 0===e?void 0:e.identifier),onSelect:null===e||void 0===e?void 0:e.setIdentifier,disablePlay:!0})):(console.error("No game card variant found"),null);var l,n};var p=l(55213);const x=e=>{let{loading:i,showFreeSpinGameModal:l,games:o,selectedBonusDetail:t,activateBonus:u,setShowFreeSpinGameModal:v,isLoading:m}=e;const[x,g]=(0,n.useState)(!0),{languageData:y}=(0,s.d4)((e=>e.language)),j=(0,n.useMemo)((()=>null===o||void 0===o?void 0:o.find((e=>e.identifier===x))),[x]);return(0,c.jsxs)(a.A,{show:l,className:"free-spin-modal-container",size:"lg",children:[(0,c.jsx)(a.A.Header,{children:(0,c.jsx)(a.A.Title,{children:null===y||void 0===y?void 0:y.availFreeSpinHeader})}),(0,c.jsx)(a.A.Body,{className:"all-game-listing",children:i?(0,c.jsx)(r.A,{top:"10%"}):(0,c.jsx)("div",{className:"games-container",children:o&&o.length>0?o.map(((e,i)=>(0,c.jsx)(h,{game:e,identifier:x,setIdentifier:g},i))):(0,c.jsx)("span",{className:"text-danger ml-5",children:null===y||void 0===y?void 0:y.casinoNoGamesFound})})}),(0,c.jsxs)(a.A.Footer,{className:"justify-content-end",children:[(0,c.jsx)(p.Ay,{className:"font-16 cancel-btn",onClick:()=>{v(!1)},children:null===y||void 0===y?void 0:y.cancel}),(0,c.jsxs)(p.Ay,{className:"font-16",disabled:m||!x.length>0,onClick:()=>u(t,x,null===j||void 0===j?void 0:j.gameId),children:[m&&(0,c.jsx)(d.A,{as:"span",animation:"border",size:"sm",role:"status","aria-hidden":"true"}),null===y||void 0===y?void 0:y.bonusActivate]})]})]})};var g=l(40326),y=l(32425);const j=e=>{let{loading:i,showFreeSpinGameModal:l,games:o,selectedBonusDetail:t,activateBonus:a,setShowFreeSpinGameModal:d,isLoading:u}=e;const[v,m]=(0,n.useState)(!0),{languageData:p}=(0,s.d4)((e=>e.language)),x=(0,n.useMemo)((()=>null===o||void 0===o?void 0:o.find((e=>e.identifier===v))),[v]);return(0,c.jsx)(y.d,{modalType:"GAME_MODAL",show:l,title:null===p||void 0===p?void 0:p.availFreeSpinHeader,className:"game-modal-v2",handleClose:()=>d(!1),body:()=>(0,c.jsx)("div",{className:"game-modal-v2-content",children:i?(0,c.jsx)(r.A,{top:"10%"}):(0,c.jsx)("div",{className:"games-container",children:o&&o.length>0?o.map(((e,i)=>(0,c.jsx)(h,{game:e,identifier:v,setIdentifier:m},i))):(0,c.jsx)("span",{className:"text-danger ml-5",children:null===p||void 0===p?void 0:p.casinoNoGamesFound})})}),buttons:[{text:null===p||void 0===p?void 0:p.cancel,variant:g.Vt.TERTIARY,onClick:()=>{d(!1)}},{text:null===p||void 0===p?void 0:p.bonusActivate,variant:g.Vt.SECONDARY,onClick:()=>{a(t,v,null===x||void 0===x?void 0:x.gameId)},disabled:u||!v.length>0,closeOnClick:!1}]})};l(11867);const b=e=>{var i;const l=(0,s.d4)((e=>{var i;return null===(i=e.uiConfig)||void 0===i?void 0:i.general}
1)),n=null!==(i=null===l||void 0===l?void 0:l.freeSpinGameModal)&&void 0!==i?i:t.yW.V1;return("object"===typeof n&&null!==n&&void 0!==n&&n.variant?n.variant:n)===t.yW.V2?(0,c.jsx)(j,(0,o.A)({},e)):(0,c.jsx)(x,(0,o.A)({},e))}},76598:(e,i,l)=>{l.d(i,{A:()=>r});var o=l(9950),n=(l(11867),l(82569)),s=l(31013);const t=e=>{const{loading:i,userBonusDetails:l}=(0,n.d4)((e=>e.bonus)),t=(0,n.wA)(),a=(0,o.useMemo)((()=>l[null===e||void 0===e?void 0:e.userBonusId]||{}),[l,e]);return(0,o.useEffect)((()=>{t((0,s.B)({bonusId:null===e||void 0===e?void 0:e.bonusId,userBonusId:null===e||void 0===e?void 0:e.userBonusId}))}),[]),{loading:i,bonusDetail:a}};var a=l(35192),d=l(44414);const r=e=>{let{showFreeSpinGameModal:i,setShowFreeSpinGameModal:l,selectedBonusDetail:o,activateBonus:n,isLoading:s=!1}=e;const{loading:r,bonusDetail:u}=t(o);return(0,d.jsx)(a.A,{loading:r,showFreeSpinGameModal:i,setShowFreeSpinGameModal:l,games:null===u||void 0===u?void 0:u.games,selectedBonusDetail:o,activateBonus:n,isLoading:s})}},92163:(e,i,l)=>{l.d(i,{_:()=>o});const o=[{label:"all",value:"CANCELLED FORFEITED EXPIRED COMPLETED ZEROED-OUT LAPSED"},{label:"forfeited",value:"FORFEITED"},{label:"expired",value:"EXPIRED"},{label:"completed",value:"COMPLETED"},{label:"zeroedOut",value:"ZEROED-OUT"},{label:"lapsed",value:"LAPSED"}]},9003:(e,i,l)=>{l.d(i,{A:()=>Ne});var o=l(89379),n=l(9950),s=l(82569),t=l(15935),a=l(31013),d=l(13564),r=l(12449),u=l(248),c=l(95557),v=l(48063),m=l(57941),h=l(37232),p=l(40326);var x=l(20381),g=l(44414);const y=e=>{const{languageData:i,selectedLanguageCode:l}=(0,s.d4)((e=>e.language)),{gameCategory:t}=(0,s.d4)((e=>e.casinoMenu)),{userDetails:y}=(0,s.d4)((e=>e.user)),j=JSON.parse((0,c.Gq)("loggedIn")),b=(0,s.wA)(),f=(0,d.Zp)(),w=(0,s.d4)((e=>e.bonus)),{loyaltyDetails:N,loyaltyLoading:A,userActiveBonus:C}=(0,s.d4)((e=>e.bonus)),[D,L]=(0,n.useState)(1),[S,k]=(0,n.useState)(!1),[I,E]=(0,n.useState)(1),[T,B]=(0,n.useState)(!1),[P,F]=(0,n.useState)(!1),[R,M]=(0,n.useState)(!1),[O]=(0,n.useState)(["CANCELLED","FORFEITED","EXPIRED","COMPLETED","ZEROED-OUT","LAPSED"]),[V,U]=(0,n.useState)({}),[_,G]=(0,n.useState)({}
1),[W,Y]=(0,n.useState)(!1);(0,n.useEffect)((()=>{q(),window.scrollTo(0,0)}),[]),(0,n.useEffect)((()=>{z()}),[D]),(0,n.useEffect)((()=>{H()}),[I]),(0,n.useEffect)((()=>{var e;if(C&&(null===C||void 0===C||null===(e=C.rows)||void 0===e?void 0:e.length)>0){const e=null===C||void 0===C?void 0:C.rows[0].bonusId,i=null===C||void 0===C?void 0:C.rows[0].userBonusId;b((0,a.B)({bonusId:e,userBonusId:i}))}}),[C]);const q=()=>{b((0,a.jF)())},z=()=>{b((0,a.tL)({limit:8,pageNo:D,status:JSON.stringify(["ACTIVE"])}))},H=()=>{b((0,a.yo)({limit:8,pageNo:I,status:JSON.stringify(["PENDING"]),upComingBonus:!0}))},K=(e,i)=>{var l;b((0,a.YS)({data:i?{userBonusId:e,bonusStatus:i}:{userBonusId:e},status:JSON.stringify(O),activeBonuses:{count:(null===C||void 0===C?void 0:C.count)-1,rows:null===C||void 0===C||null===(l=C.rows)||void 0===l?void 0:l.filter((i=>(null===i||void 0===i?void 0:i.userBonusId)!==e))}}))};return(0,o.A)((0,o.A)({languageData:i,userDetails:y,loyaltyDetails:N,loyaltyLoading:A,selectedLanguageCode:l,setActiveBonusPageNo:L,setClaimableBonusPageNo:E,activateBonus:(e,i,o)=>{const n={gameId:o,userBonusId:parseInt(null===e||void 0===e?void 0:e.userBonusId)||"",fromCustomerIo:!1};if(function(e){return e.status!==p.P.CANCELLED&&e.status!==p.P.FORFEIT&&e.status!==p.P.EXPIRED&&e.status!==p.P.COMPLETED&&e.status!==p.P.ZEROED_OUT&&e.status!==p.P.LAPSED}(e))L(1),b((0,a.v7)({data:n,bonusType:null===e||void 0===e?void 0:e.bonusType,bonusAmount:null===e||void 0===e?void 0:e.bonusAmount,item:e,userBonus:null,setShowLapsedModal:M,navigate:f,identifier:i,currencyCode:y.currencyCode,freeSpinsQty:0===(null===e||void 0===e?void 0:e.cashAmount),from:h.n.DASHBOARD}));else{var s,t,d,r;const o=["match","manual"].includes(null===e||void 0===e?void 0:e.bonusType)&&((null===e||void 0===e?void 0:e.currency)&&"0"===(null===e||void 0===e||null===(s=e.currency[y.currencyCode])||void 0===s?void 0:s.minDeposit)||(null===e||void 0===e||null===(t=e.bonus)||void 0===t?void 0:t.currency)&&"0"===(null===e||void 0===e||null===(d=e.bonus)||void 0===d||null===(r=d.currency[y.currencyCode])||void 0===r?void 0:r.minDeposit));L(1),E(1),o?b((0,a.v7)({data:n,bonusType:null===e||void 0===e?void 0:e.bonusType,bonusAmount:null===e||void 0===e?void 0:e.bonusAmount,item:e,userBonus:null,setShowLapsedModal:M,navigate:f,identifier:i,currencyCode:y.currencyCode,freeSpinsQty:0===(null===e||void 0===e?void 0:e.cashAmount),from:h.n.DASHBOARD})):f("/".concat(null===l||void 0===l?void 0:l.toLowerCase(),"/account/deposit"),{state:{tab:"deposit",bonusDetail:e,identifier:i}})}},cancelBonus:K,showModal:S,setShowModal:k,bonusForfeitWarningModal:T,setBonusForfeitWarningModal:B,selectedForfeitBonus:_,setSelectedForfeitBonus:G,selectedBonus:V,setSelectedBonus:U,showAllGames:W,setShowAllGames:Y,showLapsedModal:R,setShowLapsedModal:M,toggleFavorite:e=>{let{isFavorite:l,id:o}=e;var n,s,a;j?b((0,u.RN)({isFavorite:l,id:o,categoryId:null===t||void 0===t||null===(n=t.casinoCategories)||void 0===n||null===(s=n.rows)||void 0===s||null===(a=s[0])||void 0===a?void 0:a.id,searchGamesFilter:!0})):(0,r.oR)(null===i||void 0===i?void 0:i.loginFirst,"error")},navigate:f,newSelectedBonus:P,setNewSelectedBonus:F,showBonusForfeitConfirmationModal:e=>{b((0,v.qf)({name:m.lx.FORFEIT,title:"".concat(null===i||void 0===i?void 0:i.areYouSure," ?"),onClose:()=>{b((0,v.Oo)(m.lx.FORFEIT))},graphic:(0,g.jsx)(x.A,{name:"warning",height:148,width:131}),body:null===i||void 0===i?void 0:i.notUsableBonus,buttons:[{text:null===i||void 0===i?void 0:i.cancel,variant:p.Vt.SECONDARY},{text:null===i||void 0===i?void 0:i.forfeitButton,variant:p.Vt.TERTIARY,onClick:()=>K(null===e||void 0===e?void 0:e.userBonusId,null===e||void 0===e?void 0:e.status)}]}))}},w),e)};var j=l(40885),b=l(169),f=l(26159);const w=e=>{var i,l,n;const{balanceCardsDetail:t,userDetails:a}=e,{cashbackBalance:d}=(0,s.d4)((e=>e.user)),{languageData:r}=(0,s.d4)((e=>e.language)),u="cashback"===t.balanceType?d:null===a||void 0===a||null===(i=a.userWallet)||void 0===i?void 0:i[t.balanceType];return(0,g.jsxs)("div",{className:"balance-sub-section",children:[(0,g.jsx)("div",{className:"balance-icon",children:(0,g.jsx)(x.A,{name:t.balanceIcon,width:"42px",height:"42px"})}),(0,g.jsxs)("div",{className:"balance-details",children:[(0,g.jsx)("div",{className:"balance-type",children:(0,g.jsx)("span",{children:t.balanceText})}),(0,g.jsx)("div",{className:"balance",children:"".concat(j.L[null===a||void 0===a||null===(l=a.userWallet)||void 0===l?void 0:l.currencyCode]," ").concat(null===(n=parseFloat(u))||void 0===n?void 0:n.toFixed(2))})]}),(0,g.jsx)("div",{className:"cashback-toggle",children:"cashback"===t.balanceType&&(0,g.jsx)(b.A,(0,o.A)((0,o.A)({overlayContent:null===r||void 0===r?void 0:r.cashbackInfo},f.dN),{},{children:(0,g.jsx)("button",{className:"loyalty-info-i",children:(0,g.jsx)(x.A,{name:"info-icon",className:"d-block",width:16,height:16})})}))})]})};var N=l(80045);const A=["Context"],C=e=>i=>{let{Context:l}=i,n=(0,N.A)(i,A);return(0,g.jsx)(l.Provider,{value:(0,o.A)({},n),children:(0,g.jsx)(e,(0,o.A)({},n))})},D=n.createContext(),L=C((()=>{const{userDetails:e,languageData:i}=(0,n.useContext)(D),l=[{balanceIcon:"dashboard-total-balance",balanceText:"".concat(null===i||void 0===i?void 0:i.totalBalance),balanceType:"totalAmount"},{balanceIcon:"dashboard-bonus-balance",balanceText:"".concat(null===i||void 0===i?void 0:i.bonusBalance),balanceType:"nonCashAmount"},{balanceIcon:"dashboard-cash-balance",balanceText:"".concat(null===i||void 0===i?void 0:i.cashBalance),balanceType:"amount"},{balanceIcon:"dashboard-cashback",balanceText:null===i||void 0===i?void 0:i.headerCashback,balanceType:"cashback"}];return(0,g.jsx)("div",{className:"dashboard-section",children:(0,g.jsx)("div",{className:"balance-section",children:e&&l.map((i=>(0,g.jsx)(w,{balanceCardsDetail:i,userDetails:e},i.balanceType)))})})}));var S=l(26689);const k=e=>{let{headingText:i}=e;
1const l=(0,n.useRef)(null),[o,s]=(0,n.useState)(0);return(0,n.useEffect)((()=>{l.current&&s(l.current.getBoundingClientRect().width)}),[i]),(0,g.jsxs)("div",{className:"heading-section",children:[(0,g.jsx)("div",{className:"heading-text",children:(0,g.jsx)("span",{ref:l,children:i})}),(0,g.jsx)("div",{className:"bottom-line",style:{width:"".concat(o,"px")}})]})};var I=l(86615),E=l(62934),T=l(5830),B=l(95942);const P=C((()=>{var e,i,l,s,t;const{languageData:a,loyaltyLoading:r,loyaltyDetails:u,selectedLanguageCode:c}=(0,n.useContext)(D),v=(0,d.Zp)(),m=(0,g.jsxs)(g.Fragment,{children:[null===a||void 0===a?void 0:a.loyaltyPopover," \xa0",(0,g.jsx)(S.N_,{className:"loyalty-page-link",to:"/".concat(null===c||void 0===c?void 0:c.toLowerCase(),"/loyalty-bonus"),children:null===a||void 0===a?void 0:a.loyaltyPage}),"\xa0"]}),h=u?null===(e=parseFloat((u.currentPoint-u.startPoint)/(u.endPoint-u.startPoint)*100))||void 0===e?void 0:e.toFixed(2):0;return(0,g.jsx)(g.Fragment,{children:(0,g.jsx)("div",{className:"dashboard-section",children:r?(0,g.jsx)(I.A,{}):(0,g.jsxs)("div",{className:"loyalty-section",children:[(0,g.jsx)("div",{className:"loyalty-sub-section",children:(0,g.jsxs)("div",{className:" d-flex flex-column level-point-section",children:[(0,g.jsxs)("div",{className:"level-icon-section",children:[(0,g.jsx)("img",{src:"".concat("https://d1urdgvrz10048.cloudfront.net/static/shinywilds","/dashboard-level.svg"),alt:"img"}),(0,g.jsx)("div",{className:"level",children:null===u||void 0===u?void 0:u.level})]}),(0,g.jsxs)("div",{className:"loyalty-details",children:[(0,g.jsxs)("div",{className:"level",children:[null===a||void 0===a?void 0:a.headerLevel," ",null===u||void 0===u?void 0:u.level]}),(0,g.jsxs)("div",{className:"point-text",children:[null===a||void 0===a?void 0:a.loyaltyTableHeaderTwo," :"]}),(0,g.jsxs)("div",{className:"points",children:[(null===u||void 0===u?void 0:u.currentPoint)&&(null===u||void 0===u?void 0:u.currentPoint).toFixed(2)," ",null===a||void 0===a?void 0:a.loyaltyPoints]})]})]})}),(0,g.jsx)("div",{className:"loyalty-sub-section",children:(0,g.jsx)(k,{headingText:null===a||void 0===a?void 0:a.Loyalty})}),(0,g.jsx)("div",{className:"loyalty-sub-section",children:void 0!==(null===u||void 0===u?void 0:u.currentPoint)&&null!==(null===u||void 0===u?void 0:u.currentPoint)&&void 0!==(null===u||void 0===u?void 0:u.startPoint)&&null!==(null===u||void 0===u?void 0:u.startPoint)&&(null===u||void 0===u?void 0:u.endPoint)&&(0,g.jsxs)("div",{className:"loyalty-progress-bar-container",children:[(0,g.jsxs)("div",{className:"progress-parent",children:[(0,g.jsx)(E.A,{containerClass:"custom-progress-container",progressClass:"progress-done",percentage:h,labelClass:"progress-label",levelCountIconClass:"label-icon",levelCount:null===u||void 0===u?void 0:u.level,label:null===a||void 0===a?void 0:a.headerLevel,iconWidth:10}),(0,g.jsx)("div",{className:"winner-icon",children:(0,g.jsx)("img",{src:"".concat("https://d1urdgvrz10048.cloudfront.net/static/shinywilds","/winner-level.svg"),alt:"img"})})," "]}),(0,g.jsxs)("div",{className:"d-flex justify-content-between justify-content-center",children:[(0,g.jsxs)("div",{children:[(0,g.jsxs)("span",{className:"loyalty-percentage",children:[null===(i=parseFloat(((null===u||void 0===u?void 0:u.currentPoint)-(null===u||void 0===u?void 0:u.startPoint))/((null===u||void 0===u?void 0:u.endPoint)-(null===u||void 0===u?void 0:u.startPoint))*100))||void 0===i?void 0:i.toFixed(2),"%"]})," ",(0,g.jsxs)("span",{className:"loyalty-current-point",children:["(",null===u||void 0===u?void 0:u.currentPoint.toFixed(2)," ",null===a||void 0===a?void 0:a.loyaltyPoints,")"," "]})]}),(0,g.jsxs)("div",{children:[(0,g.jsxs)("span",{className:"next-level-text",children:[" ",null===a||void 0===a?void 0:a.headerLevel," ",(null===u||void 0===u?void 0:u.level)+1]})," ",(0,g.jsxs)("span",{className:"point-to-reach",children:["( ",null===a||void 0===a?void 0:a.pointsToReach,null===(l=(null===u||void 0===u?void 0:u.endPoint)-(null===u||void 0===u?void 0:u.currentPoint))||void 0===l?void 0:l.toFixed(2)," ",")"]})]})]})]})}),(0,g.jsx)("div",{className:"loyalty-sub-section",children:(0,g.jsxs)("div",{className:"cash-bonus-section",children:[(0,g.jsxs)("div",{className:" d-flex flex-row",children:[(0,g.jsxs)("div",{className:"text-center",children:[(0,g.jsxs)("div",{className:"next-level-section",children:[" ",null===a||void 0===a?void 0:a.nextLevel," ",(null===u||void 0===u?void 0:u.level)+1," :"]}),(0,g.jsx)("div",{className:"rewards",children:null===a||void 0===a?void 0:a.rewards})]}),(0,g.jsx)(b.A,(0,o.A)((0,o.A)({overlayContent:m},f.dN),{},{children:(0,g.jsx)("button",{className:"loyalty-info-i",children:(0,g.jsx)(x.A,{name:"info-icon",className:"d-block",width:16,height:16})})}))]}),(null===u||void 0===u?void 0:u.bonusId)&&(0,g.jsxs)("div",{className:"reward-icon-section",children:[(0,g.jsx)("img",{src:"".concat("https://d1urdgvrz10048.cloudfront.net/static/shinywilds","/cash-money.svg"),alt:"img"}),(0,g.jsx)("div",{className:"cash-bonus-amount",children:(0,g.jsx)(T.A,{overlay:e=>{var i,l;return(0,g.jsx)(B.A,(0,o.A)((0,o.A)({},e),{},{children:(null===u||void 0===u||null===(i=u.bonusPromotionTitle)||void 0===i?void 0:i[c])||(null===u||void 0===u||null===(l=u.bonusPromotionTitle)||void 0===l?void 0:l.EN)}))},placement:"top",children:(0,g.jsx)("p",{style:{cursor:"pointer"},onClick:()=>v("/".concat(null===c||void 0===c?void 0:c.toLowerCase(),"/promotion/").concat(null===u||void 0===u?void 0:u.bonusId)),className:"text-truncate mb-0",children:(null===u||void 0===u||null===(s=u.bonusPromotionTitle)||void 0===s?void 0:s[c])||(null===u||void 0===u||null===(t=u.bonusPromotionTitle)||void 0===t?void 0:t.EN)})})})]})]})})]})})})}));var F=l(70804),R=l(85685);const M=()=>
1{const[e,i]=(0,n.useState)([]),{languageData:l}=(0,s.d4)((e=>e.language)),o=[{label:"BONUS",value:"bonus",id:1},{label:"BONUS+DEPOSIT",value:"bonusdeposit",id:2}],{userDetails:t}=(0,s.d4)((e=>e.user)),a=null===t||void 0===t?void 0:t.currencyCode,d=e=>"ACTIVE"===(null===e||void 0===e?void 0:e.status)?[{label:(null===l||void 0===l?void 0:l.inProcessedAt)||"In-Processed At",value:!(null===e||void 0===e||!e.claimedAt)&&(0,R.UX)(null===e||void 0===e?void 0:e.claimedAt)}]:null!==e&&void 0!==e&&e.showBonusValidity?[{label:null===l||void 0===l?void 0:l.claimedAt,value:!(null===e||void 0===e||!e.claimedAt)&&(0,R.UX)(null===e||void 0===e?void 0:e.claimedAt)},{label:null===l||void 0===l?void 0:l.validTill,value:!(null===e||void 0===e||!e.expireAt)&&(0,R.zv)(null===e||void 0===e?void 0:e.expireAt)},{label:(null===l||void 0===l?void 0:l.validTillUTC)||"Valid Till (UTC)",value:!(null===e||void 0===e||!e.expireAt)&&(0,R.Vo)(null===e||void 0===e?void 0:e.expireAt)}]:[],r=e=>{var i,n,s;return[{label:null===l||void 0===l?void 0:l.wageringType,value:null===o||void 0===o||null===(i=o.find((i=>{var l;return i.value===(null===e||void 0===e||null===(l=e.bonus)||void 0===l?void 0:l.wageringRequirementType)})))||void 0===i?void 0:i.label},{label:null===l||void 0===l?void 0:l.wageringMultiplier,value:(null===e||void 0===e||null===(n=e.other)||void 0===n?void 0:n.wageringRequirement)||(null===e||void 0===e||null===(s=e.bonus)||void 0===s?void 0:s.wageringMultiplier)}]},u=(e,i)=>{var l,o,n;if("freespins"===(null===e||void 0===e?void 0:e.bonusType)&&"2"===(null===e||void 0===e||null===(l=e.bonus)||void 0===l||null===(o=l.other)||void 0===o?void 0:o.aggregatorId)){var s,t,a,d,r;const l=null===e||void 0===e||null===(s=e.bonus)||void 0===s||null===(t=s.other)||void 0===t||null===(a=t.hub88PrepaidDetails)||void 0===a?void 0:a.filter((e=>e.currency===i));return null!==(d=null===l||void 0===l||null===(r=l[0])||void 0===r?void 0:r.bet_count)&&void 0!==d?d:0}return null!==(n=null===e||void 0===e?void 0:e.freeSpinsQty)&&void 0!==n?n:0};return{keys:e,dataToShow:o=>{var n,s,t,c,v;switch("match_1"===(null===o||void 0===o?void 0:o.bonusType)?"MATCH":null===o||void 0===o||null===(n=o.bonusType)||void 0===n?void 0:n.toUpperCase()){case"MATCH":null!==o&&void 0!==o&&null!==(s=o.other)&&void 0!==s&&s.wageringRequirement?i([...d(o),...r(o)]):i([...d(o),...r(o),{label:null===l||void 0===l?void 0:l.bonusPercentage,value:(null===o||void 0===o||null===(t=o.bonus)||void 0===t?void 0:t.depositBonusPercent)+"%"}]);break;case"BALANCE":null!==o&&void 0!==o&&null!==(c=o.other)&&void 0!==c&&c.wageringRequirement?i([...d(o)]):i([...d(o),{label:null===l||void 0===l?void 0:l.minBalancePercentage,value:(null===o||void 0===o||null===(v=o.bonus)||void 0===v?void 0:v.depositBonusPercent)+"%"}]);break;case"DEPOSIT":case"WAGERING":i([...d(o),...r(o)]);break;case"FREESPINS":null!==o&&void 0!==o&&o.isSticky?i([...d(o),{label:null===l||void 0===l?void 0:l.FREESPINS,value:u(o,a)},...r(o)]):i([...d(o),{label:null===l||void 0===l?void 0:l.FREESPINS,value:u(o,a)}])}return e}}},O=e=>{const{selectedLanguageCode:i,activateBonus:l,setSelectedBonus:s,setForfeitModal:t,setBonusForfeitWarningModal:a,setNewSelectedBonus:r,showBonusForfeitConfirmationModal:u}
1=e,[c,v]=(0,n.useState)(null),[m,h]=(0,n.useState)(!1),{keys:x,dataToShow:y}=M(),j=(0,d.Zp)();return(0,o.A)({handleBonusActivation:function(e,i){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=arguments.length>3?arguments[3]:void 0;const d=e.rows,u=d.find((e=>"ACTIVE"===e.status));if(u)return t(!0),void s(u);const c=d.find((e=>e.status===p.P.ACTIVE&&e.isTransactionCreated));if(c)return a(!0),s(c),void r({bonusDetail:i,identifier:o});l(i,o,n),setTimeout((()=>{h(!1)}),1e3)},overlayContent:e=>{var l,o,n,s,t,a,d,r,u,c,v;return(0,g.jsx)("div",{children:null!==e&&void 0!==e&&null!==(l=e.other)&&void 0!==l&&l.bonusTitle?"string"===typeof(null===e||void 0===e||null===(o=e.other)||void 0===o?void 0:o.bonusTitle)?null===e||void 0===e||null===(n=e.other)||void 0===n?void 0:n.bonusTitle:"".concat((null===e||void 0===e||null===(s=e.other)||void 0===s||null===(t=s.bonusTitle)||void 0===t?void 0:t[i])||(null===e||void 0===e||null===(a=e.other)||void 0===a||null===(d=a.bonusTitle)||void 0===d?void 0:d.EN)):"".concat((null===e||void 0===e||null===(r=e.bonus)||void 0===r||null===(u=r.promotionTitle)||void 0===u?void 0:u[i])||(null===e||void 0===e||null===(c=e.bonus)||void 0===c||null===(v=c.promotionTitle)||void 0===v?void 0:v.EN))})},renderTooltip:e=>(0,g.jsx)(B.A,(0,o.A)((0,o.A)({},e),{},{children:(null===x||void 0===x?void 0:x.length)>0&&(null===x||void 0===x?void 0:x.map((e=>{let{label:i,value:l}=e;return l&&(0,g.jsxs)("div",{className:"text-left",children:[(0,g.jsxs)("span",{children:[i," : "]}),(0,g.jsxs)("span",{children:[l," "]})]},"".concat(i,"-").concat(l))})))})),dataToShow:y,navigate:j,selectedBonusDetail:c,setSelectedBonusDetail:v,showFreeSpinGameModal:m,setShowFreeSpinGameModal:h,showBonusForfeitConfirmationModal:u},e)};var V=l(66658);const U=e=>{let{content:i,bonusDetail:l}=e;return(0,g.jsx)(g.Fragment,{children:(0,g.jsx)(T.A,{placement:"top",overlay:(0,g.jsx)(B.A,{id:"tooltip-".concat(l.bonusId),className:"description-tooltip",children:i}),children:(0,g.jsx)("div",{id:"bonus-des-".concat(l.bonusId),className:"bonus-description truncate-large-content",children:i})})})};var _=l(76598),G=l(85472),W=l(48253),Y=l(55213),q=l(26338);const z=e=>{const{bonusList:i,selectedLanguageCode:l,cardStatus:s,handleBonusActivation:t,overlayContent:a,renderTooltip:d,dataToShow:r,navigate:u,languageData:c,showFreeSpinGameModal:v,setShowFreeSpinGameModal:m,selectedBonusDetail:h,setSelectedBonusDetail:y,showBonusForfeitConfirmationModal:j}=O(e),{showInfo:w,setShowInfo:N,selectedBonusInfo:A,setSelectedBonusInfo:C}=(0,W.A)(),D=e=>{var i,o,n,s,t,a,d,r;const u=null!==(i=e.bonus)&&void 0!==i&&null!==(o=i.description)&&void 0!==o&&o[l]?null===(n=e.bonus)||void 0===n||null===(s=n.description)||void 0===s||null===(t=s[l])||void 0===t?void 0:t.replace(/ /g," "):null===(a=e.bonus)||void 0===a||null===(d=a.description)||void 0===d||null===(r=d.EN)||void 0===r?void 0:r.replace(/ /g," ");return(0,q.mb)(u)},[L,S]=(0,n.useState)(null);return(0,g.jsxs)(g.Fragment,{children:[i.rows.map(((n,v)=>{var h,w,A,k,I,E,B,P,R;return(0,g.jsxs)("div",{className:"bonus-cart-section",children:[(0,g.jsxs)("div",{className:"bonus-img-section star-section",children:[("active"===s||(null===n||void 0===n?void 0:n.status)===p.P.ACTIVE)&&(0,g.jsxs)("div",{className:"bonus-status",children:[(0,g.jsx)("div",{className:"circle"}),(0,g.jsx)("div",{children:"ZEROED OUT"===(null===n||void 0===n?void 0:n.status)?null===c||void 0===c?void 0:c.zeroedOut:(null===n||void 0===n?void 0:n.status)===p.P.ACTIVE?null===c||void 0===c?void 0:c.active:null===c||void 0===c?void 0:c[null===n||void 0===n||null===(h=n.status)||void 0===h?void 0:h.toLowerCase()]})]}),(0,g.jsx)("img",{src:null===c||void 0===c?void 0:c.bonusStaticImage,alt:"img"})]}),(0,g.jsxs)("div",{className:"bonus-detail-section",children:[(0,g.jsxs)("div",{className:"d-flex flex-row",children:[(0,g.jsx)("div",{className:"bonus-title",onClick:()=>{(null===n||void 0===n?void 0:n.bonusId)&&u("/".concat(null===l||void 0===l?void 0:l.toLowerCase(),"/promotion/").concat(null===n||void 0===n?void 0:n.bonusId,"/").concat(null===n||void 0===n?void 0:n.userBonusId))},children:(0,g.jsx)(b.A,(0,o.A)((0,o.A)({overlayContent:a(n)},f.i0),{},{children:a(n)}))}),(0,g.jsx)("div",{className:"bonus-title onclick-bonus-tnc",onClick:()=>{N(!0),C(n)},children:(0,g.jsx)("div",{children:a(n)})}),(0,g.jsx)("div",{className:"d-flex justify-content-start align-items-center bonus-popover",children:(0,g.jsx)(T.A,{trigger:["focu
1s","hover"],overlay:d,placement:"mobile"===V.R?"left":"top",children:(0,g.jsx)("div",{style:{maxWidth:"210px",cursor:"pointer"},className:"text-truncate",children:(0,g.jsx)("button",{onClick:()=>{r(n)},onMouseOver:()=>{r(n)},className:"loyalty-info",children:(0,g.jsx)(x.A,{name:"info-icon",className:"d-block",width:16,height:16})})})})})]}),D(n)&&(0,g.jsx)(U,{bonusDetail:n,content:(0,F.Ay)(null!==(w=n.bonus)&&void 0!==w&&null!==(A=w.description)&&void 0!==A&&A[l]?null===(k=n.bonus)||void 0===k||null===(I=k.description)||void 0===I||null===(E=I[l])||void 0===E?void 0:E.replace(/ /g," "):null===(B=n.bonus)||void 0===B||null===(P=B.description)||void 0===P||null===(R=P.EN)||void 0===R?void 0:R.replace(/ /g," "))})]}),(0,g.jsxs)("div",{className:"bonus-button-controls",children:[(0,g.jsx)(Y.Ay,{className:"forfeitBtn",onClick:()=>{j(n)},children:null===c||void 0===c?void 0:c.forfeit}),(null===n||void 0===n?void 0:n.status)!==p.P.ACTIVE&&(0,g.jsx)(Y.Ay,{variant:p.Vt.PRIMARY,size:"sm",className:"activeBtn",disabled:(null===e||void 0===e?void 0:e.isLoading)&&L===n.userBonusId,onClick:()=>{var e,l,o,s;const a=n.userBonusId;if(S(a),"freespins"===(null===n||void 0===n?void 0:n.bonusType)&&["2","3",3].includes(null===n||void 0===n||null===(e=n.bonus)||void 0===e||null===(l=e.other)||void 0===l?void 0:l.aggregatorId)&&(null===n||void 0===n?void 0:n.status)===p.P.PENDING)y(n),m(!0);else if(null!==n&&void 0!==n&&null!==(o=n.other)&&void 0!==o&&o.claimedGame&&null!==n&&void 0!==n&&null!==(s=n.other)&&void 0!==s&&s.claimedGame&&Object.keys(n.other.claimedGame).length>0&&(null===n||void 0===n?void 0:n.status)===p.P.ACTIVE){var d,r,u,c;t(i,n,null===n||void 0===n||null===(d=n.other)||void 0===d||null===(r=d.claimedGame)||void 0===r?void 0:r.identifier,null===n||void 0===n||null===(u=n.other)||void 0===u||null===(c=u.claimedGame)||void 0===c?void 0:c.gameId)}else t(i,n)},children:null===c||void 0===c?void 0:c.bonusActivate})]})]},v)})),v&&(0,g.jsx)(_.A,{showFreeSpinGameModal:v,setShowFreeSpinGameModal:m,isLoading:e.isLoading,selectedBonusDetail:h,activateBonus:(e,l,o)=>t(i,e,l,o)}),w&&(0,g.jsx)(G.A,{showInfo:w,setShowInfo:N,bonusDetails:A,selectedLanguageCode:l})]})},H=e=>{const{bonusList:i,selectedLanguageCode:l,cardStatus:n,handleBonusActivation:s,loyaltyProgressPercentage:t=0,languageData:a,showFreeSpinGameModal:d,setShowFreeSpinGameModal:r,selectedBonusDetail:u,setSelectedBonusDetail:c,showBonusForfeitConfirmationModal:v}=O(e),{showInfo:m,setShowInfo:h,selectedBonusInfo:y,setSelectedBonusInfo:j}=(0,W.A)(),w=t>=100?"100%":"".concat(t,"%"),N=e=>{var i,o,n,s,t,a,d,r,u,c,v,m,h,p,x,g,y,j;return null!==e&&void 0!==e&&null!==(i=e.other)&&void 0!==i&&i.promotionTitle?"string"===typeof(null===e||void 0===e||null===(o=e.other)||void 0===o?void 0:o.promotionTitle)?null===e||void 0===e||null===(n=e.other)||void 0===n?void 0:n.promotionTitle:"".concat((null===e||void 0===e||null===(s=e.other)||void 0===s||null===(t=s.promotionTitle)||void 0===t?void 0:t[l])||(null===e||void 0===e||null===(a=e.other)||void 0===a||null===(d=a.promotionTitle)||void 0===d?void 0:d.EN)):null!==e&&void 0!==e&&null!==(r=e.other)&&void 0!==r&&r.bonusTitle?"string"===typeof(null===e||void 0===e||null===(u=e.other)||void 0===u?void 0:u.bonusTitle)?null===e||void 0===e||null===(c=e.other)||void 0===c?void 0:c.bonusTitle:"".concat((null===e||void 0===e||null===(v=e.other)||void 0===v||null===(m=v.bonusTitle)||void 0===m?void 0:m[l])||(null===e||void 0===e||null===(h=e.other)||void 0===h||null===(p=h.bonusTitle)||void 0===p?void 0:p.EN)):"".concat((null===e||void 0===e||null===(x=e.bonus)||void 0===x||null===(g=x.promotionTitle)||void 0===g?void 0:g[l])||(null===e||void 0===e||null===(y=e.bonus)||void 0===y||null===(j=y.promotionTitle)||void 0===j?void 0:j.EN))};return(0,g.jsxs)(g.Fragment,{children:[i.rows.map((l=>{var d,u,m,y;return(0,g.jsxs)("div",{className:"bonus-card bonus-card--".concat("active"===n?"active":"pending"),children:[(0,g.jsxs)("div",{className:"w-100 d-flex justify-content-between align-items-center gap-3",children:[(0,g.jsxs)("div",{children:[("active"===n||(null===l||void 0===l?void 0:l.status)===p.P.ACTIVE)&&(0,g.jsxs)("div",{className:"bonus-card__status",children:[(0,g.jsx)("div",{className:"bonus-card__status-circle"}),(0,g.jsx)("div",{children:"ZEROED OUT"===(null===l||void 0===l?void 0:l.status)?null===a||void 0===a?void 0:a.zeroedOut:(null===l||void 0===l?void 0:l.status)===p.P.ACTIVE?null===a||void 0===a?void 0:a.active:null===a||void 0===a?void 0:a[null===l||void 0===l||null===(d=l.status)||void 0===d?void 0:d.toLowerCase()]})]}),(0,g.jsx)("img",{src:null===l||void 0===l||null===(u=l.bonus)||void 0===u?void 0:u.imageUrl,alt:"".concat(N(l)," icon"),className:"bonus-card__icon"})]}),(0,g.jsxs)("div",{className:"bonus-card__info",children:[(0,g.jsx)("div",{className:"bonus-card__title",children:N(l)}),(0,g.jsx)("div",{className:"bonus-card__terms-link",onClick:()=>{h(!0),j(l)},children:null===a||void 0===a?void 0:a.promTermsAndConditions}),"active"===n&&(null===l||void 0===l||null===(m=l.other)||void 0===m?void 0:m.showBonusValidity)&&(0,g.jsxs)("div",{className:"bonus-card__expiry",children:[null===a||void 0===a?void 0:a.expires," ",(0,R.zv)(l.expireAt),(0,g.jsx)(b.A,(0,o.A)((0,o.A)({overlayContent:(0,R.Vo)(l.expireAt)},f.i0),{},{children:(0,g.jsx)("span",{className:"expiry-info-icon",children:(0,g.jsx)(x.A,{name:"info-icon",className:"d-block",width:18,height:18})})}))]})]}),(0,g.jsx)("div",{className:"bonus-card__actions",children:"active"===n?(0,g.jsx)(g.Fragment,{children:(0,g.jsx)(Y.Ay,{className:"bonus-card__button bonus-card__button--forfeit",onClick:()=>{v(l)},children:null===a||void 0===a?void 0:a.forfeit})}):(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(Y.Ay,{className:"bonus-card__button bonus-card__button--activate",disabled:null===e||void 0===e?void 0:e.isLoading,onClick:()=>{var e,o;"freespins"===(null===l||void 0===l?void 0:l.bonusType)&&["2","3",3].includes(null===l||void 0===l||null===(e=l.bonus)||void 0===e||null===(o=e.other)||void 0===o?void 0:o.aggregatorId)&&"PENDING"===(null===l||void 0===l?void 0:l.status)?(c(l),r(!0)):s(i,l)},children:null===a||void 0===a?void 0:a.bonusActivate}),(0,g.jsx)(Y.Ay,{className:"bonus-card__button bonus-card__button--forfeit",onClick:()=>{v(l)},children:null===a||void 0===a?void 0:a.forfeit})]})})]}),"active"===n&&"balance"!==(null===l||void 0===l?void 0:l.bonusType)&&"freespins"===(null===l||void 0===l?void 0:l.bonusType)&&(null===l||void 0===l||null===(y=l.bonus)||void 0===y?void 0:y.isSticky)&&(0,g.jsxs)("div",{className:"bonus-card__progress-bar",children:[(0,g.jsx)("div",{className:"wagering-label",children:(0,g.jsx)("span",{children:null===a||void 0===a?void 0:a.WAGERING})}),(0,g.jsx)("div",{className:"progress",role:"progressbar","aria-label":"Wagering Progress","aria-valuenow":"".concat(t),"aria-valuemin":"
10","aria-valuemax":"100",children:(0,g.jsx)("div",{className:"progress-bar",style:{width:"".concat(t,"%")},children:w})})]})]},l.userBonusId)})),d&&(0,g.jsx)(_.A,{showFreeSpinGameModal:d,setShowFreeSpinGameModal:r,isLoading:e.isLoading,selectedBonusDetail:u,activateBonus:(e,l,o)=>s(i,e,l,o)}),m&&(0,g.jsx)(G.A,{showInfo:m,setShowInfo:h,bonusDetails:y})]})};var K=l(76139),Z=l(86930);const Q=e=>{let{games:i,selectedGameId:l}=e;const o=l&&(null===i||void 0===i?void 0:i.find((e=>(null===e||void 0===e?void 0:e.gameId)===l)))||(null===i||void 0===i?void 0:i[0]),{selectedLanguageCode:s,languageData:t}=(0,n.useContext)(D),{toggleFavorite:a,favoriteGamesList:d}=(0,Z.A)();return(0,g.jsx)("div",{className:"available-game-section",children:(null===i||void 0===i?void 0:i.length)>0&&(0,g.jsxs)("div",{className:"available-game-card-wrapper",children:[(0,g.jsx)("div",{className:"selected-game-bonus-title",children:(null===t||void 0===t?void 0:t.bonusSelectedGame)||"Selected Game for Bonus"}),(0,g.jsx)(K.A,{game:o,index:0,toggleFavorite:a,selectedLanguageCode:s,lobby:!1,favoriteGamesList:d},null===o||void 0===o?void 0:o.gameId)]})})};var J=l(87620);const X=e=>{const{bonusList:i,selectedLanguageCode:l,cardStatus:t,handleBonusActivation:a,languageData:r,showFreeSpinGameModal:u,setShowFreeSpinGameModal:c,selectedBonusDetail:h,setSelectedBonusDetail:y,showBonusForfeitConfirmationModal:j,renderTooltip:w,dataToShow:N}=O(e),A=(0,s.wA)(),[C,D]=(0,n.useState)(null),L=(0,d.Zp)(),{games:S=[]}=e,k="active"===t,I=e=>{var i,o,n,s,t,a,d,r,u,c,v,m,h,p,x,g,y,j;return null!==e&&void 0!==e&&null!==(i=e.bonus)&&void 0!==i&&i.promotionTitle?"string"===typeof(null===e||void 0===e||null===(o=e.bonus)||void 0===o?void 0:o.promotionTitle)?null===e||void 0===e||null===(n=e.bonus)||void 0===n?void 0:n.promotionTitle:"".concat((null===e||void 0===e||null===(s=e.bonus)||void 0===s||null===(t=s.promotionTitle)||void 0===t?void 0:t[l])||(null===e||void 0===e||null===(a=e.bonus)||void 0===a||null===(d=a.promotionTitle)||void 0===d?void 0:d.EN)):null!==e&&void 0!==e&&null!==(r=e.other)&&void 0!==r&&r.bonusTitle?"string"===typeof(null===e||void 0===e||null===(u=e.other)||void 0===u?void 0:u.bonusTitle)?null===e||void 0===e||null===(c=e.other)||void 0===c?void 0:c.bonusTitle:"".concat((null===e||void 0===e||null===(v=e.other)||void 0===v||null===(m=v.bonusTitle)||void 0===m?void 0:m[l])||(null===e||void 0===e||null===(h=e.other)||void 0===h||null===(p=h.bonusTitle)||void 0===p?void 0:p.EN)):"".concat((null===e||void 0===e||null===(x=e.bonus)||void 0===x||null===(g=x.promotionTitle)||void 0===g?void 0:g[l])||(null===e||void 0===e||null===(y=e.bonus)||void 0===y||null===(j=y.promotionTitle)||void 0===j?void 0:j.EN))},E=()=>{L("/".concat(null===l||void 0===l?void 0:l.toLowerCase(),"/bonus-terms")),A((0,v.Oo)(m.lx.BONUS_INFORMATION_MODAL))},B=e=>{A((0,v.qf)({name:m.lx.BONUS_INFORMATION_MODAL,modalProps:{className:"bonus-card-v3-info-modal-container",showCloseButton:!1},title:"",body:()=>{var i,o,n,s,t,a;return(0,g.jsx)(g.Fragment,{children:(0,g.jsxs)("div",{className:"active-bonus-v2-info",children:[(0,g.jsx)("div",{className:"bonus-info-close-icon",onClick:()=>{A((0,v.Oo)(m.lx.BONUS_INFORMATION_MODAL))},children:(0,g.jsx)(x.A,{name:"cross",height:16,width:16})}),(0,g.jsx)("div",{className:"bonus-info-img-section",children:(0,g.jsx)("img",{src:null===e||void 0===e||null===(i=e.bonus)||void 0===i?void 0:i.imageUrl,alt:"".concat(I(e)," icon"),className:"bonus-info-icon"})}),(0,g.jsx)("div",{className:"bonus-tc-bonus-title",children:I(e)}),(0,g.jsx)("div",{className:"bonus-desc-title",children:(null===r||void 0===r?void 0:r.gamePlay)||""}),(0,g.jsx)("div",{className:"bonus-v3-info-description",children:(null===e||void 0===e||null===(o=e.bonus)||void 0===o?void 0:o.description)&&(0,F.Ay)((0,q.sq)(null===e||void 0===e||null===(n=e.bonus)||void 0===n?void 0:n.description[l||"EN"]))}),(0,g.jsxs)("div",{className:"bonus-term-and-condition-wrapper",children:[(0,g.jsx)("div",{className:"bonus-term-and-condition-title",children:null===r||void 0===r?void 0:r.promTermsAndConditions}),(0,g.jsx)("div",{className:"bonus-v2-info-terms-and-condition",children:(0,q.mb)(null===e||void 0===e||null===(s=e.bonus)||void 0===s||null===(t=s.termCondition)||void 0===t?void 0:t.EN)?(0,F.Ay)((0,q.sq)(null===e||void 0===e||null===(a=e.bonus)||void 0===a?void 0:a.termCondition[l||"EN"])):(0,g.jsx)("div",{onClick:E,style:{cursor:"pointer"},children:(null===r||void 0===r?void 0:r.dashboard_activeBonusDefaultTnCText)||"Click here to view the full bonus terms and conditions."})})]})]})})},buttons:[{text:null===r||void 0===r?void 0:r.forfeit,variant:p.Vt.FORFEIT_BONUS,onClick:()=>{j(e)}},{text:null===r||void 0===r?void 0:r.bonusActivate,variant:p.Vt.SECONDARY,className:"".concat(k?"disabled":""),disabled:k,onClick:()=>{var l,o;A((0,v.Oo)(m.lx.BONUS_INFORMATION_MODAL)),"freespins"===(null===e||void 0===e?void 0:e.bonusType)&&["2","3",3].includes(null===e||void 0===e||null===(l=e.bonus)||void 0===l||null===(o=l.other)||void 0===o?void 0:o.aggregatorId)&&"PENDING"===(null===e||void 0===e?void 0:e.status)?(y(e),c(!0)):a(i,e)}}],onClose:()=>{A((0,v.Oo)(m.lx.BONUS_INFORMATION_MODAL))}}))};return(0,g.jsxs)(g.Fragment,{children:[i.rows.map((l=>{var n,s,t,d;let u="";u=(0,J.P)(l.userBonusId);const v=(null===l||void 0===l?void 0:l.wageredAmount)||0,m=(null===l||void 0===l?void 0:l.amountToWager)||1,h=null===(n=parseFloat(v/m*100))||void 0===n?void 0:n.toFixed(2),A=h>=100?"100%":"".concat(h,"%"),L=k&&"PENDING"!==(null===l||void 0===l?void 0:l.status)&&"ACTIVE"===(null===l||void 0===l?void 0:l.status)&&"STARTED"===(null===l||void 0===l?void 0:l.wageringStatus)&&"balance"!==(null===l||void 0===l?void 0:l.bonusType);return(0,g.jsxs)("div",{className:"bonus-card-v3-wrapper ".concat(k?""
1:"not-active-wrapper"),style:k?{}:{backgroundImage:"url(".concat(u,")")},children:[k&&(0,g.jsx)("div",{className:"bonus-card-v3-active-background ".concat(L?"wagering-visible":""),style:{backgroundImage:"url(".concat(u,")")}}),(0,g.jsxs)("div",{className:"bonus-card-v3-heading-section",children:[(0,g.jsxs)("div",{className:"bonus-card-v3-heading-details ".concat(k?"active":""),children:[(0,g.jsx)("div",{className:"bonus-card-v3-bonus-img",children:(0,g.jsx)("img",{src:null===l||void 0===l||null===(s=l.bonus)||void 0===s?void 0:s.imageUrl,alt:"icon",className:"bonus-card-icon"})}),(0,g.jsx)("div",{className:"bonus-v3-description-wrapper",children:(0,g.jsx)("div",{className:"bonus-v3-name",onClick:()=>{B(l)},children:I(l)})})]}),!k&&(0,g.jsxs)("div",{className:"bonus-v3-action-btn-wrapper",children:[(0,g.jsx)(Y.Ay,{variant:p.Vt.FORFEIT_BONUS,className:"bonus-card-v3-forfeit-btn action-btn",onClick:()=>{j(l)},children:null===r||void 0===r?void 0:r.forfeit}),(0,g.jsx)(Y.Ay,{variant:p.Vt.SECONDARY,disabled:(null===e||void 0===e?void 0:e.isLoading)&&C===l.userBonusId,className:"bonus-card-v3-activate-btn action-btn",onClick:()=>{var e,o;const n=l.userBonusId;D(n),"freespins"===(null===l||void 0===l?void 0:l.bonusType)&&["2","3",3].includes(null===l||void 0===l||null===(e=l.bonus)||void 0===e||null===(o=e.other)||void 0===o?void 0:o.aggregatorId)&&"PENDING"===(null===l||void 0===l?void 0:l.status)?(y(l),c(!0)):a(i,l)},children:null===r||void 0===r?void 0:r.bonusActivate})]}),k&&(0,g.jsx)("div",{className:"bonus-card-v3-info-icon-wrapper",children:(0,g.jsx)(T.A,{overlayContent:w,trigger:"hover",overlayType:"tooltip",overlayId:"bonus_title_overlay_".concat(l.userBonusId),overlay:w,placement:"mobile"===V.R?"left":"top",children:(0,g.jsx)("div",{className:"bonus-card-v3-info-icon",onClick:()=>{N(l)},onMouseEnter:()=>{N(l)},children:(0,g.jsx)(x.A,{name:"info",height:24,width:24})})})})]}),L&&(0,g.jsxs)("div",{className:"bonus-card-loyalty-bar-wrapper",children:[(0,g.jsx)("div",{className:"progress-track",role:"progressbar","aria-label":"Wagering Progress","aria-valuenow":Number(h||0),"aria-valuemin":"0","aria-valuemax":"100",children:(0,g.jsx)("div",{className:"progress-fill",style:{width:"".concat(h,"%")}})}),(0,g.jsx)("div",{className:"progress-bar-value",children:A})]}),k&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"divider"}),(null===l||void 0===l||null===(t=l.other)||void 0===t?void 0:t.showBonusValidity)&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)("div",{className:"bonus-v3-duration-wrapper",children:[(0,g.jsxs)("div",{className:"bonus-card-v3-start",children:[null===r||void 0===r?void 0:r.activeFrom," ",(0,R.zv)(l.claimedAt)]}),(0,g.jsx)("div",{className:"seperator"}),(0,g.jsxs)("div",{className:"bonus-card-v3-end",children:[null===r||void 0===r?void 0:r.expiresOn," ",(0,R.zv)(l.expireAt),(0,g.jsx)(b.A,(0,o.A)((0,o.A)({overlayContent:(0,R.Vo)(l.expireAt)},f.i0),{},{children:(0,g.jsx)("span",{className:"expiry-info-icon",children:(0,g.jsx)(x.A,{name:"info",height:24,width:24})})}))]})]}),(0,g.jsx)("div",{className:"divider"})]}),(null===S||void 0===S?void 0:S.length)>0&&(0,g.jsx)(Q,{games:S,selectedGameId:null===l||void 0===l||null===(d=l.other)||void 0===d?void 0:d.selectedGameId}),(0,g.jsx)("div",{className:"bonus-card-v3-forfeit-wrapper",children:(0,g.jsx)(Y.Ay,{variant:p.Vt.FORFEIT_BONUS,className:"bonus-card-v3-forfeit",onClick:()=>{j(l)},children:null===r||void 0===r?void 0:r.forfeit})}),(0,g.jsx)("div",{className:"bonus-card-v3-terms",children:(0,g.jsx)("div",{className:"bonus-card_v3_terms-link",onClick:()=>{B(l)},children:null===r||void 0===r?void 0:r.bonusTermsApply})})]})]},l.userBonusId)})),u&&(0,g.jsx)(_.A,{showFreeSpinGameModal:u,setShowFreeSpinGameModal:c,isLoading:e.isLoading,selectedBonusDetail:h,activateBonus:(e,l,o)=>a(i,e,l,o)})]})},$=e=>{const i=(0,s.d4)((e=>{var i,l;return null===e||void 0===e||null===(i=e.uiConfig)||void 0===i||null===(l=i.general)||void 0===l?void 0:l.bonusCardVariant}))||t.QY.V1;return i===t.QY.V1?(0,g.jsx)(z,(0,o.A)({},e)):i===t.QY.V2?(0,g.jsx)(H,(0,o.A)({},e)):i===t.QY.V3?(0,g.jsx)(X,(0,o.A)({},e)):null};var ee=l(59809),ie=l(2197);const le=e=>{var i;let{bonus:l={}}=e;const{selectedLanguageCode:o,languageData:s}=(0,n.useContext)(D),{toggleFavorite:t,favoriteGamesList:a}=(0,Z.A)(),{games:d=[]}=l,r=null===l||void 0===l||null===(i=l.other)||void 0===i?void 0:i.selectedGameId,u=(0,n.useMemo)((()=>
1{if(!r||!Array.isArray(d))return d;const e=d.find((e=>[e.categoryGameId,null===e||void 0===e?void 0:e.gameId,null===e||void 0===e?void 0:e.id].some((e=>void 0!==e&&String(e)===String(r)))));return e?[e]:d}),[d,r]);return(0,g.jsxs)("div",{className:"available-game-section",children:[(0,g.jsx)(k,{headingText:null===s||void 0===s?void 0:s.availableGames}),(null===u||void 0===u?void 0:u.length)>0&&(0,g.jsx)("div",{className:"game-slider-container",children:(0,g.jsx)(ee.A,{slides:u,type:ie.mo.AVAILABLE_GAMES,sliderCard:e=>{let{index:i,game:l}=e;return(0,g.jsx)(K.A,{game:l,index:i,toggleFavorite:t,selectedLanguageCode:o,lobby:!1,favoriteGamesList:a},i)}})})]})},oe=e=>{let{initialContent:i,languageData:l}=e;const[o,t]=(0,n.useState)(!1),[a,r]=(0,n.useState)(!1),u=(0,n.useRef)(null),c=(0,d.Zp)(),{selectedLanguageCode:v}=(0,s.d4)((e=>e.language));(0,n.useEffect)((()=>{const e=u.current;e&&r(e.scrollHeight>60)}),[i]);return(0,g.jsxs)("div",{className:"bonus-term-condition",children:[(0,g.jsx)(k,{headingText:null===l||void 0===l?void 0:l.promTermsAndConditions}),(0,q.mb)(i)?(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{ref:u,className:"term-and-condition".concat(!o&&a?" truncate-large-content":""),style:!o&&a?{maxHeight:60,transition:"max-height 0.3s"}:{transition:"max-height 0.3s"},children:(0,F.Ay)((0,q.sq)(i))}),!o&&a&&(0,g.jsx)("div",{className:"d-flex justify-content-center align-item-center view-all-btn-box",children:(0,g.jsxs)(Y.Ay,{onClick:()=>t(!0),size:"sm",className:"term-and-condition-button",children:[null===l||void 0===l?void 0:l.viewAll," T&C"]})}),o&&a&&(0,g.jsx)("div",{className:"d-flex justify-content-center align-item-center view-all-btn-box",children:(0,g.jsx)(Y.Ay,{onClick:()=>t(!1),size:"sm",className:"term-and-condition-button",children:(null===l||void 0===l?void 0:l.showLess)||"Show Less"})})]}):(0,g.jsx)("div",{className:"term-and-condition".concat(!o&&a?" truncate-large-content":""),onClick:()=>{c("/".concat(null===v||void 0===v?void 0:v.toLowerCase(),"/bonus-terms"))},style:{cursor:"pointer"},children:(null===l||void 0===l?void 0:l.dashboard_activeBonusDefaultTnCText)||"Click here to view the full bonus terms and conditions."})]})};var ne=l(55934),se=l(65513);const te=e=>{let{now:i,label:l,progressClass:o="",leftStyle:n=""}=e;return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(se.A,{now:i,label:i>30?l:""}),i<=30&&(0,g.jsx)("div",{className:o,style:{left:n},children:"".concat(i,"%")})]})};var ae=l(86791),de=l.n(ae);const re=C((()=>{var e,i,l,a,d,r,u,c,v,m,h;const p=(0,n.useContext)(D),{userActiveBonus:y,activeBonusLoading:j,languageData:w}=p,{userBonusDetails:N}=(0,s.d4)((e=>e.bonus)),A=(0,s.d4)((e=>{var i,l;return null===e||void 0===e||null===(i=e.uiConfig)||void 0===i||null===(l=i.general)||void 0===l?void 0:l.bonusCardVariant}))||t.QY.V1,C=null===(e=y.rows)||void 0===e?void 0:e.filter((e=>"ACTIVE"===e.status)),L=(0,n.useMemo)((()=>{var e;return Array.isArray(null===y||void 0===y?void 0:y.rows)&&N[null===y||void 0===y||null===(e=y.rows[0])||void 0===e?void 0:e.userBonusId]||{}}),[null===y||void 0===y?void 0:y.rows,N]),S=(null===C||void 0===C?void 0:C.length)>0?null===(i=C[0])||void 0===i?void 0:i.wageredAmount:0,E=(null===C||void 0===C?void 0:C.length)>0&&(null===(l=C[0])||void 0===l?void 0:l.amountToWager)||1,T=null===(a=parseFloat(S/E*100))||void 0===a?void 0:a.toFixed(2),B=T>=100?"100%":"".concat(T,"%");return(0,g.jsx)("div",{className:"dashboard-section",children:(0,g.jsxs)("div",{className:"active-bonuses-section",children:[(0,g.jsx)(k,{headingText:null===w||void 0===w?void 0:w.activeBonuses}),j?(0,g.jsx)(I.A,{top:"2rem"}):0===(null===y||void 0===y?void 0:y.count)?(0,g.jsx)("div",{className:"no-data-found",children:(0,g.jsx)(ne.A,{errorMessage:null===w||void 0===w?void 0:w.noBonuses})}):!de()(L)&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"active-bonuses-list",children:(null===(d=y.rows)||void 0===d?void 0:d.length)>0&&(0,g.jsx)($,(0,o.A)({cardStatus:"active",loyaltyProgressPercentage:T,bonusList:y},p))}),A===t.QY.V1&&(0,g.jsxs)("div",{className:"bonus-active-info",children:[(null===L||void 0===L||null===(r=L.other)||void 0===r?void 0:r.showBonusValidity)&&(0,g.jsxs)("div",{className:"dates",children:[(0,g.jsxs)("span",{className:"active",children:[null===w||void 0===w?void 0:w.activeFrom,(0,R.zv)(L.validFrom)," - "]}),(0,g.jsxs)("span",{className:"expires",children:[null===w||void 0===w?void 0:w.expires," ",(0,R.zv)(L.validTo),(0,g.jsx)(b.A,(0,o.A)((0,o.A)({overlayContent:(0,R.Vo)(L.validTo)},f.i0),{},{children:(0,g.jsx)("span",{className:"expiry-info-icon",children:(0,g.jsx)(x.A,{name:"info-icon",className:"d-block",width:18,height:18})})}))]})]}),(null===C||void 0===C?void 0:C.length)>0&&"PENDING"!==(null===(u=C[0])||void 0===u?void 0:u.status)&&"ACTIVE"===(null===(c=C[0])||void 0===c?void 0:c.status)&&"STARTED"===(null===(v=C[0])||void 0===v?void 0:v.wageringStatus)&&"balance"!==(null===(m=C[0])||void 0===m?void 0:m.bonusType)&&(0,g.jsx)(g.Fragment,{children:(0,g.jsx)("div",{className:"wager-main-progress-container",children:(0,g.jsx)(te,{now:T,label:B,progressClass:"default-percentage"})})})]}),(null===L||void 0===L||null===(h=L.games)||void 0===h?void 0:h.length)>0&&(0,g.jsx)(le,{bonus:L}),A===t.QY.V1&&L.termCondition&&(0,g.jsx)(oe,{languageData:w,initialContent:L.termCondition})]})]})})})),ue=e=>{var i;let{initialContent:l,languageData:o,bonusDetail:n,onClickForfeit:s=()=>{},onClickActivate:t=()=>{},selectedLanguageCode:a}=e;const d=e=>{var i,l,o,n,s,t,d,r,u,c,v,m,h,p,x,g,y,j;return null!==e&&void 0!==e&&null!==(i=e.other)&&void 0!==i&&i.promotionTitle?"string"===typeof(null===e||void 0===e||null===(l=e.other)||void 0===l?void 0:l.promotionTitle)?null===e||void 0===e||null===(o=e.other)||void 0===o?void 0:o.promotionTitle:"".concat((null===e||void 0===e||null===(n=e.other)||void 0===n||null===(s=n.promotionTitle)||void 0===s?void 0:s[a])||(null===e||void 0===e||null===(t=e.other)||void 0===t||null===(d=t.promotionTitle)||void 0===d?void 0:d.EN)):null!==e&&void 0!==e&&null!==(r=e.other)&&void 0!==r&&r.bonusTitle?"string"===typeof(null===e||void 0===e||null===(u=e.other)||void 0===u?void 0:u.bonusTitle)?null===e||void 0===e||null===(c=e.other)||void 0===c?void 0:c.bonusTitle:"".concat((null===e||void 0===e||null===(v=e.other)||void 0===v||null===(m=v.bonusTitle)||void 0===m?void 0:m[a])||(null===e||void 0===e||null===(h=e.other)||void 0===h||null===(p=h.bonusTitle)||void 0===p?void 0:p.EN)):"".concat((null===e||void 0===e||null===(x=e.bonus)||void 0===x||null===(g=x.promotionTitle)||void 0===g?void 0:g[a])||(null===e||void 0===e||null===(y=e.bonus)||void 0===y||null===(j=y.promotionTitle)||void 0===j?void 0:j.EN))};return(0,g.jsxs)("div",{className:"active-bonus-v2-term-and-condition",children:[(0,g.jsx)("div",{className:"bonus-tc-icon-section",children:(0,g.jsx)("img",{src:null===n||void 0===n||null===(i=n.bonus)||void 0===i?void 0:i.imageUrl,alt:"".concat(d(n)," icon"),className:"bonus-card-icon"})}),(0,g.jsx)("div",{className:"bonus-tc-bonus-title",children:d(n)}),(0,g.jsx)("div",{className:"bonus-tc-desctiption",children:(0,F.Ay)((0,q.sq)(l))}),(0,g.jsx)("div",{className:"bonus-tc-terms-and-condition",children:(0,F.Ay)((0,q.sq)(l))}),(0,g.jsx)("div",{className:"bonus-tc-footer-section",children:(0,g.jsxs)("div",{className:"bonus-tc-footer-action-button-wrapper",children:[(0,g.jsx)(Y.Ay,{variant:p.Vt.FORFEIT_BONUS,className:"bonus-card-v3-forfeit-btn action-btn",onClick:()=>{s(n)},children:null===o||void 0===o?void 0:o.forfeit}),(0,g.jsx)(Y.Ay,{variant:p.Vt.BANNER,className:"bonus-card-v3-activate-btn action-btn",onClick:()=>{t(n)},children:null===o||void 0===o?void 0:o.bonusActivate})]})})]})},ce=C((()=>{var e,i,l,a,d;const r=(0,n.useContext)(D),{userActiveBonus:u,activeBonusLoading:c,languageData:v}=r,{userBonusDetails:m}=(0,s.d4)((e=>e.bonus)),h=(0,s.d4)((e=>{var i,l;return null===e||void 0===e||null===(i=e.uiConfig)||void 0===i||null===(l=i.general)||void 0===l?void 0:l.bonusCardVariant}))||t.QY.V1,p=null===(e=u.rows)||void 0===e?void 0:e.filter((e=>"ACTIVE"===e.status)),y=(0,n.useMemo)((()=>{var e;return Array.isArray(null===u||void 0===u?void 0:u.rows)&&m[null===u||void 0===u||null===(e=u.rows[0])||void 0===e?void 0:e.userBonusId]||{}}),[null===u||void 0===u?void 0:u.rows,m]),j=(null===p||void 0===p?void 0:p.length)>0?null===(i=p[0])||void 0===i?void 0:i.wageredAmount:0,b=(null===p||void 0===p?void 0:p.length)>0&&(null===(l=p[0])||void 0===l?void 0:l.amountToWager)||1,f=null===(a=parseFloat(j/b*100))||void 0===a?void 0:a.toFixed(2);return(0,g.jsx)("div",{className:"dashboard-bonus-v2-wrapper",children:(0,g.jsxs)("div",{className:"dashboard-bonus-v2-content",children:[(0,g.jsx)("div",{className:"heading-title",children:(null===v||void 0===v?void 0:v.activeBonuses)||"Active Bonuses"}),c?(0,g.jsx)(I.A,{top:"2rem"}):0===(null===u||void 0===u?void 0:u.count)?(0,g.jsxs)("div",{className:"no-active-bonuses-found",children:[(0,g.jsx)("div",{className:"no-data-found-icon",children:(0,g.jsx)(x.A,{name:"NoBonusAvailable",width:232,height:110})}),(0,g.jsx)("div",{className:"no-data-found-text",children:(null===v||void 0===v?void 0:v.noActiveBonusesFound)||"No active bonuses found at the moment"})]}):!de()(y)&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"active-bonuses-list",children:(null===(d=u.rows)||void 0===d?void 0:d.length)>0&&(0,g.jsx)($,(0,o.A)({cardStatus:"active",loyaltyProgressPercentage:f,bonusList:u,games:null===y||void 0===y?void 0:y.games},r))}),h===t.QY.V1&&y.termCondition&&(0,g.jsx)(ue,{languageData:v,initialContent:y.termCondition})]})]})})})),ve=e=>{var i;const l=(0,s.d4)((e=>{var i;return null===(i=e.uiConfig)||void 0===i?void 0:i.general})),n=null!==(i=null===l||void 0===l?void 0:l.activeBonuses)&&void 0!==i?i:t.pI.V1;return("object"===typeof n&&null!==n&&void 0!==n&&n.variant?n.variant:n)===t.pI.V2?(0,g.jsx)(ce,(0,o.A)({},e)):(0,g.jsx)(re,(0,o.A)({},e))};var me=l(50416);const he=()=>{const e=(0,s.wA)(),i=(0,n.useContext)(D),{bonusForfeitWarningModal:l,activateBonus:o,setBonusForfeitWarningModal:t,selectedBonus:a,selectedLanguageCode:d,showLapsedModal:r,setShowLapsedModal:u,languageData:c,newSelectedBonus:h}=i;(0,n.useEffect)((()=>
1{r&&e((0,v.qf)({name:m.lx.LAPSED_MODAL,graphic:(0,g.jsx)(x.A,{name:"warning",height:80,width:140}),title:(null===c||void 0===c?void 0:c.bonusLapsedTitle)||"Bonus Lapsed",body:null===c||void 0===c?void 0:c.bonusLapsed,buttons:[{text:null===c||void 0===c?void 0:c.ok,variant:p.Vt.SECONDARY,onClick:()=>{e((0,v.Oo)(m.lx.LAPSED_MODAL)),u(!1)}}],onClose:()=>{e((0,v.Oo)(m.lx.LAPSED_MODAL)),u(!1)}}))}),[r]),(0,n.useEffect)((()=>{var i,n,s,r;l&&e((0,v.qf)({name:m.lx.BONUS_FORFEIT_WARNING_MODAL,graphic:(0,g.jsx)(x.A,{name:"warning",height:80,width:140}),title:(null===c||void 0===c?void 0:c.bonusForfeitWarningTitle)||"Warning: You have an in-progress bonus with an existing transaction.",body:(0,g.jsxs)("div",{className:"text-center",children:[(0,g.jsx)("span",{className:"text-capitalize highlighted-content",children:" ".concat((null===a||void 0===a||null===(i=a.bonus)||void 0===i||null===(n=i.promotionTitle)||void 0===n?void 0:n[d])||(null===a||void 0===a||null===(s=a.bonus)||void 0===s||null===(r=s.promotionTitle)||void 0===r?void 0:r.EN)," ")}),(0,g.jsx)("p",{children:(null===c||void 0===c?void 0:c.bonusForfeitWarningDesc)||"If you proceed with a new bonus, your current in-progress bonus will be moved back to Available Rewards, and your deposit for that bonus will be treated as a standard deposit. Would you like to continue?"})]}),buttons:[{text:(null===c||void 0===c?void 0:c.continue)||"Continue",variant:p.Vt.PRIMARY,onClick:()=>{o(h.bonusDetail,null===h||void 0===h?void 0:h.identifier),e((0,v.Oo)(m.lx.BONUS_FORFEIT_WARNING_MODAL)),t(!1)}},{text:(null===c||void 0===c?void 0:c.cancel)||"Cancel",variant:p.Vt.SECONDARY,onClick:()=>{e((0,v.Oo)(m.lx.BONUS_FORFEIT_WARNING_MODAL)),t(!1)}}],onClose:()=>{e((0,v.Oo)(m.lx.BONUS_FORFEIT_WARNING_MODAL)),t(!1)}}))}),[l])},pe=C((()=>{var e,i;const l=(0,n.useContext)(D),{languageData:t,userComingActiveBonusLoading:a,userComingActiveBonus:d,claimableBonusPageNo:r,setClaimableBonusPageNo:u}=l,{loading:c}=(0,s.d4)((e=>e.bonus));return(0,g.jsx)("div",{className:"dashboard-section",children:(0,g.jsxs)("div",{className:"claimable-bonuses-section",children:[(0,g.jsx)(k,{headingText:null===t||void 0===t?void 0:t.claimableBonuses}),a?(0,g.jsx)(I.A,{top:"2rem"}):0===(null===d||void 0===d?void 0:d.count)?(0,g.jsx)("div",{className:"no-data-found",children:(0,g.jsx)(ne.A,{errorMessage:null===t||void 0===t?void 0:t.noBonuses})}):(0,g.jsx)("div",{className:"claimable-bonus-list",children:(0,g.jsx)(me.A,{dataLength:(null===d||void 0===d||null===(e=d.rows)||void 0===e?void 0:e.length)||0,next:()=>u((e=>e+1)),hasMore:r<Math.ceil((null===d||void 0===d?void 0:d.count)/8),scrollThreshold:.8,scrollableTarget:"your-bonuses-infinit-scroll",loader:(0,g.jsx)(I.A,{top:"6%"}),children:(0,g.jsx)("div",{className:"bonus-cart-main-section star-section",children:(null===(i=d.rows)||void 0===i?void 0:i.length)>0&&(0,g.jsx)($,(0,o.A)({bonusList:d,isLoading:c},l))})})}),(0,g.jsx)(he,{})]})})})),xe=C((()=>{var e,i;const l=(0,n.useContext)(D),{languageData:t,userComingActiveBonusLoading:a,userComingActiveBonus:d,claimableBonusPageNo:r,setClaimableBonusPageNo:u}=l,{loading:c}=(0,s.d4)((e=>e.bonus));return(0,g.jsx)("div",{className:"claimable-bonuses-v2-wrapper",children:(0,g.jsxs)("div",{className:"claimable-bonuses-v2-content",children:[(0,g.jsx)("div",{className:"heading-title",children:(null===t||void 0===t?void 0:t.claimableBonuses)||"Available Bonuses"}),a?(0,g.jsx)(I.A,{top:"2rem"}):0===(null===d||void 0===d?void 0:d.count)?(0,g.jsxs)("div",{className:"no-active-bonuses-found",children:[(0,g.jsx)("div",{className:"no-data-found-icon",children:(0,g.jsx)(x.A,{name:"noBonusAvailable",width:232,height:110})}),(0,g.jsx)("div",{className:"no-data-found-text",children:(null===t||void 0===t?void 0:t.noActiveBonusesFound)||"No active bonuses found at the moment"})]}):(0,g.jsx)("div",{className:"claimable-bonus-list",children:(0,g.jsx)(me.A,{dataLength:(null===d||void 0===d||null===(e=d.rows)||void 0===e?void 0:e.length)||0,next:()=>u((e=>e+1)),hasMore:r<Math.ceil((null===d||void 0===d?void 0:d.count)/8),scrollThreshold:.8,scrollableTarget:"your-bonuses-infinit-scroll",loader:(0,g.jsx)(I.A,{top:"6%"}),children:(0,g.jsx)("div",{className:"bonus-cart-main-section star-section",children:(null===(i=d.rows)||void 0===i?void 0:i.length)>0&&(0,g.jsx)($,(0,o.A)({bonusList:d,isLoading:c},l))})})}),(0,g.jsx)(he,{})]})})})),ge=e=>{const i=(0,s.d4)((e=>{var i,l;return null===e||void 0===e||null===(i=e.uiConfig)||void 0===i||null===(l=i.general)||void 0===l?void 0:l.claimableBonu
1ses}))||t.Bg.V1;return i===t.Bg.V1?(0,g.jsx)(pe,(0,o.A)({},e)):i===t.Bg.V2?(0,g.jsx)(xe,(0,o.A)({},e)):null};var ye=l(86781),je=l(68459),be=l(83397);const fe=e=>{var i;const l=y(e);return(0,g.jsxs)("div",{children:[(0,g.jsx)(be.A,{title:null===(i=l.languageData)||void 0===i?void 0:i.dashboard}),(0,g.jsxs)("div",{className:"dashboard-main-section",children:[(0,g.jsx)(L,(0,o.A)({Context:D},l)),(0,g.jsx)(P,(0,o.A)({Context:D},l)),(0,g.jsxs)(ye.A,{children:[(0,g.jsx)(je.A,{className:"mb-2",xs:12,sm:6,children:(0,g.jsx)(ve,(0,o.A)({Context:D},l))}),(0,g.jsx)(je.A,{xs:12,sm:6,children:(0,g.jsx)(ge,(0,o.A)({Context:D},l))})]})]})]})},we=e=>{const i=y(e),{languageData:l}=(0,s.d4)((e=>e.language));return(0,g.jsxs)("div",{className:"dashboard-v2-wrapper",children:[(0,g.jsx)("div",{className:"dashboard-v2-header",children:(null===l||void 0===l?void 0:l.exclusiveOffers)||"Exclusive Offers"}),(0,g.jsxs)("div",{className:"dashboard-v2-content",children:[(0,g.jsx)("div",{className:"dashboard-v2-left-section",children:(0,g.jsx)(ge,(0,o.A)({Context:D},i))}),(0,g.jsx)("div",{className:"dashboard-v2-right-section",children:(0,g.jsx)(ve,(0,o.A)({Context:D},i))})]})]})},Ne=e=>{var i;const l=(0,s.d4)((e=>{var i;return null===(i=e.uiConfig)||void 0===i?void 0:i.general})),n=null!==(i=null===l||void 0===l?void 0:l.dashboardPageVariant)&&void 0!==i?i:t.ME.V1;return("object"===typeof n&&null!==n&&void 0!==n&&n.variant?n.variant:n)===t.ME.V2?(0,g.jsx)(we,(0,o.A)({},e)):(0,g.jsx)(fe,(0,o.A)({},e))}},22264:(e,i,l)=>{l.d(i,{A:()=>m});var o=l(89379),n=(l(9950),l(43939)),s=l(40326),t=l(55213),a=l(40885),d=l(13098),r=l(20381),u=l(87620),c=l(44414);const v=e=>{let{name:i}=e;return(0,c.jsx)("div",{className:"payment-form-v2-error",children:(0,c.jsx)(n.Kw,{component:"div",name:i,className:"error-message"})})},m=e=>{var i,l,m,h,p,x,g,y,j,b,f,w,N,A,C,D,L,S,k,I,E,T,B,P,F,R,M,O;let{initValues:V,data:U,languageData:_,currencyCode:G,deposit:W=!0,selectedBonus:Y,walletAmount:q,showActiveBonusForfeitWarningModal:z,isBonusActive:H,setPaymentDetails:K,handleSubmit:Z,amtOptions:Q,amt:J,setAmt:X,type:$,setType:ee,utorgCurrencies:ie,minWithdraw:le,maxWithdraw:oe,selectedLanguageCode:ne,handleRemoveSelectedBonus:se=()=>{},userBonus:te}=e;const ae=null===U||void 0===U||null===(i=U.settings)||void 0===i||null===(l=i.requiredFields)||void 0===l||null===(m=l.find((e=>{let{name:i}=e;return"amount"===i})))||void 0===m?void 0:m.name,de=e=>{var i,l,o,n,s,t,a,d,r,u,c;return null!==e&&void 0!==e&&null!==(i=e.other)&&void 0!==i&&i.bonusTitle?"string"===typeof(null===e||void 0===e||null===(l=e.other)||void 0===l?void 0:l.bonusTitle)?null===e||void 0===e||null===(o=e.other)||void 0===o?void 0:o.bonusTitle:"".concat((null===e||void 0===e||null===(n=e.other)||void 0===n||null===(s=n.bonusTitle)||void 0===s?void 0:s[ne])||(null===e||void 0===e||null===(t=e.other)||void 0===t||null===(a=t.bonusTitle)||void 0===a?void 0:a.EN)):"".concat((null===e||void 0===e||null===(d=e.bonus)||void 0===d||null===(r=d.promotionTitle)||void 0===r?void 0:r[ne])||(null===e||void 0===e||null===(u=e.bonus)||void 0===u||null===(c=u.promotionTitle)||void 0===c?void 0:c.EN))};let re=W?null!==U&&void 0!==U&&null!==(h=U.settings)&&void 0!==h&&h.minDeposit?Y&&null!==(p=Object.keys(Y))&&void 0!==p&&p.length?Math.max(Number("object"===typeof(null===U||void 0===U||null===(x=U.settings)||void 0===x?void 0:x.minDeposit)?null===U||void 0===U||null===(g=U.settings)||void 0===g?void 0:g.minDeposit[G||"EUR"]:null===U||void 0===U||null===(y=U.settings)||void 0===y?void 0:y.minDeposit),Number(null===Y||void 0===Y||null===(j=Y.bonus)||void 0===j||null===(b=j.currency)||void 0===b||null===(f=b[G||"EUR"])||void 0===f?void 0:f.minDeposit)||1):Number("object"===typeof(null===U||void 0===U||null===(w=U.settings)||void 0===w?void 0:w.minDeposit)?null===U||void 0===U||null===(N=U.settings)||void 0===N?void 0:N.minDeposit[G||"EUR"]:U.settings.minDeposit):Y&&null!==(A=Object.keys(Y))&&void 0!==A&&A.length?Math.max(1,Number((null===Y||void 0===Y||null===(C=Y.bonus)||void 0===C||null===(D=C.currency)||void 0===D||null===(L=D[G])||void 0===L?void 0:L.minDeposit)||0)):1:"object"===typeof(null===U||void 0===U||null===(S=U.settings)||void 0===S?void 0:S.minWithdraw)?Number(null===U||void 0===U||null===(k=U.settings)||void 0===k?void 0:k.minWithdraw[G||"EUR"]):Number(null===U||void 0===U||null===(I=U.settings)||void 0===I?void 0:I.minWithdraw)||Number(q);const ue=W?Number("object"===typeof(null===U||void 0===U||null===(E=U.settings)||void 0===E?void 0:E.maxDeposit)?Number(null===U||void 0===U||null===(T=U.settings)||void 0===T||null===(B=T.maxDeposit)||void 0===B?void 0:B[G||"EUR"]):Number(null===U||void 0===U||null===(P=U.settings)||void 0===P?void 0:P.maxDeposit))||1e5:"object"===typeof(null===U||void 0===U||null===(F=U.settings)||void 0===F?void 0:F.maxWithdraw)?Number(null===U||void 0===U||null===(R=U.settings)||void 0===R||null===(M=R.maxWithdraw)||void 0===M?void 0:M[G||"EUR"]):Number(null===U||void 0===U||null===(O=U.settings)||void 0===O?void 0:O.maxWithdraw)||Number(q);return re=W?re:Math.min(ue,re),(0,c.jsx)(c.Fragment,{children:(0,c.jsx)(n.l1,{enableReinitialize:!0,initialValues:(0,o.A)({},V),validationSchema:(0,d.O)({initValues:V,data:U,minDeposit:W?re:le,maxDeposit:W?ue:oe,currencyCode:G,type:W?"deposit":"withdraw",selectedBonus:W?Y:q,languageData:_,walletAmount:q}),onSubmit:e=>{if(W)Z((0,o.A)((0,o.A)({},e),{},{amount:parseFloat(e.amount)}));else if(H){const i=(0,o.A)((0,o.A)({},e),{},{amount:parseFloat(e.amount)});z(i),K(i)}else Z((0,o.A)((0,o.A)({},e),{},{amount:parseFloat(e.amount)}));window.scrollTo(0,0)},children:e=>{var i,l,o,d,m,h;let{values:p,handleSubmit:x,handleChange:g,setFieldValue:y,errors:j,touched:b}=e;return(0,c.jsx)(n.lV,{children:(0,c.jsxs)("div",{className:"payment-deposit-form-container",children:[(0,c.jsxs)("div",{className:"payment-form-card",children:[W&&(null===te||void 0===te||null===(i=te.rows)||void 0===i?void 0:i.map(((e,i)=>{var l;return(null===e||void 0===e?void 0:e.status)!==s.P.ACTIVE?null:(0,c.jsxs)("div",{children:[(0,c.jsxs)("div",{children:[(0,c.jsx)("h2",{className:"section-title",children:(null===_||void 0===_?void 0:_.claimedBonus)||"Claimed Bonus"}),(0,c.jsx)("div",{className:"available-bonus-card",style:{backgroundImage:"url(".concat((0,u.P)(null===e||void 0===e?void 0:e.userBonusId),")")},children:(0,c.jsxs)("div",{className:"card-main",children:[(0,c.jsxs)("div",{className:"card-detail
1s",children:[(0,c.jsx)("div",{className:"card-icon-wrapper",children:(0,c.jsx)("img",{src:null===e||void 0===e||null===(l=e.bonus)||void 0===l?void 0:l.imageUrl,alt:"".concat(de(e)," icon"),className:"bonus-card-icon"})}),(0,c.jsxs)("div",{className:"card-info",children:[(0,c.jsx)("h2",{className:"card-title",children:de(e)}),(0,c.jsx)("p",{className:"card-main-bonus",children:null===e||void 0===e?void 0:e.mainBonus})]})]}),(0,c.jsx)("div",{className:"card-action-btn",children:(0,c.jsx)(t.Ay,{variant:s.Vt.TEXT_ONLY,className:"btn-remove-bonus",onClick:()=>{se(e)},children:(0,c.jsx)("div",{className:"cross-icon-wrapper",children:(0,c.jsx)(r.A,{name:"crossRedWithCircle",height:24,width:24})})})})]})})]}),(0,c.jsx)("div",{className:"divider"})]},"deposit-in-process"+i)}))),(0,c.jsxs)("div",{className:"section deposit-details",children:[(0,c.jsx)("h2",{className:"section-title",children:W?(null===_||void 0===_?void 0:_.depositDetails)||"Deposit Details":(null===_||void 0===_?void 0:_.withdrawDetails)||"Withdraw Details"}),(0,c.jsxs)("div",{className:"deposit-input-wrapper",children:[(0,c.jsx)("span",{className:"currency-label",children:"".concat(G," ").concat(a.L[G]?"(".concat(a.L[G],")"):"")}),(0,c.jsx)("input",{max:ue,className:"deposit-amount-input no-spinners",name:"amount",type:"number",min:0,step:"any",disabled:"Siru"===(null===U||void 0===U?void 0:U.name),placeholder:W?null===_||void 0===_?void 0:_.enterDepositAmount:null===_||void 0===_?void 0:_.enterWithdrawAmount,value:p.amount||"",onChange:e=>{e.target.value!==J&&X("Other"),g(e)}})]}),null!==j&&void 0!==j&&j.amount&&null!==b&&void 0!==b&&b.amount?(0,c.jsx)(v,{name:"amount"}):null,(0,c.jsxs)("div",{className:"min-max-range",children:[(0,c.jsxs)("span",{children:[W?null===_||void 0===_?void 0:_.minDeposit:null===_||void 0===_?void 0:_.minWithdrawal," ",a.L[G||"EUR"],re]}),(0,c.jsxs)("span",{children:[W?null===_||void 0===_?void 0:_.maxDeposit:null===_||void 0===_?void 0:_.maxWithdrawal," ",a.L[G||"EUR"],ue]})]}),W&&(0,c.jsx)("div",{className:"amount-buttons-group",children:Q&&ae&&Object.keys(Q).map((e=>("Siru"!==(null===U||void 0===U?void 0:U.name)||"Other"!==Q[e])&&![0,"0"].includes(Q[e])&&(0,c.jsx)("div",{className:"btn-group-wrapper",children:(0,c.jsx)(t.Ay,{variant:s.Vt.PRIMARY,type:"button",className:"amount-button ".concat(J===Q[e]?"selected":""),onClick:()=>{X(Q[e]),y("amount","Other"!==Q[e]?Q[e]:"")},children:"Other"===Q[e]?_[Q[e]]:Q[e]})},e)))})]}),(0,c.jsxs)("div",{className:"section payment-form-details",children:[(null===U||void 0===U||null===(l=U.settings)||void 0===l||null===(o=l.requiredFields)||void 0===o?void 0:o.length)>1&&W&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("div",{className:"divider"}),(0,c.jsxs)("div",{className:"section-header",children:[(0,c.jsx)("h2",{className:"section-title",children:(null===_||void 0===_?void 0:_.paymentMethodDetails)||""}),(0,c.jsx)("div",{className:"card-icons",children:(0,c.jsx)("img",{loading:"lazy",className:"deposit-image",src:(null===U||void 0===U||null===(d=U.settings)||void 0===d?void 0:d.depositImageUrl)||"".concat("https://d1urdgvrz10048.cloudfront.net/static/shinywilds","/defaultpayment.svg"),alt:(null===U||void 0===U?void 0:U.displayName)||(null===U||void 0===U?void 0:U.name)})})]})]}),null===U||void 0===U||null===(m=U.settings)||void 0===m||null===(h=m.requiredFields)||void 0===h?void 0:h.map(((e,i)=>{let{name:l,values:o,dataType:n}=e,s=[];o&&(s=o),"currency"===l&&"utorg"===(null===U||void 0===U?void 0:U.aggregator)&&(s=ie);const t="expirymmyyyy"===l?null===_||void 0===_?void 0:_.capExpiry:(null===_||void 0===_?void 0:_[l])||l.split(/(?=[A-Z])/).filter((e=>"enc"!==e)).map((e=>e.toUpperCase())).join(" ");return"amount"!==l&&void 0!==V[l]&&(0,c.jsx)("div",{children:o||"currency"===l?(0,c.jsxs)("div",{className:"amout-show-btn",children:[(0,c.jsxs)("select",{className:"require-field-select",name:l,value:(null===p||void 0===p?void 0:p[l])||"",onChange:g,children:[(0,c.jsx)("option",{value:"",disabled:!0,children:(null===_||void 0===_?void 0:_["select"+(null===l||void 0===l?void 0:l.charAt(0).toUpperCase())+(null===l||void 0===l?void 0:l.slice(1))])||"".concat(null===_||void 0===_?void 0:_.select," ").concat(null===l||void 0===l?void 0:l.charAt(0).toUpperCase()).concat(null===l||void 0===l?void 0:l.slice(1))},""),("string"===typeof s?JSON.parse(s):s).map((e=>null!==e&&void 0!==e&&e.value?(0,c.jsx)("option",{value:e.value,children:e.name},e.value):(0,c.jsx)("option",{value:e,children:e},e)))]}),null!==j&&void 0!==j&&j[l]&&null!==b&&void 0!==b&&b[l]?(0,c.jsx)(v,{name:l}):null]}):(null===l||void 0===l?void 0:l.length)>8&&"Password"===l.substr((null===l||void 0===l?void 0:l.length)-8)?(0,c.jsxs)("div",{className:"amout-show-btn",children:[(0,c.jsxs)("div",{className:"d-flex",children:[(0,c.jsx)("input",{className:"app-input",n
1ame:l,type:$,placeholder:t,value:(null===p||void 0===p?void 0:p[l])||"",onChange:g}),(0,c.jsx)("span",{style:{marginLeft:"-30px",cursor:"pointer"},onClick:()=>ee("password"===$?"text":"password"),children:"password"===$?(0,c.jsx)(r.A,{name:"eye-password-visible"}):(0,c.jsx)(r.A,{name:"eye-password-invisible"})})]}),null!==j&&void 0!==j&&j[l]&&null!==b&&void 0!==b&&b[l]?(0,c.jsx)(v,{name:l}):null]}):"date"===n?(0,c.jsxs)("div",{className:"amout-show-btn",children:[(0,c.jsx)("input",{name:l,type:"text",className:"app-input",placeholder:t,value:(null===p||void 0===p?void 0:p.expirymmyyyy)||"",onChange:e=>{let i=e.target.value;const l=e.target.value;if(!isNaN(null===l||void 0===l?void 0:l.replace(/[/]/,""))&&i.length<8){var o;if(i.length>2&&(null===(o=i)||void 0===o||!o.includes("/"))){var n;const e=i.substring(0,2),l=null===(n=i.substring(2))||void 0===n?void 0:n.replaceAll("/","");i="".concat(e,"/").concat(l)}y("expirymmyyyy",i)}}}),null!==j&&void 0!==j&&j[l]&&null!==b&&void 0!==b&&b[l]?(0,c.jsx)(v,{name:l}):null]}):(0,c.jsxs)("div",{className:"amout-show-btn",children:[(0,c.jsx)("input",{name:l,className:"app-input",type:["string","text"].includes(n)||"encCreditcardNumber"===l?"text":"encCvv"===l?"password":"number",placeholder:(null===_||void 0===_?void 0:_["".concat(l,"Placeholder")])||"".concat(null===_||void 0===_?void 0:_.loginEnter," ").concat(l.split(/(?=[A-Z])/).filter((e=>"enc"!==e)).map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join(" ")),value:(null===p||void 0===p?void 0:p[l])||"",onChange:e=>{var i;if("encCvv"===l)(null===(i=e.target.value)||void 0===i?void 0:i.length)<5&&!isNaN(e.target.value)&&g(e);else if("encCreditcardNumber"===l){var o;const i=e.target.value,l=e.target.value;(null===(o=e.target.value)||void 0===o?void 0:o.length)<20&&!isNaN(l.replaceAll(/ /g,""))&&y("encCreditcardNumber",i)}else g(e)}}),null!==j&&void 0!==j&&j[l]&&null!==b&&void 0!==b&&b[l]?(0,c.jsx)(v,{name:l}):null]})},i)})),(0,c.jsx)(t.Ay,{variant:s.Vt.PRIMARY,type:"submit",className:"next-button",size:"sm",onClick:x,children:(null===_||void 0===_?void 0:_.next)||"Next"})]})]}),(0,c.jsxs)("div",{className:"security-footer",children:[(0,c.jsx)("p",{className:"security-text-main",children:(null===_||void 0===_?void 0:_.paymentInfoProtectedText)||"Your payment information is protected with bank-level security"}),(0,c.jsx)("div",{className:"security-badges",children:(0,c.jsxs)("div",{className:"badge-content",children:[(0,c.jsxs)("div",{className:"badge encrypted",children:[(0,c.jsx)(r.A,{className:"footer-icon",name:"lock"}),(0,c.jsx)("span",{className:"badge-text",children:(null===_||void 0===_?void 0:_.encrypted)||"Encrypted"})]}),(0,c.jsxs)("div",{className:"badge verified",children:[(0,c.jsx)(r.A,{className:"footer-icon",name:"verified"}),(0,c.jsxs)("span",{className:"badge-text",children:[(null===_||void 0===_?void 0:_.verified)||"Verified"," "]})]}),(0,c.jsxs)("div",{className:"badge secured",children:[(0,c.jsx)(r.A,{className:"footer-icon",name:"shieldCheck"}),(0,c.jsx)("span",{className:"badge-text",children:(null===_||void 0===_?void 0:_.secured)||"Secured"})]})]})})]})]})})}})})}},52899:(e,i,l)=>{l.d(i,{A:()=>u});var o=l(89379),n=l(9950),s=l(82569),t=l(15935),a=l(44414);const d=n.lazy((()=>l.e(146).then(l.bind(l,72146)))),r=n.lazy((()=>l.e(866).then(l.bind(l,18866)))),u=e=>{var i;const l=(0,s.d4)((e=>{var i;return null===(i=e.uiConfig)||void 0===i?void 0:i.general})),n=null!==(i=null===l||void 0===l?void 0:l.cashierIframeModalVariant)&&void 0!==i?i:t.Ty.V1;return("object"===typeof n&&null!==n&&void 0!==n&&n.variant?n.variant:n)===t.Ty.V2?(0,a.jsx)(r,(0,o.A)({},e)):(0,a.jsx)(d,(0,o.A)({},e))}},89473:(e,i,l)=>{l.d(i,{A:()=>d});var o=l(89379),n=l(9950),s=l(13564),t=l(1727),a=l.n(t);const d=e=>{let{loadPIQ:i,paymentData:l,userDetails:t,sessionId:d,method:r="deposit"}=e;const{languageCode:u}=(0,s.g)();(0,n.useEffect)((()=>{if(i&&null!==l&&void 0!==l&&l.amount){const e={merchantId:(null===l||void 0===l?void 0:l.merchantId)||"100506999",userId:null===t||void 0===t?void 0:t.userId,sessionId:d,method:r,locale:(null===u||void 0===u?void 0:u.toLowerCase())||"en",font:'-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans","Liberation Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"',singlePageFlow:"true",containerWidth:"100%",containerHeight:"100%",providerType:(null===l||void 0===l?void 0:l.routeProvider)||(null===l||void 0===l?void 0:l.service),environment:"sunpetal",showAmount:!1,amount:null===l||void 0===l?void 0:l.amount,fixedProviderType:!0,country:null===t||void 0===t?void 0:t.countryCode,attributes:(0,o.A)({hostUri:window.location.origin,bootstrapVersion:"1.3.24"},l),showHeader:!1,showFooter:!1,fetchConfig:!0};(null===t||void 0===t?void 0:t.userId)&&d&&new(a())("#cashier",(0,o.A)((0,o.A)({},e),{},{theme:{background:{color:"transparent"},headerbackground:{color:"rgba(20, 20, 50, 0.3)"},buttons:{color:"#57d08a"},input:{color:"#605f9c",borderRadius:"5px"},inputbackground:{color:"#ffffff"},cashierbackground:{color:"rgba(20, 20, 50, 0.3)"},cardbackground:{color:"transparent"},labels:{fontSize:"15px",color:"#fff"},border:{radius:"5px"}}}),(e=>{e.css("\n :root {\n --border-color: 442bb7!important;\n --headings-color: #ffffff!important;\n }\n * {\n font-weight: bold;\n border: #442bb7 !important;\n }\n .input:focus {\n background: #ffffff;\n }\n #app-container {\n border-radius: 15px;\n }\n .single-page-flow-container {\n .input-label{\n display: none;\n }\n }\n .payment-method-details {\n margin-top: 10px;\n }\n ")}))}}),[i,l])}},64775:(e,i,l)=>{l.d(i,{A:()=>J});var o=l(89379),n=l(9950),s=l(82569),t=l(15935),a=l(86615),d=l(80045),r=l(13564),u=l(80968),c=l(19241),v=l(95557),m=l(31013),h=l(5859),p=l(67121),x=l(26338),g=l(64495),y=l(48063),j=l(57941);var b=l(40326),f=l(20381),w=l(44414);const N=["amount"],A=()=>{var e,i,l,t;const a=(0,s.wA)(),A=(0,r.Zp)(),{state:C}
1=(0,r.zy)(),D=(0,n.useRef)(null),[L,S]=(0,n.useState)({}),k=(0,n.useRef)(null),I=(0,n.useRef)(null),E=(0,v.Gq)("access-token"),[T,B]=(0,n.useState)("Other"),[P,F]=(0,n.useState)("password"),[R,M]=(0,n.useState)(!1),O=JSON.parse((0,v.Gq)("loggedIn")),[V,U]=(0,n.useState)({}),[_,G]=(0,n.useState)({}),[W,Y]=(0,n.useState)(!1),[q,z]=(0,n.useState)(!1),[H,K]=(0,n.useState)((null===C||void 0===C?void 0:C.bonusDetail)||null),[Z,Q]=(0,n.useState)(!0),{userDetails:J}=(0,s.d4)((e=>e.user)),[X,$]=(0,n.useState)(!1),[ee,ie]=(0,n.useState)(!1),[le,oe]=(0,n.useState)(!1),ne=null===(e=window.location.href)||void 0===e?void 0:e.includes("status"),{languageData:se}=(0,s.d4)((e=>e.language)),[te,ae]=(0,n.useState)(ne),{selectedLanguageCode:de}=(0,s.d4)((e=>e.language)),[re,ue]=(0,n.useState)(!1),[ce,ve]=(0,n.useState)(!ne),[me,he]=(0,n.useState)(["PENDING"]),{activeBonusLoading:pe,bonusDetail:xe,depositUserBonus:ge,bonusLoading:ye,loading:je,userActiveBonus:be}=(0,s.d4)((e=>e.bonus)),{sessionId:fe}=(0,s.d4)((e=>e.transactions.userPaymentCredential||"")),we=(0,s.d4)((e=>((e,i)=>e.modal.modals.some((e=>e.name===i)))(e,j.lx.FORFEIT))),{paymentProviders:Ne,loading:Ae,paymentData:Ce,paymentStatus:De,merchantId:Le,verifyPaymentLoading:Se,utorgCurrencies:ke}=(0,s.d4)((e=>e.payment)),Ie=null===ge||void 0===ge||null===(i=ge.rows)||void 0===i||null===(l=i.filter((e=>"ACTIVE"===e.status)))||void 0===l||null===(t=l[0])||void 0===t?void 0:t.userBonusId,[Ee,Te]=(0,n.use
1State)(!1),[Be,Pe]=(0,n.useState)(""),[Fe,Re]=(0,n.useState)(""),[Me,Oe]=(0,n.useState)(!1),Ve=(0,n.useMemo)((()=>{var e;return Boolean(null===be||void 0===be||null===(e=be.rows)||void 0===e?void 0:e.find((e=>{var i;return["match","match_1","manual"].includes(e.bonusType)&&"ACTIVE"===e.status&&(null===e||void 0===e||null===(i=e.bonus)||void 0===i?void 0:i.isSticky)})))}),[be]);(0,n.useEffect)((()=>{le&&a((0,c.Pl)({type:"deposit",navigate:A}))}),[le]),(0,n.useEffect)((()=>{Me&&a((0,u.x8)())}),[Me]),(0,n.useEffect)((()=>{if((0,x.Gn)("payment"),!ne){const e=document.createElement("script");return e.src="https://api.sunpetal.xyz/paymentiq/api/viq/jscardencrypter/"+Le,e.async=!0,document.body.appendChild(e),()=>{document.body.removeChild(e),z(!1)}}return qe(),()=>a((0,c.KL)())}),[Le,ne]),(0,n.useEffect)((()=>{!R&&Ue()}),[ce]);const Ue=()=>{ce&&a((0,m.$j)({limit:"",pageNo:"",status:JSON.stringify(me),inDeposit:!0}))};function _e(){a((0,h.$n)(g.U0)),g.U0.emit("login",(0,v.lv)({deviceType:(0,p.ZI)()}))}(0,n.useEffect)((()=>{a((0,m.tL)({pageNo:1,status:JSON.stringify(["ACTIVE"])}))}),[]);const Ge=e=>{if(g.U0.connected){const i=(0,v.ZL)(e);i&&(0,v.Gq)("txId")&&(0,v.Ai)("txId"),null!==i&&void 0!==i&&i.transactionId&&(0,v.SO)("txId",(null===i||void 0===i?void 0:i.transactionId)+""),!te&&W&&qe()}};(0,n.useEffect)((()=>{!O||null!==g.U0&&void 0!==g.U0&&g.U0.connected||!E||(g.U0.auth.token=(0,v.zv)(),g.U0.disconnect().connect())}),[O,E]),(0,n.useEffect)((()=>(null!==g.U0&&void 0!==g.U0&&g.U0.connected&&(g.U0.on("connect",_e),g.U0.on("payment-status",Ge)),()=>{g.U0.off("payment-status")})),[g.U0,W]),(0,n.useEffect)((()=>{if(!ne&&!q&&!Ae&&!R)if(we&&(0,y.Oo)(j.lx.FORFEIT),null!==ge&&void 0!==ge&&ge.count){if(!ce&&!te&&ve(!0),ue(!0),null!==C&&void 0!==C&&C.identifier)if(null!==C&&void 0!==C&&C.item||null!==C&&void 0!==C&&C.bonusDetail){const e=(null===C||void 0===C?void 0:C.item)||(null===C||void 0===C?void 0:C.bonusDetail);window.history.replaceState({},document.title),K(e),Pe(null===C||void 0===C?void 0:C.identifier)}else K(null)}else ye||(ve(!0),!R&&ue(!0))}),[null===H||void 0===H?void 0:H.userBonusId,ge,J,C,ne,ye,q,R]),(0,n.useEffect)((()=>{var e;if(null!==ge&&void 0!==ge&&null!==(e=ge.rows)&&void 0!==e&&e.length&&(null===H||void 0===H||!H.userBonusId)){const e=ge.rows.find((e=>{let{status:i}=e;return"ACTIVE"===i}));e&&K(e)}}),[ge]);const We=e=>{oe(!1),null!==H&&void 0!==H&&H.userBonusId?(Q(!0),z(!0),K(null),ue(!0)):(K(null),!re&&!R&&ue(!0))},Ye=(e,i)=>{["ACTIVE"].includes(null===e||void 0===e?void 0:e.status)||(["ACTIVE"].includes(null===H||void 0===H?void 0:H.status)?(()=>{var e,i,l,o;a((0,y.qf)({name:j.lx.FORFEIT,title:"".concat(null===se||void 0===se?void 0:se.areYouSure," ?"),body:(0,w.jsxs)("div",{className:"modal-body",children:[(0,w.jsx)("p",{children:null===se||void 0===se?void 0:se.forfeitMessageFirst}),(0,w.jsx)("span",{className:"text-capitalize highlighted-content",children:" ".concat((null===H||void 0===H||null===(e=H.bonus)||void 0===e||null===(i=e.promotionTitle)||void 0===i?void 0:i[de])||(null===H||void 0===H||null===(l=H.bonus)||void 0===l||null===(o=l.promotionTitle)||void 0===o?void 0:o.EN)," ")}),(0,w.jsx)("p",{children:null===se||void 0===se?void 0:se.forfeitMessageSecond})]}),buttons:[{text:null===se||void 0===se?void 0:se.cancel,variant:b.Vt.SECONDARY},{text:null===se||void 0===se?void 0:se.forfeitButton,variant:b.Vt.PRIMARY,onClick:Qe}]}))})():(z(!0),K(e),null!==e&&void 0!==e&&e.userBonusId||We(),Q(!1))),ue(!0),oe(!1),S(null),Q(!0),(0,x.Gn)("payment"),M(!1),Y(!1)};(0,n.useEffect)((()=>{!ye&&re&&a((0,u.BK)({paymentType:"deposit",bonusId:null!==ge&&void 0!==ge&&ge.count&&(null===H||void 0===H?void 0:H.bonusId)||""}))}),[re,ye,H,ge]),(0,n.useEffect)((()=>{if(te){var e;const i=(0,v.Gq)("aggregator")||(null===L||void 0===L?void 0:L.aggregator)||"",l=(0,v.Gq)("txId")||String((null===Ce||void 0===Ce?void 0:Ce.txId)||(null===Ce||void 0===Ce?void 0:Ce.id)||"")||"",o=(0,v.Gq)("orderId")||String(null===Ce||void 0===Ce||null===(e=Ce.session)||void 0===e?void 0:e.order_id)||"";ve(!1),(0,v.Gq)("sessionId")&&i&&(l||o)?!Ae&&!De&&a((0,u.LK)({transactionId:l,sessionId:(0,v.Gq)("sessionId"),aggregator:i,orderId:o})):De||Ae||A("/".concat((null===de||void 0===de?void 0:de.toLowerCase())||(0,v.Gq)("language").toLowerCase()||"en","/account/deposit"))}}),[te,Ae]),(0,n.useEffect)((()=>{var e,i;if(null!==L&&void 0!==L&&null!==(e=L.settings)&&void 0!==e&&null!==(i=e.requiredFields)&&void 0!==i&&i.length){var l,o;const e="utorg"===L.aggregator&&["skrill","cv skrl"].includes(L.name.toLowerCase()),i={};null===L||void 0===L||null===(l=L.settings)||void 0===l||null===(o=l.requiredFields)||void 0===o||o.forEach((l=>{let{name:o}=l;["beneficiaryName","cardHolder","name"].includes(o)?i[o]=(null===J||void 0===J?void 0:J.firstName)+" "+(null===J||void 0===J?void 0:J.lastName):["first_name","firstName"].includes(o)?i[o]=null===J||void 0===J?void 0:J.firstName:["last_name","lastName"].includes(o)?i[o]=null===J||void 0===J?void 0:J.lastName:["phoneNumber","phone","mobile"].includes(o)?i[o]=null!==J&&void 0!==J&&J.phoneCode?(null===J||void 0===J?void 0:J.ph
1oneCode)+" "+(null===J||void 0===J?void 0:J.phone):"":"email"===o||"destinationAccount"===o?e||(i[o]=null===J||void 0===J?void 0:J.email):"address"===o?i[o]=null===J||void 0===J?void 0:J.address:["country"].includes(o)?i[o]=null===J||void 0===J?void 0:J.countryCode:i[o]=""})),U(i)}}),[L]);const qe=()=>{oe(!1),ue(!1),Y(!1),ve(!1),ae(!0)},ze=()=>{ve(!0),oe(!1),ue(!1),Y(!1)},He=function(){var e,i;let l=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const o=document.createElement("form");o.id="paymentForm",o.action=(null===Ce||void 0===Ce||null===(e=Ce.redirectOutput)||void 0===e?void 0:e.url)||(null===Ce||void 0===Ce?void 0:Ce.redirect_url),o.method=(null===Ce||void 0===Ce||null===(i=Ce.redirectOutput)||void 0===i?void 0:i.method)||"GET";for(const a in null===Ce||void 0===Ce||null===(n=Ce.redirectOutput)||void 0===n?void 0:n.parameters){var n,s;const e=document.createElement("input");e.type="hidden",e.name=a,e.value=null===Ce||void 0===Ce||null===(s=Ce.redirectOutput)||void 0===s?void 0:s.parameters[a],o.appendChild(e)}var t;l||(o.target="myFrame",document.getElementById("myFrame").src=(null===Ce||void 0===Ce||null===(t=Ce.redirectOutput)||void 0===t?void 0:t.url)||(null===Ce||void 0===Ce?void 0:Ce.redirect_url));document.body.appendChild(o),o.submit(),document.body.removeChild(o)};(0,n.useEffect)((()=>{var e,i,l,o;if(W&&"cashier_iframe"===(null===L||void 0===L||null===(e=L.settings)||void 0===e?void 0:e.redirection)&&"paymentiq"===(null===L||void 0===L?void 0:L.aggregator))M(!0);else if("utorg"===(null===L||void 0===L?void 0:L.aggregator)&&"direct_api"===(null===L||void 0===L||null===(i=L.settings)||void 0===i?void 0:i.redirection)&&Ce)Ze((null===Ce||void 0===Ce?void 0:Ce.checkout_url)||(null===Ce||void 0===Ce?void 0:Ce.url));else if(W&&(null!==Ce&&void 0!==Ce&&null!==(l=Ce.redirectOutput)&&void 0!==l&&l.url||null!==Ce&&void 0!==Ce&&Ce.redirect_url||null!==Ce&&void 0!==Ce&&Ce.checkout_url)){var n,s,t,a;if(null!==Ce&&void 0!==Ce&&Ce.checkout_url||"window"===(null===Ce||void 0===Ce||null===(n=Ce.redirectOutput)||void 0===n?void 0:n.container)||"window"===(null===Ce||void 0===Ce?void 0:Ce.container)){var d,r,u,c;const e=(null===Ce||void 0===Ce||null===(d=Ce.redirectOutput)||void 0===d?void 0:d.url)||(null===Ce||void 0===Ce?void 0:Ce.redirect_url)||(null===Ce||void 0===Ce?void 0:Ce.checkout_url);"post"===(null===Ce||void 0===Ce||null===(r=Ce.redirectOutput)||void 0===r||null===(u=r.method)||void 0===u?void 0:u.toLowerCase())?He("paymentiq"!==(null===L||void 0===L?void 0:L.aggregatorId)||["redirect","window"].includes(null===Ce||void 0===Ce||null===(c=Ce.redirectOutput)||void 0===c?void 0:c.container)):Ze(e)}else["SUCCESSFUL"].includes(null===Ce||void 0===Ce?void 0:Ce.txState)||null!==(s=["",void 0,null,"get"])&&void 0!==s&&s.includes(null===Ce||void 0===Ce||null===(t=Ce.redirectOutput)||void 0===t||null===(a=t.method)||void 0===a?void 0:a.toLowerCase())||He()}else!["WAITING_INPUT","SUCCESSFUL"].includes(null===Ce||void 0===Ce?void 0:Ce.txState)||null!==Ce&&void 0!==Ce&&null!==(o=Ce.redirectOutput)&&void 0!==o&&o.url||qe()}),[W,Ce]);const Ke=()=>{ze(),a((0,u.ek)())},Ze=e=>{window.location.href=e},Qe=()=>{K({}),z(!1),(null!==C&&void 0!==C&&C.item||null!==C&&void 0!==C&&C.bonusDetail)&&window.history.replaceState({},document.title),a((0,m.YS)({data:{userBonusId:Ie},deposit:!0,status:me}))};return{amt:T,type:P,data:L,setAmt:B,status:me,setType:F,loadPIQ:R,loading:Ae,navigate:A,sessionId:fe,setStatus:he,initValues:V,setLoadPIQ:M,amtOptions:_,showIFrame:W,paymentData:Ce,userDetails:J,bonusLoading:ye,handleSubmit:e=>{var i,l,n;const{amount:s}=e,t=(0,d.A)(e,N);var r;t&&null!==t&&void 0!==t&&t.encCreditcardNumber&&(t.encCreditcardNumber=window.encryptData(String(null===(r=t.encCreditcardNumber)||void 0===r?void 0:r.replace(/ /g,""))),t.encCvv=window.encryptData(String(t.encCvv)),t.expiryMonth=t.expirymmyyyy.substr(0,2),t.expiryYear=t.expirymmyyyy.substr(3,5),delete t.expirymmyyyy);a((0,u.Uu)({data:{amount:s,aggregator:L.aggregator,paymentProviderId:L.paymentProviderId,provider:null===L||void 0===L?void 0:L.name,group:L.group,paymentType:"deposit",other:t?(0,o.A)({},t):{},confirm:!1,gateway:(null===L||void 0===L||null===(i=L.settings)||void 0===i?void 0:i.gateway)||null,sessionId:fe,userBonusId:null===H||void 0===H?void 0:H.userBonusId},resetPay:Ke,navigate:A,setShowBonusNext:Q,setData:S,setAmt:B})),oe(!1),ue(!1),Y(!0),F("password"),oe(!0),ue(!0),null===(l=window)||void 0===l||l.scrollTo(0,(null===I||void 0===I||null===(n=I.current)||void 0===n?void 0:n.offsetTop)+10)},languageData:se,setShowIFrame:Y,showBonusNext:Z,showBonusInfo:X,selectedBonus:H,showSkipModel:ee,paymentStatus:De,cancelDeposit:()=>{var e,i;null!==ge&&void 0!==ge&&ge.count?(ve(!0),Q(!0),ue(!1)):(ve(!1),Q(!1),ue(!0)),oe(!1),(0,x.Gn)("payment"),M(!1),Y(!1),null===(e=window)||void 0===e||e.scrollTo(0,(null===k||void 0===k||null===(i=k.current)||void 0===i?void 0:i.offsetTop)+10)},depositFormRef:D,handleRedirect:ze,forfeitHandler:Qe,bonusListingRef:k,myDepositStatus:te,bonusDetailInfo:xe,showDepositForm:le,setSelectedBonus:K,skipBonusHandler:We,showBonusListing:ce,setShowBonusNext:Q,setShowBonusInfo:$,setShowSkipModel:ie,paymentProviders:Ne,depositIframeRef:I,setMyDepositStatus:ae,fetchLatestChanges:()=>{null!==ge&&void 0!==ge&&ge.count?(a((0,m.$j)({limit:"",pageNo:"",status:JSON.stringify(me),inDeposit:!0})),ve(!0),Q(!0),ue(!1),oe(!1)):null!==ge&&void 0!==ge&&ge.count||a((0,u.BK)({paymentType:"deposit",bonusId:(null===H||void 0===H?void 0:H.bonusId)||""}))},handleProviderClick:async e=>{var i,l,n,s,t,a,d,r;(e=>{var i,l,o;return(null===e||void 0===e||null===(i=e.settings)||void 0===i||null===(l=i.requiredFields)||void 0===l?void 0:l.some((e=>"currency"===e.name)))&&"utorg"===(null===e||void 0===e||null===(o=e.aggregator)||void 0===o?void 0:o.toLowerCase())})(e)&&Oe(!0),"cryptocurrency"===(null===e||void 0===e||null===(i=e.group)||void 0===i?void 0:i.toLowerCase())&&null!==e&&void 0!==e&&null!==(l=e.name)&&void 0!==l&&null!==(n=l.toLowerCase())&&void 0!==n&&n.includes("invoice")&&"coinspaid"===(null===e||void 0===e||null===(s=e.aggregator)||void 0===s?void 0:s.toLowerCase())?S((0,o.A)((0,o.A)({},e),{},{settings:(0,o.A)((0,o.A)({},null===e||void 0===e?void 0:e.settings),{},{requiredFields:[{name:"amount",dataType:"number"}]})})):"mifinity"===(null===e||void 0===e?void 0:e.group)&&"mifinity"===(null===e||void 0===e?void 0:e.name)?S((0,o.A)((0,o.A)({},e),{},{settings:(0,o.A)((0,o.A)({},null===e||void 0===e?void 0:e.settings),{},{requiredFields:null===e||void 0===e||null===(t=e.settings)||void 0===t||null===(a=t.requiredFields)||void 0===a?void 0:a[0]})})):S(e),oe(!0),(0,x.Gn)("payment"),M(!1),Y(!1),null===(d=window)||void 0===d||d.scrollTo(0,(null===D||void 0===D||null===(r=D.current)||void 0===r?void 0:r.offsetTop)+10),G("string"===typeof(null===e||void 0===e?void 0:e.amountKeys)?JSON.parse(null===e||void 0===e?void 0:e.amountKeys):null===e||void 0===e?void 0:e.amountKeys),B("Other")},setShowBonusListing:ve,handleDepositStatus:qe,verifyPaymentLoading:Se,selectedLanguageCode:de,showPaymentProviders:re,bonusSelectionHandler:Ye,setShowPaymentProviders:ue,skipBonusConfirmHandler:()=>{ue(!0),ve(!1)},userBonus:ge,currencyCode:null===J||void 0===J?void 0:J.currencyCode,showFreeSpinGameMod
1al:Ee,setShowFreeSpinGameModal:Te,identifier:Be,setIdentifier:Pe,freeSpinSelectedBonus:Fe,setFreeSpinSelectedBonus:Re,handleSelections:e=>{var i,l;(null===H||void 0===H?void 0:H.userBonusId)===(null===e||void 0===e?void 0:e.userBonusId)?We():"freespins"===e.bonusType&&["2","3",3].includes(null===e||void 0===e||null===(i=e.bonus)||void 0===i||null===(l=i.other)||void 0===l?void 0:l.aggregatorId)?(Re(e),Te(!0)):Ye(e)},utorgCurrencies:ke,onForfeitBonus:()=>{var e,i;a((0,m.YS)({data:{userBonusId:null===be||void 0===be||null===(e=be.rows[0])||void 0===e?void 0:e.userBonusId,bonusStatus:null===be||void 0===be||null===(i=be.rows[0])||void 0===i?void 0:i.status}}))},restrictDeposit:Ve,activeBonusLoading:pe,cancelBonusLoading:je,fetchDepositBonusData:Ue,showBonusForfeitConfirmationModal:e=>{a((0,y.qf)({name:j.lx.FORFEIT,title:"".concat(null===se||void 0===se?void 0:se.areYouSure," ?"),graphic:(0,w.jsx)(f.A,{name:"warning",height:148,width:131}),body:null===se||void 0===se?void 0:se.notUsableBonus,onClose:()=>{a((0,y.Oo)(j.lx.FORFEIT))},buttons:[{text:null===se||void 0===se?void 0:se.cancel,variant:b.Vt.SECONDARY},{text:null===se||void 0===se?void 0:se.forfeitButton,variant:b.Vt.PRIMARY,onClick:()=>{a((0,m.YS)({data:{userBonusId:null===e||void 0===e?void 0:e.userBonusId},deposit:!0,status:me})),(null===H||void 0===H?void 0:H.userBonusId)===(null===e||void 0===e?void 0:e.userBonusId)&&K(null)}}]}))},resetPay:Ke,setData:S}};var C=l(5830),D=l(95942),L=l(26639),S=l(55934),k=l(12783),I=l(55213),E=l(44268);const T=e=>{let{showModal:i,setShowModal:l,skipBonusConfirmHandler:o,languageData:n}=e;return(0,w.jsx)(w.Fragment,{children:(0,w.jsx)(E.A,{show:i,onHide:()=>{l(!1)},"aria-labelledby":"contained-modal-title-vcenter",centered:!0,className:"generic-modal-layout","data-bs-backdrop":"static","data-bs-keyboard":"false",tabIndex:"-1","aria-hidden":"true",children:(0,w.jsxs)("div",{className:"topdiv mx-auto",children:[(0,w.jsx)(E.A.Body,{children:(0,w.jsx)("div",{children:(null===n||void 0===n?void 0:n.bonusSkipContent)||"Are you sure you want to skip Bonus."})}),(0,w.jsxs)(E.A.Footer,{children:[(0,w.jsxs)(I.Ay,{onClick:()=>{l(!1),o()},children:[" ",null===n||void 0===n?void 0:n.signupConfirm]}),(0,w.jsxs)(I.Ay,{onClick:()=>{l(!1)},children:[" ",null===n||void 0===n?void 0:n.cancel]})]})]})})})};var B=l(89473),P=l(52899),F=l(76598);const R=e=>{let{languageData:i,loading:l,onForfeitBonus:o}=e;return l?(0,w.jsx)(a.A,{}):(0,w.jsx)(w.Fragment,{children:(0,w.jsx)("div",{className:"user-account-block",children:(0,w.jsxs)("div",{className:"payment-methods-tab",children:[(0,w.jsx)("div",{className:"d-flex accounts-btn justify-content-center align-items-center flex-sm-row flex-column w-100",children:(0,w.jsxs)("p",{className:"info-text-bonus",children:[(0,w.jsx)(f.A,{name:"credit-card-solid",className:"mr-2"})," ","".concat((null===i||void 0===i?void 0:i.warning)||"Warning!")]})}),(0,w.jsxs)("div",{className:"p-4",children:[(0,w.jsx)("div",{className:"d-flex justify-content-center align-items-center mb-4",children:(0,w.jsx)(f.A,{name:"no-data",className:"fa-shake alerts-icon"})}),(0,w.jsx)("div",{className:"mb-4 text-white d-flex justify-content-center align-items-center",children:(0,w.jsx)("p",{children:(null===i||void 0===i?void 0:i.activeBonusDepositWarning)||"You have active match sticky bonus. To proceed with deposits, please forfeit the active bonus."})}),(0,w.jsx)("div",{children:(0,w.jsx)("div",{className:"search-game-listing__buttons d-flex justify-content-center align-items-center gap-4",children:(0,w.jsx)(I.jn,{className:"mt-4 button",onClick:o,isDisabled:l,children:(null===i||void 0===i?void 0:i.forfeit)||"Forfeit"})})})]})]})})})};var M=l(48253),O=l(85472);const V=e=>{let{userBonus:i,bonusLoading:l,selectedBonus:o,handleSelections:n,showBonusListing:s,setShowInfo:t,setSelectedBonusInfo:d,selectedLanguageCode:r,languageData:u}=e;const c=e=>{var i,l,o,n,s,t,a,d,u,c,v;return null!==e&&void 0!==e&&null!==(i=e.other)&&void 0!==i&&i.bonusTitle?"string"===typeof(null===e||void 0===e||null===(l=e.other)||void 0===l?void 0:l.bonusTitle)?null===e||void 0===e||null===(o=e.other)||void 0===o?void 0:o.bonusTitle:"".concat((null===e||void 0===e||null===(n=e.other)||void 0===n||null===(s=n.bonusTitle)||void 0===s?void 0:s[r])||(null===e||void 0===e||null===(t=e.other)||void 0===t||null===(a=t.bonusTitle)||void 0===a?void 0:a.EN)):"".concat((null===e||void 0===e||null===(d=e.bonus)||void 0===d||null===(u=d.promotionTitle)||void 0===u?void 0:u[r])||(null===e||void 0===e||null===(c=e.bonus)||void 0===c||null===(v=c.promotionTitle)||void 0===v?void 0:v.EN))};var v;return 0!==(null===i||void 0===i?void 0:i.count)?(0,w.jsx)("div",{className:"user-account-block show-bonus-".concat(s),children:(0,w.jsxs)("div",{className:"deposit-bonus-tab",children:[(0,w.jsx)("div",{className:"d-flex accounts-btn justify-content-center align-items-center flex-sm-row flex-column w-100",children:(0,w.jsxs)("p",{className:"info-text-bonus",children:[(0,w.jsx)(f.A,{name:"award",className:"mr-2 info-text-bonus-icon",width:"16",height:"16"})," ",null===u||void 0===u?void 0:u.selectYourBonus]})}),l?(0,w.jsx)(a.A,{top:"20px",bottom:"20px"}):(0,w.jsx)(w.Fragment,{children:(0,w.jsx)("div",{className:"bonus-block-wrapper",children:null===i||void 0===i||null===(v=i.rows)||void 0===v?void 0:v.map(((e,i)=>null!==e&&void 0!==e&&e.isTransactionCreated&&(null===e||void 0===e?void 0:e.status)===b.P.ACTIVE?null:(0,w.jsxs)("div",{className:"bonus-block ".concat(o?"":"none-selected").concat((null===o||void 0===o?void 0:o.userBonusId)===(null===e||void 0===e?void 0:e.userBonusId)?"selected":""),children:[(0,w.jsx)("div",{className:"star-section",children:(0,w.jsx)("img",{className:"bonus-card-image",src:null===u||void 0===u?void 0:u.bonusStaticImage,alt:"img"})}),(0,w.jsx)("div",{className:"bonus-title",children:c(e)}),(0,w.jsx)("div",{className:"bonus-title onclick-bonus-tnc",onClick:()=>{t(!0),d(e)},children:c(e)}),(0,w.jsxs)("button",{className:"select-bonus-btn ".concat((null===o||void 0===o?void 0:o.userBonusId)===(null===e||void 0===e?void 0:e.userBonusId)?"active":""," "),onClick:()=>{n(e)},children:[(0,w.jsx)(f.A,{name:"xmark",className:"xmark-icon"}),(null===o||void 0===o?void 0:o.userBonusId)===(null===e||void 0===e?void 0:e.userBonusId)?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("span",{children:null===u||void 0===u?void 0:u.selected}),(0,w.jsx)(f.A,{name:"circle-check",className:"select-bonus-check-icon",width:"12",height:"12"})]}):(0,w.jsx)("span",{children:null===u||void 0===u?void 0:u.select})]},i)]},i)))})})]})}):null},U=e=>{var i,l;let{userBonus:o,bonusLoading:n,selectedBonus:s,handleSelections:t,showBonusListing:d,setShowInfo:r,setSelectedBonusInfo:u,selectedLanguageCode:c,languageData:v}=e;const m=e=>{var i,l,o,n,s,t,a,d,r,u,v;return null!==e&&void 0!==e&&null!==(i=e.other)&&void 0!==i&&i.bonusTitle?"string"===typeof(null===e||void 0===e||null===(l=e.other)||void 0===l?void 0:l.bonusTitle)?null===e||void 0===e||null===(o=e.other)||void 0===o?void 0:o.bonusTitle:"".concat((null===e||void 0===e||null===(n=e.other)||void 0===n||null===(s=n.bonusTitle)||void 0===s?void 0:s[c])||(null===e||void 0===e||null===(t=e.other)||void 0===t||null===(a=t.bonusTitle)||void 0===a?void 0:a.EN)):"".concat((null===e||void 0===e||null===(d=e.bonus)||void 0===d||null===(r=d.promotionTitle)||void 0===r?void 0:r[c])||(null===e||void 0===e||null===(u=e.bonus)||void 0===u||null===(v=u.promotionTitle)||void 0===v?void 0:v.EN))};return d?(0,w.jsxs)("div",{className:"bonus-selector",children:[(0,w.jsx)("h5",{className:"bonus-selector__title mb-4",children:(null===v||void 0===v?void 0:v.selectYourBonus)||"Select Your Bonus"}),n?(0,w.jsx)(a.A,{top:"50px",bottom:"35px"}):(0,w.jsx)(w.Fragment,{children:null===o||void 0===o||null===(i=o.rows)||void 0===i||null===(l=i.filter((e=>!(null!==e&&void 0!==e&&e.isTransactionCreated&&(null===e||void 0===e?void 0:e.status)===b.P.ACTIVE))))||void 0===l?void 0:l.map((e=>{var i;return(0,w.jsxs)("div",{className:"bonus-card d-flex align-items-center justify-content-between mb-3 flex-row ".concat(s===e.userBonusId?"bonus-card--selected":""),children:[(0,w.jsxs)("div",{className:"bonus-card__info d-flex flex-row align-items-center",children:[(0,w.jsx)("img",{src:null===e||void 0===e||null===(i=e.bonus)||void 0===i?void 0:i.imageUrl,alt:m(e),className:"bonus-card__image me-3"}),(0,w.jsxs)("div",{children:[(0,w.jsx)("div",{className:"bonus-card__title",children:m(e)}),(0,w.jsx)("div",{className:"bonus-card__terms",children:(0,w.jsx)("a",{href:null,onClick:()=>{r(!0),u(e)},children:"Terms & Conditions"})})]})]}),(0,w.jsx)("div",{className:"bonus-card__toggle",children:(0,w.jsx)("div",{className:"form-check form-switch",children:(0,w.jsx)("input",{className:"form-check-input",type:"checkbox",role:"switch",id:"bonus_".concat(e.userBonusId,"_toggle"),checked:(null===s||void 0===s?void 0:s.userBonusId)===(null===e||void 0===e?void 0:e.userBonusId),onChange:()=>t(e)})})})]},e.userBonusId)}
1))})]}):null},_=e=>{const i=(0,s.d4)((e=>{var i,l;return null===e||void 0===e||null===(i=e.uiConfig)||void 0===i||null===(l=i.general)||void 0===l?void 0:l.depositBonusListVariant}));return i===t.F0.V1?(0,w.jsx)(V,(0,o.A)({},e)):i===t.F0.V2?(0,w.jsx)(U,(0,o.A)({},e)):(0,w.jsx)("div",{className:"p-4 text-center bg-black rounded text-white",children:(0,w.jsxs)("p",{children:["The deposit bonus list variant '",i,"' is not supported. Please check your configuration."]})})};var G=l(51141),W=l(83397);const Y=(0,G.A)()((()=>{var e,i,l,n;const{amt:s,type:t,data:d,setAmt:r,setType:u,loadPIQ:c,loading:v,navigate:m,sessionId:h,userBonus:p,initValues:x,amtOptions:g,showIFrame:y,paymentData:j,userDetails:b,bonusLoading:N,handleSubmit:I,languageData:E,currencyCode:V,setShowIFrame:U,selectedBonus:G,showSkipModel:Y,paymentStatus:q,depositFormRef:z,handleRedirect:H,bonusListingRef:K,myDepositStatus:Z,showDepositForm:Q,showBonusListing:J,setShowSkipModel:X,paymentProviders:$,setMyDepositStatus:ee,fetchLatestChanges:ie,handleProviderClick:le,selectedLanguageCode:oe,verifyPaymentLoading:ne,showPaymentProviders:se,bonusSelectionHandler:te,skipBonusConfirmHandler:ae,showFreeSpinGameModal:de,setShowFreeSpinGameModal:re,identifier:ue,setIdentifier:ce,freeSpinSelectedBonus:ve,handleSelections:me,utorgCurrencies:he,restrictDeposit:pe,onForfeitBonus:xe,activeBonusLoading:ge,cancelBonusLoading:ye,fetchDepositBonusData:je}=A(),{showInfo:be,setShowInfo:fe,selectedBonusInfo:we,setSelectedBonusInfo:Ne}=(0,M.A)();return(0,B.A)({loadPIQ:c,paymentData:j,userDetails:b,sessionId:h}),(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(W.A,{ref:K,showBackButton:y&&!c,title:null===E||void 0===E?void 0:E.headerDeposit,handleRedirect:H,languageData:E,onReload:ie,showReload:(J||se)&&!pe,reloadLoading:v&&!N}),pe?(0,w.jsx)(R,{loading:ye||ge,onForfeitBonus:xe,languageData:E}):(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(_,{userBonus:p,handleSelections:me,bonusLoading:N,bonusListingRef:K,selectedBonus:G,selectedLanguageCode:oe,languageData:E,setSelectedBonusInfo:Ne,showBonusListing:J,setShowInfo:fe}),be&&(0,w.jsx)(O.A,{showInfo:be,setShowInfo:fe,bonusDetails:we,selectedLanguageCode:oe}),(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("div",{className:"user-account-block default-state-fx show-methods-".concat(se||J),children:(0,w.jsxs)("div",{className:"payment-methods-tab",children:[(0,w.jsx)("div",{className:"d-flex accounts-btn justify-content-center align-items-center flex-sm-row flex-column w-100",children:(0,w.jsxs)("p",{className:"info-text-bonus",children:[(0,w.jsx)(f.A,{name:"credit-card-solid",className:"mr-2"}),null===E||void 0===E?void 0:E.selectPaymentMethod]})}),(0,w.jsx)("div",{className:"payment-providers-wrapper",children:(se||J)&&(v&&!N?(0,w.jsx)(a.A,{top:"20px",bottom:"20px"}):!N&&(0,w.jsx)(w.Fragment,{children:$&&null!==(e=Object.keys($))&&void 0!==e&&e.length?(0,w.jsx)(w.Fragment,{children:Object.keys($).map(((e,i)=>{var l;return null===$||void 0===$||null===(l=$[e])||void 0===l?void 0:l.map(((e,i)=>{var l;return(0,w.jsx)(C.A,{overlay:i=>(0,w.jsx)(D.A,(0,o.A)((0,o.A)({},i),{},{children:(null===e||void 0===e?void 0:e.displayName)||(null===e||void 0===e?void 0:e.name)})),placement:"bottom",popperConfig:{modifiers:[{name:"offset",options:{offset:[0,8]}}]},children:(0,w.jsxs)("div",{className:"payment-provider ".concat(null!==d&&void 0!==d&&d.paymentProviderId?"":"none-selected").concat((null===d||void 0===d?void 0:d.paymentProviderId)===(null===e||void 0===e?void 0:e.paymentProviderId)?"selected":""),onClick:()=>le(e),children:[(null===e||void 0===e?void 0:e.recommendedDeposit)&&(0,w.jsx)("div",{className:"recommended-tag-wrapper",children:(0,w.jsx)("div",{className:"recommended-tag",children:(0,w.jsx)(f.A,{name:"fire-solid",width:"20",height:"20"})})}),(0,w.jsx)("div",{className:"payment-provider-content",children:(0,w.jsx)("img",{className:"payment-provider-logo",loading:"lazy",src:(null===e||void 0===e||null===(l=e.settings)||void 0===l?void 0:l.depositImageUrl)||"".concat("https://d1urdgvrz10048.cloudfront.net/static/shinywilds","/defaultpayment.svg"),alt:(null===e||void 0===e?void 0:e.displayName)||(null===e||void 0===e?void 0:e.name)})}),(0,w.jsx)("span",{className:"category",children:(null===E||void 0===E?void 0:E[null===e||void 0===e?void 0:e.category])||(null===e||void 0===e?void 0:e.category)||"Other"})]})},"".concat(e,"-").concat(i))}))}))}):(0,w.jsx)(S.A,{errorMessage:null===E||void 0===E?void 0:E.noProvidersFound})}))})]})}),(0,w.jsx)("div",{ref:z,className:"user-account-block default-state-fx show-deposit-form-".concat(Q),children:(0,w.jsxs)("div",{className:"payment-tab ",children:[(0,w.jsx)("div",{className:"d-flex accounts-btn justify-content-center align-items-center flex-sm-row flex-column bonus-border-bottom w-100",children:(0,w.jsxs)("p",{className:"info-text-bonus",children:[(0,w.jsx)(f.A,{name:"money-check-pen-solid"}),"\xa0",null===E||void 0===E?void 0:E.payWith]})}),Q&&x&&(0,w.jsxs)("div",{children:[(0,w.jsx)("div",{className:"change-btn-with-logo d-flex align-items-center justify-content-start",children:(0,w.jsx)(C.A,{overlay:e=>(0,w.jsx)(D.A,(0,o.A)((0,o.A)({},e),{},{children:(null===d||void 0===d?void 0:d.displayName)||(null===d||void 0===d?void 0:d.name)})),placement:"bottom",children:(0,w.jsxs)("a",{href:()=>!1,className:"btn amount-type-btn",children:[(0,w.jsx)("div",{className:"payment-provider-content",children:(0,w.jsx)("img",{loading:"lazy",src:(null===d||void 0===d||null===(i=d.settings)||void 0===i?void 0:i.depositImageUrl)||"".concat("https://d1urdgvrz10048.cloudfront.net/static/shinywilds","/defaultpayment.svg"),alt:(null===d||void 0===d?void 0:d.displayName)||(null===d||void 0===d?void 0:d.name),className:"transaction-type payment-provider-logo"})}),(0,w.jsx)("span",{className:"category",children:(null===E||void 0===E?void 0:E[null===d||void 0===d?void 0:d.category])||(null===d||void 0===d?void 0:d.category)||"Other"})]})})}),(0,w.jsx)(L.A,{initValues:x,data:d,currencyCode:V,handleSubmit:I,amt:s,setAmt:r,type:t,setType:u,selectedBonus:G,deposit:!0,languageData:E,amtOptions:g,identifier:ue,utorgCurrencies:he})]})]})}),(ne||y&&j&&!["FAILED"].includes(null===j||void 0===j?void 0:j.txState)&&![400,401].includes(null===j||void 0===j?void 0:j.status))&&(0,w.jsx)(P.A,{deposit:!0,onIframeClose:je,showIFrame:y,setShowIFrame:U,loading:ne,url:(null===j||void 0===j||null===(l=j.redirectOutput)||void 0===l?void 0:l.url)||(null===j||void 0===j?void 0:j.redirect_url),data:null!==j&&void 0!==j&&j.qrId?j:null,isPIQ:"paymentiq"===(null===d||void 0===d?void 0:d.aggregator),windowOnly:(null===j||void 0===j?void 0:j.checkout_url)||"window"===(null===j||void 0===j||null===(n=j.redirectOutput)||void 0===n?void 0:n.container)||"window"===(null===j||void 0===j?void 0:j.container)}),y&&j&&(["FAILED"].includes(null===j||void 0===j?void 0:j.txState)||[400,401].includes(null===j||void 0===j?void 0:j.status))&&(0,w.jsx)("div",{className:"deposit-receipt user-account-block",children:(0,w.jsx)("div",{className:"deposit-receipt-width",children:(0,w.jsx)(k.A,{paymentStatus:j,navigate:m,setShow:ee,deposit:!0})})}),Z&&(q?!N&&!v&&q&&!se&&(0,w.jsx)("div",{className:"deposit-receipt user-account-block",children:(0,w.jsx)("div",{className:"deposit-receipt-width",children:(0,w.jsx)(k.A,{paymentStatus:q,navigate:m,setShow:ee,deposit:!0})})}):(0,w.jsx)(a.A,{top:"5%"})),Y&&(0,w.jsx)(T,{languageData:E,showModal:Y,setShowModal:X,skipBonusConfirmHandler:ae,selectedBonus:G,selectedLanguageCode:oe}
1),de&&(0,w.jsx)(F.A,{showFreeSpinGameModal:de,setShowFreeSpinGameModal:re,selectedBonusDetail:ve,activateBonus:(e,i)=>{ce(i),te(e,i),re(!1)}})]})]})]})})),q=e=>{var i,l;let{paymentProviders:o={},data:n,handleProviderClick:s,loading:t,languageData:d}=e;return(0,w.jsxs)("div",{className:"payment-providers-wrapper",children:[(0,w.jsx)("h2",{className:"payment-title",children:(null===d||void 0===d?void 0:d.selectPaymentMethod)||"Select Payment Method"}),!t||!o||null!==(i=Object.keys(o))&&void 0!==i&&i.length?(0,w.jsx)("div",{children:o&&null!==(l=Object.keys(o))&&void 0!==l&&l.length?(0,w.jsx)("div",{className:"payment-providers-grid",children:Object.keys(o).map(((e,i)=>{var l;return null===o||void 0===o||null===(l=o[e])||void 0===l?void 0:l.map(((e,i)=>{var l;const o=(null===n||void 0===n?void 0:n.paymentProviderId)===(null===e||void 0===e?void 0:e.paymentProviderId);return(0,w.jsxs)("div",{className:"payment-card ".concat(o?"is-selected":""),role:"button","aria-pressed":o,tabIndex:"0",onClick:()=>s(e),children:[(0,w.jsx)("img",{loading:"lazy",className:"deposit-image",src:(null===e||void 0===e||null===(l=e.settings)||void 0===l?void 0:l.depositImageUrl)||"".concat("https://d1urdgvrz10048.cloudfront.net/static/shinywilds","/defaultpayment.svg"),alt:(null===e||void 0===e?void 0:e.displayName)||(null===e||void 0===e?void 0:e.name)}),o&&(0,w.jsx)(f.A,{name:"cardCheck"})]},"".concat(e.paymentProviderId,"-").concat(i))}))}))}):(0,w.jsxs)("div",{className:"no-payment-providers-found",children:[(0,w.jsx)("div",{className:"no-payment-providers-icon",children:(0,w.jsx)(f.A,{name:"NoBonusAvailable",width:232,height:110})}),(0,w.jsx)("div",{className:"no-data-found-text",children:(null===d||void 0===d?void 0:d.noPaymentProvidersFound)||"No payment providers found."})]})}):(0,w.jsx)(a.A,{top:"20px",bottom:"20px"})]})};var z=l(22264),H=l(87620);const K=e=>{var i;let{bonusLoading:l,userBonus:o,selectedBonus:s,selectedLanguageCode:t,showBonusListing:d,handleSelections:u,languageData:c,showBonusForfeitConfirmationModal:v,setData:m,skipBonusHandler:h}=e;const p=(0,r.Zp)(),[x,g]=(0,n.useState)(!0);(0,n.useEffect)((()=>{if(!x){var e;const i=null===o||void 0===o||null===(e=o.rows)||void 0===e?void 0:e.find((e=>(null===s||void 0===s?void 0:s.userBonusId)===(null===e||void 0===e?void 0:e.userBonusId)));i&&(h(i),m({}))}}),[x]);const y=e=>{var i,l,o,n,s,a,d,r,u,c,v;return null!==e&&void 0!==e&&null!==(i=e.other)&&void 0!==i&&i.bonusTitle?"string"===typeof(null===e||void 0===e||null===(l=e.other)||void 0===l?void 0:l.bonusTitle)?null===e||void 0===e||null===(o=e.other)||void 0===o?void 0:o.bonusTitle:"".concat((null===e||void 0===e||null===(n=e.other)||void 0===n||null===(s=n.bonusTitle)||void 0===s?void 0:s[t])||(null===e||void 0===e||null===(a=e.other)||void 0===a||null===(d=a.bonusTitle)||void 0===d?void 0:d.EN)):"".concat((null===e||void 0===e||null===(r=e.bonus)||void 0===r||null===(u=r.promotionTitle)||void 0===u?void 0:u[t])||(null===e||void 0===e||null===(c=e.bonus)||void 0===c||null===(v=c.promotionTitle)||void 0===v?void 0:v.EN))};return d?(0,w.jsxs)("div",{className:"available-bonus-container",children:[(0,w.jsxs)("div",{className:"header",children:[(0,w.jsx)("h1",{className:"main-title",children:c.availableBonuses||"Available Bonuses"}),(0,w.jsxs)("div",{className:"use-bonus-toggle",onClick:()=>{g((e=>!e))},children:[(0,w.jsx)("span",{className:x?"bonus-active":"bonus-disabled",children:(null===c||void 0===c?void 0:c.useBonus)||"Use Bonus"}),(0,w.jsx)("div",{className:"toggle-switch-button ".concat(x?"on":"off")})]})]}),(0,w.jsx)("div",{className:"available-bonus-list-container",children:l?(0,w.jsx)(a.A,{top:"20px",bottom:"20px"}):(0,w.jsx)(w.Fragment,{children:null===o||void 0===o||null===(i=o.rows)||void 0===i?void 0:i.map(((e,i)=>{var l;if(null!==e&&void 0!==e&&e.isTransactionCreated&&(null===e||void 0===e?void 0:e.status)===b.P.ACTIVE)return null;const o=(null===s||void 0===s?void 0:s.userBonusId)===(null===e||void 0===e?void 0:e.userBonusId),n=(0,H.P)(null===e||void 0===e?void 0:e.userBonusId);return(0,w.jsx)("div",{onClick:()=>{},className:"available-bonus-card-wrapper ".concat(x?"bonus-active":"bonus-disabled"),children:(0,w.jsx)("div",{className:"available-bonus-card ".concat(o?"selected":""),style:{backgroundImage:"url(".concat(n,")")},children:(0,w.jsxs)("div",{className:"card-main",children:[(0,w.jsxs)("div",{className:"card-detail
1s",children:[(0,w.jsx)("div",{className:"card-icon-wrapper",children:(0,w.jsx)("img",{src:null===e||void 0===e||null===(l=e.bonus)||void 0===l?void 0:l.imageUrl,alt:"".concat(y(e)," icon"),className:"bonus-card-icon"})}),(0,w.jsxs)("div",{className:"card-info",children:[(0,w.jsx)("h2",{className:"card-title",children:y(e)}),(0,w.jsx)("p",{className:"card-main-bonus",children:e.mainBonus})]})]}),(0,w.jsx)("div",{className:"card-action-btn",children:x&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(I.Ay,{variant:b.Vt.FORFEIT_BONUS,className:"bonus-card-v3-forfeit-btn action-btn",onClick:()=>{v(e)},children:null===c||void 0===c?void 0:c.forfeit}),(0,w.jsx)(I.Ay,{variant:b.Vt.SECONDARY,className:"bonus-card-v3-activate-btn action-btn",onClick:()=>{u(e)},children:null===c||void 0===c?void 0:c.bonusActivate})]})})]})})},i)}))})}),(0,w.jsx)("div",{className:"bonus-term-and-condition-wrapper",children:(0,w.jsx)("span",{className:"bonus-term-apply-text",onClick:()=>{var e;null===(e=window)||void 0===e||e.scrollTo(0,0),p("/".concat(null===t||void 0===t?void 0:t.toLowerCase(),"/bonus-terms"))},children:(null===c||void 0===c?void 0:c.bonusTermApply)||"Bonus Terms Apply"})}),(0,w.jsx)("div",{className:"security-footer",children:(0,w.jsx)("div",{className:"security-badges",children:(0,w.jsxs)("div",{className:"badge-content",children:[(0,w.jsxs)("div",{className:"badge encrypted",children:[(0,w.jsx)(f.A,{className:"footer-icon",name:"slots"}),(0,w.jsx)("span",{className:"badge-text",children:(null===c||void 0===c?void 0:c.slots)||"Slots"})]}),(0,w.jsxs)("div",{className:"badge verified",children:[(0,w.jsx)(f.A,{className:"footer-icon",name:"basketball"}),(0,w.jsx)("span",{className:"badge-text",children:(null===c||void 0===c?void 0:c.sports)||"Sports"})]}),(0,w.jsxs)("div",{className:"badge secured",children:[(0,w.jsx)(f.A,{className:"footer-icon",name:"cards"}),(0,w.jsx)("span",{className:"badge-text",children:(null===c||void 0===c?void 0:c.live)||"Live"})]})]})})})]}):null};var Z=l(54251);const Q=e=>{var i,l;const{amt:o,type:t,data:d,setAmt:r,setType:u,loadPIQ:c,loading:m,navigate:h,sessionId:p,userBonus:x,initValues:g,amtOptions:N,showIFrame:C,paymentData:D,userDetails:L,bonusLoading:S,handleSubmit:k,languageData:I,currencyCode:E,setShowIFrame:V,selectedBonus:U,showSkipModel:_,paymentStatus:G,myDepositStatus:W,showBonusListing:Y,setShowSkipModel:H,paymentProviders:Q,setMyDepositStatus:J,handleProviderClick:X,selectedLanguageCode:$,verifyPaymentLoading:ee,showPaymentProviders:ie,bonusSelectionHandler:le,skipBonusConfirmHandler:oe,showFreeSpinGameModal:ne,setShowFreeSpinGameModal:se,identifier:te,setIdentifier:ae,freeSpinSelectedBonus:de,handleSelections:re,utorgCurrencies:ue,restrictDeposit:ce,onForfeitBonus:ve,activeBonusLoading:me,cancelBonusLoading:he,fetchDepositBonusData:pe,showBonusForfeitConfirmationModal:xe,showDepositForm:ge,resetPay:ye,setData:je,skipBonusHandler:be}=A(),fe=(0,s.wA)(),{showInfo:we,setShowInfo:Ne,selectedBonusInfo:Ae,setSelectedBonusInfo:Ce}=(0,M.A)(),[De,Le]=(0,n.useState)(!1),Se=(0,s.d4)((e=>{var i,l,o;return null!==(i=null===(l=e.uiConfig)||void 0===l||null===(o=l.general)||void 0===o?void 0:o.isRestrictDepositModal)&&void 0!==i&&i}));return(0,n.useEffect)((()=>{S||m||!G||ie||Le(!0)}),[S,m,G,ie]),(0,n.useEffect)((()=>(ce&&Se&&!he&&!me&&!De&&ie&&fe((0,y.qf)({name:j.lx.RESTRICT_DEPOSIT_MODAL,graphic:(0,w.jsx)(f.A,{name:"warning",height:131,width:147}),title:(null===I||void 0===I?void 0:I.warning)||"Warning!",body:(null===I||void 0===I?void 0:I.activeBonusDepositWarning)||"You have active match sticky bonus. To proceed with deposits, please forfeit the active bonus.",buttons:[{text:(null===I||void 0===I?void 0:I.forfeit)||"Forfeit",variant:b.Vt.PRIMARY,onClick:ve,closeOnClick:!1}],modalProps:{backdrop:"static",showCloseButton:!0},onClose:()=>{h("/".concat((null===$||void 0===$?void 0:$.toLowerCase())||(0,v.Gq)("language").toLowerCase()||"en","/account/dashboard"))}})),()=>{fe((0,y.Oo)(j.lx.RESTRICT_DEPOSIT_MODAL))})),[ce,Se,he,me,De,ie]),(0,n.useEffect)((()=>{const e=()=>{};return window.addEventListener("unload",e),window.addEventListener("pageshow",(e=>{e.persisted&&window.location.reload()}
1)),()=>{window.removeEventListener("unload",e)}}),[]),(0,B.A)({loadPIQ:c,paymentData:D,userDetails:L,sessionId:p}),(0,w.jsxs)("div",{className:"deposit-page-wrapper-v2",children:[(he||me||m)&&(0,w.jsx)(a.A,{fullscreen:!0,overlay:!0}),(0,w.jsx)("div",{className:"deposit-v2-header",children:(null===I||void 0===I?void 0:I.depositFunds)||"Deposit Funds"}),(0,w.jsx)("div",{className:"deposit-page-wrapper-v2-content",children:ce&&!Se?(0,w.jsx)(R,{loading:he||me,onForfeitBonus:ve,languageData:I}):(0,w.jsxs)(w.Fragment,{children:[(0,w.jsxs)("div",{className:"deposit-page-left-section",children:[(ie||Y)&&(0,w.jsx)(q,{loading:m||S,data:d,handleProviderClick:X,languageData:I,paymentProviders:Q}),0!==(null===x||void 0===x?void 0:x.count)&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(K,{bonusLoading:S,userBonus:x,selectedBonus:U,setShowInfo:Ne,setSelectedBonusInfo:Ce,selectedLanguageCode:$,showBonusListing:Y,handleSelections:re,languageData:I,showBonusForfeitConfirmationModal:xe,setData:je,skipBonusHandler:be}),we&&(0,w.jsx)(O.A,{showInfo:we,setShowInfo:Ne,bonusDetails:Ae,selectedLanguageCode:$})]})]}),(0,w.jsx)("div",{className:"deposit-page-right-section",children:ge&&(0,w.jsx)(z.A,{initValues:g,data:d,currencyCode:E,handleSubmit:k,amt:o,setAmt:r,type:t,setType:u,selectedBonus:U,deposit:!0,languageData:I,amtOptions:N,identifier:te,utorgCurrencies:ue,showBonusForfeitConfirmationModal:xe,userBonus:x,handleRemoveSelectedBonus:e=>{re(e),je({})}})}),(ee||C&&D&&!["FAILED"].includes(null===D||void 0===D?void 0:D.txState)&&![400,401].includes(null===D||void 0===D?void 0:D.status))&&(0,w.jsx)(P.A,{deposit:!0,onIframeClose:pe,showIFrame:C,setShowIFrame:V,loading:ee,url:(null===D||void 0===D||null===(i=D.redirectOutput)||void 0===i?void 0:i.url)||(null===D||void 0===D?void 0:D.redirect_url),data:null!==D&&void 0!==D&&D.qrId?D:null,isPIQ:"paymentiq"===(null===d||void 0===d?void 0:d.aggregator),windowOnly:(null===D||void 0===D?void 0:D.checkout_url)||"window"===(null===D||void 0===D||null===(l=D.redirectOutput)||void 0===l?void 0:l.container)||"window"===(null===D||void 0===D?void 0:D.container)}),C&&D&&(["FAILED"].includes(null===D||void 0===D?void 0:D.txState)||[400,401].includes(null===D||void 0===D?void 0:D.status))&&(0,w.jsx)(Z.A,{showModal:!0,paymentStatus:D,navigate:h,setShow:J,onClose:()=>{ye(),je({})},deposit:!0}),W&&(G?!S&&!m&&G&&!ie&&(0,w.jsx)("div",{className:"deposit-receipt user-account-block",children:(0,w.jsx)("div",{className:"deposit-receipt-width",children:(0,w.jsx)(Z.A,{showModal:!0,paymentStatus:G,navigate:h,setShow:J,onClose:()=>{Le(!1),ye(),je({})},deposit:!0})})}):(0,w.jsx)(Z.A,{loading:!G,showModal:!0,paymentStatus:G,navigate:h,setShow:J,deposit:!0})),_&&(0,w.jsx)(T,{languageData:I,showModal:_,setShowModal:H,skipBonusConfirmHandler:oe,selectedBonus:U,selectedLanguageCode:$}),ne&&(0,w.jsx)(F.A,{showFreeSpinGameModal:ne,setShowFreeSpinGameModal:se,selectedBonusDetail:de,activateBonus:(e,i)=>{ae(i),le(e,i),se(!1)}})]})})]})},J=e=>{var i;const l=(0,s.d4)((e=>{var i;return null===(i=e.uiConfig)||void 0===i?void 0:i.general})),n=null!==(i=null===l||void 0===l?void 0:l.depositPageVariant)&&void 0!==i?i:t.vr.V1;return("object"===typeof n&&null!==n&&void 0!==n&&n.variant?n.variant:n)===t.vr.V2?(0,w.jsx)(Q,(0,o.A)({},e)):(0,w.jsx)(Y,(0,o.A)({},e))}},86950:(e,i,l)=>{l.d(i,{A:()=>ce});var o=l(89379),n=l(9950),s=l(82569),t=l(15935),a=l(93325),d=l(38664),r=l(86615),u=l(43939),c=l(49782),v=l(1093),m=l(88230),h=l(85685),p=l(60666);const x=e=>{let{userLimit:i,languageData:l,licenseDetail:o}=e;return p.Ik().shape({dailyDepositLimit:p.Yj().max(10,(null===l||void 0===l?void 0:l.maxAllowedLimitCharacters)||"Maximum 10 characters allowed").matches(/^[0-9]*$/,null===l||void 0===l?void 0:l.onlyNumbers).test("Greater than 0",null===l||void 0===l?void 0:l.amountGTZero,(e=>!(e&&parseInt(e)<=0))).test("Daily Deposit Limit",null===l||void 0===l?void 0:l.amountEqualOrLess,((e,l)=>!(l.parent.weeklyDepositLimit&&l.parent.weeklyDepositLimit!==((null===i||void 0===i?void 0:i.weeklyDepositLimit)||"")&&parseInt(e)>parseInt(l.parent.weeklyDepositLimit))&&!(l.parent.monthlyDepositLimit&&l.parent.monthlyDepositLimit!==((null===i||void 0===i?void 0:i.monthlyDepositLimit)||"")&&parseInt(e)>parseInt(l.parent.monthlyDepositLimit)))).test("expiry","".concat(null===l||void 0===l?void 0:l.cannotBeIncreased," ").concat((0,h.cs)(null===i||void 0===i?void 0:i.dailyDepositExpiry)),(e=>!(null!==i&&void 0!==i&&i.dailyDepositExpiry&&e&&null!==i&&void 0!==i&&i.dailyDepositLimit&&parseInt(e)>parseInt(null===i||void 0===i?void 0:i.dailyDepositLimit)&&new Date(null===i||void 0===i?void 0:i.dailyDepositExpiry)>new Date))),weeklyDepositLimit:p.Yj().max(10,(null===l||void 0===l?void 0:l.maxAllowedLim
1itCharacters)||"Maximum 10 characters allowed").matches(/^[0-9]*$/,null===l||void 0===l?void 0:l.onlyNumbers).test("Greater than 0",null===l||void 0===l?void 0:l.amountGTZero,(e=>!(e&&parseInt(e)<=0))).test("Weekly Deposit Limit",null===l||void 0===l?void 0:l.amountInBetween,((e,l)=>!(l.parent.dailyDepositLimit&&l.parent.dailyDepositLimit!==((null===i||void 0===i?void 0:i.dailyDepositLimit)||"")&&parseInt(l.parent.dailyDepositLimit)>parseInt(e))&&!(l.parent.monthlyDepositLimit&&l.parent.monthlyDepositLimit!==((null===i||void 0===i?void 0:i.monthlyDepositLimit)||"")&&parseInt(e)>parseInt(l.parent.monthlyDepositLimit)))),monthlyDepositLimit:p.Yj().max(10,(null===l||void 0===l?void 0:l.maxAllowedLimitCharacters)||"Maximum 10 characters allowed").matches(/^[0-9]*$/,null===l||void 0===l?void 0:l.onlyNumbers).test("Greater than 0",null===l||void 0===l?void 0:l.amountGTZero,(e=>!(e&&parseInt(e)<=0))).test("Monthly Deposit Limit",null===l||void 0===l?void 0:l.amountEqualOrGreater,((e,l)=>!(l.parent.dailyDepositLimit&&l.parent.dailyDepositLimit!==((null===i||void 0===i?void 0:i.dailyDepositLimit)||"")&&parseInt(e)<parseInt(l.parent.dailyDepositLimit))&&!(l.parent.weeklyDepositLimit&&l.parent.weeklyDepositLimit!==((null===i||void 0===i?void 0:i.weeklyDepositLimit)||"")&&parseInt(e)<parseInt(l.parent.weeklyDepositLimit))))})},g=e=>p.Ik().shape({takeABreak:p.ai().integer((null===e||void 0===e?void 0:e.wholeNumber)||"Please enter a whole number").min(1,(null===e||void 0===e?void 0:e.takeABreakValidation)||"The value should be between 1 and 30.").max(30,(null===e||void 0===e?void 0:e.takeABreakValidation)||"The value should be between 1 and 30.").required(null===e||void 0===e?void 0:e.takeABreakRequired)}),y=e=>p.Ik().shape({timePeriod:p.ai().when("selfExclusionType",{is:e=>"custom"===e,then:p.ai().integer((null===e||void 0===e?void 0:e.wholeNumber)||"Please enter a whole number").required(null===e||void 0===e?void 0:e.selfExclusionRequired).min(1,null===e||void 0===e?void 0:e.selfExclusionValidation).max(6,null===e||void 0===e?void 0:e.selfExclusionValidation),otherwise:p.ai()})});var j=l(40885),b=l(55213),f=l(40326),w=l(44414);const N=e=>{var i,l,n;let{userDetails:t,showCheckbox:a,showInput:d,setShowCheckbox:r,setShowInput:p,languageData:g,limitFormType:y,setActiveLimitConfirmationForm:N,setConfirmMsg:A=()=>{},handleInfo:C=()=>{}}=e;const{licenseDetail:D}=(0,s.d4)((e=>e.language));return(0,w.jsx)(w.Fragment,{children:(0,w.jsx)(u.l1,{initialValues:{dailyDepositLimit:(null===t||void 0===t||null===(i=t.userLimit)||void 0===i?void 0:i.dailyDepositLimit)||"",weeklyDepositLimit:(null===t||void 0===t||null===(l=t.userLimit)||void 0===l?void 0:l.weeklyDepositLimit)||"",monthlyDepositLimit:(null===t||void 0===t||null===(n=t.userLimit)||void 0===n?void 0:n.monthlyDepositLimit)||"",dailyDepositReset:!1,weeklyDepositReset:!1,monthlyDepositReset:!1},validationSchema:x({userLimit:null===t||void 0===t?void 0:t.userLimit,languageData:g,licenseDetail:D}),onSubmit:(e,i)=>{let{resetForm:l}=i;(e=>{N(y.DEPOSIT_LIMIT),A((i=>{var l,n,s,d,r,u;return(0,o.A)((0,o.A)({},i),{},{type:"".concat(null===g||void 0===g?void 0:g.depositLimit),value:"".concat(""!==(null===e||void 0===e?void 0:e.dailyDepositLimit)&&(null===t||void 0===t||null===(l=t.userLimit)||void 0===l?void 0:l.dailyDepositLimit)!==(null===e||void 0===e?void 0:e.dailyDepositLimit)?"".concat(null===g||void 0===g?void 0:g.daily,": ").concat(j.L[(null===t||void 0===t?void 0:t.currencyCode)||"EUR"]," ").concat(null===e||void 0===e?void 0:e.dailyDepositLimit):""," ").concat(""!==(null===e||void 0===e?void 0:e.weeklyDepositLimit)&&(null===t||void 0===t||null===(n=t.userLimit)||void 0===n?void 0:n.weeklyDepositLimit)!==(null===e||void 0===e?void 0:e.weeklyDepositLimit)?",".concat(null===g||void 0===g?void 0:g.weekly,": ").concat(j.L[(null===t||void 0===t?void 0:t.currencyCode)||"EUR"]," ").concat(null===e||void 0===e?void 0:e.weeklyDepositLimit):""," ").concat(""!==(null===e||void 0===e?void 0:e.monthlyDepositLimit)&&(null===t||void 0===t||null===(s=t.userLimit)||void 0===s?void 0:s.monthlyDepositLimit)!==(null===e||void 0===e?void 0:e.monthlyDepositLimit)?",".concat(null===g||void 0===g?void 0:g.monthly,": ").concat(j.L[(null===t||void 0===t?void 0:t.currencyCode)||"EUR"]," ").concat(null===e||void 0===e?void 0:e.monthlyDepositLimit):""),dailyDepositLimit:null!==a&&void 0!==a&&a.depositCheckbox?null===e||void 0===e?void 0:e.dailyDepositReset:(null===t||void 0===t||null===(d=t.userLimit)||void 0===d?void 0:d.dailyDepositLimit)!==(null===e||void 0===e?void 0:e.dailyDepositLimit)?null===e||void 0===e?void 0:e.dailyDepositLimit:"",weeklyDepositLimit:null!==a&&void 0!==a&&a.depositCheckbox?null===e||void 0===e?void 0:e.weeklyDepositReset:(null===t||void 0===t||null===(r=t.userLimit)||void 0===r?void 0:r.weeklyDepositLimit)!==(null===e||void 0===e?void 0:e.weeklyDepositLimit)?null===e||void 0===e?void 0:e.weeklyDepositLimit:"",monthlyDepositLimit:null!==a&&void 0!==a&&a.depositCheckbox?null===e||void 0===e?void 0:e.monthlyDepositReset:(null===t||void 0===t||null===(u=t.userLimit)||void 0===u?void 0:u.monthlyDepositLimit)!==(null===e||void 0===e?void 0:e.monthlyDepositLimit)?null===e||void 0===e?void 0:e.monthlyDepositLimit:"",reset:null===a||void 0===a?void 0:a.depositCheckbox,info:C({formValues:e,type:"Deposit",checkboxType:"depositCheckbox"}),showFooter:!0})}))})(e),l()},children:e=>{var i,l,n,s,x,y,N,A,C,D,L,S,k,I,E,T,B,P,F,R,M,O,V,U,_,G,W,Y,q,z,H,K,Z,Q,J,X,$,ee,ie,le,oe,ne,se,te,ae;let{values:de,resetForm:re,handleChange:ue,handleBlur:ce,handleSubmit:ve,setFieldValue:me}=e;return(0,w.jsx)(c.A,{children:(0,w.jsxs)("div",{className:"limits-block table-layouts limits",children:[(0,w.jsxs)("div",{className:"limit-heading",children:[(0,w.jsx)("span",{style:{whiteSpace:"nowrap"},children:null===g||void 0===g?void 0:g.depositLimit}),(0,w.jsxs)("div",{className:"btn-container ",children:[null!==t&&void 0!==t&&null!==(i=t.userLimit)&&void 0!==i&&i.dailyDepositLimit&&null!==t&&void 0!==t&&null!==(l=t.userLimit)&&void 0!==l&&l.weeklyDepositLimit&&null!==t&&void 0!==t&&null!==(n=t.userLimit)&&void 0!==n&&n.monthlyDepositLimit||""!==(null===de||void 0===de?void 0:de.dailyDepositLimit)||""!==(null===de||void 0===de?void 0:de.weeklyDepositLimit)||""!==(null===de||void 0===de?void 0:de.monthlyDepositLimit)||null!==d&&void 0!==d&&d.depositInput?(0,w.jsx)(b.Ay,{variant:f.Vt.PRIMARY,size:"sm",type:"button",className:"ml-2",onClick:()=>{p((e=>(0,o.A)((0,o.A)({},e),{},{depositInput:!1}))),r((e=>(0,o.A)((0,o.A)({},e),{},{depositCheckbox:!1}))),re()},children:(0,w.jsx)("span",{children:null===g||void 0===g?void 0:g.cancel})}):(0,w.jsx)(b.Ay,{variant:f.Vt.PRIMARY,size:"sm",type:"button",className:"ml-2",onClick:()=>{p((e=>(0,o.A)((0,o.A)({},e),{},{depositInput:!0}))),r((e=>(0,o.A)((0,o.A)({},e),{},{depositCheckbox:!1})))},children:(0,w.jsx)("span",{children:null===g||void 0===g?void 0:g.btnSetLimit})}),(null!==(null===t||void 0===t||null===(s=t.userLimit)||void 0===s?void 0:s.dailyDepositLimit)||null!==(null===t||void 0===t||null===(x=t.userLimit)||void 0===x?void 0:x.weeklyDepositLimit)||null!==(null===t||void 0===t||null===(y=t.userLimit)||void 0===y?void 0:y.monthlyDepositLimit))&&!(null!==d&&void 0!==d&&d.depositInput)&&(0,w.jsx)(b.Ay,{variant:f.Vt.PRIMARY,size:"sm",type:"button",className:"ml-2",onClick:()=>{p((e=>(0,o.A)((0,o.A)({},e),{},{depositInput:!0}))),r((e=>(0,o.A)((0,o.A)({},e),{},{depositCheckbox:!1}))),re()},children:(0,w.jsx)("span",{children:null===g||void 0===g?void 0:g.editLimit})}),((null===t||void 0===t||null===(N=t.userLimit)||void 0===N?void 0:N.dailyDepositLimit)!==(null===de||void 0===de?void 0:de.dailyDepositLimit)||(null===t||void 0===t||null===(A=t.userLimit)||void 0===A?void 0:A.weeklyDepositLimit)!==(null===de||void 0===de?void 0:de.weeklyDepositLimit)||(null===t||void 0===t||null===(C=t.userLimit)||void 0===C?void 0:C.monthlyDepositLimit)!==(null===de||void 0===de?void 0:de.monthlyDepositLimit))&&(""!==(null===de||void 0===de?void 0:de.dailyDepositLimit)||""!==(null===de||void 0===de?void 0:de.weeklyDepositLimit)||""!==(null===de||void 0===de?void 0:de.monthlyDepositLimit))&&(null===d||void 0===d?void 0:d.depositInput)&&(0,w.jsx)(b.Ay,{variant:f.Vt.PRIMARY,size:"sm",type:"button",className:"ml-2",disabled:!(null!==de&&void 0!==de&&de.dailyDepositLimit)&&!(null!==de&&void 0!==de&&de.weeklyDepositLimit)&&!(null!==de&&void 0!==de&&de.monthlyDepositLimit)||(null===de||void 0===de?void 0:de.dailyDepositLimit)===((null===t||void 0===t||null===(D=t.userLimit)||void 0===D?void 0:D.dailyDepositLimit)||"")&&(null===de||void 0===de?void 0:de.weeklyDepositLimit)===((null===t||void 0===t||null===(L=t.userLimit)||void 0===L?void 0:L.weeklyDepositLimit)||"")&&(null===de||void 0===de?void 0:de.monthlyDepositLimit)===((null===t||void 0===t||null===(S=t.userLimit)||void 0===S?void 0:S.monthlyDepositLimit)||""),onClick:()=>{ve()},children:null===g||void 0===g?void 0:g.save}),(0,w.jsx)(b.Ay,{variant:f.Vt.PRIMARY,size:"sm",type:"button",className:"btn-danger ml-2",disabled:!(null!==t&&void 0!==t&&null!==(k=t.userLimit)&&void 0!==k&&k.dailyDepositLimit||null!==t&&void 0!==t&&null!==(I=t.userLimit)&&void 0!==I&&I.weeklyDepositLimit||null!==t&&void 0!==t&&null!==(E=t.userLimit)&&void 0!==E&&E.monthlyDepositLimit)||(null===a||void 0===a?void 0:a.depositCheckbox)&&!(null!==de&&void 0!==de&&de.dailyDepositReset||null!==de&&void 0!==de&&de.weeklyDepositReset||null!==de&&void 0!==de&&de.monthlyDepositReset),onClick:()=>{var e,i,l;r((e=>(0,o.A)((0,o.A)({},e),{},{depositCheckbox:!0}))),p((e=>(0,o.A)((0,o.A)({},e),{},{depositInput:!1}))),me("dailyDepositLimit",(null===t||void 0===t||null===(e=t.userLimit)||void 0===e?void 0:e.dailyDepositLimit)||""),me("weeklyDepositLimit",(null===t||void 0===t||null===(i=t.userLimit)||void 0===i?void 0:i.weeklyDepositLimit)||""),me("monthlyDepositLimit",(null===t||void 0===t||null===(l=t.userLimit)||void 0===l?void 0:l.monthlyDepositLimit)||""),null!==a&&void 0!==a&&a.depositCheckbox&&ve()},children:(0,w.jsx)("span",{children:null===g||void 0===g?void 0:g.removeLimit})})]})]}),(0,w.jsxs)(v.A,{responsive:!0,striped:!0,children:[(0,w.jsx)("thead",{className:"text-center",children:(0,w.jsxs)("tr",{children:[(null===a||void 0===a?void 0:a.depositCheckbox)&&(0,w.jsx)("th",{}),(0,w.jsx)("th",{children:null===g||void 0===g?void 0:g.type}),(0,w.jsx)("th",{children:null===g||void 0===g?void 0:g.usedLimit}),(0,w.jsx)("th",{children:null===g||void 0===g?void 0:g.setLimit}),(0,w.jsx)("th",{children:(null===g||void 0===g?void 0:g.dateAndTime)||"Date & Time"})]})}),(0,w.jsxs)("tbody",{className:"text-center",children:[(0,w.jsxs)("tr",{children:[(null===a||void 0===a?void 0:a.depositCheckbox)&&(0,w.jsxs)("td",{className:"table-error-message",children:[(0,w.jsx)("input",{type:"checkbox",name:"dailyDepositReset",value:null===de||void 0===de?void 0:de.dailyDepositReset,checked:null===de||void 0===de?void 0:de.dailyDepositReset,disabled:new Date(null===t||void 0===t||null===(T=t.userLimit)||void 0===T?void 0:T.dailyDepositExpiry)>new Date||null===(null===t||void 0===t||null===(B=t.userLimit)||void 0===B?void 0:B.dailyDepositExpiry),onChange:ue,onBlur:ce}),(null===t||void 0===t||null===(P=t.userLimit)||void 0===P?void 0:P.dailyDepositExpiry)&&new Date(null===t||void 0===t||null===(F=t.userLimit)||void 0===F?void 0:F.dailyDepositExpiry)>new Date&&(0,w.jsxs)("small",{className:"d-block text-danger",children:[null===g||void 0===g?void 0:g.cannotBeRemoved," ",(0,h.
1cs)(null===t||void 0===t||null===(R=t.userLimit)||void 0===R?void 0:R.dailyDepositExpiry)]})]}),(0,w.jsx)("td",{className:"limits-title",children:null===g||void 0===g?void 0:g.daily}),(0,w.jsx)("td",{className:"deposit-limit-primary",children:null===t||void 0===t||null===(M=t.userLimit)||void 0===M?void 0:M.dailyDepositUsedLimit}),(0,w.jsx)("td",{className:"deposit-limit-primary",children:null!==d&&void 0!==d&&d.depositInput?(0,w.jsxs)("div",{children:[(0,w.jsxs)(m.A,{className:"input-container ml-0",children:[(0,w.jsx)(m.A.Text,{children:j.L[(null===t||void 0===t?void 0:t.currencyCode)||"EUR"]}),(0,w.jsx)(c.A.Control,{name:"dailyDepositLimit",placeholder:null===g||void 0===g?void 0:g.enterAmount,value:null===de||void 0===de?void 0:de.dailyDepositLimit,onChange:ue,onBlur:ce})]}),(0,w.jsx)(u.Kw,{component:"div",name:"dailyDepositLimit",className:"text-danger small"})]}):(0,w.jsx)("span",{children:null!==t&&void 0!==t&&null!==(O=t.userLimit)&&void 0!==O&&O.dailyDepositLimit?null===t||void 0===t||null===(V=t.userLimit)||void 0===V?void 0:V.dailyDepositLimit:null===g||void 0===g?void 0:g.dailyDepositLimitNotSet})}),(0,w.jsx)("td",{className:"deposit-limit-primary",children:null!==(null===t||void 0===t||null===(U=t.userLimit)||void 0===U?void 0:U.dailyDepositLimit)?(0,h.cs)(null===t||void 0===t||null===(_=t.userLimit)||void 0===_?void 0:_.dailyDepositUpdatedAt):(0,w.jsx)("span",{children:"-"})})]}),(0,w.jsxs)("tr",{children:[(null===a||void 0===a?void 0:a.depositCheckbox)&&(0,w.jsxs)("td",{className:"table-error-message",children:[(0,w.jsx)("input",{type:"checkbox",name:"weeklyDepositReset",value:null===de||void 0===de?void 0:de.weeklyDepositReset,checked:null===de||void 0===de?void 0:de.weeklyDepositReset,disabled:new Date(null===t||void 0===t||null===(G=t.userLimit)||void 0===G?void 0:G.weeklyDepositExpiry)>new Date||null===(null===t||void 0===t||null===(W=t.userLimit)||void 0===W?void 0:W.weeklyDepositExpiry),onChange:ue,onBlur:ce}),(null===t||void 0===t||null===(Y=t.userLimit)||void 0===Y?void 0:Y.weeklyDepositExpiry)&&new Date(null===t||void 0===t||null===(q=t.userLimit)||void 0===q?void 0:q.weeklyDepositExpiry)>new Date&&(0,w.jsxs)("small",{className:"d-block text-danger",children:[null===g||void 0===g?void 0:g.cannotBeRemoved," ",(0,h.cs)(null===t||void 0===t||null===(z=t.userLimit)||void 0===z?void 0:z.weeklyDepositExpiry)]})]}),(0,w.jsx)("td",{className:"limits-title",children:null===g||void 0===g?void 0:g.weekly}),(0,w.jsx)("td",{className:"deposit-limit-primary",children:null===t||void 0===t||null===(H=t.userLimit)||void 0===H?void 0:H.weeklyDepositUsedLimit}),(0,w.jsx)("td",{className:"deposit-limit-primary",children:null!==d&&void 0!==d&&d.depositInput?(0,w.jsxs)("div",{children:[(0,w.jsxs)(m.A,{className:"input-container ml-0",children:[(0,w.jsx)(m.A.Text,{children:j.L[(null===t||void 0===t?void 0:t.currencyCode)||"EUR"]}),(0,w.jsx)(c.A.Control,{name:"weeklyDepositLimit",placeholder:null===g||void 0===g?void 0:g.enterAmount,value:null===de||void 0===de?void 0:de.weeklyDepositLimit,onChange:ue,onBlur:ce})]}),(0,w.jsx)(u.Kw,{component:"div",name:"weeklyDepositLimit",className:"text-danger small"})]}):(0,w.jsxs)("span",{children:[null!==t&&void 0!==t&&null!==(K=t.userLimit)&&void 0!==K&&K.weeklyDepositLimit?null===t||void 0===t||null===(Z=t.userLimit)||void 0===Z?void 0:Z.weeklyDepositLimit:null===g||void 0===g?void 0:g.weeklyDepositLimitNotSet," "]})}),(0,w.jsx)("td",{className:"deposit-limit-primary",children:null!==(null===t||void 0===t||null===(Q=t.userLimit)||void 0===Q?void 0:Q.weeklyDepositLimit)?(0,h.cs)(null===t||void 0===t||null===(J=t.userLimit)||void 0===J?void 0:J.weeklyDepositUpdatedAt):(0,w.jsx)("span",{children:"-"})})]}),(0,w.jsxs)("tr",{children:[(null===a||void 0===a?void 0:a.depositCheckbox)&&(0,w.jsxs)("td",{className:"table-error-message",children:[(0,w.jsx)("input",{type:"checkbox",name:"monthlyDepositReset",value:null===de||void 0===de?void 0:de.monthlyDepositReset,checked:null===de||void 0===de?void 0:de.monthlyDepositReset,disabled:new Date(null===t||void 0===t||null===(X=t.userLimit)||void 0===X?void 0:X.monthlyDepositExpiry)>new Date||null===(null===t||void 0===t||null===($=t.userLimit)||void 0===$?void 0:$.monthlyDepositExpiry),onChange:ue,onBlur:ce}),(null===t||void 0===t||null===(ee=t.userLimit)||void 0===ee?void 0:ee.monthlyDepositExpiry)&&new Date(null===t||void 0===t||null===(ie=t.userLimit)||void 0===ie?void 0:ie.monthlyDepositExpiry)>new Date&&(0,w.jsxs)("small",{className:"d-block text-danger",children:[null===g||void 0===g?void 0:g.cannotBeRemoved," ",(0,h.
1cs)(null===t||void 0===t||null===(le=t.userLimit)||void 0===le?void 0:le.monthlyDepositExpiry)]})]}),(0,w.jsx)("td",{className:"limits-title",children:null===g||void 0===g?void 0:g.monthly}),(0,w.jsx)("td",{className:"deposit-limit-primary",children:null===t||void 0===t||null===(oe=t.userLimit)||void 0===oe?void 0:oe.monthlyDepositUsedLimit}),(0,w.jsx)("td",{className:"deposit-limit-primary",children:null!==d&&void 0!==d&&d.depositInput?(0,w.jsxs)("div",{children:[(0,w.jsxs)(m.A,{className:"input-container ml-0",children:[(0,w.jsx)(m.A.Text,{children:j.L[(null===t||void 0===t?void 0:t.currencyCode)||"EUR"]}),(0,w.jsx)(c.A.Control,{name:"monthlyDepositLimit",placeholder:null===g||void 0===g?void 0:g.enterAmount,value:null===de||void 0===de?void 0:de.monthlyDepositLimit,onChange:ue,onBlur:ce})]}),(0,w.jsx)(u.Kw,{component:"div",name:"monthlyDepositLimit",className:"text-danger small"})]}):(0,w.jsx)("span",{children:null!==t&&void 0!==t&&null!==(ne=t.userLimit)&&void 0!==ne&&ne.monthlyDepositLimit?null===t||void 0===t||null===(se=t.userLimit)||void 0===se?void 0:se.monthlyDepositLimit:null===g||void 0===g?void 0:g.monthlyDepositLimitNotSet})}),(0,w.jsx)("td",{className:"deposit-limit-primary",children:null!==(null===t||void 0===t||null===(te=t.userLimit)||void 0===te?void 0:te.monthlyDepositLimit)?(0,h.cs)(null===t||void 0===t||null===(ae=t.userLimit)||void 0===ae?void 0:ae.monthlyDepositUpdatedAt):(0,w.jsx)("span",{children:"-"})})]})]})]})]})})}})})};var A=l(20381);const C=e=>{var i,l,n,t,a,d;let{userDetails:r,showCheckbox:v,showInput:m,setShowCheckbox:p,setShowInput:g,languageData:y,limitFormType:N,setActiveLimitConfirmationForm:C,setConfirmMsg:D=()=>{},handleInfo:L=()=>{}}=e;const{licenseDetail:S}=(0,s.d4)((e=>e.language)),k=null!==(null===r||void 0===r||null===(i=r.userLimit)||void 0===i?void 0:i.dailyDepositLimit)||null!==(null===r||void 0===r||null===(l=r.userLimit)||void 0===l?void 0:l.weeklyDepositLimit)||null!==(null===r||void 0===r||null===(n=r.userLimit)||void 0===n?void 0:n.monthlyDepositLimit);return(0,w.jsx)(w.Fragment,{children:(0,w.jsx)(u.l1,{initialValues:{dailyDepositLimit:(null===r||void 0===r||null===(t=r.userLimit)||void 0===t?void 0:t.dailyDepositLimit)||"",weeklyDepositLimit:(null===r||void 0===r||null===(a=r.userLimit)||void 0===a?void 0:a.weeklyDepositLimit)||"",monthlyDepositLimit:(null===r||void 0===r||null===(d=r.userLimit)||void 0===d?void 0:d.monthlyDepositLimit)||"",dailyDepositReset:!1,weeklyDepositReset:!1,monthlyDepositReset:!1},validationSchema:x({userLimit:null===r||void 0===r?void 0:r.userLimit,languageData:y,licenseDetail:S}),onSubmit:(e,i)=>{let{resetForm:l}=i;(e=>{C(N.DEPOSIT_LIMIT),D((i=>{var l,n,s,t,a,d;return(0,o.A)((0,o.A)({},i),{},{type:"".concat(null===y||void 0===y?void 0:y.depositLimit),value:"".concat(""!==(null===e||void 0===e?void 0:e.dailyDepositLimit)&&(null===r||void 0===r||null===(l=r.userLimit)||void 0===l?void 0:l.dailyDepositLimit)!==(null===e||void 0===e?void 0:e.dailyDepositLimit)?"".concat(null===y||void 0===y?void 0:y.daily,": ").concat(j.L[(null===r||void 0===r?void 0:r.currencyCode)||"EUR"]," ").concat(null===e||void 0===e?void 0:e.dailyDepositLimit):""," ").concat(""!==(null===e||void 0===e?void 0:e.weeklyDepositLimit)&&(null===r||void 0===r||null===(n=r.userLimit)||void 0===n?void 0:n.weeklyDepositLimit)!==(null===e||void 0===e?void 0:e.weeklyDepositLimit)?",".concat(null===y||void 0===y?void 0:y.weekly,": ").concat(j.L[(null===r||void 0===r?void 0:r.currencyCode)||"EUR"]," ").concat(null===e||void 0===e?void 0:e.weeklyDepositLimit):""," ").concat(""!==(null===e||void 0===e?void 0:e.monthlyDepositLimit)&&(null===r||void 0===r||null===(s=r.userLimit)||void 0===s?void 0:s.monthlyDepositLimit)!==(null===e||void 0===e?void 0:e.monthlyDepositLimit)?",".concat(null===y||void 0===y?void 0:y.monthly,": ").concat(j.L[(null===r||void 0===r?void 0:r.currencyCode)||"EUR"]," ").concat(null===e||void 0===e?void 0:e.monthlyDepositLimit):""),dailyDepositLimit:null!==v&&void 0!==v&&v.depositCheckbox?null===e||void 0===e?void 0:e.dailyDepositReset:(null===r||void 0===r||null===(t=r.userLimit)||void 0===t?void 0:t.dailyDepositLimit)!==(null===e||void 0===e?void 0:e.dailyDepositLimit)?null===e||void 0===e?void 0:e.dailyDepositLimit:"",weeklyDepositLimit:null!==v&&void 0!==v&&v.depositCheckbox?null===e||void 0===e?void 0:e.weeklyDepositReset:(null===r||void 0===r||null===(a=r.userLimit)||void 0===a?void 0:a.weeklyDepositLimit)!==(null===e||void 0===e?void 0:e.weeklyDepositLimit)?null===e||void 0===e?void 0:e.weeklyDepositLimit:"",monthlyDepositLimit:null!==v&&void 0!==v&&v.depositCheckbox?null===e||void 0===e?void 0:e.monthlyDepositReset:(null===r||void 0===r||null===(d=r.userLimit)||void 0===d?void 0:d.monthlyDepositLimit)!==(null===e||void 0===e?void 0:e.monthlyDepositLimit)?null===e||void 0===e?void 0:e.monthlyDepositLimit:"",reset:null===v||void 0===v?void 0:v.depositCheckbox,info:L({formValues:e,type:"Deposit",checkboxType:"depositCheckbox"}),showFooter:!0})}))})(e),l()},children:e=>{var i,l,n,s,t,a,d,x,N,C,D,L,S,I,E,T,B,P;let{values:F,resetForm:R,handleChange:M,handleBlur:O,handleSubmit:V,setFieldValue:U}=e;return(0,w.jsx)(c.A,{children:(0,w.jsx)("div",{className:"limits-block table-layouts limits",children:(0,w.jsxs)("div",{className:"deposit-limit-table-container",children:[(0,w.jsxs)("table",{className:"deposit-limit-table",children:[(0,w.jsxs)("thead",{children:[(0,w.jsx)("tr",{className:"deposit-heading",children:(null===y||void 0===y?void 0:y.depositLimit)||"Deposit Limit"}),(0,w.jsxs)("tr",{children:[(null===v||void 0===v?void 0:v.depositCheckbox)&&(0,w.jsx)("th",{}),(0,w.jsx)("th",{className:"type-header",children:null===y||void 0===y?void 0:y.type}),(0,w.jsx)("th",{className:"used-limit-header",children:null===y||void 0===y?void 0:y.usedLimit}),(0,w.jsx)("th",{className:"set-limit-header",children:null===y||void 0===y?void 0:y.setLimit}),(0,w.jsx)("th",{className:"date-time-header",children:(null===y||void 0===y?void 0:y.dateAndTime)||"Date & Time"})]})]}),(0,w.jsxs)("tbody",{children:[(0,w.jsxs)("tr",{children:[(null===v||void 0===v?void 0:v.depositCheckbox)&&(0,w.jsx)("td",{className:"table-error-message",children:((e,i,l,o,n,s)=>{const t=(null===r||void 0===r||null===(e=r.userLimit)||void 0===e?void 0:e.dailyDepositExpiry)&&new Date(null===r||void 0===r||null===(i=r.userLimit)||void 0===i?void 0:i.dailyDepositExpiry)>new Date||null===(null===r||void 0===r||null===(l=r.userLimit)||void 0===l?void 0:l.dailyDepositExpiry);return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("div",{role:"button",tabIndex:0,className:"cursor-pointer signup-checkbox ".concat(null!==F&&void 0!==F&&F.dailyDepositReset?"checked":""," ").concat(t?"disabled":""),onClick:()=>!t&&U("dailyDepositReset",!(null!==F&&void 0!==F&&F.dailyDepositReset)),onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||t||U("dailyDepositReset",!(null!==F&&void 0!==F&&F.dailyDepositReset))},"aria-pressed":!(null===F||void 0===F||!F.dailyDepositReset),"aria-disabled":t,children:(0,w.jsx)(A.A,{name:null!==F&&void 0!==F&&F.dailyDepositReset?"signup-checked":"signup-unchecked",width:"18",height:"18"})}),(null===r||void 0===r||null===(o=r.userLimit)||void 0===o?void 0:o.dailyDepositExpiry)&&new Date(null===r||void 0===r||null===(n=r.userLimit)||void 0===n?void 0:n.dailyDepositExpiry)>new Date&&(0,w.jsxs)("small",{className:"d-block error-message",children:[null===y||void 0===y?void 0:y.cannotBeRemoved," ",(0,h.
1cs)(null===r||void 0===r||null===(s=r.userLimit)||void 0===s?void 0:s.dailyDepositExpiry)]})]})})()}),(0,w.jsx)("td",{className:"type",children:null===y||void 0===y?void 0:y.daily}),(0,w.jsx)("td",{className:"used-limit",children:null===r||void 0===r||null===(i=r.userLimit)||void 0===i?void 0:i.dailyDepositUsedLimit}),(0,w.jsx)("td",{className:"set-limit",children:null!==m&&void 0!==m&&m.depositInput?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsxs)("div",{className:"deposit-limit-input-wrapper",children:[(0,w.jsxs)("span",{className:"currency-label",children:["(",j.L[(null===r||void 0===r?void 0:r.currencyCode)||"EUR"],")"]}),(0,w.jsx)("input",{className:"deposit-limit-amount-input",name:"dailyDepositLimit",type:"text",placeholder:null===y||void 0===y?void 0:y.enterAmount,value:null===F||void 0===F?void 0:F.dailyDepositLimit,onChange:M,onBlur:O})]}),(0,w.jsx)(u.Kw,{component:"div",name:"dailyDepositLimit",className:"error-message small"})]}):(0,w.jsx)("span",{children:null!==r&&void 0!==r&&null!==(l=r.userLimit)&&void 0!==l&&l.dailyDepositLimit?null===r||void 0===r||null===(n=r.userLimit)||void 0===n?void 0:n.dailyDepositLimit:null===y||void 0===y?void 0:y.dailyDepositLimitNotSet})}),(0,w.jsx)("td",{className:"date-time",children:null!==(null===r||void 0===r||null===(s=r.userLimit)||void 0===s?void 0:s.dailyDepositLimit)?(0,h.cs)(null===r||void 0===r||null===(t=r.userLimit)||void 0===t?void 0:t.dailyDepositUpdatedAt):(0,w.jsx)("span",{children:"-"})})]}),(0,w.jsxs)("tr",{children:[(null===v||void 0===v?void 0:v.depositCheckbox)&&(0,w.jsx)("td",{className:"table-error-message",children:((e,i,l,o,n,s)=>{const t=(null===r||void 0===r||null===(e=r.userLimit)||void 0===e?void 0:e.weeklyDepositExpiry)&&new Date(null===r||void 0===r||null===(i=r.userLimit)||void 0===i?void 0:i.weeklyDepositExpiry)>new Date||null===(null===r||void 0===r||null===(l=r.userLimit)||void 0===l?void 0:l.weeklyDepositExpiry);return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("div",{role:"button",tabIndex:0,className:"cursor-pointer signup-checkbox ".concat(null!==F&&void 0!==F&&F.weeklyDepositReset?"checked":""," ").concat(t?"disabled":""),onClick:()=>!t&&U("weeklyDepositReset",!(null!==F&&void 0!==F&&F.weeklyDepositReset)),onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||t||U("weeklyDepositReset",!(null!==F&&void 0!==F&&F.weeklyDepositReset))},"aria-pressed":!(null===F||void 0===F||!F.weeklyDepositReset),"aria-disabled":t,children:(0,w.jsx)(A.A,{name:null!==F&&void 0!==F&&F.weeklyDepositReset?"signup-checked":"signup-unchecked",width:"18",height:"18"})}),(null===r||void 0===r||null===(o=r.userLimit)||void 0===o?void 0:o.weeklyDepositExpiry)&&new Date(null===r||void 0===r||null===(n=r.userLimit)||void 0===n?void 0:n.weeklyDepositExpiry)>new Date&&(0,w.jsxs)("small",{className:"d-block error-message",children:[null===y||void 0===y?void 0:y.cannotBeRemoved," ",(0,h.cs)(null===r||void 0===r||null===(s=r.userLimit)||void 0===s?void 0:s.weeklyDepositExpiry)]})]})})()}),(0,w.jsx)("td",{className:"type",children:null===y||void 0===y?void 0:y.weekly}),(0,w.jsx)("td",{className:"used-limit",children:null===r||void 0===r||null===(a=r.userLimit)||void 0===a?void 0:a.weeklyDepositUsedLimit}),(0,w.jsx)("td",{className:"set-limit",children:null!==m&&void 0!==m&&m.depositInput?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsxs)("div",{className:"deposit-limit-input-wrapper",children:[(0,w.jsxs)("span",{className:"currency-label",children:["(",j.L[(null===r||void 0===r?void 0:r.currencyCode)||"EUR"],")"]}),(0,w.jsx)("input",{className:"deposit-limit-amount-input",name:"weeklyDepositLimit",type:"text",placeholder:null===y||void 0===y?void 0:y.enterAmount,value:null===F||void 0===F?void 0:F.weeklyDepositLimit,onChange:M,onBlur:O})]}),(0,w.jsx)(u.Kw,{component:"div",name:"weeklyDepositLimit",className:"error-message small"})]}):(0,w.jsxs)("span",{children:[null!==r&&void 0!==r&&null!==(d=r.userLimit)&&void 0!==d&&d.weeklyDepositLimit?null===r||void 0===r||null===(x=r.userLimit)||void 0===x?void 0:x.weeklyDepositLimit:null===y||void 0===y?void 0:y.weeklyDepositLimitNotSet," "]})}),(0,w.jsx)("td",{className:"date-time",children:null!==(null===r||void 0===r||null===(N=r.userLimit)||void 0===N?void 0:N.weeklyDepositLimit)?(0,h.cs)(null===r||void 0===r||null===(C=r.userLimit)||void 0===C?void 0:C.weeklyDepositUpdatedAt):(0,w.jsx)("span",{children:"-"})})]}),(0,w.jsxs)("tr",{children:[(null===v||void 0===v?void 0:v.depositCheckbox)&&(0,w.jsx)("td",{className:"table-error-message",children:((e,i,l,o,n,s)=>{const t=(null===r||void 0===r||null===(e=r.userLimit)||void 0===e?void 0:e.monthlyDepositExpiry)&&new Date(null===r||void 0===r||null===(i=r.userLimit)||void 0===i?void 0:i.monthlyDepositExpiry)>new Date||null===(null===r||void 0===r||null===(l=r.userLimit)||void 0===l?void 0:l.monthlyDepositExpiry);return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("div",{role:"button",tabIndex:0,className:"cursor-pointer signup-checkbox ".concat(null!==F&&void 0!==F&&F.monthlyDepositReset?"checked":""," ").concat(t?"disabled":""),onClick:()=>!t&&U("monthlyDepositReset",!(null!==F&&void 0!==F&&F.monthlyDepositReset)),onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||t||U("monthlyDepositReset",!(null!==F&&void 0!==F&&F.monthlyDepositReset))},"aria-pressed":!(null===F||void 0===F||!F.monthlyDepositReset),"aria-disabled":t,children:(0,w.jsx)(A.A,{name:null!==F&&void 0!==F&&F.monthlyDepositReset?"signup-checked":"signup-unchecked",width:"18",height:"18"})}),(null===r||void 0===r||null===(o=r.userLimit)||void 0===o?void 0:o.monthlyDepositExpiry)&&new Date(null===r||void 0===r||null===(n=r.userLimit)||void 0===n?void 0:n.monthlyDepositExpiry)>new Date&&(0,w.jsxs)("small",{className:"d-block error-message",children:[null===y||void 0===y?void 0:y.cannotBeRemoved," ",(0,h.
1cs)(null===r||void 0===r||null===(s=r.userLimit)||void 0===s?void 0:s.monthlyDepositExpiry)]})]})})()}),(0,w.jsx)("td",{className:"type",children:null===y||void 0===y?void 0:y.monthly}),(0,w.jsx)("td",{className:"used-limit",children:null===r||void 0===r||null===(D=r.userLimit)||void 0===D?void 0:D.monthlyDepositUsedLimit}),(0,w.jsx)("td",{className:"set-limit",children:null!==m&&void 0!==m&&m.depositInput?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsxs)("div",{className:"deposit-limit-input-wrapper",children:[(0,w.jsxs)("span",{className:"currency-label",children:["(",j.L[(null===r||void 0===r?void 0:r.currencyCode)||"EUR"],")"]}),(0,w.jsx)("input",{className:"deposit-limit-amount-input",name:"monthlyDepositLimit",type:"text",placeholder:null===y||void 0===y?void 0:y.enterAmount,value:null===F||void 0===F?void 0:F.monthlyDepositLimit,onChange:M,onBlur:O})]}),(0,w.jsx)(u.Kw,{component:"div",name:"monthlyDepositLimit",className:"error-message small"})]}):(0,w.jsx)("span",{children:null!==r&&void 0!==r&&null!==(L=r.userLimit)&&void 0!==L&&L.monthlyDepositLimit?null===r||void 0===r||null===(S=r.userLimit)||void 0===S?void 0:S.monthlyDepositLimit:null===y||void 0===y?void 0:y.monthlyDepositLimitNotSet})}),(0,w.jsx)("td",{className:"date-time",children:null!==(null===r||void 0===r||null===(I=r.userLimit)||void 0===I?void 0:I.monthlyDepositLimit)?(0,h.cs)(null===r||void 0===r||null===(E=r.userLimit)||void 0===E?void 0:E.monthlyDepositUpdatedAt):(0,w.jsx)("span",{children:"-"})})]})]})]}),(0,w.jsxs)("div",{className:"limit-table-btn-container",children:[(null===m||void 0===m?void 0:m.depositInput)&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(b.Ay,{variant:f.Vt.SECONDARY,className:"ml-2",type:"button",onClick:()=>{g((e=>(0,o.A)((0,o.A)({},e),{},{depositInput:!1}))),p((e=>(0,o.A)((0,o.A)({},e),{},{depositCheckbox:!1}))),R()},children:null===y||void 0===y?void 0:y.cancel}),(0,w.jsx)(b.Ay,{variant:f.Vt.SECONDARY,className:"ml-2",type:"button",disabled:!(null!==F&&void 0!==F&&F.dailyDepositLimit)&&!(null!==F&&void 0!==F&&F.weeklyDepositLimit)&&!(null!==F&&void 0!==F&&F.monthlyDepositLimit)||(null===F||void 0===F?void 0:F.dailyDepositLimit)===((null===r||void 0===r||null===(T=r.userLimit)||void 0===T?void 0:T.dailyDepositLimit)||"")&&(null===F||void 0===F?void 0:F.weeklyDepositLimit)===((null===r||void 0===r||null===(B=r.userLimit)||void 0===B?void 0:B.weeklyDepositLimit)||"")&&(null===F||void 0===F?void 0:F.monthlyDepositLimit)===((null===r||void 0===r||null===(P=r.userLimit)||void 0===P?void 0:P.monthlyDepositLimit)||""),onClick:()=>V(),children:null===y||void 0===y?void 0:y.save})]}),(null===v||void 0===v?void 0:v.depositCheckbox)&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(b.Ay,{variant:f.Vt.SECONDARY,className:"ml-2",type:"button",onClick:()=>{p((e=>(0,o.A)((0,o.A)({},e),{},{depositCheckbox:!1}))),g((e=>(0,o.A)((0,o.A)({},e),{},{depositInput:!1}))),R()},children:null===y||void 0===y?void 0:y.cancel}),(0,w.jsx)(b.Ay,{variant:f.Vt.FORFEIT_BONUS,className:"ml-2",type:"button",disabled:!k||!(null!==F&&void 0!==F&&F.dailyDepositReset||null!==F&&void 0!==F&&F.weeklyDepositReset||null!==F&&void 0!==F&&F.monthlyDepositReset),onClick:()=>{V()},children:null===y||void 0===y?void 0:y.removeLimit})]}),!(null!==m&&void 0!==m&&m.depositInput)&&!(null!==v&&void 0!==v&&v.depositCheckbox)&&(0,w.jsxs)(w.Fragment,{children:[!k&&(0,w.jsx)(b.Ay,{variant:f.Vt.SECONDARY,className:"ml-2",type:"button",onClick:()=>{g((e=>(0,o.A)((0,o.A)({},e),{},{depositInput:!0}))),p((e=>(0,o.A)((0,o.A)({},e),{},{depositCheckbox:!1})))},children:null===y||void 0===y?void 0:y.btnSetLimit}),k&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(b.Ay,{variant:f.Vt.SECONDARY,className:"ml-2",type:"button",onClick:()=>{g((e=>(0,o.A)((0,o.A)({},e),{},{depositInput:!0}))),p((e=>(0,o.A)((0,o.A)({},e),{},{depositCheckbox:!1}))),R()},children:null===y||void 0===y?void 0:y.editLimit}),(0,w.jsx)(b.Ay,{variant:f.Vt.FORFEIT_BONUS,className:"ml-2",type:"button",disabled:!k,onClick:()=>{var e,i,l;p((e=>(0,o.A)((0,o.A)({},e),{},{depositCheckbox:!0}))),g((e=>(0,o.A)((0,o.A)({},e),{},{depositInput:!1}))),U("dailyDepositLimit",(null===r||void 0===r||null===(e=r.userLimit)||void 0===e?void 0:e.dailyDepositLimit)||""),U("weeklyDepositLimit",(null===r||void 0===r||null===(i=r.userLimit)||void 0===i?void 0:i.weeklyDepositLimit)||""),U("monthlyDepositLimit",(null===r||void 0===r||null===(l=r.userLimit)||void 0===l?void 0:l.monthlyDepositLimit)||"")},children:null===y||void 0===y?void 0:y.removeLimit})]})]})]})]})})})}})})},D=e=>{var i;const l=(0,s.d4)((e=>{var i;return null===(i=e.uiConfig)||void 0===i?void 0:i.general})),n=null!==(i=null===l||void 0===l?void 0:l.depositLimitPageVariant)&&void 0!==i?i:t.uG.V1;return("object"===typeof n&&null!==n&&void 0!==n&&n.variant?n.variant:n)===t.uG.V2?(0,w.jsx)(C,(0,o.A)({},e)):(0,w.jsx)(N,(0,o.A)({},e))};var L=l(9334);const S=function(e){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("-1"===e||-1===e||e<0)return(null===i||void 0===i?void 0:i.permanent)||"permanent";return"".concat(e/30," ").concat((null===i||void 0===i?void 0:i.months)||"months")},k=function(e){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=arguments.length>2?arguments[2]:void 0;const o=(null===i||void 0===i?void 0:i.selfExclusionInfo)||"You are about to activate self
1-exclusion for <b>{duration} (till {endDate})</b>. During this period, you will not be able to play or deposit. This action cannot be reversed.";if("-1"===(null===e||void 0===e?void 0:e.timePeriod)||-1===(null===e||void 0===e?void 0:e.timePeriod)||(null===e||void 0===e?void 0:e.timePeriod)<0)return o.replace("{duration}",(null===i||void 0===i?void 0:i.permanent)||"permanent").replace(" (till {endDate})","");const n=new Date,s=parseInt(null===e||void 0===e?void 0:e.timePeriod)||0,t=new Date(n);t.setDate(t.getDate()+s);const a=l?l(t):t.toLocaleDateString(),d="".concat(s/30," ").concat((null===i||void 0===i?void 0:i.months)||"months");return o.replace("{duration}",d).replace("{endDate}",a)},I=function(e){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=arguments.length>2?arguments[2]:void 0;const o=(null===i||void 0===i?void 0:i.takeABreakInfo)||"You are about to take a break for <b>{duration} (till {endDate})</b>. During this period, you will not be able to play or deposit. This action cannot be reversed.",n=new Date,s=parseInt(null===e||void 0===e?void 0:e.takeABreak)||0,t=new Date(n);t.setDate(t.getDate()+s);const a=l?l(t):t.toLocaleDateString(),d=null===e||void 0===e?void 0:e.takeABreak,r="".concat(d," ").concat((null===i||void 0===i?void 0:i.days)||"Days");return o.replace("{duration}",r).replace("{endDate}",a)};var E=l(70804);const T=()=>{const{languageData:e}=(0,s.d4)((e=>e.language));return{languageData:e,handleTakeABreak:(e,i,l,n,s)=>{l(i.TAKE_A_BREAK),n((i=>(0,o.A)((0,o.A)({},i),{},{type:"".concat(null===s||void 0===s?void 0:s.takeABreak),value:"".concat(null===e||void 0===e?void 0:e.takeABreak," ").concat(null===s||void 0===s?void 0:s.days),info:(0,E.Ay)(I(e,s,h.zM)),showFooter:!0,graphic:"confirm-take-a-break"})))}}},B=e=>{let{limitFormType:i,setActiveLimitConfirmationForm:l,setConfirmMsg:n,heading:s,instructionText:t,submitButtonVariant:a,formClassName:d,showDisclaimer:r=!1,placeholderText:v,descriptionText:m}=e;const h={containerClassName:"custom-form-group",fieldClassName:"form-control custom-input"},{languageData:p,handleTakeABreak:x}=T();return(0,w.jsx)(u.l1,{initialValues:{takeABreak:""},validationSchema:g(p),onSubmit:e=>{x(e,i,l,n,p)},children:e=>{var i;return(0,w.jsxs)(c.A,{className:d,children:[s&&(0,w.jsx)("div",{className:r?"period-heading":"limit-heading",children:s}),t&&(0,w.jsx)("p",{className:"period-instruction",children:t}),(0,w.jsxs)("div",{className:r?"break-period-section":"form-group",children:[m&&(0,w.jsx)("label",{className:"custom-label",htmlFor:"takeABreak",children:m}),(0,w.jsxs)("div",{className:r?"period-input-wrapper":"account-limit-body",children:[(0,w.jsxs)("div",{className:"form-group-wrapper",children:[(0,w.jsx)(L.A,(0,o.A)((0,o.A)({type:"number",name:"takeABreak",control:"input",placeholder:v||(null===p||void 0===p?void 0:p.days)},h),{},{showLabel:!1})),!r&&(0,w.jsxs)("div",{className:"time-input-label",children:[" ",null===p||void 0===p?void 0:p.days]}),r&&(0,w.jsx)("div",{className:"time-input-label",children:(0,w.jsx)("p",{className:"time-input-label-text",children:(null===p||void 0===p?void 0:p.days)||"Days"})})]}),(0,w.jsx)("div",{className:r?"take-a-break-button-container":"btn-container",children:(0,w.jsx)(b.Ay,{variant:a,type:"submit",size:r?void 0:"sm",onClick:e.handleSubmit,disabled:r&&!(null!==(i=e.values)&&void 0!==i&&i.takeABreak),children:(0,w.jsx)("span",{children:null===p||void 0===p?void 0:p.takeABreak})})})]})]}),r&&(0,w.jsx)("div",{className:"take-a-break-disclaimer",children:(0,w.jsx)("p",{className:"take-a-break-disclaimer-text",children:(null===p||void 0===p?void 0:p.takeABreakDisclaimer)||"You will regain full access automatically after the selected period ends. After the limit is applied, it can be adjusted only after at least 24 hours have passed."})})]})}})},P=e=>{let{limitFormType:i,setActiveLimitConfirmationForm:l=()=>{},setConfirmMsg:o=()=>{},languageData:n={}}=e;return(0,w.jsx)(B,{limitFormType:i,setActiveLimitConfirmationForm:l,setConfirmMsg:o,heading:null===n||void 0===n?void 0:n.takeABreak,submitButtonVariant:f.Vt.PRIMARY,formClassName:"limits-block take-a-break",descriptionText:(null===n||void 0===n?void 0:n.takeABreakDescription)||"Take A Break description",placeholderText:null===n||void 0===n?void 0:n.days})},F=e=>{let{limitFormType:i,setActiveLimitConfirmationForm:l=()=>{},setConfirmMsg:o=()=>{},languageData:n={},setShowInput:s=()=>{}}=e;const{languageData:t}=T(),a=n||t||{};return(0,w.jsx)("div",{className:"take-a-break-v2",children:(0,w.jsxs)("div",{className:"take-a-break-container",children:[(0,w.jsxs)("div",{className:"take-a-break-intro",children:[(0,w.jsx)("h2",{className:"take-a-break-heading",children:(null===a||void 0===a?void 0:a.takeABreak)||"Take a Break"}),(0,w.jsx)("p",{className:"take-a-break-intro-text",children:(null===a||void 0===a?void 0:a.takeABreakIntroPrimary)||"At Vibebet, we encourage players to stay in control and play responsibly. If you feel the need to pause, you can choose to Take a Break from gameplay for a short period of time."}),(0,w.jsx)("p",{className:"take-a-break-intro-text",children:(null===a||void 0===a?void 0:a.takeABreakIntroSecondary)||"Taking a break temporarily limits access to betting and games, helping you step away without permanently restricting your account."})]}),(0,w.jsxs)("div",{className:"take-a-break-info",children:[(0,w.jsxs)("div",{className:"info-item",children:[(0,w.jsx)("div",{className:"info-icon",children:(0,w.jsx)(A.A,{name:"self-exclusion-1",width:"32px",height:"32px"})}),(0,w.jsx)("p",{className:"info-text",children:(null===a||void 0===a?void 0:a.takeABreakRestrictionPrimary)||"You will not be able to place bets or play games"})]}),(0,w.jsx)("div",{className:"divider"}),(0,w.jsxs)("div",{className:"info-item",children:[(0,w.jsx)("div",{className:"info-icon",children:(0,w.jsx)(A.A,{name:"self-exclusion-2",width:"32px",height:"32px"})}),(0,w.jsx)("p",{className:"info-text",children:(null===a||void 0===a?void 0:a.takeABreakRestrictionSecondary)||"You can log in and withdraw any available balance"})]})]}),(0,w.jsx)("div",{className:"divider"}),(0,w.jsx)(B,{limitFormType:i,setActiveLimitConfirmationForm:l,setConfirmMsg:o,heading:(null===a||void 0===a?void 0:a.breakPeriod)||"Break Period",instructionText:(null===a||void 0===a?void 0:a.breakPeriodInstruction)||"Please enter how long you would like your break to apply:",submitButtonVariant:f.Vt.SECONDARY,formClassName:"take-a-break-form",showDisclaimer:!0,placeholderText:(null===a||void 0===a?void 0:a.enterDays)||"Enter the amount of days"})]})})},R=e=>{var i;const l=(0,s.d4)((e=>{var i;return null===(i=e.uiConfig)||void 0===i?void 0:i.general})),n=null!==(i=null===l||void 0===l?void 0:l.takeABreakPageVariant)&&void 0!==i?i:t.NL.V1;return("object"===typeof n&&null!==n&&void 0!==n&&n.variant?n.variant:n)===t.NL.V2?(0,w.jsx)(F,(0,o.A)({},e)):(0,w.jsx)(P,(0,o.A)({},e))},M=()=>{var e;const{languageData:i}=(0,s.d4)((e=>e.language)),l=(0,s.d4)((e=>{var i;return null===(i=e.uiConfig)||void 0===i?void 0:i.general})),t=null!==(e=null===l||void 0===l?void 0:l.selfExclusionMonthOptions)&&void 0!==e?e:[1,3,6];return{monthOptions:(0,n.useMemo)((()=>function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[1,3,6]).map((i=>({value:"".concat(i),label:1===i?"1 ".concat((null===e||void 0===e?void 0:e.month)||"month"):"".concat(i," ").concat((null===e||void 0===e?void 0:e.months)||"months")})))}(i,t)),[i]),languageData:i,handleSelfExclusion:(e,l,n,s)=>{n(l.SELF_EXCLUSION),s((l=>(0,o.A)((0,o.A)({},l),{},{type:"".concat((null===i||void 0===i?void 0:i.confirmSelfExclusion)||"Confirm Self-Exclusion"),value:S(null===e||void 0===e?void 0:e.timePeriod,i),reset:!1,portal:null===e||void 0===e?void 0:e.portal,timePeriod:null===e||void 0===e?void 0:e.timePeriod,info:(0,E.Ay)(k(e,i,h.zM)),showFooter:!0,graphic:"confirm-self-exclusion"})))},prepareFormValuesForSubmission:e=>{const{timePeriod:i}=e;return(0,o.A)((0,o.A)({},e),{},{timePeriod:(l=i,l<0?l:30*l)});var l}}};var O=l(68353),V=l(54232);const U=e=>{let{commonProps:i,values:l,setFieldValue:n,validateField:s,hasError:t,monthOptions:a,languageData:d,placeholderTextProp:r}=e;const u=a.find((e=>e.value===String(null===l||void 0===l?void 0:l.timePeriod))),c=r||(null===d||void 0===d?void 0:d.select)||"Select";return(0,w.jsx)(L.A,(0,o.A)((0,o.A)({name:"timePeriod"},i),{},{showLabel:!1,children:(0,w.jsxs)(O.A,{className:"icon-right",id:"timePeriod",children:[(0,w.jsxs)(O.A.Toggle,{id:"dropdown-basic",as:V.A,hasError:t,children:[(0,w.jsx)("span",{children:u?u.label:c}),(0,w.jsx)(A.A,{name:"drop-arrow",className:"drop-arrow-icon"})]}),(0,w.jsx)(O.A.Menu,{children:(0,w.jsx)("div",{className:"scrollDropdown",children:a.map((e=>(0,w.jsx)(O.A.Item,{onClick:async()=>{await n("timePeriod",e.value),s("timePeriod")},children:e.label},e.value)))})})]})}))},_=e=>{let{limitFormType:i,setActiveLimitConfirmationForm:l,setConfirmMsg:o,showPermanentOption:n=!1,isV1Layout:s=!1,heading:t,submitButtonText:a,submitButtonVariant:d,instructionText:r,formClassName:v,periodSelectorPlaceholder:m}=e;const h={containerClassName:"custom-form-group",fieldClassName:"form-control custom-input"},{monthOptions:p,languageData:x,handleSelfExclusion:g,prepareFormValuesForSubmission:j}=M();return(0,w.jsx)(u.l1,{initialValues:{timePeriod:"",portal:"current",selfExclusionType:"custom"},validationSchema:y(x),onSubmit:e=>{const n=j(e);g(n,i,l,o)},children:e=>{let{values:i,handleSubmit:l,setFieldValue:o,validateField:u,errors:g,touched:y}=e;
1const j=(null===g||void 0===g?void 0:g.timePeriod)&&(null===y||void 0===y?void 0:y.timePeriod);return(0,w.jsxs)(c.A,{className:v,children:[t&&(0,w.jsx)("div",{className:s?"limit-heading":"period-heading",children:t}),n&&(0,w.jsxs)("div",{className:"limit-duration",children:[(0,w.jsx)("span",{children:"".concat((null===x||void 0===x?void 0:x.duration)||"Duration",":")}),(0,w.jsxs)("div",{className:"self-exclusion-type-container",children:[(0,w.jsxs)("label",{htmlFor:"customCheckbox",className:"radio-btn-self-exclusion",children:[(null===x||void 0===x?void 0:x.custom)||"Custom",(0,w.jsx)("input",{type:"radio",id:"customCheckbox",name:"selfExclusionType",value:"custom",onChange:e=>{var i;null!==e&&void 0!==e&&null!==(i=e.target)&&void 0!==i&&i.checked&&(o("selfExclusionType","custom"),o("timePeriod",""))},defaultChecked:"custom"===i.selfExclusionType}),(0,w.jsx)(A.A,{name:"custom"===i.selfExclusionType?"radio-active":"radio-inactive",width:"auto"})]}),(0,w.jsxs)("label",{htmlFor:"permanentCheckbox",className:"radio-btn-self-exclusion",children:[(null===x||void 0===x?void 0:x.permanent)||"Permanent",(0,w.jsx)("input",{type:"radio",id:"permanentCheckbox",name:"selfExclusionType",value:"permanent",onChange:e=>{var i;null!==e&&void 0!==e&&null!==(i=e.target)&&void 0!==i&&i.checked&&(o("selfExclusionType","permanent"),o("timePeriod","-1"))},defaultChecked:"permanent"===i.selfExclusionType}),(0,w.jsx)(A.A,{name:"permanent"===i.selfExclusionType?"radio-active":"radio-inactive",width:"auto"})]})]})]}),!s&&r&&(0,w.jsx)("p",{className:"period-instruction",children:r}),(0,w.jsxs)("div",{className:s?"form-group":"",children:[s&&"custom"===i.selfExclusionType&&(0,w.jsx)("label",{className:"custom-label",htmlFor:"timePeriod",children:(null===x||void 0===x?void 0:x.selfExclusionDescription)||"Self Exclusion description"}),(0,w.jsxs)("div",{className:s?"account-limit-body":"self-exclusion-period-wrapper",children:[(0,w.jsx)("div",{className:s?"form-group-wrapper":"period-select-wrapper",children:"custom"===i.selfExclusionType&&(0,w.jsx)(U,{commonProps:h,values:i,setFieldValue:o,validateField:u,hasError:j,monthOptions:p,languageData:x,placeholderTextProp:m})}),(0,w.jsx)("div",{className:s?"btn-container":"self-exclusion-button-container",children:(0,w.jsx)(b.Ay,{variant:d,size:s?"sm":void 0,type:"submit",onClick:l,disabled:!s&&!(null!==i&&void 0!==i&&i.timePeriod),children:(0,w.jsx)("span",{children:a})})})]})]})]})}})},G=e=>{let{limitFormType:i,setActiveLimitConfirmationForm:l,setConfirmMsg:o=()=>{}}=e;const{languageData:n}=(0,s.d4)((e=>e.language));return(0,w.jsx)(_,{limitFormType:i,setActiveLimitConfirmationForm:l,setConfirmMsg:o,showPermanentOption:!1,isV1Layout:!0,heading:null===n||void 0===n?void 0:n.selfExclusion,submitButtonText:null===n||void 0===n?void 0:n.selfExclusion,submitButtonVariant:f.Vt.PRIMARY,formClassName:"limits-block take-a-break"})},W=e=>{let{limitFormType:i,setActiveLimitConfirmationForm:l,setConfirmMsg:o=()=>{}}=e;const{languageData:n}=M();return(0,w.jsx)("div",{className:"self-exclusion-v2",children:(0,w.jsxs)("div",{className:"self-exclusion-container",children:[(0,w.jsxs)("div",{className:"self-exclusion-intro",children:[(0,w.jsx)("h2",{className:"self-exclusion-heading",children:(null===n||void 0===n?void 0:n.selfExclusion)||"Self Exclusion"}),(0,w.jsx)("p",{className:"self-exclusion-intro-text",children:(null===n||void 0===n?void 0:n.selfExclusionIntroPrimary)||"At Vibebet, we believe gambling should always remain safe and enjoyable. If you feel the need to take a break, you can choose to activate Self-Exclusion on your account."}),(0,w.jsx)("p",{className:"self-exclusion-intro-text",children:(null===n||void 0===n?void 0:n.selfExclusionIntroSecondary)||"At Vibebet, we believe gambling should always remain safe and enjoyable. If you feel the need to take a break, you can choose to activate Self-Exclusion on your account. Self-Exclusion means your Vibebet account will be temporarily restricted for the selected period. During this time:"})]}),(0,w.jsxs)("div",{className:"self-exclusion-restrictions",children:[(0,w.jsxs)("div",{className:"restriction-item",children:[(0,w.jsx)("div",{className:"restriction-icon",children:(0,w.jsx)(A.A,{name:"self-exclusion-1",width:"24px",height:"24px"})}),(0,w.jsx)("p",{className:"restriction-text",children:(null===n||void 0===n?void 0:n.selfExclusionRestrictionPrimary)||"You will not be able to place bets or play games"})]}),(0,w.jsx)("div",{className:"divider"}),(0,w.jsxs)("div",{className:"restriction-item",children:[(0,w.jsx)("div",{className:"restriction-icon",children:(0,w.jsx)(A.A,{name:"self-exclusion-2",width:"24px",height:"24px"})}),(0,w.jsx)("p",{className:"restriction-text",children:(null===n||void 0===n?void 0:n.selfExclusionRestrictionSecondary)||"You will not be able to make deposits"})]})]}),(0,w.jsxs)("div",{className:"self-exclusion-notes",children:[null!==n&&void 0!==n&&n.selfExclusionNotePrimary?(0,E.Ay)(null===n||void 0===n?void 0:n.selfExclusionNotePrimary):(0,w.jsxs)("p",{children:["Please note: Self-Exclusion cannot be reversed before the chosen period ends. Once the self-exclusion period has fully expired, you may contact our",(0,w.jsx)("a",{href:"",className:"support-link",children:(null===n||void 0===n?void 0:n.supportTeam)||"Support Team"}),", who will review your request and assist you with the next steps."]}),(0,w.jsx)("p",{children:(null===n||void 0===n?void 0:n.selfExclusionNoteSecondary)||"Many players choose self-exclusion as a proactive way to stay in control and avoid unnecessary temptation. We encourage responsible play at all times."})]}),(0,w.jsx)("div",{className:"divider"}),(0,w.jsx)(_,{limitFormType:i,setActiveLimitConfirmationForm:l,setConfirmMsg:o,showPermanentOption:!1,heading:(null===n||void 0===n?void 0:n.selfExclusionPeriod)||"Self-Exclusion Period",submitButtonText:(null===n||void 0===n?void 0:n.confirmSelfExclusion)||"Confirm Self Exclusion",submitButtonVariant:f.Vt.SECONDARY,instructionText:(null===n||void 0===n?void 0:n.selfExclusionPeriodInstruction)||"Please select how long you would like self-exclusion to apply to your account",formClassName:"self-exclusion-form",periodSelectorPlaceholder:"".concat((null===n||void 0===n?void 0:n.selectPeriod)||"Select Period","*")})]})})},Y=e=>{var i;const l=(0,s.d4)((e=>{var i;return null===(i=e.uiConfig)||void 0===i?void 0:i.general})),n=null!==(i=null===l||void 0===l?void 0:l.selfExclusionPageVariant)&&void 0!==i?i:t.$r.V1;return("object"===typeof n&&null!==n&&void 0!==n&&n.variant?n.variant:n)===t.$r.V2?(0,w.jsx)(W,(0,o.A)({},e)):(0,w.jsx)(G,(0,o.A)({},e))};var q=l(44268),z=l(1599),H=l(73020);const K=e=>{var i,l;const{showModal:o,confirmMsg:n,loading:s,isPasswordCorrect:t,languageData:a,password:d,handleSubmit:r=()=>{},handleConfirm:c=()=>{},handleHide:v=()=>{},handleClose:m=()=>{}}=e;return(0,w.jsxs)(q.A,{show:o,onHide:v,size:"md","aria-labelledby":"
1contained-modal-title-vcenter",className:"generic-modal-layout limits-modal",children:[(0,w.jsxs)(q.A.Header,{className:"d-flex",children:[(0,w.jsx)("h5",{children:null===n||void 0===n?void 0:n.type}),(0,w.jsx)(b.Ay,{variant:f.Vt.CONTENT_ONLY,onClick:m,className:"limit-modal-close-button",children:(0,w.jsx)(A.A,{name:"circle-xmark",width:"30",height:"30"})})]}),(0,w.jsxs)(q.A.Body,{children:[null===n||void 0===n||null===(i=n.value)||void 0===i||null===(l=i.split(","))||void 0===l?void 0:l.map(((e,i)=>{var l,o;return(0,w.jsx)("div",{className:"limit-value",children:e&&e.includes(":")?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsxs)("span",{children:[null===(l=e.split(":"))||void 0===l?void 0:l[0],":"]})," ",(0,w.jsx)("span",{children:null===(o=e.split(":"))||void 0===o?void 0:o[1]})]}):e},"limit-modal ".concat(i))})),(0,w.jsx)("span",{children:null===n||void 0===n?void 0:n.info})]}),(0,w.jsx)(q.A.Footer,{className:"border-0 align-items-baseline",children:(0,w.jsx)(u.l1,{initialValues:{password:""},onSubmit:r,children:e=>{var i;return(0,w.jsxs)(u.lV,{className:"w-100",children:[(null===n||void 0===n?void 0:n.showFooter)&&(0,w.jsxs)("div",{className:"custom-form-group",children:[(0,w.jsx)(H.A,{name:"password",containerClassName:"custom-form-group",fieldClassName:"form-control custom-input",placeholder:null===a||void 0===a?void 0:a.passwordPlaceholder,formik:e,isAccountInfo:!1,showInfoIcon:!1}),!1===t&&""!==d&&(0,w.jsx)("span",{className:"text-danger mt-1 br-1",children:null===a||void 0===a?void 0:a.incorrectPassword})]}),(null===n||void 0===n?void 0:n.showFooter)&&(0,w.jsx)("div",{children:(0,w.jsx)(z.h,{formik:e,loading:s,spinner:!0,text:null===a||void 0===a?void 0:a.signupConfirm,disabled:""===(null===(i=e.values)||void 0===i?void 0:i.password)})}),!(null!==n&&void 0!==n&&n.showFooter)&&(0,w.jsx)(b.Ay,{variant:f.Vt.PRIMARY,onClick:c,children:null===a||void 0===a?void 0:a.ok})]})}})})]})};var Z=l(48063),Q=l(57941);const J=e=>{const{showModal:i,confirmMsg:l={},loading:o,isPasswordCorrect:t,languageData:a,handleSubmit:d=()=>{},handleHide:r=()=>{}}=e,c=(0,s.wA)(),v=(0,n.useRef)((()=>{}));return(0,n.useEffect)((()=>{if(!i)return;const e=(null===Q.lx||void 0===Q.lx?void 0:Q.lx.LIMIT_CONFIRMATION_MODAL)||"LIMIT_CONFIRMATION_MODAL",n=()=>(0,w.jsxs)("div",{className:"limits-modal-body",children:[(null===l||void 0===l?void 0:l.info)&&(0,w.jsx)("div",{className:"limit-info mt-2",children:l.info}),(null===l||void 0===l?void 0:l.showFooter)&&(0,w.jsx)("div",{className:"mt-3",children:(0,w.jsx)(u.l1,{initialValues:{password:""},onSubmit:(e,i)=>{Promise.resolve(d(e,i)).finally((()=>{i.setSubmitting(!1)}))},children:e=>{var i,l;return v.current=()=>e.submitForm(),(0,w.jsxs)(u.lV,{className:"limit-form-modal",children:[(0,w.jsxs)("div",{className:"custom-form-group",children:[(0,w.jsx)(H.A,{formik:e,name:"password",lable:"confirmPassword",fieldClassName:"form-control custom-input",placeholder:null===a||void 0===a?void 0:a.passwordPlaceholder,isAccountInfo:!1,showInfoIcon:!1}),!1===t&&(null===(i=e.values)||void 0===i?void 0:i.password)&&(0,w.jsx)("span",{className:"text-danger mt-1 br-1",children:null===a||void 0===a?void 0:a.incorrectPassword})]}),(0,w.jsx)("div",{className:"mt-2",children:(0,w.jsx)(z.h,{formik:e,loading:o,spinner:!0,buttonVariant:f.Vt.SECONDARY,text:null===a||void 0===a?void 0:a.signupConfirm,disabled:!(null!==(l=e.values)&&void 0!==l&&l.password)})})]})}})})]});return c((0,Z.qf)({name:e,title:(null===l||void 0===l?void 0:l.type)||(null===a||void 0===a?void 0:a.confirmation)||"Confirmation",body:(0,w.jsx)(n,{}),graphic:(null===l||void 0===l?void 0:l.graphic)&&(0,w.jsx)(A.A,{name:null===l||void 0===l?void 0:l.graphic,height:110,width:110}),onClose:()=>{c((0,Z.Oo)(e));try{r()}catch(i){}}})),()=>{c((0,Z.Oo)(e)),v.current=()=>{}}}),[i,null===l||void 0===l?void 0:l.value,null===l||void 0===l?void 0:l.type,null===l||void 0===l?void 0:l.showFooter,null===l||void 0===l?void 0:l.graphic,a,o,t]),null},X=e=>{var i;const l=(0,s.d4)((e=>{var i;return null===(i=e.uiConfig)||void 0===i?void 0:i.general})),n=null!==(i=null===l||void 0===l?void 0:l.limitConfirmationModal)&&void 0!==i?i:t.RE.V1;return("object"===typeof n&&null!==n&&void 0!==n&&n.variant?n.variant:n)===t.RE.V2?(0,w.jsx)(J,(0,o.A)({},e)):(0,w.jsx)(K,(0,o.A)({},e))};var $=l(13564),ee=l(41635),ie=l(95557),le=l(83397);
1const oe={WAGER_LIMIT:"wagerLimit",LOSS_LIMIT:"lossLimit",DEPOSIT_LIMIT:"depositLimit",TAKE_A_BREAK:"takeABreak",SESSION_LIMIT:"sessionLimit",SELF_EXCLUSION:"selfExclusion",GAME_PLAY_LIMIT:"gamePlayLimit"},ne=()=>{var e,i;const l=(0,s.wA)(),t=(0,s.d4)((e=>{var i;return null===e||void 0===e||null===(i=e.uiConfig)||void 0===i?void 0:i.general})),{languageData:u}=(0,s.d4)((e=>e.language)),{userDetails:c,loading:v}=(0,s.d4)((e=>e.user)),{isPasswordCorrect:m,loading:h}=(0,s.d4)((e=>e.limits)),p=(0,$.Zp)(),[x,g]=(0,n.useState)({type:"",value:"",timePeriod:"",reset:"",info:"",showFooter:!1}),[y,b]=(0,n.useState)(""),[f,N]=(0,n.useState)({wagerInput:!1,lossInput:!1,depositInput:!1}),[A,C]=(0,n.useState)({wagerCheckbox:!1,lossCheckbox:!1,depositCheckbox:!1});(0,n.useEffect)((()=>{m&&(S(""),b(""))}),[m]),(0,n.useEffect)((()=>{v||l((0,ee.gQ)({userId:(0,ie.Gq)("userId")}))}),[v]),(0,n.useEffect)((()=>{N((e=>({wagerInput:!1,lossInput:!1,depositInput:!1}))),C((e=>({wagerCheckbox:!1,lossCheckbox:!1,depositCheckbox:!1})))}),[null===c||void 0===c||null===(e=c.userLimit)||void 0===e?void 0:e.updatedAt]);const[L,S]=(0,n.useState)(""),k=(0,w.jsx)("div",{children:null===u||void 0===u?void 0:u.limit24Reset});return v?(0,w.jsx)(r.A,{}):(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(le.A,{title:null===u||void 0===u?void 0:u.headerLimits,infoIconText:k,onReload:()=>l((0,ee.C7)()),showReload:!0}),!v&&(0,w.jsxs)("div",{className:"limits",children:[(null===c||void 0===c?void 0:c.userLimit)&&(0,w.jsx)("div",{className:"user-account-block",children:(0,w.jsx)(D,{userDetails:c,showCheckbox:A,showInput:f,setShowCheckbox:C,setShowInput:N,limitFormType:oe,setActiveLimitConfirmationForm:S,handleInfo:e=>{let{formValues:i,type:l,checkboxType:n}=e;return null!==A&&void 0!==A&&A[n]?(g((e=>(0,o.A)((0,o.A)({},e),{},{value:"".concat(null!==i&&void 0!==i&&i["daily".concat(l,"Reset")]?"".concat(null===u||void 0===u?void 0:u.daily,": ").concat(j.L[(null===c||void 0===c?void 0:c.currencyCode)||"EUR"]," ").concat(null===i||void 0===i?void 0:i["daily".concat(l,"Limit")]):""," ").concat(null!==i&&void 0!==i&&i["weekly".concat(l,"Reset")]?",".concat(null===u||void 0===u?void 0:u.weekly,": ").concat(j.L[(null===c||void 0===c?void 0:c.currencyCode)||"EUR"]," ").concat(null===i||void 0===i?void 0:i["weekly".concat(l,"Limit")]):""," ").concat(null!==i&&void 0!==i&&i["monthly".concat(l,"Reset")]?",".concat(null===u||void 0===u?void 0:u.monthly,": ").concat(j.L[(null===c||void 0===c?void 0:c.currencyCode)||"EUR"]," ").concat(null===i||void 0===i?void 0:i["monthly".concat(l,"Limit")]):""),showFooter:!0}))),null===u||void 0===u?void 0:u.limitRemoved):null===u||void 0===u?void 0:u.limitSet24Hrs},languageData:u,setConfirmMsg:g})}),(null===t||void 0===t?void 0:t.takeABreak)&&window.location.host.includes("shinywilds.com")&&(0,w.jsx)("div",{className:"user-account-block",children:(0,w.jsx)(R,{setShowInput:N,limitFormType:oe,setConfirmMsg:g,languageData:u,setActiveLimitConfirmationForm:S})}),(null===t||void 0===t?void 0:t.selfExclusion)&&window.location.host.includes("shinywilds.com")&&(0,w.jsx)("div",{className:"user-account-block",children:(0,w.jsx)(Y,{limitFormType:oe,setActiveLimitConfirmationForm:S,setConfirmMsg:g})})]},null===c||void 0===c||null===(i=c.userLimit)||void 0===i?void 0:i.updatedAt),(0,w.jsx)(X,{showModal:!!L,confirmMsg:x,loading:h,isPasswordCorrect:m,languageData:u,password:y,handleSubmit:e=>{const i=(null===e||void 0===e?void 0:e.password)||"";switch(L){case oe.DEPOSIT_LIMIT:l((0,d.yj)({data:{dailyDepositLimit:null===x||void 0===x?void 0:x.dailyDepositLimit,weeklyDepositLimit:null===x||void 0===x?void 0:x.weeklyDepositLimit,monthlyDepositLimit:null===x||void 0===x?void 0:x.monthlyDepositLimit,reset:null===x||void 0===x?void 0:x.reset,password:a.Buffer.from(i).toString("base64")},navigate:p}));break;case oe.WAGER_LIMIT:l((0,d.Px)({data:{dailyBetLimit:null===x||void 0===x?void 0:x.dailyBetLimit,weeklyBetLimit:null===x||void 0===x?void 0:x.weeklyBetLimit,monthlyBetLimit:null===x||void 0===x?void 0:x.monthlyBetLimit,reset:null===x||void 0===x?void 0:x.reset,password:a.Buffer.from(i).toString("base64")}}));break;case oe.LOSS_LIMIT:l((0,d.xq)({data:{dailyLossLimit:null===x||void 0===x?void 0:x.dailyLossLimit,weeklyLossLimit:null===x||void 0===x?void 0:x.weeklyLossLimit,monthlyLossLimit:null===x||void 0===x?void 0:x.monthlyLossLimit,reset:null===x||void 0===x?void 0:x.reset,password:a.Buffer.from(i).toString("base64")}}));break;case oe.SESSION_LIMIT:var o;l((0,d.QP)({data:{timeLimit:parseInt(null===(o=(null===x||void 0===x?void 0:x.value).split(" "))||void 0===o?void 0:o[0]),reset:null===x||void 0===x?void 0:x.reset,password:a.Buffer.from(i).toString("base64")}}));break;case oe.TAKE_A_BREAK:var n;l((0,d.nd)({data:{type:"TAKE_A_BREAK",days:parseFloat(null===(n=(null===x||void 0===x?void 0:x.value).split(" "))||void 0===n?void 0:n[0]),portal:"current",password:a.Buffer.from(i).toString("base64")}}));break;case oe.SELF_EXCLUSION:l((0,d.nd)({data:{type:"SELF_EXCLUSION",days:parseInt(null===x||void 0===x?void 0:x.timePeriod),portal:null===x||void 0===x?void 0:x.portal,password:a.Buffer.from(i).toString("base64")}}));break;case oe.GAME_PLAY_LIMIT:l((0,d.eh)({data:{timePeriod:parseInt(null===x||void 0===x?void 0:x.timePeriod),password:a.Buffer.from(i).toString("base64")}}))}},handleHide:()=>{S(""),b(""),l((0,d.Vf)(null))},handleClose:()=>S(""),handleConfirm:()=>{S(""),b(""),l((0,d.Vf)(null))}})]})},se="depositLimit",te="takeABreak",ae="selfExclusion",de=()=>{const{languageData:e}=(0,s.d4)((e=>e.language)),i=(0,s.d4)((e=>{var i;return null===e||void 0===e||null===(i=e.uiConfig)||void 0===i?void 0:i.general}
1)),[l,o]=(0,n.useState)("depositLimit"),[t,a]=(0,n.useState)(!1),d=(0,n.useMemo)((()=>((e,i)=>{const l=[];return l.push({id:se,labelKey:(null===e||void 0===e?void 0:e.depositLimit)||"Deposit Limit"}),null!==i&&void 0!==i&&i.selfExclusion&&window.location.host.includes("shinywilds.com")&&l.push({id:ae,labelKey:(null===e||void 0===e?void 0:e.selfExclusion)||"Self Exclusion"}),null!==i&&void 0!==i&&i.takeABreak&&window.location.host.includes("shinywilds.com")&&l.push({id:te,labelKey:(null===e||void 0===e?void 0:e.takeABreak)||"Take a Break"}),l})(e,i)),[e,i]);return{activeSection:l,setActiveSection:o,isMobileDropdownOpen:t,setIsMobileDropdownOpen:a,handleSectionClick:e=>{o(e),a(!1)},handleMobileDropdownToggle:()=>{a(!t)},getActiveSectionLabel:()=>{const i=d.find((e=>e.id===l));return i?i.labelKey:(null===e||void 0===e?void 0:e.depositLimit)||"Deposit Limit"},limitSections:d,languageData:e}},re=()=>{const e=(0,s.wA)(),i=(0,$.Zp)();return{handleConfirm:(l,o,n)=>{const s=(null===l||void 0===l?void 0:l.password)||"",t=a.Buffer.from(s).toString("base64");switch(o){case oe.DEPOSIT_LIMIT:e((0,d.yj)({data:{dailyDepositLimit:null===n||void 0===n?void 0:n.dailyDepositLimit,weeklyDepositLimit:null===n||void 0===n?void 0:n.weeklyDepositLimit,monthlyDepositLimit:null===n||void 0===n?void 0:n.monthlyDepositLimit,reset:null===n||void 0===n?void 0:n.reset,password:t},navigate:i}));break;case oe.WAGER_LIMIT:e((0,d.Px)({data:{dailyBetLimit:null===n||void 0===n?void 0:n.dailyBetLimit,weeklyBetLimit:null===n||void 0===n?void 0:n.weeklyBetLimit,monthlyBetLimit:null===n||void 0===n?void 0:n.monthlyBetLimit,reset:null===n||void 0===n?void 0:n.reset,password:t}}));break;case oe.LOSS_LIMIT:e((0,d.xq)({data:{dailyLossLimit:null===n||void 0===n?void 0:n.dailyLossLimit,weeklyLossLimit:null===n||void 0===n?void 0:n.weeklyLossLimit,monthlyLossLimit:null===n||void 0===n?void 0:n.monthlyLossLimit,reset:null===n||void 0===n?void 0:n.reset,password:t}}));break;case oe.SESSION_LIMIT:var r;e((0,d.QP)({data:{timeLimit:parseInt(null===(r=(null===n||void 0===n?void 0:n.value).split(" "))||void 0===r?void 0:r[0]),reset:null===n||void 0===n?void 0:n.reset,password:t}}));break;case oe.TAKE_A_BREAK:var u;e((0,d.nd)({data:{type:"TAKE_A_BREAK",days:parseFloat(null===(u=(null===n||void 0===n?void 0:n.value).split(" "))||void 0===u?void 0:u[0]),portal:"current",password:t}}));break;case oe.SELF_EXCLUSION:e((0,d.nd)({data:{type:"SELF_EXCLUSION",days:parseInt(null===n||void 0===n?void 0:n.timePeriod),portal:null===n||void 0===n?void 0:n.portal,password:t}}));break;case oe.GAME_PLAY_LIMIT:e((0,d.eh)({data:{timePeriod:parseInt(null===n||void 0===n?void 0:n.timePeriod),password:t}}))}},LIMIT_FORM:oe}},ue=()=>{var e,i;const l=(0,s.wA)(),{languageData:t}=(0,s.d4)((e=>e.language)),{userDetails:a,loading:u}=(0,s.d4)((e=>e.user)),{isPasswordCorrect:c,loading:v}=(0,s.d4)((e=>e.limits)),{handleConfirm:m,LIMIT_FORM:h}=re(),[p,x]=(0,n.useState)({type:"",value:"",timePeriod:"",reset:"",info:"",showFooter:!1}),[g,y]=(0,n.useState)({wagerInput:!1,lossInput:!1,depositInput:!1}),[b,f]=(0,n.useState)({wagerCheckbox:!1,lossCheckbox:!1,depositCheckbox:!1});(0,n.useEffect)((()=>{c&&C("")}),[c]),(0,n.useEffect)((()=>{u||l((0,ee.gQ)({userId:(0,ie.Gq)("userId")}))}),[u]),(0,n.useEffect)((()=>{y((e=>({wagerInput:!1,lossInput:!1,depositInput:!1}))),f((()=>({wagerCheckbox:!1,lossCheckbox:!1,depositCheckbox:!1})))}),[null===a||void 0===a||null===(e=a.userLimit)||void 0===e?void 0:e.updatedAt]);const[N,C]=(0,n.useState)(""),L=e=>{let{formValues:i,type:l,checkboxType:n}=e;const s=(e=>{let{formValues:i,type:l,checkboxType:o,showCheckbox:n,languageData:s,userDetails:t,currencyCodeList:a}=e;if(null!==n&&void 0!==n&&n[o]){const e=null!==i&&void 0!==i&&i["daily".concat(l,"Reset")]?"".concat(null===s||void 0===s?void 0:s.daily,": ").concat(a[(null===t||void 0===t?void 0:t.currencyCode)||"EUR"]," ").concat(null===i||void 0===i?void 0:i["daily".concat(l,"Limit")]):"",o=null!==i&&void 0!==i&&i["weekly".concat(l,"Reset")]?",".concat(null===s||void 0===s?void 0:s.weekly,": ").concat(a[(null===t||void 0===t?void 0:t.currencyCode)||"EUR"]," ").concat(null===i||void 0===i?void 0:i["weekly".concat(l,"Limit")]):"",n=null!==i&&void 0!==i&&i["monthly".concat(l,"Reset")]?",".concat(null===s||void 0===s?void 0:s.monthly,": ").concat(a[(null===t||void 0===t?void 0:t.currencyCode)||"EUR"]," ").concat(null===i||void 0===i?void 0:i["monthly".concat(l,"Limit")]):"";return"".concat(e).concat(o).concat(n)}return null})({formValues:i,type:l,checkboxType:n,showCheckbox:b,languageData:t,userDetails:a,currencyCodeList:j.L});return s&&x((e=>(0,o.A)((0,o.A)({},e),{},{value:s,showFooter:!0}))),(e=>{let{checkboxType:i,showCheckbox:l,languageData:o}=e;return null!==l&&void 0!==l&&l[i]?null===o||void 0===o?void 0:o.limitRemoved:null===o||void 0===o?void 0:o.limitSet24Hrs})({checkboxType:n,showCheckbox:b,languageData:t})},{activeSection:S,handleSectionClick:k,handleMobileDropdownToggle:I,getActiveSectionLabel:E,limitSections:T,isMobileDropdownOpen:B}=de();return u?(0,w.jsx)(r.A,{}):(0,w.jsx)(w.Fragment,{children:(0,w.jsxs)("div",{className:"limits-page",children:[(0,w.jsx)("div",{className:"page-heading",children:(null===t||void 0===t?void 0:t.headerLimits)||"Limits"}),(0,w.jsxs)("div",{className:"limits-layout",children:[(0,w.jsx)("div",{className:"limits-sidebar desktop-only",children:(0,w.jsx)("div",{className:"limits-sidebar-container",children:T.map((e=>(0,w.jsx)("div",{className:"limits-section ".concat(e.id===S?"active":""),onClick:()=>k(e.id),children:(0,w.jsx)("div",{className:"limits-section-content",children:(0,w.jsxs)("div",{className:"limits-section-header",children:[(0,w.jsx)("div",{className:"limits-section-title",children:(0,w.jsx)("p",{className:"limits-section-text ".concat(e.id===S?"active":""),children:e.labelKey})}),e.id===S&&(0,w.jsx)("div",{className:"limits-section-arrow",children:(0,w.jsx)(A.A,{name:"chevron-right-icon",width:"16px",height:"16px"})})]})})},e.id)))})}),(0,w.jsxs)("div",{className:"mobile-dropdown mobile-only",children:[(0,w.jsxs)("div",{className:"mobile-dropdown-button",onClick:I,children:[(0,w.jsx)("p",{className:"mobile-dropdown-text",children:E()}),(0,w.jsx)(A.A,{name:"chevron-down",width:"18px",height:"18px",className:"mobile-dropdown-icon ".concat(B?"rotated":"")}
1)]}),B&&(0,w.jsx)("div",{className:"mobile-dropdown-menu",children:T.map(((e,i)=>(0,w.jsxs)("div",{children:[(0,w.jsxs)("div",{className:"mobile-dropdown-item ".concat(e.id===S?"active":""),onClick:()=>k(e.id),children:[(0,w.jsx)("p",{className:"mobile-dropdown-item-text ".concat(e.id===S?"active":""),children:e.labelKey}),(0,w.jsx)(A.A,{name:e.id===S?"filled-bordered-circle":"hollow-bordered-circle",width:"16px",height:"16px"})]}),i<T.length-1&&(0,w.jsx)("div",{className:"mobile-dropdown-divider"})]},e.id)))})]}),(0,w.jsx)("div",{className:"limits-content",children:!u&&(0,w.jsx)("div",{className:"limits-v2-wrapper",children:(()=>{var e;switch(S){case se:return u?null:(0,w.jsx)("div",{className:"deposit-limits-v2",children:null!==a&&void 0!==a&&a.userLimit?(0,w.jsx)(D,{userDetails:a,showCheckbox:b,showInput:g,setShowCheckbox:f,setShowInput:y,limitFormType:h,setActiveLimitConfirmationForm:C,handleInfo:L,languageData:t,setConfirmMsg:x}):null},null===a||void 0===a||null===(e=a.userLimit)||void 0===e?void 0:e.updatedAt);case te:return(0,w.jsx)(R,{setShowInput:y,limitFormType:h,setConfirmMsg:x,languageData:t,setActiveLimitConfirmationForm:C});case ae:return(0,w.jsx)(Y,{limitFormType:h,setActiveLimitConfirmationForm:C,setConfirmMsg:x});default:return null}})()},null===a||void 0===a||null===(i=a.userLimit)||void 0===i?void 0:i.updatedAt)})]}),(0,w.jsx)(X,{showModal:!!N,confirmMsg:p,loading:v,isPasswordCorrect:c,languageData:t,handleSubmit:e=>{m(e,N,p)},handleHide:()=>{C(""),l((0,d.Vf)(null))},handleClose:()=>C(""),handleConfirm:()=>{C(""),l((0,d.Vf)(null))}})]})})},ce=e=>{var i;const l=(0,s.d4)((e=>{var i;return null===(i=e.uiConfig)||void 0===i?void 0:i.general})),n=null!==(i=null===l||void 0===l?void 0:l.limitsPageVariant)&&void 0!==i?i:t.qs.V1;return("object"===typeof n&&null!==n&&void 0!==n&&n.variant?n.variant:n)===t.qs.V2?(0,w.jsx)(ue,(0,o.A)({},e)):(0,w.jsx)(ne,(0,o.A)({},e))}},54479:(e,i,l)=>{l.d(i,{A:()=>ie});var o=l(9950),n=l(93325),s=l(82569),t=l(13564),a=l(80010),d=l(5859),r=l(41635),u=l(85685),c=l(60770),v=l(44414);const m=()=>{const e=(0,t.Zp)(),[i,l]=(0,o.useState)("private-data"),[m,h]=(0,o.useState)(!1),{regFields:p,allCountries:x}=(0,s.d4)((e=>e.login)),{languages:g,selectedLanguageCode:y}=(0,s.d4)((e=>e.language)),{loading:j,userDetails:b}=(0,s.d4)((e=>e.user)),{languageData:f}=(0,s.d4)((e=>e.language)),w=(0,s.wA)(),[N,A]=(0,o.useState)(""),[C,D]=(0,o.useState)(""),[L,S]=(0,o.useState)({password:!1,confirmPassword:!1}),[k,I]=(0,o.useState)(!1),E=(0,o.useRef)(),T=p&&Object.keys(p).map(((e,i)=>!1!==p[e]&&e)).filter((e=>!1!==e&&e)),B=T&&T.reduce(((e,i)=>(e[i]="","address"===i&&(e.zipCode="",e.city=""),"phone"===i&&(e.phoneCode=""),"preferredLanguage"===i&&(e.preferredLanguage=""),"newsLetter"===i&&(e.newsLetter="false"),"sms"===i&&(e.sms="false"),e)),{});if(b&&B){for(const e in B)B[e]=(null===b||void 0===b?void 0:b[e])||"";B.newsLetter=(null===b||void 0===b?void 0:b.newsLetter)||"false",B.sms=(null===b||void 0===b?void 0:b.sms)||"false"}(0,o.useEffect)((()=>{w((0,d.Ne)()),w((0,r.C7)())}),[]),(0,o.useEffect)((()=>{w((0,d.i8)())}),[y]),(0,o.useEffect)((()=>{var e;null!==b&&void 0!==b&&b.phone&&A(""+(null===b||void 0===b||null===(e=b.phoneCode)||void 0===e?void 0:e.substring(1))+b.phone)}),[b]);const P=i=>w((0,r.$x)({initialState:i,navigate:e}));return{userDetails:b,regFields:p,toggleViewPassword:L,loading:j,allCountries:x,completePhone:N,initialState:B,isChecked:k,languages:g,languageData:f,setIsChecked:I,setCompletePhone:A,setToggleViewPassword:S,handleInitialState:(e,i)=>{for(const l in B)B[l]=e[l];B.newsLetter=(null===e||void 0===e?void 0:e.newsLetter)||"false",B.sms=(null===e||void 0===e?void 0:e.sms)||"false",B.newsletterAndSms=(null===e||void 0===e?void 0:e.newsletterAndSms)||"false";for(const l in B)0!==p[l]&&""!==B[l]&&null!==B[l]&&void 0!==B[l]||(delete B[l],k||delete B.password);let o=null;if(e.password&&(o=n.Buffer.from(e.password).toString("base64"),B.password=o,B.confirmPassword&&(B.confirmPassword=o)),B.dateOfBirth&&(B.dateOfBirth=(0,u.Yo)(B.dateOfBirth)),(2===(null===p||void 0===p?void 0:p.newsLetter)&&"false"===B.newsLetter||2===(null===p||void 0===p?void 0:p.sms)&&"false"===B.sms||2===(null===p||void 0===p?void 0:p.newsletterAndSms)&&"false"===B.newsletterAndSms)&&i===c.I0.SUBSCRIPTION){var s;(0,a.o)("".concat((null===f||void 0===f?void 0:f.pleaseAccept)||"Please accept"," ").concat((null===f||void 0===f||null===(s=f.modeOfComm)||void 0===s?void 0:s.replace("and",""))||"subscriptions"))}else{const e={};i===c.I0.CHANGE_PASSWORD&&(e.password=B.password,e.confirmPassword=B.confirmPassword,e.type=c.AP.PASSWORD),i===c.I0.SUBSCRIPTION&&(e.sms=B.sms,e.newsLetter=B.newsLetter,e.newsletterAndSms=B.newsletterAndSms,e.type=c.AP.SUBSCRIPTION,l(c.I0.PRIVATE_DATA)),P(e)}},removeImage:()=>{null!==b&&void 0!==b&&b.profileImage?w((0,r.hU)()):(0,a.o)(null===f||void 0===f?void 0:f.noProfileImage,"error")},handleFileChange:e=>"image/png"!==(null===e||void 0===e?void 0:e.type)&&"image/jpeg"!==(null===e||void 0===e?void 0:e.type)?(0,a.o)(null===f||void 0===f?void 0:f.formatRequired,"error"):void 0===e?(0,a.o)(null===f||void 0===f?void 0:f.chooseImage,"error"):(null===e||void 0===e?void 0:e.size)>3145728?(0,a.o)(null===f||void 0===f?void 0:f.imageSize3MB,"error"):void(e&&w((0,r.c8)({image:e}))),search:C,setSearch:D,selectedTab:i,setSelectedTab:l,setPhoneError:h,phoneError:m,showStar:e=>2===e&&(0,v.jsx)("span",{className:"text-danger",children:"\xa0*\xa0"}),formRef:E}},h=o.createContext(),p=e=>{let{children:i}=e;const l=m();return(0,v.jsx)(h.Provider,{value:l,children:i})};var x=l(89379),g=l(15935),y=l(86615),j=l(43939),b=l(60666);l(77633),l(29491);const f=(e,i)=>b.Ik().shape({password:b.Yj().min(8,null===e||void 0===e?void 0:e.min8Chars).max(50,null===e||void 0===e?void 0:e.max50Characters).matches(/[a-z]/,null===e||void 0===e?void 0:e.mustHaveLowercase).matches(/[A-Z]/,null===e||void 0===e?void 0:e.mustHaveUppercase).matches(/\d/,null===e||void 0===e?void 0:e.mustHaveNumber).matches(/[^a-zA-Z0-9]/,null===e||void 0===e?void 0:e.mustHaveSpecialChar).matches(/^\S*$/,null===e||void 0===e?void 0:e.noSpacesAllowed).required(null===e||void 0===e?void 0:e.passwordRequired).test("password-not-match-email-or-username",(null===e||void 0===e?void 0:e.passwordCannotMatchEmailOrUsername)||"Password cannot match email or username",(function(e){const{email:l,username:o}=i;if(!e)return!0;const n=e.toLowerCase(),s=(null===l||void 0===l?void 0:l.toLowerCase())||"",t=(null===o||void 0===o?void 0:o.toLowerCase())||"";return n!==s&&n!==t})),confirmPassword:b.Yj().required(null===e||void 0===e?void 0:e.confirmPasswordRequired).when("password",((i,l)=>l.oneOf([b.KR("password"),null],null===e||void 0===e?void 0:e.matchPassword)))});var w=l(55213),N=l(40326),A=l(48658);const C=()=>{const{userDetails:e,languageData:i,removeImage:l,handleFileChange:n}=(0,o.useContext)(h);return(0,v.jsx)("div",{className:"user-account-block",children:(0,v.jsxs)("div",{className:"user-account-block-wrapper",children:[(0,v.jsxs)("div",{className:"user-img",children:[null!==e&&void 0!==e&&e.profileImage?(0,v.jsx)("img",{className:"user-image",loading:"lazy",src:null===e||void 0===e?void 0:e.profileImage,alt:"DP"},null===e||void 0===e?void 0:e.profileImage):(0,v.jsx)("img",{className:"user-image",loading:"lazy",src:"".concat("https://d1urdgvrz10048.cloudfront.net/static/shinywilds","/user-img.png"),alt:"DP"}),(0,v.jsxs)("div",{className:"dropdown",children:[(0,v.jsx)(w.Ay,{variant:N.Vt.CONTENT_ONLY,type:"button",className:"profile-upload-btn","data-toggle":"dropdown",children:(0,v.jsx)("img",{loading:"lazy",src:"".concat("https://d1urdgvrz10048.cloudfront.net/static/shinywilds","/camera-icon.svg"),alt:"camera-icon"})}),(0,v.jsxs)("div",{className:"dropdown-menu",children:[(0,v.jsxs)("a",{className:"dropdown-item cursor-pointer",href:()=>!1,children:[(0,v.jsx)(A.A,{name:"upload-image"}),(0,v.jsx)("input",{name:"myProfile",type:"file",id:"file",onInput:e=>n(e.target.files[0]),hidden:!0}),(0,v.jsx)("label",{htmlFor:"file",children:(0,v.jsx)("span",{className:"ml-3 cursor-pointer",children:null===i||void 0===i?void 0:i.uploadImage})})]}),(0,v.jsxs)("a",{href:()=>!1,className:"dropdown-item cursor-pointer",onClick:()=>l(),children:[(0,v.jsx)(A.A,{name:"remove-image"}),(0,v.jsx)("span",{className:"ml-3 cursor-pointer",children:null===i||void 0===i?void 0:i.removeImage})]})]})]})]}),(0,v.jsxs)("div",{className:"username-email",children:[(0,v.jsxs)("p",{className:"email-text",children:[(0,v.jsxs)("span",{className:"email-text-label",children:[null===i||void 0===i?void 0:i.loginEmail,": "]})," ",null!==e&&void 0!==e&&e.email?e.email:"N/A"]}),(0,v.jsxs)("p",{className:"username-text",children:[(0,v.jsxs)("span",{className:"username-text-label",children:[null===i||void 0===i?void 0:i.loginUsername,": "]})," ",null!==e&&void 0!==e&&e.username?e.username:"N/A"]})]})]})})};var D=l(1599);const L=e=>{let{formik:i}=e;const{errors:l,handleSubmit:n}=i,{regFields:s,loading:t,setSelectedTab:a,selectedTab:d,languageData:r}=(0,o.useContext)(h);return(0,v.jsx)("div",{children:(0,v.jsx)(D.h,{loading:t,spinner:!0,hidden:[c.I0.PRIVATE_DATA,c.I0.ADDRESS].includes(d),type:"button",clickEvent:()=>{n(),null!==l&&void 0!==l&&l.firstName||null!==l&&void 0!==l&&l.lastName||null!==l&&void 0!==l&&l.username||null!==s&&void 0!==s&&s.phone&&null!==l&&void 0!==l&&l.phone?d!==c.I0.PRIVATE_DATA&&a(c.I0.PRIVATE_DATA):(null!==l&&void 0!==l&&l.countryCode||null!==l&&void 0!==l&&l.currencyCode||null!==l&&void 0!==l&&l.address||null!==l&&void 0!==l&&l.city||null!==l&&void 0!==l&&l.zipCode||null!==l&&void 0!==l&&l.preferredLanguage)&&d!==c.I0.ADDRESS&&a(c.I0.ADDRESS)},text:null===r||void 0===r?void 0:r.submit,className:"btn-hover-effect"})})};var S=l(83045),k=l(80409),I=l(6771);const E=e=>{let{formik:i}=e;const{regFields:l,languageData:n,showStar:s}=(0,o.useContext)(h),t={containerClassName:"custom-form-group",fieldClassName:"form-control custom-input",isAccountInfo:!0,showStar:s,regFields:l,showInfoIcon:!0};return(0,v.jsxs)("div",{children:[" ",0!==(null===l||void 0===l?void 0:l.password)&&(0,v.jsx)("div",{id:"collapseThree",className:"collapse show","aria-labelledby":"headingThree","data-parent":"#accordionExample",children:(0,v.jsx)("div",{children:(0,v.jsx)("div",{className:"changepwd-form",children:l&&(0,v.jsx)("div",{className:"pt-3",children:(0,v.jsxs)("div",{className:"signup-form-detail",children:[0!==(null===l||void 0===l?void 0:l.password)&&(0,v.jsx)(I.A,(0,x.A)({name:"password",label:"loginPassword",placeholder:null===n||void 0===n?void 0:n.passwordPlaceholder,formik:i,autoComplete:"new-password"},t)),0!==(null===l||void 0===l?void 0:l.password)&&(0,v.jsx)(I.A,(0,x.A)({name:"confirmPassword",placeholder:null===n||void 0===n?void 0:n.confirmPasswordPlaceholder,label:"signupConfirm",extraLabel:"loginPassword",formik:i,autoComplete:"new-password"},t))]})})})})})]})};var T=l(70804);const B=e=>{let{formik:i}=e;const{regFields:l,languageData:n}=(0,o.useContext)(h),{userDetails:t}=(0,s.d4)((e=>e.user)),{values:a,setFieldValue:d}=i,r=(0,s.d4)((e=>{var i,l;return null===e||void 0===e||null===(i=e.uiConfig)||void 0===i||null===(l=i.general)||void 0===l?void 0:l.hideSubscriptionCaseAfterSubscribe}));return(0,v.jsx)(v.Fragment,{children:l&&(0,v.jsx)("div",{className:"form terms-n-condition",children:c.bh.map((e=>{let{key:i,langKey:o,dependsOn:s}=e;if(!(!(null===l||void 0===l||!l[i])&&(!s||!(null!==l&&void 0!==l&&l[s]))&&("true"!==(null===t||void 0===t?void 0:t[i])||!r)))return null;const u="true"===(null===a||void 0===a?void 0:a[i]);return(0,v.jsxs)("div",{className:"d-flex my-4 align-items-center",children:[(0,v.jsx)("span",{className:u?"tick-mark":"circle-check",onClick:()=>d(i,u?"false":"true")}),(0,v.jsxs)("p",{className:"p-color",children:[(null===n||void 0===n?void 0:n[o])&&(0,T.Ay)(null===n||void 0===n?void 0:n[o]),2===(null===l||void 0===l?void 0:l[i])&&(0,v.jsx)("span",{className:"text-danger",children:"*"})]})]},i)}))})})};var P=l(9334),F=l(38308),R=l(50310),M=l.n(R);const O=e=>{let{contextValue:i,formik:l,disabled:n=!1}=e;const{completePhone:s,setCompletePhone:t,languageData:a}=(0,o.useContext)(i),{values:d,setFieldTouched:r,setValues:u}=l;return(0,v.jsx)("div",{children:(0,v.jsx)(M(),{name:"phone",type:"text",disabled:n,"aria-describedby":"emailHelp",alwaysDefaultMask:!1,enableSearch:!0,placeholder:null===a||void 0===a?void 0:a.phonePlaceholder,enableLongNumbers:!0,country:"us",value:s||"".concat(null===d||void 0===d?void 0:d.phoneCode).concat(null===d||void 0===d?void 0:d.phone),onChange:(e,i)=>{t(null);const l=String((null===i||void 0===i?void 0:i.dialCode)||""),o=e.substring(l.length),n="+"+l;u((0,x.A)((0,x.A)({},d),{},{phone:o,phoneCode:n}))},onBlur:()=>r("phone",!0),buttonStyle:{backgroundColor:"#22214b"},inputStyle:{width:"100%"}})})};var V=l(94859);const U=e=>{let{formik:i}=e;const{regFields:l,languageData:n,showStar:s}=(0,o.useContext)(h),t={containerClassName:"custom-form-group",fieldClassName:"form-control custom-input",contextValue:h},a=()=>(0,v.jsxs)("label",{htmlFor:"currencyCode",className:"custom-label",children:[(null===n||void 0===n?void 0:n.signupLanguage)||"Preferred Language",2===(null===l||void 0===l?void 0:l.preferredLanguage)?s(l.preferredLanguage):""]});return(0,v.jsx)(v.Fragment,{children:l&&(0,v.jsx)("div",{children:(0,v.jsxs)("div",{className:"signup-form-detail",children:[(0,v.jsx)(P.A,(0,x.A)((0,x.A)({type:"text",name:"firstName",control:"input",label:"signupFirstName",placeholder:null===n||void 0===n?void 0:n.firstNamePlaceholder},t),{},{disabled:!0})),(0,v.jsx)(P.A,(0,x.A)((0,x.A)({type:"text",name:"lastName",control:"input",label:"signupLastName",placeholder:null===n||void 0===n?void 0:n.lastNamePlaceholder},t),{},{disabled:!0})),(0,v.jsx)(P.A,(0,x.A)((0,x.A)({type:"text",name:"username",control:"input",label:"signupUserName",placeholder:null===n||void 0===n?void 0:n.userNamePlaceholder},t),{},{disabled:!0})),(0,v.jsx)(P.A,(0,x.A)((0,x.A)({name:"phone",label:"signupPhoneNo"},t),{},{disabled:!0,children:(0,v.jsx)(O,{disabled:!0,formik:i,contextValue:h})})),(0,v.jsx)(P.A,(0,x.A)((0,x.A)({name:"dateOfBirth",label:"signupDob"},t),{},{disabled:!0,children:(0,v.jsx)(F.A,{disabled:!0,formik:i,contextValue:h})})),(0,v.jsx)(P.A,(0,x.A)((0,x.A)({name:"preferredLanguage",label:"signupLanguage",defaultLabel:(0,v.jsx)(a,{})},t),{},{disabled:!0,children:(0,v.jsx)(V.A,{disabled:!0,formik:i,contextValue:h})}))]})})})};var _=l(15617);const G=e=>{let{formik:i}=e;const{languageData:l}=(0,o.useContext)(h),n={containerClassName:"custom-form-group",fieldClassName:"form-control custom-input",contextValue:h};return(0,v.jsx)(v.Fragment,{children:(0,v.jsxs)("div",{className:"signup-form-detail",children:[(0,v.jsx)(P.A,(0,x.A)((0,x.A)({name:"countryCode",label:"signupCounty"},n),{},{disabled:!0,children:(0,v.jsx)(_.A,{disabled:!0,formik:i,contextValue:h})})),(0,v.jsx)(P.A,(0,x.A)({type:"text",name:"currencyCode",control:"input",label:"signupCurrency",placeholder:null===l||void 0===l?void 0:l.currencyPlaceholder,disabled:!0},n)),(0,v.jsx)(P.A,(0,x.A)((0,x.A)({type:"text",name:"address",control:"input",label:"signupAddress",placeholder:null===l||void 0===l?void 0:l.addressPlaceholder},n),{},{disabled:!0})),(0,v.jsx)(P.A,(0,x.A)((0,x.A)({type:"text",name:"city",control:"input",label:"signupCity",placeholder:null===l||void 0===l?void 0:l.cityPlaceholder},n),{},{disabled:!0})),(0,v.jsx)(P.A,(0,x.A)((0,x.A)({type:"text",name:"zipCode",control:"input",label:"signupPostcode",placeholder:null===l||void 0===l?void 0:l.postCodePlaceholder},n),{},{disabled:!0}))]})})},W=e=>{let{formik:i}=e;const l=(0,o.useContext)(h),{regFields:n,languageData:t,setSelectedTab:a,selectedTab:d}=l,{userDetails:r}=(0,s.d4)((e=>e.user)),u=(0,s.d4)((e=>{var i,l;return null===e||void 0===e||null===(i=e.uiConfig)||void 0===i||null===(l=i.general)||void 0===l?void 0:l.hideSubscriptionCaseAfterSubscribe})),m=[{key:c.I0.PRIVATE_DATA,title:(null===t||void 0===t?void 0:t.accountsInfoFirstTab)||"Private Data",Component:U,show:!0},{key:c.I0.ADDRESS,title:(null===t||void 0===t?void 0:t.signupAddress)||"Address",Component:G,show:!0},{key:c.I0.CHANGE_PASSWORD,title:(null===t||void 0===t?void 0:t.changePassword)||"Change Password",Component:E,show:!0},{key:c.I0.SUBSCRIPTION,title:(null===t||void 0===t?void 0:t.accountsInfoFourthTab)||"Subscription",Component:B,show:(()=>{const e=["sms","news
1Letter","newsletterAndSms"];return!(u||!e.some((e=>!(null===n||void 0===n||!n[e]))))||e.some((e=>!(null===n||void 0===n||!n[e])&&"true"!==(null===r||void 0===r?void 0:r[e])))})()}];return(0,v.jsx)(S.A,{activeKey:d,onSelect:e=>e!==d&&a(e),children:null===m||void 0===m?void 0:m.map((e=>null!==e&&void 0!==e&&e.show?(0,v.jsx)(k.A,{eventKey:e.key,title:e.title,children:(0,v.jsx)(e.Component,{formik:i})},e.key):null))})},Y=()=>{const{userDetails:e,handleInitialState:i,languageData:l,selectedTab:n}=(0,o.useContext)(h);return(0,v.jsx)(j.l1,{enableReinitialize:!0,initialValues:(0,x.A)((0,x.A)({},e),{},{password:"",confirmPassword:"",preferredLanguage:null===e||void 0===e?void 0:e.locale}),validationSchema:n===c.I0.CHANGE_PASSWORD?f(l,e):null,onSubmit:e=>{i(e,n)},validateOnBlur:!0,validateOnChange:!0,validateOnMount:!0,children:e=>(0,v.jsxs)(j.lV,{children:[(0,v.jsx)(C,{}),(0,v.jsxs)("div",{className:"account-info-tabs user-account-block",children:[(0,v.jsx)(W,{formik:e}),(0,v.jsx)(L,{formik:e})]})]})})};var q=l(83397);const z=()=>{const{regFields:e,loading:i,userDetails:l,languageData:n}=(0,o.useContext)(h);return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(q.A,{title:null===n||void 0===n?void 0:n.headerAccAndInfo}),i?(0,v.jsx)(y.A,{}):l&&e&&(0,v.jsx)(Y,{})]})};var H=l(40885),K=l(57597),Z=l(95252),Q=l(44268),J=l(86189),X=l(20381);const $=()=>{var e;const{regFields:i,loading:l,languageData:n,userDetails:t,handleInitialState:a,showStar:d}=(0,o.useContext)(h),{userDetails:u}=(0,s.d4)((e=>e.user)),m=(0,s.d4)((e=>{var i,l;return null===e||void 0===e||null===(i=e.uiConfig)||void 0===i||null===(l=i.general)||void 0===l?void 0:l.hideSubscriptionCaseAfterSubscribe})),[p,g]=(0,o.useState)(!1),b=(0,s.wA)(),w=()=>{b((0,r.C7)()),g(!1)},[A,C]=(0,o.useState)(null);(0,o.useEffect)((()=>{l||C(null)}),[l]);const L=e=>{var i,l,o,n;switch(e){case"sms":return null===u||void 0===u||null===(i=u.other)||void 0===i?void 0:i.sms;case"newsLetter":return null!==(l=null===u||void 0===u||null===(o=u.other)||void 0===o?void 0:o.newsLetterSubscription)&&void 0!==l?l:"true"===(null===u||void 0===u?void 0:u.newsLetter);case"newsletterAndSms":return null===u||void 0===u||null===(n=u.other)||void 0===n?void 0:n.newsletterAndSms;default:return!1}},S=e=>!(null===i||void 0===i||!i[e])&&(!m||!L(e)),k=e=>{const i=!L(e);C(e);const l={[e]:i?"true":"false",type:c.AP.SUBSCRIPTION};b((0,r.$x)({initialState:l}))},E={containerClassName:"custom-form-group",fieldClassName:"form-control custom-input",contextValue:h},T={containerClassName:"custom-form-group",fieldClassName:"form-control custom-input",isAccountInfo:!0,showStar:d,regFields:i,showInfoIcon:!0},B=()=>(0,v.jsxs)("label",{htmlFor:"currencyCode",className:"custom-label",children:[(null===n||void 0===n?void 0:n.signupLanguage)||"Preferred Language",2===(null===i||void 0===i?void 0:i.preferredLanguage)?d(i.preferredLanguage):""]});return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsxs)("div",{className:"account-info-v2-wrapper",children:[(0,v.jsx)("div",{className:"account-page-v2-header",children:(null===n||void 0===n?void 0:n.headerAccAndInfo)||"Profile"}),l&&!A?(0,v.jsx)(y.A,{}):t&&i&&(0,v.jsx)("div",{className:"account-from-wrapper",children:(0,v.jsx)(j.l1,{enableReinitialize:!0,initialValues:(0,x.A)((0,x.A)({},t),{},{password:"",confirmPassword:"",preferredLanguage:null===t||void 0===t?void 0:t.locale},(null===t||void 0===t?void 0:t.currencyCode)&&{currencyCode:"".concat(t.currencyCode," (").concat(null!==(e=H.L[t.currencyCode])&&void 0!==e?e:"",")")}),validationSchema:f(n,t),onSubmit:e=>{a(e,c.I0.CHANGE_PASSWORD)},validateOnBlur:!0,validateOnChange:!0,validateOnMount:!0,children:e=>{var o,s,a,d;const{handleSubmit:r}=e;return(0,v.jsx)(j.lV,{children:(0,v.jsxs)("div",{className:"account-info-v2-form-wrapper",children:[(0,v.jsxs)("div",{className:"account-info-v2-form-section",children:[(0,v.jsxs)("div",{className:"account-info-v2-private-data",children:[(0,v.jsx)("div",{className:"section-title",children:(null===n||void 0===n?void 0:n.privateData)||"Private Data"}),(0,v.jsxs)("div",{className:"account-info-v2-private-form",children:[(0,v.jsx)(P.A,(0,x.A)((0,x.A)({type:"text",name:"firstName",control:"input",label:"signupFirstName",placeholder:null===n||void 0===n?void 0:n.firstNamePlaceholder},E),{},{disabled:!0})),(0,v.jsx)(P.A,(0,x.A)((0,x.A)({type:"text",name:"lastName",control:"input",label:"signupLastName",placeholder:null===n||void 0===n?void 0:n.lastNamePlaceholder},E),{},{disabled:!0})),(0,v.jsx)(P.A,(0,x.A)((0,x.A)({type:"text",name:"username",control:"input",label:"signupUserName",placeholder:null===n||void 0===n?void 0:n.userNamePlaceholder},E),{},{disabled:!0})),(0,v.jsx)(P.A,(0,x.A)((0,x.A)({name:"phone",label:"signupPhoneNo"},E),{},{disabled:!0,children:(0,v.jsx)(O,{disabled:!0,formik:e,contextValue:h})})),(0,v.jsx)(P.A,(0,x.A)((0,x.A)({name:"dateOfBirth",label:"signupDob"},E),{},{disabled:!0,children:(0,v.jsx)(F.A,{disabled:!0,formik:e,contextValue:h})})),(0,v.jsx)(P.A,(0,x.A)((0,x.A)({name:"preferredLanguage",label:"signupLanguage",defaultLabel:(0,v.jsx)(B,{})},E),{},{disabled:!0,children:(0,v.jsx)(V.A,{disabled:!0,formik:e,contextValue:h})}))]})]}),(0,v.jsxs)("div",{className:"account-info-v2-address-data",children:[(0,v.jsx)("div",{className:"section-title",children:(null===n||void 0===n?void 0:n.address)||"Address"}),(0,v.jsxs)("div",{className:"account-info-v2-address-form",children:[(0,v.jsx)(P.A,(0,x.A)((0,x.A)({name:"countryCode",label:"signupCounty"},E),{},{disabled:!0,children:(0,v.jsx)(_.A,{disabled:!0,formik:e,contextValue:h})})),(0,v.jsx)(P.A,(0,x.A)({type:"text",name:"currencyCode",control:"input",label:"signupCurrency",placeholder:null===n||void 0===n?void 0:n.currencyPlaceholder,disabled:!0}
1,E)),(0,v.jsx)(P.A,(0,x.A)((0,x.A)({type:"text",name:"address",control:"input",label:"signupAddress",placeholder:null===n||void 0===n?void 0:n.addressPlaceholder},E),{},{disabled:!0,containerClassName:"custom-form-group space-2"})),(0,v.jsx)(P.A,(0,x.A)((0,x.A)({type:"text",name:"city",control:"input",label:"signupCity",placeholder:null===n||void 0===n?void 0:n.cityPlaceholder},E),{},{disabled:!0})),(0,v.jsx)(P.A,(0,x.A)((0,x.A)({type:"text",name:"zipCode",control:"input",label:"signupPostcode",placeholder:null===n||void 0===n?void 0:n.postCodePlaceholder},E),{},{disabled:!0}))]})]})]}),(0,v.jsxs)("div",{className:"account-info-v2-form-section",children:[(0,v.jsxs)("div",{className:"account-info-password-block",children:[(0,v.jsx)("div",{className:"section-title",children:(null===n||void 0===n?void 0:n.changePassword)||"Change Password"}),(0,v.jsx)("div",{className:"account-info-password-form",children:0!==(null===i||void 0===i?void 0:i.password)&&(0,v.jsxs)("div",{className:"signup-form-detail",children:[(0,v.jsx)(I.A,(0,x.A)({name:"password",label:"loginPassword",placeholder:null===n||void 0===n?void 0:n.passwordPlaceholder,formik:e,autoComplete:"new-password"},T)),(0,v.jsx)(I.A,(0,x.A)({name:"confirmPassword",placeholder:null===n||void 0===n?void 0:n.confirmPasswordPlaceholder,label:"signupConfirm",formik:e,autoComplete:"new-password"},T))]})}),(0,v.jsx)(D.h,{loading:l&&!A,spinner:!0,type:"button",clickEvent:()=>{r()},text:"".concat((null===n||void 0===n?void 0:n.updatePassword)||"Update Password"),className:"btn-hover-effect account-info-submit-button btn__secondary",disabled:!e.values.password||!e.values.confirmPassword||e.values.password!==e.values.confirmPassword||!e.isValid||!e.dirty})]}),(0,v.jsxs)("div",{className:"account-info-sumsub-marketing-block",children:[(0,v.jsxs)("div",{className:"account-info-sumsub-block",children:[(0,v.jsx)("div",{className:"section-title",children:(null===n||void 0===n?void 0:n.kyc)||"KYC"}),(0,v.jsxs)("div",{className:"kyc-action-buttons",children:[(0,v.jsx)(K.A,{status:N.oV[null===t||void 0===t?void 0:t.kycStatus]}),"APPROVED"!==(null===t||void 0===t?void 0:t.kycStatus)&&"Rejected"!==(null===t||void 0===t?void 0:t.kycStatus)&&(0,v.jsx)("div",{className:"trigger-kyc-button",onClick:()=>g(!0),children:(null===n||void 0===n?void 0:n.completeKyc)||"Complete KYC"})]})]}),S("newsletterAndSms")&&(0,v.jsx)("div",{className:"account-info-marketing-block",children:(0,v.jsxs)("div",{className:"marketing-preferences",children:[(0,v.jsx)("div",{className:"marketing-preferences__text",children:(null===n||void 0===n?void 0:n.signupNewsLetterAndSms)||""}),(0,v.jsx)("div",{className:"marketing-preferences__toggle",children:"newsletterAndSms"===A?(0,v.jsx)(Z.A,{animation:"border",size:"sm",role:"status",className:"marketing-preferences__spinner",children:(0,v.jsx)("span",{className:"visually-hidden",children:"Loading..."})}):(0,v.jsx)("div",{className:"form-check form-switch",children:(0,v.jsx)("input",{className:"form-check-input",type:"checkbox",role:"switch",id:"marketing_newsletter_sms_toggle",checked:null===u||void 0===u||null===(o=u.other)||void 0===o?void 0:o.newsletterAndSms,onChange:()=>k("newsletterAndSms")})})})]})}),Boolean(!(null!==i&&void 0!==i&&i.newsletterAndSms))&&(0,v.jsxs)(v.Fragment,{children:[S("newsLetter")&&(0,v.jsx)("div",{className:"account-info-marketing-block",children:(0,v.jsxs)("div",{className:"marketing-preferences",children:[(0,v.jsx)("div",{className:"marketing-preferences__text",children:(null===n||void 0===n?void 0:n.newsletterOptInText)||""}),(0,v.jsx)("div",{className:"marketing-preferences__toggle",children:"newsLetter"===A?(0,v.jsx)(Z.A,{animation:"border",size:"sm",role:"status",className:"marketing-preferences__spinner",children:(0,v.jsx)("span",{className:"visually-hidden",children:"Loading..."})}):(0,v.jsx)("div",{className:"form-check form-switch",children:(0,v.jsx)("input",{className:"form-check-input",type:"checkbox",role:"switch",id:"marketing_newsletter_toggle",checked:null!==(s=null===u||void 0===u||null===(a=u.other)||void 0===a?void 0:a.newsLetterSubscription)&&void 0!==s?s:"true"===(null===u||void 0===u?void 0:u.newsLetter),onChange:()=>k("newsLetter")})})})]})}),S("sms")&&(0,v.jsx)("div",{className:"account-info-marketing-block",children:(0,v.jsxs)("div",{className:"marketing-preferences",children:[(0,v.jsx)("div",{className:"marketing-preferences__text",children:(null===n||void 0===n?void 0:n.signupSms)||""}),(0,v.jsx)("div",{className:"marketing-preferences__toggle",children:"sms"===A?(0,v.jsx)(Z.A,{animation:"border",size:"sm",role:"status",className:"marketing-preferences__spinner",children:(0,v.jsx)("span",{className:"visually-hidden",children:"Loading..."})}):(0,v.jsx)("div",{className:"form-check form-switch",children:(0,v.jsx)("input",{className:"form-check-input",type:"checkbox",role:"switch",id:"marketing_sms_toggle",checked:null===u||void 0===u||null===(d=u.other)||void 0===d?void 0:d.sms,onChange:()=>k("sms")})})})]})})]})]})]})]})})}})})]}),p&&(0,v.jsxs)(Q.A,{centered:!0,show:p,onHide:w,className:"kyc-modal",children:[(0,v.jsx)(Q.A.Header,{className:"kyc-modal-header",children:(0,v.jsx)(X.A,{className:"close-btn",name:"cross-big",width:"18px",height:"18px",onClick:w})}),(0,v.jsx)(Q.A.Body,{className:"kyc-modal-body",children:(0,v.jsx)(J.A,{isModal:!0})})]})]})},ee=e=>{var i;const l=(0,s.d4)((e=>{var i;return null===(i=e.uiConfig)||void 0===i?void 0:i.general})),o=null!==(i=null===l||void 0===l?void 0:l.accountInfo)&&void 0!==i?i:g.GC.V1;return("object"===typeof o&&null!==o&&void 0!==o&&o.variant?o.variant:o)===g.GC.V2?(0,v.jsx)($,(0,x.A)({},e)):(0,v.jsx)(z,(0,x.A)({},e))},ie=()=>(0,v.jsx)(p,{children:(0,v.jsx)(ee,{})})},94566:(e,i,l)=>{l.d(i,{A:()=>I});var o=l(89379),n=l(9950),s=l(86781),t=l(68459),a=l(68353),d=l(1093),r=l(5830),u=l(95942),c=l(62080),v=l(55934),m=l(48801),h=l(85685),p=l(48106),x=l(44414);const g=e=>{let{message:i,children:l}=e;return(0,x.jsx)(r.A,{placement:"bottom",delay:{show:100,hide:200},overlay:(0,x.jsx)(u.A,{children:i}),children:l})},y=e=>{let{val:i,width:l="107px"}=e;return(0,x.jsx)(g,{message:i,children:(0,x.jsx)("span",{style:{width:l,cursor:"pointer"},className:"d-inline-block text-link",children:i})})};var j=l(86615),b=l(40885),f=l(81664),w=(l(39890),l(34779),l(54232)),N=l(82569),A=l(2987),C=l(19241);const D=()=>
1{const e=(0,N.wA)(),[i,l]=(0,n.useState)(""),[o,s]=(0,n.useState)(1),[t,a]=(0,n.useState)(10),[d,r]=(0,n.useState)(!1),[u,v]=(0,n.useState)(c.x.PENDING),[m,p]=(0,n.useState)(""),x=(0,A.A)(),{userDetails:g}=(0,N.d4)((e=>e.user)),{languageData:y}=(0,N.d4)((e=>e.language)),{loading:j,withdrawalHistory:b}=(0,N.d4)((e=>e.transactions||"")),[f,w]=(0,n.useState)([{startDate:(0,h.t6)(10),endDate:new Date,key:"selection"}]),D=()=>{var i,l;e((0,C.qw)({limit:t,pageNo:o,status:u,startDate:(0,h.UX)(null===f||void 0===f||null===(i=f[0])||void 0===i?void 0:i.startDate),endDate:(0,h.UX)(null===f||void 0===f||null===(l=f[0])||void 0===l?void 0:l.endDate),search:m}))};(0,n.useEffect)((()=>{const e=setTimeout((()=>{1===o?D():s(1)}),1e3);return()=>clearTimeout(e)}),[t,u,f]),(0,n.useEffect)((()=>{!x&&D()}),[o]),(0,n.useEffect)((()=>{const e=setTimeout((()=>{x||(1===o?D():s(1))}),1e3);return()=>clearTimeout(e)}),[m]);const L=Math.ceil((null===b||void 0===b?void 0:b.count)/t);return{withdrawalHistory:b,loading:j,userDetails:g,handleCancel:e=>{l(e),r(!0)},page:o,setPage:s,limit:t,setLimit:a,status:u,setStatus:v,search:m,setSearch:p,state:f,setState:w,languageData:y,totalPages:L,show:d,setShow:r,handleYes:()=>{e((0,C.aZ)({data:{transactionBankingId:i},limit:t,pageNo:o,status:u,search:m})),r(!1)},fetchLatestChanges:()=>{10===t&&1===o&&""===u?D():(a(10),s(1),v(""))}}};var L=l(74129),S=l(20381),k=l(83397);const I=()=>{var e;const{withdrawalHistory:i,loading:l,userDetails:n,handleCancel:g,page:N,setPage:A,limit:C,setLimit:I,status:E,setStatus:T,search:B,setSearch:P,state:F,setState:R,languageData:M,totalPages:O,show:V,setShow:U,handleYes:_,fetchLatestChanges:G}=D();return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(k.A,{title:null===M||void 0===M?void 0:M.pendingWithdrawal,onReload:G,showReload:!0}),(0,x.jsx)("div",{className:"history-container user-account-block",children:(0,x.jsxs)("div",{className:"table-layouts",children:[(0,x.jsx)("div",{className:"heading-filter",children:(0,x.jsxs)(s.A,{children:[(0,x.jsx)(t.A,{className:"column-search",children:(0,x.jsx)("div",{className:"transaction-history",children:(0,x.jsxs)("div",{className:"form-group icon_include search-icon",children:[(0,x.jsx)("input",{name:"search",className:"custom-input",type:"text",value:B,onChange:e=>P(e.target.value,""),placeholder:null===M||void 0===M?void 0:M.quickSearch,"aria-describedby":"emailHelp"}),(0,x.jsx)("span",{className:"icon",children:(0,x.jsx)(S.A,{name:"search",width:"16px"})})]})})}),(0,x.jsx)(t.A,{className:"date-range column-date",children:(0,x.jsx)(f.A,{state:F,setState:R,onChange:e=>R([e.selection])})}),(0,x.jsx)(t.A,{className:"column-dropdown",children:(0,x.jsx)("div",{className:"form-group w-100",children:(0,x.jsxs)(a.A,{className:"icon-right",children:[(0,x.jsxs)(a.A.Toggle,{id:"dropdown-basic",as:w.A,children:[(0,x.jsx)("span",{className:"text-capitalize",children:M[null===c.J||void 0===c.J||null===(e=c.J.find((e=>(null===e||void 0===e?void 0:e.values)===E)))||void 0===e?void 0:e.label]||null}),(0,x.jsx)(S.A,{name:"select-drop-arrow",width:"16px",height:"16px"})]}),(0,x.jsx)(a.A.Menu,{children:c.J.map((e=>{let{label:i,values:l}=e;return(0,x.jsx)(a.A.Item,{onClick:()=>T(l),children:M[i]},i)}))})]})})})]})}),(0,x.jsxs)("div",{className:"gaming-transaction-table bg",children:[l?(0,x.jsx)(j.A,{top:"11rem",position:"unset"}):i&&0!==(null===i||void 0===i?void 0:i.count)&&(0,x.jsxs)(d.A,{width:"100%",responsive:!0,children:[(0,x.jsx)("thead",{children:(0,x.jsxs)("tr",{className:"text-center",children:[(0,x.jsxs)("th",{scope:"col",children:[" ",(0,x.jsx)(y,{val:null===M||void 0===M?void 0:M.action,width:"90px"})]}),(0,x.jsxs)("th",{scope:"col",children:[" ",(0,x.jsx)(y,{val:null===M||void 0===M?void 0:M.amount,width:"90px"})]}),(0,x.jsxs)("th",{scope:"col",children:[" ",(0,x.jsx)(y,{val:null===M||void 0===M?void 0:M.status,width:"90px"})]}),(0,x.jsxs)("th",{scope:"col",children:[" ",(0,x.jsx)(y,{val:null===M||void 0===M?void 0:M.casinoProviders,width:"90px"})]}),(0,x.jsxs)("th",{scope:"col",children:[" ",(0,x.jsx)(y,{val:null===M||void 0===M?void 0:M.transactionId,width:"90px"})]}),(0,x.jsxs)("th",{scope:"col",children:[" ",(0,x.jsx)(y,{val:null===M||void 0===M?void 0:M.dateTime,width:"90px"})]}),(0,x.jsxs)("th",{scope:"col",children:[" ",(0,x.jsx)(y,{val:null===M||void 0===M?void 0:M.processedOn,width:"90px"})]})]})}),(0,x.jsx)("tbody",{children:null===i||void 0===i?void 0:i.rows.map(((e,i)=>{var l,s;let{status:t,amount:a,transactionBankingId:d,updatedAt:v,createdAt:m,paymentTransactionId:p,paymentProvider:y}=e;return(0,x.jsxs)("tr",{children:[(0,x.jsx)("td",{className:"align-baseline",children:(0,x.jsx)("div",{className:"d-flex justify-content-center accounts-btn",children:String(t)===c.x.PENDING?(0,x.jsx)("button",{className:"cancel-btn pending-btn",value:"Cancel",onClick:()=>g(d),children:(0,x.jsx)("img",{className:"pending-btn-icon",src:"".concat("https://d1urdgvrz10048.cloudfront.net/static/shinywilds","/icon-pending.svg"),alt:"Pending"})}):(0,x.jsx)("img",{src:"".concat("https://d1urdgvrz10048.cloudfront.net/static/shinywilds","/icon-denied.svg"),alt:"Denied",height:15})})}),(0,x.jsx)("td",{className:"align-middle d-flex justify-content-center",children:(0,x.jsx)("div",{className:"cell-values text-center",children:(0,x.jsx)(r.A,{overlay:e=>(0,x.jsx)(u.A,(0,o.A)((0,o.A)({},e),{},{children:null===a||void 0===a?void 0:a.toFixed(2)})),placement:"top",children:(0,x.jsxs)("p",{style:{cursor:"pointer",maxWidth:"80px"},className:"text-truncate",children:[b.L[(null===n||void 0===n||null===(l=n.userWallet)||void 0===l?void 0:l.currencyCode)||"EUR"]," ",null===a||void 0===a?void 0:a.toFixed(2)]})})})}),(0,x.jsx)("td",{className:"align-middle",children:(0,x.jsx)("div",{className:"d-flex justify-content-center text-center",children:(0,x.jsx)("p",{children:M[null===(s=c.J.find((e=>parseInt(e.values)===t)))||void 0===s?void 0:s.label]})})}),(0,x.jsx)("td",{className:"align-middle",children:(0,x.jsx)("div",{className:"d-flex justify-content-center",children:(0,x.jsx)("p",{children:y})})}),(0,x.jsx)("td",{className:"align-middle",children:(0,x.jsx)("div",{className:"d-flex justify-content-center",children:(0,x.jsx)("p",{children:p})})}),(0,x.jsx)("td",{className:"align-middle",children:(0,x.jsx)("div",{className:"d-flex justify-content-center",children:(0,x.jsx)(r.A,{overlay:e=>(0,x.jsx)(u.A,(0,o.A)((0,o.A)({},e),{},{children:(0,h.cs)(m)})),placement:"top",children:(0,x.jsx)("p",{style:{cursor:"pointer"},className:"text-truncate transaction-name text-center",children:(0,h.cs)(m)})})})}),(0,x.jsx)("td",{className:"align-middle",children:(0,x.jsx)("div",{className:"d-flex justify-content-center",children:(0,x.jsx)(r.A,{overlay:e=>(0,x.jsx)(u.A,(0,o.A)((0,o.A)({},e),{},{children:(0,h.cs)(v)})),placement:"top",children:(0,x.jsx)("p",{style:{cursor:"pointer"},className:"text-truncate transaction-name text-center",children:(0,h.cs)(v)})})})})]},"transaction-history ".concat(i))}))})]}),i&&0===i.count&&!l&&(0,x.jsx)(v.A,{errorMessage:M[m.x.withdrawalHistory]})]}),i&&0!==i.count&&!l&&(0,x.jsx)(p.A,{page:N,setPage:A,limit:C,setLimit:I,totalPages:O})]})}),V&&(0,x.jsx)(L.u,{setShow:U,show:V,handleYes:_})]})}},62080:(e,i,l)=>{l.d(i,{J:()=>n,x:()=>o});const o={PENDING:"7",CANCELLED:"2",COMPLETED:"1"}
1,n=[{label:"pending",values:o.PENDING},{label:"cancelled",values:o.CANCELLED},{label:"completed",values:o.COMPLETED}]},46160:(e,i,l)=>{l.d(i,{A:()=>W});var o=l(89379),n=l(9950),s=l(82569),t=l(15935),a=l(5830),d=l(95942),r=l(86615),u=l(26639),c=l(80045),v=l(13564),m=l(80968),h=l(19241),p=l(41635),x=l(95557),g=l(67121),y=l(5859),j=l(80010),b=l(26338),f=l(64495),w=l(31013),N=l(48063),A=l(57941),C=l(20381),D=l(40326),L=l(44414);const S=["amount"],k=()=>{var e,i,l;const t=(0,s.wA)(),a=(0,v.Zp)(),d=(0,x.Gq)("access-token"),[u,k]=(0,n.useState)("password"),{languageData:I}=(0,s.d4)((e=>e.language)),{userDetails:E,walletLoading:T,loading:B}=(0,s.d4)((e=>e.user)),{paymentProviders:P,loading:F,paymentData:R,paymentStatus:M,merchantId:O,verifyPaymentLoading:V,utorgCurrencies:U}=(0,s.d4)((e=>e.payment)),[_,G]=(0,n.useState)(!0),[W,Y]=(0,n.useState)(!1),[q,z]=(0,n.useState)({}),[H,K]=(0,n.useState)("Other"),[Z,Q]=(0,n.useState)({}),[J,X]=(0,n.useState)(!1),{sessionId:$}=(0,s.d4)((e=>e.transactions.userPaymentCredential||"")),[ee,ie]=(0,n.useState)(!1),[le,oe]=(0,n.useState)({}),ne=null===(e=window.location.href)||void 0===e?void 0:e.includes("status"),[se,te]=(0,n.useState)(ne),[ae,de]=(0,n.useState)({minutes:"",seconds:""}
1),[re,ue]=(0,n.useState)(!0),[ce,ve]=(0,n.useState)(!1),[me,he]=(0,n.useState)(null),pe=null===M||void 0===M||null===(i=M.messages)||void 0===i||null===(l=i.find((e=>{let{label:i}=e;return"Amount withdrawn from player account"===i})))||void 0===l?void 0:l.value,xe=JSON.parse((0,x.Gq)("loggedIn")),[ge,ye]=(0,n.useState)(!1),{userActiveBonus:je,activeBonusLoading:be,loading:fe}=(0,s.d4)((e=>e.bonus)),we=(0,n.useMemo)((()=>{var e;return Boolean(null===je||void 0===je||null===(e=je.rows)||void 0===e?void 0:e.find((e=>"ACTIVE"===e.status)))}),[je]),{loading:Ne}=(0,s.d4)((e=>e.login));(0,n.useEffect)((()=>{ge&&t((0,m.x8)())}),[ge]);(0,n.useEffect)((()=>{t((0,w.tL)({limit:8,pageNo:1,status:JSON.stringify(["ACTIVE"])}))}),[]),(0,n.useEffect)((()=>{if((0,b.Gn)("payment"),!ne){const e=document.createElement("script");return e.src="https://api.sunpetal.xyz/paymentiq/api/viq/jscardencrypter/"+O,e.async=!0,document.body.appendChild(e),()=>{document.body.removeChild(e)}}return Le(),()=>t((0,h.KL)())}),[O]);const Ae=()=>{t((0,y.$n)(f.U0)),f.U0.emit("login",(0,x.lv)({deviceType:(0,g.ZI)()}))},Ce=()=>{se||Le()},De=()=>{console.info("Socket Connection Disconnect")};(0,n.useEffect)((()=>{!xe||null!==f.U0&&void 0!==f.U0&&f.U0.connected||!d||(f.U0.auth.token=(0,x.zv)(),f.U0.disconnect().connect())}),[xe,d]),(0,n.useEffect)((()=>(null!==f.U0&&void 0!==f.U0&&f.U0.connected&&(f.U0.on("connect",Ae),f.U0.on("payment-status",Ce)),()=>{f.U0.on("disconnect",De),f.U0.off("payment-status")})),[f.U0]);const Le=()=>{(0,x.Gq)("sessionId")&&(0,x.Gq)("aggregator")&&((0,x.Gq)("txId")||(0,x.Gq)("orderId"))&&(X(!1),G(!1),ie(!1),Y(!1),te(!0))};(0,n.useEffect)((()=>{se&&((0,x.Gq)("sessionId")&&(0,x.Gq)("aggregator")&&((0,x.Gq)("txId")||(0,x.Gq)("orderId"))?!F&&!M&&t((0,m.LK)({transactionId:(0,x.Gq)("txId")||"",sessionId:(0,x.Gq)("sessionId"),aggregator:(0,x.Gq)("aggregator"),orderId:(0,x.Gq)("orderId")||""})):M||a("/".concat((0,x.Gq)("language").toLowerCase(),"/account/withdraw")))}),[se,F]),(0,n.useEffect)((()=>{_&&t((0,m.BK)({paymentType:"withdraw",bonusId:""}))}),[_]),(0,n.useEffect)((()=>{W&&t((0,h.Pl)({type:"withdraw",navigate:a}))}),[W]);(0,n.useEffect)((()=>{!J||null!==R&&void 0!==R&&R.redirectOutput||null!==R&&void 0!==R&&R.redirect_url||F||Le()}),[J,R]),(0,n.useEffect)((()=>{var e,i;if(null!==q&&void 0!==q&&null!==(e=q.settings)&&void 0!==e&&null!==(i=e.requiredFields)&&void 0!==i&&i.length&&"praxis"!==(null===q||void 0===q?void 0:q.aggregator)){var l,o;const e={},i="utorg"===q.aggregator&&"Skrill"===q.name;null===q||void 0===q||null===(l=q.settings)||void 0===l||null===(o=l.requiredFields)||void 0===o||o.forEach((l=>{let{name:o}=l;["beneficiaryName","cardHolder","name"].includes(o)?e[o]=(null===E||void 0===E?void 0:E.firstName)+" "+(null===E||void 0===E?void 0:E.lastName):["first_name","firstName"].includes(o)?e[o]=null===E||void 0===E?void 0:E.firstName:["last_name","lastName"].includes(o)?e[o]=null===E||void 0===E?void 0:E.lastName:["phoneNumber","phone","mobile"].includes(o)?e[o]=null!==E&&void 0!==E&&E.phoneCode?(null===E||void 0===E?void 0:E.phoneCode)+" "+(null===E||void 0===E?void 0:E.phone):"":"email"===o||"destinationAccount"===o?e[o]=null===E||void 0===E?void 0:E.email:"address"===o?e[o]=null===E||void 0===E?void 0:E.address:["country"].includes(o)?e[o]=null===E||void 0===E?void 0:E.countryCode:"walletAddress"===o?i||(e[o]=(null===E||void 0===E?void 0:E.walletAddress)||""):"currency"===o?i||(e[o]=(null===E||void 0===E?void 0:E.currency)||""):e[o]=""})),Q(e)}else Q({})}),[q]);const Se=()=>{X(!1),G(!0),ie(!1),Y(!1),te(!1)};(0,n.useEffect)((()=>{E||B||t((0,p.C7)())}),[E]);const ke=e=>{var i;if(E&&!E.isEmailVerified)return void(0,j.o)(null===I||void 0===I?void 0:I.notVerified,"error");const{amount:l}=e,n=(0,c.A)(e,S);var s;n&&null!==n&&void 0!==n&&n.encCreditcardNumber&&(n.encCreditcardNumber=window.encryptData(String(null===(s=n.encCreditcardNumber)||void 0===s?void 0:s.replace(/ /g,""))),n.encCvv=window.encryptData(String(n.encCvv)),n.expiryMonth=n.expirymmyyyy.substr(0,2),n.expiryYear=n.expirymmyyyy.substr(3,5),delete n.expirymmyyyy);t((0,m.Uu)({data:{amount:l,aggregator:q.aggregator,paymentProviderId:q.paymentProviderId,provider:q.name,group:q.group,paymentType:"withdraw",other:n?(0,o.A)({},n):{},confirm:!1,gateway:null===q||void 0===q||null===(i=q.settings)||void 0===i?void 0:i.gateway,sessionId:$},resetPay:Se,navigate:a})),Y(!1),X(!0),k("password")};let Ie=new Date;Ie.setMinutes(Ie.getMinutes()+2),Ie=new Date(Ie);const Ee=()=>{setTimeout((()=>{const e=Ie,i=setInterval((function(){const l=(new Date).getTime(),o=e-l,n=Math.floor(o%36e5/6e4),s=Math.floor(o%6e4/1e3);de({minutes:n,seconds:s}),ue(!1),o<0&&(clearInterval(i),ue(!0))}),1e3)}),100)};return{languageData:I,showPaymentProviders:_,showWithdrawal:W,providerData:q,handleChangeClick:()=>{Y(!1),G(!0)},handleProviderClick:e=>{var i,l,o;null!==e&&void 0!==e&&null!==(i=e.settings)&&void 0!==i&&null!==(l=i.requiredFields)&&void 0!==l&&l.some((e=>"currency"===e.name))&&"utorg"===(null===e||void 0===e||null===(o=e.aggregator)||void 0===o?void 0:o.toLowerCase())&&ye(!0),z(e),Y(!0),X(!1),ie(!1),oe("string"===typeof(null===e||void 0===e?void 0:e.amountKeys)?JSON.parse(null===e||void 0===e?void 0:e.amountKeys):null===e||void 0===e?void 0:e.amountKeys)},paymentProviders:P,loading:F,amt:H,setAmt:K,currencyCode:(null===E||void 0===E?void 0:E.
1currencyCode)||"EUR",type:u,setType:k,handleSubmit:ke,initValues:Z,wallet:null===E||void 0===E?void 0:E.userWallet,showIFrame:J,paymentData:R,showWithdrawList:ee,userDetails:E,showReceipt:se,paymentStatus:M,navigate:a,fetchAmount:pe,setShowReceipt:function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]?te(!0):Se()},getWalletAmount:()=>{t((0,p.wo)())},walletLoading:T,amtOptions:le,resendVerificationLink:()=>{Ne||((e=>{let{email:i}=e;t((0,y.QA)({email:i,navigate:a,isProfilePage:!0}))})(E),Ee())},resendEmailLoading:Ne,remainingTime:ae,isTimeOver:re,data:q,loadPIQ:ce,sessionId:$,setShowIFrame:X,handleLoadPIQ:()=>{ve(!0)},verifyPaymentLoading:V,utorgCurrencies:U,activeBonusLoading:be,restrictWithdraw:we,cancelBonusLoading:fe,onForfeitBonus:()=>{var e,i;t((0,w.YS)({data:{userBonusId:null===je||void 0===je||null===(e=je.rows[0])||void 0===e?void 0:e.userBonusId,bonusStatus:null===je||void 0===je||null===(i=je.rows[0])||void 0===i?void 0:i.status},handleSubmit:()=>{ke(me)}}))},setPaymentDetails:he,showActiveBonusForfeitWarningModal:e=>{t((0,N.qf)({name:A.lx.WITHDRAW_FORFEIT_BONUS_CONFIRM,title:null===I||void 0===I?void 0:I.warning,body:(0,L.jsx)(L.Fragment,{children:be||fe?(0,L.jsx)(r.A,{}):(0,L.jsxs)("div",{children:[(0,L.jsx)("div",{className:"icon-wrapper d-flex justify-content-center align-items-center mb-4",children:(0,L.jsx)(C.A,{name:"warning",height:80,width:140})}),(0,L.jsx)("div",{className:"d-flex",children:(0,L.jsx)("p",{children:(null===I||void 0===I?void 0:I.activeBonusWarning)||"You have active bonuses, If you proceed, Your all the active bonuses will be forfeited. Are you sure, you want to proceed with the withdrawal?"})})]})}),buttons:[{text:null===I||void 0===I?void 0:I.cancel,variant:D.Vt.SECONDARY},{text:null===I||void 0===I?void 0:I.forfeitButton,variant:D.Vt.TERTIARY,onClick:()=>{var i,l;t((0,w.YS)({data:{userBonusId:null===je||void 0===je||null===(i=je.rows[0])||void 0===i?void 0:i.userBonusId,bonusStatus:null===je||void 0===je||null===(l=je.rows[0])||void 0===l?void 0:l.status},handleSubmit:()=>{ke(e)}}))}}]}))},setShowWithdrawal:Y,resetPay:Se,setProviderData:z}};var I=l(12783),E=l(55934),T=l(40885),B=l(89473),P=l(52899),F=l(51141),R=l(83397);const M=(0,F.A)()((()=>{var e,i,l,n,s,t,c,v,m,h,p,x,g,y;const{languageData:j,showPaymentProviders:b,showWithdrawal:f,providerData:w,handleProviderClick:N,paymentProviders:A,loading:D,amt:S,setAmt:F,currencyCode:M,type:O,setType:V,handleSubmit:U,initValues:_,wallet:G,showIFrame:W,paymentData:Y,showWithdrawList:q,userDetails:z,showReceipt:H,paymentStatus:K,navigate:Z,fetchAmount:Q,setShowReceipt:J,getWalletAmount:X,walletLoading:$,amtOptions:ee,resendVerificationLink:ie,resendEmailLoading:le,remainingTime:oe,isTimeOver:ne,data:se,loadPIQ:te,sessionId:ae,setShowIFrame:de,handleLoadPIQ:re,withdrawalFormRef:ue,verifyPaymentLoading:ce,utorgCurrencies:ve,restrictWithdraw:me,showActiveBonusForfeitWarningModal:he,setPaymentDetails:pe}=k();(0,B.A)({loadPIQ:te,paymentData:Y,userDetails:z,sessionId:ae,method:"withdrawal"});const xe="object"===typeof(null===w||void 0===w||null===(e=w.settings)||void 0===e?void 0:e.minWithdraw)?Math.max(1,(null===w||void 0===w||null===(i=w.settings)||void 0===i?void 0:i.minWithdraw[M||"EUR"])||0):Math.max(1,(null===w||void 0===w||null===(l=w.settings)||void 0===l?void 0:l.minWithdraw)||0);let ge=null!==w&&void 0!==w&&null!==(n=w.settings)&&void 0!==n&&n.maxWithdraw?"object"===typeof(null===w||void 0===w||null===(s=w.settings)||void 0===s?void 0:s.maxWithdraw)?Number(null===w||void 0===w||null===(t=w.settings)||void 0===t?void 0:t.maxWithdraw[M||"EUR"]):Number(null===w||void 0===w||null===(c=w.settings)||void 0===c?void 0:c.maxWithdraw)||Number(null===z||void 0===z||null===(v=z.userWallet)||void 0===v?void 0:v.amount):Number(null===z||void 0===z||null===(m=z.userWallet)||void 0===m?void 0:m.amount);return ge=ge<xe?xe:ge,(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(R.A,{title:null===j||void 0===j?void 0:j.headerWithdrawFunds}),(0,L.jsxs)(L.Fragment,{children:[!q&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("div",{className:"user-account-block",children:(0,L.jsxs)("div",{className:"payment-methods-tab",children:[(0,L.jsx)("div",{className:"d-flex accounts-btn justify-content-center align-items-center flex-sm-row flex-column w-100",children:(0,L.jsxs)("p",{className:"info-text-bonus",children:[(0,L.jsx)(C.A,{name:"credit-card-solid",className:"mr-2"})," ","".concat(null===j||void 0===j?void 0:j.chooseWithdrawalMethod)]})}),(0,L.jsx)("div",{className:"payment-providers-wrapper",children:b&&D?(0,L.jsx)(r.A,{top:"20px",bottom:"20px"}):(b||f)&&!D&&(null===z||void 0===z?void 0:z.isEmailVerified)&&(A&&null!==(h=Object.keys(A))&&void 0!==h&&h.length?Object.keys(A).map((e=>{var i;return null===A||void 0===A||null===(i=A[e])||void 0===i?void 0:i.map(((e,i)=>{var l;return(0,L.jsx)(a.A,{overlay:i=>(0,L.jsx)(d.A,(0,o.A)((0,o.A)({},i),{},{children:(null===e||void 0===e?void 0:e.displayName)||(null===e||void 0===e?void 0:e.name)})),placement:"bottom",popperConfig:{modifiers:[{name:"offset",options:{offset:[0,8]}}]},children:(0,L.jsxs)("div",{className:"payment-provider ".concat(null!==se&&void 0!==se&&se.paymentProviderId?"":"none-selected").concat((null===se||void 0===se?void 0:se.paymentProviderId)===(null===e||void 0===e?void 0:e.paymentProviderId)?"selected":""),onClick:()=>N(e),children:[(null===e||void 0===e?void 0:e.recommendedWithdraw)&&(0,L.jsx)("div",{className:"recommended-tag-wrapper",children:(0,L.jsx)("div",{className:"recommended-tag",children:(0,L.jsx)(C.A,{name:"fire-solid",width:"20",height:"20"})})}),(0,L.jsx)("div",{className:"payment-provider-content",children:(0,L.jsx)("img",{loading:"lazy",className:"payment-provider-logo",src:(null===e||void 0===e||null===(l=e.settings)||void 0===l?void 0:l.withdrawImageUrl)||"".concat("https://d1urdgvrz10048.cloudfront.net/static/shinywilds","/defaultpayment.svg"),alt:(null===e||void 0===e?void 0:e.displayName)||(null===e||void 0===e?void 0:e.name)||"Not Found"})}),(0,L.jsx)("span",{className:"category",children:(null===j||void 0===j?void 0:j[null===e||void 0===e?void 0:e.category])||(null===e||void 0===e?void 0:e.category)||(null===j||void 0===j?void 0:j.other)}
1)]})},i)}))})):(0,L.jsx)(E.A,{errorMessage:null===j||void 0===j?void 0:j.noProvidersFound}))})]})}),(0,L.jsx)("div",{ref:ue,className:"user-account-block default-state-fx show-deposit-form-".concat(f),children:(0,L.jsxs)("div",{className:"payment-tab ",children:[(0,L.jsx)("div",{className:"d-flex accounts-btn justify-content-center align-items-center flex-sm-row flex-column bonus-border-bottom w-100",children:(0,L.jsxs)("p",{className:"info-text-bonus",children:[(0,L.jsx)(C.A,{name:"money-check-pen-solid"}),"\xa0",null===j||void 0===j?void 0:j.withdrawalWith]})}),f&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("div",{className:"change-btn-with-logo d-flex align-items-center justify-content-start",children:(0,L.jsx)(a.A,{overlay:e=>(0,L.jsx)(d.A,(0,o.A)((0,o.A)({},e),{},{children:(null===w||void 0===w?void 0:w.displayName)||(null===w||void 0===w?void 0:w.name)})),placement:"bottom",children:(0,L.jsxs)("a",{className:"btn amount-type-btn",children:[(0,L.jsx)("div",{className:"payment-provider-content",children:(0,L.jsx)("img",{loading:"lazy",src:(null===se||void 0===se||null===(p=se.settings)||void 0===p?void 0:p.withdrawImageUrl)||"".concat("https://d1urdgvrz10048.cloudfront.net/static/shinywilds","/defaultpayment.svg"),alt:(null===w||void 0===w?void 0:w.displayName)||(null===w||void 0===w?void 0:w.name)||"logo",className:"transaction-type payment-provider-logo"})}),(0,L.jsx)("span",{className:"category",children:(null===j||void 0===j?void 0:j[null===se||void 0===se?void 0:se.category])||(null===se||void 0===se?void 0:se.category)||(null===j||void 0===j?void 0:j.other)})]})})}),(0,L.jsx)("div",{className:"balance-preview",children:(0,L.jsxs)("div",{className:"d-flex align-items-center justify-content-between w-100 gap-2",children:[(0,L.jsxs)("div",{className:"withdraw-amount d-flex flex-column",children:[(0,L.jsx)("span",{className:"fw-light",children:null===j||void 0===j?void 0:j.withdrawableBalance}),(0,L.jsxs)("span",{className:"fw-bold",children:[T.L[M||"EUR"]," ",(null===G||void 0===G?void 0:G.amount)||0]})]}),(0,L.jsx)("div",{className:"reload-btn",onClick:()=>X(),children:(0,L.jsx)(C.A,{name:"rotate-solid",className:"balance-reload-icon cursor-pointer ".concat($?"rotate":""),width:"16",height:"16"})})]})}),(0,L.jsx)(u.A,{initValues:_,data:w,currencyCode:M,handleSubmit:U,amt:S,setAmt:F,type:O,setType:V,walletAmount:null===z||void 0===z||null===(x=z.userWallet)||void 0===x?void 0:x.amount,languageData:j,amtOptions:ee,minWithdraw:xe,maxWithdraw:ge,utorgCurrencies:ve,isBonusActive:(null===z||void 0===z?void 0:z.isEmailVerified)&&me,showActiveBonusForfeitWarningModal:he,setPaymentDetails:pe})]})]})})]}),!D&&!(null!==z&&void 0!==z&&z.isEmailVerified)&&!q&&(0,L.jsx)("div",{className:"user-account-email-verification",children:(0,L.jsx)("div",{className:"d-flex flex-sm-row justify-content-sm-start justify-content-center align-items-center text-center",children:(0,L.jsx)("div",{className:"w-100",children:(0,L.jsxs)("p",{className:"email-verification-text",children:[(0,L.jsx)("br",{}),ne?(0,L.jsxs)("p",{children:[null===j||void 0===j?void 0:j.pleaseVerifyFirstText," \xa0"," ",(0,L.jsx)("span",{className:"click-here-link",onClick:ie,children:null===j||void 0===j?void 0:j.clickHere})," ",null===j||void 0===j?void 0:j.pleaseVerifyLastText," "]}):(0,L.jsxs)("p",{children:[null===j||void 0===j?void 0:j.pleaseWait," \xa0"," ",(0,L.jsxs)("span",{children:[oe.minutes||"00","m:",null===oe||void 0===oe?void 0:oe.seconds,"s"]})," ",null===j||void 0===j?void 0:j.toResend]})]})})})}),W&&("cashier_iframe"===(null===se||void 0===se||null===(g=se.settings)||void 0===g?void 0:g.redirection)&&"paymentiq"===(null===se||void 0===se?void 0:se.aggregator)?(0,L.jsxs)(L.Fragment,{children:[!te&&re(),(0,L.jsx)(P.A,{showIFrame:W,setShowIFrame:de})]}):null!==Y&&void 0!==Y&&Y.redirectOutput||null!==Y&&void 0!==Y&&Y.redirect_url?(0,L.jsx)(P.A,{showIFrame:W,setShowIFrame:de,url:(null===Y||void 0===Y||null===(y=Y.redirectOutput)||void 0===y?void 0:y.url)||(null===Y||void 0===Y?void 0:Y.redirect_url),deposit:!1}):((null===Y||void 0===Y?void 0:Y.status)>=400||!Y||"FAILED"===(null===Y||void 0===Y?void 0:Y.txState))&&!D&&(0,L.jsx)("div",{className:"deposit-receipt user-account-block",children:(0,L.jsx)("div",{className:"deposit-receipt-width",children:(0,L.jsx)(I.A,{paymentStatus:Y,navigate:Z,setShow:J,setShowReceipt:J,deposit:!1,loading:ce})})})),H&&(D?(0,L.jsx)(r.A,{}):(null===K||void 0===K?void 0:K.status)>=400||!K||"FAILED"===(null===K||void 0===K?void 0:K.txState)?(0,L.jsx)("div",{className:"deposit-receipt user-account-block",children:(0,L.jsx)("div",{className:"deposit-receipt-width",children:(0,L.jsx)(I.A,{paymentStatus:K,navigate:Z,setShow:J,setShowReceipt:J,deposit:!1})})}):(0,L.jsx)("div",{className:"deposit-receipt user-account-block",children:(0,L.jsx)("div",{className:"deposit-receipt-width",children:(0,L.jsx)(I.A,{paymentStatus:K,navigate:Z,setShow:J,setShowReceipt:J,deposit:!1,fetchAmount:Q})})}))]})]})})),O=e=>{var i;let{paymentProviders:l,data:o,handleProviderClick:n,showPaymentProviders:s,languageData:t,loading:a,showWithdrawal:d,userDetails:u}=e;return s&&a?(0,L.jsx)("div",{className:"payment-providers-wrapper",children:(0,L.jsx)(r.A,{top:"20px",bottom:"20px"})}
1):(0,L.jsx)(L.Fragment,{children:(s||d)&&!a&&(null===u||void 0===u?void 0:u.isEmailVerified)&&(0,L.jsxs)("div",{className:"payment-providers-wrapper",children:[(0,L.jsx)("h2",{className:"payment-title",children:(null===t||void 0===t?void 0:t.selectPaymentMethod)||"Select Payment Method"}),l&&null!==(i=Object.keys(l))&&void 0!==i&&i.length?(0,L.jsx)("div",{className:"payment-providers-grid",children:Object.keys(l).map((e=>{var i;return null===l||void 0===l||null===(i=l[e])||void 0===i?void 0:i.map(((e,i)=>{var l;const s=(null===o||void 0===o?void 0:o.paymentProviderId)===(null===e||void 0===e?void 0:e.paymentProviderId);return(0,L.jsxs)("div",{className:"payment-card ".concat(s?"is-selected":""),role:"button","aria-pressed":s,tabIndex:"0",onClick:()=>n(e),children:[(0,L.jsx)("img",{loading:"lazy",className:"deposit-image",src:(null===e||void 0===e||null===(l=e.settings)||void 0===l?void 0:l.withdrawImageUrl)||"".concat("https://d1urdgvrz10048.cloudfront.net/static/shinywilds","/defaultpayment.svg"),alt:"Not Found"}),s&&(0,L.jsx)(C.A,{name:"cardCheck"})]},"".concat(e.paymentProviderId,"-").concat(i))}))}))}):(0,L.jsxs)("div",{className:"no-payment-providers-found",children:[(0,L.jsx)("div",{className:"no-payment-providers-icon",children:(0,L.jsx)(C.A,{name:"NoBonusAvailable",width:232,height:110})}),(0,L.jsx)("div",{className:"no-data-found-text",children:(null===t||void 0===t?void 0:t.noPaymentProvidersFound)||"No payment providers found."})]})]})})};var V=l(22264),U=l(55213),_=l(54251);const G=()=>{var e,i,l,o,n,s,t,a,d,r,u,c;const{languageData:v,showPaymentProviders:m,showWithdrawal:h,providerData:p,handleProviderClick:x,paymentProviders:g,loading:y,amt:j,setAmt:b,currencyCode:f,type:w,setType:N,handleSubmit:A,initValues:C,showIFrame:S,paymentData:I,showWithdrawList:E,userDetails:T,showReceipt:F,paymentStatus:R,navigate:M,fetchAmount:G,setShowReceipt:W,amtOptions:Y,resendVerificationLink:q,remainingTime:z,isTimeOver:H,data:K,loadPIQ:Z,sessionId:Q,setShowIFrame:J,handleLoadPIQ:X,verifyPaymentLoading:$,utorgCurrencies:ee,restrictWithdraw:ie,showActiveBonusForfeitWarningModal:le,setPaymentDetails:oe,resetPay:ne,setProviderData:se}=k();(0,B.A)({loadPIQ:Z,paymentData:I,userDetails:T,sessionId:Q,method:"withdrawal"});const te="object"===typeof(null===p||void 0===p||null===(e=p.settings)||void 0===e?void 0:e.minWithdraw)?Math.max(1,(null===p||void 0===p||null===(i=p.settings)||void 0===i?void 0:i.minWithdraw[f||"EUR"])||0):Math.max(1,(null===p||void 0===p||null===(l=p.settings)||void 0===l?void 0:l.minWithdraw)||0);let ae=null!==p&&void 0!==p&&null!==(o=p.settings)&&void 0!==o&&o.maxWithdraw?"object"===typeof(null===p||void 0===p||null===(n=p.settings)||void 0===n?void 0:n.maxWithdraw)?Number(null===p||void 0===p||null===(s=p.settings)||void 0===s?void 0:s.maxWithdraw[f||"EUR"]):Number(null===p||void 0===p||null===(t=p.settings)||void 0===t?void 0:t.maxWithdraw)||Number(null===T||void 0===T||null===(a=T.userWallet)||void 0===a?void 0:a.amount):Number(null===T||void 0===T||null===(d=T.userWallet)||void 0===d?void 0:d.amount);return ae=ae<te?te:ae,(0,L.jsxs)("div",{className:"withdraw-page-wrapper-v2",children:[(0,L.jsx)("div",{className:"withdraw-v2-header",children:(null===v||void 0===v?void 0:v.withdrawFunds)||"Withdraw funds"}),(0,L.jsxs)("div",{className:"withdraw-page-wrapper-v2-content",children:[(0,L.jsx)(L.Fragment,{children:!E&&(null===T||void 0===T?void 0:T.isEmailVerified)&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("div",{className:"withdraw-page-left-section",children:(0,L.jsx)(O,{paymentProviders:g,data:K,handleProviderClick:x,showPaymentProviders:m,languageData:v,loading:y,showWithdrawal:h,userDetails:T})}),(0,L.jsx)("div",{className:"withdraw-page-right-section",children:h&&(0,L.jsx)(V.A,{deposit:!1,initValues:C,data:p,currencyCode:f,handleSubmit:A,amt:j,setAmt:b,type:w,setType:N,walletAmount:null===T||void 0===T||null===(r=T.userWallet)||void 0===r?void 0:r.amount,languageData:v,amtOptions:Y,minWithdraw:te,maxWithdraw:ae,utorgCurrencies:ee,isBonusActive:(null===T||void 0===T?void 0:T.isEmailVerified)&&ie,showActiveBonusForfeitWarningModal:le,setPaymentDetails:oe})})]})}),!y&&T&&!(null!==T&&void 0!==T&&T.isEmailVerified)&&!E&&(0,L.jsx)("div",{className:"user-account-email-verification-v2",children:(0,L.jsxs)("div",{className:"user-account-email-verification-v2-content",children:[(0,L.jsxs)("div",{className:"user-account-email-verification-v2-left-section",children:[(0,L.jsx)("div",{className:"user-account-email-verification-title",children:(null===v||void 0===v?void 0:v.emailVerificationTitle)||"Before you start withdrawing"}),(0,L.jsx)("div",{className:"user-account-email-verification-description",children:H?(0,L.jsx)("p",{children:null===v||void 0===v?void 0:v.pleaseVerifyFirstText}):(0,L.jsxs)("p",{children:[null===v||void 0===v?void 0:v.pleaseWait," \xa0"," ",(0,L.jsxs)("span",{children:[z.minutes||"00","m:",null===z||void 0===z?void 0:z.seconds,"s"]}),null===v||void 0===v?void 0:v.toResend]})})]}),(0,L.jsx)("div",{className:"user-account-email-verification-v2-right-section",children:(0,L.jsx)(U.Ay,{variant:D.Vt.SECONDARY,onClick:q,disabled:!H,children:(null===v||void 0===v?void 0:v.resendEmailVerificationText)||"Re-send Verification
1Email"})})]})}),S&&("cashier_iframe"===(null===K||void 0===K||null===(u=K.settings)||void 0===u?void 0:u.redirection)&&"paymentiq"===(null===K||void 0===K?void 0:K.aggregator)?(0,L.jsxs)(L.Fragment,{children:[!Z&&X(),(0,L.jsx)(P.A,{showIFrame:S,setShowIFrame:J})]}):null!==I&&void 0!==I&&I.redirectOutput||null!==I&&void 0!==I&&I.redirect_url?(0,L.jsx)(P.A,{showIFrame:S,setShowIFrame:J,url:(null===I||void 0===I||null===(c=I.redirectOutput)||void 0===c?void 0:c.url)||(null===I||void 0===I?void 0:I.redirect_url),deposit:!1}):((null===I||void 0===I?void 0:I.status)>=400||!I||"FAILED"===(null===I||void 0===I?void 0:I.txState))&&!y&&(0,L.jsx)(_.A,{showModal:!0,paymentStatus:I,navigate:M,setShow:W,deposit:!1,loading:$,provider:null===p||void 0===p?void 0:p.name,onClose:()=>{ne()}})),F&&(0,L.jsx)(L.Fragment,{children:(null===R||void 0===R?void 0:R.status)>=400||!R||"FAILED"===(null===R||void 0===R?void 0:R.txState)?(0,L.jsx)(_.A,{showModal:!0,paymentStatus:R,navigate:M,setShow:W,deposit:!1,loading:y,provider:null===p||void 0===p?void 0:p.name,onClose:()=>{ne()}}):(0,L.jsx)(_.A,{showModal:!0,paymentStatus:R,navigate:M,setShow:W,deposit:!1,fetchAmount:G,loading:y,provider:null===p||void 0===p?void 0:p.name,onClose:()=>{ne(),se({})}})})]})]})},W=e=>{var i;const l=(0,s.d4)((e=>{var i;return null===(i=e.uiConfig)||void 0===i?void 0:i.general})),n=null!==(i=null===l||void 0===l?void 0:l.withdrawPageVariant)&&void 0!==i?i:t.Qc.V1;return("object"===typeof n&&null!==n&&void 0!==n&&n.variant?n.variant:n)===t.Qc.V2?(0,L.jsx)(G,(0,o.A)({},e)):(0,L.jsx)(M,(0,o.A)({},e))}},64495:(e,i,l)=>{l.d(i,{Sn:()=>a,U0:()=>d,n$:()=>t});var o=l(24359),n=l(95557);const s="wss://api.shinywilds.com",t=(0,o.Ay)("".concat(s,"/wallet"),{auth:{token:(0,n.zv)()},transports:["websocket","polling"],path:"/socket.io",reconnectionAttempts:10}),a=(0,o.Ay)("".concat(s,"/game"),{auth:{token:(0,n.zv)()},transports:["websocket","polling"],path:"/socket.io",reconnectionAttempts:10}),d=(0,o.Ay)("".concat(s,"/paymentStatus"),{auth:{token:(0,n.zv)()},transports:["websocket","polling"],path:"/socket.io",reconnectionAttempts:10})},48523:(e,i,l)=>{l.d(i,{G:()=>n,I:()=>o});const o=e=>({deposit:{title:null===e||void 0===e?void 0:e.headerDeposit,icon:"account-menu-deposit"},withdraw:{title:null===e||void 0===e?void 0:e.headerWithdrawFunds,icon:"account-menu-withdraw"},"pending-withdrawals":{title:null===e||void 0===e?void 0:e.pendingWithdrawal,icon:"account-menu-pending-withdrawals"},dashboard:{title:(null===e||void 0===e?void 0:e.dashboard)||"Dashboard",icon:"account-menu-dashboard"},"account-info":{title:null===e||void 0===e?void 0:e.headerAccAndInfo,icon:"account-menu-account-info"},"account-verify":{title:null===e||void 0===e?void 0:e.headerAccVerify,icon:"account-menu-account-verify"},transaction:{title:null===e||void 0===e?void 0:e.headerTransactionHistory,icon:"account-menu-transaction"},limits:{title:null===e||void 0===e?void 0:e.headerLimits,icon:"account-menu-limits"},"favourite-games":{title:null===e||void 0===e?void 0:e.favouriteGames,icon:"hollow-star"}}),n=(e,i)=>e?Array.isArray(e)?e:"object"===typeof e?i?e.loggedIn||null:e.loggedOut||null:null:null},2987:(e,i,l)=>{l.d(i,{A:()=>s,f:()=>n});var o=l(9950);const n=()=>{const e=(0,o.useRef)(!0);return(0,o.useEffect)((()=>{e.current=!1}),[]),e.current},s=n},11867:()=>{}}]);
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.