@feedmepos/mf-settings 0.0.64-beta.1 → 0.0.64-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-064cf2cd.js";
2
+ import { u as AA, F as oA } from "./index-f1179ebc.js";
3
3
  import "./index-79b36905.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-0b74f773.js";
7
+ import { b as v } from "./business-b5512a2c.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 S1, u as T1 } from "./dayjs.min-1dcf0c5a.js";
9
9
  import { components as ys, useSnackbar as yc, useDialogChild as O1, useDialog as zb, useBreakpoints as A1 } from "@feedmepos/ui-library";
10
10
  import { _ as I1 } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-8f929a2d.js";
11
11
  import { _ as R1, c as xg } from "./createForm-d3b97d2e.js";
12
- import { g as Ir, c as Si, b as i$, u as bm } from "./index-064cf2cd.js";
12
+ import { g as Ir, c as Si, b as i$, u as bm } from "./index-f1179ebc.js";
13
13
  import { c as Eb } from "./object-27ce045b.js";
14
14
  import "pinia";
15
15
  var o$ = {}, Un = {}, vc = {};
@@ -4,7 +4,7 @@ import { useSnackbar as Sn, components as Tn, useBreakpoints as Cn, useDialog as
4
4
  import { _ as In } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-8f929a2d.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-064cf2cd.js";
7
+ import { u as An, r as Pn, s as Nn } from "./index-f1179ebc.js";
8
8
  import { r as kn } from "./rules-2bee6632.js";
9
9
  import "./index-79b36905.js";
10
10
  import "pinia";
@@ -2,14 +2,14 @@ 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-51a50e28.js";
5
+ import { _ as eE } from "./app-9c6363b3.js";
6
6
  import { _ as nE, c as rl } from "./createForm-d3b97d2e.js";
7
- import { u as Wl } from "./index-064cf2cd.js";
7
+ import { u as Wl } from "./index-f1179ebc.js";
8
8
  import { _ as il, c as tE } from "./FormSection.vue_vue_type_script_setup_true_lang-6aab82f2.js";
9
9
  import { c as Cr } from "./index-79b36905.js";
10
10
  import { c as wi } from "./object-27ce045b.js";
11
11
  import { defineStore as rE } from "pinia";
12
- import { b as rs } from "./business-0b74f773.js";
12
+ import { b as rs } from "./business-b5512a2c.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
+ };
@@ -1673,7 +1673,7 @@ const N = /* @__PURE__ */ p({
1673
1673
  {
1674
1674
  path: "/business",
1675
1675
  name: "$settings-my-business",
1676
- component: t(() => import("./Business-c9dd77d6.js")),
1676
+ component: t(() => import("./Business-eafcd130.js")),
1677
1677
  meta: {
1678
1678
  i18nKey: "settings.business.title"
1679
1679
  }
@@ -1681,7 +1681,7 @@ const N = /* @__PURE__ */ p({
1681
1681
  {
1682
1682
  path: "/create-business",
1683
1683
  name: "$settings-create-business",
1684
- component: t(() => import("./CreateBusiness-84a4e891.js")),
1684
+ component: t(() => import("./CreateBusiness-8145d5b6.js")),
1685
1685
  meta: {
1686
1686
  hideNavigation: !0
1687
1687
  }
@@ -1689,7 +1689,7 @@ const N = /* @__PURE__ */ p({
1689
1689
  {
1690
1690
  path: "/foodcourt",
1691
1691
  name: "$settings-food-court",
1692
- component: t(() => import("./FoodCourt-1e83edbf.js")),
1692
+ component: t(() => import("./FoodCourt-859c83b2.js")),
1693
1693
  meta: {
1694
1694
  i18nKey: "settings.food_court.list.title"
1695
1695
  }
@@ -1706,7 +1706,7 @@ const N = /* @__PURE__ */ p({
1706
1706
  {
1707
1707
  path: "/template-builder",
1708
1708
  name: "$settings-template-builder",
1709
- component: t(() => import("./TemplateBuilder-54a34178.js")),
1709
+ component: t(() => import("./TemplateBuilder-3e34e9e8.js")),
1710
1710
  meta: {
1711
1711
  i18nKey: "settings.templateBuilder.title"
1712
1712
  }
@@ -1731,7 +1731,7 @@ const N = /* @__PURE__ */ p({
1731
1731
  {
1732
1732
  path: "/tagging",
1733
1733
  name: "$settings-tagging",
1734
- component: A(t(() => import("./Tagging-6d46c6db.js"))),
1734
+ component: A(t(() => import("./Tagging-e96d855e.js"))),
1735
1735
  meta: {
1736
1736
  i18nKey: "settings.tagging.title",
1737
1737
  validationManifest: {
@@ -1743,13 +1743,13 @@ const N = /* @__PURE__ */ p({
1743
1743
  {
1744
1744
  path: "/reason-template",
1745
1745
  name: "$settings-reason-template",
1746
- component: t(() => import("./ReasonTemplate-9eab651a.js")),
1746
+ component: t(() => import("./ReasonTemplate-06a053d7.js")),
1747
1747
  meta: {
1748
1748
  i18nKey: "settings.reasonTemplate.title",
1749
1749
  hideNavigation: !0
1750
1750
  }
1751
1751
  }
1752
- ], X = t(() => import("./App-e0bba2b7.js")), Z = {
1752
+ ], X = t(() => import("./App-dadb8bf9.js")), Z = {
1753
1753
  "en-US": {
1754
1754
  ...F,
1755
1755
  ...s["en-US"]
@@ -1766,7 +1766,7 @@ const N = /* @__PURE__ */ p({
1766
1766
  ...z,
1767
1767
  ...s["zh-Hant"] || {}
1768
1768
  }
1769
- }, ee = t(() => import("./ReasonTemplate-9eab651a.js"));
1769
+ }, ee = t(() => import("./ReasonTemplate-06a053d7.js"));
1770
1770
  export {
1771
1771
  X as F,
1772
1772
  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-51a50e28.js";
2
+ import { F as a, R as n, i as F, r as R } from "./app-9c6363b3.js";
3
3
  import "vue";
4
4
  import "@feedmepos/ui-library";
5
5
  import "vue-router";
@@ -1,4 +1,4 @@
1
- import { g as e, b as a } from "./index-064cf2cd.js";
1
+ import { g as e, b as a } from "./index-f1179ebc.js";
2
2
  const i = {
3
3
  async readBusiness(s) {
4
4
  return e(await a().get(`/businesses/${s}`));
@@ -8395,8 +8395,8 @@ function Ya(e) {
8395
8395
  function Su(e = void 0) {
8396
8396
  const { namespace: n, currentCountry: t } = wt(), i = e ?? t.value, o = n.value === "dev", r = (i == null ? void 0 : i.toLowerCase()) !== "my" ? `.${i == null ? void 0 : i.toLowerCase()}` : "", d = `https://portal-v2${`${o ? "-dev" : ""}${r}.feedmeapi.com`}`;
8397
8397
  return {
8398
- portalBackendUrl: { remy: "https://remy-dev.feedmeapi.com/v1", customerApp: "https://feedmedev.cc", googleMap: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", templateBuilderUrl: "https://print-template-builder.feedme.dev/", gtm: { id: "GTM-P7Z9FMS6", serverUrl: "https://server-side-tagging-rsrq3ogsuq-as.a.run.app", env: "development", serverMeasurementId: "G-759WBZPF06", debug: !0 }, firebase: { apiKey: "AIzaSyAj8JdCHtP0Vc5vZobCfgoLzWxPIn0WUG4", authDomain: "feedme-dev-4c3ef.firebaseapp.com", databaseURL: "https://feedme-dev-4c3ef.firebaseio.com", projectId: "feedme-dev-4c3ef", storageBucket: "feedme-dev-4c3ef.appspot.com", messagingSenderId: "458797803788", appId: "1:458797803788:web:37f2af2926a84288f0c129", measurementId: "G-J2QG09D2Q7" }, r2: null }.mainBackend ?? d,
8399
- menuBackendUrl: { remy: "https://remy-dev.feedmeapi.com/v1", customerApp: "https://feedmedev.cc", googleMap: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", templateBuilderUrl: "https://print-template-builder.feedme.dev/", gtm: { id: "GTM-P7Z9FMS6", serverUrl: "https://server-side-tagging-rsrq3ogsuq-as.a.run.app", env: "development", serverMeasurementId: "G-759WBZPF06", debug: !0 }, firebase: { apiKey: "AIzaSyAj8JdCHtP0Vc5vZobCfgoLzWxPIn0WUG4", authDomain: "feedme-dev-4c3ef.firebaseapp.com", databaseURL: "https://feedme-dev-4c3ef.firebaseio.com", projectId: "feedme-dev-4c3ef", storageBucket: "feedme-dev-4c3ef.appspot.com", messagingSenderId: "458797803788", appId: "1:458797803788:web:37f2af2926a84288f0c129", measurementId: "G-J2QG09D2Q7" }, r2: null }.menuBackend ?? d
8398
+ portalBackendUrl: { remy: "https://remy.feedmeapi.com/v1", customerApp: "https://feedme.cc", googleMap: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", templateBuilderUrl: "https://print-template-builder.feedme.cc/", gtm: { id: "GTM-WR8XHXLH", serverUrl: "https://server-side-tagging-zzez732dna-as.a.run.app", env: "production", serverMeasurementId: "G-2MP52PC24R", debug: !1 }, firebase: { apiKey: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", authDomain: "feedme-253402.firebaseapp.com", databaseURL: "https://feedme-253402.firebaseio.com", projectId: "feedme-253402", storageBucket: "image.feedme.cc", messagingSenderId: "128512026847", appId: "1:128512026847:web:7c5c8ab7e8b90502dc616a", measurementId: "G-LTKS7N2HQS" }, r2: { endPoint: "https://c0e0719247f81dc2f3d30844a8e0235c.r2.cloudflarestorage.com", bucketName: "image-feedme-cc", accessKeyId: "7c4faa649a257ce02edcf99d924b1799", secretAccessKey: "2b7ed3d5b6e23fdceb355f89281530875fa9673b09653be560be9a7694422a97" } }.mainBackend ?? d,
8399
+ menuBackendUrl: { remy: "https://remy.feedmeapi.com/v1", customerApp: "https://feedme.cc", googleMap: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", templateBuilderUrl: "https://print-template-builder.feedme.cc/", gtm: { id: "GTM-WR8XHXLH", serverUrl: "https://server-side-tagging-zzez732dna-as.a.run.app", env: "production", serverMeasurementId: "G-2MP52PC24R", debug: !1 }, firebase: { apiKey: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", authDomain: "feedme-253402.firebaseapp.com", databaseURL: "https://feedme-253402.firebaseio.com", projectId: "feedme-253402", storageBucket: "image.feedme.cc", messagingSenderId: "128512026847", appId: "1:128512026847:web:7c5c8ab7e8b90502dc616a", measurementId: "G-LTKS7N2HQS" }, r2: { endPoint: "https://c0e0719247f81dc2f3d30844a8e0235c.r2.cloudflarestorage.com", bucketName: "image-feedme-cc", accessKeyId: "7c4faa649a257ce02edcf99d924b1799", secretAccessKey: "2b7ed3d5b6e23fdceb355f89281530875fa9673b09653be560be9a7694422a97" } }.menuBackend ?? d
8400
8400
  };
8401
8401
  }
8402
8402
  function Xu(e) {