@feedmepos/mf-brand-app-builder 0.5.40-prod → 0.5.42-dev.1

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.
Files changed (24) hide show
  1. package/dist/{App-OEfPstzM.js → App-D0BsP8P7.js} +8 -8
  2. package/dist/{AssetsSettings-Do8rt2sU.js → AssetsSettings-DtZ6goQl.js} +22 -22
  3. package/dist/{BrandkitView-Cy22D0w9.js → BrandkitView-DqNPdX8G.js} +2785 -2783
  4. package/dist/{BuilderView-KDpmX5Hq.js → BuilderView-CXG1etim.js} +7 -7
  5. package/dist/{CredentialSettings-BB_Yroul.js → CredentialSettings-3eVBw1x8.js} +1 -1
  6. package/dist/{ImageUpload-BKvBZ31W.js → ImageUpload-CObdbqY-.js} +8 -8
  7. package/dist/{LinkButton-DNXBKGCn.js → LinkButton-De-YNclu.js} +1 -1
  8. package/dist/{ListRepeater-zIG-jF4t.js → ListRepeater-DrLoinAr.js} +1 -1
  9. package/dist/{ManagementSettings-CgEqhej5.js → ManagementSettings-WLFOtGtA.js} +6 -6
  10. package/dist/{ProjectView-DSLzbIBe.js → ProjectView-_4GF49of.js} +3 -3
  11. package/dist/{app-esM7ujct.js → app-B0xfN9w3.js} +10 -10
  12. package/dist/app.js +1 -1
  13. package/dist/{dayjs.min-2a7QqJib.js → dayjs.min-CgH9V6PS.js} +1 -1
  14. package/dist/{image-S7-2rbQS.js → image-D_Djf1PS.js} +7 -7
  15. package/dist/{index-BpYD24Jn.js → index-BA2J-Ffh.js} +1 -1
  16. package/dist/{index-CPs0rWCO.js → index-Bk6TOZrx.js} +15 -15
  17. package/dist/index-CVVQJJYY.js +134 -0
  18. package/dist/{index-C6_vWPi0.js → index-D0LOMBBD.js} +27 -27
  19. package/dist/{main-D7XKWEsG.js → main-OTSZWPL_.js} +3 -3
  20. package/dist/package.json +2 -1
  21. package/dist/style.css +1 -1
  22. package/dist/{useBusinessFeatureFlag-BUVsmqVs.js → useBusinessFeatureFlag-CkwnzZRa.js} +1 -1
  23. package/package.json +2 -1
  24. package/dist/index-CP6_oC8N.js +0 -134
@@ -1,18 +1,18 @@
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 ne, createElementBlock as Z, openBlock as N, Fragment as Be, renderList as vt, createElementVNode as w, createVNode as _, createBlock as ae, createCommentVNode as K, toDisplayString as z, 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-CPs0rWCO.js";
2
+ import { T as po, u as Ge } from "./index-Bk6TOZrx.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-C6_vWPi0.js";
5
+ import { A as go } from "./index-D0LOMBBD.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-D7XKWEsG.js";
10
+ import { C as $a, _ as yo, a as vo } from "./main-OTSZWPL_.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-BpYD24Jn.js";
15
- import { u as Io, F as Eo, a as So } from "./app-esM7ujct.js";
14
+ import { u as Ea } from "./index-BA2J-Ffh.js";
15
+ import { u as Io, F as Eo, a as So } from "./app-B0xfN9w3.js";
16
16
  import { K as Ao, V as Lo } from "./vue-sonner-CBFYmm8_.js";
17
17
  /**!
18
18
  * Sortable 1.14.0
@@ -6613,7 +6613,7 @@ const ni = { class: "mb-24" }, oi = { class: "fm-typo-en-title-lg-700 text-fm-co
6613
6613
  }
6614
6614
  async function C() {
6615
6615
  var v;
6616
- const f = `${"https://{slug}.feedme.vip".replace("{slug}", `${r.currentBusiness.value.url ?? ((v = r.currentBusiness.value) == null ? void 0 : v.id)}`)}`;
6616
+ const f = `${"https://{slug}.feedmedev.vip".replace("{slug}", `${r.currentBusiness.value.url ?? ((v = r.currentBusiness.value) == null ? void 0 : v.id)}`)}`;
6617
6617
  l.promise(
6618
6618
  async () => {
6619
6619
  var k;
@@ -8182,7 +8182,7 @@ _t.toString = Fa.bind(null, function(t, e, a) {
8182
8182
  const _l = { class: "flex items-center justify-center" }, wl = { class: "w-full flex gap-8 justify-end items-center" }, Il = /* @__PURE__ */ se({
8183
8183
  __name: "PreviewQrCode",
8184
8184
  setup(t) {
8185
- const e = Q(), a = We(), n = Ge(), { t: o } = Ze(), r = Q(!1), l = ne(() => `${`${"https://{slug}.feedme.vip".replace("{slug}", `${a.currentBusiness.value.url ?? a.currentBusiness.value._id}`)}`}/preview/${n.state.selectedTemplate.templateId}`);
8185
+ const e = Q(), a = We(), n = Ge(), { t: o } = Ze(), r = Q(!1), l = ne(() => `${`${"https://{slug}.feedmedev.vip".replace("{slug}", `${a.currentBusiness.value.url ?? a.currentBusiness.value._id}`)}`}/preview/${n.state.selectedTemplate.templateId}`);
8186
8186
  function i() {
8187
8187
  Ao.promise(navigator.clipboard.writeText(l.value), {
8188
8188
  loading: o("brand.template.shareMenu.copying"),
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as B, ref as d, watch as S, resolveComponent as k, createElementBlock as f, openBlock as c, createCommentVNode as w, createBlock as K, renderSlot as D, toDisplayString as F, createElementVNode as m, createVNode as t, Fragment as I } from "vue";
2
- import { B as P } from "./index-CP6_oC8N.js";
2
+ import { B as P } from "./index-CVVQJJYY.js";
3
3
  import { useCoreStore as N, useI18n as $ } from "@feedmepos/mf-common";
4
4
  import { K as j } from "./vue-sonner-CBFYmm8_.js";
5
5
  const O = { key: 0 }, R = { class: "rounded-md border-2 border-dashed border-fm-color-primary p-16 flex flex-col gap-8 items-center mt-4" }, T = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, b = /* @__PURE__ */ B({
@@ -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 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";
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";
3
3
  import { useCoreStore as I } from "@feedmepos/mf-common";
4
- import "./main-D7XKWEsG.js";
4
+ import "./main-OTSZWPL_.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.feedme.cc/business/${a.currentBusiness.value._id}/${m.imagePath}`;
25
+ const l = `https://image.feedmedev.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 f;
30
- ((f = e.context.node.at("$root")) == null ? void 0 : f._value).containerStyles.height = `${Math.min(n.height, 400)}px`;
29
+ var d;
30
+ ((d = e.context.node.at("$root")) == null ? void 0 : d._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)) : d("", !0),
63
+ ], 64)) : f("", !0),
64
64
  t.value ? (s(), r("div", z, [
65
65
  c(u(k))
66
- ])) : d("", !0)
66
+ ])) : f("", !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-CPs0rWCO.js";
4
+ import { u as $ } from "./index-Bk6TOZrx.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-esM7ujct.js";
2
+ import { F as f } from "./app-B0xfN9w3.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 F, ref as _, computed as I, watch as V, resolveComponent as d, createElementBlock as b, openBlock as p, createElementVNode as o, createVNode as m, toDisplayString as B, unref as l, createBlock as q, createCommentVNode as T, withCtx as A } from "vue";
2
2
  import { useCoreStore as R, useI18n as N } from "@feedmepos/mf-common";
3
- import { B as g } from "./index-CP6_oC8N.js";
3
+ import { B as g } from "./index-CVVQJJYY.js";
4
4
  import { K as x } from "./vue-sonner-CBFYmm8_.js";
5
- import { r as D, I as j } from "./image-S7-2rbQS.js";
5
+ import { r as D, I as j } from "./image-D_Djf1PS.js";
6
6
  import { useSnackbar as E } from "@feedmepos/ui-library";
7
7
  const K = new RegExp(/^[a-z0-9][a-z0-9\-]{4,}[a-z0-9]$/), L = [
8
8
  "brand",
@@ -510,7 +510,7 @@ const K = new RegExp(/^[a-z0-9][a-z0-9\-]{4,}[a-z0-9]$/), L = [
510
510
  url: "",
511
511
  thumbnail: ""
512
512
  }), z = I(
513
- () => "https://{slug}.feedme.vip".replace("https://{slug}", "")
513
+ () => "https://{slug}.feedmedev.vip".replace("https://{slug}", "")
514
514
  );
515
515
  function f(t) {
516
516
  var n;
@@ -525,7 +525,7 @@ const K = new RegExp(/^[a-z0-9][a-z0-9\-]{4,}[a-z0-9]$/), L = [
525
525
  function C() {
526
526
  var t;
527
527
  navigator.clipboard.writeText(
528
- "https://{slug}.feedme.vip".replace(
528
+ "https://{slug}.feedmedev.vip".replace(
529
529
  "{slug}",
530
530
  f((t = e.currentBusiness.value) == null ? void 0 : t.url)
531
531
  )
@@ -603,9 +603,9 @@ const K = new RegExp(/^[a-z0-9][a-z0-9\-]{4,}[a-z0-9]$/), L = [
603
603
  await g.updateBusinessProfile(e.currentBusiness.value._id, {
604
604
  name: s.value.name,
605
605
  url: s.value.url,
606
- thumbnail: `https://image.feedme.cc/business/${e.currentBusiness.value._id}/${u.imagePath}`,
606
+ thumbnail: `https://image.feedmedev.cc/business/${e.currentBusiness.value._id}/${u.imagePath}`,
607
607
  coverPhoto: e.currentBusiness.value.coverPhoto
608
- }), e.currentBusiness.value.thumbnail = `https://image.feedme.cc/business/${e.currentBusiness.value._id}/${u.imagePath}`, s.value.thumbnail = `https://image.feedme.cc/business/${e.currentBusiness.value._id}/${u.imagePath}`;
608
+ }), e.currentBusiness.value.thumbnail = `https://image.feedmedev.cc/business/${e.currentBusiness.value._id}/${u.imagePath}`, s.value.thumbnail = `https://image.feedmedev.cc/business/${e.currentBusiness.value._id}/${u.imagePath}`;
609
609
  });
610
610
  }
611
611
  return V(
@@ -1,10 +1,10 @@
1
1
  import { defineComponent as S, createElementBlock as D, openBlock as a, normalizeClass as F, createElementVNode as O, toDisplayString as H, ref as P, computed as v, watch as K, resolveComponent as w, unref as i, Fragment as J, renderList as W, createVNode as B, createCommentVNode as E, createBlock as l, withCtx as u, h as L } from "vue";
2
- import { u as Z } from "./index-CPs0rWCO.js";
2
+ import { u as Z } from "./index-Bk6TOZrx.js";
3
3
  import { useCoreStore as q, useI18n as b } from "@feedmepos/mf-common";
4
4
  import { p as y } from "./views-BDWw3w14.js";
5
5
  import { useRouter as X } from "vue-router";
6
- import { d as p } from "./dayjs.min-2a7QqJib.js";
7
- import { g as V, c as _, u as $ } from "./app-esM7ujct.js";
6
+ import { d as p } from "./dayjs.min-CgH9V6PS.js";
7
+ import { g as V, c as _, u as $ } from "./app-B0xfN9w3.js";
8
8
  import { useDialog as oo, components as eo } from "@feedmepos/ui-library";
9
9
  import { K as m } from "./vue-sonner-CBFYmm8_.js";
10
10
  var z = { exports: {} };
@@ -11416,23 +11416,23 @@ const at = (e) => ({
11416
11416
  })
11417
11417
  }
11418
11418
  }), Ko = qe(
11419
- W(() => import("./BrandkitView-Cy22D0w9.js"))
11419
+ W(() => import("./BrandkitView-DqNPdX8G.js"))
11420
11420
  ), Zo = qe(
11421
- W(() => import("./ProjectView-DSLzbIBe.js"))
11421
+ W(() => import("./ProjectView-_4GF49of.js"))
11422
11422
  ), Jo = qe(
11423
- W(() => import("./BuilderView-KDpmX5Hq.js"))
11423
+ W(() => import("./BuilderView-CXG1etim.js"))
11424
11424
  ), _o = qe(
11425
11425
  W(
11426
- () => import("./AssetsSettings-Do8rt2sU.js")
11426
+ () => import("./AssetsSettings-DtZ6goQl.js")
11427
11427
  )
11428
11428
  ), $o = qe(
11429
11429
  W(
11430
- () => import("./ManagementSettings-CgEqhej5.js")
11430
+ () => import("./ManagementSettings-WLFOtGtA.js")
11431
11431
  )
11432
11432
  );
11433
11433
  qe(
11434
11434
  W(
11435
- () => import("./CredentialSettings-BB_Yroul.js")
11435
+ () => import("./CredentialSettings-3eVBw1x8.js")
11436
11436
  )
11437
11437
  );
11438
11438
  const el = at([
@@ -16167,7 +16167,7 @@ const tg = (e) => {
16167
16167
  ),
16168
16168
  BaListRepeater: ne(
16169
16169
  W(
16170
- () => import("./ListRepeater-zIG-jF4t.js")
16170
+ () => import("./ListRepeater-DrLoinAr.js")
16171
16171
  )
16172
16172
  ),
16173
16173
  BaTextStyleList: ne(
@@ -16187,13 +16187,13 @@ const tg = (e) => {
16187
16187
  ),
16188
16188
  BaImageUpload: ne(
16189
16189
  W(
16190
- () => import("./ImageUpload-BKvBZ31W.js")
16190
+ () => import("./ImageUpload-CObdbqY-.js")
16191
16191
  ),
16192
16192
  { props: ["ignoreUpdate"] }
16193
16193
  ),
16194
16194
  BaLinkButton: ne(
16195
16195
  W(
16196
- () => import("./LinkButton-DNXBKGCn.js")
16196
+ () => import("./LinkButton-De-YNclu.js")
16197
16197
  )
16198
16198
  ),
16199
16199
  BaSwitch: ne(
@@ -16216,7 +16216,7 @@ const tg = (e) => {
16216
16216
  "ko-KR": { ...ur, ...as },
16217
16217
  "vi-VN": { ...br, ...ls },
16218
16218
  "ms-MY": { ...Tr, ...ps }
16219
- }, ng = W(() => import("./App-OEfPstzM.js"));
16219
+ }, ng = W(() => import("./App-D0BsP8P7.js"));
16220
16220
  export {
16221
16221
  Si as F,
16222
16222
  Li as a,
package/dist/app.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "vue";
2
- import { d as i, f as o, i as e, r as m } from "./app-esM7ujct.js";
2
+ import { d as i, f as o, i as e, r as m } from "./app-B0xfN9w3.js";
3
3
  export {
4
4
  i as FmApp,
5
5
  o as FormKitPlugin,
@@ -1,4 +1,4 @@
1
- import { g as Q, c as K } from "./app-esM7ujct.js";
1
+ import { g as Q, c as K } from "./app-B0xfN9w3.js";
2
2
  var E = { exports: {} };
3
3
  (function(V, X) {
4
4
  (function(W, k) {
@@ -1,9 +1,9 @@
1
- import { H as r, a as p } from "./index-C6_vWPi0.js";
1
+ import { H as r, a as p } from "./index-D0LOMBBD.js";
2
2
  const i = () => p().PWA_ICON_SERVICE_BACKEND;
3
- async function s(e, t, a) {
3
+ async function d(e, t, a) {
4
4
  const n = new FormData();
5
5
  return n.append("file", a), (await r.Put(
6
- "https://api.feedme.vip",
6
+ "https://api.feedmedev.vip",
7
7
  `/image/${e}/${t}`,
8
8
  {
9
9
  headers: {
@@ -13,9 +13,9 @@ async function s(e, t, a) {
13
13
  }
14
14
  )).data;
15
15
  }
16
- async function d(e, t) {
16
+ async function s(e, t) {
17
17
  return (await r.Delete(
18
- "https://api.feedme.vip",
18
+ "https://api.feedmedev.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: s,
33
- deleteImage: d,
32
+ uploadImage: d,
33
+ deleteImage: s,
34
34
  uploadAppIcon: o
35
35
  };
36
36
  function u(e) {
@@ -1,4 +1,4 @@
1
- import { B as u } from "./index-CP6_oC8N.js";
1
+ import { B as u } from "./index-CVVQJJYY.js";
2
2
  import { defineStore as a } from "pinia";
3
3
  import { ref as r } from "vue";
4
4
  const c = a("business", () => {
@@ -1,22 +1,22 @@
1
- import { H as d } from "./index-C6_vWPi0.js";
1
+ import { H as d } from "./index-D0LOMBBD.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.feedme.vip",
7
+ "https://api.feedmedev.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.feedme.vip",
13
+ "https://api.feedmedev.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.feedme.vip",
19
+ "https://api.feedmedev.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.feedme.vip",
32
+ "https://api.feedmedev.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.feedme.vip",
43
+ "https://api.feedmedev.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.feedme.vip",
49
+ "https://api.feedmedev.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.feedme.vip",
55
+ "https://api.feedmedev.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.feedme.vip",
66
+ "https://api.feedmedev.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 o(a, t) {
123
+ async function v(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 f(a = {}) {
132
+ function o(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 v(a, t, s) {
148
+ async function f(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: o,
189
- addNewTemplate: f,
190
- renameTemplate: v,
188
+ setMainPageTemplate: v,
189
+ addNewTemplate: o,
190
+ renameTemplate: f,
191
191
  deleteTemplate: h,
192
192
  unpublishTemplate: $
193
193
  };
@@ -0,0 +1,134 @@
1
+ import { H as a, a as d } from "./index-D0LOMBBD.js";
2
+ const o = () => d().PORTAL_V2_BACKEND, c = () => d().LICENSE_BACKEND;
3
+ async function p(t) {
4
+ return (await a.Get(
5
+ "https://api.feedmedev.vip",
6
+ `/short-url/${t}`
7
+ )).data;
8
+ }
9
+ async function u(t, e, s) {
10
+ return await a.Post(
11
+ "https://api.feedmedev.vip",
12
+ "/short-url",
13
+ {
14
+ data: {
15
+ slug: t,
16
+ oldSlug: e,
17
+ type: "BUSINESS",
18
+ businessId: s
19
+ }
20
+ }
21
+ ).then((n) => n.data).catch((n) => {
22
+ var r;
23
+ throw (r = n.response) == null ? void 0 : r.data;
24
+ });
25
+ }
26
+ async function f(t) {
27
+ return (await a.Get(
28
+ "https://api.feedmedev.vip",
29
+ `/metadata/${t}/config`
30
+ )).data;
31
+ }
32
+ async function m(t, e, s) {
33
+ return (await a.Post(
34
+ "https://api.feedmedev.vip",
35
+ `/metadata/${t}/config`,
36
+ {
37
+ data: {
38
+ name: e,
39
+ backgroundColor: "#ffffff",
40
+ country: s
41
+ }
42
+ }
43
+ )).data;
44
+ }
45
+ async function l(t) {
46
+ return (await a.Get(
47
+ "https://api.feedmedev.vip",
48
+ `/metadata/${t}/brandkit`
49
+ )).data;
50
+ }
51
+ async function h(t, e) {
52
+ return (await a.Post(
53
+ "https://api.feedmedev.vip",
54
+ `/metadata/${t}/brandkit`,
55
+ {
56
+ data: e
57
+ }
58
+ )).data;
59
+ }
60
+ async function v(t, e) {
61
+ return (await a.Get(
62
+ "https://api.feedmedev.vip",
63
+ `/metadata/${t}/brandkit/template-history/${e}`
64
+ )).data;
65
+ }
66
+ async function y(t, e, s) {
67
+ return (await a.Post(
68
+ "https://api.feedmedev.vip",
69
+ `/metadata/${t}/brandkit/template-restore/${e}/${s}`,
70
+ {}
71
+ )).data;
72
+ }
73
+ async function $(t, e) {
74
+ return (await a.Delete(
75
+ "https://api.feedmedev.vip",
76
+ `/metadata/${t}/brandkit/template-history/${e}`
77
+ )).data;
78
+ }
79
+ async function w(t, e) {
80
+ const s = {
81
+ ...e,
82
+ url: e.url || t
83
+ };
84
+ return await a.Put(
85
+ o(),
86
+ `businesses/${t}/profile`,
87
+ {
88
+ data: s
89
+ }
90
+ ).catch((r) => {
91
+ var i;
92
+ throw (i = r.response) == null ? void 0 : i.data;
93
+ });
94
+ }
95
+ async function g(t) {
96
+ return await a.Get(
97
+ c(),
98
+ `api/business/${t}/feature/miniprogram`
99
+ ).then((e) => e.data).catch(() => !1);
100
+ }
101
+ async function B(t) {
102
+ return (await a.Get(
103
+ "https://api.feedmedev.vip",
104
+ `/metadata/${t}/credentials`,
105
+ {}
106
+ )).data;
107
+ }
108
+ async function P(t, e) {
109
+ return (await a.Post(
110
+ "https://api.feedmedev.vip",
111
+ `/metadata/${t}/credentials`,
112
+ {
113
+ data: e
114
+ }
115
+ )).data;
116
+ }
117
+ const k = {
118
+ getGlobalSlug: p,
119
+ setShortUrl: u,
120
+ getBusinessMetadata: f,
121
+ setBusinessMetadata: m,
122
+ getBusinessBrandkit: l,
123
+ setBusinessBrandkit: h,
124
+ getTemplateHistory: v,
125
+ restoreTemplateVersion: y,
126
+ clearTemplateHistory: $,
127
+ updateBusinessProfile: w,
128
+ getBusinessPremiumStatus: g,
129
+ getCredentials: B,
130
+ updateCredentials: P
131
+ };
132
+ export {
133
+ k as B
134
+ };