@feedmepos/mf-settings 0.0.57 → 0.0.59-beta.1

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.
Files changed (30) hide show
  1. package/dist/{App-5ff3656e.js → App-adfff27f.js} +3 -3
  2. package/dist/{Business-3c38b9d5.js → Business-24c55416.js} +158 -150
  3. package/dist/{CreateBusiness-fa4096f9.js → CreateBusiness-fbcba71f.js} +12 -11
  4. package/dist/{FoodCourt-0a28a67f.js → FoodCourt-677797ed.js} +13 -11
  5. package/dist/ReasonTemplate-0e99fb52.js +2234 -0
  6. package/dist/RestaurantSelector.vue_vue_type_script_setup_true_lang-08a69f88.js +88 -0
  7. package/dist/{Tagging-14ec1f75.js → Tagging-78440d2f.js} +8 -7
  8. package/dist/_plugin-vue_export-helper-dad06003.js +9 -0
  9. package/dist/{app-c20e051f.js → app-14f51ab7.js} +320 -66
  10. package/dist/app.js +4 -3
  11. package/dist/apps/mf-settings/src/View/ReasonTemplate.vue.d.ts +2 -0
  12. package/dist/apps/mf-settings/src/api/index.d.ts +2 -0
  13. package/dist/apps/mf-settings/src/api/restaurant.d.ts +1 -0
  14. package/dist/apps/mf-settings/src/app.d.ts +123 -0
  15. package/dist/apps/mf-settings/src/components/reason/ReasonTemplateForm.vue.d.ts +28 -0
  16. package/dist/apps/mf-settings/src/types/reasonTemplate.d.ts +9 -0
  17. package/dist/apps/mf-settings/tsconfig.app.tsbuildinfo +1 -1
  18. package/dist/{business-ad1b9825.js → business-a1966413.js} +1 -1
  19. package/dist/createForm-d3b97d2e.js +50 -0
  20. package/dist/dayjs.min-2edeb0fb.js +310 -0
  21. package/dist/index-33f7f731.js +17967 -0
  22. package/dist/{index-759f69a1.js → index-cc4114ab.js} +1721 -1731
  23. package/dist/{index-71e4b8aa.js → index-d43d45c9.js} +796 -781
  24. package/dist/object-27ce045b.js +16 -0
  25. package/dist/rules-2bee6632.js +6 -0
  26. package/package.json +3 -3
  27. package/dist/RestaurantSelector.vue_vue_type_script_setup_true_lang-030a97dd.js +0 -395
  28. package/dist/index-e68421c3.js +0 -18030
  29. package/dist/object-8ac0c0d8.js +0 -63
  30. package/dist/rules-c9fa22f8.js +0 -13
@@ -1,18 +1,21 @@
1
1
  var Or = Object.defineProperty;
2
2
  var Sr = (t, e, r) => e in t ? Or(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
3
- var Ke = (t, e, r) => (Sr(t, typeof e != "symbol" ? e + "" : e, r), r);
4
- import { defineComponent as re, ref as ae, resolveComponent as q, openBlock as F, createBlock as te, withCtx as K, withModifiers as nt, createCommentVNode as ce, renderSlot as de, createElementVNode as $, nextTick as Pr, createElementBlock as B, normalizeClass as ee, createTextVNode as xe, toDisplayString as G, computed as Y, normalizeStyle as ke, createVNode as N, reactive as ut, Fragment as oe, unref as _, renderList as he, h as Rt, Teleport as Tr, Transition as Lr, withKeys as Nr, watch as It, onMounted as Cr, onUnmounted as xr, toRaw as At, normalizeProps as kr, guardReactiveProps as Vr, getCurrentInstance as Fr, isRef as Ot } from "vue";
3
+ var He = (t, e, r) => (Sr(t, typeof e != "symbol" ? e + "" : e, r), r);
4
+ import { defineComponent as re, ref as ae, resolveComponent as q, openBlock as F, createBlock as te, withCtx as K, withModifiers as st, createCommentVNode as ce, renderSlot as de, createElementVNode as $, nextTick as Pr, createElementBlock as B, normalizeClass as ee, createTextVNode as Ve, toDisplayString as G, computed as Y, normalizeStyle as Fe, createVNode as N, reactive as ct, Fragment as oe, unref as _, renderList as he, h as Rt, Teleport as Tr, Transition as Lr, withKeys as Nr, watch as It, onMounted as Cr, onUnmounted as xr, toRaw as At, normalizeProps as kr, guardReactiveProps as Vr, getCurrentInstance as Fr, isRef as Ot } from "vue";
5
5
  import { useCoreStore as pe, useI18n as ve, CustomAttributesForm as jr } from "@feedmepos/mf-common";
6
- import { useSnackbar as ct, components as Mr, useDialog as dt, useDialogChild as Ur, useBreakpoints as ur } from "@feedmepos/ui-library";
7
- import { D as ft, u as cr, _ as Dr, a as Gr } from "./RestaurantSelector.vue_vue_type_script_setup_true_lang-030a97dd.js";
8
- import { c as $e, _ as Br, a as qe } from "./object-8ac0c0d8.js";
6
+ import { useSnackbar as dt, components as Mr, useDialog as ft, useDialogChild as Ur, useBreakpoints as ur } from "@feedmepos/ui-library";
7
+ import { a as Dr, _ as Gr } from "./RestaurantSelector.vue_vue_type_script_setup_true_lang-08a69f88.js";
8
+ import { _ as Br, c as ze } from "./createForm-d3b97d2e.js";
9
+ import { D as mt, u as cr } from "./dayjs.min-2edeb0fb.js";
9
10
  import { _ as Re, c as Kr } from "./FormSection.vue_vue_type_script_setup_true_lang-6aab82f2.js";
10
- import { e as mt, g as dr, c as qr } from "./index-759f69a1.js";
11
- import { u as fr, b as He, a as ze, g as pt } from "./index-71e4b8aa.js";
12
- import { b as Hr } from "./business-ad1b9825.js";
13
- import { t as Xe, w as Ye, x as zr, y as Xr, z as Yr, A as Wr, B as Ve, u as be, D as Jr, G as Zr } from "./map-695afd6f.js";
14
- import { _ as mr, r as fe } from "./rules-c9fa22f8.js";
15
- import { u as Qr } from "./app-c20e051f.js";
11
+ import { e as pt, g as dr, c as qr } from "./index-cc4114ab.js";
12
+ import { u as fr, b as Pe, a as Xe, g as je } from "./index-d43d45c9.js";
13
+ import { c as $e } from "./object-27ce045b.js";
14
+ import { b as Hr } from "./business-a1966413.js";
15
+ import { t as Ye, w as We, x as zr, y as Xr, z as Yr, A as Wr, B as Me, u as be, D as Jr, G as Zr } from "./map-695afd6f.js";
16
+ import { _ as mr } from "./_plugin-vue_export-helper-dad06003.js";
17
+ import { u as Qr } from "./app-14f51ab7.js";
18
+ import { r as fe } from "./rules-2bee6632.js";
16
19
  import "pinia";
17
20
  import "@feedmepos/mf-mdm";
18
21
  import "vue-router";
@@ -72,7 +75,7 @@ const tn = /* @__PURE__ */ re({
72
75
  key: 0,
73
76
  icon: "more_vert",
74
77
  variant: "tertiary",
75
- onClick: nt(r, ["stop"])
78
+ onClick: st(r, ["stop"])
76
79
  })),
77
80
  de(n.$slots, "button")
78
81
  ]),
@@ -113,7 +116,7 @@ const tn = /* @__PURE__ */ re({
113
116
  key: 0,
114
117
  name: r.icon
115
118
  }, null, 8, ["name"])) : ce("", !0),
116
- xe(" " + G(r.label), 1)
119
+ Ve(" " + G(r.label), 1)
117
120
  ], 2)),
118
121
  de(r.$slots, "content")
119
122
  ]);
@@ -144,12 +147,12 @@ const tn = /* @__PURE__ */ re({
144
147
  const f = q("fm-icon"), d = q("fm-drop-field");
145
148
  return s.value ? (F(), B("div", sn, [
146
149
  $("p", an, [
147
- xe(G(r.label) + " ", 1),
150
+ Ve(G(r.label) + " ", 1),
148
151
  $("span", on, G(o.subLabel), 1)
149
152
  ]),
150
153
  $("div", {
151
154
  class: ee(["relative", "border-2 border-dashed border-fm-color-neutral-gray-300 rounded-md"]),
152
- style: ke({ width: `${r.width}px`, height: `${r.height}px` })
155
+ style: Fe({ width: `${r.width}px`, height: `${r.height}px` })
153
156
  }, [
154
157
  $("div", ln, [
155
158
  $("div", un, [
@@ -176,12 +179,12 @@ const tn = /* @__PURE__ */ re({
176
179
  ])) : (F(), te(d, {
177
180
  key: 1,
178
181
  accept: ".jpg, .jpeg, .png, .gif",
179
- style: ke({ width: `${r.width}px`, height: `${r.height}px` }),
182
+ style: Fe({ width: `${r.width}px`, height: `${r.height}px` }),
180
183
  onFileUpload: i[1] || (i[1] = (u) => n("update:model-value", u))
181
184
  }, {
182
185
  label: K(() => [
183
186
  $("p", dn, [
184
- xe(G(r.label) + " ", 1),
187
+ Ve(G(r.label) + " ", 1),
185
188
  $("span", fn, G(r.subLabel), 1)
186
189
  ])
187
190
  ]),
@@ -689,28 +692,28 @@ const tn = /* @__PURE__ */ re({
689
692
  "za",
690
693
  "zm",
691
694
  "zw"
692
- ], We = {
695
+ ], Je = {
693
696
  async get(t, e) {
694
- const r = Xe(void 0, e), n = Ye(r, t);
697
+ const r = Ye(void 0, e), n = We(r, t);
695
698
  return await (await zr(n)).text();
696
699
  },
697
700
  async update(t, e, r) {
698
- const n = Xe(void 0, r), s = Ye(n, t);
701
+ const n = Ye(void 0, r), s = We(n, t);
699
702
  return await Xr(s, e), await Yr(s);
700
703
  },
701
704
  async delete(t, e) {
702
- const r = Xe(void 0, e), n = Ye(r, t);
705
+ const r = Ye(void 0, e), n = We(r, t);
703
706
  await Wr(n);
704
707
  }
705
708
  }, me = {
706
709
  async get(t) {
707
- return await We.get(t);
710
+ return await Je.get(t);
708
711
  },
709
712
  async update(t, e, r) {
710
- return await We.update(t, e);
713
+ return await Je.update(t, e);
711
714
  },
712
715
  async delete(t) {
713
- await We.delete(t);
716
+ await Je.delete(t);
714
717
  }
715
718
  }, mn = { class: "fm-typo-en-title-md-600" }, pn = { class: "pt-8 space-y-24" }, hn = { class: "flex gap-8 items-center justify-start" }, vn = /* @__PURE__ */ re({
716
719
  __name: "BusinessForm",
@@ -725,7 +728,7 @@ const tn = /* @__PURE__ */ re({
725
728
  }
726
729
  },
727
730
  setup(t, { expose: e }) {
728
- const r = t, n = ct(), s = fr(n), o = "https://feedmedev.cc", i = ut(
731
+ const r = t, n = dt(), s = fr(n), o = "https://feedmedev.cc", i = ct(
729
732
  r.initialValue ? $e(r.initialValue) : {
730
733
  thumbnail: void 0,
731
734
  name: "",
@@ -746,7 +749,7 @@ const tn = /* @__PURE__ */ re({
746
749
  var k, V, I;
747
750
  if (b.newThumbnail) {
748
751
  const M = await me.update(
749
- `business/${r.businessId}/thumbnail/${ft().toISOString()}.png`,
752
+ `business/${r.businessId}/thumbnail/${mt().toISOString()}.png`,
750
753
  b.newThumbnail
751
754
  );
752
755
  b.thumbnail = M, (k = r.initialValue) != null && k.thumbnail && await me.delete(r.initialValue.thumbnail);
@@ -825,7 +828,7 @@ const tn = /* @__PURE__ */ re({
825
828
  rules: [
826
829
  (I) => {
827
830
  var M;
828
- return !I || ((M = t.initialValue) == null ? void 0 : M.url) == i.url || f.value == _(mt.F_COUNTRY).enum.MY || _(c)("settings.business.form.url.errors.disabled");
831
+ return !I || ((M = t.initialValue) == null ? void 0 : M.url) == i.url || f.value == _(pt.F_COUNTRY).enum.MY || _(c)("settings.business.form.url.errors.disabled");
829
832
  },
830
833
  (I) => !I || _(pr).test(I) || _(c)("settings.business.form.url.errors.format"),
831
834
  (I) => !I || !_(hr).includes(I) || _(c)("settings.business.form.url.errors.reserved")
@@ -854,7 +857,7 @@ const tn = /* @__PURE__ */ re({
854
857
  setup(t) {
855
858
  const e = t, r = Y(() => e.optional && !e.subLabel ? "(optional)" : e.subLabel);
856
859
  return (n, s) => (F(), B("p", gn, [
857
- xe(G(n.label) + " ", 1),
860
+ Ve(G(n.label) + " ", 1),
858
861
  $("span", bn, G(r.value), 1)
859
862
  ]));
860
863
  }
@@ -893,7 +896,7 @@ const Rn = /* @__PURE__ */ mr(En, [["render", wn]]), In = {
893
896
  items: {}
894
897
  },
895
898
  setup(t) {
896
- const e = t, r = dt();
899
+ const e = t, r = ft();
897
900
  function n() {
898
901
  r.open({
899
902
  title: e.title,
@@ -959,7 +962,7 @@ const Rn = /* @__PURE__ */ mr(En, [["render", wn]]), In = {
959
962
  key: 0,
960
963
  "blame-form-child-on-validation-failed": "",
961
964
  class: ee(["fixed inset-0", "flex flex-col", "w-screen h-dvh", "bg-fm-color-neutral-white"]),
962
- style: ke({ zIndex: o.zIndex }),
965
+ style: Fe({ zIndex: o.zIndex }),
963
966
  tabindex: "-1",
964
967
  onValidationSuccess: n,
965
968
  onKeyup: Nr(s, ["esc"])
@@ -993,7 +996,7 @@ const Rn = /* @__PURE__ */ mr(En, [["render", wn]]), In = {
993
996
  }
994
997
  });
995
998
  const Ln = /* @__PURE__ */ mr(Tn, [["__scopeId", "data-v-5b5c7179"]]);
996
- var st = { exports: {} };
999
+ var at = { exports: {} };
997
1000
  const Nn = "2.0.0", vr = 256, Cn = Number.MAX_SAFE_INTEGER || /* istanbul ignore next */
998
1001
  9007199254740991, xn = 16, kn = vr - 6, Vn = [
999
1002
  "major",
@@ -1004,7 +1007,7 @@ const Nn = "2.0.0", vr = 256, Cn = Number.MAX_SAFE_INTEGER || /* istanbul ignore
1004
1007
  "prepatch",
1005
1008
  "prerelease"
1006
1009
  ];
1007
- var Me = {
1010
+ var De = {
1008
1011
  MAX_LENGTH: vr,
1009
1012
  MAX_SAFE_COMPONENT_LENGTH: xn,
1010
1013
  MAX_SAFE_BUILD_LENGTH: kn,
@@ -1016,13 +1019,13 @@ var Me = {
1016
1019
  };
1017
1020
  const Fn = typeof process == "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...t) => console.error("SEMVER", ...t) : () => {
1018
1021
  };
1019
- var Ue = Fn;
1022
+ var Ge = Fn;
1020
1023
  (function(t, e) {
1021
1024
  const {
1022
1025
  MAX_SAFE_COMPONENT_LENGTH: r,
1023
1026
  MAX_SAFE_BUILD_LENGTH: n,
1024
1027
  MAX_LENGTH: s
1025
- } = Me, o = Ue;
1028
+ } = De, o = Ge;
1026
1029
  e = t.exports = {};
1027
1030
  const i = e.re = [], f = e.safeRe = [], d = e.src = [], u = e.t = {};
1028
1031
  let v = 0;
@@ -1039,8 +1042,8 @@ var Ue = Fn;
1039
1042
  o(O, I, y), u[O] = I, d[I] = y, i[I] = new RegExp(y, k ? "g" : void 0), f[I] = new RegExp(V, k ? "g" : void 0);
1040
1043
  };
1041
1044
  b("NUMERICIDENTIFIER", "0|[1-9]\\d*"), b("NUMERICIDENTIFIERLOOSE", "\\d+"), b("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${g}*`), b("MAINVERSION", `(${d[u.NUMERICIDENTIFIER]})\\.(${d[u.NUMERICIDENTIFIER]})\\.(${d[u.NUMERICIDENTIFIER]})`), b("MAINVERSIONLOOSE", `(${d[u.NUMERICIDENTIFIERLOOSE]})\\.(${d[u.NUMERICIDENTIFIERLOOSE]})\\.(${d[u.NUMERICIDENTIFIERLOOSE]})`), b("PRERELEASEIDENTIFIER", `(?:${d[u.NUMERICIDENTIFIER]}|${d[u.NONNUMERICIDENTIFIER]})`), b("PRERELEASEIDENTIFIERLOOSE", `(?:${d[u.NUMERICIDENTIFIERLOOSE]}|${d[u.NONNUMERICIDENTIFIER]})`), b("PRERELEASE", `(?:-(${d[u.PRERELEASEIDENTIFIER]}(?:\\.${d[u.PRERELEASEIDENTIFIER]})*))`), b("PRERELEASELOOSE", `(?:-?(${d[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${d[u.PRERELEASEIDENTIFIERLOOSE]})*))`), b("BUILDIDENTIFIER", `${g}+`), b("BUILD", `(?:\\+(${d[u.BUILDIDENTIFIER]}(?:\\.${d[u.BUILDIDENTIFIER]})*))`), b("FULLPLAIN", `v?${d[u.MAINVERSION]}${d[u.PRERELEASE]}?${d[u.BUILD]}?`), b("FULL", `^${d[u.FULLPLAIN]}$`), b("LOOSEPLAIN", `[v=\\s]*${d[u.MAINVERSIONLOOSE]}${d[u.PRERELEASELOOSE]}?${d[u.BUILD]}?`), b("LOOSE", `^${d[u.LOOSEPLAIN]}$`), b("GTLT", "((?:<|>)?=?)"), b("XRANGEIDENTIFIERLOOSE", `${d[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`), b("XRANGEIDENTIFIER", `${d[u.NUMERICIDENTIFIER]}|x|X|\\*`), b("XRANGEPLAIN", `[v=\\s]*(${d[u.XRANGEIDENTIFIER]})(?:\\.(${d[u.XRANGEIDENTIFIER]})(?:\\.(${d[u.XRANGEIDENTIFIER]})(?:${d[u.PRERELEASE]})?${d[u.BUILD]}?)?)?`), b("XRANGEPLAINLOOSE", `[v=\\s]*(${d[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${d[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${d[u.XRANGEIDENTIFIERLOOSE]})(?:${d[u.PRERELEASELOOSE]})?${d[u.BUILD]}?)?)?`), b("XRANGE", `^${d[u.GTLT]}\\s*${d[u.XRANGEPLAIN]}$`), b("XRANGELOOSE", `^${d[u.GTLT]}\\s*${d[u.XRANGEPLAINLOOSE]}$`), b("COERCEPLAIN", `(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`), b("COERCE", `${d[u.COERCEPLAIN]}(?:$|[^\\d])`), b("COERCEFULL", d[u.COERCEPLAIN] + `(?:${d[u.PRERELEASE]})?(?:${d[u.BUILD]})?(?:$|[^\\d])`), b("COERCERTL", d[u.COERCE], !0), b("COERCERTLFULL", d[u.COERCEFULL], !0), b("LONETILDE", "(?:~>?)"), b("TILDETRIM", `(\\s*)${d[u.LONETILDE]}\\s+`, !0), e.tildeTrimReplace = "$1~", b("TILDE", `^${d[u.LONETILDE]}${d[u.XRANGEPLAIN]}$`), b("TILDELOOSE", `^${d[u.LONETILDE]}${d[u.XRANGEPLAINLOOSE]}$`), b("LONECARET", "(?:\\^)"), b("CARETTRIM", `(\\s*)${d[u.LONECARET]}\\s+`, !0), e.caretTrimReplace = "$1^", b("CARET", `^${d[u.LONECARET]}${d[u.XRANGEPLAIN]}$`), b("CARETLOOSE", `^${d[u.LONECARET]}${d[u.XRANGEPLAINLOOSE]}$`), b("COMPARATORLOOSE", `^${d[u.GTLT]}\\s*(${d[u.LOOSEPLAIN]})$|^$`), b("COMPARATOR", `^${d[u.GTLT]}\\s*(${d[u.FULLPLAIN]})$|^$`), b("COMPARATORTRIM", `(\\s*)${d[u.GTLT]}\\s*(${d[u.LOOSEPLAIN]}|${d[u.XRANGEPLAIN]})`, !0), e.comparatorTrimReplace = "$1$2$3", b("HYPHENRANGE", `^\\s*(${d[u.XRANGEPLAIN]})\\s+-\\s+(${d[u.XRANGEPLAIN]})\\s*$`), b("HYPHENRANGELOOSE", `^\\s*(${d[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${d[u.XRANGEPLAINLOOSE]})\\s*$`), b("STAR", "(<|>)?=?\\s*\\*"), b("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$"), b("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
1042
- })(st, st.exports);
1043
- var Oe = st.exports;
1045
+ })(at, at.exports);
1046
+ var Se = at.exports;
1044
1047
  const jn = Object.freeze({ loose: !0 }), Mn = Object.freeze({}), Un = (t) => t ? typeof t != "object" ? jn : t : Mn;
1045
1048
  var ht = Un;
1046
1049
  const Lt = /^[0-9]+$/, gr = (t, e) => {
@@ -1051,7 +1054,7 @@ var br = {
1051
1054
  compareIdentifiers: gr,
1052
1055
  rcompareIdentifiers: Dn
1053
1056
  };
1054
- const Se = Ue, { MAX_LENGTH: Nt, MAX_SAFE_INTEGER: Pe } = Me, { safeRe: Ct, t: xt } = Oe, Gn = ht, { compareIdentifiers: ge } = br;
1057
+ const Te = Ge, { MAX_LENGTH: Nt, MAX_SAFE_INTEGER: Le } = De, { safeRe: Ct, t: xt } = Se, Gn = ht, { compareIdentifiers: ge } = br;
1055
1058
  let Bn = class ue {
1056
1059
  constructor(e, r) {
1057
1060
  if (r = Gn(r), e instanceof ue) {
@@ -1064,20 +1067,20 @@ let Bn = class ue {
1064
1067
  throw new TypeError(
1065
1068
  `version is longer than ${Nt} characters`
1066
1069
  );
1067
- Se("SemVer", e, r), this.options = r, this.loose = !!r.loose, this.includePrerelease = !!r.includePrerelease;
1070
+ Te("SemVer", e, r), this.options = r, this.loose = !!r.loose, this.includePrerelease = !!r.includePrerelease;
1068
1071
  const n = e.trim().match(r.loose ? Ct[xt.LOOSE] : Ct[xt.FULL]);
1069
1072
  if (!n)
1070
1073
  throw new TypeError(`Invalid Version: ${e}`);
1071
- if (this.raw = e, this.major = +n[1], this.minor = +n[2], this.patch = +n[3], this.major > Pe || this.major < 0)
1074
+ if (this.raw = e, this.major = +n[1], this.minor = +n[2], this.patch = +n[3], this.major > Le || this.major < 0)
1072
1075
  throw new TypeError("Invalid major version");
1073
- if (this.minor > Pe || this.minor < 0)
1076
+ if (this.minor > Le || this.minor < 0)
1074
1077
  throw new TypeError("Invalid minor version");
1075
- if (this.patch > Pe || this.patch < 0)
1078
+ if (this.patch > Le || this.patch < 0)
1076
1079
  throw new TypeError("Invalid patch version");
1077
1080
  n[4] ? this.prerelease = n[4].split(".").map((s) => {
1078
1081
  if (/^[0-9]+$/.test(s)) {
1079
1082
  const o = +s;
1080
- if (o >= 0 && o < Pe)
1083
+ if (o >= 0 && o < Le)
1081
1084
  return o;
1082
1085
  }
1083
1086
  return s;
@@ -1090,7 +1093,7 @@ let Bn = class ue {
1090
1093
  return this.version;
1091
1094
  }
1092
1095
  compare(e) {
1093
- if (Se("SemVer.compare", this.version, this.options, e), !(e instanceof ue)) {
1096
+ if (Te("SemVer.compare", this.version, this.options, e), !(e instanceof ue)) {
1094
1097
  if (typeof e == "string" && e === this.version)
1095
1098
  return 0;
1096
1099
  e = new ue(e, this.options);
@@ -1110,7 +1113,7 @@ let Bn = class ue {
1110
1113
  let r = 0;
1111
1114
  do {
1112
1115
  const n = this.prerelease[r], s = e.prerelease[r];
1113
- if (Se("prerelease compare", r, n, s), n === void 0 && s === void 0)
1116
+ if (Te("prerelease compare", r, n, s), n === void 0 && s === void 0)
1114
1117
  return 0;
1115
1118
  if (s === void 0)
1116
1119
  return 1;
@@ -1126,7 +1129,7 @@ let Bn = class ue {
1126
1129
  let r = 0;
1127
1130
  do {
1128
1131
  const n = this.build[r], s = e.build[r];
1129
- if (Se("build compare", r, n, s), n === void 0 && s === void 0)
1132
+ if (Te("build compare", r, n, s), n === void 0 && s === void 0)
1130
1133
  return 0;
1131
1134
  if (s === void 0)
1132
1135
  return 1;
@@ -1263,7 +1266,7 @@ var ws = Es;
1263
1266
  const Rs = vt, Is = (t, e) => t.sort((r, n) => Rs(n, r, e));
1264
1267
  var As = Is;
1265
1268
  const Os = ie, Ss = (t, e, r) => Os(t, e, r) > 0;
1266
- var De = Ss;
1269
+ var Be = Ss;
1267
1270
  const Ps = ie, Ts = (t, e, r) => Ps(t, e, r) < 0;
1268
1271
  var gt = Ts;
1269
1272
  const Ls = ie, Ns = (t, e, r) => Ls(t, e, r) === 0;
@@ -1274,7 +1277,7 @@ const ks = ie, Vs = (t, e, r) => ks(t, e, r) >= 0;
1274
1277
  var bt = Vs;
1275
1278
  const Fs = ie, js = (t, e, r) => Fs(t, e, r) <= 0;
1276
1279
  var yt = js;
1277
- const Ms = yr, Us = $r, Ds = De, Gs = bt, Bs = gt, Ks = yt, qs = (t, e, r, n) => {
1280
+ const Ms = yr, Us = $r, Ds = Be, Gs = bt, Bs = gt, Ks = yt, qs = (t, e, r, n) => {
1278
1281
  switch (e) {
1279
1282
  case "===":
1280
1283
  return typeof t == "object" && (t = t.version), typeof r == "object" && (r = r.version), t === r;
@@ -1299,7 +1302,7 @@ const Ms = yr, Us = $r, Ds = De, Gs = bt, Bs = gt, Ks = yt, qs = (t, e, r, n) =>
1299
1302
  }
1300
1303
  };
1301
1304
  var _r = qs;
1302
- const Hs = ne, zs = Ee, { safeRe: Te, t: Le } = Oe, Xs = (t, e) => {
1305
+ const Hs = ne, zs = Ee, { safeRe: Ne, t: Ce } = Se, Xs = (t, e) => {
1303
1306
  if (t instanceof Hs)
1304
1307
  return t;
1305
1308
  if (typeof t == "number" && (t = String(t)), typeof t != "string")
@@ -1307,9 +1310,9 @@ const Hs = ne, zs = Ee, { safeRe: Te, t: Le } = Oe, Xs = (t, e) => {
1307
1310
  e = e || {};
1308
1311
  let r = null;
1309
1312
  if (!e.rtl)
1310
- r = t.match(e.includePrerelease ? Te[Le.COERCEFULL] : Te[Le.COERCE]);
1313
+ r = t.match(e.includePrerelease ? Ne[Ce.COERCEFULL] : Ne[Ce.COERCE]);
1311
1314
  else {
1312
- const d = e.includePrerelease ? Te[Le.COERCERTLFULL] : Te[Le.COERCERTL];
1315
+ const d = e.includePrerelease ? Ne[Ce.COERCERTLFULL] : Ne[Ce.COERCERTL];
1313
1316
  let u;
1314
1317
  for (; (u = d.exec(t)) && (!r || r.index + r[0].length !== t.length); )
1315
1318
  (!r || u.index + u[0].length !== r.index + r[0].length) && (r = u), d.lastIndex = u.index + u[1].length + u[2].length;
@@ -1344,10 +1347,10 @@ class Ws {
1344
1347
  return this;
1345
1348
  }
1346
1349
  }
1347
- var Js = Ws, Je, Ut;
1350
+ var Js = Ws, Ze, Ut;
1348
1351
  function le() {
1349
1352
  if (Ut)
1350
- return Je;
1353
+ return Ze;
1351
1354
  Ut = 1;
1352
1355
  const t = /\s+/g;
1353
1356
  class e {
@@ -1429,14 +1432,14 @@ function le() {
1429
1432
  return !1;
1430
1433
  }
1431
1434
  }
1432
- Je = e;
1433
- const r = Js, n = new r(), s = ht, o = Ge(), i = Ue, f = ne, {
1435
+ Ze = e;
1436
+ const r = Js, n = new r(), s = ht, o = Ke(), i = Ge, f = ne, {
1434
1437
  safeRe: d,
1435
1438
  t: u,
1436
1439
  comparatorTrimReplace: v,
1437
1440
  tildeTrimReplace: g,
1438
1441
  caretTrimReplace: T
1439
- } = Oe, { FLAG_INCLUDE_PRERELEASE: c, FLAG_LOOSE: b } = Me, O = (m) => m.value === "<0.0.0-0", y = (m) => m.value === "", k = (m, p) => {
1442
+ } = Se, { FLAG_INCLUDE_PRERELEASE: c, FLAG_LOOSE: b } = De, O = (m) => m.value === "<0.0.0-0", y = (m) => m.value === "", k = (m, p) => {
1440
1443
  let E = !0;
1441
1444
  const A = m.slice();
1442
1445
  let C = A.pop();
@@ -1481,12 +1484,12 @@ function le() {
1481
1484
  }
1482
1485
  return !0;
1483
1486
  };
1484
- return Je;
1487
+ return Ze;
1485
1488
  }
1486
- var Ze, Dt;
1487
- function Ge() {
1489
+ var Qe, Dt;
1490
+ function Ke() {
1488
1491
  if (Dt)
1489
- return Ze;
1492
+ return Qe;
1490
1493
  Dt = 1;
1491
1494
  const t = Symbol("SemVer ANY");
1492
1495
  class e {
@@ -1527,9 +1530,9 @@ function Ge() {
1527
1530
  return this.operator === "" ? this.value === "" ? !0 : new d(v.value, g).test(this.value) : v.operator === "" ? v.value === "" ? !0 : new d(this.value, g).test(v.semver) : (g = r(g), g.includePrerelease && (this.value === "<0.0.0-0" || v.value === "<0.0.0-0") || !g.includePrerelease && (this.value.startsWith("<0.0.0") || v.value.startsWith("<0.0.0")) ? !1 : !!(this.operator.startsWith(">") && v.operator.startsWith(">") || this.operator.startsWith("<") && v.operator.startsWith("<") || this.semver.version === v.semver.version && this.operator.includes("=") && v.operator.includes("=") || o(this.semver, "<", v.semver, g) && this.operator.startsWith(">") && v.operator.startsWith("<") || o(this.semver, ">", v.semver, g) && this.operator.startsWith("<") && v.operator.startsWith(">")));
1528
1531
  }
1529
1532
  }
1530
- Ze = e;
1531
- const r = ht, { safeRe: n, t: s } = Oe, o = _r, i = Ue, f = ne, d = le();
1532
- return Ze;
1533
+ Qe = e;
1534
+ const r = ht, { safeRe: n, t: s } = Se, o = _r, i = Ge, f = ne, d = le();
1535
+ return Qe;
1533
1536
  }
1534
1537
  const Zs = le(), Qs = (t, e, r) => {
1535
1538
  try {
@@ -1539,7 +1542,7 @@ const Zs = le(), Qs = (t, e, r) => {
1539
1542
  }
1540
1543
  return e.test(t);
1541
1544
  };
1542
- var Be = Qs;
1545
+ var qe = Qs;
1543
1546
  const ea = le(), ta = (t, e) => new ea(t, e).set.map((r) => r.map((n) => n.value).join(" ").trim().split(" "));
1544
1547
  var ra = ta;
1545
1548
  const na = ne, sa = le(), aa = (t, e, r) => {
@@ -1566,17 +1569,17 @@ const ia = ne, la = le(), ua = (t, e, r) => {
1566
1569
  }), n;
1567
1570
  };
1568
1571
  var ca = ua;
1569
- const Qe = ne, da = le(), Gt = De, fa = (t, e) => {
1572
+ const et = ne, da = le(), Gt = Be, fa = (t, e) => {
1570
1573
  t = new da(t, e);
1571
- let r = new Qe("0.0.0");
1572
- if (t.test(r) || (r = new Qe("0.0.0-0"), t.test(r)))
1574
+ let r = new et("0.0.0");
1575
+ if (t.test(r) || (r = new et("0.0.0-0"), t.test(r)))
1573
1576
  return r;
1574
1577
  r = null;
1575
1578
  for (let n = 0; n < t.set.length; ++n) {
1576
1579
  const s = t.set[n];
1577
1580
  let o = null;
1578
1581
  s.forEach((i) => {
1579
- const f = new Qe(i.semver.version);
1582
+ const f = new et(i.semver.version);
1580
1583
  switch (i.operator) {
1581
1584
  case ">":
1582
1585
  f.prerelease.length === 0 ? f.patch++ : f.prerelease.push(0), f.raw = f.format();
@@ -1603,7 +1606,7 @@ const pa = le(), ha = (t, e) => {
1603
1606
  }
1604
1607
  };
1605
1608
  var va = ha;
1606
- const ga = ne, Er = Ge(), { ANY: ba } = Er, ya = le(), $a = Be, Bt = De, Kt = gt, _a = yt, Ea = bt, wa = (t, e, r, n) => {
1609
+ const ga = ne, Er = Ke(), { ANY: ba } = Er, ya = le(), $a = qe, Bt = Be, Kt = gt, _a = yt, Ea = bt, wa = (t, e, r, n) => {
1607
1610
  t = new ga(t, n), e = new ya(e, n);
1608
1611
  let s, o, i, f, d;
1609
1612
  switch (r) {
@@ -1637,7 +1640,7 @@ const Oa = $t, Sa = (t, e, r) => Oa(t, e, "<", r);
1637
1640
  var Pa = Sa;
1638
1641
  const qt = le(), Ta = (t, e, r) => (t = new qt(t, r), e = new qt(e, r), t.intersects(e, r));
1639
1642
  var La = Ta;
1640
- const Na = Be, Ca = ie;
1643
+ const Na = qe, Ca = ie;
1641
1644
  var xa = (t, e, r) => {
1642
1645
  const n = [];
1643
1646
  let s = null, o = null;
@@ -1651,7 +1654,7 @@ var xa = (t, e, r) => {
1651
1654
  const d = f.join(" || "), u = typeof e.raw == "string" ? e.raw : String(e);
1652
1655
  return d.length < u.length ? d : e;
1653
1656
  };
1654
- const Ht = le(), _t = Ge(), { ANY: et } = _t, Ie = Be, Et = ie, ka = (t, e, r = {}) => {
1657
+ const Ht = le(), _t = Ke(), { ANY: tt } = _t, Ie = qe, Et = ie, ka = (t, e, r = {}) => {
1655
1658
  if (t === e)
1656
1659
  return !0;
1657
1660
  t = new Ht(t, r), e = new Ht(e, r);
@@ -1670,12 +1673,12 @@ const Ht = le(), _t = Ge(), { ANY: et } = _t, Ie = Be, Et = ie, ka = (t, e, r =
1670
1673
  }, Va = [new _t(">=0.0.0-0")], zt = [new _t(">=0.0.0")], Fa = (t, e, r) => {
1671
1674
  if (t === e)
1672
1675
  return !0;
1673
- if (t.length === 1 && t[0].semver === et) {
1674
- if (e.length === 1 && e[0].semver === et)
1676
+ if (t.length === 1 && t[0].semver === tt) {
1677
+ if (e.length === 1 && e[0].semver === tt)
1675
1678
  return !0;
1676
1679
  r.includePrerelease ? t = Va : t = zt;
1677
1680
  }
1678
- if (e.length === 1 && e[0].semver === et) {
1681
+ if (e.length === 1 && e[0].semver === tt) {
1679
1682
  if (r.includePrerelease)
1680
1683
  return !0;
1681
1684
  e = zt;
@@ -1734,7 +1737,7 @@ const Ht = le(), _t = Ge(), { ANY: et } = _t, Ie = Be, Et = ie, ka = (t, e, r =
1734
1737
  return n < 0 ? t : n > 0 || e.operator === "<" && t.operator === "<=" ? e : t;
1735
1738
  };
1736
1739
  var ja = ka;
1737
- const tt = Oe, Wt = Me, Ma = ne, Jt = br, Ua = Ee, Da = zn, Ga = Wn, Ba = Zn, Ka = es, qa = ns, Ha = os, za = us, Xa = fs, Ya = ie, Wa = vs, Ja = ys, Za = vt, Qa = ws, eo = As, to = De, ro = gt, no = yr, so = $r, ao = bt, oo = yt, io = _r, lo = Ys, uo = Ge(), co = le(), fo = Be, mo = ra, po = oa, ho = ca, vo = ma, go = va, bo = $t, yo = Aa, $o = Pa, _o = La, Eo = xa, wo = ja;
1740
+ const rt = Se, Wt = De, Ma = ne, Jt = br, Ua = Ee, Da = zn, Ga = Wn, Ba = Zn, Ka = es, qa = ns, Ha = os, za = us, Xa = fs, Ya = ie, Wa = vs, Ja = ys, Za = vt, Qa = ws, eo = As, to = Be, ro = gt, no = yr, so = $r, ao = bt, oo = yt, io = _r, lo = Ys, uo = Ke(), co = le(), fo = qe, mo = ra, po = oa, ho = ca, vo = ma, go = va, bo = $t, yo = Aa, $o = Pa, _o = La, Eo = xa, wo = ja;
1738
1741
  var Ro = {
1739
1742
  parse: Ua,
1740
1743
  valid: Da,
@@ -1774,16 +1777,16 @@ var Ro = {
1774
1777
  simplifyRange: Eo,
1775
1778
  subset: wo,
1776
1779
  SemVer: Ma,
1777
- re: tt.re,
1778
- src: tt.src,
1779
- tokens: tt.t,
1780
+ re: rt.re,
1781
+ src: rt.src,
1782
+ tokens: rt.t,
1780
1783
  SEMVER_SPEC_VERSION: Wt.SEMVER_SPEC_VERSION,
1781
1784
  RELEASE_TYPES: Wt.RELEASE_TYPES,
1782
1785
  compareIdentifiers: Jt.compareIdentifiers,
1783
1786
  rcompareIdentifiers: Jt.rcompareIdentifiers
1784
1787
  };
1785
1788
  const Zt = /* @__PURE__ */ dr(Ro);
1786
- var at = /* @__PURE__ */ ((t) => (t[t.menuV3 = 0] = "menuV3", t[t.applyEffectOnOrder = 1] = "applyEffectOnOrder", t[t.nestedAddon = 2] = "nestedAddon", t[t.feedmeDelivery = 3] = "feedmeDelivery", t[t.taxAndServiceChargeV4 = 4] = "taxAndServiceChargeV4", t[t.itemCombo = 5] = "itemCombo", t[t.itemTakeaway = 6] = "itemTakeaway", t[t.transferInventory = 7] = "transferInventory", t[t.qrEPayment = 8] = "qrEPayment", t[t.deliveryIntegration = 9] = "deliveryIntegration", t[t.rmsPayment = 10] = "rmsPayment", t[t.queue = 11] = "queue", t[t.paymentVoucher = 12] = "paymentVoucher", t))(at || {});
1789
+ var ot = /* @__PURE__ */ ((t) => (t[t.menuV3 = 0] = "menuV3", t[t.applyEffectOnOrder = 1] = "applyEffectOnOrder", t[t.nestedAddon = 2] = "nestedAddon", t[t.feedmeDelivery = 3] = "feedmeDelivery", t[t.taxAndServiceChargeV4 = 4] = "taxAndServiceChargeV4", t[t.itemCombo = 5] = "itemCombo", t[t.itemTakeaway = 6] = "itemTakeaway", t[t.transferInventory = 7] = "transferInventory", t[t.qrEPayment = 8] = "qrEPayment", t[t.deliveryIntegration = 9] = "deliveryIntegration", t[t.rmsPayment = 10] = "rmsPayment", t[t.queue = 11] = "queue", t[t.paymentVoucher = 12] = "paymentVoucher", t))(ot || {});
1787
1790
  const wr = {
1788
1791
  0: "3.0.0-alpha",
1789
1792
  1: "3.5.0-alpha",
@@ -1824,7 +1827,7 @@ function Qt(t = "no name") {
1824
1827
  };
1825
1828
  }
1826
1829
  function er() {
1827
- return Ae({
1830
+ return Oe({
1828
1831
  line1: "",
1829
1832
  line2: "",
1830
1833
  city: "",
@@ -1834,7 +1837,7 @@ function er() {
1834
1837
  coordinates: []
1835
1838
  });
1836
1839
  }
1837
- function Ae(t) {
1840
+ function Oe(t) {
1838
1841
  return {
1839
1842
  ...t,
1840
1843
  get formatted() {
@@ -1855,7 +1858,7 @@ function Ae(t) {
1855
1858
  };
1856
1859
  }
1857
1860
  function Oo({ posVersion: t, payoutAccount: e }) {
1858
- return !!t && Io(at.qrEPayment, t) ? !e || !e.enable ? "Payout account is required" : e.status !== mt.F_PAYOUT_ACCOUNT_STATUS.enum.APPROVED ? "Payout account under review" : !0 : `For POS ${Ao(at.qrEPayment)} or above`;
1861
+ return !!t && Io(ot.qrEPayment, t) ? !e || !e.enable ? "Payout account is required" : e.status !== pt.F_PAYOUT_ACCOUNT_STATUS.enum.APPROVED ? "Payout account under review" : !0 : `For POS ${Ao(ot.qrEPayment)} or above`;
1859
1862
  }
1860
1863
  function Rr(t) {
1861
1864
  return {
@@ -1863,42 +1866,47 @@ function Rr(t) {
1863
1866
  ...t,
1864
1867
  profile: {
1865
1868
  ...t.profile,
1866
- address: Ae(t.profile.address)
1869
+ address: Oe(t.profile.address)
1867
1870
  },
1868
1871
  allowEPayment: Oo(t)
1869
1872
  };
1870
1873
  }
1871
- function rt(t) {
1872
- return Rr(pt(t));
1874
+ function nt(t) {
1875
+ return Rr(je(t));
1873
1876
  }
1874
1877
  async function tr(t) {
1875
- const e = pt(t), r = [];
1878
+ const e = je(t), r = [];
1876
1879
  for (const n of e)
1877
1880
  r.push(await Rr(n));
1878
1881
  return r;
1879
1882
  }
1880
- const Fe = {
1883
+ const Ae = {
1881
1884
  async readRestaurant(t) {
1882
- return await rt(await He().get(`/restaurants/${t}`));
1885
+ return await nt(await Pe().get(`/restaurants/${t}`));
1883
1886
  },
1884
1887
  async readRestaurants() {
1885
- return await tr(await ze().get("/restaurants"));
1888
+ return await tr(await Xe().get("/restaurants"));
1886
1889
  },
1887
1890
  async readRestaurantsByBusiness() {
1888
- return await tr(await ze().get("/restaurant-list"));
1891
+ return await tr(await Xe().get("/restaurant-list"));
1889
1892
  },
1890
1893
  async createRestaurant(t) {
1891
- return await rt(await ze().post("/restaurants", t));
1894
+ return await nt(await Xe().post("/restaurants", t));
1892
1895
  },
1893
1896
  async updateRestaurantProfile(t, e) {
1894
- return await rt(
1895
- await He().put(`/restaurants/${t}/profile`, e)
1897
+ return await nt(
1898
+ await Pe().put(`/restaurants/${t}/profile`, e)
1896
1899
  );
1897
1900
  },
1898
1901
  async updateRestaurantAttributes(t, e) {
1899
- return pt(await He().put(`/restaurants/${t}/attributes`, {
1900
- attributes: e
1901
- }));
1902
+ return je(
1903
+ await Pe().put(`/restaurants/${t}/attributes`, {
1904
+ attributes: e
1905
+ })
1906
+ );
1907
+ },
1908
+ async createRestaurantFeature(t) {
1909
+ return je(await Pe().post(`/license/restaurant/${t}`));
1902
1910
  }
1903
1911
  }, So = /* @__PURE__ */ re({
1904
1912
  __name: "GoogleMap",
@@ -1921,7 +1929,7 @@ const Fe = {
1921
1929
  },
1922
1930
  center: {
1923
1931
  type: Object,
1924
- default: Ve.jb
1932
+ default: Me.jb
1925
1933
  }
1926
1934
  },
1927
1935
  emits: ["map-click", "marker-change", "polygon-change", "polygon-right-click"],
@@ -2040,8 +2048,8 @@ const Fe = {
2040
2048
  }
2041
2049
  },
2042
2050
  setup(t) {
2043
- const { t: e } = ve(), r = t, { emitData: n } = Ur(), s = ut(
2044
- $e(r.coordinate ? r.coordinate : Ve.jb)
2051
+ const { t: e } = ve(), r = t, { emitData: n } = Ur(), s = ct(
2052
+ $e(r.coordinate ? r.coordinate : Me.jb)
2045
2053
  );
2046
2054
  function o({ position: i }) {
2047
2055
  s.lat = i.lat, s.lng = i.lng, n(s);
@@ -2090,7 +2098,7 @@ const Fe = {
2090
2098
  },
2091
2099
  emits: ["update:model-value"],
2092
2100
  setup(t, { emit: e }) {
2093
- const { t: r } = ve(), n = t, s = e, o = dt(), i = Y(() => {
2101
+ const { t: r } = ve(), n = t, s = e, o = ft(), i = Y(() => {
2094
2102
  const g = n.modelValue || [];
2095
2103
  return g.length < 2 ? null : Jr(g);
2096
2104
  }), f = Y(() => i.value ? `${i.value.lat}, ${i.value.lng}` : "");
@@ -2101,8 +2109,8 @@ const Fe = {
2101
2109
  n.address.formatted ? T.geocode({ address: n.address.formatted }, (O) => {
2102
2110
  var k;
2103
2111
  const y = (k = O == null ? void 0 : O[0]) == null ? void 0 : k.geometry;
2104
- c = y ? { lng: y.location.lng(), lat: y.location.lat() } : Ve.jb, b(!0);
2105
- }) : (c = Ve.jb, b(!0));
2112
+ c = y ? { lng: y.location.lng(), lat: y.location.lat() } : Me.jb, b(!0);
2113
+ }) : (c = Me.jb, b(!0));
2106
2114
  }), o.open({
2107
2115
  contentComponent: Co,
2108
2116
  contentComponentProps: {
@@ -2185,8 +2193,8 @@ const Fe = {
2185
2193
  },
2186
2194
  emits: ["update:model-value"],
2187
2195
  setup(t, { emit: e }) {
2188
- const r = t, n = e, s = ct(), { t: o } = ve();
2189
- ft().startOf("week");
2196
+ const r = t, n = e, s = dt(), { t: o } = ve();
2197
+ mt().startOf("week");
2190
2198
  const i = Y(
2191
2199
  () => [
2192
2200
  o("settings.operation_hours.mon"),
@@ -2405,12 +2413,12 @@ function rr(t) {
2405
2413
  }
2406
2414
  class Wo {
2407
2415
  constructor(e, r) {
2408
- Ke(this, "restaurant");
2409
- Ke(this, "data");
2416
+ He(this, "restaurant");
2417
+ He(this, "data");
2410
2418
  this.restaurant = e, this.data = r;
2411
2419
  }
2412
2420
  generateUrl(e) {
2413
- const r = e === "normal" ? ft().toISOString() : "photo";
2421
+ const r = e === "normal" ? mt().toISOString() : "photo";
2414
2422
  return `restaurant/${this.restaurant.id}/${e}/${r}`;
2415
2423
  }
2416
2424
  async manageThumbnail() {
@@ -2450,18 +2458,18 @@ class Wo {
2450
2458
  }
2451
2459
  async function nr(t, e) {
2452
2460
  const r = new Wo(t, e);
2453
- await r.run(), await Fe.updateRestaurantProfile(t.id, r.data), await pe().readRestaurants();
2461
+ await r.run(), await Ae.updateRestaurantProfile(t.id, r.data), await pe().readRestaurants();
2454
2462
  }
2455
2463
  const Jo = () => {
2456
2464
  const t = pe();
2457
2465
  return {
2458
2466
  async createRestaurant(e, r, n) {
2459
- const s = await Fe.createRestaurant({
2467
+ const s = await Ae.createRestaurant({
2460
2468
  businessId: e,
2461
2469
  features: [],
2462
2470
  profile: r
2463
2471
  });
2464
- n && await Fe.updateRestaurantAttributes(s.id, n), await nr(s, r), await t.readRestaurants();
2472
+ n && await Ae.updateRestaurantAttributes(s.id, n), await nr(s, r), await Ae.createRestaurantFeature(s.id), await t.readRestaurants();
2465
2473
  },
2466
2474
  async updateRestaurantProfile(e, r) {
2467
2475
  await nr(e, r);
@@ -2488,15 +2496,15 @@ const Jo = () => {
2488
2496
  },
2489
2497
  setup(t, { expose: e }) {
2490
2498
  var P;
2491
- const r = t, { restaurants: n, currentBusiness: s, restaurantAttributeSettings: o, enabledCountries: i } = pe(), f = ct(), d = fr(f), { copyTextToClipboard: u } = cr(), v = ae(!1), g = (x, w) => {
2499
+ const r = t, { restaurants: n, currentBusiness: s, restaurantAttributeSettings: o, enabledCountries: i } = pe(), f = dt(), d = fr(f), { copyTextToClipboard: u } = cr(), v = ae(!1), g = (x, w) => {
2492
2500
  v.value = !v.value;
2493
2501
  }, T = Y(() => {
2494
2502
  var x;
2495
2503
  return (x = r.restaurant) == null ? void 0 : x.profile;
2496
- }), c = ut(
2504
+ }), c = ct(
2497
2505
  T.value ? $e(T.value) : {
2498
2506
  ...Qt(),
2499
- address: Ae(Qt().address),
2507
+ address: Oe(Qt().address),
2500
2508
  legalName: "",
2501
2509
  sstRegNo: "",
2502
2510
  description: "",
@@ -2541,9 +2549,9 @@ const Jo = () => {
2541
2549
  r.restaurantId ? y("settings.business.restaurant.form.title.update") : y("settings.business.restaurant.form.title.add")
2542
2550
  ), V = ae(((P = r.restaurant) == null ? void 0 : P.customAttributes) || {});
2543
2551
  async function I(x) {
2544
- Object.values(V.value).length !== 0 && await Fe.updateRestaurantAttributes(x, V.value);
2552
+ Object.values(V.value).length !== 0 && await Ae.updateRestaurantAttributes(x, V.value);
2545
2553
  }
2546
- const M = Y(() => Ae(c.address)), J = Y(() => M.value.formatted);
2554
+ const M = Y(() => Oe(c.address)), J = Y(() => M.value.formatted);
2547
2555
  function Z(x) {
2548
2556
  var w;
2549
2557
  if (typeof x == "string") {
@@ -2567,7 +2575,7 @@ const Jo = () => {
2567
2575
  function l(x) {
2568
2576
  c.newPhotos = c.newPhotos || [], c.newPhotos.push(x);
2569
2577
  }
2570
- const h = Jo(), R = dt();
2578
+ const h = Jo(), R = ft();
2571
2579
  function S() {
2572
2580
  var w, L;
2573
2581
  !((w = T.value) != null && w.code) && ((L = c.code) == null ? void 0 : L.trim()) ? R.open({
@@ -2678,7 +2686,7 @@ const Jo = () => {
2678
2686
  _(E)("sm") ? ce("", !0) : (F(), te(Tt, {
2679
2687
  key: 0,
2680
2688
  class: "fixed",
2681
- style: ke({
2689
+ style: Fe({
2682
2690
  top: "85px",
2683
2691
  left: _(C).right - 400 + "px"
2684
2692
  }),
@@ -2823,7 +2831,7 @@ const Jo = () => {
2823
2831
  }, null, 8, ["label"]),
2824
2832
  N(Dr, {
2825
2833
  class: "w-[320px]",
2826
- "exclude-restaurants": [t.restaurantId ?? ""],
2834
+ "exclude-restaurants": t.restaurantId ? [t.restaurantId] : [],
2827
2835
  "model-value": "",
2828
2836
  "onUpdate:modelValue": w[11] || (w[11] = (j) => Z(j))
2829
2837
  }, null, 8, ["exclude-restaurants"]),
@@ -2855,7 +2863,7 @@ const Jo = () => {
2855
2863
  rules: [
2856
2864
  (j) => {
2857
2865
  var Q;
2858
- return !j || ((Q = T.value) == null ? void 0 : Q.url) == c.url || O.value == _(mt.F_COUNTRY).enum.MY || _(y)("settings.business.restaurant.form.sections.branding.url.errors.disabled");
2866
+ return !j || ((Q = T.value) == null ? void 0 : Q.url) == c.url || O.value == _(pt.F_COUNTRY).enum.MY || _(y)("settings.business.restaurant.form.sections.branding.url.errors.disabled");
2859
2867
  },
2860
2868
  (j) => !j || _(pr).test(j) || _(y)("settings.business.restaurant.form.sections.branding.url.errors.invalid"),
2861
2869
  (j) => !j || !_(hr).includes(j) || _(y)("settings.business.restaurant.form.sections.branding.url.errors.reserved")
@@ -3356,15 +3364,15 @@ function di(t, e, r) {
3356
3364
  function fi(t, e) {
3357
3365
  t.prototype = Object.create(e.prototype), t.prototype.constructor = t, t.__proto__ = e;
3358
3366
  }
3359
- function ot(t) {
3360
- return ot = Object.setPrototypeOf ? Object.getPrototypeOf : function(r) {
3367
+ function it(t) {
3368
+ return it = Object.setPrototypeOf ? Object.getPrototypeOf : function(r) {
3361
3369
  return r.__proto__ || Object.getPrototypeOf(r);
3362
- }, ot(t);
3370
+ }, it(t);
3363
3371
  }
3364
- function je(t, e) {
3365
- return je = Object.setPrototypeOf || function(n, s) {
3372
+ function Ue(t, e) {
3373
+ return Ue = Object.setPrototypeOf || function(n, s) {
3366
3374
  return n.__proto__ = s, n;
3367
- }, je(t, e);
3375
+ }, Ue(t, e);
3368
3376
  }
3369
3377
  function mi() {
3370
3378
  if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
@@ -3378,20 +3386,20 @@ function mi() {
3378
3386
  return !1;
3379
3387
  }
3380
3388
  }
3381
- function Ce(t, e, r) {
3382
- return mi() ? Ce = Reflect.construct : Ce = function(s, o, i) {
3389
+ function ke(t, e, r) {
3390
+ return mi() ? ke = Reflect.construct : ke = function(s, o, i) {
3383
3391
  var f = [null];
3384
3392
  f.push.apply(f, o);
3385
3393
  var d = Function.bind.apply(s, f), u = new d();
3386
- return i && je(u, i.prototype), u;
3387
- }, Ce.apply(null, arguments);
3394
+ return i && Ue(u, i.prototype), u;
3395
+ }, ke.apply(null, arguments);
3388
3396
  }
3389
3397
  function pi(t) {
3390
3398
  return Function.toString.call(t).indexOf("[native code]") !== -1;
3391
3399
  }
3392
- function it(t) {
3400
+ function lt(t) {
3393
3401
  var e = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
3394
- return it = function(n) {
3402
+ return lt = function(n) {
3395
3403
  if (n === null || !pi(n))
3396
3404
  return n;
3397
3405
  if (typeof n != "function")
@@ -3402,7 +3410,7 @@ function it(t) {
3402
3410
  e.set(n, s);
3403
3411
  }
3404
3412
  function s() {
3405
- return Ce(n, arguments, ot(this).constructor);
3413
+ return ke(n, arguments, it(this).constructor);
3406
3414
  }
3407
3415
  return s.prototype = Object.create(n.prototype, {
3408
3416
  constructor: {
@@ -3411,8 +3419,8 @@ function it(t) {
3411
3419
  writable: !0,
3412
3420
  configurable: !0
3413
3421
  }
3414
- }), je(s, n);
3415
- }, it(t);
3422
+ }), Ue(s, n);
3423
+ }, lt(t);
3416
3424
  }
3417
3425
  function or(t) {
3418
3426
  if (t === void 0)
@@ -3421,9 +3429,9 @@ function or(t) {
3421
3429
  }
3422
3430
  var Ar = function(e) {
3423
3431
  return 'Cannot execute "' + e.action + '" on "' + e.subjectName + '"';
3424
- }, Ne = Ar, hi = /* @__PURE__ */ function(t) {
3432
+ }, xe = Ar, hi = /* @__PURE__ */ function(t) {
3425
3433
  fi(e, t), e.setDefaultMessage = function(s) {
3426
- s === null ? Ne = Ar : Ne = typeof s == "string" ? function() {
3434
+ s === null ? xe = Ar : xe = typeof s == "string" ? function() {
3427
3435
  return s;
3428
3436
  } : s;
3429
3437
  }, e.from = function(s) {
@@ -3434,7 +3442,7 @@ var Ar = function(e) {
3434
3442
  };
3435
3443
  function e(n, s) {
3436
3444
  var o;
3437
- return s === void 0 && (s = {}), o = t.call(this, n) || this, o._setMetadata(s), o.message = n || Ne(or(o)), o._customMessage = null, typeof Error.captureStackTrace == "function" && (o.name = o.constructor.name, Error.captureStackTrace(or(o), o.constructor)), o;
3445
+ return s === void 0 && (s = {}), o = t.call(this, n) || this, o._setMetadata(s), o.message = n || xe(or(o)), o._customMessage = null, typeof Error.captureStackTrace == "function" && (o.name = o.constructor.name, Error.captureStackTrace(or(o), o.constructor)), o;
3438
3446
  }
3439
3447
  var r = e.prototype;
3440
3448
  return r.setMessage = function(s) {
@@ -3451,13 +3459,13 @@ var Ar = function(e) {
3451
3459
  subjectName: this.ability.subjectName(o)
3452
3460
  });
3453
3461
  var d = f ? f.reason : "";
3454
- throw this.message = this._customMessage || d || Ne(this), this;
3462
+ throw this.message = this._customMessage || d || xe(this), this;
3455
3463
  }
3456
3464
  }, r._setMetadata = function(s) {
3457
3465
  this.subject = s.subject, this.subjectName = s.subjectName, this.action = s.action, this.field = s.field;
3458
3466
  }, e;
3459
- }(it(Error));
3460
- function lt(t) {
3467
+ }(lt(Error));
3468
+ function ut(t) {
3461
3469
  return Array.isArray(t) ? t : [t];
3462
3470
  }
3463
3471
  function vi(t) {
@@ -3485,7 +3493,7 @@ function Ri(t) {
3485
3493
  }
3486
3494
  var Ii = /* @__PURE__ */ function() {
3487
3495
  function t(r) {
3488
- this.actions = r.actions || r.action, this.subject = r.subject, this.fields = !r.fields || r.fields.length === 0 ? void 0 : lt(r.fields), Object.defineProperty(this, "_fieldsPattern", {
3496
+ this.actions = r.actions || r.action, this.subject = r.subject, this.fields = !r.fields || r.fields.length === 0 ? void 0 : ut(r.fields), Object.defineProperty(this, "_fieldsPattern", {
3489
3497
  writable: !0
3490
3498
  }), this.inverted = !!r.inverted, this.conditions = r.conditions, Object.defineProperty(this, "_matches", {
3491
3499
  writable: !0,
@@ -3540,7 +3548,7 @@ var Ai = /* @__PURE__ */ function() {
3540
3548
  return process.env.NODE_ENV !== "production" && o.isAllInverted && n.length && console.warn("[casl]: Ability contains only inverted rules. That means user will not be able to do any actions. This will be changed to Error throw in the next major version"), this[se].indexedRules = o.rules, this[se].hasPerFieldRules = o.hasPerFieldRules, this.emit("updated", s), this;
3541
3549
  }, e.buildIndexFor = function(n) {
3542
3550
  for (var s = /* @__PURE__ */ Object.create(null), o = this[se].RuleType, i = !0, f = !1, d = 0; d < n.length; d++) {
3543
- var u = new o(n[d]), v = this.expandActions(u.actions), g = lt(u.subject), T = n.length - d - 1;
3551
+ var u = new o(n[d]), v = this.expandActions(u.actions), g = ut(u.subject), T = n.length - d - 1;
3544
3552
  i = !!(i && u.inverted), !f && u.fields && (f = !0);
3545
3553
  for (var c = 0; c < g.length; c++) {
3546
3554
  var b = g[c];
@@ -3557,7 +3565,7 @@ var Ai = /* @__PURE__ */ function() {
3557
3565
  rules: s
3558
3566
  };
3559
3567
  }, e.expandActions = function(n) {
3560
- for (var s = this[se].aliases, o = lt(n), i = 0; i < o.length; ) {
3568
+ for (var s = this[se].aliases, o = ut(n), i = 0; i < o.length; ) {
3561
3569
  var f = o[i++];
3562
3570
  s.hasOwnProperty(f) && (o = o.concat(s[f]));
3563
3571
  }
@@ -3653,7 +3661,7 @@ const Si = { class: "fm-typo-cn-body-md-400 text-fm-color-typo-secondary xs:flex
3653
3661
  }, Ni = { class: "fm-typo-en-body-md-600" }, Ci = {
3654
3662
  key: 0,
3655
3663
  class: "space-y-8"
3656
- }, xi = { class: "flex justify-end" }, ki = { class: "flex-1 pb-64 overflow-auto divide-y divide-fm-color-neutral-gray-100" }, Vi = { key: 0 }, Fi = ["onClick"], ji = { class: "flex justify-between items-center" }, Mi = { class: "fm-typo-en-body-lg-600" }, Ui = { class: "flex gap-8" }, Di = { class: "text-fm-color-typo-secondary" }, Gi = { class: "text-fm-color-typo-secondary" }, Bi = { class: "text-fm-color-typo-secondary" }, il = /* @__PURE__ */ re({
3664
+ }, xi = { class: "flex justify-end" }, ki = { class: "flex-1 pb-64 overflow-auto divide-y divide-fm-color-neutral-gray-100" }, Vi = { key: 0 }, Fi = ["onClick"], ji = { class: "flex justify-between items-center" }, Mi = { class: "fm-typo-en-body-lg-600" }, Ui = { class: "flex gap-8" }, Di = { class: "text-fm-color-typo-secondary" }, Gi = { class: "text-fm-color-typo-secondary" }, Bi = { class: "text-fm-color-typo-secondary" }, cl = /* @__PURE__ */ re({
3657
3665
  __name: "Business",
3658
3666
  setup(t) {
3659
3667
  const { searchKey: e, filter: r } = li(), { copyTextToClipboard: n } = cr(), s = ur(), o = Y(() => s.breakpoints.value.xs), { t: i } = ve(), f = Y(() => {
@@ -3664,7 +3672,7 @@ const Si = { class: "fm-typo-cn-body-md-400 text-fm-color-typo-secondary xs:flex
3664
3672
  var p;
3665
3673
  const { _id: W, profile: a } = D, { name: l, email: h, phoneNo: R, address: S, sstRegNo: m } = {
3666
3674
  ...a,
3667
- address: Ae(a.address)
3675
+ address: Oe(a.address)
3668
3676
  };
3669
3677
  return {
3670
3678
  id: W,
@@ -3753,7 +3761,7 @@ const Si = { class: "fm-typo-cn-body-md-400 text-fm-color-typo-secondary xs:flex
3753
3761
  if (!f.value)
3754
3762
  return;
3755
3763
  const { name: b, url: O, thumbnail: y } = f.value.doc;
3756
- qe(g, vn, {
3764
+ ze(g, vn, {
3757
3765
  businessId: f.value.id,
3758
3766
  initialValue: {
3759
3767
  name: b,
@@ -3764,13 +3772,13 @@ const Si = { class: "fm-typo-cn-body-md-400 text-fm-color-typo-secondary xs:flex
3764
3772
  }
3765
3773
  const g = Fr();
3766
3774
  function T() {
3767
- qe(g, sr, {
3775
+ ze(g, sr, {
3768
3776
  enableFeedmeExpress: !1
3769
3777
  });
3770
3778
  }
3771
3779
  function c(b) {
3772
3780
  var O;
3773
- qe(g, sr, {
3781
+ ze(g, sr, {
3774
3782
  restaurantId: b.id,
3775
3783
  restaurant: b.doc,
3776
3784
  enableFeedmeExpress: ((O = b.doc.feedmeDelivery) == null ? void 0 : O.enable) || !1
@@ -3873,13 +3881,13 @@ const Si = { class: "fm-typo-cn-body-md-400 text-fm-color-typo-secondary xs:flex
3873
3881
  icon: "edit",
3874
3882
  "text-color": "neutral-gray-400",
3875
3883
  variant: "tertiary",
3876
- onClick: nt((h) => c(a), ["stop"])
3884
+ onClick: st((h) => c(a), ["stop"])
3877
3885
  }, null, 8, ["onClick"]),
3878
3886
  N(k, {
3879
3887
  icon: "file_copy",
3880
3888
  "text-color": "neutral-gray-400",
3881
3889
  variant: "tertiary",
3882
- onClick: nt((h) => _(n)(a.id), ["stop"])
3890
+ onClick: st((h) => _(n)(a.id), ["stop"])
3883
3891
  }, null, 8, ["onClick"])
3884
3892
  ])
3885
3893
  ]),
@@ -3916,5 +3924,5 @@ const Si = { class: "fm-typo-cn-body-md-400 text-fm-color-typo-secondary xs:flex
3916
3924
  }
3917
3925
  });
3918
3926
  export {
3919
- il as default
3927
+ cl as default
3920
3928
  };