@feedmepos/mf-payment 1.1.10 → 1.1.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/dist/{PayoutAccount-DS8uWdg6.js → PayoutAccount-CTc_keTF.js} +145 -144
- package/dist/{PayoutAccount-DYaDyUv-.js → PayoutAccount-DWkHIlnR.js} +10 -10
- package/dist/{PayoutAccountSetting-CaWSuWfP.js → PayoutAccountSetting-D3HY4PDv.js} +3 -3
- package/dist/{Restaurant-DQVYjNCS.js → Restaurant-C1UOA30R.js} +4 -4
- package/dist/{RestaurantSetting-CIIbhon-.js → RestaurantSetting-CLESbc-k.js} +3 -3
- package/dist/{Settlement-B1Wxz1Ud.js → Settlement-B-VTEGv3.js} +3 -3
- package/dist/{Settlement-BYpA6n3I.js → Settlement-CBjer_vz.js} +3 -3
- package/dist/{SettlementTransactions-Cn894u3m.js → SettlementTransactions-8Ni1PBC3.js} +3 -3
- package/dist/{SettlementTransactions-SPDIlLfj.js → SettlementTransactions-BtqjdoD-.js} +3 -3
- package/dist/{Terminal-DwRmKAkV.js → Terminal-B8MrsXIH.js} +5 -5
- package/dist/{TerminalSetting-BXjGS7gr.js → TerminalSetting-BygvpwIL.js} +3 -3
- package/dist/{Transaction-DfCzQWjl.js → Transaction-B5YVsVvG.js} +5 -5
- package/dist/{Transaction-CZXLiiK_.js → Transaction-ix13hGcz.js} +6 -6
- package/dist/{TransactionOld-V05PFuAs.js → TransactionOld-CXFhT24B.js} +4 -4
- package/dist/{TransactionTable.vue_vue_type_script_setup_true_lang-pP3veVBQ.js → TransactionTable.vue_vue_type_script_setup_true_lang-Dk7arqJI.js} +3 -3
- package/dist/{app-Cwh0hT_9.js → app-B0_3RbEW.js} +209 -209
- package/dist/app.js +1 -1
- package/dist/{assets-A_2acaHr.js → assets-C58GFk20.js} +1 -1
- package/dist/{grafana-S2Pyvvsb.js → grafana-Bpt1OpRK.js} +1 -1
- package/dist/{index-DRMgFTyD.js → index-BVK8M2LJ.js} +1 -1
- package/dist/{index-DlkaQaXu.js → index-Bk6s_L_c.js} +1 -1
- package/dist/{index-B45raqGN.js → index-CjBaaM9g.js} +1712 -1712
- package/dist/{index-Dwo99xiS.js → index-Ds_NNeYY.js} +1 -1
- package/dist/{index-nh9QzbMv.js → index-DwfuNOe0.js} +1 -1
- package/dist/{index-BO9tnr5e.js → index-xlttrNaM.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-_ttdMw6x.js → index.vue_vue_type_script_setup_true_lang-CORjDlAI.js} +1 -1
- package/dist/model/payout-account.d.ts +30 -11
- package/dist/package.json +1 -1
- package/dist/{payout-account-CqkVIkNF.js → payout-account-D-LdBTo2.js} +193 -182
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/package.json +1 -1
@@ -1,5 +1,6 @@
|
|
1
|
-
import { _ as
|
2
|
-
import { c as
|
1
|
+
import { _ as Je, C as Qe, r as Ee, S as et, g as re, a as tt, b as nt, c as _e, F as rt, d as st, e as it } from "./app-B0_3RbEW.js";
|
2
|
+
import { c as ot, a as at, B as ut, _ as Y } from "./index-CjBaaM9g.js";
|
3
|
+
import { useCoreStore as ct } from "@feedmepos/mf-common";
|
3
4
|
/**
|
4
5
|
* @license
|
5
6
|
* Copyright 2017 Google LLC
|
@@ -16,7 +17,7 @@ import { c as at, a as ut, _ as Y, m as ct } from "./index-B45raqGN.js";
|
|
16
17
|
* See the License for the specific language governing permissions and
|
17
18
|
* limitations under the License.
|
18
19
|
*/
|
19
|
-
const
|
20
|
+
const xe = "firebasestorage.googleapis.com", Ce = "storageBucket", lt = 2 * 60 * 1e3, ht = 10 * 60 * 1e3;
|
20
21
|
/**
|
21
22
|
* @license
|
22
23
|
* Copyright 2017 Google LLC
|
@@ -33,7 +34,7 @@ const De = "firebasestorage.googleapis.com", xe = "storageBucket", lt = 2 * 60 *
|
|
33
34
|
* See the License for the specific language governing permissions and
|
34
35
|
* limitations under the License.
|
35
36
|
*/
|
36
|
-
class
|
37
|
+
class R extends rt {
|
37
38
|
/**
|
38
39
|
* @param code - A `StorageErrorCode` string to be prefixed with 'storage/' and
|
39
40
|
* added to the end of the message.
|
@@ -41,7 +42,7 @@ class y extends it {
|
|
41
42
|
* @param status_ - Corresponding HTTP Status Code
|
42
43
|
*/
|
43
44
|
constructor(t, n, r = 0) {
|
44
|
-
super(de(t), `Firebase Storage: ${n} (${de(t)})`), this.status_ = r, this.customData = { serverResponse: null }, this._baseMessage = this.message, Object.setPrototypeOf(this,
|
45
|
+
super(de(t), `Firebase Storage: ${n} (${de(t)})`), this.status_ = r, this.customData = { serverResponse: null }, this._baseMessage = this.message, Object.setPrototypeOf(this, R.prototype);
|
45
46
|
}
|
46
47
|
get status() {
|
47
48
|
return this.status_;
|
@@ -66,71 +67,71 @@ class y extends it {
|
|
66
67
|
${this.customData.serverResponse}` : this.message = this._baseMessage;
|
67
68
|
}
|
68
69
|
}
|
69
|
-
var
|
70
|
+
var y;
|
70
71
|
(function(e) {
|
71
72
|
e.UNKNOWN = "unknown", e.OBJECT_NOT_FOUND = "object-not-found", e.BUCKET_NOT_FOUND = "bucket-not-found", e.PROJECT_NOT_FOUND = "project-not-found", e.QUOTA_EXCEEDED = "quota-exceeded", e.UNAUTHENTICATED = "unauthenticated", e.UNAUTHORIZED = "unauthorized", e.UNAUTHORIZED_APP = "unauthorized-app", e.RETRY_LIMIT_EXCEEDED = "retry-limit-exceeded", e.INVALID_CHECKSUM = "invalid-checksum", e.CANCELED = "canceled", e.INVALID_EVENT_NAME = "invalid-event-name", e.INVALID_URL = "invalid-url", e.INVALID_DEFAULT_BUCKET = "invalid-default-bucket", e.NO_DEFAULT_BUCKET = "no-default-bucket", e.CANNOT_SLICE_BLOB = "cannot-slice-blob", e.SERVER_FILE_WRONG_SIZE = "server-file-wrong-size", e.NO_DOWNLOAD_URL = "no-download-url", e.INVALID_ARGUMENT = "invalid-argument", e.INVALID_ARGUMENT_COUNT = "invalid-argument-count", e.APP_DELETED = "app-deleted", e.INVALID_ROOT_OPERATION = "invalid-root-operation", e.INVALID_FORMAT = "invalid-format", e.INTERNAL_ERROR = "internal-error", e.UNSUPPORTED_ENVIRONMENT = "unsupported-environment";
|
72
|
-
})(
|
73
|
+
})(y || (y = {}));
|
73
74
|
function de(e) {
|
74
75
|
return "storage/" + e;
|
75
76
|
}
|
76
|
-
function
|
77
|
+
function be() {
|
77
78
|
const e = "An unknown error occurred, please check the error payload for server response.";
|
78
|
-
return new y
|
79
|
+
return new R(y.UNKNOWN, e);
|
79
80
|
}
|
80
81
|
function dt(e) {
|
81
|
-
return new y
|
82
|
+
return new R(y.OBJECT_NOT_FOUND, "Object '" + e + "' does not exist.");
|
82
83
|
}
|
83
84
|
function ft(e) {
|
84
|
-
return new y
|
85
|
+
return new R(y.QUOTA_EXCEEDED, "Quota for bucket '" + e + "' exceeded, please view quota on https://firebase.google.com/pricing/.");
|
85
86
|
}
|
86
87
|
function pt() {
|
87
88
|
const e = "User is not authenticated, please authenticate using Firebase Authentication and try again.";
|
88
|
-
return new y
|
89
|
+
return new R(y.UNAUTHENTICATED, e);
|
89
90
|
}
|
90
91
|
function _t() {
|
91
|
-
return new y
|
92
|
+
return new R(y.UNAUTHORIZED_APP, "This app does not have permission to access Firebase Storage on this project.");
|
92
93
|
}
|
93
94
|
function mt(e) {
|
94
|
-
return new y
|
95
|
+
return new R(y.UNAUTHORIZED, "User does not have permission to access '" + e + "'.");
|
95
96
|
}
|
96
97
|
function gt() {
|
97
|
-
return new y
|
98
|
+
return new R(y.RETRY_LIMIT_EXCEEDED, "Max retry time for operation exceeded, please try again.");
|
98
99
|
}
|
99
100
|
function bt() {
|
100
|
-
return new y
|
101
|
+
return new R(y.CANCELED, "User canceled the upload/download.");
|
101
102
|
}
|
102
103
|
function wt(e) {
|
103
|
-
return new y
|
104
|
+
return new R(y.INVALID_URL, "Invalid URL '" + e + "'.");
|
104
105
|
}
|
105
106
|
function Tt(e) {
|
106
|
-
return new y
|
107
|
-
}
|
108
|
-
function Rt() {
|
109
|
-
return new y(R.NO_DEFAULT_BUCKET, "No default bucket found. Did you set the '" + xe + "' property when initializing the app?");
|
107
|
+
return new R(y.INVALID_DEFAULT_BUCKET, "Invalid default bucket '" + e + "'.");
|
110
108
|
}
|
111
109
|
function yt() {
|
112
|
-
return new y
|
110
|
+
return new R(y.NO_DEFAULT_BUCKET, "No default bucket found. Did you set the '" + Ce + "' property when initializing the app?");
|
111
|
+
}
|
112
|
+
function Rt() {
|
113
|
+
return new R(y.CANNOT_SLICE_BLOB, "Cannot slice blob for upload. Please retry the upload.");
|
113
114
|
}
|
114
115
|
function kt() {
|
115
|
-
return new y
|
116
|
+
return new R(y.NO_DOWNLOAD_URL, "The given file does not have any download URLs.");
|
116
117
|
}
|
117
118
|
function Ot(e) {
|
118
|
-
return new y
|
119
|
+
return new R(y.UNSUPPORTED_ENVIRONMENT, `${e} is missing. Make sure to install the required polyfills. See https://firebase.google.com/docs/web/environments-js-sdk#polyfills for more information.`);
|
119
120
|
}
|
120
121
|
function me(e) {
|
121
|
-
return new y
|
122
|
+
return new R(y.INVALID_ARGUMENT, e);
|
122
123
|
}
|
123
|
-
function
|
124
|
-
return new y
|
124
|
+
function Me() {
|
125
|
+
return new R(y.APP_DELETED, "The Firebase app was deleted.");
|
125
126
|
}
|
126
127
|
function Et(e) {
|
127
|
-
return new y
|
128
|
+
return new R(y.INVALID_ROOT_OPERATION, "The operation '" + e + "' cannot be performed on a root reference, create a non-root reference using child, such as .child('file.png').");
|
128
129
|
}
|
129
130
|
function te(e, t) {
|
130
|
-
return new y
|
131
|
+
return new R(y.INVALID_FORMAT, "String does not match format '" + e + "': " + t);
|
131
132
|
}
|
132
133
|
function ee(e) {
|
133
|
-
throw new y
|
134
|
+
throw new R(y.INTERNAL_ERROR, "Internal error: " + e);
|
134
135
|
}
|
135
136
|
/**
|
136
137
|
* @license
|
@@ -186,11 +187,11 @@ class x {
|
|
186
187
|
function m($) {
|
187
188
|
$.path_ = decodeURIComponent($.path);
|
188
189
|
}
|
189
|
-
const T = "v[A-Za-z0-9_]+", b = n.replace(/[.]/g, "\\."), O = "(/([^?#]*).*)?$", E = new RegExp(`^https?://${b}/${T}/b/${s}/o${O}`, "i"),
|
190
|
+
const T = "v[A-Za-z0-9_]+", b = n.replace(/[.]/g, "\\."), O = "(/([^?#]*).*)?$", E = new RegExp(`^https?://${b}/${T}/b/${s}/o${O}`, "i"), A = { bucket: 1, path: 3 }, F = n === xe ? "(?:storage.googleapis.com|storage.cloud.google.com)" : n, U = "([^?#]*)", H = new RegExp(`^https?://${F}/${s}/${U}`, "i"), P = [
|
190
191
|
{ regex: h, indices: d, postModify: i },
|
191
192
|
{
|
192
193
|
regex: E,
|
193
|
-
indices:
|
194
|
+
indices: A,
|
194
195
|
postModify: m
|
195
196
|
},
|
196
197
|
{
|
@@ -241,7 +242,7 @@ class St {
|
|
241
242
|
* See the License for the specific language governing permissions and
|
242
243
|
* limitations under the License.
|
243
244
|
*/
|
244
|
-
function
|
245
|
+
function vt(e, t, n) {
|
245
246
|
let r = 1, s = null, i = null, o = !1, h = 0;
|
246
247
|
function d() {
|
247
248
|
return h === 2;
|
@@ -275,15 +276,15 @@ function At(e, t, n) {
|
|
275
276
|
let P;
|
276
277
|
h === 1 ? (h = 2, P = 0) : P = (r + Math.random()) * 1e3, b(P);
|
277
278
|
}
|
278
|
-
let
|
279
|
+
let A = !1;
|
279
280
|
function F(U) {
|
280
|
-
|
281
|
+
A || (A = !0, O(), !m && (s !== null ? (U || (h = 2), clearTimeout(s), b(0)) : U || (h = 1)));
|
281
282
|
}
|
282
283
|
return b(0), i = setTimeout(() => {
|
283
284
|
o = !0, F(!0);
|
284
285
|
}, n), F;
|
285
286
|
}
|
286
|
-
function
|
287
|
+
function At(e) {
|
287
288
|
e(!1);
|
288
289
|
}
|
289
290
|
/**
|
@@ -308,16 +309,16 @@ function Ut(e) {
|
|
308
309
|
function $t(e) {
|
309
310
|
return typeof e == "object" && !Array.isArray(e);
|
310
311
|
}
|
311
|
-
function
|
312
|
+
function we(e) {
|
312
313
|
return typeof e == "string" || e instanceof String;
|
313
314
|
}
|
314
|
-
function
|
315
|
-
return
|
315
|
+
function Se(e) {
|
316
|
+
return Te() && e instanceof Blob;
|
316
317
|
}
|
317
|
-
function
|
318
|
+
function Te() {
|
318
319
|
return typeof Blob < "u";
|
319
320
|
}
|
320
|
-
function
|
321
|
+
function ve(e, t, n, r) {
|
321
322
|
if (r < t)
|
322
323
|
throw me(`Invalid value for '${e}'. Expected ${t} or greater.`);
|
323
324
|
if (r > n)
|
@@ -339,11 +340,11 @@ function Se(e, t, n, r) {
|
|
339
340
|
* See the License for the specific language governing permissions and
|
340
341
|
* limitations under the License.
|
341
342
|
*/
|
342
|
-
function
|
343
|
+
function he(e, t, n) {
|
343
344
|
let r = t;
|
344
345
|
return n == null && (r = `https://${t}`), `${n}://${r}/v0${e}`;
|
345
346
|
}
|
346
|
-
function
|
347
|
+
function Le(e) {
|
347
348
|
const t = encodeURIComponent;
|
348
349
|
let n = "?";
|
349
350
|
for (const r in e)
|
@@ -400,8 +401,8 @@ function Nt(e, t) {
|
|
400
401
|
*/
|
401
402
|
class It {
|
402
403
|
constructor(t, n, r, s, i, o, h, d, m, T, b, O = !0) {
|
403
|
-
this.url_ = t, this.method_ = n, this.headers_ = r, this.body_ = s, this.successCodes_ = i, this.additionalRetryCodes_ = o, this.callback_ = h, this.errorCallback_ = d, this.timeout_ = m, this.progressCallback_ = T, this.connectionFactory_ = b, this.retry = O, this.pendingConnection_ = null, this.backoffId_ = null, this.canceled_ = !1, this.appDelete_ = !1, this.promise_ = new Promise((E,
|
404
|
-
this.resolve_ = E, this.reject_ =
|
404
|
+
this.url_ = t, this.method_ = n, this.headers_ = r, this.body_ = s, this.successCodes_ = i, this.additionalRetryCodes_ = o, this.callback_ = h, this.errorCallback_ = d, this.timeout_ = m, this.progressCallback_ = T, this.connectionFactory_ = b, this.retry = O, this.pendingConnection_ = null, this.backoffId_ = null, this.canceled_ = !1, this.appDelete_ = !1, this.promise_ = new Promise((E, A) => {
|
405
|
+
this.resolve_ = E, this.reject_ = A, this.start_();
|
405
406
|
});
|
406
407
|
}
|
407
408
|
/**
|
@@ -440,17 +441,17 @@ class It {
|
|
440
441
|
o(d);
|
441
442
|
}
|
442
443
|
else if (h !== null) {
|
443
|
-
const d =
|
444
|
+
const d = be();
|
444
445
|
d.serverResponse = h.getErrorText(), this.errorCallback_ ? o(this.errorCallback_(h, d)) : o(d);
|
445
446
|
} else if (s.canceled) {
|
446
|
-
const d = this.appDelete_ ?
|
447
|
+
const d = this.appDelete_ ? Me() : bt();
|
447
448
|
o(d);
|
448
449
|
} else {
|
449
450
|
const d = gt();
|
450
451
|
o(d);
|
451
452
|
}
|
452
453
|
};
|
453
|
-
this.canceled_ ? n(!1, new ue(!1, null, !0)) : this.backoffId_ =
|
454
|
+
this.canceled_ ? n(!1, new ue(!1, null, !0)) : this.backoffId_ = vt(t, n, this.timeout_);
|
454
455
|
}
|
455
456
|
/** @inheritDoc */
|
456
457
|
getPromise() {
|
@@ -458,7 +459,7 @@ class It {
|
|
458
459
|
}
|
459
460
|
/** @inheritDoc */
|
460
461
|
cancel(t) {
|
461
|
-
this.canceled_ = !0, this.appDelete_ = t || !1, this.backoffId_ !== null &&
|
462
|
+
this.canceled_ = !0, this.appDelete_ = t || !1, this.backoffId_ !== null && At(this.backoffId_), this.pendingConnection_ !== null && this.pendingConnection_.abort();
|
462
463
|
}
|
463
464
|
}
|
464
465
|
class ue {
|
@@ -479,7 +480,7 @@ function Ct(e, t) {
|
|
479
480
|
t !== null && (e["X-Firebase-AppCheck"] = t);
|
480
481
|
}
|
481
482
|
function Mt(e, t, n, r, s, i, o = !0) {
|
482
|
-
const h =
|
483
|
+
const h = Le(e.urlParams), d = e.url + h, m = Object.assign({}, e.headers);
|
483
484
|
return xt(m, t), Pt(m, n), Dt(m, i), Ct(m, r), new It(d, e.method, m, e.body, e.successCodes, e.additionalRetryCodes, e.handler, e.errorHandler, e.timeout, e.progressCallback, s, o);
|
484
485
|
}
|
485
486
|
/**
|
@@ -509,9 +510,9 @@ function Bt(...e) {
|
|
509
510
|
n.append(e[r]);
|
510
511
|
return n.getBlob();
|
511
512
|
} else {
|
512
|
-
if (
|
513
|
+
if (Te())
|
513
514
|
return new Blob(e);
|
514
|
-
throw new y
|
515
|
+
throw new R(y.UNSUPPORTED_ENVIRONMENT, "This browser doesn't seem to support creating Blobs");
|
515
516
|
}
|
516
517
|
}
|
517
518
|
function Ft(e, t, n) {
|
@@ -596,16 +597,16 @@ class fe {
|
|
596
597
|
function Ht(e, t) {
|
597
598
|
switch (e) {
|
598
599
|
case B.RAW:
|
599
|
-
return new fe(
|
600
|
+
return new fe(Be(t));
|
600
601
|
case B.BASE64:
|
601
602
|
case B.BASE64URL:
|
602
|
-
return new fe(
|
603
|
+
return new fe(Fe(e, t));
|
603
604
|
case B.DATA_URL:
|
604
605
|
return new fe(Vt(t), Yt(t));
|
605
606
|
}
|
606
|
-
throw
|
607
|
+
throw be();
|
607
608
|
}
|
608
|
-
function
|
609
|
+
function Be(e) {
|
609
610
|
const t = [];
|
610
611
|
for (let n = 0; n < e.length; n++) {
|
611
612
|
let r = e.charCodeAt(n);
|
@@ -632,9 +633,9 @@ function Wt(e) {
|
|
632
633
|
} catch {
|
633
634
|
throw te(B.DATA_URL, "Malformed data URL.");
|
634
635
|
}
|
635
|
-
return
|
636
|
+
return Be(t);
|
636
637
|
}
|
637
|
-
function
|
638
|
+
function Fe(e, t) {
|
638
639
|
switch (e) {
|
639
640
|
case B.BASE64: {
|
640
641
|
const s = t.indexOf("-") !== -1, i = t.indexOf("_") !== -1;
|
@@ -661,7 +662,7 @@ function Be(e, t) {
|
|
661
662
|
r[s] = n.charCodeAt(s);
|
662
663
|
return r;
|
663
664
|
}
|
664
|
-
class
|
665
|
+
class je {
|
665
666
|
constructor(t) {
|
666
667
|
this.base64 = !1, this.contentType = null;
|
667
668
|
const n = t.match(/^data:([^,]+)?,/);
|
@@ -672,11 +673,11 @@ class Fe {
|
|
672
673
|
}
|
673
674
|
}
|
674
675
|
function Vt(e) {
|
675
|
-
const t = new
|
676
|
-
return t.base64 ?
|
676
|
+
const t = new je(e);
|
677
|
+
return t.base64 ? Fe(B.BASE64, t.rest) : Wt(t.rest);
|
677
678
|
}
|
678
679
|
function Yt(e) {
|
679
|
-
return new
|
680
|
+
return new je(e).contentType;
|
680
681
|
}
|
681
682
|
function qt(e, t) {
|
682
683
|
return e.length >= t.length ? e.substring(e.length - t.length) === t : !1;
|
@@ -700,7 +701,7 @@ function qt(e, t) {
|
|
700
701
|
class V {
|
701
702
|
constructor(t, n) {
|
702
703
|
let r = 0, s = "";
|
703
|
-
|
704
|
+
Se(t) ? (this.data_ = t, r = t.size, s = t.type) : t instanceof ArrayBuffer ? (n ? this.data_ = new Uint8Array(t) : (this.data_ = new Uint8Array(t.byteLength), this.data_.set(new Uint8Array(t))), r = this.data_.length) : t instanceof Uint8Array && (n ? this.data_ = t : (this.data_ = new Uint8Array(t.length), this.data_.set(t)), r = t.length), this.size_ = r, this.type_ = s;
|
704
705
|
}
|
705
706
|
size() {
|
706
707
|
return this.size_;
|
@@ -709,7 +710,7 @@ class V {
|
|
709
710
|
return this.type_;
|
710
711
|
}
|
711
712
|
slice(t, n) {
|
712
|
-
if (
|
713
|
+
if (Se(this.data_)) {
|
713
714
|
const r = this.data_, s = Ft(r, t, n);
|
714
715
|
return s === null ? null : new V(s);
|
715
716
|
} else {
|
@@ -718,11 +719,11 @@ class V {
|
|
718
719
|
}
|
719
720
|
}
|
720
721
|
static getBlob(...t) {
|
721
|
-
if (
|
722
|
+
if (Te()) {
|
722
723
|
const n = t.map((r) => r instanceof V ? r.data_ : r);
|
723
724
|
return new V(Bt.apply(null, n));
|
724
725
|
} else {
|
725
|
-
const n = t.map((o) =>
|
726
|
+
const n = t.map((o) => we(o) ? Ht(B.RAW, o).data : o.data_);
|
726
727
|
let r = 0;
|
727
728
|
n.forEach((o) => {
|
728
729
|
r += o.byteLength;
|
@@ -755,7 +756,7 @@ class V {
|
|
755
756
|
* See the License for the specific language governing permissions and
|
756
757
|
* limitations under the License.
|
757
758
|
*/
|
758
|
-
function
|
759
|
+
function He(e) {
|
759
760
|
let t;
|
760
761
|
try {
|
761
762
|
t = JSON.parse(e);
|
@@ -790,7 +791,7 @@ function Xt(e, t) {
|
|
790
791
|
const n = t.split("/").filter((r) => r.length > 0).join("/");
|
791
792
|
return e.length === 0 ? n : e + "/" + n;
|
792
793
|
}
|
793
|
-
function
|
794
|
+
function We(e) {
|
794
795
|
const t = e.lastIndexOf("/", e.length - 2);
|
795
796
|
return t === -1 ? e : e.slice(t + 1);
|
796
797
|
}
|
@@ -820,9 +821,9 @@ class I {
|
|
820
821
|
}
|
821
822
|
let ce = null;
|
822
823
|
function Kt(e) {
|
823
|
-
return !
|
824
|
+
return !we(e) || e.length < 2 ? e : We(e);
|
824
825
|
}
|
825
|
-
function
|
826
|
+
function Ve() {
|
826
827
|
if (ce)
|
827
828
|
return ce;
|
828
829
|
const e = [];
|
@@ -855,24 +856,24 @@ function Jt(e, t, n) {
|
|
855
856
|
}
|
856
857
|
return Zt(r, e), r;
|
857
858
|
}
|
858
|
-
function
|
859
|
-
const r =
|
859
|
+
function Ye(e, t, n) {
|
860
|
+
const r = He(t);
|
860
861
|
return r === null ? null : Jt(e, r, n);
|
861
862
|
}
|
862
863
|
function Qt(e, t, n, r) {
|
863
|
-
const s =
|
864
|
-
if (s === null || !
|
864
|
+
const s = He(t);
|
865
|
+
if (s === null || !we(s.downloadTokens))
|
865
866
|
return null;
|
866
867
|
const i = s.downloadTokens;
|
867
868
|
if (i.length === 0)
|
868
869
|
return null;
|
869
870
|
const o = encodeURIComponent;
|
870
871
|
return i.split(",").map((m) => {
|
871
|
-
const T = e.bucket, b = e.fullPath, O = "/b/" + o(T) + "/o/" + o(b), E =
|
872
|
+
const T = e.bucket, b = e.fullPath, O = "/b/" + o(T) + "/o/" + o(b), E = he(O, n, r), A = Le({
|
872
873
|
alt: "media",
|
873
874
|
token: m
|
874
875
|
});
|
875
|
-
return E +
|
876
|
+
return E + A;
|
876
877
|
})[0];
|
877
878
|
}
|
878
879
|
function en(e, t) {
|
@@ -883,7 +884,7 @@ function en(e, t) {
|
|
883
884
|
}
|
884
885
|
return JSON.stringify(n);
|
885
886
|
}
|
886
|
-
class
|
887
|
+
class ye {
|
887
888
|
constructor(t, n, r, s) {
|
888
889
|
this.url = t, this.method = n, this.handler = r, this.timeout = s, this.urlParams = {}, this.headers = {}, this.body = null, this.errorHandler = null, this.progressCallback = null, this.successCodes = [200], this.additionalRetryCodes = [];
|
889
890
|
}
|
@@ -904,33 +905,33 @@ class Te {
|
|
904
905
|
* See the License for the specific language governing permissions and
|
905
906
|
* limitations under the License.
|
906
907
|
*/
|
907
|
-
function
|
908
|
+
function qe(e) {
|
908
909
|
if (!e)
|
909
|
-
throw
|
910
|
+
throw be();
|
910
911
|
}
|
911
912
|
function tn(e, t) {
|
912
913
|
function n(r, s) {
|
913
|
-
const i =
|
914
|
-
return
|
914
|
+
const i = Ye(e, s, t);
|
915
|
+
return qe(i !== null), i;
|
915
916
|
}
|
916
917
|
return n;
|
917
918
|
}
|
918
919
|
function nn(e, t) {
|
919
920
|
function n(r, s) {
|
920
|
-
const i =
|
921
|
-
return
|
921
|
+
const i = Ye(e, s, t);
|
922
|
+
return qe(i !== null), Qt(i, s, e.host, e._protocol);
|
922
923
|
}
|
923
924
|
return n;
|
924
925
|
}
|
925
|
-
function
|
926
|
+
function ze(e) {
|
926
927
|
function t(n, r) {
|
927
928
|
let s;
|
928
929
|
return n.getStatus() === 401 ? /* This exact message string is the only consistent part of the */ /* server's error response that identifies it as an App Check error. */ n.getErrorText().includes("Firebase App Check token is invalid") ? s = _t() : s = pt() : n.getStatus() === 402 ? s = ft(e.bucket) : n.getStatus() === 403 ? s = mt(e.path) : s = r, s.status = n.getStatus(), s.serverResponse = r.serverResponse, s;
|
929
930
|
}
|
930
931
|
return t;
|
931
932
|
}
|
932
|
-
function
|
933
|
-
const t =
|
933
|
+
function Xe(e) {
|
934
|
+
const t = ze(e);
|
934
935
|
function n(r, s) {
|
935
936
|
let i = t(r, s);
|
936
937
|
return r.getStatus() === 404 && (i = dt(e.path)), i.serverResponse = s.serverResponse, i;
|
@@ -938,15 +939,15 @@ function ze(e) {
|
|
938
939
|
return n;
|
939
940
|
}
|
940
941
|
function rn(e, t, n) {
|
941
|
-
const r = t.fullServerUrl(), s =
|
942
|
-
return h.errorHandler =
|
942
|
+
const r = t.fullServerUrl(), s = he(r, e.host, e._protocol), i = "GET", o = e.maxOperationRetryTime, h = new ye(s, i, nn(e, n), o);
|
943
|
+
return h.errorHandler = Xe(t), h;
|
943
944
|
}
|
944
945
|
function sn(e, t) {
|
945
|
-
const n = t.fullServerUrl(), r =
|
946
|
+
const n = t.fullServerUrl(), r = he(n, e.host, e._protocol), s = "DELETE", i = e.maxOperationRetryTime;
|
946
947
|
function o(d, m) {
|
947
948
|
}
|
948
|
-
const h = new
|
949
|
-
return h.successCodes = [200, 204], h.errorHandler =
|
949
|
+
const h = new ye(r, s, o, i);
|
950
|
+
return h.successCodes = [200, 204], h.errorHandler = Xe(t), h;
|
950
951
|
}
|
951
952
|
function on(e, t) {
|
952
953
|
return e && e.contentType || t && t.type() || "application/octet-stream";
|
@@ -977,9 +978,9 @@ Content-Type: ` + m.contentType + `\r
|
|
977
978
|
`, O = `\r
|
978
979
|
--` + d + "--", E = V.getBlob(b, r, O);
|
979
980
|
if (E === null)
|
980
|
-
throw
|
981
|
-
const
|
982
|
-
return j.urlParams =
|
981
|
+
throw Rt();
|
982
|
+
const A = { name: m.fullPath }, F = he(i, e.host, e._protocol), U = "POST", H = e.maxUploadRetryTime, j = new ye(F, U, tn(e, n), H);
|
983
|
+
return j.urlParams = A, j.headers = o, j.body = E.uploadData(), j.errorHandler = ze(t), j;
|
983
984
|
}
|
984
985
|
class cn {
|
985
986
|
constructor() {
|
@@ -1102,7 +1103,7 @@ class K {
|
|
1102
1103
|
* For example, if fullPath is 'full/path/image.png', name is 'image.png'.
|
1103
1104
|
*/
|
1104
1105
|
get name() {
|
1105
|
-
return
|
1106
|
+
return We(this._location.path);
|
1106
1107
|
}
|
1107
1108
|
/**
|
1108
1109
|
* The `StorageService` instance this `StorageReference` is associated with.
|
@@ -1131,7 +1132,7 @@ class K {
|
|
1131
1132
|
}
|
1132
1133
|
function hn(e, t, n) {
|
1133
1134
|
e._throwIfRoot("uploadBytes");
|
1134
|
-
const r = un(e.storage, e._location,
|
1135
|
+
const r = un(e.storage, e._location, Ve(), new V(t, !0), n);
|
1135
1136
|
return e.storage.makeRequestWithTokens(r, Re).then((s) => ({
|
1136
1137
|
metadata: s,
|
1137
1138
|
ref: e
|
@@ -1139,7 +1140,7 @@ function hn(e, t, n) {
|
|
1139
1140
|
}
|
1140
1141
|
function dn(e) {
|
1141
1142
|
e._throwIfRoot("getDownloadURL");
|
1142
|
-
const t = rn(e.storage, e._location,
|
1143
|
+
const t = rn(e.storage, e._location, Ve());
|
1143
1144
|
return e.storage.makeRequestWithTokens(t, Re).then((n) => {
|
1144
1145
|
if (n === null)
|
1145
1146
|
throw kt();
|
@@ -1177,26 +1178,26 @@ function _n(e) {
|
|
1177
1178
|
function mn(e, t) {
|
1178
1179
|
return new K(e, t);
|
1179
1180
|
}
|
1180
|
-
function
|
1181
|
-
if (e instanceof
|
1181
|
+
function Ge(e, t) {
|
1182
|
+
if (e instanceof ke) {
|
1182
1183
|
const n = e;
|
1183
1184
|
if (n._bucket == null)
|
1184
|
-
throw
|
1185
|
+
throw yt();
|
1185
1186
|
const r = new K(n, n._bucket);
|
1186
|
-
return t != null ?
|
1187
|
+
return t != null ? Ge(r, t) : r;
|
1187
1188
|
} else
|
1188
1189
|
return t !== void 0 ? pn(e, t) : e;
|
1189
1190
|
}
|
1190
1191
|
function gn(e, t) {
|
1191
1192
|
if (t && _n(t)) {
|
1192
|
-
if (e instanceof
|
1193
|
+
if (e instanceof ke)
|
1193
1194
|
return mn(e, t);
|
1194
1195
|
throw me("To use ref(service, url), the first argument must be a Storage instance.");
|
1195
1196
|
} else
|
1196
|
-
return
|
1197
|
+
return Ge(e, t);
|
1197
1198
|
}
|
1198
1199
|
function Ae(e, t) {
|
1199
|
-
const n = t == null ? void 0 : t[
|
1200
|
+
const n = t == null ? void 0 : t[Ce];
|
1200
1201
|
return n == null ? null : x.makeFromBucketSpec(n, e);
|
1201
1202
|
}
|
1202
1203
|
function bn(e, t, n, r = {}) {
|
@@ -1204,9 +1205,9 @@ function bn(e, t, n, r = {}) {
|
|
1204
1205
|
const { mockUserToken: s } = r;
|
1205
1206
|
s && (e._overrideAuthToken = typeof s == "string" ? s : st(s, e.app.options.projectId));
|
1206
1207
|
}
|
1207
|
-
class
|
1208
|
+
class ke {
|
1208
1209
|
constructor(t, n, r, s, i) {
|
1209
|
-
this.app = t, this._authProvider = n, this._appCheckProvider = r, this._url = s, this._firebaseVersion = i, this._bucket = null, this._host =
|
1210
|
+
this.app = t, this._authProvider = n, this._appCheckProvider = r, this._url = s, this._firebaseVersion = i, this._bucket = null, this._host = xe, this._protocol = "https", this._appId = null, this._deleted = !1, this._maxOperationRetryTime = lt, this._maxUploadRetryTime = ht, this._requests = /* @__PURE__ */ new Set(), s != null ? this._bucket = x.makeFromBucketSpec(s, this._host) : this._bucket = Ae(this._host, this.app.options);
|
1210
1211
|
}
|
1211
1212
|
/**
|
1212
1213
|
* The host string for this service, in the form of `host` or
|
@@ -1225,7 +1226,7 @@ class ye {
|
|
1225
1226
|
return this._maxUploadRetryTime;
|
1226
1227
|
}
|
1227
1228
|
set maxUploadRetryTime(t) {
|
1228
|
-
|
1229
|
+
ve(
|
1229
1230
|
"time",
|
1230
1231
|
/* minValue=*/
|
1231
1232
|
0,
|
@@ -1242,7 +1243,7 @@ class ye {
|
|
1242
1243
|
return this._maxOperationRetryTime;
|
1243
1244
|
}
|
1244
1245
|
set maxOperationRetryTime(t) {
|
1245
|
-
|
1246
|
+
ve(
|
1246
1247
|
"time",
|
1247
1248
|
/* minValue=*/
|
1248
1249
|
0,
|
@@ -1285,7 +1286,7 @@ class ye {
|
|
1285
1286
|
*/
|
1286
1287
|
_makeRequest(t, n, r, s, i = !0) {
|
1287
1288
|
if (this._deleted)
|
1288
|
-
return new St(
|
1289
|
+
return new St(Me());
|
1289
1290
|
{
|
1290
1291
|
const o = Mt(t, this._appId, r, s, n, this._firebaseVersion, i);
|
1291
1292
|
return this._requests.add(o), o.getPromise().then(() => this._requests.delete(o), () => this._requests.delete(o)), o;
|
@@ -1299,7 +1300,7 @@ class ye {
|
|
1299
1300
|
return this._makeRequest(t, n, r, s).getPromise();
|
1300
1301
|
}
|
1301
1302
|
}
|
1302
|
-
const
|
1303
|
+
const Ue = "@firebase/storage", $e = "0.13.2";
|
1303
1304
|
/**
|
1304
1305
|
* @license
|
1305
1306
|
* Copyright 2020 Google LLC
|
@@ -1316,58 +1317,58 @@ const ve = "@firebase/storage", Ue = "0.13.2";
|
|
1316
1317
|
* See the License for the specific language governing permissions and
|
1317
1318
|
* limitations under the License.
|
1318
1319
|
*/
|
1319
|
-
const
|
1320
|
+
const Ke = "storage";
|
1320
1321
|
function wn(e, t, n) {
|
1321
1322
|
return e = re(e), hn(e, t, n);
|
1322
1323
|
}
|
1323
1324
|
function Tn(e) {
|
1324
1325
|
return e = re(e), dn(e);
|
1325
1326
|
}
|
1326
|
-
function
|
1327
|
+
function yn(e) {
|
1327
1328
|
return e = re(e), fn(e);
|
1328
1329
|
}
|
1329
|
-
function
|
1330
|
+
function Ne(e, t) {
|
1330
1331
|
return e = re(e), gn(e, t);
|
1331
1332
|
}
|
1332
|
-
function
|
1333
|
+
function Ie(e = _e(), t) {
|
1333
1334
|
e = re(e);
|
1334
|
-
const r =
|
1335
|
+
const r = tt(e, Ke).getImmediate({
|
1335
1336
|
identifier: t
|
1336
|
-
}), s =
|
1337
|
-
return s &&
|
1337
|
+
}), s = nt("storage");
|
1338
|
+
return s && Rn(r, ...s), r;
|
1338
1339
|
}
|
1339
|
-
function
|
1340
|
+
function Rn(e, t, n, r = {}) {
|
1340
1341
|
bn(e, t, n, r);
|
1341
1342
|
}
|
1342
1343
|
function kn(e, { instanceIdentifier: t }) {
|
1343
1344
|
const n = e.getProvider("app").getImmediate(), r = e.getProvider("auth-internal"), s = e.getProvider("app-check-internal");
|
1344
|
-
return new
|
1345
|
+
return new ke(n, r, s, t, et);
|
1345
1346
|
}
|
1346
1347
|
function On() {
|
1347
|
-
|
1348
|
-
|
1348
|
+
Je(new Qe(
|
1349
|
+
Ke,
|
1349
1350
|
kn,
|
1350
1351
|
"PUBLIC"
|
1351
1352
|
/* ComponentType.PUBLIC */
|
1352
|
-
).setMultipleInstances(!0)),
|
1353
|
+
).setMultipleInstances(!0)), Ee(Ue, $e, ""), Ee(Ue, $e, "esm2017");
|
1353
1354
|
}
|
1354
1355
|
On();
|
1355
1356
|
const ne = {
|
1356
1357
|
async update(e, t, n) {
|
1357
|
-
const r =
|
1358
|
+
const r = Ie(_e(), n), s = Ne(r, e);
|
1358
1359
|
return await wn(s, t), Tn(s);
|
1359
1360
|
},
|
1360
1361
|
async delete(e, t) {
|
1361
|
-
const n =
|
1362
|
-
await
|
1362
|
+
const n = Ie(_e(), t), r = Ne(n, e);
|
1363
|
+
await yn(r);
|
1363
1364
|
}
|
1364
1365
|
};
|
1365
|
-
var
|
1366
|
+
var Ze = { exports: {} };
|
1366
1367
|
(function(e, t) {
|
1367
1368
|
(function(n, r) {
|
1368
1369
|
e.exports = r();
|
1369
|
-
})(
|
1370
|
-
var n = 1e3, r = 6e4, s = 36e5, i = "millisecond", o = "second", h = "minute", d = "hour", m = "day", T = "week", b = "month", O = "quarter", E = "year",
|
1370
|
+
})(ot, function() {
|
1371
|
+
var n = 1e3, r = 6e4, s = 36e5, i = "millisecond", o = "second", h = "minute", d = "hour", m = "day", T = "week", b = "month", O = "quarter", E = "year", A = "date", F = "Invalid Date", U = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, H = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, j = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(f) {
|
1371
1372
|
var c = ["th", "st", "nd", "rd"], a = f % 100;
|
1372
1373
|
return "[" + f + (c[(a - 20) % 10] || c[a] || c[0]) + "]";
|
1373
1374
|
} }, P = function(f, c, a) {
|
@@ -1383,7 +1384,7 @@ var Ke = { exports: {} };
|
|
1383
1384
|
}, a: function(f) {
|
1384
1385
|
return f < 0 ? Math.ceil(f) || 0 : Math.floor(f);
|
1385
1386
|
}, p: function(f) {
|
1386
|
-
return { M: b, y: E, w: T, d: m, D:
|
1387
|
+
return { M: b, y: E, w: T, d: m, D: A, h: d, m: h, s: o, ms: i, Q: O }[f] || String(f || "").toLowerCase().replace(/s$/, "");
|
1387
1388
|
}, u: function(f) {
|
1388
1389
|
return f === void 0;
|
1389
1390
|
} }, L = "en", M = {};
|
@@ -1457,17 +1458,17 @@ var Ke = { exports: {} };
|
|
1457
1458
|
return p ? W : W.endOf(m);
|
1458
1459
|
}, k = function(X, D) {
|
1459
1460
|
return g.w(u.toDate()[X].apply(u.toDate("s"), (p ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(D)), u);
|
1460
|
-
},
|
1461
|
+
}, v = this.$W, N = this.$M, C = this.$D, Z = "set" + (this.$u ? "UTC" : "");
|
1461
1462
|
switch (_) {
|
1462
1463
|
case E:
|
1463
1464
|
return p ? w(1, 0) : w(31, 11);
|
1464
1465
|
case b:
|
1465
1466
|
return p ? w(1, N) : w(0, N + 1);
|
1466
1467
|
case T:
|
1467
|
-
var z = this.$locale().weekStart || 0, J = (
|
1468
|
+
var z = this.$locale().weekStart || 0, J = (v < z ? v + 7 : v) - z;
|
1468
1469
|
return w(p ? C - J : C + (6 - J), N);
|
1469
1470
|
case m:
|
1470
|
-
case
|
1471
|
+
case A:
|
1471
1472
|
return k(Z + "Hours", 0);
|
1472
1473
|
case d:
|
1473
1474
|
return k(Z + "Minutes", 1);
|
@@ -1481,10 +1482,10 @@ var Ke = { exports: {} };
|
|
1481
1482
|
}, c.endOf = function(a) {
|
1482
1483
|
return this.startOf(a, !1);
|
1483
1484
|
}, c.$set = function(a, l) {
|
1484
|
-
var u, p = g.p(a), _ = "set" + (this.$u ? "UTC" : ""), w = (u = {}, u[m] = _ + "Date", u[
|
1485
|
+
var u, p = g.p(a), _ = "set" + (this.$u ? "UTC" : ""), w = (u = {}, u[m] = _ + "Date", u[A] = _ + "Date", u[b] = _ + "Month", u[E] = _ + "FullYear", u[d] = _ + "Hours", u[h] = _ + "Minutes", u[o] = _ + "Seconds", u[i] = _ + "Milliseconds", u)[p], k = p === m ? this.$D + (l - this.$W) : l;
|
1485
1486
|
if (p === b || p === E) {
|
1486
|
-
var
|
1487
|
-
|
1487
|
+
var v = this.clone().set(A, 1);
|
1488
|
+
v.$d[w](k), v.init(), this.$d = v.set(A, Math.min(this.$D, v.daysInMonth())).$d;
|
1488
1489
|
} else w && this.$d[w](k);
|
1489
1490
|
return this.init(), this;
|
1490
1491
|
}, c.set = function(a, l) {
|
@@ -1502,14 +1503,14 @@ var Ke = { exports: {} };
|
|
1502
1503
|
if (_ === E) return this.set(E, this.$y + a);
|
1503
1504
|
if (_ === m) return w(1);
|
1504
1505
|
if (_ === T) return w(7);
|
1505
|
-
var k = (u = {}, u[h] = r, u[d] = s, u[o] = n, u)[_] || 1,
|
1506
|
-
return g.w(
|
1506
|
+
var k = (u = {}, u[h] = r, u[d] = s, u[o] = n, u)[_] || 1, v = this.$d.getTime() + a * k;
|
1507
|
+
return g.w(v, this);
|
1507
1508
|
}, c.subtract = function(a, l) {
|
1508
1509
|
return this.add(-1 * a, l);
|
1509
1510
|
}, c.format = function(a) {
|
1510
1511
|
var l = this, u = this.$locale();
|
1511
1512
|
if (!this.isValid()) return u.invalidDate || F;
|
1512
|
-
var p = a || "YYYY-MM-DDTHH:mm:ssZ", _ = g.z(this), w = this.$H, k = this.$m,
|
1513
|
+
var p = a || "YYYY-MM-DDTHH:mm:ssZ", _ = g.z(this), w = this.$H, k = this.$m, v = this.$M, N = u.weekdays, C = u.months, Z = u.meridiem, z = function(D, W, Q, ae) {
|
1513
1514
|
return D && (D[W] || D(l, p)) || Q[W].slice(0, ae);
|
1514
1515
|
}, J = function(D) {
|
1515
1516
|
return g.s(w % 12 || 12, D, "0");
|
@@ -1525,13 +1526,13 @@ var Ke = { exports: {} };
|
|
1525
1526
|
case "YYYY":
|
1526
1527
|
return g.s(l.$y, 4, "0");
|
1527
1528
|
case "M":
|
1528
|
-
return
|
1529
|
+
return v + 1;
|
1529
1530
|
case "MM":
|
1530
|
-
return g.s(
|
1531
|
+
return g.s(v + 1, 2, "0");
|
1531
1532
|
case "MMM":
|
1532
|
-
return z(u.monthsShort,
|
1533
|
+
return z(u.monthsShort, v, C, 3);
|
1533
1534
|
case "MMMM":
|
1534
|
-
return z(C,
|
1535
|
+
return z(C, v);
|
1535
1536
|
case "D":
|
1536
1537
|
return l.$D;
|
1537
1538
|
case "DD":
|
@@ -1575,7 +1576,7 @@ var Ke = { exports: {} };
|
|
1575
1576
|
}, c.utcOffset = function() {
|
1576
1577
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
1577
1578
|
}, c.diff = function(a, l, u) {
|
1578
|
-
var p, _ = this, w = g.p(l), k = S(a),
|
1579
|
+
var p, _ = this, w = g.p(l), k = S(a), v = (k.utcOffset() - this.utcOffset()) * r, N = this - k, C = function() {
|
1579
1580
|
return g.m(_, k);
|
1580
1581
|
};
|
1581
1582
|
switch (w) {
|
@@ -1589,10 +1590,10 @@ var Ke = { exports: {} };
|
|
1589
1590
|
p = C() / 3;
|
1590
1591
|
break;
|
1591
1592
|
case T:
|
1592
|
-
p = (N -
|
1593
|
+
p = (N - v) / 6048e5;
|
1593
1594
|
break;
|
1594
1595
|
case m:
|
1595
|
-
p = (N -
|
1596
|
+
p = (N - v) / 864e5;
|
1596
1597
|
break;
|
1597
1598
|
case d:
|
1598
1599
|
p = N / s;
|
@@ -1626,9 +1627,9 @@ var Ke = { exports: {} };
|
|
1626
1627
|
}, c.toString = function() {
|
1627
1628
|
return this.$d.toUTCString();
|
1628
1629
|
}, f;
|
1629
|
-
}(),
|
1630
|
-
return S.prototype =
|
1631
|
-
|
1630
|
+
}(), Oe = oe.prototype;
|
1631
|
+
return S.prototype = Oe, [["$ms", i], ["$s", o], ["$m", h], ["$H", d], ["$W", m], ["$M", b], ["$y", E], ["$D", A]].forEach(function(f) {
|
1632
|
+
Oe[f[1]] = function(c) {
|
1632
1633
|
return this.$g(c, f[0], f[1]);
|
1633
1634
|
};
|
1634
1635
|
}), S.extend = function(f, c) {
|
@@ -1637,22 +1638,22 @@ var Ke = { exports: {} };
|
|
1637
1638
|
return S(1e3 * f);
|
1638
1639
|
}, S.en = M[L], S.Ls = M, S.p = {}, S;
|
1639
1640
|
});
|
1640
|
-
})(
|
1641
|
-
var En =
|
1642
|
-
const Sn = /* @__PURE__ */
|
1643
|
-
function
|
1641
|
+
})(Ze);
|
1642
|
+
var En = Ze.exports;
|
1643
|
+
const Sn = /* @__PURE__ */ at(En);
|
1644
|
+
function vn(e) {
|
1644
1645
|
return e.toLowerCase();
|
1645
1646
|
}
|
1646
|
-
var
|
1647
|
+
var An = [/([a-z0-9])([A-Z])/g, /([A-Z])([A-Z][a-z])/g], Un = /[^A-Z0-9]+/gi;
|
1647
1648
|
function $n(e, t) {
|
1648
1649
|
t === void 0 && (t = {});
|
1649
|
-
for (var n = t.splitRegexp, r = n === void 0 ?
|
1650
|
+
for (var n = t.splitRegexp, r = n === void 0 ? An : n, s = t.stripRegexp, i = s === void 0 ? Un : s, o = t.transform, h = o === void 0 ? vn : o, d = t.delimiter, m = d === void 0 ? " " : d, T = Pe(Pe(e, r, "$1\0$2"), i, "\0"), b = 0, O = T.length; T.charAt(b) === "\0"; )
|
1650
1651
|
b++;
|
1651
1652
|
for (; T.charAt(O - 1) === "\0"; )
|
1652
1653
|
O--;
|
1653
1654
|
return T.slice(b, O).split("\0").map(h).join(m);
|
1654
1655
|
}
|
1655
|
-
function
|
1656
|
+
function Pe(e, t, n) {
|
1656
1657
|
return t instanceof RegExp ? e.replace(t, n) : t.reduce(function(r, s) {
|
1657
1658
|
return r.replace(s, n);
|
1658
1659
|
}, e);
|
@@ -1664,8 +1665,8 @@ function In(e, t) {
|
|
1664
1665
|
var n = e.toLowerCase();
|
1665
1666
|
return t === 0 ? Nn(n) : n;
|
1666
1667
|
}
|
1667
|
-
function
|
1668
|
-
return t === void 0 && (t = {}), $n(e,
|
1668
|
+
function le(e, t) {
|
1669
|
+
return t === void 0 && (t = {}), $n(e, it({ delimiter: " ", transform: In }, t));
|
1669
1670
|
}
|
1670
1671
|
function Pn(e, t = []) {
|
1671
1672
|
const n = JSON.parse(JSON.stringify(e));
|
@@ -1683,8 +1684,8 @@ function Dn(e, t) {
|
|
1683
1684
|
id: (n == null ? void 0 : n.store.id) ?? "",
|
1684
1685
|
event: (n == null ? void 0 : n.store.event) ?? Y.F_PAYOUT_FOR.Enum.ORDERING,
|
1685
1686
|
bank: {
|
1686
|
-
name: ((r = n == null ? void 0 : n.store.bank) == null ? void 0 : r.name) ??
|
1687
|
-
type: ((s = n == null ? void 0 : n.store.bank) == null ? void 0 : s.type) ??
|
1687
|
+
name: ((r = n == null ? void 0 : n.store.bank) == null ? void 0 : r.name) ?? ge.bankNameOptions()[0].value,
|
1688
|
+
type: ((s = n == null ? void 0 : n.store.bank) == null ? void 0 : s.type) ?? ge.bankTypeOptions()[0].value,
|
1688
1689
|
holderName: ((i = n == null ? void 0 : n.store.bank) == null ? void 0 : i.holderName) ?? "",
|
1689
1690
|
accountNumber: ((o = n == null ? void 0 : n.store.bank) == null ? void 0 : o.accountNumber) ?? ""
|
1690
1691
|
},
|
@@ -1719,7 +1720,7 @@ function xn(e) {
|
|
1719
1720
|
async function pe(e) {
|
1720
1721
|
await ne.delete(e);
|
1721
1722
|
}
|
1722
|
-
async function
|
1723
|
+
async function De(e, t, n) {
|
1723
1724
|
const r = Sn().toISOString();
|
1724
1725
|
if (e.restaurantId)
|
1725
1726
|
return await ne.update(
|
@@ -1751,9 +1752,9 @@ async function Mn(e, t, n) {
|
|
1751
1752
|
let r = t.methods;
|
1752
1753
|
n.payoutSetting.methods.length > 0 && (r = n.payoutSetting.methods);
|
1753
1754
|
let s = t.store.ssm || "";
|
1754
|
-
n.newSSM && (s = await
|
1755
|
+
n.newSSM && (s = await De(e, "ssm", n.newSSM));
|
1755
1756
|
let i = t.store.bankStatement || "";
|
1756
|
-
n.newBankStatement && (i = await
|
1757
|
+
n.newBankStatement && (i = await De(
|
1757
1758
|
e,
|
1758
1759
|
"bankStatement",
|
1759
1760
|
n.newBankStatement
|
@@ -1779,30 +1780,40 @@ async function Mn(e, t, n) {
|
|
1779
1780
|
notifyUrl: n.payoutSetting.store.event === Y.F_PAYOUT_FOR.Enum.MARKETING ? "http://marketing-api-service:3000/customer/callback/store" : "http://order-backend:3000/backend/payment"
|
1780
1781
|
};
|
1781
1782
|
}
|
1782
|
-
const
|
1783
|
-
|
1784
|
-
|
1785
|
-
|
1786
|
-
|
1787
|
-
|
1788
|
-
}))
|
1789
|
-
|
1790
|
-
|
1791
|
-
|
1792
|
-
|
1793
|
-
|
1794
|
-
|
1795
|
-
}
|
1796
|
-
)
|
1783
|
+
const ge = {
|
1784
|
+
bankNameOptions() {
|
1785
|
+
const e = ct().currentCountry.value, t = ut(e).F_BANK_NAME;
|
1786
|
+
return Object.values(t).map((n) => ({
|
1787
|
+
label: le(n),
|
1788
|
+
value: n
|
1789
|
+
}));
|
1790
|
+
},
|
1791
|
+
bankTypeOptions() {
|
1792
|
+
return Object.values(Y.F_BANK_TYPE.Values).map((e) => ({
|
1793
|
+
label: le(e),
|
1794
|
+
value: e
|
1795
|
+
}));
|
1796
|
+
},
|
1797
|
+
storeEventOptions() {
|
1798
|
+
return Object.values(Y.F_PAYOUT_FOR.Values).map((e) => ({
|
1799
|
+
label: le(e),
|
1800
|
+
value: e
|
1801
|
+
}));
|
1802
|
+
},
|
1803
|
+
statusOptions() {
|
1804
|
+
return Object.values(Y.F_PAYOUT_ACCOUNT_STATUS.Values).map((e) => ({
|
1805
|
+
label: le(e),
|
1806
|
+
value: e
|
1807
|
+
}));
|
1808
|
+
}
|
1809
|
+
}, jn = {
|
1797
1810
|
mergeData: Mn,
|
1798
1811
|
initPayoutAccount: Dn,
|
1799
1812
|
groupByStatus: xn,
|
1800
|
-
|
1801
|
-
bankNameOptions: Ze,
|
1802
|
-
storeEventOptions: Ln,
|
1803
|
-
statusOptions: Bn
|
1813
|
+
PayoutConfig: ge
|
1804
1814
|
};
|
1805
1815
|
export {
|
1806
|
-
|
1816
|
+
ge as P,
|
1817
|
+
jn as a,
|
1807
1818
|
Pn as c
|
1808
1819
|
};
|