@feedmepos/mf-settings 0.0.48-beta.1-ex → 0.0.49

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,12 +1,13 @@
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";
1
+ import { unref as n, defineComponent as A, openBlock as g, createElementBlock as y, ref as f, watch as $, computed as j, watchEffect as G, onBeforeUnmount as P, resolveComponent as h, createVNode as v, 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
3
  import { _ as X, r as ee } from "./rules-c9fa22f8.js";
4
- import { b as w } from "./business-8b22c801.js";
5
- import "@feedmepos/core/entity";
6
- import { useSnackbar as te } from "@feedmepos/ui-library";
7
- import { u as se, F as ne } from "./loading-eb019aa4.js";
4
+ import { s as te, v as w, F as se } from "./app-050b47dd.js";
5
+ import { useSnackbar as ne } from "@feedmepos/ui-library";
8
6
  import { useRouter as oe } from "vue-router";
7
+ import "@feedmepos/mf-mdm";
8
+ import "@feedmepos/mf-e-invoice";
9
9
  import "pinia";
10
+ import "@vue/devtools-api";
10
11
  function L(r) {
11
12
  return typeof r == "function" ? r() : n(r);
12
13
  }
@@ -61,19 +62,19 @@ const re = `<svg width="388" height="388" viewBox="0 0 388 388" fill="none" xmln
61
62
  `, ce = ["innerHTML"], ue = /* @__PURE__ */ A({
62
63
  __name: "FeedmeLogo",
63
64
  setup(r) {
64
- return (e, o) => (v(), y("div", {
65
+ return (e, o) => (g(), y("div", {
65
66
  class: "logo",
66
67
  style: { width: "54px", height: "54px" },
67
68
  innerHTML: n(re)
68
69
  }, null, 8, ce));
69
70
  }
70
71
  });
71
- 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" }, De = /* @__PURE__ */ A({
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" }, ve = { class: "space-y-8" }, ge = { 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({
72
73
  __name: "CreateBusiness",
73
74
  setup(r) {
74
75
  var V;
75
76
  oe();
76
- 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([]);
77
+ const e = Y(), o = f(""), t = f(""), c = f(""), u = f(!0), x = ne(), _ = te(x), { t: l } = J(), i = f(((V = e.currentCountry.value) == null ? void 0 : V.toUpperCase()) || "MY"), m = f([]);
77
78
  $(
78
79
  i,
79
80
  (p) => {
@@ -119,7 +120,7 @@ const de = /* @__PURE__ */ X(ue, [["__scopeId", "data-v-c0191534"]]), me = { cla
119
120
  }
120
121
  async function E() {
121
122
  await e.signOut(), setTimeout(() => {
122
- window.location.href = `${ne.baseUrl}/login?fm_redirect=${encodeURIComponent(window.location.protocol + "//" + window.location.host)}`;
123
+ window.location.href = `${se.baseUrl}/login?fm_redirect=${encodeURIComponent(window.location.protocol + "//" + window.location.host)}`;
123
124
  }, 500);
124
125
  }
125
126
  return G(() => {
@@ -128,8 +129,8 @@ const de = /* @__PURE__ */ X(ue, [["__scopeId", "data-v-c0191534"]]), me = { cla
128
129
  e.hideSidebarToggle(!1);
129
130
  }), (p, d) => {
130
131
  const k = h("FmTextField"), N = h("FmSnackbar"), T = h("FmButton"), O = h("FmForm");
131
- return v(), y("div", me, [
132
- g(O, {
132
+ return g(), y("div", me, [
133
+ v(O, {
133
134
  class: "w-[540px] xs:w-full xs:px-16 space-y-24",
134
135
  "blame-form-child-on-validation-failed": "",
135
136
  "on-validation-success": I
@@ -138,7 +139,7 @@ const de = /* @__PURE__ */ X(ue, [["__scopeId", "data-v-c0191534"]]), me = { cla
138
139
  var B, H, U;
139
140
  return [
140
141
  s("div", null, [
141
- g(de)
142
+ v(de)
142
143
  ]),
143
144
  s("div", pe, [
144
145
  s("div", _e, [
@@ -148,7 +149,7 @@ const de = /* @__PURE__ */ X(ue, [["__scopeId", "data-v-c0191534"]]), me = { cla
148
149
  s("div", null, b(n(l)("settings.create_business.subtitle")), 1)
149
150
  ]),
150
151
  s("div", null, [
151
- g(k, {
152
+ v(k, {
152
153
  label: n(l)("settings.create_business.business_name.label"),
153
154
  "label-mark": "required",
154
155
  rules: [n(ee)],
@@ -157,7 +158,7 @@ const de = /* @__PURE__ */ X(ue, [["__scopeId", "data-v-c0191534"]]), me = { cla
157
158
  }, null, 8, ["label", "rules", "modelValue"])
158
159
  ]),
159
160
  s("div", null, [
160
- g(k, {
161
+ v(k, {
161
162
  label: n(l)("settings.create_business.agent.label"),
162
163
  modelValue: t.value,
163
164
  "onUpdate:modelValue": [
@@ -167,10 +168,10 @@ const de = /* @__PURE__ */ X(ue, [["__scopeId", "data-v-c0191534"]]), me = { cla
167
168
  rules: [(a) => !a || u.value || n(l)("settings.create_business.agent.invalid")]
168
169
  }, null, 8, ["label", "modelValue", "onUpdate:modelValue", "rules"])
169
170
  ]),
170
- s("div", ge, [
171
- s("div", ve, b(n(l)("settings.create_business.country.title")), 1),
171
+ s("div", ve, [
172
+ s("div", ge, b(n(l)("settings.create_business.country.title")), 1),
172
173
  s("div", he, [
173
- (v(!0), y(z, null, R(n(K), (a) => (v(), y("div", {
174
+ (g(!0), y(z, null, R(n(K), (a) => (g(), y("div", {
174
175
  key: a.code,
175
176
  class: Z(["flex-1 h-[124px] flex justify-center items-center border-2 fm-corner-radius-md cursor-pointer", [
176
177
  i.value === a.code ? "border-fm-color-primary" : "border-fm-color-neutral-gray-200",
@@ -189,7 +190,7 @@ const de = /* @__PURE__ */ X(ue, [["__scopeId", "data-v-c0191534"]]), me = { cla
189
190
  ], 10, be))), 128))
190
191
  ])
191
192
  ]),
192
- m.value.length > 0 ? (v(), q(N, {
193
+ m.value.length > 0 ? (g(), q(N, {
193
194
  key: 0,
194
195
  variant: "info",
195
196
  title: n(l)("settings.create_business.country.exists.title"),
@@ -197,7 +198,7 @@ const de = /* @__PURE__ */ X(ue, [["__scopeId", "data-v-c0191534"]]), me = { cla
197
198
  }, null, 8, ["title", "description"])) : Q("", !0),
198
199
  s("div", Fe, [
199
200
  s("div", null, [
200
- g(T, {
201
+ v(T, {
201
202
  label: n(l)("settings.create_business.submit"),
202
203
  variant: "primary",
203
204
  size: "lg",
@@ -207,7 +208,7 @@ const de = /* @__PURE__ */ X(ue, [["__scopeId", "data-v-c0191534"]]), me = { cla
207
208
  }, null, 8, ["label", "disabled"])
208
209
  ]),
209
210
  s("div", null, [
210
- g(T, {
211
+ v(T, {
211
212
  label: n(l)("settings.create_business.logout"),
212
213
  variant: "secondary",
213
214
  size: "lg",
@@ -226,5 +227,5 @@ const de = /* @__PURE__ */ X(ue, [["__scopeId", "data-v-c0191534"]]), me = { cla
226
227
  }
227
228
  });
228
229
  export {
229
- De as default
230
+ Ie as default
230
231
  };