@feedmepos/mf-settings 0.0.42-prod → 0.0.43-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.
@@ -2,12 +2,12 @@ var Sr = Object.defineProperty;
2
2
  var Tr = (t, e, r) => e in t ? Sr(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
3
3
  var Ke = (t, e, r) => (Tr(t, typeof e != "symbol" ? e + "" : e, r), r);
4
4
  import { ref as re, computed as X, defineComponent as W, resolveComponent as K, openBlock as k, createBlock as Z, Teleport as Pr, createVNode as P, Transition as Lr, withCtx as B, normalizeClass as Y, normalizeStyle as Ne, withKeys as Nr, createElementVNode as E, toDisplayString as j, renderSlot as ne, createElementBlock as D, Fragment as se, renderList as me, createCommentVNode as le, createTextVNode as Ce, h as ke, unref as w, watch as rt, onMounted as nr, onUnmounted as Cr, toRaw as $t, reactive as lt, nextTick as sr, onBeforeUnmount as kr, normalizeProps as xr, guardReactiveProps as Vr, withModifiers as xe, getCurrentInstance as Fr, isRef as Et } from "vue";
5
- import { c as jr, g as ar, a as Ve, b as ve, d as Mr, e as Ur, f as ut, h as ze, r as He, i as Dr, u as Br, j as Gr, k as Kr } from "./app-1a3fbd9b.js";
5
+ import { c as jr, g as ar, a as Ve, b as ve, d as Mr, e as Ur, f as ut, h as ze, r as He, i as Dr, u as Br, j as Gr, k as Kr } from "./app-adf18ec3.js";
6
6
  import { useCoreStore as fe, useI18n as pe } from "@feedmepos/mf-common";
7
7
  import { useDialog as or, useDialogChild as zr, useSnackbar as ct, useBreakpoints as ir, components as lr } from "@feedmepos/ui-library";
8
- import { c as ge, D as dt, u as ur, _ as Hr, a as Xr, b as qr, d as Xe } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-3205a96f.js";
9
- import { _ as cr, r as ce, b as Yr } from "./business-dff80715.js";
10
- import { b as qe, a as Ye, g as dr, u as fr } from "./loading-0b1b1c17.js";
8
+ import { c as ge, D as dt, u as ur, _ as Hr, a as Xr, b as qr, d as Xe } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-b341d5f0.js";
9
+ import { _ as cr, r as ce, b as Yr } from "./business-4db20b7e.js";
10
+ import { b as qe, a as Ye, g as dr, u as fr } from "./loading-4e6c9c98.js";
11
11
  import "vue-router";
12
12
  import "@feedmepos/mf-e-invoice";
13
13
  import "@feedmepos/mf-mdm";
@@ -1,9 +1,9 @@
1
- import { unref as n, defineComponent as M, openBlock as v, createElementBlock as y, ref as f, watch as j, computed as E, onMounted as G, onBeforeUnmount as P, resolveComponent as h, createVNode as g, withCtx as W, createElementVNode as s, toDisplayString as b, Fragment as z, renderList as R, normalizeClass as Z, createBlock as q, createCommentVNode as Q } from "vue";
1
+ import { unref as n, defineComponent as A, openBlock as v, createElementBlock as y, ref as f, watch as $, computed as j, watchEffect as G, onBeforeUnmount as P, resolveComponent as h, createVNode as g, withCtx as W, createElementVNode as s, toDisplayString as b, Fragment as z, renderList as R, normalizeClass as Z, createBlock as q, createCommentVNode as Q } from "vue";
2
2
  import { useCoreStore as Y, useI18n as J, CountryOptions as K } from "@feedmepos/mf-common";
3
- import { _ as X, b as w, r as ee } from "./business-dff80715.js";
4
- import "./app-1a3fbd9b.js";
3
+ import { _ as X, b as w, r as ee } from "./business-4db20b7e.js";
4
+ import "./app-adf18ec3.js";
5
5
  import { useSnackbar as te } from "@feedmepos/ui-library";
6
- import { u as se, F as ne } from "./loading-0b1b1c17.js";
6
+ import { u as se, F as ne } from "./loading-4e6c9c98.js";
7
7
  import { useRouter as oe } from "vue-router";
8
8
  import "@feedmepos/mf-e-invoice";
9
9
  import "@feedmepos/mf-mdm";
@@ -59,7 +59,7 @@ const re = `<svg width="388" height="388" viewBox="0 0 388 388" fill="none" xmln
59
59
  </linearGradient>
60
60
  </defs>
61
61
  </svg>
62
- `, ce = ["innerHTML"], ue = /* @__PURE__ */ M({
62
+ `, ce = ["innerHTML"], ue = /* @__PURE__ */ A({
63
63
  __name: "FeedmeLogo",
64
64
  setup(r) {
65
65
  return (e, o) => (v(), y("div", {
@@ -69,13 +69,13 @@ const re = `<svg width="388" height="388" viewBox="0 0 388 388" fill="none" xmln
69
69
  }, null, 8, ce));
70
70
  }
71
71
  });
72
- const de = /* @__PURE__ */ X(ue, [["__scopeId", "data-v-c0191534"]]), me = { class: "flex flex-col justify-center items-center bg-fm-color-neutral-white py-24" }, pe = { class: "space-y-32" }, _e = { class: "space-y-8" }, fe = { class: "fm-typo-en-title-lg-600" }, ge = { class: "space-y-8" }, ve = { class: "fm-typo-en-title-sm-600" }, he = { class: "flex gap-16" }, be = ["onClick"], ye = { class: "space-y-8" }, Ce = { class: "m-8 w-[33px]" }, we = ["innerHTML"], xe = { class: "fm-typo-en-body-sm-600" }, Fe = { class: "space-y-16" }, Ie = /* @__PURE__ */ M({
72
+ const de = /* @__PURE__ */ X(ue, [["__scopeId", "data-v-c0191534"]]), me = { class: "flex flex-col justify-center items-center bg-fm-color-neutral-white py-24" }, pe = { class: "space-y-32" }, _e = { class: "space-y-8" }, fe = { class: "fm-typo-en-title-lg-600" }, ge = { class: "space-y-8" }, ve = { class: "fm-typo-en-title-sm-600" }, he = { class: "flex gap-16" }, be = ["onClick"], ye = { class: "space-y-8" }, Ce = { class: "m-8 w-[33px]" }, we = ["innerHTML"], xe = { class: "fm-typo-en-body-sm-600" }, Fe = { class: "space-y-16" }, Ie = /* @__PURE__ */ A({
73
73
  __name: "CreateBusiness",
74
74
  setup(r) {
75
75
  var V;
76
76
  oe();
77
77
  const e = Y(), o = f(""), t = f(""), c = f(""), u = f(!0), x = te(), _ = se(x), { t: l } = J(), i = f(((V = e.currentCountry.value) == null ? void 0 : V.toUpperCase()) || "MY"), m = f([]);
78
- j(
78
+ $(
79
79
  i,
80
80
  (p) => {
81
81
  w.readBusinesses(i.value).then((d) => {
@@ -93,7 +93,7 @@ const de = /* @__PURE__ */ X(ue, [["__scopeId", "data-v-c0191534"]]), me = { cla
93
93
  }
94
94
  u.value = !!c.value;
95
95
  }
96
- const A = ae(C, 500), D = E(() => !!(F.value || m.value.length > 0 || t.value && !c.value)), F = f(!1);
96
+ const M = ae(C, 500), D = j(() => !!(F.value || m.value.length > 0 || t.value && !c.value)), F = f(!1);
97
97
  async function I() {
98
98
  _.minor(
99
99
  async () => {
@@ -118,19 +118,19 @@ const de = /* @__PURE__ */ X(ue, [["__scopeId", "data-v-c0191534"]]), me = { cla
118
118
  }
119
119
  );
120
120
  }
121
- async function N() {
121
+ async function E() {
122
122
  await e.signOut(), setTimeout(() => {
123
123
  window.location.href = `${ne.baseUrl}/login?fm_redirect=${encodeURIComponent(window.location.protocol + "//" + window.location.host)}`;
124
124
  }, 500);
125
125
  }
126
126
  return G(() => {
127
- e.hideSidebarToggle(!0);
127
+ e.hideSidebar.value || e.hideSidebarToggle(!0);
128
128
  }), P(() => {
129
129
  e.hideSidebarToggle(!1);
130
130
  }), (p, d) => {
131
- const k = h("FmTextField"), O = h("FmSnackbar"), T = h("FmButton"), $ = h("FmForm");
131
+ const k = h("FmTextField"), N = h("FmSnackbar"), T = h("FmButton"), O = h("FmForm");
132
132
  return v(), y("div", me, [
133
- g($, {
133
+ g(O, {
134
134
  class: "w-[540px] xs:w-full xs:px-16 space-y-24",
135
135
  "blame-form-child-on-validation-failed": "",
136
136
  "on-validation-success": I
@@ -163,7 +163,7 @@ const de = /* @__PURE__ */ X(ue, [["__scopeId", "data-v-c0191534"]]), me = { cla
163
163
  modelValue: t.value,
164
164
  "onUpdate:modelValue": [
165
165
  d[1] || (d[1] = (a) => t.value = a),
166
- n(A)
166
+ n(M)
167
167
  ],
168
168
  rules: [(a) => !a || u.value || n(l)("settings.create_business.agent.invalid")]
169
169
  }, null, 8, ["label", "modelValue", "onUpdate:modelValue", "rules"])
@@ -190,7 +190,7 @@ const de = /* @__PURE__ */ X(ue, [["__scopeId", "data-v-c0191534"]]), me = { cla
190
190
  ], 10, be))), 128))
191
191
  ])
192
192
  ]),
193
- m.value.length > 0 ? (v(), q(O, {
193
+ m.value.length > 0 ? (v(), q(N, {
194
194
  key: 0,
195
195
  variant: "info",
196
196
  title: n(l)("settings.create_business.country.exists.title"),
@@ -213,7 +213,7 @@ const de = /* @__PURE__ */ X(ue, [["__scopeId", "data-v-c0191534"]]), me = { cla
213
213
  variant: "secondary",
214
214
  size: "lg",
215
215
  class: "w-full",
216
- onClick: N
216
+ onClick: E
217
217
  }, null, 8, ["label"])
218
218
  ])
219
219
  ])
@@ -2,10 +2,10 @@ var g1 = Object.defineProperty;
2
2
  var p1 = (s, c, d) => c in s ? g1(s, c, { enumerable: !0, configurable: !0, writable: !0, value: d }) : s[c] = d;
3
3
  var ll = (s, c, d) => (p1(s, typeof c != "symbol" ? c + "" : c, d), d);
4
4
  import { defineComponent as zc, ref as en, resolveComponent as Kt, openBlock as xt, createElementBlock as Pr, Fragment as Ji, renderSlot as hb, createVNode as Dt, unref as Yt, withCtx as Tn, createElementVNode as xe, computed as fr, watch as $b, withKeys as b1, toDisplayString as jn, renderList as dc, createBlock as Vi, createCommentVNode as cc, h as Td, getCurrentInstance as y1, withModifiers as _1 } from "vue";
5
- import { l as D, c as Q, m as ge, n as Bl, o as lu, p as mb } from "./app-1a3fbd9b.js";
6
- import { e as v1, _ as x$, c as gb, u as z1, a as E1, b as F1, d as Kg } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-3205a96f.js";
5
+ import { l as D, c as Q, m as ge, n as Bl, o as lu, p as mb } from "./app-adf18ec3.js";
6
+ import { e as v1, _ as x$, c as gb, u as z1, a as E1, b as F1, d as Kg } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-b341d5f0.js";
7
7
  import { useSnackbar as Ec, components as Tl, useDialogChild as w1, useDialog as pb, useBreakpoints as S1 } from "@feedmepos/ui-library";
8
- import { g as Tr, r as ja, b as t$, u as hm } from "./loading-0b1b1c17.js";
8
+ import { g as Tr, r as ja, b as t$, u as hm } from "./loading-4e6c9c98.js";
9
9
  import { useCoreStore as Fc, useI18n as $m } from "@feedmepos/mf-common";
10
10
  import "vue-router";
11
11
  import "@feedmepos/mf-e-invoice";
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as q, openBlock as H, createElementBlock as G, createElementVNode as U, renderSlot as V, toDisplayString as le, normalizeClass as ae, toRaw as de, mergeModels as fe, useModel as he, computed as A, watchEffect as me, resolveComponent as z, createBlock as Z, withCtx as te, createVNode as Q, Fragment as pe, renderList as $e, markRaw as ve, render as ye, normalizeProps as ge, mergeProps as ne } from "vue";
2
- import { c as be, g as Me } from "./app-1a3fbd9b.js";
2
+ import { c as be, g as Me } from "./app-adf18ec3.js";
3
3
  import { useCoreStore as _e } from "@feedmepos/mf-common";
4
4
  import { useSnackbar as we, useBreakpoints as Se } from "@feedmepos/ui-library";
5
5
  const De = {
@@ -7962,7 +7962,7 @@ const Gb = {
7962
7962
  {
7963
7963
  path: "/business",
7964
7964
  name: "$settings-my-business",
7965
- component: () => import("./Business-62724763.js"),
7965
+ component: () => import("./Business-ae4253e7.js"),
7966
7966
  meta: {
7967
7967
  i18nKey: "settings.business.title"
7968
7968
  }
@@ -7970,7 +7970,7 @@ const Gb = {
7970
7970
  {
7971
7971
  path: "/create-business",
7972
7972
  name: "$settings-create-business",
7973
- component: () => import("./CreateBusiness-e18ee7ab.js"),
7973
+ component: () => import("./CreateBusiness-ef229a33.js"),
7974
7974
  meta: {
7975
7975
  hideNavigation: !0
7976
7976
  }
@@ -7978,7 +7978,7 @@ const Gb = {
7978
7978
  {
7979
7979
  path: "/foodcourt",
7980
7980
  name: "$settings-food-court",
7981
- component: () => import("./FoodCourt-3fe554b9.js"),
7981
+ component: () => import("./FoodCourt-a66b0b8f.js"),
7982
7982
  meta: {
7983
7983
  i18nKey: "settings.food_court.list.title"
7984
7984
  }
package/dist/app.js CHANGED
@@ -1,4 +1,4 @@
1
- import { _ as a, s as e, q as n, t as g } from "./app-1a3fbd9b.js";
1
+ import { _ as a, s as e, q as n, t as g } from "./app-adf18ec3.js";
2
2
  import "@feedmepos/mf-common";
3
3
  import "vue";
4
4
  import "vue-router";
@@ -1,4 +1,4 @@
1
- import { g as e, b as r } from "./loading-0b1b1c17.js";
1
+ import { g as e, b as r } from "./loading-4e6c9c98.js";
2
2
  const u = (s, t) => {
3
3
  const n = s.__vccOpts || s;
4
4
  for (const [i, a] of t)
@@ -1,4 +1,4 @@
1
- import { f as Q } from "./app-1a3fbd9b.js";
1
+ import { f as Q } from "./app-adf18ec3.js";
2
2
  import { useCoreStore as j } from "@feedmepos/mf-common";
3
3
  import { computed as Et, isRef as St, watch as Rt } from "vue";
4
4
  import { defineStore as Tt } from "pinia";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-settings",
3
- "version": "0.0.42-prod",
3
+ "version": "0.0.43-prod",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"