@feedmepos/mf-connect 0.1.98-beta.8 → 0.1.98-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.
- package/dist/Analytic-BHDjuMfN.js +426 -0
- package/dist/{App-DsB2o1oB.js → App-BSSze_b9.js} +106 -118
- package/dist/{Bin-DMr7K8Kj.js → Bin-DfzoQbE0.js} +8 -8
- package/dist/{Broadcast-C9akM-TB.js → Broadcast-DsqO4SXX.js} +17 -18
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CwGoEBsW.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DQ0x2VJp.js} +6 -5
- package/dist/{Card-DRkIYs0M.js → Card-VxbqomXV.js} +19 -19
- package/dist/{Collections-B0uGC2FE.js → Collections-CvD98I3M.js} +185 -197
- package/dist/{Credit-V5YA_hGx.js → Credit-BhM2m2L2.js} +53 -54
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-DvfrrjHc.js +2223 -0
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-DJLxGk7W.js → EffectSheet.vue_vue_type_style_index_0_lang-CPx9U9fU.js} +6 -6
- package/dist/{Experience-WTWy5yY6.js → Experience-uWQRb-qf.js} +34 -35
- package/dist/{FileSaver.min-BlA0oZEC.js → FileSaver.min-DKNoHTvP.js} +1 -1
- package/dist/{Game-BwOfTCW5.js → Game-BgT3oNx7.js} +15 -16
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-DNtLW0yQ.js → ImageInput.vue_vue_type_script_setup_true_lang-ClqrJbU6.js} +1 -1
- package/dist/{Index-m7l4insz.js → Index-D3RgVj9V.js} +10 -10
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-Dsg2sWjF.js → LottieAnimation.vue_vue_type_script_setup_true_lang-CkCpumzB.js} +1 -1
- package/dist/{MainLayout-Du5kZOtA.js → MainLayout-B2RiPsIR.js} +1 -1
- package/dist/{Marketing-C9pSIdBU.js → Marketing-FrE7k7eW.js} +4 -4
- package/dist/{MarketingMaterialEdit-BEF2T9LR.js → MarketingMaterialEdit-DGNjEUu-.js} +211 -214
- package/dist/{Member-DUV_vbPI.js → Member-CgTagUQ9.js} +20 -20
- package/dist/{MemberList-Ye4nOk-i.js → MemberList-CKbzsDMX.js} +51 -50
- package/dist/{MemberTransactions-CAut1TQb.js → MemberTransactions-CnY5cFdv.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-1AuHixPC.js → MessageInput.vue_vue_type_script_setup_true_lang-DqivG_O4.js} +11 -11
- package/dist/{Mission-BBmCGpt8.js → Mission-BGNqy7wQ.js} +34 -35
- package/dist/{Overview-DOJj4XvO.js → Overview-CnpF74wa.js} +19 -19
- package/dist/{Point-Bzg6hi6o.js → Point-BHgIy7Bz.js} +29 -30
- package/dist/{Promotion-BMXIp_ef.js → Promotion-CNQvO5Lq.js} +105 -111
- package/dist/{Queue-55G2gtP5.js → Queue-CoPBE0UP.js} +43 -43
- package/dist/{Record-DNPI02c6.js → Record-BuDQ15FJ.js} +10 -10
- package/dist/{Reward-CnP8R2pS.js → Reward-BQlCO3Dk.js} +17 -17
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-BN71h9IK.js → RewardGroup.vue_vue_type_script_setup_true_lang-nhNr_T7D.js} +12 -12
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-lnxwLa8o.js +1888 -0
- package/dist/{Segment-CxiQnnyj.js → Segment-DKFAXGzY.js} +78 -77
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-C4vohf6c.js → SelectItems.vue_vue_type_script_setup_true_lang-CUR7djaM.js} +3 -3
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-B1vj5f7T.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-CZ3s2W8Q.js} +12 -12
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-cWx0G3nM.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-BbilZk82.js} +4 -4
- package/dist/{Setting-jHAjccod.js → Setting-hrDZ1cQR.js} +248 -259
- package/dist/{SettingAdvertisements-Vt7w1WN3.js → SettingAdvertisements-CQsx4JqQ.js} +13 -13
- package/dist/{Store-Cu-hKmVa.js → Store-Cgmsklnt.js} +24 -24
- package/dist/{StoreRewards-DILeipMG.js → StoreRewards-CrPO4DKG.js} +16 -16
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-yesp6BoT.js +1118 -0
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-BnKybdKJ.js +142 -0
- package/dist/{Tier-BAZ1xuKL.js → Tier-DgKMMyKr.js} +469 -544
- package/dist/{Title-CcNAt47f.js → Title-BKijiEFV.js} +92 -93
- package/dist/{Transaction-D7DO3dKQ.js → Transaction-zHL4q_wj.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-hUjQVZ_U.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-DjafpVOa.js} +6 -6
- package/dist/{Voucher-Cq-n1CaC.js → Voucher-DW4-SD1w.js} +27 -28
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-CTQDxc5l.js → VoucherEditor.vue_vue_type_script_setup_true_lang-y2wm2Bcu.js} +12 -12
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-DuRKA4cj.js → ZodTextField.vue_vue_type_script_setup_true_lang-BWZUE554.js} +2 -2
- package/dist/{app-Z-UKRG5V.js → app-B23RANXL.js} +3083 -3663
- package/dist/app.js +3 -4
- package/dist/{business-C7EF6cKC.js → business-BFU-2tpT.js} +1 -1
- package/dist/{campaign-DHBuP4UA.js → campaign-BEKKOWya.js} +64 -114
- package/dist/{campaign--MjoY1Mn.js → campaign-CwlWx58O.js} +7 -13
- package/dist/{campaign.enum-BNN2gLFY.js → campaign.enum-5KIiekYl.js} +2 -3
- package/dist/{campaign.fn-Bd34dVnx.js → campaign.fn-CyWn_KL-.js} +130 -130
- package/dist/{collectible.enum-DO9HdJGH.js → collectible.enum-DmmR-4Nj.js} +1 -1
- package/dist/collection.fn-BB1OjBHL.js +26 -0
- package/dist/dto-p31OYANk.js +216 -0
- package/dist/{effect-BcB8IlTI.js → effect-DNDXE2iM.js} +1 -1
- package/dist/{email-addresses-BcTeU4Sh.js → email-addresses-DXSkxrZ6.js} +2 -2
- package/dist/{export-CjB7qxZ9.js → export-zMj-UAnF.js} +3 -3
- package/dist/{helper-BSgrCJRv.js → helper-D32ml7Qv.js} +1 -1
- package/dist/{index-HXiYGO4_.js → index-9jgqbdnt.js} +7 -7
- package/dist/{index-hlyg-wxV.js → index-B2OiTtF5.js} +1 -1
- package/dist/{index-CoHWpylO.js → index-B9-jeiQR.js} +1281 -1518
- package/dist/{index-iMPtFp54.js → index-BWHk6oqv.js} +3 -3
- package/dist/{index-hbyCVNa7.js → index-BmmFSQPd.js} +3 -3
- package/dist/{index-CsoBDon4.js → index-CA09A75h.js} +1968 -1996
- package/dist/index-Cc15IFUt.js +55 -0
- package/dist/{index-BpI-BI4H.js → index-CcnOzrwY.js} +1 -1
- package/dist/{index-VlFWaBrg.js → index-DSGHkaP0.js} +1 -1
- package/dist/{index-BoYEqLif.js → index-DvHLsdIR.js} +205 -817
- package/dist/{index-Bf6jNZit.js → index-PrTZHXNT.js} +1 -1
- package/dist/{index-BIAjmMga.js → index-txVWLdtz.js} +1 -1
- package/dist/{index.esm2017-CM7OnEyP.js → index.esm2017-BJG8dqci.js} +209 -209
- package/dist/{loading-CSXr0Yqz.js → loading-DuZVM_Ow.js} +1 -1
- package/dist/{lodash-Bh7XKI-R.js → lodash-DqQem5rZ.js} +1 -1
- package/dist/{membership-CfredTm3.js → membership-CvoEzwor.js} +3 -3
- package/dist/{money-BZIST_m9.js → money-B9PJ_JYh.js} +1 -1
- package/dist/{number-DXLR2w95.js → number-GIC15kny.js} +1 -1
- package/dist/object-qECH92oz.js +26 -0
- package/dist/objectid-CtJ4pTf2.js +145 -0
- package/dist/{plugins-4FlbwoES.js → plugins-XAhAFHmZ.js} +95 -94
- package/dist/{reward-DUbl79bZ.js → reward-Dy0Z6PLL.js} +1 -1
- package/dist/{rule-BQUoZ4l_.js → rule-CUu9I1Ly.js} +487 -505
- package/dist/rule-builder-DPmaehAO.js +102 -0
- package/dist/style.css +1 -1
- package/dist/template-BHtdbnoX.js +236 -0
- package/dist/{index-CIBPhxlC.js → timezone-BE1YhvLN.js} +20 -21
- package/dist/{trigger-D5g5m6tT.js → trigger-BcHfjuiZ.js} +5 -5
- package/dist/{useMarketingMaterialActions-B-Jlw2Z9.js → useMarketingMaterialActions-YQq4LWOp.js} +3 -3
- package/dist/{usePagination-DHePBBoR.js → usePagination-B1KK2gTx.js} +1 -1
- package/dist/{user-C_ToSo-g.js → user-BTRRi1B3.js} +1 -1
- package/dist/{vue-i18n-BcYh6_51.js → vue-i18n-D8NX5Rry.js} +298 -298
- package/dist/{xlsx-h4G1C-xj.js → xlsx-C9LzK7Kg.js} +1 -1
- package/dist/{zod-CgigfJar.js → zod-D3ciRzE4.js} +1 -1
- package/package.json +4 -8
- package/dist/AuditLogs-BcfgiYnJ.js +0 -2013
- package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang-eIoPtgO5.js +0 -58
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-CYQMXARx.js +0 -3377
- package/dist/Grab-DmmwrGzk.js +0 -300
- package/dist/LocationPicker.vue_vue_type_script_setup_true_lang-B9sJ-M20.js +0 -48
- package/dist/LoyaltyDashboard-CJdhYiea.js +0 -1082
- package/dist/Review-CYNPPxYU.js +0 -1141
- package/dist/ReviewFacebookCallback-0SUkKAaC.js +0 -243
- package/dist/ReviewGoogleCallback-BZEzx68n.js +0 -208
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-CtB9Ls5-.js +0 -1911
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-CGz6CTWA.js +0 -1130
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-C7lVeybl.js +0 -7007
- package/dist/duplicateCampaign-2ODeDw3a.js +0 -51
- package/dist/index-Bm0QPucw.js +0 -67
- package/dist/index-Bv4MBLQ5.js +0 -52
- package/dist/object-BYyQ0PZp.js +0 -18
- package/dist/objectid-Dg4ZodlT.js +0 -145
- package/dist/template-BoiSG7G7.js +0 -188
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineComponent as k, resolveComponent as B, openBlock as n, createBlock as M, withCtx as H, createElementVNode as t, createVNode as
|
|
2
|
-
import { _ as T } from "./lodash-
|
|
3
|
-
import "./index-
|
|
4
|
-
import { useRoute as
|
|
5
|
-
import { u as R } from "./vue-i18n-
|
|
6
|
-
import { a as
|
|
7
|
-
import { useClientEvent as
|
|
1
|
+
import { defineComponent as k, resolveComponent as B, openBlock as n, createBlock as M, withCtx as H, createElementVNode as t, createVNode as c, createElementBlock as d, unref as e, ref as I, watch as Z, Fragment as Q, createCommentVNode as P, withModifiers as U, Teleport as V, Transition as J, toDisplayString as A, renderList as F, createTextVNode as S, computed as N, normalizeClass as G, onMounted as _, isRef as $, resolveDynamicComponent as tt } from "vue";
|
|
2
|
+
import { _ as T } from "./lodash-DqQem5rZ.js";
|
|
3
|
+
import "./index-B2OiTtF5.js";
|
|
4
|
+
import { useRoute as q, useRouter as et } from "vue-router";
|
|
5
|
+
import { u as R } from "./vue-i18n-D8NX5Rry.js";
|
|
6
|
+
import { a as X, u as ot, m as K } from "./useMarketingMaterialActions-YQq4LWOp.js";
|
|
7
|
+
import { useClientEvent as Y } from "@feedmepos/mf-remy-panel";
|
|
8
8
|
import { _ as st } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
9
|
import { useSnackbar as at, useDialog as nt } from "@feedmepos/ui-library";
|
|
10
10
|
import { useCoreStore as W } from "@feedmepos/mf-common";
|
|
11
|
-
import { u as it } from "./loading-
|
|
12
|
-
import { R as z } from "./app-
|
|
11
|
+
import { u as it } from "./loading-DuZVM_Ow.js";
|
|
12
|
+
import { R as z } from "./app-B23RANXL.js";
|
|
13
13
|
const L = /* @__PURE__ */ k({
|
|
14
14
|
__name: "ActionToolbarButton",
|
|
15
15
|
props: {
|
|
@@ -17,10 +17,10 @@ const L = /* @__PURE__ */ k({
|
|
|
17
17
|
tooltip: {}
|
|
18
18
|
},
|
|
19
19
|
emits: ["click"],
|
|
20
|
-
setup(i, { emit:
|
|
21
|
-
const p =
|
|
22
|
-
return (g,
|
|
23
|
-
const
|
|
20
|
+
setup(i, { emit: r }) {
|
|
21
|
+
const p = r;
|
|
22
|
+
return (g, f) => {
|
|
23
|
+
const l = B("FmIcon"), o = B("FmTooltip");
|
|
24
24
|
return n(), M(o, {
|
|
25
25
|
content: i.tooltip,
|
|
26
26
|
placement: "bottom",
|
|
@@ -30,9 +30,9 @@ const L = /* @__PURE__ */ k({
|
|
|
30
30
|
default: H(() => [
|
|
31
31
|
t("button", {
|
|
32
32
|
class: "p-2 rounded-lg bg-white/10 hover:bg-white/20 transition-colors text-white flex items-center justify-center",
|
|
33
|
-
onClick:
|
|
33
|
+
onClick: f[0] || (f[0] = (s) => p("click"))
|
|
34
34
|
}, [
|
|
35
|
-
|
|
35
|
+
c(l, {
|
|
36
36
|
name: i.icon,
|
|
37
37
|
size: "md"
|
|
38
38
|
}, null, 8, ["name"])
|
|
@@ -48,9 +48,9 @@ const L = /* @__PURE__ */ k({
|
|
|
48
48
|
imageUrl: {}
|
|
49
49
|
},
|
|
50
50
|
emits: ["edit", "close"],
|
|
51
|
-
setup(i, { emit:
|
|
52
|
-
const p = i, g =
|
|
53
|
-
async function
|
|
51
|
+
setup(i, { emit: r }) {
|
|
52
|
+
const p = i, g = r, { t: f } = R();
|
|
53
|
+
async function l() {
|
|
54
54
|
if (p.imageUrl)
|
|
55
55
|
try {
|
|
56
56
|
const s = await (await fetch(p.imageUrl)).blob(), u = URL.createObjectURL(s), b = document.createElement("a");
|
|
@@ -60,19 +60,19 @@ const L = /* @__PURE__ */ k({
|
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
return (o, s) => (n(), d("div", lt, [
|
|
63
|
-
|
|
63
|
+
c(L, {
|
|
64
64
|
icon: "edit",
|
|
65
|
-
tooltip: e(
|
|
65
|
+
tooltip: e(f)("connect.common.edit"),
|
|
66
66
|
onClick: s[0] || (s[0] = (u) => g("edit"))
|
|
67
67
|
}, null, 8, ["tooltip"]),
|
|
68
|
-
|
|
68
|
+
c(L, {
|
|
69
69
|
icon: "download",
|
|
70
|
-
tooltip: e(
|
|
71
|
-
onClick:
|
|
70
|
+
tooltip: e(f)("connect.marketing.actions.download"),
|
|
71
|
+
onClick: l
|
|
72
72
|
}, null, 8, ["tooltip"]),
|
|
73
|
-
|
|
73
|
+
c(L, {
|
|
74
74
|
icon: "close",
|
|
75
|
-
tooltip: e(
|
|
75
|
+
tooltip: e(f)("connect.marketing.actions.close"),
|
|
76
76
|
onClick: s[1] || (s[1] = (u) => g("close"))
|
|
77
77
|
}, null, 8, ["tooltip"])
|
|
78
78
|
]));
|
|
@@ -86,8 +86,8 @@ const L = /* @__PURE__ */ k({
|
|
|
86
86
|
imageUrl: {}
|
|
87
87
|
},
|
|
88
88
|
emits: ["edit", "update:imageUrl"],
|
|
89
|
-
setup(i, { emit:
|
|
90
|
-
const p = i, g =
|
|
89
|
+
setup(i, { emit: r }) {
|
|
90
|
+
const p = i, g = r, { t: f } = R(), l = q(), o = I(!1), s = I(p.imageUrl);
|
|
91
91
|
Z(
|
|
92
92
|
() => p.imageUrl,
|
|
93
93
|
(y) => {
|
|
@@ -98,13 +98,13 @@ const L = /* @__PURE__ */ k({
|
|
|
98
98
|
function b() {
|
|
99
99
|
o.value = !1, g("edit", s.value);
|
|
100
100
|
}
|
|
101
|
-
|
|
101
|
+
Y(
|
|
102
102
|
"apply-edited-banner",
|
|
103
103
|
async ({ imageUrl: y }) => {
|
|
104
|
-
|
|
104
|
+
l.query.id && (s.value = y, g("update:imageUrl", y));
|
|
105
105
|
}
|
|
106
106
|
);
|
|
107
|
-
const { downloadMaterialImage: x, copyMaterialLink: v } =
|
|
107
|
+
const { downloadMaterialImage: x, copyMaterialLink: v } = X();
|
|
108
108
|
async function C() {
|
|
109
109
|
s.value && await x(s.value);
|
|
110
110
|
}
|
|
@@ -124,7 +124,7 @@ const L = /* @__PURE__ */ k({
|
|
|
124
124
|
e(s) ? (n(), d("img", {
|
|
125
125
|
key: 0,
|
|
126
126
|
src: e(s),
|
|
127
|
-
alt: e(
|
|
127
|
+
alt: e(f)("connect.marketing.materialEdit.generatedMaterial"),
|
|
128
128
|
class: "w-full h-full object-contain"
|
|
129
129
|
}, null, 8, rt)) : P("", !0),
|
|
130
130
|
t("div", {
|
|
@@ -132,33 +132,33 @@ const L = /* @__PURE__ */ k({
|
|
|
132
132
|
onClick: a[0] || (a[0] = U(() => {
|
|
133
133
|
}, ["stop"]))
|
|
134
134
|
}, [
|
|
135
|
-
|
|
135
|
+
c(E, { placement: "right-start" }, {
|
|
136
136
|
"menu-button": H(() => [
|
|
137
|
-
|
|
137
|
+
c(m, {
|
|
138
138
|
icon: "more_horiz",
|
|
139
139
|
variant: "tertiary",
|
|
140
140
|
class: "bg-white hover:bg-gray-100 text-black shadow-sm"
|
|
141
141
|
})
|
|
142
142
|
]),
|
|
143
143
|
default: H(() => [
|
|
144
|
-
|
|
144
|
+
c(w, {
|
|
145
145
|
icon: "open_in_new",
|
|
146
|
-
label: e(
|
|
146
|
+
label: e(f)("connect.marketing.actions.openInNewTab"),
|
|
147
147
|
onClick: D
|
|
148
148
|
}, null, 8, ["label"]),
|
|
149
|
-
|
|
149
|
+
c(w, {
|
|
150
150
|
icon: "download",
|
|
151
|
-
label: e(
|
|
151
|
+
label: e(f)("connect.marketing.actions.download"),
|
|
152
152
|
onClick: C
|
|
153
153
|
}, null, 8, ["label"]),
|
|
154
|
-
|
|
154
|
+
c(w, {
|
|
155
155
|
icon: "content_copy",
|
|
156
|
-
label: e(
|
|
156
|
+
label: e(f)("connect.marketing.actions.copyLink"),
|
|
157
157
|
onClick: h
|
|
158
158
|
}, null, 8, ["label"]),
|
|
159
|
-
|
|
159
|
+
c(w, {
|
|
160
160
|
icon: "edit",
|
|
161
|
-
label: e(
|
|
161
|
+
label: e(f)("connect.marketing.actions.regenerateImage"),
|
|
162
162
|
onClick: b
|
|
163
163
|
}, null, 8, ["label"])
|
|
164
164
|
]),
|
|
@@ -169,8 +169,8 @@ const L = /* @__PURE__ */ k({
|
|
|
169
169
|
t("div", { class: "w-10 h-10 rounded-full border-4 border-white/30 border-t-white animate-spin" }, null, -1)
|
|
170
170
|
])])) : P("", !0)
|
|
171
171
|
]),
|
|
172
|
-
(n(), M(
|
|
173
|
-
|
|
172
|
+
(n(), M(V, { to: "body" }, [
|
|
173
|
+
c(J, { name: "fade" }, {
|
|
174
174
|
default: H(() => [
|
|
175
175
|
e(o) ? (n(), d("div", {
|
|
176
176
|
key: 0,
|
|
@@ -178,7 +178,7 @@ const L = /* @__PURE__ */ k({
|
|
|
178
178
|
onClick: a[3] || (a[3] = U((O) => o.value = !1, ["self"]))
|
|
179
179
|
}, [
|
|
180
180
|
t("div", pt, [
|
|
181
|
-
|
|
181
|
+
c(ct, {
|
|
182
182
|
class: "absolute top-0 right-0 z-10 -translate-y-full p-4",
|
|
183
183
|
"image-url": e(s),
|
|
184
184
|
onEdit: b,
|
|
@@ -187,7 +187,7 @@ const L = /* @__PURE__ */ k({
|
|
|
187
187
|
e(s) ? (n(), d("img", {
|
|
188
188
|
key: 0,
|
|
189
189
|
src: e(s),
|
|
190
|
-
alt: e(
|
|
190
|
+
alt: e(f)("connect.marketing.materialEdit.preview"),
|
|
191
191
|
class: "max-h-[80vh] max-w-[90vw] object-contain rounded-xl"
|
|
192
192
|
}, null, 8, dt)) : P("", !0)
|
|
193
193
|
])
|
|
@@ -205,20 +205,20 @@ const L = /* @__PURE__ */ k({
|
|
|
205
205
|
text: {}
|
|
206
206
|
},
|
|
207
207
|
emits: ["editWithRemy"],
|
|
208
|
-
setup(i, { emit:
|
|
209
|
-
const p =
|
|
210
|
-
async function
|
|
208
|
+
setup(i, { emit: r }) {
|
|
209
|
+
const p = r, { t: g } = R(), f = at();
|
|
210
|
+
async function l(o) {
|
|
211
211
|
if (o)
|
|
212
212
|
try {
|
|
213
|
-
await navigator.clipboard.writeText(o),
|
|
213
|
+
await navigator.clipboard.writeText(o), f.open({ message: g("connect.marketing.actions.copied"), type: "success" });
|
|
214
214
|
} catch {
|
|
215
|
-
|
|
215
|
+
f.open({ message: g("connect.marketing.actions.failedToCopy"), type: "error" });
|
|
216
216
|
}
|
|
217
217
|
}
|
|
218
218
|
return (o, s) => {
|
|
219
219
|
const u = B("FmIcon"), b = B("FmTooltip");
|
|
220
220
|
return n(), d("div", ut, [
|
|
221
|
-
|
|
221
|
+
c(b, {
|
|
222
222
|
content: e(g)("connect.marketing.actions.copy"),
|
|
223
223
|
placement: "top",
|
|
224
224
|
"hide-arrow": !1
|
|
@@ -226,9 +226,9 @@ const L = /* @__PURE__ */ k({
|
|
|
226
226
|
default: H(() => [
|
|
227
227
|
t("button", {
|
|
228
228
|
class: "p-8 rounded-full hover:bg-fm-color-neutral-gray-100 transition-all opacity-0 group-hover:opacity-100 focus:opacity-100 flex items-center justify-center",
|
|
229
|
-
onClick: s[0] || (s[0] = (x) =>
|
|
229
|
+
onClick: s[0] || (s[0] = (x) => l(i.text))
|
|
230
230
|
}, [
|
|
231
|
-
|
|
231
|
+
c(u, {
|
|
232
232
|
name: "content_copy",
|
|
233
233
|
size: "sm",
|
|
234
234
|
color: "neutral-gray-400"
|
|
@@ -237,7 +237,7 @@ const L = /* @__PURE__ */ k({
|
|
|
237
237
|
]),
|
|
238
238
|
_: 1
|
|
239
239
|
}, 8, ["content"]),
|
|
240
|
-
|
|
240
|
+
c(b, {
|
|
241
241
|
content: e(g)("connect.marketing.actions.remyAi"),
|
|
242
242
|
placement: "top",
|
|
243
243
|
"hide-arrow": !1
|
|
@@ -264,8 +264,8 @@ const L = /* @__PURE__ */ k({
|
|
|
264
264
|
marketingMaterial: {}
|
|
265
265
|
},
|
|
266
266
|
emits: ["update:imageUrl", "update:headline", "update:caption"],
|
|
267
|
-
setup(i, { emit:
|
|
268
|
-
const p = i, g =
|
|
267
|
+
setup(i, { emit: r }) {
|
|
268
|
+
const p = i, g = r, { t: f } = R(), l = ot(), o = I(p.marketingMaterial.headline), s = I(p.marketingMaterial.caption), u = I(p.marketingMaterial.headline), b = I(p.marketingMaterial.caption), x = I(!1), v = I(!1);
|
|
269
269
|
Z(
|
|
270
270
|
() => p.marketingMaterial.headline,
|
|
271
271
|
(a) => {
|
|
@@ -284,14 +284,14 @@ const L = /* @__PURE__ */ k({
|
|
|
284
284
|
}
|
|
285
285
|
s.value = a ?? "", b.value = a;
|
|
286
286
|
}
|
|
287
|
-
),
|
|
287
|
+
), Y(
|
|
288
288
|
"apply-edited-copy",
|
|
289
289
|
async ({ headline: a, caption: m }) => {
|
|
290
290
|
a !== void 0 && (o.value = a, u.value = a, x.value = !0, g("update:headline", a)), m !== void 0 && (s.value = m, b.value = m, v.value = !0, g("update:caption", m));
|
|
291
291
|
}
|
|
292
292
|
);
|
|
293
293
|
function C() {
|
|
294
|
-
|
|
294
|
+
l.activate({
|
|
295
295
|
command: "editMarketingBanner",
|
|
296
296
|
prompt: "",
|
|
297
297
|
attachments: [
|
|
@@ -303,7 +303,7 @@ const L = /* @__PURE__ */ k({
|
|
|
303
303
|
});
|
|
304
304
|
}
|
|
305
305
|
function D() {
|
|
306
|
-
|
|
306
|
+
l.activate({
|
|
307
307
|
command: "editCopy",
|
|
308
308
|
attachments: [
|
|
309
309
|
{
|
|
@@ -323,26 +323,26 @@ const L = /* @__PURE__ */ k({
|
|
|
323
323
|
return (a, m) => {
|
|
324
324
|
const w = B("FmTextField"), E = B("FmTextarea");
|
|
325
325
|
return n(), d("section", bt, [
|
|
326
|
-
t("h2", vt, A(e(
|
|
326
|
+
t("h2", vt, A(e(f)("connect.marketing.materialEdit.contentDetails")), 1),
|
|
327
327
|
t("div", yt, [
|
|
328
328
|
t("div", Bt, [
|
|
329
|
-
t("p", wt, A(e(
|
|
330
|
-
|
|
329
|
+
t("p", wt, A(e(f)("connect.marketing.materialEdit.image")), 1),
|
|
330
|
+
c(mt, {
|
|
331
331
|
"image-url": i.marketingMaterial.imageUrl,
|
|
332
332
|
onEdit: C,
|
|
333
333
|
"onUpdate:imageUrl": m[0] || (m[0] = (O) => g("update:imageUrl", O))
|
|
334
334
|
}, null, 8, ["image-url"])
|
|
335
335
|
]),
|
|
336
336
|
t("div", xt, [
|
|
337
|
-
t("p", ht, A(e(
|
|
337
|
+
t("p", ht, A(e(f)("connect.marketing.materialEdit.headline")), 1),
|
|
338
338
|
t("div", Pt, [
|
|
339
|
-
|
|
339
|
+
c(w, {
|
|
340
340
|
"model-value": e(o),
|
|
341
341
|
"onUpdate:modelValue": m[1] || (m[1] = (O) => y("headline", O)),
|
|
342
342
|
onFocusChanged: m[2] || (m[2] = (O) => !O && h("headline"))
|
|
343
343
|
}, null, 8, ["model-value"]),
|
|
344
344
|
t("div", It, [
|
|
345
|
-
|
|
345
|
+
c(j, {
|
|
346
346
|
text: e(o),
|
|
347
347
|
onEditWithRemy: D
|
|
348
348
|
}, null, 8, ["text"])
|
|
@@ -350,16 +350,16 @@ const L = /* @__PURE__ */ k({
|
|
|
350
350
|
])
|
|
351
351
|
]),
|
|
352
352
|
t("div", kt, [
|
|
353
|
-
t("p", Ct, A(e(
|
|
353
|
+
t("p", Ct, A(e(f)("connect.marketing.materialEdit.caption")), 1),
|
|
354
354
|
t("div", Dt, [
|
|
355
|
-
|
|
355
|
+
c(E, {
|
|
356
356
|
"model-value": e(s),
|
|
357
357
|
"onUpdate:modelValue": m[3] || (m[3] = (O) => y("caption", O)),
|
|
358
358
|
onFocusChanged: m[4] || (m[4] = (O) => !O && h("caption")),
|
|
359
359
|
rows: "4"
|
|
360
360
|
}, null, 8, ["model-value"]),
|
|
361
361
|
t("div", Ot, [
|
|
362
|
-
|
|
362
|
+
c(j, {
|
|
363
363
|
text: e(s),
|
|
364
364
|
onEditWithRemy: D
|
|
365
365
|
}, null, 8, ["text"])
|
|
@@ -373,26 +373,26 @@ const L = /* @__PURE__ */ k({
|
|
|
373
373
|
}), Ht = { class: "flex items-center px-4" }, Nt = { class: "px-[4px] py-[6px] text-xs text-fm-color-typo-secondary" }, Mt = /* @__PURE__ */ k({
|
|
374
374
|
__name: "ActionBar",
|
|
375
375
|
setup(i) {
|
|
376
|
-
const
|
|
376
|
+
const r = [
|
|
377
377
|
{ icon: "thumb_up", count: "10k+" },
|
|
378
378
|
{ icon: "mode_comment", count: "128" },
|
|
379
379
|
{ icon: "share", count: "56" }
|
|
380
380
|
];
|
|
381
381
|
return (p, g) => {
|
|
382
|
-
const
|
|
382
|
+
const f = B("FmIcon");
|
|
383
383
|
return n(), d("div", Ht, [
|
|
384
|
-
(n(), d(Q, null, F(
|
|
385
|
-
key:
|
|
384
|
+
(n(), d(Q, null, F(r, (l) => t("button", {
|
|
385
|
+
key: l.icon,
|
|
386
386
|
class: "flex px-12 py-[6px] items-center justify-center text-fm-color-typo-secondary hover:bg-fm-color-neutral-gray-50 transition-colors fm-typo-en-body-sm-400"
|
|
387
387
|
}, [
|
|
388
|
-
|
|
388
|
+
c(f, {
|
|
389
389
|
class: "px-[4px] py-[6px]",
|
|
390
|
-
name:
|
|
390
|
+
name: l.icon,
|
|
391
391
|
size: "md",
|
|
392
392
|
color: "neutral-gray-400",
|
|
393
393
|
outline: ""
|
|
394
394
|
}, null, 8, ["name"]),
|
|
395
|
-
t("span", Nt, A(
|
|
395
|
+
t("span", Nt, A(l.count), 1)
|
|
396
396
|
])), 64))
|
|
397
397
|
]);
|
|
398
398
|
};
|
|
@@ -411,10 +411,10 @@ const L = /* @__PURE__ */ k({
|
|
|
411
411
|
caption: {}
|
|
412
412
|
},
|
|
413
413
|
setup(i) {
|
|
414
|
-
const { t:
|
|
415
|
-
return (g,
|
|
414
|
+
const { t: r } = R(), { currentBusiness: p } = W();
|
|
415
|
+
return (g, f) => {
|
|
416
416
|
var o, s;
|
|
417
|
-
const
|
|
417
|
+
const l = B("FmIcon");
|
|
418
418
|
return n(), d("div", Qt, [
|
|
419
419
|
t("div", Wt, [
|
|
420
420
|
t("div", Et, [
|
|
@@ -422,8 +422,8 @@ const L = /* @__PURE__ */ k({
|
|
|
422
422
|
key: 0,
|
|
423
423
|
src: e(p).thumbnail,
|
|
424
424
|
class: "w-full h-full object-cover",
|
|
425
|
-
alt: e(
|
|
426
|
-
}, null, 8, zt)) : (n(), M(
|
|
425
|
+
alt: e(r)("connect.marketing.preview.businessLogo")
|
|
426
|
+
}, null, 8, zt)) : (n(), M(l, {
|
|
427
427
|
key: 1,
|
|
428
428
|
name: "storefront",
|
|
429
429
|
size: "sm",
|
|
@@ -431,17 +431,17 @@ const L = /* @__PURE__ */ k({
|
|
|
431
431
|
}))
|
|
432
432
|
]),
|
|
433
433
|
t("div", Lt, [
|
|
434
|
-
t("p", Zt, A(((s = e(p)) == null ? void 0 : s.name) ?? e(
|
|
434
|
+
t("p", Zt, A(((s = e(p)) == null ? void 0 : s.name) ?? e(r)("connect.marketing.preview.yourBusiness")), 1),
|
|
435
435
|
t("p", Ft, [
|
|
436
|
-
|
|
437
|
-
|
|
436
|
+
S(A(e(r)("connect.marketing.preview.sponsored")) + " · ", 1),
|
|
437
|
+
c(l, {
|
|
438
438
|
name: "public",
|
|
439
439
|
size: "sm",
|
|
440
440
|
color: "neutral-gray-400"
|
|
441
441
|
})
|
|
442
442
|
])
|
|
443
443
|
]),
|
|
444
|
-
|
|
444
|
+
c(l, {
|
|
445
445
|
name: "more_horiz",
|
|
446
446
|
size: "sm",
|
|
447
447
|
color: "neutral-gray-400"
|
|
@@ -454,10 +454,10 @@ const L = /* @__PURE__ */ k({
|
|
|
454
454
|
i.imageUrl ? (n(), d("img", {
|
|
455
455
|
key: 0,
|
|
456
456
|
src: i.imageUrl,
|
|
457
|
-
alt: e(
|
|
457
|
+
alt: e(r)("connect.marketing.preview.postImage"),
|
|
458
458
|
class: "w-full h-auto block"
|
|
459
459
|
}, null, 8, Kt)) : (n(), d("div", jt, [
|
|
460
|
-
|
|
460
|
+
c(l, {
|
|
461
461
|
name: "image",
|
|
462
462
|
size: "xl",
|
|
463
463
|
color: "neutral-gray-300"
|
|
@@ -465,10 +465,10 @@ const L = /* @__PURE__ */ k({
|
|
|
465
465
|
]))
|
|
466
466
|
]),
|
|
467
467
|
t("div", qt, [
|
|
468
|
-
|
|
468
|
+
f[0] || (f[0] = t("p", { class: "fm-typo-en-body-xs-400 text-fm-color-typo-secondary uppercase tracking-wide mb-2" }, " yourbusiness.com ", -1)),
|
|
469
469
|
t("p", Xt, A(i.headline ?? "—"), 1)
|
|
470
470
|
]),
|
|
471
|
-
|
|
471
|
+
c(Mt)
|
|
472
472
|
]);
|
|
473
473
|
};
|
|
474
474
|
}
|
|
@@ -486,67 +486,64 @@ const L = /* @__PURE__ */ k({
|
|
|
486
486
|
caption: {}
|
|
487
487
|
},
|
|
488
488
|
setup(i) {
|
|
489
|
-
const { t:
|
|
490
|
-
return (g,
|
|
489
|
+
const { t: r } = R(), { currentBusiness: p } = W();
|
|
490
|
+
return (g, f) => {
|
|
491
491
|
var o, s;
|
|
492
|
-
const
|
|
493
|
-
return n(), d(
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
t("div",
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
t("div",
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
name: "storefront",
|
|
521
|
-
size: "sm",
|
|
522
|
-
color: "neutral-gray-400"
|
|
523
|
-
}))
|
|
524
|
-
]),
|
|
525
|
-
t("div", oe, [
|
|
526
|
-
t("p", se, A(((s = e(p)) == null ? void 0 : s.name) ?? e(f)("connect.marketing.preview.yourBusiness")), 1),
|
|
527
|
-
t("p", ae, A(e(f)("connect.marketing.preview.sponsored")), 1)
|
|
528
|
-
]),
|
|
529
|
-
r(c, {
|
|
530
|
-
name: "more_vert",
|
|
531
|
-
size: "sm",
|
|
532
|
-
color: "neutral-white"
|
|
533
|
-
}),
|
|
534
|
-
r(c, {
|
|
535
|
-
name: "close",
|
|
492
|
+
const l = B("FmIcon");
|
|
493
|
+
return n(), d("div", Vt, [
|
|
494
|
+
i.imageUrl ? (n(), d("img", {
|
|
495
|
+
key: 0,
|
|
496
|
+
src: i.imageUrl,
|
|
497
|
+
alt: e(r)("connect.marketing.preview.storyImage"),
|
|
498
|
+
class: "absolute inset-0 w-full h-full object-contain"
|
|
499
|
+
}, null, 8, Jt)) : (n(), d("div", St, [
|
|
500
|
+
c(l, {
|
|
501
|
+
name: "image",
|
|
502
|
+
size: "xl",
|
|
503
|
+
color: "neutral-gray-500"
|
|
504
|
+
})
|
|
505
|
+
])),
|
|
506
|
+
t("div", _t, [
|
|
507
|
+
f[0] || (f[0] = t("div", { class: "flex gap-4 mb-10" }, [
|
|
508
|
+
t("div", { class: "h-[2px] flex-1 rounded-full bg-white" })
|
|
509
|
+
], -1)),
|
|
510
|
+
t("div", $t, [
|
|
511
|
+
t("div", te, [
|
|
512
|
+
(o = e(p)) != null && o.thumbnail ? (n(), d("img", {
|
|
513
|
+
key: 0,
|
|
514
|
+
src: e(p).thumbnail,
|
|
515
|
+
class: "w-full h-full object-cover",
|
|
516
|
+
alt: e(r)("connect.marketing.preview.businessLogo")
|
|
517
|
+
}, null, 8, ee)) : (n(), M(l, {
|
|
518
|
+
key: 1,
|
|
519
|
+
name: "storefront",
|
|
536
520
|
size: "sm",
|
|
537
|
-
color: "neutral-
|
|
538
|
-
})
|
|
539
|
-
])
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
521
|
+
color: "neutral-gray-400"
|
|
522
|
+
}))
|
|
523
|
+
]),
|
|
524
|
+
t("div", oe, [
|
|
525
|
+
t("p", se, A(((s = e(p)) == null ? void 0 : s.name) ?? e(r)("connect.marketing.preview.yourBusiness")), 1),
|
|
526
|
+
t("p", ae, A(e(r)("connect.marketing.preview.sponsored")), 1)
|
|
527
|
+
]),
|
|
528
|
+
c(l, {
|
|
529
|
+
name: "more_vert",
|
|
530
|
+
size: "sm",
|
|
531
|
+
color: "neutral-white"
|
|
532
|
+
}),
|
|
533
|
+
c(l, {
|
|
534
|
+
name: "close",
|
|
535
|
+
size: "sm",
|
|
536
|
+
color: "neutral-white"
|
|
537
|
+
})
|
|
546
538
|
])
|
|
547
539
|
]),
|
|
548
|
-
|
|
549
|
-
|
|
540
|
+
t("div", ne, [
|
|
541
|
+
i.caption ? (n(), d("p", ie, A(i.caption), 1)) : P("", !0),
|
|
542
|
+
t("div", le, [
|
|
543
|
+
t("button", ce, A(i.headline ?? e(r)("connect.marketing.preview.learnMore")), 1)
|
|
544
|
+
])
|
|
545
|
+
])
|
|
546
|
+
]);
|
|
550
547
|
};
|
|
551
548
|
}
|
|
552
549
|
}), fe = { class: "max-w-[400px] mx-auto rounded-lg border border-fm-color-neutral-gray-200 fm-shadow-light-200 overflow-hidden bg-white" }, pe = { class: "flex items-center gap-12 px-12 py-10" }, de = { class: "w-32 h-32 rounded-full bg-gradient-to-tr from-yellow-400 via-pink-500 to-purple-600 p-[2px] shrink-0" }, ge = { class: "w-full h-full rounded-full bg-white p-[1px] overflow-hidden" }, me = ["src", "alt"], Ae = {
|
|
@@ -566,10 +563,10 @@ const L = /* @__PURE__ */ k({
|
|
|
566
563
|
caption: {}
|
|
567
564
|
},
|
|
568
565
|
setup(i) {
|
|
569
|
-
const { t:
|
|
570
|
-
return (g,
|
|
566
|
+
const { t: r } = R(), { currentBusiness: p } = W();
|
|
567
|
+
return (g, f) => {
|
|
571
568
|
var o, s, u;
|
|
572
|
-
const
|
|
569
|
+
const l = B("FmIcon");
|
|
573
570
|
return n(), d("div", fe, [
|
|
574
571
|
t("div", pe, [
|
|
575
572
|
t("div", de, [
|
|
@@ -578,9 +575,9 @@ const L = /* @__PURE__ */ k({
|
|
|
578
575
|
key: 0,
|
|
579
576
|
src: e(p).thumbnail,
|
|
580
577
|
class: "w-full h-full object-cover rounded-full",
|
|
581
|
-
alt: e(
|
|
578
|
+
alt: e(r)("connect.marketing.preview.businessLogo")
|
|
582
579
|
}, null, 8, me)) : (n(), d("div", Ae, [
|
|
583
|
-
|
|
580
|
+
c(l, {
|
|
584
581
|
name: "storefront",
|
|
585
582
|
size: "sm",
|
|
586
583
|
color: "neutral-gray-400"
|
|
@@ -589,10 +586,10 @@ const L = /* @__PURE__ */ k({
|
|
|
589
586
|
])
|
|
590
587
|
]),
|
|
591
588
|
t("div", ue, [
|
|
592
|
-
t("p", be, A(((s = e(p)) == null ? void 0 : s.name) ?? e(
|
|
593
|
-
t("p", ve, A(e(
|
|
589
|
+
t("p", be, A(((s = e(p)) == null ? void 0 : s.name) ?? e(r)("connect.marketing.preview.yourBusiness")), 1),
|
|
590
|
+
t("p", ve, A(e(r)("connect.marketing.preview.sponsored")), 1)
|
|
594
591
|
]),
|
|
595
|
-
|
|
592
|
+
c(l, {
|
|
596
593
|
name: "more_horiz",
|
|
597
594
|
size: "sm",
|
|
598
595
|
color: "neutral-gray-400"
|
|
@@ -602,10 +599,10 @@ const L = /* @__PURE__ */ k({
|
|
|
602
599
|
i.imageUrl ? (n(), d("img", {
|
|
603
600
|
key: 0,
|
|
604
601
|
src: i.imageUrl,
|
|
605
|
-
alt: e(
|
|
602
|
+
alt: e(r)("connect.marketing.preview.postImage"),
|
|
606
603
|
class: "w-full h-auto block"
|
|
607
604
|
}, null, 8, Be)) : (n(), d("div", we, [
|
|
608
|
-
|
|
605
|
+
c(l, {
|
|
609
606
|
name: "image",
|
|
610
607
|
size: "xl",
|
|
611
608
|
color: "neutral-gray-300"
|
|
@@ -613,35 +610,35 @@ const L = /* @__PURE__ */ k({
|
|
|
613
610
|
]))
|
|
614
611
|
]),
|
|
615
612
|
t("div", xe, [
|
|
616
|
-
|
|
613
|
+
c(l, {
|
|
617
614
|
name: "favorite_border",
|
|
618
615
|
size: "md",
|
|
619
616
|
color: "neutral-gray-700"
|
|
620
617
|
}),
|
|
621
|
-
|
|
618
|
+
c(l, {
|
|
622
619
|
name: "mode_comment",
|
|
623
620
|
size: "md",
|
|
624
621
|
color: "neutral-gray-700",
|
|
625
622
|
outline: ""
|
|
626
623
|
}),
|
|
627
|
-
|
|
624
|
+
c(l, {
|
|
628
625
|
name: "send",
|
|
629
626
|
size: "md",
|
|
630
627
|
color: "neutral-gray-700"
|
|
631
628
|
}),
|
|
632
|
-
|
|
633
|
-
|
|
629
|
+
f[0] || (f[0] = t("div", { class: "flex-1" }, null, -1)),
|
|
630
|
+
c(l, {
|
|
634
631
|
name: "bookmark_border",
|
|
635
632
|
size: "md",
|
|
636
633
|
color: "neutral-gray-700"
|
|
637
634
|
})
|
|
638
635
|
]),
|
|
639
636
|
t("div", he, [
|
|
640
|
-
t("p", Pe, A(e(
|
|
637
|
+
t("p", Pe, A(e(r)("connect.marketing.preview.likes", { count: "10,428" })), 1)
|
|
641
638
|
]),
|
|
642
639
|
i.caption || i.headline ? (n(), d("div", Ie, [
|
|
643
640
|
t("p", ke, [
|
|
644
|
-
t("span", Ce, A(((u = e(p)) == null ? void 0 : u.name) ?? e(
|
|
641
|
+
t("span", Ce, A(((u = e(p)) == null ? void 0 : u.name) ?? e(r)("connect.marketing.preview.yourBusiness")), 1),
|
|
645
642
|
t("span", De, A(i.caption ?? i.headline), 1)
|
|
646
643
|
])
|
|
647
644
|
])) : P("", !0)
|
|
@@ -665,25 +662,25 @@ const L = /* @__PURE__ */ k({
|
|
|
665
662
|
caption: {}
|
|
666
663
|
},
|
|
667
664
|
setup(i) {
|
|
668
|
-
const { t:
|
|
669
|
-
return (g,
|
|
665
|
+
const { t: r } = R(), { currentBusiness: p } = W();
|
|
666
|
+
return (g, f) => {
|
|
670
667
|
var o, s;
|
|
671
|
-
const
|
|
668
|
+
const l = B("FmIcon");
|
|
672
669
|
return n(), d("div", Re, [
|
|
673
670
|
i.imageUrl ? (n(), d("img", {
|
|
674
671
|
key: 0,
|
|
675
672
|
src: i.imageUrl,
|
|
676
|
-
alt: e(
|
|
673
|
+
alt: e(r)("connect.marketing.preview.storyImage"),
|
|
677
674
|
class: "absolute inset-0 w-full h-full object-contain"
|
|
678
675
|
}, null, 8, He)) : (n(), d("div", Ne, [
|
|
679
|
-
|
|
676
|
+
c(l, {
|
|
680
677
|
name: "image",
|
|
681
678
|
size: "xl",
|
|
682
679
|
color: "neutral-gray-500"
|
|
683
680
|
})
|
|
684
681
|
])),
|
|
685
682
|
t("div", Me, [
|
|
686
|
-
|
|
683
|
+
f[0] || (f[0] = t("div", { class: "flex gap-4 mb-10" }, [
|
|
687
684
|
t("div", { class: "h-[2px] flex-1 rounded-full bg-white" })
|
|
688
685
|
], -1)),
|
|
689
686
|
t("div", Qe, [
|
|
@@ -693,9 +690,9 @@ const L = /* @__PURE__ */ k({
|
|
|
693
690
|
key: 0,
|
|
694
691
|
src: e(p).thumbnail,
|
|
695
692
|
class: "w-full h-full object-cover",
|
|
696
|
-
alt: e(
|
|
693
|
+
alt: e(r)("connect.marketing.preview.businessLogo")
|
|
697
694
|
}, null, 8, ze)) : (n(), d("div", Le, [
|
|
698
|
-
|
|
695
|
+
c(l, {
|
|
699
696
|
name: "storefront",
|
|
700
697
|
size: "sm",
|
|
701
698
|
color: "neutral-gray-400"
|
|
@@ -704,15 +701,15 @@ const L = /* @__PURE__ */ k({
|
|
|
704
701
|
])
|
|
705
702
|
]),
|
|
706
703
|
t("div", Ze, [
|
|
707
|
-
t("p", Fe, A(((s = e(p)) == null ? void 0 : s.name) ?? e(
|
|
708
|
-
t("p", Ue, A(e(
|
|
704
|
+
t("p", Fe, A(((s = e(p)) == null ? void 0 : s.name) ?? e(r)("connect.marketing.preview.yourBusiness")), 1),
|
|
705
|
+
t("p", Ue, A(e(r)("connect.marketing.preview.sponsored")), 1)
|
|
709
706
|
]),
|
|
710
|
-
|
|
707
|
+
c(l, {
|
|
711
708
|
name: "more_vert",
|
|
712
709
|
size: "sm",
|
|
713
710
|
color: "neutral-white"
|
|
714
711
|
}),
|
|
715
|
-
|
|
712
|
+
c(l, {
|
|
716
713
|
name: "close",
|
|
717
714
|
size: "sm",
|
|
718
715
|
color: "neutral-white"
|
|
@@ -722,7 +719,7 @@ const L = /* @__PURE__ */ k({
|
|
|
722
719
|
t("div", Ge, [
|
|
723
720
|
i.caption ? (n(), d("p", Te, A(i.caption), 1)) : P("", !0),
|
|
724
721
|
t("div", Ke, [
|
|
725
|
-
t("button", je, A(i.headline ?? e(
|
|
722
|
+
t("button", je, A(i.headline ?? e(r)("connect.marketing.preview.learnMore")), 1)
|
|
726
723
|
])
|
|
727
724
|
])
|
|
728
725
|
]);
|
|
@@ -743,21 +740,21 @@ const L = /* @__PURE__ */ k({
|
|
|
743
740
|
modelValue: {}
|
|
744
741
|
},
|
|
745
742
|
emits: ["update:modelValue"],
|
|
746
|
-
setup(i, { emit:
|
|
747
|
-
const p = i, g =
|
|
743
|
+
setup(i, { emit: r }) {
|
|
744
|
+
const p = i, g = r, { t: f } = R(), l = I(!1), o = N(() => [
|
|
748
745
|
{
|
|
749
|
-
name:
|
|
746
|
+
name: f("connect.marketing.preview.facebook"),
|
|
750
747
|
iconColor: "#1877F2",
|
|
751
748
|
iconPath: "M9.101 23.691v-7.98H6.627v-3.667h2.474v-1.58c0-4.085 1.848-5.978 5.858-5.978.401 0 .955.042 1.468.103a8.68 8.68 0 0 1 1.141.195v3.325a8.623 8.623 0 0 0-.653-.036 26.805 26.805 0 0 0-.733-.009c-.707 0-1.259.096-1.675.309a1.686 1.686 0 0 0-.679.622c-.258.42-.374.995-.374 1.752v1.297h3.919l-.386 2.103-.287 1.564h-3.246v8.245C19.396 23.238 24 18.179 24 12.044c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.628 3.874 10.35 9.101 11.647Z",
|
|
752
749
|
options: [
|
|
753
750
|
{
|
|
754
|
-
label:
|
|
751
|
+
label: f("connect.marketing.preview.facebookPost"),
|
|
755
752
|
value: "facebook-post",
|
|
756
753
|
icon: "draft",
|
|
757
754
|
aspectRatio: "1:1"
|
|
758
755
|
},
|
|
759
756
|
{
|
|
760
|
-
label:
|
|
757
|
+
label: f("connect.marketing.preview.facebookStory"),
|
|
761
758
|
value: "facebook-story",
|
|
762
759
|
icon: "motion_play",
|
|
763
760
|
aspectRatio: "9:16"
|
|
@@ -765,18 +762,18 @@ const L = /* @__PURE__ */ k({
|
|
|
765
762
|
]
|
|
766
763
|
},
|
|
767
764
|
{
|
|
768
|
-
name:
|
|
765
|
+
name: f("connect.marketing.preview.instagram"),
|
|
769
766
|
iconColor: "#E1306C",
|
|
770
767
|
iconPath: "M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zM12 0C8.741 0 8.333.014 7.053.072 2.695.272.273 2.69.073 7.052.014 8.333 0 8.741 0 12c0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98C8.333 23.986 8.741 24 12 24c3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98C15.668.014 15.259 0 12 0zm0 5.838a6.162 6.162 0 100 12.324 6.162 6.162 0 000-12.324zM12 16a4 4 0 110-8 4 4 0 010 8zm5.882-10.55a1.44 1.44 0 10-2.88 0 1.44 1.44 0 002.88 0z",
|
|
771
768
|
options: [
|
|
772
769
|
{
|
|
773
|
-
label:
|
|
770
|
+
label: f("connect.marketing.preview.instagramPost"),
|
|
774
771
|
value: "instagram-post",
|
|
775
772
|
icon: "draft",
|
|
776
773
|
aspectRatio: "1:1"
|
|
777
774
|
},
|
|
778
775
|
{
|
|
779
|
-
label:
|
|
776
|
+
label: f("connect.marketing.preview.instagramStory"),
|
|
780
777
|
value: "instagram-story",
|
|
781
778
|
icon: "motion_play",
|
|
782
779
|
aspectRatio: "9:16"
|
|
@@ -788,19 +785,19 @@ const L = /* @__PURE__ */ k({
|
|
|
788
785
|
), b = N(
|
|
789
786
|
() => o.value.find((v) => v.options.some((C) => C.value === p.modelValue))
|
|
790
787
|
), x = (v) => {
|
|
791
|
-
g("update:modelValue", v),
|
|
788
|
+
g("update:modelValue", v), l.value = !1;
|
|
792
789
|
};
|
|
793
790
|
return (v, C) => {
|
|
794
791
|
const D = B("FmIcon");
|
|
795
792
|
return n(), d("div", Xe, [
|
|
796
|
-
|
|
793
|
+
l.value ? (n(), d("div", {
|
|
797
794
|
key: 0,
|
|
798
795
|
class: "fixed inset-0 z-10",
|
|
799
|
-
onClick: C[0] || (C[0] = (h) =>
|
|
796
|
+
onClick: C[0] || (C[0] = (h) => l.value = !1)
|
|
800
797
|
})) : P("", !0),
|
|
801
798
|
t("button", {
|
|
802
799
|
type: "button",
|
|
803
|
-
onClick: C[1] || (C[1] = (h) =>
|
|
800
|
+
onClick: C[1] || (C[1] = (h) => l.value = !l.value),
|
|
804
801
|
class: "relative z-20 flex items-center justify-between w-full px-16 py-12 bg-white border border-fm-color-neutral-gray-200 rounded-lg hover:border-fm-color-primary-300 focus:outline-none focus:border-fm-color-primary-500 transition-colors shadow-sm"
|
|
805
802
|
}, [
|
|
806
803
|
u.value && b.value ? (n(), d("div", Ye, [
|
|
@@ -816,13 +813,13 @@ const L = /* @__PURE__ */ k({
|
|
|
816
813
|
], 8, Ve)),
|
|
817
814
|
t("span", Se, A(u.value.label), 1)
|
|
818
815
|
])) : P("", !0),
|
|
819
|
-
|
|
816
|
+
c(D, {
|
|
820
817
|
name: "expand_more",
|
|
821
818
|
size: "md",
|
|
822
819
|
color: "neutral-gray-400"
|
|
823
820
|
})
|
|
824
821
|
]),
|
|
825
|
-
|
|
822
|
+
l.value ? (n(), d("div", _e, [
|
|
826
823
|
t("div", $e, [
|
|
827
824
|
(n(!0), d(Q, null, F(o.value, (h, y) => (n(), d("div", {
|
|
828
825
|
key: h.name,
|
|
@@ -850,7 +847,7 @@ const L = /* @__PURE__ */ k({
|
|
|
850
847
|
]])
|
|
851
848
|
}, [
|
|
852
849
|
t("div", io, [
|
|
853
|
-
|
|
850
|
+
c(D, {
|
|
854
851
|
name: a.icon,
|
|
855
852
|
size: "sm",
|
|
856
853
|
outline: "",
|
|
@@ -880,24 +877,24 @@ const L = /* @__PURE__ */ k({
|
|
|
880
877
|
marketingMaterial: {}
|
|
881
878
|
},
|
|
882
879
|
emits: ["save"],
|
|
883
|
-
setup(i, { emit:
|
|
884
|
-
const p = i, { t: g } = R(), { shareMaterial:
|
|
885
|
-
async function
|
|
886
|
-
await
|
|
880
|
+
setup(i, { emit: r }) {
|
|
881
|
+
const p = i, { t: g } = R(), { shareMaterial: f } = X();
|
|
882
|
+
async function l() {
|
|
883
|
+
await f(p.marketingMaterial);
|
|
887
884
|
}
|
|
888
885
|
return (o, s) => {
|
|
889
886
|
const u = B("FmButton"), b = B("FmMenuItem"), x = B("FmMenu");
|
|
890
887
|
return n(), d("div", fo, [
|
|
891
|
-
|
|
888
|
+
c(u, {
|
|
892
889
|
variant: "primary",
|
|
893
890
|
disabled: i.disabled,
|
|
894
891
|
class: "!rounded-r-none",
|
|
895
892
|
label: e(g)("connect.common.save"),
|
|
896
893
|
onClick: s[0] || (s[0] = (v) => o.$emit("save"))
|
|
897
894
|
}, null, 8, ["disabled", "label"]),
|
|
898
|
-
|
|
895
|
+
c(x, { placement: "bottom-end" }, {
|
|
899
896
|
"menu-button": H(() => [
|
|
900
|
-
|
|
897
|
+
c(u, {
|
|
901
898
|
variant: "primary",
|
|
902
899
|
icon: "arrow_drop_down",
|
|
903
900
|
disabled: i.disabled,
|
|
@@ -905,10 +902,10 @@ const L = /* @__PURE__ */ k({
|
|
|
905
902
|
}, null, 8, ["disabled"])
|
|
906
903
|
]),
|
|
907
904
|
default: H(() => [
|
|
908
|
-
|
|
905
|
+
c(b, {
|
|
909
906
|
label: e(g)("connect.marketing.actions.share"),
|
|
910
907
|
disabled: !i.marketingMaterial || i.disabled,
|
|
911
|
-
onClick:
|
|
908
|
+
onClick: l
|
|
912
909
|
}, null, 8, ["label", "disabled"])
|
|
913
910
|
]),
|
|
914
911
|
_: 1
|
|
@@ -919,31 +916,31 @@ const L = /* @__PURE__ */ k({
|
|
|
919
916
|
}), go = { class: "mx-auto mb-24 grid max-w-[856px] grid-cols-1 lg:grid-cols-2 rounded-2xl xs:rounded-none border border-fm-color-neutral-gray-200 xs:border-none overflow-hidden" }, mo = { class: "min-w-0 bg-fm-color-neutral-gray-50 xs:p-16" }, Ao = { class: "mx-auto flex max-w-[560px] flex-col" }, uo = { class: "p-24 xs:p-16" }, bo = { class: "bg-fm-color-neutral-gray-100 p-24 xs:p-12" }, Ro = /* @__PURE__ */ k({
|
|
920
917
|
__name: "MarketingMaterialEdit",
|
|
921
918
|
setup(i) {
|
|
922
|
-
const { t:
|
|
923
|
-
label:
|
|
919
|
+
const { t: r } = R(), p = et(), g = q(), f = nt(), { minor: l } = it, o = I(null), s = I(null), u = N(() => !o.value || !s.value ? !1 : o.value.imageUrl !== s.value.imageUrl || o.value.headline !== s.value.headline || o.value.caption !== s.value.caption), b = {
|
|
920
|
+
label: r("connect.common.cancel"),
|
|
924
921
|
value: "cancel",
|
|
925
922
|
isPrimary: !1
|
|
926
923
|
};
|
|
927
924
|
async function x() {
|
|
928
|
-
u.value ?
|
|
929
|
-
title:
|
|
930
|
-
message:
|
|
925
|
+
u.value ? f.open({
|
|
926
|
+
title: r("connect.campaign.common.unsaved_changes"),
|
|
927
|
+
message: r("connect.campaign.common.unsaved_changes"),
|
|
931
928
|
primaryActions: {
|
|
932
|
-
text:
|
|
929
|
+
text: r("connect.campaign.common.unsaved_changes_confirm"),
|
|
933
930
|
close: !0
|
|
934
931
|
},
|
|
935
932
|
secondaryActions: {
|
|
936
|
-
text:
|
|
933
|
+
text: r("connect.campaign.common.unsaved_changes_cancel"),
|
|
937
934
|
close: !1
|
|
938
935
|
}
|
|
939
936
|
}).onPrimary(() => {
|
|
940
937
|
p.push({ name: z["$connect-MARKETING"] });
|
|
941
938
|
}).onSecondary(() => {
|
|
942
|
-
|
|
939
|
+
f.close();
|
|
943
940
|
}) : p.push({ name: z["$connect-MARKETING"] });
|
|
944
941
|
}
|
|
945
942
|
async function v() {
|
|
946
|
-
o.value && await
|
|
943
|
+
o.value && await l(
|
|
947
944
|
async () => {
|
|
948
945
|
const y = o.value._id, a = await K.updateMarketingMaterial(y, {
|
|
949
946
|
imageUrl: o.value.imageUrl,
|
|
@@ -953,8 +950,8 @@ const L = /* @__PURE__ */ k({
|
|
|
953
950
|
o.value = a, s.value = T.cloneDeep(a);
|
|
954
951
|
},
|
|
955
952
|
{
|
|
956
|
-
message:
|
|
957
|
-
successMessage:
|
|
953
|
+
message: r("connect.marketing.materialEdit.saving"),
|
|
954
|
+
successMessage: r("connect.marketing.materialEdit.save_success")
|
|
958
955
|
}
|
|
959
956
|
);
|
|
960
957
|
}
|
|
@@ -984,15 +981,15 @@ const L = /* @__PURE__ */ k({
|
|
|
984
981
|
}), (y, a) => {
|
|
985
982
|
const m = B("FmPageHead");
|
|
986
983
|
return n(), d(Q, null, [
|
|
987
|
-
|
|
984
|
+
c(m, {
|
|
988
985
|
"back-button": !0,
|
|
989
|
-
title: e(
|
|
986
|
+
title: e(r)("connect.marketing.materialEdit.title"),
|
|
990
987
|
actions: [b],
|
|
991
988
|
"onClick:back": x,
|
|
992
989
|
"onClick:action": C
|
|
993
990
|
}, {
|
|
994
991
|
append: H(() => [
|
|
995
|
-
|
|
992
|
+
c(po, {
|
|
996
993
|
"marketing-material": e(o),
|
|
997
994
|
onSave: v
|
|
998
995
|
}, null, 8, ["marketing-material"])
|
|
@@ -1003,7 +1000,7 @@ const L = /* @__PURE__ */ k({
|
|
|
1003
1000
|
t("section", mo, [
|
|
1004
1001
|
t("div", Ao, [
|
|
1005
1002
|
t("div", uo, [
|
|
1006
|
-
|
|
1003
|
+
c(ro, {
|
|
1007
1004
|
modelValue: e(D),
|
|
1008
1005
|
"onUpdate:modelValue": a[0] || (a[0] = (w) => $(D) ? D.value = w : null)
|
|
1009
1006
|
}, null, 8, ["modelValue"])
|