@everymatrix/player-account-gaming-limits-wrapper-2-nd 1.94.37 → 1.94.39
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-DsBLzI-w.js → PlayerAccountGamingLimitsHistory2Nd-Bv20bdkK.js} +1 -1
- package/components/{PlayerAccountGamingLimitsHistory2Nd-Cg4qwKUL.cjs → PlayerAccountGamingLimitsHistory2Nd-Cj3gwYJd.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsHistory2Nd-IN6UJ9R2.js → PlayerAccountGamingLimitsHistory2Nd-af2W3SID.js} +1 -1
- package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-WR3D9AwV.js → PlayerAccountGamingLimitsPage2Gm16Nd-BUl-xKTB.js} +5 -2
- package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-CaDcJudL.js → PlayerAccountGamingLimitsPage2Gm16Nd-ZAFruKPb.js} +5 -2
- package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-MjKuKn59.cjs → PlayerAccountGamingLimitsPage2Gm16Nd-mpx5cGJA.cjs} +2 -2
- package/components/{PlayerAccountGamingLimitsWrapper2Nd-BxhNetsT.js → PlayerAccountGamingLimitsWrapper2Nd-BL9Po3kR.js} +2 -2
- package/components/{PlayerAccountGamingLimitsWrapper2Nd-BOyCL09h.js → PlayerAccountGamingLimitsWrapper2Nd-CdUWGucw.js} +2 -2
- package/components/{PlayerAccountGamingLimitsWrapper2Nd-CN6rnrYp.cjs → PlayerAccountGamingLimitsWrapper2Nd-DDGAfCDQ.cjs} +1 -1
- package/es2015/player-account-gaming-limits-wrapper-2-nd.cjs +1 -1
- package/es2015/player-account-gaming-limits-wrapper-2-nd.js +1 -1
- package/esnext/player-account-gaming-limits-wrapper-2-nd.js +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var va=Object.defineProperty,ba=Object.defineProperties;var ka=Object.getOwnPropertyDescriptors;var pi=Object.getOwnPropertySymbols;var wa=Object.prototype.hasOwnProperty,_a=Object.prototype.propertyIsEnumerable;var di=(o,t,i)=>t in o?va(o,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):o[t]=i,J=(o,t)=>{for(var i in t||(t={}))wa.call(t,i)&&di(o,i,t[i]);if(pi)for(var i of pi(t))_a.call(t,i)&&di(o,i,t[i]);return o},ye=(o,t)=>ba(o,ka(t));var ge=(o,t,i)=>new Promise((s,a)=>{var l=u=>{try{d(i.next(u))}catch(f){a(f)}},r=u=>{try{d(i.throw(u))}catch(f){a(f)}},d=u=>u.done?s(u.value):Promise.resolve(u.value).then(l,r);d((i=i.apply(o,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./PlayerAccountGamingLimitsWrapper2Nd-
|
|
1
|
+
"use strict";var va=Object.defineProperty,ba=Object.defineProperties;var ka=Object.getOwnPropertyDescriptors;var pi=Object.getOwnPropertySymbols;var wa=Object.prototype.hasOwnProperty,_a=Object.prototype.propertyIsEnumerable;var di=(o,t,i)=>t in o?va(o,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):o[t]=i,J=(o,t)=>{for(var i in t||(t={}))wa.call(t,i)&&di(o,i,t[i]);if(pi)for(var i of pi(t))_a.call(t,i)&&di(o,i,t[i]);return o},ye=(o,t)=>ba(o,ka(t));var ge=(o,t,i)=>new Promise((s,a)=>{var l=u=>{try{d(i.next(u))}catch(f){a(f)}},r=u=>{try{d(i.throw(u))}catch(f){a(f)}},d=u=>u.done?s(u.value):Promise.resolve(u.value).then(l,r);d((i=i.apply(o,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./PlayerAccountGamingLimitsWrapper2Nd-DDGAfCDQ.cjs");require("../stencil/ui-skeleton-BreIU6e5.cjs");const Z={lugas:{title:"Deposit Limit",value:"lugas",callValue:"lugasLimit",callValue16:"Lugas"},deposit:{title:"Deposit Limit",value:"deposit",callValue:"depositLimits",callValue16:"Deposit"},loss:{title:"Loss Limit",value:"loss",callValue:"lossLimits",callValue16:"Loss"},wager:{title:"Wager Limit",value:"wager",callValue:"wageringLimits",callValue16:"Wagering"},stake:{title:"Stake Limit",value:"stake",callValue:"maxStake",callValue16:"MaxStake"},sessionLimit:{title:"Single Session Time Limit",value:"sessionLimit",callValue:"sessionLimits",callValue16:"sessionLimit"},cumulativeSession:{title:"Cumulative Session Time Limit",value:"cumulativeSession",callValue:"cumulativeSessionLimits",callValue16:"cumulativeSession"},netdeposit:{title:"Net Deposit Limit",value:"netdeposit",callValue:"netDepositLimits",callValue16:"NetDeposit"}};function ui(o,t){e.addMessages(o,t)}function Sa(o){e.$locale.set(o)}const qe={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",netdeposit:"Net 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}",popupOperatorLimitInPlace:"Another limit is currently in place. Please contact Customer Support for assistance.",popupPendingOperatorLimit:"We have received the request to change the limit. Please be aware that the effect may come into effect on",popupTitleAdded:"Limit added",popupLimitRemoved:"Your limit has been removed.",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 pending.",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}",popupLimitRemoved:"A limit eltávolítva.",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}",popupLimitRemoved:"Ihr Limit wurde entfernt.",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(a,"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(W,G){e.insert(W,t,G),e.append(t,i),e.append(i,s),e.append(i,a),e.append(t,l),e.append(t,r),e.append(t,d),e.append(t,u),e.append(t,f),e.append(t,c),e.append(t,L),e.append(t,b),e.append(t,v),e.append(t,w),e.append(t,k),e.append(t,A),e.append(t,D),e.append(t,z),e.append(t,B)},d(W){W&&e.detach(t)}}}function Fa(o){let t,i=o[41]("popupSuccess")+"",s;return{c(){t=e.element("p"),s=e.text(i)},m(a,l){e.insert(a,t,l),e.append(t,s)},p(a,l){l[1]&1024&&i!==(i=a[41]("popupSuccess")+"")&&e.set_data(s,i)},d(a){a&&e.detach(t)}}}function qa(o){let t,i=o[41]("docsRequired")+"",s;return{c(){t=e.element("p"),s=e.text(i)},m(a,l){e.insert(a,t,l),e.append(t,s)},p(a,l){l[1]&1024&&i!==(i=a[41]("docsRequired")+"")&&e.set_data(s,i)},d(a){a&&e.detach(t)}}}function Ga(o){let t,i=o[41]("popupError")+"",s;return{c(){t=e.element("p"),s=e.text(i)},m(a,l){e.insert(a,t,l),e.append(t,s)},p(a,l){l[1]&1024&&i!==(i=a[41]("popupError")+"")&&e.set_data(s,i)},d(a){a&&e.detach(t)}}}function Ha(o){let t,i=o[41]("okButton")+"",s,a,l;return{c(){t=e.element("button"),s=e.text(i),e.attr(t,"class","ConfirmButton "+(o[42]?"":"Mobile"))},m(r,d){e.insert(r,t,d),e.append(t,s),a||(l=e.listen(t,"click",o[57]),a=!0)},p(r,d){d[1]&1024&&i!==(i=r[41]("okButton")+"")&&e.set_data(s,i)},d(r){r&&e.detach(t),a=!1,l()}}}function Ka(o){let t,i=o[41]("uploadDocumentsButton")+"",s,a,l=o[41]("closeButton")+"",r,d,u;return{c(){t=e.element("button"),s=e.space(),a=e.element("button"),r=e.text(l),e.attr(t,"class","ConfirmButton"),e.attr(a,"class","CloseButton")},m(f,c){e.insert(f,t,c),t.innerHTML=i,e.insert(f,s,c),e.insert(f,a,c),e.append(a,r),d||(u=[e.listen(t,"click",o[58]),e.listen(a,"click",o[57])],d=!0)},p(f,c){c[1]&1024&&i!==(i=f[41]("uploadDocumentsButton")+"")&&(t.innerHTML=i),c[1]&1024&&l!==(l=f[41]("closeButton")+"")&&e.set_data(r,l)},d(f){f&&(e.detach(t),e.detach(s),e.detach(a)),d=!1,e.run_all(u)}}}function Ya(o){let t,i=o[41]("noFileUploaded")+"",s;return{c(){t=e.element("p"),s=e.text(i),e.attr(t,"class","historyItem")},m(a,l){e.insert(a,t,l),e.append(t,s)},p(a,l){l[1]&1024&&i!==(i=a[41]("noFileUploaded")+"")&&e.set_data(s,i)},d(a){a&&e.detach(t)}}}function Za(o){let t,i=e.ensure_array_like(Array.from(o[23])),s=[];for(let a=0;a<i.length;a+=1)s[a]=zi(Pi(o,i,a));return{c(){for(let a=0;a<s.length;a+=1)s[a].c();t=e.empty()},m(a,l){for(let r=0;r<s.length;r+=1)s[r]&&s[r].m(a,l);e.insert(a,t,l)},p(a,l){if(l[0]&8388608){i=e.ensure_array_like(Array.from(a[23]));let r;for(r=0;r<i.length;r+=1){const d=Pi(a,i,r);s[r]?s[r].p(d,l):(s[r]=zi(d),s[r].c(),s[r].m(t.parentNode,t))}for(;r<s.length;r+=1)s[r].d(1);s.length=i.length}},d(a){a&&e.detach(t),e.destroy_each(s,a)}}}function zi(o){let t,i=o[214].name+"",s;return{c(){t=e.element("p"),s=e.text(i),e.attr(t,"class","historyItem")},m(a,l){e.insert(a,t,l),e.append(t,s)},p(a,l){l[0]&8388608&&i!==(i=a[214].name+"")&&e.set_data(s,i)},d(a){a&&e.detach(t)}}}function xi(o){let t,i=o[41]("filesUploadError")+"",s;return{c(){t=e.element("p"),s=e.text(i),e.attr(t,"class","filesError")},m(a,l){e.insert(a,t,l),e.append(t,s)},p(a,l){l[1]&1024&&i!==(i=a[41]("filesUploadError")+"")&&e.set_data(s,i)},d(a){a&&e.detach(t)}}}function Xa(o){let t,i,s,a,l,r,d=o[41]("setLimit")+"",u,f,c,L,b,v,w,k=o[27]?`${o[41]("amount")}`:`${o[41](`new${o[14]}Limit`)}`,A,D,z,B,W,G,T,U,ue,ne;const O=o[89].LimitsList,Q=e.create_slot(O,o,o[88],Ai),se=Q||gn(o);let Le=e.ensure_array_like(o[9]),ee=[];for(let _=0;_<Le.length;_+=1)ee[_]=Ki(bi(o,Le,_));let oe=o[2]==="true"&&Yi(o),te=o[26]&&Zi(o),ae=o[27]&&o[13]&&o[12][o[13]]&&Ji(o),re=o[36]&&o[35]&&!o[37]&&eo(o);const Me=o[89].LimitSubmitButton,Ce=e.create_slot(Me,o,o[88],Li),$=Ce||yn(o);return{c(){t=e.element("div"),i=e.element("div"),se&&se.c(),s=e.space(),a=e.element("form");for(let _=0;_<ee.length;_+=1)ee[_].c();l=e.space(),r=e.element("p"),u=e.text(d),f=e.space(),oe&&oe.c(),c=e.space(),te&&te.c(),L=e.space(),ae&&ae.c(),b=e.space(),v=e.element("label"),w=e.element("span"),A=e.text(k),D=e.space(),z=e.element("input"),W=e.space(),re&&re.c(),G=e.space(),$&&$.c(),e.attr(r,"class","LimitTitle "+(o[42]?"":"Mobile")),e.attr(w,"class","LimitInputText"),e.attr(z,"type","number"),e.attr(z,"pattern","[0-9]*"),e.attr(z,"step",B=o[6]==="true"?"0.01":"1"),z.disabled=o[37],e.attr(v,"class","LimitAmountInputWrapper "+(o[42]?"":"Mobile")),e.attr(a,"class","LimitsInteractionArea "+(o[42]?"":"Mobile")),e.attr(i,"class","LimitsPageContainer"),e.attr(t,"class",T="player-account-gaming-limits-page-2-gm16 "+("LimitTab"+o[4]))},m(_,x){e.insert(_,t,x),e.append(t,i),se&&se.m(i,null),e.append(i,s),e.append(i,a);for(let N=0;N<ee.length;N+=1)ee[N]&&ee[N].m(a,null);e.append(a,l),e.append(a,r),e.append(r,u),e.append(a,f),oe&&oe.m(a,null),e.append(a,c),te&&te.m(a,null),e.append(a,L),ae&&ae.m(a,null),e.append(a,b),e.append(a,v),e.append(v,w),e.append(w,A),e.append(v,D),e.append(v,z),e.set_input_value(z,o[21]),e.append(v,W),re&&re.m(v,null),e.append(a,G),$&&$.m(a,null),U=!0,ue||(ne=[e.listen(z,"input",o[102]),e.listen(z,"input",o[49]),e.listen(z,"wheel",o[50]),e.listen(a,"submit",o[51])],ue=!0)},p(_,x){if(Q?Q.p&&(!U||x[2]&67108864)&&e.update_slot_base(Q,O,_,_[88],U?e.get_slot_changes(O,_[88],x,Ma):e.get_all_dirty_from_scope(_[88]),Ai):se&&se.p&&(!U||x[0]&50335243|x[1]&1536)&&se.p(_,U?x:[-1,-1,-1,-1,-1,-1,-1]),x[0]&512|x[1]&3072){Le=e.ensure_array_like(_[9]);let N;for(N=0;N<Le.length;N+=1){const Te=bi(_,Le,N);ee[N]?ee[N].p(Te,x):(ee[N]=Ki(Te),ee[N].c(),ee[N].m(a,l))}for(;N<ee.length;N+=1)ee[N].d(1);ee.length=Le.length}(!U||x[1]&1024)&&d!==(d=_[41]("setLimit")+"")&&e.set_data(u,d),_[2]==="true"?oe?oe.p(_,x):(oe=Yi(_),oe.c(),oe.m(a,c)):oe&&(oe.d(1),oe=null),_[26]?te?te.p(_,x):(te=Zi(_),te.c(),te.m(a,L)):te&&(te.d(1),te=null),_[27]&&_[13]&&_[12][_[13]]?ae?ae.p(_,x):(ae=Ji(_),ae.c(),ae.m(a,b)):ae&&(ae.d(1),ae=null),(!U||x[0]&134234112|x[1]&1024)&&k!==(k=_[27]?`${_[41]("amount")}`:`${_[41](`new${_[14]}Limit`)}`)&&e.set_data(A,k),(!U||x[0]&64&&B!==(B=_[6]==="true"?"0.01":"1"))&&e.attr(z,"step",B),(!U||x[1]&64)&&(z.disabled=_[37]),x[0]&2097152&&e.to_number(z.value)!==_[21]&&e.set_input_value(z,_[21]),_[36]&&_[35]&&!_[37]?re?re.p(_,x):(re=eo(_),re.c(),re.m(v,null)):re&&(re.d(1),re=null),Ce?Ce.p&&(!U||x[2]&67108864)&&e.update_slot_base(Ce,Me,_,_[88],U?e.get_slot_changes(Me,_[88],x,Ia):e.get_all_dirty_from_scope(_[88]),Li):$&&$.p&&(!U||x[1]&1168)&&$.p(_,U?x:[-1,-1,-1,-1,-1,-1,-1]),(!U||x[0]&16&&T!==(T="player-account-gaming-limits-page-2-gm16 "+("LimitTab"+_[4])))&&e.attr(t,"class",T)},i(_){U||(e.transition_in(se,_),e.transition_in($,_),U=!0)},o(_){e.transition_out(se,_),e.transition_out($,_),U=!1},d(_){_&&e.detach(t),se&&se.d(_),e.destroy_each(ee,_),oe&&oe.d(),te&&te.d(),ae&&ae.d(),re&&re.d(),$&&$.d(_),ue=!1,e.run_all(ne)}}}function Ja(o){let t;return{c(){t=e.element("p"),t.textContent="500 Server error"},m(i,s){e.insert(i,t,s)},p:e.noop,i:e.noop,o:e.noop,d(i){i&&e.detach(t)}}}function Qa(o){let t;const i=o[89].LimitSkeleton,s=e.create_slot(i,o,o[88],Ci),a=s||bn(o);return{c(){a&&a.c()},m(l,r){a&&a.m(l,r),t=!0},p(l,r){s&&s.p&&(!t||r[2]&67108864)&&e.update_slot_base(s,i,l,l[88],t?e.get_slot_changes(i,l[88],r,Na):e.get_all_dirty_from_scope(l[88]),Ci)},i(l){t||(e.transition_in(a,l),t=!0)},o(l){e.transition_out(a,l),t=!1},d(l){a&&a.d(l)}}}function Di(o){let t,i=e.ensure_array_like([o[9].filter(o[91])]),s=[];for(let a=0;a<1;a+=1)s[a]=Gi(ki(o,i,a));return{c(){for(let a=0;a<1;a+=1)s[a].c();t=e.empty()},m(a,l){for(let r=0;r<1;r+=1)s[r]&&s[r].m(a,l);e.insert(a,t,l)},p(a,l){if(l[0]&50335243|l[1]&63049216){i=e.ensure_array_like([a[9].filter(a[91])]);let r;for(r=0;r<1;r+=1){const d=ki(a,i,r);s[r]?s[r].p(d,l):(s[r]=Gi(d),s[r].c(),s[r].m(t.parentNode,t))}for(;r<1;r+=1)s[r].d(1)}},d(a){a&&e.detach(t),e.destroy_each(s,a)}}}function $a(o){let t=[],i=new Map,s,a=e.ensure_array_like(o[202]);const l=r=>r[197].product+r[197].value;for(let r=0;r<a.length;r+=1){let d=wi(o,a,r),u=l(d);i.set(u,t[r]=Vi(u,d))}return{c(){for(let r=0;r<t.length;r+=1)t[r].c();s=e.empty()},m(r,d){for(let u=0;u<t.length;u+=1)t[u]&&t[u].m(r,d);e.insert(r,s,d)},p(r,d){d[0]&50335243|d[1]&63049216&&(a=e.ensure_array_like(r[202]),t=e.update_keyed_each(t,d,l,1,r,a,i,s.parentNode,e.destroy_block,Vi,s,wi))},d(r){r&&e.detach(s);for(let d=0;d<t.length;d+=1)t[d].d(r)}}}function en(o){let t,i=o[202][0].value==="netdeposit"&&o[41]("newLimitInfoText").trim().length>0,s,a,l,r=o[41]("noLimitText")+"",d,u,f=o[202].length>0&&Fi(o),c=i&&qi(o);return{c(){f&&f.c(),t=e.space(),c&&c.c(),s=e.space(),a=e.element("div"),l=e.element("p"),d=e.text(r),u=e.space(),e.attr(l,"class","LimitsInfoText "+(o[42]?"":"Mobile")),e.attr(a,"class","NoLimitMessageInfo")},m(L,b){f&&f.m(L,b),e.insert(L,t,b),c&&c.m(L,b),e.insert(L,s,b),e.insert(L,a,b),e.append(a,l),e.append(l,d),e.append(a,u)},p(L,b){L[202].length>0?f?f.p(L,b):(f=Fi(L),f.c(),f.m(t.parentNode,t)):f&&(f.d(1),f=null),b[0]&512|b[1]&1536&&(i=L[202][0].value==="netdeposit"&&L[41]("newLimitInfoText").trim().length>0),i?c?c.p(L,b):(c=qi(L),c.c(),c.m(s.parentNode,s)):c&&(c.d(1),c=null),b[1]&1024&&r!==(r=L[41]("noLimitText")+"")&&e.set_data(d,r)},d(L){L&&(e.detach(t),e.detach(s),e.detach(a)),f&&f.d(L),c&&c.d(L)}}}function tn(o){let t,i=o[56](o[197])+"",s,a,l,r,d,u,f,c=o[41]("noLimitText")+"",L,b,v,w=e.ensure_array_like(o[9]),k=[];for(let A=0;A<w.length;A+=1)k[A]=Ii(_i(o,w,A));return{c(){t=e.element("p"),s=e.text(i),a=e.space();for(let A=0;A<k.length;A+=1)k[A].c();l=e.space(),r=e.element("div"),d=e.element("div"),u=e.element("div"),f=e.element("div"),L=e.text(c),b=e.space(),e.attr(t,"class","LimitTitle "+(o[42]?"":"Mobile")),e.attr(f,"class","LimitDetailsTextWrapper "+(o[42]?"":"Mobile")),e.attr(u,"class","LimitDetailsWrapper"),e.attr(d,"class","LimitDetails"),e.attr(r,"class",v="LimitWrapper "+o[197].value+" "+(o[42]?"":"Mobile"))},m(A,D){e.insert(A,t,D),e.append(t,s),e.insert(A,a,D);for(let z=0;z<k.length;z+=1)k[z]&&k[z].m(A,D);e.insert(A,l,D),e.insert(A,r,D),e.append(r,d),e.append(d,u),e.append(u,f),e.append(f,L),e.append(r,b)},p(A,D){if(D[0]&512|D[1]&512&&i!==(i=A[56](A[197])+"")&&e.set_data(s,i),D[0]&512|D[1]&3072){w=e.ensure_array_like(A[9]);let z;for(z=0;z<w.length;z+=1){const B=_i(A,w,z);k[z]?k[z].p(B,D):(k[z]=Ii(B),k[z].c(),k[z].m(l.parentNode,l))}for(;z<k.length;z+=1)k[z].d(1);k.length=w.length}D[1]&1024&&c!==(c=A[41]("noLimitText")+"")&&e.set_data(L,c),D[0]&512|D[1]&512&&v!==(v="LimitWrapper "+A[197].value+" "+(A[42]?"":"Mobile"))&&e.attr(r,"class",v)},d(A){A&&(e.detach(t),e.detach(a),e.detach(l),e.detach(r)),e.destroy_each(k,A)}}}function on(o){let t,i=o[56](o[197])+"",s,a,l=o[197].value==="netdeposit"&&o[41]("newLimitInfoText").trim().length>0,r,d,u,f,c=l&&Mi(o),L=e.ensure_array_like(o[197].visibleLimitsInUI),b=[];for(let v=0;v<L.length;v+=1)b[v]=Wi(Si(o,L,v));return{c(){t=e.element("p"),s=e.text(i),a=e.space(),c&&c.c(),r=e.space(),d=e.element("div");for(let v=0;v<b.length;v+=1)b[v].c();u=e.space(),e.attr(t,"class","LimitTitle "+(o[42]?"":"Mobile")),e.attr(d,"class",f="LimitWrapper "+o[197].value+" "+(o[10]||o[11]&&o[197].value.toLowerCase().includes("netdeposit")?"ActiveProgressBar":"")+" "+(o[42]?"":"Mobile"))},m(v,w){e.insert(v,t,w),e.append(t,s),e.insert(v,a,w),c&&c.m(v,w),e.insert(v,r,w),e.insert(v,d,w);for(let k=0;k<b.length;k+=1)b[k]&&b[k].m(d,null);e.append(d,u)},p(v,w){if(w[0]&512|w[1]&512&&i!==(i=v[56](v[197])+"")&&e.set_data(s,i),w[0]&512|w[1]&1536&&(l=v[197].value==="netdeposit"&&v[41]("newLimitInfoText").trim().length>0),l?c?c.p(v,w):(c=Mi(v),c.c(),c.m(r.parentNode,r)):c&&(c.d(1),c=null),w[0]&50332171|w[1]&29494784){L=e.ensure_array_like(v[197].visibleLimitsInUI);let k;for(k=0;k<L.length;k+=1){const A=Si(v,L,k);b[k]?b[k].p(A,w):(b[k]=Wi(A),b[k].c(),b[k].m(d,u))}for(;k<b.length;k+=1)b[k].d(1);b.length=L.length}w[0]&3584|w[1]&512&&f!==(f="LimitWrapper "+v[197].value+" "+(v[10]||v[11]&&v[197].value.toLowerCase().includes("netdeposit")?"ActiveProgressBar":"")+" "+(v[42]?"":"Mobile"))&&e.attr(d,"class",f)},d(v){v&&(e.detach(t),e.detach(a),e.detach(r),e.detach(d)),c&&c.d(v),e.destroy_each(b,v)}}}function Ei(o){let t,i=o[41]("activeLimitsInfoText")+"",s;return{c(){t=e.element("p"),s=e.text(i),e.attr(t,"class","LimitsInfoText "+(o[42]?"":"Mobile"))},m(a,l){e.insert(a,t,l),e.append(t,s)},p(a,l){l[1]&1024&&i!==(i=a[41]("activeLimitsInfoText")+"")&&e.set_data(s,i)},d(a){a&&e.detach(t)}}}function Ii(o){let t=o[197].value==="netdeposit"&&o[41]("newLimitInfoText").trim().length>0,i,s=t&&Ei(o);return{c(){s&&s.c(),i=e.empty()},m(a,l){s&&s.m(a,l),e.insert(a,i,l)},p(a,l){l[0]&512|l[1]&1024&&(t=a[197].value==="netdeposit"&&a[41]("newLimitInfoText").trim().length>0),t?s?s.p(a,l):(s=Ei(a),s.c(),s.m(i.parentNode,i)):s&&(s.d(1),s=null)},d(a){a&&e.detach(i),s&&s.d(a)}}}function Mi(o){let t,i=o[41]("activeLimitsInfoText")+"",s;return{c(){t=e.element("p"),s=e.text(i),e.attr(t,"class","LimitsInfoText "+(o[42]?"":"Mobile"))},m(a,l){e.insert(a,t,l),e.append(t,s)},p(a,l){l[1]&1024&&i!==(i=a[41]("activeLimitsInfoText")+"")&&e.set_data(s,i)},d(a){a&&e.detach(t)}}}function an(o){let t,i=(o[24][o[1]]||o[1])+"",s,a=Ke(o[208].amount,o[0])+"",l;return{c(){t=e.element("span"),s=e.text(i),l=e.text(a)},m(r,d){e.insert(r,t,d),e.append(t,s),e.append(t,l)},p(r,d){d[0]&16777218&&i!==(i=(r[24][r[1]]||r[1])+"")&&e.set_data(s,i),d[0]&513|d[1]&512&&a!==(a=Ke(r[208].amount,r[0])+"")&&e.set_data(l,a)},d(r){r&&e.detach(t)}}}function nn(o){let t,i=(o[24][o[1]]||o[1])+"",s,a=Ke(o[208].updateAmount,o[0])+"",l;return{c(){t=e.element("span"),s=e.text(i),l=e.text(a)},m(r,d){e.insert(r,t,d),e.append(t,s),e.append(t,l)},p(r,d){d[0]&16777218&&i!==(i=(r[24][r[1]]||r[1])+"")&&e.set_data(s,i),d[0]&513|d[1]&512&&a!==(a=Ke(r[208].updateAmount,r[0])+"")&&e.set_data(l,a)},d(r){r&&e.detach(t)}}}function sn(o){let t;return{c(){t=e.element("span")},m(i,s){e.insert(i,t,s)},p:e.noop,d(i){i&&e.detach(t)}}}function ji(o){let t,i=o[41]("companyLimitsInfoText")+"",s,a,l,r=(o[24][o[1]]||o[1])+"",d,u=Ke(o[208].restrictiveDisplayAmount,o[0])+"",f;return{c(){t=e.element("div"),s=e.text(i),a=e.space(),l=e.element("span"),d=e.text(r),f=e.text(u),e.attr(t,"class","CompanyLimitsInfoText")},m(c,L){e.insert(c,t,L),e.append(t,s),e.append(t,a),e.append(t,l),e.append(l,d),e.append(l,f)},p(c,L){L[1]&1024&&i!==(i=c[41]("companyLimitsInfoText")+"")&&e.set_data(s,i),L[0]&16777218&&r!==(r=(c[24][c[1]]||c[1])+"")&&e.set_data(d,r),L[0]&513|L[1]&512&&u!==(u=Ke(c[208].restrictiveDisplayAmount,c[0])+"")&&e.set_data(f,u)},d(c){c&&e.detach(t)}}}function rn(o){let t,i,s=(o[24][o[1]]||o[1])+"",a,l=Ke(o[208].updateAmount,o[0])+"",r,d;function u(L,b){return L[208].isCoolOffCompleted?mn:un}let f=u(o),c=f(o);return{c(){t=e.element("div"),i=e.element("span"),a=e.text(s),r=e.text(l),d=e.space(),c.c(),e.attr(t,"class","PendingLimit")},m(L,b){e.insert(L,t,b),e.append(t,i),e.append(i,a),e.append(i,r),e.append(t,d),c.m(t,null)},p(L,b){b[0]&16777218&&s!==(s=(L[24][L[1]]||L[1])+"")&&e.set_data(a,s),b[0]&513|b[1]&512&&l!==(l=Ke(L[208].updateAmount,L[0])+"")&&e.set_data(r,l),f===(f=u(L))&&c?c.p(L,b):(c.d(1),c=f(L),c&&(c.c(),c.m(t,null)))},d(L){L&&e.detach(t),c.d()}}}function ln(o){let t;function i(l,r){return l[208].isCoolOffCompleted?fn:cn}let s=i(o),a=s(o);return{c(){t=e.element("div"),a.c(),e.attr(t,"class","PendingLimit")},m(l,r){e.insert(l,t,r),a.m(t,null)},p(l,r){s===(s=i(l))&&a?a.p(l,r):(a.d(1),a=s(l),a&&(a.c(),a.m(t,null)))},d(l){l&&e.detach(t),a.d()}}}function pn(o){let t,i=o[41]("acknowledgedLimit")+"",s;return{c(){t=e.element("div"),s=e.text(i),e.attr(t,"class","PendingLimit")},m(a,l){e.insert(a,t,l),e.append(t,s)},p(a,l){l[1]&1024&&i!==(i=a[41]("acknowledgedLimit")+"")&&e.set_data(s,i)},d(a){a&&e.detach(t)}}}function dn(o){let t,i,s=(o[24][o[1]]||o[1])+"",a,l=(o[208].reviewPending.requestAmount||0).toFixed(2)+"",r,d,u=` ${o[41](o[208].period)} ${o[41]("updateAfterDocApproval")}`,f;return{c(){t=e.element("div"),i=e.element("span"),a=e.text(s),r=e.text(l),d=e.space(),f=e.text(u),e.attr(t,"class","PendingLimit")},m(c,L){e.insert(c,t,L),e.append(t,i),e.append(i,a),e.append(i,r),e.append(t,d),e.append(t,f)},p(c,L){L[0]&16777218&&s!==(s=(c[24][c[1]]||c[1])+"")&&e.set_data(a,s),L[0]&512|L[1]&512&&l!==(l=(c[208].reviewPending.requestAmount||0).toFixed(2)+"")&&e.set_data(r,l),L[0]&512|L[1]&1536&&u!==(u=` ${c[41](c[208].period)} ${c[41]("updateAfterDocApproval")}`)&&e.set_data(f,u)},d(c){c&&e.detach(t)}}}function un(o){let t=` ${o[41](o[208].period)} ${o[41]("updateText")} ${o[208].expiryDate}`,i;return{c(){i=e.text(t)},m(s,a){e.insert(s,i,a)},p(s,a){a[0]&512|a[1]&1536&&t!==(t=` ${s[41](s[208].period)} ${s[41]("updateText")} ${s[208].expiryDate}`)&&e.set_data(i,t)},d(s){s&&e.detach(i)}}}function mn(o){let t=` ${o[41](o[208].period)} ${o[41]("updateAfterConfirm")}`,i;return{c(){i=e.text(t)},m(s,a){e.insert(s,i,a)},p(s,a){a[0]&512|a[1]&1536&&t!==(t=` ${s[41](s[208].period)} ${s[41]("updateAfterConfirm")}`)&&e.set_data(i,t)},d(s){s&&e.detach(i)}}}function cn(o){let t=o[41]("removedLimitText")+"",i,s,a=o[208].expiryDate+"",l;return{c(){i=e.text(t),s=e.space(),l=e.text(a)},m(r,d){e.insert(r,i,d),e.insert(r,s,d),e.insert(r,l,d)},p(r,d){d[1]&1024&&t!==(t=r[41]("removedLimitText")+"")&&e.set_data(i,t),d[0]&512|d[1]&512&&a!==(a=r[208].expiryDate+"")&&e.set_data(l,a)},d(r){r&&(e.detach(i),e.detach(s),e.detach(l))}}}function fn(o){let t=o[41]("removeAfterConfirm")+"",i;return{c(){i=e.text(t)},m(s,a){e.insert(s,i,a)},p(s,a){a[1]&1024&&t!==(t=s[41]("removeAfterConfirm")+"")&&e.set_data(i,t)},d(s){s&&e.detach(i)}}}function Ni(o){let t,i,s=!o[208].isModified&&o[3].toLowerCase().includes(o[197].value.toLowerCase())&&(!o[208].reviewPending||!o[208].reviewPending.id),a,l=o[208].acknowledgedLimit&&(!o[208].reviewPending||!o[208].reviewPending.id)&&Ui(o),r=s&&Bi(o),d=o[208].isCoolOffCompleted&&!o[208].acknowledgedLimit&&(!o[208].reviewPending||!o[208].reviewPending.id)&&Oi(o);return{c(){t=e.element("div"),l&&l.c(),i=e.space(),r&&r.c(),a=e.space(),d&&d.c(),e.attr(t,"class","ContainerLimitActions "+(o[42]?"":"Mobile"))},m(u,f){e.insert(u,t,f),l&&l.m(t,null),e.append(t,i),r&&r.m(t,null),e.append(t,a),d&&d.m(t,null)},p(u,f){u[208].acknowledgedLimit&&(!u[208].reviewPending||!u[208].reviewPending.id)?l?l.p(u,f):(l=Ui(u),l.c(),l.m(t,i)):l&&(l.d(1),l=null),f[0]&520|f[1]&512&&(s=!u[208].isModified&&u[3].toLowerCase().includes(u[197].value.toLowerCase())&&(!u[208].reviewPending||!u[208].reviewPending.id)),s?r?r.p(u,f):(r=Bi(u),r.c(),r.m(t,a)):r&&(r.d(1),r=null),u[208].isCoolOffCompleted&&!u[208].acknowledgedLimit&&(!u[208].reviewPending||!u[208].reviewPending.id)?d?d.p(u,f):(d=Oi(u),d.c(),d.m(t,null)):d&&(d.d(1),d=null)},d(u){u&&e.detach(t),l&&l.d(),r&&r.d(),d&&d.d()}}}function Ui(o){var d;let t,i=(((d=o[25][o[208].scheduleId])==null?void 0:d.timer)||"Reload")+"",s,a,l,r;return{c(){var u;t=e.element("button"),s=e.text(i),e.attr(t,"class",a="ReloadLimitButton "+(o[42]?"":"Mobile")+" "+((u=o[25][o[208].scheduleId])!=null&&u.timerStopped?"":"disabled"))},m(u,f){e.insert(u,t,f),e.append(t,s),l||(r=e.listen(t,"click",o[92]),l=!0)},p(u,f){var c,L;f[0]&33554944|f[1]&512&&i!==(i=(((c=u[25][u[208].scheduleId])==null?void 0:c.timer)||"Reload")+"")&&e.set_data(s,i),f[0]&33554944|f[1]&512&&a!==(a="ReloadLimitButton "+(u[42]?"":"Mobile")+" "+((L=u[25][u[208].scheduleId])!=null&&L.timerStopped?"":"disabled"))&&e.attr(t,"class",a)},d(u){u&&e.detach(t),l=!1,r()}}}function Bi(o){let t,i=o[41]("removeLimit")+"",s,a,l;function r(){return o[93](o[208])}return{c(){t=e.element("button"),s=e.text(i),e.attr(t,"class","RemoveLimitButton "+(o[42]?"":"Mobile"))},m(d,u){e.insert(d,t,u),e.append(t,s),a||(l=e.listen(t,"click",r),a=!0)},p(d,u){o=d,u[1]&1024&&i!==(i=o[41]("removeLimit")+"")&&e.set_data(s,i)},d(d){d&&e.detach(t),a=!1,l()}}}function Oi(o){let t,i=o[41]("confirmUpdateLimit")+"",s,a,l,r=o[41]("cancelUpdateLimit")+"",d,u,f;function c(){return o[94](o[208])}function L(){return o[95](o[208])}return{c(){t=e.element("button"),s=e.text(i),a=e.space(),l=e.element("button"),d=e.text(r),e.attr(t,"class","ConfirmLimitButton "+(o[42]?"":"Mobile")),e.attr(l,"class","CancelLimitButton "+(o[42]?"":"Mobile"))},m(b,v){e.insert(b,t,v),e.append(t,s),e.insert(b,a,v),e.insert(b,l,v),e.append(l,d),u||(f=[e.listen(t,"click",c),e.listen(l,"click",L)],u=!0)},p(b,v){o=b,v[1]&1024&&i!==(i=o[41]("confirmUpdateLimit")+"")&&e.set_data(s,i),v[1]&1024&&r!==(r=o[41]("cancelUpdateLimit")+"")&&e.set_data(d,r)},d(b){b&&(e.detach(t),e.detach(a),e.detach(l)),u=!1,e.run_all(f)}}}function Ri(o){let t,i;return{c(){t=e.element("div"),e.attr(t,"class","ProgressBarContainer"),e.attr(t,"id",i=`progress-${o[209]}-${o[211]}`)},m(s,a){e.insert(s,t,a)},p(s,a){a[0]&512|a[1]&512&&i!==(i=`progress-${s[209]}-${s[211]}`)&&e.attr(t,"id",i)},d(s){s&&e.detach(t)}}}function Wi(o){let t,i,s,a,l,r,d=` ${o[41](o[208].period)}`,u,f,c,L,b;function v(T,U){return T[208].isVirtual||T[208].amount===1/0||T[208].amount===null?sn:T[208].acknowledgedLimit?nn:an}let w=v(o),k=w(o),A=o[208].showInfoMessage&&ji(o);function D(T,U){if(T[208].reviewPending&&T[208].reviewPending.id)return dn;if(T[208].acknowledgedLimit)return pn;if(T[208].isModified&&T[208].updateAmount===0)return ln;if(T[208].isModified)return rn}let z=D(o),B=z&&z(o),W=!o[208].isOperator&&Ni(o),G=!o[208].shouldHideProgress&&Ri(o);return{c(){t=e.element("div"),i=e.element("div"),s=e.element("div"),a=e.element("div"),l=e.element("div"),k.c(),r=e.space(),u=e.text(d),f=e.space(),A&&A.c(),c=e.space(),B&&B.c(),L=e.space(),W&&W.c(),b=e.space(),G&&G.c(),e.attr(l,"class","CurrentLimit"),e.attr(a,"class","CurrentLimitContainer"),e.attr(s,"class","LimitDetailsTextWrapper "+(o[42]?"":"Mobile")+" "+(o[211]>0?"SubsequentLimit":"")),e.attr(i,"class","LimitDetailsWrapper"),e.attr(t,"class","LimitDetails")},m(T,U){e.insert(T,t,U),e.append(t,i),e.append(i,s),e.append(s,a),e.append(a,l),k.m(l,null),e.append(l,r),e.append(l,u),e.append(a,f),A&&A.m(a,null),e.append(s,c),B&&B.m(s,null),e.append(s,L),W&&W.m(s,null),e.append(s,b),G&&G.m(s,null)},p(T,U){w===(w=v(T))&&k?k.p(T,U):(k.d(1),k=w(T),k&&(k.c(),k.m(l,r))),U[0]&512|U[1]&1536&&d!==(d=` ${T[41](T[208].period)}`)&&e.set_data(u,d),T[208].showInfoMessage?A?A.p(T,U):(A=ji(T),A.c(),A.m(a,null)):A&&(A.d(1),A=null),z===(z=D(T))&&B?B.p(T,U):(B&&B.d(1),B=z&&z(T),B&&(B.c(),B.m(s,L))),T[208].isOperator?W&&(W.d(1),W=null):W?W.p(T,U):(W=Ni(T),W.c(),W.m(s,b)),T[208].shouldHideProgress?G&&(G.d(1),G=null):G?G.p(T,U):(G=Ri(T),G.c(),G.m(s,null))},d(T){T&&e.detach(t),k.d(),A&&A.d(),B&&B.d(),W&&W.d(),G&&G.d()}}}function Vi(o,t){let i,s;function a(d,u){if(d[197].visibleLimitsInUI&&d[197].visibleLimitsInUI.length>0)return on;if(!d[10])return tn}let l=a(t),r=l&&l(t);return{key:o,first:null,c(){i=e.empty(),r&&r.c(),s=e.empty(),this.first=i},m(d,u){e.insert(d,i,u),r&&r.m(d,u),e.insert(d,s,u)},p(d,u){t=d,l===(l=a(t))&&r?r.p(t,u):(r&&r.d(1),r=l&&l(t),r&&(r.c(),r.m(s.parentNode,s)))},d(d){d&&(e.detach(i),e.detach(s)),r&&r.d(d)}}}function Fi(o){let t,i=o[56](o[202][0])+"",s;return{c(){t=e.element("p"),s=e.text(i),e.attr(t,"class","LimitTitle "+(o[42]?"":"Mobile"))},m(a,l){e.insert(a,t,l),e.append(t,s)},p(a,l){l[0]&512|l[1]&512&&i!==(i=a[56](a[202][0])+"")&&e.set_data(s,i)},d(a){a&&e.detach(t)}}}function qi(o){let t,i=o[41]("activeLimitsInfoText")+"",s;return{c(){t=e.element("p"),s=e.text(i),e.attr(t,"class","LimitsInfoText "+(o[42]?"":"Mobile"))},m(a,l){e.insert(a,t,l),e.append(t,s)},p(a,l){l[1]&1024&&i!==(i=a[41]("activeLimitsInfoText")+"")&&e.set_data(s,i)},d(a){a&&e.detach(t)}}}function Gi(o){let t;function i(l,r){return l[10]&&!l[203]?en:$a}let s=i(o),a=s(o);return{c(){a.c(),t=e.empty()},m(l,r){a.m(l,r),e.insert(l,t,r)},p(l,r){s===(s=i(l))&&a?a.p(l,r):(a.d(1),a=s(l),a&&(a.c(),a.m(t.parentNode,t)))},d(l){l&&e.detach(t),a.d(l)}}}function gn(o){let t,i=o[9]&&Di(o);return{c(){t=e.element("div"),i&&i.c(),e.attr(t,"class","LimitsList")},m(s,a){e.insert(s,t,a),i&&i.m(t,null)},p(s,a){s[9]?i?i.p(s,a):(i=Di(s),i.c(),i.m(t,null)):i&&(i.d(1),i=null)},d(s){s&&e.detach(t),i&&i.d()}}}function Hi(o){let t,i=o[41]("newLimitInfoText")+"",s;return{c(){t=e.element("p"),s=e.text(i),e.attr(t,"class","LimitsInfoText "+(o[42]?"":"Mobile"))},m(a,l){e.insert(a,t,l),e.append(t,s)},p(a,l){l[1]&1024&&i!==(i=a[41]("newLimitInfoText")+"")&&e.set_data(s,i)},d(a){a&&e.detach(t)}}}function Ki(o){let t=o[197].value==="netdeposit"&&o[41]("newLimitInfoText")!=="newLimitInfoText"&&o[41]("newLimitInfoText").trim().length,i,s=t&&Hi(o);return{c(){s&&s.c(),i=e.empty()},m(a,l){s&&s.m(a,l),e.insert(a,i,l)},p(a,l){l[0]&512|l[1]&1024&&(t=a[197].value==="netdeposit"&&a[41]("newLimitInfoText")!=="newLimitInfoText"&&a[41]("newLimitInfoText").trim().length),t?s?s.p(a,l):(s=Hi(a),s.c(),s.m(i.parentNode,i)):s&&(s.d(1),s=null)},d(a){a&&e.detach(i),s&&s.d(a)}}}function Yi(o){let t,i,s=o[41]("complianceText")+"",a;return{c(){t=e.element("div"),i=e.element("p"),a=e.text(s),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,a)},p(l,r){r[1]&1024&&s!==(s=l[41]("complianceText")+"")&&e.set_data(a,s)},d(l){l&&e.detach(t)}}}function Zi(o){let t,i,s=o[41]("limitType")+"",a,l,r,d,u,f=e.ensure_array_like(o[9]),c=[];for(let L=0;L<f.length;L+=1)c[L]=Xi(vi(o,f,L));return{c(){t=e.element("label"),i=e.element("span"),a=e.text(s),l=e.space(),r=e.element("select");for(let L=0;L<c.length;L+=1)c[L].c();e.attr(i,"class","LimitSelectText"),e.attr(r,"name",""),e.attr(r,"id",""),o[20]===void 0&&e.add_render_callback(()=>o[96].call(r)),e.attr(t,"class","LimitTypeDropdownWrapper "+(o[42]?"":"Mobile"))},m(L,b){e.insert(L,t,b),e.append(t,i),e.append(i,a),e.append(t,l),e.append(t,r);for(let v=0;v<c.length;v+=1)c[v]&&c[v].m(r,null);e.select_option(r,o[20],!0),d||(u=[e.listen(r,"change",o[96]),e.listen(r,"change",o[97])],d=!0)},p(L,b){if(b[1]&1024&&s!==(s=L[41]("limitType")+"")&&e.set_data(a,s),b[0]&512|b[1]&33554432){f=e.ensure_array_like(L[9]);let v;for(v=0;v<f.length;v+=1){const w=vi(L,f,v);c[v]?c[v].p(w,b):(c[v]=Xi(w),c[v].c(),c[v].m(r,null))}for(;v<c.length;v+=1)c[v].d(1);c.length=f.length}b[0]&1048576&&e.select_option(r,L[20])},d(L){L&&e.detach(t),e.destroy_each(c,L),d=!1,e.run_all(u)}}}function Xi(o){let t,i=o[56](o[197])+"",s;return{c(){t=e.element("option"),s=e.text(i),t.__value=o[199],e.set_input_value(t,t.__value)},m(a,l){e.insert(a,t,l),e.append(t,s)},p(a,l){l[0]&512&&i!==(i=a[56](a[197])+"")&&e.set_data(s,i)},d(a){a&&e.detach(t)}}}function Ji(o){let t,i,s=o[41]("period")+"",a,l;function r(f,c){return f[7]==="true"?hn:Ln}let d=r(o),u=d(o);return{c(){t=e.element("div"),i=e.element("span"),a=e.text(s),l=e.space(),u.c(),e.attr(i,"class","PeriodSelectText"),e.attr(t,"class","LimitPeriodDropdownWrapper "+(o[42]?"":"Mobile"))},m(f,c){e.insert(f,t,c),e.append(t,i),e.append(i,a),e.append(t,l),u.m(t,null)},p(f,c){c[1]&1024&&s!==(s=f[41]("period")+"")&&e.set_data(a,s),d===(d=r(f))&&u?u.p(f,c):(u.d(1),u=d(f),u&&(u.c(),u.m(t,null)))},d(f){f&&e.detach(t),u.d()}}}function Ln(o){let t,i,s,a=e.ensure_array_like(o[12][o[13]].periods),l=[];for(let r=0;r<a.length;r+=1)l[r]=Qi(hi(o,a,r));return{c(){t=e.element("select");for(let r=0;r<l.length;r+=1)l[r].c();e.attr(t,"name",""),e.attr(t,"id",""),t.disabled=o[37],o[14]===void 0&&e.add_render_callback(()=>o[101].call(t))},m(r,d){e.insert(r,t,d);for(let u=0;u<l.length;u+=1)l[u]&&l[u].m(t,null);e.select_option(t,o[14],!0),i||(s=[e.listen(t,"change",o[101]),e.listen(t,"change",o[45])],i=!0)},p(r,d){if(d[0]&12288|d[1]&1024){a=e.ensure_array_like(r[12][r[13]].periods);let u;for(u=0;u<a.length;u+=1){const f=hi(r,a,u);l[u]?l[u].p(f,d):(l[u]=Qi(f),l[u].c(),l[u].m(t,null))}for(;u<l.length;u+=1)l[u].d(1);l.length=a.length}d[1]&64&&(t.disabled=r[37]),d[0]&28672&&e.select_option(t,r[14])},d(r){r&&e.detach(t),e.destroy_each(l,r),i=!1,e.run_all(s)}}}function hn(o){let t,i,s,a=o[41](o[14])+"",l,r,d,u,f,c,L,b,v=e.ensure_array_like(o[12][o[13]].periods),w=[];for(let k=0;k<v.length;k+=1)w[k]=$i(yi(o,v,k));return{c(){t=e.element("div"),i=e.element("div"),s=e.element("p"),l=e.text(a),r=e.space(),d=e.svg_element("svg"),u=e.svg_element("path"),f=e.space(),c=e.element("div");for(let k=0;k<w.length;k+=1)w[k].c();e.attr(u,"d","M 90 24.25 c 0 -0.896 -0.342 -1.792 -1.025 -2.475 c -1.366 -1.367 -3.583 -1.367 -4.949 0 L 45 60.8 L 5.975 21.775 c -1.367 -1.367 -3.583 -1.367 -4.95 0 c -1.366 1.367 -1.366 3.583 0 4.95 l 41.5 41.5 c 1.366 1.367 3.583 1.367 4.949 0 l 41.5 -41.5 C 89.658 26.042 90 25.146 90 24.25 z"),e.attr(d,"xmlns","http://www.w3.org/2000/svg"),e.attr(d,"viewBox","0 0 100 100"),e.attr(d,"class","LimitsConfigIcon"),e.toggle_class(d,"active",o[39]),e.attr(i,"class","LimitsConfigLabel"),e.attr(i,"role","button"),e.attr(i,"tabindex","0"),e.attr(c,"class","LimitsDropDown"),e.toggle_class(c,"active",o[39]),e.attr(t,"class","LimitsConfigWrapper "+(o[42]?"":"LimitsConfigWrapperMobile")),e.toggle_class(t,"active",o[39])},m(k,A){e.insert(k,t,A),e.append(t,i),e.append(i,s),e.append(s,l),e.append(i,r),e.append(i,d),e.append(d,u),e.append(t,f),e.append(t,c);for(let D=0;D<w.length;D+=1)w[D]&&w[D].m(c,null);L||(b=[e.listen(i,"click",o[43]),e.listen(i,"keydown",o[98])],L=!0)},p(k,A){if(A[0]&16384|A[1]&1024&&a!==(a=k[41](k[14])+"")&&e.set_data(l,a),A[1]&256&&e.toggle_class(d,"active",k[39]),A[0]&28672|A[1]&9216){v=e.ensure_array_like(k[12][k[13]].periods);let D;for(D=0;D<v.length;D+=1){const z=yi(k,v,D);w[D]?w[D].p(z,A):(w[D]=$i(z),w[D].c(),w[D].m(c,null))}for(;D<w.length;D+=1)w[D].d(1);w.length=v.length}A[1]&256&&e.toggle_class(c,"active",k[39]),A[1]&256&&e.toggle_class(t,"active",k[39])},d(k){k&&e.detach(t),e.destroy_each(w,k),L=!1,e.run_all(b)}}}function Qi(o){let t,i=o[41](o[192])+"",s,a;return{c(){t=e.element("option"),s=e.text(i),t.__value=a=o[192],e.set_input_value(t,t.__value)},m(l,r){e.insert(l,t,r),e.append(t,s)},p(l,r){r[0]&12288|r[1]&1024&&i!==(i=l[41](l[192])+"")&&e.set_data(s,i),r[0]&12288&&a!==(a=l[192])&&(t.__value=a,e.set_input_value(t,t.__value))},d(l){l&&e.detach(t)}}}function $i(o){let t,i=o[41](o[192])+"",s,a,l,r,d;function u(){return o[99](o[192])}function f(...c){return o[100](o[192],...c)}return{c(){t=e.element("div"),s=e.text(i),a=e.space(),e.attr(t,"role","option"),e.attr(t,"tabindex","0"),e.attr(t,"aria-selected",l=o[14]===o[192])},m(c,L){e.insert(c,t,L),e.append(t,s),e.append(t,a),r||(d=[e.listen(t,"click",u),e.listen(t,"keydown",f)],r=!0)},p(c,L){o=c,L[0]&12288|L[1]&1024&&i!==(i=o[41](o[192])+"")&&e.set_data(s,i),L[0]&28672&&l!==(l=o[14]===o[192])&&e.attr(t,"aria-selected",l)},d(c){c&&e.detach(t),r=!1,e.run_all(d)}}}function eo(o){let t,i=o[21]===null?`${o[41]("invalidInputMessage")}`:o[21]<o[15]?`${o[41]("invalidInputMessageLimitMin",{values:{minValue:o[15],maxValue:o[16],currency:o[1]}})}`:`${o[41]("invalidInputMessageLimitMax",{values:{minValue:o[15],maxValue:o[16],currency:o[1]}})}`,s;return{c(){t=e.element("p"),s=e.text(i),e.attr(t,"class","InvalidInput")},m(a,l){e.insert(a,t,l),e.append(t,s)},p(a,l){l[0]&2195458|l[1]&1024&&i!==(i=a[21]===null?`${a[41]("invalidInputMessage")}`:a[21]<a[15]?`${a[41]("invalidInputMessageLimitMin",{values:{minValue:a[15],maxValue:a[16],currency:a[1]}})}`:`${a[41]("invalidInputMessageLimitMax",{values:{minValue:a[15],maxValue:a[16],currency:a[1]}})}`)&&e.set_data(s,i)},d(a){a&&e.detach(t)}}}function yn(o){let t,i=o[41]("setLimit")+"",s,a;return{c(){t=e.element("button"),s=e.text(i),e.attr(t,"class","LimitSubmitButton "+(o[42]?"":"Mobile")),e.attr(t,"type","submit"),t.disabled=a=o[35]||o[38]},m(l,r){e.insert(l,t,r),e.append(t,s)},p(l,r){r[1]&1024&&i!==(i=l[41]("setLimit")+"")&&e.set_data(s,i),r[1]&144&&a!==(a=l[35]||l[38])&&(t.disabled=a)},d(l){l&&e.detach(t)}}}function vn(o){let t;return{c(){t=e.element("div"),t.innerHTML='<div class="skeletonLimitAmount"><div class="skeletonAmountText"><ui-skeleton width="auto" height="20px" structure="text" margin-right="auto"></ui-skeleton></div> <div class="skeletonSubText"><ui-skeleton width="auto" height="20px" structure="text" margin-right="auto"></ui-skeleton></div></div> <div class="skeletonLimitButton"><div><ui-skeleton width="auto" height="40px" structure="rectangle" margin-right="auto"></ui-skeleton></div> <div><ui-skeleton width="auto" height="40px" structure="rectangle" margin-right="auto"></ui-skeleton></div></div> ',e.attr(t,"class","skeletonLimitContent")},m(i,s){e.insert(i,t,s)},p:e.noop,d(i){i&&e.detach(t)}}}function bn(o){let t,i,s,a,l,r,d=e.ensure_array_like(Array(3)),u=[];for(let f=0;f<d.length;f+=1)u[f]=vn(ja(o,d,f));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>',s=e.space(),a=e.element("div");for(let f=0;f<u.length;f+=1)u[f].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(a,"class","skeletonLimitWrapper"),e.attr(r,"class","skeletonInputWrapper"),e.attr(t,"class","skeletonLimitContainer")},m(f,c){e.insert(f,t,c),e.append(t,i),e.append(t,s),e.append(t,a);for(let L=0;L<u.length;L+=1)u[L]&&u[L].m(a,null);e.append(t,l),e.append(t,r)},p:e.noop,d(f){f&&e.detach(t),e.destroy_each(u,f)}}}function kn(o){let t,i,s,a,l,r=o[31]&&o[5]==="false"&&Ti(o);const d=[Qa,Ja,Xa],u=[];function f(c,L){return c[28]?0:c[29]?1:c[28]?-1:2}return~(s=f(o))&&(a=u[s]=d[s](o)),{c(){t=e.element("div"),r&&r.c(),i=e.space(),a&&a.c()},m(c,L){e.insert(c,t,L),r&&r.m(t,null),e.append(t,i),~s&&u[s].m(t,null),o[103](t),l=!0},p(c,L){c[31]&&c[5]==="false"?r?r.p(c,L):(r=Ti(c),r.c(),r.m(t,i)):r&&(r.d(1),r=null);let b=s;s=f(c),s===b?~s&&u[s].p(c,L):(a&&(e.group_outros(),e.transition_out(u[b],1,1,()=>{u[b]=null}),e.check_outros()),~s?(a=u[s],a?a.p(c,L):(a=u[s]=d[s](c),a.c()),e.transition_in(a,1),a.m(t,null)):a=null)},i(c){l||(e.transition_in(a),l=!0)},o(c){e.transition_out(a),l=!1},d(c){c&&e.detach(t),r&&r.d(),~s&&u[s].d(),o[103](null)}}}function wn(o,t,i){let s,a,l,r;e.component_subscribe(o,e.$format,n=>i(41,r=n));let{$$slots:d={},$$scope:u}=t,{lang:f="en"}=t,{currency:c=""}=t,{limits:L=""}=t,{session:b=""}=t,{userid:v=""}=t,{endpoint:w=""}=t,{apiversion:k=""}=t,{companylimits:A="false"}=t,{tablabels:D=""}=t,{showcompanylimitsinfo:z="false"}=t,{customcurrencysymbols:B=""}=t,{netdepositprogress:W="false"}=t,{enablecompliancetext:G=""}=t,{deletelimit:T=""}=t,{amountsconfig:U=""}=t,{periodsconfig:ue=""}=t,{defaultperiod:ne=""}=t,{limittabindex:O=""}=t,{tabcategory:Q=""}=t,{limitformat:se=""}=t,{allowedextenssion:Le=".jpg,.jpeg,.png,.pdf,.webp,image/png"}=t,{filesizeallow:ee="12934000"}=t,{clientstyling:oe=""}=t,{clientstylingurl:te=""}=t,{translationurl:ae=""}=t,{mbsource:re}=t,{timezone:Me="GMT"}=t,{isLimitNotification:Ce="false"}=t,{cooloffstrictmode:$="false"}=t,{inputhasdecimals:_}=t,{usecustomdropdown:x="false"}=t,N,Te=[],io,oo=window.navigator.userAgent,ao=!e.isMobile(oo),gt=1/0,Lt=1/0,st=0,R="",le="",je="",Je=0,Qe=0,ht="",We="",he="",rt="",yt="popupTitle",Ne=0,Vt,q,lt,M=[],me={},Ue={},$e={},no={},Ye,et=J({},Ot),vt={remove:{}},ce={},ve={},Ft=!1,At=!1,de=!0,Ee=!1,Ct=!1,tt=!1,Pe=!1,Ge=!1,pt=!1,Be=!0,dt=!1,qt=!1,Gt=!1,bt=!1,be=!1,kt=!1,wt=!1,Ze=!1;const Ht=n=>{if(n==="local")return Ht(Intl.DateTimeFormat().resolvedOptions().timeZone);try{return Intl.DateTimeFormat(void 0,{timeZone:n}),n}catch(p){return console.warn(`[Player Account Gaming Limits] Invalid timezone "${n}" — falling back to "GMT".`),"GMT"}},so=(n,p=new Date)=>{var m,g;if(n==="GMT"||n==="UTC"||n==="Etc/GMT")return"GMT";try{return(g=(m=Intl.DateTimeFormat("en-US",{timeZone:n,timeZoneName:"short"}).formatToParts(p).find(y=>y.type==="timeZoneName"))==null?void 0:m.value)!=null?g:n}catch(y){return n}},Kt=Ht(Me),it=n=>{const p=new Date(n);if(isNaN(p.getTime()))return"-";const m=so(Kt,p);return`${new Intl.DateTimeFormat("en-DE",{timeZone:Kt,hour:"numeric",minute:"numeric"}).format(p)} (${m})`},Pt=(n,p="GET",m=null)=>ge(this,null,function*(){const g=new URL(n.startsWith("http")?n:`${w}${n}`),y={method:p,headers:{"X-SessionID":b,"Content-Type":"application/json",Accept:"application/json"}};m&&(y.body=JSON.stringify(m));const h=yield fetch(g.href,y);return Se(h)}),ro=()=>{fetch(ae).then(p=>p.json()).then(p=>{Object.keys(p).forEach(m=>{ui(m,p[m])})}).catch(p=>{console.log(p)})};Object.keys(qe).forEach(n=>{ui(n,qe[n])});const Tt=n=>`dataLayer-${n}`,ke=(n,p)=>{if(typeof gtag=="function"){const m=(je||"").toLowerCase(),g=(R||"").toLowerCase(),y=(le||"").toLowerCase();gtag({event:n,limit_category:qe[f][Tt(m)]||je,limit_type:qe[f][Tt(g)]||R,limit_period:qe[f][Tt(y)]||le,limit_amount:q||p})}},Yt=()=>i(39,bt=!bt),zt=n=>{i(14,le=n),i(39,bt=!1)},lo=()=>{var g;const n=U.split(",").map(y=>y.split(":")),p=ue.split(",").map(y=>y.split(":"));for(let[y,h]of n.entries())if(h[0]!==p[y][0])throw new Error(`Limit config mismatch: "${h[0]}" does not match "${p[y][0]}"`);const m=n.reduce((y,h,E)=>{const j=h[0].slice(h[0].indexOf("(")+1,h[0].indexOf(")")),V=h[0].slice(0,h[0].indexOf("(")),I=h[1],P=p[E][1].trim().replace("D","Daily").replace("W","Weekly").replace("M","Monthly").replace("N","None").split("-"),S={value:j,product:V,minMax:I,periods:P,callValue:Z[j].callValue,callValue16:Z[j].callValue16,title:Z[j].title};return y.push(S),y},[]);for(let y=0;y<m.length;y++)i(9,M[y].product=m[y].product,M),i(9,M[y].min=parseInt(m[y].minMax.split("-")[0],10),M),i(9,M[y].max=parseInt(m[y].minMax.split("-")[1],10),M),i(12,Z[m[y].value].periods=m[y].periods,Z);ht=(g=M[0])==null?void 0:g.value,M.forEach(y=>{Ue[y.value]={min:y.min,max:y.max},no[y.value]=y.product}),Ue&&(Ue[ht]?(i(15,Je=Ue[ht].min),i(16,Qe=Ue[ht].max)):(i(15,Je=1),i(16,Qe=9999999)))},po=()=>[...U.matchAll(F.LIMIT_TYPE_EXTRACTOR)].map(n=>n[1]),uo=()=>{i(9,M=[]),po().forEach(m=>{Z[m]?M.push(J({},Z[m])):console.error(`Unknown limit: ${m}`)}),lo(),i(13,R=M[0].value);const p=Z[R].periods;i(14,le=ne&&p.find(m=>m===ne)||p[0]),je=M[0].product,i(26,Ft=M.length>1),i(27,At=Z[R].periods.length>1)},mo=(n,p)=>{var g,y,h;const m=(y=(g=n==null?void 0:n[Ne])==null?void 0:g.currentLimits)==null?void 0:y.find(E=>E.period===p);return(h=m==null?void 0:m.isCoolOffCompleted)!=null?h:!0},co=()=>{$==="true"&&i(38,Gt=!mo(M,le))},xt=()=>{var n,p,m;M[Ne]||i(20,Ne=0),M.length>0&&M[Ne]&&(i(13,R=M[Ne].value),i(14,le=((n=Z[R])==null?void 0:n.periods[0])||""),i(27,At=(((m=(p=Z[R])==null?void 0:p.periods)==null?void 0:m.length)||0)>1))},Zt=()=>{je=M[Ne].product},Se=n=>{if(n.status>=300)fo(n);else return i(30,Ct=!1),n.status!==204?n.json():n},fo=n=>{i(29,Ee=!0);let p;throw n.json().then(m=>{for(const g in fi)if(m.error&&fi[g].some(y=>m.error.includes(y))){p=g;break}console.error("errType",p),!p&&mt(m)}).finally(()=>ge(this,null,function*(){p&&mt(p),i(29,Ee=!1),i(28,de=!1),yield e.tick(),(Ze||be)&&ut()})),new Error("An error occured during the fetch request")},go=()=>ge(this,null,function*(){if(!(q>0))return;xe(),i(28,de=!0);let n=new URL(`${w}/v2/player/${v}/limits`),p={};R===F.SESSION_LIMIT?p={sessionLimit:q,sessionLimitUnit:"minute"}:R===F.CUMULATIVE_SESSION?p[Z[R].callValue]=[{period:le,minutes:q}]:p[Z[R].callValue]=[{period:Z[R].periods[0]==="None"?null:le,amount:q,currency:c}];let m={method:"PUT",headers:{"X-SessionID":b,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(p)};const g=yield fetch(n.href,m);yield Se(g),ke(_e.limitation_success),yield ze()}),Lo=()=>{var g,y;const n=M[Ne],p=Z[R].callValue16;let m=null;if(be){const h={type:p,period:le,product:je};m=((g=me==null?void 0:me.limits)==null?void 0:g.find(E=>ci(E,h)))||null}else{const h=je.toLowerCase();m=((y=n==null?void 0:n.currentLimits)!=null?y:[]).find(j=>{var I,P,S;const V=j;return V.period===le&&((S=(P=(I=V.rawLimit)==null?void 0:I.products)!=null?P:V.products)!=null?S:[]).some(C=>C.toLowerCase()===h)})||null}return m?{action:"UPDATE",targetType:p,limitId:m.id,method:"PUT",endpointVersion:"v2"}:{action:"CREATE",targetType:p,method:"POST",endpointVersion:"v1"}},ho=n=>!n||n.reviewPending&&n.reviewPending.id?!1:!!(n.reviewRequired&&!We&&q&&q>(n.amount||0)),yo=n=>n.action==="UPDATE"?We?{amount:q,skipCoolOff:!1,payload:{DocumentId:We}}:{amount:q,skipCoolOff:!1}:{amount:q,currency:c,period:Z[R].periods[0]==="None"?null:le,type:n.targetType,products:[je],walletTypes:["Deposit","NetDeposit"].includes(n.targetType)?["All"]:["RealCash"]},Xt=()=>ge(this,null,function*(){const n=ii();if(ho(n)){i(34,pt=!0),i(32,Pe=!0),xe(),i(28,de=!1);return}const p=Lo(),m=yo(p);xe(),i(28,de=!0);const g=p.action==="UPDATE"?`${w}/${p.endpointVersion}/player/${v}/limits/monetary/${p.limitId}`:`${w}/${p.endpointVersion}/player/${v}/limits/monetary`,y=new URL(g);try{const h=yield fetch(y.href,{method:p.method,headers:{"X-SessionID":b,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(m)});yield Se(h),ke(_e.limitation_success),yield ze()}catch(h){console.error(h)}finally{i(28,de=!1),i(34,pt=!1),We=""}}),vo=()=>ge(this,null,function*(){if(!(q>0))return;xe(),i(28,de=!0);const n={sessionLimit:q,sessionLimitUnit:"minute"};yield Pt(`/v1/player/${v}/limits/session/`,"PUT",n),ke(_e.limitation_success),yield ze()}),bo=()=>ge(this,null,function*(){if(!(q>0))return;xe(),i(28,de=!0);const n=new URL(`${w}/v1/player/${v}/limits/session/`);let g={method:"PUT",headers:{"X-SessionID":b,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({cumulativeSessionLimits:[{period:le,minutes:q}]})};const y=yield fetch(n.href,g);yield Se(y),ke(_e.limitation_success),yield ze()}),ko=()=>ge(this,null,function*(){if(!(q>0))return;xe(),i(28,de=!0);const n={amount:q,roleLimitAmount:0,softMigration:!1,keepLimit:!1},p=yield Pt(`/v2/player/${v}/limit/lugas`,"POST",n);i(22,lt=p.popup),Vt=p.regulatorDepositLimitAmount,ke(_e.limitation_success),yield ze()}),wo=()=>ge(this,null,function*(){$e={};try{if(k==="gm16")switch(R){case"lugas":yield ko();break;case F.SESSION_LIMIT:yield vo();break;case F.CUMULATIVE_SESSION:yield bo();break;default:yield Xt();break}else if(k==="gmcore")yield go();else throw Error(`Invalid apiversion attribute: ${k}`);Ce==="true"&&(window.postMessage({type:"WidgetNotification",data:{type:"success",message:he}},window.location.href),window.postMessage({type:"SubmitLimitNotificationSuccess"},window.location.href))}catch(n){Ce==="true"&&window.postMessage({type:"WidgetNotification",data:{type:"error",message:r("limitNotificationFail")}},window.location.href),console.error("limitUpdateError:",n)}ke(_e.limitation_request)}),ze=()=>ge(this,null,function*(){switch(k){case"gmcore":yield _o();break;case"gm16":yield Dt();break}}),_o=()=>ge(this,null,function*(){i(28,de=!0);let n=new URL(`${w}/v2/player/${v}/limits`),p={method:"GET",headers:{"X-SessionID":b,"Content-Type":"application/json",Accept:"application/json"}};try{const m=yield fetch(n.href,p);me=Se(m),tt&&mt(),Eo(me),Io(me),i(21,q=null),i(35,Be=!0),i(36,dt=!1)}catch(m){console.error("Error LimitsWidget: ",m),i(29,Ee=!0)}finally{i(28,de=!1)}}),Jt=()=>({method:"GET",headers:{"X-SessionID":b,"Content-Type":"application/json",Accept:"application/json"}}),So=()=>ge(this,null,function*(){const n=be||kt;if(!n&&!Ze)return;let p=ft[l]||[];if(n&&(l===ie.deposit||l===ie.netdeposit)){const m=[...ft[ie.deposit]||[],...ft[ie.netdeposit]||[]];p=[...new Set(m)]}if(p=p.filter(m=>m!=="Wager"),p.length>0){const m=p.map(g=>`playerLimitTypes=${g}`).join("&");yield To(m)}}),Ao=()=>ge(this,null,function*(){const n=new URL(`${w}/v1/player/${v}/limits/monetary`),p=yield fetch(n.href,Jt()),m=yield Se(p);me=m,No(m),yield Po(),yield So(),Et(),tt&&R!==F.SESSION_LIMIT&&R!==F.CUMULATIVE_SESSION&&mt(),yield e.tick(),ut(),i(21,q=null),i(35,Be=!0),i(36,dt=!1)}),Co=()=>ge(this,null,function*(){const n=new URL(`${w}/v1/player/${v}/limits/session`),p=yield fetch(n.href,Jt()),m=yield Se(p);Uo(m),Bo(m),tt&&(R===F.SESSION_LIMIT||R===F.CUMULATIVE_SESSION)&&mt(),i(21,q=null),i(35,Be=!0),i(36,dt=!1)}),Dt=()=>ge(this,null,function*(){i(28,de=!0),i(29,Ee=!1);const n=M.some(p=>p.value===F.SESSION_LIMIT||p.value===F.CUMULATIVE_SESSION);try{const p=[Ao()];n&&p.push(Co()),yield Promise.all(p)}catch(p){i(29,Ee=!0)}finally{i(28,de=!1)}}),Po=()=>ge(this,null,function*(){let n=new URL(`${w}/v1/player/${v}/limits/monetary/balance`);const p={method:"GET",headers:{"X-SessionID":b,"Content-Type":"application/json",Accept:"application/json"}};try{const m=yield fetch(n.href,p),g=yield Se(m);if(!g)return;let y=g.limitBalances||[];Array.isArray(y[0])&&(y=y.flat()),i(9,M=M.map(h=>{if(!h.currentLimits)return h;const E=(h.product||"").toLowerCase(),j=(h.value||"").toLowerCase(),V=j.includes(ie.netdeposit),I=j.includes(ie.deposit)&&!V,P=j.includes(ie.loss),S=j.includes(ie.wager),C=h.currentLimits.map(X=>{var De,Oe;const H=y.filter(we=>{const fe=(we.limitType||"").toLowerCase(),Ae=we.limitPeriod||"",ot=X.period||"",Re=fe.includes(ie.netdeposit),ct=fe.includes(ie.deposit)&&!Re,at=fe.includes(ie.loss),nt=fe.includes(ie.wager),_t=I&&ct||V&&Re||P&&at||S&&nt;return(fe===j||fe===`operator${j}`||fe===`system${j}`||_t)&&(Ae===ot||Ae==="Monthly"&&ot==="Month"||Ae==="Month"&&ot==="Monthly")}),K=we=>H.find(fe=>(fe.limitProducts||[]).map(Ae=>Ae.toLowerCase()).includes(we));let Y=K(E);!Y&&be&&(Y=K("all"));const Ve=Y?(we=>{var fe,Ae;return we?typeof we=="object"?(Ae=(fe=we.parsedValue)!=null?fe:we.amount)!=null?Ae:0:we:0})((Oe=(De=Y.spentBalance)==null?void 0:De.amount)!=null?Oe:Y.spentBalance):0,pe=parseFloat(Ve.toString().replace(F.COMMA_REMOVAL_REGEX,""));return ye(J({},X),{spentBalance:{amount:isNaN(pe)?0:pe}})});return h.currentLimits=Xe(C),h})),Et(),i(9,M=[...M]),yield e.tick(),ut()}catch(m){console.error(m)}}),ut=()=>{M.forEach((n,p)=>{It(p,-1),n.visibleLimitsInUI&&n.visibleLimitsInUI.forEach((m,g)=>{It(p,g)})})},To=(n="")=>ge(this,null,function*(){let p=n;if(!p&&l!==void 0&&(p=(ft[l]||[]).map(h=>`playerLimitTypes=${h}`).join("&")),!p)return;const m=new URL(`/api/pam/v1/limit-balances/most-restrictive?userId=${v}&${p}`,w),g={method:"GET",headers:{"X-SessionID":b,"Content-Type":"application/json",Accept:"application/json"}};try{const y=yield fetch(m.href,g),h=yield Se(y);zo(h)}catch(y){i(29,Ee=!0)}}),zo=n=>{if(k!=="gm16"||!(n!=null&&n.limitBalances))return;let p=n.limitBalances;Array.isArray(p[0])&&(p=p.flat());const m=h=>h==null?0:typeof h=="number"?h:typeof h=="object"&&h.parsedValue!==void 0?parseFloat(h.parsedValue):typeof h=="object"&&h.amount!==void 0?m(h.amount):typeof h=="string"&&parseFloat(h.replace(F.COMMA_REMOVAL_REGEX,""))||0,g=ie.deposit.toLowerCase(),y=ie.netdeposit.toLowerCase();gt=1/0,Lt=1/0,st=0,p.forEach(h=>{var j,V;const E=(h.limitType||"").toLowerCase();if(E.includes(g)||E.includes(y)){const I=m(h.limitAmount),P=m((V=(j=h.spentBalance)==null?void 0:j.amount)!=null?V:h.spentBalance),S=Math.max(0,I-P);I>0&&I<gt&&(gt=I),S<Lt&&(Lt=S),P>st&&(st=P)}}),i(9,M=M.map(h=>{const E=(h.value||"").toLowerCase(),j=(h.product||"").toLowerCase();let V=[];p.forEach(P=>{var H,K;const S=(P.limitType||"").toLowerCase(),C=(P.limitProducts||[]).map(Y=>(Y||"").toLowerCase());(S===E||S===`operator${E}`)&&(C.includes(j)||C.includes("all"))&&V.push(ye(J({},P),{amount:m(P.limitAmount),period:P.limitPeriod,spent:m((K=(H=P.spentBalance)==null?void 0:H.amount)!=null?K:P.spentBalance),source:"API",isCrossFamily:!1,isOperator:S.includes("operator")||S.includes("system")}))}),h.currentLimits&&h.currentLimits.forEach(P=>{var S,C;V.push(ye(J({},P),{amount:parseFloat(P.amount.toString().replace(F.COMMA_REMOVAL_REGEX,"")),spent:(C=(S=P.spentBalance)==null?void 0:S.amount)!=null?C:0,source:F.LOCAL.toUpperCase()}))});const I=V.reduce((P,S)=>{var X,H;const C=be?S.period:`${S.period}_${S.isOperator?"operator":"user"}`;if(!P[C])P[C]=J({},S);else{const K=(X=P[C].reviewPending)!=null&&X.id?P[C].reviewPending:S.reviewPending,Y=(H=P[C].schedules)!=null&&H.length?P[C].schedules:S.schedules,Ie=P[C].isModified||S.isModified;S.amount<=P[C].amount?P[C]=J(J({},P[C]),S):P[C]=J(J({},S),P[C]),K!=null&&K.id&&(P[C].reviewPending=K),Y!=null&&Y.length&&(P[C].schedules=Y),P[C].isModified=Ie}return P},{});return h.allValidLimits=Xe(Object.values(I)),h})),Et()},Et=()=>{if(k!=="gm16")return;const n=ie.netdeposit,p=ie.deposit;i(9,M=M.map(m=>{const g=(m.value||"").toLowerCase(),y=g.includes(n),h=g.includes(p)&&!y,E=h||y;let j=wt&&m.allValidLimits!==void 0?[...m.allValidLimits]:[...m.currentLimits||[]];be||(j=j.filter(I=>!I.isOperator||I.isModified||I.reviewPending&&I.reviewPending.id));const V=j.filter(I=>wt?!I.isCrossFamily:!I.isExternalFamily).map(I=>{const P=I.reviewPending&&I.reviewPending.id,S=(m.currentLimits||[]).find(X=>X.period===I.period),C=S?S.amount:I.amount;return E&>!==1/0?ye(J({},I),{isModified:I.isModified||!!P,amount:be?I.amount:C,effectiveAmount:I.amount,spent:I.spent!==void 0?I.spent:st,spentBalance:{amount:I.spent!==void 0?I.spent:st},showInfoMessage:wt&&h,restrictiveDisplayAmount:Lt,shouldHideProgress:be?!1:y?W!=="true":!0}):ye(J({},I),{isModified:I.isModified||!!P,amount:be?I.amount:C,shouldHideProgress:!be})});return ye(J({},m),{visibleLimitsInUI:V})})),i(9,M=[...M])},xo=()=>M.every((n,p)=>{var g,y;return(((g=n.visibleLimitsInUI)==null?void 0:g.length)||0)===((y=Te[p])==null?void 0:y.length)&&Te[p].every(h=>h!==null)}),Do=(n,p,m,g)=>{try{const y=n>0?Math.min(p/n*100,100):0,h=Math.round(y),E=document.createElement("div");E.className=`Progress-bar-container ${h===0?"ZeroProgress":""}`;const j=document.createElement("div");j.className="Progress-bar-fill",j.style.width=`${y}%`;const V=document.createElement("span");V.className="Progress-bar-label";const I=isNaN(g)?0:g,P=et[m]||m;return V.textContent=`${P}${I.toFixed(2)}`,E.appendChild(j),E.appendChild(V),E}catch(y){return console.error(y),document.createElement("div")}},It=(n,p)=>{var E;const m=M[n];if(!m||!((E=m.visibleLimitsInUI)!=null&&E[p]))return;const g=m.visibleLimitsInUI[p],y=`#progress-${n}-${p}`,h=N==null?void 0:N.querySelector(y);if(h){if(g.shouldHideProgress){h.innerHTML="";return}h.innerHTML="",h.appendChild(Do(g.amount,g.spent,c,g.spent))}},Mt=()=>ge(this,null,function*(){var p,m;yield e.tick();let n=!0;for(let g=0;g<M.length;g++){const y=((p=M[g].visibleLimitsInUI)==null?void 0:p.length)||0;for(let h=0;h<y;h++)if(!Te[g]||!Te[g][h]){n=!1;break}if(!n)break}if(!n){setTimeout(()=>Mt(),10);return}for(let g=0;g<M.length;g++){const y=((m=M[g].visibleLimitsInUI)==null?void 0:m.length)||0;for(let h=0;h<y;h++)It(g,h)}}),Eo=n=>{M.forEach(p=>{p.currentLimits=[];const m=Array.isArray(n[Z[p.value].callValue])?n[Z[p.value].callValue]:[n[Z[p.value].callValue]];m.length===0||m[0]===void 0||(m.forEach((g,y)=>{var E;const h=n[Z[p.value].callValue][y];p.currentLimits.push({}),p.currentLimits[y].limitType=p.value,p.currentLimits[y].amount=se?h.amount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(h.amount),p.currentLimits[y].currency=(E=et[h.currency])!=null?E:h.currency,p.currentLimits[y].period=h.period,p.currentLimits[y].updateAmount=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(h.updateAmount),p.currentLimits[y].isModified=h.isModified,p.currentLimits[y].expiryDate=it(h.expiryDate)}),p.currentLimits=Xe(p.currentLimits))})},Io=n=>{const p=r("minutes");M.filter(m=>m.value===F.SESSION_LIMIT||m.value===F.CUMULATIVE_SESSION).forEach(m=>{var g;m.currentLimits=[],(g=n[Z[m.value].callValue])==null||g.forEach((y,h)=>{const E=n[Z[m.value].callValue][h];m.currentLimits.push({limitType:m.value,amount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(E.minutes),currency:p,isModified:E.isModified,period:m.value===F.CUMULATIVE_SESSION?E.period:"None",updateAmount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(E.updateMinutes),expiryDate:it(E.expiryDate)})}),m.currentLimits=Xe(m.currentLimits)})},Mo=n=>{n.forEach(p=>{ve[p]&&window.clearInterval(ve[p])}),i(25,ce=Object.fromEntries(Object.entries(ce).filter(([p])=>!n.has(p)))),ve=Object.fromEntries(Object.entries(ve).filter(([p])=>!n.has(p))),n.size>0&&Pa(v,[...n])},jo=n=>{const p=qe[f].seconds,m=qe[f].reloadLimitsButton;n.forEach(({scheduleId:g,acknowledgedAt:y})=>{const h=mi(y),E={timer:h>0?`${h} ${p}`:m,timerStopped:h<=0};if(i(25,ce=ye(J({},ce),{[g]:E})),h>0){const j=window.setInterval(()=>{const V=mi(y);V<=0?(ve[g]&&window.clearInterval(ve[g]),ve=Object.fromEntries(Object.entries(ve).filter(([I])=>I!==g)),i(25,ce=ye(J({},ce),{[g]:{timer:m,timerStopped:!0}}))):i(25,ce=ye(J({},ce),{[g]:{timer:`${V} ${p}`,timerStopped:!1}}))},1e3);ve=ye(J({},ve),{[g]:j})}})},No=n=>{if(!(n!=null&&n.limits))return;const p=Ta(n.limits),m=Wt(v),{toRemove:g,toRestore:y}=za(p,m,Object.keys(ce));Mo(g),jo(y),i(9,M=M.map(h=>{const E=(h.product||"").toLowerCase(),j=(h.callValue16||"").toLowerCase(),I=n.limits.filter(S=>{if(!S||!S.type)return!1;const C=S.type.toLowerCase(),X=gi(C);if(!be&&X)return!1;let H=!1;j===ie.deposit?H=C.includes(ie.deposit)&&!C.includes(ie.netdeposit):j===ie.netdeposit?H=C.includes(ie.netdeposit):H=C.includes(j);const K=(Array.isArray(S.products)?S.products:[S.products]).map(Ie=>(Ie||"").toLowerCase());let Y=K.includes(E)||E!=="all"&&K.includes("all");return H&&Y}).reduce((S,C)=>{var Ve,pe,De,Oe,we,fe,Ae,ot;const X=C.period,H=S[X],K=(h.product||"").toLowerCase(),Y=(C.products||[]).some(Re=>Re.toLowerCase()===K),Ie=H?(H.products||[]).some(Re=>Re.toLowerCase()===K):!1;if(!H)S[X]=J({},C);else{const Re=(De=(pe=(Ve=C.amount)==null?void 0:Ve.parsedValue)!=null?pe:C.amount)!=null?De:0,ct=(fe=(we=(Oe=H.amount)==null?void 0:Oe.parsedValue)!=null?we:H.amount)!=null?fe:0,at=(C.type||"").toLowerCase().includes("operator")||(C.type||"").toLowerCase().includes("system"),nt=(H.type||"").toLowerCase().includes("operator")||(H.type||"").toLowerCase().includes("system"),_t=j.includes("loss");let Fe=!1;Y&&!Ie?Fe=!0:!Y&&Ie?Fe=!1:_t&&at&&!nt&&Number(Re)<Number(ct)?Fe=!0:_t&&!at&&nt&&Number(ct)<Number(Re)?Fe=!1:Number(Re)<Number(ct)&&(Fe=!0);let St=Fe?C.schedules:H.schedules,Bt=Fe?C.reviewPending:H.reviewPending;if(at||nt){const He=at?nt?null:H:C;(Ae=He==null?void 0:He.schedules)!=null&&Ae.length&&(St=He.schedules),(ot=He==null?void 0:He.reviewPending)!=null&&ot.id&&(Bt=He.reviewPending)}Fe&&(S[X]=J({},C)),St&&(S[X].schedules=St),Bt&&(S[X].reviewPending=Bt)}return S},{}),P=Object.values(I).map(S=>{var Y,Ie,Ve;const C=S.schedules&&S.schedules.length>0?S.schedules[0]:null,X=S.reviewPending&&S.reviewPending.id?S.reviewPending:null,H=pe=>{var De,Oe;return pe&&typeof pe=="object"?(Oe=(De=pe.parsedValue)!=null?De:pe.amount)!=null?Oe:0:pe!=null?pe:0};let K=0;if(C){const pe=(Ie=(Y=C.updateAmount)==null?void 0:Y.parsedValue)!=null?Ie:C.updateAmount;K=pe!=null?Number(pe):0}else X&&(K=H(X.requestAmount));return{id:S.id,limitType:h.value,amount:H(S.amount),currency:S.currency,period:S.period,isModified:!!C,updateAmount:K,expiryDate:C?it(C.applyAt):"",scheduleId:C?C.id:null,acknowledgedLimit:C?!!ce[C.id]:!1,isCoolOffCompleted:C?C.isCoolOffCompleted:!1,isOperator:(S.type||"").toLowerCase().includes("operator")||(S.type||"").toLowerCase().includes("system"),source:E!=="all"&&(S.products||[]).map(pe=>(pe||"").toLowerCase()).includes("all")?"Inherited":"API",rawLimit:S,reviewRequired:(Ve=S.reviewRequired)!=null?Ve:!1,reviewPending:X?ye(J({},X),{requestAmount:H(X.requestAmount)}):{}}});return ye(J({},h),{currentLimits:Xe(P)})}))},Uo=n=>{n!=null&&n.sessionLimit&&M.filter(p=>p.value===F.SESSION_LIMIT).forEach(p=>{p.currentLimits=[],p.currentLimits.push({limitType:F.SESSION_LIMIT,amount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(n.sessionLimit.minutes),currency:r("minutes"),isModified:n.sessionLimit.isModified,period:"None",updateAmount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(n.sessionLimit.updateMinutes),expiryDate:n.sessionLimit.expiryDate}),p.currentLimits=Xe(p.currentLimits)})},Bo=n=>{n!=null&&n.cumulativeSessionLimits&&M.filter(p=>p.value===F.CUMULATIVE_SESSION).forEach(p=>{p.currentLimits=[];for(const m of n.cumulativeSessionLimits)p.currentLimits.push({limitType:F.CUMULATIVE_SESSION,amount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(m.minutes),currency:r("minutes"),isModified:m.isModified,period:m.period,updateAmount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(m.updateMinutes),expiryDate:m.expiryDate});p.currentLimits=Xe(p.currentLimits)})},Qt=n=>{window.postMessage({type:"InValidLimit",data:n},window.location.href)},$t=()=>{if(i(36,dt=!0),q===null||Number.isNaN(q)){i(35,Be=!0),Qt(Be);return}if(_==="false"){const n=Math.round(q);q!==n&&i(21,q=n)}i(35,Be=q<Je||q>Qe),Qt(Be)},Oo=n=>n.preventDefault(),ei=n=>{n&&n.preventDefault(),$t(),Be||wo()},ti=()=>{i(35,Be=!1),Ue!=null&&Ue[R]?(i(15,Je=Ue[R].min),i(16,Qe=Ue[R].max)):(i(15,Je=1),i(16,Qe=9999999))},Ro=()=>{if(me){const n=me[Z[R].callValue].find(g=>g.period===le),p=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(n.amount);let m=r("popupImmediateUpdate").replace("{selectedLimit}",Nt(n)).replace("{updatedAmount}",p).replace("{currency}",et[n.currency]||n.currency).replace("{selectedPeriod}",r(`${le}`));i(17,he=n.isModified?`${r("popupPendingUpdate")} ${it(n.expiryDate)}`:m)}i(32,Pe=!0)},ii=()=>{var p,m;if(!me||!me.limits)return null;let n=null;if(Object.keys($e).length>0)n=me.limits.find(g=>g.id===$e.id);else{const y={type:((p=Z[R])==null?void 0:p.callValue16)||ie[R],period:le,product:je};n=me.limits.find(h=>ci(h,y))}return((m=n==null?void 0:n.schedules)==null?void 0:m.length)>0&&ce[n.schedules[0].id]&&(n.amount=n.schedules[0].updateAmount),n},jt=n=>{var p,m;return n==null?0:Number(typeof n=="object"?(m=(p=n.parsedValue)!=null?p:n.amount)!=null?m:0:n)},Wo=()=>{var E,j,V,I,P;let n=ii();if(!n||!n.period){i(32,Pe=!0);return}const p=$o(n)||Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(n.amount||0),m=((E=n.schedules)==null?void 0:E.length)>0?it(n.schedules[0].applyAt):"";let g=r("popupImmediateUpdate").replace("{selectedLimit}",Nt(n)).replace("{updatedAmount}",p).replace("{selectedPeriod}",r(`${n.period}`)),y=!1;if(be&&(me!=null&&me.limits)){const S=((V=(j=Z[R])==null?void 0:j.callValue16)==null?void 0:V.toLowerCase())||"";y=me.limits.some(C=>{var we;const X=(C.type||"").toLowerCase();if(!gi(X))return!1;const K=(C.period||"").toLowerCase(),Y=(n.period||"").toLowerCase();if(!(K===Y||K==="day"&&Y==="daily"||K==="daily"&&Y==="day"||K==="week"&&Y==="weekly"||K==="weekly"&&Y==="week"||K==="month"&&Y==="monthly"||K==="monthly"&&Y==="month"))return!1;const Ve=X.replace("operator","").replace("system",""),pe=S===Ve,De=(C.products||[]).map(fe=>(fe||"").toLowerCase()),Oe=De.length===0||De.includes((je||"").toLowerCase())||De.includes("all");if(pe&&Oe){const fe=jt(C.amount);let Ae=((we=n.schedules)==null?void 0:we.length)>0?jt(n.schedules[0].updateAmount):jt(n.amount);return Ae===0&&q>0&&(Ae=q),Ae>fe}return!1})}if(((I=n.schedules)==null?void 0:I.length)>0&&ce[n.schedules[0].id]){const S=Number(n.schedules[0].updateAmount)===0;i(17,he=S?r("popupLimitRemoved"):g),i(19,yt="popupTitle")}else i(19,yt=y?"popupTitleAdded":"popupTitle"),((P=n.schedules)==null?void 0:P.length)>0?i(17,he=y?`${r("popupPendingOperatorLimit")} ${m}`:`${r("popupPendingUpdate")} ${m}`):i(17,he=y?r("popupOperatorLimitInPlace"):g);i(32,Pe=!0)},Vo=()=>{lt==1&&i(18,rt="PopupKyc"),lt==2&&(i(17,he=`${r("popup2_a")}${Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(Vt)} ${c} ${r("popup2_b")}`),i(18,rt="PopupKyc2")),lt==3&&(i(17,he=r("popup3")),i(18,rt="PopupSuccess")),i(32,Pe=!0)},Fo=()=>{i(17,he=r("sessionLimitUpdated")),i(32,Pe=!0)},qo=()=>{if(me){const n=me[Z[R].callValue].find(g=>(g.period===le||le==="None")&&g.products[0]===je),p=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(n.minutes);let m=r("popupImmediateUpdate").replace("{selectedLimit}",r(`${R}`)).replace("{updatedAmount}",p).replace("{currency}",r("minutes")).replace("{selectedPeriod}",r(`${le}`));i(17,he=n.isModified?`${r("popupPendingUpdate")} ${it(n.expiryDate)}`:m)}i(32,Pe=!0)},Go=n=>{var p;return(p=n==null?void 0:n.error)==null?void 0:p.includes("Limit update is not permitted due to LimitUpdateControl")},Ho=n=>{var p;return(p=n==null?void 0:n.error)==null?void 0:p.includes("Limit remove is not permitted due to LimitUpdateControl")},Ko=n=>{var p;return(p=n==null?void 0:n.error)==null?void 0:p.includes("[NotFoundException] Limit does not exist")},Yo=n=>{var p;return(p=n==null?void 0:n.error)==null?void 0:p.includes("[Exception] Schedule does not exist")},Zo=n=>{var p,m;return((p=n.details)==null?void 0:p.includes("Invalid Session"))||((m=n.error)==null?void 0:m.includes("Invalid Session"))},mt=n=>{var p;if(window.postMessage({type:"OpenLimitsPopup"},window.location.href),Ee){if(i(30,Ct=!0),!n){i(32,Pe=!0);return}Go(n)?i(17,he=r("popupUpdateLimitException")):Ho(n)?i(17,he=r("popupRemoveLimitException")):Ko(n)?i(17,he=r("notFoundException")):Yo(n)?i(17,he=r("scheduleNotFoundException")):(p=n==null?void 0:n.error)!=null&&p.includes("LimitUnderReviewException")?i(17,he=r("limitInDocReview")):Zo(n)?i(17,he=r("sessionExpiredException")):i(17,he=r("genericLimitsPopupError")),i(32,Pe=!0);return}switch(k){case"gmcore":R===F.SESSION_LIMIT||R===F.CUMULATIVE_SESSION?qo():Ro();break;case"gm16":R==="lugas"?Vo():R===F.SESSION_LIMIT||R===F.CUMULATIVE_SESSION?Fo():Wo();break;default:throw new Error(`Invalid apiversion attribute: ${k}`)}},xe=()=>{i(31,tt=!0),window.postMessage({type:"DisableScroll"},window.location.href)},Xo=n=>ge(this,null,function*(){i(13,R=n.limitType),i(14,le=n.period),xe(),i(28,de=!0);let p=`/v2/player/${v}/limits/${ie[n.limitType]}`;n.limitType!==F.SESSION_LIMIT&&(p+=`?periods=${n.period}`);try{yield Pt(p,"DELETE"),ke(_e.success,n.amount),ze()}catch(m){ke(_e.failed,n.amount),console.log(m),i(29,Ee=!0)}}),oi=n=>{switch(vt.remove=n,i(13,R=n.limitType||""),k){case"gmcore":Xo(n);break;case"gm16":$e=n,n.limitType===F.SESSION_LIMIT||n.limitType===F.CUMULATIVE_SESSION?Jo(n):ai(n);break}ke(_e.request,n.amount)},Jo=n=>{const p=new URL(`${w}/v1/player/${v}/limits/session/session`),m=new URL(`${w}/v1/player/${v}/limits/session/cumulativeSession?periods=${n.period}`);let g;switch(n.limitType){case F.SESSION_LIMIT:g=p;break;case F.CUMULATIVE_SESSION:g=m;break;default:throw Error(`Unknown limit.limitType: ${n.limitType}`)}xe(),i(28,de=!0);let y={method:"DELETE",headers:{"X-SessionID":b,"Content-Type":"application/json",Accept:"application/json"}};fetch(g.href,y).then(h=>Se(h)).then(h=>{ke(_e.success,n.amount),ze()}).catch(h=>{ke(_e.failed,n.amount),console.log(h),i(29,Ee=!0)})},ai=n=>{if(n&&n.reviewRequired&&!We){i(34,pt=!0),i(32,Pe=!0),xe();return}xe(),i(28,de=!0);const p=new URL(`${w}/v1/player/${v}/limits/monetary/${n.id}`);We&&p.searchParams.append("documentId",We);let m={method:"DELETE",headers:{"X-SessionID":b,"Content-Type":"application/json",Accept:"application/json"}};fetch(p.href,m).then(g=>Se(g)).then(()=>(ke(_e.success,n.amount),ze())).then(()=>{xt()}).catch(g=>{console.error(g),i(29,Ee=!0),ze()}).finally(()=>{vt.remove={},i(34,pt=!1),We="",i(28,de=!1)})},ni=n=>{const p=new URL(`${w}/v1/player/${v}/limits/schedule/${n.scheduleId}`);xe(),i(28,de=!0);let m={method:"DELETE",headers:{"X-SessionID":b,"Content-Type":"application/json",Accept:"application/json"}};fetch(p.href,m).then(g=>Se(g)).then(g=>{$e=n,ke(_e.success,n.updateAmount),ze()}).catch(g=>{ke(_e.failed,n.updateAmount),console.log(g)})},si=n=>{const p=new URL(`${w}/v1/player/${v}/limits/schedule/acknowledge/${n.scheduleId}`);xe(),i(28,de=!0);let m={method:"PATCH",headers:{"X-SessionID":b,"Content-Type":"application/json",Accept:"application/json"}};fetch(p.href,m).then(g=>Se(g)).then(g=>{$e=n,Ca(v,n.scheduleId,Date.now()),Qo(n),ke(_e.success,n.amount),ze()}).catch(g=>{ke(_e.failed,n.amount),console.log(g)})},Qo=n=>{ve[n.scheduleId]&&window.clearInterval(ve[n.scheduleId]);const p=qe[f].seconds,m=qe[f].reloadLimitsButton;let g=60;i(25,ce=ye(J({},ce),{[n.scheduleId]:{timer:`${g} ${p}`,timerStopped:!1}}));const y=window.setInterval(()=>{if(g===0){window.clearInterval(y),ve=Object.fromEntries(Object.entries(ve).filter(([h])=>h!==n.scheduleId)),i(25,ce=ye(J({},ce),{[n.scheduleId]:{timer:m,timerStopped:!0}}));return}g-=1,i(25,ce=ye(J({},ce),{[n.scheduleId]:{timer:`${g} ${p}`,timerStopped:!1}}))},1e3);ve=ye(J({},ve),{[n.scheduleId]:y})},Nt=n=>{var I;if(!n)return r(R||"");const p=(n.value||n.limitType||n.type||"").toLowerCase(),m=((I=Object.entries(ie).sort((P,S)=>S[1].length-P[1].length).find(([P,S])=>p.includes(S.toLowerCase())||p.includes(P.toLowerCase())))==null?void 0:I[0])||p,g=(n.product||n.products&&n.products[0]||"").toLowerCase(),y=g&&g!=="all"?g.charAt(0).toUpperCase()+g.slice(1):"",h=m+y,E=r(h);if(E!==h)return E;const j=r(m);if(j!==m)return j;const V=P=>{const S=r(P);return(S!==P?S:P.charAt(0).toUpperCase()+P.slice(1)).replace(F.LIMIT_SUFFIX_REGEX,"").trim()};if(g&&g!==""&&g!=="all"){const P=V(m),S=V(g);return`${P} - ${S} Limit`}return m.charAt(0).toUpperCase()+m.slice(1)},$o=(n,p=!1,m=!1)=>{if(!se)return m?`${n.reviewPending.requestAmount}${n.currency}`:p?`${n.updateAmount}${n.currency}`:`${n.amount}${n.currency}`;let g=se;const y=g.match(F.DYNAMIC_DECIMALS_REGEX),h=_==="true"?y?parseInt(y[1],10):2:0,E=y?new RegExp("\\{\\d+decimals\\}","g"):"{decimals}";let j;m?j=n.reviewPending.requestAmount||0:j=p?n.updateAmount:n.amount;let V=_==="true"?parseFloat(j).toFixed(h):Math.round(parseFloat(j)).toString();const[I,P]=se.includes(".")?[",","."]:[".",","];let[S,C]=V.includes(".")?V.split("."):[V,""];if(S=S.replace(/\B(?=(\d{3})+(?!\d))/g,I),g=g.replace("{currency}",et[n.currency]||n.currency).replace("{amount}",S).replace(E,_==="true"&&C?C:""),_==="true"||!C){const X=P==="."?"\\.":P,H=new RegExp(`${X}(?=[\\s\\D]|$)`,"g");g=g.replace(H,"").trim()}return g},Ut=()=>{i(32,Pe=i(31,tt=!1)),i(18,rt=""),i(19,yt="popupTitle"),window.postMessage({type:"CloseLimitsPopup"},window.location.href),window.postMessage({type:"EnableScroll"},window.location.href),i(28,de=!1)},ea=()=>{window.postMessage({type:"uploadDocuments"},window.location.href),Ut()},ri=n=>!n&&!(n.length>0)?i(33,Ge=!1):(i(23,Ye=n),xa(Ye,ee)?Da(Ye,Le)?i(33,Ge=!0):(console.error(r("fileExtenssionDeny")),i(33,Ge=!1)):(console.error(r("fileSizeExceeded")),i(33,Ge=!1))),ta=()=>{if(!Ge)return;i(32,Pe=!1);const n=new URL(`${w}/api/v1/mm/content/${v}/url-upload/`),p={method:"POST",headers:{"Content-Type":"application/json","X-SessionId":b},body:JSON.stringify({})};fetch(n,p).then(m=>Se(m)).then(m=>{ia(m)}).catch(m=>{console.error(r("errorUploadDocument"),m),i(23,Ye=null),i(33,Ge=!1)})},ia=n=>{const p=new FormData;p.append(n.requestId,Ye[0]),fetch(n.url,{method:"POST",body:p}).then(m=>Se(m)).then(m=>{window.postMessage({type:"WidgetNotification",data:{type:"success",message:r("uploadSuccess")}},window.location.href),We=m.Files[0].Reference,vt.remove.id?ai(vt.remove):Xt()}).catch(m=>{window.postMessage({type:"WidgetNotification",data:{type:"error",message:r("errorUploadDocument")}},window.location.href),console.error(r("errorUploadDocument"),m)}).finally(()=>{Ut(),i(23,Ye=null),i(33,Ge=!1)})},oa=()=>{let n=J({},Ot),p="";if(B){const m=B.split(","),g=m[0].trim();if(g.includes(":")){const[y,h]=g.split(":").map(E=>E.trim());p=h||y}else p=g;m.forEach(y=>{if(y.includes(":")){const[h,E]=y.split(":").map(j=>j.trim());h&&(n[h]=E||h)}})}else c&&(p=Ot[c]||c);p&&(n.GBP=p,n.EUR=p,n.USD=p,c&&(n[c]=p)),i(24,et=n)},aa=()=>{Sa(f)},li=n=>{if(n.data)switch(n.data.type){case"LimitDisableState":{i(37,qt=n.data.data);break}case"SubmitLimitNotification":{ei();break}}};e.onMount(()=>(window.addEventListener("message",li),Ze&&M.length&&Mt(),()=>{window.removeEventListener("message",li)}));const na=n=>ri(n.target.files),sa=n=>n&&n.value&&s.some(p=>p&&p.toLowerCase()===n.value.toLowerCase())&&!n.isHiddenByHierarchy,ra=()=>Dt(),la=n=>oi(n.rawLimit),pa=n=>si(n),da=n=>ni(n);function ua(){Ne=e.select_value(this),i(20,Ne)}const ma=()=>{Zt(),xt(),ti()},ca=n=>{(n.key==="Enter"||n.key===" ")&&(n.preventDefault(),Yt())},fa=n=>zt(n),ga=(n,p)=>{(p.key==="Enter"||p.key===" ")&&(p.preventDefault(),zt(n))};function La(){le=e.select_value(this),i(14,le),i(12,Z),i(13,R)}function ha(){q=e.to_number(this.value),i(21,q)}function ya(n){e.binding_callbacks[n?"unshift":"push"](()=>{N=n,i(8,N)})}return o.$$set=n=>{"lang"in n&&i(0,f=n.lang),"currency"in n&&i(1,c=n.currency),"limits"in n&&i(61,L=n.limits),"session"in n&&i(62,b=n.session),"userid"in n&&i(63,v=n.userid),"endpoint"in n&&i(64,w=n.endpoint),"apiversion"in n&&i(65,k=n.apiversion),"companylimits"in n&&i(66,A=n.companylimits),"tablabels"in n&&i(67,D=n.tablabels),"showcompanylimitsinfo"in n&&i(68,z=n.showcompanylimitsinfo),"customcurrencysymbols"in n&&i(69,B=n.customcurrencysymbols),"netdepositprogress"in n&&i(70,W=n.netdepositprogress),"enablecompliancetext"in n&&i(2,G=n.enablecompliancetext),"deletelimit"in n&&i(3,T=n.deletelimit),"amountsconfig"in n&&i(71,U=n.amountsconfig),"periodsconfig"in n&&i(72,ue=n.periodsconfig),"defaultperiod"in n&&i(73,ne=n.defaultperiod),"limittabindex"in n&&i(4,O=n.limittabindex),"tabcategory"in n&&i(74,Q=n.tabcategory),"limitformat"in n&&i(75,se=n.limitformat),"allowedextenssion"in n&&i(76,Le=n.allowedextenssion),"filesizeallow"in n&&i(77,ee=n.filesizeallow),"clientstyling"in n&&i(78,oe=n.clientstyling),"clientstylingurl"in n&&i(79,te=n.clientstylingurl),"translationurl"in n&&i(80,ae=n.translationurl),"mbsource"in n&&i(81,re=n.mbsource),"timezone"in n&&i(82,Me=n.timezone),"isLimitNotification"in n&&i(5,Ce=n.isLimitNotification),"cooloffstrictmode"in n&&i(83,$=n.cooloffstrictmode),"inputhasdecimals"in n&&i(6,_=n.inputhasdecimals),"usecustomdropdown"in n&&i(7,x=n.usecustomdropdown),"$$scope"in n&&i(88,u=n.$$scope)},o.$$.update=()=>{if(o.$$.dirty[2]&64&&i(10,be=z==="true"),o.$$.dirty[2]&16&&i(85,kt=A==="true"),o.$$.dirty[0]&1024|o.$$.dirty[2]&8388608&&(wt=be||kt),o.$$.dirty[2]&256&&i(11,Ze=W==="true"),o.$$.dirty[0]&2|o.$$.dirty[2]&128&&(B!==void 0||c!==void 0)&&oa(),o.$$.dirty[2]&1536&&ue&&U&&uo(),o.$$.dirty[0]&1&&f&&aa(),o.$$.dirty[0]&17|o.$$.dirty[2]&1551&&v&&b&&w&&k&&f&&O&&U&&ue&&ze(),o.$$.dirty[0]&256|o.$$.dirty[2]&65536&&oe&&N&&e.setClientStyling(N,oe),o.$$.dirty[0]&256|o.$$.dirty[2]&131072&&te&&N&&e.setClientStylingURL(N,te),o.$$.dirty[0]&256|o.$$.dirty[2]&524288&&re&&N&&e.setStreamStyling(N,`${re}.Style`,io),o.$$.dirty[2]&262144&&ae&&ro(),o.$$.dirty[0]&16|o.$$.dirty[2]&32&&i(87,a=(D||"").split(",")[Math.max(0,Number(O)-1)]||""),o.$$.dirty[2]&33554432&&i(86,l=a.toLowerCase().includes("net")?"netdeposit":a.toLowerCase().includes("deposit")?"deposit":a.toLowerCase().includes("loss")?"loss":a.toLowerCase().includes("wager")?"wagering":""),o.$$.dirty[2]&16777216&&i(40,s=ft[l]||[]),o.$$.dirty[0]&3584|o.$$.dirty[2]&4194304&&(Ze||be)&&M.length){const n=M.map(m=>{var y;const g=((y=m.visibleLimitsInUI)==null?void 0:y.length)||0;return new Array(g).fill(null)});(Te.length!==n.length||Te.some((m,g)=>{var y;return(m==null?void 0:m.length)!==((y=n[g])==null?void 0:y.length)}))&&(i(84,Te=n),e.tick().then(()=>{ut()}))}o.$$.dirty[0]&2560|o.$$.dirty[2]&4194304&&Ze&&Te.length===M.length&&xo()&&Mt(),o.$$.dirty[0]&768|o.$$.dirty[2]&16777216&&M&&N&&l&&e.tick().then(()=>{setTimeout(()=>{ut()},200)})},[f,c,G,T,O,Ce,_,x,N,M,be,Ze,Z,R,le,Je,Qe,he,rt,yt,Ne,q,lt,Ye,et,ce,Ft,At,de,Ee,Ct,tt,Pe,Ge,pt,Be,dt,qt,Gt,bt,s,r,ao,Yt,zt,co,xt,Zt,Dt,$t,Oo,ei,ti,oi,ni,si,Nt,Ut,ea,ri,ta,L,b,v,w,k,A,D,z,B,W,U,ue,ne,Q,se,Le,ee,oe,te,ae,re,Me,$,Te,kt,l,a,u,d,na,sa,ra,la,pa,da,ua,ma,ca,fa,ga,La,ha,ya]}class to extends e.SvelteComponent{constructor(t){super(),e.init(this,t,wn,kn,e.safe_not_equal,{lang:0,currency:1,limits:61,session:62,userid:63,endpoint:64,apiversion:65,companylimits:66,tablabels:67,showcompanylimitsinfo:68,customcurrencysymbols:69,netdepositprogress:70,enablecompliancetext:2,deletelimit:3,amountsconfig:71,periodsconfig:72,defaultperiod:73,limittabindex:4,tabcategory:74,limitformat:75,allowedextenssion:76,filesizeallow:77,clientstyling:78,clientstylingurl:79,translationurl:80,mbsource:81,timezone:82,isLimitNotification:5,cooloffstrictmode:83,inputhasdecimals:6,usecustomdropdown:7},Ea,[-1,-1,-1,-1,-1,-1,-1])}get lang(){return this.$$.ctx[0]}set lang(t){this.$$set({lang:t}),e.flush()}get currency(){return this.$$.ctx[1]}set currency(t){this.$$set({currency:t}),e.flush()}get limits(){return this.$$.ctx[61]}set limits(t){this.$$set({limits:t}),e.flush()}get session(){return this.$$.ctx[62]}set session(t){this.$$set({session:t}),e.flush()}get userid(){return this.$$.ctx[63]}set userid(t){this.$$set({userid:t}),e.flush()}get endpoint(){return this.$$.ctx[64]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get apiversion(){return this.$$.ctx[65]}set apiversion(t){this.$$set({apiversion:t}),e.flush()}get companylimits(){return this.$$.ctx[66]}set companylimits(t){this.$$set({companylimits:t}),e.flush()}get tablabels(){return this.$$.ctx[67]}set tablabels(t){this.$$set({tablabels:t}),e.flush()}get showcompanylimitsinfo(){return this.$$.ctx[68]}set showcompanylimitsinfo(t){this.$$set({showcompanylimitsinfo:t}),e.flush()}get customcurrencysymbols(){return this.$$.ctx[69]}set customcurrencysymbols(t){this.$$set({customcurrencysymbols:t}),e.flush()}get netdepositprogress(){return this.$$.ctx[70]}set netdepositprogress(t){this.$$set({netdepositprogress:t}),e.flush()}get enablecompliancetext(){return this.$$.ctx[2]}set enablecompliancetext(t){this.$$set({enablecompliancetext:t}),e.flush()}get deletelimit(){return this.$$.ctx[3]}set deletelimit(t){this.$$set({deletelimit:t}),e.flush()}get amountsconfig(){return this.$$.ctx[71]}set amountsconfig(t){this.$$set({amountsconfig:t}),e.flush()}get periodsconfig(){return this.$$.ctx[72]}set periodsconfig(t){this.$$set({periodsconfig:t}),e.flush()}get defaultperiod(){return this.$$.ctx[73]}set defaultperiod(t){this.$$set({defaultperiod:t}),e.flush()}get limittabindex(){return this.$$.ctx[4]}set limittabindex(t){this.$$set({limittabindex:t}),e.flush()}get tabcategory(){return this.$$.ctx[74]}set tabcategory(t){this.$$set({tabcategory:t}),e.flush()}get limitformat(){return this.$$.ctx[75]}set limitformat(t){this.$$set({limitformat:t}),e.flush()}get allowedextenssion(){return this.$$.ctx[76]}set allowedextenssion(t){this.$$set({allowedextenssion:t}),e.flush()}get filesizeallow(){return this.$$.ctx[77]}set filesizeallow(t){this.$$set({filesizeallow:t}),e.flush()}get clientstyling(){return this.$$.ctx[78]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[79]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[80]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get mbsource(){return this.$$.ctx[81]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get timezone(){return this.$$.ctx[82]}set timezone(t){this.$$set({timezone:t}),e.flush()}get isLimitNotification(){return this.$$.ctx[5]}set isLimitNotification(t){this.$$set({isLimitNotification:t}),e.flush()}get cooloffstrictmode(){return this.$$.ctx[83]}set cooloffstrictmode(t){this.$$set({cooloffstrictmode:t}),e.flush()}get inputhasdecimals(){return this.$$.ctx[6]}set inputhasdecimals(t){this.$$set({inputhasdecimals:t}),e.flush()}get usecustomdropdown(){return this.$$.ctx[7]}set usecustomdropdown(t){this.$$set({usecustomdropdown:t}),e.flush()}}e.create_custom_element(to,{lang:{},currency:{},limits:{},session:{},userid:{},endpoint:{},apiversion:{},companylimits:{},tablabels:{},showcompanylimitsinfo:{},customcurrencysymbols:{},netdepositprogress:{},enablecompliancetext:{},deletelimit:{},amountsconfig:{},periodsconfig:{},defaultperiod:{},limittabindex:{},tabcategory:{},limitformat:{},allowedextenssion:{},filesizeallow:{},clientstyling:{},clientstylingurl:{},translationurl:{},mbsource:{},timezone:{},isLimitNotification:{},cooloffstrictmode:{},inputhasdecimals:{},usecustomdropdown:{}},["LimitSkeleton","LimitsList","LimitSubmitButton"],[],!0);exports.default=to;
|
|
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(W,G){e.insert(W,t,G),e.append(t,i),e.append(i,s),e.append(i,a),e.append(t,l),e.append(t,r),e.append(t,d),e.append(t,u),e.append(t,f),e.append(t,c),e.append(t,L),e.append(t,b),e.append(t,v),e.append(t,w),e.append(t,k),e.append(t,A),e.append(t,D),e.append(t,z),e.append(t,B)},d(W){W&&e.detach(t)}}}function Fa(o){let t,i=o[41]("popupSuccess")+"",s;return{c(){t=e.element("p"),s=e.text(i)},m(a,l){e.insert(a,t,l),e.append(t,s)},p(a,l){l[1]&1024&&i!==(i=a[41]("popupSuccess")+"")&&e.set_data(s,i)},d(a){a&&e.detach(t)}}}function qa(o){let t,i=o[41]("docsRequired")+"",s;return{c(){t=e.element("p"),s=e.text(i)},m(a,l){e.insert(a,t,l),e.append(t,s)},p(a,l){l[1]&1024&&i!==(i=a[41]("docsRequired")+"")&&e.set_data(s,i)},d(a){a&&e.detach(t)}}}function Ga(o){let t,i=o[41]("popupError")+"",s;return{c(){t=e.element("p"),s=e.text(i)},m(a,l){e.insert(a,t,l),e.append(t,s)},p(a,l){l[1]&1024&&i!==(i=a[41]("popupError")+"")&&e.set_data(s,i)},d(a){a&&e.detach(t)}}}function Ha(o){let t,i=o[41]("okButton")+"",s,a,l;return{c(){t=e.element("button"),s=e.text(i),e.attr(t,"class","ConfirmButton "+(o[42]?"":"Mobile"))},m(r,d){e.insert(r,t,d),e.append(t,s),a||(l=e.listen(t,"click",o[57]),a=!0)},p(r,d){d[1]&1024&&i!==(i=r[41]("okButton")+"")&&e.set_data(s,i)},d(r){r&&e.detach(t),a=!1,l()}}}function Ka(o){let t,i=o[41]("uploadDocumentsButton")+"",s,a,l=o[41]("closeButton")+"",r,d,u;return{c(){t=e.element("button"),s=e.space(),a=e.element("button"),r=e.text(l),e.attr(t,"class","ConfirmButton"),e.attr(a,"class","CloseButton")},m(f,c){e.insert(f,t,c),t.innerHTML=i,e.insert(f,s,c),e.insert(f,a,c),e.append(a,r),d||(u=[e.listen(t,"click",o[58]),e.listen(a,"click",o[57])],d=!0)},p(f,c){c[1]&1024&&i!==(i=f[41]("uploadDocumentsButton")+"")&&(t.innerHTML=i),c[1]&1024&&l!==(l=f[41]("closeButton")+"")&&e.set_data(r,l)},d(f){f&&(e.detach(t),e.detach(s),e.detach(a)),d=!1,e.run_all(u)}}}function Ya(o){let t,i=o[41]("noFileUploaded")+"",s;return{c(){t=e.element("p"),s=e.text(i),e.attr(t,"class","historyItem")},m(a,l){e.insert(a,t,l),e.append(t,s)},p(a,l){l[1]&1024&&i!==(i=a[41]("noFileUploaded")+"")&&e.set_data(s,i)},d(a){a&&e.detach(t)}}}function Za(o){let t,i=e.ensure_array_like(Array.from(o[23])),s=[];for(let a=0;a<i.length;a+=1)s[a]=zi(Pi(o,i,a));return{c(){for(let a=0;a<s.length;a+=1)s[a].c();t=e.empty()},m(a,l){for(let r=0;r<s.length;r+=1)s[r]&&s[r].m(a,l);e.insert(a,t,l)},p(a,l){if(l[0]&8388608){i=e.ensure_array_like(Array.from(a[23]));let r;for(r=0;r<i.length;r+=1){const d=Pi(a,i,r);s[r]?s[r].p(d,l):(s[r]=zi(d),s[r].c(),s[r].m(t.parentNode,t))}for(;r<s.length;r+=1)s[r].d(1);s.length=i.length}},d(a){a&&e.detach(t),e.destroy_each(s,a)}}}function zi(o){let t,i=o[214].name+"",s;return{c(){t=e.element("p"),s=e.text(i),e.attr(t,"class","historyItem")},m(a,l){e.insert(a,t,l),e.append(t,s)},p(a,l){l[0]&8388608&&i!==(i=a[214].name+"")&&e.set_data(s,i)},d(a){a&&e.detach(t)}}}function xi(o){let t,i=o[41]("filesUploadError")+"",s;return{c(){t=e.element("p"),s=e.text(i),e.attr(t,"class","filesError")},m(a,l){e.insert(a,t,l),e.append(t,s)},p(a,l){l[1]&1024&&i!==(i=a[41]("filesUploadError")+"")&&e.set_data(s,i)},d(a){a&&e.detach(t)}}}function Xa(o){let t,i,s,a,l,r,d=o[41]("setLimit")+"",u,f,c,L,b,v,w,k=o[27]?`${o[41]("amount")}`:`${o[41](`new${o[14]}Limit`)}`,A,D,z,B,W,G,T,U,ue,ne;const O=o[89].LimitsList,Q=e.create_slot(O,o,o[88],Ai),se=Q||gn(o);let Le=e.ensure_array_like(o[9]),ee=[];for(let _=0;_<Le.length;_+=1)ee[_]=Ki(bi(o,Le,_));let oe=o[2]==="true"&&Yi(o),te=o[26]&&Zi(o),ae=o[27]&&o[13]&&o[12][o[13]]&&Ji(o),re=o[36]&&o[35]&&!o[37]&&eo(o);const Me=o[89].LimitSubmitButton,Ce=e.create_slot(Me,o,o[88],Li),$=Ce||yn(o);return{c(){t=e.element("div"),i=e.element("div"),se&&se.c(),s=e.space(),a=e.element("form");for(let _=0;_<ee.length;_+=1)ee[_].c();l=e.space(),r=e.element("p"),u=e.text(d),f=e.space(),oe&&oe.c(),c=e.space(),te&&te.c(),L=e.space(),ae&&ae.c(),b=e.space(),v=e.element("label"),w=e.element("span"),A=e.text(k),D=e.space(),z=e.element("input"),W=e.space(),re&&re.c(),G=e.space(),$&&$.c(),e.attr(r,"class","LimitTitle "+(o[42]?"":"Mobile")),e.attr(w,"class","LimitInputText"),e.attr(z,"type","number"),e.attr(z,"pattern","[0-9]*"),e.attr(z,"step",B=o[6]==="true"?"0.01":"1"),z.disabled=o[37],e.attr(v,"class","LimitAmountInputWrapper "+(o[42]?"":"Mobile")),e.attr(a,"class","LimitsInteractionArea "+(o[42]?"":"Mobile")),e.attr(i,"class","LimitsPageContainer"),e.attr(t,"class",T="player-account-gaming-limits-page-2-gm16 "+("LimitTab"+o[4]))},m(_,x){e.insert(_,t,x),e.append(t,i),se&&se.m(i,null),e.append(i,s),e.append(i,a);for(let N=0;N<ee.length;N+=1)ee[N]&&ee[N].m(a,null);e.append(a,l),e.append(a,r),e.append(r,u),e.append(a,f),oe&&oe.m(a,null),e.append(a,c),te&&te.m(a,null),e.append(a,L),ae&&ae.m(a,null),e.append(a,b),e.append(a,v),e.append(v,w),e.append(w,A),e.append(v,D),e.append(v,z),e.set_input_value(z,o[21]),e.append(v,W),re&&re.m(v,null),e.append(a,G),$&&$.m(a,null),U=!0,ue||(ne=[e.listen(z,"input",o[102]),e.listen(z,"input",o[49]),e.listen(z,"wheel",o[50]),e.listen(a,"submit",o[51])],ue=!0)},p(_,x){if(Q?Q.p&&(!U||x[2]&67108864)&&e.update_slot_base(Q,O,_,_[88],U?e.get_slot_changes(O,_[88],x,Ma):e.get_all_dirty_from_scope(_[88]),Ai):se&&se.p&&(!U||x[0]&50335243|x[1]&1536)&&se.p(_,U?x:[-1,-1,-1,-1,-1,-1,-1]),x[0]&512|x[1]&3072){Le=e.ensure_array_like(_[9]);let N;for(N=0;N<Le.length;N+=1){const Te=bi(_,Le,N);ee[N]?ee[N].p(Te,x):(ee[N]=Ki(Te),ee[N].c(),ee[N].m(a,l))}for(;N<ee.length;N+=1)ee[N].d(1);ee.length=Le.length}(!U||x[1]&1024)&&d!==(d=_[41]("setLimit")+"")&&e.set_data(u,d),_[2]==="true"?oe?oe.p(_,x):(oe=Yi(_),oe.c(),oe.m(a,c)):oe&&(oe.d(1),oe=null),_[26]?te?te.p(_,x):(te=Zi(_),te.c(),te.m(a,L)):te&&(te.d(1),te=null),_[27]&&_[13]&&_[12][_[13]]?ae?ae.p(_,x):(ae=Ji(_),ae.c(),ae.m(a,b)):ae&&(ae.d(1),ae=null),(!U||x[0]&134234112|x[1]&1024)&&k!==(k=_[27]?`${_[41]("amount")}`:`${_[41](`new${_[14]}Limit`)}`)&&e.set_data(A,k),(!U||x[0]&64&&B!==(B=_[6]==="true"?"0.01":"1"))&&e.attr(z,"step",B),(!U||x[1]&64)&&(z.disabled=_[37]),x[0]&2097152&&e.to_number(z.value)!==_[21]&&e.set_input_value(z,_[21]),_[36]&&_[35]&&!_[37]?re?re.p(_,x):(re=eo(_),re.c(),re.m(v,null)):re&&(re.d(1),re=null),Ce?Ce.p&&(!U||x[2]&67108864)&&e.update_slot_base(Ce,Me,_,_[88],U?e.get_slot_changes(Me,_[88],x,Ia):e.get_all_dirty_from_scope(_[88]),Li):$&&$.p&&(!U||x[1]&1168)&&$.p(_,U?x:[-1,-1,-1,-1,-1,-1,-1]),(!U||x[0]&16&&T!==(T="player-account-gaming-limits-page-2-gm16 "+("LimitTab"+_[4])))&&e.attr(t,"class",T)},i(_){U||(e.transition_in(se,_),e.transition_in($,_),U=!0)},o(_){e.transition_out(se,_),e.transition_out($,_),U=!1},d(_){_&&e.detach(t),se&&se.d(_),e.destroy_each(ee,_),oe&&oe.d(),te&&te.d(),ae&&ae.d(),re&&re.d(),$&&$.d(_),ue=!1,e.run_all(ne)}}}function Ja(o){let t;return{c(){t=e.element("p"),t.textContent="500 Server error"},m(i,s){e.insert(i,t,s)},p:e.noop,i:e.noop,o:e.noop,d(i){i&&e.detach(t)}}}function Qa(o){let t;const i=o[89].LimitSkeleton,s=e.create_slot(i,o,o[88],Ci),a=s||bn(o);return{c(){a&&a.c()},m(l,r){a&&a.m(l,r),t=!0},p(l,r){s&&s.p&&(!t||r[2]&67108864)&&e.update_slot_base(s,i,l,l[88],t?e.get_slot_changes(i,l[88],r,Na):e.get_all_dirty_from_scope(l[88]),Ci)},i(l){t||(e.transition_in(a,l),t=!0)},o(l){e.transition_out(a,l),t=!1},d(l){a&&a.d(l)}}}function Di(o){let t,i=e.ensure_array_like([o[9].filter(o[91])]),s=[];for(let a=0;a<1;a+=1)s[a]=Gi(ki(o,i,a));return{c(){for(let a=0;a<1;a+=1)s[a].c();t=e.empty()},m(a,l){for(let r=0;r<1;r+=1)s[r]&&s[r].m(a,l);e.insert(a,t,l)},p(a,l){if(l[0]&50335243|l[1]&63049216){i=e.ensure_array_like([a[9].filter(a[91])]);let r;for(r=0;r<1;r+=1){const d=ki(a,i,r);s[r]?s[r].p(d,l):(s[r]=Gi(d),s[r].c(),s[r].m(t.parentNode,t))}for(;r<1;r+=1)s[r].d(1)}},d(a){a&&e.detach(t),e.destroy_each(s,a)}}}function $a(o){let t=[],i=new Map,s,a=e.ensure_array_like(o[202]);const l=r=>r[197].product+r[197].value;for(let r=0;r<a.length;r+=1){let d=wi(o,a,r),u=l(d);i.set(u,t[r]=Vi(u,d))}return{c(){for(let r=0;r<t.length;r+=1)t[r].c();s=e.empty()},m(r,d){for(let u=0;u<t.length;u+=1)t[u]&&t[u].m(r,d);e.insert(r,s,d)},p(r,d){d[0]&50335243|d[1]&63049216&&(a=e.ensure_array_like(r[202]),t=e.update_keyed_each(t,d,l,1,r,a,i,s.parentNode,e.destroy_block,Vi,s,wi))},d(r){r&&e.detach(s);for(let d=0;d<t.length;d+=1)t[d].d(r)}}}function en(o){let t,i=o[202][0].value==="netdeposit"&&o[41]("newLimitInfoText").trim().length>0,s,a,l,r=o[41]("noLimitText")+"",d,u,f=o[202].length>0&&Fi(o),c=i&&qi(o);return{c(){f&&f.c(),t=e.space(),c&&c.c(),s=e.space(),a=e.element("div"),l=e.element("p"),d=e.text(r),u=e.space(),e.attr(l,"class","LimitsInfoText "+(o[42]?"":"Mobile")),e.attr(a,"class","NoLimitMessageInfo")},m(L,b){f&&f.m(L,b),e.insert(L,t,b),c&&c.m(L,b),e.insert(L,s,b),e.insert(L,a,b),e.append(a,l),e.append(l,d),e.append(a,u)},p(L,b){L[202].length>0?f?f.p(L,b):(f=Fi(L),f.c(),f.m(t.parentNode,t)):f&&(f.d(1),f=null),b[0]&512|b[1]&1536&&(i=L[202][0].value==="netdeposit"&&L[41]("newLimitInfoText").trim().length>0),i?c?c.p(L,b):(c=qi(L),c.c(),c.m(s.parentNode,s)):c&&(c.d(1),c=null),b[1]&1024&&r!==(r=L[41]("noLimitText")+"")&&e.set_data(d,r)},d(L){L&&(e.detach(t),e.detach(s),e.detach(a)),f&&f.d(L),c&&c.d(L)}}}function tn(o){let t,i=o[56](o[197])+"",s,a,l,r,d,u,f,c=o[41]("noLimitText")+"",L,b,v,w=e.ensure_array_like(o[9]),k=[];for(let A=0;A<w.length;A+=1)k[A]=Ii(_i(o,w,A));return{c(){t=e.element("p"),s=e.text(i),a=e.space();for(let A=0;A<k.length;A+=1)k[A].c();l=e.space(),r=e.element("div"),d=e.element("div"),u=e.element("div"),f=e.element("div"),L=e.text(c),b=e.space(),e.attr(t,"class","LimitTitle "+(o[42]?"":"Mobile")),e.attr(f,"class","LimitDetailsTextWrapper "+(o[42]?"":"Mobile")),e.attr(u,"class","LimitDetailsWrapper"),e.attr(d,"class","LimitDetails"),e.attr(r,"class",v="LimitWrapper "+o[197].value+" "+(o[42]?"":"Mobile"))},m(A,D){e.insert(A,t,D),e.append(t,s),e.insert(A,a,D);for(let z=0;z<k.length;z+=1)k[z]&&k[z].m(A,D);e.insert(A,l,D),e.insert(A,r,D),e.append(r,d),e.append(d,u),e.append(u,f),e.append(f,L),e.append(r,b)},p(A,D){if(D[0]&512|D[1]&512&&i!==(i=A[56](A[197])+"")&&e.set_data(s,i),D[0]&512|D[1]&3072){w=e.ensure_array_like(A[9]);let z;for(z=0;z<w.length;z+=1){const B=_i(A,w,z);k[z]?k[z].p(B,D):(k[z]=Ii(B),k[z].c(),k[z].m(l.parentNode,l))}for(;z<k.length;z+=1)k[z].d(1);k.length=w.length}D[1]&1024&&c!==(c=A[41]("noLimitText")+"")&&e.set_data(L,c),D[0]&512|D[1]&512&&v!==(v="LimitWrapper "+A[197].value+" "+(A[42]?"":"Mobile"))&&e.attr(r,"class",v)},d(A){A&&(e.detach(t),e.detach(a),e.detach(l),e.detach(r)),e.destroy_each(k,A)}}}function on(o){let t,i=o[56](o[197])+"",s,a,l=o[197].value==="netdeposit"&&o[41]("newLimitInfoText").trim().length>0,r,d,u,f,c=l&&Mi(o),L=e.ensure_array_like(o[197].visibleLimitsInUI),b=[];for(let v=0;v<L.length;v+=1)b[v]=Wi(Si(o,L,v));return{c(){t=e.element("p"),s=e.text(i),a=e.space(),c&&c.c(),r=e.space(),d=e.element("div");for(let v=0;v<b.length;v+=1)b[v].c();u=e.space(),e.attr(t,"class","LimitTitle "+(o[42]?"":"Mobile")),e.attr(d,"class",f="LimitWrapper "+o[197].value+" "+(o[10]||o[11]&&o[197].value.toLowerCase().includes("netdeposit")?"ActiveProgressBar":"")+" "+(o[42]?"":"Mobile"))},m(v,w){e.insert(v,t,w),e.append(t,s),e.insert(v,a,w),c&&c.m(v,w),e.insert(v,r,w),e.insert(v,d,w);for(let k=0;k<b.length;k+=1)b[k]&&b[k].m(d,null);e.append(d,u)},p(v,w){if(w[0]&512|w[1]&512&&i!==(i=v[56](v[197])+"")&&e.set_data(s,i),w[0]&512|w[1]&1536&&(l=v[197].value==="netdeposit"&&v[41]("newLimitInfoText").trim().length>0),l?c?c.p(v,w):(c=Mi(v),c.c(),c.m(r.parentNode,r)):c&&(c.d(1),c=null),w[0]&50332171|w[1]&29494784){L=e.ensure_array_like(v[197].visibleLimitsInUI);let k;for(k=0;k<L.length;k+=1){const A=Si(v,L,k);b[k]?b[k].p(A,w):(b[k]=Wi(A),b[k].c(),b[k].m(d,u))}for(;k<b.length;k+=1)b[k].d(1);b.length=L.length}w[0]&3584|w[1]&512&&f!==(f="LimitWrapper "+v[197].value+" "+(v[10]||v[11]&&v[197].value.toLowerCase().includes("netdeposit")?"ActiveProgressBar":"")+" "+(v[42]?"":"Mobile"))&&e.attr(d,"class",f)},d(v){v&&(e.detach(t),e.detach(a),e.detach(r),e.detach(d)),c&&c.d(v),e.destroy_each(b,v)}}}function Ei(o){let t,i=o[41]("activeLimitsInfoText")+"",s;return{c(){t=e.element("p"),s=e.text(i),e.attr(t,"class","LimitsInfoText "+(o[42]?"":"Mobile"))},m(a,l){e.insert(a,t,l),e.append(t,s)},p(a,l){l[1]&1024&&i!==(i=a[41]("activeLimitsInfoText")+"")&&e.set_data(s,i)},d(a){a&&e.detach(t)}}}function Ii(o){let t=o[197].value==="netdeposit"&&o[41]("newLimitInfoText").trim().length>0,i,s=t&&Ei(o);return{c(){s&&s.c(),i=e.empty()},m(a,l){s&&s.m(a,l),e.insert(a,i,l)},p(a,l){l[0]&512|l[1]&1024&&(t=a[197].value==="netdeposit"&&a[41]("newLimitInfoText").trim().length>0),t?s?s.p(a,l):(s=Ei(a),s.c(),s.m(i.parentNode,i)):s&&(s.d(1),s=null)},d(a){a&&e.detach(i),s&&s.d(a)}}}function Mi(o){let t,i=o[41]("activeLimitsInfoText")+"",s;return{c(){t=e.element("p"),s=e.text(i),e.attr(t,"class","LimitsInfoText "+(o[42]?"":"Mobile"))},m(a,l){e.insert(a,t,l),e.append(t,s)},p(a,l){l[1]&1024&&i!==(i=a[41]("activeLimitsInfoText")+"")&&e.set_data(s,i)},d(a){a&&e.detach(t)}}}function an(o){let t,i=(o[24][o[1]]||o[1])+"",s,a=Ke(o[208].amount,o[0])+"",l;return{c(){t=e.element("span"),s=e.text(i),l=e.text(a)},m(r,d){e.insert(r,t,d),e.append(t,s),e.append(t,l)},p(r,d){d[0]&16777218&&i!==(i=(r[24][r[1]]||r[1])+"")&&e.set_data(s,i),d[0]&513|d[1]&512&&a!==(a=Ke(r[208].amount,r[0])+"")&&e.set_data(l,a)},d(r){r&&e.detach(t)}}}function nn(o){let t,i=(o[24][o[1]]||o[1])+"",s,a=Ke(o[208].updateAmount,o[0])+"",l;return{c(){t=e.element("span"),s=e.text(i),l=e.text(a)},m(r,d){e.insert(r,t,d),e.append(t,s),e.append(t,l)},p(r,d){d[0]&16777218&&i!==(i=(r[24][r[1]]||r[1])+"")&&e.set_data(s,i),d[0]&513|d[1]&512&&a!==(a=Ke(r[208].updateAmount,r[0])+"")&&e.set_data(l,a)},d(r){r&&e.detach(t)}}}function sn(o){let t;return{c(){t=e.element("span")},m(i,s){e.insert(i,t,s)},p:e.noop,d(i){i&&e.detach(t)}}}function ji(o){let t,i=o[41]("companyLimitsInfoText")+"",s,a,l,r=(o[24][o[1]]||o[1])+"",d,u=Ke(o[208].restrictiveDisplayAmount,o[0])+"",f;return{c(){t=e.element("div"),s=e.text(i),a=e.space(),l=e.element("span"),d=e.text(r),f=e.text(u),e.attr(t,"class","CompanyLimitsInfoText")},m(c,L){e.insert(c,t,L),e.append(t,s),e.append(t,a),e.append(t,l),e.append(l,d),e.append(l,f)},p(c,L){L[1]&1024&&i!==(i=c[41]("companyLimitsInfoText")+"")&&e.set_data(s,i),L[0]&16777218&&r!==(r=(c[24][c[1]]||c[1])+"")&&e.set_data(d,r),L[0]&513|L[1]&512&&u!==(u=Ke(c[208].restrictiveDisplayAmount,c[0])+"")&&e.set_data(f,u)},d(c){c&&e.detach(t)}}}function rn(o){let t,i,s=(o[24][o[1]]||o[1])+"",a,l=Ke(o[208].updateAmount,o[0])+"",r,d;function u(L,b){return L[208].isCoolOffCompleted?mn:un}let f=u(o),c=f(o);return{c(){t=e.element("div"),i=e.element("span"),a=e.text(s),r=e.text(l),d=e.space(),c.c(),e.attr(t,"class","PendingLimit")},m(L,b){e.insert(L,t,b),e.append(t,i),e.append(i,a),e.append(i,r),e.append(t,d),c.m(t,null)},p(L,b){b[0]&16777218&&s!==(s=(L[24][L[1]]||L[1])+"")&&e.set_data(a,s),b[0]&513|b[1]&512&&l!==(l=Ke(L[208].updateAmount,L[0])+"")&&e.set_data(r,l),f===(f=u(L))&&c?c.p(L,b):(c.d(1),c=f(L),c&&(c.c(),c.m(t,null)))},d(L){L&&e.detach(t),c.d()}}}function ln(o){let t;function i(l,r){return l[208].isCoolOffCompleted?fn:cn}let s=i(o),a=s(o);return{c(){t=e.element("div"),a.c(),e.attr(t,"class","PendingLimit")},m(l,r){e.insert(l,t,r),a.m(t,null)},p(l,r){s===(s=i(l))&&a?a.p(l,r):(a.d(1),a=s(l),a&&(a.c(),a.m(t,null)))},d(l){l&&e.detach(t),a.d()}}}function pn(o){let t,i=o[41]("acknowledgedLimit")+"",s;return{c(){t=e.element("div"),s=e.text(i),e.attr(t,"class","PendingLimit")},m(a,l){e.insert(a,t,l),e.append(t,s)},p(a,l){l[1]&1024&&i!==(i=a[41]("acknowledgedLimit")+"")&&e.set_data(s,i)},d(a){a&&e.detach(t)}}}function dn(o){let t,i,s=(o[24][o[1]]||o[1])+"",a,l=(o[208].reviewPending.requestAmount||0).toFixed(2)+"",r,d,u=` ${o[41](o[208].period)} ${o[41]("updateAfterDocApproval")}`,f;return{c(){t=e.element("div"),i=e.element("span"),a=e.text(s),r=e.text(l),d=e.space(),f=e.text(u),e.attr(t,"class","PendingLimit")},m(c,L){e.insert(c,t,L),e.append(t,i),e.append(i,a),e.append(i,r),e.append(t,d),e.append(t,f)},p(c,L){L[0]&16777218&&s!==(s=(c[24][c[1]]||c[1])+"")&&e.set_data(a,s),L[0]&512|L[1]&512&&l!==(l=(c[208].reviewPending.requestAmount||0).toFixed(2)+"")&&e.set_data(r,l),L[0]&512|L[1]&1536&&u!==(u=` ${c[41](c[208].period)} ${c[41]("updateAfterDocApproval")}`)&&e.set_data(f,u)},d(c){c&&e.detach(t)}}}function un(o){let t=` ${o[41](o[208].period)} ${o[41]("updateText")} ${o[208].expiryDate}`,i;return{c(){i=e.text(t)},m(s,a){e.insert(s,i,a)},p(s,a){a[0]&512|a[1]&1536&&t!==(t=` ${s[41](s[208].period)} ${s[41]("updateText")} ${s[208].expiryDate}`)&&e.set_data(i,t)},d(s){s&&e.detach(i)}}}function mn(o){let t=` ${o[41](o[208].period)} ${o[41]("updateAfterConfirm")}`,i;return{c(){i=e.text(t)},m(s,a){e.insert(s,i,a)},p(s,a){a[0]&512|a[1]&1536&&t!==(t=` ${s[41](s[208].period)} ${s[41]("updateAfterConfirm")}`)&&e.set_data(i,t)},d(s){s&&e.detach(i)}}}function cn(o){let t=o[41]("removedLimitText")+"",i,s,a=o[208].expiryDate+"",l;return{c(){i=e.text(t),s=e.space(),l=e.text(a)},m(r,d){e.insert(r,i,d),e.insert(r,s,d),e.insert(r,l,d)},p(r,d){d[1]&1024&&t!==(t=r[41]("removedLimitText")+"")&&e.set_data(i,t),d[0]&512|d[1]&512&&a!==(a=r[208].expiryDate+"")&&e.set_data(l,a)},d(r){r&&(e.detach(i),e.detach(s),e.detach(l))}}}function fn(o){let t=o[41]("removeAfterConfirm")+"",i;return{c(){i=e.text(t)},m(s,a){e.insert(s,i,a)},p(s,a){a[1]&1024&&t!==(t=s[41]("removeAfterConfirm")+"")&&e.set_data(i,t)},d(s){s&&e.detach(i)}}}function Ni(o){let t,i,s=!o[208].isModified&&o[3].toLowerCase().includes(o[197].value.toLowerCase())&&(!o[208].reviewPending||!o[208].reviewPending.id),a,l=o[208].acknowledgedLimit&&(!o[208].reviewPending||!o[208].reviewPending.id)&&Ui(o),r=s&&Bi(o),d=o[208].isCoolOffCompleted&&!o[208].acknowledgedLimit&&(!o[208].reviewPending||!o[208].reviewPending.id)&&Oi(o);return{c(){t=e.element("div"),l&&l.c(),i=e.space(),r&&r.c(),a=e.space(),d&&d.c(),e.attr(t,"class","ContainerLimitActions "+(o[42]?"":"Mobile"))},m(u,f){e.insert(u,t,f),l&&l.m(t,null),e.append(t,i),r&&r.m(t,null),e.append(t,a),d&&d.m(t,null)},p(u,f){u[208].acknowledgedLimit&&(!u[208].reviewPending||!u[208].reviewPending.id)?l?l.p(u,f):(l=Ui(u),l.c(),l.m(t,i)):l&&(l.d(1),l=null),f[0]&520|f[1]&512&&(s=!u[208].isModified&&u[3].toLowerCase().includes(u[197].value.toLowerCase())&&(!u[208].reviewPending||!u[208].reviewPending.id)),s?r?r.p(u,f):(r=Bi(u),r.c(),r.m(t,a)):r&&(r.d(1),r=null),u[208].isCoolOffCompleted&&!u[208].acknowledgedLimit&&(!u[208].reviewPending||!u[208].reviewPending.id)?d?d.p(u,f):(d=Oi(u),d.c(),d.m(t,null)):d&&(d.d(1),d=null)},d(u){u&&e.detach(t),l&&l.d(),r&&r.d(),d&&d.d()}}}function Ui(o){var d;let t,i=(((d=o[25][o[208].scheduleId])==null?void 0:d.timer)||"Reload")+"",s,a,l,r;return{c(){var u;t=e.element("button"),s=e.text(i),e.attr(t,"class",a="ReloadLimitButton "+(o[42]?"":"Mobile")+" "+((u=o[25][o[208].scheduleId])!=null&&u.timerStopped?"":"disabled"))},m(u,f){e.insert(u,t,f),e.append(t,s),l||(r=e.listen(t,"click",o[92]),l=!0)},p(u,f){var c,L;f[0]&33554944|f[1]&512&&i!==(i=(((c=u[25][u[208].scheduleId])==null?void 0:c.timer)||"Reload")+"")&&e.set_data(s,i),f[0]&33554944|f[1]&512&&a!==(a="ReloadLimitButton "+(u[42]?"":"Mobile")+" "+((L=u[25][u[208].scheduleId])!=null&&L.timerStopped?"":"disabled"))&&e.attr(t,"class",a)},d(u){u&&e.detach(t),l=!1,r()}}}function Bi(o){let t,i=o[41]("removeLimit")+"",s,a,l;function r(){return o[93](o[208])}return{c(){t=e.element("button"),s=e.text(i),e.attr(t,"class","RemoveLimitButton "+(o[42]?"":"Mobile"))},m(d,u){e.insert(d,t,u),e.append(t,s),a||(l=e.listen(t,"click",r),a=!0)},p(d,u){o=d,u[1]&1024&&i!==(i=o[41]("removeLimit")+"")&&e.set_data(s,i)},d(d){d&&e.detach(t),a=!1,l()}}}function Oi(o){let t,i=o[41]("confirmUpdateLimit")+"",s,a,l,r=o[41]("cancelUpdateLimit")+"",d,u,f;function c(){return o[94](o[208])}function L(){return o[95](o[208])}return{c(){t=e.element("button"),s=e.text(i),a=e.space(),l=e.element("button"),d=e.text(r),e.attr(t,"class","ConfirmLimitButton "+(o[42]?"":"Mobile")),e.attr(l,"class","CancelLimitButton "+(o[42]?"":"Mobile"))},m(b,v){e.insert(b,t,v),e.append(t,s),e.insert(b,a,v),e.insert(b,l,v),e.append(l,d),u||(f=[e.listen(t,"click",c),e.listen(l,"click",L)],u=!0)},p(b,v){o=b,v[1]&1024&&i!==(i=o[41]("confirmUpdateLimit")+"")&&e.set_data(s,i),v[1]&1024&&r!==(r=o[41]("cancelUpdateLimit")+"")&&e.set_data(d,r)},d(b){b&&(e.detach(t),e.detach(a),e.detach(l)),u=!1,e.run_all(f)}}}function Ri(o){let t,i;return{c(){t=e.element("div"),e.attr(t,"class","ProgressBarContainer"),e.attr(t,"id",i=`progress-${o[209]}-${o[211]}`)},m(s,a){e.insert(s,t,a)},p(s,a){a[0]&512|a[1]&512&&i!==(i=`progress-${s[209]}-${s[211]}`)&&e.attr(t,"id",i)},d(s){s&&e.detach(t)}}}function Wi(o){let t,i,s,a,l,r,d=` ${o[41](o[208].period)}`,u,f,c,L,b;function v(T,U){return T[208].isVirtual||T[208].amount===1/0||T[208].amount===null?sn:T[208].acknowledgedLimit?nn:an}let w=v(o),k=w(o),A=o[208].showInfoMessage&&ji(o);function D(T,U){if(T[208].reviewPending&&T[208].reviewPending.id)return dn;if(T[208].acknowledgedLimit)return pn;if(T[208].isModified&&T[208].updateAmount===0)return ln;if(T[208].isModified)return rn}let z=D(o),B=z&&z(o),W=!o[208].isOperator&&Ni(o),G=!o[208].shouldHideProgress&&Ri(o);return{c(){t=e.element("div"),i=e.element("div"),s=e.element("div"),a=e.element("div"),l=e.element("div"),k.c(),r=e.space(),u=e.text(d),f=e.space(),A&&A.c(),c=e.space(),B&&B.c(),L=e.space(),W&&W.c(),b=e.space(),G&&G.c(),e.attr(l,"class","CurrentLimit"),e.attr(a,"class","CurrentLimitContainer"),e.attr(s,"class","LimitDetailsTextWrapper "+(o[42]?"":"Mobile")+" "+(o[211]>0?"SubsequentLimit":"")),e.attr(i,"class","LimitDetailsWrapper"),e.attr(t,"class","LimitDetails")},m(T,U){e.insert(T,t,U),e.append(t,i),e.append(i,s),e.append(s,a),e.append(a,l),k.m(l,null),e.append(l,r),e.append(l,u),e.append(a,f),A&&A.m(a,null),e.append(s,c),B&&B.m(s,null),e.append(s,L),W&&W.m(s,null),e.append(s,b),G&&G.m(s,null)},p(T,U){w===(w=v(T))&&k?k.p(T,U):(k.d(1),k=w(T),k&&(k.c(),k.m(l,r))),U[0]&512|U[1]&1536&&d!==(d=` ${T[41](T[208].period)}`)&&e.set_data(u,d),T[208].showInfoMessage?A?A.p(T,U):(A=ji(T),A.c(),A.m(a,null)):A&&(A.d(1),A=null),z===(z=D(T))&&B?B.p(T,U):(B&&B.d(1),B=z&&z(T),B&&(B.c(),B.m(s,L))),T[208].isOperator?W&&(W.d(1),W=null):W?W.p(T,U):(W=Ni(T),W.c(),W.m(s,b)),T[208].shouldHideProgress?G&&(G.d(1),G=null):G?G.p(T,U):(G=Ri(T),G.c(),G.m(s,null))},d(T){T&&e.detach(t),k.d(),A&&A.d(),B&&B.d(),W&&W.d(),G&&G.d()}}}function Vi(o,t){let i,s;function a(d,u){if(d[197].visibleLimitsInUI&&d[197].visibleLimitsInUI.length>0)return on;if(!d[10])return tn}let l=a(t),r=l&&l(t);return{key:o,first:null,c(){i=e.empty(),r&&r.c(),s=e.empty(),this.first=i},m(d,u){e.insert(d,i,u),r&&r.m(d,u),e.insert(d,s,u)},p(d,u){t=d,l===(l=a(t))&&r?r.p(t,u):(r&&r.d(1),r=l&&l(t),r&&(r.c(),r.m(s.parentNode,s)))},d(d){d&&(e.detach(i),e.detach(s)),r&&r.d(d)}}}function Fi(o){let t,i=o[56](o[202][0])+"",s;return{c(){t=e.element("p"),s=e.text(i),e.attr(t,"class","LimitTitle "+(o[42]?"":"Mobile"))},m(a,l){e.insert(a,t,l),e.append(t,s)},p(a,l){l[0]&512|l[1]&512&&i!==(i=a[56](a[202][0])+"")&&e.set_data(s,i)},d(a){a&&e.detach(t)}}}function qi(o){let t,i=o[41]("activeLimitsInfoText")+"",s;return{c(){t=e.element("p"),s=e.text(i),e.attr(t,"class","LimitsInfoText "+(o[42]?"":"Mobile"))},m(a,l){e.insert(a,t,l),e.append(t,s)},p(a,l){l[1]&1024&&i!==(i=a[41]("activeLimitsInfoText")+"")&&e.set_data(s,i)},d(a){a&&e.detach(t)}}}function Gi(o){let t;function i(l,r){return l[10]&&!l[203]?en:$a}let s=i(o),a=s(o);return{c(){a.c(),t=e.empty()},m(l,r){a.m(l,r),e.insert(l,t,r)},p(l,r){s===(s=i(l))&&a?a.p(l,r):(a.d(1),a=s(l),a&&(a.c(),a.m(t.parentNode,t)))},d(l){l&&e.detach(t),a.d(l)}}}function gn(o){let t,i=o[9]&&Di(o);return{c(){t=e.element("div"),i&&i.c(),e.attr(t,"class","LimitsList")},m(s,a){e.insert(s,t,a),i&&i.m(t,null)},p(s,a){s[9]?i?i.p(s,a):(i=Di(s),i.c(),i.m(t,null)):i&&(i.d(1),i=null)},d(s){s&&e.detach(t),i&&i.d()}}}function Hi(o){let t,i=o[41]("newLimitInfoText")+"",s;return{c(){t=e.element("p"),s=e.text(i),e.attr(t,"class","LimitsInfoText "+(o[42]?"":"Mobile"))},m(a,l){e.insert(a,t,l),e.append(t,s)},p(a,l){l[1]&1024&&i!==(i=a[41]("newLimitInfoText")+"")&&e.set_data(s,i)},d(a){a&&e.detach(t)}}}function Ki(o){let t=o[197].value==="netdeposit"&&o[41]("newLimitInfoText")!=="newLimitInfoText"&&o[41]("newLimitInfoText").trim().length,i,s=t&&Hi(o);return{c(){s&&s.c(),i=e.empty()},m(a,l){s&&s.m(a,l),e.insert(a,i,l)},p(a,l){l[0]&512|l[1]&1024&&(t=a[197].value==="netdeposit"&&a[41]("newLimitInfoText")!=="newLimitInfoText"&&a[41]("newLimitInfoText").trim().length),t?s?s.p(a,l):(s=Hi(a),s.c(),s.m(i.parentNode,i)):s&&(s.d(1),s=null)},d(a){a&&e.detach(i),s&&s.d(a)}}}function Yi(o){let t,i,s=o[41]("complianceText")+"",a;return{c(){t=e.element("div"),i=e.element("p"),a=e.text(s),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,a)},p(l,r){r[1]&1024&&s!==(s=l[41]("complianceText")+"")&&e.set_data(a,s)},d(l){l&&e.detach(t)}}}function Zi(o){let t,i,s=o[41]("limitType")+"",a,l,r,d,u,f=e.ensure_array_like(o[9]),c=[];for(let L=0;L<f.length;L+=1)c[L]=Xi(vi(o,f,L));return{c(){t=e.element("label"),i=e.element("span"),a=e.text(s),l=e.space(),r=e.element("select");for(let L=0;L<c.length;L+=1)c[L].c();e.attr(i,"class","LimitSelectText"),e.attr(r,"name",""),e.attr(r,"id",""),o[20]===void 0&&e.add_render_callback(()=>o[96].call(r)),e.attr(t,"class","LimitTypeDropdownWrapper "+(o[42]?"":"Mobile"))},m(L,b){e.insert(L,t,b),e.append(t,i),e.append(i,a),e.append(t,l),e.append(t,r);for(let v=0;v<c.length;v+=1)c[v]&&c[v].m(r,null);e.select_option(r,o[20],!0),d||(u=[e.listen(r,"change",o[96]),e.listen(r,"change",o[97])],d=!0)},p(L,b){if(b[1]&1024&&s!==(s=L[41]("limitType")+"")&&e.set_data(a,s),b[0]&512|b[1]&33554432){f=e.ensure_array_like(L[9]);let v;for(v=0;v<f.length;v+=1){const w=vi(L,f,v);c[v]?c[v].p(w,b):(c[v]=Xi(w),c[v].c(),c[v].m(r,null))}for(;v<c.length;v+=1)c[v].d(1);c.length=f.length}b[0]&1048576&&e.select_option(r,L[20])},d(L){L&&e.detach(t),e.destroy_each(c,L),d=!1,e.run_all(u)}}}function Xi(o){let t,i=o[56](o[197])+"",s;return{c(){t=e.element("option"),s=e.text(i),t.__value=o[199],e.set_input_value(t,t.__value)},m(a,l){e.insert(a,t,l),e.append(t,s)},p(a,l){l[0]&512&&i!==(i=a[56](a[197])+"")&&e.set_data(s,i)},d(a){a&&e.detach(t)}}}function Ji(o){let t,i,s=o[41]("period")+"",a,l;function r(f,c){return f[7]==="true"?hn:Ln}let d=r(o),u=d(o);return{c(){t=e.element("div"),i=e.element("span"),a=e.text(s),l=e.space(),u.c(),e.attr(i,"class","PeriodSelectText"),e.attr(t,"class","LimitPeriodDropdownWrapper "+(o[42]?"":"Mobile"))},m(f,c){e.insert(f,t,c),e.append(t,i),e.append(i,a),e.append(t,l),u.m(t,null)},p(f,c){c[1]&1024&&s!==(s=f[41]("period")+"")&&e.set_data(a,s),d===(d=r(f))&&u?u.p(f,c):(u.d(1),u=d(f),u&&(u.c(),u.m(t,null)))},d(f){f&&e.detach(t),u.d()}}}function Ln(o){let t,i,s,a=e.ensure_array_like(o[12][o[13]].periods),l=[];for(let r=0;r<a.length;r+=1)l[r]=Qi(hi(o,a,r));return{c(){t=e.element("select");for(let r=0;r<l.length;r+=1)l[r].c();e.attr(t,"name",""),e.attr(t,"id",""),t.disabled=o[37],o[14]===void 0&&e.add_render_callback(()=>o[101].call(t))},m(r,d){e.insert(r,t,d);for(let u=0;u<l.length;u+=1)l[u]&&l[u].m(t,null);e.select_option(t,o[14],!0),i||(s=[e.listen(t,"change",o[101]),e.listen(t,"change",o[45])],i=!0)},p(r,d){if(d[0]&12288|d[1]&1024){a=e.ensure_array_like(r[12][r[13]].periods);let u;for(u=0;u<a.length;u+=1){const f=hi(r,a,u);l[u]?l[u].p(f,d):(l[u]=Qi(f),l[u].c(),l[u].m(t,null))}for(;u<l.length;u+=1)l[u].d(1);l.length=a.length}d[1]&64&&(t.disabled=r[37]),d[0]&28672&&e.select_option(t,r[14])},d(r){r&&e.detach(t),e.destroy_each(l,r),i=!1,e.run_all(s)}}}function hn(o){let t,i,s,a=o[41](o[14])+"",l,r,d,u,f,c,L,b,v=e.ensure_array_like(o[12][o[13]].periods),w=[];for(let k=0;k<v.length;k+=1)w[k]=$i(yi(o,v,k));return{c(){t=e.element("div"),i=e.element("div"),s=e.element("p"),l=e.text(a),r=e.space(),d=e.svg_element("svg"),u=e.svg_element("path"),f=e.space(),c=e.element("div");for(let k=0;k<w.length;k+=1)w[k].c();e.attr(u,"d","M 90 24.25 c 0 -0.896 -0.342 -1.792 -1.025 -2.475 c -1.366 -1.367 -3.583 -1.367 -4.949 0 L 45 60.8 L 5.975 21.775 c -1.367 -1.367 -3.583 -1.367 -4.95 0 c -1.366 1.367 -1.366 3.583 0 4.95 l 41.5 41.5 c 1.366 1.367 3.583 1.367 4.949 0 l 41.5 -41.5 C 89.658 26.042 90 25.146 90 24.25 z"),e.attr(d,"xmlns","http://www.w3.org/2000/svg"),e.attr(d,"viewBox","0 0 100 100"),e.attr(d,"class","LimitsConfigIcon"),e.toggle_class(d,"active",o[39]),e.attr(i,"class","LimitsConfigLabel"),e.attr(i,"role","button"),e.attr(i,"tabindex","0"),e.attr(c,"class","LimitsDropDown"),e.toggle_class(c,"active",o[39]),e.attr(t,"class","LimitsConfigWrapper "+(o[42]?"":"LimitsConfigWrapperMobile")),e.toggle_class(t,"active",o[39])},m(k,A){e.insert(k,t,A),e.append(t,i),e.append(i,s),e.append(s,l),e.append(i,r),e.append(i,d),e.append(d,u),e.append(t,f),e.append(t,c);for(let D=0;D<w.length;D+=1)w[D]&&w[D].m(c,null);L||(b=[e.listen(i,"click",o[43]),e.listen(i,"keydown",o[98])],L=!0)},p(k,A){if(A[0]&16384|A[1]&1024&&a!==(a=k[41](k[14])+"")&&e.set_data(l,a),A[1]&256&&e.toggle_class(d,"active",k[39]),A[0]&28672|A[1]&9216){v=e.ensure_array_like(k[12][k[13]].periods);let D;for(D=0;D<v.length;D+=1){const z=yi(k,v,D);w[D]?w[D].p(z,A):(w[D]=$i(z),w[D].c(),w[D].m(c,null))}for(;D<w.length;D+=1)w[D].d(1);w.length=v.length}A[1]&256&&e.toggle_class(c,"active",k[39]),A[1]&256&&e.toggle_class(t,"active",k[39])},d(k){k&&e.detach(t),e.destroy_each(w,k),L=!1,e.run_all(b)}}}function Qi(o){let t,i=o[41](o[192])+"",s,a;return{c(){t=e.element("option"),s=e.text(i),t.__value=a=o[192],e.set_input_value(t,t.__value)},m(l,r){e.insert(l,t,r),e.append(t,s)},p(l,r){r[0]&12288|r[1]&1024&&i!==(i=l[41](l[192])+"")&&e.set_data(s,i),r[0]&12288&&a!==(a=l[192])&&(t.__value=a,e.set_input_value(t,t.__value))},d(l){l&&e.detach(t)}}}function $i(o){let t,i=o[41](o[192])+"",s,a,l,r,d;function u(){return o[99](o[192])}function f(...c){return o[100](o[192],...c)}return{c(){t=e.element("div"),s=e.text(i),a=e.space(),e.attr(t,"role","option"),e.attr(t,"tabindex","0"),e.attr(t,"aria-selected",l=o[14]===o[192])},m(c,L){e.insert(c,t,L),e.append(t,s),e.append(t,a),r||(d=[e.listen(t,"click",u),e.listen(t,"keydown",f)],r=!0)},p(c,L){o=c,L[0]&12288|L[1]&1024&&i!==(i=o[41](o[192])+"")&&e.set_data(s,i),L[0]&28672&&l!==(l=o[14]===o[192])&&e.attr(t,"aria-selected",l)},d(c){c&&e.detach(t),r=!1,e.run_all(d)}}}function eo(o){let t,i=o[21]===null?`${o[41]("invalidInputMessage")}`:o[21]<o[15]?`${o[41]("invalidInputMessageLimitMin",{values:{minValue:o[15],maxValue:o[16],currency:o[1]}})}`:`${o[41]("invalidInputMessageLimitMax",{values:{minValue:o[15],maxValue:o[16],currency:o[1]}})}`,s;return{c(){t=e.element("p"),s=e.text(i),e.attr(t,"class","InvalidInput")},m(a,l){e.insert(a,t,l),e.append(t,s)},p(a,l){l[0]&2195458|l[1]&1024&&i!==(i=a[21]===null?`${a[41]("invalidInputMessage")}`:a[21]<a[15]?`${a[41]("invalidInputMessageLimitMin",{values:{minValue:a[15],maxValue:a[16],currency:a[1]}})}`:`${a[41]("invalidInputMessageLimitMax",{values:{minValue:a[15],maxValue:a[16],currency:a[1]}})}`)&&e.set_data(s,i)},d(a){a&&e.detach(t)}}}function yn(o){let t,i=o[41]("setLimit")+"",s,a;return{c(){t=e.element("button"),s=e.text(i),e.attr(t,"class","LimitSubmitButton "+(o[42]?"":"Mobile")),e.attr(t,"type","submit"),t.disabled=a=o[35]||o[38]},m(l,r){e.insert(l,t,r),e.append(t,s)},p(l,r){r[1]&1024&&i!==(i=l[41]("setLimit")+"")&&e.set_data(s,i),r[1]&144&&a!==(a=l[35]||l[38])&&(t.disabled=a)},d(l){l&&e.detach(t)}}}function vn(o){let t;return{c(){t=e.element("div"),t.innerHTML='<div class="skeletonLimitAmount"><div class="skeletonAmountText"><ui-skeleton width="auto" height="20px" structure="text" margin-right="auto"></ui-skeleton></div> <div class="skeletonSubText"><ui-skeleton width="auto" height="20px" structure="text" margin-right="auto"></ui-skeleton></div></div> <div class="skeletonLimitButton"><div><ui-skeleton width="auto" height="40px" structure="rectangle" margin-right="auto"></ui-skeleton></div> <div><ui-skeleton width="auto" height="40px" structure="rectangle" margin-right="auto"></ui-skeleton></div></div> ',e.attr(t,"class","skeletonLimitContent")},m(i,s){e.insert(i,t,s)},p:e.noop,d(i){i&&e.detach(t)}}}function bn(o){let t,i,s,a,l,r,d=e.ensure_array_like(Array(3)),u=[];for(let f=0;f<d.length;f+=1)u[f]=vn(ja(o,d,f));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>',s=e.space(),a=e.element("div");for(let f=0;f<u.length;f+=1)u[f].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(a,"class","skeletonLimitWrapper"),e.attr(r,"class","skeletonInputWrapper"),e.attr(t,"class","skeletonLimitContainer")},m(f,c){e.insert(f,t,c),e.append(t,i),e.append(t,s),e.append(t,a);for(let L=0;L<u.length;L+=1)u[L]&&u[L].m(a,null);e.append(t,l),e.append(t,r)},p:e.noop,d(f){f&&e.detach(t),e.destroy_each(u,f)}}}function kn(o){let t,i,s,a,l,r=o[31]&&o[5]==="false"&&Ti(o);const d=[Qa,Ja,Xa],u=[];function f(c,L){return c[28]?0:c[29]?1:c[28]?-1:2}return~(s=f(o))&&(a=u[s]=d[s](o)),{c(){t=e.element("div"),r&&r.c(),i=e.space(),a&&a.c()},m(c,L){e.insert(c,t,L),r&&r.m(t,null),e.append(t,i),~s&&u[s].m(t,null),o[103](t),l=!0},p(c,L){c[31]&&c[5]==="false"?r?r.p(c,L):(r=Ti(c),r.c(),r.m(t,i)):r&&(r.d(1),r=null);let b=s;s=f(c),s===b?~s&&u[s].p(c,L):(a&&(e.group_outros(),e.transition_out(u[b],1,1,()=>{u[b]=null}),e.check_outros()),~s?(a=u[s],a?a.p(c,L):(a=u[s]=d[s](c),a.c()),e.transition_in(a,1),a.m(t,null)):a=null)},i(c){l||(e.transition_in(a),l=!0)},o(c){e.transition_out(a),l=!1},d(c){c&&e.detach(t),r&&r.d(),~s&&u[s].d(),o[103](null)}}}function wn(o,t,i){let s,a,l,r;e.component_subscribe(o,e.$format,n=>i(41,r=n));let{$$slots:d={},$$scope:u}=t,{lang:f="en"}=t,{currency:c=""}=t,{limits:L=""}=t,{session:b=""}=t,{userid:v=""}=t,{endpoint:w=""}=t,{apiversion:k=""}=t,{companylimits:A="false"}=t,{tablabels:D=""}=t,{showcompanylimitsinfo:z="false"}=t,{customcurrencysymbols:B=""}=t,{netdepositprogress:W="false"}=t,{enablecompliancetext:G=""}=t,{deletelimit:T=""}=t,{amountsconfig:U=""}=t,{periodsconfig:ue=""}=t,{defaultperiod:ne=""}=t,{limittabindex:O=""}=t,{tabcategory:Q=""}=t,{limitformat:se=""}=t,{allowedextenssion:Le=".jpg,.jpeg,.png,.pdf,.webp,image/png"}=t,{filesizeallow:ee="12934000"}=t,{clientstyling:oe=""}=t,{clientstylingurl:te=""}=t,{translationurl:ae=""}=t,{mbsource:re}=t,{timezone:Me="GMT"}=t,{isLimitNotification:Ce="false"}=t,{cooloffstrictmode:$="false"}=t,{inputhasdecimals:_}=t,{usecustomdropdown:x="false"}=t,N,Te=[],io,oo=window.navigator.userAgent,ao=!e.isMobile(oo),gt=1/0,Lt=1/0,st=0,R="",le="",je="",Je=0,Qe=0,ht="",We="",he="",rt="",yt="popupTitle",Ne=0,Vt,q,lt,M=[],me={},Ue={},$e={},no={},Ye,et=J({},Ot),vt={remove:{}},ce={},ve={},Ft=!1,At=!1,de=!0,Ee=!1,Ct=!1,tt=!1,Pe=!1,Ge=!1,pt=!1,Be=!0,dt=!1,qt=!1,Gt=!1,bt=!1,be=!1,kt=!1,wt=!1,Ze=!1;const Ht=n=>{if(n==="local")return Ht(Intl.DateTimeFormat().resolvedOptions().timeZone);try{return Intl.DateTimeFormat(void 0,{timeZone:n}),n}catch(p){return console.warn(`[Player Account Gaming Limits] Invalid timezone "${n}" — falling back to "GMT".`),"GMT"}},so=(n,p=new Date)=>{var m,g;if(n==="GMT"||n==="UTC"||n==="Etc/GMT")return"GMT";try{return(g=(m=Intl.DateTimeFormat("en-US",{timeZone:n,timeZoneName:"short"}).formatToParts(p).find(y=>y.type==="timeZoneName"))==null?void 0:m.value)!=null?g:n}catch(y){return n}},Kt=Ht(Me),it=n=>{const p=new Date(n);if(isNaN(p.getTime()))return"-";const m=so(Kt,p);return`${new Intl.DateTimeFormat("en-DE",{timeZone:Kt,day:"numeric",month:"numeric",year:"numeric",hour:"numeric",minute:"numeric"}).format(p).replaceAll("/",".")} (${m})`},Pt=(n,p="GET",m=null)=>ge(this,null,function*(){const g=new URL(n.startsWith("http")?n:`${w}${n}`),y={method:p,headers:{"X-SessionID":b,"Content-Type":"application/json",Accept:"application/json"}};m&&(y.body=JSON.stringify(m));const h=yield fetch(g.href,y);return Se(h)}),ro=()=>{fetch(ae).then(p=>p.json()).then(p=>{Object.keys(p).forEach(m=>{ui(m,p[m])})}).catch(p=>{console.log(p)})};Object.keys(qe).forEach(n=>{ui(n,qe[n])});const Tt=n=>`dataLayer-${n}`,ke=(n,p)=>{if(typeof gtag=="function"){const m=(je||"").toLowerCase(),g=(R||"").toLowerCase(),y=(le||"").toLowerCase();gtag({event:n,limit_category:qe[f][Tt(m)]||je,limit_type:qe[f][Tt(g)]||R,limit_period:qe[f][Tt(y)]||le,limit_amount:q||p})}},Yt=()=>i(39,bt=!bt),zt=n=>{i(14,le=n),i(39,bt=!1)},lo=()=>{var g;const n=U.split(",").map(y=>y.split(":")),p=ue.split(",").map(y=>y.split(":"));for(let[y,h]of n.entries())if(h[0]!==p[y][0])throw new Error(`Limit config mismatch: "${h[0]}" does not match "${p[y][0]}"`);const m=n.reduce((y,h,E)=>{const j=h[0].slice(h[0].indexOf("(")+1,h[0].indexOf(")")),V=h[0].slice(0,h[0].indexOf("(")),I=h[1],P=p[E][1].trim().replace("D","Daily").replace("W","Weekly").replace("M","Monthly").replace("N","None").split("-"),S={value:j,product:V,minMax:I,periods:P,callValue:Z[j].callValue,callValue16:Z[j].callValue16,title:Z[j].title};return y.push(S),y},[]);for(let y=0;y<m.length;y++)i(9,M[y].product=m[y].product,M),i(9,M[y].min=parseInt(m[y].minMax.split("-")[0],10),M),i(9,M[y].max=parseInt(m[y].minMax.split("-")[1],10),M),i(12,Z[m[y].value].periods=m[y].periods,Z);ht=(g=M[0])==null?void 0:g.value,M.forEach(y=>{Ue[y.value]={min:y.min,max:y.max},no[y.value]=y.product}),Ue&&(Ue[ht]?(i(15,Je=Ue[ht].min),i(16,Qe=Ue[ht].max)):(i(15,Je=1),i(16,Qe=9999999)))},po=()=>[...U.matchAll(F.LIMIT_TYPE_EXTRACTOR)].map(n=>n[1]),uo=()=>{i(9,M=[]),po().forEach(m=>{Z[m]?M.push(J({},Z[m])):console.error(`Unknown limit: ${m}`)}),lo(),i(13,R=M[0].value);const p=Z[R].periods;i(14,le=ne&&p.find(m=>m===ne)||p[0]),je=M[0].product,i(26,Ft=M.length>1),i(27,At=Z[R].periods.length>1)},mo=(n,p)=>{var g,y,h;const m=(y=(g=n==null?void 0:n[Ne])==null?void 0:g.currentLimits)==null?void 0:y.find(E=>E.period===p);return(h=m==null?void 0:m.isCoolOffCompleted)!=null?h:!0},co=()=>{$==="true"&&i(38,Gt=!mo(M,le))},xt=()=>{var n,p,m;M[Ne]||i(20,Ne=0),M.length>0&&M[Ne]&&(i(13,R=M[Ne].value),i(14,le=((n=Z[R])==null?void 0:n.periods[0])||""),i(27,At=(((m=(p=Z[R])==null?void 0:p.periods)==null?void 0:m.length)||0)>1))},Zt=()=>{je=M[Ne].product},Se=n=>{if(n.status>=300)fo(n);else return i(30,Ct=!1),n.status!==204?n.json():n},fo=n=>{i(29,Ee=!0);let p;throw n.json().then(m=>{for(const g in fi)if(m.error&&fi[g].some(y=>m.error.includes(y))){p=g;break}console.error("errType",p),!p&&mt(m)}).finally(()=>ge(this,null,function*(){p&&mt(p),i(29,Ee=!1),i(28,de=!1),yield e.tick(),(Ze||be)&&ut()})),new Error("An error occured during the fetch request")},go=()=>ge(this,null,function*(){if(!(q>0))return;xe(),i(28,de=!0);let n=new URL(`${w}/v2/player/${v}/limits`),p={};R===F.SESSION_LIMIT?p={sessionLimit:q,sessionLimitUnit:"minute"}:R===F.CUMULATIVE_SESSION?p[Z[R].callValue]=[{period:le,minutes:q}]:p[Z[R].callValue]=[{period:Z[R].periods[0]==="None"?null:le,amount:q,currency:c}];let m={method:"PUT",headers:{"X-SessionID":b,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(p)};const g=yield fetch(n.href,m);yield Se(g),ke(_e.limitation_success),yield ze()}),Lo=()=>{var g,y;const n=M[Ne],p=Z[R].callValue16;let m=null;if(be){const h={type:p,period:le,product:je};m=((g=me==null?void 0:me.limits)==null?void 0:g.find(E=>ci(E,h)))||null}else{const h=je.toLowerCase();m=((y=n==null?void 0:n.currentLimits)!=null?y:[]).find(j=>{var I,P,S;const V=j;return V.period===le&&((S=(P=(I=V.rawLimit)==null?void 0:I.products)!=null?P:V.products)!=null?S:[]).some(C=>C.toLowerCase()===h)})||null}return m?{action:"UPDATE",targetType:p,limitId:m.id,method:"PUT",endpointVersion:"v2"}:{action:"CREATE",targetType:p,method:"POST",endpointVersion:"v1"}},ho=n=>!n||n.reviewPending&&n.reviewPending.id?!1:!!(n.reviewRequired&&!We&&q&&q>(n.amount||0)),yo=n=>n.action==="UPDATE"?We?{amount:q,skipCoolOff:!1,payload:{DocumentId:We}}:{amount:q,skipCoolOff:!1}:{amount:q,currency:c,period:Z[R].periods[0]==="None"?null:le,type:n.targetType,products:[je],walletTypes:["Deposit","NetDeposit"].includes(n.targetType)?["All"]:["RealCash"]},Xt=()=>ge(this,null,function*(){const n=ii();if(ho(n)){i(34,pt=!0),i(32,Pe=!0),xe(),i(28,de=!1);return}const p=Lo(),m=yo(p);xe(),i(28,de=!0);const g=p.action==="UPDATE"?`${w}/${p.endpointVersion}/player/${v}/limits/monetary/${p.limitId}`:`${w}/${p.endpointVersion}/player/${v}/limits/monetary`,y=new URL(g);try{const h=yield fetch(y.href,{method:p.method,headers:{"X-SessionID":b,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(m)});yield Se(h),ke(_e.limitation_success),yield ze()}catch(h){console.error(h)}finally{i(28,de=!1),i(34,pt=!1),We=""}}),vo=()=>ge(this,null,function*(){if(!(q>0))return;xe(),i(28,de=!0);const n={sessionLimit:q,sessionLimitUnit:"minute"};yield Pt(`/v1/player/${v}/limits/session/`,"PUT",n),ke(_e.limitation_success),yield ze()}),bo=()=>ge(this,null,function*(){if(!(q>0))return;xe(),i(28,de=!0);const n=new URL(`${w}/v1/player/${v}/limits/session/`);let g={method:"PUT",headers:{"X-SessionID":b,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({cumulativeSessionLimits:[{period:le,minutes:q}]})};const y=yield fetch(n.href,g);yield Se(y),ke(_e.limitation_success),yield ze()}),ko=()=>ge(this,null,function*(){if(!(q>0))return;xe(),i(28,de=!0);const n={amount:q,roleLimitAmount:0,softMigration:!1,keepLimit:!1},p=yield Pt(`/v2/player/${v}/limit/lugas`,"POST",n);i(22,lt=p.popup),Vt=p.regulatorDepositLimitAmount,ke(_e.limitation_success),yield ze()}),wo=()=>ge(this,null,function*(){$e={};try{if(k==="gm16")switch(R){case"lugas":yield ko();break;case F.SESSION_LIMIT:yield vo();break;case F.CUMULATIVE_SESSION:yield bo();break;default:yield Xt();break}else if(k==="gmcore")yield go();else throw Error(`Invalid apiversion attribute: ${k}`);Ce==="true"&&(window.postMessage({type:"WidgetNotification",data:{type:"success",message:he}},window.location.href),window.postMessage({type:"SubmitLimitNotificationSuccess"},window.location.href))}catch(n){Ce==="true"&&window.postMessage({type:"WidgetNotification",data:{type:"error",message:r("limitNotificationFail")}},window.location.href),console.error("limitUpdateError:",n)}ke(_e.limitation_request)}),ze=()=>ge(this,null,function*(){switch(k){case"gmcore":yield _o();break;case"gm16":yield Dt();break}}),_o=()=>ge(this,null,function*(){i(28,de=!0);let n=new URL(`${w}/v2/player/${v}/limits`),p={method:"GET",headers:{"X-SessionID":b,"Content-Type":"application/json",Accept:"application/json"}};try{const m=yield fetch(n.href,p);me=Se(m),tt&&mt(),Eo(me),Io(me),i(21,q=null),i(35,Be=!0),i(36,dt=!1)}catch(m){console.error("Error LimitsWidget: ",m),i(29,Ee=!0)}finally{i(28,de=!1)}}),Jt=()=>({method:"GET",headers:{"X-SessionID":b,"Content-Type":"application/json",Accept:"application/json"}}),So=()=>ge(this,null,function*(){const n=be||kt;if(!n&&!Ze)return;let p=ft[l]||[];if(n&&(l===ie.deposit||l===ie.netdeposit)){const m=[...ft[ie.deposit]||[],...ft[ie.netdeposit]||[]];p=[...new Set(m)]}if(p=p.filter(m=>m!=="Wager"),p.length>0){const m=p.map(g=>`playerLimitTypes=${g}`).join("&");yield To(m)}}),Ao=()=>ge(this,null,function*(){const n=new URL(`${w}/v1/player/${v}/limits/monetary`),p=yield fetch(n.href,Jt()),m=yield Se(p);me=m,No(m),yield Po(),yield So(),Et(),tt&&R!==F.SESSION_LIMIT&&R!==F.CUMULATIVE_SESSION&&mt(),yield e.tick(),ut(),i(21,q=null),i(35,Be=!0),i(36,dt=!1)}),Co=()=>ge(this,null,function*(){const n=new URL(`${w}/v1/player/${v}/limits/session`),p=yield fetch(n.href,Jt()),m=yield Se(p);Uo(m),Bo(m),tt&&(R===F.SESSION_LIMIT||R===F.CUMULATIVE_SESSION)&&mt(),i(21,q=null),i(35,Be=!0),i(36,dt=!1)}),Dt=()=>ge(this,null,function*(){i(28,de=!0),i(29,Ee=!1);const n=M.some(p=>p.value===F.SESSION_LIMIT||p.value===F.CUMULATIVE_SESSION);try{const p=[Ao()];n&&p.push(Co()),yield Promise.all(p)}catch(p){i(29,Ee=!0)}finally{i(28,de=!1)}}),Po=()=>ge(this,null,function*(){let n=new URL(`${w}/v1/player/${v}/limits/monetary/balance`);const p={method:"GET",headers:{"X-SessionID":b,"Content-Type":"application/json",Accept:"application/json"}};try{const m=yield fetch(n.href,p),g=yield Se(m);if(!g)return;let y=g.limitBalances||[];Array.isArray(y[0])&&(y=y.flat()),i(9,M=M.map(h=>{if(!h.currentLimits)return h;const E=(h.product||"").toLowerCase(),j=(h.value||"").toLowerCase(),V=j.includes(ie.netdeposit),I=j.includes(ie.deposit)&&!V,P=j.includes(ie.loss),S=j.includes(ie.wager),C=h.currentLimits.map(X=>{var De,Oe;const H=y.filter(we=>{const fe=(we.limitType||"").toLowerCase(),Ae=we.limitPeriod||"",ot=X.period||"",Re=fe.includes(ie.netdeposit),ct=fe.includes(ie.deposit)&&!Re,at=fe.includes(ie.loss),nt=fe.includes(ie.wager),_t=I&&ct||V&&Re||P&&at||S&&nt;return(fe===j||fe===`operator${j}`||fe===`system${j}`||_t)&&(Ae===ot||Ae==="Monthly"&&ot==="Month"||Ae==="Month"&&ot==="Monthly")}),K=we=>H.find(fe=>(fe.limitProducts||[]).map(Ae=>Ae.toLowerCase()).includes(we));let Y=K(E);!Y&&be&&(Y=K("all"));const Ve=Y?(we=>{var fe,Ae;return we?typeof we=="object"?(Ae=(fe=we.parsedValue)!=null?fe:we.amount)!=null?Ae:0:we:0})((Oe=(De=Y.spentBalance)==null?void 0:De.amount)!=null?Oe:Y.spentBalance):0,pe=parseFloat(Ve.toString().replace(F.COMMA_REMOVAL_REGEX,""));return ye(J({},X),{spentBalance:{amount:isNaN(pe)?0:pe}})});return h.currentLimits=Xe(C),h})),Et(),i(9,M=[...M]),yield e.tick(),ut()}catch(m){console.error(m)}}),ut=()=>{M.forEach((n,p)=>{It(p,-1),n.visibleLimitsInUI&&n.visibleLimitsInUI.forEach((m,g)=>{It(p,g)})})},To=(n="")=>ge(this,null,function*(){let p=n;if(!p&&l!==void 0&&(p=(ft[l]||[]).map(h=>`playerLimitTypes=${h}`).join("&")),!p)return;const m=new URL(`/api/pam/v1/limit-balances/most-restrictive?userId=${v}&${p}`,w),g={method:"GET",headers:{"X-SessionID":b,"Content-Type":"application/json",Accept:"application/json"}};try{const y=yield fetch(m.href,g),h=yield Se(y);zo(h)}catch(y){i(29,Ee=!0)}}),zo=n=>{if(k!=="gm16"||!(n!=null&&n.limitBalances))return;let p=n.limitBalances;Array.isArray(p[0])&&(p=p.flat());const m=h=>h==null?0:typeof h=="number"?h:typeof h=="object"&&h.parsedValue!==void 0?parseFloat(h.parsedValue):typeof h=="object"&&h.amount!==void 0?m(h.amount):typeof h=="string"&&parseFloat(h.replace(F.COMMA_REMOVAL_REGEX,""))||0,g=ie.deposit.toLowerCase(),y=ie.netdeposit.toLowerCase();gt=1/0,Lt=1/0,st=0,p.forEach(h=>{var j,V;const E=(h.limitType||"").toLowerCase();if(E.includes(g)||E.includes(y)){const I=m(h.limitAmount),P=m((V=(j=h.spentBalance)==null?void 0:j.amount)!=null?V:h.spentBalance),S=Math.max(0,I-P);I>0&&I<gt&&(gt=I),S<Lt&&(Lt=S),P>st&&(st=P)}}),i(9,M=M.map(h=>{const E=(h.value||"").toLowerCase(),j=(h.product||"").toLowerCase();let V=[];p.forEach(P=>{var H,K;const S=(P.limitType||"").toLowerCase(),C=(P.limitProducts||[]).map(Y=>(Y||"").toLowerCase());(S===E||S===`operator${E}`)&&(C.includes(j)||C.includes("all"))&&V.push(ye(J({},P),{amount:m(P.limitAmount),period:P.limitPeriod,spent:m((K=(H=P.spentBalance)==null?void 0:H.amount)!=null?K:P.spentBalance),source:"API",isCrossFamily:!1,isOperator:S.includes("operator")||S.includes("system")}))}),h.currentLimits&&h.currentLimits.forEach(P=>{var S,C;V.push(ye(J({},P),{amount:parseFloat(P.amount.toString().replace(F.COMMA_REMOVAL_REGEX,"")),spent:(C=(S=P.spentBalance)==null?void 0:S.amount)!=null?C:0,source:F.LOCAL.toUpperCase()}))});const I=V.reduce((P,S)=>{var X,H;const C=be?S.period:`${S.period}_${S.isOperator?"operator":"user"}`;if(!P[C])P[C]=J({},S);else{const K=(X=P[C].reviewPending)!=null&&X.id?P[C].reviewPending:S.reviewPending,Y=(H=P[C].schedules)!=null&&H.length?P[C].schedules:S.schedules,Ie=P[C].isModified||S.isModified;S.amount<=P[C].amount?P[C]=J(J({},P[C]),S):P[C]=J(J({},S),P[C]),K!=null&&K.id&&(P[C].reviewPending=K),Y!=null&&Y.length&&(P[C].schedules=Y),P[C].isModified=Ie}return P},{});return h.allValidLimits=Xe(Object.values(I)),h})),Et()},Et=()=>{if(k!=="gm16")return;const n=ie.netdeposit,p=ie.deposit;i(9,M=M.map(m=>{const g=(m.value||"").toLowerCase(),y=g.includes(n),h=g.includes(p)&&!y,E=h||y;let j=wt&&m.allValidLimits!==void 0?[...m.allValidLimits]:[...m.currentLimits||[]];be||(j=j.filter(I=>!I.isOperator||I.isModified||I.reviewPending&&I.reviewPending.id));const V=j.filter(I=>wt?!I.isCrossFamily:!I.isExternalFamily).map(I=>{const P=I.reviewPending&&I.reviewPending.id,S=(m.currentLimits||[]).find(X=>X.period===I.period),C=S?S.amount:I.amount;return E&>!==1/0?ye(J({},I),{isModified:I.isModified||!!P,amount:be?I.amount:C,effectiveAmount:I.amount,spent:I.spent!==void 0?I.spent:st,spentBalance:{amount:I.spent!==void 0?I.spent:st},showInfoMessage:wt&&h,restrictiveDisplayAmount:Lt,shouldHideProgress:be?!1:y?W!=="true":!0}):ye(J({},I),{isModified:I.isModified||!!P,amount:be?I.amount:C,shouldHideProgress:!be})});return ye(J({},m),{visibleLimitsInUI:V})})),i(9,M=[...M])},xo=()=>M.every((n,p)=>{var g,y;return(((g=n.visibleLimitsInUI)==null?void 0:g.length)||0)===((y=Te[p])==null?void 0:y.length)&&Te[p].every(h=>h!==null)}),Do=(n,p,m,g)=>{try{const y=n>0?Math.min(p/n*100,100):0,h=Math.round(y),E=document.createElement("div");E.className=`Progress-bar-container ${h===0?"ZeroProgress":""}`;const j=document.createElement("div");j.className="Progress-bar-fill",j.style.width=`${y}%`;const V=document.createElement("span");V.className="Progress-bar-label";const I=isNaN(g)?0:g,P=et[m]||m;return V.textContent=`${P}${I.toFixed(2)}`,E.appendChild(j),E.appendChild(V),E}catch(y){return console.error(y),document.createElement("div")}},It=(n,p)=>{var E;const m=M[n];if(!m||!((E=m.visibleLimitsInUI)!=null&&E[p]))return;const g=m.visibleLimitsInUI[p],y=`#progress-${n}-${p}`,h=N==null?void 0:N.querySelector(y);if(h){if(g.shouldHideProgress){h.innerHTML="";return}h.innerHTML="",h.appendChild(Do(g.amount,g.spent,c,g.spent))}},Mt=()=>ge(this,null,function*(){var p,m;yield e.tick();let n=!0;for(let g=0;g<M.length;g++){const y=((p=M[g].visibleLimitsInUI)==null?void 0:p.length)||0;for(let h=0;h<y;h++)if(!Te[g]||!Te[g][h]){n=!1;break}if(!n)break}if(!n){setTimeout(()=>Mt(),10);return}for(let g=0;g<M.length;g++){const y=((m=M[g].visibleLimitsInUI)==null?void 0:m.length)||0;for(let h=0;h<y;h++)It(g,h)}}),Eo=n=>{M.forEach(p=>{p.currentLimits=[];const m=Array.isArray(n[Z[p.value].callValue])?n[Z[p.value].callValue]:[n[Z[p.value].callValue]];m.length===0||m[0]===void 0||(m.forEach((g,y)=>{var E;const h=n[Z[p.value].callValue][y];p.currentLimits.push({}),p.currentLimits[y].limitType=p.value,p.currentLimits[y].amount=se?h.amount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(h.amount),p.currentLimits[y].currency=(E=et[h.currency])!=null?E:h.currency,p.currentLimits[y].period=h.period,p.currentLimits[y].updateAmount=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(h.updateAmount),p.currentLimits[y].isModified=h.isModified,p.currentLimits[y].expiryDate=it(h.expiryDate)}),p.currentLimits=Xe(p.currentLimits))})},Io=n=>{const p=r("minutes");M.filter(m=>m.value===F.SESSION_LIMIT||m.value===F.CUMULATIVE_SESSION).forEach(m=>{var g;m.currentLimits=[],(g=n[Z[m.value].callValue])==null||g.forEach((y,h)=>{const E=n[Z[m.value].callValue][h];m.currentLimits.push({limitType:m.value,amount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(E.minutes),currency:p,isModified:E.isModified,period:m.value===F.CUMULATIVE_SESSION?E.period:"None",updateAmount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(E.updateMinutes),expiryDate:it(E.expiryDate)})}),m.currentLimits=Xe(m.currentLimits)})},Mo=n=>{n.forEach(p=>{ve[p]&&window.clearInterval(ve[p])}),i(25,ce=Object.fromEntries(Object.entries(ce).filter(([p])=>!n.has(p)))),ve=Object.fromEntries(Object.entries(ve).filter(([p])=>!n.has(p))),n.size>0&&Pa(v,[...n])},jo=n=>{const p=qe[f].seconds,m=qe[f].reloadLimitsButton;n.forEach(({scheduleId:g,acknowledgedAt:y})=>{const h=mi(y),E={timer:h>0?`${h} ${p}`:m,timerStopped:h<=0};if(i(25,ce=ye(J({},ce),{[g]:E})),h>0){const j=window.setInterval(()=>{const V=mi(y);V<=0?(ve[g]&&window.clearInterval(ve[g]),ve=Object.fromEntries(Object.entries(ve).filter(([I])=>I!==g)),i(25,ce=ye(J({},ce),{[g]:{timer:m,timerStopped:!0}}))):i(25,ce=ye(J({},ce),{[g]:{timer:`${V} ${p}`,timerStopped:!1}}))},1e3);ve=ye(J({},ve),{[g]:j})}})},No=n=>{if(!(n!=null&&n.limits))return;const p=Ta(n.limits),m=Wt(v),{toRemove:g,toRestore:y}=za(p,m,Object.keys(ce));Mo(g),jo(y),i(9,M=M.map(h=>{const E=(h.product||"").toLowerCase(),j=(h.callValue16||"").toLowerCase(),I=n.limits.filter(S=>{if(!S||!S.type)return!1;const C=S.type.toLowerCase(),X=gi(C);if(!be&&X)return!1;let H=!1;j===ie.deposit?H=C.includes(ie.deposit)&&!C.includes(ie.netdeposit):j===ie.netdeposit?H=C.includes(ie.netdeposit):H=C.includes(j);const K=(Array.isArray(S.products)?S.products:[S.products]).map(Ie=>(Ie||"").toLowerCase());let Y=K.includes(E)||E!=="all"&&K.includes("all");return H&&Y}).reduce((S,C)=>{var Ve,pe,De,Oe,we,fe,Ae,ot;const X=C.period,H=S[X],K=(h.product||"").toLowerCase(),Y=(C.products||[]).some(Re=>Re.toLowerCase()===K),Ie=H?(H.products||[]).some(Re=>Re.toLowerCase()===K):!1;if(!H)S[X]=J({},C);else{const Re=(De=(pe=(Ve=C.amount)==null?void 0:Ve.parsedValue)!=null?pe:C.amount)!=null?De:0,ct=(fe=(we=(Oe=H.amount)==null?void 0:Oe.parsedValue)!=null?we:H.amount)!=null?fe:0,at=(C.type||"").toLowerCase().includes("operator")||(C.type||"").toLowerCase().includes("system"),nt=(H.type||"").toLowerCase().includes("operator")||(H.type||"").toLowerCase().includes("system"),_t=j.includes("loss");let Fe=!1;Y&&!Ie?Fe=!0:!Y&&Ie?Fe=!1:_t&&at&&!nt&&Number(Re)<Number(ct)?Fe=!0:_t&&!at&&nt&&Number(ct)<Number(Re)?Fe=!1:Number(Re)<Number(ct)&&(Fe=!0);let St=Fe?C.schedules:H.schedules,Bt=Fe?C.reviewPending:H.reviewPending;if(at||nt){const He=at?nt?null:H:C;(Ae=He==null?void 0:He.schedules)!=null&&Ae.length&&(St=He.schedules),(ot=He==null?void 0:He.reviewPending)!=null&&ot.id&&(Bt=He.reviewPending)}Fe&&(S[X]=J({},C)),St&&(S[X].schedules=St),Bt&&(S[X].reviewPending=Bt)}return S},{}),P=Object.values(I).map(S=>{var Y,Ie,Ve;const C=S.schedules&&S.schedules.length>0?S.schedules[0]:null,X=S.reviewPending&&S.reviewPending.id?S.reviewPending:null,H=pe=>{var De,Oe;return pe&&typeof pe=="object"?(Oe=(De=pe.parsedValue)!=null?De:pe.amount)!=null?Oe:0:pe!=null?pe:0};let K=0;if(C){const pe=(Ie=(Y=C.updateAmount)==null?void 0:Y.parsedValue)!=null?Ie:C.updateAmount;K=pe!=null?Number(pe):0}else X&&(K=H(X.requestAmount));return{id:S.id,limitType:h.value,amount:H(S.amount),currency:S.currency,period:S.period,isModified:!!C,updateAmount:K,expiryDate:C?it(C.applyAt):"",scheduleId:C?C.id:null,acknowledgedLimit:C?!!ce[C.id]:!1,isCoolOffCompleted:C?C.isCoolOffCompleted:!1,isOperator:(S.type||"").toLowerCase().includes("operator")||(S.type||"").toLowerCase().includes("system"),source:E!=="all"&&(S.products||[]).map(pe=>(pe||"").toLowerCase()).includes("all")?"Inherited":"API",rawLimit:S,reviewRequired:(Ve=S.reviewRequired)!=null?Ve:!1,reviewPending:X?ye(J({},X),{requestAmount:H(X.requestAmount)}):{}}});return ye(J({},h),{currentLimits:Xe(P)})}))},Uo=n=>{n!=null&&n.sessionLimit&&M.filter(p=>p.value===F.SESSION_LIMIT).forEach(p=>{p.currentLimits=[],p.currentLimits.push({limitType:F.SESSION_LIMIT,amount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(n.sessionLimit.minutes),currency:r("minutes"),isModified:n.sessionLimit.isModified,period:"None",updateAmount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(n.sessionLimit.updateMinutes),expiryDate:n.sessionLimit.expiryDate}),p.currentLimits=Xe(p.currentLimits)})},Bo=n=>{n!=null&&n.cumulativeSessionLimits&&M.filter(p=>p.value===F.CUMULATIVE_SESSION).forEach(p=>{p.currentLimits=[];for(const m of n.cumulativeSessionLimits)p.currentLimits.push({limitType:F.CUMULATIVE_SESSION,amount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(m.minutes),currency:r("minutes"),isModified:m.isModified,period:m.period,updateAmount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(m.updateMinutes),expiryDate:m.expiryDate});p.currentLimits=Xe(p.currentLimits)})},Qt=n=>{window.postMessage({type:"InValidLimit",data:n},window.location.href)},$t=()=>{if(i(36,dt=!0),q===null||Number.isNaN(q)){i(35,Be=!0),Qt(Be);return}if(_==="false"){const n=Math.round(q);q!==n&&i(21,q=n)}i(35,Be=q<Je||q>Qe),Qt(Be)},Oo=n=>n.preventDefault(),ei=n=>{n&&n.preventDefault(),$t(),Be||wo()},ti=()=>{i(35,Be=!1),Ue!=null&&Ue[R]?(i(15,Je=Ue[R].min),i(16,Qe=Ue[R].max)):(i(15,Je=1),i(16,Qe=9999999))},Ro=()=>{if(me){const n=me[Z[R].callValue].find(g=>g.period===le),p=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(n.amount);let m=r("popupImmediateUpdate").replace("{selectedLimit}",Nt(n)).replace("{updatedAmount}",p).replace("{currency}",et[n.currency]||n.currency).replace("{selectedPeriod}",r(`${le}`));i(17,he=n.isModified?`${r("popupPendingUpdate")} ${it(n.expiryDate)}`:m)}i(32,Pe=!0)},ii=()=>{var p,m;if(!me||!me.limits)return null;let n=null;if(Object.keys($e).length>0)n=me.limits.find(g=>g.id===$e.id);else{const y={type:((p=Z[R])==null?void 0:p.callValue16)||ie[R],period:le,product:je};n=me.limits.find(h=>ci(h,y))}return((m=n==null?void 0:n.schedules)==null?void 0:m.length)>0&&ce[n.schedules[0].id]&&(n.amount=n.schedules[0].updateAmount),n},jt=n=>{var p,m;return n==null?0:Number(typeof n=="object"?(m=(p=n.parsedValue)!=null?p:n.amount)!=null?m:0:n)},Wo=()=>{var E,j,V,I,P;let n=ii();if(!n||!n.period){i(32,Pe=!0);return}const p=$o(n)||Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(n.amount||0),m=((E=n.schedules)==null?void 0:E.length)>0?it(n.schedules[0].applyAt):"";let g=r("popupImmediateUpdate").replace("{selectedLimit}",Nt(n)).replace("{updatedAmount}",p).replace("{selectedPeriod}",r(`${n.period}`)),y=!1;if(be&&(me!=null&&me.limits)){const S=((V=(j=Z[R])==null?void 0:j.callValue16)==null?void 0:V.toLowerCase())||"";y=me.limits.some(C=>{var we;const X=(C.type||"").toLowerCase();if(!gi(X))return!1;const K=(C.period||"").toLowerCase(),Y=(n.period||"").toLowerCase();if(!(K===Y||K==="day"&&Y==="daily"||K==="daily"&&Y==="day"||K==="week"&&Y==="weekly"||K==="weekly"&&Y==="week"||K==="month"&&Y==="monthly"||K==="monthly"&&Y==="month"))return!1;const Ve=X.replace("operator","").replace("system",""),pe=S===Ve,De=(C.products||[]).map(fe=>(fe||"").toLowerCase()),Oe=De.length===0||De.includes((je||"").toLowerCase())||De.includes("all");if(pe&&Oe){const fe=jt(C.amount);let Ae=((we=n.schedules)==null?void 0:we.length)>0?jt(n.schedules[0].updateAmount):jt(n.amount);return Ae===0&&q>0&&(Ae=q),Ae>fe}return!1})}if(((I=n.schedules)==null?void 0:I.length)>0&&ce[n.schedules[0].id]){const S=Number(n.schedules[0].updateAmount)===0;i(17,he=S?r("popupLimitRemoved"):g),i(19,yt="popupTitle")}else i(19,yt=y?"popupTitleAdded":"popupTitle"),((P=n.schedules)==null?void 0:P.length)>0?i(17,he=y?`${r("popupPendingOperatorLimit")} ${m}`:`${r("popupPendingUpdate")} ${m}`):i(17,he=y?r("popupOperatorLimitInPlace"):g);i(32,Pe=!0)},Vo=()=>{lt==1&&i(18,rt="PopupKyc"),lt==2&&(i(17,he=`${r("popup2_a")}${Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(Vt)} ${c} ${r("popup2_b")}`),i(18,rt="PopupKyc2")),lt==3&&(i(17,he=r("popup3")),i(18,rt="PopupSuccess")),i(32,Pe=!0)},Fo=()=>{i(17,he=r("sessionLimitUpdated")),i(32,Pe=!0)},qo=()=>{if(me){const n=me[Z[R].callValue].find(g=>(g.period===le||le==="None")&&g.products[0]===je),p=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(n.minutes);let m=r("popupImmediateUpdate").replace("{selectedLimit}",r(`${R}`)).replace("{updatedAmount}",p).replace("{currency}",r("minutes")).replace("{selectedPeriod}",r(`${le}`));i(17,he=n.isModified?`${r("popupPendingUpdate")} ${it(n.expiryDate)}`:m)}i(32,Pe=!0)},Go=n=>{var p;return(p=n==null?void 0:n.error)==null?void 0:p.includes("Limit update is not permitted due to LimitUpdateControl")},Ho=n=>{var p;return(p=n==null?void 0:n.error)==null?void 0:p.includes("Limit remove is not permitted due to LimitUpdateControl")},Ko=n=>{var p;return(p=n==null?void 0:n.error)==null?void 0:p.includes("[NotFoundException] Limit does not exist")},Yo=n=>{var p;return(p=n==null?void 0:n.error)==null?void 0:p.includes("[Exception] Schedule does not exist")},Zo=n=>{var p,m;return((p=n.details)==null?void 0:p.includes("Invalid Session"))||((m=n.error)==null?void 0:m.includes("Invalid Session"))},mt=n=>{var p;if(window.postMessage({type:"OpenLimitsPopup"},window.location.href),Ee){if(i(30,Ct=!0),!n){i(32,Pe=!0);return}Go(n)?i(17,he=r("popupUpdateLimitException")):Ho(n)?i(17,he=r("popupRemoveLimitException")):Ko(n)?i(17,he=r("notFoundException")):Yo(n)?i(17,he=r("scheduleNotFoundException")):(p=n==null?void 0:n.error)!=null&&p.includes("LimitUnderReviewException")?i(17,he=r("limitInDocReview")):Zo(n)?i(17,he=r("sessionExpiredException")):i(17,he=r("genericLimitsPopupError")),i(32,Pe=!0);return}switch(k){case"gmcore":R===F.SESSION_LIMIT||R===F.CUMULATIVE_SESSION?qo():Ro();break;case"gm16":R==="lugas"?Vo():R===F.SESSION_LIMIT||R===F.CUMULATIVE_SESSION?Fo():Wo();break;default:throw new Error(`Invalid apiversion attribute: ${k}`)}},xe=()=>{i(31,tt=!0),window.postMessage({type:"DisableScroll"},window.location.href)},Xo=n=>ge(this,null,function*(){i(13,R=n.limitType),i(14,le=n.period),xe(),i(28,de=!0);let p=`/v2/player/${v}/limits/${ie[n.limitType]}`;n.limitType!==F.SESSION_LIMIT&&(p+=`?periods=${n.period}`);try{yield Pt(p,"DELETE"),ke(_e.success,n.amount),ze()}catch(m){ke(_e.failed,n.amount),console.log(m),i(29,Ee=!0)}}),oi=n=>{switch(vt.remove=n,i(13,R=n.limitType||""),k){case"gmcore":Xo(n);break;case"gm16":$e=n,n.limitType===F.SESSION_LIMIT||n.limitType===F.CUMULATIVE_SESSION?Jo(n):ai(n);break}ke(_e.request,n.amount)},Jo=n=>{const p=new URL(`${w}/v1/player/${v}/limits/session/session`),m=new URL(`${w}/v1/player/${v}/limits/session/cumulativeSession?periods=${n.period}`);let g;switch(n.limitType){case F.SESSION_LIMIT:g=p;break;case F.CUMULATIVE_SESSION:g=m;break;default:throw Error(`Unknown limit.limitType: ${n.limitType}`)}xe(),i(28,de=!0);let y={method:"DELETE",headers:{"X-SessionID":b,"Content-Type":"application/json",Accept:"application/json"}};fetch(g.href,y).then(h=>Se(h)).then(h=>{ke(_e.success,n.amount),ze()}).catch(h=>{ke(_e.failed,n.amount),console.log(h),i(29,Ee=!0)})},ai=n=>{if(n&&n.reviewRequired&&!We){i(34,pt=!0),i(32,Pe=!0),xe();return}xe(),i(28,de=!0);const p=new URL(`${w}/v1/player/${v}/limits/monetary/${n.id}`);We&&p.searchParams.append("documentId",We);let m={method:"DELETE",headers:{"X-SessionID":b,"Content-Type":"application/json",Accept:"application/json"}};fetch(p.href,m).then(g=>Se(g)).then(()=>(ke(_e.success,n.amount),ze())).then(()=>{xt()}).catch(g=>{console.error(g),i(29,Ee=!0),ze()}).finally(()=>{vt.remove={},i(34,pt=!1),We="",i(28,de=!1)})},ni=n=>{const p=new URL(`${w}/v1/player/${v}/limits/schedule/${n.scheduleId}`);xe(),i(28,de=!0);let m={method:"DELETE",headers:{"X-SessionID":b,"Content-Type":"application/json",Accept:"application/json"}};fetch(p.href,m).then(g=>Se(g)).then(g=>{$e=n,ke(_e.success,n.updateAmount),ze()}).catch(g=>{ke(_e.failed,n.updateAmount),console.log(g)})},si=n=>{const p=new URL(`${w}/v1/player/${v}/limits/schedule/acknowledge/${n.scheduleId}`);xe(),i(28,de=!0);let m={method:"PATCH",headers:{"X-SessionID":b,"Content-Type":"application/json",Accept:"application/json"}};fetch(p.href,m).then(g=>Se(g)).then(g=>{$e=n,Ca(v,n.scheduleId,Date.now()),Qo(n),ke(_e.success,n.amount),ze()}).catch(g=>{ke(_e.failed,n.amount),console.log(g)})},Qo=n=>{ve[n.scheduleId]&&window.clearInterval(ve[n.scheduleId]);const p=qe[f].seconds,m=qe[f].reloadLimitsButton;let g=60;i(25,ce=ye(J({},ce),{[n.scheduleId]:{timer:`${g} ${p}`,timerStopped:!1}}));const y=window.setInterval(()=>{if(g===0){window.clearInterval(y),ve=Object.fromEntries(Object.entries(ve).filter(([h])=>h!==n.scheduleId)),i(25,ce=ye(J({},ce),{[n.scheduleId]:{timer:m,timerStopped:!0}}));return}g-=1,i(25,ce=ye(J({},ce),{[n.scheduleId]:{timer:`${g} ${p}`,timerStopped:!1}}))},1e3);ve=ye(J({},ve),{[n.scheduleId]:y})},Nt=n=>{var I;if(!n)return r(R||"");const p=(n.value||n.limitType||n.type||"").toLowerCase(),m=((I=Object.entries(ie).sort((P,S)=>S[1].length-P[1].length).find(([P,S])=>p.includes(S.toLowerCase())||p.includes(P.toLowerCase())))==null?void 0:I[0])||p,g=(n.product||n.products&&n.products[0]||"").toLowerCase(),y=g&&g!=="all"?g.charAt(0).toUpperCase()+g.slice(1):"",h=m+y,E=r(h);if(E!==h)return E;const j=r(m);if(j!==m)return j;const V=P=>{const S=r(P);return(S!==P?S:P.charAt(0).toUpperCase()+P.slice(1)).replace(F.LIMIT_SUFFIX_REGEX,"").trim()};if(g&&g!==""&&g!=="all"){const P=V(m),S=V(g);return`${P} - ${S} Limit`}return m.charAt(0).toUpperCase()+m.slice(1)},$o=(n,p=!1,m=!1)=>{if(!se)return m?`${n.reviewPending.requestAmount}${n.currency}`:p?`${n.updateAmount}${n.currency}`:`${n.amount}${n.currency}`;let g=se;const y=g.match(F.DYNAMIC_DECIMALS_REGEX),h=_==="true"?y?parseInt(y[1],10):2:0,E=y?new RegExp("\\{\\d+decimals\\}","g"):"{decimals}";let j;m?j=n.reviewPending.requestAmount||0:j=p?n.updateAmount:n.amount;let V=_==="true"?parseFloat(j).toFixed(h):Math.round(parseFloat(j)).toString();const[I,P]=se.includes(".")?[",","."]:[".",","];let[S,C]=V.includes(".")?V.split("."):[V,""];if(S=S.replace(/\B(?=(\d{3})+(?!\d))/g,I),g=g.replace("{currency}",et[n.currency]||n.currency).replace("{amount}",S).replace(E,_==="true"&&C?C:""),_==="true"||!C){const X=P==="."?"\\.":P,H=new RegExp(`${X}(?=[\\s\\D]|$)`,"g");g=g.replace(H,"").trim()}return g},Ut=()=>{i(32,Pe=i(31,tt=!1)),i(18,rt=""),i(19,yt="popupTitle"),window.postMessage({type:"CloseLimitsPopup"},window.location.href),window.postMessage({type:"EnableScroll"},window.location.href),i(28,de=!1)},ea=()=>{window.postMessage({type:"uploadDocuments"},window.location.href),Ut()},ri=n=>!n&&!(n.length>0)?i(33,Ge=!1):(i(23,Ye=n),xa(Ye,ee)?Da(Ye,Le)?i(33,Ge=!0):(console.error(r("fileExtenssionDeny")),i(33,Ge=!1)):(console.error(r("fileSizeExceeded")),i(33,Ge=!1))),ta=()=>{if(!Ge)return;i(32,Pe=!1);const n=new URL(`${w}/api/v1/mm/content/${v}/url-upload/`),p={method:"POST",headers:{"Content-Type":"application/json","X-SessionId":b},body:JSON.stringify({})};fetch(n,p).then(m=>Se(m)).then(m=>{ia(m)}).catch(m=>{console.error(r("errorUploadDocument"),m),i(23,Ye=null),i(33,Ge=!1)})},ia=n=>{const p=new FormData;p.append(n.requestId,Ye[0]),fetch(n.url,{method:"POST",body:p}).then(m=>Se(m)).then(m=>{window.postMessage({type:"WidgetNotification",data:{type:"success",message:r("uploadSuccess")}},window.location.href),We=m.Files[0].Reference,vt.remove.id?ai(vt.remove):Xt()}).catch(m=>{window.postMessage({type:"WidgetNotification",data:{type:"error",message:r("errorUploadDocument")}},window.location.href),console.error(r("errorUploadDocument"),m)}).finally(()=>{Ut(),i(23,Ye=null),i(33,Ge=!1)})},oa=()=>{let n=J({},Ot),p="";if(B){const m=B.split(","),g=m[0].trim();if(g.includes(":")){const[y,h]=g.split(":").map(E=>E.trim());p=h||y}else p=g;m.forEach(y=>{if(y.includes(":")){const[h,E]=y.split(":").map(j=>j.trim());h&&(n[h]=E||h)}})}else c&&(p=Ot[c]||c);p&&(n.GBP=p,n.EUR=p,n.USD=p,c&&(n[c]=p)),i(24,et=n)},aa=()=>{Sa(f)},li=n=>{if(n.data)switch(n.data.type){case"LimitDisableState":{i(37,qt=n.data.data);break}case"SubmitLimitNotification":{ei();break}}};e.onMount(()=>(window.addEventListener("message",li),Ze&&M.length&&Mt(),()=>{window.removeEventListener("message",li)}));const na=n=>ri(n.target.files),sa=n=>n&&n.value&&s.some(p=>p&&p.toLowerCase()===n.value.toLowerCase())&&!n.isHiddenByHierarchy,ra=()=>Dt(),la=n=>oi(n.rawLimit),pa=n=>si(n),da=n=>ni(n);function ua(){Ne=e.select_value(this),i(20,Ne)}const ma=()=>{Zt(),xt(),ti()},ca=n=>{(n.key==="Enter"||n.key===" ")&&(n.preventDefault(),Yt())},fa=n=>zt(n),ga=(n,p)=>{(p.key==="Enter"||p.key===" ")&&(p.preventDefault(),zt(n))};function La(){le=e.select_value(this),i(14,le),i(12,Z),i(13,R)}function ha(){q=e.to_number(this.value),i(21,q)}function ya(n){e.binding_callbacks[n?"unshift":"push"](()=>{N=n,i(8,N)})}return o.$$set=n=>{"lang"in n&&i(0,f=n.lang),"currency"in n&&i(1,c=n.currency),"limits"in n&&i(61,L=n.limits),"session"in n&&i(62,b=n.session),"userid"in n&&i(63,v=n.userid),"endpoint"in n&&i(64,w=n.endpoint),"apiversion"in n&&i(65,k=n.apiversion),"companylimits"in n&&i(66,A=n.companylimits),"tablabels"in n&&i(67,D=n.tablabels),"showcompanylimitsinfo"in n&&i(68,z=n.showcompanylimitsinfo),"customcurrencysymbols"in n&&i(69,B=n.customcurrencysymbols),"netdepositprogress"in n&&i(70,W=n.netdepositprogress),"enablecompliancetext"in n&&i(2,G=n.enablecompliancetext),"deletelimit"in n&&i(3,T=n.deletelimit),"amountsconfig"in n&&i(71,U=n.amountsconfig),"periodsconfig"in n&&i(72,ue=n.periodsconfig),"defaultperiod"in n&&i(73,ne=n.defaultperiod),"limittabindex"in n&&i(4,O=n.limittabindex),"tabcategory"in n&&i(74,Q=n.tabcategory),"limitformat"in n&&i(75,se=n.limitformat),"allowedextenssion"in n&&i(76,Le=n.allowedextenssion),"filesizeallow"in n&&i(77,ee=n.filesizeallow),"clientstyling"in n&&i(78,oe=n.clientstyling),"clientstylingurl"in n&&i(79,te=n.clientstylingurl),"translationurl"in n&&i(80,ae=n.translationurl),"mbsource"in n&&i(81,re=n.mbsource),"timezone"in n&&i(82,Me=n.timezone),"isLimitNotification"in n&&i(5,Ce=n.isLimitNotification),"cooloffstrictmode"in n&&i(83,$=n.cooloffstrictmode),"inputhasdecimals"in n&&i(6,_=n.inputhasdecimals),"usecustomdropdown"in n&&i(7,x=n.usecustomdropdown),"$$scope"in n&&i(88,u=n.$$scope)},o.$$.update=()=>{if(o.$$.dirty[2]&64&&i(10,be=z==="true"),o.$$.dirty[2]&16&&i(85,kt=A==="true"),o.$$.dirty[0]&1024|o.$$.dirty[2]&8388608&&(wt=be||kt),o.$$.dirty[2]&256&&i(11,Ze=W==="true"),o.$$.dirty[0]&2|o.$$.dirty[2]&128&&(B!==void 0||c!==void 0)&&oa(),o.$$.dirty[2]&1536&&ue&&U&&uo(),o.$$.dirty[0]&1&&f&&aa(),o.$$.dirty[0]&17|o.$$.dirty[2]&1551&&v&&b&&w&&k&&f&&O&&U&&ue&&ze(),o.$$.dirty[0]&256|o.$$.dirty[2]&65536&&oe&&N&&e.setClientStyling(N,oe),o.$$.dirty[0]&256|o.$$.dirty[2]&131072&&te&&N&&e.setClientStylingURL(N,te),o.$$.dirty[0]&256|o.$$.dirty[2]&524288&&re&&N&&e.setStreamStyling(N,`${re}.Style`,io),o.$$.dirty[2]&262144&&ae&&ro(),o.$$.dirty[0]&16|o.$$.dirty[2]&32&&i(87,a=(D||"").split(",")[Math.max(0,Number(O)-1)]||""),o.$$.dirty[2]&33554432&&i(86,l=a.toLowerCase().includes("net")?"netdeposit":a.toLowerCase().includes("deposit")?"deposit":a.toLowerCase().includes("loss")?"loss":a.toLowerCase().includes("wager")?"wagering":""),o.$$.dirty[2]&16777216&&i(40,s=ft[l]||[]),o.$$.dirty[0]&3584|o.$$.dirty[2]&4194304&&(Ze||be)&&M.length){const n=M.map(m=>{var y;const g=((y=m.visibleLimitsInUI)==null?void 0:y.length)||0;return new Array(g).fill(null)});(Te.length!==n.length||Te.some((m,g)=>{var y;return(m==null?void 0:m.length)!==((y=n[g])==null?void 0:y.length)}))&&(i(84,Te=n),e.tick().then(()=>{ut()}))}o.$$.dirty[0]&2560|o.$$.dirty[2]&4194304&&Ze&&Te.length===M.length&&xo()&&Mt(),o.$$.dirty[0]&768|o.$$.dirty[2]&16777216&&M&&N&&l&&e.tick().then(()=>{setTimeout(()=>{ut()},200)})},[f,c,G,T,O,Ce,_,x,N,M,be,Ze,Z,R,le,Je,Qe,he,rt,yt,Ne,q,lt,Ye,et,ce,Ft,At,de,Ee,Ct,tt,Pe,Ge,pt,Be,dt,qt,Gt,bt,s,r,ao,Yt,zt,co,xt,Zt,Dt,$t,Oo,ei,ti,oi,ni,si,Nt,Ut,ea,ri,ta,L,b,v,w,k,A,D,z,B,W,U,ue,ne,Q,se,Le,ee,oe,te,ae,re,Me,$,Te,kt,l,a,u,d,na,sa,ra,la,pa,da,ua,ma,ca,fa,ga,La,ha,ya]}class to extends e.SvelteComponent{constructor(t){super(),e.init(this,t,wn,kn,e.safe_not_equal,{lang:0,currency:1,limits:61,session:62,userid:63,endpoint:64,apiversion:65,companylimits:66,tablabels:67,showcompanylimitsinfo:68,customcurrencysymbols:69,netdepositprogress:70,enablecompliancetext:2,deletelimit:3,amountsconfig:71,periodsconfig:72,defaultperiod:73,limittabindex:4,tabcategory:74,limitformat:75,allowedextenssion:76,filesizeallow:77,clientstyling:78,clientstylingurl:79,translationurl:80,mbsource:81,timezone:82,isLimitNotification:5,cooloffstrictmode:83,inputhasdecimals:6,usecustomdropdown:7},Ea,[-1,-1,-1,-1,-1,-1,-1])}get lang(){return this.$$.ctx[0]}set lang(t){this.$$set({lang:t}),e.flush()}get currency(){return this.$$.ctx[1]}set currency(t){this.$$set({currency:t}),e.flush()}get limits(){return this.$$.ctx[61]}set limits(t){this.$$set({limits:t}),e.flush()}get session(){return this.$$.ctx[62]}set session(t){this.$$set({session:t}),e.flush()}get userid(){return this.$$.ctx[63]}set userid(t){this.$$set({userid:t}),e.flush()}get endpoint(){return this.$$.ctx[64]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get apiversion(){return this.$$.ctx[65]}set apiversion(t){this.$$set({apiversion:t}),e.flush()}get companylimits(){return this.$$.ctx[66]}set companylimits(t){this.$$set({companylimits:t}),e.flush()}get tablabels(){return this.$$.ctx[67]}set tablabels(t){this.$$set({tablabels:t}),e.flush()}get showcompanylimitsinfo(){return this.$$.ctx[68]}set showcompanylimitsinfo(t){this.$$set({showcompanylimitsinfo:t}),e.flush()}get customcurrencysymbols(){return this.$$.ctx[69]}set customcurrencysymbols(t){this.$$set({customcurrencysymbols:t}),e.flush()}get netdepositprogress(){return this.$$.ctx[70]}set netdepositprogress(t){this.$$set({netdepositprogress:t}),e.flush()}get enablecompliancetext(){return this.$$.ctx[2]}set enablecompliancetext(t){this.$$set({enablecompliancetext:t}),e.flush()}get deletelimit(){return this.$$.ctx[3]}set deletelimit(t){this.$$set({deletelimit:t}),e.flush()}get amountsconfig(){return this.$$.ctx[71]}set amountsconfig(t){this.$$set({amountsconfig:t}),e.flush()}get periodsconfig(){return this.$$.ctx[72]}set periodsconfig(t){this.$$set({periodsconfig:t}),e.flush()}get defaultperiod(){return this.$$.ctx[73]}set defaultperiod(t){this.$$set({defaultperiod:t}),e.flush()}get limittabindex(){return this.$$.ctx[4]}set limittabindex(t){this.$$set({limittabindex:t}),e.flush()}get tabcategory(){return this.$$.ctx[74]}set tabcategory(t){this.$$set({tabcategory:t}),e.flush()}get limitformat(){return this.$$.ctx[75]}set limitformat(t){this.$$set({limitformat:t}),e.flush()}get allowedextenssion(){return this.$$.ctx[76]}set allowedextenssion(t){this.$$set({allowedextenssion:t}),e.flush()}get filesizeallow(){return this.$$.ctx[77]}set filesizeallow(t){this.$$set({filesizeallow:t}),e.flush()}get clientstyling(){return this.$$.ctx[78]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[79]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[80]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get mbsource(){return this.$$.ctx[81]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get timezone(){return this.$$.ctx[82]}set timezone(t){this.$$set({timezone:t}),e.flush()}get isLimitNotification(){return this.$$.ctx[5]}set isLimitNotification(t){this.$$set({isLimitNotification:t}),e.flush()}get cooloffstrictmode(){return this.$$.ctx[83]}set cooloffstrictmode(t){this.$$set({cooloffstrictmode:t}),e.flush()}get inputhasdecimals(){return this.$$.ctx[6]}set inputhasdecimals(t){this.$$set({inputhasdecimals:t}),e.flush()}get usecustomdropdown(){return this.$$.ctx[7]}set usecustomdropdown(t){this.$$set({usecustomdropdown:t}),e.flush()}}e.create_custom_element(to,{lang:{},currency:{},limits:{},session:{},userid:{},endpoint:{},apiversion:{},companylimits:{},tablabels:{},showcompanylimitsinfo:{},customcurrencysymbols:{},netdepositprogress:{},enablecompliancetext:{},deletelimit:{},amountsconfig:{},periodsconfig:{},defaultperiod:{},limittabindex:{},tabcategory:{},limitformat:{},allowedextenssion:{},filesizeallow:{},clientstyling:{},clientstylingurl:{},translationurl:{},mbsource:{},timezone:{},isLimitNotification:{},cooloffstrictmode:{},inputhasdecimals:{},usecustomdropdown:{}},["LimitSkeleton","LimitsList","LimitSubmitButton"],[],!0);exports.default=to;
|
|
@@ -4584,7 +4584,7 @@ if (typeof window < "u") {
|
|
|
4584
4584
|
}
|
|
4585
4585
|
};
|
|
4586
4586
|
};
|
|
4587
|
-
customElements.define = e(customElements.define), import("./PlayerAccountGamingLimitsPage2Gm16Nd-
|
|
4587
|
+
customElements.define = e(customElements.define), import("./PlayerAccountGamingLimitsPage2Gm16Nd-ZAFruKPb.js").then(
|
|
4588
4588
|
({ default: t }) => {
|
|
4589
4589
|
!customElements.get("player-account-gaming-limits-page-2-gm16-nd") && customElements.define(
|
|
4590
4590
|
"player-account-gaming-limits-page-2-gm16-nd",
|
|
@@ -4605,7 +4605,7 @@ if (typeof window < "u") {
|
|
|
4605
4605
|
}
|
|
4606
4606
|
};
|
|
4607
4607
|
};
|
|
4608
|
-
customElements.define = e(customElements.define), import("./PlayerAccountGamingLimitsHistory2Nd-
|
|
4608
|
+
customElements.define = e(customElements.define), import("./PlayerAccountGamingLimitsHistory2Nd-af2W3SID.js").then(({ default: t }) => {
|
|
4609
4609
|
!customElements.get("player-account-gaming-limits-history-2-nd") && customElements.define(
|
|
4610
4610
|
"player-account-gaming-limits-history-2-nd",
|
|
4611
4611
|
t.element
|
|
@@ -4621,7 +4621,7 @@ if (typeof window != "undefined") {
|
|
|
4621
4621
|
}
|
|
4622
4622
|
};
|
|
4623
4623
|
};
|
|
4624
|
-
customElements.define = e(customElements.define), import("./PlayerAccountGamingLimitsPage2Gm16Nd-
|
|
4624
|
+
customElements.define = e(customElements.define), import("./PlayerAccountGamingLimitsPage2Gm16Nd-BUl-xKTB.js").then(
|
|
4625
4625
|
({ default: t }) => {
|
|
4626
4626
|
!customElements.get("player-account-gaming-limits-page-2-gm16-nd") && customElements.define(
|
|
4627
4627
|
"player-account-gaming-limits-page-2-gm16-nd",
|
|
@@ -4642,7 +4642,7 @@ if (typeof window != "undefined") {
|
|
|
4642
4642
|
}
|
|
4643
4643
|
};
|
|
4644
4644
|
};
|
|
4645
|
-
customElements.define = e(customElements.define), import("./PlayerAccountGamingLimitsHistory2Nd-
|
|
4645
|
+
customElements.define = e(customElements.define), import("./PlayerAccountGamingLimitsHistory2Nd-Bv20bdkK.js").then(({ default: t }) => {
|
|
4646
4646
|
!customElements.get("player-account-gaming-limits-history-2-nd") && customElements.define(
|
|
4647
4647
|
"player-account-gaming-limits-history-2-nd",
|
|
4648
4648
|
t.element
|