@everymatrix/cashier-page 1.49.0 → 1.49.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.
- package/components/{CashierMethodDetails-C1YDBrNk.js → CashierMethodDetails-BSTbYrHT.js} +2 -2
- package/components/{CashierMethodDetails-_tjsOJpf.cjs → CashierMethodDetails-BjsnmtMr.cjs} +2 -2
- package/components/CashierMethodsList-C75jsuOd.cjs +1 -0
- package/components/{CashierMethodsList-pJfb7AMj.js → CashierMethodsList-CmTYla6n.js} +40 -40
- package/components/{CashierPage-JvKYXpWN.cjs → CashierPage-DiyftSnl.cjs} +1 -1
- package/components/{CashierPage-CJQeYpKj.js → CashierPage-aTsZIWLP.js} +5 -5
- package/components/{CashierReceiptPage-BmCDMqj7.cjs → CashierReceiptPage-BLPzX5RM.cjs} +1 -1
- package/components/{CashierReceiptPage-DdTdXSZU.js → CashierReceiptPage-BMbXsPzB.js} +1 -1
- package/components/{CashierSessionExpirationModal-XwzDxzqQ.js → CashierSessionExpirationModal-HOfAhCNe.js} +1 -1
- package/components/{CashierSessionExpirationModal-Q_y-Rhkd.cjs → CashierSessionExpirationModal-q87nskSB.cjs} +1 -1
- package/components/{CashierVerifications-BwPmC72g.cjs → CashierVerifications-BVBxmsiH.cjs} +1 -1
- package/components/{CashierVerifications-Bu_74-c9.js → CashierVerifications-DE4G3q6t.js} +1 -1
- package/es2015/cashier-page.cjs +1 -1
- package/es2015/cashier-page.js +1 -1
- package/package.json +1 -1
- package/components/CashierMethodsList-CzOyema5.cjs +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var we=Object.defineProperty,_e=Object.defineProperties;var ye=Object.getOwnPropertyDescriptors;var K=Object.getOwnPropertySymbols;var be=Object.prototype.hasOwnProperty,Le=Object.prototype.propertyIsEnumerable;var Q=(s,t,n)=>t in s?we(s,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):s[t]=n,G=(s,t)=>{for(var n in t||(t={}))be.call(t,n)&&Q(s,n,t[n]);if(K)for(var n of K(t))Le.call(t,n)&&Q(s,n,t[n]);return s},J=(s,t)=>_e(s,ye(t));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CashierConfirmModal-KmRU3Mgr.cjs"),B=require("./CashierError-B6IaVYAb.cjs"),V=require("./CashierMethodDetails-BjsnmtMr.cjs");function $(s,t){B.addMessages(s,t)}function Me(s){B.init({fallbackLocale:"en"}),B.$locale.set(s)}const ee={en:{generalMin:"Min",generalMax:"Max",showAll:"SHOW ALL",showLess:"SHOW LESS"},uk:{generalMin:"Мін",generalMax:"Макс"},hr:{generalMin:"Minimalno",generalMax:"Maksimalno",showAll:"Prikaži sve",showLess:"Prikaži manje"},tr:{generalMin:"Min",generalMax:"Maks",showAll:"HEPSİNİ GÖSTER",showLess:"DAHA AZ GÖSTER"}};function ve(s){e.append_styles(s,"svelte-yskyrk","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.CashierMethodList{display:flex;flex-direction:column;background:var(--emw--color-background, #fff);box-shadow:0 0 4px var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1));width:100%;border-radius:var(--mmw--border-radius-medium-plus, 6px);container-name:method-list;container-type:inline-size}.SelectorWrapper{display:flex;flex-direction:row;align-items:center;justify-content:left;cursor:pointer;position:relative;height:var(--mmw-method-height, 80px);box-sizing:border-box;border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);padding:0 var(--emw--spacing-small, 12px)}.SelectorWrapper:first-child{border-radius:var(--mmw--border-radius-medium-plus, 6px) var(--mmw--border-radius-medium-plus, 6px) 0 0}.SelectorWrapper:last-child{border-radius:0 0 var(--mmw--border-radius-medium-plus, 6px) var(--mmw--border-radius-medium-plus, 6px)}.SelectorWrapper.checked{background:var(--emw--color-background-secondary, #F9F8F8)}.SelectorWrapper:not(.checked):hover{background:linear-gradient(0, var(--emw--color-background-secondary, #F9F8F8) 0%, var(--emw--color-background, #fff) 100%)}.MethodLogo{display:flex;justify-content:center;align-items:center;margin-right:var(--mmw--spacing-small, 14px);width:var(--mmw-logo-width, 110px);min-height:var(--mmw-logo-height, 64px);background:var(--emw--color-background, #FFF);border:1px solid var(--mmw--color-grey-105, #E8E9EB);border-radius:var(--mmw--border-radius-medium-plus, 6px);overflow:hidden;max-height:calc(100% - var(--emw--spacing-small, 12px) - var(--emw--spacing-small, 12px))}.MethodLogo img{width:100%;height:100%}.MethodTitle{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-medium, 16px);word-break:break-all}.MethodLimits{display:flex;flex-direction:column;align-items:flex-end;margin-left:auto}.Limits{max-width:100%;white-space:nowrap;font-size:var(--emw--font-size-small, 14px);line-height:var(--emw--line-height-xl, 24px);color:var(--mmw--color-grey-290, #666);font-weight:var(--emw--font-weight-normal, 400);font-style:normal}.ShowAllButton{cursor:pointer;color:var(--mmw--color-grey-290, #666);text-align:center;font-size:var(--emw--font-size-x-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);font-family:inherit;background:var(--emw--color-gray-50, #F7F8FA);line-height:normal;border:1px solid var(--mmw--color-grey-105, #E8E9EB);border-radius:var(--emw--border-radius-medium, 4px);margin:var(--emw--spacing-small, 12px) auto;height:36px;display:flex;align-items:center;justify-content:center;width:80%}.ShowAllButton:hover{background:var(--emw--color-background, #fff)}@container method-list (width < 450px){.MethodLogo{min-width:var(--mmw-logo-small-width, 90px);min-height:var(--mmw-logo--small-height, 50px);overflow:hidden}.CashierMethodList .MethodTitle{display:inline-block;flex-grow:1;font-size:var(--emw--font-size-medium, 16px);line-height:120%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.CashierMethodList .MethodLimits .Limits{flex-shrink:0;font-size:var(--emw--font-size-x-small, 12px)}}@container method-list (max-width: 300px){.Limits{display:none}}")}function te(s,t,n){const c=s.slice();return c[47]=t[n],c[49]=n,c}function se(s){let t;return{c(){t=e.element("cashier-spinner"),e.set_custom_element_data(t,"clientstylingurl",s[4]),e.set_custom_element_data(t,"clientstyling",s[3])},m(n,c){e.insert(n,t,c)},p(n,c){c[0]&16&&e.set_custom_element_data(t,"clientstylingurl",n[4]),c[0]&8&&e.set_custom_element_data(t,"clientstyling",n[3])},d(n){n&&e.detach(t)}}}function ne(s){let t,n,c,r=e.ensure_array_like(s[8]),i=[];for(let o=0;o<r.length;o+=1)i[o]=le(te(s,r,o));let a=s[7]&&ie(s);return{c(){t=e.element("div"),n=e.element("div");for(let o=0;o<i.length;o+=1)i[o].c();c=e.space(),a&&a.c(),e.attr(n,"class","CashierMethodList"),e.attr(t,"class","CashierMethodListWidget")},m(o,m){e.insert(o,t,m),e.append(t,n);for(let d=0;d<i.length;d+=1)i[d]&&i[d].m(n,null);e.append(t,c),a&&a.m(t,null),s[26](t)},p(o,m){if(m[0]&57664){r=e.ensure_array_like(o[8]);let d;for(d=0;d<r.length;d+=1){const L=te(o,r,d);i[d]?i[d].p(L,m):(i[d]=le(L),i[d].c(),i[d].m(n,null))}for(;d<i.length;d+=1)i[d].d(1);i.length=r.length}o[7]?a?a.p(o,m):(a=ie(o),a.c(),a.m(t,null)):a&&(a.d(1),a=null)},d(o){o&&e.detach(t),e.destroy_each(i,o),a&&a.d(),s[26](null)}}}function le(s){let t,n,c,r,i,a,o,m,d=(s[47].Label||s[47].Name)+"",L,M,y,g,k=s[13]("generalMin")+"",C,p,w=s[14].format(s[47].DisplayCurrency.MinAmountLimit)+"",S,T,_=s[47].DisplayCurrency.Name+"",N,H,b,A=s[13]("generalMax")+"",P,j,E=s[14].format(s[47].DisplayCurrency.MaxAmountLimit)+"",O,R,D=s[47].DisplayCurrency.Name+"",z,W,F,q;function I(){return s[24](s[47])}return{c(){t=e.element("div"),n=e.element("div"),c=e.element("img"),a=e.space(),o=e.element("div"),m=e.element("span"),L=e.text(d),M=e.space(),y=e.element("div"),g=e.element("span"),C=e.text(k),p=e.space(),S=e.text(w),T=e.space(),N=e.text(_),H=e.space(),b=e.element("span"),P=e.text(A),j=e.space(),O=e.text(E),R=e.space(),z=e.text(D),W=e.space(),e.src_url_equal(c.src,r=s[47].LogoUrl)||e.attr(c,"src",r),e.attr(c,"alt",i=s[47].Label),e.attr(n,"class","MethodLogo"),e.attr(o,"class","MethodTitle"),e.attr(g,"class","Limits"),e.attr(b,"class","Limits"),e.attr(y,"class","MethodLimits"),e.attr(t,"class","SelectorWrapper"),e.toggle_class(t,"checked",s[6]===s[47].Name)},m(x,f){e.insert(x,t,f),e.append(t,n),e.append(n,c),e.append(t,a),e.append(t,o),e.append(o,m),e.append(m,L),e.append(t,M),e.append(t,y),e.append(y,g),e.append(g,C),e.append(g,p),e.append(g,S),e.append(g,T),e.append(g,N),e.append(y,H),e.append(y,b),e.append(b,P),e.append(b,j),e.append(b,O),e.append(b,R),e.append(b,z),e.append(t,W),F||(q=[e.listen(t,"click",I),e.listen(t,"keyup",Se)],F=!0)},p(x,f){s=x,f[0]&256&&!e.src_url_equal(c.src,r=s[47].LogoUrl)&&e.attr(c,"src",r),f[0]&256&&i!==(i=s[47].Label)&&e.attr(c,"alt",i),f[0]&256&&d!==(d=(s[47].Label||s[47].Name)+"")&&e.set_data(L,d),f[0]&8192&&k!==(k=s[13]("generalMin")+"")&&e.set_data(C,k),f[0]&256&&w!==(w=s[14].format(s[47].DisplayCurrency.MinAmountLimit)+"")&&e.set_data(S,w),f[0]&256&&_!==(_=s[47].DisplayCurrency.Name+"")&&e.set_data(N,_),f[0]&8192&&A!==(A=s[13]("generalMax")+"")&&e.set_data(P,A),f[0]&256&&E!==(E=s[14].format(s[47].DisplayCurrency.MaxAmountLimit)+"")&&e.set_data(O,E),f[0]&256&&D!==(D=s[47].DisplayCurrency.Name+"")&&e.set_data(z,D),f[0]&320&&e.toggle_class(t,"checked",s[6]===s[47].Name)},d(x){x&&e.detach(t),F=!1,e.run_all(q)}}}function ie(s){let t,n,c,r;return{c(){t=e.element("div"),n=e.text(s[7]),e.attr(t,"class","ShowAllButton")},m(i,a){e.insert(i,t,a),e.append(t,n),c||(r=e.listen(t,"click",s[25]),c=!0)},p(i,a){a[0]&128&&e.set_data(n,i[7])},d(i){i&&e.detach(t),c=!1,r()}}}function oe(s){let t,n,c;return{c(){t=e.element("cashier-error"),n=e.element("span"),c=e.text(s[10]),e.attr(n,"slot","text"),e.set_custom_element_data(t,"lang",s[0]),e.set_custom_element_data(t,"assetsurl",s[1]),e.set_custom_element_data(t,"translationurl",s[2]),e.set_custom_element_data(t,"clientstylingurl",s[4]),e.set_custom_element_data(t,"clientstyling",s[3]),e.set_custom_element_data(t,"hidebuttons","true")},m(r,i){e.insert(r,t,i),e.append(t,n),e.append(n,c)},p(r,i){i[0]&1024&&e.set_data(c,r[10]),i[0]&1&&e.set_custom_element_data(t,"lang",r[0]),i[0]&2&&e.set_custom_element_data(t,"assetsurl",r[1]),i[0]&4&&e.set_custom_element_data(t,"translationurl",r[2]),i[0]&16&&e.set_custom_element_data(t,"clientstylingurl",r[4]),i[0]&8&&e.set_custom_element_data(t,"clientstyling",r[3])},d(r){r&&e.detach(t)}}}function ke(s){let t,n,c,r=s[12]&&se(s),i=(s[9]||s[11])&&ne(s),a=s[10]&&oe(s);return{c(){r&&r.c(),t=e.space(),i&&i.c(),n=e.space(),a&&a.c(),c=e.empty()},m(o,m){r&&r.m(o,m),e.insert(o,t,m),i&&i.m(o,m),e.insert(o,n,m),a&&a.m(o,m),e.insert(o,c,m)},p(o,m){o[12]?r?r.p(o,m):(r=se(o),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null),o[9]||o[11]?i?i.p(o,m):(i=ne(o),i.c(),i.m(n.parentNode,n)):i&&(i.d(1),i=null),o[10]?a?a.p(o,m):(a=oe(o),a.c(),a.m(c.parentNode,c)):a&&(a.d(1),a=null)},i:e.noop,o:e.noop,d(o){o&&(e.detach(t),e.detach(n),e.detach(c)),r&&r.d(o),i&&i.d(o),a&&a.d(o)}}}const Se=()=>{};function Ce(s,t,n){let c;e.component_subscribe(s,B.$format,l=>n(13,c=l)),V.dayjs.extend(V.utc);let{lang:r="en"}=t,{local:i="en-US"}=t,{endpoint:a}=t,{session:o}=t,{customerid:m}=t,{assetsurl:d}=t,{currency:L}=t,{numberofmethodsshown:M}=t,{translationurl:y=""}=t,{clientstyling:g=""}=t,{clientstylingurl:k=""}=t,{ismobileview:C}=t,p=[],w,S,T="",_=[],N=!0,H=new Intl.NumberFormat(i,{minimumFractionDigits:2}),b="",A,P=!0,j=!1;var E;(function(l){l.PlayerSessionIsNotValid="PlayerSessionIsNotValid",l.Success="Success",l.JwtTokenError="JwtTokenError"})(E||(E={})),e.createEventDispatcher();const O=()=>{let l=y;if(l)return fetch(l).then(u=>u.json()).then(u=>{Object.keys(u).forEach(v=>{$(v,u[v])})}).catch(u=>{console.log(u)})};Object.keys(ee).forEach(l=>{$(l,ee[l])});const R=()=>{Me(r)},D=()=>{n(12,j=!0);const l=new URL(`${a}/v1/player/${m}/payment/GetPaymentMetadata`),u=new Headers;u.append("accept","application/json"),u.append("Content-Type","application/json"),u.append("X-Client-Request-Timestamp",V.dayjs.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));const v={method:"POST",headers:u,body:JSON.stringify({XPaymentSessionToken:o,Currency:L,Tags:{UserAgent:window.navigator.userAgent}})};fetch(l,v).then(h=>h.json()).then(h=>{var U;if(h.error){n(10,b=h.error);return}if(h.ResponseCode!==E.Success){A=h.ResponseCode,q();return}p=(U=h.PaymentMethods)!=null&&U.Ordering?z(h):W(h),n(7,T=M&&+M>0&&p.length>+M?c("showAll"):""),n(8,_=T?p.slice(0,+M):p),window.postMessage({type:"StartSessionCountdown",paymentMethodName:p[0].Name,xPaymentSessionToken:h.XPaymentSessionToken},window.location.href)}).finally(()=>n(12,j=!1))},z=l=>{const u=[];return l.PaymentMethods.Ordering.DefaultPaymentMethodsOrder.forEach(v=>{const h=l.PaymentMethods.PaymentMethods.find(U=>U.Name===v);if(h){const U=(h==null?void 0:h.Logos.find(Y=>Y.LogoType==="Desktop"))||{},pe=(h==null?void 0:h.Logos.find(Y=>Y.LogoType==="Mobile"))||{},Z=P?U:pe;u.push(J(G({},h),{LogoUrl:Z.LogoUrl?`https:${Z.LogoUrl}`:""}))}}),u},W=l=>l.PaymentMethods.PaymentMethods.map(u=>J(G({},u),{LogoUrl:u.Logos&&u.Logos.length&&u.Logos[0].LogoUrl?`https:${u.Logos[0].LogoUrl}`:""})),F=l=>{n(6,S=l.Name),window.postMessage({type:"SelectPayMeth",details:l},window.location.href),dispatchEvent(new CustomEvent("selectPayMeth",{detail:l,bubbles:!0,cancelable:!0,composed:!0}))},q=()=>{window.postMessage({type:"ErrorResponseCode",errorResponseCode:A},window.location.href)},I=()=>{n(11,P=C==="false")},x=()=>{_==p?ae():f()},f=()=>{n(8,_=p),n(7,T=c("showLess"))},ae=()=>{n(8,_=p.slice(0,+M)),S&&!_.find(l=>l.Name===S)&&_.splice(0,0,p.find(l=>l.Name===S)),n(7,T=c("showAll"))},ce=()=>{n(9,N=!0)},me=l=>{n(9,N=!l.hideMethodsList)},de=()=>{let l=document.createElement("style");l.innerHTML=g,w.appendChild(l)},ue=()=>{let l=new URL(k),u=document.createElement("style");fetch(l.href).then(v=>v.text()).then(v=>{u.innerHTML=v,setTimeout(()=>{w.appendChild(u)},1),setTimeout(()=>{},500)})};e.onMount(()=>(window.addEventListener("message",X,!1),()=>{window.removeEventListener("message",X,!1)}));const X=l=>{switch(l.data.type){case"BackToMethodList":ce();break;case"HideMethodsList":me(l.data.details);break}},he=l=>F(l),fe=()=>x();function ge(l){e.binding_callbacks[l?"unshift":"push"](()=>{w=l,n(5,w)})}return s.$$set=l=>{"lang"in l&&n(0,r=l.lang),"local"in l&&n(17,i=l.local),"endpoint"in l&&n(18,a=l.endpoint),"session"in l&&n(19,o=l.session),"customerid"in l&&n(20,m=l.customerid),"assetsurl"in l&&n(1,d=l.assetsurl),"currency"in l&&n(21,L=l.currency),"numberofmethodsshown"in l&&n(22,M=l.numberofmethodsshown),"translationurl"in l&&n(2,y=l.translationurl),"clientstyling"in l&&n(3,g=l.clientstyling),"clientstylingurl"in l&&n(4,k=l.clientstylingurl),"ismobileview"in l&&n(23,C=l.ismobileview)},s.$$.update=()=>{s.$$.dirty[0]&1835008&&a&&o&&m&&D(),s.$$.dirty[0]&1&&r&&R(),s.$$.dirty[0]&40&&g&&w&&de(),s.$$.dirty[0]&48&&k&&w&&ue(),s.$$.dirty[0]&8388608&&C&&I(),s.$$.dirty[0]&5&&r&&y&&O()},[r,d,y,g,k,w,S,T,_,N,b,P,j,c,H,F,x,i,a,o,m,L,M,C,he,fe,ge]}class re extends e.SvelteComponent{constructor(t){super(),e.init(this,t,Ce,ke,e.safe_not_equal,{lang:0,local:17,endpoint:18,session:19,customerid:20,assetsurl:1,currency:21,numberofmethodsshown:22,translationurl:2,clientstyling:3,clientstylingurl:4,ismobileview:23},ve,[-1,-1])}get lang(){return this.$$.ctx[0]}set lang(t){this.$$set({lang:t}),e.flush()}get local(){return this.$$.ctx[17]}set local(t){this.$$set({local:t}),e.flush()}get endpoint(){return this.$$.ctx[18]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get session(){return this.$$.ctx[19]}set session(t){this.$$set({session:t}),e.flush()}get customerid(){return this.$$.ctx[20]}set customerid(t){this.$$set({customerid:t}),e.flush()}get assetsurl(){return this.$$.ctx[1]}set assetsurl(t){this.$$set({assetsurl:t}),e.flush()}get currency(){return this.$$.ctx[21]}set currency(t){this.$$set({currency:t}),e.flush()}get numberofmethodsshown(){return this.$$.ctx[22]}set numberofmethodsshown(t){this.$$set({numberofmethodsshown:t}),e.flush()}get translationurl(){return this.$$.ctx[2]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get clientstyling(){return this.$$.ctx[3]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[4]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get ismobileview(){return this.$$.ctx[23]}set ismobileview(t){this.$$set({ismobileview:t}),e.flush()}}e.create_custom_element(re,{lang:{},local:{},endpoint:{},session:{},customerid:{},assetsurl:{},currency:{},numberofmethodsshown:{},translationurl:{},clientstyling:{},clientstylingurl:{},ismobileview:{}},[],[],!0);exports.default=re;
|
|
@@ -10,9 +10,9 @@ var oe = (t, e, s) => e in t ? Ae(t, e, { enumerable: !0, configurable: !0, writ
|
|
|
10
10
|
De.call(e, s) && oe(t, s, e[s]);
|
|
11
11
|
return t;
|
|
12
12
|
}, te = (t, e) => Ne(t, Pe(e));
|
|
13
|
-
import { S as Fe, b as Ue, f as
|
|
13
|
+
import { S as Fe, b as Ue, f as v, c as je, a as ze, d as Oe, h as S, x as He, k as z, n as re, v as O, w as Re, Q as We, G as Be, g as p, E as f, K as ae, j as w, l as c, M as Ie, y as P, D as ce, I as me, A as se, z as x, r as qe, C as Ge } from "./CashierConfirmModal-Bho8FqJK.js";
|
|
14
14
|
import { a as Ye, i as Je, $ as Ve, b as Xe } from "./CashierError-B6Kgc33u.js";
|
|
15
|
-
import { d as ue, u as Ke } from "./CashierMethodDetails-
|
|
15
|
+
import { d as ue, u as Ke } from "./CashierMethodDetails-BSTbYrHT.js";
|
|
16
16
|
function de(t, e) {
|
|
17
17
|
Ye(t, e);
|
|
18
18
|
}
|
|
@@ -46,7 +46,7 @@ const he = {
|
|
|
46
46
|
}
|
|
47
47
|
};
|
|
48
48
|
function Ze(t) {
|
|
49
|
-
Oe(t, "svelte-
|
|
49
|
+
Oe(t, "svelte-yskyrk", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.CashierMethodList{display:flex;flex-direction:column;background:var(--emw--color-background, #fff);box-shadow:0 0 4px var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1));width:100%;border-radius:var(--mmw--border-radius-medium-plus, 6px);container-name:method-list;container-type:inline-size}.SelectorWrapper{display:flex;flex-direction:row;align-items:center;justify-content:left;cursor:pointer;position:relative;height:var(--mmw-method-height, 80px);box-sizing:border-box;border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);padding:0 var(--emw--spacing-small, 12px)}.SelectorWrapper:first-child{border-radius:var(--mmw--border-radius-medium-plus, 6px) var(--mmw--border-radius-medium-plus, 6px) 0 0}.SelectorWrapper:last-child{border-radius:0 0 var(--mmw--border-radius-medium-plus, 6px) var(--mmw--border-radius-medium-plus, 6px)}.SelectorWrapper.checked{background:var(--emw--color-background-secondary, #F9F8F8)}.SelectorWrapper:not(.checked):hover{background:linear-gradient(0, var(--emw--color-background-secondary, #F9F8F8) 0%, var(--emw--color-background, #fff) 100%)}.MethodLogo{display:flex;justify-content:center;align-items:center;margin-right:var(--mmw--spacing-small, 14px);width:var(--mmw-logo-width, 110px);min-height:var(--mmw-logo-height, 64px);background:var(--emw--color-background, #FFF);border:1px solid var(--mmw--color-grey-105, #E8E9EB);border-radius:var(--mmw--border-radius-medium-plus, 6px);overflow:hidden;max-height:calc(100% - var(--emw--spacing-small, 12px) - var(--emw--spacing-small, 12px))}.MethodLogo img{width:100%;height:100%}.MethodTitle{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-medium, 16px);word-break:break-all}.MethodLimits{display:flex;flex-direction:column;align-items:flex-end;margin-left:auto}.Limits{max-width:100%;white-space:nowrap;font-size:var(--emw--font-size-small, 14px);line-height:var(--emw--line-height-xl, 24px);color:var(--mmw--color-grey-290, #666);font-weight:var(--emw--font-weight-normal, 400);font-style:normal}.ShowAllButton{cursor:pointer;color:var(--mmw--color-grey-290, #666);text-align:center;font-size:var(--emw--font-size-x-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);font-family:inherit;background:var(--emw--color-gray-50, #F7F8FA);line-height:normal;border:1px solid var(--mmw--color-grey-105, #E8E9EB);border-radius:var(--emw--border-radius-medium, 4px);margin:var(--emw--spacing-small, 12px) auto;height:36px;display:flex;align-items:center;justify-content:center;width:80%}.ShowAllButton:hover{background:var(--emw--color-background, #fff)}@container method-list (width < 450px){.MethodLogo{min-width:var(--mmw-logo-small-width, 90px);min-height:var(--mmw-logo--small-height, 50px);overflow:hidden}.CashierMethodList .MethodTitle{display:inline-block;flex-grow:1;font-size:var(--emw--font-size-medium, 16px);line-height:120%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.CashierMethodList .MethodLimits .Limits{flex-shrink:0;font-size:var(--emw--font-size-x-small, 12px)}}@container method-list (max-width: 300px){.Limits{display:none}}");
|
|
50
50
|
}
|
|
51
51
|
function fe(t, e, s) {
|
|
52
52
|
const a = t.slice();
|
|
@@ -135,7 +135,7 @@ function we(t) {
|
|
|
135
135
|
l[7] ? r ? r.p(l, m) : (r = ye(l), r.c(), r.m(e, null)) : r && (r.d(1), r = null);
|
|
136
136
|
},
|
|
137
137
|
d(l) {
|
|
138
|
-
l && O(e),
|
|
138
|
+
l && O(e), Ie(i, l), r && r.d(), t[26](null);
|
|
139
139
|
}
|
|
140
140
|
};
|
|
141
141
|
}
|
|
@@ -144,7 +144,7 @@ function pe(t) {
|
|
|
144
144
|
/*payMeth*/
|
|
145
145
|
(t[47].Label || /*payMeth*/
|
|
146
146
|
t[47].Name) + ""
|
|
147
|
-
), C, E,
|
|
147
|
+
), C, E, _, y, A = (
|
|
148
148
|
/*$_*/
|
|
149
149
|
t[13]("generalMin") + ""
|
|
150
150
|
), D, b, L = (
|
|
@@ -165,10 +165,10 @@ function pe(t) {
|
|
|
165
165
|
/*payMeth*/
|
|
166
166
|
t[47].DisplayCurrency.MaxAmountLimit
|
|
167
167
|
) + ""
|
|
168
|
-
), Y, X,
|
|
168
|
+
), Y, X, I = (
|
|
169
169
|
/*payMeth*/
|
|
170
170
|
t[47].DisplayCurrency.Name + ""
|
|
171
|
-
), J, K,
|
|
171
|
+
), J, K, q, Q;
|
|
172
172
|
function Z() {
|
|
173
173
|
return (
|
|
174
174
|
/*click_handler*/
|
|
@@ -180,9 +180,9 @@ function pe(t) {
|
|
|
180
180
|
}
|
|
181
181
|
return {
|
|
182
182
|
c() {
|
|
183
|
-
e = p("div"), s = p("div"), a = p("img"), r = S(), l = p("div"), m = p("span"), C = P(u), E = S(),
|
|
183
|
+
e = p("div"), s = p("div"), a = p("img"), r = S(), l = p("div"), m = p("span"), C = P(u), E = S(), _ = p("div"), y = p("span"), D = P(A), b = S(), N = P(L), F = S(), H = P(M), V = S(), k = p("span"), W = P(R), B = S(), Y = P(U), X = S(), J = P(I), K = S(), ce(a.src, o = /*payMeth*/
|
|
184
184
|
t[47].LogoUrl) || w(a, "src", o), w(a, "alt", i = /*payMeth*/
|
|
185
|
-
t[47].Label), w(s, "class", "MethodLogo"), w(l, "class", "MethodTitle"), w(y, "class", "Limits"), w(k, "class", "Limits"), w(
|
|
185
|
+
t[47].Label), w(s, "class", "MethodLogo"), w(l, "class", "MethodTitle"), w(y, "class", "Limits"), w(k, "class", "Limits"), w(_, "class", "MethodLimits"), w(e, "class", "SelectorWrapper"), me(
|
|
186
186
|
e,
|
|
187
187
|
"checked",
|
|
188
188
|
/*selectedPaymentMethod*/
|
|
@@ -191,10 +191,10 @@ function pe(t) {
|
|
|
191
191
|
);
|
|
192
192
|
},
|
|
193
193
|
m(j, g) {
|
|
194
|
-
z(j, e, g), c(e, s), c(s, a), c(e, r), c(e, l), c(l, m), c(m, C), c(e, E), c(e,
|
|
194
|
+
z(j, e, g), c(e, s), c(s, a), c(e, r), c(e, l), c(l, m), c(m, C), c(e, E), c(e, _), c(_, y), c(y, D), c(y, b), c(y, N), c(y, F), c(y, H), c(_, V), c(_, k), c(k, W), c(k, B), c(k, Y), c(k, X), c(k, J), c(e, K), q || (Q = [
|
|
195
195
|
se(e, "click", Z),
|
|
196
196
|
se(e, "keyup", et)
|
|
197
|
-
],
|
|
197
|
+
], q = !0);
|
|
198
198
|
},
|
|
199
199
|
p(j, g) {
|
|
200
200
|
t = j, g[0] & /*paymentMethodsToShow*/
|
|
@@ -221,8 +221,8 @@ function pe(t) {
|
|
|
221
221
|
/*payMeth*/
|
|
222
222
|
t[47].DisplayCurrency.MaxAmountLimit
|
|
223
223
|
) + "") && x(Y, U), g[0] & /*paymentMethodsToShow*/
|
|
224
|
-
256 &&
|
|
225
|
-
t[47].DisplayCurrency.Name + "") && x(J,
|
|
224
|
+
256 && I !== (I = /*payMeth*/
|
|
225
|
+
t[47].DisplayCurrency.Name + "") && x(J, I), g[0] & /*selectedPaymentMethod, paymentMethodsToShow*/
|
|
226
226
|
320 && me(
|
|
227
227
|
e,
|
|
228
228
|
"checked",
|
|
@@ -232,7 +232,7 @@ function pe(t) {
|
|
|
232
232
|
);
|
|
233
233
|
},
|
|
234
234
|
d(j) {
|
|
235
|
-
j && O(e),
|
|
235
|
+
j && O(e), q = !1, qe(Q);
|
|
236
236
|
}
|
|
237
237
|
};
|
|
238
238
|
}
|
|
@@ -384,13 +384,13 @@ const et = () => {
|
|
|
384
384
|
function tt(t, e, s) {
|
|
385
385
|
let a;
|
|
386
386
|
Re(t, Xe, (n) => s(13, a = n)), ue.extend(Ke);
|
|
387
|
-
let { lang: o = "en" } = e, { local: i = "en-US" } = e, { endpoint: r } = e, { session: l } = e, { customerid: m } = e, { assetsurl: u } = e, { currency: C } = e, { numberofmethodsshown: E } = e, { translationurl:
|
|
387
|
+
let { lang: o = "en" } = e, { local: i = "en-US" } = e, { endpoint: r } = e, { session: l } = e, { customerid: m } = e, { assetsurl: u } = e, { currency: C } = e, { numberofmethodsshown: E } = e, { translationurl: _ = "" } = e, { clientstyling: y = "" } = e, { clientstylingurl: A = "" } = e, { ismobileview: D } = e, b = [], L, N, F = "", M = [], H = !0, V = new Intl.NumberFormat(i, { minimumFractionDigits: 2 }), k = "", R, W = !0, B = !1;
|
|
388
388
|
var U;
|
|
389
389
|
(function(n) {
|
|
390
390
|
n.PlayerSessionIsNotValid = "PlayerSessionIsNotValid", n.Success = "Success", n.JwtTokenError = "JwtTokenError";
|
|
391
391
|
})(U || (U = {})), We();
|
|
392
392
|
const Y = () => {
|
|
393
|
-
let n =
|
|
393
|
+
let n = _;
|
|
394
394
|
if (n)
|
|
395
395
|
return fetch(n).then((d) => d.json()).then((d) => {
|
|
396
396
|
Object.keys(d).forEach((T) => {
|
|
@@ -405,7 +405,7 @@ function tt(t, e, s) {
|
|
|
405
405
|
});
|
|
406
406
|
const X = () => {
|
|
407
407
|
Qe(o);
|
|
408
|
-
},
|
|
408
|
+
}, I = () => {
|
|
409
409
|
s(12, B = !0);
|
|
410
410
|
const n = new URL(`${r}/v1/player/${m}/payment/GetPaymentMetadata`), d = new Headers();
|
|
411
411
|
d.append("accept", "application/json"), d.append("Content-Type", "application/json"), d.append("X-Client-Request-Timestamp", ue.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));
|
|
@@ -450,7 +450,7 @@ function tt(t, e, s) {
|
|
|
450
450
|
}), d;
|
|
451
451
|
}, K = (n) => n.PaymentMethods.PaymentMethods.map((d) => te(ee({}, d), {
|
|
452
452
|
LogoUrl: d.Logos && d.Logos.length && d.Logos[0].LogoUrl ? `https:${d.Logos[0].LogoUrl}` : ""
|
|
453
|
-
})),
|
|
453
|
+
})), q = (n) => {
|
|
454
454
|
s(6, N = n.Name), window.postMessage({ type: "SelectPayMeth", details: n }, window.location.href), dispatchEvent(new CustomEvent(
|
|
455
455
|
"selectPayMeth",
|
|
456
456
|
{
|
|
@@ -478,9 +478,9 @@ function tt(t, e, s) {
|
|
|
478
478
|
s(8, M = b.slice(0, +E)), N && !M.find((n) => n.Name === N) && M.splice(0, 0, b.find((n) => n.Name === N)), s(7, F = a("showAll"));
|
|
479
479
|
}, Me = () => {
|
|
480
480
|
s(9, H = !0);
|
|
481
|
-
},
|
|
481
|
+
}, ve = (n) => {
|
|
482
482
|
s(9, H = !n.hideMethodsList);
|
|
483
|
-
},
|
|
483
|
+
}, _e = () => {
|
|
484
484
|
let n = document.createElement("style");
|
|
485
485
|
n.innerHTML = y, L.appendChild(n);
|
|
486
486
|
}, ke = () => {
|
|
@@ -507,29 +507,29 @@ function tt(t, e, s) {
|
|
|
507
507
|
Me();
|
|
508
508
|
break;
|
|
509
509
|
case "HideMethodsList":
|
|
510
|
-
|
|
510
|
+
ve(n.data.details);
|
|
511
511
|
break;
|
|
512
512
|
}
|
|
513
|
-
}, Se = (n) =>
|
|
513
|
+
}, Se = (n) => q(n), Ce = () => j();
|
|
514
514
|
function Ee(n) {
|
|
515
515
|
Ge[n ? "unshift" : "push"](() => {
|
|
516
516
|
L = n, s(5, L);
|
|
517
517
|
});
|
|
518
518
|
}
|
|
519
519
|
return t.$$set = (n) => {
|
|
520
|
-
"lang" in n && s(0, o = n.lang), "local" in n && s(17, i = n.local), "endpoint" in n && s(18, r = n.endpoint), "session" in n && s(19, l = n.session), "customerid" in n && s(20, m = n.customerid), "assetsurl" in n && s(1, u = n.assetsurl), "currency" in n && s(21, C = n.currency), "numberofmethodsshown" in n && s(22, E = n.numberofmethodsshown), "translationurl" in n && s(2,
|
|
520
|
+
"lang" in n && s(0, o = n.lang), "local" in n && s(17, i = n.local), "endpoint" in n && s(18, r = n.endpoint), "session" in n && s(19, l = n.session), "customerid" in n && s(20, m = n.customerid), "assetsurl" in n && s(1, u = n.assetsurl), "currency" in n && s(21, C = n.currency), "numberofmethodsshown" in n && s(22, E = n.numberofmethodsshown), "translationurl" in n && s(2, _ = n.translationurl), "clientstyling" in n && s(3, y = n.clientstyling), "clientstylingurl" in n && s(4, A = n.clientstylingurl), "ismobileview" in n && s(23, D = n.ismobileview);
|
|
521
521
|
}, t.$$.update = () => {
|
|
522
522
|
t.$$.dirty[0] & /*endpoint, session, customerid*/
|
|
523
|
-
1835008 && r && l && m &&
|
|
523
|
+
1835008 && r && l && m && I(), t.$$.dirty[0] & /*lang*/
|
|
524
524
|
1 && o && X(), t.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
525
|
-
40 && y && L &&
|
|
525
|
+
40 && y && L && _e(), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
526
526
|
48 && A && L && ke(), t.$$.dirty[0] & /*ismobileview*/
|
|
527
527
|
8388608 && D && Z(), t.$$.dirty[0] & /*lang, translationurl*/
|
|
528
|
-
5 && o &&
|
|
528
|
+
5 && o && _ && Y();
|
|
529
529
|
}, [
|
|
530
530
|
o,
|
|
531
531
|
u,
|
|
532
|
-
|
|
532
|
+
_,
|
|
533
533
|
y,
|
|
534
534
|
A,
|
|
535
535
|
L,
|
|
@@ -542,7 +542,7 @@ function tt(t, e, s) {
|
|
|
542
542
|
B,
|
|
543
543
|
a,
|
|
544
544
|
V,
|
|
545
|
-
|
|
545
|
+
q,
|
|
546
546
|
j,
|
|
547
547
|
i,
|
|
548
548
|
r,
|
|
@@ -586,73 +586,73 @@ class st extends Fe {
|
|
|
586
586
|
return this.$$.ctx[0];
|
|
587
587
|
}
|
|
588
588
|
set lang(e) {
|
|
589
|
-
this.$$set({ lang: e }),
|
|
589
|
+
this.$$set({ lang: e }), v();
|
|
590
590
|
}
|
|
591
591
|
get local() {
|
|
592
592
|
return this.$$.ctx[17];
|
|
593
593
|
}
|
|
594
594
|
set local(e) {
|
|
595
|
-
this.$$set({ local: e }),
|
|
595
|
+
this.$$set({ local: e }), v();
|
|
596
596
|
}
|
|
597
597
|
get endpoint() {
|
|
598
598
|
return this.$$.ctx[18];
|
|
599
599
|
}
|
|
600
600
|
set endpoint(e) {
|
|
601
|
-
this.$$set({ endpoint: e }),
|
|
601
|
+
this.$$set({ endpoint: e }), v();
|
|
602
602
|
}
|
|
603
603
|
get session() {
|
|
604
604
|
return this.$$.ctx[19];
|
|
605
605
|
}
|
|
606
606
|
set session(e) {
|
|
607
|
-
this.$$set({ session: e }),
|
|
607
|
+
this.$$set({ session: e }), v();
|
|
608
608
|
}
|
|
609
609
|
get customerid() {
|
|
610
610
|
return this.$$.ctx[20];
|
|
611
611
|
}
|
|
612
612
|
set customerid(e) {
|
|
613
|
-
this.$$set({ customerid: e }),
|
|
613
|
+
this.$$set({ customerid: e }), v();
|
|
614
614
|
}
|
|
615
615
|
get assetsurl() {
|
|
616
616
|
return this.$$.ctx[1];
|
|
617
617
|
}
|
|
618
618
|
set assetsurl(e) {
|
|
619
|
-
this.$$set({ assetsurl: e }),
|
|
619
|
+
this.$$set({ assetsurl: e }), v();
|
|
620
620
|
}
|
|
621
621
|
get currency() {
|
|
622
622
|
return this.$$.ctx[21];
|
|
623
623
|
}
|
|
624
624
|
set currency(e) {
|
|
625
|
-
this.$$set({ currency: e }),
|
|
625
|
+
this.$$set({ currency: e }), v();
|
|
626
626
|
}
|
|
627
627
|
get numberofmethodsshown() {
|
|
628
628
|
return this.$$.ctx[22];
|
|
629
629
|
}
|
|
630
630
|
set numberofmethodsshown(e) {
|
|
631
|
-
this.$$set({ numberofmethodsshown: e }),
|
|
631
|
+
this.$$set({ numberofmethodsshown: e }), v();
|
|
632
632
|
}
|
|
633
633
|
get translationurl() {
|
|
634
634
|
return this.$$.ctx[2];
|
|
635
635
|
}
|
|
636
636
|
set translationurl(e) {
|
|
637
|
-
this.$$set({ translationurl: e }),
|
|
637
|
+
this.$$set({ translationurl: e }), v();
|
|
638
638
|
}
|
|
639
639
|
get clientstyling() {
|
|
640
640
|
return this.$$.ctx[3];
|
|
641
641
|
}
|
|
642
642
|
set clientstyling(e) {
|
|
643
|
-
this.$$set({ clientstyling: e }),
|
|
643
|
+
this.$$set({ clientstyling: e }), v();
|
|
644
644
|
}
|
|
645
645
|
get clientstylingurl() {
|
|
646
646
|
return this.$$.ctx[4];
|
|
647
647
|
}
|
|
648
648
|
set clientstylingurl(e) {
|
|
649
|
-
this.$$set({ clientstylingurl: e }),
|
|
649
|
+
this.$$set({ clientstylingurl: e }), v();
|
|
650
650
|
}
|
|
651
651
|
get ismobileview() {
|
|
652
652
|
return this.$$.ctx[23];
|
|
653
653
|
}
|
|
654
654
|
set ismobileview(e) {
|
|
655
|
-
this.$$set({ ismobileview: e }),
|
|
655
|
+
this.$$set({ ismobileview: e }), v();
|
|
656
656
|
}
|
|
657
657
|
}
|
|
658
658
|
je(st, { lang: {}, local: {}, endpoint: {}, session: {}, customerid: {}, assetsurl: {}, currency: {}, numberofmethodsshown: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, ismobileview: {} }, [], [], !0);
|