@feedmepos/mf-connect 0.1.47-prod → 0.1.48-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-AnuRQDA4.js → Analytic-DrjBaKmx.js} +113 -113
- package/dist/{App-DP_jCyej.js → App-eIaytGsZ.js} +632 -622
- package/dist/{Bin-tL4lF6PB.js → Bin-CVp0eFwl.js} +9 -9
- package/dist/{Broadcast-T2a5tN8R.js → Broadcast-DBgBT6yz.js} +40 -40
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BgPJCH02.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CugJWeBo.js} +18 -18
- package/dist/{Card-Bi-ODgCc.js → Card-DkP6oJVn.js} +239 -239
- package/dist/{Collections-JHWotZ1I.js → Collections-DYb_aeTW.js} +31 -31
- package/dist/{Credit-DQQCXqS0.js → Credit-WVv_PL5D.js} +74 -74
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-hxuYl-OQ.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-Dt9c2kvf.js} +756 -753
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-ECkaQxuI.js → EffectSheet.vue_vue_type_style_index_0_lang-DT3y4k1C.js} +96 -96
- package/dist/{Experience-DzTV21vX.js → Experience-BdH44wBG.js} +41 -41
- package/dist/{Game-DUCx2Dl9.js → Game-C7jxRESY.js} +31 -31
- package/dist/ImageInput.vue_vue_type_script_setup_true_lang-D1KQpDGg.js +144 -0
- package/dist/{Index-zynxjOOr.js → Index-DYr1p4sh.js} +54 -54
- package/dist/{Marketing-BBHDVRkR.js → Marketing-Djl27fez.js} +24 -24
- package/dist/{Member-B09bj6C3.js → Member-CWXedfTG.js} +63 -63
- package/dist/MemberList-C2TvGi22.js +1606 -0
- package/dist/MemberOverview-wL_ailso.js +58 -0
- package/dist/{MemberTransactions-DERMSs7o.js → MemberTransactions-BSUocGg9.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-CAADF6vv.js → MessageInput.vue_vue_type_script_setup_true_lang-D8xPA6jM.js} +2286 -2220
- package/dist/{Mission-DAv0e_ZH.js → Mission-BVx9Cqi5.js} +20 -20
- package/dist/{Overview-D0rBTEtP.js → Overview-DyXF9zfB.js} +337 -337
- package/dist/{Point-BeBYi1BT.js → Point-ovkgTwZO.js} +41 -41
- package/dist/{Promotion-BSPU5hP9.js → Promotion-B0Q6GItP.js} +42 -42
- package/dist/{Queue-C5IFJ3iE.js → Queue-BAWG1Hh-.js} +12 -12
- package/dist/{Record-CoFSrv7j.js → Record-CTp80g4A.js} +10 -10
- package/dist/{Reward-COIOBOl-.js → Reward-_Jow1lJ7.js} +173 -173
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-B9Tl7hqv.js → RewardGroup.vue_vue_type_script_setup_true_lang-BV8xCejA.js} +11 -11
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-BzsYC3k2.js → RuleGroup.vue_vue_type_script_setup_true_lang-DkDAuGY0.js} +381 -381
- package/dist/{Segment-DF5SrucQ.js → Segment-CsdJ1SjK.js} +327 -327
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-BSSfQu3F.js → SelectItems.vue_vue_type_script_setup_true_lang-DH3oIm2t.js} +14 -14
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-DoL_gTKy.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-DvVrjpxR.js} +11 -11
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-Cijyol1Q.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-D5gV89Xk.js} +3 -3
- package/dist/Setting-BZRA50LO.js +1936 -0
- package/dist/{Store-E2_0EIy8.js → Store-CFnCN_7-.js} +238 -238
- package/dist/StoreRewards-B_McpBz-.js +423 -0
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-DuatzcJ8.js → StoreTransactions.vue_vue_type_script_setup_true_lang-vL0vr-Xn.js} +185 -185
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-D_r8I0h7.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-C1ZlLdme.js} +1 -1
- package/dist/{Tier-CEEHsXkC.js → Tier-CCYFu6kJ.js} +106 -106
- package/dist/{Title-BMAWlGeW.js → Title-7Mg-Ml4z.js} +95 -95
- package/dist/{Transaction-CLsceq-O.js → Transaction-BqZrbpZi.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-CFLekn9O.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-C6ZwPUD4.js} +6 -6
- package/dist/{Voucher-Cd293WYY.js → Voucher-Yty_7SuS.js} +36 -36
- package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-Bt12t3gB.js +419 -0
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-B8HHh8HU.js → ZodTextField.vue_vue_type_script_setup_true_lang-C3NHrEIl.js} +1 -1
- package/dist/{app-aVXsWATU.js → app-2EJP4psh.js} +31 -31
- package/dist/app-Dzon--6x.js +57962 -0
- package/dist/app.js +1 -1
- package/dist/{business-DVlHPzaL.js → business-BehG4fR2.js} +1 -1
- package/dist/{campaign-l-u9A514.js → campaign-BpaiTG4f.js} +10 -10
- package/dist/{campaign-D9KeUWA7.js → campaign-CAcP56Sz.js} +2 -2
- package/dist/{campaign.enum-Cud82tES.js → campaign.enum-BWjI8Hop.js} +1 -1
- package/dist/{campaign.fn-C-UojhHv.js → campaign.fn-PVdB1-V1.js} +166 -166
- package/dist/{collectible.enum-PrlUDScv.js → collectible.enum-BYmuqayi.js} +1 -1
- package/dist/{collection.fn-yR-xnV4g.js → collection.fn-CbH8hbWW.js} +2 -2
- package/dist/{dto-Cua1OHMY.js → dto-Dd3Oc4QO.js} +4 -4
- package/dist/{effect-B5-eXNEr.js → effect-DvEQNEl0.js} +1 -1
- package/dist/{email-addresses-BeYh5fr5.js → email-addresses-C-9JrAi8.js} +1 -1
- package/dist/{export-BUF4_DUz.js → export-RWE9Cn-d.js} +4 -4
- package/dist/{helper-CGwOThAl.js → helper-Bl6LdWED.js} +1 -1
- package/dist/{index-Cl2iYM2F.js → index-1bU9cLqV.js} +1 -1
- package/dist/{index-1BGPM6Uy.js → index-BCQMVr1J.js} +1 -1
- package/dist/{index-BmL_b0IR.js → index-Bgnrbk5x.js} +1 -1
- package/dist/{index-knuJv0ti.js → index-Bjf5Z2QE.js} +4 -4
- package/dist/{index-ng2IXlL1.js → index-CFW9ogow.js} +1 -1
- package/dist/{index-DNTd-FNx.js → index-CfgczUMX.js} +2 -2
- package/dist/{index-C-d_4n-1.js → index-CzCqc7ph.js} +1 -1
- package/dist/{index-aMDi62-C.js → index-DX1X6Owa.js} +1 -1
- package/dist/{index-DlFVLRKG.js → index-DZN5WWgq.js} +3 -3
- package/dist/{index-D5KIp8ZB.js → index-DhUvELhc.js} +3 -3
- package/dist/{index-Cx8-ipee.js → index-DpoNuVc-.js} +6 -6
- package/dist/{index-BLdVWQId.js → index-G_XSbrXB.js} +3 -3
- package/dist/{index-hX2mE0gQ.js → index-VVy4GPzJ.js} +1 -1
- package/dist/{index-CB8iWT_p.js → index-wOExBjGo.js} +1 -1
- package/dist/{index.esm2017-D8stWFci.js → index.esm2017-DfgZFSqe.js} +1 -1
- package/dist/{loading-c4b7n9Xp.js → loading-qlqqYGF3.js} +1 -1
- package/dist/{membership-oBIs4sbL.js → membership-Bh_1iu5v.js} +3 -3
- package/dist/{moment-BWErdI6_.js → moment-D7p2TMB-.js} +6 -1
- package/dist/{money-AP24H0gk.js → money-DvTB_Fek.js} +1 -1
- package/dist/{number-CwsAYC_2.js → number-DJQ3gi1P.js} +1 -1
- package/dist/objectid-BKU0cEuv.js +145 -0
- package/dist/{plugins-Dn7JDHi7.js → plugins-DJpBrPbQ.js} +2 -2
- package/dist/{reward-4wdoZeXw.js → reward-DZ4KlN9B.js} +1 -1
- package/dist/{rule-_OJza6tn.js → rule-DV0yCGlq.js} +4 -4
- package/dist/{rule-builder-DmlhHAED.js → rule-builder-D6ihVPNO.js} +1 -1
- package/dist/{template-BSQLFHf4.js → template-ElP-JIFL.js} +63 -63
- package/dist/timezone-FaHjut_D.js +1150 -0
- package/dist/{trigger-DC9tDnI2.js → trigger-D8wnJVTA.js} +4 -4
- package/dist/usePagination-Ds-cuHop.js +223 -0
- package/dist/{user-CCVOptFD.js → user-NWV9KppR.js} +1 -1
- package/dist/{vue-i18n--_Wu1nMj.js → vue-i18n-CkbS-IDD.js} +112 -112
- package/dist/{xlsx-BVMaOi8M.js → xlsx-CdQE5RZi.js} +226 -226
- package/package.json +5 -4
- package/dist/ImageInput.vue_vue_type_script_setup_true_lang-ByhTB9Ie.js +0 -144
- package/dist/MemberList-DLSLGQ02.js +0 -1606
- package/dist/MemberOverview-C2n9oJZh.js +0 -58
- package/dist/Setting-Dt0sG_hk.js +0 -1936
- package/dist/StoreRewards-DuSsWnTE.js +0 -423
- package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-Qc5cCqh5.js +0 -419
- package/dist/app-jRT7vsk_.js +0 -33357
- package/dist/objectid-CVDLTdni.js +0 -145
- package/dist/usePagination-JoYaROkV.js +0 -223
|
@@ -1,23 +1,20 @@
|
|
|
1
1
|
import { defineComponent as N, ref as v, computed as q, onMounted as z, resolveComponent as r, openBlock as p, createElementBlock as C, Fragment as b, createVNode as s, unref as o, withCtx as h, createElementVNode as n, toDisplayString as c, renderList as J, createBlock as k, resolveDynamicComponent as O, h as l } from "vue";
|
|
2
2
|
import { _ as Q } from "./campaign-CpzFl8Vr.js";
|
|
3
3
|
import { useDialog as W, components as w } from "@feedmepos/ui-library";
|
|
4
|
-
import { a as X, p as Y } from "./plugins-
|
|
5
|
-
import { u as Z } from "./loading-
|
|
6
|
-
import { u as ee } from "./business-
|
|
7
|
-
import { u as te } from "./campaign-
|
|
8
|
-
import { a as $, b as A, g as oe } from "./campaign-
|
|
4
|
+
import { a as X, p as Y } from "./plugins-DJpBrPbQ.js";
|
|
5
|
+
import { u as Z } from "./loading-qlqqYGF3.js";
|
|
6
|
+
import { u as ee } from "./business-BehG4fR2.js";
|
|
7
|
+
import { u as te } from "./campaign-CAcP56Sz.js";
|
|
8
|
+
import { a as $, b as A, g as oe } from "./campaign-BpaiTG4f.js";
|
|
9
9
|
import { _ as ae } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
|
|
10
|
-
import { _ as ne } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-
|
|
11
|
-
import { u as se } from "./template-
|
|
12
|
-
import { u as ie } from "./vue-i18n
|
|
13
|
-
import { _ as re } from "./SendCollectionSheet.vue_vue_type_script_setup_true_lang-
|
|
14
|
-
import { c as x } from "./index-
|
|
15
|
-
const le = { class: "flex items-center" }, ce = { class: "fm-typo-en-title-md-600 fm-step-title line-clamp-2 mr-8" }, me = { class: "px-24 flex flex-col gap-y-16" }, de = { class: "flex items-center justify-between w-full" }, pe = { class: "flex gap-8 overflow-x-auto" }, ue = { class: "space-y-8" }, fe = { class: "flex w-full gap-4 items-center" }, ge = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" },
|
|
16
|
-
src: Q,
|
|
17
|
-
class: "aspect-square w-[150px]"
|
|
18
|
-
}, null, -1), ve = { class: "flex flex-col gap-16 text-center" }, Ce = { class: "fm-typo-en-title-sm-800" }, be = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Te = /* @__PURE__ */ N({
|
|
10
|
+
import { _ as ne } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-Dt9c2kvf.js";
|
|
11
|
+
import { u as se } from "./template-ElP-JIFL.js";
|
|
12
|
+
import { u as ie } from "./vue-i18n-CkbS-IDD.js";
|
|
13
|
+
import { _ as re } from "./SendCollectionSheet.vue_vue_type_script_setup_true_lang-DvVrjpxR.js";
|
|
14
|
+
import { c as x } from "./index-BCQMVr1J.js";
|
|
15
|
+
const le = { class: "flex items-center" }, ce = { class: "fm-typo-en-title-md-600 fm-step-title line-clamp-2 mr-8" }, me = { class: "px-24 flex flex-col gap-y-16" }, de = { class: "flex items-center justify-between w-full" }, pe = { class: "flex gap-8 overflow-x-auto" }, ue = { class: "space-y-8" }, fe = { class: "flex w-full gap-4 items-center" }, ge = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ye = { class: "space-y-4" }, _e = { class: "fm-typo-en-body-lg-600" }, he = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, we = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, xe = { class: "flex flex-col gap-16 text-center" }, ve = { class: "fm-typo-en-title-sm-800" }, Ce = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ie = /* @__PURE__ */ N({
|
|
19
16
|
__name: "Game",
|
|
20
|
-
setup(
|
|
17
|
+
setup(be) {
|
|
21
18
|
const { t: m } = ie(), E = {
|
|
22
19
|
label: m("connect.program.common.actions.create", {
|
|
23
20
|
type: m("connect.program.game.title").toLowerCase()
|
|
@@ -115,13 +112,13 @@ const le = { class: "flex items-center" }, ce = { class: "fm-typo-en-title-md-60
|
|
|
115
112
|
}
|
|
116
113
|
);
|
|
117
114
|
}
|
|
118
|
-
async function
|
|
115
|
+
async function y(e) {
|
|
119
116
|
e ? await t() : K.open(async (u) => {
|
|
120
117
|
await t(u);
|
|
121
118
|
});
|
|
122
119
|
async function t(u) {
|
|
123
|
-
var
|
|
124
|
-
(
|
|
120
|
+
var _;
|
|
121
|
+
(_ = S.value) == null || _.showSheet(
|
|
125
122
|
!0,
|
|
126
123
|
"GAME",
|
|
127
124
|
e ? await x.readById(e._id) : void 0,
|
|
@@ -151,11 +148,11 @@ const le = { class: "flex items-center" }, ce = { class: "fm-typo-en-title-md-60
|
|
|
151
148
|
await d.read("GAME"), await f.readPremium();
|
|
152
149
|
});
|
|
153
150
|
}), (e, t) => {
|
|
154
|
-
const u = r("FmPill"),
|
|
151
|
+
const u = r("FmPill"), _ = r("FmPageHead"), V = r("FmSearch"), U = r("FmTable"), B = r("FmButton"), j = r("FmListItem"), D = r("FmList"), H = r("FmCard");
|
|
155
152
|
return p(), C(b, null, [
|
|
156
|
-
s(
|
|
153
|
+
s(_, {
|
|
157
154
|
actions: o(g).length > 0 && o(f).isPremium ? [E] : [],
|
|
158
|
-
"onClick:action": t[0] || (t[0] = () =>
|
|
155
|
+
"onClick:action": t[0] || (t[0] = () => y())
|
|
159
156
|
}, {
|
|
160
157
|
title: h(() => [
|
|
161
158
|
n("div", le, [
|
|
@@ -200,7 +197,7 @@ const le = { class: "flex items-center" }, ce = { class: "fm-typo-en-title-md-60
|
|
|
200
197
|
"column-defs": G,
|
|
201
198
|
"search-value": o(i).searchKey,
|
|
202
199
|
"column-filter": [],
|
|
203
|
-
onRowClick: t[4] || (t[4] = (a) =>
|
|
200
|
+
onRowClick: t[4] || (t[4] = (a) => y(a.original)),
|
|
204
201
|
"hide-footer": o(g).length < 10
|
|
205
202
|
}, null, 8, ["row-data", "search-value", "hide-footer"]),
|
|
206
203
|
s(D, { class: "hidden xs:flex flex-col mx-[-24px]" }, {
|
|
@@ -209,7 +206,7 @@ const le = { class: "flex items-center" }, ce = { class: "fm-typo-en-title-md-60
|
|
|
209
206
|
(a) => a.name.toLowerCase().includes(o(i).searchKey.toLowerCase())
|
|
210
207
|
), (a) => (p(), k(j, {
|
|
211
208
|
key: a._id.toString(),
|
|
212
|
-
onClick: (R) =>
|
|
209
|
+
onClick: (R) => y(a),
|
|
213
210
|
class: "py-12 px-16 flex items-center justify-between border-b border-fm-color-neutral-gray-100"
|
|
214
211
|
}, {
|
|
215
212
|
default: h(() => [
|
|
@@ -218,8 +215,8 @@ const le = { class: "flex items-center" }, ce = { class: "fm-typo-en-title-md-60
|
|
|
218
215
|
(p(), k(O(o($)(a)))),
|
|
219
216
|
n("div", ge, c(a.currentReceive ?? 0) + " used ", 1)
|
|
220
217
|
]),
|
|
221
|
-
n("div",
|
|
222
|
-
n("div",
|
|
218
|
+
n("div", ye, [
|
|
219
|
+
n("div", _e, c(a.name), 1),
|
|
223
220
|
n("div", he, c(o(A)(a)), 1)
|
|
224
221
|
]),
|
|
225
222
|
n("div", we, c(o(m)("connect.program.game.token_received", {
|
|
@@ -244,17 +241,20 @@ const le = { class: "flex items-center" }, ce = { class: "fm-typo-en-title-md-60
|
|
|
244
241
|
class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
|
|
245
242
|
}, {
|
|
246
243
|
default: h(() => [
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
244
|
+
t[6] || (t[6] = n("img", {
|
|
245
|
+
src: Q,
|
|
246
|
+
class: "aspect-square w-[150px]"
|
|
247
|
+
}, null, -1)),
|
|
248
|
+
n("div", xe, [
|
|
249
|
+
n("div", ve, c(o(m)("connect.program.game.empty_state.title")), 1),
|
|
250
|
+
n("div", Ce, c(o(m)("connect.program.game.empty_state.description")), 1)
|
|
251
251
|
]),
|
|
252
252
|
s(B, {
|
|
253
253
|
variant: "primary",
|
|
254
254
|
label: "Create game program",
|
|
255
255
|
icon: "add",
|
|
256
256
|
disabled: !o(f).isPremium,
|
|
257
|
-
onClick: t[5] || (t[5] = (a) =>
|
|
257
|
+
onClick: t[5] || (t[5] = (a) => y())
|
|
258
258
|
}, null, 8, ["disabled"])
|
|
259
259
|
]),
|
|
260
260
|
_: 1
|
|
@@ -274,5 +274,5 @@ const le = { class: "flex items-center" }, ce = { class: "fm-typo-en-title-md-60
|
|
|
274
274
|
}
|
|
275
275
|
});
|
|
276
276
|
export {
|
|
277
|
-
|
|
277
|
+
Ie as default
|
|
278
278
|
};
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import { openBlock as l, createElementBlock as o, createElementVNode as i, defineComponent as C, ref as v, onMounted as $, resolveComponent as f, renderSlot as b, toDisplayString as r, createCommentVNode as x, normalizeStyle as R, unref as s, Fragment as h, createVNode as w, withCtx as g, createTextVNode as p, normalizeClass as V, createBlock as F } from "vue";
|
|
2
|
+
import { _ as z } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
|
+
const H = {}, N = { class: "animate-pulse flex space-x-4 bg-gray-300 dark:bg-gray-700 items-center justify-center rounded w-full h-full" };
|
|
4
|
+
function A(e, d) {
|
|
5
|
+
return l(), o("div", N, [...d[0] || (d[0] = [
|
|
6
|
+
i("svg", {
|
|
7
|
+
class: "dark:text-gray-600 h-10 text-gray-200 w-10",
|
|
8
|
+
"aria-hidden": "true",
|
|
9
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
10
|
+
fill: "currentColor",
|
|
11
|
+
viewBox: "0 0 20 18"
|
|
12
|
+
}, [
|
|
13
|
+
i("path", { d: "M18 0H2a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2Zm-5.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3Zm4.376 10.481A1 1 0 0 1 16 15H4a1 1 0 0 1-.895-1.447l3.5-7A1 1 0 0 1 7.468 6a.965.965 0 0 1 .9.5l2.775 4.757 1.546-1.887a1 1 0 0 1 1.618.1l2.541 4a1 1 0 0 1 .028 1.011Z" })
|
|
14
|
+
], -1)
|
|
15
|
+
])]);
|
|
16
|
+
}
|
|
17
|
+
const D = /* @__PURE__ */ z(H, [["render", A]]), I = { class: "max-w-full max-h-[400px] space-y-4" }, L = { key: 0 }, T = { class: "text-fm-color-typo-secondary fm-typo-en-body-sm-400" }, U = {
|
|
18
|
+
key: 1,
|
|
19
|
+
class: "h-full w-full relative bg-fm-color-neutral-white p-12 border-2 border-dashed border-fm-color-neutral-gray-300 rounded-md flex flex-col items-center justify-center gap-8 hover:border-fm-color-neutral-gray-400"
|
|
20
|
+
}, Z = ["src"], _ = ["src"], E = { class: "absolute right-0 top-0" }, O = /* @__PURE__ */ C({
|
|
21
|
+
__name: "ImageInput",
|
|
22
|
+
props: {
|
|
23
|
+
required: {
|
|
24
|
+
type: Boolean,
|
|
25
|
+
default: () => !1
|
|
26
|
+
},
|
|
27
|
+
disabled: {
|
|
28
|
+
type: Boolean,
|
|
29
|
+
default: () => !1
|
|
30
|
+
},
|
|
31
|
+
thumbnail: {
|
|
32
|
+
type: String,
|
|
33
|
+
default: () => {
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
file: {
|
|
37
|
+
type: File,
|
|
38
|
+
default: () => {
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
label: {
|
|
42
|
+
type: String,
|
|
43
|
+
default: () => {
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
aspectRatio: {
|
|
47
|
+
type: String,
|
|
48
|
+
default: "2/3"
|
|
49
|
+
},
|
|
50
|
+
imageFit: {
|
|
51
|
+
type: String,
|
|
52
|
+
default: "contain"
|
|
53
|
+
},
|
|
54
|
+
accept: {
|
|
55
|
+
type: String,
|
|
56
|
+
default: ".png, .jpg, .jpeg, .webm"
|
|
57
|
+
},
|
|
58
|
+
recommendedSize: {
|
|
59
|
+
type: String,
|
|
60
|
+
default: "Recommended: 950px x 600px"
|
|
61
|
+
},
|
|
62
|
+
deleteButton: {
|
|
63
|
+
type: Boolean,
|
|
64
|
+
default: !0
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
emits: ["update:file"],
|
|
68
|
+
setup(e, { emit: d }) {
|
|
69
|
+
const c = e, a = v({
|
|
70
|
+
loading: !1,
|
|
71
|
+
imgsrc: c.thumbnail
|
|
72
|
+
}), m = v(!1), y = d;
|
|
73
|
+
async function u(t) {
|
|
74
|
+
return t == null ? (a.value.imgsrc = void 0, y("update:file", null)) : (m.value = !!t.type.startsWith("video/"), a.value.loading = !0, a.value.imgsrc = URL.createObjectURL(t), a.value.loading = !1, y("update:file", t));
|
|
75
|
+
}
|
|
76
|
+
return $(() => {
|
|
77
|
+
var t;
|
|
78
|
+
c.file && u(c.file), (t = c.thumbnail) != null && t.includes("mp4") && (m.value = !0);
|
|
79
|
+
}), (t, n) => {
|
|
80
|
+
const k = f("FmDropField"), S = f("FmHelperText"), B = f("FmButton");
|
|
81
|
+
return l(), o("div", I, [
|
|
82
|
+
b(t.$slots, "label", {}, () => [
|
|
83
|
+
e.label ? (l(), o("div", L, r(e.label), 1)) : x("", !0)
|
|
84
|
+
]),
|
|
85
|
+
i("div", {
|
|
86
|
+
style: R({ "aspect-ratio": e.aspectRatio }),
|
|
87
|
+
class: "flex flex-col max-h-full max-w-full"
|
|
88
|
+
}, [
|
|
89
|
+
s(a).loading ? (l(), F(D, { key: 1 })) : (l(), o(h, { key: 0 }, [
|
|
90
|
+
s(a).imgsrc ? (l(), o("div", U, [
|
|
91
|
+
s(m) ? (l(), o("video", {
|
|
92
|
+
key: 1,
|
|
93
|
+
src: s(a).imgsrc || e.thumbnail,
|
|
94
|
+
class: "w-full h-full",
|
|
95
|
+
controls: ""
|
|
96
|
+
}, null, 8, _)) : (l(), o("img", {
|
|
97
|
+
key: 0,
|
|
98
|
+
class: V([`object-${e.imageFit}`, "w-full h-full"]),
|
|
99
|
+
src: s(a).imgsrc || e.thumbnail
|
|
100
|
+
}, null, 10, Z)),
|
|
101
|
+
i("div", E, [
|
|
102
|
+
b(t.$slots, "delete-button"),
|
|
103
|
+
e.deleteButton ? (l(), F(B, {
|
|
104
|
+
key: 0,
|
|
105
|
+
class: "!text-neutral-50 !bg-neutral-700",
|
|
106
|
+
icon: "delete",
|
|
107
|
+
variant: "tertiary",
|
|
108
|
+
disabled: e.disabled,
|
|
109
|
+
onClick: n[1] || (n[1] = (j) => u(null))
|
|
110
|
+
}, null, 8, ["disabled"])) : x("", !0)
|
|
111
|
+
])
|
|
112
|
+
])) : (l(), o(h, { key: 0 }, [
|
|
113
|
+
w(k, {
|
|
114
|
+
class: "flex-1 hihiha",
|
|
115
|
+
accept: e.accept,
|
|
116
|
+
disabled: e.disabled,
|
|
117
|
+
onFileUpload: u,
|
|
118
|
+
onFileRejected: n[0] || (n[0] = (j) => u(null))
|
|
119
|
+
}, {
|
|
120
|
+
label: g(() => [...n[2] || (n[2] = [
|
|
121
|
+
p(r(void 0), -1)
|
|
122
|
+
])]),
|
|
123
|
+
"helper-text": g(() => [...n[3] || (n[3] = [
|
|
124
|
+
p(r(void 0), -1)
|
|
125
|
+
])]),
|
|
126
|
+
"accept-text": g(() => [
|
|
127
|
+
i("div", T, [
|
|
128
|
+
i("div", null, "(" + r(e.recommendedSize) + ")", 1),
|
|
129
|
+
p(" Accepts " + r(e.accept), 1)
|
|
130
|
+
])
|
|
131
|
+
]),
|
|
132
|
+
_: 1
|
|
133
|
+
}, 8, ["accept", "disabled"]),
|
|
134
|
+
w(S, { text: "" })
|
|
135
|
+
], 64))
|
|
136
|
+
], 64))
|
|
137
|
+
], 4)
|
|
138
|
+
]);
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
});
|
|
142
|
+
export {
|
|
143
|
+
O as _
|
|
144
|
+
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { defineComponent as U, ref as g, watch as O, onMounted as I, resolveComponent as m, openBlock as b, createBlock as j, withCtx as P, createTextVNode as z, toDisplayString as
|
|
2
|
-
import { u as H } from "./vue-i18n
|
|
3
|
-
import "./index-
|
|
1
|
+
import { defineComponent as U, ref as g, watch as O, onMounted as I, resolveComponent as m, openBlock as b, createBlock as j, withCtx as P, createTextVNode as z, toDisplayString as B, createElementVNode as c, createVNode as o, unref as e, createElementBlock as F, createCommentVNode as W, normalizeClass as G, computed as L, Fragment as q, isRef as J } from "vue";
|
|
2
|
+
import { u as H } from "./vue-i18n-CkbS-IDD.js";
|
|
3
|
+
import "./index-1bU9cLqV.js";
|
|
4
4
|
import { useRouter as K } from "vue-router";
|
|
5
|
-
import { u as Q } from "./loading-
|
|
6
|
-
import { f as V, p as X } from "./plugins-
|
|
7
|
-
import { u as Y, _ as Z } from "./RewardGroup.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { u as Q } from "./loading-qlqqYGF3.js";
|
|
6
|
+
import { f as V, p as X } from "./plugins-DJpBrPbQ.js";
|
|
7
|
+
import { u as Y, _ as Z } from "./RewardGroup.vue_vue_type_script_setup_true_lang-BV8xCejA.js";
|
|
8
8
|
import { useDialog as ee, useSnackbar as ne, FmButtonVariant as p } from "@feedmepos/ui-library";
|
|
9
|
-
import { r as N } from "./index-
|
|
10
|
-
import { u as ae } from "./reward-
|
|
11
|
-
import { u as oe } from "./business-
|
|
12
|
-
import { u as te } from "./membership-
|
|
13
|
-
import { R as
|
|
9
|
+
import { r as N } from "./index-wOExBjGo.js";
|
|
10
|
+
import { u as ae } from "./reward-DZ4KlN9B.js";
|
|
11
|
+
import { u as oe } from "./business-BehG4fR2.js";
|
|
12
|
+
import { u as te } from "./membership-Bh_1iu5v.js";
|
|
13
|
+
import { R as $ } from "./app-2EJP4psh.js";
|
|
14
14
|
const re = { class: "space-y-24" }, le = {
|
|
15
15
|
key: 0,
|
|
16
16
|
class: /* @__PURE__ */ G([
|
|
@@ -32,10 +32,10 @@ const re = { class: "space-y-24" }, le = {
|
|
|
32
32
|
modelValue: { type: Boolean }
|
|
33
33
|
},
|
|
34
34
|
emits: ["update:modelValue"],
|
|
35
|
-
setup(
|
|
36
|
-
const y =
|
|
35
|
+
setup(k, { emit: T }) {
|
|
36
|
+
const y = k;
|
|
37
37
|
ee();
|
|
38
|
-
const s = ne(), { t } = H(), i = Y(), { minor: _ } = Q, d = g(!1),
|
|
38
|
+
const s = ne(), { t } = H(), i = Y(), { minor: _ } = Q, d = g(!1), x = T, r = g(null), w = g(null);
|
|
39
39
|
async function h() {
|
|
40
40
|
if (!r.value) {
|
|
41
41
|
s.open({
|
|
@@ -47,18 +47,18 @@ const re = { class: "space-y-24" }, le = {
|
|
|
47
47
|
_(
|
|
48
48
|
async () => {
|
|
49
49
|
d.value = !0;
|
|
50
|
-
const
|
|
50
|
+
const a = await V.update(
|
|
51
51
|
V.referralTermAndConditionPath(),
|
|
52
52
|
r.value
|
|
53
|
-
),
|
|
54
|
-
|
|
53
|
+
), n = i.referralProgram;
|
|
54
|
+
n.term_and_condition = a, await N.update(n), d.value = !1, v();
|
|
55
55
|
},
|
|
56
56
|
{
|
|
57
57
|
successMessage: "Term and Condition uploaded successfully"
|
|
58
58
|
}
|
|
59
59
|
);
|
|
60
60
|
}
|
|
61
|
-
async function
|
|
61
|
+
async function E() {
|
|
62
62
|
await X.confirm(
|
|
63
63
|
t("connect.referral.term_and_condition.confirm_remove"),
|
|
64
64
|
t("connect.common.confirm"),
|
|
@@ -69,8 +69,8 @@ const re = { class: "space-y-24" }, le = {
|
|
|
69
69
|
d.value = !0, await V.delete(
|
|
70
70
|
V.referralTermAndConditionPath()
|
|
71
71
|
);
|
|
72
|
-
const
|
|
73
|
-
|
|
72
|
+
const n = i.referralProgram;
|
|
73
|
+
n.term_and_condition = void 0, await N.update(n), d.value = !1, v();
|
|
74
74
|
},
|
|
75
75
|
{
|
|
76
76
|
successMessage: "Term and Condition removed successfully"
|
|
@@ -78,27 +78,27 @@ const re = { class: "space-y-24" }, le = {
|
|
|
78
78
|
);
|
|
79
79
|
}
|
|
80
80
|
function v() {
|
|
81
|
-
r.value = null,
|
|
81
|
+
r.value = null, x("update:modelValue", !1);
|
|
82
82
|
}
|
|
83
83
|
function l() {
|
|
84
|
-
var
|
|
85
|
-
window.open((
|
|
84
|
+
var a;
|
|
85
|
+
window.open((a = i.referralProgram) == null ? void 0 : a.term_and_condition, "_blank");
|
|
86
86
|
}
|
|
87
87
|
return O(
|
|
88
88
|
() => y.modelValue,
|
|
89
|
-
(
|
|
89
|
+
(a) => {
|
|
90
90
|
r.value = null;
|
|
91
91
|
}
|
|
92
92
|
), I(() => {
|
|
93
|
-
}), (
|
|
94
|
-
const R = m("FmButton"),
|
|
95
|
-
return b(), j(
|
|
96
|
-
"model-value":
|
|
97
|
-
"onUpdate:modelValue":
|
|
93
|
+
}), (a, n) => {
|
|
94
|
+
const R = m("FmButton"), A = m("FmDropField"), u = m("fm-button"), S = m("fm-dialog");
|
|
95
|
+
return b(), j(S, {
|
|
96
|
+
"model-value": k.modelValue,
|
|
97
|
+
"onUpdate:modelValue": n[3] || (n[3] = (C) => a.$emit("update:modelValue", C)),
|
|
98
98
|
"dismiss-away": ""
|
|
99
99
|
}, {
|
|
100
100
|
"dialog-header": P(() => [
|
|
101
|
-
z(
|
|
101
|
+
z(B(a.$t("connect.referral.actions.terms")), 1)
|
|
102
102
|
]),
|
|
103
103
|
"dialog-footer": P(() => [
|
|
104
104
|
c("div", me, [
|
|
@@ -130,7 +130,7 @@ const re = { class: "space-y-24" }, le = {
|
|
|
130
130
|
o(R, {
|
|
131
131
|
variant: e(p).Plain,
|
|
132
132
|
icon: "delete",
|
|
133
|
-
onClick:
|
|
133
|
+
onClick: E
|
|
134
134
|
}, null, 8, ["variant"])
|
|
135
135
|
])) : W("", !0),
|
|
136
136
|
e(r) ? (b(), F("div", se, [
|
|
@@ -138,7 +138,7 @@ const re = { class: "space-y-24" }, le = {
|
|
|
138
138
|
variant: e(p).Tertiary,
|
|
139
139
|
"prepend-icon": "attach_file"
|
|
140
140
|
}, null, 8, ["variant"]),
|
|
141
|
-
c("p", ce,
|
|
141
|
+
c("p", ce, B(e(r).name), 1),
|
|
142
142
|
c("label", {
|
|
143
143
|
ref_key: "fileLabelRef",
|
|
144
144
|
ref: w,
|
|
@@ -147,7 +147,7 @@ const re = { class: "space-y-24" }, le = {
|
|
|
147
147
|
o(u, {
|
|
148
148
|
variant: e(p).Plain,
|
|
149
149
|
label: e(t)("Replace File"),
|
|
150
|
-
onClick:
|
|
150
|
+
onClick: n[1] || (n[1] = () => {
|
|
151
151
|
var f;
|
|
152
152
|
return (f = e(w)) == null ? void 0 : f.click();
|
|
153
153
|
})
|
|
@@ -157,15 +157,15 @@ const re = { class: "space-y-24" }, le = {
|
|
|
157
157
|
accept: ".pdf",
|
|
158
158
|
class: "hidden",
|
|
159
159
|
type: "file",
|
|
160
|
-
onChange:
|
|
160
|
+
onChange: n[2] || (n[2] = (f) => {
|
|
161
161
|
var D, M;
|
|
162
162
|
return r.value = ((M = (D = f.target) == null ? void 0 : D.files) == null ? void 0 : M[0]) ?? null;
|
|
163
163
|
})
|
|
164
164
|
}, null, 32)
|
|
165
165
|
], 512)
|
|
166
166
|
])) : (b(), F("div", ie, [
|
|
167
|
-
o(
|
|
168
|
-
onFileUpload:
|
|
167
|
+
o(A, {
|
|
168
|
+
onFileUpload: n[0] || (n[0] = (f) => r.value = f),
|
|
169
169
|
accept: ".pdf",
|
|
170
170
|
"max-file-size": 8e6
|
|
171
171
|
})
|
|
@@ -177,10 +177,10 @@ const re = { class: "space-y-24" }, le = {
|
|
|
177
177
|
}, 8, ["model-value"]);
|
|
178
178
|
};
|
|
179
179
|
}
|
|
180
|
-
}), ue = { class: "flex items-center" }, fe = { class: "fm-typo-en-title-md-600 fm-step-title line-clamp-2 mr-8" }, pe = { class: "px-24 flex flex-col gap-y-16 pb-24" },
|
|
180
|
+
}), ue = { class: "flex items-center" }, fe = { class: "fm-typo-en-title-md-600 fm-step-title line-clamp-2 mr-8" }, pe = { class: "px-24 flex flex-col gap-y-16 pb-24" }, xe = /* @__PURE__ */ U({
|
|
181
181
|
__name: "Index",
|
|
182
|
-
setup(
|
|
183
|
-
const
|
|
182
|
+
setup(k) {
|
|
183
|
+
const T = ae(), y = g(null), { t: s } = H(), t = K(), i = g(!1), _ = oe(), d = te(), x = L(() => _.isPremium ? [
|
|
184
184
|
{
|
|
185
185
|
label: s("connect.referral.actions.terms"),
|
|
186
186
|
value: "term_and_condition"
|
|
@@ -198,44 +198,44 @@ const re = { class: "space-y-24" }, le = {
|
|
|
198
198
|
] : []), r = [
|
|
199
199
|
{
|
|
200
200
|
label: s("connect.referral.tabs.overview"),
|
|
201
|
-
value:
|
|
201
|
+
value: $["$connect-REFERRAL_OVERVIEW"],
|
|
202
202
|
actions: []
|
|
203
203
|
},
|
|
204
204
|
{
|
|
205
205
|
label: s("connect.referral.tabs.record"),
|
|
206
|
-
value:
|
|
206
|
+
value: $["$connect-REFERRAL_RECORD"],
|
|
207
207
|
actions: []
|
|
208
208
|
}
|
|
209
209
|
], w = L(() => r.find((l) => l.value === t.currentRoute.value.name) ?? r[0]);
|
|
210
210
|
async function h(l) {
|
|
211
211
|
await t.push({ name: l });
|
|
212
212
|
}
|
|
213
|
-
async function
|
|
214
|
-
var
|
|
215
|
-
l === "add_referral_tier" && ((
|
|
213
|
+
async function E(l) {
|
|
214
|
+
var a;
|
|
215
|
+
l === "add_referral_tier" && ((a = y.value) == null || a.onManageRewardGroup(-1)), l === "manage_reward" && await t.push({ name: $["$connect-REWARD_TEMPLATE"] }), l === "term_and_condition" && v();
|
|
216
216
|
}
|
|
217
217
|
async function v() {
|
|
218
218
|
i.value = !0;
|
|
219
219
|
}
|
|
220
220
|
return I(async () => {
|
|
221
|
-
await
|
|
222
|
-
}), (l,
|
|
223
|
-
const
|
|
221
|
+
await T.readRewards(), await _.readPremium(), await d.readSegments();
|
|
222
|
+
}), (l, a) => {
|
|
223
|
+
const n = m("FmPill"), R = m("FmPageHead"), A = m("FmTabs"), u = m("RouterView");
|
|
224
224
|
return b(), F(q, null, [
|
|
225
225
|
o(R, {
|
|
226
|
-
actions: e(
|
|
227
|
-
"onClick:action":
|
|
226
|
+
actions: e(x),
|
|
227
|
+
"onClick:action": E
|
|
228
228
|
}, {
|
|
229
229
|
title: P(() => [
|
|
230
230
|
c("div", ue, [
|
|
231
|
-
c("span", fe,
|
|
232
|
-
o(
|
|
231
|
+
c("span", fe, B(e(s)("connect.referral.title")), 1),
|
|
232
|
+
o(n, { variant: "premium" })
|
|
233
233
|
])
|
|
234
234
|
]),
|
|
235
235
|
_: 1
|
|
236
236
|
}, 8, ["actions"]),
|
|
237
237
|
c("div", pe, [
|
|
238
|
-
o(
|
|
238
|
+
o(A, {
|
|
239
239
|
"model-value": e(w).value,
|
|
240
240
|
items: r,
|
|
241
241
|
"onUpdate:modelValue": h
|
|
@@ -244,7 +244,7 @@ const re = { class: "space-y-24" }, le = {
|
|
|
244
244
|
]),
|
|
245
245
|
o(de, {
|
|
246
246
|
modelValue: e(i),
|
|
247
|
-
"onUpdate:modelValue":
|
|
247
|
+
"onUpdate:modelValue": a[0] || (a[0] = (S) => J(i) ? i.value = S : null)
|
|
248
248
|
}, null, 8, ["modelValue"]),
|
|
249
249
|
o(Z, {
|
|
250
250
|
ref_key: "rewardGroupRef",
|
|
@@ -255,5 +255,5 @@ const re = { class: "space-y-24" }, le = {
|
|
|
255
255
|
}
|
|
256
256
|
});
|
|
257
257
|
export {
|
|
258
|
-
|
|
258
|
+
xe as default
|
|
259
259
|
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { openBlock as m, createElementBlock as p, defineComponent as z, ref as S, onMounted as Y, computed as H, h as J, resolveComponent as c, Fragment as x, createVNode as i, unref as r, createElementVNode as s, withCtx as F, renderList as $, createBlock as B, toDisplayString as f, createCommentVNode as j } from "vue";
|
|
2
2
|
import { _ as q } from "./campaign-CpzFl8Vr.js";
|
|
3
3
|
import { components as G } from "@feedmepos/ui-library";
|
|
4
|
-
import { p as X } from "./plugins-
|
|
5
|
-
import { u as Q } from "./loading-
|
|
4
|
+
import { p as X } from "./plugins-DJpBrPbQ.js";
|
|
5
|
+
import { u as Q } from "./loading-qlqqYGF3.js";
|
|
6
6
|
import { defineStore as W } from "pinia";
|
|
7
|
-
import { F as C } from "./index-
|
|
7
|
+
import { F as C } from "./index-CFW9ogow.js";
|
|
8
8
|
import { useCoreStore as Z } from "@feedmepos/mf-common";
|
|
9
|
-
import { g as
|
|
9
|
+
import { g as y, S as ee, b as te } from "./index-G_XSbrXB.js";
|
|
10
10
|
import { _ as ne } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
|
-
import { u as ae } from "./campaign-
|
|
12
|
-
import { h as oe } from "./moment-
|
|
13
|
-
import { u as re } from "./vue-i18n
|
|
11
|
+
import { u as ae } from "./campaign-CAcP56Sz.js";
|
|
12
|
+
import { h as oe } from "./moment-D7p2TMB-.js";
|
|
13
|
+
import { u as re } from "./vue-i18n-CkbS-IDD.js";
|
|
14
14
|
var se = { authUrl: "https://portal-v2.feedmeapi.com/", slackWebhookUrl: "https://hooks.slack.com/services/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", appUrl: "member.feedme.cc", crmUrl: "crm.feedme.cc", paymentPortalUrl: "https://portal.feedme.cc/payment/payout-account", licensePortalUrl: "https://license.feedme.cc/", marketingV1Portal: "https://marketing-v1.feedme.cc" };
|
|
15
|
-
const
|
|
15
|
+
const h = () => {
|
|
16
16
|
const o = ee.getBusinessId();
|
|
17
17
|
if (!o) throw new Error("Invalid business ID");
|
|
18
18
|
return te(`businesses/${o}/marketing-materials/`, {
|
|
@@ -21,19 +21,19 @@ const y = () => {
|
|
|
21
21
|
});
|
|
22
22
|
}, L = {
|
|
23
23
|
async read() {
|
|
24
|
-
return
|
|
24
|
+
return y(await h().get(""));
|
|
25
25
|
},
|
|
26
26
|
async createMarketing(o) {
|
|
27
|
-
return
|
|
27
|
+
return y(await h().post("", o));
|
|
28
28
|
},
|
|
29
29
|
// add id
|
|
30
30
|
async updateMarketing(o, t) {
|
|
31
|
-
return
|
|
32
|
-
await
|
|
31
|
+
return y(
|
|
32
|
+
await h().put(o, t)
|
|
33
33
|
);
|
|
34
34
|
},
|
|
35
35
|
async deleteMarketing(o) {
|
|
36
|
-
return
|
|
36
|
+
return y(await h().delete(o));
|
|
37
37
|
}
|
|
38
38
|
}, I = W("mf-connect-marketing", {
|
|
39
39
|
state: () => {
|
|
@@ -135,12 +135,7 @@ const y = () => {
|
|
|
135
135
|
function le(o, t) {
|
|
136
136
|
return m(), p("div");
|
|
137
137
|
}
|
|
138
|
-
const ce = /* @__PURE__ */ ne(ie, [["render", le]]), me = { class: "px-24 flex flex-col gap-y-16" }, de = { class: "flex items-center justify-between w-full" }, pe = { class: "space-y-8" }, ue = { class: "fm-typo-en-body-lg-600" }, ge = { class: "fm-typo-en-body-lg-600" }, fe = { key: 0 },
|
|
139
|
-
he
|
|
140
|
-
], ke = /* @__PURE__ */ s("img", {
|
|
141
|
-
src: q,
|
|
142
|
-
class: "w-[150px]"
|
|
143
|
-
}, null, -1), _e = { class: "fm-typo-en-title-sm-800" }, be = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary w-4/6 text-center" }, Le = /* @__PURE__ */ z({
|
|
138
|
+
const ce = /* @__PURE__ */ ne(ie, [["render", le]]), me = { class: "px-24 flex flex-col gap-y-16" }, de = { class: "flex items-center justify-between w-full" }, pe = { class: "space-y-8" }, ue = { class: "fm-typo-en-body-lg-600" }, ge = { class: "fm-typo-en-body-lg-600" }, fe = { key: 0 }, ye = { class: "fm-typo-en-title-sm-800" }, he = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary w-4/6 text-center" }, Ve = /* @__PURE__ */ z({
|
|
144
139
|
__name: "Marketing",
|
|
145
140
|
setup(o) {
|
|
146
141
|
const { t } = re(), O = {
|
|
@@ -291,16 +286,21 @@ const ce = /* @__PURE__ */ ne(ie, [["render", le]]), me = { class: "px-24 flex f
|
|
|
291
286
|
]),
|
|
292
287
|
_: 1
|
|
293
288
|
}),
|
|
294
|
-
r(d).length == 0 ? (m(), p("div", fe,
|
|
289
|
+
r(d).length == 0 ? (m(), p("div", fe, [...e[7] || (e[7] = [
|
|
290
|
+
s("div", { class: "text-fm-color-typo-secondary fm-typo-en-body-md-600" }, " No results found ", -1)
|
|
291
|
+
])])) : j("", !0)
|
|
295
292
|
], 64)) : (m(), B(R, {
|
|
296
293
|
key: 1,
|
|
297
294
|
variant: "outlined",
|
|
298
295
|
class: "w-full justify-center items-center flex flex-col p-[24px] gap-[24px]"
|
|
299
296
|
}, {
|
|
300
297
|
default: F(() => [
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
298
|
+
e[8] || (e[8] = s("img", {
|
|
299
|
+
src: q,
|
|
300
|
+
class: "w-[150px]"
|
|
301
|
+
}, null, -1)),
|
|
302
|
+
s("p", ye, f(r(t)("connect.marketing.emptyState.title")), 1),
|
|
303
|
+
s("p", he, f(r(t)("connect.marketing.emptyState.description")), 1),
|
|
304
304
|
i(T, {
|
|
305
305
|
label: r(t)("connect.marketing.emptyState.action"),
|
|
306
306
|
"prepend-icon": "add",
|
|
@@ -315,5 +315,5 @@ const ce = /* @__PURE__ */ ne(ie, [["render", le]]), me = { class: "px-24 flex f
|
|
|
315
315
|
}
|
|
316
316
|
});
|
|
317
317
|
export {
|
|
318
|
-
|
|
318
|
+
Ve as default
|
|
319
319
|
};
|