@feedmepos/mf-settings 0.0.62-beta.1 → 0.0.63-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.
@@ -1,10 +1,10 @@
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
3
  var Xe = (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 j, createBlock as te, withCtx as K, withModifiers as ot, createCommentVNode as ce, renderSlot as de, createElementVNode as $, nextTick as Pr, createElementBlock as B, normalizeClass as ee, createTextVNode as je, toDisplayString as G, computed as Y, normalizeStyle as Me, createVNode as L, reactive as ft, Fragment as oe, unref as _, renderList as he, h as At, Teleport as Tr, Transition as Lr, withKeys as Nr, watch as Ot, onMounted as Cr, onUnmounted as xr, toRaw as St, normalizeProps as kr, guardReactiveProps as Vr, getCurrentInstance as Fr, isRef as Pt } from "vue";
5
- import { useCoreStore as pe, useI18n as ve, CustomAttributesForm as jr } from "@feedmepos/mf-common";
6
- import { useSnackbar as mt, components as Mr, useDialog as pt, 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";
4
+ import { defineComponent as re, ref as ae, resolveComponent as q, openBlock as j, createBlock as te, withCtx as K, withModifiers as ot, createCommentVNode as ce, renderSlot as de, createElementVNode as _, nextTick as Pr, createElementBlock as B, normalizeClass as ee, createTextVNode as je, toDisplayString as G, computed as Y, normalizeStyle as Me, createVNode as L, reactive as ft, Fragment as oe, unref as $, renderList as he, h as At, Teleport as Tr, Transition as Lr, withKeys as Nr, watch as Ot, onMounted as Cr, onUnmounted as xr, toRaw as St, normalizeProps as kr, guardReactiveProps as Vr, getCurrentInstance as Fr, isRef as Pt } from "vue";
5
+ import { useCoreStore as pe, useI18n as ve, CustomAttributesForm as jr, RestaurantSelector as Mr } from "@feedmepos/mf-common";
6
+ import { useSnackbar as mt, components as Ur, useDialog as pt, useDialogChild as Dr, useBreakpoints as ur } from "@feedmepos/ui-library";
7
+ import { _ as Gr } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-8f929a2d.js";
8
8
  import { _ as Br, c as Ye } from "./createForm-d3b97d2e.js";
9
9
  import { D as ht, u as cr } from "./dayjs.min-1dcf0c5a.js";
10
10
  import { _ as Re, c as Kr } from "./FormSection.vue_vue_type_script_setup_true_lang-6aab82f2.js";
@@ -14,7 +14,7 @@ import { c as $e } from "./object-27ce045b.js";
14
14
  import { b as Hr } from "./business-0b74f773.js";
15
15
  import { t as Je, w as Ze, x as zr, y as Xr, z as Yr, A as Wr, B as De, u as be, D as Jr, G as Zr } from "./map-695afd6f.js";
16
16
  import { _ as mr } from "./_plugin-vue_export-helper-dad06003.js";
17
- import { u as Qr } from "./app-03a3a1de.js";
17
+ import { u as Qr } from "./app-b3105281.js";
18
18
  import { r as fe } from "./rules-2bee6632.js";
19
19
  import "pinia";
20
20
  import "@feedmepos/mf-mdm";
@@ -80,7 +80,7 @@ const tn = /* @__PURE__ */ re({
80
80
  de(n.$slots, "button")
81
81
  ]),
82
82
  default: K(() => [
83
- $("div", {
83
+ _("div", {
84
84
  onClick: s[0] || (s[0] = (f) => e.value = !1)
85
85
  }, [
86
86
  de(n.$slots, "default")
@@ -146,17 +146,17 @@ const tn = /* @__PURE__ */ re({
146
146
  return (o, i) => {
147
147
  const f = q("fm-icon"), d = q("fm-drop-field");
148
148
  return s.value ? (j(), B("div", sn, [
149
- $("p", an, [
149
+ _("p", an, [
150
150
  je(G(r.label) + " ", 1),
151
- $("span", on, G(o.subLabel), 1)
151
+ _("span", on, G(o.subLabel), 1)
152
152
  ]),
153
- $("div", {
153
+ _("div", {
154
154
  class: ee(["relative", "border-2 border-dashed border-fm-color-neutral-gray-300 rounded-md"]),
155
155
  style: Me({ width: `${r.width}px`, height: `${r.height}px` })
156
156
  }, [
157
- $("div", ln, [
158
- $("div", un, [
159
- $("img", {
157
+ _("div", ln, [
158
+ _("div", un, [
159
+ _("img", {
160
160
  class: ee(["h-full w-full", "object-cover"]),
161
161
  src: s.value,
162
162
  alt: "product image"
@@ -183,13 +183,13 @@ const tn = /* @__PURE__ */ re({
183
183
  onFileUpload: i[1] || (i[1] = (b) => n("update:model-value", b))
184
184
  }, {
185
185
  label: K(() => [
186
- $("p", dn, [
186
+ _("p", dn, [
187
187
  je(G(r.label) + " ", 1),
188
- $("span", fn, G(r.subLabel), 1)
188
+ _("span", fn, G(r.subLabel), 1)
189
189
  ])
190
190
  ]),
191
191
  "accept-text": K(() => i[2] || (i[2] = [
192
- $("p", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " Accepts .jpg, .jpeg, .png, .gif ", -1)
192
+ _("p", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " Accepts .jpg, .jpeg, .png, .gif ", -1)
193
193
  ])),
194
194
  _: 1
195
195
  }, 8, ["style"]));
@@ -772,7 +772,7 @@ const tn = /* @__PURE__ */ re({
772
772
  id: "unit-form",
773
773
  modelValue: b.value,
774
774
  "onUpdate:modelValue": v[4] || (v[4] = (A) => b.value = A),
775
- "is-container": _(Mr).FmForm,
775
+ "is-container": $(Ur).FmForm,
776
776
  "is-container-props": {
777
777
  onValidationSuccess: O,
778
778
  blameFormChildOnValidationFailed: !0
@@ -781,19 +781,19 @@ const tn = /* @__PURE__ */ re({
781
781
  "z-index": 100
782
782
  }, {
783
783
  "side-sheet-header": K(() => [
784
- $("p", mn, G(_(c)("settings.business.form.title")), 1)
784
+ _("p", mn, G($(c)("settings.business.form.title")), 1)
785
785
  ]),
786
786
  "side-sheet-footer": K(() => [
787
- $("div", hn, [
787
+ _("div", hn, [
788
788
  L(k, {
789
- label: _(c)("common.update"),
789
+ label: $(c)("common.update"),
790
790
  loading: d.value,
791
791
  size: "lg",
792
792
  type: "submit",
793
793
  variant: "primary"
794
794
  }, null, 8, ["label", "loading"]),
795
795
  L(k, {
796
- label: _(c)("common.cancel"),
796
+ label: $(c)("common.cancel"),
797
797
  size: "lg",
798
798
  variant: "tertiary",
799
799
  onClick: v[3] || (v[3] = () => b.value = !1)
@@ -801,41 +801,41 @@ const tn = /* @__PURE__ */ re({
801
801
  ])
802
802
  ]),
803
803
  default: K(() => [
804
- $("div", pn, [
805
- $("div", null, [
804
+ _("div", pn, [
805
+ _("div", null, [
806
806
  L(ye, {
807
- label: _(c)("settings.business.form.cover_photo.label"),
808
- "sub-label": _(c)("settings.business.form.cover_photo.optional"),
807
+ label: $(c)("settings.business.form.cover_photo.label"),
808
+ "sub-label": $(c)("settings.business.form.cover_photo.optional"),
809
809
  "previous-url": i.thumbnail,
810
810
  modelValue: i.newThumbnail,
811
811
  "onUpdate:modelValue": v[0] || (v[0] = (A) => i.newThumbnail = A),
812
812
  "onReset:modelValue": g
813
813
  }, null, 8, ["label", "sub-label", "previous-url", "modelValue"])
814
814
  ]),
815
- $("div", null, [
815
+ _("div", null, [
816
816
  L(y, {
817
- label: _(c)("settings.business.form.name"),
817
+ label: $(c)("settings.business.form.name"),
818
818
  modelValue: i.name,
819
819
  "onUpdate:modelValue": v[1] || (v[1] = (A) => i.name = A)
820
820
  }, null, 8, ["label", "modelValue"])
821
821
  ]),
822
- $("div", null, [
822
+ _("div", null, [
823
823
  L(y, {
824
- label: _(c)("settings.business.form.url.label"),
824
+ label: $(c)("settings.business.form.url.label"),
825
825
  "model-value": i.url || "",
826
826
  "onUpdate:modelValue": v[2] || (v[2] = (A) => i.url = A),
827
827
  placeholder: t.businessId,
828
828
  rules: [
829
829
  (A) => {
830
830
  var F;
831
- return !A || ((F = t.initialValue) == null ? void 0 : F.url) == i.url || f.value == _(vt.F_COUNTRY).enum.MY || _(c)("settings.business.form.url.errors.disabled");
831
+ return !A || ((F = t.initialValue) == null ? void 0 : F.url) == i.url || f.value == $(vt.F_COUNTRY).enum.MY || $(c)("settings.business.form.url.errors.disabled");
832
832
  },
833
- (A) => !A || _(pr).test(A) || _(c)("settings.business.form.url.errors.format"),
834
- (A) => !A || !_(hr).includes(A) || _(c)("settings.business.form.url.errors.reserved")
833
+ (A) => !A || $(pr).test(A) || $(c)("settings.business.form.url.errors.format"),
834
+ (A) => !A || !$(hr).includes(A) || $(c)("settings.business.form.url.errors.reserved")
835
835
  ]
836
836
  }, {
837
837
  prepend: K(() => [
838
- $("span", null, G(_(o) + "/"), 1)
838
+ _("span", null, G($(o) + "/"), 1)
839
839
  ]),
840
840
  _: 1
841
841
  }, 8, ["label", "model-value", "placeholder", "rules"])
@@ -858,7 +858,7 @@ const tn = /* @__PURE__ */ re({
858
858
  const e = t, r = Y(() => e.optional && !e.subLabel ? "(optional)" : e.subLabel);
859
859
  return (n, s) => (j(), B("p", gn, [
860
860
  je(G(n.label) + " ", 1),
861
- $("span", bn, G(r.value), 1)
861
+ _("span", bn, G(r.value), 1)
862
862
  ]));
863
863
  }
864
864
  }), yn = { class: "space-y-4" }, $n = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, _n = { class: "fm-typo-en-body-lg-600" }, Lt = /* @__PURE__ */ re({
@@ -875,14 +875,14 @@ const tn = /* @__PURE__ */ re({
875
875
  },
876
876
  setup(t) {
877
877
  return (e, r) => (j(), B("div", yn, [
878
- $("div", $n, G(t.name), 1),
879
- $("div", _n, G(t.value), 1)
878
+ _("div", $n, G(t.name), 1),
879
+ _("div", _n, G(t.value), 1)
880
880
  ]));
881
881
  }
882
882
  }), En = {};
883
883
  function wn(t, e) {
884
884
  return j(), B("div", null, e[0] || (e[0] = [
885
- $("div", { class: "h-px w-full bg-fm-color-neutral-gray-100" }, null, -1)
885
+ _("div", { class: "h-px w-full bg-fm-color-neutral-gray-100" }, null, -1)
886
886
  ]));
887
887
  }
888
888
  const Rn = /* @__PURE__ */ mr(En, [["render", wn]]), In = {
@@ -913,7 +913,7 @@ const Rn = /* @__PURE__ */ mr(En, [["render", wn]]), In = {
913
913
  return (s, o) => {
914
914
  const i = q("FmButton");
915
915
  return e.variant === "full" ? (j(), B("div", In, [
916
- $("div", An, G(s.title), 1),
916
+ _("div", An, G(s.title), 1),
917
917
  L(Rn),
918
918
  (j(!0), B(oe, null, he(s.items, (f) => (j(), te(Lt, {
919
919
  key: f.name,
@@ -968,8 +968,8 @@ const Rn = /* @__PURE__ */ mr(En, [["render", wn]]), In = {
968
968
  onKeyup: Nr(s, ["esc"])
969
969
  }, {
970
970
  default: K(() => [
971
- $("div", On, [
972
- $("p", Sn, G(o.title), 1),
971
+ _("div", On, [
972
+ _("p", Sn, G(o.title), 1),
973
973
  de(o.$slots, "append-title", {}, void 0, !0),
974
974
  (j(!0), B(oe, null, he(o.secondaryActions, (b) => (j(), te(f, {
975
975
  label: b.label,
@@ -982,7 +982,7 @@ const Rn = /* @__PURE__ */ mr(En, [["render", wn]]), In = {
982
982
  variant: "primary"
983
983
  }, null, 8, ["label"])
984
984
  ]),
985
- $("div", Pn, [
985
+ _("div", Pn, [
986
986
  de(o.$slots, "default", {}, void 0, !0)
987
987
  ])
988
988
  ]),
@@ -2064,25 +2064,25 @@ const Ae = {
2064
2064
  }
2065
2065
  },
2066
2066
  setup(t) {
2067
- const { t: e } = ve(), r = t, { emitData: n } = Ur(), s = ft(
2067
+ const { t: e } = ve(), r = t, { emitData: n } = Dr(), s = ft(
2068
2068
  $e(r.coordinate ? r.coordinate : De.jb)
2069
2069
  );
2070
2070
  function o({ position: i }) {
2071
2071
  s.lat = i.lat, s.lng = i.lng, n(s);
2072
2072
  }
2073
2073
  return n(s), (i, f) => (j(), B("div", Po, [
2074
- $("div", null, [
2075
- $("div", To, [
2076
- $("div", null, G(_(e)("settings.coordinate_dialog.address")) + ":", 1),
2077
- $("div", null, G(t.address || "--"), 1)
2074
+ _("div", null, [
2075
+ _("div", To, [
2076
+ _("div", null, G($(e)("settings.coordinate_dialog.address")) + ":", 1),
2077
+ _("div", null, G(t.address || "--"), 1)
2078
2078
  ]),
2079
- $("div", Lo, [
2080
- $("div", null, G(_(e)("settings.coordinate_dialog.latitude")) + ":", 1),
2081
- $("div", null, G(s.lat), 1)
2079
+ _("div", Lo, [
2080
+ _("div", null, G($(e)("settings.coordinate_dialog.latitude")) + ":", 1),
2081
+ _("div", null, G(s.lat), 1)
2082
2082
  ]),
2083
- $("div", No, [
2084
- $("div", null, G(_(e)("settings.coordinate_dialog.longitude")) + ":", 1),
2085
- $("div", null, G(s.lng), 1)
2083
+ _("div", No, [
2084
+ _("div", null, G($(e)("settings.coordinate_dialog.longitude")) + ":", 1),
2085
+ _("div", null, G(s.lng), 1)
2086
2086
  ])
2087
2087
  ]),
2088
2088
  L(So, {
@@ -2160,7 +2160,7 @@ const Ae = {
2160
2160
  return j(), te(v, {
2161
2161
  modelValue: i.value,
2162
2162
  "onUpdate:modelValue": O[0] || (O[0] = (y) => i.value = y),
2163
- label: _(r)("settings.coordinate_input.title")
2163
+ label: $(r)("settings.coordinate_input.title")
2164
2164
  }, {
2165
2165
  default: K(() => [
2166
2166
  L(x, {
@@ -2180,9 +2180,9 @@ const Ae = {
2180
2180
  ]),
2181
2181
  default: K(() => [
2182
2182
  de(g.$slots, "default", {}, () => [
2183
- $("div", {
2183
+ _("div", {
2184
2184
  class: ee([[i.value ? "text-fm-color-typo-primary" : "text-fm-color-typo-tertiary"], "break-all fm-typo-en-body-lg-400 line-clamp-1"])
2185
- }, G(i.value ? f.value : _(r)("settings.coordinate_input.not_set")), 3)
2185
+ }, G(i.value ? f.value : $(r)("settings.coordinate_input.not_set")), 3)
2186
2186
  ])
2187
2187
  ]),
2188
2188
  _: 3
@@ -2276,7 +2276,7 @@ const Ae = {
2276
2276
  key: D.value,
2277
2277
  class: "flex flex-col items-start"
2278
2278
  }, [
2279
- $("div", ko, [
2279
+ _("div", ko, [
2280
2280
  L(A, {
2281
2281
  "model-value": b.value,
2282
2282
  label: D.label,
@@ -2284,8 +2284,8 @@ const Ae = {
2284
2284
  "onUpdate:modelValue": g
2285
2285
  }, null, 8, ["model-value", "label", "value"])
2286
2286
  ]),
2287
- $("div", Vo, [
2288
- $("div", null, [
2287
+ _("div", Vo, [
2288
+ _("div", null, [
2289
2289
  b.value.includes(D.value) ? (j(!0), B(oe, { key: 0 }, he(d.value[D.value], (W, a) => (j(), B("div", {
2290
2290
  key: a,
2291
2291
  class: "flex items-center gap-8"
@@ -2294,9 +2294,9 @@ const Ae = {
2294
2294
  "model-value": W.start,
2295
2295
  "onUpdate:modelValue": (u) => x(D.value, a, u)
2296
2296
  }, null, 8, ["model-value", "onUpdate:modelValue"]),
2297
- $("span", {
2297
+ _("span", {
2298
2298
  class: ee([["text-fm-color-typo-tertiary"], "fm-typo-en-body-lg-400"])
2299
- }, G(_(o)("settings.operation_hours.to")), 1),
2299
+ }, G($(o)("settings.operation_hours.to")), 1),
2300
2300
  L(F, {
2301
2301
  "model-value": W.end,
2302
2302
  "onUpdate:modelValue": (u) => v(D.value, a, u)
@@ -2316,20 +2316,20 @@ const Ae = {
2316
2316
  ]))), 128)) : (j(), B("div", Fo, [
2317
2317
  L(Z, null, {
2318
2318
  default: K(() => [
2319
- $("div", {
2319
+ _("div", {
2320
2320
  class: ee([["text-fm-color-typo-tertiary"], "break-all fm-typo-en-body-lg-400 line-clamp-1"])
2321
- }, G(_(o)("settings.operation_hours.close")), 1)
2321
+ }, G($(o)("settings.operation_hours.close")), 1)
2322
2322
  ]),
2323
2323
  _: 1
2324
2324
  }),
2325
- $("span", {
2325
+ _("span", {
2326
2326
  class: ee([["text-fm-color-typo-tertiary"], "fm-typo-en-body-lg-400"])
2327
- }, G(_(o)("settings.operation_hours.to")), 1),
2327
+ }, G($(o)("settings.operation_hours.to")), 1),
2328
2328
  L(Z, null, {
2329
2329
  default: K(() => [
2330
- $("div", {
2330
+ _("div", {
2331
2331
  class: ee([["text-fm-color-typo-tertiary"], "break-all fm-typo-en-body-lg-400 line-clamp-1"])
2332
- }, G(_(o)("settings.operation_hours.close")), 1)
2332
+ }, G($(o)("settings.operation_hours.close")), 1)
2333
2333
  ]),
2334
2334
  _: 1
2335
2335
  })
@@ -2362,60 +2362,60 @@ const Ae = {
2362
2362
  return (d, b) => {
2363
2363
  const l = q("FmTextField");
2364
2364
  return j(), B("div", Mo, [
2365
- $("div", Uo, [
2366
- $("div", Do, [
2365
+ _("div", Uo, [
2366
+ _("div", Do, [
2367
2367
  L(l, {
2368
2368
  "model-value": o.value.line1,
2369
- label: _(r)("settings.address.line1"),
2369
+ label: $(r)("settings.address.line1"),
2370
2370
  "label-mark": "required",
2371
- rules: [_(fe)],
2371
+ rules: [$(fe)],
2372
2372
  "onUpdate:modelValue": b[0] || (b[0] = (g) => f((O) => ({ ...O, line1: i(g) })))
2373
2373
  }, null, 8, ["model-value", "label", "rules"])
2374
2374
  ]),
2375
- $("div", Go, [
2375
+ _("div", Go, [
2376
2376
  L(l, {
2377
2377
  "model-value": o.value.line2,
2378
- label: _(r)("settings.address.line2"),
2378
+ label: $(r)("settings.address.line2"),
2379
2379
  "onUpdate:modelValue": b[1] || (b[1] = (g) => f((O) => ({ ...O, line2: i(g) })))
2380
2380
  }, null, 8, ["model-value", "label"])
2381
2381
  ])
2382
2382
  ]),
2383
- $("div", Bo, [
2384
- $("div", Ko, [
2383
+ _("div", Bo, [
2384
+ _("div", Ko, [
2385
2385
  L(l, {
2386
2386
  "model-value": o.value.city,
2387
- rules: [_(fe)],
2388
- label: _(r)("settings.address.city"),
2387
+ rules: [$(fe)],
2388
+ label: $(r)("settings.address.city"),
2389
2389
  "label-mark": "required",
2390
2390
  "onUpdate:modelValue": b[2] || (b[2] = (g) => f((O) => ({ ...O, city: i(g) })))
2391
2391
  }, null, 8, ["model-value", "rules", "label"])
2392
2392
  ]),
2393
- $("div", qo, [
2393
+ _("div", qo, [
2394
2394
  L(l, {
2395
2395
  "model-value": o.value.postcode,
2396
- label: _(r)("settings.address.postal_code"),
2396
+ label: $(r)("settings.address.postal_code"),
2397
2397
  "label-mark": "required",
2398
- rules: [_(fe)],
2398
+ rules: [$(fe)],
2399
2399
  "onUpdate:modelValue": b[3] || (b[3] = (g) => f((O) => ({ ...O, postcode: i(g) })))
2400
2400
  }, null, 8, ["model-value", "label", "rules"])
2401
2401
  ])
2402
2402
  ]),
2403
- $("div", Ho, [
2404
- $("div", zo, [
2403
+ _("div", Ho, [
2404
+ _("div", zo, [
2405
2405
  L(l, {
2406
2406
  "model-value": o.value.state,
2407
- label: _(r)("settings.address.state"),
2407
+ label: $(r)("settings.address.state"),
2408
2408
  "label-mark": "required",
2409
- rules: [_(fe)],
2409
+ rules: [$(fe)],
2410
2410
  "onUpdate:modelValue": b[4] || (b[4] = (g) => f((O) => ({ ...O, state: i(g) })))
2411
2411
  }, null, 8, ["model-value", "label", "rules"])
2412
2412
  ]),
2413
- $("div", Xo, [
2413
+ _("div", Xo, [
2414
2414
  L(l, {
2415
2415
  "model-value": o.value.country,
2416
- label: _(r)("settings.address.country"),
2416
+ label: $(r)("settings.address.country"),
2417
2417
  "label-mark": "required",
2418
- rules: [_(fe)],
2418
+ rules: [$(fe)],
2419
2419
  "onUpdate:modelValue": b[5] || (b[5] = (g) => f((O) => ({ ...O, country: i(g) })))
2420
2420
  }, null, 8, ["model-value", "label", "rules"])
2421
2421
  ])
@@ -2677,15 +2677,15 @@ const Jo = () => {
2677
2677
  L(Ln, {
2678
2678
  title: k.value,
2679
2679
  show: l.value,
2680
- "primary-action": { label: _(y)("common.save") },
2680
+ "primary-action": { label: $(y)("common.save") },
2681
2681
  "secondary-actions": [
2682
- { label: _(y)("settings.business.restaurant.actions.discard"), click: () => l.value = !1 }
2682
+ { label: $(y)("settings.business.restaurant.actions.discard"), click: () => l.value = !1 }
2683
2683
  ],
2684
2684
  onOnPrimary: S,
2685
2685
  onOnCancel: w[17] || (w[17] = (M) => l.value = !1)
2686
2686
  }, {
2687
2687
  "append-title": K(() => [
2688
- _(E)("sm") ? (j(), te(Nt, {
2688
+ $(E)("sm") ? (j(), te(Nt, {
2689
2689
  key: 0,
2690
2690
  variant: "dialog",
2691
2691
  title: p.value.title,
@@ -2693,102 +2693,102 @@ const Jo = () => {
2693
2693
  }, null, 8, ["title", "items"])) : ce("", !0)
2694
2694
  ]),
2695
2695
  default: K(() => [
2696
- $("div", Zo, [
2697
- $("div", {
2696
+ _("div", Zo, [
2697
+ _("div", {
2698
2698
  ref_key: "formWrapper",
2699
2699
  ref: I,
2700
2700
  class: "py-24 pr-[400px] w-[1150px] xs:pr-0 sm:pr-0 xs:w-full"
2701
2701
  }, [
2702
- _(E)("sm") ? ce("", !0) : (j(), te(Nt, {
2702
+ $(E)("sm") ? ce("", !0) : (j(), te(Nt, {
2703
2703
  key: 0,
2704
2704
  class: "fixed",
2705
2705
  style: Me({
2706
2706
  top: "85px",
2707
- left: _(N).right - 400 + "px"
2707
+ left: $(N).right - 400 + "px"
2708
2708
  }),
2709
2709
  variant: "full",
2710
2710
  title: p.value.title,
2711
2711
  items: p.value.items
2712
2712
  }, null, 8, ["style", "title", "items"])),
2713
- $("div", Qo, [
2713
+ _("div", Qo, [
2714
2714
  L(Re, {
2715
- title: _(y)("settings.business.restaurant.form.sections.basic_info.title")
2715
+ title: $(y)("settings.business.restaurant.form.sections.basic_info.title")
2716
2716
  }, {
2717
2717
  default: K(() => {
2718
2718
  var M, Q;
2719
2719
  return [
2720
- $("div", ei, [
2721
- $("div", null, [
2720
+ _("div", ei, [
2721
+ _("div", null, [
2722
2722
  L(T, {
2723
- label: _(y)("settings.business.restaurant.form.sections.basic_info.code.label"),
2723
+ label: $(y)("settings.business.restaurant.form.sections.basic_info.code.label"),
2724
2724
  modelValue: c.code,
2725
2725
  "onUpdate:modelValue": w[0] || (w[0] = (z) => c.code = z),
2726
2726
  "label-mark": "optional",
2727
- "helper-text": _(y)("settings.business.restaurant.form.sections.basic_info.code.helper"),
2727
+ "helper-text": $(y)("settings.business.restaurant.form.sections.basic_info.code.helper"),
2728
2728
  disabled: ((M = O.value) == null ? void 0 : M.code) !== void 0 && ((Q = O.value) == null ? void 0 : Q.code) !== null
2729
2729
  }, null, 8, ["label", "modelValue", "helper-text", "disabled"])
2730
2730
  ]),
2731
- $("div", null, [
2731
+ _("div", null, [
2732
2732
  L(T, {
2733
- label: _(y)("settings.business.restaurant.form.sections.basic_info.name.label"),
2733
+ label: $(y)("settings.business.restaurant.form.sections.basic_info.name.label"),
2734
2734
  modelValue: c.name,
2735
2735
  "onUpdate:modelValue": w[1] || (w[1] = (z) => c.name = z),
2736
2736
  "label-mark": "required",
2737
- rules: [_(fe)]
2737
+ rules: [$(fe)]
2738
2738
  }, null, 8, ["label", "modelValue", "rules"])
2739
2739
  ]),
2740
- $("div", null, [
2740
+ _("div", null, [
2741
2741
  L(T, {
2742
- label: _(y)("settings.business.restaurant.form.sections.basic_info.legal_name.label"),
2742
+ label: $(y)("settings.business.restaurant.form.sections.basic_info.legal_name.label"),
2743
2743
  modelValue: c.legalName,
2744
2744
  "onUpdate:modelValue": w[2] || (w[2] = (z) => c.legalName = z),
2745
2745
  "label-mark": "required",
2746
- rules: [_(fe)]
2746
+ rules: [$(fe)]
2747
2747
  }, null, 8, ["label", "modelValue", "rules"])
2748
2748
  ]),
2749
- $("div", null, [
2749
+ _("div", null, [
2750
2750
  L(T, {
2751
- label: _(y)("settings.business.restaurant.form.sections.basic_info.reg_no.label"),
2751
+ label: $(y)("settings.business.restaurant.form.sections.basic_info.reg_no.label"),
2752
2752
  modelValue: c.regNo,
2753
2753
  "onUpdate:modelValue": w[3] || (w[3] = (z) => c.regNo = z),
2754
2754
  "label-mark": "required",
2755
- rules: [_(fe)]
2755
+ rules: [$(fe)]
2756
2756
  }, null, 8, ["label", "modelValue", "rules"])
2757
2757
  ]),
2758
- $("div", null, [
2758
+ _("div", null, [
2759
2759
  L(T, {
2760
2760
  modelValue: c.sstRegNo,
2761
2761
  "onUpdate:modelValue": w[4] || (w[4] = (z) => c.sstRegNo = z),
2762
- label: _(y)("settings.business.restaurant.form.sections.basic_info.tax_no.label"),
2762
+ label: $(y)("settings.business.restaurant.form.sections.basic_info.tax_no.label"),
2763
2763
  "label-mark": "optional"
2764
2764
  }, null, 8, ["modelValue", "label"])
2765
2765
  ]),
2766
- $("div", ti, [
2767
- $("div", ri, [
2766
+ _("div", ti, [
2767
+ _("div", ri, [
2768
2768
  L(U, {
2769
2769
  class: "w-full",
2770
- label: _(y)("settings.business.restaurant.form.sections.basic_info.contact.label"),
2770
+ label: $(y)("settings.business.restaurant.form.sections.basic_info.contact.label"),
2771
2771
  modelValue: c.phoneNo,
2772
2772
  "onUpdate:modelValue": w[5] || (w[5] = (z) => c.phoneNo = z),
2773
2773
  "label-mark": "optional",
2774
- "extra-country-codes": _(i),
2774
+ "extra-country-codes": $(i),
2775
2775
  "default-country": v.value
2776
2776
  }, null, 8, ["label", "modelValue", "extra-country-codes", "default-country"])
2777
2777
  ]),
2778
- $("div", ni, [
2778
+ _("div", ni, [
2779
2779
  L(T, {
2780
2780
  class: "w-full",
2781
2781
  modelValue: c.email,
2782
2782
  "onUpdate:modelValue": w[6] || (w[6] = (z) => c.email = z),
2783
- label: _(y)("settings.business.restaurant.form.sections.basic_info.email.label"),
2783
+ label: $(y)("settings.business.restaurant.form.sections.basic_info.email.label"),
2784
2784
  "label-mark": "optional"
2785
2785
  }, null, 8, ["modelValue", "label"])
2786
2786
  ])
2787
2787
  ]),
2788
- $("div", null, [
2788
+ _("div", null, [
2789
2789
  L(ye, {
2790
- label: _(y)("settings.business.restaurant.form.sections.basic_info.image.label"),
2791
- "sub-label": _(y)("settings.business.restaurant.form.sections.basic_info.image.optional"),
2790
+ label: $(y)("settings.business.restaurant.form.sections.basic_info.image.label"),
2791
+ "sub-label": $(y)("settings.business.restaurant.form.sections.basic_info.image.optional"),
2792
2792
  "previous-url": c.thumbnailPhoto,
2793
2793
  modelValue: c.newThumbnailPhoto,
2794
2794
  "onUpdate:modelValue": w[7] || (w[7] = (z) => c.newThumbnailPhoto = z),
@@ -2800,14 +2800,14 @@ const Jo = () => {
2800
2800
  }),
2801
2801
  _: 1
2802
2802
  }, 8, ["title"]),
2803
- _(o).length > 0 ? (j(), B(oe, { key: 0 }, [
2804
- w[18] || (w[18] = $("div", { class: "w-full h-[2px] bg-fm-color-neutral-gray-100" }, null, -1)),
2803
+ $(o).length > 0 ? (j(), B(oe, { key: 0 }, [
2804
+ w[18] || (w[18] = _("div", { class: "w-full h-[2px] bg-fm-color-neutral-gray-100" }, null, -1)),
2805
2805
  L(Re, {
2806
- title: _(y)("settings.restaurantTagging.title"),
2807
- "sub-title": _(y)("settings.restaurantTagging.subtitle")
2806
+ title: $(y)("settings.restaurantTagging.title"),
2807
+ "sub-title": $(y)("settings.restaurantTagging.subtitle")
2808
2808
  }, {
2809
2809
  default: K(() => [
2810
- L(_(jr), {
2810
+ L($(jr), {
2811
2811
  entity: "restaurant",
2812
2812
  modelValue: V.value,
2813
2813
  "onUpdate:modelValue": w[8] || (w[8] = (M) => V.value = M)
@@ -2816,12 +2816,12 @@ const Jo = () => {
2816
2816
  _: 1
2817
2817
  }, 8, ["title", "sub-title"])
2818
2818
  ], 64)) : ce("", !0),
2819
- w[19] || (w[19] = $("div", { class: "w-full h-[2px] bg-fm-color-neutral-gray-100" }, null, -1)),
2819
+ w[19] || (w[19] = _("div", { class: "w-full h-[2px] bg-fm-color-neutral-gray-100" }, null, -1)),
2820
2820
  L(Re, {
2821
- title: _(y)("settings.business.restaurant.form.sections.address.title")
2821
+ title: $(y)("settings.business.restaurant.form.sections.address.title")
2822
2822
  }, {
2823
2823
  default: K(() => [
2824
- $("div", si, [
2824
+ _("div", si, [
2825
2825
  L(Yo, {
2826
2826
  modelValue: c.address,
2827
2827
  "onUpdate:modelValue": w[9] || (w[9] = (M) => c.address = M)
@@ -2835,19 +2835,21 @@ const Jo = () => {
2835
2835
  ]),
2836
2836
  _: 1
2837
2837
  }, 8, ["title"]),
2838
- w[20] || (w[20] = $("div", { class: "w-full h-[2px] bg-fm-color-neutral-gray-100" }, null, -1)),
2838
+ w[20] || (w[20] = _("div", { class: "w-full h-[2px] bg-fm-color-neutral-gray-100" }, null, -1)),
2839
2839
  L(Re, {
2840
- title: _(y)("settings.business.restaurant.form.sections.operation_hours.title")
2840
+ title: $(y)("settings.business.restaurant.form.sections.operation_hours.title")
2841
2841
  }, {
2842
2842
  default: K(() => [
2843
- $("div", ai, [
2844
- $("div", oi, [
2843
+ _("div", ai, [
2844
+ _("div", oi, [
2845
2845
  L(Tt, {
2846
- label: _(y)("settings.business.restaurant.form.sections.operation_hours.copy_with"),
2846
+ label: $(y)("settings.business.restaurant.form.sections.operation_hours.copy_with"),
2847
2847
  optional: !1
2848
2848
  }, null, 8, ["label"]),
2849
- L(Dr, {
2849
+ L($(Mr), {
2850
2850
  class: "w-[320px]",
2851
+ "managable-only": !1,
2852
+ variant: "dark",
2851
2853
  "exclude-restaurants": t.restaurantId ? [t.restaurantId] : [],
2852
2854
  "model-value": "",
2853
2855
  "onUpdate:modelValue": w[11] || (w[11] = (M) => M && Z(M))
@@ -2861,33 +2863,33 @@ const Jo = () => {
2861
2863
  ]),
2862
2864
  _: 1
2863
2865
  }, 8, ["title"]),
2864
- w[21] || (w[21] = $("div", { class: "w-full h-[2px] bg-fm-color-neutral-gray-100" }, null, -1)),
2866
+ w[21] || (w[21] = _("div", { class: "w-full h-[2px] bg-fm-color-neutral-gray-100" }, null, -1)),
2865
2867
  L(Re, {
2866
- title: _(y)("settings.business.restaurant.form.sections.branding.title")
2868
+ title: $(y)("settings.business.restaurant.form.sections.branding.title")
2867
2869
  }, {
2868
2870
  default: K(() => [
2869
- $("div", ii, [
2871
+ _("div", ii, [
2870
2872
  L(X, {
2871
- label: _(y)("settings.business.restaurant.form.sections.branding.description"),
2873
+ label: $(y)("settings.business.restaurant.form.sections.branding.description"),
2872
2874
  "model-value": c.description ?? "",
2873
2875
  "onUpdate:modelValue": w[13] || (w[13] = (M) => c.description = M)
2874
2876
  }, null, 8, ["label", "model-value"]),
2875
2877
  L(T, {
2876
- label: _(y)("settings.business.restaurant.form.sections.branding.url.label"),
2878
+ label: $(y)("settings.business.restaurant.form.sections.branding.url.label"),
2877
2879
  placeholder: t.restaurantId,
2878
2880
  "model-value": c.url,
2879
2881
  "onUpdate:modelValue": w[14] || (w[14] = (M) => c.url = M),
2880
2882
  rules: [
2881
2883
  (M) => {
2882
2884
  var Q;
2883
- return !M || ((Q = O.value) == null ? void 0 : Q.url) == c.url || v.value == _(vt.F_COUNTRY).enum.MY || _(y)("settings.business.restaurant.form.sections.branding.url.errors.disabled");
2885
+ return !M || ((Q = O.value) == null ? void 0 : Q.url) == c.url || v.value == $(vt.F_COUNTRY).enum.MY || $(y)("settings.business.restaurant.form.sections.branding.url.errors.disabled");
2884
2886
  },
2885
- (M) => !M || _(pr).test(M) || _(y)("settings.business.restaurant.form.sections.branding.url.errors.invalid"),
2886
- (M) => !M || !_(hr).includes(M) || _(y)("settings.business.restaurant.form.sections.branding.url.errors.reserved")
2887
+ (M) => !M || $(pr).test(M) || $(y)("settings.business.restaurant.form.sections.branding.url.errors.invalid"),
2888
+ (M) => !M || !$(hr).includes(M) || $(y)("settings.business.restaurant.form.sections.branding.url.errors.reserved")
2887
2889
  ]
2888
2890
  }, {
2889
2891
  prepend: K(() => [
2890
- $("span", null, G(x))
2892
+ _("span", null, G(x))
2891
2893
  ]),
2892
2894
  append: K(() => [
2893
2895
  L(H, {
@@ -2899,18 +2901,18 @@ const Jo = () => {
2899
2901
  ]),
2900
2902
  _: 1
2901
2903
  }, 8, ["label", "placeholder", "model-value", "rules"]),
2902
- $("div", null, [
2904
+ _("div", null, [
2903
2905
  L(ye, {
2904
- label: _(y)("settings.business.form.cover_photo.label"),
2906
+ label: $(y)("settings.business.form.cover_photo.label"),
2905
2907
  "previous-url": c.coverPhoto,
2906
2908
  modelValue: c.newCoverPhoto,
2907
2909
  "onUpdate:modelValue": w[15] || (w[15] = (M) => c.newCoverPhoto = M),
2908
2910
  "onReset:modelValue": a
2909
2911
  }, null, 8, ["label", "previous-url", "modelValue"])
2910
2912
  ]),
2911
- $("div", null, [
2913
+ _("div", null, [
2912
2914
  L(Tt, {
2913
- label: _(y)("settings.business.restaurant.form.sections.branding.carousel_photos.label")
2915
+ label: $(y)("settings.business.restaurant.form.sections.branding.carousel_photos.label")
2914
2916
  }, null, 8, ["label"]),
2915
2917
  (j(!0), B(oe, null, he(c.photos || [], (M, Q) => (j(), te(ye, {
2916
2918
  key: Q,
@@ -3810,9 +3812,9 @@ const Si = { class: "fm-typo-cn-body-md-400 text-fm-color-typo-secondary xs:flex
3810
3812
  "sub-heading": K(() => {
3811
3813
  var D;
3812
3814
  return [
3813
- $("div", Si, [
3814
- $("span", null, G(_(i)("settings.business.url")) + ": ", 1),
3815
- $("span", {
3815
+ _("div", Si, [
3816
+ _("span", null, G($(i)("settings.business.url")) + ": ", 1),
3817
+ _("span", {
3816
3818
  class: "cursor-pointer xs:w-max-[200px] truncate",
3817
3819
  onClick: b
3818
3820
  }, G((D = f.value) == null ? void 0 : D.url), 1)
@@ -3820,18 +3822,18 @@ const Si = { class: "fm-typo-cn-body-md-400 text-fm-color-typo-secondary xs:flex
3820
3822
  ];
3821
3823
  }),
3822
3824
  "append-heading": K(() => [
3823
- $("div", Pi, [
3825
+ _("div", Pi, [
3824
3826
  L(y),
3825
3827
  o.value ? (j(), B(oe, { key: 1 }, [
3826
3828
  L(Gr, {
3827
3829
  onClick: O,
3828
- label: _(i)("settings.business.add_restaurant"),
3830
+ label: $(i)("settings.business.add_restaurant"),
3829
3831
  "prepend-icon": "add"
3830
3832
  }, null, 8, ["label"]),
3831
3833
  L(tn, null, {
3832
3834
  default: K(() => [
3833
3835
  L(nn, {
3834
- label: _(i)("common.edit"),
3836
+ label: $(i)("common.edit"),
3835
3837
  onClick: l
3836
3838
  }, null, 8, ["label"])
3837
3839
  ]),
@@ -3841,7 +3843,7 @@ const Si = { class: "fm-typo-cn-body-md-400 text-fm-color-typo-secondary xs:flex
3841
3843
  L(k, {
3842
3844
  onClick: l,
3843
3845
  variant: "secondary",
3844
- label: _(i)("common.edit")
3846
+ label: $(i)("common.edit")
3845
3847
  }, null, 8, ["label"]),
3846
3848
  L(V, {
3847
3849
  variant: "rich",
@@ -3852,8 +3854,8 @@ const Si = { class: "fm-typo-cn-body-md-400 text-fm-color-typo-secondary xs:flex
3852
3854
  var D;
3853
3855
  return [
3854
3856
  (D = f.value) != null && D.canCreateRestaurant ? ce("", !0) : (j(), B("div", Li, [
3855
- $("p", Ni, G(_(i)("settings.business.quota.limit_title")), 1),
3856
- $("p", null, G(_(i)("settings.business.quota.limit_message")), 1)
3857
+ _("p", Ni, G($(i)("settings.business.quota.limit_title")), 1),
3858
+ _("p", null, G($(i)("settings.business.quota.limit_message")), 1)
3857
3859
  ]))
3858
3860
  ];
3859
3861
  }),
@@ -3862,7 +3864,7 @@ const Si = { class: "fm-typo-cn-body-md-400 text-fm-color-typo-secondary xs:flex
3862
3864
  return [
3863
3865
  L(k, {
3864
3866
  onClick: O,
3865
- label: _(i)("settings.business.add_restaurant"),
3867
+ label: $(i)("settings.business.add_restaurant"),
3866
3868
  disabled: !((D = f.value) != null && D.canCreateRestaurant),
3867
3869
  "prepend-icon": "add"
3868
3870
  }, null, 8, ["label", "disabled"])
@@ -3879,11 +3881,11 @@ const Si = { class: "fm-typo-cn-body-md-400 text-fm-color-typo-secondary xs:flex
3879
3881
  o.value ? (j(), B(oe, { key: 1 }, [
3880
3882
  L(A, {
3881
3883
  class: "my-8 mx-16",
3882
- modelValue: _(e),
3884
+ modelValue: $(e),
3883
3885
  "onUpdate:modelValue": v[2] || (v[2] = (a) => Pt(e) ? e.value = a : null),
3884
- placeholder: _(i)("settings.business.search_restaurants")
3886
+ placeholder: $(i)("settings.business.search_restaurants")
3885
3887
  }, null, 8, ["modelValue", "placeholder"]),
3886
- $("div", ki, [
3888
+ _("div", ki, [
3887
3889
  f.value ? (j(!0), B(oe, { key: 1 }, he((W = f.value) == null ? void 0 : W.restaurants, (a) => {
3888
3890
  var u;
3889
3891
  return j(), B("div", {
@@ -3891,9 +3893,9 @@ const Si = { class: "fm-typo-cn-body-md-400 text-fm-color-typo-secondary xs:flex
3891
3893
  class: "py-12 px-16 space-y-4",
3892
3894
  onClick: (h) => c(a)
3893
3895
  }, [
3894
- $("div", ji, [
3895
- $("div", Mi, G(a.name), 1),
3896
- $("div", Ui, [
3896
+ _("div", ji, [
3897
+ _("div", Mi, G(a.name), 1),
3898
+ _("div", Ui, [
3897
3899
  L(k, {
3898
3900
  icon: "edit",
3899
3901
  "text-color": "neutral-gray-400",
@@ -3904,25 +3906,25 @@ const Si = { class: "fm-typo-cn-body-md-400 text-fm-color-typo-secondary xs:flex
3904
3906
  icon: "file_copy",
3905
3907
  "text-color": "neutral-gray-400",
3906
3908
  variant: "tertiary",
3907
- onClick: ot((h) => _(n)(a.id), ["stop"])
3909
+ onClick: ot((h) => $(n)(a.id), ["stop"])
3908
3910
  }, null, 8, ["onClick"])
3909
3911
  ])
3910
3912
  ]),
3911
- $("div", Di, G(_(i)("settings.business.restaurant.contact")) + ": " + G(a.phone), 1),
3912
- $("div", Gi, G(_(i)("settings.business.restaurant.email")) + ": " + G(a.email), 1),
3913
- $("div", Bi, G(_(i)("settings.business.restaurant.tax.title")) + ": " + G((u = a.doc.profile.sstRegNo) != null && u.length ? a.doc.profile.sstRegNo : _(i)("settings.business.restaurant.tax.not_set")), 1)
3913
+ _("div", Di, G($(i)("settings.business.restaurant.contact")) + ": " + G(a.phone), 1),
3914
+ _("div", Gi, G($(i)("settings.business.restaurant.email")) + ": " + G(a.email), 1),
3915
+ _("div", Bi, G($(i)("settings.business.restaurant.tax.title")) + ": " + G((u = a.doc.profile.sstRegNo) != null && u.length ? a.doc.profile.sstRegNo : $(i)("settings.business.restaurant.tax.not_set")), 1)
3914
3916
  ], 8, Fi);
3915
3917
  }), 128)) : (j(), B("div", Vi, [
3916
3918
  L(J, { size: "lg" })
3917
3919
  ]))
3918
3920
  ])
3919
3921
  ], 64)) : (j(), B("div", Ci, [
3920
- $("div", xi, [
3922
+ _("div", xi, [
3921
3923
  L(A, {
3922
3924
  class: "w-[320px]",
3923
- modelValue: _(e),
3925
+ modelValue: $(e),
3924
3926
  "onUpdate:modelValue": v[0] || (v[0] = (a) => Pt(e) ? e.value = a : null),
3925
- placeholder: _(i)("settings.business.search_restaurants")
3927
+ placeholder: $(i)("settings.business.search_restaurants")
3926
3928
  }, null, 8, ["modelValue", "placeholder"])
3927
3929
  ]),
3928
3930
  L(F, {