@feedmepos/mf-connect 0.1.23-prod → 0.1.25-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-DfTQmuSa.js → Analytic-DmQ3d3sr.js} +18 -17
- package/dist/{App-C5AMrBM2.js → App-BK6DtUuH.js} +6 -6
- package/dist/{Bin-nZv2ZrAD.js → Bin-B7F2tXkP.js} +19 -18
- package/dist/{Broadcast-1ViZILw6.js → Broadcast-6n2TGBgu.js} +13 -12
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-Nuj7G5E1.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-_hoK2zXW.js} +14 -8
- package/dist/{Card-CUAfRl0P.js → Card-D6AU_9dV.js} +57 -55
- package/dist/{Collections-DNlV8CiV.js → Collections-CMbKkYFL.js} +13 -11
- package/dist/{Credit-C8WVgeKO.js → Credit-CqLwf2JA.js} +35 -34
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-CZmd7K3H.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-CRK5WI7g.js} +28 -27
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-Crakwwgo.js → EffectSheet.vue_vue_type_style_index_0_lang-CaSqYPQ2.js} +6 -6
- package/dist/{Experience-C0ZrJ-rU.js → Experience-OoJ1ODiZ.js} +13 -12
- package/dist/FilterChip.vue_vue_type_script_setup_true_lang-BrPLkFX8.js +118 -0
- package/dist/Game-IAfjkExX.js +278 -0
- package/dist/{Index-C_mvHa_E.js → Index-DqHXbokQ.js} +14 -13
- package/dist/{Marketing-7lvR6gR_.js → Marketing-DIVehK5x.js} +8 -7
- package/dist/Member-BMT7m7s9.js +348 -0
- package/dist/{MemberList-BDsVY1bB.js → MemberList-C3JMhLW6.js} +270 -269
- package/dist/{MemberTransactions-DXgJ8Tua.js → MemberTransactions-lQLljdGi.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-BbiWEoQQ.js → MessageInput.vue_vue_type_script_setup_true_lang-DFPEfDUk.js} +15 -18
- package/dist/{Mission-CJnySjh4.js → Mission-BJsuCVHj.js} +118 -96
- package/dist/{Overview-ZENHKQhC.js → Overview-D1AMq951.js} +63 -62
- package/dist/{Point-DvYLQNmg.js → Point-DGffwTWG.js} +11 -10
- package/dist/{Promotion-CE6Mqev4.js → Promotion-Cdu7wiGv.js} +12 -11
- package/dist/Queue-Cm4ekHlP.js +249 -0
- package/dist/{Record-Cl4o08E4.js → Record-B0JjTQ3K.js} +21 -19
- package/dist/{Reward-C1hZ9c6y.js → Reward-U0gEl1no.js} +19 -18
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-Co1mzeQA.js → RewardGroup.vue_vue_type_script_setup_true_lang-CiQHPhkN.js} +13 -12
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-CDEiSeqW.js → RuleGroup.vue_vue_type_script_setup_true_lang-BgKlwCAG.js} +12 -12
- package/dist/{Segment-1RH6jUyt.js → Segment-BsXsG6Ga.js} +19 -17
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-CJTZZ4EH.js → SelectItems.vue_vue_type_script_setup_true_lang-hPQP_srV.js} +2 -2
- package/dist/SendCollectionSheet.vue_vue_type_script_setup_true_lang-BLPLYvOq.js +188 -0
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-DL2A84oN.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-rL9NYAk0.js} +3 -3
- package/dist/{Setting-DK9lsogh.js → Setting-DJxzwVSf.js} +20 -19
- package/dist/{Store-DSeXriUy.js → Store-sTvnMjPJ.js} +24 -23
- package/dist/{StoreRewards-DFUg0n5g.js → StoreRewards-CffMLGzL.js} +15 -14
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-CUPPeZj5.js +994 -0
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-hR4OBTrC.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-DwhQONu8.js} +1 -1
- package/dist/{Tier-Yq3BNKGq.js → Tier-BbfX13Ns.js} +25 -24
- package/dist/{Title-CwWan9gL.js → Title-Bf4fC78d.js} +28 -27
- package/dist/{Transaction-BgO5EYZB.js → Transaction-Ef6ee3WD.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-CyUXbl30.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-w66fAQPQ.js} +6 -6
- package/dist/{Voucher-C2w8z86e.js → Voucher-CCH10Wrp.js} +38 -37
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-dEgiWiLL.js → VoucherEditor.vue_vue_type_script_setup_true_lang-C31OGqSE.js} +10 -10
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-BME260O1.js → ZodTextField.vue_vue_type_script_setup_true_lang-BqzMSTXs.js} +1 -1
- package/dist/{app-BVIgk6aa.js → app-D2t3_10I.js} +1 -1
- package/dist/{app-BVsQcG_m.js → app-F5UOtzJ-.js} +235 -166
- package/dist/app.js +1 -1
- package/dist/{business-CdvE-WIp.js → business-NXwwmhbL.js} +1 -1
- package/dist/{campaign-WGLWFuCK.js → campaign-BWkn-fFd.js} +9 -9
- package/dist/{campaign-gunNEZhU.js → campaign-Iww5PvJV.js} +2 -2
- package/dist/{campaign.enum-O82qvpU2.js → campaign.enum--kHpbveJ.js} +1 -1
- package/dist/{campaign.fn-Bzr9Jc5X.js → campaign.fn-D0wKIDQf.js} +123 -123
- package/dist/{collectible.enum-CzUCHExj.js → collectible.enum-BpsFdy57.js} +1 -1
- package/dist/{collection.fn-Czs8Mpdz.js → collection.fn-B-_j1A52.js} +2 -2
- package/dist/{dto-Czd638gm.js → dto-CjOlAnWp.js} +4 -4
- package/dist/{effect-D8Km5OHX.js → effect-BMe9xjgR.js} +1 -1
- package/dist/{email-addresses-2-RgQal8.js → email-addresses-BwGoUD7O.js} +1 -1
- package/dist/{export--jJWZuJy.js → export-Bsk4-mYp.js} +3 -3
- package/dist/{helper-BOwvTpT_.js → helper-CiybWTiD.js} +1 -1
- package/dist/{index-Bg8Lqk3s.js → index-7QyaWVGn.js} +1 -1
- package/dist/{index-DGi6aLjD.js → index-BAW03Ygy.js} +24 -21
- package/dist/{index-C6j2uVRJ.js → index-BG_-ksol.js} +1 -1
- package/dist/{index-FBWWEOV0.js → index-COTHSMx7.js} +1 -1
- package/dist/{index-DExfBo0i.js → index-CRa7QWQZ.js} +3 -3
- package/dist/{index-DllRE4Xv.js → index-Cs0QJDgH.js} +1 -1
- package/dist/{index-BMPlc7it.js → index-Cu28MWwC.js} +1162 -1129
- package/dist/{index-CpsX7fKq.js → index-CvKxhzaQ.js} +1 -1
- package/dist/{index-7SYnV8B2.js → index-D7AjQ5_0.js} +1273 -1273
- package/dist/{index-CKSGfZ62.js → index-OLChRkvG.js} +2 -2
- package/dist/{index-DRVIuG-G.js → index-WxOdPYZc.js} +1 -1
- package/dist/{index-CFxA9VYh.js → index-eJ4ofwfd.js} +10 -10
- package/dist/{index.esm2017-CkIJgInI.js → index.esm2017-DMXNt25X.js} +137 -137
- package/dist/loading-CScT_lmc.js +71 -0
- package/dist/{membership-ByveC1Cs.js → membership-DenkPJ5U.js} +3 -3
- package/dist/{money-C_wAhRJ4.js → money-B5hybQjS.js} +1 -1
- package/dist/{number-B1OxEx_j.js → number-anjTvmBi.js} +1 -1
- package/dist/objectid-BHmtsFsO.js +145 -0
- package/dist/{loading-C-HOw2p9.js → plugins-VONaCeWn.js} +1535 -1601
- package/dist/{reward-BOA1fyrM.js → reward-FwctH8OP.js} +1 -1
- package/dist/{rule-CfePtJap.js → rule-BqLIsoB6.js} +3 -3
- package/dist/{rule-builder-B7wNFPfi.js → rule-builder-EwN0tKLd.js} +1 -1
- package/dist/{template-CvIL9Pex.js → template-bVlMDuHk.js} +4 -4
- package/dist/{trigger-D7uzmrxE.js → trigger-Bh7yq_a0.js} +11 -11
- package/dist/usePagination-JoYaROkV.js +223 -0
- package/dist/{user-NlenrMEw.js → user-z65INcT0.js} +1 -1
- package/dist/vue-i18n-59FFzX8P.js +2365 -0
- package/dist/{usePagination-BFzJ3YC7.js → xlsx-D9VDeVL9.js} +2979 -3200
- package/package.json +3 -1
- package/dist/Game-KiwAxjQX.js +0 -256
- package/dist/Member-DR406GTr.js +0 -69
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-D_F7zaEl.js +0 -1105
- package/dist/objectid-CtnWn6lG.js +0 -145
- package/dist/vue-i18n-BjInRP6b.js +0 -2365
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { defineComponent as N, ref as S, computed as j, h as M, onMounted as A, resolveComponent as i, openBlock as l, createElementBlock as y, Fragment as h, createVNode as c, unref as t, 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
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
4
|
+
import { p as Q } from "./plugins-VONaCeWn.js";
|
|
5
|
+
import { u as W } from "./loading-CScT_lmc.js";
|
|
6
|
+
import { u as X } from "./business-NXwwmhbL.js";
|
|
7
|
+
import { u as Y } from "./campaign-Iww5PvJV.js";
|
|
8
|
+
import { g as Z, a as V, b as L } from "./campaign-BWkn-fFd.js";
|
|
9
|
+
import { u as ee } from "./vue-i18n-59FFzX8P.js";
|
|
9
10
|
import { _ as oe } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
|
|
10
|
-
import { _ as te } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-
|
|
11
|
-
import { u as ae } from "./template-
|
|
12
|
-
import { c as _ } from "./index-
|
|
13
|
-
const ne = { class: "px-24 flex flex-col gap-y-16" },
|
|
11
|
+
import { _ as te } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-CRK5WI7g.js";
|
|
12
|
+
import { u as ae } from "./template-bVlMDuHk.js";
|
|
13
|
+
import { c as _ } from "./index-CvKxhzaQ.js";
|
|
14
|
+
const ne = { class: "px-24 flex flex-col gap-y-16" }, re = { class: "flex items-center justify-between w-full" }, se = { class: "flex gap-8 overflow-x-auto" }, ce = { 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" }, me = { class: "space-y-4" }, de = { class: "fm-typo-en-body-lg-600" }, pe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ue = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, fe = { key: 0 }, ye = /* @__PURE__ */ n("div", { class: "text-fm-color-typo-secondary fm-typo-en-body-md-600" }, " No results found ", -1), ge = [
|
|
14
15
|
ye
|
|
15
16
|
], _e = /* @__PURE__ */ n("img", {
|
|
16
17
|
src: G,
|
|
@@ -18,41 +19,41 @@ const ne = { class: "px-24 flex flex-col gap-y-16" }, se = { class: "flex items-
|
|
|
18
19
|
}, null, -1), he = /* @__PURE__ */ n("div", { class: "flex flex-col gap-16 text-center" }, [
|
|
19
20
|
/* @__PURE__ */ n("div", { class: "fm-typo-en-title-sm-800" }, "Create your credit program"),
|
|
20
21
|
/* @__PURE__ */ n("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " Credits are virtual money that customers can use to pay for their purchases, similar to cash within your store. ")
|
|
21
|
-
], -1),
|
|
22
|
+
], -1), Te = /* @__PURE__ */ N({
|
|
22
23
|
__name: "Credit",
|
|
23
24
|
setup(Ce) {
|
|
24
|
-
const { t:
|
|
25
|
-
label:
|
|
26
|
-
type:
|
|
25
|
+
const { t: r } = ee(), I = {
|
|
26
|
+
label: r("connect.program.common.actions.create", {
|
|
27
|
+
type: r("connect.program.credit.title").toLowerCase()
|
|
27
28
|
}),
|
|
28
29
|
value: "create",
|
|
29
30
|
isPrimary: !0,
|
|
30
31
|
prependIcon: "add"
|
|
31
|
-
}, R = ae("CREDIT", J()), B = X(), m = Y(), { global: D, minor: w } = W,
|
|
32
|
+
}, R = ae("CREDIT", J()), B = X(), m = Y(), { global: D, minor: w } = W, s = S({
|
|
32
33
|
searchKey: "",
|
|
33
34
|
location: null
|
|
34
35
|
}), d = j(
|
|
35
36
|
() => m.campaigns.credit.filter(
|
|
36
|
-
(e) => !
|
|
37
|
+
(e) => !s.value.location || !e.targetLocation || e.targetLocation.includes(s.value.location)
|
|
37
38
|
)
|
|
38
39
|
), T = [
|
|
39
40
|
{
|
|
40
|
-
header:
|
|
41
|
+
header: r("connect.program.common.table.title"),
|
|
41
42
|
accessorFn: (e) => e.name
|
|
42
43
|
},
|
|
43
44
|
{
|
|
44
|
-
header:
|
|
45
|
+
header: r("connect.program.common.table.status"),
|
|
45
46
|
accessorFn: (e) => Z(e),
|
|
46
47
|
cell(e) {
|
|
47
48
|
return V(e.row.original);
|
|
48
49
|
}
|
|
49
50
|
},
|
|
50
51
|
{
|
|
51
|
-
header:
|
|
52
|
+
header: r("connect.program.common.table.summary"),
|
|
52
53
|
accessorFn: (e) => L(e)
|
|
53
54
|
},
|
|
54
55
|
{
|
|
55
|
-
header:
|
|
56
|
+
header: r("connect.program.common.table.actions"),
|
|
56
57
|
cell(e) {
|
|
57
58
|
return M(O.FmButton, {
|
|
58
59
|
variant: "tertiary",
|
|
@@ -67,14 +68,14 @@ const ne = { class: "px-24 flex flex-col gap-y-16" }, se = { class: "flex items-
|
|
|
67
68
|
], b = S();
|
|
68
69
|
async function x(e) {
|
|
69
70
|
await Q.remove(
|
|
70
|
-
|
|
71
|
+
r("connect.program.common.remove.confirm", { name: e.name })
|
|
71
72
|
) && await w(
|
|
72
73
|
async () => {
|
|
73
74
|
await _.delete(e._id), await m.read("CREDIT");
|
|
74
75
|
},
|
|
75
76
|
{
|
|
76
|
-
message:
|
|
77
|
-
successMessage:
|
|
77
|
+
message: r("connect.program.common.remove.removing", { name: e.name }),
|
|
78
|
+
successMessage: r("connect.program.common.remove.removed", {
|
|
78
79
|
name: e.name
|
|
79
80
|
})
|
|
80
81
|
}
|
|
@@ -113,24 +114,24 @@ const ne = { class: "px-24 flex flex-col gap-y-16" }, se = { class: "flex items-
|
|
|
113
114
|
const p = i("FmPageHead"), u = i("FmSearch"), K = i("FmTable"), F = i("FmButton"), $ = i("FmListItem"), P = i("FmList"), U = i("FmCard");
|
|
114
115
|
return l(), y(h, null, [
|
|
115
116
|
c(p, {
|
|
116
|
-
title: t(
|
|
117
|
+
title: t(r)("connect.program.credit.title"),
|
|
117
118
|
actions: t(d).length > 0 ? [I] : [],
|
|
118
119
|
"onClick:action": a[0] || (a[0] = () => f())
|
|
119
120
|
}, null, 8, ["title", "actions"]),
|
|
120
121
|
n("div", ne, [
|
|
121
122
|
c(u, {
|
|
122
|
-
modelValue: t(
|
|
123
|
-
"onUpdate:modelValue": a[1] || (a[1] = (o) => t(
|
|
123
|
+
modelValue: t(s).searchKey,
|
|
124
|
+
"onUpdate:modelValue": a[1] || (a[1] = (o) => t(s).searchKey = o),
|
|
124
125
|
class: "hidden xs:block border-b-2 border-fm-color-neutral-gray-100",
|
|
125
126
|
placeholder: "search",
|
|
126
127
|
collapsible: ""
|
|
127
128
|
}, null, 8, ["modelValue"]),
|
|
128
129
|
t(m).campaigns.credit && t(m).campaigns.credit.length > 0 ? (l(), y(h, { key: 0 }, [
|
|
129
|
-
n("div",
|
|
130
|
-
n("div",
|
|
130
|
+
n("div", re, [
|
|
131
|
+
n("div", se, [
|
|
131
132
|
c(oe, {
|
|
132
|
-
modelValue: t(
|
|
133
|
-
"onUpdate:modelValue": a[2] || (a[2] = (o) => t(
|
|
133
|
+
modelValue: t(s).location,
|
|
134
|
+
"onUpdate:modelValue": a[2] || (a[2] = (o) => t(s).location = o),
|
|
134
135
|
label: "Location: ",
|
|
135
136
|
"show-item-label": !0,
|
|
136
137
|
icon: "storefront",
|
|
@@ -139,8 +140,8 @@ const ne = { class: "px-24 flex flex-col gap-y-16" }, se = { class: "flex items-
|
|
|
139
140
|
}, null, 8, ["modelValue", "items"])
|
|
140
141
|
]),
|
|
141
142
|
c(u, {
|
|
142
|
-
modelValue: t(
|
|
143
|
-
"onUpdate:modelValue": a[3] || (a[3] = (o) => t(
|
|
143
|
+
modelValue: t(s).searchKey,
|
|
144
|
+
"onUpdate:modelValue": a[3] || (a[3] = (o) => t(s).searchKey = o),
|
|
144
145
|
class: "xs:hidden",
|
|
145
146
|
placeholder: "search",
|
|
146
147
|
collapsible: ""
|
|
@@ -150,7 +151,7 @@ const ne = { class: "px-24 flex flex-col gap-y-16" }, se = { class: "flex items-
|
|
|
150
151
|
class: "xs:hidden",
|
|
151
152
|
"row-data": t(d),
|
|
152
153
|
"column-defs": T,
|
|
153
|
-
"search-value": t(
|
|
154
|
+
"search-value": t(s).searchKey,
|
|
154
155
|
"column-filter": [],
|
|
155
156
|
onRowClick: a[4] || (a[4] = (o) => f(o.original)),
|
|
156
157
|
"hide-footer": t(d).length < 10
|
|
@@ -158,7 +159,7 @@ const ne = { class: "px-24 flex flex-col gap-y-16" }, se = { class: "flex items-
|
|
|
158
159
|
c(P, { class: "hidden xs:flex flex-col mx-[-24px]" }, {
|
|
159
160
|
default: C(() => [
|
|
160
161
|
(l(!0), y(h, null, H(t(d).filter(
|
|
161
|
-
(o) => o.name.toLowerCase().includes(t(
|
|
162
|
+
(o) => o.name.toLowerCase().includes(t(s).searchKey.toLowerCase())
|
|
162
163
|
), (o) => (l(), v($, {
|
|
163
164
|
key: o._id.toString(),
|
|
164
165
|
onClick: (k) => f(o),
|
|
@@ -217,5 +218,5 @@ const ne = { class: "px-24 flex flex-col gap-y-16" }, se = { class: "flex items-
|
|
|
217
218
|
}
|
|
218
219
|
});
|
|
219
220
|
export {
|
|
220
|
-
|
|
221
|
+
Te as default
|
|
221
222
|
};
|
|
@@ -1,39 +1,40 @@
|
|
|
1
1
|
import { defineComponent, ref, watch, resolveComponent, openBlock, createElementBlock, createVNode, unref, isRef, withCtx, createBlock, createCommentVNode, computed, createElementVNode, Fragment, renderList, normalizeClass, toDisplayString, toRefs, normalizeStyle, resolveDynamicComponent, createSlots } from "vue";
|
|
2
2
|
import { _ } from "./lodash-B5I3zXaY.js";
|
|
3
|
-
import { z } from "./app-
|
|
3
|
+
import { z } from "./app-F5UOtzJ-.js";
|
|
4
4
|
import { Z as ZodHelper } from "./zod-Bg2FbC-D.js";
|
|
5
|
-
import { c as getCampaignSummaryObject, C as CampaignOptions } from "./campaign-
|
|
6
|
-
import { c as campaignRefinement, C as CampaignDtos, a as campaignTransform } from "./dto-
|
|
7
|
-
import { u as useMembershipStore } from "./membership-
|
|
8
|
-
import { u as useBusinessStore } from "./business-
|
|
9
|
-
import "./index-
|
|
10
|
-
import { R as RuleBuilder, a as isRuleEntry } from "./rule-builder-
|
|
5
|
+
import { c as getCampaignSummaryObject, C as CampaignOptions } from "./campaign-BWkn-fFd.js";
|
|
6
|
+
import { c as campaignRefinement, C as CampaignDtos, a as campaignTransform } from "./dto-CjOlAnWp.js";
|
|
7
|
+
import { u as useMembershipStore } from "./membership-DenkPJ5U.js";
|
|
8
|
+
import { u as useBusinessStore } from "./business-NXwwmhbL.js";
|
|
9
|
+
import "./index-OLChRkvG.js";
|
|
10
|
+
import { R as RuleBuilder, a as isRuleEntry } from "./rule-builder-EwN0tKLd.js";
|
|
11
11
|
import { J as JsonViewer } from "./JsonViewer-v8_C7l5N.js";
|
|
12
12
|
import { h as hooks } from "./moment-BWErdI6_.js";
|
|
13
|
-
import { f as featureVersionMapping } from "./campaign.enum
|
|
13
|
+
import { f as featureVersionMapping } from "./campaign.enum--kHpbveJ.js";
|
|
14
14
|
import { _ as _sfc_main$o } from "./ImageInput.vue_vue_type_script_setup_true_lang-ByhTB9Ie.js";
|
|
15
|
-
import { b as _sfc_main$m, a as _sfc_main$p, _ as _sfc_main$r } from "./EffectSheet.vue_vue_type_style_index_0_lang-
|
|
16
|
-
import { _ as _sfc_main$q } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-
|
|
17
|
-
import { _ as _sfc_main$t } from "./UserRuleGroup.vue_vue_type_script_setup_true_lang-
|
|
18
|
-
import { _ as _sfc_main$j, a as _sfc_main$k } from "./RuleGroup.vue_vue_type_script_setup_true_lang-
|
|
19
|
-
import { p as prompt, c as cases, f as firebaseStorage
|
|
20
|
-
import { u as useI18n } from "./vue-i18n-
|
|
21
|
-
import { b as TypeToTriggerOptions, _ as _sfc_main$u, a as _sfc_main$v } from "./trigger-
|
|
22
|
-
import { _ as _sfc_main$s } from "./MessageInput.vue_vue_type_script_setup_true_lang-
|
|
23
|
-
import { c as calculateNextScheduleAt, S as SummarizeRrule, R as RRule } from "./rule-
|
|
24
|
-
import { _ as _sfc_main$l, a as _sfc_main$n } from "./VoucherEditor.vue_vue_type_script_setup_true_lang-
|
|
25
|
-
import {
|
|
26
|
-
import { T as TEMPLATES } from "./index-
|
|
27
|
-
import "./index-
|
|
28
|
-
import "./index-
|
|
29
|
-
import { a as F_GAME_TYPE } from "./collectible.enum-
|
|
15
|
+
import { b as _sfc_main$m, a as _sfc_main$p, _ as _sfc_main$r } from "./EffectSheet.vue_vue_type_style_index_0_lang-CaSqYPQ2.js";
|
|
16
|
+
import { _ as _sfc_main$q } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-DwhQONu8.js";
|
|
17
|
+
import { _ as _sfc_main$t } from "./UserRuleGroup.vue_vue_type_script_setup_true_lang-w66fAQPQ.js";
|
|
18
|
+
import { _ as _sfc_main$j, a as _sfc_main$k } from "./RuleGroup.vue_vue_type_script_setup_true_lang-BgKlwCAG.js";
|
|
19
|
+
import { p as prompt, c as cases, f as firebaseStorage } from "./plugins-VONaCeWn.js";
|
|
20
|
+
import { u as useI18n } from "./vue-i18n-59FFzX8P.js";
|
|
21
|
+
import { b as TypeToTriggerOptions, _ as _sfc_main$u, a as _sfc_main$v } from "./trigger-Bh7yq_a0.js";
|
|
22
|
+
import { _ as _sfc_main$s } from "./MessageInput.vue_vue_type_script_setup_true_lang-DFPEfDUk.js";
|
|
23
|
+
import { c as calculateNextScheduleAt, S as SummarizeRrule, R as RRule } from "./rule-BqLIsoB6.js";
|
|
24
|
+
import { _ as _sfc_main$l, a as _sfc_main$n } from "./VoucherEditor.vue_vue_type_script_setup_true_lang-C31OGqSE.js";
|
|
25
|
+
import { s as FdoCreditLoyaltyReward, t as FdtoRandomReward, u as F_MISSION_TYPE, v as FdoThresholdCreditReward, w as FdtoThresholdReward, x as FdoMission } from "./index-Cu28MWwC.js";
|
|
26
|
+
import { T as TEMPLATES } from "./index-eJ4ofwfd.js";
|
|
27
|
+
import "./index-7QyaWVGn.js";
|
|
28
|
+
import "./index-CRa7QWQZ.js";
|
|
29
|
+
import { a as F_GAME_TYPE } from "./collectible.enum-BpsFdy57.js";
|
|
30
30
|
import { useCoreStore } from "@feedmepos/mf-common";
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
31
|
+
import { u as useLoading } from "./loading-CScT_lmc.js";
|
|
32
|
+
import { i as initCollectibleConfig } from "./helper-CiybWTiD.js";
|
|
33
|
+
import { C as CollectionUtils } from "./collection.fn-B-_j1A52.js";
|
|
33
34
|
import { s as sentenceCase$1 } from "./index-CuvNtC_M.js";
|
|
34
35
|
import { useDialog } from "@feedmepos/ui-library";
|
|
35
|
-
import { u as useCampaignStore } from "./campaign-
|
|
36
|
-
import { S as SvcConfig } from "./index-
|
|
36
|
+
import { u as useCampaignStore } from "./campaign-Iww5PvJV.js";
|
|
37
|
+
import { S as SvcConfig } from "./index-D7AjQ5_0.js";
|
|
37
38
|
import { a as cleanPF } from "./object-qECH92oz.js";
|
|
38
39
|
const _hoisted_1$g = { class: "space-y-24" }, _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
39
40
|
__name: "TimeRuleGroup",
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as P, ref as C, onMounted as Q, computed as H, resolveComponent as y, openBlock as i, createElementBlock as x, renderSlot as W, toDisplayString as w, createCommentVNode as v, createBlock as f, unref as e, isRef as q, createVNode as b, normalizeClass as G, watch as X, withCtx as F, resolveDynamicComponent as O, Fragment as _, createElementVNode as U, createTextVNode as ee } from "vue";
|
|
2
|
-
import { z as te } from "./app-
|
|
2
|
+
import { z as te } from "./app-F5UOtzJ-.js";
|
|
3
3
|
import { Z as u } from "./zod-Bg2FbC-D.js";
|
|
4
|
-
import { f as le, g as oe } from "./index-
|
|
5
|
-
import { u as Z } from "./vue-i18n-
|
|
6
|
-
import { s as R } from "./effect-
|
|
7
|
-
import { p as ae } from "./
|
|
8
|
-
import { O as ne } from "./app-
|
|
4
|
+
import { f as le, g as oe } from "./index-OLChRkvG.js";
|
|
5
|
+
import { u as Z } from "./vue-i18n-59FFzX8P.js";
|
|
6
|
+
import { s as R } from "./effect-BMe9xjgR.js";
|
|
7
|
+
import { p as ae } from "./plugins-VONaCeWn.js";
|
|
8
|
+
import { O as ne } from "./app-D2t3_10I.js";
|
|
9
9
|
const ie = { class: "flex flex-col gap-8" }, se = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "fm-typo-en-body-lg-600"
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import { defineComponent as D, ref as S, computed as E, onMounted as U, resolveComponent as i, openBlock as m, createElementBlock as _, Fragment as x, createVNode as c, unref as t, createElementVNode as n, withCtx as h, renderList as j, createBlock as w, resolveDynamicComponent as M, toDisplayString as p, h as H } from "vue";
|
|
2
2
|
import { _ as q } from "./campaign-CpzFl8Vr.js";
|
|
3
3
|
import { useDialog as z, components as G } from "@feedmepos/ui-library";
|
|
4
|
-
import {
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
4
|
+
import { p as J } from "./plugins-VONaCeWn.js";
|
|
5
|
+
import { u as Q } from "./loading-CScT_lmc.js";
|
|
6
|
+
import { u as W } from "./business-NXwwmhbL.js";
|
|
7
|
+
import { u as X } from "./campaign-Iww5PvJV.js";
|
|
8
|
+
import { a as L, b as V, g as Y } from "./campaign-BWkn-fFd.js";
|
|
9
|
+
import { u as Z } from "./vue-i18n-59FFzX8P.js";
|
|
9
10
|
import { _ as ee } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
|
|
10
|
-
import { _ as te } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-
|
|
11
|
-
import { u as oe } from "./template-
|
|
12
|
-
import { c as g } from "./index-
|
|
11
|
+
import { _ as te } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-CRK5WI7g.js";
|
|
12
|
+
import { u as oe } from "./template-bVlMDuHk.js";
|
|
13
|
+
import { c as g } from "./index-CvKxhzaQ.js";
|
|
13
14
|
const ae = { class: "px-24 flex flex-col gap-y-16" }, ne = { class: "flex items-center justify-between w-full" }, se = { class: "flex gap-8 overflow-x-auto" }, re = { class: "space-y-8" }, ce = { class: "flex w-full gap-4 items-center" }, ie = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, le = { class: "space-y-4" }, me = { class: "fm-typo-en-body-lg-600" }, pe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, de = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ue = /* @__PURE__ */ n("img", {
|
|
14
15
|
src: q,
|
|
15
16
|
class: "aspect-square w-[150px]"
|
|
16
|
-
}, null, -1), fe = { class: "flex flex-col gap-16 text-center" }, ye = { class: "fm-typo-en-title-sm-800" }, ge = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" },
|
|
17
|
+
}, null, -1), fe = { class: "flex flex-col gap-16 text-center" }, ye = { class: "fm-typo-en-title-sm-800" }, ge = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Be = /* @__PURE__ */ D({
|
|
17
18
|
__name: "Experience",
|
|
18
19
|
setup(_e) {
|
|
19
20
|
const { t: s } = Z(), I = {
|
|
@@ -23,7 +24,7 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, ne = { class: "flex items-
|
|
|
23
24
|
value: "create",
|
|
24
25
|
isPrimary: !0,
|
|
25
26
|
prependIcon: "add"
|
|
26
|
-
}, P = oe("POINT", z()), B = W(), l = X(), { global: T, minor: v } =
|
|
27
|
+
}, P = oe("POINT", z()), B = W(), l = X(), { global: T, minor: v } = Q, r = S({
|
|
27
28
|
searchKey: "",
|
|
28
29
|
location: null
|
|
29
30
|
}), f = E(
|
|
@@ -62,7 +63,7 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, ne = { class: "flex items-
|
|
|
62
63
|
}
|
|
63
64
|
], b = S();
|
|
64
65
|
async function C(e) {
|
|
65
|
-
await
|
|
66
|
+
await J.remove(`Are you sure you want to remove ${e.name}?`) && await v(
|
|
66
67
|
async () => {
|
|
67
68
|
await g.delete(e._id), await l.read("POINT");
|
|
68
69
|
},
|
|
@@ -218,5 +219,5 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, ne = { class: "flex items-
|
|
|
218
219
|
}
|
|
219
220
|
});
|
|
220
221
|
export {
|
|
221
|
-
|
|
222
|
+
Be as default
|
|
222
223
|
};
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { defineComponent as V, ref as y, computed as q, onMounted as x, resolveComponent as s, openBlock as r, createBlock as m, unref as u, withCtx as d, createVNode as i, normalizeClass as p, createCommentVNode as j, createElementVNode as I, toDisplayString as h, createElementBlock as M, Fragment as O, renderList as S } from "vue";
|
|
2
|
+
const A = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-hidden whitespace-nowrap" }, N = /* @__PURE__ */ V({
|
|
3
|
+
__name: "FilterChip",
|
|
4
|
+
props: {
|
|
5
|
+
modelValue: {
|
|
6
|
+
type: Array,
|
|
7
|
+
required: !1
|
|
8
|
+
},
|
|
9
|
+
label: {
|
|
10
|
+
type: String,
|
|
11
|
+
required: !1,
|
|
12
|
+
default: ""
|
|
13
|
+
},
|
|
14
|
+
showItemLabel: {
|
|
15
|
+
type: Boolean,
|
|
16
|
+
default: !1
|
|
17
|
+
},
|
|
18
|
+
placement: {
|
|
19
|
+
type: String,
|
|
20
|
+
required: !1,
|
|
21
|
+
default: "bottom-end"
|
|
22
|
+
},
|
|
23
|
+
class: {
|
|
24
|
+
type: String,
|
|
25
|
+
required: !1
|
|
26
|
+
},
|
|
27
|
+
disabled: {
|
|
28
|
+
type: Boolean,
|
|
29
|
+
required: !1
|
|
30
|
+
},
|
|
31
|
+
items: {
|
|
32
|
+
type: Array,
|
|
33
|
+
required: !0
|
|
34
|
+
},
|
|
35
|
+
icon: {
|
|
36
|
+
type: String,
|
|
37
|
+
required: !1
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
emits: ["update:model-value"],
|
|
41
|
+
setup(o, { emit: g }) {
|
|
42
|
+
const t = o, v = g, c = y(!1), e = y({}), k = q(() => {
|
|
43
|
+
if (!e.value || Object.keys(e.value).length == t.items.length)
|
|
44
|
+
return "All";
|
|
45
|
+
{
|
|
46
|
+
const l = Object.keys(e.value).length;
|
|
47
|
+
return `${l > 0 ? l : "None"} selected`;
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
function _(l) {
|
|
51
|
+
e.value[l] ? delete e.value[l] : e.value[l] = !0, v("update:model-value", Object.keys(e.value));
|
|
52
|
+
}
|
|
53
|
+
function C() {
|
|
54
|
+
Object.keys(e.value).length > 0 ? e.value = {} : e.value = t.items.reduce((l, n) => (l[n.value] = !0, l), {}), v("update:model-value", Object.keys(e.value));
|
|
55
|
+
}
|
|
56
|
+
return x(() => {
|
|
57
|
+
e.value = t.modelValue.reduce(
|
|
58
|
+
(l, n) => (l[n] = !0, l),
|
|
59
|
+
{}
|
|
60
|
+
), t.modelValue.length == 0;
|
|
61
|
+
}), (l, n) => {
|
|
62
|
+
const b = s("FmIcon"), F = s("FmChip"), f = s("FmMenuItem"), w = s("FmMenu");
|
|
63
|
+
return r(), m(w, {
|
|
64
|
+
placement: o.placement || "bottom-end",
|
|
65
|
+
disabled: o.disabled == !0,
|
|
66
|
+
"model-value": u(c),
|
|
67
|
+
onMenuChanged: n[0] || (n[0] = (a) => c.value = a),
|
|
68
|
+
"close-on-click": !1
|
|
69
|
+
}, {
|
|
70
|
+
"menu-button": d(() => [
|
|
71
|
+
i(F, {
|
|
72
|
+
label: o.label,
|
|
73
|
+
class: p(t.class || "text-fm-color-neutral-gray-400 cursor-pointer")
|
|
74
|
+
}, {
|
|
75
|
+
default: d(() => [
|
|
76
|
+
t.icon ? (r(), m(b, {
|
|
77
|
+
key: 0,
|
|
78
|
+
name: t.icon,
|
|
79
|
+
class: p(t.class),
|
|
80
|
+
outline: "",
|
|
81
|
+
size: "sm"
|
|
82
|
+
}, null, 8, ["name", "class"])) : j("", !0),
|
|
83
|
+
I("div", A, h(t.label) + " " + h(o.showItemLabel ? u(k) : ""), 1),
|
|
84
|
+
i(b, {
|
|
85
|
+
name: u(c) ? "keyboard_arrow_up" : "keyboard_arrow_down",
|
|
86
|
+
class: p(t.class),
|
|
87
|
+
outline: "",
|
|
88
|
+
size: "sm"
|
|
89
|
+
}, null, 8, ["name", "class"])
|
|
90
|
+
]),
|
|
91
|
+
_: 1
|
|
92
|
+
}, 8, ["label", "class"])
|
|
93
|
+
]),
|
|
94
|
+
default: d(() => [
|
|
95
|
+
i(f, {
|
|
96
|
+
"model-value": Object.keys(u(e)).length === t.items.length,
|
|
97
|
+
label: "All",
|
|
98
|
+
"has-checkbox": !0,
|
|
99
|
+
indeterminate: !0,
|
|
100
|
+
onClick: C
|
|
101
|
+
}, null, 8, ["model-value"]),
|
|
102
|
+
(r(!0), M(O, null, S(t.items ?? [], (a) => (r(), m(f, {
|
|
103
|
+
key: a.value,
|
|
104
|
+
value: a.value,
|
|
105
|
+
label: a.label,
|
|
106
|
+
"has-checkbox": !0,
|
|
107
|
+
"model-value": u(e)[a.value],
|
|
108
|
+
"onUpdate:modelValue": (B) => _(a.value)
|
|
109
|
+
}, null, 8, ["value", "label", "model-value", "onUpdate:modelValue"]))), 128))
|
|
110
|
+
]),
|
|
111
|
+
_: 1
|
|
112
|
+
}, 8, ["placement", "disabled", "model-value"]);
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
});
|
|
116
|
+
export {
|
|
117
|
+
N as _
|
|
118
|
+
};
|