@feedmepos/mf-connect 0.1.0-beta.3 → 0.1.0-beta.31

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 (99) hide show
  1. package/dist/Analytic-C-QC9ivZ.js +424 -0
  2. package/dist/{App-gzbM97vW.js → App-NASVRSh2.js} +397 -384
  3. package/dist/{Broadcast-BwYZkTs0.js → Broadcast-Cffg7nbY.js} +32 -32
  4. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DIh9rz6T.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CA4kVwMl.js} +8 -8
  5. package/dist/Card-CmYFb1_Y.js +897 -0
  6. package/dist/{Collections-Df6tlo8S.js → Collections-CibvGIpU.js} +4 -4
  7. package/dist/{Credit-BPel8vA9.js → Credit-Ck6i9ySs.js} +14 -14
  8. package/dist/CustomSelect.vue_vue_type_script_setup_true_lang-DLnvDVgf.js +108 -0
  9. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-B35zbHHI.js +2198 -0
  10. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-BT8ucS5G.js → EffectSheet.vue_vue_type_style_index_0_lang-CQV77_cx.js} +8 -8
  11. package/dist/{Experience-CPpz1Zwx.js → Experience-CWUX2QvS.js} +8 -8
  12. package/dist/{Game-ByLblISC.js → Game-D3cdZrlc.js} +15 -15
  13. package/dist/Index-CWLZiYXT.js +255 -0
  14. package/dist/Marketing-Bol8eY5d.js +20070 -0
  15. package/dist/{Member-CCc_FEZY.js → Member-Cso-T2Xk.js} +4 -4
  16. package/dist/MemberList-Bqns9wko.js +1045 -0
  17. package/dist/{MemberTransactions-DD5ahSbY.js → MemberTransactions-zNw-30Xu.js} +1 -1
  18. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-DSPvWk4C.js → MessageInput.vue_vue_type_script_setup_true_lang-BLS5fNr6.js} +2 -2
  19. package/dist/{Mission-VH4057I-.js → Mission-C0-K0A_5.js} +98 -86
  20. package/dist/Overview-fZ9NvFKz.js +1024 -0
  21. package/dist/{Point-Bu3IlpH4.js → Point-D3gGhQlP.js} +23 -23
  22. package/dist/{Promotion-B45AOHis.js → Promotion-COCJIfu-.js} +53 -47
  23. package/dist/Record-C0a4Cn1U.js +209 -0
  24. package/dist/Reward-D0G4CBYd.js +411 -0
  25. package/dist/RewardGroup.vue_vue_type_script_setup_true_lang-zSOwxAcS.js +151 -0
  26. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-AmIdaAeX.js +1639 -0
  27. package/dist/Segment-eBM3aveX.js +567 -0
  28. package/dist/SelectItems.vue_vue_type_script_setup_true_lang-BgMuKAjE.js +181 -0
  29. package/dist/{Setting-CF09eRQJ.js → Setting-Dfye6fs5.js} +8 -8
  30. package/dist/Store-rQfwc8d6.js +1745 -0
  31. package/dist/{StoreRewards-0iGExjqQ.js → StoreRewards-DVTNMWdG.js} +12 -12
  32. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-3dvBoXz2.js +957 -0
  33. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-BEfxin47.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-DxGIUrmO.js} +1 -1
  34. package/dist/{Tier-IaeWe7rM.js → Tier-DekrYu5l.js} +327 -317
  35. package/dist/{Title-DD67Zxh5.js → Title-oAWsBqoM.js} +199 -183
  36. package/dist/{Transaction-BsPDnLzB.js → Transaction-Ss2XCksi.js} +2 -2
  37. package/dist/UserRuleGroup.vue_vue_type_script_setup_true_lang-BMIqnBts.js +130 -0
  38. package/dist/{Voucher-M7JfcKo0.js → Voucher-CjPJxdw8.js} +31 -31
  39. package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-DlWCpoOp.js +419 -0
  40. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-k0lprU2i.js → ZodTextField.vue_vue_type_script_setup_true_lang-FXQNhMrv.js} +1 -1
  41. package/dist/{app-HFICF0vL.js → app-C_zlbFNe.js} +1285 -1283
  42. package/dist/{app-DwujUNP-.js → app-WUJQRyEM.js} +1 -1
  43. package/dist/app.js +1 -1
  44. package/dist/{business-BaF1QJXa.js → business-C0e_E2xp.js} +1 -1
  45. package/dist/{campaign-CTDtmAE9.js → campaign-iWzbtNA5.js} +2 -2
  46. package/dist/collectible.enum-QITAo8Jg.js +19 -0
  47. package/dist/{collection.fn-DMW03W4R.js → collection.fn-R3hvasuZ.js} +2 -2
  48. package/dist/{dto-gpaNZHzQ.js → dto-D_tjJ72q.js} +78 -86
  49. package/dist/{effect-CBUmtwet.js → effect-_bpW5fmr.js} +9 -9
  50. package/dist/email-addresses-DUKn8uD0.js +705 -0
  51. package/dist/{export-Bdh_PbsW.js → export-CEBWZ8ko.js} +3 -3
  52. package/dist/{helper-Cu9elRvl.js → helper-CuF45pbY.js} +1 -1
  53. package/dist/{index-NXiDu42U.js → index-BO8RnVxy.js} +1 -1
  54. package/dist/{index-CArqG03W.js → index-BPc3wxOE.js} +39 -35
  55. package/dist/index-BXTQ6onZ.js +1067 -0
  56. package/dist/index-C4aPU80a.js +38 -0
  57. package/dist/{index-At6yms5t.js → index-CBzSPD25.js} +30 -26
  58. package/dist/{index-Ch6XwPzF.js → index-CR0ZVZQG.js} +1 -1
  59. package/dist/{index-DrGrOgZB.js → index-CXFwMV0s.js} +13 -1
  60. package/dist/index-CsaQJMAR.js +66 -0
  61. package/dist/{index-Dfdg2Q3E.js → index-Dh6xIUXJ.js} +1 -1
  62. package/dist/{index-ogzk-Mj4.js → index-LMvyNoHf.js} +1 -1
  63. package/dist/{index-Crw-Vgo5.js → index-S6sFiBxK.js} +1500 -1479
  64. package/dist/index-SpDFfOz_.js +54 -0
  65. package/dist/{index-CtH2S49l.js → index-Urbp7cdO.js} +203 -195
  66. package/dist/index-pHbs1GrF.js +29000 -0
  67. package/dist/{index.esm2017-CeJpvUbA.js → index.esm2017-BunOalUj.js} +33 -33
  68. package/dist/{loading-Cn8ml_vy.js → loading-CYFsZ9UB.js} +591 -597
  69. package/dist/{membership-CX4AKMlH.js → membership-C9089j0H.js} +51 -43
  70. package/dist/money-D-zGFohv.js +15 -0
  71. package/dist/number-UFl4zW6h.js +12 -0
  72. package/dist/objectid-BKIyQ5iE.js +145 -0
  73. package/dist/remy-vue-client-Cpppk9h-.js +1693 -0
  74. package/dist/reward-LYKGLzXz.js +36 -0
  75. package/dist/{rule-Cv83Y59R.js → rule-BUUKmR4_.js} +180 -177
  76. package/dist/{rule-builder-Dew4yB5Q.js → rule-builder-9JUuOcMH.js} +1 -1
  77. package/dist/style.css +1 -1
  78. package/dist/{template-CSnbgM1o.js → template-CkXuF0cN.js} +5 -5
  79. package/dist/trigger-DjAx9efN.js +114 -0
  80. package/dist/user-DbsZta3D.js +54 -0
  81. package/dist/{vue-i18n-CNH_IhVd.js → vue-i18n-yYO72Mbp.js} +2 -2
  82. package/dist/{xlsx-D4DUZHix.js → xlsx-Dagi6ArS.js} +1 -1
  83. package/package.json +8 -7
  84. package/dist/Analytic-BC5BA6pN.js +0 -622
  85. package/dist/Card-CBYQGKwY.js +0 -825
  86. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-PsrS7I0r.js +0 -2809
  87. package/dist/Marketing-D0vm80e_.js +0 -316
  88. package/dist/MemberList-CrnipE9y.js +0 -1733
  89. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-Ijc2OYh9.js +0 -1753
  90. package/dist/Segment-ZWsp48aC.js +0 -437
  91. package/dist/Store-B_G6Dhmq.js +0 -1511
  92. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-CaxUr9zl.js +0 -890
  93. package/dist/index-8MaN7rez.js +0 -762
  94. package/dist/index-BjdHxGDn.js +0 -298
  95. package/dist/index-CuvNtC_M.js +0 -61
  96. package/dist/index-RP0XOPRL.js +0 -29193
  97. package/dist/money-BTejgvKu.js +0 -15
  98. package/dist/number-Cen5TucC.js +0 -12
  99. package/dist/user-Bm4KttFq.js +0 -37
@@ -0,0 +1,181 @@
1
+ import { defineComponent as N, computed as f, ref as V, onMounted as H, resolveComponent as _, openBlock as c, createElementBlock as u, createVNode as i, withCtx as S, createElementVNode as p, toDisplayString as q, normalizeClass as A, Fragment as b, renderList as j, createCommentVNode as B } from "vue";
2
+ import { e as D } from "./app-WUJQRyEM.js";
3
+ import "./loading-CYFsZ9UB.js";
4
+ import { c as E } from "./object-qECH92oz.js";
5
+ const M = { class: "flex flex-col flex-nowrap" }, T = { class: "flex gap-16 items-center w-full" }, $ = { class: "flex grow items-center" }, z = { class: "grow text-fm-color-typo-secondary" }, K = { key: 0 }, J = { class: "px-16" }, X = /* @__PURE__ */ N({
6
+ __name: "SelectItems",
7
+ props: {
8
+ initialValue: {
9
+ type: Array,
10
+ default: () => []
11
+ },
12
+ filterItems: {
13
+ type: Function,
14
+ default: void 0
15
+ },
16
+ onComplete: {
17
+ type: Function,
18
+ required: !0
19
+ },
20
+ maxHeight: {
21
+ type: [String, Number],
22
+ default: 380
23
+ }
24
+ },
25
+ setup(F, { expose: O }) {
26
+ const m = F, x = D(), w = f(() => x.menu.value || {
27
+ _id: "",
28
+ modules: {
29
+ catalog: [],
30
+ category: [],
31
+ item: [],
32
+ variant: [],
33
+ group: [],
34
+ takeaway: [],
35
+ scheduler: [],
36
+ printDepartment: [],
37
+ recipe: [],
38
+ sku: [],
39
+ unit: [],
40
+ cookingGuide: [],
41
+ serveSequence: []
42
+ }
43
+ }), k = f(() => {
44
+ const n = m.filterItems ?? ((t) => !!t.category);
45
+ return w.value.modules.item.filter(n).reduce((t, l) => {
46
+ const a = {
47
+ id: l._id,
48
+ category: l.category,
49
+ name: (l.name2 || l.name).trim()
50
+ };
51
+ return t = [...t, a], t;
52
+ }, []);
53
+ }), C = f(() => {
54
+ const n = w.value.modules.category.reduce((e, t) => (e[t._id] = {
55
+ id: t._id,
56
+ name: t.name,
57
+ items: {}
58
+ }, e), {});
59
+ return k.value.reduce(
60
+ (e, t) => {
61
+ const l = t.category ?? "";
62
+ return e[l].items = {
63
+ ...e[l].items,
64
+ [t.id]: t
65
+ }, e;
66
+ },
67
+ {
68
+ ...n,
69
+ "": {
70
+ id: "",
71
+ name: "Addons",
72
+ items: {}
73
+ }
74
+ }
75
+ );
76
+ }), v = f(() => {
77
+ const n = y.value.toLowerCase();
78
+ return n ? Object.entries(C.value).reduce((e, [t, l]) => {
79
+ if (l.name.toLowerCase().includes(n))
80
+ return e[t] = l, e;
81
+ const a = Object.entries(l.items).reduce((d, [h, o]) => (o.name.toLowerCase().includes(n) && (d[h] = o), d), {});
82
+ return Object.keys(a).length > 0 && (e[t] = { ...l, items: a }), e;
83
+ }, {}) : C.value;
84
+ }), s = V({}), y = V(""), G = f(() => Object.values(s.value).filter((n) => !!n).length);
85
+ function I(n) {
86
+ s.value = k.value.reduce((e, t) => (e[t.id] = n.includes(t.id), e), {});
87
+ }
88
+ H(async () => {
89
+ await x.getMenu(), I(m.initialValue);
90
+ });
91
+ function g(n) {
92
+ const e = Object.keys(v.value[n].items), t = e.filter((l) => s.value[l]);
93
+ return t.length ? t.length === e.length ? !0 : null : !1;
94
+ }
95
+ function U(n) {
96
+ const e = Object.keys(v.value[n].items), t = g(n), l = E(s.value);
97
+ for (const a of e)
98
+ l[a] = t !== !0;
99
+ s.value = l;
100
+ }
101
+ function L(n) {
102
+ s.value[n] = !s.value[n];
103
+ }
104
+ return O({
105
+ onConfirm: () => {
106
+ const n = Object.entries(s.value).filter(([, e]) => !!e).map(([e]) => e);
107
+ m.onComplete(n);
108
+ }
109
+ }), (n, e) => {
110
+ const t = _("fm-button"), l = _("FmTextField"), a = _("fm-list-item"), d = _("fm-checkbox"), h = _("fm-list");
111
+ return c(), u("div", M, [
112
+ i(a, {
113
+ tag: "div",
114
+ clickable: !1
115
+ }, {
116
+ default: S(() => [
117
+ p("div", T, [
118
+ p("div", $, [
119
+ i(t, {
120
+ icon: "sync",
121
+ variant: "tertiary",
122
+ onClick: e[0] || (e[0] = () => I([]))
123
+ }),
124
+ p("span", z, q(G.value) + " product(s) selected ", 1)
125
+ ]),
126
+ i(l, {
127
+ modelValue: y.value,
128
+ "onUpdate:modelValue": e[1] || (e[1] = (o) => y.value = o),
129
+ placeholder: "Search",
130
+ "leading-icon": { name: "search", color: "" },
131
+ style: { width: "200px", "min-width": "200px" }
132
+ }, null, 8, ["modelValue"])
133
+ ])
134
+ ]),
135
+ _: 1
136
+ }),
137
+ i(h, {
138
+ class: A(["grow overflow-y-auto", `max-h-${m.maxHeight ? `[${m.maxHeight}px]` : "full"}`])
139
+ }, {
140
+ default: S(() => [
141
+ (c(!0), u(b, null, j(v.value, (o) => (c(), u(b, {
142
+ key: o.id
143
+ }, [
144
+ Object.keys(o.items).length > 0 ? (c(), u("div", K, [
145
+ p("div", J, [
146
+ i(d, {
147
+ "model-value": g(o.id) ?? !1,
148
+ indeterminate: g(o.id) === null,
149
+ label: o.name,
150
+ value: "",
151
+ name: "",
152
+ sublabel: "",
153
+ class: "w-full",
154
+ "onUpdate:modelValue": () => U(o.id)
155
+ }, null, 8, ["model-value", "indeterminate", "label", "onUpdate:modelValue"])
156
+ ]),
157
+ (c(!0), u(b, null, j(o.items, (r) => (c(), u("div", {
158
+ key: r.id,
159
+ class: "pl-48"
160
+ }, [
161
+ i(d, {
162
+ "model-value": s.value[r.id],
163
+ label: r.name,
164
+ value: r.id,
165
+ name: r.name,
166
+ class: "w-full",
167
+ "onUpdate:modelValue": () => L(r.id)
168
+ }, null, 8, ["model-value", "label", "value", "name", "onUpdate:modelValue"])
169
+ ]))), 128))
170
+ ])) : B("", !0)
171
+ ], 64))), 128))
172
+ ]),
173
+ _: 1
174
+ }, 8, ["class"])
175
+ ]);
176
+ };
177
+ }
178
+ });
179
+ export {
180
+ X as _
181
+ };
@@ -2,16 +2,16 @@ import { defineComponent as He, ref as H, computed as se, onMounted as Ke, resol
2
2
  import { h as dt } from "./moment-BWErdI6_.js";
3
3
  import { Z as ke } from "./zod-Bg2FbC-D.js";
4
4
  import { useDialog as Ye } from "@feedmepos/ui-library";
5
- import { a as je, u as ft, p as mt, f as K } from "./loading-Cn8ml_vy.js";
5
+ import { a as je, u as ft, p as mt, f as K } from "./loading-CYFsZ9UB.js";
6
6
  import { u as gt } from "./app-wDQR6dpb.js";
7
- import { u as ve, l as Je } from "./business-BaF1QJXa.js";
8
- import { u as qe } from "./membership-CX4AKMlH.js";
9
- import { m as ht, l as pt } from "./index-8MaN7rez.js";
7
+ import { u as ve, l as Je } from "./business-C0e_E2xp.js";
8
+ import { u as qe } from "./membership-C9089j0H.js";
9
+ import { t as ht, k as pt } from "./index-BXTQ6onZ.js";
10
10
  import { _ as Ve } from "./ImageInput.vue_vue_type_script_setup_true_lang-rWUkV9gn.js";
11
- import { _ as yt } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-BEfxin47.js";
12
- import { _ as wt } from "./MessageInput.vue_vue_type_script_setup_true_lang-DSPvWk4C.js";
13
- import { u as bt } from "./vue-i18n-CNH_IhVd.js";
14
- import { m as vt } from "./index-DrGrOgZB.js";
11
+ import { _ as yt } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-DxGIUrmO.js";
12
+ import { _ as wt } from "./MessageInput.vue_vue_type_script_setup_true_lang-BLS5fNr6.js";
13
+ import { u as bt } from "./vue-i18n-yYO72Mbp.js";
14
+ import { m as vt } from "./index-CXFwMV0s.js";
15
15
  import { o as Ct } from "./objectId-dwaoBfJX.js";
16
16
  import { a as Et } from "./object-qECH92oz.js";
17
17
  var ee = {}, Bt = function() {