@feedmepos/mf-payment 1.5.77 → 1.5.79-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-D_PoXVbz.js → Actions.vue_vue_type_script_setup_true_lang-B1k6lqk9.js} +1 -1
- package/dist/{Chargeback-CzwL8PJv.js → Chargeback-DDW6Z35O.js} +7 -7
- package/dist/{DateRangePicker.vue_vue_type_script_setup_true_lang-CDjdQf-E.js → DateRangePicker.vue_vue_type_script_setup_true_lang-BNVnvrVY.js} +1 -1
- package/dist/{no-data-BRmo6XOO.js → DocumentViewer.vue_vue_type_script_setup_true_lang-0t7PrKly.js} +91 -2
- package/dist/{OnboardForm-DZeWRzRD.js → OnboardForm-CMiPKEAD.js} +554 -482
- package/dist/{OnboardForm-C6LuVVyr.js → OnboardForm-UvHyCi9w.js} +6 -6
- package/dist/{OnboardSubmission-C2BYK2p1.js → OnboardSubmission-BWv_zw6C.js} +27 -27
- package/dist/OnboardSubmission-faKhsdmy.js +446 -0
- package/dist/{PayoutAccount-BMQZ5bOZ.js → PayoutAccount-DHFs5gyw.js} +5 -5
- package/dist/{PayoutAccount-VbRd7cmv.js → PayoutAccount-mNPnD2h1.js} +394 -415
- package/dist/PayoutAccountSetting-DFOPZ5Lh.js +1502 -0
- package/dist/{Restaurant-4cO60aVP.js → Restaurant-jkwyYKCC.js} +4 -4
- package/dist/{RestaurantSetting-Bvk0dnCI.js → RestaurantSetting-D6uSwnZI.js} +325 -243
- package/dist/{Settlement-Cme1wMB-.js → Settlement-COK5hned.js} +5 -5
- package/dist/{Settlement-CklF8pz7.js → Settlement-CPLwwE2V.js} +4 -4
- package/dist/{SettlementTransactions-DD285bSJ.js → SettlementTransactions-BaD7Xzc_.js} +4 -4
- package/dist/{SettlementTransactions-3F4EOoyz.js → SettlementTransactions-Coc4SIYf.js} +4 -4
- package/dist/{Status.vue_vue_type_script_setup_true_lang-CUnCf_fx.js → Status.vue_vue_type_script_setup_true_lang-COmSmTD-.js} +1 -1
- package/dist/{Terminal-CK6ULW6U.js → Terminal-Bi-pgpLy.js} +6 -6
- package/dist/{TerminalSetting-CEQG3OV6.js → TerminalSetting-Bn7dMb8m.js} +887 -712
- package/dist/{TextInputDialog.vue_vue_type_script_setup_true_lang-BvGYVca0.js → TextInputDialog.vue_vue_type_script_setup_true_lang-D8W8_SO2.js} +1 -1
- package/dist/{Transaction-DjzWqLtN.js → Transaction-C0tvyLUP.js} +99 -102
- package/dist/Transaction-Dc3ppbQO.js +507 -0
- package/dist/TransactionOld-0b8NDOAr.js +313 -0
- package/dist/api/onboard-submission/index.d.ts +3 -1
- package/dist/api/terminal/index.d.ts +1 -0
- package/dist/app-DLOPYVQT.js +9185 -0
- package/dist/app.d.ts +96 -1
- package/dist/app.js +5 -4
- package/dist/{assets-DIbq1BVX.js → assets-CHl9dRwW.js} +81 -79
- package/dist/composable/async-poller/index.d.ts +22 -0
- package/dist/{grafana-B0iQmK6j.js → grafana-W-wciFnf.js} +1 -1
- package/dist/index-7WseRv3u.js +63 -0
- package/dist/{index-BHCs_NnD.js → index-BUvHMo4V.js} +1 -1
- package/dist/{index-CxnWUe_K.js → index-BXl4SMxF.js} +3 -3
- package/dist/{index-C_Y5Sfc9.js → index-Bz9betjL.js} +1 -1
- package/dist/{index-B0L21J1j.js → index-C_13hvar.js} +1 -1
- package/dist/{index-D0j1LZAB.js → index-DGyTvHj8.js} +9430 -9267
- package/dist/{index-BkQ7t3F6.js → index-Dic547vC.js} +1 -1
- package/dist/index-MdV54cWO.js +58 -0
- package/dist/{index-C80a7-Ks.js → index-c2WIf6FM.js} +1 -1
- package/dist/{index-CnN_MV2-.js → index-oz80FaA5.js} +24 -9
- package/dist/{index.vue_vue_type_script_setup_true_lang-BksGFeSf.js → index.vue_vue_type_script_setup_true_lang-Cj6xgRBA.js} +1 -1
- package/dist/main.d.ts +1 -0
- package/dist/model/payout-account.d.ts +2 -2
- package/dist/package.json +4 -3
- package/dist/{payout-account-B7OikYn5.js → payout-account-CygV7FSk.js} +37 -37
- package/dist/stores/payoutAccount.d.ts +44 -34
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/tyro-BovmsorS.js +5 -0
- package/dist/utils/permission.d.ts +1 -0
- package/dist/{validator-CTlVogBQ.js → validator-DzjyJnvv.js} +0 -1
- package/dist/views/admin/onboard-submission/forms/NTTSubmission.vue.d.ts +16 -16
- package/dist/views/admin/onboard-submission/forms/SoftspaceSubmission.vue.d.ts +16 -16
- package/dist/views/admin/onboard-submission/forms/TyroSubmission.vue.d.ts +81 -0
- package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +44 -34
- package/dist/views/admin/payout-account/tabs/PaymentChannel.vue.d.ts +64 -54
- package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +64 -54
- package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +44 -34
- package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +44 -43
- package/dist/views/admin/payout-account/tabs/TokenGateway.vue.d.ts +64 -54
- package/dist/views/admin/payout-account/tabs/gateway/AdyenGateway.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 +4 -4
- 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 +39 -0
- 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/gateway/AdyenGateway.vue.d.ts +4 -4
- package/dist/views/admin/restaurant/tabs/gateway/DigioGateway.vue.d.ts +4 -4
- package/dist/views/admin/restaurant/tabs/gateway/FiuuGateway.vue.d.ts +8 -8
- package/dist/views/admin/restaurant/tabs/gateway/GhlGateway.vue.d.ts +4 -4
- package/dist/views/admin/restaurant/tabs/gateway/GrabGateway.vue.d.ts +4 -4
- package/dist/views/admin/restaurant/tabs/gateway/KsherGateway.vue.d.ts +6 -6
- package/dist/views/admin/restaurant/tabs/gateway/MacauPassGateway.vue.d.ts +4 -4
- package/dist/views/admin/restaurant/tabs/gateway/MaybankGateway.vue.d.ts +6 -6
- package/dist/views/admin/restaurant/tabs/gateway/MonetapayGateway.vue.d.ts +48 -0
- package/dist/views/admin/restaurant/tabs/gateway/RevenueMonsterGateway.vue.d.ts +4 -4
- package/dist/views/admin/restaurant/tabs/gateway/SoftSpaceGateway.vue.d.ts +6 -4
- package/dist/views/admin/settlement/SettlementTable.vue.d.ts +24 -24
- package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +2 -2
- package/dist/views/admin/terminal/tabs/EcrGateway.vue.d.ts +2 -2
- package/dist/views/admin/terminal/tabs/Information.vue.d.ts +2 -2
- package/dist/views/admin/terminal/tabs/QrGateway.vue.d.ts +2 -2
- package/dist/views/admin/terminal/tabs/SettingRequest.vue.d.ts +2 -2
- package/dist/views/admin/terminal/tabs/SoftposGateway.vue.d.ts +4 -4
- package/dist/views/admin/terminal/tabs/ecr/Ghl2Gateway.vue.d.ts +2 -2
- package/dist/views/admin/terminal/tabs/ecr/Ghl3Gateway.vue.d.ts +2 -2
- package/dist/views/admin/terminal/tabs/ecr/GhlGateway.vue.d.ts +2 -2
- package/dist/views/admin/terminal/tabs/ecr/GlobalPaymentsGateway.vue.d.ts +2 -2
- package/dist/views/admin/terminal/tabs/ecr/HlbbGateway.vue.d.ts +2 -2
- package/dist/views/admin/terminal/tabs/ecr/KBankGateway.vue.d.ts +2 -2
- package/dist/views/admin/terminal/tabs/ecr/Maybank2Gateway.vue.d.ts +2 -2
- package/dist/views/admin/terminal/tabs/ecr/Maybank3Gateway.vue.d.ts +2 -2
- package/dist/views/admin/terminal/tabs/ecr/MaybankGateway.vue.d.ts +2 -2
- package/dist/views/admin/terminal/tabs/ecr/NetsGateway.vue.d.ts +2 -2
- package/dist/views/admin/terminal/tabs/ecr/OmaGateway.vue.d.ts +2 -2
- package/dist/views/admin/terminal/tabs/ecr/TerminalGateway.vue.d.ts +2 -2
- package/dist/views/admin/terminal/tabs/qr/PromptPayGateway.vue.d.ts +2 -2
- package/dist/views/admin/terminal/tabs/settings/KioskMode.vue.d.ts +2 -2
- package/dist/views/admin/terminal/tabs/useTyroSoftposGateway.d.ts +12 -0
- package/dist/views/onboard-submission/tyro-submission-polling.d.ts +27 -0
- package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +88 -68
- package/dist/views/settlement/FiuuSettlementTable.vue.d.ts +84 -84
- package/dist/views/settlement/FiuuSettlementTransactions.vue.d.ts +42 -42
- package/dist/views/settlement/SettlementTable.vue.d.ts +24 -24
- package/dist/views/transaction/TransactionTable.vue.d.ts +2 -2
- package/package.json +4 -3
- package/dist/DocumentViewer.vue_vue_type_script_setup_true_lang-KebV8Zws.js +0 -94
- package/dist/Forbidden-1aaq-Ilm.js +0 -38
- package/dist/OnboardSubmission-DvWwQFy6.js +0 -222
- package/dist/PayoutAccountSetting-DzzABgzs.js +0 -1765
- package/dist/Transaction-D-Z3zRd7.js +0 -517
- package/dist/TransactionOld-BXjA15Dd.js +0 -314
- package/dist/app-CEy5Ojtg.js +0 -7661
- package/dist/index-XTdSN6CV.js +0 -60
- package/dist/softspace-D9cEyOQT.js +0 -4
- package/dist/views/admin/payout-account/tabs/SettlementEditDialog.vue.d.ts +0 -56
|
@@ -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-CHl9dRwW.js";
|
|
3
3
|
import "@feedmepos/ui-library";
|
|
4
4
|
const k = ["src"], M = /* @__PURE__ */ i({
|
|
5
5
|
__name: "Gateway",
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { defineComponent as D, ref as k, onMounted as P, resolveComponent as d, openBlock as v, createBlock as B, withCtx as F, createVNode as c, unref as g, createElementVNode as _, createElementBlock as Y, Fragment as U, renderList as K, watch as M, isRef as R, h as S } from "vue";
|
|
2
|
-
import { t as V } from "./index-
|
|
2
|
+
import { t as V } from "./index-BUvHMo4V.js";
|
|
3
3
|
import { h as b } from "./moment-h96o7c8I.js";
|
|
4
|
-
import "./index-
|
|
4
|
+
import "./index-DGyTvHj8.js";
|
|
5
5
|
import { d as A } from "./dinero-CIVmXLL-.js";
|
|
6
|
-
import { u as q } from "./index-
|
|
6
|
+
import { u as q } from "./index-Dic547vC.js";
|
|
7
7
|
import { _ as O } from "./AdminLayout.vue_vue_type_script_setup_true_lang-0Mf1MhAL.js";
|
|
8
8
|
import { _ as N } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
|
|
9
9
|
import { useDialogChild as $, useSnackbar as x, useDialog as E } from "@feedmepos/ui-library";
|
|
10
|
-
import { _ as j } from "./DateRangePicker.vue_vue_type_script_setup_true_lang-
|
|
11
|
-
import { _ as z } from "./index.vue_vue_type_script_setup_true_lang-
|
|
10
|
+
import { _ as j } from "./DateRangePicker.vue_vue_type_script_setup_true_lang-BNVnvrVY.js";
|
|
11
|
+
import { _ as z } from "./index.vue_vue_type_script_setup_true_lang-Cj6xgRBA.js";
|
|
12
12
|
import { _ as T } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-DrBLdVka.js";
|
|
13
|
-
import { r as G } from "./index-
|
|
14
|
-
import { z as C, a as I, s as H } from "./validator-
|
|
13
|
+
import { r as G } from "./index-Bz9betjL.js";
|
|
14
|
+
import { z as C, a as I, s as H } from "./validator-DzjyJnvv.js";
|
|
15
15
|
import { u as w } from "./error-K1CakhA9.js";
|
|
16
16
|
function L(a) {
|
|
17
17
|
return {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as M, useModel as _, ref as g, computed as h, watch as f, resolveComponent as D, openBlock as V, createBlock as k, unref as n, withCtx as b, createVNode as C } from "vue";
|
|
2
|
-
import { z as F, a as i } from "./validator-
|
|
2
|
+
import { z as F, a as i } from "./validator-DzjyJnvv.js";
|
|
3
3
|
import { h as d } from "./moment-h96o7c8I.js";
|
|
4
4
|
const z = /* @__PURE__ */ M({
|
|
5
5
|
__name: "DateRangePicker",
|
package/dist/{no-data-BRmo6XOO.js → DocumentViewer.vue_vue_type_script_setup_true_lang-0t7PrKly.js}
RENAMED
|
@@ -1,4 +1,93 @@
|
|
|
1
|
-
const C = "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";
|
|
1
|
+
import { defineComponent as A, computed as d, ref as c, resolveComponent as p, openBlock as C, createElementBlock as l, renderSlot as u, createElementVNode as o, createVNode as y, createCommentVNode as L, createBlock as x } from "vue";
|
|
2
|
+
import { d as m } from "./index-BXl4SMxF.js";
|
|
3
|
+
const M = "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", Z = { key: 0 }, D = ["src"], V = { key: 1 }, k = ["src"], b = {
|
|
4
|
+
key: 2,
|
|
5
|
+
class: "max-w-[340px] bg-white border border-gray-200 rounded-md overflow-hidden shadow-sm flex flex-col font-sans"
|
|
6
|
+
}, P = { class: "relative aspect-video w-full bg-gray-50 flex items-center justify-center overflow-hidden" }, B = { key: 0 }, E = {
|
|
7
|
+
key: 0,
|
|
8
|
+
class: "flex flex-col items-center gap-3 p-4"
|
|
9
|
+
}, I = {
|
|
10
|
+
key: 0,
|
|
11
|
+
class: "text-xs text-red-500"
|
|
12
|
+
}, N = {
|
|
13
|
+
key: 1,
|
|
14
|
+
class: "flex flex-col items-center gap-2 py-8"
|
|
15
|
+
}, S = /* @__PURE__ */ A({
|
|
16
|
+
__name: "DocumentViewer",
|
|
17
|
+
props: {
|
|
18
|
+
document: {},
|
|
19
|
+
restaurantId: {},
|
|
20
|
+
businessId: {}
|
|
21
|
+
},
|
|
22
|
+
setup(h) {
|
|
23
|
+
const t = h, f = d(() => {
|
|
24
|
+
var e;
|
|
25
|
+
return (e = t.document) == null ? void 0 : e.startsWith("data:");
|
|
26
|
+
}), i = c(!1), s = c(!1), n = c(!1), a = c(""), _ = d(() => !!t.document), v = async () => {
|
|
27
|
+
if (t.document) {
|
|
28
|
+
s.value = !0;
|
|
29
|
+
try {
|
|
30
|
+
let e = "";
|
|
31
|
+
t.businessId ? e = await m.adminView(
|
|
32
|
+
t.document,
|
|
33
|
+
t.businessId,
|
|
34
|
+
t.restaurantId
|
|
35
|
+
) : e = await m.view(t.document, t.restaurantId), a.value = e, i.value = !0;
|
|
36
|
+
} catch {
|
|
37
|
+
n.value = !0;
|
|
38
|
+
} finally {
|
|
39
|
+
s.value = !1;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
return (e, r) => {
|
|
44
|
+
const g = p("FmButton"), w = p("FmCircularProgress");
|
|
45
|
+
return f.value ? (C(), l("div", Z, [
|
|
46
|
+
u(e.$slots, "default", {
|
|
47
|
+
src: e.$props.document ?? ""
|
|
48
|
+
}, () => [
|
|
49
|
+
o("img", {
|
|
50
|
+
src: e.$props.document ?? "",
|
|
51
|
+
alt: "Document"
|
|
52
|
+
}, null, 8, D)
|
|
53
|
+
])
|
|
54
|
+
])) : i.value ? (C(), l("div", V, [
|
|
55
|
+
u(e.$slots, "default", { src: a.value }, () => [
|
|
56
|
+
o("img", {
|
|
57
|
+
src: a.value,
|
|
58
|
+
alt: "Document"
|
|
59
|
+
}, null, 8, k)
|
|
60
|
+
])
|
|
61
|
+
])) : (C(), l("div", b, [
|
|
62
|
+
o("div", P, [
|
|
63
|
+
_.value ? (C(), l("div", B, [
|
|
64
|
+
s.value ? (C(), x(w, {
|
|
65
|
+
key: 1,
|
|
66
|
+
size: "xl",
|
|
67
|
+
color: "primary"
|
|
68
|
+
})) : (C(), l("div", E, [
|
|
69
|
+
y(g, {
|
|
70
|
+
onClick: v,
|
|
71
|
+
label: "View Document",
|
|
72
|
+
"prepend-icon": "manage_accounts",
|
|
73
|
+
size: "md",
|
|
74
|
+
variant: "primary"
|
|
75
|
+
}),
|
|
76
|
+
n.value ? (C(), l("span", I, " Oops, something went wrong. Please try again. ")) : L("", !0)
|
|
77
|
+
]))
|
|
78
|
+
])) : (C(), l("div", N, [...r[0] || (r[0] = [
|
|
79
|
+
o("img", {
|
|
80
|
+
src: M,
|
|
81
|
+
alt: "No document",
|
|
82
|
+
class: "w-128 h-80 object-contain opacity-80"
|
|
83
|
+
}, null, -1),
|
|
84
|
+
o("span", { class: "text-xs text-gray-400 mt-2" }, "No document available.", -1)
|
|
85
|
+
])]))
|
|
86
|
+
])
|
|
87
|
+
]));
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
});
|
|
2
91
|
export {
|
|
3
|
-
|
|
92
|
+
S as _
|
|
4
93
|
};
|