@feedmepos/mf-payment 1.11.22-dev → 1.12.0
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/Actions.vue_vue_type_script_setup_true_lang-DEkSpYbw.js +118 -0
- package/dist/{AdminBusinessSelector.vue_vue_type_script_setup_true_lang-DlTlaRr0.js → AdminBusinessSelector.vue_vue_type_script_setup_true_lang-CZeyS_-_.js} +3 -3
- package/dist/{AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-CqFT58M_.js → AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-BGU64S5Z.js} +3 -3
- package/dist/{Chargeback-D71IAGTk.js → Chargeback-DwXllRT4.js} +9 -9
- package/dist/{DateRangePicker.vue_vue_type_script_setup_true_lang-CDjdQf-E.js → DateRangePicker.vue_vue_type_script_setup_true_lang-5ZaLjKl_.js} +2 -2
- package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-Dj3fMKVr.js → DocumentViewer.vue_vue_type_script_setup_true_lang-saQlwl6a.js} +857 -857
- package/dist/{ExternalTerminal-Cc9qwfN3.js → ExternalTerminal-DWnv8BaM.js} +31 -31
- package/dist/{OnboardForm-oAWTQnVu.js → OnboardForm--to1SX2z.js} +631 -694
- package/dist/{OnboardForm-DQ44zTWg.js → OnboardForm-BWIWimOG.js} +8 -8
- package/dist/OnboardSubmission-BtiI1ewF.js +449 -0
- package/dist/{OnboardSubmission-CSDvUix8.js → OnboardSubmission-DFhK_eus.js} +7 -7
- package/dist/{PaymentCheckout-oHQmbYkX.js → PaymentCheckout-CsDfQl6k.js} +4 -4
- package/dist/{mascot-side-BE_abER6.js → PayoutAccount-DtUHIt8d.js} +598 -206
- package/dist/{PayoutAccount-Dx8OtJxp.js → PayoutAccount-DxC8i69H.js} +9 -9
- package/dist/{PayoutAccountSetting-DoCZVhn3.js → PayoutAccountSetting-z-TySDXR.js} +10 -10
- package/dist/{Restaurant-Ct9aQWSp.js → Restaurant-3NdsiWwv.js} +5 -5
- package/dist/{RestaurantSetting-D7Yuuw47.js → RestaurantSetting-Cyn1i8dn.js} +9 -23
- package/dist/Settlement--SIL-7He.js +625 -0
- package/dist/{Settlement-gUV3TF4A.js → Settlement-CiKtgAZ4.js} +5 -5
- package/dist/{SettlementTransactions-BY3T-dG3.js → SettlementTransactions-C52wiVAb.js} +6 -6
- package/dist/{SettlementTransactions-DIkkrW6-.js → SettlementTransactions-CI2SHJB3.js} +97 -106
- package/dist/{Status.vue_vue_type_script_setup_true_lang-CQlT9Qj_.js → Status.vue_vue_type_script_setup_true_lang-DgqA7PhV.js} +1 -1
- package/dist/{Terminal-CPoxr6Ga.js → Terminal-Cx-X-ik5.js} +19 -19
- package/dist/{TerminalSetting-hmswppko.js → TerminalSetting-DY0EYdD-.js} +650 -776
- package/dist/{TerminalTemplate-B3zOtzmP.js → TerminalTemplate-BORrJdEH.js} +7 -7
- package/dist/{TerminalTemplateSetting-2R_LV6YP.js → TerminalTemplateSetting-CYaaQ5jC.js} +6 -6
- package/dist/{TextInputDialog.vue_vue_type_script_setup_true_lang-C3AeZqwO.js → TextInputDialog.vue_vue_type_script_setup_true_lang-CJ29Mqtm.js} +1 -1
- package/dist/{Transaction-CE5Y7oSP.js → Transaction-Bj9ckoKD.js} +19 -20
- package/dist/{Transaction-BV-_41-w.js → Transaction-D1W9J-YG.js} +54 -56
- package/dist/{TransactionOld-B2i6FWoP.js → TransactionOld-C-3Y9idi.js} +11 -12
- package/dist/{TransactionStatus.vue_vue_type_script_setup_true_lang-D07Iu5dG.js → TransactionStatus.vue_vue_type_script_setup_true_lang-C6ybTX_E.js} +2 -2
- package/dist/api/document/index.d.ts +0 -2
- package/dist/api/onboard-submission/index.d.ts +1 -6
- package/dist/api/terminal/index.d.ts +1 -2
- package/dist/{app-Db-hwBve.js → app-C8rDUQ-r.js} +14579 -14132
- package/dist/app.js +1 -1
- package/dist/{assets-CB7rE-mh.js → assets-QZbz5BYj.js} +46 -47
- package/dist/components/CursorTable/index.vue.d.ts +21 -3
- package/dist/components/PagingTable/index.vue.d.ts +9 -3
- package/dist/{grafana-5eWxG5r8.js → grafana-CHfYDJ1b.js} +4 -4
- package/dist/{index-rGzBv5-u.js → index-4KwdYYMe.js} +2 -2
- package/dist/{index-X_UgwLJS.js → index-7ofYlGzn.js} +1 -1
- package/dist/index-BgS9t01N.js +62 -0
- package/dist/{index-bczomY2M.js → index-Bgh4RGim.js} +2 -2
- package/dist/{index-DWU5m3QZ.js → index-CX2hs-UQ.js} +1 -1
- package/dist/{index-BNEwsJyD.js → index-CX9xj_f6.js} +1 -6
- package/dist/index-CdIL37va.js +33692 -0
- package/dist/{index-DWVs6h52.js → index-DVsHI6PR.js} +29 -52
- package/dist/{index-BCnQ-hAJ.js → index-Yt_qv8lG.js} +5 -39
- package/dist/index-mU9AofgQ.js +137 -0
- package/dist/{index-BmV1RaRw.js → index-x-AN2d5y.js} +2 -2
- package/dist/{index-DxQ3wF-X.js → index-yTZ7Gd-r.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-CSeS9lVS.js → index.vue_vue_type_script_setup_true_lang-CtE5UAGa.js} +1 -1
- package/dist/mf-payment.css +1 -0
- package/dist/model/onboard-submission.d.ts +5 -5
- package/dist/model/payout-account.d.ts +2 -3
- package/dist/{moment-h96o7c8I.js → moment-FRs5-R1e.js} +1194 -1067
- package/dist/{onboard-submission-BTnbIwsJ.js → onboard-submission-BdIQCrc0.js} +7 -8
- package/dist/package.json +76 -18
- package/dist/payout-account-CKYWpyP9.js +466 -0
- package/dist/router/index.d.ts +1 -3
- package/dist/stores/payoutAccount.d.ts +38 -40
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{teya-UA6TM323.js → tyro-BovmsorS.js} +2 -3
- package/dist/{useQuery-BJX-S-uW.js → useQuery-CkPLx8V5.js} +1 -1
- package/dist/{validator-CTlVogBQ.js → validator-Bz2eU53Y.js} +6 -6
- package/dist/views/admin/external-terminal/ExternalTerminalPairDialog.vue.d.ts +8 -8
- package/dist/views/admin/external-terminal/ExternalTerminalSideSheet.vue.d.ts +14 -14
- package/dist/views/admin/external-terminal/pair/BRITerminal.vue.d.ts +8 -8
- package/dist/views/admin/external-terminal/pair/BeamTerminal.vue.d.ts +8 -8
- package/dist/views/admin/onboard-submission/forms/NTTSubmission.vue.d.ts +24 -24
- package/dist/views/admin/onboard-submission/forms/SoftspaceSubmission.vue.d.ts +24 -24
- package/dist/views/admin/onboard-submission/forms/TyroSubmission.vue.d.ts +24 -24
- package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +38 -40
- package/dist/views/admin/payout-account/tabs/PaymentChannel.vue.d.ts +60 -62
- package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +60 -62
- package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +38 -40
- package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +38 -40
- package/dist/views/admin/payout-account/tabs/TokenGateway.vue.d.ts +60 -62
- package/dist/views/admin/payout-account/tabs/gateway/AdyenGateway.vue.d.ts +4 -4
- package/dist/views/admin/payout-account/tabs/gateway/BeamGateway.vue.d.ts +2 -2
- package/dist/views/admin/payout-account/tabs/gateway/DigioGateway.vue.d.ts +2 -2
- package/dist/views/admin/payout-account/tabs/gateway/FiuuGateway.vue.d.ts +2 -2
- package/dist/views/admin/payout-account/tabs/gateway/KsherGateway.vue.d.ts +2 -2
- package/dist/views/admin/payout-account/tabs/gateway/MacauPassGateway.vue.d.ts +2 -2
- package/dist/views/admin/payout-account/tabs/gateway/TyroGateway.vue.d.ts +2 -2
- package/dist/views/admin/payout-account/tabs/token/ApplePayToken.vue.d.ts +2 -2
- package/dist/views/admin/payout-account/tabs/token/GooglePayToken.vue.d.ts +2 -2
- package/dist/views/admin/restaurant/tabs/PaymentGateway.vue.d.ts +8 -32
- package/dist/views/admin/restaurant/tabs/gateway/AdyenGateway.vue.d.ts +4 -6
- package/dist/views/admin/restaurant/tabs/gateway/BeamGateway.vue.d.ts +4 -6
- package/dist/views/admin/restaurant/tabs/gateway/DigioGateway.vue.d.ts +4 -6
- package/dist/views/admin/restaurant/tabs/gateway/FiuuGateway.vue.d.ts +4 -6
- package/dist/views/admin/restaurant/tabs/gateway/GhlGateway.vue.d.ts +4 -6
- package/dist/views/admin/restaurant/tabs/gateway/GrabGateway.vue.d.ts +4 -6
- package/dist/views/admin/restaurant/tabs/gateway/KsherGateway.vue.d.ts +4 -6
- package/dist/views/admin/restaurant/tabs/gateway/MacauPassGateway.vue.d.ts +4 -6
- package/dist/views/admin/restaurant/tabs/gateway/MaybankGateway.vue.d.ts +4 -10
- package/dist/views/admin/restaurant/tabs/gateway/MonetapayGateway.vue.d.ts +4 -6
- package/dist/views/admin/restaurant/tabs/gateway/RevenueMonsterGateway.vue.d.ts +4 -6
- package/dist/views/admin/restaurant/tabs/gateway/SoftSpaceGateway.vue.d.ts +4 -6
- package/dist/views/admin/settlement/SettlementTable.vue.d.ts +4 -4
- package/dist/views/admin/terminal/TerminalSideSheet.vue.d.ts +22 -38
- package/dist/views/admin/terminal/tabs/EcrGateway.vue.d.ts +22 -38
- package/dist/views/admin/terminal/tabs/Information.vue.d.ts +22 -38
- package/dist/views/admin/terminal/tabs/PaymentCheckout.vue.d.ts +22 -38
- package/dist/views/admin/terminal/tabs/QrGateway.vue.d.ts +22 -38
- package/dist/views/admin/terminal/tabs/SettingRequest.vue.d.ts +22 -38
- package/dist/views/admin/terminal/tabs/SoftposGateway.vue.d.ts +22 -38
- package/dist/views/admin/terminal/tabs/ecr/BeamGateway.vue.d.ts +22 -38
- package/dist/views/admin/terminal/tabs/ecr/BriGateway.vue.d.ts +22 -38
- package/dist/views/admin/terminal/tabs/ecr/Ghl2Gateway.vue.d.ts +22 -38
- package/dist/views/admin/terminal/tabs/ecr/Ghl3Gateway.vue.d.ts +22 -38
- package/dist/views/admin/terminal/tabs/ecr/GhlGateway.vue.d.ts +22 -38
- package/dist/views/admin/terminal/tabs/ecr/GlobalPaymentsGateway.vue.d.ts +22 -38
- package/dist/views/admin/terminal/tabs/ecr/HlbbGateway.vue.d.ts +22 -38
- package/dist/views/admin/terminal/tabs/ecr/KBankGateway.vue.d.ts +22 -38
- package/dist/views/admin/terminal/tabs/ecr/Maybank2Gateway.vue.d.ts +22 -38
- package/dist/views/admin/terminal/tabs/ecr/Maybank3Gateway.vue.d.ts +22 -38
- package/dist/views/admin/terminal/tabs/ecr/MaybankGateway.vue.d.ts +22 -38
- package/dist/views/admin/terminal/tabs/ecr/NetsGateway.vue.d.ts +22 -38
- package/dist/views/admin/terminal/tabs/ecr/OmaGateway.vue.d.ts +22 -38
- package/dist/views/admin/terminal/tabs/ecr/PbbGateway.vue.d.ts +22 -38
- package/dist/views/admin/terminal/tabs/ecr/RevenueGateway.vue.d.ts +22 -38
- package/dist/views/admin/terminal/tabs/ecr/TerminalGateway.vue.d.ts +22 -38
- package/dist/views/admin/terminal/tabs/qr/PromptPayGateway.vue.d.ts +22 -38
- package/dist/views/admin/terminal/tabs/settings/KioskMode.vue.d.ts +22 -38
- package/dist/views/admin/terminal-template/TerminalTemplateSideSheet.vue.d.ts +30 -30
- package/dist/views/admin/terminal-template/tabs/EcrGateways.vue.d.ts +18 -18
- package/dist/views/admin/terminal-template/tabs/Information.vue.d.ts +18 -18
- package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +76 -80
- package/dist/views/settlement/FiuuSettlementTable.vue.d.ts +28 -28
- package/dist/views/settlement/FiuuSettlementTransactions.vue.d.ts +14 -14
- package/dist/views/settlement/SettlementTable.vue.d.ts +5 -15
- package/dist/views/settlement/SettlementTransactions.vue.d.ts +1 -11
- package/package.json +16 -17
- package/dist/Actions.vue_vue_type_script_setup_true_lang-COGP4bH0.js +0 -64
- package/dist/FoodCourtPayoutAccount-58TARaq6.js +0 -187
- package/dist/FoodCourtSettlement-BGgvu91A.js +0 -68
- package/dist/FoodCourtTransaction-B1rZHqE_.js +0 -212
- package/dist/Method.vue_vue_type_script_setup_true_lang-B8Vq5gSl.js +0 -58
- package/dist/OnboardSubmission-ncq-dkfF.js +0 -733
- package/dist/PayoutAccount-4ZI4Ik2p.js +0 -405
- package/dist/Settlement-BPaaEj_X.js +0 -510
- package/dist/SettlementTable.vue_vue_type_script_setup_true_lang-BsGmww2X.js +0 -132
- package/dist/api/food-court/index.d.ts +0 -31
- package/dist/index-B-xGomR7.js +0 -131
- package/dist/index-B6SmnK1g.js +0 -32927
- package/dist/index-CazeCsOR.js +0 -13
- package/dist/index-DXIvYLMm.js +0 -75
- package/dist/index-j-zqgMuS.js +0 -52
- package/dist/payout-account-BRzRptNv.js +0 -474
- package/dist/router/context-guard.d.ts +0 -3
- package/dist/router/food-court.d.ts +0 -3
- package/dist/style.css +0 -1
- package/dist/utils/food-court.d.ts +0 -2
- package/dist/views/admin/onboard-submission/forms/TeyaSubmission.vue.d.ts +0 -117
- package/dist/views/admin/terminal/tabs/ecr/TeyaGateway.vue.d.ts +0 -212
- package/dist/views/food-court/FoodCourtPayoutAccount.vue.d.ts +0 -2
- package/dist/views/food-court/FoodCourtSettlement.vue.d.ts +0 -2
- package/dist/views/food-court/FoodCourtTransaction.vue.d.ts +0 -2
- package/dist/views/onboard-submission/useTeyaConnect.d.ts +0 -71
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
import { e as t } from "./app-
|
|
1
|
+
import { e as t } from "./app-C8rDUQ-r.js";
|
|
2
2
|
import { useCoreStore as n } from "@feedmepos/mf-common";
|
|
3
|
-
import { p as i } from "./index-
|
|
3
|
+
import { p as i } from "./index-CdIL37va.js";
|
|
4
4
|
const s = {
|
|
5
5
|
softspace: [t.F_COUNTRY.enum.MY],
|
|
6
6
|
digipay: [t.F_COUNTRY.enum.TH],
|
|
7
7
|
ntt: [t.F_COUNTRY.enum.TH],
|
|
8
|
-
tyro: [t.F_COUNTRY.enum.AU]
|
|
9
|
-
|
|
10
|
-
}, m = [
|
|
8
|
+
tyro: [t.F_COUNTRY.enum.AU]
|
|
9
|
+
}, p = [
|
|
11
10
|
"Left Exterior Photo",
|
|
12
11
|
"Right Exterior Photo",
|
|
13
12
|
"Front Exterior Photo",
|
|
14
13
|
"Entrance Exterior Photo (Outside to Inside)",
|
|
15
14
|
"Entrance Interior Photo (Inside to Outside)"
|
|
16
|
-
],
|
|
15
|
+
], m = {
|
|
17
16
|
typeOptions() {
|
|
18
17
|
const r = n().currentCountry.value ?? t.F_COUNTRY.enum.MY;
|
|
19
18
|
return i.FdoOnboardType.options.filter((o) => {
|
|
@@ -26,7 +25,7 @@ const s = {
|
|
|
26
25
|
}
|
|
27
26
|
};
|
|
28
27
|
export {
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
m as O,
|
|
29
|
+
p as a,
|
|
31
30
|
s as b
|
|
32
31
|
};
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@feedmepos/mf-payment",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.12.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -35,14 +35,14 @@
|
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@casl/ability": "^3.2.0",
|
|
38
|
-
"@feedmepos/core": "^2.
|
|
38
|
+
"@feedmepos/core": "^2.6.0",
|
|
39
39
|
"@feedmepos/hrm-permission": "1.0.6",
|
|
40
|
-
"@feedmepos/mf-common": "1.
|
|
40
|
+
"@feedmepos/mf-common": "^1.26.8",
|
|
41
41
|
"@feedmepos/mf-financing": "0.0.24-dev",
|
|
42
|
-
"@feedmepos/payment-entity": "0.2.
|
|
43
|
-
"@feedmepos/ui-library": "^1.10.
|
|
42
|
+
"@feedmepos/payment-entity": "0.2.3",
|
|
43
|
+
"@feedmepos/ui-library": "^1.10.13",
|
|
44
44
|
"@tanstack/vue-query": "^5.101.0",
|
|
45
|
-
"axios": "^0.
|
|
45
|
+
"axios": "^0.34.0",
|
|
46
46
|
"buffer": "^6.0.3",
|
|
47
47
|
"change-case": "^4.1.2",
|
|
48
48
|
"dayjs": "^1.11.19",
|
|
@@ -53,29 +53,29 @@
|
|
|
53
53
|
"google-maps": "^4.3.3",
|
|
54
54
|
"i18next": "^21.8.8",
|
|
55
55
|
"i18next-browser-languagedetector": "^6.1.4",
|
|
56
|
-
"i18next-http-backend": "^
|
|
56
|
+
"i18next-http-backend": "^4.0.6",
|
|
57
57
|
"i18next-vue": "^2.0.0-beta.0",
|
|
58
|
-
"jspdf": "^2.
|
|
58
|
+
"jspdf": "^4.2.1",
|
|
59
59
|
"jsurl": "^0.1.5",
|
|
60
60
|
"jszip": "^3.10.1",
|
|
61
61
|
"libphonenumber-js": "^1.10.6",
|
|
62
|
-
"moment": "^2.
|
|
62
|
+
"moment": "^2.31.0",
|
|
63
63
|
"pinia": "^2.1.7",
|
|
64
64
|
"qrcode.vue": "^3.6.0",
|
|
65
65
|
"rasterizehtml": "^1.3.1",
|
|
66
66
|
"sentence-case": "^4.0.0",
|
|
67
|
-
"uuid": "^
|
|
68
|
-
"vue": "^3.
|
|
67
|
+
"uuid": "^11.1.1",
|
|
68
|
+
"vue": "^3.5.42",
|
|
69
69
|
"vue-advanced-cropper": "^2.8.6",
|
|
70
70
|
"vue-country-flag-next": "^2.3.2",
|
|
71
71
|
"vue-draggable-plus": "0.6.1",
|
|
72
|
-
"vue-i18n": "10.0.
|
|
72
|
+
"vue-i18n": "10.0.8",
|
|
73
73
|
"vue-pdf-embed": "^2.1.0",
|
|
74
74
|
"vue-router": "^4.2.5",
|
|
75
75
|
"vue-signature-pad": "^3.0.2",
|
|
76
76
|
"vue3-lottie": "^2.2.3",
|
|
77
|
-
"xlsx": "
|
|
78
|
-
"zod": "^3.
|
|
77
|
+
"xlsx": "https://cdn.sheetjs.com/xlsx-0.20.3/xlsx-0.20.3.tgz",
|
|
78
|
+
"zod": "^3.25.76"
|
|
79
79
|
},
|
|
80
80
|
"devDependencies": {
|
|
81
81
|
"@babel/preset-env": "^7.22.10",
|
|
@@ -87,7 +87,6 @@
|
|
|
87
87
|
"@types/jest": "^29.5.4",
|
|
88
88
|
"@types/jsurl": "^0.1.2",
|
|
89
89
|
"@types/qrcode": "^1.5.0",
|
|
90
|
-
"@types/uuid": "^8.3.4",
|
|
91
90
|
"@vitejs/plugin-vue": "^5.0.4",
|
|
92
91
|
"@vue/eslint-config-typescript": "^10.0.0",
|
|
93
92
|
"@vue/test-utils": "^2.4.1",
|
|
@@ -100,13 +99,72 @@
|
|
|
100
99
|
"jest-environment-jsdom": "^29.4.1",
|
|
101
100
|
"jest-transform-stub": "^2.0.0",
|
|
102
101
|
"path": "^0.12.7",
|
|
103
|
-
"postcss": "^8.
|
|
102
|
+
"postcss": "^8.5.31",
|
|
104
103
|
"sass": "1.32.12",
|
|
105
104
|
"tailwindcss": "^3.4.14",
|
|
106
105
|
"ts-jest": "^29.1.1",
|
|
107
106
|
"ts-node": "^10.9.1",
|
|
108
107
|
"typescript": "~5.4.0",
|
|
109
|
-
"vite": "^
|
|
108
|
+
"vite": "^6.4.5",
|
|
110
109
|
"vue-tsc": "^2.0.11"
|
|
110
|
+
},
|
|
111
|
+
"pnpm": {
|
|
112
|
+
"overrides": {
|
|
113
|
+
"axios@<0.34.0": "^0.34.0",
|
|
114
|
+
"axios@>=1.0.0 <1.20.0": "^1.20.0",
|
|
115
|
+
"follow-redirects": "^1.16.0",
|
|
116
|
+
"debug@<2.6.9": "^2.6.9",
|
|
117
|
+
"undici@>=6.0.0 <6.29.1": "^6.29.1",
|
|
118
|
+
"undici@>=7.0.0 <7.30.1": "^7.30.1",
|
|
119
|
+
"dompurify": "^3.4.17",
|
|
120
|
+
"qs": "^6.16.0",
|
|
121
|
+
"minimatch@<3.1.4": "^3.1.5",
|
|
122
|
+
"minimatch@>=9.0.0 <9.0.7": "^9.0.9",
|
|
123
|
+
"rollup@>=4.0.0 <4.59.0": "^4.59.0",
|
|
124
|
+
"ajv@<6.14.0": "^6.14.0",
|
|
125
|
+
"file-type@>=13.0.0 <21.3.2": "^21.3.2",
|
|
126
|
+
"flatted": "^3.4.2",
|
|
127
|
+
"path-to-regexp@<0.1.13": "^0.1.13",
|
|
128
|
+
"handlebars": "^4.7.10",
|
|
129
|
+
"brace-expansion@<1.1.21": "^1.1.21",
|
|
130
|
+
"brace-expansion@>=2.0.0 <2.1.7": "^2.1.7",
|
|
131
|
+
"picomatch@<2.3.2": "^2.3.2",
|
|
132
|
+
"picomatch@>=4.0.0 <4.0.4": "^4.0.4",
|
|
133
|
+
"lodash": "^4.18.0",
|
|
134
|
+
"lodash-es": "^4.18.0",
|
|
135
|
+
"postcss": "^8.5.31",
|
|
136
|
+
"protobufjs": "^7.6.5",
|
|
137
|
+
"@protobufjs/utf8": "^1.1.1",
|
|
138
|
+
"@grpc/grpc-js": "^1.13.6",
|
|
139
|
+
"ip-address": "^10.7.4",
|
|
140
|
+
"fast-xml-builder": "^1.1.7",
|
|
141
|
+
"ws@>=8.0.0 <8.21.0": "^8.21.0",
|
|
142
|
+
"@tootallnate/once@<2.0.1": "^2.0.1",
|
|
143
|
+
"uuid@<11.1.1": "^11.1.1",
|
|
144
|
+
"@babel/plugin-transform-modules-systemjs": "^7.29.4",
|
|
145
|
+
"@babel/core": "^7.29.6",
|
|
146
|
+
"js-cookie": "^3.0.7",
|
|
147
|
+
"form-data@>=4.0.0 <4.0.6": "^4.0.6",
|
|
148
|
+
"js-yaml@<3.15.2": "^3.15.2",
|
|
149
|
+
"js-yaml@>=4.0.0 <4.3.2": "^4.3.2",
|
|
150
|
+
"websocket-driver": "^0.7.5",
|
|
151
|
+
"body-parser@<1.20.9": "^1.20.9",
|
|
152
|
+
"nanoid@<3.3.18": "^3.3.18",
|
|
153
|
+
"postcss-selector-parser": "^7.1.6",
|
|
154
|
+
"browserslist": "^4.28.7",
|
|
155
|
+
"baseline-browser-mapping": "^2.11.0",
|
|
156
|
+
"moment": "^2.31.0",
|
|
157
|
+
"source-map-js": "^1.2.2",
|
|
158
|
+
"proxy-addr": "^2.0.8",
|
|
159
|
+
"@vue/server-renderer": "^3.5.42",
|
|
160
|
+
"sharp": "^0.35.5",
|
|
161
|
+
"esbuild@<0.25.0": "^0.25.0",
|
|
162
|
+
"fflate@<0.8.3": "^0.8.3",
|
|
163
|
+
"vue-i18n": "10.0.8",
|
|
164
|
+
"@intlify/core-base": "10.0.8",
|
|
165
|
+
"jspdf": "^4.2.1",
|
|
166
|
+
"xlsx": "$xlsx",
|
|
167
|
+
"i18next-http-backend": "^4.0.6"
|
|
168
|
+
}
|
|
111
169
|
}
|
|
112
|
-
}
|
|
170
|
+
}
|
|
@@ -0,0 +1,466 @@
|
|
|
1
|
+
import { r as it, p as E } from "./index-CdIL37va.js";
|
|
2
|
+
import { w as at, _ as ut } from "./app-C8rDUQ-r.js";
|
|
3
|
+
import { useCoreStore as ot } from "@feedmepos/mf-common";
|
|
4
|
+
import { d as B } from "./index-DVsHI6PR.js";
|
|
5
|
+
var ft = it(), H = { exports: {} }, ct = H.exports, K;
|
|
6
|
+
function ht() {
|
|
7
|
+
return K || (K = 1, (function(i, a) {
|
|
8
|
+
(function(t, m) {
|
|
9
|
+
i.exports = m();
|
|
10
|
+
})(ct, (function() {
|
|
11
|
+
var t = 1e3, m = 6e4, b = 36e5, O = "millisecond", v = "second", k = "minute", _ = "hour", y = "day", w = "week", p = "month", C = "quarter", T = "year", A = "date", G = "Invalid Date", et = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, rt = /\[([^\]]+)]|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, nt = { 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(u) {
|
|
12
|
+
var n = ["th", "st", "nd", "rd"], e = u % 100;
|
|
13
|
+
return "[" + u + (n[(e - 20) % 10] || n[e] || n[0]) + "]";
|
|
14
|
+
} }, Z = function(u, n, e) {
|
|
15
|
+
var s = String(u);
|
|
16
|
+
return !s || s.length >= n ? u : "" + Array(n + 1 - s.length).join(e) + u;
|
|
17
|
+
}, st = { s: Z, z: function(u) {
|
|
18
|
+
var n = -u.utcOffset(), e = Math.abs(n), s = Math.floor(e / 60), r = e % 60;
|
|
19
|
+
return (n <= 0 ? "+" : "-") + Z(s, 2, "0") + ":" + Z(r, 2, "0");
|
|
20
|
+
}, m: function u(n, e) {
|
|
21
|
+
if (n.date() < e.date()) return -u(e, n);
|
|
22
|
+
var s = 12 * (e.year() - n.year()) + (e.month() - n.month()), r = n.clone().add(s, p), o = e - r < 0, f = n.clone().add(s + (o ? -1 : 1), p);
|
|
23
|
+
return +(-(s + (e - r) / (o ? r - f : f - r)) || 0);
|
|
24
|
+
}, a: function(u) {
|
|
25
|
+
return u < 0 ? Math.ceil(u) || 0 : Math.floor(u);
|
|
26
|
+
}, p: function(u) {
|
|
27
|
+
return { M: p, y: T, w, d: y, D: A, h: _, m: k, s: v, ms: O, Q: C }[u] || String(u || "").toLowerCase().replace(/s$/, "");
|
|
28
|
+
}, u: function(u) {
|
|
29
|
+
return u === void 0;
|
|
30
|
+
} }, I = "en", D = {};
|
|
31
|
+
D[I] = nt;
|
|
32
|
+
var q = "$isDayjsObject", J = function(u) {
|
|
33
|
+
return u instanceof R || !(!u || !u[q]);
|
|
34
|
+
}, j = function u(n, e, s) {
|
|
35
|
+
var r;
|
|
36
|
+
if (!n) return I;
|
|
37
|
+
if (typeof n == "string") {
|
|
38
|
+
var o = n.toLowerCase();
|
|
39
|
+
D[o] && (r = o), e && (D[o] = e, r = o);
|
|
40
|
+
var f = n.split("-");
|
|
41
|
+
if (!r && f.length > 1) return u(f[0]);
|
|
42
|
+
} else {
|
|
43
|
+
var h = n.name;
|
|
44
|
+
D[h] = n, r = h;
|
|
45
|
+
}
|
|
46
|
+
return !s && r && (I = r), r || !s && I;
|
|
47
|
+
}, l = function(u, n) {
|
|
48
|
+
if (J(u)) return u.clone();
|
|
49
|
+
var e = typeof n == "object" ? n : {};
|
|
50
|
+
return e.date = u, e.args = arguments, new R(e);
|
|
51
|
+
}, c = st;
|
|
52
|
+
c.l = j, c.i = J, c.w = function(u, n) {
|
|
53
|
+
return l(u, { locale: n.$L, utc: n.$u, x: n.$x, $offset: n.$offset });
|
|
54
|
+
};
|
|
55
|
+
var R = (function() {
|
|
56
|
+
function u(e) {
|
|
57
|
+
this.$L = j(e.locale, null, !0), this.parse(e), this.$x = this.$x || e.x || {}, this[q] = !0;
|
|
58
|
+
}
|
|
59
|
+
var n = u.prototype;
|
|
60
|
+
return n.parse = function(e) {
|
|
61
|
+
this.$d = (function(s) {
|
|
62
|
+
var r = s.date, o = s.utc;
|
|
63
|
+
if (r === null) return /* @__PURE__ */ new Date(NaN);
|
|
64
|
+
if (c.u(r)) return /* @__PURE__ */ new Date();
|
|
65
|
+
if (r instanceof Date) return new Date(r);
|
|
66
|
+
if (typeof r == "string" && !/Z$/i.test(r)) {
|
|
67
|
+
var f = r.match(et);
|
|
68
|
+
if (f) {
|
|
69
|
+
var h = f[2] - 1 || 0, d = (f[7] || "0").substring(0, 3);
|
|
70
|
+
return o ? new Date(Date.UTC(f[1], h, f[3] || 1, f[4] || 0, f[5] || 0, f[6] || 0, d)) : new Date(f[1], h, f[3] || 1, f[4] || 0, f[5] || 0, f[6] || 0, d);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
return new Date(r);
|
|
74
|
+
})(e), this.init();
|
|
75
|
+
}, n.init = function() {
|
|
76
|
+
var e = this.$d;
|
|
77
|
+
this.$y = e.getFullYear(), this.$M = e.getMonth(), this.$D = e.getDate(), this.$W = e.getDay(), this.$H = e.getHours(), this.$m = e.getMinutes(), this.$s = e.getSeconds(), this.$ms = e.getMilliseconds();
|
|
78
|
+
}, n.$utils = function() {
|
|
79
|
+
return c;
|
|
80
|
+
}, n.isValid = function() {
|
|
81
|
+
return this.$d.toString() !== G;
|
|
82
|
+
}, n.isSame = function(e, s) {
|
|
83
|
+
var r = l(e);
|
|
84
|
+
return this.startOf(s) <= r && r <= this.endOf(s);
|
|
85
|
+
}, n.isAfter = function(e, s) {
|
|
86
|
+
return l(e) < this.startOf(s);
|
|
87
|
+
}, n.isBefore = function(e, s) {
|
|
88
|
+
return this.endOf(s) < l(e);
|
|
89
|
+
}, n.$g = function(e, s, r) {
|
|
90
|
+
return c.u(e) ? this[s] : this.set(r, e);
|
|
91
|
+
}, n.unix = function() {
|
|
92
|
+
return Math.floor(this.valueOf() / 1e3);
|
|
93
|
+
}, n.valueOf = function() {
|
|
94
|
+
return this.$d.getTime();
|
|
95
|
+
}, n.startOf = function(e, s) {
|
|
96
|
+
var r = this, o = !!c.u(s) || s, f = c.p(e), h = function(P, g) {
|
|
97
|
+
var N = c.w(r.$u ? Date.UTC(r.$y, g, P) : new Date(r.$y, g, P), r);
|
|
98
|
+
return o ? N : N.endOf(y);
|
|
99
|
+
}, d = function(P, g) {
|
|
100
|
+
return c.w(r.toDate()[P].apply(r.toDate("s"), (o ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(g)), r);
|
|
101
|
+
}, $ = this.$W, S = this.$M, M = this.$D, U = "set" + (this.$u ? "UTC" : "");
|
|
102
|
+
switch (f) {
|
|
103
|
+
case T:
|
|
104
|
+
return o ? h(1, 0) : h(31, 11);
|
|
105
|
+
case p:
|
|
106
|
+
return o ? h(1, S) : h(0, S + 1);
|
|
107
|
+
case w:
|
|
108
|
+
var x = this.$locale().weekStart || 0, Y = ($ < x ? $ + 7 : $) - x;
|
|
109
|
+
return h(o ? M - Y : M + (6 - Y), S);
|
|
110
|
+
case y:
|
|
111
|
+
case A:
|
|
112
|
+
return d(U + "Hours", 0);
|
|
113
|
+
case _:
|
|
114
|
+
return d(U + "Minutes", 1);
|
|
115
|
+
case k:
|
|
116
|
+
return d(U + "Seconds", 2);
|
|
117
|
+
case v:
|
|
118
|
+
return d(U + "Milliseconds", 3);
|
|
119
|
+
default:
|
|
120
|
+
return this.clone();
|
|
121
|
+
}
|
|
122
|
+
}, n.endOf = function(e) {
|
|
123
|
+
return this.startOf(e, !1);
|
|
124
|
+
}, n.$set = function(e, s) {
|
|
125
|
+
var r, o = c.p(e), f = "set" + (this.$u ? "UTC" : ""), h = (r = {}, r[y] = f + "Date", r[A] = f + "Date", r[p] = f + "Month", r[T] = f + "FullYear", r[_] = f + "Hours", r[k] = f + "Minutes", r[v] = f + "Seconds", r[O] = f + "Milliseconds", r)[o], d = o === y ? this.$D + (s - this.$W) : s;
|
|
126
|
+
if (o === p || o === T) {
|
|
127
|
+
var $ = this.clone().set(A, 1);
|
|
128
|
+
$.$d[h](d), $.init(), this.$d = $.set(A, Math.min(this.$D, $.daysInMonth())).$d;
|
|
129
|
+
} else h && this.$d[h](d);
|
|
130
|
+
return this.init(), this;
|
|
131
|
+
}, n.set = function(e, s) {
|
|
132
|
+
return this.clone().$set(e, s);
|
|
133
|
+
}, n.get = function(e) {
|
|
134
|
+
return this[c.p(e)]();
|
|
135
|
+
}, n.add = function(e, s) {
|
|
136
|
+
var r, o = this;
|
|
137
|
+
e = Number(e);
|
|
138
|
+
var f = c.p(s), h = function(S) {
|
|
139
|
+
var M = l(o);
|
|
140
|
+
return c.w(M.date(M.date() + Math.round(S * e)), o);
|
|
141
|
+
};
|
|
142
|
+
if (f === p) return this.set(p, this.$M + e);
|
|
143
|
+
if (f === T) return this.set(T, this.$y + e);
|
|
144
|
+
if (f === y) return h(1);
|
|
145
|
+
if (f === w) return h(7);
|
|
146
|
+
var d = (r = {}, r[k] = m, r[_] = b, r[v] = t, r)[f] || 1, $ = this.$d.getTime() + e * d;
|
|
147
|
+
return c.w($, this);
|
|
148
|
+
}, n.subtract = function(e, s) {
|
|
149
|
+
return this.add(-1 * e, s);
|
|
150
|
+
}, n.format = function(e) {
|
|
151
|
+
var s = this, r = this.$locale();
|
|
152
|
+
if (!this.isValid()) return r.invalidDate || G;
|
|
153
|
+
var o = e || "YYYY-MM-DDTHH:mm:ssZ", f = c.z(this), h = this.$H, d = this.$m, $ = this.$M, S = r.weekdays, M = r.months, U = r.meridiem, x = function(g, N, F, L) {
|
|
154
|
+
return g && (g[N] || g(s, o)) || F[N].slice(0, L);
|
|
155
|
+
}, Y = function(g) {
|
|
156
|
+
return c.s(h % 12 || 12, g, "0");
|
|
157
|
+
}, P = U || function(g, N, F) {
|
|
158
|
+
var L = g < 12 ? "AM" : "PM";
|
|
159
|
+
return F ? L.toLowerCase() : L;
|
|
160
|
+
};
|
|
161
|
+
return o.replace(rt, (function(g, N) {
|
|
162
|
+
return N || (function(F) {
|
|
163
|
+
switch (F) {
|
|
164
|
+
case "YY":
|
|
165
|
+
return String(s.$y).slice(-2);
|
|
166
|
+
case "YYYY":
|
|
167
|
+
return c.s(s.$y, 4, "0");
|
|
168
|
+
case "M":
|
|
169
|
+
return $ + 1;
|
|
170
|
+
case "MM":
|
|
171
|
+
return c.s($ + 1, 2, "0");
|
|
172
|
+
case "MMM":
|
|
173
|
+
return x(r.monthsShort, $, M, 3);
|
|
174
|
+
case "MMMM":
|
|
175
|
+
return x(M, $);
|
|
176
|
+
case "D":
|
|
177
|
+
return s.$D;
|
|
178
|
+
case "DD":
|
|
179
|
+
return c.s(s.$D, 2, "0");
|
|
180
|
+
case "d":
|
|
181
|
+
return String(s.$W);
|
|
182
|
+
case "dd":
|
|
183
|
+
return x(r.weekdaysMin, s.$W, S, 2);
|
|
184
|
+
case "ddd":
|
|
185
|
+
return x(r.weekdaysShort, s.$W, S, 3);
|
|
186
|
+
case "dddd":
|
|
187
|
+
return S[s.$W];
|
|
188
|
+
case "H":
|
|
189
|
+
return String(h);
|
|
190
|
+
case "HH":
|
|
191
|
+
return c.s(h, 2, "0");
|
|
192
|
+
case "h":
|
|
193
|
+
return Y(1);
|
|
194
|
+
case "hh":
|
|
195
|
+
return Y(2);
|
|
196
|
+
case "a":
|
|
197
|
+
return P(h, d, !0);
|
|
198
|
+
case "A":
|
|
199
|
+
return P(h, d, !1);
|
|
200
|
+
case "m":
|
|
201
|
+
return String(d);
|
|
202
|
+
case "mm":
|
|
203
|
+
return c.s(d, 2, "0");
|
|
204
|
+
case "s":
|
|
205
|
+
return String(s.$s);
|
|
206
|
+
case "ss":
|
|
207
|
+
return c.s(s.$s, 2, "0");
|
|
208
|
+
case "SSS":
|
|
209
|
+
return c.s(s.$ms, 3, "0");
|
|
210
|
+
case "Z":
|
|
211
|
+
return f;
|
|
212
|
+
}
|
|
213
|
+
return null;
|
|
214
|
+
})(g) || f.replace(":", "");
|
|
215
|
+
}));
|
|
216
|
+
}, n.utcOffset = function() {
|
|
217
|
+
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
218
|
+
}, n.diff = function(e, s, r) {
|
|
219
|
+
var o, f = this, h = c.p(s), d = l(e), $ = (d.utcOffset() - this.utcOffset()) * m, S = this - d, M = function() {
|
|
220
|
+
return c.m(f, d);
|
|
221
|
+
};
|
|
222
|
+
switch (h) {
|
|
223
|
+
case T:
|
|
224
|
+
o = M() / 12;
|
|
225
|
+
break;
|
|
226
|
+
case p:
|
|
227
|
+
o = M();
|
|
228
|
+
break;
|
|
229
|
+
case C:
|
|
230
|
+
o = M() / 3;
|
|
231
|
+
break;
|
|
232
|
+
case w:
|
|
233
|
+
o = (S - $) / 6048e5;
|
|
234
|
+
break;
|
|
235
|
+
case y:
|
|
236
|
+
o = (S - $) / 864e5;
|
|
237
|
+
break;
|
|
238
|
+
case _:
|
|
239
|
+
o = S / b;
|
|
240
|
+
break;
|
|
241
|
+
case k:
|
|
242
|
+
o = S / m;
|
|
243
|
+
break;
|
|
244
|
+
case v:
|
|
245
|
+
o = S / t;
|
|
246
|
+
break;
|
|
247
|
+
default:
|
|
248
|
+
o = S;
|
|
249
|
+
}
|
|
250
|
+
return r ? o : c.a(o);
|
|
251
|
+
}, n.daysInMonth = function() {
|
|
252
|
+
return this.endOf(p).$D;
|
|
253
|
+
}, n.$locale = function() {
|
|
254
|
+
return D[this.$L];
|
|
255
|
+
}, n.locale = function(e, s) {
|
|
256
|
+
if (!e) return this.$L;
|
|
257
|
+
var r = this.clone(), o = j(e, s, !0);
|
|
258
|
+
return o && (r.$L = o), r;
|
|
259
|
+
}, n.clone = function() {
|
|
260
|
+
return c.w(this.$d, this);
|
|
261
|
+
}, n.toDate = function() {
|
|
262
|
+
return new Date(this.valueOf());
|
|
263
|
+
}, n.toJSON = function() {
|
|
264
|
+
return this.isValid() ? this.toISOString() : null;
|
|
265
|
+
}, n.toISOString = function() {
|
|
266
|
+
return this.$d.toISOString();
|
|
267
|
+
}, n.toString = function() {
|
|
268
|
+
return this.$d.toUTCString();
|
|
269
|
+
}, u;
|
|
270
|
+
})(), X = R.prototype;
|
|
271
|
+
return l.prototype = X, [["$ms", O], ["$s", v], ["$m", k], ["$H", _], ["$W", y], ["$M", p], ["$y", T], ["$D", A]].forEach((function(u) {
|
|
272
|
+
X[u[1]] = function(n) {
|
|
273
|
+
return this.$g(n, u[0], u[1]);
|
|
274
|
+
};
|
|
275
|
+
})), l.extend = function(u, n) {
|
|
276
|
+
return u.$i || (u(n, R, l), u.$i = !0), l;
|
|
277
|
+
}, l.locale = j, l.isDayjs = J, l.unix = function(u) {
|
|
278
|
+
return l(1e3 * u);
|
|
279
|
+
}, l.en = D[I], l.Ls = D, l.p = {}, l;
|
|
280
|
+
}));
|
|
281
|
+
})(H)), H.exports;
|
|
282
|
+
}
|
|
283
|
+
var mt = ht();
|
|
284
|
+
const dt = /* @__PURE__ */ at(mt);
|
|
285
|
+
function lt(i) {
|
|
286
|
+
return i.toLowerCase();
|
|
287
|
+
}
|
|
288
|
+
var $t = [/([a-z0-9])([A-Z])/g, /([A-Z])([A-Z][a-z])/g], St = /[^A-Z0-9]+/gi;
|
|
289
|
+
function vt(i, a) {
|
|
290
|
+
a === void 0 && (a = {});
|
|
291
|
+
for (var t = a.splitRegexp, m = t === void 0 ? $t : t, b = a.stripRegexp, O = b === void 0 ? St : b, v = a.transform, k = v === void 0 ? lt : v, _ = a.delimiter, y = _ === void 0 ? " " : _, w = Q(Q(i, m, "$1\0$2"), O, "\0"), p = 0, C = w.length; w.charAt(p) === "\0"; )
|
|
292
|
+
p++;
|
|
293
|
+
for (; w.charAt(C - 1) === "\0"; )
|
|
294
|
+
C--;
|
|
295
|
+
return w.slice(p, C).split("\0").map(k).join(y);
|
|
296
|
+
}
|
|
297
|
+
function Q(i, a, t) {
|
|
298
|
+
return a instanceof RegExp ? i.replace(a, t) : a.reduce(function(m, b) {
|
|
299
|
+
return m.replace(b, t);
|
|
300
|
+
}, i);
|
|
301
|
+
}
|
|
302
|
+
function pt(i) {
|
|
303
|
+
return i.charAt(0).toUpperCase() + i.substr(1);
|
|
304
|
+
}
|
|
305
|
+
function gt(i, a) {
|
|
306
|
+
var t = i.toLowerCase();
|
|
307
|
+
return a === 0 ? pt(t) : t;
|
|
308
|
+
}
|
|
309
|
+
function W(i, a) {
|
|
310
|
+
return a === void 0 && (a = {}), vt(i, ut({ delimiter: " ", transform: gt }, a));
|
|
311
|
+
}
|
|
312
|
+
function bt(i, a = []) {
|
|
313
|
+
const t = JSON.parse(JSON.stringify(i));
|
|
314
|
+
return a.length > 0 && a.forEach((m) => {
|
|
315
|
+
t[m] !== void 0 && delete t[m];
|
|
316
|
+
}), t;
|
|
317
|
+
}
|
|
318
|
+
function yt(i, a) {
|
|
319
|
+
var m, b, O, v, k, _, y;
|
|
320
|
+
const t = a ? bt(a) : void 0;
|
|
321
|
+
return {
|
|
322
|
+
_id: (t == null ? void 0 : t._id) ?? "",
|
|
323
|
+
notifyUrl: (t == null ? void 0 : t.notifyUrl) ?? "",
|
|
324
|
+
store: {
|
|
325
|
+
id: (t == null ? void 0 : t.store.id) ?? "",
|
|
326
|
+
event: (t == null ? void 0 : t.store.event) ?? E.F_PAYOUT_FOR.Enum.ORDERING,
|
|
327
|
+
regNo: (t == null ? void 0 : t.store.regNo) ?? "",
|
|
328
|
+
companyName: (t == null ? void 0 : t.store.companyName) ?? "",
|
|
329
|
+
bank: {
|
|
330
|
+
name: ((m = t == null ? void 0 : t.store.bank) == null ? void 0 : m.name) ?? z.bankNameOptions()[0].value,
|
|
331
|
+
type: ((b = t == null ? void 0 : t.store.bank) == null ? void 0 : b.type) ?? z.bankTypeOptions()[0].value,
|
|
332
|
+
holderName: ((O = t == null ? void 0 : t.store.bank) == null ? void 0 : O.holderName) ?? "",
|
|
333
|
+
accountNumber: ((v = t == null ? void 0 : t.store.bank) == null ? void 0 : v.accountNumber) ?? ""
|
|
334
|
+
},
|
|
335
|
+
keyPerson: {
|
|
336
|
+
name: ((k = t == null ? void 0 : t.store.keyPerson) == null ? void 0 : k.name) ?? "",
|
|
337
|
+
phone: ((_ = t == null ? void 0 : t.store.keyPerson) == null ? void 0 : _.phone) ?? "",
|
|
338
|
+
email: ((y = t == null ? void 0 : t.store.keyPerson) == null ? void 0 : y.email) ?? ""
|
|
339
|
+
},
|
|
340
|
+
ssm: (t == null ? void 0 : t.store.ssm) ?? "",
|
|
341
|
+
bankStatement: (t == null ? void 0 : t.store.bankStatement) ?? "",
|
|
342
|
+
exteriorPhoto: (t == null ? void 0 : t.store.exteriorPhoto) ?? ""
|
|
343
|
+
},
|
|
344
|
+
enable: (t == null ? void 0 : t.enable) ?? !1,
|
|
345
|
+
methods: (t == null ? void 0 : t.methods) ?? [],
|
|
346
|
+
status: (t == null ? void 0 : t.status) ?? E.F_PAYOUT_ACCOUNT_STATUS.Enum.NEW,
|
|
347
|
+
businessId: i
|
|
348
|
+
};
|
|
349
|
+
}
|
|
350
|
+
function _t(i) {
|
|
351
|
+
return i.reduce(
|
|
352
|
+
(a, t) => ([E.F_PAYOUT_ACCOUNT_STATUS.Enum.NEW].some((m) => m == t.status) ? a.NEW.push({
|
|
353
|
+
...t
|
|
354
|
+
}) : a.EXISTED.push({
|
|
355
|
+
...t
|
|
356
|
+
}), a),
|
|
357
|
+
{
|
|
358
|
+
NEW: [],
|
|
359
|
+
EXISTED: []
|
|
360
|
+
}
|
|
361
|
+
);
|
|
362
|
+
}
|
|
363
|
+
async function V(i) {
|
|
364
|
+
}
|
|
365
|
+
async function tt(i, a, t) {
|
|
366
|
+
const m = dt().toISOString();
|
|
367
|
+
if (i.restaurantId)
|
|
368
|
+
return await B.upload(
|
|
369
|
+
`restaurant/${i.restaurantId}/documents/${a}/${m}.pdf`,
|
|
370
|
+
t,
|
|
371
|
+
i.restaurantId
|
|
372
|
+
);
|
|
373
|
+
if (i.businessId)
|
|
374
|
+
return await B.upload(
|
|
375
|
+
`business/${i.businessId}/documents/${a}/${m}.pdf`,
|
|
376
|
+
t
|
|
377
|
+
);
|
|
378
|
+
throw "Not implemented";
|
|
379
|
+
}
|
|
380
|
+
async function Mt(i, a) {
|
|
381
|
+
if (i.restaurantId)
|
|
382
|
+
return await B.upload(
|
|
383
|
+
`restaurant/${i.restaurantId}/exterior/photo`,
|
|
384
|
+
a,
|
|
385
|
+
i.restaurantId
|
|
386
|
+
);
|
|
387
|
+
if (i.businessId)
|
|
388
|
+
return await B.upload(
|
|
389
|
+
`business/${i.businessId}/exterior/photo`,
|
|
390
|
+
a
|
|
391
|
+
);
|
|
392
|
+
throw "Not implemented";
|
|
393
|
+
}
|
|
394
|
+
async function Ot(i, a, t) {
|
|
395
|
+
a.store.ssm && t.newSSM && await V(a.store.ssm), a.store.bankStatement && t.newBankStatement && await V(a.store.bankStatement), a.store.exteriorPhoto && t.newExteriorPhoto && await V(a.store.exteriorPhoto);
|
|
396
|
+
let m = a.methods;
|
|
397
|
+
t.payoutSetting.methods.length > 0 && (m = t.payoutSetting.methods);
|
|
398
|
+
let b = a.store.ssm || "";
|
|
399
|
+
t.newSSM && (b = await tt(i, "ssm", t.newSSM));
|
|
400
|
+
let O = a.store.bankStatement || "";
|
|
401
|
+
t.newBankStatement && (O = await tt(
|
|
402
|
+
i,
|
|
403
|
+
"bankStatement",
|
|
404
|
+
t.newBankStatement
|
|
405
|
+
));
|
|
406
|
+
let v = a.store.exteriorPhoto || "";
|
|
407
|
+
return t.newExteriorPhoto && (v = await Mt(
|
|
408
|
+
i,
|
|
409
|
+
t.newExteriorPhoto
|
|
410
|
+
)), {
|
|
411
|
+
...a,
|
|
412
|
+
methods: m,
|
|
413
|
+
store: {
|
|
414
|
+
...a.store,
|
|
415
|
+
id: t.payoutSetting.store.id,
|
|
416
|
+
keyPerson: t.payoutSetting.store.keyPerson,
|
|
417
|
+
regNo: t.payoutSetting.store.regNo,
|
|
418
|
+
companyName: t.payoutSetting.store.companyName,
|
|
419
|
+
bank: t.payoutSetting.store.bank,
|
|
420
|
+
ssm: b,
|
|
421
|
+
bankStatement: O,
|
|
422
|
+
exteriorPhoto: v,
|
|
423
|
+
event: t.payoutSetting.store.event
|
|
424
|
+
},
|
|
425
|
+
status: E.F_PAYOUT_ACCOUNT_STATUS.Enum.PENDING,
|
|
426
|
+
notifyUrl: t.payoutSetting.store.event === E.F_PAYOUT_FOR.Enum.MARKETING ? "http://marketing-api-service:3000/customer/callback/store" : "http://order-backend:3000/backend/payment"
|
|
427
|
+
};
|
|
428
|
+
}
|
|
429
|
+
const z = {
|
|
430
|
+
bankNameOptions() {
|
|
431
|
+
const i = ot().currentCountry.value, a = ft.Bank(i).F_BANK_NAME;
|
|
432
|
+
return Object.values(a).map((t) => ({
|
|
433
|
+
label: W(t),
|
|
434
|
+
value: t
|
|
435
|
+
}));
|
|
436
|
+
},
|
|
437
|
+
bankTypeOptions() {
|
|
438
|
+
return Object.values(E.F_BANK_TYPE.Values).map((i) => ({
|
|
439
|
+
label: W(i),
|
|
440
|
+
value: i
|
|
441
|
+
}));
|
|
442
|
+
},
|
|
443
|
+
storeEventOptions() {
|
|
444
|
+
return Object.values(E.F_PAYOUT_FOR.Values).map((i) => ({
|
|
445
|
+
label: W(i),
|
|
446
|
+
value: i
|
|
447
|
+
}));
|
|
448
|
+
},
|
|
449
|
+
statusOptions() {
|
|
450
|
+
return Object.values(E.F_PAYOUT_ACCOUNT_STATUS.Values).map((i) => ({
|
|
451
|
+
label: W(i),
|
|
452
|
+
value: i
|
|
453
|
+
}));
|
|
454
|
+
}
|
|
455
|
+
}, Et = {
|
|
456
|
+
mergeData: Ot,
|
|
457
|
+
initPayoutAccount: yt,
|
|
458
|
+
groupByStatus: _t,
|
|
459
|
+
PayoutConfig: z
|
|
460
|
+
};
|
|
461
|
+
export {
|
|
462
|
+
dt as D,
|
|
463
|
+
z as P,
|
|
464
|
+
Et as a,
|
|
465
|
+
bt as c
|
|
466
|
+
};
|
package/dist/router/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import merchantRoutes from "./merchant";
|
|
2
2
|
import adminRoutes from "./admin";
|
|
3
|
-
import foodCourtRoutes from "./food-court";
|
|
4
3
|
declare module "vue-router" {
|
|
5
4
|
interface RouteMeta {
|
|
6
5
|
parent?: string;
|
|
@@ -11,8 +10,7 @@ declare module "vue-router" {
|
|
|
11
10
|
[key: string]: boolean;
|
|
12
11
|
};
|
|
13
12
|
useChildrenRoutes?: boolean;
|
|
14
|
-
foodCourt?: boolean;
|
|
15
13
|
}
|
|
16
14
|
}
|
|
17
15
|
declare const router: import("vue-router").Router;
|
|
18
|
-
export { merchantRoutes,
|
|
16
|
+
export { merchantRoutes, router, adminRoutes };
|