@everymatrix/player-limit-notification 0.6.2 → 0.6.4
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/PlayerAccountGamingLimitsHistory2Nd-CVtyVFxN.cjs +18 -0
- package/components/{PlayerAccountGamingLimitsHistory2Nd-Rz7KSqHF.js → PlayerAccountGamingLimitsHistory2Nd-gc0INEye.js} +1048 -1069
- package/components/{PlayerAccountGamingLimitsHistory2Nd-BetTT8pd.js → PlayerAccountGamingLimitsHistory2Nd-mWkH_LLa.js} +895 -916
- package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-6jezdPSI.js → PlayerAccountGamingLimitsPage2Gm16Nd-BCOHZYpc.js} +129 -129
- package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-fgfmAwLi.js → PlayerAccountGamingLimitsPage2Gm16Nd-BKCbMIUy.js} +126 -126
- package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-DTS6QEQW.cjs → PlayerAccountGamingLimitsPage2Gm16Nd-DbNTVmeR.cjs} +2 -2
- package/components/{PlayerAccountGamingLimitsWrapper2Nd-2z3_GBiO.cjs → PlayerAccountGamingLimitsWrapper2Nd-C7RelM81.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsWrapper2Nd-Cf_X2Mhf.js → PlayerAccountGamingLimitsWrapper2Nd-DmnJjBml.js} +63 -63
- package/components/{PlayerAccountGamingLimitsWrapper2Nd-CV2C9zMp.js → PlayerAccountGamingLimitsWrapper2Nd-jQgjwmoV.js} +56 -56
- package/components/{PlayerLimitNotification-DMo7_odP.js → PlayerLimitNotification-DKJyH3PY.js} +51 -51
- package/components/{PlayerLimitNotification-zuggJ4lR.js → PlayerLimitNotification-DbORJ66O.js} +47 -47
- package/components/{PlayerLimitNotification-BrMdgJrq.cjs → PlayerLimitNotification-jhgxEbHZ.cjs} +1 -1
- package/es2015/player-limit-notification.cjs +1 -1
- package/es2015/player-limit-notification.js +1 -1
- package/esnext/player-limit-notification.js +1 -1
- package/package.json +1 -1
- package/stencil/index-b2193545-CMoQ4Pov.js +503 -0
- package/stencil/index-b2193545-CQaBo5im.cjs +1 -0
- package/stencil/index-b2193545-DvP9W4Go.js +519 -0
- package/stencil/{ui-skeleton-BreIU6e5.cjs → ui-skeleton-C7KTfaPd.cjs} +1 -1
- package/stencil/{ui-skeleton-W50o8tfg.js → ui-skeleton-Cn9Rv2BY.js} +2 -2
- package/stencil/{ui-skeleton-xXZA3rYO.js → ui-skeleton-YNoAIoec.js} +2 -2
- package/stencil/{ui-skeleton-ed169f8f-CVY4B-CP.js → ui-skeleton-ed169f8f-BA-lE0xf.js} +1 -1
- package/stencil/{ui-skeleton-ed169f8f-D3TjbVKy.js → ui-skeleton-ed169f8f-b70BXhTZ.js} +1 -1
- package/stencil/{ui-skeleton-ed169f8f-CpiCXJrP.cjs → ui-skeleton-ed169f8f-cGTgZqRU.cjs} +1 -1
- package/components/PlayerAccountGamingLimitsHistory2Nd-BPDMvyK7.cjs +0 -18
- package/stencil/index-b2193545-9K-aI7zC.cjs +0 -1
- package/stencil/index-b2193545-DsMHU6jb.js +0 -519
- package/stencil/index-b2193545-R7ZoV-kY.js +0 -503
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var qi=Object.defineProperty,Hi=Object.defineProperties;var Gi=Object.getOwnPropertyDescriptors;var rt=Object.getOwnPropertySymbols;var Ki=Object.prototype.hasOwnProperty,Yi=Object.prototype.propertyIsEnumerable;var lt=(a,t,i)=>t in a?qi(a,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):a[t]=i,ge=(a,t)=>{for(var i in t||(t={}))Ki.call(t,i)&<(a,i,t[i]);if(rt)for(var i of rt(t))Yi.call(t,i)&<(a,i,t[i]);return a},Re=(a,t)=>Hi(a,Gi(t));var oe=(a,t,i)=>new Promise((o,n)=>{var l=g=>{try{c(i.next(g))}catch(u){n(u)}},r=g=>{try{c(i.throw(g))}catch(u){n(u)}},c=g=>g.done?o(g.value):Promise.resolve(g.value).then(l,r);c((i=i.apply(a,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./PlayerAccountGamingLimitsHistory2Nd-
|
|
1
|
+
"use strict";var qi=Object.defineProperty,Hi=Object.defineProperties;var Gi=Object.getOwnPropertyDescriptors;var rt=Object.getOwnPropertySymbols;var Ki=Object.prototype.hasOwnProperty,Yi=Object.prototype.propertyIsEnumerable;var lt=(a,t,i)=>t in a?qi(a,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):a[t]=i,ge=(a,t)=>{for(var i in t||(t={}))Ki.call(t,i)&<(a,i,t[i]);if(rt)for(var i of rt(t))Yi.call(t,i)&<(a,i,t[i]);return a},Re=(a,t)=>Hi(a,Gi(t));var oe=(a,t,i)=>new Promise((o,n)=>{var l=g=>{try{c(i.next(g))}catch(u){n(u)}},r=g=>{try{c(i.throw(g))}catch(u){n(u)}},c=g=>g.done?o(g.value):Promise.resolve(g.value).then(l,r);c((i=i.apply(a,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./PlayerAccountGamingLimitsHistory2Nd-CVtyVFxN.cjs");require("../stencil/ui-skeleton-C7KTfaPd.cjs");const H={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 dt(a,t){e.addMessages(a,t)}function Zi(a){e.$locale.set(a)}const Le={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",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}.",invalidInputMessage:"Please enter a valid number.",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",uploadDocumentHeader:"Upload a Supporting Document",uploadButtonText:"Click here to Upload",documentUploadTitle:"Document Upload",uploadDocumentContent:'<p>Click here <label class="labelText" for="files">Browse</label></br>JPG/PEG, PNG or PDF files up to 50MB</p>',uploadHistory:"Upload History:",noFileUploaded:"No file uploaded",submitButton:"Submit",fileExtenssionDeny:"The file extenssion is not a valid one",fileSizeExceeded:"Maximum amount of file size was exceeded",uploadSuccess:"File uploaded successfully",errorUploadDocument:"There was an error with the uploading function",filesUploadError:"The uploaded files either exeeded allowed size or don't respect the allowed extensions types.",updateAfterDocApproval:"will be applied after document approval.",limitInDocReview:"You can't update a limit if it's in pendning.",scheduleNotFoundException:"Schedule does not exist",genericLimitsPopupError:"An unexpected error has occurred. Please try again",limitNotificationFail:"Something went wrong while setting your account limits. Try again later.",companyLimitsInfoText:"According to your active deposit limits and your payment history the maximum amount you can deposit at the moment is:"},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",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",invalidInputMessageLimitMin:"A megadott értéknek nagyobbnak kell lennie, mint {minValue} {currency}.",invalidInputMessageLimitMax:"A megadott értéknek kisebbnek kell lennie, mint {maxValue} {currency}.",invalidInputMessage:"Kérjük, adjon meg egy érvényes számot.",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",uploadDocumentHeader:"Támogató dokumentum feltöltése",uploadButtonText:"Kattintson ide a feltöltéshez",documentUploadTitle:"Dokumentum feltöltése",uploadDocumentContent:'<p>Húzza ide és dobja le <label class="labelText" for="files">Böngészés</label></br>JPG/PEG, PNG vagy PDF fájlok legfeljebb 50 MB-ig</p>',uploadHistory:"Feltöltési előzmények:",noFileUploaded:"Nincs feltöltött fájl",submitButton:"Beküldés",fileExtenssionDeny:"A fájl kiterjesztése nem érvényes",fileSizeExceeded:"A fájl mérete meghaladta a maximális méretet",uploadSuccess:"A fájl sikeresen feltöltve",errorUploadDocument:"Hiba történt a feltöltési funkcióval",filesUploadError:"A feltöltött fájlok vagy meghaladták a megengedett méretet, vagy nem felelnek meg az engedélyezett kiterjesztések típusainak.",limitInDocReview:"Nem frissítheti a korlátot, ha az függőben van.",scheduleNotFoundException:"Az ütemezés nem létezik",genericLimitsPopupError:"Váratlan hiba történt. Kérjük, próbálja meg újra",limitNotificationFail:"Hiba történt a fiókkorlátok beállítása során. Próbálja újra később.",companyLimitsInfoText:"Az aktív befizetési limiteid és a fizetési előzményeid alapján a jelenlegi maximális befizethető összeg:"},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",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",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.
|
|
@@ -32,4 +32,4 @@
|
|
|
32
32
|
S12.767,2,26,2s24,10.767,24,24S39.233,50,26,50z`),e.attr(n,"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
|
|
33
33
|
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
|
|
34
34
|
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
|
|
35
|
-
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(U,B){e.insert(U,t,B),e.append(t,i),e.append(i,o),e.append(i,n),e.append(t,l),e.append(t,r),e.append(t,c),e.append(t,g),e.append(t,u),e.append(t,m),e.append(t,L),e.append(t,_),e.append(t,b),e.append(t,k),e.append(t,T),e.append(t,Z),e.append(t,J),e.append(t,I),e.append(t,N)},d(U){U&&e.detach(t)}}}function ra(a){let t,i=a[34]("popupSuccess")+"",o;return{c(){t=e.element("p"),o=e.text(i)},m(n,l){e.insert(n,t,l),e.append(t,o)},p(n,l){l[1]&8&&i!==(i=n[34]("popupSuccess")+"")&&e.set_data(o,i)},d(n){n&&e.detach(t)}}}function la(a){let t,i=a[34]("docsRequired")+"",o;return{c(){t=e.element("p"),o=e.text(i)},m(n,l){e.insert(n,t,l),e.append(t,o)},p(n,l){l[1]&8&&i!==(i=n[34]("docsRequired")+"")&&e.set_data(o,i)},d(n){n&&e.detach(t)}}}function da(a){let t,i=a[34]("popupError")+"",o;return{c(){t=e.element("p"),o=e.text(i)},m(n,l){e.insert(n,t,l),e.append(t,o)},p(n,l){l[1]&8&&i!==(i=n[34]("popupError")+"")&&e.set_data(o,i)},d(n){n&&e.detach(t)}}}function pa(a){let t,i=a[34]("okButton")+"",o,n,l;return{c(){t=e.element("button"),o=e.text(i),e.attr(t,"class","ConfirmButton "+(a[35]?"":"Mobile"))},m(r,c){e.insert(r,t,c),e.append(t,o),n||(l=e.listen(t,"click",a[50]),n=!0)},p(r,c){c[1]&8&&i!==(i=r[34]("okButton")+"")&&e.set_data(o,i)},d(r){r&&e.detach(t),n=!1,l()}}}function ma(a){let t,i=a[34]("uploadDocumentsButton")+"",o,n,l=a[34]("closeButton")+"",r,c,g;return{c(){t=e.element("button"),o=e.space(),n=e.element("button"),r=e.text(l),e.attr(t,"class","ConfirmButton"),e.attr(n,"class","CloseButton")},m(u,m){e.insert(u,t,m),t.innerHTML=i,e.insert(u,o,m),e.insert(u,n,m),e.append(n,r),c||(g=[e.listen(t,"click",a[51]),e.listen(n,"click",a[50])],c=!0)},p(u,m){m[1]&8&&i!==(i=u[34]("uploadDocumentsButton")+"")&&(t.innerHTML=i),m[1]&8&&l!==(l=u[34]("closeButton")+"")&&e.set_data(r,l)},d(u){u&&(e.detach(t),e.detach(o),e.detach(n)),c=!1,e.run_all(g)}}}function ua(a){let t,i=a[34]("noFileUploaded")+"",o;return{c(){t=e.element("p"),o=e.text(i),e.attr(t,"class","historyItem")},m(n,l){e.insert(n,t,l),e.append(t,o)},p(n,l){l[1]&8&&i!==(i=n[34]("noFileUploaded")+"")&&e.set_data(o,i)},d(n){n&&e.detach(t)}}}function ca(a){let t,i=e.ensure_array_like(Array.from(a[20])),o=[];for(let n=0;n<i.length;n+=1)o[n]=bt(vt(a,i,n));return{c(){for(let n=0;n<o.length;n+=1)o[n].c();t=e.empty()},m(n,l){for(let r=0;r<o.length;r+=1)o[r]&&o[r].m(n,l);e.insert(n,t,l)},p(n,l){if(l[0]&1048576){i=e.ensure_array_like(Array.from(n[20]));let r;for(r=0;r<i.length;r+=1){const c=vt(n,i,r);o[r]?o[r].p(c,l):(o[r]=bt(c),o[r].c(),o[r].m(t.parentNode,t))}for(;r<o.length;r+=1)o[r].d(1);o.length=i.length}},d(n){n&&e.detach(t),e.destroy_each(o,n)}}}function bt(a){let t,i=a[169].name+"",o;return{c(){t=e.element("p"),o=e.text(i),e.attr(t,"class","historyItem")},m(n,l){e.insert(n,t,l),e.append(t,o)},p(n,l){l[0]&1048576&&i!==(i=n[169].name+"")&&e.set_data(o,i)},d(n){n&&e.detach(t)}}}function kt(a){let t,i=a[34]("filesUploadError")+"",o;return{c(){t=e.element("p"),o=e.text(i),e.attr(t,"class","filesError")},m(n,l){e.insert(n,t,l),e.append(t,o)},p(n,l){l[1]&8&&i!==(i=n[34]("filesUploadError")+"")&&e.set_data(o,i)},d(n){n&&e.detach(t)}}}function fa(a){let t,i,o,n,l,r,c=a[34]("setLimit")+"",g,u,m,L,_,b,k,T=a[23]?`${a[34]("amount")}`:`${a[34](`new${a[12]}Limit`)}`,Z,J,I,N,U,B,C,Y,R;const M=a[74].LimitsList,x=e.create_slot(M,a,a[73],Lt),P=x||Da(a);let F=e.ensure_array_like(a[9]),h=[];for(let v=0;v<F.length;v+=1)h[v]=jt(ct(a,F,v));let j=a[3]==="true"&&Et(a),G=a[22]&&Mt(a),V=a[23]&&Ut(a),W=a[31]&&!a[32]&&Bt(a);const ce=a[74].LimitSubmitButton,me=e.create_slot(ce,a,a[73],pt),z=me||Ca(a);return{c(){t=e.element("div"),i=e.element("div"),P&&P.c(),o=e.space(),n=e.element("form");for(let v=0;v<h.length;v+=1)h[v].c();l=e.space(),r=e.element("p"),g=e.text(c),u=e.space(),j&&j.c(),m=e.space(),G&&G.c(),L=e.space(),V&&V.c(),_=e.space(),b=e.element("label"),k=e.element("span"),Z=e.text(T),J=e.space(),I=e.element("input"),N=e.space(),W&&W.c(),U=e.space(),z&&z.c(),e.attr(r,"class","LimitTitle "+(a[35]?"":"Mobile")),e.attr(k,"class","LimitInputText"),e.attr(I,"type","number"),e.attr(I,"pattern","[0-9]*"),I.disabled=a[32],e.attr(b,"class","LimitAmountInputWrapper "+(a[35]?"":"Mobile")),e.attr(n,"class","LimitsInteractionArea "+(a[35]?"":"Mobile")),e.attr(i,"class","LimitsPageContainer"),e.attr(t,"class",B="player-account-gaming-limits-page-2-gm16 "+("LimitTab"+a[5]))},m(v,A){e.insert(v,t,A),e.append(t,i),P&&P.m(i,null),e.append(i,o),e.append(i,n);for(let S=0;S<h.length;S+=1)h[S]&&h[S].m(n,null);e.append(n,l),e.append(n,r),e.append(r,g),e.append(n,u),j&&j.m(n,null),e.append(n,m),G&&G.m(n,null),e.append(n,L),V&&V.m(n,null),e.append(n,_),e.append(n,b),e.append(b,k),e.append(k,Z),e.append(b,J),e.append(b,I),e.set_input_value(I,a[18]),e.append(b,N),W&&W.m(b,null),e.append(n,U),z&&z.m(n,null),C=!0,Y||(R=[e.listen(I,"input",a[84]),e.listen(I,"input",a[41]),e.listen(I,"wheel",a[42]),e.listen(n,"submit",a[43])],Y=!0)},p(v,A){if(x?x.p&&(!C||A[2]&2048)&&e.update_slot_base(x,M,v,v[73],C?e.get_slot_changes(M,v[73],A,Qi):e.get_all_dirty_from_scope(v[73]),Lt):P&&P.p&&(!C||A[0]&2097942|A[1]&8)&&P.p(v,C?A:[-1,-1,-1,-1,-1,-1]),A[0]&512|A[1]&24){F=e.ensure_array_like(v[9]);let S;for(S=0;S<F.length;S+=1){const K=ct(v,F,S);h[S]?h[S].p(K,A):(h[S]=jt(K),h[S].c(),h[S].m(n,l))}for(;S<h.length;S+=1)h[S].d(1);h.length=F.length}(!C||A[1]&8)&&c!==(c=v[34]("setLimit")+"")&&e.set_data(g,c),v[3]==="true"?j?j.p(v,A):(j=Et(v),j.c(),j.m(n,m)):j&&(j.d(1),j=null),v[22]?G?G.p(v,A):(G=Mt(v),G.c(),G.m(n,L)):G&&(G.d(1),G=null),v[23]?V?V.p(v,A):(V=Ut(v),V.c(),V.m(n,_)):V&&(V.d(1),V=null),(!C||A[0]&8392704|A[1]&8)&&T!==(T=v[23]?`${v[34]("amount")}`:`${v[34](`new${v[12]}Limit`)}`)&&e.set_data(Z,T),(!C||A[1]&2)&&(I.disabled=v[32]),A[0]&262144&&e.to_number(I.value)!==v[18]&&e.set_input_value(I,v[18]),v[31]&&!v[32]?W?W.p(v,A):(W=Bt(v),W.c(),W.m(b,null)):W&&(W.d(1),W=null),me?me.p&&(!C||A[2]&2048)&&e.update_slot_base(me,ce,v,v[73],C?e.get_slot_changes(ce,v[73],A,Xi):e.get_all_dirty_from_scope(v[73]),pt):z&&z.p&&(!C||A[1]&13)&&z.p(v,C?A:[-1,-1,-1,-1,-1,-1]),(!C||A[0]&32&&B!==(B="player-account-gaming-limits-page-2-gm16 "+("LimitTab"+v[5])))&&e.attr(t,"class",B)},i(v){C||(e.transition_in(P,v),e.transition_in(z,v),C=!0)},o(v){e.transition_out(P,v),e.transition_out(z,v),C=!1},d(v){v&&e.detach(t),P&&P.d(v),e.destroy_each(h,v),j&&j.d(),G&&G.d(),V&&V.d(),W&&W.d(),z&&z.d(v),Y=!1,e.run_all(R)}}}function ga(a){let t;return{c(){t=e.element("p"),t.textContent="500 Server error"},m(i,o){e.insert(i,t,o)},p:e.noop,i:e.noop,o:e.noop,d(i){i&&e.detach(t)}}}function La(a){let t;const i=a[74].LimitSkeleton,o=e.create_slot(i,a,a[73],ht),n=o||ja(a);return{c(){n&&n.c()},m(l,r){n&&n.m(l,r),t=!0},p(l,r){o&&o.p&&(!t||r[2]&2048)&&e.update_slot_base(o,i,l,l[73],t?e.get_slot_changes(i,l[73],r,ea):e.get_all_dirty_from_scope(l[73]),ht)},i(l){t||(e.transition_in(n,l),t=!0)},o(l){e.transition_out(n,l),t=!1},d(l){n&&n.d(l)}}}function wt(a){let t,i=a[34]("activeLimitsInfoText")+"",o;return{c(){t=e.element("p"),o=e.text(i),e.attr(t,"class","LimitsInfoText "+(a[35]?"":"Mobile"))},m(n,l){e.insert(n,t,l),e.append(t,o)},p(n,l){l[1]&8&&i!==(i=n[34]("activeLimitsInfoText")+"")&&e.set_data(o,i)},d(n){n&&e.detach(t)}}}function ha(a){let t,i,o,n=a[34]("noLimitText")+"",l;return{c(){t=e.element("div"),i=e.element("div"),o=e.element("div"),l=e.text(n),e.attr(o,"class","LimitDetailsTextWrapper "+(a[35]?"":"Mobile")),e.attr(i,"class","LimitDetailsWrapper"),e.attr(t,"class","LimitDetails")},m(r,c){e.insert(r,t,c),e.append(t,i),e.append(i,o),e.append(o,l)},p(r,c){c[1]&8&&n!==(n=r[34]("noLimitText")+"")&&e.set_data(l,n)},d(r){r&&e.detach(t)}}}function va(a){let t,i,o,n=a[34]("lugasPrivacy")+"",l;return{c(){t=e.element("div"),i=e.element("div"),o=e.element("div"),l=e.text(n),e.attr(o,"class","LimitDetailsTextWrapper "+(a[35]?"":"Mobile")),e.attr(i,"class","LimitDetailsWrapper"),e.attr(t,"class","LimitDetails")},m(r,c){e.insert(r,t,c),e.append(t,i),e.append(i,o),e.append(o,l)},p(r,c){c[1]&8&&n!==(n=r[34]("lugasPrivacy")+"")&&e.set_data(l,n)},d(r){r&&e.detach(t)}}}function ya(a){let t,i=e.ensure_array_like(a[160].currentLimits),o=[];for(let n=0;n<i.length;n+=1)o[n]=Dt(gt(a,i,n));return{c(){for(let n=0;n<o.length;n+=1)o[n].c();t=e.empty()},m(n,l){for(let r=0;r<o.length;r+=1)o[r]&&o[r].m(n,l);e.insert(n,t,l)},p(n,l){if(l[0]&2097942|l[1]&377624){i=e.ensure_array_like(n[160].currentLimits);let r;for(r=0;r<i.length;r+=1){const c=gt(n,i,r);o[r]?o[r].p(c,l):(o[r]=Dt(c),o[r].c(),o[r].m(t.parentNode,t))}for(;r<o.length;r+=1)o[r].d(1);o.length=i.length}},d(n){n&&e.detach(t),e.destroy_each(o,n)}}}function ba(a){let t,i,o,n=a[34]("lugasPrivacy")+"",l;return{c(){t=e.element("div"),i=e.element("div"),o=e.element("div"),l=e.text(n),e.attr(o,"class","LimitDetailsTextWrapper "+(a[35]?"":"Mobile")),e.attr(i,"class","LimitDetailsWrapper"),e.attr(t,"class","LimitDetails")},m(r,c){e.insert(r,t,c),e.append(t,i),e.append(i,o),e.append(o,l)},p(r,c){c[1]&8&&n!==(n=r[34]("lugasPrivacy")+"")&&e.set_data(l,n)},d(r){r&&e.detach(t)}}}function ka(a){let t,i=`${a[49](a[166])}`,o;return{c(){t=e.element("span"),o=e.text(i)},m(n,l){e.insert(n,t,l),e.append(t,o)},p(n,l){l[0]&512&&i!==(i=`${n[49](n[166])}`)&&e.set_data(o,i)},d(n){n&&e.detach(t)}}}function wa(a){let t,i=`${a[49](a[166],!0)}`,o;return{c(){t=e.element("span"),o=e.text(i)},m(n,l){e.insert(n,t,l),e.append(t,o)},p(n,l){l[0]&512&&i!==(i=`${n[49](n[166],!0)}`)&&e.set_data(o,i)},d(n){n&&e.detach(t)}}}function _t(a){let t,i,o=`${a[49](a[166],!1,!0)}`,n,l,r=`${a[166].period!=="None"||a[166].value!=="cumulativeSession"?" ":a[34]("per")} ${a[34](`${a[166].period}`)} ${a[34]("updateAfterDocApproval")}`,c;return{c(){t=e.element("div"),i=e.element("span"),n=e.text(o),l=e.space(),c=e.text(r),e.attr(t,"class","PendingLimit")},m(g,u){e.insert(g,t,u),e.append(t,i),e.append(i,n),e.append(t,l),e.append(t,c)},p(g,u){u[0]&512&&o!==(o=`${g[49](g[166],!1,!0)}`)&&e.set_data(n,o),u[0]&512|u[1]&8&&r!==(r=`${g[166].period!=="None"||g[166].value!=="cumulativeSession"?" ":g[34]("per")} ${g[34](`${g[166].period}`)} ${g[34]("updateAfterDocApproval")}`)&&e.set_data(c,r)},d(g){g&&e.detach(t)}}}function xt(a){let t,i=a[34]("companyLimitsInfoText")+"",o,n,l,r=a[166].currency+"",c,g=a[40](a[166].limitBalances[0])+"",u;return{c(){t=e.element("div"),o=e.text(i),n=e.space(),l=e.element("span"),c=e.text(r),u=e.text(g),e.attr(t,"class","CompanyLimitsInfoText")},m(m,L){e.insert(m,t,L),e.append(t,o),e.append(t,n),e.append(t,l),e.append(l,c),e.append(l,u)},p(m,L){L[1]&8&&i!==(i=m[34]("companyLimitsInfoText")+"")&&e.set_data(o,i),L[0]&512&&r!==(r=m[166].currency+"")&&e.set_data(c,r),L[0]&512&&g!==(g=m[40](m[166].limitBalances[0])+"")&&e.set_data(u,g)},d(m){m&&e.detach(t)}}}function _a(a){let t,i,o=`${a[49](a[166],!0)}`,n,l;function r(u,m){return u[166].isCoolOffCompleted?Aa:Pa}let c=r(a),g=c(a);return{c(){t=e.element("div"),i=e.element("span"),n=e.text(o),l=e.space(),g.c(),e.attr(t,"class","PendingLimit")},m(u,m){e.insert(u,t,m),e.append(t,i),e.append(i,n),e.append(t,l),g.m(t,null)},p(u,m){m[0]&512&&o!==(o=`${u[49](u[166],!0)}`)&&e.set_data(n,o),c===(c=r(u))&&g?g.p(u,m):(g.d(1),g=c(u),g&&(g.c(),g.m(t,null)))},d(u){u&&e.detach(t),g.d()}}}function xa(a){let t,i=`${a[34]("removedLimitText")} ${a[166].expiryDate}`,o;return{c(){t=e.element("div"),o=e.text(i),e.attr(t,"class","PendingLimit")},m(n,l){e.insert(n,t,l),e.append(t,o)},p(n,l){l[0]&512|l[1]&8&&i!==(i=`${n[34]("removedLimitText")} ${n[166].expiryDate}`)&&e.set_data(o,i)},d(n){n&&e.detach(t)}}}function za(a){let t,i=`${a[34]("removeAfterConfirm")}`,o;return{c(){t=e.element("div"),o=e.text(i),e.attr(t,"class","PendingLimit")},m(n,l){e.insert(n,t,l),e.append(t,o)},p(n,l){l[1]&8&&i!==(i=`${n[34]("removeAfterConfirm")}`)&&e.set_data(o,i)},d(n){n&&e.detach(t)}}}function Sa(a){let t,i=`${a[34]("acknowledgedLimit")}`,o;return{c(){t=e.element("div"),o=e.text(i),e.attr(t,"class","PendingLimit")},m(n,l){e.insert(n,t,l),e.append(t,o)},p(n,l){l[1]&8&&i!==(i=`${n[34]("acknowledgedLimit")}`)&&e.set_data(o,i)},d(n){n&&e.detach(t)}}}function Pa(a){let t=`${a[166].period!=="None"||a[166].value!=="cumulativeSession"?" ":a[34]("per")} ${a[34](`${a[166].period}`)} ${a[34]("updateText")} ${a[166].expiryDate}`,i;return{c(){i=e.text(t)},m(o,n){e.insert(o,i,n)},p(o,n){n[0]&512|n[1]&8&&t!==(t=`${o[166].period!=="None"||o[166].value!=="cumulativeSession"?" ":o[34]("per")} ${o[34](`${o[166].period}`)} ${o[34]("updateText")} ${o[166].expiryDate}`)&&e.set_data(i,t)},d(o){o&&e.detach(i)}}}function Aa(a){let t=`${a[166].period!=="None"||a[166].value!=="cumulativeSession"?" ":a[34]("per")} ${a[34](`${a[166].period}`)} ${a[34]("updateAfterConfirm")}`,i;return{c(){i=e.text(t)},m(o,n){e.insert(o,i,n)},p(o,n){n[0]&512|n[1]&8&&t!==(t=`${o[166].period!=="None"||o[166].value!=="cumulativeSession"?" ":o[34]("per")} ${o[34](`${o[166].period}`)} ${o[34]("updateAfterConfirm")}`)&&e.set_data(i,t)},d(o){o&&e.detach(i)}}}function zt(a){let t,i,o=a[21][a[166].scheduleId].timer+"",n,l,r,c;return{c(){t=e.element("div"),i=e.element("button"),n=e.text(o),e.attr(i,"class",l="ReloadLimitButton "+(a[35]?"":"Mobile")+" "+(a[21][a[166].scheduleId].timerStopped?"":"disabled")),e.attr(t,"class","ContainerLimitActions "+(a[35]?"":"Mobile"))},m(g,u){e.insert(g,t,u),e.append(t,i),e.append(i,n),r||(c=e.listen(i,"click",a[76]),r=!0)},p(g,u){u[0]&2097664&&o!==(o=g[21][g[166].scheduleId].timer+"")&&e.set_data(n,o),u[0]&2097664&&l!==(l="ReloadLimitButton "+(g[35]?"":"Mobile")+" "+(g[21][g[166].scheduleId].timerStopped?"":"disabled"))&&e.attr(i,"class",l)},d(g){g&&e.detach(t),r=!1,c()}}}function St(a){let t,i,o=a[34]("removeLimit")+"",n,l,r;function c(){return a[77](a[166])}return{c(){t=e.element("div"),i=e.element("button"),n=e.text(o),e.attr(i,"class","RemoveLimitButton "+(a[35]?"":"Mobile")),e.attr(t,"class","ContainerLimitActions "+(a[35]?"":"Mobile"))},m(g,u){e.insert(g,t,u),e.append(t,i),e.append(i,n),l||(r=e.listen(i,"click",c),l=!0)},p(g,u){a=g,u[1]&8&&o!==(o=a[34]("removeLimit")+"")&&e.set_data(n,o)},d(g){g&&e.detach(t),l=!1,r()}}}function Pt(a){let t,i,o=a[34]("confirmUpdateLimit")+"",n,l,r,c=a[34]("cancelUpdateLimit")+"",g,u,m;function L(){return a[78](a[166])}function _(){return a[79](a[166])}return{c(){t=e.element("div"),i=e.element("button"),n=e.text(o),l=e.space(),r=e.element("button"),g=e.text(c),e.attr(i,"class","ConfirmLimitButton "+(a[35]?"":"Mobile")),e.attr(r,"class","CancelLimitButton "+(a[35]?"":"Mobile")),e.attr(t,"class","ContainerLimitActions "+(a[35]?"":"Mobile"))},m(b,k){e.insert(b,t,k),e.append(t,i),e.append(i,n),e.append(t,l),e.append(t,r),e.append(r,g),u||(m=[e.listen(i,"click",L),e.listen(r,"click",_)],u=!0)},p(b,k){a=b,k[1]&8&&o!==(o=a[34]("confirmUpdateLimit")+"")&&e.set_data(n,o),k[1]&8&&c!==(c=a[34]("cancelUpdateLimit")+"")&&e.set_data(g,c)},d(b){b&&e.detach(t),u=!1,e.run_all(m)}}}function At(a){let t,i=a[162],o=a[168];const n=()=>a[80](t,i,o),l=()=>a[80](null,i,o);return{c(){t=e.element("div"),t.innerHTML="",e.attr(t,"class","ProgressBarContainer")},m(r,c){e.insert(r,t,c),n()},p(r,c){a=r,(i!==a[162]||o!==a[168])&&(l(),i=a[162],o=a[168],n())},d(r){r&&e.detach(t),l()}}}function Dt(a){let t,i,o,n,l,r=`${a[166].period!=="None"||a[166].value!=="cumulativeSession"?" ":a[34]("per")} ${a[34](`${a[166].period}`)}`,c,g,u,m,L,_,b=!a[166].isModified&&a[4].indexOf(a[160].value)>-1&&!a[166].reviewPending.id,k,T,Z;function J(h,j){return h[166].acknowledgedLimit?wa:ka}let I=J(a),N=I(a),U=a[166].reviewPending&&a[166].reviewPending.id&&_t(a),B=a[1]==="true"&&a[166].limitType==="deposit"&&a[166].limitBalances&&a[166].limitBalances.length>0&&xt(a);function C(h,j){if(h[166].acknowledgedLimit)return Sa;if(h[166].isModified&&h[166].updateAmount==0&&h[166].isCoolOffCompleted)return za;if(h[166].isModified&&h[166].updateAmount==0&&!h[166].isCoolOffCompleted)return xa;if(h[166].isModified)return _a}let Y=C(a),R=Y&&Y(a),M=a[166].acknowledgedLimit&&!a[166].reviewPending.id&&zt(a),x=b&&St(a),P=a[166].isCoolOffCompleted&!a[166].acknowledgedLimit&&!a[166].reviewPending.id&&Pt(a),F=a[2]==="true"&&a[8][a[162]]&&a[166].limitType==="netdeposit"&&At(a);return{c(){t=e.element("div"),i=e.element("div"),o=e.element("div"),n=e.element("div"),N.c(),l=e.space(),c=e.text(r),g=e.space(),U&&U.c(),u=e.space(),B&&B.c(),m=e.space(),R&&R.c(),L=e.space(),M&&M.c(),_=e.space(),x&&x.c(),k=e.space(),P&&P.c(),T=e.space(),F&&F.c(),Z=e.space(),e.attr(n,"class","CurrentLimit"),e.attr(o,"class","CurrentLimitContainer"),e.attr(i,"class","LimitDetailsTextWrapper "+(a[35]?"":"Mobile")),e.attr(t,"class","LimitDetails")},m(h,j){e.insert(h,t,j),e.append(t,i),e.append(i,o),e.append(o,n),N.m(n,null),e.append(n,l),e.append(n,c),e.append(o,g),U&&U.m(o,null),e.append(o,u),B&&B.m(o,null),e.append(o,m),R&&R.m(o,null),e.append(i,L),M&&M.m(i,null),e.append(i,_),x&&x.m(i,null),e.append(i,k),P&&P.m(i,null),e.append(i,T),F&&F.m(i,null),e.append(t,Z)},p(h,j){I===(I=J(h))&&N?N.p(h,j):(N.d(1),N=I(h),N&&(N.c(),N.m(n,l))),j[0]&512|j[1]&8&&r!==(r=`${h[166].period!=="None"||h[166].value!=="cumulativeSession"?" ":h[34]("per")} ${h[34](`${h[166].period}`)}`)&&e.set_data(c,r),h[166].reviewPending&&h[166].reviewPending.id?U?U.p(h,j):(U=_t(h),U.c(),U.m(o,u)):U&&(U.d(1),U=null),h[1]==="true"&&h[166].limitType==="deposit"&&h[166].limitBalances&&h[166].limitBalances.length>0?B?B.p(h,j):(B=xt(h),B.c(),B.m(o,m)):B&&(B.d(1),B=null),Y===(Y=C(h))&&R?R.p(h,j):(R&&R.d(1),R=Y&&Y(h),R&&(R.c(),R.m(o,null))),h[166].acknowledgedLimit&&!h[166].reviewPending.id?M?M.p(h,j):(M=zt(h),M.c(),M.m(i,_)):M&&(M.d(1),M=null),j[0]&528&&(b=!h[166].isModified&&h[4].indexOf(h[160].value)>-1&&!h[166].reviewPending.id),b?x?x.p(h,j):(x=St(h),x.c(),x.m(i,k)):x&&(x.d(1),x=null),h[166].isCoolOffCompleted&!h[166].acknowledgedLimit&&!h[166].reviewPending.id?P?P.p(h,j):(P=Pt(h),P.c(),P.m(i,T)):P&&(P.d(1),P=null),h[2]==="true"&&h[8][h[162]]&&h[166].limitType==="netdeposit"?F?F.p(h,j):(F=At(h),F.c(),F.m(i,null)):F&&(F.d(1),F=null)},d(h){h&&e.detach(t),N.d(),U&&U.d(),B&&B.d(),R&&R.d(),M&&M.d(),x&&x.d(),P&&P.d(),F&&F.d()}}}function Ct(a){let t,i=a[48](a[160])+"",o,n,l=a[160].value==="netdeposit"&&a[34]("activeLimitsInfoText")!=="activeLimitsInfoText"&&a[34]("activeLimitsInfoText").trim().length,r,c,g,u,m=l&&wt(a);function L(k,T){var Z;return k[160].value==="lugas"?ba:((Z=k[160].currentLimits)==null?void 0:Z.length)>0?ya:k[160].value==="lugas"?va:ha}let _=L(a),b=_(a);return{c(){t=e.element("p"),o=e.text(i),n=e.space(),m&&m.c(),r=e.space(),c=e.element("div"),b.c(),g=e.space(),e.attr(t,"class","LimitTitle "+(a[35]?"":"Mobile")),e.attr(c,"class",u="LimitWrapper "+a[160].value+" "+(a[2]==="true"&&a[160].value==="netdeposit"?"ActiveProgressBar":"")+" "+(a[35]?"":"Mobile"))},m(k,T){e.insert(k,t,T),e.append(t,o),e.insert(k,n,T),m&&m.m(k,T),e.insert(k,r,T),e.insert(k,c,T),b.m(c,null),e.append(c,g)},p(k,T){T[0]&512&&i!==(i=k[48](k[160])+"")&&e.set_data(o,i),T[0]&512|T[1]&8&&(l=k[160].value==="netdeposit"&&k[34]("activeLimitsInfoText")!=="activeLimitsInfoText"&&k[34]("activeLimitsInfoText").trim().length),l?m?m.p(k,T):(m=wt(k),m.c(),m.m(r.parentNode,r)):m&&(m.d(1),m=null),_===(_=L(k))&&b?b.p(k,T):(b.d(1),b=_(k),b&&(b.c(),b.m(c,g))),T[0]&516&&u!==(u="LimitWrapper "+k[160].value+" "+(k[2]==="true"&&k[160].value==="netdeposit"?"ActiveProgressBar":"")+" "+(k[35]?"":"Mobile"))&&e.attr(c,"class",u)},d(k){k&&(e.detach(t),e.detach(n),e.detach(r),e.detach(c)),m&&m.d(k),b.d()}}}function Da(a){let t,i=e.ensure_array_like(a[9]),o=[];for(let n=0;n<i.length;n+=1)o[n]=Ct(ft(a,i,n));return{c(){t=e.element("div");for(let n=0;n<o.length;n+=1)o[n].c();e.attr(t,"class","LimitsList")},m(n,l){e.insert(n,t,l);for(let r=0;r<o.length;r+=1)o[r]&&o[r].m(t,null)},p(n,l){if(l[0]&2097942|l[1]&508696){i=e.ensure_array_like(n[9]);let r;for(r=0;r<i.length;r+=1){const c=ft(n,i,r);o[r]?o[r].p(c,l):(o[r]=Ct(c),o[r].c(),o[r].m(t,null))}for(;r<o.length;r+=1)o[r].d(1);o.length=i.length}},d(n){n&&e.detach(t),e.destroy_each(o,n)}}}function Tt(a){let t,i=a[34]("newLimitInfoText")+"",o;return{c(){t=e.element("p"),o=e.text(i),e.attr(t,"class","LimitsInfoText "+(a[35]?"":"Mobile"))},m(n,l){e.insert(n,t,l),e.append(t,o)},p(n,l){l[1]&8&&i!==(i=n[34]("newLimitInfoText")+"")&&e.set_data(o,i)},d(n){n&&e.detach(t)}}}function jt(a){let t=a[160].value==="netdeposit"&&a[34]("newLimitInfoText")!=="newLimitInfoText"&&a[34]("newLimitInfoText").trim().length,i,o=t&&Tt(a);return{c(){o&&o.c(),i=e.empty()},m(n,l){o&&o.m(n,l),e.insert(n,i,l)},p(n,l){l[0]&512|l[1]&8&&(t=n[160].value==="netdeposit"&&n[34]("newLimitInfoText")!=="newLimitInfoText"&&n[34]("newLimitInfoText").trim().length),t?o?o.p(n,l):(o=Tt(n),o.c(),o.m(i.parentNode,i)):o&&(o.d(1),o=null)},d(n){n&&e.detach(i),o&&o.d(n)}}}function Et(a){let t,i,o=a[34]("complianceText")+"",n;return{c(){t=e.element("div"),i=e.element("p"),n=e.text(o),e.attr(i,"class","LimitComplianceText"),e.attr(t,"class","LimitCompliance")},m(l,r){e.insert(l,t,r),e.append(t,i),e.append(i,n)},p(l,r){r[1]&8&&o!==(o=l[34]("complianceText")+"")&&e.set_data(n,o)},d(l){l&&e.detach(t)}}}function Mt(a){let t,i,o=a[34]("limitType")+"",n,l,r,c,g,u=e.ensure_array_like(a[9]),m=[];for(let L=0;L<u.length;L+=1)m[L]=It(ut(a,u,L));return{c(){t=e.element("label"),i=e.element("span"),n=e.text(o),l=e.space(),r=e.element("select");for(let L=0;L<m.length;L+=1)m[L].c();e.attr(i,"class","LimitSelectText"),e.attr(r,"name",""),e.attr(r,"id",""),a[17]===void 0&&e.add_render_callback(()=>a[81].call(r)),e.attr(t,"class","LimitTypeDropdownWrapper "+(a[35]?"":"Mobile"))},m(L,_){e.insert(L,t,_),e.append(t,i),e.append(i,n),e.append(t,l),e.append(t,r);for(let b=0;b<m.length;b+=1)m[b]&&m[b].m(r,null);e.select_option(r,a[17],!0),c||(g=[e.listen(r,"change",a[81]),e.listen(r,"change",a[82])],c=!0)},p(L,_){if(_[1]&8&&o!==(o=L[34]("limitType")+"")&&e.set_data(n,o),_[0]&512|_[1]&131072){u=e.ensure_array_like(L[9]);let b;for(b=0;b<u.length;b+=1){const k=ut(L,u,b);m[b]?m[b].p(k,_):(m[b]=It(k),m[b].c(),m[b].m(r,null))}for(;b<m.length;b+=1)m[b].d(1);m.length=u.length}_[0]&131072&&e.select_option(r,L[17])},d(L){L&&e.detach(t),e.destroy_each(m,L),c=!1,e.run_all(g)}}}function It(a){let t,i=a[48](a[160])+"",o;return{c(){t=e.element("option"),o=e.text(i),t.__value=a[162],e.set_input_value(t,t.__value)},m(n,l){e.insert(n,t,l),e.append(t,o)},p(n,l){l[0]&512&&i!==(i=n[48](n[160])+"")&&e.set_data(o,i)},d(n){n&&e.detach(t)}}}function Ut(a){let t,i,o=a[34]("period")+"",n,l,r,c,g,u=e.ensure_array_like(a[10][a[11]].periods),m=[];for(let L=0;L<u.length;L+=1)m[L]=Nt(mt(a,u,L));return{c(){t=e.element("label"),i=e.element("span"),n=e.text(o),l=e.space(),r=e.element("select");for(let L=0;L<m.length;L+=1)m[L].c();e.attr(i,"class","PeriodSelectText"),e.attr(r,"name",""),e.attr(r,"id",""),r.disabled=a[32],a[12]===void 0&&e.add_render_callback(()=>a[83].call(r)),e.attr(t,"class","LimitPeriodDropdownWrapper "+(a[35]?"":"Mobile"))},m(L,_){e.insert(L,t,_),e.append(t,i),e.append(i,n),e.append(t,l),e.append(t,r);for(let b=0;b<m.length;b+=1)m[b]&&m[b].m(r,null);e.select_option(r,a[12],!0),c||(g=[e.listen(r,"change",a[83]),e.listen(r,"change",a[36])],c=!0)},p(L,_){if(_[1]&8&&o!==(o=L[34]("period")+"")&&e.set_data(n,o),_[0]&3072|_[1]&8){u=e.ensure_array_like(L[10][L[11]].periods);let b;for(b=0;b<u.length;b+=1){const k=mt(L,u,b);m[b]?m[b].p(k,_):(m[b]=Nt(k),m[b].c(),m[b].m(r,null))}for(;b<m.length;b+=1)m[b].d(1);m.length=u.length}_[1]&2&&(r.disabled=L[32]),_[0]&7168&&e.select_option(r,L[12])},d(L){L&&e.detach(t),e.destroy_each(m,L),c=!1,e.run_all(g)}}}function Nt(a){let t,i=a[34](a[157])+"",o,n;return{c(){t=e.element("option"),o=e.text(i),t.__value=n=a[157],e.set_input_value(t,t.__value),t.selected=!0},m(l,r){e.insert(l,t,r),e.append(t,o)},p(l,r){r[0]&3072|r[1]&8&&i!==(i=l[34](l[157])+"")&&e.set_data(o,i),r[0]&3072&&n!==(n=l[157])&&(t.__value=n,e.set_input_value(t,t.__value))},d(l){l&&e.detach(t)}}}function Bt(a){let t,i=a[18]===null?`${a[34]("invalidInputMessage")}`:a[18]<a[13]?`${a[34]("invalidInputMessageLimitMin",{values:{minValue:a[13],maxValue:a[14],currency:a[0]}})}`:`${a[34]("invalidInputMessageLimitMax",{values:{minValue:a[13],maxValue:a[14],currency:a[0]}})}`,o;return{c(){t=e.element("p"),o=e.text(i),e.attr(t,"class","InvalidInput")},m(n,l){e.insert(n,t,l),e.append(t,o)},p(n,l){l[0]&286721|l[1]&8&&i!==(i=n[18]===null?`${n[34]("invalidInputMessage")}`:n[18]<n[13]?`${n[34]("invalidInputMessageLimitMin",{values:{minValue:n[13],maxValue:n[14],currency:n[0]}})}`:`${n[34]("invalidInputMessageLimitMax",{values:{minValue:n[13],maxValue:n[14],currency:n[0]}})}`)&&e.set_data(o,i)},d(n){n&&e.detach(t)}}}function Ca(a){let t,i=a[34]("setLimit")+"",o,n;return{c(){t=e.element("button"),o=e.text(i),e.attr(t,"class","LimitSubmitButton "+(a[35]?"":"Mobile")),e.attr(t,"type","submit"),t.disabled=n=a[31]||a[33]},m(l,r){e.insert(l,t,r),e.append(t,o)},p(l,r){r[1]&8&&i!==(i=l[34]("setLimit")+"")&&e.set_data(o,i),r[1]&5&&n!==(n=l[31]||l[33])&&(t.disabled=n)},d(l){l&&e.detach(t)}}}function Ta(a){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,o){e.insert(i,t,o)},p:e.noop,d(i){i&&e.detach(t)}}}function ja(a){let t,i,o,n,l,r,c=e.ensure_array_like(Array(3)),g=[];for(let u=0;u<c.length;u+=1)g[u]=Ta($i(a,c,u));return{c(){t=e.element("div"),i=e.element("div"),i.innerHTML='<ui-skeleton width="auto" height="25px" structure="text" margin-right="auto"></ui-skeleton>',o=e.space(),n=e.element("div");for(let u=0;u<g.length;u+=1)g[u].c();l=e.space(),r=e.element("div"),r.innerHTML='<div class="skletonHeader"><ui-skeleton width="auto" height="25px" structure="title" margin-right="auto"></ui-skeleton></div> <div class="skletonSubText"><ui-skeleton width="auto" height="15px" structure="text" margin-right="auto"></ui-skeleton></div> <div class="skeletonPeriod"><ui-skeleton width="auto" height="40px" structure="rectangle" margin-right="auto"></ui-skeleton></div> <div class="skletonSubText"><ui-skeleton width="auto" height="15px" structure="text" margin-right="auto"></ui-skeleton></div> <div class="skeletonInputAmount"><ui-skeleton width="auto" height="40px" structure="rectangle" margin-right="auto"></ui-skeleton></div> <div class="skeletonButton"><ui-skeleton width="auto" height="50px" structure="rectangle" margin-right="auto"></ui-skeleton></div>',e.attr(i,"class","skeletonLimitText"),e.attr(n,"class","skeletonLimitWrapper"),e.attr(r,"class","skeletonInputWrapper"),e.attr(t,"class","skeletonLimitContainer")},m(u,m){e.insert(u,t,m),e.append(t,i),e.append(t,o),e.append(t,n);for(let L=0;L<g.length;L+=1)g[L]&&g[L].m(n,null);e.append(t,l),e.append(t,r)},p:e.noop,d(u){u&&e.detach(t),e.destroy_each(g,u)}}}function Ea(a){let t,i,o,n,l,r=a[27]&&a[6]==="false"&&yt(a);const c=[La,ga,fa],g=[];function u(m,L){return m[24]?0:m[25]?1:m[24]?-1:2}return~(o=u(a))&&(n=g[o]=c[o](a)),{c(){t=e.element("div"),r&&r.c(),i=e.space(),n&&n.c()},m(m,L){e.insert(m,t,L),r&&r.m(t,null),e.append(t,i),~o&&g[o].m(t,null),a[85](t),l=!0},p(m,L){m[27]&&m[6]==="false"?r?r.p(m,L):(r=yt(m),r.c(),r.m(t,i)):r&&(r.d(1),r=null);let _=o;o=u(m),o===_?~o&&g[o].p(m,L):(n&&(e.group_outros(),e.transition_out(g[_],1,1,()=>{g[_]=null}),e.check_outros()),~o?(n=g[o],n?n.p(m,L):(n=g[o]=c[o](m),n.c()),e.transition_in(n,1),n.m(t,null)):n=null)},i(m){l||(e.transition_in(n),l=!0)},o(m){e.transition_out(n),l=!1},d(m){m&&e.detach(t),r&&r.d(),~o&&g[o].d(),a[85](null)}}}function Ma(a,t,i){let o;e.component_subscribe(a,e.$format,s=>i(34,o=s));let{$$slots:n={},$$scope:l}=t,{lang:r="en"}=t,{currency:c=""}=t,{limits:g=""}=t,{session:u=""}=t,{userid:m=""}=t,{endpoint:L=""}=t,{apiversion:_=""}=t,{companylimits:b="false"}=t,{customcurrencysymbols:k=""}=t,{netdepositprogress:T="false"}=t,{enablecompliancetext:Z=""}=t,{deletelimit:J=""}=t,{amountsconfig:I=""}=t,{periodsconfig:N=""}=t,{defaultperiod:U=""}=t,{limittabindex:B=""}=t,{limitformat:C=""}=t,{allowedextenssion:Y=".jpg,.jpeg,.png,.pdf,.webp,image/png"}=t,{filesizeallow:R="12934000"}=t,{clientstyling:M=""}=t,{clientstylingurl:x=""}=t,{translationurl:P=""}=t,{mbsource:F}=t,{timezone:h="GMT"}=t,{isLimitNotification:j="false"}=t,{cooloffstrictmode:G="false"}=t,V,W=[],ce=window.navigator.userAgent,me=!e.isMobile(ce),z="",v="",A="",S="",K="",De="",ue="",te="",_e="",ye=0,We,q,xe,E=[],le={},de={},be={},Wt={},he,ke={EUR:"€",RON:" lei",USD:"$"},Ce={remove:{}},ee={},Oe=!1,Te=!1,X=!0,ne=!1,je=!1,we=!1,ie=!1,fe=!1,ze=!1,ve=!1,Fe=!1,Ee=!1;const Ve={wager:"wagering",loss:"loss",deposit:"deposit",netdeposit:"netdeposit",cumulativeSession:"cumulativeSession",sessionLimit:"session"},qe={unableToUpdatePendingRequest:["SYS_1037","SYS_1142","SYS_1140"],internalServerError:["F0004","F0006"]},Ot=()=>{fetch(P).then(d=>d.json()).then(d=>{Object.keys(d).forEach(p=>{dt(p,d[p])})}).catch(d=>{console.log(d)})};Object.keys(Le).forEach(s=>{dt(s,Le[s])});const Me=s=>`dataLayer-${s}`,Q=(s,d)=>{typeof gtag=="function"&>ag({event:s,limit_category:Le[r][Me(A.toLowerCase())]||A,limit_type:Le[r][Me(z.toLowerCase())]||z,limit_period:Le[r][Me(v.toLowerCase())]||v,limit_amount:q||d})},Ft=()=>{var f;const s=I.split(",").map(y=>y.split(":")),d=N.split(",").map(y=>y.split(":"));for(let[y,w]of s.entries())if(w[0]!==d[y][0])throw new Error(`Limit config mismatch: "${w[0]}" does not match "${d[y][0]}"`);const p=s.reduce((y,w,D)=>{const O=w[0].slice(w[0].indexOf("(")+1,w[0].indexOf(")")),se=w[0].slice(0,w[0].indexOf("(")),re=w[1],Ae=d[D][1].trim().replace("D","Daily").replace("W","Weekly").replace("M","Monthly").replace("N","None").split("-"),Be={value:O,product:se,minMax:re,periods:Ae,callValue:H[O].callValue,callValue16:H[O].callValue16,title:H[O].title};return y.push(Be),y},[]);for(let y=0;y<p.length;y++)i(9,E[y].product=p[y].product,E),i(9,E[y].min=parseInt(p[y].minMax.split("-")[0],10),E),i(9,E[y].max=parseInt(p[y].minMax.split("-")[1],10),E),i(10,H[p[y].value].periods=p[y].periods,H);De=(f=E[0])==null?void 0:f.value,E.forEach(y=>{de[y.value]={min:y.min,max:y.max},Wt[y.value]=y.product}),de&&(de[De]?(i(13,S=de[De].min),i(14,K=de[De].max)):(i(13,S=1),i(14,K=9999999)))},Vt=()=>{const s=/\(([^)]+)\)/g;return[...I.matchAll(s)].flat().filter(p=>!p.includes("("))},qt=()=>{Vt().forEach(p=>{H[p]?E.push(ge({},H[p])):console.error(`Unknown limit: ${p}`)}),Ft(),i(11,z=E[0].value);const d=H[z].periods;i(12,v=U&&d.find(p=>p===U)||d[0]),A=E[0].product,i(22,Oe=E.length>1),i(23,Te=H[z].periods.length>1)},He=(s,d)=>{var f,y,w;const p=(y=(f=s==null?void 0:s[0])==null?void 0:f.currentLimits)==null?void 0:y.find(D=>D.period===d);return(w=p==null?void 0:p.isCoolOffCompleted)!=null?w:!0},Ht=()=>{G==="true"&&i(33,Ee=!He(E,v))},Ge=()=>{i(11,z=E[ye].value),i(12,v=H[z].periods[0]),i(23,Te=H[z].periods.length>1)},Ke=()=>{A=E[ye].product},$=s=>{if(s.status>=300)Gt(s);else return i(26,je=!1),s.status!==204?s.json():s},Gt=s=>{i(25,ne=!0);let d;throw s.json().then(p=>{for(const f in qe)if(p.error&&qe[f].some(y=>p.error.includes(y))){d=f;break}console.error("errType",d),!d&&Pe(p)}).finally(()=>{d&&Pe(d),i(25,ne=!1),i(24,X=!1)}),new Error("An error occured during the fetch request")},Kt=()=>oe(this,null,function*(){if(!(q>0))return;pe(),i(24,X=!0);let s=new URL(`${L}/v2/player/${m}/limits`),d={};z==="sessionLimit"?d={sessionLimit:q,sessionLimitUnit:"minute"}:z==="cumulativeSession"?d[H[z].callValue]=[{period:v,minutes:q}]:d[H[z].callValue]=[{period:H[z].periods[0]==="None"?null:v,amount:q,currency:c}];let p={method:"PUT",headers:{"X-SessionID":u,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(d)};const f=yield fetch(s.href,p);yield $(f),Q("self_limitation_success"),yield ae()}),Ye=()=>oe(this,null,function*(){var se;const s=E[ye],d=(se=s==null?void 0:s.currentLimits)==null?void 0:se.find(re=>re.period===v),p=$e();if(p&&p.reviewPending&&p.reviewPending.id)return window.postMessage({type:"WidgetNotification",data:{type:"error",message:o("limitInDocReview")}},window.location.href);if(pe(),i(24,X=!0),p&&p.reviewRequired&&!ue&&q>p.amount){i(30,ze=!0),i(28,ie=!0);return}const f=d?"v2":"v1",y=new URL(`${L}/${f}/player/${m}/limits/monetary/${d?d.id:""}`),w=d?"PUT":"POST",D=d?ue?{amount:q,skipCoolOff:!1,payload:{DocumentId:ue}}:{amount:q,skipCoolOff:!1}:{amount:q,currency:c,period:H[z].periods[0]==="None"?null:v,type:H[z].callValue16,products:[A!=null?A:"All"],walletTypes:["Deposit","NetDeposit"].includes(H[z].callValue16)?["All"]:["RealCash"]};let O={method:w,headers:{"X-SessionID":u,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(D)};try{const re=yield fetch(y.href,O);yield $(re),Q("self_limitation_success"),yield ae()}finally{i(30,ze=!1),ue=""}}),Yt=()=>oe(this,null,function*(){if(!(q>0))return;pe(),i(24,X=!0);const s=new URL(`${L}/v1/player/${m}/limits/session/`);let f={method:"PUT",headers:{"X-SessionID":u,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({sessionLimit:q,sessionLimitUnit:"minute"})};const y=yield fetch(s.href,f);yield $(y),Q("self_limitation_success"),yield ae()}),Zt=()=>oe(this,null,function*(){if(!(q>0))return;pe(),i(24,X=!0);const s=new URL(`${L}/v1/player/${m}/limits/session/`);let f={method:"PUT",headers:{"X-SessionID":u,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({cumulativeSessionLimits:[{period:v,minutes:q}]})};const y=yield fetch(s.href,f);yield $(y),Q("self_limitation_success"),yield ae()}),Jt=()=>oe(this,null,function*(){if(!(q>0))return;pe(),i(24,X=!0);const s=new URL(`${L}/v2/player/${m}/limit/lugas`);let f={method:"POST",headers:{"X-SessionID":u,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({amount:q,roleLimitAmount:0,softMigration:!1,keepLimit:!1})};const y=yield fetch(s.href,f),w=yield $(y);i(19,xe=w.popup),We=w.regulatorDepositLimitAmount,Q("self_limitation_success"),yield ae()}),Xt=()=>oe(this,null,function*(){be={};try{if(_==="gm16")switch(z){case"lugas":yield Jt();break;case"sessionLimit":yield Yt();break;case"cumulativeSession":yield Zt();break;default:yield Ye();break}else if(_==="gmcore")yield Kt();else throw Error(`Invalid apiversion attribute: ${_}`);j==="true"&&(window.postMessage({type:"WidgetNotification",data:{type:"success",message:te}},window.location.href),window.postMessage({type:"SubmitLimitNotificationSuccess"},window.location.href))}catch(s){j==="true"&&window.postMessage({type:"WidgetNotification",data:{type:"error",message:o("limitNotificationFail")}},window.location.href),console.error("limitUpdateError:",s)}Q("self_limitation_request")}),ae=()=>oe(this,null,function*(){switch(_){case"gmcore":yield Qt();break;case"gm16":yield $t();break}}),Qt=()=>oe(this,null,function*(){i(24,X=!0);let s=new URL(`${L}/v2/player/${m}/limits`),d={method:"GET",headers:{"X-SessionID":u,"Content-Type":"application/json",Accept:"application/json"}};try{const p=yield fetch(s.href,d);le=$(p),we&&Pe(),ri(le),li(le),i(18,q=null)}catch(p){console.error("Error LimitsWidget: ",p),i(25,ne=!0)}finally{i(24,X=!1)}}),$t=()=>oe(this,null,function*(){i(24,X=!0);const s=E.some(w=>w.value==="sessionLimit"||w.value==="cumulativeLimit");let d=!s;const p=new URL(`${L}/v1/player/${m}/limits/monetary`),f=new URL(`${L}/v1/player/${m}/limits/session`),y={method:"GET",headers:{"X-SessionID":u,"Content-Type":"application/json",Accept:"application/json"}};try{const w=yield fetch(p.href,y),D=yield $(w);le=D,di(D),we&&Pe(),i(18,q=null)}catch(w){console.error("Error LimitsWidget: ",w),i(25,ne=!0)}finally{d&&i(24,X=!1),d=!0}if(s)try{const w=yield fetch(f.href,y),D=yield $(w);pi(D),mi(D),we&&(z==="sessionLimit"||z==="cumulativeSession")&&Pe(),i(18,q=null)}catch(w){console.error("Error LimitsWidget: ",w),i(25,ne=!0)}finally{d&&i(24,X=!1),d=!0}}),ei=()=>oe(this,null,function*(){var w;let s=new URL(`${L}/v1/player/${m}/limits/monetary/balance`);const d=[],p={method:"GET",headers:{"X-SessionID":u,"Content-Type":"application/json",Accept:"application/json"}};try{const D=yield fetch(s.href,p),O=yield $(D);d.push(O)}catch(D){console.error("Error LimitsWidget: ",D),i(25,ne=!0)}const f=E.length?E.filter(D=>D.value==="netdeposit"):[];if(!f.length)return;const y=(w=d.find(D=>D.limitBalances))==null?void 0:w.limitBalances.filter(D=>D.limitType==="NetDeposit");if(f.length&&(y!=null&&y.length)){const D=f[0].currentLimits;f[0].currentLimits=D.map(O=>{const se=y.find(re=>re.limitDefinitionId===O.id);return ge(ge({},O),se?{spentBalance:se.spentBalance}:{})})}i(9,E=f)}),ti=()=>oe(this,null,function*(){const s=new URL(`/api/pam/v1/limit-balances/most-restrictive?userId=${m}&playerLimitTypes=Deposit&playerLimitTypes=NetDeposit&playerLimitTypes=OperatorDeposit&playerLimitTypes=OperatorNetDeposit`,L),d={method:"GET",headers:{"X-SessionID":u,"Content-Type":"application/json",Accept:"application/json"}};try{const p=yield fetch(s.href,d),f=yield $(p);ii(f)}catch(p){console.error("Error LimitsWidget: ",p),i(25,ne=!0)}}),ii=s=>{const d=s.limitBalances;i(9,E=E.map(p=>p.value==="deposit"&&p.currentLimits?Re(ge({},p),{currentLimits:p.currentLimits.map(f=>Re(ge({},f),{limitBalances:d}))}):p))},ai=s=>parseFloat((p=>{var w,D,O;if(!p)return 0;const f=(w=p==null?void 0:p.limitAmount)!=null?w:0,y=(O=(D=p==null?void 0:p.spentBalance)==null?void 0:D.amount)!=null?O:0;return y>=f?0:f-y})(s).toString()).toFixed(2),oi=()=>E.every((s,d)=>{var p,f;return((p=s.currentLimits)==null?void 0:p.length)===((f=W[d])==null?void 0:f.length)&&s.value==="netdeposit"&&W[d].every(y=>y!==null)}),ni=(s,d,p)=>{const f=s>0?Math.min(d/s*100,100):0,y=Math.round(f),w=document.createElement("div");w.className=`Progress-bar-container ${y===0?"ZeroProgress":""}`;const D=document.createElement("div");D.className="Progress-bar-fill",D.style.width=`${f}%`;const O=document.createElement("span");return O.className="Progress-bar-label",O.textContent=`${p}${d}`,w.appendChild(D),w.appendChild(O),w},si=(s,d)=>{var se;const p=W[s][d];if(!p)return;const f=E[s].currentLimits[d],y=f.amount,w=((se=f.spentBalance)==null?void 0:se.amount)||0,D=f.currency;p.innerHTML="";const O=ni(y,w,D);p.appendChild(O)},Ie=()=>oe(this,null,function*(){var d,p;yield e.tick();let s=!0;for(let f=0;f<E.length;f++){for(let y=0;y<(((d=E[f].currentLimits)==null?void 0:d.length)||0);y++)if(!W[f]||!W[f][y]){s=!1;break}if(!s)break}if(!s){setTimeout(()=>Ie(),10);return}for(let f=0;f<E.length;f++)for(let y=0;y<(((p=E[f].currentLimits)==null?void 0:p.length)||0);y++)si(f,y)}),ri=s=>{E.forEach(d=>{d.currentLimits=[];const p=Array.isArray(s[H[d.value].callValue])?s[H[d.value].callValue]:[s[H[d.value].callValue]];p.length===0||p[0]===void 0||(p.forEach((f,y)=>{var D;const w=s[H[d.value].callValue][y];d.currentLimits.push({}),d.currentLimits[y].limitType=d.value,d.currentLimits[y].amount=C?w.amount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(w.amount),d.currentLimits[y].currency=(D=ke[w.currency])!=null?D:w.currency,d.currentLimits[y].period=w.period,d.currentLimits[y].updateAmount=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(w.updateAmount),d.currentLimits[y].isModified=w.isModified,d.currentLimits[y].expiryDate=`${new Date(w.expiryDate).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")} (${h})`}),d.currentLimits=Se(d.currentLimits))})},li=s=>{const d=o("minutes");E.filter(p=>p.value==="sessionLimit"||p.value==="cumulativeSession").forEach(p=>{var f;p.currentLimits=[],(f=s[H[p.value].callValue])==null||f.forEach((y,w)=>{const D=s[H[p.value].callValue][w];p.currentLimits.push({limitType:p.value,amount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(D.minutes),currency:d,isModified:D.isModified,period:p.value==="cumulativeSession"?D.period:"None",updateAmount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(D.updateMinutes),expiryDate:`${new Date(D.expiryDate).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")} (${h})`})}),p.currentLimits=Se(p.currentLimits)})},di=s=>{s!=null&&s.limits&&(E.filter(d=>d.value!=="sessionLimit"&&d.value!=="cumulativeSession").forEach(d=>{var p;d.currentLimits=[];for(const f of s.limits){if(f.type!==d.callValue16||!f.products.includes(d.product))continue;let y=0,w=f.schedules.length>0?f.schedules.find(D=>D.id):{};f.schedules.length>0&&(y=C?w.updateAmount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(w.updateAmount)),d.currentLimits.push({limitType:d.value,amount:C?f.amount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(f.amount),currency:(p=ke[f.currency])!=null?p:f.currency,isModified:f.schedules.length>0,period:f.period,product:f.products[0],updateAmount:y,isCoolOffCompleted:w?w.isCoolOffCompleted:!1,reviewRequired:f.reviewRequired?f.reviewRequired:!1,reviewPending:f.reviewPending?f.reviewPending:{},scheduleId:w?w.id:null,expiryDate:f.schedules.length>0?`${new Date(f.schedules[0].applyAt).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")} (${h})`:"",id:f.id}),d.currentLimits.forEach(D=>{D.acknowledgedLimit=Object.keys(ee).some(O=>D.scheduleId===O)}),G==="true"&&i(33,Ee=!He(E,v))}d.currentLimits=Se(d.currentLimits)}),T==="true"&&ei(),b==="true"&&ti())},pi=s=>{s!=null&&s.sessionLimit&&E.filter(d=>d.value==="sessionLimit").forEach(d=>{d.currentLimits=[],d.currentLimits.push({limitType:"sessionLimit",amount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(s.sessionLimit.minutes),currency:o("minutes"),isModified:s.sessionLimit.isModified,period:"None",updateAmount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(s.sessionLimit.updateMinutes),expiryDate:s.sessionLimit.expiryDate}),d.currentLimits=Se(d.currentLimits)})},mi=s=>{s!=null&&s.cumulativeSessionLimits&&E.filter(d=>d.value==="cumulativeSession").forEach(d=>{d.currentLimits=[];for(const p of s.cumulativeSessionLimits)d.currentLimits.push({limitType:"cumulativeSession",amount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(p.minutes),currency:o("minutes"),isModified:p.isModified,period:p.period,updateAmount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(p.updateMinutes),expiryDate:p.expiryDate});d.currentLimits=Se(d.currentLimits)})},Se=s=>{const d={Daily:0,Weekly:1,Monthly:2};return s.sort((p,f)=>d[p.period]-d[f.period]),s},Ze=s=>{window.postMessage({type:"InValidLimit",data:s},window.location.href)},Je=()=>{if(q===null||Number.isNaN(q)){i(31,ve=!0),Ze(ve);return}const d=!Number.isInteger(q)?Math.round(q):q;i(18,q=d),i(31,ve=d<S||d>K),Ze(ve)},ui=s=>s.preventDefault(),Xe=s=>{s&&s.preventDefault(),Je(),ve||Xt()},Qe=()=>{i(31,ve=!1),de!=null&&de[z]?(i(13,S=de[z].min),i(14,K=de[z].max)):(i(13,S=1),i(14,K=9999999))},ci=()=>{if(le){const s=le[H[z].callValue].find(f=>f.period===v),d=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(s.amount);let p=o("popupImmediateUpdate").replace("{selectedLimit}",Ue(s)).replace("{updatedAmount}",d).replace("{currency}",ke[s.currency]||s.currency).replace("{selectedPeriod}",o(`${v}`));i(15,te=s.isModified?`${o("popupPendingUpdate")} ${new Date(s.expiryDate).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")} (${h})`:p)}i(28,ie=!0)},$e=()=>{if(!le)return;const s=le.limits;let d=null;return Object.keys(be).length>0?d=s.find(p=>p.id===be.id):d=s==null?void 0:s.find(p=>p.type.toLowerCase()===Ve[z].toLowerCase()&&(p.period===v||p.period==="None")&&p.products[0]===A),(d==null?void 0:d.schedules.length)>0&&ee[d==null?void 0:d.schedules[0].id]&&(d.amount=d.schedules[0].updateAmount),d},fi=()=>{let s=$e();if(!s){i(28,ie=!0);return}const d=ot(s)||Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(s.amount),p=s.schedules.length>0?`${new Date(s.schedules[0].applyAt).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")} (${h})`:"";let f=o("popupImmediateUpdate").replace("{selectedLimit}",Ue(s)).replace("{updatedAmount}",d).replace("{selectedPeriod}",o(`${s.period}`));s.schedules.length>0&&ee[s.schedules[0].id]?i(15,te=f):i(15,te=s.schedules.length>0?`${o("popupPendingUpdate")} ${p}`:f),i(28,ie=!0)},gi=()=>{xe==1&&i(16,_e="PopupKyc"),xe==2&&(i(15,te=`${o("popup2_a")}${Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(We)} ${c} ${o("popup2_b")}`),i(16,_e="PopupKyc2")),xe==3&&(i(15,te=o("popup3")),i(16,_e="PopupSuccess")),i(28,ie=!0)},Li=()=>{i(15,te=o("sessionLimitUpdated")),i(28,ie=!0)},hi=()=>{if(le){const s=le[H[z].callValue].find(f=>(f.period===v||v==="None")&&f.products[0]===A),d=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(s.minutes);let p=o("popupImmediateUpdate").replace("{selectedLimit}",o(`${z}`)).replace("{updatedAmount}",d).replace("{currency}",o("minutes")).replace("{selectedPeriod}",o(`${v}`));i(15,te=s.isModified?`${o("popupPendingUpdate")} ${new Date(s.expiryDate).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")} (${h})`:p)}i(28,ie=!0)},vi=s=>{var d;return(d=s==null?void 0:s.error)==null?void 0:d.includes("Limit update is not permitted due to LimitUpdateControl")},yi=s=>{var d;return(d=s==null?void 0:s.error)==null?void 0:d.includes("Limit remove is not permitted due to LimitUpdateControl")},bi=s=>{var d;return(d=s==null?void 0:s.error)==null?void 0:d.includes("[NotFoundException] Limit does not exist")},ki=s=>{var d;return(d=s==null?void 0:s.error)==null?void 0:d.includes("[Exception] Schedule does not exist")},wi=s=>{var d,p;return((d=s.details)==null?void 0:d.includes("Invalid Session"))||((p=s.error)==null?void 0:p.includes("Invalid Session"))},Pe=s=>{if(window.postMessage({type:"OpenLimitsPopup"},window.location.href),ne){if(i(26,je=!0),!s){i(28,ie=!0);return}vi(s)?i(15,te=o("popupUpdateLimitException")):yi(s)?i(15,te=o("popupRemoveLimitException")):bi(s)?i(15,te=o("notFoundException")):ki(s)?i(15,te=o("scheduleNotFoundException")):wi(s)?i(15,te=o("sessionExpiredException")):i(15,te=o("genericLimitsPopupError")),i(28,ie=!0);return}switch(_){case"gmcore":z==="sessionLimit"||z==="cumulativeSession"?hi():ci();break;case"gm16":z==="lugas"?gi():z==="sessionLimit"||z==="cumulativeSession"?Li():fi();break;default:throw new Error(`Invalid apiversion attribute: ${_}`)}},pe=()=>{i(27,we=!0),window.postMessage({type:"DisableScroll"},window.location.href)},_i=s=>{i(11,z=s.limitType),i(12,v=s.period),pe(),i(24,X=!0);let d=new URL(`${L}/v2/player/${m}/limits/${Ve[s.limitType]}`);s.limitType!=="sessionLimit"&&d.searchParams.append("periods",s.period);let p={method:"DELETE",headers:{"X-SessionID":u,"Content-Type":"application/json",Accept:"application/json"}};fetch(d.href,p).then(f=>$(f)).then(f=>{Q("self_limitation_cancel_success",s.amount),ae()}).catch(f=>{Q("self_limitation_cancel_failed",s.amount),console.log(f),i(25,ne=!0)})},et=s=>{switch(Ce.remove=s,_){case"gmcore":_i(s);break;case"gm16":be=s,s.limitType==="sessionLimit"||s.limitType==="cumulativeSession"?xi(s):tt(s);break}Q("self_limitation_cancel_request",s.amount)},xi=s=>{const d=new URL(`${L}/v1/player/${m}/limits/session/session`),p=new URL(`${L}/v1/player/${m}/limits/session/cumulativeSession?periods=${s.period}`);let f;switch(s.limitType){case"sessionLimit":f=d;break;case"cumulativeSession":f=p;break;default:throw Error(`Unknown limit.limitType: ${s.limitType}`)}pe(),i(24,X=!0);let y={method:"DELETE",headers:{"X-SessionID":u,"Content-Type":"application/json",Accept:"application/json"}};fetch(f.href,y).then(w=>$(w)).then(w=>{Q("self_limitation_cancel_success",s.amount),ae()}).catch(w=>{Q("self_limitation_cancel_failed",s.amount),console.log(w),i(25,ne=!0)})},tt=s=>{if(pe(),i(24,X=!0),s&&s.reviewRequired&&!ue){i(30,ze=!0),i(28,ie=!0);return}const d=new URL(`${L}/v1/player/${m}/limits/monetary/${s.id}`);let p={method:"DELETE",headers:{"X-SessionID":u,"Content-Type":"application/json",Accept:"application/json"}};ue&&d.searchParams.append("documentId",ue),fetch(d.href,p).then(f=>$(f)).then(f=>{Q("self_limitation_cancel_success",s.amount),ae()}).catch(f=>{Q("self_limitation_cancel_failed",s.amount),console.log(f),i(25,ne=!0)}).finally(()=>{Ce.remove={},i(30,ze=!1),ue=""})},it=s=>{const d=new URL(`${L}/v1/player/${m}/limits/schedule/${s.scheduleId}`);pe(),i(24,X=!0);let p={method:"DELETE",headers:{"X-SessionID":u,"Content-Type":"application/json",Accept:"application/json"}};fetch(d.href,p).then(f=>$(f)).then(f=>{be=s,Q("self_limitation_cancel_success",s.updateAmount),ae()}).catch(f=>{Q("self_limitation_cancel_failed",s.updateAmount),console.log(f)})},at=s=>{const d=new URL(`${L}/v1/player/${m}/limits/schedule/acknowledge/${s.scheduleId}`);pe(),i(24,X=!0);let p={method:"PATCH",headers:{"X-SessionID":u,"Content-Type":"application/json",Accept:"application/json"}};fetch(d.href,p).then(f=>$(f)).then(f=>{be=s,zi(s),Q("self_limitation_confirm_success",s.amount),ae()}).catch(f=>{Q("self_limitation_confirm_failed",s.amount),console.log(f)})},zi=s=>{let d=60;i(21,ee[s.scheduleId]={},ee),i(21,ee[s.scheduleId].timer=`${d} ${Le[r].seconds}`,ee),i(21,ee[s.scheduleId].timerStopped=!1,ee);let p=window.setInterval(()=>d===0?(window.clearInterval(p),i(21,ee[s.scheduleId].timerStopped=!0,ee),i(21,ee[s.scheduleId].timer=Le[r].reloadLimitsButton,ee)):i(21,ee[s.scheduleId].timer=`${--d} ${Le[r].seconds}`,ee),1e3)},Ue=s=>{let d;return s?d=s.value?o(s.value+s.product):o(s.type.toLowerCase()+s.products[0]):d=o(z),d},ot=(s,d=!1,p=!1)=>{if(!C)return p?`${s.reviewPending.requestAmount}${s.currency}`:d?`${s.updateAmount}${s.currency}`:`${s.amount}${s.currency}`;let f=C;const y=f.match(/\{(\d+)decimals\}/),w=y?parseInt(y[1],10):2,D=y?new RegExp("\\{\\d+decimals\\}","g"):"{decimals}";let O;p?O=s.reviewPending.requestAmount||0:O=d?s.updateAmount:s.amount,O=parseInt(O).toFixed(w);const[se,re]=C.includes(".")?[",","."]:[".",","];let[Ae,Be]=O.split(".");return Ae=Ae.replace(/\B(?=(\d{3})+(?!\d))/g,se),O=`${Ae}${re}${Be}`,f=f.replace("{currency}",ke[s.currency]||s.currency).replace("{amount}",O.split(re)[0]).replace(D,O.split(re)[1]),f},Ne=()=>{i(28,ie=i(27,we=!1)),i(16,_e=""),window.postMessage({type:"CloseLimitsPopup"},window.location.href),window.postMessage({type:"EnableScroll"},window.location.href),i(24,X=!1)},Si=()=>{window.postMessage({type:"uploadDocuments"},window.location.href),Ne()},Pi=s=>{console.log(s);let d=0;return Object.keys(s).forEach(p=>{d+=s[p].size}),d<=Number(R)},Ai=s=>{let d=!1;return Object.keys(s).forEach(p=>{const f=s[p].name.split(".").pop();return Y.includes(f)?d=!0:d=!1}),d},nt=s=>!s&&!(s.length>0)?i(29,fe=!1):(i(20,he=s),Pi(he)?Ai(he)?i(29,fe=!0):(console.error(o("fileExtenssionDeny")),i(29,fe=!1)):(console.error(o("fileSizeExceeded")),i(29,fe=!1))),Di=()=>{if(!fe)return;i(28,ie=!1);const s=new URL(`${L}/api/v1/mm/content/${m}/url-upload/`),d={method:"POST",headers:{"Content-Type":"application/json","X-SessionId":u},body:JSON.stringify({})};fetch(s,d).then(p=>$(p)).then(p=>{Ci(p)}).catch(p=>{console.error(o("errorUploadDocument"),p),i(20,he=null),i(29,fe=!1)})},Ci=s=>{const d=new FormData;d.append(s.requestId,he[0]),fetch(s.url,{method:"POST",body:d}).then(p=>$(p)).then(p=>{window.postMessage({type:"WidgetNotification",data:{type:"success",message:o("uploadSuccess")}},window.location.href),ue=p.Files[0].Reference,Ce.remove.id?tt(Ce.remove):Ye()}).catch(p=>{window.postMessage({type:"WidgetNotification",data:{type:"error",message:o("errorUploadDocument")}},window.location.href),console.error(o("errorUploadDocument"),p)}).finally(()=>{Ne(),i(20,he=null),i(29,fe=!1)})},Ti=()=>{if(!k)return;let s={};k.split(",").forEach(d=>{let p=d.split(":");s[p[0].trim()]=p[1].trim()}),ke=ge(ge({},ke),s)},ji=()=>{Zi(r)},st=s=>{if(s.data)switch(s.data.type){case"LimitDisableState":{i(32,Fe=s.data.data);break}case"SubmitLimitNotification":{Xe();break}}};e.onMount(()=>(window.addEventListener("message",st),T==="true"&&E.length&&Ie(),()=>{window.removeEventListener("message",st)}));const Ei=s=>nt(s.target.files),Mi=()=>ae(),Ii=s=>et(s),Ui=s=>at(s),Ni=s=>it(s);function Bi(s,d,p){e.binding_callbacks[s?"unshift":"push"](()=>{W[d][p]=s,i(8,W),i(2,T),i(9,E)})}function Ri(){ye=e.select_value(this),i(17,ye)}const Wi=()=>{Ke(),Ge(),Qe()};function Oi(){v=e.select_value(this),i(12,v),i(10,H),i(11,z)}function Fi(){q=e.to_number(this.value),i(18,q)}function Vi(s){e.binding_callbacks[s?"unshift":"push"](()=>{V=s,i(7,V)})}return a.$$set=s=>{"lang"in s&&i(54,r=s.lang),"currency"in s&&i(0,c=s.currency),"limits"in s&&i(55,g=s.limits),"session"in s&&i(56,u=s.session),"userid"in s&&i(57,m=s.userid),"endpoint"in s&&i(58,L=s.endpoint),"apiversion"in s&&i(59,_=s.apiversion),"companylimits"in s&&i(1,b=s.companylimits),"customcurrencysymbols"in s&&i(60,k=s.customcurrencysymbols),"netdepositprogress"in s&&i(2,T=s.netdepositprogress),"enablecompliancetext"in s&&i(3,Z=s.enablecompliancetext),"deletelimit"in s&&i(4,J=s.deletelimit),"amountsconfig"in s&&i(61,I=s.amountsconfig),"periodsconfig"in s&&i(62,N=s.periodsconfig),"defaultperiod"in s&&i(63,U=s.defaultperiod),"limittabindex"in s&&i(5,B=s.limittabindex),"limitformat"in s&&i(64,C=s.limitformat),"allowedextenssion"in s&&i(65,Y=s.allowedextenssion),"filesizeallow"in s&&i(66,R=s.filesizeallow),"clientstyling"in s&&i(67,M=s.clientstyling),"clientstylingurl"in s&&i(68,x=s.clientstylingurl),"translationurl"in s&&i(69,P=s.translationurl),"mbsource"in s&&i(70,F=s.mbsource),"timezone"in s&&i(71,h=s.timezone),"isLimitNotification"in s&&i(6,j=s.isLimitNotification),"cooloffstrictmode"in s&&i(72,G=s.cooloffstrictmode),"$$scope"in s&&i(73,l=s.$$scope)},a.$$.update=()=>{if(a.$$.dirty[1]&536870912&&k&&Ti(),a.$$.dirty[1]&1073741824|a.$$.dirty[2]&1&&N&&I&&qt(),a.$$.dirty[1]&8388608&&r&&ji(),a.$$.dirty[1]&511705088&&m&&u&&L&&_&&r&&ae(),a.$$.dirty[0]&128|a.$$.dirty[2]&32&&M&&V&&e.setClientStyling(V,M),a.$$.dirty[0]&128|a.$$.dirty[2]&64&&x&&V&&e.setClientStylingURL(V,x),a.$$.dirty[0]&128|a.$$.dirty[2]&256&&F&&V&&e.setStreamStyling(V,`${F}.Style`),a.$$.dirty[2]&128&&P&&Ot(),a.$$.dirty[0]&772&&T==="true"&&E.length){const s=E.map(p=>{var f;return new Array(((f=p.currentLimits)==null?void 0:f.length)||0).fill(null)});(W.length!==s.length||W.some((p,f)=>p.length!==s[f].length))&&i(8,W=s)}a.$$.dirty[0]&772&&T==="true"&&W.length===E.length&&oi()&&Ie()},[c,b,T,Z,J,B,j,V,W,E,H,z,v,S,K,te,_e,ye,q,xe,he,ee,Oe,Te,X,ne,je,we,ie,fe,ze,ve,Fe,Ee,o,me,Ht,Ge,Ke,ae,ai,Je,ui,Xe,Qe,et,it,at,Ue,ot,Ne,Si,nt,Di,r,g,u,m,L,_,k,I,N,U,C,Y,R,M,x,P,F,h,G,l,n,Ei,Mi,Ii,Ui,Ni,Bi,Ri,Wi,Oi,Fi,Vi]}class Rt extends e.SvelteComponent{constructor(t){super(),e.init(this,t,Ma,Ea,e.safe_not_equal,{lang:54,currency:0,limits:55,session:56,userid:57,endpoint:58,apiversion:59,companylimits:1,customcurrencysymbols:60,netdepositprogress:2,enablecompliancetext:3,deletelimit:4,amountsconfig:61,periodsconfig:62,defaultperiod:63,limittabindex:5,limitformat:64,allowedextenssion:65,filesizeallow:66,clientstyling:67,clientstylingurl:68,translationurl:69,mbsource:70,timezone:71,isLimitNotification:6,cooloffstrictmode:72},Ji,[-1,-1,-1,-1,-1,-1])}get lang(){return this.$$.ctx[54]}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[55]}set limits(t){this.$$set({limits:t}),e.flush()}get session(){return this.$$.ctx[56]}set session(t){this.$$set({session:t}),e.flush()}get userid(){return this.$$.ctx[57]}set userid(t){this.$$set({userid:t}),e.flush()}get endpoint(){return this.$$.ctx[58]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get apiversion(){return this.$$.ctx[59]}set apiversion(t){this.$$set({apiversion:t}),e.flush()}get companylimits(){return this.$$.ctx[1]}set companylimits(t){this.$$set({companylimits:t}),e.flush()}get customcurrencysymbols(){return this.$$.ctx[60]}set customcurrencysymbols(t){this.$$set({customcurrencysymbols:t}),e.flush()}get netdepositprogress(){return this.$$.ctx[2]}set netdepositprogress(t){this.$$set({netdepositprogress:t}),e.flush()}get enablecompliancetext(){return this.$$.ctx[3]}set enablecompliancetext(t){this.$$set({enablecompliancetext:t}),e.flush()}get deletelimit(){return this.$$.ctx[4]}set deletelimit(t){this.$$set({deletelimit:t}),e.flush()}get amountsconfig(){return this.$$.ctx[61]}set amountsconfig(t){this.$$set({amountsconfig:t}),e.flush()}get periodsconfig(){return this.$$.ctx[62]}set periodsconfig(t){this.$$set({periodsconfig:t}),e.flush()}get defaultperiod(){return this.$$.ctx[63]}set defaultperiod(t){this.$$set({defaultperiod:t}),e.flush()}get limittabindex(){return this.$$.ctx[5]}set limittabindex(t){this.$$set({limittabindex:t}),e.flush()}get limitformat(){return this.$$.ctx[64]}set limitformat(t){this.$$set({limitformat:t}),e.flush()}get allowedextenssion(){return this.$$.ctx[65]}set allowedextenssion(t){this.$$set({allowedextenssion:t}),e.flush()}get filesizeallow(){return this.$$.ctx[66]}set filesizeallow(t){this.$$set({filesizeallow:t}),e.flush()}get clientstyling(){return this.$$.ctx[67]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[68]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[69]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get mbsource(){return this.$$.ctx[70]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get timezone(){return this.$$.ctx[71]}set timezone(t){this.$$set({timezone:t}),e.flush()}get isLimitNotification(){return this.$$.ctx[6]}set isLimitNotification(t){this.$$set({isLimitNotification:t}),e.flush()}get cooloffstrictmode(){return this.$$.ctx[72]}set cooloffstrictmode(t){this.$$set({cooloffstrictmode:t}),e.flush()}}e.create_custom_element(Rt,{lang:{},currency:{},limits:{},session:{},userid:{},endpoint:{},apiversion:{},companylimits:{},customcurrencysymbols:{},netdepositprogress:{},enablecompliancetext:{},deletelimit:{},amountsconfig:{},periodsconfig:{},defaultperiod:{},limittabindex:{},limitformat:{},allowedextenssion:{},filesizeallow:{},clientstyling:{},clientstylingurl:{},translationurl:{},mbsource:{},timezone:{},isLimitNotification:{},cooloffstrictmode:{}},["LimitSkeleton","LimitsList","LimitSubmitButton"],[],!0);exports.default=Rt;
|
|
35
|
+
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(U,B){e.insert(U,t,B),e.append(t,i),e.append(i,o),e.append(i,n),e.append(t,l),e.append(t,r),e.append(t,c),e.append(t,g),e.append(t,u),e.append(t,m),e.append(t,L),e.append(t,_),e.append(t,b),e.append(t,k),e.append(t,T),e.append(t,Z),e.append(t,J),e.append(t,I),e.append(t,N)},d(U){U&&e.detach(t)}}}function ra(a){let t,i=a[34]("popupSuccess")+"",o;return{c(){t=e.element("p"),o=e.text(i)},m(n,l){e.insert(n,t,l),e.append(t,o)},p(n,l){l[1]&8&&i!==(i=n[34]("popupSuccess")+"")&&e.set_data(o,i)},d(n){n&&e.detach(t)}}}function la(a){let t,i=a[34]("docsRequired")+"",o;return{c(){t=e.element("p"),o=e.text(i)},m(n,l){e.insert(n,t,l),e.append(t,o)},p(n,l){l[1]&8&&i!==(i=n[34]("docsRequired")+"")&&e.set_data(o,i)},d(n){n&&e.detach(t)}}}function da(a){let t,i=a[34]("popupError")+"",o;return{c(){t=e.element("p"),o=e.text(i)},m(n,l){e.insert(n,t,l),e.append(t,o)},p(n,l){l[1]&8&&i!==(i=n[34]("popupError")+"")&&e.set_data(o,i)},d(n){n&&e.detach(t)}}}function pa(a){let t,i=a[34]("okButton")+"",o,n,l;return{c(){t=e.element("button"),o=e.text(i),e.attr(t,"class","ConfirmButton "+(a[35]?"":"Mobile"))},m(r,c){e.insert(r,t,c),e.append(t,o),n||(l=e.listen(t,"click",a[50]),n=!0)},p(r,c){c[1]&8&&i!==(i=r[34]("okButton")+"")&&e.set_data(o,i)},d(r){r&&e.detach(t),n=!1,l()}}}function ma(a){let t,i=a[34]("uploadDocumentsButton")+"",o,n,l=a[34]("closeButton")+"",r,c,g;return{c(){t=e.element("button"),o=e.space(),n=e.element("button"),r=e.text(l),e.attr(t,"class","ConfirmButton"),e.attr(n,"class","CloseButton")},m(u,m){e.insert(u,t,m),t.innerHTML=i,e.insert(u,o,m),e.insert(u,n,m),e.append(n,r),c||(g=[e.listen(t,"click",a[51]),e.listen(n,"click",a[50])],c=!0)},p(u,m){m[1]&8&&i!==(i=u[34]("uploadDocumentsButton")+"")&&(t.innerHTML=i),m[1]&8&&l!==(l=u[34]("closeButton")+"")&&e.set_data(r,l)},d(u){u&&(e.detach(t),e.detach(o),e.detach(n)),c=!1,e.run_all(g)}}}function ua(a){let t,i=a[34]("noFileUploaded")+"",o;return{c(){t=e.element("p"),o=e.text(i),e.attr(t,"class","historyItem")},m(n,l){e.insert(n,t,l),e.append(t,o)},p(n,l){l[1]&8&&i!==(i=n[34]("noFileUploaded")+"")&&e.set_data(o,i)},d(n){n&&e.detach(t)}}}function ca(a){let t,i=e.ensure_array_like(Array.from(a[20])),o=[];for(let n=0;n<i.length;n+=1)o[n]=bt(vt(a,i,n));return{c(){for(let n=0;n<o.length;n+=1)o[n].c();t=e.empty()},m(n,l){for(let r=0;r<o.length;r+=1)o[r]&&o[r].m(n,l);e.insert(n,t,l)},p(n,l){if(l[0]&1048576){i=e.ensure_array_like(Array.from(n[20]));let r;for(r=0;r<i.length;r+=1){const c=vt(n,i,r);o[r]?o[r].p(c,l):(o[r]=bt(c),o[r].c(),o[r].m(t.parentNode,t))}for(;r<o.length;r+=1)o[r].d(1);o.length=i.length}},d(n){n&&e.detach(t),e.destroy_each(o,n)}}}function bt(a){let t,i=a[169].name+"",o;return{c(){t=e.element("p"),o=e.text(i),e.attr(t,"class","historyItem")},m(n,l){e.insert(n,t,l),e.append(t,o)},p(n,l){l[0]&1048576&&i!==(i=n[169].name+"")&&e.set_data(o,i)},d(n){n&&e.detach(t)}}}function kt(a){let t,i=a[34]("filesUploadError")+"",o;return{c(){t=e.element("p"),o=e.text(i),e.attr(t,"class","filesError")},m(n,l){e.insert(n,t,l),e.append(t,o)},p(n,l){l[1]&8&&i!==(i=n[34]("filesUploadError")+"")&&e.set_data(o,i)},d(n){n&&e.detach(t)}}}function fa(a){let t,i,o,n,l,r,c=a[34]("setLimit")+"",g,u,m,L,_,b,k,T=a[23]?`${a[34]("amount")}`:`${a[34](`new${a[12]}Limit`)}`,Z,J,I,N,U,B,C,Y,R;const M=a[74].LimitsList,x=e.create_slot(M,a,a[73],Lt),P=x||Da(a);let F=e.ensure_array_like(a[9]),h=[];for(let v=0;v<F.length;v+=1)h[v]=jt(ct(a,F,v));let j=a[3]==="true"&&Et(a),G=a[22]&&Mt(a),V=a[23]&&Ut(a),W=a[31]&&!a[32]&&Bt(a);const ce=a[74].LimitSubmitButton,me=e.create_slot(ce,a,a[73],pt),z=me||Ca(a);return{c(){t=e.element("div"),i=e.element("div"),P&&P.c(),o=e.space(),n=e.element("form");for(let v=0;v<h.length;v+=1)h[v].c();l=e.space(),r=e.element("p"),g=e.text(c),u=e.space(),j&&j.c(),m=e.space(),G&&G.c(),L=e.space(),V&&V.c(),_=e.space(),b=e.element("label"),k=e.element("span"),Z=e.text(T),J=e.space(),I=e.element("input"),N=e.space(),W&&W.c(),U=e.space(),z&&z.c(),e.attr(r,"class","LimitTitle "+(a[35]?"":"Mobile")),e.attr(k,"class","LimitInputText"),e.attr(I,"type","number"),e.attr(I,"pattern","[0-9]*"),I.disabled=a[32],e.attr(b,"class","LimitAmountInputWrapper "+(a[35]?"":"Mobile")),e.attr(n,"class","LimitsInteractionArea "+(a[35]?"":"Mobile")),e.attr(i,"class","LimitsPageContainer"),e.attr(t,"class",B="player-account-gaming-limits-page-2-gm16 "+("LimitTab"+a[5]))},m(v,A){e.insert(v,t,A),e.append(t,i),P&&P.m(i,null),e.append(i,o),e.append(i,n);for(let S=0;S<h.length;S+=1)h[S]&&h[S].m(n,null);e.append(n,l),e.append(n,r),e.append(r,g),e.append(n,u),j&&j.m(n,null),e.append(n,m),G&&G.m(n,null),e.append(n,L),V&&V.m(n,null),e.append(n,_),e.append(n,b),e.append(b,k),e.append(k,Z),e.append(b,J),e.append(b,I),e.set_input_value(I,a[18]),e.append(b,N),W&&W.m(b,null),e.append(n,U),z&&z.m(n,null),C=!0,Y||(R=[e.listen(I,"input",a[84]),e.listen(I,"input",a[41]),e.listen(I,"wheel",a[42]),e.listen(n,"submit",a[43])],Y=!0)},p(v,A){if(x?x.p&&(!C||A[2]&2048)&&e.update_slot_base(x,M,v,v[73],C?e.get_slot_changes(M,v[73],A,Qi):e.get_all_dirty_from_scope(v[73]),Lt):P&&P.p&&(!C||A[0]&2097942|A[1]&8)&&P.p(v,C?A:[-1,-1,-1,-1,-1,-1]),A[0]&512|A[1]&24){F=e.ensure_array_like(v[9]);let S;for(S=0;S<F.length;S+=1){const K=ct(v,F,S);h[S]?h[S].p(K,A):(h[S]=jt(K),h[S].c(),h[S].m(n,l))}for(;S<h.length;S+=1)h[S].d(1);h.length=F.length}(!C||A[1]&8)&&c!==(c=v[34]("setLimit")+"")&&e.set_data(g,c),v[3]==="true"?j?j.p(v,A):(j=Et(v),j.c(),j.m(n,m)):j&&(j.d(1),j=null),v[22]?G?G.p(v,A):(G=Mt(v),G.c(),G.m(n,L)):G&&(G.d(1),G=null),v[23]?V?V.p(v,A):(V=Ut(v),V.c(),V.m(n,_)):V&&(V.d(1),V=null),(!C||A[0]&8392704|A[1]&8)&&T!==(T=v[23]?`${v[34]("amount")}`:`${v[34](`new${v[12]}Limit`)}`)&&e.set_data(Z,T),(!C||A[1]&2)&&(I.disabled=v[32]),A[0]&262144&&e.to_number(I.value)!==v[18]&&e.set_input_value(I,v[18]),v[31]&&!v[32]?W?W.p(v,A):(W=Bt(v),W.c(),W.m(b,null)):W&&(W.d(1),W=null),me?me.p&&(!C||A[2]&2048)&&e.update_slot_base(me,ce,v,v[73],C?e.get_slot_changes(ce,v[73],A,Xi):e.get_all_dirty_from_scope(v[73]),pt):z&&z.p&&(!C||A[1]&13)&&z.p(v,C?A:[-1,-1,-1,-1,-1,-1]),(!C||A[0]&32&&B!==(B="player-account-gaming-limits-page-2-gm16 "+("LimitTab"+v[5])))&&e.attr(t,"class",B)},i(v){C||(e.transition_in(P,v),e.transition_in(z,v),C=!0)},o(v){e.transition_out(P,v),e.transition_out(z,v),C=!1},d(v){v&&e.detach(t),P&&P.d(v),e.destroy_each(h,v),j&&j.d(),G&&G.d(),V&&V.d(),W&&W.d(),z&&z.d(v),Y=!1,e.run_all(R)}}}function ga(a){let t;return{c(){t=e.element("p"),t.textContent="500 Server error"},m(i,o){e.insert(i,t,o)},p:e.noop,i:e.noop,o:e.noop,d(i){i&&e.detach(t)}}}function La(a){let t;const i=a[74].LimitSkeleton,o=e.create_slot(i,a,a[73],ht),n=o||ja(a);return{c(){n&&n.c()},m(l,r){n&&n.m(l,r),t=!0},p(l,r){o&&o.p&&(!t||r[2]&2048)&&e.update_slot_base(o,i,l,l[73],t?e.get_slot_changes(i,l[73],r,ea):e.get_all_dirty_from_scope(l[73]),ht)},i(l){t||(e.transition_in(n,l),t=!0)},o(l){e.transition_out(n,l),t=!1},d(l){n&&n.d(l)}}}function wt(a){let t,i=a[34]("activeLimitsInfoText")+"",o;return{c(){t=e.element("p"),o=e.text(i),e.attr(t,"class","LimitsInfoText "+(a[35]?"":"Mobile"))},m(n,l){e.insert(n,t,l),e.append(t,o)},p(n,l){l[1]&8&&i!==(i=n[34]("activeLimitsInfoText")+"")&&e.set_data(o,i)},d(n){n&&e.detach(t)}}}function ha(a){let t,i,o,n=a[34]("noLimitText")+"",l;return{c(){t=e.element("div"),i=e.element("div"),o=e.element("div"),l=e.text(n),e.attr(o,"class","LimitDetailsTextWrapper "+(a[35]?"":"Mobile")),e.attr(i,"class","LimitDetailsWrapper"),e.attr(t,"class","LimitDetails")},m(r,c){e.insert(r,t,c),e.append(t,i),e.append(i,o),e.append(o,l)},p(r,c){c[1]&8&&n!==(n=r[34]("noLimitText")+"")&&e.set_data(l,n)},d(r){r&&e.detach(t)}}}function va(a){let t,i,o,n=a[34]("lugasPrivacy")+"",l;return{c(){t=e.element("div"),i=e.element("div"),o=e.element("div"),l=e.text(n),e.attr(o,"class","LimitDetailsTextWrapper "+(a[35]?"":"Mobile")),e.attr(i,"class","LimitDetailsWrapper"),e.attr(t,"class","LimitDetails")},m(r,c){e.insert(r,t,c),e.append(t,i),e.append(i,o),e.append(o,l)},p(r,c){c[1]&8&&n!==(n=r[34]("lugasPrivacy")+"")&&e.set_data(l,n)},d(r){r&&e.detach(t)}}}function ya(a){let t,i=e.ensure_array_like(a[160].currentLimits),o=[];for(let n=0;n<i.length;n+=1)o[n]=Dt(gt(a,i,n));return{c(){for(let n=0;n<o.length;n+=1)o[n].c();t=e.empty()},m(n,l){for(let r=0;r<o.length;r+=1)o[r]&&o[r].m(n,l);e.insert(n,t,l)},p(n,l){if(l[0]&2097942|l[1]&377624){i=e.ensure_array_like(n[160].currentLimits);let r;for(r=0;r<i.length;r+=1){const c=gt(n,i,r);o[r]?o[r].p(c,l):(o[r]=Dt(c),o[r].c(),o[r].m(t.parentNode,t))}for(;r<o.length;r+=1)o[r].d(1);o.length=i.length}},d(n){n&&e.detach(t),e.destroy_each(o,n)}}}function ba(a){let t,i,o,n=a[34]("lugasPrivacy")+"",l;return{c(){t=e.element("div"),i=e.element("div"),o=e.element("div"),l=e.text(n),e.attr(o,"class","LimitDetailsTextWrapper "+(a[35]?"":"Mobile")),e.attr(i,"class","LimitDetailsWrapper"),e.attr(t,"class","LimitDetails")},m(r,c){e.insert(r,t,c),e.append(t,i),e.append(i,o),e.append(o,l)},p(r,c){c[1]&8&&n!==(n=r[34]("lugasPrivacy")+"")&&e.set_data(l,n)},d(r){r&&e.detach(t)}}}function ka(a){let t,i=`${a[49](a[166])}`,o;return{c(){t=e.element("span"),o=e.text(i)},m(n,l){e.insert(n,t,l),e.append(t,o)},p(n,l){l[0]&512&&i!==(i=`${n[49](n[166])}`)&&e.set_data(o,i)},d(n){n&&e.detach(t)}}}function wa(a){let t,i=`${a[49](a[166],!0)}`,o;return{c(){t=e.element("span"),o=e.text(i)},m(n,l){e.insert(n,t,l),e.append(t,o)},p(n,l){l[0]&512&&i!==(i=`${n[49](n[166],!0)}`)&&e.set_data(o,i)},d(n){n&&e.detach(t)}}}function _t(a){let t,i,o=`${a[49](a[166],!1,!0)}`,n,l,r=`${a[166].period!=="None"||a[166].value!=="cumulativeSession"?" ":a[34]("per")} ${a[34](`${a[166].period}`)} ${a[34]("updateAfterDocApproval")}`,c;return{c(){t=e.element("div"),i=e.element("span"),n=e.text(o),l=e.space(),c=e.text(r),e.attr(t,"class","PendingLimit")},m(g,u){e.insert(g,t,u),e.append(t,i),e.append(i,n),e.append(t,l),e.append(t,c)},p(g,u){u[0]&512&&o!==(o=`${g[49](g[166],!1,!0)}`)&&e.set_data(n,o),u[0]&512|u[1]&8&&r!==(r=`${g[166].period!=="None"||g[166].value!=="cumulativeSession"?" ":g[34]("per")} ${g[34](`${g[166].period}`)} ${g[34]("updateAfterDocApproval")}`)&&e.set_data(c,r)},d(g){g&&e.detach(t)}}}function xt(a){let t,i=a[34]("companyLimitsInfoText")+"",o,n,l,r=a[166].currency+"",c,g=a[40](a[166].limitBalances[0])+"",u;return{c(){t=e.element("div"),o=e.text(i),n=e.space(),l=e.element("span"),c=e.text(r),u=e.text(g),e.attr(t,"class","CompanyLimitsInfoText")},m(m,L){e.insert(m,t,L),e.append(t,o),e.append(t,n),e.append(t,l),e.append(l,c),e.append(l,u)},p(m,L){L[1]&8&&i!==(i=m[34]("companyLimitsInfoText")+"")&&e.set_data(o,i),L[0]&512&&r!==(r=m[166].currency+"")&&e.set_data(c,r),L[0]&512&&g!==(g=m[40](m[166].limitBalances[0])+"")&&e.set_data(u,g)},d(m){m&&e.detach(t)}}}function _a(a){let t,i,o=`${a[49](a[166],!0)}`,n,l;function r(u,m){return u[166].isCoolOffCompleted?Aa:Pa}let c=r(a),g=c(a);return{c(){t=e.element("div"),i=e.element("span"),n=e.text(o),l=e.space(),g.c(),e.attr(t,"class","PendingLimit")},m(u,m){e.insert(u,t,m),e.append(t,i),e.append(i,n),e.append(t,l),g.m(t,null)},p(u,m){m[0]&512&&o!==(o=`${u[49](u[166],!0)}`)&&e.set_data(n,o),c===(c=r(u))&&g?g.p(u,m):(g.d(1),g=c(u),g&&(g.c(),g.m(t,null)))},d(u){u&&e.detach(t),g.d()}}}function xa(a){let t,i=`${a[34]("removedLimitText")} ${a[166].expiryDate}`,o;return{c(){t=e.element("div"),o=e.text(i),e.attr(t,"class","PendingLimit")},m(n,l){e.insert(n,t,l),e.append(t,o)},p(n,l){l[0]&512|l[1]&8&&i!==(i=`${n[34]("removedLimitText")} ${n[166].expiryDate}`)&&e.set_data(o,i)},d(n){n&&e.detach(t)}}}function za(a){let t,i=`${a[34]("removeAfterConfirm")}`,o;return{c(){t=e.element("div"),o=e.text(i),e.attr(t,"class","PendingLimit")},m(n,l){e.insert(n,t,l),e.append(t,o)},p(n,l){l[1]&8&&i!==(i=`${n[34]("removeAfterConfirm")}`)&&e.set_data(o,i)},d(n){n&&e.detach(t)}}}function Sa(a){let t,i=`${a[34]("acknowledgedLimit")}`,o;return{c(){t=e.element("div"),o=e.text(i),e.attr(t,"class","PendingLimit")},m(n,l){e.insert(n,t,l),e.append(t,o)},p(n,l){l[1]&8&&i!==(i=`${n[34]("acknowledgedLimit")}`)&&e.set_data(o,i)},d(n){n&&e.detach(t)}}}function Pa(a){let t=`${a[166].period!=="None"||a[166].value!=="cumulativeSession"?" ":a[34]("per")} ${a[34](`${a[166].period}`)} ${a[34]("updateText")} ${a[166].expiryDate}`,i;return{c(){i=e.text(t)},m(o,n){e.insert(o,i,n)},p(o,n){n[0]&512|n[1]&8&&t!==(t=`${o[166].period!=="None"||o[166].value!=="cumulativeSession"?" ":o[34]("per")} ${o[34](`${o[166].period}`)} ${o[34]("updateText")} ${o[166].expiryDate}`)&&e.set_data(i,t)},d(o){o&&e.detach(i)}}}function Aa(a){let t=`${a[166].period!=="None"||a[166].value!=="cumulativeSession"?" ":a[34]("per")} ${a[34](`${a[166].period}`)} ${a[34]("updateAfterConfirm")}`,i;return{c(){i=e.text(t)},m(o,n){e.insert(o,i,n)},p(o,n){n[0]&512|n[1]&8&&t!==(t=`${o[166].period!=="None"||o[166].value!=="cumulativeSession"?" ":o[34]("per")} ${o[34](`${o[166].period}`)} ${o[34]("updateAfterConfirm")}`)&&e.set_data(i,t)},d(o){o&&e.detach(i)}}}function zt(a){let t,i,o=a[21][a[166].scheduleId].timer+"",n,l,r,c;return{c(){t=e.element("div"),i=e.element("button"),n=e.text(o),e.attr(i,"class",l="ReloadLimitButton "+(a[35]?"":"Mobile")+" "+(a[21][a[166].scheduleId].timerStopped?"":"disabled")),e.attr(t,"class","ContainerLimitActions "+(a[35]?"":"Mobile"))},m(g,u){e.insert(g,t,u),e.append(t,i),e.append(i,n),r||(c=e.listen(i,"click",a[76]),r=!0)},p(g,u){u[0]&2097664&&o!==(o=g[21][g[166].scheduleId].timer+"")&&e.set_data(n,o),u[0]&2097664&&l!==(l="ReloadLimitButton "+(g[35]?"":"Mobile")+" "+(g[21][g[166].scheduleId].timerStopped?"":"disabled"))&&e.attr(i,"class",l)},d(g){g&&e.detach(t),r=!1,c()}}}function St(a){let t,i,o=a[34]("removeLimit")+"",n,l,r;function c(){return a[77](a[166])}return{c(){t=e.element("div"),i=e.element("button"),n=e.text(o),e.attr(i,"class","RemoveLimitButton "+(a[35]?"":"Mobile")),e.attr(t,"class","ContainerLimitActions "+(a[35]?"":"Mobile"))},m(g,u){e.insert(g,t,u),e.append(t,i),e.append(i,n),l||(r=e.listen(i,"click",c),l=!0)},p(g,u){a=g,u[1]&8&&o!==(o=a[34]("removeLimit")+"")&&e.set_data(n,o)},d(g){g&&e.detach(t),l=!1,r()}}}function Pt(a){let t,i,o=a[34]("confirmUpdateLimit")+"",n,l,r,c=a[34]("cancelUpdateLimit")+"",g,u,m;function L(){return a[78](a[166])}function _(){return a[79](a[166])}return{c(){t=e.element("div"),i=e.element("button"),n=e.text(o),l=e.space(),r=e.element("button"),g=e.text(c),e.attr(i,"class","ConfirmLimitButton "+(a[35]?"":"Mobile")),e.attr(r,"class","CancelLimitButton "+(a[35]?"":"Mobile")),e.attr(t,"class","ContainerLimitActions "+(a[35]?"":"Mobile"))},m(b,k){e.insert(b,t,k),e.append(t,i),e.append(i,n),e.append(t,l),e.append(t,r),e.append(r,g),u||(m=[e.listen(i,"click",L),e.listen(r,"click",_)],u=!0)},p(b,k){a=b,k[1]&8&&o!==(o=a[34]("confirmUpdateLimit")+"")&&e.set_data(n,o),k[1]&8&&c!==(c=a[34]("cancelUpdateLimit")+"")&&e.set_data(g,c)},d(b){b&&e.detach(t),u=!1,e.run_all(m)}}}function At(a){let t,i=a[162],o=a[168];const n=()=>a[80](t,i,o),l=()=>a[80](null,i,o);return{c(){t=e.element("div"),t.innerHTML="",e.attr(t,"class","ProgressBarContainer")},m(r,c){e.insert(r,t,c),n()},p(r,c){a=r,(i!==a[162]||o!==a[168])&&(l(),i=a[162],o=a[168],n())},d(r){r&&e.detach(t),l()}}}function Dt(a){let t,i,o,n,l,r=`${a[166].period!=="None"||a[166].value!=="cumulativeSession"?" ":a[34]("per")} ${a[34](`${a[166].period}`)}`,c,g,u,m,L,_,b=!a[166].isModified&&a[4].indexOf(a[160].value)>-1&&!a[166].reviewPending.id,k,T,Z;function J(h,j){return h[166].acknowledgedLimit?wa:ka}let I=J(a),N=I(a),U=a[166].reviewPending&&a[166].reviewPending.id&&_t(a),B=a[1]==="true"&&a[166].limitType==="deposit"&&a[166].limitBalances&&a[166].limitBalances.length>0&&xt(a);function C(h,j){if(h[166].acknowledgedLimit)return Sa;if(h[166].isModified&&h[166].updateAmount==0&&h[166].isCoolOffCompleted)return za;if(h[166].isModified&&h[166].updateAmount==0&&!h[166].isCoolOffCompleted)return xa;if(h[166].isModified)return _a}let Y=C(a),R=Y&&Y(a),M=a[166].acknowledgedLimit&&!a[166].reviewPending.id&&zt(a),x=b&&St(a),P=a[166].isCoolOffCompleted&!a[166].acknowledgedLimit&&!a[166].reviewPending.id&&Pt(a),F=a[2]==="true"&&a[8][a[162]]&&a[166].limitType==="netdeposit"&&At(a);return{c(){t=e.element("div"),i=e.element("div"),o=e.element("div"),n=e.element("div"),N.c(),l=e.space(),c=e.text(r),g=e.space(),U&&U.c(),u=e.space(),B&&B.c(),m=e.space(),R&&R.c(),L=e.space(),M&&M.c(),_=e.space(),x&&x.c(),k=e.space(),P&&P.c(),T=e.space(),F&&F.c(),Z=e.space(),e.attr(n,"class","CurrentLimit"),e.attr(o,"class","CurrentLimitContainer"),e.attr(i,"class","LimitDetailsTextWrapper "+(a[35]?"":"Mobile")),e.attr(t,"class","LimitDetails")},m(h,j){e.insert(h,t,j),e.append(t,i),e.append(i,o),e.append(o,n),N.m(n,null),e.append(n,l),e.append(n,c),e.append(o,g),U&&U.m(o,null),e.append(o,u),B&&B.m(o,null),e.append(o,m),R&&R.m(o,null),e.append(i,L),M&&M.m(i,null),e.append(i,_),x&&x.m(i,null),e.append(i,k),P&&P.m(i,null),e.append(i,T),F&&F.m(i,null),e.append(t,Z)},p(h,j){I===(I=J(h))&&N?N.p(h,j):(N.d(1),N=I(h),N&&(N.c(),N.m(n,l))),j[0]&512|j[1]&8&&r!==(r=`${h[166].period!=="None"||h[166].value!=="cumulativeSession"?" ":h[34]("per")} ${h[34](`${h[166].period}`)}`)&&e.set_data(c,r),h[166].reviewPending&&h[166].reviewPending.id?U?U.p(h,j):(U=_t(h),U.c(),U.m(o,u)):U&&(U.d(1),U=null),h[1]==="true"&&h[166].limitType==="deposit"&&h[166].limitBalances&&h[166].limitBalances.length>0?B?B.p(h,j):(B=xt(h),B.c(),B.m(o,m)):B&&(B.d(1),B=null),Y===(Y=C(h))&&R?R.p(h,j):(R&&R.d(1),R=Y&&Y(h),R&&(R.c(),R.m(o,null))),h[166].acknowledgedLimit&&!h[166].reviewPending.id?M?M.p(h,j):(M=zt(h),M.c(),M.m(i,_)):M&&(M.d(1),M=null),j[0]&528&&(b=!h[166].isModified&&h[4].indexOf(h[160].value)>-1&&!h[166].reviewPending.id),b?x?x.p(h,j):(x=St(h),x.c(),x.m(i,k)):x&&(x.d(1),x=null),h[166].isCoolOffCompleted&!h[166].acknowledgedLimit&&!h[166].reviewPending.id?P?P.p(h,j):(P=Pt(h),P.c(),P.m(i,T)):P&&(P.d(1),P=null),h[2]==="true"&&h[8][h[162]]&&h[166].limitType==="netdeposit"?F?F.p(h,j):(F=At(h),F.c(),F.m(i,null)):F&&(F.d(1),F=null)},d(h){h&&e.detach(t),N.d(),U&&U.d(),B&&B.d(),R&&R.d(),M&&M.d(),x&&x.d(),P&&P.d(),F&&F.d()}}}function Ct(a){let t,i=a[48](a[160])+"",o,n,l=a[160].value==="netdeposit"&&a[34]("activeLimitsInfoText")!=="activeLimitsInfoText"&&a[34]("activeLimitsInfoText").trim().length,r,c,g,u,m=l&&wt(a);function L(k,T){var Z;return k[160].value==="lugas"?ba:((Z=k[160].currentLimits)==null?void 0:Z.length)>0?ya:k[160].value==="lugas"?va:ha}let _=L(a),b=_(a);return{c(){t=e.element("p"),o=e.text(i),n=e.space(),m&&m.c(),r=e.space(),c=e.element("div"),b.c(),g=e.space(),e.attr(t,"class","LimitTitle "+(a[35]?"":"Mobile")),e.attr(c,"class",u="LimitWrapper "+a[160].value+" "+(a[2]==="true"&&a[160].value==="netdeposit"?"ActiveProgressBar":"")+" "+(a[35]?"":"Mobile"))},m(k,T){e.insert(k,t,T),e.append(t,o),e.insert(k,n,T),m&&m.m(k,T),e.insert(k,r,T),e.insert(k,c,T),b.m(c,null),e.append(c,g)},p(k,T){T[0]&512&&i!==(i=k[48](k[160])+"")&&e.set_data(o,i),T[0]&512|T[1]&8&&(l=k[160].value==="netdeposit"&&k[34]("activeLimitsInfoText")!=="activeLimitsInfoText"&&k[34]("activeLimitsInfoText").trim().length),l?m?m.p(k,T):(m=wt(k),m.c(),m.m(r.parentNode,r)):m&&(m.d(1),m=null),_===(_=L(k))&&b?b.p(k,T):(b.d(1),b=_(k),b&&(b.c(),b.m(c,g))),T[0]&516&&u!==(u="LimitWrapper "+k[160].value+" "+(k[2]==="true"&&k[160].value==="netdeposit"?"ActiveProgressBar":"")+" "+(k[35]?"":"Mobile"))&&e.attr(c,"class",u)},d(k){k&&(e.detach(t),e.detach(n),e.detach(r),e.detach(c)),m&&m.d(k),b.d()}}}function Da(a){let t,i=e.ensure_array_like(a[9]),o=[];for(let n=0;n<i.length;n+=1)o[n]=Ct(ft(a,i,n));return{c(){t=e.element("div");for(let n=0;n<o.length;n+=1)o[n].c();e.attr(t,"class","LimitsList")},m(n,l){e.insert(n,t,l);for(let r=0;r<o.length;r+=1)o[r]&&o[r].m(t,null)},p(n,l){if(l[0]&2097942|l[1]&508696){i=e.ensure_array_like(n[9]);let r;for(r=0;r<i.length;r+=1){const c=ft(n,i,r);o[r]?o[r].p(c,l):(o[r]=Ct(c),o[r].c(),o[r].m(t,null))}for(;r<o.length;r+=1)o[r].d(1);o.length=i.length}},d(n){n&&e.detach(t),e.destroy_each(o,n)}}}function Tt(a){let t,i=a[34]("newLimitInfoText")+"",o;return{c(){t=e.element("p"),o=e.text(i),e.attr(t,"class","LimitsInfoText "+(a[35]?"":"Mobile"))},m(n,l){e.insert(n,t,l),e.append(t,o)},p(n,l){l[1]&8&&i!==(i=n[34]("newLimitInfoText")+"")&&e.set_data(o,i)},d(n){n&&e.detach(t)}}}function jt(a){let t=a[160].value==="netdeposit"&&a[34]("newLimitInfoText")!=="newLimitInfoText"&&a[34]("newLimitInfoText").trim().length,i,o=t&&Tt(a);return{c(){o&&o.c(),i=e.empty()},m(n,l){o&&o.m(n,l),e.insert(n,i,l)},p(n,l){l[0]&512|l[1]&8&&(t=n[160].value==="netdeposit"&&n[34]("newLimitInfoText")!=="newLimitInfoText"&&n[34]("newLimitInfoText").trim().length),t?o?o.p(n,l):(o=Tt(n),o.c(),o.m(i.parentNode,i)):o&&(o.d(1),o=null)},d(n){n&&e.detach(i),o&&o.d(n)}}}function Et(a){let t,i,o=a[34]("complianceText")+"",n;return{c(){t=e.element("div"),i=e.element("p"),n=e.text(o),e.attr(i,"class","LimitComplianceText"),e.attr(t,"class","LimitCompliance")},m(l,r){e.insert(l,t,r),e.append(t,i),e.append(i,n)},p(l,r){r[1]&8&&o!==(o=l[34]("complianceText")+"")&&e.set_data(n,o)},d(l){l&&e.detach(t)}}}function Mt(a){let t,i,o=a[34]("limitType")+"",n,l,r,c,g,u=e.ensure_array_like(a[9]),m=[];for(let L=0;L<u.length;L+=1)m[L]=It(ut(a,u,L));return{c(){t=e.element("label"),i=e.element("span"),n=e.text(o),l=e.space(),r=e.element("select");for(let L=0;L<m.length;L+=1)m[L].c();e.attr(i,"class","LimitSelectText"),e.attr(r,"name",""),e.attr(r,"id",""),a[17]===void 0&&e.add_render_callback(()=>a[81].call(r)),e.attr(t,"class","LimitTypeDropdownWrapper "+(a[35]?"":"Mobile"))},m(L,_){e.insert(L,t,_),e.append(t,i),e.append(i,n),e.append(t,l),e.append(t,r);for(let b=0;b<m.length;b+=1)m[b]&&m[b].m(r,null);e.select_option(r,a[17],!0),c||(g=[e.listen(r,"change",a[81]),e.listen(r,"change",a[82])],c=!0)},p(L,_){if(_[1]&8&&o!==(o=L[34]("limitType")+"")&&e.set_data(n,o),_[0]&512|_[1]&131072){u=e.ensure_array_like(L[9]);let b;for(b=0;b<u.length;b+=1){const k=ut(L,u,b);m[b]?m[b].p(k,_):(m[b]=It(k),m[b].c(),m[b].m(r,null))}for(;b<m.length;b+=1)m[b].d(1);m.length=u.length}_[0]&131072&&e.select_option(r,L[17])},d(L){L&&e.detach(t),e.destroy_each(m,L),c=!1,e.run_all(g)}}}function It(a){let t,i=a[48](a[160])+"",o;return{c(){t=e.element("option"),o=e.text(i),t.__value=a[162],e.set_input_value(t,t.__value)},m(n,l){e.insert(n,t,l),e.append(t,o)},p(n,l){l[0]&512&&i!==(i=n[48](n[160])+"")&&e.set_data(o,i)},d(n){n&&e.detach(t)}}}function Ut(a){let t,i,o=a[34]("period")+"",n,l,r,c,g,u=e.ensure_array_like(a[10][a[11]].periods),m=[];for(let L=0;L<u.length;L+=1)m[L]=Nt(mt(a,u,L));return{c(){t=e.element("label"),i=e.element("span"),n=e.text(o),l=e.space(),r=e.element("select");for(let L=0;L<m.length;L+=1)m[L].c();e.attr(i,"class","PeriodSelectText"),e.attr(r,"name",""),e.attr(r,"id",""),r.disabled=a[32],a[12]===void 0&&e.add_render_callback(()=>a[83].call(r)),e.attr(t,"class","LimitPeriodDropdownWrapper "+(a[35]?"":"Mobile"))},m(L,_){e.insert(L,t,_),e.append(t,i),e.append(i,n),e.append(t,l),e.append(t,r);for(let b=0;b<m.length;b+=1)m[b]&&m[b].m(r,null);e.select_option(r,a[12],!0),c||(g=[e.listen(r,"change",a[83]),e.listen(r,"change",a[36])],c=!0)},p(L,_){if(_[1]&8&&o!==(o=L[34]("period")+"")&&e.set_data(n,o),_[0]&3072|_[1]&8){u=e.ensure_array_like(L[10][L[11]].periods);let b;for(b=0;b<u.length;b+=1){const k=mt(L,u,b);m[b]?m[b].p(k,_):(m[b]=Nt(k),m[b].c(),m[b].m(r,null))}for(;b<m.length;b+=1)m[b].d(1);m.length=u.length}_[1]&2&&(r.disabled=L[32]),_[0]&7168&&e.select_option(r,L[12])},d(L){L&&e.detach(t),e.destroy_each(m,L),c=!1,e.run_all(g)}}}function Nt(a){let t,i=a[34](a[157])+"",o,n;return{c(){t=e.element("option"),o=e.text(i),t.__value=n=a[157],e.set_input_value(t,t.__value),t.selected=!0},m(l,r){e.insert(l,t,r),e.append(t,o)},p(l,r){r[0]&3072|r[1]&8&&i!==(i=l[34](l[157])+"")&&e.set_data(o,i),r[0]&3072&&n!==(n=l[157])&&(t.__value=n,e.set_input_value(t,t.__value))},d(l){l&&e.detach(t)}}}function Bt(a){let t,i=a[18]===null?`${a[34]("invalidInputMessage")}`:a[18]<a[13]?`${a[34]("invalidInputMessageLimitMin",{values:{minValue:a[13],maxValue:a[14],currency:a[0]}})}`:`${a[34]("invalidInputMessageLimitMax",{values:{minValue:a[13],maxValue:a[14],currency:a[0]}})}`,o;return{c(){t=e.element("p"),o=e.text(i),e.attr(t,"class","InvalidInput")},m(n,l){e.insert(n,t,l),e.append(t,o)},p(n,l){l[0]&286721|l[1]&8&&i!==(i=n[18]===null?`${n[34]("invalidInputMessage")}`:n[18]<n[13]?`${n[34]("invalidInputMessageLimitMin",{values:{minValue:n[13],maxValue:n[14],currency:n[0]}})}`:`${n[34]("invalidInputMessageLimitMax",{values:{minValue:n[13],maxValue:n[14],currency:n[0]}})}`)&&e.set_data(o,i)},d(n){n&&e.detach(t)}}}function Ca(a){let t,i=a[34]("setLimit")+"",o,n;return{c(){t=e.element("button"),o=e.text(i),e.attr(t,"class","LimitSubmitButton "+(a[35]?"":"Mobile")),e.attr(t,"type","submit"),t.disabled=n=a[31]||a[33]},m(l,r){e.insert(l,t,r),e.append(t,o)},p(l,r){r[1]&8&&i!==(i=l[34]("setLimit")+"")&&e.set_data(o,i),r[1]&5&&n!==(n=l[31]||l[33])&&(t.disabled=n)},d(l){l&&e.detach(t)}}}function Ta(a){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,o){e.insert(i,t,o)},p:e.noop,d(i){i&&e.detach(t)}}}function ja(a){let t,i,o,n,l,r,c=e.ensure_array_like(Array(3)),g=[];for(let u=0;u<c.length;u+=1)g[u]=Ta($i(a,c,u));return{c(){t=e.element("div"),i=e.element("div"),i.innerHTML='<ui-skeleton width="auto" height="25px" structure="text" margin-right="auto"></ui-skeleton>',o=e.space(),n=e.element("div");for(let u=0;u<g.length;u+=1)g[u].c();l=e.space(),r=e.element("div"),r.innerHTML='<div class="skletonHeader"><ui-skeleton width="auto" height="25px" structure="title" margin-right="auto"></ui-skeleton></div> <div class="skletonSubText"><ui-skeleton width="auto" height="15px" structure="text" margin-right="auto"></ui-skeleton></div> <div class="skeletonPeriod"><ui-skeleton width="auto" height="40px" structure="rectangle" margin-right="auto"></ui-skeleton></div> <div class="skletonSubText"><ui-skeleton width="auto" height="15px" structure="text" margin-right="auto"></ui-skeleton></div> <div class="skeletonInputAmount"><ui-skeleton width="auto" height="40px" structure="rectangle" margin-right="auto"></ui-skeleton></div> <div class="skeletonButton"><ui-skeleton width="auto" height="50px" structure="rectangle" margin-right="auto"></ui-skeleton></div>',e.attr(i,"class","skeletonLimitText"),e.attr(n,"class","skeletonLimitWrapper"),e.attr(r,"class","skeletonInputWrapper"),e.attr(t,"class","skeletonLimitContainer")},m(u,m){e.insert(u,t,m),e.append(t,i),e.append(t,o),e.append(t,n);for(let L=0;L<g.length;L+=1)g[L]&&g[L].m(n,null);e.append(t,l),e.append(t,r)},p:e.noop,d(u){u&&e.detach(t),e.destroy_each(g,u)}}}function Ea(a){let t,i,o,n,l,r=a[27]&&a[6]==="false"&&yt(a);const c=[La,ga,fa],g=[];function u(m,L){return m[24]?0:m[25]?1:m[24]?-1:2}return~(o=u(a))&&(n=g[o]=c[o](a)),{c(){t=e.element("div"),r&&r.c(),i=e.space(),n&&n.c()},m(m,L){e.insert(m,t,L),r&&r.m(t,null),e.append(t,i),~o&&g[o].m(t,null),a[85](t),l=!0},p(m,L){m[27]&&m[6]==="false"?r?r.p(m,L):(r=yt(m),r.c(),r.m(t,i)):r&&(r.d(1),r=null);let _=o;o=u(m),o===_?~o&&g[o].p(m,L):(n&&(e.group_outros(),e.transition_out(g[_],1,1,()=>{g[_]=null}),e.check_outros()),~o?(n=g[o],n?n.p(m,L):(n=g[o]=c[o](m),n.c()),e.transition_in(n,1),n.m(t,null)):n=null)},i(m){l||(e.transition_in(n),l=!0)},o(m){e.transition_out(n),l=!1},d(m){m&&e.detach(t),r&&r.d(),~o&&g[o].d(),a[85](null)}}}function Ma(a,t,i){let o;e.component_subscribe(a,e.$format,s=>i(34,o=s));let{$$slots:n={},$$scope:l}=t,{lang:r="en"}=t,{currency:c=""}=t,{limits:g=""}=t,{session:u=""}=t,{userid:m=""}=t,{endpoint:L=""}=t,{apiversion:_=""}=t,{companylimits:b="false"}=t,{customcurrencysymbols:k=""}=t,{netdepositprogress:T="false"}=t,{enablecompliancetext:Z=""}=t,{deletelimit:J=""}=t,{amountsconfig:I=""}=t,{periodsconfig:N=""}=t,{defaultperiod:U=""}=t,{limittabindex:B=""}=t,{limitformat:C=""}=t,{allowedextenssion:Y=".jpg,.jpeg,.png,.pdf,.webp,image/png"}=t,{filesizeallow:R="12934000"}=t,{clientstyling:M=""}=t,{clientstylingurl:x=""}=t,{translationurl:P=""}=t,{mbsource:F}=t,{timezone:h="GMT"}=t,{isLimitNotification:j="false"}=t,{cooloffstrictmode:G="false"}=t,V,W=[],ce=window.navigator.userAgent,me=!e.isMobile(ce),z="",v="",A="",S="",K="",De="",ue="",te="",_e="",ye=0,We,q,xe,E=[],le={},de={},be={},Wt={},he,ke={EUR:"€",RON:" lei",USD:"$"},Ce={remove:{},confirm:{},update:{}},ee={},Oe=!1,Te=!1,X=!0,ne=!1,je=!1,we=!1,ie=!1,fe=!1,ze=!1,ve=!1,Fe=!1,Ee=!1;const Ve={wager:"wagering",loss:"loss",deposit:"deposit",netdeposit:"netdeposit",cumulativeSession:"cumulativeSession",sessionLimit:"session"},qe={unableToUpdatePendingRequest:["SYS_1037","SYS_1142","SYS_1140"],internalServerError:["F0004","F0006"]},Ot=()=>{fetch(P).then(d=>d.json()).then(d=>{Object.keys(d).forEach(p=>{dt(p,d[p])})}).catch(d=>{console.log(d)})};Object.keys(Le).forEach(s=>{dt(s,Le[s])});const Me=s=>`dataLayer-${s}`,Q=(s,d)=>{typeof gtag=="function"&>ag({event:s,limit_category:Le[r][Me(A.toLowerCase())]||A,limit_type:Le[r][Me(z.toLowerCase())]||z,limit_period:Le[r][Me(v.toLowerCase())]||v,limit_amount:q||d})},Ft=()=>{var f;const s=I.split(",").map(y=>y.split(":")),d=N.split(",").map(y=>y.split(":"));for(let[y,w]of s.entries())if(w[0]!==d[y][0])throw new Error(`Limit config mismatch: "${w[0]}" does not match "${d[y][0]}"`);const p=s.reduce((y,w,D)=>{const O=w[0].slice(w[0].indexOf("(")+1,w[0].indexOf(")")),se=w[0].slice(0,w[0].indexOf("(")),re=w[1],Ae=d[D][1].trim().replace("D","Daily").replace("W","Weekly").replace("M","Monthly").replace("N","None").split("-"),Be={value:O,product:se,minMax:re,periods:Ae,callValue:H[O].callValue,callValue16:H[O].callValue16,title:H[O].title};return y.push(Be),y},[]);for(let y=0;y<p.length;y++)i(9,E[y].product=p[y].product,E),i(9,E[y].min=parseInt(p[y].minMax.split("-")[0],10),E),i(9,E[y].max=parseInt(p[y].minMax.split("-")[1],10),E),i(10,H[p[y].value].periods=p[y].periods,H);De=(f=E[0])==null?void 0:f.value,E.forEach(y=>{de[y.value]={min:y.min,max:y.max},Wt[y.value]=y.product}),de&&(de[De]?(i(13,S=de[De].min),i(14,K=de[De].max)):(i(13,S=1),i(14,K=9999999)))},Vt=()=>{const s=/\(([^)]+)\)/g;return[...I.matchAll(s)].flat().filter(p=>!p.includes("("))},qt=()=>{Vt().forEach(p=>{H[p]?E.push(ge({},H[p])):console.error(`Unknown limit: ${p}`)}),Ft(),i(11,z=E[0].value);const d=H[z].periods;i(12,v=U&&d.find(p=>p===U)||d[0]),A=E[0].product,i(22,Oe=E.length>1),i(23,Te=H[z].periods.length>1)},He=(s,d)=>{var f,y,w;const p=(y=(f=s==null?void 0:s[0])==null?void 0:f.currentLimits)==null?void 0:y.find(D=>D.period===d);return(w=p==null?void 0:p.isCoolOffCompleted)!=null?w:!0},Ht=()=>{G==="true"&&i(33,Ee=!He(E,v))},Ge=()=>{i(11,z=E[ye].value),i(12,v=H[z].periods[0]),i(23,Te=H[z].periods.length>1)},Ke=()=>{A=E[ye].product},$=s=>{if(s.status>=300)Gt(s);else return i(26,je=!1),s.status!==204?s.json():s},Gt=s=>{i(25,ne=!0);let d;throw s.json().then(p=>{for(const f in qe)if(p.error&&qe[f].some(y=>p.error.includes(y))){d=f;break}console.error("errType",d),!d&&Pe(p)}).finally(()=>{d&&Pe(d),i(25,ne=!1),i(24,X=!1)}),new Error("An error occured during the fetch request")},Kt=()=>oe(this,null,function*(){if(!(q>0))return;pe(),i(24,X=!0);let s=new URL(`${L}/v2/player/${m}/limits`),d={};z==="sessionLimit"?d={sessionLimit:q,sessionLimitUnit:"minute"}:z==="cumulativeSession"?d[H[z].callValue]=[{period:v,minutes:q}]:d[H[z].callValue]=[{period:H[z].periods[0]==="None"?null:v,amount:q,currency:c}];let p={method:"PUT",headers:{"X-SessionID":u,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(d)};const f=yield fetch(s.href,p);yield $(f),Q("self_limitation_success"),yield ae()}),Ye=()=>oe(this,null,function*(){var se;const s=E[ye],d=(se=s==null?void 0:s.currentLimits)==null?void 0:se.find(re=>re.period===v),p=$e();if(p&&p.reviewPending&&p.reviewPending.id)return window.postMessage({type:"WidgetNotification",data:{type:"error",message:o("limitInDocReview")}},window.location.href);if(pe(),i(24,X=!0),p&&p.reviewRequired&&!ue&&q>p.amount){i(30,ze=!0),i(28,ie=!0);return}const f=d?"v2":"v1",y=new URL(`${L}/${f}/player/${m}/limits/monetary/${d?d.id:""}`),w=d?"PUT":"POST",D=d?ue?{amount:q,skipCoolOff:!1,payload:{DocumentId:ue}}:{amount:q,skipCoolOff:!1}:{amount:q,currency:c,period:H[z].periods[0]==="None"?null:v,type:H[z].callValue16,products:[A!=null?A:"All"],walletTypes:["Deposit","NetDeposit"].includes(H[z].callValue16)?["All"]:["RealCash"]};let O={method:w,headers:{"X-SessionID":u,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(D)};try{const re=yield fetch(y.href,O);yield $(re),Q("self_limitation_success"),yield ae()}finally{i(30,ze=!1),ue=""}}),Yt=()=>oe(this,null,function*(){if(!(q>0))return;pe(),i(24,X=!0);const s=new URL(`${L}/v1/player/${m}/limits/session/`);let f={method:"PUT",headers:{"X-SessionID":u,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({sessionLimit:q,sessionLimitUnit:"minute"})};const y=yield fetch(s.href,f);yield $(y),Q("self_limitation_success"),yield ae()}),Zt=()=>oe(this,null,function*(){if(!(q>0))return;pe(),i(24,X=!0);const s=new URL(`${L}/v1/player/${m}/limits/session/`);let f={method:"PUT",headers:{"X-SessionID":u,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({cumulativeSessionLimits:[{period:v,minutes:q}]})};const y=yield fetch(s.href,f);yield $(y),Q("self_limitation_success"),yield ae()}),Jt=()=>oe(this,null,function*(){if(!(q>0))return;pe(),i(24,X=!0);const s=new URL(`${L}/v2/player/${m}/limit/lugas`);let f={method:"POST",headers:{"X-SessionID":u,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({amount:q,roleLimitAmount:0,softMigration:!1,keepLimit:!1})};const y=yield fetch(s.href,f),w=yield $(y);i(19,xe=w.popup),We=w.regulatorDepositLimitAmount,Q("self_limitation_success"),yield ae()}),Xt=()=>oe(this,null,function*(){be={};try{if(_==="gm16")switch(z){case"lugas":yield Jt();break;case"sessionLimit":yield Yt();break;case"cumulativeSession":yield Zt();break;default:yield Ye();break}else if(_==="gmcore")yield Kt();else throw Error(`Invalid apiversion attribute: ${_}`);j==="true"&&(window.postMessage({type:"WidgetNotification",data:{type:"success",message:te}},window.location.href),window.postMessage({type:"SubmitLimitNotificationSuccess"},window.location.href))}catch(s){j==="true"&&window.postMessage({type:"WidgetNotification",data:{type:"error",message:o("limitNotificationFail")}},window.location.href),console.error("limitUpdateError:",s)}Q("self_limitation_request")}),ae=()=>oe(this,null,function*(){switch(_){case"gmcore":yield Qt();break;case"gm16":yield $t();break}}),Qt=()=>oe(this,null,function*(){i(24,X=!0);let s=new URL(`${L}/v2/player/${m}/limits`),d={method:"GET",headers:{"X-SessionID":u,"Content-Type":"application/json",Accept:"application/json"}};try{const p=yield fetch(s.href,d);le=$(p),we&&Pe(),ri(le),li(le),i(18,q=null)}catch(p){console.error("Error LimitsWidget: ",p),i(25,ne=!0)}finally{i(24,X=!1)}}),$t=()=>oe(this,null,function*(){i(24,X=!0);const s=E.some(w=>w.value==="sessionLimit"||w.value==="cumulativeLimit");let d=!s;const p=new URL(`${L}/v1/player/${m}/limits/monetary`),f=new URL(`${L}/v1/player/${m}/limits/session`),y={method:"GET",headers:{"X-SessionID":u,"Content-Type":"application/json",Accept:"application/json"}};try{const w=yield fetch(p.href,y),D=yield $(w);le=D,di(D),we&&Pe(),i(18,q=null)}catch(w){console.error("Error LimitsWidget: ",w),i(25,ne=!0)}finally{d&&i(24,X=!1),d=!0}if(s)try{const w=yield fetch(f.href,y),D=yield $(w);pi(D),mi(D),we&&(z==="sessionLimit"||z==="cumulativeSession")&&Pe(),i(18,q=null)}catch(w){console.error("Error LimitsWidget: ",w),i(25,ne=!0)}finally{d&&i(24,X=!1),d=!0}}),ei=()=>oe(this,null,function*(){var w;let s=new URL(`${L}/v1/player/${m}/limits/monetary/balance`);const d=[],p={method:"GET",headers:{"X-SessionID":u,"Content-Type":"application/json",Accept:"application/json"}};try{const D=yield fetch(s.href,p),O=yield $(D);d.push(O)}catch(D){console.error("Error LimitsWidget: ",D),i(25,ne=!0)}const f=E.length?E.filter(D=>D.value==="netdeposit"):[];if(!f.length)return;const y=(w=d.find(D=>D.limitBalances))==null?void 0:w.limitBalances.filter(D=>D.limitType==="NetDeposit");if(f.length&&(y!=null&&y.length)){const D=f[0].currentLimits;f[0].currentLimits=D.map(O=>{const se=y.find(re=>re.limitDefinitionId===O.id);return ge(ge({},O),se?{spentBalance:se.spentBalance}:{})})}i(9,E=f)}),ti=()=>oe(this,null,function*(){const s=new URL(`/api/pam/v1/limit-balances/most-restrictive?userId=${m}&playerLimitTypes=Deposit&playerLimitTypes=NetDeposit&playerLimitTypes=OperatorDeposit&playerLimitTypes=OperatorNetDeposit`,L),d={method:"GET",headers:{"X-SessionID":u,"Content-Type":"application/json",Accept:"application/json"}};try{const p=yield fetch(s.href,d),f=yield $(p);ii(f)}catch(p){console.error("Error LimitsWidget: ",p),i(25,ne=!0)}}),ii=s=>{const d=s.limitBalances;i(9,E=E.map(p=>p.value==="deposit"&&p.currentLimits?Re(ge({},p),{currentLimits:p.currentLimits.map(f=>Re(ge({},f),{limitBalances:d}))}):p))},ai=s=>parseFloat((p=>{var w,D,O;if(!p)return 0;const f=(w=p==null?void 0:p.limitAmount)!=null?w:0,y=(O=(D=p==null?void 0:p.spentBalance)==null?void 0:D.amount)!=null?O:0;return y>=f?0:f-y})(s).toString()).toFixed(2),oi=()=>E.every((s,d)=>{var p,f;return((p=s.currentLimits)==null?void 0:p.length)===((f=W[d])==null?void 0:f.length)&&s.value==="netdeposit"&&W[d].every(y=>y!==null)}),ni=(s,d,p)=>{const f=s>0?Math.min(d/s*100,100):0,y=Math.round(f),w=document.createElement("div");w.className=`Progress-bar-container ${y===0?"ZeroProgress":""}`;const D=document.createElement("div");D.className="Progress-bar-fill",D.style.width=`${f}%`;const O=document.createElement("span");return O.className="Progress-bar-label",O.textContent=`${p}${d}`,w.appendChild(D),w.appendChild(O),w},si=(s,d)=>{var se;const p=W[s][d];if(!p)return;const f=E[s].currentLimits[d],y=f.amount,w=((se=f.spentBalance)==null?void 0:se.amount)||0,D=f.currency;p.innerHTML="";const O=ni(y,w,D);p.appendChild(O)},Ie=()=>oe(this,null,function*(){var d,p;yield e.tick();let s=!0;for(let f=0;f<E.length;f++){for(let y=0;y<(((d=E[f].currentLimits)==null?void 0:d.length)||0);y++)if(!W[f]||!W[f][y]){s=!1;break}if(!s)break}if(!s){setTimeout(()=>Ie(),10);return}for(let f=0;f<E.length;f++)for(let y=0;y<(((p=E[f].currentLimits)==null?void 0:p.length)||0);y++)si(f,y)}),ri=s=>{E.forEach(d=>{d.currentLimits=[];const p=Array.isArray(s[H[d.value].callValue])?s[H[d.value].callValue]:[s[H[d.value].callValue]];p.length===0||p[0]===void 0||(p.forEach((f,y)=>{var D;const w=s[H[d.value].callValue][y];d.currentLimits.push({}),d.currentLimits[y].limitType=d.value,d.currentLimits[y].amount=C?w.amount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(w.amount),d.currentLimits[y].currency=(D=ke[w.currency])!=null?D:w.currency,d.currentLimits[y].period=w.period,d.currentLimits[y].updateAmount=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(w.updateAmount),d.currentLimits[y].isModified=w.isModified,d.currentLimits[y].expiryDate=`${new Date(w.expiryDate).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")} (${h})`}),d.currentLimits=Se(d.currentLimits))})},li=s=>{const d=o("minutes");E.filter(p=>p.value==="sessionLimit"||p.value==="cumulativeSession").forEach(p=>{var f;p.currentLimits=[],(f=s[H[p.value].callValue])==null||f.forEach((y,w)=>{const D=s[H[p.value].callValue][w];p.currentLimits.push({limitType:p.value,amount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(D.minutes),currency:d,isModified:D.isModified,period:p.value==="cumulativeSession"?D.period:"None",updateAmount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(D.updateMinutes),expiryDate:`${new Date(D.expiryDate).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")} (${h})`})}),p.currentLimits=Se(p.currentLimits)})},di=s=>{s!=null&&s.limits&&(E.filter(d=>d.value!=="sessionLimit"&&d.value!=="cumulativeSession").forEach(d=>{var p;d.currentLimits=[];for(const f of s.limits){if(f.type!==d.callValue16||!f.products.includes(d.product))continue;let y=0,w=f.schedules.length>0?f.schedules.find(D=>D.id):{};f.schedules.length>0&&(y=C?w.updateAmount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(w.updateAmount)),d.currentLimits.push({limitType:d.value,amount:C?f.amount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(f.amount),currency:(p=ke[f.currency])!=null?p:f.currency,isModified:f.schedules.length>0,period:f.period,product:f.products[0],updateAmount:y,isCoolOffCompleted:w?w.isCoolOffCompleted:!1,reviewRequired:f.reviewRequired?f.reviewRequired:!1,reviewPending:f.reviewPending?f.reviewPending:{},scheduleId:w?w.id:null,expiryDate:f.schedules.length>0?`${new Date(f.schedules[0].applyAt).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")} (${h})`:"",id:f.id}),d.currentLimits.forEach(D=>{D.acknowledgedLimit=Object.keys(ee).some(O=>D.scheduleId===O)}),G==="true"&&i(33,Ee=!He(E,v))}d.currentLimits=Se(d.currentLimits)}),T==="true"&&ei(),b==="true"&&ti())},pi=s=>{s!=null&&s.sessionLimit&&E.filter(d=>d.value==="sessionLimit").forEach(d=>{d.currentLimits=[],d.currentLimits.push({limitType:"sessionLimit",amount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(s.sessionLimit.minutes),currency:o("minutes"),isModified:s.sessionLimit.isModified,period:"None",updateAmount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(s.sessionLimit.updateMinutes),expiryDate:s.sessionLimit.expiryDate}),d.currentLimits=Se(d.currentLimits)})},mi=s=>{s!=null&&s.cumulativeSessionLimits&&E.filter(d=>d.value==="cumulativeSession").forEach(d=>{d.currentLimits=[];for(const p of s.cumulativeSessionLimits)d.currentLimits.push({limitType:"cumulativeSession",amount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(p.minutes),currency:o("minutes"),isModified:p.isModified,period:p.period,updateAmount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(p.updateMinutes),expiryDate:p.expiryDate});d.currentLimits=Se(d.currentLimits)})},Se=s=>{const d={Daily:0,Weekly:1,Monthly:2};return s.sort((p,f)=>d[p.period]-d[f.period]),s},Ze=s=>{window.postMessage({type:"InValidLimit",data:s},window.location.href)},Je=()=>{if(q===null||Number.isNaN(q)){i(31,ve=!0),Ze(ve);return}const d=!Number.isInteger(q)?Math.round(q):q;i(18,q=d),i(31,ve=d<S||d>K),Ze(ve)},ui=s=>s.preventDefault(),Xe=s=>{s&&s.preventDefault(),Je(),ve||Xt()},Qe=()=>{i(31,ve=!1),de!=null&&de[z]?(i(13,S=de[z].min),i(14,K=de[z].max)):(i(13,S=1),i(14,K=9999999))},ci=()=>{if(le){const s=le[H[z].callValue].find(f=>f.period===v),d=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(s.amount);let p=o("popupImmediateUpdate").replace("{selectedLimit}",Ue(s)).replace("{updatedAmount}",d).replace("{currency}",ke[s.currency]||s.currency).replace("{selectedPeriod}",o(`${v}`));i(15,te=s.isModified?`${o("popupPendingUpdate")} ${new Date(s.expiryDate).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")} (${h})`:p)}i(28,ie=!0)},$e=()=>{if(!le)return;const s=le.limits;let d=null;return Object.keys(be).length>0?d=s.find(p=>p.id===be.id):d=s==null?void 0:s.find(p=>p.type.toLowerCase()===Ve[z].toLowerCase()&&(p.period===v||p.period==="None")&&p.products[0]===A),(d==null?void 0:d.schedules.length)>0&&ee[d==null?void 0:d.schedules[0].id]&&(d.amount=d.schedules[0].updateAmount),d},fi=()=>{let s=$e();if(!s){i(28,ie=!0);return}const d=ot(s)||Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(s.amount),p=s.schedules.length>0?`${new Date(s.schedules[0].applyAt).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")} (${h})`:"";let f=o("popupImmediateUpdate").replace("{selectedLimit}",Ue(s)).replace("{updatedAmount}",d).replace("{selectedPeriod}",o(`${s.period}`));s.schedules.length>0&&ee[s.schedules[0].id]?i(15,te=f):i(15,te=s.schedules.length>0?`${o("popupPendingUpdate")} ${p}`:f),i(28,ie=!0)},gi=()=>{xe==1&&i(16,_e="PopupKyc"),xe==2&&(i(15,te=`${o("popup2_a")}${Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(We)} ${c} ${o("popup2_b")}`),i(16,_e="PopupKyc2")),xe==3&&(i(15,te=o("popup3")),i(16,_e="PopupSuccess")),i(28,ie=!0)},Li=()=>{i(15,te=o("sessionLimitUpdated")),i(28,ie=!0)},hi=()=>{if(le){const s=le[H[z].callValue].find(f=>(f.period===v||v==="None")&&f.products[0]===A),d=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(s.minutes);let p=o("popupImmediateUpdate").replace("{selectedLimit}",o(`${z}`)).replace("{updatedAmount}",d).replace("{currency}",o("minutes")).replace("{selectedPeriod}",o(`${v}`));i(15,te=s.isModified?`${o("popupPendingUpdate")} ${new Date(s.expiryDate).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")} (${h})`:p)}i(28,ie=!0)},vi=s=>{var d;return(d=s==null?void 0:s.error)==null?void 0:d.includes("Limit update is not permitted due to LimitUpdateControl")},yi=s=>{var d;return(d=s==null?void 0:s.error)==null?void 0:d.includes("Limit remove is not permitted due to LimitUpdateControl")},bi=s=>{var d;return(d=s==null?void 0:s.error)==null?void 0:d.includes("[NotFoundException] Limit does not exist")},ki=s=>{var d;return(d=s==null?void 0:s.error)==null?void 0:d.includes("[Exception] Schedule does not exist")},wi=s=>{var d,p;return((d=s.details)==null?void 0:d.includes("Invalid Session"))||((p=s.error)==null?void 0:p.includes("Invalid Session"))},Pe=s=>{if(window.postMessage({type:"OpenLimitsPopup"},window.location.href),ne){if(i(26,je=!0),!s){i(28,ie=!0);return}vi(s)?i(15,te=o("popupUpdateLimitException")):yi(s)?i(15,te=o("popupRemoveLimitException")):bi(s)?i(15,te=o("notFoundException")):ki(s)?i(15,te=o("scheduleNotFoundException")):wi(s)?i(15,te=o("sessionExpiredException")):i(15,te=o("genericLimitsPopupError")),i(28,ie=!0);return}switch(_){case"gmcore":z==="sessionLimit"||z==="cumulativeSession"?hi():ci();break;case"gm16":z==="lugas"?gi():z==="sessionLimit"||z==="cumulativeSession"?Li():fi();break;default:throw new Error(`Invalid apiversion attribute: ${_}`)}},pe=()=>{i(27,we=!0),window.postMessage({type:"DisableScroll"},window.location.href)},_i=s=>{i(11,z=s.limitType),i(12,v=s.period),pe(),i(24,X=!0);let d=new URL(`${L}/v2/player/${m}/limits/${Ve[s.limitType]}`);s.limitType!=="sessionLimit"&&d.searchParams.append("periods",s.period);let p={method:"DELETE",headers:{"X-SessionID":u,"Content-Type":"application/json",Accept:"application/json"}};fetch(d.href,p).then(f=>$(f)).then(f=>{Q("self_limitation_cancel_success",s.amount),ae()}).catch(f=>{Q("self_limitation_cancel_failed",s.amount),console.log(f),i(25,ne=!0)})},et=s=>{switch(Ce.remove=s,_){case"gmcore":_i(s);break;case"gm16":be=s,s.limitType==="sessionLimit"||s.limitType==="cumulativeSession"?xi(s):tt(s);break}Q("self_limitation_cancel_request",s.amount)},xi=s=>{const d=new URL(`${L}/v1/player/${m}/limits/session/session`),p=new URL(`${L}/v1/player/${m}/limits/session/cumulativeSession?periods=${s.period}`);let f;switch(s.limitType){case"sessionLimit":f=d;break;case"cumulativeSession":f=p;break;default:throw Error(`Unknown limit.limitType: ${s.limitType}`)}pe(),i(24,X=!0);let y={method:"DELETE",headers:{"X-SessionID":u,"Content-Type":"application/json",Accept:"application/json"}};fetch(f.href,y).then(w=>$(w)).then(w=>{Q("self_limitation_cancel_success",s.amount),ae()}).catch(w=>{Q("self_limitation_cancel_failed",s.amount),console.log(w),i(25,ne=!0)})},tt=s=>{if(pe(),i(24,X=!0),s&&s.reviewRequired&&!ue){i(30,ze=!0),i(28,ie=!0);return}const d=new URL(`${L}/v1/player/${m}/limits/monetary/${s.id}`);let p={method:"DELETE",headers:{"X-SessionID":u,"Content-Type":"application/json",Accept:"application/json"}};ue&&d.searchParams.append("documentId",ue),fetch(d.href,p).then(f=>$(f)).then(f=>{Q("self_limitation_cancel_success",s.amount),ae()}).catch(f=>{Q("self_limitation_cancel_failed",s.amount),console.log(f),i(25,ne=!0)}).finally(()=>{Ce.remove={},i(30,ze=!1),ue=""})},it=s=>{const d=new URL(`${L}/v1/player/${m}/limits/schedule/${s.scheduleId}`);pe(),i(24,X=!0);let p={method:"DELETE",headers:{"X-SessionID":u,"Content-Type":"application/json",Accept:"application/json"}};fetch(d.href,p).then(f=>$(f)).then(f=>{be=s,Q("self_limitation_cancel_success",s.updateAmount),ae()}).catch(f=>{Q("self_limitation_cancel_failed",s.updateAmount),console.log(f)})},at=s=>{const d=new URL(`${L}/v1/player/${m}/limits/schedule/acknowledge/${s.scheduleId}`);pe(),i(24,X=!0);let p={method:"PATCH",headers:{"X-SessionID":u,"Content-Type":"application/json",Accept:"application/json"}};fetch(d.href,p).then(f=>$(f)).then(f=>{be=s,zi(s),Q("self_limitation_confirm_success",s.amount),ae()}).catch(f=>{Q("self_limitation_confirm_failed",s.amount),console.log(f)})},zi=s=>{let d=60;i(21,ee[s.scheduleId]={},ee),i(21,ee[s.scheduleId].timer=`${d} ${Le[r].seconds}`,ee),i(21,ee[s.scheduleId].timerStopped=!1,ee);let p=window.setInterval(()=>d===0?(window.clearInterval(p),i(21,ee[s.scheduleId].timerStopped=!0,ee),i(21,ee[s.scheduleId].timer=Le[r].reloadLimitsButton,ee)):i(21,ee[s.scheduleId].timer=`${--d} ${Le[r].seconds}`,ee),1e3)},Ue=s=>{let d;return s?d=s.value?o(s.value+s.product):o(s.type.toLowerCase()+s.products[0]):d=o(z),d},ot=(s,d=!1,p=!1)=>{if(!C)return p?`${s.reviewPending.requestAmount}${s.currency}`:d?`${s.updateAmount}${s.currency}`:`${s.amount}${s.currency}`;let f=C;const y=f.match(/\{(\d+)decimals\}/),w=y?parseInt(y[1],10):2,D=y?new RegExp("\\{\\d+decimals\\}","g"):"{decimals}";let O;p?O=s.reviewPending.requestAmount||0:O=d?s.updateAmount:s.amount,O=parseInt(O).toFixed(w);const[se,re]=C.includes(".")?[",","."]:[".",","];let[Ae,Be]=O.split(".");return Ae=Ae.replace(/\B(?=(\d{3})+(?!\d))/g,se),O=`${Ae}${re}${Be}`,f=f.replace("{currency}",ke[s.currency]||s.currency).replace("{amount}",O.split(re)[0]).replace(D,O.split(re)[1]),f},Ne=()=>{i(28,ie=i(27,we=!1)),i(16,_e=""),window.postMessage({type:"CloseLimitsPopup"},window.location.href),window.postMessage({type:"EnableScroll"},window.location.href),i(24,X=!1)},Si=()=>{window.postMessage({type:"uploadDocuments"},window.location.href),Ne()},Pi=s=>{console.log(s);let d=0;return Object.keys(s).forEach(p=>{d+=s[p].size}),d<=Number(R)},Ai=s=>{let d=!1;return Object.keys(s).forEach(p=>{const f=s[p].name.split(".").pop();return Y.includes(f)?d=!0:d=!1}),d},nt=s=>!s&&!(s.length>0)?i(29,fe=!1):(i(20,he=s),Pi(he)?Ai(he)?i(29,fe=!0):(console.error(o("fileExtenssionDeny")),i(29,fe=!1)):(console.error(o("fileSizeExceeded")),i(29,fe=!1))),Di=()=>{if(!fe)return;i(28,ie=!1);const s=new URL(`${L}/api/v1/mm/content/${m}/url-upload/`),d={method:"POST",headers:{"Content-Type":"application/json","X-SessionId":u},body:JSON.stringify({})};fetch(s,d).then(p=>$(p)).then(p=>{Ci(p)}).catch(p=>{console.error(o("errorUploadDocument"),p),i(20,he=null),i(29,fe=!1)})},Ci=s=>{const d=new FormData;d.append(s.requestId,he[0]),fetch(s.url,{method:"POST",body:d}).then(p=>$(p)).then(p=>{window.postMessage({type:"WidgetNotification",data:{type:"success",message:o("uploadSuccess")}},window.location.href),ue=p.Files[0].Reference,Ce.remove.id?tt(Ce.remove):Ye()}).catch(p=>{window.postMessage({type:"WidgetNotification",data:{type:"error",message:o("errorUploadDocument")}},window.location.href),console.error(o("errorUploadDocument"),p)}).finally(()=>{Ne(),i(20,he=null),i(29,fe=!1)})},Ti=()=>{if(!k)return;let s={};k.split(",").forEach(d=>{let p=d.split(":");s[p[0].trim()]=p[1].trim()}),ke=ge(ge({},ke),s)},ji=()=>{Zi(r)},st=s=>{if(s.data)switch(s.data.type){case"LimitDisableState":{i(32,Fe=s.data.data);break}case"SubmitLimitNotification":{Xe();break}}};e.onMount(()=>(window.addEventListener("message",st),T==="true"&&E.length&&Ie(),()=>{window.removeEventListener("message",st)}));const Ei=s=>nt(s.target.files),Mi=()=>ae(),Ii=s=>et(s),Ui=s=>at(s),Ni=s=>it(s);function Bi(s,d,p){e.binding_callbacks[s?"unshift":"push"](()=>{W[d][p]=s,i(8,W),i(2,T),i(9,E)})}function Ri(){ye=e.select_value(this),i(17,ye)}const Wi=()=>{Ke(),Ge(),Qe()};function Oi(){v=e.select_value(this),i(12,v),i(10,H),i(11,z)}function Fi(){q=e.to_number(this.value),i(18,q)}function Vi(s){e.binding_callbacks[s?"unshift":"push"](()=>{V=s,i(7,V)})}return a.$$set=s=>{"lang"in s&&i(54,r=s.lang),"currency"in s&&i(0,c=s.currency),"limits"in s&&i(55,g=s.limits),"session"in s&&i(56,u=s.session),"userid"in s&&i(57,m=s.userid),"endpoint"in s&&i(58,L=s.endpoint),"apiversion"in s&&i(59,_=s.apiversion),"companylimits"in s&&i(1,b=s.companylimits),"customcurrencysymbols"in s&&i(60,k=s.customcurrencysymbols),"netdepositprogress"in s&&i(2,T=s.netdepositprogress),"enablecompliancetext"in s&&i(3,Z=s.enablecompliancetext),"deletelimit"in s&&i(4,J=s.deletelimit),"amountsconfig"in s&&i(61,I=s.amountsconfig),"periodsconfig"in s&&i(62,N=s.periodsconfig),"defaultperiod"in s&&i(63,U=s.defaultperiod),"limittabindex"in s&&i(5,B=s.limittabindex),"limitformat"in s&&i(64,C=s.limitformat),"allowedextenssion"in s&&i(65,Y=s.allowedextenssion),"filesizeallow"in s&&i(66,R=s.filesizeallow),"clientstyling"in s&&i(67,M=s.clientstyling),"clientstylingurl"in s&&i(68,x=s.clientstylingurl),"translationurl"in s&&i(69,P=s.translationurl),"mbsource"in s&&i(70,F=s.mbsource),"timezone"in s&&i(71,h=s.timezone),"isLimitNotification"in s&&i(6,j=s.isLimitNotification),"cooloffstrictmode"in s&&i(72,G=s.cooloffstrictmode),"$$scope"in s&&i(73,l=s.$$scope)},a.$$.update=()=>{if(a.$$.dirty[1]&536870912&&k&&Ti(),a.$$.dirty[1]&1073741824|a.$$.dirty[2]&1&&N&&I&&qt(),a.$$.dirty[1]&8388608&&r&&ji(),a.$$.dirty[1]&511705088&&m&&u&&L&&_&&r&&ae(),a.$$.dirty[0]&128|a.$$.dirty[2]&32&&M&&V&&e.setClientStyling(V,M),a.$$.dirty[0]&128|a.$$.dirty[2]&64&&x&&V&&e.setClientStylingURL(V,x),a.$$.dirty[0]&128|a.$$.dirty[2]&256&&F&&V&&e.setStreamStyling(V,`${F}.Style`),a.$$.dirty[2]&128&&P&&Ot(),a.$$.dirty[0]&772&&T==="true"&&E.length){const s=E.map(p=>{var f;return new Array(((f=p.currentLimits)==null?void 0:f.length)||0).fill(null)});(W.length!==s.length||W.some((p,f)=>p.length!==s[f].length))&&i(8,W=s)}a.$$.dirty[0]&772&&T==="true"&&W.length===E.length&&oi()&&Ie()},[c,b,T,Z,J,B,j,V,W,E,H,z,v,S,K,te,_e,ye,q,xe,he,ee,Oe,Te,X,ne,je,we,ie,fe,ze,ve,Fe,Ee,o,me,Ht,Ge,Ke,ae,ai,Je,ui,Xe,Qe,et,it,at,Ue,ot,Ne,Si,nt,Di,r,g,u,m,L,_,k,I,N,U,C,Y,R,M,x,P,F,h,G,l,n,Ei,Mi,Ii,Ui,Ni,Bi,Ri,Wi,Oi,Fi,Vi]}class Rt extends e.SvelteComponent{constructor(t){super(),e.init(this,t,Ma,Ea,e.safe_not_equal,{lang:54,currency:0,limits:55,session:56,userid:57,endpoint:58,apiversion:59,companylimits:1,customcurrencysymbols:60,netdepositprogress:2,enablecompliancetext:3,deletelimit:4,amountsconfig:61,periodsconfig:62,defaultperiod:63,limittabindex:5,limitformat:64,allowedextenssion:65,filesizeallow:66,clientstyling:67,clientstylingurl:68,translationurl:69,mbsource:70,timezone:71,isLimitNotification:6,cooloffstrictmode:72},Ji,[-1,-1,-1,-1,-1,-1])}get lang(){return this.$$.ctx[54]}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[55]}set limits(t){this.$$set({limits:t}),e.flush()}get session(){return this.$$.ctx[56]}set session(t){this.$$set({session:t}),e.flush()}get userid(){return this.$$.ctx[57]}set userid(t){this.$$set({userid:t}),e.flush()}get endpoint(){return this.$$.ctx[58]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get apiversion(){return this.$$.ctx[59]}set apiversion(t){this.$$set({apiversion:t}),e.flush()}get companylimits(){return this.$$.ctx[1]}set companylimits(t){this.$$set({companylimits:t}),e.flush()}get customcurrencysymbols(){return this.$$.ctx[60]}set customcurrencysymbols(t){this.$$set({customcurrencysymbols:t}),e.flush()}get netdepositprogress(){return this.$$.ctx[2]}set netdepositprogress(t){this.$$set({netdepositprogress:t}),e.flush()}get enablecompliancetext(){return this.$$.ctx[3]}set enablecompliancetext(t){this.$$set({enablecompliancetext:t}),e.flush()}get deletelimit(){return this.$$.ctx[4]}set deletelimit(t){this.$$set({deletelimit:t}),e.flush()}get amountsconfig(){return this.$$.ctx[61]}set amountsconfig(t){this.$$set({amountsconfig:t}),e.flush()}get periodsconfig(){return this.$$.ctx[62]}set periodsconfig(t){this.$$set({periodsconfig:t}),e.flush()}get defaultperiod(){return this.$$.ctx[63]}set defaultperiod(t){this.$$set({defaultperiod:t}),e.flush()}get limittabindex(){return this.$$.ctx[5]}set limittabindex(t){this.$$set({limittabindex:t}),e.flush()}get limitformat(){return this.$$.ctx[64]}set limitformat(t){this.$$set({limitformat:t}),e.flush()}get allowedextenssion(){return this.$$.ctx[65]}set allowedextenssion(t){this.$$set({allowedextenssion:t}),e.flush()}get filesizeallow(){return this.$$.ctx[66]}set filesizeallow(t){this.$$set({filesizeallow:t}),e.flush()}get clientstyling(){return this.$$.ctx[67]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[68]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[69]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get mbsource(){return this.$$.ctx[70]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get timezone(){return this.$$.ctx[71]}set timezone(t){this.$$set({timezone:t}),e.flush()}get isLimitNotification(){return this.$$.ctx[6]}set isLimitNotification(t){this.$$set({isLimitNotification:t}),e.flush()}get cooloffstrictmode(){return this.$$.ctx[72]}set cooloffstrictmode(t){this.$$set({cooloffstrictmode:t}),e.flush()}}e.create_custom_element(Rt,{lang:{},currency:{},limits:{},session:{},userid:{},endpoint:{},apiversion:{},companylimits:{},customcurrencysymbols:{},netdepositprogress:{},enablecompliancetext:{},deletelimit:{},amountsconfig:{},periodsconfig:{},defaultperiod:{},limittabindex:{},limitformat:{},allowedextenssion:{},filesizeallow:{},clientstyling:{},clientstylingurl:{},translationurl:{},mbsource:{},timezone:{},isLimitNotification:{},cooloffstrictmode:{}},["LimitSkeleton","LimitsList","LimitSubmitButton"],[],!0);exports.default=Rt;
|