@feedmepos/mf-connect 0.1.57-prod → 0.1.59-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-BqvhYgCU.js → Analytic-1heLfSqq.js} +11 -11
- package/dist/{App-Dtl_D0cH.js → App-BOM2IfBO.js} +7 -7
- package/dist/{Bin-y4ikpgPS.js → Bin-BgYzSjrq.js} +8 -8
- package/dist/{Broadcast-DSROFwe4.js → Broadcast-DHeN_79K.js} +9 -9
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CcsG6vOP.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DFOIbmI6.js} +6 -6
- package/dist/{Card-BiSEPsZb.js → Card-CuJ7bMy5.js} +16 -16
- package/dist/{Collections-CX-nN7Xj.js → Collections-D1FRwIRi.js} +7 -7
- package/dist/{Credit-IiV9b4cB.js → Credit-CeYpgCod.js} +9 -9
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-CoGes8YL.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-B8lOyyAc.js} +30 -30
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-sGh_SMCH.js → EffectSheet.vue_vue_type_style_index_0_lang-De2lhmbT.js} +6 -6
- package/dist/{Experience-Cf-EMhKy.js → Experience-D-tJxul7.js} +9 -9
- package/dist/{Game-C8mfJn6W.js → Game-BOmYWwRj.js} +10 -10
- package/dist/{Index-DkvO1AoT.js → Index-CRBYEPFf.js} +10 -10
- package/dist/{Marketing-xJTIo3RF.js → Marketing-D7WunOsO.js} +6 -6
- package/dist/{Member-DZkYoKW8.js → Member-iYAPEdoQ.js} +10 -10
- package/dist/{MemberList-CAYEJnf3.js → MemberList-CtR-UjtG.js} +25 -25
- package/dist/{MemberTransactions-Dc5aAQ69.js → MemberTransactions-BMQOdkr2.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-BSvlPzw8.js → MessageInput.vue_vue_type_script_setup_true_lang-DhJlcYpw.js} +7 -7
- package/dist/{Mission-C_NbNWZw.js → Mission-DSBH4Di0.js} +10 -10
- package/dist/{Overview-DyxEwEfe.js → Overview-C0KCN3fH.js} +18 -18
- package/dist/{Point-CsEWk61V.js → Point-AN7wmCXY.js} +9 -9
- package/dist/{Promotion--pWgy9Dx.js → Promotion-Cbf4W6Vh.js} +10 -10
- package/dist/{Queue-k3qAQR7B.js → Queue-Bo_RtLpU.js} +16 -16
- package/dist/{Record-D5F5JyVA.js → Record-BphvsxDb.js} +8 -8
- package/dist/{Reward-3FSrq5mX.js → Reward-CgHUAB5V.js} +15 -15
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-Dzj7a7UY.js → RewardGroup.vue_vue_type_script_setup_true_lang-DaBRd_Kw.js} +11 -11
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-DRl_Gjfx.js → RuleGroup.vue_vue_type_script_setup_true_lang-C_65qxpU.js} +13 -13
- package/dist/{Segment-BWJn6ODR.js → Segment-Cc0D6nPj.js} +22 -22
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-BKsV_zcr.js → SelectItems.vue_vue_type_script_setup_true_lang-BxUG7_bX.js} +2 -2
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-C3efGNC_.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-bqKHjikC.js} +11 -11
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-Cj7c2V3h.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-DA7bevEn.js} +3 -3
- package/dist/Setting-DjVTTqky.js +1918 -0
- package/dist/SettingAdvertisements-BL81KD_S.js +262 -0
- package/dist/{Store-BrvmHPCX.js → Store-DqXIQ9EY.js} +19 -19
- package/dist/{StoreRewards-D_7fr-Ef.js → StoreRewards-xlzAHJkc.js} +13 -13
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-BXy0L5AH.js → StoreTransactions.vue_vue_type_script_setup_true_lang-OphuWknh.js} +19 -19
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-DumcDlBs.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-DGSjAbol.js} +1 -1
- package/dist/{Tier-C4wvx8F7.js → Tier-DadaaAEc.js} +20 -20
- package/dist/{Title-CPHT85Uj.js → Title-BDBxQMEm.js} +19 -19
- package/dist/{Transaction-6Ig2W00P.js → Transaction-BRGCw9Va.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-DknFkIJh.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-qe26FZBo.js} +6 -6
- package/dist/{Voucher-Bbl-7gZ5.js → Voucher-CtvWJfVU.js} +13 -13
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-xsswRZG8.js → VoucherEditor.vue_vue_type_script_setup_true_lang-dS7n6KJt.js} +10 -10
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-B5J6Hd8G.js → ZodTextField.vue_vue_type_script_setup_true_lang-ndun9vf-.js} +1 -1
- package/dist/{app-CAEhNFRG.js → app-9QTXPjre.js} +1 -1
- package/dist/{app-BDVZwARN.js → app-UNZJVzly.js} +482 -445
- package/dist/app.js +1 -1
- package/dist/{business-6C_ol5wd.js → business-DtufpzhR.js} +1 -1
- package/dist/{campaign-DrQp6qBu.js → campaign-63K4Xtsd.js} +2 -2
- package/dist/{campaign-B13G6pZ3.js → campaign-Dm85zK-z.js} +9 -9
- package/dist/{campaign.enum-DnTrlaNC.js → campaign.enum-DBWgoidX.js} +1 -1
- package/dist/{campaign.fn-BZse90_k.js → campaign.fn-BpifzSGC.js} +146 -146
- package/dist/{collectible.enum-633Me0yR.js → collectible.enum-2_2_6r39.js} +1 -1
- package/dist/{collection.fn-C96855j5.js → collection.fn-B2rlSiv_.js} +2 -2
- package/dist/{dto-2bMujqmZ.js → dto-Df83CuN3.js} +4 -4
- package/dist/{effect-C7lAJwKh.js → effect-BUEqEGkq.js} +1 -1
- package/dist/{email-addresses-3ayN-9jv.js → email-addresses-BUNKzO1f.js} +1 -1
- package/dist/{export-BNbDV7SC.js → export-BzY3BDZJ.js} +3 -3
- package/dist/{helper-CsfZ__dQ.js → helper-BaJdC23g.js} +1 -1
- package/dist/{index-BdnRNcVO.js → index-BA5QwPCT.js} +1 -1
- package/dist/{index-Cf_fcvoS.js → index-BInlN52T.js} +3 -3
- package/dist/{index-DdjSIwSL.js → index-BLjKPiBb.js} +1 -1
- package/dist/{index-BmyNfpfG.js → index-BQTPw5fM.js} +3 -3
- package/dist/{index-CSBRkhKy.js → index-BSQCStAn.js} +1 -1
- package/dist/{index-DcJq7tl4.js → index-Bzv6BHPk.js} +1023 -1023
- package/dist/{index-D4kdSzs9.js → index-C0XYFg_a.js} +51 -44
- package/dist/{index-tcAb0W5F.js → index-D_hUHpqX.js} +1 -1
- package/dist/{index-BLSAz0gK.js → index-DlwtDkgr.js} +1 -1
- package/dist/{index-LKr2k8J2.js → index-DrAbySpd.js} +11 -13
- package/dist/{index-BY9I3Cer.js → index-JxOM03oW.js} +1 -1
- package/dist/{index-CqrO13uj.js → index-X9YonBq5.js} +1 -1
- package/dist/{index-XAxwm-1v.js → index-gvl1UKmI.js} +11 -7
- package/dist/{index-b82LrGSB.js → index-zy0pOMPl.js} +1 -1
- package/dist/{index.esm2017-BklqmujQ.js → index.esm2017-WVBFvkg-.js} +1 -1
- package/dist/{loading-OXARGiqO.js → loading-CKbcLJje.js} +1 -1
- package/dist/{membership-D1Vb1rUo.js → membership-BMv4jrI_.js} +3 -3
- package/dist/{money-BpyAytEq.js → money-iY-Nby0p.js} +1 -1
- package/dist/{number-C-PtPOOj.js → number-CluL-GzZ.js} +1 -1
- package/dist/{objectid-BrLIKTmQ.js → objectid-sIFo0b00.js} +1 -1
- package/dist/{plugins-CjPWhNb2.js → plugins-BlvUeMc1.js} +2 -2
- package/dist/{reward-DonQFzvW.js → reward-CZlHuvJJ.js} +1 -1
- package/dist/{rule-AtNPBnbE.js → rule-DMH3fchR.js} +3 -3
- package/dist/{rule-builder-C0Q-3g6T.js → rule-builder-BvBTYyZq.js} +1 -1
- package/dist/{template-CNjE7eht.js → template-CzqV_mzm.js} +4 -4
- package/dist/{timezone-CYbdI3q2.js → timezone-Bo8HWoc4.js} +1 -1
- package/dist/{trigger-Bdi6n80h.js → trigger-BGG22zoh.js} +4 -4
- package/dist/{user-BwGm78n8.js → user-DesAMEEX.js} +1 -1
- package/dist/{vue-i18n-D1nTd69a.js → vue-i18n-CN3WXgAO.js} +232 -232
- package/dist/{xlsx-DF5iW3wh.js → xlsx-BKuxyTY9.js} +1 -1
- package/package.json +1 -1
- package/dist/Setting-UiTXazZV.js +0 -1936
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
import { defineComponent as J, ref as y, computed as E, onMounted as K, resolveComponent as A, openBlock as u, createElementBlock as b, createElementVNode as s, createVNode as d, createTextVNode as W, toDisplayString as v, unref as e, withCtx as S, createBlock as B, Fragment as Y, renderList as Z, createCommentVNode as N, isRef as ee } from "vue";
|
|
2
|
+
import { u as te } from "./loading-CKbcLJje.js";
|
|
3
|
+
import { u as ne } from "./app-wDQR6dpb.js";
|
|
4
|
+
import { u as se } from "./business-DtufpzhR.js";
|
|
5
|
+
import { u as oe } from "./membership-BMv4jrI_.js";
|
|
6
|
+
import "./index-Bzv6BHPk.js";
|
|
7
|
+
import { k as ae } from "./index-C0XYFg_a.js";
|
|
8
|
+
import { _ as le } from "./ImageInput.vue_vue_type_script_setup_true_lang-D1KQpDGg.js";
|
|
9
|
+
import { f as Q, p as ie } from "./plugins-BlvUeMc1.js";
|
|
10
|
+
import { _ as re } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-DGSjAbol.js";
|
|
11
|
+
import { u as ce } from "./vue-i18n-CN3WXgAO.js";
|
|
12
|
+
import { useRouter as de } from "vue-router";
|
|
13
|
+
import { m as me } from "./index-BA5QwPCT.js";
|
|
14
|
+
import { a as ue } from "./object-qECH92oz.js";
|
|
15
|
+
const ve = { class: "min-h-screen bg-fm-color-neutral-gray-50" }, pe = { class: "bg-white border-b border-fm-color-neutral-gray-100 sticky top-0 z-10" }, fe = { class: "px-24 py-16 flex items-center justify-between" }, ge = { class: "flex items-center gap-16" }, _e = { class: "fm-typo-en-title-md-800 flex items-center gap-8" }, he = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, ye = {
|
|
16
|
+
key: 0,
|
|
17
|
+
class: "px-24 py-24"
|
|
18
|
+
}, be = { class: "flex items-center gap-24 mb-24" }, we = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, xe = { class: "fm-typo-en-body-lg-600" }, ke = { class: "fm-typo-en-title-sm-800 mb-8" }, Se = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary mb-16" }, Ae = {
|
|
19
|
+
key: 1,
|
|
20
|
+
class: "grid grid-cols-5 gap-16 lg:grid-cols-4 md:grid-cols-3 sm:grid-cols-2"
|
|
21
|
+
}, Ce = { class: "absolute top-8 right-8 z-10" }, Fe = { class: "aspect-[3/4] bg-fm-color-neutral-gray-100" }, je = ["src"], Le = ["src", "alt"], Ve = {
|
|
22
|
+
key: 2,
|
|
23
|
+
class: "w-full h-full flex items-center justify-center text-fm-color-typo-disabled"
|
|
24
|
+
}, Me = { class: "w-48 h-48 rounded-full bg-fm-color-neutral-gray-100 flex items-center justify-center mb-8" }, $e = { class: "fm-typo-en-body-md-600 mb-4" }, Be = { class: "fm-typo-en-body-xs-400 text-fm-color-typo-secondary" }, Pe = { class: "space-y-[40px]" }, Ie = { class: "flex" }, ze = { class: "flex flex-wrap" }, De = { class: "flex items-center gap-8" }, P = 20, Ze = /* @__PURE__ */ J({
|
|
25
|
+
__name: "SettingAdvertisements",
|
|
26
|
+
setup(Ee) {
|
|
27
|
+
const T = de(), C = ne(), V = se(), F = oe(), { global: U, minor: R } = te, { t: o } = ce(), c = y(), f = y([]), _ = y([]), w = y(!1), g = y(null), j = y(null), L = y(null), M = E(() => {
|
|
28
|
+
var n, t;
|
|
29
|
+
return ((t = (n = c.value) == null ? void 0 : n.advertisements) == null ? void 0 : t.length) ?? 0;
|
|
30
|
+
}), I = E(() => M.value < P);
|
|
31
|
+
function x(n) {
|
|
32
|
+
var a, p;
|
|
33
|
+
const t = (p = (a = c.value) == null ? void 0 : a.advertisements) == null ? void 0 : p[n];
|
|
34
|
+
if (t)
|
|
35
|
+
return typeof t == "string" ? t : t.url;
|
|
36
|
+
}
|
|
37
|
+
function q(n) {
|
|
38
|
+
return n ? [".mp4", ".webm", ".ogg", ".mov"].some((a) => n.toLowerCase().includes(a)) : !1;
|
|
39
|
+
}
|
|
40
|
+
async function $() {
|
|
41
|
+
await R(
|
|
42
|
+
async () => {
|
|
43
|
+
const n = ue(c.value), t = ae.parse(n), a = Date.now(), p = (m) => `${a}-${m}-${Math.random().toString(36).substring(2, 15)}`, k = await Promise.all(
|
|
44
|
+
f.value.map(async (m, h) => {
|
|
45
|
+
var r;
|
|
46
|
+
const i = (r = t.advertisements) == null ? void 0 : r[h];
|
|
47
|
+
let l;
|
|
48
|
+
return m ? l = await Q.update(
|
|
49
|
+
Q.advertisementPath(h, m),
|
|
50
|
+
m
|
|
51
|
+
) : typeof i == "string" ? l = i : i && typeof i == "object" && (l = i.url), l ? {
|
|
52
|
+
_id: typeof i == "object" && (i == null ? void 0 : i._id) || p(h),
|
|
53
|
+
url: l,
|
|
54
|
+
targetLocation: _.value[h] || null,
|
|
55
|
+
order: h
|
|
56
|
+
} : null;
|
|
57
|
+
})
|
|
58
|
+
);
|
|
59
|
+
t.advertisements = k.filter((m) => m), await me.update(t), await F.readMembership(), c.value = F.membership;
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
message: o("connect.advertisements.saving"),
|
|
63
|
+
successMessage: o("connect.advertisements.savedSuccessfully")
|
|
64
|
+
}
|
|
65
|
+
);
|
|
66
|
+
}
|
|
67
|
+
function z(n) {
|
|
68
|
+
g.value = n, j.value = f.value[n], L.value = _.value[n], w.value = !0;
|
|
69
|
+
}
|
|
70
|
+
function H() {
|
|
71
|
+
if (!I.value) return;
|
|
72
|
+
const n = f.value.length;
|
|
73
|
+
f.value.push(null), _.value.push(null), z(n);
|
|
74
|
+
}
|
|
75
|
+
async function O() {
|
|
76
|
+
g.value !== null && (f.value[g.value] = j.value, _.value[g.value] = L.value, await $(), w.value = !1);
|
|
77
|
+
}
|
|
78
|
+
async function X(n, t) {
|
|
79
|
+
var a, p;
|
|
80
|
+
n.stopPropagation(), await ie.remove(
|
|
81
|
+
o("connect.setting.advertisement.deleteConfirm"),
|
|
82
|
+
o("connect.setting.advertisement.delete"),
|
|
83
|
+
o("connect.setting.advertisement.delete")
|
|
84
|
+
) && ((p = (a = c.value) == null ? void 0 : a.advertisements) == null || p.splice(t, 1), f.value.splice(t, 1), _.value.splice(t, 1), await $());
|
|
85
|
+
}
|
|
86
|
+
function G() {
|
|
87
|
+
T.push("/setting");
|
|
88
|
+
}
|
|
89
|
+
return K(async () => {
|
|
90
|
+
await U(async () => {
|
|
91
|
+
var n, t;
|
|
92
|
+
await V.readPremium(), await V.readLocations(), await F.readMembership(), c.value = F.membership, (t = (n = c.value) == null ? void 0 : n.advertisements) != null && t.length ? (f.value = c.value.advertisements.map(() => null), _.value = c.value.advertisements.map(
|
|
93
|
+
(a) => typeof a == "string" ? null : a.targetLocation || null
|
|
94
|
+
)) : (f.value = [], _.value = []);
|
|
95
|
+
});
|
|
96
|
+
}), (n, t) => {
|
|
97
|
+
var i;
|
|
98
|
+
const a = A("FmButton"), p = A("FmPill"), k = A("FmCard"), m = A("FmIcon"), h = A("FmSideSheet");
|
|
99
|
+
return u(), b("div", ve, [
|
|
100
|
+
s("div", pe, [
|
|
101
|
+
s("div", fe, [
|
|
102
|
+
s("div", ge, [
|
|
103
|
+
d(a, {
|
|
104
|
+
icon: "arrow_back",
|
|
105
|
+
variant: "tertiary",
|
|
106
|
+
onClick: G
|
|
107
|
+
}),
|
|
108
|
+
s("div", null, [
|
|
109
|
+
s("div", _e, [
|
|
110
|
+
W(v(e(o)("connect.setting.advertisement.title")) + " ", 1),
|
|
111
|
+
d(p, { variant: "premium" })
|
|
112
|
+
]),
|
|
113
|
+
s("div", he, v(e(o)("connect.setting.advertisement.subtitle")), 1)
|
|
114
|
+
])
|
|
115
|
+
]),
|
|
116
|
+
d(a, {
|
|
117
|
+
label: e(o)("connect.setting.advertisement.saveChanges"),
|
|
118
|
+
onClick: $,
|
|
119
|
+
disabled: !!e(C).loadingQueue.length,
|
|
120
|
+
loading: !!e(C).loadingQueue.length
|
|
121
|
+
}, null, 8, ["label", "disabled", "loading"])
|
|
122
|
+
])
|
|
123
|
+
]),
|
|
124
|
+
e(c) ? (u(), b("div", ye, [
|
|
125
|
+
s("div", be, [
|
|
126
|
+
d(k, {
|
|
127
|
+
variant: "outlined",
|
|
128
|
+
class: "px-16 py-12 flex items-center gap-8"
|
|
129
|
+
}, {
|
|
130
|
+
default: S(() => [
|
|
131
|
+
s("span", we, v(e(o)("connect.setting.advertisement.activeAds")), 1),
|
|
132
|
+
s("span", xe, v(e(M)) + " / " + v(P), 1)
|
|
133
|
+
]),
|
|
134
|
+
_: 1
|
|
135
|
+
})
|
|
136
|
+
]),
|
|
137
|
+
e(V).isPremium ? (u(), b("div", Ae, [
|
|
138
|
+
(u(!0), b(Y, null, Z(((i = e(c).advertisements) == null ? void 0 : i.length) || 0, (l, r) => (u(), B(k, {
|
|
139
|
+
key: r,
|
|
140
|
+
variant: "outlined",
|
|
141
|
+
class: "cursor-pointer hover:shadow-lg transition-shadow overflow-hidden relative",
|
|
142
|
+
onClick: (D) => z(r)
|
|
143
|
+
}, {
|
|
144
|
+
default: S(() => [
|
|
145
|
+
s("div", Ce, [
|
|
146
|
+
d(a, {
|
|
147
|
+
icon: "delete",
|
|
148
|
+
variant: "tertiary",
|
|
149
|
+
size: "sm",
|
|
150
|
+
class: "bg-white/90 hover:bg-white shadow-sm",
|
|
151
|
+
onClick: (D) => X(D, r)
|
|
152
|
+
}, null, 8, ["onClick"])
|
|
153
|
+
]),
|
|
154
|
+
s("div", Fe, [
|
|
155
|
+
x(r) && q(x(r)) ? (u(), b("video", {
|
|
156
|
+
key: 0,
|
|
157
|
+
src: x(r),
|
|
158
|
+
class: "w-full h-full object-cover",
|
|
159
|
+
muted: "",
|
|
160
|
+
loop: "",
|
|
161
|
+
autoplay: "",
|
|
162
|
+
playsinline: ""
|
|
163
|
+
}, null, 8, je)) : x(r) ? (u(), b("img", {
|
|
164
|
+
key: 1,
|
|
165
|
+
src: x(r),
|
|
166
|
+
class: "w-full h-full object-cover",
|
|
167
|
+
alt: `Ad ${r + 1}`
|
|
168
|
+
}, null, 8, Le)) : (u(), b("div", Ve, [
|
|
169
|
+
d(m, {
|
|
170
|
+
name: "image",
|
|
171
|
+
size: "48"
|
|
172
|
+
})
|
|
173
|
+
]))
|
|
174
|
+
])
|
|
175
|
+
]),
|
|
176
|
+
_: 2
|
|
177
|
+
}, 1032, ["onClick"]))), 128)),
|
|
178
|
+
e(I) ? (u(), B(k, {
|
|
179
|
+
key: 0,
|
|
180
|
+
variant: "outlined",
|
|
181
|
+
class: "cursor-pointer hover:bg-fm-color-neutral-gray-50 transition-colors border-dashed aspect-[3/4] flex flex-col items-center justify-center",
|
|
182
|
+
onClick: H
|
|
183
|
+
}, {
|
|
184
|
+
default: S(() => [
|
|
185
|
+
s("div", Me, [
|
|
186
|
+
d(m, {
|
|
187
|
+
name: "add",
|
|
188
|
+
size: "24",
|
|
189
|
+
class: "text-fm-color-typo-secondary"
|
|
190
|
+
})
|
|
191
|
+
]),
|
|
192
|
+
s("div", $e, v(e(o)("connect.setting.advertisement.addAd")), 1),
|
|
193
|
+
s("div", Be, v(P - e(M)) + " " + v(e(o)("connect.setting.advertisement.left")), 1)
|
|
194
|
+
]),
|
|
195
|
+
_: 1
|
|
196
|
+
})) : N("", !0)
|
|
197
|
+
])) : (u(), B(k, {
|
|
198
|
+
key: 0,
|
|
199
|
+
variant: "outlined",
|
|
200
|
+
class: "p-24 text-center mb-24 bg-fm-color-warning-50"
|
|
201
|
+
}, {
|
|
202
|
+
default: S(() => [
|
|
203
|
+
s("div", ke, v(e(o)("connect.setting.advertisement.premiumFeatureTitle")), 1),
|
|
204
|
+
s("div", Se, v(e(o)("connect.setting.advertisement.premiumFeatureDescription")), 1)
|
|
205
|
+
]),
|
|
206
|
+
_: 1
|
|
207
|
+
}))
|
|
208
|
+
])) : N("", !0),
|
|
209
|
+
d(h, {
|
|
210
|
+
modelValue: e(w),
|
|
211
|
+
"onUpdate:modelValue": [
|
|
212
|
+
t[2] || (t[2] = (l) => ee(w) ? w.value = l : null),
|
|
213
|
+
t[3] || (t[3] = (l) => w.value = l)
|
|
214
|
+
],
|
|
215
|
+
"max-width": 560,
|
|
216
|
+
header: e(g) !== null ? `${e(o)("connect.setting.advertisement.manageAd")} #${e(g) + 1}` : e(o)("connect.setting.advertisement.addAdvertisement")
|
|
217
|
+
}, {
|
|
218
|
+
"side-sheet-footer": S(() => [
|
|
219
|
+
s("div", De, [
|
|
220
|
+
d(a, {
|
|
221
|
+
label: e(o)("connect.setting.advertisement.save"),
|
|
222
|
+
onClick: O,
|
|
223
|
+
loading: !!e(C).loadingQueue.length,
|
|
224
|
+
disabled: !!e(C).loadingQueue.length
|
|
225
|
+
}, null, 8, ["label", "loading", "disabled"])
|
|
226
|
+
])
|
|
227
|
+
]),
|
|
228
|
+
default: S(() => [
|
|
229
|
+
s("div", Pe, [
|
|
230
|
+
s("div", Ie, [
|
|
231
|
+
s("div", ze, [
|
|
232
|
+
d(le, {
|
|
233
|
+
label: e(o)("connect.setting.advertisement.advertisementImage"),
|
|
234
|
+
"image-fit": "cover",
|
|
235
|
+
"aspect-ratio": "4/5",
|
|
236
|
+
thumbnail: e(g) !== null ? x(e(g)) : void 0,
|
|
237
|
+
accept: ".png, .jpg, .jpeg, .mp4, .gif",
|
|
238
|
+
"recommended-size": "1080px x 1350px (4:5)",
|
|
239
|
+
file: e(j) ?? void 0,
|
|
240
|
+
"onUpdate:file": t[0] || (t[0] = (l) => j.value = l)
|
|
241
|
+
}, null, 8, ["label", "thumbnail", "file"])
|
|
242
|
+
])
|
|
243
|
+
]),
|
|
244
|
+
s("div", null, [
|
|
245
|
+
d(re, {
|
|
246
|
+
label: e(o)("connect.setting.advertisement.targetLocations"),
|
|
247
|
+
"helper-text": e(o)("connect.setting.advertisement.targetLocationsHelper"),
|
|
248
|
+
"model-value": e(L) ?? null,
|
|
249
|
+
"onUpdate:modelValue": t[1] || (t[1] = (l) => L.value = l)
|
|
250
|
+
}, null, 8, ["label", "helper-text", "model-value"])
|
|
251
|
+
])
|
|
252
|
+
])
|
|
253
|
+
]),
|
|
254
|
+
_: 1
|
|
255
|
+
}, 8, ["modelValue", "header"])
|
|
256
|
+
]);
|
|
257
|
+
};
|
|
258
|
+
}
|
|
259
|
+
});
|
|
260
|
+
export {
|
|
261
|
+
Ze as default
|
|
262
|
+
};
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import { defineComponent as ee, computed as j, resolveComponent as h, openBlock as g, createBlock as I, withCtx as T, createElementVNode as _, createElementBlock as B, createVNode as i, createCommentVNode as M, toDisplayString as L, unref as e, Fragment as X, renderList as re, ref as U, isRef as oe, reactive as Ke, onMounted as fe, watch as we, toRaw as He, createTextVNode as de, h as qe } from "vue";
|
|
2
2
|
import { _ as Ye } from "./tier-BJDhpH6X.js";
|
|
3
3
|
import { useDialog as Me, useDialogChild as Oe, components as We } from "@feedmepos/ui-library";
|
|
4
|
-
import { c as D, e as he, S as ze } from "./index-
|
|
5
|
-
import { u as Ee } from "./loading-
|
|
6
|
-
import { u as ke, C as me } from "./membership-
|
|
4
|
+
import { c as D, e as he, S as ze } from "./index-BQTPw5fM.js";
|
|
5
|
+
import { u as Ee } from "./loading-CKbcLJje.js";
|
|
6
|
+
import { u as ke, C as me } from "./membership-BMv4jrI_.js";
|
|
7
7
|
import { a as Je, c as De } from "./object-qECH92oz.js";
|
|
8
8
|
import { _ as ue } from "./lodash-B5I3zXaY.js";
|
|
9
|
-
import { c as se } from "./index-
|
|
10
|
-
import { u as be } from "./vue-i18n-
|
|
9
|
+
import { c as se } from "./index-Bzv6BHPk.js";
|
|
10
|
+
import { u as be } from "./vue-i18n-CN3WXgAO.js";
|
|
11
11
|
import { Z, g as J, a as G } from "./zod-Bg2FbC-D.js";
|
|
12
|
-
import { z as Q, R as Ge } from "./app-
|
|
13
|
-
import { m as Xe, n as Ze, o as Qe, p as Ae, q as et } from "./index-
|
|
12
|
+
import { z as Q, R as Ge } from "./app-UNZJVzly.js";
|
|
13
|
+
import { m as Xe, n as Ze, o as Qe, p as Ae, q as et } from "./index-C0XYFg_a.js";
|
|
14
14
|
import { u as Se } from "./app-wDQR6dpb.js";
|
|
15
|
-
import { _ as te } from "./ZodTextField.vue_vue_type_script_setup_true_lang-
|
|
16
|
-
import { a as tt, p as _e, n as nt, f as Fe } from "./plugins-
|
|
15
|
+
import { _ as te } from "./ZodTextField.vue_vue_type_script_setup_true_lang-ndun9vf-.js";
|
|
16
|
+
import { a as tt, p as _e, n as nt, f as Fe } from "./plugins-BlvUeMc1.js";
|
|
17
17
|
import { J as Pe } from "./JsonViewer-v8_C7l5N.js";
|
|
18
|
-
import { _ as ot } from "./index-
|
|
18
|
+
import { _ as ot } from "./index-DrAbySpd.js";
|
|
19
19
|
import { _ as at } from "./ImageInput.vue_vue_type_script_setup_true_lang-D1KQpDGg.js";
|
|
20
20
|
import { _ as lt } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
|
|
21
|
-
import { z as st, a as rt } from "./money-
|
|
22
|
-
import { F as it } from "./number-
|
|
23
|
-
import { t as dt } from "./helper-
|
|
24
|
-
import "./index-
|
|
25
|
-
import "./index-
|
|
26
|
-
import "./index-
|
|
27
|
-
import "./index-
|
|
28
|
-
import { m as ut } from "./index-
|
|
29
|
-
import { m as Ce } from "./index-
|
|
21
|
+
import { z as st, a as rt } from "./money-iY-Nby0p.js";
|
|
22
|
+
import { F as it } from "./number-CluL-GzZ.js";
|
|
23
|
+
import { t as dt } from "./helper-BaJdC23g.js";
|
|
24
|
+
import "./index-JxOM03oW.js";
|
|
25
|
+
import "./index-gvl1UKmI.js";
|
|
26
|
+
import "./index-BSQCStAn.js";
|
|
27
|
+
import "./index-BInlN52T.js";
|
|
28
|
+
import { m as ut } from "./index-X9YonBq5.js";
|
|
29
|
+
import { m as Ce } from "./index-BA5QwPCT.js";
|
|
30
30
|
import { useRouter as ct } from "vue-router";
|
|
31
31
|
function je(v) {
|
|
32
32
|
return se.DineroFactory(v).toUnit();
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { defineComponent as G, ref as F, computed as N, onMounted as q, resolveComponent as R, openBlock as d, createBlock as C, unref as e, isRef as Y, withCtx as S, createElementVNode as l, createVNode as c, createElementBlock as P, createTextVNode as z, resolveDynamicComponent as H, toDisplayString as T, Fragment as j, createCommentVNode as U, h } from "vue";
|
|
2
2
|
import { _ as J } from "./campaign-CpzFl8Vr.js";
|
|
3
3
|
import { useDialog as Q, components as k } from "@feedmepos/ui-library";
|
|
4
|
-
import "./index-
|
|
5
|
-
import { u as X } from "./loading-
|
|
6
|
-
import { C as Z, u as ee } from "./membership-
|
|
7
|
-
import { p as M, f as B } from "./plugins-
|
|
8
|
-
import { u as te } from "./vue-i18n-
|
|
9
|
-
import { F as oe } from "./index-
|
|
4
|
+
import "./index-JxOM03oW.js";
|
|
5
|
+
import { u as X } from "./loading-CKbcLJje.js";
|
|
6
|
+
import { C as Z, u as ee } from "./membership-BMv4jrI_.js";
|
|
7
|
+
import { p as M, f as B } from "./plugins-BlvUeMc1.js";
|
|
8
|
+
import { u as te } from "./vue-i18n-CN3WXgAO.js";
|
|
9
|
+
import { F as oe } from "./index-DrAbySpd.js";
|
|
10
10
|
import { c as ae } from "./object-qECH92oz.js";
|
|
11
11
|
import { u as K } from "./app-wDQR6dpb.js";
|
|
12
|
-
import { u as ne } from "./business-
|
|
12
|
+
import { u as ne } from "./business-DtufpzhR.js";
|
|
13
13
|
import { useCoreStore as se } from "@feedmepos/mf-common";
|
|
14
14
|
import { Z as b } from "./zod-Bg2FbC-D.js";
|
|
15
|
-
import { _ as re } from "./ZodTextField.vue_vue_type_script_setup_true_lang-
|
|
15
|
+
import { _ as re } from "./ZodTextField.vue_vue_type_script_setup_true_lang-ndun9vf-.js";
|
|
16
16
|
import { _ as ie } from "./ImageInput.vue_vue_type_script_setup_true_lang-D1KQpDGg.js";
|
|
17
|
-
import { _ as le } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-
|
|
18
|
-
import { _ as me, a as ce } from "./EffectSheet.vue_vue_type_style_index_0_lang-
|
|
19
|
-
import { i as de, t as ue } from "./helper-
|
|
17
|
+
import { _ as le } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-DGSjAbol.js";
|
|
18
|
+
import { _ as me, a as ce } from "./EffectSheet.vue_vue_type_style_index_0_lang-De2lhmbT.js";
|
|
19
|
+
import { i as de, t as ue } from "./helper-BaJdC23g.js";
|
|
20
20
|
import { useRouter as pe } from "vue-router";
|
|
21
|
-
import { m as D } from "./index-
|
|
22
|
-
import { R as O } from "./app-
|
|
21
|
+
import { m as D } from "./index-BA5QwPCT.js";
|
|
22
|
+
import { R as O } from "./app-UNZJVzly.js";
|
|
23
23
|
const fe = {
|
|
24
24
|
key: 0,
|
|
25
25
|
class: "flex flex-col space-y-16 pr-12"
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import { defineComponent as H, mergeModels as ee, useModel as fe, computed as U, onMounted as ae, watch as Q, resolveComponent as A, openBlock as F, createBlock as q, withCtx as W, createVNode as D, unref as l, ref as O, h as n, isRef as ge, createElementVNode as S, createElementBlock as V, Fragment as X, renderList as te, toDisplayString as L, createTextVNode as ye, resolveDynamicComponent as he, onBeforeMount as ve } from "vue";
|
|
2
2
|
import { components as x, useDialog as be } from "@feedmepos/ui-library";
|
|
3
|
-
import { r as oe } from "./index-
|
|
4
|
-
import "./index-
|
|
5
|
-
import { s as _e } from "./index-
|
|
3
|
+
import { r as oe } from "./index-C0XYFg_a.js";
|
|
4
|
+
import "./index-Bzv6BHPk.js";
|
|
5
|
+
import { s as _e } from "./index-D_hUHpqX.js";
|
|
6
6
|
import { h as y } from "./moment-D7p2TMB-.js";
|
|
7
7
|
import { _ as j } from "./FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js";
|
|
8
8
|
import { s as K } from "./index-CuvNtC_M.js";
|
|
9
|
-
import { f as J } from "./number-
|
|
10
|
-
import { u as ne } from "./business-
|
|
9
|
+
import { f as J } from "./number-CluL-GzZ.js";
|
|
10
|
+
import { u as ne } from "./business-DtufpzhR.js";
|
|
11
11
|
import { u as re, _ as le } from "./usePagination-Ds-cuHop.js";
|
|
12
|
-
import { a as Z, c as Se, p as xe } from "./plugins-
|
|
13
|
-
import { g as se } from "./user-
|
|
14
|
-
import { B as ie, e as ce } from "./export-
|
|
15
|
-
import { u as ue } from "./campaign-
|
|
16
|
-
import "./index-
|
|
17
|
-
import "./index-
|
|
18
|
-
import "./index-
|
|
19
|
-
import "./index-
|
|
20
|
-
import "./index-
|
|
21
|
-
import { u as we } from "./vue-i18n-
|
|
12
|
+
import { a as Z, c as Se, p as xe } from "./plugins-BlvUeMc1.js";
|
|
13
|
+
import { g as se } from "./user-DesAMEEX.js";
|
|
14
|
+
import { B as ie, e as ce } from "./export-BzY3BDZJ.js";
|
|
15
|
+
import { u as ue } from "./campaign-63K4Xtsd.js";
|
|
16
|
+
import "./index-JxOM03oW.js";
|
|
17
|
+
import "./index-DrAbySpd.js";
|
|
18
|
+
import "./index-gvl1UKmI.js";
|
|
19
|
+
import "./index-BSQCStAn.js";
|
|
20
|
+
import "./index-BInlN52T.js";
|
|
21
|
+
import { u as we } from "./vue-i18n-CN3WXgAO.js";
|
|
22
22
|
import { o as P } from "./objectId-dwaoBfJX.js";
|
|
23
23
|
import { useRouter as De } from "vue-router";
|
|
24
|
-
import { t as G } from "./index-
|
|
25
|
-
import { R as z } from "./app-
|
|
26
|
-
import { u as Re } from "./loading-
|
|
24
|
+
import { t as G } from "./index-BLjKPiBb.js";
|
|
25
|
+
import { R as z } from "./app-UNZJVzly.js";
|
|
26
|
+
import { u as Re } from "./loading-CKbcLJje.js";
|
|
27
27
|
import { useCoreStore as Te } from "@feedmepos/mf-common";
|
|
28
|
-
import { m as Ce } from "./index-
|
|
28
|
+
import { m as Ce } from "./index-BA5QwPCT.js";
|
|
29
29
|
function Ie(u) {
|
|
30
30
|
let f = "";
|
|
31
31
|
switch (u) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as N, ref as C, computed as L, watch as E, resolveComponent as g, openBlock as o, createElementBlock as i, Fragment as y, toDisplayString as I, createCommentVNode as A, createElementVNode as M, createVNode as v, unref as u, renderList as S, createBlock as b, isRef as U, withCtx as F } from "vue";
|
|
2
|
-
import { u as T } from "./business-
|
|
2
|
+
import { u as T } from "./business-DtufpzhR.js";
|
|
3
3
|
function j(l, s, n) {
|
|
4
4
|
return l.some(
|
|
5
5
|
n instanceof Function ? n : (a) => a === s
|