@feedmepos/mf-common 1.19.0-beta.1 → 1.20.0-beta.2

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 (53) hide show
  1. package/dist/App.vue.d.ts.map +1 -1
  2. package/dist/{CustomAttributesForm-61572f55.js → CustomAttributesForm-ba6b60d2.js} +1 -1
  3. package/dist/Entry.vue.d.ts.map +1 -1
  4. package/dist/{ItemSelector-77ae4235.js → ItemSelector-a19afba4.js} +145 -144
  5. package/dist/{RestaurantSelector-d70ad300.js → RestaurantSelector-c26cf96b.js} +5 -5
  6. package/dist/api/index.d.ts +1 -1
  7. package/dist/api/index.d.ts.map +1 -1
  8. package/dist/api/menu.d.ts.map +1 -1
  9. package/dist/{app-16a15b75.js → app-865cb0be.js} +32856 -32644
  10. package/dist/app.d.ts +168 -2
  11. package/dist/app.d.ts.map +1 -1
  12. package/dist/app.js +1 -1
  13. package/dist/components/AllBusinessDialog.vue.d.ts.map +1 -1
  14. package/dist/components/ChangePassword/ConfirmPassword.vue.d.ts.map +1 -1
  15. package/dist/components/ChangePassword/NewPassword.vue.d.ts.map +1 -1
  16. package/dist/components/ChangePassword/PasswordField.vue.d.ts.map +1 -1
  17. package/dist/components/DebugUserDialog.vue.d.ts.map +1 -1
  18. package/dist/components/ItemSelector.vue.d.ts.map +1 -1
  19. package/dist/components/ManageAccountDialog.vue.d.ts.map +1 -1
  20. package/dist/components/MyBusinessDialog.vue.d.ts.map +1 -1
  21. package/dist/components/NoPermission.vue.d.ts.map +1 -1
  22. package/dist/components/PermissionWrapper.vue.d.ts.map +1 -1
  23. package/dist/components/Portal/Ads.vue.d.ts.map +1 -1
  24. package/dist/components/Portal/BusinessDialogMobile.vue.d.ts.map +1 -1
  25. package/dist/components/Portal/PortalDesktop.vue.d.ts.map +1 -1
  26. package/dist/components/Portal/PortalMobile.vue.d.ts.map +1 -1
  27. package/dist/components/Portal/PortalSidebar.vue.d.ts.map +1 -1
  28. package/dist/components/Portal/PortalTablet.vue.d.ts.map +1 -1
  29. package/dist/components/Portal/index.d.ts +2 -2
  30. package/dist/components/Portal/index.d.ts.map +1 -1
  31. package/dist/components/Portal/index.vue.d.ts.map +1 -1
  32. package/dist/components/RestaurantSelector.vue.d.ts.map +1 -1
  33. package/dist/components/SelectCountryDialog.vue.d.ts.map +1 -1
  34. package/dist/components/UserInfo/index.vue.d.ts.map +1 -1
  35. package/dist/components/attribute/CustomAttributesForm.vue.d.ts.map +1 -1
  36. package/dist/components/attribute/MongoQueryBuilder.vue.d.ts.map +1 -1
  37. package/dist/composables/useDebugUser.d.ts.map +1 -1
  38. package/dist/composables/useLocale.d.ts +1 -1
  39. package/dist/composables/useLocale.d.ts.map +1 -1
  40. package/dist/composables/usePaginatedBusinesses.d.ts.map +1 -1
  41. package/dist/locales/th-TH.json +33 -0
  42. package/dist/locales/types.d.ts +35 -2
  43. package/dist/main.d.ts.map +1 -1
  44. package/dist/permission/permission.d.ts +1 -1
  45. package/dist/permission/permission.d.ts.map +1 -1
  46. package/dist/plugin/loading.d.ts.map +1 -1
  47. package/dist/router/query.d.ts.map +1 -1
  48. package/dist/store.d.ts +3 -3
  49. package/dist/store.d.ts.map +1 -1
  50. package/dist/stores/menu.d.ts.map +1 -1
  51. package/dist/style.css +1 -1
  52. package/dist/tsconfig.app.tsbuildinfo +1 -1
  53. package/package.json +2 -2
@@ -1,10 +1,21 @@
1
1
  import { ref as ct, computed as Le, defineComponent as si, onMounted as li, watch as Dn, resolveComponent as er, openBlock as Ve, createElementBlock as Xe, createElementVNode as Ge, toDisplayString as Pn, unref as Re, createVNode as Ye, isRef as $i, createCommentVNode as Ot, Fragment as nn, renderList as an, createBlock as tr, withCtx as on, normalizeClass as En, Transition as Mn } from "vue";
2
2
  import { _ as Un, h as ci } from "./app-9575c6c7.js";
3
+ import { c as un, l as fe, e as Bt, a as ve, d as tt, b as He, f as di, u as Fn, g as pi, n as hi } from "./app-865cb0be.js";
3
4
  import { FmButtonVariant as zt } from "@feedmepos/ui-library";
4
- import { c as At } from "./object-27ce045b.js";
5
- import { c as un, l as fe, e as Bt, a as ve, d as tt, b as He, f as di, u as Fn, g as pi, n as hi } from "./app-16a15b75.js";
6
5
  import { defineStore as fi } from "pinia";
6
+ import { c as At } from "./object-27ce045b.js";
7
7
  import "vue-router";
8
+ const gi = (b) => {
9
+ const y = ct(b || "");
10
+ function g(O) {
11
+ return `${O}`.trim().toLowerCase();
12
+ }
13
+ const _ = Le(() => g(y.value));
14
+ function F(O) {
15
+ return _.value ? O.some((q) => g(q).includes(_.value)) : !0;
16
+ }
17
+ return { searchKey: y, filter: F };
18
+ }, mi = gi;
8
19
  var dt = {};
9
20
  (function(b) {
10
21
  var y = typeof process < "u" && (process.versions || {}).hasOwnProperty("node"), g = y ? Object.create(globalThis) : globalThis;
@@ -21016,13 +21027,13 @@ _t.FdoMenuPrintDepartment = sn.z.object({
21016
21027
  var ht = {};
21017
21028
  Object.defineProperty(ht, "__esModule", { value: !0 });
21018
21029
  ht.FdoMenuUnit = void 0;
21019
- const gi = ve, gt = fe;
21030
+ const bi = ve, gt = fe;
21020
21031
  ht.FdoMenuUnit = gt.z.object({
21021
21032
  _id: gt.z.string(),
21022
21033
  name: gt.z.string(),
21023
21034
  abbrev: gt.z.string(),
21024
21035
  precision: gt.z.number(),
21025
- measurements: gt.z.array(gi.entity.FdoUnitMeasurement)
21036
+ measurements: gt.z.array(bi.entity.FdoUnitMeasurement)
21026
21037
  });
21027
21038
  var kr = {};
21028
21039
  (function(b) {
@@ -21049,20 +21060,20 @@ var kr = {};
21049
21060
  var Vt = {};
21050
21061
  Object.defineProperty(Vt, "__esModule", { value: !0 });
21051
21062
  Vt.FdoMenuCategory = void 0;
21052
- const mi = tt, rr = fe;
21063
+ const vi = tt, rr = fe;
21053
21064
  Vt.FdoMenuCategory = rr.z.object({
21054
21065
  _id: rr.z.string(),
21055
21066
  name: rr.z.string(),
21056
21067
  position: rr.z.number().nullish()
21057
- }).describe(mi.ZodMeta.couch().repo("mProductCategory").build());
21068
+ }).describe(vi.ZodMeta.couch().repo("mProductCategory").build());
21058
21069
  var Gt = {};
21059
21070
  Object.defineProperty(Gt, "__esModule", { value: !0 });
21060
21071
  Gt.FdoMenuTakeaway = void 0;
21061
- const bi = ve, ln = fe;
21072
+ const yi = ve, ln = fe;
21062
21073
  Gt.FdoMenuTakeaway = ln.z.object({
21063
21074
  _id: ln.z.string(),
21064
21075
  name: ln.z.string(),
21065
- price: bi.entity.FdoDinero
21076
+ price: yi.entity.FdoDinero
21066
21077
  });
21067
21078
  var Rt = {}, Er = {};
21068
21079
  (function(b) {
@@ -21147,13 +21158,13 @@ var Rt = {}, Er = {};
21147
21158
  })(Er);
21148
21159
  Object.defineProperty(Rt, "__esModule", { value: !0 });
21149
21160
  Rt.FdoMenuCatalog = void 0;
21150
- const vi = ve, mt = fe, yi = Er;
21161
+ const wi = ve, mt = fe, _i = Er;
21151
21162
  Rt.FdoMenuCatalog = mt.z.object({
21152
21163
  _id: mt.z.string(),
21153
21164
  name: mt.z.string(),
21154
- inclusiveTaxes: mt.z.array(vi.entity.FdoTaxInclusion).nullish(),
21165
+ inclusiveTaxes: mt.z.array(wi.entity.FdoTaxInclusion).nullish(),
21155
21166
  productAvailable: mt.z.array(mt.z.string()),
21156
- override: yi.FdoMenuOverride
21167
+ override: _i.FdoMenuOverride
21157
21168
  });
21158
21169
  var Fr = {};
21159
21170
  (function(b) {
@@ -21199,11 +21210,11 @@ var jr = {};
21199
21210
  var kt = {};
21200
21211
  Object.defineProperty(kt, "__esModule", { value: !0 });
21201
21212
  kt.FdoMenuRecipe = void 0;
21202
- const wi = ve, nr = fe;
21213
+ const ki = ve, nr = fe;
21203
21214
  kt.FdoMenuRecipe = nr.z.object({
21204
21215
  _id: nr.z.string(),
21205
21216
  name: nr.z.string(),
21206
- contains: nr.z.array(wi.entity.FdoInventoryBinding)
21217
+ contains: nr.z.array(ki.entity.FdoInventoryBinding)
21207
21218
  });
21208
21219
  (function(b) {
21209
21220
  Object.defineProperty(b, "__esModule", { value: !0 }), b.FdoMenu = b.FdoMasterCatalogSetting = b.FdoMenuModule = void 0;
@@ -21242,16 +21253,16 @@ Et.FdoMenuV4Category = ir.z.object({
21242
21253
  var Ft = {};
21243
21254
  Object.defineProperty(Ft, "__esModule", { value: !0 });
21244
21255
  Ft.FdoMenuV4Group = void 0;
21245
- const Je = fe, _i = je, ki = rt;
21256
+ const Je = fe, Ei = je, Fi = rt;
21246
21257
  Ft.FdoMenuV4Group = Je.z.object({
21247
21258
  _id: Je.z.string(),
21248
21259
  name: Je.z.string(),
21249
21260
  min: Je.z.number(),
21250
21261
  max: Je.z.number(),
21251
21262
  stackable: Je.z.boolean(),
21252
- orderFrom: _i.F_ORDER_FROM,
21263
+ orderFrom: Ei.F_ORDER_FROM,
21253
21264
  position: Je.z.number(),
21254
- items: Je.z.array(ki.FdoItemOverriderV4)
21265
+ items: Je.z.array(Fi.FdoItemOverriderV4)
21255
21266
  });
21256
21267
  var Kt = {}, nt = {};
21257
21268
  Object.defineProperty(nt, "__esModule", { value: !0 });
@@ -21322,21 +21333,21 @@ var zn = {};
21322
21333
  var Lt = {};
21323
21334
  Object.defineProperty(Lt, "__esModule", { value: !0 });
21324
21335
  Lt.FdoMenuServeSequence = void 0;
21325
- const Dt = fe, Ei = rt;
21336
+ const Dt = fe, ji = rt;
21326
21337
  Lt.FdoMenuServeSequence = Dt.z.object({
21327
21338
  _id: Dt.z.string(),
21328
21339
  name: Dt.z.string(),
21329
21340
  position: Dt.z.number(),
21330
- items: Dt.z.array(Ei.FdoItemOverriderV4)
21341
+ items: Dt.z.array(ji.FdoItemOverriderV4)
21331
21342
  });
21332
21343
  var jt = {};
21333
21344
  Object.defineProperty(jt, "__esModule", { value: !0 });
21334
21345
  jt.FdoMenuV4Takeaway = void 0;
21335
- const $n = fe, Fi = ve;
21346
+ const $n = fe, Si = ve;
21336
21347
  jt.FdoMenuV4Takeaway = $n.z.object({
21337
21348
  _id: $n.z.string(),
21338
21349
  name: $n.z.string(),
21339
- price: Fi.entity.FdoDinero
21350
+ price: Si.entity.FdoDinero
21340
21351
  });
21341
21352
  var Sr = {};
21342
21353
  (function(b) {
@@ -21504,11 +21515,11 @@ var An = {};
21504
21515
  var ri = {}, St = {};
21505
21516
  Object.defineProperty(St, "__esModule", { value: !0 });
21506
21517
  St.FdoPosOverride = void 0;
21507
- const ji = tt, qn = fe, Si = Er;
21518
+ const Oi = tt, qn = fe, zi = Er;
21508
21519
  St.FdoPosOverride = qn.z.object({
21509
21520
  _id: qn.z.string().optional(),
21510
- override: Si.FdoMenuOverride
21511
- }).describe(ji.ZodMeta.couch().repo("mProductPosOverrideV3").isSingleDoc().build());
21521
+ override: zi.FdoMenuOverride
21522
+ }).describe(Oi.ZodMeta.couch().repo("mProductPosOverrideV3").isSingleDoc().build());
21512
21523
  (function(b) {
21513
21524
  Object.defineProperty(b, "__esModule", { value: !0 }), b.FdtoGetItemLinkedStatus = b.FdtoGetItemLinkedCatalog = b.FdtoMenuGetPriceRes = b.FdtoMenuGetPriceReq = b.FdtoMenuGetPriceItem = b.FdtoMenuGetPriceItemTakeaway = b.FdtoMenuGetPriceSubItem = b.FdtoGetSettingMenuReq = b.FdtoGetCatalogIdRes = b.FdtoGetBillCatalogIdReq = b.FdtoGetCatalogIdReq = b.FdtoRestaurantCatalog = void 0;
21514
21525
  const y = ve, g = Bt, _ = fe, F = jn, O = St, q = Tt, J = Fe;
@@ -21570,8 +21581,8 @@ St.FdoPosOverride = qn.z.object({
21570
21581
  var Or = {};
21571
21582
  Object.defineProperty(Or, "__esModule", { value: !0 });
21572
21583
  Or.F_MENU_VERSION = void 0;
21573
- const Oi = fe;
21574
- Or.F_MENU_VERSION = Oi.z.enum([
21584
+ const Ai = fe;
21585
+ Or.F_MENU_VERSION = Ai.z.enum([
21575
21586
  "v2",
21576
21587
  "v3",
21577
21588
  "v4"
@@ -21586,8 +21597,8 @@ zr.FdoHasPosition = Cn.z.object({
21586
21597
  var Ar = {};
21587
21598
  Object.defineProperty(Ar, "__esModule", { value: !0 });
21588
21599
  Ar.F_MENU_MODULE_V4_KEY = void 0;
21589
- const zi = fe;
21590
- Ar.F_MENU_MODULE_V4_KEY = zi.z.nativeEnum({
21600
+ const Di = fe;
21601
+ Ar.F_MENU_MODULE_V4_KEY = Di.z.nativeEnum({
21591
21602
  item: "item",
21592
21603
  category: "category",
21593
21604
  catalog: "catalog",
@@ -21695,32 +21706,32 @@ var ni = {};
21695
21706
  })(we);
21696
21707
  var ii = {}, ai = {}, Dr = {}, Te = {}, Ht = {}, ft = {};
21697
21708
  Object.defineProperty(ft, "__esModule", { value: !0 });
21698
- ft.getMenuVersion = Di;
21699
- ft.generateDocIdWithUniqueRandomString = Pi;
21700
- ft.wildcardMatcher = Mi;
21701
- const Ai = ve, xn = we;
21702
- function Di(b) {
21709
+ ft.getMenuVersion = Mi;
21710
+ ft.generateDocIdWithUniqueRandomString = Ui;
21711
+ ft.wildcardMatcher = qi;
21712
+ const Pi = ve, xn = we;
21713
+ function Mi(b) {
21703
21714
  return b.startsWith("mMenuV4") ? xn.F_MENU_VERSION.enum.v4 : xn.F_MENU_VERSION.enum.v3;
21704
21715
  }
21705
- function Pi(b, y) {
21716
+ function Ui(b, y) {
21706
21717
  let g = b.split("_"), _ = g[2];
21707
21718
  const F = new Set(y.map((O) => O.split("_")[2]));
21708
21719
  for (; F.has(_); )
21709
- _ = Ai.utils.randomString(_.length);
21720
+ _ = Pi.utils.randomString(_.length);
21710
21721
  return g[2] = _, g.join("_");
21711
21722
  }
21712
- function Mi(b, y) {
21723
+ function qi(b, y) {
21713
21724
  const g = (_) => _.replace(/([.+?^=!:{}()|\[\]\/\\])/g, "\\$1");
21714
21725
  return new RegExp("^" + g(y).replace(/[*]/g, ".*").replace(/[$]/g, "\\d*") + "$").test(b);
21715
21726
  }
21716
21727
  var Pt = {}, Ae = {};
21717
21728
  Object.defineProperty(Ae, "__esModule", { value: !0 });
21718
21729
  Ae.BaseOperation = void 0;
21719
- const Nn = ve, or = we, Ui = ft;
21720
- class qi {
21730
+ const Nn = ve, or = we, Ci = ft;
21731
+ class xi {
21721
21732
  generateDocId(y) {
21722
21733
  const g = `${this.module}_${(/* @__PURE__ */ new Date()).toISOString()}_${Nn.utils.randomString(6)}`;
21723
- return y ? (0, Ui.generateDocIdWithUniqueRandomString)(g, y.existingIds) : g;
21734
+ return y ? (0, Ci.generateDocIdWithUniqueRandomString)(g, y.existingIds) : g;
21724
21735
  }
21725
21736
  rearrange(y) {
21726
21737
  const g = Nn.utils.clone(y.original), _ = this.module;
@@ -21734,7 +21745,7 @@ class qi {
21734
21745
  };
21735
21746
  }
21736
21747
  }
21737
- Ae.BaseOperation = qi;
21748
+ Ae.BaseOperation = xi;
21738
21749
  var lt = {}, ze = {};
21739
21750
  Object.defineProperty(ze, "__esModule", { value: !0 });
21740
21751
  ze.getUpdateMenuModuleRequestSchema = ze.F_OPERATION_TYPE = void 0;
@@ -21743,7 +21754,7 @@ var he;
21743
21754
  (function(b) {
21744
21755
  b.create = "create", b.update = "update", b.delete = "delete", b.deleteMany = "deleteMany", b.rearrange = "rearrange";
21745
21756
  })(he || (ze.F_OPERATION_TYPE = he = {}));
21746
- const Ci = S.z.discriminatedUnion("operation", [
21757
+ const Ni = S.z.discriminatedUnion("operation", [
21747
21758
  S.z.object({
21748
21759
  module: S.z.literal(oe.F_MENU_MODULE_V4_KEY.enum.catalog),
21749
21760
  operation: S.z.literal(he.create),
@@ -21759,7 +21770,7 @@ const Ci = S.z.discriminatedUnion("operation", [
21759
21770
  operation: S.z.literal(he.delete),
21760
21771
  data: S.z.string()
21761
21772
  })
21762
- ]), xi = S.z.discriminatedUnion("operation", [
21773
+ ]), Ii = S.z.discriminatedUnion("operation", [
21763
21774
  S.z.object({
21764
21775
  module: S.z.literal(oe.F_MENU_MODULE_V4_KEY.enum.category),
21765
21776
  operation: S.z.literal(he.create),
@@ -21795,7 +21806,7 @@ const Ci = S.z.discriminatedUnion("operation", [
21795
21806
  discriminator: S.z.string().nullish(),
21796
21807
  delete: S.z.boolean().optional()
21797
21808
  })
21798
- ]), Ni = S.z.discriminatedUnion("operation", [
21809
+ ]), Bi = S.z.discriminatedUnion("operation", [
21799
21810
  S.z.object({
21800
21811
  module: S.z.literal(oe.F_MENU_MODULE_V4_KEY.enum.group),
21801
21812
  operation: S.z.literal(he.create),
@@ -21829,7 +21840,7 @@ const Ci = S.z.discriminatedUnion("operation", [
21829
21840
  data: S.z.array(oe.FdoItemOverriderV4),
21830
21841
  discriminator: S.z.string().nullish(),
21831
21842
  delete: S.z.boolean().optional()
21832
- }), Ii = S.z.discriminatedUnion("operation", [
21843
+ }), Ti = S.z.discriminatedUnion("operation", [
21833
21844
  S.z.object({
21834
21845
  module: S.z.literal(oe.F_MENU_MODULE_V4_KEY.enum.item),
21835
21846
  operation: S.z.literal(he.create),
@@ -21863,7 +21874,7 @@ const Ci = S.z.discriminatedUnion("operation", [
21863
21874
  data: S.z.unknown(),
21864
21875
  discriminator: S.z.string().nullish(),
21865
21876
  delete: S.z.boolean().optional()
21866
- }), Bi = S.z.discriminatedUnion("operation", [
21877
+ }), Vi = S.z.discriminatedUnion("operation", [
21867
21878
  S.z.object({
21868
21879
  module: S.z.literal(oe.F_MENU_MODULE_V4_KEY.enum.printDepartment),
21869
21880
  operation: S.z.literal(he.create),
@@ -21881,7 +21892,7 @@ const Ci = S.z.discriminatedUnion("operation", [
21881
21892
  operation: S.z.literal(he.delete),
21882
21893
  data: S.z.string()
21883
21894
  })
21884
- ]), Ti = S.z.discriminatedUnion("operation", [
21895
+ ]), Gi = S.z.discriminatedUnion("operation", [
21885
21896
  S.z.object({
21886
21897
  module: S.z.literal(oe.F_MENU_MODULE_V4_KEY.enum.takeaway),
21887
21898
  operation: S.z.literal(he.create),
@@ -21899,7 +21910,7 @@ const Ci = S.z.discriminatedUnion("operation", [
21899
21910
  operation: S.z.literal(he.delete),
21900
21911
  data: S.z.string()
21901
21912
  })
21902
- ]), Vi = S.z.discriminatedUnion("operation", [
21913
+ ]), Ri = S.z.discriminatedUnion("operation", [
21903
21914
  S.z.object({
21904
21915
  module: S.z.literal(oe.F_MENU_MODULE_V4_KEY.enum.scheduler),
21905
21916
  operation: S.z.literal(he.create),
@@ -21921,7 +21932,7 @@ const Ci = S.z.discriminatedUnion("operation", [
21921
21932
  data: oe.FdoItemOverriderV4,
21922
21933
  discriminator: S.z.string().nullish(),
21923
21934
  delete: S.z.boolean().optional()
21924
- }), Gi = S.z.discriminatedUnion("operation", [
21935
+ }), Ki = S.z.discriminatedUnion("operation", [
21925
21936
  S.z.object({
21926
21937
  module: S.z.literal(oe.F_MENU_MODULE_V4_KEY.enum.variant),
21927
21938
  operation: S.z.literal(he.create),
@@ -21939,7 +21950,7 @@ const Ci = S.z.discriminatedUnion("operation", [
21939
21950
  operation: S.z.literal(he.delete),
21940
21951
  data: S.z.string()
21941
21952
  })
21942
- ]), Ri = S.z.discriminatedUnion("operation", [
21953
+ ]), Li = S.z.discriminatedUnion("operation", [
21943
21954
  S.z.object({
21944
21955
  module: S.z.literal(oe.F_MENU_MODULE_V4_KEY.enum.sku),
21945
21956
  operation: S.z.literal(he.create),
@@ -21955,7 +21966,7 @@ const Ci = S.z.discriminatedUnion("operation", [
21955
21966
  operation: S.z.literal(he.delete),
21956
21967
  data: S.z.string()
21957
21968
  })
21958
- ]), Ki = S.z.discriminatedUnion("operation", [
21969
+ ]), Hi = S.z.discriminatedUnion("operation", [
21959
21970
  S.z.object({
21960
21971
  module: S.z.literal(oe.F_MENU_MODULE_V4_KEY.enum.unit),
21961
21972
  operation: S.z.literal(he.create),
@@ -21994,7 +22005,7 @@ S.z.discriminatedUnion("operation", [
21994
22005
  data: S.z.array(S.z.string())
21995
22006
  })
21996
22007
  ]);
21997
- const Li = S.z.discriminatedUnion("operation", [
22008
+ const Yi = S.z.discriminatedUnion("operation", [
21998
22009
  S.z.object({
21999
22010
  module: S.z.literal(oe.F_MENU_MODULE_V4_KEY.enum.recipe),
22000
22011
  operation: S.z.literal(he.create),
@@ -22010,7 +22021,7 @@ const Li = S.z.discriminatedUnion("operation", [
22010
22021
  operation: S.z.literal(he.delete),
22011
22022
  data: S.z.string()
22012
22023
  })
22013
- ]), Hi = S.z.discriminatedUnion("operation", [
22024
+ ]), Xi = S.z.discriminatedUnion("operation", [
22014
22025
  S.z.object({
22015
22026
  module: S.z.literal(oe.F_MENU_MODULE_V4_KEY.enum.cookingGuide),
22016
22027
  operation: S.z.literal(he.create),
@@ -22026,7 +22037,7 @@ const Li = S.z.discriminatedUnion("operation", [
22026
22037
  operation: S.z.literal(he.delete),
22027
22038
  data: S.z.string()
22028
22039
  })
22029
- ]), Yi = (b) => {
22040
+ ]), Ji = (b) => {
22030
22041
  const y = [];
22031
22042
  for (let g = 0; g < b.length; g++) {
22032
22043
  const { module: _, operation: F } = b[g], O = oe.F_MENU_MODULE_V4_KEY.safeParse(_), q = S.z.nativeEnum(he).safeParse(F);
@@ -22035,18 +22046,18 @@ const Li = S.z.discriminatedUnion("operation", [
22035
22046
  if (q.success != !0)
22036
22047
  throw q.error;
22037
22048
  const X = {
22038
- [oe.F_MENU_MODULE_V4_KEY.enum.catalog]: Ci,
22039
- [oe.F_MENU_MODULE_V4_KEY.enum.category]: xi,
22040
- [oe.F_MENU_MODULE_V4_KEY.enum.group]: Ni,
22041
- [oe.F_MENU_MODULE_V4_KEY.enum.item]: Ii,
22042
- [oe.F_MENU_MODULE_V4_KEY.enum.printDepartment]: Bi,
22043
- [oe.F_MENU_MODULE_V4_KEY.enum.scheduler]: Vi,
22044
- [oe.F_MENU_MODULE_V4_KEY.enum.takeaway]: Ti,
22045
- [oe.F_MENU_MODULE_V4_KEY.enum.variant]: Gi,
22046
- [oe.F_MENU_MODULE_V4_KEY.enum.sku]: Ri,
22047
- [oe.F_MENU_MODULE_V4_KEY.enum.unit]: Ki,
22048
- [oe.F_MENU_MODULE_V4_KEY.enum.recipe]: Li,
22049
- [oe.F_MENU_MODULE_V4_KEY.enum.cookingGuide]: Hi
22049
+ [oe.F_MENU_MODULE_V4_KEY.enum.catalog]: Ni,
22050
+ [oe.F_MENU_MODULE_V4_KEY.enum.category]: Ii,
22051
+ [oe.F_MENU_MODULE_V4_KEY.enum.group]: Bi,
22052
+ [oe.F_MENU_MODULE_V4_KEY.enum.item]: Ti,
22053
+ [oe.F_MENU_MODULE_V4_KEY.enum.printDepartment]: Vi,
22054
+ [oe.F_MENU_MODULE_V4_KEY.enum.scheduler]: Ri,
22055
+ [oe.F_MENU_MODULE_V4_KEY.enum.takeaway]: Gi,
22056
+ [oe.F_MENU_MODULE_V4_KEY.enum.variant]: Ki,
22057
+ [oe.F_MENU_MODULE_V4_KEY.enum.sku]: Li,
22058
+ [oe.F_MENU_MODULE_V4_KEY.enum.unit]: Hi,
22059
+ [oe.F_MENU_MODULE_V4_KEY.enum.recipe]: Yi,
22060
+ [oe.F_MENU_MODULE_V4_KEY.enum.cookingGuide]: Xi
22050
22061
  }[O.data]._def.options.get(q.data);
22051
22062
  if (X)
22052
22063
  y.push(S.z.object({ _id: S.z.string(), _rev: S.z.string() }).and(X));
@@ -22055,7 +22066,7 @@ const Li = S.z.discriminatedUnion("operation", [
22055
22066
  }
22056
22067
  return S.z.array(y[0]);
22057
22068
  };
22058
- ze.getUpdateMenuModuleRequestSchema = Yi;
22069
+ ze.getUpdateMenuModuleRequestSchema = Ji;
22059
22070
  var bt = {}, oi = { exports: {} };
22060
22071
  (function(b, y) {
22061
22072
  (function(g, _) {
@@ -22346,7 +22357,7 @@ var bt = {}, oi = { exports: {} };
22346
22357
  }, re.en = B[x], re.Ls = B, re.p = {}, re;
22347
22358
  });
22348
22359
  })(oi);
22349
- var Xi = oi.exports, Qe = {}, Mt = {}, Ke = {}, Vn;
22360
+ var Qi = oi.exports, Qe = {}, Mt = {}, Ke = {}, Vn;
22350
22361
  function Yt() {
22351
22362
  if (Vn)
22352
22363
  return Ke;
@@ -22642,7 +22653,7 @@ function Jt() {
22642
22653
  return se && se.__esModule ? se : { default: se };
22643
22654
  };
22644
22655
  Object.defineProperty(bt, "__esModule", { value: !0 }), bt.GroupOperation = void 0, bt.generateGroupKey = N;
22645
- const y = ve, g = b(Xi), _ = we, F = dt, O = Ae, q = it(), J = Xt(), X = Yt();
22656
+ const y = ve, g = b(Qi), _ = we, F = dt, O = Ae, q = it(), J = Xt(), X = Yt();
22646
22657
  function N(se) {
22647
22658
  return `${se}//${(/* @__PURE__ */ new Date()).toISOString()}_${y.utils.randomString(6)}`;
22648
22659
  }
@@ -23358,8 +23369,8 @@ function Qt() {
23358
23369
  var Mr = {};
23359
23370
  Object.defineProperty(Mr, "__esModule", { value: !0 });
23360
23371
  Mr.CategoryOperation = void 0;
23361
- const cn = ve, Xn = we, Ji = Ae;
23362
- class Qi extends Ji.BaseOperation {
23372
+ const cn = ve, Xn = we, Wi = Ae;
23373
+ class Zi extends Wi.BaseOperation {
23363
23374
  constructor() {
23364
23375
  super(...arguments), this.module = Xn.F_MENU_MODULE_V4_KEY.enum.category;
23365
23376
  }
@@ -23404,14 +23415,14 @@ class Qi extends Ji.BaseOperation {
23404
23415
  }));
23405
23416
  }
23406
23417
  }
23407
- Mr.CategoryOperation = Qi;
23418
+ Mr.CategoryOperation = Zi;
23408
23419
  var Ur = {};
23409
23420
  Object.defineProperty(Ur, "__esModule", { value: !0 });
23410
23421
  Ur.CookingGuideOperation = void 0;
23411
- const dn = ve, Wi = we, Zi = Ae;
23412
- class ea extends Zi.BaseOperation {
23422
+ const dn = ve, ea = we, ta = Ae;
23423
+ class ra extends ta.BaseOperation {
23413
23424
  constructor() {
23414
- super(...arguments), this.module = Wi.F_MENU_MODULE_V4_KEY.enum.cookingGuide;
23425
+ super(...arguments), this.module = ea.F_MENU_MODULE_V4_KEY.enum.cookingGuide;
23415
23426
  }
23416
23427
  create(y) {
23417
23428
  const g = dn.utils.clone(y.original), _ = Object.assign(Object.assign({}, y.data), { _id: this.generateDocId() });
@@ -23444,12 +23455,12 @@ class ea extends Zi.BaseOperation {
23444
23455
  };
23445
23456
  }
23446
23457
  }
23447
- Ur.CookingGuideOperation = ea;
23458
+ Ur.CookingGuideOperation = ra;
23448
23459
  var Wt = {};
23449
23460
  Object.defineProperty(Wt, "__esModule", { value: !0 });
23450
23461
  Wt.RecipeOperation = void 0;
23451
- const pn = ve, ur = Bt, Ze = we, ta = Ae;
23452
- class ra extends ta.BaseOperation {
23462
+ const pn = ve, ur = Bt, Ze = we, na = Ae;
23463
+ class ia extends na.BaseOperation {
23453
23464
  constructor() {
23454
23465
  super(...arguments), this.module = Ze.F_MENU_MODULE_V4_KEY.enum.recipe;
23455
23466
  }
@@ -23567,14 +23578,14 @@ class ra extends ta.BaseOperation {
23567
23578
  }), g;
23568
23579
  }
23569
23580
  }
23570
- Wt.RecipeOperation = ra;
23581
+ Wt.RecipeOperation = ia;
23571
23582
  var qr = {};
23572
23583
  Object.defineProperty(qr, "__esModule", { value: !0 });
23573
23584
  qr.ServeSequenceOperation = void 0;
23574
- const hn = ve, na = we, ia = Ae;
23575
- class aa extends ia.BaseOperation {
23585
+ const hn = ve, aa = we, oa = Ae;
23586
+ class ua extends oa.BaseOperation {
23576
23587
  constructor() {
23577
- super(...arguments), this.module = na.F_MENU_MODULE_V4_KEY.enum.serveSequence;
23588
+ super(...arguments), this.module = aa.F_MENU_MODULE_V4_KEY.enum.serveSequence;
23578
23589
  }
23579
23590
  create(y) {
23580
23591
  const g = hn.utils.clone(y.original), _ = Object.assign(Object.assign({}, y.data), { _id: this.generateDocId() });
@@ -23607,12 +23618,12 @@ class aa extends ia.BaseOperation {
23607
23618
  };
23608
23619
  }
23609
23620
  }
23610
- qr.ServeSequenceOperation = aa;
23621
+ qr.ServeSequenceOperation = ua;
23611
23622
  var Zt = {};
23612
23623
  Object.defineProperty(Zt, "__esModule", { value: !0 });
23613
23624
  Zt.SkuOperation = void 0;
23614
- const oa = Ae, et = we, sr = ve, Jn = Bt, ua = dt;
23615
- class sa extends oa.BaseOperation {
23625
+ const sa = Ae, et = we, sr = ve, Jn = Bt, la = dt;
23626
+ class $a extends sa.BaseOperation {
23616
23627
  constructor() {
23617
23628
  super(...arguments), this.module = et.F_MENU_MODULE_V4_KEY.enum.sku;
23618
23629
  }
@@ -23644,7 +23655,7 @@ class sa extends oa.BaseOperation {
23644
23655
  validateUpdate(y, g) {
23645
23656
  if (g < 0)
23646
23657
  return [];
23647
- const _ = sr.utils.clone(y.original), { skus: F, recipes: O } = ua.Menu.getInvalidSkuAndRecipe({
23658
+ const _ = sr.utils.clone(y.original), { skus: F, recipes: O } = la.Menu.getInvalidSkuAndRecipe({
23648
23659
  id: y.data._id,
23649
23660
  skus: _.sku,
23650
23661
  recipes: _.recipe
@@ -23727,12 +23738,12 @@ class sa extends oa.BaseOperation {
23727
23738
  }), g;
23728
23739
  }
23729
23740
  }
23730
- Zt.SkuOperation = sa;
23741
+ Zt.SkuOperation = $a;
23731
23742
  var Cr = {};
23732
23743
  Object.defineProperty(Cr, "__esModule", { value: !0 });
23733
23744
  Cr.UnitOperation = void 0;
23734
- const Nt = ve, la = Bt, Oe = we, $a = Ae, ca = Jt(), da = it(), pa = Wt, ha = Zt;
23735
- function fa(b, y) {
23745
+ const Nt = ve, ca = Bt, Oe = we, da = Ae, pa = Jt(), ha = it(), fa = Wt, ga = Zt;
23746
+ function ma(b, y) {
23736
23747
  const g = (0, Nt.DineroFactory)(b).convertPrecision(y).toObject();
23737
23748
  return {
23738
23749
  amount: g.amount,
@@ -23744,7 +23755,7 @@ function lr(b, y, g, _) {
23744
23755
  return {
23745
23756
  data: (b || []).map((O) => {
23746
23757
  const q = Nt.utils.clone(O);
23747
- if (q.type === la.F_INVENTORY_BINDING_TYPE.enum.SKU && y.includes(q.id))
23758
+ if (q.type === ca.F_INVENTORY_BINDING_TYPE.enum.SKU && y.includes(q.id))
23748
23759
  if (F = !0, q.measurement) {
23749
23760
  const J = _.find((X) => {
23750
23761
  var N;
@@ -23752,7 +23763,7 @@ function lr(b, y, g, _) {
23752
23763
  });
23753
23764
  q.measurement = J;
23754
23765
  } else
23755
- q.amount = fa(q.amount, g);
23766
+ q.amount = ma(q.amount, g);
23756
23767
  return q;
23757
23768
  }),
23758
23769
  updated: F
@@ -23761,9 +23772,9 @@ function lr(b, y, g, _) {
23761
23772
  function $r(b, y) {
23762
23773
  return (b || []).some((g) => g.measurement && y.includes(g.measurement.id));
23763
23774
  }
23764
- class ga extends $a.BaseOperation {
23775
+ class ba extends da.BaseOperation {
23765
23776
  constructor() {
23766
- super(...arguments), this.module = Oe.F_MENU_MODULE_V4_KEY.enum.unit, this.skuOperation = new ha.SkuOperation(), this.recipeOperation = new pa.RecipeOperation(), this.itemOperation = new da.ItemOperation(), this.groupOperation = new ca.GroupOperation();
23777
+ super(...arguments), this.module = Oe.F_MENU_MODULE_V4_KEY.enum.unit, this.skuOperation = new ga.SkuOperation(), this.recipeOperation = new fa.RecipeOperation(), this.itemOperation = new ha.ItemOperation(), this.groupOperation = new pa.GroupOperation();
23767
23778
  }
23768
23779
  create(y) {
23769
23780
  const g = Nt.utils.clone(y.original), _ = Object.assign(Object.assign({}, y.data), { _id: this.generateDocId() });
@@ -23953,10 +23964,10 @@ class ga extends $a.BaseOperation {
23953
23964
  }), _;
23954
23965
  }
23955
23966
  }
23956
- Cr.UnitOperation = ga;
23967
+ Cr.UnitOperation = ba;
23957
23968
  Object.defineProperty(Ht, "__esModule", { value: !0 });
23958
23969
  Ht.RequestRunner = void 0;
23959
- const ma = ve, Be = we, ba = ft, va = Qt(), ya = Mr, wa = Ur, _a = Jt(), ka = it(), Ea = ui(), Fa = Wt, ja = Pr(), Sa = qr, Oa = Zt, za = Xt(), Aa = Cr, Da = Yt();
23970
+ const va = ve, Be = we, ya = ft, wa = Qt(), _a = Mr, ka = Ur, Ea = Jt(), Fa = it(), ja = ui(), Sa = Wt, Oa = Pr(), za = qr, Aa = Zt, Da = Xt(), Pa = Cr, Ma = Yt();
23960
23971
  class It {
23961
23972
  static operation(y, g) {
23962
23973
  let _ = {
@@ -23966,14 +23977,14 @@ class It {
23966
23977
  };
23967
23978
  if (y.length === 0)
23968
23979
  return _;
23969
- const F = (0, ba.getMenuVersion)(y[0]._id);
23980
+ const F = (0, ya.getMenuVersion)(y[0]._id);
23970
23981
  for (let O = 0; O < y.length; O++) {
23971
23982
  const q = y[O], J = {
23972
23983
  original: _.result,
23973
23984
  version: F,
23974
23985
  data: q.data,
23975
23986
  link: "link" in q ? q.link : void 0
23976
- }, X = It.module[q.module][q.operation](J), N = [], I = ma.utils.clone(X.affected);
23987
+ }, X = It.module[q.module][q.operation](J), N = [], I = va.utils.clone(X.affected);
23977
23988
  for (; I.length > 0; ) {
23978
23989
  const T = I.shift();
23979
23990
  if (!T)
@@ -23993,27 +24004,27 @@ class It {
23993
24004
  }
23994
24005
  Ht.RequestRunner = It;
23995
24006
  It.module = {
23996
- [Be.F_MENU_MODULE_V4_KEY.enum.catalog]: new va.CatalogOperation(),
23997
- [Be.F_MENU_MODULE_V4_KEY.enum.category]: new ya.CategoryOperation(),
23998
- [Be.F_MENU_MODULE_V4_KEY.enum.group]: new _a.GroupOperation(),
23999
- [Be.F_MENU_MODULE_V4_KEY.enum.item]: new ka.ItemOperation(),
24000
- [Be.F_MENU_MODULE_V4_KEY.enum.printDepartment]: new Ea.PrintDepartmentOperation(),
24001
- [Be.F_MENU_MODULE_V4_KEY.enum.cookingGuide]: new wa.CookingGuideOperation(),
24002
- [Be.F_MENU_MODULE_V4_KEY.enum.scheduler]: new ja.SchedulerOperation(),
24003
- [Be.F_MENU_MODULE_V4_KEY.enum.takeaway]: new za.TakeawayOperation(),
24004
- [Be.F_MENU_MODULE_V4_KEY.enum.variant]: new Da.VariantOperation(),
24005
- [Be.F_MENU_MODULE_V4_KEY.enum.unit]: new Aa.UnitOperation(),
24006
- [Be.F_MENU_MODULE_V4_KEY.enum.sku]: new Oa.SkuOperation(),
24007
- [Be.F_MENU_MODULE_V4_KEY.enum.recipe]: new Fa.RecipeOperation(),
24008
- [Be.F_MENU_MODULE_V4_KEY.enum.serveSequence]: new Sa.ServeSequenceOperation()
24007
+ [Be.F_MENU_MODULE_V4_KEY.enum.catalog]: new wa.CatalogOperation(),
24008
+ [Be.F_MENU_MODULE_V4_KEY.enum.category]: new _a.CategoryOperation(),
24009
+ [Be.F_MENU_MODULE_V4_KEY.enum.group]: new Ea.GroupOperation(),
24010
+ [Be.F_MENU_MODULE_V4_KEY.enum.item]: new Fa.ItemOperation(),
24011
+ [Be.F_MENU_MODULE_V4_KEY.enum.printDepartment]: new ja.PrintDepartmentOperation(),
24012
+ [Be.F_MENU_MODULE_V4_KEY.enum.cookingGuide]: new ka.CookingGuideOperation(),
24013
+ [Be.F_MENU_MODULE_V4_KEY.enum.scheduler]: new Oa.SchedulerOperation(),
24014
+ [Be.F_MENU_MODULE_V4_KEY.enum.takeaway]: new Da.TakeawayOperation(),
24015
+ [Be.F_MENU_MODULE_V4_KEY.enum.variant]: new Ma.VariantOperation(),
24016
+ [Be.F_MENU_MODULE_V4_KEY.enum.unit]: new Pa.UnitOperation(),
24017
+ [Be.F_MENU_MODULE_V4_KEY.enum.sku]: new Aa.SkuOperation(),
24018
+ [Be.F_MENU_MODULE_V4_KEY.enum.recipe]: new Sa.RecipeOperation(),
24019
+ [Be.F_MENU_MODULE_V4_KEY.enum.serveSequence]: new za.ServeSequenceOperation()
24009
24020
  };
24010
24021
  Object.defineProperty(Te, "__esModule", { value: !0 });
24011
24022
  Te.Runnable = void 0;
24012
- Te.requestToArray = qa;
24013
- const Pa = dt, Ma = Ht;
24014
- class Ua {
24023
+ Te.requestToArray = xa;
24024
+ const Ua = dt, qa = Ht;
24025
+ class Ca {
24015
24026
  constructor(y) {
24016
- this.result = Pa.Menu.generator.initMenuV4(), this.req = y;
24027
+ this.result = Ua.Menu.generator.initMenuV4(), this.req = y;
24017
24028
  }
24018
24029
  get request() {
24019
24030
  return this.req;
@@ -24035,14 +24046,14 @@ class Ua {
24035
24046
  run(y) {
24036
24047
  this.result = y;
24037
24048
  const g = (Array.isArray(this.req) ? this.req : [this.req]).map((_) => Object.assign(Object.assign({}, _), { _id: y._id }));
24038
- return this.operationResult = Ma.RequestRunner.operation(g, y.modules), this;
24049
+ return this.operationResult = qa.RequestRunner.operation(g, y.modules), this;
24039
24050
  }
24040
24051
  then(y) {
24041
24052
  return this.req.push(...y), this;
24042
24053
  }
24043
24054
  }
24044
- Te.Runnable = Ua;
24045
- function qa(b, y) {
24055
+ Te.Runnable = Ca;
24056
+ function xa(b, y) {
24046
24057
  const g = Array.isArray(b) ? b : [b], _ = [];
24047
24058
  return g.forEach((F) => {
24048
24059
  const O = y(F);
@@ -24352,15 +24363,15 @@ Rr.cookingGuideRequestManager = {
24352
24363
  return _.RequestRunner;
24353
24364
  } });
24354
24365
  })(ii);
24355
- var ti = dt, Ca = we, xa = ii, { Config: Na } = ve, Ia = {
24366
+ var ti = dt, Na = we, Ia = ii, { Config: Ba } = ve, Ta = {
24356
24367
  ...ti.Menu,
24357
24368
  initialize: (b) => {
24358
- ti.Menu.initialize({ country: b.country }), Na.setCountry(b.country);
24369
+ ti.Menu.initialize({ country: b.country }), Ba.setCountry(b.country);
24359
24370
  },
24360
- manager: xa,
24361
- entity: Ca
24371
+ manager: Ia,
24372
+ entity: Na
24362
24373
  };
24363
- function Ba(b) {
24374
+ function Va(b) {
24364
24375
  var _;
24365
24376
  const y = (b == null ? void 0 : b.businessId) ?? ((_ = Fn().currentBusiness.value) == null ? void 0 : _.id);
24366
24377
  if (!y)
@@ -24368,10 +24379,10 @@ function Ba(b) {
24368
24379
  const g = `/menu-v4/businesses/${y}/menu-v4`;
24369
24380
  return pi(g);
24370
24381
  }
24371
- async function Ta(b) {
24372
- return di(await Ba(b).get(""));
24382
+ async function Ga(b) {
24383
+ return di(await Va(b).get(""));
24373
24384
  }
24374
- const Va = {
24385
+ const Ra = {
24375
24386
  _id: "",
24376
24387
  modules: {
24377
24388
  catalog: [],
@@ -24389,14 +24400,14 @@ const Va = {
24389
24400
  serveSequence: []
24390
24401
  }
24391
24402
  };
24392
- function Ga(b, y = []) {
24403
+ function Ka(b, y = []) {
24393
24404
  const g = y.map((F) => b.find((O) => O._id === F)).filter((F) => !!F);
24394
- return Ia.fullVariantCombination(g).reduce((F, O) => (F[O.combinationKey] = O.selectionName.join(" / "), F), {});
24405
+ return Ta.fullVariantCombination(g).reduce((F, O) => (F[O.combinationKey] = O.selectionName.join(" / "), F), {});
24395
24406
  }
24396
- function Ra(b, y, g) {
24407
+ function La(b, y, g) {
24397
24408
  const _ = g.reduce((F, O) => {
24398
24409
  var N, I, T;
24399
- const q = O.category || "", J = Ga(b, (N = O.variant) == null ? void 0 : N.variantGroupIds), X = {
24410
+ const q = O.category || "", J = Ka(b, (N = O.variant) == null ? void 0 : N.variantGroupIds), X = {
24400
24411
  ...O,
24401
24412
  codeName: [O.code, O.name].filter((V) => !!V).join(" "),
24402
24413
  variant: {
@@ -24418,16 +24429,16 @@ function Ra(b, y, g) {
24418
24429
  items: _[F._id || ""] || []
24419
24430
  }));
24420
24431
  }
24421
- const Ka = fi("mf-common-menu", () => {
24432
+ const Ha = fi("mf-common-menu", () => {
24422
24433
  const b = Fn(), y = ct();
24423
24434
  async function g(J = !1, X) {
24424
24435
  if (!y.value || J) {
24425
- const N = await Ta(X);
24436
+ const N = await Ga(X);
24426
24437
  y.value = N;
24427
24438
  }
24428
24439
  return y.value;
24429
24440
  }
24430
- const _ = Le(() => y.value || Va), F = Le(() => {
24441
+ const _ = Le(() => y.value || Ra), F = Le(() => {
24431
24442
  var J;
24432
24443
  return ((J = b.currentBusiness.value) == null ? void 0 : J.menuVersion) || we.F_MENU_VERSION.enum.v3;
24433
24444
  }), O = Le(() => F.value === we.F_MENU_VERSION.enum.v4), q = Le(() => {
@@ -24439,7 +24450,7 @@ const Ka = fi("mf-common-menu", () => {
24439
24450
  },
24440
24451
  ..._.value.modules.category
24441
24452
  ] : _.value.modules.category;
24442
- return Ra(
24453
+ return La(
24443
24454
  _.value.modules.variant,
24444
24455
  J,
24445
24456
  _.value.modules.item
@@ -24451,17 +24462,7 @@ const Ka = fi("mf-common-menu", () => {
24451
24462
  getMenu: g,
24452
24463
  categorizedRawMenuItems: q
24453
24464
  };
24454
- }), La = (b) => {
24455
- const y = ct(b || "");
24456
- function g(O) {
24457
- return `${O}`.trim().toLowerCase();
24458
- }
24459
- const _ = Le(() => g(y.value));
24460
- function F(O) {
24461
- return _.value ? O.some((q) => g(q).includes(_.value)) : !0;
24462
- }
24463
- return { searchKey: y, filter: F };
24464
- }, Ha = La, Ya = { class: "w-full h-full flex flex-col space-y-16 px-8 overflow-hidden" }, Xa = { class: "flex flex-col space-y-8" }, Ja = { class: "flex items-center space-x-24 w-full" }, Qa = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Wa = { class: "flex-1" }, Za = { key: 0 }, eo = { class: "flex items-center gap-16" }, to = { class: "flex justify-between items-center" }, ro = { class: "flex" }, no = { class: "ml-8 fm-typo-en-body-lg-600 grow overflow-hidden text-nowrap text-ellipsis" }, io = { key: 0 }, ao = ["id"], oo = {
24465
+ }), Ya = { class: "w-full h-full flex flex-col space-y-16 px-8 overflow-hidden" }, Xa = { class: "flex flex-col space-y-8" }, Ja = { class: "flex items-center space-x-24 w-full" }, Qa = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Wa = { class: "flex-1" }, Za = { key: 0 }, eo = { class: "flex items-center gap-16" }, to = { class: "flex justify-between items-center" }, ro = { class: "flex" }, no = { class: "ml-8 fm-typo-en-body-lg-600 grow overflow-hidden text-nowrap text-ellipsis" }, io = { key: 0 }, ao = ["id"], oo = {
24465
24466
  class: /* @__PURE__ */ En(["flex items-center"])
24466
24467
  }, uo = { class: "flex items-center w-full" }, so = {
24467
24468
  key: 0,
@@ -24481,7 +24482,7 @@ const Ka = fi("mf-common-menu", () => {
24481
24482
  const n = e.findIndex((a) => a === t);
24482
24483
  return n < 0 ? [...e, t] : e.filter((a, o) => o !== n);
24483
24484
  }
24484
- const _ = b, F = y, O = Le(() => _.categorizedItems ?? q.categorizedRawMenuItems ?? []), q = Ka(), J = Fn();
24485
+ const _ = b, F = y, O = Le(() => _.categorizedItems ?? q.categorizedRawMenuItems ?? []), q = Ha(), J = Fn();
24485
24486
  li(async () => {
24486
24487
  _.categorizedItems || await q.getMenu();
24487
24488
  });
@@ -24519,7 +24520,7 @@ const Ka = fi("mf-common-menu", () => {
24519
24520
  ...e,
24520
24521
  values: t
24521
24522
  };
24522
- })), { searchKey: K, filter: L } = Ha(), te = Le(() => {
24523
+ })), { searchKey: K, filter: L } = mi(), te = Le(() => {
24523
24524
  const e = Object.entries(X.value).reduce(
24524
24525
  (n, [a, o]) => {
24525
24526
  if (L([o.name]))