@feedmepos/mf-brand-app-builder 0.5.30-dev.9 → 0.5.30-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,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 Le, renderList as vt, createElementVNode as I, createVNode as w, createBlock as ae, createCommentVNode as Q, toDisplayString as j, unref as v, 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-BnzFvnTW.js";
10
+ import { C as $a, _ as yo, a as vo } from "./main-CwLlNXN5.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-C1rSMuKA.js";
14
+ import { u as Ea } from "./index-CawZ03Z8.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-BnpB2s4j.js";
16
+ import { F as So, a as Ao } from "./app-DYoWllXs.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 y;
6608
- const f = `${"https://{slug}.feedmedev.vip".replace("{slug}", `${r.currentBusiness.value.url ?? ((y = r.currentBusiness.value) == null ? void 0 : y.id)}`)}`;
6608
+ const f = `${"https://{slug}.feedme.vip".replace("{slug}", `${r.currentBusiness.value.url ?? ((y = r.currentBusiness.value) == null ? void 0 : y.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-BnzFvnTW.js";
4
+ import "./main-CwLlNXN5.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-BnpB2s4j.js";
2
+ import { F as f } from "./app-DYoWllXs.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-C4vwWvn_.js";
3
+ import { B as h } from "./index-BUEKCOG0.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";
@@ -5116,6 +5116,7 @@ const wn = {
5116
5116
  titles: "{count} titles: {names}",
5117
5117
  pointsPrice: "{points} points",
5118
5118
  or: "or",
5119
+ discount: "Save {discount}",
5119
5120
  redeemSuccess: "{name} successfully redeemed",
5120
5121
  purchaseCompleted: "Purchase Completed",
5121
5122
  purchaseSuccessful: "Your purchase was successful!",
@@ -5589,6 +5590,9 @@ const wn = {
5589
5590
  emptyTitle: "商店套餐将显示在这里!",
5590
5591
  emptySubtitle: "目前没有可兑换的套餐。请稍后查看!",
5591
5592
  bundle: {
5593
+ pointsPrice: "{points}点数",
5594
+ or: "或",
5595
+ discount: "节省 {discount}",
5592
5596
  stripeLabel: "使用Stripe订阅",
5593
5597
  pointsLabel: "点数",
5594
5598
  redeemTitle: "兑换",
@@ -5617,8 +5621,6 @@ const wn = {
5617
5621
  credit: "积分:{count}积分",
5618
5622
  vouchers: "{count}张优惠券:{names}",
5619
5623
  titles: "{count}个称号:{names}",
5620
- pointsPrice: "{points}点数",
5621
- or: "或",
5622
5624
  redeemSuccess: "{name}兑换成功",
5623
5625
  purchaseCompleted: "购买完成",
5624
5626
  purchaseSuccessful: "您的购买已成功!",
@@ -6121,6 +6123,9 @@ const wn = {
6121
6123
  emptyTitle: "商店套餐將顯示在這裡!",
6122
6124
  emptySubtitle: "目前沒有可兌換的套餐。請稍後查看!",
6123
6125
  bundle: {
6126
+ pointsPrice: "{points}點數",
6127
+ or: "或",
6128
+ discount: "節省 {discount}",
6124
6129
  stripeLabel: "使用Stripe訂閱",
6125
6130
  pointsLabel: "點數",
6126
6131
  redeemTitle: "兌換",
@@ -6149,8 +6154,6 @@ const wn = {
6149
6154
  credit: "積分:{count}積分",
6150
6155
  vouchers: "{count}張優惠券:{names}",
6151
6156
  titles: "{count}個稱號:{names}",
6152
- pointsPrice: "{points}點數",
6153
- or: "或",
6154
6157
  redeemSuccess: "{name}兌換成功",
6155
6158
  purchaseCompleted: "購買完成",
6156
6159
  purchaseSuccessful: "您的購買已成功!",
@@ -6630,6 +6633,9 @@ const wn = {
6630
6633
  emptyTitle: "แพ็คเกจร้านค้าจะปรากฏที่นี่!",
6631
6634
  emptySubtitle: "ไม่มีแพ็คเกจที่สามารถแลกได้ในขณะนี้ กลับมาดูใหม่ภายหลัง!",
6632
6635
  bundle: {
6636
+ pointsPrice: "{points} คะแนน",
6637
+ or: "หรือ",
6638
+ discount: "ประหยัด {discount}",
6633
6639
  stripeLabel: "สมัครด้วย Stripe",
6634
6640
  pointsLabel: "คะแนน",
6635
6641
  redeemTitle: "แลก",
@@ -6658,8 +6664,6 @@ const wn = {
6658
6664
  credit: "เครดิต: {count} เครดิต",
6659
6665
  vouchers: "{count} คูปอง: {names}",
6660
6666
  titles: "{count} ตำแหน่ง: {names}",
6661
- pointsPrice: "{points} คะแนน",
6662
- or: "หรือ",
6663
6667
  redeemSuccess: "แลก {name} สำเร็จ",
6664
6668
  purchaseCompleted: "การซื้อเสร็จสิ้น",
6665
6669
  purchaseSuccessful: "การซื้อของคุณสำเร็จแล้ว!",
@@ -7179,6 +7183,9 @@ const wn = {
7179
7183
  emptyTitle: "스토어 번들이 여기에 표시됩니다!",
7180
7184
  emptySubtitle: "현재 교환 가능한 번들이 없습니다. 나중에 다시 확인해주세요!",
7181
7185
  bundle: {
7186
+ pointsPrice: "{points} 포인트",
7187
+ or: "또는",
7188
+ discount: "{discount} 할인",
7182
7189
  stripeLabel: "Stripe로 구독",
7183
7190
  pointsLabel: "포인트",
7184
7191
  redeemTitle: "교환",
@@ -7207,8 +7214,6 @@ const wn = {
7207
7214
  credit: "크레딧: {count} 크레딧",
7208
7215
  vouchers: "{count} 쿠폰: {names}",
7209
7216
  titles: "{count} 칭호: {names}",
7210
- pointsPrice: "{points} 포인트",
7211
- or: "또는",
7212
7217
  redeemSuccess: "{name} 교환 성공",
7213
7218
  purchaseCompleted: "구매 완료",
7214
7219
  purchaseSuccessful: "구매가 성공적으로 완료되었습니다!",
@@ -7720,6 +7725,9 @@ const wn = {
7720
7725
  emptyTitle: "Các gói cửa hàng sẽ xuất hiện ở đây!",
7721
7726
  emptySubtitle: "Hiện không có gói nào có thể đổi. Hãy kiểm tra lại sau!",
7722
7727
  bundle: {
7728
+ pointsPrice: "{points} điểm",
7729
+ or: "hoặc",
7730
+ discount: "Tiết kiệm {discount}",
7723
7731
  stripeLabel: "Đăng ký với Stripe",
7724
7732
  pointsLabel: "Điểm",
7725
7733
  redeemTitle: "Đổi",
@@ -7748,8 +7756,6 @@ const wn = {
7748
7756
  credit: "Tín dụng: {count} tín dụng",
7749
7757
  vouchers: "{count} phiếu giảm giá: {names}",
7750
7758
  titles: "{count} danh hiệu: {names}",
7751
- pointsPrice: "{points} điểm",
7752
- or: "hoặc",
7753
7759
  redeemSuccess: "Đổi {name} thành công",
7754
7760
  purchaseCompleted: "Giao dịch hoàn tất",
7755
7761
  purchaseSuccessful: "Giao dịch của bạn đã thành công!",
@@ -7807,12 +7813,12 @@ const wn = {
7807
7813
  {
7808
7814
  path: "/",
7809
7815
  name: "brandkit",
7810
- component: H(() => import("./BrandkitView-BZyKs99M.js"))
7816
+ component: H(() => import("./BrandkitView-COeDdGga.js"))
7811
7817
  },
7812
7818
  {
7813
7819
  path: "/projects",
7814
7820
  name: "projects",
7815
- component: H(() => import("./ProjectView-ByxaVBFb.js"))
7821
+ component: H(() => import("./ProjectView-DKXRpIC6.js"))
7816
7822
  },
7817
7823
  {
7818
7824
  path: "/builder",
@@ -7822,7 +7828,7 @@ const wn = {
7822
7828
  path: ":templateId(.*)*",
7823
7829
  name: "builder",
7824
7830
  component: H(
7825
- () => import("./BuilderView-Bgpu_y54.js")
7831
+ () => import("./BuilderView-Cc__jo07.js")
7826
7832
  )
7827
7833
  }
7828
7834
  ]
@@ -7837,14 +7843,14 @@ const wn = {
7837
7843
  path: "assets",
7838
7844
  name: "settings-assets",
7839
7845
  component: H(
7840
- () => import("./AssetsSettings-DhprCc4v.js")
7846
+ () => import("./AssetsSettings-DJOCXmyp.js")
7841
7847
  )
7842
7848
  },
7843
7849
  {
7844
7850
  path: "management",
7845
7851
  name: "settings-management",
7846
7852
  component: H(
7847
- () => import("./ManagementSettings-CueLn4v_.js")
7853
+ () => import("./ManagementSettings-DHh2g_XJ.js")
7848
7854
  )
7849
7855
  }
7850
7856
  ]
@@ -12523,7 +12529,7 @@ const Pc = (e) => {
12523
12529
  ),
12524
12530
  BaListRepeater: K(
12525
12531
  H(
12526
- () => import("./ListRepeater-BrgO9Czv.js")
12532
+ () => import("./ListRepeater-Ds2TUbPp.js")
12527
12533
  )
12528
12534
  ),
12529
12535
  BaTextStyleList: K(
@@ -12543,13 +12549,13 @@ const Pc = (e) => {
12543
12549
  ),
12544
12550
  BaImageUpload: K(
12545
12551
  H(
12546
- () => import("./ImageUpload-SmpIy75T.js")
12552
+ () => import("./ImageUpload-BcXZDyGQ.js")
12547
12553
  ),
12548
12554
  { props: ["ignoreUpdate"] }
12549
12555
  ),
12550
12556
  BaLinkButton: K(
12551
12557
  H(
12552
- () => import("./LinkButton-De-YNclu.js")
12558
+ () => import("./LinkButton-DNXBKGCn.js")
12553
12559
  )
12554
12560
  ),
12555
12561
  BaSwitch: K(
@@ -12571,7 +12577,7 @@ const Pc = (e) => {
12571
12577
  "th-TH": { ...xn, ...yr },
12572
12578
  "ko-KR": { ...En, ...wr },
12573
12579
  "vi-VN": { ...zn, ...Mr }
12574
- }, $c = H(() => import("./App-Bk0v4iV_.js"));
12580
+ }, $c = H(() => import("./App-Beph55R-.js"));
12575
12581
  export {
12576
12582
  hn as F,
12577
12583
  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-BnpB2s4j.js";
2
+ import { c as i, d as o, i as e, r as m } from "./app-DYoWllXs.js";
3
3
  export {
4
4
  i as FmApp,
5
5
  o as FormKitPlugin,
@@ -191,11 +191,12 @@ export type ApplyBrandKitOptions = {
191
191
  export type FdoMetadata = {
192
192
  type: 'BUSINESS' | 'RESTAURANT';
193
193
  country: string;
194
- pwaConfig: {
194
+ businessId?: string;
195
+ pwaConfig?: {
195
196
  short_name: string;
196
197
  name: string;
197
198
  background_color: string;
198
199
  theme_color: string;
199
200
  };
200
- brandkit: BrandKit | null;
201
+ brandkit?: BrandKit | null;
201
202
  };
@@ -462,6 +462,7 @@ export declare const i18nMessages: {
462
462
  titles: string;
463
463
  pointsPrice: string;
464
464
  or: string;
465
+ discount: string;
465
466
  redeemSuccess: string;
466
467
  purchaseCompleted: string;
467
468
  purchaseSuccessful: string;
@@ -1654,6 +1655,9 @@ export declare const i18nMessages: {
1654
1655
  emptyTitle: string;
1655
1656
  emptySubtitle: string;
1656
1657
  bundle: {
1658
+ pointsPrice: string;
1659
+ or: string;
1660
+ discount: string;
1657
1661
  stripeLabel: string;
1658
1662
  pointsLabel: string;
1659
1663
  redeemTitle: string;
@@ -1682,8 +1686,6 @@ export declare const i18nMessages: {
1682
1686
  credit: string;
1683
1687
  vouchers: string;
1684
1688
  titles: string;
1685
- pointsPrice: string;
1686
- or: string;
1687
1689
  redeemSuccess: string;
1688
1690
  purchaseCompleted: string;
1689
1691
  purchaseSuccessful: string;
@@ -2906,6 +2908,9 @@ export declare const i18nMessages: {
2906
2908
  emptyTitle: string;
2907
2909
  emptySubtitle: string;
2908
2910
  bundle: {
2911
+ pointsPrice: string;
2912
+ or: string;
2913
+ discount: string;
2909
2914
  stripeLabel: string;
2910
2915
  pointsLabel: string;
2911
2916
  redeemTitle: string;
@@ -2934,8 +2939,6 @@ export declare const i18nMessages: {
2934
2939
  credit: string;
2935
2940
  vouchers: string;
2936
2941
  titles: string;
2937
- pointsPrice: string;
2938
- or: string;
2939
2942
  redeemSuccess: string;
2940
2943
  purchaseCompleted: string;
2941
2944
  purchaseSuccessful: string;
@@ -4135,6 +4138,9 @@ export declare const i18nMessages: {
4135
4138
  emptyTitle: string;
4136
4139
  emptySubtitle: string;
4137
4140
  bundle: {
4141
+ pointsPrice: string;
4142
+ or: string;
4143
+ discount: string;
4138
4144
  stripeLabel: string;
4139
4145
  pointsLabel: string;
4140
4146
  redeemTitle: string;
@@ -4163,8 +4169,6 @@ export declare const i18nMessages: {
4163
4169
  credit: string;
4164
4170
  vouchers: string;
4165
4171
  titles: string;
4166
- pointsPrice: string;
4167
- or: string;
4168
4172
  redeemSuccess: string;
4169
4173
  purchaseCompleted: string;
4170
4174
  purchaseSuccessful: string;
@@ -5404,6 +5408,9 @@ export declare const i18nMessages: {
5404
5408
  emptyTitle: string;
5405
5409
  emptySubtitle: string;
5406
5410
  bundle: {
5411
+ pointsPrice: string;
5412
+ or: string;
5413
+ discount: string;
5407
5414
  stripeLabel: string;
5408
5415
  pointsLabel: string;
5409
5416
  redeemTitle: string;
@@ -5432,8 +5439,6 @@ export declare const i18nMessages: {
5432
5439
  credit: string;
5433
5440
  vouchers: string;
5434
5441
  titles: string;
5435
- pointsPrice: string;
5436
- or: string;
5437
5442
  redeemSuccess: string;
5438
5443
  purchaseCompleted: string;
5439
5444
  purchaseSuccessful: string;
@@ -6831,6 +6836,9 @@ export declare const i18nMessages: {
6831
6836
  emptyTitle: string;
6832
6837
  emptySubtitle: string;
6833
6838
  bundle: {
6839
+ pointsPrice: string;
6840
+ or: string;
6841
+ discount: string;
6834
6842
  stripeLabel: string;
6835
6843
  pointsLabel: string;
6836
6844
  redeemTitle: string;
@@ -6859,8 +6867,6 @@ export declare const i18nMessages: {
6859
6867
  credit: string;
6860
6868
  vouchers: string;
6861
6869
  titles: string;
6862
- pointsPrice: string;
6863
- or: string;
6864
6870
  redeemSuccess: string;
6865
6871
  purchaseCompleted: string;
6866
6872
  purchaseSuccessful: string;
@@ -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) {
@@ -0,0 +1,112 @@
1
+ import { H as e, a as i } from "./index-C6_vWPi0.js";
2
+ const o = () => i().PORTAL_V2_BACKEND, p = () => i().LICENSE_BACKEND;
3
+ async function c(t) {
4
+ return (await e.Get(
5
+ "https://api.feedme.vip",
6
+ `/short-url/${t}`
7
+ )).data;
8
+ }
9
+ async function d(t, a, s) {
10
+ return await e.Post(
11
+ "https://api.feedme.vip",
12
+ "/short-url",
13
+ {
14
+ data: {
15
+ slug: t,
16
+ oldSlug: a,
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 e.Get(
28
+ "https://api.feedme.vip",
29
+ `/metadata/${t}/config`
30
+ )).data;
31
+ }
32
+ async function f(t, a, s) {
33
+ return (await e.Post(
34
+ "https://api.feedme.vip",
35
+ `/metadata/${t}/config`,
36
+ {
37
+ data: {
38
+ name: a,
39
+ backgroundColor: "#ffffff",
40
+ country: s
41
+ }
42
+ }
43
+ )).data;
44
+ }
45
+ async function m(t) {
46
+ return (await e.Get(
47
+ "https://api.feedme.vip",
48
+ `/metadata/${t}/brandkit`
49
+ )).data;
50
+ }
51
+ async function h(t, a) {
52
+ return (await e.Post(
53
+ "https://api.feedme.vip",
54
+ `/metadata/${t}/brandkit`,
55
+ {
56
+ data: a
57
+ }
58
+ )).data;
59
+ }
60
+ async function l(t, a) {
61
+ return (await e.Get(
62
+ "https://api.feedme.vip",
63
+ `/metadata/${t}/brandkit/template-history/${a}`
64
+ )).data;
65
+ }
66
+ async function y(t, a, s) {
67
+ return (await e.Post(
68
+ "https://api.feedme.vip",
69
+ `/metadata/${t}/brandkit/template-restore/${a}/${s}`,
70
+ {}
71
+ )).data;
72
+ }
73
+ async function $(t, a) {
74
+ return (await e.Delete(
75
+ "https://api.feedme.vip",
76
+ `/metadata/${t}/brandkit/template-history/${a}`
77
+ )).data;
78
+ }
79
+ async function w(t, a) {
80
+ return await e.Put(
81
+ o(),
82
+ `businesses/${t}/profile`,
83
+ {
84
+ data: a
85
+ }
86
+ ).catch((n) => {
87
+ var r;
88
+ throw (r = n.response) == null ? void 0 : r.data;
89
+ });
90
+ }
91
+ async function B(t) {
92
+ return await e.Get(
93
+ p(),
94
+ `api/business/${t}/feature/miniprogram`
95
+ ).then((a) => a.data).catch(() => !1);
96
+ }
97
+ const b = {
98
+ getGlobalSlug: c,
99
+ setShortUrl: d,
100
+ getBusinessMetadata: u,
101
+ setBusinessMetadata: f,
102
+ getBusinessBrandkit: m,
103
+ setBusinessBrandkit: h,
104
+ getTemplateHistory: l,
105
+ restoreTemplateVersion: y,
106
+ clearTemplateHistory: $,
107
+ updateBusinessProfile: w,
108
+ getBusinessPremiumStatus: B
109
+ };
110
+ export {
111
+ b as B
112
+ };