@feedmepos/mf-payment 1.9.7-dev → 1.9.9-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/{Actions.vue_vue_type_script_setup_true_lang-BZcsnsum.js → Actions.vue_vue_type_script_setup_true_lang-DfxD6HRe.js} +1 -1
- package/dist/{AdminBusinessSelector.vue_vue_type_script_setup_true_lang-CgINTFXl.js → AdminBusinessSelector.vue_vue_type_script_setup_true_lang-DoPYwuAl.js} +3 -3
- package/dist/{AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-Dq2Edu64.js → AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-zvCtrYWK.js} +2 -2
- package/dist/{Chargeback-D1KlZKJD.js → Chargeback-y23IgpQO.js} +5 -5
- package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-B9yPSEWW.js → DocumentViewer.vue_vue_type_script_setup_true_lang-DniTxikv.js} +1 -1
- package/dist/ExternalTerminal-Bk8qxe6i.js +563 -0
- package/dist/{OnboardForm-CH48O1XF.js → OnboardForm-BB72Mj2R.js} +6 -6
- package/dist/{OnboardForm-DO69195z.js → OnboardForm-BNnb0ZFK.js} +6 -6
- package/dist/{OnboardSubmission-C8vuAVey.js → OnboardSubmission-B1iGfA_R.js} +6 -6
- package/dist/{OnboardSubmission-Dye6TVj1.js → OnboardSubmission-B2mNX4r6.js} +3 -3
- package/dist/{PayoutAccount-B-mUH5k_.js → PayoutAccount-B5NmFVFd.js} +5 -5
- package/dist/{PayoutAccount-VVOvJlHK.js → PayoutAccount-C7Z20H0i.js} +7 -7
- package/dist/{PayoutAccountSetting-CcPxgJ8D.js → PayoutAccountSetting-CP3mAkze.js} +6 -6
- package/dist/{Restaurant-Dm407idD.js → Restaurant-Bs7PK0p2.js} +4 -4
- package/dist/{RestaurantSetting--JkIxrXu.js → RestaurantSetting-IiHMuUrM.js} +3 -3
- package/dist/{Settlement-DMnPPWm8.js → Settlement-BdvHrraK.js} +4 -4
- package/dist/{Settlement-nI7u4nhD.js → Settlement-DBcfw_OC.js} +3 -3
- package/dist/{SettlementTransactions-CYk6UGS9.js → SettlementTransactions-CZZtHLKA.js} +5 -5
- package/dist/{SettlementTransactions-DCkpOyt5.js → SettlementTransactions-kSVYYRvX.js} +5 -5
- package/dist/{Status.vue_vue_type_script_setup_true_lang-D_7OKts9.js → Status.vue_vue_type_script_setup_true_lang-CEcaBwZC.js} +1 -1
- package/dist/{Terminal-DLXFcFec.js → Terminal-DaFVqAc2.js} +6 -6
- package/dist/{TerminalSetting-9WPx0VGD.js → TerminalSetting-hawEQ10h.js} +781 -688
- package/dist/{Transaction-Bi_8xljd.js → Transaction-CJMf4YVA.js} +10 -10
- package/dist/{Transaction-DLwzAbcQ.js → Transaction-DAWg8xVq.js} +11 -11
- package/dist/{TransactionOld-BcacyYJV.js → TransactionOld-D7XYMEdw.js} +7 -7
- package/dist/{TransactionStatus.vue_vue_type_script_setup_true_lang-BX7-QE5c.js → TransactionStatus.vue_vue_type_script_setup_true_lang-CYrTUdLd.js} +1 -1
- package/dist/{app-DZTbOw2r.js → app-BuMHnFUt.js} +24 -24
- package/dist/app.js +1 -1
- package/dist/{assets-BmBw7sbJ.js → assets-BKwc3NSl.js} +51 -50
- package/dist/{grafana-C_DIpBzo.js → grafana-B9TF3CfK.js} +1 -1
- package/dist/{index-AOcQiqce.js → index-B6ZuvMmn.js} +1 -1
- package/dist/{index-C5gOk5nZ.js → index-BBh3QTy7.js} +1 -1
- package/dist/{index-DzR-1F2a.js → index-ByyhRgBv.js} +1 -1
- package/dist/{index-CKMH3irr.js → index-CFafSlH1.js} +1 -1
- package/dist/{index-CZPUptsd.js → index-CV1iIZ2p.js} +1 -1
- package/dist/{index-B9wv-Z7c.js → index-D7tNqv0L.js} +1 -1
- package/dist/{index-Dgmie4RK.js → index-DZ4-ye11.js} +2 -2
- package/dist/{index-xMYjfBuw.js → index-evtV0Mxj.js} +10301 -10100
- package/dist/{index-DdVYri9L.js → index-vXtzdGjn.js} +1 -1
- package/dist/{index-CW9ACt8t.js → index-z-OalSFY.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-DFvDNfOk.js → index.vue_vue_type_script_setup_true_lang-DE2SAW-f.js} +1 -1
- package/dist/{onboard-submission-U49O3Zxc.js → onboard-submission-B6oTOtch.js} +1 -1
- package/dist/package.json +3 -3
- package/dist/{payout-account-CLCqR7oI.js → payout-account-RdE34Fy5.js} +3 -3
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/admin/external-terminal/ExternalTerminalPairDialog.vue.d.ts +26 -18
- package/dist/views/admin/external-terminal/ExternalTerminalSideSheet.vue.d.ts +52 -20
- package/dist/views/admin/external-terminal/config/BRITerminal.vue.d.ts +18 -0
- package/dist/views/admin/external-terminal/pair/BRITerminal.vue.d.ts +26 -18
- package/dist/views/admin/external-terminal/pair/BeamTerminal.vue.d.ts +26 -18
- package/dist/views/admin/onboard-submission/forms/NTTSubmission.vue.d.ts +8 -8
- package/dist/views/admin/onboard-submission/forms/SoftspaceSubmission.vue.d.ts +8 -8
- package/dist/views/admin/onboard-submission/forms/TyroSubmission.vue.d.ts +8 -8
- package/dist/views/admin/payout-account/tabs/PaymentChannel.vue.d.ts +4 -4
- package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +4 -4
- package/dist/views/admin/payout-account/tabs/TokenGateway.vue.d.ts +4 -4
- 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/terminal/TerminalSideSheet.vue.d.ts +42 -32
- package/dist/views/admin/terminal/tabs/EcrGateway.vue.d.ts +42 -32
- package/dist/views/admin/terminal/tabs/Information.vue.d.ts +42 -32
- package/dist/views/admin/terminal/tabs/PaymentCheckout.vue.d.ts +42 -32
- package/dist/views/admin/terminal/tabs/QrGateway.vue.d.ts +42 -32
- package/dist/views/admin/terminal/tabs/SettingRequest.vue.d.ts +42 -32
- package/dist/views/admin/terminal/tabs/SoftposGateway.vue.d.ts +42 -32
- package/dist/views/admin/terminal/tabs/ecr/BeamGateway.vue.d.ts +42 -32
- package/dist/views/admin/terminal/tabs/ecr/BriGateway.vue.d.ts +196 -0
- package/dist/views/admin/terminal/tabs/ecr/Ghl2Gateway.vue.d.ts +42 -32
- package/dist/views/admin/terminal/tabs/ecr/Ghl3Gateway.vue.d.ts +42 -32
- package/dist/views/admin/terminal/tabs/ecr/GhlGateway.vue.d.ts +42 -32
- package/dist/views/admin/terminal/tabs/ecr/GlobalPaymentsGateway.vue.d.ts +42 -32
- package/dist/views/admin/terminal/tabs/ecr/HlbbGateway.vue.d.ts +42 -32
- package/dist/views/admin/terminal/tabs/ecr/KBankGateway.vue.d.ts +42 -32
- package/dist/views/admin/terminal/tabs/ecr/Maybank2Gateway.vue.d.ts +42 -32
- package/dist/views/admin/terminal/tabs/ecr/Maybank3Gateway.vue.d.ts +42 -32
- package/dist/views/admin/terminal/tabs/ecr/MaybankGateway.vue.d.ts +42 -32
- package/dist/views/admin/terminal/tabs/ecr/NetsGateway.vue.d.ts +42 -32
- package/dist/views/admin/terminal/tabs/ecr/OmaGateway.vue.d.ts +42 -32
- package/dist/views/admin/terminal/tabs/ecr/RevenueGateway.vue.d.ts +42 -32
- package/dist/views/admin/terminal/tabs/ecr/TerminalGateway.vue.d.ts +42 -32
- package/dist/views/admin/terminal/tabs/qr/PromptPayGateway.vue.d.ts +42 -32
- package/dist/views/admin/terminal/tabs/settings/KioskMode.vue.d.ts +42 -32
- package/package.json +2 -2
- package/dist/ExternalTerminal-C1Zp6jsh.js +0 -491
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as i, resolveComponent as o, openBlock as a, createBlock as s, withCtx as r, createElementVNode as d, unref as p, computed as g, createElementBlock as u, createVNode as m, Fragment as w, renderList as h } from "vue";
|
|
2
|
-
import { g as y, a as F } from "./assets-
|
|
2
|
+
import { g as y, a as F } from "./assets-BKwc3NSl.js";
|
|
3
3
|
import "@feedmepos/ui-library";
|
|
4
4
|
const k = ["src"], M = /* @__PURE__ */ i({
|
|
5
5
|
__name: "Gateway",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as T, useModel as U, ref as w, watch as j, computed as l, resolveComponent as i, openBlock as o, createBlock as c, withCtx as b, createVNode as g, createElementVNode as d, unref as _, createElementBlock as M, Fragment as Q, renderList as R, toDisplayString as I, createCommentVNode as H, withModifiers as J, mergeModels as X } from "vue";
|
|
2
|
-
import { g as Y, b as L } from "./index-
|
|
2
|
+
import { g as Y, b as L } from "./index-evtV0Mxj.js";
|
|
3
3
|
import { useI18n as Z } from "@feedmepos/mf-common";
|
|
4
|
-
import { k as ee } from "./app-
|
|
5
|
-
import { u as f } from "./AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-
|
|
4
|
+
import { k as ee } from "./app-BuMHnFUt.js";
|
|
5
|
+
import { u as f } from "./AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-zvCtrYWK.js";
|
|
6
6
|
const k = {
|
|
7
7
|
async readBusinessesWithPagination(n) {
|
|
8
8
|
return (await L().get("/payments/businesses", {
|
|
@@ -4,9 +4,9 @@ var Se = (i) => {
|
|
|
4
4
|
var le = (i, e, t) => e.has(i) || Se("Cannot " + t);
|
|
5
5
|
var s = (i, e, t) => (le(i, e, "read from private field"), t ? t.call(i) : e.get(i)), m = (i, e, t) => e.has(i) ? Se("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(i) : e.set(i, t), d = (i, e, t, n) => (le(i, e, "write to private field"), n ? n.call(i, t) : e.set(i, t), t), f = (i, e, t) => (le(i, e, "access private method"), t);
|
|
6
6
|
import { hasInjectionContext as Ve, inject as je, getCurrentScope as ze, computed as _, shallowReactive as Ae, reactive as Be, watch as $, onScopeDispose as Ne, shallowReadonly as We, readonly as Ke, toRefs as $e, defineComponent as Ge, useModel as He, toRef as qe, ref as Fe, resolveComponent as K, openBlock as V, createBlock as Y, withCtx as ue, createVNode as ce, createElementVNode as re, unref as he, createElementBlock as Ie, Fragment as Je, renderList as Xe, toDisplayString as _e, createCommentVNode as Ye, withModifiers as Ze, mergeModels as et } from "vue";
|
|
7
|
-
import { r as de } from "./index-
|
|
7
|
+
import { r as de } from "./index-B6ZuvMmn.js";
|
|
8
8
|
import { useI18n as tt } from "@feedmepos/mf-common";
|
|
9
|
-
import { S as st, p as ke, r as S, s as pe, a as ee, n as it, e as xe, i as Ee, t as nt, b as oe, f as at, c as rt, d as Qe, g as ot, j as lt, l as ut, u as De, m as Me, k as ct } from "./app-
|
|
9
|
+
import { S as st, p as ke, r as S, s as pe, a as ee, n as it, e as xe, i as Ee, t as nt, b as oe, f as at, c as rt, d as Qe, g as ot, j as lt, l as ut, u as De, m as Me, k as ct } from "./app-BuMHnFUt.js";
|
|
10
10
|
var R, o, te, y, j, G, Q, P, se, H, q, z, A, T, J, u, Z, me, ve, be, ye, ge, Re, Ce, Ue, Le, ht = (Le = class extends st {
|
|
11
11
|
constructor(e, t) {
|
|
12
12
|
super();
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { defineComponent as D, ref as C, resolveComponent as i, openBlock as k, createBlock as $, withCtx as v, createVNode as s, unref as b, createElementVNode as y, createElementBlock as Y, Fragment as B, renderList as K, watch as M, isRef as T, h as V } from "vue";
|
|
2
|
-
import { t as S } from "./index-
|
|
2
|
+
import { t as S } from "./index-D7tNqv0L.js";
|
|
3
3
|
import { h as f } from "./moment-h96o7c8I.js";
|
|
4
|
-
import "./index-
|
|
4
|
+
import "./index-evtV0Mxj.js";
|
|
5
5
|
import { d as A } from "./dinero-CIVmXLL-.js";
|
|
6
|
-
import { u as P } from "./index-
|
|
6
|
+
import { u as P } from "./index-CV1iIZ2p.js";
|
|
7
7
|
import { _ as q } from "./AdminLayout.vue_vue_type_script_setup_true_lang-0Mf1MhAL.js";
|
|
8
8
|
import { _ as O } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
|
|
9
9
|
import { useDialogChild as U, useSnackbar as N, useDialog as x } from "@feedmepos/ui-library";
|
|
10
10
|
import { _ as E } from "./DateRangePicker.vue_vue_type_script_setup_true_lang-CDjdQf-E.js";
|
|
11
|
-
import { _ as j } from "./index.vue_vue_type_script_setup_true_lang-
|
|
11
|
+
import { _ as j } from "./index.vue_vue_type_script_setup_true_lang-DE2SAW-f.js";
|
|
12
12
|
import { _ as w } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-DrBLdVka.js";
|
|
13
|
-
import { _ as z } from "./AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-
|
|
13
|
+
import { _ as z } from "./AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-zvCtrYWK.js";
|
|
14
14
|
import { z as F, a as I, s as G } from "./validator-CTlVogBQ.js";
|
|
15
15
|
import { u as R } from "./error-K1CakhA9.js";
|
|
16
16
|
function H(a) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as bR, shallowRef as cV, ref as MZ, toRef as Wm, computed as EZ, watch as AQ, onBeforeUnmount as uh, openBlock as Ll, createElementBlock as Kl, Fragment as am, renderList as sm, renderSlot as ma, createElementVNode as KU, normalizeStyle as nm, createCommentVNode as ac, watchEffect as Vm, toValue as kR, resolveComponent as WV, createVNode as $F, unref as fV, toDisplayString as zR, createBlock as LR } from "vue";
|
|
2
|
-
import { d as IR } from "./index-
|
|
2
|
+
import { d as IR } from "./index-CFafSlH1.js";
|
|
3
3
|
import { _ as Qm } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
4
|
const im = "data:image/svg+xml,%3csvg%20width='858'%20height='376'%20viewBox='0%200%20858%20376'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_1132_89720)'%3e%3cpath%20d='M440%20505.86C651.525%20505.86%20823%20437.839%20823%20353.93C823%20270.021%20651.525%20202%20440%20202C228.475%20202%2057%20270.021%2057%20353.93C57%20437.839%20228.475%20505.86%20440%20505.86Z'%20fill='url(%23paint0_linear_1132_89720)'%20fill-opacity='0.5'/%3e%3cg%20clip-path='url(%23clip1_1132_89720)'%3e%3cpath%20d='M331.443%20106.351C343.852%2058.097%20379.776%2037.6206%20397.221%2030.2477C402.417%2028.0519%20407.88%2026.5702%20413.469%2025.749L424.914%2024.0709C430.503%2023.2497%20436.163%2023.1069%20441.769%2023.7138C460.588%2025.749%20500.887%2035.0321%20526.652%2077.6808C561.416%20135.2%20586.627%20250.954%20457.589%20272.322V272.376C456.91%20272.483%20456.25%20272.555%20455.589%20272.644C454.928%20272.751%20454.268%20272.858%20453.589%20272.965V272.912C323.854%20289.55%20314.695%20171.458%20331.443%20106.351Z'%20fill='%23D6D6D6'/%3e%3cpath%20d='M429.807%20275.839C396.221%20275.839%20370.046%20265.414%20351.762%20244.705C319.016%20207.644%20319.641%20146.84%20330.14%20106.03C342.406%2058.3112%20377.099%2037.2993%20396.686%2029.0337C401.899%2026.8379%20407.47%2025.2848%20413.273%2024.4457L424.718%2022.7676C430.521%2021.9107%20436.306%2021.7858%20441.912%2022.3928C463.053%2024.6778%20502.316%2034.8178%20527.795%2076.9845C549.596%20113.046%20567.701%20171.119%20547.007%20216.035C532.973%20246.508%20503.387%20265.824%20459.089%20273.429V273.465L457.786%20273.715C457.375%20273.768%20456.982%20273.822%20456.589%20273.876L454.982%20274.108C454.59%20274.179%20454.197%20274.233%20453.786%20274.304L452.447%20274.5L452.429%20274.411C444.573%20275.357%20437.02%20275.839%20429.807%20275.839ZM332.747%20106.69C322.408%20146.876%20321.712%20206.662%20353.762%20242.956C375.563%20267.645%20409.095%20277.285%20453.429%20271.591L454.75%20271.43V271.448L456.268%20271.233C456.375%20271.216%20456.5%20271.198%20456.607%20271.198L457.375%20271.037C501.477%20263.736%20530.813%20244.866%20544.597%20214.946C564.845%20170.976%20546.972%20113.921%20525.528%2078.3949C500.638%2037.1743%20462.285%2027.2842%20441.645%2025.0349C436.252%2024.4457%20430.699%2024.5707%20425.129%2025.3919L413.684%2027.07C408.113%2027.8912%20402.756%2029.3729%20397.757%2031.4795C378.598%2039.5665%20344.727%2060.0964%20332.747%20106.69Z'%20fill='%23D6D6D6'/%3e%3cpath%20d='M360.457%20129.166L360.493%20111.814C362.475%2083.3041%20397.685%2072.0216%20409.041%2068.3083C417.504%2065.5413%20428.467%2063.6489%20432.359%2063.042V63.0241C432.359%2063.0241%20432.609%2062.9884%20433.074%2062.917C433.538%2062.8456%20433.788%2062.8099%20433.788%2062.8099V62.8277C437.68%2062.31%20448.732%2060.9533%20457.642%2061.1675C469.569%2061.471%20506.547%2062.1315%20516.653%2088.874L521.67%20105.476C527.045%20124.114%20518.974%20141.324%20501.566%20143.876L390.757%20160.175C373.348%20162.728%20360.671%20148.571%20360.457%20129.166Z'%20fill='white'/%3e%3cpath%20d='M490.656%20119.473C482.675%20120.651%20473.997%20114.76%20473.158%20106.458C472.319%2098.1393%20477.622%2090.213%20486.175%2088.9633C494.156%2087.7851%20502.833%2093.6763%20503.673%20101.978C504.512%20110.297%20499.209%20118.223%20490.656%20119.473Z'%20fill='%23A7A9AC'/%3e%3cpath%20d='M488.585%20120.972C484.836%20120.972%20481.068%20119.651%20477.944%20117.223C474.426%20114.474%20472.248%20110.707%20471.837%20106.601C470.891%2097.2824%20477.105%2088.9455%20485.996%2087.6423C490.442%2086.9818%20495.156%2088.285%20498.923%2091.2306C502.441%2093.9798%20504.619%2097.7466%20505.03%20101.853C505.976%20111.171%20499.763%20119.508%20490.871%20120.812C490.103%20120.919%20489.335%20120.972%20488.585%20120.972ZM488.21%2090.1594C487.586%2090.1594%20486.978%2090.1952%20486.371%2090.2844C478.908%2091.3734%20473.694%2098.425%20474.498%20106.316C474.837%20109.69%20476.64%20112.796%20479.586%20115.099C482.729%20117.545%20486.8%20118.687%20490.478%20118.152C497.941%20117.063%20503.155%20110.011%20502.352%20102.12C502.012%2098.7463%20500.209%2095.6222%20497.263%2093.3371C494.62%2091.2841%20491.353%2090.1594%20488.21%2090.1594Z'%20fill='%23A7A9AC'/%3e%3cpath%20d='M411.309%20131.13C403.327%20132.308%20394.65%20126.417%20393.811%20118.116C392.971%20109.797%20398.274%20101.87%20406.827%20100.621C414.808%2099.4426%20423.486%20105.334%20424.325%20113.635C425.182%20121.954%20419.861%20129.88%20411.309%20131.13Z'%20fill='%23A7A9AC'/%3e%3cpath%20d='M409.238%20132.63C405.488%20132.63%20401.721%20131.309%20398.596%20128.881C395.079%20126.131%20392.9%20122.365%20392.49%20118.259C391.543%20108.94%20397.757%20100.603%20406.649%2099.2997C411.095%2098.6392%20415.808%2099.9603%20419.576%20102.888C423.093%20105.637%20425.272%20109.404%20425.682%20113.51C426.629%20122.829%20420.415%20131.166%20411.523%20132.469C410.755%20132.576%20409.988%20132.63%20409.238%20132.63ZM408.863%20101.817C408.238%20101.817%20407.631%20101.853%20407.024%20101.942C399.56%20103.031%20394.347%20110.082%20395.15%20117.973C395.489%20121.347%20397.293%20124.453%20400.239%20126.756C403.381%20129.202%20407.452%20130.345%20411.13%20129.809C418.594%20128.72%20423.807%20121.668%20423.004%20113.778C422.665%20110.404%20420.861%20107.28%20417.915%20104.995C415.291%20102.942%20412.005%20101.817%20408.863%20101.817Z'%20fill='%23A7A9AC'/%3e%3cpath%20d='M567.791%20147.286C576.968%20161.747%20586.699%20171.994%20597.698%20165.031C608.679%20158.069%20610.161%20140.699%20600.983%20126.239C591.806%20111.778%20575.468%20105.709%20564.47%20112.671C553.471%20119.633%20558.613%20132.826%20567.791%20147.286Z'%20fill='%23D6D6D6'/%3e%3cpath%20d='M317.962%20176.582C318.141%20176.546%20318.319%20176.546%20318.498%20176.51C318.569%20177.242%20318.623%20177.992%20318.712%20178.724C320.962%20200.039%20326.747%20219.07%20335.674%20234.905C334.121%20236.101%20332.193%20236.975%20329.836%20237.44C317.069%20239.921%20304.053%20228.317%20300.786%20211.518C297.518%20194.719%20305.178%20179.081%20317.962%20176.582Z'%20fill='%23D6D6D6'/%3e%3cpath%20d='M547.167%20216.088C549.917%20210.143%20552.006%20203.734%20553.506%20196.969C550.417%20185.579%20546.542%20174.671%20541.686%20165.852C539.775%20162.371%20535.883%20160.479%20531.955%20161.032L526.045%20161.871C519.849%20162.746%20516.153%20169.226%20518.546%20175.028C520.01%20178.599%20521.224%20180.241%20522.17%20183.454C523.831%20189.096%20520.081%20194.88%20514.243%20195.665L413.415%20209.179C408.059%20209.893%20403.095%20206.073%20402.559%20200.682C402.059%20195.737%20401.309%20192.88%20400.595%20188.953C399.685%20183.883%20394.917%20180.455%20389.829%20181.187L375.116%20183.276C369.902%20184.008%20366.242%20188.828%20366.974%20194.041C368.849%20207.751%20371.241%20234.101%20366.188%20256.952C366.117%20257.255%20366.099%20257.559%20366.063%20257.862C382.865%20269.93%20404.184%20276.018%20429.824%20276.018C437.002%20276.018%20444.501%20275.536%20452.339%20274.59L452.357%20274.679L453.857%20274.465C454.268%20274.411%20454.66%20274.34%20455.071%20274.268L456.678%20274.036C457.071%20273.983%20457.464%20273.929%20457.856%20273.875L459.32%20273.608V273.572C503.565%20265.913%20533.133%20246.58%20547.167%20216.088Z'%20fill='white'/%3e%3cpath%20d='M476.069%20249.668C484.727%20249.668%20491.746%20242.651%20491.746%20233.994C491.746%20225.337%20484.727%20218.32%20476.069%20218.32C467.411%20218.32%20460.393%20225.337%20460.393%20233.994C460.393%20242.651%20467.411%20249.668%20476.069%20249.668Z'%20fill='white'/%3e%3cpath%20d='M484.854%20240.617C485.032%20242.135%20485.318%20244.562%20485.55%20246.473C489.978%20243.116%20492.478%20237.511%20491.603%20231.62C490.443%20223.836%20483.765%20218.248%20476.141%20218.213C476.158%20218.552%20476.176%20218.855%20476.176%20218.909C476.212%20219.712%20476.248%20220.498%20476.266%20221.301C476.337%20223.497%20477.176%20224.657%20479.23%20225.461C479.783%20225.675%20480.337%20225.961%20480.836%20226.3C482.604%20227.496%20483.425%20229.263%20483.729%20231.298C483.997%20233.083%20484.175%20234.887%20484.39%20236.69C484.568%20238.011%20484.693%20239.314%20484.854%20240.617Z'%20fill='%23A7A9AC'/%3e%3cpath%20d='M460.499%20236.261C461.356%20242.045%20465.266%20246.615%20470.355%20248.597C470.319%20248.365%20470.302%20248.204%20470.284%20248.186C470.07%20246.812%20469.855%20245.437%20469.623%20244.063C469.016%20240.331%20468.373%20236.6%20467.802%20232.851C467.481%20230.816%20468.07%20229.031%20469.552%20227.567C470.105%20227.014%20470.694%20226.496%20471.248%20225.925C472.194%20224.961%20472.48%20223.854%20472.105%20222.497C471.623%20220.569%20471.784%20221.212%20471.623%20220.569C471.551%20220.284%20471.355%20219.569%20471.212%20218.962C464.017%20221.301%20459.356%20228.549%20460.499%20236.261Z'%20fill='%23A7A9AC'/%3e%3cpath%20d='M480.925%20235.797C480.89%20235.511%20480.818%20235.208%20480.729%20234.922C480.515%20234.19%20479.783%20233.762%20479.051%20233.94C478.336%20234.101%20477.872%20234.797%20477.979%20235.547C478.604%20239.725%20479.372%20244.919%20480.015%20249.168C480.979%20248.918%20481.907%20248.579%20482.782%20248.169C482.229%20244.473%20481.443%20239.225%20480.925%20235.797Z'%20fill='%23A7A9AC'/%3e%3cpath%20d='M472.855%20234.976C471.98%20235.261%20471.623%20235.833%20471.766%20236.779C472.266%20240.224%20473.069%20245.598%20473.641%20249.472C474.587%20249.615%20475.569%20249.686%20476.551%20249.65C476.373%20248.258%20476.087%20246.258%20475.944%20245.259C475.498%20242.152%20475.033%20239.046%20474.569%20235.958C474.444%20235.226%20473.587%20234.744%20472.855%20234.976Z'%20fill='%23A7A9AC'/%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_1132_89720'%20x1='440.003'%20y1='133.148'%20x2='440.003'%20y2='371.72'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23A5A5A5'/%3e%3cstop%20offset='0.4764'%20stop-color='%23E0E0E0'/%3e%3cstop%20offset='1'%20stop-color='white'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3cclipPath%20id='clip0_1132_89720'%3e%3crect%20width='858'%20height='376'%20fill='white'/%3e%3c/clipPath%3e%3cclipPath%20id='clip1_1132_89720'%3e%3crect%20width='307'%20height='254'%20fill='white'%20transform='translate(300%2022)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";
|
|
5
5
|
var Rm = Object.defineProperty, Yh = (U) => {
|
|
@@ -0,0 +1,563 @@
|
|
|
1
|
+
import { defineComponent as P, resolveComponent as p, openBlock as F, createElementBlock as M, createVNode as u, normalizeClass as Z, withCtx as I, createElementVNode as E, toDisplayString as j, createBlock as C, ref as d, Fragment as ee, unref as s, useModel as te, computed as R, watch as L, createCommentVNode as N, resolveDynamicComponent as W, mergeModels as z, createTextVNode as $, normalizeProps as ae, guardReactiveProps as re, isRef as ne, h as H } from "vue";
|
|
2
|
+
import { h as le } from "./moment-h96o7c8I.js";
|
|
3
|
+
import { useCoreStore as G } from "@feedmepos/mf-common";
|
|
4
|
+
import { u as oe } from "./index-CV1iIZ2p.js";
|
|
5
|
+
import { _ as ie } from "./index.vue_vue_type_script_setup_true_lang-DE2SAW-f.js";
|
|
6
|
+
import { _ as se } from "./AdminLayout.vue_vue_type_script_setup_true_lang-0Mf1MhAL.js";
|
|
7
|
+
import { useSnackbar as Q, useDialogChild as ue, useDialog as me } from "@feedmepos/ui-library";
|
|
8
|
+
import { e as h } from "./index-ByyhRgBv.js";
|
|
9
|
+
import { c as de } from "./clipboard-4jh1WteU.js";
|
|
10
|
+
import { z as V, a as T } from "./validator-CTlVogBQ.js";
|
|
11
|
+
import { _ as ce } from "./AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-zvCtrYWK.js";
|
|
12
|
+
import { e as O, p as pe } from "./index-evtV0Mxj.js";
|
|
13
|
+
import { u as Y } from "./error-K1CakhA9.js";
|
|
14
|
+
import { w as ve } from "./Modal-DB8M9o1T.js";
|
|
15
|
+
const fe = /* @__PURE__ */ P({
|
|
16
|
+
__name: "ID",
|
|
17
|
+
props: {
|
|
18
|
+
row: {},
|
|
19
|
+
data: {}
|
|
20
|
+
},
|
|
21
|
+
setup(v) {
|
|
22
|
+
const o = v, l = Q();
|
|
23
|
+
function a() {
|
|
24
|
+
return o.row.original.status === "READY" ? "!w-[16px] !h-[16px] bg-green-400" : "!w-[16px] !h-[16px] bg-amber-400";
|
|
25
|
+
}
|
|
26
|
+
function i() {
|
|
27
|
+
try {
|
|
28
|
+
de(o.data), l.open({ title: "Text copied to clipboard." }, 1e3);
|
|
29
|
+
} catch {
|
|
30
|
+
l.open({ title: "Clipboard API incompatible." }, 1e3);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
return (r, t) => {
|
|
34
|
+
const m = p("FmBadge");
|
|
35
|
+
return F(), M("div", {
|
|
36
|
+
onClick: t[0] || (t[0] = (c) => {
|
|
37
|
+
c.stopPropagation(), i();
|
|
38
|
+
})
|
|
39
|
+
}, [
|
|
40
|
+
u(m, {
|
|
41
|
+
inline: "",
|
|
42
|
+
class: Z(a())
|
|
43
|
+
}, {
|
|
44
|
+
default: I(() => [
|
|
45
|
+
E("div", null, j(v.data), 1)
|
|
46
|
+
]),
|
|
47
|
+
_: 1
|
|
48
|
+
}, 8, ["class"])
|
|
49
|
+
]);
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
}), ye = { class: "flex items-center justify-center" }, _e = {
|
|
53
|
+
key: 1,
|
|
54
|
+
class: "t-caption text-fm-color-neutral-gray-500 whitespace-nowrap"
|
|
55
|
+
}, xe = /* @__PURE__ */ P({
|
|
56
|
+
__name: "Actions",
|
|
57
|
+
props: {
|
|
58
|
+
data: {}
|
|
59
|
+
},
|
|
60
|
+
emits: ["pair", "edit", "delete"],
|
|
61
|
+
setup(v, { emit: o }) {
|
|
62
|
+
const l = o;
|
|
63
|
+
return (a, i) => {
|
|
64
|
+
const r = p("FmButton");
|
|
65
|
+
return F(), M("div", ye, [
|
|
66
|
+
v.data.status === "NEW" ? (F(), C(r, {
|
|
67
|
+
key: 0,
|
|
68
|
+
variant: "tertiary",
|
|
69
|
+
label: "Pair",
|
|
70
|
+
"prepend-icon": "link",
|
|
71
|
+
onClick: i[0] || (i[0] = (t) => {
|
|
72
|
+
t.stopPropagation(), l("pair");
|
|
73
|
+
})
|
|
74
|
+
})) : (F(), M("div", _e, " Ready to use ")),
|
|
75
|
+
u(r, {
|
|
76
|
+
variant: "plain",
|
|
77
|
+
"prepend-icon": "edit",
|
|
78
|
+
onClick: i[1] || (i[1] = (t) => {
|
|
79
|
+
t.stopPropagation(), l("edit");
|
|
80
|
+
})
|
|
81
|
+
}),
|
|
82
|
+
u(r, {
|
|
83
|
+
variant: "plain",
|
|
84
|
+
"prepend-icon": "delete",
|
|
85
|
+
onClick: i[2] || (i[2] = (t) => {
|
|
86
|
+
t.stopPropagation(), l("delete");
|
|
87
|
+
})
|
|
88
|
+
})
|
|
89
|
+
]);
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
}), ge = /* @__PURE__ */ P({
|
|
93
|
+
__name: "BRITerminal",
|
|
94
|
+
props: {
|
|
95
|
+
initial: {
|
|
96
|
+
type: Object
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
setup(v, { expose: o }) {
|
|
100
|
+
var m, c, _, x;
|
|
101
|
+
const l = v, a = d(((m = l.initial) == null ? void 0 : m.wsUrl) ?? ""), i = d(((c = l.initial) == null ? void 0 : c.mid) ?? ""), r = d(((_ = l.initial) == null ? void 0 : _.apiKey) ?? ""), t = d(((x = l.initial) == null ? void 0 : x.privateKey) ?? "");
|
|
102
|
+
return o({
|
|
103
|
+
values: () => ({
|
|
104
|
+
wsUrl: a.value,
|
|
105
|
+
mid: i.value,
|
|
106
|
+
apiKey: r.value,
|
|
107
|
+
privateKey: t.value
|
|
108
|
+
})
|
|
109
|
+
}), (D, b) => {
|
|
110
|
+
const w = p("FmTextField"), S = p("FmTextarea");
|
|
111
|
+
return F(), M(ee, null, [
|
|
112
|
+
u(w, {
|
|
113
|
+
modelValue: a.value,
|
|
114
|
+
"onUpdate:modelValue": b[0] || (b[0] = (e) => a.value = e),
|
|
115
|
+
label: "PVS WebSocket URL",
|
|
116
|
+
placeholder: "wss://...",
|
|
117
|
+
rules: s(V)(s(T).string().min(1, "WebSocket URL is required"))
|
|
118
|
+
}, null, 8, ["modelValue", "rules"]),
|
|
119
|
+
u(w, {
|
|
120
|
+
modelValue: i.value,
|
|
121
|
+
"onUpdate:modelValue": b[1] || (b[1] = (e) => i.value = e),
|
|
122
|
+
label: "Merchant ID (MID)",
|
|
123
|
+
rules: s(V)(s(T).string().min(1, "MID is required"))
|
|
124
|
+
}, null, 8, ["modelValue", "rules"]),
|
|
125
|
+
u(w, {
|
|
126
|
+
modelValue: r.value,
|
|
127
|
+
"onUpdate:modelValue": b[2] || (b[2] = (e) => r.value = e),
|
|
128
|
+
label: "API Key",
|
|
129
|
+
rules: s(V)(s(T).string().min(1, "API key is required"))
|
|
130
|
+
}, null, 8, ["modelValue", "rules"]),
|
|
131
|
+
u(S, {
|
|
132
|
+
modelValue: t.value,
|
|
133
|
+
"onUpdate:modelValue": b[3] || (b[3] = (e) => t.value = e),
|
|
134
|
+
label: "Private Key",
|
|
135
|
+
rows: 3,
|
|
136
|
+
placeholder: "PEM, or base64 of the PEM",
|
|
137
|
+
rules: s(V)(s(T).string().min(1, "Private key is required"))
|
|
138
|
+
}, null, 8, ["modelValue", "rules"])
|
|
139
|
+
], 64);
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
}), Fe = /* @__PURE__ */ P({
|
|
143
|
+
__name: "ExternalTerminalSideSheet",
|
|
144
|
+
props: /* @__PURE__ */ z({
|
|
145
|
+
terminal: {
|
|
146
|
+
type: Object
|
|
147
|
+
}
|
|
148
|
+
}, {
|
|
149
|
+
modelValue: { type: Boolean, default: !1 },
|
|
150
|
+
modelModifiers: {}
|
|
151
|
+
}),
|
|
152
|
+
emits: /* @__PURE__ */ z(["submit"], ["update:modelValue"]),
|
|
153
|
+
setup(v, { emit: o }) {
|
|
154
|
+
const l = G(), a = v, i = o, r = te(v, "modelValue"), t = d(), m = d(), c = d(""), _ = d(""), x = d(), D = d({}), b = {
|
|
155
|
+
BEAM: [O.F_COUNTRY.enum.TH],
|
|
156
|
+
BRI: [O.F_COUNTRY.enum.ID]
|
|
157
|
+
}, w = {
|
|
158
|
+
BRI: ge
|
|
159
|
+
}, S = l.currentCountry, e = R(
|
|
160
|
+
() => pe.FdoExternalTerminalProvider.options.filter(
|
|
161
|
+
(f) => b[f].includes(S.value ?? O.F_COUNTRY.enum.MY)
|
|
162
|
+
).map((f) => ({
|
|
163
|
+
label: f,
|
|
164
|
+
value: f
|
|
165
|
+
}))
|
|
166
|
+
), n = R(() => {
|
|
167
|
+
var f;
|
|
168
|
+
return ((f = a.terminal) == null ? void 0 : f.type) ?? x.value;
|
|
169
|
+
}), y = R(
|
|
170
|
+
() => n.value ? w[n.value] : void 0
|
|
171
|
+
);
|
|
172
|
+
L(r, (f) => {
|
|
173
|
+
var g, U, A, K;
|
|
174
|
+
f && (c.value = ((g = a.terminal) == null ? void 0 : g.name) ?? "", _.value = ((U = a.terminal) == null ? void 0 : U.restaurantId) ?? "", x.value = (A = a.terminal) == null ? void 0 : A.type, D.value = { ...((K = a.terminal) == null ? void 0 : K.providerData) ?? {} });
|
|
175
|
+
});
|
|
176
|
+
function B() {
|
|
177
|
+
i("submit", {
|
|
178
|
+
name: c.value,
|
|
179
|
+
restaurantId: _.value,
|
|
180
|
+
type: x.value,
|
|
181
|
+
providerData: m.value ? { ...D.value, ...m.value.values() } : void 0
|
|
182
|
+
}), r.value = !1;
|
|
183
|
+
}
|
|
184
|
+
return (f, g) => {
|
|
185
|
+
const U = p("FmSelect"), A = p("FmTextField"), K = p("FmButton"), J = p("FmForm"), X = p("FmSideSheet");
|
|
186
|
+
return F(), C(X, {
|
|
187
|
+
modelValue: r.value,
|
|
188
|
+
"onUpdate:modelValue": g[3] || (g[3] = (q) => r.value = q),
|
|
189
|
+
header: a.terminal ? "Update External Terminal" : "Create New External Terminal",
|
|
190
|
+
"close-button": ""
|
|
191
|
+
}, {
|
|
192
|
+
default: I(() => [
|
|
193
|
+
u(J, {
|
|
194
|
+
ref: t.value,
|
|
195
|
+
class: "flex flex-col gap-16 px-4 py-6",
|
|
196
|
+
onValidationSuccess: B
|
|
197
|
+
}, {
|
|
198
|
+
default: I(() => {
|
|
199
|
+
var q;
|
|
200
|
+
return [
|
|
201
|
+
a.terminal ? N("", !0) : (F(), C(U, {
|
|
202
|
+
key: 0,
|
|
203
|
+
modelValue: x.value,
|
|
204
|
+
"onUpdate:modelValue": g[0] || (g[0] = (k) => x.value = k),
|
|
205
|
+
label: "Provider",
|
|
206
|
+
items: e.value,
|
|
207
|
+
rules: s(V)(s(T).string().min(1, "Provider is required"))
|
|
208
|
+
}, null, 8, ["modelValue", "items", "rules"])),
|
|
209
|
+
a.terminal ? N("", !0) : (F(), C(ce, {
|
|
210
|
+
key: 1,
|
|
211
|
+
modelValue: _.value,
|
|
212
|
+
"onUpdate:modelValue": g[1] || (g[1] = (k) => _.value = k),
|
|
213
|
+
label: "Restaurant",
|
|
214
|
+
"search-placeholder": "Search restaurants",
|
|
215
|
+
rules: s(V)(s(T).string().min(1, "Restaurant is required"))
|
|
216
|
+
}, null, 8, ["modelValue", "rules"])),
|
|
217
|
+
u(A, {
|
|
218
|
+
modelValue: c.value,
|
|
219
|
+
"onUpdate:modelValue": g[2] || (g[2] = (k) => c.value = k),
|
|
220
|
+
label: "Terminal Name",
|
|
221
|
+
rules: s(V)(s(T).string().min(1))
|
|
222
|
+
}, null, 8, ["modelValue", "rules"]),
|
|
223
|
+
y.value ? (F(), C(W(y.value), {
|
|
224
|
+
key: `${((q = a.terminal) == null ? void 0 : q._id) ?? "new"}-${n.value}`,
|
|
225
|
+
ref_key: "configForm",
|
|
226
|
+
ref: m,
|
|
227
|
+
initial: D.value
|
|
228
|
+
}, null, 8, ["initial"])) : N("", !0),
|
|
229
|
+
u(K, {
|
|
230
|
+
type: "submit",
|
|
231
|
+
label: a.terminal ? "Update" : "Create"
|
|
232
|
+
}, null, 8, ["label"])
|
|
233
|
+
];
|
|
234
|
+
}),
|
|
235
|
+
_: 1
|
|
236
|
+
}, 512)
|
|
237
|
+
]),
|
|
238
|
+
_: 1
|
|
239
|
+
}, 8, ["modelValue", "header"]);
|
|
240
|
+
};
|
|
241
|
+
}
|
|
242
|
+
}), be = { class: "t-caption" }, Ve = /* @__PURE__ */ P({
|
|
243
|
+
__name: "BeamTerminal",
|
|
244
|
+
props: {
|
|
245
|
+
terminal: {
|
|
246
|
+
type: Object,
|
|
247
|
+
required: !0
|
|
248
|
+
},
|
|
249
|
+
onPair: {
|
|
250
|
+
type: Function,
|
|
251
|
+
required: !0
|
|
252
|
+
}
|
|
253
|
+
},
|
|
254
|
+
setup(v) {
|
|
255
|
+
const o = v, l = d(), a = d("");
|
|
256
|
+
return (i, r) => {
|
|
257
|
+
const t = p("FmTextField"), m = p("FmButton"), c = p("FmForm");
|
|
258
|
+
return F(), C(c, {
|
|
259
|
+
ref: l.value,
|
|
260
|
+
class: "flex flex-col gap-16 mb-6",
|
|
261
|
+
onValidationSuccess: r[1] || (r[1] = () => o.onPair({ type: "BEAM", pairCode: a.value }))
|
|
262
|
+
}, {
|
|
263
|
+
default: I(() => [
|
|
264
|
+
E("div", be, [
|
|
265
|
+
r[2] || (r[2] = $(" Enter the pairing code shown on ", -1)),
|
|
266
|
+
E("b", null, j(o.terminal.name), 1),
|
|
267
|
+
r[3] || (r[3] = $(" to register it with Bolt Connect. ", -1))
|
|
268
|
+
]),
|
|
269
|
+
u(t, {
|
|
270
|
+
modelValue: a.value,
|
|
271
|
+
"onUpdate:modelValue": r[0] || (r[0] = (_) => a.value = _),
|
|
272
|
+
label: "Pair Code",
|
|
273
|
+
"label-mark": "required",
|
|
274
|
+
rules: s(V)(s(T).string().min(1, "Pair code is required"))
|
|
275
|
+
}, null, 8, ["modelValue", "rules"]),
|
|
276
|
+
u(m, {
|
|
277
|
+
type: "submit",
|
|
278
|
+
label: "Pair"
|
|
279
|
+
})
|
|
280
|
+
]),
|
|
281
|
+
_: 1
|
|
282
|
+
}, 512);
|
|
283
|
+
};
|
|
284
|
+
}
|
|
285
|
+
}), Te = { class: "t-caption" }, Ce = /* @__PURE__ */ P({
|
|
286
|
+
__name: "BRITerminal",
|
|
287
|
+
props: {
|
|
288
|
+
terminal: {
|
|
289
|
+
type: Object,
|
|
290
|
+
required: !0
|
|
291
|
+
},
|
|
292
|
+
onPair: {
|
|
293
|
+
type: Function,
|
|
294
|
+
required: !0
|
|
295
|
+
}
|
|
296
|
+
},
|
|
297
|
+
setup(v) {
|
|
298
|
+
const o = v, l = d(), a = d(""), i = d("");
|
|
299
|
+
return (r, t) => {
|
|
300
|
+
const m = p("FmTextField"), c = p("FmButton"), _ = p("FmForm");
|
|
301
|
+
return F(), C(_, {
|
|
302
|
+
ref: l.value,
|
|
303
|
+
class: "flex flex-col gap-16 mb-6",
|
|
304
|
+
onValidationSuccess: t[2] || (t[2] = () => o.onPair({ type: "BRI", pairCode: a.value, edcId: i.value }))
|
|
305
|
+
}, {
|
|
306
|
+
default: I(() => [
|
|
307
|
+
E("div", Te, [
|
|
308
|
+
t[3] || (t[3] = $(" Enter the pairing code and EDC ID shown on ", -1)),
|
|
309
|
+
E("b", null, j(o.terminal.name), 1),
|
|
310
|
+
t[4] || (t[4] = $(" to register it with BRI. ", -1))
|
|
311
|
+
]),
|
|
312
|
+
u(m, {
|
|
313
|
+
modelValue: a.value,
|
|
314
|
+
"onUpdate:modelValue": t[0] || (t[0] = (x) => a.value = x),
|
|
315
|
+
label: "Pair Code",
|
|
316
|
+
"label-mark": "required",
|
|
317
|
+
rules: s(V)(s(T).string().min(1, "Pair code is required"))
|
|
318
|
+
}, null, 8, ["modelValue", "rules"]),
|
|
319
|
+
u(m, {
|
|
320
|
+
modelValue: i.value,
|
|
321
|
+
"onUpdate:modelValue": t[1] || (t[1] = (x) => i.value = x),
|
|
322
|
+
label: "EDC ID",
|
|
323
|
+
"label-mark": "required",
|
|
324
|
+
rules: s(V)(s(T).string().min(1, "EDC ID is required"))
|
|
325
|
+
}, null, 8, ["modelValue", "rules"]),
|
|
326
|
+
u(c, {
|
|
327
|
+
type: "submit",
|
|
328
|
+
label: "Pair"
|
|
329
|
+
})
|
|
330
|
+
]),
|
|
331
|
+
_: 1
|
|
332
|
+
}, 512);
|
|
333
|
+
};
|
|
334
|
+
}
|
|
335
|
+
}), Ee = /* @__PURE__ */ P({
|
|
336
|
+
__name: "ExternalTerminalPairDialog",
|
|
337
|
+
props: {
|
|
338
|
+
terminal: {
|
|
339
|
+
type: Object,
|
|
340
|
+
required: !0
|
|
341
|
+
}
|
|
342
|
+
},
|
|
343
|
+
setup(v) {
|
|
344
|
+
const o = v, l = ue(), a = {
|
|
345
|
+
BEAM: Ve,
|
|
346
|
+
BRI: Ce
|
|
347
|
+
}, i = R(() => a[o.terminal.type]);
|
|
348
|
+
function r(t) {
|
|
349
|
+
l.emitData(t), l.emitAction("primary");
|
|
350
|
+
}
|
|
351
|
+
return (t, m) => (F(), C(W(i.value), ae(re({
|
|
352
|
+
terminal: o.terminal,
|
|
353
|
+
onPair: r
|
|
354
|
+
})), null, 16));
|
|
355
|
+
}
|
|
356
|
+
}), Pe = { class: "flex justify-between mb-6 items-center" }, we = { class: "flex space-x-4" }, Be = { class: "flex space-x-4" }, Ye = /* @__PURE__ */ P({
|
|
357
|
+
__name: "ExternalTerminal",
|
|
358
|
+
setup(v) {
|
|
359
|
+
const o = d(), { searchKey: l } = oe({
|
|
360
|
+
searchKey: ""
|
|
361
|
+
});
|
|
362
|
+
let a;
|
|
363
|
+
L(l, async () => {
|
|
364
|
+
a && clearTimeout(a), a = setTimeout(() => {
|
|
365
|
+
var e;
|
|
366
|
+
return (e = o.value) == null ? void 0 : e.reset();
|
|
367
|
+
}, 700);
|
|
368
|
+
});
|
|
369
|
+
const i = G(), r = me(), t = Q();
|
|
370
|
+
R(
|
|
371
|
+
() => new Map(i.restaurants.value.map((e) => [e._id, e.profile.name]))
|
|
372
|
+
);
|
|
373
|
+
const m = d(!1), c = d();
|
|
374
|
+
function _(e) {
|
|
375
|
+
c.value = e, m.value = !0;
|
|
376
|
+
}
|
|
377
|
+
async function x(e) {
|
|
378
|
+
var y;
|
|
379
|
+
const n = c.value;
|
|
380
|
+
try {
|
|
381
|
+
n ? await h.updateById(
|
|
382
|
+
n._id,
|
|
383
|
+
e.type === "BRI" ? {
|
|
384
|
+
type: "BRI",
|
|
385
|
+
name: e.name,
|
|
386
|
+
providerData: e.providerData
|
|
387
|
+
} : { type: "BEAM", name: e.name }
|
|
388
|
+
) : await h.create(e), (y = o.value) == null || y.reset(), t.open({
|
|
389
|
+
type: "success",
|
|
390
|
+
message: n ? "External terminal updated successfully." : "External terminal created successfully."
|
|
391
|
+
});
|
|
392
|
+
} catch (B) {
|
|
393
|
+
t.open({
|
|
394
|
+
type: "error",
|
|
395
|
+
title: n ? "Error occurs when update external terminal" : "Error occurs when create external terminal",
|
|
396
|
+
message: Y(B)
|
|
397
|
+
});
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
async function D(e) {
|
|
401
|
+
r.open({
|
|
402
|
+
title: "Pair External Terminal",
|
|
403
|
+
closeButton: !0,
|
|
404
|
+
overlay: !0,
|
|
405
|
+
contentComponent: Ee,
|
|
406
|
+
contentComponentProps: { terminal: e }
|
|
407
|
+
}).onPrimary(async (n) => {
|
|
408
|
+
var y;
|
|
409
|
+
r.close();
|
|
410
|
+
try {
|
|
411
|
+
await h.pair(e._id, n), (y = o.value) == null || y.reset(), t.open({
|
|
412
|
+
type: "success",
|
|
413
|
+
message: "External terminal paired successfully."
|
|
414
|
+
});
|
|
415
|
+
} catch (B) {
|
|
416
|
+
t.open({
|
|
417
|
+
type: "error",
|
|
418
|
+
title: "Error occurs when pair external terminal",
|
|
419
|
+
message: Y(B)
|
|
420
|
+
});
|
|
421
|
+
}
|
|
422
|
+
});
|
|
423
|
+
}
|
|
424
|
+
async function b(e) {
|
|
425
|
+
ve(
|
|
426
|
+
r,
|
|
427
|
+
"Delete External Terminal",
|
|
428
|
+
"Are you sure to delete this external terminal? This action cannot be revert!",
|
|
429
|
+
async () => {
|
|
430
|
+
var n;
|
|
431
|
+
try {
|
|
432
|
+
await h.delete(e), (n = o.value) == null || n.reset(), t.open({
|
|
433
|
+
type: "success",
|
|
434
|
+
message: "External terminal deleted successfully."
|
|
435
|
+
});
|
|
436
|
+
} catch (y) {
|
|
437
|
+
t.open({
|
|
438
|
+
type: "error",
|
|
439
|
+
title: "Error occurs when delete external terminal",
|
|
440
|
+
message: Y(y)
|
|
441
|
+
});
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
);
|
|
445
|
+
}
|
|
446
|
+
const w = function(e) {
|
|
447
|
+
return {
|
|
448
|
+
id: e._id,
|
|
449
|
+
status: e.status,
|
|
450
|
+
name: e.name,
|
|
451
|
+
type: e.type,
|
|
452
|
+
restaurant: e.restaurantId,
|
|
453
|
+
updatedAt: le(e.updatedAt).format("YYYY-MM-DD HH:mm:ss")
|
|
454
|
+
};
|
|
455
|
+
}, S = [
|
|
456
|
+
{
|
|
457
|
+
accessorKey: "id",
|
|
458
|
+
header: () => "Terminal ID",
|
|
459
|
+
meta: {
|
|
460
|
+
textAlign: "right"
|
|
461
|
+
},
|
|
462
|
+
cell: ({ cell: e, row: n }) => H(fe, { row: n, data: e.getValue() })
|
|
463
|
+
},
|
|
464
|
+
{
|
|
465
|
+
accessorKey: "name",
|
|
466
|
+
header: () => "Name",
|
|
467
|
+
meta: {
|
|
468
|
+
textAlign: "left"
|
|
469
|
+
}
|
|
470
|
+
},
|
|
471
|
+
{
|
|
472
|
+
accessorKey: "type",
|
|
473
|
+
header: () => "Provider",
|
|
474
|
+
meta: {
|
|
475
|
+
textAlign: "left"
|
|
476
|
+
}
|
|
477
|
+
},
|
|
478
|
+
{
|
|
479
|
+
accessorKey: "restaurant",
|
|
480
|
+
header: () => "Restaurant",
|
|
481
|
+
meta: {
|
|
482
|
+
textAlign: "left"
|
|
483
|
+
}
|
|
484
|
+
},
|
|
485
|
+
{
|
|
486
|
+
accessorKey: "status",
|
|
487
|
+
header: () => "Status",
|
|
488
|
+
meta: {
|
|
489
|
+
textAlign: "left"
|
|
490
|
+
}
|
|
491
|
+
},
|
|
492
|
+
{
|
|
493
|
+
accessorKey: "updatedAt",
|
|
494
|
+
header: () => "Last Updated",
|
|
495
|
+
meta: {
|
|
496
|
+
textAlign: "left"
|
|
497
|
+
}
|
|
498
|
+
},
|
|
499
|
+
{
|
|
500
|
+
accessorKey: "id",
|
|
501
|
+
header: () => "Actions",
|
|
502
|
+
meta: {
|
|
503
|
+
textAlign: "center"
|
|
504
|
+
},
|
|
505
|
+
cell: ({ row: e }) => {
|
|
506
|
+
var y;
|
|
507
|
+
const n = (y = o.value) == null ? void 0 : y.pageData().at(e.index);
|
|
508
|
+
return H(xe, {
|
|
509
|
+
data: n,
|
|
510
|
+
onPair: () => D(n),
|
|
511
|
+
onEdit: () => _(n),
|
|
512
|
+
onDelete: () => b(n._id)
|
|
513
|
+
});
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
];
|
|
517
|
+
return (e, n) => {
|
|
518
|
+
const y = p("FmSearch"), B = p("FmButton");
|
|
519
|
+
return F(), C(se, {
|
|
520
|
+
title: "External Terminals",
|
|
521
|
+
loading: !1
|
|
522
|
+
}, {
|
|
523
|
+
default: I(() => [
|
|
524
|
+
E("div", Pe, [
|
|
525
|
+
E("div", we, [
|
|
526
|
+
u(y, {
|
|
527
|
+
"model-value": s(l),
|
|
528
|
+
"onUpdate:modelValue": n[0] || (n[0] = (f) => ne(l) ? l.value = f : null),
|
|
529
|
+
class: "mr-8",
|
|
530
|
+
label: "Search",
|
|
531
|
+
placeholder: "Search ..."
|
|
532
|
+
}, null, 8, ["model-value"])
|
|
533
|
+
]),
|
|
534
|
+
E("div", Be, [
|
|
535
|
+
u(B, {
|
|
536
|
+
label: "Create",
|
|
537
|
+
icon: "add",
|
|
538
|
+
onClick: n[1] || (n[1] = () => _())
|
|
539
|
+
})
|
|
540
|
+
])
|
|
541
|
+
]),
|
|
542
|
+
u(ie, {
|
|
543
|
+
ref_key: "controller",
|
|
544
|
+
ref: o,
|
|
545
|
+
"column-defs": S,
|
|
546
|
+
"rows-defs": w,
|
|
547
|
+
paginate: (f, g) => s(h).read({ searchKey: s(l), limit: f, cursor: g })
|
|
548
|
+
}, null, 8, ["paginate"]),
|
|
549
|
+
u(Fe, {
|
|
550
|
+
modelValue: m.value,
|
|
551
|
+
"onUpdate:modelValue": n[2] || (n[2] = (f) => m.value = f),
|
|
552
|
+
terminal: c.value,
|
|
553
|
+
onSubmit: x
|
|
554
|
+
}, null, 8, ["modelValue", "terminal"])
|
|
555
|
+
]),
|
|
556
|
+
_: 1
|
|
557
|
+
});
|
|
558
|
+
};
|
|
559
|
+
}
|
|
560
|
+
});
|
|
561
|
+
export {
|
|
562
|
+
Ye as default
|
|
563
|
+
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { defineComponent as vn, ref as g, computed as dn, resolveComponent as y, openBlock as b, createElementBlock as u, createElementVNode as s, toDisplayString as U, renderSlot as yn, createCommentVNode as p, Fragment as $, createBlock as M, withCtx as X, createVNode as r, unref as t, watch as bn, onMounted as un, renderList as Gn, createTextVNode as sn, nextTick as xn, h as wn, resolveDynamicComponent as Zn } from "vue";
|
|
2
2
|
import { z as a, a as j } from "./validator-CTlVogBQ.js";
|
|
3
|
-
import { _ as Hn, P as On } from "./DocumentViewer.vue_vue_type_script_setup_true_lang-
|
|
3
|
+
import { _ as Hn, P as On } from "./DocumentViewer.vue_vue_type_script_setup_true_lang-DniTxikv.js";
|
|
4
4
|
import { useCoreStore as hn, useI18n as gn } from "@feedmepos/mf-common";
|
|
5
|
-
import { o as en } from "./index-
|
|
6
|
-
import { p as Dn } from "./index-
|
|
5
|
+
import { o as en } from "./index-DZ4-ye11.js";
|
|
6
|
+
import { p as Dn } from "./index-z-OalSFY.js";
|
|
7
7
|
import { useSnackbar as Tn, useFormChild as Jn, useDialog as Ln } from "@feedmepos/ui-library";
|
|
8
|
-
import { u as zn } from "./index-
|
|
8
|
+
import { u as zn } from "./index-evtV0Mxj.js";
|
|
9
9
|
import { s as Nn } from "./vue-signature-pad.esm-IXPjf4fL.js";
|
|
10
|
-
import { P as Bn } from "./payout-account-
|
|
11
|
-
import { a as Wn } from "./onboard-submission-
|
|
10
|
+
import { P as Bn } from "./payout-account-RdE34Fy5.js";
|
|
11
|
+
import { a as Wn } from "./onboard-submission-B6oTOtch.js";
|
|
12
12
|
import { useRouter as mn } from "vue-router";
|
|
13
13
|
import { _ as kn } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
14
|
const Rn = { class: "flex" }, Vn = { class: "justify-self-center font-semibold" }, Yn = {
|