@feedmepos/mf-settings 0.0.67-alpha.1 → 0.0.68-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.
@@ -3,7 +3,7 @@ import { useRouter as zn, RouterView as Gn } from "vue-router";
3
3
  import { useI18n as Ln, useCoreStore as Qr, FeedMeAuth as Hn } from "@feedmepos/mf-common";
4
4
  import { c as ur } from "./_commonjs-dynamic-modules-bed80856.js";
5
5
  import { c as Oe, e as Jr } from "./index-b9ef9a01.js";
6
- import { r as lr } from "./app-6d1a848d.js";
6
+ import { r as lr } from "./app-bfaa4ee9.js";
7
7
  import { r as hr, g as Yr, i as Un, a as Vn, _ as Ar, C as Ir, b as Kn, S as Et, c as dt, E as $r, d as Wn, e as Xr, f as Qn, h as Jn, L as Zr, j as we, k as Yn, l as Xn, F as gr, q as jt, m as Zn, n as ea, o as ta, p as ra, s as na, t as aa, u as ia, v as sa } from "./map-695afd6f.js";
8
8
  import "@feedmepos/mf-mdm";
9
9
  import "@feedmepos/ui-library";
@@ -106,7 +106,7 @@ var br = {};
106
106
  for (var n = 0; n < t.length; n++)
107
107
  K(t[n], r);
108
108
  }
109
- function fe(r, t) {
109
+ function ce(r, t) {
110
110
  L(t.prototype, r.prototype), r.prototype.constructor = r;
111
111
  }
112
112
  function me(r, t) {
@@ -120,7 +120,7 @@ var br = {};
120
120
  }, r[t];
121
121
  };
122
122
  }
123
- function ce(r, t, n, i) {
123
+ function fe(r, t, n, i) {
124
124
  var s = r;
125
125
  r[t] = s, r[n] = function() {
126
126
  if (r[t] === s) {
@@ -203,7 +203,7 @@ var br = {};
203
203
  return lt(l, c, n, i, s, [f], h, o);
204
204
  };
205
205
  };
206
- return { inherit: K, inheritMany: oe, mixin: fe, mixinHard: me, installStaticTearOff: lt, installInstanceTearOff: mt, _instance_0u: r(0, 0, null, ["$0"], 0), _instance_1u: r(0, 1, null, ["$1"], 0), _instance_2u: r(0, 2, null, ["$2"], 0), _instance_0i: r(1, 0, null, ["$0"], 0), _instance_1i: r(1, 1, null, ["$1"], 0), _instance_2i: r(1, 2, null, ["$2"], 0), _static_0: t(0, null, ["$0"], 0), _static_1: t(1, null, ["$1"], 0), _static_2: t(2, null, ["$2"], 0), makeConstList: ke, lazy: Me, lazyFinal: ce, updateHolder: Rn, convertToFastObject: pt, updateTypes: Qt, setOrUpdateInterceptorsByTag: Wt, setOrUpdateLeafTags: bt };
206
+ return { inherit: K, inheritMany: oe, mixin: ce, mixinHard: me, installStaticTearOff: lt, installInstanceTearOff: mt, _instance_0u: r(0, 0, null, ["$0"], 0), _instance_1u: r(0, 1, null, ["$1"], 0), _instance_2u: r(0, 2, null, ["$2"], 0), _instance_0i: r(1, 0, null, ["$0"], 0), _instance_1i: r(1, 1, null, ["$1"], 0), _instance_2i: r(1, 2, null, ["$2"], 0), _static_0: t(0, null, ["$0"], 0), _static_1: t(1, null, ["$1"], 0), _static_2: t(2, null, ["$2"], 0), makeConstList: ke, lazy: Me, lazyFinal: fe, updateHolder: Rn, convertToFastObject: pt, updateTypes: Qt, setOrUpdateInterceptorsByTag: Wt, setOrUpdateLeafTags: bt };
207
207
  }(), $ = {
208
208
  x3(r, t, n, i) {
209
209
  return { i: r, p: t, e: n, x: i };
@@ -18912,34 +18912,34 @@ const ya = /* @__PURE__ */ Vr({
18912
18912
  setup(k, { emit: p }) {
18913
18913
  const b = p, { t: j } = Ln(), x = zn(), _ = Qr(), P = Sr(() => _.restaurants.value.some(({ posVersion: K }) => va.Pos.canUse({ feature: Jr.F_FEATURE.Enum.templateBuilder, posVersion: K ?? "" }))), L = Sr(() => {
18914
18914
  const K = [];
18915
- lr.filter((ce) => {
18915
+ lr.filter((fe) => {
18916
18916
  var ke;
18917
- return ce.redirect || (ke = ce.meta) != null && ke.hideNavigation ? !1 : !(ce.name === "$settings-template-builder" && !P.value);
18918
- }).map((ce) => {
18917
+ return fe.redirect || (ke = fe.meta) != null && ke.hideNavigation ? !1 : !(fe.name === "$settings-template-builder" && !P.value);
18918
+ }).map((fe) => {
18919
18919
  var ke;
18920
18920
  K.push({
18921
- label: j((ke = ce.meta) == null ? void 0 : ke.i18nKey),
18922
- value: ce.name,
18921
+ label: j((ke = fe.meta) == null ? void 0 : ke.i18nKey),
18922
+ value: fe.name,
18923
18923
  action: () => {
18924
- ce.name === "$settings-e-invoice" ? x.push({ name: "SUBMISSION" }) : x.push({ name: ce.name }), b("close-navigation");
18924
+ fe.name === "$settings-e-invoice" ? x.push({ name: "SUBMISSION" }) : x.push({ name: fe.name }), b("close-navigation");
18925
18925
  }
18926
18926
  });
18927
18927
  });
18928
- const fe = lr.filter((ce) => ce.path.startsWith("/devices")), me = K.findIndex((ce) => ce.value === "$settings-my-business"), Me = me !== -1 ? me + 1 : K.length;
18928
+ const ce = lr.filter((fe) => fe.path.startsWith("/devices")), me = K.findIndex((fe) => fe.value === "$settings-my-business"), Me = me !== -1 ? me + 1 : K.length;
18929
18929
  return K.splice(Me, 0, {
18930
18930
  label: j("settings.deviceManagement"),
18931
18931
  value: "$settings-device-management",
18932
- children: fe.map((ce) => {
18932
+ children: ce.map((fe) => {
18933
18933
  var ke;
18934
- return ce.name === "$pos-order-setting" ? {
18934
+ return fe.name === "$pos-order-setting" ? {
18935
18935
  label: j("order.kiosk"),
18936
- value: "kiosk",
18936
+ value: "Kiosk",
18937
18937
  action: () => {
18938
18938
  x.push({ name: "Kiosk" }), b("close-navigation");
18939
18939
  }
18940
18940
  } : {
18941
- label: j((ke = ce.meta) == null ? void 0 : ke.i18nKey),
18942
- value: ce.name,
18941
+ label: j((ke = fe.meta) == null ? void 0 : ke.i18nKey),
18942
+ value: "$devices",
18943
18943
  action: () => {
18944
18944
  x.push({ name: "$devices" }), b("close-navigation");
18945
18945
  }
@@ -18952,8 +18952,8 @@ const ya = /* @__PURE__ */ Vr({
18952
18952
  let K = ((oe = x.currentRoute.value) == null ? void 0 : oe.name) ?? lr[0].name;
18953
18953
  H.value !== K && (H.value = K);
18954
18954
  }), (K, oe) => {
18955
- const fe = Bn("fm-collapsible-tabs");
18956
- return Kr(), Wr(fe, {
18955
+ const ce = Bn("fm-collapsible-tabs");
18956
+ return Kr(), Wr(ce, {
18957
18957
  modelValue: H.value,
18958
18958
  "onUpdate:modelValue": oe[0] || (oe[0] = (me) => H.value = me),
18959
18959
  items: L.value,
@@ -19643,7 +19643,7 @@ async function Ot(k) {
19643
19643
  );
19644
19644
  const _ = x.users[0];
19645
19645
  k._notifyReloadListener(_);
19646
- const P = !((p = _.providerUserInfo) === null || p === void 0) && p.length ? Fa(_.providerUserInfo) : [], L = Oa(k.providerData, P), H = k.isAnonymous, K = !(k.email && _.passwordHash) && !(L != null && L.length), oe = H ? K : !1, fe = {
19646
+ const P = !((p = _.providerUserInfo) === null || p === void 0) && p.length ? Fa(_.providerUserInfo) : [], L = Oa(k.providerData, P), H = k.isAnonymous, K = !(k.email && _.passwordHash) && !(L != null && L.length), oe = H ? K : !1, ce = {
19647
19647
  uid: _.localId,
19648
19648
  displayName: _.displayName || null,
19649
19649
  photoURL: _.photoUrl || null,
@@ -19655,7 +19655,7 @@ async function Ot(k) {
19655
19655
  metadata: new on(_.createdAt, _.lastLoginAt),
19656
19656
  isAnonymous: oe
19657
19657
  };
19658
- Object.assign(k, fe);
19658
+ Object.assign(k, ce);
19659
19659
  }
19660
19660
  async function Ba(k) {
19661
19661
  const p = dt(k);
@@ -19901,7 +19901,7 @@ class st {
19901
19901
  }
19902
19902
  static _fromJSON(p, b) {
19903
19903
  var j, x, _, P, L, H, K, oe;
19904
- const fe = (j = b.displayName) !== null && j !== void 0 ? j : void 0, me = (x = b.email) !== null && x !== void 0 ? x : void 0, Me = (_ = b.phoneNumber) !== null && _ !== void 0 ? _ : void 0, ce = (P = b.photoURL) !== null && P !== void 0 ? P : void 0, ke = (L = b.tenantId) !== null && L !== void 0 ? L : void 0, pt = (H = b._redirectEventId) !== null && H !== void 0 ? H : void 0, qt = (K = b.createdAt) !== null && K !== void 0 ? K : void 0, Ct = (oe = b.lastLoginAt) !== null && oe !== void 0 ? oe : void 0, { uid: $t, emailVerified: _t, isAnonymous: gt, providerData: lt, stsTokenManager: mt } = b;
19904
+ const ce = (j = b.displayName) !== null && j !== void 0 ? j : void 0, me = (x = b.email) !== null && x !== void 0 ? x : void 0, Me = (_ = b.phoneNumber) !== null && _ !== void 0 ? _ : void 0, fe = (P = b.photoURL) !== null && P !== void 0 ? P : void 0, ke = (L = b.tenantId) !== null && L !== void 0 ? L : void 0, pt = (H = b._redirectEventId) !== null && H !== void 0 ? H : void 0, qt = (K = b.createdAt) !== null && K !== void 0 ? K : void 0, Ct = (oe = b.lastLoginAt) !== null && oe !== void 0 ? oe : void 0, { uid: $t, emailVerified: _t, isAnonymous: gt, providerData: lt, stsTokenManager: mt } = b;
19905
19905
  ie(
19906
19906
  $t && mt,
19907
19907
  p,
@@ -19914,7 +19914,7 @@ class st {
19914
19914
  p,
19915
19915
  "internal-error"
19916
19916
  /* AuthErrorCode.INTERNAL_ERROR */
19917
- ), Re(fe, p.name), Re(me, p.name), ie(
19917
+ ), Re(ce, p.name), Re(me, p.name), ie(
19918
19918
  typeof _t == "boolean",
19919
19919
  p,
19920
19920
  "internal-error"
@@ -19924,15 +19924,15 @@ class st {
19924
19924
  p,
19925
19925
  "internal-error"
19926
19926
  /* AuthErrorCode.INTERNAL_ERROR */
19927
- ), Re(Me, p.name), Re(ce, p.name), Re(ke, p.name), Re(pt, p.name), Re(qt, p.name), Re(Ct, p.name);
19927
+ ), Re(Me, p.name), Re(fe, p.name), Re(ke, p.name), Re(pt, p.name), Re(qt, p.name), Re(Ct, p.name);
19928
19928
  const bt = new st({
19929
19929
  uid: $t,
19930
19930
  auth: p,
19931
19931
  email: me,
19932
19932
  emailVerified: _t,
19933
- displayName: fe,
19933
+ displayName: ce,
19934
19934
  isAnonymous: gt,
19935
- photoURL: ce,
19935
+ photoURL: fe,
19936
19936
  phoneNumber: Me,
19937
19937
  tenantId: ke,
19938
19938
  stsTokenManager: Wt,
@@ -20082,8 +20082,8 @@ class ft {
20082
20082
  try {
20083
20083
  const oe = await K._get(P);
20084
20084
  if (oe) {
20085
- const fe = st._fromJSON(p, oe);
20086
- K !== _ && (L = fe), _ = K;
20085
+ const ce = st._fromJSON(p, oe);
20086
+ K !== _ && (L = ce), _ = K;
20087
20087
  break;
20088
20088
  }
20089
20089
  } catch {
@@ -21878,8 +21878,8 @@ class mi {
21878
21878
  }, j);
21879
21879
  P = {
21880
21880
  messageChannel: x,
21881
- onMessage(fe) {
21882
- const me = fe;
21881
+ onMessage(ce) {
21882
+ const me = ce;
21883
21883
  if (me.data.eventId === K)
21884
21884
  switch (me.data.status) {
21885
21885
  case "ack":
@@ -22866,21 +22866,21 @@ function ls(k, p, b, j = is, x = ss) {
22866
22866
  left: P
22867
22867
  }), K = we().toLowerCase();
22868
22868
  b && (L = cn(K) ? os : b), ln(K) && (p = p || us, H.scrollbars = "yes");
22869
- const oe = Object.entries(H).reduce((me, [Me, ce]) => `${me}${Me}=${ce},`, "");
22869
+ const oe = Object.entries(H).reduce((me, [Me, fe]) => `${me}${Me}=${fe},`, "");
22870
22870
  if (Ga(K) && L !== "_self")
22871
22871
  return cs(p || "", L), new zr(null);
22872
- const fe = window.open(p || "", L, oe);
22872
+ const ce = window.open(p || "", L, oe);
22873
22873
  ie(
22874
- fe,
22874
+ ce,
22875
22875
  k,
22876
22876
  "popup-blocked"
22877
22877
  /* AuthErrorCode.POPUP_BLOCKED */
22878
22878
  );
22879
22879
  try {
22880
- fe.focus();
22880
+ ce.focus();
22881
22881
  } catch {
22882
22882
  }
22883
- return new zr(fe);
22883
+ return new zr(ce);
22884
22884
  }
22885
22885
  function cs(k, p) {
22886
22886
  const b = document.createElement("a");
@@ -22927,11 +22927,11 @@ async function Gr(k, p, b, j, x, _) {
22927
22927
  };
22928
22928
  if (p instanceof kn) {
22929
22929
  p.setDefaultLanguage(k.languageCode), P.providerId = p.providerId || "", ta(p.getCustomParameters()) || (P.customParameters = JSON.stringify(p.getCustomParameters()));
22930
- for (const [oe, fe] of Object.entries(_ || {}))
22931
- P[oe] = fe;
22930
+ for (const [oe, ce] of Object.entries(_ || {}))
22931
+ P[oe] = ce;
22932
22932
  }
22933
22933
  if (p instanceof It) {
22934
- const oe = p.getScopes().filter((fe) => fe !== "");
22934
+ const oe = p.getScopes().filter((ce) => ce !== "");
22935
22935
  oe.length > 0 && (P.scopes = oe.join(","));
22936
22936
  }
22937
22937
  k.tenantId && (P.tid = k.tenantId);
@@ -14,7 +14,7 @@ import { c as qr } from "./object-27ce045b.js";
14
14
  import { b as B_ } from "./business-7684bcec.js";
15
15
  import { t as so, w as oo, x as z_, y as K_, z as G_, A as q_, B as gi, u as dr, D as W_, G as H_ } from "./map-695afd6f.js";
16
16
  import { _ as dd } from "./_plugin-vue_export-helper-dad06003.js";
17
- import { u as Y_ } from "./app-6d1a848d.js";
17
+ import { u as Y_ } from "./app-bfaa4ee9.js";
18
18
  import { r as Rn } from "./rules-2bee6632.js";
19
19
  import "pinia";
20
20
  import "@feedmepos/mf-mdm";
@@ -2,7 +2,7 @@ import { defineComponent as Mr, h as xl, getCurrentInstance as Mi, inject as Bm,
2
2
  import "@vue/devtools-api";
3
3
  import { useI18n as Fl, useCoreStore as Ml } from "@feedmepos/mf-common";
4
4
  import { useDialog as Ul, useSnackbar as kl, components as Qm, useBreakpoints as zm, FmButtonVariant as jm } from "@feedmepos/ui-library";
5
- import { _ as eE } from "./app-6d1a848d.js";
5
+ import { _ as eE } from "./app-bfaa4ee9.js";
6
6
  import { _ as nE, c as rl } from "./createForm-d3b97d2e.js";
7
7
  import { u as Wl } from "./index-3f4c8817.js";
8
8
  import { _ as il, c as tE } from "./FormSection.vue_vue_type_script_setup_true_lang-6aab82f2.js";
@@ -1,10 +1,10 @@
1
1
  import { FmApp as y, routers as f, i18nMessages as s } from "@feedmepos/mf-mdm";
2
- import { ref as v, watch as u, nextTick as m, onMounted as R, onBeforeUnmount as w, defineComponent as _, computed as L, openBlock as h, createElementBlock as U, normalizeStyle as q, renderSlot as O, resolveComponent as S, createBlock as T, withCtx as A, createElementVNode as C, createVNode as x, defineAsyncComponent as k } from "vue";
2
+ import { ref as v, watch as u, nextTick as m, onMounted as R, onBeforeUnmount as w, defineComponent as _, computed as L, openBlock as h, createElementBlock as U, normalizeStyle as q, renderSlot as O, resolveComponent as S, createBlock as T, withCtx as A, createElementVNode as C, createVNode as k, defineAsyncComponent as x } from "vue";
3
3
  import { useBreakpoints as I } from "@feedmepos/ui-library";
4
4
  import "vue-router";
5
5
  import { withPermission as p, Permission as g } from "@feedmepos/mf-common";
6
- import { FmApp as N, routers as $ } from "@feedmepos/mf-e-invoice";
7
- import { FmApp as P, routers as F } from "@feedmepos/mf-order-setting";
6
+ import { FmApp as N, routers as P } from "@feedmepos/mf-e-invoice";
7
+ import { FmApp as $, routers as F } from "@feedmepos/mf-order-setting";
8
8
  function D(e, o) {
9
9
  const n = v({ top: 0, bottom: 0, left: 0, right: 0 });
10
10
  function a() {
@@ -54,14 +54,14 @@ const B = /* @__PURE__ */ _({
54
54
  return h(), T(B, null, {
55
55
  default: A(() => [
56
56
  C("div", M, [
57
- x(a, { size: "xl" })
57
+ k(a, { size: "xl" })
58
58
  ])
59
59
  ]),
60
60
  _: 1
61
61
  });
62
62
  };
63
63
  }
64
- }), t = (e) => k({
64
+ }), t = (e) => x({
65
65
  loader: e,
66
66
  loadingComponent: E
67
67
  }), j = {
@@ -1678,7 +1678,7 @@ const B = /* @__PURE__ */ _({
1678
1678
  {
1679
1679
  path: "/business",
1680
1680
  name: "$settings-my-business",
1681
- component: t(() => import("./Business-a8ef60aa.js")),
1681
+ component: t(() => import("./Business-9ac30155.js")),
1682
1682
  meta: {
1683
1683
  i18nKey: "settings.business.title"
1684
1684
  }
@@ -1730,7 +1730,7 @@ const B = /* @__PURE__ */ _({
1730
1730
  path: "/e-invoice",
1731
1731
  name: "$settings-e-invoice",
1732
1732
  component: N,
1733
- children: $.map((e) => ({ ...e, path: `/e-invoice${e.path}` })),
1733
+ children: P.map((e) => ({ ...e, path: `/e-invoice${e.path}` })),
1734
1734
  meta: {
1735
1735
  i18nKey: "settings.eInvoice.title"
1736
1736
  }
@@ -1738,7 +1738,7 @@ const B = /* @__PURE__ */ _({
1738
1738
  {
1739
1739
  path: "/tagging",
1740
1740
  name: "$settings-tagging",
1741
- component: p(t(() => import("./Tagging-c200a99f.js"))),
1741
+ component: p(t(() => import("./Tagging-e233bc93.js"))),
1742
1742
  meta: {
1743
1743
  i18nKey: "settings.tagging.title",
1744
1744
  validationManifest: {
@@ -1759,8 +1759,8 @@ const B = /* @__PURE__ */ _({
1759
1759
  {
1760
1760
  path: "/devices/order-setting",
1761
1761
  name: "$pos-order-setting",
1762
- component: p(P),
1763
- children: F.map((e) => ({ ...e, path: `/order-setting${e.path}` })),
1762
+ component: p($),
1763
+ children: F.filter((e) => e.path === "/kiosk"),
1764
1764
  meta: {
1765
1765
  hideNavigation: !0,
1766
1766
  validationManifest: {
@@ -1781,7 +1781,7 @@ r.push({
1781
1781
  name: ((b = r[0].children) == null ? void 0 : b[0].name) || r[0].name
1782
1782
  }
1783
1783
  });
1784
- const ie = t(() => import("./App-ff996e59.js")), ne = {
1784
+ const ie = t(() => import("./App-3360c969.js")), ne = {
1785
1785
  "en-US": {
1786
1786
  ...K,
1787
1787
  ...s["en-US"]
package/dist/app.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "@feedmepos/mf-mdm";
2
- import { F as n, R as F, i as R, r as f } from "./app-6d1a848d.js";
2
+ import { F as n, R as F, i as R, r as f } from "./app-bfaa4ee9.js";
3
3
  import "vue";
4
4
  import "@feedmepos/ui-library";
5
5
  import "vue-router";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-settings",
3
- "version": "0.0.67-alpha.1",
3
+ "version": "0.0.68-beta.1",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -44,7 +44,7 @@
44
44
  "vue-pdf-embed": "2.1.0",
45
45
  "vue-router": "^4.2.5",
46
46
  "vuedraggable": "^4.1.0",
47
- "@feedmepos/mf-common": "^1.27.2"
47
+ "@feedmepos/mf-common": "^1.27.3"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@rushstack/eslint-patch": "^1.3.3",