@everymatrix/player-account-gaming-limits-popup-2 1.17.0 → 1.17.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.
|
@@ -591,5 +591,5 @@ return e[7]?Hn:/*lang*/e[1]?Pn:void 0}let f=p(t),d=f&&f(t);return{c(){n=h("meta"
|
|
|
591
591
|
/*div2_binding*/,t[37](o),
|
|
592
592
|
/*div3_binding*/t[38](i)},p(e,t){f===(f=p(e))&&d?d.p(e,t):(d&&d.d(1),d=f&&f(e),d&&(d.c(),d.m(a,null)))},i:e,o:e,d(e){u(n),e&&u(r),e&&u(i),d&&d.d()
|
|
593
593
|
/*div2_binding*/,t[37](null),
|
|
594
|
-
/*div3_binding*/t[38](null)}}}function Nn(e,t,n){let r;var i,o;i=Tn,o=e=>n(12,r=e),e.$$.on_destroy.push(s(i,o));let a,l,c,u,h,p,{userid:f=""}=t,{session:m=""}=t,{endpoint:d=""}=t,{currency:g=""}=t,{lang:b=""}=t,{translationurl:E=""}=t,{clientstyling:v=""}=t,{clientstylingurl:T=""}=t,B=!0,w=!1,L=!1,P="initial";Object.keys(wn).forEach((e=>{Bn(e,wn[e])}));const A=e=>{switch(window.postMessage({type:e},window.location.href),e){case"closePopup":case"uploadDocuments":h.parentNode.removeChild(h)}},k=e=>{const t=new URL(`/v1/player/${f}/limit/lugas`,d);let r={};n(7,L=!0),r="custom"===e?{amount:c}:{};let i={method:"POST",headers:{"X-SessionID":m,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(r)};fetch(t.href,i).then((e=>e.json())).then((e=>{_(e)})).catch((e=>{console.log(e)})).finally((()=>{n(7,L=!1)}))},_=e=>{if(e.hasOwnProperty("kycNeeded"))switch(e.popup){case 1:n(10,P="KYC"),n(11,p=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(e.operatorDepositLimitAmount));break;case 2:n(10,P="successful");break;case 3:n(10,P="KYC2")}else n(10,P="error")},S=()=>{var e;e=b,en.set(e)};return e.$$set=e=>{"userid"in e&&n(17,f=e.userid),"session"in e&&n(18,m=e.session),"endpoint"in e&&n(19,d=e.endpoint),"currency"in e&&n(0,g=e.currency),"lang"in e&&n(1,b=e.lang),"translationurl"in e&&n(20,E=e.translationurl),"clientstyling"in e&&n(21,v=e.clientstyling),"clientstylingurl"in e&&n(22,T=e.clientstylingurl)},e.$$.update=()=>{/*lang*/2&e.$$.dirty[0]&&b&&S(),/*clientstylingurl, customStylingContainer*/4194308&e.$$.dirty[0]&&T&&a&&(()=>{let e=new URL(T),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{a.appendChild(t)}),1)}))})(),/*clientstyling, customStylingContainer*/2097156&e.$$.dirty[0]&&v&&a&&(()=>{let e=document.createElement("style");e.innerHTML=v,a.appendChild(e)})(),/*translationurl*/1048576&e.$$.dirty[0]&&E&&fetch(E).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{Bn(t,e[t])}))})).catch((e=>{console.log(e)}))},[g,b,a,l,B,w,c,L,u,h,P,p,r,()=>{n(5,w=!w),n(4,B=!B)},()=>{const e=999999999999999;c>e&&n(6,c=e);const t=c-Math.floor(c)==0;c>0&&t?u.removeAttribute("disabled"):u.setAttribute("disabled","true")},A,k,f,m,d,E,v,T,()=>A("lugasInformation"),()=>k("default"),function(e){H[e?"unshift":"push"]((()=>{l=e,n(3,l)}))},function(){c=y(this.value),n(6,c)},function(e){H[e?"unshift":"push"]((()=>{u=e,n(8,u)}))},()=>k("custom"),()=>A("termsConditions"),()=>A("privacyPolicy"),()=>A("closePopup"),()=>A("uploadDocuments"),()=>A("closePopup"),()=>A("uploadDocuments"),()=>A("closePopup"),()=>A("closePopup"),function(e){H[e?"unshift":"push"]((()=>{h=e,n(9,h)}))},function(e){H[e?"unshift":"push"]((()=>{a=e,n(2,a)}))}]}class Mn extends x{constructor(e){super();const t=document.createElement("style");t.textContent=':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:rgb(122, 195, 23)}button.SecondaryButtonStyle{border:1px solid #999;color:#666;background:#fff}.LinkButton{display:inline;padding:0;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-
|
|
594
|
+
/*div3_binding*/t[38](null)}}}function Nn(e,t,n){let r;var i,o;i=Tn,o=e=>n(12,r=e),e.$$.on_destroy.push(s(i,o));let a,l,c,u,h,p,{userid:f=""}=t,{session:m=""}=t,{endpoint:d=""}=t,{currency:g=""}=t,{lang:b=""}=t,{translationurl:E=""}=t,{clientstyling:v=""}=t,{clientstylingurl:T=""}=t,B=!0,w=!1,L=!1,P="initial";Object.keys(wn).forEach((e=>{Bn(e,wn[e])}));const A=e=>{switch(window.postMessage({type:e},window.location.href),e){case"closePopup":case"uploadDocuments":h.parentNode.removeChild(h)}},k=e=>{const t=new URL(`/v1/player/${f}/limit/lugas`,d);let r={};n(7,L=!0),r="custom"===e?{amount:c}:{};let i={method:"POST",headers:{"X-SessionID":m,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(r)};fetch(t.href,i).then((e=>e.json())).then((e=>{_(e)})).catch((e=>{console.log(e)})).finally((()=>{n(7,L=!1)}))},_=e=>{if(e.hasOwnProperty("kycNeeded"))switch(e.popup){case 1:n(10,P="KYC"),n(11,p=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(e.operatorDepositLimitAmount));break;case 2:n(10,P="successful");break;case 3:n(10,P="KYC2")}else n(10,P="error")},S=()=>{var e;e=b,en.set(e)};return e.$$set=e=>{"userid"in e&&n(17,f=e.userid),"session"in e&&n(18,m=e.session),"endpoint"in e&&n(19,d=e.endpoint),"currency"in e&&n(0,g=e.currency),"lang"in e&&n(1,b=e.lang),"translationurl"in e&&n(20,E=e.translationurl),"clientstyling"in e&&n(21,v=e.clientstyling),"clientstylingurl"in e&&n(22,T=e.clientstylingurl)},e.$$.update=()=>{/*lang*/2&e.$$.dirty[0]&&b&&S(),/*clientstylingurl, customStylingContainer*/4194308&e.$$.dirty[0]&&T&&a&&(()=>{let e=new URL(T),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{a.appendChild(t)}),1)}))})(),/*clientstyling, customStylingContainer*/2097156&e.$$.dirty[0]&&v&&a&&(()=>{let e=document.createElement("style");e.innerHTML=v,a.appendChild(e)})(),/*translationurl*/1048576&e.$$.dirty[0]&&E&&fetch(E).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{Bn(t,e[t])}))})).catch((e=>{console.log(e)}))},[g,b,a,l,B,w,c,L,u,h,P,p,r,()=>{n(5,w=!w),n(4,B=!B)},()=>{const e=999999999999999;c>e&&n(6,c=e);const t=c-Math.floor(c)==0;c>0&&t?u.removeAttribute("disabled"):u.setAttribute("disabled","true")},A,k,f,m,d,E,v,T,()=>A("lugasInformation"),()=>k("default"),function(e){H[e?"unshift":"push"]((()=>{l=e,n(3,l)}))},function(){c=y(this.value),n(6,c)},function(e){H[e?"unshift":"push"]((()=>{u=e,n(8,u)}))},()=>k("custom"),()=>A("termsConditions"),()=>A("privacyPolicy"),()=>A("closePopup"),()=>A("uploadDocuments"),()=>A("closePopup"),()=>A("uploadDocuments"),()=>A("closePopup"),()=>A("closePopup"),function(e){H[e?"unshift":"push"]((()=>{h=e,n(9,h)}))},function(e){H[e?"unshift":"push"]((()=>{a=e,n(2,a)}))}]}class Mn extends x{constructor(e){super();const t=document.createElement("style");t.textContent=':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:rgb(122, 195, 23)}button.SecondaryButtonStyle{border:1px solid #999;color:#666;background:#fff}.LinkButton{display:inline;padding:0;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));text-decoration:underline;background-color:rgba(0, 0, 0, 0)}.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;background-color:rgba(0, 0, 0, 0.5);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:var(--emfe-w-color-white, #FFFFFF);border:0;padding:0;margin-top:-10px;color:var(--emfe-w-color-black, #000000);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:var(--emfe-w-color-gray-100, #E6E6E6);cursor:not-allowed;background:var(--emfe-w-color-white, #FFFFFF);border:1px solid var(--emfe-w-color-gray-300, #58586B)}.Hidden{display:none}.Extended{transform:rotate(180deg)}',this.shadowRoot.appendChild(t),U(this,{target:this.shadowRoot,props:B(this.attributes),customElement:!0},Nn,In,o,{userid:17,session:18,endpoint:19,currency:0,lang:1,translationurl:20,clientstyling:21,clientstylingurl:22},null,[-1,-1]),e&&(e.target&&c(e.target,this,e.anchor),e.props&&(this.$set(e.props),M()))}static get observedAttributes(){return["userid","session","endpoint","currency","lang","translationurl","clientstyling","clientstylingurl"]}get userid(){return this.$$.ctx[17]}set userid(e){this.$$set({userid:e}),M()}get session(){return this.$$.ctx[18]}set session(e){this.$$set({session:e}),M()}get endpoint(){return this.$$.ctx[19]}set endpoint(e){this.$$set({endpoint:e}),M()}get currency(){return this.$$.ctx[0]}set currency(e){this.$$set({currency:e}),M()}get lang(){return this.$$.ctx[1]}set lang(e){this.$$set({lang:e}),M()}get translationurl(){return this.$$.ctx[20]}set translationurl(e){this.$$set({translationurl:e}),M()}get clientstyling(){return this.$$.ctx[21]}set clientstyling(e){this.$$set({clientstyling:e}),M()}get clientstylingurl(){return this.$$.ctx[22]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),M()}}return!customElements.get("player-account-gaming-limits-popup-2")&&customElements.define("player-account-gaming-limits-popup-2",Mn),Mn}));
|
|
595
595
|
//# sourceMappingURL=player-account-gaming-limits-popup-2.js.map
|