1(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode("._container_1j14s_2{display:flex;flex-direction:column;gap:16px}._space_1j14s_8{margin:0 4px}._spinner_1j14s_12{height:var(--v1db15e2d)}._wrapper_1j14s_16{display:flex;flex-direction:column;gap:8px}._withdrawalActiveButton_1j14s_22{position:absolute;bottom:20px;left:50%;transform:translate(-50%)}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})(); 2import { defineComponent as J, useCssVars as K, unref as e, toRef as N, reactive as P, ref as $, computed as Q, onBeforeMount as I, onMounted as Z, onBeforeUnmount as x, resolveDirective as ee, openBlock as s, createBlock as i, withCtx as h, createElementVNode as R, normalizeClass as r, createVNode as M, createTextVNode as V, toDisplayString as j, withDirectives as te, createCommentVNode as m, createElementBlock as H, Fragment as ae } from "vue"; 3import { useRouter as se, useRoute as ne } from "vue-router"; 4import { u as oe, f as ie, h as re, b as le, j as de, i as ce, am as ue, an as me, m as pe, L as A, A as he, ao as ye, S as fe, H as we, a7 as ge, ad as Me, o as ve, ap as Se, aq as be, w as D, _ as Ce } from "./package-entrypoint-DERGeUZd.js"; 5import { u as Fe, a as _e } from "./use-history-6Z48a3j0.js"; 6import { u as Ae } from "./use-withdrawal-credentials-DzFkVrG4.js"; 7import { u as De, C as Le } from "./use-withdrawal-submission-B5tIDzIF.js"; 8import { W as We, A as ke } from "./active-withdrawals-modal-BXahY9GN.js"; 9import { W as Ee } from "./withdrawal-form-nUpj_jHP.js"; 10const Be = /* @__PURE__ */ J({ 11 __name: "redirect-base", 12 setup(He) { 13 K((t) => ({ 14 v1db15e2d: e(q).heightPx 15 })); 16 const v = oe(), y = se(), L = ne(), a = ie(), S = N(() => a.paymentMethod), z = re(), l = le(), G = de(), d = ce(), f = Ae(), b = Fe(), c = _e(), W = P(ue({ paymentMethod: S, paymentMethodDetails: N(() => a.paymentMethodDetails) })), w = $(!1), k = $(!1), g = Q(() => L.meta.flow === "cryptobalance"), o = P(De({ isCryptoBalance: g })), E = me(), B = pe(), T = () => { 17 f.setIsReturningFromManager(!0), y.push({ name: D("withdrawalCredentialsPage", g.value) }); 18 }; 19 I(async () => { 20 const t = f.isReturningFromManager; 21 if (f.setIsReturningFromManager(!1), l.isFeatureEnabled("BILLING-9781")) { 22 try { 23 await B.fetchPaymentMethodDetails(); 24 } catch (u) { 25 G.createNotification({ 26 title: v.t("common.depositMessageErrorModal.title"), 27 content: v.t("common.depositMessageErrorModal.tryAgain") 28 }), A.captureError(u), y.push({ name: L.meta.backRoute }); 29 return; 30 } 31 if (!a.paymentMethodDetails) 32 return; 33 l.isFeatureEnabled("15285") && a.isCredentialsSavingAllowed || E.prefillDetailedFields(a.paymentMethodDetails).catch((u) => { 34 A.captureError(u); 35 }), t || (d.changeNewFormatFields(a.paymentMethodDetails.fields ?? []), d.changeAmount(a.paymentMethodDetails.prefilledAmount)); 36 } 37 const n = atob("MXdpbl9jYXNo"); 38 if (a.paymentMethodName === n) 39 try { 40 w.value = !0; 41 const O = (await he.prepareWithdrawal({ payment_system: a.paymentMethodName })).fields.filter( 42 (p) => p.errors.length > 0 43 ).filter((p) => p.name !== "amount"), _ = d.mapFields(d.mapAdditionalFields(O)); 44 if (!_.length) 45 return; 46 const U = d.fields.filter((p) => !_.some((Y) => Y.name === p.name)); 47 d.setFields([...U, ..._]); 48 } finally { 49 w.value = !1; 50 } 51 }), I(() => { 52 b.loadActiveWithdrawals(); 53 }), Z(() => { 54 !l.isFeatureEnabled("BILLING-9781") && !(l.isFeatureEnabled("15285") && a.isCredentialsSavingAllowed) && E.prefillFields(S.value).catch((t) => { 55 A.captureError(t); 56 }); 57 }), x(() => { 58 l.isFeatureEnabled("BILLING-9781") && B.cancelDetailsRequest(); 59 }); 60 const q = ye(), C = (t) => { 61 k.value = t; 62 }, X = (t) => { 63 z.setSelectedTransactionItem(t), C(!1), y.push({ 64 name: D("withdrawalStatusPage", g.value), 65 params: { withdrawalId: String(t.id) } 66 }); 67 }; 68 return (t, n) => { 69 const u = ee("sanitize-html"); 70 return s(), i(e(fe), null, { 71 default: h(() => [ 72 R("div", { 73 class: r(t.$style.container) 74 }, [ 75 M(e(we), { 76 "is-loading": e(a).isFetchingPaymentMethodDetails 77 }, { 78 default: h(() => [ 79 M(e(ge), { 80 class: r(t.$style.space), 81 "payment-method": S.value, 82 "payment-method-details": e(a).paymentMethodDetails 83 }, { 84 default: h(() => [ 85 V(j(e(a).paymentLabel), 1) 86 ]), 87 _: 1 88 }, 8, ["class", "payment-method", "payment-method-details"]) 89 ]), 90 _: 1 91 }, 8, ["is-loading"]), 92 W.annotation ? (s(), i(e(Me), { 93 key: 0, 94 class: r(t.$style.space), 95 "data-testid": "info-banner-long-proceeding", 96 type: "informative" 97 }, { 98 default: h(() => [ 99 te(R("span", null, null, 512), [ 100 [u, W.annotation] 101 ]) 102 ]), 103 _: 1 104 }, 8, ["class"])) : m("", !0), 105 w.value || e(a).isFetchingPaymentMethodDetails ? (s(), i(e(ve), { 106 key: 1, 107 class: r(t.$style.spinner) 108 }, null, 8, ["class"])) : (s(), i(e(Ee), { 109 key: 2, 110 class: r(t.$style.space), 111 onOpenCredentialManager: T 112 }, null, 8, ["class"])) 113 ], 2), 114 !w.value && !e(a).isFetchingPaymentMethodDetails ? (s(), H("div", { 115 key: 0, 116 class: r([t.$style.wrapper, t.$style.space]) 117 }, [ 118 M(e(Se), { 119 "data-testid": "withdrawal-create-button", 120 "is-disabled": e(f).isLoadingCredentialData, 121 "is-loading": o.isSubmitting, 122 onClick: o.submitWithdrawal 123 }, { 124 default: h(() => [ 125 V(j(e(v).t("withdrawal.button")), 1) 126 ]), 127 _: 1 128 }, 8, ["is-disabled", "is-loading", "onClick"]), 129 M(e(be), { 130 onClick: n[0] || (n[0] = (F) => e(y).push({ 131 name: e(D)("withdrawalRedirectInstructionPage", g.value) 132 })) 133 }) 134 ], 2)) : m("", !0), 135 e(l).isFeatureEnabled("12075") ? (s(), H(ae, { key: 1 }, [ 136 e(c).currentList.totalCount ? (s(), i(We, { 137 key: 0, 138 class: r(t.$style.withdrawalActiveButton), 139 count: e(c).currentList.totalCount, 140 onClick: n[1] || (n[1] = (F) => C(!0)) 141 }, null, 8, ["class", "count"])) : m("", !0), 142 k.value ? (s(), i(e(ke), { 143 key: 1, 144 "has-error": e(c).currentList.hasError, 145 "is-loading-more": e(c).isLoadingMore, 146 items: e(c).currentList.items ?? [], 147 "total-count": e(c).currentList.totalCount, 148 onClose: n[2] || (n[2] = (F) => C(!1)), 149 onLoadMore: e(b).loadMore, 150 onRetry: e(b).retryLoad, 151 onViewStatus: X 152 }, null, 8, ["has-error", "is-loading-more", "items", "total-count", "onLoadMore", "onRetry"])) : m("", !0)
153 ], 64)) : m("", !0), 154 o.isWarningVisible ? (s(), i(e(Le), { 155 key: 2, 156 description: o.warningMessage, 157 title: o.warningTitle, 158 onClose: o.continueCreateWithdrawal, 159 onSubmit: o.reviseWithdrawalForm 160 }, null, 8, ["description", "title", "onClose", "onSubmit"])) : m("", !0) 161 ]), 162 _: 1 163 }); 164 }; 165 } 166}), Ne = "_container_1j14s_2", Pe = "_space_1j14s_8", $e = "_spinner_1j14s_12", Ie = "_wrapper_1j14s_16", Re = "_withdrawalActiveButton_1j14s_22", Ve = { 167 container: Ne, 168 space: Pe, 169 spinner: $e, 170 wrapper: Ie, 171 withdrawalActiveButton: Re 172}, je = { 173 $style: Ve 174}, Je = /* @__PURE__ */ Ce(Be, [["__cssModules", je]]); 175export { 176 Je as default 177};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.