@feedmepos/mf-settings 0.0.59-beta.1 → 0.0.60-prod

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
  import { unref as a, openBlock as Q, createBlock as N, createCommentVNode as m, withScopeId as Z, defineComponent as L, createElementBlock as S, ref as c, watch as W, computed as w, watchEffect as E, onBeforeUnmount as G, resolveComponent as B, createVNode as b, withCtx as Y, createElementVNode as e, toDisplayString as l, Fragment as M, renderList as _, normalizeClass as $ } from "vue";
2
- import { u as AA, F as oA } from "./index-d43d45c9.js";
2
+ import { u as AA, F as oA } from "./index-5db6bbb6.js";
3
3
  import "./index-cc4114ab.js";
4
4
  import { useCoreStore as nA, useI18n as gA, useCountry as fA } from "@feedmepos/mf-common";
5
5
  import { useSnackbar as aA } from "@feedmepos/ui-library";
6
6
  import { r as eA } from "./rules-2bee6632.js";
7
- import { b as v } from "./business-a1966413.js";
7
+ import { b as v } from "./business-74c64909.js";
8
8
  import { _ as pA } from "./_plugin-vue_export-helper-dad06003.js";
9
9
  import "pinia";
10
10
  function I(A) {
@@ -9,7 +9,7 @@ import { d as Xg, u as Zg } from "./dayjs.min-2edeb0fb.js";
9
9
  import { components as so, useSnackbar as gl, useDialogChild as xg, useDialog as Kf, useBreakpoints as ep } from "@feedmepos/ui-library";
10
10
  import { a as hc, _ as tp } from "./RestaurantSelector.vue_vue_type_script_setup_true_lang-08a69f88.js";
11
11
  import { _ as np, c as C$ } from "./createForm-d3b97d2e.js";
12
- import { g as Gn, c as la, b as Fd, u as Tc } from "./index-d43d45c9.js";
12
+ import { g as Gn, c as la, b as Fd, u as Tc } from "./index-5db6bbb6.js";
13
13
  import { c as Hf } from "./object-27ce045b.js";
14
14
  import "pinia";
15
15
  var wd = {}, fn = {}, pl = {};
@@ -1,4 +1,4 @@
1
- import { defineComponent as l, computed as u, resolveComponent as i, openBlock as t, createElementBlock as c, createVNode as a } from "vue";
1
+ import { defineComponent as l, computed as u, resolveComponent as i, openBlock as t, createElementBlock as n, createVNode as a } from "vue";
2
2
  import { useCoreStore as m } from "@feedmepos/mf-common";
3
3
  const f = {
4
4
  key: 0,
@@ -6,17 +6,17 @@ const f = {
6
6
  }, p = ["src"], h = /* @__PURE__ */ l({
7
7
  __name: "LicenseOrder",
8
8
  setup(_) {
9
- const e = m(), r = u(() => {
10
- var s;
11
- return e.currentBusiness.value ? `https://license.feedme${e.namespace.value === "dev" ? "dev" : ""}.cc/portal-license?businessId=${(s = e.currentBusiness.value) == null ? void 0 : s.id}` : "";
9
+ const e = m(), s = u(() => {
10
+ var r;
11
+ return e.currentBusiness.value ? `https://license.feedme${e.namespace.value === "dev" ? "dev" : ""}.cc/portal-license?businessId=${(r = e.currentBusiness.value) == null ? void 0 : r.id}&country=${e.currentCountry.value}` : "";
12
12
  });
13
- return (n, s) => {
13
+ return (c, r) => {
14
14
  const o = i("FmCircularProgress");
15
- return r.value ? (t(), c("iframe", {
15
+ return s.value ? (t(), n("iframe", {
16
16
  key: 1,
17
17
  class: "w-full h-full",
18
- src: r.value
19
- }, null, 8, p)) : (t(), c("div", f, [
18
+ src: s.value
19
+ }, null, 8, p)) : (t(), n("div", f, [
20
20
  a(o, { size: "lg" })
21
21
  ]));
22
22
  };
@@ -4,7 +4,7 @@ import { useSnackbar as Dn, components as Sn, useBreakpoints as Tn, useDialog as
4
4
  import { _ as xn, a as In } from "./RestaurantSelector.vue_vue_type_script_setup_true_lang-08a69f88.js";
5
5
  import { _ as On, c as xt } from "./createForm-d3b97d2e.js";
6
6
  import { _ as It, c as Fn } from "./FormSection.vue_vue_type_script_setup_true_lang-6aab82f2.js";
7
- import { u as An, r as Pn, s as Nn } from "./index-d43d45c9.js";
7
+ import { u as An, r as Pn, s as Nn } from "./index-5db6bbb6.js";
8
8
  import { r as kn } from "./rules-2bee6632.js";
9
9
  import "./index-cc4114ab.js";
10
10
  import "pinia";
@@ -2,14 +2,14 @@ import { defineComponent as Fr, h as bo, getCurrentInstance as Pi, inject as Mm,
2
2
  import "@vue/devtools-api";
3
3
  import { useI18n as wo, useCoreStore as Do } from "@feedmepos/mf-common";
4
4
  import { useDialog as Po, useSnackbar as xo, components as Ym, useBreakpoints as Xm, FmButtonVariant as qm } from "@feedmepos/ui-library";
5
- import { _ as Jm } from "./app-14f51ab7.js";
5
+ import { _ as Jm } from "./app-b53618fd.js";
6
6
  import { _ as Zm, c as Qm } from "./createForm-d3b97d2e.js";
7
- import { u as Fo } from "./index-d43d45c9.js";
7
+ import { u as Fo } from "./index-5db6bbb6.js";
8
8
  import { _ as zm, c as jm } from "./FormSection.vue_vue_type_script_setup_true_lang-6aab82f2.js";
9
9
  import { c as br } from "./index-cc4114ab.js";
10
10
  import { c as Ci } from "./object-27ce045b.js";
11
11
  import { defineStore as eE } from "pinia";
12
- import { b as es } from "./business-a1966413.js";
12
+ import { b as es } from "./business-74c64909.js";
13
13
  import "@feedmepos/mf-mdm";
14
14
  import "vue-router";
15
15
  import "@feedmepos/mf-e-invoice";
@@ -0,0 +1,27 @@
1
+ import { defineComponent as o, computed as n, resolveComponent as d, openBlock as s, createElementBlock as c, createVNode as m } from "vue";
2
+ import { useCoreStore as u, FeedMeAuth as i } from "@feedmepos/mf-common";
3
+ const l = {
4
+ key: 0,
5
+ class: "w-full h-full flex items-center justify-center"
6
+ }, p = ["src"], h = /* @__PURE__ */ o({
7
+ __name: "TemplateBuilder",
8
+ setup(f) {
9
+ const e = u(), t = n(() => {
10
+ var r;
11
+ return e.currentBusiness.value ? `https://print-template-builder.feedme.cc//#/receipt-info?businessId=${(r = e.currentBusiness.value) == null ? void 0 : r.id}&country=${e.currentCountry.value}&token=${i.token}` : "";
12
+ });
13
+ return (r, b) => {
14
+ const a = d("FmCircularProgress");
15
+ return t.value ? (s(), c("iframe", {
16
+ key: 1,
17
+ class: "w-full h-full",
18
+ src: t.value
19
+ }, null, 8, p)) : (s(), c("div", l, [
20
+ m(a, { size: "lg" })
21
+ ]));
22
+ };
23
+ }
24
+ });
25
+ export {
26
+ h as default
27
+ };
@@ -1593,7 +1593,7 @@ const I = /* @__PURE__ */ p({
1593
1593
  {
1594
1594
  path: "/business",
1595
1595
  name: "$settings-my-business",
1596
- component: t(() => import("./Business-24c55416.js")),
1596
+ component: t(() => import("./Business-b47a567c.js")),
1597
1597
  meta: {
1598
1598
  i18nKey: "settings.business.title"
1599
1599
  }
@@ -1601,7 +1601,7 @@ const I = /* @__PURE__ */ p({
1601
1601
  {
1602
1602
  path: "/create-business",
1603
1603
  name: "$settings-create-business",
1604
- component: t(() => import("./CreateBusiness-fbcba71f.js")),
1604
+ component: t(() => import("./CreateBusiness-a76b0aad.js")),
1605
1605
  meta: {
1606
1606
  hideNavigation: !0
1607
1607
  }
@@ -1609,7 +1609,7 @@ const I = /* @__PURE__ */ p({
1609
1609
  {
1610
1610
  path: "/foodcourt",
1611
1611
  name: "$settings-food-court",
1612
- component: t(() => import("./FoodCourt-677797ed.js")),
1612
+ component: t(() => import("./FoodCourt-1aa87d54.js")),
1613
1613
  meta: {
1614
1614
  i18nKey: "settings.food_court.list.title"
1615
1615
  }
@@ -1626,7 +1626,7 @@ const I = /* @__PURE__ */ p({
1626
1626
  {
1627
1627
  path: "/template-builder",
1628
1628
  name: "$settings-template-builder",
1629
- component: t(() => import("./TemplateBuilder-54a34178.js")),
1629
+ component: t(() => import("./TemplateBuilder-3e34e9e8.js")),
1630
1630
  meta: {
1631
1631
  i18nKey: "settings.templateBuilder.title"
1632
1632
  }
@@ -1634,7 +1634,7 @@ const I = /* @__PURE__ */ p({
1634
1634
  {
1635
1635
  path: "/license-order",
1636
1636
  name: "$settings-license-order",
1637
- component: t(() => import("./LicenseOrder-86aa7996.js")),
1637
+ component: t(() => import("./LicenseOrder-bd3d3012.js")),
1638
1638
  meta: {
1639
1639
  i18nKey: "settings.licenseOrder.title"
1640
1640
  }
@@ -1651,7 +1651,7 @@ const I = /* @__PURE__ */ p({
1651
1651
  {
1652
1652
  path: "/tagging",
1653
1653
  name: "$settings-tagging",
1654
- component: k(t(() => import("./Tagging-78440d2f.js"))),
1654
+ component: k(t(() => import("./Tagging-081df4ce.js"))),
1655
1655
  meta: {
1656
1656
  i18nKey: "settings.tagging.title",
1657
1657
  validationManifest: {
@@ -1663,13 +1663,13 @@ const I = /* @__PURE__ */ p({
1663
1663
  {
1664
1664
  path: "/reason-template",
1665
1665
  name: "$settings-reason-template",
1666
- component: t(() => import("./ReasonTemplate-0e99fb52.js")),
1666
+ component: t(() => import("./ReasonTemplate-412d40c7.js")),
1667
1667
  meta: {
1668
1668
  i18nKey: "settings.reasonTemplate.title",
1669
1669
  hideNavigation: !0
1670
1670
  }
1671
1671
  }
1672
- ], X = t(() => import("./App-adfff27f.js")), Z = {
1672
+ ], X = t(() => import("./App-6764d848.js")), Z = {
1673
1673
  "en-US": {
1674
1674
  ...B,
1675
1675
  ...n["en-US"]
@@ -1686,7 +1686,7 @@ const I = /* @__PURE__ */ p({
1686
1686
  ...K,
1687
1687
  ...n["zh-Hant"] || {}
1688
1688
  }
1689
- }, ee = t(() => import("./ReasonTemplate-0e99fb52.js"));
1689
+ }, ee = t(() => import("./ReasonTemplate-412d40c7.js"));
1690
1690
  export {
1691
1691
  X as F,
1692
1692
  ee as R,
package/dist/app.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "@feedmepos/mf-mdm";
2
- import { F as a, R as n, i as F, r as R } from "./app-14f51ab7.js";
2
+ import { F as a, R as n, i as F, r as R } from "./app-b53618fd.js";
3
3
  import "vue";
4
4
  import "@feedmepos/ui-library";
5
5
  import "vue-router";
@@ -1,5 +1,5 @@
1
1
  import { type FdoCustomAttribute } from "@feedmepos/core/entity";
2
- export declare const useAttributeSettingsStore: import("pinia").StoreDefinition<"mf-settings-attribute-settings", import("pinia")._UnwrapAll<Pick<{
2
+ export declare const useAttributeSettingsStore: import("pinia").StoreDefinition<"mf-settings-attribute-settings", Pick<{
3
3
  customAttributes: import("vue").Ref<{
4
4
  type: "string" | "number" | "boolean" | "date";
5
5
  key: string;
@@ -26,7 +26,7 @@ export declare const useAttributeSettingsStore: import("pinia").StoreDefinition<
26
26
  readAttributeSettings: () => Promise<void>;
27
27
  addOrUpdateAttribute: (attribute: FdoCustomAttribute) => Promise<void>;
28
28
  deleteAttribute: (attribute: FdoCustomAttribute) => Promise<void>;
29
- }, "customAttributes">>, Pick<{
29
+ }, "customAttributes">, Pick<{
30
30
  customAttributes: import("vue").Ref<{
31
31
  type: "string" | "number" | "boolean" | "date";
32
32
  key: string;