@everymatrix/cashier-page 1.56.0 → 1.56.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/components/{CashierConfirmModal-DjJI47WY.js → CashierConfirmModal-B0WZGuf5.js} +48 -41
  2. package/components/{CashierConfirmModal-CnmhfysD.js → CashierConfirmModal-BErwh2fQ.js} +49 -42
  3. package/components/{CashierConfirmModal-B_XfWSC2.cjs → CashierConfirmModal-BVT51ZOp.cjs} +1 -1
  4. package/components/{CashierError-CcFXZ705.js → CashierError-DoHJAf67.js} +524 -502
  5. package/components/{CashierError-BhW9Bd5u.js → CashierError-Dyf5BWS1.js} +523 -501
  6. package/components/{CashierError-wHAQP3_C.cjs → CashierError-YmV_PQP8.cjs} +16 -3
  7. package/components/{CashierHeader-BKrGT2Ae.cjs → CashierHeader-B-wIMGOV.cjs} +1 -1
  8. package/components/{CashierHeader-B_qUwnRz.js → CashierHeader-C8XVzyv9.js} +42 -42
  9. package/components/{CashierHeader-BUMem-fU.js → CashierHeader-Dm79zFE4.js} +44 -44
  10. package/components/{CashierIframeRedirect-DK3-V6GJ.js → CashierIframeRedirect-B_5Lg8hb.js} +33 -33
  11. package/components/{CashierIframeRedirect-BDIr-k4X.cjs → CashierIframeRedirect-CXErmVjw.cjs} +1 -1
  12. package/components/{CashierIframeRedirect-DiWIODGM.js → CashierIframeRedirect-D7qTJ1C9.js} +32 -32
  13. package/components/CashierMethodDetails-Ba0LNaer.cjs +18 -0
  14. package/components/{CashierMethodDetails-B5Y9sYOg.js → CashierMethodDetails-C6upoqd2.js} +1810 -1773
  15. package/components/{CashierMethodDetails-C-KT1A-h.js → CashierMethodDetails-T4mbzimW.js} +1870 -1833
  16. package/components/{CashierMethodsList-CbNajSX5.js → CashierMethodsList-6aZ0rauJ.js} +92 -92
  17. package/components/{CashierMethodsList-DCPVijk5.cjs → CashierMethodsList-Ds7TEIYj.cjs} +1 -1
  18. package/components/{CashierMethodsList-Q3OYWKGV.js → CashierMethodsList-K1Zqnlt7.js} +67 -67
  19. package/components/{CashierModal-B9SMcvPJ.cjs → CashierModal-BhCdxWcE.cjs} +1 -1
  20. package/components/{CashierModal-DoTNxAOf.js → CashierModal-CpN2LT2L.js} +31 -31
  21. package/components/{CashierModal-BQ75P20m.js → CashierModal-DB1wg0l3.js} +37 -37
  22. package/components/{CashierNotifications-BdcWgN-t.js → CashierNotifications-B5qfr68o.js} +18 -18
  23. package/components/{CashierNotifications-C5qqk3s5.cjs → CashierNotifications-BVAanyOB.cjs} +1 -1
  24. package/components/{CashierNotifications-DVCfwUo9.js → CashierNotifications-BmAkkuzD.js} +19 -19
  25. package/components/{CashierPage-BGaDrX6p.js → CashierPage-BjqZ6dGk.js} +68 -68
  26. package/components/{CashierPage-Ckv_ecQa.js → CashierPage-C87OKpcE.js} +66 -66
  27. package/components/{CashierPage-C67H_0uR.cjs → CashierPage-DtW2NNtj.cjs} +1 -1
  28. package/components/{CashierReceiptPage-bBNHsfW5.cjs → CashierReceiptPage-BH5T05dg.cjs} +1 -1
  29. package/components/{CashierReceiptPage-Cjz4isz4.js → CashierReceiptPage-BOTRblW6.js} +215 -202
  30. package/components/{CashierReceiptPage-B6Ot4u-u.js → CashierReceiptPage-BsbiLGZK.js} +191 -179
  31. package/components/{CashierSessionExpirationModal-CWKlvhPF.cjs → CashierSessionExpirationModal-CxpesQtf.cjs} +2 -2
  32. package/components/{CashierSessionExpirationModal-CbrAJQvx.js → CashierSessionExpirationModal-DZgsGvVp.js} +60 -49
  33. package/components/{CashierSessionExpirationModal-8p7dxVmt.js → CashierSessionExpirationModal-V8MYd-oY.js} +60 -49
  34. package/components/{CashierSpinner-Y3YCsQEf.js → CashierSpinner-BI29nSq_.js} +25 -25
  35. package/components/{CashierSpinner-Cv-DKF1H.js → CashierSpinner-FzCMnj7X.js} +26 -26
  36. package/components/{CashierSpinner-CxYzgF3b.cjs → CashierSpinner-H763izjz.cjs} +1 -1
  37. package/components/CashierTransactionHistory-BdyrNKgd.cjs +1 -0
  38. package/components/CashierTransactionHistory-CVMw2IN2.js +569 -0
  39. package/components/CashierTransactionHistory-DB8hgPpZ.js +569 -0
  40. package/components/{CashierVerifications-Cqc-k576.js → CashierVerifications-BOYrzIos.js} +72 -72
  41. package/components/{CashierVerifications-D-3Ycigl.cjs → CashierVerifications-BXTVbpjh.cjs} +1 -1
  42. package/components/{CashierVerifications-DL2hsNCJ.js → CashierVerifications-qhXfC9Fa.js} +26 -26
  43. package/components/{CashierVideoModal-CBBnFyqd.cjs → CashierVideoModal-CjR0Fzuu.cjs} +1 -1
  44. package/components/{CashierVideoModal-DkujQ3WY.js → CashierVideoModal-DGBQZz-C.js} +33 -33
  45. package/components/{CashierVideoModal-YsTJSZa7.js → CashierVideoModal-DPG12DK0.js} +37 -37
  46. package/es2015/cashier-page.cjs +1 -1
  47. package/es2015/cashier-page.js +1 -1
  48. package/esnext/cashier-page.js +1 -1
  49. package/package.json +1 -1
  50. package/components/CashierMethodDetails-D8AGMiCO.cjs +0 -18
  51. package/components/CashierTransactionHistory-DRX91Hoc.cjs +0 -1
  52. package/components/CashierTransactionHistory-DmVVMYYd.js +0 -567
  53. package/components/CashierTransactionHistory-SjIsxvK5.js +0 -567
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CashierConfirmModal-B_XfWSC2.cjs"),P=require("./CashierModal-B9SMcvPJ.cjs"),L=require("./CashierError-wHAQP3_C.cjs"),q=require("./CashierMethodDetails-D8AGMiCO.cjs");L.init({fallbackLocale:"en"});function G(s,e){L.addMessages(s,e)}function B(s){L.$locale.set(s)}const E={en:{transactionHistoryTitle:"Transaction History",transactionIdTitle:"ID",transactionDateTitle:"Date",transactionTypeTitle:"Type",transactionStatusTitle:"Status",copyTransactionId:"Transaction Id copied to clipboard",transactionStatus:{Authorized:"Authorized",Success:"Success",Failed:"Failed",Rejected:"Rejected",Pending:"Pending"},transactionType:{Deposit:"Deposit",Withdraw:"Withdraw"}},tr:{transactionHistoryTitle:"Transaction History",transactionIdTitle:"ID",transactionDateTitle:"Date",transactionTypeTitle:"Type",transactionStatusTitle:"Status",copyTransactionId:"Transaction Id copied to clipboard",transactionStatus:{Authorized:"Authorized",Success:"Success",Failed:"Failed",Rejected:"Rejected",Pending:"Pending"},transactionType:{Deposit:"Yatırma",Withdraw:"Çekim"}}};function Y(s,e){if(s){const a=document.createElement("style");a.innerHTML=e,s.appendChild(a)}}function X(s,e){const a=new URL(e);fetch(a.href).then(l=>l.text()).then(l=>{const i=document.createElement("style");i.innerHTML=l,s&&s.appendChild(i)}).catch(l=>{console.error("There was an error while trying to load client styling from URL",l)})}function J(s){t.append_styles(s,"svelte-1klbu7d",".svelte-1klbu7d.svelte-1klbu7d,.svelte-1klbu7d.svelte-1klbu7d::before,.svelte-1klbu7d.svelte-1klbu7d::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-style:inherit}.CopyTooltip.svelte-1klbu7d.svelte-1klbu7d{width:calc(50% - var(--emw--spacing-x-small, 10px) - var(--emw--spacing-x-small, 10px));display:flex;align-items:center;justify-content:center;background-color:var(--emw--color-primary, #7EC51E);position:absolute;top:0;left:50%;transform:translateX(-50%);color:var(--emw--color-white, #FFF);border-radius:var(--mmw--border-radius-medium-plus, 6px);z-index:1;opacity:1;container-name:copy-tooltip;font-size:var(--emw--font-size-medium, 16px);line-height:calc(var(--emw--font-size-medium, 16px) + 2px)}.CashierTransactionHistory.svelte-1klbu7d.svelte-1klbu7d{display:flex;flex-direction:column;width:100%;row-gap:var(--emw--spacing-small, 12px);container-name:transaction-history;container-type:inline-size;margin-bottom:var(--emw--spacing-small, 12px)}.CashierTransactionHistory.svelte-1klbu7d table.svelte-1klbu7d{font-size:var(--emw--font-size-medium, 16px);word-break:break-all;width:100%;border-collapse:collapse;box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;margin-bottom:var(--emw--spacing-small-minus, 10px)}.CashierTransactionHistory.svelte-1klbu7d table.svelte-1klbu7d:not(:last-child){margin-bottom:var(--emw--spacing-large, 20px)}.CashierTransactionHistory.svelte-1klbu7d thead tr.svelte-1klbu7d{border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);color:var(--mmw--color-grey-10, #111);height:50px}.CashierTransactionHistory.svelte-1klbu7d tbody tr.svelte-1klbu7d{color:var(--mmw--color-grey-290, #666)}.CashierTransactionHistory.svelte-1klbu7d td.svelte-1klbu7d{max-width:250px;vertical-align:middle;height:40px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0 var(--emw--spacing-large, 20px) 0 var(--emw--spacing-small, 12px)}.CashierTransactionHistory.svelte-1klbu7d tr.svelte-1klbu7d{position:relative}@container deposit-page (max-width: 750px){.CashierTransactionHistory.svelte-1klbu7d .CopyTooltip.svelte-1klbu7d{left:0;transform:none;width:100%;font-size:var(--emw--font-size-small, 14px);line-height:calc(var(--emw--font-size-small, 14px) + 2px);border-radius:0 0 var(--mmw--border-radius-medium-plus, 6px) var(--mmw--border-radius-medium-plus, 6px)}.CashierTransactionHistory.svelte-1klbu7d .CashierTransactionHistoryStatus.svelte-1klbu7d{line-height:calc(var(--emw--font-size-small, 14px) + 2px)}}@container transaction-history (width < 750px){.CashierTransactionHistory.svelte-1klbu7d .CashierTransactionHistoryWrapper.svelte-1klbu7d{width:100%;padding:0;margin:0}.CashierTransactionHistory.svelte-1klbu7d table.svelte-1klbu7d{font-size:var(--emw--font-size-small, 14px);line-height:calc(var(--emw--font-size-small, 14px) + 2px)}.CashierTransactionHistory.svelte-1klbu7d table.svelte-1klbu7d:last-child{margin-bottom:0}.CashierTransactionHistory.svelte-1klbu7d thead tr.svelte-1klbu7d{height:unset}.CashierTransactionHistory.svelte-1klbu7d td.svelte-1klbu7d{height:25px;padding:0 0 0 var(--emw--spacing-small, 12px)}.CashierTransactionHistory.svelte-1klbu7d td.svelte-1klbu7d:first-child{max-width:187px}.CashierTransactionHistory.svelte-1klbu7d td.svelte-1klbu7d:not(:first-child){min-width:max-content}.CashierTransactionHistory.svelte-1klbu7d td.svelte-1klbu7d:last-child{padding-right:var(--emw--spacing-2x-small-plus, 6px)}.CashierTransactionHistory.svelte-1klbu7d .CashierTransactionHistoryIcon svg.svelte-1klbu7d{height:14px;width:14px}}@container transaction-history (width < 450px){.CashierTransactionHistory.svelte-1klbu7d td.svelte-1klbu7d{padding-right:var(--emw--spacing-2x-small-plus, 6px)}.CashierTransactionHistory.svelte-1klbu7d td.svelte-1klbu7d:first-child{max-width:85px}}@container transaction-history (width < 350px){.CashierTransactionHistory.svelte-1klbu7d td.svelte-1klbu7d{padding:0 0 0 var(--emw--spacing-small, 5px)}}@container transaction-history (width < 350px){.CashierTransactionHistory.svelte-1klbu7d table.svelte-1klbu7d{table-layout:fixed}}.CashierTransactionHistoryWrapper.svelte-1klbu7d.svelte-1klbu7d{background:var(--emw--color-background, #fff);box-shadow:0 0 4px var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1));border-radius:var(--mmw--border-radius-medium-plus, 6px);width:100%;box-sizing:border-box;padding:0 var(--emw--spacing-small, 12px)}.CashierTransactionHistoryTitle.svelte-1klbu7d.svelte-1klbu7d{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-normal, 400);line-height:calc(var(--emw--font-size-medium, 16px) + 2px);text-align:left}.CashierTransactionId.svelte-1klbu7d.svelte-1klbu7d{cursor:pointer;-webkit-user-select:none;-ms-user-select:none;user-select:none}.CashierTransactionId.svelte-1klbu7d.svelte-1klbu7d:hover{background-color:var(--emw--color-gray-50, #F7F8FA)}.CashierTransactionHistoryStatus.svelte-1klbu7d.svelte-1klbu7d{line-height:calc(var(--emw--font-size-medium, 16px) + 2px)}.CashierTransactionHistoryContent.svelte-1klbu7d.svelte-1klbu7d{width:100%}.CashierTransactionHistoryIcon.svelte-1klbu7d.svelte-1klbu7d{vertical-align:middle;height:var(--emw--font-size-medium, 16px);width:var(--emw--font-size-medium, 16px)}")}function U(s,e,a){const l=s.slice();return l[24]=e[a],l[26]=a,l}function O(s){let e,a,l,i=s[5]("transactionHistoryTitle")+"",o,r,d,p,v,y,f,C,R=s[5]("transactionIdTitle")+"",x,_,D,b=s[5]("transactionDateTitle")+"",S,H,j,V=s[5]("transactionTypeTitle")+"",I,M,T,m=s[5]("transactionStatusTitle")+"",u,n,h,g=s[3]&&Z(s),F=t.ensure_array_like(s[2]),k=[];for(let c=0;c<F.length;c+=1)k[c]=W(U(s,F,c));return{c(){e=t.element("div"),g&&g.c(),a=t.space(),l=t.element("h3"),o=t.text(i),r=t.space(),d=t.element("div"),p=t.element("div"),v=t.element("table"),y=t.element("thead"),f=t.element("tr"),C=t.element("td"),x=t.text(R),_=t.space(),D=t.element("td"),S=t.text(b),H=t.space(),j=t.element("td"),I=t.text(V),M=t.space(),T=t.element("td"),u=t.text(m),n=t.space(),h=t.element("tbody");for(let c=0;c<k.length;c+=1)k[c].c();t.attr(l,"class","CashierTransactionHistoryTitle svelte-1klbu7d"),t.attr(C,"class","svelte-1klbu7d"),t.attr(D,"class","svelte-1klbu7d"),t.attr(j,"class","svelte-1klbu7d"),t.attr(T,"class","svelte-1klbu7d"),t.attr(f,"class","svelte-1klbu7d"),t.attr(y,"class","svelte-1klbu7d"),t.attr(h,"class","svelte-1klbu7d"),t.attr(v,"class","svelte-1klbu7d"),t.attr(p,"class","CashierTransactionHistoryContent svelte-1klbu7d"),t.attr(d,"class","CashierTransactionHistoryWrapper svelte-1klbu7d"),t.attr(e,"class","CashierTransactionHistory svelte-1klbu7d")},m(c,z){t.insert(c,e,z),g&&g.m(e,null),t.append(e,a),t.append(e,l),t.append(l,o),t.append(e,r),t.append(e,d),t.append(d,p),t.append(p,v),t.append(v,y),t.append(y,f),t.append(f,C),t.append(C,x),t.append(f,_),t.append(f,D),t.append(D,S),t.append(f,H),t.append(f,j),t.append(j,I),t.append(f,M),t.append(f,T),t.append(T,u),t.append(v,n),t.append(v,h);for(let w=0;w<k.length;w+=1)k[w]&&k[w].m(h,null);s[16](e)},p(c,z){if(c[3]?g?(g.p(c,z),z&8&&t.transition_in(g,1)):(g=Z(c),g.c(),t.transition_in(g,1),g.m(e,a)):g&&(t.group_outros(),t.transition_out(g,1,1,()=>{g=null}),t.check_outros()),z&32&&i!==(i=c[5]("transactionHistoryTitle")+"")&&t.set_data(o,i),z&32&&R!==(R=c[5]("transactionIdTitle")+"")&&t.set_data(x,R),z&32&&b!==(b=c[5]("transactionDateTitle")+"")&&t.set_data(S,b),z&32&&V!==(V=c[5]("transactionTypeTitle")+"")&&t.set_data(I,V),z&32&&m!==(m=c[5]("transactionStatusTitle")+"")&&t.set_data(u,m),z&124){F=t.ensure_array_like(c[2]);let w;for(w=0;w<F.length;w+=1){const A=U(c,F,w);k[w]?k[w].p(A,z):(k[w]=W(A),k[w].c(),k[w].m(h,null))}for(;w<k.length;w+=1)k[w].d(1);k.length=F.length}},d(c){c&&t.detach(e),g&&g.d(),t.destroy_each(k,c),s[16](null)}}}function Z(s){let e,a=s[5]("copyTransactionId")+"",l,i,o,r;return{c(){e=t.element("div"),l=t.text(a),t.attr(e,"class","CopyTooltip svelte-1klbu7d")},m(d,p){t.insert(d,e,p),t.append(e,l),r=!0},p(d,p){s=d,(!r||p&32)&&a!==(a=s[5]("copyTransactionId")+"")&&t.set_data(l,a)},i(d){r||(d&&t.add_render_callback(()=>{r&&(o&&o.end(1),i=t.create_in_transition(e,P.fade,{duration:s[0]}),i.start())}),r=!0)},o(d){i&&i.invalidate(),d&&(o=t.create_out_transition(e,P.fade,{duration:s[0]})),r=!1},d(d){d&&t.detach(e),d&&o&&o.end()}}}function K(s){let e,a,l,i,o;return{c(){e=t.svg_element("svg"),a=t.svg_element("g"),l=t.svg_element("g"),i=t.svg_element("g"),o=t.svg_element("path"),t.attr(a,"id","SVGRepo_bgCarrier"),t.attr(a,"stroke-width","0"),t.attr(a,"class","svelte-1klbu7d"),t.attr(l,"id","SVGRepo_tracerCarrier"),t.attr(l,"stroke-linecap","round"),t.attr(l,"stroke-linejoin","round"),t.attr(l,"class","svelte-1klbu7d"),t.attr(o,"fill-rule","evenodd"),t.attr(o,"clip-rule","evenodd"),t.attr(o,"d","M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12ZM16.0303 8.96967C16.3232 9.26256 16.3232 9.73744 16.0303 10.0303L11.0303 15.0303C10.7374 15.3232 10.2626 15.3232 9.96967 15.0303L7.96967 13.0303C7.67678 12.7374 7.67678 12.2626 7.96967 11.9697C8.26256 11.6768 8.73744 11.6768 9.03033 11.9697L10.5 13.4393L12.7348 11.2045L14.9697 8.96967C15.2626 8.67678 15.7374 8.67678 16.0303 8.96967Z"),t.attr(o,"fill","#7EC51E"),t.attr(o,"class","svelte-1klbu7d"),t.attr(i,"id","SVGRepo_iconCarrier"),t.attr(i,"class","svelte-1klbu7d"),t.attr(e,"width","16px"),t.attr(e,"height","16px"),t.attr(e,"viewBox","0 0 24 24"),t.attr(e,"fill","none"),t.attr(e,"xmlns","http://www.w3.org/2000/svg"),t.attr(e,"class","svelte-1klbu7d")},m(r,d){t.insert(r,e,d),t.append(e,a),t.append(e,l),t.append(e,i),t.append(i,o)},d(r){r&&t.detach(e)}}}function Q(s){let e,a,l,i,o,r,d;return{c(){e=t.svg_element("svg"),a=t.svg_element("g"),l=t.svg_element("rect"),i=t.svg_element("g"),o=t.svg_element("g"),r=t.svg_element("text"),d=t.text("R j"),t.attr(l,"x","-2.4"),t.attr(l,"y","-2.4"),t.attr(l,"width","28.80"),t.attr(l,"height","28.80"),t.attr(l,"rx","14.4"),t.attr(l,"fill","#dd6617d4"),t.attr(l,"class","svelte-1klbu7d"),t.attr(a,"id","SVGRepo_bgCarrier"),t.attr(a,"stroke-width","0"),t.attr(a,"class","svelte-1klbu7d"),t.attr(i,"id","SVGRepo_tracerCarrier"),t.attr(i,"stroke-linecap","round"),t.attr(i,"stroke-linejoin","round"),t.attr(i,"class","svelte-1klbu7d"),t.attr(r,"x","42%"),t.attr(r,"y","50%"),t.attr(r,"dominant-baseline","middle"),t.attr(r,"text-anchor","middle"),t.attr(r,"font-family","Arial"),t.attr(r,"font-size","16"),t.attr(r,"fill","#ffffff"),t.attr(r,"class","svelte-1klbu7d"),t.attr(o,"id","SVGRepo_iconCarrier"),t.attr(o,"class","svelte-1klbu7d"),t.attr(e,"width","16px"),t.attr(e,"height","16px"),t.attr(e,"viewBox","-2.4 -2.4 28.80 28.80"),t.attr(e,"fill","none"),t.attr(e,"xmlns","http://www.w3.org/2000/svg"),t.attr(e,"class","svelte-1klbu7d")},m(p,v){t.insert(p,e,v),t.append(e,a),t.append(a,l),t.append(e,i),t.append(e,o),t.append(o,r),t.append(r,d)},d(p){p&&t.detach(e)}}}function $(s){let e,a,l,i,o,r,d;return{c(){e=t.svg_element("svg"),a=t.svg_element("g"),l=t.svg_element("rect"),i=t.svg_element("g"),o=t.svg_element("g"),r=t.svg_element("path"),d=t.svg_element("path"),t.attr(l,"x","-2.4"),t.attr(l,"y","-2.4"),t.attr(l,"width","28.80"),t.attr(l,"height","28.80"),t.attr(l,"rx","14.4"),t.attr(l,"fill","#dd6617d4"),t.attr(l,"class","svelte-1klbu7d"),t.attr(a,"id","SVGRepo_bgCarrier"),t.attr(a,"stroke-width","0"),t.attr(a,"class","svelte-1klbu7d"),t.attr(i,"id","SVGRepo_tracerCarrier"),t.attr(i,"stroke-linecap","round"),t.attr(i,"stroke-linejoin","round"),t.attr(i,"class","svelte-1klbu7d"),t.attr(r,"d","M13 6H11V7C11 7.55228 11.4477 8 12 8C12.5523 8 13 7.55228 13 7V6Z"),t.attr(r,"fill","#ffffff"),t.attr(r,"class","svelte-1klbu7d"),t.attr(d,"fill-rule","evenodd"),t.attr(d,"clip-rule","evenodd"),t.attr(d,"d","M6 2V4H7V7C7 9.76142 9.23858 12 12 12C9.23858 12 7 14.2386 7 17V20H6V22H18V20H17V17C17 14.2386 14.7614 12 12 12C14.7614 12 17 9.76142 17 7V4H18V2H6ZM9 4H15V7C15 8.65685 13.6569 10 12 10C10.3431 10 9 8.65685 9 7V4ZM9 17V20H15V17C15 15.3431 13.6569 14 12 14C10.3431 14 9 15.3431 9 17Z"),t.attr(d,"fill","#ffffff"),t.attr(d,"class","svelte-1klbu7d"),t.attr(o,"id","SVGRepo_iconCarrier"),t.attr(o,"class","svelte-1klbu7d"),t.attr(e,"width","16px"),t.attr(e,"height","16px"),t.attr(e,"viewBox","-2.4 -2.4 28.80 28.80"),t.attr(e,"fill","none"),t.attr(e,"xmlns","http://www.w3.org/2000/svg"),t.attr(e,"class","svelte-1klbu7d")},m(p,v){t.insert(p,e,v),t.append(e,a),t.append(a,l),t.append(e,i),t.append(e,o),t.append(o,r),t.append(o,d)},d(p){p&&t.detach(e)}}}function tt(s){let e,a,l,i,o;return{c(){e=t.svg_element("svg"),a=t.svg_element("g"),l=t.svg_element("g"),i=t.svg_element("g"),o=t.svg_element("path"),t.attr(a,"id","SVGRepo_bgCarrier"),t.attr(a,"stroke-width","0"),t.attr(a,"class","svelte-1klbu7d"),t.attr(l,"id","SVGRepo_tracerCarrier"),t.attr(l,"stroke-linecap","round"),t.attr(l,"stroke-linejoin","round"),t.attr(l,"class","svelte-1klbu7d"),t.attr(o,"d","M960 0c530.193 0 960 429.807 960 960s-429.807 960-960 960S0 1490.193 0 960 429.807 0 960 0Zm-9.838 1342.685c-84.47 0-153.19 68.721-153.19 153.19 0 84.47 68.72 153.192 153.19 153.192s153.19-68.721 153.19-153.191-68.72-153.19-153.19-153.19ZM1153.658 320H746.667l99.118 898.623h208.755L1153.658 320Z"),t.attr(o,"fill-rule","evenodd"),t.attr(o,"class","svelte-1klbu7d"),t.attr(i,"id","SVGRepo_iconCarrier"),t.attr(i,"class","svelte-1klbu7d"),t.attr(e,"fill","#ed0909"),t.attr(e,"width","16px"),t.attr(e,"height","16px"),t.attr(e,"viewBox","0 0 1920 1920"),t.attr(e,"xmlns","http://www.w3.org/2000/svg"),t.attr(e,"class","svelte-1klbu7d")},m(r,d){t.insert(r,e,d),t.append(e,a),t.append(e,l),t.append(e,i),t.append(i,o)},d(r){r&&t.detach(e)}}}function et(s){let e,a,l,i,o,r;return{c(){e=t.svg_element("svg"),a=t.svg_element("g"),l=t.svg_element("g"),i=t.svg_element("g"),o=t.svg_element("circle"),r=t.svg_element("path"),t.attr(a,"id","SVGRepo_bgCarrier"),t.attr(a,"stroke-width","0"),t.attr(a,"class","svelte-1klbu7d"),t.attr(l,"id","SVGRepo_tracerCarrier"),t.attr(l,"stroke-linecap","round"),t.attr(l,"stroke-linejoin","round"),t.attr(l,"class","svelte-1klbu7d"),t.attr(o,"cx","32"),t.attr(o,"cy","32"),t.attr(o,"r","30"),t.attr(o,"fill","#4fd1d9"),t.attr(o,"class","svelte-1klbu7d"),t.attr(r,"d","M28.6 17.5h6.9l10.3 29h-6.6l-1.9-6H26.6l-2 6h-6.3l10.3-29m-.4 18h7.4L32 24.1l-3.8 11.4"),t.attr(r,"fill","#ffffff"),t.attr(r,"class","svelte-1klbu7d"),t.attr(i,"id","SVGRepo_iconCarrier"),t.attr(i,"class","svelte-1klbu7d"),t.attr(e,"width","14px"),t.attr(e,"height","14px"),t.attr(e,"viewBox","0 0 64 64"),t.attr(e,"xmlns","http://www.w3.org/2000/svg"),t.attr(e,"xmlns:xlink","http://www.w3.org/1999/xlink"),t.attr(e,"aria-hidden","true"),t.attr(e,"role","img"),t.attr(e,"class","iconify iconify--emojione svelte-1klbu7d"),t.attr(e,"preserveAspectRatio","xMidYMid meet"),t.attr(e,"fill","#000000")},m(d,p){t.insert(d,e,p),t.append(e,a),t.append(e,l),t.append(e,i),t.append(i,o),t.append(i,r)},d(d){d&&t.detach(e)}}}function W(s){let e,a,l=s[24].Code+"",i,o,r,d=s[24].Date+"",p,v,y,f=s[5](`transactionType.${s[24].Type}`)+"",C,R,x,_,D,b,S=s[5](`transactionStatus.${s[24].Status}`)+"",H,j,V,I;function M(u,n){if(u[24].Status===u[4].Authorized)return et;if(u[24].Status===u[4].Failed)return tt;if(u[24].Status===u[4].Pending)return $;if(u[24].Status===u[4].Rejected)return Q;if(u[24].Status===u[4].Success)return K}let T=M(s),m=T&&T(s);return{c(){e=t.element("tr"),a=t.element("td"),i=t.text(l),o=t.space(),r=t.element("td"),p=t.text(d),v=t.space(),y=t.element("td"),C=t.text(f),R=t.space(),x=t.element("td"),_=t.element("span"),m&&m.c(),D=t.space(),b=t.element("span"),H=t.text(S),j=t.space(),t.attr(a,"class","CashierTransactionId svelte-1klbu7d"),t.toggle_class(a,"copied",s[3]),t.attr(r,"class","svelte-1klbu7d"),t.attr(y,"class","svelte-1klbu7d"),t.attr(_,"class","CashierTransactionHistoryIcon svelte-1klbu7d"),t.attr(b,"class","CashierTransactionHistoryStatus svelte-1klbu7d"),t.attr(x,"class","svelte-1klbu7d"),t.attr(e,"class","svelte-1klbu7d")},m(u,n){t.insert(u,e,n),t.append(e,a),t.append(a,i),t.append(e,o),t.append(e,r),t.append(r,p),t.append(e,v),t.append(e,y),t.append(y,C),t.append(e,R),t.append(e,x),t.append(x,_),m&&m.m(_,null),t.append(x,D),t.append(x,b),t.append(b,H),t.append(e,j),V||(I=t.listen(a,"mousedown",s[15]),V=!0)},p(u,n){n&4&&l!==(l=u[24].Code+"")&&t.set_data(i,l),n&8&&t.toggle_class(a,"copied",u[3]),n&4&&d!==(d=u[24].Date+"")&&t.set_data(p,d),n&36&&f!==(f=u[5](`transactionType.${u[24].Type}`)+"")&&t.set_data(C,f),T!==(T=M(u))&&(m&&m.d(1),m=T&&T(u),m&&(m.c(),m.m(_,null))),n&36&&S!==(S=u[5](`transactionStatus.${u[24].Status}`)+"")&&t.set_data(H,S)},d(u){u&&t.detach(e),m&&m.d(),V=!1,I()}}}function at(s){let e,a=s[2].length&&O(s);return{c(){a&&a.c(),e=t.empty()},m(l,i){a&&a.m(l,i),t.insert(l,e,i)},p(l,[i]){l[2].length?a?a.p(l,i):(a=O(l),a.c(),a.m(e.parentNode,e)):a&&(a.d(1),a=null)},i:t.noop,o:t.noop,d(l){l&&t.detach(e),a&&a.d(l)}}}const lt="DD.MM.YYYY";function nt(s,e,a){let l;t.component_subscribe(s,L.$format,n=>a(5,l=n));let{endpoint:i}=e,{session:o}=e,{lang:r="en"}=e,{customerid:d}=e,{clientstyling:p=""}=e,{clientstylingurl:v=""}=e,{translationurl:y}=e,{tooltipduration:f=1e3}=e,{txncount:C=3}=e,R=[],x=!1,_,D;var b;(function(n){n.Deposit="deposit",n.Withdraw="withdraw",n.Refund="refund",n.Unknown="unknown",n.TaxDeduction="taxDeduction"})(b||(b={}));const S=["Authorized","Success","Failed","Rejected","PendingApprovalStage1","PendingApprovalStage2","PendingApprovalStage3","PendingNotification","PendingOfflineNotification","PendingConfirmation"];var H;(function(n){n.Authorized="Authorized",n.Success="Success",n.Failed="Failed",n.Rejected="Rejected",n.Pending="Pending"})(H||(H={}));const j=()=>{let n=y;if(n)return fetch(n).then(h=>h.json()).then(h=>{Object.keys(h).forEach(g=>{G(g,h[g])})}).catch(h=>{console.log(h)})};Object.keys(E).forEach(n=>{G(n,E[n])});const V=()=>{B(r)},I=()=>{const n=new URL(`${i}/api/v1/mm/payment/gettransactionshistory`),h=new Headers;h.append("accept","application/json"),h.append("Content-Type","application/json"),h.append("X-SessionId",`${o}`);const g=new Date(new Date().setMonth(new Date().getMonth()-3)).toISOString(),F=new Date(new Date().setHours(new Date().getHours()+24)).toISOString(),k={method:"POST",mode:"cors",headers:h,body:JSON.stringify({language:r,customerId:d,count:C,page:0,fromDate:g,toDate:F,statuses:{[b.Deposit]:S,[b.Withdraw]:S,[b.Refund]:["Unknown"],[b.TaxDeduction]:["Unknown"],[b.Unknown]:["Unknown"]},calculateProfit:!1})};fetch(n,k).then(c=>c.json()).then(c=>{a(2,R=M((c==null?void 0:c.items)||[]))}).catch(c=>console.log(c))},M=n=>n.map(h=>{let g=h.generalFields.status;return h.generalFields.status.toLowerCase().includes("pending")&&(g=H.Pending),{Code:h.generalFields.code,Date:q.dayjs(h.generalFields.created).format(lt),Status:g,Type:h.generalFields.type}})||[],T=n=>{const h=n.currentTarget;n.target===h&&navigator.clipboard.writeText(h.innerText).then(()=>{a(3,x=!0),clearTimeout(D),D=setTimeout(()=>{a(3,x=!1)},2e3)}).catch(g=>{console.error("Could not copy text: ",g)})},m=n=>T(n);function u(n){t.binding_callbacks[n?"unshift":"push"](()=>{_=n,a(1,_)})}return s.$$set=n=>{"endpoint"in n&&a(7,i=n.endpoint),"session"in n&&a(8,o=n.session),"lang"in n&&a(9,r=n.lang),"customerid"in n&&a(10,d=n.customerid),"clientstyling"in n&&a(11,p=n.clientstyling),"clientstylingurl"in n&&a(12,v=n.clientstylingurl),"translationurl"in n&&a(13,y=n.translationurl),"tooltipduration"in n&&a(0,f=n.tooltipduration),"txncount"in n&&a(14,C=n.txncount)},s.$$.update=()=>{s.$$.dirty&512&&r&&V(),s.$$.dirty&2050&&p&&_&&Y(_,p),s.$$.dirty&4098&&v&&_&&X(_,v),s.$$.dirty&1920&&i&&o&&d&&r&&I(),s.$$.dirty&8192&&y&&j()},[f,_,R,x,H,l,T,i,o,r,d,p,v,y,C,m,u]}class N extends t.SvelteComponent{constructor(e){super(),t.init(this,e,nt,at,t.safe_not_equal,{endpoint:7,session:8,lang:9,customerid:10,clientstyling:11,clientstylingurl:12,translationurl:13,tooltipduration:0,txncount:14},J)}get endpoint(){return this.$$.ctx[7]}set endpoint(e){this.$$set({endpoint:e}),t.flush()}get session(){return this.$$.ctx[8]}set session(e){this.$$set({session:e}),t.flush()}get lang(){return this.$$.ctx[9]}set lang(e){this.$$set({lang:e}),t.flush()}get customerid(){return this.$$.ctx[10]}set customerid(e){this.$$set({customerid:e}),t.flush()}get clientstyling(){return this.$$.ctx[11]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[12]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get translationurl(){return this.$$.ctx[13]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}get tooltipduration(){return this.$$.ctx[0]}set tooltipduration(e){this.$$set({tooltipduration:e}),t.flush()}get txncount(){return this.$$.ctx[14]}set txncount(e){this.$$set({txncount:e}),t.flush()}}t.create_custom_element(N,{endpoint:{},session:{},lang:{},customerid:{},clientstyling:{},clientstylingurl:{},translationurl:{},tooltipduration:{},txncount:{}},[],[],!0);exports.default=N;
@@ -1,567 +0,0 @@
1
- import { S as ie, b as se, s as ne, f as G, c as ae, n as B, e as E, l as U, w as re, v as oe, K as Y, L as de, g as q, C as ce, t as ue, k as he, x as P, m as s, o as m, p as j, y as I, q as t, z as fe, W as ge, F as pe, X as ve, J as X, A as me, N as f, D as be } from "./CashierConfirmModal-DjJI47WY.js";
2
- import { f as J } from "./CashierModal-DoTNxAOf.js";
3
- import { a as ke, $ as we, i as ye, b as Te } from "./CashierError-BhW9Bd5u.js";
4
- import { d as Ce } from "./CashierMethodDetails-B5Y9sYOg.js";
5
- ye({
6
- fallbackLocale: "en"
7
- });
8
- function K(a, e) {
9
- ke(a, e);
10
- }
11
- function _e(a) {
12
- we.set(a);
13
- }
14
- const Q = {
15
- en: {
16
- transactionHistoryTitle: "Transaction History",
17
- transactionIdTitle: "ID",
18
- transactionDateTitle: "Date",
19
- transactionTypeTitle: "Type",
20
- transactionStatusTitle: "Status",
21
- copyTransactionId: "Transaction Id copied to clipboard",
22
- transactionStatus: {
23
- Authorized: "Authorized",
24
- Success: "Success",
25
- Failed: "Failed",
26
- Rejected: "Rejected",
27
- Pending: "Pending"
28
- },
29
- transactionType: {
30
- Deposit: "Deposit",
31
- Withdraw: "Withdraw"
32
- }
33
- },
34
- tr: {
35
- transactionHistoryTitle: "Transaction History",
36
- transactionIdTitle: "ID",
37
- transactionDateTitle: "Date",
38
- transactionTypeTitle: "Type",
39
- transactionStatusTitle: "Status",
40
- copyTransactionId: "Transaction Id copied to clipboard",
41
- transactionStatus: {
42
- Authorized: "Authorized",
43
- Success: "Success",
44
- Failed: "Failed",
45
- Rejected: "Rejected",
46
- Pending: "Pending"
47
- },
48
- transactionType: {
49
- Deposit: "Yatırma",
50
- Withdraw: "Çekim"
51
- }
52
- }
53
- };
54
- function xe(a, e) {
55
- if (a) {
56
- const l = document.createElement("style");
57
- l.innerHTML = e, a.appendChild(l);
58
- }
59
- }
60
- function He(a, e) {
61
- const l = new URL(e);
62
- fetch(l.href).then((i) => i.text()).then((i) => {
63
- const r = document.createElement("style");
64
- r.innerHTML = i, a && a.appendChild(r);
65
- }).catch((i) => {
66
- console.error("There was an error while trying to load client styling from URL", i);
67
- });
68
- }
69
- function Se(a) {
70
- ae(a, "svelte-1klbu7d", ".svelte-1klbu7d.svelte-1klbu7d,.svelte-1klbu7d.svelte-1klbu7d::before,.svelte-1klbu7d.svelte-1klbu7d::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-style:inherit}.CopyTooltip.svelte-1klbu7d.svelte-1klbu7d{width:calc(50% - var(--emw--spacing-x-small, 10px) - var(--emw--spacing-x-small, 10px));display:flex;align-items:center;justify-content:center;background-color:var(--emw--color-primary, #7EC51E);position:absolute;top:0;left:50%;transform:translateX(-50%);color:var(--emw--color-white, #FFF);border-radius:var(--mmw--border-radius-medium-plus, 6px);z-index:1;opacity:1;container-name:copy-tooltip;font-size:var(--emw--font-size-medium, 16px);line-height:calc(var(--emw--font-size-medium, 16px) + 2px)}.CashierTransactionHistory.svelte-1klbu7d.svelte-1klbu7d{display:flex;flex-direction:column;width:100%;row-gap:var(--emw--spacing-small, 12px);container-name:transaction-history;container-type:inline-size;margin-bottom:var(--emw--spacing-small, 12px)}.CashierTransactionHistory.svelte-1klbu7d table.svelte-1klbu7d{font-size:var(--emw--font-size-medium, 16px);word-break:break-all;width:100%;border-collapse:collapse;box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;margin-bottom:var(--emw--spacing-small-minus, 10px)}.CashierTransactionHistory.svelte-1klbu7d table.svelte-1klbu7d:not(:last-child){margin-bottom:var(--emw--spacing-large, 20px)}.CashierTransactionHistory.svelte-1klbu7d thead tr.svelte-1klbu7d{border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);color:var(--mmw--color-grey-10, #111);height:50px}.CashierTransactionHistory.svelte-1klbu7d tbody tr.svelte-1klbu7d{color:var(--mmw--color-grey-290, #666)}.CashierTransactionHistory.svelte-1klbu7d td.svelte-1klbu7d{max-width:250px;vertical-align:middle;height:40px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0 var(--emw--spacing-large, 20px) 0 var(--emw--spacing-small, 12px)}.CashierTransactionHistory.svelte-1klbu7d tr.svelte-1klbu7d{position:relative}@container deposit-page (max-width: 750px){.CashierTransactionHistory.svelte-1klbu7d .CopyTooltip.svelte-1klbu7d{left:0;transform:none;width:100%;font-size:var(--emw--font-size-small, 14px);line-height:calc(var(--emw--font-size-small, 14px) + 2px);border-radius:0 0 var(--mmw--border-radius-medium-plus, 6px) var(--mmw--border-radius-medium-plus, 6px)}.CashierTransactionHistory.svelte-1klbu7d .CashierTransactionHistoryStatus.svelte-1klbu7d{line-height:calc(var(--emw--font-size-small, 14px) + 2px)}}@container transaction-history (width < 750px){.CashierTransactionHistory.svelte-1klbu7d .CashierTransactionHistoryWrapper.svelte-1klbu7d{width:100%;padding:0;margin:0}.CashierTransactionHistory.svelte-1klbu7d table.svelte-1klbu7d{font-size:var(--emw--font-size-small, 14px);line-height:calc(var(--emw--font-size-small, 14px) + 2px)}.CashierTransactionHistory.svelte-1klbu7d table.svelte-1klbu7d:last-child{margin-bottom:0}.CashierTransactionHistory.svelte-1klbu7d thead tr.svelte-1klbu7d{height:unset}.CashierTransactionHistory.svelte-1klbu7d td.svelte-1klbu7d{height:25px;padding:0 0 0 var(--emw--spacing-small, 12px)}.CashierTransactionHistory.svelte-1klbu7d td.svelte-1klbu7d:first-child{max-width:187px}.CashierTransactionHistory.svelte-1klbu7d td.svelte-1klbu7d:not(:first-child){min-width:max-content}.CashierTransactionHistory.svelte-1klbu7d td.svelte-1klbu7d:last-child{padding-right:var(--emw--spacing-2x-small-plus, 6px)}.CashierTransactionHistory.svelte-1klbu7d .CashierTransactionHistoryIcon svg.svelte-1klbu7d{height:14px;width:14px}}@container transaction-history (width < 450px){.CashierTransactionHistory.svelte-1klbu7d td.svelte-1klbu7d{padding-right:var(--emw--spacing-2x-small-plus, 6px)}.CashierTransactionHistory.svelte-1klbu7d td.svelte-1klbu7d:first-child{max-width:85px}}@container transaction-history (width < 350px){.CashierTransactionHistory.svelte-1klbu7d td.svelte-1klbu7d{padding:0 0 0 var(--emw--spacing-small, 5px)}}@container transaction-history (width < 350px){.CashierTransactionHistory.svelte-1klbu7d table.svelte-1klbu7d{table-layout:fixed}}.CashierTransactionHistoryWrapper.svelte-1klbu7d.svelte-1klbu7d{background:var(--emw--color-background, #fff);box-shadow:0 0 4px var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1));border-radius:var(--mmw--border-radius-medium-plus, 6px);width:100%;box-sizing:border-box;padding:0 var(--emw--spacing-small, 12px)}.CashierTransactionHistoryTitle.svelte-1klbu7d.svelte-1klbu7d{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-normal, 400);line-height:calc(var(--emw--font-size-medium, 16px) + 2px);text-align:left}.CashierTransactionId.svelte-1klbu7d.svelte-1klbu7d{cursor:pointer;-webkit-user-select:none;-ms-user-select:none;user-select:none}.CashierTransactionId.svelte-1klbu7d.svelte-1klbu7d:hover{background-color:var(--emw--color-gray-50, #F7F8FA)}.CashierTransactionHistoryStatus.svelte-1klbu7d.svelte-1klbu7d{line-height:calc(var(--emw--font-size-medium, 16px) + 2px)}.CashierTransactionHistoryContent.svelte-1klbu7d.svelte-1klbu7d{width:100%}.CashierTransactionHistoryIcon.svelte-1klbu7d.svelte-1klbu7d{vertical-align:middle;height:var(--emw--font-size-medium, 16px);width:var(--emw--font-size-medium, 16px)}");
71
- }
72
- function $(a, e, l) {
73
- const i = a.slice();
74
- return i[24] = e[l], i[26] = l, i;
75
- }
76
- function ee(a) {
77
- let e, l, i, r = (
78
- /*$_*/
79
- a[5]("transactionHistoryTitle") + ""
80
- ), d, o, c, g, k, x, w, z, F = (
81
- /*$_*/
82
- a[5]("transactionIdTitle") + ""
83
- ), H, _, L, y = (
84
- /*$_*/
85
- a[5]("transactionDateTitle") + ""
86
- ), R, D, M, A = (
87
- /*$_*/
88
- a[5]("transactionTypeTitle") + ""
89
- ), W, N, S, b = (
90
- /*$_*/
91
- a[5]("transactionStatusTitle") + ""
92
- ), u, n, p, v = (
93
- /*copied*/
94
- a[3] && te(a)
95
- ), Z = Y(
96
- /*txnHistory*/
97
- a[2]
98
- ), T = [];
99
- for (let h = 0; h < Z.length; h += 1)
100
- T[h] = le($(a, Z, h));
101
- return {
102
- c() {
103
- e = m("div"), v && v.c(), l = j(), i = m("h3"), d = I(r), o = j(), c = m("div"), g = m("div"), k = m("table"), x = m("thead"), w = m("tr"), z = m("td"), H = I(F), _ = j(), L = m("td"), R = I(y), D = j(), M = m("td"), W = I(A), N = j(), S = m("td"), u = I(b), n = j(), p = m("tbody");
104
- for (let h = 0; h < T.length; h += 1)
105
- T[h].c();
106
- t(i, "class", "CashierTransactionHistoryTitle svelte-1klbu7d"), t(z, "class", "svelte-1klbu7d"), t(L, "class", "svelte-1klbu7d"), t(M, "class", "svelte-1klbu7d"), t(S, "class", "svelte-1klbu7d"), t(w, "class", "svelte-1klbu7d"), t(x, "class", "svelte-1klbu7d"), t(p, "class", "svelte-1klbu7d"), t(k, "class", "svelte-1klbu7d"), t(g, "class", "CashierTransactionHistoryContent svelte-1klbu7d"), t(c, "class", "CashierTransactionHistoryWrapper svelte-1klbu7d"), t(e, "class", "CashierTransactionHistory svelte-1klbu7d");
107
- },
108
- m(h, V) {
109
- U(h, e, V), v && v.m(e, null), s(e, l), s(e, i), s(i, d), s(e, o), s(e, c), s(c, g), s(g, k), s(k, x), s(x, w), s(w, z), s(z, H), s(w, _), s(w, L), s(L, R), s(w, D), s(w, M), s(M, W), s(w, N), s(w, S), s(S, u), s(k, n), s(k, p);
110
- for (let C = 0; C < T.length; C += 1)
111
- T[C] && T[C].m(p, null);
112
- a[16](e);
113
- },
114
- p(h, V) {
115
- if (/*copied*/
116
- h[3] ? v ? (v.p(h, V), V & /*copied*/
117
- 8 && q(v, 1)) : (v = te(h), v.c(), q(v, 1), v.m(e, l)) : v && (ce(), ue(v, 1, 1, () => {
118
- v = null;
119
- }), he()), V & /*$_*/
120
- 32 && r !== (r = /*$_*/
121
- h[5]("transactionHistoryTitle") + "") && P(d, r), V & /*$_*/
122
- 32 && F !== (F = /*$_*/
123
- h[5]("transactionIdTitle") + "") && P(H, F), V & /*$_*/
124
- 32 && y !== (y = /*$_*/
125
- h[5]("transactionDateTitle") + "") && P(R, y), V & /*$_*/
126
- 32 && A !== (A = /*$_*/
127
- h[5]("transactionTypeTitle") + "") && P(W, A), V & /*$_*/
128
- 32 && b !== (b = /*$_*/
129
- h[5]("transactionStatusTitle") + "") && P(u, b), V & /*$_, txnHistory, TransactionMainStatus, copied, copyToClipboard*/
130
- 124) {
131
- Z = Y(
132
- /*txnHistory*/
133
- h[2]
134
- );
135
- let C;
136
- for (C = 0; C < Z.length; C += 1) {
137
- const O = $(h, Z, C);
138
- T[C] ? T[C].p(O, V) : (T[C] = le(O), T[C].c(), T[C].m(p, null));
139
- }
140
- for (; C < T.length; C += 1)
141
- T[C].d(1);
142
- T.length = Z.length;
143
- }
144
- },
145
- d(h) {
146
- h && E(e), v && v.d(), de(T, h), a[16](null);
147
- }
148
- };
149
- }
150
- function te(a) {
151
- let e, l = (
152
- /*$_*/
153
- a[5]("copyTransactionId") + ""
154
- ), i, r, d, o;
155
- return {
156
- c() {
157
- e = m("div"), i = I(l), t(e, "class", "CopyTooltip svelte-1klbu7d");
158
- },
159
- m(c, g) {
160
- U(c, e, g), s(e, i), o = !0;
161
- },
162
- p(c, g) {
163
- a = c, (!o || g & /*$_*/
164
- 32) && l !== (l = /*$_*/
165
- a[5]("copyTransactionId") + "") && P(i, l);
166
- },
167
- i(c) {
168
- o || (c && pe(() => {
169
- o && (d && d.end(1), r = ve(e, J, { duration: (
170
- /*tooltipduration*/
171
- a[0]
172
- ) }), r.start());
173
- }), o = !0);
174
- },
175
- o(c) {
176
- r && r.invalidate(), c && (d = ge(e, J, { duration: (
177
- /*tooltipduration*/
178
- a[0]
179
- ) })), o = !1;
180
- },
181
- d(c) {
182
- c && E(e), c && d && d.end();
183
- }
184
- };
185
- }
186
- function ze(a) {
187
- let e, l, i, r, d;
188
- return {
189
- c() {
190
- e = f("svg"), l = f("g"), i = f("g"), r = f("g"), d = f("path"), t(l, "id", "SVGRepo_bgCarrier"), t(l, "stroke-width", "0"), t(l, "class", "svelte-1klbu7d"), t(i, "id", "SVGRepo_tracerCarrier"), t(i, "stroke-linecap", "round"), t(i, "stroke-linejoin", "round"), t(i, "class", "svelte-1klbu7d"), t(d, "fill-rule", "evenodd"), t(d, "clip-rule", "evenodd"), t(d, "d", "M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12ZM16.0303 8.96967C16.3232 9.26256 16.3232 9.73744 16.0303 10.0303L11.0303 15.0303C10.7374 15.3232 10.2626 15.3232 9.96967 15.0303L7.96967 13.0303C7.67678 12.7374 7.67678 12.2626 7.96967 11.9697C8.26256 11.6768 8.73744 11.6768 9.03033 11.9697L10.5 13.4393L12.7348 11.2045L14.9697 8.96967C15.2626 8.67678 15.7374 8.67678 16.0303 8.96967Z"), t(d, "fill", "#7EC51E"), t(d, "class", "svelte-1klbu7d"), t(r, "id", "SVGRepo_iconCarrier"), t(r, "class", "svelte-1klbu7d"), t(e, "width", "16px"), t(e, "height", "16px"), t(e, "viewBox", "0 0 24 24"), t(e, "fill", "none"), t(e, "xmlns", "http://www.w3.org/2000/svg"), t(e, "class", "svelte-1klbu7d");
191
- },
192
- m(o, c) {
193
- U(o, e, c), s(e, l), s(e, i), s(e, r), s(r, d);
194
- },
195
- d(o) {
196
- o && E(e);
197
- }
198
- };
199
- }
200
- function Re(a) {
201
- let e, l, i, r, d, o, c;
202
- return {
203
- c() {
204
- e = f("svg"), l = f("g"), i = f("rect"), r = f("g"), d = f("g"), o = f("text"), c = I("R j"), t(i, "x", "-2.4"), t(i, "y", "-2.4"), t(i, "width", "28.80"), t(i, "height", "28.80"), t(i, "rx", "14.4"), t(i, "fill", "#dd6617d4"), t(i, "class", "svelte-1klbu7d"), t(l, "id", "SVGRepo_bgCarrier"), t(l, "stroke-width", "0"), t(l, "class", "svelte-1klbu7d"), t(r, "id", "SVGRepo_tracerCarrier"), t(r, "stroke-linecap", "round"), t(r, "stroke-linejoin", "round"), t(r, "class", "svelte-1klbu7d"), t(o, "x", "42%"), t(o, "y", "50%"), t(o, "dominant-baseline", "middle"), t(o, "text-anchor", "middle"), t(o, "font-family", "Arial"), t(o, "font-size", "16"), t(o, "fill", "#ffffff"), t(o, "class", "svelte-1klbu7d"), t(d, "id", "SVGRepo_iconCarrier"), t(d, "class", "svelte-1klbu7d"), t(e, "width", "16px"), t(e, "height", "16px"), t(e, "viewBox", "-2.4 -2.4 28.80 28.80"), t(e, "fill", "none"), t(e, "xmlns", "http://www.w3.org/2000/svg"), t(e, "class", "svelte-1klbu7d");
205
- },
206
- m(g, k) {
207
- U(g, e, k), s(e, l), s(l, i), s(e, r), s(e, d), s(d, o), s(o, c);
208
- },
209
- d(g) {
210
- g && E(e);
211
- }
212
- };
213
- }
214
- function De(a) {
215
- let e, l, i, r, d, o, c;
216
- return {
217
- c() {
218
- e = f("svg"), l = f("g"), i = f("rect"), r = f("g"), d = f("g"), o = f("path"), c = f("path"), t(i, "x", "-2.4"), t(i, "y", "-2.4"), t(i, "width", "28.80"), t(i, "height", "28.80"), t(i, "rx", "14.4"), t(i, "fill", "#dd6617d4"), t(i, "class", "svelte-1klbu7d"), t(l, "id", "SVGRepo_bgCarrier"), t(l, "stroke-width", "0"), t(l, "class", "svelte-1klbu7d"), t(r, "id", "SVGRepo_tracerCarrier"), t(r, "stroke-linecap", "round"), t(r, "stroke-linejoin", "round"), t(r, "class", "svelte-1klbu7d"), t(o, "d", "M13 6H11V7C11 7.55228 11.4477 8 12 8C12.5523 8 13 7.55228 13 7V6Z"), t(o, "fill", "#ffffff"), t(o, "class", "svelte-1klbu7d"), t(c, "fill-rule", "evenodd"), t(c, "clip-rule", "evenodd"), t(c, "d", "M6 2V4H7V7C7 9.76142 9.23858 12 12 12C9.23858 12 7 14.2386 7 17V20H6V22H18V20H17V17C17 14.2386 14.7614 12 12 12C14.7614 12 17 9.76142 17 7V4H18V2H6ZM9 4H15V7C15 8.65685 13.6569 10 12 10C10.3431 10 9 8.65685 9 7V4ZM9 17V20H15V17C15 15.3431 13.6569 14 12 14C10.3431 14 9 15.3431 9 17Z"), t(c, "fill", "#ffffff"), t(c, "class", "svelte-1klbu7d"), t(d, "id", "SVGRepo_iconCarrier"), t(d, "class", "svelte-1klbu7d"), t(e, "width", "16px"), t(e, "height", "16px"), t(e, "viewBox", "-2.4 -2.4 28.80 28.80"), t(e, "fill", "none"), t(e, "xmlns", "http://www.w3.org/2000/svg"), t(e, "class", "svelte-1klbu7d");
219
- },
220
- m(g, k) {
221
- U(g, e, k), s(e, l), s(l, i), s(e, r), s(e, d), s(d, o), s(d, c);
222
- },
223
- d(g) {
224
- g && E(e);
225
- }
226
- };
227
- }
228
- function Ve(a) {
229
- let e, l, i, r, d;
230
- return {
231
- c() {
232
- e = f("svg"), l = f("g"), i = f("g"), r = f("g"), d = f("path"), t(l, "id", "SVGRepo_bgCarrier"), t(l, "stroke-width", "0"), t(l, "class", "svelte-1klbu7d"), t(i, "id", "SVGRepo_tracerCarrier"), t(i, "stroke-linecap", "round"), t(i, "stroke-linejoin", "round"), t(i, "class", "svelte-1klbu7d"), t(d, "d", "M960 0c530.193 0 960 429.807 960 960s-429.807 960-960 960S0 1490.193 0 960 429.807 0 960 0Zm-9.838 1342.685c-84.47 0-153.19 68.721-153.19 153.19 0 84.47 68.72 153.192 153.19 153.192s153.19-68.721 153.19-153.191-68.72-153.19-153.19-153.19ZM1153.658 320H746.667l99.118 898.623h208.755L1153.658 320Z"), t(d, "fill-rule", "evenodd"), t(d, "class", "svelte-1klbu7d"), t(r, "id", "SVGRepo_iconCarrier"), t(r, "class", "svelte-1klbu7d"), t(e, "fill", "#ed0909"), t(e, "width", "16px"), t(e, "height", "16px"), t(e, "viewBox", "0 0 1920 1920"), t(e, "xmlns", "http://www.w3.org/2000/svg"), t(e, "class", "svelte-1klbu7d");
233
- },
234
- m(o, c) {
235
- U(o, e, c), s(e, l), s(e, i), s(e, r), s(r, d);
236
- },
237
- d(o) {
238
- o && E(e);
239
- }
240
- };
241
- }
242
- function je(a) {
243
- let e, l, i, r, d, o;
244
- return {
245
- c() {
246
- e = f("svg"), l = f("g"), i = f("g"), r = f("g"), d = f("circle"), o = f("path"), t(l, "id", "SVGRepo_bgCarrier"), t(l, "stroke-width", "0"), t(l, "class", "svelte-1klbu7d"), t(i, "id", "SVGRepo_tracerCarrier"), t(i, "stroke-linecap", "round"), t(i, "stroke-linejoin", "round"), t(i, "class", "svelte-1klbu7d"), t(d, "cx", "32"), t(d, "cy", "32"), t(d, "r", "30"), t(d, "fill", "#4fd1d9"), t(d, "class", "svelte-1klbu7d"), t(o, "d", "M28.6 17.5h6.9l10.3 29h-6.6l-1.9-6H26.6l-2 6h-6.3l10.3-29m-.4 18h7.4L32 24.1l-3.8 11.4"), t(o, "fill", "#ffffff"), t(o, "class", "svelte-1klbu7d"), t(r, "id", "SVGRepo_iconCarrier"), t(r, "class", "svelte-1klbu7d"), t(e, "width", "14px"), t(e, "height", "14px"), t(e, "viewBox", "0 0 64 64"), t(e, "xmlns", "http://www.w3.org/2000/svg"), t(e, "xmlns:xlink", "http://www.w3.org/1999/xlink"), t(e, "aria-hidden", "true"), t(e, "role", "img"), t(e, "class", "iconify iconify--emojione svelte-1klbu7d"), t(e, "preserveAspectRatio", "xMidYMid meet"), t(e, "fill", "#000000");
247
- },
248
- m(c, g) {
249
- U(c, e, g), s(e, l), s(e, i), s(e, r), s(r, d), s(r, o);
250
- },
251
- d(c) {
252
- c && E(e);
253
- }
254
- };
255
- }
256
- function le(a) {
257
- let e, l, i = (
258
- /*transaction*/
259
- a[24].Code + ""
260
- ), r, d, o, c = (
261
- /*transaction*/
262
- a[24].Date + ""
263
- ), g, k, x, w = (
264
- /*$_*/
265
- a[5](`transactionType.${/*transaction*/
266
- a[24].Type}`) + ""
267
- ), z, F, H, _, L, y, R = (
268
- /*$_*/
269
- a[5](`transactionStatus.${/*transaction*/
270
- a[24].Status}`) + ""
271
- ), D, M, A, W;
272
- function N(u, n) {
273
- if (
274
- /*transaction*/
275
- u[24].Status === /*TransactionMainStatus*/
276
- u[4].Authorized
277
- ) return je;
278
- if (
279
- /*transaction*/
280
- u[24].Status === /*TransactionMainStatus*/
281
- u[4].Failed
282
- ) return Ve;
283
- if (
284
- /*transaction*/
285
- u[24].Status === /*TransactionMainStatus*/
286
- u[4].Pending
287
- ) return De;
288
- if (
289
- /*transaction*/
290
- u[24].Status === /*TransactionMainStatus*/
291
- u[4].Rejected
292
- ) return Re;
293
- if (
294
- /*transaction*/
295
- u[24].Status === /*TransactionMainStatus*/
296
- u[4].Success
297
- ) return ze;
298
- }
299
- let S = N(a), b = S && S(a);
300
- return {
301
- c() {
302
- e = m("tr"), l = m("td"), r = I(i), d = j(), o = m("td"), g = I(c), k = j(), x = m("td"), z = I(w), F = j(), H = m("td"), _ = m("span"), b && b.c(), L = j(), y = m("span"), D = I(R), M = j(), t(l, "class", "CashierTransactionId svelte-1klbu7d"), X(
303
- l,
304
- "copied",
305
- /*copied*/
306
- a[3]
307
- ), t(o, "class", "svelte-1klbu7d"), t(x, "class", "svelte-1klbu7d"), t(_, "class", "CashierTransactionHistoryIcon svelte-1klbu7d"), t(y, "class", "CashierTransactionHistoryStatus svelte-1klbu7d"), t(H, "class", "svelte-1klbu7d"), t(e, "class", "svelte-1klbu7d");
308
- },
309
- m(u, n) {
310
- U(u, e, n), s(e, l), s(l, r), s(e, d), s(e, o), s(o, g), s(e, k), s(e, x), s(x, z), s(e, F), s(e, H), s(H, _), b && b.m(_, null), s(H, L), s(H, y), s(y, D), s(e, M), A || (W = me(
311
- l,
312
- "mousedown",
313
- /*mousedown_handler*/
314
- a[15]
315
- ), A = !0);
316
- },
317
- p(u, n) {
318
- n & /*txnHistory*/
319
- 4 && i !== (i = /*transaction*/
320
- u[24].Code + "") && P(r, i), n & /*copied*/
321
- 8 && X(
322
- l,
323
- "copied",
324
- /*copied*/
325
- u[3]
326
- ), n & /*txnHistory*/
327
- 4 && c !== (c = /*transaction*/
328
- u[24].Date + "") && P(g, c), n & /*$_, txnHistory*/
329
- 36 && w !== (w = /*$_*/
330
- u[5](`transactionType.${/*transaction*/
331
- u[24].Type}`) + "") && P(z, w), S !== (S = N(u)) && (b && b.d(1), b = S && S(u), b && (b.c(), b.m(_, null))), n & /*$_, txnHistory*/
332
- 36 && R !== (R = /*$_*/
333
- u[5](`transactionStatus.${/*transaction*/
334
- u[24].Status}`) + "") && P(D, R);
335
- },
336
- d(u) {
337
- u && E(e), b && b.d(), A = !1, W();
338
- }
339
- };
340
- }
341
- function Ie(a) {
342
- let e, l = (
343
- /*txnHistory*/
344
- a[2].length && ee(a)
345
- );
346
- return {
347
- c() {
348
- l && l.c(), e = re();
349
- },
350
- m(i, r) {
351
- l && l.m(i, r), U(i, e, r);
352
- },
353
- p(i, [r]) {
354
- /*txnHistory*/
355
- i[2].length ? l ? l.p(i, r) : (l = ee(i), l.c(), l.m(e.parentNode, e)) : l && (l.d(1), l = null);
356
- },
357
- i: B,
358
- o: B,
359
- d(i) {
360
- i && E(e), l && l.d(i);
361
- }
362
- };
363
- }
364
- const Fe = "DD.MM.YYYY";
365
- function Le(a, e, l) {
366
- let i;
367
- oe(a, Te, (n) => l(5, i = n));
368
- let { endpoint: r } = e, { session: d } = e, { lang: o = "en" } = e, { customerid: c } = e, { clientstyling: g = "" } = e, { clientstylingurl: k = "" } = e, { translationurl: x } = e, { tooltipduration: w = 1e3 } = e, { txncount: z = 3 } = e, F = [], H = !1, _, L;
369
- var y;
370
- (function(n) {
371
- n.Deposit = "deposit", n.Withdraw = "withdraw", n.Refund = "refund", n.Unknown = "unknown", n.TaxDeduction = "taxDeduction";
372
- })(y || (y = {}));
373
- const R = [
374
- "Authorized",
375
- "Success",
376
- "Failed",
377
- "Rejected",
378
- "PendingApprovalStage1",
379
- "PendingApprovalStage2",
380
- "PendingApprovalStage3",
381
- "PendingNotification",
382
- "PendingOfflineNotification",
383
- "PendingConfirmation"
384
- ];
385
- var D;
386
- (function(n) {
387
- n.Authorized = "Authorized", n.Success = "Success", n.Failed = "Failed", n.Rejected = "Rejected", n.Pending = "Pending";
388
- })(D || (D = {}));
389
- const M = () => {
390
- let n = x;
391
- if (n)
392
- return fetch(n).then((p) => p.json()).then((p) => {
393
- Object.keys(p).forEach((v) => {
394
- K(v, p[v]);
395
- });
396
- }).catch((p) => {
397
- console.log(p);
398
- });
399
- };
400
- Object.keys(Q).forEach((n) => {
401
- K(n, Q[n]);
402
- });
403
- const A = () => {
404
- _e(o);
405
- }, W = () => {
406
- const n = new URL(`${r}/api/v1/mm/payment/gettransactionshistory`), p = new Headers();
407
- p.append("accept", "application/json"), p.append("Content-Type", "application/json"), p.append("X-SessionId", `${d}`);
408
- const v = new Date((/* @__PURE__ */ new Date()).setMonth((/* @__PURE__ */ new Date()).getMonth() - 3)).toISOString(), Z = new Date((/* @__PURE__ */ new Date()).setHours((/* @__PURE__ */ new Date()).getHours() + 24)).toISOString(), T = {
409
- method: "POST",
410
- mode: "cors",
411
- headers: p,
412
- body: JSON.stringify({
413
- language: o,
414
- customerId: c,
415
- count: z,
416
- page: 0,
417
- fromDate: v,
418
- toDate: Z,
419
- statuses: {
420
- [y.Deposit]: R,
421
- [y.Withdraw]: R,
422
- [y.Refund]: ["Unknown"],
423
- [y.TaxDeduction]: ["Unknown"],
424
- [y.Unknown]: ["Unknown"]
425
- },
426
- calculateProfit: !1
427
- })
428
- };
429
- fetch(n, T).then((h) => h.json()).then((h) => {
430
- l(2, F = N(h?.items || []));
431
- }).catch((h) => console.log(h));
432
- }, N = (n) => n.map((p) => {
433
- let v = p.generalFields.status;
434
- return p.generalFields.status.toLowerCase().includes("pending") && (v = D.Pending), {
435
- Code: p.generalFields.code,
436
- Date: Ce(p.generalFields.created).format(Fe),
437
- Status: v,
438
- Type: p.generalFields.type
439
- };
440
- }) || [], S = (n) => {
441
- const p = n.currentTarget;
442
- n.target === p && navigator.clipboard.writeText(p.innerText).then(() => {
443
- l(3, H = !0), clearTimeout(L), L = setTimeout(
444
- () => {
445
- l(3, H = !1);
446
- },
447
- 2e3
448
- );
449
- }).catch((v) => {
450
- console.error("Could not copy text: ", v);
451
- });
452
- }, b = (n) => S(n);
453
- function u(n) {
454
- fe[n ? "unshift" : "push"](() => {
455
- _ = n, l(1, _);
456
- });
457
- }
458
- return a.$$set = (n) => {
459
- "endpoint" in n && l(7, r = n.endpoint), "session" in n && l(8, d = n.session), "lang" in n && l(9, o = n.lang), "customerid" in n && l(10, c = n.customerid), "clientstyling" in n && l(11, g = n.clientstyling), "clientstylingurl" in n && l(12, k = n.clientstylingurl), "translationurl" in n && l(13, x = n.translationurl), "tooltipduration" in n && l(0, w = n.tooltipduration), "txncount" in n && l(14, z = n.txncount);
460
- }, a.$$.update = () => {
461
- a.$$.dirty & /*lang*/
462
- 512 && o && A(), a.$$.dirty & /*clientstyling, customStylingContainer*/
463
- 2050 && g && _ && xe(_, g), a.$$.dirty & /*clientstylingurl, customStylingContainer*/
464
- 4098 && k && _ && He(_, k), a.$$.dirty & /*endpoint, session, customerid, lang*/
465
- 1920 && r && d && c && o && W(), a.$$.dirty & /*translationurl*/
466
- 8192 && x && M();
467
- }, [
468
- w,
469
- _,
470
- F,
471
- H,
472
- D,
473
- i,
474
- S,
475
- r,
476
- d,
477
- o,
478
- c,
479
- g,
480
- k,
481
- x,
482
- z,
483
- b,
484
- u
485
- ];
486
- }
487
- class Ae extends ie {
488
- constructor(e) {
489
- super(), se(
490
- this,
491
- e,
492
- Le,
493
- Ie,
494
- ne,
495
- {
496
- endpoint: 7,
497
- session: 8,
498
- lang: 9,
499
- customerid: 10,
500
- clientstyling: 11,
501
- clientstylingurl: 12,
502
- translationurl: 13,
503
- tooltipduration: 0,
504
- txncount: 14
505
- },
506
- Se
507
- );
508
- }
509
- get endpoint() {
510
- return this.$$.ctx[7];
511
- }
512
- set endpoint(e) {
513
- this.$$set({ endpoint: e }), G();
514
- }
515
- get session() {
516
- return this.$$.ctx[8];
517
- }
518
- set session(e) {
519
- this.$$set({ session: e }), G();
520
- }
521
- get lang() {
522
- return this.$$.ctx[9];
523
- }
524
- set lang(e) {
525
- this.$$set({ lang: e }), G();
526
- }
527
- get customerid() {
528
- return this.$$.ctx[10];
529
- }
530
- set customerid(e) {
531
- this.$$set({ customerid: e }), G();
532
- }
533
- get clientstyling() {
534
- return this.$$.ctx[11];
535
- }
536
- set clientstyling(e) {
537
- this.$$set({ clientstyling: e }), G();
538
- }
539
- get clientstylingurl() {
540
- return this.$$.ctx[12];
541
- }
542
- set clientstylingurl(e) {
543
- this.$$set({ clientstylingurl: e }), G();
544
- }
545
- get translationurl() {
546
- return this.$$.ctx[13];
547
- }
548
- set translationurl(e) {
549
- this.$$set({ translationurl: e }), G();
550
- }
551
- get tooltipduration() {
552
- return this.$$.ctx[0];
553
- }
554
- set tooltipduration(e) {
555
- this.$$set({ tooltipduration: e }), G();
556
- }
557
- get txncount() {
558
- return this.$$.ctx[14];
559
- }
560
- set txncount(e) {
561
- this.$$set({ txncount: e }), G();
562
- }
563
- }
564
- be(Ae, { endpoint: {}, session: {}, lang: {}, customerid: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, tooltipduration: {}, txncount: {} }, [], [], !0);
565
- export {
566
- Ae as default
567
- };