@everymatrix/player-account-gaming-limits-wrapper-2 1.67.3 → 1.69.0
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-DRH0naic.cjs +18 -0
- package/components/{PlayerAccountGamingLimitsHistory2-B4s3YDEv.js → PlayerAccountGamingLimitsHistory2-DrjkyFQ_.js} +1114 -1079
- package/components/{PlayerAccountGamingLimitsHistory2-CPnhIE86.js → PlayerAccountGamingLimitsHistory2-GArV24bp.js} +1082 -1047
- package/components/{PlayerAccountGamingLimitsPage2Gm16-CgPxB2cy.cjs → PlayerAccountGamingLimitsPage2Gm16-CBtvv0RH.cjs} +2 -2
- package/components/{PlayerAccountGamingLimitsPage2Gm16-Co8fuJ6-.js → PlayerAccountGamingLimitsPage2Gm16-Cloba79a.js} +99 -99
- package/components/{PlayerAccountGamingLimitsPage2Gm16-B2Y00bck.js → PlayerAccountGamingLimitsPage2Gm16-JBp6GQg6.js} +118 -118
- package/components/{PlayerAccountGamingLimitsWrapper2-DO2pZT1z.js → PlayerAccountGamingLimitsWrapper2-BfGC0dG5.js} +40 -40
- package/components/{PlayerAccountGamingLimitsWrapper2-C9VVus_P.cjs → PlayerAccountGamingLimitsWrapper2-DdCOUJNm.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsWrapper2-O5gMxf33.js → PlayerAccountGamingLimitsWrapper2-U5qDbkKI.js} +64 -64
- 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-BcYyCldH.js +519 -0
- package/stencil/index-b2193545-CPztmidm.js +503 -0
- package/stencil/index-b2193545-D1Z0k4-D.cjs +1 -0
- package/stencil/{ui-skeleton-1cb75d00-6KKxtHwu.cjs → ui-skeleton-1cb75d00-CUSs6C3A.cjs} +1 -1
- package/stencil/{ui-skeleton-1cb75d00-BAHBT-wb.js → ui-skeleton-1cb75d00-CXHx_pAM.js} +1 -1
- package/stencil/{ui-skeleton-1cb75d00-BPfsKHrC.js → ui-skeleton-1cb75d00-z2mX3TRi.js} +1 -1
- package/stencil/{ui-skeleton-QVfoKja7.js → ui-skeleton-4ifa-7wH.js} +2 -2
- package/stencil/{ui-skeleton-b2oavT4f.js → ui-skeleton-Bk5dn5mu.js} +2 -2
- package/stencil/{ui-skeleton-CaX4F6ue.cjs → ui-skeleton-CCXvjIzA.cjs} +1 -1
- package/components/PlayerAccountGamingLimitsHistory2-Czvses-l.cjs +0 -18
- package/stencil/index-b2193545-CayB6jRX.js +0 -519
- package/stencil/index-b2193545-DrvOqGyq.js +0 -503
- package/stencil/index-b2193545-lC_KoC4p.cjs +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var Gt=Object.defineProperty;var Ee=Object.getOwnPropertySymbols;var Kt=Object.prototype.hasOwnProperty,Ht=Object.prototype.propertyIsEnumerable;var Pe=(o,t,i)=>t in o?Gt(o,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):o[t]=i,ce=(o,t)=>{for(var i in t||(t={}))Kt.call(t,i)&&Pe(o,i,t[i]);if(Ee)for(var i of Ee(t))Ht.call(t,i)&&Pe(o,i,t[i]);return o};Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./PlayerAccountGamingLimitsHistory2-
|
|
1
|
+
"use strict";var Gt=Object.defineProperty;var Ee=Object.getOwnPropertySymbols;var Kt=Object.prototype.hasOwnProperty,Ht=Object.prototype.propertyIsEnumerable;var Pe=(o,t,i)=>t in o?Gt(o,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):o[t]=i,ce=(o,t)=>{for(var i in t||(t={}))Kt.call(t,i)&&Pe(o,i,t[i]);if(Ee)for(var i of Ee(t))Ht.call(t,i)&&Pe(o,i,t[i]);return o};Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./PlayerAccountGamingLimitsHistory2-DRH0naic.cjs");require("../stencil/ui-skeleton-CCXvjIzA.cjs");const M={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 Me(o,t){e.addMessages(o,t)}function Yt(o){e.$locale.set(o)}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 - All Limit",lossCasino:"Loss - Casino Limit",lossSports:"Loss - Sports Limit",deposit:"Deposit Limit",depositAll:"Deposit - All Limit",depositCasino:"Deposit - Casino Limit",depositSports:"Deposit - Sports Limit",wager:"Wager Limit",wagerAll:"Wager - All Limit",wagerCasino:"Wager - Casino Limit",wagerSports:"Wager - Sports Limit",stake:"Stake Limit",stakeAll:"Stake - All Limit",stakeCasino:"Stake - Casino Limit",stakeSports:"Stake - Sports Limit",lugas:"Current Deposit Limit",lugasAll:"Current Deposit Limit",lugasCasino:"Current Deposit Limit",lugasSports:"Current Deposit 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",lossAll:"Veszteség - Összes limit",lossCasino:"Veszteség - Kaszinó limit",lossSports:"Veszteség - Sport limit",deposit:"Befizetési limit",depositAll:"Befizetés - Összes limit",depositCasino:"Befizetés - Kaszinó limit",depositSports:"Befizetés - Sport limit",wager:"Fogadási limit",wagerAll:"Fogadás - Összes limit",wagerCasino:"Fogadás - Kaszinó limit",wagerSports:"Fogadás - Sport limit",stake:"Fogadási limit",stakeAll:"Tét - Összes limit",stakeCasino:"Tét - Kaszinó limit",stakeSports:"Tét - Sport limit",lugas:"Aktuális befizeté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",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:"Verlust - Gesamtes Limit",lossCasino:"Verlust - Casino-Limit",lossSports:"Verlust - Sport-Limit",deposit:"Einzahlungslimit",depositAll:"Einzahlung - Gesamtes Limit",depositCasino:"Einzahlung - Casino-Limit",depositSports:"Einzahlung - Sport-Limit",wager:"Wettlimit",wagerAll:"Wette - Gesamtes Limit",wagerCasino:"Wette - Casino-Limit",wagerSports:"Wette - Sport-Limit",stake:"Einsatzlimit",stakeAll:"Einsatz - Gesamtes Limit",stakeCasino:"Einsatz - Casino-Limit",stakeSports:"Einsatz - Sport-Limit",lugasAll:"Current Deposit Limit",lugasCasino:"Current Deposit Limit",lugasSports:"Current Deposit Limit",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.
|
|
@@ -23,4 +23,4 @@
|
|
|
23
23
|
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
|
|
24
24
|
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
|
|
25
25
|
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
|
|
26
|
-
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(E,P){e.insert(E,t,P),e.append(t,i),e.append(i,a),e.append(i,s),e.append(t,r),e.append(t,l),e.append(t,d),e.append(t,u),e.append(t,p),e.append(t,L),e.append(t,y),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,D)},d(E){E&&e.detach(t)}}}function ii(o){let t,i=o[26]("popupSuccess")+"",a;return{c(){t=e.element("p"),a=e.text(i)},m(s,r){e.insert(s,t,r),e.append(t,a)},p(s,r){r[0]&67108864&&i!==(i=s[26]("popupSuccess")+"")&&e.set_data(a,i)},d(s){s&&e.detach(t)}}}function ai(o){let t,i=o[26]("docsRequired")+"",a;return{c(){t=e.element("p"),a=e.text(i)},m(s,r){e.insert(s,t,r),e.append(t,a)},p(s,r){r[0]&67108864&&i!==(i=s[26]("docsRequired")+"")&&e.set_data(a,i)},d(s){s&&e.detach(t)}}}function oi(o){let t,i=o[26]("popupError")+"",a;return{c(){t=e.element("p"),a=e.text(i)},m(s,r){e.insert(s,t,r),e.append(t,a)},p(s,r){r[0]&67108864&&i!==(i=s[26]("popupError")+"")&&e.set_data(a,i)},d(s){s&&e.detach(t)}}}function ni(o){let t,i=o[26]("okButton")+"",a,s,r;return{c(){t=e.element("button"),a=e.text(i),e.attr(t,"class","ConfirmButton")},m(l,d){e.insert(l,t,d),e.append(t,a),s||(r=e.listen(t,"click",o[39]),s=!0)},p(l,d){d[0]&67108864&&i!==(i=l[26]("okButton")+"")&&e.set_data(a,i)},d(l){l&&e.detach(t),s=!1,r()}}}function si(o){let t,i=o[26]("uploadDocumentsButton")+"",a,s,r=o[26]("closeButton")+"",l,d,u;return{c(){t=e.element("button"),a=e.space(),s=e.element("button"),l=e.text(r),e.attr(t,"class","ConfirmButton"),e.attr(s,"class","CloseButton")},m(p,L){e.insert(p,t,L),t.innerHTML=i,e.insert(p,a,L),e.insert(p,s,L),e.append(s,l),d||(u=[e.listen(t,"click",o[40]),e.listen(s,"click",o[39])],d=!0)},p(p,L){L[0]&67108864&&i!==(i=p[26]("uploadDocumentsButton")+"")&&(t.innerHTML=i),L[0]&67108864&&r!==(r=p[26]("closeButton")+"")&&e.set_data(l,r)},d(p){p&&(e.detach(t),e.detach(a),e.detach(s)),d=!1,e.run_all(u)}}}function ri(o){let t,i,a,s,r,l,d,u,p,L,y=o[15]?`${o[26]("amount")}`:`${o[26](`new${o[8]}Limit`)}`,T,v,S,O,B,I,U=o[26]("setLimit")+"",D,E,P,A,k=e.ensure_array_like(o[6]),x=[];for(let w=0;w<k.length;w+=1)x[w]=Fe(Ne(o,k,w));let _=o[1]==="true"&&Ge(o),g=o[14]&&Ke(o),b=o[15]&&Ye(o),N=o[24]&&Xe(o);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(),r=e.element("form"),_&&_.c(),l=e.space(),g&&g.c(),d=e.space(),b&&b.c(),u=e.space(),p=e.element("label"),L=e.element("span"),T=e.text(y),v=e.space(),S=e.element("input"),O=e.space(),N&&N.c(),B=e.space(),I=e.element("button"),D=e.text(U),e.attr(a,"class","LimitsList "+(o[27]?"Desktop":"")),e.attr(L,"class","LimitInputText"),e.attr(S,"type","number"),e.attr(S,"pattern","[0-9]*"),e.attr(p,"class","LimitAmountInputWrapper"),e.attr(I,"class","LimitSubmitButton"),e.attr(I,"type","button"),I.disabled=!0,e.attr(r,"class","LimitsInteractionArea "+(o[27]?"Desktop":"")),e.attr(i,"class","LimitsPageContainer"),e.attr(t,"class",E="player-account-gaming-limits-page-2-gm16 "+("LimitTab"+o[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,r),_&&_.m(r,null),e.append(r,l),g&&g.m(r,null),e.append(r,d),b&&b.m(r,null),e.append(r,u),e.append(r,p),e.append(p,L),e.append(L,T),e.append(p,v),e.append(p,S),e.set_input_value(S,o[10]),e.append(p,O),N&&N.m(p,null),e.append(r,B),e.append(r,I),e.append(I,D),o[64](I),P||(A=[e.listen(S,"input",o[63]),e.listen(S,"keydown",o[41]),e.listen(S,"keyup",o[32]),e.listen(I,"click",o[30]),e.listen(r,"submit",o[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(r,l)):_&&(_.d(1),_=null),w[14]?g?g.p(w,C):(g=Ke(w),g.c(),g.m(r,d)):g&&(g.d(1),g=null),w[15]?b?b.p(w,C):(b=Ye(w),b.c(),b.m(r,u)):b&&(b.d(1),b=null),C[0]&67141888&&y!==(y=w[15]?`${w[26]("amount")}`:`${w[26](`new${w[8]}Limit`)}`)&&e.set_data(T,y),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=Xe(w),N.c(),N.m(p,null)):N&&(N.d(1),N=null),C[0]&67108864&&U!==(U=w[26]("setLimit")+"")&&e.set_data(D,U),C[0]&8&&E!==(E="player-account-gaming-limits-page-2-gm16 "+("LimitTab"+w[3]))&&e.attr(t,"class",E)},d(w){w&&e.detach(t),e.destroy_each(x,w),_&&_.d(),g&&g.d(),b&&b.d(),N&&N.d(),o[64](null),P=!1,e.run_all(A)}}}function li(o){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(o){let t,i,a,s,r,l,d=e.ensure_array_like(Array(3)),u=[];for(let p=0;p<d.length;p+=1)u[p]=_i(Xt(o,d,p));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 p=0;p<u.length;p+=1)u[p].c();r=e.space(),l=e.element("div"),l.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(l,"class","skeletonInputWrapper"),e.attr(t,"class","skeletonLimitContainer")},m(p,L){e.insert(p,t,L),e.append(t,i),e.append(i,a),e.append(i,s);for(let y=0;y<u.length;y+=1)u[y]&&u[y].m(i,null);e.append(t,r),e.append(t,l)},p:e.noop,d(p){p&&e.detach(t),e.destroy_each(u,p)}}}function pi(o){let t,i,a,s=o[26]("noLimitText")+"",r;return{c(){t=e.element("div"),i=e.element("div"),a=e.element("div"),r=e.text(s),e.attr(a,"class","LimitDetailsTextWrapper"),e.attr(i,"class","LimitDetailsWrapper"),e.attr(t,"class","LimitDetails")},m(l,d){e.insert(l,t,d),e.append(t,i),e.append(i,a),e.append(a,r)},p(l,d){d[0]&67108864&&s!==(s=l[26]("noLimitText")+"")&&e.set_data(r,s)},d(l){l&&e.detach(t)}}}function di(o){let t,i,a,s=o[26]("lugasPrivacy")+"",r;return{c(){t=e.element("div"),i=e.element("div"),a=e.element("div"),r=e.text(s),e.attr(a,"class","LimitDetailsTextWrapper"),e.attr(i,"class","LimitDetailsWrapper"),e.attr(t,"class","LimitDetails")},m(l,d){e.insert(l,t,d),e.append(t,i),e.append(i,a),e.append(a,r)},p(l,d){d[0]&67108864&&s!==(s=l[26]("lugasPrivacy")+"")&&e.set_data(r,s)},d(l){l&&e.detach(t)}}}function ui(o){let t,i=e.ensure_array_like(o[126].currentLimits),a=[];for(let s=0;s<i.length;s+=1)a[s]=qe(Re(o,i,s));return{c(){for(let s=0;s<a.length;s+=1)a[s].c();t=e.empty()},m(s,r){for(let l=0;l<a.length;l+=1)a[l]&&a[l].m(s,r);e.insert(s,t,r)},p(s,r){if(r[0]&234881092|r[1]&185){i=e.ensure_array_like(s[126].currentLimits);let l;for(l=0;l<i.length;l+=1){const d=Re(s,i,l);a[l]?a[l].p(d,r):(a[l]=qe(d),a[l].c(),a[l].m(t.parentNode,t))}for(;l<a.length;l+=1)a[l].d(1);a.length=i.length}},d(s){s&&e.detach(t),e.destroy_each(a,s)}}}function ci(o){let t,i,a,s=o[26]("lugasPrivacy")+"",r;return{c(){t=e.element("div"),i=e.element("div"),a=e.element("div"),r=e.text(s),e.attr(a,"class","LimitDetailsTextWrapper"),e.attr(i,"class","LimitDetailsWrapper"),e.attr(t,"class","LimitDetails")},m(l,d){e.insert(l,t,d),e.append(t,i),e.append(i,a),e.append(a,r)},p(l,d){d[0]&67108864&&s!==(s=l[26]("lugasPrivacy")+"")&&e.set_data(r,s)},d(l){l&&e.detach(t)}}}function Li(o){let t,i=`${o[38](o[131])}`,a;return{c(){t=e.element("span"),a=e.text(i)},m(s,r){e.insert(s,t,r),e.append(t,a)},p(s,r){r[0]&64&&i!==(i=`${s[38](s[131])}`)&&e.set_data(a,i)},d(s){s&&e.detach(t)}}}function fi(o){let t,i=`${o[38](o[131],!0)}`,a;return{c(){t=e.element("span"),a=e.text(i)},m(s,r){e.insert(s,t,r),e.append(t,a)},p(s,r){r[0]&64&&i!==(i=`${s[38](s[131],!0)}`)&&e.set_data(a,i)},d(s){s&&e.detach(t)}}}function gi(o){let t,i,a=`${o[38](o[131],!0)}`,s,r;function l(p,L){return p[131].isCoolOffCompleted?bi:ki}let d=l(o),u=d(o);return{c(){t=e.element("div"),i=e.element("span"),s=e.text(a),r=e.space(),u.c(),e.attr(t,"class","PendingLimit")},m(p,L){e.insert(p,t,L),e.append(t,i),e.append(i,s),e.append(t,r),u.m(t,null)},p(p,L){L[0]&64&&a!==(a=`${p[38](p[131],!0)}`)&&e.set_data(s,a),d===(d=l(p))&&u?u.p(p,L):(u.d(1),u=d(p),u&&(u.c(),u.m(t,null)))},d(p){p&&e.detach(t),u.d()}}}function yi(o){let t,i=`${o[26]("removedLimitText")} ${o[131].expiryDate}`,a;return{c(){t=e.element("div"),a=e.text(i),e.attr(t,"class","PendingLimit")},m(s,r){e.insert(s,t,r),e.append(t,a)},p(s,r){r[0]&67108928&&i!==(i=`${s[26]("removedLimitText")} ${s[131].expiryDate}`)&&e.set_data(a,i)},d(s){s&&e.detach(t)}}}function hi(o){let t,i=`${o[26]("removeAfterConfirm")}`,a;return{c(){t=e.element("div"),a=e.text(i),e.attr(t,"class","PendingLimit")},m(s,r){e.insert(s,t,r),e.append(t,a)},p(s,r){r[0]&67108864&&i!==(i=`${s[26]("removeAfterConfirm")}`)&&e.set_data(a,i)},d(s){s&&e.detach(t)}}}function vi(o){let t,i=`${o[26]("acknowledgedLimit")}`,a;return{c(){t=e.element("div"),a=e.text(i),e.attr(t,"class","PendingLimit")},m(s,r){e.insert(s,t,r),e.append(t,a)},p(s,r){r[0]&67108864&&i!==(i=`${s[26]("acknowledgedLimit")}`)&&e.set_data(a,i)},d(s){s&&e.detach(t)}}}function ki(o){let t=`${o[131].period!=="None"||o[131].value!=="cumulativeSession"?" ":o[26]("per")} ${o[26](`${o[131].period}`)} ${o[26]("updateText")} ${o[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(o){let t=`${o[131].period!=="None"||o[131].value!=="cumulativeSession"?" ":o[26]("per")} ${o[26](`${o[131].period}`)} ${o[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(o){let t,i,a=o[25][o[131].scheduleId].timer+"",s,r,l,d;return{c(){t=e.element("div"),i=e.element("button"),s=e.text(a),e.attr(i,"class",r="ReloadLimitButton "+(o[27]?"":"Mobile")+" "+(o[25][o[131].scheduleId].timerStopped?"":"disabled")),e.attr(t,"class","ContainerLimitActions "+(o[27]?"":"Mobile"))},m(u,p){e.insert(u,t,p),e.append(t,i),e.append(i,s),l||(d=e.listen(i,"click",o[56]),l=!0)},p(u,p){p[0]&33554496&&a!==(a=u[25][u[131].scheduleId].timer+"")&&e.set_data(s,a),p[0]&33554496&&r!==(r="ReloadLimitButton "+(u[27]?"":"Mobile")+" "+(u[25][u[131].scheduleId].timerStopped?"":"disabled"))&&e.attr(i,"class",r)},d(u){u&&e.detach(t),l=!1,d()}}}function We(o){let t,i,a=o[26]("removeLimit")+"",s,r,l;function d(){return o[57](o[131])}return{c(){t=e.element("div"),i=e.element("button"),s=e.text(a),e.attr(i,"class","RemoveLimitButton "+(o[27]?"":"Mobile")),e.attr(t,"class","ContainerLimitActions "+(o[27]?"":"Mobile"))},m(u,p){e.insert(u,t,p),e.append(t,i),e.append(i,s),r||(l=e.listen(i,"click",d),r=!0)},p(u,p){o=u,p[0]&67108864&&a!==(a=o[26]("removeLimit")+"")&&e.set_data(s,a)},d(u){u&&e.detach(t),r=!1,l()}}}function Ve(o){let t,i,a=o[26]("confirmUpdateLimit")+"",s,r,l,d=o[26]("cancelUpdateLimit")+"",u,p,L;function y(){return o[58](o[131])}function T(){return o[59](o[131])}return{c(){t=e.element("div"),i=e.element("button"),s=e.text(a),r=e.space(),l=e.element("button"),u=e.text(d),e.attr(i,"class","ConfirmLimitButton "+(o[27]?"":"Mobile")),e.attr(l,"class","CancelLimitButton "+(o[27]?"":"Mobile")),e.attr(t,"class","ContainerLimitActions "+(o[27]?"":"Mobile"))},m(v,S){e.insert(v,t,S),e.append(t,i),e.append(i,s),e.append(t,r),e.append(t,l),e.append(l,u),p||(L=[e.listen(i,"click",y),e.listen(l,"click",T)],p=!0)},p(v,S){o=v,S[0]&67108864&&a!==(a=o[26]("confirmUpdateLimit")+"")&&e.set_data(s,a),S[0]&67108864&&d!==(d=o[26]("cancelUpdateLimit")+"")&&e.set_data(u,d)},d(v){v&&e.detach(t),p=!1,e.run_all(L)}}}function qe(o){let t,i,a,s,r,l=`${o[131].period!=="None"||o[131].value!=="cumulativeSession"?" ":o[26]("per")} ${o[26](`${o[131].period}`)}`,d,u,p,L,y=!o[131].isModified&&o[2].indexOf(o[126].value)>-1,T,v;function S(k,x){return k[131].acknowledgedLimit?fi:Li}let O=S(o),B=O(o);function I(k,x){if(k[131].acknowledgedLimit)return vi;if(k[131].isModified&&k[131].updateAmount==0&&k[131].isCoolOffCompleted)return hi;if(k[131].isModified&&k[131].updateAmount==0&&!k[131].isCoolOffCompleted)return yi;if(k[131].isModified)return gi}let U=I(o),D=U&&U(o),E=o[131].acknowledgedLimit&&Oe(o),P=y&&We(o),A=o[131].isCoolOffCompleted&!o[131].acknowledgedLimit&&Ve(o);return{c(){t=e.element("div"),i=e.element("div"),a=e.element("div"),s=e.element("div"),B.c(),r=e.space(),d=e.text(l),u=e.space(),D&&D.c(),p=e.space(),E&&E.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,r),e.append(s,d),e.append(a,u),D&&D.m(a,null),e.append(i,p),E&&E.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,r))),x[0]&67108928&&l!==(l=`${k[131].period!=="None"||k[131].value!=="cumulativeSession"?" ":k[26]("per")} ${k[26](`${k[131].period}`)}`)&&e.set_data(d,l),U===(U=I(k))&&D?D.p(k,x):(D&&D.d(1),D=U&&U(k),D&&(D.c(),D.m(a,null))),k[131].acknowledgedLimit?E?E.p(k,x):(E=Oe(k),E.c(),E.m(i,L)):E&&(E.d(1),E=null),x[0]&68&&(y=!k[131].isModified&&k[2].indexOf(k[126].value)>-1),y?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(),D&&D.d(),E&&E.d(),P&&P.d(),A&&A.d()}}}function Fe(o){let t,i,a=o[37](o[126])+"",s,r,l;function d(L,y){return L[126].value==="lugas"?ci:L[126].currentLimits.length>0?ui:L[126].value==="lugas"?di:pi}let u=d(o),p=u(o);return{c(){t=e.element("div"),i=e.element("p"),s=e.text(a),r=e.space(),p.c(),l=e.space(),e.attr(i,"class","LimitTitle"),e.attr(t,"class","LimitWrapper "+(o[27]?"Desktop":""))},m(L,y){e.insert(L,t,y),e.append(t,i),e.append(i,s),e.append(t,r),p.m(t,null),e.append(t,l)},p(L,y){y[0]&64&&a!==(a=L[37](L[126])+"")&&e.set_data(s,a),u===(u=d(L))&&p?p.p(L,y):(p.d(1),p=u(L),p&&(p.c(),p.m(t,l)))},d(L){L&&e.detach(t),p.d()}}}function Ge(o){let t,i,a=o[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(r,l){e.insert(r,t,l),e.append(t,i),e.append(i,s)},p(r,l){l[0]&67108864&&a!==(a=r[26]("complianceText")+"")&&e.set_data(s,a)},d(r){r&&e.detach(t)}}}function Ke(o){let t,i,a=o[26]("limitType")+"",s,r,l,d,u,p=e.ensure_array_like(o[6]),L=[];for(let y=0;y<p.length;y+=1)L[y]=He(Ue(o,p,y));return{c(){t=e.element("label"),i=e.element("span"),s=e.text(a),r=e.space(),l=e.element("select");for(let y=0;y<L.length;y+=1)L[y].c();e.attr(i,"class","LimitSelectText"),e.attr(l,"name",""),e.attr(l,"id",""),o[9]===void 0&&e.add_render_callback(()=>o[60].call(l)),e.attr(t,"class","LimitTypeDropdownWrapper")},m(y,T){e.insert(y,t,T),e.append(t,i),e.append(i,s),e.append(t,r),e.append(t,l);for(let v=0;v<L.length;v+=1)L[v]&&L[v].m(l,null);e.select_option(l,o[9],!0),d||(u=[e.listen(l,"change",o[60]),e.listen(l,"change",o[61])],d=!0)},p(y,T){if(T[0]&67108864&&a!==(a=y[26]("limitType")+"")&&e.set_data(s,a),T[0]&64|T[1]&64){p=e.ensure_array_like(y[6]);let v;for(v=0;v<p.length;v+=1){const S=Ue(y,p,v);L[v]?L[v].p(S,T):(L[v]=He(S),L[v].c(),L[v].m(l,null))}for(;v<L.length;v+=1)L[v].d(1);L.length=p.length}T[0]&512&&e.select_option(l,y[9])},d(y){y&&e.detach(t),e.destroy_each(L,y),d=!1,e.run_all(u)}}}function He(o){let t,i=o[37](o[126])+"",a;return{c(){t=e.element("option"),a=e.text(i),t.__value=o[128],e.set_input_value(t,t.__value)},m(s,r){e.insert(s,t,r),e.append(t,a)},p(s,r){r[0]&64&&i!==(i=s[37](s[126])+"")&&e.set_data(a,i)},d(s){s&&e.detach(t)}}}function Ye(o){let t,i,a=o[26]("period")+"",s,r,l,d,u,p=e.ensure_array_like(o[5][o[7]].periods),L=[];for(let y=0;y<p.length;y+=1)L[y]=Ze(Ie(o,p,y));return{c(){t=e.element("label"),i=e.element("span"),s=e.text(a),r=e.space(),l=e.element("select");for(let y=0;y<L.length;y+=1)L[y].c();e.attr(i,"class","PeriodSelectText"),e.attr(l,"name",""),e.attr(l,"id",""),o[8]===void 0&&e.add_render_callback(()=>o[62].call(l)),e.attr(t,"class","LimitPeriodDropdownWrapper")},m(y,T){e.insert(y,t,T),e.append(t,i),e.append(i,s),e.append(t,r),e.append(t,l);for(let v=0;v<L.length;v+=1)L[v]&&L[v].m(l,null);e.select_option(l,o[8],!0),d||(u=e.listen(l,"change",o[62]),d=!0)},p(y,T){if(T[0]&67108864&&a!==(a=y[26]("period")+"")&&e.set_data(s,a),T[0]&67109024){p=e.ensure_array_like(y[5][y[7]].periods);let v;for(v=0;v<p.length;v+=1){const S=Ie(y,p,v);L[v]?L[v].p(S,T):(L[v]=Ze(S),L[v].c(),L[v].m(l,null))}for(;v<L.length;v+=1)L[v].d(1);L.length=p.length}T[0]&416&&e.select_option(l,y[8])},d(y){y&&e.detach(t),e.destroy_each(L,y),d=!1,u()}}}function Ze(o){let t,i=o[26](o[123])+"",a,s;return{c(){t=e.element("option"),a=e.text(i),t.__value=s=o[123],e.set_input_value(t,t.__value),t.selected=!0},m(r,l){e.insert(r,t,l),e.append(t,a)},p(r,l){l[0]&67109024&&i!==(i=r[26](r[123])+"")&&e.set_data(a,i),l[0]&160&&s!==(s=r[123])&&(t.__value=s,e.set_input_value(t,t.__value))},d(r){r&&e.detach(t)}}}function Xe(o){let t,i=o[10]<o[12]?`${o[26]("invalidInputMessageLimitMin",{values:{minValue:o[12],currency:o[0]}})}`:`${o[26]("invalidInputMessageLimitMax",{values:{maxValue:o[13],currency:o[0]}})}`,a;return{c(){t=e.element("p"),a=e.text(i),e.attr(t,"class","InvalidInput")},m(s,r){e.insert(s,t,r),e.append(t,a)},p(s,r){r[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(o){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(o){let t,i,a=o[19]&&Be(o);function s(d,u){if(d[16])return mi;if(d[17])return li;if(!d[16])return ri}let r=s(o),l=r&&r(o);return{c(){t=e.element("div"),a&&a.c(),i=e.space(),l&&l.c()},m(d,u){e.insert(d,t,u),a&&a.m(t,null),e.append(t,i),l&&l.m(t,null),o[65](t)},p(d,u){d[19]?a?a.p(d,u):(a=Be(d),a.c(),a.m(t,i)):a&&(a.d(1),a=null),r===(r=s(d))&&l?l.p(d,u):(l&&l.d(1),l=r&&r(d),l&&(l.c(),l.m(t,null)))},i:e.noop,o:e.noop,d(d){d&&e.detach(t),a&&a.d(),l&&l.d(),o[65](null)}}}function Si(o,t,i){let a;e.component_subscribe(o,e.$format,n=>i(26,a=n));let{lang:s="en"}=t,{currency:r=""}=t,{limits:l=""}=t,{session:d=""}=t,{userid:u=""}=t,{endpoint:p=""}=t,{apiversion:L=""}=t,{customcurrencysymbols:y=""}=t,{enablecompliancetext:T=""}=t,{deletelimit:v=""}=t,{amountsconfig:S=""}=t,{periodsconfig:O=""}=t,{limittabindex:B=""}=t,{limitformat:I=""}=t,{clientstyling:U=""}=t,{clientstylingurl:D=""}=t,{mbsource:E}=t,{translationurl:P=""}=t,A,k=window.navigator.userAgent,x=!e.isMobile(k),_=[],g="",b="",N="",w=0,C,R,Q="",ie="",ue="",$={},ae={},ve=!1,Le=!1,V=!0,q=!1,fe=!1,oe=!1,X=!1,H="",se="",F=[],re,ke,le=!1,Qe={},ne={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=>{Me(c,m[c])})}).catch(m=>{console.log(m)})};Object.keys(ee).forEach(n=>{Me(n,ee[n])});const ge=n=>`dataLayer-${n}`,G=(n,m)=>{typeof gtag=="function"&>ag({event:n,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 h;const n=S.split(",").map(f=>f.split(":")),m=O.split(",").map(f=>f.split(":"));for(let[f,j]of n.entries())if(j[0]!==m[f][0])throw new Error(`Limit config mismatch: "${j[0]}" does not match "${m[f][0]}"`);const c=n.reduce((f,j,z)=>{const W=j[0].slice(j[0].indexOf("(")+1,j[0].indexOf(")")),te=j[0].slice(0,j[0].indexOf("(")),de=j[1],he=m[z][1].trim().replace("D","Daily").replace("W","Weekly").replace("M","Monthly").replace("N","None").split("-"),Ft={value:W,product:te,minMax:de,periods:he,callValue:M[W].callValue,callValue16:M[W].callValue16,title:M[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,M[c[f].value].periods=c[f].periods,M);ue=(h=_[0])==null?void 0:h.value,_.forEach(f=>{$[f.value]={min:f.min,max:f.max},Qe[f.value]=f.product}),$[ue]?(i(12,Q=$[ue].min),i(13,ie=$[ue].max)):(i(12,Q=1),i(13,ie=9999999))},tt=()=>{const n=/\(([^)]+)\)/g;return[...S.matchAll(n)].flat().filter(c=>!c.includes("("))},it=()=>{tt().forEach(m=>{M[m]?_.push(ce({},M[m])):console.error(`Unknown limit: ${m}`)}),et(),i(7,g=_[0].value),i(8,b=M[g].periods[0]),N=_[0].product,i(14,ve=_.length>1),i(15,Le=M[g].periods.length>1)},we=()=>{i(7,g=_[w].value),i(8,b=M[g].periods[0]),i(15,Le=M[g].periods.length>1)},Se=()=>{N=_[w].product},Y=n=>{if(n.status>=300)at(n);else return i(18,fe=!1),n.status!==204?n.json():n},at=n=>{i(17,q=!0);let m;throw n.json().then(c=>{for(const h in _e)if(_e[h].some(f=>c.error.includes(f))){m=h;break}console.error("errType",m),!m&&pe(c)}).finally(()=>{m&&pe(m),i(17,q=!1),i(16,V=!1)}),new Error("An error occured during the fetch request")},ot=()=>{if(!(C>0))return;J(),i(16,V=!0);let n=new URL(`/v2/player/${u}/limits`,p),m={};g==="sessionLimit"?m={sessionLimit:C,sessionLimitUnit:"minute"}:g==="cumulativeSession"?m[M[g].callValue]=[{period:b,minutes:C}]:m[M[g].callValue]=[{period:M[g].periods[0]==="None"?null:b,amount:C,currency:r}];let c={method:"PUT",headers:{"X-SessionID":d,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(m)};fetch(n.href,c).then(h=>Y(h)).then(h=>{G("self_limitation_success"),Z()}).catch(h=>{console.error(h),i(17,q=!0)})},nt=()=>{J(),i(16,V=!0);const m=_[w].currentLimits.find(W=>W.period===b),c=m?"v2":"v1",h=new URL(`/${c}/player/${u}/limits/monetary/${m?m.id:""}`,p),f=m?"PUT":"POST",j=m?{amount:C,skipCoolOff:!1}:{amount:C,currency:r,period:M[g].periods[0]==="None"?null:b,type:M[g].callValue16,products:[N!=null?N:"All"],walletTypes:["Deposit","NetDeposit"].includes(M[g].callValue16)?["All"]:["RealCash"]};let z={method:f,headers:{"X-SessionID":d,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(j)};fetch(h.href,z).then(W=>Y(W)).then(W=>{G("self_limitation_success"),Z()}).catch(W=>{console.log(W),i(17,q=!0)})},st=()=>{if(!(C>0))return;J(),i(16,V=!0);const n=new URL(`/v1/player/${u}/limits/session/`,p);let h={method:"PUT",headers:{"X-SessionID":d,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({sessionLimit:C,sessionLimitUnit:"minute"})};fetch(n.href,h).then(f=>Y(f)).then(f=>{G("self_limitation_success"),Z()}).catch(f=>{console.log(f),i(17,q=!0)})},rt=()=>{if(!(C>0))return;J(),i(16,V=!0);const n=new URL(`/v1/player/${u}/limits/session/`,p);let h={method:"PUT",headers:{"X-SessionID":d,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({cumulativeSessionLimits:[{period:b,minutes:C}]})};fetch(n.href,h).then(f=>Y(f)).then(f=>{G("self_limitation_success"),Z()}).catch(f=>{console.log(f),i(17,q=!0)})},lt=()=>{if(!(C>0))return;J(),i(16,V=!0);const n=new URL(`/v2/player/${u}/limit/lugas`,p);let h={method:"POST",headers:{"X-SessionID":d,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({amount:C,roleLimitAmount:0,softMigration:!1,keepLimit:!1})};fetch(n.href,h).then(f=>Y(f)).then(f=>{i(23,re=f.popup),f.operatorDepositLimitAmount,ke=f.regulatorDepositLimitAmount,G("self_limitation_success"),Z()}).catch(f=>{console.log(f),i(17,q=!0)})},mt=()=>{if(ae={},L==="gm16")switch(g){case"lugas":lt();break;case"sessionLimit":st();break;case"cumulativeSession":rt();break;default:nt();break}else if(L==="gmcore")ot();else throw Error(`Invalid apiversion attribute: ${L}`);G("self_limitation_request")},Z=()=>{switch(L){case"gmcore":pt();break;case"gm16":dt();break}},pt=()=>{i(16,V=!0);let n=new URL(`/v2/player/${u}/limits`,p),m={method:"GET",headers:{"X-SessionID":d,"Content-Type":"application/json",Accept:"application/json"}};fetch(n.href,m).then(c=>Y(c)).then(c=>{F=c,oe&&pe(),Ae(F),ut(F),i(10,C=null)}).catch(c=>{console.error("Error LimitsWidget: ",c),i(17,q=!0)}).finally(()=>{i(16,V=!1)})},dt=()=>{i(16,V=!0),F=[];let n=new URL(`/v1/player/${u}/limits/monetary`,p),m=new URL(`/v1/player/${u}/limits/session`,p),c=!1,h={method:"GET",headers:{"X-SessionID":d,"Content-Type":"application/json",Accept:"application/json"}};fetch(n.href,h).then(f=>Y(f)).then(f=>{F.push(f),L==="gmcore"&&Ae(F),L==="gm16"&&ct(F),oe&&pe(),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,h).then(f=>Y(f)).then(f=>{F.push(f),oe&&pe(),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=n=>{_.forEach(m=>{m.currentLimits=[];const c=Array.isArray(n[M[m.value].callValue])?n[M[m.value].callValue]:[n[M[m.value].callValue]];c.length===0||c[0]===void 0||(c.forEach((h,f)=>{var z;const j=n[M[m.value].callValue][f];m.currentLimits.push({}),m.currentLimits[f].limitType=m.value,m.currentLimits[f].amount=I?j.amount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(j.amount),m.currentLimits[f].currency=(z=ne[j.currency])!=null?z:j.currency,m.currentLimits[f].period=j.period,m.currentLimits[f].updateAmount=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(j.updateAmount),m.currentLimits[f].isModified=j.isModified,m.currentLimits[f].expiryDate=`${new Date(j.expiryDate).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")} (GMT)`}),m.currentLimits=me(m.currentLimits))})},ut=n=>{const m=a("minutes");_.filter(c=>c.value==="sessionLimit"||c.value==="cumulativeSession").forEach(c=>{var h;c.currentLimits=[],(h=n[M[c.value].callValue])==null||h.forEach((f,j)=>{const z=n[M[c.value].callValue][j];c.currentLimits.push({limitType:c.value,amount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(z.minutes),currency:m,isModified:z.isModified,period:c.value==="cumulativeSession"?z.period:"None",updateAmount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(z.updateMinutes),expiryDate:`${new Date(z.expiryDate).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")} (GMT)`})}),c.currentLimits=me(c.currentLimits)})},ct=n=>{var m;(m=n[0])!=null&&m.limits&&_.forEach(c=>{var h;c.currentLimits=[];for(const f of n[0].limits)if(f.type===c.callValue16&&f.products.includes(c.product)){let j=0,z=f.schedules.length>0?f.schedules.find(W=>W.id):{};f.schedules.length>0&&(j=I?z.updateAmount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(z.updateAmount)),c.currentLimits.push({limitType:c.value,amount:I?f.amount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(f.amount),currency:(h=ne[f.currency])!=null?h:f.currency,isModified:f.schedules.length>0,period:f.period,product:f.products[0],updateAmount:j,isCoolOffCompleted:z?z.isCoolOffCompleted:!1,scheduleId:z?z.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=n=>{var m;(m=n[1])!=null&&m.sessionLimit&&_.filter(c=>c.value==="sessionLimit").forEach(c=>{c.currentLimits.push({limitType:"sessionLimit",amount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(n[1].sessionLimit.minutes),currency:a("minutes"),isModified:n[1].sessionLimit.isModified,period:"None",updateAmount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(n[1].sessionLimit.updateMinutes),expiryDate:n[1].sessionLimit.expiryDate}),c.currentLimits=me(c.currentLimits)})},ft=n=>{var m;(m=n[1])!=null&&m.cumulativeSessionLimits&&_.filter(c=>c.value==="cumulativeSession").forEach(c=>{for(const h of n[1].cumulativeSessionLimits)c.currentLimits.push({limitType:"cumulativeSession",amount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(h.minutes),currency:a("minutes"),isModified:h.isModified,period:h.period,updateAmount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(h.updateMinutes),expiryDate:h.expiryDate});c.currentLimits=me(c.currentLimits)})},me=n=>{const m={Daily:0,Weekly:1,Monthly:2};return n.sort((c,h)=>m[c.period]-m[h.period]),n},gt=()=>{const n=C-Math.floor(C)===0;C>=Q&&C<=ie&&n?(i(24,le=!1),R.removeAttribute("disabled")):(i(24,le=!0),R.setAttribute("disabled","true"))},Ce=()=>{i(24,le=!1),$!=null&&$[g]?(i(12,Q=$[g].min),i(13,ie=$[g].max)):(i(12,Q=1),i(13,ie=9999999))},yt=()=>{if(F){const n=F[M[g].callValue].find(h=>h.period===b),m=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(n.amount);let c=a("popupImmediateUpdate").replace("{selectedLimit}",ye(n)).replace("{updatedAmount}",m).replace("{currency}",ne[n.currency]||n.currency).replace("{selectedPeriod}",a(`${b}`));i(21,H=n.isModified?`${a("popupPendingUpdate")} ${new Date(n.expiryDate).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")} (GMT)`:c)}i(20,X=!0)},ht=()=>{var j;const n=((j=F[0])==null?void 0:j.limits)||F.limits;let m=null;if(!F){i(20,X=!0);return}Object.keys(ae).length>0?m=n.find(z=>z.id===ae.id):m=n.find(z=>z.type.toLowerCase()===be[g].toLowerCase()&&(z.period===b||z.period==="None")&&z.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),h=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}",ye(m)).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")} ${h}`:f),i(20,X=!0)},vt=()=>{re==1&&i(22,se="PopupKyc"),re==2&&(i(21,H=`${a("popup2_a")}${Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(ke)} ${r} ${a("popup2_b")}`),i(22,se="PopupKyc2")),re==3&&(i(21,H=a("popup3")),i(22,se="PopupSuccess")),i(20,X=!0)},kt=()=>{i(21,H=a("sessionLimitUpdated")),i(20,X=!0)},bt=()=>{if(F){const n=F[M[g].callValue].find(h=>(h.period===b||b==="None")&&h.products[0]===N),m=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(n.minutes);let c=a("popupImmediateUpdate").replace("{selectedLimit}",a(`${g}`)).replace("{updatedAmount}",m).replace("{currency}",a("minutes")).replace("{selectedPeriod}",a(`${b}`));i(21,H=n.isModified?`${a("popupPendingUpdate")} ${new Date(n.expiryDate).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")} (GMT)`:c)}i(20,X=!0)},_t=n=>{var m;return(m=n==null?void 0:n.error)==null?void 0:m.includes("Limit update is not permitted due to LimitUpdateControl")},wt=n=>{var m;return(m=n==null?void 0:n.error)==null?void 0:m.includes("Limit remove is not permitted due to LimitUpdateControl")},St=n=>{var m;return(m=n==null?void 0:n.error)==null?void 0:m.includes("[NotFoundException] Limit does not exist")},At=n=>{var m;return(m=n.error)==null?void 0:m.includes("Invalid Session")},pe=n=>{if(window.postMessage({type:"OpenLimitsPopup"},window.location.href),q){if(i(18,fe=!0),!n){i(20,X=!0);return}n.thirdPartyResponse||i(21,H=a(`${n}`)),n.thirdPartyResponse&&i(21,H=n.thirdPartyResponse.message),_t(n)&&i(21,H=a("popupUpdateLimitException")),wt(n)&&i(21,H=a("popupRemoveLimitException")),St(n)&&i(21,H=a("notFoundException")),At(n)&&i(21,H=a("sessionExpiredException")),i(20,X=!0);return}switch(L){case"gmcore":g==="sessionLimit"||g==="cumulativeSession"?bt():yt();break;case"gm16":g==="lugas"?vt():g==="sessionLimit"||g==="cumulativeSession"?kt():ht();break;default:throw new Error(`Invalid apiversion attribute: ${L}`)}},J=()=>{i(19,oe=!0),window.postMessage({type:"DisableScroll"},window.location.href)},Ct=n=>{i(7,g=n.limitType),i(8,b=n.period),J(),i(16,V=!0);let m=new URL(`/v2/player/${u}/limits/${be[n.limitType]}`,p);n.limitType!=="sessionLimit"&&m.searchParams.append("periods",n.period);let c={method:"DELETE",headers:{"X-SessionID":d,"Content-Type":"application/json",Accept:"application/json"}};fetch(m.href,c).then(h=>Y(h)).then(h=>{G("self_limitation_cancel_success",n.amount),Z()}).catch(h=>{G("self_limitation_cancel_failed",n.amount),console.log(h),i(17,q=!0)})},Te=n=>{switch(n.period,L){case"gmcore":Ct(n);break;case"gm16":ae=n,n.limitType==="sessionLimit"||n.limitType==="cumulativeSession"?Tt(n):Dt(n);break}G("self_limitation_cancel_request",n.amount)},Tt=n=>{const m=new URL(`/v1/player/${u}/limits/session/session`,p),c=new URL(`/v1/player/${u}/limits/session/cumulativeSession?periods=${n.period}`,p);let h;switch(n.limitType){case"sessionLimit":h=m;break;case"cumulativeSession":h=c;break;default:throw Error(`Unknown limit.limitType: ${n.limitType}`)}J(),i(16,V=!0);let f={method:"DELETE",headers:{"X-SessionID":d,"Content-Type":"application/json",Accept:"application/json"}};fetch(h.href,f).then(j=>Y(j)).then(j=>{G("self_limitation_cancel_success",n.amount),Z()}).catch(j=>{G("self_limitation_cancel_failed",n.amount),console.log(j),i(17,q=!0)})},Dt=n=>{const m=new URL(`/v1/player/${u}/limits/monetary/${n.id}`,p);J(),i(16,V=!0);let c={method:"DELETE",headers:{"X-SessionID":d,"Content-Type":"application/json",Accept:"application/json"}};fetch(m.href,c).then(h=>Y(h)).then(h=>{G("self_limitation_cancel_success",n.amount),Z()}).catch(h=>{G("self_limitation_cancel_failed",n.amount),console.log(h),i(17,q=!0)})},De=n=>{const m=new URL(`/v1/player/${u}/limits/schedule/${n.scheduleId}`,p);J(),i(16,V=!0);let c={method:"DELETE",headers:{"X-SessionID":d,"Content-Type":"application/json",Accept:"application/json"}};fetch(m.href,c).then(h=>Y(h)).then(h=>{ae=n,G("self_limitation_cancel_success",n.updateAmount),Z()}).catch(h=>{G("self_limitation_cancel_failed",n.updateAmount),console.log(h),i(17,q=!0)})},je=n=>{const m=new URL(`v1/player/${u}/limits/schedule/acknowledge/${n.scheduleId}`,p);J(),i(16,V=!0);let c={method:"PATCH",headers:{"X-SessionID":d,"Content-Type":"application/json",Accept:"application/json"}};fetch(m.href,c).then(h=>Y(h)).then(h=>{ae=n,jt(n),G("self_limitation_confirm_success",n.amount),Z()}).catch(h=>{G("self_limitation_confirm_failed",n.amount),console.log(h),i(17,q=!0)})},jt=n=>{let m=60;i(25,K[n.scheduleId]={},K),i(25,K[n.scheduleId].timer=`${m} ${ee[s].seconds}`,K),i(25,K[n.scheduleId].timerStopped=!1,K);let c=window.setInterval(()=>m===0?(window.clearInterval(c),i(25,K[n.scheduleId].timerStopped=!0,K),i(25,K[n.scheduleId].timer=ee[s].reloadLimitsButton,K)):i(25,K[n.scheduleId].timer=`${--m} ${ee[s].seconds}`,K),1e3)},ye=n=>{let m;return n?m=n.value?a(n.value+n.product):a(n.type.toLowerCase()+n.products[0]):m=a(g),m},xe=(n,m=!1)=>{if(!I)return m?`${n.updateAmount}${n.currency}`:`${n.amount}${n.currency}`;let c=I;const h=c.match(/\{(\d+)decimals\}/),f=h?parseInt(h[1],10):2,j=h?new RegExp("\\{\\d+decimals\\}","g"):"{decimals}";let z=m?n.updateAmount:n.amount;z=parseInt(z).toFixed(f);const[W,te]=I.includes(".")?[",","."]:[".",","];let[de,he]=z.split(".");return de=de.replace(/\B(?=(\d{3})+(?!\d))/g,W),z=`${de}${te}${he}`,c=c.replace("{currency}",ne[n.currency]||n.currency).replace("{amount}",z.split(te)[0]).replace(j,z.split(te)[1]),c},ze=()=>{i(20,X=i(19,oe=!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),ze()},zt=n=>{n.keyCode===13&&le&&n.preventDefault()},Et=()=>{if(!y)return;let n={};y.split(",").forEach(m=>{let c=m.split(":");n[c[0].trim()]=c[1].trim()}),ne=ce(ce({},ne),n)},Pt=()=>{Yt(s)};e.onMount(()=>()=>{});const Mt=()=>Z(),It=n=>Te(n),Ut=n=>je(n),Nt=n=>De(n);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,M),i(7,g)}function Wt(){C=e.to_number(this.value),i(10,C)}function Vt(n){e.binding_callbacks[n?"unshift":"push"](()=>{R=n,i(11,R)})}function qt(n){e.binding_callbacks[n?"unshift":"push"](()=>{A=n,i(4,A)})}return o.$$set=n=>{"lang"in n&&i(42,s=n.lang),"currency"in n&&i(0,r=n.currency),"limits"in n&&i(43,l=n.limits),"session"in n&&i(44,d=n.session),"userid"in n&&i(45,u=n.userid),"endpoint"in n&&i(46,p=n.endpoint),"apiversion"in n&&i(47,L=n.apiversion),"customcurrencysymbols"in n&&i(48,y=n.customcurrencysymbols),"enablecompliancetext"in n&&i(1,T=n.enablecompliancetext),"deletelimit"in n&&i(2,v=n.deletelimit),"amountsconfig"in n&&i(49,S=n.amountsconfig),"periodsconfig"in n&&i(50,O=n.periodsconfig),"limittabindex"in n&&i(3,B=n.limittabindex),"limitformat"in n&&i(51,I=n.limitformat),"clientstyling"in n&&i(52,U=n.clientstyling),"clientstylingurl"in n&&i(53,D=n.clientstylingurl),"mbsource"in n&&i(54,E=n.mbsource),"translationurl"in n&&i(55,P=n.translationurl)},o.$$.update=()=>{o.$$.dirty[1]&131072&&y&&Et(),o.$$.dirty[1]&786432&&O&&S&&it(),o.$$.dirty[1]&2048&&s&&Pt(),o.$$.dirty[1]&124928&&u&&d&&p&&L&&s&&Z(),o.$$.dirty[0]&16|o.$$.dirty[1]&2097152&&U&&A&&e.setClientStyling(A,U),o.$$.dirty[0]&16|o.$$.dirty[1]&4194304&&D&&A&&e.setClientStylingURL(A,D),o.$$.dirty[0]&16|o.$$.dirty[1]&8388608&&E&&A&&e.setStreamStyling(A,`${E}.Style`),o.$$.dirty[1]&16777216&&P&&$e()},[r,T,v,B,A,M,_,g,b,w,C,R,Q,ie,ve,Le,V,q,fe,oe,X,H,se,re,le,K,a,x,we,Se,mt,Z,gt,Ce,Te,De,je,ye,xe,ze,xt,zt,s,l,d,u,p,L,y,S,O,I,U,D,E,P,Mt,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},Zt,[-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;
|
|
26
|
+
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(E,P){e.insert(E,t,P),e.append(t,i),e.append(i,a),e.append(i,s),e.append(t,r),e.append(t,l),e.append(t,d),e.append(t,u),e.append(t,p),e.append(t,L),e.append(t,y),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,D)},d(E){E&&e.detach(t)}}}function ii(o){let t,i=o[26]("popupSuccess")+"",a;return{c(){t=e.element("p"),a=e.text(i)},m(s,r){e.insert(s,t,r),e.append(t,a)},p(s,r){r[0]&67108864&&i!==(i=s[26]("popupSuccess")+"")&&e.set_data(a,i)},d(s){s&&e.detach(t)}}}function ai(o){let t,i=o[26]("docsRequired")+"",a;return{c(){t=e.element("p"),a=e.text(i)},m(s,r){e.insert(s,t,r),e.append(t,a)},p(s,r){r[0]&67108864&&i!==(i=s[26]("docsRequired")+"")&&e.set_data(a,i)},d(s){s&&e.detach(t)}}}function oi(o){let t,i=o[26]("popupError")+"",a;return{c(){t=e.element("p"),a=e.text(i)},m(s,r){e.insert(s,t,r),e.append(t,a)},p(s,r){r[0]&67108864&&i!==(i=s[26]("popupError")+"")&&e.set_data(a,i)},d(s){s&&e.detach(t)}}}function ni(o){let t,i=o[26]("okButton")+"",a,s,r;return{c(){t=e.element("button"),a=e.text(i),e.attr(t,"class","ConfirmButton")},m(l,d){e.insert(l,t,d),e.append(t,a),s||(r=e.listen(t,"click",o[39]),s=!0)},p(l,d){d[0]&67108864&&i!==(i=l[26]("okButton")+"")&&e.set_data(a,i)},d(l){l&&e.detach(t),s=!1,r()}}}function si(o){let t,i=o[26]("uploadDocumentsButton")+"",a,s,r=o[26]("closeButton")+"",l,d,u;return{c(){t=e.element("button"),a=e.space(),s=e.element("button"),l=e.text(r),e.attr(t,"class","ConfirmButton"),e.attr(s,"class","CloseButton")},m(p,L){e.insert(p,t,L),t.innerHTML=i,e.insert(p,a,L),e.insert(p,s,L),e.append(s,l),d||(u=[e.listen(t,"click",o[40]),e.listen(s,"click",o[39])],d=!0)},p(p,L){L[0]&67108864&&i!==(i=p[26]("uploadDocumentsButton")+"")&&(t.innerHTML=i),L[0]&67108864&&r!==(r=p[26]("closeButton")+"")&&e.set_data(l,r)},d(p){p&&(e.detach(t),e.detach(a),e.detach(s)),d=!1,e.run_all(u)}}}function ri(o){let t,i,a,s,r,l,d,u,p,L,y=o[15]?`${o[26]("amount")}`:`${o[26](`new${o[8]}Limit`)}`,T,v,S,O,B,I,U=o[26]("setLimit")+"",D,E,P,A,k=e.ensure_array_like(o[6]),x=[];for(let w=0;w<k.length;w+=1)x[w]=Fe(Ne(o,k,w));let _=o[1]==="true"&&Ge(o),g=o[14]&&Ke(o),b=o[15]&&Ye(o),N=o[24]&&Xe(o);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(),r=e.element("form"),_&&_.c(),l=e.space(),g&&g.c(),d=e.space(),b&&b.c(),u=e.space(),p=e.element("label"),L=e.element("span"),T=e.text(y),v=e.space(),S=e.element("input"),O=e.space(),N&&N.c(),B=e.space(),I=e.element("button"),D=e.text(U),e.attr(a,"class","LimitsList "+(o[27]?"Desktop":"")),e.attr(L,"class","LimitInputText"),e.attr(S,"type","number"),e.attr(S,"pattern","[0-9]*"),e.attr(p,"class","LimitAmountInputWrapper"),e.attr(I,"class","LimitSubmitButton"),e.attr(I,"type","button"),I.disabled=!0,e.attr(r,"class","LimitsInteractionArea "+(o[27]?"Desktop":"")),e.attr(i,"class","LimitsPageContainer"),e.attr(t,"class",E="player-account-gaming-limits-page-2-gm16 "+("LimitTab"+o[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,r),_&&_.m(r,null),e.append(r,l),g&&g.m(r,null),e.append(r,d),b&&b.m(r,null),e.append(r,u),e.append(r,p),e.append(p,L),e.append(L,T),e.append(p,v),e.append(p,S),e.set_input_value(S,o[10]),e.append(p,O),N&&N.m(p,null),e.append(r,B),e.append(r,I),e.append(I,D),o[64](I),P||(A=[e.listen(S,"input",o[63]),e.listen(S,"keydown",o[41]),e.listen(S,"keyup",o[32]),e.listen(I,"click",o[30]),e.listen(r,"submit",o[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(r,l)):_&&(_.d(1),_=null),w[14]?g?g.p(w,C):(g=Ke(w),g.c(),g.m(r,d)):g&&(g.d(1),g=null),w[15]?b?b.p(w,C):(b=Ye(w),b.c(),b.m(r,u)):b&&(b.d(1),b=null),C[0]&67141888&&y!==(y=w[15]?`${w[26]("amount")}`:`${w[26](`new${w[8]}Limit`)}`)&&e.set_data(T,y),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=Xe(w),N.c(),N.m(p,null)):N&&(N.d(1),N=null),C[0]&67108864&&U!==(U=w[26]("setLimit")+"")&&e.set_data(D,U),C[0]&8&&E!==(E="player-account-gaming-limits-page-2-gm16 "+("LimitTab"+w[3]))&&e.attr(t,"class",E)},d(w){w&&e.detach(t),e.destroy_each(x,w),_&&_.d(),g&&g.d(),b&&b.d(),N&&N.d(),o[64](null),P=!1,e.run_all(A)}}}function li(o){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(o){let t,i,a,s,r,l,d=e.ensure_array_like(Array(3)),u=[];for(let p=0;p<d.length;p+=1)u[p]=_i(Xt(o,d,p));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 p=0;p<u.length;p+=1)u[p].c();r=e.space(),l=e.element("div"),l.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(l,"class","skeletonInputWrapper"),e.attr(t,"class","skeletonLimitContainer")},m(p,L){e.insert(p,t,L),e.append(t,i),e.append(i,a),e.append(i,s);for(let y=0;y<u.length;y+=1)u[y]&&u[y].m(i,null);e.append(t,r),e.append(t,l)},p:e.noop,d(p){p&&e.detach(t),e.destroy_each(u,p)}}}function pi(o){let t,i,a,s=o[26]("noLimitText")+"",r;return{c(){t=e.element("div"),i=e.element("div"),a=e.element("div"),r=e.text(s),e.attr(a,"class","LimitDetailsTextWrapper"),e.attr(i,"class","LimitDetailsWrapper"),e.attr(t,"class","LimitDetails")},m(l,d){e.insert(l,t,d),e.append(t,i),e.append(i,a),e.append(a,r)},p(l,d){d[0]&67108864&&s!==(s=l[26]("noLimitText")+"")&&e.set_data(r,s)},d(l){l&&e.detach(t)}}}function di(o){let t,i,a,s=o[26]("lugasPrivacy")+"",r;return{c(){t=e.element("div"),i=e.element("div"),a=e.element("div"),r=e.text(s),e.attr(a,"class","LimitDetailsTextWrapper"),e.attr(i,"class","LimitDetailsWrapper"),e.attr(t,"class","LimitDetails")},m(l,d){e.insert(l,t,d),e.append(t,i),e.append(i,a),e.append(a,r)},p(l,d){d[0]&67108864&&s!==(s=l[26]("lugasPrivacy")+"")&&e.set_data(r,s)},d(l){l&&e.detach(t)}}}function ui(o){let t,i=e.ensure_array_like(o[126].currentLimits),a=[];for(let s=0;s<i.length;s+=1)a[s]=qe(Re(o,i,s));return{c(){for(let s=0;s<a.length;s+=1)a[s].c();t=e.empty()},m(s,r){for(let l=0;l<a.length;l+=1)a[l]&&a[l].m(s,r);e.insert(s,t,r)},p(s,r){if(r[0]&234881092|r[1]&185){i=e.ensure_array_like(s[126].currentLimits);let l;for(l=0;l<i.length;l+=1){const d=Re(s,i,l);a[l]?a[l].p(d,r):(a[l]=qe(d),a[l].c(),a[l].m(t.parentNode,t))}for(;l<a.length;l+=1)a[l].d(1);a.length=i.length}},d(s){s&&e.detach(t),e.destroy_each(a,s)}}}function ci(o){let t,i,a,s=o[26]("lugasPrivacy")+"",r;return{c(){t=e.element("div"),i=e.element("div"),a=e.element("div"),r=e.text(s),e.attr(a,"class","LimitDetailsTextWrapper"),e.attr(i,"class","LimitDetailsWrapper"),e.attr(t,"class","LimitDetails")},m(l,d){e.insert(l,t,d),e.append(t,i),e.append(i,a),e.append(a,r)},p(l,d){d[0]&67108864&&s!==(s=l[26]("lugasPrivacy")+"")&&e.set_data(r,s)},d(l){l&&e.detach(t)}}}function Li(o){let t,i=`${o[38](o[131])}`,a;return{c(){t=e.element("span"),a=e.text(i)},m(s,r){e.insert(s,t,r),e.append(t,a)},p(s,r){r[0]&64&&i!==(i=`${s[38](s[131])}`)&&e.set_data(a,i)},d(s){s&&e.detach(t)}}}function fi(o){let t,i=`${o[38](o[131],!0)}`,a;return{c(){t=e.element("span"),a=e.text(i)},m(s,r){e.insert(s,t,r),e.append(t,a)},p(s,r){r[0]&64&&i!==(i=`${s[38](s[131],!0)}`)&&e.set_data(a,i)},d(s){s&&e.detach(t)}}}function gi(o){let t,i,a=`${o[38](o[131],!0)}`,s,r;function l(p,L){return p[131].isCoolOffCompleted?bi:ki}let d=l(o),u=d(o);return{c(){t=e.element("div"),i=e.element("span"),s=e.text(a),r=e.space(),u.c(),e.attr(t,"class","PendingLimit")},m(p,L){e.insert(p,t,L),e.append(t,i),e.append(i,s),e.append(t,r),u.m(t,null)},p(p,L){L[0]&64&&a!==(a=`${p[38](p[131],!0)}`)&&e.set_data(s,a),d===(d=l(p))&&u?u.p(p,L):(u.d(1),u=d(p),u&&(u.c(),u.m(t,null)))},d(p){p&&e.detach(t),u.d()}}}function yi(o){let t,i=`${o[26]("removedLimitText")} ${o[131].expiryDate}`,a;return{c(){t=e.element("div"),a=e.text(i),e.attr(t,"class","PendingLimit")},m(s,r){e.insert(s,t,r),e.append(t,a)},p(s,r){r[0]&67108928&&i!==(i=`${s[26]("removedLimitText")} ${s[131].expiryDate}`)&&e.set_data(a,i)},d(s){s&&e.detach(t)}}}function hi(o){let t,i=`${o[26]("removeAfterConfirm")}`,a;return{c(){t=e.element("div"),a=e.text(i),e.attr(t,"class","PendingLimit")},m(s,r){e.insert(s,t,r),e.append(t,a)},p(s,r){r[0]&67108864&&i!==(i=`${s[26]("removeAfterConfirm")}`)&&e.set_data(a,i)},d(s){s&&e.detach(t)}}}function vi(o){let t,i=`${o[26]("acknowledgedLimit")}`,a;return{c(){t=e.element("div"),a=e.text(i),e.attr(t,"class","PendingLimit")},m(s,r){e.insert(s,t,r),e.append(t,a)},p(s,r){r[0]&67108864&&i!==(i=`${s[26]("acknowledgedLimit")}`)&&e.set_data(a,i)},d(s){s&&e.detach(t)}}}function ki(o){let t=`${o[131].period!=="None"||o[131].value!=="cumulativeSession"?" ":o[26]("per")} ${o[26](`${o[131].period}`)} ${o[26]("updateText")} ${o[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(o){let t=`${o[131].period!=="None"||o[131].value!=="cumulativeSession"?" ":o[26]("per")} ${o[26](`${o[131].period}`)} ${o[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(o){let t,i,a=o[25][o[131].scheduleId].timer+"",s,r,l,d;return{c(){t=e.element("div"),i=e.element("button"),s=e.text(a),e.attr(i,"class",r="ReloadLimitButton "+(o[27]?"":"Mobile")+" "+(o[25][o[131].scheduleId].timerStopped?"":"disabled")),e.attr(t,"class","ContainerLimitActions "+(o[27]?"":"Mobile"))},m(u,p){e.insert(u,t,p),e.append(t,i),e.append(i,s),l||(d=e.listen(i,"click",o[56]),l=!0)},p(u,p){p[0]&33554496&&a!==(a=u[25][u[131].scheduleId].timer+"")&&e.set_data(s,a),p[0]&33554496&&r!==(r="ReloadLimitButton "+(u[27]?"":"Mobile")+" "+(u[25][u[131].scheduleId].timerStopped?"":"disabled"))&&e.attr(i,"class",r)},d(u){u&&e.detach(t),l=!1,d()}}}function We(o){let t,i,a=o[26]("removeLimit")+"",s,r,l;function d(){return o[57](o[131])}return{c(){t=e.element("div"),i=e.element("button"),s=e.text(a),e.attr(i,"class","RemoveLimitButton "+(o[27]?"":"Mobile")),e.attr(t,"class","ContainerLimitActions "+(o[27]?"":"Mobile"))},m(u,p){e.insert(u,t,p),e.append(t,i),e.append(i,s),r||(l=e.listen(i,"click",d),r=!0)},p(u,p){o=u,p[0]&67108864&&a!==(a=o[26]("removeLimit")+"")&&e.set_data(s,a)},d(u){u&&e.detach(t),r=!1,l()}}}function Ve(o){let t,i,a=o[26]("confirmUpdateLimit")+"",s,r,l,d=o[26]("cancelUpdateLimit")+"",u,p,L;function y(){return o[58](o[131])}function T(){return o[59](o[131])}return{c(){t=e.element("div"),i=e.element("button"),s=e.text(a),r=e.space(),l=e.element("button"),u=e.text(d),e.attr(i,"class","ConfirmLimitButton "+(o[27]?"":"Mobile")),e.attr(l,"class","CancelLimitButton "+(o[27]?"":"Mobile")),e.attr(t,"class","ContainerLimitActions "+(o[27]?"":"Mobile"))},m(v,S){e.insert(v,t,S),e.append(t,i),e.append(i,s),e.append(t,r),e.append(t,l),e.append(l,u),p||(L=[e.listen(i,"click",y),e.listen(l,"click",T)],p=!0)},p(v,S){o=v,S[0]&67108864&&a!==(a=o[26]("confirmUpdateLimit")+"")&&e.set_data(s,a),S[0]&67108864&&d!==(d=o[26]("cancelUpdateLimit")+"")&&e.set_data(u,d)},d(v){v&&e.detach(t),p=!1,e.run_all(L)}}}function qe(o){let t,i,a,s,r,l=`${o[131].period!=="None"||o[131].value!=="cumulativeSession"?" ":o[26]("per")} ${o[26](`${o[131].period}`)}`,d,u,p,L,y=!o[131].isModified&&o[2].indexOf(o[126].value)>-1,T,v;function S(k,x){return k[131].acknowledgedLimit?fi:Li}let O=S(o),B=O(o);function I(k,x){if(k[131].acknowledgedLimit)return vi;if(k[131].isModified&&k[131].updateAmount==0&&k[131].isCoolOffCompleted)return hi;if(k[131].isModified&&k[131].updateAmount==0&&!k[131].isCoolOffCompleted)return yi;if(k[131].isModified)return gi}let U=I(o),D=U&&U(o),E=o[131].acknowledgedLimit&&Oe(o),P=y&&We(o),A=o[131].isCoolOffCompleted&!o[131].acknowledgedLimit&&Ve(o);return{c(){t=e.element("div"),i=e.element("div"),a=e.element("div"),s=e.element("div"),B.c(),r=e.space(),d=e.text(l),u=e.space(),D&&D.c(),p=e.space(),E&&E.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,r),e.append(s,d),e.append(a,u),D&&D.m(a,null),e.append(i,p),E&&E.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,r))),x[0]&67108928&&l!==(l=`${k[131].period!=="None"||k[131].value!=="cumulativeSession"?" ":k[26]("per")} ${k[26](`${k[131].period}`)}`)&&e.set_data(d,l),U===(U=I(k))&&D?D.p(k,x):(D&&D.d(1),D=U&&U(k),D&&(D.c(),D.m(a,null))),k[131].acknowledgedLimit?E?E.p(k,x):(E=Oe(k),E.c(),E.m(i,L)):E&&(E.d(1),E=null),x[0]&68&&(y=!k[131].isModified&&k[2].indexOf(k[126].value)>-1),y?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(),D&&D.d(),E&&E.d(),P&&P.d(),A&&A.d()}}}function Fe(o){let t,i,a=o[37](o[126])+"",s,r,l;function d(L,y){return L[126].value==="lugas"?ci:L[126].currentLimits.length>0?ui:L[126].value==="lugas"?di:pi}let u=d(o),p=u(o);return{c(){t=e.element("div"),i=e.element("p"),s=e.text(a),r=e.space(),p.c(),l=e.space(),e.attr(i,"class","LimitTitle"),e.attr(t,"class","LimitWrapper "+(o[27]?"Desktop":""))},m(L,y){e.insert(L,t,y),e.append(t,i),e.append(i,s),e.append(t,r),p.m(t,null),e.append(t,l)},p(L,y){y[0]&64&&a!==(a=L[37](L[126])+"")&&e.set_data(s,a),u===(u=d(L))&&p?p.p(L,y):(p.d(1),p=u(L),p&&(p.c(),p.m(t,l)))},d(L){L&&e.detach(t),p.d()}}}function Ge(o){let t,i,a=o[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(r,l){e.insert(r,t,l),e.append(t,i),e.append(i,s)},p(r,l){l[0]&67108864&&a!==(a=r[26]("complianceText")+"")&&e.set_data(s,a)},d(r){r&&e.detach(t)}}}function Ke(o){let t,i,a=o[26]("limitType")+"",s,r,l,d,u,p=e.ensure_array_like(o[6]),L=[];for(let y=0;y<p.length;y+=1)L[y]=He(Ue(o,p,y));return{c(){t=e.element("label"),i=e.element("span"),s=e.text(a),r=e.space(),l=e.element("select");for(let y=0;y<L.length;y+=1)L[y].c();e.attr(i,"class","LimitSelectText"),e.attr(l,"name",""),e.attr(l,"id",""),o[9]===void 0&&e.add_render_callback(()=>o[60].call(l)),e.attr(t,"class","LimitTypeDropdownWrapper")},m(y,T){e.insert(y,t,T),e.append(t,i),e.append(i,s),e.append(t,r),e.append(t,l);for(let v=0;v<L.length;v+=1)L[v]&&L[v].m(l,null);e.select_option(l,o[9],!0),d||(u=[e.listen(l,"change",o[60]),e.listen(l,"change",o[61])],d=!0)},p(y,T){if(T[0]&67108864&&a!==(a=y[26]("limitType")+"")&&e.set_data(s,a),T[0]&64|T[1]&64){p=e.ensure_array_like(y[6]);let v;for(v=0;v<p.length;v+=1){const S=Ue(y,p,v);L[v]?L[v].p(S,T):(L[v]=He(S),L[v].c(),L[v].m(l,null))}for(;v<L.length;v+=1)L[v].d(1);L.length=p.length}T[0]&512&&e.select_option(l,y[9])},d(y){y&&e.detach(t),e.destroy_each(L,y),d=!1,e.run_all(u)}}}function He(o){let t,i=o[37](o[126])+"",a;return{c(){t=e.element("option"),a=e.text(i),t.__value=o[128],e.set_input_value(t,t.__value)},m(s,r){e.insert(s,t,r),e.append(t,a)},p(s,r){r[0]&64&&i!==(i=s[37](s[126])+"")&&e.set_data(a,i)},d(s){s&&e.detach(t)}}}function Ye(o){let t,i,a=o[26]("period")+"",s,r,l,d,u,p=e.ensure_array_like(o[5][o[7]].periods),L=[];for(let y=0;y<p.length;y+=1)L[y]=Ze(Ie(o,p,y));return{c(){t=e.element("label"),i=e.element("span"),s=e.text(a),r=e.space(),l=e.element("select");for(let y=0;y<L.length;y+=1)L[y].c();e.attr(i,"class","PeriodSelectText"),e.attr(l,"name",""),e.attr(l,"id",""),o[8]===void 0&&e.add_render_callback(()=>o[62].call(l)),e.attr(t,"class","LimitPeriodDropdownWrapper")},m(y,T){e.insert(y,t,T),e.append(t,i),e.append(i,s),e.append(t,r),e.append(t,l);for(let v=0;v<L.length;v+=1)L[v]&&L[v].m(l,null);e.select_option(l,o[8],!0),d||(u=e.listen(l,"change",o[62]),d=!0)},p(y,T){if(T[0]&67108864&&a!==(a=y[26]("period")+"")&&e.set_data(s,a),T[0]&67109024){p=e.ensure_array_like(y[5][y[7]].periods);let v;for(v=0;v<p.length;v+=1){const S=Ie(y,p,v);L[v]?L[v].p(S,T):(L[v]=Ze(S),L[v].c(),L[v].m(l,null))}for(;v<L.length;v+=1)L[v].d(1);L.length=p.length}T[0]&416&&e.select_option(l,y[8])},d(y){y&&e.detach(t),e.destroy_each(L,y),d=!1,u()}}}function Ze(o){let t,i=o[26](o[123])+"",a,s;return{c(){t=e.element("option"),a=e.text(i),t.__value=s=o[123],e.set_input_value(t,t.__value),t.selected=!0},m(r,l){e.insert(r,t,l),e.append(t,a)},p(r,l){l[0]&67109024&&i!==(i=r[26](r[123])+"")&&e.set_data(a,i),l[0]&160&&s!==(s=r[123])&&(t.__value=s,e.set_input_value(t,t.__value))},d(r){r&&e.detach(t)}}}function Xe(o){let t,i=o[10]<o[12]?`${o[26]("invalidInputMessageLimitMin",{values:{minValue:o[12],currency:o[0]}})}`:`${o[26]("invalidInputMessageLimitMax",{values:{maxValue:o[13],currency:o[0]}})}`,a;return{c(){t=e.element("p"),a=e.text(i),e.attr(t,"class","InvalidInput")},m(s,r){e.insert(s,t,r),e.append(t,a)},p(s,r){r[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(o){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(o){let t,i,a=o[19]&&Be(o);function s(d,u){if(d[16])return mi;if(d[17])return li;if(!d[16])return ri}let r=s(o),l=r&&r(o);return{c(){t=e.element("div"),a&&a.c(),i=e.space(),l&&l.c()},m(d,u){e.insert(d,t,u),a&&a.m(t,null),e.append(t,i),l&&l.m(t,null),o[65](t)},p(d,u){d[19]?a?a.p(d,u):(a=Be(d),a.c(),a.m(t,i)):a&&(a.d(1),a=null),r===(r=s(d))&&l?l.p(d,u):(l&&l.d(1),l=r&&r(d),l&&(l.c(),l.m(t,null)))},i:e.noop,o:e.noop,d(d){d&&e.detach(t),a&&a.d(),l&&l.d(),o[65](null)}}}function Si(o,t,i){let a;e.component_subscribe(o,e.$format,n=>i(26,a=n));let{lang:s="en"}=t,{currency:r=""}=t,{limits:l=""}=t,{session:d=""}=t,{userid:u=""}=t,{endpoint:p=""}=t,{apiversion:L=""}=t,{customcurrencysymbols:y=""}=t,{enablecompliancetext:T=""}=t,{deletelimit:v=""}=t,{amountsconfig:S=""}=t,{periodsconfig:O=""}=t,{limittabindex:B=""}=t,{limitformat:I=""}=t,{clientstyling:U=""}=t,{clientstylingurl:D=""}=t,{mbsource:E}=t,{translationurl:P=""}=t,A,k=window.navigator.userAgent,x=!e.isMobile(k),_=[],g="",b="",N="",w=0,C,R,$="",ie="",ue="",X={},ae={},ve=!1,Le=!1,V=!0,q=!1,fe=!1,oe=!1,J=!1,H="",se="",F=[],re,ke,le=!1,Qe={},ne={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=>{Me(c,m[c])})}).catch(m=>{console.log(m)})};Object.keys(ee).forEach(n=>{Me(n,ee[n])});const ge=n=>`dataLayer-${n}`,G=(n,m)=>{typeof gtag=="function"&>ag({event:n,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 h;const n=S.split(",").map(f=>f.split(":")),m=O.split(",").map(f=>f.split(":"));for(let[f,j]of n.entries())if(j[0]!==m[f][0])throw new Error(`Limit config mismatch: "${j[0]}" does not match "${m[f][0]}"`);const c=n.reduce((f,j,z)=>{const W=j[0].slice(j[0].indexOf("(")+1,j[0].indexOf(")")),te=j[0].slice(0,j[0].indexOf("(")),de=j[1],he=m[z][1].trim().replace("D","Daily").replace("W","Weekly").replace("M","Monthly").replace("N","None").split("-"),Ft={value:W,product:te,minMax:de,periods:he,callValue:M[W].callValue,callValue16:M[W].callValue16,title:M[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,M[c[f].value].periods=c[f].periods,M);ue=(h=_[0])==null?void 0:h.value,_.forEach(f=>{X[f.value]={min:f.min,max:f.max},Qe[f.value]=f.product}),X&&(X[ue]?(i(12,$=X[ue].min),i(13,ie=X[ue].max)):(i(12,$=1),i(13,ie=9999999)))},tt=()=>{const n=/\(([^)]+)\)/g;return[...S.matchAll(n)].flat().filter(c=>!c.includes("("))},it=()=>{tt().forEach(m=>{M[m]?_.push(ce({},M[m])):console.error(`Unknown limit: ${m}`)}),et(),i(7,g=_[0].value),i(8,b=M[g].periods[0]),N=_[0].product,i(14,ve=_.length>1),i(15,Le=M[g].periods.length>1)},we=()=>{i(7,g=_[w].value),i(8,b=M[g].periods[0]),i(15,Le=M[g].periods.length>1)},Se=()=>{N=_[w].product},Y=n=>{if(n.status>=300)at(n);else return i(18,fe=!1),n.status!==204?n.json():n},at=n=>{i(17,q=!0);let m;throw n.json().then(c=>{for(const h in _e)if(_e[h].some(f=>c.error.includes(f))){m=h;break}console.error("errType",m),!m&&pe(c)}).finally(()=>{m&&pe(m),i(17,q=!1),i(16,V=!1)}),new Error("An error occured during the fetch request")},ot=()=>{if(!(C>0))return;Q(),i(16,V=!0);let n=new URL(`/v2/player/${u}/limits`,p),m={};g==="sessionLimit"?m={sessionLimit:C,sessionLimitUnit:"minute"}:g==="cumulativeSession"?m[M[g].callValue]=[{period:b,minutes:C}]:m[M[g].callValue]=[{period:M[g].periods[0]==="None"?null:b,amount:C,currency:r}];let c={method:"PUT",headers:{"X-SessionID":d,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(m)};fetch(n.href,c).then(h=>Y(h)).then(h=>{G("self_limitation_success"),Z()}).catch(h=>{console.error(h),i(17,q=!0)})},nt=()=>{Q(),i(16,V=!0);const m=_[w].currentLimits.find(W=>W.period===b),c=m?"v2":"v1",h=new URL(`/${c}/player/${u}/limits/monetary/${m?m.id:""}`,p),f=m?"PUT":"POST",j=m?{amount:C,skipCoolOff:!1}:{amount:C,currency:r,period:M[g].periods[0]==="None"?null:b,type:M[g].callValue16,products:[N!=null?N:"All"],walletTypes:["Deposit","NetDeposit"].includes(M[g].callValue16)?["All"]:["RealCash"]};let z={method:f,headers:{"X-SessionID":d,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(j)};fetch(h.href,z).then(W=>Y(W)).then(W=>{G("self_limitation_success"),Z()}).catch(W=>{console.log(W),i(17,q=!0)})},st=()=>{if(!(C>0))return;Q(),i(16,V=!0);const n=new URL(`/v1/player/${u}/limits/session/`,p);let h={method:"PUT",headers:{"X-SessionID":d,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({sessionLimit:C,sessionLimitUnit:"minute"})};fetch(n.href,h).then(f=>Y(f)).then(f=>{G("self_limitation_success"),Z()}).catch(f=>{console.log(f),i(17,q=!0)})},rt=()=>{if(!(C>0))return;Q(),i(16,V=!0);const n=new URL(`/v1/player/${u}/limits/session/`,p);let h={method:"PUT",headers:{"X-SessionID":d,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({cumulativeSessionLimits:[{period:b,minutes:C}]})};fetch(n.href,h).then(f=>Y(f)).then(f=>{G("self_limitation_success"),Z()}).catch(f=>{console.log(f),i(17,q=!0)})},lt=()=>{if(!(C>0))return;Q(),i(16,V=!0);const n=new URL(`/v2/player/${u}/limit/lugas`,p);let h={method:"POST",headers:{"X-SessionID":d,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({amount:C,roleLimitAmount:0,softMigration:!1,keepLimit:!1})};fetch(n.href,h).then(f=>Y(f)).then(f=>{i(23,re=f.popup),f.operatorDepositLimitAmount,ke=f.regulatorDepositLimitAmount,G("self_limitation_success"),Z()}).catch(f=>{console.log(f),i(17,q=!0)})},mt=()=>{if(ae={},L==="gm16")switch(g){case"lugas":lt();break;case"sessionLimit":st();break;case"cumulativeSession":rt();break;default:nt();break}else if(L==="gmcore")ot();else throw Error(`Invalid apiversion attribute: ${L}`);G("self_limitation_request")},Z=()=>{switch(L){case"gmcore":pt();break;case"gm16":dt();break}},pt=()=>{i(16,V=!0);let n=new URL(`/v2/player/${u}/limits`,p),m={method:"GET",headers:{"X-SessionID":d,"Content-Type":"application/json",Accept:"application/json"}};fetch(n.href,m).then(c=>Y(c)).then(c=>{F=c,oe&&pe(),Ae(F),ut(F),i(10,C=null)}).catch(c=>{console.error("Error LimitsWidget: ",c),i(17,q=!0)}).finally(()=>{i(16,V=!1)})},dt=()=>{i(16,V=!0),F=[];let n=new URL(`/v1/player/${u}/limits/monetary`,p),m=new URL(`/v1/player/${u}/limits/session`,p),c=!1,h={method:"GET",headers:{"X-SessionID":d,"Content-Type":"application/json",Accept:"application/json"}};fetch(n.href,h).then(f=>Y(f)).then(f=>{F.push(f),L==="gmcore"&&Ae(F),L==="gm16"&&ct(F),oe&&pe(),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,h).then(f=>Y(f)).then(f=>{F.push(f),oe&&pe(),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=n=>{_.forEach(m=>{m.currentLimits=[];const c=Array.isArray(n[M[m.value].callValue])?n[M[m.value].callValue]:[n[M[m.value].callValue]];c.length===0||c[0]===void 0||(c.forEach((h,f)=>{var z;const j=n[M[m.value].callValue][f];m.currentLimits.push({}),m.currentLimits[f].limitType=m.value,m.currentLimits[f].amount=I?j.amount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(j.amount),m.currentLimits[f].currency=(z=ne[j.currency])!=null?z:j.currency,m.currentLimits[f].period=j.period,m.currentLimits[f].updateAmount=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(j.updateAmount),m.currentLimits[f].isModified=j.isModified,m.currentLimits[f].expiryDate=`${new Date(j.expiryDate).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")} (GMT)`}),m.currentLimits=me(m.currentLimits))})},ut=n=>{const m=a("minutes");_.filter(c=>c.value==="sessionLimit"||c.value==="cumulativeSession").forEach(c=>{var h;c.currentLimits=[],(h=n[M[c.value].callValue])==null||h.forEach((f,j)=>{const z=n[M[c.value].callValue][j];c.currentLimits.push({limitType:c.value,amount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(z.minutes),currency:m,isModified:z.isModified,period:c.value==="cumulativeSession"?z.period:"None",updateAmount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(z.updateMinutes),expiryDate:`${new Date(z.expiryDate).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")} (GMT)`})}),c.currentLimits=me(c.currentLimits)})},ct=n=>{var m;(m=n[0])!=null&&m.limits&&_.forEach(c=>{var h;c.currentLimits=[];for(const f of n[0].limits)if(f.type===c.callValue16&&f.products.includes(c.product)){let j=0,z=f.schedules.length>0?f.schedules.find(W=>W.id):{};f.schedules.length>0&&(j=I?z.updateAmount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(z.updateAmount)),c.currentLimits.push({limitType:c.value,amount:I?f.amount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(f.amount),currency:(h=ne[f.currency])!=null?h:f.currency,isModified:f.schedules.length>0,period:f.period,product:f.products[0],updateAmount:j,isCoolOffCompleted:z?z.isCoolOffCompleted:!1,scheduleId:z?z.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=n=>{var m;(m=n[1])!=null&&m.sessionLimit&&_.filter(c=>c.value==="sessionLimit").forEach(c=>{c.currentLimits.push({limitType:"sessionLimit",amount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(n[1].sessionLimit.minutes),currency:a("minutes"),isModified:n[1].sessionLimit.isModified,period:"None",updateAmount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(n[1].sessionLimit.updateMinutes),expiryDate:n[1].sessionLimit.expiryDate}),c.currentLimits=me(c.currentLimits)})},ft=n=>{var m;(m=n[1])!=null&&m.cumulativeSessionLimits&&_.filter(c=>c.value==="cumulativeSession").forEach(c=>{for(const h of n[1].cumulativeSessionLimits)c.currentLimits.push({limitType:"cumulativeSession",amount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(h.minutes),currency:a("minutes"),isModified:h.isModified,period:h.period,updateAmount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(h.updateMinutes),expiryDate:h.expiryDate});c.currentLimits=me(c.currentLimits)})},me=n=>{const m={Daily:0,Weekly:1,Monthly:2};return n.sort((c,h)=>m[c.period]-m[h.period]),n},gt=()=>{const n=C-Math.floor(C)===0;C>=$&&C<=ie&&n?(i(24,le=!1),R.removeAttribute("disabled")):(i(24,le=!0),R.setAttribute("disabled","true"))},Ce=()=>{i(24,le=!1),X!=null&&X[g]?(i(12,$=X[g].min),i(13,ie=X[g].max)):(i(12,$=1),i(13,ie=9999999))},yt=()=>{if(F){const n=F[M[g].callValue].find(h=>h.period===b),m=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(n.amount);let c=a("popupImmediateUpdate").replace("{selectedLimit}",ye(n)).replace("{updatedAmount}",m).replace("{currency}",ne[n.currency]||n.currency).replace("{selectedPeriod}",a(`${b}`));i(21,H=n.isModified?`${a("popupPendingUpdate")} ${new Date(n.expiryDate).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")} (GMT)`:c)}i(20,J=!0)},ht=()=>{var j;const n=((j=F[0])==null?void 0:j.limits)||F.limits;let m=null;if(!F){i(20,J=!0);return}Object.keys(ae).length>0?m=n.find(z=>z.id===ae.id):m=n.find(z=>z.type.toLowerCase()===be[g].toLowerCase()&&(z.period===b||z.period==="None")&&z.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),h=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}",ye(m)).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")} ${h}`:f),i(20,J=!0)},vt=()=>{re==1&&i(22,se="PopupKyc"),re==2&&(i(21,H=`${a("popup2_a")}${Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(ke)} ${r} ${a("popup2_b")}`),i(22,se="PopupKyc2")),re==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 n=F[M[g].callValue].find(h=>(h.period===b||b==="None")&&h.products[0]===N),m=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(n.minutes);let c=a("popupImmediateUpdate").replace("{selectedLimit}",a(`${g}`)).replace("{updatedAmount}",m).replace("{currency}",a("minutes")).replace("{selectedPeriod}",a(`${b}`));i(21,H=n.isModified?`${a("popupPendingUpdate")} ${new Date(n.expiryDate).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")} (GMT)`:c)}i(20,J=!0)},_t=n=>{var m;return(m=n==null?void 0:n.error)==null?void 0:m.includes("Limit update is not permitted due to LimitUpdateControl")},wt=n=>{var m;return(m=n==null?void 0:n.error)==null?void 0:m.includes("Limit remove is not permitted due to LimitUpdateControl")},St=n=>{var m;return(m=n==null?void 0:n.error)==null?void 0:m.includes("[NotFoundException] Limit does not exist")},At=n=>{var m;return(m=n.error)==null?void 0:m.includes("Invalid Session")},pe=n=>{if(window.postMessage({type:"OpenLimitsPopup"},window.location.href),q){if(i(18,fe=!0),!n){i(20,J=!0);return}n.thirdPartyResponse||i(21,H=a(`${n}`)),n.thirdPartyResponse&&i(21,H=n.thirdPartyResponse.message),_t(n)&&i(21,H=a("popupUpdateLimitException")),wt(n)&&i(21,H=a("popupRemoveLimitException")),St(n)&&i(21,H=a("notFoundException")),At(n)&&i(21,H=a("sessionExpiredException")),i(20,J=!0);return}switch(L){case"gmcore":g==="sessionLimit"||g==="cumulativeSession"?bt():yt();break;case"gm16":g==="lugas"?vt():g==="sessionLimit"||g==="cumulativeSession"?kt():ht();break;default:throw new Error(`Invalid apiversion attribute: ${L}`)}},Q=()=>{i(19,oe=!0),window.postMessage({type:"DisableScroll"},window.location.href)},Ct=n=>{i(7,g=n.limitType),i(8,b=n.period),Q(),i(16,V=!0);let m=new URL(`/v2/player/${u}/limits/${be[n.limitType]}`,p);n.limitType!=="sessionLimit"&&m.searchParams.append("periods",n.period);let c={method:"DELETE",headers:{"X-SessionID":d,"Content-Type":"application/json",Accept:"application/json"}};fetch(m.href,c).then(h=>Y(h)).then(h=>{G("self_limitation_cancel_success",n.amount),Z()}).catch(h=>{G("self_limitation_cancel_failed",n.amount),console.log(h),i(17,q=!0)})},Te=n=>{switch(n.period,L){case"gmcore":Ct(n);break;case"gm16":ae=n,n.limitType==="sessionLimit"||n.limitType==="cumulativeSession"?Tt(n):Dt(n);break}G("self_limitation_cancel_request",n.amount)},Tt=n=>{const m=new URL(`/v1/player/${u}/limits/session/session`,p),c=new URL(`/v1/player/${u}/limits/session/cumulativeSession?periods=${n.period}`,p);let h;switch(n.limitType){case"sessionLimit":h=m;break;case"cumulativeSession":h=c;break;default:throw Error(`Unknown limit.limitType: ${n.limitType}`)}Q(),i(16,V=!0);let f={method:"DELETE",headers:{"X-SessionID":d,"Content-Type":"application/json",Accept:"application/json"}};fetch(h.href,f).then(j=>Y(j)).then(j=>{G("self_limitation_cancel_success",n.amount),Z()}).catch(j=>{G("self_limitation_cancel_failed",n.amount),console.log(j),i(17,q=!0)})},Dt=n=>{const m=new URL(`/v1/player/${u}/limits/monetary/${n.id}`,p);Q(),i(16,V=!0);let c={method:"DELETE",headers:{"X-SessionID":d,"Content-Type":"application/json",Accept:"application/json"}};fetch(m.href,c).then(h=>Y(h)).then(h=>{G("self_limitation_cancel_success",n.amount),Z()}).catch(h=>{G("self_limitation_cancel_failed",n.amount),console.log(h),i(17,q=!0)})},De=n=>{const m=new URL(`/v1/player/${u}/limits/schedule/${n.scheduleId}`,p);Q(),i(16,V=!0);let c={method:"DELETE",headers:{"X-SessionID":d,"Content-Type":"application/json",Accept:"application/json"}};fetch(m.href,c).then(h=>Y(h)).then(h=>{ae=n,G("self_limitation_cancel_success",n.updateAmount),Z()}).catch(h=>{G("self_limitation_cancel_failed",n.updateAmount),console.log(h),i(17,q=!0)})},je=n=>{const m=new URL(`v1/player/${u}/limits/schedule/acknowledge/${n.scheduleId}`,p);Q(),i(16,V=!0);let c={method:"PATCH",headers:{"X-SessionID":d,"Content-Type":"application/json",Accept:"application/json"}};fetch(m.href,c).then(h=>Y(h)).then(h=>{ae=n,jt(n),G("self_limitation_confirm_success",n.amount),Z()}).catch(h=>{G("self_limitation_confirm_failed",n.amount),console.log(h),i(17,q=!0)})},jt=n=>{let m=60;i(25,K[n.scheduleId]={},K),i(25,K[n.scheduleId].timer=`${m} ${ee[s].seconds}`,K),i(25,K[n.scheduleId].timerStopped=!1,K);let c=window.setInterval(()=>m===0?(window.clearInterval(c),i(25,K[n.scheduleId].timerStopped=!0,K),i(25,K[n.scheduleId].timer=ee[s].reloadLimitsButton,K)):i(25,K[n.scheduleId].timer=`${--m} ${ee[s].seconds}`,K),1e3)},ye=n=>{let m;return n?m=n.value?a(n.value+n.product):a(n.type.toLowerCase()+n.products[0]):m=a(g),m},xe=(n,m=!1)=>{if(!I)return m?`${n.updateAmount}${n.currency}`:`${n.amount}${n.currency}`;let c=I;const h=c.match(/\{(\d+)decimals\}/),f=h?parseInt(h[1],10):2,j=h?new RegExp("\\{\\d+decimals\\}","g"):"{decimals}";let z=m?n.updateAmount:n.amount;z=parseInt(z).toFixed(f);const[W,te]=I.includes(".")?[",","."]:[".",","];let[de,he]=z.split(".");return de=de.replace(/\B(?=(\d{3})+(?!\d))/g,W),z=`${de}${te}${he}`,c=c.replace("{currency}",ne[n.currency]||n.currency).replace("{amount}",z.split(te)[0]).replace(j,z.split(te)[1]),c},ze=()=>{i(20,J=i(19,oe=!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),ze()},zt=n=>{n.keyCode===13&&le&&n.preventDefault()},Et=()=>{if(!y)return;let n={};y.split(",").forEach(m=>{let c=m.split(":");n[c[0].trim()]=c[1].trim()}),ne=ce(ce({},ne),n)},Pt=()=>{Yt(s)};e.onMount(()=>()=>{});const Mt=()=>Z(),It=n=>Te(n),Ut=n=>je(n),Nt=n=>De(n);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,M),i(7,g)}function Wt(){C=e.to_number(this.value),i(10,C)}function Vt(n){e.binding_callbacks[n?"unshift":"push"](()=>{R=n,i(11,R)})}function qt(n){e.binding_callbacks[n?"unshift":"push"](()=>{A=n,i(4,A)})}return o.$$set=n=>{"lang"in n&&i(42,s=n.lang),"currency"in n&&i(0,r=n.currency),"limits"in n&&i(43,l=n.limits),"session"in n&&i(44,d=n.session),"userid"in n&&i(45,u=n.userid),"endpoint"in n&&i(46,p=n.endpoint),"apiversion"in n&&i(47,L=n.apiversion),"customcurrencysymbols"in n&&i(48,y=n.customcurrencysymbols),"enablecompliancetext"in n&&i(1,T=n.enablecompliancetext),"deletelimit"in n&&i(2,v=n.deletelimit),"amountsconfig"in n&&i(49,S=n.amountsconfig),"periodsconfig"in n&&i(50,O=n.periodsconfig),"limittabindex"in n&&i(3,B=n.limittabindex),"limitformat"in n&&i(51,I=n.limitformat),"clientstyling"in n&&i(52,U=n.clientstyling),"clientstylingurl"in n&&i(53,D=n.clientstylingurl),"mbsource"in n&&i(54,E=n.mbsource),"translationurl"in n&&i(55,P=n.translationurl)},o.$$.update=()=>{o.$$.dirty[1]&131072&&y&&Et(),o.$$.dirty[1]&786432&&O&&S&&it(),o.$$.dirty[1]&2048&&s&&Pt(),o.$$.dirty[1]&124928&&u&&d&&p&&L&&s&&Z(),o.$$.dirty[0]&16|o.$$.dirty[1]&2097152&&U&&A&&e.setClientStyling(A,U),o.$$.dirty[0]&16|o.$$.dirty[1]&4194304&&D&&A&&e.setClientStylingURL(A,D),o.$$.dirty[0]&16|o.$$.dirty[1]&8388608&&E&&A&&e.setStreamStyling(A,`${E}.Style`),o.$$.dirty[1]&16777216&&P&&$e()},[r,T,v,B,A,M,_,g,b,w,C,R,$,ie,ve,Le,V,q,fe,oe,J,H,se,re,le,K,a,x,we,Se,mt,Z,gt,Ce,Te,De,je,ye,xe,ze,xt,zt,s,l,d,u,p,L,y,S,O,I,U,D,E,P,Mt,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},Zt,[-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;
|