@everymatrix/player-lugas-limit 1.22.0 → 1.22.2

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.
@@ -247,6 +247,7 @@ const PlayerLugasLimit = class {
247
247
  });
248
248
  };
249
249
  this.postPlayerSituation = (userAmount, keepLimit = false, initialNewLimit = false) => {
250
+ this.isButtonDisabled = true;
250
251
  let url = new URL(`${this.endpoint}v2/player/${this.userId}/limit/lugas`);
251
252
  let roleLimitAmount = initialNewLimit ? this.amount : 0;
252
253
  let bodyDraft = {
@@ -276,6 +277,7 @@ const PlayerLugasLimit = class {
276
277
  }
277
278
  })
278
279
  .then((data) => {
280
+ this.isButtonDisabled = false;
279
281
  this.kyc = data.popup;
280
282
  this.validation = false;
281
283
  this.dropDown = false;
@@ -287,6 +289,7 @@ const PlayerLugasLimit = class {
287
289
  }
288
290
  })
289
291
  .catch((err) => {
292
+ this.isButtonDisabled = false;
290
293
  // Handle any errors
291
294
  console.error(err);
292
295
  });
@@ -72,6 +72,7 @@ export class PlayerLugasLimit {
72
72
  });
73
73
  };
74
74
  this.postPlayerSituation = (userAmount, keepLimit = false, initialNewLimit = false) => {
75
+ this.isButtonDisabled = true;
75
76
  let url = new URL(`${this.endpoint}v2/player/${this.userId}/limit/lugas`);
76
77
  let roleLimitAmount = initialNewLimit ? this.amount : 0;
77
78
  let bodyDraft = {
@@ -101,6 +102,7 @@ export class PlayerLugasLimit {
101
102
  }
102
103
  })
103
104
  .then((data) => {
105
+ this.isButtonDisabled = false;
104
106
  this.kyc = data.popup;
105
107
  this.validation = false;
106
108
  this.dropDown = false;
@@ -112,6 +114,7 @@ export class PlayerLugasLimit {
112
114
  }
113
115
  })
114
116
  .catch((err) => {
117
+ this.isButtonDisabled = false;
115
118
  // Handle any errors
116
119
  console.error(err);
117
120
  });
@@ -245,6 +245,7 @@ const PlayerLugasLimit$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLEl
245
245
  });
246
246
  };
247
247
  this.postPlayerSituation = (userAmount, keepLimit = false, initialNewLimit = false) => {
248
+ this.isButtonDisabled = true;
248
249
  let url = new URL(`${this.endpoint}v2/player/${this.userId}/limit/lugas`);
249
250
  let roleLimitAmount = initialNewLimit ? this.amount : 0;
250
251
  let bodyDraft = {
@@ -274,6 +275,7 @@ const PlayerLugasLimit$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLEl
274
275
  }
275
276
  })
276
277
  .then((data) => {
278
+ this.isButtonDisabled = false;
277
279
  this.kyc = data.popup;
278
280
  this.validation = false;
279
281
  this.dropDown = false;
@@ -285,6 +287,7 @@ const PlayerLugasLimit$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLEl
285
287
  }
286
288
  })
287
289
  .catch((err) => {
290
+ this.isButtonDisabled = false;
288
291
  // Handle any errors
289
292
  console.error(err);
290
293
  });
@@ -243,6 +243,7 @@ const PlayerLugasLimit = class {
243
243
  });
244
244
  };
245
245
  this.postPlayerSituation = (userAmount, keepLimit = false, initialNewLimit = false) => {
246
+ this.isButtonDisabled = true;
246
247
  let url = new URL(`${this.endpoint}v2/player/${this.userId}/limit/lugas`);
247
248
  let roleLimitAmount = initialNewLimit ? this.amount : 0;
248
249
  let bodyDraft = {
@@ -272,6 +273,7 @@ const PlayerLugasLimit = class {
272
273
  }
273
274
  })
274
275
  .then((data) => {
276
+ this.isButtonDisabled = false;
275
277
  this.kyc = data.popup;
276
278
  this.validation = false;
277
279
  this.dropDown = false;
@@ -283,6 +285,7 @@ const PlayerLugasLimit = class {
283
285
  }
284
286
  })
285
287
  .catch((err) => {
288
+ this.isButtonDisabled = false;
286
289
  // Handle any errors
287
290
  console.error(err);
288
291
  });
@@ -0,0 +1 @@
1
+ import{r as t,c as e,h as i}from"./p-d4aa7282.js";const n=["de","en"];let o={en:{loading:"Loading, please wait ...",error:"It was an error while trying to fetch the data",kyc1:"All deposit limit changes must be reported to LUGAS in accordance with regulatory requirements. Please note that decreases in the limit will take effect immediately, while increases will only come into effect after 8 days at the latest.",kyc2:"We were able to set your monthly deposit limit to <b>{amount} {currency}</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.",kyc3:"We have transmitted your desired limit to Lugas Please be aware that the limit will only come into effect after 8 days at the latest.",kycThanks:"Thank you!",kycSure:"Are you sure?",setNewLimit:"SET NEW LIMIT",setLimit:"SET LIMIT",keepExistingLimit:"KEEP EXISTING LIMIT",Close:"CLOSE",UploadDocuments:"UPLOAD DOCUMENTS",confirm:"CONFIRM",crossProviders:"No cross-provider deposit limit (LUGAS) has been established yet, but there's no need to worry. Please enter a new deposit limit.",monthlyDeposit:"Monthly deposit limit (EUR)",newUserP1:"To start off, set your monthly limit!",newUserP2:"Having a deposit limit in place allows you to regulate your gaming activity. Once you have set your limit, it will be transmitted to the cross-provider limit database (LUGAS).",newUserP3:"If you have set a deposit limit with another provider before, you may maintain the existing limit.",softMigrationP1:"Set deposit limit",softMigrationP2:"According to legal regulations, players are required to set an individual monthly deposit limit or indicate that an already set deposit limit should be kept unchanged. Please note that the limit set should correspond to your financial situation. Consume gambling responsibly and adapt the gambling behavior to your individual circumstances!",softMigrationP3:"Do you want to set a new limit or confirm the existing limit (of {currency} <b>{amount}</b>) ?",invalidNumber:"Invalid number format. Please enter a valid number.",minimumRange:"The value entered must be higher than {min}",outOfRange:"The value entered must be between {min} and {max}.",invalidDecimalSeparator:"Invalid decimal separator. Please use a dot (.) instead of a comma (,)."},de:{loading:"Loading, please wait ...",error:"It was an error while trying to fetch the data",kyc1:"All deposit limit changes must be reported to LUGAS in accordance with regulatory requirements. Please note that decreases in the limit will take effect immediately, while increases will only come into effect after 8 days at the latest.",kyc2:"We were able to set your monthly deposit limit to <b>{amount} {currency}</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.",kyc3:"We have transmitted your desired limit to Lugas Please be aware that the limit will only come into effect after 8 days at the latest.",kycThanks:"Thank you!",kycSure:"Are you sure?",setNewLimit:"SET NEW LIMIT",setLimit:"SET LIMIT",keepExistingLimit:"KEEP EXISTING LIMIT",Close:"CLOSE",UploadDocuments:"UPLOAD DOCUMENTS",confirm:"CONFIRM",crossProviders:"No cross-provider deposit limit (LUGAS) has been established yet, but there's no need to worry. Please enter a new deposit limit.",monthlyDeposit:"Monthly deposit limit (EUR)",newUserP1:"To start off, set your monthly limit!",newUserP2:"Having a deposit limit in place allows you to regulate your gaming activity. Once you have set your limit, it will be transmitted to the cross-provider limit database (LUGAS).",newUserP3:"If you have set a deposit limit with another provider before, you may maintain the existing limit.",softMigrationP1:"Set deposit limit",softMigrationP2:"According to legal regulations, players are required to set an individual monthly deposit limit or indicate that an already set deposit limit should be kept unchanged. Please note that the limit set should correspond to your financial situation. Consume gambling responsibly and adapt the gambling behavior to your individual circumstances!",softMigrationP3:"Do you want to set a new limit or confirm the existing limit (of {currency} <b>{amount}</b>) ?",invalidNumber:"Invalid number format. Please enter a valid number.",minimumRange:"The value entered must be higher than {min}",outOfRange:"The value entered must be between {min} and {max}.",invalidDecimalSeparator:"Invalid decimal separator. Please use a dot (.) instead of a comma (,)."},ro:{loading:"Se incarca, va rugam asteptati ...",error:"A fost o eroare in timp ce asteptam datele",kyc1:"All deposit limit changes must be reported to LUGAS in accordance with regulatory requirements. Please note that decreases in the limit will take effect immediately, while increases will only come into effect after 8 days at the latest.",kyc2:"We were able to set your monthly deposit limit to {amount}. 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.",kyc3:"We have transmitted your desired limit to Lugas Please be aware that the limit will only come into effect after 8 days at the latest.",kycThanks:"Thank you!",kycSure:"Are you sure?",setNewLimit:"SET NEW LIMIT",setLimit:"SET LIMIT",keepExistingLimit:"KEEP EXISTING LIMIT",Close:"CLOSE",UploadDocuments:"UPLOAD DOCUMENTS",confirm:"CONFIRM",crossProviders:"No cross-provider deposit limit (LUGAS) has been established yet, but there's no need to worry. Please enter a new deposit limit.",monthlyDeposit:"Monthly deposit limit (EUR)",newUserP1:"To start off, set your monthly limit!",newUserP2:"Having a deposit limit in place allows you to regulate your gaming activity. Once you have set your limit, it will be transmitted to the cross-provider limit database (LUGAS).",newUserP3:"If you have set a deposit limit with another provider before, you may maintain the existing limit.",softMigrationP1:"Set deposit limit",softMigrationP2:"According to legal regulations, players are required to set an individual monthly deposit limit or indicate that an already set deposit limit should be kept unchanged. Please note that the limit set should correspond to your financial situation. Consume gambling responsibly and adapt the gambling behavior to your individual circumstances!",softMigrationP3:"Do you want to set a new limit or confirm the existing limit ",invalidNumber:"Invalid number format. Please enter a valid number.",minimumRange:"The value entered must be higher than {min}",outOfRange:"The value entered must be between {min} and {max}.",invalidDecimalSeparator:"Invalid decimal separator. Please use a dot (.) instead of a comma (,)."},fr:{loading:"Loading, please wait ...",error:"It was an error while trying to fetch the data",kyc1:"All deposit limit changes must be reported to LUGAS in accordance with regulatory requirements. Please note that decreases in the limit will take effect immediately, while increases will only come into effect after 8 days at the latest.",kyc2:"We were able to set your monthly deposit limit to {amount}. 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.",kyc3:"We have transmitted your desired limit to Lugas Please be aware that the limit will only come into effect after 8 days at the latest.",kycThanks:"Thank you!",kycSure:"Are you sure?",setNewLimit:"SET NEW LIMIT",setLimit:"SET LIMIT",keepExistingLimit:"KEEP EXISTING LIMIT",Close:"CLOSE",UploadDocuments:"UPLOAD DOCUMENTS",confirm:"CONFIRM",crossProviders:"No cross-provider deposit limit (LUGAS) has been established yet, but there's no need to worry. Please enter a new deposit limit.",monthlyDeposit:"Monthly deposit limit (EUR)",newUserP1:"To start off, set your monthly limit!",newUserP2:"Having a deposit limit in place allows you to regulate your gaming activity. Once you have set your limit, it will be transmitted to the cross-provider limit database (LUGAS).",newUserP3:"If you have set a deposit limit with another provider before, you may maintain the existing limit.",softMigrationP1:"Set deposit limit",softMigrationP2:"According to legal regulations, players are required to set an individual monthly deposit limit or indicate that an already set deposit limit should be kept unchanged. Please note that the limit set should correspond to your financial situation. Consume gambling responsibly and adapt the gambling behavior to your individual circumstances!",softMigrationP3:"Do you want to set a new limit or confirm the existing limit ",invalidNumber:"Invalid number format. Please enter a valid number.",minimumRange:"The value entered must be higher than {min}",outOfRange:"The value entered must be between {min} and {max}.",invalidDecimalSeparator:"Invalid decimal separator. Please use a dot (.) instead of a comma (,)."},ar:{loading:"Loading, please wait ...",error:"It was an error while trying to fetch the data",kyc1:"All deposit limit changes must be reported to LUGAS in accordance with regulatory requirements. Please note that decreases in the limit will take effect immediately, while increases will only come into effect after 8 days at the latest.",kyc2:"We were able to set your monthly deposit limit to {amount}. 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.",kyc3:"We have transmitted your desired limit to Lugas Please be aware that the limit will only come into effect after 8 days at the latest.",kycThanks:"Thank you!",kycSure:"Are you sure?",setNewLimit:"SET NEW LIMIT",setLimit:"SET LIMIT",keepExistingLimit:"KEEP EXISTING LIMIT",Close:"CLOSE",UploadDocuments:"UPLOAD DOCUMENTS",confirm:"CONFIRM",crossProviders:"No cross-provider deposit limit (LUGAS) has been established yet, but there's no need to worry. Please enter a new deposit limit.",monthlyDeposit:"Monthly deposit limit (EUR)",newUserP1:"To start off, set your monthly limit!",newUserP2:"Having a deposit limit in place allows you to regulate your gaming activity. Once you have set your limit, it will be transmitted to the cross-provider limit database (LUGAS).",newUserP3:"If you have set a deposit limit with another provider before, you may maintain the existing limit.",softMigrationP1:"Set deposit limit",softMigrationP2:"According to legal regulations, players are required to set an individual monthly deposit limit or indicate that an already set deposit limit should be kept unchanged. Please note that the limit set should correspond to your financial situation. Consume gambling responsibly and adapt the gambling behavior to your individual circumstances!",softMigrationP3:"Do you want to set a new limit or confirm the existing limit ",invalidNumber:"Invalid number format. Please enter a valid number.",minimumRange:"The value entered must be higher than {min}",outOfRange:"The value entered must be between {min} and {max}.",invalidDecimalSeparator:"Invalid decimal separator. Please use a dot (.) instead of a comma (,)."}};const a=t=>new Promise((e=>{fetch(t).then((t=>t.json())).then((t=>{Object.keys(t).forEach((e=>{for(let i in t[e])o[e][i]=t[e][i]})),e(!0)}))})),s=(t,e,i)=>{const a=e;let s=o[void 0!==a&&n.includes(a)?a:"de"][t];if(void 0!==i)for(const[t,e]of Object.entries(i.values)){const i=new RegExp(`{${t}}`,"g");s=s.replace(i,e)}return s},r=class{constructor(i){t(this,i),this.uploadDocuments=e(this,"uploadDocuments",7),this.closePopup=e(this,"closePopup",7),this.userId="",this.session="",this.endpoint="",this.currency="EUR",this.flow="",this.amountMinMax="",this.amount="",this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.validation=!0,this.dropDown=!1,this.isLoading=!1,this.hasErrors=!1,this.inputValue="",this.isButtonDisabled=!0,this.crossProviders=!1,this.userAmount="",this.operatorDepositLimitAmount="",this.regularDepositLimitAmount="",this.stylingAppends=!1,this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)},this.setClientStylingURL=()=>{let t=new URL(this.clientStylingUrl),e=document.createElement("style");fetch(t.href).then((t=>t.text())).then((t=>{e.innerHTML=t,setTimeout((()=>{this.stylingContainer.prepend(e)}),1)})).catch((t=>{console.log("error ",t)}))},this.postPlayerSituation=(t,e=!1,i=!1)=>{this.isButtonDisabled=!0;let n=new URL(`${this.endpoint}v2/player/${this.userId}/limit/lugas`),o={softMigration:"1"==this.flow,keepLimit:e,roleLimitAmount:i?this.amount:0};t&&(o.amount=`${t}`);let a={method:"POST",headers:{"X-SessionId":this.session,"Content-Type":"application/json",Authorization:`Bearer ${this.session}`},body:JSON.stringify(o)};fetch(n.href,a).then((t=>{if(200===t.status)return t.json();throw this.crossProviders=!0,this.dropDown=!0,new Error("HTTP status "+t.status)})).then((t=>{this.isButtonDisabled=!1,this.kyc=t.popup,this.validation=!1,this.dropDown=!1,t.operatorDepositLimitAmount&&(this.operatorDepositLimitAmount=t.operatorDepositLimitAmount),t.regulatorDepositLimitAmount&&(this.regularDepositLimitAmount=t.regulatorDepositLimitAmount)})).catch((t=>{this.isButtonDisabled=!1,console.error(t)}))},this.handleClick=t=>{switch(t){case"keepCurrentLimit":this.postPlayerSituation(this.amount,!0);break;case"keepCurrentLimitNewUser":this.postPlayerSituation(null,!0);break;case"postSituation":this.postPlayerSituation();break;case"setNewLimit":this.dropDown=!0;break;case"UploadDocuments":this.uploadDocuments.emit(),window.postMessage({type:"uploadDocuments"},window.location.href);break;case"Close":this.closePopup.emit(),window.postMessage({type:"closePopup"},window.location.href)}}}componentDidRender(){!this.stylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.stylingAppends=!0)}handleNewTranslations(){this.isLoading=!0,a(this.translationUrl).then((()=>{this.isLoading=!1}))}async componentWillLoad(){this.translationUrl.length>2&&await a(this.translationUrl)}handleSubmit(t){t.preventDefault(),this.invalidInput||(this.userAmount=this.inputValue,this.postPlayerSituation(this.inputValue,!1,!0))}containsOnlyDigits(t){return/^[0-9]+$/.test(t)}handleInputChange(t){const e=t.target.value;this.inputValue=e;let i=parseInt(this.amountMinMax.split(",")[0]),n=parseInt(this.amountMinMax.split(",")[1]);this.isValidNumber=!isNaN(Number(e))&&this.containsOnlyDigits(e),this.invalidInput=!this.isValidNumber,this.minimumRange=Number(e)>=i,this.isWithinRange=Number(e)<=n,this.isButtonDisabled=!this.isValidNumber||!this.isWithinRange||!this.minimumRange}renderKYC(t){return 0==t?(this.closePopup.emit(),void window.postMessage({type:"closePopup"},window.location.href)):i("div",{class:"ValidatorContainer"},1==t?i("div",{class:"Paragraphs"},i("p",null,s("kycSure",this.lang,{values:{currency:this.currency}})),i("p",null,s("kyc1",this.lang,{values:{currency:this.currency}})),i("div",{class:"ContainerButtons"},i("button",{class:"FirstButton",onClick:()=>this.postPlayerSituation(this.userAmount,!1)},s("setNewLimit",this.lang,{values:{currency:this.currency}})),i("button",{class:"SecondButton",onClick:()=>this.handleClick("keepCurrentLimit")},s("keepExistingLimit",this.lang,{values:{currency:this.currency}})))):2==t?i("div",{class:"Paragraphs"},i("p",null,s("kycThanks",this.lang,{values:{currency:this.currency}})),i("p",{innerHTML:s("kyc2",this.lang,{values:{currency:this.currency,amount:this.regularDepositLimitAmount}})}),i("div",{class:"ContainerButtons"},i("button",{class:"FirstButton",onClick:()=>this.handleClick("Close")},s("Close",this.lang,{values:{currency:this.currency}})),i("button",{class:"SecondButton",onClick:()=>this.handleClick("UploadDocuments")},s("UploadDocuments",this.lang,{values:{currency:this.currency}})))):i("div",{class:"Paragraphs"},i("p",null,s("kycThanks",this.lang,{values:{currency:this.currency}})),i("p",null,s("kyc3",this.lang,{values:{currency:this.currency}})),i("div",{class:"ContainerButtons"},i("button",{class:"SecondButton",onClick:()=>this.handleClick("Close")},s("Close",this.lang,{values:{currency:this.currency}})))))}renderValidator(t){return"1"==t?i("div",{class:"ValidatorContainer"},i("div",{class:"Paragraphs"},i("p",null,s("softMigrationP1",this.lang,{values:{currency:this.currency}})),i("p",{innerHTML:s("softMigrationP2",this.lang,{values:{currency:this.currency}})}),i("p",{innerHTML:s("softMigrationP3",this.lang,{values:{currency:this.currency,amount:this.amount}})})),this.crossProviders?i("div",{class:"CrossProvider"},i("svg",{width:"4",height:"17",viewBox:"0 0 4 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i("rect",{width:"4",height:"12",rx:"2",fill:"white"}),i("rect",{y:"14",width:"4",height:"3",rx:"1.5",fill:"white"})),i("p",null,s("crossProviders",this.lang,{values:{currency:this.currency}}))):i("div",{class:"ContainerButtons"},i("button",{class:"FirstButton",onClick:()=>this.handleClick("setNewLimit")},s("setNewLimit",this.lang,{values:{currency:this.currency}})),i("button",{class:"SecondButton",onClick:()=>this.handleClick("keepCurrentLimit")},s("confirm",this.lang,{values:{currency:this.currency}})))):"2"==t?i("div",{class:"ValidatorContainer"},i("div",{class:"Paragraphs"},i("p",null,s("newUserP1",this.lang,{values:{currency:this.currency}})),i("p",null,s("newUserP2",this.lang,{values:{currency:this.currency}})),i("p",null,s("newUserP3",this.lang,{values:{currency:this.currency}}))),this.crossProviders?i("div",{class:"CrossProvider"},i("svg",{width:"4",height:"17",viewBox:"0 0 4 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i("rect",{width:"4",height:"12",rx:"2",fill:"white"}),i("rect",{y:"14",width:"4",height:"3",rx:"1.5",fill:"white"})),i("p",null,s("crossProviders",this.lang,{values:{currency:this.currency}}))):i("div",{class:"ContainerButtons"},i("button",{class:"FirstButton",onClick:()=>this.handleClick("setNewLimit")},s("setNewLimit",this.lang,{values:{currency:this.currency}})),i("button",{class:"SecondButton",onClick:()=>this.handleClick("keepCurrentLimitNewUser")},s("keepExistingLimit",this.lang,{values:{currency:this.currency}})))):void 0}render(){let t=this.renderKYC(this.kyc),e=this.renderValidator(this.flow);return this.isLoading?i("div",null,i("p",null,s("loading",this.lang,{values:{currency:this.currency}}))):this.hasErrors?i("div",null,i("p",null,s("error",this.lang,{values:{currency:this.currency}}))):i("div",{class:"ModalContainer",ref:t=>this.stylingContainer=t},i("div",{class:"Container"},i("div",{class:"ModalHeader"},i("svg",{width:"107",height:"20",viewBox:"0 0 107 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i("path",{d:"M2.7948 17.4348C10.9082 18.9412 30.1923 20.0001 52.698 20.0001C75.2036 20.0001 94.4729 18.9412 102.601 17.4348H2.7948Z",fill:"#7EC51E"}),i("path",{d:"M66.4489 3.87771H64.1074L64.7934 0L60.7815 1.37211L58.3505 14.9143H62.1089L63.481 7.308C63.5705 6.84565 63.7942 6.65177 64.1969 6.65177H64.5697C64.9426 6.65177 65.0917 6.80091 65.0321 7.14394L63.6301 14.9292H67.4034L68.8949 6.63685C69.1931 4.95154 68.5518 3.87771 66.4489 3.87771Z",fill:"#002554"}),i("path",{d:"M93.0858 3.87769H92.6831H85.3901H81.6913L79.6928 14.9143H83.4512L84.8233 7.30797C84.9128 6.84563 85.1365 6.65174 85.5392 6.65174H85.9121C86.2849 6.65174 86.4341 6.80088 86.3744 7.14391L84.9725 14.9292H88.7309L90.103 7.32288C90.1925 6.86054 90.4162 6.66666 90.8189 6.66666H91.1917C91.5646 6.66666 91.7137 6.8158 91.6541 7.15883L90.2521 14.9441H94.0105L95.5019 6.65174C95.8301 4.95151 95.1887 3.87769 93.0858 3.87769Z",fill:"#002554"}),i("path",{d:"M51.9523 10.6639H57.0828L57.5302 8.11353H52.3997L51.9523 10.6639Z",fill:"#002554"}),i("path",{d:"M51.2363 1.34229L47.2244 2.7144L45.5093 12.1701C45.211 13.8255 45.897 14.9143 48.2684 14.9143H50.1476L50.6398 12.1551H49.8195C49.4466 12.1551 49.2975 12.006 49.3571 11.663L50.3266 6.42805H51.6689L52.1163 3.87771H50.7889L51.2363 1.34229Z",fill:"#002554"}),i("path",{d:"M27.2095 1.34229L23.1976 2.7144L21.4825 12.1701C21.1842 13.8255 21.8702 14.9143 24.2416 14.9143H26.1208L26.613 12.1551H25.7927C25.4198 12.1551 25.2707 12.006 25.3303 11.663L26.2998 6.42805H27.6421L28.0895 3.87771H26.7621L27.2095 1.34229Z",fill:"#002554"}),i("path",{d:"M27.8807 10.6639H33.0112L33.4736 8.11353H28.3431L27.8807 10.6639Z",fill:"#002554"}),i("path",{d:"M7.6569 3.87771H5.31536L6.01633 0L2.00439 1.37211L0.169932 11.5735L0.0655323 12.1701C-0.232753 13.8255 0.453304 14.9143 2.82467 14.9143H5.65839C7.7613 14.9143 8.79039 13.8255 9.08867 12.1701L10.0879 6.62194C10.4011 4.95154 9.75981 3.87771 7.6569 3.87771ZM6.25496 7.12903L5.43467 11.663C5.37502 11.9911 5.16622 12.1551 4.79336 12.1551H4.4205C4.01782 12.1551 3.85376 11.9613 3.94324 11.4989L4.70387 7.32291C4.79336 6.86057 5.01707 6.66668 5.41976 6.66668H5.79262C6.16547 6.63685 6.31461 6.786 6.25496 7.12903Z",fill:"#002554"}),i("path",{d:"M76.8891 3.87769H74.0852C71.7138 3.87769 70.7444 4.96643 70.4461 6.62191L69.4468 12.17C69.1486 13.8255 69.7302 14.9143 72.0867 14.9143H74.8906C77.2619 14.9143 78.2313 13.8255 78.5296 12.17L79.5289 6.62191C79.8421 4.95151 79.2604 3.87769 76.8891 3.87769ZM75.7854 6.96494L74.9055 11.8121C74.8458 12.1402 74.637 12.3043 74.2641 12.3043H73.6676C73.2947 12.3043 73.1456 12.1551 73.2052 11.8121L74.0852 6.96494C74.1448 6.63683 74.3536 6.47277 74.7265 6.47277H75.3231C75.6959 6.47277 75.8451 6.63683 75.7854 6.96494Z",fill:"#002554"}),i("path",{d:"M18.082 3.87769H15.3825C13.0111 3.87769 11.9373 4.96643 11.639 6.62191L10.6398 12.17C10.3415 13.8255 11.0275 14.9143 13.3989 14.9143H16.0984C18.4697 14.9143 19.5436 13.8255 19.8419 12.17L19.991 11.3796H16.4265L16.3519 11.7972C16.2923 12.1253 16.0835 12.3341 15.6957 12.3341H14.7263C14.3534 12.3341 14.2043 12.1849 14.2639 11.8419L14.4727 10.6637H20.1103L20.4832 8.62043L20.8411 6.62191C21.1394 4.95151 20.4384 3.87769 18.082 3.87769ZM17.2169 6.95003L17.0081 8.12825H14.9351L15.1439 6.95003C15.2035 6.62191 15.4123 6.45786 15.7852 6.45786H16.7546C17.1275 6.45786 17.2766 6.607 17.2169 6.95003Z",fill:"#002554"}),i("path",{d:"M42.2133 3.87769H39.5138C37.1424 3.87769 36.0686 4.96643 35.7703 6.62191L35.6212 7.41237H39.1857L39.2602 6.99477C39.3199 6.66666 39.5287 6.45786 39.9165 6.45786H40.8859C41.2588 6.45786 41.4079 6.607 41.3482 6.95003L41.1394 8.12825H37.0828C36.2028 8.12825 35.3676 8.82923 35.2185 9.70917L35.0842 10.4101L34.771 12.17C34.4728 13.8255 35.1588 14.9143 37.5302 14.9143H43.4959L44.9873 6.62191C45.2707 4.95151 44.5846 3.87769 42.2133 3.87769ZM40.4683 11.827C40.4086 12.1551 40.1998 12.3192 39.827 12.3192H38.8576C38.4847 12.3192 38.3356 12.17 38.3952 11.827L38.604 10.6488H40.6771L40.4683 11.827Z",fill:"#002554"}),i("path",{d:"M103.63 3.87769H100.931C98.5593 3.87769 97.4855 4.96643 97.1872 6.62191L96.1879 12.17C95.8896 13.8255 96.5757 14.9143 98.947 14.9143H101.647C104.018 14.9143 105.092 13.8255 105.39 12.17L105.539 11.3796H101.975L101.9 11.7972C101.84 12.1253 101.632 12.3341 101.259 12.3341H100.289C99.9165 12.3341 99.7673 12.1849 99.827 11.8419L100.036 10.6637H105.673L106.046 8.62043L106.404 6.62191C106.688 4.95151 106.002 3.87769 103.63 3.87769ZM102.765 6.95003L102.556 8.12825H100.483L100.692 6.95003C100.752 6.62191 100.96 6.45786 101.333 6.45786H102.303C102.676 6.45786 102.825 6.607 102.765 6.95003Z",fill:"#002554"}))),i("div",{class:"ModalBody"},this.validation?e:t,this.dropDown?i("div",null,i("hr",null),i("div",{class:"ModalFooter"},i("div",{class:"Dropdown"},i("p",null,s("monthlyDeposit",this.lang,{values:{currency:this.currency}})),i("form",{onSubmit:t=>this.handleSubmit(t)},i("div",{class:"DropdownInput"},i("input",{type:"number",value:this.inputValue,class:this.invalidInput&&null!=this.invalidInput?"InvalidInput":"",placeholder:"0",onInput:t=>this.handleInputChange(t)}),i("button",{disabled:this.isButtonDisabled},s("setLimit",this.lang,{values:{currency:this.currency}}))),!this.invalidInput&&this.isWithinRange&&this.minimumRange||null==this.invalidInput?null:i("p",{class:"InvalidParagraph"},this.isValidNumber?this.isWithinRange?this.minimumRange?null:s("minimumRange",this.lang,{values:{currency:this.currency,min:this.amountMinMax.split(",")[0],max:this.amountMinMax.split(",")[1]}}):s("outOfRange",this.lang,{values:{currency:this.currency,min:this.amountMinMax.split(",")[0],max:this.amountMinMax.split(",")[1]}}):s("invalidNumber",this.lang,{values:{currency:this.currency}})))))):null)))}static get watchers(){return{translationUrl:["handleNewTranslations"]}}};r.style='@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap");\n:host {\n font-family: "Roboto", sans-serif;\n}\n\n.ModalContainer {\n position: absolute;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n background-color: rgba(0, 0, 0, 0.5);\n display: flex;\n justify-content: center;\n align-items: center;\n font-size: 12px;\n container-type: inline-size;\n}\n.ModalContainer .Container {\n position: fixed;\n top: 30vh;\n width: 25%;\n background: #fff;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n border-radius: 4px;\n transform: scale(1.1);\n}\n.ModalContainer .ModalHeader {\n display: flex;\n justify-content: space-between;\n align-items: center;\n background-color: #ffffff;\n border-radius: 4px 4px 0px 0px;\n padding: 10px;\n}\n.ModalContainer .ModalBody {\n background: #F5F6F6;\n padding: 16px 10px 10px;\n container-type: inline-size;\n border-radius: 4px;\n}\n.ModalContainer .ModalBody hr {\n border: 1px solid rgba(0, 0, 0, 0.1);\n margin: 12px 0px;\n}\n.ModalContainer .ModalBody p {\n margin: 0;\n}\n.ModalContainer .ModalBody .ValidatorContainer {\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n}\n.ModalContainer .ModalBody .ValidatorContainer .CrossProvider {\n background-color: #404350;\n color: white;\n margin: 5px 0px;\n padding: 10px 15px;\n border-radius: 2px;\n}\n.ModalContainer .ModalBody .ValidatorContainer .CrossProvider svg {\n position: absolute;\n width: 5px;\n height: 28px;\n}\n.ModalContainer .ModalBody .ValidatorContainer .CrossProvider p {\n padding-left: 15px;\n}\n.ModalContainer .ModalBody .ValidatorContainer .Paragraphs {\n padding: 5px 0px;\n}\n.ModalContainer .ModalBody .ValidatorContainer .Paragraphs p {\n padding: 5px 0px;\n}\n.ModalContainer .ModalBody .ValidatorContainer .ContainerButtons {\n display: flex;\n justify-content: space-around;\n gap: 10px;\n padding-top: 5px;\n}\n.ModalContainer .ModalBody .ValidatorContainer .ContainerButtons .FirstButton {\n background-color: #ffffff;\n font-weight: bold;\n color: #002554;\n font-size: 10px;\n border: 2.5px solid #dee2e6;\n width: 100%;\n cursor: pointer;\n}\n.ModalContainer .ModalBody .ValidatorContainer .ContainerButtons .SecondButton {\n background-color: #6BB816;\n border: none;\n cursor: pointer;\n font-weight: bold;\n font-size: 10px;\n color: #ffffff;\n width: 100%;\n}\n.ModalContainer .ModalBody .ValidatorContainer .ContainerButtons button {\n width: 240px;\n height: 30px;\n}\n.ModalContainer .ModalFooter {\n display: flex;\n justify-content: center;\n background-color: rgba(161, 156, 156, 0.11);\n margin: 5px 0px;\n}\n.ModalContainer .ModalFooter .Dropdown {\n background-color: white;\n padding: 8px;\n width: 100%;\n border: 1px solid #dee2e6;\n}\n.ModalContainer .ModalFooter .Dropdown .InvalidParagraph {\n font-size: 10px;\n color: #FF0000;\n}\n.ModalContainer .ModalFooter .Dropdown .DropdownInput {\n display: flex;\n flex-direction: row;\n width: 100%;\n gap: 10px;\n}\n.ModalContainer .ModalFooter .Dropdown .DropdownInput input {\n flex: 4;\n border: 1px solid #E3E3E3;\n}\n.ModalContainer .ModalFooter .Dropdown .DropdownInput button {\n padding: 2px;\n cursor: pointer;\n transition: background-color 0.2s ease-in-out 0s;\n flex: 1;\n font-size: 10px;\n}\n.ModalContainer .ModalFooter .Dropdown .DropdownInput button:enabled {\n background-color: #6BB816;\n color: #ffffff;\n font-weight: bold;\n border: none;\n border: 2.5px solid rgba(255, 255, 255, 0);\n}\n.ModalContainer .ModalFooter .Dropdown .DropdownInput button:disabled {\n background-color: #ffffff;\n color: #002554;\n font-weight: bold;\n cursor: not-allowed;\n border: 1px solid #E3E3E3;\n}\n.ModalContainer .ModalFooter .Dropdown .DropdownInput:first-child {\n margin-left: 0px;\n display: flex;\n padding: 10px 0px;\n justify-content: center;\n}\n.ModalContainer .ModalFooter .Dropdown .DropdownInput .InvalidInput {\n border: 1px solid #FF0000;\n}\n\ninput {\n /* Firefox */\n -moz-appearance: textfield;\n /* Chrome, Safari, Edge, Opera */\n}\ninput::-webkit-outer-spin-button, input::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n}\n\n@container (max-width: 1300px) {\n .ModalContainer .Container {\n width: 50%;\n }\n}\n@container (max-width: 800px) {\n .ModalContainer .Container {\n width: 70%;\n }\n}';export{r as player_lugas_limit}
@@ -1 +1 @@
1
- import{p as i,b as n}from"./p-d4aa7282.js";(()=>{const n=import.meta.url,t={};return""!==n&&(t.resourcesUrl=new URL(".",n).href),i(t)})().then((i=>n([["p-50933a63",[[1,"player-lugas-limit",{userId:[1,"user-id"],session:[1],endpoint:[1],currency:[1],flow:[1],amountMinMax:[1,"amount-min-max"],amount:[1],lang:[1],clientStyling:[1,"client-styling"],clientStylingUrl:[1,"client-styling-url"],translationUrl:[1,"translation-url"],validation:[32],kyc:[32],dropDown:[32],isLoading:[32],hasErrors:[32],inputValue:[32],isButtonDisabled:[32],crossProviders:[32],invalidInput:[32],userAmount:[32],operatorDepositLimitAmount:[32],regularDepositLimitAmount:[32],stylingAppends:[32],isWithinRange:[32],minimumRange:[32]}]]]],i)));
1
+ import{p as i,b as n}from"./p-d4aa7282.js";(()=>{const n=import.meta.url,t={};return""!==n&&(t.resourcesUrl=new URL(".",n).href),i(t)})().then((i=>n([["p-32778794",[[1,"player-lugas-limit",{userId:[1,"user-id"],session:[1],endpoint:[1],currency:[1],flow:[1],amountMinMax:[1,"amount-min-max"],amount:[1],lang:[1],clientStyling:[1,"client-styling"],clientStylingUrl:[1,"client-styling-url"],translationUrl:[1,"translation-url"],validation:[32],kyc:[32],dropDown:[32],isLoading:[32],hasErrors:[32],inputValue:[32],isButtonDisabled:[32],crossProviders:[32],invalidInput:[32],userAmount:[32],operatorDepositLimitAmount:[32],regularDepositLimitAmount:[32],stylingAppends:[32],isWithinRange:[32],minimumRange:[32]}]]]],i)));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/player-lugas-limit",
3
- "version": "1.22.0",
3
+ "version": "1.22.2",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "module": "./dist/index.js",
6
6
  "es2015": "./dist/esm/index.mjs",
@@ -1 +0,0 @@
1
- import{r as t,c as e,h as i}from"./p-d4aa7282.js";const n=["de","en"];let o={en:{loading:"Loading, please wait ...",error:"It was an error while trying to fetch the data",kyc1:"All deposit limit changes must be reported to LUGAS in accordance with regulatory requirements. Please note that decreases in the limit will take effect immediately, while increases will only come into effect after 8 days at the latest.",kyc2:"We were able to set your monthly deposit limit to <b>{amount} {currency}</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.",kyc3:"We have transmitted your desired limit to Lugas Please be aware that the limit will only come into effect after 8 days at the latest.",kycThanks:"Thank you!",kycSure:"Are you sure?",setNewLimit:"SET NEW LIMIT",setLimit:"SET LIMIT",keepExistingLimit:"KEEP EXISTING LIMIT",Close:"CLOSE",UploadDocuments:"UPLOAD DOCUMENTS",confirm:"CONFIRM",crossProviders:"No cross-provider deposit limit (LUGAS) has been established yet, but there's no need to worry. Please enter a new deposit limit.",monthlyDeposit:"Monthly deposit limit (EUR)",newUserP1:"To start off, set your monthly limit!",newUserP2:"Having a deposit limit in place allows you to regulate your gaming activity. Once you have set your limit, it will be transmitted to the cross-provider limit database (LUGAS).",newUserP3:"If you have set a deposit limit with another provider before, you may maintain the existing limit.",softMigrationP1:"Set deposit limit",softMigrationP2:"According to legal regulations, players are required to set an individual monthly deposit limit or indicate that an already set deposit limit should be kept unchanged. Please note that the limit set should correspond to your financial situation. Consume gambling responsibly and adapt the gambling behavior to your individual circumstances!",softMigrationP3:"Do you want to set a new limit or confirm the existing limit (of {currency} <b>{amount}</b>) ?",invalidNumber:"Invalid number format. Please enter a valid number.",minimumRange:"The value entered must be higher than {min}",outOfRange:"The value entered must be between {min} and {max}.",invalidDecimalSeparator:"Invalid decimal separator. Please use a dot (.) instead of a comma (,)."},de:{loading:"Loading, please wait ...",error:"It was an error while trying to fetch the data",kyc1:"All deposit limit changes must be reported to LUGAS in accordance with regulatory requirements. Please note that decreases in the limit will take effect immediately, while increases will only come into effect after 8 days at the latest.",kyc2:"We were able to set your monthly deposit limit to <b>{amount} {currency}</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.",kyc3:"We have transmitted your desired limit to Lugas Please be aware that the limit will only come into effect after 8 days at the latest.",kycThanks:"Thank you!",kycSure:"Are you sure?",setNewLimit:"SET NEW LIMIT",setLimit:"SET LIMIT",keepExistingLimit:"KEEP EXISTING LIMIT",Close:"CLOSE",UploadDocuments:"UPLOAD DOCUMENTS",confirm:"CONFIRM",crossProviders:"No cross-provider deposit limit (LUGAS) has been established yet, but there's no need to worry. Please enter a new deposit limit.",monthlyDeposit:"Monthly deposit limit (EUR)",newUserP1:"To start off, set your monthly limit!",newUserP2:"Having a deposit limit in place allows you to regulate your gaming activity. Once you have set your limit, it will be transmitted to the cross-provider limit database (LUGAS).",newUserP3:"If you have set a deposit limit with another provider before, you may maintain the existing limit.",softMigrationP1:"Set deposit limit",softMigrationP2:"According to legal regulations, players are required to set an individual monthly deposit limit or indicate that an already set deposit limit should be kept unchanged. Please note that the limit set should correspond to your financial situation. Consume gambling responsibly and adapt the gambling behavior to your individual circumstances!",softMigrationP3:"Do you want to set a new limit or confirm the existing limit (of {currency} <b>{amount}</b>) ?",invalidNumber:"Invalid number format. Please enter a valid number.",minimumRange:"The value entered must be higher than {min}",outOfRange:"The value entered must be between {min} and {max}.",invalidDecimalSeparator:"Invalid decimal separator. Please use a dot (.) instead of a comma (,)."},ro:{loading:"Se incarca, va rugam asteptati ...",error:"A fost o eroare in timp ce asteptam datele",kyc1:"All deposit limit changes must be reported to LUGAS in accordance with regulatory requirements. Please note that decreases in the limit will take effect immediately, while increases will only come into effect after 8 days at the latest.",kyc2:"We were able to set your monthly deposit limit to {amount}. 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.",kyc3:"We have transmitted your desired limit to Lugas Please be aware that the limit will only come into effect after 8 days at the latest.",kycThanks:"Thank you!",kycSure:"Are you sure?",setNewLimit:"SET NEW LIMIT",setLimit:"SET LIMIT",keepExistingLimit:"KEEP EXISTING LIMIT",Close:"CLOSE",UploadDocuments:"UPLOAD DOCUMENTS",confirm:"CONFIRM",crossProviders:"No cross-provider deposit limit (LUGAS) has been established yet, but there's no need to worry. Please enter a new deposit limit.",monthlyDeposit:"Monthly deposit limit (EUR)",newUserP1:"To start off, set your monthly limit!",newUserP2:"Having a deposit limit in place allows you to regulate your gaming activity. Once you have set your limit, it will be transmitted to the cross-provider limit database (LUGAS).",newUserP3:"If you have set a deposit limit with another provider before, you may maintain the existing limit.",softMigrationP1:"Set deposit limit",softMigrationP2:"According to legal regulations, players are required to set an individual monthly deposit limit or indicate that an already set deposit limit should be kept unchanged. Please note that the limit set should correspond to your financial situation. Consume gambling responsibly and adapt the gambling behavior to your individual circumstances!",softMigrationP3:"Do you want to set a new limit or confirm the existing limit ",invalidNumber:"Invalid number format. Please enter a valid number.",minimumRange:"The value entered must be higher than {min}",outOfRange:"The value entered must be between {min} and {max}.",invalidDecimalSeparator:"Invalid decimal separator. Please use a dot (.) instead of a comma (,)."},fr:{loading:"Loading, please wait ...",error:"It was an error while trying to fetch the data",kyc1:"All deposit limit changes must be reported to LUGAS in accordance with regulatory requirements. Please note that decreases in the limit will take effect immediately, while increases will only come into effect after 8 days at the latest.",kyc2:"We were able to set your monthly deposit limit to {amount}. 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.",kyc3:"We have transmitted your desired limit to Lugas Please be aware that the limit will only come into effect after 8 days at the latest.",kycThanks:"Thank you!",kycSure:"Are you sure?",setNewLimit:"SET NEW LIMIT",setLimit:"SET LIMIT",keepExistingLimit:"KEEP EXISTING LIMIT",Close:"CLOSE",UploadDocuments:"UPLOAD DOCUMENTS",confirm:"CONFIRM",crossProviders:"No cross-provider deposit limit (LUGAS) has been established yet, but there's no need to worry. Please enter a new deposit limit.",monthlyDeposit:"Monthly deposit limit (EUR)",newUserP1:"To start off, set your monthly limit!",newUserP2:"Having a deposit limit in place allows you to regulate your gaming activity. Once you have set your limit, it will be transmitted to the cross-provider limit database (LUGAS).",newUserP3:"If you have set a deposit limit with another provider before, you may maintain the existing limit.",softMigrationP1:"Set deposit limit",softMigrationP2:"According to legal regulations, players are required to set an individual monthly deposit limit or indicate that an already set deposit limit should be kept unchanged. Please note that the limit set should correspond to your financial situation. Consume gambling responsibly and adapt the gambling behavior to your individual circumstances!",softMigrationP3:"Do you want to set a new limit or confirm the existing limit ",invalidNumber:"Invalid number format. Please enter a valid number.",minimumRange:"The value entered must be higher than {min}",outOfRange:"The value entered must be between {min} and {max}.",invalidDecimalSeparator:"Invalid decimal separator. Please use a dot (.) instead of a comma (,)."},ar:{loading:"Loading, please wait ...",error:"It was an error while trying to fetch the data",kyc1:"All deposit limit changes must be reported to LUGAS in accordance with regulatory requirements. Please note that decreases in the limit will take effect immediately, while increases will only come into effect after 8 days at the latest.",kyc2:"We were able to set your monthly deposit limit to {amount}. 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.",kyc3:"We have transmitted your desired limit to Lugas Please be aware that the limit will only come into effect after 8 days at the latest.",kycThanks:"Thank you!",kycSure:"Are you sure?",setNewLimit:"SET NEW LIMIT",setLimit:"SET LIMIT",keepExistingLimit:"KEEP EXISTING LIMIT",Close:"CLOSE",UploadDocuments:"UPLOAD DOCUMENTS",confirm:"CONFIRM",crossProviders:"No cross-provider deposit limit (LUGAS) has been established yet, but there's no need to worry. Please enter a new deposit limit.",monthlyDeposit:"Monthly deposit limit (EUR)",newUserP1:"To start off, set your monthly limit!",newUserP2:"Having a deposit limit in place allows you to regulate your gaming activity. Once you have set your limit, it will be transmitted to the cross-provider limit database (LUGAS).",newUserP3:"If you have set a deposit limit with another provider before, you may maintain the existing limit.",softMigrationP1:"Set deposit limit",softMigrationP2:"According to legal regulations, players are required to set an individual monthly deposit limit or indicate that an already set deposit limit should be kept unchanged. Please note that the limit set should correspond to your financial situation. Consume gambling responsibly and adapt the gambling behavior to your individual circumstances!",softMigrationP3:"Do you want to set a new limit or confirm the existing limit ",invalidNumber:"Invalid number format. Please enter a valid number.",minimumRange:"The value entered must be higher than {min}",outOfRange:"The value entered must be between {min} and {max}.",invalidDecimalSeparator:"Invalid decimal separator. Please use a dot (.) instead of a comma (,)."}};const a=t=>new Promise((e=>{fetch(t).then((t=>t.json())).then((t=>{Object.keys(t).forEach((e=>{for(let i in t[e])o[e][i]=t[e][i]})),e(!0)}))})),s=(t,e,i)=>{const a=e;let s=o[void 0!==a&&n.includes(a)?a:"de"][t];if(void 0!==i)for(const[t,e]of Object.entries(i.values)){const i=new RegExp(`{${t}}`,"g");s=s.replace(i,e)}return s},r=class{constructor(i){t(this,i),this.uploadDocuments=e(this,"uploadDocuments",7),this.closePopup=e(this,"closePopup",7),this.userId="",this.session="",this.endpoint="",this.currency="EUR",this.flow="",this.amountMinMax="",this.amount="",this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.validation=!0,this.dropDown=!1,this.isLoading=!1,this.hasErrors=!1,this.inputValue="",this.isButtonDisabled=!0,this.crossProviders=!1,this.userAmount="",this.operatorDepositLimitAmount="",this.regularDepositLimitAmount="",this.stylingAppends=!1,this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)},this.setClientStylingURL=()=>{let t=new URL(this.clientStylingUrl),e=document.createElement("style");fetch(t.href).then((t=>t.text())).then((t=>{e.innerHTML=t,setTimeout((()=>{this.stylingContainer.prepend(e)}),1)})).catch((t=>{console.log("error ",t)}))},this.postPlayerSituation=(t,e=!1,i=!1)=>{let n=new URL(`${this.endpoint}v2/player/${this.userId}/limit/lugas`),o={softMigration:"1"==this.flow,keepLimit:e,roleLimitAmount:i?this.amount:0};t&&(o.amount=`${t}`);let a={method:"POST",headers:{"X-SessionId":this.session,"Content-Type":"application/json",Authorization:`Bearer ${this.session}`},body:JSON.stringify(o)};fetch(n.href,a).then((t=>{if(200===t.status)return t.json();throw this.crossProviders=!0,this.dropDown=!0,new Error("HTTP status "+t.status)})).then((t=>{this.kyc=t.popup,this.validation=!1,this.dropDown=!1,t.operatorDepositLimitAmount&&(this.operatorDepositLimitAmount=t.operatorDepositLimitAmount),t.regulatorDepositLimitAmount&&(this.regularDepositLimitAmount=t.regulatorDepositLimitAmount)})).catch((t=>{console.error(t)}))},this.handleClick=t=>{switch(t){case"keepCurrentLimit":this.postPlayerSituation(this.amount,!0);break;case"keepCurrentLimitNewUser":this.postPlayerSituation(null,!0);break;case"postSituation":this.postPlayerSituation();break;case"setNewLimit":this.dropDown=!0;break;case"UploadDocuments":this.uploadDocuments.emit(),window.postMessage({type:"uploadDocuments"},window.location.href);break;case"Close":this.closePopup.emit(),window.postMessage({type:"closePopup"},window.location.href)}}}componentDidRender(){!this.stylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.stylingAppends=!0)}handleNewTranslations(){this.isLoading=!0,a(this.translationUrl).then((()=>{this.isLoading=!1}))}async componentWillLoad(){this.translationUrl.length>2&&await a(this.translationUrl)}handleSubmit(t){t.preventDefault(),this.invalidInput||(this.userAmount=this.inputValue,this.postPlayerSituation(this.inputValue,!1,!0))}containsOnlyDigits(t){return/^[0-9]+$/.test(t)}handleInputChange(t){const e=t.target.value;this.inputValue=e;let i=parseInt(this.amountMinMax.split(",")[0]),n=parseInt(this.amountMinMax.split(",")[1]);this.isValidNumber=!isNaN(Number(e))&&this.containsOnlyDigits(e),this.invalidInput=!this.isValidNumber,this.minimumRange=Number(e)>=i,this.isWithinRange=Number(e)<=n,this.isButtonDisabled=!this.isValidNumber||!this.isWithinRange||!this.minimumRange}renderKYC(t){return 0==t?(this.closePopup.emit(),void window.postMessage({type:"closePopup"},window.location.href)):i("div",{class:"ValidatorContainer"},1==t?i("div",{class:"Paragraphs"},i("p",null,s("kycSure",this.lang,{values:{currency:this.currency}})),i("p",null,s("kyc1",this.lang,{values:{currency:this.currency}})),i("div",{class:"ContainerButtons"},i("button",{class:"FirstButton",onClick:()=>this.postPlayerSituation(this.userAmount,!1)},s("setNewLimit",this.lang,{values:{currency:this.currency}})),i("button",{class:"SecondButton",onClick:()=>this.handleClick("keepCurrentLimit")},s("keepExistingLimit",this.lang,{values:{currency:this.currency}})))):2==t?i("div",{class:"Paragraphs"},i("p",null,s("kycThanks",this.lang,{values:{currency:this.currency}})),i("p",{innerHTML:s("kyc2",this.lang,{values:{currency:this.currency,amount:this.regularDepositLimitAmount}})}),i("div",{class:"ContainerButtons"},i("button",{class:"FirstButton",onClick:()=>this.handleClick("Close")},s("Close",this.lang,{values:{currency:this.currency}})),i("button",{class:"SecondButton",onClick:()=>this.handleClick("UploadDocuments")},s("UploadDocuments",this.lang,{values:{currency:this.currency}})))):i("div",{class:"Paragraphs"},i("p",null,s("kycThanks",this.lang,{values:{currency:this.currency}})),i("p",null,s("kyc3",this.lang,{values:{currency:this.currency}})),i("div",{class:"ContainerButtons"},i("button",{class:"SecondButton",onClick:()=>this.handleClick("Close")},s("Close",this.lang,{values:{currency:this.currency}})))))}renderValidator(t){return"1"==t?i("div",{class:"ValidatorContainer"},i("div",{class:"Paragraphs"},i("p",null,s("softMigrationP1",this.lang,{values:{currency:this.currency}})),i("p",{innerHTML:s("softMigrationP2",this.lang,{values:{currency:this.currency}})}),i("p",{innerHTML:s("softMigrationP3",this.lang,{values:{currency:this.currency,amount:this.amount}})})),this.crossProviders?i("div",{class:"CrossProvider"},i("svg",{width:"4",height:"17",viewBox:"0 0 4 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i("rect",{width:"4",height:"12",rx:"2",fill:"white"}),i("rect",{y:"14",width:"4",height:"3",rx:"1.5",fill:"white"})),i("p",null,s("crossProviders",this.lang,{values:{currency:this.currency}}))):i("div",{class:"ContainerButtons"},i("button",{class:"FirstButton",onClick:()=>this.handleClick("setNewLimit")},s("setNewLimit",this.lang,{values:{currency:this.currency}})),i("button",{class:"SecondButton",onClick:()=>this.handleClick("keepCurrentLimit")},s("confirm",this.lang,{values:{currency:this.currency}})))):"2"==t?i("div",{class:"ValidatorContainer"},i("div",{class:"Paragraphs"},i("p",null,s("newUserP1",this.lang,{values:{currency:this.currency}})),i("p",null,s("newUserP2",this.lang,{values:{currency:this.currency}})),i("p",null,s("newUserP3",this.lang,{values:{currency:this.currency}}))),this.crossProviders?i("div",{class:"CrossProvider"},i("svg",{width:"4",height:"17",viewBox:"0 0 4 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i("rect",{width:"4",height:"12",rx:"2",fill:"white"}),i("rect",{y:"14",width:"4",height:"3",rx:"1.5",fill:"white"})),i("p",null,s("crossProviders",this.lang,{values:{currency:this.currency}}))):i("div",{class:"ContainerButtons"},i("button",{class:"FirstButton",onClick:()=>this.handleClick("setNewLimit")},s("setNewLimit",this.lang,{values:{currency:this.currency}})),i("button",{class:"SecondButton",onClick:()=>this.handleClick("keepCurrentLimitNewUser")},s("keepExistingLimit",this.lang,{values:{currency:this.currency}})))):void 0}render(){let t=this.renderKYC(this.kyc),e=this.renderValidator(this.flow);return this.isLoading?i("div",null,i("p",null,s("loading",this.lang,{values:{currency:this.currency}}))):this.hasErrors?i("div",null,i("p",null,s("error",this.lang,{values:{currency:this.currency}}))):i("div",{class:"ModalContainer",ref:t=>this.stylingContainer=t},i("div",{class:"Container"},i("div",{class:"ModalHeader"},i("svg",{width:"107",height:"20",viewBox:"0 0 107 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i("path",{d:"M2.7948 17.4348C10.9082 18.9412 30.1923 20.0001 52.698 20.0001C75.2036 20.0001 94.4729 18.9412 102.601 17.4348H2.7948Z",fill:"#7EC51E"}),i("path",{d:"M66.4489 3.87771H64.1074L64.7934 0L60.7815 1.37211L58.3505 14.9143H62.1089L63.481 7.308C63.5705 6.84565 63.7942 6.65177 64.1969 6.65177H64.5697C64.9426 6.65177 65.0917 6.80091 65.0321 7.14394L63.6301 14.9292H67.4034L68.8949 6.63685C69.1931 4.95154 68.5518 3.87771 66.4489 3.87771Z",fill:"#002554"}),i("path",{d:"M93.0858 3.87769H92.6831H85.3901H81.6913L79.6928 14.9143H83.4512L84.8233 7.30797C84.9128 6.84563 85.1365 6.65174 85.5392 6.65174H85.9121C86.2849 6.65174 86.4341 6.80088 86.3744 7.14391L84.9725 14.9292H88.7309L90.103 7.32288C90.1925 6.86054 90.4162 6.66666 90.8189 6.66666H91.1917C91.5646 6.66666 91.7137 6.8158 91.6541 7.15883L90.2521 14.9441H94.0105L95.5019 6.65174C95.8301 4.95151 95.1887 3.87769 93.0858 3.87769Z",fill:"#002554"}),i("path",{d:"M51.9523 10.6639H57.0828L57.5302 8.11353H52.3997L51.9523 10.6639Z",fill:"#002554"}),i("path",{d:"M51.2363 1.34229L47.2244 2.7144L45.5093 12.1701C45.211 13.8255 45.897 14.9143 48.2684 14.9143H50.1476L50.6398 12.1551H49.8195C49.4466 12.1551 49.2975 12.006 49.3571 11.663L50.3266 6.42805H51.6689L52.1163 3.87771H50.7889L51.2363 1.34229Z",fill:"#002554"}),i("path",{d:"M27.2095 1.34229L23.1976 2.7144L21.4825 12.1701C21.1842 13.8255 21.8702 14.9143 24.2416 14.9143H26.1208L26.613 12.1551H25.7927C25.4198 12.1551 25.2707 12.006 25.3303 11.663L26.2998 6.42805H27.6421L28.0895 3.87771H26.7621L27.2095 1.34229Z",fill:"#002554"}),i("path",{d:"M27.8807 10.6639H33.0112L33.4736 8.11353H28.3431L27.8807 10.6639Z",fill:"#002554"}),i("path",{d:"M7.6569 3.87771H5.31536L6.01633 0L2.00439 1.37211L0.169932 11.5735L0.0655323 12.1701C-0.232753 13.8255 0.453304 14.9143 2.82467 14.9143H5.65839C7.7613 14.9143 8.79039 13.8255 9.08867 12.1701L10.0879 6.62194C10.4011 4.95154 9.75981 3.87771 7.6569 3.87771ZM6.25496 7.12903L5.43467 11.663C5.37502 11.9911 5.16622 12.1551 4.79336 12.1551H4.4205C4.01782 12.1551 3.85376 11.9613 3.94324 11.4989L4.70387 7.32291C4.79336 6.86057 5.01707 6.66668 5.41976 6.66668H5.79262C6.16547 6.63685 6.31461 6.786 6.25496 7.12903Z",fill:"#002554"}),i("path",{d:"M76.8891 3.87769H74.0852C71.7138 3.87769 70.7444 4.96643 70.4461 6.62191L69.4468 12.17C69.1486 13.8255 69.7302 14.9143 72.0867 14.9143H74.8906C77.2619 14.9143 78.2313 13.8255 78.5296 12.17L79.5289 6.62191C79.8421 4.95151 79.2604 3.87769 76.8891 3.87769ZM75.7854 6.96494L74.9055 11.8121C74.8458 12.1402 74.637 12.3043 74.2641 12.3043H73.6676C73.2947 12.3043 73.1456 12.1551 73.2052 11.8121L74.0852 6.96494C74.1448 6.63683 74.3536 6.47277 74.7265 6.47277H75.3231C75.6959 6.47277 75.8451 6.63683 75.7854 6.96494Z",fill:"#002554"}),i("path",{d:"M18.082 3.87769H15.3825C13.0111 3.87769 11.9373 4.96643 11.639 6.62191L10.6398 12.17C10.3415 13.8255 11.0275 14.9143 13.3989 14.9143H16.0984C18.4697 14.9143 19.5436 13.8255 19.8419 12.17L19.991 11.3796H16.4265L16.3519 11.7972C16.2923 12.1253 16.0835 12.3341 15.6957 12.3341H14.7263C14.3534 12.3341 14.2043 12.1849 14.2639 11.8419L14.4727 10.6637H20.1103L20.4832 8.62043L20.8411 6.62191C21.1394 4.95151 20.4384 3.87769 18.082 3.87769ZM17.2169 6.95003L17.0081 8.12825H14.9351L15.1439 6.95003C15.2035 6.62191 15.4123 6.45786 15.7852 6.45786H16.7546C17.1275 6.45786 17.2766 6.607 17.2169 6.95003Z",fill:"#002554"}),i("path",{d:"M42.2133 3.87769H39.5138C37.1424 3.87769 36.0686 4.96643 35.7703 6.62191L35.6212 7.41237H39.1857L39.2602 6.99477C39.3199 6.66666 39.5287 6.45786 39.9165 6.45786H40.8859C41.2588 6.45786 41.4079 6.607 41.3482 6.95003L41.1394 8.12825H37.0828C36.2028 8.12825 35.3676 8.82923 35.2185 9.70917L35.0842 10.4101L34.771 12.17C34.4728 13.8255 35.1588 14.9143 37.5302 14.9143H43.4959L44.9873 6.62191C45.2707 4.95151 44.5846 3.87769 42.2133 3.87769ZM40.4683 11.827C40.4086 12.1551 40.1998 12.3192 39.827 12.3192H38.8576C38.4847 12.3192 38.3356 12.17 38.3952 11.827L38.604 10.6488H40.6771L40.4683 11.827Z",fill:"#002554"}),i("path",{d:"M103.63 3.87769H100.931C98.5593 3.87769 97.4855 4.96643 97.1872 6.62191L96.1879 12.17C95.8896 13.8255 96.5757 14.9143 98.947 14.9143H101.647C104.018 14.9143 105.092 13.8255 105.39 12.17L105.539 11.3796H101.975L101.9 11.7972C101.84 12.1253 101.632 12.3341 101.259 12.3341H100.289C99.9165 12.3341 99.7673 12.1849 99.827 11.8419L100.036 10.6637H105.673L106.046 8.62043L106.404 6.62191C106.688 4.95151 106.002 3.87769 103.63 3.87769ZM102.765 6.95003L102.556 8.12825H100.483L100.692 6.95003C100.752 6.62191 100.96 6.45786 101.333 6.45786H102.303C102.676 6.45786 102.825 6.607 102.765 6.95003Z",fill:"#002554"}))),i("div",{class:"ModalBody"},this.validation?e:t,this.dropDown?i("div",null,i("hr",null),i("div",{class:"ModalFooter"},i("div",{class:"Dropdown"},i("p",null,s("monthlyDeposit",this.lang,{values:{currency:this.currency}})),i("form",{onSubmit:t=>this.handleSubmit(t)},i("div",{class:"DropdownInput"},i("input",{type:"number",value:this.inputValue,class:this.invalidInput&&null!=this.invalidInput?"InvalidInput":"",placeholder:"0",onInput:t=>this.handleInputChange(t)}),i("button",{disabled:this.isButtonDisabled},s("setLimit",this.lang,{values:{currency:this.currency}}))),!this.invalidInput&&this.isWithinRange&&this.minimumRange||null==this.invalidInput?null:i("p",{class:"InvalidParagraph"},this.isValidNumber?this.isWithinRange?this.minimumRange?null:s("minimumRange",this.lang,{values:{currency:this.currency,min:this.amountMinMax.split(",")[0],max:this.amountMinMax.split(",")[1]}}):s("outOfRange",this.lang,{values:{currency:this.currency,min:this.amountMinMax.split(",")[0],max:this.amountMinMax.split(",")[1]}}):s("invalidNumber",this.lang,{values:{currency:this.currency}})))))):null)))}static get watchers(){return{translationUrl:["handleNewTranslations"]}}};r.style='@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap");\n:host {\n font-family: "Roboto", sans-serif;\n}\n\n.ModalContainer {\n position: absolute;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n background-color: rgba(0, 0, 0, 0.5);\n display: flex;\n justify-content: center;\n align-items: center;\n font-size: 12px;\n container-type: inline-size;\n}\n.ModalContainer .Container {\n position: fixed;\n top: 30vh;\n width: 25%;\n background: #fff;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n border-radius: 4px;\n transform: scale(1.1);\n}\n.ModalContainer .ModalHeader {\n display: flex;\n justify-content: space-between;\n align-items: center;\n background-color: #ffffff;\n border-radius: 4px 4px 0px 0px;\n padding: 10px;\n}\n.ModalContainer .ModalBody {\n background: #F5F6F6;\n padding: 16px 10px 10px;\n container-type: inline-size;\n border-radius: 4px;\n}\n.ModalContainer .ModalBody hr {\n border: 1px solid rgba(0, 0, 0, 0.1);\n margin: 12px 0px;\n}\n.ModalContainer .ModalBody p {\n margin: 0;\n}\n.ModalContainer .ModalBody .ValidatorContainer {\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n}\n.ModalContainer .ModalBody .ValidatorContainer .CrossProvider {\n background-color: #404350;\n color: white;\n margin: 5px 0px;\n padding: 10px 15px;\n border-radius: 2px;\n}\n.ModalContainer .ModalBody .ValidatorContainer .CrossProvider svg {\n position: absolute;\n width: 5px;\n height: 28px;\n}\n.ModalContainer .ModalBody .ValidatorContainer .CrossProvider p {\n padding-left: 15px;\n}\n.ModalContainer .ModalBody .ValidatorContainer .Paragraphs {\n padding: 5px 0px;\n}\n.ModalContainer .ModalBody .ValidatorContainer .Paragraphs p {\n padding: 5px 0px;\n}\n.ModalContainer .ModalBody .ValidatorContainer .ContainerButtons {\n display: flex;\n justify-content: space-around;\n gap: 10px;\n padding-top: 5px;\n}\n.ModalContainer .ModalBody .ValidatorContainer .ContainerButtons .FirstButton {\n background-color: #ffffff;\n font-weight: bold;\n color: #002554;\n font-size: 10px;\n border: 2.5px solid #dee2e6;\n width: 100%;\n cursor: pointer;\n}\n.ModalContainer .ModalBody .ValidatorContainer .ContainerButtons .SecondButton {\n background-color: #6BB816;\n border: none;\n cursor: pointer;\n font-weight: bold;\n font-size: 10px;\n color: #ffffff;\n width: 100%;\n}\n.ModalContainer .ModalBody .ValidatorContainer .ContainerButtons button {\n width: 240px;\n height: 30px;\n}\n.ModalContainer .ModalFooter {\n display: flex;\n justify-content: center;\n background-color: rgba(161, 156, 156, 0.11);\n margin: 5px 0px;\n}\n.ModalContainer .ModalFooter .Dropdown {\n background-color: white;\n padding: 8px;\n width: 100%;\n border: 1px solid #dee2e6;\n}\n.ModalContainer .ModalFooter .Dropdown .InvalidParagraph {\n font-size: 10px;\n color: #FF0000;\n}\n.ModalContainer .ModalFooter .Dropdown .DropdownInput {\n display: flex;\n flex-direction: row;\n width: 100%;\n gap: 10px;\n}\n.ModalContainer .ModalFooter .Dropdown .DropdownInput input {\n flex: 4;\n border: 1px solid #E3E3E3;\n}\n.ModalContainer .ModalFooter .Dropdown .DropdownInput button {\n padding: 2px;\n cursor: pointer;\n transition: background-color 0.2s ease-in-out 0s;\n flex: 1;\n font-size: 10px;\n}\n.ModalContainer .ModalFooter .Dropdown .DropdownInput button:enabled {\n background-color: #6BB816;\n color: #ffffff;\n font-weight: bold;\n border: none;\n border: 2.5px solid rgba(255, 255, 255, 0);\n}\n.ModalContainer .ModalFooter .Dropdown .DropdownInput button:disabled {\n background-color: #ffffff;\n color: #002554;\n font-weight: bold;\n cursor: not-allowed;\n border: 1px solid #E3E3E3;\n}\n.ModalContainer .ModalFooter .Dropdown .DropdownInput:first-child {\n margin-left: 0px;\n display: flex;\n padding: 10px 0px;\n justify-content: center;\n}\n.ModalContainer .ModalFooter .Dropdown .DropdownInput .InvalidInput {\n border: 1px solid #FF0000;\n}\n\ninput {\n /* Firefox */\n -moz-appearance: textfield;\n /* Chrome, Safari, Edge, Opera */\n}\ninput::-webkit-outer-spin-button, input::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n}\n\n@container (max-width: 1300px) {\n .ModalContainer .Container {\n width: 50%;\n }\n}\n@container (max-width: 800px) {\n .ModalContainer .Container {\n width: 70%;\n }\n}';export{r as player_lugas_limit}