@feedmepos/mf-connect 0.1.0-beta.4 → 0.1.0-beta.41
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-C7iDpCvx.js +426 -0
- package/dist/{App-BnQwjxIr.js → App-rOEspgIk.js} +397 -384
- package/dist/{Broadcast-y1kP18mo.js → Broadcast-CI61-FqI.js} +32 -32
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-Dj0JUMOk.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BL_KxlIX.js} +6 -8
- package/dist/Card-CUzEZnUC.js +894 -0
- package/dist/{Collections-DPfbZMg1.js → Collections-zYhQfAph.js} +28 -34
- package/dist/{Credit-QleM_b6q.js → Credit-D6G2xUEu.js} +14 -14
- package/dist/CustomSelect.vue_vue_type_script_setup_true_lang-DLnvDVgf.js +108 -0
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-CxxmBzPu.js +2209 -0
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-2hRTF1EJ.js → EffectSheet.vue_vue_type_style_index_0_lang-Drd0ZjdQ.js} +8 -8
- package/dist/{Experience-DGKj8ChY.js → Experience-Cqn6cpA4.js} +8 -8
- package/dist/{Game-BxRdzSma.js → Game-CGrL5xmK.js} +15 -15
- package/dist/Index-CCcuCcmL.js +255 -0
- package/dist/Marketing-DhZHedDV.js +20070 -0
- package/dist/{Member-CteeBDi2.js → Member-CB8o8wLL.js} +4 -4
- package/dist/MemberList-D6zRpcwU.js +1554 -0
- package/dist/MemberTransactions-HCaDl8dN.js +45 -0
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-CZ2M8huU.js → MessageInput.vue_vue_type_script_setup_true_lang-CqlGFgwF.js} +2 -2
- package/dist/{Mission-CZgXBa09.js → Mission-CexuwCSV.js} +98 -86
- package/dist/Overview-CZk3IHyA.js +1063 -0
- package/dist/{Point-C2vzEfRP.js → Point-DJ_sLiid.js} +23 -23
- package/dist/{Promotion-337OT0sP.js → Promotion-CWBpjPXQ.js} +53 -47
- package/dist/Record-CwT9Pmjn.js +337 -0
- package/dist/Reward-DhOIXKAB.js +432 -0
- package/dist/RewardGroup.vue_vue_type_script_setup_true_lang-UP4KtCK2.js +149 -0
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-BNw-CED0.js +1637 -0
- package/dist/Segment-BE7Bt2tH.js +566 -0
- package/dist/SelectItems.vue_vue_type_script_setup_true_lang-CDyT_cSb.js +181 -0
- package/dist/{Setting-DVK2594u.js → Setting-D1k2xVYx.js} +609 -586
- package/dist/Store-BzoJ_ZBZ.js +1743 -0
- package/dist/{StoreRewards-BpEmNueE.js → StoreRewards-OAPmCssF.js} +12 -12
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-BIr5Zzij.js +1099 -0
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-DT48bSiH.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-C2fU1byp.js} +1 -1
- package/dist/{Tier-BwvOhyXR.js → Tier-IHJ7dlTI.js} +325 -317
- package/dist/{Title-DRPdKYRO.js → Title-C4KcQWk_.js} +197 -183
- package/dist/{Transaction-BnLvacwW.js → Transaction-B7SWRleT.js} +2 -2
- package/dist/UserRuleGroup.vue_vue_type_script_setup_true_lang-DOXLpM1y.js +130 -0
- package/dist/{Voucher-BQL8J_EA.js → Voucher-Dzh-oh1p.js} +40 -40
- package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-DeTWCZF1.js +419 -0
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-B316b_ta.js → ZodTextField.vue_vue_type_script_setup_true_lang-rBa59HC1.js} +1 -1
- package/dist/{app-BVaQwBvq.js → app-BkSGMADw.js} +1 -1
- package/dist/{app-zO552-Dl.js → app-ZePrUEIY.js} +1183 -1154
- package/dist/app.js +1 -1
- package/dist/{business-BSl6NSdS.js → business-CG7GnAu5.js} +1 -1
- package/dist/campaign-BSH9FJHx.js +1810 -0
- package/dist/{campaign-CxN6mq_l.js → campaign-DFvmN5Ky.js} +2 -2
- package/dist/campaign.enum-CBlGXHp0.js +20 -0
- package/dist/campaign.fn-BszsH1EQ.js +758 -0
- package/dist/collectible.enum-Sd3QSyrd.js +19 -0
- package/dist/{collection.fn-C-2dyWp9.js → collection.fn-CIFllkyx.js} +2 -2
- package/dist/dto-DG2Ckvh4.js +214 -0
- package/dist/{effect-D8y0J47O.js → effect-CWSFIfZh.js} +9 -9
- package/dist/email-addresses-BCNsQNXA.js +705 -0
- package/dist/{export-BxTrifKO.js → export-DKe01mG4.js} +3 -3
- package/dist/{helper-bEmZlTwA.js → helper-Et1Q6YUA.js} +1 -1
- package/dist/{index-DHTYWfTs.js → index-Bk281EIF.js} +207 -195
- package/dist/{index-B2qriSSk.js → index-CHAvEqB_.js} +1 -1
- package/dist/index-CMEY40F9.js +32 -0
- package/dist/index-CsaQJMAR.js +66 -0
- package/dist/{index-C_WyKCqN.js → index-D4FT-dGm.js} +1 -1
- package/dist/{index-JBp0chol.js → index-D_sLK5cZ.js} +1500 -1479
- package/dist/{index-Dnv999nc.js → index-Dkl_Y2Ir.js} +1 -1
- package/dist/{index-Ckz-D_AP.js → index-Dlv6dpg5.js} +2188 -931
- package/dist/index-DrRQsR1a.js +44 -0
- package/dist/{index-DuYb25dY.js → index-DzZDUZ8E.js} +37 -4
- package/dist/index-F1sEdtX3.js +54 -0
- package/dist/index-RFzgIvoM.js +29000 -0
- package/dist/{index-BFWCbVq2.js → index-RhGXDJ8R.js} +1 -1
- package/dist/index-vh86FiIQ.js +10 -0
- package/dist/{index.esm2017-Tw7KabwI.js → index.esm2017-COLDuQQ-.js} +1 -1
- package/dist/{loading-60xYxow_.js → loading-DxppIZmv.js} +1714 -1720
- package/dist/{membership-43FU3EmV.js → membership-DIBN0bog.js} +52 -44
- package/dist/money-L7YJDctU.js +15 -0
- package/dist/number-BAUL1NQ9.js +12 -0
- package/dist/objectid-BXKVeU2w.js +145 -0
- package/dist/remy-vue-client-Cpppk9h-.js +1693 -0
- package/dist/reward-Qjelc0jm.js +36 -0
- package/dist/{rule-DlHrKp8K.js → rule-BAqQRjqc.js} +180 -177
- package/dist/{rule-builder-CU8P8b8U.js → rule-builder-D2hQiWL6.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{template-9StyN-b7.js → template-NVFsa0l_.js} +5 -5
- package/dist/trigger-qeiGHLZs.js +114 -0
- package/dist/{xlsx-CrRvm5Vs.js → usePagination-De7j-UtU.js} +3183 -2962
- package/dist/user-CKVD-V1i.js +54 -0
- package/dist/{vue-i18n-UKlvivrG.js → vue-i18n-CTdcKDi0.js} +2 -2
- package/package.json +8 -7
- package/dist/Analytic-BtldByrt.js +0 -622
- package/dist/Card-kW7k8kOl.js +0 -825
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-BtI2rY4y.js +0 -2813
- package/dist/Marketing-CG4GQdax.js +0 -316
- package/dist/MemberList-CANkPyR0.js +0 -1733
- package/dist/MemberTransactions-CcCa21fY.js +0 -38
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-Dh3naMXv.js +0 -1753
- package/dist/Segment-Clstp5D-.js +0 -437
- package/dist/Store-PnpBvIoo.js +0 -1511
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-CrDhK2dt.js +0 -890
- package/dist/dto-B20bsdh6.js +0 -2770
- package/dist/index-BUCjM4jq.js +0 -29193
- package/dist/index-Ceu2PcnH.js +0 -206
- package/dist/index-CuvNtC_M.js +0 -61
- package/dist/index-D3DAgTFI.js +0 -762
- package/dist/index-Kjelmo0Y.js +0 -298
- package/dist/money-CmR3-qMz.js +0 -15
- package/dist/number-CZlrO6Sq.js +0 -12
- package/dist/usePagination-BeF5K3M7.js +0 -223
- package/dist/user-Bm4KttFq.js +0 -37
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
var oe = Object.defineProperty;
|
|
2
2
|
var te = (f, r, u) => r in f ? oe(f, r, { enumerable: !0, configurable: !0, writable: !0, value: u }) : f[r] = u;
|
|
3
3
|
var $ = (f, r, u) => te(f, typeof r != "symbol" ? r + "" : r, u);
|
|
4
|
-
import { defineComponent as H, ref as p, computed as J, watch as O, resolveComponent as d, openBlock as y, createBlock as T, unref as o, isRef as K, withCtx as I, createElementVNode as b, createVNode as s, createElementBlock as
|
|
4
|
+
import { defineComponent as H, ref as p, computed as J, watch as O, resolveComponent as d, openBlock as y, createBlock as T, unref as o, isRef as K, withCtx as I, createElementVNode as b, createVNode as s, createElementBlock as P, Fragment as N, renderList as ae, createCommentVNode as R, onMounted as le, h as w } from "vue";
|
|
5
5
|
import { h as j } from "./moment-BWErdI6_.js";
|
|
6
6
|
import { components as G } from "@feedmepos/ui-library";
|
|
7
|
-
import { u as Q, a as ne } from "./loading-
|
|
7
|
+
import { u as Q, a as ne } from "./loading-DxppIZmv.js";
|
|
8
8
|
import { J as se } from "./JsonViewer-v8_C7l5N.js";
|
|
9
9
|
import { u as re } from "./app-wDQR6dpb.js";
|
|
10
10
|
import { useRoute as W, useRouter as ie } from "vue-router";
|
|
11
|
-
import { c as A } from "./index-
|
|
12
|
-
import {
|
|
13
|
-
import { u as
|
|
14
|
-
import { m as me } from "./index-
|
|
11
|
+
import { c as A } from "./index-D4FT-dGm.js";
|
|
12
|
+
import { e as m } from "./index-vh86FiIQ.js";
|
|
13
|
+
import { u as z, a as de, _ as ue, w as ce } from "./usePagination-De7j-UtU.js";
|
|
14
|
+
import { m as me } from "./index-DzZDUZ8E.js";
|
|
15
15
|
import { o as pe } from "./objectId-dwaoBfJX.js";
|
|
16
16
|
const fe = { class: "space-y-16" }, ge = { class: "gap-16 grid grid-cols-2" }, be = { class: "flex items-center gap-8" }, Ce = /* @__PURE__ */ H({
|
|
17
17
|
__name: "CreateCollectionSheet",
|
|
@@ -91,7 +91,7 @@ const fe = { class: "space-y-16" }, ge = { class: "gap-16 grid grid-cols-2" }, b
|
|
|
91
91
|
t != e && (l.value.codeConfig.pattern = "#".repeat(Math.min(16, Number(t))));
|
|
92
92
|
}
|
|
93
93
|
), (t, e) => {
|
|
94
|
-
const v = d("FmRadio"), i = d("FmRadioGroup"), V = d("FmSwitch"), L = d("FmStepperField"),
|
|
94
|
+
const v = d("FmRadio"), i = d("FmRadioGroup"), V = d("FmSwitch"), L = d("FmStepperField"), S = d("FmSelect"), x = d("FmTextField"), X = d("FmTextarea"), Z = d("FmForm"), Y = d("FmButton"), ee = d("FmSideSheet");
|
|
95
95
|
return y(), T(ee, {
|
|
96
96
|
"max-width": 560,
|
|
97
97
|
"dismiss-away": !0,
|
|
@@ -135,7 +135,7 @@ const fe = { class: "space-y-16" }, ge = { class: "gap-16 grid grid-cols-2" }, b
|
|
|
135
135
|
inline: !1
|
|
136
136
|
}, {
|
|
137
137
|
default: I(() => [
|
|
138
|
-
(y(),
|
|
138
|
+
(y(), P(N, null, ae(D, (a) => s(v, {
|
|
139
139
|
key: a.value,
|
|
140
140
|
value: a.value,
|
|
141
141
|
label: a.label,
|
|
@@ -147,7 +147,7 @@ const fe = { class: "space-y-16" }, ge = { class: "gap-16 grid grid-cols-2" }, b
|
|
|
147
147
|
]),
|
|
148
148
|
b("div", fe, [
|
|
149
149
|
e[17] || (e[17] = b("div", { class: "fm-typo-en-body-lg-600" }, "Settings", -1)),
|
|
150
|
-
o(c) === "bulk" ? (y(),
|
|
150
|
+
o(c) === "bulk" ? (y(), P(N, { key: 0 }, [
|
|
151
151
|
s(V, {
|
|
152
152
|
"model-value": o(h),
|
|
153
153
|
"label-placement": "right",
|
|
@@ -156,7 +156,7 @@ const fe = { class: "space-y-16" }, ge = { class: "gap-16 grid grid-cols-2" }, b
|
|
|
156
156
|
required: !0,
|
|
157
157
|
"onUpdate:modelValue": e[1] || (e[1] = () => h.value = !o(h))
|
|
158
158
|
}, null, 8, ["model-value"]),
|
|
159
|
-
o(h) ? (y(),
|
|
159
|
+
o(h) ? (y(), P(N, { key: 0 }, [
|
|
160
160
|
s(L, {
|
|
161
161
|
modelValue: o(l).codeConfig.length,
|
|
162
162
|
"onUpdate:modelValue": e[2] || (e[2] = (a) => o(l).codeConfig.length = a),
|
|
@@ -169,7 +169,7 @@ const fe = { class: "space-y-16" }, ge = { class: "gap-16 grid grid-cols-2" }, b
|
|
|
169
169
|
],
|
|
170
170
|
required: !0
|
|
171
171
|
}, null, 8, ["modelValue", "rules"]),
|
|
172
|
-
s(
|
|
172
|
+
s(S, {
|
|
173
173
|
label: "Charset",
|
|
174
174
|
"model-value": o(C),
|
|
175
175
|
items: U,
|
|
@@ -184,7 +184,7 @@ const fe = { class: "space-y-16" }, ge = { class: "gap-16 grid grid-cols-2" }, b
|
|
|
184
184
|
"onUpdate:modelValue": e[4] || (e[4] = (a) => o(l).codeConfig.charset = a),
|
|
185
185
|
label: "Custom Charset",
|
|
186
186
|
required: ""
|
|
187
|
-
}, null, 8, ["modelValue"])) :
|
|
187
|
+
}, null, 8, ["modelValue"])) : R("", !0),
|
|
188
188
|
b("div", ge, [
|
|
189
189
|
s(x, {
|
|
190
190
|
modelValue: o(l).codeConfig.prefix,
|
|
@@ -203,7 +203,7 @@ const fe = { class: "space-y-16" }, ge = { class: "gap-16 grid grid-cols-2" }, b
|
|
|
203
203
|
label: "Pattern",
|
|
204
204
|
required: !0
|
|
205
205
|
}, null, 8, ["modelValue"])
|
|
206
|
-
], 64)) :
|
|
206
|
+
], 64)) : R("", !0),
|
|
207
207
|
s(x, {
|
|
208
208
|
modelValue: o(l).quantity,
|
|
209
209
|
"onUpdate:modelValue": e[8] || (e[8] = (a) => o(l).quantity = a),
|
|
@@ -215,7 +215,7 @@ const fe = { class: "space-y-16" }, ge = { class: "gap-16 grid grid-cols-2" }, b
|
|
|
215
215
|
required: !0,
|
|
216
216
|
"helper-text": `${o(l).quantity} claim will be created`
|
|
217
217
|
}, null, 8, ["modelValue", "rules", "helper-text"])
|
|
218
|
-
], 64)) :
|
|
218
|
+
], 64)) : R("", !0),
|
|
219
219
|
o(c) !== "bulk" ? (y(), T(X, {
|
|
220
220
|
key: 1,
|
|
221
221
|
modelValue: o(l).code,
|
|
@@ -223,7 +223,7 @@ const fe = { class: "space-y-16" }, ge = { class: "gap-16 grid grid-cols-2" }, b
|
|
|
223
223
|
label: "Custom Code",
|
|
224
224
|
rules: [(a) => o(c) != "single" || !!a || "Custom code is required"],
|
|
225
225
|
placeholder: "(For multiple codes, please enter in the new row.)"
|
|
226
|
-
}, null, 8, ["modelValue", "rules"])) :
|
|
226
|
+
}, null, 8, ["modelValue", "rules"])) : R("", !0)
|
|
227
227
|
])
|
|
228
228
|
]),
|
|
229
229
|
_: 1
|
|
@@ -246,13 +246,7 @@ class ve {
|
|
|
246
246
|
return z.book_append_sheet(r, u, "Collection"), r;
|
|
247
247
|
}
|
|
248
248
|
}
|
|
249
|
-
const
|
|
250
|
-
sortBy: "_id",
|
|
251
|
-
descending: !1,
|
|
252
|
-
rowsPerPage: 1e3,
|
|
253
|
-
page: 1,
|
|
254
|
-
rowsNumber: 0
|
|
255
|
-
}, xe = { class: "px-24 flex flex-col gap-y-32 pb-24" }, ye = { class: "flex items-center justify-end py-4 xs:hidden" }, Ae = /* @__PURE__ */ H({
|
|
249
|
+
const xe = { class: "px-24 flex flex-col gap-y-32 pb-24" }, ye = { class: "flex items-center justify-end py-4 xs:hidden" }, Ae = /* @__PURE__ */ H({
|
|
256
250
|
__name: "Collections",
|
|
257
251
|
setup(f) {
|
|
258
252
|
const r = ie(), u = W(), F = p(), k = J(() => u.params.id), _ = p(!1), { custom: B } = Q, E = [
|
|
@@ -260,8 +254,8 @@ const m = {
|
|
|
260
254
|
header: "ID/Code",
|
|
261
255
|
accessorKey: "_id",
|
|
262
256
|
cell(n) {
|
|
263
|
-
return
|
|
264
|
-
|
|
257
|
+
return w("div", { class: "flex items-center" }, [
|
|
258
|
+
w(G.FmIcon, {
|
|
265
259
|
name: "content_copy",
|
|
266
260
|
outline: !0,
|
|
267
261
|
size: "sm",
|
|
@@ -272,7 +266,7 @@ const m = {
|
|
|
272
266
|
);
|
|
273
267
|
}
|
|
274
268
|
}),
|
|
275
|
-
|
|
269
|
+
w(
|
|
276
270
|
"div",
|
|
277
271
|
{ class: "pr-2 text-ellipsis overflow-hidden" },
|
|
278
272
|
n.row.original.code || n.row.original._id.toString()
|
|
@@ -286,18 +280,18 @@ const m = {
|
|
|
286
280
|
enableSorting: !1,
|
|
287
281
|
cell(n) {
|
|
288
282
|
const t = n.row.original.pf_user;
|
|
289
|
-
return
|
|
283
|
+
return w(
|
|
290
284
|
"div",
|
|
291
285
|
{
|
|
292
286
|
class: "flex items-center gap-x-8"
|
|
293
287
|
},
|
|
294
288
|
[
|
|
295
|
-
|
|
289
|
+
w(G.FmAvatar, {
|
|
296
290
|
name: t != null && t.photoUrl || t == null ? void 0 : t.name,
|
|
297
291
|
src: (t == null ? void 0 : t.photoUrl) ?? void 0,
|
|
298
292
|
size: "sm"
|
|
299
293
|
}),
|
|
300
|
-
|
|
294
|
+
w("span", t == null ? void 0 : t.name)
|
|
301
295
|
]
|
|
302
296
|
);
|
|
303
297
|
}
|
|
@@ -333,7 +327,7 @@ const m = {
|
|
|
333
327
|
}, q = (n) => {
|
|
334
328
|
const t = g[u.name];
|
|
335
329
|
return (e) => t(n, e);
|
|
336
|
-
}, { tableMeta: l, rowData: D, onSort: U, debouncedFetchData: C, onSearch: c } =
|
|
330
|
+
}, { tableMeta: l, rowData: D, onSort: U, debouncedFetchData: C, onSearch: c } = de(q(k.value));
|
|
337
331
|
async function h() {
|
|
338
332
|
var n;
|
|
339
333
|
await C(), (n = F.value) == null || n.showSheet(!1);
|
|
@@ -359,15 +353,15 @@ const m = {
|
|
|
359
353
|
k.value,
|
|
360
354
|
V
|
|
361
355
|
);
|
|
362
|
-
for await (const
|
|
356
|
+
for await (const S of L.resources) {
|
|
363
357
|
const x = {
|
|
364
|
-
Id: (
|
|
358
|
+
Id: (S == null ? void 0 : S.code) || ((v = S._id) == null ? void 0 : v.toString()) || ""
|
|
365
359
|
};
|
|
366
360
|
n.addRecord(x);
|
|
367
361
|
}
|
|
368
362
|
m.page++;
|
|
369
363
|
}
|
|
370
|
-
await
|
|
364
|
+
await ce(
|
|
371
365
|
n.buildExcel(),
|
|
372
366
|
`members-${(/* @__PURE__ */ new Date()).toISOString()}.xlsx`,
|
|
373
367
|
{
|
|
@@ -386,7 +380,7 @@ const m = {
|
|
|
386
380
|
await C();
|
|
387
381
|
}), (n, t) => {
|
|
388
382
|
const e = d("FmPageHead"), v = d("FmSearch");
|
|
389
|
-
return y(),
|
|
383
|
+
return y(), P(N, null, [
|
|
390
384
|
s(e, {
|
|
391
385
|
title: "Collections",
|
|
392
386
|
"back-button": !0,
|
|
@@ -426,7 +420,7 @@ const m = {
|
|
|
426
420
|
collapsible: ""
|
|
427
421
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
428
422
|
]),
|
|
429
|
-
s(
|
|
423
|
+
s(ue, {
|
|
430
424
|
loading: o(l).isLoading,
|
|
431
425
|
"row-data": o(D),
|
|
432
426
|
"column-defs": E,
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { defineComponent as N, ref as S, computed as j, h as M, onMounted as A, resolveComponent as l, openBlock as c, createElementBlock as y, Fragment as h, createVNode as i, unref as a, createElementVNode as n, withCtx as C, renderList as H, createBlock as v, resolveDynamicComponent as q, toDisplayString as g, createCommentVNode as z } from "vue";
|
|
2
2
|
import { _ as G } from "./campaign-CpzFl8Vr.js";
|
|
3
3
|
import { useDialog as J, components as O } from "@feedmepos/ui-library";
|
|
4
|
-
import { p as Q, u as W } from "./loading-
|
|
5
|
-
import { u as X } from "./business-
|
|
6
|
-
import { u as Y } from "./campaign-
|
|
7
|
-
import { g as V,
|
|
8
|
-
import { u as Z } from "./vue-i18n-
|
|
4
|
+
import { p as Q, u as W } from "./loading-DxppIZmv.js";
|
|
5
|
+
import { u as X } from "./business-CG7GnAu5.js";
|
|
6
|
+
import { u as Y } from "./campaign-DFvmN5Ky.js";
|
|
7
|
+
import { g as V, a as L } from "./campaign-BSH9FJHx.js";
|
|
8
|
+
import { u as Z } from "./vue-i18n-CTdcKDi0.js";
|
|
9
9
|
import { _ as ee } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
|
|
10
|
-
import { _ as oe } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-
|
|
11
|
-
import { u as te } from "./template-
|
|
12
|
-
import { c as _ } from "./index-
|
|
10
|
+
import { _ as oe } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-CxxmBzPu.js";
|
|
11
|
+
import { u as te } from "./template-NVFsa0l_.js";
|
|
12
|
+
import { c as _ } from "./index-D4FT-dGm.js";
|
|
13
13
|
const ae = { class: "px-24 flex flex-col gap-y-16" }, ne = { class: "flex items-center justify-between w-full" }, re = { class: "flex gap-8 overflow-x-auto" }, se = { class: "space-y-8" }, ie = { class: "flex w-full gap-4 items-center" }, le = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ce = { class: "space-y-4" }, me = { class: "fm-typo-en-body-lg-600" }, de = { 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" }, ue = { key: 0 }, Ve = /* @__PURE__ */ N({
|
|
14
14
|
__name: "Credit",
|
|
15
15
|
setup(fe) {
|
|
@@ -50,13 +50,13 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, ne = { class: "flex items-
|
|
|
50
50
|
icon: "delete",
|
|
51
51
|
iconColor: "neutral-gray-400",
|
|
52
52
|
onClick: (o) => {
|
|
53
|
-
o.stopPropagation(),
|
|
53
|
+
o.stopPropagation(), b(e.row.original);
|
|
54
54
|
}
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
-
],
|
|
59
|
-
async function
|
|
58
|
+
], x = S();
|
|
59
|
+
async function b(e) {
|
|
60
60
|
await Q.remove(
|
|
61
61
|
r("connect.program.common.remove.confirm", { name: e.name })
|
|
62
62
|
) && await w(
|
|
@@ -77,7 +77,7 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, ne = { class: "flex items-
|
|
|
77
77
|
});
|
|
78
78
|
async function o(p) {
|
|
79
79
|
var u;
|
|
80
|
-
(u =
|
|
80
|
+
(u = x.value) == null || u.showSheet(
|
|
81
81
|
!0,
|
|
82
82
|
"CREDIT",
|
|
83
83
|
e ? await _.readById(e._id) : void 0,
|
|
@@ -171,7 +171,7 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, ne = { class: "flex items-
|
|
|
171
171
|
icon: "delete",
|
|
172
172
|
"icon-color": "neutral-gray-400",
|
|
173
173
|
variant: "tertiary",
|
|
174
|
-
onClick: (k) => (k.stopPropagation(),
|
|
174
|
+
onClick: (k) => (k.stopPropagation(), b(t))
|
|
175
175
|
}, null, 8, ["onClick"])
|
|
176
176
|
]),
|
|
177
177
|
_: 2
|
|
@@ -207,7 +207,7 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, ne = { class: "flex items-
|
|
|
207
207
|
})),
|
|
208
208
|
i(oe, {
|
|
209
209
|
ref_key: "sheetRef",
|
|
210
|
-
ref:
|
|
210
|
+
ref: x,
|
|
211
211
|
"onSubmit:modelValue": E
|
|
212
212
|
}, null, 512)
|
|
213
213
|
])
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { defineComponent as I, ref as P, resolveComponent as u, openBlock as t, createBlock as y, unref as h, withCtx as d, renderSlot as V, createElementBlock as s, toDisplayString as i, createCommentVNode as S, createVNode as x, normalizeClass as g, createElementVNode as B, Fragment as N, renderList as j } from "vue";
|
|
2
|
+
const q = {
|
|
3
|
+
key: 0,
|
|
4
|
+
class: "fm-typo-en-body-lg-400 mb-4"
|
|
5
|
+
}, $ = {
|
|
6
|
+
key: 1,
|
|
7
|
+
class: "fm-typo-en-body-lg-400"
|
|
8
|
+
}, E = { class: "rounded-md bg-white shadow-md max-h-[300px] overflow-y-scroll pl-4 py-12" }, O = /* @__PURE__ */ I({
|
|
9
|
+
__name: "CustomSelect",
|
|
10
|
+
props: {
|
|
11
|
+
label: {
|
|
12
|
+
type: String,
|
|
13
|
+
required: !1
|
|
14
|
+
},
|
|
15
|
+
placeholder: {
|
|
16
|
+
type: String,
|
|
17
|
+
required: !1
|
|
18
|
+
},
|
|
19
|
+
items: {
|
|
20
|
+
type: Object,
|
|
21
|
+
required: !0
|
|
22
|
+
},
|
|
23
|
+
modelValue: {
|
|
24
|
+
type: Object
|
|
25
|
+
},
|
|
26
|
+
zIndex: {
|
|
27
|
+
type: Number
|
|
28
|
+
},
|
|
29
|
+
multiselect: {
|
|
30
|
+
type: Boolean
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
emits: ["update:model-value"],
|
|
34
|
+
setup(e, { emit: k }) {
|
|
35
|
+
const r = k, m = P(!1);
|
|
36
|
+
return (v, b) => {
|
|
37
|
+
const F = u("FmIcon"), C = u("FmField"), p = u("FmMenuItem"), w = u("FmPopover");
|
|
38
|
+
return t(), y(w, {
|
|
39
|
+
"show-popover": h(m),
|
|
40
|
+
onPopoverChanged: b[0] || (b[0] = (l) => m.value = l),
|
|
41
|
+
"z-index": e.zIndex
|
|
42
|
+
}, {
|
|
43
|
+
"popover-button": d(() => [
|
|
44
|
+
V(v.$slots, "popover-button", {}, () => [
|
|
45
|
+
e.label ? (t(), s("div", q, i(e.label), 1)) : S("", !0),
|
|
46
|
+
x(C, null, {
|
|
47
|
+
append: d(() => [
|
|
48
|
+
V(v.$slots, "append"),
|
|
49
|
+
x(F, {
|
|
50
|
+
name: h(m) ? "expand_less" : "expand_more",
|
|
51
|
+
size: "md",
|
|
52
|
+
color: "black"
|
|
53
|
+
}, null, 8, ["name"])
|
|
54
|
+
]),
|
|
55
|
+
default: d(() => {
|
|
56
|
+
var l;
|
|
57
|
+
return [
|
|
58
|
+
e.multiselect ? (t(), s("div", $, i(e.items.filter((o) => {
|
|
59
|
+
var a;
|
|
60
|
+
return (a = e.modelValue) == null ? void 0 : a.includes(o.value);
|
|
61
|
+
}).map((o) => o.label).join(", ")), 1)) : (t(), s("div", {
|
|
62
|
+
key: 0,
|
|
63
|
+
class: g(["fm-typo-en-body-lg-400", {
|
|
64
|
+
"text-fm-color-typo-secondary": !e.items.find(
|
|
65
|
+
(o) => o.value == e.modelValue
|
|
66
|
+
)
|
|
67
|
+
}])
|
|
68
|
+
}, i(((l = e.items.find((o) => o.value == e.modelValue)) == null ? void 0 : l.label) || e.placeholder), 3))
|
|
69
|
+
];
|
|
70
|
+
}),
|
|
71
|
+
_: 3
|
|
72
|
+
})
|
|
73
|
+
])
|
|
74
|
+
]),
|
|
75
|
+
default: d(() => [
|
|
76
|
+
B("div", E, [
|
|
77
|
+
(t(!0), s(N, null, j(e.items, (l) => {
|
|
78
|
+
var o, a;
|
|
79
|
+
return t(), y(p, {
|
|
80
|
+
class: g(`${e.multiselect ? (o = e.modelValue) != null && o.some((n) => n == l.value) ? "bg-fm-color-system-warning-100" : "" : e.modelValue == l.value}`),
|
|
81
|
+
"has-checkbox": e.multiselect,
|
|
82
|
+
key: l.value,
|
|
83
|
+
"model-value": e.multiselect ? (a = e.modelValue) == null ? void 0 : a.some((n) => n == l.value) : e.modelValue == l.value,
|
|
84
|
+
label: l.label,
|
|
85
|
+
onClick: (n) => {
|
|
86
|
+
var f;
|
|
87
|
+
if (n.stopPropagation(), !e.multiselect)
|
|
88
|
+
m.value = !1, r("update:model-value", l.value);
|
|
89
|
+
else {
|
|
90
|
+
const z = (f = e.modelValue) == null ? void 0 : f.some((c) => c == l.value);
|
|
91
|
+
r(
|
|
92
|
+
"update:model-value",
|
|
93
|
+
z ? (e.modelValue ?? []).filter((c) => c !== l.value) : [...e.modelValue ?? [], l.value]
|
|
94
|
+
);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}, null, 8, ["class", "has-checkbox", "model-value", "label", "onClick"]);
|
|
98
|
+
}), 128))
|
|
99
|
+
])
|
|
100
|
+
]),
|
|
101
|
+
_: 3
|
|
102
|
+
}, 8, ["show-popover", "z-index"]);
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
export {
|
|
107
|
+
O as _
|
|
108
|
+
};
|