@everymatrix/cashier-page 1.62.2 → 1.62.4

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 (36) hide show
  1. package/components/{CashierError-tQbKEw2z.js → CashierError-7Ot8GFHL.js} +133 -133
  2. package/components/CashierError-ChvIhij4.cjs +5 -0
  3. package/components/{CashierError-B-J3bgXO.js → CashierError-Dcf1i1i-.js} +133 -133
  4. package/components/{CashierHeader-B0U5rO7Q.js → CashierHeader-Btl5G1aW.js} +1 -1
  5. package/components/{CashierHeader-D8xZnXx8.js → CashierHeader-DnmOCyY5.js} +1 -1
  6. package/components/{CashierHeader-C1eIvzMB.cjs → CashierHeader-xBZmd3xD.cjs} +1 -1
  7. package/components/{CashierIframeRedirect-D-RjbYkO.js → CashierIframeRedirect-_jhy32eh.js} +2 -2
  8. package/components/{CashierIframeRedirect-7pq1sSyS.js → CashierIframeRedirect-iRpGhBuO.js} +2 -2
  9. package/components/{CashierIframeRedirect-WdyL8gss.cjs → CashierIframeRedirect-lBzX1iUX.cjs} +1 -1
  10. package/components/{CashierMethodDetails-CBYCNiq-.cjs → CashierMethodDetails-DLhEFjxf.cjs} +2 -2
  11. package/components/{CashierMethodDetails-qob4ROJt.js → CashierMethodDetails-DatXAL1v.js} +9 -9
  12. package/components/{CashierMethodDetails-DbMqHY6i.js → CashierMethodDetails-jk5GNqET.js} +9 -9
  13. package/components/{CashierMethodsList-B6gXCjuL.js → CashierMethodsList-C0IZmP3U.js} +2 -2
  14. package/components/{CashierMethodsList-f5eLUBC5.js → CashierMethodsList-DfKVl2ns.js} +2 -2
  15. package/components/{CashierMethodsList-CWQS-5xX.cjs → CashierMethodsList-PDEbBRc7.cjs} +1 -1
  16. package/components/{CashierPage-DKfiHjmm.js → CashierPage-B1G7PQOG.js} +9 -9
  17. package/components/{CashierPage-CYGpGECb.cjs → CashierPage-DuVl1Vzu.cjs} +1 -1
  18. package/components/{CashierPage-Ck-ztowb.js → CashierPage-V2NAWvNg.js} +9 -9
  19. package/components/{CashierReceiptPage-C91_np3V.cjs → CashierReceiptPage-BA00H-2d.cjs} +1 -1
  20. package/components/{CashierReceiptPage-CFgLz3ji.js → CashierReceiptPage-CG0IVSDJ.js} +2 -2
  21. package/components/{CashierReceiptPage-DGx0BsYd.js → CashierReceiptPage-D4IgTNIg.js} +2 -2
  22. package/components/{CashierSessionExpirationModal-DTzy_7KD.cjs → CashierSessionExpirationModal-B3thCy2R.cjs} +1 -1
  23. package/components/{CashierSessionExpirationModal-CNPZ_Tof.js → CashierSessionExpirationModal-CHPU1aRa.js} +2 -2
  24. package/components/{CashierSessionExpirationModal-BPW1Kvxj.js → CashierSessionExpirationModal-DV8r-804.js} +2 -2
  25. package/components/{CashierTransactionHistory-BnpISvpA.js → CashierTransactionHistory-DuD_IPSM.js} +92 -92
  26. package/components/{CashierTransactionHistory-BDZT0VTo.js → CashierTransactionHistory-Dxq24rfR.js} +111 -111
  27. package/components/CashierTransactionHistory-DyQIw9U2.cjs +1 -0
  28. package/components/{CashierVerifications-CmUh-2cH.js → CashierVerifications-AI2HHaYS.js} +2 -2
  29. package/components/{CashierVerifications-BQyvB4N6.js → CashierVerifications-BXoRLAWe.js} +2 -2
  30. package/components/{CashierVerifications-DOBEomV7.cjs → CashierVerifications-CLeYFnf-.cjs} +1 -1
  31. package/es2015/cashier-page.cjs +1 -1
  32. package/es2015/cashier-page.js +1 -1
  33. package/esnext/cashier-page.js +1 -1
  34. package/package.json +1 -1
  35. package/components/CashierError-DOwVjf9G.cjs +0 -5
  36. package/components/CashierTransactionHistory-D0fo2w7E.cjs +0 -1
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CashierConfirmModal-BVT51ZOp.cjs"),E=require("./CashierModal-BhCdxWcE.cjs"),L=require("./CashierError-DOwVjf9G.cjs"),X=require("./CashierMethodDetails-CBYCNiq-.cjs");L.init({fallbackLocale:"en"});function U(i,e){L.addMessages(i,e)}function J(i){L.$locale.set(i)}const B={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 V(i,e){if(i){const a=document.createElement("style");a.innerHTML=e,i.appendChild(a)}}function G(i,e){const a=new URL(e);fetch(a.href).then(n=>n.text()).then(n=>{const r=document.createElement("style");r.innerHTML=n,i&&i.appendChild(r)}).catch(n=>{console.error("There was an error while trying to load client styling from URL",n)})}function K(i){t.append_styles(i,"svelte-40f46w",".svelte-40f46w.svelte-40f46w,.svelte-40f46w.svelte-40f46w::before,.svelte-40f46w.svelte-40f46w::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-style:inherit}.CopyTooltip.svelte-40f46w.svelte-40f46w{width:50%;display:flex;align-items:center;justify-content:center;background-color:var(--emw--color-primary, #7EC51E);position:absolute;top:-6px;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);padding:4px}.CashierTransactionHistory.svelte-40f46w.svelte-40f46w{display:flex;flex-direction:column;position:relative;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-40f46w table.svelte-40f46w{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-40f46w table.svelte-40f46w:not(:last-child){margin-bottom:var(--emw--spacing-large, 20px)}.CashierTransactionHistory.svelte-40f46w thead tr.svelte-40f46w{border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);color:var(--mmw--color-grey-10, #111);height:50px}.CashierTransactionHistory.svelte-40f46w tbody tr.svelte-40f46w{color:var(--mmw--color-grey-290, #666)}.CashierTransactionHistory.svelte-40f46w td.svelte-40f46w{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-40f46w tr.svelte-40f46w{position:relative}@container transaction-history (width < 750px){.CashierTransactionHistory.svelte-40f46w .CopyTooltip.svelte-40f46w{width:100%}.CashierTransactionHistory.svelte-40f46w .CashierTransactionId.svelte-40f46w{max-width:150px}.CashierTransactionHistory.svelte-40f46w td.svelte-40f46w{padding:0 var(--emw--spacing-small, 12px) 0 var(--emw--spacing-small, 12px)}}@container transaction-history (width < 475px){.CashierTransactionHistory.svelte-40f46w .CashierTransactionHistoryWrapper.svelte-40f46w{padding:0 var(--emw--spacing-2x-small-plus, 6px)}.CashierTransactionHistory.svelte-40f46w td.svelte-40f46w{padding:0 var(--emw--spacing-2x-small-plus, 6px)}.CashierTransactionHistory.svelte-40f46w td.svelte-40f46w:first-child{max-width:75px}}@container transaction-history (width < 350px){.CashierTransactionHistory.svelte-40f46w table.svelte-40f46w{table-layout:fixed}.CashierTransactionHistory.svelte-40f46w table td.svelte-40f46w{padding:0 0 0 var(--emw--spacing-small, 5px)}}.CashierTransactionHistoryWrapper.svelte-40f46w.svelte-40f46w{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-40f46w.svelte-40f46w{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-40f46w.svelte-40f46w{cursor:pointer;-webkit-user-select:none;-ms-user-select:none;user-select:none}.CashierTransactionId.svelte-40f46w.svelte-40f46w:hover{background-color:var(--emw--color-gray-50, #F7F8FA)}.CashierTransactionHistoryStatus.svelte-40f46w.svelte-40f46w{display:flex;gap:5px}.CashierTransactionHistoryStatusText.svelte-40f46w.svelte-40f46w{line-height:calc(var(--emw--font-size-medium, 16px) + 2px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.CashierTransactionHistoryContent.svelte-40f46w.svelte-40f46w{width:100%}.CashierTransactionHistoryIcon.svelte-40f46w.svelte-40f46w{vertical-align:middle;height:var(--emw--font-size-medium, 16px);width:var(--emw--font-size-medium, 16px)}")}function O(i,e,a){const n=i.slice();return n[24]=e[a],n[26]=a,n}function W(i){let e,a,n,r=i[5]("transactionHistoryTitle")+"",o,d,f,m,_,T,h,k,z=i[5]("transactionIdTitle")+"",C,v,b,y=i[5]("transactionDateTitle")+"",H,S,I,F=i[5]("transactionTypeTitle")+"",j,R,A,x=i[5]("transactionStatusTitle")+"",w,s,l,c=i[3]&&N(i),P=t.ensure_array_like(i[2]),u=[];for(let p=0;p<P.length;p+=1)u[p]=q(O(i,P,p));return{c(){e=t.element("div"),c&&c.c(),a=t.space(),n=t.element("h3"),o=t.text(r),d=t.space(),f=t.element("div"),m=t.element("div"),_=t.element("table"),T=t.element("thead"),h=t.element("tr"),k=t.element("td"),C=t.text(z),v=t.space(),b=t.element("td"),H=t.text(y),S=t.space(),I=t.element("td"),j=t.text(F),R=t.space(),A=t.element("td"),w=t.text(x),s=t.space(),l=t.element("tbody");for(let p=0;p<u.length;p+=1)u[p].c();t.attr(n,"class","CashierTransactionHistoryTitle svelte-40f46w"),t.attr(k,"class","svelte-40f46w"),t.attr(b,"class","svelte-40f46w"),t.attr(I,"class","svelte-40f46w"),t.attr(A,"class","svelte-40f46w"),t.attr(h,"class","svelte-40f46w"),t.attr(T,"class","svelte-40f46w"),t.attr(l,"class","svelte-40f46w"),t.attr(_,"class","svelte-40f46w"),t.attr(m,"class","CashierTransactionHistoryContent svelte-40f46w"),t.attr(f,"class","CashierTransactionHistoryWrapper svelte-40f46w"),t.attr(e,"class","CashierTransactionHistory svelte-40f46w")},m(p,D){t.insert(p,e,D),c&&c.m(e,null),t.append(e,a),t.append(e,n),t.append(n,o),t.append(e,d),t.append(e,f),t.append(f,m),t.append(m,_),t.append(_,T),t.append(T,h),t.append(h,k),t.append(k,C),t.append(h,v),t.append(h,b),t.append(b,H),t.append(h,S),t.append(h,I),t.append(I,j),t.append(h,R),t.append(h,A),t.append(A,w),t.append(_,s),t.append(_,l);for(let g=0;g<u.length;g+=1)u[g]&&u[g].m(l,null);i[16](e)},p(p,D){if(p[3]?c?(c.p(p,D),D&8&&t.transition_in(c,1)):(c=N(p),c.c(),t.transition_in(c,1),c.m(e,a)):c&&(t.group_outros(),t.transition_out(c,1,1,()=>{c=null}),t.check_outros()),D&32&&r!==(r=p[5]("transactionHistoryTitle")+"")&&t.set_data(o,r),D&32&&z!==(z=p[5]("transactionIdTitle")+"")&&t.set_data(C,z),D&32&&y!==(y=p[5]("transactionDateTitle")+"")&&t.set_data(H,y),D&32&&F!==(F=p[5]("transactionTypeTitle")+"")&&t.set_data(j,F),D&32&&x!==(x=p[5]("transactionStatusTitle")+"")&&t.set_data(w,x),D&124){P=t.ensure_array_like(p[2]);let g;for(g=0;g<P.length;g+=1){const M=O(p,P,g);u[g]?u[g].p(M,D):(u[g]=q(M),u[g].c(),u[g].m(l,null))}for(;g<u.length;g+=1)u[g].d(1);u.length=P.length}},d(p){p&&t.detach(e),c&&c.d(),t.destroy_each(u,p),i[16](null)}}}function N(i){let e,a=i[5]("copyTransactionId")+"",n,r,o,d;return{c(){e=t.element("div"),n=t.text(a),t.attr(e,"class","CopyTooltip svelte-40f46w")},m(f,m){t.insert(f,e,m),t.append(e,n),d=!0},p(f,m){i=f,(!d||m&32)&&a!==(a=i[5]("copyTransactionId")+"")&&t.set_data(n,a)},i(f){d||(f&&t.add_render_callback(()=>{d&&(o&&o.end(1),r=t.create_in_transition(e,E.fade,{duration:100}),r.start())}),d=!0)},o(f){r&&r.invalidate(),f&&(o=t.create_out_transition(e,E.fade,{duration:i[0]})),d=!1},d(f){f&&t.detach(e),f&&o&&o.end()}}}function Q(i){let e,a,n;return{c(){e=t.svg_element("svg"),a=t.svg_element("circle"),n=t.svg_element("path"),t.attr(a,"cx","12"),t.attr(a,"cy","12"),t.attr(a,"r","10"),t.attr(a,"stroke","#25bf00"),t.attr(a,"stroke-width","2"),t.attr(a,"class","svelte-40f46w"),t.attr(n,"d","M8 12L11 15L16 9"),t.attr(n,"stroke","#25bf00"),t.attr(n,"stroke-width","2"),t.attr(n,"stroke-linecap","round"),t.attr(n,"stroke-linejoin","round"),t.attr(n,"class","svelte-40f46w"),t.attr(e,"width","18"),t.attr(e,"height","18"),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-40f46w")},m(r,o){t.insert(r,e,o),t.append(e,a),t.append(e,n)},d(r){r&&t.detach(e)}}}function Z(i){let e,a,n,r;return{c(){e=t.svg_element("svg"),a=t.svg_element("circle"),n=t.svg_element("text"),r=t.text("R"),t.attr(a,"cx","12"),t.attr(a,"cy","12"),t.attr(a,"r","10"),t.attr(a,"stroke","#dd6617d4"),t.attr(a,"stroke-width","2"),t.attr(a,"class","svelte-40f46w"),t.attr(n,"x","50%"),t.attr(n,"y","54%"),t.attr(n,"text-anchor","middle"),t.attr(n,"dominant-baseline","middle"),t.attr(n,"font-size","14"),t.attr(n,"font-weight","bold"),t.attr(n,"fill","#dd6617d4"),t.attr(n,"font-family","Arial Rounded MT Bold, Arial, sans-serif"),t.attr(n,"class","svelte-40f46w"),t.attr(e,"width","18"),t.attr(e,"height","18"),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-40f46w")},m(o,d){t.insert(o,e,d),t.append(e,a),t.append(e,n),t.append(n,r)},d(o){o&&t.detach(e)}}}function $(i){let e,a,n;return{c(){e=t.svg_element("svg"),a=t.svg_element("circle"),n=t.svg_element("path"),t.attr(a,"cx","12"),t.attr(a,"cy","12"),t.attr(a,"r","10"),t.attr(a,"stroke","#f0a85f"),t.attr(a,"stroke-width","2"),t.attr(a,"class","svelte-40f46w"),t.attr(n,"d","M12 7V12L15 14"),t.attr(n,"stroke","#f0a85f"),t.attr(n,"stroke-width","2"),t.attr(n,"stroke-linecap","round"),t.attr(n,"stroke-linejoin","round"),t.attr(n,"class","svelte-40f46w"),t.attr(e,"width","18"),t.attr(e,"height","18"),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-40f46w")},m(r,o){t.insert(r,e,o),t.append(e,a),t.append(e,n)},d(r){r&&t.detach(e)}}}function tt(i){let e,a,n;return{c(){e=t.svg_element("svg"),a=t.svg_element("circle"),n=t.svg_element("path"),t.attr(a,"cx","12"),t.attr(a,"cy","12"),t.attr(a,"r","10"),t.attr(a,"stroke","#e76049"),t.attr(a,"stroke-width","2"),t.attr(a,"class","svelte-40f46w"),t.attr(n,"d","M9 9L15 15M15 9L9 15"),t.attr(n,"stroke","#e76049"),t.attr(n,"stroke-width","2"),t.attr(n,"stroke-linecap","round"),t.attr(n,"stroke-linejoin","round"),t.attr(n,"class","svelte-40f46w"),t.attr(e,"width","18"),t.attr(e,"height","18"),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-40f46w")},m(r,o){t.insert(r,e,o),t.append(e,a),t.append(e,n)},d(r){r&&t.detach(e)}}}function et(i){let e,a,n,r;return{c(){e=t.svg_element("svg"),a=t.svg_element("circle"),n=t.svg_element("text"),r=t.text("A"),t.attr(a,"cx","12"),t.attr(a,"cy","12"),t.attr(a,"r","10"),t.attr(a,"stroke","#32b398"),t.attr(a,"stroke-width","2"),t.attr(a,"class","svelte-40f46w"),t.attr(n,"x","50%"),t.attr(n,"y","54%"),t.attr(n,"text-anchor","middle"),t.attr(n,"dominant-baseline","middle"),t.attr(n,"font-size","14"),t.attr(n,"font-weight","bold"),t.attr(n,"fill","#32b398"),t.attr(n,"font-family","Arial Rounded MT Bold, Arial, sans-serif"),t.attr(n,"class","svelte-40f46w"),t.attr(e,"width","18"),t.attr(e,"height","18"),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-40f46w")},m(o,d){t.insert(o,e,d),t.append(e,a),t.append(e,n),t.append(n,r)},d(o){o&&t.detach(e)}}}function q(i){let e,a,n=i[24].Code+"",r,o,d,f=i[24].Date+"",m,_,T,h=i[5](`transactionType.${i[24].Type}`)+"",k,z,C,v,b,y,H,S=i[5](`transactionStatus.${i[24].Status}`)+"",I,F,j,R;function A(s,l){if(s[24].Status===s[4].Authorized)return et;if(s[24].Status===s[4].Failed)return tt;if(s[24].Status===s[4].Pending)return $;if(s[24].Status===s[4].Rejected)return Z;if(s[24].Status===s[4].Success)return Q}let x=A(i),w=x&&x(i);return{c(){e=t.element("tr"),a=t.element("td"),r=t.text(n),o=t.space(),d=t.element("td"),m=t.text(f),_=t.space(),T=t.element("td"),k=t.text(h),z=t.space(),C=t.element("td"),v=t.element("div"),b=t.element("span"),w&&w.c(),y=t.space(),H=t.element("span"),I=t.text(S),F=t.space(),t.attr(a,"class","CashierTransactionId svelte-40f46w"),t.toggle_class(a,"copied",i[3]),t.attr(d,"class","svelte-40f46w"),t.attr(T,"class","svelte-40f46w"),t.attr(b,"class","CashierTransactionHistoryIcon svelte-40f46w"),t.attr(H,"class","CashierTransactionHistoryStatusText svelte-40f46w"),t.attr(v,"class","CashierTransactionHistoryStatus svelte-40f46w"),t.attr(C,"class","svelte-40f46w"),t.attr(e,"class","svelte-40f46w")},m(s,l){t.insert(s,e,l),t.append(e,a),t.append(a,r),t.append(e,o),t.append(e,d),t.append(d,m),t.append(e,_),t.append(e,T),t.append(T,k),t.append(e,z),t.append(e,C),t.append(C,v),t.append(v,b),w&&w.m(b,null),t.append(v,y),t.append(v,H),t.append(H,I),t.append(e,F),j||(R=t.listen(a,"mousedown",i[15]),j=!0)},p(s,l){l&4&&n!==(n=s[24].Code+"")&&t.set_data(r,n),l&8&&t.toggle_class(a,"copied",s[3]),l&4&&f!==(f=s[24].Date+"")&&t.set_data(m,f),l&36&&h!==(h=s[5](`transactionType.${s[24].Type}`)+"")&&t.set_data(k,h),x!==(x=A(s))&&(w&&w.d(1),w=x&&x(s),w&&(w.c(),w.m(b,null))),l&36&&S!==(S=s[5](`transactionStatus.${s[24].Status}`)+"")&&t.set_data(I,S)},d(s){s&&t.detach(e),w&&w.d(),j=!1,R()}}}function at(i){let e,a=i[2].length&&W(i);return{c(){a&&a.c(),e=t.empty()},m(n,r){a&&a.m(n,r),t.insert(n,e,r)},p(n,[r]){n[2].length?a?a.p(n,r):(a=W(n),a.c(),a.m(e.parentNode,e)):a&&(a.d(1),a=null)},i:t.noop,o:t.noop,d(n){n&&t.detach(e),a&&a.d(n)}}}const nt="DD.MM.YYYY";function st(i,e,a){let n;t.component_subscribe(i,L.$format,s=>a(5,n=s));let{endpoint:r}=e,{session:o}=e,{lang:d="en"}=e,{customerid:f}=e,{clientstyling:m=""}=e,{clientstylingurl:_=""}=e,{translationurl:T}=e,{tooltipduration:h=1e3}=e,{txncount:k=3}=e,z=[],C=!1,v,b;var y;(function(s){s.Deposit="deposit",s.Withdraw="withdraw",s.Refund="refund",s.Unknown="unknown",s.TaxDeduction="taxDeduction"})(y||(y={}));const H=["Authorized","Success","Failed","Rejected","PendingApprovalStage1","PendingApprovalStage2","PendingApprovalStage3","PendingNotification","PendingOfflineNotification","PendingConfirmation"];var S;(function(s){s.Authorized="Authorized",s.Success="Success",s.Failed="Failed",s.Rejected="Rejected",s.Pending="Pending"})(S||(S={}));const I=()=>{let s=T;if(s)return fetch(s).then(l=>l.json()).then(l=>{Object.keys(l).forEach(c=>{U(c,l[c])})}).catch(l=>{console.log(l)})};Object.keys(B).forEach(s=>{U(s,B[s])});const F=()=>{J(d)},j=()=>{const s=new URL(`${r}/api/v1/mm/payment/gettransactionshistory`),l=new Headers;l.append("accept","application/json"),l.append("Content-Type","application/json"),l.append("X-SessionId",`${o}`);const c=new Date(new Date().setMonth(new Date().getMonth()-3)).toISOString(),P={method:"POST",mode:"cors",headers:l,body:JSON.stringify({language:d,customerId:f,count:k,page:0,fromDate:c,toDate:null,statuses:{[y.Deposit]:H,[y.Withdraw]:H,[y.Refund]:["Unknown"],[y.TaxDeduction]:["Unknown"],[y.Unknown]:["Unknown"]},calculateProfit:!1})};fetch(s,P).then(u=>u.json()).then(u=>{a(2,z=R((u==null?void 0:u.items)||[]))}).catch(u=>console.log(u))},R=s=>s.map(l=>{let c=l.generalFields.status;return l.generalFields.status.toLowerCase().includes("pending")&&(c=S.Pending),{Code:l.generalFields.code,Date:X.dayjs(l.generalFields.created).format(nt),Status:c,Type:l.generalFields.type}})||[],A=s=>{const l=s.currentTarget;s.target===l&&navigator.clipboard.writeText(l.innerText).then(()=>{a(3,C=!0),clearTimeout(b),b=setTimeout(()=>{a(3,C=!1)},2e3)}).catch(c=>{console.error("Could not copy text: ",c)})},x=s=>A(s);function w(s){t.binding_callbacks[s?"unshift":"push"](()=>{v=s,a(1,v)})}return i.$$set=s=>{"endpoint"in s&&a(7,r=s.endpoint),"session"in s&&a(8,o=s.session),"lang"in s&&a(9,d=s.lang),"customerid"in s&&a(10,f=s.customerid),"clientstyling"in s&&a(11,m=s.clientstyling),"clientstylingurl"in s&&a(12,_=s.clientstylingurl),"translationurl"in s&&a(13,T=s.translationurl),"tooltipduration"in s&&a(0,h=s.tooltipduration),"txncount"in s&&a(14,k=s.txncount)},i.$$.update=()=>{i.$$.dirty&512&&d&&F(),i.$$.dirty&2050&&m&&v&&V(v,m),i.$$.dirty&4098&&_&&v&&G(v,_),i.$$.dirty&1920&&r&&o&&f&&d&&j(),i.$$.dirty&8192&&T&&I()},[h,v,z,C,S,n,A,r,o,d,f,m,_,T,k,x,w]}class Y extends t.SvelteComponent{constructor(e){super(),t.init(this,e,st,at,t.safe_not_equal,{endpoint:7,session:8,lang:9,customerid:10,clientstyling:11,clientstylingurl:12,translationurl:13,tooltipduration:0,txncount:14},K)}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(Y,{endpoint:{},session:{},lang:{},customerid:{},clientstyling:{},clientstylingurl:{},translationurl:{},tooltipduration:{},txncount:{}},[],[],!0);exports.default=Y;