@feedmepos/mf-connect 0.1.0-beta.9 → 0.1.1-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-C2etD-eu.js +620 -0
- package/dist/{App-DQUbRsdA.js → App-DlRvkDpN.js} +58 -59
- package/dist/Broadcast-DpCGUS6r.js +216 -0
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-D-BFllvG.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-Cj4IcH5D.js} +20 -20
- package/dist/Card-DjGC6jmq.js +823 -0
- package/dist/Collections-Q2pYWnJF.js +440 -0
- package/dist/Credit-DOIq2VYW.js +214 -0
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-C_ZKNWzb.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-D7ML8ePp.js} +1010 -1026
- package/dist/EffectSheet.vue_vue_type_style_index_0_lang-CyxWG5I7.js +344 -0
- package/dist/Experience-DUst4I0H.js +211 -0
- package/dist/Game-CXnQR-wV.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-CZfHsMFC.js +309 -0
- package/dist/Member-CX5Ohgeg.js +92 -0
- package/dist/MemberList-D8I3SaAs.js +1040 -0
- package/dist/MemberOverview-C2n9oJZh.js +58 -0
- package/dist/{MemberTransactions-zSxSnUkK.js → MemberTransactions-DfZNbCHD.js} +1 -1
- package/dist/MessageInput.vue_vue_type_script_setup_true_lang-BxFVEoBX.js +203 -0
- package/dist/Mission-S1pwDbqp.js +248 -0
- package/dist/Point-BdLUcGZy.js +220 -0
- package/dist/Promotion-DWAeQGkU.js +244 -0
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-CTKKhH-r.js → RuleGroup.vue_vue_type_script_setup_true_lang-Dux_NMO5.js} +577 -568
- package/dist/Segment-CXSE8Bzf.js +560 -0
- package/dist/Setting-CLuXuEId.js +1870 -0
- package/dist/Store-Be3cui0S.js +1533 -0
- package/dist/StoreRewards-zFy_w8p4.js +429 -0
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-2Jqj_rKv.js → StoreTransactions.vue_vue_type_script_setup_true_lang-DxGJKgbc.js} +10 -10
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-BkdSj0cX.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-Dreo45H1.js} +1 -1
- package/dist/{Tier-Cpl0FV8L.js → Tier-ChzcISYF.js} +453 -481
- package/dist/{Title-CbMDd1Et.js → Title-DQSjhBkT.js} +295 -314
- package/dist/Transaction-CeWmWpN_.js +36 -0
- package/dist/Voucher-BkLIxiZN.js +485 -0
- package/dist/ZodTextField.vue_vue_type_script_setup_true_lang-3LlSDiq0.js +140 -0
- package/dist/app-CLNirPsB.js +2974 -0
- package/dist/{app-VxaUCtgl.js → app-DuNsy0aC.js} +1 -1
- package/dist/app.js +3 -5
- package/dist/{business-DR7jpnLz.js → business-COGiTmLD.js} +1 -1
- package/dist/{campaign-MqcTb329.js → campaign-BHZMjQi5.js} +3 -5
- package/dist/{collection.fn-CvEoe61K.js → collection.fn-sAxtYO_r.js} +2 -2
- package/dist/dto-ndeeV_nc.js +1145 -0
- package/dist/{effect-BjjQeiQg.js → effect-BQt0rkdT.js} +9 -9
- package/dist/email-addresses-B3PazwKs.js +705 -0
- package/dist/{export-B8cvWh5n.js → export-D6r-xNji.js} +3 -3
- package/dist/{helper-DfgVNY7B.js → helper-CrjQw_Et.js} +1 -1
- package/dist/{index-CWR3qYjb.js → index-Btlj28Vg.js} +1 -1
- package/dist/{index-C7zMfUgy.js → index-Buy-yvAZ.js} +319 -304
- package/dist/{index-0UYoh1-7.js → index-C3AAy__p.js} +1 -1
- package/dist/index-CHAaFSD2.js +11 -0
- package/dist/{index-Dap5R3vr.js → index-Cg3RFxc9.js} +91 -102
- package/dist/{index-2P9w5u3m.js → index-CqpEhMr6.js} +4 -4
- package/dist/{index-BsfWRB8R.js → index-CvHj-wYi.js} +1 -1
- package/dist/index-DGLmbBnE.js +28997 -0
- package/dist/{index-CJ8Uh2Ja.js → index-DXpd07G3.js} +3 -3
- package/dist/{index-B5NufbUt.js → index-Daax_BQa.js} +1 -1
- package/dist/{index-C2JNcGc-.js → index-DrLEuIe1.js} +281 -299
- package/dist/{index-DBy30v8N.js → index-tSEYvA-2.js} +3 -3
- package/dist/{index.esm2017-D1X3PgpO.js → index.esm2017-a5BlZ76G.js} +55 -55
- package/dist/{loading-CJ3nOovJ.js → loading-B3XGyQ8W.js} +460 -469
- package/dist/{membership-B1cmSRyk.js → membership-GIOJ1ptN.js} +3 -3
- package/dist/money-z7VwzhZP.js +15 -0
- package/dist/number-DHYb2ua_.js +12 -0
- package/dist/{rule-builder-CSmOONdb.js → rule-builder-CcsWd5r9.js} +1 -1
- package/dist/{rule-ChWyR-0j.js → rule-iIEblTE4.js} +179 -177
- package/dist/style.css +1 -1
- package/dist/{template-Cug7aRK0.js → template-DMRMDZOW.js} +63 -63
- package/dist/{xlsx-CfgPFFvp.js → usePagination-CNFe0T2B.js} +3176 -2955
- package/package.json +5 -8
- 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/usePagination-BeF5K3M7.js +0 -223
- package/dist/vue-i18n-BRhKDHdF.js +0 -2365
- package/dist/zod-Bg2FbC-D.js +0 -90
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
import { defineComponent as j, ref as L, computed as D, onMounted as H, resolveComponent as l, openBlock as c, createElementBlock as w, Fragment as x, createVNode as i, unref as a, withCtx as y, createElementVNode as n, renderList as N, createBlock as b, resolveDynamicComponent as q, toDisplayString as _, h as m } from "vue";
|
|
2
|
+
import { _ as z } from "./campaign-CpzFl8Vr.js";
|
|
3
|
+
import { useDialog as J, components as v } from "@feedmepos/ui-library";
|
|
4
|
+
import { u as O, a as Q, p as W } from "./loading-B3XGyQ8W.js";
|
|
5
|
+
import { u as X } from "./business-COGiTmLD.js";
|
|
6
|
+
import { u as Y } from "./campaign-BHZMjQi5.js";
|
|
7
|
+
import { g as A, b as B } from "./dto-ndeeV_nc.js";
|
|
8
|
+
import { _ as Z } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
|
|
9
|
+
import { _ as ee } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-D7ML8ePp.js";
|
|
10
|
+
import { u as te } from "./template-DMRMDZOW.js";
|
|
11
|
+
import { c as h } from "./index-Btlj28Vg.js";
|
|
12
|
+
const oe = { class: "flex items-center" }, ae = /* @__PURE__ */ n("span", { class: "fm-typo-en-title-md-600 fm-step-title line-clamp-2 mr-8" }, "Game", -1), ne = { class: "px-24 flex flex-col gap-y-16" }, se = { class: "flex items-center justify-between w-full" }, ie = { class: "flex gap-8 overflow-x-auto" }, le = { class: "space-y-8" }, re = { class: "flex w-full gap-4 items-center" }, ce = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, me = { class: "space-y-4" }, de = { class: "fm-typo-en-body-lg-600" }, ue = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, pe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, fe = /* @__PURE__ */ n("img", {
|
|
13
|
+
src: z,
|
|
14
|
+
class: "aspect-square w-[150px]"
|
|
15
|
+
}, null, -1), ge = /* @__PURE__ */ n("div", { class: "flex flex-col gap-16 text-center" }, [
|
|
16
|
+
/* @__PURE__ */ n("div", { class: "fm-typo-en-title-sm-800" }, "Create your game program"),
|
|
17
|
+
/* @__PURE__ */ n("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " The game feature adds a fun element to shopping, encouraging customers to engage more. ")
|
|
18
|
+
], -1), Ve = /* @__PURE__ */ j({
|
|
19
|
+
__name: "Game",
|
|
20
|
+
setup(ye) {
|
|
21
|
+
const $ = {
|
|
22
|
+
label: "Create campaign",
|
|
23
|
+
value: "create",
|
|
24
|
+
isPrimary: !0,
|
|
25
|
+
prependIcon: "add"
|
|
26
|
+
}, E = te("GAME", J()), u = X(), r = Y(), { global: G, minor: C } = O, s = L({
|
|
27
|
+
searchKey: "",
|
|
28
|
+
location: null
|
|
29
|
+
}), p = D(
|
|
30
|
+
() => r.campaigns.token.filter(
|
|
31
|
+
(e) => !s.value.location || !e.targetLocation || e.targetLocation.includes(s.value.location)
|
|
32
|
+
)
|
|
33
|
+
), K = [
|
|
34
|
+
{
|
|
35
|
+
header: "Program title",
|
|
36
|
+
accessorKey: "name",
|
|
37
|
+
// accessorFn: (v) => v.name,
|
|
38
|
+
cell(e) {
|
|
39
|
+
return m("div", { class: "flex items-center justify-between gap-4" }, [
|
|
40
|
+
m("div", { class: "flex items-center" }, [
|
|
41
|
+
m(
|
|
42
|
+
v.FmTooltip,
|
|
43
|
+
{
|
|
44
|
+
content: e.row.original._id,
|
|
45
|
+
onClick: (t) => {
|
|
46
|
+
t.stopPropagation(), Q(e.row.original._id);
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
[
|
|
50
|
+
m(v.FmIcon, {
|
|
51
|
+
name: "info",
|
|
52
|
+
outline: !0,
|
|
53
|
+
size: "sm"
|
|
54
|
+
})
|
|
55
|
+
]
|
|
56
|
+
)
|
|
57
|
+
]),
|
|
58
|
+
m("div", { class: "flex-1" }, e.row.original.name)
|
|
59
|
+
]);
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
header: "Status",
|
|
64
|
+
cell(e) {
|
|
65
|
+
return A(e.row.original);
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
header: "Summary",
|
|
70
|
+
accessorFn: (e) => B(e)
|
|
71
|
+
//v.effect,
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
header: "Token received",
|
|
75
|
+
accessorFn: (e) => {
|
|
76
|
+
var t;
|
|
77
|
+
return ((t = e == null ? void 0 : e.pf_collectible) == null ? void 0 : t.currentReceive) ?? 0;
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
header: "Actions",
|
|
82
|
+
cell(e) {
|
|
83
|
+
return m(v.FmButton, {
|
|
84
|
+
variant: "tertiary",
|
|
85
|
+
icon: "delete",
|
|
86
|
+
iconColor: "neutral-gray-400",
|
|
87
|
+
onClick: (t) => {
|
|
88
|
+
t.stopPropagation(), F(e.row.original);
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
], k = L();
|
|
94
|
+
async function F(e) {
|
|
95
|
+
await W.remove(`Are you sure you want to remove ${e.name}?`) && await C(
|
|
96
|
+
async () => {
|
|
97
|
+
await h.delete(e._id), await r.read("GAME");
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
message: `Removing ${e.name}`,
|
|
101
|
+
successMessage: `Removed ${e.name} successfully`
|
|
102
|
+
}
|
|
103
|
+
);
|
|
104
|
+
}
|
|
105
|
+
async function f(e) {
|
|
106
|
+
e ? await t() : E.open(async (d) => {
|
|
107
|
+
await t(d);
|
|
108
|
+
});
|
|
109
|
+
async function t(d) {
|
|
110
|
+
var g;
|
|
111
|
+
(g = k.value) == null || g.showSheet(
|
|
112
|
+
!0,
|
|
113
|
+
"GAME",
|
|
114
|
+
e ? await h.readById(e._id) : void 0,
|
|
115
|
+
d
|
|
116
|
+
);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
async function M(e) {
|
|
120
|
+
await C(
|
|
121
|
+
async () => {
|
|
122
|
+
e.campaign._id ? await h.update(e.campaign._id, e) : await h.create(e), await r.read("GAME");
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
message: `${e.campaign._id ? "Updating" : "Creating"} game program`,
|
|
126
|
+
successMessage: `Game program ${e.campaign._id ? "updated" : "created"} successfully`
|
|
127
|
+
}
|
|
128
|
+
);
|
|
129
|
+
}
|
|
130
|
+
return H(async () => {
|
|
131
|
+
await G(async () => {
|
|
132
|
+
await r.read("GAME"), await u.readPremium();
|
|
133
|
+
});
|
|
134
|
+
}), (e, t) => {
|
|
135
|
+
const d = l("FmPill"), g = l("FmPageHead"), S = l("FmSearch"), R = l("FmTable"), P = l("FmButton"), T = l("FmListItem"), I = l("FmList"), U = l("FmCard");
|
|
136
|
+
return c(), w(x, null, [
|
|
137
|
+
i(g, {
|
|
138
|
+
actions: a(p).length > 0 && a(u).isPremium ? [$] : [],
|
|
139
|
+
"onClick:action": t[0] || (t[0] = () => f())
|
|
140
|
+
}, {
|
|
141
|
+
title: y(() => [
|
|
142
|
+
n("div", oe, [
|
|
143
|
+
ae,
|
|
144
|
+
i(d, { variant: "premium" })
|
|
145
|
+
])
|
|
146
|
+
]),
|
|
147
|
+
_: 1
|
|
148
|
+
}, 8, ["actions"]),
|
|
149
|
+
n("div", ne, [
|
|
150
|
+
i(S, {
|
|
151
|
+
modelValue: a(s).searchKey,
|
|
152
|
+
"onUpdate:modelValue": t[1] || (t[1] = (o) => a(s).searchKey = o),
|
|
153
|
+
class: "hidden xs:block border-b-2 border-fm-color-neutral-gray-100",
|
|
154
|
+
placeholder: "search",
|
|
155
|
+
collapsible: ""
|
|
156
|
+
}, null, 8, ["modelValue"]),
|
|
157
|
+
a(r).campaigns.token && a(r).campaigns.token.length > 0 ? (c(), w(x, { key: 0 }, [
|
|
158
|
+
n("div", se, [
|
|
159
|
+
n("div", ie, [
|
|
160
|
+
i(Z, {
|
|
161
|
+
modelValue: a(s).location,
|
|
162
|
+
"onUpdate:modelValue": t[2] || (t[2] = (o) => a(s).location = o),
|
|
163
|
+
label: "Location: ",
|
|
164
|
+
"show-item-label": !0,
|
|
165
|
+
icon: "storefront",
|
|
166
|
+
placement: "bottom-start",
|
|
167
|
+
items: a(u).locationItems
|
|
168
|
+
}, null, 8, ["modelValue", "items"])
|
|
169
|
+
]),
|
|
170
|
+
i(S, {
|
|
171
|
+
modelValue: a(s).searchKey,
|
|
172
|
+
"onUpdate:modelValue": t[3] || (t[3] = (o) => a(s).searchKey = o),
|
|
173
|
+
class: "xs:hidden",
|
|
174
|
+
placeholder: "search",
|
|
175
|
+
collapsible: ""
|
|
176
|
+
}, null, 8, ["modelValue"])
|
|
177
|
+
]),
|
|
178
|
+
i(R, {
|
|
179
|
+
class: "xs:hidden",
|
|
180
|
+
"row-data": a(p),
|
|
181
|
+
"column-defs": K,
|
|
182
|
+
"search-value": a(s).searchKey,
|
|
183
|
+
"column-filter": [],
|
|
184
|
+
onRowClick: t[4] || (t[4] = (o) => f(o.original)),
|
|
185
|
+
"hide-footer": a(p).length < 10
|
|
186
|
+
}, null, 8, ["row-data", "search-value", "hide-footer"]),
|
|
187
|
+
i(I, { class: "hidden xs:flex flex-col mx-[-24px]" }, {
|
|
188
|
+
default: y(() => [
|
|
189
|
+
(c(!0), w(x, null, N(a(p).filter(
|
|
190
|
+
(o) => o.name.toLowerCase().includes(a(s).searchKey.toLowerCase())
|
|
191
|
+
), (o) => (c(), b(T, {
|
|
192
|
+
key: o._id.toString(),
|
|
193
|
+
onClick: (V) => f(o),
|
|
194
|
+
class: "py-12 px-16 flex items-center justify-between border-b border-fm-color-neutral-gray-100"
|
|
195
|
+
}, {
|
|
196
|
+
default: y(() => [
|
|
197
|
+
n("div", le, [
|
|
198
|
+
n("div", re, [
|
|
199
|
+
(c(), b(q(a(A)(o)))),
|
|
200
|
+
n("div", ce, _(o.currentReceive ?? 0) + " used ", 1)
|
|
201
|
+
]),
|
|
202
|
+
n("div", me, [
|
|
203
|
+
n("div", de, _(o.name), 1),
|
|
204
|
+
n("div", ue, _(a(B)(o)), 1)
|
|
205
|
+
]),
|
|
206
|
+
n("div", pe, " Token received: " + _(o.currentReceive ?? 0), 1)
|
|
207
|
+
]),
|
|
208
|
+
i(P, {
|
|
209
|
+
icon: "delete",
|
|
210
|
+
"icon-color": "neutral-gray-400",
|
|
211
|
+
variant: "tertiary",
|
|
212
|
+
onClick: (V) => (V.stopPropagation(), F(o))
|
|
213
|
+
}, null, 8, ["onClick"])
|
|
214
|
+
]),
|
|
215
|
+
_: 2
|
|
216
|
+
}, 1032, ["onClick"]))), 128))
|
|
217
|
+
]),
|
|
218
|
+
_: 1
|
|
219
|
+
})
|
|
220
|
+
], 64)) : (c(), b(U, {
|
|
221
|
+
key: 1,
|
|
222
|
+
variant: "outlined",
|
|
223
|
+
class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
|
|
224
|
+
}, {
|
|
225
|
+
default: y(() => [
|
|
226
|
+
fe,
|
|
227
|
+
ge,
|
|
228
|
+
i(P, {
|
|
229
|
+
variant: "primary",
|
|
230
|
+
label: "Create game program",
|
|
231
|
+
icon: "add",
|
|
232
|
+
disabled: !a(u).isPremium,
|
|
233
|
+
onClick: t[5] || (t[5] = (o) => f())
|
|
234
|
+
}, null, 8, ["disabled"])
|
|
235
|
+
]),
|
|
236
|
+
_: 1
|
|
237
|
+
})),
|
|
238
|
+
i(ee, {
|
|
239
|
+
ref_key: "sheetRef",
|
|
240
|
+
ref: k,
|
|
241
|
+
"onSubmit:modelValue": M
|
|
242
|
+
}, null, 512)
|
|
243
|
+
])
|
|
244
|
+
], 64);
|
|
245
|
+
};
|
|
246
|
+
}
|
|
247
|
+
});
|
|
248
|
+
export {
|
|
249
|
+
Ve as default
|
|
250
|
+
};
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import { openBlock as l, createElementBlock as o, createElementVNode as n, defineComponent as $, ref as h, onMounted as j, resolveComponent as m, renderSlot as v, toDisplayString as i, createCommentVNode as b, normalizeStyle as C, unref as s, Fragment as x, createVNode as w, withCtx as f, createTextVNode as g, normalizeClass as R, createBlock as F } from "vue";
|
|
2
|
+
import { _ as V } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
|
+
const z = {}, H = { class: "animate-pulse flex space-x-4 bg-gray-300 dark:bg-gray-700 items-center justify-center rounded w-full h-full" }, N = /* @__PURE__ */ n("svg", {
|
|
4
|
+
class: "dark:text-gray-600 h-10 text-gray-200 w-10",
|
|
5
|
+
"aria-hidden": "true",
|
|
6
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7
|
+
fill: "currentColor",
|
|
8
|
+
viewBox: "0 0 20 18"
|
|
9
|
+
}, [
|
|
10
|
+
/* @__PURE__ */ n("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" })
|
|
11
|
+
], -1), A = [
|
|
12
|
+
N
|
|
13
|
+
];
|
|
14
|
+
function D(e, p) {
|
|
15
|
+
return l(), o("div", H, A);
|
|
16
|
+
}
|
|
17
|
+
const I = /* @__PURE__ */ V(z, [["render", D]]), L = { class: "max-w-full max-h-[400px] space-y-4" }, T = { key: 0 }, U = { class: "text-fm-color-typo-secondary fm-typo-en-body-sm-400" }, Z = {
|
|
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
|
+
}, E = ["src"], M = ["src"], q = { class: "absolute right-0 top-0" }, G = /* @__PURE__ */ $({
|
|
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: p }) {
|
|
69
|
+
const r = e, a = h({
|
|
70
|
+
loading: !1,
|
|
71
|
+
imgsrc: r.thumbnail
|
|
72
|
+
}), u = h(!1), y = p;
|
|
73
|
+
async function d(t) {
|
|
74
|
+
return t == null ? (a.value.imgsrc = void 0, y("update:file", null)) : (u.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 j(() => {
|
|
77
|
+
var t;
|
|
78
|
+
r.file && d(r.file), (t = r.thumbnail) != null && t.includes("mp4") && (u.value = !0);
|
|
79
|
+
}), (t, c) => {
|
|
80
|
+
const k = m("FmDropField"), S = m("FmHelperText"), _ = m("FmButton");
|
|
81
|
+
return l(), o("div", L, [
|
|
82
|
+
v(t.$slots, "label", {}, () => [
|
|
83
|
+
e.label ? (l(), o("div", T, i(e.label), 1)) : b("", !0)
|
|
84
|
+
]),
|
|
85
|
+
n("div", {
|
|
86
|
+
style: C({ "aspect-ratio": e.aspectRatio }),
|
|
87
|
+
class: "flex flex-col max-h-full max-w-full"
|
|
88
|
+
}, [
|
|
89
|
+
s(a).loading ? (l(), F(I, { key: 1 })) : (l(), o(x, { key: 0 }, [
|
|
90
|
+
s(a).imgsrc ? (l(), o("div", Z, [
|
|
91
|
+
s(u) ? (l(), o("video", {
|
|
92
|
+
key: 1,
|
|
93
|
+
src: s(a).imgsrc || e.thumbnail,
|
|
94
|
+
class: "w-full h-full",
|
|
95
|
+
controls: ""
|
|
96
|
+
}, null, 8, M)) : (l(), o("img", {
|
|
97
|
+
key: 0,
|
|
98
|
+
class: R([`object-${e.imageFit}`, "w-full h-full"]),
|
|
99
|
+
src: s(a).imgsrc || e.thumbnail
|
|
100
|
+
}, null, 10, E)),
|
|
101
|
+
n("div", q, [
|
|
102
|
+
v(t.$slots, "delete-button"),
|
|
103
|
+
e.deleteButton ? (l(), F(_, {
|
|
104
|
+
key: 0,
|
|
105
|
+
class: "!text-neutral-50 !bg-neutral-700",
|
|
106
|
+
icon: "delete",
|
|
107
|
+
variant: "tertiary",
|
|
108
|
+
disabled: e.disabled,
|
|
109
|
+
onClick: c[1] || (c[1] = (B) => d(null))
|
|
110
|
+
}, null, 8, ["disabled"])) : b("", !0)
|
|
111
|
+
])
|
|
112
|
+
])) : (l(), o(x, { key: 0 }, [
|
|
113
|
+
w(k, {
|
|
114
|
+
class: "flex-1 hihiha",
|
|
115
|
+
accept: e.accept,
|
|
116
|
+
disabled: e.disabled,
|
|
117
|
+
onFileUpload: d,
|
|
118
|
+
onFileRejected: c[0] || (c[0] = (B) => d(null))
|
|
119
|
+
}, {
|
|
120
|
+
label: f(() => [
|
|
121
|
+
g(i(void 0))
|
|
122
|
+
]),
|
|
123
|
+
"helper-text": f(() => [
|
|
124
|
+
g(i(void 0))
|
|
125
|
+
]),
|
|
126
|
+
"accept-text": f(() => [
|
|
127
|
+
n("div", U, [
|
|
128
|
+
n("div", null, "(" + i(e.recommendedSize) + ")", 1),
|
|
129
|
+
g(" Accepts " + i(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
|
+
G as _
|
|
144
|
+
};
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { defineComponent, ref, watchEffect, computed, watch, openBlock, createElementBlock, normalizeStyle, onBeforeUnmount, resolveComponent, unref, createBlock } from "vue";
|
|
1
|
+
import { defineComponent, ref, watchEffect, computed, watch, openBlock, createElementBlock, normalizeStyle, onBeforeUnmount, resolveComponent, unref, createBlock, createVNode, normalizeClass, createCommentVNode, withDirectives, createElementVNode, vShow } from "vue";
|
|
2
2
|
import { c as commonjsGlobal, g as getDefaultExportFromCjs } from "./_commonjsHelpers-BkfeUUK-.js";
|
|
3
|
+
import { u as useAppStore } from "./app-wDQR6dpb.js";
|
|
4
|
+
import { useRoute } from "vue-router";
|
|
3
5
|
const v = "4.8.0", meta = {
|
|
4
6
|
g: "LottieFiles AE ",
|
|
5
7
|
a: "",
|
|
@@ -12618,18 +12620,18 @@ var lottie = { exports: {} };
|
|
|
12618
12620
|
function p(g, C, T) {
|
|
12619
12621
|
return !T && T !== 0 && (T = 1), g === 1 && C === 1 && T === 1 ? this : this._t(g, 0, 0, 0, 0, C, 0, 0, 0, 0, T, 0, 0, 0, 0, 1);
|
|
12620
12622
|
}
|
|
12621
|
-
function E(g, C, T, F, R, N, J, H, j, Y,
|
|
12622
|
-
return this.props[0] = g, this.props[1] = C, this.props[2] = T, this.props[3] = F, this.props[4] = R, this.props[5] = N, this.props[6] = J, this.props[7] = H, this.props[8] = j, this.props[9] = Y, this.props[10] =
|
|
12623
|
+
function E(g, C, T, F, R, N, J, H, j, Y, $, eA, U, K, Z, q) {
|
|
12624
|
+
return this.props[0] = g, this.props[1] = C, this.props[2] = T, this.props[3] = F, this.props[4] = R, this.props[5] = N, this.props[6] = J, this.props[7] = H, this.props[8] = j, this.props[9] = Y, this.props[10] = $, this.props[11] = eA, this.props[12] = U, this.props[13] = K, this.props[14] = Z, this.props[15] = q, this;
|
|
12623
12625
|
}
|
|
12624
12626
|
function y(g, C, T) {
|
|
12625
12627
|
return T = T || 0, g !== 0 || C !== 0 || T !== 0 ? this._t(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, g, C, T, 1) : this;
|
|
12626
12628
|
}
|
|
12627
|
-
function u(g, C, T, F, R, N, J, H, j, Y,
|
|
12629
|
+
function u(g, C, T, F, R, N, J, H, j, Y, $, eA, U, K, Z, q) {
|
|
12628
12630
|
var W = this.props;
|
|
12629
|
-
if (g === 1 && C === 0 && T === 0 && F === 0 && R === 0 && N === 1 && J === 0 && H === 0 && j === 0 && Y === 0 &&
|
|
12630
|
-
return W[12] = W[12] * g + W[15] *
|
|
12631
|
+
if (g === 1 && C === 0 && T === 0 && F === 0 && R === 0 && N === 1 && J === 0 && H === 0 && j === 0 && Y === 0 && $ === 1 && eA === 0)
|
|
12632
|
+
return W[12] = W[12] * g + W[15] * U, W[13] = W[13] * N + W[15] * K, W[14] = W[14] * $ + W[15] * Z, W[15] *= q, this._identityCalculated = !1, this;
|
|
12631
12633
|
var iA = W[0], oA = W[1], sA = W[2], rA = W[3], aA = W[4], nA = W[5], X = W[6], hA = W[7], lA = W[8], AA = W[9], fA = W[10], tA = W[11], pA = W[12], VA = W[13], cA = W[14], uA = W[15];
|
|
12632
|
-
return W[0] = iA * g + oA * R + sA * j + rA *
|
|
12634
|
+
return W[0] = iA * g + oA * R + sA * j + rA * U, W[1] = iA * C + oA * N + sA * Y + rA * K, W[2] = iA * T + oA * J + sA * $ + rA * Z, W[3] = iA * F + oA * H + sA * eA + rA * q, W[4] = aA * g + nA * R + X * j + hA * U, W[5] = aA * C + nA * N + X * Y + hA * K, W[6] = aA * T + nA * J + X * $ + hA * Z, W[7] = aA * F + nA * H + X * eA + hA * q, W[8] = lA * g + AA * R + fA * j + tA * U, W[9] = lA * C + AA * N + fA * Y + tA * K, W[10] = lA * T + AA * J + fA * $ + tA * Z, W[11] = lA * F + AA * H + fA * eA + tA * q, W[12] = pA * g + VA * R + cA * j + uA * U, W[13] = pA * C + VA * N + cA * Y + uA * K, W[14] = pA * T + VA * J + cA * $ + uA * Z, W[15] = pA * F + VA * H + cA * eA + uA * q, this._identityCalculated = !1, this;
|
|
12633
12635
|
}
|
|
12634
12636
|
function P(g) {
|
|
12635
12637
|
var C = g.props;
|
|
@@ -13594,8 +13596,8 @@ var lottie = { exports: {} };
|
|
|
13594
13596
|
return;
|
|
13595
13597
|
}
|
|
13596
13598
|
if (!document.body) {
|
|
13597
|
-
this.isLoaded = !0, b.list.forEach(function(
|
|
13598
|
-
|
|
13599
|
+
this.isLoaded = !0, b.list.forEach(function($) {
|
|
13600
|
+
$.helper = u($), $.cache = {};
|
|
13599
13601
|
}), this.fonts = b.list;
|
|
13600
13602
|
return;
|
|
13601
13603
|
}
|
|
@@ -15123,7 +15125,7 @@ var lottie = { exports: {} };
|
|
|
15123
15125
|
x = p.length, n = 0, f = 0;
|
|
15124
15126
|
var O = A.finalSize * 1.2 * 0.714, L = !0, b, _, g, C, T;
|
|
15125
15127
|
C = r.length;
|
|
15126
|
-
var F, R = -1, N, J, H, j = y, Y = l,
|
|
15128
|
+
var F, R = -1, N, J, H, j = y, Y = l, $ = c, eA = -1, U, K, Z, q, W, iA, oA, sA, rA = "", aA = this.defaultPropsArray, nA;
|
|
15127
15129
|
if (A.j === 2 || A.j === 1) {
|
|
15128
15130
|
var X = 0, hA = 0, lA = A.j === 2 ? -0.5 : -1, AA = 0, fA = !0;
|
|
15129
15131
|
for (d = 0; d < x; d += 1)
|
|
@@ -15140,8 +15142,8 @@ var lottie = { exports: {} };
|
|
|
15140
15142
|
p[AA].animatorJustifyOffset = X, AA += 1;
|
|
15141
15143
|
}
|
|
15142
15144
|
for (d = 0; d < x; d += 1) {
|
|
15143
|
-
if (s.reset(),
|
|
15144
|
-
n = 0, f += A.yOffset, f += L ? 1 : 0, y = j, L = !1, this._hasMaskedPath && (l = Y, c =
|
|
15145
|
+
if (s.reset(), U = 1, p[d].n)
|
|
15146
|
+
n = 0, f += A.yOffset, f += L ? 1 : 0, y = j, L = !1, this._hasMaskedPath && (l = Y, c = $, S = k[l].points, m = S[c - 1], u = S[c], I = u.partialLength, P = 0), rA = "", sA = "", iA = "", nA = "", aA = this.defaultPropsArray;
|
|
15145
15147
|
else {
|
|
15146
15148
|
if (this._hasMaskedPath) {
|
|
15147
15149
|
if (eA !== p[d].line) {
|
|
@@ -15171,7 +15173,7 @@ var lottie = { exports: {} };
|
|
|
15171
15173
|
for (g = 0; g < C; g += 1)
|
|
15172
15174
|
b = r[g].a, b.s.propType && (_ = r[g].s, F = _.getMult(p[d].anIndexes[g], i.a[g].s.totalChars), F.length ? s.scale(1 + (b.s.v[0] - 1) * F[0], 1 + (b.s.v[1] - 1) * F[1], 1) : s.scale(1 + (b.s.v[0] - 1) * F, 1 + (b.s.v[1] - 1) * F, 1));
|
|
15173
15175
|
for (g = 0; g < C; g += 1) {
|
|
15174
|
-
if (b = r[g].a, _ = r[g].s, F = _.getMult(p[d].anIndexes[g], i.a[g].s.totalChars), b.sk.propType && (F.length ? s.skewFromAxis(-b.sk.v * F[0], b.sa.v * F[1]) : s.skewFromAxis(-b.sk.v * F, b.sa.v * F)), b.r.propType && (F.length ? s.rotateZ(-b.r.v * F[2]) : s.rotateZ(-b.r.v * F)), b.ry.propType && (F.length ? s.rotateY(b.ry.v * F[1]) : s.rotateY(b.ry.v * F)), b.rx.propType && (F.length ? s.rotateX(b.rx.v * F[0]) : s.rotateX(b.rx.v * F)), b.o.propType && (F.length ?
|
|
15176
|
+
if (b = r[g].a, _ = r[g].s, F = _.getMult(p[d].anIndexes[g], i.a[g].s.totalChars), b.sk.propType && (F.length ? s.skewFromAxis(-b.sk.v * F[0], b.sa.v * F[1]) : s.skewFromAxis(-b.sk.v * F, b.sa.v * F)), b.r.propType && (F.length ? s.rotateZ(-b.r.v * F[2]) : s.rotateZ(-b.r.v * F)), b.ry.propType && (F.length ? s.rotateY(b.ry.v * F[1]) : s.rotateY(b.ry.v * F)), b.rx.propType && (F.length ? s.rotateX(b.rx.v * F[0]) : s.rotateX(b.rx.v * F)), b.o.propType && (F.length ? U += (b.o.v * F[0] - U) * F[0] : U += (b.o.v * F - U) * F), A.strokeWidthAnim && b.sw.propType && (F.length ? Z += b.sw.v * F[0] : Z += b.sw.v * F), A.strokeColorAnim && b.sc.propType)
|
|
15175
15177
|
for (W = 0; W < 3; W += 1)
|
|
15176
15178
|
F.length ? K[W] += (b.sc.v[W] - K[W]) * F[0] : K[W] += (b.sc.v[W] - K[W]) * F;
|
|
15177
15179
|
if (A.fillColorAnim && A.fc) {
|
|
@@ -15201,7 +15203,7 @@ var lottie = { exports: {} };
|
|
|
15201
15203
|
}
|
|
15202
15204
|
s.translate(0, -A.ls), s.translate(N, 0, 0), s.translate(e[0] * p[d].an * 5e-3, e[1] * O * 0.01, 0), n += p[d].l + A.tr * 1e-3 * A.finalSize;
|
|
15203
15205
|
}
|
|
15204
|
-
a === "html" ? rA = s.toCSS() : a === "svg" ? rA = s.to2dCSS() : aA = [s.props[0], s.props[1], s.props[2], s.props[3], s.props[4], s.props[5], s.props[6], s.props[7], s.props[8], s.props[9], s.props[10], s.props[11], s.props[12], s.props[13], s.props[14], s.props[15]], nA =
|
|
15206
|
+
a === "html" ? rA = s.toCSS() : a === "svg" ? rA = s.to2dCSS() : aA = [s.props[0], s.props[1], s.props[2], s.props[3], s.props[4], s.props[5], s.props[6], s.props[7], s.props[8], s.props[9], s.props[10], s.props[11], s.props[12], s.props[13], s.props[14], s.props[15]], nA = U;
|
|
15205
15207
|
}
|
|
15206
15208
|
o <= d ? (T = new LetterProps(nA, iA, oA, sA, rA, aA), this.renderedLetters.push(T), o += 1, this.lettersChangedFlag = !0) : (T = this.renderedLetters[d], this.lettersChangedFlag = T.update(nA, iA, oA, sA, rA, aA) || this.lettersChangedFlag);
|
|
15207
15209
|
}
|
|
@@ -18482,7 +18484,7 @@ var _export_sfc = (A, t) => {
|
|
|
18482
18484
|
e[r] = i;
|
|
18483
18485
|
return e;
|
|
18484
18486
|
};
|
|
18485
|
-
const _sfc_main$
|
|
18487
|
+
const _sfc_main$3 = defineComponent({
|
|
18486
18488
|
props: {
|
|
18487
18489
|
animationData: {
|
|
18488
18490
|
type: Object,
|
|
@@ -18686,8 +18688,8 @@ function _sfc_render(A, t, e, r, i, s) {
|
|
|
18686
18688
|
onMouseleave: t[1] || (t[1] = (...a) => A.hoverEnded && A.hoverEnded(...a))
|
|
18687
18689
|
}, null, 36);
|
|
18688
18690
|
}
|
|
18689
|
-
var Vue3Lottie = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
18690
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
18691
|
+
var Vue3Lottie = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render]]);
|
|
18692
|
+
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
18691
18693
|
__name: "LottieAnimation",
|
|
18692
18694
|
props: {
|
|
18693
18695
|
link: {
|
|
@@ -18730,8 +18732,40 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
18730
18732
|
}, null, 8, ["animation-link", "animation-data", "height", "width"]));
|
|
18731
18733
|
};
|
|
18732
18734
|
}
|
|
18735
|
+
}), _hoisted_1 = { class: "bg-white w-full flex min-h-[calc(100svh-56px)] items-center" }, _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
18736
|
+
__name: "Splash",
|
|
18737
|
+
setup(A) {
|
|
18738
|
+
return (t, e) => (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
18739
|
+
createVNode(_sfc_main$2, {
|
|
18740
|
+
class: "flex-1",
|
|
18741
|
+
json: unref(SplashJson),
|
|
18742
|
+
width: 100,
|
|
18743
|
+
height: 100
|
|
18744
|
+
}, null, 8, ["json"])
|
|
18745
|
+
]));
|
|
18746
|
+
}
|
|
18747
|
+
}), _sfc_main = /* @__PURE__ */ defineComponent({
|
|
18748
|
+
__name: "MainLayout",
|
|
18749
|
+
setup(A) {
|
|
18750
|
+
const t = useRoute(), e = ref(t.query.showHeader !== "false");
|
|
18751
|
+
return (r, i) => {
|
|
18752
|
+
const s = resolveComponent("RouterView");
|
|
18753
|
+
return openBlock(), createElementBlock("div", {
|
|
18754
|
+
class: normalizeClass([
|
|
18755
|
+
"bg-fm-color-neutral-white w-full xs:overflow-y-scroll",
|
|
18756
|
+
unref(e) ? "min-h-[calc(100svh-56px)] xs:h-[calc(100svh-56px)]" : "min-h-screen"
|
|
18757
|
+
])
|
|
18758
|
+
}, [
|
|
18759
|
+
unref(useAppStore)().isGlobalLoading == !0 ? (openBlock(), createBlock(_sfc_main$1, { key: 0 })) : createCommentVNode("", !0),
|
|
18760
|
+
withDirectives(createElementVNode("div", null, [
|
|
18761
|
+
createVNode(s)
|
|
18762
|
+
], 512), [
|
|
18763
|
+
[vShow, unref(useAppStore)().isGlobalLoading == !1]
|
|
18764
|
+
])
|
|
18765
|
+
], 2);
|
|
18766
|
+
};
|
|
18767
|
+
}
|
|
18733
18768
|
});
|
|
18734
18769
|
export {
|
|
18735
|
-
|
|
18736
|
-
_sfc_main as _
|
|
18770
|
+
_sfc_main as default
|
|
18737
18771
|
};
|