@feedmepos/mf-connect 0.1.37-prod → 0.1.38-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-BjSfI2Ff.js +761 -0
- package/dist/{App-Bpo0XZSs.js → App-D11A2JY1.js} +364 -352
- package/dist/AuditLogs-DWCFYoRg.js +1887 -0
- package/dist/{Bin-ohZ2CZZR.js → Bin-9wV4Ah3M.js} +8 -8
- package/dist/{Broadcast-D5x0_-zC.js → Broadcast-I3BtSk8V.js} +40 -40
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CYb38NXA.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-XJqTXbKr.js} +18 -18
- package/dist/{Card-BM-Lrm5y.js → Card-CqALG5RM.js} +159 -159
- package/dist/{Collections-Cr4aoJer.js → Collections-rg3SzoUb.js} +103 -91
- package/dist/{Credit-DzDVFv4H.js → Credit-BNn1sYZv.js} +74 -74
- package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang-BUzUIIUW.js +58 -0
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-Bs8o9n1V.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-PJ8q72XH.js} +491 -488
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-koqrPPqM.js → EffectSheet.vue_vue_type_style_index_0_lang-Sww7KNle.js} +91 -89
- package/dist/{Experience-CjaDdbvZ.js → Experience-D_Qm8SUj.js} +41 -41
- package/dist/{FilterChip.vue_vue_type_script_setup_true_lang-BrPLkFX8.js → FilterChip.vue_vue_type_script_setup_true_lang-d8rh38tD.js} +2 -6
- package/dist/{Game-BuiTygow.js → Game-CKXgXm6Q.js} +31 -31
- package/dist/ImageInput.vue_vue_type_script_setup_true_lang-rWUkV9gn.js +144 -0
- package/dist/{Index-CQGzUU-w.js → Index-D4DGfUHd.js} +10 -10
- package/dist/Marketing-Dn9A1vgH.js +20073 -0
- package/dist/Member-B55vWHDd.js +279 -0
- package/dist/MemberList-BWTG9Ohy.js +1606 -0
- package/dist/MemberOverview-wL_ailso.js +58 -0
- package/dist/{MemberTransactions-DzG1fY0c.js → MemberTransactions-CP5EI-W0.js} +1 -1
- package/dist/MessageInput.vue_vue_type_script_setup_true_lang-D--_An-f.js +60279 -0
- package/dist/{Mission-BtypT2uF.js → Mission-CFvhROuB.js} +21 -21
- package/dist/{Overview-Be7bUtRO.js → Overview-4273yNwL.js} +335 -335
- package/dist/{Point-Bw4lnLqp.js → Point-B_-_C919.js} +41 -41
- package/dist/Promotion-D2S3COxk.js +289 -0
- package/dist/{Queue-CpPEVgn8.js → Queue-BmS1Oi-C.js} +52 -52
- package/dist/{Record-DQq4P69i.js → Record-DRBl0M8g.js} +9 -9
- package/dist/{Reward-DJH0eM8u.js → Reward-8056NmfK.js} +173 -173
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-_kw_PR0h.js → RewardGroup.vue_vue_type_script_setup_true_lang-CJ_WC2gV.js} +11 -11
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-CRGep1RK.js → RuleGroup.vue_vue_type_script_setup_true_lang-DqNQl_nz.js} +635 -548
- package/dist/Segment-Bzq-pyhc.js +882 -0
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-Dx6Ew9Z_.js → SelectItems.vue_vue_type_script_setup_true_lang-4nNkkklE.js} +2 -2
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-B60_8Toi.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-Dnf2oxOG.js} +11 -11
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-BCaJ3xKT.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-BLYP-5U9.js} +3 -3
- package/dist/{Setting-GRIUo7vg.js → Setting-BrJfYoru.js} +432 -432
- package/dist/{Store-H0UDQpln.js → Store-Bpl_4yZW.js} +211 -211
- package/dist/StoreRewards-Cu7n7Pjz.js +423 -0
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-T3Wo2maC.js +1029 -0
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-D-jL1oGS.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-QucRaI08.js} +1 -1
- package/dist/{Tier-CJufQcIz.js → Tier-_LnXg3n6.js} +106 -106
- package/dist/{Title-BBMgGUld.js → Title-B7AGStvx.js} +133 -131
- package/dist/{Transaction-DsucPnfp.js → Transaction-Chxv6V7u.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-CwOcZEQX.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-CzXNmobp.js} +6 -6
- package/dist/{Voucher-BPvxKO_w.js → Voucher-C5z2kOq9.js} +153 -123
- package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-DdGMrk2C.js +419 -0
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-DMs4XKXM.js → ZodTextField.vue_vue_type_script_setup_true_lang-BlXzEWA6.js} +1 -1
- package/dist/{app-D3MT1deX.js → app-7cvPyHJ7.js} +164 -125
- package/dist/{app-Bo0JpadQ.js → app-BVojNX0w.js} +1 -1
- package/dist/app.js +4 -3
- package/dist/business-CmxV69wT.js +79 -0
- package/dist/{campaign-Z3l7BoMg.js → campaign-CT_cNJEL.js} +9 -9
- package/dist/{campaign-j1c3ou7l.js → campaign-Dq5C_no-.js} +5 -3
- package/dist/{campaign.enum-CVXPc5Pd.js → campaign.enum-dp7yHKzF.js} +1 -1
- package/dist/campaign.fn-BYZgKDN7.js +758 -0
- package/dist/{collectible.enum-CDSikBAy.js → collectible.enum-DxbB4DxT.js} +1 -1
- package/dist/{collection.fn-Bz38mGMa.js → collection.fn-CNZRdUgy.js} +2 -2
- package/dist/{dto-D648NN4s.js → dto-CT9zZbv9.js} +4 -4
- package/dist/{effect-DbMAmVSR.js → effect-FIlOEC4H.js} +1 -1
- package/dist/{email-addresses-KOVDrRiK.js → email-addresses-Ba7xImfX.js} +1 -1
- package/dist/{export-cTZf8Avd.js → export-uzjZFNF9.js} +3 -3
- package/dist/{helper-BYyfcLqw.js → helper-D4sAZde0.js} +1 -1
- package/dist/{index-BIaCtk8e.js → index-B9pl4zRZ.js} +192 -79
- package/dist/{index-B4MqsaBz.js → index-BI3m1Ehv.js} +3 -3
- package/dist/{index-E-0tTd0_.js → index-BXz54M1s.js} +1 -1
- package/dist/{index-BMl2KZts.js → index-BjU8LVUC.js} +11447 -10969
- package/dist/index-CH3z92VV.js +31 -0
- package/dist/{index-BTb8I_eB.js → index-CNJLP3D5.js} +1 -1
- package/dist/{index-BrKXRxe_.js → index-CONvJfKv.js} +1 -1
- package/dist/index-CS3Jmojj.js +32260 -0
- package/dist/{index-CTPMbFf5.js → index-CUfS9Kp1.js} +10 -9
- package/dist/index-CsaQJMAR.js +66 -0
- package/dist/{index-nF9iYTlh.js → index-CvBcve-r.js} +1 -1
- package/dist/index-CwsMG2cV.js +56 -0
- package/dist/{index-B3p0hmIV.js → index-D5rvMvzx.js} +1 -1
- package/dist/{index-CvoShC5J.js → index-DNxa8Rqx.js} +536 -461
- package/dist/{index-DPBHiqsJ.js → index-l2F5MnLF.js} +1 -1
- package/dist/{index.esm2017-DFYwde30.js → index.esm2017-ATcsD5N4.js} +127 -127
- package/dist/{loading-vUArhX_O.js → loading-BWGQSrCB.js} +1 -1
- package/dist/{membership-BHKv29yt.js → membership-Cc4OZ8-U.js} +3 -3
- package/dist/{money-Bl3_QRkE.js → money-D7p8nfun.js} +1 -1
- package/dist/{number-hh_S9w7k.js → number-CMJjC4qz.js} +1 -1
- package/dist/objectid-D5T27iny.js +145 -0
- package/dist/{plugins-CVes2wzE.js → plugins-eQis66QR.js} +2 -2
- package/dist/remy-vue-client-Cpppk9h-.js +1693 -0
- package/dist/{reward-ANZOdWzf.js → reward-DrnzbG20.js} +1 -1
- package/dist/{rule-BvFk5bQg.js → rule-CtRxkYXB.js} +3 -3
- package/dist/{rule-builder-BSN777PN.js → rule-builder-Di9RIYHF.js} +17 -17
- package/dist/style.css +1 -1
- package/dist/{template-Dh9lDLs_.js → template-C3UfY0v5.js} +64 -64
- package/dist/{trigger-C7THbt7R.js → trigger-C9U7Zgad.js} +7 -7
- package/dist/{usePagination-JoYaROkV.js → usePagination-BeF5K3M7.js} +85 -85
- package/dist/{user-DtNR9JY2.js → user-D7n9yYmO.js} +1 -1
- package/dist/{vue-i18n-BWyHnm4m.js → vue-i18n-Bz45zC04.js} +387 -387
- package/dist/{xlsx-7u9SB0oa.js → xlsx-D4S4qbcZ.js} +226 -226
- package/package.json +9 -3
- package/dist/Analytic-CavR2bzs.js +0 -427
- package/dist/ImageInput.vue_vue_type_script_setup_true_lang-ByhTB9Ie.js +0 -144
- package/dist/Marketing-BSspYuhg.js +0 -319
- package/dist/Member-B4S0UNGq.js +0 -287
- package/dist/MemberList-CfnUJ3mh.js +0 -1606
- package/dist/MemberOverview-C2n9oJZh.js +0 -58
- package/dist/MessageInput.vue_vue_type_script_setup_true_lang-hZUWLTWj.js +0 -455
- package/dist/Promotion-Bg6x0rAh.js +0 -255
- package/dist/Segment-BLB4VWNJ.js +0 -882
- package/dist/StoreRewards--TNIFaCo.js +0 -423
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-CfB8tA5l.js +0 -995
- package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-Bg-9YqLP.js +0 -419
- package/dist/business-DMALI7ZO.js +0 -78
- package/dist/campaign.fn-rsRhHYZP.js +0 -758
- package/dist/index-BsCGyJMY.js +0 -29566
- package/dist/index-CuvNtC_M.js +0 -61
- package/dist/index-DFKmjCG1.js +0 -44
- package/dist/index-Dbd4WA4r.js +0 -61
- package/dist/objectid-CEyMlMge.js +0 -145
|
@@ -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-eQis66QR.js";
|
|
5
|
+
import { u as Z } from "./loading-BWGQSrCB.js";
|
|
6
|
+
import { u as ee } from "./business-CmxV69wT.js";
|
|
7
|
+
import { u as te } from "./campaign-Dq5C_no-.js";
|
|
8
|
+
import { a as $, b as A, g as oe } from "./campaign-CT_cNJEL.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-PJ8q72XH.js";
|
|
11
|
+
import { u as se } from "./template-C3UfY0v5.js";
|
|
12
|
+
import { u as ie } from "./vue-i18n-Bz45zC04.js";
|
|
13
|
+
import { _ as re } from "./SendCollectionSheet.vue_vue_type_script_setup_true_lang-Dnf2oxOG.js";
|
|
14
|
+
import { c as x } from "./index-D5rvMvzx.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))
|
|
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,16 +1,16 @@
|
|
|
1
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 $, 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-
|
|
3
|
-
import "./index-
|
|
2
|
+
import { u as H } from "./vue-i18n-Bz45zC04.js";
|
|
3
|
+
import "./index-CNJLP3D5.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-BWGQSrCB.js";
|
|
6
|
+
import { f as V, p as X } from "./plugins-eQis66QR.js";
|
|
7
|
+
import { u as Y, _ as Z } from "./RewardGroup.vue_vue_type_script_setup_true_lang-CJ_WC2gV.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 S } from "./app-
|
|
9
|
+
import { r as N } from "./index-BXz54M1s.js";
|
|
10
|
+
import { u as ae } from "./reward-DrnzbG20.js";
|
|
11
|
+
import { u as oe } from "./business-CmxV69wT.js";
|
|
12
|
+
import { u as te } from "./membership-Cc4OZ8-U.js";
|
|
13
|
+
import { R as S } from "./app-7cvPyHJ7.js";
|
|
14
14
|
const re = { class: "space-y-24" }, le = {
|
|
15
15
|
key: 0,
|
|
16
16
|
class: /* @__PURE__ */ G([
|