@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.
Files changed (129) hide show
  1. package/dist/Analytic-1heLfSqq.js +427 -0
  2. package/dist/App-BOM2IfBO.js +4630 -0
  3. package/dist/Bin-BgYzSjrq.js +166 -0
  4. package/dist/Broadcast-DHeN_79K.js +233 -0
  5. package/dist/CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DFOIbmI6.js +121 -0
  6. package/dist/Card-CuJ7bMy5.js +911 -0
  7. package/dist/ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js +97 -0
  8. package/dist/Collections-D1FRwIRi.js +458 -0
  9. package/dist/Credit-CeYpgCod.js +228 -0
  10. package/dist/CustomSelect.vue_vue_type_script_setup_true_lang-Du7fRSZC.js +128 -0
  11. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-B8lOyyAc.js +2194 -0
  12. package/dist/EffectSheet.vue_vue_type_style_index_0_lang-De2lhmbT.js +348 -0
  13. package/dist/Experience-D-tJxul7.js +229 -0
  14. package/dist/FileSaver.min-NlMItPOc.js +74 -0
  15. package/dist/FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js +129 -0
  16. package/dist/Game-BOmYWwRj.js +284 -0
  17. package/dist/ImageInput.vue_vue_type_script_setup_true_lang-D1KQpDGg.js +144 -0
  18. package/dist/Index-CRBYEPFf.js +259 -0
  19. package/dist/JsonViewer-v8_C7l5N.js +87 -0
  20. package/dist/LottieAnimation.vue_vue_type_script_setup_true_lang-CyGJxUol.js +18737 -0
  21. package/dist/MainLayout-B1aJoR95.js +41 -0
  22. package/dist/Marketing-D7WunOsO.js +319 -0
  23. package/dist/Member-iYAPEdoQ.js +279 -0
  24. package/dist/MemberList-CtR-UjtG.js +1607 -0
  25. package/dist/MemberOverview-wL_ailso.js +58 -0
  26. package/dist/MemberTransactions-BMQOdkr2.js +45 -0
  27. package/dist/MessageInput.vue_vue_type_script_setup_true_lang-DhJlcYpw.js +60553 -0
  28. package/dist/Mission-DSBH4Di0.js +302 -0
  29. package/dist/Overview-C0KCN3fH.js +1079 -0
  30. package/dist/Point-AN7wmCXY.js +232 -0
  31. package/dist/Promotion-Cbf4W6Vh.js +289 -0
  32. package/dist/Queue-Bo_RtLpU.js +260 -0
  33. package/dist/Record-BphvsxDb.js +341 -0
  34. package/dist/Reward-CgHUAB5V.js +442 -0
  35. package/dist/RewardGroup.vue_vue_type_script_setup_true_lang-DaBRd_Kw.js +150 -0
  36. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-C_65qxpU.js +1763 -0
  37. package/dist/Segment-Cc0D6nPj.js +882 -0
  38. package/dist/SelectItems.vue_vue_type_script_setup_true_lang-BxUG7_bX.js +181 -0
  39. package/dist/SendCollectionSheet.vue_vue_type_script_setup_true_lang-bqKHjikC.js +188 -0
  40. package/dist/SendVoucherSheet.vue_vue_type_script_setup_true_lang-DA7bevEn.js +147 -0
  41. package/dist/Setting-DjVTTqky.js +1918 -0
  42. package/dist/SettingAdvertisements-BL81KD_S.js +262 -0
  43. package/dist/Store-DqXIQ9EY.js +1842 -0
  44. package/dist/StoreRewards-xlzAHJkc.js +423 -0
  45. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-OphuWknh.js +995 -0
  46. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-DGSjAbol.js +139 -0
  47. package/dist/Tier-DadaaAEc.js +895 -0
  48. package/dist/Title-BDBxQMEm.js +566 -0
  49. package/dist/Transaction-BRGCw9Va.js +39 -0
  50. package/dist/UserRuleGroup.vue_vue_type_script_setup_true_lang-qe26FZBo.js +130 -0
  51. package/dist/Voucher-CtvWJfVU.js +384 -0
  52. package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-dS7n6KJt.js +419 -0
  53. package/dist/ZodTextField.vue_vue_type_script_setup_true_lang-ndun9vf-.js +56 -0
  54. package/dist/_commonjsHelpers-BkfeUUK-.js +28 -0
  55. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
  56. package/dist/app-9QTXPjre.js +57962 -0
  57. package/dist/app-UNZJVzly.js +7094 -0
  58. package/dist/app-wDQR6dpb.js +39 -0
  59. package/dist/app.js +6 -0
  60. package/dist/business-DtufpzhR.js +82 -0
  61. package/dist/campaign-63K4Xtsd.js +94 -0
  62. package/dist/campaign-CpzFl8Vr.js +4 -0
  63. package/dist/campaign-Dm85zK-z.js +1810 -0
  64. package/dist/campaign.enum-DBWgoidX.js +20 -0
  65. package/dist/campaign.fn-BpifzSGC.js +758 -0
  66. package/dist/collectible.enum-2_2_6r39.js +19 -0
  67. package/dist/collection.fn-B2rlSiv_.js +26 -0
  68. package/dist/dto-Df83CuN3.js +216 -0
  69. package/dist/effect-BUEqEGkq.js +78 -0
  70. package/dist/email-addresses-BUNKzO1f.js +705 -0
  71. package/dist/export-BzY3BDZJ.js +97 -0
  72. package/dist/feedme.ico +0 -0
  73. package/dist/helper-BaJdC23g.js +71 -0
  74. package/dist/index-BA5QwPCT.js +146 -0
  75. package/dist/index-BInlN52T.js +54 -0
  76. package/dist/index-BLjKPiBb.js +44 -0
  77. package/dist/index-BQTPw5fM.js +30076 -0
  78. package/dist/index-BSQCStAn.js +38 -0
  79. package/dist/index-Bzv6BHPk.js +32269 -0
  80. package/dist/index-C0XYFg_a.js +3077 -0
  81. package/dist/index-CuvNtC_M.js +61 -0
  82. package/dist/index-D_hUHpqX.js +31 -0
  83. package/dist/index-DlwtDkgr.js +32 -0
  84. package/dist/index-DrAbySpd.js +8859 -0
  85. package/dist/index-JxOM03oW.js +3 -0
  86. package/dist/index-X9YonBq5.js +76 -0
  87. package/dist/index-gvl1UKmI.js +2134 -0
  88. package/dist/index-vh86FiIQ.js +10 -0
  89. package/dist/index-zy0pOMPl.js +121 -0
  90. package/dist/index.esm2017-WVBFvkg-.js +3069 -0
  91. package/dist/loading-CKbcLJje.js +71 -0
  92. package/dist/lodash-B5I3zXaY.js +3678 -0
  93. package/dist/membership-BMv4jrI_.js +235 -0
  94. package/dist/moment-D7p2TMB-.js +2583 -0
  95. package/dist/money-iY-Nby0p.js +15 -0
  96. package/dist/number-CluL-GzZ.js +12 -0
  97. package/dist/object-qECH92oz.js +26 -0
  98. package/dist/objectId-dwaoBfJX.js +7 -0
  99. package/dist/objectid-sIFo0b00.js +145 -0
  100. package/dist/plugins-BlvUeMc1.js +208 -0
  101. package/dist/reward-CZlHuvJJ.js +36 -0
  102. package/dist/rule-DMH3fchR.js +1951 -0
  103. package/dist/rule-builder-BvBTYyZq.js +102 -0
  104. package/dist/style.css +4 -0
  105. package/dist/template-CzqV_mzm.js +190 -0
  106. package/dist/tier-BJDhpH6X.js +4 -0
  107. package/dist/tiers/tier=1.png +0 -0
  108. package/dist/tiers/tier=2.png +0 -0
  109. package/dist/tiers/tier=3.png +0 -0
  110. package/dist/tiers/tier=4.png +0 -0
  111. package/dist/timezone-Bo8HWoc4.js +1151 -0
  112. package/dist/titles/type=diamond.png +0 -0
  113. package/dist/titles/type=drinks.png +0 -0
  114. package/dist/titles/type=food.png +0 -0
  115. package/dist/titles/type=heart.png +0 -0
  116. package/dist/titles/type=medal.png +0 -0
  117. package/dist/titles/type=spend.png +0 -0
  118. package/dist/titles/type=thank-you.png +0 -0
  119. package/dist/titles/type=thumbs-up.png +0 -0
  120. package/dist/titles/type=years.png +0 -0
  121. package/dist/trigger-BGG22zoh.js +144 -0
  122. package/dist/tslib.es6-BCqqvLQ_.js +44 -0
  123. package/dist/type_drinks-D6jnpvwV.js +4 -0
  124. package/dist/usePagination-Ds-cuHop.js +223 -0
  125. package/dist/user-DesAMEEX.js +54 -0
  126. package/dist/vue-i18n-CN3WXgAO.js +2365 -0
  127. package/dist/xlsx-BKuxyTY9.js +15491 -0
  128. package/dist/zod-Bg2FbC-D.js +90 -0
  129. 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
+ };