@everymatrix/cashier-page 1.45.0 → 1.45.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.
Files changed (47) hide show
  1. package/components/CashierConfirmModal-DDkEGERx.cjs +4 -0
  2. package/components/{CashierConfirmModal-DUs77Z87.js → CashierConfirmModal-DcDzn1gw.js} +188 -192
  3. package/components/{CashierError-B6P10jDb.js → CashierError-BN74rRfp.js} +28 -27
  4. package/components/CashierError-BUdqkPz2.cjs +5 -0
  5. package/components/CashierHeader-CWh9KvU8.cjs +1 -0
  6. package/components/CashierHeader-GJVoWu3a.js +360 -0
  7. package/components/{CashierIframeRedirect-D-wtyZlJ.js → CashierIframeRedirect-7U7Ng9Ft.js} +72 -73
  8. package/components/CashierIframeRedirect-CPmCxUNQ.cjs +1 -0
  9. package/components/CashierMethodDetails-C1P_A8Q-.cjs +18 -0
  10. package/components/{CashierMethodDetails-BMH-N9d_.js → CashierMethodDetails-CcOrusOp.js} +670 -671
  11. package/components/CashierMethodsList-Cz8-AN80.js +651 -0
  12. package/components/CashierMethodsList-DV1rRC_l.cjs +1 -0
  13. package/components/CashierModal-BYaRLT3T.cjs +1 -0
  14. package/components/CashierModal-WFQXcGM-.js +226 -0
  15. package/components/CashierNotifications-C46bpv5c.js +136 -0
  16. package/components/CashierNotifications-DxsqjmwN.cjs +1 -0
  17. package/components/{CashierPage-CReuHHpH.js → CashierPage-BFzFcqIV.js} +887 -892
  18. package/components/CashierPage-BiLUhOOi.cjs +1 -0
  19. package/components/{CashierReceiptPage-CCmpwoHS.js → CashierReceiptPage-C-U0DylA.js} +242 -243
  20. package/components/CashierReceiptPage-D9D2pfkv.cjs +1 -0
  21. package/components/{CashierSessionExpirationModal-CTAwPOlx.js → CashierSessionExpirationModal-BPz4T6IO.js} +210 -217
  22. package/components/{CashierSessionExpirationModal-DgofnoWR.cjs → CashierSessionExpirationModal-Cm1_wYpc.cjs} +2 -2
  23. package/components/CashierSpinner-BDeVd6_8.js +71 -0
  24. package/components/CashierSpinner-BHiwUIfx.cjs +1 -0
  25. package/components/CashierVerifications-ChU2M2Cq.cjs +1 -0
  26. package/components/CashierVerifications-T229JPdw.js +495 -0
  27. package/es2015/cashier-page.cjs +1 -1
  28. package/es2015/cashier-page.js +1 -1
  29. package/package.json +2 -2
  30. package/components/CashierConfirmModal-BzlPDqCa.cjs +0 -4
  31. package/components/CashierError-CPdkGqU9.cjs +0 -5
  32. package/components/CashierHeader-WPbfJpfK.cjs +0 -1
  33. package/components/CashierHeader-sNXvMDOE.js +0 -361
  34. package/components/CashierIframeRedirect-D51bquYH.cjs +0 -1
  35. package/components/CashierMethodDetails-BRk_7FCh.cjs +0 -18
  36. package/components/CashierMethodsList-BzKakG_f.cjs +0 -1
  37. package/components/CashierMethodsList-C2cZyeSz.js +0 -652
  38. package/components/CashierModal-34pFwTKh.cjs +0 -1
  39. package/components/CashierModal-CSXMOh9Q.js +0 -225
  40. package/components/CashierNotifications-Bb_aXGZ9.cjs +0 -1
  41. package/components/CashierNotifications-CHJocFp_.js +0 -136
  42. package/components/CashierPage-DMz34mKD.cjs +0 -1
  43. package/components/CashierReceiptPage-Bx1bgMaF.cjs +0 -1
  44. package/components/CashierSpinner---P14FXy.cjs +0 -1
  45. package/components/CashierSpinner-w2LALF8s.js +0 -71
  46. package/components/CashierVerifications-DR2HJAoY.js +0 -496
  47. package/components/CashierVerifications-T_tbaHJ5.cjs +0 -1
@@ -1 +0,0 @@
1
- "use strict";var pe=Object.defineProperty,_e=Object.defineProperties;var we=Object.getOwnPropertyDescriptors;var Q=Object.getOwnPropertySymbols;var ve=Object.prototype.hasOwnProperty,qe=Object.prototype.propertyIsEnumerable;var $=(s,t,l)=>t in s?pe(s,t,{enumerable:!0,configurable:!0,writable:!0,value:l}):s[t]=l,G=(s,t)=>{for(var l in t||(t={}))ve.call(t,l)&&$(s,l,t[l]);if(Q)for(var l of Q(t))qe.call(t,l)&&$(s,l,t[l]);return s},J=(s,t)=>_e(s,we(t));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CashierConfirmModal-BzlPDqCa.cjs"),B=require("./CashierError-CPdkGqU9.cjs"),V=require("./CashierMethodDetails-BRk_7FCh.cjs");B.init({fallbackLocale:"en"});function ee(s,t){B.addMessages(s,t)}function ye(s){B.$locale.set(s)}const te={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 be(s){e.append_styles(s,"svelte-1ixqqzj",".svelte-1ixqqzj.svelte-1ixqqzj,.svelte-1ixqqzj.svelte-1ixqqzj::before,.svelte-1ixqqzj.svelte-1ixqqzj::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.CashierMethodList.svelte-1ixqqzj.svelte-1ixqqzj{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.svelte-1ixqqzj.svelte-1ixqqzj{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.svelte-1ixqqzj.svelte-1ixqqzj:first-child{border-radius:var(--mmw--border-radius-medium-plus, 6px) var(--mmw--border-radius-medium-plus, 6px) 0 0}.SelectorWrapper.svelte-1ixqqzj.svelte-1ixqqzj:last-child{border-radius:0 0 var(--mmw--border-radius-medium-plus, 6px) var(--mmw--border-radius-medium-plus, 6px)}.SelectorWrapper.checked.svelte-1ixqqzj.svelte-1ixqqzj{background:var(--emw--color-background-secondary, #F9F8F8)}.SelectorWrapper.svelte-1ixqqzj.svelte-1ixqqzj:not(.checked):hover{background:linear-gradient(0, var(--emw--color-background-secondary, #F9F8F8) 0%, var(--emw--color-background, #fff) 100%)}.MethodLogo.svelte-1ixqqzj.svelte-1ixqqzj{display:flex;justify-content:center;align-items:center;margin-right:var(--mmw--spacing-small, 14px);min-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}.MethodTitle.svelte-1ixqqzj.svelte-1ixqqzj{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-medium, 16px);word-break:break-all}.MethodLimits.svelte-1ixqqzj.svelte-1ixqqzj{display:flex;flex-direction:column;align-items:flex-end;margin-left:auto}.Limits.svelte-1ixqqzj.svelte-1ixqqzj{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.svelte-1ixqqzj.svelte-1ixqqzj{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.svelte-1ixqqzj.svelte-1ixqqzj:hover{background:var(--emw--color-background, #fff)}@container method-list (width < 450px){.MethodLogo.svelte-1ixqqzj.svelte-1ixqqzj{min-width:var(--mmw-logo-small-width, 90px);min-height:var(--mmw-logo--small-height, 50px);overflow:hidden}.CashierMethodList.svelte-1ixqqzj .MethodTitle.svelte-1ixqqzj{display:inline-block;flex-grow:1;font-size:var(--emw--font-size-small, 14px);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.CashierMethodList.svelte-1ixqqzj .MethodLimits .Limits.svelte-1ixqqzj{flex-shrink:0;font-size:var(--emw--font-size-x-small, 12px)}}@container method-list (max-width: 300px){.Limits.svelte-1ixqqzj.svelte-1ixqqzj{display:none}}")}function se(s,t,l){const a=s.slice();return a[46]=t[l],a[48]=l,a}function le(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]),e.set_custom_element_data(t,"class","svelte-1ixqqzj")},m(l,a){e.insert(l,t,a)},p(l,a){a[0]&16&&e.set_custom_element_data(t,"clientstylingurl",l[4]),a[0]&8&&e.set_custom_element_data(t,"clientstyling",l[3])},d(l){l&&e.detach(t)}}}function ne(s){let t,l,a,r=e.ensure_array_like(s[8]),i=[];for(let o=0;o<r.length;o+=1)i[o]=ie(se(s,r,o));let c=s[7]&&oe(s);return{c(){t=e.element("div"),l=e.element("div");for(let o=0;o<i.length;o+=1)i[o].c();a=e.space(),c&&c.c(),e.attr(l,"class","CashierMethodList svelte-1ixqqzj"),e.attr(t,"class","CashierMethodListWidget svelte-1ixqqzj")},m(o,m){e.insert(o,t,m),e.append(t,l);for(let d=0;d<i.length;d+=1)i[d]&&i[d].m(l,null);e.append(t,a),c&&c.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 y=se(o,r,d);i[d]?i[d].p(y,m):(i[d]=ie(y),i[d].c(),i[d].m(l,null))}for(;d<i.length;d+=1)i[d].d(1);i.length=r.length}o[7]?c?c.p(o,m):(c=oe(o),c.c(),c.m(t,null)):c&&(c.d(1),c=null)},d(o){o&&e.detach(t),e.destroy_each(i,o),c&&c.d(),s[26](null)}}}function ie(s){let t,l,a,r,i,c,o,m,d=(s[46].Label||s[46].Name)+"",y,b,v,g,L=s[13]("generalMin")+"",j,p,_=s[14].format(s[46].DisplayCurrency.MinAmountLimit)+"",M,z,w=s[46].DisplayCurrency.Name+"",C,U,q,E=s[13]("generalMax")+"",T,N,k=s[14].format(s[46].DisplayCurrency.MaxAmountLimit)+"",F,R,A=s[46].DisplayCurrency.Name+"",O,H,P,W;function I(){return s[24](s[46])}return{c(){t=e.element("div"),l=e.element("div"),a=e.element("img"),c=e.space(),o=e.element("div"),m=e.element("span"),y=e.text(d),b=e.space(),v=e.element("div"),g=e.element("span"),j=e.text(L),p=e.space(),M=e.text(_),z=e.space(),C=e.text(w),U=e.space(),q=e.element("span"),T=e.text(E),N=e.space(),F=e.text(k),R=e.space(),O=e.text(A),H=e.space(),e.src_url_equal(a.src,r=s[46].LogoUrl)||e.attr(a,"src",r),e.attr(a,"alt",i=s[46].Label),e.attr(a,"class","svelte-1ixqqzj"),e.attr(l,"class","MethodLogo svelte-1ixqqzj"),e.attr(m,"class","svelte-1ixqqzj"),e.attr(o,"class","MethodTitle svelte-1ixqqzj"),e.attr(g,"class","Limits svelte-1ixqqzj"),e.attr(q,"class","Limits svelte-1ixqqzj"),e.attr(v,"class","MethodLimits svelte-1ixqqzj"),e.attr(t,"class","SelectorWrapper svelte-1ixqqzj"),e.toggle_class(t,"checked",s[6]===s[46].Name)},m(S,f){e.insert(S,t,f),e.append(t,l),e.append(l,a),e.append(t,c),e.append(t,o),e.append(o,m),e.append(m,y),e.append(t,b),e.append(t,v),e.append(v,g),e.append(g,j),e.append(g,p),e.append(g,M),e.append(g,z),e.append(g,C),e.append(v,U),e.append(v,q),e.append(q,T),e.append(q,N),e.append(q,F),e.append(q,R),e.append(q,O),e.append(t,H),P||(W=[e.listen(t,"click",I),e.listen(t,"keyup",Le)],P=!0)},p(S,f){s=S,f[0]&256&&!e.src_url_equal(a.src,r=s[46].LogoUrl)&&e.attr(a,"src",r),f[0]&256&&i!==(i=s[46].Label)&&e.attr(a,"alt",i),f[0]&256&&d!==(d=(s[46].Label||s[46].Name)+"")&&e.set_data(y,d),f[0]&8192&&L!==(L=s[13]("generalMin")+"")&&e.set_data(j,L),f[0]&256&&_!==(_=s[14].format(s[46].DisplayCurrency.MinAmountLimit)+"")&&e.set_data(M,_),f[0]&256&&w!==(w=s[46].DisplayCurrency.Name+"")&&e.set_data(C,w),f[0]&8192&&E!==(E=s[13]("generalMax")+"")&&e.set_data(T,E),f[0]&256&&k!==(k=s[14].format(s[46].DisplayCurrency.MaxAmountLimit)+"")&&e.set_data(F,k),f[0]&256&&A!==(A=s[46].DisplayCurrency.Name+"")&&e.set_data(O,A),f[0]&320&&e.toggle_class(t,"checked",s[6]===s[46].Name)},d(S){S&&e.detach(t),P=!1,e.run_all(W)}}}function oe(s){let t,l,a,r;return{c(){t=e.element("div"),l=e.text(s[7]),e.attr(t,"class","ShowAllButton svelte-1ixqqzj")},m(i,c){e.insert(i,t,c),e.append(t,l),a||(r=e.listen(t,"click",s[25]),a=!0)},p(i,c){c[0]&128&&e.set_data(l,i[7])},d(i){i&&e.detach(t),a=!1,r()}}}function re(s){let t,l,a;return{c(){t=e.element("cashier-error"),l=e.element("span"),a=e.text(s[10]),e.attr(l,"slot","text"),e.attr(l,"class","svelte-1ixqqzj"),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"),e.set_custom_element_data(t,"class","svelte-1ixqqzj")},m(r,i){e.insert(r,t,i),e.append(t,l),e.append(l,a)},p(r,i){i[0]&1024&&e.set_data(a,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 xe(s){let t,l,a,r=s[12]&&le(s),i=(s[9]||s[11])&&ne(s),c=s[10]&&re(s);return{c(){r&&r.c(),t=e.space(),i&&i.c(),l=e.space(),c&&c.c(),a=e.empty()},m(o,m){r&&r.m(o,m),e.insert(o,t,m),i&&i.m(o,m),e.insert(o,l,m),c&&c.m(o,m),e.insert(o,a,m)},p(o,m){o[12]?r?r.p(o,m):(r=le(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(l.parentNode,l)):i&&(i.d(1),i=null),o[10]?c?c.p(o,m):(c=re(o),c.c(),c.m(a.parentNode,a)):c&&(c.d(1),c=null)},i:e.noop,o:e.noop,d(o){o&&(e.detach(t),e.detach(l),e.detach(a)),r&&r.d(o),i&&i.d(o),c&&c.d(o)}}}const Le=()=>{};function Me(s,t,l){let a;e.component_subscribe(s,B.$format,n=>l(13,a=n)),V.dayjs.extend(V.utc);let{lang:r="en"}=t,{local:i="en-US"}=t,{endpoint:c}=t,{session:o}=t,{customerid:m}=t,{assetsurl:d}=t,{currency:y}=t,{numberofmethodsshown:b}=t,{translationurl:v=""}=t,{clientstyling:g=""}=t,{clientstylingurl:L=""}=t,{ismobileview:j}=t,p=[],_,M,z="",w=[],C=!0,U=new Intl.NumberFormat(i,{minimumFractionDigits:2}),q="",E,T=!0,N=!1;var k;(function(n){n.PlayerSessionIsNotValid="PlayerSessionIsNotValid",n.Success="Success",n.JwtTokenError="JwtTokenError"})(k||(k={})),e.createEventDispatcher();const F=()=>{let n=v;if(n)return fetch(n).then(u=>u.json()).then(u=>{Object.keys(u).forEach(x=>{ee(x,u[x])})}).catch(u=>{console.log(u)})};Object.keys(te).forEach(n=>{ee(n,te[n])});const R=()=>{ye(r)},A=()=>{l(12,N=!0);const n=new URL(`${c}/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 x={method:"POST",headers:u,body:JSON.stringify({XPaymentSessionToken:o,Currency:y})};fetch(n,x).then(h=>h.json()).then(h=>{var D;if(h.error){l(10,q=h.error);return}if(h.ResponseCode!==k.Success){E=h.ResponseCode,W();return}p=(D=h.PaymentMethods)!=null&&D.Ordering?O(h):H(h),l(7,z=b&&+b>0&&p.length>+b?a("showAll"):""),l(8,w=z?p.slice(0,+b):p),window.postMessage({type:"StartSessionCountdown",paymentMethodName:p[0].Name,xPaymentSessionToken:h.XPaymentSessionToken},window.location.href)}).finally(()=>l(12,N=!1))},O=n=>{const u=[];return n.PaymentMethods.Ordering.DefaultPaymentMethodsOrder.forEach(x=>{const h=n.PaymentMethods.PaymentMethods.find(D=>D.Name===x);if(h){const D=(h==null?void 0:h.Logos.find(Y=>Y.LogoType==="Desktop"))||{},ge=(h==null?void 0:h.Logos.find(Y=>Y.LogoType==="Mobile"))||{},K=T?D:ge;u.push(J(G({},h),{LogoUrl:K.LogoUrl?`https:${K.LogoUrl}`:""}))}}),u},H=n=>n.PaymentMethods.PaymentMethods.map(u=>J(G({},u),{LogoUrl:u.Logos&&u.Logos.length&&u.Logos[0].LogoUrl?`https:${u.Logos[0].LogoUrl}`:""})),P=n=>{l(6,M=n.Name),dispatchEvent(new CustomEvent("selectPayMeth",{detail:n,bubbles:!0,cancelable:!0,composed:!0}))},W=()=>{window.postMessage({type:"ErrorResponseCode",errorResponseCode:E},window.location.href)},I=()=>{l(11,T=j==="false")},S=()=>{w==p?ce():f()},f=()=>{l(8,w=p),l(7,z=a("showLess"))},ce=()=>{l(8,w=p.slice(0,+b)),M&&!w.find(n=>n.Name===M)&&w.splice(0,0,p.find(n=>n.Name===M)),l(7,z=a("showAll"))},X=()=>{l(9,C=!0)},Z=n=>{l(9,C=!n.detail.hideMethodsList)},me=()=>{let n=document.createElement("style");n.innerHTML=g,_.appendChild(n)},de=()=>{let n=new URL(L),u=document.createElement("style");fetch(n.href).then(x=>x.text()).then(x=>{u.innerHTML=x,setTimeout(()=>{_.appendChild(u)},1),setTimeout(()=>{},500)})};e.onMount(()=>(window.addEventListener("backToMethodList",X,!1),window.addEventListener("hideMethodsList",Z,!1),()=>{window.removeEventListener("backToMethodList",X),window.removeEventListener("paymentMethodLoaded",Z)}));const ue=n=>P(n),he=()=>S();function fe(n){e.binding_callbacks[n?"unshift":"push"](()=>{_=n,l(5,_)})}return s.$$set=n=>{"lang"in n&&l(0,r=n.lang),"local"in n&&l(17,i=n.local),"endpoint"in n&&l(18,c=n.endpoint),"session"in n&&l(19,o=n.session),"customerid"in n&&l(20,m=n.customerid),"assetsurl"in n&&l(1,d=n.assetsurl),"currency"in n&&l(21,y=n.currency),"numberofmethodsshown"in n&&l(22,b=n.numberofmethodsshown),"translationurl"in n&&l(2,v=n.translationurl),"clientstyling"in n&&l(3,g=n.clientstyling),"clientstylingurl"in n&&l(4,L=n.clientstylingurl),"ismobileview"in n&&l(23,j=n.ismobileview)},s.$$.update=()=>{s.$$.dirty[0]&1835008&&c&&o&&m&&A(),s.$$.dirty[0]&1&&r&&R(),s.$$.dirty[0]&40&&g&&_&&me(),s.$$.dirty[0]&48&&L&&_&&de(),s.$$.dirty[0]&8388608&&j&&I(),s.$$.dirty[0]&5&&r&&v&&F()},[r,d,v,g,L,_,M,z,w,C,q,T,N,a,U,P,S,i,c,o,m,y,b,j,ue,he,fe]}class ae extends e.SvelteComponent{constructor(t){super(),e.init(this,t,Me,xe,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},be,[-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(ae,{lang:{},local:{},endpoint:{},session:{},customerid:{},assetsurl:{},currency:{},numberofmethodsshown:{},translationurl:{},clientstyling:{},clientstylingurl:{},ismobileview:{}},[],[],!0);exports.default=ae;
@@ -1,652 +0,0 @@
1
- var ke = Object.defineProperty, Se = Object.defineProperties;
2
- var Ce = Object.getOwnPropertyDescriptors;
3
- var oe = Object.getOwnPropertySymbols;
4
- var Ee = Object.prototype.hasOwnProperty, Te = Object.prototype.propertyIsEnumerable;
5
- var re = (t, e, s) => e in t ? ke(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s, ee = (t, e) => {
6
- for (var s in e || (e = {}))
7
- Ee.call(e, s) && re(t, s, e[s]);
8
- if (oe)
9
- for (var s of oe(e))
10
- Te.call(e, s) && re(t, s, e[s]);
11
- return t;
12
- }, te = (t, e) => Se(t, Ce(e));
13
- import { S as Ne, b as Ae, f as L, c as Pe, a as Fe, d as De, h as j, x as Ue, k as D, n as ae, v as U, w as Oe, F as Re, H as He, g as v, E as f, K as ce, j as g, l as c, M as We, y as E, D as me, J as ue, A as se, z as T, r as Be, C as Ie } from "./CashierConfirmModal-DUs77Z87.js";
14
- import { i as Je, a as Ye, $ as Ge, b as Ve } from "./CashierError-B6P10jDb.js";
15
- import { d as de, u as Xe } from "./CashierMethodDetails-BMH-N9d_.js";
16
- Je({
17
- fallbackLocale: "en"
18
- });
19
- function he(t, e) {
20
- Ye(t, e);
21
- }
22
- function Ke(t) {
23
- Ge.set(t);
24
- }
25
- const fe = {
26
- en: {
27
- generalMin: "Min",
28
- generalMax: "Max",
29
- showAll: "SHOW ALL",
30
- showLess: "SHOW LESS"
31
- },
32
- uk: {
33
- generalMin: "Мін",
34
- generalMax: "Макс"
35
- },
36
- hr: {
37
- generalMin: "Minimalno",
38
- generalMax: "Maksimalno",
39
- showAll: "Prikaži sve",
40
- showLess: "Prikaži manje"
41
- },
42
- tr: {
43
- generalMin: "Min",
44
- generalMax: "Maks",
45
- showAll: "HEPSİNİ GÖSTER",
46
- showLess: "DAHA AZ GÖSTER"
47
- }
48
- };
49
- function Ze(t) {
50
- De(t, "svelte-1ixqqzj", ".svelte-1ixqqzj.svelte-1ixqqzj,.svelte-1ixqqzj.svelte-1ixqqzj::before,.svelte-1ixqqzj.svelte-1ixqqzj::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.CashierMethodList.svelte-1ixqqzj.svelte-1ixqqzj{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.svelte-1ixqqzj.svelte-1ixqqzj{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.svelte-1ixqqzj.svelte-1ixqqzj:first-child{border-radius:var(--mmw--border-radius-medium-plus, 6px) var(--mmw--border-radius-medium-plus, 6px) 0 0}.SelectorWrapper.svelte-1ixqqzj.svelte-1ixqqzj:last-child{border-radius:0 0 var(--mmw--border-radius-medium-plus, 6px) var(--mmw--border-radius-medium-plus, 6px)}.SelectorWrapper.checked.svelte-1ixqqzj.svelte-1ixqqzj{background:var(--emw--color-background-secondary, #F9F8F8)}.SelectorWrapper.svelte-1ixqqzj.svelte-1ixqqzj:not(.checked):hover{background:linear-gradient(0, var(--emw--color-background-secondary, #F9F8F8) 0%, var(--emw--color-background, #fff) 100%)}.MethodLogo.svelte-1ixqqzj.svelte-1ixqqzj{display:flex;justify-content:center;align-items:center;margin-right:var(--mmw--spacing-small, 14px);min-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}.MethodTitle.svelte-1ixqqzj.svelte-1ixqqzj{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-medium, 16px);word-break:break-all}.MethodLimits.svelte-1ixqqzj.svelte-1ixqqzj{display:flex;flex-direction:column;align-items:flex-end;margin-left:auto}.Limits.svelte-1ixqqzj.svelte-1ixqqzj{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.svelte-1ixqqzj.svelte-1ixqqzj{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.svelte-1ixqqzj.svelte-1ixqqzj:hover{background:var(--emw--color-background, #fff)}@container method-list (width < 450px){.MethodLogo.svelte-1ixqqzj.svelte-1ixqqzj{min-width:var(--mmw-logo-small-width, 90px);min-height:var(--mmw-logo--small-height, 50px);overflow:hidden}.CashierMethodList.svelte-1ixqqzj .MethodTitle.svelte-1ixqqzj{display:inline-block;flex-grow:1;font-size:var(--emw--font-size-small, 14px);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.CashierMethodList.svelte-1ixqqzj .MethodLimits .Limits.svelte-1ixqqzj{flex-shrink:0;font-size:var(--emw--font-size-x-small, 12px)}}@container method-list (max-width: 300px){.Limits.svelte-1ixqqzj.svelte-1ixqqzj{display:none}}");
51
- }
52
- function ge(t, e, s) {
53
- const r = t.slice();
54
- return r[46] = e[s], r[48] = s, r;
55
- }
56
- function we(t) {
57
- let e;
58
- return {
59
- c() {
60
- e = v("cashier-spinner"), f(
61
- e,
62
- "clientstylingurl",
63
- /*clientstylingurl*/
64
- t[4]
65
- ), f(
66
- e,
67
- "clientstyling",
68
- /*clientstyling*/
69
- t[3]
70
- ), f(e, "class", "svelte-1ixqqzj");
71
- },
72
- m(s, r) {
73
- D(s, e, r);
74
- },
75
- p(s, r) {
76
- r[0] & /*clientstylingurl*/
77
- 16 && f(
78
- e,
79
- "clientstylingurl",
80
- /*clientstylingurl*/
81
- s[4]
82
- ), r[0] & /*clientstyling*/
83
- 8 && f(
84
- e,
85
- "clientstyling",
86
- /*clientstyling*/
87
- s[3]
88
- );
89
- },
90
- d(s) {
91
- s && U(e);
92
- }
93
- };
94
- }
95
- function ve(t) {
96
- let e, s, r, o = ce(
97
- /*paymentMethodsToShow*/
98
- t[8]
99
- ), l = [];
100
- for (let n = 0; n < o.length; n += 1)
101
- l[n] = qe(ge(t, o, n));
102
- let a = (
103
- /*methodsButtonToggleText*/
104
- t[7] && pe(t)
105
- );
106
- return {
107
- c() {
108
- e = v("div"), s = v("div");
109
- for (let n = 0; n < l.length; n += 1)
110
- l[n].c();
111
- r = j(), a && a.c(), g(s, "class", "CashierMethodList svelte-1ixqqzj"), g(e, "class", "CashierMethodListWidget svelte-1ixqqzj");
112
- },
113
- m(n, m) {
114
- D(n, e, m), c(e, s);
115
- for (let u = 0; u < l.length; u += 1)
116
- l[u] && l[u].m(s, null);
117
- c(e, r), a && a.m(e, null), t[26](e);
118
- },
119
- p(n, m) {
120
- if (m[0] & /*selectedPaymentMethod, paymentMethodsToShow, selectPayMeth, formatter, $_*/
121
- 57664) {
122
- o = ce(
123
- /*paymentMethodsToShow*/
124
- n[8]
125
- );
126
- let u;
127
- for (u = 0; u < o.length; u += 1) {
128
- const z = ge(n, o, u);
129
- l[u] ? l[u].p(z, m) : (l[u] = qe(z), l[u].c(), l[u].m(s, null));
130
- }
131
- for (; u < l.length; u += 1)
132
- l[u].d(1);
133
- l.length = o.length;
134
- }
135
- /*methodsButtonToggleText*/
136
- n[7] ? a ? a.p(n, m) : (a = pe(n), a.c(), a.m(e, null)) : a && (a.d(1), a = null);
137
- },
138
- d(n) {
139
- n && U(e), We(l, n), a && a.d(), t[26](null);
140
- }
141
- };
142
- }
143
- function qe(t) {
144
- let e, s, r, o, l, a, n, m, u = (
145
- /*payMeth*/
146
- (t[46].Label || /*payMeth*/
147
- t[46].Name) + ""
148
- ), z, _, x, q, S = (
149
- /*$_*/
150
- t[13]("generalMin") + ""
151
- ), N, p, y = (
152
- /*formatter*/
153
- t[14].format(
154
- /*payMeth*/
155
- t[46].DisplayCurrency.MinAmountLimit
156
- ) + ""
157
- ), C, A, b = (
158
- /*payMeth*/
159
- t[46].DisplayCurrency.Name + ""
160
- ), O, V, M, R = (
161
- /*$_*/
162
- t[13]("generalMax") + ""
163
- ), H, W, P = (
164
- /*formatter*/
165
- t[14].format(
166
- /*payMeth*/
167
- t[46].DisplayCurrency.MaxAmountLimit
168
- ) + ""
169
- ), Y, X, B = (
170
- /*payMeth*/
171
- t[46].DisplayCurrency.Name + ""
172
- ), G, K, I, Z;
173
- function Q() {
174
- return (
175
- /*click_handler*/
176
- t[24](
177
- /*payMeth*/
178
- t[46]
179
- )
180
- );
181
- }
182
- return {
183
- c() {
184
- e = v("div"), s = v("div"), r = v("img"), a = j(), n = v("div"), m = v("span"), z = E(u), _ = j(), x = v("div"), q = v("span"), N = E(S), p = j(), C = E(y), A = j(), O = E(b), V = j(), M = v("span"), H = E(R), W = j(), Y = E(P), X = j(), G = E(B), K = j(), me(r.src, o = /*payMeth*/
185
- t[46].LogoUrl) || g(r, "src", o), g(r, "alt", l = /*payMeth*/
186
- t[46].Label), g(r, "class", "svelte-1ixqqzj"), g(s, "class", "MethodLogo svelte-1ixqqzj"), g(m, "class", "svelte-1ixqqzj"), g(n, "class", "MethodTitle svelte-1ixqqzj"), g(q, "class", "Limits svelte-1ixqqzj"), g(M, "class", "Limits svelte-1ixqqzj"), g(x, "class", "MethodLimits svelte-1ixqqzj"), g(e, "class", "SelectorWrapper svelte-1ixqqzj"), ue(
187
- e,
188
- "checked",
189
- /*selectedPaymentMethod*/
190
- t[6] === /*payMeth*/
191
- t[46].Name
192
- );
193
- },
194
- m(F, w) {
195
- D(F, e, w), c(e, s), c(s, r), c(e, a), c(e, n), c(n, m), c(m, z), c(e, _), c(e, x), c(x, q), c(q, N), c(q, p), c(q, C), c(q, A), c(q, O), c(x, V), c(x, M), c(M, H), c(M, W), c(M, Y), c(M, X), c(M, G), c(e, K), I || (Z = [
196
- se(e, "click", Q),
197
- se(e, "keyup", $e)
198
- ], I = !0);
199
- },
200
- p(F, w) {
201
- t = F, w[0] & /*paymentMethodsToShow*/
202
- 256 && !me(r.src, o = /*payMeth*/
203
- t[46].LogoUrl) && g(r, "src", o), w[0] & /*paymentMethodsToShow*/
204
- 256 && l !== (l = /*payMeth*/
205
- t[46].Label) && g(r, "alt", l), w[0] & /*paymentMethodsToShow*/
206
- 256 && u !== (u = /*payMeth*/
207
- (t[46].Label || /*payMeth*/
208
- t[46].Name) + "") && T(z, u), w[0] & /*$_*/
209
- 8192 && S !== (S = /*$_*/
210
- t[13]("generalMin") + "") && T(N, S), w[0] & /*paymentMethodsToShow*/
211
- 256 && y !== (y = /*formatter*/
212
- t[14].format(
213
- /*payMeth*/
214
- t[46].DisplayCurrency.MinAmountLimit
215
- ) + "") && T(C, y), w[0] & /*paymentMethodsToShow*/
216
- 256 && b !== (b = /*payMeth*/
217
- t[46].DisplayCurrency.Name + "") && T(O, b), w[0] & /*$_*/
218
- 8192 && R !== (R = /*$_*/
219
- t[13]("generalMax") + "") && T(H, R), w[0] & /*paymentMethodsToShow*/
220
- 256 && P !== (P = /*formatter*/
221
- t[14].format(
222
- /*payMeth*/
223
- t[46].DisplayCurrency.MaxAmountLimit
224
- ) + "") && T(Y, P), w[0] & /*paymentMethodsToShow*/
225
- 256 && B !== (B = /*payMeth*/
226
- t[46].DisplayCurrency.Name + "") && T(G, B), w[0] & /*selectedPaymentMethod, paymentMethodsToShow*/
227
- 320 && ue(
228
- e,
229
- "checked",
230
- /*selectedPaymentMethod*/
231
- t[6] === /*payMeth*/
232
- t[46].Name
233
- );
234
- },
235
- d(F) {
236
- F && U(e), I = !1, Be(Z);
237
- }
238
- };
239
- }
240
- function pe(t) {
241
- let e, s, r, o;
242
- return {
243
- c() {
244
- e = v("div"), s = E(
245
- /*methodsButtonToggleText*/
246
- t[7]
247
- ), g(e, "class", "ShowAllButton svelte-1ixqqzj");
248
- },
249
- m(l, a) {
250
- D(l, e, a), c(e, s), r || (o = se(
251
- e,
252
- "click",
253
- /*click_handler_1*/
254
- t[25]
255
- ), r = !0);
256
- },
257
- p(l, a) {
258
- a[0] & /*methodsButtonToggleText*/
259
- 128 && T(
260
- s,
261
- /*methodsButtonToggleText*/
262
- l[7]
263
- );
264
- },
265
- d(l) {
266
- l && U(e), r = !1, o();
267
- }
268
- };
269
- }
270
- function ye(t) {
271
- let e, s, r;
272
- return {
273
- c() {
274
- e = v("cashier-error"), s = v("span"), r = E(
275
- /*errorMessage*/
276
- t[10]
277
- ), g(s, "slot", "text"), g(s, "class", "svelte-1ixqqzj"), f(
278
- e,
279
- "lang",
280
- /*lang*/
281
- t[0]
282
- ), f(
283
- e,
284
- "assetsurl",
285
- /*assetsurl*/
286
- t[1]
287
- ), f(
288
- e,
289
- "translationurl",
290
- /*translationurl*/
291
- t[2]
292
- ), f(
293
- e,
294
- "clientstylingurl",
295
- /*clientstylingurl*/
296
- t[4]
297
- ), f(
298
- e,
299
- "clientstyling",
300
- /*clientstyling*/
301
- t[3]
302
- ), f(e, "hidebuttons", "true"), f(e, "class", "svelte-1ixqqzj");
303
- },
304
- m(o, l) {
305
- D(o, e, l), c(e, s), c(s, r);
306
- },
307
- p(o, l) {
308
- l[0] & /*errorMessage*/
309
- 1024 && T(
310
- r,
311
- /*errorMessage*/
312
- o[10]
313
- ), l[0] & /*lang*/
314
- 1 && f(
315
- e,
316
- "lang",
317
- /*lang*/
318
- o[0]
319
- ), l[0] & /*assetsurl*/
320
- 2 && f(
321
- e,
322
- "assetsurl",
323
- /*assetsurl*/
324
- o[1]
325
- ), l[0] & /*translationurl*/
326
- 4 && f(
327
- e,
328
- "translationurl",
329
- /*translationurl*/
330
- o[2]
331
- ), l[0] & /*clientstylingurl*/
332
- 16 && f(
333
- e,
334
- "clientstylingurl",
335
- /*clientstylingurl*/
336
- o[4]
337
- ), l[0] & /*clientstyling*/
338
- 8 && f(
339
- e,
340
- "clientstyling",
341
- /*clientstyling*/
342
- o[3]
343
- );
344
- },
345
- d(o) {
346
- o && U(e);
347
- }
348
- };
349
- }
350
- function Qe(t) {
351
- let e, s, r, o = (
352
- /*showSpinner*/
353
- t[12] && we(t)
354
- ), l = (
355
- /*showMethodsList*/
356
- (t[9] || /*desktopView*/
357
- t[11]) && ve(t)
358
- ), a = (
359
- /*errorMessage*/
360
- t[10] && ye(t)
361
- );
362
- return {
363
- c() {
364
- o && o.c(), e = j(), l && l.c(), s = j(), a && a.c(), r = Ue();
365
- },
366
- m(n, m) {
367
- o && o.m(n, m), D(n, e, m), l && l.m(n, m), D(n, s, m), a && a.m(n, m), D(n, r, m);
368
- },
369
- p(n, m) {
370
- /*showSpinner*/
371
- n[12] ? o ? o.p(n, m) : (o = we(n), o.c(), o.m(e.parentNode, e)) : o && (o.d(1), o = null), /*showMethodsList*/
372
- n[9] || /*desktopView*/
373
- n[11] ? l ? l.p(n, m) : (l = ve(n), l.c(), l.m(s.parentNode, s)) : l && (l.d(1), l = null), /*errorMessage*/
374
- n[10] ? a ? a.p(n, m) : (a = ye(n), a.c(), a.m(r.parentNode, r)) : a && (a.d(1), a = null);
375
- },
376
- i: ae,
377
- o: ae,
378
- d(n) {
379
- n && (U(e), U(s), U(r)), o && o.d(n), l && l.d(n), a && a.d(n);
380
- }
381
- };
382
- }
383
- const $e = () => {
384
- };
385
- function et(t, e, s) {
386
- let r;
387
- Oe(t, Ve, (i) => s(13, r = i)), de.extend(Xe);
388
- let { lang: o = "en" } = e, { local: l = "en-US" } = e, { endpoint: a } = e, { session: n } = e, { customerid: m } = e, { assetsurl: u } = e, { currency: z } = e, { numberofmethodsshown: _ } = e, { translationurl: x = "" } = e, { clientstyling: q = "" } = e, { clientstylingurl: S = "" } = e, { ismobileview: N } = e, p = [], y, C, A = "", b = [], O = !0, V = new Intl.NumberFormat(l, { minimumFractionDigits: 2 }), M = "", R, H = !0, W = !1;
389
- var P;
390
- (function(i) {
391
- i.PlayerSessionIsNotValid = "PlayerSessionIsNotValid", i.Success = "Success", i.JwtTokenError = "JwtTokenError";
392
- })(P || (P = {})), Re();
393
- const Y = () => {
394
- let i = x;
395
- if (i)
396
- return fetch(i).then((d) => d.json()).then((d) => {
397
- Object.keys(d).forEach((k) => {
398
- he(k, d[k]);
399
- });
400
- }).catch((d) => {
401
- console.log(d);
402
- });
403
- };
404
- Object.keys(fe).forEach((i) => {
405
- he(i, fe[i]);
406
- });
407
- const X = () => {
408
- Ke(o);
409
- }, B = () => {
410
- s(12, W = !0);
411
- const i = new URL(`${a}/v1/player/${m}/payment/GetPaymentMetadata`), d = new Headers();
412
- d.append("accept", "application/json"), d.append("Content-Type", "application/json"), d.append("X-Client-Request-Timestamp", de.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));
413
- const k = {
414
- method: "POST",
415
- headers: d,
416
- body: JSON.stringify({
417
- XPaymentSessionToken: n,
418
- Currency: z
419
- })
420
- };
421
- fetch(i, k).then((h) => h.json()).then((h) => {
422
- var J;
423
- if (h.error) {
424
- s(10, M = h.error);
425
- return;
426
- }
427
- if (h.ResponseCode !== P.Success) {
428
- R = h.ResponseCode, Z();
429
- return;
430
- }
431
- p = (J = h.PaymentMethods) != null && J.Ordering ? G(h) : K(h), s(7, A = _ && +_ > 0 && p.length > +_ ? r("showAll") : ""), s(8, b = A ? p.slice(0, +_) : p), window.postMessage(
432
- {
433
- type: "StartSessionCountdown",
434
- paymentMethodName: p[0].Name,
435
- xPaymentSessionToken: h.XPaymentSessionToken
436
- },
437
- window.location.href
438
- );
439
- }).finally(() => s(12, W = !1));
440
- }, G = (i) => {
441
- const d = [];
442
- return i.PaymentMethods.Ordering.DefaultPaymentMethodsOrder.forEach((k) => {
443
- const h = i.PaymentMethods.PaymentMethods.find((J) => J.Name === k);
444
- if (h) {
445
- const J = (h == null ? void 0 : h.Logos.find(($) => $.LogoType === "Desktop")) || {}, _e = (h == null ? void 0 : h.Logos.find(($) => $.LogoType === "Mobile")) || {}, ne = H ? J : _e;
446
- d.push(te(ee({}, h), {
447
- LogoUrl: ne.LogoUrl ? `https:${ne.LogoUrl}` : ""
448
- }));
449
- }
450
- }), d;
451
- }, K = (i) => i.PaymentMethods.PaymentMethods.map((d) => te(ee({}, d), {
452
- LogoUrl: d.Logos && d.Logos.length && d.Logos[0].LogoUrl ? `https:${d.Logos[0].LogoUrl}` : ""
453
- })), I = (i) => {
454
- s(6, C = i.Name), dispatchEvent(new CustomEvent(
455
- "selectPayMeth",
456
- {
457
- detail: i,
458
- bubbles: !0,
459
- cancelable: !0,
460
- composed: !0
461
- }
462
- ));
463
- }, Z = () => {
464
- window.postMessage(
465
- {
466
- type: "ErrorResponseCode",
467
- errorResponseCode: R
468
- },
469
- window.location.href
470
- );
471
- }, Q = () => {
472
- s(11, H = N === "false");
473
- }, F = () => {
474
- b == p ? be() : w();
475
- }, w = () => {
476
- s(8, b = p), s(7, A = r("showLess"));
477
- }, be = () => {
478
- s(8, b = p.slice(0, +_)), C && !b.find((i) => i.Name === C) && b.splice(0, 0, p.find((i) => i.Name === C)), s(7, A = r("showAll"));
479
- }, ie = () => {
480
- s(9, O = !0);
481
- }, le = (i) => {
482
- s(9, O = !i.detail.hideMethodsList);
483
- }, Le = () => {
484
- let i = document.createElement("style");
485
- i.innerHTML = q, y.appendChild(i);
486
- }, xe = () => {
487
- let i = new URL(S), d = document.createElement("style");
488
- fetch(i.href).then((k) => k.text()).then((k) => {
489
- d.innerHTML = k, setTimeout(
490
- () => {
491
- y.appendChild(d);
492
- },
493
- 1
494
- ), setTimeout(
495
- () => {
496
- },
497
- 500
498
- );
499
- });
500
- };
501
- He(() => (window.addEventListener("backToMethodList", ie, !1), window.addEventListener("hideMethodsList", le, !1), () => {
502
- window.removeEventListener("backToMethodList", ie), window.removeEventListener("paymentMethodLoaded", le);
503
- }));
504
- const Me = (i) => I(i), je = () => F();
505
- function ze(i) {
506
- Ie[i ? "unshift" : "push"](() => {
507
- y = i, s(5, y);
508
- });
509
- }
510
- return t.$$set = (i) => {
511
- "lang" in i && s(0, o = i.lang), "local" in i && s(17, l = i.local), "endpoint" in i && s(18, a = i.endpoint), "session" in i && s(19, n = i.session), "customerid" in i && s(20, m = i.customerid), "assetsurl" in i && s(1, u = i.assetsurl), "currency" in i && s(21, z = i.currency), "numberofmethodsshown" in i && s(22, _ = i.numberofmethodsshown), "translationurl" in i && s(2, x = i.translationurl), "clientstyling" in i && s(3, q = i.clientstyling), "clientstylingurl" in i && s(4, S = i.clientstylingurl), "ismobileview" in i && s(23, N = i.ismobileview);
512
- }, t.$$.update = () => {
513
- t.$$.dirty[0] & /*endpoint, session, customerid*/
514
- 1835008 && a && n && m && B(), t.$$.dirty[0] & /*lang*/
515
- 1 && o && X(), t.$$.dirty[0] & /*clientstyling, customStylingContainer*/
516
- 40 && q && y && Le(), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
517
- 48 && S && y && xe(), t.$$.dirty[0] & /*ismobileview*/
518
- 8388608 && N && Q(), t.$$.dirty[0] & /*lang, translationurl*/
519
- 5 && o && x && Y();
520
- }, [
521
- o,
522
- u,
523
- x,
524
- q,
525
- S,
526
- y,
527
- C,
528
- A,
529
- b,
530
- O,
531
- M,
532
- H,
533
- W,
534
- r,
535
- V,
536
- I,
537
- F,
538
- l,
539
- a,
540
- n,
541
- m,
542
- z,
543
- _,
544
- N,
545
- Me,
546
- je,
547
- ze
548
- ];
549
- }
550
- class tt extends Ne {
551
- constructor(e) {
552
- super(), Ae(
553
- this,
554
- e,
555
- et,
556
- Qe,
557
- Fe,
558
- {
559
- lang: 0,
560
- local: 17,
561
- endpoint: 18,
562
- session: 19,
563
- customerid: 20,
564
- assetsurl: 1,
565
- currency: 21,
566
- numberofmethodsshown: 22,
567
- translationurl: 2,
568
- clientstyling: 3,
569
- clientstylingurl: 4,
570
- ismobileview: 23
571
- },
572
- Ze,
573
- [-1, -1]
574
- );
575
- }
576
- get lang() {
577
- return this.$$.ctx[0];
578
- }
579
- set lang(e) {
580
- this.$$set({ lang: e }), L();
581
- }
582
- get local() {
583
- return this.$$.ctx[17];
584
- }
585
- set local(e) {
586
- this.$$set({ local: e }), L();
587
- }
588
- get endpoint() {
589
- return this.$$.ctx[18];
590
- }
591
- set endpoint(e) {
592
- this.$$set({ endpoint: e }), L();
593
- }
594
- get session() {
595
- return this.$$.ctx[19];
596
- }
597
- set session(e) {
598
- this.$$set({ session: e }), L();
599
- }
600
- get customerid() {
601
- return this.$$.ctx[20];
602
- }
603
- set customerid(e) {
604
- this.$$set({ customerid: e }), L();
605
- }
606
- get assetsurl() {
607
- return this.$$.ctx[1];
608
- }
609
- set assetsurl(e) {
610
- this.$$set({ assetsurl: e }), L();
611
- }
612
- get currency() {
613
- return this.$$.ctx[21];
614
- }
615
- set currency(e) {
616
- this.$$set({ currency: e }), L();
617
- }
618
- get numberofmethodsshown() {
619
- return this.$$.ctx[22];
620
- }
621
- set numberofmethodsshown(e) {
622
- this.$$set({ numberofmethodsshown: e }), L();
623
- }
624
- get translationurl() {
625
- return this.$$.ctx[2];
626
- }
627
- set translationurl(e) {
628
- this.$$set({ translationurl: e }), L();
629
- }
630
- get clientstyling() {
631
- return this.$$.ctx[3];
632
- }
633
- set clientstyling(e) {
634
- this.$$set({ clientstyling: e }), L();
635
- }
636
- get clientstylingurl() {
637
- return this.$$.ctx[4];
638
- }
639
- set clientstylingurl(e) {
640
- this.$$set({ clientstylingurl: e }), L();
641
- }
642
- get ismobileview() {
643
- return this.$$.ctx[23];
644
- }
645
- set ismobileview(e) {
646
- this.$$set({ ismobileview: e }), L();
647
- }
648
- }
649
- Pe(tt, { lang: {}, local: {}, endpoint: {}, session: {}, customerid: {}, assetsurl: {}, currency: {}, numberofmethodsshown: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, ismobileview: {} }, [], [], !0);
650
- export {
651
- tt as default
652
- };