@feedmepos/mf-payment 1.9.3-dev → 1.9.5-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-C9cv5yKo.js → Actions.vue_vue_type_script_setup_true_lang-D9eFw5GT.js} +1 -1
- package/dist/{AdminBusinessSelector.vue_vue_type_script_setup_true_lang-NKO6-sgg.js → AdminBusinessSelector.vue_vue_type_script_setup_true_lang-tqt-P5jM.js} +3 -3
- package/dist/{AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-uhnNKle-.js → AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-wts-x4-q.js} +2 -2
- package/dist/{Chargeback-C5c2ggX9.js → Chargeback-D9ezofj9.js} +5 -5
- package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-DbDKfWJX.js → DocumentViewer.vue_vue_type_script_setup_true_lang-B53mbAw2.js} +1 -1
- package/dist/ExternalTerminal-DHVCjDqS.js +484 -0
- package/dist/{OnboardForm-CVuu8ixt.js → OnboardForm-CE_z1TWy.js} +6 -6
- package/dist/{OnboardForm-COJfmIJt.js → OnboardForm-DHY3cskz.js} +6 -6
- package/dist/{OnboardSubmission-CuH1DxWt.js → OnboardSubmission-DAf8-PMR.js} +3 -3
- package/dist/{OnboardSubmission-Tl3HQgov.js → OnboardSubmission-vkH_ZjQd.js} +6 -6
- package/dist/{PayoutAccount-PXQSHup9.js → PayoutAccount-CLYNzn8n.js} +7 -7
- package/dist/{PayoutAccount-CmHNLOdq.js → PayoutAccount-rs-jPdOb.js} +5 -5
- package/dist/{PayoutAccountSetting-cV5Ts_Qq.js → PayoutAccountSetting-CeVVbTpp.js} +6 -6
- package/dist/{Restaurant-LzRSv42P.js → Restaurant-DUeCpGQz.js} +4 -4
- package/dist/{RestaurantSetting-CsnW19gh.js → RestaurantSetting-DPnjaSZP.js} +3 -3
- package/dist/{Settlement-BycHPszE.js → Settlement-Bvh2SjD-.js} +3 -3
- package/dist/{Settlement-eq9msmbN.js → Settlement-DOWtSotU.js} +4 -4
- package/dist/{SettlementTransactions-BiDjpqc3.js → SettlementTransactions-D3J51WrT.js} +5 -5
- package/dist/{SettlementTransactions-Ccm_gaYg.js → SettlementTransactions-K-J0ovnq.js} +5 -5
- package/dist/{Status.vue_vue_type_script_setup_true_lang-DuVSuCqQ.js → Status.vue_vue_type_script_setup_true_lang-CvJ6L1_a.js} +1 -1
- package/dist/{Terminal-ZRi75g3B.js → Terminal-CO3PpKg9.js} +427 -403
- package/dist/{TerminalSetting-CpIOhxYF.js → TerminalSetting-DN4d9lH9.js} +1066 -973
- package/dist/{Transaction-Dfty1Pkq.js → Transaction-CDcgKp1w.js} +11 -11
- package/dist/{Transaction-ClDKUNW6.js → Transaction-CTZ89Wbs.js} +10 -10
- package/dist/{TransactionOld-CkoAQGox.js → TransactionOld-C_95omc8.js} +7 -7
- package/dist/{TransactionStatus.vue_vue_type_script_setup_true_lang-BU1aDd8a.js → TransactionStatus.vue_vue_type_script_setup_true_lang-D1-vczoG.js} +1 -1
- package/dist/api/external-terminal/index.d.ts +2 -1
- package/dist/{app-BO87oXyA.js → app-Cs0_lCUQ.js} +24 -24
- package/dist/app.js +1 -1
- package/dist/{assets-CEy6OF2t.js → assets-D3ALZiYC.js} +1 -1
- package/dist/{grafana-BL6EdH24.js → grafana-DgZsQuHZ.js} +1 -1
- package/dist/{index-By1YYoRG.js → index-6pMHqVXQ.js} +1 -1
- package/dist/{index-zzOpgyK_.js → index-8HjTWFUv.js} +11 -9
- package/dist/{index-NcS-Zyhu.js → index-9wT3znSS.js} +1 -1
- package/dist/{index--870P92-.js → index-BuXolnO9.js} +2 -2
- package/dist/{index-nn5zFo8I.js → index-CD3vR04K.js} +1 -1
- package/dist/{index-DEPKBu9W.js → index-Cc2oWXJD.js} +1 -1
- package/dist/{index-CGfEnp2P.js → index-CjC49DkQ.js} +1 -1
- package/dist/{index-CAd13T_z.js → index-CrRToXMG.js} +1 -1
- package/dist/index-DFN4_x7R.js +52 -0
- package/dist/{index-CXpoEy-p.js → index-DblBoips.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-DZQR-ukK.js → index.vue_vue_type_script_setup_true_lang-BVloZZBn.js} +1 -1
- package/dist/{onboard-submission-29LM4jfB.js → onboard-submission-DEJSQhGY.js} +1 -1
- package/dist/package.json +2 -2
- package/dist/{payout-account-HS9MHh85.js → payout-account-bky0BGyg.js} +3 -3
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/admin/external-terminal/ExternalTerminalPairDialog.vue.d.ts +16 -16
- package/dist/views/admin/external-terminal/{ExternalTerminalDialog.vue.d.ts → ExternalTerminalSideSheet.vue.d.ts} +39 -18
- package/dist/views/admin/external-terminal/pair/BRITerminal.vue.d.ts +16 -16
- package/dist/views/admin/external-terminal/pair/BeamTerminal.vue.d.ts +16 -16
- package/dist/views/admin/terminal/TerminalSideSheet.vue.d.ts +196 -0
- 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/{TerminalDialog.vue.d.ts → tabs/ecr/BeamGateway.vue.d.ts} +53 -32
- 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-Cd_azqjT.js +0 -502
|
@@ -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-D3ALZiYC.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-8HjTWFUv.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-Cs0_lCUQ.js";
|
|
5
|
+
import { u as f } from "./AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-wts-x4-q.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-DblBoips.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-Cs0_lCUQ.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-9wT3znSS.js";
|
|
3
3
|
import { h as f } from "./moment-h96o7c8I.js";
|
|
4
|
-
import "./index-
|
|
4
|
+
import "./index-8HjTWFUv.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-CrRToXMG.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-BVloZZBn.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-wts-x4-q.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-6pMHqVXQ.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,484 @@
|
|
|
1
|
+
import { defineComponent as E, resolveComponent as u, openBlock as x, createElementBlock as I, createVNode as d, normalizeClass as z, withCtx as B, createElementVNode as F, toDisplayString as q, createBlock as b, useModel as O, ref as _, watch as K, unref as m, createCommentVNode as $, mergeModels as R, createTextVNode as D, computed as M, resolveDynamicComponent as Y, normalizeProps as H, guardReactiveProps as L, isRef as Q, h as U } from "vue";
|
|
2
|
+
import { h as W } from "./moment-h96o7c8I.js";
|
|
3
|
+
import { useCoreStore as G } from "@feedmepos/mf-common";
|
|
4
|
+
import { u as J } from "./index-CrRToXMG.js";
|
|
5
|
+
import { _ as X } from "./index.vue_vue_type_script_setup_true_lang-BVloZZBn.js";
|
|
6
|
+
import { _ as Z } from "./AdminLayout.vue_vue_type_script_setup_true_lang-0Mf1MhAL.js";
|
|
7
|
+
import { useSnackbar as N, useDialogChild as ee, useDialog as te } from "@feedmepos/ui-library";
|
|
8
|
+
import { e as k } from "./index-DFN4_x7R.js";
|
|
9
|
+
import { c as ae } from "./clipboard-4jh1WteU.js";
|
|
10
|
+
import { z as P, a as h } from "./validator-CTlVogBQ.js";
|
|
11
|
+
import { _ as re } from "./AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-wts-x4-q.js";
|
|
12
|
+
import { p as ne } from "./index-8HjTWFUv.js";
|
|
13
|
+
import { u as A } from "./error-K1CakhA9.js";
|
|
14
|
+
import { w as oe } from "./Modal-DB8M9o1T.js";
|
|
15
|
+
const le = /* @__PURE__ */ E({
|
|
16
|
+
__name: "ID",
|
|
17
|
+
props: {
|
|
18
|
+
row: {},
|
|
19
|
+
data: {}
|
|
20
|
+
},
|
|
21
|
+
setup(c) {
|
|
22
|
+
const o = c, a = N();
|
|
23
|
+
function s() {
|
|
24
|
+
return o.row.original.status === "READY" ? "!w-[16px] !h-[16px] bg-green-400" : "!w-[16px] !h-[16px] bg-amber-400";
|
|
25
|
+
}
|
|
26
|
+
function l() {
|
|
27
|
+
try {
|
|
28
|
+
ae(o.data), a.open({ title: "Text copied to clipboard." }, 1e3);
|
|
29
|
+
} catch {
|
|
30
|
+
a.open({ title: "Clipboard API incompatible." }, 1e3);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
return (n, e) => {
|
|
34
|
+
const i = u("FmBadge");
|
|
35
|
+
return x(), I("div", {
|
|
36
|
+
onClick: e[0] || (e[0] = (p) => {
|
|
37
|
+
p.stopPropagation(), l();
|
|
38
|
+
})
|
|
39
|
+
}, [
|
|
40
|
+
d(i, {
|
|
41
|
+
inline: "",
|
|
42
|
+
class: z(s())
|
|
43
|
+
}, {
|
|
44
|
+
default: B(() => [
|
|
45
|
+
F("div", null, q(c.data), 1)
|
|
46
|
+
]),
|
|
47
|
+
_: 1
|
|
48
|
+
}, 8, ["class"])
|
|
49
|
+
]);
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
}), se = { class: "flex items-center justify-center" }, ie = {
|
|
53
|
+
key: 1,
|
|
54
|
+
class: "t-caption text-fm-color-neutral-gray-500 whitespace-nowrap"
|
|
55
|
+
}, me = /* @__PURE__ */ E({
|
|
56
|
+
__name: "Actions",
|
|
57
|
+
props: {
|
|
58
|
+
data: {}
|
|
59
|
+
},
|
|
60
|
+
emits: ["pair", "edit", "delete"],
|
|
61
|
+
setup(c, { emit: o }) {
|
|
62
|
+
const a = o;
|
|
63
|
+
return (s, l) => {
|
|
64
|
+
const n = u("FmButton");
|
|
65
|
+
return x(), I("div", se, [
|
|
66
|
+
c.data.status === "NEW" ? (x(), b(n, {
|
|
67
|
+
key: 0,
|
|
68
|
+
variant: "tertiary",
|
|
69
|
+
label: "Pair",
|
|
70
|
+
"prepend-icon": "link",
|
|
71
|
+
onClick: l[0] || (l[0] = (e) => {
|
|
72
|
+
e.stopPropagation(), a("pair");
|
|
73
|
+
})
|
|
74
|
+
})) : (x(), I("div", ie, " Ready to use ")),
|
|
75
|
+
d(n, {
|
|
76
|
+
variant: "plain",
|
|
77
|
+
"prepend-icon": "edit",
|
|
78
|
+
onClick: l[1] || (l[1] = (e) => {
|
|
79
|
+
e.stopPropagation(), a("edit");
|
|
80
|
+
})
|
|
81
|
+
}),
|
|
82
|
+
d(n, {
|
|
83
|
+
variant: "plain",
|
|
84
|
+
"prepend-icon": "delete",
|
|
85
|
+
onClick: l[2] || (l[2] = (e) => {
|
|
86
|
+
e.stopPropagation(), a("delete");
|
|
87
|
+
})
|
|
88
|
+
})
|
|
89
|
+
]);
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
}), ue = /* @__PURE__ */ E({
|
|
93
|
+
__name: "ExternalTerminalSideSheet",
|
|
94
|
+
props: /* @__PURE__ */ R({
|
|
95
|
+
terminal: {
|
|
96
|
+
type: Object
|
|
97
|
+
}
|
|
98
|
+
}, {
|
|
99
|
+
modelValue: { type: Boolean, default: !1 },
|
|
100
|
+
modelModifiers: {}
|
|
101
|
+
}),
|
|
102
|
+
emits: /* @__PURE__ */ R(["submit"], ["update:modelValue"]),
|
|
103
|
+
setup(c, { emit: o }) {
|
|
104
|
+
const a = c, s = o, l = O(c, "modelValue"), n = _(), e = _(""), i = _(""), p = _(), g = ne.FdoExternalTerminalProvider.options.map((C) => ({
|
|
105
|
+
label: C,
|
|
106
|
+
value: C
|
|
107
|
+
}));
|
|
108
|
+
K(l, (C) => {
|
|
109
|
+
var y, T, w;
|
|
110
|
+
C && (e.value = ((y = a.terminal) == null ? void 0 : y.name) ?? "", i.value = ((T = a.terminal) == null ? void 0 : T.restaurantId) ?? "", p.value = (w = a.terminal) == null ? void 0 : w.type);
|
|
111
|
+
});
|
|
112
|
+
function V() {
|
|
113
|
+
s("submit", {
|
|
114
|
+
name: e.value,
|
|
115
|
+
restaurantId: i.value,
|
|
116
|
+
type: p.value
|
|
117
|
+
}), l.value = !1;
|
|
118
|
+
}
|
|
119
|
+
return (C, y) => {
|
|
120
|
+
const T = u("FmSelect"), w = u("FmTextField"), t = u("FmButton"), r = u("FmForm"), f = u("FmSideSheet");
|
|
121
|
+
return x(), b(f, {
|
|
122
|
+
modelValue: l.value,
|
|
123
|
+
"onUpdate:modelValue": y[3] || (y[3] = (v) => l.value = v),
|
|
124
|
+
header: a.terminal ? "Update External Terminal" : "Create New External Terminal",
|
|
125
|
+
"close-button": ""
|
|
126
|
+
}, {
|
|
127
|
+
default: B(() => [
|
|
128
|
+
d(r, {
|
|
129
|
+
ref: n.value,
|
|
130
|
+
class: "flex flex-col gap-16 px-4 py-6",
|
|
131
|
+
onValidationSuccess: V
|
|
132
|
+
}, {
|
|
133
|
+
default: B(() => [
|
|
134
|
+
a.terminal ? $("", !0) : (x(), b(T, {
|
|
135
|
+
key: 0,
|
|
136
|
+
modelValue: p.value,
|
|
137
|
+
"onUpdate:modelValue": y[0] || (y[0] = (v) => p.value = v),
|
|
138
|
+
label: "Provider",
|
|
139
|
+
items: m(g),
|
|
140
|
+
rules: m(P)(m(h).string().min(1, "Provider is required"))
|
|
141
|
+
}, null, 8, ["modelValue", "items", "rules"])),
|
|
142
|
+
a.terminal ? $("", !0) : (x(), b(re, {
|
|
143
|
+
key: 1,
|
|
144
|
+
modelValue: i.value,
|
|
145
|
+
"onUpdate:modelValue": y[1] || (y[1] = (v) => i.value = v),
|
|
146
|
+
label: "Restaurant",
|
|
147
|
+
"search-placeholder": "Search restaurants",
|
|
148
|
+
rules: m(P)(m(h).string().min(1, "Restaurant is required"))
|
|
149
|
+
}, null, 8, ["modelValue", "rules"])),
|
|
150
|
+
d(w, {
|
|
151
|
+
modelValue: e.value,
|
|
152
|
+
"onUpdate:modelValue": y[2] || (y[2] = (v) => e.value = v),
|
|
153
|
+
label: "Terminal Name",
|
|
154
|
+
rules: m(P)(m(h).string().min(1))
|
|
155
|
+
}, null, 8, ["modelValue", "rules"]),
|
|
156
|
+
d(t, {
|
|
157
|
+
type: "submit",
|
|
158
|
+
label: a.terminal ? "Update" : "Create"
|
|
159
|
+
}, null, 8, ["label"])
|
|
160
|
+
]),
|
|
161
|
+
_: 1
|
|
162
|
+
}, 512)
|
|
163
|
+
]),
|
|
164
|
+
_: 1
|
|
165
|
+
}, 8, ["modelValue", "header"]);
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
}), de = { class: "t-caption" }, ce = /* @__PURE__ */ E({
|
|
169
|
+
__name: "BeamTerminal",
|
|
170
|
+
props: {
|
|
171
|
+
terminal: {
|
|
172
|
+
type: Object,
|
|
173
|
+
required: !0
|
|
174
|
+
},
|
|
175
|
+
onPair: {
|
|
176
|
+
type: Function,
|
|
177
|
+
required: !0
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
setup(c) {
|
|
181
|
+
const o = c, a = _(), s = _("");
|
|
182
|
+
return (l, n) => {
|
|
183
|
+
const e = u("FmTextField"), i = u("FmButton"), p = u("FmForm");
|
|
184
|
+
return x(), b(p, {
|
|
185
|
+
ref: a.value,
|
|
186
|
+
class: "flex flex-col gap-16 mb-6",
|
|
187
|
+
onValidationSuccess: n[1] || (n[1] = () => o.onPair({ type: "BEAM", pairCode: s.value }))
|
|
188
|
+
}, {
|
|
189
|
+
default: B(() => [
|
|
190
|
+
F("div", de, [
|
|
191
|
+
n[2] || (n[2] = D(" Enter the pairing code shown on ", -1)),
|
|
192
|
+
F("b", null, q(o.terminal.name), 1),
|
|
193
|
+
n[3] || (n[3] = D(" to register it with Bolt Connect. ", -1))
|
|
194
|
+
]),
|
|
195
|
+
d(e, {
|
|
196
|
+
modelValue: s.value,
|
|
197
|
+
"onUpdate:modelValue": n[0] || (n[0] = (g) => s.value = g),
|
|
198
|
+
label: "Pair Code",
|
|
199
|
+
"label-mark": "required",
|
|
200
|
+
rules: m(P)(m(h).string().min(1, "Pair code is required"))
|
|
201
|
+
}, null, 8, ["modelValue", "rules"]),
|
|
202
|
+
d(i, {
|
|
203
|
+
type: "submit",
|
|
204
|
+
label: "Pair"
|
|
205
|
+
})
|
|
206
|
+
]),
|
|
207
|
+
_: 1
|
|
208
|
+
}, 512);
|
|
209
|
+
};
|
|
210
|
+
}
|
|
211
|
+
}), pe = { class: "t-caption" }, fe = /* @__PURE__ */ E({
|
|
212
|
+
__name: "BRITerminal",
|
|
213
|
+
props: {
|
|
214
|
+
terminal: {
|
|
215
|
+
type: Object,
|
|
216
|
+
required: !0
|
|
217
|
+
},
|
|
218
|
+
onPair: {
|
|
219
|
+
type: Function,
|
|
220
|
+
required: !0
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
setup(c) {
|
|
224
|
+
const o = c, a = _(), s = _(""), l = _("");
|
|
225
|
+
return (n, e) => {
|
|
226
|
+
const i = u("FmTextField"), p = u("FmButton"), g = u("FmForm");
|
|
227
|
+
return x(), b(g, {
|
|
228
|
+
ref: a.value,
|
|
229
|
+
class: "flex flex-col gap-16 mb-6",
|
|
230
|
+
onValidationSuccess: e[2] || (e[2] = () => o.onPair({ type: "BRI", pairCode: s.value, edcId: l.value }))
|
|
231
|
+
}, {
|
|
232
|
+
default: B(() => [
|
|
233
|
+
F("div", pe, [
|
|
234
|
+
e[3] || (e[3] = D(" Enter the pairing code and EDC ID shown on ", -1)),
|
|
235
|
+
F("b", null, q(o.terminal.name), 1),
|
|
236
|
+
e[4] || (e[4] = D(" to register it with BRI. ", -1))
|
|
237
|
+
]),
|
|
238
|
+
d(i, {
|
|
239
|
+
modelValue: s.value,
|
|
240
|
+
"onUpdate:modelValue": e[0] || (e[0] = (V) => s.value = V),
|
|
241
|
+
label: "Pair Code",
|
|
242
|
+
"label-mark": "required",
|
|
243
|
+
rules: m(P)(m(h).string().min(1, "Pair code is required"))
|
|
244
|
+
}, null, 8, ["modelValue", "rules"]),
|
|
245
|
+
d(i, {
|
|
246
|
+
modelValue: l.value,
|
|
247
|
+
"onUpdate:modelValue": e[1] || (e[1] = (V) => l.value = V),
|
|
248
|
+
label: "EDC ID",
|
|
249
|
+
"label-mark": "required",
|
|
250
|
+
rules: m(P)(m(h).string().min(1, "EDC ID is required"))
|
|
251
|
+
}, null, 8, ["modelValue", "rules"]),
|
|
252
|
+
d(p, {
|
|
253
|
+
type: "submit",
|
|
254
|
+
label: "Pair"
|
|
255
|
+
})
|
|
256
|
+
]),
|
|
257
|
+
_: 1
|
|
258
|
+
}, 512);
|
|
259
|
+
};
|
|
260
|
+
}
|
|
261
|
+
}), ye = /* @__PURE__ */ E({
|
|
262
|
+
__name: "ExternalTerminalPairDialog",
|
|
263
|
+
props: {
|
|
264
|
+
terminal: {
|
|
265
|
+
type: Object,
|
|
266
|
+
required: !0
|
|
267
|
+
}
|
|
268
|
+
},
|
|
269
|
+
setup(c) {
|
|
270
|
+
const o = c, a = ee(), s = {
|
|
271
|
+
BEAM: ce,
|
|
272
|
+
BRI: fe
|
|
273
|
+
}, l = M(() => s[o.terminal.type]);
|
|
274
|
+
function n(e) {
|
|
275
|
+
a.emitData(e), a.emitAction("primary");
|
|
276
|
+
}
|
|
277
|
+
return (e, i) => (x(), b(Y(l.value), H(L({
|
|
278
|
+
terminal: o.terminal,
|
|
279
|
+
onPair: n
|
|
280
|
+
})), null, 16));
|
|
281
|
+
}
|
|
282
|
+
}), ve = { class: "flex justify-between mb-6 items-center" }, _e = { class: "flex space-x-4" }, xe = { class: "flex space-x-4" }, Ae = /* @__PURE__ */ E({
|
|
283
|
+
__name: "ExternalTerminal",
|
|
284
|
+
setup(c) {
|
|
285
|
+
const o = _(), { searchKey: a } = J({
|
|
286
|
+
searchKey: ""
|
|
287
|
+
});
|
|
288
|
+
let s;
|
|
289
|
+
K(a, async () => {
|
|
290
|
+
s && clearTimeout(s), s = setTimeout(() => {
|
|
291
|
+
var t;
|
|
292
|
+
return (t = o.value) == null ? void 0 : t.reset();
|
|
293
|
+
}, 700);
|
|
294
|
+
});
|
|
295
|
+
const l = G(), n = te(), e = N();
|
|
296
|
+
M(
|
|
297
|
+
() => new Map(l.restaurants.value.map((t) => [t._id, t.profile.name]))
|
|
298
|
+
);
|
|
299
|
+
const i = _(!1), p = _();
|
|
300
|
+
function g(t) {
|
|
301
|
+
p.value = t, i.value = !0;
|
|
302
|
+
}
|
|
303
|
+
async function V(t) {
|
|
304
|
+
var f;
|
|
305
|
+
const r = p.value;
|
|
306
|
+
try {
|
|
307
|
+
r ? await k.updateById(r._id, {
|
|
308
|
+
name: t.name
|
|
309
|
+
}) : await k.create(t), (f = o.value) == null || f.reset(), e.open({
|
|
310
|
+
type: "success",
|
|
311
|
+
message: r ? "External terminal updated successfully." : "External terminal created successfully."
|
|
312
|
+
});
|
|
313
|
+
} catch (v) {
|
|
314
|
+
e.open({
|
|
315
|
+
type: "error",
|
|
316
|
+
title: r ? "Error occurs when update external terminal" : "Error occurs when create external terminal",
|
|
317
|
+
message: A(v)
|
|
318
|
+
});
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
async function C(t) {
|
|
322
|
+
n.open({
|
|
323
|
+
title: "Pair External Terminal",
|
|
324
|
+
closeButton: !0,
|
|
325
|
+
overlay: !0,
|
|
326
|
+
contentComponent: ye,
|
|
327
|
+
contentComponentProps: { terminal: t }
|
|
328
|
+
}).onPrimary(async (r) => {
|
|
329
|
+
var f;
|
|
330
|
+
n.close();
|
|
331
|
+
try {
|
|
332
|
+
await k.pair(t._id, r), (f = o.value) == null || f.reset(), e.open({
|
|
333
|
+
type: "success",
|
|
334
|
+
message: "External terminal paired successfully."
|
|
335
|
+
});
|
|
336
|
+
} catch (v) {
|
|
337
|
+
e.open({
|
|
338
|
+
type: "error",
|
|
339
|
+
title: "Error occurs when pair external terminal",
|
|
340
|
+
message: A(v)
|
|
341
|
+
});
|
|
342
|
+
}
|
|
343
|
+
});
|
|
344
|
+
}
|
|
345
|
+
async function y(t) {
|
|
346
|
+
oe(
|
|
347
|
+
n,
|
|
348
|
+
"Delete External Terminal",
|
|
349
|
+
"Are you sure to delete this external terminal? This action cannot be revert!",
|
|
350
|
+
async () => {
|
|
351
|
+
var r;
|
|
352
|
+
try {
|
|
353
|
+
await k.delete(t), (r = o.value) == null || r.reset(), e.open({
|
|
354
|
+
type: "success",
|
|
355
|
+
message: "External terminal deleted successfully."
|
|
356
|
+
});
|
|
357
|
+
} catch (f) {
|
|
358
|
+
e.open({
|
|
359
|
+
type: "error",
|
|
360
|
+
title: "Error occurs when delete external terminal",
|
|
361
|
+
message: A(f)
|
|
362
|
+
});
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
);
|
|
366
|
+
}
|
|
367
|
+
const T = function(t) {
|
|
368
|
+
return {
|
|
369
|
+
id: t._id,
|
|
370
|
+
status: t.status,
|
|
371
|
+
name: t.name,
|
|
372
|
+
type: t.type,
|
|
373
|
+
restaurant: t.restaurantId,
|
|
374
|
+
updatedAt: W(t.updatedAt).format("YYYY-MM-DD HH:mm:ss")
|
|
375
|
+
};
|
|
376
|
+
}, w = [
|
|
377
|
+
{
|
|
378
|
+
accessorKey: "id",
|
|
379
|
+
header: () => "Terminal ID",
|
|
380
|
+
meta: {
|
|
381
|
+
textAlign: "right"
|
|
382
|
+
},
|
|
383
|
+
cell: ({ cell: t, row: r }) => U(le, { row: r, data: t.getValue() })
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
accessorKey: "name",
|
|
387
|
+
header: () => "Name",
|
|
388
|
+
meta: {
|
|
389
|
+
textAlign: "left"
|
|
390
|
+
}
|
|
391
|
+
},
|
|
392
|
+
{
|
|
393
|
+
accessorKey: "type",
|
|
394
|
+
header: () => "Provider",
|
|
395
|
+
meta: {
|
|
396
|
+
textAlign: "left"
|
|
397
|
+
}
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
accessorKey: "restaurant",
|
|
401
|
+
header: () => "Restaurant",
|
|
402
|
+
meta: {
|
|
403
|
+
textAlign: "left"
|
|
404
|
+
}
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
accessorKey: "status",
|
|
408
|
+
header: () => "Status",
|
|
409
|
+
meta: {
|
|
410
|
+
textAlign: "left"
|
|
411
|
+
}
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
accessorKey: "updatedAt",
|
|
415
|
+
header: () => "Last Updated",
|
|
416
|
+
meta: {
|
|
417
|
+
textAlign: "left"
|
|
418
|
+
}
|
|
419
|
+
},
|
|
420
|
+
{
|
|
421
|
+
accessorKey: "id",
|
|
422
|
+
header: () => "Actions",
|
|
423
|
+
meta: {
|
|
424
|
+
textAlign: "center"
|
|
425
|
+
},
|
|
426
|
+
cell: ({ row: t }) => {
|
|
427
|
+
var f;
|
|
428
|
+
const r = (f = o.value) == null ? void 0 : f.pageData().at(t.index);
|
|
429
|
+
return U(me, {
|
|
430
|
+
data: r,
|
|
431
|
+
onPair: () => C(r),
|
|
432
|
+
onEdit: () => g(r),
|
|
433
|
+
onDelete: () => y(r._id)
|
|
434
|
+
});
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
];
|
|
438
|
+
return (t, r) => {
|
|
439
|
+
const f = u("FmSearch"), v = u("FmButton");
|
|
440
|
+
return x(), b(Z, {
|
|
441
|
+
title: "External Terminals",
|
|
442
|
+
loading: !1
|
|
443
|
+
}, {
|
|
444
|
+
default: B(() => [
|
|
445
|
+
F("div", ve, [
|
|
446
|
+
F("div", _e, [
|
|
447
|
+
d(f, {
|
|
448
|
+
"model-value": m(a),
|
|
449
|
+
"onUpdate:modelValue": r[0] || (r[0] = (S) => Q(a) ? a.value = S : null),
|
|
450
|
+
class: "mr-8",
|
|
451
|
+
label: "Search",
|
|
452
|
+
placeholder: "Search ..."
|
|
453
|
+
}, null, 8, ["model-value"])
|
|
454
|
+
]),
|
|
455
|
+
F("div", xe, [
|
|
456
|
+
d(v, {
|
|
457
|
+
label: "Create",
|
|
458
|
+
icon: "add",
|
|
459
|
+
onClick: r[1] || (r[1] = () => g())
|
|
460
|
+
})
|
|
461
|
+
])
|
|
462
|
+
]),
|
|
463
|
+
d(X, {
|
|
464
|
+
ref_key: "controller",
|
|
465
|
+
ref: o,
|
|
466
|
+
"column-defs": w,
|
|
467
|
+
"rows-defs": T,
|
|
468
|
+
paginate: (S, j) => m(k).read({ searchKey: m(a), limit: S, cursor: j })
|
|
469
|
+
}, null, 8, ["paginate"]),
|
|
470
|
+
d(ue, {
|
|
471
|
+
modelValue: i.value,
|
|
472
|
+
"onUpdate:modelValue": r[2] || (r[2] = (S) => i.value = S),
|
|
473
|
+
terminal: p.value,
|
|
474
|
+
onSubmit: V
|
|
475
|
+
}, null, 8, ["modelValue", "terminal"])
|
|
476
|
+
]),
|
|
477
|
+
_: 1
|
|
478
|
+
});
|
|
479
|
+
};
|
|
480
|
+
}
|
|
481
|
+
});
|
|
482
|
+
export {
|
|
483
|
+
Ae as default
|
|
484
|
+
};
|
|
@@ -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-B53mbAw2.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-BuXolnO9.js";
|
|
6
|
+
import { p as Dn } from "./index-CD3vR04K.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-8HjTWFUv.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-bky0BGyg.js";
|
|
11
|
+
import { a as Wn } from "./onboard-submission-DEJSQhGY.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 = {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { defineComponent as Z, ref as E, computed as W, resolveComponent as C, openBlock as b, createElementBlock as P, createElementVNode as n, toDisplayString as U, createBlock as T, withCtx as f, createCommentVNode as A, createVNode as r, unref as e, Fragment as J, renderList as le, createTextVNode as z, onMounted as pe, resolveDynamicComponent as be } from "vue";
|
|
2
|
-
import { o as H } from "./index
|
|
3
|
-
import { u as te, p as oe } from "./index-
|
|
2
|
+
import { o as H } from "./index-BuXolnO9.js";
|
|
3
|
+
import { u as te, p as oe } from "./index-8HjTWFUv.js";
|
|
4
4
|
import { useRouter as ce } from "vue-router";
|
|
5
5
|
import { z as u, a as d } from "./validator-CTlVogBQ.js";
|
|
6
|
-
import { P as ye } from "./payout-account-
|
|
7
|
-
import { a as ge } from "./onboard-submission-
|
|
8
|
-
import { _ as re } from "./DocumentViewer.vue_vue_type_script_setup_true_lang-
|
|
6
|
+
import { P as ye } from "./payout-account-bky0BGyg.js";
|
|
7
|
+
import { a as ge } from "./onboard-submission-DEJSQhGY.js";
|
|
8
|
+
import { _ as re } from "./DocumentViewer.vue_vue_type_script_setup_true_lang-B53mbAw2.js";
|
|
9
9
|
import { s as Ve } from "./vue-signature-pad.esm-IXPjf4fL.js";
|
|
10
|
-
import { _ as ie } from "./Status.vue_vue_type_script_setup_true_lang-
|
|
10
|
+
import { _ as ie } from "./Status.vue_vue_type_script_setup_true_lang-CvJ6L1_a.js";
|
|
11
11
|
import { useSnackbar as ae } from "@feedmepos/ui-library";
|
|
12
12
|
import { u as Q } from "./error-K1CakhA9.js";
|
|
13
13
|
const ve = ["src"], F = /* @__PURE__ */ Z({
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent as pA, ref as Y, computed as W, onMounted as gA, watch as vA, onBeforeUnmount as PA, resolveComponent as T, openBlock as l, createBlock as R, unref as t, withCtx as Z, createElementVNode as o, createVNode as x, createElementBlock as f, Fragment as U, renderList as K, normalizeClass as BA, toDisplayString as a, createTextVNode as B, createCommentVNode as C } from "vue";
|
|
2
2
|
import { _ as DA } from "./Layout.vue_vue_type_script_setup_true_lang-BKIvkgA_.js";
|
|
3
|
-
import { u as wA, p as u, e as iA } from "./index-
|
|
3
|
+
import { u as wA, p as u, e as iA } from "./index-8HjTWFUv.js";
|
|
4
4
|
import { u as N } from "./error-K1CakhA9.js";
|
|
5
5
|
import { useI18n as xA, useCoreStore as HA } from "@feedmepos/mf-common";
|
|
6
6
|
import { useSnackbar as LA } from "@feedmepos/ui-library";
|
|
7
7
|
import { _ as TA } from "./RestaurantSelector.vue_vue_type_script_setup_true_lang-D08ykrWf.js";
|
|
8
|
-
import { b as q } from "./onboard-submission-
|
|
9
|
-
import { o as G } from "./index
|
|
8
|
+
import { b as q } from "./onboard-submission-DEJSQhGY.js";
|
|
9
|
+
import { o as G } from "./index-BuXolnO9.js";
|
|
10
10
|
import { useRouter as CA } from "vue-router";
|
|
11
11
|
import { c as QA } from "./index-MdV54cWO.js";
|
|
12
12
|
import { s as OA, t as zA } from "./tyro-BovmsorS.js";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { defineComponent as S, ref as w, watch as c, computed as f, resolveComponent as y, openBlock as O, createBlock as k, withCtx as _, createElementVNode as K, createVNode as m, isRef as n, unref as o, h as F } from "vue";
|
|
2
|
-
import { o as R } from "./index
|
|
3
|
-
import { p as b } from "./index-
|
|
4
|
-
import { _ as C } from "./index.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { o as R } from "./index-BuXolnO9.js";
|
|
3
|
+
import { p as b } from "./index-8HjTWFUv.js";
|
|
4
|
+
import { _ as C } from "./index.vue_vue_type_script_setup_true_lang-BVloZZBn.js";
|
|
5
5
|
import { useRouter as D } from "vue-router";
|
|
6
6
|
import { _ as E } from "./AdminLayout.vue_vue_type_script_setup_true_lang-0Mf1MhAL.js";
|
|
7
7
|
import { h as N } from "./moment-h96o7c8I.js";
|
|
8
|
-
import { u as T } from "./index-
|
|
8
|
+
import { u as T } from "./index-CrRToXMG.js";
|
|
9
9
|
import { _ as U } from "./SelectAll.vue_vue_type_script_setup_true_lang-BNZTqdoF.js";
|
|
10
|
-
import { _ as I } from "./Status.vue_vue_type_script_setup_true_lang-
|
|
11
|
-
import { O as Y } from "./onboard-submission-
|
|
10
|
+
import { _ as I } from "./Status.vue_vue_type_script_setup_true_lang-CvJ6L1_a.js";
|
|
11
|
+
import { O as Y } from "./onboard-submission-DEJSQhGY.js";
|
|
12
12
|
const $ = { class: "flex items-start mb-6" }, X = /* @__PURE__ */ S({
|
|
13
13
|
__name: "OnboardSubmission",
|
|
14
14
|
setup(P) {
|