@feedmepos/mf-brand-app-builder 0.5.32-prod → 0.5.33-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.
@@ -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-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-DeuGxi5J.js";
10
+ import { C as $a, _ as yo, a as vo } from "./main-Bsoyt2_M.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-ChqSdT0a.js";
14
+ import { u as Ea } from "./index-Bi5NByw1.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-BdcT6w5B.js";
16
+ import { F as So, a as Ao } from "./app-P1hJEtTw.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}.feedme.vip".replace("{slug}", `${r.currentBusiness.value.url ?? ((v = r.currentBusiness.value) == null ? void 0 : v.id)}`)}`;
6608
+ const f = `${"https://{slug}.feedmedev.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}.feedme.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}.feedmedev.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 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-DeuGxi5J.js";
4
+ import "./main-Bsoyt2_M.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-BdcT6w5B.js";
2
+ import { F as f } from "./app-P1hJEtTw.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-CjXPwLCp.js";
3
+ import { B as h } from "./index-C7Ax57OZ.js";
4
4
  import { K as q } from "./vue-sonner-CBFYmm8_.js";
5
- import { r as I, I as T } from "./image-S7-2rbQS.js";
5
+ import { r as I, I as T } from "./image-D_Djf1PS.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}.feedme.vip".replace("https://{slug}", "")
513
+ () => "https://{slug}.feedmedev.vip".replace("https://{slug}", "")
514
514
  );
515
515
  function B() {
516
516
  var t, e;
517
517
  navigator.clipboard.writeText(
518
- "https://{slug}.feedme.vip".replace(
518
+ "https://{slug}.feedmedev.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.feedme.cc/business/${s.currentBusiness.value._id}/${c.imagePath}`,
577
+ thumbnail: `https://image.feedmedev.cc/business/${s.currentBusiness.value._id}/${c.imagePath}`,
578
578
  coverPhoto: s.currentBusiness.value.coverPhoto
579
- }), a.value.thumbnail = `https://image.feedme.cc/business/${s.currentBusiness.value._id}/${c.imagePath}`;
579
+ }), a.value.thumbnail = `https://image.feedmedev.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-CPs0rWCO.js";
2
+ import { u as Z } from "./index-Bk6TOZrx.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";
@@ -5932,6 +5932,7 @@ const Ln = {
5932
5932
  voucherLinkCopied: "Voucher link copied.",
5933
5933
  limitedRedemptions: "Limited to {max} redemptions per user.",
5934
5934
  noLimitRedemptions: "No limit on redemption per user.",
5935
+ availableSelectedStores: "Available at selected stores only. ({stores})",
5935
5936
  availableAllStores: "Available at all stores."
5936
5937
  },
5937
5938
  orderHistoryCard: {
@@ -6453,6 +6454,7 @@ const Ln = {
6453
6454
  voucherLinkCopied: "优惠券链接已复制。",
6454
6455
  limitedRedemptions: "每位用户限制兑换 {max} 次。",
6455
6456
  noLimitRedemptions: "每位用户兑换次数无限制。",
6457
+ availableSelectedStores: "仅在指定门店可用。({stores})",
6456
6458
  availableAllStores: "在所有门店可用。"
6457
6459
  },
6458
6460
  orderHistoryCard: {
@@ -6982,6 +6984,7 @@ const Ln = {
6982
6984
  voucherLinkCopied: "優惠券鏈接已複製。",
6983
6985
  limitedRedemptions: "每位用戶限制兌換 {max} 次。",
6984
6986
  noLimitRedemptions: "每位用戶兌換次數無限制。",
6987
+ availableSelectedStores: "僅在指定門店可用。({stores})",
6985
6988
  availableAllStores: "在所有門店可用。"
6986
6989
  },
6987
6990
  orderHistoryCard: {
@@ -7510,6 +7513,7 @@ const Ln = {
7510
7513
  voucherLinkCopied: "คัดลอกลิงก์คูปองแล้ว",
7511
7514
  limitedRedemptions: "จำกัดการแลก {max} ครั้งต่อผู้ใช้",
7512
7515
  noLimitRedemptions: "ไม่จำกัดการแลกต่อผู้ใช้",
7516
+ availableSelectedStores: "มีให้บริการเฉพาะร้านที่เลือกเท่านั้น ({stores})",
7513
7517
  availableAllStores: "มีให้บริการทุกร้าน"
7514
7518
  },
7515
7519
  orderHistoryCard: {
@@ -8059,6 +8063,7 @@ const Ln = {
8059
8063
  voucherLinkCopied: "쿠폰 링크가 복사되었습니다.",
8060
8064
  limitedRedemptions: "사용자당 {max}회 사용으로 제한됩니다.",
8061
8065
  noLimitRedemptions: "사용자당 사용 횟수 제한 없음.",
8066
+ availableSelectedStores: "일부 매장에서만 이용 가능합니다. ({stores})",
8062
8067
  availableAllStores: "모든 매장에서 이용 가능합니다."
8063
8068
  },
8064
8069
  orderHistoryCard: {
@@ -8608,6 +8613,7 @@ const Ln = {
8608
8613
  voucherLinkCopied: "Đã sao chép liên kết phiếu giảm giá.",
8609
8614
  limitedRedemptions: "Giới hạn {max} lần đổi mỗi người dùng.",
8610
8615
  noLimitRedemptions: "Không giới hạn số lần đổi mỗi người dùng.",
8616
+ availableSelectedStores: "Chỉ có tại các cửa hàng được chọn. ({stores})",
8611
8617
  availableAllStores: "Có tại tất cả các cửa hàng."
8612
8618
  },
8613
8619
  orderHistoryCard: {
@@ -9127,6 +9133,7 @@ const Ln = {
9127
9133
  voucherLinkCopied: "Pautan baucar telah disalin.",
9128
9134
  limitedRedemptions: "Terhad kepada {max} penebusan bagi setiap pengguna.",
9129
9135
  noLimitRedemptions: "Tiada had penebusan bagi setiap pengguna.",
9136
+ availableSelectedStores: "Tersedia di cawangan terpilih sahaja. ({stores})",
9130
9137
  availableAllStores: "Tersedia di semua cawangan."
9131
9138
  },
9132
9139
  orderHistoryCard: {
@@ -9393,12 +9400,12 @@ const Ln = {
9393
9400
  {
9394
9401
  path: "/",
9395
9402
  name: "brandkit",
9396
- component: () => import("./BrandkitView-EhVtIrcJ.js")
9403
+ component: () => import("./BrandkitView-DfjrGwmH.js")
9397
9404
  },
9398
9405
  {
9399
9406
  path: "/projects",
9400
9407
  name: "projects",
9401
- component: () => import("./ProjectView-DKXRpIC6.js")
9408
+ component: () => import("./ProjectView-ByxaVBFb.js")
9402
9409
  },
9403
9410
  {
9404
9411
  path: "/builder",
@@ -9407,7 +9414,7 @@ const Ln = {
9407
9414
  {
9408
9415
  path: ":templateId(.*)*",
9409
9416
  name: "builder",
9410
- component: () => import("./BuilderView-CY98b-6c.js")
9417
+ component: () => import("./BuilderView-CkHuNWOP.js")
9411
9418
  }
9412
9419
  ]
9413
9420
  },
@@ -9420,12 +9427,12 @@ const Ln = {
9420
9427
  {
9421
9428
  path: "assets",
9422
9429
  name: "settings-assets",
9423
- component: () => import("./AssetsSettings-F-AJxGfJ.js")
9430
+ component: () => import("./AssetsSettings-EAeO3NaT.js")
9424
9431
  },
9425
9432
  {
9426
9433
  path: "management",
9427
9434
  name: "settings-management",
9428
- component: () => import("./ManagementSettings-CywfdXkh.js")
9435
+ component: () => import("./ManagementSettings--4kOBME_.js")
9429
9436
  }
9430
9437
  ]
9431
9438
  },
@@ -14103,7 +14110,7 @@ const Eu = (e) => {
14103
14110
  ),
14104
14111
  BaListRepeater: G(
14105
14112
  V(
14106
- () => import("./ListRepeater-Mdj8WnXl.js")
14113
+ () => import("./ListRepeater-ygi8XTiR.js")
14107
14114
  )
14108
14115
  ),
14109
14116
  BaTextStyleList: G(
@@ -14123,13 +14130,13 @@ const Eu = (e) => {
14123
14130
  ),
14124
14131
  BaImageUpload: G(
14125
14132
  V(
14126
- () => import("./ImageUpload-digirpp3.js")
14133
+ () => import("./ImageUpload-BEj0dhz8.js")
14127
14134
  ),
14128
14135
  { props: ["ignoreUpdate"] }
14129
14136
  ),
14130
14137
  BaLinkButton: G(
14131
14138
  V(
14132
- () => import("./LinkButton-DNXBKGCn.js")
14139
+ () => import("./LinkButton-De-YNclu.js")
14133
14140
  )
14134
14141
  ),
14135
14142
  BaSwitch: G(
@@ -14152,7 +14159,7 @@ const Eu = (e) => {
14152
14159
  "ko-KR": { ...Hn, ...xi },
14153
14160
  "vi-VN": { ...zn, ...Ni },
14154
14161
  "ms-MY": { ...ai, ...Ki }
14155
- }, Vu = V(() => import("./App-DHLE1aK8.js"));
14162
+ }, Vu = V(() => import("./App-7wbhEmII.js"));
14156
14163
  export {
14157
14164
  hn as F,
14158
14165
  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-BdcT6w5B.js";
2
+ import { c as i, d as o, i as e, r as m } from "./app-P1hJEtTw.js";
3
3
  export {
4
4
  i as FmApp,
5
5
  o as FormKitPlugin,
@@ -260,6 +260,7 @@ export declare const i18nMessages: {
260
260
  voucherLinkCopied: string;
261
261
  limitedRedemptions: string;
262
262
  noLimitRedemptions: string;
263
+ availableSelectedStores: string;
263
264
  availableAllStores: string;
264
265
  };
265
266
  orderHistoryCard: {
@@ -1520,6 +1521,7 @@ export declare const i18nMessages: {
1520
1521
  voucherLinkCopied: string;
1521
1522
  limitedRedemptions: string;
1522
1523
  noLimitRedemptions: string;
1524
+ availableSelectedStores: string;
1523
1525
  availableAllStores: string;
1524
1526
  };
1525
1527
  orderHistoryCard: {
@@ -2789,6 +2791,7 @@ export declare const i18nMessages: {
2789
2791
  voucherLinkCopied: string;
2790
2792
  limitedRedemptions: string;
2791
2793
  noLimitRedemptions: string;
2794
+ availableSelectedStores: string;
2792
2795
  availableAllStores: string;
2793
2796
  };
2794
2797
  orderHistoryCard: {
@@ -4057,6 +4060,7 @@ export declare const i18nMessages: {
4057
4060
  voucherLinkCopied: string;
4058
4061
  limitedRedemptions: string;
4059
4062
  noLimitRedemptions: string;
4063
+ availableSelectedStores: string;
4060
4064
  availableAllStores: string;
4061
4065
  };
4062
4066
  orderHistoryCard: {
@@ -5346,6 +5350,7 @@ export declare const i18nMessages: {
5346
5350
  voucherLinkCopied: string;
5347
5351
  limitedRedemptions: string;
5348
5352
  noLimitRedemptions: string;
5353
+ availableSelectedStores: string;
5349
5354
  availableAllStores: string;
5350
5355
  };
5351
5356
  orderHistoryCard: {
@@ -6801,6 +6806,7 @@ export declare const i18nMessages: {
6801
6806
  voucherLinkCopied: string;
6802
6807
  limitedRedemptions: string;
6803
6808
  noLimitRedemptions: string;
6809
+ availableSelectedStores: string;
6804
6810
  availableAllStores: string;
6805
6811
  };
6806
6812
  orderHistoryCard: {
@@ -8226,6 +8232,7 @@ export declare const i18nMessages: {
8226
8232
  voucherLinkCopied: string;
8227
8233
  limitedRedemptions: string;
8228
8234
  noLimitRedemptions: string;
8235
+ availableSelectedStores: string;
8229
8236
  availableAllStores: string;
8230
8237
  };
8231
8238
  orderHistoryCard: {
@@ -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-CjXPwLCp.js";
1
+ import { B as u } from "./index-C7Ax57OZ.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,130 @@
1
+ import { H as a, a as i } from "./index-D0LOMBBD.js";
2
+ const d = () => i().PORTAL_V2_BACKEND, o = () => i().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 c(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 u(t) {
27
+ return (await a.Get(
28
+ "https://api.feedmedev.vip",
29
+ `/metadata/${t}/config`
30
+ )).data;
31
+ }
32
+ async function f(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 m(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 l(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 v(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 y(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 $(t, e) {
80
+ return await a.Put(
81
+ d(),
82
+ `businesses/${t}/profile`,
83
+ {
84
+ data: e
85
+ }
86
+ ).catch((n) => {
87
+ var r;
88
+ throw (r = n.response) == null ? void 0 : r.data;
89
+ });
90
+ }
91
+ async function w(t) {
92
+ return await a.Get(
93
+ o(),
94
+ `api/business/${t}/feature/miniprogram`
95
+ ).then((e) => e.data).catch(() => !1);
96
+ }
97
+ async function g(t) {
98
+ return (await a.Get(
99
+ "https://api.feedmedev.vip",
100
+ `/metadata/${t}/credentials`,
101
+ {}
102
+ )).data;
103
+ }
104
+ async function B(t, e) {
105
+ return (await a.Post(
106
+ "https://api.feedmedev.vip",
107
+ `/metadata/${t}/credentials`,
108
+ {
109
+ data: e
110
+ }
111
+ )).data;
112
+ }
113
+ const P = {
114
+ getGlobalSlug: p,
115
+ setShortUrl: c,
116
+ getBusinessMetadata: u,
117
+ setBusinessMetadata: f,
118
+ getBusinessBrandkit: m,
119
+ setBusinessBrandkit: h,
120
+ getTemplateHistory: l,
121
+ restoreTemplateVersion: v,
122
+ clearTemplateHistory: y,
123
+ updateBusinessProfile: $,
124
+ getBusinessPremiumStatus: w,
125
+ getCredentials: g,
126
+ updateCredentials: B
127
+ };
128
+ export {
129
+ P as B
130
+ };