@everymatrix/player-account-gaming-limits-popup-2 0.0.407 → 0.0.409

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.
@@ -567,7 +567,7 @@ t.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"}
567
567
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
568
568
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
569
569
  PERFORMANCE OF THIS SOFTWARE.
570
- ***************************************************************************** */function Ue(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}const Ge={fallbackLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};function $e(){return Ge}const Fe=$(!1);let je;const Ve=$(null);function Ke(t){return t.split("-").map(((t,e,n)=>n.slice(0,e+1).join("-"))).reverse()}function Xe(t,e=$e().fallbackLocale){const n=Ke(t);return e?[...new Set([...n,...Ke(e)])]:n}function ze(){return null!=je?je:void 0}Ve.subscribe((t=>{je=null!=t?t:void 0,"undefined"!=typeof window&&null!=t&&document.documentElement.setAttribute("lang",t)}));const We=Object.assign(Object.assign({},Ve),{set:t=>{if(t&&function(t){if(null==t)return;const e=Xe(t);for(let t=0;t<e.length;t++){const n=e[t];if(Ce(n))return n}}(t)&&De(t)){const{loadingDelay:e}=$e();let n;return"undefined"!=typeof window&&null!=ze()&&e?n=window.setTimeout((()=>Fe.set(!0)),e):Fe.set(!0),xe(t).then((()=>{Ve.set(t)})).finally((()=>{clearTimeout(n),Fe.set(!1)}))}return Ve.set(t)}}),Ye=t=>{const e=Object.create(null);return n=>{const r=JSON.stringify(n);return r in e?e[r]:e[r]=t(n)}},Ze=(t,e)=>{const{formats:n}=$e();if(t in n&&e in n[t])return n[t][e];throw new Error(`[svelte-i18n] Unknown "${e}" ${t} format.`)},qe=Ye((t=>{var{locale:e,format:n}=t,r=Ue(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(r=Ze("number",n)),new Intl.NumberFormat(e,r)})),Qe=Ye((t=>{var{locale:e,format:n}=t,r=Ue(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?r=Ze("date",n):0===Object.keys(r).length&&(r=Ze("date","short")),new Intl.DateTimeFormat(e,r)})),Je=Ye((t=>{var{locale:e,format:n}=t,r=Ue(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?r=Ze("time",n):0===Object.keys(r).length&&(r=Ze("time","short")),new Intl.DateTimeFormat(e,r)})),tn=Ye(((t,e=ze())=>new Ae(t,e,$e().formats,{ignoreTag:$e().ignoreTag}))),en=(t,e={})=>{var n,r,i,o;let s=e;"object"==typeof t&&(s=t,t=s.id);const{values:a,locale:u=ze(),default:l}=s;if(null==u)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=we(t,u);if(c){if("string"!=typeof c)return console.warn(`[svelte-i18n] Message with id "${t}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),c}else c=null!==(o=null!==(i=null===(r=(n=$e()).handleMissingMessage)||void 0===r?void 0:r.call(n,{locale:u,id:t,defaultValue:l}))&&void 0!==i?i:l)&&void 0!==o?o:t;if(!a)return c;let h=c;try{h=tn(c,u).format(a)}catch(e){console.warn(`[svelte-i18n] Message "${t}" has syntax error:`,e.message)}return h},nn=(t,e)=>((t={})=>{var{locale:e=ze()}=t,n=Ue(t,["locale"]);return Je(Object.assign({locale:e},n))})(e).format(t),rn=(t,e)=>((t={})=>{var{locale:e=ze()}=t,n=Ue(t,["locale"]);return Qe(Object.assign({locale:e},n))})(e).format(t),on=(t,e)=>((t={})=>{var{locale:e=ze()}=t,n=Ue(t,["locale"]);return qe(Object.assign({locale:e},n))})(e).format(t),sn=(t,e=ze())=>we(t,e),an=F([We,Ie],(()=>en));F([We],(()=>nn)),F([We],(()=>rn)),F([We],(()=>on)),F([We,Ie],(()=>sn));const un={en:{lugasPopup:{loading:"Loading, please wait...",setLimit:"Set a limit",setLimitDescription:"In Germany, you are legally required to set a monthly deposit limit. Therefore, we ask you to confirm your existing limit or set a new one in order to enjoy playing without restrictions.",lugasInfo1:"Any questions? Information about",lugasInfo2:"LUGAS",keepCurrentLimit:"KEEP THE CURRENT LIMIT",keepCurrentLimitButton:"NEW LIMIT",applyButton:"APPLY",depositPeriod:"Monthly deposit limit",TCpart1:'By clicking "Keep the current limit" or "Apply" I confirm that I have read and accept the ',TClink:"General Terms and Conditions",TCpart2:". Also note our ",PPlink:"Privacy Policy",depositLimit:"Deposit Limit set",successful:"Succesful!",successDescription:"The deposit limit has been set successfully. You can manage your limits at any time in the account settings.",kyc1Part1:"We were able to set your monthly deposit limit to ",kyc1Part2:". In order to increase the limit to the desired amount, we ask you to provide us with the relevant information. This information can be submitted in the document upload.",kycButton:"UPLOAD DOCUMENTS",closeButton:"CLOSE",depositError:"Deposit Limit update error",errorDescription:"We were unable to set your limit at this time, due to a server error. Please try again later.",docsRequired:"Documents required!",kyc2:"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."}},de:{lugasPopup:{loading:"Loading, please wait...",setLimit:"Set a limit",setLimitDescription:"In Germany, you are legally required to set a monthly deposit limit. Therefore, we ask you to confirm your existing limit or set a new one in order to enjoy playing without restrictions.",lugasInfo1:"Any questions? Information about",lugasInfo2:"LUGAS",keepCurrentLimit:"KEEP THE CURRENT LIMIT",keepCurrentLimitButton:"NEW LIMIT",applyButton:"APPLY",depositPeriod:"Monthly deposit limit",TCpart1:'By clicking "Keep the current limit" or "Apply" I confirm that I have read and accept the ',TClink:"General Terms and Conditions",TCpart2:". Also note our ",PPlink:"Privacy Policy",depositLimit:"Deposit Limit set",successful:"Succesful!",successDescription:"The deposit limit has been set successfully. You can manage your limits at any time in the account settings.",kyc1Part1:"We were able to set your monthly deposit limit to ",kyc1Part2:". In order to increase the limit to the desired amount, we ask you to provide us with the relevant information. This information can be submitted in the document upload.",kycButton:"UPLOAD DOCUMENTS",closeButton:"CLOSE",depositError:"Deposit Limit update error",errorDescription:"We were unable to set your limit at this time, due to a server error. Please try again later.",docsRequired:"Documents required!",kyc2:"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."}}},{document:ln}=D;
570
+ ***************************************************************************** */function Ue(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}const Ge={fallbackLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};function $e(){return Ge}const Fe=$(!1);let je;const Ve=$(null);function Ke(t){return t.split("-").map(((t,e,n)=>n.slice(0,e+1).join("-"))).reverse()}function Xe(t,e=$e().fallbackLocale){const n=Ke(t);return e?[...new Set([...n,...Ke(e)])]:n}function ze(){return null!=je?je:void 0}Ve.subscribe((t=>{je=null!=t?t:void 0,"undefined"!=typeof window&&null!=t&&document.documentElement.setAttribute("lang",t)}));const We=Object.assign(Object.assign({},Ve),{set:t=>{if(t&&function(t){if(null==t)return;const e=Xe(t);for(let t=0;t<e.length;t++){const n=e[t];if(Ce(n))return n}}(t)&&De(t)){const{loadingDelay:e}=$e();let n;return"undefined"!=typeof window&&null!=ze()&&e?n=window.setTimeout((()=>Fe.set(!0)),e):Fe.set(!0),xe(t).then((()=>{Ve.set(t)})).finally((()=>{clearTimeout(n),Fe.set(!1)}))}return Ve.set(t)}}),Ye=t=>{const e=Object.create(null);return n=>{const r=JSON.stringify(n);return r in e?e[r]:e[r]=t(n)}},Ze=(t,e)=>{const{formats:n}=$e();if(t in n&&e in n[t])return n[t][e];throw new Error(`[svelte-i18n] Unknown "${e}" ${t} format.`)},qe=Ye((t=>{var{locale:e,format:n}=t,r=Ue(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(r=Ze("number",n)),new Intl.NumberFormat(e,r)})),Qe=Ye((t=>{var{locale:e,format:n}=t,r=Ue(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?r=Ze("date",n):0===Object.keys(r).length&&(r=Ze("date","short")),new Intl.DateTimeFormat(e,r)})),Je=Ye((t=>{var{locale:e,format:n}=t,r=Ue(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?r=Ze("time",n):0===Object.keys(r).length&&(r=Ze("time","short")),new Intl.DateTimeFormat(e,r)})),tn=Ye(((t,e=ze())=>new Ae(t,e,$e().formats,{ignoreTag:$e().ignoreTag}))),en=(t,e={})=>{var n,r,i,o;let s=e;"object"==typeof t&&(s=t,t=s.id);const{values:a,locale:u=ze(),default:l}=s;if(null==u)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=we(t,u);if(c){if("string"!=typeof c)return console.warn(`[svelte-i18n] Message with id "${t}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),c}else c=null!==(o=null!==(i=null===(r=(n=$e()).handleMissingMessage)||void 0===r?void 0:r.call(n,{locale:u,id:t,defaultValue:l}))&&void 0!==i?i:l)&&void 0!==o?o:t;if(!a)return c;let h=c;try{h=tn(c,u).format(a)}catch(e){console.warn(`[svelte-i18n] Message "${t}" has syntax error:`,e.message)}return h},nn=(t,e)=>((t={})=>{var{locale:e=ze()}=t,n=Ue(t,["locale"]);return Je(Object.assign({locale:e},n))})(e).format(t),rn=(t,e)=>((t={})=>{var{locale:e=ze()}=t,n=Ue(t,["locale"]);return Qe(Object.assign({locale:e},n))})(e).format(t),on=(t,e)=>((t={})=>{var{locale:e=ze()}=t,n=Ue(t,["locale"]);return qe(Object.assign({locale:e},n))})(e).format(t),sn=(t,e=ze())=>we(t,e),an=F([We,Ie],(()=>en));F([We],(()=>nn)),F([We],(()=>rn)),F([We],(()=>on)),F([We,Ie],(()=>sn));const un={en:{lugasPopup:{loading:"Loading, please wait...",setLimit:"Set a limit",setLimitDescription:"In Germany, you are legally required to set a monthly deposit limit. Therefore, we ask you to confirm your existing limit or set a new one in order to enjoy playing without restrictions.",lugasInfo1:"Any questions? Information about",lugasInfo2:"LUGAS",keepCurrentLimit:"KEEP THE CURRENT LIMIT",keepCurrentLimitButton:"NEW LIMIT",applyButton:"APPLY",depositPeriod:"Monthly deposit limit",TCpart1:'By clicking "Keep the current limit" or "Apply" I confirm that I have read and accept the ',TClink:"General Terms and Conditions",TCpart2:". Also note our ",PPlink:"Privacy Policy",depositLimit:"Deposit Limit set",successful:"Successful!",successDescription:"The deposit limit has been set successfully. You can manage your limits at any time in the account settings.",kyc1Part1:"We were able to set your monthly deposit limit to ",kyc1Part2:". In order to increase the limit to the desired amount, we ask you to provide us with the relevant information. This information can be submitted in the document upload.",kycButton:"UPLOAD DOCUMENTS",closeButton:"CLOSE",depositError:"Deposit Limit update error",errorDescription:"We were unable to set your limit at this time, due to a server error. Please try again later.",docsRequired:"Documents required!",kyc2:"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."}},de:{lugasPopup:{loading:"Loading, please wait...",setLimit:"Set a limit",setLimitDescription:"In Germany, you are legally required to set a monthly deposit limit. Therefore, we ask you to confirm your existing limit or set a new one in order to enjoy playing without restrictions.",lugasInfo1:"Any questions? Information about",lugasInfo2:"LUGAS",keepCurrentLimit:"KEEP THE CURRENT LIMIT",keepCurrentLimitButton:"NEW LIMIT",applyButton:"APPLY",depositPeriod:"Monthly deposit limit",TCpart1:'By clicking "Keep the current limit" or "Apply" I confirm that I have read and accept the ',TClink:"General Terms and Conditions",TCpart2:". Also note our ",PPlink:"Privacy Policy",depositLimit:"Deposit Limit set",successful:"Successful!",successDescription:"The deposit limit has been set successfully. You can manage your limits at any time in the account settings.",kyc1Part1:"We were able to set your monthly deposit limit to ",kyc1Part2:". In order to increase the limit to the desired amount, we ask you to provide us with the relevant information. This information can be submitted in the document upload.",kycButton:"UPLOAD DOCUMENTS",closeButton:"CLOSE",depositError:"Deposit Limit update error",errorDescription:"We were unable to set your limit at this time, due to a server error. Please try again later.",docsRequired:"Documents required!",kyc2:"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."}}},{document:ln}=D;
571
571
  /* src/PlayerAccountGamingLimitsPopup_2.svelte generated by Svelte v3.48.0 */function cn(t){let e;function n(t,e){/*popupState*/
572
572
  return"initial"===t[10]?dn:/*popupState*/"successful"===t[10]?gn:/*popupState*/"KYC"===t[10]?mn:/*popupState*/"KYC2"===t[10]?fn:/*popupState*/"error"===t[10]?pn:void 0}let r=n(t),i=r&&r(t);return{c(){e=c("div"),i&&i.c(),g(e,"class","InitialWrapper")},m(t,n){u(t,e,n),i&&i.m(e,null)},p(t,o){r===(r=n(t))&&i?i.p(t,o):(i&&i.d(1),i=r&&r(t),i&&(i.c(),i.m(e,null)))},d(t){t&&l(e),i&&i.d()}}}
573
573
  // (135:8) {#if isLoading}
@@ -590,5 +590,5 @@ return t[7]?hn:/*lang*/t[1]?cn:void 0}let m=p(e),d=m&&m(e);return{c(){n=c("meta"
590
590
  /*div2_binding*/,e[36](o),
591
591
  /*div3_binding*/e[37](i)},p(t,e){m===(m=p(t))&&d?d.p(t,e):(d&&d.d(1),d=m&&m(t),d&&(d.c(),d.m(h,null)))},i:t,o:t,d(t){l(n),t&&l(r),t&&l(i),d&&d.d()
592
592
  /*div2_binding*/,e[36](null),
593
- /*div3_binding*/e[37](null)}}}function bn(t,e,n){let r;var i,o;i=an,o=t=>n(12,r=t),t.$$.on_destroy.push(s(i,o));let a,u,l,c,h,p,{userid:f=""}=e,{session:m=""}=e,{endpoint:g=""}=e,{currency:y=""}=e,{lang:b=""}=e,{clientstyling:E=""}=e,{clientstylingurl:v=""}=e,T=!0,P=!1,B=!1,H="initial";Object.keys(un).forEach((t=>{!function(t,e){Me(t,e)}(t,un[t])}));const _=t=>{switch(window.postMessage({type:t}),t){case"closePopup":case"uploadDocuments":h.parentNode.removeChild(h)}},L=t=>{const e=new URL(`/v1/player/${f}/limit/lugas`,g);let r={};n(7,B=!0),r="custom"===t?{amount:l}:{};let i={method:"POST",headers:{"X-SessionID":m,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(r)};fetch(e.href,i).then((t=>t.json())).then((t=>{w(t)})).catch((t=>{console.log(t)})).finally((()=>{n(7,B=!1)}))},w=t=>{if(t.hasOwnProperty("kycNeeded"))switch(t.popup){case 1:n(10,H="KYC"),n(11,p=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(t.operatorDepositLimitAmount));break;case 2:n(10,H="successful");break;case 3:n(10,H="KYC2")}else n(10,H="error")},S=()=>{var t;t=b,We.set(t)};return t.$$set=t=>{"userid"in t&&n(17,f=t.userid),"session"in t&&n(18,m=t.session),"endpoint"in t&&n(19,g=t.endpoint),"currency"in t&&n(0,y=t.currency),"lang"in t&&n(1,b=t.lang),"clientstyling"in t&&n(20,E=t.clientstyling),"clientstylingurl"in t&&n(21,v=t.clientstylingurl)},t.$$.update=()=>{/*lang*/2&t.$$.dirty[0]&&b&&S(),/*clientstylingurl*/2097152&t.$$.dirty[0]&&v&&(()=>{let t=new URL(v),e=document.createElement("style");fetch(t.href).then((t=>t.text())).then((t=>{e.innerHTML=t,a&&setTimeout((()=>{a.appendChild(e)}),1)}))})(),/*clientstyling*/1048576&t.$$.dirty[0]&&E&&(()=>{let t=document.createElement("style");t.innerHTML=E,a.appendChild(t)})()},[y,b,a,u,T,P,l,B,c,h,H,p,r,()=>{n(5,P=!P),n(4,T=!T)},()=>{const t=999999999999999;l>t&&n(6,l=t);const e=l-Math.floor(l)==0;l>0&&e?c.removeAttribute("disabled"):c.setAttribute("disabled","true")},_,L,f,m,g,E,v,()=>_("lugasInformation"),()=>L("default"),function(t){A[t?"unshift":"push"]((()=>{u=t,n(3,u)}))},function(){l=d(this.value),n(6,l)},function(t){A[t?"unshift":"push"]((()=>{c=t,n(8,c)}))},()=>L("custom"),()=>_("termsConditions"),()=>_("privacyPolicy"),()=>_("closePopup"),()=>_("uploadDocuments"),()=>_("closePopup"),()=>_("uploadDocuments"),()=>_("closePopup"),()=>_("closePopup"),function(t){A[t?"unshift":"push"]((()=>{h=t,n(9,h)}))},function(t){A[t?"unshift":"push"]((()=>{a=t,n(2,a)}))}]}class En extends U{constructor(t){super(),this.shadowRoot.innerHTML="<style>:host{font-family:'Roboto', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size:0.8rem}*,*::before,*::after{margin:0;padding:0;list-style:none;outline:none;box-sizing:border-box}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}.player-account-gaming-limits-popup-2{background:var(--emfe-w-color-black, #000000);color:var(--emfe-w-color-white, #000)}.Title{font-weight:800;font-size:18px}button{display:block;font-size:0.75rem;padding:12px 0;border:0;border-radius:2px;cursor:pointer}button.PrimaryButtonStyle{font-size:14px;color:#fff;background:#7ac317}button.SecondaryButtonStyle{border:1px solid #999;color:#666;background:#fff}.ResultIconWrapper{display:flex;flex-direction:column;align-items:center;margin:12px 0}.ResultIconWrapper svg{height:auto;width:60px;margin:12px}.ResultIconWrapper p{color:#666}.Overlay{position:absolute;top:0;left:0;width:100vw;height:100vh;display:flex;justify-content:center;align-items:center}.ModalContainer{position:fixed;top:30vh;width:20vw;height:auto;padding:18px 14px;background:#fff;border-radius:4px}.InitialWrapper{display:flex;flex-direction:column;gap:12px}.AdditionalInformation{margin:10px 0;font-size:14px}.TermsConditions{font-size:12px}.ExpandButton{font-size:14px;background-color:#fff;border:0;padding:0;margin-top:-10px;color:#999;display:flex;justify-content:center;align-items:center;cursor:pointer}.ExpandButton svg{width:28px;height:auto;margin-left:-4px}.LeftAlign{text-align:left;font-size:16px}.CenterAlign{text-align:center}.SetLimitSection{display:flex;flex-direction:column;gap:6px}.DepositTextSection{display:flex;justify-content:space-between}.DepositInputSection{height:32px;display:flex;gap:4px}.DepositInput{flex-grow:1;padding:0 6px}.SubmitDepositButton{flex-grow:1;font-size:0.75rem;padding:0}.SubmitDepositButton[disabled]{align-items:center;color:#ccc;cursor:not-allowed;background:#fff;border:#ccc 1px solid}.Hidden{display:none}.Extended{transform:rotate(180deg)}</style>",x(this,{target:this.shadowRoot,props:T(this.attributes),customElement:!0},bn,yn,o,{userid:17,session:18,endpoint:19,currency:0,lang:1,clientstyling:20,clientstylingurl:21},null,[-1,-1]),t&&(t.target&&u(t.target,this,t.anchor),t.props&&(this.$set(t.props),M()))}static get observedAttributes(){return["userid","session","endpoint","currency","lang","clientstyling","clientstylingurl"]}get userid(){return this.$$.ctx[17]}set userid(t){this.$$set({userid:t}),M()}get session(){return this.$$.ctx[18]}set session(t){this.$$set({session:t}),M()}get endpoint(){return this.$$.ctx[19]}set endpoint(t){this.$$set({endpoint:t}),M()}get currency(){return this.$$.ctx[0]}set currency(t){this.$$set({currency:t}),M()}get lang(){return this.$$.ctx[1]}set lang(t){this.$$set({lang:t}),M()}get clientstyling(){return this.$$.ctx[20]}set clientstyling(t){this.$$set({clientstyling:t}),M()}get clientstylingurl(){return this.$$.ctx[21]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),M()}}return!customElements.get("player-account-gaming-limits-popup-2")&&customElements.define("player-account-gaming-limits-popup-2",En),En}));
593
+ /*div3_binding*/e[37](null)}}}function bn(t,e,n){let r;var i,o;i=an,o=t=>n(12,r=t),t.$$.on_destroy.push(s(i,o));let a,u,l,c,h,p,{userid:f=""}=e,{session:m=""}=e,{endpoint:g=""}=e,{currency:y=""}=e,{lang:b=""}=e,{clientstyling:E=""}=e,{clientstylingurl:v=""}=e,T=!0,P=!1,B=!1,H="initial";Object.keys(un).forEach((t=>{!function(t,e){Me(t,e)}(t,un[t])}));const _=t=>{switch(window.postMessage({type:t}),t){case"closePopup":case"uploadDocuments":h.parentNode.removeChild(h)}},L=t=>{const e=new URL(`/v1/player/${f}/limit/lugas`,g);let r={};n(7,B=!0),r="custom"===t?{amount:l}:{};let i={method:"POST",headers:{"X-SessionID":m,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(r)};fetch(e.href,i).then((t=>t.json())).then((t=>{w(t)})).catch((t=>{console.log(t)})).finally((()=>{n(7,B=!1)}))},w=t=>{if(t.hasOwnProperty("kycNeeded"))switch(t.popup){case 1:n(10,H="KYC"),n(11,p=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(t.operatorDepositLimitAmount));break;case 2:n(10,H="successful");break;case 3:n(10,H="KYC2")}else n(10,H="error")},S=()=>{var t;t=b,We.set(t)};return t.$$set=t=>{"userid"in t&&n(17,f=t.userid),"session"in t&&n(18,m=t.session),"endpoint"in t&&n(19,g=t.endpoint),"currency"in t&&n(0,y=t.currency),"lang"in t&&n(1,b=t.lang),"clientstyling"in t&&n(20,E=t.clientstyling),"clientstylingurl"in t&&n(21,v=t.clientstylingurl)},t.$$.update=()=>{/*lang*/2&t.$$.dirty[0]&&b&&S(),/*clientstylingurl*/2097152&t.$$.dirty[0]&&v&&(()=>{let t=new URL(v),e=document.createElement("style");fetch(t.href).then((t=>t.text())).then((t=>{e.innerHTML=t,a&&setTimeout((()=>{a.appendChild(e)}),1)}))})(),/*clientstyling*/1048576&t.$$.dirty[0]&&E&&(()=>{let t=document.createElement("style");t.innerHTML=E,a.appendChild(t)})()},[y,b,a,u,T,P,l,B,c,h,H,p,r,()=>{n(5,P=!P),n(4,T=!T)},()=>{const t=999999999999999;l>t&&n(6,l=t);const e=l-Math.floor(l)==0;l>0&&e?c.removeAttribute("disabled"):c.setAttribute("disabled","true")},_,L,f,m,g,E,v,()=>_("lugasInformation"),()=>L("default"),function(t){A[t?"unshift":"push"]((()=>{u=t,n(3,u)}))},function(){l=d(this.value),n(6,l)},function(t){A[t?"unshift":"push"]((()=>{c=t,n(8,c)}))},()=>L("custom"),()=>_("termsConditions"),()=>_("privacyPolicy"),()=>_("closePopup"),()=>_("uploadDocuments"),()=>_("closePopup"),()=>_("uploadDocuments"),()=>_("closePopup"),()=>_("closePopup"),function(t){A[t?"unshift":"push"]((()=>{h=t,n(9,h)}))},function(t){A[t?"unshift":"push"]((()=>{a=t,n(2,a)}))}]}class En extends U{constructor(t){super(),this.shadowRoot.innerHTML="<style>:host{font-family:'Roboto', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size:0.8rem}*,*::before,*::after{margin:0;padding:0;list-style:none;outline:none;box-sizing:border-box}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}.player-account-gaming-limits-popup-2{background:var(--emfe-w-color-black, #000000);color:var(--emfe-w-color-white, #000)}.Title{font-weight:800;font-size:18px}button{display:block;font-size:0.75rem;padding:12px 0;border:0;border-radius:2px;cursor:pointer}button.PrimaryButtonStyle{font-size:14px;color:#fff;background:#7ac317}button.SecondaryButtonStyle{border:1px solid #999;color:#666;background:#fff}.ResultIconWrapper{display:flex;flex-direction:column;align-items:center;margin:12px 0}.ResultIconWrapper svg{height:auto;width:60px;margin:12px}.ResultIconWrapper p{color:#666}.Overlay{position:absolute;top:0;left:0;width:100vw;height:100vh;display:flex;justify-content:center;align-items:center}.ModalContainer{position:fixed;top:30vh;width:320px;height:auto;padding:18px 14px;background:#fff;border-radius:4px}.InitialWrapper{display:flex;flex-direction:column;gap:12px}.AdditionalInformation{margin:10px 0;font-size:14px}.TermsConditions{font-size:12px}.ExpandButton{font-size:14px;background-color:#fff;border:0;padding:0;margin-top:-10px;color:#999;display:flex;justify-content:center;align-items:center;cursor:pointer}.ExpandButton svg{width:28px;height:auto;margin-left:-4px}.LeftAlign{text-align:left;font-size:16px}.CenterAlign{text-align:center}.SetLimitSection{display:flex;flex-direction:column;gap:6px}.DepositTextSection{display:flex;justify-content:space-between}.DepositInputSection{height:32px;display:flex;gap:4px}.DepositInput{flex-grow:1;padding:0 6px}.SubmitDepositButton{flex-grow:1;font-size:0.75rem;padding:0}.SubmitDepositButton[disabled]{align-items:center;color:#ccc;cursor:not-allowed;background:#fff;border:#ccc 1px solid}.Hidden{display:none}.Extended{transform:rotate(180deg)}</style>",x(this,{target:this.shadowRoot,props:T(this.attributes),customElement:!0},bn,yn,o,{userid:17,session:18,endpoint:19,currency:0,lang:1,clientstyling:20,clientstylingurl:21},null,[-1,-1]),t&&(t.target&&u(t.target,this,t.anchor),t.props&&(this.$set(t.props),M()))}static get observedAttributes(){return["userid","session","endpoint","currency","lang","clientstyling","clientstylingurl"]}get userid(){return this.$$.ctx[17]}set userid(t){this.$$set({userid:t}),M()}get session(){return this.$$.ctx[18]}set session(t){this.$$set({session:t}),M()}get endpoint(){return this.$$.ctx[19]}set endpoint(t){this.$$set({endpoint:t}),M()}get currency(){return this.$$.ctx[0]}set currency(t){this.$$set({currency:t}),M()}get lang(){return this.$$.ctx[1]}set lang(t){this.$$set({lang:t}),M()}get clientstyling(){return this.$$.ctx[20]}set clientstyling(t){this.$$set({clientstyling:t}),M()}get clientstylingurl(){return this.$$.ctx[21]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),M()}}return!customElements.get("player-account-gaming-limits-popup-2")&&customElements.define("player-account-gaming-limits-popup-2",En),En}));
594
594
  //# sourceMappingURL=player-account-gaming-limits-popup-2.js.map