@feedmepos/mf-settings 0.0.51 → 0.0.52
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/{App-b3a895b0.js → App-22950de9.js} +51 -51
- package/dist/{Business-189e288f.js → Business-c9b59843.js} +2412 -2412
- package/dist/{CreateBusiness-2a4f54d4.js → CreateBusiness-0850150d.js} +11 -11
- package/dist/{FoodCourt-561cd7e3.js → FoodCourt-ad9640e4.js} +60 -61
- package/dist/{actionButton-cc6bcf01.js → FormSection.vue_vue_type_script_setup_true_lang-6aab82f2.js} +25 -25
- package/dist/{ResponsiveFabButton.vue_vue_type_script_setup_true_lang-977372d5.js → RestaurantSelector.vue_vue_type_script_setup_true_lang-e9712a4d.js} +63 -63
- package/dist/{Tagging-5ba0d4ec.js → Tagging-55538d2b.js} +6402 -6404
- package/dist/{app-6a6102be.js → app-b66ea7e1.js} +357 -39
- package/dist/app.js +2 -2
- package/dist/apps/mf-settings/src/api/foodCourt.d.ts +1 -1
- package/dist/apps/mf-settings/src/api/restaurant.d.ts +2 -2
- package/dist/apps/mf-settings/src/app.d.ts +1 -0
- package/dist/apps/mf-settings/src/components/business/RestaurantForm.vue.d.ts +1 -1
- package/dist/apps/mf-settings/src/components/foodcourt/foodCourt.d.ts +1 -1
- package/dist/apps/mf-settings/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{business-9a4e5bd7.js → business-906742ba.js} +1 -1
- package/dist/{loading-84215dce.js → index-72d7bc88.js} +358 -359
- package/dist/{index.esm2017-c60b1ce5.js → map-695afd6f.js} +82 -82
- package/dist/{createForm-681e977a.js → object-8ac0c0d8.js} +18 -19
- package/package.json +3 -3
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { unref as n, defineComponent as M, openBlock as g, createElementBlock as y, ref as f, computed as L, watch as G, watchEffect as P, onBeforeUnmount as W, resolveComponent as h, createVNode as v, withCtx as z, createElementVNode as s, toDisplayString as b, Fragment as R, renderList as Z, normalizeClass as q, createBlock as Q, createCommentVNode as Y } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { b as w } from "./business-9a4e5bd7.js";
|
|
2
|
+
import { useRouter as J } from "vue-router";
|
|
3
|
+
import { u as K, F as X } from "./index-72d7bc88.js";
|
|
5
4
|
import "./index-f1e5e565.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
5
|
+
import { useCoreStore as ee, useI18n as te, CountryOptions as se } from "@feedmepos/mf-common";
|
|
6
|
+
import { useSnackbar as ne } from "@feedmepos/ui-library";
|
|
7
|
+
import { _ as oe, r as le } from "./rules-c9fa22f8.js";
|
|
8
|
+
import { b as w } from "./business-906742ba.js";
|
|
9
9
|
import "pinia";
|
|
10
10
|
function S(r) {
|
|
11
11
|
return typeof r == "function" ? r() : n(r);
|
|
@@ -68,12 +68,12 @@ const ce = `<svg width="388" height="388" viewBox="0 0 388 388" fill="none" xmln
|
|
|
68
68
|
}, null, 8, ue));
|
|
69
69
|
}
|
|
70
70
|
});
|
|
71
|
-
const me = /* @__PURE__ */
|
|
71
|
+
const me = /* @__PURE__ */ oe(de, [["__scopeId", "data-v-c0191534"]]), pe = { class: "flex flex-col justify-center items-center bg-fm-color-neutral-white py-24" }, _e = { class: "space-y-32" }, fe = { class: "space-y-8" }, ve = { class: "fm-typo-en-title-lg-600" }, ge = { class: "space-y-8" }, he = { class: "fm-typo-en-title-sm-600" }, be = { class: "flex gap-16" }, ye = ["onClick"], Ce = { class: "space-y-8" }, we = { class: "m-8 w-[33px]" }, xe = ["innerHTML"], Fe = { class: "fm-typo-en-body-sm-600" }, Ve = { class: "space-y-16" }, Ie = /* @__PURE__ */ M({
|
|
72
72
|
__name: "CreateBusiness",
|
|
73
73
|
setup(r) {
|
|
74
74
|
var V;
|
|
75
|
-
|
|
76
|
-
const e =
|
|
75
|
+
J();
|
|
76
|
+
const e = ee(), o = f(""), t = f(""), c = f(""), d = f(!0), x = ne(), _ = K(x), { t: l } = te(), i = f(((V = e.currentCountry.value) == null ? void 0 : V.toUpperCase()) || "MY"), p = f([]), C = L(() => se.filter((u) => e.enabledCountries.value.includes(u.code)));
|
|
77
77
|
G(
|
|
78
78
|
i,
|
|
79
79
|
(u) => {
|
|
@@ -119,7 +119,7 @@ const me = /* @__PURE__ */ ee(de, [["__scopeId", "data-v-c0191534"]]), pe = { cl
|
|
|
119
119
|
}
|
|
120
120
|
async function N() {
|
|
121
121
|
await e.signOut(), setTimeout(() => {
|
|
122
|
-
window.location.href = `${
|
|
122
|
+
window.location.href = `${X.baseUrl}/login?fm_redirect=${encodeURIComponent(window.location.protocol + "//" + window.location.host)}`;
|
|
123
123
|
}, 500);
|
|
124
124
|
}
|
|
125
125
|
return P(() => {
|
|
@@ -151,7 +151,7 @@ const me = /* @__PURE__ */ ee(de, [["__scopeId", "data-v-c0191534"]]), pe = { cl
|
|
|
151
151
|
v(k, {
|
|
152
152
|
label: n(l)("settings.create_business.business_name.label"),
|
|
153
153
|
"label-mark": "required",
|
|
154
|
-
rules: [n(
|
|
154
|
+
rules: [n(le)],
|
|
155
155
|
modelValue: o.value,
|
|
156
156
|
"onUpdate:modelValue": m[0] || (m[0] = (a) => o.value = a)
|
|
157
157
|
}, null, 8, ["label", "rules", "modelValue"])
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
var Yg = Object.defineProperty;
|
|
2
2
|
var Kg = (u, l, c) => l in u ? Yg(u, l, { enumerable: !0, configurable: !0, writable: !0, value: c }) : u[l] = c;
|
|
3
3
|
var Hi = (u, l, c) => (Kg(u, typeof l != "symbol" ? l + "" : l, c), c);
|
|
4
|
-
import { defineComponent as hl, ref as Rt, resolveComponent as wt, openBlock as Dt, createElementBlock as Kn, Fragment as Vr, renderSlot as Gf, createVNode as gt, unref as zt, withCtx as Jt, createElementVNode as He, computed as Rn, watch as Vf, withKeys as Hg, toDisplayString as un, renderList as nl, createBlock as Ur, createCommentVNode as rl,
|
|
5
|
-
import {
|
|
4
|
+
import { h as Su, defineComponent as hl, ref as Rt, resolveComponent as wt, openBlock as Dt, createElementBlock as Kn, Fragment as Vr, renderSlot as Gf, createVNode as gt, unref as zt, withCtx as Jt, createElementVNode as He, computed as Rn, watch as Vf, withKeys as Hg, toDisplayString as un, renderList as nl, createBlock as Ur, createCommentVNode as rl, getCurrentInstance as Wg, withModifiers as Jg } from "vue";
|
|
5
|
+
import { useCoreStore as ml, useI18n as Sc } from "@feedmepos/mf-common";
|
|
6
|
+
import { l as q, c as V, d as ze, a as Oc, e as Ei, b as Yf } from "./index-f1e5e565.js";
|
|
6
7
|
import { c as Qg, a as zd } from "./index-1eb3cc0a.js";
|
|
7
|
-
import { d as Xg, _ as hc, u as Zg, a as xg } from "./
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { c as Hf, _ as np, a as C$ } from "./createForm-681e977a.js";
|
|
8
|
+
import { d as Xg, _ as hc, u as Zg, a as xg } from "./RestaurantSelector.vue_vue_type_script_setup_true_lang-e9712a4d.js";
|
|
9
|
+
import { components as so, useSnackbar as gl, useDialogChild as ep, useDialog as Kf, useBreakpoints as tp } from "@feedmepos/ui-library";
|
|
10
|
+
import { c as Hf, _ as np, a as C$ } from "./object-8ac0c0d8.js";
|
|
11
|
+
import { g as Gn, r as la, b as Fd, u as Tc } from "./index-72d7bc88.js";
|
|
12
12
|
import "pinia";
|
|
13
13
|
var wd = {}, fn = {}, pl = {};
|
|
14
14
|
Object.defineProperty(pl, "__esModule", { value: !0 });
|
|
@@ -1158,7 +1158,7 @@ ea.F_ADJUSTMENT_CAUSE = Op.z.enum([
|
|
|
1158
1158
|
var mn = {}, zn = {};
|
|
1159
1159
|
Object.defineProperty(zn, "__esModule", { value: !0 });
|
|
1160
1160
|
zn.F_CHECKOUT_TYPE = zn.F_PAYMENT_ISSUER = zn.F_PAYMENT_NAME = zn.F_ONLINE_PAYMENT_CHANNEL_TYPE = void 0;
|
|
1161
|
-
const Dl = q, U$ =
|
|
1161
|
+
const Dl = q, U$ = Oc;
|
|
1162
1162
|
zn.F_ONLINE_PAYMENT_CHANNEL_TYPE = Dl.z.enum([
|
|
1163
1163
|
"Internet Banking",
|
|
1164
1164
|
"Credit Card",
|
|
@@ -5316,7 +5316,7 @@ var Wc = {};
|
|
|
5316
5316
|
var Jc = {}, jn = {};
|
|
5317
5317
|
Object.defineProperty(jn, "__esModule", { value: !0 });
|
|
5318
5318
|
jn.RM_PAYMENT_TRANSACTION_ITEM_STATUS = jn.RM_PAYMENY_METHOD = jn.RM_REGION = jn.RM_CURRENCY_TYPE = void 0;
|
|
5319
|
-
const es = q, Qc =
|
|
5319
|
+
const es = q, Qc = Oc;
|
|
5320
5320
|
jn.RM_CURRENCY_TYPE = es.z.nativeEnum(Qc.RM.CurrencyType);
|
|
5321
5321
|
jn.RM_REGION = es.z.enum([
|
|
5322
5322
|
"MALAYSIA",
|
|
@@ -7839,7 +7839,7 @@ Qn.F_PAYMENT_TRANSACTION_GROUP = gs.z.enum([
|
|
|
7839
7839
|
var dm = {}, Xn = {};
|
|
7840
7840
|
Object.defineProperty(Xn, "__esModule", { value: !0 });
|
|
7841
7841
|
Xn.RMPaymentTransactionItemStatus = Xn.RMMethod = Xn.RMRegion = Xn.RMCurrencyType = void 0;
|
|
7842
|
-
const ps = q, l$ =
|
|
7842
|
+
const ps = q, l$ = Oc;
|
|
7843
7843
|
Xn.RMCurrencyType = ps.z.nativeEnum(l$.RM.CurrencyType);
|
|
7844
7844
|
Xn.RMRegion = ps.z.enum(["MALAYSIA", "CHINA"]);
|
|
7845
7845
|
Xn.RMMethod = ps.z.nativeEnum(l$.RM.Method);
|
|
@@ -46879,6 +46879,44 @@ function Lg() {
|
|
|
46879
46879
|
}(wd)), wd;
|
|
46880
46880
|
}
|
|
46881
46881
|
var tt = Lg();
|
|
46882
|
+
function Gg(u) {
|
|
46883
|
+
return Su(
|
|
46884
|
+
so.FmMenu,
|
|
46885
|
+
{
|
|
46886
|
+
trigger: "click",
|
|
46887
|
+
stopClickPropagation: !0,
|
|
46888
|
+
disabled: (u == null ? void 0 : u.length) === 0,
|
|
46889
|
+
zIndex: 200
|
|
46890
|
+
},
|
|
46891
|
+
{
|
|
46892
|
+
"menu-button": () => Su(so.FmButton, {
|
|
46893
|
+
type: "button",
|
|
46894
|
+
variant: "tertiary",
|
|
46895
|
+
icon: "more_vert",
|
|
46896
|
+
iconColor: "#000000",
|
|
46897
|
+
size: "md",
|
|
46898
|
+
disabled: (u == null ? void 0 : u.length) === 0
|
|
46899
|
+
}),
|
|
46900
|
+
default: () => u.map(({ label: l, color: c, onClick: m }) => Su(
|
|
46901
|
+
so.FmMenuItem,
|
|
46902
|
+
{
|
|
46903
|
+
onClick() {
|
|
46904
|
+
m == null || m();
|
|
46905
|
+
}
|
|
46906
|
+
},
|
|
46907
|
+
{
|
|
46908
|
+
label: () => Su(
|
|
46909
|
+
"span",
|
|
46910
|
+
{
|
|
46911
|
+
class: c
|
|
46912
|
+
},
|
|
46913
|
+
l
|
|
46914
|
+
)
|
|
46915
|
+
}
|
|
46916
|
+
))
|
|
46917
|
+
}
|
|
46918
|
+
);
|
|
46919
|
+
}
|
|
46882
46920
|
function Wz(u, l = []) {
|
|
46883
46921
|
const c = JSON.parse(JSON.stringify(u));
|
|
46884
46922
|
return l.length > 0 && l.forEach((m) => {
|
|
@@ -46888,7 +46926,7 @@ function Wz(u, l = []) {
|
|
|
46888
46926
|
function qf(u, l) {
|
|
46889
46927
|
return l === void 0 ? u : typeof l == "function" ? l(u) : `${u[l]}`;
|
|
46890
46928
|
}
|
|
46891
|
-
function
|
|
46929
|
+
function Vg(u, l) {
|
|
46892
46930
|
return Wz(u).sort((m, y) => {
|
|
46893
46931
|
let _ = qf(m, l == null ? void 0 : l.selector), z = qf(y, l == null ? void 0 : l.selector);
|
|
46894
46932
|
if (l != null && l.descending) {
|
|
@@ -46948,7 +46986,7 @@ const _r = {
|
|
|
46948
46986
|
},
|
|
46949
46987
|
setup(u, { expose: l }) {
|
|
46950
46988
|
var X;
|
|
46951
|
-
const c = u, m =
|
|
46989
|
+
const c = u, m = ml(), y = gl(), _ = Tc(y), z = Rt(""), w = Rt(((X = m.currentRestaurant.value) == null ? void 0 : X._id) ?? ""), K = Rt(!1), ie = Rt(!1), ue = (L) => {
|
|
46952
46990
|
ie.value = !ie.value;
|
|
46953
46991
|
}, oe = async () => {
|
|
46954
46992
|
await _.minor(
|
|
@@ -47133,7 +47171,7 @@ const Zz = { class: "space-y-24" }, xz = { class: "flex gap-8" }, eF = { class:
|
|
|
47133
47171
|
}
|
|
47134
47172
|
},
|
|
47135
47173
|
setup(u) {
|
|
47136
|
-
const { t: l } =
|
|
47174
|
+
const { t: l } = Sc(), { emitData: c } = ep(), m = u, y = ml(), _ = gl(), z = Rn(() => {
|
|
47137
47175
|
var M;
|
|
47138
47176
|
return (M = y.currentRestaurant.value) == null ? void 0 : M._id;
|
|
47139
47177
|
});
|
|
@@ -47265,53 +47303,14 @@ const Zz = { class: "space-y-24" }, xz = { class: "flex gap-8" }, eF = { class:
|
|
|
47265
47303
|
], 64);
|
|
47266
47304
|
};
|
|
47267
47305
|
}
|
|
47268
|
-
})
|
|
47269
|
-
function Vg(u) {
|
|
47270
|
-
return Su(
|
|
47271
|
-
so.FmMenu,
|
|
47272
|
-
{
|
|
47273
|
-
trigger: "click",
|
|
47274
|
-
stopClickPropagation: !0,
|
|
47275
|
-
disabled: (u == null ? void 0 : u.length) === 0,
|
|
47276
|
-
zIndex: 200
|
|
47277
|
-
},
|
|
47278
|
-
{
|
|
47279
|
-
"menu-button": () => Su(so.FmButton, {
|
|
47280
|
-
type: "button",
|
|
47281
|
-
variant: "tertiary",
|
|
47282
|
-
icon: "more_vert",
|
|
47283
|
-
iconColor: "#000000",
|
|
47284
|
-
size: "md",
|
|
47285
|
-
disabled: (u == null ? void 0 : u.length) === 0
|
|
47286
|
-
}),
|
|
47287
|
-
default: () => u.map(({ label: l, color: c, onClick: m }) => Su(
|
|
47288
|
-
so.FmMenuItem,
|
|
47289
|
-
{
|
|
47290
|
-
onClick() {
|
|
47291
|
-
m == null || m();
|
|
47292
|
-
}
|
|
47293
|
-
},
|
|
47294
|
-
{
|
|
47295
|
-
label: () => Su(
|
|
47296
|
-
"span",
|
|
47297
|
-
{
|
|
47298
|
-
class: c
|
|
47299
|
-
},
|
|
47300
|
-
l
|
|
47301
|
-
)
|
|
47302
|
-
}
|
|
47303
|
-
))
|
|
47304
|
-
}
|
|
47305
|
-
);
|
|
47306
|
-
}
|
|
47307
|
-
const cF = { class: "fm-typo-en-title-md-600" }, $F = { class: "pt-8 space-y-24" }, fF = { class: "space-y-8" }, hF = { class: "space-y-12" }, mF = { class: "flex justify-between items-center" }, gF = { class: "fm-typo-en-body-lg-600" }, pF = /* @__PURE__ */ hl({
|
|
47306
|
+
}), cF = { class: "fm-typo-en-title-md-600" }, $F = { class: "pt-8 space-y-24" }, fF = { class: "space-y-8" }, hF = { class: "space-y-12" }, mF = { class: "flex justify-between items-center" }, gF = { class: "fm-typo-en-body-lg-600" }, pF = /* @__PURE__ */ hl({
|
|
47308
47307
|
__name: "EditFoodCourt",
|
|
47309
47308
|
props: {
|
|
47310
47309
|
initialValue: {},
|
|
47311
47310
|
onSuccess: { type: Function }
|
|
47312
47311
|
},
|
|
47313
47312
|
setup(u, { expose: l }) {
|
|
47314
|
-
const c = u, m =
|
|
47313
|
+
const c = u, m = ml(), y = gl(), _ = Tc(y), z = Kf(), { t: w } = Sc(), K = Rn(() => {
|
|
47315
47314
|
var C;
|
|
47316
47315
|
return (C = m.currentRestaurant.value) == null ? void 0 : C._id;
|
|
47317
47316
|
}), ie = Rn(() => K.value === L.value.ownerId), ue = Rn(() => m.restaurants.value.filter((C) => C.managable)), oe = Rn(() => ue.value.some((C) => C._id === L.value.ownerId)), X = Rt(c.initialValue.name), L = Rt(Hf(c.initialValue)), B = Rn(() => {
|
|
@@ -47337,7 +47336,7 @@ const cF = { class: "fm-typo-en-title-md-600" }, $F = { class: "pt-8 space-y-24"
|
|
|
47337
47336
|
}))
|
|
47338
47337
|
};
|
|
47339
47338
|
});
|
|
47340
|
-
return
|
|
47339
|
+
return Vg(C, { selector: "name" });
|
|
47341
47340
|
});
|
|
47342
47341
|
async function k(C, { newStatus: Y, label: ee }) {
|
|
47343
47342
|
const ae = L.value.members.find((de) => de._id === C);
|
|
@@ -47452,7 +47451,7 @@ const cF = { class: "fm-typo-en-title-md-600" }, $F = { class: "pt-8 space-y-24"
|
|
|
47452
47451
|
color: ae.newStatus === tt.F_FOOD_COURT_STATUS.Enum.ACTIVE ? void 0 : "text-fm-color-typo-error",
|
|
47453
47452
|
onClick: () => k(Y.id, ae)
|
|
47454
47453
|
}));
|
|
47455
|
-
return
|
|
47454
|
+
return Gg(ee);
|
|
47456
47455
|
}
|
|
47457
47456
|
}
|
|
47458
47457
|
], H = Rt(!1), M = Rt(!1), I = (C) => {
|
|
@@ -47542,10 +47541,10 @@ const cF = { class: "fm-typo-en-title-md-600" }, $F = { class: "pt-8 space-y-24"
|
|
|
47542
47541
|
}, _F = { class: "flex justify-between" }, vF = { class: "py-8 px-16 space-y-8" }, EF = { class: "flex-1 pb-64 overflow-auto divide-y divide-fm-color-neutral-gray-100" }, zF = ["onClick"], FF = { class: "flex justify-between items-center" }, wF = { class: "fm-typo-en-body-lg-600" }, SF = { class: "flex gap-8" }, OF = { class: "text-fm-color-typo-secondary" }, TF = { class: "text-fm-color-typo-secondary" }, AF = { class: "text-fm-color-typo-secondary" }, UF = /* @__PURE__ */ hl({
|
|
47543
47542
|
__name: "FoodCourt",
|
|
47544
47543
|
setup(u) {
|
|
47545
|
-
const { t: l } =
|
|
47544
|
+
const { t: l } = Sc(), c = Rt([]), m = Rt(""), y = Rn(() => c.value.filter((C) => {
|
|
47546
47545
|
var ee;
|
|
47547
47546
|
return `${C.name} ${(ee = C.pf_owner) == null ? void 0 : ee.profile.name} ${C.status}`.toLowerCase().includes(m.value.toLowerCase());
|
|
47548
|
-
})), _ = Kf(), z =
|
|
47547
|
+
})), _ = Kf(), z = gl(), w = Tc(z), K = Rt(""), ie = [
|
|
47549
47548
|
{
|
|
47550
47549
|
header: () => l("settings.food_court.list.columns.name"),
|
|
47551
47550
|
accessorKey: "name"
|
|
@@ -47577,10 +47576,10 @@ const cF = { class: "fm-typo-en-title-md-600" }, $F = { class: "pt-8 space-y-24"
|
|
|
47577
47576
|
size: 40,
|
|
47578
47577
|
cell: (C) => {
|
|
47579
47578
|
const Y = L(C.row.original);
|
|
47580
|
-
return
|
|
47579
|
+
return Gg(Y);
|
|
47581
47580
|
}
|
|
47582
47581
|
}
|
|
47583
|
-
], ue =
|
|
47582
|
+
], ue = ml(), oe = Rt(!1);
|
|
47584
47583
|
function X(C) {
|
|
47585
47584
|
const Y = ue.restaurants.value.find((ee) => ee._id === C);
|
|
47586
47585
|
ue.changeRestaurant(Y);
|
|
@@ -47619,7 +47618,7 @@ const cF = { class: "fm-typo-en-title-md-600" }, $F = { class: "pt-8 space-y-24"
|
|
|
47619
47618
|
oe.value = !0;
|
|
47620
47619
|
try {
|
|
47621
47620
|
const Y = await _r.read(ue.currentRestaurant.value._id);
|
|
47622
|
-
c.value =
|
|
47621
|
+
c.value = Vg(Y, { selector: "name" }), K.value = ((C = c.value[0]) == null ? void 0 : C._id) || "";
|
|
47623
47622
|
} finally {
|
|
47624
47623
|
oe.value = !1;
|
|
47625
47624
|
}
|
|
@@ -1,5 +1,20 @@
|
|
|
1
|
-
import { defineComponent as p, openBlock as t, createElementBlock as o, normalizeClass as m, renderSlot as l, createElementVNode as
|
|
1
|
+
import { h as r, withModifiers as u, defineComponent as p, openBlock as t, createElementBlock as o, normalizeClass as m, renderSlot as l, createElementVNode as i, toDisplayString as a, createCommentVNode as c, createVNode as d, withCtx as f } from "vue";
|
|
2
2
|
import { components as h } from "@feedmepos/ui-library";
|
|
3
|
+
function w(s) {
|
|
4
|
+
return r(
|
|
5
|
+
"div",
|
|
6
|
+
{
|
|
7
|
+
class: "flex justify-end"
|
|
8
|
+
},
|
|
9
|
+
s.map(({ name: e, onClick: n }) => r(h.FmButton, {
|
|
10
|
+
icon: e,
|
|
11
|
+
outline: !0,
|
|
12
|
+
variant: "tertiary",
|
|
13
|
+
iconColor: "neutral-gray-400",
|
|
14
|
+
onClick: u(n, ["stop", "prevent"])
|
|
15
|
+
}))
|
|
16
|
+
);
|
|
17
|
+
}
|
|
3
18
|
const y = /* @__PURE__ */ p({
|
|
4
19
|
__name: "FormColumn",
|
|
5
20
|
props: {
|
|
@@ -18,7 +33,7 @@ const y = /* @__PURE__ */ p({
|
|
|
18
33
|
}, b = { class: "space-y-4" }, k = { class: "fm-typo-en-title-sm-600" }, C = {
|
|
19
34
|
key: 0,
|
|
20
35
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
21
|
-
},
|
|
36
|
+
}, $ = /* @__PURE__ */ p({
|
|
22
37
|
__name: "FormSection",
|
|
23
38
|
props: {
|
|
24
39
|
title: {},
|
|
@@ -30,14 +45,14 @@ const y = /* @__PURE__ */ p({
|
|
|
30
45
|
class: m(["flex flex-col space-y-16", { "min-h-0": e.shrinkable }])
|
|
31
46
|
}, [
|
|
32
47
|
e.title ? (t(), o("div", _, [
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
e.subTitle ? (t(), o("p", C,
|
|
48
|
+
i("div", b, [
|
|
49
|
+
i("p", k, a(e.title), 1),
|
|
50
|
+
e.subTitle ? (t(), o("p", C, a(e.subTitle), 1)) : c("", !0)
|
|
36
51
|
]),
|
|
37
52
|
l(e.$slots, "append-title")
|
|
38
|
-
])) :
|
|
39
|
-
|
|
40
|
-
default:
|
|
53
|
+
])) : c("", !0),
|
|
54
|
+
d(y, { shrinkable: e.shrinkable }, {
|
|
55
|
+
default: f(() => [
|
|
41
56
|
l(e.$slots, "default")
|
|
42
57
|
]),
|
|
43
58
|
_: 3
|
|
@@ -45,22 +60,7 @@ const y = /* @__PURE__ */ p({
|
|
|
45
60
|
], 2));
|
|
46
61
|
}
|
|
47
62
|
});
|
|
48
|
-
function $(s) {
|
|
49
|
-
return c(
|
|
50
|
-
"div",
|
|
51
|
-
{
|
|
52
|
-
class: "flex justify-end"
|
|
53
|
-
},
|
|
54
|
-
s.map(({ name: e, onClick: n }) => c(h.FmButton, {
|
|
55
|
-
icon: e,
|
|
56
|
-
outline: !0,
|
|
57
|
-
variant: "tertiary",
|
|
58
|
-
iconColor: "neutral-gray-400",
|
|
59
|
-
onClick: f(n, ["stop", "prevent"])
|
|
60
|
-
}))
|
|
61
|
-
);
|
|
62
|
-
}
|
|
63
63
|
export {
|
|
64
|
-
|
|
65
|
-
|
|
64
|
+
$ as _,
|
|
65
|
+
w as c
|
|
66
66
|
};
|
|
@@ -1,12 +1,56 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { defineComponent as K, computed as N, resolveComponent as z, openBlock as j, createBlock as P, normalizeProps as it, mergeProps as G, createElementBlock as X, createVNode as tt, mergeModels as ot, useModel as ut, watchEffect as ct, withCtx as Q, Fragment as lt, renderList as ft } from "vue";
|
|
2
|
+
import { useBreakpoints as dt, useSnackbar as ht } from "@feedmepos/ui-library";
|
|
3
|
+
import { c as mt, g as $t } from "./index-f1e5e565.js";
|
|
4
|
+
import { useCoreStore as pt } from "@feedmepos/mf-common";
|
|
5
|
+
const vt = {
|
|
6
|
+
key: 1,
|
|
7
|
+
class: "z-10 fixed bottom-72 right-16"
|
|
8
|
+
}, Dt = /* @__PURE__ */ K({
|
|
9
|
+
__name: "ResponsiveFabButton",
|
|
10
|
+
props: {
|
|
11
|
+
variant: {},
|
|
12
|
+
label: {},
|
|
13
|
+
icon: {},
|
|
14
|
+
size: {},
|
|
15
|
+
disabled: { type: Boolean },
|
|
16
|
+
iconColor: {},
|
|
17
|
+
borderColor: {},
|
|
18
|
+
textColor: {},
|
|
19
|
+
bgColor: {},
|
|
20
|
+
type: {},
|
|
21
|
+
iconPosition: {},
|
|
22
|
+
prependIcon: {},
|
|
23
|
+
appendIcon: {},
|
|
24
|
+
loading: { type: Boolean },
|
|
25
|
+
disableIconStatus: { type: Boolean },
|
|
26
|
+
overwriteIconOutline: {}
|
|
27
|
+
},
|
|
28
|
+
setup(S) {
|
|
29
|
+
const M = S, v = N(() => M.variant === "primary" || !M.variant ? "fab" : M.variant), y = dt(), D = N(() => y.breakpoints.value.xs);
|
|
30
|
+
return (g, l) => {
|
|
31
|
+
const m = z("FmButton");
|
|
32
|
+
return D.value ? (j(), X("div", vt, [
|
|
33
|
+
tt(m, G(M, { variant: v.value }), null, 16, ["variant"])
|
|
34
|
+
])) : (j(), P(m, it(G({ key: 0 }, M)), null, 16));
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
function St() {
|
|
39
|
+
const S = ht();
|
|
40
|
+
return { copyTextToClipboard: async (v, y = "Copied") => {
|
|
41
|
+
const D = "text/plain", g = new Blob([v], { type: D }), l = [new ClipboardItem({ [D]: g })];
|
|
42
|
+
await navigator.clipboard.write(l), y && S.open({
|
|
43
|
+
title: y,
|
|
44
|
+
message: v,
|
|
45
|
+
type: "success"
|
|
46
|
+
});
|
|
47
|
+
} };
|
|
48
|
+
}
|
|
5
49
|
var et = { exports: {} };
|
|
6
50
|
(function(S, M) {
|
|
7
51
|
(function(v, y) {
|
|
8
52
|
S.exports = y();
|
|
9
|
-
})(
|
|
53
|
+
})(mt, function() {
|
|
10
54
|
var v = 1e3, y = 6e4, D = 36e5, g = "millisecond", l = "second", m = "minute", w = "hour", _ = "day", T = "week", $ = "month", E = "quarter", k = "year", B = "date", R = "Invalid Date", nt = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, rt = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, at = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(a) {
|
|
11
55
|
var n = ["th", "st", "nd", "rd"], t = a % 100;
|
|
12
56
|
return "[" + a + (n[(t - 20) % 10] || n[t] || n[0]) + "]";
|
|
@@ -292,10 +336,10 @@ var et = { exports: {} };
|
|
|
292
336
|
}, f.en = C[Y], f.Ls = C, f.p = {}, f;
|
|
293
337
|
});
|
|
294
338
|
})(et);
|
|
295
|
-
var
|
|
296
|
-
const
|
|
339
|
+
var yt = et.exports;
|
|
340
|
+
const wt = /* @__PURE__ */ $t(yt), kt = /* @__PURE__ */ K({
|
|
297
341
|
__name: "RestaurantSelector",
|
|
298
|
-
props: /* @__PURE__ */
|
|
342
|
+
props: /* @__PURE__ */ ot({
|
|
299
343
|
managableOnly: { type: Boolean, default: !1 },
|
|
300
344
|
excludeRestaurants: {},
|
|
301
345
|
label: {},
|
|
@@ -306,7 +350,7 @@ const Dt = /* @__PURE__ */ ot(vt), St = /* @__PURE__ */ K({
|
|
|
306
350
|
}),
|
|
307
351
|
emits: ["update:modelValue"],
|
|
308
352
|
setup(S) {
|
|
309
|
-
const M = S, v =
|
|
353
|
+
const M = S, v = ut(S, "modelValue"), { restaurants: y } = pt(), D = N(() => {
|
|
310
354
|
var l;
|
|
311
355
|
return ((l = g.value.find((m) => m.value === v.value)) == null ? void 0 : l.label) || "Select restaurant";
|
|
312
356
|
}), g = N(
|
|
@@ -318,20 +362,20 @@ const Dt = /* @__PURE__ */ ot(vt), St = /* @__PURE__ */ K({
|
|
|
318
362
|
return !((m = M.excludeRestaurants) != null && m.includes(l.value));
|
|
319
363
|
})
|
|
320
364
|
);
|
|
321
|
-
return
|
|
365
|
+
return ct(() => {
|
|
322
366
|
M.autoSelectFirst && g.value.length > 0 && (v.value = g.value[0].value);
|
|
323
367
|
}), (l, m) => {
|
|
324
368
|
const w = z("FmChip"), _ = z("FmMenuItem"), T = z("FmMenu");
|
|
325
369
|
return j(), P(T, null, {
|
|
326
|
-
"menu-button":
|
|
327
|
-
|
|
370
|
+
"menu-button": Q(() => [
|
|
371
|
+
tt(w, {
|
|
328
372
|
icon: "storefront",
|
|
329
373
|
label: D.value,
|
|
330
374
|
"right-icon": "keyboard_arrow_down"
|
|
331
375
|
}, null, 8, ["label"])
|
|
332
376
|
]),
|
|
333
|
-
default:
|
|
334
|
-
(j(!0),
|
|
377
|
+
default: Q(() => [
|
|
378
|
+
(j(!0), X(lt, null, ft(g.value, ($) => (j(), P(_, {
|
|
335
379
|
key: $.value,
|
|
336
380
|
label: $.label,
|
|
337
381
|
onClick: (E) => v.value = $.value
|
|
@@ -342,54 +386,10 @@ const Dt = /* @__PURE__ */ ot(vt), St = /* @__PURE__ */ K({
|
|
|
342
386
|
};
|
|
343
387
|
}
|
|
344
388
|
});
|
|
345
|
-
function wt() {
|
|
346
|
-
const S = $t();
|
|
347
|
-
return { copyTextToClipboard: async (v, y = "Copied") => {
|
|
348
|
-
const D = "text/plain", g = new Blob([v], { type: D }), l = [new ClipboardItem({ [D]: g })];
|
|
349
|
-
await navigator.clipboard.write(l), y && S.open({
|
|
350
|
-
title: y,
|
|
351
|
-
message: v,
|
|
352
|
-
type: "success"
|
|
353
|
-
});
|
|
354
|
-
} };
|
|
355
|
-
}
|
|
356
|
-
const yt = {
|
|
357
|
-
key: 1,
|
|
358
|
-
class: "z-10 fixed bottom-72 right-16"
|
|
359
|
-
}, kt = /* @__PURE__ */ K({
|
|
360
|
-
__name: "ResponsiveFabButton",
|
|
361
|
-
props: {
|
|
362
|
-
variant: {},
|
|
363
|
-
label: {},
|
|
364
|
-
icon: {},
|
|
365
|
-
size: {},
|
|
366
|
-
disabled: { type: Boolean },
|
|
367
|
-
iconColor: {},
|
|
368
|
-
borderColor: {},
|
|
369
|
-
textColor: {},
|
|
370
|
-
bgColor: {},
|
|
371
|
-
type: {},
|
|
372
|
-
iconPosition: {},
|
|
373
|
-
prependIcon: {},
|
|
374
|
-
appendIcon: {},
|
|
375
|
-
loading: { type: Boolean },
|
|
376
|
-
disableIconStatus: { type: Boolean },
|
|
377
|
-
overwriteIconOutline: {}
|
|
378
|
-
},
|
|
379
|
-
setup(S) {
|
|
380
|
-
const M = S, v = N(() => M.variant === "primary" || !M.variant ? "fab" : M.variant), y = pt(), D = N(() => y.breakpoints.value.xs);
|
|
381
|
-
return (g, l) => {
|
|
382
|
-
const m = z("FmButton");
|
|
383
|
-
return D.value ? (j(), tt("div", yt, [
|
|
384
|
-
X(m, Q(M, { variant: v.value }), null, 16, ["variant"])
|
|
385
|
-
])) : (j(), P(m, ht(Q({ key: 0 }, M)), null, 16));
|
|
386
|
-
};
|
|
387
|
-
}
|
|
388
|
-
});
|
|
389
389
|
export {
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
390
|
+
wt as D,
|
|
391
|
+
kt as _,
|
|
392
|
+
Dt as a,
|
|
393
|
+
yt as d,
|
|
394
|
+
St as u
|
|
395
395
|
};
|