@feedmepos/mf-brand-app-builder 0.5.32-dev.1 → 0.5.32-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,13 +1,13 @@
1
1
  import { defineComponent as nt, resolveComponent as ne, createElementBlock as P, openBlock as L, createElementVNode as u, createVNode as x, createCommentVNode as X, withCtx as Re, unref as f, normalizeStyle as Er, toDisplayString as k, ref as te, shallowRef as jn, onMounted as un, onBeforeUnmount as qn, withDirectives as Rr, normalizeClass as dn, vShow as Lr, markRaw as ca, nextTick as Xn, watch as ct, createBlock as Ee, renderSlot as Yn, Fragment as Ve, renderList as gt, computed as re, Teleport as Zn, Transition as cn, withKeys as Jn, createTextVNode as pa } from "vue";
2
- import { B as or } from "./index-C7Ax57OZ.js";
2
+ import { B as or } from "./index-CjXPwLCp.js";
3
3
  import { B as Kn } from "./ColorPicker-RKWzhLBO.js";
4
- import { u as Qn } from "./index-Bi5NByw1.js";
4
+ import { u as Qn } from "./index-ChqSdT0a.js";
5
5
  import { useCoreStore as Gr, useI18n as Hr, RestaurantSelector as eo } from "@feedmepos/mf-common";
6
6
  import { u as to, b as q } from "./brandkit-C8uulbNE.js";
7
7
  import { useDialogChild as ro, useDialog as $r, useSnackbar as Vr } from "@feedmepos/ui-library";
8
8
  import { _ as zr } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
9
  import { d as ao } from "./dayjs.min-DnbY0e60.js";
10
- import { I as va, r as fa } from "./image-D_Djf1PS.js";
10
+ import { I as va, r as fa } from "./image-S7-2rbQS.js";
11
11
  import { u as no } from "./useBusinessFeatureFlag-rGPsfDu1.js";
12
12
  import { v as ha } from "./v4-CKwdnpQf.js";
13
13
  const oo = { class: "fm-typo-en-body-md-400" }, so = { class: "flex gap-8 items-center" }, io = { class: "p-4 relative" }, lo = { class: "shadow-lg rounded-lg p-8" }, uo = {
@@ -9249,7 +9249,7 @@ const Qu = { class: "json-editor" }, ed = ["title"], td = { class: "error-text"
9249
9249
  K,
9250
9250
  O
9251
9251
  ), Te = fa(
9252
- `https://image.feedmedev.cc/business/${n.currentBusiness.value._id}/${ge.imagePath}`
9252
+ `https://image.feedme.cc/business/${n.currentBusiness.value._id}/${ge.imagePath}`
9253
9253
  );
9254
9254
  E(), i.value.layout.background = {
9255
9255
  url: Te,
@@ -9299,7 +9299,7 @@ const Qu = { class: "json-editor" }, ed = ["title"], td = { class: "error-text"
9299
9299
  ge,
9300
9300
  O
9301
9301
  ), we = fa(
9302
- `https://image.feedmedev.cc/business/${n.currentBusiness.value._id}/${Te.imagePath}`
9302
+ `https://image.feedme.cc/business/${n.currentBusiness.value._id}/${Te.imagePath}`
9303
9303
  );
9304
9304
  E(), i.value.layout.sidePanel = {
9305
9305
  url: we,
@@ -1,19 +1,19 @@
1
1
  import { resolveComponent as V, TransitionGroup as qn, defineComponent as se, nextTick as rn, h as ma, isRef as Qn, isReactive as eo, isProxy as to, toRaw as ao, ref as q, computed as ie, createElementBlock as Z, openBlock as N, Fragment as Be, renderList as vt, createElementVNode as I, createVNode as w, createBlock as ae, createCommentVNode as Q, toDisplayString as j, unref as y, withCtx as M, normalizeClass as ye, watch as tt, withDirectives as Gt, withModifiers as ba, vShow as Xt, createTextVNode as no, onMounted as ln, resolveDynamicComponent as Ma, mergeProps as oo, normalizeProps as ro, guardReactiveProps as io, normalizeStyle as lo, renderSlot as wa, provide as so, inject as co, markRaw as uo } from "vue";
2
- import { T as po, u as Ge } from "./index-Bk6TOZrx.js";
2
+ import { T as po, u as Ge } from "./index-CPs0rWCO.js";
3
3
  import { defineStore as mo, storeToRefs as bo } from "pinia";
4
4
  import { p as fo } from "./views-BDWw3w14.js";
5
- import { A as go } from "./index-D0LOMBBD.js";
5
+ import { A as go } from "./index-C6_vWPi0.js";
6
6
  import { v as Ra } from "./v4-CKwdnpQf.js";
7
7
  import { _ as ho } from "./Icon.vue_vue_type_style_index_0_lang-BcRjQndc.js";
8
8
  import { B as sn } from "./BaDivider-Cp9gfB4r.js";
9
9
  import { useI18n as Ze, useCoreStore as We } from "@feedmepos/mf-common";
10
- import { C as $a, _ as yo, a as vo } from "./main-Dm1Xcanz.js";
10
+ import { C as $a, _ as yo, a as vo } from "./main-DeuGxi5J.js";
11
11
  import { useDialog as To, components as xo, useSnackbar as Co } from "@feedmepos/ui-library";
12
12
  import { useRouter as dn } from "vue-router";
13
13
  import { u as Ia, a as _o, b as wo } from "./brandkit-C8uulbNE.js";
14
- import { u as Ea } from "./index-Bi5NByw1.js";
14
+ import { u as Ea } from "./index-ChqSdT0a.js";
15
15
  import { K as Io, V as Eo } from "./vue-sonner-CBFYmm8_.js";
16
- import { F as So, a as Ao } from "./app-r_Tzagik.js";
16
+ import { F as So, a as Ao } from "./app-BdcT6w5B.js";
17
17
  /**!
18
18
  * Sortable 1.14.0
19
19
  * @author RubaXa <trash@rubaxa.org>
@@ -6605,7 +6605,7 @@ const ai = { class: "mb-24" }, ni = { class: "fm-typo-en-title-lg-700 text-fm-co
6605
6605
  }
6606
6606
  async function g() {
6607
6607
  var v;
6608
- const f = `${"https://{slug}.feedmedev.vip".replace("{slug}", `${r.currentBusiness.value.url ?? ((v = r.currentBusiness.value) == null ? void 0 : v.id)}`)}`;
6608
+ const f = `${"https://{slug}.feedme.vip".replace("{slug}", `${r.currentBusiness.value.url ?? ((v = r.currentBusiness.value) == null ? void 0 : v.id)}`)}`;
6609
6609
  l.promise(
6610
6610
  async () => {
6611
6611
  var x;
@@ -8171,7 +8171,7 @@ _t.toString = Oa.bind(null, function(t, e, a) {
8171
8171
  const xl = { class: "flex items-center justify-center" }, Cl = { class: "w-full flex gap-8 justify-end items-center" }, _l = /* @__PURE__ */ se({
8172
8172
  __name: "PreviewQrCode",
8173
8173
  setup(t) {
8174
- const e = q(), a = We(), n = Ge(), { t: o } = Ze(), r = q(!1), l = ie(() => `${`${"https://{slug}.feedmedev.vip".replace("{slug}", `${a.currentBusiness.value.url ?? a.currentBusiness.value._id}`)}`}/preview/${n.state.selectedTemplate.templateId}`);
8174
+ const e = q(), a = We(), n = Ge(), { t: o } = Ze(), r = q(!1), l = ie(() => `${`${"https://{slug}.feedme.vip".replace("{slug}", `${a.currentBusiness.value.url ?? a.currentBusiness.value._id}`)}`}/preview/${n.state.selectedTemplate.templateId}`);
8175
8175
  function i() {
8176
8176
  Io.promise(navigator.clipboard.writeText(l.value), {
8177
8177
  loading: o("brand.template.shareMenu.copying"),
@@ -1,7 +1,7 @@
1
- import { defineComponent as y, ref as b, resolveComponent as w, createElementBlock as r, openBlock as s, createVNode as c, createCommentVNode as f, Fragment as C, createElementVNode as i, unref as u } from "vue";
2
- import { r as g, I as h } from "./image-D_Djf1PS.js";
1
+ import { defineComponent as y, ref as b, resolveComponent as w, createElementBlock as r, openBlock as s, createVNode as c, createCommentVNode as d, Fragment as C, createElementVNode as i, unref as u } from "vue";
2
+ import { r as g, I as h } from "./image-S7-2rbQS.js";
3
3
  import { useCoreStore as I } from "@feedmepos/mf-common";
4
- import "./main-Dm1Xcanz.js";
4
+ import "./main-DeuGxi5J.js";
5
5
  import { _ as $ } from "./Icon.vue_vue_type_style_index_0_lang-BcRjQndc.js";
6
6
  import { C as k } from "./CircularProgress-DdblYCtV.js";
7
7
  import { v as F } from "./v4-CKwdnpQf.js";
@@ -22,12 +22,12 @@ const B = { class: "w-full h-[210px] relative" }, P = { class: "absolute z-[1] t
22
22
  o
23
23
  ).then((m) => {
24
24
  var p;
25
- const l = `https://image.feedmedev.cc/business/${a.currentBusiness.value._id}/${m.imagePath}`;
25
+ const l = `https://image.feedme.cc/business/${a.currentBusiness.value._id}/${m.imagePath}`;
26
26
  e.context.node.input(l);
27
27
  const n = new Image();
28
28
  (p = e.context) != null && p.ignoreUpdate || (n.onload = () => {
29
- var d;
30
- ((d = e.context.node.at("$root")) == null ? void 0 : d._value).containerStyles.height = `${Math.min(n.height, 400)}px`;
29
+ var f;
30
+ ((f = e.context.node.at("$root")) == null ? void 0 : f._value).containerStyles.height = `${Math.min(n.height, 400)}px`;
31
31
  }), n.src = g(l);
32
32
  }).finally(() => t.value = !1);
33
33
  }
@@ -60,10 +60,10 @@ const B = { class: "w-full h-[210px] relative" }, P = { class: "absolute z-[1] t
60
60
  class: "!text-[16px] text-fm-color-typo-white"
61
61
  })
62
62
  ])
63
- ], 64)) : f("", !0),
63
+ ], 64)) : d("", !0),
64
64
  t.value ? (s(), r("div", z, [
65
65
  c(u(k))
66
- ])) : f("", !0)
66
+ ])) : d("", !0)
67
67
  ]);
68
68
  };
69
69
  }
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as I, ref as f, computed as k, onBeforeMount as L, resolveComponent as c, createBlock as v, openBlock as u, withCtx as m, createElementVNode as a, createVNode as r, createElementBlock as x, Fragment as M, renderList as F, toDisplayString as P, withModifiers as R } from "vue";
2
2
  import { B as y } from "./BaDivider-Cp9gfB4r.js";
3
3
  import { _ as W } from "./Icon.vue_vue_type_style_index_0_lang-BcRjQndc.js";
4
- import { u as $ } from "./index-Bk6TOZrx.js";
4
+ import { u as $ } from "./index-CPs0rWCO.js";
5
5
  import "@feedmepos/mf-common";
6
6
  const j = {
7
7
  key: 1,
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as b, resolveComponent as y, createBlock as s, openBlock as c, unref as u, withCtx as i, createElementBlock as m, Fragment as x, renderList as g, createElementVNode as p, createVNode as n, resolveDynamicComponent as F } from "vue";
2
- import { F as f } from "./app-r_Tzagik.js";
2
+ import { F as f } from "./app-BdcT6w5B.js";
3
3
  const h = { class: "flex justify-end gap-4 items-center w-full py-16 px-12 border-b" }, z = { class: "flex flex-col gap-4 w-full p-12" }, I = /* @__PURE__ */ b({
4
4
  __name: "ListRepeater",
5
5
  props: {
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as C, ref as y, computed as S, watch as $, resolveComponent as d, createElementBlock as k, openBlock as g, createElementVNode as o, createVNode as u, toDisplayString as _, unref as i, createBlock as F, withCtx as U } from "vue";
2
2
  import { useCoreStore as P, useI18n as V } from "@feedmepos/mf-common";
3
- import { B as h } from "./index-C7Ax57OZ.js";
3
+ import { B as h } from "./index-CjXPwLCp.js";
4
4
  import { K as q } from "./vue-sonner-CBFYmm8_.js";
5
- import { r as I, I as T } from "./image-D_Djf1PS.js";
5
+ import { r as I, I as T } from "./image-S7-2rbQS.js";
6
6
  import { useSnackbar as A } from "@feedmepos/ui-library";
7
7
  const E = new RegExp(/^[a-z0-9][a-z0-9\-]{4,}[a-z0-9]$/), N = [
8
8
  "brand",
@@ -510,12 +510,12 @@ const E = new RegExp(/^[a-z0-9][a-z0-9\-]{4,}[a-z0-9]$/), N = [
510
510
  url: "",
511
511
  thumbnail: ""
512
512
  }), x = S(
513
- () => "https://{slug}.feedmedev.vip".replace("https://{slug}", "")
513
+ () => "https://{slug}.feedme.vip".replace("https://{slug}", "")
514
514
  );
515
515
  function B() {
516
516
  var t, e;
517
517
  navigator.clipboard.writeText(
518
- "https://{slug}.feedmedev.vip".replace(
518
+ "https://{slug}.feedme.vip".replace(
519
519
  "{slug}",
520
520
  ((t = s.currentBusiness.value) == null ? void 0 : t.url) ?? ((e = s.currentBusiness.value) == null ? void 0 : e._id)
521
521
  )
@@ -574,9 +574,9 @@ const E = new RegExp(/^[a-z0-9][a-z0-9\-]{4,}[a-z0-9]$/), N = [
574
574
  await h.updateBusinessProfile(s.currentBusiness.value._id, {
575
575
  name: a.value.name,
576
576
  url: a.value.url,
577
- thumbnail: `https://image.feedmedev.cc/business/${s.currentBusiness.value._id}/${c.imagePath}`,
577
+ thumbnail: `https://image.feedme.cc/business/${s.currentBusiness.value._id}/${c.imagePath}`,
578
578
  coverPhoto: s.currentBusiness.value.coverPhoto
579
- }), a.value.thumbnail = `https://image.feedmedev.cc/business/${s.currentBusiness.value._id}/${c.imagePath}`;
579
+ }), a.value.thumbnail = `https://image.feedme.cc/business/${s.currentBusiness.value._id}/${c.imagePath}`;
580
580
  });
581
581
  }
582
582
  return $(
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as S, createElementBlock as D, openBlock as I, normalizeClass as m, createElementVNode as E, toDisplayString as C, ref as x, computed as J, watch as K, resolveComponent as l, unref as h, Fragment as v, renderList as W, createVNode as B, createCommentVNode as s, createBlock as r, withCtx as P, h as L } from "vue";
2
- import { u as Z } from "./index-Bk6TOZrx.js";
2
+ import { u as Z } from "./index-CPs0rWCO.js";
3
3
  import { useCoreStore as q, useI18n as X } from "@feedmepos/mf-common";
4
4
  import { p as y } from "./views-BDWw3w14.js";
5
5
  import { useRouter as b } from "vue-router";
@@ -9393,12 +9393,12 @@ const Ln = {
9393
9393
  {
9394
9394
  path: "/",
9395
9395
  name: "brandkit",
9396
- component: () => import("./BrandkitView-BiqqytH_.js")
9396
+ component: () => import("./BrandkitView-EhVtIrcJ.js")
9397
9397
  },
9398
9398
  {
9399
9399
  path: "/projects",
9400
9400
  name: "projects",
9401
- component: () => import("./ProjectView-ByxaVBFb.js")
9401
+ component: () => import("./ProjectView-DKXRpIC6.js")
9402
9402
  },
9403
9403
  {
9404
9404
  path: "/builder",
@@ -9407,7 +9407,7 @@ const Ln = {
9407
9407
  {
9408
9408
  path: ":templateId(.*)*",
9409
9409
  name: "builder",
9410
- component: () => import("./BuilderView-wg2h3Yo7.js")
9410
+ component: () => import("./BuilderView-CY98b-6c.js")
9411
9411
  }
9412
9412
  ]
9413
9413
  },
@@ -9420,12 +9420,12 @@ const Ln = {
9420
9420
  {
9421
9421
  path: "assets",
9422
9422
  name: "settings-assets",
9423
- component: () => import("./AssetsSettings-EAeO3NaT.js")
9423
+ component: () => import("./AssetsSettings-F-AJxGfJ.js")
9424
9424
  },
9425
9425
  {
9426
9426
  path: "management",
9427
9427
  name: "settings-management",
9428
- component: () => import("./ManagementSettings--4kOBME_.js")
9428
+ component: () => import("./ManagementSettings-CywfdXkh.js")
9429
9429
  }
9430
9430
  ]
9431
9431
  },
@@ -14103,7 +14103,7 @@ const Eu = (e) => {
14103
14103
  ),
14104
14104
  BaListRepeater: G(
14105
14105
  V(
14106
- () => import("./ListRepeater-t5IMKKYe.js")
14106
+ () => import("./ListRepeater-Mdj8WnXl.js")
14107
14107
  )
14108
14108
  ),
14109
14109
  BaTextStyleList: G(
@@ -14123,13 +14123,13 @@ const Eu = (e) => {
14123
14123
  ),
14124
14124
  BaImageUpload: G(
14125
14125
  V(
14126
- () => import("./ImageUpload-Can3deJv.js")
14126
+ () => import("./ImageUpload-digirpp3.js")
14127
14127
  ),
14128
14128
  { props: ["ignoreUpdate"] }
14129
14129
  ),
14130
14130
  BaLinkButton: G(
14131
14131
  V(
14132
- () => import("./LinkButton-De-YNclu.js")
14132
+ () => import("./LinkButton-DNXBKGCn.js")
14133
14133
  )
14134
14134
  ),
14135
14135
  BaSwitch: G(
@@ -14152,7 +14152,7 @@ const Eu = (e) => {
14152
14152
  "ko-KR": { ...Hn, ...xi },
14153
14153
  "vi-VN": { ...zn, ...Ni },
14154
14154
  "ms-MY": { ...ai, ...Ki }
14155
- }, Vu = V(() => import("./App-jlRSyHeO.js"));
14155
+ }, Vu = V(() => import("./App-DHLE1aK8.js"));
14156
14156
  export {
14157
14157
  hn as F,
14158
14158
  pn as a,
package/dist/app.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "vue";
2
- import { c as i, d as o, i as e, r as m } from "./app-r_Tzagik.js";
2
+ import { c as i, d as o, i as e, r as m } from "./app-BdcT6w5B.js";
3
3
  export {
4
4
  i as FmApp,
5
5
  o as FormKitPlugin,
@@ -1,9 +1,9 @@
1
- import { H as r, a as p } from "./index-D0LOMBBD.js";
1
+ import { H as r, a as p } from "./index-C6_vWPi0.js";
2
2
  const i = () => p().PWA_ICON_SERVICE_BACKEND;
3
- async function d(e, t, a) {
3
+ async function s(e, t, a) {
4
4
  const n = new FormData();
5
5
  return n.append("file", a), (await r.Put(
6
- "https://api.feedmedev.vip",
6
+ "https://api.feedme.vip",
7
7
  `/image/${e}/${t}`,
8
8
  {
9
9
  headers: {
@@ -13,9 +13,9 @@ async function d(e, t, a) {
13
13
  }
14
14
  )).data;
15
15
  }
16
- async function s(e, t) {
16
+ async function d(e, t) {
17
17
  return (await r.Delete(
18
- "https://api.feedmedev.vip",
18
+ "https://api.feedme.vip",
19
19
  `/image/${e}/${t}`
20
20
  )).data;
21
21
  }
@@ -29,8 +29,8 @@ async function o(e, t) {
29
29
  })).data;
30
30
  }
31
31
  const f = {
32
- uploadImage: d,
33
- deleteImage: s,
32
+ uploadImage: s,
33
+ deleteImage: d,
34
34
  uploadAppIcon: o
35
35
  };
36
36
  function u(e) {
@@ -1,11 +1,11 @@
1
1
  import { useCoreStore as Ke } from "@feedmepos/mf-common";
2
- function ve(e, t) {
2
+ function We(e, t) {
3
3
  return function() {
4
4
  return e.apply(t, arguments);
5
5
  };
6
6
  }
7
7
  var Pe = {};
8
- const { toString: wt } = Object.prototype, { getPrototypeOf: Ee } = Object, { iterator: oe, toStringTag: We } = Symbol, ie = /* @__PURE__ */ ((e) => (t) => {
8
+ const { toString: wt } = Object.prototype, { getPrototypeOf: Ee } = Object, { iterator: oe, toStringTag: ve } = Symbol, ie = /* @__PURE__ */ ((e) => (t) => {
9
9
  const n = wt.call(t);
10
10
  return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
11
11
  })(/* @__PURE__ */ Object.create(null)), P = (e) => (e = e.toLowerCase(), (t) => ie(t) === e), ae = (e) => (t) => typeof t === e, { isArray: M } = Array, H = ae("undefined");
@@ -17,25 +17,25 @@ function Et(e) {
17
17
  let t;
18
18
  return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Xe(e.buffer), t;
19
19
  }
20
- const St = ae("string"), A = ae("function"), Ge = ae("number"), v = (e) => e !== null && typeof e == "object", gt = (e) => e === !0 || e === !1, ee = (e) => {
20
+ const St = ae("string"), A = ae("function"), Ge = ae("number"), W = (e) => e !== null && typeof e == "object", gt = (e) => e === !0 || e === !1, ee = (e) => {
21
21
  if (ie(e) !== "object")
22
22
  return !1;
23
23
  const t = Ee(e);
24
- return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(We in e) && !(oe in e);
24
+ return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(ve in e) && !(oe in e);
25
25
  }, Rt = (e) => {
26
- if (!v(e) || K(e))
26
+ if (!W(e) || K(e))
27
27
  return !1;
28
28
  try {
29
29
  return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
30
30
  } catch {
31
31
  return !1;
32
32
  }
33
- }, Ot = P("Date"), At = P("File"), Tt = P("Blob"), Ct = P("FileList"), Nt = (e) => v(e) && A(e.pipe), xt = (e) => {
33
+ }, Ot = P("Date"), At = P("File"), Tt = P("Blob"), Ct = P("FileList"), Nt = (e) => W(e) && A(e.pipe), xt = (e) => {
34
34
  let t;
35
35
  return e && (typeof FormData == "function" && e instanceof FormData || A(e.append) && ((t = ie(e)) === "formdata" || // detect form-data instance
36
36
  t === "object" && A(e.toString) && e.toString() === "[object FormData]"));
37
37
  }, Pt = P("URLSearchParams"), [_t, Ft, Ut, Lt] = ["ReadableStream", "Request", "Response", "Headers"].map(P), Bt = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
38
- function W(e, t, { allOwnKeys: n = !1 } = {}) {
38
+ function v(e, t, { allOwnKeys: n = !1 } = {}) {
39
39
  if (e === null || typeof e > "u")
40
40
  return;
41
41
  let r, s;
@@ -69,11 +69,11 @@ function me() {
69
69
  ee(n[o]) && ee(s) ? n[o] = me(n[o], s) : ee(s) ? n[o] = me({}, s) : M(s) ? n[o] = s.slice() : (!t || !H(s)) && (n[o] = s);
70
70
  };
71
71
  for (let s = 0, i = arguments.length; s < i; s++)
72
- arguments[s] && W(arguments[s], r);
72
+ arguments[s] && v(arguments[s], r);
73
73
  return n;
74
74
  }
75
- const Dt = (e, t, n, { allOwnKeys: r } = {}) => (W(t, (s, i) => {
76
- n && A(s) ? e[i] = ve(s, n) : e[i] = s;
75
+ const Dt = (e, t, n, { allOwnKeys: r } = {}) => (v(t, (s, i) => {
76
+ n && A(s) ? e[i] = We(s, n) : e[i] = s;
77
77
  }, { allOwnKeys: r }), e), kt = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), jt = (e, t, n, r) => {
78
78
  e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
79
79
  value: t.prototype
@@ -121,11 +121,11 @@ const Dt = (e, t, n, { allOwnKeys: r } = {}) => (W(t, (s, i) => {
121
121
  }
122
122
  ), _e = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Kt = P("RegExp"), Ye = (e, t) => {
123
123
  const n = Object.getOwnPropertyDescriptors(e), r = {};
124
- W(n, (s, i) => {
124
+ v(n, (s, i) => {
125
125
  let o;
126
126
  (o = t(s, i, e)) !== !1 && (r[i] = o || s);
127
127
  }), Object.defineProperties(e, r);
128
- }, vt = (e) => {
128
+ }, Wt = (e) => {
129
129
  Ye(e, (t, n) => {
130
130
  if (A(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
131
131
  return !1;
@@ -140,7 +140,7 @@ const Dt = (e, t, n, { allOwnKeys: r } = {}) => (W(t, (s, i) => {
140
140
  });
141
141
  }
142
142
  });
143
- }, Wt = (e, t) => {
143
+ }, vt = (e, t) => {
144
144
  const n = {}, r = (s) => {
145
145
  s.forEach((i) => {
146
146
  n[i] = !0;
@@ -150,11 +150,11 @@ const Dt = (e, t, n, { allOwnKeys: r } = {}) => (W(t, (s, i) => {
150
150
  }, Xt = () => {
151
151
  }, Gt = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
152
152
  function Qt(e) {
153
- return !!(e && A(e.append) && e[We] === "FormData" && e[oe]);
153
+ return !!(e && A(e.append) && e[ve] === "FormData" && e[oe]);
154
154
  }
155
155
  const Zt = (e) => {
156
156
  const t = new Array(10), n = (r, s) => {
157
- if (v(r)) {
157
+ if (W(r)) {
158
158
  if (t.indexOf(r) >= 0)
159
159
  return;
160
160
  if (K(r))
@@ -162,7 +162,7 @@ const Zt = (e) => {
162
162
  if (!("toJSON" in r)) {
163
163
  t[s] = r;
164
164
  const i = M(r) ? [] : {};
165
- return W(r, (o, c) => {
165
+ return v(r, (o, c) => {
166
166
  const d = n(o, s + 1);
167
167
  !H(d) && (i[c] = d);
168
168
  }), t[s] = void 0, i;
@@ -171,7 +171,7 @@ const Zt = (e) => {
171
171
  return r;
172
172
  };
173
173
  return n(e, 0);
174
- }, Yt = P("AsyncFunction"), en = (e) => e && (v(e) || A(e)) && A(e.then) && A(e.catch), et = ((e, t) => e ? setImmediate : t ? ((n, r) => (k.addEventListener("message", ({ source: s, data: i }) => {
174
+ }, Yt = P("AsyncFunction"), en = (e) => e && (W(e) || A(e)) && A(e.then) && A(e.catch), et = ((e, t) => e ? setImmediate : t ? ((n, r) => (k.addEventListener("message", ({ source: s, data: i }) => {
175
175
  s === k && i === n && r.length && r.shift()();
176
176
  }, !1), (s) => {
177
177
  r.push(s), k.postMessage(n, "*");
@@ -187,7 +187,7 @@ const Zt = (e) => {
187
187
  isString: St,
188
188
  isNumber: Ge,
189
189
  isBoolean: gt,
190
- isObject: v,
190
+ isObject: W,
191
191
  isPlainObject: ee,
192
192
  isEmptyObject: Rt,
193
193
  isReadableStream: _t,
@@ -204,7 +204,7 @@ const Zt = (e) => {
204
204
  isURLSearchParams: Pt,
205
205
  isTypedArray: Mt,
206
206
  isFileList: Ct,
207
- forEach: W,
207
+ forEach: v,
208
208
  merge: me,
209
209
  extend: Dt,
210
210
  trim: Bt,
@@ -222,8 +222,8 @@ const Zt = (e) => {
222
222
  hasOwnProp: _e,
223
223
  // an alias to avoid ESLint no-prototype-builtins detection
224
224
  reduceDescriptors: Ye,
225
- freezeMethods: vt,
226
- toObjectSet: Wt,
225
+ freezeMethods: Wt,
226
+ toObjectSet: vt,
227
227
  toCamelCase: Vt,
228
228
  noop: Xt,
229
229
  toFiniteNumber: Gt,
@@ -1648,7 +1648,7 @@ function Kn(e) {
1648
1648
  return e.apply(null, n);
1649
1649
  };
1650
1650
  }
1651
- function vn(e) {
1651
+ function Wn(e) {
1652
1652
  return a.isObject(e) && e.isAxiosError === !0;
1653
1653
  }
1654
1654
  const we = {
@@ -1726,7 +1726,7 @@ Object.entries(we).forEach(([e, t]) => {
1726
1726
  we[t] = e;
1727
1727
  });
1728
1728
  function yt(e) {
1729
- const t = new j(e), n = ve(j.prototype.request, t);
1729
+ const t = new j(e), n = We(j.prototype.request, t);
1730
1730
  return a.extend(n, j.prototype, t, { allOwnKeys: !0 }), a.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) {
1731
1731
  return yt(I(e, s));
1732
1732
  }, n;
@@ -1744,7 +1744,7 @@ w.all = function(t) {
1744
1744
  return Promise.all(t);
1745
1745
  };
1746
1746
  w.spread = Kn;
1747
- w.isAxiosError = vn;
1747
+ w.isAxiosError = Wn;
1748
1748
  w.mergeConfig = I;
1749
1749
  w.AxiosHeaders = T;
1750
1750
  w.formToJSON = (e) => at(a.isHTMLForm(e) ? new FormData(e) : e);
@@ -1776,7 +1776,7 @@ let re = {
1776
1776
  };
1777
1777
  async function hr() {
1778
1778
  const e = Ke().currentCountry.value, { data: t } = await w.get(
1779
- "https://country-config-dev.feedmeapi.com",
1779
+ "https://country-config.feedmeapi.com",
1780
1780
  {
1781
1781
  params: { country: e ?? "MY" }
1782
1782
  }
@@ -1796,7 +1796,7 @@ function V(e) {
1796
1796
  (n) => Promise.reject(n)
1797
1797
  ), t;
1798
1798
  }
1799
- class Wn {
1799
+ class vn {
1800
1800
  async Get(t, n, r) {
1801
1801
  return await V(t).get(n, r);
1802
1802
  }
@@ -1813,7 +1813,7 @@ class Wn {
1813
1813
  return await V(t).head(n, r);
1814
1814
  }
1815
1815
  }
1816
- const mr = () => re, yr = new Wn();
1816
+ const mr = () => re, yr = new vn();
1817
1817
  export {
1818
1818
  Yn as A,
1819
1819
  yr as H,
@@ -1,22 +1,22 @@
1
- import { H as d } from "./index-D0LOMBBD.js";
1
+ import { H as d } from "./index-C6_vWPi0.js";
2
2
  import { defineStore as w } from "pinia";
3
3
  import { ref as y } from "vue";
4
4
  import { v as I } from "./v4-CKwdnpQf.js";
5
5
  async function g(e) {
6
6
  return (await d.Get(
7
- "https://api.feedmedev.vip",
7
+ "https://api.feedme.vip",
8
8
  `/template/${e}`
9
9
  )).data;
10
10
  }
11
11
  async function A(e, l, p) {
12
12
  return (await d.Get(
13
- "https://api.feedmedev.vip",
13
+ "https://api.feedme.vip",
14
14
  `/template/${e}/${l}/${p}`
15
15
  )).data;
16
16
  }
17
17
  async function P(e, l, p, m) {
18
18
  return (await d.Put(
19
- "https://api.feedmedev.vip",
19
+ "https://api.feedme.vip",
20
20
  `/template/${e}/${l}/${p.templateId}`,
21
21
  {
22
22
  data: {
@@ -29,7 +29,7 @@ async function P(e, l, p, m) {
29
29
  }
30
30
  async function M(e, l, p) {
31
31
  return (await d.Put(
32
- "https://api.feedmedev.vip",
32
+ "https://api.feedme.vip",
33
33
  `/template/${e}/active${p ? `/${p}` : ""}`,
34
34
  {
35
35
  data: {
@@ -40,19 +40,19 @@ async function M(e, l, p) {
40
40
  }
41
41
  async function b(e, l) {
42
42
  return (await d.Get(
43
- "https://api.feedmedev.vip",
43
+ "https://api.feedme.vip",
44
44
  `/template/${e}/active${l ? `/${l}` : ""}`
45
45
  )).data;
46
46
  }
47
47
  async function U(e, l, p) {
48
48
  return await d.Head(
49
- "https://api.feedmedev.vip",
49
+ "https://api.feedme.vip",
50
50
  `/template/${e}/${l}/${p}`
51
51
  ).then((c) => c.status === 200).catch(() => !1);
52
52
  }
53
53
  async function B(e, l, p) {
54
54
  return (await d.Post(
55
- "https://api.feedmedev.vip",
55
+ "https://api.feedme.vip",
56
56
  `/template/${e}/${l}/rename`,
57
57
  {
58
58
  data: {
@@ -63,7 +63,7 @@ async function B(e, l, p) {
63
63
  }
64
64
  async function x(e, l, p) {
65
65
  return (await d.Delete(
66
- "https://api.feedmedev.vip",
66
+ "https://api.feedme.vip",
67
67
  `/template/${e}/${l}/${p}`
68
68
  )).data;
69
69
  }
@@ -120,7 +120,7 @@ const i = {
120
120
  t
121
121
  );
122
122
  }
123
- async function v(a, t) {
123
+ async function o(a, t) {
124
124
  i.setMainPageTemplateId(
125
125
  a,
126
126
  e.value.selectedTemplate.templateId,
@@ -129,7 +129,7 @@ const i = {
129
129
  e.value.activeTemplateId = e.value.selectedTemplate.templateId;
130
130
  });
131
131
  }
132
- function o(a = {}) {
132
+ function f(a = {}) {
133
133
  let t = "Untitled", s = 2;
134
134
  e.value.allTemplates.forEach((r) => {
135
135
  if (!r.templateAlias.startsWith("Untitled")) return;
@@ -145,7 +145,7 @@ const i = {
145
145
  };
146
146
  e.value.allTemplates.push(n), e.value.selectedTemplate = n;
147
147
  }
148
- async function f(a, t, s) {
148
+ async function v(a, t, s) {
149
149
  await i.renameTemplate(a, t, s).then(() => {
150
150
  var n;
151
151
  e.value.allTemplates = e.value.allTemplates.map((r) => r.templateId === t ? {
@@ -185,9 +185,9 @@ const i = {
185
185
  getMainTemplateId: m,
186
186
  setSelectedTemplate: c,
187
187
  saveTemplate: T,
188
- setMainPageTemplate: v,
189
- addNewTemplate: o,
190
- renameTemplate: f,
188
+ setMainPageTemplate: o,
189
+ addNewTemplate: f,
190
+ renameTemplate: v,
191
191
  deleteTemplate: h,
192
192
  unpublishTemplate: $
193
193
  };
@@ -1,4 +1,4 @@
1
- import { B as u } from "./index-C7Ax57OZ.js";
1
+ import { B as u } from "./index-CjXPwLCp.js";
2
2
  import { defineStore as a } from "pinia";
3
3
  import { ref as r } from "vue";
4
4
  const c = a("business", () => {