@feedmepos/mf-payment 1.5.37-dev → 1.5.39-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.
@@ -1174,7 +1174,7 @@ const Kn = {
1174
1174
  sidebarDisplay: "Payout Accounts",
1175
1175
  section: "payment-gateway"
1176
1176
  },
1177
- component: () => import("./PayoutAccount-Cs0IYGri.js")
1177
+ component: () => import("./PayoutAccount-yNXpsIrL.js")
1178
1178
  },
1179
1179
  {
1180
1180
  path: "/admin/payout-accounts/:accountId",
@@ -1201,7 +1201,7 @@ const Kn = {
1201
1201
  meta: {
1202
1202
  parent: "mf-payment-admin.onboard-submission"
1203
1203
  },
1204
- component: () => import("./OnboardForm-DuJ4ZrJV.js")
1204
+ component: () => import("./OnboardForm-CdvMiDck.js")
1205
1205
  },
1206
1206
  {
1207
1207
  path: "/admin/terminal/pos",
@@ -1272,7 +1272,7 @@ const Kn = {
1272
1272
  meta: {
1273
1273
  sidebarDisplay: "Transactions"
1274
1274
  },
1275
- component: () => import("./Transaction-HTemq8TC.js")
1275
+ component: () => import("./Transaction-Q13nx0Qp.js")
1276
1276
  },
1277
1277
  {
1278
1278
  path: "/admin/chargeback",
@@ -1280,7 +1280,7 @@ const Kn = {
1280
1280
  meta: {
1281
1281
  sidebarDisplay: "Chargebacks"
1282
1282
  },
1283
- component: () => import("./Chargeback-F4uNGOcy.js")
1283
+ component: () => import("./Chargeback-jzp79SYF.js")
1284
1284
  },
1285
1285
  {
1286
1286
  path: "/admin/settlement",
@@ -1288,7 +1288,7 @@ const Kn = {
1288
1288
  meta: {
1289
1289
  sidebarDisplay: "Settlements"
1290
1290
  },
1291
- component: () => import("./Settlement-CRlYjp36.js")
1291
+ component: () => import("./Settlement-Bp5hjyx1.js")
1292
1292
  },
1293
1293
  {
1294
1294
  path: "/admin/settlement/:settlementId",
@@ -1307,7 +1307,7 @@ const Kn = {
1307
1307
  {
1308
1308
  path: "/payout-account",
1309
1309
  name: "mf-payment-payout-account",
1310
- component: () => import("./PayoutAccount-5IcgD7Bd.js"),
1310
+ component: () => import("./PayoutAccount-CpltF2Qh.js"),
1311
1311
  meta: {
1312
1312
  sidebarDisplay: "i18n:payment.routes.payout_account"
1313
1313
  }
@@ -1325,7 +1325,7 @@ const Kn = {
1325
1325
  path: "/onboard-submission/:type/:submission?",
1326
1326
  name: "mf-payment-onboard-submission-form",
1327
1327
  props: !0,
1328
- component: () => import("./OnboardForm-BRD1s1Y3.js"),
1328
+ component: () => import("./OnboardForm-bIRw9U_t.js"),
1329
1329
  meta: {
1330
1330
  parent: "mf-payment-onboard-submission"
1331
1331
  }
@@ -1333,7 +1333,7 @@ const Kn = {
1333
1333
  {
1334
1334
  path: "/transaction-old",
1335
1335
  name: "mf-payment-old-transaction",
1336
- component: () => import("./TransactionOld-BEfflWka.js"),
1336
+ component: () => import("./TransactionOld-BGnHifKa.js"),
1337
1337
  meta: {
1338
1338
  sidebarDisplay: "i18n:payment.routes.transaction"
1339
1339
  }
@@ -1341,7 +1341,7 @@ const Kn = {
1341
1341
  {
1342
1342
  path: "/transaction",
1343
1343
  name: "mf-payment-transaction",
1344
- component: () => import("./Transaction-CvUypCQq.js"),
1344
+ component: () => import("./Transaction-DCNfMt73.js"),
1345
1345
  meta: {
1346
1346
  sidebarDisplay: "i18n:payment.routes.transaction_new",
1347
1347
  sidebarNew: !0
@@ -1350,7 +1350,7 @@ const Kn = {
1350
1350
  {
1351
1351
  path: "/settlement",
1352
1352
  name: "mf-payment-settlement",
1353
- component: () => import("./Settlement-kRuh2LGa.js"),
1353
+ component: () => import("./Settlement-XhN_oxNt.js"),
1354
1354
  meta: {
1355
1355
  sidebarDisplay: "i18n:payment.routes.settlement",
1356
1356
  region: { MY: !0, SG: !0 }
package/dist/app.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as e, i as o, r as p } from "./app-BmekPZck.js";
1
+ import { a as e, i as o, r as p } from "./app-BXtBp2DJ.js";
2
2
  import "@feedmepos/mf-financing";
3
3
  export {
4
4
  e as FmApp,
@@ -0,0 +1,15 @@
1
+ import { type Ref } from 'vue';
2
+ type DateRange = {
3
+ startDate: string;
4
+ endDate: string;
5
+ };
6
+ type TransactionIdDateSuggestionOptions = {
7
+ searchKey: Ref<string>;
8
+ dateRange: Ref<DateRange>;
9
+ onBeforeApply?: () => void;
10
+ };
11
+ export declare const useTransactionIdDateSuggestion: ({ searchKey, dateRange, onBeforeApply, }: TransactionIdDateSuggestionOptions) => {
12
+ promptSuggestion: () => void;
13
+ closeSuggestion: () => void;
14
+ };
15
+ export {};
@@ -0,0 +1,58 @@
1
+ import { h as d } from "./moment-h96o7c8I.js";
2
+ import { ref as m } from "vue";
3
+ import { useSnackbar as g } from "@feedmepos/ui-library";
4
+ const h = () => ({
5
+ getBillLink: (t) => {
6
+ var n;
7
+ return !((n = t.payId) != null && n.startsWith("bill_")) || !t.restaurantId || t.restaurantId == "" || !t.businessId || t.businessId == "" ? null : `/restaurant-operation/transaction/${encodeURIComponent(t.payId)}?restaurantId=${encodeURIComponent(t.restaurantId)}&businessId=${encodeURIComponent(t.businessId)}`;
8
+ }
9
+ }), p = /^[a-f\d]{24}$/i, b = ({
10
+ searchKey: o,
11
+ dateRange: t,
12
+ onBeforeApply: n
13
+ }) => {
14
+ const u = g(), r = m(null), i = () => {
15
+ const e = o.value.trim();
16
+ return p.test(e) ? e : null;
17
+ }, a = () => {
18
+ if (!r.value)
19
+ return;
20
+ const e = r.value;
21
+ r.value = null, u.close(e);
22
+ }, l = () => {
23
+ r.value = null;
24
+ }, c = (e) => {
25
+ const s = parseInt(e.slice(0, 8), 16);
26
+ return d.unix(s).format("YYYY-MM-DD");
27
+ }, I = () => {
28
+ const e = i();
29
+ if (!e) {
30
+ a();
31
+ return;
32
+ }
33
+ n == null || n();
34
+ const s = c(e);
35
+ (t.value.startDate !== s || t.value.endDate !== s) && (t.value = {
36
+ ...t.value,
37
+ startDate: s,
38
+ endDate: s
39
+ }), a();
40
+ };
41
+ return {
42
+ promptSuggestion: () => {
43
+ a(), i() && (r.value = u.open({
44
+ title: "Are you searching for transaction ID ?",
45
+ message: "We can auto-set the date range from this ID to help narrow down the results.",
46
+ action: "Apply",
47
+ type: "info",
48
+ onAction: I,
49
+ onClose: l
50
+ }, 5e3));
51
+ },
52
+ closeSuggestion: a
53
+ };
54
+ };
55
+ export {
56
+ h as a,
57
+ b as u
58
+ };
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-payment",
3
- "version": "1.5.37-dev",
3
+ "version": "1.5.39-dev",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -107,4 +107,4 @@
107
107
  "vite": "^5.2.11",
108
108
  "vue-tsc": "^2.0.11"
109
109
  }
110
- }
110
+ }
@@ -1,7 +1,7 @@
1
1
  import { a as st, c as it, p as E, B as at } from "./index-T2CVm7-_.js";
2
2
  import { useCoreStore as ut } from "@feedmepos/mf-common";
3
3
  import { d as H } from "./index-BGIv1us6.js";
4
- import { _ as ot } from "./app-BmekPZck.js";
4
+ import { _ as ot } from "./app-BXtBp2DJ.js";
5
5
  var Q = { exports: {} };
6
6
  (function(i, a) {
7
7
  (function(t, m) {