@feedmepos/mf-settings 0.0.58 → 0.0.60
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-854f8c7c.js → App-48215cac.js} +3 -3
- package/dist/{Business-ddbd12c2.js → Business-a9258021.js} +751 -732
- package/dist/{CreateBusiness-fa4096f9.js → CreateBusiness-2662327f.js} +12 -11
- package/dist/{FoodCourt-0a28a67f.js → FoodCourt-3d6ab131.js} +13 -11
- package/dist/{LicenseOrder-86aa7996.js → LicenseOrder-bd3d3012.js} +8 -8
- package/dist/ReasonTemplate-4270229d.js +2234 -0
- package/dist/RestaurantSelector.vue_vue_type_script_setup_true_lang-08a69f88.js +88 -0
- package/dist/{Tagging-5fcdf95d.js → Tagging-d8e2293e.js} +8 -7
- package/dist/_plugin-vue_export-helper-dad06003.js +9 -0
- package/dist/{app-59ccea16.js → app-0dbb5982.js} +320 -66
- package/dist/app.js +4 -3
- package/dist/apps/mf-settings/src/View/ReasonTemplate.vue.d.ts +2 -0
- package/dist/apps/mf-settings/src/api/index.d.ts +2 -0
- package/dist/apps/mf-settings/src/app.d.ts +123 -0
- package/dist/apps/mf-settings/src/components/reason/ReasonTemplateForm.vue.d.ts +28 -0
- package/dist/apps/mf-settings/src/store/attributeSettings.d.ts +2 -2
- package/dist/apps/mf-settings/src/types/reasonTemplate.d.ts +9 -0
- package/dist/apps/mf-settings/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{business-ad1b9825.js → business-49b1df80.js} +1 -1
- package/dist/createForm-d3b97d2e.js +50 -0
- package/dist/dayjs.min-2edeb0fb.js +310 -0
- package/dist/index-33f7f731.js +17967 -0
- package/dist/{index-71e4b8aa.js → index-b5909a1d.js} +1035 -1024
- package/dist/{index-759f69a1.js → index-cc4114ab.js} +1721 -1731
- package/dist/object-27ce045b.js +16 -0
- package/dist/rules-2bee6632.js +6 -0
- package/package.json +2 -2
- package/dist/RestaurantSelector.vue_vue_type_script_setup_true_lang-030a97dd.js +0 -395
- package/dist/index-e68421c3.js +0 -18030
- package/dist/object-8ac0c0d8.js +0 -63
- package/dist/rules-c9fa22f8.js +0 -13
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { toRaw as n } from "vue";
|
|
2
|
+
function t(r) {
|
|
3
|
+
return JSON.parse(JSON.stringify(r));
|
|
4
|
+
}
|
|
5
|
+
function u(r) {
|
|
6
|
+
if (typeof structuredClone > "u")
|
|
7
|
+
return t(r);
|
|
8
|
+
try {
|
|
9
|
+
return structuredClone(n(r));
|
|
10
|
+
} catch {
|
|
11
|
+
return t(r);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
u as c
|
|
16
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@feedmepos/mf-settings",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.60",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"@aws-sdk/client-s3": "3.608.0",
|
|
18
18
|
"@casl/ability": "^3.4.0",
|
|
19
19
|
"@feedmepos/auth": "^1.1.14",
|
|
20
|
-
"@feedmepos/core": "2.14.
|
|
20
|
+
"@feedmepos/core": "2.14.12",
|
|
21
21
|
"@feedmepos/core-dart": "^0.2.6",
|
|
22
22
|
"@feedmepos/ordering-model": "0.1.2-OT315-beta-2",
|
|
23
23
|
"@feedmepos/payment-model": "0.0.12",
|
|
@@ -1,395 +0,0 @@
|
|
|
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-759f69a1.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
|
-
}
|
|
49
|
-
var et = { exports: {} };
|
|
50
|
-
(function(S, M) {
|
|
51
|
-
(function(v, y) {
|
|
52
|
-
S.exports = y();
|
|
53
|
-
})(mt, function() {
|
|
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) {
|
|
55
|
-
var n = ["th", "st", "nd", "rd"], t = a % 100;
|
|
56
|
-
return "[" + a + (n[(t - 20) % 10] || n[t] || n[0]) + "]";
|
|
57
|
-
} }, U = function(a, n, t) {
|
|
58
|
-
var r = String(a);
|
|
59
|
-
return !r || r.length >= n ? a : "" + Array(n + 1 - r.length).join(t) + a;
|
|
60
|
-
}, st = { s: U, z: function(a) {
|
|
61
|
-
var n = -a.utcOffset(), t = Math.abs(n), r = Math.floor(t / 60), e = t % 60;
|
|
62
|
-
return (n <= 0 ? "+" : "-") + U(r, 2, "0") + ":" + U(e, 2, "0");
|
|
63
|
-
}, m: function a(n, t) {
|
|
64
|
-
if (n.date() < t.date())
|
|
65
|
-
return -a(t, n);
|
|
66
|
-
var r = 12 * (t.year() - n.year()) + (t.month() - n.month()), e = n.clone().add(r, $), s = t - e < 0, i = n.clone().add(r + (s ? -1 : 1), $);
|
|
67
|
-
return +(-(r + (t - e) / (s ? e - i : i - e)) || 0);
|
|
68
|
-
}, a: function(a) {
|
|
69
|
-
return a < 0 ? Math.ceil(a) || 0 : Math.floor(a);
|
|
70
|
-
}, p: function(a) {
|
|
71
|
-
return { M: $, y: k, w: T, d: _, D: B, h: w, m, s: l, ms: g, Q: E }[a] || String(a || "").toLowerCase().replace(/s$/, "");
|
|
72
|
-
}, u: function(a) {
|
|
73
|
-
return a === void 0;
|
|
74
|
-
} }, Y = "en", C = {};
|
|
75
|
-
C[Y] = at;
|
|
76
|
-
var Z = "$isDayjsObject", J = function(a) {
|
|
77
|
-
return a instanceof A || !(!a || !a[Z]);
|
|
78
|
-
}, W = function a(n, t, r) {
|
|
79
|
-
var e;
|
|
80
|
-
if (!n)
|
|
81
|
-
return Y;
|
|
82
|
-
if (typeof n == "string") {
|
|
83
|
-
var s = n.toLowerCase();
|
|
84
|
-
C[s] && (e = s), t && (C[s] = t, e = s);
|
|
85
|
-
var i = n.split("-");
|
|
86
|
-
if (!e && i.length > 1)
|
|
87
|
-
return a(i[0]);
|
|
88
|
-
} else {
|
|
89
|
-
var u = n.name;
|
|
90
|
-
C[u] = n, e = u;
|
|
91
|
-
}
|
|
92
|
-
return !r && e && (Y = e), e || !r && Y;
|
|
93
|
-
}, f = function(a, n) {
|
|
94
|
-
if (J(a))
|
|
95
|
-
return a.clone();
|
|
96
|
-
var t = typeof n == "object" ? n : {};
|
|
97
|
-
return t.date = a, t.args = arguments, new A(t);
|
|
98
|
-
}, o = st;
|
|
99
|
-
o.l = W, o.i = J, o.w = function(a, n) {
|
|
100
|
-
return f(a, { locale: n.$L, utc: n.$u, x: n.$x, $offset: n.$offset });
|
|
101
|
-
};
|
|
102
|
-
var A = function() {
|
|
103
|
-
function a(t) {
|
|
104
|
-
this.$L = W(t.locale, null, !0), this.parse(t), this.$x = this.$x || t.x || {}, this[Z] = !0;
|
|
105
|
-
}
|
|
106
|
-
var n = a.prototype;
|
|
107
|
-
return n.parse = function(t) {
|
|
108
|
-
this.$d = function(r) {
|
|
109
|
-
var e = r.date, s = r.utc;
|
|
110
|
-
if (e === null)
|
|
111
|
-
return /* @__PURE__ */ new Date(NaN);
|
|
112
|
-
if (o.u(e))
|
|
113
|
-
return /* @__PURE__ */ new Date();
|
|
114
|
-
if (e instanceof Date)
|
|
115
|
-
return new Date(e);
|
|
116
|
-
if (typeof e == "string" && !/Z$/i.test(e)) {
|
|
117
|
-
var i = e.match(nt);
|
|
118
|
-
if (i) {
|
|
119
|
-
var u = i[2] - 1 || 0, c = (i[7] || "0").substring(0, 3);
|
|
120
|
-
return s ? new Date(Date.UTC(i[1], u, i[3] || 1, i[4] || 0, i[5] || 0, i[6] || 0, c)) : new Date(i[1], u, i[3] || 1, i[4] || 0, i[5] || 0, i[6] || 0, c);
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
return new Date(e);
|
|
124
|
-
}(t), this.init();
|
|
125
|
-
}, n.init = function() {
|
|
126
|
-
var t = this.$d;
|
|
127
|
-
this.$y = t.getFullYear(), this.$M = t.getMonth(), this.$D = t.getDate(), this.$W = t.getDay(), this.$H = t.getHours(), this.$m = t.getMinutes(), this.$s = t.getSeconds(), this.$ms = t.getMilliseconds();
|
|
128
|
-
}, n.$utils = function() {
|
|
129
|
-
return o;
|
|
130
|
-
}, n.isValid = function() {
|
|
131
|
-
return this.$d.toString() !== R;
|
|
132
|
-
}, n.isSame = function(t, r) {
|
|
133
|
-
var e = f(t);
|
|
134
|
-
return this.startOf(r) <= e && e <= this.endOf(r);
|
|
135
|
-
}, n.isAfter = function(t, r) {
|
|
136
|
-
return f(t) < this.startOf(r);
|
|
137
|
-
}, n.isBefore = function(t, r) {
|
|
138
|
-
return this.endOf(r) < f(t);
|
|
139
|
-
}, n.$g = function(t, r, e) {
|
|
140
|
-
return o.u(t) ? this[r] : this.set(e, t);
|
|
141
|
-
}, n.unix = function() {
|
|
142
|
-
return Math.floor(this.valueOf() / 1e3);
|
|
143
|
-
}, n.valueOf = function() {
|
|
144
|
-
return this.$d.getTime();
|
|
145
|
-
}, n.startOf = function(t, r) {
|
|
146
|
-
var e = this, s = !!o.u(r) || r, i = o.p(t), u = function(F, p) {
|
|
147
|
-
var O = o.w(e.$u ? Date.UTC(e.$y, p, F) : new Date(e.$y, p, F), e);
|
|
148
|
-
return s ? O : O.endOf(_);
|
|
149
|
-
}, c = function(F, p) {
|
|
150
|
-
return o.w(e.toDate()[F].apply(e.toDate("s"), (s ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(p)), e);
|
|
151
|
-
}, d = this.$W, h = this.$M, b = this.$D, I = "set" + (this.$u ? "UTC" : "");
|
|
152
|
-
switch (i) {
|
|
153
|
-
case k:
|
|
154
|
-
return s ? u(1, 0) : u(31, 11);
|
|
155
|
-
case $:
|
|
156
|
-
return s ? u(1, h) : u(0, h + 1);
|
|
157
|
-
case T:
|
|
158
|
-
var x = this.$locale().weekStart || 0, H = (d < x ? d + 7 : d) - x;
|
|
159
|
-
return u(s ? b - H : b + (6 - H), h);
|
|
160
|
-
case _:
|
|
161
|
-
case B:
|
|
162
|
-
return c(I + "Hours", 0);
|
|
163
|
-
case w:
|
|
164
|
-
return c(I + "Minutes", 1);
|
|
165
|
-
case m:
|
|
166
|
-
return c(I + "Seconds", 2);
|
|
167
|
-
case l:
|
|
168
|
-
return c(I + "Milliseconds", 3);
|
|
169
|
-
default:
|
|
170
|
-
return this.clone();
|
|
171
|
-
}
|
|
172
|
-
}, n.endOf = function(t) {
|
|
173
|
-
return this.startOf(t, !1);
|
|
174
|
-
}, n.$set = function(t, r) {
|
|
175
|
-
var e, s = o.p(t), i = "set" + (this.$u ? "UTC" : ""), u = (e = {}, e[_] = i + "Date", e[B] = i + "Date", e[$] = i + "Month", e[k] = i + "FullYear", e[w] = i + "Hours", e[m] = i + "Minutes", e[l] = i + "Seconds", e[g] = i + "Milliseconds", e)[s], c = s === _ ? this.$D + (r - this.$W) : r;
|
|
176
|
-
if (s === $ || s === k) {
|
|
177
|
-
var d = this.clone().set(B, 1);
|
|
178
|
-
d.$d[u](c), d.init(), this.$d = d.set(B, Math.min(this.$D, d.daysInMonth())).$d;
|
|
179
|
-
} else
|
|
180
|
-
u && this.$d[u](c);
|
|
181
|
-
return this.init(), this;
|
|
182
|
-
}, n.set = function(t, r) {
|
|
183
|
-
return this.clone().$set(t, r);
|
|
184
|
-
}, n.get = function(t) {
|
|
185
|
-
return this[o.p(t)]();
|
|
186
|
-
}, n.add = function(t, r) {
|
|
187
|
-
var e, s = this;
|
|
188
|
-
t = Number(t);
|
|
189
|
-
var i = o.p(r), u = function(h) {
|
|
190
|
-
var b = f(s);
|
|
191
|
-
return o.w(b.date(b.date() + Math.round(h * t)), s);
|
|
192
|
-
};
|
|
193
|
-
if (i === $)
|
|
194
|
-
return this.set($, this.$M + t);
|
|
195
|
-
if (i === k)
|
|
196
|
-
return this.set(k, this.$y + t);
|
|
197
|
-
if (i === _)
|
|
198
|
-
return u(1);
|
|
199
|
-
if (i === T)
|
|
200
|
-
return u(7);
|
|
201
|
-
var c = (e = {}, e[m] = y, e[w] = D, e[l] = v, e)[i] || 1, d = this.$d.getTime() + t * c;
|
|
202
|
-
return o.w(d, this);
|
|
203
|
-
}, n.subtract = function(t, r) {
|
|
204
|
-
return this.add(-1 * t, r);
|
|
205
|
-
}, n.format = function(t) {
|
|
206
|
-
var r = this, e = this.$locale();
|
|
207
|
-
if (!this.isValid())
|
|
208
|
-
return e.invalidDate || R;
|
|
209
|
-
var s = t || "YYYY-MM-DDTHH:mm:ssZ", i = o.z(this), u = this.$H, c = this.$m, d = this.$M, h = e.weekdays, b = e.months, I = e.meridiem, x = function(p, O, L, V) {
|
|
210
|
-
return p && (p[O] || p(r, s)) || L[O].slice(0, V);
|
|
211
|
-
}, H = function(p) {
|
|
212
|
-
return o.s(u % 12 || 12, p, "0");
|
|
213
|
-
}, F = I || function(p, O, L) {
|
|
214
|
-
var V = p < 12 ? "AM" : "PM";
|
|
215
|
-
return L ? V.toLowerCase() : V;
|
|
216
|
-
};
|
|
217
|
-
return s.replace(rt, function(p, O) {
|
|
218
|
-
return O || function(L) {
|
|
219
|
-
switch (L) {
|
|
220
|
-
case "YY":
|
|
221
|
-
return String(r.$y).slice(-2);
|
|
222
|
-
case "YYYY":
|
|
223
|
-
return o.s(r.$y, 4, "0");
|
|
224
|
-
case "M":
|
|
225
|
-
return d + 1;
|
|
226
|
-
case "MM":
|
|
227
|
-
return o.s(d + 1, 2, "0");
|
|
228
|
-
case "MMM":
|
|
229
|
-
return x(e.monthsShort, d, b, 3);
|
|
230
|
-
case "MMMM":
|
|
231
|
-
return x(b, d);
|
|
232
|
-
case "D":
|
|
233
|
-
return r.$D;
|
|
234
|
-
case "DD":
|
|
235
|
-
return o.s(r.$D, 2, "0");
|
|
236
|
-
case "d":
|
|
237
|
-
return String(r.$W);
|
|
238
|
-
case "dd":
|
|
239
|
-
return x(e.weekdaysMin, r.$W, h, 2);
|
|
240
|
-
case "ddd":
|
|
241
|
-
return x(e.weekdaysShort, r.$W, h, 3);
|
|
242
|
-
case "dddd":
|
|
243
|
-
return h[r.$W];
|
|
244
|
-
case "H":
|
|
245
|
-
return String(u);
|
|
246
|
-
case "HH":
|
|
247
|
-
return o.s(u, 2, "0");
|
|
248
|
-
case "h":
|
|
249
|
-
return H(1);
|
|
250
|
-
case "hh":
|
|
251
|
-
return H(2);
|
|
252
|
-
case "a":
|
|
253
|
-
return F(u, c, !0);
|
|
254
|
-
case "A":
|
|
255
|
-
return F(u, c, !1);
|
|
256
|
-
case "m":
|
|
257
|
-
return String(c);
|
|
258
|
-
case "mm":
|
|
259
|
-
return o.s(c, 2, "0");
|
|
260
|
-
case "s":
|
|
261
|
-
return String(r.$s);
|
|
262
|
-
case "ss":
|
|
263
|
-
return o.s(r.$s, 2, "0");
|
|
264
|
-
case "SSS":
|
|
265
|
-
return o.s(r.$ms, 3, "0");
|
|
266
|
-
case "Z":
|
|
267
|
-
return i;
|
|
268
|
-
}
|
|
269
|
-
return null;
|
|
270
|
-
}(p) || i.replace(":", "");
|
|
271
|
-
});
|
|
272
|
-
}, n.utcOffset = function() {
|
|
273
|
-
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
274
|
-
}, n.diff = function(t, r, e) {
|
|
275
|
-
var s, i = this, u = o.p(r), c = f(t), d = (c.utcOffset() - this.utcOffset()) * y, h = this - c, b = function() {
|
|
276
|
-
return o.m(i, c);
|
|
277
|
-
};
|
|
278
|
-
switch (u) {
|
|
279
|
-
case k:
|
|
280
|
-
s = b() / 12;
|
|
281
|
-
break;
|
|
282
|
-
case $:
|
|
283
|
-
s = b();
|
|
284
|
-
break;
|
|
285
|
-
case E:
|
|
286
|
-
s = b() / 3;
|
|
287
|
-
break;
|
|
288
|
-
case T:
|
|
289
|
-
s = (h - d) / 6048e5;
|
|
290
|
-
break;
|
|
291
|
-
case _:
|
|
292
|
-
s = (h - d) / 864e5;
|
|
293
|
-
break;
|
|
294
|
-
case w:
|
|
295
|
-
s = h / D;
|
|
296
|
-
break;
|
|
297
|
-
case m:
|
|
298
|
-
s = h / y;
|
|
299
|
-
break;
|
|
300
|
-
case l:
|
|
301
|
-
s = h / v;
|
|
302
|
-
break;
|
|
303
|
-
default:
|
|
304
|
-
s = h;
|
|
305
|
-
}
|
|
306
|
-
return e ? s : o.a(s);
|
|
307
|
-
}, n.daysInMonth = function() {
|
|
308
|
-
return this.endOf($).$D;
|
|
309
|
-
}, n.$locale = function() {
|
|
310
|
-
return C[this.$L];
|
|
311
|
-
}, n.locale = function(t, r) {
|
|
312
|
-
if (!t)
|
|
313
|
-
return this.$L;
|
|
314
|
-
var e = this.clone(), s = W(t, r, !0);
|
|
315
|
-
return s && (e.$L = s), e;
|
|
316
|
-
}, n.clone = function() {
|
|
317
|
-
return o.w(this.$d, this);
|
|
318
|
-
}, n.toDate = function() {
|
|
319
|
-
return new Date(this.valueOf());
|
|
320
|
-
}, n.toJSON = function() {
|
|
321
|
-
return this.isValid() ? this.toISOString() : null;
|
|
322
|
-
}, n.toISOString = function() {
|
|
323
|
-
return this.$d.toISOString();
|
|
324
|
-
}, n.toString = function() {
|
|
325
|
-
return this.$d.toUTCString();
|
|
326
|
-
}, a;
|
|
327
|
-
}(), q = A.prototype;
|
|
328
|
-
return f.prototype = q, [["$ms", g], ["$s", l], ["$m", m], ["$H", w], ["$W", _], ["$M", $], ["$y", k], ["$D", B]].forEach(function(a) {
|
|
329
|
-
q[a[1]] = function(n) {
|
|
330
|
-
return this.$g(n, a[0], a[1]);
|
|
331
|
-
};
|
|
332
|
-
}), f.extend = function(a, n) {
|
|
333
|
-
return a.$i || (a(n, A, f), a.$i = !0), f;
|
|
334
|
-
}, f.locale = W, f.isDayjs = J, f.unix = function(a) {
|
|
335
|
-
return f(1e3 * a);
|
|
336
|
-
}, f.en = C[Y], f.Ls = C, f.p = {}, f;
|
|
337
|
-
});
|
|
338
|
-
})(et);
|
|
339
|
-
var yt = et.exports;
|
|
340
|
-
const wt = /* @__PURE__ */ $t(yt), kt = /* @__PURE__ */ K({
|
|
341
|
-
__name: "RestaurantSelector",
|
|
342
|
-
props: /* @__PURE__ */ ot({
|
|
343
|
-
managableOnly: { type: Boolean, default: !1 },
|
|
344
|
-
excludeRestaurants: {},
|
|
345
|
-
label: {},
|
|
346
|
-
autoSelectFirst: { type: Boolean, default: !1 }
|
|
347
|
-
}, {
|
|
348
|
-
modelValue: {},
|
|
349
|
-
modelModifiers: {}
|
|
350
|
-
}),
|
|
351
|
-
emits: ["update:modelValue"],
|
|
352
|
-
setup(S) {
|
|
353
|
-
const M = S, v = ut(S, "modelValue"), { restaurants: y } = pt(), D = N(() => {
|
|
354
|
-
var l;
|
|
355
|
-
return ((l = g.value.find((m) => m.value === v.value)) == null ? void 0 : l.label) || "Select restaurant";
|
|
356
|
-
}), g = N(
|
|
357
|
-
() => y.value.filter((l) => M.managableOnly ? l.managable : !0).map((l) => ({
|
|
358
|
-
label: l.profile.name,
|
|
359
|
-
value: l._id
|
|
360
|
-
})).filter((l) => {
|
|
361
|
-
var m;
|
|
362
|
-
return !((m = M.excludeRestaurants) != null && m.includes(l.value));
|
|
363
|
-
})
|
|
364
|
-
);
|
|
365
|
-
return ct(() => {
|
|
366
|
-
M.autoSelectFirst && g.value.length > 0 && (v.value = g.value[0].value);
|
|
367
|
-
}), (l, m) => {
|
|
368
|
-
const w = z("FmChip"), _ = z("FmMenuItem"), T = z("FmMenu");
|
|
369
|
-
return j(), P(T, null, {
|
|
370
|
-
"menu-button": Q(() => [
|
|
371
|
-
tt(w, {
|
|
372
|
-
icon: "storefront",
|
|
373
|
-
label: D.value,
|
|
374
|
-
"right-icon": "keyboard_arrow_down"
|
|
375
|
-
}, null, 8, ["label"])
|
|
376
|
-
]),
|
|
377
|
-
default: Q(() => [
|
|
378
|
-
(j(!0), X(lt, null, ft(g.value, ($) => (j(), P(_, {
|
|
379
|
-
key: $.value,
|
|
380
|
-
label: $.label,
|
|
381
|
-
onClick: (E) => v.value = $.value
|
|
382
|
-
}, null, 8, ["label", "onClick"]))), 128))
|
|
383
|
-
]),
|
|
384
|
-
_: 1
|
|
385
|
-
});
|
|
386
|
-
};
|
|
387
|
-
}
|
|
388
|
-
});
|
|
389
|
-
export {
|
|
390
|
-
wt as D,
|
|
391
|
-
kt as _,
|
|
392
|
-
Dt as a,
|
|
393
|
-
yt as d,
|
|
394
|
-
St as u
|
|
395
|
-
};
|