@everymatrix/cashier-page 1.56.2 → 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.
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CashierConfirmModal-BVT51ZOp.cjs"),P=require("./CashierModal-BhCdxWcE.cjs"),L=require("./CashierError-YmV_PQP8.cjs"),q=require("./CashierMethodDetails-Ba0LNaer.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,572 +0,0 @@
1
- import { S as ie, b as se, f as G, c as ne, a as ae, d as re, x as oe, k as E, n as N, v as U, w as de, K as Y, g as m, h as j, y as I, j as t, l as s, t as q, B as ce, p as ue, q as he, z as M, M as fe, F as ge, W as pe, X as ve, I as X, A as me, C as be, O as f } from "./CashierConfirmModal-B0WZGuf5.js";
2
- import { f as J } from "./CashierModal-DB1wg0l3.js";
3
- import { i as ke, a as we, $ as ye, b as Te } from "./CashierError-Dyf5BWS1.js";
4
- import { d as Ce } from "./CashierMethodDetails-C6upoqd2.js";
5
- ke({
6
- fallbackLocale: "en"
7
- });
8
- function K(a, e) {
9
- we(a, e);
10
- }
11
- function _e(a) {
12
- ye.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
- re(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, _, A, y = (
84
- /*$_*/
85
- a[5]("transactionDateTitle") + ""
86
- ), R, D, P, L = (
87
- /*$_*/
88
- a[5]("transactionTypeTitle") + ""
89
- ), O, Z, S, b = (
90
- /*$_*/
91
- a[5]("transactionStatusTitle") + ""
92
- ), u, n, p, v = (
93
- /*copied*/
94
- a[3] && te(a)
95
- ), W = Y(
96
- /*txnHistory*/
97
- a[2]
98
- ), T = [];
99
- for (let h = 0; h < W.length; h += 1)
100
- T[h] = le($(a, W, 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(), A = m("td"), R = I(y), D = j(), P = m("td"), O = I(L), Z = 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(A, "class", "svelte-1klbu7d"), t(P, "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
- E(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, A), s(A, R), s(w, D), s(w, P), s(P, O), s(w, Z), 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") + "") && M(d, r), V & /*$_*/
122
- 32 && F !== (F = /*$_*/
123
- h[5]("transactionIdTitle") + "") && M(H, F), V & /*$_*/
124
- 32 && y !== (y = /*$_*/
125
- h[5]("transactionDateTitle") + "") && M(R, y), V & /*$_*/
126
- 32 && L !== (L = /*$_*/
127
- h[5]("transactionTypeTitle") + "") && M(O, L), V & /*$_*/
128
- 32 && b !== (b = /*$_*/
129
- h[5]("transactionStatusTitle") + "") && M(u, b), V & /*$_, txnHistory, TransactionMainStatus, copied, copyToClipboard*/
130
- 124) {
131
- W = Y(
132
- /*txnHistory*/
133
- h[2]
134
- );
135
- let C;
136
- for (C = 0; C < W.length; C += 1) {
137
- const B = $(h, W, C);
138
- T[C] ? T[C].p(B, V) : (T[C] = le(B), T[C].c(), T[C].m(p, null));
139
- }
140
- for (; C < T.length; C += 1)
141
- T[C].d(1);
142
- T.length = W.length;
143
- }
144
- },
145
- d(h) {
146
- h && U(e), v && v.d(), fe(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
- E(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") + "") && M(i, l);
166
- },
167
- i(c) {
168
- o || (c && ge(() => {
169
- o && (d && d.end(1), r = pe(e, J, { duration: (
170
- /*tooltipduration*/
171
- a[0]
172
- ) }), r.start());
173
- }), o = !0);
174
- },
175
- o(c) {
176
- r && r.invalidate(), c && (d = ve(e, J, { duration: (
177
- /*tooltipduration*/
178
- a[0]
179
- ) })), o = !1;
180
- },
181
- d(c) {
182
- c && U(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
- E(o, e, c), s(e, l), s(e, i), s(e, r), s(r, d);
194
- },
195
- d(o) {
196
- o && U(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
- E(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 && U(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
- E(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 && U(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
- E(o, e, c), s(e, l), s(e, i), s(e, r), s(r, d);
236
- },
237
- d(o) {
238
- o && U(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
- E(c, e, g), s(e, l), s(e, i), s(e, r), s(r, d), s(r, o);
250
- },
251
- d(c) {
252
- c && U(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, _, A, y, R = (
268
- /*$_*/
269
- a[5](`transactionStatus.${/*transaction*/
270
- a[24].Status}`) + ""
271
- ), D, P, L, O;
272
- function Z(u, n) {
273
- if (
274
- /*transaction*/
275
- u[24].Status === /*TransactionMainStatus*/
276
- u[4].Authorized
277
- )
278
- return je;
279
- if (
280
- /*transaction*/
281
- u[24].Status === /*TransactionMainStatus*/
282
- u[4].Failed
283
- )
284
- return Ve;
285
- if (
286
- /*transaction*/
287
- u[24].Status === /*TransactionMainStatus*/
288
- u[4].Pending
289
- )
290
- return De;
291
- if (
292
- /*transaction*/
293
- u[24].Status === /*TransactionMainStatus*/
294
- u[4].Rejected
295
- )
296
- return Re;
297
- if (
298
- /*transaction*/
299
- u[24].Status === /*TransactionMainStatus*/
300
- u[4].Success
301
- )
302
- return ze;
303
- }
304
- let S = Z(a), b = S && S(a);
305
- return {
306
- c() {
307
- 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(), A = j(), y = m("span"), D = I(R), P = j(), t(l, "class", "CashierTransactionId svelte-1klbu7d"), X(
308
- l,
309
- "copied",
310
- /*copied*/
311
- a[3]
312
- ), 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");
313
- },
314
- m(u, n) {
315
- E(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, A), s(H, y), s(y, D), s(e, P), L || (O = me(
316
- l,
317
- "mousedown",
318
- /*mousedown_handler*/
319
- a[15]
320
- ), L = !0);
321
- },
322
- p(u, n) {
323
- n & /*txnHistory*/
324
- 4 && i !== (i = /*transaction*/
325
- u[24].Code + "") && M(r, i), n & /*copied*/
326
- 8 && X(
327
- l,
328
- "copied",
329
- /*copied*/
330
- u[3]
331
- ), n & /*txnHistory*/
332
- 4 && c !== (c = /*transaction*/
333
- u[24].Date + "") && M(g, c), n & /*$_, txnHistory*/
334
- 36 && w !== (w = /*$_*/
335
- u[5](`transactionType.${/*transaction*/
336
- u[24].Type}`) + "") && M(z, w), S !== (S = Z(u)) && (b && b.d(1), b = S && S(u), b && (b.c(), b.m(_, null))), n & /*$_, txnHistory*/
337
- 36 && R !== (R = /*$_*/
338
- u[5](`transactionStatus.${/*transaction*/
339
- u[24].Status}`) + "") && M(D, R);
340
- },
341
- d(u) {
342
- u && U(e), b && b.d(), L = !1, O();
343
- }
344
- };
345
- }
346
- function Ie(a) {
347
- let e, l = (
348
- /*txnHistory*/
349
- a[2].length && ee(a)
350
- );
351
- return {
352
- c() {
353
- l && l.c(), e = oe();
354
- },
355
- m(i, r) {
356
- l && l.m(i, r), E(i, e, r);
357
- },
358
- p(i, [r]) {
359
- /*txnHistory*/
360
- i[2].length ? l ? l.p(i, r) : (l = ee(i), l.c(), l.m(e.parentNode, e)) : l && (l.d(1), l = null);
361
- },
362
- i: N,
363
- o: N,
364
- d(i) {
365
- i && U(e), l && l.d(i);
366
- }
367
- };
368
- }
369
- const Fe = "DD.MM.YYYY";
370
- function Ae(a, e, l) {
371
- let i;
372
- de(a, Te, (n) => l(5, i = n));
373
- 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, _, A;
374
- var y;
375
- (function(n) {
376
- n.Deposit = "deposit", n.Withdraw = "withdraw", n.Refund = "refund", n.Unknown = "unknown", n.TaxDeduction = "taxDeduction";
377
- })(y || (y = {}));
378
- const R = [
379
- "Authorized",
380
- "Success",
381
- "Failed",
382
- "Rejected",
383
- "PendingApprovalStage1",
384
- "PendingApprovalStage2",
385
- "PendingApprovalStage3",
386
- "PendingNotification",
387
- "PendingOfflineNotification",
388
- "PendingConfirmation"
389
- ];
390
- var D;
391
- (function(n) {
392
- n.Authorized = "Authorized", n.Success = "Success", n.Failed = "Failed", n.Rejected = "Rejected", n.Pending = "Pending";
393
- })(D || (D = {}));
394
- const P = () => {
395
- let n = x;
396
- if (n)
397
- return fetch(n).then((p) => p.json()).then((p) => {
398
- Object.keys(p).forEach((v) => {
399
- K(v, p[v]);
400
- });
401
- }).catch((p) => {
402
- console.log(p);
403
- });
404
- };
405
- Object.keys(Q).forEach((n) => {
406
- K(n, Q[n]);
407
- });
408
- const L = () => {
409
- _e(o);
410
- }, O = () => {
411
- const n = new URL(`${r}/api/v1/mm/payment/gettransactionshistory`), p = new Headers();
412
- p.append("accept", "application/json"), p.append("Content-Type", "application/json"), p.append("X-SessionId", `${d}`);
413
- const v = new Date((/* @__PURE__ */ new Date()).setMonth((/* @__PURE__ */ new Date()).getMonth() - 3)).toISOString(), W = new Date((/* @__PURE__ */ new Date()).setHours((/* @__PURE__ */ new Date()).getHours() + 24)).toISOString(), T = {
414
- method: "POST",
415
- mode: "cors",
416
- headers: p,
417
- body: JSON.stringify({
418
- language: o,
419
- customerId: c,
420
- count: z,
421
- page: 0,
422
- fromDate: v,
423
- toDate: W,
424
- statuses: {
425
- [y.Deposit]: R,
426
- [y.Withdraw]: R,
427
- [y.Refund]: ["Unknown"],
428
- [y.TaxDeduction]: ["Unknown"],
429
- [y.Unknown]: ["Unknown"]
430
- },
431
- calculateProfit: !1
432
- })
433
- };
434
- fetch(n, T).then((h) => h.json()).then((h) => {
435
- l(2, F = Z(h?.items || []));
436
- }).catch((h) => console.log(h));
437
- }, Z = (n) => n.map((p) => {
438
- let v = p.generalFields.status;
439
- return p.generalFields.status.toLowerCase().includes("pending") && (v = D.Pending), {
440
- Code: p.generalFields.code,
441
- Date: Ce(p.generalFields.created).format(Fe),
442
- Status: v,
443
- Type: p.generalFields.type
444
- };
445
- }) || [], S = (n) => {
446
- const p = n.currentTarget;
447
- n.target === p && navigator.clipboard.writeText(p.innerText).then(() => {
448
- l(3, H = !0), clearTimeout(A), A = setTimeout(
449
- () => {
450
- l(3, H = !1);
451
- },
452
- 2e3
453
- );
454
- }).catch((v) => {
455
- console.error("Could not copy text: ", v);
456
- });
457
- }, b = (n) => S(n);
458
- function u(n) {
459
- be[n ? "unshift" : "push"](() => {
460
- _ = n, l(1, _);
461
- });
462
- }
463
- return a.$$set = (n) => {
464
- "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);
465
- }, a.$$.update = () => {
466
- a.$$.dirty & /*lang*/
467
- 512 && o && L(), a.$$.dirty & /*clientstyling, customStylingContainer*/
468
- 2050 && g && _ && xe(_, g), a.$$.dirty & /*clientstylingurl, customStylingContainer*/
469
- 4098 && k && _ && He(_, k), a.$$.dirty & /*endpoint, session, customerid, lang*/
470
- 1920 && r && d && c && o && O(), a.$$.dirty & /*translationurl*/
471
- 8192 && x && P();
472
- }, [
473
- w,
474
- _,
475
- F,
476
- H,
477
- D,
478
- i,
479
- S,
480
- r,
481
- d,
482
- o,
483
- c,
484
- g,
485
- k,
486
- x,
487
- z,
488
- b,
489
- u
490
- ];
491
- }
492
- class Le extends ie {
493
- constructor(e) {
494
- super(), se(
495
- this,
496
- e,
497
- Ae,
498
- Ie,
499
- ae,
500
- {
501
- endpoint: 7,
502
- session: 8,
503
- lang: 9,
504
- customerid: 10,
505
- clientstyling: 11,
506
- clientstylingurl: 12,
507
- translationurl: 13,
508
- tooltipduration: 0,
509
- txncount: 14
510
- },
511
- Se
512
- );
513
- }
514
- get endpoint() {
515
- return this.$$.ctx[7];
516
- }
517
- set endpoint(e) {
518
- this.$$set({ endpoint: e }), G();
519
- }
520
- get session() {
521
- return this.$$.ctx[8];
522
- }
523
- set session(e) {
524
- this.$$set({ session: e }), G();
525
- }
526
- get lang() {
527
- return this.$$.ctx[9];
528
- }
529
- set lang(e) {
530
- this.$$set({ lang: e }), G();
531
- }
532
- get customerid() {
533
- return this.$$.ctx[10];
534
- }
535
- set customerid(e) {
536
- this.$$set({ customerid: e }), G();
537
- }
538
- get clientstyling() {
539
- return this.$$.ctx[11];
540
- }
541
- set clientstyling(e) {
542
- this.$$set({ clientstyling: e }), G();
543
- }
544
- get clientstylingurl() {
545
- return this.$$.ctx[12];
546
- }
547
- set clientstylingurl(e) {
548
- this.$$set({ clientstylingurl: e }), G();
549
- }
550
- get translationurl() {
551
- return this.$$.ctx[13];
552
- }
553
- set translationurl(e) {
554
- this.$$set({ translationurl: e }), G();
555
- }
556
- get tooltipduration() {
557
- return this.$$.ctx[0];
558
- }
559
- set tooltipduration(e) {
560
- this.$$set({ tooltipduration: e }), G();
561
- }
562
- get txncount() {
563
- return this.$$.ctx[14];
564
- }
565
- set txncount(e) {
566
- this.$$set({ txncount: e }), G();
567
- }
568
- }
569
- ne(Le, { endpoint: {}, session: {}, lang: {}, customerid: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, tooltipduration: {}, txncount: {} }, [], [], !0);
570
- export {
571
- Le as default
572
- };