@everymatrix/cashier-page 1.60.0 → 1.60.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{CashierConfirmModal-BErwh2fQ.js → CashierConfirmModal-B5fOc6GC.js} +34 -34
- package/components/{CashierConfirmModal-B0WZGuf5.js → CashierConfirmModal-CtWSrqbM.js} +34 -34
- package/components/{CashierError-Dyf5BWS1.js → CashierError-B_WDWdBy.js} +346 -344
- package/components/{CashierError-DoHJAf67.js → CashierError-DKmRdzzP.js} +346 -344
- package/components/CashierError-DyS_YiEl.cjs +18 -0
- package/components/{CashierHeader-C8XVzyv9.js → CashierHeader-Asx7Z6Sd.js} +42 -42
- package/components/{CashierHeader-Dm79zFE4.js → CashierHeader-BYhu34lk.js} +44 -44
- package/components/{CashierHeader-B-wIMGOV.cjs → CashierHeader-DNfsbUrX.cjs} +1 -1
- package/components/{CashierIframeRedirect-B_5Lg8hb.js → CashierIframeRedirect-CJ3bOCam.js} +33 -33
- package/components/{CashierIframeRedirect-D7qTJ1C9.js → CashierIframeRedirect-DQnQKdQZ.js} +32 -32
- package/components/{CashierIframeRedirect-CXErmVjw.cjs → CashierIframeRedirect-Dws6z7yl.cjs} +1 -1
- package/components/{CashierMethodDetails-Ba0LNaer.cjs → CashierMethodDetails-B_yG_3OU.cjs} +1 -1
- package/components/{CashierMethodDetails-C6upoqd2.js → CashierMethodDetails-BeElaO--.js} +63 -63
- package/components/{CashierMethodDetails-T4mbzimW.js → CashierMethodDetails-C4KZnq7Z.js} +63 -63
- package/components/{CashierMethodsList-BrVrodk4.js → CashierMethodsList-CNLfoP4Y.js} +69 -69
- package/components/{CashierMethodsList-CumBXWty.cjs → CashierMethodsList-DpPzmg4x.cjs} +1 -1
- package/components/{CashierMethodsList-DIrmr3Ce.js → CashierMethodsList-zLr6fCmJ.js} +69 -69
- package/components/{CashierModal-DB1wg0l3.js → CashierModal-DV8aj-PX.js} +31 -31
- package/components/{CashierModal-CpN2LT2L.js → CashierModal-hk6t9ci2.js} +37 -37
- package/components/{CashierNotifications-B5qfr68o.js → CashierNotifications-B8jOQSBr.js} +18 -18
- package/components/{CashierNotifications-BmAkkuzD.js → CashierNotifications-CTdH4xzH.js} +19 -19
- package/components/{CashierPage-DBt7A-ce.js → CashierPage-B06x-lb9.js} +90 -86
- package/components/{CashierPage-RAOHqYUI.js → CashierPage-D4G3vkt8.js} +88 -84
- package/components/{CashierPage-CzAwa_Je.cjs → CashierPage-KycEkiPC.cjs} +1 -1
- package/components/{CashierReceiptPage-BOTRblW6.js → CashierReceiptPage-D2GV36R9.js} +28 -28
- package/components/{CashierReceiptPage-BH5T05dg.cjs → CashierReceiptPage-Dqv_zMz0.cjs} +1 -1
- package/components/{CashierReceiptPage-BsbiLGZK.js → CashierReceiptPage-KY86XyHm.js} +28 -28
- package/components/{CashierSessionExpirationModal-V8MYd-oY.js → CashierSessionExpirationModal-CKLp-VvL.js} +47 -56
- package/components/{CashierSessionExpirationModal-CxpesQtf.cjs → CashierSessionExpirationModal-CPEtCCpq.cjs} +2 -2
- package/components/{CashierSessionExpirationModal-DZgsGvVp.js → CashierSessionExpirationModal-Dl5Uy319.js} +47 -56
- package/components/{CashierSpinner-BI29nSq_.js → CashierSpinner-CKc6p313.js} +25 -25
- package/components/{CashierSpinner-FzCMnj7X.js → CashierSpinner-Du921ZKt.js} +26 -26
- package/components/{CashierTransactionHistory-D_tggKNB.cjs → CashierTransactionHistory--aDULmWa.cjs} +1 -1
- package/components/{CashierTransactionHistory-CyxhjzqM.js → CashierTransactionHistory-CelbYShe.js} +84 -84
- package/components/{CashierTransactionHistory-5jT7HEE-.js → CashierTransactionHistory-D62Jgr0H.js} +97 -97
- package/components/{CashierVerifications-BOYrzIos.js → CashierVerifications-BM7HesGT.js} +72 -72
- package/components/{CashierVerifications-BXTVbpjh.cjs → CashierVerifications-Ba9QYZN-.cjs} +1 -1
- package/components/{CashierVerifications-qhXfC9Fa.js → CashierVerifications-DFZdvHv6.js} +26 -26
- package/components/{CashierVideoModal-DGBQZz-C.js → CashierVideoModal-BqP3xvYv.js} +33 -33
- package/components/{CashierVideoModal-DPG12DK0.js → CashierVideoModal-L_vWBGkF.js} +37 -37
- package/es2015/cashier-page.cjs +1 -1
- package/es2015/cashier-page.js +1 -1
- package/esnext/cashier-page.js +1 -1
- package/package.json +1 -1
- package/components/CashierError-YmV_PQP8.cjs +0 -18
package/components/{CashierTransactionHistory-D_tggKNB.cjs → CashierTransactionHistory--aDULmWa.cjs}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CashierConfirmModal-BVT51ZOp.cjs"),E=require("./CashierModal-BhCdxWcE.cjs"),L=require("./CashierError-YmV_PQP8.cjs"),X=require("./CashierMethodDetails-Ba0LNaer.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;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CashierConfirmModal-BVT51ZOp.cjs"),E=require("./CashierModal-BhCdxWcE.cjs"),L=require("./CashierError-DyS_YiEl.cjs"),X=require("./CashierMethodDetails-B_yG_3OU.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;
|
package/components/{CashierTransactionHistory-CyxhjzqM.js → CashierTransactionHistory-CelbYShe.js}
RENAMED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { S as it, b as nt,
|
|
2
|
-
import { f as G } from "./CashierModal-
|
|
3
|
-
import {
|
|
4
|
-
import { d as xt } from "./CashierMethodDetails-
|
|
5
|
-
|
|
1
|
+
import { S as it, b as nt, s as at, f as E, c as lt, n as X, e as W, m as N, x as ot, w as rt, K as J, L as ct, g as K, k as dt, t as ft, l as ut, y as M, o as l, p as v, q as j, z as A, v as e, A as wt, W as ht, F as vt, X as mt, J as V, B as pt, N as _, D as gt } from "./CashierConfirmModal-B5fOc6GC.js";
|
|
2
|
+
import { f as G } from "./CashierModal-hk6t9ci2.js";
|
|
3
|
+
import { a as yt, $ as Tt, i as bt, b as _t } from "./CashierError-DKmRdzzP.js";
|
|
4
|
+
import { d as xt } from "./CashierMethodDetails-C4KZnq7Z.js";
|
|
5
|
+
bt({
|
|
6
6
|
fallbackLocale: "en"
|
|
7
7
|
});
|
|
8
8
|
function Q(a, t) {
|
|
9
|
-
|
|
9
|
+
yt(a, t);
|
|
10
10
|
}
|
|
11
11
|
function kt(a) {
|
|
12
|
-
|
|
12
|
+
Tt.set(a);
|
|
13
13
|
}
|
|
14
14
|
const Z = {
|
|
15
15
|
en: {
|
|
@@ -67,7 +67,7 @@ function St(a, t) {
|
|
|
67
67
|
});
|
|
68
68
|
}
|
|
69
69
|
function Ht(a) {
|
|
70
|
-
|
|
70
|
+
lt(a, "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)}");
|
|
71
71
|
}
|
|
72
72
|
function $(a, t, s) {
|
|
73
73
|
const i = a.slice();
|
|
@@ -77,13 +77,13 @@ function tt(a) {
|
|
|
77
77
|
let t, s, i, o = (
|
|
78
78
|
/*$_*/
|
|
79
79
|
a[5]("transactionHistoryTitle") + ""
|
|
80
|
-
), c, f, u, g, x, k, m, H,
|
|
80
|
+
), c, f, u, g, x, k, m, H, L = (
|
|
81
81
|
/*$_*/
|
|
82
82
|
a[5]("transactionIdTitle") + ""
|
|
83
83
|
), z, y, C, b = (
|
|
84
84
|
/*$_*/
|
|
85
85
|
a[5]("transactionDateTitle") + ""
|
|
86
|
-
),
|
|
86
|
+
), F, D, R, U = (
|
|
87
87
|
/*$_*/
|
|
88
88
|
a[5]("transactionTypeTitle") + ""
|
|
89
89
|
), B, Y, P, S = (
|
|
@@ -92,58 +92,58 @@ function tt(a) {
|
|
|
92
92
|
), p, n, r, d = (
|
|
93
93
|
/*copied*/
|
|
94
94
|
a[3] && et(a)
|
|
95
|
-
),
|
|
95
|
+
), O = J(
|
|
96
96
|
/*txnHistory*/
|
|
97
97
|
a[2]
|
|
98
98
|
), h = [];
|
|
99
|
-
for (let w = 0; w <
|
|
100
|
-
h[w] = st($(a,
|
|
99
|
+
for (let w = 0; w < O.length; w += 1)
|
|
100
|
+
h[w] = st($(a, O, w));
|
|
101
101
|
return {
|
|
102
102
|
c() {
|
|
103
|
-
t = v("div"), d && d.c(), s = j(), i = v("h3"), c =
|
|
103
|
+
t = v("div"), d && d.c(), s = j(), i = v("h3"), c = A(o), f = j(), u = v("div"), g = v("div"), x = v("table"), k = v("thead"), m = v("tr"), H = v("td"), z = A(L), y = j(), C = v("td"), F = A(b), D = j(), R = v("td"), B = A(U), Y = j(), P = v("td"), p = A(S), n = j(), r = v("tbody");
|
|
104
104
|
for (let w = 0; w < h.length; w += 1)
|
|
105
105
|
h[w].c();
|
|
106
|
-
e(i, "class", "CashierTransactionHistoryTitle svelte-40f46w"), e(H, "class", "svelte-40f46w"), e(C, "class", "svelte-40f46w"), e(
|
|
106
|
+
e(i, "class", "CashierTransactionHistoryTitle svelte-40f46w"), e(H, "class", "svelte-40f46w"), e(C, "class", "svelte-40f46w"), e(R, "class", "svelte-40f46w"), e(P, "class", "svelte-40f46w"), e(m, "class", "svelte-40f46w"), e(k, "class", "svelte-40f46w"), e(r, "class", "svelte-40f46w"), e(x, "class", "svelte-40f46w"), e(g, "class", "CashierTransactionHistoryContent svelte-40f46w"), e(u, "class", "CashierTransactionHistoryWrapper svelte-40f46w"), e(t, "class", "CashierTransactionHistory svelte-40f46w");
|
|
107
107
|
},
|
|
108
|
-
m(w,
|
|
109
|
-
|
|
108
|
+
m(w, I) {
|
|
109
|
+
N(w, t, I), d && d.m(t, null), l(t, s), l(t, i), l(i, c), l(t, f), l(t, u), l(u, g), l(g, x), l(x, k), l(k, m), l(m, H), l(H, z), l(m, y), l(m, C), l(C, F), l(m, D), l(m, R), l(R, B), l(m, Y), l(m, P), l(P, p), l(x, n), l(x, r);
|
|
110
110
|
for (let T = 0; T < h.length; T += 1)
|
|
111
111
|
h[T] && h[T].m(r, null);
|
|
112
112
|
a[16](t);
|
|
113
113
|
},
|
|
114
|
-
p(w,
|
|
114
|
+
p(w, I) {
|
|
115
115
|
if (/*copied*/
|
|
116
|
-
w[3] ? d ? (d.p(w,
|
|
116
|
+
w[3] ? d ? (d.p(w, I), I & /*copied*/
|
|
117
117
|
8 && K(d, 1)) : (d = et(w), d.c(), K(d, 1), d.m(t, s)) : d && (dt(), ft(d, 1, 1, () => {
|
|
118
118
|
d = null;
|
|
119
|
-
}), ut()),
|
|
119
|
+
}), ut()), I & /*$_*/
|
|
120
120
|
32 && o !== (o = /*$_*/
|
|
121
|
-
w[5]("transactionHistoryTitle") + "") && M(c, o),
|
|
122
|
-
32 &&
|
|
123
|
-
w[5]("transactionIdTitle") + "") && M(z,
|
|
121
|
+
w[5]("transactionHistoryTitle") + "") && M(c, o), I & /*$_*/
|
|
122
|
+
32 && L !== (L = /*$_*/
|
|
123
|
+
w[5]("transactionIdTitle") + "") && M(z, L), I & /*$_*/
|
|
124
124
|
32 && b !== (b = /*$_*/
|
|
125
|
-
w[5]("transactionDateTitle") + "") && M(
|
|
125
|
+
w[5]("transactionDateTitle") + "") && M(F, b), I & /*$_*/
|
|
126
126
|
32 && U !== (U = /*$_*/
|
|
127
|
-
w[5]("transactionTypeTitle") + "") && M(B, U),
|
|
127
|
+
w[5]("transactionTypeTitle") + "") && M(B, U), I & /*$_*/
|
|
128
128
|
32 && S !== (S = /*$_*/
|
|
129
|
-
w[5]("transactionStatusTitle") + "") && M(p, S),
|
|
129
|
+
w[5]("transactionStatusTitle") + "") && M(p, S), I & /*$_, txnHistory, TransactionMainStatus, copied, copyToClipboard*/
|
|
130
130
|
124) {
|
|
131
|
-
|
|
131
|
+
O = J(
|
|
132
132
|
/*txnHistory*/
|
|
133
133
|
w[2]
|
|
134
134
|
);
|
|
135
135
|
let T;
|
|
136
|
-
for (T = 0; T <
|
|
137
|
-
const q = $(w,
|
|
138
|
-
h[T] ? h[T].p(q,
|
|
136
|
+
for (T = 0; T < O.length; T += 1) {
|
|
137
|
+
const q = $(w, O, T);
|
|
138
|
+
h[T] ? h[T].p(q, I) : (h[T] = st(q), h[T].c(), h[T].m(r, null));
|
|
139
139
|
}
|
|
140
140
|
for (; T < h.length; T += 1)
|
|
141
141
|
h[T].d(1);
|
|
142
|
-
h.length =
|
|
142
|
+
h.length = O.length;
|
|
143
143
|
}
|
|
144
144
|
},
|
|
145
145
|
d(w) {
|
|
146
|
-
w &&
|
|
146
|
+
w && W(t), d && d.d(), ct(h, w), a[16](null);
|
|
147
147
|
}
|
|
148
148
|
};
|
|
149
149
|
}
|
|
@@ -154,10 +154,10 @@ function et(a) {
|
|
|
154
154
|
), i, o, c, f;
|
|
155
155
|
return {
|
|
156
156
|
c() {
|
|
157
|
-
t = v("div"), i =
|
|
157
|
+
t = v("div"), i = A(s), e(t, "class", "CopyTooltip svelte-40f46w");
|
|
158
158
|
},
|
|
159
159
|
m(u, g) {
|
|
160
|
-
|
|
160
|
+
N(u, t, g), l(t, i), f = !0;
|
|
161
161
|
},
|
|
162
162
|
p(u, g) {
|
|
163
163
|
a = u, (!f || g & /*$_*/
|
|
@@ -165,18 +165,18 @@ function et(a) {
|
|
|
165
165
|
a[5]("copyTransactionId") + "") && M(i, s);
|
|
166
166
|
},
|
|
167
167
|
i(u) {
|
|
168
|
-
f || (u &&
|
|
169
|
-
f && (c && c.end(1), o =
|
|
168
|
+
f || (u && vt(() => {
|
|
169
|
+
f && (c && c.end(1), o = mt(t, G, { duration: 100 }), o.start());
|
|
170
170
|
}), f = !0);
|
|
171
171
|
},
|
|
172
172
|
o(u) {
|
|
173
|
-
o && o.invalidate(), u && (c =
|
|
173
|
+
o && o.invalidate(), u && (c = ht(t, G, { duration: (
|
|
174
174
|
/*tooltipduration*/
|
|
175
175
|
a[0]
|
|
176
176
|
) })), f = !1;
|
|
177
177
|
},
|
|
178
178
|
d(u) {
|
|
179
|
-
u &&
|
|
179
|
+
u && W(t), u && c && c.end();
|
|
180
180
|
}
|
|
181
181
|
};
|
|
182
182
|
}
|
|
@@ -187,10 +187,10 @@ function zt(a) {
|
|
|
187
187
|
t = _("svg"), s = _("circle"), i = _("path"), e(s, "cx", "12"), e(s, "cy", "12"), e(s, "r", "10"), e(s, "stroke", "#25bf00"), e(s, "stroke-width", "2"), e(s, "class", "svelte-40f46w"), e(i, "d", "M8 12L11 15L16 9"), e(i, "stroke", "#25bf00"), e(i, "stroke-width", "2"), e(i, "stroke-linecap", "round"), e(i, "stroke-linejoin", "round"), e(i, "class", "svelte-40f46w"), e(t, "width", "18"), e(t, "height", "18"), e(t, "viewBox", "0 0 24 24"), e(t, "fill", "none"), e(t, "xmlns", "http://www.w3.org/2000/svg"), e(t, "class", "svelte-40f46w");
|
|
188
188
|
},
|
|
189
189
|
m(o, c) {
|
|
190
|
-
|
|
190
|
+
N(o, t, c), l(t, s), l(t, i);
|
|
191
191
|
},
|
|
192
192
|
d(o) {
|
|
193
|
-
o &&
|
|
193
|
+
o && W(t);
|
|
194
194
|
}
|
|
195
195
|
};
|
|
196
196
|
}
|
|
@@ -198,55 +198,55 @@ function Dt(a) {
|
|
|
198
198
|
let t, s, i, o;
|
|
199
199
|
return {
|
|
200
200
|
c() {
|
|
201
|
-
t = _("svg"), s = _("circle"), i = _("text"), o =
|
|
201
|
+
t = _("svg"), s = _("circle"), i = _("text"), o = A("R"), e(s, "cx", "12"), e(s, "cy", "12"), e(s, "r", "10"), e(s, "stroke", "#dd6617d4"), e(s, "stroke-width", "2"), e(s, "class", "svelte-40f46w"), e(i, "x", "50%"), e(i, "y", "54%"), e(i, "text-anchor", "middle"), e(i, "dominant-baseline", "middle"), e(i, "font-size", "14"), e(i, "font-weight", "bold"), e(i, "fill", "#dd6617d4"), e(i, "font-family", "Arial Rounded MT Bold, Arial, sans-serif"), e(i, "class", "svelte-40f46w"), e(t, "width", "18"), e(t, "height", "18"), e(t, "viewBox", "0 0 24 24"), e(t, "fill", "none"), e(t, "xmlns", "http://www.w3.org/2000/svg"), e(t, "class", "svelte-40f46w");
|
|
202
202
|
},
|
|
203
203
|
m(c, f) {
|
|
204
|
-
|
|
204
|
+
N(c, t, f), l(t, s), l(t, i), l(i, o);
|
|
205
205
|
},
|
|
206
206
|
d(c) {
|
|
207
|
-
c &&
|
|
207
|
+
c && W(t);
|
|
208
208
|
}
|
|
209
209
|
};
|
|
210
210
|
}
|
|
211
|
-
function
|
|
211
|
+
function At(a) {
|
|
212
212
|
let t, s, i;
|
|
213
213
|
return {
|
|
214
214
|
c() {
|
|
215
215
|
t = _("svg"), s = _("circle"), i = _("path"), e(s, "cx", "12"), e(s, "cy", "12"), e(s, "r", "10"), e(s, "stroke", "#f0a85f"), e(s, "stroke-width", "2"), e(s, "class", "svelte-40f46w"), e(i, "d", "M12 7V12L15 14"), e(i, "stroke", "#f0a85f"), e(i, "stroke-width", "2"), e(i, "stroke-linecap", "round"), e(i, "stroke-linejoin", "round"), e(i, "class", "svelte-40f46w"), e(t, "width", "18"), e(t, "height", "18"), e(t, "viewBox", "0 0 24 24"), e(t, "fill", "none"), e(t, "xmlns", "http://www.w3.org/2000/svg"), e(t, "class", "svelte-40f46w");
|
|
216
216
|
},
|
|
217
217
|
m(o, c) {
|
|
218
|
-
|
|
218
|
+
N(o, t, c), l(t, s), l(t, i);
|
|
219
219
|
},
|
|
220
220
|
d(o) {
|
|
221
|
-
o &&
|
|
221
|
+
o && W(t);
|
|
222
222
|
}
|
|
223
223
|
};
|
|
224
224
|
}
|
|
225
|
-
function
|
|
225
|
+
function Ft(a) {
|
|
226
226
|
let t, s, i;
|
|
227
227
|
return {
|
|
228
228
|
c() {
|
|
229
229
|
t = _("svg"), s = _("circle"), i = _("path"), e(s, "cx", "12"), e(s, "cy", "12"), e(s, "r", "10"), e(s, "stroke", "#e76049"), e(s, "stroke-width", "2"), e(s, "class", "svelte-40f46w"), e(i, "d", "M9 9L15 15M15 9L9 15"), e(i, "stroke", "#e76049"), e(i, "stroke-width", "2"), e(i, "stroke-linecap", "round"), e(i, "stroke-linejoin", "round"), e(i, "class", "svelte-40f46w"), e(t, "width", "18"), e(t, "height", "18"), e(t, "viewBox", "0 0 24 24"), e(t, "fill", "none"), e(t, "xmlns", "http://www.w3.org/2000/svg"), e(t, "class", "svelte-40f46w");
|
|
230
230
|
},
|
|
231
231
|
m(o, c) {
|
|
232
|
-
|
|
232
|
+
N(o, t, c), l(t, s), l(t, i);
|
|
233
233
|
},
|
|
234
234
|
d(o) {
|
|
235
|
-
o &&
|
|
235
|
+
o && W(t);
|
|
236
236
|
}
|
|
237
237
|
};
|
|
238
238
|
}
|
|
239
|
-
function
|
|
239
|
+
function It(a) {
|
|
240
240
|
let t, s, i, o;
|
|
241
241
|
return {
|
|
242
242
|
c() {
|
|
243
|
-
t = _("svg"), s = _("circle"), i = _("text"), o =
|
|
243
|
+
t = _("svg"), s = _("circle"), i = _("text"), o = A("A"), e(s, "cx", "12"), e(s, "cy", "12"), e(s, "r", "10"), e(s, "stroke", "#32b398"), e(s, "stroke-width", "2"), e(s, "class", "svelte-40f46w"), e(i, "x", "50%"), e(i, "y", "54%"), e(i, "text-anchor", "middle"), e(i, "dominant-baseline", "middle"), e(i, "font-size", "14"), e(i, "font-weight", "bold"), e(i, "fill", "#32b398"), e(i, "font-family", "Arial Rounded MT Bold, Arial, sans-serif"), e(i, "class", "svelte-40f46w"), e(t, "width", "18"), e(t, "height", "18"), e(t, "viewBox", "0 0 24 24"), e(t, "fill", "none"), e(t, "xmlns", "http://www.w3.org/2000/svg"), e(t, "class", "svelte-40f46w");
|
|
244
244
|
},
|
|
245
245
|
m(c, f) {
|
|
246
|
-
|
|
246
|
+
N(c, t, f), l(t, s), l(t, i), l(i, o);
|
|
247
247
|
},
|
|
248
248
|
d(c) {
|
|
249
|
-
c &&
|
|
249
|
+
c && W(t);
|
|
250
250
|
}
|
|
251
251
|
};
|
|
252
252
|
}
|
|
@@ -261,30 +261,30 @@ function st(a) {
|
|
|
261
261
|
/*$_*/
|
|
262
262
|
a[5](`transactionType.${/*transaction*/
|
|
263
263
|
a[24].Type}`) + ""
|
|
264
|
-
), H,
|
|
264
|
+
), H, L, z, y, C, b, F, D = (
|
|
265
265
|
/*$_*/
|
|
266
266
|
a[5](`transactionStatus.${/*transaction*/
|
|
267
267
|
a[24].Status}`) + ""
|
|
268
|
-
),
|
|
268
|
+
), R, U, B, Y;
|
|
269
269
|
function P(n, r) {
|
|
270
270
|
if (
|
|
271
271
|
/*transaction*/
|
|
272
272
|
n[24].Status === /*TransactionMainStatus*/
|
|
273
273
|
n[4].Authorized
|
|
274
274
|
)
|
|
275
|
-
return
|
|
275
|
+
return It;
|
|
276
276
|
if (
|
|
277
277
|
/*transaction*/
|
|
278
278
|
n[24].Status === /*TransactionMainStatus*/
|
|
279
279
|
n[4].Failed
|
|
280
280
|
)
|
|
281
|
-
return
|
|
281
|
+
return Ft;
|
|
282
282
|
if (
|
|
283
283
|
/*transaction*/
|
|
284
284
|
n[24].Status === /*TransactionMainStatus*/
|
|
285
285
|
n[4].Pending
|
|
286
286
|
)
|
|
287
|
-
return
|
|
287
|
+
return At;
|
|
288
288
|
if (
|
|
289
289
|
/*transaction*/
|
|
290
290
|
n[24].Status === /*TransactionMainStatus*/
|
|
@@ -301,15 +301,15 @@ function st(a) {
|
|
|
301
301
|
let S = P(a), p = S && S(a);
|
|
302
302
|
return {
|
|
303
303
|
c() {
|
|
304
|
-
t = v("tr"), s = v("td"), o =
|
|
304
|
+
t = v("tr"), s = v("td"), o = A(i), c = j(), f = v("td"), g = A(u), x = j(), k = v("td"), H = A(m), L = j(), z = v("td"), y = v("div"), C = v("span"), p && p.c(), b = j(), F = v("span"), R = A(D), U = j(), e(s, "class", "CashierTransactionId svelte-40f46w"), V(
|
|
305
305
|
s,
|
|
306
306
|
"copied",
|
|
307
307
|
/*copied*/
|
|
308
308
|
a[3]
|
|
309
|
-
), e(f, "class", "svelte-40f46w"), e(k, "class", "svelte-40f46w"), e(C, "class", "CashierTransactionHistoryIcon svelte-40f46w"), e(
|
|
309
|
+
), e(f, "class", "svelte-40f46w"), e(k, "class", "svelte-40f46w"), e(C, "class", "CashierTransactionHistoryIcon svelte-40f46w"), e(F, "class", "CashierTransactionHistoryStatusText svelte-40f46w"), e(y, "class", "CashierTransactionHistoryStatus svelte-40f46w"), e(z, "class", "svelte-40f46w"), e(t, "class", "svelte-40f46w");
|
|
310
310
|
},
|
|
311
311
|
m(n, r) {
|
|
312
|
-
|
|
312
|
+
N(n, t, r), l(t, s), l(s, o), l(t, c), l(t, f), l(f, g), l(t, x), l(t, k), l(k, H), l(t, L), l(t, z), l(z, y), l(y, C), p && p.m(C, null), l(y, b), l(y, F), l(F, R), l(t, U), B || (Y = pt(
|
|
313
313
|
s,
|
|
314
314
|
"mousedown",
|
|
315
315
|
/*mousedown_handler*/
|
|
@@ -333,10 +333,10 @@ function st(a) {
|
|
|
333
333
|
n[24].Type}`) + "") && M(H, m), S !== (S = P(n)) && (p && p.d(1), p = S && S(n), p && (p.c(), p.m(C, null))), r & /*$_, txnHistory*/
|
|
334
334
|
36 && D !== (D = /*$_*/
|
|
335
335
|
n[5](`transactionStatus.${/*transaction*/
|
|
336
|
-
n[24].Status}`) + "") && M(
|
|
336
|
+
n[24].Status}`) + "") && M(R, D);
|
|
337
337
|
},
|
|
338
338
|
d(n) {
|
|
339
|
-
n &&
|
|
339
|
+
n && W(t), p && p.d(), B = !1, Y();
|
|
340
340
|
}
|
|
341
341
|
};
|
|
342
342
|
}
|
|
@@ -347,10 +347,10 @@ function jt(a) {
|
|
|
347
347
|
);
|
|
348
348
|
return {
|
|
349
349
|
c() {
|
|
350
|
-
s && s.c(), t =
|
|
350
|
+
s && s.c(), t = ot();
|
|
351
351
|
},
|
|
352
352
|
m(i, o) {
|
|
353
|
-
s && s.m(i, o),
|
|
353
|
+
s && s.m(i, o), N(i, t, o);
|
|
354
354
|
},
|
|
355
355
|
p(i, [o]) {
|
|
356
356
|
/*txnHistory*/
|
|
@@ -359,20 +359,20 @@ function jt(a) {
|
|
|
359
359
|
i: X,
|
|
360
360
|
o: X,
|
|
361
361
|
d(i) {
|
|
362
|
-
i &&
|
|
362
|
+
i && W(t), s && s.d(i);
|
|
363
363
|
}
|
|
364
364
|
};
|
|
365
365
|
}
|
|
366
|
-
const
|
|
367
|
-
function
|
|
366
|
+
const Lt = "DD.MM.YYYY";
|
|
367
|
+
function Rt(a, t, s) {
|
|
368
368
|
let i;
|
|
369
|
-
|
|
370
|
-
let { endpoint: o } = t, { session: c } = t, { lang: f = "en" } = t, { customerid: u } = t, { clientstyling: g = "" } = t, { clientstylingurl: x = "" } = t, { translationurl: k } = t, { tooltipduration: m = 1e3 } = t, { txncount: H = 3 } = t,
|
|
369
|
+
rt(a, _t, (n) => s(5, i = n));
|
|
370
|
+
let { endpoint: o } = t, { session: c } = t, { lang: f = "en" } = t, { customerid: u } = t, { clientstyling: g = "" } = t, { clientstylingurl: x = "" } = t, { translationurl: k } = t, { tooltipduration: m = 1e3 } = t, { txncount: H = 3 } = t, L = [], z = !1, y, C;
|
|
371
371
|
var b;
|
|
372
372
|
(function(n) {
|
|
373
373
|
n.Deposit = "deposit", n.Withdraw = "withdraw", n.Refund = "refund", n.Unknown = "unknown", n.TaxDeduction = "taxDeduction";
|
|
374
374
|
})(b || (b = {}));
|
|
375
|
-
const
|
|
375
|
+
const F = [
|
|
376
376
|
"Authorized",
|
|
377
377
|
"Success",
|
|
378
378
|
"Failed",
|
|
@@ -388,7 +388,7 @@ function Lt(a, t, s) {
|
|
|
388
388
|
(function(n) {
|
|
389
389
|
n.Authorized = "Authorized", n.Success = "Success", n.Failed = "Failed", n.Rejected = "Rejected", n.Pending = "Pending";
|
|
390
390
|
})(D || (D = {}));
|
|
391
|
-
const
|
|
391
|
+
const R = () => {
|
|
392
392
|
let n = k;
|
|
393
393
|
if (n)
|
|
394
394
|
return fetch(n).then((r) => r.json()).then((r) => {
|
|
@@ -407,7 +407,7 @@ function Lt(a, t, s) {
|
|
|
407
407
|
}, B = () => {
|
|
408
408
|
const n = new URL(`${o}/api/v1/mm/payment/gettransactionshistory`), r = new Headers();
|
|
409
409
|
r.append("accept", "application/json"), r.append("Content-Type", "application/json"), r.append("X-SessionId", `${c}`);
|
|
410
|
-
const d = new Date((/* @__PURE__ */ new Date()).setMonth((/* @__PURE__ */ new Date()).getMonth() - 3)).toISOString(),
|
|
410
|
+
const d = new Date((/* @__PURE__ */ new Date()).setMonth((/* @__PURE__ */ new Date()).getMonth() - 3)).toISOString(), O = {
|
|
411
411
|
method: "POST",
|
|
412
412
|
mode: "cors",
|
|
413
413
|
headers: r,
|
|
@@ -419,8 +419,8 @@ function Lt(a, t, s) {
|
|
|
419
419
|
fromDate: d,
|
|
420
420
|
toDate: null,
|
|
421
421
|
statuses: {
|
|
422
|
-
[b.Deposit]:
|
|
423
|
-
[b.Withdraw]:
|
|
422
|
+
[b.Deposit]: F,
|
|
423
|
+
[b.Withdraw]: F,
|
|
424
424
|
[b.Refund]: ["Unknown"],
|
|
425
425
|
[b.TaxDeduction]: ["Unknown"],
|
|
426
426
|
[b.Unknown]: ["Unknown"]
|
|
@@ -428,14 +428,14 @@ function Lt(a, t, s) {
|
|
|
428
428
|
calculateProfit: !1
|
|
429
429
|
})
|
|
430
430
|
};
|
|
431
|
-
fetch(n,
|
|
432
|
-
s(2,
|
|
431
|
+
fetch(n, O).then((h) => h.json()).then((h) => {
|
|
432
|
+
s(2, L = Y((h == null ? void 0 : h.items) || []));
|
|
433
433
|
}).catch((h) => console.log(h));
|
|
434
434
|
}, Y = (n) => n.map((r) => {
|
|
435
435
|
let d = r.generalFields.status;
|
|
436
436
|
return r.generalFields.status.toLowerCase().includes("pending") && (d = D.Pending), {
|
|
437
437
|
Code: r.generalFields.code,
|
|
438
|
-
Date: xt(r.generalFields.created).format(
|
|
438
|
+
Date: xt(r.generalFields.created).format(Lt),
|
|
439
439
|
Status: d,
|
|
440
440
|
Type: r.generalFields.type
|
|
441
441
|
};
|
|
@@ -453,7 +453,7 @@ function Lt(a, t, s) {
|
|
|
453
453
|
});
|
|
454
454
|
}, S = (n) => P(n);
|
|
455
455
|
function p(n) {
|
|
456
|
-
|
|
456
|
+
wt[n ? "unshift" : "push"](() => {
|
|
457
457
|
y = n, s(1, y);
|
|
458
458
|
});
|
|
459
459
|
}
|
|
@@ -465,11 +465,11 @@ function Lt(a, t, s) {
|
|
|
465
465
|
2050 && g && y && Ct(y, g), a.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
466
466
|
4098 && x && y && St(y, x), a.$$.dirty & /*endpoint, session, customerid, lang*/
|
|
467
467
|
1920 && o && c && u && f && B(), a.$$.dirty & /*translationurl*/
|
|
468
|
-
8192 && k &&
|
|
468
|
+
8192 && k && R();
|
|
469
469
|
}, [
|
|
470
470
|
m,
|
|
471
471
|
y,
|
|
472
|
-
|
|
472
|
+
L,
|
|
473
473
|
z,
|
|
474
474
|
D,
|
|
475
475
|
i,
|
|
@@ -491,9 +491,9 @@ class Pt extends it {
|
|
|
491
491
|
super(), nt(
|
|
492
492
|
this,
|
|
493
493
|
t,
|
|
494
|
-
|
|
494
|
+
Rt,
|
|
495
495
|
jt,
|
|
496
|
-
|
|
496
|
+
at,
|
|
497
497
|
{
|
|
498
498
|
endpoint: 7,
|
|
499
499
|
session: 8,
|
|
@@ -563,7 +563,7 @@ class Pt extends it {
|
|
|
563
563
|
this.$$set({ txncount: t }), E();
|
|
564
564
|
}
|
|
565
565
|
}
|
|
566
|
-
|
|
566
|
+
gt(Pt, { endpoint: {}, session: {}, lang: {}, customerid: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, tooltipduration: {}, txncount: {} }, [], [], !0);
|
|
567
567
|
export {
|
|
568
568
|
Pt as default
|
|
569
569
|
};
|