@feedmepos/mf-menu 0.31.17-dev → 0.31.17

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 (67) hide show
  1. package/dist/{App-Bi92tsdR.js → App-C0zWv8Bb.js} +6 -6
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-C3rIskDF.js → ApplyProduct.vue_vue_type_script_setup_true_lang-BlBfa-ly.js} +2 -2
  3. package/dist/{Catalog-d_9KGaWO.js → Catalog-hTR0c1zS.js} +18 -18
  4. package/dist/{Category-DCjOc3ks.js → Category-BTpAWhsI.js} +36 -36
  5. package/dist/{Category-BO0EYYGP.js → Category-CxDoeXi_.js} +24 -24
  6. package/dist/{CookingGuide-B3YHoKP-.js → CookingGuide-C87lhZ67.js} +56 -56
  7. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-B454jEg0.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-BEKiJBLy.js} +1 -1
  8. package/dist/{Group-BTmRo5b4.js → Group-D1kUgRjF.js} +3 -3
  9. package/dist/{Group-Cj39szTY.js → Group-Dad3CsPD.js} +1 -1
  10. package/dist/{Group.vue_vue_type_script_setup_true_lang-CIZithwK.js → Group.vue_vue_type_script_setup_true_lang-C-AS_gUD.js} +54 -54
  11. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DubOzDU3.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-Dz9BUoZe.js} +6 -6
  12. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-C2TnjKpu.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-BfZuETkY.js} +317 -317
  13. package/dist/{Ingredient-BTV0a-Tz.js → Ingredient-CL0V9EvP.js} +52 -52
  14. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-C7X1K-jY.js → InventoryBinding.vue_vue_type_script_setup_true_lang-BFTt-8OI.js} +1052 -1052
  15. package/dist/{LinkProductSideSheet-Cyb0Eex4.js → LinkProductSideSheet-CWMNlFCF.js} +14 -14
  16. package/dist/{MenuSetting-DozrYwzG.js → MenuSetting-DA35bTTq.js} +11 -11
  17. package/dist/{PrintRoute-B2kOXN6N.js → PrintRoute-B49FDrP6.js} +26 -26
  18. package/dist/{Product-DCqWb9i2.js → Product-CBGfSsYA.js} +1 -1
  19. package/dist/{Product.vue_vue_type_script_setup_true_lang-DFaQiLsv.js → Product.vue_vue_type_script_setup_true_lang-B3kyqD2S.js} +113 -113
  20. package/dist/ProductInternalTools-DiISILIn.js +415 -0
  21. package/dist/Products-BDvqmjZI.js +270 -0
  22. package/dist/{Publish-BzreviuZ.js → Publish-1zBRSD7U.js} +37 -37
  23. package/dist/{Recipe-BgJFJ4Dx.js → Recipe-D0VAcSN-.js} +25 -25
  24. package/dist/{Scheduler-Xp0G2vel.js → Scheduler-8BDLlHCV.js} +13 -13
  25. package/dist/{ServingSequence-CzA1hyup.js → ServingSequence-Bh3DhN3i.js} +36 -36
  26. package/dist/{Setting-DAkorx7V.js → Setting-BdSJCn6q.js} +24 -24
  27. package/dist/{Subcategory-BCbM_yd4.js → Subcategory-CBfEsTKy.js} +39 -39
  28. package/dist/{Takeaway-DKpjh1Ij.js → Takeaway-WPQ-ow5H.js} +1 -1
  29. package/dist/{Takeaway-DtnIyLkz.js → Takeaway-aLJ1QKbm.js} +12 -12
  30. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-PAB0AAfO.js → Takeaway.vue_vue_type_script_setup_true_lang-ZYP7hH6p.js} +25 -25
  31. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-CDABZaRa.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-aHMZigPA.js} +116 -116
  32. package/dist/{Unit-Da9V4qF7.js → Unit-Csan3-PW.js} +8 -8
  33. package/dist/{Variant-ONSE3GDp.js → Variant-aYCqqz9A.js} +18 -18
  34. package/dist/{_id_-Dlu5oAk9.js → _id_-BL-Q5Nck.js} +19 -19
  35. package/dist/{app-nWiUbcbv.js → app-CV3Y87bf.js} +262 -247
  36. package/dist/{app-BNF756eJ.js → app-CngqdPlx.js} +1 -1
  37. package/dist/app.js +1 -1
  38. package/dist/apps/mf-menu/src/app.d.ts +12 -0
  39. package/dist/apps/mf-menu/src/components/productInternalTools/ImageUpdatePreview.vue.d.ts +33 -0
  40. package/dist/apps/mf-menu/src/components/productInternalTools/ImageUploadDialog.vue.d.ts +28 -0
  41. package/dist/apps/mf-menu/src/utils/batchProcessor.d.ts +33 -0
  42. package/dist/apps/mf-menu/src/utils/images.d.ts +44 -0
  43. package/dist/apps/mf-menu/src/views/Product/ProductInternalTools.vue.d.ts +2 -0
  44. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  45. package/dist/assets/{linked-status-C195HQ8m.js → linked-status-CQPFAl1J.js} +2 -2
  46. package/dist/assets/{override-menu-AQwvxLhn.js → override-menu-DP9T_24q.js} +2 -2
  47. package/dist/assets/{validate-menu-BvGiRNmy.js → validate-menu-CcOso72D.js} +2 -2
  48. package/dist/{catalog-DJDsoY-2.js → catalog-ClQJMV9X.js} +1 -1
  49. package/dist/{catalogSetting-C8FvJ4OQ.js → catalogSetting-CXeRg55T.js} +1 -1
  50. package/dist/{category-Bf-qn7ic.js → category-_lR1fIWU.js} +1 -1
  51. package/dist/{currency-DMhhoVtl.js → currency-x_SA4GNt.js} +1 -1
  52. package/dist/{dayjs.min-BN8QQck7.js → dayjs.min-JzYVBtTX.js} +1 -1
  53. package/dist/{index-BWXnodS5.js → index-BaLeGLHZ.js} +23 -23
  54. package/dist/{index-DIDVppoP.js → index-Cb7zxMMe.js} +1 -1
  55. package/dist/{index-DWIFeRdA.js → index-Cjo_VHIT.js} +14 -14
  56. package/dist/{item-2jMu-J2m.js → item-E-Egz6v8.js} +1747 -1711
  57. package/dist/jszip.min-8UVTn3ZT.js +2393 -0
  58. package/dist/{menu-Dk9WJ37H.js → menu-CrEs_Qy-.js} +1 -1
  59. package/dist/{menu-CAzTKH28.js → menu-DYMiA6Oc.js} +156 -156
  60. package/dist/mf-menu.css +1 -1
  61. package/dist/{priceTier-BtHmZYAn.js → priceTier-Bs3jL4nk.js} +1 -1
  62. package/dist/{scheduler-R20M5JrX.js → scheduler-DxMNHPSa.js} +3 -3
  63. package/dist/{subcategory-CyDndVTK.js → subcategory-h4VL-0kK.js} +63 -63
  64. package/dist/{toExcel-DjH_qdTv.js → toExcel-DRJ3j3P7.js} +2 -2
  65. package/dist/{unit-BA6MtbAH.js → unit-D4v2m10X.js} +24 -24
  66. package/package.json +1 -1
  67. package/dist/Products-CybC3HCA.js +0 -2656
@@ -1,11 +1,11 @@
1
- import { defineComponent as j, ref as A, computed as V, onMounted as ne, resolveComponent as C, createElementBlock as D, openBlock as h, createVNode as n, createElementVNode as o, toDisplayString as F, unref as u, Fragment as P, renderList as Y, createBlock as E, withCtx as U, createCommentVNode as se, withModifiers as O, h as T } from "vue";
2
- import { D as Q } from "./dayjs.min-BN8QQck7.js";
1
+ import { defineComponent as j, ref as A, computed as V, onMounted as ne, resolveComponent as C, createElementBlock as D, openBlock as h, createVNode as n, createElementVNode as o, toDisplayString as F, unref as u, Fragment as P, renderList as Y, createBlock as B, withCtx as U, createCommentVNode as se, withModifiers as K, h as T } from "vue";
2
+ import { D as Q } from "./dayjs.min-JzYVBtTX.js";
3
3
  import { useRouter as ue } from "vue-router";
4
- import { z as ie, H as re, G as X, a8 as ce, J, K as de, u as me, I as pe } from "./menu-CAzTKH28.js";
4
+ import { z as ie, D as re, B as X, a8 as ce, H as W, I as de, u as me, G as pe } from "./menu-DYMiA6Oc.js";
5
5
  import { useI18n as q, useCoreStore as ve, RestaurantSelector as ge } from "@feedmepos/mf-common";
6
- import { useSnackbar as Z, useDialogChild as fe, useDialog as be, components as W } from "@feedmepos/ui-library";
6
+ import { useSnackbar as Z, useDialogChild as fe, useDialog as be, components as J } from "@feedmepos/ui-library";
7
7
  import { _ as _e } from "./TextChip.vue_vue_type_script_setup_true_lang-8frWuZFL.js";
8
- import { _ as he } from "./app-nWiUbcbv.js";
8
+ import { _ as he } from "./app-CV3Y87bf.js";
9
9
  import { a as ye, w as Ce } from "./tooltip-B5BiPMx9.js";
10
10
  import { u as ke } from "./discardConfirm-BHni0LNu.js";
11
11
  import { _ as we } from "./index.vue_vue_type_script_setup_true_lang-BgqsTzLI.js";
@@ -101,7 +101,7 @@ const Ve = {
101
101
  ])) : (h(), D("div", Fe, [
102
102
  o("div", Se, F(u(p)("menu.revert.description", { name: x.restaurant.name })), 1),
103
103
  o("div", Ie, [
104
- (h(!0), D(P, null, Y(t.value, (S) => (h(), E(ye, {
104
+ (h(!0), D(P, null, Y(t.value, (S) => (h(), B(ye, {
105
105
  key: S.label,
106
106
  name: S.label,
107
107
  value: S.value || "--"
@@ -155,7 +155,7 @@ const Ve = {
155
155
  }))
156
156
  ]), t = A(y()), M = A(!1), c = A(void 0);
157
157
  function _(v) {
158
- c.value = v ? J(v) : y(), t.value = J(c.value), M.value = !0;
158
+ c.value = v ? W(v) : y(), t.value = W(c.value), M.value = !0;
159
159
  }
160
160
  function k() {
161
161
  M.value = !1;
@@ -166,12 +166,12 @@ const Ve = {
166
166
  k();
167
167
  }
168
168
  );
169
- function B() {
169
+ function E() {
170
170
  k(), m("onComplete", t.value);
171
171
  }
172
172
  return (v, g) => {
173
173
  const $ = C("FmSelect"), z = C("FmCheckbox"), R = C("FmButton"), L = C("FmSideSheet");
174
- return h(), E(L, {
174
+ return h(), B(L, {
175
175
  modelValue: M.value,
176
176
  "onUpdate:modelValue": g[5] || (g[5] = (f) => M.value = f),
177
177
  "max-width": 560,
@@ -186,7 +186,7 @@ const Ve = {
186
186
  label: u(r)("menu.publish.update_catalog_dialog.actions.update"),
187
187
  size: "lg",
188
188
  variant: "primary",
189
- onClick: g[4] || (g[4] = () => B())
189
+ onClick: g[4] || (g[4] = () => E())
190
190
  }, null, 8, ["label"]),
191
191
  n(R, {
192
192
  label: u(r)("menu.publish.update_catalog_dialog.actions.cancel"),
@@ -238,17 +238,17 @@ const Ve = {
238
238
  }
239
239
  }), Pe = {
240
240
  class: "flex flex-col p-24 bg-fm-color-neutral-white min-h-[calc(100dvh-56px)] xs:max-h-[calc(100dvh-56px)]"
241
- }, Ee = {
242
- class: "flex items-center xs:mb-8 mb-24"
243
241
  }, Be = {
242
+ class: "flex items-center xs:mb-8 mb-24"
243
+ }, Ee = {
244
244
  class: "mr-8"
245
245
  }, ze = {
246
246
  class: "fm-typo-en-title-md-600"
247
- }, Ke = {
248
- class: "xs:hidden"
249
247
  }, Ne = {
250
- class: "pb-8 flex justify-between xs:flex-col gap-8"
248
+ class: "xs:hidden"
251
249
  }, Oe = {
250
+ class: "pb-8 flex justify-between xs:flex-col gap-8"
251
+ }, Ke = {
252
252
  class: "grow flex flex-col gap-4"
253
253
  }, Te = {
254
254
  class: "flex gap-8 items-center"
@@ -262,7 +262,7 @@ const Ve = {
262
262
  class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
263
263
  }, Ge = {
264
264
  class: "flex gap-8"
265
- }, Je = {
265
+ }, We = {
266
266
  class: "xs:block hidden fixed bottom-72 right-16"
267
267
  }, ua = /* @__PURE__ */ j({
268
268
  __name: "Publish",
@@ -322,17 +322,17 @@ const Ve = {
322
322
  const a = e.row.original;
323
323
  return t.state.menu.updatedAt, a.updatedAt, T("div", {
324
324
  class: "flex justify-end gap-8"
325
- }, [c.value && a.revertConfig ? Ce(T(W.FmButton, {
325
+ }, [c.value && a.revertConfig ? Ce(T(J.FmButton, {
326
326
  prependIcon: "undo",
327
327
  variant: "secondary",
328
- onClick: O(async () => {
328
+ onClick: K(async () => {
329
329
  await _(e.row.original);
330
330
  }, ["stop", "prevent"])
331
- }), l("menu.publish.actions.revert")) : null, T(W.FmButton, {
331
+ }), l("menu.publish.actions.revert")) : null, T(J.FmButton, {
332
332
  label: l("menu.publish.actions.publish"),
333
333
  icon: "ios_share",
334
334
  variant: "secondary",
335
- onClick: O(async () => {
335
+ onClick: K(async () => {
336
336
  const d = $(e.row.original);
337
337
  await L(d);
338
338
  }, ["stop", "prevent"])
@@ -372,10 +372,10 @@ const Ve = {
372
372
  function S(e) {
373
373
  return e ? Q(e).format("DD/MM/YYYY hh:mmA") : "";
374
374
  }
375
- const B = V(() => t.state.menu.modules.catalog), v = V(() => R.queue.value.some((e) => e.id === t.state.menu._id));
375
+ const E = V(() => t.state.menu.modules.catalog), v = V(() => R.queue.value.some((e) => e.id === t.state.menu._id));
376
376
  function g(e) {
377
377
  var a;
378
- return e ? ((a = B.value.find((d) => d._id === e)) == null ? void 0 : a.name) ?? l("menu.publish.labels.catalog.invalid") : l("menu.publish.labels.catalog.main");
378
+ return e ? ((a = E.value.find((d) => d._id === e)) == null ? void 0 : a.name) ?? l("menu.publish.labels.catalog.invalid") : l("menu.publish.labels.catalog.main");
379
379
  }
380
380
  function $(e) {
381
381
  return {
@@ -394,7 +394,7 @@ const Ve = {
394
394
  const R = X(Z());
395
395
  async function L(e) {
396
396
  var d;
397
- const a = (d = I.value.find((K) => K._id === e.restaurantId)) == null ? void 0 : d.name;
397
+ const a = (d = I.value.find((N) => N._id === e.restaurantId)) == null ? void 0 : d.name;
398
398
  await R.minor(async () => await t.publishMenu(e), {
399
399
  customId: t.state.menu._id,
400
400
  message: `Publishing menu for ${a}`,
@@ -432,24 +432,24 @@ const Ve = {
432
432
  }
433
433
  }
434
434
  return (e, a) => {
435
- const d = C("FmChip"), K = C("FmSpacer"), N = C("FmButton"), G = C("FmSearch"), te = C("FmTable"), le = C("FmListItem"), oe = C("FmList");
436
- return h(), D(P, null, [o("div", Pe, [o("div", Ee, [o("div", Be, [o("div", ze, F(u(l)("menu.publish.title")), 1), a[7] || (a[7] = o("div", {
435
+ const d = C("FmChip"), N = C("FmSpacer"), O = C("FmButton"), G = C("FmSearch"), te = C("FmTable"), le = C("FmListItem"), oe = C("FmList");
436
+ return h(), D(P, null, [o("div", Pe, [o("div", Be, [o("div", Ee, [o("div", ze, F(u(l)("menu.publish.title")), 1), a[7] || (a[7] = o("div", {
437
437
  class: "hidden xs:block fm-typo-en-body-sm-400 text-fm-color-typo-secondary"
438
438
  }, null, -1))]), n(d, {
439
439
  label: k.value,
440
440
  class: "xs:hidden text-fm-color-primary bg-fm-color-system-warning-100"
441
- }, null, 8, ["label"]), n(K), o("div", Ke, [n(N, {
441
+ }, null, 8, ["label"]), n(N), o("div", Ne, [n(O, {
442
442
  disabled: v.value,
443
443
  icon: "ios_share",
444
444
  label: u(l)("menu.publish.actions.publish_all"),
445
445
  variant: "primary",
446
446
  onClick: a[0] || (a[0] = () => H())
447
- }, null, 8, ["disabled", "label"])])]), o("div", Ne, [n(u(ge), {
447
+ }, null, 8, ["disabled", "label"])])]), o("div", Oe, [n(u(ge), {
448
448
  multiple: "",
449
449
  modelValue: f.value,
450
450
  "onUpdate:modelValue": a[2] || (a[2] = (s) => f.value = s)
451
451
  }, {
452
- "append-right": U(() => [n(K, {
452
+ "append-right": U(() => [n(N, {
453
453
  class: "xs:hidden"
454
454
  }), n(G, {
455
455
  modelValue: b.value,
@@ -489,7 +489,7 @@ const Ve = {
489
489
  class: "flex-col flex-1 min-h-0 overflow-auto xs:flex hidden w-full pb-64",
490
490
  separator: ""
491
491
  }, {
492
- default: U(() => [(h(!0), D(P, null, Y(ae.value, (s) => (h(), E(le, {
492
+ default: U(() => [(h(!0), D(P, null, Y(ae.value, (s) => (h(), B(le, {
493
493
  key: s._id,
494
494
  label: s.name,
495
495
  style: {
@@ -497,24 +497,24 @@ const Ve = {
497
497
  },
498
498
  onClick: () => z(s)
499
499
  }, {
500
- default: U(() => [o("div", Oe, [o("div", Te, [o("div", je, F(S(s.updatedAt)), 1), n(i, {
500
+ default: U(() => [o("div", Ke, [o("div", Te, [o("div", je, F(S(s.updatedAt)), 1), n(i, {
501
501
  row: s
502
- }, null, 8, ["row"])]), o("div", Ye, [o("div", qe, F(s.name), 1), o("div", He, [o("div", null, "Default: " + F(s.catalog.default), 1), o("div", null, "POS takeaway: " + F(s.catalog.takeaway), 1), o("div", null, "Pickup: " + F(s.catalog.pickup), 1)])])]), o("div", Ge, [c.value && s.revertConfig ? (h(), E(N, {
502
+ }, null, 8, ["row"])]), o("div", Ye, [o("div", qe, F(s.name), 1), o("div", He, [o("div", null, "Default: " + F(s.catalog.default), 1), o("div", null, "POS takeaway: " + F(s.catalog.takeaway), 1), o("div", null, "Pickup: " + F(s.catalog.pickup), 1)])])]), o("div", Ge, [c.value && s.revertConfig ? (h(), B(O, {
503
503
  key: 0,
504
504
  disabled: v.value,
505
505
  icon: "undo",
506
506
  variant: "tertiary",
507
- onClick: O(() => _(s), ["stop"])
508
- }, null, 8, ["disabled", "onClick"])) : se("", !0), n(N, {
507
+ onClick: K(() => _(s), ["stop"])
508
+ }, null, 8, ["disabled", "onClick"])) : se("", !0), n(O, {
509
509
  disabled: v.value,
510
510
  icon: "ios_share",
511
511
  variant: "tertiary",
512
- onClick: O(() => L($(s)), ["stop"])
512
+ onClick: K(() => L($(s)), ["stop"])
513
513
  }, null, 8, ["disabled", "onClick"])])]),
514
514
  _: 2
515
515
  }, 1032, ["label", "onClick"]))), 128))]),
516
516
  _: 1
517
- })], 64)) : (h(), E(u(we), {
517
+ })], 64)) : (h(), B(u(we), {
518
518
  key: 1,
519
519
  title: u(l)("menu.publish.empty.title"),
520
520
  subtitle: u(l)("menu.publish.empty.subtitle"),
@@ -527,7 +527,7 @@ const Ve = {
527
527
  });
528
528
  }
529
529
  }
530
- }, null, 8, ["title", "subtitle", "action"]))]), o("div", Je, [n(N, {
530
+ }, null, 8, ["title", "subtitle", "action"]))]), o("div", We, [n(O, {
531
531
  disabled: v.value,
532
532
  icon: "ios_share",
533
533
  label: u(l)("menu.publish.actions.publish_all"),
@@ -536,7 +536,7 @@ const Ve = {
536
536
  }, null, 8, ["disabled", "label"])]), n(Le, {
537
537
  ref_key: "updateCatalogDialogRef",
538
538
  ref: p,
539
- catalogs: B.value,
539
+ catalogs: E.value,
540
540
  onOnComplete: L
541
541
  }, null, 8, ["catalogs"])], 64);
542
542
  };
@@ -1,18 +1,18 @@
1
- import { defineComponent as K, computed as h, ref as w, reactive as Q, watch as W, resolveComponent as V, createElementBlock as F, openBlock as g, Fragment as C, renderSlot as X, createVNode as d, unref as e, withCtx as x, createElementVNode as r, toDisplayString as S, getCurrentInstance as Z, h as L, withModifiers as D, createBlock as I, createCommentVNode as ee, normalizeClass as z, renderList as te } from "vue";
1
+ import { defineComponent as z, computed as h, ref as w, reactive as Q, watch as W, resolveComponent as V, createElementBlock as F, openBlock as g, Fragment as C, renderSlot as X, createVNode as d, unref as e, withCtx as x, createElementVNode as r, toDisplayString as S, getCurrentInstance as Z, h as D, withModifiers as L, createBlock as O, createCommentVNode as ee, normalizeClass as K, renderList as te } from "vue";
2
2
  import { useI18n as U } from "@feedmepos/mf-common";
3
3
  import { useSnackbar as A, components as j, useDialog as ne, FmButtonVariant as G, useBreakpoints as oe } from "@feedmepos/ui-library";
4
4
  import { _ as ae } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
5
- import { _ as le } from "./app-nWiUbcbv.js";
6
- import { Q as q, G as $, J as ie, A as P, K as se, H as Y, M as O, I as T, u as H } from "./menu-CAzTKH28.js";
5
+ import { _ as le } from "./app-CV3Y87bf.js";
6
+ import { O as q, B as $, H as ie, A as P, I as se, D as B, J as I, G as T, u as H } from "./menu-DYMiA6Oc.js";
7
7
  import { _ as re } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
8
8
  import { _ as ce } from "./index.vue_vue_type_script_setup_true_lang-BgqsTzLI.js";
9
9
  import { defineStore as ue } from "pinia";
10
- import { _ as B, g as me } from "./InventoryBinding.vue_vue_type_script_setup_true_lang-C7X1K-jY.js";
10
+ import { _ as Y, g as me } from "./InventoryBinding.vue_vue_type_script_setup_true_lang-BFTt-8OI.js";
11
11
  import { u as de } from "./discardConfirm-BHni0LNu.js";
12
12
  import { c as pe } from "./check-C9mY6LiX.js";
13
- import "./unit-BA6MtbAH.js";
13
+ import "./unit-D4v2m10X.js";
14
14
  import { c as fe } from "./createComponentProgrammatically-Bt2rn1IQ.js";
15
- const _e = { class: "fm-typo-en-title-md-600" }, ve = { class: "pt-8 space-y-40" }, ye = { class: "flex flex-row gap-16" }, ge = { class: "flex gap-8 items-center justify-start" }, be = /* @__PURE__ */ K({
15
+ const _e = { class: "fm-typo-en-title-md-600" }, ve = { class: "pt-8 space-y-40" }, ye = { class: "flex flex-row gap-16" }, ge = { class: "flex gap-8 items-center justify-start" }, be = /* @__PURE__ */ z({
16
16
  __name: "Form",
17
17
  props: {
18
18
  initialValue: { default: void 0 },
@@ -39,14 +39,14 @@ const _e = { class: "fm-typo-en-title-md-600" }, ve = { class: "pt-8 space-y-40"
39
39
  p.initialValue ? await f.updateMenu(
40
40
  {
41
41
  module: T.F_MENU_MODULE_V4_KEY.enum.recipe,
42
- operation: O.F_OPERATION_TYPE.update,
42
+ operation: I.F_OPERATION_TYPE.update,
43
43
  data: t
44
44
  },
45
45
  t.name
46
46
  ) : await f.updateMenu(
47
47
  {
48
48
  module: T.F_MENU_MODULE_V4_KEY.enum.recipe,
49
- operation: O.F_OPERATION_TYPE.create,
49
+ operation: I.F_OPERATION_TYPE.create,
50
50
  data: t
51
51
  },
52
52
  t.name
@@ -120,16 +120,16 @@ const _e = { class: "fm-typo-en-title-md-600" }, ve = { class: "pt-8 space-y-40"
120
120
  rules: [(m) => m.length > 0 || e(u)("menu.recipe.validation.bind_required")]
121
121
  }, {
122
122
  default: x(() => [
123
- d(B, {
123
+ d(Y, {
124
124
  modelValue: n.contains,
125
125
  "onUpdate:modelValue": i[1] || (i[1] = (m) => n.contains = m),
126
- type: e(Y.F_INVENTORY_BINDING_TYPE).enum.RECIPE,
126
+ type: e(B.F_INVENTORY_BINDING_TYPE).enum.RECIPE,
127
127
  "filter-option-ids": o.value
128
128
  }, null, 8, ["modelValue", "type", "filter-option-ids"]),
129
- d(B, {
129
+ d(Y, {
130
130
  modelValue: n.contains,
131
131
  "onUpdate:modelValue": i[2] || (i[2] = (m) => n.contains = m),
132
- type: e(Y.F_INVENTORY_BINDING_TYPE).enum.SKU,
132
+ type: e(B.F_INVENTORY_BINDING_TYPE).enum.SKU,
133
133
  "filter-option-ids": E.value
134
134
  }, null, 8, ["modelValue", "type", "filter-option-ids"])
135
135
  ]),
@@ -185,7 +185,7 @@ const _e = { class: "fm-typo-en-title-md-600" }, ve = { class: "pt-8 space-y-40"
185
185
  await p.updateMenu(
186
186
  {
187
187
  module: T.F_MENU_MODULE_V4_KEY.enum.recipe,
188
- operation: O.F_OPERATION_TYPE.delete,
188
+ operation: I.F_OPERATION_TYPE.delete,
189
189
  data: o._id
190
190
  },
191
191
  o.name,
@@ -206,7 +206,7 @@ const _e = { class: "fm-typo-en-title-md-600" }, ve = { class: "pt-8 space-y-40"
206
206
  }, Fe = {
207
207
  class: "flex justify-end items-center my-8 px-16"
208
208
  }, Ee = {
209
- class: /* @__PURE__ */ z(["flex-1", "overflow-scroll", "divide-y divide-fm-color-neutral-gray-100", "pb-64"])
209
+ class: /* @__PURE__ */ K(["flex-1", "overflow-scroll", "divide-y divide-fm-color-neutral-gray-100", "pb-64"])
210
210
  }, Re = ["onClick"], Ce = {
211
211
  class: "flex-1"
212
212
  }, Se = {
@@ -217,11 +217,11 @@ const _e = { class: "fm-typo-en-title-md-600" }, ve = { class: "pt-8 space-y-40"
217
217
  class: "flex-1 flex justify-between gap-8 pl-8"
218
218
  }, Me = {
219
219
  class: "flex items-center"
220
- }, Ie = {
221
- class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4"
222
220
  }, Oe = {
221
+ class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4"
222
+ }, Ie = {
223
223
  class: "fm-typo-en-body-md-600 font-semibold"
224
- }, He = /* @__PURE__ */ K({
224
+ }, He = /* @__PURE__ */ z({
225
225
  __name: "Recipe",
226
226
  setup(R) {
227
227
  const {
@@ -246,13 +246,13 @@ const _e = { class: "fm-typo-en-title-md-600" }, ve = { class: "pt-8 space-y-40"
246
246
  header: "",
247
247
  cell: (y) => {
248
248
  const l = y.row.original;
249
- return L("div", {
249
+ return D("div", {
250
250
  class: "flex justify-end"
251
- }, [L(j.FmButton, {
251
+ }, [D(j.FmButton, {
252
252
  icon: "delete",
253
253
  textColor: "neutral-gray-400",
254
254
  variant: "tertiary",
255
- onClick: D(async () => {
255
+ onClick: L(async () => {
256
256
  f.deleteRecipe(l);
257
257
  }, ["stop", "prevent"])
258
258
  })]);
@@ -264,10 +264,10 @@ const _e = { class: "fm-typo-en-title-md-600" }, ve = { class: "pt-8 space-y-40"
264
264
  const n = h(() => b.value.length), E = oe(), o = h(() => E.breakpoints.value.xs);
265
265
  return (y, l) => {
266
266
  const t = V("FmSearch"), i = V("FmTable"), N = V("fm-button"), M = V("FmSpacer");
267
- return g(), I(re, {
267
+ return g(), O(re, {
268
268
  heading: e(c)("menu.recipe.title")
269
269
  }, {
270
- default: x(() => [b.value.length === 0 ? (g(), I(e(ce), {
270
+ default: x(() => [b.value.length === 0 ? (g(), O(e(ce), {
271
271
  key: 0,
272
272
  action: {
273
273
  text: e(c)("menu.recipe.empty.action"),
@@ -289,13 +289,13 @@ const _e = { class: "fm-typo-en-title-md-600" }, ve = { class: "pt-8 space-y-40"
289
289
  placeholder: e(c)("menu.recipe.table.search.placeholder")
290
290
  }, null, 8, ["modelValue", "placeholder"])]), r("div", Ee, [(g(!0), F(C, null, te(_.value, (s) => (g(), F("div", {
291
291
  key: s._id,
292
- class: z(["py-12 px-16", "flex space-x-8", "items-center", "cursor-pointer"]),
292
+ class: K(["py-12 px-16", "flex space-x-8", "items-center", "cursor-pointer"]),
293
293
  onClick: () => e(f).updateRecipe(s)
294
294
  }, [r("div", Ce, [r("p", Se, S(s.name), 1), r("p", we, S(s.ingredients), 1)]), d(N, {
295
295
  variant: e(G).Tertiary,
296
296
  "prepend-icon": "delete",
297
297
  "text-color": "neutral-gray-400",
298
- onClick: D(() => e(f).deleteRecipe(s), ["stop"])
298
+ onClick: L(() => e(f).deleteRecipe(s), ["stop"])
299
299
  }, null, 8, ["variant", "onClick"])], 8, Re))), 128))])], 64)) : (g(), F("div", ke, [r("div", xe, [d(t, {
300
300
  modelValue: v.value,
301
301
  "onUpdate:modelValue": l[0] || (l[0] = (s) => v.value = s),
@@ -314,7 +314,7 @@ const _e = { class: "fm-typo-en-title-md-600" }, ve = { class: "pt-8 space-y-40"
314
314
  }, null, 8, ["column-defs", "page-size", "row-data"])]),
315
315
  _: 1
316
316
  })]))], 64))]),
317
- "append-heading": x(() => [r("div", Ne, [r("div", Me, [r("div", Ie, [r("p", Oe, S(n.value), 1)])]), d(M), b.value.length > 0 ? (g(), I(ae, {
317
+ "append-heading": x(() => [r("div", Ne, [r("div", Me, [r("div", Oe, [r("p", Ie, S(n.value), 1)])]), d(M), b.value.length > 0 ? (g(), O(ae, {
318
318
  key: 0,
319
319
  label: e(c)("menu.recipe.actions.add"),
320
320
  "prepend-icon": "add",
@@ -1,10 +1,10 @@
1
- import { defineComponent as N, computed as y, h as c, withModifiers as U, ref as V, resolveComponent as _, createBlock as k, openBlock as d, unref as m, withCtx as h, createElementBlock as D, createVNode as f, Fragment as I, createElementVNode as l, renderList as T, toDisplayString as S, createCommentVNode as H } from "vue";
2
- import { I as i, Q as W, u as Q, G } from "./menu-CAzTKH28.js";
1
+ import { defineComponent as N, computed as y, h as c, withModifiers as U, ref as V, resolveComponent as _, createBlock as k, openBlock as d, unref as m, withCtx as h, createElementBlock as D, createVNode as f, Fragment as H, createElementVNode as l, renderList as T, toDisplayString as S, createCommentVNode as I } from "vue";
2
+ import { G as i, O as W, u as G, B as Q } from "./menu-DYMiA6Oc.js";
3
3
  import { useI18n as J } from "@feedmepos/mf-common";
4
4
  import { components as X, useDialog as Z, useSnackbar as ee } from "@feedmepos/ui-library";
5
5
  import { _ as te } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
6
- import { _ as ne } from "./app-nWiUbcbv.js";
7
- import { d as ae, _ as oe, u as se, c as le } from "./scheduler-R20M5JrX.js";
6
+ import { _ as ne } from "./app-CV3Y87bf.js";
7
+ import { d as ae, _ as oe, u as se, c as le } from "./scheduler-DxMNHPSa.js";
8
8
  import { _ as re } from "./index.vue_vue_type_script_setup_true_lang-BgqsTzLI.js";
9
9
  import { _ as ue } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
10
10
  const ce = {
@@ -116,14 +116,14 @@ const ce = {
116
116
  var t;
117
117
  C.value || (t = x.value) == null || t.show(e);
118
118
  }
119
- const q = Z();
119
+ const O = Z();
120
120
  function j(e) {
121
121
  let t = [c("span", a("menu.scheduler.dialogs.remove.message", {
122
122
  name: e.name
123
123
  })), c("span", {
124
124
  class: "fm-typo-en-body-lg-600"
125
125
  }, e.name), c("span", "?")];
126
- q.open({
126
+ O.open({
127
127
  title: a("menu.scheduler.dialogs.remove.title"),
128
128
  contentComponent: c("div", t),
129
129
  primaryActions: {
@@ -139,11 +139,11 @@ const ce = {
139
139
  await w.updateMenu(ae(e), e.name, !0);
140
140
  });
141
141
  }
142
- async function O(e) {
142
+ async function q(e) {
143
143
  const t = e._id ? se(e) : le(e);
144
144
  await w.updateMenu(t, e.name);
145
145
  }
146
- const A = Q(), B = y(() => A.categorizedRawMenuItems), p = y(() => A.state.menu.modules.scheduler), w = W(G(ee())), C = y(() => w.checkMenuIsLoading()), g = V(""), K = y(() => {
146
+ const A = G(), B = y(() => A.categorizedRawMenuItems), p = y(() => A.state.menu.modules.scheduler), w = W(Q(ee())), C = y(() => w.checkMenuIsLoading()), g = V(""), K = y(() => {
147
147
  const e = g.value.toLowerCase();
148
148
  return e ? p.value.filter((t) => t.name.toLowerCase().includes(e)) : p.value;
149
149
  });
@@ -159,7 +159,7 @@ const ce = {
159
159
  label: m(a)("menu.scheduler.empty.action"),
160
160
  variant: "primary",
161
161
  onClick: L
162
- }, null, 8, ["disabled", "label"])) : H("", !0)])]),
162
+ }, null, 8, ["disabled", "label"])) : I("", !0)])]),
163
163
  default: h(() => [p.value.length === 0 ? (d(), k(m(re), {
164
164
  key: 0,
165
165
  action: {
@@ -168,7 +168,7 @@ const ce = {
168
168
  },
169
169
  subtitle: m(a)("menu.scheduler.empty.subtitle"),
170
170
  title: m(a)("menu.scheduler.empty.title")
171
- }, null, 8, ["action", "subtitle", "title"])) : (d(), D(I, {
171
+ }, null, 8, ["action", "subtitle", "title"])) : (d(), D(H, {
172
172
  key: 1
173
173
  }, [l("div", ie, [l("div", de, [f(s, {
174
174
  modelValue: g.value,
@@ -194,7 +194,7 @@ const ce = {
194
194
  class: "flex-col flex-1 min-h-0 overflow-auto xs:flex hidden w-full px-16 pb-64",
195
195
  separator: ""
196
196
  }, {
197
- default: h(() => [(d(!0), D(I, null, T(K.value, (n) => (d(), k(R, {
197
+ default: h(() => [(d(!0), D(H, null, T(K.value, (n) => (d(), k(R, {
198
198
  key: n._id,
199
199
  label: n.name,
200
200
  style: {
@@ -202,7 +202,7 @@ const ce = {
202
202
  },
203
203
  onClick: () => $(n)
204
204
  }, {
205
- default: h(() => [l("div", me, [l("div", pe, S(n.name), 1), l("div", null, [l("div", fe, S(Object.keys(n.items).length) + " product(s) linked ", 1), l("div", ye, [l("div", null, " Repeat: " + S(F(n.repeat, n.weekDay)), 1), n.timePeriod.length > 0 ? (d(), D("span", _e, "Period: ")) : H("", !0), l("span", null, S(n.timePeriod.map((b) => `${b.start} - ${b.end}`).join(", ")), 1)])])]), f(v, {
205
+ default: h(() => [l("div", me, [l("div", pe, S(n.name), 1), l("div", null, [l("div", fe, S(Object.keys(n.items).length) + " product(s) linked ", 1), l("div", ye, [l("div", null, " Repeat: " + S(F(n.repeat, n.weekDay)), 1), n.timePeriod.length > 0 ? (d(), D("span", _e, "Period: ")) : I("", !0), l("span", null, S(n.timePeriod.map((b) => `${b.start} - ${b.end}`).join(", ")), 1)])])]), f(v, {
206
206
  icon: "delete",
207
207
  variant: "tertiary",
208
208
  "text-color": "neutral-gray-400",
@@ -215,7 +215,7 @@ const ce = {
215
215
  ref_key: "schedulerDialogRef",
216
216
  ref: x,
217
217
  "categorized-items": B.value,
218
- onOnComplete: O
218
+ onOnComplete: q
219
219
  }, null, 8, ["categorized-items"])]),
220
220
  _: 1
221
221
  }, 8, ["heading"]);