@everymatrix/cashier-page 1.46.0 → 1.47.0

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 (26) hide show
  1. package/components/{CashierError-DrXIvPhH.cjs → CashierError-B6IaVYAb.cjs} +1 -1
  2. package/components/{CashierError-TXPAe0Cm.js → CashierError-B6Kgc33u.js} +1 -1
  3. package/components/CashierHeader-DisTPfvX.js +394 -0
  4. package/components/CashierHeader-iNNp6cpC.cjs +1 -0
  5. package/components/{CashierIframeRedirect-CUSfkztJ.js → CashierIframeRedirect-DkJY9SOb.js} +15 -15
  6. package/components/CashierIframeRedirect-schHNvai.cjs +1 -0
  7. package/components/{CashierMethodDetails-DAEBrtAl.js → CashierMethodDetails-C1YDBrNk.js} +73 -73
  8. package/components/{CashierMethodDetails-D1h4bAJX.cjs → CashierMethodDetails-_tjsOJpf.cjs} +3 -3
  9. package/components/{CashierMethodsList-DfrWobKh.cjs → CashierMethodsList-CzOyema5.cjs} +1 -1
  10. package/components/{CashierMethodsList-9FYuKqzl.js → CashierMethodsList-pJfb7AMj.js} +2 -2
  11. package/components/CashierPage-BuM08oLP.cjs +1 -0
  12. package/components/{CashierPage-BhrKkBZk.js → CashierPage-nz3KNFC4.js} +655 -636
  13. package/components/{CashierReceiptPage-D-7kYdSN.cjs → CashierReceiptPage-BmCDMqj7.cjs} +1 -1
  14. package/components/{CashierReceiptPage-KOIpC_iD.js → CashierReceiptPage-DdTdXSZU.js} +2 -2
  15. package/components/CashierSessionExpirationModal-Q_y-Rhkd.cjs +2 -0
  16. package/components/{CashierSessionExpirationModal-wdNwmh9l.js → CashierSessionExpirationModal-XwzDxzqQ.js} +701 -636
  17. package/components/{CashierVerifications-BAMNzR0w.js → CashierVerifications-PTuf6Nph.js} +2 -2
  18. package/components/{CashierVerifications-C5rinNEF.cjs → CashierVerifications-Y25uLnpc.cjs} +1 -1
  19. package/es2015/cashier-page.cjs +1 -1
  20. package/es2015/cashier-page.js +1 -1
  21. package/package.json +1 -1
  22. package/components/CashierHeader-BoLyGION.cjs +0 -1
  23. package/components/CashierHeader-CtBr830V.js +0 -360
  24. package/components/CashierIframeRedirect-1PN9GcuI.cjs +0 -1
  25. package/components/CashierPage-DM0fP8Rx.cjs +0 -1
  26. package/components/CashierSessionExpirationModal-CVWFJuJu.cjs +0 -2
@@ -1,6 +1,6 @@
1
1
  import { S as ve, b as we, f as y, c as ye, a as ke, d as Pe, g as b, j as D, I as _, k as T, n as j, v as B, w as be, K as E, M as De, h as I, l as C, A as J, C as Ve } from "./CashierConfirmModal-Bho8FqJK.js";
2
- import { a as Se, i as Ae, $ as Ce, b as Oe } from "./CashierError-TXPAe0Cm.js";
3
- import { d as H, u as _e } from "./CashierMethodDetails-DAEBrtAl.js";
2
+ import { a as Se, i as Ae, $ as Ce, b as Oe } from "./CashierError-B6Kgc33u.js";
3
+ import { d as H, u as _e } from "./CashierMethodDetails-C1YDBrNk.js";
4
4
  function N(o, i) {
5
5
  Se(o, i);
6
6
  }
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./CashierConfirmModal-KmRU3Mgr.cjs"),C=require("./CashierError-DrXIvPhH.cjs"),B=require("./CashierMethodDetails-D1h4bAJX.cjs");function I(n,i){C.addMessages(n,i)}function ce(n){C.init({fallbackLocale:"en"}),C.$locale.set(n)}const x={en:{"verification.idenfy.referred-awaiting":"ID verification is in progress. We will inform you as soon as verification is completed and you can withdraw money back","verification.message.failed":"We apologize, but we were unable to verify your account. Please contact support team","verification.idenfy.link-name":"link","verification.idenfy.in-progress":"To withdraw funds to your account you are required to pass user verification. Please have your ID ready and follow the {link} to start verification","verification.shuftipro.in-progress.Biometric":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification.","verification.shuftipro.in-progress.Biometric.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {Documents} verification.","verification.shuftipro.in-progress.Biometric.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification, {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Biometric.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification.","verification.shuftipro.in-progress.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {ProofOfAddress} verification.","verification.shuftipro.link-name.Biometric":"Biometric","verification.shuftipro.link-name.Documents":"Documents","verification.shuftipro.link-name.ProofOfAddress":"Proof Of Address","verification.shuftipro.validations-started":"After completing verification, please proceed with the transaction"},tr:{"verification.idenfy.referred-awaiting":"Kimlik doğrulaması işlemde. Doğrulama tamamlandığında size haber vereceğiz","verification.message.failed":"Döküman doğrulama başarısız, hesabınız doğrulanamadı","verification.idenfy.link-name":"link","verification.idenfy.in-progress":"Hesabınızdan çekim yapabilmek için kullanıcı doğrulaması gerekiyor. Lütfen kimliğinizi hazır edin ve {link} adresinden doğrulamayı başlatın","verification.shuftipro.in-progress.Biometric":"İşlemi gerçekleştirmek için kullanıcı doğrulamasını geçmeniz gerekmektedir. Doğrulamayı başlatmak için Lütfen linke tıklayın {Biometric}","verification.shuftipro.in-progress.Biometric.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {Documents} verification.","verification.shuftipro.in-progress.Biometric.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification, {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Biometric.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification.","verification.shuftipro.in-progress.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {ProofOfAddress} verification.","verification.shuftipro.link-name.Biometric":"Doğrulama Yap","verification.shuftipro.link-name.Documents":"Documents","verification.shuftipro.link-name.ProofOfAddress":"Proof Of Address","verification.shuftipro.validations-started":"Lütfen Doğrulamayı tamamladıktan sonra işleme devam ediniz"},hr:{"verification.idenfy.referred-awaiting":"ID verification is in progress. We will inform you as soon as verification is completed and you can withdraw money back","verification.message.failed":"We apologize, but we were unable to verify your account. Please contact support team","verification.idenfy.link-name":"link","verification.idenfy.in-progress":"To withdraw funds to your account you are required to pass user verification. Please have your ID ready and follow the {link} to start verification","verification.shuftipro.in-progress.Biometric":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification.","verification.shuftipro.in-progress.Biometric.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {Documents} verification.","verification.shuftipro.in-progress.Biometric.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification, {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Biometric.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification.","verification.shuftipro.in-progress.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {ProofOfAddress} verification.","verification.shuftipro.link-name.Biometric":"Biometric","verification.shuftipro.link-name.Documents":"Documents","verification.shuftipro.link-name.ProofOfAddress":"Proof Of Address","verification.shuftipro.validations-started":"After completing verification, please proceed with the transaction"}};function fe(n){r.append_styles(n,"svelte-73xn81","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;-webkit-tap-highlight-color:transparent}.CashierVerifications{box-shadow:0 0 4px var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1))}.CashierVerifications.CashierVerificationsDesktop{border-radius:var(--mmw--border-radius-medium-plus, 6px);overflow:hidden}.CashierVerifications.CashierVerificationsDesktop:has(.CashierVerificationMessage){margin-bottom:var(--emw--spacing-small, 12px)}.CashierVerificationsWrapper{display:flex;flex-direction:column;width:100%}.IconVerification{width:30px;display:flex}.CashierVerificationMessage{display:flex;align-items:center;box-sizing:border-box;background:var(--emw--color-gray-50, #F7F8FA);border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);padding:0 var(--emw--spacing-small, 12px);transition:0.5s;max-height:500px}.CashierVerificationMessage:first-child{cursor:pointer}.CashierVerificationMessage:first-child:hover{background:linear-gradient(0, var(--emw--color-gray-50, #F7F8FA) 0%, var(--emw--color-white, #fff) 100%)}.CashierVerificationMessage:not(.ShowAll):not(:first-child){max-height:0;overflow:hidden}.CashierVerificationMessage:hover .CashierVerificationChevron svg path{opacity:1}svg{height:20px}svg .IconColor{fill:var(--emw--color-warning, #ec9109)}p{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-small, 14px);font-family:inherit;line-height:120%;margin:var(--emw--spacing-small, 12px)}.CashierVerificationsDesktop p{font-size:var(--emw--font-size-medium, 16px)}.text{word-break:break-word}.CashierVerificationChevron{cursor:pointer;margin-left:auto}.CashierVerificationChevron svg{transition:0.25s}.CashierVerificationChevron svg path{fill:var(--mmw--color-grey-290, #666);opacity:0.5}.CashierVerificationChevron:hover svg path{opacity:1}.ShowAll .CashierVerificationChevron svg{-o-transform:rotate(180deg);-ms-transform:rotate(180deg);-moz-transform:rotate(180deg);-webkit-transform:rotate(180deg);transform:rotate(180deg)}")}function R(n,i,o){const s=n.slice();return s[43]=i[o],s[45]=o,s}function U(n){let i,o=r.ensure_array_like(n[1]),s=[];for(let l=0;l<o.length;l+=1)s[l]=j(R(n,o,l));return{c(){i=r.element("div");for(let l=0;l<s.length;l+=1)s[l].c();r.attr(i,"class","CashierVerificationsWrapper")},m(l,f){r.insert(l,i,f);for(let c=0;c<s.length;c+=1)s[c]&&s[c].m(i,null)},p(l,f){if(f[0]&22){o=r.ensure_array_like(l[1]);let c;for(c=0;c<o.length;c+=1){const p=R(l,o,c);s[c]?s[c].p(p,f):(s[c]=j(p),s[c].c(),s[c].m(i,null))}for(;c<s.length;c+=1)s[c].d(1);s.length=o.length}},d(l){l&&r.detach(i),r.destroy_each(s,l)}}}function z(n){let i,o,s;function l(...f){return n[13](n[45],...f)}return{c(){i=r.element("span"),i.innerHTML='<svg width="25px" height="25px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1ZM8.70711 9.79289C8.31658 9.40237 7.68342 9.40237 7.29289 9.79289C6.90237 10.1834 6.90237 10.8166 7.29289 11.2071L11.2929 15.2071C11.6834 15.5976 12.3166 15.5976 12.7071 15.2071L16.7071 11.2071C17.0976 10.8166 17.0976 10.1834 16.7071 9.79289C16.3166 9.40237 15.6834 9.40237 15.2929 9.79289L12 13.0858L8.70711 9.79289Z" fill="#000000"></path></svg>',r.attr(i,"class","CashierVerificationChevron")},m(f,c){r.insert(f,i,c),o||(s=r.listen(i,"click",l),o=!0)},p(f,c){n=f},d(f){f&&r.detach(i),o=!1,s()}}}function j(n){let i,o,s,l,f=n[43]+"",c,p,v,k,u=n[1].length>1&&n[45]===0&&z(n);function P(...h){return n[14](n[45],...h)}return{c(){i=r.element("div"),o=r.element("div"),o.innerHTML='<svg width="64px" height="64px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" stroke="#ffffff"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"><path d="M4.39254 16.2614C2.64803 13.1941 1.66074 9.71783 1.51646 6.15051C1.50127 5.77507 1.70918 5.42812 2.04153 5.25282L11.5335 0.246091C11.8254 0.0920859 12.1746 0.0920859 12.4665 0.246091L21.9585 5.25282C22.2908 5.42812 22.4987 5.77507 22.4835 6.15051C22.3393 9.71783 21.352 13.1941 19.6075 16.2614C17.8618 19.3307 15.4169 21.8869 12.4986 23.7001C12.1931 23.8899 11.8069 23.8899 11.5014 23.7001C8.58313 21.8869 6.13817 19.3307 4.39254 16.2614Z" fill="#fa9200"></path><path d="M8.25 12.75L11.25 15L17.25 9" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></g></svg>',s=r.space(),l=r.element("p"),c=r.space(),u&&u.c(),p=r.space(),r.attr(o,"class","IconVerification"),r.attr(l,"class","text"),r.attr(i,"class","CashierVerificationMessage"),r.toggle_class(i,"ShowAll",n[2])},m(h,w){r.insert(h,i,w),r.append(i,o),r.append(i,s),r.append(i,l),l.innerHTML=f,r.append(i,c),u&&u.m(i,null),r.append(i,p),v||(k=r.listen(i,"click",P),v=!0)},p(h,w){n=h,w[0]&2&&f!==(f=n[43]+"")&&(l.innerHTML=f),n[1].length>1&&n[45]===0?u?u.p(n,w):(u=z(n),u.c(),u.m(i,p)):u&&(u.d(1),u=null),w[0]&4&&r.toggle_class(i,"ShowAll",n[2])},d(h){h&&r.detach(i),u&&u.d(),v=!1,k()}}}function ue(n){let i,o=n[1]&&U(n);return{c(){i=r.element("div"),o&&o.c(),r.attr(i,"class","CashierVerifications"),r.toggle_class(i,"CashierVerificationsDesktop",n[3])},m(s,l){r.insert(s,i,l),o&&o.m(i,null),n[15](i)},p(s,l){s[1]?o?o.p(s,l):(o=U(s),o.c(),o.m(i,null)):o&&(o.d(1),o=null),l[0]&8&&r.toggle_class(i,"CashierVerificationsDesktop",s[3])},i:r.noop,o:r.noop,d(s){s&&r.detach(i),o&&o.d(),n[15](null)}}}function de(n,i,o){let s;r.component_subscribe(n,C.$format,e=>o(21,s=e)),B.dayjs.extend(B.utc);let{endpoint:l}=i,{lang:f="en"}=i,{translationurl:c=""}=i,{clientstyling:p=""}=i,{clientstylingurl:v=""}=i,{session:k=""}=i,{customerid:u=""}=i,{ismobileview:P=""}=i,h,w=new Set,M=new Set,S,A,_=!0,q=!0;var b;(function(e){e.Manual="Manual",e.ShuftiPro="ShuftiPro"})(b||(b={}));var O;(function(e){e.Requested="Requested"})(O||(O={}));var m;(function(e){e.Unknown="Unknown",e.Unverified="Unverified",e.InProgress="InProgress",e.Failed="Failed",e.Verified="Verified",e.Referred="Referred",e.True="True",e.False="False",e.AwaitingForResponse="AwaitingForResponse"})(m||(m={}));var D;(function(e){e.Unknown="Unknown",e.Documents="Documents",e.Age="Age",e.Pep="Pep",e.Sanction="Sanction",e.Aml="Aml",e.ProofOfAddress="ProofOfAddress",e.SourceOfWealth="SourceOfWealth",e.SocialMedia="SocialMedia",e.Biometric="Biometric"})(D||(D={}));const H=[m.InProgress,m.Referred,m.AwaitingForResponse],N=()=>{let e=c;if(e)return fetch(e).then(t=>t.json()).then(t=>{Object.keys(t).forEach(a=>{I(a,t[a])})}).catch(t=>{console.log(t)})};Object.keys(x).forEach(e=>{I(e,x[e])});const W=()=>{ce(f)},K=()=>{let e=document.createElement("style");e.innerHTML=p,h.appendChild(e)},Y=()=>{let e=new URL(v),t=document.createElement("style");fetch(e.href).then(a=>a.text()).then(a=>{t.innerHTML=a,setTimeout(()=>{h.appendChild(t)},1)})},G=()=>{const{merchantId:e,customerId:t}=Z();if(!e)return;const a=new URL(`${l}/v1/player/verification/GetKYCStatus`),d=new Headers;d.append("accept","application/json"),d.append("Content-Type","application/json"),d.append("X-Client-Request-Timestamp",B.dayjs.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));const y={method:"POST",headers:d,body:JSON.stringify({MerchantId:e,CustomerId:t,All:!1,AllParameters:!1})};fetch(a,y).then(V=>V.json()).then(V=>{S=J(V.Verifications),S.VerificationStatuses.forEach(g=>{g.VerificationUrlType!=="Widget"&&w.add(g.Vendor)}),o(1,A=F())})},Z=()=>{let e=k.split(".")[1];if(e){let t=JSON.parse(atob(e));return{merchantId:t==null?void 0:t.mid,customerId:`${t==null?void 0:t.mid}~${u}`}}return{merchantId:null,customerId:null}},J=e=>{var a;if(!e||!e.length)return{VerificationSummaryStatus:m.Unverified,VerificationStatuses:[]};const t=Q(e);if(t&&t.length){const d=X(t);return{VerificationSummaryStatus:d.Status,VerificationUrl:(a=d.Flags)==null?void 0:a.DeferredUrlKey,VerificationStatuses:L(t,d.Status)}}else return{VerificationSummaryStatus:e.some(y=>y.Status===m.Failed)?m.Failed:m.Verified,VerificationStatuses:L(e,[m.Failed])}},X=e=>e.reduce((t,a)=>t?new Date(t)<new Date(a)?a:t:a,0),L=(e,t)=>e.filter(a=>t.includes(a.Status)).map(a=>{var d,y;return{Type:a.Type,Vendor:a.VendorName,VerificationDocuments:a.Documents?[...Object.values(a.Documents)]:[],VerificationUrlType:(d=a.Flags)==null?void 0:d.DeferredUrlTypeKey,VerificationUrl:(y=a.Flags)==null?void 0:y.DeferredUrlKey}}),Q=e=>e.filter(t=>H.includes(t.Status)?t.Flags&&t.Flags.DeferredUrlKey||$(t)||ee(t):!1),$=e=>{const t=e.Documents&&e.VendorName===b.Manual,a=Object.values(e.Documents).some(d=>d.Status===O.Requested);return t&&a},ee=e=>e.VendorName===b.ShuftiPro&&e.Status===m.Referred,F=()=>{switch(S.VerificationSummaryStatus){case m.InProgress:const e=[];return w.forEach(t=>{e.push(ie(t))}),e;case m.Referred:return[s("verification.idenfy.referred-awaiting")];case m.Failed:return[s("verification.message.failed")]}},ie=e=>{const t=S.VerificationStatuses.filter(a=>a.Vendor===e);if(e===b.ShuftiPro)return te(t);{const a=s("verification.idenfy.link-name"),d={link:`<a href="${t[0].VerificationUrl}" target="_blank">${a}</a>`};return s("verification.idenfy.in-progress",{values:d})}},te=e=>{const t=[],a={},d=[D.Biometric,D.Documents,D.ProofOfAddress];e.forEach(g=>{d.includes(g.Type)&&(t.push(g.Type),a[g.Type]=re(g,oe(g.Type)))});let y=t.every(g=>M.has(g)),V=`verification.shuftipro.in-progress.${t.sort().join(".")}`;return y?s("verification.shuftipro.validations-started"):s(V,{values:a})},re=(e,t)=>`<a class="verificationLink ${e.Type}" href=" ${e.VerificationUrl} " target="_blank">${t}</a>`,oe=e=>s(`verification.shuftipro.link-name.${e}`),T=(e,t)=>{if(e.stopPropagation(),e.target&&(e.target.href||e.target.closest("a"))){if(e.target.closest(".verificationLink")){const a=e.target.className.split(" ")[1];M.add(a),o(1,A=F())}return}t===0&&o(2,_=!_)},ne=()=>{o(3,q=P==="false")},se=(e,t)=>T(t,e),ae=(e,t)=>T(t,e);function le(e){r.binding_callbacks[e?"unshift":"push"](()=>{h=e,o(0,h)})}return n.$$set=e=>{"endpoint"in e&&o(5,l=e.endpoint),"lang"in e&&o(6,f=e.lang),"translationurl"in e&&o(7,c=e.translationurl),"clientstyling"in e&&o(8,p=e.clientstyling),"clientstylingurl"in e&&o(9,v=e.clientstylingurl),"session"in e&&o(10,k=e.session),"customerid"in e&&o(11,u=e.customerid),"ismobileview"in e&&o(12,P=e.ismobileview)},n.$$.update=()=>{n.$$.dirty[0]&64&&f&&W(),n.$$.dirty[0]&1056&&l&&k&&G(),n.$$.dirty[0]&128&&c&&N(),n.$$.dirty[0]&257&&p&&h&&K(),n.$$.dirty[0]&513&&v&&h&&Y(),n.$$.dirty[0]&4096&&P&&ne()},[h,A,_,q,T,l,f,c,p,v,k,u,P,se,ae,le]}class E extends r.SvelteComponent{constructor(i){super(),r.init(this,i,de,ue,r.safe_not_equal,{endpoint:5,lang:6,translationurl:7,clientstyling:8,clientstylingurl:9,session:10,customerid:11,ismobileview:12},fe,[-1,-1])}get endpoint(){return this.$$.ctx[5]}set endpoint(i){this.$$set({endpoint:i}),r.flush()}get lang(){return this.$$.ctx[6]}set lang(i){this.$$set({lang:i}),r.flush()}get translationurl(){return this.$$.ctx[7]}set translationurl(i){this.$$set({translationurl:i}),r.flush()}get clientstyling(){return this.$$.ctx[8]}set clientstyling(i){this.$$set({clientstyling:i}),r.flush()}get clientstylingurl(){return this.$$.ctx[9]}set clientstylingurl(i){this.$$set({clientstylingurl:i}),r.flush()}get session(){return this.$$.ctx[10]}set session(i){this.$$set({session:i}),r.flush()}get customerid(){return this.$$.ctx[11]}set customerid(i){this.$$set({customerid:i}),r.flush()}get ismobileview(){return this.$$.ctx[12]}set ismobileview(i){this.$$set({ismobileview:i}),r.flush()}}r.create_custom_element(E,{endpoint:{},lang:{},translationurl:{},clientstyling:{},clientstylingurl:{},session:{},customerid:{},ismobileview:{}},[],[],!0);exports.default=E;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./CashierConfirmModal-KmRU3Mgr.cjs"),C=require("./CashierError-B6IaVYAb.cjs"),B=require("./CashierMethodDetails-_tjsOJpf.cjs");function I(n,i){C.addMessages(n,i)}function ce(n){C.init({fallbackLocale:"en"}),C.$locale.set(n)}const x={en:{"verification.idenfy.referred-awaiting":"ID verification is in progress. We will inform you as soon as verification is completed and you can withdraw money back","verification.message.failed":"We apologize, but we were unable to verify your account. Please contact support team","verification.idenfy.link-name":"link","verification.idenfy.in-progress":"To withdraw funds to your account you are required to pass user verification. Please have your ID ready and follow the {link} to start verification","verification.shuftipro.in-progress.Biometric":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification.","verification.shuftipro.in-progress.Biometric.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {Documents} verification.","verification.shuftipro.in-progress.Biometric.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification, {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Biometric.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification.","verification.shuftipro.in-progress.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {ProofOfAddress} verification.","verification.shuftipro.link-name.Biometric":"Biometric","verification.shuftipro.link-name.Documents":"Documents","verification.shuftipro.link-name.ProofOfAddress":"Proof Of Address","verification.shuftipro.validations-started":"After completing verification, please proceed with the transaction"},tr:{"verification.idenfy.referred-awaiting":"Kimlik doğrulaması işlemde. Doğrulama tamamlandığında size haber vereceğiz","verification.message.failed":"Döküman doğrulama başarısız, hesabınız doğrulanamadı","verification.idenfy.link-name":"link","verification.idenfy.in-progress":"Hesabınızdan çekim yapabilmek için kullanıcı doğrulaması gerekiyor. Lütfen kimliğinizi hazır edin ve {link} adresinden doğrulamayı başlatın","verification.shuftipro.in-progress.Biometric":"İşlemi gerçekleştirmek için kullanıcı doğrulamasını geçmeniz gerekmektedir. Doğrulamayı başlatmak için Lütfen linke tıklayın {Biometric}","verification.shuftipro.in-progress.Biometric.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {Documents} verification.","verification.shuftipro.in-progress.Biometric.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification, {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Biometric.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification.","verification.shuftipro.in-progress.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {ProofOfAddress} verification.","verification.shuftipro.link-name.Biometric":"Doğrulama Yap","verification.shuftipro.link-name.Documents":"Documents","verification.shuftipro.link-name.ProofOfAddress":"Proof Of Address","verification.shuftipro.validations-started":"Lütfen Doğrulamayı tamamladıktan sonra işleme devam ediniz"},hr:{"verification.idenfy.referred-awaiting":"ID verification is in progress. We will inform you as soon as verification is completed and you can withdraw money back","verification.message.failed":"We apologize, but we were unable to verify your account. Please contact support team","verification.idenfy.link-name":"link","verification.idenfy.in-progress":"To withdraw funds to your account you are required to pass user verification. Please have your ID ready and follow the {link} to start verification","verification.shuftipro.in-progress.Biometric":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification.","verification.shuftipro.in-progress.Biometric.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {Documents} verification.","verification.shuftipro.in-progress.Biometric.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification, {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Biometric.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification.","verification.shuftipro.in-progress.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {ProofOfAddress} verification.","verification.shuftipro.link-name.Biometric":"Biometric","verification.shuftipro.link-name.Documents":"Documents","verification.shuftipro.link-name.ProofOfAddress":"Proof Of Address","verification.shuftipro.validations-started":"After completing verification, please proceed with the transaction"}};function fe(n){r.append_styles(n,"svelte-73xn81","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;-webkit-tap-highlight-color:transparent}.CashierVerifications{box-shadow:0 0 4px var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1))}.CashierVerifications.CashierVerificationsDesktop{border-radius:var(--mmw--border-radius-medium-plus, 6px);overflow:hidden}.CashierVerifications.CashierVerificationsDesktop:has(.CashierVerificationMessage){margin-bottom:var(--emw--spacing-small, 12px)}.CashierVerificationsWrapper{display:flex;flex-direction:column;width:100%}.IconVerification{width:30px;display:flex}.CashierVerificationMessage{display:flex;align-items:center;box-sizing:border-box;background:var(--emw--color-gray-50, #F7F8FA);border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);padding:0 var(--emw--spacing-small, 12px);transition:0.5s;max-height:500px}.CashierVerificationMessage:first-child{cursor:pointer}.CashierVerificationMessage:first-child:hover{background:linear-gradient(0, var(--emw--color-gray-50, #F7F8FA) 0%, var(--emw--color-white, #fff) 100%)}.CashierVerificationMessage:not(.ShowAll):not(:first-child){max-height:0;overflow:hidden}.CashierVerificationMessage:hover .CashierVerificationChevron svg path{opacity:1}svg{height:20px}svg .IconColor{fill:var(--emw--color-warning, #ec9109)}p{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-small, 14px);font-family:inherit;line-height:120%;margin:var(--emw--spacing-small, 12px)}.CashierVerificationsDesktop p{font-size:var(--emw--font-size-medium, 16px)}.text{word-break:break-word}.CashierVerificationChevron{cursor:pointer;margin-left:auto}.CashierVerificationChevron svg{transition:0.25s}.CashierVerificationChevron svg path{fill:var(--mmw--color-grey-290, #666);opacity:0.5}.CashierVerificationChevron:hover svg path{opacity:1}.ShowAll .CashierVerificationChevron svg{-o-transform:rotate(180deg);-ms-transform:rotate(180deg);-moz-transform:rotate(180deg);-webkit-transform:rotate(180deg);transform:rotate(180deg)}")}function R(n,i,o){const s=n.slice();return s[43]=i[o],s[45]=o,s}function U(n){let i,o=r.ensure_array_like(n[1]),s=[];for(let l=0;l<o.length;l+=1)s[l]=j(R(n,o,l));return{c(){i=r.element("div");for(let l=0;l<s.length;l+=1)s[l].c();r.attr(i,"class","CashierVerificationsWrapper")},m(l,f){r.insert(l,i,f);for(let c=0;c<s.length;c+=1)s[c]&&s[c].m(i,null)},p(l,f){if(f[0]&22){o=r.ensure_array_like(l[1]);let c;for(c=0;c<o.length;c+=1){const p=R(l,o,c);s[c]?s[c].p(p,f):(s[c]=j(p),s[c].c(),s[c].m(i,null))}for(;c<s.length;c+=1)s[c].d(1);s.length=o.length}},d(l){l&&r.detach(i),r.destroy_each(s,l)}}}function z(n){let i,o,s;function l(...f){return n[13](n[45],...f)}return{c(){i=r.element("span"),i.innerHTML='<svg width="25px" height="25px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1ZM8.70711 9.79289C8.31658 9.40237 7.68342 9.40237 7.29289 9.79289C6.90237 10.1834 6.90237 10.8166 7.29289 11.2071L11.2929 15.2071C11.6834 15.5976 12.3166 15.5976 12.7071 15.2071L16.7071 11.2071C17.0976 10.8166 17.0976 10.1834 16.7071 9.79289C16.3166 9.40237 15.6834 9.40237 15.2929 9.79289L12 13.0858L8.70711 9.79289Z" fill="#000000"></path></svg>',r.attr(i,"class","CashierVerificationChevron")},m(f,c){r.insert(f,i,c),o||(s=r.listen(i,"click",l),o=!0)},p(f,c){n=f},d(f){f&&r.detach(i),o=!1,s()}}}function j(n){let i,o,s,l,f=n[43]+"",c,p,v,k,u=n[1].length>1&&n[45]===0&&z(n);function P(...h){return n[14](n[45],...h)}return{c(){i=r.element("div"),o=r.element("div"),o.innerHTML='<svg width="64px" height="64px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" stroke="#ffffff"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"><path d="M4.39254 16.2614C2.64803 13.1941 1.66074 9.71783 1.51646 6.15051C1.50127 5.77507 1.70918 5.42812 2.04153 5.25282L11.5335 0.246091C11.8254 0.0920859 12.1746 0.0920859 12.4665 0.246091L21.9585 5.25282C22.2908 5.42812 22.4987 5.77507 22.4835 6.15051C22.3393 9.71783 21.352 13.1941 19.6075 16.2614C17.8618 19.3307 15.4169 21.8869 12.4986 23.7001C12.1931 23.8899 11.8069 23.8899 11.5014 23.7001C8.58313 21.8869 6.13817 19.3307 4.39254 16.2614Z" fill="#fa9200"></path><path d="M8.25 12.75L11.25 15L17.25 9" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></g></svg>',s=r.space(),l=r.element("p"),c=r.space(),u&&u.c(),p=r.space(),r.attr(o,"class","IconVerification"),r.attr(l,"class","text"),r.attr(i,"class","CashierVerificationMessage"),r.toggle_class(i,"ShowAll",n[2])},m(h,w){r.insert(h,i,w),r.append(i,o),r.append(i,s),r.append(i,l),l.innerHTML=f,r.append(i,c),u&&u.m(i,null),r.append(i,p),v||(k=r.listen(i,"click",P),v=!0)},p(h,w){n=h,w[0]&2&&f!==(f=n[43]+"")&&(l.innerHTML=f),n[1].length>1&&n[45]===0?u?u.p(n,w):(u=z(n),u.c(),u.m(i,p)):u&&(u.d(1),u=null),w[0]&4&&r.toggle_class(i,"ShowAll",n[2])},d(h){h&&r.detach(i),u&&u.d(),v=!1,k()}}}function ue(n){let i,o=n[1]&&U(n);return{c(){i=r.element("div"),o&&o.c(),r.attr(i,"class","CashierVerifications"),r.toggle_class(i,"CashierVerificationsDesktop",n[3])},m(s,l){r.insert(s,i,l),o&&o.m(i,null),n[15](i)},p(s,l){s[1]?o?o.p(s,l):(o=U(s),o.c(),o.m(i,null)):o&&(o.d(1),o=null),l[0]&8&&r.toggle_class(i,"CashierVerificationsDesktop",s[3])},i:r.noop,o:r.noop,d(s){s&&r.detach(i),o&&o.d(),n[15](null)}}}function de(n,i,o){let s;r.component_subscribe(n,C.$format,e=>o(21,s=e)),B.dayjs.extend(B.utc);let{endpoint:l}=i,{lang:f="en"}=i,{translationurl:c=""}=i,{clientstyling:p=""}=i,{clientstylingurl:v=""}=i,{session:k=""}=i,{customerid:u=""}=i,{ismobileview:P=""}=i,h,w=new Set,M=new Set,S,A,_=!0,q=!0;var b;(function(e){e.Manual="Manual",e.ShuftiPro="ShuftiPro"})(b||(b={}));var O;(function(e){e.Requested="Requested"})(O||(O={}));var m;(function(e){e.Unknown="Unknown",e.Unverified="Unverified",e.InProgress="InProgress",e.Failed="Failed",e.Verified="Verified",e.Referred="Referred",e.True="True",e.False="False",e.AwaitingForResponse="AwaitingForResponse"})(m||(m={}));var D;(function(e){e.Unknown="Unknown",e.Documents="Documents",e.Age="Age",e.Pep="Pep",e.Sanction="Sanction",e.Aml="Aml",e.ProofOfAddress="ProofOfAddress",e.SourceOfWealth="SourceOfWealth",e.SocialMedia="SocialMedia",e.Biometric="Biometric"})(D||(D={}));const H=[m.InProgress,m.Referred,m.AwaitingForResponse],N=()=>{let e=c;if(e)return fetch(e).then(t=>t.json()).then(t=>{Object.keys(t).forEach(a=>{I(a,t[a])})}).catch(t=>{console.log(t)})};Object.keys(x).forEach(e=>{I(e,x[e])});const W=()=>{ce(f)},K=()=>{let e=document.createElement("style");e.innerHTML=p,h.appendChild(e)},Y=()=>{let e=new URL(v),t=document.createElement("style");fetch(e.href).then(a=>a.text()).then(a=>{t.innerHTML=a,setTimeout(()=>{h.appendChild(t)},1)})},G=()=>{const{merchantId:e,customerId:t}=Z();if(!e)return;const a=new URL(`${l}/v1/player/verification/GetKYCStatus`),d=new Headers;d.append("accept","application/json"),d.append("Content-Type","application/json"),d.append("X-Client-Request-Timestamp",B.dayjs.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));const y={method:"POST",headers:d,body:JSON.stringify({MerchantId:e,CustomerId:t,All:!1,AllParameters:!1})};fetch(a,y).then(V=>V.json()).then(V=>{S=J(V.Verifications),S.VerificationStatuses.forEach(g=>{g.VerificationUrlType!=="Widget"&&w.add(g.Vendor)}),o(1,A=F())})},Z=()=>{let e=k.split(".")[1];if(e){let t=JSON.parse(atob(e));return{merchantId:t==null?void 0:t.mid,customerId:`${t==null?void 0:t.mid}~${u}`}}return{merchantId:null,customerId:null}},J=e=>{var a;if(!e||!e.length)return{VerificationSummaryStatus:m.Unverified,VerificationStatuses:[]};const t=Q(e);if(t&&t.length){const d=X(t);return{VerificationSummaryStatus:d.Status,VerificationUrl:(a=d.Flags)==null?void 0:a.DeferredUrlKey,VerificationStatuses:L(t,d.Status)}}else return{VerificationSummaryStatus:e.some(y=>y.Status===m.Failed)?m.Failed:m.Verified,VerificationStatuses:L(e,[m.Failed])}},X=e=>e.reduce((t,a)=>t?new Date(t)<new Date(a)?a:t:a,0),L=(e,t)=>e.filter(a=>t.includes(a.Status)).map(a=>{var d,y;return{Type:a.Type,Vendor:a.VendorName,VerificationDocuments:a.Documents?[...Object.values(a.Documents)]:[],VerificationUrlType:(d=a.Flags)==null?void 0:d.DeferredUrlTypeKey,VerificationUrl:(y=a.Flags)==null?void 0:y.DeferredUrlKey}}),Q=e=>e.filter(t=>H.includes(t.Status)?t.Flags&&t.Flags.DeferredUrlKey||$(t)||ee(t):!1),$=e=>{const t=e.Documents&&e.VendorName===b.Manual,a=Object.values(e.Documents).some(d=>d.Status===O.Requested);return t&&a},ee=e=>e.VendorName===b.ShuftiPro&&e.Status===m.Referred,F=()=>{switch(S.VerificationSummaryStatus){case m.InProgress:const e=[];return w.forEach(t=>{e.push(ie(t))}),e;case m.Referred:return[s("verification.idenfy.referred-awaiting")];case m.Failed:return[s("verification.message.failed")]}},ie=e=>{const t=S.VerificationStatuses.filter(a=>a.Vendor===e);if(e===b.ShuftiPro)return te(t);{const a=s("verification.idenfy.link-name"),d={link:`<a href="${t[0].VerificationUrl}" target="_blank">${a}</a>`};return s("verification.idenfy.in-progress",{values:d})}},te=e=>{const t=[],a={},d=[D.Biometric,D.Documents,D.ProofOfAddress];e.forEach(g=>{d.includes(g.Type)&&(t.push(g.Type),a[g.Type]=re(g,oe(g.Type)))});let y=t.every(g=>M.has(g)),V=`verification.shuftipro.in-progress.${t.sort().join(".")}`;return y?s("verification.shuftipro.validations-started"):s(V,{values:a})},re=(e,t)=>`<a class="verificationLink ${e.Type}" href=" ${e.VerificationUrl} " target="_blank">${t}</a>`,oe=e=>s(`verification.shuftipro.link-name.${e}`),T=(e,t)=>{if(e.stopPropagation(),e.target&&(e.target.href||e.target.closest("a"))){if(e.target.closest(".verificationLink")){const a=e.target.className.split(" ")[1];M.add(a),o(1,A=F())}return}t===0&&o(2,_=!_)},ne=()=>{o(3,q=P==="false")},se=(e,t)=>T(t,e),ae=(e,t)=>T(t,e);function le(e){r.binding_callbacks[e?"unshift":"push"](()=>{h=e,o(0,h)})}return n.$$set=e=>{"endpoint"in e&&o(5,l=e.endpoint),"lang"in e&&o(6,f=e.lang),"translationurl"in e&&o(7,c=e.translationurl),"clientstyling"in e&&o(8,p=e.clientstyling),"clientstylingurl"in e&&o(9,v=e.clientstylingurl),"session"in e&&o(10,k=e.session),"customerid"in e&&o(11,u=e.customerid),"ismobileview"in e&&o(12,P=e.ismobileview)},n.$$.update=()=>{n.$$.dirty[0]&64&&f&&W(),n.$$.dirty[0]&1056&&l&&k&&G(),n.$$.dirty[0]&128&&c&&N(),n.$$.dirty[0]&257&&p&&h&&K(),n.$$.dirty[0]&513&&v&&h&&Y(),n.$$.dirty[0]&4096&&P&&ne()},[h,A,_,q,T,l,f,c,p,v,k,u,P,se,ae,le]}class E extends r.SvelteComponent{constructor(i){super(),r.init(this,i,de,ue,r.safe_not_equal,{endpoint:5,lang:6,translationurl:7,clientstyling:8,clientstylingurl:9,session:10,customerid:11,ismobileview:12},fe,[-1,-1])}get endpoint(){return this.$$.ctx[5]}set endpoint(i){this.$$set({endpoint:i}),r.flush()}get lang(){return this.$$.ctx[6]}set lang(i){this.$$set({lang:i}),r.flush()}get translationurl(){return this.$$.ctx[7]}set translationurl(i){this.$$set({translationurl:i}),r.flush()}get clientstyling(){return this.$$.ctx[8]}set clientstyling(i){this.$$set({clientstyling:i}),r.flush()}get clientstylingurl(){return this.$$.ctx[9]}set clientstylingurl(i){this.$$set({clientstylingurl:i}),r.flush()}get session(){return this.$$.ctx[10]}set session(i){this.$$set({session:i}),r.flush()}get customerid(){return this.$$.ctx[11]}set customerid(i){this.$$set({customerid:i}),r.flush()}get ismobileview(){return this.$$.ctx[12]}set ismobileview(i){this.$$set({ismobileview:i}),r.flush()}}r.create_custom_element(E,{endpoint:{},lang:{},translationurl:{},clientstyling:{},clientstylingurl:{},session:{},customerid:{},ismobileview:{}},[],[],!0);exports.default=E;
@@ -1 +1 @@
1
- "use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CashierPage-DM0fP8Rx.cjs")).then(({default:t})=>{!customElements.get("cashier-page")&&customElements.define("cashier-page",t.element)})}
1
+ "use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CashierPage-BuM08oLP.cjs")).then(({default:t})=>{!customElements.get("cashier-page")&&customElements.define("cashier-page",t.element)})}
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
10
10
  }
11
11
  };
12
12
  };
13
- customElements.define = n(customElements.define), import("../components/CashierPage-BhrKkBZk.js").then(({ default: t }) => {
13
+ customElements.define = n(customElements.define), import("../components/CashierPage-nz3KNFC4.js").then(({ default: t }) => {
14
14
  !customElements.get("cashier-page") && customElements.define("cashier-page", t.element);
15
15
  });
16
16
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/cashier-page",
3
- "version": "1.46.0",
3
+ "version": "1.47.0",
4
4
  "type": "module",
5
5
  "main": "es2015/cashier-page.cjs",
6
6
  "module": "es2015/cashier-page.js",
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CashierConfirmModal-KmRU3Mgr.cjs"),C=require("./CashierError-DrXIvPhH.cjs");function y(n,e){C.addMessages(n,e)}function O(n){C.init({fallbackLocale:"en"}),C.$locale.set(n)}const k={en:{header:{general:"Cashier",deposit:"Deposit",withdraw:"Withdraw"}},tr:{header:{general:"Cashier",deposit:"Para Yatır",withdraw:"Çekim"}}};function q(n){t.append_styles(n,"svelte-bbilb",".CashierHeader{display:flex;position:relative;align-items:center;height:var(--mmw--header-height, 40px);background-color:var(--mmw--color-grey-105, #E8E9EB);width:100%;border-radius:6px 6px 0 0}.CashierHeaderLeftButton{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);margin-bottom:0;position:absolute;display:flex;align-items:center;font-variant:all-small-caps;height:32px;left:7px;gap:2px;cursor:pointer}.CashierHeaderLeftButton svg path{fill:var(--mmw--color-grey-10, #111)}.CashierHeaderLeftButton.disabled{pointer-events:none}.CashierHeaderTitle{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-large, 18px);line-height:125%;font-weight:var(--emw--font-weight-semibold, 500);margin:auto;max-width:calc(100% - 150px);overflow:hidden;text-overflow:ellipsis}.CashierHeaderRightButton{position:absolute;display:flex;justify-content:space-between;align-items:center;padding:0 var(--emw--spacing-small, 12px);height:inherit;right:0;gap:var(--emw--spacing-small, 12px);cursor:pointer}")}const A=n=>({}),L=n=>({}),U=n=>({}),B=n=>({}),P=n=>({}),v=n=>({});function H(n){let e,i,a;return{c(){e=t.element("div"),e.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.5632 3.47782C12.4787 3.50138 12.3362 3.57505 12.2465 3.64153C12.1567 3.70806 10.8069 5.04216 9.24694 6.60626C6.11944 9.74192 6.25999 9.58204 6.25999 10.0037C6.25999 10.4243 6.13093 10.2784 9.34296 13.4903C12.4449 16.5921 12.356 16.5116 12.7278 16.5556C13.1855 16.6098 13.6413 16.2585 13.7301 15.783C13.7612 15.6164 13.7212 15.3395 13.6437 15.1847C13.6158 15.129 12.451 13.9396 11.0553 12.5417L8.51768 10L11.0553 7.45837C12.451 6.06048 13.6158 4.87114 13.6437 4.81544C13.7729 4.55751 13.7703 4.2006 13.6374 3.94274C13.4469 3.5731 12.9668 3.36532 12.5632 3.47782Z" fill="#111111"></path></svg>',t.attr(e,"class","CashierHeaderLeftButton")},m(l,u){t.insert(l,e,u),i||(a=t.listen(e,"click",n[5]),i=!0)},p:t.noop,d(l){l&&t.detach(e),i=!1,a()}}}function Z(n){let e,i=n[1]&&H(n);return{c(){i&&i.c(),e=t.empty()},m(a,l){i&&i.m(a,l),t.insert(a,e,l)},p(a,l){a[1]?i?i.p(a,l):(i=H(a),i.c(),i.m(e.parentNode,e)):i&&(i.d(1),i=null)},d(a){a&&t.detach(e),i&&i.d(a)}}}function D(n){let e,i=n[3](n[2])+"",a;return{c(){e=t.element("span"),a=t.text(i),t.attr(e,"class","CashierHeaderTitle")},m(l,u){t.insert(l,e,u),t.append(e,a)},p(l,u){u&12&&i!==(i=l[3](l[2])+"")&&t.set_data(a,i)},d(l){l&&t.detach(e)}}}function F(n){let e,i,a;return{c(){e=t.element("span"),e.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="13" height="20" viewBox="0 0 13 13" fill="none"><path d="M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z" fill="#111111"></path></svg>',t.attr(e,"class","CashierHeaderRightButton")},m(l,u){t.insert(l,e,u),i||(a=t.listen(e,"click",n[4]),i=!0)},p:t.noop,d(l){l&&t.detach(e),i=!1,a()}}}function I(n){let e,i,a,l;const u=n[13].leftButton,m=t.create_slot(u,n,n[12],v),r=m||Z(n),w=n[13].title,_=t.create_slot(w,n,n[12],B),c=_||D(n),d=n[13].rightButton,h=t.create_slot(d,n,n[12],L),g=h||F(n);return{c(){e=t.element("div"),r&&r.c(),i=t.space(),c&&c.c(),a=t.space(),g&&g.c(),t.attr(e,"class","CashierHeader")},m(s,f){t.insert(s,e,f),r&&r.m(e,null),t.append(e,i),c&&c.m(e,null),t.append(e,a),g&&g.m(e,null),n[14](e),l=!0},p(s,[f]){m?m.p&&(!l||f&4096)&&t.update_slot_base(m,u,s,s[12],l?t.get_slot_changes(u,s[12],f,P):t.get_all_dirty_from_scope(s[12]),v):r&&r.p&&(!l||f&2)&&r.p(s,l?f:-1),_?_.p&&(!l||f&4096)&&t.update_slot_base(_,w,s,s[12],l?t.get_slot_changes(w,s[12],f,U):t.get_all_dirty_from_scope(s[12]),B):c&&c.p&&(!l||f&12)&&c.p(s,l?f:-1),h&&h.p&&(!l||f&4096)&&t.update_slot_base(h,d,s,s[12],l?t.get_slot_changes(d,s[12],f,A):t.get_all_dirty_from_scope(s[12]),L)},i(s){l||(t.transition_in(r,s),t.transition_in(c,s),t.transition_in(g,s),l=!0)},o(s){t.transition_out(r,s),t.transition_out(c,s),t.transition_out(g,s),l=!1},d(s){s&&t.detach(e),r&&r.d(s),c&&c.d(s),g&&g.d(s),n[14](null)}}}function W(n,e,i){let a;t.component_subscribe(n,C.$format,o=>i(3,a=o));let{$$slots:l={},$$scope:u}=e,{clientstyling:m=""}=e,{clientstylingurl:r=""}=e,{translationurl:w=""}=e,{showbackbutton:_=""}=e,{title:c="header.general"}=e,{lang:d="en"}=e,h,g=!1,s;const f=()=>{let o=w;o&&fetch(o).then(p=>p.json()).then(p=>{Object.keys(p).forEach(b=>{y(b,p[b])})}).catch(p=>{console.log(p)})};Object.keys(k).forEach(o=>{y(o,k[o])});const M=()=>{let o=document.createElement("style");o.innerHTML=m,h.appendChild(o)},E=()=>{let o=new URL(r),p=document.createElement("style");fetch(o.href).then(b=>b.text()).then(b=>{p.innerHTML=b,setTimeout(()=>{h.appendChild(p)},1)})},S=()=>{O(d)},j=()=>{window.postMessage({type:"CloseCashier"},window.location.href)},x=()=>{window.postMessage({type:"BackCashier"},window.location.href)},R=()=>{i(1,g=!!_&&_!=="false")},z=()=>{i(2,s=c||"header.general")};function N(o){t.binding_callbacks[o?"unshift":"push"](()=>{h=o,i(0,h)})}return n.$$set=o=>{"clientstyling"in o&&i(6,m=o.clientstyling),"clientstylingurl"in o&&i(7,r=o.clientstylingurl),"translationurl"in o&&i(8,w=o.translationurl),"showbackbutton"in o&&i(9,_=o.showbackbutton),"title"in o&&i(10,c=o.title),"lang"in o&&i(11,d=o.lang),"$$scope"in o&&i(12,u=o.$$scope)},n.$$.update=()=>{n.$$.dirty&2048&&d&&S(),n.$$.dirty&3072&&d&&c&&z(),n.$$.dirty&65&&m&&h&&M(),n.$$.dirty&129&&r&&h&&E(),n.$$.dirty&2304&&d&&w&&f(),n.$$.dirty&512&&_&&R()},[h,g,s,a,j,x,m,r,w,_,c,d,u,l,N]}class T extends t.SvelteComponent{constructor(e){super(),t.init(this,e,W,I,t.safe_not_equal,{clientstyling:6,clientstylingurl:7,translationurl:8,showbackbutton:9,title:10,lang:11},q)}get clientstyling(){return this.$$.ctx[6]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[7]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get translationurl(){return this.$$.ctx[8]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}get showbackbutton(){return this.$$.ctx[9]}set showbackbutton(e){this.$$set({showbackbutton:e}),t.flush()}get title(){return this.$$.ctx[10]}set title(e){this.$$set({title:e}),t.flush()}get lang(){return this.$$.ctx[11]}set lang(e){this.$$set({lang:e}),t.flush()}}t.create_custom_element(T,{clientstyling:{},clientstylingurl:{},translationurl:{},showbackbutton:{},title:{},lang:{}},["leftButton","title","rightButton"],[],!0);exports.default=T;
@@ -1,360 +0,0 @@
1
- import { S as J, b as K, f as b, c as Q, a as V, d as X, e as B, g as k, h as S, j as L, k as C, l as E, u as v, m as H, o as T, t as M, p as x, v as y, w as $, x as tt, y as et, z as nt, C as it, A as U, n as Z } from "./CashierConfirmModal-Bho8FqJK.js";
2
- import { a as lt, i as st, $ as at, b as ot } from "./CashierError-TXPAe0Cm.js";
3
- function j(e, t) {
4
- lt(e, t);
5
- }
6
- function rt(e) {
7
- st({
8
- fallbackLocale: "en"
9
- }), at.set(e);
10
- }
11
- const z = {
12
- en: {
13
- header: {
14
- general: "Cashier",
15
- deposit: "Deposit",
16
- withdraw: "Withdraw"
17
- }
18
- },
19
- tr: {
20
- header: {
21
- general: "Cashier",
22
- deposit: "Para Yatır",
23
- withdraw: "Çekim"
24
- }
25
- }
26
- };
27
- function ct(e) {
28
- X(e, "svelte-bbilb", ".CashierHeader{display:flex;position:relative;align-items:center;height:var(--mmw--header-height, 40px);background-color:var(--mmw--color-grey-105, #E8E9EB);width:100%;border-radius:6px 6px 0 0}.CashierHeaderLeftButton{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);margin-bottom:0;position:absolute;display:flex;align-items:center;font-variant:all-small-caps;height:32px;left:7px;gap:2px;cursor:pointer}.CashierHeaderLeftButton svg path{fill:var(--mmw--color-grey-10, #111)}.CashierHeaderLeftButton.disabled{pointer-events:none}.CashierHeaderTitle{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-large, 18px);line-height:125%;font-weight:var(--emw--font-weight-semibold, 500);margin:auto;max-width:calc(100% - 150px);overflow:hidden;text-overflow:ellipsis}.CashierHeaderRightButton{position:absolute;display:flex;justify-content:space-between;align-items:center;padding:0 var(--emw--spacing-small, 12px);height:inherit;right:0;gap:var(--emw--spacing-small, 12px);cursor:pointer}");
29
- }
30
- const ft = (e) => ({}), R = (e) => ({}), ut = (e) => ({}), A = (e) => ({}), ht = (e) => ({}), N = (e) => ({});
31
- function O(e) {
32
- let t, n, a;
33
- return {
34
- c() {
35
- t = k("div"), t.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.5632 3.47782C12.4787 3.50138 12.3362 3.57505 12.2465 3.64153C12.1567 3.70806 10.8069 5.04216 9.24694 6.60626C6.11944 9.74192 6.25999 9.58204 6.25999 10.0037C6.25999 10.4243 6.13093 10.2784 9.34296 13.4903C12.4449 16.5921 12.356 16.5116 12.7278 16.5556C13.1855 16.6098 13.6413 16.2585 13.7301 15.783C13.7612 15.6164 13.7212 15.3395 13.6437 15.1847C13.6158 15.129 12.451 13.9396 11.0553 12.5417L8.51768 10L11.0553 7.45837C12.451 6.06048 13.6158 4.87114 13.6437 4.81544C13.7729 4.55751 13.7703 4.2006 13.6374 3.94274C13.4469 3.5731 12.9668 3.36532 12.5632 3.47782Z" fill="#111111"></path></svg>', L(t, "class", "CashierHeaderLeftButton");
36
- },
37
- m(i, c) {
38
- C(i, t, c), n || (a = U(
39
- t,
40
- "click",
41
- /*back*/
42
- e[5]
43
- ), n = !0);
44
- },
45
- p: Z,
46
- d(i) {
47
- i && y(t), n = !1, a();
48
- }
49
- };
50
- }
51
- function gt(e) {
52
- let t, n = (
53
- /*backButton*/
54
- e[1] && O(e)
55
- );
56
- return {
57
- c() {
58
- n && n.c(), t = tt();
59
- },
60
- m(a, i) {
61
- n && n.m(a, i), C(a, t, i);
62
- },
63
- p(a, i) {
64
- /*backButton*/
65
- a[1] ? n ? n.p(a, i) : (n = O(a), n.c(), n.m(t.parentNode, t)) : n && (n.d(1), n = null);
66
- },
67
- d(a) {
68
- a && y(t), n && n.d(a);
69
- }
70
- };
71
- }
72
- function dt(e) {
73
- let t, n = (
74
- /*$_*/
75
- e[3](
76
- /*titleText*/
77
- e[2]
78
- ) + ""
79
- ), a;
80
- return {
81
- c() {
82
- t = k("span"), a = et(n), L(t, "class", "CashierHeaderTitle");
83
- },
84
- m(i, c) {
85
- C(i, t, c), E(t, a);
86
- },
87
- p(i, c) {
88
- c & /*$_, titleText*/
89
- 12 && n !== (n = /*$_*/
90
- i[3](
91
- /*titleText*/
92
- i[2]
93
- ) + "") && nt(a, n);
94
- },
95
- d(i) {
96
- i && y(t);
97
- }
98
- };
99
- }
100
- function _t(e) {
101
- let t, n, a;
102
- return {
103
- c() {
104
- t = k("span"), t.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="13" height="20" viewBox="0 0 13 13" fill="none"><path d="M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z" fill="#111111"></path></svg>', L(t, "class", "CashierHeaderRightButton");
105
- },
106
- m(i, c) {
107
- C(i, t, c), n || (a = U(
108
- t,
109
- "click",
110
- /*close*/
111
- e[4]
112
- ), n = !0);
113
- },
114
- p: Z,
115
- d(i) {
116
- i && y(t), n = !1, a();
117
- }
118
- };
119
- }
120
- function mt(e) {
121
- let t, n, a, i;
122
- const c = (
123
- /*#slots*/
124
- e[13].leftButton
125
- ), _ = B(
126
- c,
127
- e,
128
- /*$$scope*/
129
- e[12],
130
- N
131
- ), o = _ || gt(e), w = (
132
- /*#slots*/
133
- e[13].title
134
- ), g = B(
135
- w,
136
- e,
137
- /*$$scope*/
138
- e[12],
139
- A
140
- ), r = g || dt(e), d = (
141
- /*#slots*/
142
- e[13].rightButton
143
- ), u = B(
144
- d,
145
- e,
146
- /*$$scope*/
147
- e[12],
148
- R
149
- ), h = u || _t(e);
150
- return {
151
- c() {
152
- t = k("div"), o && o.c(), n = S(), r && r.c(), a = S(), h && h.c(), L(t, "class", "CashierHeader");
153
- },
154
- m(l, f) {
155
- C(l, t, f), o && o.m(t, null), E(t, n), r && r.m(t, null), E(t, a), h && h.m(t, null), e[14](t), i = !0;
156
- },
157
- p(l, [f]) {
158
- _ ? _.p && (!i || f & /*$$scope*/
159
- 4096) && v(
160
- _,
161
- c,
162
- l,
163
- /*$$scope*/
164
- l[12],
165
- i ? T(
166
- c,
167
- /*$$scope*/
168
- l[12],
169
- f,
170
- ht
171
- ) : H(
172
- /*$$scope*/
173
- l[12]
174
- ),
175
- N
176
- ) : o && o.p && (!i || f & /*backButton*/
177
- 2) && o.p(l, i ? f : -1), g ? g.p && (!i || f & /*$$scope*/
178
- 4096) && v(
179
- g,
180
- w,
181
- l,
182
- /*$$scope*/
183
- l[12],
184
- i ? T(
185
- w,
186
- /*$$scope*/
187
- l[12],
188
- f,
189
- ut
190
- ) : H(
191
- /*$$scope*/
192
- l[12]
193
- ),
194
- A
195
- ) : r && r.p && (!i || f & /*$_, titleText*/
196
- 12) && r.p(l, i ? f : -1), u && u.p && (!i || f & /*$$scope*/
197
- 4096) && v(
198
- u,
199
- d,
200
- l,
201
- /*$$scope*/
202
- l[12],
203
- i ? T(
204
- d,
205
- /*$$scope*/
206
- l[12],
207
- f,
208
- ft
209
- ) : H(
210
- /*$$scope*/
211
- l[12]
212
- ),
213
- R
214
- );
215
- },
216
- i(l) {
217
- i || (M(o, l), M(r, l), M(h, l), i = !0);
218
- },
219
- o(l) {
220
- x(o, l), x(r, l), x(h, l), i = !1;
221
- },
222
- d(l) {
223
- l && y(t), o && o.d(l), r && r.d(l), h && h.d(l), e[14](null);
224
- }
225
- };
226
- }
227
- function wt(e, t, n) {
228
- let a;
229
- $(e, ot, (s) => n(3, a = s));
230
- let { $$slots: i = {}, $$scope: c } = t, { clientstyling: _ = "" } = t, { clientstylingurl: o = "" } = t, { translationurl: w = "" } = t, { showbackbutton: g = "" } = t, { title: r = "header.general" } = t, { lang: d = "en" } = t, u, h = !1, l;
231
- const f = () => {
232
- let s = w;
233
- s && fetch(s).then((m) => m.json()).then((m) => {
234
- Object.keys(m).forEach((p) => {
235
- j(p, m[p]);
236
- });
237
- }).catch((m) => {
238
- console.log(m);
239
- });
240
- };
241
- Object.keys(z).forEach((s) => {
242
- j(s, z[s]);
243
- });
244
- const q = () => {
245
- let s = document.createElement("style");
246
- s.innerHTML = _, u.appendChild(s);
247
- }, D = () => {
248
- let s = new URL(o), m = document.createElement("style");
249
- fetch(s.href).then((p) => p.text()).then((p) => {
250
- m.innerHTML = p, setTimeout(
251
- () => {
252
- u.appendChild(m);
253
- },
254
- 1
255
- );
256
- });
257
- }, F = () => {
258
- rt(d);
259
- }, I = () => {
260
- window.postMessage({ type: "CloseCashier" }, window.location.href);
261
- }, P = () => {
262
- window.postMessage({ type: "BackCashier" }, window.location.href);
263
- }, W = () => {
264
- n(1, h = !!g && g !== "false");
265
- }, Y = () => {
266
- n(2, l = r || "header.general");
267
- };
268
- function G(s) {
269
- it[s ? "unshift" : "push"](() => {
270
- u = s, n(0, u);
271
- });
272
- }
273
- return e.$$set = (s) => {
274
- "clientstyling" in s && n(6, _ = s.clientstyling), "clientstylingurl" in s && n(7, o = s.clientstylingurl), "translationurl" in s && n(8, w = s.translationurl), "showbackbutton" in s && n(9, g = s.showbackbutton), "title" in s && n(10, r = s.title), "lang" in s && n(11, d = s.lang), "$$scope" in s && n(12, c = s.$$scope);
275
- }, e.$$.update = () => {
276
- e.$$.dirty & /*lang*/
277
- 2048 && d && F(), e.$$.dirty & /*lang, title*/
278
- 3072 && d && r && Y(), e.$$.dirty & /*clientstyling, customStylingContainer*/
279
- 65 && _ && u && q(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
280
- 129 && o && u && D(), e.$$.dirty & /*lang, translationurl*/
281
- 2304 && d && w && f(), e.$$.dirty & /*showbackbutton*/
282
- 512 && g && W();
283
- }, [
284
- u,
285
- h,
286
- l,
287
- a,
288
- I,
289
- P,
290
- _,
291
- o,
292
- w,
293
- g,
294
- r,
295
- d,
296
- c,
297
- i,
298
- G
299
- ];
300
- }
301
- class pt extends J {
302
- constructor(t) {
303
- super(), K(
304
- this,
305
- t,
306
- wt,
307
- mt,
308
- V,
309
- {
310
- clientstyling: 6,
311
- clientstylingurl: 7,
312
- translationurl: 8,
313
- showbackbutton: 9,
314
- title: 10,
315
- lang: 11
316
- },
317
- ct
318
- );
319
- }
320
- get clientstyling() {
321
- return this.$$.ctx[6];
322
- }
323
- set clientstyling(t) {
324
- this.$$set({ clientstyling: t }), b();
325
- }
326
- get clientstylingurl() {
327
- return this.$$.ctx[7];
328
- }
329
- set clientstylingurl(t) {
330
- this.$$set({ clientstylingurl: t }), b();
331
- }
332
- get translationurl() {
333
- return this.$$.ctx[8];
334
- }
335
- set translationurl(t) {
336
- this.$$set({ translationurl: t }), b();
337
- }
338
- get showbackbutton() {
339
- return this.$$.ctx[9];
340
- }
341
- set showbackbutton(t) {
342
- this.$$set({ showbackbutton: t }), b();
343
- }
344
- get title() {
345
- return this.$$.ctx[10];
346
- }
347
- set title(t) {
348
- this.$$set({ title: t }), b();
349
- }
350
- get lang() {
351
- return this.$$.ctx[11];
352
- }
353
- set lang(t) {
354
- this.$$set({ lang: t }), b();
355
- }
356
- }
357
- Q(pt, { clientstyling: {}, clientstylingurl: {}, translationurl: {}, showbackbutton: {}, title: {}, lang: {} }, ["leftButton", "title", "rightButton"], [], !0);
358
- export {
359
- pt as default
360
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CashierConfirmModal-KmRU3Mgr.cjs"),C=require("./CashierError-DrXIvPhH.cjs");if(typeof window!="undefined"){let i=function(e){return function(...n){try{return e.apply(this,n)}catch(s){if(s instanceof DOMException&&s.message.includes("has already been used with this registry")||s.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw s}}};customElements.define=i(customElements.define),Promise.resolve().then(()=>require("./CashierHeader-BoLyGION.cjs")).then(({default:e})=>{!customElements.get("cashier-header")&&customElements.define("cashier-header",e.element)})}if(typeof window!="undefined"){let i=function(e){return function(...n){try{return e.apply(this,n)}catch(s){if(s instanceof DOMException&&s.message.includes("has already been used with this registry")||s.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw s}}};customElements.define=i(customElements.define),Promise.resolve().then(()=>require("./CashierSpinner-CySOWnIQ.cjs")).then(({default:e})=>{!customElements.get("cashier-spinner")&&customElements.define("cashier-spinner",e.element)})}function y(i,e){C.addMessages(i,e)}function S(i){C.init({fallbackLocale:"en"}),C.$locale.set(i)}const L={en:{redirectHeader:"Deposit redirect"},"pt-br":{redirectHeader:"Redirecionar depósito"},"es-mx":{redirectHeader:"Redirigir depósito"},tr:{redirectHeader:"Para yatırma yönlendirmesi"}};function q(i){t.append_styles(i,"svelte-mxoveh",".CashierRedirectIframe{height:inherit;width:inherit}iframe{border-radius:0 0 6px 6px;border:1px solid var(--mmw--color-grey-105, #E8E9EB);height:calc(100% - var(--mmw--header-height, 32px));width:100%;box-sizing:border-box}.CashierHeaderLeftButton{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);margin-bottom:0;position:absolute;display:flex;align-items:center;font-variant:all-small-caps;height:32px;left:7px;gap:2px;cursor:pointer}.CashierHeaderLeftButton svg path{fill:var(--mmw--color-grey-10, #111)}.CashierHeaderRightButton{position:absolute;display:flex;justify-content:space-between;align-items:center;padding:0 var(--emw--spacing-small, 12px);height:inherit;right:0;gap:var(--emw--spacing-small, 12px);cursor:pointer}")}function v(i){let e,n,s;return{c(){e=t.element("div"),e.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.5632 3.47782C12.4787 3.50138 12.3362 3.57505 12.2465 3.64153C12.1567 3.70806 10.8069 5.04216 9.24694 6.60626C6.11944 9.74192 6.25999 9.58204 6.25999 10.0037C6.25999 10.4243 6.13093 10.2784 9.34296 13.4903C12.4449 16.5921 12.356 16.5116 12.7278 16.5556C13.1855 16.6098 13.6413 16.2585 13.7301 15.783C13.7612 15.6164 13.7212 15.3395 13.6437 15.1847C13.6158 15.129 12.451 13.9396 11.0553 12.5417L8.51768 10L11.0553 7.45837C12.451 6.06048 13.6158 4.87114 13.6437 4.81544C13.7729 4.55751 13.7703 4.2006 13.6374 3.94274C13.4469 3.5731 12.9668 3.36532 12.5632 3.47782Z" fill="#111111"></path></svg>',t.attr(e,"slot","leftButton"),t.attr(e,"class","CashierHeaderLeftButton")},m(f,m){t.insert(f,e,m),n||(s=t.listen(e,"click",i[9]),n=!0)},p:t.noop,d(f){f&&t.detach(e),n=!1,s()}}}function k(i){let e,n,s;return{c(){e=t.element("div"),e.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="13" height="20" viewBox="0 0 13 13" fill="none"><path d="M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z" fill="#111111"></path></svg>',t.attr(e,"slot","rightButton"),t.attr(e,"class","CashierHeaderRightButton")},m(f,m){t.insert(f,e,m),n||(s=t.listen(e,"click",i[9]),n=!0)},p:t.noop,d(f){f&&t.detach(e),n=!1,s()}}}function E(i){let e;return{c(){e=t.element("cashier-spinner"),t.set_custom_element_data(e,"clientstylingurl",i[5]),t.set_custom_element_data(e,"clientstyling",i[4])},m(n,s){t.insert(n,e,s)},p(n,s){s&32&&t.set_custom_element_data(e,"clientstylingurl",n[5]),s&16&&t.set_custom_element_data(e,"clientstyling",n[4])},d(n){n&&t.detach(e)}}}function O(i){let e,n,s,f,m,d,g,_,w,o=!!i[3]&&i[3]!=="false"&&v(i),a=(!i[3]||i[3]==="false")&&k(i),c=i[8]&&E(i);return{c(){e=t.element("div"),n=t.element("cashier-header"),o&&o.c(),s=t.space(),a&&a.c(),f=t.space(),c&&c.c(),m=t.space(),d=t.element("iframe"),t.set_custom_element_data(n,"lang",i[0]),t.set_custom_element_data(n,"translationurl",i[2]),t.set_custom_element_data(n,"title",i[6]),t.set_custom_element_data(n,"showbackbutton",i[3]),t.set_custom_element_data(n,"clientstylingurl",i[5]),t.set_custom_element_data(n,"clientstyling",i[4]),t.src_url_equal(d.src,g=i[1])||t.attr(d,"src",g),t.attr(d,"frameborder","0"),t.attr(e,"class","CashierRedirectIframe")},m(r,u){t.insert(r,e,u),t.append(e,n),o&&o.m(n,null),t.append(n,s),a&&a.m(n,null),t.append(e,f),c&&c.m(e,null),t.append(e,m),t.append(e,d),i[12](e),_||(w=t.listen(d,"load",i[11]),_=!0)},p(r,[u]){r[3]&&r[3]!=="false"?o?o.p(r,u):(o=v(r),o.c(),o.m(n,s)):o&&(o.d(1),o=null),!r[3]||r[3]==="false"?a?a.p(r,u):(a=k(r),a.c(),a.m(n,null)):a&&(a.d(1),a=null),u&1&&t.set_custom_element_data(n,"lang",r[0]),u&4&&t.set_custom_element_data(n,"translationurl",r[2]),u&64&&t.set_custom_element_data(n,"title",r[6]),u&8&&t.set_custom_element_data(n,"showbackbutton",r[3]),u&32&&t.set_custom_element_data(n,"clientstylingurl",r[5]),u&16&&t.set_custom_element_data(n,"clientstyling",r[4]),r[8]?c?c.p(r,u):(c=E(r),c.c(),c.m(e,m)):c&&(c.d(1),c=null),u&2&&!t.src_url_equal(d.src,g=r[1])&&t.attr(d,"src",g)},i:t.noop,o:t.noop,d(r){r&&t.detach(e),o&&o.d(),a&&a.d(),c&&c.d(),i[12](null),_=!1,w()}}}function j(i,e,n){let{lang:s="en"}=e,{iframeurl:f}=e,{translationurl:m=""}=e,{showbackbutton:d=""}=e,{clientstyling:g=""}=e,{clientstylingurl:_=""}=e,{title:w=""}=e,o=!0,a;const c=()=>{let l=m;if(l)return fetch(l).then(h=>h.json()).then(h=>{Object.keys(h).forEach(p=>{y(p,h[p])})}).catch(h=>{console.log(h)})};Object.keys(L).forEach(l=>{y(l,L[l])});const r=()=>{S(s)},u=()=>{let l=document.createElement("style");l.innerHTML=g,a.appendChild(l)},M=()=>{let l=new URL(_),h=document.createElement("style");fetch(l.href).then(p=>p.text()).then(p=>{h.innerHTML=p,setTimeout(()=>{a.appendChild(h)},1)})},B=()=>{window.postMessage({type:"CloseIframe"},window.location.href)},b=l=>{l.target.src&&n(8,o=!1)},R=l=>b(l);function T(l){t.binding_callbacks[l?"unshift":"push"](()=>{a=l,n(7,a)})}return i.$$set=l=>{"lang"in l&&n(0,s=l.lang),"iframeurl"in l&&n(1,f=l.iframeurl),"translationurl"in l&&n(2,m=l.translationurl),"showbackbutton"in l&&n(3,d=l.showbackbutton),"clientstyling"in l&&n(4,g=l.clientstyling),"clientstylingurl"in l&&n(5,_=l.clientstylingurl),"title"in l&&n(6,w=l.title)},i.$$.update=()=>{i.$$.dirty&1&&s&&r(),i.$$.dirty&4&&m&&c(),i.$$.dirty&144&&g&&a&&u(),i.$$.dirty&160&&_&&a&&M()},[s,f,m,d,g,_,w,a,o,B,b,R,T]}class H extends t.SvelteComponent{constructor(e){super(),t.init(this,e,j,O,t.safe_not_equal,{lang:0,iframeurl:1,translationurl:2,showbackbutton:3,clientstyling:4,clientstylingurl:5,title:6},q)}get lang(){return this.$$.ctx[0]}set lang(e){this.$$set({lang:e}),t.flush()}get iframeurl(){return this.$$.ctx[1]}set iframeurl(e){this.$$set({iframeurl:e}),t.flush()}get translationurl(){return this.$$.ctx[2]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}get showbackbutton(){return this.$$.ctx[3]}set showbackbutton(e){this.$$set({showbackbutton:e}),t.flush()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get title(){return this.$$.ctx[6]}set title(e){this.$$set({title:e}),t.flush()}}t.create_custom_element(H,{lang:{},iframeurl:{},translationurl:{},showbackbutton:{},clientstyling:{},clientstylingurl:{},title:{}},[],[],!0);exports.default=H;