@feedmepos/mf-connect 0.1.98-beta.7 → 0.1.98-beta.72

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 (152) hide show
  1. package/dist/{App-BonFFUVJ.js → App-DpYceiwG.js} +812 -666
  2. package/dist/{AuditLogs-CaQisyMC.js → AuditLogs-CG98b2qE.js} +14 -13
  3. package/dist/{Bin-Mu8gAiHw.js → Bin-vdipv2fF.js} +8 -8
  4. package/dist/Broadcast-ChwVqheE.js +303 -0
  5. package/dist/CampaignAnalytic-4PHO849x.js +1830 -0
  6. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BoLZVrCU.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DmnN4pjm.js} +6 -5
  7. package/dist/Card-B6ol3PQw.js +1084 -0
  8. package/dist/{Collections-CByXxRW_.js → Collections-DodNIUr1.js} +14 -13
  9. package/dist/Credit-CJQyAZYw.js +286 -0
  10. package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang--FqHJ7Ez.js +53 -0
  11. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-CA31QP-A.js +4277 -0
  12. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-BXsAX1Xa.js → EffectSheet.vue_vue_type_style_index_0_lang-DkKhdp7G.js} +35 -35
  13. package/dist/{Experience-B7J-aqPK.js → Experience-iLAKddx_.js} +112 -86
  14. package/dist/{FileSaver.min-D_F_MSZt.js → FileSaver.min-w_ExQ0py.js} +1 -1
  15. package/dist/FilterChip.vue_vue_type_script_setup_true_lang-3bH-tZAm.js +138 -0
  16. package/dist/Game-DWdUbsAg.js +356 -0
  17. package/dist/GiftCardSetup-DnQ5vwxu.js +736 -0
  18. package/dist/{Grab-C45MmlD9.js → Grab-CFLRHs5w.js} +33 -32
  19. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-CPPcB3PC.js → ImageInput.vue_vue_type_script_setup_true_lang-uQJvjvTe.js} +1 -1
  20. package/dist/{Index-vQ6uP49O.js → Index-CUy4z2tS.js} +10 -10
  21. package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-Cj3hN3tg.js → LocationPicker.vue_vue_type_script_setup_true_lang-hKJ41Fe_.js} +1 -1
  22. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-DU9eIein.js → LottieAnimation.vue_vue_type_script_setup_true_lang-BDmtqTVC.js} +1 -1
  23. package/dist/LoyaltyDashboard-C5o7KriA.js +2865 -0
  24. package/dist/MainLayout-Dt0ywph3.js +143 -0
  25. package/dist/{Marketing-B6xMdQvW.js → Marketing-BHwxzBZ0.js} +7 -6
  26. package/dist/{MarketingMaterialEdit-0cZN4bek.js → MarketingMaterialEdit-B6k4ceGx.js} +15 -14
  27. package/dist/Member-DcPZfTj6.js +654 -0
  28. package/dist/MemberDetailSheet.vue_vue_type_script_setup_true_lang-CiiBrlHY.js +1279 -0
  29. package/dist/MemberImportHistory-DmPMuu1g.js +187 -0
  30. package/dist/MemberList-f9JejfNW.js +334 -0
  31. package/dist/{MemberTransactions-Bg-ziZy8.js → MemberTransactions-D1YSXeX-.js} +1 -1
  32. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-jbDJkbZh.js → MessageInput.vue_vue_type_script_setup_true_lang-freeE-DP.js} +5928 -5644
  33. package/dist/MetricInfoTooltip.vue_vue_type_script_setup_true_lang-m7ytg0ok.js +40 -0
  34. package/dist/Mission-BaaEl5BV.js +360 -0
  35. package/dist/Overview-CviY55Gs.js +1316 -0
  36. package/dist/{Overview-nsyJGSCq.js → Overview-fx-0E3b8.js} +21 -20
  37. package/dist/Point-BfqtflbC.js +288 -0
  38. package/dist/Promotion-Be2ogRYt.js +423 -0
  39. package/dist/{Queue-Dkipt6fw.js → Queue-CLSUL-Cx.js} +14 -13
  40. package/dist/{Record-BFqx6vM-.js → Record-CpTMQT7B.js} +9 -9
  41. package/dist/Review-DzSDx7dY.js +45 -0
  42. package/dist/ReviewFacebookCallback-CvbPJADM.js +238 -0
  43. package/dist/ReviewGoogleCallback-DJlqMbh3.js +213 -0
  44. package/dist/{Reward-DjFEE7I_.js → Reward-DJOmd6Z5.js} +35 -35
  45. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-BzZ6VH80.js → RewardGroup.vue_vue_type_script_setup_true_lang-DY9fYxwc.js} +14 -13
  46. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-A9jQX4jt.js → RuleGroup.vue_vue_type_script_setup_true_lang-BgYK4hpo.js} +196 -186
  47. package/dist/{Segment-BAjdUfZ6.js → Segment-G6xmeEaq.js} +275 -276
  48. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-CAQPFzRH.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-C3O0biLZ.js} +37 -36
  49. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-Gkz8jhES.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-CWP5sGT7.js} +4 -4
  50. package/dist/{Setting-BK7y0XC-.js → Setting-CKp441AW.js} +14 -14
  51. package/dist/{SettingAdvertisements-DfQ645xr.js → SettingAdvertisements-C4Uf-DgK.js} +12 -12
  52. package/dist/Settings-CTvMVwp6.js +230 -0
  53. package/dist/Store-Bzei6Xev.js +2612 -0
  54. package/dist/{StoreRewards-usHKOGmB.js → StoreRewards-DMQNIpF5.js} +15 -15
  55. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-mm1jbcvo.js +1329 -0
  56. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-DrcWUZuR.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-BspBXIO2.js} +2 -2
  57. package/dist/{Tier-BF3V430O.js → Tier-BN32RwYr.js} +2580 -754
  58. package/dist/{Title-DwPuqKfJ.js → Title-BIhgfRUI.js} +39 -37
  59. package/dist/Transaction-CPjA7IN9.js +45 -0
  60. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-DToNRTJS.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-DSutMvfk.js} +26 -26
  61. package/dist/{Voucher-DnhVIl_o.js → Voucher-CGJtn9bC.js} +156 -133
  62. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-Btb3UZCn.js → VoucherEditor.vue_vue_type_script_setup_true_lang-B-IwtPvx.js} +118 -124
  63. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-EFUW9DMY.js → ZodTextField.vue_vue_type_script_setup_true_lang-Ce9xPwqA.js} +2 -2
  64. package/dist/{app-i3r-6ZVm.js → app-DAtx6aZ4.js} +45039 -37428
  65. package/dist/app.js +1 -1
  66. package/dist/base.export-BtRC4aWM.js +75 -0
  67. package/dist/{business-i0Gxk7gG.js → business-BZUIs8Ub.js} +5 -5
  68. package/dist/campaign-B6I6PuY4.js +100 -0
  69. package/dist/campaign-DKjBjV2k.js +398 -0
  70. package/dist/{campaign.enum-CbUTfxek.js → campaign.enum-BQy3e845.js} +1 -1
  71. package/dist/{campaign.fn-BjHSIDd1.js → campaign.fn--qVJ3jeH.js} +77 -77
  72. package/dist/{collectible.enum-DN7E_kHg.js → collectible.enum-vcvRFGl0.js} +1 -1
  73. package/dist/collection.fn-C3bMPBkC.js +26 -0
  74. package/dist/currency--R6VPInw.js +7 -0
  75. package/dist/{duplicateCampaign-DmdJQEIA.js → duplicateCampaign-aIsX9cCi.js} +11 -11
  76. package/dist/{effect-DM4AzeQl.js → effect-CbjmtRph.js} +1 -1
  77. package/dist/{email-addresses-BlqVJhwZ.js → email-addresses-DZKMnoKf.js} +209 -201
  78. package/dist/google-C3S8u0mT.js +4 -0
  79. package/dist/{helper-CkdISSVP.js → helper-BGqw2-RO.js} +1 -1
  80. package/dist/index-7TKoSEJ2.js +14550 -0
  81. package/dist/index-B9DM5Vuv.js +32437 -0
  82. package/dist/index-BWlfW4Kr.js +137 -0
  83. package/dist/{index-Cl8t41Sk.js → index-Bb4TieR_.js} +5 -5
  84. package/dist/{index-D6qeYVNz.js → index-BbpqZrkB.js} +1 -1
  85. package/dist/{index-4EtrCy_K.js → index-C22GPEM-.js} +4 -4
  86. package/dist/{index-FD50UHqf.js → index-CVYbfRGO.js} +105 -123
  87. package/dist/index-CVvSd60O.js +53 -0
  88. package/dist/{index-vI-ndGu_.js → index-CXL5WAH0.js} +5 -5
  89. package/dist/{index-B6xi1soU.js → index-ClP7Xy6Q.js} +1 -1
  90. package/dist/{index-BWsj6lCJ.js → index-D-P90w8K.js} +14 -14
  91. package/dist/{index-CxdLExX0.js → index-D_o9LsHU.js} +24 -9
  92. package/dist/{index-BrboOmPq.js → index-DcA0B-Y5.js} +347 -216
  93. package/dist/index-FnsjvtSo.js +901 -0
  94. package/dist/{index-DgzNGQgE.js → index-LlFZ5kxi.js} +2083 -2559
  95. package/dist/{index-CB7ytKOE.js → index-LnCoUCnx.js} +1588 -1522
  96. package/dist/index-kkhrPH6s.js +151 -0
  97. package/dist/index-v8Zv-2ko.js +72 -0
  98. package/dist/{index.esm2017-BX5CyKoc.js → index.esm2017-DO7bbE7J.js} +132 -132
  99. package/dist/{loading-DTKDhqew.js → loading-CzWOx4tE.js} +1 -1
  100. package/dist/{lodash-CCPBsqhe.js → lodash-B_gr6Ayu.js} +1 -1
  101. package/dist/member-import-BxCrd9tq.js +187 -0
  102. package/dist/membership-ILB4aB4h.js +274 -0
  103. package/dist/{money-wMK3QkZ5.js → money-CpIK1N_r.js} +1 -1
  104. package/dist/{number-DjKVlWn0.js → number-leVwmDCm.js} +1 -1
  105. package/dist/objectid-8hKuNcMN.js +145 -0
  106. package/dist/{plugins-D25PaNJk.js → plugins-DLIgnFIF.js} +13 -12
  107. package/dist/remy-Qz_pNsUS.js +13 -0
  108. package/dist/{reward-E63jqJHm.js → reward-DqT0zF01.js} +1 -1
  109. package/dist/{rule-RVvPtAnk.js → rule-DBtMGLxD.js} +335 -275
  110. package/dist/style.css +1 -1
  111. package/dist/{template-zNxOQaqe.js → template-CYKGCWY4.js} +6 -6
  112. package/dist/timezone-Brs5nrTL.js +20 -0
  113. package/dist/transaction.fn-0ZZcVp-j.js +71 -0
  114. package/dist/{trigger-BXV02FhP.js → trigger-LhNre1L9.js} +17 -17
  115. package/dist/useMarketingMaterialActions-DbDRMmhM.js +96 -0
  116. package/dist/{usePagination-BPcPhEnp.js → usePagination-DmZX0V64.js} +1 -1
  117. package/dist/{user-Bd8S7R5u.js → user-CBPsvnx9.js} +1 -1
  118. package/dist/vue-i18n-BPeSHE3c.js +2365 -0
  119. package/dist/{xlsx-_tQC9Ezf.js → xlsx-Cm3vGmLN.js} +440 -440
  120. package/dist/{zod-C1j2GLZP.js → zod-GTEcy37q.js} +1 -1
  121. package/package.json +10 -6
  122. package/dist/Broadcast-Cy-i-WOT.js +0 -266
  123. package/dist/Card-f2XOtWxp.js +0 -910
  124. package/dist/Credit-CcZF4aQS.js +0 -260
  125. package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang-eIoPtgO5.js +0 -58
  126. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-C7KZ8GMx.js +0 -3377
  127. package/dist/FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js +0 -129
  128. package/dist/Game-CUW7NeVG.js +0 -330
  129. package/dist/LoyaltyDashboard-GqyUwvXz.js +0 -1082
  130. package/dist/MainLayout-R5NxIBR-.js +0 -41
  131. package/dist/Member-CC5F6Bmz.js +0 -280
  132. package/dist/MemberList-Cq4zxopX.js +0 -1601
  133. package/dist/Mission-DcCZ6tAG.js +0 -334
  134. package/dist/Point-D1vLd5hL.js +0 -262
  135. package/dist/Promotion-Cv7MW5RJ.js +0 -397
  136. package/dist/Review-CKhakUMe.js +0 -1123
  137. package/dist/ReviewFacebookCallback-xgRpXQAg.js +0 -243
  138. package/dist/ReviewGoogleCallback-Cqi_43qi.js +0 -208
  139. package/dist/SelectItems.vue_vue_type_script_setup_true_lang-DDqK4kV1.js +0 -181
  140. package/dist/Store-uTRQ6KbC.js +0 -1996
  141. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-Bb2sTsuA.js +0 -1130
  142. package/dist/Transaction-CnTEfMGU.js +0 -39
  143. package/dist/campaign-CbMlARNI.js +0 -219
  144. package/dist/campaign-f7FT91GR.js +0 -277
  145. package/dist/export-DQR-0lmK.js +0 -97
  146. package/dist/index-COrXX9MR.js +0 -52
  147. package/dist/index-CWiaP-aV.js +0 -28900
  148. package/dist/index-jVfDVEtz.js +0 -85
  149. package/dist/membership-rifuatxU.js +0 -255
  150. package/dist/objectid-DjpWkCxH.js +0 -145
  151. package/dist/useMarketingMaterialActions-5TFNqZVo.js +0 -107
  152. package/dist/vue-i18n-CgMK-TaC.js +0 -2365
@@ -1,10 +1,10 @@
1
- import { defineComponent as B, ref as O, onMounted as Q, computed as G, resolveComponent as x, openBlock as d, createElementBlock as b, renderSlot as W, toDisplayString as V, createCommentVNode as f, createBlock as u, unref as e, isRef as q, createVNode as h, normalizeClass as Z, watch as X, withCtx as w, resolveDynamicComponent as P, Fragment as _, createElementVNode as k, createTextVNode as ee } from "vue";
2
- import { z as te, l as le } from "./app-i3r-6ZVm.js";
3
- import { Z as r } from "./zod-C1j2GLZP.js";
4
- import { g as oe, f as ae } from "./index-CB7ytKOE.js";
5
- import { u as I } from "./vue-i18n-CgMK-TaC.js";
6
- import { s as S } from "./effect-DM4AzeQl.js";
7
- import { p as ne } from "./plugins-D25PaNJk.js";
1
+ import { defineComponent as B, ref as O, onMounted as Q, computed as G, resolveComponent as x, openBlock as d, createElementBlock as b, renderSlot as W, toDisplayString as V, createCommentVNode as f, createBlock as u, unref as e, isRef as q, createVNode as w, normalizeClass as Z, watch as X, withCtx as h, resolveDynamicComponent as P, Fragment as _, createElementVNode as k, createTextVNode as ee } from "vue";
2
+ import { z as te, h as le } from "./app-DAtx6aZ4.js";
3
+ import { Z as r } from "./zod-GTEcy37q.js";
4
+ import { j as oe, i as ae } from "./index-LnCoUCnx.js";
5
+ import { u as I } from "./vue-i18n-BPeSHE3c.js";
6
+ import { s as g } from "./effect-CbjmtRph.js";
7
+ import { p as ne } from "./plugins-DLIgnFIF.js";
8
8
  const ie = { class: "flex flex-col gap-8" }, de = {
9
9
  key: 0,
10
10
  class: "fm-typo-en-body-lg-600"
@@ -39,7 +39,7 @@ const ie = { class: "flex flex-col gap-8" }, de = {
39
39
  },
40
40
  emits: ["update:model-value"],
41
41
  setup(t, { emit: C }) {
42
- var A, U;
42
+ var U, A;
43
43
  const { t: n } = I(), i = t, v = C, a = [
44
44
  { label: n("connect.template.validity_option.date_range"), value: "range" },
45
45
  { label: n("connect.template.validity_option.custom"), value: "custom" }
@@ -50,11 +50,11 @@ const ie = { class: "flex flex-col gap-8" }, de = {
50
50
  ).length > 0;
51
51
  });
52
52
  const l = O(
53
- i.type ? a.find((m) => m.value === i.type) : (A = i.modelValue) != null && A.validBefore || (U = i.modelValue) != null && U.validAfter ? a[0] : a[1]
54
- ), g = G(
53
+ i.type ? a.find((m) => m.value === i.type) : (U = i.modelValue) != null && U.validBefore || (A = i.modelValue) != null && A.validAfter ? a[0] : a[1]
54
+ ), S = G(
55
55
  () => i.forCredit ? oe : ae
56
56
  ), y = G(() => {
57
- const m = g.value.safeParse(i.modelValue);
57
+ const m = S.value.safeParse(i.modelValue);
58
58
  return m.success ? [] : m.error.errors;
59
59
  });
60
60
  function o(m) {
@@ -90,7 +90,7 @@ const ie = { class: "flex flex-col gap-8" }, de = {
90
90
  items: a
91
91
  }, null, 8, ["modelValue"])),
92
92
  e(l).value === "range" ? (d(), b("div", se, [
93
- h(Y, {
93
+ w(Y, {
94
94
  "model-value": {
95
95
  startDate: (E = t.modelValue) != null && E.validAfter ? new Date(($ = t.modelValue) == null ? void 0 : $.validAfter).toISOString() : null,
96
96
  endDate: (j = t.modelValue) != null && j.validAfter ? new Date(((M = t.modelValue) == null ? void 0 : M.validBefore) || "").toISOString() : null
@@ -143,7 +143,7 @@ const ie = { class: "flex flex-col gap-8" }, de = {
143
143
  key: 3,
144
144
  text: e(n)("connect.template.validity_option.expire_follow_first_receive")
145
145
  }, null, 8, ["text"])) : f("", !0),
146
- h(T, {
146
+ w(T, {
147
147
  text: t.helperText || (((L = i.modelValue) == null ? void 0 : L.validForDay) === 0 ? e(n)("connect.template.validity_option.expires_on_same_day") : e(r).helperText(e(y), "")),
148
148
  state: t.helperText ? "error" : ((z = i.modelValue) == null ? void 0 : z.validForDay) === 0 ? "warning" : e(r).helperState(e(y), "")
149
149
  }, null, 8, ["text", "state"])
@@ -172,9 +172,9 @@ const ie = { class: "flex flex-col gap-8" }, de = {
172
172
  setup(t, { emit: C }) {
173
173
  const { t: n } = I(), i = t, v = C, a = O(i.modelValue ?? {});
174
174
  return X(a, () => v("update:model-value", a.value)), (c, l) => {
175
- const g = x("FmSwitch"), y = x("FmStepperField");
175
+ const S = x("FmSwitch"), y = x("FmStepperField");
176
176
  return d(), b("div", ue, [
177
- t.isMission ? f("", !0) : (d(), u(g, {
177
+ t.isMission ? f("", !0) : (d(), u(S, {
178
178
  key: 0,
179
179
  label: e(n)("connect.template.enable_transfer"),
180
180
  "label-placement": "right",
@@ -185,14 +185,14 @@ const ie = { class: "flex flex-col gap-8" }, de = {
185
185
  key: 1,
186
186
  class: Z(["grid gap-16", t.isMission ? "" : "grid-cols-2"])
187
187
  }, [
188
- h(y, {
188
+ w(y, {
189
189
  modelValue: e(a).maxPerUser,
190
190
  "onUpdate:modelValue": l[1] || (l[1] = (o) => e(a).maxPerUser = o),
191
191
  "show-steppers": !1,
192
192
  rules: [e(r).ruleAtPath(t.schema, "maxPerUser")],
193
193
  "helper-text": e(n)("connect.template.leave_empty_unlimited")
194
194
  }, {
195
- label: w(() => [
195
+ label: h(() => [
196
196
  (d(), u(P(
197
197
  e(r).toInputLabel(
198
198
  e(r).typeAtPath(t.schema, "maxPerUser"),
@@ -210,7 +210,7 @@ const ie = { class: "flex flex-col gap-8" }, de = {
210
210
  rules: [e(r).ruleAtPath(t.schema, "maxReceive")],
211
211
  "helper-text": e(n)("connect.template.leave_empty_unlimited")
212
212
  }, {
213
- label: w(() => [
213
+ label: h(() => [
214
214
  (d(), u(P(
215
215
  e(r).toInputLabel(
216
216
  e(r).typeAtPath(t.schema, "maxReceive"),
@@ -222,14 +222,14 @@ const ie = { class: "flex flex-col gap-8" }, de = {
222
222
  }, 8, ["modelValue", "rules", "helper-text"]))
223
223
  ], 2)),
224
224
  t.isMission ? f("", !0) : (d(), b(_, { key: 2 }, [
225
- h(y, {
225
+ w(y, {
226
226
  modelValue: e(a).maxUse,
227
227
  "onUpdate:modelValue": l[3] || (l[3] = (o) => e(a).maxUse = o),
228
228
  "append-text": "use(s)",
229
229
  "show-steppers": !1,
230
230
  rules: [e(r).ruleAtPath(t.schema, "maxUse")]
231
231
  }, {
232
- label: w(() => [
232
+ label: h(() => [
233
233
  (d(), u(P(
234
234
  e(r).toInputLabel(
235
235
  e(r).typeAtPath(t.schema, "maxUse"),
@@ -247,7 +247,7 @@ const ie = { class: "flex flex-col gap-8" }, de = {
247
247
  "show-steppers": !1,
248
248
  rules: [e(r).ruleAtPath(t.schema, "cooldown")]
249
249
  }, {
250
- label: w(() => [
250
+ label: h(() => [
251
251
  (d(), u(P(
252
252
  e(r).toInputLabel(
253
253
  e(r).typeAtPath(t.schema, "cooldown"),
@@ -257,7 +257,7 @@ const ie = { class: "flex flex-col gap-8" }, de = {
257
257
  ]),
258
258
  _: 1
259
259
  }, 8, ["modelValue", "rules"])) : f("", !0),
260
- h(re, {
260
+ w(re, {
261
261
  modelValue: e(a).validityOption,
262
262
  "onUpdate:modelValue": l[5] || (l[5] = (o) => e(a).validityOption = o),
263
263
  label: e(n)("connect.template.validity_option.title")
@@ -272,7 +272,7 @@ const ie = { class: "flex flex-col gap-8" }, de = {
272
272
  }, ve = { class: "fm-typo-en-body-lg-400" }, ye = { class: "text-fm-color-typo-secondary" }, Ve = {
273
273
  key: 0,
274
274
  class: "fm-typo-en-body-md-500 text-fm-color-typo-error mt-4"
275
- }, Ae = /* @__PURE__ */ B({
275
+ }, Ue = /* @__PURE__ */ B({
276
276
  __name: "EffectSheet",
277
277
  props: {
278
278
  modelValue: { type: Object },
@@ -287,7 +287,7 @@ const ie = { class: "flex flex-col gap-8" }, de = {
287
287
  c.stopPropagation(), await ne.remove(n("connect.effect.removeConfirm")) && i("update:model-value", null);
288
288
  }
289
289
  return (c, l) => {
290
- const g = x("FmButton"), y = x("FmSideSheet");
290
+ const S = x("FmButton"), y = x("FmSideSheet");
291
291
  return d(), u(y, {
292
292
  "max-width": 550,
293
293
  header: e(n)("connect.effect.title"),
@@ -297,24 +297,24 @@ const ie = { class: "flex flex-col gap-8" }, de = {
297
297
  l[3] || (l[3] = (o) => v.value = o)
298
298
  ]
299
299
  }, {
300
- "side-sheet-button": w(() => {
301
- var o, D, A, U, m, s;
300
+ "side-sheet-button": h(() => {
301
+ var o, D, U, A, m, s;
302
302
  return [
303
303
  k("div", ce, [
304
304
  k("div", pe, V(e(n)("connect.effect.description")), 1),
305
305
  t.modelValue ? (d(), b("div", fe, [
306
306
  k("div", ve, [
307
- k("div", null, V((o = e(S)(t.modelValue)) == null ? void 0 : o.type), 1),
308
- k("div", ye, V((D = e(S)(t.modelValue)) == null ? void 0 : D.adjustment) + " " + V(e(n)("connect.effect.with")) + " " + V((A = e(S)(t.modelValue)) == null ? void 0 : A.requirements) + " " + V((U = e(S)(t.modelValue)) == null ? void 0 : U.maxCap), 1),
309
- (m = e(S)(t.modelValue)) != null && m.posHint ? (d(), b("div", Ve, V((s = e(S)(t.modelValue)) == null ? void 0 : s.posHint), 1)) : f("", !0)
307
+ k("div", null, V((o = e(g)(t.modelValue)) == null ? void 0 : o.type), 1),
308
+ k("div", ye, V((D = e(g)(t.modelValue)) == null ? void 0 : D.adjustment) + " " + V(e(n)("connect.effect.with")) + " " + V((U = e(g)(t.modelValue)) == null ? void 0 : U.requirements) + " " + V((A = e(g)(t.modelValue)) == null ? void 0 : A.maxCap), 1),
309
+ (m = e(g)(t.modelValue)) != null && m.posHint ? (d(), b("div", Ve, V((s = e(g)(t.modelValue)) == null ? void 0 : s.posHint), 1)) : f("", !0)
310
310
  ]),
311
- h(g, {
311
+ w(S, {
312
312
  icon: "delete",
313
313
  "icon-color": "neutral-gray-400",
314
314
  variant: "tertiary",
315
315
  onClick: a
316
316
  })
317
- ])) : (d(), u(g, {
317
+ ])) : (d(), u(S, {
318
318
  key: 0,
319
319
  label: e(n)("connect.effect.title"),
320
320
  icon: "add",
@@ -325,11 +325,11 @@ const ie = { class: "flex flex-col gap-8" }, de = {
325
325
  ])
326
326
  ];
327
327
  }),
328
- "side-sheet-footer": w(() => [...l[4] || (l[4] = [
328
+ "side-sheet-footer": h(() => [...l[4] || (l[4] = [
329
329
  ee(V(void 0), -1)
330
330
  ])]),
331
- default: w(() => [
332
- h(e(le), {
331
+ default: h(() => [
332
+ w(e(le), {
333
333
  class: "fm-effect-sheet",
334
334
  title: "",
335
335
  "can-set-auto-apply": t.canSetAutoApply,
@@ -345,7 +345,7 @@ const ie = { class: "flex flex-col gap-8" }, de = {
345
345
  }
346
346
  });
347
347
  export {
348
- Ae as _,
348
+ Ue as _,
349
349
  Ce as a,
350
350
  re as b
351
351
  };
@@ -1,69 +1,81 @@
1
- import { defineComponent as M, ref as P, computed as H, onMounted as q, resolveComponent as m, openBlock as d, createElementBlock as w, Fragment as C, createVNode as s, unref as o, createElementVNode as n, withCtx as v, renderList as z, createBlock as b, resolveDynamicComponent as G, toDisplayString as _, h as k } from "vue";
1
+ import { defineComponent as q, ref as B, computed as G, onMounted as X, resolveComponent as m, openBlock as u, createElementBlock as C, Fragment as v, createVNode as s, unref as o, createElementVNode as n, withCtx as b, renderList as Y, createBlock as k, resolveDynamicComponent as z, toDisplayString as h, h as w } from "vue";
2
2
  import { _ as J } from "./campaign-CpzFl8Vr.js";
3
- import { useDialog as Q, components as B } from "@feedmepos/ui-library";
4
- import { p as W } from "./plugins-D25PaNJk.js";
5
- import { u as X } from "./loading-DTKDhqew.js";
6
- import { u as Y } from "./business-i0Gxk7gG.js";
7
- import { u as Z, c as u } from "./campaign-CbMlARNI.js";
8
- import { b as I, c as V, a as ee } from "./campaign-f7FT91GR.js";
9
- import { c as te, p as oe } from "./duplicateCampaign-DmdJQEIA.js";
10
- import { u as ae } from "./vue-i18n-CgMK-TaC.js";
11
- import { _ as ne } from "./FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js";
12
- import { _ as re } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-C7KZ8GMx.js";
13
- import { u as ie } from "./template-zNxOQaqe.js";
14
- const se = { class: "px-24 flex flex-col gap-y-16" }, ce = { class: "flex items-center justify-between w-full" }, le = { class: "flex gap-8 overflow-x-auto" }, me = { class: "space-y-8" }, pe = { class: "flex w-full gap-4 items-center" }, de = { class: "space-y-4" }, ue = { class: "fm-typo-en-body-lg-600" }, fe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ge = { class: "flex items-center gap-8" }, ye = { class: "flex flex-col gap-16 text-center" }, _e = { class: "fm-typo-en-title-sm-800" }, he = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ne = /* @__PURE__ */ M({
3
+ import { useDialog as Q, components as F } from "@feedmepos/ui-library";
4
+ import { p as W } from "./plugins-DLIgnFIF.js";
5
+ import { u as Z } from "./loading-CzWOx4tE.js";
6
+ import { u as ee } from "./business-BZUIs8Ub.js";
7
+ import { u as te } from "./campaign-B6I6PuY4.js";
8
+ import { b as V, c as T, a as oe } from "./campaign-DKjBjV2k.js";
9
+ import { c as ae, p as ne } from "./duplicateCampaign-aIsX9cCi.js";
10
+ import { u as re } from "./vue-i18n-BPeSHE3c.js";
11
+ import { _ as ie } from "./FilterChip.vue_vue_type_script_setup_true_lang-3bH-tZAm.js";
12
+ import { _ as se } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-CA31QP-A.js";
13
+ import { u as ce } from "./template-CYKGCWY4.js";
14
+ import "./index-BbpqZrkB.js";
15
+ import { useRouter as le } from "vue-router";
16
+ import { c as f } from "./index-kkhrPH6s.js";
17
+ import { R as me } from "./app-DAtx6aZ4.js";
18
+ const pe = { class: "px-24 flex flex-col gap-y-16" }, de = { class: "flex items-center justify-between w-full" }, ue = { class: "flex gap-8 overflow-x-auto" }, fe = { class: "space-y-8" }, ge = { class: "flex w-full gap-4 items-center" }, ye = { class: "space-y-4" }, _e = { class: "fm-typo-en-body-lg-600" }, he = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, we = { class: "flex items-center gap-8" }, xe = { class: "flex flex-col gap-16 text-center" }, Ce = { class: "fm-typo-en-title-sm-800" }, ve = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Me = /* @__PURE__ */ q({
15
19
  __name: "Experience",
16
- setup(xe) {
17
- const { t: r } = ae(), T = {
20
+ setup(be) {
21
+ const { t: r } = re(), A = le(), N = {
18
22
  label: r("connect.program.common.actions.create", {
19
23
  type: r("connect.program.experience.title").toLowerCase()
20
24
  }),
21
25
  value: "create",
22
26
  isPrimary: !0,
23
27
  prependIcon: "add"
24
- }, N = ie("POINT", Q()), $ = Y(), p = Z(), { global: D, minor: F } = X, c = P({
28
+ }, R = ce("POINT", Q()), E = ee(), p = te(), { global: O, minor: P } = Z, c = B({
25
29
  searchKey: "",
26
30
  location: []
27
31
  });
28
- function K(e) {
32
+ function $(e) {
29
33
  const t = c.value.location;
30
34
  return !t || t.length === 0 || !e.targetLocation ? !0 : Array.isArray(t) ? t.some((l) => {
31
35
  var i;
32
36
  return (i = e == null ? void 0 : e.targetLocation) == null ? void 0 : i.includes(l);
33
37
  }) : e.targetLocation.includes(t);
34
38
  }
35
- const f = H(
36
- () => p.campaigns.experience.filter((e) => K(e))
37
- ), O = [
39
+ const g = G(
40
+ () => p.campaigns.experience.filter((e) => $(e))
41
+ ), D = [
38
42
  {
39
43
  header: "Program title",
40
44
  accessorFn: (e) => e.name
41
45
  },
42
46
  {
43
47
  header: "Status",
44
- accessorFn: (e) => ee(e),
48
+ accessorFn: (e) => oe(e),
45
49
  cell(e) {
46
- return I(e.row.original);
50
+ return V(e.row.original);
47
51
  }
48
52
  },
49
53
  {
50
54
  header: "Summary",
51
- accessorFn: (e) => V(e)
55
+ accessorFn: (e) => T(e)
52
56
  //v.effect,
53
57
  },
54
58
  {
55
59
  header: "Actions",
56
60
  cell(e) {
57
- return k("div", { class: "flex items-center gap-8 justify-end" }, [
58
- k(B.FmButton, {
61
+ return w("div", { class: "flex items-center gap-8 justify-end" }, [
62
+ w(F.FmButton, {
59
63
  variant: "tertiary",
60
- icon: "content_copy",
64
+ icon: "insights",
61
65
  iconColor: "neutral-gray-400",
62
66
  onClick: async (t) => {
63
67
  t.stopPropagation(), await L(e.row.original);
64
68
  }
65
69
  }),
66
- k(B.FmButton, {
70
+ w(F.FmButton, {
71
+ variant: "tertiary",
72
+ icon: "content_copy",
73
+ iconColor: "neutral-gray-400",
74
+ onClick: async (t) => {
75
+ t.stopPropagation(), await I(e.row.original);
76
+ }
77
+ }),
78
+ w(F.FmButton, {
67
79
  variant: "tertiary",
68
80
  icon: "delete",
69
81
  iconColor: "neutral-gray-400",
@@ -74,11 +86,11 @@ const se = { class: "px-24 flex flex-col gap-y-16" }, ce = { class: "flex items-
74
86
  ]);
75
87
  }
76
88
  }
77
- ], h = P();
89
+ ], x = B();
78
90
  async function S(e) {
79
- await W.remove(`Are you sure you want to remove ${e.name}?`) && await F(
91
+ await W.remove(`Are you sure you want to remove ${e.name}?`) && await P(
80
92
  async () => {
81
- await u.delete(e._id), await p.read("POINT");
93
+ await f.delete(e._id), await p.read("POINT");
82
94
  },
83
95
  {
84
96
  message: `Removing ${e.name}`,
@@ -86,38 +98,44 @@ const se = { class: "px-24 flex flex-col gap-y-16" }, ce = { class: "flex items-
86
98
  }
87
99
  );
88
100
  }
89
- async function g(e) {
90
- e ? await t() : N.open(async (l) => {
101
+ async function y(e) {
102
+ e ? await t() : R.open(async (l) => {
91
103
  await t(l);
92
104
  });
93
105
  async function t(l) {
94
106
  var i;
95
- (i = h.value) == null || i.showSheet(
107
+ (i = x.value) == null || i.showSheet(
96
108
  !0,
97
109
  "POINT",
98
- e ? await u.readById(e._id) : void 0,
110
+ e ? await f.readById(e._id) : void 0,
99
111
  l
100
112
  );
101
113
  }
102
114
  }
103
115
  async function L(e) {
116
+ await A.push({
117
+ name: me["$connect-PROGRAM_EXPERIENCE_ANALYTIC"],
118
+ params: { id: e._id }
119
+ });
120
+ }
121
+ async function I(e) {
104
122
  var i;
105
- if (!await te(e.name))
123
+ if (!await ae(e.name))
106
124
  return;
107
- const t = await u.readById(e._id), l = oe(t, {
125
+ const t = await f.readById(e._id), l = ne(t, {
108
126
  keepCollectible: !0
109
127
  });
110
- (i = h.value) == null || i.showSheet(
128
+ (i = x.value) == null || i.showSheet(
111
129
  !0,
112
130
  "POINT",
113
131
  l,
114
132
  t.template
115
133
  );
116
134
  }
117
- async function A(e) {
118
- await F(
135
+ async function K(e) {
136
+ await P(
119
137
  async () => {
120
- e.campaign._id ? await u.update(e.campaign._id, e) : await u.create(e), await p.read("POINT");
138
+ e.campaign._id ? await f.update(e.campaign._id, e) : await f.create(e), await p.read("POINT");
121
139
  },
122
140
  {
123
141
  message: r("connect.program.common.update.updating", {
@@ -130,19 +148,19 @@ const se = { class: "px-24 flex flex-col gap-y-16" }, ce = { class: "flex items-
130
148
  }
131
149
  );
132
150
  }
133
- return q(async () => {
134
- await D(async () => {
151
+ return X(async () => {
152
+ await O(async () => {
135
153
  await p.read("POINT");
136
154
  });
137
155
  }), (e, t) => {
138
- const l = m("FmPageHead"), i = m("FmSearch"), R = m("FmTable"), x = m("FmButton"), j = m("FmListItem"), E = m("FmList"), U = m("FmCard");
139
- return d(), w(C, null, [
156
+ const l = m("FmPageHead"), i = m("FmSearch"), M = m("FmTable"), _ = m("FmButton"), U = m("FmListItem"), j = m("FmList"), H = m("FmCard");
157
+ return u(), C(v, null, [
140
158
  s(l, {
141
159
  title: o(r)("connect.program.experience.title"),
142
- actions: o(f).length > 0 ? [T] : [],
143
- "onClick:action": t[0] || (t[0] = () => g())
160
+ actions: o(g).length > 0 ? [N] : [],
161
+ "onClick:action": t[0] || (t[0] = () => y())
144
162
  }, null, 8, ["title", "actions"]),
145
- n("div", se, [
163
+ n("div", pe, [
146
164
  s(i, {
147
165
  modelValue: o(c).searchKey,
148
166
  "onUpdate:modelValue": t[1] || (t[1] = (a) => o(c).searchKey = a),
@@ -150,17 +168,17 @@ const se = { class: "px-24 flex flex-col gap-y-16" }, ce = { class: "flex items-
150
168
  placeholder: o(r)("connect.program.common.search"),
151
169
  collapsible: ""
152
170
  }, null, 8, ["modelValue", "placeholder"]),
153
- o(p).campaigns.experience && o(p).campaigns.experience.length > 0 ? (d(), w(C, { key: 0 }, [
154
- n("div", ce, [
155
- n("div", le, [
156
- s(ne, {
171
+ o(p).campaigns.experience && o(p).campaigns.experience.length > 0 ? (u(), C(v, { key: 0 }, [
172
+ n("div", de, [
173
+ n("div", ue, [
174
+ s(ie, {
157
175
  label: `${o(r)("connect.common.location")}: `,
158
176
  "right-icon": "keyboard_arrow_down",
159
177
  modelValue: o(c).location,
160
178
  "onUpdate:modelValue": t[2] || (t[2] = (a) => o(c).location = a),
161
179
  icon: "storefront",
162
180
  "show-item-label": !0,
163
- items: o($).locationOptions
181
+ items: o(E).locationOptions
164
182
  }, null, 8, ["label", "modelValue", "items"])
165
183
  ]),
166
184
  s(i, {
@@ -171,48 +189,56 @@ const se = { class: "px-24 flex flex-col gap-y-16" }, ce = { class: "flex items-
171
189
  collapsible: ""
172
190
  }, null, 8, ["modelValue"])
173
191
  ]),
174
- s(R, {
192
+ s(M, {
175
193
  class: "xs:hidden sm:hidden",
176
- "row-data": o(f),
177
- "column-defs": O,
194
+ "row-data": o(g),
195
+ "column-defs": D,
178
196
  "search-value": o(c).searchKey,
179
197
  "column-filter": [],
180
- onRowClick: t[4] || (t[4] = (a) => g(a.original)),
181
- "hide-footer": o(f).length < 10
198
+ onRowClick: t[4] || (t[4] = (a) => y(a.original)),
199
+ "hide-footer": o(g).length < 10
182
200
  }, null, 8, ["row-data", "search-value", "hide-footer"]),
183
- s(E, { class: "hidden xs:!flex sm:!flex flex-col mx-[-24px]" }, {
184
- default: v(() => [
185
- (d(!0), w(C, null, z(o(f).filter(
201
+ s(j, { class: "hidden xs:!flex sm:!flex flex-col mx-[-24px]" }, {
202
+ default: b(() => [
203
+ (u(!0), C(v, null, Y(o(g).filter(
186
204
  (a) => a.name.toLowerCase().includes(o(c).searchKey.toLowerCase())
187
- ), (a) => (d(), b(j, {
205
+ ), (a) => (u(), k(U, {
188
206
  key: a._id.toString(),
189
- onClick: (y) => g(a),
207
+ onClick: (d) => y(a),
190
208
  class: "py-12 px-16 flex items-center justify-between border-b border-fm-color-neutral-gray-100"
191
209
  }, {
192
- default: v(() => [
193
- n("div", me, [
194
- n("div", pe, [
195
- (d(), b(G(o(I)(a))))
210
+ default: b(() => [
211
+ n("div", fe, [
212
+ n("div", ge, [
213
+ (u(), k(z(o(V)(a))))
196
214
  ]),
197
- n("div", de, [
198
- n("div", ue, _(a.name), 1),
199
- n("div", fe, _(o(V)(a)), 1)
215
+ n("div", ye, [
216
+ n("div", _e, h(a.name), 1),
217
+ n("div", he, h(o(T)(a)), 1)
200
218
  ])
201
219
  ]),
202
- n("div", ge, [
203
- s(x, {
220
+ n("div", we, [
221
+ s(_, {
222
+ icon: "insights",
223
+ "icon-color": "neutral-gray-400",
224
+ variant: "tertiary",
225
+ onClick: async (d) => {
226
+ d.stopPropagation(), await L(a);
227
+ }
228
+ }, null, 8, ["onClick"]),
229
+ s(_, {
204
230
  icon: "content_copy",
205
231
  "icon-color": "neutral-gray-400",
206
232
  variant: "tertiary",
207
- onClick: async (y) => {
208
- y.stopPropagation(), await L(a);
233
+ onClick: async (d) => {
234
+ d.stopPropagation(), await I(a);
209
235
  }
210
236
  }, null, 8, ["onClick"]),
211
- s(x, {
237
+ s(_, {
212
238
  icon: "delete",
213
239
  "icon-color": "neutral-gray-400",
214
240
  variant: "tertiary",
215
- onClick: (y) => (y.stopPropagation(), S(a))
241
+ onClick: (d) => (d.stopPropagation(), S(a))
216
242
  }, null, 8, ["onClick"])
217
243
  ])
218
244
  ]),
@@ -221,33 +247,33 @@ const se = { class: "px-24 flex flex-col gap-y-16" }, ce = { class: "flex items-
221
247
  ]),
222
248
  _: 1
223
249
  })
224
- ], 64)) : (d(), b(U, {
250
+ ], 64)) : (u(), k(H, {
225
251
  key: 1,
226
252
  variant: "outlined",
227
253
  class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
228
254
  }, {
229
- default: v(() => [
255
+ default: b(() => [
230
256
  t[6] || (t[6] = n("img", {
231
257
  src: J,
232
258
  class: "aspect-square w-[150px]"
233
259
  }, null, -1)),
234
- n("div", ye, [
235
- n("div", _e, _(o(r)("connect.program.experience.empty_state.title")), 1),
236
- n("div", he, _(o(r)("connect.program.experience.empty_state.description")), 1)
260
+ n("div", xe, [
261
+ n("div", Ce, h(o(r)("connect.program.experience.empty_state.title")), 1),
262
+ n("div", ve, h(o(r)("connect.program.experience.empty_state.description")), 1)
237
263
  ]),
238
- s(x, {
264
+ s(_, {
239
265
  variant: "primary",
240
266
  label: "Create experience program",
241
267
  icon: "add",
242
- onClick: t[5] || (t[5] = (a) => g())
268
+ onClick: t[5] || (t[5] = (a) => y())
243
269
  })
244
270
  ]),
245
271
  _: 1
246
272
  })),
247
- s(re, {
273
+ s(se, {
248
274
  ref_key: "sheetRef",
249
- ref: h,
250
- "onSubmit:modelValue": A
275
+ ref: x,
276
+ "onSubmit:modelValue": K
251
277
  }, null, 512)
252
278
  ])
253
279
  ], 64);
@@ -255,5 +281,5 @@ const se = { class: "px-24 flex flex-col gap-y-16" }, ce = { class: "flex items-
255
281
  }
256
282
  });
257
283
  export {
258
- Ne as default
284
+ Me as default
259
285
  };
@@ -1,4 +1,4 @@
1
- import { c as s } from "./app-i3r-6ZVm.js";
1
+ import { c as s } from "./app-DAtx6aZ4.js";
2
2
  var E = { exports: {} };
3
3
  (function(h, j) {
4
4
  (function(p, i) {