@feedmepos/mf-connect 0.1.0-beta.9 → 0.1.0-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-D1vIDmhJ.js +620 -0
- package/dist/{App-DQUbRsdA.js → App-DHrfWG8l.js} +249 -250
- package/dist/Broadcast-B2rxZAZi.js +216 -0
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-D-BFllvG.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-D2a9rcXK.js} +20 -20
- package/dist/Card-Dr6pTTM0.js +824 -0
- package/dist/Collections-0tbg0MFt.js +441 -0
- package/dist/Credit-KbB_7Jq-.js +214 -0
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-C_ZKNWzb.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-we7ADwFk.js} +999 -1018
- package/dist/EffectSheet.vue_vue_type_style_index_0_lang-VBNyvZCJ.js +344 -0
- package/dist/Experience-C_Q9Iml8.js +211 -0
- package/dist/Game-BwODw7M6.js +250 -0
- package/dist/ImageInput.vue_vue_type_script_setup_true_lang-ByhTB9Ie.js +144 -0
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-CyGJxUol.js → MainLayout-DpZC6o3R.js} +53 -19
- package/dist/Marketing-QOKTAS_T.js +309 -0
- package/dist/Member-d7RIGRm1.js +92 -0
- package/dist/MemberList-CK9629ew.js +1737 -0
- package/dist/MemberOverview-C2n9oJZh.js +58 -0
- package/dist/{MemberTransactions-zSxSnUkK.js → MemberTransactions-D-pnlXiP.js} +1 -1
- package/dist/MessageInput.vue_vue_type_script_setup_true_lang-3VS7JnK6.js +203 -0
- package/dist/Mission-BAKDm4VZ.js +248 -0
- package/dist/Point-Puu0jKz0.js +220 -0
- package/dist/Promotion-DRIaUvJi.js +244 -0
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-CTKKhH-r.js → RuleGroup.vue_vue_type_script_setup_true_lang-DTdfYGya.js} +557 -557
- package/dist/Segment-DpBxGuuu.js +435 -0
- package/dist/Setting-DLB2ywCp.js +1870 -0
- package/dist/Store-8DO6ITWc.js +1513 -0
- package/dist/StoreRewards-DZfqUeYR.js +429 -0
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-2Jqj_rKv.js → StoreTransactions.vue_vue_type_script_setup_true_lang-RTfozD01.js} +10 -10
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-BkdSj0cX.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-BGI78ycg.js} +1 -1
- package/dist/{Tier-Cpl0FV8L.js → Tier-BnQRujpX.js} +453 -481
- package/dist/{Title-CbMDd1Et.js → Title-BPf1tUFx.js} +295 -314
- package/dist/Transaction-ese0oNrz.js +36 -0
- package/dist/Voucher--gtOZQx1.js +485 -0
- package/dist/ZodTextField.vue_vue_type_script_setup_true_lang-3LlSDiq0.js +140 -0
- package/dist/app-Bt59niI-.js +2974 -0
- package/dist/{app-VxaUCtgl.js → app-DHE61XdR.js} +1 -1
- package/dist/app.js +3 -5
- package/dist/{business-DR7jpnLz.js → business-BSo7EPan.js} +1 -1
- package/dist/{campaign-MqcTb329.js → campaign-CsOje3Ap.js} +3 -5
- package/dist/{collection.fn-CvEoe61K.js → collection.fn-BYQfFJOr.js} +2 -2
- package/dist/dto-CfEXSCq6.js +1145 -0
- package/dist/{effect-BjjQeiQg.js → effect-Bn_ofYS3.js} +9 -9
- package/dist/{export-B8cvWh5n.js → export-CMR243CF.js} +3 -3
- package/dist/{helper-DfgVNY7B.js → helper-BqOQRtvW.js} +1 -1
- package/dist/index-BLDYTxnc.js +28058 -0
- package/dist/{index-C2JNcGc-.js → index-BWnFs-Cb.js} +281 -299
- package/dist/{index-B5NufbUt.js → index-BaBNmzUb.js} +1 -1
- package/dist/{index-CWR3qYjb.js → index-Boo5np6l.js} +1 -1
- package/dist/{index-BsfWRB8R.js → index-CC1GV8OW.js} +1 -1
- package/dist/{index-0UYoh1-7.js → index-CHO4_zsT.js} +1 -1
- package/dist/{index-2P9w5u3m.js → index-DEZsrQ2f.js} +3 -3
- package/dist/{index-C7zMfUgy.js → index-D_f2lmK2.js} +1 -1
- package/dist/{index-Dap5R3vr.js → index-Da142OER.js} +66 -78
- package/dist/index-DbP04yeg.js +11 -0
- package/dist/{index-DBy30v8N.js → index-DtPe-TEm.js} +3 -3
- package/dist/{index-CJ8Uh2Ja.js → index-FvlaxwGB.js} +3 -3
- package/dist/{index.esm2017-D1X3PgpO.js → index.esm2017-ePm--Atp.js} +55 -55
- package/dist/{loading-CJ3nOovJ.js → loading-KNmEMBUB.js} +460 -469
- package/dist/{membership-B1cmSRyk.js → membership-DKoVIS1a.js} +3 -3
- package/dist/money-CkD3zl5C.js +15 -0
- package/dist/number-BDsGpOXm.js +12 -0
- package/dist/{rule-ChWyR-0j.js → rule-CzamI50_.js} +2 -2
- package/dist/{rule-builder-CSmOONdb.js → rule-builder-DHf6wfaQ.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{template-Cug7aRK0.js → template-CFAIPoD7.js} +63 -63
- package/dist/{usePagination-BeF5K3M7.js → usePagination-JoYaROkV.js} +85 -85
- package/dist/{xlsx-CfgPFFvp.js → xlsx-BDJMaozs.js} +517 -517
- package/package.json +4 -7
- package/dist/Analytic-CMXUjK_F.js +0 -622
- package/dist/Broadcast-DowFtHv6.js +0 -223
- package/dist/Card-C7rhL0pV.js +0 -825
- package/dist/Collections-B-1wlk3r.js +0 -453
- package/dist/Credit-DDjozmoF.js +0 -220
- package/dist/EffectSheet.vue_vue_type_style_index_0_lang-pwMuIgs5.js +0 -345
- package/dist/Experience-BbE-c1Op.js +0 -221
- package/dist/Game-DQdRpaN-.js +0 -255
- package/dist/ImageInput.vue_vue_type_script_setup_true_lang-rWUkV9gn.js +0 -144
- package/dist/MainLayout-B1aJoR95.js +0 -41
- package/dist/Marketing-Dgmxzg4h.js +0 -316
- package/dist/Member-w23oRVwN.js +0 -69
- package/dist/MemberList-BLIdjznQ.js +0 -1735
- package/dist/MemberOverview-wL_ailso.js +0 -58
- package/dist/MessageInput.vue_vue_type_script_setup_true_lang-Dy_lMdZA.js +0 -432
- package/dist/Mission-Cjt0E083.js +0 -261
- package/dist/Point-CQJL3Ewu.js +0 -222
- package/dist/Promotion-BYViH3bu.js +0 -247
- package/dist/Segment-B9Jj1ak0.js +0 -437
- package/dist/Setting-DXWbgRxs.js +0 -1901
- package/dist/Store-Dswk2e_z.js +0 -1511
- package/dist/StoreRewards-CNUhG_Ue.js +0 -401
- package/dist/Transaction-BB-kk-84.js +0 -39
- package/dist/Voucher-b1_Jlm6X.js +0 -490
- package/dist/ZodTextField.vue_vue_type_script_setup_true_lang-pG-SrXp9.js +0 -56
- package/dist/app-DCHKJoql.js +0 -5639
- package/dist/dto-jcK3TGB7.js +0 -2770
- package/dist/index-Cv7pLAYq.js +0 -3
- package/dist/index-LrSSauN2.js +0 -29193
- package/dist/money-BEATdGS6.js +0 -15
- package/dist/number-CeAYAKCp.js +0 -12
- package/dist/vue-i18n-BRhKDHdF.js +0 -2365
- package/dist/zod-Bg2FbC-D.js +0 -90
package/dist/Game-DQdRpaN-.js
DELETED
|
@@ -1,255 +0,0 @@
|
|
|
1
|
-
import { defineComponent as D, ref as A, computed as H, onMounted as N, resolveComponent as r, openBlock as d, createElementBlock as x, Fragment as b, createVNode as i, unref as o, withCtx as h, createElementVNode as n, toDisplayString as l, renderList as q, createBlock as v, resolveDynamicComponent as z, h as p } from "vue";
|
|
2
|
-
import { _ as J } from "./campaign-CpzFl8Vr.js";
|
|
3
|
-
import { useDialog as O, components as C } from "@feedmepos/ui-library";
|
|
4
|
-
import { u as Q, a as W, p as X } from "./loading-CJ3nOovJ.js";
|
|
5
|
-
import { u as Y } from "./business-DR7jpnLz.js";
|
|
6
|
-
import { u as Z } from "./campaign-MqcTb329.js";
|
|
7
|
-
import { g as B, b as $ } from "./dto-jcK3TGB7.js";
|
|
8
|
-
import { _ as ee } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
|
|
9
|
-
import { _ as te } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-C_ZKNWzb.js";
|
|
10
|
-
import { u as oe } from "./template-Cug7aRK0.js";
|
|
11
|
-
import { u as ae } from "./vue-i18n-BRhKDHdF.js";
|
|
12
|
-
import { c as w } from "./index-CWR3qYjb.js";
|
|
13
|
-
const ne = { class: "flex items-center" }, se = { class: "fm-typo-en-title-md-600 fm-step-title line-clamp-2 mr-8" }, ie = { class: "px-24 flex flex-col gap-y-16" }, re = { class: "flex items-center justify-between w-full" }, le = { class: "flex gap-8 overflow-x-auto" }, ce = { class: "space-y-8" }, me = { class: "flex w-full gap-4 items-center" }, de = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, pe = { class: "space-y-4" }, ue = { class: "fm-typo-en-body-lg-600" }, fe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ge = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ye = { class: "flex flex-col gap-16 text-center" }, _e = { class: "fm-typo-en-title-sm-800" }, he = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, $e = /* @__PURE__ */ D({
|
|
14
|
-
__name: "Game",
|
|
15
|
-
setup(we) {
|
|
16
|
-
const { t: c } = ae(), E = {
|
|
17
|
-
label: c("connect.program.common.actions.create", {
|
|
18
|
-
type: c("connect.program.game.title").toLowerCase()
|
|
19
|
-
}),
|
|
20
|
-
value: "create",
|
|
21
|
-
isPrimary: !0,
|
|
22
|
-
prependIcon: "add"
|
|
23
|
-
}, K = oe("GAME", O()), f = Y(), m = Z(), { global: M, minor: k } = Q, s = A({
|
|
24
|
-
searchKey: "",
|
|
25
|
-
location: null
|
|
26
|
-
}), g = H(
|
|
27
|
-
() => m.campaigns.token.filter(
|
|
28
|
-
(e) => !s.value.location || !e.targetLocation || e.targetLocation.includes(s.value.location)
|
|
29
|
-
)
|
|
30
|
-
), R = [
|
|
31
|
-
{
|
|
32
|
-
header: "Program title",
|
|
33
|
-
accessorKey: "name",
|
|
34
|
-
// accessorFn: (v) => v.name,
|
|
35
|
-
cell(e) {
|
|
36
|
-
return p("div", { class: "flex items-center justify-between gap-4" }, [
|
|
37
|
-
p("div", { class: "flex items-center" }, [
|
|
38
|
-
p(
|
|
39
|
-
C.FmTooltip,
|
|
40
|
-
{
|
|
41
|
-
content: e.row.original._id,
|
|
42
|
-
onClick: (t) => {
|
|
43
|
-
t.stopPropagation(), W(e.row.original._id);
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
[
|
|
47
|
-
p(C.FmIcon, {
|
|
48
|
-
name: "info",
|
|
49
|
-
outline: !0,
|
|
50
|
-
size: "sm"
|
|
51
|
-
})
|
|
52
|
-
]
|
|
53
|
-
)
|
|
54
|
-
]),
|
|
55
|
-
p("div", { class: "flex-1" }, e.row.original.name)
|
|
56
|
-
]);
|
|
57
|
-
}
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
header: "Status",
|
|
61
|
-
cell(e) {
|
|
62
|
-
return B(e.row.original);
|
|
63
|
-
}
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
header: "Summary",
|
|
67
|
-
accessorFn: (e) => $(e)
|
|
68
|
-
//v.effect,
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
header: "Token received",
|
|
72
|
-
accessorFn: (e) => {
|
|
73
|
-
var t;
|
|
74
|
-
return ((t = e == null ? void 0 : e.pf_collectible) == null ? void 0 : t.currentReceive) ?? 0;
|
|
75
|
-
}
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
header: "Actions",
|
|
79
|
-
cell(e) {
|
|
80
|
-
return p(C.FmButton, {
|
|
81
|
-
variant: "tertiary",
|
|
82
|
-
icon: "delete",
|
|
83
|
-
iconColor: "neutral-gray-400",
|
|
84
|
-
onClick: (t) => {
|
|
85
|
-
t.stopPropagation(), S(e.row.original);
|
|
86
|
-
}
|
|
87
|
-
});
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
], F = A();
|
|
91
|
-
async function S(e) {
|
|
92
|
-
await X.remove(`Are you sure you want to remove ${e.name}?`) && await k(
|
|
93
|
-
async () => {
|
|
94
|
-
await w.delete(e._id), await m.read("GAME");
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
message: `Removing ${e.name}`,
|
|
98
|
-
successMessage: `Removed ${e.name} successfully`
|
|
99
|
-
}
|
|
100
|
-
);
|
|
101
|
-
}
|
|
102
|
-
async function y(e) {
|
|
103
|
-
e ? await t() : K.open(async (u) => {
|
|
104
|
-
await t(u);
|
|
105
|
-
});
|
|
106
|
-
async function t(u) {
|
|
107
|
-
var _;
|
|
108
|
-
(_ = F.value) == null || _.showSheet(
|
|
109
|
-
!0,
|
|
110
|
-
"GAME",
|
|
111
|
-
e ? await w.readById(e._id) : void 0,
|
|
112
|
-
u
|
|
113
|
-
);
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
async function G(e) {
|
|
117
|
-
await k(
|
|
118
|
-
async () => {
|
|
119
|
-
e.campaign._id ? await w.update(e.campaign._id, e) : await w.create(e), await m.read("GAME");
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
message: `${e.campaign._id ? "Updating" : "Creating"} game program`,
|
|
123
|
-
successMessage: `Game program ${e.campaign._id ? "updated" : "created"} successfully`
|
|
124
|
-
}
|
|
125
|
-
);
|
|
126
|
-
}
|
|
127
|
-
return N(async () => {
|
|
128
|
-
await M(async () => {
|
|
129
|
-
await m.read("GAME"), await f.readPremium();
|
|
130
|
-
});
|
|
131
|
-
}), (e, t) => {
|
|
132
|
-
const u = r("FmPill"), _ = r("FmPageHead"), L = r("FmSearch"), I = r("FmTable"), P = r("FmButton"), T = r("FmListItem"), U = r("FmList"), j = r("FmCard");
|
|
133
|
-
return d(), x(b, null, [
|
|
134
|
-
i(_, {
|
|
135
|
-
actions: o(g).length > 0 && o(f).isPremium ? [E] : [],
|
|
136
|
-
"onClick:action": t[0] || (t[0] = () => y())
|
|
137
|
-
}, {
|
|
138
|
-
title: h(() => [
|
|
139
|
-
n("div", ne, [
|
|
140
|
-
n("span", se, l(o(c)("connect.program.game.title")), 1),
|
|
141
|
-
i(u, { variant: "premium" })
|
|
142
|
-
])
|
|
143
|
-
]),
|
|
144
|
-
_: 1
|
|
145
|
-
}, 8, ["actions"]),
|
|
146
|
-
n("div", ie, [
|
|
147
|
-
i(L, {
|
|
148
|
-
modelValue: o(s).searchKey,
|
|
149
|
-
"onUpdate:modelValue": t[1] || (t[1] = (a) => o(s).searchKey = a),
|
|
150
|
-
class: "hidden xs:block border-b-2 border-fm-color-neutral-gray-100",
|
|
151
|
-
placeholder: "search",
|
|
152
|
-
collapsible: ""
|
|
153
|
-
}, null, 8, ["modelValue"]),
|
|
154
|
-
o(m).campaigns.token && o(m).campaigns.token.length > 0 ? (d(), x(b, { key: 0 }, [
|
|
155
|
-
n("div", re, [
|
|
156
|
-
n("div", le, [
|
|
157
|
-
i(ee, {
|
|
158
|
-
modelValue: o(s).location,
|
|
159
|
-
"onUpdate:modelValue": t[2] || (t[2] = (a) => o(s).location = a),
|
|
160
|
-
label: "Location: ",
|
|
161
|
-
"show-item-label": !0,
|
|
162
|
-
icon: "storefront",
|
|
163
|
-
placement: "bottom-start",
|
|
164
|
-
items: o(f).locationItems
|
|
165
|
-
}, null, 8, ["modelValue", "items"])
|
|
166
|
-
]),
|
|
167
|
-
i(L, {
|
|
168
|
-
modelValue: o(s).searchKey,
|
|
169
|
-
"onUpdate:modelValue": t[3] || (t[3] = (a) => o(s).searchKey = a),
|
|
170
|
-
class: "xs:hidden",
|
|
171
|
-
placeholder: "search",
|
|
172
|
-
collapsible: ""
|
|
173
|
-
}, null, 8, ["modelValue"])
|
|
174
|
-
]),
|
|
175
|
-
i(I, {
|
|
176
|
-
class: "xs:hidden",
|
|
177
|
-
"row-data": o(g),
|
|
178
|
-
"column-defs": R,
|
|
179
|
-
"search-value": o(s).searchKey,
|
|
180
|
-
"column-filter": [],
|
|
181
|
-
onRowClick: t[4] || (t[4] = (a) => y(a.original)),
|
|
182
|
-
"hide-footer": o(g).length < 10
|
|
183
|
-
}, null, 8, ["row-data", "search-value", "hide-footer"]),
|
|
184
|
-
i(U, { class: "hidden xs:flex flex-col mx-[-24px]" }, {
|
|
185
|
-
default: h(() => [
|
|
186
|
-
(d(!0), x(b, null, q(o(g).filter(
|
|
187
|
-
(a) => a.name.toLowerCase().includes(o(s).searchKey.toLowerCase())
|
|
188
|
-
), (a) => (d(), v(T, {
|
|
189
|
-
key: a._id.toString(),
|
|
190
|
-
onClick: (V) => y(a),
|
|
191
|
-
class: "py-12 px-16 flex items-center justify-between border-b border-fm-color-neutral-gray-100"
|
|
192
|
-
}, {
|
|
193
|
-
default: h(() => [
|
|
194
|
-
n("div", ce, [
|
|
195
|
-
n("div", me, [
|
|
196
|
-
(d(), v(z(o(B)(a)))),
|
|
197
|
-
n("div", de, l(a.currentReceive ?? 0) + " used ", 1)
|
|
198
|
-
]),
|
|
199
|
-
n("div", pe, [
|
|
200
|
-
n("div", ue, l(a.name), 1),
|
|
201
|
-
n("div", fe, l(o($)(a)), 1)
|
|
202
|
-
]),
|
|
203
|
-
n("div", ge, l(o(c)("program.game.token_received", {
|
|
204
|
-
count: a.currentReceive ?? 0
|
|
205
|
-
})), 1)
|
|
206
|
-
]),
|
|
207
|
-
i(P, {
|
|
208
|
-
icon: "delete",
|
|
209
|
-
"icon-color": "neutral-gray-400",
|
|
210
|
-
variant: "tertiary",
|
|
211
|
-
onClick: (V) => (V.stopPropagation(), S(a))
|
|
212
|
-
}, null, 8, ["onClick"])
|
|
213
|
-
]),
|
|
214
|
-
_: 2
|
|
215
|
-
}, 1032, ["onClick"]))), 128))
|
|
216
|
-
]),
|
|
217
|
-
_: 1
|
|
218
|
-
})
|
|
219
|
-
], 64)) : (d(), v(j, {
|
|
220
|
-
key: 1,
|
|
221
|
-
variant: "outlined",
|
|
222
|
-
class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
|
|
223
|
-
}, {
|
|
224
|
-
default: h(() => [
|
|
225
|
-
t[6] || (t[6] = n("img", {
|
|
226
|
-
src: J,
|
|
227
|
-
class: "aspect-square w-[150px]"
|
|
228
|
-
}, null, -1)),
|
|
229
|
-
n("div", ye, [
|
|
230
|
-
n("div", _e, l(o(c)("connect.program.game.empty_state.title")), 1),
|
|
231
|
-
n("div", he, l(o(c)("connect.program.game.empty_state.description")), 1)
|
|
232
|
-
]),
|
|
233
|
-
i(P, {
|
|
234
|
-
variant: "primary",
|
|
235
|
-
label: "Create game program",
|
|
236
|
-
icon: "add",
|
|
237
|
-
disabled: !o(f).isPremium,
|
|
238
|
-
onClick: t[5] || (t[5] = (a) => y())
|
|
239
|
-
}, null, 8, ["disabled"])
|
|
240
|
-
]),
|
|
241
|
-
_: 1
|
|
242
|
-
})),
|
|
243
|
-
i(te, {
|
|
244
|
-
ref_key: "sheetRef",
|
|
245
|
-
ref: F,
|
|
246
|
-
"onSubmit:modelValue": G
|
|
247
|
-
}, null, 512)
|
|
248
|
-
])
|
|
249
|
-
], 64);
|
|
250
|
-
};
|
|
251
|
-
}
|
|
252
|
-
});
|
|
253
|
-
export {
|
|
254
|
-
$e as default
|
|
255
|
-
};
|
|
@@ -1,144 +0,0 @@
|
|
|
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))
|
|
122
|
-
])),
|
|
123
|
-
"helper-text": g(() => n[3] || (n[3] = [
|
|
124
|
-
p(r(void 0))
|
|
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,41 +0,0 @@
|
|
|
1
|
-
import { defineComponent as n, openBlock as o, createElementBlock as a, createVNode as c, unref as e, ref as m, resolveComponent as u, normalizeClass as _, createBlock as p, createCommentVNode as h, withDirectives as f, createElementVNode as d, vShow as w } from "vue";
|
|
2
|
-
import { _ as v, S as x } from "./LottieAnimation.vue_vue_type_script_setup_true_lang-CyGJxUol.js";
|
|
3
|
-
import { u as r } from "./app-wDQR6dpb.js";
|
|
4
|
-
import { useRoute as g } from "vue-router";
|
|
5
|
-
const S = { class: "bg-white w-full flex min-h-[calc(100svh-56px)] items-center" }, V = /* @__PURE__ */ n({
|
|
6
|
-
__name: "Splash",
|
|
7
|
-
setup(l) {
|
|
8
|
-
return (s, t) => (o(), a("div", S, [
|
|
9
|
-
c(v, {
|
|
10
|
-
class: "flex-1",
|
|
11
|
-
json: e(x),
|
|
12
|
-
width: 100,
|
|
13
|
-
height: 100
|
|
14
|
-
}, null, 8, ["json"])
|
|
15
|
-
]));
|
|
16
|
-
}
|
|
17
|
-
}), N = /* @__PURE__ */ n({
|
|
18
|
-
__name: "MainLayout",
|
|
19
|
-
setup(l) {
|
|
20
|
-
const s = g(), t = m(s.query.showHeader !== "false");
|
|
21
|
-
return (b, k) => {
|
|
22
|
-
const i = u("RouterView");
|
|
23
|
-
return o(), a("div", {
|
|
24
|
-
class: _([
|
|
25
|
-
"bg-fm-color-neutral-white w-full xs:overflow-y-scroll",
|
|
26
|
-
e(t) ? "min-h-[calc(100svh-56px)] xs:h-[calc(100svh-56px)]" : "min-h-screen"
|
|
27
|
-
])
|
|
28
|
-
}, [
|
|
29
|
-
e(r)().isGlobalLoading == !0 ? (o(), p(V, { key: 0 })) : h("", !0),
|
|
30
|
-
f(d("div", null, [
|
|
31
|
-
c(i)
|
|
32
|
-
], 512), [
|
|
33
|
-
[w, e(r)().isGlobalLoading == !1]
|
|
34
|
-
])
|
|
35
|
-
], 2);
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
});
|
|
39
|
-
export {
|
|
40
|
-
N as default
|
|
41
|
-
};
|