@everymatrix/player-account-gaming-limits-wrapper-2 1.65.2 → 1.65.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{PlayerAccountGamingLimitsHistory2-DrjkyFQ_.js → PlayerAccountGamingLimitsHistory2-B4s3YDEv.js} +1079 -1114
- package/components/{PlayerAccountGamingLimitsHistory2-GArV24bp.js → PlayerAccountGamingLimitsHistory2-CPnhIE86.js} +1047 -1082
- package/components/PlayerAccountGamingLimitsHistory2-Czvses-l.cjs +18 -0
- package/components/{PlayerAccountGamingLimitsPage2Gm16-DviV4_mb.js → PlayerAccountGamingLimitsPage2Gm16-BWgbBViW.js} +99 -99
- package/components/{PlayerAccountGamingLimitsPage2Gm16-DVWlVHyp.cjs → PlayerAccountGamingLimitsPage2Gm16-Cfs4v64C.cjs} +2 -2
- package/components/{PlayerAccountGamingLimitsPage2Gm16-DLX58h4T.js → PlayerAccountGamingLimitsPage2Gm16-DeDGCiiU.js} +118 -118
- package/components/{PlayerAccountGamingLimitsWrapper2-N-KDOrZU.js → PlayerAccountGamingLimitsWrapper2-BsQ3ORnE.js} +40 -40
- package/components/{PlayerAccountGamingLimitsWrapper2-BvCmyyWg.js → PlayerAccountGamingLimitsWrapper2-DDXQBrBg.js} +64 -64
- package/components/{PlayerAccountGamingLimitsWrapper2-RZwb1Aj0.cjs → PlayerAccountGamingLimitsWrapper2-N_r02AJE.cjs} +1 -1
- package/es2015/player-account-gaming-limits-wrapper-2.cjs +1 -1
- package/es2015/player-account-gaming-limits-wrapper-2.js +1 -1
- package/esnext/player-account-gaming-limits-wrapper-2.js +1 -1
- package/package.json +1 -1
- package/stencil/index-b2193545-CayB6jRX.js +519 -0
- package/stencil/index-b2193545-DrvOqGyq.js +503 -0
- package/stencil/index-b2193545-lC_KoC4p.cjs +1 -0
- package/stencil/{ui-skeleton-1cb75d00-CUSs6C3A.cjs → ui-skeleton-1cb75d00-6KKxtHwu.cjs} +1 -1
- package/stencil/{ui-skeleton-1cb75d00-CXHx_pAM.js → ui-skeleton-1cb75d00-BAHBT-wb.js} +1 -1
- package/stencil/{ui-skeleton-1cb75d00-z2mX3TRi.js → ui-skeleton-1cb75d00-BPfsKHrC.js} +1 -1
- package/stencil/{ui-skeleton-CCXvjIzA.cjs → ui-skeleton-CaX4F6ue.cjs} +1 -1
- package/stencil/{ui-skeleton-4ifa-7wH.js → ui-skeleton-QVfoKja7.js} +2 -2
- package/stencil/{ui-skeleton-Bk5dn5mu.js → ui-skeleton-b2oavT4f.js} +2 -2
- package/components/PlayerAccountGamingLimitsHistory2-DRH0naic.cjs +0 -18
- package/stencil/index-b2193545-BcYyCldH.js +0 -519
- package/stencil/index-b2193545-CPztmidm.js +0 -503
- package/stencil/index-b2193545-D1Z0k4-D.cjs +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var Gt=Object.defineProperty;var Me=Object.getOwnPropertySymbols;var Kt=Object.prototype.hasOwnProperty,Ht=Object.prototype.propertyIsEnumerable;var Pe=(n,t,i)=>t in n?Gt(n,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):n[t]=i,ce=(n,t)=>{for(var i in t||(t={}))Kt.call(t,i)&&Pe(n,i,t[i]);if(Me)for(var i of Me(t))Ht.call(t,i)&&Pe(n,i,t[i]);return n};Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./PlayerAccountGamingLimitsHistory2-
|
|
1
|
+
"use strict";var Gt=Object.defineProperty;var Me=Object.getOwnPropertySymbols;var Kt=Object.prototype.hasOwnProperty,Ht=Object.prototype.propertyIsEnumerable;var Pe=(n,t,i)=>t in n?Gt(n,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):n[t]=i,ce=(n,t)=>{for(var i in t||(t={}))Kt.call(t,i)&&Pe(n,i,t[i]);if(Me)for(var i of Me(t))Ht.call(t,i)&&Pe(n,i,t[i]);return n};Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./PlayerAccountGamingLimitsHistory2-Czvses-l.cjs");require("../stencil/ui-skeleton-CaX4F6ue.cjs");const z={lugas:{title:"Deposit Limit",value:"lugas",callValue:"lugasLimit",callValue16:"Lugas"},deposit:{title:"Deposit Limit",value:"deposit",callValue:"depositLimits",callValue16:"Deposit"},loss:{title:"Loss Limit",value:"loss",callValue:"lossLimits",callValue16:"Loss"},wager:{title:"Wager Limit",value:"wager",callValue:"wageringLimits",callValue16:"Wagering"},stake:{title:"Stake Limit",value:"stake",callValue:"maxStake",callValue16:"MaxStake"},sessionLimit:{title:"Single Session Time Limit",value:"sessionLimit",callValue:"sessionLimits",callValue16:"sessionLimit"},cumulativeSession:{title:"Cumulative Session Time Limit",value:"cumulativeSession",callValue:"cumulativeSessionLimits",callValue16:"cumulativeSession"},netdeposit:{title:"Net Deposit Limit",value:"netdeposit",callValue:"netDepositLimits",callValue16:"NetDeposit"}};function ze(n,t){e.addMessages(n,t)}function Yt(n){e.$locale.set(n)}const ee={en:{loadingText:"Loading, please wait...",Monthly:"per month",Weekly:"per week",Daily:"per day",newDailyLimit:"New daily limit",newWeeklyLimit:"New weekly limit",newMonthlyLimit:"New monthly limit",adjectiveMonthly:"monthly",adjectiveWeekly:"weekly",adjectiveDaily:"daily",None:"",noPeriod:".",per:"per",seconds:"seconds",updateText:"will be applied on",updateAfterConfirm:"will be applied after confirmation",acknowledgedLimit:"Limit update confirmed and will be applied in ~1 min",removedLimitText:"The limit will be removed on",removeAfterConfirm:"The limit will be removed after confirmation.",noLimitText:"There is currently no limit set.",lugasPrivacy:"The cross-provider LUGAS limit is not visible to providers.",limitType:"Limit Type",period:"Period",amount:"Amount",minutes:"minutes",setLimit:"SET LIMIT",loss:"Loss Limit",lossAll:"Loss Limit",lossCasino:"Loss Limit",lossSports:"Loss Limit",deposit:"Deposit Limit",depositAll:"Deposit Limit",depositCasino:"Deposit Limit",depositSports:"Deposit Limit",wager:"Wager Limit",stake:"Stake Limit",stakeAll:"Stake Limit",stakeCasino:"Stake Limit",stakeSports:"Stake Limit",lugas:"Current Deposit Limit",lugasAll:"Current Deposit Limit",lugasCasino:"Current Deposit Limit",lugasSports:"Current Deposit Limit",wagerAll:"Wager Limit",wagerCasino:"Slots Limit",wagerSports:"Stake Limit",sessionLimit:"Single Session Time Limit",sessionLimitUpdated:"Session limit updated successfully.",cumulativeSession:"Period Time Limit",removeLimit:"REMOVE",confirmUpdateLimit:"CONFIRM",cancelUpdateLimit:"CANCEL",reloadLimitsButton:"RELOAD",setLimit:"Set new limit",popupPendingUpdate:"We have received the request to change the limit. Please be aware that the update will only come into effect on",popupImmediateUpdate:"Your new {selectedLimit} is {updatedAmount} {selectedPeriod}",popupTitle:"Limit changed",popupSuccess:"Successful",popupError:"An error has occurred.",popupUpdateLimitException:"You can change your self-limiting settings after the specified limitation period has expired.",popupRemoveLimitException:"You can change your self-limiting settings after the specified limitation period has expired.",notFoundException:"Limit does not exist",sessionExpiredException:"Your session has expired",popup3:`Thank you!
|
|
2
2
|
We have transmited your desired limit to Lugas
|
|
3
3
|
Please be aware that the limit will only come into effect after 8 days at the latest.`,popup2_a:"We were able to set your monthly deposit limit to",popup2_b:". For the selected limit, we require documents that show your economic capacity. Please upload your last payslip as well as a current bank statement, including the balance, that confirms that you received the payment.",kycNeeded2:". In order to increase the limit to the desired amount, we ask you to provide us with the relevant information. This information can be submitted in the document upload.",uploadDocumentsButton:"UPLOAD DOCUMENTS",closeButton:"CLOSE",invalidInputMessageLimitMin:"The value entered must be higher than {minValue} {currency}.",invalidInputMessageLimitMax:"The value entered must be less than {maxValue} {currency}.",unableToUpdatePendingRequest:"We were unable to update your limit because another update is already pending. Please try again after the current update is applied.",internalServerError:"Unfortunately, there was an error setting your LUGAS limit. Please try again or contact our customer support at <a href='mailto:support.de@bet-at-home.com' target='_blank'>support.de@bet-at-home.com</a>.",docsRequired:"Documents required!",okButton:"OK",complianceText:"As an authorized operator, it applies the necessary limits imposed by the government","dataLayer-sports":"Sports","dataLayer-casino":"Casino","dataLayer-wager":"Wager","dataLayer-loss":"Loss","dataLayer-deposit":"Deposit","dataLayer-daily":"Daily","dataLayer-weekly":"Weekly","dataLayer-monthly":"Monthly",netdepositAll:"Net Deposit Limit"},hu:{loadingText:"` Az oldal töltődik, kérlek várj…`",Monthly:"Havi",Weekly:"Heti",Daily:"Napi",adjectiveMonthly:"Havi",adjectiveWeekly:"Heti",adjectiveDaily:"Napi",newDailyLimit:"Új napi limit",newWeeklyLimit:"Új heti limit",newMonthlyLimit:"Új havi limit",None:" ",noPeriod:".",per:"per",updateText:"beállításod érvénybe lépési ideje:",removedLimitText:"A limitet töröljük.",noLimitText:"Nincs limit beállítva",lugasPrivacy:"A szolgáltatóközi LUGAS-limit a szolgáltatók számára nem látható.",limitType:"Limit típus",period:"Időszak",amount:"Összeg",minutes:" perc",new:"Új",limit:"limit",setLimit:"Limit beállítása",loss:"Veszteség limit",deposit:"Befizetési limit",depositAll:"Befizetési limit",wager:"Fogadási limit",stake:"Fogadási limit",lugas:"Aktuális befizetési limit",wagerCasino:"Fogadási limit",wagerSports:"Fogadási limit",sessionLimit:"Munkamenet időkorlátja",sessionLimitUpdated:"A munkamenet időkorlátját frissítettük.",cumulativeSession:"Időszakos időkorlát",removeLimit:"Limit törlése",popupPendingUpdate:"Limit módosítási kérésed megkaptuk. Kérjük, vedd figyelembe, hogy a frissítés csak ekkor lép életbe: ",popupImmediateUpdate:"Az új {selectedLimit}: {updatedAmount} {selectedPeriod}",popupTitle:" ",popupSuccess:"Limitbeállításaidat sikeresen elmentettük.",popupError:"Hiba történt.",kycNotNeeded:"A befizetési limitet sikeresen beállítottuk. Limitjeid bármikor módosíthatod a fiókbeállításokban.",kycNeeded1:"Havi befizetési limitre a következő összeg került beállításra:",kycNeeded2:". Ahhoz, hogy a limitet a kért összegre emeljük, kérjük, dokumentumok feltöltésével add meg a szükséges információkat.",uploadDocumentsButton:"DOKUMENTUMOK FELTÖLTÉSE",closeButton:"BEZÁR",invalidInputMessageLimit:"`A megadott értéknek {minValue} és {maxValue} {currency} között kell lennie.`",unableToUpdatePendingRequest:"Nem tudtuk frissíteni a limited, mert egy másik frissítés már folyamatban van. Kérjük, próbáld meg újra, miután az aktuális frissítés beállításra került.",docsRequired:"A dokumentumok feltöltése kötelező.",okButton:"Rendben",lossAll:"Veszteség limit",lossCasino:"Veszteség limit",lossSports:"Veszteség limit",seconds:"másodpercek",updateText:"alkalmazva lesz",updateAfterConfirm:"jóváhagyás után kerül alkalmazásra",acknowledgedLimit:"A limit frissítése megerősítve, és ~1 percen belül alkalmazásra kerül",removedLimitText:"A limit eltávolításra kerül",removeAfterConfirm:"A limit jóváhagyás után kerül eltávolításra",confirmUpdateLimit:"MEGERŐSÍTÉS",cancelUpdateLimit:"MÉGSE",reloadLimitsButton:"FRISSÍTÉS",popupUpdateLimit:"Önkorlátozási beállításaidat a megadott korlátozási időtartam leteltét követően tudod módosítani.",popupUpdateLimitException:"Önkorlátozási beállításaidat a megadott korlátozási időtartam leteltét követően tudod módosítani.",popupRemoveLimitException:"Önkorlátozási beállításaidat a megadott korlátozási időtartam leteltét követően tudod módosítani.",sessionExpiredException:"A munkamenet lejárt","dataLayer-sports":"Sportfogadás","dataLayer-casino":"Kaszinó","dataLayer-all":"Minden","dataLayer-wager":"Fogadási limit","dataLayer-loss":"Veszteség limit","dataLayer-deposit":"Befizetési limit","dataLayer-daily":"Napi","dataLayer-weekly":"Heti","dataLayer-monthly":"Havi",netdepositAll:"Nettó befizetési limit"},de:{loadingText:"Lädt ...",Monthly:"pro Monat",Weekly:"pro Woche",Daily:"pro Tag",newDailyLimit:"Neues Tageslimit",newWeeklyLimit:"Neues Wochenlimit",newMonthlyLimit:"Neues Monatslimit",adjectiveMonthly:"Monatlich",adjectiveWeekly:"Wöchentlich",adjectiveDaily:"Täglich",None:"",noPeriod:".",per:"pro",updateText:"Anwendung am",removedLimitText:"Entfernung des Limits am",noLimitText:"Derzeit ist kein Limit gesetzt.",lugasPrivacy:"Das anbieterübergreifende LUGAS-Limit ist für Anbieter nicht einsehbar.",limitType:"Limitart",period:"Zeitraum",amount:"Betrag",minutes:"minute",setLimit:"LIMIT SETZEN",loss:"Verlustlimit",lossAll:"Loss Limit",lossCasino:"Loss Limit",lossSports:"Loss Limit",depositAll:"Deposit Limit",depositCasino:"Deposit Limit",depositSports:"Deposit Limit",stakeAll:"Stake Limit",stakeCasino:"Stake Limit",stakeSports:"Stake Limit",lugasAll:"Current Deposit Limit",lugasCasino:"Current Deposit Limit",lugasSports:"Current Deposit Limit",wagerAll:"Wager Limit",deposit:"Einzahlungslimit",wager:"Einsatzlimit",stake:"Einsatzlimit",lugas:"Aktuelles Einzahlungslimit",sessionLimit:"Single Session Time Limits",cumulativeSession:"Period Time Limit",removeLimit:"ENTFERNEN",setLimit:"Neues Limit setzen",popupError:"Es ist ein Fehler aufgetreten.",popupPendingUpdate:"Wir haben die Anfrage zur Änderung des Limits erhalten. Bitte beachten Sie, dass die Änderung erst in Kraft tritt am",popupImmediateUpdate:"Ihre neues Limit {selectedLimit} beträgt {updatedAmount} {selectedPeriod}",popupTitle:"Limit geändert!",popupSuccess:"Erfolgreich",popup3:`Vielen Dank!
|
|
4
4
|
Wir haben Ihr gewünschtes Limit an Lugas übermittelt.
|
|
@@ -21,4 +21,4 @@
|
|
|
21
21
|
S12.767,2,26,2s24,10.767,24,24S39.233,50,26,50z`),e.attr(s,"d",`M35.707,16.293c-0.391-0.391-1.023-0.391-1.414,0L26,24.586l-8.293-8.293c-0.391-0.391-1.023-0.391-1.414,0
|
|
22
22
|
s-0.391,1.023,0,1.414L24.586,26l-8.293,8.293c-0.391,0.391-0.391,1.023,0,1.414C16.488,35.902,16.744,36,17,36
|
|
23
23
|
s0.512-0.098,0.707-0.293L26,27.414l8.293,8.293C34.488,35.902,34.744,36,35,36s0.512-0.098,0.707-0.293
|
|
24
|
-
c0.391-0.391,0.391-1.023,0-1.414L27.414,26l8.293-8.293C36.098,17.316,36.098,16.684,35.707,16.293z`),e.attr(t,"version","1.1"),e.attr(t,"id","Capa_1"),e.attr(t,"xmlns","http://www.w3.org/2000/svg"),e.attr(t,"xmlns:xlink","http://www.w3.org/1999/xlink"),e.attr(t,"x","0px"),e.attr(t,"y","0px"),e.attr(t,"viewBox","0 0 52 52"),e.set_style(t,"enable-background","new 0 0 52 52"),e.attr(t,"xml:space","preserve")},m(M,P){e.insert(M,t,P),e.append(t,i),e.append(i,a),e.append(i,s),e.append(t,l),e.append(t,r),e.append(t,u),e.append(t,p),e.append(t,d),e.append(t,L),e.append(t,h),e.append(t,T),e.append(t,v),e.append(t,S),e.append(t,O),e.append(t,B),e.append(t,I),e.append(t,U),e.append(t,j)},d(M){M&&e.detach(t)}}}function ii(n){let t,i=n[26]("popupSuccess")+"",a;return{c(){t=e.element("p"),a=e.text(i)},m(s,l){e.insert(s,t,l),e.append(t,a)},p(s,l){l[0]&67108864&&i!==(i=s[26]("popupSuccess")+"")&&e.set_data(a,i)},d(s){s&&e.detach(t)}}}function ai(n){let t,i=n[26]("docsRequired")+"",a;return{c(){t=e.element("p"),a=e.text(i)},m(s,l){e.insert(s,t,l),e.append(t,a)},p(s,l){l[0]&67108864&&i!==(i=s[26]("docsRequired")+"")&&e.set_data(a,i)},d(s){s&&e.detach(t)}}}function ni(n){let t,i=n[26]("popupError")+"",a;return{c(){t=e.element("p"),a=e.text(i)},m(s,l){e.insert(s,t,l),e.append(t,a)},p(s,l){l[0]&67108864&&i!==(i=s[26]("popupError")+"")&&e.set_data(a,i)},d(s){s&&e.detach(t)}}}function oi(n){let t,i=n[26]("okButton")+"",a,s,l;return{c(){t=e.element("button"),a=e.text(i),e.attr(t,"class","ConfirmButton")},m(r,u){e.insert(r,t,u),e.append(t,a),s||(l=e.listen(t,"click",n[39]),s=!0)},p(r,u){u[0]&67108864&&i!==(i=r[26]("okButton")+"")&&e.set_data(a,i)},d(r){r&&e.detach(t),s=!1,l()}}}function si(n){let t,i=n[26]("uploadDocumentsButton")+"",a,s,l=n[26]("closeButton")+"",r,u,p;return{c(){t=e.element("button"),a=e.space(),s=e.element("button"),r=e.text(l),e.attr(t,"class","ConfirmButton"),e.attr(s,"class","CloseButton")},m(d,L){e.insert(d,t,L),t.innerHTML=i,e.insert(d,a,L),e.insert(d,s,L),e.append(s,r),u||(p=[e.listen(t,"click",n[40]),e.listen(s,"click",n[39])],u=!0)},p(d,L){L[0]&67108864&&i!==(i=d[26]("uploadDocumentsButton")+"")&&(t.innerHTML=i),L[0]&67108864&&l!==(l=d[26]("closeButton")+"")&&e.set_data(r,l)},d(d){d&&(e.detach(t),e.detach(a),e.detach(s)),u=!1,e.run_all(p)}}}function li(n){let t,i,a,s,l,r,u,p,d,L,h=n[15]?`${n[26]("amount")}`:`${n[26](`new${n[8]}Limit`)}`,T,v,S,O,B,I,U=n[26]("setLimit")+"",j,M,P,A,k=e.ensure_array_like(n[6]),x=[];for(let w=0;w<k.length;w+=1)x[w]=Fe(Ne(n,k,w));let _=n[1]==="true"&&Ge(n),g=n[14]&&Ke(n),b=n[15]&&Ye(n),N=n[24]&&Ze(n);return{c(){t=e.element("div"),i=e.element("div"),a=e.element("div");for(let w=0;w<x.length;w+=1)x[w].c();s=e.space(),l=e.element("form"),_&&_.c(),r=e.space(),g&&g.c(),u=e.space(),b&&b.c(),p=e.space(),d=e.element("label"),L=e.element("span"),T=e.text(h),v=e.space(),S=e.element("input"),O=e.space(),N&&N.c(),B=e.space(),I=e.element("button"),j=e.text(U),e.attr(a,"class","LimitsList "+(n[27]?"Desktop":"")),e.attr(L,"class","LimitInputText"),e.attr(S,"type","number"),e.attr(S,"pattern","[0-9]*"),e.attr(d,"class","LimitAmountInputWrapper"),e.attr(I,"class","LimitSubmitButton"),e.attr(I,"type","button"),I.disabled=!0,e.attr(l,"class","LimitsInteractionArea "+(n[27]?"Desktop":"")),e.attr(i,"class","LimitsPageContainer"),e.attr(t,"class",M="player-account-gaming-limits-page-2-gm16 "+("LimitTab"+n[3]))},m(w,C){e.insert(w,t,C),e.append(t,i),e.append(i,a);for(let R=0;R<x.length;R+=1)x[R]&&x[R].m(a,null);e.append(i,s),e.append(i,l),_&&_.m(l,null),e.append(l,r),g&&g.m(l,null),e.append(l,u),b&&b.m(l,null),e.append(l,p),e.append(l,d),e.append(d,L),e.append(L,T),e.append(d,v),e.append(d,S),e.set_input_value(S,n[10]),e.append(d,O),N&&N.m(d,null),e.append(l,B),e.append(l,I),e.append(I,j),n[64](I),P||(A=[e.listen(S,"input",n[63]),e.listen(S,"keydown",n[41]),e.listen(S,"keyup",n[32]),e.listen(I,"click",n[30]),e.listen(l,"submit",n[30])],P=!0)},p(w,C){if(C[0]&234881092|C[1]&249){k=e.ensure_array_like(w[6]);let R;for(R=0;R<k.length;R+=1){const $=Ne(w,k,R);x[R]?x[R].p($,C):(x[R]=Fe($),x[R].c(),x[R].m(a,null))}for(;R<x.length;R+=1)x[R].d(1);x.length=k.length}w[1]==="true"?_?_.p(w,C):(_=Ge(w),_.c(),_.m(l,r)):_&&(_.d(1),_=null),w[14]?g?g.p(w,C):(g=Ke(w),g.c(),g.m(l,u)):g&&(g.d(1),g=null),w[15]?b?b.p(w,C):(b=Ye(w),b.c(),b.m(l,p)):b&&(b.d(1),b=null),C[0]&67141888&&h!==(h=w[15]?`${w[26]("amount")}`:`${w[26](`new${w[8]}Limit`)}`)&&e.set_data(T,h),C[0]&1024&&e.to_number(S.value)!==w[10]&&e.set_input_value(S,w[10]),w[24]?N?N.p(w,C):(N=Ze(w),N.c(),N.m(d,null)):N&&(N.d(1),N=null),C[0]&67108864&&U!==(U=w[26]("setLimit")+"")&&e.set_data(j,U),C[0]&8&&M!==(M="player-account-gaming-limits-page-2-gm16 "+("LimitTab"+w[3]))&&e.attr(t,"class",M)},d(w){w&&e.detach(t),e.destroy_each(x,w),_&&_.d(),g&&g.d(),b&&b.d(),N&&N.d(),n[64](null),P=!1,e.run_all(A)}}}function ri(n){let t;return{c(){t=e.element("p"),t.textContent="500 Server error"},m(i,a){e.insert(i,t,a)},p:e.noop,d(i){i&&e.detach(t)}}}function mi(n){let t,i,a,s,l,r,u=e.ensure_array_like(Array(3)),p=[];for(let d=0;d<u.length;d+=1)p[d]=_i(Zt(n,u,d));return{c(){t=e.element("div"),i=e.element("div"),a=e.element("div"),a.innerHTML='<ui-skeleton width="auto" height="20px" structure="text" margin-right="auto"></ui-skeleton>',s=e.space();for(let d=0;d<p.length;d+=1)p[d].c();l=e.space(),r=e.element("div"),r.innerHTML='<div class="skletonHeader"><ui-skeleton width="auto" height="15px" structure="title" margin-right="auto"></ui-skeleton></div> <div class="skeletonPeriod"><ui-skeleton width="auto" height="50px" structure="rectangle" margin-right="auto"></ui-skeleton></div> <div class="skletonHeader"><ui-skeleton width="auto" height="15px" structure="title" margin-right="auto"></ui-skeleton></div> <div class="skeletonInputAmount"><ui-skeleton width="auto" height="50px" structure="rectangle" margin-right="auto"></ui-skeleton></div> <div class="skeletonButton"><ui-skeleton width="auto" height="40px" structure="rectangle" margin-right="auto"></ui-skeleton></div>',e.attr(a,"class","skeletonLimitText"),e.attr(i,"class","skeletonLimitWrapper"),e.attr(r,"class","skeletonInputWrapper"),e.attr(t,"class","skeletonLimitContainer")},m(d,L){e.insert(d,t,L),e.append(t,i),e.append(i,a),e.append(i,s);for(let h=0;h<p.length;h+=1)p[h]&&p[h].m(i,null);e.append(t,l),e.append(t,r)},p:e.noop,d(d){d&&e.detach(t),e.destroy_each(p,d)}}}function di(n){let t,i,a,s=n[26]("noLimitText")+"",l;return{c(){t=e.element("div"),i=e.element("div"),a=e.element("div"),l=e.text(s),e.attr(a,"class","LimitDetailsTextWrapper"),e.attr(i,"class","LimitDetailsWrapper"),e.attr(t,"class","LimitDetails")},m(r,u){e.insert(r,t,u),e.append(t,i),e.append(i,a),e.append(a,l)},p(r,u){u[0]&67108864&&s!==(s=r[26]("noLimitText")+"")&&e.set_data(l,s)},d(r){r&&e.detach(t)}}}function ui(n){let t,i,a,s=n[26]("lugasPrivacy")+"",l;return{c(){t=e.element("div"),i=e.element("div"),a=e.element("div"),l=e.text(s),e.attr(a,"class","LimitDetailsTextWrapper"),e.attr(i,"class","LimitDetailsWrapper"),e.attr(t,"class","LimitDetails")},m(r,u){e.insert(r,t,u),e.append(t,i),e.append(i,a),e.append(a,l)},p(r,u){u[0]&67108864&&s!==(s=r[26]("lugasPrivacy")+"")&&e.set_data(l,s)},d(r){r&&e.detach(t)}}}function pi(n){let t,i=e.ensure_array_like(n[126].currentLimits),a=[];for(let s=0;s<i.length;s+=1)a[s]=qe(Re(n,i,s));return{c(){for(let s=0;s<a.length;s+=1)a[s].c();t=e.empty()},m(s,l){for(let r=0;r<a.length;r+=1)a[r]&&a[r].m(s,l);e.insert(s,t,l)},p(s,l){if(l[0]&234881092|l[1]&185){i=e.ensure_array_like(s[126].currentLimits);let r;for(r=0;r<i.length;r+=1){const u=Re(s,i,r);a[r]?a[r].p(u,l):(a[r]=qe(u),a[r].c(),a[r].m(t.parentNode,t))}for(;r<a.length;r+=1)a[r].d(1);a.length=i.length}},d(s){s&&e.detach(t),e.destroy_each(a,s)}}}function ci(n){let t,i,a,s=n[26]("lugasPrivacy")+"",l;return{c(){t=e.element("div"),i=e.element("div"),a=e.element("div"),l=e.text(s),e.attr(a,"class","LimitDetailsTextWrapper"),e.attr(i,"class","LimitDetailsWrapper"),e.attr(t,"class","LimitDetails")},m(r,u){e.insert(r,t,u),e.append(t,i),e.append(i,a),e.append(a,l)},p(r,u){u[0]&67108864&&s!==(s=r[26]("lugasPrivacy")+"")&&e.set_data(l,s)},d(r){r&&e.detach(t)}}}function Li(n){let t,i=`${n[38](n[131])}`,a;return{c(){t=e.element("span"),a=e.text(i)},m(s,l){e.insert(s,t,l),e.append(t,a)},p(s,l){l[0]&64&&i!==(i=`${s[38](s[131])}`)&&e.set_data(a,i)},d(s){s&&e.detach(t)}}}function fi(n){let t,i=`${n[38](n[131],!0)}`,a;return{c(){t=e.element("span"),a=e.text(i)},m(s,l){e.insert(s,t,l),e.append(t,a)},p(s,l){l[0]&64&&i!==(i=`${s[38](s[131],!0)}`)&&e.set_data(a,i)},d(s){s&&e.detach(t)}}}function gi(n){let t,i,a=`${n[38](n[131],!0)}`,s,l;function r(d,L){return d[131].isCoolOffCompleted?bi:ki}let u=r(n),p=u(n);return{c(){t=e.element("div"),i=e.element("span"),s=e.text(a),l=e.space(),p.c(),e.attr(t,"class","PendingLimit")},m(d,L){e.insert(d,t,L),e.append(t,i),e.append(i,s),e.append(t,l),p.m(t,null)},p(d,L){L[0]&64&&a!==(a=`${d[38](d[131],!0)}`)&&e.set_data(s,a),u===(u=r(d))&&p?p.p(d,L):(p.d(1),p=u(d),p&&(p.c(),p.m(t,null)))},d(d){d&&e.detach(t),p.d()}}}function hi(n){let t,i=`${n[26]("removedLimitText")} ${n[131].expiryDate}`,a;return{c(){t=e.element("div"),a=e.text(i),e.attr(t,"class","PendingLimit")},m(s,l){e.insert(s,t,l),e.append(t,a)},p(s,l){l[0]&67108928&&i!==(i=`${s[26]("removedLimitText")} ${s[131].expiryDate}`)&&e.set_data(a,i)},d(s){s&&e.detach(t)}}}function yi(n){let t,i=`${n[26]("removeAfterConfirm")}`,a;return{c(){t=e.element("div"),a=e.text(i),e.attr(t,"class","PendingLimit")},m(s,l){e.insert(s,t,l),e.append(t,a)},p(s,l){l[0]&67108864&&i!==(i=`${s[26]("removeAfterConfirm")}`)&&e.set_data(a,i)},d(s){s&&e.detach(t)}}}function vi(n){let t,i=`${n[26]("acknowledgedLimit")}`,a;return{c(){t=e.element("div"),a=e.text(i),e.attr(t,"class","PendingLimit")},m(s,l){e.insert(s,t,l),e.append(t,a)},p(s,l){l[0]&67108864&&i!==(i=`${s[26]("acknowledgedLimit")}`)&&e.set_data(a,i)},d(s){s&&e.detach(t)}}}function ki(n){let t=`${n[131].period!=="None"||n[131].value!=="cumulativeSession"?" ":n[26]("per")} ${n[26](`${n[131].period}`)} ${n[26]("updateText")} ${n[131].expiryDate}`,i;return{c(){i=e.text(t)},m(a,s){e.insert(a,i,s)},p(a,s){s[0]&67108928&&t!==(t=`${a[131].period!=="None"||a[131].value!=="cumulativeSession"?" ":a[26]("per")} ${a[26](`${a[131].period}`)} ${a[26]("updateText")} ${a[131].expiryDate}`)&&e.set_data(i,t)},d(a){a&&e.detach(i)}}}function bi(n){let t=`${n[131].period!=="None"||n[131].value!=="cumulativeSession"?" ":n[26]("per")} ${n[26](`${n[131].period}`)} ${n[26]("updateAfterConfirm")}`,i;return{c(){i=e.text(t)},m(a,s){e.insert(a,i,s)},p(a,s){s[0]&67108928&&t!==(t=`${a[131].period!=="None"||a[131].value!=="cumulativeSession"?" ":a[26]("per")} ${a[26](`${a[131].period}`)} ${a[26]("updateAfterConfirm")}`)&&e.set_data(i,t)},d(a){a&&e.detach(i)}}}function Oe(n){let t,i,a=n[25][n[131].scheduleId].timer+"",s,l,r,u;return{c(){t=e.element("div"),i=e.element("button"),s=e.text(a),e.attr(i,"class",l="ReloadLimitButton "+(n[27]?"":"Mobile")+" "+(n[25][n[131].scheduleId].timerStopped?"":"disabled")),e.attr(t,"class","ContainerLimitActions "+(n[27]?"":"Mobile"))},m(p,d){e.insert(p,t,d),e.append(t,i),e.append(i,s),r||(u=e.listen(i,"click",n[56]),r=!0)},p(p,d){d[0]&33554496&&a!==(a=p[25][p[131].scheduleId].timer+"")&&e.set_data(s,a),d[0]&33554496&&l!==(l="ReloadLimitButton "+(p[27]?"":"Mobile")+" "+(p[25][p[131].scheduleId].timerStopped?"":"disabled"))&&e.attr(i,"class",l)},d(p){p&&e.detach(t),r=!1,u()}}}function We(n){let t,i,a=n[26]("removeLimit")+"",s,l,r;function u(){return n[57](n[131])}return{c(){t=e.element("div"),i=e.element("button"),s=e.text(a),e.attr(i,"class","RemoveLimitButton "+(n[27]?"":"Mobile")),e.attr(t,"class","ContainerLimitActions "+(n[27]?"":"Mobile"))},m(p,d){e.insert(p,t,d),e.append(t,i),e.append(i,s),l||(r=e.listen(i,"click",u),l=!0)},p(p,d){n=p,d[0]&67108864&&a!==(a=n[26]("removeLimit")+"")&&e.set_data(s,a)},d(p){p&&e.detach(t),l=!1,r()}}}function Ve(n){let t,i,a=n[26]("confirmUpdateLimit")+"",s,l,r,u=n[26]("cancelUpdateLimit")+"",p,d,L;function h(){return n[58](n[131])}function T(){return n[59](n[131])}return{c(){t=e.element("div"),i=e.element("button"),s=e.text(a),l=e.space(),r=e.element("button"),p=e.text(u),e.attr(i,"class","ConfirmLimitButton "+(n[27]?"":"Mobile")),e.attr(r,"class","CancelLimitButton "+(n[27]?"":"Mobile")),e.attr(t,"class","ContainerLimitActions "+(n[27]?"":"Mobile"))},m(v,S){e.insert(v,t,S),e.append(t,i),e.append(i,s),e.append(t,l),e.append(t,r),e.append(r,p),d||(L=[e.listen(i,"click",h),e.listen(r,"click",T)],d=!0)},p(v,S){n=v,S[0]&67108864&&a!==(a=n[26]("confirmUpdateLimit")+"")&&e.set_data(s,a),S[0]&67108864&&u!==(u=n[26]("cancelUpdateLimit")+"")&&e.set_data(p,u)},d(v){v&&e.detach(t),d=!1,e.run_all(L)}}}function qe(n){let t,i,a,s,l,r=`${n[131].period!=="None"||n[131].value!=="cumulativeSession"?" ":n[26]("per")} ${n[26](`${n[131].period}`)}`,u,p,d,L,h=!n[131].isModified&&n[2].indexOf(n[126].value)>-1,T,v;function S(k,x){return k[131].acknowledgedLimit?fi:Li}let O=S(n),B=O(n);function I(k,x){if(k[131].acknowledgedLimit)return vi;if(k[131].isModified&&k[131].updateAmount==0&&k[131].isCoolOffCompleted)return yi;if(k[131].isModified&&k[131].updateAmount==0&&!k[131].isCoolOffCompleted)return hi;if(k[131].isModified)return gi}let U=I(n),j=U&&U(n),M=n[131].acknowledgedLimit&&Oe(n),P=h&&We(n),A=n[131].isCoolOffCompleted&!n[131].acknowledgedLimit&&Ve(n);return{c(){t=e.element("div"),i=e.element("div"),a=e.element("div"),s=e.element("div"),B.c(),l=e.space(),u=e.text(r),p=e.space(),j&&j.c(),d=e.space(),M&&M.c(),L=e.space(),P&&P.c(),T=e.space(),A&&A.c(),v=e.space(),e.attr(s,"class","CurrentLimit"),e.attr(a,"class","CurrentLimitContainer"),e.attr(i,"class","LimitDetailsTextWrapper"),e.attr(t,"class","LimitDetails")},m(k,x){e.insert(k,t,x),e.append(t,i),e.append(i,a),e.append(a,s),B.m(s,null),e.append(s,l),e.append(s,u),e.append(a,p),j&&j.m(a,null),e.append(i,d),M&&M.m(i,null),e.append(i,L),P&&P.m(i,null),e.append(i,T),A&&A.m(i,null),e.append(t,v)},p(k,x){O===(O=S(k))&&B?B.p(k,x):(B.d(1),B=O(k),B&&(B.c(),B.m(s,l))),x[0]&67108928&&r!==(r=`${k[131].period!=="None"||k[131].value!=="cumulativeSession"?" ":k[26]("per")} ${k[26](`${k[131].period}`)}`)&&e.set_data(u,r),U===(U=I(k))&&j?j.p(k,x):(j&&j.d(1),j=U&&U(k),j&&(j.c(),j.m(a,null))),k[131].acknowledgedLimit?M?M.p(k,x):(M=Oe(k),M.c(),M.m(i,L)):M&&(M.d(1),M=null),x[0]&68&&(h=!k[131].isModified&&k[2].indexOf(k[126].value)>-1),h?P?P.p(k,x):(P=We(k),P.c(),P.m(i,T)):P&&(P.d(1),P=null),k[131].isCoolOffCompleted&!k[131].acknowledgedLimit?A?A.p(k,x):(A=Ve(k),A.c(),A.m(i,null)):A&&(A.d(1),A=null)},d(k){k&&e.detach(t),B.d(),j&&j.d(),M&&M.d(),P&&P.d(),A&&A.d()}}}function Fe(n){let t,i,a=n[37](n[126])+"",s,l,r;function u(L,h){return L[126].value==="lugas"?ci:L[126].currentLimits.length>0?pi:L[126].value==="lugas"?ui:di}let p=u(n),d=p(n);return{c(){t=e.element("div"),i=e.element("p"),s=e.text(a),l=e.space(),d.c(),r=e.space(),e.attr(i,"class","LimitTitle"),e.attr(t,"class","LimitWrapper "+(n[27]?"Desktop":""))},m(L,h){e.insert(L,t,h),e.append(t,i),e.append(i,s),e.append(t,l),d.m(t,null),e.append(t,r)},p(L,h){h[0]&64&&a!==(a=L[37](L[126])+"")&&e.set_data(s,a),p===(p=u(L))&&d?d.p(L,h):(d.d(1),d=p(L),d&&(d.c(),d.m(t,r)))},d(L){L&&e.detach(t),d.d()}}}function Ge(n){let t,i,a=n[26]("complianceText")+"",s;return{c(){t=e.element("div"),i=e.element("p"),s=e.text(a),e.attr(i,"class","LimitComplianceText"),e.attr(t,"class","LimitCompliance")},m(l,r){e.insert(l,t,r),e.append(t,i),e.append(i,s)},p(l,r){r[0]&67108864&&a!==(a=l[26]("complianceText")+"")&&e.set_data(s,a)},d(l){l&&e.detach(t)}}}function Ke(n){let t,i,a=n[26]("limitType")+"",s,l,r,u,p,d=e.ensure_array_like(n[6]),L=[];for(let h=0;h<d.length;h+=1)L[h]=He(Ue(n,d,h));return{c(){t=e.element("label"),i=e.element("span"),s=e.text(a),l=e.space(),r=e.element("select");for(let h=0;h<L.length;h+=1)L[h].c();e.attr(i,"class","LimitSelectText"),e.attr(r,"name",""),e.attr(r,"id",""),n[9]===void 0&&e.add_render_callback(()=>n[60].call(r)),e.attr(t,"class","LimitTypeDropdownWrapper")},m(h,T){e.insert(h,t,T),e.append(t,i),e.append(i,s),e.append(t,l),e.append(t,r);for(let v=0;v<L.length;v+=1)L[v]&&L[v].m(r,null);e.select_option(r,n[9],!0),u||(p=[e.listen(r,"change",n[60]),e.listen(r,"change",n[61])],u=!0)},p(h,T){if(T[0]&67108864&&a!==(a=h[26]("limitType")+"")&&e.set_data(s,a),T[0]&64|T[1]&64){d=e.ensure_array_like(h[6]);let v;for(v=0;v<d.length;v+=1){const S=Ue(h,d,v);L[v]?L[v].p(S,T):(L[v]=He(S),L[v].c(),L[v].m(r,null))}for(;v<L.length;v+=1)L[v].d(1);L.length=d.length}T[0]&512&&e.select_option(r,h[9])},d(h){h&&e.detach(t),e.destroy_each(L,h),u=!1,e.run_all(p)}}}function He(n){let t,i=n[37](n[126])+"",a;return{c(){t=e.element("option"),a=e.text(i),t.__value=n[128],e.set_input_value(t,t.__value)},m(s,l){e.insert(s,t,l),e.append(t,a)},p(s,l){l[0]&64&&i!==(i=s[37](s[126])+"")&&e.set_data(a,i)},d(s){s&&e.detach(t)}}}function Ye(n){let t,i,a=n[26]("period")+"",s,l,r,u,p,d=e.ensure_array_like(n[5][n[7]].periods),L=[];for(let h=0;h<d.length;h+=1)L[h]=Xe(Ie(n,d,h));return{c(){t=e.element("label"),i=e.element("span"),s=e.text(a),l=e.space(),r=e.element("select");for(let h=0;h<L.length;h+=1)L[h].c();e.attr(i,"class","PeriodSelectText"),e.attr(r,"name",""),e.attr(r,"id",""),n[8]===void 0&&e.add_render_callback(()=>n[62].call(r)),e.attr(t,"class","LimitPeriodDropdownWrapper")},m(h,T){e.insert(h,t,T),e.append(t,i),e.append(i,s),e.append(t,l),e.append(t,r);for(let v=0;v<L.length;v+=1)L[v]&&L[v].m(r,null);e.select_option(r,n[8],!0),u||(p=e.listen(r,"change",n[62]),u=!0)},p(h,T){if(T[0]&67108864&&a!==(a=h[26]("period")+"")&&e.set_data(s,a),T[0]&67109024){d=e.ensure_array_like(h[5][h[7]].periods);let v;for(v=0;v<d.length;v+=1){const S=Ie(h,d,v);L[v]?L[v].p(S,T):(L[v]=Xe(S),L[v].c(),L[v].m(r,null))}for(;v<L.length;v+=1)L[v].d(1);L.length=d.length}T[0]&416&&e.select_option(r,h[8])},d(h){h&&e.detach(t),e.destroy_each(L,h),u=!1,p()}}}function Xe(n){let t,i=n[26](n[123])+"",a,s;return{c(){t=e.element("option"),a=e.text(i),t.__value=s=n[123],e.set_input_value(t,t.__value),t.selected=!0},m(l,r){e.insert(l,t,r),e.append(t,a)},p(l,r){r[0]&67109024&&i!==(i=l[26](l[123])+"")&&e.set_data(a,i),r[0]&160&&s!==(s=l[123])&&(t.__value=s,e.set_input_value(t,t.__value))},d(l){l&&e.detach(t)}}}function Ze(n){let t,i=n[10]<n[12]?`${n[26]("invalidInputMessageLimitMin",{values:{minValue:n[12],currency:n[0]}})}`:`${n[26]("invalidInputMessageLimitMax",{values:{maxValue:n[13],currency:n[0]}})}`,a;return{c(){t=e.element("p"),a=e.text(i),e.attr(t,"class","InvalidInput")},m(s,l){e.insert(s,t,l),e.append(t,a)},p(s,l){l[0]&67122177&&i!==(i=s[10]<s[12]?`${s[26]("invalidInputMessageLimitMin",{values:{minValue:s[12],currency:s[0]}})}`:`${s[26]("invalidInputMessageLimitMax",{values:{maxValue:s[13],currency:s[0]}})}`)&&e.set_data(a,i)},d(s){s&&e.detach(t)}}}function _i(n){let t;return{c(){t=e.element("div"),t.innerHTML='<div class="skeletonLimitAmount"><div class="skeletonAmountText"><ui-skeleton width="auto" height="20px" structure="text" margin-right="auto"></ui-skeleton></div> <div class="skeletonSubText"><ui-skeleton width="auto" height="20px" structure="text" margin-right="auto"></ui-skeleton></div></div> <div class="skeletonLimitButton"><div><ui-skeleton width="auto" height="40px" structure="rectangle" margin-right="auto"></ui-skeleton></div> <div><ui-skeleton width="auto" height="40px" structure="rectangle" margin-right="auto"></ui-skeleton></div></div> ',e.attr(t,"class","skeletonLimitContent")},m(i,a){e.insert(i,t,a)},p:e.noop,d(i){i&&e.detach(t)}}}function wi(n){let t,i,a=n[19]&&Be(n);function s(u,p){if(u[16])return mi;if(u[17])return ri;if(!u[16])return li}let l=s(n),r=l&&l(n);return{c(){t=e.element("div"),a&&a.c(),i=e.space(),r&&r.c()},m(u,p){e.insert(u,t,p),a&&a.m(t,null),e.append(t,i),r&&r.m(t,null),n[65](t)},p(u,p){u[19]?a?a.p(u,p):(a=Be(u),a.c(),a.m(t,i)):a&&(a.d(1),a=null),l===(l=s(u))&&r?r.p(u,p):(r&&r.d(1),r=l&&l(u),r&&(r.c(),r.m(t,null)))},i:e.noop,o:e.noop,d(u){u&&e.detach(t),a&&a.d(),r&&r.d(),n[65](null)}}}function Si(n,t,i){let a;e.component_subscribe(n,e.$format,o=>i(26,a=o));let{lang:s="en"}=t,{currency:l=""}=t,{limits:r=""}=t,{session:u=""}=t,{userid:p=""}=t,{endpoint:d=""}=t,{apiversion:L=""}=t,{customcurrencysymbols:h=""}=t,{enablecompliancetext:T=""}=t,{deletelimit:v=""}=t,{amountsconfig:S=""}=t,{periodsconfig:O=""}=t,{limittabindex:B=""}=t,{limitformat:I=""}=t,{clientstyling:U=""}=t,{clientstylingurl:j=""}=t,{mbsource:M}=t,{translationurl:P=""}=t,A,k=window.navigator.userAgent,x=!e.isMobile(k),_=[],g="",b="",N="",w=0,C,R,$="",ie="",pe="",Z={},ae={},ve=!1,Le=!1,V=!0,q=!1,fe=!1,ne=!1,J=!1,H="",se="",F=[],le,ke,re=!1,Qe={},oe={EUR:"€",RON:" lei",USD:"$"},K={};const be={wager:"wagering",loss:"loss",deposit:"deposit",netdeposit:"netdeposit",cumulativeSession:"cumulativeSession",sessionLimit:"session"},_e={unableToUpdatePendingRequest:["SYS_1037","SYS_1142","SYS_1140"],internalServerError:["F0004","F0006"]},$e=()=>{fetch(P).then(m=>m.json()).then(m=>{Object.keys(m).forEach(c=>{ze(c,m[c])})}).catch(m=>{console.log(m)})};Object.keys(ee).forEach(o=>{ze(o,ee[o])});const ge=o=>`dataLayer-${o}`,G=(o,m)=>{typeof gtag=="function"&>ag({event:o,limit_category:ee[s][ge(N.toLowerCase())]||N,limit_type:ee[s][ge(g.toLowerCase())]||g,limit_period:ee[s][ge(b.toLowerCase())]||b,limit_amount:C||m})},et=()=>{var y;const o=S.split(",").map(f=>f.split(":")),m=O.split(",").map(f=>f.split(":"));for(let[f,D]of o.entries())if(D[0]!==m[f][0])throw new Error(`Limit config mismatch: "${D[0]}" does not match "${m[f][0]}"`);const c=o.reduce((f,D,E)=>{const W=D[0].slice(D[0].indexOf("(")+1,D[0].indexOf(")")),te=D[0].slice(0,D[0].indexOf("(")),ue=D[1],ye=m[E][1].trim().replace("D","Daily").replace("W","Weekly").replace("M","Monthly").replace("N","None").split("-"),Ft={value:W,product:te,minMax:ue,periods:ye,callValue:z[W].callValue,callValue16:z[W].callValue16,title:z[W].title};return f.push(Ft),f},[]);for(let f=0;f<c.length;f++)i(6,_[f].product=c[f].product,_),i(6,_[f].min=parseInt(c[f].minMax.split("-")[0],10),_),i(6,_[f].max=parseInt(c[f].minMax.split("-")[1],10),_),i(5,z[c[f].value].periods=c[f].periods,z);pe=(y=_[0])==null?void 0:y.value,_.forEach(f=>{Z[f.value]={min:f.min,max:f.max},Qe[f.value]=f.product}),Z&&(Z[pe]?(i(12,$=Z[pe].min),i(13,ie=Z[pe].max)):(i(12,$=1),i(13,ie=9999999)))},tt=()=>{const o=/\(([^)]+)\)/g;return[...S.matchAll(o)].flat().filter(c=>!c.includes("("))},it=()=>{tt().forEach(m=>{z[m]?_.push(ce({},z[m])):console.error(`Unknown limit: ${m}`)}),et(),i(7,g=_[0].value),i(8,b=z[g].periods[0]),N=_[0].product,i(14,ve=_.length>1),i(15,Le=z[g].periods.length>1)},we=()=>{i(7,g=_[w].value),i(8,b=z[g].periods[0]),i(15,Le=z[g].periods.length>1)},Se=()=>{N=_[w].product},Y=o=>{if(o.status>=300)at(o);else return i(18,fe=!1),o.status!==204?o.json():o},at=o=>{i(17,q=!0);let m;throw o.json().then(c=>{for(const y in _e)if(_e[y].some(f=>c.error.includes(f))){m=y;break}console.error("errType",m),!m&&de(c)}).finally(()=>{m&&de(m),i(17,q=!1),i(16,V=!1)}),new Error("An error occured during the fetch request")},nt=()=>{if(!(C>0))return;Q(),i(16,V=!0);let o=new URL(`/v2/player/${p}/limits`,d),m={};g==="sessionLimit"?m={sessionLimit:C,sessionLimitUnit:"minute"}:g==="cumulativeSession"?m[z[g].callValue]=[{period:b,minutes:C}]:m[z[g].callValue]=[{period:z[g].periods[0]==="None"?null:b,amount:C,currency:l}];let c={method:"PUT",headers:{"X-SessionID":u,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(m)};fetch(o.href,c).then(y=>Y(y)).then(y=>{G("self_limitation_success"),X()}).catch(y=>{console.error(y),i(17,q=!0)})},ot=()=>{Q(),i(16,V=!0);const m=_[w].currentLimits.find(W=>W.period===b),c=m?"v2":"v1",y=new URL(`/${c}/player/${p}/limits/monetary/${m?m.id:""}`,d),f=m?"PUT":"POST",D=m?{amount:C,skipCoolOff:!1}:{amount:C,currency:l,period:z[g].periods[0]==="None"?null:b,type:z[g].callValue16,products:[N!=null?N:"All"],walletTypes:["Deposit","NetDeposit"].includes(z[g].callValue16)?["All"]:["RealCash"]};let E={method:f,headers:{"X-SessionID":u,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(D)};fetch(y.href,E).then(W=>Y(W)).then(W=>{G("self_limitation_success"),X()}).catch(W=>{console.log(W),i(17,q=!0)})},st=()=>{if(!(C>0))return;Q(),i(16,V=!0);const o=new URL(`/v1/player/${p}/limits/session/`,d);let y={method:"PUT",headers:{"X-SessionID":u,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({sessionLimit:C,sessionLimitUnit:"minute"})};fetch(o.href,y).then(f=>Y(f)).then(f=>{G("self_limitation_success"),X()}).catch(f=>{console.log(f),i(17,q=!0)})},lt=()=>{if(!(C>0))return;Q(),i(16,V=!0);const o=new URL(`/v1/player/${p}/limits/session/`,d);let y={method:"PUT",headers:{"X-SessionID":u,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({cumulativeSessionLimits:[{period:b,minutes:C}]})};fetch(o.href,y).then(f=>Y(f)).then(f=>{G("self_limitation_success"),X()}).catch(f=>{console.log(f),i(17,q=!0)})},rt=()=>{if(!(C>0))return;Q(),i(16,V=!0);const o=new URL(`/v2/player/${p}/limit/lugas`,d);let y={method:"POST",headers:{"X-SessionID":u,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({amount:C,roleLimitAmount:0,softMigration:!1,keepLimit:!1})};fetch(o.href,y).then(f=>Y(f)).then(f=>{i(23,le=f.popup),f.operatorDepositLimitAmount,ke=f.regulatorDepositLimitAmount,G("self_limitation_success"),X()}).catch(f=>{console.log(f),i(17,q=!0)})},mt=()=>{if(ae={},L==="gm16")switch(g){case"lugas":rt();break;case"sessionLimit":st();break;case"cumulativeSession":lt();break;default:ot();break}else if(L==="gmcore")nt();else throw Error(`Invalid apiversion attribute: ${L}`);G("self_limitation_request")},X=()=>{switch(L){case"gmcore":dt();break;case"gm16":ut();break}},dt=()=>{i(16,V=!0);let o=new URL(`/v2/player/${p}/limits`,d),m={method:"GET",headers:{"X-SessionID":u,"Content-Type":"application/json",Accept:"application/json"}};fetch(o.href,m).then(c=>Y(c)).then(c=>{F=c,ne&&de(),Ae(F),pt(F),i(10,C=null)}).catch(c=>{console.error("Error LimitsWidget: ",c),i(17,q=!0)}).finally(()=>{i(16,V=!1)})},ut=()=>{i(16,V=!0),F=[];let o=new URL(`/v1/player/${p}/limits/monetary`,d),m=new URL(`/v1/player/${p}/limits/session`,d),c=!1,y={method:"GET",headers:{"X-SessionID":u,"Content-Type":"application/json",Accept:"application/json"}};fetch(o.href,y).then(f=>Y(f)).then(f=>{F.push(f),L==="gmcore"&&Ae(F),L==="gm16"&&ct(F),ne&&de(),i(10,C=null)}).catch(f=>{console.error("Error LimitsWidget: ",f),i(17,q=!0)}).finally(()=>{c&&i(16,V=!1),c=!0}),fetch(m.href,y).then(f=>Y(f)).then(f=>{F.push(f),ne&&de(),L==="gm16"&&Lt(F),L==="gm16"&&ft(F),i(10,C=null)}).catch(f=>{console.error("Error LimitsWidget: ",f),i(17,q=!0)}).finally(()=>{c&&i(16,V=!1),c=!0})},Ae=o=>{_.forEach(m=>{m.currentLimits=[];const c=Array.isArray(o[z[m.value].callValue])?o[z[m.value].callValue]:[o[z[m.value].callValue]];c.length===0||c[0]===void 0||(c.forEach((y,f)=>{var E;const D=o[z[m.value].callValue][f];m.currentLimits.push({}),m.currentLimits[f].limitType=m.value,m.currentLimits[f].amount=I?D.amount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(D.amount),m.currentLimits[f].currency=(E=oe[D.currency])!=null?E:D.currency,m.currentLimits[f].period=D.period,m.currentLimits[f].updateAmount=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(D.updateAmount),m.currentLimits[f].isModified=D.isModified,m.currentLimits[f].expiryDate=`${new Date(D.expiryDate).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")} (GMT)`}),m.currentLimits=me(m.currentLimits))})},pt=o=>{const m=a("minutes");_.filter(c=>c.value==="sessionLimit"||c.value==="cumulativeSession").forEach(c=>{var y;c.currentLimits=[],(y=o[z[c.value].callValue])==null||y.forEach((f,D)=>{const E=o[z[c.value].callValue][D];c.currentLimits.push({limitType:c.value,amount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(E.minutes),currency:m,isModified:E.isModified,period:c.value==="cumulativeSession"?E.period:"None",updateAmount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(E.updateMinutes),expiryDate:`${new Date(E.expiryDate).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")} (GMT)`})}),c.currentLimits=me(c.currentLimits)})},ct=o=>{var m;(m=o[0])!=null&&m.limits&&_.forEach(c=>{var y;c.currentLimits=[];for(const f of o[0].limits)if(f.type===c.callValue16&&f.products.includes(c.product)){let D=0,E=f.schedules.length>0?f.schedules.find(W=>W.id):{};f.schedules.length>0&&(D=I?E.updateAmount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(E.updateAmount)),c.currentLimits.push({limitType:c.value,amount:I?f.amount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(f.amount),currency:(y=oe[f.currency])!=null?y:f.currency,isModified:f.schedules.length>0,period:f.period,product:f.products[0],updateAmount:D,isCoolOffCompleted:E?E.isCoolOffCompleted:!1,scheduleId:E?E.id:null,expiryDate:f.schedules.length>0?`${new Date(f.schedules[0].applyAt).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")} (GMT)`:"",id:f.id}),c.currentLimits.forEach(W=>{W.acknowledgedLimit=Object.keys(K).some(te=>W.scheduleId===te)})}c.currentLimits=me(c.currentLimits)})},Lt=o=>{var m;(m=o[1])!=null&&m.sessionLimit&&_.filter(c=>c.value==="sessionLimit").forEach(c=>{c.currentLimits.push({limitType:"sessionLimit",amount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(o[1].sessionLimit.minutes),currency:a("minutes"),isModified:o[1].sessionLimit.isModified,period:"None",updateAmount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(o[1].sessionLimit.updateMinutes),expiryDate:o[1].sessionLimit.expiryDate}),c.currentLimits=me(c.currentLimits)})},ft=o=>{var m;(m=o[1])!=null&&m.cumulativeSessionLimits&&_.filter(c=>c.value==="cumulativeSession").forEach(c=>{for(const y of o[1].cumulativeSessionLimits)c.currentLimits.push({limitType:"cumulativeSession",amount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(y.minutes),currency:a("minutes"),isModified:y.isModified,period:y.period,updateAmount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(y.updateMinutes),expiryDate:y.expiryDate});c.currentLimits=me(c.currentLimits)})},me=o=>{const m={Daily:0,Weekly:1,Monthly:2};return o.sort((c,y)=>m[c.period]-m[y.period]),o},gt=()=>{const o=C-Math.floor(C)===0;C>=$&&C<=ie&&o?(i(24,re=!1),R.removeAttribute("disabled")):(i(24,re=!0),R.setAttribute("disabled","true"))},Ce=()=>{i(24,re=!1),Z!=null&&Z[g]?(i(12,$=Z[g].min),i(13,ie=Z[g].max)):(i(12,$=1),i(13,ie=9999999))},ht=()=>{if(F){const o=F[z[g].callValue].find(y=>y.period===b),m=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(o.amount);let c=a("popupImmediateUpdate").replace("{selectedLimit}",he()).replace("{updatedAmount}",m).replace("{currency}",oe[o.currency]||o.currency).replace("{selectedPeriod}",a(`${b}`));i(21,H=o.isModified?`${a("popupPendingUpdate")} ${new Date(o.expiryDate).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")} (GMT)`:c)}i(20,J=!0)},yt=()=>{var D;const o=((D=F[0])==null?void 0:D.limits)||F.limits;let m=null;if(!F){i(20,J=!0);return}Object.keys(ae).length>0?m=o.find(E=>E.id===ae.id):m=o.find(E=>E.type.toLowerCase()===be[g].toLowerCase()&&(E.period===b||E.period==="None")&&E.products[0]===N),(m==null?void 0:m.schedules.length)>0&&K[m==null?void 0:m.schedules[0].id]&&(m.amount=m.schedules[0].updateAmount);const c=xe(m)||Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(m.amount),y=m.schedules.length>0?`${new Date(m.schedules[0].applyAt).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")} (GMT)`:"";let f=a("popupImmediateUpdate").replace("{selectedLimit}",he()).replace("{updatedAmount}",c).replace("{selectedPeriod}",a(`${m.period}`));m.schedules.length>0&&K[m.schedules[0].id]?i(21,H=f):i(21,H=m.schedules.length>0?`${a("popupPendingUpdate")} ${y}`:f),i(20,J=!0)},vt=()=>{le==1&&i(22,se="PopupKyc"),le==2&&(i(21,H=`${a("popup2_a")}${Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(ke)} ${l} ${a("popup2_b")}`),i(22,se="PopupKyc2")),le==3&&(i(21,H=a("popup3")),i(22,se="PopupSuccess")),i(20,J=!0)},kt=()=>{i(21,H=a("sessionLimitUpdated")),i(20,J=!0)},bt=()=>{if(F){const o=F[z[g].callValue].find(y=>(y.period===b||b==="None")&&y.products[0]===N),m=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(o.minutes);let c=a("popupImmediateUpdate").replace("{selectedLimit}",a(`${g}`)).replace("{updatedAmount}",m).replace("{currency}",a("minutes")).replace("{selectedPeriod}",a(`${b}`));i(21,H=o.isModified?`${a("popupPendingUpdate")} ${new Date(o.expiryDate).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")} (GMT)`:c)}i(20,J=!0)},_t=o=>{var m;return(m=o==null?void 0:o.error)==null?void 0:m.includes("Limit update is not permitted due to LimitUpdateControl")},wt=o=>{var m;return(m=o==null?void 0:o.error)==null?void 0:m.includes("Limit remove is not permitted due to LimitUpdateControl")},St=o=>{var m;return(m=o==null?void 0:o.error)==null?void 0:m.includes("[NotFoundException] Limit does not exist")},At=o=>{var m;return(m=o.error)==null?void 0:m.includes("Invalid Session")},de=o=>{if(window.postMessage({type:"OpenLimitsPopup"},window.location.href),q){if(i(18,fe=!0),!o){i(20,J=!0);return}o.thirdPartyResponse||i(21,H=a(`${o}`)),o.thirdPartyResponse&&i(21,H=o.thirdPartyResponse.message),_t(o)&&i(21,H=a("popupUpdateLimitException")),wt(o)&&i(21,H=a("popupRemoveLimitException")),St(o)&&i(21,H=a("notFoundException")),At(o)&&i(21,H=a("sessionExpiredException")),i(20,J=!0);return}switch(L){case"gmcore":g==="sessionLimit"||g==="cumulativeSession"?bt():ht();break;case"gm16":g==="lugas"?vt():g==="sessionLimit"||g==="cumulativeSession"?kt():yt();break;default:throw new Error(`Invalid apiversion attribute: ${L}`)}},Q=()=>{i(19,ne=!0),window.postMessage({type:"DisableScroll"},window.location.href)},Ct=o=>{i(7,g=o.limitType),i(8,b=o.period),Q(),i(16,V=!0);let m=new URL(`/v2/player/${p}/limits/${be[o.limitType]}`,d);o.limitType!=="sessionLimit"&&m.searchParams.append("periods",o.period);let c={method:"DELETE",headers:{"X-SessionID":u,"Content-Type":"application/json",Accept:"application/json"}};fetch(m.href,c).then(y=>Y(y)).then(y=>{G("self_limitation_cancel_success",o.amount),X()}).catch(y=>{G("self_limitation_cancel_failed",o.amount),console.log(y),i(17,q=!0)})},Te=o=>{switch(o.period,L){case"gmcore":Ct(o);break;case"gm16":ae=o,o.limitType==="sessionLimit"||o.limitType==="cumulativeSession"?Tt(o):jt(o);break}G("self_limitation_cancel_request",o.amount)},Tt=o=>{const m=new URL(`/v1/player/${p}/limits/session/session`,d),c=new URL(`/v1/player/${p}/limits/session/cumulativeSession?periods=${o.period}`,d);let y;switch(o.limitType){case"sessionLimit":y=m;break;case"cumulativeSession":y=c;break;default:throw Error(`Unknown limit.limitType: ${o.limitType}`)}Q(),i(16,V=!0);let f={method:"DELETE",headers:{"X-SessionID":u,"Content-Type":"application/json",Accept:"application/json"}};fetch(y.href,f).then(D=>Y(D)).then(D=>{G("self_limitation_cancel_success",o.amount),X()}).catch(D=>{G("self_limitation_cancel_failed",o.amount),console.log(D),i(17,q=!0)})},jt=o=>{const m=new URL(`/v1/player/${p}/limits/monetary/${o.id}`,d);Q(),i(16,V=!0);let c={method:"DELETE",headers:{"X-SessionID":u,"Content-Type":"application/json",Accept:"application/json"}};fetch(m.href,c).then(y=>Y(y)).then(y=>{G("self_limitation_cancel_success",o.amount),X()}).catch(y=>{G("self_limitation_cancel_failed",o.amount),console.log(y),i(17,q=!0)})},je=o=>{const m=new URL(`/v1/player/${p}/limits/schedule/${o.scheduleId}`,d);Q(),i(16,V=!0);let c={method:"DELETE",headers:{"X-SessionID":u,"Content-Type":"application/json",Accept:"application/json"}};fetch(m.href,c).then(y=>Y(y)).then(y=>{ae=o,G("self_limitation_cancel_success",o.updateAmount),X()}).catch(y=>{G("self_limitation_cancel_failed",o.updateAmount),console.log(y),i(17,q=!0)})},De=o=>{const m=new URL(`v1/player/${p}/limits/schedule/acknowledge/${o.scheduleId}`,d);Q(),i(16,V=!0);let c={method:"PATCH",headers:{"X-SessionID":u,"Content-Type":"application/json",Accept:"application/json"}};fetch(m.href,c).then(y=>Y(y)).then(y=>{ae=o,Dt(o),G("self_limitation_confirm_success",o.amount),X()}).catch(y=>{G("self_limitation_confirm_failed",o.amount),console.log(y),i(17,q=!0)})},Dt=o=>{let m=60;i(25,K[o.scheduleId]={},K),i(25,K[o.scheduleId].timer=`${m} ${ee[s].seconds}`,K),i(25,K[o.scheduleId].timerStopped=!1,K);let c=window.setInterval(()=>m===0?(window.clearInterval(c),i(25,K[o.scheduleId].timerStopped=!0,K),i(25,K[o.scheduleId].timer=ee[s].reloadLimitsButton,K)):i(25,K[o.scheduleId].timer=`${--m} ${ee[s].seconds}`,K),1e3)},he=o=>{let m;return o?m=a(o.value+o.product):m=a(g),m},xe=(o,m=!1)=>{if(!I)return m?`${o.updateAmount}${o.currency}`:`${o.amount}${o.currency}`;let c=I;const y=c.match(/\{(\d+)decimals\}/),f=y?parseInt(y[1],10):2,D=y?new RegExp("\\{\\d+decimals\\}","g"):"{decimals}";let E=m?o.updateAmount:o.amount;E=parseInt(E).toFixed(f);const[W,te]=I.includes(".")?[",","."]:[".",","];let[ue,ye]=E.split(".");return ue=ue.replace(/\B(?=(\d{3})+(?!\d))/g,W),E=`${ue}${te}${ye}`,c=c.replace("{currency}",oe[o.currency]||o.currency).replace("{amount}",E.split(te)[0]).replace(D,E.split(te)[1]),c},Ee=()=>{i(20,J=i(19,ne=!1)),i(22,se=""),window.postMessage({type:"CloseLimitsPopup"},window.location.href),window.postMessage({type:"EnableScroll"},window.location.href)},xt=()=>{window.postMessage({type:"uploadDocuments"},window.location.href),Ee()},Et=o=>{o.keyCode===13&&re&&o.preventDefault()},Mt=()=>{if(!h)return;let o={};h.split(",").forEach(m=>{let c=m.split(":");o[c[0].trim()]=c[1].trim()}),oe=ce(ce({},oe),o)},Pt=()=>{Yt(s)};e.onMount(()=>()=>{});const zt=()=>X(),It=o=>Te(o),Ut=o=>De(o),Nt=o=>je(o);function Rt(){w=e.select_value(this),i(9,w)}const Bt=()=>{Se(),we(),Ce()};function Ot(){b=e.select_value(this),i(8,b),i(5,z),i(7,g)}function Wt(){C=e.to_number(this.value),i(10,C)}function Vt(o){e.binding_callbacks[o?"unshift":"push"](()=>{R=o,i(11,R)})}function qt(o){e.binding_callbacks[o?"unshift":"push"](()=>{A=o,i(4,A)})}return n.$$set=o=>{"lang"in o&&i(42,s=o.lang),"currency"in o&&i(0,l=o.currency),"limits"in o&&i(43,r=o.limits),"session"in o&&i(44,u=o.session),"userid"in o&&i(45,p=o.userid),"endpoint"in o&&i(46,d=o.endpoint),"apiversion"in o&&i(47,L=o.apiversion),"customcurrencysymbols"in o&&i(48,h=o.customcurrencysymbols),"enablecompliancetext"in o&&i(1,T=o.enablecompliancetext),"deletelimit"in o&&i(2,v=o.deletelimit),"amountsconfig"in o&&i(49,S=o.amountsconfig),"periodsconfig"in o&&i(50,O=o.periodsconfig),"limittabindex"in o&&i(3,B=o.limittabindex),"limitformat"in o&&i(51,I=o.limitformat),"clientstyling"in o&&i(52,U=o.clientstyling),"clientstylingurl"in o&&i(53,j=o.clientstylingurl),"mbsource"in o&&i(54,M=o.mbsource),"translationurl"in o&&i(55,P=o.translationurl)},n.$$.update=()=>{n.$$.dirty[1]&131072&&h&&Mt(),n.$$.dirty[1]&786432&&O&&S&&it(),n.$$.dirty[1]&2048&&s&&Pt(),n.$$.dirty[1]&124928&&p&&u&&d&&L&&s&&X(),n.$$.dirty[0]&16|n.$$.dirty[1]&2097152&&U&&A&&e.setClientStyling(A,U),n.$$.dirty[0]&16|n.$$.dirty[1]&4194304&&j&&A&&e.setClientStylingURL(A,j),n.$$.dirty[0]&16|n.$$.dirty[1]&8388608&&M&&A&&e.setStreamStyling(A,`${M}.Style`),n.$$.dirty[1]&16777216&&P&&$e()},[l,T,v,B,A,z,_,g,b,w,C,R,$,ie,ve,Le,V,q,fe,ne,J,H,se,le,re,K,a,x,we,Se,mt,X,gt,Ce,Te,je,De,he,xe,Ee,xt,Et,s,r,u,p,d,L,h,S,O,I,U,j,M,P,zt,It,Ut,Nt,Rt,Bt,Ot,Wt,Vt,qt]}class Je extends e.SvelteComponent{constructor(t){super(),e.init(this,t,Si,wi,e.safe_not_equal,{lang:42,currency:0,limits:43,session:44,userid:45,endpoint:46,apiversion:47,customcurrencysymbols:48,enablecompliancetext:1,deletelimit:2,amountsconfig:49,periodsconfig:50,limittabindex:3,limitformat:51,clientstyling:52,clientstylingurl:53,mbsource:54,translationurl:55},Xt,[-1,-1,-1,-1,-1])}get lang(){return this.$$.ctx[42]}set lang(t){this.$$set({lang:t}),e.flush()}get currency(){return this.$$.ctx[0]}set currency(t){this.$$set({currency:t}),e.flush()}get limits(){return this.$$.ctx[43]}set limits(t){this.$$set({limits:t}),e.flush()}get session(){return this.$$.ctx[44]}set session(t){this.$$set({session:t}),e.flush()}get userid(){return this.$$.ctx[45]}set userid(t){this.$$set({userid:t}),e.flush()}get endpoint(){return this.$$.ctx[46]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get apiversion(){return this.$$.ctx[47]}set apiversion(t){this.$$set({apiversion:t}),e.flush()}get customcurrencysymbols(){return this.$$.ctx[48]}set customcurrencysymbols(t){this.$$set({customcurrencysymbols:t}),e.flush()}get enablecompliancetext(){return this.$$.ctx[1]}set enablecompliancetext(t){this.$$set({enablecompliancetext:t}),e.flush()}get deletelimit(){return this.$$.ctx[2]}set deletelimit(t){this.$$set({deletelimit:t}),e.flush()}get amountsconfig(){return this.$$.ctx[49]}set amountsconfig(t){this.$$set({amountsconfig:t}),e.flush()}get periodsconfig(){return this.$$.ctx[50]}set periodsconfig(t){this.$$set({periodsconfig:t}),e.flush()}get limittabindex(){return this.$$.ctx[3]}set limittabindex(t){this.$$set({limittabindex:t}),e.flush()}get limitformat(){return this.$$.ctx[51]}set limitformat(t){this.$$set({limitformat:t}),e.flush()}get clientstyling(){return this.$$.ctx[52]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[53]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get mbsource(){return this.$$.ctx[54]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get translationurl(){return this.$$.ctx[55]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}}e.create_custom_element(Je,{lang:{},currency:{},limits:{},session:{},userid:{},endpoint:{},apiversion:{},customcurrencysymbols:{},enablecompliancetext:{},deletelimit:{},amountsconfig:{},periodsconfig:{},limittabindex:{},limitformat:{},clientstyling:{},clientstylingurl:{},mbsource:{},translationurl:{}},[],[],!0);exports.default=Je;
|
|
24
|
+
c0.391-0.391,0.391-1.023,0-1.414L27.414,26l8.293-8.293C36.098,17.316,36.098,16.684,35.707,16.293z`),e.attr(t,"version","1.1"),e.attr(t,"id","Capa_1"),e.attr(t,"xmlns","http://www.w3.org/2000/svg"),e.attr(t,"xmlns:xlink","http://www.w3.org/1999/xlink"),e.attr(t,"x","0px"),e.attr(t,"y","0px"),e.attr(t,"viewBox","0 0 52 52"),e.set_style(t,"enable-background","new 0 0 52 52"),e.attr(t,"xml:space","preserve")},m(M,P){e.insert(M,t,P),e.append(t,i),e.append(i,a),e.append(i,s),e.append(t,l),e.append(t,r),e.append(t,u),e.append(t,p),e.append(t,d),e.append(t,L),e.append(t,h),e.append(t,T),e.append(t,v),e.append(t,S),e.append(t,O),e.append(t,B),e.append(t,I),e.append(t,U),e.append(t,j)},d(M){M&&e.detach(t)}}}function ii(n){let t,i=n[26]("popupSuccess")+"",a;return{c(){t=e.element("p"),a=e.text(i)},m(s,l){e.insert(s,t,l),e.append(t,a)},p(s,l){l[0]&67108864&&i!==(i=s[26]("popupSuccess")+"")&&e.set_data(a,i)},d(s){s&&e.detach(t)}}}function ai(n){let t,i=n[26]("docsRequired")+"",a;return{c(){t=e.element("p"),a=e.text(i)},m(s,l){e.insert(s,t,l),e.append(t,a)},p(s,l){l[0]&67108864&&i!==(i=s[26]("docsRequired")+"")&&e.set_data(a,i)},d(s){s&&e.detach(t)}}}function ni(n){let t,i=n[26]("popupError")+"",a;return{c(){t=e.element("p"),a=e.text(i)},m(s,l){e.insert(s,t,l),e.append(t,a)},p(s,l){l[0]&67108864&&i!==(i=s[26]("popupError")+"")&&e.set_data(a,i)},d(s){s&&e.detach(t)}}}function oi(n){let t,i=n[26]("okButton")+"",a,s,l;return{c(){t=e.element("button"),a=e.text(i),e.attr(t,"class","ConfirmButton")},m(r,u){e.insert(r,t,u),e.append(t,a),s||(l=e.listen(t,"click",n[39]),s=!0)},p(r,u){u[0]&67108864&&i!==(i=r[26]("okButton")+"")&&e.set_data(a,i)},d(r){r&&e.detach(t),s=!1,l()}}}function si(n){let t,i=n[26]("uploadDocumentsButton")+"",a,s,l=n[26]("closeButton")+"",r,u,p;return{c(){t=e.element("button"),a=e.space(),s=e.element("button"),r=e.text(l),e.attr(t,"class","ConfirmButton"),e.attr(s,"class","CloseButton")},m(d,L){e.insert(d,t,L),t.innerHTML=i,e.insert(d,a,L),e.insert(d,s,L),e.append(s,r),u||(p=[e.listen(t,"click",n[40]),e.listen(s,"click",n[39])],u=!0)},p(d,L){L[0]&67108864&&i!==(i=d[26]("uploadDocumentsButton")+"")&&(t.innerHTML=i),L[0]&67108864&&l!==(l=d[26]("closeButton")+"")&&e.set_data(r,l)},d(d){d&&(e.detach(t),e.detach(a),e.detach(s)),u=!1,e.run_all(p)}}}function li(n){let t,i,a,s,l,r,u,p,d,L,h=n[15]?`${n[26]("amount")}`:`${n[26](`new${n[8]}Limit`)}`,T,v,S,O,B,I,U=n[26]("setLimit")+"",j,M,P,A,k=e.ensure_array_like(n[6]),x=[];for(let w=0;w<k.length;w+=1)x[w]=Fe(Ne(n,k,w));let _=n[1]==="true"&&Ge(n),g=n[14]&&Ke(n),b=n[15]&&Ye(n),N=n[24]&&Ze(n);return{c(){t=e.element("div"),i=e.element("div"),a=e.element("div");for(let w=0;w<x.length;w+=1)x[w].c();s=e.space(),l=e.element("form"),_&&_.c(),r=e.space(),g&&g.c(),u=e.space(),b&&b.c(),p=e.space(),d=e.element("label"),L=e.element("span"),T=e.text(h),v=e.space(),S=e.element("input"),O=e.space(),N&&N.c(),B=e.space(),I=e.element("button"),j=e.text(U),e.attr(a,"class","LimitsList "+(n[27]?"Desktop":"")),e.attr(L,"class","LimitInputText"),e.attr(S,"type","number"),e.attr(S,"pattern","[0-9]*"),e.attr(d,"class","LimitAmountInputWrapper"),e.attr(I,"class","LimitSubmitButton"),e.attr(I,"type","button"),I.disabled=!0,e.attr(l,"class","LimitsInteractionArea "+(n[27]?"Desktop":"")),e.attr(i,"class","LimitsPageContainer"),e.attr(t,"class",M="player-account-gaming-limits-page-2-gm16 "+("LimitTab"+n[3]))},m(w,C){e.insert(w,t,C),e.append(t,i),e.append(i,a);for(let R=0;R<x.length;R+=1)x[R]&&x[R].m(a,null);e.append(i,s),e.append(i,l),_&&_.m(l,null),e.append(l,r),g&&g.m(l,null),e.append(l,u),b&&b.m(l,null),e.append(l,p),e.append(l,d),e.append(d,L),e.append(L,T),e.append(d,v),e.append(d,S),e.set_input_value(S,n[10]),e.append(d,O),N&&N.m(d,null),e.append(l,B),e.append(l,I),e.append(I,j),n[64](I),P||(A=[e.listen(S,"input",n[63]),e.listen(S,"keydown",n[41]),e.listen(S,"keyup",n[32]),e.listen(I,"click",n[30]),e.listen(l,"submit",n[30])],P=!0)},p(w,C){if(C[0]&234881092|C[1]&249){k=e.ensure_array_like(w[6]);let R;for(R=0;R<k.length;R+=1){const Q=Ne(w,k,R);x[R]?x[R].p(Q,C):(x[R]=Fe(Q),x[R].c(),x[R].m(a,null))}for(;R<x.length;R+=1)x[R].d(1);x.length=k.length}w[1]==="true"?_?_.p(w,C):(_=Ge(w),_.c(),_.m(l,r)):_&&(_.d(1),_=null),w[14]?g?g.p(w,C):(g=Ke(w),g.c(),g.m(l,u)):g&&(g.d(1),g=null),w[15]?b?b.p(w,C):(b=Ye(w),b.c(),b.m(l,p)):b&&(b.d(1),b=null),C[0]&67141888&&h!==(h=w[15]?`${w[26]("amount")}`:`${w[26](`new${w[8]}Limit`)}`)&&e.set_data(T,h),C[0]&1024&&e.to_number(S.value)!==w[10]&&e.set_input_value(S,w[10]),w[24]?N?N.p(w,C):(N=Ze(w),N.c(),N.m(d,null)):N&&(N.d(1),N=null),C[0]&67108864&&U!==(U=w[26]("setLimit")+"")&&e.set_data(j,U),C[0]&8&&M!==(M="player-account-gaming-limits-page-2-gm16 "+("LimitTab"+w[3]))&&e.attr(t,"class",M)},d(w){w&&e.detach(t),e.destroy_each(x,w),_&&_.d(),g&&g.d(),b&&b.d(),N&&N.d(),n[64](null),P=!1,e.run_all(A)}}}function ri(n){let t;return{c(){t=e.element("p"),t.textContent="500 Server error"},m(i,a){e.insert(i,t,a)},p:e.noop,d(i){i&&e.detach(t)}}}function mi(n){let t,i,a,s,l,r,u=e.ensure_array_like(Array(3)),p=[];for(let d=0;d<u.length;d+=1)p[d]=_i(Zt(n,u,d));return{c(){t=e.element("div"),i=e.element("div"),a=e.element("div"),a.innerHTML='<ui-skeleton width="auto" height="20px" structure="text" margin-right="auto"></ui-skeleton>',s=e.space();for(let d=0;d<p.length;d+=1)p[d].c();l=e.space(),r=e.element("div"),r.innerHTML='<div class="skletonHeader"><ui-skeleton width="auto" height="15px" structure="title" margin-right="auto"></ui-skeleton></div> <div class="skeletonPeriod"><ui-skeleton width="auto" height="50px" structure="rectangle" margin-right="auto"></ui-skeleton></div> <div class="skletonHeader"><ui-skeleton width="auto" height="15px" structure="title" margin-right="auto"></ui-skeleton></div> <div class="skeletonInputAmount"><ui-skeleton width="auto" height="50px" structure="rectangle" margin-right="auto"></ui-skeleton></div> <div class="skeletonButton"><ui-skeleton width="auto" height="40px" structure="rectangle" margin-right="auto"></ui-skeleton></div>',e.attr(a,"class","skeletonLimitText"),e.attr(i,"class","skeletonLimitWrapper"),e.attr(r,"class","skeletonInputWrapper"),e.attr(t,"class","skeletonLimitContainer")},m(d,L){e.insert(d,t,L),e.append(t,i),e.append(i,a),e.append(i,s);for(let h=0;h<p.length;h+=1)p[h]&&p[h].m(i,null);e.append(t,l),e.append(t,r)},p:e.noop,d(d){d&&e.detach(t),e.destroy_each(p,d)}}}function di(n){let t,i,a,s=n[26]("noLimitText")+"",l;return{c(){t=e.element("div"),i=e.element("div"),a=e.element("div"),l=e.text(s),e.attr(a,"class","LimitDetailsTextWrapper"),e.attr(i,"class","LimitDetailsWrapper"),e.attr(t,"class","LimitDetails")},m(r,u){e.insert(r,t,u),e.append(t,i),e.append(i,a),e.append(a,l)},p(r,u){u[0]&67108864&&s!==(s=r[26]("noLimitText")+"")&&e.set_data(l,s)},d(r){r&&e.detach(t)}}}function ui(n){let t,i,a,s=n[26]("lugasPrivacy")+"",l;return{c(){t=e.element("div"),i=e.element("div"),a=e.element("div"),l=e.text(s),e.attr(a,"class","LimitDetailsTextWrapper"),e.attr(i,"class","LimitDetailsWrapper"),e.attr(t,"class","LimitDetails")},m(r,u){e.insert(r,t,u),e.append(t,i),e.append(i,a),e.append(a,l)},p(r,u){u[0]&67108864&&s!==(s=r[26]("lugasPrivacy")+"")&&e.set_data(l,s)},d(r){r&&e.detach(t)}}}function pi(n){let t,i=e.ensure_array_like(n[126].currentLimits),a=[];for(let s=0;s<i.length;s+=1)a[s]=qe(Re(n,i,s));return{c(){for(let s=0;s<a.length;s+=1)a[s].c();t=e.empty()},m(s,l){for(let r=0;r<a.length;r+=1)a[r]&&a[r].m(s,l);e.insert(s,t,l)},p(s,l){if(l[0]&234881092|l[1]&185){i=e.ensure_array_like(s[126].currentLimits);let r;for(r=0;r<i.length;r+=1){const u=Re(s,i,r);a[r]?a[r].p(u,l):(a[r]=qe(u),a[r].c(),a[r].m(t.parentNode,t))}for(;r<a.length;r+=1)a[r].d(1);a.length=i.length}},d(s){s&&e.detach(t),e.destroy_each(a,s)}}}function ci(n){let t,i,a,s=n[26]("lugasPrivacy")+"",l;return{c(){t=e.element("div"),i=e.element("div"),a=e.element("div"),l=e.text(s),e.attr(a,"class","LimitDetailsTextWrapper"),e.attr(i,"class","LimitDetailsWrapper"),e.attr(t,"class","LimitDetails")},m(r,u){e.insert(r,t,u),e.append(t,i),e.append(i,a),e.append(a,l)},p(r,u){u[0]&67108864&&s!==(s=r[26]("lugasPrivacy")+"")&&e.set_data(l,s)},d(r){r&&e.detach(t)}}}function Li(n){let t,i=`${n[38](n[131])}`,a;return{c(){t=e.element("span"),a=e.text(i)},m(s,l){e.insert(s,t,l),e.append(t,a)},p(s,l){l[0]&64&&i!==(i=`${s[38](s[131])}`)&&e.set_data(a,i)},d(s){s&&e.detach(t)}}}function fi(n){let t,i=`${n[38](n[131],!0)}`,a;return{c(){t=e.element("span"),a=e.text(i)},m(s,l){e.insert(s,t,l),e.append(t,a)},p(s,l){l[0]&64&&i!==(i=`${s[38](s[131],!0)}`)&&e.set_data(a,i)},d(s){s&&e.detach(t)}}}function gi(n){let t,i,a=`${n[38](n[131],!0)}`,s,l;function r(d,L){return d[131].isCoolOffCompleted?bi:ki}let u=r(n),p=u(n);return{c(){t=e.element("div"),i=e.element("span"),s=e.text(a),l=e.space(),p.c(),e.attr(t,"class","PendingLimit")},m(d,L){e.insert(d,t,L),e.append(t,i),e.append(i,s),e.append(t,l),p.m(t,null)},p(d,L){L[0]&64&&a!==(a=`${d[38](d[131],!0)}`)&&e.set_data(s,a),u===(u=r(d))&&p?p.p(d,L):(p.d(1),p=u(d),p&&(p.c(),p.m(t,null)))},d(d){d&&e.detach(t),p.d()}}}function hi(n){let t,i=`${n[26]("removedLimitText")} ${n[131].expiryDate}`,a;return{c(){t=e.element("div"),a=e.text(i),e.attr(t,"class","PendingLimit")},m(s,l){e.insert(s,t,l),e.append(t,a)},p(s,l){l[0]&67108928&&i!==(i=`${s[26]("removedLimitText")} ${s[131].expiryDate}`)&&e.set_data(a,i)},d(s){s&&e.detach(t)}}}function yi(n){let t,i=`${n[26]("removeAfterConfirm")}`,a;return{c(){t=e.element("div"),a=e.text(i),e.attr(t,"class","PendingLimit")},m(s,l){e.insert(s,t,l),e.append(t,a)},p(s,l){l[0]&67108864&&i!==(i=`${s[26]("removeAfterConfirm")}`)&&e.set_data(a,i)},d(s){s&&e.detach(t)}}}function vi(n){let t,i=`${n[26]("acknowledgedLimit")}`,a;return{c(){t=e.element("div"),a=e.text(i),e.attr(t,"class","PendingLimit")},m(s,l){e.insert(s,t,l),e.append(t,a)},p(s,l){l[0]&67108864&&i!==(i=`${s[26]("acknowledgedLimit")}`)&&e.set_data(a,i)},d(s){s&&e.detach(t)}}}function ki(n){let t=`${n[131].period!=="None"||n[131].value!=="cumulativeSession"?" ":n[26]("per")} ${n[26](`${n[131].period}`)} ${n[26]("updateText")} ${n[131].expiryDate}`,i;return{c(){i=e.text(t)},m(a,s){e.insert(a,i,s)},p(a,s){s[0]&67108928&&t!==(t=`${a[131].period!=="None"||a[131].value!=="cumulativeSession"?" ":a[26]("per")} ${a[26](`${a[131].period}`)} ${a[26]("updateText")} ${a[131].expiryDate}`)&&e.set_data(i,t)},d(a){a&&e.detach(i)}}}function bi(n){let t=`${n[131].period!=="None"||n[131].value!=="cumulativeSession"?" ":n[26]("per")} ${n[26](`${n[131].period}`)} ${n[26]("updateAfterConfirm")}`,i;return{c(){i=e.text(t)},m(a,s){e.insert(a,i,s)},p(a,s){s[0]&67108928&&t!==(t=`${a[131].period!=="None"||a[131].value!=="cumulativeSession"?" ":a[26]("per")} ${a[26](`${a[131].period}`)} ${a[26]("updateAfterConfirm")}`)&&e.set_data(i,t)},d(a){a&&e.detach(i)}}}function Oe(n){let t,i,a=n[25][n[131].scheduleId].timer+"",s,l,r,u;return{c(){t=e.element("div"),i=e.element("button"),s=e.text(a),e.attr(i,"class",l="ReloadLimitButton "+(n[27]?"":"Mobile")+" "+(n[25][n[131].scheduleId].timerStopped?"":"disabled")),e.attr(t,"class","ContainerLimitActions "+(n[27]?"":"Mobile"))},m(p,d){e.insert(p,t,d),e.append(t,i),e.append(i,s),r||(u=e.listen(i,"click",n[56]),r=!0)},p(p,d){d[0]&33554496&&a!==(a=p[25][p[131].scheduleId].timer+"")&&e.set_data(s,a),d[0]&33554496&&l!==(l="ReloadLimitButton "+(p[27]?"":"Mobile")+" "+(p[25][p[131].scheduleId].timerStopped?"":"disabled"))&&e.attr(i,"class",l)},d(p){p&&e.detach(t),r=!1,u()}}}function We(n){let t,i,a=n[26]("removeLimit")+"",s,l,r;function u(){return n[57](n[131])}return{c(){t=e.element("div"),i=e.element("button"),s=e.text(a),e.attr(i,"class","RemoveLimitButton "+(n[27]?"":"Mobile")),e.attr(t,"class","ContainerLimitActions "+(n[27]?"":"Mobile"))},m(p,d){e.insert(p,t,d),e.append(t,i),e.append(i,s),l||(r=e.listen(i,"click",u),l=!0)},p(p,d){n=p,d[0]&67108864&&a!==(a=n[26]("removeLimit")+"")&&e.set_data(s,a)},d(p){p&&e.detach(t),l=!1,r()}}}function Ve(n){let t,i,a=n[26]("confirmUpdateLimit")+"",s,l,r,u=n[26]("cancelUpdateLimit")+"",p,d,L;function h(){return n[58](n[131])}function T(){return n[59](n[131])}return{c(){t=e.element("div"),i=e.element("button"),s=e.text(a),l=e.space(),r=e.element("button"),p=e.text(u),e.attr(i,"class","ConfirmLimitButton "+(n[27]?"":"Mobile")),e.attr(r,"class","CancelLimitButton "+(n[27]?"":"Mobile")),e.attr(t,"class","ContainerLimitActions "+(n[27]?"":"Mobile"))},m(v,S){e.insert(v,t,S),e.append(t,i),e.append(i,s),e.append(t,l),e.append(t,r),e.append(r,p),d||(L=[e.listen(i,"click",h),e.listen(r,"click",T)],d=!0)},p(v,S){n=v,S[0]&67108864&&a!==(a=n[26]("confirmUpdateLimit")+"")&&e.set_data(s,a),S[0]&67108864&&u!==(u=n[26]("cancelUpdateLimit")+"")&&e.set_data(p,u)},d(v){v&&e.detach(t),d=!1,e.run_all(L)}}}function qe(n){let t,i,a,s,l,r=`${n[131].period!=="None"||n[131].value!=="cumulativeSession"?" ":n[26]("per")} ${n[26](`${n[131].period}`)}`,u,p,d,L,h=!n[131].isModified&&n[2].indexOf(n[126].value)>-1,T,v;function S(k,x){return k[131].acknowledgedLimit?fi:Li}let O=S(n),B=O(n);function I(k,x){if(k[131].acknowledgedLimit)return vi;if(k[131].isModified&&k[131].updateAmount==0&&k[131].isCoolOffCompleted)return yi;if(k[131].isModified&&k[131].updateAmount==0&&!k[131].isCoolOffCompleted)return hi;if(k[131].isModified)return gi}let U=I(n),j=U&&U(n),M=n[131].acknowledgedLimit&&Oe(n),P=h&&We(n),A=n[131].isCoolOffCompleted&!n[131].acknowledgedLimit&&Ve(n);return{c(){t=e.element("div"),i=e.element("div"),a=e.element("div"),s=e.element("div"),B.c(),l=e.space(),u=e.text(r),p=e.space(),j&&j.c(),d=e.space(),M&&M.c(),L=e.space(),P&&P.c(),T=e.space(),A&&A.c(),v=e.space(),e.attr(s,"class","CurrentLimit"),e.attr(a,"class","CurrentLimitContainer"),e.attr(i,"class","LimitDetailsTextWrapper"),e.attr(t,"class","LimitDetails")},m(k,x){e.insert(k,t,x),e.append(t,i),e.append(i,a),e.append(a,s),B.m(s,null),e.append(s,l),e.append(s,u),e.append(a,p),j&&j.m(a,null),e.append(i,d),M&&M.m(i,null),e.append(i,L),P&&P.m(i,null),e.append(i,T),A&&A.m(i,null),e.append(t,v)},p(k,x){O===(O=S(k))&&B?B.p(k,x):(B.d(1),B=O(k),B&&(B.c(),B.m(s,l))),x[0]&67108928&&r!==(r=`${k[131].period!=="None"||k[131].value!=="cumulativeSession"?" ":k[26]("per")} ${k[26](`${k[131].period}`)}`)&&e.set_data(u,r),U===(U=I(k))&&j?j.p(k,x):(j&&j.d(1),j=U&&U(k),j&&(j.c(),j.m(a,null))),k[131].acknowledgedLimit?M?M.p(k,x):(M=Oe(k),M.c(),M.m(i,L)):M&&(M.d(1),M=null),x[0]&68&&(h=!k[131].isModified&&k[2].indexOf(k[126].value)>-1),h?P?P.p(k,x):(P=We(k),P.c(),P.m(i,T)):P&&(P.d(1),P=null),k[131].isCoolOffCompleted&!k[131].acknowledgedLimit?A?A.p(k,x):(A=Ve(k),A.c(),A.m(i,null)):A&&(A.d(1),A=null)},d(k){k&&e.detach(t),B.d(),j&&j.d(),M&&M.d(),P&&P.d(),A&&A.d()}}}function Fe(n){let t,i,a=n[37](n[126])+"",s,l,r;function u(L,h){return L[126].value==="lugas"?ci:L[126].currentLimits.length>0?pi:L[126].value==="lugas"?ui:di}let p=u(n),d=p(n);return{c(){t=e.element("div"),i=e.element("p"),s=e.text(a),l=e.space(),d.c(),r=e.space(),e.attr(i,"class","LimitTitle"),e.attr(t,"class","LimitWrapper "+(n[27]?"Desktop":""))},m(L,h){e.insert(L,t,h),e.append(t,i),e.append(i,s),e.append(t,l),d.m(t,null),e.append(t,r)},p(L,h){h[0]&64&&a!==(a=L[37](L[126])+"")&&e.set_data(s,a),p===(p=u(L))&&d?d.p(L,h):(d.d(1),d=p(L),d&&(d.c(),d.m(t,r)))},d(L){L&&e.detach(t),d.d()}}}function Ge(n){let t,i,a=n[26]("complianceText")+"",s;return{c(){t=e.element("div"),i=e.element("p"),s=e.text(a),e.attr(i,"class","LimitComplianceText"),e.attr(t,"class","LimitCompliance")},m(l,r){e.insert(l,t,r),e.append(t,i),e.append(i,s)},p(l,r){r[0]&67108864&&a!==(a=l[26]("complianceText")+"")&&e.set_data(s,a)},d(l){l&&e.detach(t)}}}function Ke(n){let t,i,a=n[26]("limitType")+"",s,l,r,u,p,d=e.ensure_array_like(n[6]),L=[];for(let h=0;h<d.length;h+=1)L[h]=He(Ue(n,d,h));return{c(){t=e.element("label"),i=e.element("span"),s=e.text(a),l=e.space(),r=e.element("select");for(let h=0;h<L.length;h+=1)L[h].c();e.attr(i,"class","LimitSelectText"),e.attr(r,"name",""),e.attr(r,"id",""),n[9]===void 0&&e.add_render_callback(()=>n[60].call(r)),e.attr(t,"class","LimitTypeDropdownWrapper")},m(h,T){e.insert(h,t,T),e.append(t,i),e.append(i,s),e.append(t,l),e.append(t,r);for(let v=0;v<L.length;v+=1)L[v]&&L[v].m(r,null);e.select_option(r,n[9],!0),u||(p=[e.listen(r,"change",n[60]),e.listen(r,"change",n[61])],u=!0)},p(h,T){if(T[0]&67108864&&a!==(a=h[26]("limitType")+"")&&e.set_data(s,a),T[0]&64|T[1]&64){d=e.ensure_array_like(h[6]);let v;for(v=0;v<d.length;v+=1){const S=Ue(h,d,v);L[v]?L[v].p(S,T):(L[v]=He(S),L[v].c(),L[v].m(r,null))}for(;v<L.length;v+=1)L[v].d(1);L.length=d.length}T[0]&512&&e.select_option(r,h[9])},d(h){h&&e.detach(t),e.destroy_each(L,h),u=!1,e.run_all(p)}}}function He(n){let t,i=n[37](n[126])+"",a;return{c(){t=e.element("option"),a=e.text(i),t.__value=n[128],e.set_input_value(t,t.__value)},m(s,l){e.insert(s,t,l),e.append(t,a)},p(s,l){l[0]&64&&i!==(i=s[37](s[126])+"")&&e.set_data(a,i)},d(s){s&&e.detach(t)}}}function Ye(n){let t,i,a=n[26]("period")+"",s,l,r,u,p,d=e.ensure_array_like(n[5][n[7]].periods),L=[];for(let h=0;h<d.length;h+=1)L[h]=Xe(Ie(n,d,h));return{c(){t=e.element("label"),i=e.element("span"),s=e.text(a),l=e.space(),r=e.element("select");for(let h=0;h<L.length;h+=1)L[h].c();e.attr(i,"class","PeriodSelectText"),e.attr(r,"name",""),e.attr(r,"id",""),n[8]===void 0&&e.add_render_callback(()=>n[62].call(r)),e.attr(t,"class","LimitPeriodDropdownWrapper")},m(h,T){e.insert(h,t,T),e.append(t,i),e.append(i,s),e.append(t,l),e.append(t,r);for(let v=0;v<L.length;v+=1)L[v]&&L[v].m(r,null);e.select_option(r,n[8],!0),u||(p=e.listen(r,"change",n[62]),u=!0)},p(h,T){if(T[0]&67108864&&a!==(a=h[26]("period")+"")&&e.set_data(s,a),T[0]&67109024){d=e.ensure_array_like(h[5][h[7]].periods);let v;for(v=0;v<d.length;v+=1){const S=Ie(h,d,v);L[v]?L[v].p(S,T):(L[v]=Xe(S),L[v].c(),L[v].m(r,null))}for(;v<L.length;v+=1)L[v].d(1);L.length=d.length}T[0]&416&&e.select_option(r,h[8])},d(h){h&&e.detach(t),e.destroy_each(L,h),u=!1,p()}}}function Xe(n){let t,i=n[26](n[123])+"",a,s;return{c(){t=e.element("option"),a=e.text(i),t.__value=s=n[123],e.set_input_value(t,t.__value),t.selected=!0},m(l,r){e.insert(l,t,r),e.append(t,a)},p(l,r){r[0]&67109024&&i!==(i=l[26](l[123])+"")&&e.set_data(a,i),r[0]&160&&s!==(s=l[123])&&(t.__value=s,e.set_input_value(t,t.__value))},d(l){l&&e.detach(t)}}}function Ze(n){let t,i=n[10]<n[12]?`${n[26]("invalidInputMessageLimitMin",{values:{minValue:n[12],currency:n[0]}})}`:`${n[26]("invalidInputMessageLimitMax",{values:{maxValue:n[13],currency:n[0]}})}`,a;return{c(){t=e.element("p"),a=e.text(i),e.attr(t,"class","InvalidInput")},m(s,l){e.insert(s,t,l),e.append(t,a)},p(s,l){l[0]&67122177&&i!==(i=s[10]<s[12]?`${s[26]("invalidInputMessageLimitMin",{values:{minValue:s[12],currency:s[0]}})}`:`${s[26]("invalidInputMessageLimitMax",{values:{maxValue:s[13],currency:s[0]}})}`)&&e.set_data(a,i)},d(s){s&&e.detach(t)}}}function _i(n){let t;return{c(){t=e.element("div"),t.innerHTML='<div class="skeletonLimitAmount"><div class="skeletonAmountText"><ui-skeleton width="auto" height="20px" structure="text" margin-right="auto"></ui-skeleton></div> <div class="skeletonSubText"><ui-skeleton width="auto" height="20px" structure="text" margin-right="auto"></ui-skeleton></div></div> <div class="skeletonLimitButton"><div><ui-skeleton width="auto" height="40px" structure="rectangle" margin-right="auto"></ui-skeleton></div> <div><ui-skeleton width="auto" height="40px" structure="rectangle" margin-right="auto"></ui-skeleton></div></div> ',e.attr(t,"class","skeletonLimitContent")},m(i,a){e.insert(i,t,a)},p:e.noop,d(i){i&&e.detach(t)}}}function wi(n){let t,i,a=n[19]&&Be(n);function s(u,p){if(u[16])return mi;if(u[17])return ri;if(!u[16])return li}let l=s(n),r=l&&l(n);return{c(){t=e.element("div"),a&&a.c(),i=e.space(),r&&r.c()},m(u,p){e.insert(u,t,p),a&&a.m(t,null),e.append(t,i),r&&r.m(t,null),n[65](t)},p(u,p){u[19]?a?a.p(u,p):(a=Be(u),a.c(),a.m(t,i)):a&&(a.d(1),a=null),l===(l=s(u))&&r?r.p(u,p):(r&&r.d(1),r=l&&l(u),r&&(r.c(),r.m(t,null)))},i:e.noop,o:e.noop,d(u){u&&e.detach(t),a&&a.d(),r&&r.d(),n[65](null)}}}function Si(n,t,i){let a;e.component_subscribe(n,e.$format,o=>i(26,a=o));let{lang:s="en"}=t,{currency:l=""}=t,{limits:r=""}=t,{session:u=""}=t,{userid:p=""}=t,{endpoint:d=""}=t,{apiversion:L=""}=t,{customcurrencysymbols:h=""}=t,{enablecompliancetext:T=""}=t,{deletelimit:v=""}=t,{amountsconfig:S=""}=t,{periodsconfig:O=""}=t,{limittabindex:B=""}=t,{limitformat:I=""}=t,{clientstyling:U=""}=t,{clientstylingurl:j=""}=t,{mbsource:M}=t,{translationurl:P=""}=t,A,k=window.navigator.userAgent,x=!e.isMobile(k),_=[],g="",b="",N="",w=0,C,R,Q="",ie="",pe="",$={},ae={},ve=!1,Le=!1,V=!0,q=!1,fe=!1,ne=!1,Z=!1,H="",se="",F=[],le,ke,re=!1,Qe={},oe={EUR:"€",RON:" lei",USD:"$"},K={};const be={wager:"wagering",loss:"loss",deposit:"deposit",netdeposit:"netdeposit",cumulativeSession:"cumulativeSession",sessionLimit:"session"},_e={unableToUpdatePendingRequest:["SYS_1037","SYS_1142","SYS_1140"],internalServerError:["F0004","F0006"]},$e=()=>{fetch(P).then(m=>m.json()).then(m=>{Object.keys(m).forEach(c=>{ze(c,m[c])})}).catch(m=>{console.log(m)})};Object.keys(ee).forEach(o=>{ze(o,ee[o])});const ge=o=>`dataLayer-${o}`,G=(o,m)=>{typeof gtag=="function"&>ag({event:o,limit_category:ee[s][ge(N.toLowerCase())]||N,limit_type:ee[s][ge(g.toLowerCase())]||g,limit_period:ee[s][ge(b.toLowerCase())]||b,limit_amount:C||m})},et=()=>{var y;const o=S.split(",").map(f=>f.split(":")),m=O.split(",").map(f=>f.split(":"));for(let[f,D]of o.entries())if(D[0]!==m[f][0])throw new Error(`Limit config mismatch: "${D[0]}" does not match "${m[f][0]}"`);const c=o.reduce((f,D,E)=>{const W=D[0].slice(D[0].indexOf("(")+1,D[0].indexOf(")")),te=D[0].slice(0,D[0].indexOf("(")),ue=D[1],ye=m[E][1].trim().replace("D","Daily").replace("W","Weekly").replace("M","Monthly").replace("N","None").split("-"),Ft={value:W,product:te,minMax:ue,periods:ye,callValue:z[W].callValue,callValue16:z[W].callValue16,title:z[W].title};return f.push(Ft),f},[]);for(let f=0;f<c.length;f++)i(6,_[f].product=c[f].product,_),i(6,_[f].min=parseInt(c[f].minMax.split("-")[0],10),_),i(6,_[f].max=parseInt(c[f].minMax.split("-")[1],10),_),i(5,z[c[f].value].periods=c[f].periods,z);pe=(y=_[0])==null?void 0:y.value,_.forEach(f=>{$[f.value]={min:f.min,max:f.max},Qe[f.value]=f.product}),$[pe]?(i(12,Q=$[pe].min),i(13,ie=$[pe].max)):(i(12,Q=1),i(13,ie=9999999))},tt=()=>{const o=/\(([^)]+)\)/g;return[...S.matchAll(o)].flat().filter(c=>!c.includes("("))},it=()=>{tt().forEach(m=>{z[m]?_.push(ce({},z[m])):console.error(`Unknown limit: ${m}`)}),et(),i(7,g=_[0].value),i(8,b=z[g].periods[0]),N=_[0].product,i(14,ve=_.length>1),i(15,Le=z[g].periods.length>1)},we=()=>{i(7,g=_[w].value),i(8,b=z[g].periods[0]),i(15,Le=z[g].periods.length>1)},Se=()=>{N=_[w].product},Y=o=>{if(o.status>=300)at(o);else return i(18,fe=!1),o.status!==204?o.json():o},at=o=>{i(17,q=!0);let m;throw o.json().then(c=>{for(const y in _e)if(_e[y].some(f=>c.error.includes(f))){m=y;break}console.error("errType",m),!m&&de(c)}).finally(()=>{m&&de(m),i(17,q=!1),i(16,V=!1)}),new Error("An error occured during the fetch request")},nt=()=>{if(!(C>0))return;J(),i(16,V=!0);let o=new URL(`/v2/player/${p}/limits`,d),m={};g==="sessionLimit"?m={sessionLimit:C,sessionLimitUnit:"minute"}:g==="cumulativeSession"?m[z[g].callValue]=[{period:b,minutes:C}]:m[z[g].callValue]=[{period:z[g].periods[0]==="None"?null:b,amount:C,currency:l}];let c={method:"PUT",headers:{"X-SessionID":u,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(m)};fetch(o.href,c).then(y=>Y(y)).then(y=>{G("self_limitation_success"),X()}).catch(y=>{console.error(y),i(17,q=!0)})},ot=()=>{J(),i(16,V=!0);const m=_[w].currentLimits.find(W=>W.period===b),c=m?"v2":"v1",y=new URL(`/${c}/player/${p}/limits/monetary/${m?m.id:""}`,d),f=m?"PUT":"POST",D=m?{amount:C,skipCoolOff:!1}:{amount:C,currency:l,period:z[g].periods[0]==="None"?null:b,type:z[g].callValue16,products:[N!=null?N:"All"],walletTypes:["Deposit","NetDeposit"].includes(z[g].callValue16)?["All"]:["RealCash"]};let E={method:f,headers:{"X-SessionID":u,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(D)};fetch(y.href,E).then(W=>Y(W)).then(W=>{G("self_limitation_success"),X()}).catch(W=>{console.log(W),i(17,q=!0)})},st=()=>{if(!(C>0))return;J(),i(16,V=!0);const o=new URL(`/v1/player/${p}/limits/session/`,d);let y={method:"PUT",headers:{"X-SessionID":u,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({sessionLimit:C,sessionLimitUnit:"minute"})};fetch(o.href,y).then(f=>Y(f)).then(f=>{G("self_limitation_success"),X()}).catch(f=>{console.log(f),i(17,q=!0)})},lt=()=>{if(!(C>0))return;J(),i(16,V=!0);const o=new URL(`/v1/player/${p}/limits/session/`,d);let y={method:"PUT",headers:{"X-SessionID":u,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({cumulativeSessionLimits:[{period:b,minutes:C}]})};fetch(o.href,y).then(f=>Y(f)).then(f=>{G("self_limitation_success"),X()}).catch(f=>{console.log(f),i(17,q=!0)})},rt=()=>{if(!(C>0))return;J(),i(16,V=!0);const o=new URL(`/v2/player/${p}/limit/lugas`,d);let y={method:"POST",headers:{"X-SessionID":u,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({amount:C,roleLimitAmount:0,softMigration:!1,keepLimit:!1})};fetch(o.href,y).then(f=>Y(f)).then(f=>{i(23,le=f.popup),f.operatorDepositLimitAmount,ke=f.regulatorDepositLimitAmount,G("self_limitation_success"),X()}).catch(f=>{console.log(f),i(17,q=!0)})},mt=()=>{if(ae={},L==="gm16")switch(g){case"lugas":rt();break;case"sessionLimit":st();break;case"cumulativeSession":lt();break;default:ot();break}else if(L==="gmcore")nt();else throw Error(`Invalid apiversion attribute: ${L}`);G("self_limitation_request")},X=()=>{switch(L){case"gmcore":dt();break;case"gm16":ut();break}},dt=()=>{i(16,V=!0);let o=new URL(`/v2/player/${p}/limits`,d),m={method:"GET",headers:{"X-SessionID":u,"Content-Type":"application/json",Accept:"application/json"}};fetch(o.href,m).then(c=>Y(c)).then(c=>{F=c,ne&&de(),Ae(F),pt(F),i(10,C=null)}).catch(c=>{console.error("Error LimitsWidget: ",c),i(17,q=!0)}).finally(()=>{i(16,V=!1)})},ut=()=>{i(16,V=!0),F=[];let o=new URL(`/v1/player/${p}/limits/monetary`,d),m=new URL(`/v1/player/${p}/limits/session`,d),c=!1,y={method:"GET",headers:{"X-SessionID":u,"Content-Type":"application/json",Accept:"application/json"}};fetch(o.href,y).then(f=>Y(f)).then(f=>{F.push(f),L==="gmcore"&&Ae(F),L==="gm16"&&ct(F),ne&&de(),i(10,C=null)}).catch(f=>{console.error("Error LimitsWidget: ",f),i(17,q=!0)}).finally(()=>{c&&i(16,V=!1),c=!0}),fetch(m.href,y).then(f=>Y(f)).then(f=>{F.push(f),ne&&de(),L==="gm16"&&Lt(F),L==="gm16"&&ft(F),i(10,C=null)}).catch(f=>{console.error("Error LimitsWidget: ",f),i(17,q=!0)}).finally(()=>{c&&i(16,V=!1),c=!0})},Ae=o=>{_.forEach(m=>{m.currentLimits=[];const c=Array.isArray(o[z[m.value].callValue])?o[z[m.value].callValue]:[o[z[m.value].callValue]];c.length===0||c[0]===void 0||(c.forEach((y,f)=>{var E;const D=o[z[m.value].callValue][f];m.currentLimits.push({}),m.currentLimits[f].limitType=m.value,m.currentLimits[f].amount=I?D.amount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(D.amount),m.currentLimits[f].currency=(E=oe[D.currency])!=null?E:D.currency,m.currentLimits[f].period=D.period,m.currentLimits[f].updateAmount=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(D.updateAmount),m.currentLimits[f].isModified=D.isModified,m.currentLimits[f].expiryDate=`${new Date(D.expiryDate).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")} (GMT)`}),m.currentLimits=me(m.currentLimits))})},pt=o=>{const m=a("minutes");_.filter(c=>c.value==="sessionLimit"||c.value==="cumulativeSession").forEach(c=>{var y;c.currentLimits=[],(y=o[z[c.value].callValue])==null||y.forEach((f,D)=>{const E=o[z[c.value].callValue][D];c.currentLimits.push({limitType:c.value,amount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(E.minutes),currency:m,isModified:E.isModified,period:c.value==="cumulativeSession"?E.period:"None",updateAmount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(E.updateMinutes),expiryDate:`${new Date(E.expiryDate).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")} (GMT)`})}),c.currentLimits=me(c.currentLimits)})},ct=o=>{var m;(m=o[0])!=null&&m.limits&&_.forEach(c=>{var y;c.currentLimits=[];for(const f of o[0].limits)if(f.type===c.callValue16&&f.products.includes(c.product)){let D=0,E=f.schedules.length>0?f.schedules.find(W=>W.id):{};f.schedules.length>0&&(D=I?E.updateAmount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(E.updateAmount)),c.currentLimits.push({limitType:c.value,amount:I?f.amount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(f.amount),currency:(y=oe[f.currency])!=null?y:f.currency,isModified:f.schedules.length>0,period:f.period,product:f.products[0],updateAmount:D,isCoolOffCompleted:E?E.isCoolOffCompleted:!1,scheduleId:E?E.id:null,expiryDate:f.schedules.length>0?`${new Date(f.schedules[0].applyAt).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")} (GMT)`:"",id:f.id}),c.currentLimits.forEach(W=>{W.acknowledgedLimit=Object.keys(K).some(te=>W.scheduleId===te)})}c.currentLimits=me(c.currentLimits)})},Lt=o=>{var m;(m=o[1])!=null&&m.sessionLimit&&_.filter(c=>c.value==="sessionLimit").forEach(c=>{c.currentLimits.push({limitType:"sessionLimit",amount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(o[1].sessionLimit.minutes),currency:a("minutes"),isModified:o[1].sessionLimit.isModified,period:"None",updateAmount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(o[1].sessionLimit.updateMinutes),expiryDate:o[1].sessionLimit.expiryDate}),c.currentLimits=me(c.currentLimits)})},ft=o=>{var m;(m=o[1])!=null&&m.cumulativeSessionLimits&&_.filter(c=>c.value==="cumulativeSession").forEach(c=>{for(const y of o[1].cumulativeSessionLimits)c.currentLimits.push({limitType:"cumulativeSession",amount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(y.minutes),currency:a("minutes"),isModified:y.isModified,period:y.period,updateAmount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(y.updateMinutes),expiryDate:y.expiryDate});c.currentLimits=me(c.currentLimits)})},me=o=>{const m={Daily:0,Weekly:1,Monthly:2};return o.sort((c,y)=>m[c.period]-m[y.period]),o},gt=()=>{const o=C-Math.floor(C)===0;C>=Q&&C<=ie&&o?(i(24,re=!1),R.removeAttribute("disabled")):(i(24,re=!0),R.setAttribute("disabled","true"))},Ce=()=>{i(24,re=!1),$!=null&&$[g]?(i(12,Q=$[g].min),i(13,ie=$[g].max)):(i(12,Q=1),i(13,ie=9999999))},ht=()=>{if(F){const o=F[z[g].callValue].find(y=>y.period===b),m=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(o.amount);let c=a("popupImmediateUpdate").replace("{selectedLimit}",he()).replace("{updatedAmount}",m).replace("{currency}",oe[o.currency]||o.currency).replace("{selectedPeriod}",a(`${b}`));i(21,H=o.isModified?`${a("popupPendingUpdate")} ${new Date(o.expiryDate).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")} (GMT)`:c)}i(20,Z=!0)},yt=()=>{var D;const o=((D=F[0])==null?void 0:D.limits)||F.limits;let m=null;if(!F){i(20,Z=!0);return}Object.keys(ae).length>0?m=o.find(E=>E.id===ae.id):m=o.find(E=>E.type.toLowerCase()===be[g].toLowerCase()&&(E.period===b||E.period==="None")&&E.products[0]===N),(m==null?void 0:m.schedules.length)>0&&K[m==null?void 0:m.schedules[0].id]&&(m.amount=m.schedules[0].updateAmount);const c=xe(m)||Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(m.amount),y=m.schedules.length>0?`${new Date(m.schedules[0].applyAt).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")} (GMT)`:"";let f=a("popupImmediateUpdate").replace("{selectedLimit}",he()).replace("{updatedAmount}",c).replace("{selectedPeriod}",a(`${m.period}`));m.schedules.length>0&&K[m.schedules[0].id]?i(21,H=f):i(21,H=m.schedules.length>0?`${a("popupPendingUpdate")} ${y}`:f),i(20,Z=!0)},vt=()=>{le==1&&i(22,se="PopupKyc"),le==2&&(i(21,H=`${a("popup2_a")}${Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(ke)} ${l} ${a("popup2_b")}`),i(22,se="PopupKyc2")),le==3&&(i(21,H=a("popup3")),i(22,se="PopupSuccess")),i(20,Z=!0)},kt=()=>{i(21,H=a("sessionLimitUpdated")),i(20,Z=!0)},bt=()=>{if(F){const o=F[z[g].callValue].find(y=>(y.period===b||b==="None")&&y.products[0]===N),m=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(o.minutes);let c=a("popupImmediateUpdate").replace("{selectedLimit}",a(`${g}`)).replace("{updatedAmount}",m).replace("{currency}",a("minutes")).replace("{selectedPeriod}",a(`${b}`));i(21,H=o.isModified?`${a("popupPendingUpdate")} ${new Date(o.expiryDate).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")} (GMT)`:c)}i(20,Z=!0)},_t=o=>{var m;return(m=o==null?void 0:o.error)==null?void 0:m.includes("Limit update is not permitted due to LimitUpdateControl")},wt=o=>{var m;return(m=o==null?void 0:o.error)==null?void 0:m.includes("Limit remove is not permitted due to LimitUpdateControl")},St=o=>{var m;return(m=o==null?void 0:o.error)==null?void 0:m.includes("[NotFoundException] Limit does not exist")},At=o=>{var m;return(m=o.error)==null?void 0:m.includes("Invalid Session")},de=o=>{if(window.postMessage({type:"OpenLimitsPopup"},window.location.href),q){if(i(18,fe=!0),!o){i(20,Z=!0);return}o.thirdPartyResponse||i(21,H=a(`${o}`)),o.thirdPartyResponse&&i(21,H=o.thirdPartyResponse.message),_t(o)&&i(21,H=a("popupUpdateLimitException")),wt(o)&&i(21,H=a("popupRemoveLimitException")),St(o)&&i(21,H=a("notFoundException")),At(o)&&i(21,H=a("sessionExpiredException")),i(20,Z=!0);return}switch(L){case"gmcore":g==="sessionLimit"||g==="cumulativeSession"?bt():ht();break;case"gm16":g==="lugas"?vt():g==="sessionLimit"||g==="cumulativeSession"?kt():yt();break;default:throw new Error(`Invalid apiversion attribute: ${L}`)}},J=()=>{i(19,ne=!0),window.postMessage({type:"DisableScroll"},window.location.href)},Ct=o=>{i(7,g=o.limitType),i(8,b=o.period),J(),i(16,V=!0);let m=new URL(`/v2/player/${p}/limits/${be[o.limitType]}`,d);o.limitType!=="sessionLimit"&&m.searchParams.append("periods",o.period);let c={method:"DELETE",headers:{"X-SessionID":u,"Content-Type":"application/json",Accept:"application/json"}};fetch(m.href,c).then(y=>Y(y)).then(y=>{G("self_limitation_cancel_success",o.amount),X()}).catch(y=>{G("self_limitation_cancel_failed",o.amount),console.log(y),i(17,q=!0)})},Te=o=>{switch(o.period,L){case"gmcore":Ct(o);break;case"gm16":ae=o,o.limitType==="sessionLimit"||o.limitType==="cumulativeSession"?Tt(o):jt(o);break}G("self_limitation_cancel_request",o.amount)},Tt=o=>{const m=new URL(`/v1/player/${p}/limits/session/session`,d),c=new URL(`/v1/player/${p}/limits/session/cumulativeSession?periods=${o.period}`,d);let y;switch(o.limitType){case"sessionLimit":y=m;break;case"cumulativeSession":y=c;break;default:throw Error(`Unknown limit.limitType: ${o.limitType}`)}J(),i(16,V=!0);let f={method:"DELETE",headers:{"X-SessionID":u,"Content-Type":"application/json",Accept:"application/json"}};fetch(y.href,f).then(D=>Y(D)).then(D=>{G("self_limitation_cancel_success",o.amount),X()}).catch(D=>{G("self_limitation_cancel_failed",o.amount),console.log(D),i(17,q=!0)})},jt=o=>{const m=new URL(`/v1/player/${p}/limits/monetary/${o.id}`,d);J(),i(16,V=!0);let c={method:"DELETE",headers:{"X-SessionID":u,"Content-Type":"application/json",Accept:"application/json"}};fetch(m.href,c).then(y=>Y(y)).then(y=>{G("self_limitation_cancel_success",o.amount),X()}).catch(y=>{G("self_limitation_cancel_failed",o.amount),console.log(y),i(17,q=!0)})},je=o=>{const m=new URL(`/v1/player/${p}/limits/schedule/${o.scheduleId}`,d);J(),i(16,V=!0);let c={method:"DELETE",headers:{"X-SessionID":u,"Content-Type":"application/json",Accept:"application/json"}};fetch(m.href,c).then(y=>Y(y)).then(y=>{ae=o,G("self_limitation_cancel_success",o.updateAmount),X()}).catch(y=>{G("self_limitation_cancel_failed",o.updateAmount),console.log(y),i(17,q=!0)})},De=o=>{const m=new URL(`v1/player/${p}/limits/schedule/acknowledge/${o.scheduleId}`,d);J(),i(16,V=!0);let c={method:"PATCH",headers:{"X-SessionID":u,"Content-Type":"application/json",Accept:"application/json"}};fetch(m.href,c).then(y=>Y(y)).then(y=>{ae=o,Dt(o),G("self_limitation_confirm_success",o.amount),X()}).catch(y=>{G("self_limitation_confirm_failed",o.amount),console.log(y),i(17,q=!0)})},Dt=o=>{let m=60;i(25,K[o.scheduleId]={},K),i(25,K[o.scheduleId].timer=`${m} ${ee[s].seconds}`,K),i(25,K[o.scheduleId].timerStopped=!1,K);let c=window.setInterval(()=>m===0?(window.clearInterval(c),i(25,K[o.scheduleId].timerStopped=!0,K),i(25,K[o.scheduleId].timer=ee[s].reloadLimitsButton,K)):i(25,K[o.scheduleId].timer=`${--m} ${ee[s].seconds}`,K),1e3)},he=o=>{let m;return o?m=a(o.value+o.product):m=a(g),m},xe=(o,m=!1)=>{if(!I)return m?`${o.updateAmount}${o.currency}`:`${o.amount}${o.currency}`;let c=I;const y=c.match(/\{(\d+)decimals\}/),f=y?parseInt(y[1],10):2,D=y?new RegExp("\\{\\d+decimals\\}","g"):"{decimals}";let E=m?o.updateAmount:o.amount;E=parseInt(E).toFixed(f);const[W,te]=I.includes(".")?[",","."]:[".",","];let[ue,ye]=E.split(".");return ue=ue.replace(/\B(?=(\d{3})+(?!\d))/g,W),E=`${ue}${te}${ye}`,c=c.replace("{currency}",oe[o.currency]||o.currency).replace("{amount}",E.split(te)[0]).replace(D,E.split(te)[1]),c},Ee=()=>{i(20,Z=i(19,ne=!1)),i(22,se=""),window.postMessage({type:"CloseLimitsPopup"},window.location.href),window.postMessage({type:"EnableScroll"},window.location.href)},xt=()=>{window.postMessage({type:"uploadDocuments"},window.location.href),Ee()},Et=o=>{o.keyCode===13&&re&&o.preventDefault()},Mt=()=>{if(!h)return;let o={};h.split(",").forEach(m=>{let c=m.split(":");o[c[0].trim()]=c[1].trim()}),oe=ce(ce({},oe),o)},Pt=()=>{Yt(s)};e.onMount(()=>()=>{});const zt=()=>X(),It=o=>Te(o),Ut=o=>De(o),Nt=o=>je(o);function Rt(){w=e.select_value(this),i(9,w)}const Bt=()=>{Se(),we(),Ce()};function Ot(){b=e.select_value(this),i(8,b),i(5,z),i(7,g)}function Wt(){C=e.to_number(this.value),i(10,C)}function Vt(o){e.binding_callbacks[o?"unshift":"push"](()=>{R=o,i(11,R)})}function qt(o){e.binding_callbacks[o?"unshift":"push"](()=>{A=o,i(4,A)})}return n.$$set=o=>{"lang"in o&&i(42,s=o.lang),"currency"in o&&i(0,l=o.currency),"limits"in o&&i(43,r=o.limits),"session"in o&&i(44,u=o.session),"userid"in o&&i(45,p=o.userid),"endpoint"in o&&i(46,d=o.endpoint),"apiversion"in o&&i(47,L=o.apiversion),"customcurrencysymbols"in o&&i(48,h=o.customcurrencysymbols),"enablecompliancetext"in o&&i(1,T=o.enablecompliancetext),"deletelimit"in o&&i(2,v=o.deletelimit),"amountsconfig"in o&&i(49,S=o.amountsconfig),"periodsconfig"in o&&i(50,O=o.periodsconfig),"limittabindex"in o&&i(3,B=o.limittabindex),"limitformat"in o&&i(51,I=o.limitformat),"clientstyling"in o&&i(52,U=o.clientstyling),"clientstylingurl"in o&&i(53,j=o.clientstylingurl),"mbsource"in o&&i(54,M=o.mbsource),"translationurl"in o&&i(55,P=o.translationurl)},n.$$.update=()=>{n.$$.dirty[1]&131072&&h&&Mt(),n.$$.dirty[1]&786432&&O&&S&&it(),n.$$.dirty[1]&2048&&s&&Pt(),n.$$.dirty[1]&124928&&p&&u&&d&&L&&s&&X(),n.$$.dirty[0]&16|n.$$.dirty[1]&2097152&&U&&A&&e.setClientStyling(A,U),n.$$.dirty[0]&16|n.$$.dirty[1]&4194304&&j&&A&&e.setClientStylingURL(A,j),n.$$.dirty[0]&16|n.$$.dirty[1]&8388608&&M&&A&&e.setStreamStyling(A,`${M}.Style`),n.$$.dirty[1]&16777216&&P&&$e()},[l,T,v,B,A,z,_,g,b,w,C,R,Q,ie,ve,Le,V,q,fe,ne,Z,H,se,le,re,K,a,x,we,Se,mt,X,gt,Ce,Te,je,De,he,xe,Ee,xt,Et,s,r,u,p,d,L,h,S,O,I,U,j,M,P,zt,It,Ut,Nt,Rt,Bt,Ot,Wt,Vt,qt]}class Je extends e.SvelteComponent{constructor(t){super(),e.init(this,t,Si,wi,e.safe_not_equal,{lang:42,currency:0,limits:43,session:44,userid:45,endpoint:46,apiversion:47,customcurrencysymbols:48,enablecompliancetext:1,deletelimit:2,amountsconfig:49,periodsconfig:50,limittabindex:3,limitformat:51,clientstyling:52,clientstylingurl:53,mbsource:54,translationurl:55},Xt,[-1,-1,-1,-1,-1])}get lang(){return this.$$.ctx[42]}set lang(t){this.$$set({lang:t}),e.flush()}get currency(){return this.$$.ctx[0]}set currency(t){this.$$set({currency:t}),e.flush()}get limits(){return this.$$.ctx[43]}set limits(t){this.$$set({limits:t}),e.flush()}get session(){return this.$$.ctx[44]}set session(t){this.$$set({session:t}),e.flush()}get userid(){return this.$$.ctx[45]}set userid(t){this.$$set({userid:t}),e.flush()}get endpoint(){return this.$$.ctx[46]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get apiversion(){return this.$$.ctx[47]}set apiversion(t){this.$$set({apiversion:t}),e.flush()}get customcurrencysymbols(){return this.$$.ctx[48]}set customcurrencysymbols(t){this.$$set({customcurrencysymbols:t}),e.flush()}get enablecompliancetext(){return this.$$.ctx[1]}set enablecompliancetext(t){this.$$set({enablecompliancetext:t}),e.flush()}get deletelimit(){return this.$$.ctx[2]}set deletelimit(t){this.$$set({deletelimit:t}),e.flush()}get amountsconfig(){return this.$$.ctx[49]}set amountsconfig(t){this.$$set({amountsconfig:t}),e.flush()}get periodsconfig(){return this.$$.ctx[50]}set periodsconfig(t){this.$$set({periodsconfig:t}),e.flush()}get limittabindex(){return this.$$.ctx[3]}set limittabindex(t){this.$$set({limittabindex:t}),e.flush()}get limitformat(){return this.$$.ctx[51]}set limitformat(t){this.$$set({limitformat:t}),e.flush()}get clientstyling(){return this.$$.ctx[52]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[53]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get mbsource(){return this.$$.ctx[54]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get translationurl(){return this.$$.ctx[55]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}}e.create_custom_element(Je,{lang:{},currency:{},limits:{},session:{},userid:{},endpoint:{},apiversion:{},customcurrencysymbols:{},enablecompliancetext:{},deletelimit:{},amountsconfig:{},periodsconfig:{},limittabindex:{},limitformat:{},clientstyling:{},clientstylingurl:{},mbsource:{},translationurl:{}},[],[],!0);exports.default=Je;
|