@feedmepos/mf-settings 0.0.48-beta.1 → 0.0.49-prod
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-15361c1a.js → App-bcaf0e13.js} +86 -86
- package/dist/{Business-1564c1b4.js → Business-c745610e.js} +549 -549
- package/dist/{CreateBusiness-138ac258.js → CreateBusiness-178daa1b.js} +2 -2
- package/dist/{FoodCourt-561cd7e3.js → FoodCourt-01cfd384.js} +1 -1
- package/dist/{Tagging-9126557f.js → Tagging-9df6a224.js} +10 -7
- package/dist/TemplateBuilder-f9ef1e3b.js +27 -0
- package/dist/{app-ce0bb813.js → app-53ec4ba9.js} +38 -36
- package/dist/app.js +1 -1
- package/dist/apps/mf-settings/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{business-9a4e5bd7.js → business-5239a754.js} +1 -1
- package/dist/{loading-84215dce.js → loading-a9743d80.js} +111 -111
- package/dist/packages/shared/src/components/info/TextChip.vue.d.ts +1 -1
- package/dist/packages/shared/src/composable/elementPosition.d.ts +1 -1
- package/package.json +3 -3
- package/dist/TemplateBuilder-54a34178.js +0 -27
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
var Ir = Object.defineProperty;
|
|
2
2
|
var Ar = (r, e, t) => e in r ? Ir(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
|
|
3
3
|
var Be = (r, e, t) => (Ar(r, typeof e != "symbol" ? e + "" : e, t), t);
|
|
4
|
-
import { ref as ne, computed as
|
|
4
|
+
import { ref as ne, computed as X, defineComponent as Z, resolveComponent as z, openBlock as F, createBlock as Q, Teleport as Or, createVNode as P, Transition as Sr, withCtx as H, normalizeClass as J, normalizeStyle as Ne, withKeys as Tr, createElementVNode as E, toDisplayString as D, renderSlot as ue, createElementBlock as K, Fragment as se, renderList as me, createCommentVNode as le, createTextVNode as Ce, h as _t, unref as w, watch as Et, onMounted as Pr, onUnmounted as Lr, toRaw as Rt, reactive as lt, normalizeProps as Nr, guardReactiveProps as Cr, withModifiers as rt, nextTick as kr, getCurrentInstance as xr, isRef as wt } from "vue";
|
|
5
5
|
import { c as Vr, g as ar, e as ut } from "./index-f1e5e565.js";
|
|
6
6
|
import { useCoreStore as fe, useI18n as pe, CustomAttributesForm as Fr } from "@feedmepos/mf-common";
|
|
7
7
|
import { useDialog as or, useDialogChild as jr, useSnackbar as ct, useBreakpoints as ir, components as Mr } from "@feedmepos/ui-library";
|
|
8
8
|
import { c as ge, _ as Ur, a as Ke } from "./createForm-681e977a.js";
|
|
9
9
|
import { _ as lr, r as ce } from "./rules-c9fa22f8.js";
|
|
10
|
-
import { w as
|
|
11
|
-
import { D as dt, u as ur, _ as
|
|
12
|
-
import { b as
|
|
13
|
-
import { u as Yr } from "./app-
|
|
10
|
+
import { w as ke, u as ve, x as Dr, y as Gr, t as He, z as ze, A as Br, B as Kr, D as Hr, G as zr } from "./index.esm2017-c60b1ce5.js";
|
|
11
|
+
import { D as dt, u as ur, _ as Xr, a as qr } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-977372d5.js";
|
|
12
|
+
import { b as Xe, a as qe, g as ft, u as cr } from "./loading-a9743d80.js";
|
|
13
|
+
import { u as Yr } from "./app-53ec4ba9.js";
|
|
14
14
|
import { _ as Ee, c as Wr } from "./actionButton-cc6bcf01.js";
|
|
15
|
-
import { b as Jr } from "./business-
|
|
15
|
+
import { b as Jr } from "./business-5239a754.js";
|
|
16
16
|
import "pinia";
|
|
17
17
|
import "@feedmepos/mf-mdm";
|
|
18
18
|
import "vue-router";
|
|
19
19
|
import "@feedmepos/mf-e-invoice";
|
|
20
|
-
var
|
|
20
|
+
var Qr = {};
|
|
21
21
|
(function(r) {
|
|
22
22
|
Object.defineProperty(r, "__esModule", { value: !0 }), function(e) {
|
|
23
23
|
e.SLOT_SALE = "SLOT_SALE";
|
|
@@ -50,7 +50,7 @@ var Zr = {};
|
|
|
50
50
|
}(r.GF_CAMPAIGN_DISCOUNT_TYPE || (r.GF_CAMPAIGN_DISCOUNT_TYPE = {})), function(e) {
|
|
51
51
|
e.order = "order", e.items = "items";
|
|
52
52
|
}(r.GF_CAMPAIGN_SCOPE_TYPE || (r.GF_CAMPAIGN_SCOPE_TYPE = {}));
|
|
53
|
-
})(
|
|
53
|
+
})(Qr);
|
|
54
54
|
var dr = { exports: {} };
|
|
55
55
|
(function(r, e) {
|
|
56
56
|
(function(t, n) {
|
|
@@ -115,7 +115,7 @@ var dr = { exports: {} };
|
|
|
115
115
|
}), s.d(n, "compare", function() {
|
|
116
116
|
return U;
|
|
117
117
|
}), s.d(n, "comparable", function() {
|
|
118
|
-
return
|
|
118
|
+
return q;
|
|
119
119
|
});
|
|
120
120
|
var d = i("Array"), c = i("Object"), u = i("Function");
|
|
121
121
|
function b(a, l) {
|
|
@@ -125,7 +125,7 @@ var dr = { exports: {} };
|
|
|
125
125
|
return function(l, v) {
|
|
126
126
|
if (!d(v) || !v.length)
|
|
127
127
|
return a(l, v);
|
|
128
|
-
for (var A = 0,
|
|
128
|
+
for (var A = 0, T = v.length; A < T; A++)
|
|
129
129
|
if (a(l, b(v, A)))
|
|
130
130
|
return !0;
|
|
131
131
|
return !1;
|
|
@@ -135,7 +135,7 @@ var dr = { exports: {} };
|
|
|
135
135
|
return function(l, v) {
|
|
136
136
|
if (!d(v) || !v.length)
|
|
137
137
|
return a(l, v);
|
|
138
|
-
for (var A = 0,
|
|
138
|
+
for (var A = 0, T = v.length; A < T; A++)
|
|
139
139
|
if (!a(l, b(v, A)))
|
|
140
140
|
return !1;
|
|
141
141
|
return !0;
|
|
@@ -185,8 +185,8 @@ var dr = { exports: {} };
|
|
|
185
185
|
return !!l && a === l.length;
|
|
186
186
|
},
|
|
187
187
|
$or: function(a, l, v, A) {
|
|
188
|
-
for (var
|
|
189
|
-
if (_(b(a,
|
|
188
|
+
for (var T = 0, f = a.length; T < f; T++)
|
|
189
|
+
if (_(b(a, T), l, v, A))
|
|
190
190
|
return !0;
|
|
191
191
|
return !1;
|
|
192
192
|
},
|
|
@@ -194,8 +194,8 @@ var dr = { exports: {} };
|
|
|
194
194
|
return !$.$or(a, l, v, A);
|
|
195
195
|
},
|
|
196
196
|
$and: function(a, l, v, A) {
|
|
197
|
-
for (var
|
|
198
|
-
if (!_(b(a,
|
|
197
|
+
for (var T = 0, f = a.length; T < f; T++)
|
|
198
|
+
if (!_(b(a, T), l, v, A))
|
|
199
199
|
return !1;
|
|
200
200
|
return !0;
|
|
201
201
|
},
|
|
@@ -206,9 +206,9 @@ var dr = { exports: {} };
|
|
|
206
206
|
return a.call(l, l, v, A);
|
|
207
207
|
},
|
|
208
208
|
$elemMatch: function(a, l, v, A) {
|
|
209
|
-
return d(l) ? !!~function(
|
|
210
|
-
for (var m = 0; m <
|
|
211
|
-
if (b(
|
|
209
|
+
return d(l) ? !!~function(T, f) {
|
|
210
|
+
for (var m = 0; m < T.length; m++)
|
|
211
|
+
if (b(T, m), _(f, b(T, m)))
|
|
212
212
|
return m;
|
|
213
213
|
return -1;
|
|
214
214
|
}(l, a) : _(a, l, v, A);
|
|
@@ -218,7 +218,7 @@ var dr = { exports: {} };
|
|
|
218
218
|
}
|
|
219
219
|
}, y = {
|
|
220
220
|
$eq: function(a, l, v) {
|
|
221
|
-
var A = v.comparable,
|
|
221
|
+
var A = v.comparable, T = v.compare;
|
|
222
222
|
return a instanceof RegExp ? g(function(f) {
|
|
223
223
|
return typeof f == "string" && a.test(f);
|
|
224
224
|
}) : a instanceof Function ? g(a) : d(a) && !a.length ? g(function(f) {
|
|
@@ -227,42 +227,42 @@ var dr = { exports: {} };
|
|
|
227
227
|
a === null ? function(f) {
|
|
228
228
|
return f == null;
|
|
229
229
|
} : function(f) {
|
|
230
|
-
return
|
|
230
|
+
return T(A(f), A(a)) === 0;
|
|
231
231
|
}
|
|
232
232
|
);
|
|
233
233
|
},
|
|
234
234
|
$gt: function(a, l, v) {
|
|
235
|
-
var A = v.comparable,
|
|
235
|
+
var A = v.comparable, T = v.compare;
|
|
236
236
|
return function(f) {
|
|
237
|
-
return
|
|
237
|
+
return T(A(f), A(a)) > 0;
|
|
238
238
|
};
|
|
239
239
|
},
|
|
240
240
|
$gte: function(a, l, v) {
|
|
241
|
-
var A = v.comparable,
|
|
241
|
+
var A = v.comparable, T = v.compare;
|
|
242
242
|
return function(f) {
|
|
243
|
-
return
|
|
243
|
+
return T(A(f), A(a)) >= 0;
|
|
244
244
|
};
|
|
245
245
|
},
|
|
246
246
|
$lt: function(a, l, v) {
|
|
247
|
-
var A = v.comparable,
|
|
247
|
+
var A = v.comparable, T = v.compare;
|
|
248
248
|
return function(f) {
|
|
249
|
-
return
|
|
249
|
+
return T(A(f), A(a)) < 0;
|
|
250
250
|
};
|
|
251
251
|
},
|
|
252
252
|
$lte: function(a, l, v) {
|
|
253
|
-
var A = v.comparable,
|
|
253
|
+
var A = v.comparable, T = v.compare;
|
|
254
254
|
return function(f) {
|
|
255
|
-
return
|
|
255
|
+
return T(A(f), A(a)) <= 0;
|
|
256
256
|
};
|
|
257
257
|
},
|
|
258
258
|
$in: function(a, l, v) {
|
|
259
259
|
var A = v.comparable;
|
|
260
|
-
return function(
|
|
261
|
-
if (!(
|
|
262
|
-
var f = A(
|
|
263
|
-
if (f ===
|
|
260
|
+
return function(T) {
|
|
261
|
+
if (!(T instanceof Array)) {
|
|
262
|
+
var f = A(T);
|
|
263
|
+
if (f === T && o(T) === "object") {
|
|
264
264
|
for (I = a.length; I--; )
|
|
265
|
-
if (String(a[I]) === String(
|
|
265
|
+
if (String(a[I]) === String(T) && String(T) !== "[object Object]")
|
|
266
266
|
return !0;
|
|
267
267
|
}
|
|
268
268
|
if (f === void 0) {
|
|
@@ -277,16 +277,16 @@ var dr = { exports: {} };
|
|
|
277
277
|
}
|
|
278
278
|
return !!~a.indexOf(f);
|
|
279
279
|
}
|
|
280
|
-
for (var I =
|
|
281
|
-
if (~a.indexOf(A(b(
|
|
280
|
+
for (var I = T.length; I--; )
|
|
281
|
+
if (~a.indexOf(A(b(T, I))))
|
|
282
282
|
return !0;
|
|
283
283
|
return !1;
|
|
284
284
|
};
|
|
285
285
|
},
|
|
286
286
|
$nin: function(a, l, v) {
|
|
287
287
|
var A = y.$in(a, l, v);
|
|
288
|
-
return function(
|
|
289
|
-
return !A(
|
|
288
|
+
return function(T, f, m, I) {
|
|
289
|
+
return !A(T, f, m, I);
|
|
290
290
|
};
|
|
291
291
|
},
|
|
292
292
|
$mod: function(a) {
|
|
@@ -296,8 +296,8 @@ var dr = { exports: {} };
|
|
|
296
296
|
},
|
|
297
297
|
$ne: function(a, l, v) {
|
|
298
298
|
var A = y.$eq(a, l, v);
|
|
299
|
-
return p(function(
|
|
300
|
-
return !A(
|
|
299
|
+
return p(function(T, f, m, I) {
|
|
300
|
+
return !A(T, f, m, I);
|
|
301
301
|
});
|
|
302
302
|
},
|
|
303
303
|
$and: function(a, l, v) {
|
|
@@ -314,8 +314,8 @@ var dr = { exports: {} };
|
|
|
314
314
|
},
|
|
315
315
|
$not: function(a, l, v) {
|
|
316
316
|
var A = S(v)(a);
|
|
317
|
-
return function(
|
|
318
|
-
return !_(A,
|
|
317
|
+
return function(T, f, m) {
|
|
318
|
+
return !_(A, T, f, m);
|
|
319
319
|
};
|
|
320
320
|
},
|
|
321
321
|
$type: function(a) {
|
|
@@ -344,13 +344,13 @@ var dr = { exports: {} };
|
|
|
344
344
|
return { options: a, validate: l };
|
|
345
345
|
}
|
|
346
346
|
function N(a, l) {
|
|
347
|
-
var v = a.keyPath, A = a.child,
|
|
347
|
+
var v = a.keyPath, A = a.child, T = a.query, f = [];
|
|
348
348
|
if (function G(V, L, B, j, te) {
|
|
349
349
|
if (B === L.length || V == null)
|
|
350
350
|
return void te.push([V, L[B - 1], j]);
|
|
351
351
|
var _e = b(L, B);
|
|
352
352
|
if (d(V) && isNaN(Number(_e)))
|
|
353
|
-
for (var Ge = 0,
|
|
353
|
+
for (var Ge = 0, wr = V.length; Ge < wr; Ge++)
|
|
354
354
|
G(b(V, Ge), L, B, V, te);
|
|
355
355
|
else
|
|
356
356
|
G(b(V, _e), L, B + 1, V, te);
|
|
@@ -358,48 +358,48 @@ var dr = { exports: {} };
|
|
|
358
358
|
var m = f[0];
|
|
359
359
|
return _(A, m[0], m[1], m[2]);
|
|
360
360
|
}
|
|
361
|
-
for (var I =
|
|
362
|
-
var O = f[h],
|
|
363
|
-
I ?
|
|
361
|
+
for (var I = T && T.$ne !== void 0, R = I, h = 0; h < f.length; h++) {
|
|
362
|
+
var O = f[h], k = _(A, O[0], O[1], O[2]);
|
|
363
|
+
I ? R &= k : R |= k;
|
|
364
364
|
}
|
|
365
|
-
return
|
|
365
|
+
return R;
|
|
366
366
|
}
|
|
367
|
-
function
|
|
367
|
+
function x(a, l, v) {
|
|
368
368
|
return C({ keyPath: a, child: l, query: v }, N);
|
|
369
369
|
}
|
|
370
370
|
function S(a) {
|
|
371
371
|
var l = a.comparable, v = a.expressions, A = function(m) {
|
|
372
372
|
var I;
|
|
373
373
|
return (!m || !(I = m) || I.constructor !== Object && I.constructor !== Array && I.constructor.toString() !== "function Object() { [native code] }" && I.constructor.toString() !== "function Array() { [native code] }" || I.toJSON) && (m = { $eq: m }), m;
|
|
374
|
-
},
|
|
374
|
+
}, T = function(m) {
|
|
375
375
|
m = l(m);
|
|
376
376
|
var I = [];
|
|
377
|
-
for (var
|
|
378
|
-
var h = m[
|
|
379
|
-
if (
|
|
380
|
-
var O = $[
|
|
377
|
+
for (var R in m) {
|
|
378
|
+
var h = m[R];
|
|
379
|
+
if (R !== "$options") {
|
|
380
|
+
var O = $[R] || a && v && v[R];
|
|
381
381
|
if (O)
|
|
382
|
-
y[
|
|
382
|
+
y[R] && (h = y[R](h, m, a)), I.push(C(l(h), O));
|
|
383
383
|
else {
|
|
384
|
-
if (
|
|
385
|
-
throw new Error("Unknown operation " +
|
|
386
|
-
var
|
|
387
|
-
I.push(k
|
|
384
|
+
if (R.charCodeAt(0) === 36)
|
|
385
|
+
throw new Error("Unknown operation " + R);
|
|
386
|
+
var k = R.split(".");
|
|
387
|
+
I.push(x(k, f(h), h));
|
|
388
388
|
}
|
|
389
389
|
}
|
|
390
390
|
}
|
|
391
391
|
return I.length === 1 ? I[0] : C(I, $.$and);
|
|
392
392
|
}, f = function(m) {
|
|
393
|
-
return m = A(m), function I(
|
|
394
|
-
if (!c(
|
|
393
|
+
return m = A(m), function I(R, h) {
|
|
394
|
+
if (!c(R))
|
|
395
395
|
return h;
|
|
396
|
-
for (var O in
|
|
397
|
-
h.push(O), I(
|
|
396
|
+
for (var O in R)
|
|
397
|
+
h.push(O), I(R[O], h);
|
|
398
398
|
return h;
|
|
399
|
-
}(m, []).join(",").search(/[$.]/) === -1 ? C(m, M) :
|
|
399
|
+
}(m, []).join(",").search(/[$.]/) === -1 ? C(m, M) : T(m);
|
|
400
400
|
};
|
|
401
401
|
return function(m) {
|
|
402
|
-
return
|
|
402
|
+
return T(A(m));
|
|
403
403
|
};
|
|
404
404
|
}
|
|
405
405
|
function M(a, l) {
|
|
@@ -416,7 +416,7 @@ var dr = { exports: {} };
|
|
|
416
416
|
if (d(a)) {
|
|
417
417
|
if (a.length !== l.length)
|
|
418
418
|
return !1;
|
|
419
|
-
for (var A = 0,
|
|
419
|
+
for (var A = 0, T = a.length; A < T; A++)
|
|
420
420
|
if (!M(a[A], l[A]))
|
|
421
421
|
return !1;
|
|
422
422
|
return !0;
|
|
@@ -427,15 +427,15 @@ var dr = { exports: {} };
|
|
|
427
427
|
var v = S(l)(a);
|
|
428
428
|
return l && l.select && (v = {
|
|
429
429
|
options: v,
|
|
430
|
-
validate: function(A,
|
|
431
|
-
return _(A,
|
|
430
|
+
validate: function(A, T, f, m) {
|
|
431
|
+
return _(A, T && l.select(T), f, m);
|
|
432
432
|
}
|
|
433
433
|
}), v;
|
|
434
434
|
}
|
|
435
435
|
function W(a, l) {
|
|
436
|
-
var v = Y(a, l = Object.assign({ compare: U, comparable:
|
|
437
|
-
return function(A,
|
|
438
|
-
return _(v, A,
|
|
436
|
+
var v = Y(a, l = Object.assign({ compare: U, comparable: q }, l));
|
|
437
|
+
return function(A, T, f) {
|
|
438
|
+
return _(v, A, T, f);
|
|
439
439
|
};
|
|
440
440
|
}
|
|
441
441
|
function U(a, l) {
|
|
@@ -448,15 +448,15 @@ var dr = { exports: {} };
|
|
|
448
448
|
return -1;
|
|
449
449
|
}
|
|
450
450
|
}
|
|
451
|
-
function
|
|
452
|
-
return a instanceof Date ? a.getTime() : d(a) ? a.map(
|
|
451
|
+
function q(a) {
|
|
452
|
+
return a instanceof Date ? a.getTime() : d(a) ? a.map(q) : a && typeof a.toJSON == "function" ? a.toJSON() : a;
|
|
453
453
|
}
|
|
454
454
|
}
|
|
455
455
|
]);
|
|
456
456
|
});
|
|
457
457
|
})(dr);
|
|
458
|
-
var
|
|
459
|
-
const en = /* @__PURE__ */ ar(
|
|
458
|
+
var Zr = dr.exports;
|
|
459
|
+
const en = /* @__PURE__ */ ar(Zr);
|
|
460
460
|
function It(r, e) {
|
|
461
461
|
for (var t = 0; t < e.length; t++) {
|
|
462
462
|
var n = e[t];
|
|
@@ -474,10 +474,10 @@ function nt(r) {
|
|
|
474
474
|
return t.__proto__ || Object.getPrototypeOf(t);
|
|
475
475
|
}, nt(r);
|
|
476
476
|
}
|
|
477
|
-
function
|
|
478
|
-
return
|
|
477
|
+
function xe(r, e) {
|
|
478
|
+
return xe = Object.setPrototypeOf || function(n, s) {
|
|
479
479
|
return n.__proto__ = s, n;
|
|
480
|
-
},
|
|
480
|
+
}, xe(r, e);
|
|
481
481
|
}
|
|
482
482
|
function nn() {
|
|
483
483
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
|
|
@@ -496,7 +496,7 @@ function Le(r, e, t) {
|
|
|
496
496
|
var d = [null];
|
|
497
497
|
d.push.apply(d, o);
|
|
498
498
|
var c = Function.bind.apply(s, d), u = new c();
|
|
499
|
-
return i &&
|
|
499
|
+
return i && xe(u, i.prototype), u;
|
|
500
500
|
}, Le.apply(null, arguments);
|
|
501
501
|
}
|
|
502
502
|
function sn(r) {
|
|
@@ -524,7 +524,7 @@ function st(r) {
|
|
|
524
524
|
writable: !0,
|
|
525
525
|
configurable: !0
|
|
526
526
|
}
|
|
527
|
-
}),
|
|
527
|
+
}), xe(s, n);
|
|
528
528
|
}, st(r);
|
|
529
529
|
}
|
|
530
530
|
function At(r) {
|
|
@@ -762,13 +762,13 @@ const yn = (r) => {
|
|
|
762
762
|
function t(o) {
|
|
763
763
|
return `${o}`.trim().toLowerCase();
|
|
764
764
|
}
|
|
765
|
-
const n =
|
|
765
|
+
const n = X(() => t(e.value));
|
|
766
766
|
function s(o) {
|
|
767
767
|
return n.value ? o.some((i) => t(i).includes(n.value)) : !0;
|
|
768
768
|
}
|
|
769
769
|
return { searchKey: e, filter: s };
|
|
770
770
|
};
|
|
771
|
-
function
|
|
771
|
+
function Tt(r = "no name") {
|
|
772
772
|
return {
|
|
773
773
|
name: r,
|
|
774
774
|
address: {
|
|
@@ -785,8 +785,8 @@ function Pt(r = "no name") {
|
|
|
785
785
|
email: ""
|
|
786
786
|
};
|
|
787
787
|
}
|
|
788
|
-
function
|
|
789
|
-
return
|
|
788
|
+
function Pt() {
|
|
789
|
+
return we({
|
|
790
790
|
line1: "",
|
|
791
791
|
line2: "",
|
|
792
792
|
city: "",
|
|
@@ -796,7 +796,7 @@ function Tt() {
|
|
|
796
796
|
coordinates: []
|
|
797
797
|
});
|
|
798
798
|
}
|
|
799
|
-
function
|
|
799
|
+
function we(r) {
|
|
800
800
|
return {
|
|
801
801
|
...r,
|
|
802
802
|
get formatted() {
|
|
@@ -825,7 +825,7 @@ const $n = {
|
|
|
825
825
|
])
|
|
826
826
|
}, _n = { class: "fm-typo-en-title-sm-600 mr-auto" }, En = {
|
|
827
827
|
class: /* @__PURE__ */ J(["flex flex-col", "flex-1 overflow-scroll", "w-full", "px-24"])
|
|
828
|
-
},
|
|
828
|
+
}, Rn = /* @__PURE__ */ Z({
|
|
829
829
|
__name: "FullScreenForm",
|
|
830
830
|
props: {
|
|
831
831
|
show: { type: Boolean },
|
|
@@ -842,29 +842,29 @@ const $n = {
|
|
|
842
842
|
t("onCancel");
|
|
843
843
|
};
|
|
844
844
|
return (o, i) => {
|
|
845
|
-
const d =
|
|
846
|
-
return F(),
|
|
847
|
-
|
|
848
|
-
default:
|
|
849
|
-
o.show ? (F(),
|
|
845
|
+
const d = z("fm-button"), c = z("fm-form");
|
|
846
|
+
return F(), Q(Or, { to: "body" }, [
|
|
847
|
+
P(Sr, { name: "fade" }, {
|
|
848
|
+
default: H(() => [
|
|
849
|
+
o.show ? (F(), Q(c, {
|
|
850
850
|
key: 0,
|
|
851
851
|
"blame-form-child-on-validation-failed": "",
|
|
852
852
|
class: J(["fixed inset-0", "flex flex-col", "w-screen h-dvh", "bg-fm-color-neutral-white"]),
|
|
853
853
|
style: Ne({ zIndex: o.zIndex }),
|
|
854
854
|
tabindex: "-1",
|
|
855
855
|
onValidationSuccess: n,
|
|
856
|
-
onKeyup:
|
|
856
|
+
onKeyup: Tr(s, ["esc"])
|
|
857
857
|
}, {
|
|
858
|
-
default:
|
|
858
|
+
default: H(() => [
|
|
859
859
|
E("div", $n, [
|
|
860
860
|
E("p", _n, D(o.title), 1),
|
|
861
861
|
ue(o.$slots, "append-title", {}, void 0, !0),
|
|
862
|
-
(F(!0), K(se, null, me(o.secondaryActions, (u) => (F(),
|
|
862
|
+
(F(!0), K(se, null, me(o.secondaryActions, (u) => (F(), Q(d, {
|
|
863
863
|
label: u.label,
|
|
864
864
|
variant: "tertiary",
|
|
865
865
|
onClick: u.click
|
|
866
866
|
}, null, 8, ["label", "onClick"]))), 256)),
|
|
867
|
-
|
|
867
|
+
P(d, {
|
|
868
868
|
label: o.primaryAction.label,
|
|
869
869
|
type: "submit",
|
|
870
870
|
variant: "primary"
|
|
@@ -883,7 +883,7 @@ const $n = {
|
|
|
883
883
|
};
|
|
884
884
|
}
|
|
885
885
|
});
|
|
886
|
-
const
|
|
886
|
+
const wn = /* @__PURE__ */ lr(Rn, [["__scopeId", "data-v-5b5c7179"]]), In = { class: "fm-typo-en-body-lg-600" }, An = { class: "fm-typo-en-body-md-400 text-fm-color-typo-tertiary" }, Lt = /* @__PURE__ */ Z({
|
|
887
887
|
__name: "FormLabel",
|
|
888
888
|
props: {
|
|
889
889
|
label: {},
|
|
@@ -891,13 +891,13 @@ const Rn = /* @__PURE__ */ lr(wn, [["__scopeId", "data-v-5b5c7179"]]), In = { cl
|
|
|
891
891
|
subLabel: {}
|
|
892
892
|
},
|
|
893
893
|
setup(r) {
|
|
894
|
-
const e = r, t =
|
|
894
|
+
const e = r, t = X(() => e.optional && !e.subLabel ? "(optional)" : e.subLabel);
|
|
895
895
|
return (n, s) => (F(), K("p", In, [
|
|
896
896
|
Ce(D(n.label) + " ", 1),
|
|
897
897
|
E("span", An, D(t.value), 1)
|
|
898
898
|
]));
|
|
899
899
|
}
|
|
900
|
-
}), On = { class: "space-y-4" }, Sn = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" },
|
|
900
|
+
}), On = { class: "space-y-4" }, Sn = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Tn = { class: "fm-typo-en-body-lg-600" }, Nt = /* @__PURE__ */ Z({
|
|
901
901
|
__name: "InfoBasic",
|
|
902
902
|
props: {
|
|
903
903
|
name: {
|
|
@@ -912,19 +912,19 @@ const Rn = /* @__PURE__ */ lr(wn, [["__scopeId", "data-v-5b5c7179"]]), In = { cl
|
|
|
912
912
|
setup(r) {
|
|
913
913
|
return (e, t) => (F(), K("div", On, [
|
|
914
914
|
E("div", Sn, D(r.name), 1),
|
|
915
|
-
E("div",
|
|
915
|
+
E("div", Tn, D(r.value), 1)
|
|
916
916
|
]));
|
|
917
917
|
}
|
|
918
|
-
}),
|
|
918
|
+
}), Pn = {};
|
|
919
919
|
function Ln(r, e) {
|
|
920
920
|
return F(), K("div", null, e[0] || (e[0] = [
|
|
921
921
|
E("div", { class: "h-px w-full bg-fm-color-neutral-gray-100" }, null, -1)
|
|
922
922
|
]));
|
|
923
923
|
}
|
|
924
|
-
const Nn = /* @__PURE__ */ lr(
|
|
924
|
+
const Nn = /* @__PURE__ */ lr(Pn, [["render", Ln]]), Cn = {
|
|
925
925
|
key: 0,
|
|
926
926
|
class: "ml-40 w-[320px] fm-corner-radius-lg p-16 border border-fm-color-neutral-gray-200 space-y-4"
|
|
927
|
-
},
|
|
927
|
+
}, kn = { class: "fm-typo-en-title-sm-600" }, Ct = /* @__PURE__ */ Z({
|
|
928
928
|
__name: "Summary",
|
|
929
929
|
props: {
|
|
930
930
|
title: {},
|
|
@@ -947,16 +947,16 @@ const Nn = /* @__PURE__ */ lr(Tn, [["render", Ln]]), Cn = {
|
|
|
947
947
|
});
|
|
948
948
|
}
|
|
949
949
|
return (s, o) => {
|
|
950
|
-
const i =
|
|
950
|
+
const i = z("FmButton");
|
|
951
951
|
return e.variant === "full" ? (F(), K("div", Cn, [
|
|
952
|
-
E("div",
|
|
953
|
-
|
|
954
|
-
(F(!0), K(se, null, me(s.items, (d) => (F(),
|
|
952
|
+
E("div", kn, D(s.title), 1),
|
|
953
|
+
P(Nn),
|
|
954
|
+
(F(!0), K(se, null, me(s.items, (d) => (F(), Q(Nt, {
|
|
955
955
|
key: d.name,
|
|
956
956
|
name: d.name,
|
|
957
957
|
value: d.value || "--"
|
|
958
958
|
}, null, 8, ["name", "value"]))), 128))
|
|
959
|
-
])) : (F(),
|
|
959
|
+
])) : (F(), Q(i, {
|
|
960
960
|
key: 1,
|
|
961
961
|
icon: "info",
|
|
962
962
|
variant: "tertiary",
|
|
@@ -964,14 +964,14 @@ const Nn = /* @__PURE__ */ lr(Tn, [["render", Ln]]), Cn = {
|
|
|
964
964
|
}));
|
|
965
965
|
};
|
|
966
966
|
}
|
|
967
|
-
}),
|
|
967
|
+
}), xn = {
|
|
968
968
|
key: 0,
|
|
969
969
|
class: "space-y-4"
|
|
970
970
|
}, Vn = { class: "fm-typo-en-body-lg-600" }, Fn = { class: "fm-typo-en-body-md-400 text-fm-color-typo-tertiary" }, jn = {
|
|
971
971
|
class: /* @__PURE__ */ J(["absolute inset-0", "h-full w-full", "rounded-md overflow-hidden"])
|
|
972
972
|
}, Mn = {
|
|
973
973
|
class: /* @__PURE__ */ J(["relative z-0", "w-full h-full", "overflow-hidden"])
|
|
974
|
-
}, Un = ["src"], Dn = { class: "fm-typo-en-body-lg-600" }, Gn = { class: "fm-typo-en-body-md-400 text-fm-color-typo-tertiary" }, be = /* @__PURE__ */
|
|
974
|
+
}, Un = ["src"], Dn = { class: "fm-typo-en-body-lg-600" }, Gn = { class: "fm-typo-en-body-md-400 text-fm-color-typo-tertiary" }, be = /* @__PURE__ */ Z({
|
|
975
975
|
__name: "ImageDropField",
|
|
976
976
|
props: {
|
|
977
977
|
label: {},
|
|
@@ -984,10 +984,10 @@ const Nn = /* @__PURE__ */ lr(Tn, [["render", Ln]]), Cn = {
|
|
|
984
984
|
},
|
|
985
985
|
emits: ["update:model-value", "reset:model-value"],
|
|
986
986
|
setup(r, { emit: e }) {
|
|
987
|
-
const t = r, n = e, s =
|
|
987
|
+
const t = r, n = e, s = X(() => t.modelValue ? URL.createObjectURL(t.modelValue) : t.previousUrl);
|
|
988
988
|
return (o, i) => {
|
|
989
|
-
const d =
|
|
990
|
-
return s.value ? (F(), K("div",
|
|
989
|
+
const d = z("fm-icon"), c = z("fm-drop-field");
|
|
990
|
+
return s.value ? (F(), K("div", xn, [
|
|
991
991
|
E("p", Vn, [
|
|
992
992
|
Ce(D(t.label) + " ", 1),
|
|
993
993
|
E("span", Fn, D(o.subLabel), 1)
|
|
@@ -1015,29 +1015,29 @@ const Nn = /* @__PURE__ */ lr(Tn, [["render", Ln]]), Cn = {
|
|
|
1015
1015
|
type: "button",
|
|
1016
1016
|
onClick: i[0] || (i[0] = (u) => n("reset:model-value"))
|
|
1017
1017
|
}, [
|
|
1018
|
-
|
|
1018
|
+
P(d, { name: "close" })
|
|
1019
1019
|
])) : le("", !0)
|
|
1020
1020
|
], 4)
|
|
1021
|
-
])) : (F(),
|
|
1021
|
+
])) : (F(), Q(c, {
|
|
1022
1022
|
key: 1,
|
|
1023
1023
|
accept: ".jpg, .jpeg, .png, .gif",
|
|
1024
1024
|
style: Ne({ width: `${t.width}px`, height: `${t.height}px` }),
|
|
1025
1025
|
onFileUpload: i[1] || (i[1] = (u) => n("update:model-value", u))
|
|
1026
1026
|
}, {
|
|
1027
|
-
label:
|
|
1027
|
+
label: H(() => [
|
|
1028
1028
|
E("p", Dn, [
|
|
1029
1029
|
Ce(D(t.label) + " ", 1),
|
|
1030
1030
|
E("span", Gn, D(t.subLabel), 1)
|
|
1031
1031
|
])
|
|
1032
1032
|
]),
|
|
1033
|
-
"accept-text":
|
|
1033
|
+
"accept-text": H(() => i[2] || (i[2] = [
|
|
1034
1034
|
E("p", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " Accepts .jpg, .jpeg, .png, .gif ", -1)
|
|
1035
1035
|
])),
|
|
1036
1036
|
_: 1
|
|
1037
1037
|
}, 8, ["style"]));
|
|
1038
1038
|
};
|
|
1039
1039
|
}
|
|
1040
|
-
}), Bn = { class: "space-y-24" }, Kn = { class: "flex gap-16 xs:flex-col xs:gap-24" },
|
|
1040
|
+
}), Bn = { class: "space-y-24" }, Kn = { class: "flex gap-16 xs:flex-col xs:gap-24" }, Hn = { class: "flex-1" }, zn = { class: "flex-1" }, Xn = { class: "flex gap-16 xs:flex-col xs:gap-24" }, qn = { class: "flex-1" }, Yn = { class: "flex-1" }, Wn = { class: "flex gap-16 xs:flex-col xs:gap-24" }, Jn = { class: "flex-1" }, Qn = { class: "flex-1" }, Zn = /* @__PURE__ */ Z({
|
|
1041
1041
|
__name: "RestaurantAddress",
|
|
1042
1042
|
props: {
|
|
1043
1043
|
modelValue: {
|
|
@@ -1048,8 +1048,8 @@ const Nn = /* @__PURE__ */ lr(Tn, [["render", Ln]]), Cn = {
|
|
|
1048
1048
|
emits: ["update:model-value"],
|
|
1049
1049
|
setup(r, { emit: e }) {
|
|
1050
1050
|
const { t } = pe();
|
|
1051
|
-
|
|
1052
|
-
const n = r, s = e, o =
|
|
1051
|
+
Pt();
|
|
1052
|
+
const n = r, s = e, o = X(() => ge(n.modelValue || Pt()));
|
|
1053
1053
|
function i(c) {
|
|
1054
1054
|
return (c || "").toString();
|
|
1055
1055
|
}
|
|
@@ -1057,62 +1057,62 @@ const Nn = /* @__PURE__ */ lr(Tn, [["render", Ln]]), Cn = {
|
|
|
1057
1057
|
s("update:model-value", c(o.value));
|
|
1058
1058
|
}
|
|
1059
1059
|
return (c, u) => {
|
|
1060
|
-
const b =
|
|
1060
|
+
const b = z("FmTextField");
|
|
1061
1061
|
return F(), K("div", Bn, [
|
|
1062
1062
|
E("div", Kn, [
|
|
1063
|
-
E("div",
|
|
1064
|
-
|
|
1063
|
+
E("div", Hn, [
|
|
1064
|
+
P(b, {
|
|
1065
1065
|
"model-value": o.value.line1,
|
|
1066
|
-
label:
|
|
1066
|
+
label: w(t)("settings.address.line1"),
|
|
1067
1067
|
"label-mark": "required",
|
|
1068
|
-
rules: [
|
|
1068
|
+
rules: [w(ce)],
|
|
1069
1069
|
"onUpdate:modelValue": u[0] || (u[0] = (g) => d((p) => ({ ...p, line1: i(g) })))
|
|
1070
1070
|
}, null, 8, ["model-value", "label", "rules"])
|
|
1071
1071
|
]),
|
|
1072
|
-
E("div",
|
|
1073
|
-
|
|
1072
|
+
E("div", zn, [
|
|
1073
|
+
P(b, {
|
|
1074
1074
|
"model-value": o.value.line2,
|
|
1075
|
-
label:
|
|
1075
|
+
label: w(t)("settings.address.line2"),
|
|
1076
1076
|
"onUpdate:modelValue": u[1] || (u[1] = (g) => d((p) => ({ ...p, line2: i(g) })))
|
|
1077
1077
|
}, null, 8, ["model-value", "label"])
|
|
1078
1078
|
])
|
|
1079
1079
|
]),
|
|
1080
|
-
E("div",
|
|
1081
|
-
E("div",
|
|
1082
|
-
|
|
1080
|
+
E("div", Xn, [
|
|
1081
|
+
E("div", qn, [
|
|
1082
|
+
P(b, {
|
|
1083
1083
|
"model-value": o.value.city,
|
|
1084
|
-
rules: [
|
|
1085
|
-
label:
|
|
1084
|
+
rules: [w(ce)],
|
|
1085
|
+
label: w(t)("settings.address.city"),
|
|
1086
1086
|
"label-mark": "required",
|
|
1087
1087
|
"onUpdate:modelValue": u[2] || (u[2] = (g) => d((p) => ({ ...p, city: i(g) })))
|
|
1088
1088
|
}, null, 8, ["model-value", "rules", "label"])
|
|
1089
1089
|
]),
|
|
1090
1090
|
E("div", Yn, [
|
|
1091
|
-
|
|
1091
|
+
P(b, {
|
|
1092
1092
|
"model-value": o.value.postcode,
|
|
1093
|
-
label:
|
|
1093
|
+
label: w(t)("settings.address.postal_code"),
|
|
1094
1094
|
"label-mark": "required",
|
|
1095
|
-
rules: [
|
|
1095
|
+
rules: [w(ce)],
|
|
1096
1096
|
"onUpdate:modelValue": u[3] || (u[3] = (g) => d((p) => ({ ...p, postcode: i(g) })))
|
|
1097
1097
|
}, null, 8, ["model-value", "label", "rules"])
|
|
1098
1098
|
])
|
|
1099
1099
|
]),
|
|
1100
1100
|
E("div", Wn, [
|
|
1101
1101
|
E("div", Jn, [
|
|
1102
|
-
|
|
1102
|
+
P(b, {
|
|
1103
1103
|
"model-value": o.value.state,
|
|
1104
|
-
label:
|
|
1104
|
+
label: w(t)("settings.address.state"),
|
|
1105
1105
|
"label-mark": "required",
|
|
1106
|
-
rules: [
|
|
1106
|
+
rules: [w(ce)],
|
|
1107
1107
|
"onUpdate:modelValue": u[4] || (u[4] = (g) => d((p) => ({ ...p, state: i(g) })))
|
|
1108
1108
|
}, null, 8, ["model-value", "label", "rules"])
|
|
1109
1109
|
]),
|
|
1110
|
-
E("div",
|
|
1111
|
-
|
|
1110
|
+
E("div", Qn, [
|
|
1111
|
+
P(b, {
|
|
1112
1112
|
"model-value": o.value.country,
|
|
1113
|
-
label:
|
|
1113
|
+
label: w(t)("settings.address.country"),
|
|
1114
1114
|
"label-mark": "required",
|
|
1115
|
-
rules: [
|
|
1115
|
+
rules: [w(ce)],
|
|
1116
1116
|
"onUpdate:modelValue": u[5] || (u[5] = (g) => d((p) => ({ ...p, country: i(g) })))
|
|
1117
1117
|
}, null, 8, ["model-value", "label", "rules"])
|
|
1118
1118
|
])
|
|
@@ -1120,7 +1120,7 @@ const Nn = /* @__PURE__ */ lr(Tn, [["render", Ln]]), Cn = {
|
|
|
1120
1120
|
]);
|
|
1121
1121
|
};
|
|
1122
1122
|
}
|
|
1123
|
-
}), es = /* @__PURE__ */
|
|
1123
|
+
}), es = /* @__PURE__ */ Z({
|
|
1124
1124
|
__name: "GoogleMap",
|
|
1125
1125
|
props: {
|
|
1126
1126
|
markers: {
|
|
@@ -1141,7 +1141,7 @@ const Nn = /* @__PURE__ */ lr(Tn, [["render", Ln]]), Cn = {
|
|
|
1141
1141
|
},
|
|
1142
1142
|
center: {
|
|
1143
1143
|
type: Object,
|
|
1144
|
-
default:
|
|
1144
|
+
default: ke.jb
|
|
1145
1145
|
}
|
|
1146
1146
|
},
|
|
1147
1147
|
emits: ["map-click", "marker-change", "polygon-change", "polygon-right-click"],
|
|
@@ -1170,17 +1170,17 @@ const Nn = /* @__PURE__ */ lr(Tn, [["render", Ln]]), Cn = {
|
|
|
1170
1170
|
}
|
|
1171
1171
|
function p(a) {
|
|
1172
1172
|
_(null), b.value = a.map((l, v) => {
|
|
1173
|
-
const A = ve(),
|
|
1173
|
+
const A = ve(), T = new A.maps.Marker({
|
|
1174
1174
|
position: l,
|
|
1175
1175
|
draggable: !0
|
|
1176
1176
|
});
|
|
1177
|
-
return g(
|
|
1177
|
+
return g(T, "dragend", (f) => {
|
|
1178
1178
|
s("marker-change", { index: v, position: c(f) });
|
|
1179
|
-
}),
|
|
1179
|
+
}), T;
|
|
1180
1180
|
}), _(i.value);
|
|
1181
1181
|
}
|
|
1182
1182
|
function _(a) {
|
|
1183
|
-
b.value.map((l) =>
|
|
1183
|
+
b.value.map((l) => Rt(l).setMap(a));
|
|
1184
1184
|
}
|
|
1185
1185
|
const $ = ne([]);
|
|
1186
1186
|
function y(a, l, v) {
|
|
@@ -1195,12 +1195,12 @@ const Nn = /* @__PURE__ */ lr(Tn, [["render", Ln]]), Cn = {
|
|
|
1195
1195
|
lng: A()
|
|
1196
1196
|
}));
|
|
1197
1197
|
}
|
|
1198
|
-
function
|
|
1198
|
+
function x(a) {
|
|
1199
1199
|
const l = N(a);
|
|
1200
1200
|
s("polygon-change", { index: a, path: l });
|
|
1201
1201
|
}
|
|
1202
1202
|
function S(a, l) {
|
|
1203
|
-
const A = N(a).filter((
|
|
1203
|
+
const A = N(a).filter((T, f) => f !== l);
|
|
1204
1204
|
s("polygon-change", { index: a, path: A });
|
|
1205
1205
|
}
|
|
1206
1206
|
function M(a, l) {
|
|
@@ -1208,25 +1208,25 @@ const Nn = /* @__PURE__ */ lr(Tn, [["render", Ln]]), Cn = {
|
|
|
1208
1208
|
}
|
|
1209
1209
|
function Y(a) {
|
|
1210
1210
|
W(null), $.value = a.map((l, v) => {
|
|
1211
|
-
const A = ve(),
|
|
1211
|
+
const A = ve(), T = new A.maps.Polygon({
|
|
1212
1212
|
paths: l.paths,
|
|
1213
1213
|
strokeColor: l.strokeColor,
|
|
1214
1214
|
fillColor: l.fillColor,
|
|
1215
1215
|
fillOpacity: 0.5,
|
|
1216
1216
|
editable: n.editable
|
|
1217
1217
|
});
|
|
1218
|
-
return y(
|
|
1219
|
-
C(f, "insert_at", () =>
|
|
1220
|
-
}),
|
|
1218
|
+
return y(T, "contextmenu", (f) => M(v, f)), T.getPaths().forEach((f) => {
|
|
1219
|
+
C(f, "insert_at", () => x(v)), C(f, "set_at", () => x(v));
|
|
1220
|
+
}), T;
|
|
1221
1221
|
}), W(i.value);
|
|
1222
1222
|
}
|
|
1223
1223
|
function W(a) {
|
|
1224
|
-
$.value.map((l) =>
|
|
1224
|
+
$.value.map((l) => Rt(l).setMap(a));
|
|
1225
1225
|
}
|
|
1226
1226
|
function U(a, l, v) {
|
|
1227
1227
|
u(a, l, v);
|
|
1228
1228
|
}
|
|
1229
|
-
function
|
|
1229
|
+
function q() {
|
|
1230
1230
|
const a = ve().maps.Map;
|
|
1231
1231
|
i.value = new a(o.value, {
|
|
1232
1232
|
center: n.center,
|
|
@@ -1237,8 +1237,8 @@ const Nn = /* @__PURE__ */ lr(Tn, [["render", Ln]]), Cn = {
|
|
|
1237
1237
|
scrollwheel: !0
|
|
1238
1238
|
}), U(i.value, "click", (l) => s("map-click", c(l)));
|
|
1239
1239
|
}
|
|
1240
|
-
return Et(() => n.markers, p, { deep: !0 }), Et(() => n.polygons, Y, { deep: !0 }),
|
|
1241
|
-
!o.value || !ve() || (
|
|
1240
|
+
return Et(() => n.markers, p, { deep: !0 }), Et(() => n.polygons, Y, { deep: !0 }), Pr(() => {
|
|
1241
|
+
!o.value || !ve() || (q(), p(n.markers), Y(n.polygons));
|
|
1242
1242
|
}), Lr(() => {
|
|
1243
1243
|
d.forEach((a) => a.remove());
|
|
1244
1244
|
}), (a, l) => (F(), K("div", {
|
|
@@ -1247,7 +1247,7 @@ const Nn = /* @__PURE__ */ lr(Tn, [["render", Ln]]), Cn = {
|
|
|
1247
1247
|
class: "map app-map"
|
|
1248
1248
|
}, null, 512));
|
|
1249
1249
|
}
|
|
1250
|
-
}), ts = { class: "space-y-24" }, rs = { class: "flex flex-row gap-8" }, ns = { class: "flex gap-8" }, ss = { class: "flex gap-8" }, as = /* @__PURE__ */
|
|
1250
|
+
}), ts = { class: "space-y-24" }, rs = { class: "flex flex-row gap-8" }, ns = { class: "flex gap-8" }, ss = { class: "flex gap-8" }, as = /* @__PURE__ */ Z({
|
|
1251
1251
|
__name: "CoordinateDialog",
|
|
1252
1252
|
props: {
|
|
1253
1253
|
address: {
|
|
@@ -1261,7 +1261,7 @@ const Nn = /* @__PURE__ */ lr(Tn, [["render", Ln]]), Cn = {
|
|
|
1261
1261
|
},
|
|
1262
1262
|
setup(r) {
|
|
1263
1263
|
const { t: e } = pe(), t = r, { emitData: n } = jr(), s = lt(
|
|
1264
|
-
ge(t.coordinate ? t.coordinate :
|
|
1264
|
+
ge(t.coordinate ? t.coordinate : ke.jb)
|
|
1265
1265
|
);
|
|
1266
1266
|
function o({ position: i }) {
|
|
1267
1267
|
s.lat = i.lat, s.lng = i.lng, n(s);
|
|
@@ -1269,19 +1269,19 @@ const Nn = /* @__PURE__ */ lr(Tn, [["render", Ln]]), Cn = {
|
|
|
1269
1269
|
return n(s), (i, d) => (F(), K("div", ts, [
|
|
1270
1270
|
E("div", null, [
|
|
1271
1271
|
E("div", rs, [
|
|
1272
|
-
E("div", null, D(
|
|
1272
|
+
E("div", null, D(w(e)("settings.coordinate_dialog.address")) + ":", 1),
|
|
1273
1273
|
E("div", null, D(r.address || "--"), 1)
|
|
1274
1274
|
]),
|
|
1275
1275
|
E("div", ns, [
|
|
1276
|
-
E("div", null, D(
|
|
1276
|
+
E("div", null, D(w(e)("settings.coordinate_dialog.latitude")) + ":", 1),
|
|
1277
1277
|
E("div", null, D(s.lat), 1)
|
|
1278
1278
|
]),
|
|
1279
1279
|
E("div", ss, [
|
|
1280
|
-
E("div", null, D(
|
|
1280
|
+
E("div", null, D(w(e)("settings.coordinate_dialog.longitude")) + ":", 1),
|
|
1281
1281
|
E("div", null, D(s.lng), 1)
|
|
1282
1282
|
])
|
|
1283
1283
|
]),
|
|
1284
|
-
|
|
1284
|
+
P(es, {
|
|
1285
1285
|
class: "w-full",
|
|
1286
1286
|
style: { height: "300px" },
|
|
1287
1287
|
editable: "",
|
|
@@ -1292,7 +1292,7 @@ const Nn = /* @__PURE__ */ lr(Tn, [["render", Ln]]), Cn = {
|
|
|
1292
1292
|
}, null, 8, ["center", "markers"])
|
|
1293
1293
|
]));
|
|
1294
1294
|
}
|
|
1295
|
-
}), os = /* @__PURE__ */
|
|
1295
|
+
}), os = /* @__PURE__ */ Z({
|
|
1296
1296
|
__name: "CoordinateInput",
|
|
1297
1297
|
props: {
|
|
1298
1298
|
modelValue: {
|
|
@@ -1310,10 +1310,10 @@ const Nn = /* @__PURE__ */ lr(Tn, [["render", Ln]]), Cn = {
|
|
|
1310
1310
|
},
|
|
1311
1311
|
emits: ["update:model-value"],
|
|
1312
1312
|
setup(r, { emit: e }) {
|
|
1313
|
-
const { t } = pe(), n = r, s = e, o = or(), i =
|
|
1313
|
+
const { t } = pe(), n = r, s = e, o = or(), i = X(() => {
|
|
1314
1314
|
const g = n.modelValue || [];
|
|
1315
1315
|
return g.length < 2 ? null : Dr(g);
|
|
1316
|
-
}), d =
|
|
1316
|
+
}), d = X(() => i.value ? `${i.value.lat}, ${i.value.lng}` : "");
|
|
1317
1317
|
async function c() {
|
|
1318
1318
|
const g = ve().maps.Geocoder, p = new g();
|
|
1319
1319
|
let _ = i.value;
|
|
@@ -1321,8 +1321,8 @@ const Nn = /* @__PURE__ */ lr(Tn, [["render", Ln]]), Cn = {
|
|
|
1321
1321
|
n.address.formatted ? p.geocode({ address: n.address.formatted }, (y) => {
|
|
1322
1322
|
var N;
|
|
1323
1323
|
const C = (N = y == null ? void 0 : y[0]) == null ? void 0 : N.geometry;
|
|
1324
|
-
_ = C ? { lng: C.location.lng(), lat: C.location.lat() } :
|
|
1325
|
-
}) : (_ =
|
|
1324
|
+
_ = C ? { lng: C.location.lng(), lat: C.location.lat() } : ke.jb, $(!0);
|
|
1325
|
+
}) : (_ = ke.jb, $(!0));
|
|
1326
1326
|
}), o.open({
|
|
1327
1327
|
contentComponent: as,
|
|
1328
1328
|
contentComponentProps: {
|
|
@@ -1352,33 +1352,33 @@ const Nn = /* @__PURE__ */ lr(Tn, [["render", Ln]]), Cn = {
|
|
|
1352
1352
|
u.value = !1;
|
|
1353
1353
|
}
|
|
1354
1354
|
return (g, p) => {
|
|
1355
|
-
const _ =
|
|
1356
|
-
return F(),
|
|
1355
|
+
const _ = z("FmIcon"), $ = z("FmField"), y = z("FmFormGroup");
|
|
1356
|
+
return F(), Q(y, {
|
|
1357
1357
|
modelValue: i.value,
|
|
1358
1358
|
"onUpdate:modelValue": p[0] || (p[0] = (C) => i.value = C),
|
|
1359
|
-
label:
|
|
1359
|
+
label: w(t)("settings.coordinate_input.title")
|
|
1360
1360
|
}, {
|
|
1361
|
-
default:
|
|
1362
|
-
|
|
1361
|
+
default: H(() => [
|
|
1362
|
+
P($, {
|
|
1363
1363
|
class: "cursor-pointer",
|
|
1364
1364
|
onClick: c
|
|
1365
1365
|
}, {
|
|
1366
|
-
prepend:
|
|
1366
|
+
prepend: H(() => [
|
|
1367
1367
|
ue(g.$slots, "prepend")
|
|
1368
1368
|
]),
|
|
1369
|
-
append:
|
|
1370
|
-
|
|
1369
|
+
append: H(() => [
|
|
1370
|
+
P(_, {
|
|
1371
1371
|
class: "text-fm-color-neutral-gray-400",
|
|
1372
1372
|
name: "location_on",
|
|
1373
1373
|
outline: "",
|
|
1374
1374
|
size: "md"
|
|
1375
1375
|
})
|
|
1376
1376
|
]),
|
|
1377
|
-
default:
|
|
1377
|
+
default: H(() => [
|
|
1378
1378
|
ue(g.$slots, "default", {}, () => [
|
|
1379
1379
|
E("div", {
|
|
1380
1380
|
class: J([[i.value ? "text-fm-color-typo-primary" : "text-fm-color-typo-tertiary"], "break-all fm-typo-en-body-lg-400 line-clamp-1"])
|
|
1381
|
-
}, D(i.value ? d.value :
|
|
1381
|
+
}, D(i.value ? d.value : w(t)("settings.coordinate_input.not_set")), 3)
|
|
1382
1382
|
])
|
|
1383
1383
|
]),
|
|
1384
1384
|
_: 3
|
|
@@ -1391,7 +1391,7 @@ const Nn = /* @__PURE__ */ lr(Tn, [["render", Ln]]), Cn = {
|
|
|
1391
1391
|
}), is = { class: "w-[140px] pt-16" }, ls = { class: "pl-32" }, us = {
|
|
1392
1392
|
key: 1,
|
|
1393
1393
|
class: "flex gap-8 items-center my-8"
|
|
1394
|
-
}, cs = /* @__PURE__ */
|
|
1394
|
+
}, cs = /* @__PURE__ */ Z({
|
|
1395
1395
|
__name: "OperationHoursInput",
|
|
1396
1396
|
props: {
|
|
1397
1397
|
modelValue: {
|
|
@@ -1407,7 +1407,7 @@ const Nn = /* @__PURE__ */ lr(Tn, [["render", Ln]]), Cn = {
|
|
|
1407
1407
|
setup(r, { emit: e }) {
|
|
1408
1408
|
const t = r, n = e, s = ct(), { t: o } = pe();
|
|
1409
1409
|
dt().startOf("week");
|
|
1410
|
-
const i =
|
|
1410
|
+
const i = X(
|
|
1411
1411
|
() => [
|
|
1412
1412
|
o("settings.operation_hours.mon"),
|
|
1413
1413
|
o("settings.operation_hours.tue"),
|
|
@@ -1416,64 +1416,64 @@ const Nn = /* @__PURE__ */ lr(Tn, [["render", Ln]]), Cn = {
|
|
|
1416
1416
|
o("settings.operation_hours.fri"),
|
|
1417
1417
|
o("settings.operation_hours.sat"),
|
|
1418
1418
|
o("settings.operation_hours.sun")
|
|
1419
|
-
].map((N,
|
|
1420
|
-
key:
|
|
1419
|
+
].map((N, x) => ({
|
|
1420
|
+
key: x.toString(),
|
|
1421
1421
|
label: N,
|
|
1422
|
-
value:
|
|
1422
|
+
value: x < 6 ? x + 1 : 0,
|
|
1423
1423
|
// key of OperatingHours, since data start from sunday, UI start from monday
|
|
1424
|
-
slot: `checkbox-${
|
|
1424
|
+
slot: `checkbox-${x}-end`
|
|
1425
1425
|
}))
|
|
1426
|
-
), d =
|
|
1426
|
+
), d = X(
|
|
1427
1427
|
() => t.modelValue ? Object.values(t.modelValue) : Array.from(Array(7)).map(() => ({
|
|
1428
1428
|
enable: !1,
|
|
1429
1429
|
hours: []
|
|
1430
1430
|
}))
|
|
1431
|
-
), c =
|
|
1431
|
+
), c = X(() => Object.values(d.value).map((N) => N.hours)), u = X(() => d.value.reduce((N, x, S) => (x.hours.length > 0 && N.push(S), N), []));
|
|
1432
1432
|
function b() {
|
|
1433
1433
|
return { start: "00:00", end: "23:59" };
|
|
1434
1434
|
}
|
|
1435
1435
|
function g(N) {
|
|
1436
|
-
const
|
|
1437
|
-
if (
|
|
1438
|
-
C((M) => (M[
|
|
1436
|
+
const x = u.value.find((M) => !N.includes(M));
|
|
1437
|
+
if (x !== void 0) {
|
|
1438
|
+
C((M) => (M[x].enable = !1, M[x].hours = [], M));
|
|
1439
1439
|
return;
|
|
1440
1440
|
}
|
|
1441
1441
|
const S = N.find((M) => !u.value.includes(M));
|
|
1442
1442
|
S !== void 0 && d.value[S].hours.length === 0 && C((M) => (M[S].enable = !0, M[S].hours = [b()], M));
|
|
1443
1443
|
}
|
|
1444
1444
|
function p(N) {
|
|
1445
|
-
C((
|
|
1445
|
+
C((x) => (x[N].hours.push(b()), x));
|
|
1446
1446
|
}
|
|
1447
|
-
function _(N,
|
|
1448
|
-
c.value[N].length > 1 ? C((S) => (S[N].hours.splice(
|
|
1447
|
+
function _(N, x) {
|
|
1448
|
+
c.value[N].length > 1 ? C((S) => (S[N].hours.splice(x, 1), S)) : s.open({ title: o("settings.operation_hours.cannot_remove_last"), type: "error" });
|
|
1449
1449
|
}
|
|
1450
|
-
function $(N,
|
|
1451
|
-
S && C((M) => (M[N].hours[
|
|
1450
|
+
function $(N, x, S) {
|
|
1451
|
+
S && C((M) => (M[N].hours[x].start = S, M));
|
|
1452
1452
|
}
|
|
1453
|
-
function y(N,
|
|
1454
|
-
S && C((M) => (M[N].hours[
|
|
1453
|
+
function y(N, x, S) {
|
|
1454
|
+
S && C((M) => (M[N].hours[x].end = S, M));
|
|
1455
1455
|
}
|
|
1456
1456
|
function C(N) {
|
|
1457
|
-
const
|
|
1458
|
-
0:
|
|
1459
|
-
1:
|
|
1460
|
-
2:
|
|
1461
|
-
3:
|
|
1462
|
-
4:
|
|
1463
|
-
5:
|
|
1464
|
-
6:
|
|
1457
|
+
const x = N(ge(d.value)), S = {
|
|
1458
|
+
0: x[0],
|
|
1459
|
+
1: x[1],
|
|
1460
|
+
2: x[2],
|
|
1461
|
+
3: x[3],
|
|
1462
|
+
4: x[4],
|
|
1463
|
+
5: x[5],
|
|
1464
|
+
6: x[6]
|
|
1465
1465
|
};
|
|
1466
1466
|
n("update:model-value", S);
|
|
1467
1467
|
}
|
|
1468
|
-
return (N,
|
|
1469
|
-
const S =
|
|
1468
|
+
return (N, x) => {
|
|
1469
|
+
const S = z("FmCheckbox"), M = z("FmTimePicker"), Y = z("FmButton"), W = z("FmField");
|
|
1470
1470
|
return F(), K("div", null, [
|
|
1471
1471
|
(F(!0), K(se, null, me(i.value, (U) => (F(), K("div", {
|
|
1472
1472
|
key: U.value,
|
|
1473
1473
|
class: "flex flex-col items-start"
|
|
1474
1474
|
}, [
|
|
1475
1475
|
E("div", is, [
|
|
1476
|
-
|
|
1476
|
+
P(S, {
|
|
1477
1477
|
"model-value": u.value,
|
|
1478
1478
|
label: U.label,
|
|
1479
1479
|
value: U.value,
|
|
@@ -1482,27 +1482,27 @@ const Nn = /* @__PURE__ */ lr(Tn, [["render", Ln]]), Cn = {
|
|
|
1482
1482
|
]),
|
|
1483
1483
|
E("div", ls, [
|
|
1484
1484
|
E("div", null, [
|
|
1485
|
-
u.value.includes(U.value) ? (F(!0), K(se, { key: 0 }, me(c.value[U.value], (
|
|
1485
|
+
u.value.includes(U.value) ? (F(!0), K(se, { key: 0 }, me(c.value[U.value], (q, a) => (F(), K("div", {
|
|
1486
1486
|
key: a,
|
|
1487
1487
|
class: "flex items-center gap-8"
|
|
1488
1488
|
}, [
|
|
1489
|
-
|
|
1490
|
-
"model-value":
|
|
1489
|
+
P(M, {
|
|
1490
|
+
"model-value": q.start,
|
|
1491
1491
|
"onUpdate:modelValue": (l) => $(U.value, a, l)
|
|
1492
1492
|
}, null, 8, ["model-value", "onUpdate:modelValue"]),
|
|
1493
1493
|
E("span", {
|
|
1494
1494
|
class: J([["text-fm-color-typo-tertiary"], "fm-typo-en-body-lg-400"])
|
|
1495
|
-
}, D(
|
|
1496
|
-
|
|
1497
|
-
"model-value":
|
|
1495
|
+
}, D(w(o)("settings.operation_hours.to")), 1),
|
|
1496
|
+
P(M, {
|
|
1497
|
+
"model-value": q.end,
|
|
1498
1498
|
"onUpdate:modelValue": (l) => y(U.value, a, l)
|
|
1499
1499
|
}, null, 8, ["model-value", "onUpdate:modelValue"]),
|
|
1500
|
-
|
|
1500
|
+
P(Y, {
|
|
1501
1501
|
icon: "close",
|
|
1502
1502
|
variant: "tertiary",
|
|
1503
1503
|
onClick: (l) => _(U.value, a)
|
|
1504
1504
|
}, null, 8, ["onClick"]),
|
|
1505
|
-
|
|
1505
|
+
P(Y, {
|
|
1506
1506
|
class: J(a === 0 ? "" : "invisible"),
|
|
1507
1507
|
icon: "add",
|
|
1508
1508
|
color: "primary",
|
|
@@ -1510,22 +1510,22 @@ const Nn = /* @__PURE__ */ lr(Tn, [["render", Ln]]), Cn = {
|
|
|
1510
1510
|
onClick: (l) => p(U.value)
|
|
1511
1511
|
}, null, 8, ["class", "onClick"])
|
|
1512
1512
|
]))), 128)) : (F(), K("div", us, [
|
|
1513
|
-
|
|
1514
|
-
default:
|
|
1513
|
+
P(W, null, {
|
|
1514
|
+
default: H(() => [
|
|
1515
1515
|
E("div", {
|
|
1516
1516
|
class: J([["text-fm-color-typo-tertiary"], "break-all fm-typo-en-body-lg-400 line-clamp-1"])
|
|
1517
|
-
}, D(
|
|
1517
|
+
}, D(w(o)("settings.operation_hours.close")), 1)
|
|
1518
1518
|
]),
|
|
1519
1519
|
_: 1
|
|
1520
1520
|
}),
|
|
1521
1521
|
E("span", {
|
|
1522
1522
|
class: J([["text-fm-color-typo-tertiary"], "fm-typo-en-body-lg-400"])
|
|
1523
|
-
}, D(
|
|
1524
|
-
|
|
1525
|
-
default:
|
|
1523
|
+
}, D(w(o)("settings.operation_hours.to")), 1),
|
|
1524
|
+
P(W, null, {
|
|
1525
|
+
default: H(() => [
|
|
1526
1526
|
E("div", {
|
|
1527
1527
|
class: J([["text-fm-color-typo-tertiary"], "break-all fm-typo-en-body-lg-400 line-clamp-1"])
|
|
1528
|
-
}, D(
|
|
1528
|
+
}, D(w(o)("settings.operation_hours.close")), 1)
|
|
1529
1529
|
]),
|
|
1530
1530
|
_: 1
|
|
1531
1531
|
})
|
|
@@ -2076,23 +2076,23 @@ var je = vs;
|
|
|
2076
2076
|
y = y.split(`${C}*`).join(`${C}{0,${N}}`).split(`${C}+`).join(`${C}{1,${N}}`);
|
|
2077
2077
|
return y;
|
|
2078
2078
|
}, $ = (y, C, N) => {
|
|
2079
|
-
const
|
|
2080
|
-
o(y, S, C), u[y] = S, c[S] = C, i[S] = new RegExp(C, N ? "g" : void 0), d[S] = new RegExp(
|
|
2079
|
+
const x = _(C), S = b++;
|
|
2080
|
+
o(y, S, C), u[y] = S, c[S] = C, i[S] = new RegExp(C, N ? "g" : void 0), d[S] = new RegExp(x, N ? "g" : void 0);
|
|
2081
2081
|
};
|
|
2082
2082
|
$("NUMERICIDENTIFIER", "0|[1-9]\\d*"), $("NUMERICIDENTIFIERLOOSE", "\\d+"), $("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${g}*`), $("MAINVERSION", `(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})`), $("MAINVERSIONLOOSE", `(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})`), $("PRERELEASEIDENTIFIER", `(?:${c[u.NUMERICIDENTIFIER]}|${c[u.NONNUMERICIDENTIFIER]})`), $("PRERELEASEIDENTIFIERLOOSE", `(?:${c[u.NUMERICIDENTIFIERLOOSE]}|${c[u.NONNUMERICIDENTIFIER]})`), $("PRERELEASE", `(?:-(${c[u.PRERELEASEIDENTIFIER]}(?:\\.${c[u.PRERELEASEIDENTIFIER]})*))`), $("PRERELEASELOOSE", `(?:-?(${c[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[u.PRERELEASEIDENTIFIERLOOSE]})*))`), $("BUILDIDENTIFIER", `${g}+`), $("BUILD", `(?:\\+(${c[u.BUILDIDENTIFIER]}(?:\\.${c[u.BUILDIDENTIFIER]})*))`), $("FULLPLAIN", `v?${c[u.MAINVERSION]}${c[u.PRERELEASE]}?${c[u.BUILD]}?`), $("FULL", `^${c[u.FULLPLAIN]}$`), $("LOOSEPLAIN", `[v=\\s]*${c[u.MAINVERSIONLOOSE]}${c[u.PRERELEASELOOSE]}?${c[u.BUILD]}?`), $("LOOSE", `^${c[u.LOOSEPLAIN]}$`), $("GTLT", "((?:<|>)?=?)"), $("XRANGEIDENTIFIERLOOSE", `${c[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`), $("XRANGEIDENTIFIER", `${c[u.NUMERICIDENTIFIER]}|x|X|\\*`), $("XRANGEPLAIN", `[v=\\s]*(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:${c[u.PRERELEASE]})?${c[u.BUILD]}?)?)?`), $("XRANGEPLAINLOOSE", `[v=\\s]*(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:${c[u.PRERELEASELOOSE]})?${c[u.BUILD]}?)?)?`), $("XRANGE", `^${c[u.GTLT]}\\s*${c[u.XRANGEPLAIN]}$`), $("XRANGELOOSE", `^${c[u.GTLT]}\\s*${c[u.XRANGEPLAINLOOSE]}$`), $("COERCEPLAIN", `(^|[^\\d])(\\d{1,${t}})(?:\\.(\\d{1,${t}}))?(?:\\.(\\d{1,${t}}))?`), $("COERCE", `${c[u.COERCEPLAIN]}(?:$|[^\\d])`), $("COERCEFULL", c[u.COERCEPLAIN] + `(?:${c[u.PRERELEASE]})?(?:${c[u.BUILD]})?(?:$|[^\\d])`), $("COERCERTL", c[u.COERCE], !0), $("COERCERTLFULL", c[u.COERCEFULL], !0), $("LONETILDE", "(?:~>?)"), $("TILDETRIM", `(\\s*)${c[u.LONETILDE]}\\s+`, !0), e.tildeTrimReplace = "$1~", $("TILDE", `^${c[u.LONETILDE]}${c[u.XRANGEPLAIN]}$`), $("TILDELOOSE", `^${c[u.LONETILDE]}${c[u.XRANGEPLAINLOOSE]}$`), $("LONECARET", "(?:\\^)"), $("CARETTRIM", `(\\s*)${c[u.LONECARET]}\\s+`, !0), e.caretTrimReplace = "$1^", $("CARET", `^${c[u.LONECARET]}${c[u.XRANGEPLAIN]}$`), $("CARETLOOSE", `^${c[u.LONECARET]}${c[u.XRANGEPLAINLOOSE]}$`), $("COMPARATORLOOSE", `^${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]})$|^$`), $("COMPARATOR", `^${c[u.GTLT]}\\s*(${c[u.FULLPLAIN]})$|^$`), $("COMPARATORTRIM", `(\\s*)${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]}|${c[u.XRANGEPLAIN]})`, !0), e.comparatorTrimReplace = "$1$2$3", $("HYPHENRANGE", `^\\s*(${c[u.XRANGEPLAIN]})\\s+-\\s+(${c[u.XRANGEPLAIN]})\\s*$`), $("HYPHENRANGELOOSE", `^\\s*(${c[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[u.XRANGEPLAINLOOSE]})\\s*$`), $("STAR", "(<|>)?=?\\s*\\*"), $("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$"), $("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
|
|
2083
2083
|
})(ot, ot.exports);
|
|
2084
2084
|
var Ie = ot.exports;
|
|
2085
2085
|
const bs = Object.freeze({ loose: !0 }), gs = Object.freeze({}), ys = (r) => r ? typeof r != "object" ? bs : r : gs;
|
|
2086
2086
|
var mt = ys;
|
|
2087
|
-
const
|
|
2088
|
-
const t =
|
|
2087
|
+
const kt = /^[0-9]+$/, vr = (r, e) => {
|
|
2088
|
+
const t = kt.test(r), n = kt.test(e);
|
|
2089
2089
|
return t && n && (r = +r, e = +e), r === e ? 0 : t && !n ? -1 : n && !t ? 1 : r < e ? -1 : 1;
|
|
2090
2090
|
}, $s = (r, e) => vr(e, r);
|
|
2091
2091
|
var br = {
|
|
2092
2092
|
compareIdentifiers: vr,
|
|
2093
2093
|
rcompareIdentifiers: $s
|
|
2094
2094
|
};
|
|
2095
|
-
const Oe = je, { MAX_LENGTH:
|
|
2095
|
+
const Oe = je, { MAX_LENGTH: xt, MAX_SAFE_INTEGER: Se } = Fe, { safeRe: Vt, t: Ft } = Ie, _s = mt, { compareIdentifiers: he } = br;
|
|
2096
2096
|
let Es = class ie {
|
|
2097
2097
|
constructor(e, t) {
|
|
2098
2098
|
if (t = _s(t), e instanceof ie) {
|
|
@@ -2101,9 +2101,9 @@ let Es = class ie {
|
|
|
2101
2101
|
e = e.version;
|
|
2102
2102
|
} else if (typeof e != "string")
|
|
2103
2103
|
throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);
|
|
2104
|
-
if (e.length >
|
|
2104
|
+
if (e.length > xt)
|
|
2105
2105
|
throw new TypeError(
|
|
2106
|
-
`version is longer than ${
|
|
2106
|
+
`version is longer than ${xt} characters`
|
|
2107
2107
|
);
|
|
2108
2108
|
Oe("SemVer", e, t), this.options = t, this.loose = !!t.loose, this.includePrerelease = !!t.includePrerelease;
|
|
2109
2109
|
const n = e.trim().match(t.loose ? Vt[Ft.LOOSE] : Vt[Ft.FULL]);
|
|
@@ -2232,7 +2232,7 @@ let Es = class ie {
|
|
|
2232
2232
|
}
|
|
2233
2233
|
};
|
|
2234
2234
|
var ee = Es;
|
|
2235
|
-
const jt = ee,
|
|
2235
|
+
const jt = ee, Rs = (r, e, t = !1) => {
|
|
2236
2236
|
if (r instanceof jt)
|
|
2237
2237
|
return r;
|
|
2238
2238
|
try {
|
|
@@ -2243,9 +2243,9 @@ const jt = ee, ws = (r, e, t = !1) => {
|
|
|
2243
2243
|
throw n;
|
|
2244
2244
|
}
|
|
2245
2245
|
};
|
|
2246
|
-
var $e =
|
|
2247
|
-
const
|
|
2248
|
-
const t =
|
|
2246
|
+
var $e = Rs;
|
|
2247
|
+
const ws = $e, Is = (r, e) => {
|
|
2248
|
+
const t = ws(r, e);
|
|
2249
2249
|
return t ? t.version : null;
|
|
2250
2250
|
};
|
|
2251
2251
|
var As = Is;
|
|
@@ -2253,8 +2253,8 @@ const Os = $e, Ss = (r, e) => {
|
|
|
2253
2253
|
const t = Os(r.trim().replace(/^[=v]+/, ""), e);
|
|
2254
2254
|
return t ? t.version : null;
|
|
2255
2255
|
};
|
|
2256
|
-
var
|
|
2257
|
-
const Mt = ee,
|
|
2256
|
+
var Ts = Ss;
|
|
2257
|
+
const Mt = ee, Ps = (r, e, t, n, s) => {
|
|
2258
2258
|
typeof t == "string" && (s = n, n = t, t = void 0);
|
|
2259
2259
|
try {
|
|
2260
2260
|
return new Mt(
|
|
@@ -2265,7 +2265,7 @@ const Mt = ee, Ts = (r, e, t, n, s) => {
|
|
|
2265
2265
|
return null;
|
|
2266
2266
|
}
|
|
2267
2267
|
};
|
|
2268
|
-
var Ls =
|
|
2268
|
+
var Ls = Ps;
|
|
2269
2269
|
const Ut = $e, Ns = (r, e) => {
|
|
2270
2270
|
const t = Ut(r, null, !0), n = Ut(e, null, !0), s = t.compare(n);
|
|
2271
2271
|
if (s === 0)
|
|
@@ -2277,8 +2277,8 @@ const Ut = $e, Ns = (r, e) => {
|
|
|
2277
2277
|
return t.major !== n.major ? b + "major" : t.minor !== n.minor ? b + "minor" : t.patch !== n.patch ? b + "patch" : "prerelease";
|
|
2278
2278
|
};
|
|
2279
2279
|
var Cs = Ns;
|
|
2280
|
-
const
|
|
2281
|
-
var Vs =
|
|
2280
|
+
const ks = ee, xs = (r, e) => new ks(r, e).major;
|
|
2281
|
+
var Vs = xs;
|
|
2282
2282
|
const Fs = ee, js = (r, e) => new Fs(r, e).minor;
|
|
2283
2283
|
var Ms = js;
|
|
2284
2284
|
const Us = ee, Ds = (r, e) => new Us(r, e).patch;
|
|
@@ -2287,18 +2287,18 @@ const Bs = $e, Ks = (r, e) => {
|
|
|
2287
2287
|
const t = Bs(r, e);
|
|
2288
2288
|
return t && t.prerelease.length ? t.prerelease : null;
|
|
2289
2289
|
};
|
|
2290
|
-
var
|
|
2291
|
-
const Dt = ee,
|
|
2292
|
-
var ae =
|
|
2293
|
-
const
|
|
2294
|
-
var Ys =
|
|
2290
|
+
var Hs = Ks;
|
|
2291
|
+
const Dt = ee, zs = (r, e, t) => new Dt(r, t).compare(new Dt(e, t));
|
|
2292
|
+
var ae = zs;
|
|
2293
|
+
const Xs = ae, qs = (r, e, t) => Xs(e, r, t);
|
|
2294
|
+
var Ys = qs;
|
|
2295
2295
|
const Ws = ae, Js = (r, e) => Ws(r, e, !0);
|
|
2296
|
-
var
|
|
2297
|
-
const Gt = ee,
|
|
2296
|
+
var Qs = Js;
|
|
2297
|
+
const Gt = ee, Zs = (r, e, t) => {
|
|
2298
2298
|
const n = new Gt(r, t), s = new Gt(e, t);
|
|
2299
2299
|
return n.compare(s) || n.compareBuild(s);
|
|
2300
2300
|
};
|
|
2301
|
-
var pt =
|
|
2301
|
+
var pt = Zs;
|
|
2302
2302
|
const ea = pt, ta = (r, e) => r.sort((t, n) => ea(t, n, e));
|
|
2303
2303
|
var ra = ta;
|
|
2304
2304
|
const na = pt, sa = (r, e) => r.sort((t, n) => na(n, t, e));
|
|
@@ -2315,7 +2315,7 @@ const pa = ae, ha = (r, e, t) => pa(r, e, t) >= 0;
|
|
|
2315
2315
|
var vt = ha;
|
|
2316
2316
|
const va = ae, ba = (r, e, t) => va(r, e, t) <= 0;
|
|
2317
2317
|
var bt = ba;
|
|
2318
|
-
const ga = gr, ya = yr, $a = Me, _a = vt, Ea = ht,
|
|
2318
|
+
const ga = gr, ya = yr, $a = Me, _a = vt, Ea = ht, Ra = bt, wa = (r, e, t, n) => {
|
|
2319
2319
|
switch (e) {
|
|
2320
2320
|
case "===":
|
|
2321
2321
|
return typeof r == "object" && (r = r.version), typeof t == "object" && (t = t.version), r === t;
|
|
@@ -2334,13 +2334,13 @@ const ga = gr, ya = yr, $a = Me, _a = vt, Ea = ht, wa = bt, Ra = (r, e, t, n) =>
|
|
|
2334
2334
|
case "<":
|
|
2335
2335
|
return Ea(r, t, n);
|
|
2336
2336
|
case "<=":
|
|
2337
|
-
return
|
|
2337
|
+
return Ra(r, t, n);
|
|
2338
2338
|
default:
|
|
2339
2339
|
throw new TypeError(`Invalid operator: ${e}`);
|
|
2340
2340
|
}
|
|
2341
2341
|
};
|
|
2342
|
-
var $r =
|
|
2343
|
-
const Ia = ee, Aa = $e, { safeRe:
|
|
2342
|
+
var $r = wa;
|
|
2343
|
+
const Ia = ee, Aa = $e, { safeRe: Te, t: Pe } = Ie, Oa = (r, e) => {
|
|
2344
2344
|
if (r instanceof Ia)
|
|
2345
2345
|
return r;
|
|
2346
2346
|
if (typeof r == "number" && (r = String(r)), typeof r != "string")
|
|
@@ -2348,9 +2348,9 @@ const Ia = ee, Aa = $e, { safeRe: Pe, t: Te } = Ie, Oa = (r, e) => {
|
|
|
2348
2348
|
e = e || {};
|
|
2349
2349
|
let t = null;
|
|
2350
2350
|
if (!e.rtl)
|
|
2351
|
-
t = r.match(e.includePrerelease ? Pe
|
|
2351
|
+
t = r.match(e.includePrerelease ? Te[Pe.COERCEFULL] : Te[Pe.COERCE]);
|
|
2352
2352
|
else {
|
|
2353
|
-
const c = e.includePrerelease ? Pe
|
|
2353
|
+
const c = e.includePrerelease ? Te[Pe.COERCERTLFULL] : Te[Pe.COERCERTL];
|
|
2354
2354
|
let u;
|
|
2355
2355
|
for (; (u = c.exec(r)) && (!t || t.index + t[0].length !== r.length); )
|
|
2356
2356
|
(!t || u.index + u[0].length !== t.index + t[0].length) && (t = u), c.lastIndex = u.index + u[1].length + u[2].length;
|
|
@@ -2362,7 +2362,7 @@ const Ia = ee, Aa = $e, { safeRe: Pe, t: Te } = Ie, Oa = (r, e) => {
|
|
|
2362
2362
|
return Aa(`${n}.${s}.${o}${i}${d}`, e);
|
|
2363
2363
|
};
|
|
2364
2364
|
var Sa = Oa;
|
|
2365
|
-
class
|
|
2365
|
+
class Ta {
|
|
2366
2366
|
constructor() {
|
|
2367
2367
|
this.max = 1e3, this.map = /* @__PURE__ */ new Map();
|
|
2368
2368
|
}
|
|
@@ -2385,7 +2385,7 @@ class Pa {
|
|
|
2385
2385
|
return this;
|
|
2386
2386
|
}
|
|
2387
2387
|
}
|
|
2388
|
-
var
|
|
2388
|
+
var Pa = Ta, Ye, Bt;
|
|
2389
2389
|
function oe() {
|
|
2390
2390
|
if (Bt)
|
|
2391
2391
|
return Ye;
|
|
@@ -2397,12 +2397,12 @@ function oe() {
|
|
|
2397
2397
|
return m.loose === !!I.loose && m.includePrerelease === !!I.includePrerelease ? m : new e(m.raw, I);
|
|
2398
2398
|
if (m instanceof o)
|
|
2399
2399
|
return this.raw = m.value, this.set = [[m]], this.formatted = void 0, this;
|
|
2400
|
-
if (this.options = I, this.loose = !!I.loose, this.includePrerelease = !!I.includePrerelease, this.raw = m.trim().replace(r, " "), this.set = this.raw.split("||").map((
|
|
2400
|
+
if (this.options = I, this.loose = !!I.loose, this.includePrerelease = !!I.includePrerelease, this.raw = m.trim().replace(r, " "), this.set = this.raw.split("||").map((R) => this.parseRange(R.trim())).filter((R) => R.length), !this.set.length)
|
|
2401
2401
|
throw new TypeError(`Invalid SemVer Range: ${this.raw}`);
|
|
2402
2402
|
if (this.set.length > 1) {
|
|
2403
|
-
const
|
|
2403
|
+
const R = this.set[0];
|
|
2404
2404
|
if (this.set = this.set.filter((h) => !y(h[0])), this.set.length === 0)
|
|
2405
|
-
this.set = [
|
|
2405
|
+
this.set = [R];
|
|
2406
2406
|
else if (this.set.length > 1) {
|
|
2407
2407
|
for (const h of this.set)
|
|
2408
2408
|
if (h.length === 1 && C(h[0])) {
|
|
@@ -2419,8 +2419,8 @@ function oe() {
|
|
|
2419
2419
|
for (let m = 0; m < this.set.length; m++) {
|
|
2420
2420
|
m > 0 && (this.formatted += "||");
|
|
2421
2421
|
const I = this.set[m];
|
|
2422
|
-
for (let
|
|
2423
|
-
|
|
2422
|
+
for (let R = 0; R < I.length; R++)
|
|
2423
|
+
R > 0 && (this.formatted += " "), this.formatted += I[R].toString().trim();
|
|
2424
2424
|
}
|
|
2425
2425
|
}
|
|
2426
2426
|
return this.formatted;
|
|
@@ -2432,12 +2432,12 @@ function oe() {
|
|
|
2432
2432
|
return this.range;
|
|
2433
2433
|
}
|
|
2434
2434
|
parseRange(m) {
|
|
2435
|
-
const
|
|
2435
|
+
const R = ((this.options.includePrerelease && _) | (this.options.loose && $)) + ":" + m, h = n.get(R);
|
|
2436
2436
|
if (h)
|
|
2437
2437
|
return h;
|
|
2438
|
-
const O = this.options.loose,
|
|
2439
|
-
m = m.replace(
|
|
2440
|
-
let G = m.split(" ").map((j) =>
|
|
2438
|
+
const O = this.options.loose, k = O ? c[u.HYPHENRANGELOOSE] : c[u.HYPHENRANGE];
|
|
2439
|
+
m = m.replace(k, A(this.options.includePrerelease)), i("hyphen replace", m), m = m.replace(c[u.COMPARATORTRIM], b), i("comparator trim", m), m = m.replace(c[u.TILDETRIM], g), i("tilde trim", m), m = m.replace(c[u.CARETTRIM], p), i("caret trim", m);
|
|
2440
|
+
let G = m.split(" ").map((j) => x(j, this.options)).join(" ").split(/\s+/).map((j) => v(j, this.options));
|
|
2441
2441
|
O && (G = G.filter((j) => (i("loose invalid filter", j, this.options), !!j.match(c[u.COMPARATORLOOSE])))), i("range list", G);
|
|
2442
2442
|
const V = /* @__PURE__ */ new Map(), L = G.map((j) => new o(j, this.options));
|
|
2443
2443
|
for (const j of L) {
|
|
@@ -2447,12 +2447,12 @@ function oe() {
|
|
|
2447
2447
|
}
|
|
2448
2448
|
V.size > 1 && V.has("") && V.delete("");
|
|
2449
2449
|
const B = [...V.values()];
|
|
2450
|
-
return n.set(
|
|
2450
|
+
return n.set(R, B), B;
|
|
2451
2451
|
}
|
|
2452
2452
|
intersects(m, I) {
|
|
2453
2453
|
if (!(m instanceof e))
|
|
2454
2454
|
throw new TypeError("a Range is required");
|
|
2455
|
-
return this.set.some((
|
|
2455
|
+
return this.set.some((R) => N(R, I) && m.set.some((h) => N(h, I) && R.every((O) => h.every((k) => O.intersects(k, I)))));
|
|
2456
2456
|
}
|
|
2457
2457
|
// if ANY of the sets match ALL of its comparators, then pass
|
|
2458
2458
|
test(m) {
|
|
@@ -2465,13 +2465,13 @@ function oe() {
|
|
|
2465
2465
|
return !1;
|
|
2466
2466
|
}
|
|
2467
2467
|
for (let I = 0; I < this.set.length; I++)
|
|
2468
|
-
if (
|
|
2468
|
+
if (T(this.set[I], m, this.options))
|
|
2469
2469
|
return !0;
|
|
2470
2470
|
return !1;
|
|
2471
2471
|
}
|
|
2472
2472
|
}
|
|
2473
2473
|
Ye = e;
|
|
2474
|
-
const t =
|
|
2474
|
+
const t = Pa, n = new t(), s = mt, o = Ue(), i = je, d = ee, {
|
|
2475
2475
|
safeRe: c,
|
|
2476
2476
|
t: u,
|
|
2477
2477
|
comparatorTrimReplace: b,
|
|
@@ -2479,42 +2479,42 @@ function oe() {
|
|
|
2479
2479
|
caretTrimReplace: p
|
|
2480
2480
|
} = Ie, { FLAG_INCLUDE_PRERELEASE: _, FLAG_LOOSE: $ } = Fe, y = (f) => f.value === "<0.0.0-0", C = (f) => f.value === "", N = (f, m) => {
|
|
2481
2481
|
let I = !0;
|
|
2482
|
-
const
|
|
2483
|
-
let h =
|
|
2484
|
-
for (; I &&
|
|
2485
|
-
I =
|
|
2482
|
+
const R = f.slice();
|
|
2483
|
+
let h = R.pop();
|
|
2484
|
+
for (; I && R.length; )
|
|
2485
|
+
I = R.every((O) => h.intersects(O, m)), h = R.pop();
|
|
2486
2486
|
return I;
|
|
2487
|
-
},
|
|
2487
|
+
}, x = (f, m) => (i("comp", f, m), f = W(f, m), i("caret", f), f = M(f, m), i("tildes", f), f = q(f, m), i("xrange", f), f = l(f, m), i("stars", f), f), S = (f) => !f || f.toLowerCase() === "x" || f === "*", M = (f, m) => f.trim().split(/\s+/).map((I) => Y(I, m)).join(" "), Y = (f, m) => {
|
|
2488
2488
|
const I = m.loose ? c[u.TILDELOOSE] : c[u.TILDE];
|
|
2489
|
-
return f.replace(I, (
|
|
2490
|
-
i("tilde", f,
|
|
2489
|
+
return f.replace(I, (R, h, O, k, G) => {
|
|
2490
|
+
i("tilde", f, R, h, O, k, G);
|
|
2491
2491
|
let V;
|
|
2492
|
-
return S(h) ? V = "" : S(O) ? V = `>=${h}.0.0 <${+h + 1}.0.0-0` : S(
|
|
2492
|
+
return S(h) ? V = "" : S(O) ? V = `>=${h}.0.0 <${+h + 1}.0.0-0` : S(k) ? V = `>=${h}.${O}.0 <${h}.${+O + 1}.0-0` : G ? (i("replaceTilde pr", G), V = `>=${h}.${O}.${k}-${G} <${h}.${+O + 1}.0-0`) : V = `>=${h}.${O}.${k} <${h}.${+O + 1}.0-0`, i("tilde return", V), V;
|
|
2493
2493
|
});
|
|
2494
2494
|
}, W = (f, m) => f.trim().split(/\s+/).map((I) => U(I, m)).join(" "), U = (f, m) => {
|
|
2495
2495
|
i("caret", f, m);
|
|
2496
|
-
const I = m.loose ? c[u.CARETLOOSE] : c[u.CARET],
|
|
2497
|
-
return f.replace(I, (h, O,
|
|
2498
|
-
i("caret", f, h, O,
|
|
2496
|
+
const I = m.loose ? c[u.CARETLOOSE] : c[u.CARET], R = m.includePrerelease ? "-0" : "";
|
|
2497
|
+
return f.replace(I, (h, O, k, G, V) => {
|
|
2498
|
+
i("caret", f, h, O, k, G, V);
|
|
2499
2499
|
let L;
|
|
2500
|
-
return S(O) ? L = "" : S(
|
|
2500
|
+
return S(O) ? L = "" : S(k) ? L = `>=${O}.0.0${R} <${+O + 1}.0.0-0` : S(G) ? O === "0" ? L = `>=${O}.${k}.0${R} <${O}.${+k + 1}.0-0` : L = `>=${O}.${k}.0${R} <${+O + 1}.0.0-0` : V ? (i("replaceCaret pr", V), O === "0" ? k === "0" ? L = `>=${O}.${k}.${G}-${V} <${O}.${k}.${+G + 1}-0` : L = `>=${O}.${k}.${G}-${V} <${O}.${+k + 1}.0-0` : L = `>=${O}.${k}.${G}-${V} <${+O + 1}.0.0-0`) : (i("no pr"), O === "0" ? k === "0" ? L = `>=${O}.${k}.${G}${R} <${O}.${k}.${+G + 1}-0` : L = `>=${O}.${k}.${G}${R} <${O}.${+k + 1}.0-0` : L = `>=${O}.${k}.${G} <${+O + 1}.0.0-0`), i("caret return", L), L;
|
|
2501
2501
|
});
|
|
2502
|
-
},
|
|
2502
|
+
}, q = (f, m) => (i("replaceXRanges", f, m), f.split(/\s+/).map((I) => a(I, m)).join(" ")), a = (f, m) => {
|
|
2503
2503
|
f = f.trim();
|
|
2504
2504
|
const I = m.loose ? c[u.XRANGELOOSE] : c[u.XRANGE];
|
|
2505
|
-
return f.replace(I, (
|
|
2506
|
-
i("xRange", f,
|
|
2507
|
-
const L = S(O), B = L || S(
|
|
2508
|
-
return h === "=" && te && (h = ""), V = m.includePrerelease ? "-0" : "", L ? h === ">" || h === "<" ?
|
|
2505
|
+
return f.replace(I, (R, h, O, k, G, V) => {
|
|
2506
|
+
i("xRange", f, R, h, O, k, G, V);
|
|
2507
|
+
const L = S(O), B = L || S(k), j = B || S(G), te = j;
|
|
2508
|
+
return h === "=" && te && (h = ""), V = m.includePrerelease ? "-0" : "", L ? h === ">" || h === "<" ? R = "<0.0.0-0" : R = "*" : h && te ? (B && (k = 0), G = 0, h === ">" ? (h = ">=", B ? (O = +O + 1, k = 0, G = 0) : (k = +k + 1, G = 0)) : h === "<=" && (h = "<", B ? O = +O + 1 : k = +k + 1), h === "<" && (V = "-0"), R = `${h + O}.${k}.${G}${V}`) : B ? R = `>=${O}.0.0${V} <${+O + 1}.0.0-0` : j && (R = `>=${O}.${k}.0${V} <${O}.${+k + 1}.0-0`), i("xRange return", R), R;
|
|
2509
2509
|
});
|
|
2510
|
-
}, l = (f, m) => (i("replaceStars", f, m), f.trim().replace(c[u.STAR], "")), v = (f, m) => (i("replaceGTE0", f, m), f.trim().replace(c[m.includePrerelease ? u.GTE0PRE : u.GTE0], "")), A = (f) => (m, I,
|
|
2511
|
-
for (let
|
|
2512
|
-
if (!f[
|
|
2510
|
+
}, l = (f, m) => (i("replaceStars", f, m), f.trim().replace(c[u.STAR], "")), v = (f, m) => (i("replaceGTE0", f, m), f.trim().replace(c[m.includePrerelease ? u.GTE0PRE : u.GTE0], "")), A = (f) => (m, I, R, h, O, k, G, V, L, B, j, te) => (S(R) ? I = "" : S(h) ? I = `>=${R}.0.0${f ? "-0" : ""}` : S(O) ? I = `>=${R}.${h}.0${f ? "-0" : ""}` : k ? I = `>=${I}` : I = `>=${I}${f ? "-0" : ""}`, S(L) ? V = "" : S(B) ? V = `<${+L + 1}.0.0-0` : S(j) ? V = `<${L}.${+B + 1}.0-0` : te ? V = `<=${L}.${B}.${j}-${te}` : f ? V = `<${L}.${B}.${+j + 1}-0` : V = `<=${V}`, `${I} ${V}`.trim()), T = (f, m, I) => {
|
|
2511
|
+
for (let R = 0; R < f.length; R++)
|
|
2512
|
+
if (!f[R].test(m))
|
|
2513
2513
|
return !1;
|
|
2514
2514
|
if (m.prerelease.length && !I.includePrerelease) {
|
|
2515
|
-
for (let
|
|
2516
|
-
if (i(f[
|
|
2517
|
-
const h = f[
|
|
2515
|
+
for (let R = 0; R < f.length; R++)
|
|
2516
|
+
if (i(f[R].semver), f[R].semver !== o.ANY && f[R].semver.prerelease.length > 0) {
|
|
2517
|
+
const h = f[R].semver;
|
|
2518
2518
|
if (h.major === m.major && h.minor === m.minor && h.patch === m.patch)
|
|
2519
2519
|
return !0;
|
|
2520
2520
|
}
|
|
@@ -2581,8 +2581,8 @@ const La = oe(), Na = (r, e, t) => {
|
|
|
2581
2581
|
return e.test(r);
|
|
2582
2582
|
};
|
|
2583
2583
|
var De = Na;
|
|
2584
|
-
const Ca = oe(),
|
|
2585
|
-
var
|
|
2584
|
+
const Ca = oe(), ka = (r, e) => new Ca(r, e).set.map((t) => t.map((n) => n.value).join(" ").trim().split(" "));
|
|
2585
|
+
var xa = ka;
|
|
2586
2586
|
const Va = ee, Fa = oe(), ja = (r, e, t) => {
|
|
2587
2587
|
let n = null, s = null, o = null;
|
|
2588
2588
|
try {
|
|
@@ -2607,7 +2607,7 @@ const Ua = ee, Da = oe(), Ga = (r, e, t) => {
|
|
|
2607
2607
|
}), n;
|
|
2608
2608
|
};
|
|
2609
2609
|
var Ba = Ga;
|
|
2610
|
-
const Je = ee, Ka = oe(),
|
|
2610
|
+
const Je = ee, Ka = oe(), Ht = Me, Ha = (r, e) => {
|
|
2611
2611
|
r = new Ka(r, e);
|
|
2612
2612
|
let t = new Je("0.0.0");
|
|
2613
2613
|
if (r.test(t) || (t = new Je("0.0.0-0"), r.test(t)))
|
|
@@ -2623,7 +2623,7 @@ const Je = ee, Ka = oe(), qt = Me, qa = (r, e) => {
|
|
|
2623
2623
|
d.prerelease.length === 0 ? d.patch++ : d.prerelease.push(0), d.raw = d.format();
|
|
2624
2624
|
case "":
|
|
2625
2625
|
case ">=":
|
|
2626
|
-
(!o ||
|
|
2626
|
+
(!o || Ht(d, o)) && (o = d);
|
|
2627
2627
|
break;
|
|
2628
2628
|
case "<":
|
|
2629
2629
|
case "<=":
|
|
@@ -2631,33 +2631,33 @@ const Je = ee, Ka = oe(), qt = Me, qa = (r, e) => {
|
|
|
2631
2631
|
default:
|
|
2632
2632
|
throw new Error(`Unexpected operation: ${i.operator}`);
|
|
2633
2633
|
}
|
|
2634
|
-
}), o && (!t ||
|
|
2634
|
+
}), o && (!t || Ht(t, o)) && (t = o);
|
|
2635
2635
|
}
|
|
2636
2636
|
return t && r.test(t) ? t : null;
|
|
2637
2637
|
};
|
|
2638
|
-
var
|
|
2639
|
-
const
|
|
2638
|
+
var za = Ha;
|
|
2639
|
+
const Xa = oe(), qa = (r, e) => {
|
|
2640
2640
|
try {
|
|
2641
|
-
return new
|
|
2641
|
+
return new Xa(r, e).range || "*";
|
|
2642
2642
|
} catch {
|
|
2643
2643
|
return null;
|
|
2644
2644
|
}
|
|
2645
2645
|
};
|
|
2646
|
-
var Ya =
|
|
2647
|
-
const Wa = ee, _r = Ue(), { ANY: Ja } = _r,
|
|
2648
|
-
r = new Wa(r, n), e = new
|
|
2646
|
+
var Ya = qa;
|
|
2647
|
+
const Wa = ee, _r = Ue(), { ANY: Ja } = _r, Qa = oe(), Za = De, zt = Me, Xt = ht, eo = bt, to = vt, ro = (r, e, t, n) => {
|
|
2648
|
+
r = new Wa(r, n), e = new Qa(e, n);
|
|
2649
2649
|
let s, o, i, d, c;
|
|
2650
2650
|
switch (t) {
|
|
2651
2651
|
case ">":
|
|
2652
|
-
s =
|
|
2652
|
+
s = zt, o = eo, i = Xt, d = ">", c = ">=";
|
|
2653
2653
|
break;
|
|
2654
2654
|
case "<":
|
|
2655
|
-
s =
|
|
2655
|
+
s = Xt, o = to, i = zt, d = "<", c = "<=";
|
|
2656
2656
|
break;
|
|
2657
2657
|
default:
|
|
2658
2658
|
throw new TypeError('Must provide a hilo val of "<" or ">"');
|
|
2659
2659
|
}
|
|
2660
|
-
if (
|
|
2660
|
+
if (Za(r, e, n))
|
|
2661
2661
|
return !1;
|
|
2662
2662
|
for (let u = 0; u < e.set.length; ++u) {
|
|
2663
2663
|
const b = e.set[u];
|
|
@@ -2676,7 +2676,7 @@ const no = gt, so = (r, e, t) => no(r, e, ">", t);
|
|
|
2676
2676
|
var ao = so;
|
|
2677
2677
|
const oo = gt, io = (r, e, t) => oo(r, e, "<", t);
|
|
2678
2678
|
var lo = io;
|
|
2679
|
-
const
|
|
2679
|
+
const qt = oe(), uo = (r, e, t) => (r = new qt(r, t), e = new qt(e, t), r.intersects(e, t));
|
|
2680
2680
|
var co = uo;
|
|
2681
2681
|
const fo = De, mo = ae;
|
|
2682
2682
|
var po = (r, e, t) => {
|
|
@@ -2692,7 +2692,7 @@ var po = (r, e, t) => {
|
|
|
2692
2692
|
const c = d.join(" || "), u = typeof e.raw == "string" ? e.raw : String(e);
|
|
2693
2693
|
return c.length < u.length ? c : e;
|
|
2694
2694
|
};
|
|
2695
|
-
const Yt = oe(), yt = Ue(), { ANY:
|
|
2695
|
+
const Yt = oe(), yt = Ue(), { ANY: Qe } = yt, Re = De, $t = ae, ho = (r, e, t = {}) => {
|
|
2696
2696
|
if (r === e)
|
|
2697
2697
|
return !0;
|
|
2698
2698
|
r = new Yt(r, t), e = new Yt(e, t);
|
|
@@ -2711,12 +2711,12 @@ const Yt = oe(), yt = Ue(), { ANY: Ze } = yt, we = De, $t = ae, ho = (r, e, t =
|
|
|
2711
2711
|
}, vo = [new yt(">=0.0.0-0")], Wt = [new yt(">=0.0.0")], bo = (r, e, t) => {
|
|
2712
2712
|
if (r === e)
|
|
2713
2713
|
return !0;
|
|
2714
|
-
if (r.length === 1 && r[0].semver ===
|
|
2715
|
-
if (e.length === 1 && e[0].semver ===
|
|
2714
|
+
if (r.length === 1 && r[0].semver === Qe) {
|
|
2715
|
+
if (e.length === 1 && e[0].semver === Qe)
|
|
2716
2716
|
return !0;
|
|
2717
2717
|
t.includePrerelease ? r = vo : r = Wt;
|
|
2718
2718
|
}
|
|
2719
|
-
if (e.length === 1 && e[0].semver ===
|
|
2719
|
+
if (e.length === 1 && e[0].semver === Qe) {
|
|
2720
2720
|
if (t.includePrerelease)
|
|
2721
2721
|
return !0;
|
|
2722
2722
|
e = Wt;
|
|
@@ -2724,7 +2724,7 @@ const Yt = oe(), yt = Ue(), { ANY: Ze } = yt, we = De, $t = ae, ho = (r, e, t =
|
|
|
2724
2724
|
const n = /* @__PURE__ */ new Set();
|
|
2725
2725
|
let s, o;
|
|
2726
2726
|
for (const _ of r)
|
|
2727
|
-
_.operator === ">" || _.operator === ">=" ? s = Jt(s, _, t) : _.operator === "<" || _.operator === "<=" ? o =
|
|
2727
|
+
_.operator === ">" || _.operator === ">=" ? s = Jt(s, _, t) : _.operator === "<" || _.operator === "<=" ? o = Qt(o, _, t) : n.add(_.semver);
|
|
2728
2728
|
if (n.size > 1)
|
|
2729
2729
|
return null;
|
|
2730
2730
|
let i;
|
|
@@ -2735,10 +2735,10 @@ const Yt = oe(), yt = Ue(), { ANY: Ze } = yt, we = De, $t = ae, ho = (r, e, t =
|
|
|
2735
2735
|
return null;
|
|
2736
2736
|
}
|
|
2737
2737
|
for (const _ of n) {
|
|
2738
|
-
if (s && !
|
|
2738
|
+
if (s && !Re(_, String(s), t) || o && !Re(_, String(o), t))
|
|
2739
2739
|
return null;
|
|
2740
2740
|
for (const $ of e)
|
|
2741
|
-
if (!
|
|
2741
|
+
if (!Re(_, String($), t))
|
|
2742
2742
|
return !1;
|
|
2743
2743
|
return !0;
|
|
2744
2744
|
}
|
|
@@ -2749,14 +2749,14 @@ const Yt = oe(), yt = Ue(), { ANY: Ze } = yt, we = De, $t = ae, ho = (r, e, t =
|
|
|
2749
2749
|
if (p && _.semver.prerelease && _.semver.prerelease.length && _.semver.major === p.major && _.semver.minor === p.minor && _.semver.patch === p.patch && (p = !1), _.operator === ">" || _.operator === ">=") {
|
|
2750
2750
|
if (d = Jt(s, _, t), d === _ && d !== s)
|
|
2751
2751
|
return !1;
|
|
2752
|
-
} else if (s.operator === ">=" && !
|
|
2752
|
+
} else if (s.operator === ">=" && !Re(s.semver, String(_), t))
|
|
2753
2753
|
return !1;
|
|
2754
2754
|
}
|
|
2755
2755
|
if (o) {
|
|
2756
2756
|
if (g && _.semver.prerelease && _.semver.prerelease.length && _.semver.major === g.major && _.semver.minor === g.minor && _.semver.patch === g.patch && (g = !1), _.operator === "<" || _.operator === "<=") {
|
|
2757
|
-
if (c =
|
|
2757
|
+
if (c = Qt(o, _, t), c === _ && c !== o)
|
|
2758
2758
|
return !1;
|
|
2759
|
-
} else if (o.operator === "<=" && !
|
|
2759
|
+
} else if (o.operator === "<=" && !Re(o.semver, String(_), t))
|
|
2760
2760
|
return !1;
|
|
2761
2761
|
}
|
|
2762
2762
|
if (!_.operator && (o || s) && i !== 0)
|
|
@@ -2768,31 +2768,31 @@ const Yt = oe(), yt = Ue(), { ANY: Ze } = yt, we = De, $t = ae, ho = (r, e, t =
|
|
|
2768
2768
|
return e;
|
|
2769
2769
|
const n = $t(r.semver, e.semver, t);
|
|
2770
2770
|
return n > 0 ? r : n < 0 || e.operator === ">" && r.operator === ">=" ? e : r;
|
|
2771
|
-
},
|
|
2771
|
+
}, Qt = (r, e, t) => {
|
|
2772
2772
|
if (!r)
|
|
2773
2773
|
return e;
|
|
2774
2774
|
const n = $t(r.semver, e.semver, t);
|
|
2775
2775
|
return n < 0 ? r : n > 0 || e.operator === "<" && r.operator === "<=" ? e : r;
|
|
2776
2776
|
};
|
|
2777
2777
|
var go = ho;
|
|
2778
|
-
const
|
|
2778
|
+
const Ze = Ie, Zt = Fe, yo = ee, er = br, $o = $e, _o = As, Eo = Ts, Ro = Ls, wo = Cs, Io = Vs, Ao = Ms, Oo = Gs, So = Hs, To = ae, Po = Ys, Lo = Qs, No = pt, Co = ra, ko = aa, xo = Me, Vo = ht, Fo = gr, jo = yr, Mo = vt, Uo = bt, Do = $r, Go = Sa, Bo = Ue(), Ko = oe(), Ho = De, zo = xa, Xo = Ma, qo = Ba, Yo = za, Wo = Ya, Jo = gt, Qo = ao, Zo = lo, ei = co, ti = po, ri = go;
|
|
2779
2779
|
var ni = {
|
|
2780
2780
|
parse: $o,
|
|
2781
2781
|
valid: _o,
|
|
2782
2782
|
clean: Eo,
|
|
2783
|
-
inc:
|
|
2784
|
-
diff:
|
|
2783
|
+
inc: Ro,
|
|
2784
|
+
diff: wo,
|
|
2785
2785
|
major: Io,
|
|
2786
2786
|
minor: Ao,
|
|
2787
2787
|
patch: Oo,
|
|
2788
2788
|
prerelease: So,
|
|
2789
|
-
compare:
|
|
2790
|
-
rcompare:
|
|
2789
|
+
compare: To,
|
|
2790
|
+
rcompare: Po,
|
|
2791
2791
|
compareLoose: Lo,
|
|
2792
2792
|
compareBuild: No,
|
|
2793
2793
|
sort: Co,
|
|
2794
|
-
rsort:
|
|
2795
|
-
gt:
|
|
2794
|
+
rsort: ko,
|
|
2795
|
+
gt: xo,
|
|
2796
2796
|
lt: Vo,
|
|
2797
2797
|
eq: Fo,
|
|
2798
2798
|
neq: jo,
|
|
@@ -2802,24 +2802,24 @@ var ni = {
|
|
|
2802
2802
|
coerce: Go,
|
|
2803
2803
|
Comparator: Bo,
|
|
2804
2804
|
Range: Ko,
|
|
2805
|
-
satisfies:
|
|
2806
|
-
toComparators:
|
|
2807
|
-
maxSatisfying:
|
|
2808
|
-
minSatisfying:
|
|
2805
|
+
satisfies: Ho,
|
|
2806
|
+
toComparators: zo,
|
|
2807
|
+
maxSatisfying: Xo,
|
|
2808
|
+
minSatisfying: qo,
|
|
2809
2809
|
minVersion: Yo,
|
|
2810
2810
|
validRange: Wo,
|
|
2811
2811
|
outside: Jo,
|
|
2812
|
-
gtr:
|
|
2813
|
-
ltr:
|
|
2812
|
+
gtr: Qo,
|
|
2813
|
+
ltr: Zo,
|
|
2814
2814
|
intersects: ei,
|
|
2815
2815
|
simplifyRange: ti,
|
|
2816
2816
|
subset: ri,
|
|
2817
2817
|
SemVer: yo,
|
|
2818
|
-
re:
|
|
2819
|
-
src:
|
|
2820
|
-
tokens:
|
|
2821
|
-
SEMVER_SPEC_VERSION:
|
|
2822
|
-
RELEASE_TYPES:
|
|
2818
|
+
re: Ze.re,
|
|
2819
|
+
src: Ze.src,
|
|
2820
|
+
tokens: Ze.t,
|
|
2821
|
+
SEMVER_SPEC_VERSION: Zt.SEMVER_SPEC_VERSION,
|
|
2822
|
+
RELEASE_TYPES: Zt.RELEASE_TYPES,
|
|
2823
2823
|
compareIdentifiers: er.compareIdentifiers,
|
|
2824
2824
|
rcompareIdentifiers: er.rcompareIdentifiers
|
|
2825
2825
|
};
|
|
@@ -2850,61 +2850,61 @@ function ai(r) {
|
|
|
2850
2850
|
function oi({ posVersion: r, payoutAccount: e }) {
|
|
2851
2851
|
return !!r && si(it.qrEPayment, r) ? !e || !e.enable ? "Payout account is required" : e.status !== ut.F_PAYOUT_ACCOUNT_STATUS.enum.APPROVED ? "Payout account under review" : !0 : `For POS ${ai(it.qrEPayment)} or above`;
|
|
2852
2852
|
}
|
|
2853
|
-
function
|
|
2853
|
+
function Rr(r) {
|
|
2854
2854
|
return {
|
|
2855
2855
|
id: r._id,
|
|
2856
2856
|
...r,
|
|
2857
2857
|
profile: {
|
|
2858
2858
|
...r.profile,
|
|
2859
|
-
address:
|
|
2859
|
+
address: we(r.profile.address)
|
|
2860
2860
|
},
|
|
2861
2861
|
allowEPayment: oi(r)
|
|
2862
2862
|
};
|
|
2863
2863
|
}
|
|
2864
2864
|
function et(r) {
|
|
2865
|
-
return
|
|
2865
|
+
return Rr(ft(r));
|
|
2866
2866
|
}
|
|
2867
2867
|
async function rr(r) {
|
|
2868
2868
|
const e = ft(r), t = [];
|
|
2869
2869
|
for (const n of e)
|
|
2870
|
-
t.push(await
|
|
2870
|
+
t.push(await Rr(n));
|
|
2871
2871
|
return t;
|
|
2872
2872
|
}
|
|
2873
2873
|
const Ve = {
|
|
2874
2874
|
async readRestaurant(r) {
|
|
2875
|
-
return await et(await
|
|
2875
|
+
return await et(await Xe().get(`/restaurants/${r}`));
|
|
2876
2876
|
},
|
|
2877
2877
|
async readRestaurants() {
|
|
2878
|
-
return await rr(await
|
|
2878
|
+
return await rr(await qe().get("/restaurants"));
|
|
2879
2879
|
},
|
|
2880
2880
|
async readRestaurantsByBusiness() {
|
|
2881
|
-
return await rr(await
|
|
2881
|
+
return await rr(await qe().get("/restaurant-list"));
|
|
2882
2882
|
},
|
|
2883
2883
|
async createRestaurant(r) {
|
|
2884
|
-
return await et(await
|
|
2884
|
+
return await et(await qe().post("/restaurants", r));
|
|
2885
2885
|
},
|
|
2886
2886
|
async updateRestaurantProfile(r, e) {
|
|
2887
2887
|
return await et(
|
|
2888
|
-
await
|
|
2888
|
+
await Xe().put(`/restaurants/${r}/profile`, e)
|
|
2889
2889
|
);
|
|
2890
2890
|
},
|
|
2891
2891
|
async updateRestaurantAttributes(r, e) {
|
|
2892
|
-
return ft(await
|
|
2892
|
+
return ft(await Xe().put(`/restaurants/${r}/attributes`, {
|
|
2893
2893
|
attributes: e
|
|
2894
2894
|
}));
|
|
2895
2895
|
}
|
|
2896
2896
|
}, tt = {
|
|
2897
2897
|
async get(r, e) {
|
|
2898
|
-
const t =
|
|
2898
|
+
const t = He(void 0, e), n = ze(t, r);
|
|
2899
2899
|
return await (await Br(n)).text();
|
|
2900
2900
|
},
|
|
2901
2901
|
async update(r, e, t) {
|
|
2902
|
-
const n =
|
|
2903
|
-
return await Kr(s, e), await
|
|
2902
|
+
const n = He(void 0, t), s = ze(n, r);
|
|
2903
|
+
return await Kr(s, e), await Hr(s);
|
|
2904
2904
|
},
|
|
2905
2905
|
async delete(r, e) {
|
|
2906
|
-
const t =
|
|
2907
|
-
await
|
|
2906
|
+
const t = He(void 0, e), n = ze(t, r);
|
|
2907
|
+
await zr(n);
|
|
2908
2908
|
}
|
|
2909
2909
|
}, de = {
|
|
2910
2910
|
async get(r) {
|
|
@@ -2981,7 +2981,7 @@ const li = () => {
|
|
|
2981
2981
|
await nr(e, t);
|
|
2982
2982
|
}
|
|
2983
2983
|
};
|
|
2984
|
-
}, ui = { class: "flex justify-center" }, ci = { class: "space-y-24" }, di = { class: "space-y-24" }, fi = { class: "flex gap-16 xs:flex-col xs:gap-24" }, mi = { class: "flex-1" }, pi = { class: "flex-1" }, hi = { class: "space-y-24" }, vi = { class: "space-y-24" }, bi = { class: "space-y-8" }, gi = { class: "space-y-24" }, sr = /* @__PURE__ */
|
|
2984
|
+
}, ui = { class: "flex justify-center" }, ci = { class: "space-y-24" }, di = { class: "space-y-24" }, fi = { class: "flex gap-16 xs:flex-col xs:gap-24" }, mi = { class: "flex-1" }, pi = { class: "flex-1" }, hi = { class: "space-y-24" }, vi = { class: "space-y-24" }, bi = { class: "space-y-8" }, gi = { class: "space-y-24" }, sr = /* @__PURE__ */ Z({
|
|
2985
2985
|
__name: "RestaurantForm",
|
|
2986
2986
|
props: {
|
|
2987
2987
|
restaurantId: {
|
|
@@ -3002,15 +3002,15 @@ const li = () => {
|
|
|
3002
3002
|
},
|
|
3003
3003
|
setup(r, { expose: e }) {
|
|
3004
3004
|
var I;
|
|
3005
|
-
const t = r, { restaurants: n, currentBusiness: s, restaurantAttributeSettings: o } = fe(), i = ct(), d = cr(i), { copyTextToClipboard: c } = ur(), u = ne(!1), b = (
|
|
3005
|
+
const t = r, { restaurants: n, currentBusiness: s, restaurantAttributeSettings: o } = fe(), i = ct(), d = cr(i), { copyTextToClipboard: c } = ur(), u = ne(!1), b = (R, h) => {
|
|
3006
3006
|
u.value = !u.value;
|
|
3007
|
-
}, g =
|
|
3008
|
-
var
|
|
3009
|
-
return (
|
|
3007
|
+
}, g = X(() => {
|
|
3008
|
+
var R;
|
|
3009
|
+
return (R = t.restaurant) == null ? void 0 : R.profile;
|
|
3010
3010
|
}), p = lt(
|
|
3011
3011
|
g.value ? ge(g.value) : {
|
|
3012
|
-
...
|
|
3013
|
-
address:
|
|
3012
|
+
...Tt(),
|
|
3013
|
+
address: we(Tt().address),
|
|
3014
3014
|
legalName: "",
|
|
3015
3015
|
sstRegNo: "",
|
|
3016
3016
|
description: "",
|
|
@@ -3051,17 +3051,17 @@ const li = () => {
|
|
|
3051
3051
|
}
|
|
3052
3052
|
}
|
|
3053
3053
|
}
|
|
3054
|
-
), _ = "https://
|
|
3054
|
+
), _ = "https://feedme.cc/", $ = X(() => fe().currentCountry.value), { t: y } = pe(), C = ne(
|
|
3055
3055
|
t.restaurantId ? y("settings.business.restaurant.form.title.update") : y("settings.business.restaurant.form.title.add")
|
|
3056
3056
|
), N = ne(((I = t.restaurant) == null ? void 0 : I.customAttributes) || {});
|
|
3057
|
-
async function
|
|
3058
|
-
Object.values(N.value).length !== 0 && await Ve.updateRestaurantAttributes(
|
|
3057
|
+
async function x(R) {
|
|
3058
|
+
Object.values(N.value).length !== 0 && await Ve.updateRestaurantAttributes(R, N.value);
|
|
3059
3059
|
}
|
|
3060
|
-
const S =
|
|
3061
|
-
function Y(
|
|
3060
|
+
const S = X(() => we(p.address)), M = X(() => S.value.formatted);
|
|
3061
|
+
function Y(R) {
|
|
3062
3062
|
var h;
|
|
3063
|
-
if (typeof
|
|
3064
|
-
const O = (h = n.value.find((
|
|
3063
|
+
if (typeof R == "string") {
|
|
3064
|
+
const O = (h = n.value.find((k) => k._id === R)) == null ? void 0 : h.profile.operatingHours;
|
|
3065
3065
|
O ? p.operatingHours = ge(O) : i.open({
|
|
3066
3066
|
title: y("settings.business.restaurant.form.sections.operation_hours.invalid"),
|
|
3067
3067
|
type: "error"
|
|
@@ -3069,50 +3069,50 @@ const li = () => {
|
|
|
3069
3069
|
}
|
|
3070
3070
|
}
|
|
3071
3071
|
function W() {
|
|
3072
|
-
const
|
|
3073
|
-
c(
|
|
3072
|
+
const R = _ + (p.url || t.restaurantId);
|
|
3073
|
+
c(R);
|
|
3074
3074
|
}
|
|
3075
3075
|
function U() {
|
|
3076
3076
|
p.thumbnailPhoto = void 0, p.newThumbnailPhoto = void 0;
|
|
3077
3077
|
}
|
|
3078
|
-
function
|
|
3078
|
+
function q() {
|
|
3079
3079
|
p.coverPhoto = void 0, p.newCoverPhoto = void 0;
|
|
3080
3080
|
}
|
|
3081
|
-
function a(
|
|
3082
|
-
p.newPhotos = p.newPhotos || [], p.newPhotos.push(
|
|
3081
|
+
function a(R) {
|
|
3082
|
+
p.newPhotos = p.newPhotos || [], p.newPhotos.push(R);
|
|
3083
3083
|
}
|
|
3084
3084
|
const l = li();
|
|
3085
3085
|
function v() {
|
|
3086
|
-
var
|
|
3086
|
+
var R, h;
|
|
3087
3087
|
if (b(), t.restaurantId) {
|
|
3088
|
-
if (!((
|
|
3088
|
+
if (!((R = s.value) != null && R.id))
|
|
3089
3089
|
return;
|
|
3090
3090
|
d.minor(async () => {
|
|
3091
|
-
var O,
|
|
3092
|
-
t.restaurant && (await
|
|
3091
|
+
var O, k;
|
|
3092
|
+
t.restaurant && (await x(t.restaurantId), await l.updateRestaurantProfile(t.restaurant, {
|
|
3093
3093
|
...p,
|
|
3094
3094
|
url: ((O = p.url) == null ? void 0 : O.trim()) || null,
|
|
3095
|
-
code: ((
|
|
3095
|
+
code: ((k = p.code) == null ? void 0 : k.trim()) || null
|
|
3096
3096
|
}), y("settings.business.restaurant.form.message.updated"));
|
|
3097
3097
|
});
|
|
3098
3098
|
} else {
|
|
3099
3099
|
if (!((h = s.value) != null && h.id))
|
|
3100
3100
|
return;
|
|
3101
3101
|
d.minor(async () => {
|
|
3102
|
-
var O,
|
|
3102
|
+
var O, k;
|
|
3103
3103
|
await l.createRestaurant(
|
|
3104
3104
|
s.value.id,
|
|
3105
3105
|
{
|
|
3106
3106
|
...p,
|
|
3107
3107
|
url: ((O = p.url) == null ? void 0 : O.trim()) || null,
|
|
3108
|
-
code: ((
|
|
3108
|
+
code: ((k = p.code) == null ? void 0 : k.trim()) || null
|
|
3109
3109
|
},
|
|
3110
3110
|
N.value
|
|
3111
3111
|
), y("settings.business.restaurant.form.message.created");
|
|
3112
3112
|
});
|
|
3113
3113
|
}
|
|
3114
3114
|
}
|
|
3115
|
-
const A =
|
|
3115
|
+
const A = X(() => ({
|
|
3116
3116
|
title: y("settings.business.restaurant.form.summary.title"),
|
|
3117
3117
|
items: [
|
|
3118
3118
|
{
|
|
@@ -3132,128 +3132,128 @@ const li = () => {
|
|
|
3132
3132
|
value: M.value
|
|
3133
3133
|
}
|
|
3134
3134
|
]
|
|
3135
|
-
})), { isAtMost:
|
|
3136
|
-
|
|
3135
|
+
})), { isAtMost: T } = ir();
|
|
3136
|
+
X(() => T("sm"));
|
|
3137
3137
|
const f = ne(null), m = Yr(f);
|
|
3138
|
-
return e({ trigger: b }), (
|
|
3139
|
-
const O =
|
|
3138
|
+
return e({ trigger: b }), (R, h) => {
|
|
3139
|
+
const O = z("FmTextField"), k = z("FmPhoneNumber"), G = z("FmTextarea"), V = z("FmButton");
|
|
3140
3140
|
return F(), K(se, null, [
|
|
3141
|
-
ue(
|
|
3141
|
+
ue(R.$slots, "trigger", Nr(Cr({
|
|
3142
3142
|
trigger: b
|
|
3143
3143
|
}))),
|
|
3144
|
-
|
|
3144
|
+
P(wn, {
|
|
3145
3145
|
title: C.value,
|
|
3146
3146
|
show: u.value,
|
|
3147
|
-
"primary-action": { label:
|
|
3147
|
+
"primary-action": { label: w(y)("common.save") },
|
|
3148
3148
|
"secondary-actions": [
|
|
3149
|
-
{ label:
|
|
3149
|
+
{ label: w(y)("settings.business.restaurant.actions.discard"), click: () => u.value = !1 }
|
|
3150
3150
|
],
|
|
3151
3151
|
onOnPrimary: v,
|
|
3152
3152
|
onOnCancel: h[17] || (h[17] = (L) => u.value = !1)
|
|
3153
3153
|
}, {
|
|
3154
|
-
"append-title":
|
|
3155
|
-
|
|
3154
|
+
"append-title": H(() => [
|
|
3155
|
+
w(T)("sm") ? (F(), Q(Ct, {
|
|
3156
3156
|
key: 0,
|
|
3157
3157
|
variant: "dialog",
|
|
3158
3158
|
title: A.value.title,
|
|
3159
3159
|
items: A.value.items
|
|
3160
3160
|
}, null, 8, ["title", "items"])) : le("", !0)
|
|
3161
3161
|
]),
|
|
3162
|
-
default:
|
|
3162
|
+
default: H(() => [
|
|
3163
3163
|
E("div", ui, [
|
|
3164
3164
|
E("div", {
|
|
3165
3165
|
ref_key: "formWrapper",
|
|
3166
3166
|
ref: f,
|
|
3167
3167
|
class: "py-24 pr-[400px] w-[1150px] xs:pr-0 sm:pr-0 xs:w-full"
|
|
3168
3168
|
}, [
|
|
3169
|
-
|
|
3169
|
+
w(T)("sm") ? le("", !0) : (F(), Q(Ct, {
|
|
3170
3170
|
key: 0,
|
|
3171
3171
|
class: "fixed",
|
|
3172
3172
|
style: Ne({
|
|
3173
3173
|
top: "85px",
|
|
3174
|
-
left:
|
|
3174
|
+
left: w(m).right - 400 + "px"
|
|
3175
3175
|
}),
|
|
3176
3176
|
variant: "full",
|
|
3177
3177
|
title: A.value.title,
|
|
3178
3178
|
items: A.value.items
|
|
3179
3179
|
}, null, 8, ["style", "title", "items"])),
|
|
3180
3180
|
E("div", ci, [
|
|
3181
|
-
|
|
3182
|
-
title:
|
|
3181
|
+
P(Ee, {
|
|
3182
|
+
title: w(y)("settings.business.restaurant.form.sections.basic_info.title")
|
|
3183
3183
|
}, {
|
|
3184
|
-
default:
|
|
3184
|
+
default: H(() => {
|
|
3185
3185
|
var L, B;
|
|
3186
3186
|
return [
|
|
3187
3187
|
E("div", di, [
|
|
3188
3188
|
E("div", null, [
|
|
3189
|
-
|
|
3190
|
-
label:
|
|
3189
|
+
P(O, {
|
|
3190
|
+
label: w(y)("settings.business.restaurant.form.sections.basic_info.code.label"),
|
|
3191
3191
|
modelValue: p.code,
|
|
3192
3192
|
"onUpdate:modelValue": h[0] || (h[0] = (j) => p.code = j),
|
|
3193
3193
|
"label-mark": "optional",
|
|
3194
|
-
"helper-text":
|
|
3194
|
+
"helper-text": w(y)("settings.business.restaurant.form.sections.basic_info.code.helper"),
|
|
3195
3195
|
disabled: ((L = g.value) == null ? void 0 : L.code) !== void 0 && ((B = g.value) == null ? void 0 : B.code) !== null
|
|
3196
3196
|
}, null, 8, ["label", "modelValue", "helper-text", "disabled"])
|
|
3197
3197
|
]),
|
|
3198
3198
|
E("div", null, [
|
|
3199
|
-
|
|
3200
|
-
label:
|
|
3199
|
+
P(O, {
|
|
3200
|
+
label: w(y)("settings.business.restaurant.form.sections.basic_info.name.label"),
|
|
3201
3201
|
modelValue: p.name,
|
|
3202
3202
|
"onUpdate:modelValue": h[1] || (h[1] = (j) => p.name = j),
|
|
3203
3203
|
"label-mark": "required",
|
|
3204
|
-
rules: [
|
|
3204
|
+
rules: [w(ce)]
|
|
3205
3205
|
}, null, 8, ["label", "modelValue", "rules"])
|
|
3206
3206
|
]),
|
|
3207
3207
|
E("div", null, [
|
|
3208
|
-
|
|
3209
|
-
label:
|
|
3208
|
+
P(O, {
|
|
3209
|
+
label: w(y)("settings.business.restaurant.form.sections.basic_info.legal_name.label"),
|
|
3210
3210
|
modelValue: p.legalName,
|
|
3211
3211
|
"onUpdate:modelValue": h[2] || (h[2] = (j) => p.legalName = j),
|
|
3212
3212
|
"label-mark": "required",
|
|
3213
|
-
rules: [
|
|
3213
|
+
rules: [w(ce)]
|
|
3214
3214
|
}, null, 8, ["label", "modelValue", "rules"])
|
|
3215
3215
|
]),
|
|
3216
3216
|
E("div", null, [
|
|
3217
|
-
|
|
3218
|
-
label:
|
|
3217
|
+
P(O, {
|
|
3218
|
+
label: w(y)("settings.business.restaurant.form.sections.basic_info.reg_no.label"),
|
|
3219
3219
|
modelValue: p.regNo,
|
|
3220
3220
|
"onUpdate:modelValue": h[3] || (h[3] = (j) => p.regNo = j),
|
|
3221
3221
|
"label-mark": "required",
|
|
3222
|
-
rules: [
|
|
3222
|
+
rules: [w(ce)]
|
|
3223
3223
|
}, null, 8, ["label", "modelValue", "rules"])
|
|
3224
3224
|
]),
|
|
3225
3225
|
E("div", null, [
|
|
3226
|
-
|
|
3226
|
+
P(O, {
|
|
3227
3227
|
modelValue: p.sstRegNo,
|
|
3228
3228
|
"onUpdate:modelValue": h[4] || (h[4] = (j) => p.sstRegNo = j),
|
|
3229
|
-
label:
|
|
3229
|
+
label: w(y)("settings.business.restaurant.form.sections.basic_info.tax_no.label"),
|
|
3230
3230
|
"label-mark": "optional"
|
|
3231
3231
|
}, null, 8, ["modelValue", "label"])
|
|
3232
3232
|
]),
|
|
3233
3233
|
E("div", fi, [
|
|
3234
3234
|
E("div", mi, [
|
|
3235
|
-
|
|
3235
|
+
P(k, {
|
|
3236
3236
|
class: "w-full",
|
|
3237
|
-
label:
|
|
3237
|
+
label: w(y)("settings.business.restaurant.form.sections.basic_info.contact.label"),
|
|
3238
3238
|
modelValue: p.phoneNo,
|
|
3239
3239
|
"onUpdate:modelValue": h[5] || (h[5] = (j) => p.phoneNo = j),
|
|
3240
3240
|
"label-mark": "optional"
|
|
3241
3241
|
}, null, 8, ["label", "modelValue"])
|
|
3242
3242
|
]),
|
|
3243
3243
|
E("div", pi, [
|
|
3244
|
-
|
|
3244
|
+
P(O, {
|
|
3245
3245
|
class: "w-full",
|
|
3246
3246
|
modelValue: p.email,
|
|
3247
3247
|
"onUpdate:modelValue": h[6] || (h[6] = (j) => p.email = j),
|
|
3248
|
-
label:
|
|
3248
|
+
label: w(y)("settings.business.restaurant.form.sections.basic_info.email.label"),
|
|
3249
3249
|
"label-mark": "optional"
|
|
3250
3250
|
}, null, 8, ["modelValue", "label"])
|
|
3251
3251
|
])
|
|
3252
3252
|
]),
|
|
3253
3253
|
E("div", null, [
|
|
3254
|
-
|
|
3255
|
-
label:
|
|
3256
|
-
"sub-label":
|
|
3254
|
+
P(be, {
|
|
3255
|
+
label: w(y)("settings.business.restaurant.form.sections.basic_info.image.label"),
|
|
3256
|
+
"sub-label": w(y)("settings.business.restaurant.form.sections.basic_info.image.optional"),
|
|
3257
3257
|
"previous-url": p.thumbnailPhoto,
|
|
3258
3258
|
modelValue: p.newThumbnailPhoto,
|
|
3259
3259
|
"onUpdate:modelValue": h[7] || (h[7] = (j) => p.newThumbnailPhoto = j),
|
|
@@ -3265,14 +3265,14 @@ const li = () => {
|
|
|
3265
3265
|
}),
|
|
3266
3266
|
_: 1
|
|
3267
3267
|
}, 8, ["title"]),
|
|
3268
|
-
|
|
3268
|
+
w(o).length > 0 ? (F(), K(se, { key: 0 }, [
|
|
3269
3269
|
h[18] || (h[18] = E("div", { class: "w-full h-[2px] bg-fm-color-neutral-gray-100" }, null, -1)),
|
|
3270
|
-
|
|
3271
|
-
title:
|
|
3272
|
-
"sub-title":
|
|
3270
|
+
P(Ee, {
|
|
3271
|
+
title: w(y)("settings.restaurantTagging.title"),
|
|
3272
|
+
"sub-title": w(y)("settings.restaurantTagging.subtitle")
|
|
3273
3273
|
}, {
|
|
3274
|
-
default:
|
|
3275
|
-
|
|
3274
|
+
default: H(() => [
|
|
3275
|
+
P(w(Fr), {
|
|
3276
3276
|
entity: "restaurant",
|
|
3277
3277
|
modelValue: N.value,
|
|
3278
3278
|
"onUpdate:modelValue": h[8] || (h[8] = (L) => N.value = L)
|
|
@@ -3282,16 +3282,16 @@ const li = () => {
|
|
|
3282
3282
|
}, 8, ["title", "sub-title"])
|
|
3283
3283
|
], 64)) : le("", !0),
|
|
3284
3284
|
h[19] || (h[19] = E("div", { class: "w-full h-[2px] bg-fm-color-neutral-gray-100" }, null, -1)),
|
|
3285
|
-
|
|
3286
|
-
title:
|
|
3285
|
+
P(Ee, {
|
|
3286
|
+
title: w(y)("settings.business.restaurant.form.sections.address.title")
|
|
3287
3287
|
}, {
|
|
3288
|
-
default:
|
|
3288
|
+
default: H(() => [
|
|
3289
3289
|
E("div", hi, [
|
|
3290
|
-
|
|
3290
|
+
P(Zn, {
|
|
3291
3291
|
modelValue: p.address,
|
|
3292
3292
|
"onUpdate:modelValue": h[9] || (h[9] = (L) => p.address = L)
|
|
3293
3293
|
}, null, 8, ["modelValue"]),
|
|
3294
|
-
|
|
3294
|
+
P(os, {
|
|
3295
3295
|
address: S.value,
|
|
3296
3296
|
modelValue: p.address.coordinates,
|
|
3297
3297
|
"onUpdate:modelValue": h[10] || (h[10] = (L) => p.address.coordinates = L)
|
|
@@ -3301,23 +3301,23 @@ const li = () => {
|
|
|
3301
3301
|
_: 1
|
|
3302
3302
|
}, 8, ["title"]),
|
|
3303
3303
|
h[20] || (h[20] = E("div", { class: "w-full h-[2px] bg-fm-color-neutral-gray-100" }, null, -1)),
|
|
3304
|
-
|
|
3305
|
-
title:
|
|
3304
|
+
P(Ee, {
|
|
3305
|
+
title: w(y)("settings.business.restaurant.form.sections.operation_hours.title")
|
|
3306
3306
|
}, {
|
|
3307
|
-
default:
|
|
3307
|
+
default: H(() => [
|
|
3308
3308
|
E("div", vi, [
|
|
3309
3309
|
E("div", bi, [
|
|
3310
|
-
|
|
3311
|
-
label:
|
|
3310
|
+
P(Lt, {
|
|
3311
|
+
label: w(y)("settings.business.restaurant.form.sections.operation_hours.copy_with"),
|
|
3312
3312
|
optional: !1
|
|
3313
3313
|
}, null, 8, ["label"]),
|
|
3314
|
-
|
|
3314
|
+
P(Xr, {
|
|
3315
3315
|
class: "w-[320px]",
|
|
3316
3316
|
"exclude-restaurants": [r.restaurantId ?? ""],
|
|
3317
3317
|
"model-value": "",
|
|
3318
3318
|
"onUpdate:modelValue": h[11] || (h[11] = (L) => Y(L))
|
|
3319
3319
|
}, null, 8, ["exclude-restaurants"]),
|
|
3320
|
-
|
|
3320
|
+
P(cs, {
|
|
3321
3321
|
modelValue: p.operatingHours,
|
|
3322
3322
|
"onUpdate:modelValue": h[12] || (h[12] = (L) => p.operatingHours = L)
|
|
3323
3323
|
}, null, 8, ["modelValue"])
|
|
@@ -3327,35 +3327,35 @@ const li = () => {
|
|
|
3327
3327
|
_: 1
|
|
3328
3328
|
}, 8, ["title"]),
|
|
3329
3329
|
h[21] || (h[21] = E("div", { class: "w-full h-[2px] bg-fm-color-neutral-gray-100" }, null, -1)),
|
|
3330
|
-
|
|
3331
|
-
title:
|
|
3330
|
+
P(Ee, {
|
|
3331
|
+
title: w(y)("settings.business.restaurant.form.sections.branding.title")
|
|
3332
3332
|
}, {
|
|
3333
|
-
default:
|
|
3333
|
+
default: H(() => [
|
|
3334
3334
|
E("div", gi, [
|
|
3335
|
-
|
|
3336
|
-
label:
|
|
3335
|
+
P(G, {
|
|
3336
|
+
label: w(y)("settings.business.restaurant.form.sections.branding.description"),
|
|
3337
3337
|
"model-value": p.description ?? "",
|
|
3338
3338
|
"onUpdate:modelValue": h[13] || (h[13] = (L) => p.description = L)
|
|
3339
3339
|
}, null, 8, ["label", "model-value"]),
|
|
3340
|
-
|
|
3341
|
-
label:
|
|
3340
|
+
P(O, {
|
|
3341
|
+
label: w(y)("settings.business.restaurant.form.sections.branding.url.label"),
|
|
3342
3342
|
placeholder: r.restaurantId,
|
|
3343
3343
|
"model-value": p.url,
|
|
3344
3344
|
"onUpdate:modelValue": h[14] || (h[14] = (L) => p.url = L),
|
|
3345
3345
|
rules: [
|
|
3346
3346
|
(L) => {
|
|
3347
3347
|
var B;
|
|
3348
|
-
return !L || ((B = g.value) == null ? void 0 : B.url) == p.url || $.value ==
|
|
3348
|
+
return !L || ((B = g.value) == null ? void 0 : B.url) == p.url || $.value == w(ut.F_COUNTRY).enum.MY || w(y)("settings.business.restaurant.form.sections.branding.url.errors.disabled");
|
|
3349
3349
|
},
|
|
3350
|
-
(L) => !L ||
|
|
3351
|
-
(L) => !L || !
|
|
3350
|
+
(L) => !L || w(mr).test(L) || w(y)("settings.business.restaurant.form.sections.branding.url.errors.invalid"),
|
|
3351
|
+
(L) => !L || !w(pr).includes(L) || w(y)("settings.business.restaurant.form.sections.branding.url.errors.reserved")
|
|
3352
3352
|
]
|
|
3353
3353
|
}, {
|
|
3354
|
-
prepend:
|
|
3354
|
+
prepend: H(() => [
|
|
3355
3355
|
E("span", null, D(_))
|
|
3356
3356
|
]),
|
|
3357
|
-
append:
|
|
3358
|
-
|
|
3357
|
+
append: H(() => [
|
|
3358
|
+
P(V, {
|
|
3359
3359
|
variant: "tertiary",
|
|
3360
3360
|
icon: "file_copy",
|
|
3361
3361
|
"text-color": "neutral-gray-400",
|
|
@@ -3365,19 +3365,19 @@ const li = () => {
|
|
|
3365
3365
|
_: 1
|
|
3366
3366
|
}, 8, ["label", "placeholder", "model-value", "rules"]),
|
|
3367
3367
|
E("div", null, [
|
|
3368
|
-
|
|
3369
|
-
label:
|
|
3368
|
+
P(be, {
|
|
3369
|
+
label: w(y)("settings.business.form.cover_photo.label"),
|
|
3370
3370
|
"previous-url": p.coverPhoto,
|
|
3371
3371
|
modelValue: p.newCoverPhoto,
|
|
3372
3372
|
"onUpdate:modelValue": h[15] || (h[15] = (L) => p.newCoverPhoto = L),
|
|
3373
|
-
"onReset:modelValue":
|
|
3373
|
+
"onReset:modelValue": q
|
|
3374
3374
|
}, null, 8, ["label", "previous-url", "modelValue"])
|
|
3375
3375
|
]),
|
|
3376
3376
|
E("div", null, [
|
|
3377
|
-
|
|
3378
|
-
label:
|
|
3377
|
+
P(Lt, {
|
|
3378
|
+
label: w(y)("settings.business.restaurant.form.sections.branding.carousel_photos.label")
|
|
3379
3379
|
}, null, 8, ["label"]),
|
|
3380
|
-
(F(!0), K(se, null, me(p.photos || [], (L, B) => (F(),
|
|
3380
|
+
(F(!0), K(se, null, me(p.photos || [], (L, B) => (F(), Q(be, {
|
|
3381
3381
|
key: B,
|
|
3382
3382
|
"previous-url": L,
|
|
3383
3383
|
"model-value": void 0,
|
|
@@ -3388,7 +3388,7 @@ const li = () => {
|
|
|
3388
3388
|
}, null, 8, ["previous-url", "onReset:modelValue"]))), 128)),
|
|
3389
3389
|
(F(!0), K(se, null, me(p.newPhotos || [], (L, B) => {
|
|
3390
3390
|
var j;
|
|
3391
|
-
return F(),
|
|
3391
|
+
return F(), Q(be, {
|
|
3392
3392
|
key: B,
|
|
3393
3393
|
"model-value": ((j = p.newPhotos) == null ? void 0 : j[B]) || void 0,
|
|
3394
3394
|
"previous-url": void 0,
|
|
@@ -3398,7 +3398,7 @@ const li = () => {
|
|
|
3398
3398
|
}
|
|
3399
3399
|
}, null, 8, ["model-value", "onReset:modelValue"]);
|
|
3400
3400
|
}), 128)),
|
|
3401
|
-
|
|
3401
|
+
P(be, {
|
|
3402
3402
|
"model-value": void 0,
|
|
3403
3403
|
"previous-url": void 0,
|
|
3404
3404
|
"onUpdate:modelValue": h[16] || (h[16] = (L) => a(L))
|
|
@@ -3417,7 +3417,7 @@ const li = () => {
|
|
|
3417
3417
|
], 64);
|
|
3418
3418
|
};
|
|
3419
3419
|
}
|
|
3420
|
-
}), yi = { class: "fm-typo-en-title-md-600" }, $i = { class: "pt-8 space-y-24" }, _i = { class: "flex gap-8 items-center justify-start" }, Ei = /* @__PURE__ */
|
|
3420
|
+
}), yi = { class: "fm-typo-en-title-md-600" }, $i = { class: "pt-8 space-y-24" }, _i = { class: "flex gap-8 items-center justify-start" }, Ei = /* @__PURE__ */ Z({
|
|
3421
3421
|
__name: "BusinessForm",
|
|
3422
3422
|
props: {
|
|
3423
3423
|
businessId: {
|
|
@@ -3430,7 +3430,7 @@ const li = () => {
|
|
|
3430
3430
|
}
|
|
3431
3431
|
},
|
|
3432
3432
|
setup(r, { expose: e }) {
|
|
3433
|
-
const t = r, n = ct(), s = cr(n), o = "https://
|
|
3433
|
+
const t = r, n = ct(), s = cr(n), o = "https://feedme.cc", i = lt(
|
|
3434
3434
|
t.initialValue ? ge(t.initialValue) : {
|
|
3435
3435
|
thumbnail: void 0,
|
|
3436
3436
|
name: "",
|
|
@@ -3438,8 +3438,8 @@ const li = () => {
|
|
|
3438
3438
|
newThumbnail: void 0
|
|
3439
3439
|
}
|
|
3440
3440
|
);
|
|
3441
|
-
|
|
3442
|
-
const d =
|
|
3441
|
+
X(() => i.newThumbnail ? URL.createObjectURL(i.newThumbnail) : i.thumbnail);
|
|
3442
|
+
const d = X(() => fe().currentCountry.value), c = ne(!1), u = ne(!1), b = ($) => {
|
|
3443
3443
|
u.value = !u.value;
|
|
3444
3444
|
};
|
|
3445
3445
|
function g() {
|
|
@@ -3448,7 +3448,7 @@ const li = () => {
|
|
|
3448
3448
|
const p = async () => {
|
|
3449
3449
|
const $ = i;
|
|
3450
3450
|
await s.minor(async () => {
|
|
3451
|
-
var N,
|
|
3451
|
+
var N, x, S;
|
|
3452
3452
|
if ($.newThumbnail) {
|
|
3453
3453
|
const M = await de.update(
|
|
3454
3454
|
`business/${t.businessId}/thumbnail/${dt().toISOString()}.png`,
|
|
@@ -3456,7 +3456,7 @@ const li = () => {
|
|
|
3456
3456
|
);
|
|
3457
3457
|
$.thumbnail = M, (N = t.initialValue) != null && N.thumbnail && await de.delete(t.initialValue.thumbnail);
|
|
3458
3458
|
} else
|
|
3459
|
-
(
|
|
3459
|
+
(x = t.initialValue) != null && x.thumbnail && !$.thumbnail && await de.delete((S = t.initialValue) == null ? void 0 : S.thumbnail);
|
|
3460
3460
|
const y = await Jr.updateBusinessProfile(t.businessId, $), C = fe().currentBusiness;
|
|
3461
3461
|
C.value = { ...C.value, ...y }, b();
|
|
3462
3462
|
});
|
|
@@ -3467,14 +3467,14 @@ const li = () => {
|
|
|
3467
3467
|
});
|
|
3468
3468
|
const { t: _ } = pe();
|
|
3469
3469
|
return ($, y) => {
|
|
3470
|
-
const C =
|
|
3470
|
+
const C = z("FmTextField"), N = z("fm-button"), x = z("fm-side-sheet");
|
|
3471
3471
|
return F(), K(se, null, [
|
|
3472
3472
|
ue($.$slots, "default", { trigger: b }),
|
|
3473
|
-
|
|
3473
|
+
P(x, {
|
|
3474
3474
|
id: "unit-form",
|
|
3475
3475
|
modelValue: u.value,
|
|
3476
3476
|
"onUpdate:modelValue": y[4] || (y[4] = (S) => u.value = S),
|
|
3477
|
-
"is-container":
|
|
3477
|
+
"is-container": w(Mr).FmForm,
|
|
3478
3478
|
"is-container-props": {
|
|
3479
3479
|
onValidationSuccess: p,
|
|
3480
3480
|
blameFormChildOnValidationFailed: !0
|
|
@@ -3482,32 +3482,32 @@ const li = () => {
|
|
|
3482
3482
|
"max-width": 560,
|
|
3483
3483
|
"z-index": 100
|
|
3484
3484
|
}, {
|
|
3485
|
-
"side-sheet-header":
|
|
3486
|
-
E("p", yi, D(
|
|
3485
|
+
"side-sheet-header": H(() => [
|
|
3486
|
+
E("p", yi, D(w(_)("settings.business.form.title")), 1)
|
|
3487
3487
|
]),
|
|
3488
|
-
"side-sheet-footer":
|
|
3488
|
+
"side-sheet-footer": H(() => [
|
|
3489
3489
|
E("div", _i, [
|
|
3490
|
-
|
|
3491
|
-
label:
|
|
3490
|
+
P(N, {
|
|
3491
|
+
label: w(_)("common.update"),
|
|
3492
3492
|
loading: c.value,
|
|
3493
3493
|
size: "lg",
|
|
3494
3494
|
type: "submit",
|
|
3495
3495
|
variant: "primary"
|
|
3496
3496
|
}, null, 8, ["label", "loading"]),
|
|
3497
|
-
|
|
3498
|
-
label:
|
|
3497
|
+
P(N, {
|
|
3498
|
+
label: w(_)("common.cancel"),
|
|
3499
3499
|
size: "lg",
|
|
3500
3500
|
variant: "tertiary",
|
|
3501
3501
|
onClick: y[3] || (y[3] = () => u.value = !1)
|
|
3502
3502
|
}, null, 8, ["label"])
|
|
3503
3503
|
])
|
|
3504
3504
|
]),
|
|
3505
|
-
default:
|
|
3505
|
+
default: H(() => [
|
|
3506
3506
|
E("div", $i, [
|
|
3507
3507
|
E("div", null, [
|
|
3508
|
-
|
|
3509
|
-
label:
|
|
3510
|
-
"sub-label":
|
|
3508
|
+
P(be, {
|
|
3509
|
+
label: w(_)("settings.business.form.cover_photo.label"),
|
|
3510
|
+
"sub-label": w(_)("settings.business.form.cover_photo.optional"),
|
|
3511
3511
|
"previous-url": i.thumbnail,
|
|
3512
3512
|
modelValue: i.newThumbnail,
|
|
3513
3513
|
"onUpdate:modelValue": y[0] || (y[0] = (S) => i.newThumbnail = S),
|
|
@@ -3515,29 +3515,29 @@ const li = () => {
|
|
|
3515
3515
|
}, null, 8, ["label", "sub-label", "previous-url", "modelValue"])
|
|
3516
3516
|
]),
|
|
3517
3517
|
E("div", null, [
|
|
3518
|
-
|
|
3519
|
-
label:
|
|
3518
|
+
P(C, {
|
|
3519
|
+
label: w(_)("settings.business.form.name"),
|
|
3520
3520
|
modelValue: i.name,
|
|
3521
3521
|
"onUpdate:modelValue": y[1] || (y[1] = (S) => i.name = S)
|
|
3522
3522
|
}, null, 8, ["label", "modelValue"])
|
|
3523
3523
|
]),
|
|
3524
3524
|
E("div", null, [
|
|
3525
|
-
|
|
3526
|
-
label:
|
|
3525
|
+
P(C, {
|
|
3526
|
+
label: w(_)("settings.business.form.url.label"),
|
|
3527
3527
|
"model-value": i.url || "",
|
|
3528
3528
|
"onUpdate:modelValue": y[2] || (y[2] = (S) => i.url = S),
|
|
3529
3529
|
placeholder: r.businessId,
|
|
3530
3530
|
rules: [
|
|
3531
3531
|
(S) => {
|
|
3532
3532
|
var M;
|
|
3533
|
-
return !S || ((M = r.initialValue) == null ? void 0 : M.url) == i.url || d.value ==
|
|
3533
|
+
return !S || ((M = r.initialValue) == null ? void 0 : M.url) == i.url || d.value == w(ut.F_COUNTRY).enum.MY || w(_)("settings.business.form.url.errors.disabled");
|
|
3534
3534
|
},
|
|
3535
|
-
(S) => !S ||
|
|
3536
|
-
(S) => !S || !
|
|
3535
|
+
(S) => !S || w(mr).test(S) || w(_)("settings.business.form.url.errors.format"),
|
|
3536
|
+
(S) => !S || !w(pr).includes(S) || w(_)("settings.business.form.url.errors.reserved")
|
|
3537
3537
|
]
|
|
3538
3538
|
}, {
|
|
3539
|
-
prepend:
|
|
3540
|
-
E("span", null, D(
|
|
3539
|
+
prepend: H(() => [
|
|
3540
|
+
E("span", null, D(w(o) + "/"), 1)
|
|
3541
3541
|
]),
|
|
3542
3542
|
_: 1
|
|
3543
3543
|
}, 8, ["label", "model-value", "placeholder", "rules"])
|
|
@@ -3549,24 +3549,24 @@ const li = () => {
|
|
|
3549
3549
|
], 64);
|
|
3550
3550
|
};
|
|
3551
3551
|
}
|
|
3552
|
-
}),
|
|
3552
|
+
}), Ri = /* @__PURE__ */ Z({
|
|
3553
3553
|
__name: "BottomSheetMenu",
|
|
3554
3554
|
setup(r) {
|
|
3555
3555
|
const e = ne(!1);
|
|
3556
3556
|
async function t() {
|
|
3557
|
-
await
|
|
3557
|
+
await kr(), e.value = !e.value;
|
|
3558
3558
|
}
|
|
3559
3559
|
return (n, s) => {
|
|
3560
|
-
const o =
|
|
3561
|
-
return F(),
|
|
3560
|
+
const o = z("FmButton"), i = z("FmBottomSheet");
|
|
3561
|
+
return F(), Q(i, {
|
|
3562
3562
|
modelValue: e.value,
|
|
3563
3563
|
"onUpdate:modelValue": s[1] || (s[1] = (d) => e.value = d),
|
|
3564
3564
|
"dismiss-away": "",
|
|
3565
3565
|
"no-header": "",
|
|
3566
3566
|
"z-index": 110
|
|
3567
3567
|
}, {
|
|
3568
|
-
"bottom-sheet-button":
|
|
3569
|
-
n.$slots.button ? le("", !0) : (F(),
|
|
3568
|
+
"bottom-sheet-button": H(() => [
|
|
3569
|
+
n.$slots.button ? le("", !0) : (F(), Q(o, {
|
|
3570
3570
|
key: 0,
|
|
3571
3571
|
icon: "more_vert",
|
|
3572
3572
|
variant: "tertiary",
|
|
@@ -3574,7 +3574,7 @@ const li = () => {
|
|
|
3574
3574
|
})),
|
|
3575
3575
|
ue(n.$slots, "button")
|
|
3576
3576
|
]),
|
|
3577
|
-
default:
|
|
3577
|
+
default: H(() => [
|
|
3578
3578
|
E("div", {
|
|
3579
3579
|
onClick: s[0] || (s[0] = (d) => e.value = !1)
|
|
3580
3580
|
}, [
|
|
@@ -3585,7 +3585,7 @@ const li = () => {
|
|
|
3585
3585
|
}, 8, ["modelValue"]);
|
|
3586
3586
|
};
|
|
3587
3587
|
}
|
|
3588
|
-
}),
|
|
3588
|
+
}), wi = { class: "py-8 px-12 hover:bg-fm-color-neutral-gray-100" }, Ii = /* @__PURE__ */ Z({
|
|
3589
3589
|
__name: "BottomSheetMenuItem",
|
|
3590
3590
|
props: {
|
|
3591
3591
|
label: {},
|
|
@@ -3596,8 +3596,8 @@ const li = () => {
|
|
|
3596
3596
|
setup(r) {
|
|
3597
3597
|
const e = r;
|
|
3598
3598
|
return (t, n) => {
|
|
3599
|
-
const s =
|
|
3600
|
-
return F(), K("div",
|
|
3599
|
+
const s = z("FmIcon");
|
|
3600
|
+
return F(), K("div", wi, [
|
|
3601
3601
|
t.$slots.content ? le("", !0) : (F(), K("div", {
|
|
3602
3602
|
key: 0,
|
|
3603
3603
|
class: J(["flex items-center", {
|
|
@@ -3607,7 +3607,7 @@ const li = () => {
|
|
|
3607
3607
|
[e.itemClass || ""]: e.itemClass && !e.disabled
|
|
3608
3608
|
}])
|
|
3609
3609
|
}, [
|
|
3610
|
-
t.icon ? (F(),
|
|
3610
|
+
t.icon ? (F(), Q(s, {
|
|
3611
3611
|
key: 0,
|
|
3612
3612
|
name: t.icon
|
|
3613
3613
|
}, null, 8, ["name"])) : le("", !0),
|
|
@@ -3620,48 +3620,48 @@ const li = () => {
|
|
|
3620
3620
|
}), Ai = { class: "fm-typo-cn-body-md-400 text-fm-color-typo-secondary xs:flex xs:flex-col" }, Oi = { class: "flex flex-1" }, Si = {
|
|
3621
3621
|
key: 0,
|
|
3622
3622
|
class: "flex gap-8"
|
|
3623
|
-
},
|
|
3623
|
+
}, Ti = {
|
|
3624
3624
|
key: 0,
|
|
3625
3625
|
class: "space-y-4"
|
|
3626
|
-
},
|
|
3626
|
+
}, Pi = { class: "fm-typo-en-body-md-600" }, Li = {
|
|
3627
3627
|
key: 0,
|
|
3628
3628
|
class: "space-y-8"
|
|
3629
|
-
}, Ni = { class: "flex justify-end" }, Ci = { class: "flex-1 pb-64 overflow-auto divide-y divide-fm-color-neutral-gray-100" },
|
|
3629
|
+
}, Ni = { class: "flex justify-end" }, Ci = { class: "flex-1 pb-64 overflow-auto divide-y divide-fm-color-neutral-gray-100" }, ki = { key: 0 }, xi = ["onClick"], Vi = { class: "flex justify-between items-center" }, Fi = { class: "fm-typo-en-body-lg-600" }, ji = { class: "flex gap-8" }, Mi = { class: "text-fm-color-typo-secondary" }, Ui = { class: "text-fm-color-typo-secondary" }, Di = { class: "text-fm-color-typo-secondary" }, al = /* @__PURE__ */ Z({
|
|
3630
3630
|
__name: "Business",
|
|
3631
3631
|
setup(r) {
|
|
3632
|
-
const { searchKey: e, filter: t } = yn(), { copyTextToClipboard: n } = ur(), s = ir(), o =
|
|
3632
|
+
const { searchKey: e, filter: t } = yn(), { copyTextToClipboard: n } = ur(), s = ir(), o = X(() => s.breakpoints.value.xs), { t: i } = pe(), d = X(() => {
|
|
3633
3633
|
const { currentBusiness: $, restaurants: y } = fe(), C = $.value;
|
|
3634
3634
|
if (!C)
|
|
3635
3635
|
return null;
|
|
3636
|
-
const { id: N, name:
|
|
3636
|
+
const { id: N, name: x, thumbnail: S, url: M } = C, Y = y.value.filter((U) => U.managable).map((U) => {
|
|
3637
3637
|
var m;
|
|
3638
|
-
const { _id:
|
|
3638
|
+
const { _id: q, profile: a } = U, { name: l, email: v, phoneNo: A, address: T, sstRegNo: f } = {
|
|
3639
3639
|
...a,
|
|
3640
|
-
address:
|
|
3640
|
+
address: we(a.address)
|
|
3641
3641
|
};
|
|
3642
3642
|
return {
|
|
3643
|
-
id:
|
|
3643
|
+
id: q,
|
|
3644
3644
|
code: ((m = U.profile) == null ? void 0 : m.code) || "--",
|
|
3645
3645
|
name: l,
|
|
3646
3646
|
email: v,
|
|
3647
3647
|
phone: A,
|
|
3648
|
-
address:
|
|
3648
|
+
address: T.formatted,
|
|
3649
3649
|
withSST: !!f,
|
|
3650
3650
|
doc: U
|
|
3651
3651
|
};
|
|
3652
3652
|
});
|
|
3653
3653
|
return {
|
|
3654
3654
|
id: N,
|
|
3655
|
-
name:
|
|
3655
|
+
name: x,
|
|
3656
3656
|
thumbnail: S,
|
|
3657
|
-
url: `https://
|
|
3657
|
+
url: `https://feedme.cc/${M || N}`,
|
|
3658
3658
|
doc: C,
|
|
3659
3659
|
canCreateRestaurant: gn(C, y.value),
|
|
3660
3660
|
restaurants: Y.filter(
|
|
3661
|
-
({ code: U, name:
|
|
3661
|
+
({ code: U, name: q, address: a, phone: l, email: v }) => t([U, q, a, l, v])
|
|
3662
3662
|
)
|
|
3663
3663
|
};
|
|
3664
|
-
}), c =
|
|
3664
|
+
}), c = X(() => [
|
|
3665
3665
|
{
|
|
3666
3666
|
header: i("settings.business.restaurant.code"),
|
|
3667
3667
|
accessorKey: "code",
|
|
@@ -3735,7 +3735,7 @@ const li = () => {
|
|
|
3735
3735
|
}
|
|
3736
3736
|
});
|
|
3737
3737
|
}
|
|
3738
|
-
const g =
|
|
3738
|
+
const g = xr();
|
|
3739
3739
|
function p() {
|
|
3740
3740
|
Ke(g, sr, {
|
|
3741
3741
|
enableFeedmeExpress: !1
|
|
@@ -3751,15 +3751,15 @@ const li = () => {
|
|
|
3751
3751
|
}
|
|
3752
3752
|
return ($, y) => {
|
|
3753
3753
|
var W;
|
|
3754
|
-
const C =
|
|
3755
|
-
return F(),
|
|
3754
|
+
const C = z("FmSpacer"), N = z("FmButton"), x = z("FmTooltip"), S = z("FmSearch"), M = z("FmTable"), Y = z("FmCircularProgress");
|
|
3755
|
+
return F(), Q(Ur, {
|
|
3756
3756
|
heading: ((W = d.value) == null ? void 0 : W.name) || "--"
|
|
3757
3757
|
}, {
|
|
3758
|
-
"sub-heading":
|
|
3758
|
+
"sub-heading": H(() => {
|
|
3759
3759
|
var U;
|
|
3760
3760
|
return [
|
|
3761
3761
|
E("div", Ai, [
|
|
3762
|
-
E("span", null, D(
|
|
3762
|
+
E("span", null, D(w(i)("settings.business.url")) + ": ", 1),
|
|
3763
3763
|
E("span", {
|
|
3764
3764
|
class: "cursor-pointer xs:w-max-[200px] truncate",
|
|
3765
3765
|
onClick: u
|
|
@@ -3767,50 +3767,50 @@ const li = () => {
|
|
|
3767
3767
|
])
|
|
3768
3768
|
];
|
|
3769
3769
|
}),
|
|
3770
|
-
"append-heading":
|
|
3770
|
+
"append-heading": H(() => [
|
|
3771
3771
|
E("div", Oi, [
|
|
3772
|
-
|
|
3772
|
+
P(C),
|
|
3773
3773
|
o.value ? (F(), K(se, { key: 1 }, [
|
|
3774
|
-
|
|
3774
|
+
P(qr, {
|
|
3775
3775
|
onClick: p,
|
|
3776
|
-
label:
|
|
3776
|
+
label: w(i)("settings.business.add_restaurant"),
|
|
3777
3777
|
"prepend-icon": "add"
|
|
3778
3778
|
}, null, 8, ["label"]),
|
|
3779
|
-
|
|
3780
|
-
default:
|
|
3781
|
-
|
|
3782
|
-
label:
|
|
3779
|
+
P(Ri, null, {
|
|
3780
|
+
default: H(() => [
|
|
3781
|
+
P(Ii, {
|
|
3782
|
+
label: w(i)("common.edit"),
|
|
3783
3783
|
onClick: b
|
|
3784
3784
|
}, null, 8, ["label"])
|
|
3785
3785
|
]),
|
|
3786
3786
|
_: 1
|
|
3787
3787
|
})
|
|
3788
3788
|
], 64)) : (F(), K("div", Si, [
|
|
3789
|
-
|
|
3789
|
+
P(N, {
|
|
3790
3790
|
onClick: b,
|
|
3791
3791
|
variant: "secondary",
|
|
3792
|
-
label:
|
|
3792
|
+
label: w(i)("common.edit")
|
|
3793
3793
|
}, null, 8, ["label"]),
|
|
3794
|
-
|
|
3794
|
+
P(x, {
|
|
3795
3795
|
variant: "rich",
|
|
3796
3796
|
placement: "left",
|
|
3797
3797
|
"z-index": 100
|
|
3798
3798
|
}, {
|
|
3799
|
-
content:
|
|
3799
|
+
content: H(() => {
|
|
3800
3800
|
var U;
|
|
3801
3801
|
return [
|
|
3802
|
-
(U = d.value) != null && U.canCreateRestaurant ? le("", !0) : (F(), K("div",
|
|
3803
|
-
E("p",
|
|
3804
|
-
E("p", null, D(
|
|
3802
|
+
(U = d.value) != null && U.canCreateRestaurant ? le("", !0) : (F(), K("div", Ti, [
|
|
3803
|
+
E("p", Pi, D(w(i)("settings.business.quota.limit_title")), 1),
|
|
3804
|
+
E("p", null, D(w(i)("settings.business.quota.limit_message")), 1)
|
|
3805
3805
|
]))
|
|
3806
3806
|
];
|
|
3807
3807
|
}),
|
|
3808
|
-
default:
|
|
3808
|
+
default: H(() => {
|
|
3809
3809
|
var U;
|
|
3810
3810
|
return [
|
|
3811
|
-
|
|
3811
|
+
P(N, {
|
|
3812
3812
|
onClick: p,
|
|
3813
|
-
label:
|
|
3813
|
+
label: w(i)("settings.business.add_restaurant"),
|
|
3814
3814
|
disabled: !((U = d.value) != null && U.canCreateRestaurant),
|
|
3815
3815
|
"prepend-icon": "add"
|
|
3816
3816
|
}, null, 8, ["label", "disabled"])
|
|
@@ -3821,18 +3821,18 @@ const li = () => {
|
|
|
3821
3821
|
]))
|
|
3822
3822
|
])
|
|
3823
3823
|
]),
|
|
3824
|
-
default:
|
|
3825
|
-
var U,
|
|
3824
|
+
default: H(() => {
|
|
3825
|
+
var U, q;
|
|
3826
3826
|
return [
|
|
3827
3827
|
o.value ? (F(), K(se, { key: 1 }, [
|
|
3828
|
-
|
|
3828
|
+
P(S, {
|
|
3829
3829
|
class: "my-8 mx-16",
|
|
3830
|
-
modelValue:
|
|
3831
|
-
"onUpdate:modelValue": y[2] || (y[2] = (a) =>
|
|
3832
|
-
placeholder:
|
|
3830
|
+
modelValue: w(e),
|
|
3831
|
+
"onUpdate:modelValue": y[2] || (y[2] = (a) => wt(e) ? e.value = a : null),
|
|
3832
|
+
placeholder: w(i)("settings.business.search_restaurants")
|
|
3833
3833
|
}, null, 8, ["modelValue", "placeholder"]),
|
|
3834
3834
|
E("div", Ci, [
|
|
3835
|
-
d.value ? (F(!0), K(se, { key: 1 }, me((
|
|
3835
|
+
d.value ? (F(!0), K(se, { key: 1 }, me((q = d.value) == null ? void 0 : q.restaurants, (a) => {
|
|
3836
3836
|
var l;
|
|
3837
3837
|
return F(), K("div", {
|
|
3838
3838
|
key: a.id,
|
|
@@ -3842,38 +3842,38 @@ const li = () => {
|
|
|
3842
3842
|
E("div", Vi, [
|
|
3843
3843
|
E("div", Fi, D(a.name), 1),
|
|
3844
3844
|
E("div", ji, [
|
|
3845
|
-
|
|
3845
|
+
P(N, {
|
|
3846
3846
|
icon: "edit",
|
|
3847
3847
|
"text-color": "neutral-gray-400",
|
|
3848
3848
|
variant: "tertiary",
|
|
3849
3849
|
onClick: rt((v) => _(a), ["stop"])
|
|
3850
3850
|
}, null, 8, ["onClick"]),
|
|
3851
|
-
|
|
3851
|
+
P(N, {
|
|
3852
3852
|
icon: "file_copy",
|
|
3853
3853
|
"text-color": "neutral-gray-400",
|
|
3854
3854
|
variant: "tertiary",
|
|
3855
|
-
onClick: rt((v) =>
|
|
3855
|
+
onClick: rt((v) => w(n)(a.id), ["stop"])
|
|
3856
3856
|
}, null, 8, ["onClick"])
|
|
3857
3857
|
])
|
|
3858
3858
|
]),
|
|
3859
|
-
E("div", Mi, D(
|
|
3860
|
-
E("div", Ui, D(
|
|
3861
|
-
E("div", Di, D(
|
|
3862
|
-
], 8,
|
|
3863
|
-
}), 128)) : (F(), K("div",
|
|
3864
|
-
|
|
3859
|
+
E("div", Mi, D(w(i)("settings.business.restaurant.contact")) + ": " + D(a.phone), 1),
|
|
3860
|
+
E("div", Ui, D(w(i)("settings.business.restaurant.email")) + ": " + D(a.email), 1),
|
|
3861
|
+
E("div", Di, D(w(i)("settings.business.restaurant.tax.title")) + ": " + D((l = a.doc.profile.sstRegNo) != null && l.length ? a.doc.profile.sstRegNo : w(i)("settings.business.restaurant.tax.not_set")), 1)
|
|
3862
|
+
], 8, xi);
|
|
3863
|
+
}), 128)) : (F(), K("div", ki, [
|
|
3864
|
+
P(Y, { size: "lg" })
|
|
3865
3865
|
]))
|
|
3866
3866
|
])
|
|
3867
3867
|
], 64)) : (F(), K("div", Li, [
|
|
3868
3868
|
E("div", Ni, [
|
|
3869
|
-
|
|
3869
|
+
P(S, {
|
|
3870
3870
|
class: "w-[320px]",
|
|
3871
|
-
modelValue:
|
|
3872
|
-
"onUpdate:modelValue": y[0] || (y[0] = (a) =>
|
|
3873
|
-
placeholder:
|
|
3871
|
+
modelValue: w(e),
|
|
3872
|
+
"onUpdate:modelValue": y[0] || (y[0] = (a) => wt(e) ? e.value = a : null),
|
|
3873
|
+
placeholder: w(i)("settings.business.search_restaurants")
|
|
3874
3874
|
}, null, 8, ["modelValue", "placeholder"])
|
|
3875
3875
|
]),
|
|
3876
|
-
|
|
3876
|
+
P(M, {
|
|
3877
3877
|
"column-defs": c.value,
|
|
3878
3878
|
"row-data": ((U = d.value) == null ? void 0 : U.restaurants) || [],
|
|
3879
3879
|
"shrink-at": !1,
|