@feedmepos/mf-brand-app-builder 0.5.27 → 0.5.29-dev
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.
- package/dist/{App-DUBaNaDf.js → App-CqQBBVF-.js} +7 -7
- package/dist/{AssetsSettings-DJOCXmyp.js → AssetsSettings-DhprCc4v.js} +18 -18
- package/dist/{BrandkitView-BFSi5o-W.js → BrandkitView-DVGcxme0.js} +2035 -1970
- package/dist/{BuilderView-D0bS5Tb-.js → BuilderView-Dtm0i4NK.js} +612 -575
- package/dist/{ImageUpload-DtHZyFAP.js → ImageUpload-Bzo-UenE.js} +8 -8
- package/dist/{LinkButton-DNXBKGCn.js → LinkButton-De-YNclu.js} +1 -1
- package/dist/{ListRepeater-CbtSZYV9.js → ListRepeater-CYEnIU4D.js} +1 -1
- package/dist/{ManagementSettings-DHh2g_XJ.js → ManagementSettings-CueLn4v_.js} +6 -6
- package/dist/{ProjectView-DKXRpIC6.js → ProjectView-ByxaVBFb.js} +1 -1
- package/dist/{app-DEVvOdMC.js → app-Dv1xHBP_.js} +29 -19
- package/dist/app.js +1 -1
- package/dist/brand-core/src/brandkit.d.ts +1 -1
- package/dist/brand-core/src/entity.d.ts +3 -2
- package/dist/{brandkit-CqTsCHzt.js → brandkit-OeLZ05mv.js} +1 -1
- package/dist/client/merchant/src/Entry.vue.d.ts +1 -0
- package/dist/client/merchant/src/app.d.ts +20 -10
- package/dist/client/merchant/src/composables/useEditorBridge/index.d.ts +13 -0
- package/dist/{image-S7-2rbQS.js → image-D_Djf1PS.js} +7 -7
- package/dist/{index-CPs0rWCO.js → index-Bk6TOZrx.js} +15 -15
- package/dist/{index-CawZ03Z8.js → index-C1rSMuKA.js} +1 -1
- package/dist/index-C4vwWvn_.js +112 -0
- package/dist/{index-C6_vWPi0.js → index-D0LOMBBD.js} +27 -27
- package/dist/{main-BIZonmEq.js → main-CFlu_mRA.js} +225 -217
- package/dist/package.json +13 -4
- package/dist/style.css +1 -1
- package/package.json +5 -3
- package/dist/index-BUEKCOG0.js +0 -112
|
@@ -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
|
|
2
|
-
import { r as g, I as h } from "./image-
|
|
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-
|
|
4
|
+
import "./main-CFlu_mRA.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.
|
|
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
|
|
30
|
-
((
|
|
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)) :
|
|
63
|
+
], 64)) : f("", !0),
|
|
64
64
|
t.value ? (s(), r("div", z, [
|
|
65
65
|
c(u(k))
|
|
66
|
-
])) :
|
|
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-
|
|
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-
|
|
2
|
+
import { F as f } from "./app-Dv1xHBP_.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-
|
|
3
|
+
import { B as h } from "./index-C4vwWvn_.js";
|
|
4
4
|
import { K as q } from "./vue-sonner-CBFYmm8_.js";
|
|
5
|
-
import { r as I, I as T } from "./image-
|
|
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}.
|
|
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}.
|
|
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.
|
|
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.
|
|
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-
|
|
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";
|
|
@@ -4418,6 +4418,7 @@ const wn = {
|
|
|
4418
4418
|
titles: "{count} titles: {names}",
|
|
4419
4419
|
pointsPrice: "{points} points",
|
|
4420
4420
|
or: "or",
|
|
4421
|
+
discount: "Save {discount}",
|
|
4421
4422
|
redeemSuccess: "{name} successfully redeemed",
|
|
4422
4423
|
purchaseCompleted: "Purchase Completed",
|
|
4423
4424
|
purchaseSuccessful: "Your purchase was successful!",
|
|
@@ -4502,6 +4503,8 @@ const wn = {
|
|
|
4502
4503
|
"zh-CN": "简体中文",
|
|
4503
4504
|
"zh-TW": "繁體中文",
|
|
4504
4505
|
"th-TH": "ไทย",
|
|
4506
|
+
"ko-KR": "한국어",
|
|
4507
|
+
"vi-VN": "Tiếng Việt",
|
|
4505
4508
|
selectLanguage: "选择语言"
|
|
4506
4509
|
},
|
|
4507
4510
|
member: {
|
|
@@ -4889,6 +4892,9 @@ const wn = {
|
|
|
4889
4892
|
emptyTitle: "商店套餐将显示在这里!",
|
|
4890
4893
|
emptySubtitle: "目前没有可兑换的套餐。请稍后查看!",
|
|
4891
4894
|
bundle: {
|
|
4895
|
+
pointsPrice: "{points}点数",
|
|
4896
|
+
or: "或",
|
|
4897
|
+
discount: "节省 {discount}",
|
|
4892
4898
|
stripeLabel: "使用Stripe订阅",
|
|
4893
4899
|
pointsLabel: "点数",
|
|
4894
4900
|
redeemTitle: "兑换",
|
|
@@ -4917,8 +4923,6 @@ const wn = {
|
|
|
4917
4923
|
credit: "积分:{count}积分",
|
|
4918
4924
|
vouchers: "{count}张优惠券:{names}",
|
|
4919
4925
|
titles: "{count}个称号:{names}",
|
|
4920
|
-
pointsPrice: "{points}点数",
|
|
4921
|
-
or: "或",
|
|
4922
4926
|
redeemSuccess: "{name}兑换成功",
|
|
4923
4927
|
purchaseCompleted: "购买完成",
|
|
4924
4928
|
purchaseSuccessful: "您的购买已成功!",
|
|
@@ -5034,6 +5038,8 @@ const wn = {
|
|
|
5034
5038
|
"zh-CN": "簡體中文",
|
|
5035
5039
|
"zh-TW": "繁體中文",
|
|
5036
5040
|
"th-TH": "ไทย",
|
|
5041
|
+
"ko-KR": "한국어",
|
|
5042
|
+
"vi-VN": "Tiếng Việt",
|
|
5037
5043
|
selectLanguage: "選擇語言"
|
|
5038
5044
|
},
|
|
5039
5045
|
member: {
|
|
@@ -5419,6 +5425,9 @@ const wn = {
|
|
|
5419
5425
|
emptyTitle: "商店套餐將顯示在這裡!",
|
|
5420
5426
|
emptySubtitle: "目前沒有可兌換的套餐。請稍後查看!",
|
|
5421
5427
|
bundle: {
|
|
5428
|
+
pointsPrice: "{points}點數",
|
|
5429
|
+
or: "或",
|
|
5430
|
+
discount: "節省 {discount}",
|
|
5422
5431
|
stripeLabel: "使用Stripe訂閱",
|
|
5423
5432
|
pointsLabel: "點數",
|
|
5424
5433
|
redeemTitle: "兌換",
|
|
@@ -5447,8 +5456,6 @@ const wn = {
|
|
|
5447
5456
|
credit: "積分:{count}積分",
|
|
5448
5457
|
vouchers: "{count}張優惠券:{names}",
|
|
5449
5458
|
titles: "{count}個稱號:{names}",
|
|
5450
|
-
pointsPrice: "{points}點數",
|
|
5451
|
-
or: "或",
|
|
5452
5459
|
redeemSuccess: "{name}兌換成功",
|
|
5453
5460
|
purchaseCompleted: "購買完成",
|
|
5454
5461
|
purchaseSuccessful: "您的購買已成功!",
|
|
@@ -5928,6 +5935,9 @@ const wn = {
|
|
|
5928
5935
|
emptyTitle: "แพ็คเกจร้านค้าจะปรากฏที่นี่!",
|
|
5929
5936
|
emptySubtitle: "ไม่มีแพ็คเกจที่สามารถแลกได้ในขณะนี้ กลับมาดูใหม่ภายหลัง!",
|
|
5930
5937
|
bundle: {
|
|
5938
|
+
pointsPrice: "{points} คะแนน",
|
|
5939
|
+
or: "หรือ",
|
|
5940
|
+
discount: "ประหยัด {discount}",
|
|
5931
5941
|
stripeLabel: "สมัครด้วย Stripe",
|
|
5932
5942
|
pointsLabel: "คะแนน",
|
|
5933
5943
|
redeemTitle: "แลก",
|
|
@@ -5956,8 +5966,6 @@ const wn = {
|
|
|
5956
5966
|
credit: "เครดิต: {count} เครดิต",
|
|
5957
5967
|
vouchers: "{count} คูปอง: {names}",
|
|
5958
5968
|
titles: "{count} ตำแหน่ง: {names}",
|
|
5959
|
-
pointsPrice: "{points} คะแนน",
|
|
5960
|
-
or: "หรือ",
|
|
5961
5969
|
redeemSuccess: "แลก {name} สำเร็จ",
|
|
5962
5970
|
purchaseCompleted: "การซื้อเสร็จสิ้น",
|
|
5963
5971
|
purchaseSuccessful: "การซื้อของคุณสำเร็จแล้ว!",
|
|
@@ -6477,6 +6485,9 @@ const wn = {
|
|
|
6477
6485
|
emptyTitle: "스토어 번들이 여기에 표시됩니다!",
|
|
6478
6486
|
emptySubtitle: "현재 교환 가능한 번들이 없습니다. 나중에 다시 확인해주세요!",
|
|
6479
6487
|
bundle: {
|
|
6488
|
+
pointsPrice: "{points} 포인트",
|
|
6489
|
+
or: "또는",
|
|
6490
|
+
discount: "{discount} 할인",
|
|
6480
6491
|
stripeLabel: "Stripe로 구독",
|
|
6481
6492
|
pointsLabel: "포인트",
|
|
6482
6493
|
redeemTitle: "교환",
|
|
@@ -6505,8 +6516,6 @@ const wn = {
|
|
|
6505
6516
|
credit: "크레딧: {count} 크레딧",
|
|
6506
6517
|
vouchers: "{count} 쿠폰: {names}",
|
|
6507
6518
|
titles: "{count} 칭호: {names}",
|
|
6508
|
-
pointsPrice: "{points} 포인트",
|
|
6509
|
-
or: "또는",
|
|
6510
6519
|
redeemSuccess: "{name} 교환 성공",
|
|
6511
6520
|
purchaseCompleted: "구매 완료",
|
|
6512
6521
|
purchaseSuccessful: "구매가 성공적으로 완료되었습니다!",
|
|
@@ -7018,6 +7027,9 @@ const wn = {
|
|
|
7018
7027
|
emptyTitle: "Các gói cửa hàng sẽ xuất hiện ở đây!",
|
|
7019
7028
|
emptySubtitle: "Hiện không có gói nào có thể đổi. Hãy kiểm tra lại sau!",
|
|
7020
7029
|
bundle: {
|
|
7030
|
+
pointsPrice: "{points} điểm",
|
|
7031
|
+
or: "hoặc",
|
|
7032
|
+
discount: "Tiết kiệm {discount}",
|
|
7021
7033
|
stripeLabel: "Đăng ký với Stripe",
|
|
7022
7034
|
pointsLabel: "Điểm",
|
|
7023
7035
|
redeemTitle: "Đổi",
|
|
@@ -7046,8 +7058,6 @@ const wn = {
|
|
|
7046
7058
|
credit: "Tín dụng: {count} tín dụng",
|
|
7047
7059
|
vouchers: "{count} phiếu giảm giá: {names}",
|
|
7048
7060
|
titles: "{count} danh hiệu: {names}",
|
|
7049
|
-
pointsPrice: "{points} điểm",
|
|
7050
|
-
or: "hoặc",
|
|
7051
7061
|
redeemSuccess: "Đổi {name} thành công",
|
|
7052
7062
|
purchaseCompleted: "Giao dịch hoàn tất",
|
|
7053
7063
|
purchaseSuccessful: "Giao dịch của bạn đã thành công!",
|
|
@@ -7105,12 +7115,12 @@ const wn = {
|
|
|
7105
7115
|
{
|
|
7106
7116
|
path: "/",
|
|
7107
7117
|
name: "brandkit",
|
|
7108
|
-
component: H(() => import("./BrandkitView-
|
|
7118
|
+
component: H(() => import("./BrandkitView-DVGcxme0.js"))
|
|
7109
7119
|
},
|
|
7110
7120
|
{
|
|
7111
7121
|
path: "/projects",
|
|
7112
7122
|
name: "projects",
|
|
7113
|
-
component: H(() => import("./ProjectView-
|
|
7123
|
+
component: H(() => import("./ProjectView-ByxaVBFb.js"))
|
|
7114
7124
|
},
|
|
7115
7125
|
{
|
|
7116
7126
|
path: "/builder",
|
|
@@ -7120,7 +7130,7 @@ const wn = {
|
|
|
7120
7130
|
path: ":templateId(.*)*",
|
|
7121
7131
|
name: "builder",
|
|
7122
7132
|
component: H(
|
|
7123
|
-
() => import("./BuilderView-
|
|
7133
|
+
() => import("./BuilderView-Dtm0i4NK.js")
|
|
7124
7134
|
)
|
|
7125
7135
|
}
|
|
7126
7136
|
]
|
|
@@ -7135,14 +7145,14 @@ const wn = {
|
|
|
7135
7145
|
path: "assets",
|
|
7136
7146
|
name: "settings-assets",
|
|
7137
7147
|
component: H(
|
|
7138
|
-
() => import("./AssetsSettings-
|
|
7148
|
+
() => import("./AssetsSettings-DhprCc4v.js")
|
|
7139
7149
|
)
|
|
7140
7150
|
},
|
|
7141
7151
|
{
|
|
7142
7152
|
path: "management",
|
|
7143
7153
|
name: "settings-management",
|
|
7144
7154
|
component: H(
|
|
7145
|
-
() => import("./ManagementSettings-
|
|
7155
|
+
() => import("./ManagementSettings-CueLn4v_.js")
|
|
7146
7156
|
)
|
|
7147
7157
|
}
|
|
7148
7158
|
]
|
|
@@ -11821,7 +11831,7 @@ const Ac = (e) => {
|
|
|
11821
11831
|
),
|
|
11822
11832
|
BaListRepeater: K(
|
|
11823
11833
|
H(
|
|
11824
|
-
() => import("./ListRepeater-
|
|
11834
|
+
() => import("./ListRepeater-CYEnIU4D.js")
|
|
11825
11835
|
)
|
|
11826
11836
|
),
|
|
11827
11837
|
BaTextStyleList: K(
|
|
@@ -11841,13 +11851,13 @@ const Ac = (e) => {
|
|
|
11841
11851
|
),
|
|
11842
11852
|
BaImageUpload: K(
|
|
11843
11853
|
H(
|
|
11844
|
-
() => import("./ImageUpload-
|
|
11854
|
+
() => import("./ImageUpload-Bzo-UenE.js")
|
|
11845
11855
|
),
|
|
11846
11856
|
{ props: ["ignoreUpdate"] }
|
|
11847
11857
|
),
|
|
11848
11858
|
BaLinkButton: K(
|
|
11849
11859
|
H(
|
|
11850
|
-
() => import("./LinkButton-
|
|
11860
|
+
() => import("./LinkButton-De-YNclu.js")
|
|
11851
11861
|
)
|
|
11852
11862
|
),
|
|
11853
11863
|
BaSwitch: K(
|
|
@@ -11869,7 +11879,7 @@ const Ac = (e) => {
|
|
|
11869
11879
|
"th-TH": { ...Dn, ...yr },
|
|
11870
11880
|
"ko-KR": { ...Bn, ...wr },
|
|
11871
11881
|
"vi-VN": { ...zn, ...Mr }
|
|
11872
|
-
}, Pc = H(() => import("./App-
|
|
11882
|
+
}, Pc = H(() => import("./App-CqQBBVF-.js"));
|
|
11873
11883
|
export {
|
|
11874
11884
|
hn as F,
|
|
11875
11885
|
pn as a,
|
package/dist/app.js
CHANGED
|
@@ -95,11 +95,12 @@ export type ApplyBrandKitOptions = {
|
|
|
95
95
|
export type FdoMetadata = {
|
|
96
96
|
type: 'BUSINESS' | 'RESTAURANT';
|
|
97
97
|
country: string;
|
|
98
|
-
|
|
98
|
+
businessId?: string;
|
|
99
|
+
pwaConfig?: {
|
|
99
100
|
short_name: string;
|
|
100
101
|
name: string;
|
|
101
102
|
background_color: string;
|
|
102
103
|
theme_color: string;
|
|
103
104
|
};
|
|
104
|
-
brandkit
|
|
105
|
+
brandkit?: BrandKit | null;
|
|
105
106
|
};
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import '@feedmepos/mf-remy-panel/style.css';
|
|
1
2
|
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
3
|
export default _default;
|
|
@@ -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;
|
|
@@ -1148,6 +1149,8 @@ export declare const i18nMessages: {
|
|
|
1148
1149
|
"zh-CN": string;
|
|
1149
1150
|
"zh-TW": string;
|
|
1150
1151
|
"th-TH": string;
|
|
1152
|
+
"ko-KR": string;
|
|
1153
|
+
"vi-VN": string;
|
|
1151
1154
|
selectLanguage: string;
|
|
1152
1155
|
};
|
|
1153
1156
|
member: {
|
|
@@ -1537,6 +1540,9 @@ export declare const i18nMessages: {
|
|
|
1537
1540
|
emptyTitle: string;
|
|
1538
1541
|
emptySubtitle: string;
|
|
1539
1542
|
bundle: {
|
|
1543
|
+
pointsPrice: string;
|
|
1544
|
+
or: string;
|
|
1545
|
+
discount: string;
|
|
1540
1546
|
stripeLabel: string;
|
|
1541
1547
|
pointsLabel: string;
|
|
1542
1548
|
redeemTitle: string;
|
|
@@ -1565,8 +1571,6 @@ export declare const i18nMessages: {
|
|
|
1565
1571
|
credit: string;
|
|
1566
1572
|
vouchers: string;
|
|
1567
1573
|
titles: string;
|
|
1568
|
-
pointsPrice: string;
|
|
1569
|
-
or: string;
|
|
1570
1574
|
redeemSuccess: string;
|
|
1571
1575
|
purchaseCompleted: string;
|
|
1572
1576
|
purchaseSuccessful: string;
|
|
@@ -2285,6 +2289,8 @@ export declare const i18nMessages: {
|
|
|
2285
2289
|
"zh-CN": string;
|
|
2286
2290
|
"zh-TW": string;
|
|
2287
2291
|
"th-TH": string;
|
|
2292
|
+
"ko-KR": string;
|
|
2293
|
+
"vi-VN": string;
|
|
2288
2294
|
selectLanguage: string;
|
|
2289
2295
|
};
|
|
2290
2296
|
member: {
|
|
@@ -2672,6 +2678,9 @@ export declare const i18nMessages: {
|
|
|
2672
2678
|
emptyTitle: string;
|
|
2673
2679
|
emptySubtitle: string;
|
|
2674
2680
|
bundle: {
|
|
2681
|
+
pointsPrice: string;
|
|
2682
|
+
or: string;
|
|
2683
|
+
discount: string;
|
|
2675
2684
|
stripeLabel: string;
|
|
2676
2685
|
pointsLabel: string;
|
|
2677
2686
|
redeemTitle: string;
|
|
@@ -2700,8 +2709,6 @@ export declare const i18nMessages: {
|
|
|
2700
2709
|
credit: string;
|
|
2701
2710
|
vouchers: string;
|
|
2702
2711
|
titles: string;
|
|
2703
|
-
pointsPrice: string;
|
|
2704
|
-
or: string;
|
|
2705
2712
|
redeemSuccess: string;
|
|
2706
2713
|
purchaseCompleted: string;
|
|
2707
2714
|
purchaseSuccessful: string;
|
|
@@ -3786,6 +3793,9 @@ export declare const i18nMessages: {
|
|
|
3786
3793
|
emptyTitle: string;
|
|
3787
3794
|
emptySubtitle: string;
|
|
3788
3795
|
bundle: {
|
|
3796
|
+
pointsPrice: string;
|
|
3797
|
+
or: string;
|
|
3798
|
+
discount: string;
|
|
3789
3799
|
stripeLabel: string;
|
|
3790
3800
|
pointsLabel: string;
|
|
3791
3801
|
redeemTitle: string;
|
|
@@ -3814,8 +3824,6 @@ export declare const i18nMessages: {
|
|
|
3814
3824
|
credit: string;
|
|
3815
3825
|
vouchers: string;
|
|
3816
3826
|
titles: string;
|
|
3817
|
-
pointsPrice: string;
|
|
3818
|
-
or: string;
|
|
3819
3827
|
redeemSuccess: string;
|
|
3820
3828
|
purchaseCompleted: string;
|
|
3821
3829
|
purchaseSuccessful: string;
|
|
@@ -4940,6 +4948,9 @@ export declare const i18nMessages: {
|
|
|
4940
4948
|
emptyTitle: string;
|
|
4941
4949
|
emptySubtitle: string;
|
|
4942
4950
|
bundle: {
|
|
4951
|
+
pointsPrice: string;
|
|
4952
|
+
or: string;
|
|
4953
|
+
discount: string;
|
|
4943
4954
|
stripeLabel: string;
|
|
4944
4955
|
pointsLabel: string;
|
|
4945
4956
|
redeemTitle: string;
|
|
@@ -4968,8 +4979,6 @@ export declare const i18nMessages: {
|
|
|
4968
4979
|
credit: string;
|
|
4969
4980
|
vouchers: string;
|
|
4970
4981
|
titles: string;
|
|
4971
|
-
pointsPrice: string;
|
|
4972
|
-
or: string;
|
|
4973
4982
|
redeemSuccess: string;
|
|
4974
4983
|
purchaseCompleted: string;
|
|
4975
4984
|
purchaseSuccessful: string;
|
|
@@ -6248,6 +6257,9 @@ export declare const i18nMessages: {
|
|
|
6248
6257
|
emptyTitle: string;
|
|
6249
6258
|
emptySubtitle: string;
|
|
6250
6259
|
bundle: {
|
|
6260
|
+
pointsPrice: string;
|
|
6261
|
+
or: string;
|
|
6262
|
+
discount: string;
|
|
6251
6263
|
stripeLabel: string;
|
|
6252
6264
|
pointsLabel: string;
|
|
6253
6265
|
redeemTitle: string;
|
|
@@ -6276,8 +6288,6 @@ export declare const i18nMessages: {
|
|
|
6276
6288
|
credit: string;
|
|
6277
6289
|
vouchers: string;
|
|
6278
6290
|
titles: string;
|
|
6279
|
-
pointsPrice: string;
|
|
6280
|
-
or: string;
|
|
6281
6291
|
redeemSuccess: string;
|
|
6282
6292
|
purchaseCompleted: string;
|
|
6283
6293
|
purchaseSuccessful: string;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Composable that listens for the `apply-brand-template` client event
|
|
3
|
+
* dispatched by the Remy chat panel's ApplyTemplateActionCard.
|
|
4
|
+
*
|
|
5
|
+
* When the AI agent generates a template and the user clicks "Apply Template",
|
|
6
|
+
* the action card fires a CustomEvent with the schema array as `detail`.
|
|
7
|
+
* This composable picks it up via `useClientEvent` and replaces the
|
|
8
|
+
* current template in the editor canvas.
|
|
9
|
+
*
|
|
10
|
+
* Must be called inside a component's setup (e.g. BuilderView.vue)
|
|
11
|
+
* so the listener is properly mounted/unmounted with the component lifecycle.
|
|
12
|
+
*/
|
|
13
|
+
export declare function useEditorBridge(): void;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { H as r, a as p } from "./index-
|
|
1
|
+
import { H as r, a as p } from "./index-D0LOMBBD.js";
|
|
2
2
|
const i = () => p().PWA_ICON_SERVICE_BACKEND;
|
|
3
|
-
async function
|
|
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.
|
|
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
|
|
16
|
+
async function s(e, t) {
|
|
17
17
|
return (await r.Delete(
|
|
18
|
-
"https://api.
|
|
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:
|
|
33
|
-
deleteImage:
|
|
32
|
+
uploadImage: d,
|
|
33
|
+
deleteImage: s,
|
|
34
34
|
uploadAppIcon: o
|
|
35
35
|
};
|
|
36
36
|
function u(e) {
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { H as d } from "./index-
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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
|
|
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
|
|
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
|
|
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:
|
|
189
|
-
addNewTemplate:
|
|
190
|
-
renameTemplate:
|
|
188
|
+
setMainPageTemplate: v,
|
|
189
|
+
addNewTemplate: o,
|
|
190
|
+
renameTemplate: f,
|
|
191
191
|
deleteTemplate: h,
|
|
192
192
|
unpublishTemplate: $
|
|
193
193
|
};
|