@everymatrix/player-account-gaming-limits-popup-2 1.7.2 → 1.7.3
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.
|
@@ -590,5 +590,5 @@ return e[7]?pn:/*lang*/e[1]?hn:void 0}let m=p(t),g=m&&m(t);return{c(){n=c("meta"
|
|
|
590
590
|
/*div2_binding*/,t[37](o),
|
|
591
591
|
/*div3_binding*/t[38](r)},p(e,t){m===(m=p(e))&&g?g.p(e,t):(g&&g.d(1),g=m&&m(e),g&&(g.c(),g.m(h,null)))},i:e,o:e,d(e){u(n),e&&u(i),e&&u(r),g&&g.d()
|
|
592
592
|
/*div2_binding*/,t[37](null),
|
|
593
|
-
/*div3_binding*/t[38](null)}}}function En(e,t,n){let i;var r,o;r=an,o=e=>n(12,i=e),e.$$.on_destroy.push(s(r,o));let a,l,u,c,h,p,{userid:f=""}=t,{session:m=""}=t,{endpoint:d=""}=t,{currency:y=""}=t,{lang:b=""}=t,{translationurl:E=""}=t,{clientstyling:v=""}=t,{clientstylingurl:P=""}=t,T=!0,B=!1,w=!1,H="initial";Object.keys(un).forEach((e=>{ln(e,un[e])}));const A=e=>{switch(window.postMessage({type:e}),e){case"closePopup":case"uploadDocuments":h.parentNode.removeChild(h)}},k=e=>{const t=new URL(`/v1/player/${f}/limit/lugas`,d);let i={};n(7,w=!0),i="custom"===e?{amount:u}:{};let r={method:"POST",headers:{"X-SessionID":m,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(i)};fetch(t.href,r).then((e=>e.json())).then((e=>{_(e)})).catch((e=>{console.log(e)})).finally((()=>{n(7,w=!1)}))},_=e=>{if(e.hasOwnProperty("kycNeeded"))switch(e.popup){case 1:n(10,H="KYC"),n(11,p=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(e.operatorDepositLimitAmount));break;case 2:n(10,H="successful");break;case 3:n(10,H="KYC2")}else n(10,H="error")},S=()=>{var e;e=b,Zt.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,y=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,P=e.clientstylingurl)},e.$$.update=()=>{/*lang*/2&e.$$.dirty[0]&&b&&S(),/*clientstylingurl, customStylingContainer*/4194308&e.$$.dirty[0]&&P&&a&&(()=>{let e=new URL(P),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=>{ln(t,e[t])}))})).catch((e=>{console.log(e)}))},[y,b,a,l,T,B,u,w,c,h,H,p,i,()=>{n(5,B=!B),n(4,T=!T)},()=>{const e=999999999999999;u>e&&n(6,u=e);const t=u-Math.floor(u)==0;u>0&&t?c.removeAttribute("disabled"):c.setAttribute("disabled","true")},A,k,f,m,d,E,v,P,()=>A("lugasInformation"),()=>k("default"),function(e){L[e?"unshift":"push"]((()=>{l=e,n(3,l)}))},function(){u=g(this.value),n(6,u)},function(e){L[e?"unshift":"push"]((()=>{c=e,n(8,c)}))},()=>k("custom"),()=>A("termsConditions"),()=>A("privacyPolicy"),()=>A("closePopup"),()=>A("uploadDocuments"),()=>A("closePopup"),()=>A("uploadDocuments"),()=>A("closePopup"),()=>A("closePopup"),function(e){L[e?"unshift":"push"]((()=>{h=e,n(9,h)}))},function(e){L[e?"unshift":"push"]((()=>{a=e,n(2,a)}))}]}class vn extends U{constructor(e){super(),this.shadowRoot.innerHTML=
|
|
593
|
+
/*div3_binding*/t[38](null)}}}function En(e,t,n){let i;var r,o;r=an,o=e=>n(12,i=e),e.$$.on_destroy.push(s(r,o));let a,l,u,c,h,p,{userid:f=""}=t,{session:m=""}=t,{endpoint:d=""}=t,{currency:y=""}=t,{lang:b=""}=t,{translationurl:E=""}=t,{clientstyling:v=""}=t,{clientstylingurl:P=""}=t,T=!0,B=!1,w=!1,H="initial";Object.keys(un).forEach((e=>{ln(e,un[e])}));const A=e=>{switch(window.postMessage({type:e}),e){case"closePopup":case"uploadDocuments":h.parentNode.removeChild(h)}},k=e=>{const t=new URL(`/v1/player/${f}/limit/lugas`,d);let i={};n(7,w=!0),i="custom"===e?{amount:u}:{};let r={method:"POST",headers:{"X-SessionID":m,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(i)};fetch(t.href,r).then((e=>e.json())).then((e=>{_(e)})).catch((e=>{console.log(e)})).finally((()=>{n(7,w=!1)}))},_=e=>{if(e.hasOwnProperty("kycNeeded"))switch(e.popup){case 1:n(10,H="KYC"),n(11,p=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(e.operatorDepositLimitAmount));break;case 2:n(10,H="successful");break;case 3:n(10,H="KYC2")}else n(10,H="error")},S=()=>{var e;e=b,Zt.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,y=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,P=e.clientstylingurl)},e.$$.update=()=>{/*lang*/2&e.$$.dirty[0]&&b&&S(),/*clientstylingurl, customStylingContainer*/4194308&e.$$.dirty[0]&&P&&a&&(()=>{let e=new URL(P),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=>{ln(t,e[t])}))})).catch((e=>{console.log(e)}))},[y,b,a,l,T,B,u,w,c,h,H,p,i,()=>{n(5,B=!B),n(4,T=!T)},()=>{const e=999999999999999;u>e&&n(6,u=e);const t=u-Math.floor(u)==0;u>0&&t?c.removeAttribute("disabled"):c.setAttribute("disabled","true")},A,k,f,m,d,E,v,P,()=>A("lugasInformation"),()=>k("default"),function(e){L[e?"unshift":"push"]((()=>{l=e,n(3,l)}))},function(){u=g(this.value),n(6,u)},function(e){L[e?"unshift":"push"]((()=>{c=e,n(8,c)}))},()=>k("custom"),()=>A("termsConditions"),()=>A("privacyPolicy"),()=>A("closePopup"),()=>A("uploadDocuments"),()=>A("closePopup"),()=>A("uploadDocuments"),()=>A("closePopup"),()=>A("closePopup"),function(e){L[e?"unshift":"push"]((()=>{h=e,n(9,h)}))},function(e){L[e?"unshift":"push"]((()=>{a=e,n(2,a)}))}]}class vn extends U{constructor(e){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}.LinkButton{display:inline;padding:0;color:#3366CC;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:#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>",j(this,{target:this.shadowRoot,props:P(this.attributes),customElement:!0},En,bn,o,{userid:17,session:18,endpoint:19,currency:0,lang:1,translationurl:20,clientstyling:21,clientstylingurl:22},null,[-1,-1]),e&&(e.target&&l(e.target,this,e.anchor),e.props&&(this.$set(e.props),N()))}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}),N()}get session(){return this.$$.ctx[18]}set session(e){this.$$set({session:e}),N()}get endpoint(){return this.$$.ctx[19]}set endpoint(e){this.$$set({endpoint:e}),N()}get currency(){return this.$$.ctx[0]}set currency(e){this.$$set({currency:e}),N()}get lang(){return this.$$.ctx[1]}set lang(e){this.$$set({lang:e}),N()}get translationurl(){return this.$$.ctx[20]}set translationurl(e){this.$$set({translationurl:e}),N()}get clientstyling(){return this.$$.ctx[21]}set clientstyling(e){this.$$set({clientstyling:e}),N()}get clientstylingurl(){return this.$$.ctx[22]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),N()}}return!customElements.get("player-account-gaming-limits-popup-2")&&customElements.define("player-account-gaming-limits-popup-2",vn),vn}));
|
|
594
594
|
//# sourceMappingURL=player-account-gaming-limits-popup-2.js.map
|