@feedmepos/mf-connect 0.1.96-prod → 0.1.98-beta.1

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 (120) hide show
  1. package/dist/{App-NtFnJR3D.js → App-EPNXLOQz.js} +118 -106
  2. package/dist/AuditLogs-CadZXkap.js +2013 -0
  3. package/dist/{Bin-DvJgE8J0.js → Bin-CEWFX1MK.js} +8 -8
  4. package/dist/{Broadcast-BygITJjC.js → Broadcast-DC8W46mc.js} +18 -17
  5. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BVuhePfe.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DsojUEnT.js} +5 -6
  6. package/dist/{Card-BY8qbjNS.js → Card-BLFHOVL5.js} +19 -19
  7. package/dist/{Collections-CXZxfQmy.js → Collections-CVQV9gAI.js} +197 -185
  8. package/dist/{Credit-Dj4gJd18.js → Credit-Bvd1uiUU.js} +18 -17
  9. package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang-eIoPtgO5.js +58 -0
  10. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-DMHQ36PW.js +3377 -0
  11. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-IH5P2GQ4.js → EffectSheet.vue_vue_type_style_index_0_lang-L8fftBYg.js} +105 -101
  12. package/dist/{Experience-CKLT-XKN.js → Experience-bKhm3DP2.js} +35 -34
  13. package/dist/{FileSaver.min-CqZKU_4D.js → FileSaver.min-CgnAdnBE.js} +1 -1
  14. package/dist/{Game-CMXXSxs7.js → Game-BTZ5Ftp5.js} +16 -15
  15. package/dist/Grab-DMuSoVGl.js +300 -0
  16. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-B4u8lwM_.js → ImageInput.vue_vue_type_script_setup_true_lang-hMmCNoZI.js} +1 -1
  17. package/dist/{Index-CFGAKZTu.js → Index-BNh-_EZa.js} +10 -10
  18. package/dist/LocationPicker.vue_vue_type_script_setup_true_lang-COoygUYu.js +48 -0
  19. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-UfQtiVK3.js → LottieAnimation.vue_vue_type_script_setup_true_lang-D0wKkrBj.js} +1 -1
  20. package/dist/LoyaltyDashboard-Do06Mjzo.js +1082 -0
  21. package/dist/{MainLayout-UCAW-wwn.js → MainLayout-C_Zu8e2b.js} +1 -1
  22. package/dist/{Marketing-HU2MkAbE.js → Marketing-DHTow_lX.js} +4 -4
  23. package/dist/{MarketingMaterialEdit-CS7hzmeA.js → MarketingMaterialEdit-BZqVEaXl.js} +214 -211
  24. package/dist/{Member-BG1gvC8G.js → Member-DNQICbO9.js} +20 -20
  25. package/dist/{MemberList-C7l5YNJF.js → MemberList-B5f-zT_3.js} +50 -51
  26. package/dist/{MemberTransactions-RQD9xfSN.js → MemberTransactions-BmmgHC1I.js} +1 -1
  27. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-CcTrvGEk.js → MessageInput.vue_vue_type_script_setup_true_lang-DhlFz8So.js} +11 -11
  28. package/dist/{Mission-B2ynmUaz.js → Mission-CyUldhj4.js} +35 -34
  29. package/dist/{Overview-DI1MMGCM.js → Overview-If_YcRY8.js} +19 -19
  30. package/dist/{Point-DkLfnk6D.js → Point-DXgR4D2b.js} +30 -29
  31. package/dist/{Promotion-BDsMtw76.js → Promotion-8KrS5PGT.js} +111 -105
  32. package/dist/{Queue-Bu5PffRS.js → Queue-ypegp0sQ.js} +43 -43
  33. package/dist/{Record-C9zk5pr8.js → Record-C1eVdBIL.js} +10 -10
  34. package/dist/Review-fsYAsdHU.js +871 -0
  35. package/dist/ReviewFacebookCallback-zNKnoxr_.js +243 -0
  36. package/dist/ReviewGoogleCallback-CpCT0ZYL.js +213 -0
  37. package/dist/{Reward-DLyMbKCK.js → Reward-B_k-VLJn.js} +17 -17
  38. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-XWcV6P7K.js → RewardGroup.vue_vue_type_script_setup_true_lang-BUl5B7lH.js} +12 -12
  39. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-D93zAujE.js +1911 -0
  40. package/dist/{Segment-CkvTGYMI.js → Segment-PJLbJ6YE.js} +77 -78
  41. package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-CmoGA4QY.js → SelectItems.vue_vue_type_script_setup_true_lang-BLwf6QCO.js} +21 -21
  42. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-D0fupqWp.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-VoddUHxA.js} +12 -12
  43. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-CdPBhSHS.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-DOXfYdxf.js} +4 -4
  44. package/dist/{Setting-3aaebMiz.js → Setting-DItVUJHA.js} +259 -248
  45. package/dist/{SettingAdvertisements-B1rlNyFd.js → SettingAdvertisements-Bfvr60OW.js} +13 -13
  46. package/dist/{Store-7BnWIZ7G.js → Store-hyTJyNWv.js} +24 -24
  47. package/dist/{StoreRewards-CjcrPRwJ.js → StoreRewards-B7c20AF5.js} +16 -16
  48. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-Bl438tVa.js +1130 -0
  49. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-DBb3Zfuz.js +7007 -0
  50. package/dist/{Tier-BJpbCCsL.js → Tier-CuulnY8J.js} +544 -469
  51. package/dist/{Title-CqpbvePy.js → Title-Bf9ZiFGW.js} +93 -92
  52. package/dist/{Transaction-B8gpL3cS.js → Transaction-reVAaf86.js} +2 -2
  53. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-DDoia_qu.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-BZP9jfwG.js} +6 -6
  54. package/dist/{Voucher-DQ6i1GyQ.js → Voucher-E8R2cCl-.js} +28 -27
  55. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-BudfxMvl.js → VoucherEditor.vue_vue_type_script_setup_true_lang-1mclPYkp.js} +12 -12
  56. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-B43ehs2w.js → ZodTextField.vue_vue_type_script_setup_true_lang-xP5smS4G.js} +2 -2
  57. package/dist/{app-Cdi9yyaa.js → app-BdRRCAGj.js} +47089 -32960
  58. package/dist/app.js +4 -3
  59. package/dist/{business-BPhMhPp8.js → business-caUtvXxX.js} +1 -1
  60. package/dist/{campaign-DHqBhgh5.js → campaign-CDFEhdIH.js} +13 -7
  61. package/dist/{campaign-DLWpOBzd.js → campaign-CPtzFxiR.js} +114 -64
  62. package/dist/campaign.enum-p1buII_I.js +26 -0
  63. package/dist/campaign.fn-DerIK7yj.js +776 -0
  64. package/dist/{collectible.enum-EoZwnXkR.js → collectible.enum-CJ30_XmW.js} +1 -1
  65. package/dist/duplicateCampaign-DLfhHm07.js +51 -0
  66. package/dist/effect-BJC34M9S.js +89 -0
  67. package/dist/{email-addresses-CuhtzvMR.js → email-addresses-D1aYCi0p.js} +2 -2
  68. package/dist/{export-D2wb3Zzg.js → export-ChFEuUc5.js} +3 -3
  69. package/dist/{helper-B80tn5O6.js → helper-BNWd3eM2.js} +1 -1
  70. package/dist/{timezone-BIzl2Gac.js → index-0SZADZbB.js} +21 -20
  71. package/dist/{index-B85ryzLj.js → index-6ZSFSZ-H.js} +769 -205
  72. package/dist/index-B4dazSVT.js +48 -0
  73. package/dist/{index-C7XyuCH8.js → index-B9xvXnEM.js} +3 -3
  74. package/dist/{index-Dg-VScjz.js → index-BWQK3rqq.js} +3 -3
  75. package/dist/{index-D1_JoBc_.js → index-BoeHTTcl.js} +1 -1
  76. package/dist/{index-CCfDzgJb.js → index-Br17eSOV.js} +1 -1
  77. package/dist/{index-HzTI8A55.js → index-CAVSuo6k.js} +1996 -1968
  78. package/dist/{index-B0S0BGjb.js → index-CIin0Pv0.js} +1 -1
  79. package/dist/{index-BVXwb1vw.js → index-CeSEAz_T.js} +1 -1
  80. package/dist/{index-DDLHaeVd.js → index-DNsYSxpY.js} +1539 -1267
  81. package/dist/index-Dcn4qaYt.js +67 -0
  82. package/dist/{index-DA5sHUgD.js → index-Do2cnzep.js} +1 -1
  83. package/dist/{index-v9zPLkiJ.js → index-Dp3CLZSg.js} +7 -7
  84. package/dist/{index.esm2017-CfogVJWR.js → index.esm2017-CYGo-PcK.js} +173 -173
  85. package/dist/{loading-_HLw0JNH.js → loading-DtPQnEA5.js} +1 -1
  86. package/dist/{lodash-7LLl_N0k.js → lodash-BvTKz5Pn.js} +1 -1
  87. package/dist/{membership-Dl34LatD.js → membership-Csnvqeql.js} +3 -3
  88. package/dist/{money-Ca4jlK9c.js → money-CwRxILG1.js} +1 -1
  89. package/dist/{number-CWjqupZw.js → number-qcECHCpu.js} +1 -1
  90. package/dist/object-BYyQ0PZp.js +18 -0
  91. package/dist/objectid-BKWyHH4F.js +145 -0
  92. package/dist/{plugins-uNooTC4W.js → plugins-BBpKk0ld.js} +94 -95
  93. package/dist/{reward-BRIYprM8.js → reward-CX1axU5-.js} +1 -1
  94. package/dist/{rule-CkUScWS-.js → rule-pKsATz8r.js} +505 -487
  95. package/dist/style.css +1 -1
  96. package/dist/template-BSuapoPb.js +188 -0
  97. package/dist/{trigger-Dd92AYz3.js → trigger-DnMktlx-.js} +5 -5
  98. package/dist/{useMarketingMaterialActions-DlEYiRxQ.js → useMarketingMaterialActions-Bu0-ny3z.js} +3 -3
  99. package/dist/{usePagination--trERWY4.js → usePagination-CzfJhepV.js} +1 -1
  100. package/dist/{user-CI-tPhnX.js → user-BLDWqYm_.js} +1 -1
  101. package/dist/vue-i18n-bssxjuw_.js +2365 -0
  102. package/dist/{xlsx-BtsmiXIl.js → xlsx-xNwsJDub.js} +1 -1
  103. package/dist/{zod-Cq4jls5y.js → zod-Cu18aMVT.js} +1 -1
  104. package/package.json +8 -4
  105. package/dist/Analytic-l10g_BkW.js +0 -426
  106. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-Djcv8RCR.js +0 -2223
  107. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-BW2MrhuC.js +0 -1888
  108. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-C3mmS25r.js +0 -1118
  109. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-TVsbx26f.js +0 -142
  110. package/dist/campaign.enum-C7BourYN.js +0 -20
  111. package/dist/campaign.fn-PjAM2LtF.js +0 -776
  112. package/dist/collection.fn-Ds616d3q.js +0 -26
  113. package/dist/dto-5fg5RWhP.js +0 -216
  114. package/dist/effect-BJva6Fjl.js +0 -78
  115. package/dist/index-CmGQazKB.js +0 -55
  116. package/dist/object-qECH92oz.js +0 -26
  117. package/dist/objectid-BGNEnJDn.js +0 -145
  118. package/dist/rule-builder-Ds-h-MuV.js +0 -102
  119. package/dist/template-0zuNVS82.js +0 -236
  120. package/dist/vue-i18n-BIM-SckA.js +0 -2365
@@ -1,236 +0,0 @@
1
- import { p as B, i as w } from "./plugins-uNooTC4W.js";
2
- import { _ as O } from "./lodash-7LLl_N0k.js";
3
- import { defineComponent as I, openBlock as d, createBlock as b, resolveDynamicComponent as $, unref as o, ref as z, computed as M, onMounted as Y, resolveComponent as f, withCtx as _, createElementVNode as s, createElementBlock as D, createVNode as r, normalizeClass as T, createTextVNode as F, toDisplayString as g, Fragment as R, renderList as L, createCommentVNode as j } from "vue";
4
- import { u as W } from "./campaign-DHqBhgh5.js";
5
- import { useDialog as q } from "@feedmepos/ui-library";
6
- import { F as G } from "./index-B85ryzLj.js";
7
- import { C as H } from "./campaign-DLWpOBzd.js";
8
- import { J } from "./JsonViewer-v8_C7l5N.js";
9
- import { u as U } from "./vue-i18n-BIM-SckA.js";
10
- import { u as K } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-Djcv8RCR.js";
11
- function Se(e) {
12
- return B.confirm(
13
- w.global.t("connect.common.duplicate.confirmMessage", { name: e }),
14
- w.global.t("connect.common.duplicate.title"),
15
- w.global.t("connect.common.duplicate.proceed")
16
- );
17
- }
18
- const Q = ["LOYALTY", "NO_REWARD"], X = {
19
- GAME: [(e) => {
20
- var t;
21
- return (t = e == null ? void 0 : e.game) == null ? void 0 : t.rewards;
22
- }],
23
- MISSION: [
24
- (e) => e == null ? void 0 : e.rewards,
25
- (e) => {
26
- var t;
27
- return (t = e == null ? void 0 : e.mission) == null ? void 0 : t.rewards;
28
- }
29
- ],
30
- REWARD_POOL: [(e) => e == null ? void 0 : e.rewards]
31
- };
32
- function Z(e, t) {
33
- e && e.forEach((n) => {
34
- t.includes(n.type ?? "") || (n.collectible = null, n.type === "VOUCHER" && n.collectibleConfig && (n.collectibleConfig._id = void 0));
35
- });
36
- }
37
- function ee(e) {
38
- e._id = void 0;
39
- }
40
- function te(e, t) {
41
- e.campaign && (e.campaign._id = void 0, e.campaign.currentReceive = void 0, t || (e.campaign.collectible = void 0));
42
- }
43
- function oe(e, t) {
44
- e.configs && (e.configs.currentReceive = void 0, t || (e.configs._id = void 0));
45
- }
46
- function ne(e) {
47
- const t = X[(e == null ? void 0 : e.type) ?? ""];
48
- t && t.forEach((n) => {
49
- Z(n(e), Q);
50
- });
51
- }
52
- function Fe(e, t = {}) {
53
- const n = O.cloneDeep(e), { keepCollectible: c = !1 } = t, p = n.campaign;
54
- return ee(n), te(n, c), oe(n, c), ne(p), n;
55
- }
56
- const le = /* @__PURE__ */ I({
57
- __name: "CampaignChip",
58
- props: {
59
- type: { type: String, required: !0 }
60
- },
61
- setup(e) {
62
- const n = H[e.type];
63
- return (c, p) => (d(), b($(o(n).chip())));
64
- }
65
- }), ie = { class: "flex flex-nowrap gap-x-2 grow h-full" }, se = {
66
- key: 0,
67
- class: "p-8 w-1/4"
68
- }, ce = { class: "flex flex-col grow p-24" }, ae = { class: "space-y-4" }, re = { class: "fm-typo-en-title-sm-800" }, pe = { class: "text-fm-color-typo-secondary fm-typo-en-body-md-400" }, me = { class: "grow pb-16 pr-16 pt-6 w-full max-h-[400px] overflow-y-auto" }, de = { class: "gap-24 grid grid-cols-1 lg:grid-cols-2" }, ue = { class: "gap-4 h-[22px] inline-flex items-center justify-center min-w-min rounded-md" }, fe = { class: "fm-typo-en-title-sm-800" }, _e = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, ge = { class: "flex gap-4 items-end justify-end py-8" }, ye = /* @__PURE__ */ I({
69
- __name: "TemplateDialog",
70
- props: {
71
- campaignType: {
72
- type: String,
73
- default: () => {
74
- }
75
- },
76
- onOk: {
77
- type: Function,
78
- required: !0
79
- }
80
- },
81
- setup(e) {
82
- const { t } = U(), { getLocaleText: n } = K(), c = q(), p = W(), m = e, i = z({
83
- intention: null,
84
- template: null
85
- }), k = M(() => {
86
- const u = (p.templates ?? []).filter(
87
- () => !0
88
- //t.intention && t.intention.length > 0
89
- );
90
- return m.campaignType ? u.filter(
91
- (a) => {
92
- var C, y;
93
- return ((y = (C = a.defaultValue) == null ? void 0 : C.campaign) == null ? void 0 : y.type) === m.campaignType;
94
- }
95
- ) : i.value.intention === null ? O.sampleSize(u, 7) : u.filter(
96
- (a) => a.intention.includes(i.value.intention)
97
- );
98
- });
99
- Y(async () => {
100
- await p.readTemplates();
101
- });
102
- function A() {
103
- m.onOk(void 0), c.close();
104
- }
105
- function N() {
106
- const u = i.value.template;
107
- m.onOk(p.templates.find((a) => a._id === u)), c.close();
108
- }
109
- return (u, a) => {
110
- const C = f("FmChip"), y = f("FmListItem"), P = f("FmList"), E = f("FmCard"), x = f("FmButton"), V = f("FmSpacer");
111
- return d(), b(E, { class: "h-[534px] max-w-6xl" }, {
112
- default: _(() => [
113
- s("div", ie, [
114
- m.campaignType ? j("", !0) : (d(), D("div", se, [
115
- r(P, null, {
116
- default: _(() => [
117
- r(y, {
118
- class: T([{
119
- "bg-fm-color-system-warning-100": o(i).intention === null
120
- }, "rounded-sm"]),
121
- onClick: a[0] || (a[0] = (l) => {
122
- o(i).intention = null, o(i).template = null;
123
- })
124
- }, {
125
- append: _(() => [
126
- r(C, {
127
- label: o(t)("connect.templateDialog.hot"),
128
- variant: "critical"
129
- }, null, 8, ["label"])
130
- ]),
131
- default: _(() => [
132
- F(g(o(t)("connect.templateDialog.mostPopular")) + " ", 1)
133
- ]),
134
- _: 1
135
- }, 8, ["class"]),
136
- (d(!0), D(R, null, L(o(G).options, (l, h) => (d(), b(y, {
137
- key: h,
138
- class: T(["rounded-sm", {
139
- "bg-fm-color-system-warning-100": o(i).intention === l
140
- }]),
141
- style: { padding: "8px 16px" },
142
- onClick: (v) => {
143
- o(i).intention = l, o(i).template = null;
144
- }
145
- }, {
146
- default: _(() => [
147
- F(g(o(t)(`connect.templateDialog.intention.${l}`)), 1)
148
- ]),
149
- _: 2
150
- }, 1032, ["class", "onClick"]))), 128))
151
- ]),
152
- _: 1
153
- })
154
- ])),
155
- s("div", ce, [
156
- s("div", ae, [
157
- s("div", re, g(m.campaignType ? o(t)(`connect.templateDialog.campaignType.${m.campaignType}`) : o(t)("connect.templateDialog.templateList")), 1),
158
- s("div", pe, g(o(t)("connect.templateDialog.subtitle")), 1)
159
- ]),
160
- s("div", me, [
161
- r(J, { json: o(k) }, null, 8, ["json"]),
162
- s("div", de, [
163
- (d(!0), D(R, null, L(o(k), (l, h) => (d(), b(E, {
164
- key: h,
165
- variant: "outlined",
166
- class: T(["box-border cursor-pointer h-full p-16 scroll-p-4 space-y-8", {
167
- "bg-fm-color-system-warning-100 border-fm-color-primary border-2": o(i).template === l._id.toString()
168
- }]),
169
- onClick: (v) => o(i).template = l._id.toString()
170
- }, {
171
- default: _(() => {
172
- var v, S;
173
- return [
174
- s("div", ue, [
175
- r(le, {
176
- type: (S = (v = l.defaultValue) == null ? void 0 : v.campaign) == null ? void 0 : S.type
177
- }, null, 8, ["type"])
178
- ]),
179
- s("div", fe, g(o(n)(l.name_locale, l.name)), 1),
180
- s("p", _e, g(o(n)(l.description_locale, l.description ?? "")), 1)
181
- ];
182
- }),
183
- _: 2
184
- }, 1032, ["class", "onClick"]))), 128))
185
- ])
186
- ]),
187
- s("div", ge, [
188
- r(x, {
189
- class: "sm:w-full xs:w-full",
190
- variant: "plain",
191
- label: o(t)("connect.templateDialog.customCampaign"),
192
- size: "md",
193
- onClick: A
194
- }, null, 8, ["label"]),
195
- r(V, { class: "sm:hidden xs:hidden" }),
196
- r(x, {
197
- class: "sm:w-full xs:w-full",
198
- variant: "tertiary",
199
- label: o(t)("connect.templateDialog.cancel"),
200
- size: "md",
201
- onClick: a[1] || (a[1] = (l) => o(c).close())
202
- }, null, 8, ["label"]),
203
- r(x, {
204
- class: "sm:w-full xs:w-full",
205
- variant: "primary",
206
- label: o(t)("connect.templateDialog.start"),
207
- size: "md",
208
- disabled: !o(i).template,
209
- onClick: N
210
- }, null, 8, ["label", "disabled"])
211
- ])
212
- ])
213
- ])
214
- ]),
215
- _: 1
216
- });
217
- };
218
- }
219
- }), Re = (e, t) => ({
220
- open: async (n) => {
221
- t.open({
222
- title: "",
223
- dialogComponent: ye,
224
- dialogComponentProps: {
225
- campaignType: e,
226
- onOk: async (c) => (console.debug(c, "selected template"), await n(c))
227
- },
228
- overlay: !0
229
- });
230
- }
231
- });
232
- export {
233
- Se as c,
234
- Fe as p,
235
- Re as u
236
- };