@everymatrix/cashier-page 1.63.2 → 1.64.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{CashierConfirmModal-sI8AKckC.js → CashierConfirmModal-4RYp7Eiq.js} +285 -304
- package/components/CashierConfirmModal-DMmJumcl.cjs +4 -0
- package/components/{CashierConfirmModal-D-5CwHBA.js → CashierConfirmModal-untxGhsx.js} +152 -171
- package/components/{CashierError-ChvIhij4.cjs → CashierError-BD3PpAT9.cjs} +3 -3
- package/components/{CashierError-7Ot8GFHL.js → CashierError-DHzuwwQu.js} +4 -3
- package/components/{CashierError-Dcf1i1i-.js → CashierError-bKWdh6zs.js} +4 -3
- package/components/{CashierHeader-DnmOCyY5.js → CashierHeader-BDMjFf0S.js} +2 -2
- package/components/{CashierHeader-Btl5G1aW.js → CashierHeader-C85_EOkn.js} +2 -2
- package/components/{CashierHeader-xBZmd3xD.cjs → CashierHeader-DUIiJ1ma.cjs} +1 -1
- package/components/{CashierIframeRedirect-iRpGhBuO.js → CashierIframeRedirect-BZxYVcmF.js} +4 -4
- package/components/{CashierIframeRedirect-lBzX1iUX.cjs → CashierIframeRedirect-C3fjCJfm.cjs} +1 -1
- package/components/{CashierIframeRedirect-_jhy32eh.js → CashierIframeRedirect-CptFS2B0.js} +4 -4
- package/components/{CashierMethodDetails-DatXAL1v.js → CashierMethodDetails-B8ZN94ja.js} +2548 -2559
- package/components/{CashierMethodDetails-jk5GNqET.js → CashierMethodDetails-L1ZnAwA1.js} +2015 -1998
- package/components/CashierMethodDetails-lGOSlmya.cjs +18 -0
- package/components/CashierMethodsList-BcBzNfKT.cjs +1 -0
- package/components/CashierMethodsList-CNCrMZ4g.js +882 -0
- package/components/CashierMethodsList-CmF_WTB-.js +871 -0
- package/components/{CashierModal-BoglqxPv.js → CashierModal-BrwIBn9a.js} +14 -14
- package/components/{CashierModal-BhCdxWcE.cjs → CashierModal-BuM2Yq-y.cjs} +1 -1
- package/components/{CashierModal-6CTryAQJ.js → CashierModal-ZfKvGxFq.js} +11 -11
- package/components/{CashierNotifications-BVAanyOB.cjs → CashierNotifications-BLJS7gpv.cjs} +1 -1
- package/components/{CashierNotifications-GwlCZVnm.js → CashierNotifications-C48iLynX.js} +1 -1
- package/components/{CashierNotifications-BFj3fQud.js → CashierNotifications-dn6rnyK_.js} +1 -1
- package/components/CashierPage-B453tZx8.cjs +1 -0
- package/components/{CashierPage-V2NAWvNg.js → CashierPage-ClJcMBDB.js} +1128 -1109
- package/components/{CashierPage-B1G7PQOG.js → CashierPage-D8D89xo-.js} +1128 -1109
- package/components/{CashierReceiptPage-BA00H-2d.cjs → CashierReceiptPage-BO4QXf-M.cjs} +1 -1
- package/components/{CashierReceiptPage-CG0IVSDJ.js → CashierReceiptPage-BPED3qt4.js} +21 -27
- package/components/{CashierReceiptPage-D4IgTNIg.js → CashierReceiptPage-otjaMyRe.js} +21 -27
- package/components/{CashierSessionExpirationModal-CHPU1aRa.js → CashierSessionExpirationModal-BQFyVDBj.js} +430 -428
- package/components/CashierSessionExpirationModal-Ckg5tH-9.cjs +2 -0
- package/components/{CashierSessionExpirationModal-DV8r-804.js → CashierSessionExpirationModal-DAWM1xQ6.js} +452 -450
- package/components/{CashierSpinner-DO1yLcR1.js → CashierSpinner-C-ubAde7.js} +1 -1
- package/components/{CashierSpinner-H763izjz.cjs → CashierSpinner-D-uP0nCc.cjs} +1 -1
- package/components/{CashierSpinner-bxbp3WK6.js → CashierSpinner-tLPMJx6q.js} +1 -1
- package/components/{CashierTransactionHistory-DyQIw9U2.cjs → CashierTransactionHistory-BiM02fXh.cjs} +1 -1
- package/components/{CashierTransactionHistory-Dxq24rfR.js → CashierTransactionHistory-Bugs_tmN.js} +13 -13
- package/components/{CashierTransactionHistory-DuD_IPSM.js → CashierTransactionHistory-Cd3pN70W.js} +13 -13
- package/components/{CashierVerifications-CLeYFnf-.cjs → CashierVerifications-4hUquQj9.cjs} +1 -1
- package/components/{CashierVerifications-BXoRLAWe.js → CashierVerifications-BL3E_m40.js} +191 -194
- package/components/{CashierVerifications-AI2HHaYS.js → CashierVerifications-Ckv8ml82.js} +208 -211
- package/components/CashierVideoModal-BZg_b6bd.cjs +1 -0
- package/components/{CashierVideoModal-CVEk7pqo.js → CashierVideoModal-CVDvqrcy.js} +17 -17
- package/components/{CashierVideoModal-BGKXfmt9.js → CashierVideoModal-DHNu0BQz.js} +17 -17
- 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/stencil/{index-97d17652-C616IYj2.js → index-97d17652-BEnqZAxL.js} +1 -1
- package/stencil/{index-97d17652-C9Ph2JiE.cjs → index-97d17652-D5_8Vwfn.cjs} +1 -1
- package/stencil/{index-97d17652-B8yQdy7J.js → index-97d17652-WK_DbPS4.js} +1 -1
- package/stencil/{ui-image-Bz0nQwNJ.cjs → ui-image-CMb1eK44.cjs} +1 -1
- package/stencil/{ui-image-DX8NqsyA.js → ui-image-CQQDA5b0.js} +1 -1
- package/stencil/{ui-image-o9dMcntc.js → ui-image-CmwNU-jf.js} +1 -1
- package/stencil/{ui-image-7da92f1f-26DzsVFt.js → ui-image-b7b48fe5-Cf9Vq5pI.js} +6 -6
- package/stencil/ui-image-b7b48fe5-DCck2kk1.cjs +1 -0
- package/stencil/{ui-image-7da92f1f-BAghvEDf.js → ui-image-b7b48fe5-V9vp4faA.js} +6 -6
- package/stencil/{ui-image_2-Cyqb4u7k.js → ui-image_2-B56t6kXT.js} +2 -2
- package/stencil/{ui-image_2-BXgptLvl.js → ui-image_2-BncuYpLi.js} +2 -2
- package/stencil/{ui-image_2-Cctik3aF.cjs → ui-image_2-YkYxLKu7.cjs} +1 -1
- package/components/CashierConfirmModal-BVT51ZOp.cjs +0 -4
- package/components/CashierMethodDetails-DLhEFjxf.cjs +0 -18
- package/components/CashierMethodsList-C0IZmP3U.js +0 -760
- package/components/CashierMethodsList-DfKVl2ns.js +0 -749
- package/components/CashierMethodsList-PDEbBRc7.cjs +0 -1
- package/components/CashierPage-DuVl1Vzu.cjs +0 -1
- package/components/CashierSessionExpirationModal-B3thCy2R.cjs +0 -2
- package/components/CashierVideoModal-CjR0Fzuu.cjs +0 -1
- package/stencil/ui-image-7da92f1f-BiVBd_OW.cjs +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as y, b as g, s as m, f as h, c as p, n as c, e as k, l as C, o as x, q as S, z as _, E as b } from "./CashierConfirmModal-
|
|
1
|
+
import { S as y, b as g, s as m, f as h, c as p, n as c, e as k, l as C, o as x, q as S, z as _, E as b } from "./CashierConfirmModal-untxGhsx.js";
|
|
2
2
|
function v(n) {
|
|
3
3
|
p(n, "svelte-fidj5e", ".CashierSpinner{display:block;width:80px;height:80px;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1}.CashierSpinner .spinner{animation:rotate 2s linear infinite;transform-origin:center center}.CashierSpinner .spinner .path{stroke-dasharray:1, 200;stroke-dashoffset:0;animation:dash 1.5s ease-in-out infinite;stroke-linecap:round;stroke:var(--emw--color-primary, #7EC51E)}@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dasharray:1, 200;stroke-dashoffset:0}50%{stroke-dasharray:89, 200;stroke-dashoffset:-35px}100%{stroke-dasharray:89, 200;stroke-dashoffset:-124px}}");
|
|
4
4
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CashierConfirmModal-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CashierConfirmModal-DMmJumcl.cjs");function y(i){e.append_styles(i,"svelte-fidj5e",".CashierSpinner{display:block;width:80px;height:80px;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1}.CashierSpinner .spinner{animation:rotate 2s linear infinite;transform-origin:center center}.CashierSpinner .spinner .path{stroke-dasharray:1, 200;stroke-dashoffset:0;animation:dash 1.5s ease-in-out infinite;stroke-linecap:round;stroke:var(--emw--color-primary, #7EC51E)}@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dasharray:1, 200;stroke-dashoffset:0}50%{stroke-dasharray:89, 200;stroke-dashoffset:-35px}100%{stroke-dasharray:89, 200;stroke-dashoffset:-124px}}")}function g(i){let t;return{c(){t=e.element("div"),t.innerHTML='<svg class="spinner" viewBox="25 25 50 50"><circle class="path" cx="50" cy="50" r="20" fill="none" stroke-width="2" stroke-miterlimit="10"></circle></svg>',e.attr(t,"class","CashierSpinner")},m(s,l){e.insert(s,t,l),i[3](t)},p:e.noop,i:e.noop,o:e.noop,d(s){s&&e.detach(t),i[3](null)}}}function p(i,t,s){let{clientstyling:l=""}=t,{clientstylingurl:a=""}=t,r;const h=()=>{let n=document.createElement("style");n.innerHTML=l,r.appendChild(n)},u=()=>{let n=new URL(a),c=document.createElement("style");fetch(n.href).then(o=>o.text()).then(o=>{c.innerHTML=o,setTimeout(()=>{r.appendChild(c)},1)})};function f(n){e.binding_callbacks[n?"unshift":"push"](()=>{r=n,s(0,r)})}return i.$$set=n=>{"clientstyling"in n&&s(1,l=n.clientstyling),"clientstylingurl"in n&&s(2,a=n.clientstylingurl)},i.$$.update=()=>{i.$$.dirty&3&&l&&r&&h(),i.$$.dirty&5&&a&&r&&u()},[r,l,a,f]}class d extends e.SvelteComponent{constructor(t){super(),e.init(this,t,p,g,e.safe_not_equal,{clientstyling:1,clientstylingurl:2},y)}get clientstyling(){return this.$$.ctx[1]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}}e.create_custom_element(d,{clientstyling:{},clientstylingurl:{}},[],[],!0);exports.default=d;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as y, b as g, s as m, f as h, c as p, n as c, e as k, m as C, p as x, v as S, A as _, E as v } from "./CashierConfirmModal-
|
|
1
|
+
import { S as y, b as g, s as m, f as h, c as p, n as c, e as k, m as C, p as x, v as S, A as _, E as v } from "./CashierConfirmModal-4RYp7Eiq.js";
|
|
2
2
|
function b(n) {
|
|
3
3
|
p(n, "svelte-fidj5e", ".CashierSpinner{display:block;width:80px;height:80px;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1}.CashierSpinner .spinner{animation:rotate 2s linear infinite;transform-origin:center center}.CashierSpinner .spinner .path{stroke-dasharray:1, 200;stroke-dashoffset:0;animation:dash 1.5s ease-in-out infinite;stroke-linecap:round;stroke:var(--emw--color-primary, #7EC51E)}@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dasharray:1, 200;stroke-dashoffset:0}50%{stroke-dasharray:89, 200;stroke-dashoffset:-35px}100%{stroke-dasharray:89, 200;stroke-dashoffset:-124px}}");
|
|
4
4
|
}
|
package/components/{CashierTransactionHistory-DyQIw9U2.cjs → CashierTransactionHistory-BiM02fXh.cjs}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CashierConfirmModal-BVT51ZOp.cjs"),B=require("./CashierModal-BhCdxWcE.cjs"),L=require("./CashierError-ChvIhij4.cjs"),X=require("./CashierMethodDetails-DLhEFjxf.cjs");L.init({fallbackLocale:"en"});function E(i,e){L.addMessages(i,e)}function G(i){L.$locale.set(i)}const U={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:"İşlem Geçmişi",transactionIdTitle:"İşlem ID'si",transactionDateTitle:"Tarih",transactionTypeTitle:"Tip",transactionStatusTitle:"Durum",copyTransactionId:"İşlem ID’si kopyalandı",transactionStatus:{Authorized:"Onaylandı",Success:"Başarılı",Failed:"Başarısız",Rejected:"Reddedildi",Pending:"Beklemede"},transactionType:{Deposit:"Para Yatır",Withdraw:"Çekim"}}};function J(i,e){if(i){const a=document.createElement("style");a.innerHTML=e,i.appendChild(a)}}function V(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,x,y=i[5]("transactionDateTitle")+"",H,S,I,F=i[5]("transactionTypeTitle")+"",j,R,A,b=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(),x=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(b),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(x,"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,x),t.append(x,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&&b!==(b=p[5]("transactionStatusTitle")+"")&&t.set_data(w,b),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,B.fade,{duration:100}),r.start())}),d=!0)},o(f){r&&r.invalidate(),f&&(o=t.create_out_transition(e,B.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,x,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 b=A(i),w=b&&b(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"),x=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(x,"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,x),w&&w.m(x,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),b!==(b=A(s))&&(w&&w.d(1),w=b&&b(s),w&&(w.c(),w.m(x,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,x;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=>{E(c,l[c])})}).catch(l=>{console.log(l)})};Object.keys(U).forEach(s=>{E(s,U[s])});const F=()=>{G(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(x),x=setTimeout(()=>{a(3,C=!1)},2e3)}).catch(c=>{console.error("Could not copy text: ",c)})},b=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&&J(v,m),i.$$.dirty&4098&&_&&v&&V(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,b,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-DMmJumcl.cjs"),B=require("./CashierModal-BuM2Yq-y.cjs"),L=require("./CashierError-BD3PpAT9.cjs"),X=require("./CashierMethodDetails-lGOSlmya.cjs");L.init({fallbackLocale:"en"});function E(i,e){L.addMessages(i,e)}function G(i){L.$locale.set(i)}const U={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:"İşlem Geçmişi",transactionIdTitle:"İşlem ID'si",transactionDateTitle:"Tarih",transactionTypeTitle:"Tip",transactionStatusTitle:"Durum",copyTransactionId:"İşlem ID’si kopyalandı",transactionStatus:{Authorized:"Onaylandı",Success:"Başarılı",Failed:"Başarısız",Rejected:"Reddedildi",Pending:"Beklemede"},transactionType:{Deposit:"Para Yatır",Withdraw:"Çekim"}}};function J(i,e){if(i){const a=document.createElement("style");a.innerHTML=e,i.appendChild(a)}}function V(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,x,y=i[5]("transactionDateTitle")+"",H,S,I,F=i[5]("transactionTypeTitle")+"",j,R,A,b=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(),x=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(b),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(x,"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,x),t.append(x,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&&b!==(b=p[5]("transactionStatusTitle")+"")&&t.set_data(w,b),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,B.fade,{duration:100}),r.start())}),d=!0)},o(f){r&&r.invalidate(),f&&(o=t.create_out_transition(e,B.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,x,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 b=A(i),w=b&&b(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"),x=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(x,"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,x),w&&w.m(x,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),b!==(b=A(s))&&(w&&w.d(1),w=b&&b(s),w&&(w.c(),w.m(x,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,x;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=>{E(c,l[c])})}).catch(l=>{console.log(l)})};Object.keys(U).forEach(s=>{E(s,U[s])});const F=()=>{G(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(x),x=setTimeout(()=>{a(3,C=!1)},2e3)}).catch(c=>{console.error("Could not copy text: ",c)})},b=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&&J(v,m),i.$$.dirty&4098&&_&&v&&V(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,b,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-Dxq24rfR.js → CashierTransactionHistory-Bugs_tmN.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { S as it, b as nt, s as at, f as U, c as lt, n as
|
|
2
|
-
import { f as
|
|
3
|
-
import { a as yt, $ as Tt, i as _t, b as bt } from "./CashierError-
|
|
4
|
-
import { d as xt } from "./CashierMethodDetails-
|
|
1
|
+
import { S as it, b as nt, s as at, f as U, c as lt, n as J, e as W, l as N, w as ot, v as rt, K as V, L as ct, g as X, D as dt, t as ft, k as ut, x as B, m as l, o as m, p as j, y as I, q as e, z as wt, V as ht, F as mt, W as vt, J as G, A as pt, N as b, E as gt } from "./CashierConfirmModal-untxGhsx.js";
|
|
2
|
+
import { f as K } from "./CashierModal-BrwIBn9a.js";
|
|
3
|
+
import { a as yt, $ as Tt, i as _t, b as bt } from "./CashierError-DHzuwwQu.js";
|
|
4
|
+
import { d as xt } from "./CashierMethodDetails-B8ZN94ja.js";
|
|
5
5
|
_t({
|
|
6
6
|
fallbackLocale: "en"
|
|
7
7
|
});
|
|
@@ -92,7 +92,7 @@ function tt(a) {
|
|
|
92
92
|
), p, n, r, d = (
|
|
93
93
|
/*copied*/
|
|
94
94
|
a[3] && et(a)
|
|
95
|
-
), O =
|
|
95
|
+
), O = V(
|
|
96
96
|
/*txnHistory*/
|
|
97
97
|
a[2]
|
|
98
98
|
), h = [];
|
|
@@ -114,7 +114,7 @@ function tt(a) {
|
|
|
114
114
|
p(w, F) {
|
|
115
115
|
if (/*copied*/
|
|
116
116
|
w[3] ? d ? (d.p(w, F), F & /*copied*/
|
|
117
|
-
8 &&
|
|
117
|
+
8 && X(d, 1)) : (d = et(w), d.c(), X(d, 1), d.m(t, s)) : d && (dt(), ft(d, 1, 1, () => {
|
|
118
118
|
d = null;
|
|
119
119
|
}), ut()), F & /*$_*/
|
|
120
120
|
32 && o !== (o = /*$_*/
|
|
@@ -128,7 +128,7 @@ function tt(a) {
|
|
|
128
128
|
32 && S !== (S = /*$_*/
|
|
129
129
|
w[5]("transactionStatusTitle") + "") && B(p, S), F & /*$_, txnHistory, TransactionMainStatus, copied, copyToClipboard*/
|
|
130
130
|
124) {
|
|
131
|
-
O =
|
|
131
|
+
O = V(
|
|
132
132
|
/*txnHistory*/
|
|
133
133
|
w[2]
|
|
134
134
|
);
|
|
@@ -166,11 +166,11 @@ function et(a) {
|
|
|
166
166
|
},
|
|
167
167
|
i(u) {
|
|
168
168
|
f || (u && mt(() => {
|
|
169
|
-
f && (c && c.end(1), o = vt(t,
|
|
169
|
+
f && (c && c.end(1), o = vt(t, K, { duration: 100 }), o.start());
|
|
170
170
|
}), f = !0);
|
|
171
171
|
},
|
|
172
172
|
o(u) {
|
|
173
|
-
o && o.invalidate(), u && (c = ht(t,
|
|
173
|
+
o && o.invalidate(), u && (c = ht(t, K, { duration: (
|
|
174
174
|
/*tooltipduration*/
|
|
175
175
|
a[0]
|
|
176
176
|
) })), f = !1;
|
|
@@ -301,7 +301,7 @@ function st(a) {
|
|
|
301
301
|
let S = P(a), p = S && S(a);
|
|
302
302
|
return {
|
|
303
303
|
c() {
|
|
304
|
-
t = m("tr"), s = m("td"), o = I(i), c = j(), f = m("td"), g = I(u), x = j(), k = m("td"), H = I(v), L = j(), D = m("td"), y = m("div"), C = m("span"), p && p.c(), _ = j(), A = m("span"), R = I(z), M = j(), e(s, "class", "CashierTransactionId svelte-40f46w"),
|
|
304
|
+
t = m("tr"), s = m("td"), o = I(i), c = j(), f = m("td"), g = I(u), x = j(), k = m("td"), H = I(v), L = j(), D = m("td"), y = m("div"), C = m("span"), p && p.c(), _ = j(), A = m("span"), R = I(z), M = j(), e(s, "class", "CashierTransactionId svelte-40f46w"), G(
|
|
305
305
|
s,
|
|
306
306
|
"copied",
|
|
307
307
|
/*copied*/
|
|
@@ -320,7 +320,7 @@ function st(a) {
|
|
|
320
320
|
r & /*txnHistory*/
|
|
321
321
|
4 && i !== (i = /*transaction*/
|
|
322
322
|
n[24].Code + "") && B(o, i), r & /*copied*/
|
|
323
|
-
8 &&
|
|
323
|
+
8 && G(
|
|
324
324
|
s,
|
|
325
325
|
"copied",
|
|
326
326
|
/*copied*/
|
|
@@ -356,8 +356,8 @@ function jt(a) {
|
|
|
356
356
|
/*txnHistory*/
|
|
357
357
|
i[2].length ? s ? s.p(i, o) : (s = tt(i), s.c(), s.m(t.parentNode, t)) : s && (s.d(1), s = null);
|
|
358
358
|
},
|
|
359
|
-
i:
|
|
360
|
-
o:
|
|
359
|
+
i: J,
|
|
360
|
+
o: J,
|
|
361
361
|
d(i) {
|
|
362
362
|
i && W(t), s && s.d(i);
|
|
363
363
|
}
|
package/components/{CashierTransactionHistory-DuD_IPSM.js → CashierTransactionHistory-Cd3pN70W.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { S as it, b as nt, s as at, f as U, c as lt, n as
|
|
2
|
-
import { f as
|
|
3
|
-
import { a as yt, $ as Tt, i as _t, b as bt } from "./CashierError-
|
|
4
|
-
import { d as xt } from "./CashierMethodDetails-
|
|
1
|
+
import { S as it, b as nt, s as at, f as U, c as lt, n as J, e as W, m as N, x as ot, w as rt, K as V, L as ct, g as X, k as dt, t as ft, l as ut, y as B, o as l, p as m, q as j, z as I, v as e, A as wt, V as ht, F as mt, W as vt, J as G, B as pt, N as b, E as gt } from "./CashierConfirmModal-4RYp7Eiq.js";
|
|
2
|
+
import { f as K } from "./CashierModal-ZfKvGxFq.js";
|
|
3
|
+
import { a as yt, $ as Tt, i as _t, b as bt } from "./CashierError-bKWdh6zs.js";
|
|
4
|
+
import { d as xt } from "./CashierMethodDetails-L1ZnAwA1.js";
|
|
5
5
|
_t({
|
|
6
6
|
fallbackLocale: "en"
|
|
7
7
|
});
|
|
@@ -92,7 +92,7 @@ function tt(a) {
|
|
|
92
92
|
), p, n, r, d = (
|
|
93
93
|
/*copied*/
|
|
94
94
|
a[3] && et(a)
|
|
95
|
-
), O =
|
|
95
|
+
), O = V(
|
|
96
96
|
/*txnHistory*/
|
|
97
97
|
a[2]
|
|
98
98
|
), h = [];
|
|
@@ -114,7 +114,7 @@ function tt(a) {
|
|
|
114
114
|
p(w, F) {
|
|
115
115
|
if (/*copied*/
|
|
116
116
|
w[3] ? d ? (d.p(w, F), F & /*copied*/
|
|
117
|
-
8 &&
|
|
117
|
+
8 && X(d, 1)) : (d = et(w), d.c(), X(d, 1), d.m(t, s)) : d && (dt(), ft(d, 1, 1, () => {
|
|
118
118
|
d = null;
|
|
119
119
|
}), ut()), F & /*$_*/
|
|
120
120
|
32 && o !== (o = /*$_*/
|
|
@@ -128,7 +128,7 @@ function tt(a) {
|
|
|
128
128
|
32 && S !== (S = /*$_*/
|
|
129
129
|
w[5]("transactionStatusTitle") + "") && B(p, S), F & /*$_, txnHistory, TransactionMainStatus, copied, copyToClipboard*/
|
|
130
130
|
124) {
|
|
131
|
-
O =
|
|
131
|
+
O = V(
|
|
132
132
|
/*txnHistory*/
|
|
133
133
|
w[2]
|
|
134
134
|
);
|
|
@@ -166,11 +166,11 @@ function et(a) {
|
|
|
166
166
|
},
|
|
167
167
|
i(u) {
|
|
168
168
|
f || (u && mt(() => {
|
|
169
|
-
f && (c && c.end(1), o = vt(t,
|
|
169
|
+
f && (c && c.end(1), o = vt(t, K, { duration: 100 }), o.start());
|
|
170
170
|
}), f = !0);
|
|
171
171
|
},
|
|
172
172
|
o(u) {
|
|
173
|
-
o && o.invalidate(), u && (c = ht(t,
|
|
173
|
+
o && o.invalidate(), u && (c = ht(t, K, { duration: (
|
|
174
174
|
/*tooltipduration*/
|
|
175
175
|
a[0]
|
|
176
176
|
) })), f = !1;
|
|
@@ -301,7 +301,7 @@ function st(a) {
|
|
|
301
301
|
let S = P(a), p = S && S(a);
|
|
302
302
|
return {
|
|
303
303
|
c() {
|
|
304
|
-
t = m("tr"), s = m("td"), o = I(i), c = j(), f = m("td"), g = I(u), x = j(), k = m("td"), H = I(v), L = j(), z = m("td"), y = m("div"), C = m("span"), p && p.c(), _ = j(), A = m("span"), R = I(D), M = j(), e(s, "class", "CashierTransactionId svelte-40f46w"),
|
|
304
|
+
t = m("tr"), s = m("td"), o = I(i), c = j(), f = m("td"), g = I(u), x = j(), k = m("td"), H = I(v), L = j(), z = m("td"), y = m("div"), C = m("span"), p && p.c(), _ = j(), A = m("span"), R = I(D), M = j(), e(s, "class", "CashierTransactionId svelte-40f46w"), G(
|
|
305
305
|
s,
|
|
306
306
|
"copied",
|
|
307
307
|
/*copied*/
|
|
@@ -320,7 +320,7 @@ function st(a) {
|
|
|
320
320
|
r & /*txnHistory*/
|
|
321
321
|
4 && i !== (i = /*transaction*/
|
|
322
322
|
n[24].Code + "") && B(o, i), r & /*copied*/
|
|
323
|
-
8 &&
|
|
323
|
+
8 && G(
|
|
324
324
|
s,
|
|
325
325
|
"copied",
|
|
326
326
|
/*copied*/
|
|
@@ -356,8 +356,8 @@ function jt(a) {
|
|
|
356
356
|
/*txnHistory*/
|
|
357
357
|
i[2].length ? s ? s.p(i, o) : (s = tt(i), s.c(), s.m(t.parentNode, t)) : s && (s.d(1), s = null);
|
|
358
358
|
},
|
|
359
|
-
i:
|
|
360
|
-
o:
|
|
359
|
+
i: J,
|
|
360
|
+
o: J,
|
|
361
361
|
d(i) {
|
|
362
362
|
i && W(t), s && s.d(i);
|
|
363
363
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./CashierConfirmModal-BVT51ZOp.cjs"),S=require("./CashierError-ChvIhij4.cjs"),I=require("./CashierMethodDetails-DLhEFjxf.cjs");function U(r,t){S.addMessages(r,t)}function ge(r){S.init({fallbackLocale:"en"}),S.$locale.set(r)}const R={en:{"verification.video.how-to":"How to verify yourself","verification.idenfy.referred-awaiting":"ID verification is in progress. We will inform you as soon as verification is completed and you can withdraw money back","verification.message.failed":"We apologize, but we were unable to verify your account. Please contact support team","verification.idenfy.link-name":"link","verification.idenfy.in-progress":"To withdraw funds to your account you are required to pass user verification. Please have your ID ready and follow the {link} to start verification","verification.shuftipro.in-progress.Biometric":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification.","verification.shuftipro.in-progress.Biometric.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {Documents} verification.","verification.shuftipro.in-progress.Biometric.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification, {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Biometric.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification.","verification.shuftipro.in-progress.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {ProofOfAddress} verification.","verification.shuftipro.link-name.Biometric":"Biometric","verification.shuftipro.link-name.Documents":"Documents","verification.shuftipro.link-name.ProofOfAddress":"Proof Of Address","verification.shuftipro.validations-started":"After completing verification, please proceed with the transaction"},tr:{"verification.video.how-to":"Kimlik doğrulama nasıl yapılır","verification.idenfy.referred-awaiting":"Kimlik doğrulaması işlemde. Doğrulama tamamlandığında size haber vereceğiz","verification.message.failed":"Döküman doğrulama başarısız, hesabınız doğrulanamadı","verification.idenfy.link-name":"link","verification.idenfy.in-progress":"Hesabınızdan çekim yapabilmek için kullanıcı doğrulaması gerekiyor. Lütfen kimliğinizi hazır edin ve {link} adresinden doğrulamayı başlatın","verification.shuftipro.in-progress.Biometric":"İşlemi gerçekleştirmek için kullanıcı doğrulamasını geçmeniz gerekmektedir. Doğrulamayı başlatmak için Lütfen linke tıklayın {Biometric}","verification.shuftipro.in-progress.Biometric.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {Documents} verification.","verification.shuftipro.in-progress.Biometric.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification, {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Biometric.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification.","verification.shuftipro.in-progress.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {ProofOfAddress} verification.","verification.shuftipro.link-name.Biometric":"Doğrulama Yap","verification.shuftipro.link-name.Documents":"Documents","verification.shuftipro.link-name.ProofOfAddress":"Proof Of Address","verification.shuftipro.validations-started":"Lütfen Doğrulamayı tamamladıktan sonra işleme devam ediniz"},hr:{"verification.video.how-to":"How to verify yourself","verification.idenfy.referred-awaiting":"ID verification is in progress. We will inform you as soon as verification is completed and you can withdraw money back","verification.message.failed":"We apologize, but we were unable to verify your account. Please contact support team","verification.idenfy.link-name":"link","verification.idenfy.in-progress":"To withdraw funds to your account you are required to pass user verification. Please have your ID ready and follow the {link} to start verification","verification.shuftipro.in-progress.Biometric":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification.","verification.shuftipro.in-progress.Biometric.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {Documents} verification.","verification.shuftipro.in-progress.Biometric.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification, {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Biometric.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification.","verification.shuftipro.in-progress.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {ProofOfAddress} verification.","verification.shuftipro.link-name.Biometric":"Biometric","verification.shuftipro.link-name.Documents":"Documents","verification.shuftipro.link-name.ProofOfAddress":"Proof Of Address","verification.shuftipro.validations-started":"After completing verification, please proceed with the transaction"}};if(typeof window!="undefined"){let r=function(t){return function(...o){try{return t.apply(this,o)}catch(s){if(s instanceof DOMException&&s.message.includes("has already been used with this registry")||s.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw s}}};customElements.define=r(customElements.define),Promise.resolve().then(()=>require("./CashierVideoModal-CjR0Fzuu.cjs")).then(({default:t})=>{!customElements.get("cashier-video-modal")&&customElements.define("cashier-video-modal",t.element)})}function ve(r){i.append_styles(r,"svelte-1emynn4","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;-webkit-tap-highlight-color:transparent}.CashierVerifications{box-shadow:0 0 4px var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1))}.CashierVerifications.CashierVerificationsDesktop{border-radius:var(--mmw--border-radius-medium-plus, 6px);overflow:hidden}.CashierVerifications.CashierVerificationsDesktop:has(.CashierVerificationMessage){margin-bottom:var(--emw--spacing-small, 12px)}.CashierVerificationsWrapper{display:flex;flex-direction:column;width:100%}.IconVerification{width:30px;display:flex}.CashierVerificationMessage{display:flex;align-items:center;box-sizing:border-box;background:var(--emw--color-gray-50, #F7F8FA);border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);padding:0 var(--emw--spacing-small, 12px);transition:0.5s;max-height:500px}.CashierVerificationMessage:first-child{transition:none;cursor:pointer}.CashierVerificationMessage:first-child:hover{background:linear-gradient(0, var(--emw--color-gray-50, #F7F8FA) 0%, var(--emw--color-white, #fff) 100%)}.CashierVerificationMessage:not(.ShowAll):not(:first-child){max-height:0;overflow:hidden}.CashierVerificationMessage:hover .CashierVerificationChevron svg path{opacity:1}svg{height:20px}svg .IconColor{fill:var(--emw--color-warning, #ec9109)}p{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-small, 14px);font-family:inherit;line-height:120%;margin:var(--emw--spacing-small, 12px)}.CashierVerificationsDesktop p{font-size:var(--emw--font-size-medium, 16px)}.text{word-break:break-word}.CashierVerificationChevron{cursor:pointer;margin-left:auto}.CashierVerificationChevron svg{transition:0.25s}.CashierVerificationChevron svg path{fill:var(--mmw--color-grey-290, #666);opacity:0.5}.CashierVerificationChevron:hover svg path{opacity:1}.ShowAll .CashierVerificationChevron svg{-o-transform:rotate(180deg);-ms-transform:rotate(180deg);-moz-transform:rotate(180deg);-webkit-transform:rotate(180deg);transform:rotate(180deg)}.CashierVerificationVideo{display:flex;width:100%;align-items:center;box-sizing:border-box;background:var(--emw--color-gray-50, #F7F8FA);border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);padding:0 var(--emw--spacing-small, 12px);transition:0.5s;max-height:500px}.IconVideo{width:30px;display:flex;justify-content:center}.CashierVerificationVideoLink{cursor:pointer;color:var(--mmw--color-grey-10, #111);font-family:inherit;font-size:var(--emw--font-size-small, 14px);line-height:120%;margin:var(--emw--spacing-small, 12px);text-decoration:underline}.CashierVerificationVideoLinkDesktop{font-size:var(--emw--font-size-medium, 16px)}")}function H(r,t,o){const s=r.slice();return s[49]=t[o],s[51]=o,s}function j(r){let t,o,s,c,d=i.ensure_array_like(r[4]),u=[];for(let l=0;l<d.length;l+=1)u[l]=K(H(r,d,l));let m=r[7]&&W(r);return{c(){t=i.element("div");for(let l=0;l<u.length;l+=1)u[l].c();o=i.space(),m&&m.c(),s=i.space(),c=i.element("cashier-video-modal"),i.attr(t,"class","CashierVerificationsWrapper"),i.set_custom_element_data(c,"clientstylingurl",r[1]),i.set_custom_element_data(c,"clientstyling",r[0]),i.set_custom_element_data(c,"ismobileview",r[2]),i.set_custom_element_data(c,"videosrc",r[8])},m(l,h){i.insert(l,t,h);for(let a=0;a<u.length;a+=1)u[a]&&u[a].m(t,null);i.insert(l,o,h),m&&m.m(l,h),i.insert(l,s,h),i.insert(l,c,h)},p(l,h){if(h[0]&1072){d=i.ensure_array_like(l[4]);let a;for(a=0;a<d.length;a+=1){const y=H(l,d,a);u[a]?u[a].p(y,h):(u[a]=K(y),u[a].c(),u[a].m(t,null))}for(;a<u.length;a+=1)u[a].d(1);u.length=d.length}l[7]?m?m.p(l,h):(m=W(l),m.c(),m.m(s.parentNode,s)):m&&(m.d(1),m=null),h[0]&2&&i.set_custom_element_data(c,"clientstylingurl",l[1]),h[0]&1&&i.set_custom_element_data(c,"clientstyling",l[0]),h[0]&4&&i.set_custom_element_data(c,"ismobileview",l[2]),h[0]&256&&i.set_custom_element_data(c,"videosrc",l[8])},d(l){l&&(i.detach(t),i.detach(o),i.detach(s),i.detach(c)),i.destroy_each(u,l),m&&m.d(l)}}}function N(r){let t,o,s;function c(...d){return r[18](r[51],...d)}return{c(){t=i.element("span"),t.innerHTML='<svg width="25px" height="25px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1ZM8.70711 9.79289C8.31658 9.40237 7.68342 9.40237 7.29289 9.79289C6.90237 10.1834 6.90237 10.8166 7.29289 11.2071L11.2929 15.2071C11.6834 15.5976 12.3166 15.5976 12.7071 15.2071L16.7071 11.2071C17.0976 10.8166 17.0976 10.1834 16.7071 9.79289C16.3166 9.40237 15.6834 9.40237 15.2929 9.79289L12 13.0858L8.70711 9.79289Z" fill="#000000"></path></svg>',i.attr(t,"class","CashierVerificationChevron")},m(d,u){i.insert(d,t,u),o||(s=i.listen(t,"click",c),o=!0)},p(d,u){r=d},d(d){d&&i.detach(t),o=!1,s()}}}function K(r){let t,o,s,c,d=r[49]+"",u,m,l,h,a=r[4].length>1&&r[51]===0&&N(r);function y(...g){return r[19](r[51],...g)}return{c(){t=i.element("div"),o=i.element("div"),o.innerHTML='<svg width="64px" height="64px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" stroke="#ffffff"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"><path d="M4.39254 16.2614C2.64803 13.1941 1.66074 9.71783 1.51646 6.15051C1.50127 5.77507 1.70918 5.42812 2.04153 5.25282L11.5335 0.246091C11.8254 0.0920859 12.1746 0.0920859 12.4665 0.246091L21.9585 5.25282C22.2908 5.42812 22.4987 5.77507 22.4835 6.15051C22.3393 9.71783 21.352 13.1941 19.6075 16.2614C17.8618 19.3307 15.4169 21.8869 12.4986 23.7001C12.1931 23.8899 11.8069 23.8899 11.5014 23.7001C8.58313 21.8869 6.13817 19.3307 4.39254 16.2614Z" fill="#fa9200"></path><path d="M8.25 12.75L11.25 15L17.25 9" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></g></svg>',s=i.space(),c=i.element("p"),u=i.space(),a&&a.c(),m=i.space(),i.attr(o,"class","IconVerification"),i.attr(c,"class","text"),i.attr(t,"class","CashierVerificationMessage"),i.toggle_class(t,"ShowAll",r[5])},m(g,k){i.insert(g,t,k),i.append(t,o),i.append(t,s),i.append(t,c),c.innerHTML=d,i.append(t,u),a&&a.m(t,null),i.append(t,m),l||(h=i.listen(t,"click",y),l=!0)},p(g,k){r=g,k[0]&16&&d!==(d=r[49]+"")&&(c.innerHTML=d),r[4].length>1&&r[51]===0?a?a.p(r,k):(a=N(r),a.c(),a.m(t,m)):a&&(a.d(1),a=null),k[0]&32&&i.toggle_class(t,"ShowAll",r[5])},d(g){g&&i.detach(t),a&&a.d(),l=!1,h()}}}function W(r){let t,o,s,c,d=r[9]("verification.video.how-to")+"",u,m,l;return{c(){t=i.element("div"),o=i.element("div"),o.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 448c-110.532 0-200-89.431-200-200 0-110.495 89.472-200 200-200 110.491 0 200 89.471 200 200 0 110.53-89.431 200-200 200zm107.244-255.2c0 67.052-72.421 68.084-72.421 92.863V300c0 6.627-5.373 12-12 12h-45.647c-6.627 0-12-5.373-12-12v-8.659c0-35.745 27.1-50.034 47.579-61.516 17.561-9.845 28.324-16.541 28.324-29.579 0-17.246-21.999-28.693-39.784-28.693-23.189 0-33.894 10.977-48.942 29.969-4.057 5.12-11.46 6.071-16.666 2.124l-27.824-21.098c-5.107-3.872-6.251-11.066-2.644-16.363C184.846 131.491 214.94 112 261.794 112c49.071 0 101.45 38.304 101.45 88.8zM298 368c0 23.159-18.841 42-42 42s-42-18.841-42-42 18.841-42 42-42 42 18.841 42 42z"></path></svg>',s=i.space(),c=i.element("div"),u=i.text(d),i.attr(o,"class","IconVideo"),i.attr(c,"class","CashierVerificationVideoLink"),i.toggle_class(c,"CashierVerificationVideoLinkDesktop",r[6]),i.attr(t,"class","CashierVerificationVideo")},m(h,a){i.insert(h,t,a),i.append(t,o),i.append(t,s),i.append(t,c),i.append(c,u),m||(l=i.listen(c,"click",r[20]),m=!0)},p(h,a){a[0]&512&&d!==(d=h[9]("verification.video.how-to")+"")&&i.set_data(u,d),a[0]&64&&i.toggle_class(c,"CashierVerificationVideoLinkDesktop",h[6])},d(h){h&&i.detach(t),m=!1,l()}}}function we(r){let t,o=r[4]&&j(r);return{c(){t=i.element("div"),o&&o.c(),i.attr(t,"class","CashierVerifications"),i.toggle_class(t,"CashierVerificationsDesktop",r[6])},m(s,c){i.insert(s,t,c),o&&o.m(t,null),r[21](t)},p(s,c){s[4]?o?o.p(s,c):(o=j(s),o.c(),o.m(t,null)):o&&(o.d(1),o=null),c[0]&64&&i.toggle_class(t,"CashierVerificationsDesktop",s[6])},i:i.noop,o:i.noop,d(s){s&&i.detach(t),o&&o.d(),r[21](null)}}}const ye="verification_explanation_video_widgets.MP4",ke="700px",_e="500px";function Ve(r,t,o){let s;i.component_subscribe(r,S.$format,e=>o(9,s=e)),I.dayjs.extend(I.utc);let{endpoint:c}=t,{lang:d="en"}=t,{translationurl:u=""}=t,{clientstyling:m=""}=t,{clientstylingurl:l=""}=t,{session:h=""}=t,{customerid:a=""}=t,{ismobileview:y=""}=t,g,k=new Set,E=new Set,D,C,A,O=!0,M=!0,T=!1,B="";var P;(function(e){e.Manual="Manual",e.ShuftiPro="ShuftiPro"})(P||(P={}));var L;(function(e){e.Requested="Requested"})(L||(L={}));var v;(function(e){e.Unknown="Unknown",e.Unverified="Unverified",e.InProgress="InProgress",e.Failed="Failed",e.Verified="Verified",e.Referred="Referred",e.True="True",e.False="False",e.AwaitingForResponse="AwaitingForResponse"})(v||(v={}));var b;(function(e){e.Unknown="Unknown",e.Documents="Documents",e.Age="Age",e.Pep="Pep",e.Sanction="Sanction",e.Aml="Aml",e.ProofOfAddress="ProofOfAddress",e.SourceOfWealth="SourceOfWealth",e.SocialMedia="SocialMedia",e.Biometric="Biometric"})(b||(b={}));const Y=[v.InProgress,v.Referred,v.AwaitingForResponse],Z=()=>{let e=u;if(e)return fetch(e).then(n=>n.json()).then(n=>{Object.keys(n).forEach(f=>{U(f,n[f])})}).catch(n=>{console.log(n)})};Object.keys(R).forEach(e=>{U(e,R[e])});const J=()=>{ge(d)},X=()=>{let e=document.createElement("style");e.innerHTML=m,g.appendChild(e)},Q=()=>{let e=new URL(l),n=document.createElement("style");fetch(e.href).then(f=>f.text()).then(f=>{n.innerHTML=f,setTimeout(()=>{g.appendChild(n)},1)})},$=()=>{const{merchantId:e,customerId:n}=ee();if(!e)return;const f=new URL(`${c}/v1/player/verification/GetKYCStatus`),p=new Headers;p.append("accept","application/json"),p.append("Content-Type","application/json"),p.append("X-Client-Request-Timestamp",I.dayjs.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));const _={method:"POST",headers:p,body:JSON.stringify({MerchantId:e,CustomerId:n,All:!1,AllParameters:!1})};fetch(f,_).then(V=>V.json()).then(V=>{o(17,C=V.StaticCdnUrl+"/cashier/operator-assets/"+e),D=ie(V.Verifications),D.VerificationStatuses.forEach(w=>{w.VerificationUrlType!=="Widget"&&k.add(w.Vendor)}),o(4,A=x())})},ee=()=>{let e=h.split(".")[1];if(e){let n=JSON.parse(atob(e));return{merchantId:n==null?void 0:n.mid,customerId:`${n==null?void 0:n.mid}~${a}`}}return{merchantId:null,customerId:null}},ie=e=>{var f;if(!e||!e.length)return{VerificationSummaryStatus:v.Unverified,VerificationStatuses:[]};const n=re(e);if(n&&n.length){const p=te(n);return{VerificationSummaryStatus:p.Status,VerificationUrl:(f=p.Flags)==null?void 0:f.DeferredUrlKey,VerificationStatuses:F(n,p.Status)}}else return{VerificationSummaryStatus:e.some(_=>_.Status===v.Failed)?v.Failed:v.Verified,VerificationStatuses:F(e,[v.Failed])}},te=e=>e.reduce((n,f)=>n?new Date(n)<new Date(f)?f:n:f,0),F=(e,n)=>e.filter(f=>n.includes(f.Status)).map(f=>{var p,_;return{Type:f.Type,Vendor:f.VendorName,VerificationDocuments:f.Documents?[...Object.values(f.Documents)]:[],VerificationUrlType:(p=f.Flags)==null?void 0:p.DeferredUrlTypeKey,VerificationUrl:(_=f.Flags)==null?void 0:_.DeferredUrlKey}}),re=e=>e.filter(n=>Y.includes(n.Status)?n.Flags&&n.Flags.DeferredUrlKey||oe(n)||ne(n):!1),oe=e=>{const n=e.Documents&&e.VendorName===P.Manual,f=Object.values(e.Documents).some(p=>p.Status===L.Requested);return n&&f},ne=e=>e.VendorName===P.ShuftiPro&&e.Status===v.Referred,x=()=>{switch(D.VerificationSummaryStatus){case v.InProgress:const e=[];return k.forEach(n=>{e.push(se(n))}),e;case v.Referred:return[s("verification.idenfy.referred-awaiting")];case v.Failed:return[s("verification.message.failed")]}},se=e=>{const n=D.VerificationStatuses.filter(f=>f.Vendor===e);if(e===P.ShuftiPro)return ae(n);{const f=s("verification.idenfy.link-name"),p={link:`<a href="${n[0].VerificationUrl}" target="_blank">${f}</a>`};return s("verification.idenfy.in-progress",{values:p})}},ae=e=>{const n=[],f={},p=[b.Biometric,b.Documents,b.ProofOfAddress];e.forEach(w=>{p.includes(w.Type)&&(n.push(w.Type),f[w.Type]=le(w,ce(w.Type)))});let _=n.every(w=>E.has(w)),V=`verification.shuftipro.in-progress.${n.sort().join(".")}`;return _?s("verification.shuftipro.validations-started"):s(V,{values:f})},le=(e,n)=>`<a class="verificationLink ${e.Type}" href=" ${e.VerificationUrl} " target="_blank">${n}</a>`,ce=e=>s(`verification.shuftipro.link-name.${e}`),q=(e,n)=>{if(e.stopPropagation(),e.target&&(e.target.href||e.target.closest("a"))){if(e.target.closest(".verificationLink")){const f=e.target.className.split(" ")[1];E.add(f),o(4,A=x())}return}n===0&&o(5,O=!O)},fe=()=>{o(6,M=y==="false")},de=()=>{o(8,B=C+"/"+d+"/"+ye);try{fetch(B,{method:"HEAD"}).then(e=>{o(7,T=e.ok)})}catch(e){o(7,T=!1)}},z=()=>{window.postMessage({type:"ShowCashierVideoModal",details:M?ke:_e},window.location.href)},ue=(e,n)=>q(n,e),he=(e,n)=>q(n,e),me=()=>z();function pe(e){i.binding_callbacks[e?"unshift":"push"](()=>{g=e,o(3,g)})}return r.$$set=e=>{"endpoint"in e&&o(12,c=e.endpoint),"lang"in e&&o(13,d=e.lang),"translationurl"in e&&o(14,u=e.translationurl),"clientstyling"in e&&o(0,m=e.clientstyling),"clientstylingurl"in e&&o(1,l=e.clientstylingurl),"session"in e&&o(15,h=e.session),"customerid"in e&&o(16,a=e.customerid),"ismobileview"in e&&o(2,y=e.ismobileview)},r.$$.update=()=>{r.$$.dirty[0]&8192&&d&&J(),r.$$.dirty[0]&36864&&c&&h&&$(),r.$$.dirty[0]&16384&&u&&Z(),r.$$.dirty[0]&9&&m&&g&&X(),r.$$.dirty[0]&10&&l&&g&&Q(),r.$$.dirty[0]&4&&y&&fe(),r.$$.dirty[0]&131072&&C&&de()},[m,l,y,g,A,O,M,T,B,s,q,z,c,d,u,h,a,C,ue,he,me,pe]}class G extends i.SvelteComponent{constructor(t){super(),i.init(this,t,Ve,we,i.safe_not_equal,{endpoint:12,lang:13,translationurl:14,clientstyling:0,clientstylingurl:1,session:15,customerid:16,ismobileview:2},ve,[-1,-1])}get endpoint(){return this.$$.ctx[12]}set endpoint(t){this.$$set({endpoint:t}),i.flush()}get lang(){return this.$$.ctx[13]}set lang(t){this.$$set({lang:t}),i.flush()}get translationurl(){return this.$$.ctx[14]}set translationurl(t){this.$$set({translationurl:t}),i.flush()}get clientstyling(){return this.$$.ctx[0]}set clientstyling(t){this.$$set({clientstyling:t}),i.flush()}get clientstylingurl(){return this.$$.ctx[1]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),i.flush()}get session(){return this.$$.ctx[15]}set session(t){this.$$set({session:t}),i.flush()}get customerid(){return this.$$.ctx[16]}set customerid(t){this.$$set({customerid:t}),i.flush()}get ismobileview(){return this.$$.ctx[2]}set ismobileview(t){this.$$set({ismobileview:t}),i.flush()}}i.create_custom_element(G,{endpoint:{},lang:{},translationurl:{},clientstyling:{},clientstylingurl:{},session:{},customerid:{},ismobileview:{}},[],[],!0);exports.default=G;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./CashierConfirmModal-DMmJumcl.cjs"),A=require("./CashierError-BD3PpAT9.cjs"),S=require("./CashierMethodDetails-lGOSlmya.cjs");function j(r,t){A.addMessages(r,t)}function we(r){A.init({fallbackLocale:"en"}),A.$locale.set(r)}const H={en:{"verification.video.how-to":"How to verify yourself","verification.idenfy.referred-awaiting":"ID verification is in progress. We will inform you as soon as verification is completed and you can withdraw money back","verification.message.failed":"We apologize, but we were unable to verify your account. Please contact support team","verification.idenfy.link-name":"link","verification.idenfy.in-progress":"To withdraw funds to your account you are required to pass user verification. Please have your ID ready and follow the {link} to start verification","verification.shuftipro.in-progress.Biometric":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification.","verification.shuftipro.in-progress.Biometric.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {Documents} verification.","verification.shuftipro.in-progress.Biometric.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification, {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Biometric.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification.","verification.shuftipro.in-progress.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {ProofOfAddress} verification.","verification.shuftipro.link-name.Biometric":"Biometric","verification.shuftipro.link-name.Documents":"Documents","verification.shuftipro.link-name.ProofOfAddress":"Proof Of Address","verification.shuftipro.validations-started":"After completing verification, please proceed with the transaction"},tr:{"verification.video.how-to":"Kimlik doğrulama nasıl yapılır","verification.idenfy.referred-awaiting":"Kimlik doğrulaması işlemde. Doğrulama tamamlandığında size haber vereceğiz","verification.message.failed":"Döküman doğrulama başarısız, hesabınız doğrulanamadı","verification.idenfy.link-name":"link","verification.idenfy.in-progress":"Hesabınızdan çekim yapabilmek için kullanıcı doğrulaması gerekiyor. Lütfen kimliğinizi hazır edin ve {link} adresinden doğrulamayı başlatın","verification.shuftipro.in-progress.Biometric":"İşlemi gerçekleştirmek için kullanıcı doğrulamasını geçmeniz gerekmektedir. Doğrulamayı başlatmak için Lütfen linke tıklayın {Biometric}","verification.shuftipro.in-progress.Biometric.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {Documents} verification.","verification.shuftipro.in-progress.Biometric.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification, {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Biometric.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification.","verification.shuftipro.in-progress.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {ProofOfAddress} verification.","verification.shuftipro.link-name.Biometric":"Doğrulama Yap","verification.shuftipro.link-name.Documents":"Documents","verification.shuftipro.link-name.ProofOfAddress":"Proof Of Address","verification.shuftipro.validations-started":"Lütfen Doğrulamayı tamamladıktan sonra işleme devam ediniz"},hr:{"verification.video.how-to":"How to verify yourself","verification.idenfy.referred-awaiting":"ID verification is in progress. We will inform you as soon as verification is completed and you can withdraw money back","verification.message.failed":"We apologize, but we were unable to verify your account. Please contact support team","verification.idenfy.link-name":"link","verification.idenfy.in-progress":"To withdraw funds to your account you are required to pass user verification. Please have your ID ready and follow the {link} to start verification","verification.shuftipro.in-progress.Biometric":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification.","verification.shuftipro.in-progress.Biometric.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {Documents} verification.","verification.shuftipro.in-progress.Biometric.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification, {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Biometric.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification.","verification.shuftipro.in-progress.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {ProofOfAddress} verification.","verification.shuftipro.link-name.Biometric":"Biometric","verification.shuftipro.link-name.Documents":"Documents","verification.shuftipro.link-name.ProofOfAddress":"Proof Of Address","verification.shuftipro.validations-started":"After completing verification, please proceed with the transaction"}};if(typeof window!="undefined"){let r=function(t){return function(...o){try{return t.apply(this,o)}catch(a){if(a instanceof DOMException&&a.message.includes("has already been used with this registry")||a.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw a}}};customElements.define=r(customElements.define),Promise.resolve().then(()=>require("./CashierVideoModal-BZg_b6bd.cjs")).then(({default:t})=>{!customElements.get("cashier-video-modal")&&customElements.define("cashier-video-modal",t.element)})}function ye(r){i.append_styles(r,"svelte-1emynn4","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;-webkit-tap-highlight-color:transparent}.CashierVerifications{box-shadow:0 0 4px var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1))}.CashierVerifications.CashierVerificationsDesktop{border-radius:var(--mmw--border-radius-medium-plus, 6px);overflow:hidden}.CashierVerifications.CashierVerificationsDesktop:has(.CashierVerificationMessage){margin-bottom:var(--emw--spacing-small, 12px)}.CashierVerificationsWrapper{display:flex;flex-direction:column;width:100%}.IconVerification{width:30px;display:flex}.CashierVerificationMessage{display:flex;align-items:center;box-sizing:border-box;background:var(--emw--color-gray-50, #F7F8FA);border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);padding:0 var(--emw--spacing-small, 12px);transition:0.5s;max-height:500px}.CashierVerificationMessage:first-child{transition:none;cursor:pointer}.CashierVerificationMessage:first-child:hover{background:linear-gradient(0, var(--emw--color-gray-50, #F7F8FA) 0%, var(--emw--color-white, #fff) 100%)}.CashierVerificationMessage:not(.ShowAll):not(:first-child){max-height:0;overflow:hidden}.CashierVerificationMessage:hover .CashierVerificationChevron svg path{opacity:1}svg{height:20px}svg .IconColor{fill:var(--emw--color-warning, #ec9109)}p{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-small, 14px);font-family:inherit;line-height:120%;margin:var(--emw--spacing-small, 12px)}.CashierVerificationsDesktop p{font-size:var(--emw--font-size-medium, 16px)}.text{word-break:break-word}.CashierVerificationChevron{cursor:pointer;margin-left:auto}.CashierVerificationChevron svg{transition:0.25s}.CashierVerificationChevron svg path{fill:var(--mmw--color-grey-290, #666);opacity:0.5}.CashierVerificationChevron:hover svg path{opacity:1}.ShowAll .CashierVerificationChevron svg{-o-transform:rotate(180deg);-ms-transform:rotate(180deg);-moz-transform:rotate(180deg);-webkit-transform:rotate(180deg);transform:rotate(180deg)}.CashierVerificationVideo{display:flex;width:100%;align-items:center;box-sizing:border-box;background:var(--emw--color-gray-50, #F7F8FA);border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);padding:0 var(--emw--spacing-small, 12px);transition:0.5s;max-height:500px}.IconVideo{width:30px;display:flex;justify-content:center}.CashierVerificationVideoLink{cursor:pointer;color:var(--mmw--color-grey-10, #111);font-family:inherit;font-size:var(--emw--font-size-small, 14px);line-height:120%;margin:var(--emw--spacing-small, 12px);text-decoration:underline}.CashierVerificationVideoLinkDesktop{font-size:var(--emw--font-size-medium, 16px)}")}function N(r,t,o){const a=r.slice();return a[51]=t[o],a[53]=o,a}function W(r){let t,o,a,c,u=i.ensure_array_like(r[4]),d=[];for(let l=0;l<u.length;l+=1)d[l]=Y(N(r,u,l));let m=r[7]&&G(r);return{c(){t=i.element("div");for(let l=0;l<d.length;l+=1)d[l].c();o=i.space(),m&&m.c(),a=i.space(),c=i.element("cashier-video-modal"),i.attr(t,"class","CashierVerificationsWrapper"),i.set_custom_element_data(c,"clientstylingurl",r[1]),i.set_custom_element_data(c,"clientstyling",r[0]),i.set_custom_element_data(c,"ismobileview",r[2]),i.set_custom_element_data(c,"videosrc",r[8])},m(l,h){i.insert(l,t,h);for(let s=0;s<d.length;s+=1)d[s]&&d[s].m(t,null);i.insert(l,o,h),m&&m.m(l,h),i.insert(l,a,h),i.insert(l,c,h)},p(l,h){if(h[0]&1072){u=i.ensure_array_like(l[4]);let s;for(s=0;s<u.length;s+=1){const k=N(l,u,s);d[s]?d[s].p(k,h):(d[s]=Y(k),d[s].c(),d[s].m(t,null))}for(;s<d.length;s+=1)d[s].d(1);d.length=u.length}l[7]?m?m.p(l,h):(m=G(l),m.c(),m.m(a.parentNode,a)):m&&(m.d(1),m=null),h[0]&2&&i.set_custom_element_data(c,"clientstylingurl",l[1]),h[0]&1&&i.set_custom_element_data(c,"clientstyling",l[0]),h[0]&4&&i.set_custom_element_data(c,"ismobileview",l[2]),h[0]&256&&i.set_custom_element_data(c,"videosrc",l[8])},d(l){l&&(i.detach(t),i.detach(o),i.detach(a),i.detach(c)),i.destroy_each(d,l),m&&m.d(l)}}}function K(r){let t,o,a;function c(...u){return r[18](r[53],...u)}return{c(){t=i.element("span"),t.innerHTML='<svg width="25px" height="25px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1ZM8.70711 9.79289C8.31658 9.40237 7.68342 9.40237 7.29289 9.79289C6.90237 10.1834 6.90237 10.8166 7.29289 11.2071L11.2929 15.2071C11.6834 15.5976 12.3166 15.5976 12.7071 15.2071L16.7071 11.2071C17.0976 10.8166 17.0976 10.1834 16.7071 9.79289C16.3166 9.40237 15.6834 9.40237 15.2929 9.79289L12 13.0858L8.70711 9.79289Z" fill="#000000"></path></svg>',i.attr(t,"class","CashierVerificationChevron")},m(u,d){i.insert(u,t,d),o||(a=i.listen(t,"click",c),o=!0)},p(u,d){r=u},d(u){u&&i.detach(t),o=!1,a()}}}function Y(r){let t,o,a,c,u=r[51]+"",d,m,l,h,s=r[4].length>1&&r[53]===0&&K(r);function k(...w){return r[19](r[53],...w)}return{c(){t=i.element("div"),o=i.element("div"),o.innerHTML='<svg width="64px" height="64px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" stroke="#ffffff"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"><path d="M4.39254 16.2614C2.64803 13.1941 1.66074 9.71783 1.51646 6.15051C1.50127 5.77507 1.70918 5.42812 2.04153 5.25282L11.5335 0.246091C11.8254 0.0920859 12.1746 0.0920859 12.4665 0.246091L21.9585 5.25282C22.2908 5.42812 22.4987 5.77507 22.4835 6.15051C22.3393 9.71783 21.352 13.1941 19.6075 16.2614C17.8618 19.3307 15.4169 21.8869 12.4986 23.7001C12.1931 23.8899 11.8069 23.8899 11.5014 23.7001C8.58313 21.8869 6.13817 19.3307 4.39254 16.2614Z" fill="#fa9200"></path><path d="M8.25 12.75L11.25 15L17.25 9" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></g></svg>',a=i.space(),c=i.element("p"),d=i.space(),s&&s.c(),m=i.space(),i.attr(o,"class","IconVerification"),i.attr(c,"class","text"),i.attr(t,"class","CashierVerificationMessage"),i.toggle_class(t,"ShowAll",r[5])},m(w,v){i.insert(w,t,v),i.append(t,o),i.append(t,a),i.append(t,c),c.innerHTML=u,i.append(t,d),s&&s.m(t,null),i.append(t,m),l||(h=i.listen(t,"click",k),l=!0)},p(w,v){r=w,v[0]&16&&u!==(u=r[51]+"")&&(c.innerHTML=u),r[4].length>1&&r[53]===0?s?s.p(r,v):(s=K(r),s.c(),s.m(t,m)):s&&(s.d(1),s=null),v[0]&32&&i.toggle_class(t,"ShowAll",r[5])},d(w){w&&i.detach(t),s&&s.d(),l=!1,h()}}}function G(r){let t,o,a,c,u=r[9]("verification.video.how-to")+"",d,m,l;return{c(){t=i.element("div"),o=i.element("div"),o.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 448c-110.532 0-200-89.431-200-200 0-110.495 89.472-200 200-200 110.491 0 200 89.471 200 200 0 110.53-89.431 200-200 200zm107.244-255.2c0 67.052-72.421 68.084-72.421 92.863V300c0 6.627-5.373 12-12 12h-45.647c-6.627 0-12-5.373-12-12v-8.659c0-35.745 27.1-50.034 47.579-61.516 17.561-9.845 28.324-16.541 28.324-29.579 0-17.246-21.999-28.693-39.784-28.693-23.189 0-33.894 10.977-48.942 29.969-4.057 5.12-11.46 6.071-16.666 2.124l-27.824-21.098c-5.107-3.872-6.251-11.066-2.644-16.363C184.846 131.491 214.94 112 261.794 112c49.071 0 101.45 38.304 101.45 88.8zM298 368c0 23.159-18.841 42-42 42s-42-18.841-42-42 18.841-42 42-42 42 18.841 42 42z"></path></svg>',a=i.space(),c=i.element("div"),d=i.text(u),i.attr(o,"class","IconVideo"),i.attr(c,"class","CashierVerificationVideoLink"),i.toggle_class(c,"CashierVerificationVideoLinkDesktop",r[6]),i.attr(t,"class","CashierVerificationVideo")},m(h,s){i.insert(h,t,s),i.append(t,o),i.append(t,a),i.append(t,c),i.append(c,d),m||(l=i.listen(c,"click",r[20]),m=!0)},p(h,s){s[0]&512&&u!==(u=h[9]("verification.video.how-to")+"")&&i.set_data(d,u),s[0]&64&&i.toggle_class(c,"CashierVerificationVideoLinkDesktop",h[6])},d(h){h&&i.detach(t),m=!1,l()}}}function ke(r){let t,o=r[4]&&W(r);return{c(){t=i.element("div"),o&&o.c(),i.attr(t,"class","CashierVerifications"),i.toggle_class(t,"CashierVerificationsDesktop",r[6])},m(a,c){i.insert(a,t,c),o&&o.m(t,null),r[21](t)},p(a,c){a[4]?o?o.p(a,c):(o=W(a),o.c(),o.m(t,null)):o&&(o.d(1),o=null),c[0]&64&&i.toggle_class(t,"CashierVerificationsDesktop",a[6])},i:i.noop,o:i.noop,d(a){a&&i.detach(t),o&&o.d(),r[21](null)}}}const _e="verification_explanation_video_widgets.MP4";function Pe(r,t,o){let a,c;i.component_subscribe(r,A.$format,e=>o(9,a=e)),i.component_subscribe(r,S.xPaymentSessionToken,e=>o(27,c=e)),S.dayjs.extend(S.utc);let{endpoint:u}=t,{lang:d="en"}=t,{translationurl:m=""}=t,{clientstyling:l=""}=t,{clientstylingurl:h=""}=t,{session:s=""}=t,{customerid:k=""}=t,{ismobileview:w=""}=t,v,F=new Set,x=new Set,D,C,O,M=!0,I=!0,T=!1,B="";var V;(function(e){e.Manual="Manual",e.ShuftiPro="ShuftiPro"})(V||(V={}));var L;(function(e){e.Requested="Requested"})(L||(L={}));var g;(function(e){e.Unknown="Unknown",e.Unverified="Unverified",e.InProgress="InProgress",e.Failed="Failed",e.Verified="Verified",e.Referred="Referred",e.True="True",e.False="False",e.AwaitingForResponse="AwaitingForResponse"})(g||(g={}));var b;(function(e){e.Unknown="Unknown",e.Documents="Documents",e.Age="Age",e.Pep="Pep",e.Sanction="Sanction",e.Aml="Aml",e.ProofOfAddress="ProofOfAddress",e.SourceOfWealth="SourceOfWealth",e.SocialMedia="SocialMedia",e.Biometric="Biometric"})(b||(b={}));const J=[g.InProgress,g.Referred,g.AwaitingForResponse],X=()=>{let e=m;if(e)return fetch(e).then(n=>n.json()).then(n=>{Object.keys(n).forEach(f=>{j(f,n[f])})}).catch(n=>{console.log(n)})};Object.keys(H).forEach(e=>{j(e,H[e])});const Q=()=>{we(d)},$=()=>{let e=document.createElement("style");e.innerHTML=l,v.appendChild(e)},ee=()=>{let e=new URL(h),n=document.createElement("style");fetch(e.href).then(f=>f.text()).then(f=>{n.innerHTML=f,setTimeout(()=>{v.appendChild(n)},1)})},z=()=>{const{merchantId:e,customerId:n}=te();if(!e)return;const f=new URL(`${u}/v1/player/verification/GetKYCStatus`),p=new Headers;p.append("accept","application/json"),p.append("Content-Type","application/json"),p.append("X-Client-Request-Timestamp",S.dayjs.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));const _={method:"POST",headers:p,body:JSON.stringify({MerchantId:e,CustomerId:n,All:!1,AllParameters:!1})};fetch(f,_).then(P=>P.json()).then(P=>{o(17,C=P.StaticCdnUrl+"/cashier/operator-assets/"+e),D=re(P.Verifications),D.VerificationStatuses.forEach(y=>{y.VerificationUrlType!=="Widget"&&F.add(y.Vendor)}),o(4,O=U())})},ie=()=>{c&&z()},te=()=>{let e=(s||c).split(".")[1];if(e){let n=JSON.parse(atob(e));return{merchantId:n==null?void 0:n.mid,customerId:`${n==null?void 0:n.mid}~${k}`}}return{merchantId:null,customerId:null}},re=e=>{var f;if(!e||!e.length)return{VerificationSummaryStatus:g.Unverified,VerificationStatuses:[]};const n=ne(e);if(n&&n.length){const p=oe(n);return{VerificationSummaryStatus:p.Status,VerificationUrl:(f=p.Flags)==null?void 0:f.DeferredUrlKey,VerificationStatuses:E(n,p.Status)}}else return{VerificationSummaryStatus:e.some(_=>_.Status===g.Failed)?g.Failed:g.Verified,VerificationStatuses:E(e,[g.Failed])}},oe=e=>e.reduce((n,f)=>n?new Date(n)<new Date(f)?f:n:f,0),E=(e,n)=>e.filter(f=>n.includes(f.Status)).map(f=>{var p,_;return{Type:f.Type,Vendor:f.VendorName,VerificationDocuments:f.Documents?[...Object.values(f.Documents)]:[],VerificationUrlType:(p=f.Flags)==null?void 0:p.DeferredUrlTypeKey,VerificationUrl:(_=f.Flags)==null?void 0:_.DeferredUrlKey}}),ne=e=>e.filter(n=>J.includes(n.Status)?n.Flags&&n.Flags.DeferredUrlKey||se(n)||ae(n):!1),se=e=>{const n=e.Documents&&e.VendorName===V.Manual,f=Object.values(e.Documents).some(p=>p.Status===L.Requested);return n&&f},ae=e=>e.VendorName===V.ShuftiPro&&e.Status===g.Referred,U=()=>{switch(D.VerificationSummaryStatus){case g.InProgress:const e=[];return F.forEach(n=>{e.push(le(n))}),e;case g.Referred:return[a("verification.idenfy.referred-awaiting")];case g.Failed:return[a("verification.message.failed")]}},le=e=>{const n=D.VerificationStatuses.filter(f=>f.Vendor===e);if(e===V.ShuftiPro)return ce(n);{const f=a("verification.idenfy.link-name"),p={link:`<a href="${n[0].VerificationUrl}" target="_blank">${f}</a>`};return a("verification.idenfy.in-progress",{values:p})}},ce=e=>{const n=[],f={},p=[b.Biometric,b.Documents,b.ProofOfAddress];e.forEach(y=>{p.includes(y.Type)&&(n.push(y.Type),f[y.Type]=fe(y,de(y.Type)))});let _=n.every(y=>x.has(y)),P=`verification.shuftipro.in-progress.${n.sort().join(".")}`;return _?a("verification.shuftipro.validations-started"):a(P,{values:f})},fe=(e,n)=>`<a class="verificationLink ${e.Type}" href=" ${e.VerificationUrl} " target="_blank">${n}</a>`,de=e=>a(`verification.shuftipro.link-name.${e}`),q=(e,n)=>{if(e.stopPropagation(),e.target&&(e.target.href||e.target.closest("a"))){if(e.target.closest(".verificationLink")){const f=e.target.className.split(" ")[1];x.add(f),o(4,O=U())}return}n===0&&o(5,M=!M)},ue=()=>{o(6,I=w==="false")},he=()=>{o(8,B=C+"/"+d+"/"+_e);try{fetch(B,{method:"HEAD"}).then(e=>{o(7,T=e.ok)})}catch(e){o(7,T=!1)}},R=()=>{window.postMessage({type:"ShowCashierVideoModal"},window.location.href)},me=(e,n)=>q(n,e),pe=(e,n)=>q(n,e),ge=()=>R();function ve(e){i.binding_callbacks[e?"unshift":"push"](()=>{v=e,o(3,v)})}return r.$$set=e=>{"endpoint"in e&&o(12,u=e.endpoint),"lang"in e&&o(13,d=e.lang),"translationurl"in e&&o(14,m=e.translationurl),"clientstyling"in e&&o(0,l=e.clientstyling),"clientstylingurl"in e&&o(1,h=e.clientstylingurl),"session"in e&&o(15,s=e.session),"customerid"in e&&o(16,k=e.customerid),"ismobileview"in e&&o(2,w=e.ismobileview)},r.$$.update=()=>{r.$$.dirty[0]&8192&&d&&Q(),r.$$.dirty[0]&36864&&u&&s&&z(),r.$$.dirty[0]&36864&&u&&!s&&ie(),r.$$.dirty[0]&16384&&m&&X(),r.$$.dirty[0]&9&&l&&v&&$(),r.$$.dirty[0]&10&&h&&v&&ee(),r.$$.dirty[0]&4&&w&&ue(),r.$$.dirty[0]&131072&&C&&he()},[l,h,w,v,O,M,I,T,B,a,q,R,u,d,m,s,k,C,me,pe,ge,ve]}class Z extends i.SvelteComponent{constructor(t){super(),i.init(this,t,Pe,ke,i.safe_not_equal,{endpoint:12,lang:13,translationurl:14,clientstyling:0,clientstylingurl:1,session:15,customerid:16,ismobileview:2},ye,[-1,-1])}get endpoint(){return this.$$.ctx[12]}set endpoint(t){this.$$set({endpoint:t}),i.flush()}get lang(){return this.$$.ctx[13]}set lang(t){this.$$set({lang:t}),i.flush()}get translationurl(){return this.$$.ctx[14]}set translationurl(t){this.$$set({translationurl:t}),i.flush()}get clientstyling(){return this.$$.ctx[0]}set clientstyling(t){this.$$set({clientstyling:t}),i.flush()}get clientstylingurl(){return this.$$.ctx[1]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),i.flush()}get session(){return this.$$.ctx[15]}set session(t){this.$$set({session:t}),i.flush()}get customerid(){return this.$$.ctx[16]}set customerid(t){this.$$set({customerid:t}),i.flush()}get ismobileview(){return this.$$.ctx[2]}set ismobileview(t){this.$$set({ismobileview:t}),i.flush()}}i.create_custom_element(Z,{endpoint:{},lang:{},translationurl:{},clientstyling:{},clientstylingurl:{},session:{},customerid:{},ismobileview:{}},[],[],!0);exports.default=Z;
|