@everymatrix/player-account-gaming-limits-info-card 1.87.26 → 1.87.27

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.
Files changed (30) hide show
  1. package/components/PlayerAccountGamingLimitsConfirmationModal-BYHSs6fR.cjs +1 -0
  2. package/components/PlayerAccountGamingLimitsConfirmationModal-CtIhJMaZ.js +306 -0
  3. package/components/PlayerAccountGamingLimitsConfirmationModal-D9vdZ_ZM.js +306 -0
  4. package/components/PlayerAccountGamingLimitsGroupEdit-9whpgWve.js +1568 -0
  5. package/components/PlayerAccountGamingLimitsGroupEdit-DDshAKn0.cjs +1 -0
  6. package/components/PlayerAccountGamingLimitsGroupEdit-ZOzNQ83F.js +1568 -0
  7. package/components/PlayerAccountGamingLimitsInfoCard-BfqHDlYw.cjs +21 -0
  8. package/components/PlayerAccountGamingLimitsInfoCard-C2dv23qd.js +7411 -0
  9. package/components/PlayerAccountGamingLimitsInfoCard-D_exrGvT.js +7453 -0
  10. package/components/{PlayerAccountGamingLimitsPopup-DHSJ1hpq.js → PlayerAccountGamingLimitsPopup-DG8wpexC.js} +54 -54
  11. package/components/{PlayerAccountGamingLimitsPopup-Ce55cV9R.js → PlayerAccountGamingLimitsPopup-DeXpcbYH.js} +55 -55
  12. package/components/PlayerAccountGamingLimitsPopup-k9o2qPBt.cjs +1 -0
  13. package/components/{PlayerAccountModal-AxHHIdPq.js → PlayerAccountModal-BY_l7Qz-.js} +30 -30
  14. package/components/{PlayerAccountModal-0pqyx-hh.js → PlayerAccountModal-DjywE99z.js} +29 -29
  15. package/components/PlayerAccountModal-ICYwhG76.cjs +1 -0
  16. package/es2015/player-account-gaming-limits-info-card.cjs +1 -1
  17. package/es2015/player-account-gaming-limits-info-card.js +7 -7
  18. package/esnext/player-account-gaming-limits-info-card.js +1 -1
  19. package/package.json +1 -1
  20. package/components/PlayerAccountGamingLimitsConfirmationModal-CPjx_DH_.js +0 -4890
  21. package/components/PlayerAccountGamingLimitsConfirmationModal-Csrimoqp.js +0 -4853
  22. package/components/PlayerAccountGamingLimitsConfirmationModal-RcOa0NNg.cjs +0 -21
  23. package/components/PlayerAccountGamingLimitsGroupEdit-Ca1m5XU8.js +0 -2850
  24. package/components/PlayerAccountGamingLimitsGroupEdit-Cqs__n7J.cjs +0 -1
  25. package/components/PlayerAccountGamingLimitsGroupEdit-DSun0_Zz.js +0 -2850
  26. package/components/PlayerAccountGamingLimitsInfoCard-BQDa_Mg_.cjs +0 -1
  27. package/components/PlayerAccountGamingLimitsInfoCard-C88f1sX4.js +0 -1564
  28. package/components/PlayerAccountGamingLimitsInfoCard-DzK7V5Rg.js +0 -1564
  29. package/components/PlayerAccountGamingLimitsPopup-4zxoW8_v.cjs +0 -1
  30. package/components/PlayerAccountModal-DJEDpoZF.cjs +0 -1
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./PlayerAccountGamingLimitsInfoCard-BfqHDlYw.cjs");function ae(t,i){e.addMessages(t,i)}function De(t){e.$locale.set(t)}const ne={en:{back:"Back to Gaming Limits",limit:"Limit",amount:"Amount",noLimit:"No limit",changeLimitsText:"Are you sure you want to change the {limit}s?",success:"Success lorem Ipsum is simply dummy text of the printing and typesetting industry.",remove:"You have requested to remove this limit. This will be applied on",invalidInputMessageLimit:"The amount needs to be between 1 and 99,999,999.",invalidInputMessageTime:"The time amount needs to be greater than {minTime} and below {maxTime} minutes.",expirationDate:"Expiration Date:",save:"Save",changedLimitTextBefore:"Your limit has been changed or increased:",changedLimitTextAfter:"You will have to wait for the expiration date for your new limit to take effect.",daily:"Daily",weekly:"Weekly",monthly:"Monthly",depositLimit:"Deposit Limit",timeLimit:"Time Limit",wageringLimit:"Wagering Limit",lossLimit:"Loss Limit"},"zh-hk":{back:"返回游戲限制",limit:"限制",amount:"數量",noLimit:"沒有限制t",changeLimitsText:"您確定要更改 {limit} 嗎?",success:"您的遊戲限制已成功設置。",remove:"您已請求取消此限制。 這將應用於",invalidInputMessageLimit:"金額需要在 0 到 99,999,999 之間",invalidInputMessageTime:"時間量需要大於 {minTime} 且低於 {maxTime} 分鐘",expirationDate:"截止日期:",save:"節省",changedLimitTextBefore:"您的限額已更改或增加:",changedLimitTextAfter:"您必須等待到期日期才能使新限制生效",daily:"日常的",weekly:"每周",monthly:"月刊",depositLimit:"存款限额",timeLimit:"时限",wageringLimit:"投注限额",lossLimit:"损失限额"},fr:{back:"Retour aux limites de jeu",daily:"Quotidiennement",weekly:"Hebdomadaire",monthly:"Mensuel",limit:"Limite",amount:"Montant",noLimit:"Aucune limite",changeLimitsText:"Etes-vous sûr de vouloir changer les {limit}s??",success:"Vos limites de jeu ont été respectées.",remove:"Vous avez demandé à ce que cette limite soit supprimée,elle sera appliquée",invalidInputMessageLimit:"Le montant doit être compris entre 1 et 99,999,999.",invalidInputMessageTime:"La durée doit être supérieure au {minTime} et inférieur au {maxTime} minutes .",expirationDate:"Date d'expiration:",save:"Sauvez",changedLimitTextBefore:"Votre limit a été modifiée ou augmentée:",changedLimitTextAfter:"Vous devrez attendre la date d'expiration pour que votre nouvelle limite prenne effet",depositLimit:"Limite de dépôt",timeLimit:"Limite de temps",wageringLimit:"Limite de mise",lossLimit:"Limite de perte"},ro:{back:"Înapoi la limite de joc",limit:"Limită",amount:"Sumă",noLimit:"Fără Limită",changeLimitsText:"Ești sigur că vrei să modifici {limit}?",success:"Limitele tale de joc au fost configurate cu success.",remove:"Ai solicitat eliminarea acestei limite. Acest lucru va avea loc la data expirării limitei",invalidInputMessageLimit:"Trebuie să setezi o sumă intre 1 și 99,999,999.",invalidInputMessageTime:"Trebuie să setezi o limită intre {minTime} minute și {maxTime} minute",expirationDate:"Dată Expirare:",save:"Salvează",changedLimitTextBefore:"Limita ta a fost schimbată sau a crescut:",changedLimitTextAfter:". Trebuie să aștepți până la data de expirare pentru ca noua ta limită să intre în vigoare.",daily:"Zilnic",weekly:"Săptămânal",monthly:"Lunar",depositLimit:"Limită de depunere",timeLimit:"Limită de timp",wageringLimit:"Limită de pariere",lossLimit:"Limite de pierdere"},es:{back:"Regresa a límites de juego",limit:"Límite",amount:"Monto",noLimit:"Sin Límite",changeLimitsText:"Esta seguro que desea cambiar los {limit}es?",success:"Limite actualizado satisfactoriamente",remove:"Ha solicitado retirar este limite. Esto será aplicado",invalidInputMessageLimit:"El monto debe ser entre 1 y 99",invalidInputMessageTime:"La cantidad de tiempo debe ser superior a {minTime} y por debajo de {maxTime} minutos.",expirationDate:"Fecha de expiración:",save:"Guardar",changedLimitTextBefore:"Tú limite ha sido cambiado o incrementado:",changedLimitTextAfter:"Tendrás que esperar a la fecha de expiración para que tu nuevo límite entre en vigencia.",daily:"Diario",weekly:"Semanal",monthly:"Mensual",depositLimit:"Límite de depósito",timeLimit:"Límite de tiempo",wageringLimit:"Límite de apuestas",lossLimit:"Límite de pérdida"},pt:{back:"Voltar para Limites de jogos",limit:"Limite",amount:"Montante",noLimit:"Sem limite",changeLimitsText:"Tem certeza de que deseja alterar os {limite}s?",success:"Seus limites de jogo foram definidos com sucesso.",remove:"Você solicitou a remoção deste limite. Isso será aplicado em",invalidInputMessageLimit:"O valor precisa estar entre 1 e 99.999.999",invalidInputMessageTime:"A quantidade de tempo precisa ser maior que {1} e menor que {99999999} minutos",expirationDate:"Data de Validade",save:"Guardar",changedLimitTextBefore:"Seu limite foi alterado ou aumentado:",changedLimitTextAfter:"Você terá que aguardar a data de expiração para que seu novo limite entre em vigor",daily:"Diariamente",weekly:"Semanalmente",monthly:"Mensalmente",depositLimit:"Limite de Depósito",timeLimit:"Limite de Tempo",wageringLimit:"Limite de Apostas",lossLimit:"Limite de Perda"},hr:{back:"Povratak na ograničenja igranja",limit:"Limit",amount:"Iznos",noLimit:"Nema ograničenja",changeLimitsText:"Jeste li sigurni da želite promijeniti {limit}e?",success:"Uspješno",remove:"Zatražili ste uklanjanje ovog ograničenja. Ovo će se primijeniti na",invalidInputMessageLimit:"Iznos mora biti između 1 i 99",invalidInputMessageTime:"Vremenski iznos mora biti veći od {minTime} i manji od {maxTime} minuta.",expirationDate:"Datum isteka:",save:"Spremi",changedLimitTextBefore:"Vaše ograničenje je promijenjeno ili povećano:",changedLimitTextAfter:"Morat ćete pričekati datum isteka da bi vaše novo ograničenje stupilo na snagu.",daily:"Dnevno",weekly:"Tjedno",monthly:"Mjesečno",depositLimit:"Ograničenje uplate",timeLimit:"Vremensko ograničenje",wageringLimit:"Ograničenje igranja",lossLimit:"Ograničenje gubitka"},"pt-br":{back:"Retornar aos limites do jogo",limit:"Limite",amount:"Quantidade",noLimit:"Sem limite",changeLimitsText:"Tem certeza de que deseja alterar o(s) limite(s)?",success:"A operação bem-sucedida lorem Ipsum é simplesmente um texto fictício da indústria de impressão e composição tipográfica.",remove:"Você solicitou a remoção deste limite. Isto será aplicado a partir de",invalidInputMessageLimit:"A Quantia deve estar entre 1 e 99",invalidInputMessageTime:"A quantidade de tempo precisa ser maior que {minTime} e menor que {maxTime} minutos.",expirationDate:"Data de expiração:",save:"Manter",changedLimitTextBefore:"Seu limite de tempo foi alterado ou aumentado:",changedLimitTextAfter:"Você deve aguardar a data de expiração para que seu novo limite entre em vigor.",daily:"Diário",weekly:"Semanalmente",monthly:"Por mês",depositLimit:"Limite de depósito",timeLimit:"Limite de tempo",wageringLimit:"Limite de aposta",lossLimit:"Limite de perda"},"es-mx":{back:"Regresar a límites de juego",limit:"Límite",amount:"Monto",noLimit:"Sin límite",changeLimitsText:"¿Está seguro que quiere cambiar el/los límite(s)?",success:"Operación exitosa lorem Ipsum is simply dummy text of the printing and typesetting industry.",remove:"Ha solicitado remover este límite. Esto se aplicará a partir de",invalidInputMessageLimit:"El monto debe ser entre 1 y 99,999,999",invalidInputMessageTime:"El monto de tiempo necesita ser mayor a {minTime} y menor a {maxTime} minutos.",expirationDate:"Fecha de expiración:",save:"Guardar",changedLimitTextBefore:"Tú límite de tiempo ha sido cambiado o aumentado:",changedLimitTextAfter:"Tiene que esperar a la fecha de expiración para que su nuevo límite entre en efecto.",daily:"Diario",weekly:"Semanal",monthly:"Mensual",depositLimit:"Límite de depósito",timeLimit:"Límite de tiempo",wageringLimit:"Límite de apuesta",lossLimit:"Límite de pérdida"},tr:{back:"Oyun Sınırlarına Geri Dön",limit:"Sınır",amount:"Miktar",noLimit:"Limit yok",changeLimitsText:"{limit}'leri değiştirmek istediğinizden emin misiniz?",success:"Başarı lorem Ipsum, basım ve dizgi endüstrisinin sahte metnidir.",remove:"Bu sınırın kaldırılmasını talep ettiniz. Bu şu tarihte uygulanacaktır:",invalidInputMessageLimit:"Tutarın 1 ile 99.999.999 arasında olması gerekir.",invalidInputMessageTime:"Süre miktarının {minTime} değerinden büyük ve {maxTime} dakikanın altında olması gerekir.",expirationDate:"Son kullanma tarihi:",save:"Kaydetmek",changedLimitTextBefore:"Limitiniz değiştirildi veya artırıldı:",changedLimitTextAfter:"Yeni limitinizin geçerlilik kazanması için son kullanma tarihini beklemeniz gerekecektir.",daily:"Günlük",weekly:"Haftalık",monthly:"Aylık",depositLimit:"Para Yatırma Limiti",timeLimit:"Zaman sınırı",wageringLimit:"Bahis Limiti",lossLimit:"Kayıp Limiti"},"en-us":{back:"Back to Gaming Limits",limit:"Limit",amount:"Amount",noLimit:"No limit",changeLimitsText:"Are you sure you want to change the {limit}s?",success:"Success lorem Ipsum is simply dummy text of the printing and typesetting industry.",remove:"You have requested to remove this limit. This will be applied on",invalidInputMessageLimit:"The amount needs to be between 1 and 99,999,999.",invalidInputMessageTime:"The time amount needs to be greater than {minTime} and below {maxTime} minutes.",expirationDate:"Expiration Date:",save:"Save",changedLimitTextBefore:"Your limit has been changed or increased:",changedLimitTextAfter:"You will have to wait for the expiration date for your new limit to take effect.",daily:"Daily",weekly:"Weekly",monthly:"Monthly",depositLimit:"Deposit Limit",timeLimit:"Time Limit",wageringLimit:"Wagering Limit",lossLimit:"Loss Limit"}};if(typeof window!="undefined"){let t=function(i){return function(...a){try{return i.apply(this,a)}catch(n){if(n instanceof DOMException&&n.message.includes("has already been used with this registry")||n.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw n}}};customElements.define=t(customElements.define),Promise.resolve().then(()=>require("./PlayerAccountModal-ICYwhG76.cjs")).then(({default:i})=>{!customElements.get("player-account-modal")&&customElements.define("player-account-modal",i.element)})}if(typeof window!="undefined"){let t=function(i){return function(...a){try{return i.apply(this,a)}catch(n){if(n instanceof DOMException&&n.message.includes("has already been used with this registry")||n.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw n}}};customElements.define=t(customElements.define),Promise.resolve().then(()=>require("./PlayerAccountGamingLimitsConfirmationModal-BYHSs6fR.cjs")).then(({default:i})=>{!customElements.get("player-account-gaming-limits-confirmation-modal")&&customElements.define("player-account-gaming-limits-confirmation-modal",i.element)})}function Ie(t){e.append_styles(t,"svelte-5vl9hz",".MenuReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px;cursor:pointer}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.MyAccountCategoryTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:400}.MyAccountCategoryTitleMobile{font-size:16px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.MyAccountCategoryTitleNone{display:none !important}.AccountEditLimitsWrapper{padding:50px;max-width:760px}.AccountEditLimitsWrapper.AccountEditLimitsMobileWrapper{padding:20px}.AccountEditLimitsWrapper.AccountEditLimitsMobileWrapper .AccountEditLimitsControlArea{grid-template-columns:1fr}.AccountEditLimitsWrapper.AccountEditLimitsMobileWrapper .AccountEditLimitsControlArea .AccountEditLimitsSaveButton{width:100%}.AccountEditBackButton{display:inline-block;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-size:26px;font-weight:300;cursor:pointer;margin-bottom:30px}.AccountEditBackButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.AccountEditLimitsHeader{display:flex;flex-direction:row;justify-content:space-between;padding-bottom:5px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.AccountEditLimitsHeader h6{margin:0;font-weight:normal;font-size:16px;line-height:20px}.AccountEditLimitsHeader .AccountEditLimitsIcon{display:flex;width:20px;height:20px;background:transparent;border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));align-items:center;justify-content:center;border-radius:30px;cursor:pointer}.AccountEditLimitChangePeriodIcon{display:flex;width:20px;height:20px;color:var(--emw--color-gray-300, #58586B);background:transparent;border:1px solid var(--emw--color-gray-300, #58586B);align-items:center;justify-content:center;border-radius:30px;cursor:pointer;margin-right:10px}.AccountEditLimitSuccessfulChangeContainer{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));border:1px solid var(--emw--color-primary-100, #F1BED9);font-size:16px;font-weight:300;color:var(--emw--pam-typography, var(--emw--color-contrast, #07072A));border-radius:5px;padding:10px}.AccountEditLimitSuccessfulChangeContainer p{margin:0}.AccountEditLimitsIconWrapper{position:relative;display:inline-block;padding:5px 0 5px 15px;cursor:pointer}.AccountEditLimitsTitle{font-size:16px;font-weight:300;color:var(--emw--pam-typography, var(--emw--color-contrast, #07072A));margin:0;padding:10px 0 10px}.AccountEditLimitsExpiryDate{font-size:12px;font-weight:300;color:var(--emw--color-black, #000000)}.AccountEditLimitsContainer{display:grid;grid-template-columns:1fr 1fr;grid-gap:30px;direction:ltr}@media only screen and (max-width: 1024px){.AccountEditLimitsContainer{grid-template-columns:1fr;grid-gap:20px}}.AccountEditField{width:100%;font-size:14px;font-weight:300;color:var(--emw--pam-contrast, var(--emw--color-contrast, #07072A));padding:10px;line-height:16px;background:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);border-radius:5px;outline:none;transition-duration:0.3s}.AccountEditField:focus,.AccountEditField :focus-within,.AccountEditField :focus-visible,.AccountEditField :visited{border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));box-shadow:0 0 0 1pt var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.AccountEditFieldCustom{padding:3%}.AccountEditLimitsPeriodChangeContainer{background:var(--emw--color-gray-50, #F9F8F8);border-radius:5px}.AccountEditLimitsPeriodChangeContainer p{max-width:290px;display:-webkit-box;padding:10px 35px 15px 10px;color:var(--emw--color-gray-300, #58586B);font-size:12px;font-weight:300}.AccountEditLimitsPeriodChangeContainer p .AccountEditLimitChangePeriodIcon{font-size:14px;font-weight:400}.AccountEditLimitsControlArea{display:grid;grid-template-columns:1fr 1fr;grid-gap:40px;margin-top:35px}.AccountEditLimitsControlArea .AccountEditLimitsSaveButton{padding:12px;cursor:pointer;border-radius:5px;display:flex;align-items:center;justify-content:center;font-size:18px;color:var(--emw--color-black, #000000);text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box;background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF))}.AccountEditLimitsControlArea .AccountEditLimitsSaveButton.AccountEditLimitsButtonDisabled{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));cursor:not-allowed;opacity:0.6}.AccountEditLimitsBox{position:relative}.AccountEditWarningText{position:relative;margin:0}.InvalidInput{color:var(--emw--color-error, var(--emw--color-red, #FD2839));font-size:10px;position:absolute;top:6px;margin:0;line-height:10px}.AccountEditLimitsInputContainer{position:relative;padding-top:10px;width:94%}")}function oe(t,i,a){const n=t.slice();return n[56]=i[a],n[57]=i,n[58]=a,n}function le(t,i,a){const n=t.slice();return n[59]=i[a],n}function se(t,i,a){const n=t.slice();return n[56]=i[a],n[58]=a,n}function Ne(t){let i,a,n,o,l,u,s,r,d,f,k=t[18]("back")+"",v,h,N;return{c(){i=e.element("div"),a=e.svg_element("svg"),n=e.svg_element("defs"),o=e.svg_element("style"),l=e.text(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"),u=e.svg_element("g"),s=e.svg_element("g"),r=e.svg_element("path"),d=e.space(),f=e.element("h2"),v=e.text(k),e.attr(r,"class","aaa"),e.attr(r,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),e.attr(r,"transform","translate(15 15) rotate(180)"),e.attr(s,"transform","translate(20 158)"),e.attr(u,"transform","translate(-20 -158)"),e.attr(a,"xmlns","http://www.w3.org/2000/svg"),e.attr(a,"width","15"),e.attr(a,"height","15"),e.attr(a,"viewBox","0 0 15 15"),e.attr(f,"class","MyAccountCategoryTitleMobile"),e.attr(i,"class","MenuReturnButton")},m(p,g){e.insert(p,i,g),e.append(i,a),e.append(a,n),e.append(n,o),e.append(o,l),e.append(a,u),e.append(u,s),e.append(s,r),e.append(i,d),e.append(i,f),e.append(f,v),h||(N=e.listen(i,"click",t[22]),h=!0)},p(p,g){g[0]&262144&&k!==(k=p[18]("back")+"")&&e.set_data(v,k)},d(p){p&&e.detach(i),h=!1,N()}}}function re(t){let i,a,n=t[18]("success")+"",o;return{c(){i=e.element("div"),a=e.element("p"),o=e.text(n),e.attr(i,"class","AccountEditLimitSuccessfulChangeContainer")},m(l,u){e.insert(l,i,u),e.append(i,a),e.append(a,o)},p(l,u){u[0]&262144&&n!==(n=l[18]("success")+"")&&e.set_data(o,n)},d(l){l&&e.detach(i)}}}function me(t){let i,a=e.ensure_array_like(t[14]),n=[];for(let o=0;o<a.length;o+=1)n[o]=de(se(t,a,o));return{c(){i=e.element("div");for(let o=0;o<n.length;o+=1)n[o].c();e.attr(i,"class","AccountEditLimitSuccessfulChangeContainer")},m(o,l){e.insert(o,i,l);for(let u=0;u<n.length;u+=1)n[u]&&n[u].m(i,null)},p(o,l){if(l[0]&409600){a=e.ensure_array_like(o[14]);let u;for(u=0;u<a.length;u+=1){const s=se(o,a,u);n[u]?n[u].p(s,l):(n[u]=de(s),n[u].c(),n[u].m(i,null))}for(;u<n.length;u+=1)n[u].d(1);n.length=a.length}},d(o){o&&e.detach(i),e.destroy_each(n,o)}}}function ue(t){let i,a=t[18]("remove")+"",n,o,l=(t[56].expiryDate?e.format(new Date(t[56].expiryDate),"d/M/yyyy - h:mm a"):"N/A")+"",u;return{c(){i=e.element("p"),n=e.text(a),o=e.space(),u=e.text(l)},m(s,r){e.insert(s,i,r),e.append(i,n),e.append(i,o),e.append(i,u)},p(s,r){r[0]&262144&&a!==(a=s[18]("remove")+"")&&e.set_data(n,a),r[0]&16384&&l!==(l=(s[56].expiryDate?e.format(new Date(s[56].expiryDate),"d/M/yyyy - h:mm a"):"N/A")+"")&&e.set_data(u,l)},d(s){s&&e.detach(i)}}}function de(t){let i,a=t[56].period==t[17][t[58]].period&&ue(t);return{c(){a&&a.c(),i=e.empty()},m(n,o){a&&a.m(n,o),e.insert(n,i,o)},p(n,o){n[56].period==n[17][n[58]].period?a?a.p(n,o):(a=ue(n),a.c(),a.m(i.parentNode,i)):a&&(a.d(1),a=null)},d(n){n&&e.detach(i),a&&a.d(n)}}}function pe(t){let i,a,n=e.ensure_array_like(t[14]),o=[];for(let l=0;l<n.length;l+=1)o[l]=ye(oe(t,n,l));return{c(){i=e.element("div"),a=e.element("div");for(let l=0;l<o.length;l+=1)o[l].c();e.attr(a,"class","AccountEditLimitsContainer"),e.attr(i,"class","AccountEditContent")},m(l,u){e.insert(l,i,u),e.append(i,a);for(let s=0;s<o.length;s+=1)o[s]&&o[s].m(a,null)},p(l,u){if(u[0]&18836560){n=e.ensure_array_like(l[14]);let s;for(s=0;s<n.length;s+=1){const r=oe(l,n,s);o[s]?o[s].p(r,u):(o[s]=ye(r),o[s].c(),o[s].m(a,null))}for(;s<o.length;s+=1)o[s].d(1);o.length=n.length}},d(l){l&&e.detach(i),e.destroy_each(o,l)}}}function ce(t){let i,a,n=t[18]("noLimit")+"",o,l,u,s,r,d,f,k,v=e.ensure_array_like(t[20].get(t[6])[t[58]].values),h=[];for(let L=0;L<v.length;L+=1)h[L]=ge(le(t,v,L));function N(){t[30].call(i,t[58])}let p=t[17][t[58]].amount==="Custom"&&he(t),g=t[56].isModified===!0&&ve(t);return{c(){i=e.element("select"),a=e.element("option"),o=e.text(n);for(let L=0;L<h.length;L+=1)h[L].c();u=e.space(),s=e.element("div"),p&&p.c(),r=e.space(),g&&g.c(),d=e.empty(),a.__value="",e.set_input_value(a,a.__value),a.disabled=!0,a.selected=!0,a.hidden=!0,e.attr(i,"class","AccountEditField "+(t[19]?"TimeoutSelectMobile":"")),i.disabled=l=t[56].isModified===!0,t[17][t[58]].amount===void 0&&e.add_render_callback(N),e.attr(s,"class","AccountEditLimitsInputContainer")},m(L,w){e.insert(L,i,w),e.append(i,a),e.append(a,o);for(let _=0;_<h.length;_+=1)h[_]&&h[_].m(i,null);e.select_option(i,t[17][t[58]].amount,!0),e.insert(L,u,w),e.insert(L,s,w),p&&p.m(s,null),e.insert(L,r,w),g&&g.m(L,w),e.insert(L,d,w),f||(k=[e.listen(i,"change",N),e.listen(i,"change",function(){e.is_function(t[24](t[17][t[58]],t[58],!1,t[16]))&&t[24](t[17][t[58]],t[58],!1,t[16]).apply(this,arguments)})],f=!0)},p(L,w){if(t=L,w[0]&262144&&n!==(n=t[18]("noLimit")+"")&&e.set_data(o,n),w[0]&1048656){v=e.ensure_array_like(t[20].get(t[6])[t[58]].values);let _;for(_=0;_<v.length;_+=1){const q=le(t,v,_);h[_]?h[_].p(q,w):(h[_]=ge(q),h[_].c(),h[_].m(i,null))}for(;_<h.length;_+=1)h[_].d(1);h.length=v.length}w[0]&16384&&l!==(l=t[56].isModified===!0)&&(i.disabled=l),w[0]&1179712&&e.select_option(i,t[17][t[58]].amount),t[17][t[58]].amount==="Custom"?p?p.p(t,w):(p=he(t),p.c(),p.m(s,null)):p&&(p.d(1),p=null),t[56].isModified===!0?g?g.p(t,w):(g=ve(t),g.c(),g.m(d.parentNode,d)):g&&(g.d(1),g=null)},d(L){L&&(e.detach(i),e.detach(u),e.detach(s),e.detach(r),e.detach(d)),e.destroy_each(h,L),p&&p.d(),g&&g.d(L),f=!1,e.run_all(k)}}}function fe(t){let i=(t[6]!=="Time Limit"?t[4]:" minutes")+"",a;return{c(){a=e.text(i)},m(n,o){e.insert(n,a,o)},p(n,o){o[0]&80&&i!==(i=(n[6]!=="Time Limit"?n[4]:" minutes")+"")&&e.set_data(a,i)},d(n){n&&e.detach(a)}}}function ge(t){let i,a=t[59]+"",n,o,l,u,s=t[59]!=="No limit"&&t[59]!=="Custom"&&fe(t);return{c(){i=e.element("option"),n=e.text(a),o=e.space(),s&&s.c(),l=e.space(),i.__value=u=t[59],e.set_input_value(i,i.__value)},m(r,d){e.insert(r,i,d),e.append(i,n),e.append(i,o),s&&s.m(i,null),e.append(i,l)},p(r,d){d[0]&64&&a!==(a=r[59]+"")&&e.set_data(n,a),r[59]!=="No limit"&&r[59]!=="Custom"?s?s.p(r,d):(s=fe(r),s.c(),s.m(i,l)):s&&(s.d(1),s=null),d[0]&64&&u!==(u=r[59])&&(i.__value=u,e.set_input_value(i,i.__value))},d(r){r&&e.detach(i),s&&s.d()}}}function he(t){let i;function a(l,u){return l[6]!=="Time Limit"?Se:je}let n=a(t),o=n(t);return{c(){o.c(),i=e.empty()},m(l,u){o.m(l,u),e.insert(l,i,u)},p(l,u){n===(n=a(l))&&o?o.p(l,u):(o.d(1),o=n(l),o&&(o.c(),o.m(i.parentNode,i)))},d(l){l&&e.detach(i),o.d(l)}}}function je(t){let i,a,n,o,l,u;function s(){t[32].call(i,t[58])}let r=t[13][t[58]]==1&&Le(t);return{c(){i=e.element("input"),n=e.space(),o=e.element("p"),r&&r.c(),e.attr(i,"type","number"),e.attr(i,"class","AccountEditField AccountEditFieldCustom"),i.disabled=a=t[56].isModified===!0,e.attr(o,"class","AccountEditWarningText")},m(d,f){e.insert(d,i,f),e.set_input_value(i,t[17][t[58]].value),e.insert(d,n,f),e.insert(d,o,f),r&&r.m(o,null),l||(u=[e.listen(i,"keyup",function(){e.is_function(t[24](t[17][t[58]],t[58],!0,t[16]))&&t[24](t[17][t[58]],t[58],!0,t[16]).apply(this,arguments)}),e.listen(i,"input",s)],l=!0)},p(d,f){t=d,f[0]&16384&&a!==(a=t[56].isModified===!0)&&(i.disabled=a),f[0]&1179712&&e.to_number(i.value)!==t[17][t[58]].value&&e.set_input_value(i,t[17][t[58]].value),t[13][t[58]]==1?r?r.p(t,f):(r=Le(t),r.c(),r.m(o,null)):r&&(r.d(1),r=null)},d(d){d&&(e.detach(i),e.detach(n),e.detach(o)),r&&r.d(),l=!1,e.run_all(u)}}}function Se(t){let i,a,n,o,l,u;function s(){t[31].call(i,t[58])}let r=t[13][t[58]]==1&&_e(t);return{c(){i=e.element("input"),n=e.space(),o=e.element("p"),r&&r.c(),e.attr(i,"type","number"),e.attr(i,"class","AccountEditField AccountEditFieldCustom"),i.disabled=a=t[56].isModified===!0,e.attr(o,"class","AccountEditWarningText")},m(d,f){e.insert(d,i,f),e.set_input_value(i,t[17][t[58]].value),e.insert(d,n,f),e.insert(d,o,f),r&&r.m(o,null),l||(u=[e.listen(i,"keyup",function(){e.is_function(t[24](t[17][t[58]],t[58],!1,t[16]))&&t[24](t[17][t[58]],t[58],!1,t[16]).apply(this,arguments)}),e.listen(i,"input",s)],l=!0)},p(d,f){t=d,f[0]&16384&&a!==(a=t[56].isModified===!0)&&(i.disabled=a),f[0]&1179712&&e.to_number(i.value)!==t[17][t[58]].value&&e.set_input_value(i,t[17][t[58]].value),t[13][t[58]]==1?r?r.p(t,f):(r=_e(t),r.c(),r.m(o,null)):r&&(r.d(1),r=null)},d(d){d&&(e.detach(i),e.detach(n),e.detach(o)),r&&r.d(),l=!1,e.run_all(u)}}}function Le(t){let i,a=t[18]("invalidInputMessageTime",{values:{minTime:t[10],maxTime:t[11]}})+"",n;return{c(){i=e.element("p"),n=e.text(a),e.attr(i,"class","InvalidInput")},m(o,l){e.insert(o,i,l),e.append(i,n)},p(o,l){l[0]&265216&&a!==(a=o[18]("invalidInputMessageTime",{values:{minTime:o[10],maxTime:o[11]}})+"")&&e.set_data(n,a)},d(o){o&&e.detach(i)}}}function _e(t){let i,a=t[18]("invalidInputMessageLimit")+"",n;return{c(){i=e.element("p"),n=e.text(a),e.attr(i,"class","InvalidInput")},m(o,l){e.insert(o,i,l),e.append(i,n)},p(o,l){l[0]&262144&&a!==(a=o[18]("invalidInputMessageLimit")+"")&&e.set_data(n,a)},d(o){o&&e.detach(i)}}}function ve(t){let i,a=t[18]("expirationDate")+"",n,o,l,u=(t[56].expiryDate?e.format(new Date(t[56].expiryDate),"d/M/yyyy - h:mm a"):"N/A")+"",s,r,d,f,k,v,h=t[18]("changedLimitTextBefore")+"",N,p,g=(t[56].updateAmount>0?t[56].updateAmount:0)+"",L,w,_=(t[56].minutes!==void 0?" minutes":t[4])+"",q,F,j=t[18]("changedLimitTextAfter")+"",S;return{c(){i=e.element("p"),n=e.text(a),o=e.space(),l=e.element("span"),s=e.text(u),r=e.space(),d=e.element("div"),f=e.element("p"),k=e.element("span"),k.textContent="i",v=e.element("span"),N=e.text(h),p=e.space(),L=e.text(g),w=e.space(),q=e.text(_),F=e.text(". "),S=e.text(j),e.attr(i,"class","AccountEditLimitsExpiryDate"),e.attr(k,"class","AccountEditLimitChangePeriodIcon"),e.attr(d,"class","AccountEditLimitsPeriodChangeContainer")},m(b,z){e.insert(b,i,z),e.append(i,n),e.append(i,o),e.append(i,l),e.append(l,s),e.insert(b,r,z),e.insert(b,d,z),e.append(d,f),e.append(f,k),e.append(f,v),e.append(v,N),e.append(v,p),e.append(v,L),e.append(v,w),e.append(v,q),e.append(v,F),e.append(v,S)},p(b,z){z[0]&262144&&a!==(a=b[18]("expirationDate")+"")&&e.set_data(n,a),z[0]&16384&&u!==(u=(b[56].expiryDate?e.format(new Date(b[56].expiryDate),"d/M/yyyy - h:mm a"):"N/A")+"")&&e.set_data(s,u),z[0]&262144&&h!==(h=b[18]("changedLimitTextBefore")+"")&&e.set_data(N,h),z[0]&16384&&g!==(g=(b[56].updateAmount>0?b[56].updateAmount:0)+"")&&e.set_data(L,g),z[0]&16400&&_!==(_=(b[56].minutes!==void 0?" minutes":b[4])+"")&&e.set_data(q,_),z[0]&262144&&j!==(j=b[18]("changedLimitTextAfter")+"")&&e.set_data(S,j)},d(b){b&&(e.detach(i),e.detach(r),e.detach(d))}}}function ye(t){let i,a,n=t[18](""+t[56].period.charAt(0).toLowerCase()+t[56].period.substring(1))+"",o,l,u,s=t[56].period==t[17][t[58]].period&&ce(t);return{c(){i=e.element("div"),a=e.element("p"),o=e.text(n),l=e.space(),s&&s.c(),u=e.space(),e.attr(a,"class","AccountEditLimitsTitle"),e.attr(i,"class","AccountEditLimitsBox")},m(r,d){e.insert(r,i,d),e.append(i,a),e.append(a,o),e.append(i,l),s&&s.m(i,null),e.append(i,u)},p(r,d){d[0]&278528&&n!==(n=r[18](""+r[56].period.charAt(0).toLowerCase()+r[56].period.substring(1))+"")&&e.set_data(o,n),r[56].period==r[17][r[58]].period?s?s.p(r,d):(s=ce(r),s.c(),s.m(i,u)):s&&(s.d(1),s=null)},d(r){r&&e.detach(i),s&&s.d()}}}function ze(t){let i,a,n,o,l,u,s,r,d,f,k,v,h=t[18]("back")+"",N,p,g,L,w=(t[1]?t[9]:"")+"",_,q,F,j,S,b,z,X,P,G,J,V,T=t[18]("save")+"",Y,R,C,Z,U,H,K,Q,O=t[19]&&Ne(t),D=t[2]&&re(t),I=t[3]&&me(t),B=t[8]&&pe(t);return{c(){i=e.element("div"),O&&O.c(),a=e.space(),n=e.element("div"),o=e.svg_element("svg"),l=e.svg_element("defs"),u=e.svg_element("style"),s=e.text(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"),r=e.svg_element("g"),d=e.svg_element("g"),f=e.svg_element("path"),k=e.space(),v=e.element("h2"),N=e.text(h),p=e.space(),g=e.element("div"),L=e.element("h6"),_=e.text(w),q=e.space(),F=e.element("div"),j=e.element("span"),j.textContent="i",S=e.space(),b=e.element("player-account-gaming-limits-popup"),z=e.space(),D&&D.c(),X=e.space(),I&&I.c(),P=e.space(),B&&B.c(),G=e.space(),J=e.element("div"),V=e.element("button"),Y=e.text(T),Z=e.space(),U=e.element("player-account-modal"),H=e.element("player-account-gaming-limits-confirmation-modal"),e.attr(f,"class","aaa"),e.attr(f,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),e.attr(f,"transform","translate(15 15) rotate(180)"),e.attr(d,"transform","translate(20 158)"),e.attr(r,"transform","translate(-20 -158)"),e.attr(o,"xmlns","http://www.w3.org/2000/svg"),e.attr(o,"width","20"),e.attr(o,"height","20"),e.attr(o,"viewBox","0 0 15 15"),e.attr(v,"class","MyAccountCategoryTitle "+(t[19]?"MyAccountCategoryTitleNone":"")),e.attr(n,"class","MenuReturnButton "+(t[19]?"MyAccountCategoryTitleNone":"")),e.attr(j,"class","AccountEditLimitsIcon"),e.set_custom_element_data(b,"showpopup",t[7]),e.set_custom_element_data(b,"lang",t[0]),e.attr(F,"class","AccountEditLimitsIconWrapper"),e.attr(g,"class","AccountEditLimitsHeader"),e.attr(V,"class",R="AccountEditLimitsSaveButton "+(t[15]?"":"AccountEditLimitsButtonDisabled")),V.disabled=C=!t[15],e.attr(J,"class","AccountEditLimitsControlArea"),e.attr(i,"class","AccountEditLimitsWrapper "+(t[19]?"AccountEditLimitsMobileWrapper":"")),e.set_custom_element_data(H,"modaltext",t[12]),e.set_custom_element_data(H,"modalsource","groupEdit"),e.set_custom_element_data(H,"lang",t[0])},m(y,A){e.insert(y,i,A),O&&O.m(i,null),e.append(i,a),e.append(i,n),e.append(n,o),e.append(o,l),e.append(l,u),e.append(u,s),e.append(o,r),e.append(r,d),e.append(d,f),e.append(n,k),e.append(n,v),e.append(v,N),e.append(i,p),e.append(i,g),e.append(g,L),e.append(L,_),e.append(g,q),e.append(g,F),e.append(F,j),e.append(F,S),e.append(F,b),e.append(i,z),D&&D.m(i,null),e.append(i,X),I&&I.m(i,null),e.append(i,P),B&&B.m(i,null),e.append(i,G),e.append(i,J),e.append(J,V),e.append(V,Y),t[34](i),e.insert(y,Z,A),e.insert(y,U,A),e.append(U,H),K||(Q=[e.listen(n,"click",t[22]),e.listen(j,"click",e.prevent_default(t[21])),e.listen(V,"click",t[33])],K=!0)},p(y,A){y[19]&&O.p(y,A),A[0]&262144&&h!==(h=y[18]("back")+"")&&e.set_data(N,h),A[0]&514&&w!==(w=(y[1]?y[9]:"")+"")&&e.set_data(_,w),A[0]&128&&e.set_custom_element_data(b,"showpopup",y[7]),A[0]&1&&e.set_custom_element_data(b,"lang",y[0]),y[2]?D?D.p(y,A):(D=re(y),D.c(),D.m(i,X)):D&&(D.d(1),D=null),y[3]?I?I.p(y,A):(I=me(y),I.c(),I.m(i,P)):I&&(I.d(1),I=null),y[8]?B?B.p(y,A):(B=pe(y),B.c(),B.m(i,G)):B&&(B.d(1),B=null),A[0]&262144&&T!==(T=y[18]("save")+"")&&e.set_data(Y,T),A[0]&32768&&R!==(R="AccountEditLimitsSaveButton "+(y[15]?"":"AccountEditLimitsButtonDisabled"))&&e.attr(V,"class",R),A[0]&32768&&C!==(C=!y[15])&&(V.disabled=C),A[0]&4096&&e.set_custom_element_data(H,"modaltext",y[12]),A[0]&1&&e.set_custom_element_data(H,"lang",y[0])},i:e.noop,o:e.noop,d(y){y&&(e.detach(i),e.detach(Z),e.detach(U)),O&&O.d(),D&&D.d(),I&&I.d(),B&&B.d(),t[34](null),K=!1,e.run_all(Q)}}}function Fe(t,i,a){let n;e.component_subscribe(t,e.$format,m=>a(18,n=m));let{limitsdata:o=[]}=i,{showsuccessnotification:l=!1}=i,{showdeletenotification:u=!1}=i,{currency:s=""}=i,{lang:r="en"}=i,{separatelimits:d="true"}=i,{clientstyling:f=""}=i,{clientstylingurl:k=""}=i,{mbsource:v}=i,{translationurl:h=""}=i;const N=()=>{fetch(h).then(c=>c.json()).then(c=>{Object.keys(c).forEach(E=>{ae(E,c[E])})}).catch(c=>{console.log(c)})};Object.keys(ne).forEach(m=>{ae(m,ne[m])});let p,g,L,w=!1,_=!1,q="",F=!1,j=0,S=0,b="",z=window.navigator.userAgent,X=e.getDevice(z)!=="PC",P=new Array(3).fill(0),G={},J=[],V=[],T=!1,Y=[];const R={amount:/^[0-9]{0,8}$/,time:/^[1-9]\d*$/};let C=[{period:"Daily",amount:"No limit",value:0},{period:"Weekly",amount:"No limit",value:0},{period:"Monthly",amount:"No limit",value:0}],Z=[{period:"Daily",values:["10000","20000","50000","No limit","Custom"]},{period:"Weekly",values:["10000","50000","100000","No limit","Custom"]},{period:"Monthly",values:["50000","100000","200000","No limit","Custom"]}],U=[{period:"Daily",values:["5000","7000","10000","No limit","Custom"]},{period:"Weekly",values:["25000","50000","100000","No limit","Custom"]},{period:"Monthly",values:["125000","175000","200000","No limit","Custom"]}],H=[{period:"Daily",values:["5000","7000","10000","No limit","Custom"]},{period:"Weekly",values:["25000","50000","100000","No limit","Custom"]},{period:"Monthly",values:["125000","175000","200000","No limit","Custom"]}],K=[{period:"Daily",values:["500","1000","1430","No limit","Custom"]},{period:"Weekly",values:["5000","7000","10000","No limit","Custom"]},{period:"Monthly",values:["20000","30000","43000","No limit","Custom"]}];const Q=new Map([["Deposit Limit","depositLimits"],["Time Limit","cumulativeSessionLimits"],["Wagering Limit","wageringLimits"],["Loss Limit","lossLimits"]]),O=new Map([["Deposit Limit",Z],["Time Limit",K],["Wagering Limit",U],["Loss Limit",H]]),D=()=>{a(7,w=!0)},I=()=>{window.postMessage({type:"PlayerAccountBackToLimitsView"},window.location.href)},B=()=>{window.postMessage({type:"ShowLimitsConfirmationModal"},window.location.href)},y=()=>{if(F){p==="Time Limit"?C.forEach(c=>{if(d=="true"){if(c.value!=0){let E={period:c.period,minutes:c.value};J.push(E)}}else G.forEach(E=>{E.period===c.period&&(E.minutes=c.value)})}):C.forEach(c=>{if(d=="true"){if(c.value!=0){let E={period:c.period,amount:c.value,currency:s};J.push(E)}}else G.forEach(E=>{E.period===c.period&&(E.amount=c.value,E.currency=s)})});let m={};d=="true"?m={[Q.get(p)]:[...J]}:m={[Q.get(p)]:[...G]},J.length=0,window.postMessage({type:"PlayerAccountGamingLimitsUpdate",payload:m,limitsCategory:Q.get(p)},window.location.href),a(15,T=!1)}},A=(m,c,E,M)=>{switch(m.amount){case"Custom":if(p=="Time Limit")if(a(10,j=60),m.period==="Daily"?a(11,S=1440):m.period=="Weekly"?a(11,S=10080):a(11,S=43200),m.value&&R.time.test(m.value)&&m.value>j&&m.value<=S){a(13,P[c]=0,P);let W=M[c];m.period==W.period&&m.value==W.amount?(a(15,T=!1),$(m,M)):a(15,T=!0)}else a(13,P[c]=1,P),a(15,T=!1);else m.value&&R.amount.test(m.value)?(a(13,P[c]=0,P),m.period==M[c].period&&m.value==M[c].amount?(a(15,T=!!T),$(m,M)):a(15,T=!0),d!="true"&&C.forEach(W=>{W.value==0&&a(15,T=!1)})):(a(13,P[c]=1,P),a(15,T=!1));break;default:m.period==M[c].period?($(m,M),a(15,T=m.value!=M[c].amount)):a(15,T=!0),C.forEach(W=>{(W.value==0&&d!="true"||W.amount=="Custom"&&!R.amount.test(W.value.toString()))&&a(15,T=!1)});break}},$=(m,c)=>{let E=JSON.parse(JSON.stringify(c));C.forEach(M=>{E.forEach(W=>{M.period==m.period&&(M.amount!=="Custom"&&M.amount!=="No limit"?M.value=JSON.parse(M.amount):M.amount==="No limit"&&(M.value=0)),W.period===M.period&&(W.amount=M.value)})})},be=(m,c,E,M)=>{let W=m.values;!c.amount||c.amount==="No limit"?E.forEach(x=>{x.period===c.period&&(x.amount=c.amount,x.value=0)}):W.includes(JSON.stringify(c.amount))?E.forEach(x=>{x.period===c.period&&(x.amount=JSON.stringify(c.amount),x.value=c.amount)}):E.forEach(x=>{x.period===c.period&&(x.amount="Custom",x.value=c.amount)})},ke=m=>{V.forEach(c=>{m.period===c.period&&(p==="Time Limit"&&(a(10,j=60),m.period==="Daily"?a(11,S=1440):m.period=="Weekly"?a(11,S=10080):a(11,S=43200)),c.values.indexOf(m.amount)>-1&&(m.amount==="No limit"?m.amount=0:m.amount=JSON.parse(m.amount)))})},Ee=()=>{Y.forEach(m=>{ke(m)}),G.forEach(m=>{V.forEach(c=>{m.period===c.period&&be(c,m,C)})})},te=()=>{let m="";m=p==="Time Limit"?"time limit":p==="Deposit Limit"?"deposit limit":p==="Wagering Limit"?"wagering limit":"loss limit",a(12,b=n("changeLimitsText",{values:{limit:m}}))},ee=()=>{De(r),te(),a(16,Y=JSON.parse(JSON.stringify(o))),a(14,G=JSON.parse(JSON.stringify(o))),V=p==="Wagering Limit"?U:p==="Loss Limit"?H:p==="Deposit Limit"?Z:p==="Time Limit"?K:[],Ee()},ie=m=>{if(m.data)switch(m.data.type){case"LanguageChanged":a(0,r=m.data.lang),te();break;case"EditPlayerLimit":a(6,p=m.data.name),a(9,q=n(p.charAt(0).toLowerCase()+p.substring(1).replace(/\s/g,""))),ee(),a(8,_=!0);break;case"ClosePlayerAccountGamingLimitsPopup":a(7,w=!1);break;case"GamingLimitsConfirmChanges":F=!0,y();break;case"CancelGamingLimitsChanges":a(8,_=!1),setTimeout(()=>{a(8,_=!0)},10),ee(),a(15,T=!1),F=!1;break}};e.onMount(()=>(window.addEventListener("message",ie,!1),()=>{window.removeEventListener("message",ie)}));function Te(m){C[m].amount=e.select_value(this),a(17,C),a(20,O),a(6,p)}function Ae(m){C[m].value=e.to_number(this.value),a(17,C),a(20,O),a(6,p)}function Me(m){C[m].value=e.to_number(this.value),a(17,C),a(20,O),a(6,p)}const Ce=()=>B();function Be(m){e.binding_callbacks[m?"unshift":"push"](()=>{g=m,a(5,g)})}return t.$$set=m=>{"limitsdata"in m&&a(1,o=m.limitsdata),"showsuccessnotification"in m&&a(2,l=m.showsuccessnotification),"showdeletenotification"in m&&a(3,u=m.showdeletenotification),"currency"in m&&a(4,s=m.currency),"lang"in m&&a(0,r=m.lang),"separatelimits"in m&&a(25,d=m.separatelimits),"clientstyling"in m&&a(26,f=m.clientstyling),"clientstylingurl"in m&&a(27,k=m.clientstylingurl),"mbsource"in m&&a(28,v=m.mbsource),"translationurl"in m&&a(29,h=m.translationurl)},t.$$.update=()=>{t.$$.dirty[0]&12&&l&&u&&ee(),t.$$.dirty[0]&3,t.$$.dirty[0]&67108896&&f&&g&&e.setClientStyling(g,f),t.$$.dirty[0]&134217760&&k&&g&&e.setClientStylingURL(g,k),t.$$.dirty[0]&268435488&&v&&g&&e.setStreamStyling(g,`${v}.Style`,L),t.$$.dirty[0]&536870912&&h&&N()},[r,o,l,u,s,g,p,w,_,q,j,S,b,P,G,T,Y,C,n,X,O,D,I,B,A,d,f,k,v,h,Te,Ae,Me,Ce,Be]}class we extends e.SvelteComponent{constructor(i){super(),e.init(this,i,Fe,ze,e.safe_not_equal,{limitsdata:1,showsuccessnotification:2,showdeletenotification:3,currency:4,lang:0,separatelimits:25,clientstyling:26,clientstylingurl:27,mbsource:28,translationurl:29},Ie,[-1,-1,-1])}get limitsdata(){return this.$$.ctx[1]}set limitsdata(i){this.$$set({limitsdata:i}),e.flush()}get showsuccessnotification(){return this.$$.ctx[2]}set showsuccessnotification(i){this.$$set({showsuccessnotification:i}),e.flush()}get showdeletenotification(){return this.$$.ctx[3]}set showdeletenotification(i){this.$$set({showdeletenotification:i}),e.flush()}get currency(){return this.$$.ctx[4]}set currency(i){this.$$set({currency:i}),e.flush()}get lang(){return this.$$.ctx[0]}set lang(i){this.$$set({lang:i}),e.flush()}get separatelimits(){return this.$$.ctx[25]}set separatelimits(i){this.$$set({separatelimits:i}),e.flush()}get clientstyling(){return this.$$.ctx[26]}set clientstyling(i){this.$$set({clientstyling:i}),e.flush()}get clientstylingurl(){return this.$$.ctx[27]}set clientstylingurl(i){this.$$set({clientstylingurl:i}),e.flush()}get mbsource(){return this.$$.ctx[28]}set mbsource(i){this.$$set({mbsource:i}),e.flush()}get translationurl(){return this.$$.ctx[29]}set translationurl(i){this.$$set({translationurl:i}),e.flush()}}e.create_custom_element(we,{limitsdata:{},showsuccessnotification:{type:"Boolean"},showdeletenotification:{type:"Boolean"},currency:{},lang:{},separatelimits:{},clientstyling:{},clientstylingurl:{},mbsource:{},translationurl:{}},[],[],!0);exports.default=we;