@everymatrix/cashier-page 1.72.10 → 1.72.11
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-untxGhsx.js → CashierConfirmModal-B74OQHQ9.js} +2 -2
- package/components/{CashierConfirmModal-4RYp7Eiq.js → CashierConfirmModal-CoKn35XS.js} +2 -2
- package/components/{CashierError-Zu3Whx-d.js → CashierError-2HPZABjH.js} +1 -1
- package/components/{CashierError-yts9rF-i.js → CashierError-XLiq37Gb.js} +1 -1
- package/components/{CashierHeader-C9V5_NVw.js → CashierHeader-7VZP6iJ4.js} +2 -2
- package/components/{CashierHeader-BX6LLGb8.js → CashierHeader-DngaYyVX.js} +2 -2
- package/components/{CashierIframeRedirect-BIMJNSib.js → CashierIframeRedirect-CWlqlioy.js} +4 -4
- package/components/{CashierIframeRedirect-3Ttb1Wdk.js → CashierIframeRedirect-OhFXx9eT.js} +4 -4
- package/components/{CashierMethodDetails-D12VQPm-.js → CashierMethodDetails-CSNVGtP1.js} +2540 -2326
- package/components/{CashierMethodDetails-B9KkvJC-.js → CashierMethodDetails-ClSlkZ3o.js} +2529 -2315
- package/components/CashierMethodDetails-Dqsnd7vM.cjs +84 -0
- package/components/{CashierMethodsList-BcAeekW7.js → CashierMethodsList-BfQNaumL.js} +3 -3
- package/components/{CashierMethodsList-Qv3twYYN.js → CashierMethodsList-LmvkPxSa.js} +3 -3
- package/components/{CashierMethodsList-C6C77Qfn.cjs → CashierMethodsList-ywuoqFGQ.cjs} +1 -1
- package/components/{CashierModal-BrwIBn9a.js → CashierModal-DEizrxpW.js} +1 -1
- package/components/{CashierModal-ZfKvGxFq.js → CashierModal-DOsaTi8Y.js} +1 -1
- package/components/{CashierNotifications-C48iLynX.js → CashierNotifications-CFf_s8nU.js} +1 -1
- package/components/{CashierNotifications-dn6rnyK_.js → CashierNotifications-Dzg9yHJZ.js} +1 -1
- package/components/{CashierPage-CWlmMwGn.cjs → CashierPage-BmsEDX9Y.cjs} +1 -1
- package/components/{CashierPage-CP_EFo8B.js → CashierPage-CGC-umsd.js} +9 -9
- package/components/{CashierPage-gyrpEiR_.js → CashierPage-DmlPvmOQ.js} +9 -9
- package/components/{CashierReceiptPage-DxppjtAL.cjs → CashierReceiptPage-Cu1aWc3N.cjs} +1 -1
- package/components/{CashierReceiptPage-DperzAqu.js → CashierReceiptPage-DG0fBolk.js} +3 -3
- package/components/{CashierReceiptPage-CKUYRnW0.js → CashierReceiptPage-vAsE2uyR.js} +3 -3
- package/components/{CashierSessionExpirationModal-Drdat9I5.js → CashierSessionExpirationModal-BkQXNe6G.js} +4 -4
- package/components/{CashierSessionExpirationModal-DGSDUlz7.cjs → CashierSessionExpirationModal-CQhaR0aa.cjs} +1 -1
- package/components/{CashierSessionExpirationModal-DVQCZYO4.js → CashierSessionExpirationModal-DvqT7E9Q.js} +4 -4
- package/components/{CashierSpinner-y6HodxHT.js → CashierSpinner-CM51pIxi.js} +1 -1
- package/components/{CashierSpinner-BAfTKICK.js → CashierSpinner-CcqU8K6D.js} +1 -1
- package/components/{CashierTransactionHistory-BeL_3-lr.js → CashierTransactionHistory-BE4oxo_0.js} +31 -31
- package/components/{CashierTransactionHistory-CxSGSzuh.cjs → CashierTransactionHistory-CzeWC86S.cjs} +1 -1
- package/components/{CashierTransactionHistory-CV_8giHq.js → CashierTransactionHistory-nSVkLMu-.js} +31 -31
- package/components/{CashierVerifications-D9JQi4SY.cjs → CashierVerifications-DGRrYSIZ.cjs} +1 -1
- package/components/{CashierVerifications-BRgU_lsn.js → CashierVerifications-DZs02ViZ.js} +4 -4
- package/components/{CashierVerifications-DAA16RH7.js → CashierVerifications-sXD1OWp1.js} +4 -4
- package/components/{CashierVideoModal-CVDvqrcy.js → CashierVideoModal-Bi2G2l7B.js} +15 -15
- package/components/{CashierVideoModal-DHNu0BQz.js → CashierVideoModal-Q13et8h2.js} +15 -15
- package/es2015/cashier-page.cjs +1 -1
- package/es2015/cashier-page.js +1 -1
- package/esnext/cashier-page.js +1 -1
- package/package.json +1 -1
- package/components/CashierMethodDetails-qw8XeRB-.cjs +0 -84
package/components/{CashierTransactionHistory-CxSGSzuh.cjs → CashierTransactionHistory-CzeWC86S.cjs}
RENAMED
|
@@ -1 +1 @@
|
|
|
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-DfpdiheS.cjs"),X=require("./CashierMethodDetails-qw8XeRB-.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 s=document.createElement("style");s.innerHTML=e,i.appendChild(s)}}function V(i,e){const s=new URL(e);fetch(s.href).then(a=>a.text()).then(a=>{const r=document.createElement("style");r.innerHTML=a,i&&i.appendChild(r)}).catch(a=>{console.error("There was an error while trying to load client styling from URL",a)})}function K(i){t.append_styles(i,"svelte-1kx4sff",".svelte-1kx4sff.svelte-1kx4sff,.svelte-1kx4sff.svelte-1kx4sff::before,.svelte-1kx4sff.svelte-1kx4sff::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-style:inherit}.CopyTooltip.svelte-1kx4sff.svelte-1kx4sff{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-1kx4sff.svelte-1kx4sff{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-1kx4sff table.svelte-1kx4sff{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-1kx4sff table.svelte-1kx4sff:not(:last-child){margin-bottom:var(--emw--spacing-large, 20px)}.CashierTransactionHistory.svelte-1kx4sff thead tr.svelte-1kx4sff{border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);color:var(--mmw--color-grey-10, #111);height:50px}.CashierTransactionHistory.svelte-1kx4sff tbody tr.svelte-1kx4sff{color:var(--mmw--color-grey-290, #666)}.CashierTransactionHistory.svelte-1kx4sff td.svelte-1kx4sff{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-1kx4sff td:last-child .CashierTransactionHistoryStatusText.svelte-1kx4sff{width:calc(100% - var(--emw--spacing-2x-small-plus, 6px) * 3 - 5px);display:block}.CashierTransactionHistory.svelte-1kx4sff tr.svelte-1kx4sff{position:relative}@container transaction-history (width < 750px){.CashierTransactionHistory.svelte-1kx4sff .CopyTooltip.svelte-1kx4sff{width:100%}.CashierTransactionHistory.svelte-1kx4sff .CashierTransactionId.svelte-1kx4sff{max-width:135px}.CashierTransactionHistory.svelte-1kx4sff td.svelte-1kx4sff{padding:0 var(--emw--spacing-small, 12px) 0 var(--emw--spacing-small, 12px)}}@container transaction-history (width < 475px){.CashierTransactionHistory.svelte-1kx4sff .CashierTransactionHistoryWrapper.svelte-1kx4sff{padding:0 var(--emw--spacing-2x-small-plus, 6px)}.CashierTransactionHistory.svelte-1kx4sff td.svelte-1kx4sff{padding:0 var(--emw--spacing-2x-small-plus, 6px)}.CashierTransactionHistory.svelte-1kx4sff td.svelte-1kx4sff:first-child{max-width:60px}}@container transaction-history (width < 350px){.CashierTransactionHistory.svelte-1kx4sff table.svelte-1kx4sff{table-layout:fixed}.CashierTransactionHistory.svelte-1kx4sff table td.svelte-1kx4sff{padding:0 0 0 var(--emw--spacing-small, 5px)}}.CashierTransactionHistoryWrapper.svelte-1kx4sff.svelte-1kx4sff{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-1kx4sff.svelte-1kx4sff{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-1kx4sff.svelte-1kx4sff{cursor:pointer;-webkit-user-select:none;-ms-user-select:none;user-select:none}.CashierTransactionId.svelte-1kx4sff.svelte-1kx4sff:hover{background-color:var(--emw--color-gray-50, #F7F8FA)}.CashierTransactionHistoryStatus.svelte-1kx4sff.svelte-1kx4sff{display:flex;gap:5px}.CashierTransactionHistoryStatusText.svelte-1kx4sff.svelte-1kx4sff{line-height:calc(var(--emw--font-size-medium, 16px) + 2px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.CashierTransactionHistoryContent.svelte-1kx4sff.svelte-1kx4sff{width:100%;overflow:hidden}.CashierTransactionHistoryIcon.svelte-1kx4sff.svelte-1kx4sff{vertical-align:middle;height:var(--emw--font-size-medium, 16px);width:var(--emw--font-size-medium, 16px)}")}function O(i,e,s){const a=i.slice();return a[24]=e[s],a[26]=s,a}function W(i){let e,s,a,r=i[5]("transactionHistoryTitle")+"",o,d,f,v,w,y,h,b,z=i[5]("transactionIdTitle")+"",C,g,_,k=i[5]("transactionDateTitle")+"",H,S,I,F=i[5]("transactionTypeTitle")+"",j,R,A,T=i[5]("transactionStatusTitle")+"",m,n,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(),s=t.space(),a=t.element("h3"),o=t.text(r),d=t.space(),f=t.element("div"),v=t.element("div"),w=t.element("table"),y=t.element("thead"),h=t.element("tr"),b=t.element("td"),C=t.text(z),g=t.space(),_=t.element("td"),H=t.text(k),S=t.space(),I=t.element("td"),j=t.text(F),R=t.space(),A=t.element("td"),m=t.text(T),n=t.space(),l=t.element("tbody");for(let p=0;p<u.length;p+=1)u[p].c();t.attr(a,"class","CashierTransactionHistoryTitle svelte-1kx4sff"),t.attr(b,"class","svelte-1kx4sff"),t.attr(_,"class","svelte-1kx4sff"),t.attr(I,"class","svelte-1kx4sff"),t.attr(A,"class","svelte-1kx4sff"),t.attr(h,"class","svelte-1kx4sff"),t.attr(y,"class","svelte-1kx4sff"),t.attr(l,"class","svelte-1kx4sff"),t.attr(w,"class","svelte-1kx4sff"),t.attr(v,"class","CashierTransactionHistoryContent svelte-1kx4sff"),t.attr(f,"class","CashierTransactionHistoryWrapper svelte-1kx4sff"),t.attr(e,"class","CashierTransactionHistory svelte-1kx4sff")},m(p,D){t.insert(p,e,D),c&&c.m(e,null),t.append(e,s),t.append(e,a),t.append(a,o),t.append(e,d),t.append(e,f),t.append(f,v),t.append(v,w),t.append(w,y),t.append(y,h),t.append(h,b),t.append(b,C),t.append(h,g),t.append(h,_),t.append(_,H),t.append(h,S),t.append(h,I),t.append(I,j),t.append(h,R),t.append(h,A),t.append(A,m),t.append(w,n),t.append(w,l);for(let x=0;x<u.length;x+=1)u[x]&&u[x].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,s)):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&&k!==(k=p[5]("transactionDateTitle")+"")&&t.set_data(H,k),D&32&&F!==(F=p[5]("transactionTypeTitle")+"")&&t.set_data(j,F),D&32&&T!==(T=p[5]("transactionStatusTitle")+"")&&t.set_data(m,T),D&124){P=t.ensure_array_like(p[2]);let x;for(x=0;x<P.length;x+=1){const M=O(p,P,x);u[x]?u[x].p(M,D):(u[x]=q(M),u[x].c(),u[x].m(l,null))}for(;x<u.length;x+=1)u[x].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,s=i[5]("copyTransactionId")+"",a,r,o,d;return{c(){e=t.element("div"),a=t.text(s),t.attr(e,"class","CopyTooltip svelte-1kx4sff")},m(f,v){t.insert(f,e,v),t.append(e,a),d=!0},p(f,v){i=f,(!d||v&32)&&s!==(s=i[5]("copyTransactionId")+"")&&t.set_data(a,s)},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,s,a;return{c(){e=t.svg_element("svg"),s=t.svg_element("circle"),a=t.svg_element("path"),t.attr(s,"cx","12"),t.attr(s,"cy","12"),t.attr(s,"r","10"),t.attr(s,"stroke","#25bf00"),t.attr(s,"stroke-width","2"),t.attr(s,"class","svelte-1kx4sff"),t.attr(a,"d","M8 12L11 15L16 9"),t.attr(a,"stroke","#25bf00"),t.attr(a,"stroke-width","2"),t.attr(a,"stroke-linecap","round"),t.attr(a,"stroke-linejoin","round"),t.attr(a,"class","svelte-1kx4sff"),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-1kx4sff")},m(r,o){t.insert(r,e,o),t.append(e,s),t.append(e,a)},d(r){r&&t.detach(e)}}}function Z(i){let e,s,a,r;return{c(){e=t.svg_element("svg"),s=t.svg_element("circle"),a=t.svg_element("text"),r=t.text("R"),t.attr(s,"cx","12"),t.attr(s,"cy","12"),t.attr(s,"r","10"),t.attr(s,"stroke","#dd6617d4"),t.attr(s,"stroke-width","2"),t.attr(s,"class","svelte-1kx4sff"),t.attr(a,"x","50%"),t.attr(a,"y","54%"),t.attr(a,"text-anchor","middle"),t.attr(a,"dominant-baseline","middle"),t.attr(a,"font-size","14"),t.attr(a,"font-weight","bold"),t.attr(a,"fill","#dd6617d4"),t.attr(a,"font-family","Arial Rounded MT Bold, Arial, sans-serif"),t.attr(a,"class","svelte-1kx4sff"),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-1kx4sff")},m(o,d){t.insert(o,e,d),t.append(e,s),t.append(e,a),t.append(a,r)},d(o){o&&t.detach(e)}}}function $(i){let e,s,a;return{c(){e=t.svg_element("svg"),s=t.svg_element("circle"),a=t.svg_element("path"),t.attr(s,"cx","12"),t.attr(s,"cy","12"),t.attr(s,"r","10"),t.attr(s,"stroke","#f0a85f"),t.attr(s,"stroke-width","2"),t.attr(s,"class","svelte-1kx4sff"),t.attr(a,"d","M12 7V12L15 14"),t.attr(a,"stroke","#f0a85f"),t.attr(a,"stroke-width","2"),t.attr(a,"stroke-linecap","round"),t.attr(a,"stroke-linejoin","round"),t.attr(a,"class","svelte-1kx4sff"),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-1kx4sff")},m(r,o){t.insert(r,e,o),t.append(e,s),t.append(e,a)},d(r){r&&t.detach(e)}}}function tt(i){let e,s,a;return{c(){e=t.svg_element("svg"),s=t.svg_element("circle"),a=t.svg_element("path"),t.attr(s,"cx","12"),t.attr(s,"cy","12"),t.attr(s,"r","10"),t.attr(s,"stroke","#e76049"),t.attr(s,"stroke-width","2"),t.attr(s,"class","svelte-1kx4sff"),t.attr(a,"d","M9 9L15 15M15 9L9 15"),t.attr(a,"stroke","#e76049"),t.attr(a,"stroke-width","2"),t.attr(a,"stroke-linecap","round"),t.attr(a,"stroke-linejoin","round"),t.attr(a,"class","svelte-1kx4sff"),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-1kx4sff")},m(r,o){t.insert(r,e,o),t.append(e,s),t.append(e,a)},d(r){r&&t.detach(e)}}}function et(i){let e,s,a,r;return{c(){e=t.svg_element("svg"),s=t.svg_element("circle"),a=t.svg_element("text"),r=t.text("A"),t.attr(s,"cx","12"),t.attr(s,"cy","12"),t.attr(s,"r","10"),t.attr(s,"stroke","#32b398"),t.attr(s,"stroke-width","2"),t.attr(s,"class","svelte-1kx4sff"),t.attr(a,"x","50%"),t.attr(a,"y","54%"),t.attr(a,"text-anchor","middle"),t.attr(a,"dominant-baseline","middle"),t.attr(a,"font-size","14"),t.attr(a,"font-weight","bold"),t.attr(a,"fill","#32b398"),t.attr(a,"font-family","Arial Rounded MT Bold, Arial, sans-serif"),t.attr(a,"class","svelte-1kx4sff"),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-1kx4sff")},m(o,d){t.insert(o,e,d),t.append(e,s),t.append(e,a),t.append(a,r)},d(o){o&&t.detach(e)}}}function q(i){let e,s,a=i[24].Code+"",r,o,d,f=i[24].Date+"",v,w,y,h=i[5](`transactionType.${i[24].Type}`)+"",b,z,C,g,_,k,H,S=i[5](`transactionStatus.${i[24].Status}`)+"",I,F,j,R;function A(n,l){if(n[24].Status===n[4].Authorized)return et;if(n[24].Status===n[4].Failed)return tt;if(n[24].Status===n[4].Pending)return $;if(n[24].Status===n[4].Rejected)return Z;if(n[24].Status===n[4].Success)return Q}let T=A(i),m=T&&T(i);return{c(){e=t.element("tr"),s=t.element("td"),r=t.text(a),o=t.space(),d=t.element("td"),v=t.text(f),w=t.space(),y=t.element("td"),b=t.text(h),z=t.space(),C=t.element("td"),g=t.element("div"),_=t.element("span"),m&&m.c(),k=t.space(),H=t.element("span"),I=t.text(S),F=t.space(),t.attr(s,"class","CashierTransactionId svelte-1kx4sff"),t.toggle_class(s,"copied",i[3]),t.attr(d,"class","svelte-1kx4sff"),t.attr(y,"class","svelte-1kx4sff"),t.attr(_,"class","CashierTransactionHistoryIcon svelte-1kx4sff"),t.attr(H,"class","CashierTransactionHistoryStatusText svelte-1kx4sff"),t.attr(g,"class","CashierTransactionHistoryStatus svelte-1kx4sff"),t.attr(C,"class","svelte-1kx4sff"),t.attr(e,"class","svelte-1kx4sff")},m(n,l){t.insert(n,e,l),t.append(e,s),t.append(s,r),t.append(e,o),t.append(e,d),t.append(d,v),t.append(e,w),t.append(e,y),t.append(y,b),t.append(e,z),t.append(e,C),t.append(C,g),t.append(g,_),m&&m.m(_,null),t.append(g,k),t.append(g,H),t.append(H,I),t.append(e,F),j||(R=t.listen(s,"mousedown",i[15]),j=!0)},p(n,l){l&4&&a!==(a=n[24].Code+"")&&t.set_data(r,a),l&8&&t.toggle_class(s,"copied",n[3]),l&4&&f!==(f=n[24].Date+"")&&t.set_data(v,f),l&36&&h!==(h=n[5](`transactionType.${n[24].Type}`)+"")&&t.set_data(b,h),T!==(T=A(n))&&(m&&m.d(1),m=T&&T(n),m&&(m.c(),m.m(_,null))),l&36&&S!==(S=n[5](`transactionStatus.${n[24].Status}`)+"")&&t.set_data(I,S)},d(n){n&&t.detach(e),m&&m.d(),j=!1,R()}}}function st(i){let e,s=i[2].length&&W(i);return{c(){s&&s.c(),e=t.empty()},m(a,r){s&&s.m(a,r),t.insert(a,e,r)},p(a,[r]){a[2].length?s?s.p(a,r):(s=W(a),s.c(),s.m(e.parentNode,e)):s&&(s.d(1),s=null)},i:t.noop,o:t.noop,d(a){a&&t.detach(e),s&&s.d(a)}}}const at="DD.MM.YYYY";function nt(i,e,s){let a;t.component_subscribe(i,L.$format,n=>s(5,a=n));let{endpoint:r}=e,{session:o}=e,{lang:d="en"}=e,{customerid:f}=e,{clientstyling:v=""}=e,{clientstylingurl:w=""}=e,{translationurl:y}=e,{tooltipduration:h=1e3}=e,{txncount:b=3}=e,z=[],C=!1,g,_;var k;(function(n){n.Deposit="deposit",n.Withdraw="withdraw",n.Refund="refund",n.Unknown="unknown",n.TaxDeduction="taxDeduction"})(k||(k={}));const H=["Authorized","Success","Failed","Rejected","PendingApprovalStage1","PendingApprovalStage2","PendingApprovalStage3","PendingNotification","PendingOfflineNotification","PendingConfirmation"];var S;(function(n){n.Authorized="Authorized",n.Success="Success",n.Failed="Failed",n.Rejected="Rejected",n.Pending="Pending"})(S||(S={}));const I=()=>{let n=y;if(n)return fetch(n).then(l=>l.json()).then(l=>{Object.keys(l).forEach(c=>{E(c,l[c])})}).catch(l=>{console.log(l)})};Object.keys(U).forEach(n=>{E(n,U[n])});const F=()=>{G(d)},j=()=>{const n=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:b,page:0,fromDate:c,toDate:null,statuses:{[k.Deposit]:H,[k.Withdraw]:H,[k.Refund]:["Unknown"],[k.TaxDeduction]:["Unknown"],[k.Unknown]:["Unknown"]},calculateProfit:!1})};fetch(n,P).then(u=>u.json()).then(u=>{s(2,z=R((u==null?void 0:u.items)||[]))}).catch(u=>console.log(u))},R=n=>n.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(at),Status:c,Type:l.generalFields.type}})||[],A=n=>{const l=n.currentTarget;n.target===l&&navigator.clipboard.writeText(l.innerText).then(()=>{s(3,C=!0),clearTimeout(_),_=setTimeout(()=>{s(3,C=!1)},2e3)}).catch(c=>{console.error("Could not copy text: ",c)})},T=n=>A(n);function m(n){t.binding_callbacks[n?"unshift":"push"](()=>{g=n,s(1,g)})}return i.$$set=n=>{"endpoint"in n&&s(7,r=n.endpoint),"session"in n&&s(8,o=n.session),"lang"in n&&s(9,d=n.lang),"customerid"in n&&s(10,f=n.customerid),"clientstyling"in n&&s(11,v=n.clientstyling),"clientstylingurl"in n&&s(12,w=n.clientstylingurl),"translationurl"in n&&s(13,y=n.translationurl),"tooltipduration"in n&&s(0,h=n.tooltipduration),"txncount"in n&&s(14,b=n.txncount)},i.$$.update=()=>{i.$$.dirty&512&&d&&F(),i.$$.dirty&2050&&v&&g&&J(g,v),i.$$.dirty&4098&&w&&g&&V(g,w),i.$$.dirty&1920&&r&&o&&f&&d&&j(),i.$$.dirty&8192&&y&&I()},[h,g,z,C,S,a,A,r,o,d,f,v,w,y,b,T,m]}class Y extends t.SvelteComponent{constructor(e){super(),t.init(this,e,nt,st,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-DfpdiheS.cjs"),X=require("./CashierMethodDetails-Dqsnd7vM.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 s=document.createElement("style");s.innerHTML=e,i.appendChild(s)}}function V(i,e){const s=new URL(e);fetch(s.href).then(a=>a.text()).then(a=>{const r=document.createElement("style");r.innerHTML=a,i&&i.appendChild(r)}).catch(a=>{console.error("There was an error while trying to load client styling from URL",a)})}function K(i){t.append_styles(i,"svelte-1kx4sff",".svelte-1kx4sff.svelte-1kx4sff,.svelte-1kx4sff.svelte-1kx4sff::before,.svelte-1kx4sff.svelte-1kx4sff::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-style:inherit}.CopyTooltip.svelte-1kx4sff.svelte-1kx4sff{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-1kx4sff.svelte-1kx4sff{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-1kx4sff table.svelte-1kx4sff{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-1kx4sff table.svelte-1kx4sff:not(:last-child){margin-bottom:var(--emw--spacing-large, 20px)}.CashierTransactionHistory.svelte-1kx4sff thead tr.svelte-1kx4sff{border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);color:var(--mmw--color-grey-10, #111);height:50px}.CashierTransactionHistory.svelte-1kx4sff tbody tr.svelte-1kx4sff{color:var(--mmw--color-grey-290, #666)}.CashierTransactionHistory.svelte-1kx4sff td.svelte-1kx4sff{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-1kx4sff td:last-child .CashierTransactionHistoryStatusText.svelte-1kx4sff{width:calc(100% - var(--emw--spacing-2x-small-plus, 6px) * 3 - 5px);display:block}.CashierTransactionHistory.svelte-1kx4sff tr.svelte-1kx4sff{position:relative}@container transaction-history (width < 750px){.CashierTransactionHistory.svelte-1kx4sff .CopyTooltip.svelte-1kx4sff{width:100%}.CashierTransactionHistory.svelte-1kx4sff .CashierTransactionId.svelte-1kx4sff{max-width:135px}.CashierTransactionHistory.svelte-1kx4sff td.svelte-1kx4sff{padding:0 var(--emw--spacing-small, 12px) 0 var(--emw--spacing-small, 12px)}}@container transaction-history (width < 475px){.CashierTransactionHistory.svelte-1kx4sff .CashierTransactionHistoryWrapper.svelte-1kx4sff{padding:0 var(--emw--spacing-2x-small-plus, 6px)}.CashierTransactionHistory.svelte-1kx4sff td.svelte-1kx4sff{padding:0 var(--emw--spacing-2x-small-plus, 6px)}.CashierTransactionHistory.svelte-1kx4sff td.svelte-1kx4sff:first-child{max-width:60px}}@container transaction-history (width < 350px){.CashierTransactionHistory.svelte-1kx4sff table.svelte-1kx4sff{table-layout:fixed}.CashierTransactionHistory.svelte-1kx4sff table td.svelte-1kx4sff{padding:0 0 0 var(--emw--spacing-small, 5px)}}.CashierTransactionHistoryWrapper.svelte-1kx4sff.svelte-1kx4sff{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-1kx4sff.svelte-1kx4sff{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-1kx4sff.svelte-1kx4sff{cursor:pointer;-webkit-user-select:none;-ms-user-select:none;user-select:none}.CashierTransactionId.svelte-1kx4sff.svelte-1kx4sff:hover{background-color:var(--emw--color-gray-50, #F7F8FA)}.CashierTransactionHistoryStatus.svelte-1kx4sff.svelte-1kx4sff{display:flex;gap:5px}.CashierTransactionHistoryStatusText.svelte-1kx4sff.svelte-1kx4sff{line-height:calc(var(--emw--font-size-medium, 16px) + 2px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.CashierTransactionHistoryContent.svelte-1kx4sff.svelte-1kx4sff{width:100%;overflow:hidden}.CashierTransactionHistoryIcon.svelte-1kx4sff.svelte-1kx4sff{vertical-align:middle;height:var(--emw--font-size-medium, 16px);width:var(--emw--font-size-medium, 16px)}")}function O(i,e,s){const a=i.slice();return a[24]=e[s],a[26]=s,a}function W(i){let e,s,a,r=i[5]("transactionHistoryTitle")+"",o,d,f,v,w,y,h,b,z=i[5]("transactionIdTitle")+"",C,g,_,k=i[5]("transactionDateTitle")+"",H,S,I,F=i[5]("transactionTypeTitle")+"",j,R,A,T=i[5]("transactionStatusTitle")+"",m,n,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(),s=t.space(),a=t.element("h3"),o=t.text(r),d=t.space(),f=t.element("div"),v=t.element("div"),w=t.element("table"),y=t.element("thead"),h=t.element("tr"),b=t.element("td"),C=t.text(z),g=t.space(),_=t.element("td"),H=t.text(k),S=t.space(),I=t.element("td"),j=t.text(F),R=t.space(),A=t.element("td"),m=t.text(T),n=t.space(),l=t.element("tbody");for(let p=0;p<u.length;p+=1)u[p].c();t.attr(a,"class","CashierTransactionHistoryTitle svelte-1kx4sff"),t.attr(b,"class","svelte-1kx4sff"),t.attr(_,"class","svelte-1kx4sff"),t.attr(I,"class","svelte-1kx4sff"),t.attr(A,"class","svelte-1kx4sff"),t.attr(h,"class","svelte-1kx4sff"),t.attr(y,"class","svelte-1kx4sff"),t.attr(l,"class","svelte-1kx4sff"),t.attr(w,"class","svelte-1kx4sff"),t.attr(v,"class","CashierTransactionHistoryContent svelte-1kx4sff"),t.attr(f,"class","CashierTransactionHistoryWrapper svelte-1kx4sff"),t.attr(e,"class","CashierTransactionHistory svelte-1kx4sff")},m(p,D){t.insert(p,e,D),c&&c.m(e,null),t.append(e,s),t.append(e,a),t.append(a,o),t.append(e,d),t.append(e,f),t.append(f,v),t.append(v,w),t.append(w,y),t.append(y,h),t.append(h,b),t.append(b,C),t.append(h,g),t.append(h,_),t.append(_,H),t.append(h,S),t.append(h,I),t.append(I,j),t.append(h,R),t.append(h,A),t.append(A,m),t.append(w,n),t.append(w,l);for(let x=0;x<u.length;x+=1)u[x]&&u[x].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,s)):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&&k!==(k=p[5]("transactionDateTitle")+"")&&t.set_data(H,k),D&32&&F!==(F=p[5]("transactionTypeTitle")+"")&&t.set_data(j,F),D&32&&T!==(T=p[5]("transactionStatusTitle")+"")&&t.set_data(m,T),D&124){P=t.ensure_array_like(p[2]);let x;for(x=0;x<P.length;x+=1){const M=O(p,P,x);u[x]?u[x].p(M,D):(u[x]=q(M),u[x].c(),u[x].m(l,null))}for(;x<u.length;x+=1)u[x].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,s=i[5]("copyTransactionId")+"",a,r,o,d;return{c(){e=t.element("div"),a=t.text(s),t.attr(e,"class","CopyTooltip svelte-1kx4sff")},m(f,v){t.insert(f,e,v),t.append(e,a),d=!0},p(f,v){i=f,(!d||v&32)&&s!==(s=i[5]("copyTransactionId")+"")&&t.set_data(a,s)},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,s,a;return{c(){e=t.svg_element("svg"),s=t.svg_element("circle"),a=t.svg_element("path"),t.attr(s,"cx","12"),t.attr(s,"cy","12"),t.attr(s,"r","10"),t.attr(s,"stroke","#25bf00"),t.attr(s,"stroke-width","2"),t.attr(s,"class","svelte-1kx4sff"),t.attr(a,"d","M8 12L11 15L16 9"),t.attr(a,"stroke","#25bf00"),t.attr(a,"stroke-width","2"),t.attr(a,"stroke-linecap","round"),t.attr(a,"stroke-linejoin","round"),t.attr(a,"class","svelte-1kx4sff"),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-1kx4sff")},m(r,o){t.insert(r,e,o),t.append(e,s),t.append(e,a)},d(r){r&&t.detach(e)}}}function Z(i){let e,s,a,r;return{c(){e=t.svg_element("svg"),s=t.svg_element("circle"),a=t.svg_element("text"),r=t.text("R"),t.attr(s,"cx","12"),t.attr(s,"cy","12"),t.attr(s,"r","10"),t.attr(s,"stroke","#dd6617d4"),t.attr(s,"stroke-width","2"),t.attr(s,"class","svelte-1kx4sff"),t.attr(a,"x","50%"),t.attr(a,"y","54%"),t.attr(a,"text-anchor","middle"),t.attr(a,"dominant-baseline","middle"),t.attr(a,"font-size","14"),t.attr(a,"font-weight","bold"),t.attr(a,"fill","#dd6617d4"),t.attr(a,"font-family","Arial Rounded MT Bold, Arial, sans-serif"),t.attr(a,"class","svelte-1kx4sff"),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-1kx4sff")},m(o,d){t.insert(o,e,d),t.append(e,s),t.append(e,a),t.append(a,r)},d(o){o&&t.detach(e)}}}function $(i){let e,s,a;return{c(){e=t.svg_element("svg"),s=t.svg_element("circle"),a=t.svg_element("path"),t.attr(s,"cx","12"),t.attr(s,"cy","12"),t.attr(s,"r","10"),t.attr(s,"stroke","#f0a85f"),t.attr(s,"stroke-width","2"),t.attr(s,"class","svelte-1kx4sff"),t.attr(a,"d","M12 7V12L15 14"),t.attr(a,"stroke","#f0a85f"),t.attr(a,"stroke-width","2"),t.attr(a,"stroke-linecap","round"),t.attr(a,"stroke-linejoin","round"),t.attr(a,"class","svelte-1kx4sff"),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-1kx4sff")},m(r,o){t.insert(r,e,o),t.append(e,s),t.append(e,a)},d(r){r&&t.detach(e)}}}function tt(i){let e,s,a;return{c(){e=t.svg_element("svg"),s=t.svg_element("circle"),a=t.svg_element("path"),t.attr(s,"cx","12"),t.attr(s,"cy","12"),t.attr(s,"r","10"),t.attr(s,"stroke","#e76049"),t.attr(s,"stroke-width","2"),t.attr(s,"class","svelte-1kx4sff"),t.attr(a,"d","M9 9L15 15M15 9L9 15"),t.attr(a,"stroke","#e76049"),t.attr(a,"stroke-width","2"),t.attr(a,"stroke-linecap","round"),t.attr(a,"stroke-linejoin","round"),t.attr(a,"class","svelte-1kx4sff"),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-1kx4sff")},m(r,o){t.insert(r,e,o),t.append(e,s),t.append(e,a)},d(r){r&&t.detach(e)}}}function et(i){let e,s,a,r;return{c(){e=t.svg_element("svg"),s=t.svg_element("circle"),a=t.svg_element("text"),r=t.text("A"),t.attr(s,"cx","12"),t.attr(s,"cy","12"),t.attr(s,"r","10"),t.attr(s,"stroke","#32b398"),t.attr(s,"stroke-width","2"),t.attr(s,"class","svelte-1kx4sff"),t.attr(a,"x","50%"),t.attr(a,"y","54%"),t.attr(a,"text-anchor","middle"),t.attr(a,"dominant-baseline","middle"),t.attr(a,"font-size","14"),t.attr(a,"font-weight","bold"),t.attr(a,"fill","#32b398"),t.attr(a,"font-family","Arial Rounded MT Bold, Arial, sans-serif"),t.attr(a,"class","svelte-1kx4sff"),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-1kx4sff")},m(o,d){t.insert(o,e,d),t.append(e,s),t.append(e,a),t.append(a,r)},d(o){o&&t.detach(e)}}}function q(i){let e,s,a=i[24].Code+"",r,o,d,f=i[24].Date+"",v,w,y,h=i[5](`transactionType.${i[24].Type}`)+"",b,z,C,g,_,k,H,S=i[5](`transactionStatus.${i[24].Status}`)+"",I,F,j,R;function A(n,l){if(n[24].Status===n[4].Authorized)return et;if(n[24].Status===n[4].Failed)return tt;if(n[24].Status===n[4].Pending)return $;if(n[24].Status===n[4].Rejected)return Z;if(n[24].Status===n[4].Success)return Q}let T=A(i),m=T&&T(i);return{c(){e=t.element("tr"),s=t.element("td"),r=t.text(a),o=t.space(),d=t.element("td"),v=t.text(f),w=t.space(),y=t.element("td"),b=t.text(h),z=t.space(),C=t.element("td"),g=t.element("div"),_=t.element("span"),m&&m.c(),k=t.space(),H=t.element("span"),I=t.text(S),F=t.space(),t.attr(s,"class","CashierTransactionId svelte-1kx4sff"),t.toggle_class(s,"copied",i[3]),t.attr(d,"class","svelte-1kx4sff"),t.attr(y,"class","svelte-1kx4sff"),t.attr(_,"class","CashierTransactionHistoryIcon svelte-1kx4sff"),t.attr(H,"class","CashierTransactionHistoryStatusText svelte-1kx4sff"),t.attr(g,"class","CashierTransactionHistoryStatus svelte-1kx4sff"),t.attr(C,"class","svelte-1kx4sff"),t.attr(e,"class","svelte-1kx4sff")},m(n,l){t.insert(n,e,l),t.append(e,s),t.append(s,r),t.append(e,o),t.append(e,d),t.append(d,v),t.append(e,w),t.append(e,y),t.append(y,b),t.append(e,z),t.append(e,C),t.append(C,g),t.append(g,_),m&&m.m(_,null),t.append(g,k),t.append(g,H),t.append(H,I),t.append(e,F),j||(R=t.listen(s,"mousedown",i[15]),j=!0)},p(n,l){l&4&&a!==(a=n[24].Code+"")&&t.set_data(r,a),l&8&&t.toggle_class(s,"copied",n[3]),l&4&&f!==(f=n[24].Date+"")&&t.set_data(v,f),l&36&&h!==(h=n[5](`transactionType.${n[24].Type}`)+"")&&t.set_data(b,h),T!==(T=A(n))&&(m&&m.d(1),m=T&&T(n),m&&(m.c(),m.m(_,null))),l&36&&S!==(S=n[5](`transactionStatus.${n[24].Status}`)+"")&&t.set_data(I,S)},d(n){n&&t.detach(e),m&&m.d(),j=!1,R()}}}function st(i){let e,s=i[2].length&&W(i);return{c(){s&&s.c(),e=t.empty()},m(a,r){s&&s.m(a,r),t.insert(a,e,r)},p(a,[r]){a[2].length?s?s.p(a,r):(s=W(a),s.c(),s.m(e.parentNode,e)):s&&(s.d(1),s=null)},i:t.noop,o:t.noop,d(a){a&&t.detach(e),s&&s.d(a)}}}const at="DD.MM.YYYY";function nt(i,e,s){let a;t.component_subscribe(i,L.$format,n=>s(5,a=n));let{endpoint:r}=e,{session:o}=e,{lang:d="en"}=e,{customerid:f}=e,{clientstyling:v=""}=e,{clientstylingurl:w=""}=e,{translationurl:y}=e,{tooltipduration:h=1e3}=e,{txncount:b=3}=e,z=[],C=!1,g,_;var k;(function(n){n.Deposit="deposit",n.Withdraw="withdraw",n.Refund="refund",n.Unknown="unknown",n.TaxDeduction="taxDeduction"})(k||(k={}));const H=["Authorized","Success","Failed","Rejected","PendingApprovalStage1","PendingApprovalStage2","PendingApprovalStage3","PendingNotification","PendingOfflineNotification","PendingConfirmation"];var S;(function(n){n.Authorized="Authorized",n.Success="Success",n.Failed="Failed",n.Rejected="Rejected",n.Pending="Pending"})(S||(S={}));const I=()=>{let n=y;if(n)return fetch(n).then(l=>l.json()).then(l=>{Object.keys(l).forEach(c=>{E(c,l[c])})}).catch(l=>{console.log(l)})};Object.keys(U).forEach(n=>{E(n,U[n])});const F=()=>{G(d)},j=()=>{const n=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:b,page:0,fromDate:c,toDate:null,statuses:{[k.Deposit]:H,[k.Withdraw]:H,[k.Refund]:["Unknown"],[k.TaxDeduction]:["Unknown"],[k.Unknown]:["Unknown"]},calculateProfit:!1})};fetch(n,P).then(u=>u.json()).then(u=>{s(2,z=R((u==null?void 0:u.items)||[]))}).catch(u=>console.log(u))},R=n=>n.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(at),Status:c,Type:l.generalFields.type}})||[],A=n=>{const l=n.currentTarget;n.target===l&&navigator.clipboard.writeText(l.innerText).then(()=>{s(3,C=!0),clearTimeout(_),_=setTimeout(()=>{s(3,C=!1)},2e3)}).catch(c=>{console.error("Could not copy text: ",c)})},T=n=>A(n);function m(n){t.binding_callbacks[n?"unshift":"push"](()=>{g=n,s(1,g)})}return i.$$set=n=>{"endpoint"in n&&s(7,r=n.endpoint),"session"in n&&s(8,o=n.session),"lang"in n&&s(9,d=n.lang),"customerid"in n&&s(10,f=n.customerid),"clientstyling"in n&&s(11,v=n.clientstyling),"clientstylingurl"in n&&s(12,w=n.clientstylingurl),"translationurl"in n&&s(13,y=n.translationurl),"tooltipduration"in n&&s(0,h=n.tooltipduration),"txncount"in n&&s(14,b=n.txncount)},i.$$.update=()=>{i.$$.dirty&512&&d&&F(),i.$$.dirty&2050&&v&&g&&J(g,v),i.$$.dirty&4098&&w&&g&&V(g,w),i.$$.dirty&1920&&r&&o&&f&&d&&j(),i.$$.dirty&8192&&y&&I()},[h,g,z,C,S,a,A,r,o,d,f,v,w,y,b,T,m]}class Y extends t.SvelteComponent{constructor(e){super(),t.init(this,e,nt,st,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-CV_8giHq.js → CashierTransactionHistory-nSVkLMu-.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 J, e as
|
|
2
|
-
import { f as K } from "./CashierModal-
|
|
3
|
-
import { a as kt, $ as wt, i as yt, b as Tt } from "./CashierError-
|
|
4
|
-
import { d as bt } from "./CashierMethodDetails-
|
|
1
|
+
import { S as it, b as nt, s as at, f as U, c as lt, n as J, e as O, l as W, w as ot, v as rt, K as V, L as ct, g as X, D as ft, t as dt, k as ut, x as B, m as l, o as v, p as j, y as I, q as e, z as ht, V as mt, F as vt, W as pt, J as G, A as gt, O as T, E as xt } from "./CashierConfirmModal-B74OQHQ9.js";
|
|
2
|
+
import { f as K } from "./CashierModal-DEizrxpW.js";
|
|
3
|
+
import { a as kt, $ as wt, i as yt, b as Tt } from "./CashierError-XLiq37Gb.js";
|
|
4
|
+
import { d as bt } from "./CashierMethodDetails-ClSlkZ3o.js";
|
|
5
5
|
yt({
|
|
6
6
|
fallbackLocale: "en"
|
|
7
7
|
});
|
|
@@ -92,12 +92,12 @@ function tt(a) {
|
|
|
92
92
|
), g, n, r, f = (
|
|
93
93
|
/*copied*/
|
|
94
94
|
a[3] && et(a)
|
|
95
|
-
),
|
|
95
|
+
), N = V(
|
|
96
96
|
/*txnHistory*/
|
|
97
97
|
a[2]
|
|
98
98
|
), m = [];
|
|
99
|
-
for (let h = 0; h <
|
|
100
|
-
m[h] = st($(a,
|
|
99
|
+
for (let h = 0; h < N.length; h += 1)
|
|
100
|
+
m[h] = st($(a, N, h));
|
|
101
101
|
return {
|
|
102
102
|
c() {
|
|
103
103
|
t = v("div"), f && f.c(), s = j(), i = v("h3"), c = I(o), d = j(), u = v("div"), x = v("div"), b = v("table"), _ = v("thead"), p = v("tr"), H = v("td"), D = I(L), k = j(), C = v("td"), A = I(y), z = j(), R = v("td"), E = I(M), Y = j(), P = v("td"), g = I(S), n = j(), r = v("tbody");
|
|
@@ -106,7 +106,7 @@ function tt(a) {
|
|
|
106
106
|
e(i, "class", "CashierTransactionHistoryTitle svelte-1kx4sff"), e(H, "class", "svelte-1kx4sff"), e(C, "class", "svelte-1kx4sff"), e(R, "class", "svelte-1kx4sff"), e(P, "class", "svelte-1kx4sff"), e(p, "class", "svelte-1kx4sff"), e(_, "class", "svelte-1kx4sff"), e(r, "class", "svelte-1kx4sff"), e(b, "class", "svelte-1kx4sff"), e(x, "class", "CashierTransactionHistoryContent svelte-1kx4sff"), e(u, "class", "CashierTransactionHistoryWrapper svelte-1kx4sff"), e(t, "class", "CashierTransactionHistory svelte-1kx4sff");
|
|
107
107
|
},
|
|
108
108
|
m(h, F) {
|
|
109
|
-
|
|
109
|
+
W(h, t, F), f && f.m(t, null), l(t, s), l(t, i), l(i, c), l(t, d), l(t, u), l(u, x), l(x, b), l(b, _), l(_, p), l(p, H), l(H, D), l(p, k), l(p, C), l(C, A), l(p, z), l(p, R), l(R, E), l(p, Y), l(p, P), l(P, g), l(b, n), l(b, r);
|
|
110
110
|
for (let w = 0; w < m.length; w += 1)
|
|
111
111
|
m[w] && m[w].m(r, null);
|
|
112
112
|
a[16](t);
|
|
@@ -128,22 +128,22 @@ function tt(a) {
|
|
|
128
128
|
32 && S !== (S = /*$_*/
|
|
129
129
|
h[5]("transactionStatusTitle") + "") && B(g, S), F & /*$_, txnHistory, TransactionMainStatus, copied, copyToClipboard*/
|
|
130
130
|
124) {
|
|
131
|
-
|
|
131
|
+
N = V(
|
|
132
132
|
/*txnHistory*/
|
|
133
133
|
h[2]
|
|
134
134
|
);
|
|
135
135
|
let w;
|
|
136
|
-
for (w = 0; w <
|
|
137
|
-
const q = $(h,
|
|
136
|
+
for (w = 0; w < N.length; w += 1) {
|
|
137
|
+
const q = $(h, N, w);
|
|
138
138
|
m[w] ? m[w].p(q, F) : (m[w] = st(q), m[w].c(), m[w].m(r, null));
|
|
139
139
|
}
|
|
140
140
|
for (; w < m.length; w += 1)
|
|
141
141
|
m[w].d(1);
|
|
142
|
-
m.length =
|
|
142
|
+
m.length = N.length;
|
|
143
143
|
}
|
|
144
144
|
},
|
|
145
145
|
d(h) {
|
|
146
|
-
h &&
|
|
146
|
+
h && O(t), f && f.d(), ct(m, h), a[16](null);
|
|
147
147
|
}
|
|
148
148
|
};
|
|
149
149
|
}
|
|
@@ -157,7 +157,7 @@ function et(a) {
|
|
|
157
157
|
t = v("div"), i = I(s), e(t, "class", "CopyTooltip svelte-1kx4sff");
|
|
158
158
|
},
|
|
159
159
|
m(u, x) {
|
|
160
|
-
|
|
160
|
+
W(u, t, x), l(t, i), d = !0;
|
|
161
161
|
},
|
|
162
162
|
p(u, x) {
|
|
163
163
|
a = u, (!d || x & /*$_*/
|
|
@@ -176,7 +176,7 @@ function et(a) {
|
|
|
176
176
|
) })), d = !1;
|
|
177
177
|
},
|
|
178
178
|
d(u) {
|
|
179
|
-
u &&
|
|
179
|
+
u && O(t), u && c && c.end();
|
|
180
180
|
}
|
|
181
181
|
};
|
|
182
182
|
}
|
|
@@ -187,10 +187,10 @@ function Dt(a) {
|
|
|
187
187
|
t = T("svg"), s = T("circle"), i = T("path"), e(s, "cx", "12"), e(s, "cy", "12"), e(s, "r", "10"), e(s, "stroke", "#25bf00"), e(s, "stroke-width", "2"), e(s, "class", "svelte-1kx4sff"), e(i, "d", "M8 12L11 15L16 9"), e(i, "stroke", "#25bf00"), e(i, "stroke-width", "2"), e(i, "stroke-linecap", "round"), e(i, "stroke-linejoin", "round"), e(i, "class", "svelte-1kx4sff"), e(t, "width", "18"), e(t, "height", "18"), e(t, "viewBox", "0 0 24 24"), e(t, "fill", "none"), e(t, "xmlns", "http://www.w3.org/2000/svg"), e(t, "class", "svelte-1kx4sff");
|
|
188
188
|
},
|
|
189
189
|
m(o, c) {
|
|
190
|
-
|
|
190
|
+
W(o, t, c), l(t, s), l(t, i);
|
|
191
191
|
},
|
|
192
192
|
d(o) {
|
|
193
|
-
o &&
|
|
193
|
+
o && O(t);
|
|
194
194
|
}
|
|
195
195
|
};
|
|
196
196
|
}
|
|
@@ -201,10 +201,10 @@ function zt(a) {
|
|
|
201
201
|
t = T("svg"), s = T("circle"), i = T("text"), o = I("R"), e(s, "cx", "12"), e(s, "cy", "12"), e(s, "r", "10"), e(s, "stroke", "#dd6617d4"), e(s, "stroke-width", "2"), e(s, "class", "svelte-1kx4sff"), e(i, "x", "50%"), e(i, "y", "54%"), e(i, "text-anchor", "middle"), e(i, "dominant-baseline", "middle"), e(i, "font-size", "14"), e(i, "font-weight", "bold"), e(i, "fill", "#dd6617d4"), e(i, "font-family", "Arial Rounded MT Bold, Arial, sans-serif"), e(i, "class", "svelte-1kx4sff"), e(t, "width", "18"), e(t, "height", "18"), e(t, "viewBox", "0 0 24 24"), e(t, "fill", "none"), e(t, "xmlns", "http://www.w3.org/2000/svg"), e(t, "class", "svelte-1kx4sff");
|
|
202
202
|
},
|
|
203
203
|
m(c, d) {
|
|
204
|
-
|
|
204
|
+
W(c, t, d), l(t, s), l(t, i), l(i, o);
|
|
205
205
|
},
|
|
206
206
|
d(c) {
|
|
207
|
-
c &&
|
|
207
|
+
c && O(t);
|
|
208
208
|
}
|
|
209
209
|
};
|
|
210
210
|
}
|
|
@@ -215,10 +215,10 @@ function It(a) {
|
|
|
215
215
|
t = T("svg"), s = T("circle"), i = T("path"), e(s, "cx", "12"), e(s, "cy", "12"), e(s, "r", "10"), e(s, "stroke", "#f0a85f"), e(s, "stroke-width", "2"), e(s, "class", "svelte-1kx4sff"), e(i, "d", "M12 7V12L15 14"), e(i, "stroke", "#f0a85f"), e(i, "stroke-width", "2"), e(i, "stroke-linecap", "round"), e(i, "stroke-linejoin", "round"), e(i, "class", "svelte-1kx4sff"), e(t, "width", "18"), e(t, "height", "18"), e(t, "viewBox", "0 0 24 24"), e(t, "fill", "none"), e(t, "xmlns", "http://www.w3.org/2000/svg"), e(t, "class", "svelte-1kx4sff");
|
|
216
216
|
},
|
|
217
217
|
m(o, c) {
|
|
218
|
-
|
|
218
|
+
W(o, t, c), l(t, s), l(t, i);
|
|
219
219
|
},
|
|
220
220
|
d(o) {
|
|
221
|
-
o &&
|
|
221
|
+
o && O(t);
|
|
222
222
|
}
|
|
223
223
|
};
|
|
224
224
|
}
|
|
@@ -229,10 +229,10 @@ function At(a) {
|
|
|
229
229
|
t = T("svg"), s = T("circle"), i = T("path"), e(s, "cx", "12"), e(s, "cy", "12"), e(s, "r", "10"), e(s, "stroke", "#e76049"), e(s, "stroke-width", "2"), e(s, "class", "svelte-1kx4sff"), e(i, "d", "M9 9L15 15M15 9L9 15"), e(i, "stroke", "#e76049"), e(i, "stroke-width", "2"), e(i, "stroke-linecap", "round"), e(i, "stroke-linejoin", "round"), e(i, "class", "svelte-1kx4sff"), e(t, "width", "18"), e(t, "height", "18"), e(t, "viewBox", "0 0 24 24"), e(t, "fill", "none"), e(t, "xmlns", "http://www.w3.org/2000/svg"), e(t, "class", "svelte-1kx4sff");
|
|
230
230
|
},
|
|
231
231
|
m(o, c) {
|
|
232
|
-
|
|
232
|
+
W(o, t, c), l(t, s), l(t, i);
|
|
233
233
|
},
|
|
234
234
|
d(o) {
|
|
235
|
-
o &&
|
|
235
|
+
o && O(t);
|
|
236
236
|
}
|
|
237
237
|
};
|
|
238
238
|
}
|
|
@@ -243,10 +243,10 @@ function Ft(a) {
|
|
|
243
243
|
t = T("svg"), s = T("circle"), i = T("text"), o = I("A"), e(s, "cx", "12"), e(s, "cy", "12"), e(s, "r", "10"), e(s, "stroke", "#32b398"), e(s, "stroke-width", "2"), e(s, "class", "svelte-1kx4sff"), e(i, "x", "50%"), e(i, "y", "54%"), e(i, "text-anchor", "middle"), e(i, "dominant-baseline", "middle"), e(i, "font-size", "14"), e(i, "font-weight", "bold"), e(i, "fill", "#32b398"), e(i, "font-family", "Arial Rounded MT Bold, Arial, sans-serif"), e(i, "class", "svelte-1kx4sff"), e(t, "width", "18"), e(t, "height", "18"), e(t, "viewBox", "0 0 24 24"), e(t, "fill", "none"), e(t, "xmlns", "http://www.w3.org/2000/svg"), e(t, "class", "svelte-1kx4sff");
|
|
244
244
|
},
|
|
245
245
|
m(c, d) {
|
|
246
|
-
|
|
246
|
+
W(c, t, d), l(t, s), l(t, i), l(i, o);
|
|
247
247
|
},
|
|
248
248
|
d(c) {
|
|
249
|
-
c &&
|
|
249
|
+
c && O(t);
|
|
250
250
|
}
|
|
251
251
|
};
|
|
252
252
|
}
|
|
@@ -309,7 +309,7 @@ function st(a) {
|
|
|
309
309
|
), e(d, "class", "svelte-1kx4sff"), e(_, "class", "svelte-1kx4sff"), e(C, "class", "CashierTransactionHistoryIcon svelte-1kx4sff"), e(A, "class", "CashierTransactionHistoryStatusText svelte-1kx4sff"), e(k, "class", "CashierTransactionHistoryStatus svelte-1kx4sff"), e(D, "class", "svelte-1kx4sff"), e(t, "class", "svelte-1kx4sff");
|
|
310
310
|
},
|
|
311
311
|
m(n, r) {
|
|
312
|
-
|
|
312
|
+
W(n, t, r), l(t, s), l(s, o), l(t, c), l(t, d), l(d, x), l(t, b), l(t, _), l(_, H), l(t, L), l(t, D), l(D, k), l(k, C), g && g.m(C, null), l(k, y), l(k, A), l(A, R), l(t, M), E || (Y = gt(
|
|
313
313
|
s,
|
|
314
314
|
"mousedown",
|
|
315
315
|
/*mousedown_handler*/
|
|
@@ -336,7 +336,7 @@ function st(a) {
|
|
|
336
336
|
n[24].Status}`) + "") && B(R, z);
|
|
337
337
|
},
|
|
338
338
|
d(n) {
|
|
339
|
-
n &&
|
|
339
|
+
n && O(t), g && g.d(), E = !1, Y();
|
|
340
340
|
}
|
|
341
341
|
};
|
|
342
342
|
}
|
|
@@ -350,7 +350,7 @@ function jt(a) {
|
|
|
350
350
|
s && s.c(), t = ot();
|
|
351
351
|
},
|
|
352
352
|
m(i, o) {
|
|
353
|
-
s && s.m(i, o),
|
|
353
|
+
s && s.m(i, o), W(i, t, o);
|
|
354
354
|
},
|
|
355
355
|
p(i, [o]) {
|
|
356
356
|
/*txnHistory*/
|
|
@@ -359,7 +359,7 @@ function jt(a) {
|
|
|
359
359
|
i: J,
|
|
360
360
|
o: J,
|
|
361
361
|
d(i) {
|
|
362
|
-
i &&
|
|
362
|
+
i && O(t), s && s.d(i);
|
|
363
363
|
}
|
|
364
364
|
};
|
|
365
365
|
}
|
|
@@ -407,7 +407,7 @@ function Rt(a, t, s) {
|
|
|
407
407
|
}, E = () => {
|
|
408
408
|
const n = new URL(`${o}/api/v1/mm/payment/gettransactionshistory`), r = new Headers();
|
|
409
409
|
r.append("accept", "application/json"), r.append("Content-Type", "application/json"), r.append("X-SessionId", `${c}`);
|
|
410
|
-
const f = new Date((/* @__PURE__ */ new Date()).setMonth((/* @__PURE__ */ new Date()).getMonth() - 3)).toISOString(),
|
|
410
|
+
const f = new Date((/* @__PURE__ */ new Date()).setMonth((/* @__PURE__ */ new Date()).getMonth() - 3)).toISOString(), N = {
|
|
411
411
|
method: "POST",
|
|
412
412
|
mode: "cors",
|
|
413
413
|
headers: r,
|
|
@@ -428,7 +428,7 @@ function Rt(a, t, s) {
|
|
|
428
428
|
calculateProfit: !1
|
|
429
429
|
})
|
|
430
430
|
};
|
|
431
|
-
fetch(n,
|
|
431
|
+
fetch(n, N).then((m) => m.json()).then((m) => {
|
|
432
432
|
s(2, L = Y(m?.items || []));
|
|
433
433
|
}).catch((m) => console.log(m));
|
|
434
434
|
}, Y = (n) => n.map((r) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./CashierConfirmModal-DMmJumcl.cjs"),T=require("./CashierError-DfpdiheS.cjs"),A=require("./CashierMethodDetails-qw8XeRB-.cjs");function j(r,t){T.addMessages(r,t)}function ke(r){T.init({fallbackLocale:"en"}),T.$locale.set(r)}const N={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 _e(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 W(r,t,o){const a=r.slice();return a[53]=t[o],a[55]=o,a}function Y(r){let t,o,a,f,u=i.ensure_array_like(r[4]),d=[];for(let l=0;l<u.length;l+=1)d[l]=G(W(r,u,l));let m=r[7]&&Z(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(),f=i.element("cashier-video-modal"),i.attr(t,"class","CashierVerificationsWrapper"),i.set_custom_element_data(f,"clientstylingurl",r[1]),i.set_custom_element_data(f,"clientstyling",r[0]),i.set_custom_element_data(f,"ismobileview",r[2]),i.set_custom_element_data(f,"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,f,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 y=W(l,u,s);d[s]?d[s].p(y,h):(d[s]=G(y),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=Z(l),m.c(),m.m(a.parentNode,a)):m&&(m.d(1),m=null),h[0]&2&&i.set_custom_element_data(f,"clientstylingurl",l[1]),h[0]&1&&i.set_custom_element_data(f,"clientstyling",l[0]),h[0]&4&&i.set_custom_element_data(f,"ismobileview",l[2]),h[0]&256&&i.set_custom_element_data(f,"videosrc",l[8])},d(l){l&&(i.detach(t),i.detach(o),i.detach(a),i.detach(f)),i.destroy_each(d,l),m&&m.d(l)}}}function K(r){let t,o,a;function f(...u){return r[19](r[55],...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",f),o=!0)},p(u,d){r=u},d(u){u&&i.detach(t),o=!1,a()}}}function G(r){let t,o,a,f,u=r[53]+"",d,m,l,h,s=r[4].length>1&&r[55]===0&&K(r);function y(...v){return r[20](r[55],...v)}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(),f=i.element("p"),d=i.space(),s&&s.c(),m=i.space(),i.attr(o,"class","IconVerification"),i.attr(f,"class","text"),i.attr(t,"class","CashierVerificationMessage"),i.toggle_class(t,"ShowAll",r[5])},m(v,w){i.insert(v,t,w),i.append(t,o),i.append(t,a),i.append(t,f),f.innerHTML=u,i.append(t,d),s&&s.m(t,null),i.append(t,m),l||(h=i.listen(t,"click",y),l=!0)},p(v,w){r=v,w[0]&16&&u!==(u=r[53]+"")&&(f.innerHTML=u),r[4].length>1&&r[55]===0?s?s.p(r,w):(s=K(r),s.c(),s.m(t,m)):s&&(s.d(1),s=null),w[0]&32&&i.toggle_class(t,"ShowAll",r[5])},d(v){v&&i.detach(t),s&&s.d(),l=!1,h()}}}function Z(r){let t,o,a,f,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(),f=i.element("div"),d=i.text(u),i.attr(o,"class","IconVideo"),i.attr(f,"class","CashierVerificationVideoLink"),i.toggle_class(f,"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,f),i.append(f,d),m||(l=i.listen(f,"click",r[21]),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(f,"CashierVerificationVideoLinkDesktop",h[6])},d(h){h&&i.detach(t),m=!1,l()}}}function Ve(r){let t,o=r[4]&&Y(r);return{c(){t=i.element("div"),o&&o.c(),i.attr(t,"class","CashierVerifications"),i.toggle_class(t,"CashierVerificationsDesktop",r[6])},m(a,f){i.insert(a,t,f),o&&o.m(t,null),r[22](t)},p(a,f){a[4]?o?o.p(a,f):(o=Y(a),o.c(),o.m(t,null)):o&&(o.d(1),o=null),f[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[22](null)}}}const Pe="verification_explanation_video_widgets.MP4";function be(r,t,o){let a,f;i.component_subscribe(r,T.$format,e=>o(9,a=e)),i.component_subscribe(r,A.xPaymentSessionToken,e=>o(28,f=e)),A.dayjs.extend(A.utc);let{endpoint:u}=t,{lang:d="en"}=t,{translationurl:m=""}=t,{clientstyling:l=""}=t,{clientstylingurl:h=""}=t,{session:s=""}=t,{customerid:y=""}=t,{ismobileview:v=""}=t,{playersession:w=""}=t,_,F=new Set,z=new Set,D,C,O,M=!0,I=!0,B=!1,L="";var P;(function(e){e.Manual="Manual",e.ShuftiPro="ShuftiPro"})(P||(P={}));var q;(function(e){e.Requested="Requested"})(q||(q={}));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 X=[g.InProgress,g.Referred,g.AwaitingForResponse],Q=()=>{let e=m;if(e)return fetch(e).then(n=>n.json()).then(n=>{Object.keys(n).forEach(c=>{j(c,n[c])})}).catch(n=>{console.log(n)})};Object.keys(N).forEach(e=>{j(e,N[e])});const $=()=>{ke(d)},ee=()=>{let e=document.createElement("style");e.innerHTML=l,_.appendChild(e)},ie=()=>{let e=new URL(h),n=document.createElement("style");fetch(e.href).then(c=>c.text()).then(c=>{n.innerHTML=c,setTimeout(()=>{_.appendChild(n)},1)})},E=()=>{o(18,C=oe());const e=new URL(`${u}/v1/player/${y}/verification/GetKYCCustomerStatus?language=${d}`),n=new Headers;n.append("accept","application/json"),n.append("Content-Type","application/json"),n.append("x-sessionid",`${w}`),n.append("X-Client-Request-Timestamp",A.dayjs.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));const c={method:"POST",headers:n,body:JSON.stringify({})};fetch(e,c).then(p=>p.json()).then(p=>{const k=te(p==null?void 0:p.Verifications);D=ne(k),D.VerificationStatuses.forEach(S=>{S.VerificationUrlType!=="Widget"&&F.add(S.Vendor)}),o(4,O=U())})},te=e=>e?e.sort((n,c)=>new Date(c.Created).getTime()-new Date(n.Created).getTime()):[],re=()=>{f&&E()},oe=()=>{let e=(s||f).split(".")[1];if(e){let n=JSON.parse(atob(e));return n.cdn+"/cashier/operator-assets/"+(n==null?void 0:n.mid)}return""},ne=e=>{var c;if(!e||!e.length)return{VerificationSummaryStatus:g.Unverified,VerificationStatuses:[]};const n=ae(e);if(n&&n.length){const p=se(n);return{VerificationSummaryStatus:p.Status,VerificationUrl:(c=p.Flags)==null?void 0:c.DeferredUrlKey,VerificationStatuses:R(n,p.Status)}}else return{VerificationSummaryStatus:e.some(k=>k.Status===g.Failed)?g.Failed:g.Verified,VerificationStatuses:R(e,[g.Failed])}},se=e=>e.reduce((n,c)=>n?new Date(n)<new Date(c)?c:n:c,0),R=(e,n)=>e.filter(c=>n.includes(c.Status)).map(c=>{var p,k;return{Type:c.Type,Vendor:c.VendorName,VerificationDocuments:c.Documents?[...c.Documents]:[],VerificationUrlType:(p=c.FlowInfo)==null?void 0:p.Type,VerificationUrl:(k=c.FlowInfo)==null?void 0:k.Url}}),ae=e=>e.filter(n=>X.includes(n.Status)?n.FlowInfo&&n.FlowInfo.Url||le(n)||ce(n):!1),le=e=>{const n=e.Documents&&e.VendorName===P.Manual,c=e.Documents&&e.Documents.some(p=>p.Status===q.Requested);return n&&c},ce=e=>e.VendorName===P.ShuftiPro&&e.Status===g.Referred,U=()=>{switch(D.VerificationSummaryStatus){case g.InProgress:const e=[];return F.forEach(n=>{e.push(fe(n))}),e;case g.Referred:return[a("verification.idenfy.referred-awaiting")];case g.Failed:return[a("verification.message.failed")]}},fe=e=>{const n=D.VerificationStatuses.filter(c=>c.Vendor===e);if(e===P.ShuftiPro)return de(n);{const c=a("verification.idenfy.link-name"),p={link:`<a href="${n[0].VerificationUrl}" target="_blank">${c}</a>`};return a("verification.idenfy.in-progress",{values:p})}},de=e=>{const n=[],c={},p=[b.Biometric,b.Documents,b.ProofOfAddress];e.forEach(V=>{p.includes(V.Type)&&(n.push(V.Type),c[V.Type]=ue(V,he(V.Type)))});let k=n.every(V=>z.has(V)),S=`verification.shuftipro.in-progress.${n.sort().join(".")}`;return k?a("verification.shuftipro.validations-started"):a(S,{values:c})},ue=(e,n)=>`<a class="verificationLink ${e.Type}" href=" ${e.VerificationUrl} " target="_blank">${n}</a>`,he=e=>a(`verification.shuftipro.link-name.${e}`),x=(e,n)=>{if(e.stopPropagation(),e.target&&(e.target.href||e.target.closest("a"))){if(e.target.closest(".verificationLink")){const c=e.target.className.split(" ")[1];z.add(c),o(4,O=U())}return}n===0&&o(5,M=!M)},me=()=>{o(6,I=v==="false")},pe=()=>{o(8,L=C+"/"+d+"/"+Pe);try{fetch(L,{method:"HEAD"}).then(e=>{o(7,B=e.ok)})}catch(e){o(7,B=!1)}},H=()=>{window.postMessage({type:"ShowCashierVideoModal"},window.location.href)},ge=(e,n)=>x(n,e),ve=(e,n)=>x(n,e),we=()=>H();function ye(e){i.binding_callbacks[e?"unshift":"push"](()=>{_=e,o(3,_)})}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,y=e.customerid),"ismobileview"in e&&o(2,v=e.ismobileview),"playersession"in e&&o(17,w=e.playersession)},r.$$.update=()=>{r.$$.dirty[0]&8192&&d&&$(),r.$$.dirty[0]&167936&&u&&s&&w&&E(),r.$$.dirty[0]&167936&&u&&!s&&w&&re(),r.$$.dirty[0]&16384&&m&&Q(),r.$$.dirty[0]&9&&l&&_&&ee(),r.$$.dirty[0]&10&&h&&_&&ie(),r.$$.dirty[0]&4&&v&&me(),r.$$.dirty[0]&262144&&C&&pe()},[l,h,v,_,O,M,I,B,L,a,x,H,u,d,m,s,y,w,C,ge,ve,we,ye]}class J extends i.SvelteComponent{constructor(t){super(),i.init(this,t,be,Ve,i.safe_not_equal,{endpoint:12,lang:13,translationurl:14,clientstyling:0,clientstylingurl:1,session:15,customerid:16,ismobileview:2,playersession:17},_e,[-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()}get playersession(){return this.$$.ctx[17]}set playersession(t){this.$$set({playersession:t}),i.flush()}}i.create_custom_element(J,{endpoint:{},lang:{},translationurl:{},clientstyling:{},clientstylingurl:{},session:{},customerid:{},ismobileview:{},playersession:{}},[],[],!0);exports.default=J;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./CashierConfirmModal-DMmJumcl.cjs"),T=require("./CashierError-DfpdiheS.cjs"),A=require("./CashierMethodDetails-Dqsnd7vM.cjs");function j(r,t){T.addMessages(r,t)}function ke(r){T.init({fallbackLocale:"en"}),T.$locale.set(r)}const N={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 _e(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 W(r,t,o){const a=r.slice();return a[53]=t[o],a[55]=o,a}function Y(r){let t,o,a,f,u=i.ensure_array_like(r[4]),d=[];for(let l=0;l<u.length;l+=1)d[l]=G(W(r,u,l));let m=r[7]&&Z(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(),f=i.element("cashier-video-modal"),i.attr(t,"class","CashierVerificationsWrapper"),i.set_custom_element_data(f,"clientstylingurl",r[1]),i.set_custom_element_data(f,"clientstyling",r[0]),i.set_custom_element_data(f,"ismobileview",r[2]),i.set_custom_element_data(f,"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,f,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 y=W(l,u,s);d[s]?d[s].p(y,h):(d[s]=G(y),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=Z(l),m.c(),m.m(a.parentNode,a)):m&&(m.d(1),m=null),h[0]&2&&i.set_custom_element_data(f,"clientstylingurl",l[1]),h[0]&1&&i.set_custom_element_data(f,"clientstyling",l[0]),h[0]&4&&i.set_custom_element_data(f,"ismobileview",l[2]),h[0]&256&&i.set_custom_element_data(f,"videosrc",l[8])},d(l){l&&(i.detach(t),i.detach(o),i.detach(a),i.detach(f)),i.destroy_each(d,l),m&&m.d(l)}}}function K(r){let t,o,a;function f(...u){return r[19](r[55],...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",f),o=!0)},p(u,d){r=u},d(u){u&&i.detach(t),o=!1,a()}}}function G(r){let t,o,a,f,u=r[53]+"",d,m,l,h,s=r[4].length>1&&r[55]===0&&K(r);function y(...v){return r[20](r[55],...v)}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(),f=i.element("p"),d=i.space(),s&&s.c(),m=i.space(),i.attr(o,"class","IconVerification"),i.attr(f,"class","text"),i.attr(t,"class","CashierVerificationMessage"),i.toggle_class(t,"ShowAll",r[5])},m(v,w){i.insert(v,t,w),i.append(t,o),i.append(t,a),i.append(t,f),f.innerHTML=u,i.append(t,d),s&&s.m(t,null),i.append(t,m),l||(h=i.listen(t,"click",y),l=!0)},p(v,w){r=v,w[0]&16&&u!==(u=r[53]+"")&&(f.innerHTML=u),r[4].length>1&&r[55]===0?s?s.p(r,w):(s=K(r),s.c(),s.m(t,m)):s&&(s.d(1),s=null),w[0]&32&&i.toggle_class(t,"ShowAll",r[5])},d(v){v&&i.detach(t),s&&s.d(),l=!1,h()}}}function Z(r){let t,o,a,f,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(),f=i.element("div"),d=i.text(u),i.attr(o,"class","IconVideo"),i.attr(f,"class","CashierVerificationVideoLink"),i.toggle_class(f,"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,f),i.append(f,d),m||(l=i.listen(f,"click",r[21]),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(f,"CashierVerificationVideoLinkDesktop",h[6])},d(h){h&&i.detach(t),m=!1,l()}}}function Ve(r){let t,o=r[4]&&Y(r);return{c(){t=i.element("div"),o&&o.c(),i.attr(t,"class","CashierVerifications"),i.toggle_class(t,"CashierVerificationsDesktop",r[6])},m(a,f){i.insert(a,t,f),o&&o.m(t,null),r[22](t)},p(a,f){a[4]?o?o.p(a,f):(o=Y(a),o.c(),o.m(t,null)):o&&(o.d(1),o=null),f[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[22](null)}}}const Pe="verification_explanation_video_widgets.MP4";function be(r,t,o){let a,f;i.component_subscribe(r,T.$format,e=>o(9,a=e)),i.component_subscribe(r,A.xPaymentSessionToken,e=>o(28,f=e)),A.dayjs.extend(A.utc);let{endpoint:u}=t,{lang:d="en"}=t,{translationurl:m=""}=t,{clientstyling:l=""}=t,{clientstylingurl:h=""}=t,{session:s=""}=t,{customerid:y=""}=t,{ismobileview:v=""}=t,{playersession:w=""}=t,_,F=new Set,z=new Set,D,C,O,M=!0,I=!0,B=!1,L="";var P;(function(e){e.Manual="Manual",e.ShuftiPro="ShuftiPro"})(P||(P={}));var q;(function(e){e.Requested="Requested"})(q||(q={}));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 X=[g.InProgress,g.Referred,g.AwaitingForResponse],Q=()=>{let e=m;if(e)return fetch(e).then(n=>n.json()).then(n=>{Object.keys(n).forEach(c=>{j(c,n[c])})}).catch(n=>{console.log(n)})};Object.keys(N).forEach(e=>{j(e,N[e])});const $=()=>{ke(d)},ee=()=>{let e=document.createElement("style");e.innerHTML=l,_.appendChild(e)},ie=()=>{let e=new URL(h),n=document.createElement("style");fetch(e.href).then(c=>c.text()).then(c=>{n.innerHTML=c,setTimeout(()=>{_.appendChild(n)},1)})},E=()=>{o(18,C=oe());const e=new URL(`${u}/v1/player/${y}/verification/GetKYCCustomerStatus?language=${d}`),n=new Headers;n.append("accept","application/json"),n.append("Content-Type","application/json"),n.append("x-sessionid",`${w}`),n.append("X-Client-Request-Timestamp",A.dayjs.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));const c={method:"POST",headers:n,body:JSON.stringify({})};fetch(e,c).then(p=>p.json()).then(p=>{const k=te(p==null?void 0:p.Verifications);D=ne(k),D.VerificationStatuses.forEach(S=>{S.VerificationUrlType!=="Widget"&&F.add(S.Vendor)}),o(4,O=U())})},te=e=>e?e.sort((n,c)=>new Date(c.Created).getTime()-new Date(n.Created).getTime()):[],re=()=>{f&&E()},oe=()=>{let e=(s||f).split(".")[1];if(e){let n=JSON.parse(atob(e));return n.cdn+"/cashier/operator-assets/"+(n==null?void 0:n.mid)}return""},ne=e=>{var c;if(!e||!e.length)return{VerificationSummaryStatus:g.Unverified,VerificationStatuses:[]};const n=ae(e);if(n&&n.length){const p=se(n);return{VerificationSummaryStatus:p.Status,VerificationUrl:(c=p.Flags)==null?void 0:c.DeferredUrlKey,VerificationStatuses:R(n,p.Status)}}else return{VerificationSummaryStatus:e.some(k=>k.Status===g.Failed)?g.Failed:g.Verified,VerificationStatuses:R(e,[g.Failed])}},se=e=>e.reduce((n,c)=>n?new Date(n)<new Date(c)?c:n:c,0),R=(e,n)=>e.filter(c=>n.includes(c.Status)).map(c=>{var p,k;return{Type:c.Type,Vendor:c.VendorName,VerificationDocuments:c.Documents?[...c.Documents]:[],VerificationUrlType:(p=c.FlowInfo)==null?void 0:p.Type,VerificationUrl:(k=c.FlowInfo)==null?void 0:k.Url}}),ae=e=>e.filter(n=>X.includes(n.Status)?n.FlowInfo&&n.FlowInfo.Url||le(n)||ce(n):!1),le=e=>{const n=e.Documents&&e.VendorName===P.Manual,c=e.Documents&&e.Documents.some(p=>p.Status===q.Requested);return n&&c},ce=e=>e.VendorName===P.ShuftiPro&&e.Status===g.Referred,U=()=>{switch(D.VerificationSummaryStatus){case g.InProgress:const e=[];return F.forEach(n=>{e.push(fe(n))}),e;case g.Referred:return[a("verification.idenfy.referred-awaiting")];case g.Failed:return[a("verification.message.failed")]}},fe=e=>{const n=D.VerificationStatuses.filter(c=>c.Vendor===e);if(e===P.ShuftiPro)return de(n);{const c=a("verification.idenfy.link-name"),p={link:`<a href="${n[0].VerificationUrl}" target="_blank">${c}</a>`};return a("verification.idenfy.in-progress",{values:p})}},de=e=>{const n=[],c={},p=[b.Biometric,b.Documents,b.ProofOfAddress];e.forEach(V=>{p.includes(V.Type)&&(n.push(V.Type),c[V.Type]=ue(V,he(V.Type)))});let k=n.every(V=>z.has(V)),S=`verification.shuftipro.in-progress.${n.sort().join(".")}`;return k?a("verification.shuftipro.validations-started"):a(S,{values:c})},ue=(e,n)=>`<a class="verificationLink ${e.Type}" href=" ${e.VerificationUrl} " target="_blank">${n}</a>`,he=e=>a(`verification.shuftipro.link-name.${e}`),x=(e,n)=>{if(e.stopPropagation(),e.target&&(e.target.href||e.target.closest("a"))){if(e.target.closest(".verificationLink")){const c=e.target.className.split(" ")[1];z.add(c),o(4,O=U())}return}n===0&&o(5,M=!M)},me=()=>{o(6,I=v==="false")},pe=()=>{o(8,L=C+"/"+d+"/"+Pe);try{fetch(L,{method:"HEAD"}).then(e=>{o(7,B=e.ok)})}catch(e){o(7,B=!1)}},H=()=>{window.postMessage({type:"ShowCashierVideoModal"},window.location.href)},ge=(e,n)=>x(n,e),ve=(e,n)=>x(n,e),we=()=>H();function ye(e){i.binding_callbacks[e?"unshift":"push"](()=>{_=e,o(3,_)})}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,y=e.customerid),"ismobileview"in e&&o(2,v=e.ismobileview),"playersession"in e&&o(17,w=e.playersession)},r.$$.update=()=>{r.$$.dirty[0]&8192&&d&&$(),r.$$.dirty[0]&167936&&u&&s&&w&&E(),r.$$.dirty[0]&167936&&u&&!s&&w&&re(),r.$$.dirty[0]&16384&&m&&Q(),r.$$.dirty[0]&9&&l&&_&&ee(),r.$$.dirty[0]&10&&h&&_&&ie(),r.$$.dirty[0]&4&&v&&me(),r.$$.dirty[0]&262144&&C&&pe()},[l,h,v,_,O,M,I,B,L,a,x,H,u,d,m,s,y,w,C,ge,ve,we,ye]}class J extends i.SvelteComponent{constructor(t){super(),i.init(this,t,be,Ve,i.safe_not_equal,{endpoint:12,lang:13,translationurl:14,clientstyling:0,clientstylingurl:1,session:15,customerid:16,ismobileview:2,playersession:17},_e,[-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()}get playersession(){return this.$$.ctx[17]}set playersession(t){this.$$set({playersession:t}),i.flush()}}i.create_custom_element(J,{endpoint:{},lang:{},translationurl:{},clientstyling:{},clientstylingurl:{},session:{},customerid:{},ismobileview:{},playersession:{}},[],[],!0);exports.default=J;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { S as Oe, b as Be, s as Me, f as y, c as Le, n as Z, e as D, J as T, l as C, o as w, q as V, v as X, K as Q, L as xe, C as b, p as A, z as qe, m as k, A as H, x as Fe, y as ze, E as Ie } from "./CashierConfirmModal-
|
|
2
|
-
import { a as Ee, i as Re, $ as Ue, b as He } from "./CashierError-
|
|
3
|
-
import { d as $, u as Ne, x as je } from "./CashierMethodDetails-
|
|
1
|
+
import { S as Oe, b as Be, s as Me, f as y, c as Le, n as Z, e as D, J as T, l as C, o as w, q as V, v as X, K as Q, L as xe, C as b, p as A, z as qe, m as k, A as H, x as Fe, y as ze, E as Ie } from "./CashierConfirmModal-B74OQHQ9.js";
|
|
2
|
+
import { a as Ee, i as Re, $ as Ue, b as He } from "./CashierError-XLiq37Gb.js";
|
|
3
|
+
import { d as $, u as Ne, x as je } from "./CashierMethodDetails-ClSlkZ3o.js";
|
|
4
4
|
function ee(t, i) {
|
|
5
5
|
Ee(t, i);
|
|
6
6
|
}
|
|
@@ -77,7 +77,7 @@ if (typeof window < "u") {
|
|
|
77
77
|
}
|
|
78
78
|
};
|
|
79
79
|
};
|
|
80
|
-
customElements.define = t(customElements.define), import("./CashierVideoModal-
|
|
80
|
+
customElements.define = t(customElements.define), import("./CashierVideoModal-Bi2G2l7B.js").then(({ default: i }) => {
|
|
81
81
|
!customElements.get("cashier-video-modal") && customElements.define("cashier-video-modal", i.element);
|
|
82
82
|
});
|
|
83
83
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { S as Oe, b as Be, s as Me, f as y, c as Le, n as Z, e as C, J as O, m as S, p as w, v as V, w as X, K as Q, L as xe, D, q as T, A as qe, o as k, B as H, y as Fe, z as ze, E as Ie } from "./CashierConfirmModal-
|
|
2
|
-
import { a as Ee, i as Re, $ as Ue, b as He } from "./CashierError-
|
|
3
|
-
import { d as $, u as Ne, x as je } from "./CashierMethodDetails-
|
|
1
|
+
import { S as Oe, b as Be, s as Me, f as y, c as Le, n as Z, e as C, J as O, m as S, p as w, v as V, w as X, K as Q, L as xe, D, q as T, A as qe, o as k, B as H, y as Fe, z as ze, E as Ie } from "./CashierConfirmModal-CoKn35XS.js";
|
|
2
|
+
import { a as Ee, i as Re, $ as Ue, b as He } from "./CashierError-2HPZABjH.js";
|
|
3
|
+
import { d as $, u as Ne, x as je } from "./CashierMethodDetails-CSNVGtP1.js";
|
|
4
4
|
function ee(t, i) {
|
|
5
5
|
Ee(t, i);
|
|
6
6
|
}
|
|
@@ -77,7 +77,7 @@ if (typeof window != "undefined") {
|
|
|
77
77
|
}
|
|
78
78
|
};
|
|
79
79
|
};
|
|
80
|
-
customElements.define = t(customElements.define), import("./CashierVideoModal-
|
|
80
|
+
customElements.define = t(customElements.define), import("./CashierVideoModal-Q13et8h2.js").then(({ default: i }) => {
|
|
81
81
|
!customElements.get("cashier-video-modal") && customElements.define("cashier-video-modal", i.element);
|
|
82
82
|
});
|
|
83
83
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { S as T, b as
|
|
2
|
-
function
|
|
3
|
-
|
|
1
|
+
import { S as T, b as R, s as U, f as p, c as Z, n as m, e as v, l as _, w as j, H as A, B as b, q as n, J as k, m as g, o as C, p as V, z as F, A as x, O as w, E as J } from "./CashierConfirmModal-B74OQHQ9.js";
|
|
2
|
+
function N(s) {
|
|
3
|
+
Z(s, "svelte-1d17c9c", ".CashierVideoWrapper{position:absolute;width:100%;height:100%;left:0;top:0;z-index:8;background-color:var(--mmw--color-grey-light, #f3f6f9)}.CashierVideoHeader{width:100%;height:29px;position:relative;text-transform:uppercase;text-align:right;background-color:var(--mmw--color-grey-light, #f3f6f9);font-size:var(--emw--font-size-medium, 16px);z-index:6}.CashierVideoHeader svg{padding:8px 8px 8px 15px}.CashierVideo video{object-fit:contain;width:100%;height:100%;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.CashierVideo svg{cursor:pointer;margin-left:auto;position:absolute;right:0;z-index:6;padding:5px 13px}");
|
|
4
4
|
}
|
|
5
5
|
function M(s) {
|
|
6
6
|
let e, i, t, o, r, f, u, c = !/*desktopView*/
|
|
@@ -79,14 +79,14 @@ function H(s) {
|
|
|
79
79
|
}
|
|
80
80
|
};
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function O(s) {
|
|
83
83
|
let e, i = (
|
|
84
84
|
/*show*/
|
|
85
85
|
s[3] && M(s)
|
|
86
86
|
);
|
|
87
87
|
return {
|
|
88
88
|
c() {
|
|
89
|
-
i && i.c(), e =
|
|
89
|
+
i && i.c(), e = j();
|
|
90
90
|
},
|
|
91
91
|
m(t, o) {
|
|
92
92
|
i && i.m(t, o), _(t, e, o);
|
|
@@ -102,7 +102,7 @@ function G(s) {
|
|
|
102
102
|
}
|
|
103
103
|
};
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function G(s, e, i) {
|
|
106
106
|
let { clientstyling: t = "" } = e, { clientstylingurl: o = "" } = e, { ismobileview: r } = e, { videosrc: f } = e, u = !0, c = !1, l;
|
|
107
107
|
const d = () => {
|
|
108
108
|
i(3, c = !1), window.postMessage({ type: "ClosedCashierVideoModal" }, window.location.href), window.postMessage({ type: "EnableScroll" }, window.location.href);
|
|
@@ -124,12 +124,12 @@ function I(s, e, i) {
|
|
|
124
124
|
);
|
|
125
125
|
});
|
|
126
126
|
};
|
|
127
|
-
|
|
127
|
+
A(() => (window.addEventListener("message", h, !1), () => {
|
|
128
128
|
window.removeEventListener("message", h);
|
|
129
129
|
}));
|
|
130
130
|
const W = () => d(), q = () => d();
|
|
131
131
|
function B(a) {
|
|
132
|
-
|
|
132
|
+
F[a ? "unshift" : "push"](() => {
|
|
133
133
|
l = a, i(1, l);
|
|
134
134
|
});
|
|
135
135
|
}
|
|
@@ -154,21 +154,21 @@ function I(s, e, i) {
|
|
|
154
154
|
B
|
|
155
155
|
];
|
|
156
156
|
}
|
|
157
|
-
class
|
|
157
|
+
class I extends T {
|
|
158
158
|
constructor(e) {
|
|
159
|
-
super(),
|
|
159
|
+
super(), R(
|
|
160
160
|
this,
|
|
161
161
|
e,
|
|
162
|
-
I,
|
|
163
162
|
G,
|
|
164
|
-
|
|
163
|
+
O,
|
|
164
|
+
U,
|
|
165
165
|
{
|
|
166
166
|
clientstyling: 5,
|
|
167
167
|
clientstylingurl: 6,
|
|
168
168
|
ismobileview: 7,
|
|
169
169
|
videosrc: 0
|
|
170
170
|
},
|
|
171
|
-
|
|
171
|
+
N
|
|
172
172
|
);
|
|
173
173
|
}
|
|
174
174
|
get clientstyling() {
|
|
@@ -196,7 +196,7 @@ class K extends T {
|
|
|
196
196
|
this.$$set({ videosrc: e }), p();
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
|
-
|
|
199
|
+
J(I, { clientstyling: {}, clientstylingurl: {}, ismobileview: {}, videosrc: {} }, [], [], !0);
|
|
200
200
|
export {
|
|
201
|
-
|
|
201
|
+
I as default
|
|
202
202
|
};
|