@feedmepos/mf-financing 0.0.30-dev → 0.0.32-dev

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/app.d.ts CHANGED
@@ -106,6 +106,8 @@ export declare const i18nMessages: {
106
106
  otpSendFailed: string;
107
107
  otpVerifyFailed: string;
108
108
  otpRequired: string;
109
+ phoneNumberRequired: string;
110
+ otpReqIdMissing: string;
109
111
  };
110
112
  buttons: {
111
113
  cancel: string;
@@ -247,6 +249,8 @@ export declare const i18nMessages: {
247
249
  otpSendFailed: string;
248
250
  otpVerifyFailed: string;
249
251
  otpRequired: string;
252
+ phoneNumberRequired: string;
253
+ otpReqIdMissing: string;
250
254
  };
251
255
  buttons: {
252
256
  cancel: string;
package/dist/app.js CHANGED
@@ -104,7 +104,9 @@ const Ln = {
104
104
  phoneNotVerified: "Please verify your phone number before submitting",
105
105
  otpSendFailed: "Failed to send OTP. Please try again.",
106
106
  otpVerifyFailed: "Failed to verify OTP. Please try again.",
107
- otpRequired: "OTP is required"
107
+ otpRequired: "OTP is required",
108
+ phoneNumberRequired: "Phone number is required",
109
+ otpReqIdMissing: "OTP request ID is missing. Please resend."
108
110
  },
109
111
  buttons: {
110
112
  cancel: "Cancel",
@@ -244,7 +246,9 @@ const Ln = {
244
246
  phoneNotVerified: "提交前请先验证您的电话号码",
245
247
  otpSendFailed: "发送验证码失败。请重试。",
246
248
  otpVerifyFailed: "验证失败。请重试。",
247
- otpRequired: "验证码为必填项"
249
+ otpRequired: "验证码为必填项",
250
+ phoneNumberRequired: "电话号码为必填项",
251
+ otpReqIdMissing: "验证码请求ID丢失。请重新发送。"
248
252
  },
249
253
  buttons: {
250
254
  cancel: "取消",
@@ -290,7 +294,7 @@ const Ln = {
290
294
  {
291
295
  path: "/application",
292
296
  name: "mf-financing-application",
293
- component: () => import("./Application-BvrkS3zh.js"),
297
+ component: () => import("./Application-BVgJDkn5.js"),
294
298
  meta: {
295
299
  sidebarDisplay: "i18n:financing.routes.application"
296
300
  }
@@ -298,7 +302,7 @@ const Ln = {
298
302
  {
299
303
  path: "/application/submission",
300
304
  name: "mf-financing-application-submission",
301
- component: () => import("./Submission-lLcZsMOa.js")
305
+ component: () => import("./Submission-0OnesfMw.js")
302
306
  }
303
307
  ];
304
308
  In({
@@ -578,7 +582,7 @@ const Wn = () => jn().__FIREBASE_DEFAULTS__, zn = () => {
578
582
  const n = process.env.__FIREBASE_DEFAULTS__;
579
583
  if (n)
580
584
  return JSON.parse(n);
581
- }, Gn = () => {
585
+ }, qn = () => {
582
586
  if (typeof document > "u")
583
587
  return;
584
588
  let n;
@@ -591,12 +595,12 @@ const Wn = () => jn().__FIREBASE_DEFAULTS__, zn = () => {
591
595
  return e && JSON.parse(e);
592
596
  }, Be = () => {
593
597
  try {
594
- return Wn() || zn() || Gn();
598
+ return Wn() || zn() || qn();
595
599
  } catch (n) {
596
600
  console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${n}`);
597
601
  return;
598
602
  }
599
- }, qn = (n) => {
603
+ }, Gn = (n) => {
600
604
  var e, t;
601
605
  return (t = (e = Be()) === null || e === void 0 ? void 0 : e.emulatorHosts) === null || t === void 0 ? void 0 : t[n];
602
606
  }, Rt = () => {
@@ -1468,7 +1472,7 @@ const Ne = "@firebase/app", it = "0.10.13";
1468
1472
  * See the License for the specific language governing permissions and
1469
1473
  * limitations under the License.
1470
1474
  */
1471
- const E = new Nt("@firebase/app"), Rr = "@firebase/app-compat", Or = "@firebase/analytics-compat", Nr = "@firebase/analytics", Dr = "@firebase/app-check-compat", Lr = "@firebase/app-check", Mr = "@firebase/auth", Ur = "@firebase/auth-compat", xr = "@firebase/database", Br = "@firebase/data-connect", Fr = "@firebase/database-compat", Vr = "@firebase/functions", $r = "@firebase/functions-compat", Hr = "@firebase/installations", jr = "@firebase/installations-compat", Wr = "@firebase/messaging", zr = "@firebase/messaging-compat", Gr = "@firebase/performance", qr = "@firebase/performance-compat", Kr = "@firebase/remote-config", Jr = "@firebase/remote-config-compat", Yr = "@firebase/storage", Xr = "@firebase/storage-compat", Qr = "@firebase/firestore", Zr = "@firebase/vertexai-preview", ei = "@firebase/firestore-compat", ti = "firebase", ni = "10.14.1";
1475
+ const E = new Nt("@firebase/app"), Rr = "@firebase/app-compat", Or = "@firebase/analytics-compat", Nr = "@firebase/analytics", Dr = "@firebase/app-check-compat", Lr = "@firebase/app-check", Mr = "@firebase/auth", Ur = "@firebase/auth-compat", xr = "@firebase/database", Br = "@firebase/data-connect", Fr = "@firebase/database-compat", Vr = "@firebase/functions", $r = "@firebase/functions-compat", Hr = "@firebase/installations", jr = "@firebase/installations-compat", Wr = "@firebase/messaging", zr = "@firebase/messaging-compat", qr = "@firebase/performance", Gr = "@firebase/performance-compat", Kr = "@firebase/remote-config", Jr = "@firebase/remote-config-compat", Yr = "@firebase/storage", Xr = "@firebase/storage-compat", Qr = "@firebase/firestore", Zr = "@firebase/vertexai-preview", ei = "@firebase/firestore-compat", ti = "firebase", ni = "10.14.1";
1472
1476
  /**
1473
1477
  * @license
1474
1478
  * Copyright 2019 Google LLC
@@ -1503,8 +1507,8 @@ const De = "[DEFAULT]", ri = {
1503
1507
  [jr]: "fire-iid-compat",
1504
1508
  [Wr]: "fire-fcm",
1505
1509
  [zr]: "fire-fcm-compat",
1506
- [Gr]: "fire-perf",
1507
- [qr]: "fire-perf-compat",
1510
+ [qr]: "fire-perf",
1511
+ [Gr]: "fire-perf-compat",
1508
1512
  [Kr]: "fire-rc",
1509
1513
  [Jr]: "fire-rc-compat",
1510
1514
  [Yr]: "fire-gcs",
@@ -2331,7 +2335,7 @@ const Si = new ee(3e4, 6e4);
2331
2335
  function me(n, e) {
2332
2336
  return n.tenantId && !e.tenantId ? Object.assign(Object.assign({}, e), { tenantId: n.tenantId }) : e;
2333
2337
  }
2334
- async function G(n, e, t, r, i = {}) {
2338
+ async function q(n, e, t, r, i = {}) {
2335
2339
  return jt(n, i, async () => {
2336
2340
  let s = {}, o = {};
2337
2341
  r && (e === "GET" ? o = r : s = {
@@ -2386,7 +2390,7 @@ async function jt(n, e, t) {
2386
2390
  }
2387
2391
  }
2388
2392
  async function Wt(n, e, t, r, i = {}) {
2389
- const s = await G(n, e, t, r, i);
2393
+ const s = await q(n, e, t, r, i);
2390
2394
  return "mfaPendingCredential" in s && T(n, "multi-factor-auth-required", {
2391
2395
  _serverResponse: s
2392
2396
  }), s;
@@ -2434,10 +2438,10 @@ function re(n, e, t) {
2434
2438
  * limitations under the License.
2435
2439
  */
2436
2440
  async function Pi(n, e) {
2437
- return G(n, "POST", "/v1/accounts:delete", e);
2441
+ return q(n, "POST", "/v1/accounts:delete", e);
2438
2442
  }
2439
- async function Gt(n, e) {
2440
- return G(n, "POST", "/v1/accounts:lookup", e);
2443
+ async function qt(n, e) {
2444
+ return q(n, "POST", "/v1/accounts:lookup", e);
2441
2445
  }
2442
2446
  /**
2443
2447
  * @license
@@ -2455,7 +2459,7 @@ async function Gt(n, e) {
2455
2459
  * See the License for the specific language governing permissions and
2456
2460
  * limitations under the License.
2457
2461
  */
2458
- function q(n) {
2462
+ function G(n) {
2459
2463
  if (n)
2460
2464
  try {
2461
2465
  const e = new Date(Number(n));
@@ -2476,9 +2480,9 @@ async function ki(n, e = !1) {
2476
2480
  return {
2477
2481
  claims: i,
2478
2482
  token: r,
2479
- authTime: q(ke(i.auth_time)),
2480
- issuedAtTime: q(ke(i.iat)),
2481
- expirationTime: q(ke(i.exp)),
2483
+ authTime: G(ke(i.auth_time)),
2484
+ issuedAtTime: G(ke(i.iat)),
2485
+ expirationTime: G(ke(i.exp)),
2482
2486
  signInProvider: o || null,
2483
2487
  signInSecondFactor: (s == null ? void 0 : s.sign_in_second_factor) || null
2484
2488
  };
@@ -2624,7 +2628,7 @@ class Ue {
2624
2628
  this.createdAt = e, this.lastLoginAt = t, this._initializeTime();
2625
2629
  }
2626
2630
  _initializeTime() {
2627
- this.lastSignInTime = q(this.lastLoginAt), this.creationTime = q(this.createdAt);
2631
+ this.lastSignInTime = G(this.lastLoginAt), this.creationTime = G(this.createdAt);
2628
2632
  }
2629
2633
  _copy(e) {
2630
2634
  this.createdAt = e.createdAt, this.lastLoginAt = e.lastLoginAt, this._initializeTime();
@@ -2654,7 +2658,7 @@ class Ue {
2654
2658
  */
2655
2659
  async function de(n) {
2656
2660
  var e;
2657
- const t = n.auth, r = await n.getIdToken(), i = await Y(n, Gt(t, { idToken: r }));
2661
+ const t = n.auth, r = await n.getIdToken(), i = await Y(n, qt(t, { idToken: r }));
2658
2662
  u(
2659
2663
  i == null ? void 0 : i.users.length,
2660
2664
  t,
@@ -2663,7 +2667,7 @@ async function de(n) {
2663
2667
  );
2664
2668
  const s = i.users[0];
2665
2669
  n._notifyReloadListener(s);
2666
- const o = !((e = s.providerUserInfo) === null || e === void 0) && e.length ? qt(s.providerUserInfo) : [], c = Ni(n.providerData, o), a = n.isAnonymous, l = !(n.email && s.passwordHash) && !(c != null && c.length), d = a ? l : !1, f = {
2670
+ const o = !((e = s.providerUserInfo) === null || e === void 0) && e.length ? Gt(s.providerUserInfo) : [], c = Ni(n.providerData, o), a = n.isAnonymous, l = !(n.email && s.passwordHash) && !(c != null && c.length), d = a ? l : !1, f = {
2667
2671
  uid: s.localId,
2668
2672
  displayName: s.displayName || null,
2669
2673
  photoURL: s.photoUrl || null,
@@ -2684,7 +2688,7 @@ async function Oi(n) {
2684
2688
  function Ni(n, e) {
2685
2689
  return [...n.filter((r) => !e.some((i) => i.providerId === r.providerId)), ...e];
2686
2690
  }
2687
- function qt(n) {
2691
+ function Gt(n) {
2688
2692
  return n.map((e) => {
2689
2693
  var { providerId: t } = e, r = Ve(e, ["providerId"]);
2690
2694
  return {
@@ -2735,7 +2739,7 @@ async function Di(n, e) {
2735
2739
  };
2736
2740
  }
2737
2741
  async function Li(n, e) {
2738
- return G(n, "POST", "/v2/accounts:revokeToken", me(n, e));
2742
+ return q(n, "POST", "/v2/accounts:revokeToken", me(n, e));
2739
2743
  }
2740
2744
  /**
2741
2745
  * @license
@@ -3003,7 +3007,7 @@ class I {
3003
3007
  "internal-error"
3004
3008
  /* AuthErrorCode.INTERNAL_ERROR */
3005
3009
  );
3006
- const s = i.providerUserInfo !== void 0 ? qt(i.providerUserInfo) : [], o = !(i.email && i.passwordHash) && !(s != null && s.length), c = new $();
3010
+ const s = i.providerUserInfo !== void 0 ? Gt(i.providerUserInfo) : [], o = !(i.email && i.passwordHash) && !(s != null && s.length), c = new $();
3007
3011
  c.updateFromIdToken(r);
3008
3012
  const a = new I({
3009
3013
  uid: i.localId,
@@ -3350,7 +3354,7 @@ class xi {
3350
3354
  * limitations under the License.
3351
3355
  */
3352
3356
  async function Bi(n, e = {}) {
3353
- return G(n, "GET", "/v2/passwordPolicy", me(n, e));
3357
+ return q(n, "GET", "/v2/passwordPolicy", me(n, e));
3354
3358
  }
3355
3359
  /**
3356
3360
  * @license
@@ -3494,7 +3498,7 @@ class $i {
3494
3498
  }
3495
3499
  async initializeCurrentUserFromIdToken(e) {
3496
3500
  try {
3497
- const t = await Gt(this, { idToken: e }), r = await I._fromGetAccountInfoResponse(this, t, e);
3501
+ const t = await qt(this, { idToken: e }), r = await I._fromGetAccountInfoResponse(this, t, e);
3498
3502
  await this.directlySetCurrentUser(r);
3499
3503
  } catch (t) {
3500
3504
  console.warn("FirebaseServerApp could not login user with provided authIdToken: ", t), await this.directlySetCurrentUser(null);
@@ -3857,7 +3861,7 @@ function zi(n) {
3857
3861
  * See the License for the specific language governing permissions and
3858
3862
  * limitations under the License.
3859
3863
  */
3860
- function Gi(n, e) {
3864
+ function qi(n, e) {
3861
3865
  const t = Mt(n, "auth");
3862
3866
  if (t.isInitialized()) {
3863
3867
  const i = t.getImmediate(), s = t.getOptions();
@@ -3871,7 +3875,7 @@ function Gi(n, e) {
3871
3875
  }
3872
3876
  return t.initialize({ options: e });
3873
3877
  }
3874
- function qi(n, e) {
3878
+ function Gi(n, e) {
3875
3879
  const t = (e == null ? void 0 : e.persistence) || [], r = (Array.isArray(t) ? t : [t]).map(w);
3876
3880
  e != null && e.errorMap && n._updateErrorMap(e.errorMap), n._initializeWithPersistence(r, e == null ? void 0 : e.popupRedirectResolver);
3877
3881
  }
@@ -4952,7 +4956,7 @@ _e.receivers = [];
4952
4956
  * See the License for the specific language governing permissions and
4953
4957
  * limitations under the License.
4954
4958
  */
4955
- function Ge(n = "", e = 10) {
4959
+ function qe(n = "", e = 10) {
4956
4960
  let t = "";
4957
4961
  for (let r = 0; r < e; r++)
4958
4962
  t += Math.floor(Math.random() * 10);
@@ -5008,7 +5012,7 @@ class ls {
5008
5012
  );
5009
5013
  let s, o;
5010
5014
  return new Promise((c, a) => {
5011
- const l = Ge("", 20);
5015
+ const l = qe("", 20);
5012
5016
  i.port1.start();
5013
5017
  const d = setTimeout(() => {
5014
5018
  a(new Error(
@@ -5376,7 +5380,7 @@ function bs(n, e) {
5376
5380
  * See the License for the specific language governing permissions and
5377
5381
  * limitations under the License.
5378
5382
  */
5379
- class qe extends on {
5383
+ class Ge extends on {
5380
5384
  constructor(e) {
5381
5385
  super(
5382
5386
  "custom",
@@ -5407,7 +5411,7 @@ class qe extends on {
5407
5411
  }
5408
5412
  }
5409
5413
  function Is(n) {
5410
- return es(n.auth, new qe(n), n.bypassAuthState);
5414
+ return es(n.auth, new Ge(n), n.bypassAuthState);
5411
5415
  }
5412
5416
  function ws(n) {
5413
5417
  const { auth: e, user: t } = n;
@@ -5416,7 +5420,7 @@ function ws(n) {
5416
5420
  e,
5417
5421
  "internal-error"
5418
5422
  /* AuthErrorCode.INTERNAL_ERROR */
5419
- ), Zi(t, new qe(n), n.bypassAuthState);
5423
+ ), Zi(t, new Ge(n), n.bypassAuthState);
5420
5424
  }
5421
5425
  async function Es(n) {
5422
5426
  const { auth: e, user: t } = n;
@@ -5425,7 +5429,7 @@ async function Es(n) {
5425
5429
  e,
5426
5430
  "internal-error"
5427
5431
  /* AuthErrorCode.INTERNAL_ERROR */
5428
- ), Qi(t, new qe(n), n.bypassAuthState);
5432
+ ), Qi(t, new Ge(n), n.bypassAuthState);
5429
5433
  }
5430
5434
  /**
5431
5435
  * @license
@@ -5542,7 +5546,7 @@ class F extends _n {
5542
5546
  }
5543
5547
  async onExecution() {
5544
5548
  S(this.filter.length === 1, "Popup operations only handle one event");
5545
- const e = Ge();
5549
+ const e = qe();
5546
5550
  this.authWindow = await this.resolver._openPopup(
5547
5551
  this.auth,
5548
5552
  this.provider,
@@ -5770,7 +5774,7 @@ function Ls(n) {
5770
5774
  * limitations under the License.
5771
5775
  */
5772
5776
  async function Ms(n, e = {}) {
5773
- return G(n, "GET", "/v1/projects", e);
5777
+ return q(n, "GET", "/v1/projects", e);
5774
5778
  }
5775
5779
  /**
5776
5780
  * @license
@@ -5900,7 +5904,7 @@ function Hs(n) {
5900
5904
  * See the License for the specific language governing permissions and
5901
5905
  * limitations under the License.
5902
5906
  */
5903
- const js = new ee(5e3, 15e3), Ws = "__/auth/iframe", zs = "emulator/auth/iframe", Gs = {
5907
+ const js = new ee(5e3, 15e3), Ws = "__/auth/iframe", zs = "emulator/auth/iframe", qs = {
5904
5908
  style: {
5905
5909
  position: "absolute",
5906
5910
  top: "-100px",
@@ -5909,7 +5913,7 @@ const js = new ee(5e3, 15e3), Ws = "__/auth/iframe", zs = "emulator/auth/iframe"
5909
5913
  },
5910
5914
  "aria-hidden": "true",
5911
5915
  tabindex: "-1"
5912
- }, qs = /* @__PURE__ */ new Map([
5916
+ }, Gs = /* @__PURE__ */ new Map([
5913
5917
  ["identitytoolkit.googleapis.com", "p"],
5914
5918
  ["staging-identitytoolkit.sandbox.googleapis.com", "s"],
5915
5919
  ["test-identitytoolkit.sandbox.googleapis.com", "t"]
@@ -5927,7 +5931,7 @@ function Ks(n) {
5927
5931
  apiKey: e.apiKey,
5928
5932
  appName: n.name,
5929
5933
  v: Z
5930
- }, i = qs.get(n.config.apiHost);
5934
+ }, i = Gs.get(n.config.apiHost);
5931
5935
  i && (r.eid = i);
5932
5936
  const s = n._getFrameworks();
5933
5937
  return s.length && (r.fw = s.join(",")), `${t}?${Q(r).slice(1)}`;
@@ -5943,7 +5947,7 @@ async function Js(n) {
5943
5947
  where: document.body,
5944
5948
  url: Ks(n),
5945
5949
  messageHandlersFilter: t.iframes.CROSS_ORIGIN_IFRAMES_FILTER,
5946
- attributes: Gs,
5950
+ attributes: qs,
5947
5951
  dontclear: !0
5948
5952
  }, (r) => new Promise(async (i, s) => {
5949
5953
  await r.restyle({
@@ -6114,7 +6118,7 @@ class ao {
6114
6118
  var s;
6115
6119
  S((s = this.eventManagers[e._key()]) === null || s === void 0 ? void 0 : s.manager, "_initialize() not called before _openPopup()");
6116
6120
  const o = await wt(e, t, r, Me(), i);
6117
- return to(e, o, Ge());
6121
+ return to(e, o, qe());
6118
6122
  }
6119
6123
  async _openRedirect(e, t, r, i) {
6120
6124
  await this._originValidation(e);
@@ -6264,7 +6268,7 @@ function ho(n) {
6264
6268
  apiScheme: "https",
6265
6269
  sdkClientVersion: rn(n)
6266
6270
  }, l = new $i(r, i, s, a);
6267
- return qi(l, t), l;
6271
+ return Gi(l, t), l;
6268
6272
  },
6269
6273
  "PUBLIC"
6270
6274
  /* ComponentType.PUBLIC */
@@ -6326,7 +6330,7 @@ function go(n = ai()) {
6326
6330
  const e = Mt(n, "auth");
6327
6331
  if (e.isInitialized())
6328
6332
  return e.getImmediate();
6329
- const t = Gi(n, {
6333
+ const t = qi(n, {
6330
6334
  popupRedirectResolver: co,
6331
6335
  persistence: [
6332
6336
  ys,
@@ -6341,7 +6345,7 @@ function go(n = ai()) {
6341
6345
  is(t, o, () => o(t.currentUser)), rs(t, (c) => o(c));
6342
6346
  }
6343
6347
  }
6344
- const i = qn("auth");
6348
+ const i = Gn("auth");
6345
6349
  return i && Ki(t, `http://${i}`), t;
6346
6350
  }
6347
6351
  function _o() {
@@ -0,0 +1,17 @@
1
+ interface Props {
2
+ modelValue: boolean;
3
+ restaurantId: string;
4
+ phoneNumber: string;
5
+ }
6
+ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
7
+ cancel: () => any;
8
+ "update:modelValue": (value: boolean) => any;
9
+ verified: () => any;
10
+ failed: (error: unknown) => any;
11
+ }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
12
+ onCancel?: (() => any) | undefined;
13
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
14
+ onVerified?: (() => any) | undefined;
15
+ onFailed?: ((error: unknown) => any) | undefined;
16
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
17
+ export default _default;
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-financing",
3
- "version": "0.0.30-dev",
3
+ "version": "0.0.32-dev",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"