@feedmepos/mf-connect 0.0.39-prod → 0.1.0-beta.2
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-DSD9TsKr.js +622 -0
- package/dist/{App-X3fNEBF3.js → App-D8a5eW51.js} +250 -249
- package/dist/Broadcast-C8jgMe6g.js +223 -0
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CRYS_tzZ.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-pG8WvV4I.js} +20 -20
- package/dist/Card-C1K7ULPo.js +825 -0
- package/dist/Collections-lMrdPUuM.js +453 -0
- package/dist/Credit-CJfU5tP4.js +220 -0
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-DoZyevfa.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-BYoaa_-x.js} +1042 -1011
- package/dist/EffectSheet.vue_vue_type_style_index_0_lang-CzEtOmp0.js +345 -0
- package/dist/Experience-Bp2ki8gU.js +221 -0
- package/dist/Game-BpTf6ebE.js +255 -0
- package/dist/ImageInput.vue_vue_type_script_setup_true_lang-rWUkV9gn.js +144 -0
- package/dist/{MainLayout-DpZC6o3R.js → LottieAnimation.vue_vue_type_script_setup_true_lang-CyGJxUol.js} +19 -53
- package/dist/MainLayout-B1aJoR95.js +41 -0
- package/dist/Marketing-BiKE2gxA.js +316 -0
- package/dist/Member-BSWyy32a.js +69 -0
- package/dist/MemberList-CHlGREyR.js +1733 -0
- package/dist/MemberOverview-wL_ailso.js +58 -0
- package/dist/{MemberTransactions-DueaXBCy.js → MemberTransactions-BzHiXCnp.js} +1 -1
- package/dist/MessageInput.vue_vue_type_script_setup_true_lang-e-zWg08J.js +432 -0
- package/dist/Mission-8IGT3T2C.js +261 -0
- package/dist/Point-CbbJ6ohd.js +222 -0
- package/dist/Promotion-BYXCJa_S.js +247 -0
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-_RX1J0Br.js → RuleGroup.vue_vue_type_script_setup_true_lang-Bruh-umZ.js} +557 -557
- package/dist/Segment-DXDNM0yd.js +437 -0
- package/dist/Setting-CLpvvZTv.js +1901 -0
- package/dist/Store-C6-P6bwc.js +1511 -0
- package/dist/StoreRewards-CUM2irXK.js +401 -0
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-CLFiuO5k.js → StoreTransactions.vue_vue_type_script_setup_true_lang-JaRdmqif.js} +10 -10
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-CoMQBL4P.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-DEb4OBcX.js} +1 -1
- package/dist/{Tier-CftEoP_R.js → Tier-DZTDxWBo.js} +481 -453
- package/dist/{Title-BsavXbYh.js → Title-C2Dr5ceK.js} +314 -295
- package/dist/Transaction-BL4mS29d.js +39 -0
- package/dist/Voucher-Cx0r2-df.js +490 -0
- package/dist/ZodTextField.vue_vue_type_script_setup_true_lang-DWuAODUF.js +56 -0
- package/dist/{app-BNmAx3zq.js → app-B_xuZ5HB.js} +1 -1
- package/dist/app-wE5HTF_Y.js +5762 -0
- package/dist/app.js +5 -3
- package/dist/{business-DGL4Ayx0.js → business-DSv8zM8C.js} +1 -1
- package/dist/{campaign-D94sS1kM.js → campaign-7y5qquHZ.js} +5 -3
- package/dist/{collection.fn-BHJ1ISqO.js → collection.fn-BxVZQAx0.js} +2 -2
- package/dist/dto-Ew1QwLci.js +2778 -0
- package/dist/{effect-CFRICzlM.js → effect-BzPh8fRI.js} +9 -9
- package/dist/{export-w2o9NYcy.js → export-C9tDplkA.js} +3 -3
- package/dist/{helper-CUDWQ8vq.js → helper-Sz7oQ0F4.js} +1 -1
- package/dist/{index-BGuLhEym.js → index-BQm0C3Jm.js} +3 -3
- package/dist/{index-BjwyxNSp.js → index-C-SOz7jt.js} +1 -1
- package/dist/{index-BcWJcD9f.js → index-C0lpADCo.js} +1 -1
- package/dist/{index-DIq2KVis.js → index-C3_4GUiI.js} +1 -1
- package/dist/{index-BPEV5Tzg.js → index-D-2nFLsg.js} +59 -47
- package/dist/{index-CFMBSL24.js → index-DBMaUGYI.js} +2 -2
- package/dist/{index-CpwFQFTV.js → index-DH_1nOJ_.js} +3 -3
- package/dist/index-Dy4pmQpt.js +29193 -0
- package/dist/{index-BQ6isIeo.js → index-_3qBsogG.js} +1 -1
- package/dist/index-gIRszcHf.js +3 -0
- package/dist/{index-VjUw31dN.js → index-tv4t0Pnh.js} +1 -1
- package/dist/{index-tZ1aqhks.js → index-z0IfdrZk.js} +319 -281
- package/dist/{index.esm2017-zciuPty-.js → index.esm2017-BnKJDxUo.js} +55 -55
- package/dist/{loading-GuXe5bYG.js → loading-Ds-yFYhc.js} +469 -460
- package/dist/{membership-BHWJVI3e.js → membership-DaiVw9qF.js} +3 -3
- package/dist/money-BHtBdZoz.js +15 -0
- package/dist/number-CZhcB8ef.js +12 -0
- package/dist/{rule-MgNa_8FF.js → rule-Cd2M6Ri2.js} +2 -2
- package/dist/{rule-builder-BsBCWzq_.js → rule-builder-B6og27Q1.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{template-D6k3lusq.js → template-DouRWBpv.js} +63 -63
- package/dist/{usePagination-JoYaROkV.js → usePagination-BeF5K3M7.js} +85 -85
- package/dist/vue-i18n-BTlOChXs.js +2365 -0
- package/dist/{xlsx-ClrA4KOh.js → xlsx-SahfXQ70.js} +517 -517
- package/dist/zod-Bg2FbC-D.js +90 -0
- package/package.json +7 -4
- package/dist/Analytic-DMFueUju.js +0 -620
- package/dist/Broadcast-YIfWIXeA.js +0 -216
- package/dist/Card-BIxlgQm7.js +0 -824
- package/dist/Collections-M6DaHM2W.js +0 -441
- package/dist/Credit-BtRy-xoY.js +0 -214
- package/dist/EffectSheet.vue_vue_type_style_index_0_lang-D5DNTBSQ.js +0 -344
- package/dist/Experience-DGm1lnqj.js +0 -211
- package/dist/Game-B8-lG7qq.js +0 -250
- package/dist/ImageInput.vue_vue_type_script_setup_true_lang-ByhTB9Ie.js +0 -144
- package/dist/Marketing-DtG3AIWr.js +0 -309
- package/dist/Member-K443-9Vy.js +0 -92
- package/dist/MemberList-CYXHXFTL.js +0 -1735
- package/dist/MemberOverview-C2n9oJZh.js +0 -58
- package/dist/MessageInput.vue_vue_type_script_setup_true_lang-Bk2HLVmt.js +0 -203
- package/dist/Mission-CN5umXXA.js +0 -248
- package/dist/Point-XAm6H2p_.js +0 -220
- package/dist/Promotion-DsrA4KiE.js +0 -244
- package/dist/Segment-CZGGHoAu.js +0 -435
- package/dist/Setting-BjfxLKyp.js +0 -1870
- package/dist/Store-D_B-vhh3.js +0 -1513
- package/dist/StoreRewards-BjHffUKj.js +0 -429
- package/dist/Transaction-CdxzoKDG.js +0 -36
- package/dist/Voucher-B_9Nv1Mr.js +0 -485
- package/dist/ZodTextField.vue_vue_type_script_setup_true_lang-3LlSDiq0.js +0 -140
- package/dist/app--1Ks5Hms.js +0 -2974
- package/dist/dto-X0Eeujxx.js +0 -1151
- package/dist/index-BPNG8N-w.js +0 -11
- package/dist/index-DWM9MWGj.js +0 -28058
- package/dist/money-CrttVpCp.js +0 -15
- package/dist/number-CIndGU4O.js +0 -12
|
@@ -0,0 +1,255 @@
|
|
|
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-Ds-yFYhc.js";
|
|
5
|
+
import { u as Y } from "./business-DSv8zM8C.js";
|
|
6
|
+
import { u as Z } from "./campaign-7y5qquHZ.js";
|
|
7
|
+
import { g as B, b as $ } from "./dto-Ew1QwLci.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-BYoaa_-x.js";
|
|
10
|
+
import { u as oe } from "./template-DouRWBpv.js";
|
|
11
|
+
import { u as ae } from "./vue-i18n-BTlOChXs.js";
|
|
12
|
+
import { c as w } from "./index-C-SOz7jt.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
|
+
};
|
|
@@ -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))
|
|
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,7 +1,5 @@
|
|
|
1
|
-
import { defineComponent, ref, watchEffect, computed, watch, openBlock, createElementBlock, normalizeStyle, onBeforeUnmount, resolveComponent, unref, createBlock
|
|
1
|
+
import { defineComponent, ref, watchEffect, computed, watch, openBlock, createElementBlock, normalizeStyle, onBeforeUnmount, resolveComponent, unref, createBlock } 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";
|
|
5
3
|
const v = "4.8.0", meta = {
|
|
6
4
|
g: "LottieFiles AE ",
|
|
7
5
|
a: "",
|
|
@@ -12620,18 +12618,18 @@ var lottie = { exports: {} };
|
|
|
12620
12618
|
function p(g, C, T) {
|
|
12621
12619
|
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);
|
|
12622
12620
|
}
|
|
12623
|
-
function E(g, C, T, F, R, N, J, H, j, Y,
|
|
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] =
|
|
12621
|
+
function E(g, C, T, F, R, N, J, H, j, Y, U, eA, $, K, Z, q) {
|
|
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] = U, this.props[11] = eA, this.props[12] = $, this.props[13] = K, this.props[14] = Z, this.props[15] = q, this;
|
|
12625
12623
|
}
|
|
12626
12624
|
function y(g, C, T) {
|
|
12627
12625
|
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;
|
|
12628
12626
|
}
|
|
12629
|
-
function u(g, C, T, F, R, N, J, H, j, Y,
|
|
12627
|
+
function u(g, C, T, F, R, N, J, H, j, Y, U, eA, $, K, Z, q) {
|
|
12630
12628
|
var W = this.props;
|
|
12631
|
-
if (g === 1 && C === 0 && T === 0 && F === 0 && R === 0 && N === 1 && J === 0 && H === 0 && j === 0 && Y === 0 &&
|
|
12632
|
-
return W[12] = W[12] * g + W[15] *
|
|
12629
|
+
if (g === 1 && C === 0 && T === 0 && F === 0 && R === 0 && N === 1 && J === 0 && H === 0 && j === 0 && Y === 0 && U === 1 && eA === 0)
|
|
12630
|
+
return W[12] = W[12] * g + W[15] * $, W[13] = W[13] * N + W[15] * K, W[14] = W[14] * U + W[15] * Z, W[15] *= q, this._identityCalculated = !1, this;
|
|
12633
12631
|
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];
|
|
12634
|
-
return W[0] = iA * g + oA * R + sA * j + rA *
|
|
12632
|
+
return W[0] = iA * g + oA * R + sA * j + rA * $, W[1] = iA * C + oA * N + sA * Y + rA * K, W[2] = iA * T + oA * J + sA * U + rA * Z, W[3] = iA * F + oA * H + sA * eA + rA * q, W[4] = aA * g + nA * R + X * j + hA * $, W[5] = aA * C + nA * N + X * Y + hA * K, W[6] = aA * T + nA * J + X * U + hA * Z, W[7] = aA * F + nA * H + X * eA + hA * q, W[8] = lA * g + AA * R + fA * j + tA * $, W[9] = lA * C + AA * N + fA * Y + tA * K, W[10] = lA * T + AA * J + fA * U + tA * Z, W[11] = lA * F + AA * H + fA * eA + tA * q, W[12] = pA * g + VA * R + cA * j + uA * $, W[13] = pA * C + VA * N + cA * Y + uA * K, W[14] = pA * T + VA * J + cA * U + uA * Z, W[15] = pA * F + VA * H + cA * eA + uA * q, this._identityCalculated = !1, this;
|
|
12635
12633
|
}
|
|
12636
12634
|
function P(g) {
|
|
12637
12635
|
var C = g.props;
|
|
@@ -13596,8 +13594,8 @@ var lottie = { exports: {} };
|
|
|
13596
13594
|
return;
|
|
13597
13595
|
}
|
|
13598
13596
|
if (!document.body) {
|
|
13599
|
-
this.isLoaded = !0, b.list.forEach(function(
|
|
13600
|
-
|
|
13597
|
+
this.isLoaded = !0, b.list.forEach(function(U) {
|
|
13598
|
+
U.helper = u(U), U.cache = {};
|
|
13601
13599
|
}), this.fonts = b.list;
|
|
13602
13600
|
return;
|
|
13603
13601
|
}
|
|
@@ -15125,7 +15123,7 @@ var lottie = { exports: {} };
|
|
|
15125
15123
|
x = p.length, n = 0, f = 0;
|
|
15126
15124
|
var O = A.finalSize * 1.2 * 0.714, L = !0, b, _, g, C, T;
|
|
15127
15125
|
C = r.length;
|
|
15128
|
-
var F, R = -1, N, J, H, j = y, Y = l,
|
|
15126
|
+
var F, R = -1, N, J, H, j = y, Y = l, U = c, eA = -1, $, K, Z, q, W, iA, oA, sA, rA = "", aA = this.defaultPropsArray, nA;
|
|
15129
15127
|
if (A.j === 2 || A.j === 1) {
|
|
15130
15128
|
var X = 0, hA = 0, lA = A.j === 2 ? -0.5 : -1, AA = 0, fA = !0;
|
|
15131
15129
|
for (d = 0; d < x; d += 1)
|
|
@@ -15142,8 +15140,8 @@ var lottie = { exports: {} };
|
|
|
15142
15140
|
p[AA].animatorJustifyOffset = X, AA += 1;
|
|
15143
15141
|
}
|
|
15144
15142
|
for (d = 0; d < x; d += 1) {
|
|
15145
|
-
if (s.reset(),
|
|
15146
|
-
n = 0, f += A.yOffset, f += L ? 1 : 0, y = j, L = !1, this._hasMaskedPath && (l = Y, c =
|
|
15143
|
+
if (s.reset(), $ = 1, p[d].n)
|
|
15144
|
+
n = 0, f += A.yOffset, f += L ? 1 : 0, y = j, L = !1, this._hasMaskedPath && (l = Y, c = U, S = k[l].points, m = S[c - 1], u = S[c], I = u.partialLength, P = 0), rA = "", sA = "", iA = "", nA = "", aA = this.defaultPropsArray;
|
|
15147
15145
|
else {
|
|
15148
15146
|
if (this._hasMaskedPath) {
|
|
15149
15147
|
if (eA !== p[d].line) {
|
|
@@ -15173,7 +15171,7 @@ var lottie = { exports: {} };
|
|
|
15173
15171
|
for (g = 0; g < C; g += 1)
|
|
15174
15172
|
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));
|
|
15175
15173
|
for (g = 0; g < C; g += 1) {
|
|
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 ?
|
|
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 ? $ += (b.o.v * F[0] - $) * F[0] : $ += (b.o.v * F - $) * F), A.strokeWidthAnim && b.sw.propType && (F.length ? Z += b.sw.v * F[0] : Z += b.sw.v * F), A.strokeColorAnim && b.sc.propType)
|
|
15177
15175
|
for (W = 0; W < 3; W += 1)
|
|
15178
15176
|
F.length ? K[W] += (b.sc.v[W] - K[W]) * F[0] : K[W] += (b.sc.v[W] - K[W]) * F;
|
|
15179
15177
|
if (A.fillColorAnim && A.fc) {
|
|
@@ -15203,7 +15201,7 @@ var lottie = { exports: {} };
|
|
|
15203
15201
|
}
|
|
15204
15202
|
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;
|
|
15205
15203
|
}
|
|
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 =
|
|
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 = $;
|
|
15207
15205
|
}
|
|
15208
15206
|
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);
|
|
15209
15207
|
}
|
|
@@ -18484,7 +18482,7 @@ var _export_sfc = (A, t) => {
|
|
|
18484
18482
|
e[r] = i;
|
|
18485
18483
|
return e;
|
|
18486
18484
|
};
|
|
18487
|
-
const _sfc_main$
|
|
18485
|
+
const _sfc_main$1 = defineComponent({
|
|
18488
18486
|
props: {
|
|
18489
18487
|
animationData: {
|
|
18490
18488
|
type: Object,
|
|
@@ -18688,8 +18686,8 @@ function _sfc_render(A, t, e, r, i, s) {
|
|
|
18688
18686
|
onMouseleave: t[1] || (t[1] = (...a) => A.hoverEnded && A.hoverEnded(...a))
|
|
18689
18687
|
}, null, 36);
|
|
18690
18688
|
}
|
|
18691
|
-
var Vue3Lottie = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
18692
|
-
const _sfc_main
|
|
18689
|
+
var Vue3Lottie = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render]]);
|
|
18690
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
18693
18691
|
__name: "LottieAnimation",
|
|
18694
18692
|
props: {
|
|
18695
18693
|
link: {
|
|
@@ -18732,40 +18730,8 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
18732
18730
|
}, null, 8, ["animation-link", "animation-data", "height", "width"]));
|
|
18733
18731
|
};
|
|
18734
18732
|
}
|
|
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
|
-
}
|
|
18768
18733
|
});
|
|
18769
18734
|
export {
|
|
18770
|
-
|
|
18735
|
+
SplashJson as S,
|
|
18736
|
+
_sfc_main as _
|
|
18771
18737
|
};
|
|
@@ -0,0 +1,41 @@
|
|
|
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
|
+
};
|