@feedmepos/mf-connect 0.0.16-beta.10 → 0.0.16-beta.12

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 (85) hide show
  1. package/dist/{Analytic-BVk0jPDU.js → Analytic-DIc9BYb0.js} +32 -20
  2. package/dist/{App-BbAalq1k.js → App-BzzL9_Jw.js} +33 -27
  3. package/dist/Broadcast-dVPgK5QV.js +223 -0
  4. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DiU3MnH0.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-TnEPvafD.js} +18 -11
  5. package/dist/{Card-B5in1RMa.js → Card-Bj2Yd2pr.js} +178 -158
  6. package/dist/ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js +97 -0
  7. package/dist/Collections-Fkb_zzqZ.js +453 -0
  8. package/dist/{Credit-Bc9EzdsC.js → Credit-DHn9OkE8.js} +78 -69
  9. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-C1ZXQski.js +2788 -0
  10. package/dist/EffectSheet.vue_vue_type_style_index_0_lang-D6mWny8y.js +344 -0
  11. package/dist/{Experience-CgKak5ik.js → Experience-DX3aJihS.js} +64 -55
  12. package/dist/{Game-QhfKqrN_.js → Game-CcVQvETd.js} +54 -45
  13. package/dist/ImageInput.vue_vue_type_script_setup_true_lang-rWUkV9gn.js +144 -0
  14. package/dist/JsonViewer-v8_C7l5N.js +87 -0
  15. package/dist/LottieAnimation.vue_vue_type_script_setup_true_lang-CyGJxUol.js +18737 -0
  16. package/dist/MainLayout-B1aJoR95.js +41 -0
  17. package/dist/{Marketing-CSx4N7UJ.js → Marketing-B9kykWEh.js} +79 -72
  18. package/dist/{Member-CY6WMD8D.js → Member-RoJSCSC5.js} +25 -22
  19. package/dist/{MemberList-8iRwm7Sz.js → MemberList-BUDxqMEK.js} +321 -307
  20. package/dist/{MemberTransactions-CknqkWO3.js → MemberTransactions-Bh_tT1Rp.js} +1 -1
  21. package/dist/MessageInput.vue_vue_type_script_setup_true_lang-Cj3-JHOX.js +432 -0
  22. package/dist/{Mission-BTy1p7lU.js → Mission-DDvgCLy0.js} +50 -40
  23. package/dist/{Point-A6B_ggSy.js → Point-BbPkt4kF.js} +67 -58
  24. package/dist/Promotion-DEo-lxpX.js +221 -0
  25. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-BGjeTeqS.js +1751 -0
  26. package/dist/{Segment-CFVXtyEj.js → Segment-DAcpZWIN.js} +145 -130
  27. package/dist/{Setting-Jmtw-_DV.js → Setting-CgXohUPt.js} +167 -154
  28. package/dist/{Store-DQypT-7e.js → Store-BVyHbQ8o.js} +504 -489
  29. package/dist/{StoreRewards-M-utm0iI.js → StoreRewards-sccMDbkj.js} +124 -108
  30. package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-B60mQ5kq.js → StoreTransactions.vue_vue_type_script_setup_true_lang--sdQ_l8g.js} +131 -123
  31. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-CXlkvt2u.js +139 -0
  32. package/dist/{Tier-D1jymeLK.js → Tier--P27XXbB.js} +144 -125
  33. package/dist/{Title-DN9DIP2k.js → Title-B27S3SxD.js} +107 -90
  34. package/dist/{Transaction-BAJvAoU6.js → Transaction-CYTtwwHY.js} +2 -2
  35. package/dist/Voucher-BZ8PKgO5.js +488 -0
  36. package/dist/ZodTextField.vue_vue_type_script_setup_true_lang-CWt4tVdk.js +55 -0
  37. package/dist/_commonjsHelpers-BkfeUUK-.js +28 -0
  38. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
  39. package/dist/app-CnKzqAcN.js +53428 -0
  40. package/dist/app-FfENBuoE.js +5381 -0
  41. package/dist/app-wDQR6dpb.js +39 -0
  42. package/dist/app.js +2 -1
  43. package/dist/business-CXyP9G7A.js +78 -0
  44. package/dist/campaign-0aM2KYOy.js +96 -0
  45. package/dist/campaign-CpzFl8Vr.js +4 -0
  46. package/dist/collection.fn-FicQhH1t.js +26 -0
  47. package/dist/dto-BiYLkVdL.js +1169 -0
  48. package/dist/effect-Cg-eNEjg.js +61 -0
  49. package/dist/{export-DjeNY5Pc.js → export-D7BuObOL.js} +19 -16
  50. package/dist/helper-DvD-D7c7.js +71 -0
  51. package/dist/index-B1Q0GAWp.js +95 -0
  52. package/dist/index-B4UZgSB-.js +28058 -0
  53. package/dist/index-B6c-fUij.js +203 -0
  54. package/dist/index-BP_5cfKa.js +38 -0
  55. package/dist/index-BRXg5Si1.js +2071 -0
  56. package/dist/index-BuDwICBJ.js +761 -0
  57. package/dist/index-CDMC-8iO.js +94 -0
  58. package/dist/index-CcZt3OrE.js +73 -0
  59. package/dist/index-CuvNtC_M.js +61 -0
  60. package/dist/index-DA-fzkRR.js +1737 -0
  61. package/dist/index-Dbd4WA4r.js +61 -0
  62. package/dist/index-Dkeb_9ER.js +8832 -0
  63. package/dist/index-DmdKoKk_.js +298 -0
  64. package/dist/index-G-88ujCM.js +3 -0
  65. package/dist/loading-uCNeZibp.js +32697 -0
  66. package/dist/lodash-B5I3zXaY.js +3678 -0
  67. package/dist/membership-DFRO9TyM.js +221 -0
  68. package/dist/moment-BWErdI6_.js +2578 -0
  69. package/dist/money-OtkT4Pzp.js +15 -0
  70. package/dist/number-Cg3NCouc.js +12 -0
  71. package/dist/object-qECH92oz.js +26 -0
  72. package/dist/objectId-dwaoBfJX.js +7 -0
  73. package/dist/rule-Ch2HRiGw.js +1973 -0
  74. package/dist/rule-builder-B_M9yvEe.js +89 -0
  75. package/dist/template-1o0LbOoJ.js +190 -0
  76. package/dist/usePagination-BeF5K3M7.js +223 -0
  77. package/dist/vue-i18n-AtGIa4qH.js +2365 -0
  78. package/dist/xlsx-pChq0adn.js +15491 -0
  79. package/dist/zod-W_PvIofQ.js +90 -0
  80. package/package.json +3 -3
  81. package/dist/Collections-CFCZ9YIG.js +0 -4
  82. package/dist/MainLayout-JbHzENFy.js +0 -4
  83. package/dist/app-BpzzygYP.js +0 -87765
  84. package/dist/money-DKGIIplY.js +0 -15
  85. package/dist/number-tPodRxTN.js +0 -12
@@ -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-CXyP9G7A.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
+ };