@feedmepos/mf-connect 0.1.38-beta.32 → 0.1.38-beta.33
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-JbDtOUg4.js → Analytic-B1hvdnhQ.js} +13 -13
- package/dist/{App-BtlOHFym.js → App-BCjFwtVu.js} +7 -7
- package/dist/{AuditLogs-DwTWDcGT.js → AuditLogs-DwOzstOt.js} +9 -9
- package/dist/{Bin-Dz_-dSjc.js → Bin-BgnnzoZS.js} +8 -8
- package/dist/{Broadcast-CxA19LJ2.js → Broadcast-DqSOAE01.js} +9 -9
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DpkvB62H.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CBMG8_Sk.js} +6 -6
- package/dist/{Card-DOt2XRVJ.js → Card-A9CkhfVY.js} +16 -16
- package/dist/{Collections-4rNgOQFR.js → Collections-BgnFnaWo.js} +6 -6
- package/dist/{Credit-CSZoRPK8.js → Credit-a_OpuZJM.js} +9 -9
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-Bs0CqAoB.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-CNBh1Id6.js} +32 -32
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-DbEVXGna.js → EffectSheet.vue_vue_type_style_index_0_lang-oao_UwRf.js} +6 -6
- package/dist/{Experience-BiJJclHv.js → Experience-CpGj9JqO.js} +9 -9
- package/dist/{Game-Bx8UYTWN.js → Game-D0e3MyPK.js} +10 -10
- package/dist/{Grab-DqksPvTO.js → Grab-Exo0vj4b.js} +9 -9
- package/dist/{Index-TC4AE5vH.js → Index-DU0reBq4.js} +10 -10
- package/dist/{Marketing-zvilBYbq.js → Marketing-BZtDNsA-.js} +6 -6
- package/dist/{Member-DgHlRxNX.js → Member-D8buIkBR.js} +10 -10
- package/dist/{MemberList-BLwB2KHe.js → MemberList-CDwYfTlS.js} +25 -25
- package/dist/{MemberTransactions-D7LMlkZV.js → MemberTransactions-DRkpizb_.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-D_8CSId3.js → MessageInput.vue_vue_type_script_setup_true_lang-VzyI4O5z.js} +7 -7
- package/dist/{Mission-C5MXiWJz.js → Mission-BTzIK2Yx.js} +10 -10
- package/dist/{Overview-CYnrBOH0.js → Overview-CMkljRYt.js} +18 -18
- package/dist/{Point-uOX4JQH5.js → Point-DGPLd8z-.js} +9 -9
- package/dist/{Promotion-ZYlRyktS.js → Promotion-D8K2pFnv.js} +10 -10
- package/dist/{Queue-w5ZoGiIK.js → Queue-CySghWZm.js} +10 -10
- package/dist/{Record-D72_exg2.js → Record-CxloqLoN.js} +8 -8
- package/dist/{Reward-DcBBd6nk.js → Reward-DxvFaqzm.js} +15 -15
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-V2viVgDE.js → RewardGroup.vue_vue_type_script_setup_true_lang-WOC3rplt.js} +11 -11
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-D2DCNCOs.js → RuleGroup.vue_vue_type_script_setup_true_lang-C4zhGkBY.js} +13 -13
- package/dist/{Segment-DEztithQ.js → Segment-DKD6P0cE.js} +22 -22
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-CM140xpf.js → SelectItems.vue_vue_type_script_setup_true_lang-bpblaVLq.js} +2 -2
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-Dr_9lbHQ.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-B1g0fHPV.js} +11 -11
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-hVw6DZD_.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-CSR5EuVO.js} +3 -3
- package/dist/Setting-khHGWePA.js +1929 -0
- package/dist/SettingAdvertisements-DJHKjE95.js +264 -0
- package/dist/{Store-BJDUFmGq.js → Store-0cJJpCIV.js} +19 -19
- package/dist/{StoreRewards-X_uAZ0oU.js → StoreRewards-CV8XStEA.js} +13 -13
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-C-E_9wC2.js → StoreTransactions.vue_vue_type_script_setup_true_lang-Bqw4ayC4.js} +20 -20
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-DIU7wlz0.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-BprUyeOJ.js} +1 -1
- package/dist/{Tier-D0qP3DiK.js → Tier-BgahD6Rs.js} +20 -20
- package/dist/{Title-B4C2OgJf.js → Title-DKGqu5SL.js} +19 -19
- package/dist/{Transaction-DE1r3T3q.js → Transaction-Bu-Zaa-_.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-CRektVBJ.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-cDZZz9DR.js} +6 -6
- package/dist/{Voucher-D_ydr0Bm.js → Voucher-sko-4yOv.js} +13 -13
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-D3RXJ1gK.js → VoucherEditor.vue_vue_type_script_setup_true_lang-DVlYxnyk.js} +10 -10
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-CvuhwcKx.js → ZodTextField.vue_vue_type_script_setup_true_lang-CeNxiT5A.js} +1 -1
- package/dist/{app-DnyE2pGP.js → app-B06WmmlS.js} +58 -52
- package/dist/{app-CBe7BXFl.js → app-DivOpQ--.js} +1 -1
- package/dist/app.js +1 -1
- package/dist/{business-DDGxEUE9.js → business-ClV-3_wH.js} +1 -1
- package/dist/{campaign-XwkK5NG-.js → campaign-C-DtV5gs.js} +2 -2
- package/dist/{campaign-CRt5VhTr.js → campaign-ChCAqzSE.js} +9 -9
- package/dist/{campaign.enum-NyzU3TKu.js → campaign.enum-HJvL6WCW.js} +1 -1
- package/dist/{campaign.fn-BMUXMzaK.js → campaign.fn-FkHPIhXx.js} +3 -3
- package/dist/{collectible.enum-CWs8pE45.js → collectible.enum-DlxRyJMy.js} +1 -1
- package/dist/{collection.fn-DitGE7HO.js → collection.fn-DmYKiZsL.js} +2 -2
- package/dist/{dto-DhJZ4hlY.js → dto-BKG9T2I2.js} +4 -4
- package/dist/{effect-BO4vtgp7.js → effect-qQUWG0In.js} +1 -1
- package/dist/{email-addresses-BzfQ6b8c.js → email-addresses-Dqyt8I7s.js} +1 -1
- package/dist/{export-BqaGhY3Q.js → export-CUcU1l-K.js} +3 -3
- package/dist/{helper-BrfWVPcd.js → helper-Bxi0o7m8.js} +1 -1
- package/dist/{index-BBgo847U.js → index-B5SrWi06.js} +3 -3
- package/dist/{index-hG9QFw_I.js → index-B94mBxiL.js} +1 -1
- package/dist/{index-V-ZCp21z.js → index-BAv3BkZY.js} +1023 -1023
- package/dist/{index-DT1PySNz.js → index-BEN3tBqd.js} +4 -6
- package/dist/{index-wS34rLgz.js → index-BL_1CL4C.js} +3 -3
- package/dist/{index-B0GJS0GE.js → index-BWq6tQbu.js} +1 -1
- package/dist/{index-n12TcP1c.js → index-C06Q7hpx.js} +1 -1
- package/dist/{index-Fn7DPpJp.js → index-Ct2-fiN2.js} +1 -1
- package/dist/{index-m3CFlVwj.js → index-DdekcTG4.js} +1 -1
- package/dist/{index-BM7tZsj1.js → index-Dhh1sEG_.js} +8 -7
- package/dist/{index-CbGbLYp-.js → index-DlK01rGI.js} +1 -1
- package/dist/{index-DpGMexuC.js → index-DzELBV8R.js} +1 -1
- package/dist/{index-DvHneUqf.js → index-TKz_0Ysa.js} +1 -1
- package/dist/{index-DsBKOmG3.js → index-UjD7i6Rs.js} +77 -71
- package/dist/{index.esm2017-CnWE-hba.js → index.esm2017-DHCRXeWh.js} +1 -1
- package/dist/{loading-u3H9jMuJ.js → loading-B_UZCyhK.js} +1 -1
- package/dist/{membership-DRAMCa-P.js → membership-_kM8eXz7.js} +3 -3
- package/dist/{money-Ch8Ungpt.js → money-CoVA-srK.js} +1 -1
- package/dist/{number-hqX5bysX.js → number-YRitPV2s.js} +1 -1
- package/dist/{objectid-tqcRQlSl.js → objectid-C1na7D-x.js} +5 -5
- package/dist/{plugins-t54ubjAx.js → plugins-CRzS5EeK.js} +2 -2
- package/dist/{reward-BF0zQZE5.js → reward-BzSjQxTf.js} +1 -1
- package/dist/{rule-C11Y2bGO.js → rule-BTgu7Yg-.js} +3 -3
- package/dist/{rule-builder-BbH1Ol8P.js → rule-builder-DqxBZKm0.js} +1 -1
- package/dist/{template-Ckr8XH3u.js → template-Cb_6r-V_.js} +4 -4
- package/dist/{timezone-i_1zxIG7.js → timezone-_t4BbV7Q.js} +1 -1
- package/dist/{trigger-CJ4Hm7Ln.js → trigger-B0ldNAaK.js} +4 -4
- package/dist/{user-BwgLUq1Z.js → user-B4J6WtQq.js} +1 -1
- package/dist/{vue-i18n-CuIfSGTu.js → vue-i18n-c1uC6tyM.js} +158 -158
- package/dist/{xlsx-Qp5tZQaw.js → xlsx-BRAFCQ59.js} +1 -1
- package/package.json +1 -1
- package/dist/Setting-CvKMtDMt.js +0 -1947
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
import { defineComponent as H, ref as y, computed as I, onMounted as J, resolveComponent as A, openBlock as d, createElementBlock as b, createElementVNode as o, createVNode as i, createTextVNode as K, unref as n, withCtx as w, toDisplayString as P, createBlock as V, Fragment as W, renderList as Y, createCommentVNode as N, isRef as Z } from "vue";
|
|
2
|
+
import { u as ee } from "./loading-B_UZCyhK.js";
|
|
3
|
+
import { u as te } from "./app-wDQR6dpb.js";
|
|
4
|
+
import { u as oe } from "./business-ClV-3_wH.js";
|
|
5
|
+
import { u as se } from "./membership-_kM8eXz7.js";
|
|
6
|
+
import "./index-BAv3BkZY.js";
|
|
7
|
+
import { k as ne } from "./index-UjD7i6Rs.js";
|
|
8
|
+
import { _ as le } from "./ImageInput.vue_vue_type_script_setup_true_lang-D1KQpDGg.js";
|
|
9
|
+
import { f as U, p as ae } from "./plugins-CRzS5EeK.js";
|
|
10
|
+
import { _ as ie } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-BprUyeOJ.js";
|
|
11
|
+
import { u as re } from "./vue-i18n-c1uC6tyM.js";
|
|
12
|
+
import { useRouter as de } from "vue-router";
|
|
13
|
+
import { m as ue } from "./index-B94mBxiL.js";
|
|
14
|
+
import { a as me } from "./object-qECH92oz.js";
|
|
15
|
+
const ce = { 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" }, ve = { class: "px-24 py-16 flex items-center justify-between" }, fe = { class: "flex items-center gap-16" }, ge = { class: "fm-typo-en-title-md-800 flex items-center gap-8" }, ye = {
|
|
16
|
+
key: 0,
|
|
17
|
+
class: "px-24 py-24"
|
|
18
|
+
}, be = { class: "flex items-center gap-24 mb-24" }, he = { class: "fm-typo-en-body-lg-600" }, _e = {
|
|
19
|
+
key: 1,
|
|
20
|
+
class: "grid grid-cols-5 gap-16 lg:grid-cols-4 md:grid-cols-3 sm:grid-cols-2"
|
|
21
|
+
}, we = { class: "absolute top-8 right-8 z-10" }, xe = { class: "aspect-[3/4] bg-fm-color-neutral-gray-100" }, Ae = ["src"], Se = ["src", "alt"], ke = {
|
|
22
|
+
key: 2,
|
|
23
|
+
class: "w-full h-full flex items-center justify-center text-fm-color-typo-disabled"
|
|
24
|
+
}, Ce = { class: "w-48 h-48 rounded-full bg-fm-color-neutral-gray-100 flex items-center justify-center mb-8" }, Fe = { class: "fm-typo-en-body-xs-400 text-fm-color-typo-secondary" }, Me = { class: "space-y-[40px]" }, je = { class: "flex" }, Le = { class: "flex flex-wrap" }, Pe = { class: "flex items-center gap-8" }, B = 20, Ge = /* @__PURE__ */ H({
|
|
25
|
+
__name: "SettingAdvertisements",
|
|
26
|
+
setup(Ve) {
|
|
27
|
+
const E = de(), S = te(), M = oe(), k = se(), { global: Q, minor: T } = ee;
|
|
28
|
+
re();
|
|
29
|
+
const r = y(), c = y([]), f = y([]), h = y(!1), p = y(null), C = y(null), F = y(null), j = I(() => {
|
|
30
|
+
var t, e;
|
|
31
|
+
return ((e = (t = r.value) == null ? void 0 : t.advertisements) == null ? void 0 : e.length) ?? 0;
|
|
32
|
+
}), D = I(() => j.value < B);
|
|
33
|
+
function _(t) {
|
|
34
|
+
var s, l;
|
|
35
|
+
const e = (l = (s = r.value) == null ? void 0 : s.advertisements) == null ? void 0 : l[t];
|
|
36
|
+
if (e)
|
|
37
|
+
return typeof e == "string" ? e : e.url;
|
|
38
|
+
}
|
|
39
|
+
function R(t) {
|
|
40
|
+
return t ? [".mp4", ".webm", ".ogg", ".mov"].some((s) => t.toLowerCase().includes(s)) : !1;
|
|
41
|
+
}
|
|
42
|
+
async function L() {
|
|
43
|
+
await T(
|
|
44
|
+
async () => {
|
|
45
|
+
const t = me(r.value), e = ne.parse(t), s = await Promise.all(
|
|
46
|
+
c.value.map(async (l, u) => {
|
|
47
|
+
var x;
|
|
48
|
+
const a = (x = e.advertisements) == null ? void 0 : x[u];
|
|
49
|
+
let g;
|
|
50
|
+
return l ? g = await U.update(
|
|
51
|
+
U.advertisementPath(u, l),
|
|
52
|
+
l
|
|
53
|
+
) : typeof a == "string" ? g = a : a && typeof a == "object" && (g = a.url), g ? {
|
|
54
|
+
_id: typeof a == "object" && (a == null ? void 0 : a._id) || `${Date.now()}-${Math.random().toString(36).substring(2, 15)}`,
|
|
55
|
+
url: g,
|
|
56
|
+
targetLocation: f.value[u] || null,
|
|
57
|
+
order: u
|
|
58
|
+
} : null;
|
|
59
|
+
})
|
|
60
|
+
);
|
|
61
|
+
e.advertisements = s.filter((l) => l), await ue.update(e), await k.readMembership(), r.value = k.membership;
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
message: "Saving advertisements",
|
|
65
|
+
successMessage: "Advertisements saved successfully"
|
|
66
|
+
}
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
function $(t) {
|
|
70
|
+
p.value = t, C.value = c.value[t], F.value = f.value[t], h.value = !0;
|
|
71
|
+
}
|
|
72
|
+
function O() {
|
|
73
|
+
if (!D.value) return;
|
|
74
|
+
const t = c.value.length;
|
|
75
|
+
c.value.push(null), f.value.push(null), $(t);
|
|
76
|
+
}
|
|
77
|
+
async function X() {
|
|
78
|
+
p.value !== null && (c.value[p.value] = C.value, f.value[p.value] = F.value, await L(), h.value = !1);
|
|
79
|
+
}
|
|
80
|
+
async function q(t, e) {
|
|
81
|
+
var s, l;
|
|
82
|
+
t.stopPropagation(), await ae.remove("Delete this advertisement?", "Delete", "Delete") && ((l = (s = r.value) == null ? void 0 : s.advertisements) == null || l.splice(e, 1), c.value.splice(e, 1), f.value.splice(e, 1), await L());
|
|
83
|
+
}
|
|
84
|
+
function G() {
|
|
85
|
+
E.push("/setting");
|
|
86
|
+
}
|
|
87
|
+
return J(async () => {
|
|
88
|
+
await Q(async () => {
|
|
89
|
+
var t, e;
|
|
90
|
+
await M.readPremium(), await M.readLocations(), await k.readMembership(), r.value = k.membership, (e = (t = r.value) == null ? void 0 : t.advertisements) != null && e.length ? (c.value = r.value.advertisements.map(() => null), f.value = r.value.advertisements.map(
|
|
91
|
+
(s) => typeof s == "string" ? null : s.targetLocation || null
|
|
92
|
+
)) : (c.value = [], f.value = []);
|
|
93
|
+
});
|
|
94
|
+
}), (t, e) => {
|
|
95
|
+
var x;
|
|
96
|
+
const s = A("FmButton"), l = A("FmPill"), u = A("FmCard"), a = A("FmIcon"), g = A("FmSideSheet");
|
|
97
|
+
return d(), b("div", ce, [
|
|
98
|
+
o("div", pe, [
|
|
99
|
+
o("div", ve, [
|
|
100
|
+
o("div", fe, [
|
|
101
|
+
i(s, {
|
|
102
|
+
icon: "arrow_back",
|
|
103
|
+
variant: "tertiary",
|
|
104
|
+
onClick: G
|
|
105
|
+
}),
|
|
106
|
+
o("div", null, [
|
|
107
|
+
o("div", ge, [
|
|
108
|
+
e[4] || (e[4] = K(" Advertisements ", -1)),
|
|
109
|
+
i(l, { variant: "premium" })
|
|
110
|
+
]),
|
|
111
|
+
e[5] || (e[5] = o("div", { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, " Manage ads shown on FeedMe ordering app ", -1))
|
|
112
|
+
])
|
|
113
|
+
]),
|
|
114
|
+
i(s, {
|
|
115
|
+
label: "Save Changes",
|
|
116
|
+
onClick: L,
|
|
117
|
+
disabled: !!n(S).loadingQueue.length,
|
|
118
|
+
loading: !!n(S).loadingQueue.length
|
|
119
|
+
}, null, 8, ["disabled", "loading"])
|
|
120
|
+
])
|
|
121
|
+
]),
|
|
122
|
+
n(r) ? (d(), b("div", ye, [
|
|
123
|
+
o("div", be, [
|
|
124
|
+
i(u, {
|
|
125
|
+
variant: "outlined",
|
|
126
|
+
class: "px-16 py-12 flex items-center gap-8"
|
|
127
|
+
}, {
|
|
128
|
+
default: w(() => [
|
|
129
|
+
e[6] || (e[6] = o("span", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, "Active Ads:", -1)),
|
|
130
|
+
o("span", he, P(n(j)) + " / " + P(B), 1)
|
|
131
|
+
]),
|
|
132
|
+
_: 1
|
|
133
|
+
})
|
|
134
|
+
]),
|
|
135
|
+
n(M).isPremium ? (d(), b("div", _e, [
|
|
136
|
+
(d(!0), b(W, null, Y(((x = n(r).advertisements) == null ? void 0 : x.length) || 0, (v, m) => (d(), V(u, {
|
|
137
|
+
key: m,
|
|
138
|
+
variant: "outlined",
|
|
139
|
+
class: "cursor-pointer hover:shadow-lg transition-shadow overflow-hidden relative",
|
|
140
|
+
onClick: (z) => $(m)
|
|
141
|
+
}, {
|
|
142
|
+
default: w(() => [
|
|
143
|
+
o("div", we, [
|
|
144
|
+
i(s, {
|
|
145
|
+
icon: "delete",
|
|
146
|
+
variant: "tertiary",
|
|
147
|
+
size: "sm",
|
|
148
|
+
class: "bg-white/90 hover:bg-white shadow-sm",
|
|
149
|
+
onClick: (z) => q(z, m)
|
|
150
|
+
}, null, 8, ["onClick"])
|
|
151
|
+
]),
|
|
152
|
+
o("div", xe, [
|
|
153
|
+
_(m) && R(_(m)) ? (d(), b("video", {
|
|
154
|
+
key: 0,
|
|
155
|
+
src: _(m),
|
|
156
|
+
class: "w-full h-full object-cover",
|
|
157
|
+
muted: "",
|
|
158
|
+
loop: "",
|
|
159
|
+
autoplay: "",
|
|
160
|
+
playsinline: ""
|
|
161
|
+
}, null, 8, Ae)) : _(m) ? (d(), b("img", {
|
|
162
|
+
key: 1,
|
|
163
|
+
src: _(m),
|
|
164
|
+
class: "w-full h-full object-cover",
|
|
165
|
+
alt: `Ad ${m + 1}`
|
|
166
|
+
}, null, 8, Se)) : (d(), b("div", ke, [
|
|
167
|
+
i(a, {
|
|
168
|
+
name: "image",
|
|
169
|
+
size: "48"
|
|
170
|
+
})
|
|
171
|
+
]))
|
|
172
|
+
])
|
|
173
|
+
]),
|
|
174
|
+
_: 2
|
|
175
|
+
}, 1032, ["onClick"]))), 128)),
|
|
176
|
+
n(D) ? (d(), V(u, {
|
|
177
|
+
key: 0,
|
|
178
|
+
variant: "outlined",
|
|
179
|
+
class: "cursor-pointer hover:bg-fm-color-neutral-gray-50 transition-colors border-dashed aspect-[3/4] flex flex-col items-center justify-center",
|
|
180
|
+
onClick: O
|
|
181
|
+
}, {
|
|
182
|
+
default: w(() => [
|
|
183
|
+
o("div", Ce, [
|
|
184
|
+
i(a, {
|
|
185
|
+
name: "add",
|
|
186
|
+
size: "24",
|
|
187
|
+
class: "text-fm-color-typo-secondary"
|
|
188
|
+
})
|
|
189
|
+
]),
|
|
190
|
+
e[9] || (e[9] = o("div", { class: "fm-typo-en-body-md-600 mb-4" }, "Add Ad", -1)),
|
|
191
|
+
o("div", Fe, P(B - n(j)) + " left ", 1)
|
|
192
|
+
]),
|
|
193
|
+
_: 1
|
|
194
|
+
})) : N("", !0)
|
|
195
|
+
])) : (d(), V(u, {
|
|
196
|
+
key: 0,
|
|
197
|
+
variant: "outlined",
|
|
198
|
+
class: "p-24 text-center mb-24 bg-fm-color-warning-50"
|
|
199
|
+
}, {
|
|
200
|
+
default: w(() => [
|
|
201
|
+
e[7] || (e[7] = o("div", { class: "fm-typo-en-title-sm-800 mb-8" }, "Premium Feature", -1)),
|
|
202
|
+
e[8] || (e[8] = o("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary mb-16" }, " Upgrade to Premium to manage advertisements ", -1)),
|
|
203
|
+
i(s, {
|
|
204
|
+
label: "Upgrade Now",
|
|
205
|
+
variant: "primary"
|
|
206
|
+
})
|
|
207
|
+
]),
|
|
208
|
+
_: 1
|
|
209
|
+
}))
|
|
210
|
+
])) : N("", !0),
|
|
211
|
+
i(g, {
|
|
212
|
+
modelValue: n(h),
|
|
213
|
+
"onUpdate:modelValue": [
|
|
214
|
+
e[2] || (e[2] = (v) => Z(h) ? h.value = v : null),
|
|
215
|
+
e[3] || (e[3] = (v) => h.value = v)
|
|
216
|
+
],
|
|
217
|
+
"max-width": 560,
|
|
218
|
+
header: n(p) !== null ? `Manage Ad #${n(p) + 1}` : "Add Advertisement"
|
|
219
|
+
}, {
|
|
220
|
+
"side-sheet-footer": w(() => [
|
|
221
|
+
o("div", Pe, [
|
|
222
|
+
i(s, {
|
|
223
|
+
label: "Save",
|
|
224
|
+
onClick: X,
|
|
225
|
+
loading: !!n(S).loadingQueue.length,
|
|
226
|
+
disabled: !!n(S).loadingQueue.length
|
|
227
|
+
}, null, 8, ["loading", "disabled"])
|
|
228
|
+
])
|
|
229
|
+
]),
|
|
230
|
+
default: w(() => [
|
|
231
|
+
o("div", Me, [
|
|
232
|
+
o("div", je, [
|
|
233
|
+
o("div", Le, [
|
|
234
|
+
i(le, {
|
|
235
|
+
label: "Advertisement Image",
|
|
236
|
+
"image-fit": "cover",
|
|
237
|
+
"aspect-ratio": "2/3",
|
|
238
|
+
thumbnail: n(p) !== null ? _(n(p)) : void 0,
|
|
239
|
+
accept: ".png, .jpg, .jpeg, .mp4, .gif",
|
|
240
|
+
"recommended-size": "1080px x 1350px (4:5)",
|
|
241
|
+
file: n(C) ?? void 0,
|
|
242
|
+
"onUpdate:file": e[0] || (e[0] = (v) => C.value = v)
|
|
243
|
+
}, null, 8, ["thumbnail", "file"])
|
|
244
|
+
])
|
|
245
|
+
]),
|
|
246
|
+
o("div", null, [
|
|
247
|
+
i(ie, {
|
|
248
|
+
label: "Target Locations",
|
|
249
|
+
"helper-text": "Leave empty to show in all locations",
|
|
250
|
+
"model-value": n(F) ?? null,
|
|
251
|
+
"onUpdate:modelValue": e[1] || (e[1] = (v) => F.value = v)
|
|
252
|
+
}, null, 8, ["model-value"])
|
|
253
|
+
])
|
|
254
|
+
])
|
|
255
|
+
]),
|
|
256
|
+
_: 1
|
|
257
|
+
}, 8, ["modelValue", "header"])
|
|
258
|
+
]);
|
|
259
|
+
};
|
|
260
|
+
}
|
|
261
|
+
});
|
|
262
|
+
export {
|
|
263
|
+
Ge as default
|
|
264
|
+
};
|
|
@@ -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 ie, ref as U, isRef as oe, reactive as qe, onMounted as fe, watch as we, toRaw as Ye, createTextVNode as ue, h as We } from "vue";
|
|
2
2
|
import { _ as ze } from "./tier-BJDhpH6X.js";
|
|
3
3
|
import { useDialog as Ee, useDialogChild as je, components as Je } from "@feedmepos/ui-library";
|
|
4
|
-
import { c as D, e as he, S as Ge } from "./index-
|
|
5
|
-
import { u as Le } from "./loading-
|
|
6
|
-
import { u as ke, C as me } from "./membership-
|
|
4
|
+
import { c as D, e as he, S as Ge } from "./index-BL_1CL4C.js";
|
|
5
|
+
import { u as Le } from "./loading-B_UZCyhK.js";
|
|
6
|
+
import { u as ke, C as me } from "./membership-_kM8eXz7.js";
|
|
7
7
|
import { a as Xe, c as Me } from "./object-qECH92oz.js";
|
|
8
8
|
import { _ as re } 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-BAv3BkZY.js";
|
|
10
|
+
import { u as be } from "./vue-i18n-c1uC6tyM.js";
|
|
11
11
|
import { Z, g as J, a as G } from "./zod-Bg2FbC-D.js";
|
|
12
|
-
import { z as Q, R as Ze } from "./app-
|
|
13
|
-
import { m as Qe, n as et, o as tt, p as Oe, q as nt } from "./index-
|
|
12
|
+
import { z as Q, R as Ze } from "./app-B06WmmlS.js";
|
|
13
|
+
import { m as Qe, n as et, o as tt, p as Oe, q as nt } from "./index-UjD7i6Rs.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 ot, p as _e, n as at, f as Fe } from "./plugins-
|
|
15
|
+
import { _ as te } from "./ZodTextField.vue_vue_type_script_setup_true_lang-CeNxiT5A.js";
|
|
16
|
+
import { a as ot, p as _e, n as at, f as Fe } from "./plugins-CRzS5EeK.js";
|
|
17
17
|
import { J as Pe } from "./JsonViewer-v8_C7l5N.js";
|
|
18
|
-
import { _ as lt } from "./index-
|
|
18
|
+
import { _ as lt } from "./index-BEN3tBqd.js";
|
|
19
19
|
import { _ as st } from "./ImageInput.vue_vue_type_script_setup_true_lang-D1KQpDGg.js";
|
|
20
20
|
import { _ as rt } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
|
|
21
|
-
import { z as it, a as dt } from "./money-
|
|
22
|
-
import { F as ut } from "./number-
|
|
23
|
-
import { t as ct } from "./helper-
|
|
24
|
-
import "./index-
|
|
25
|
-
import "./index-
|
|
26
|
-
import "./index-
|
|
27
|
-
import "./index-
|
|
28
|
-
import { m as mt } from "./index-
|
|
29
|
-
import { m as Ce } from "./index-
|
|
21
|
+
import { z as it, a as dt } from "./money-CoVA-srK.js";
|
|
22
|
+
import { F as ut } from "./number-YRitPV2s.js";
|
|
23
|
+
import { t as ct } from "./helper-Bxi0o7m8.js";
|
|
24
|
+
import "./index-TKz_0Ysa.js";
|
|
25
|
+
import "./index-Dhh1sEG_.js";
|
|
26
|
+
import "./index-DlK01rGI.js";
|
|
27
|
+
import "./index-B5SrWi06.js";
|
|
28
|
+
import { m as mt } from "./index-C06Q7hpx.js";
|
|
29
|
+
import { m as Ce } from "./index-B94mBxiL.js";
|
|
30
30
|
import { useRouter as pt } from "vue-router";
|
|
31
31
|
function Ke(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-TKz_0Ysa.js";
|
|
5
|
+
import { u as X } from "./loading-B_UZCyhK.js";
|
|
6
|
+
import { C as Z, u as ee } from "./membership-_kM8eXz7.js";
|
|
7
|
+
import { p as M, f as B } from "./plugins-CRzS5EeK.js";
|
|
8
|
+
import { u as te } from "./vue-i18n-c1uC6tyM.js";
|
|
9
|
+
import { F as oe } from "./index-BEN3tBqd.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-ClV-3_wH.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-CeNxiT5A.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-BprUyeOJ.js";
|
|
18
|
+
import { _ as me, a as ce } from "./EffectSheet.vue_vue_type_style_index_0_lang-oao_UwRf.js";
|
|
19
|
+
import { i as de, t as ue } from "./helper-Bxi0o7m8.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-B94mBxiL.js";
|
|
22
|
+
import { R as O } from "./app-B06WmmlS.js";
|
|
23
23
|
const fe = {
|
|
24
24
|
key: 0,
|
|
25
25
|
class: "flex flex-col space-y-16 pr-12"
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import { defineComponent as Q, ref as M, computed as G, h as n, resolveComponent as U, openBlock as E, createBlock as te, unref as l, isRef as ge, withCtx as ae, createElementVNode as h, createVNode as w, createElementBlock as V, Fragment as W, renderList as oe, toDisplayString as z, createTextVNode as ye, resolveDynamicComponent as he, watch as ne, onBeforeMount as ve, onMounted as be } from "vue";
|
|
2
2
|
import { components as y, useDialog as _e } from "@feedmepos/ui-library";
|
|
3
|
-
import { r as X } from "./index-
|
|
4
|
-
import "./index-
|
|
5
|
-
import { s as xe } from "./index-
|
|
3
|
+
import { r as X } from "./index-UjD7i6Rs.js";
|
|
4
|
+
import "./index-BAv3BkZY.js";
|
|
5
|
+
import { s as xe } from "./index-BWq6tQbu.js";
|
|
6
6
|
import { h as _ } from "./moment-D7p2TMB-.js";
|
|
7
7
|
import { _ as j } from "./FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js";
|
|
8
8
|
import { _ as re } from "./DateRangeChip.vue_vue_type_script_setup_true_lang-eIoPtgO5.js";
|
|
9
9
|
import { s as K } from "./index-CsaQJMAR.js";
|
|
10
|
-
import { f as J } from "./number-
|
|
11
|
-
import { u as se } from "./business-
|
|
10
|
+
import { f as J } from "./number-YRitPV2s.js";
|
|
11
|
+
import { u as se } from "./business-ClV-3_wH.js";
|
|
12
12
|
import { u as le, _ as ie } from "./usePagination-Ds-cuHop.js";
|
|
13
|
-
import { a as Z, c as Se, p as we } from "./plugins-
|
|
14
|
-
import { g as ce } from "./user-
|
|
15
|
-
import { B as ue, e as me } from "./export-
|
|
16
|
-
import { u as de } from "./campaign-
|
|
17
|
-
import "./index-
|
|
18
|
-
import "./index-
|
|
19
|
-
import "./index-
|
|
20
|
-
import "./index-
|
|
21
|
-
import "./index-
|
|
22
|
-
import { u as Te } from "./vue-i18n-
|
|
13
|
+
import { a as Z, c as Se, p as we } from "./plugins-CRzS5EeK.js";
|
|
14
|
+
import { g as ce } from "./user-B4J6WtQq.js";
|
|
15
|
+
import { B as ue, e as me } from "./export-CUcU1l-K.js";
|
|
16
|
+
import { u as de } from "./campaign-C-DtV5gs.js";
|
|
17
|
+
import "./index-TKz_0Ysa.js";
|
|
18
|
+
import "./index-Dhh1sEG_.js";
|
|
19
|
+
import "./index-BEN3tBqd.js";
|
|
20
|
+
import "./index-DlK01rGI.js";
|
|
21
|
+
import "./index-B5SrWi06.js";
|
|
22
|
+
import { u as Te } from "./vue-i18n-c1uC6tyM.js";
|
|
23
23
|
import { o as Y } from "./objectId-dwaoBfJX.js";
|
|
24
|
-
import { u as pe } from "./loading-
|
|
24
|
+
import { u as pe } from "./loading-B_UZCyhK.js";
|
|
25
25
|
import { useRouter as Re } from "vue-router";
|
|
26
|
-
import { t as L } from "./index-
|
|
27
|
-
import { R as H } from "./app-
|
|
28
|
-
import { F as q } from "./collectible.enum-
|
|
26
|
+
import { t as L } from "./index-Ct2-fiN2.js";
|
|
27
|
+
import { R as H } from "./app-B06WmmlS.js";
|
|
28
|
+
import { F as q } from "./collectible.enum-DlxRyJMy.js";
|
|
29
29
|
import { useCoreStore as Ce } from "@feedmepos/mf-common";
|
|
30
|
-
import { m as Ie } from "./index-
|
|
30
|
+
import { m as Ie } from "./index-B94mBxiL.js";
|
|
31
31
|
function Ae(m) {
|
|
32
32
|
let p = "";
|
|
33
33
|
switch (m) {
|
|
@@ -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-ClV-3_wH.js";
|
|
3
3
|
function j(l, s, n) {
|
|
4
4
|
return l.some(
|
|
5
5
|
n instanceof Function ? n : (a) => a === s
|