@feedmepos/mf-connect 0.1.58-prod → 0.1.59-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-1heLfSqq.js +427 -0
- package/dist/App-BOM2IfBO.js +4630 -0
- package/dist/Bin-BgYzSjrq.js +166 -0
- package/dist/Broadcast-DHeN_79K.js +233 -0
- package/dist/CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DFOIbmI6.js +121 -0
- package/dist/Card-CuJ7bMy5.js +911 -0
- package/dist/ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js +97 -0
- package/dist/Collections-D1FRwIRi.js +458 -0
- package/dist/Credit-CeYpgCod.js +228 -0
- package/dist/CustomSelect.vue_vue_type_script_setup_true_lang-Du7fRSZC.js +128 -0
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-B8lOyyAc.js +2194 -0
- package/dist/EffectSheet.vue_vue_type_style_index_0_lang-De2lhmbT.js +348 -0
- package/dist/Experience-D-tJxul7.js +229 -0
- package/dist/FileSaver.min-NlMItPOc.js +74 -0
- package/dist/FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js +129 -0
- package/dist/Game-BOmYWwRj.js +284 -0
- package/dist/ImageInput.vue_vue_type_script_setup_true_lang-D1KQpDGg.js +144 -0
- package/dist/Index-CRBYEPFf.js +259 -0
- package/dist/JsonViewer-v8_C7l5N.js +87 -0
- package/dist/LottieAnimation.vue_vue_type_script_setup_true_lang-CyGJxUol.js +18737 -0
- package/dist/MainLayout-B1aJoR95.js +41 -0
- package/dist/Marketing-D7WunOsO.js +319 -0
- package/dist/Member-iYAPEdoQ.js +279 -0
- package/dist/MemberList-CtR-UjtG.js +1607 -0
- package/dist/MemberOverview-wL_ailso.js +58 -0
- package/dist/MemberTransactions-BMQOdkr2.js +45 -0
- package/dist/MessageInput.vue_vue_type_script_setup_true_lang-DhJlcYpw.js +60553 -0
- package/dist/Mission-DSBH4Di0.js +302 -0
- package/dist/Overview-C0KCN3fH.js +1079 -0
- package/dist/Point-AN7wmCXY.js +232 -0
- package/dist/Promotion-Cbf4W6Vh.js +289 -0
- package/dist/Queue-Bo_RtLpU.js +260 -0
- package/dist/Record-BphvsxDb.js +341 -0
- package/dist/Reward-CgHUAB5V.js +442 -0
- package/dist/RewardGroup.vue_vue_type_script_setup_true_lang-DaBRd_Kw.js +150 -0
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-C_65qxpU.js +1763 -0
- package/dist/Segment-Cc0D6nPj.js +882 -0
- package/dist/SelectItems.vue_vue_type_script_setup_true_lang-BxUG7_bX.js +181 -0
- package/dist/SendCollectionSheet.vue_vue_type_script_setup_true_lang-bqKHjikC.js +188 -0
- package/dist/SendVoucherSheet.vue_vue_type_script_setup_true_lang-DA7bevEn.js +147 -0
- package/dist/Setting-DjVTTqky.js +1918 -0
- package/dist/SettingAdvertisements-BL81KD_S.js +262 -0
- package/dist/Store-DqXIQ9EY.js +1842 -0
- package/dist/StoreRewards-xlzAHJkc.js +423 -0
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-OphuWknh.js +995 -0
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-DGSjAbol.js +139 -0
- package/dist/Tier-DadaaAEc.js +895 -0
- package/dist/Title-BDBxQMEm.js +566 -0
- package/dist/Transaction-BRGCw9Va.js +39 -0
- package/dist/UserRuleGroup.vue_vue_type_script_setup_true_lang-qe26FZBo.js +130 -0
- package/dist/Voucher-CtvWJfVU.js +384 -0
- package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-dS7n6KJt.js +419 -0
- package/dist/ZodTextField.vue_vue_type_script_setup_true_lang-ndun9vf-.js +56 -0
- package/dist/_commonjsHelpers-BkfeUUK-.js +28 -0
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
- package/dist/app-9QTXPjre.js +57962 -0
- package/dist/app-UNZJVzly.js +7094 -0
- package/dist/app-wDQR6dpb.js +39 -0
- package/dist/app.js +6 -0
- package/dist/business-DtufpzhR.js +82 -0
- package/dist/campaign-63K4Xtsd.js +94 -0
- package/dist/campaign-CpzFl8Vr.js +4 -0
- package/dist/campaign-Dm85zK-z.js +1810 -0
- package/dist/campaign.enum-DBWgoidX.js +20 -0
- package/dist/campaign.fn-BpifzSGC.js +758 -0
- package/dist/collectible.enum-2_2_6r39.js +19 -0
- package/dist/collection.fn-B2rlSiv_.js +26 -0
- package/dist/dto-Df83CuN3.js +216 -0
- package/dist/effect-BUEqEGkq.js +78 -0
- package/dist/email-addresses-BUNKzO1f.js +705 -0
- package/dist/export-BzY3BDZJ.js +97 -0
- package/dist/feedme.ico +0 -0
- package/dist/helper-BaJdC23g.js +71 -0
- package/dist/index-BA5QwPCT.js +146 -0
- package/dist/index-BInlN52T.js +54 -0
- package/dist/index-BLjKPiBb.js +44 -0
- package/dist/index-BQTPw5fM.js +30076 -0
- package/dist/index-BSQCStAn.js +38 -0
- package/dist/index-Bzv6BHPk.js +32269 -0
- package/dist/index-C0XYFg_a.js +3077 -0
- package/dist/index-CuvNtC_M.js +61 -0
- package/dist/index-D_hUHpqX.js +31 -0
- package/dist/index-DlwtDkgr.js +32 -0
- package/dist/index-DrAbySpd.js +8859 -0
- package/dist/index-JxOM03oW.js +3 -0
- package/dist/index-X9YonBq5.js +76 -0
- package/dist/index-gvl1UKmI.js +2134 -0
- package/dist/index-vh86FiIQ.js +10 -0
- package/dist/index-zy0pOMPl.js +121 -0
- package/dist/index.esm2017-WVBFvkg-.js +3069 -0
- package/dist/loading-CKbcLJje.js +71 -0
- package/dist/lodash-B5I3zXaY.js +3678 -0
- package/dist/membership-BMv4jrI_.js +235 -0
- package/dist/moment-D7p2TMB-.js +2583 -0
- package/dist/money-iY-Nby0p.js +15 -0
- package/dist/number-CluL-GzZ.js +12 -0
- package/dist/object-qECH92oz.js +26 -0
- package/dist/objectId-dwaoBfJX.js +7 -0
- package/dist/objectid-sIFo0b00.js +145 -0
- package/dist/plugins-BlvUeMc1.js +208 -0
- package/dist/reward-CZlHuvJJ.js +36 -0
- package/dist/rule-DMH3fchR.js +1951 -0
- package/dist/rule-builder-BvBTYyZq.js +102 -0
- package/dist/style.css +4 -0
- package/dist/template-CzqV_mzm.js +190 -0
- package/dist/tier-BJDhpH6X.js +4 -0
- package/dist/tiers/tier=1.png +0 -0
- package/dist/tiers/tier=2.png +0 -0
- package/dist/tiers/tier=3.png +0 -0
- package/dist/tiers/tier=4.png +0 -0
- package/dist/timezone-Bo8HWoc4.js +1151 -0
- package/dist/titles/type=diamond.png +0 -0
- package/dist/titles/type=drinks.png +0 -0
- package/dist/titles/type=food.png +0 -0
- package/dist/titles/type=heart.png +0 -0
- package/dist/titles/type=medal.png +0 -0
- package/dist/titles/type=spend.png +0 -0
- package/dist/titles/type=thank-you.png +0 -0
- package/dist/titles/type=thumbs-up.png +0 -0
- package/dist/titles/type=years.png +0 -0
- package/dist/trigger-BGG22zoh.js +144 -0
- package/dist/tslib.es6-BCqqvLQ_.js +44 -0
- package/dist/type_drinks-D6jnpvwV.js +4 -0
- package/dist/usePagination-Ds-cuHop.js +223 -0
- package/dist/user-DesAMEEX.js +54 -0
- package/dist/vue-i18n-CN3WXgAO.js +2365 -0
- package/dist/xlsx-BKuxyTY9.js +15491 -0
- package/dist/zod-Bg2FbC-D.js +90 -0
- package/package.json +1 -1
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { defineComponent as N, ref as C, computed as L, watch as E, resolveComponent as g, openBlock as o, createElementBlock as i, Fragment as y, toDisplayString as I, createCommentVNode as A, createElementVNode as M, createVNode as v, unref as u, renderList as S, createBlock as b, isRef as U, withCtx as F } from "vue";
|
|
2
|
+
import { u as T } from "./business-DtufpzhR.js";
|
|
3
|
+
function j(l, s, n) {
|
|
4
|
+
return l.some(
|
|
5
|
+
n instanceof Function ? n : (a) => a === s
|
|
6
|
+
) || l.push(s), l;
|
|
7
|
+
}
|
|
8
|
+
function q(l, s, n) {
|
|
9
|
+
return l.filter(
|
|
10
|
+
n instanceof Function ? (a) => !n(a) : (a) => a !== s
|
|
11
|
+
);
|
|
12
|
+
}
|
|
13
|
+
const D = {
|
|
14
|
+
key: 0,
|
|
15
|
+
class: "fm-typo-en-body-lg-400"
|
|
16
|
+
}, K = {
|
|
17
|
+
key: 1,
|
|
18
|
+
class: "space-y-4"
|
|
19
|
+
}, O = { key: 0 }, R = { key: 1 }, z = { key: 2 }, J = /* @__PURE__ */ N({
|
|
20
|
+
__name: "TargetLocationInput",
|
|
21
|
+
props: {
|
|
22
|
+
label: {
|
|
23
|
+
type: String
|
|
24
|
+
},
|
|
25
|
+
type: {
|
|
26
|
+
type: String,
|
|
27
|
+
default: "select"
|
|
28
|
+
},
|
|
29
|
+
modelValue: {
|
|
30
|
+
type: Object,
|
|
31
|
+
required: !0
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
emits: ["update:model-value"],
|
|
35
|
+
setup(l, { emit: s }) {
|
|
36
|
+
const n = T(), a = l, c = C(""), w = L(() => n.locations.filter(
|
|
37
|
+
(d) => {
|
|
38
|
+
var t;
|
|
39
|
+
return d.name.toLowerCase().includes(c.value.toLowerCase()) || ((t = d == null ? void 0 : d.code) == null ? void 0 : t.toLowerCase().includes(c.value.toLowerCase()));
|
|
40
|
+
}
|
|
41
|
+
)), p = s;
|
|
42
|
+
function k(d, t) {
|
|
43
|
+
const m = d ? j(a.modelValue || [], t.toString()) : q(
|
|
44
|
+
a.modelValue || n.locations.map((V) => V._id.toString()),
|
|
45
|
+
t.toString()
|
|
46
|
+
);
|
|
47
|
+
return p("update:model-value", m);
|
|
48
|
+
}
|
|
49
|
+
const r = C(!1), $ = L(() => {
|
|
50
|
+
var m, V;
|
|
51
|
+
const t = ((m = a.modelValue) == null ? void 0 : m.slice(0, 5).map((h) => {
|
|
52
|
+
var f;
|
|
53
|
+
return ((f = n.locationById(h)) == null ? void 0 : f.name) || h;
|
|
54
|
+
})) || [];
|
|
55
|
+
return a.modelValue && ((V = a.modelValue) == null ? void 0 : V.length) > 5 && t.push(`+${a.modelValue.length - 5} more`), t;
|
|
56
|
+
});
|
|
57
|
+
return E(r, (d) => {
|
|
58
|
+
d && (c.value = "");
|
|
59
|
+
}), (d, t) => {
|
|
60
|
+
const m = g("FmCheckbox"), V = g("FmChip"), h = g("FmField"), f = g("FmTextField"), B = g("FmMenu");
|
|
61
|
+
return o(), i(y, null, [
|
|
62
|
+
l.label ? (o(), i("div", D, I(l.label), 1)) : A("", !0),
|
|
63
|
+
l.type === "checkbox" ? (o(), i("div", K, [
|
|
64
|
+
M("div", null, [
|
|
65
|
+
v(m, {
|
|
66
|
+
value: null,
|
|
67
|
+
indeterminate: l.modelValue != null && l.modelValue.length > 0 && l.modelValue.length < u(n).locations.length,
|
|
68
|
+
label: "All locations",
|
|
69
|
+
"model-value": l.modelValue == null || l.modelValue.length === u(n).locations.length,
|
|
70
|
+
"onUpdate:modelValue": t[0] || (t[0] = (e) => p("update:model-value", e ? null : []))
|
|
71
|
+
}, null, 8, ["indeterminate", "model-value"])
|
|
72
|
+
]),
|
|
73
|
+
(o(!0), i(y, null, S(u(n).locations, (e) => (o(), i("div", {
|
|
74
|
+
key: e._id.toString()
|
|
75
|
+
}, [
|
|
76
|
+
v(m, {
|
|
77
|
+
value: e._id.toString(),
|
|
78
|
+
label: `${e.code ? `${e.code} - ` : ""} ${e.name}`,
|
|
79
|
+
"model-value": !l.modelValue || l.modelValue.includes(e._id.toString()),
|
|
80
|
+
"onUpdate:modelValue": (x) => k(x, e._id.toString())
|
|
81
|
+
}, null, 8, ["value", "label", "model-value", "onUpdate:modelValue"])
|
|
82
|
+
]))), 128))
|
|
83
|
+
])) : (o(), b(B, {
|
|
84
|
+
key: 2,
|
|
85
|
+
modelValue: u(r),
|
|
86
|
+
"onUpdate:modelValue": t[3] || (t[3] = (e) => U(r) ? r.value = e : null),
|
|
87
|
+
onMenuChanged: t[4] || (t[4] = (e) => r.value = e),
|
|
88
|
+
placement: "top-end"
|
|
89
|
+
}, {
|
|
90
|
+
"menu-button": F(() => [
|
|
91
|
+
v(h, {
|
|
92
|
+
"append-icon": u(r) ? "expand_more" : "expand_less",
|
|
93
|
+
class: "!h-auto"
|
|
94
|
+
}, {
|
|
95
|
+
default: F(() => [
|
|
96
|
+
!l.modelValue || l.modelValue.length == u(n).locations.length ? (o(), i("div", O, " All Locations ")) : l.modelValue.length ? (o(), i("div", z, [
|
|
97
|
+
(o(!0), i(y, null, S(u($), (e) => (o(), b(V, {
|
|
98
|
+
key: e,
|
|
99
|
+
label: e,
|
|
100
|
+
class: "max-w-[130px] text-ellipsis"
|
|
101
|
+
}, null, 8, ["label"]))), 128))
|
|
102
|
+
])) : (o(), i("div", R, "No Locations"))
|
|
103
|
+
]),
|
|
104
|
+
_: 1
|
|
105
|
+
}, 8, ["append-icon"])
|
|
106
|
+
]),
|
|
107
|
+
default: F(() => [
|
|
108
|
+
v(f, {
|
|
109
|
+
modelValue: u(c),
|
|
110
|
+
"onUpdate:modelValue": t[1] || (t[1] = (e) => U(c) ? c.value = e : null),
|
|
111
|
+
placeholder: "Search locations",
|
|
112
|
+
class: "my-8"
|
|
113
|
+
}, null, 8, ["modelValue"]),
|
|
114
|
+
v(m, {
|
|
115
|
+
class: "my-8",
|
|
116
|
+
value: null,
|
|
117
|
+
indeterminate: l.modelValue != null && l.modelValue.length > 0 && l.modelValue.length < u(n).locations.length,
|
|
118
|
+
label: "All locations",
|
|
119
|
+
"model-value": l.modelValue == null || l.modelValue.length === u(n).locations.length,
|
|
120
|
+
"onUpdate:modelValue": t[2] || (t[2] = (e) => p("update:model-value", e ? null : []))
|
|
121
|
+
}, null, 8, ["indeterminate", "model-value"]),
|
|
122
|
+
(o(!0), i(y, null, S(u(w), (e) => (o(), b(m, {
|
|
123
|
+
class: "my-8",
|
|
124
|
+
key: e._id.toString(),
|
|
125
|
+
value: e._id.toString(),
|
|
126
|
+
label: `${e.code ? `${e.code} - ` : ""} ${e.name}`,
|
|
127
|
+
"model-value": !l.modelValue || l.modelValue.includes(e._id.toString()),
|
|
128
|
+
"onUpdate:modelValue": (x) => k(x, e._id.toString())
|
|
129
|
+
}, null, 8, ["value", "label", "model-value", "onUpdate:modelValue"]))), 128))
|
|
130
|
+
]),
|
|
131
|
+
_: 1
|
|
132
|
+
}, 8, ["modelValue"]))
|
|
133
|
+
], 64);
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
});
|
|
137
|
+
export {
|
|
138
|
+
J as _
|
|
139
|
+
};
|