@feedmepos/mf-connect 0.1.98-beta.8 → 0.1.98-beta.80

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 (167) hide show
  1. package/dist/{App-DsB2o1oB.js → App-DievprEi.js} +853 -683
  2. package/dist/{AuditLogs-BcfgiYnJ.js → AuditLogs-DrdqOhZL.js} +16 -13
  3. package/dist/{Bin-DMr7K8Kj.js → Bin-Ci2k3z77.js} +8 -8
  4. package/dist/Broadcast-CpDMAG1o.js +306 -0
  5. package/dist/CampaignAnalytic-uRyGaLaN.js +1830 -0
  6. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CwGoEBsW.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DtGe2Og1.js} +8 -5
  7. package/dist/Card-tb98Kyr-.js +1086 -0
  8. package/dist/{Collections-B0uGC2FE.js → Collections-P1S5WjnJ.js} +14 -13
  9. package/dist/Credit-DwK7JYf-.js +286 -0
  10. package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang-Cyk0iIsd.js +53 -0
  11. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-8r29jKh9.js +4432 -0
  12. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-DJLxGk7W.js → EffectSheet.vue_vue_type_style_index_0_lang-BML_-v8I.js} +36 -36
  13. package/dist/Experience-BejtRlOj.js +288 -0
  14. package/dist/{FileSaver.min-BlA0oZEC.js → FileSaver.min-C-hmBaHm.js} +1 -1
  15. package/dist/FilterChip.vue_vue_type_script_setup_true_lang-3bH-tZAm.js +138 -0
  16. package/dist/Game-n8qL896g.js +356 -0
  17. package/dist/GiftCardSetup-Bgsfcu7N.js +736 -0
  18. package/dist/GoalPickerPanel.vue_vue_type_script_setup_true_lang-CzL68PPP.js +424 -0
  19. package/dist/Goals-BB8LJlq3.js +247 -0
  20. package/dist/{Grab-DmmwrGzk.js → Grab-COq3Ujst.js} +33 -32
  21. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-DNtLW0yQ.js → ImageInput.vue_vue_type_script_setup_true_lang-BmLclEyi.js} +1 -1
  22. package/dist/{Index-m7l4insz.js → Index-BdkIinaE.js} +10 -10
  23. package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-B9sJ-M20.js → LocationPicker.vue_vue_type_script_setup_true_lang-DsWv3DVb.js} +1 -1
  24. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-Dsg2sWjF.js → LottieAnimation.vue_vue_type_script_setup_true_lang-DvOzGF8c.js} +1 -1
  25. package/dist/LoyaltyDashboard-D4Jtpw0n.js +2911 -0
  26. package/dist/MainLayout-Ca-Xm3eZ.js +143 -0
  27. package/dist/{Marketing-C9pSIdBU.js → Marketing-Cpe4s7NZ.js} +7 -6
  28. package/dist/{MarketingMaterialEdit-BEF2T9LR.js → MarketingMaterialEdit-nTeS9VVx.js} +15 -14
  29. package/dist/Member-DgGZ4Cdg.js +654 -0
  30. package/dist/MemberDetailSheet.vue_vue_type_script_setup_true_lang-_O3B-FIA.js +1281 -0
  31. package/dist/MemberImportHistory-rdlbDVWU.js +187 -0
  32. package/dist/MemberList-BC4aRJTt.js +334 -0
  33. package/dist/{MemberTransactions-CAut1TQb.js → MemberTransactions-BFfdTttp.js} +1 -1
  34. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-1AuHixPC.js → MessageInput.vue_vue_type_script_setup_true_lang-DXajAQy9.js} +5928 -5644
  35. package/dist/MetricInfoTooltip.vue_vue_type_script_setup_true_lang-8xVDzdO3.js +40 -0
  36. package/dist/Mission-BWCNKTjU.js +363 -0
  37. package/dist/Overview--Q7vzhNK.js +1316 -0
  38. package/dist/{Overview-DOJj4XvO.js → Overview-i02Wnyjn.js} +23 -20
  39. package/dist/Point-CiWxqny5.js +297 -0
  40. package/dist/Promotion-B0G9qfBm.js +426 -0
  41. package/dist/{Queue-55G2gtP5.js → Queue-YfwgYmzH.js} +16 -13
  42. package/dist/{Record-DNPI02c6.js → Record-CCuwrPKW.js} +9 -9
  43. package/dist/Review-ymsfdh7Q.js +45 -0
  44. package/dist/ReviewFacebookCallback-DyDExWvP.js +238 -0
  45. package/dist/ReviewGoogleCallback-DNyg3n2S.js +213 -0
  46. package/dist/{Reward-CnP8R2pS.js → Reward-BKIb0ezH.js} +28 -28
  47. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-BN71h9IK.js → RewardGroup.vue_vue_type_script_setup_true_lang-DPaaNgpr.js} +26 -23
  48. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-CtB9Ls5-.js → RuleGroup.vue_vue_type_script_setup_true_lang-BLFLybFn.js} +198 -186
  49. package/dist/{Segment-CxiQnnyj.js → Segment-D5_pp7fh.js} +278 -276
  50. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-B1vj5f7T.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-BLLjIA-D.js} +45 -42
  51. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-cWx0G3nM.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-BRIcZwnU.js} +4 -4
  52. package/dist/Setting-CD78gIMU.js +574 -0
  53. package/dist/{SettingAdvertisements-Vt7w1WN3.js → SettingAdvertisements-C2AIT4s4.js} +12 -12
  54. package/dist/Settings-DI_tryQV.js +230 -0
  55. package/dist/Store-BV2JTRNZ.js +2615 -0
  56. package/dist/{StoreRewards-DILeipMG.js → StoreRewards-Bk55YXyO.js} +15 -15
  57. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-BZZ1fqwg.js +1331 -0
  58. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-C7lVeybl.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-BrEzWVrH.js} +2 -2
  59. package/dist/{Tier-BAZ1xuKL.js → Tier-CO2K30Ew.js} +2576 -757
  60. package/dist/{Title-CcNAt47f.js → Title-qProQh3T.js} +41 -37
  61. package/dist/Transaction-qL5L-fE_.js +45 -0
  62. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-hUjQVZ_U.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-Co1BPScS.js} +26 -26
  63. package/dist/Voucher-VFD1LY9Y.js +837 -0
  64. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-CTQDxc5l.js → VoucherEditor.vue_vue_type_script_setup_true_lang-9QyTl7iq.js} +118 -124
  65. package/dist/WhatsappAccount-CxSGqm7H.js +325 -0
  66. package/dist/WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-D8L6izf0.js +96 -0
  67. package/dist/WhatsappBot-C4Oz7Xwv.js +441 -0
  68. package/dist/WhatsappBotSettings-CKqaWzwE.js +136 -0
  69. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-DuRKA4cj.js → ZodTextField.vue_vue_type_script_setup_true_lang-Bcsi94dw.js} +2 -2
  70. package/dist/{app-Z-UKRG5V.js → app-BEYzXWZO.js} +50954 -42517
  71. package/dist/app.js +1 -1
  72. package/dist/base.export-S_82Elmg.js +75 -0
  73. package/dist/browser-BSAOEeIM.js +1478 -0
  74. package/dist/{business-C7EF6cKC.js → business-DH7djUl8.js} +5 -5
  75. package/dist/campaign-DlHDgoFX.js +100 -0
  76. package/dist/campaign-k_WHxsOR.js +400 -0
  77. package/dist/{campaign.enum-BNN2gLFY.js → campaign.enum-Dx-Zo68Q.js} +1 -1
  78. package/dist/{campaign.fn-Bd34dVnx.js → campaign.fn-B-4JRzft.js} +67 -67
  79. package/dist/{collectible.enum-DO9HdJGH.js → collectible.enum-Liy2wH3s.js} +1 -1
  80. package/dist/collection.fn-zQwWDzZT.js +26 -0
  81. package/dist/currency-CQVHXBFe.js +7 -0
  82. package/dist/{duplicateCampaign-2ODeDw3a.js → duplicateCampaign-YTXMbJTj.js} +11 -11
  83. package/dist/{effect-BcB8IlTI.js → effect-CQkVLHWi.js} +1 -1
  84. package/dist/{email-addresses-BcTeU4Sh.js → email-addresses-BIoVbPGC.js} +209 -201
  85. package/dist/google-C3S8u0mT.js +4 -0
  86. package/dist/{helper-BSgrCJRv.js → helper-BCkTvF4m.js} +1 -1
  87. package/dist/{index-CoHWpylO.js → index-B-bQnb0_.js} +2115 -2557
  88. package/dist/index-BAJOC43K.js +14550 -0
  89. package/dist/{index-HXiYGO4_.js → index-BFIHEBnX.js} +6343 -7693
  90. package/dist/{index-VlFWaBrg.js → index-BJIQe3QJ.js} +1 -1
  91. package/dist/{index-BpI-BI4H.js → index-BJkRTH5T.js} +4 -4
  92. package/dist/index-BOJogkKQ.js +172 -0
  93. package/dist/{index-BoYEqLif.js → index-BRPajAkE.js} +1517 -263
  94. package/dist/{index-CsoBDon4.js → index-BTkxgos0.js} +1590 -1523
  95. package/dist/index-BUP4aHq8.js +32438 -0
  96. package/dist/index-BYvnqARr.js +902 -0
  97. package/dist/{index-hlyg-wxV.js → index-Bonq819P.js} +1 -1
  98. package/dist/{index-CIBPhxlC.js → index-C6mOI2Pp.js} +105 -123
  99. package/dist/{index-Bf6jNZit.js → index-CDIe15AY.js} +24 -9
  100. package/dist/index-CTrcdIkt.js +137 -0
  101. package/dist/index-C_H8jFYf.js +2743 -0
  102. package/dist/index-CpnchVe1.js +74 -0
  103. package/dist/index-D5AR7A5e.js +151 -0
  104. package/dist/index-D7-Q86HI.js +54 -0
  105. package/dist/index-DdOj8Hew.js +53 -0
  106. package/dist/{index-iMPtFp54.js → index-Dvqguh2B.js} +10 -9
  107. package/dist/{index-Bm0QPucw.js → index-hAKRfE-4.js} +14 -14
  108. package/dist/index-o2Ga_qaX.js +39 -0
  109. package/dist/{index.esm2017-CM7OnEyP.js → index.esm2017-D0fhMMPG.js} +128 -128
  110. package/dist/{loading-CSXr0Yqz.js → loading-C686AMVG.js} +1 -1
  111. package/dist/{lodash-Bh7XKI-R.js → lodash-CANlWUWW.js} +1 -1
  112. package/dist/member-import-UzJ6ByIS.js +188 -0
  113. package/dist/membership-DCVzFaFy.js +274 -0
  114. package/dist/{money-BZIST_m9.js → money-DuazwoX7.js} +1 -1
  115. package/dist/{number-DXLR2w95.js → number-B2HFiV0g.js} +1 -1
  116. package/dist/objectid-Bq-oVMdP.js +145 -0
  117. package/dist/onboarding-BxvNxz-9.js +131 -0
  118. package/dist/onboardingSetup-CcvKmyx8.js +17 -0
  119. package/dist/{plugins-4FlbwoES.js → plugins-C39O5j42.js} +13 -12
  120. package/dist/remy-Qz_pNsUS.js +13 -0
  121. package/dist/{reward-DUbl79bZ.js → reward-HYt-2nxt.js} +1 -1
  122. package/dist/{rule-BQUoZ4l_.js → rule-3xNIYM7z.js} +337 -275
  123. package/dist/style.css +1 -1
  124. package/dist/{template-BoiSG7G7.js → template-D37Z_b0m.js} +6 -6
  125. package/dist/timezone-JwnQgpaU.js +20 -0
  126. package/dist/transaction.fn-C5vswLI_.js +71 -0
  127. package/dist/{trigger-D5g5m6tT.js → trigger-Bc6s2cvq.js} +17 -17
  128. package/dist/useMarketingMaterialActions-DMGyAXcy.js +96 -0
  129. package/dist/{usePagination-DHePBBoR.js → usePagination-DLOOwiiY.js} +1 -1
  130. package/dist/{user-C_ToSo-g.js → user-CTIGugVF.js} +1 -1
  131. package/dist/{vue-i18n-BcYh6_51.js → vue-i18n-Dpic36zz.js} +287 -287
  132. package/dist/{xlsx-h4G1C-xj.js → xlsx-CT9_1SFr.js} +786 -786
  133. package/dist/{zod-CgigfJar.js → zod-CGVrMcDl.js} +1 -1
  134. package/package.json +10 -6
  135. package/dist/Broadcast-C9akM-TB.js +0 -266
  136. package/dist/Card-DRkIYs0M.js +0 -910
  137. package/dist/Credit-V5YA_hGx.js +0 -260
  138. package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang-eIoPtgO5.js +0 -58
  139. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-CYQMXARx.js +0 -3377
  140. package/dist/Experience-WTWy5yY6.js +0 -259
  141. package/dist/FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js +0 -129
  142. package/dist/Game-BwOfTCW5.js +0 -330
  143. package/dist/LoyaltyDashboard-CJdhYiea.js +0 -1082
  144. package/dist/MainLayout-Du5kZOtA.js +0 -41
  145. package/dist/Member-DUV_vbPI.js +0 -280
  146. package/dist/MemberList-Ye4nOk-i.js +0 -1601
  147. package/dist/Mission-BBmCGpt8.js +0 -334
  148. package/dist/Point-Bzg6hi6o.js +0 -262
  149. package/dist/Promotion-BMXIp_ef.js +0 -397
  150. package/dist/Review-CYNPPxYU.js +0 -1141
  151. package/dist/ReviewFacebookCallback-0SUkKAaC.js +0 -243
  152. package/dist/ReviewGoogleCallback-BZEzx68n.js +0 -208
  153. package/dist/SelectItems.vue_vue_type_script_setup_true_lang-C4vohf6c.js +0 -181
  154. package/dist/Setting-jHAjccod.js +0 -2047
  155. package/dist/Store-Cu-hKmVa.js +0 -1996
  156. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-CGz6CTWA.js +0 -1130
  157. package/dist/Transaction-D7DO3dKQ.js +0 -39
  158. package/dist/Voucher-Cq-n1CaC.js +0 -421
  159. package/dist/campaign--MjoY1Mn.js +0 -219
  160. package/dist/campaign-DHBuP4UA.js +0 -277
  161. package/dist/export-CjB7qxZ9.js +0 -97
  162. package/dist/index-BIAjmMga.js +0 -85
  163. package/dist/index-Bv4MBLQ5.js +0 -52
  164. package/dist/index-hbyCVNa7.js +0 -30289
  165. package/dist/membership-CfredTm3.js +0 -255
  166. package/dist/objectid-Dg4ZodlT.js +0 -145
  167. package/dist/useMarketingMaterialActions-B-Jlw2Z9.js +0 -107
@@ -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-Z-UKRG5V.js";
3
- import { Z as r } from "./zod-CgigfJar.js";
4
- import { g as oe, f as ae } from "./index-CsoBDon4.js";
5
- import { u as I } from "./vue-i18n-BcYh6_51.js";
6
- import { s as S } from "./effect-BcB8IlTI.js";
7
- import { p as ne } from "./plugins-4FlbwoES.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-BEYzXWZO.js";
3
+ import { Z as r } from "./zod-CGVrMcDl.js";
4
+ import { j as oe, i as ae } from "./index-BTkxgos0.js";
5
+ import { u as I } from "./vue-i18n-Dpic36zz.js";
6
+ import { s as g } from "./effect-CQkVLHWi.js";
7
+ import { p as ne } from "./plugins-C39O5j42.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
+ re as _,
349
349
  Ce as a,
350
- re as b
350
+ Ue as b
351
351
  };
@@ -0,0 +1,288 @@
1
+ import { defineComponent as q, ref as E, computed as G, onMounted as Y, resolveComponent as m, openBlock as d, createElementBlock as C, Fragment as v, createVNode as s, unref as o, createElementVNode as n, withCtx as b, renderList as z, createBlock as k, resolveDynamicComponent as J, toDisplayString as w, h as x } from "vue";
2
+ import { _ as Q } from "./campaign-CpzFl8Vr.js";
3
+ import { useDialog as W, components as F } from "@feedmepos/ui-library";
4
+ import { p as Z } from "./plugins-C39O5j42.js";
5
+ import { u as ee } from "./loading-C686AMVG.js";
6
+ import { u as te } from "./business-DH7djUl8.js";
7
+ import { u as oe } from "./campaign-DlHDgoFX.js";
8
+ import { b as B, c as N, a as ae } from "./campaign-k_WHxsOR.js";
9
+ import { c as ne, p as re } from "./duplicateCampaign-YTXMbJTj.js";
10
+ import { u as ie } from "./vue-i18n-Dpic36zz.js";
11
+ import { _ as se } from "./FilterChip.vue_vue_type_script_setup_true_lang-3bH-tZAm.js";
12
+ import { _ as ce } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-8r29jKh9.js";
13
+ import { u as le } from "./template-D37Z_b0m.js";
14
+ import "./index-Bonq819P.js";
15
+ import { u as me } from "./onboardingSetup-CcvKmyx8.js";
16
+ import { useRouter as pe } from "vue-router";
17
+ import { c as f } from "./index-D5AR7A5e.js";
18
+ import { R as ue } from "./app-BEYzXWZO.js";
19
+ const de = { class: "px-24 flex flex-col gap-y-16" }, fe = { class: "flex items-center justify-between w-full" }, ge = { class: "flex gap-8 overflow-x-auto" }, ye = { class: "space-y-8" }, _e = { class: "flex w-full gap-4 items-center" }, he = { class: "space-y-4" }, we = { class: "fm-typo-en-body-lg-600" }, xe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ce = { class: "flex items-center gap-8" }, ve = { class: "flex flex-col gap-16 text-center" }, be = { class: "fm-typo-en-title-sm-800" }, ke = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, He = /* @__PURE__ */ q({
20
+ __name: "Experience",
21
+ setup(Fe) {
22
+ const { t: r } = ie(), T = pe(), V = {
23
+ label: r("connect.program.common.actions.create", {
24
+ type: r("connect.program.experience.title").toLowerCase()
25
+ }),
26
+ value: "create",
27
+ isPrimary: !0,
28
+ prependIcon: "add"
29
+ }, R = le("POINT", W()), A = te(), p = oe(), { global: O, minor: P } = ee, c = E({
30
+ searchKey: "",
31
+ location: []
32
+ });
33
+ function $(e) {
34
+ const t = c.value.location;
35
+ return !t || t.length === 0 || !e.targetLocation ? !0 : Array.isArray(t) ? t.some((l) => {
36
+ var i;
37
+ return (i = e == null ? void 0 : e.targetLocation) == null ? void 0 : i.includes(l);
38
+ }) : e.targetLocation.includes(t);
39
+ }
40
+ const g = G(
41
+ () => p.campaigns.experience.filter((e) => $(e))
42
+ ), D = [
43
+ {
44
+ header: "Program title",
45
+ accessorFn: (e) => e.name
46
+ },
47
+ {
48
+ header: "Status",
49
+ accessorFn: (e) => ae(e),
50
+ cell(e) {
51
+ return B(e.row.original);
52
+ }
53
+ },
54
+ {
55
+ header: "Summary",
56
+ accessorFn: (e) => N(e)
57
+ //v.effect,
58
+ },
59
+ {
60
+ header: "Actions",
61
+ cell(e) {
62
+ return x("div", { class: "flex items-center gap-8 justify-end" }, [
63
+ x(F.FmButton, {
64
+ variant: "tertiary",
65
+ icon: "insights",
66
+ iconColor: "neutral-gray-400",
67
+ onClick: async (t) => {
68
+ t.stopPropagation(), await I(e.row.original);
69
+ }
70
+ }),
71
+ x(F.FmButton, {
72
+ variant: "tertiary",
73
+ icon: "content_copy",
74
+ iconColor: "neutral-gray-400",
75
+ onClick: async (t) => {
76
+ t.stopPropagation(), await L(e.row.original);
77
+ }
78
+ }),
79
+ x(F.FmButton, {
80
+ variant: "tertiary",
81
+ icon: "delete",
82
+ iconColor: "neutral-gray-400",
83
+ onClick: (t) => {
84
+ t.stopPropagation(), S(e.row.original);
85
+ }
86
+ })
87
+ ]);
88
+ }
89
+ }
90
+ ], y = E();
91
+ async function S(e) {
92
+ await Z.remove(`Are you sure you want to remove ${e.name}?`) && await P(
93
+ async () => {
94
+ await f.delete(e._id), await p.read("POINT");
95
+ },
96
+ {
97
+ message: `Removing ${e.name}`,
98
+ successMessage: `Removed ${e.name} successfully`
99
+ }
100
+ );
101
+ }
102
+ async function _(e) {
103
+ e ? await t() : R.open(async (l) => {
104
+ await t(l);
105
+ });
106
+ async function t(l) {
107
+ var i;
108
+ (i = y.value) == null || i.showSheet(
109
+ !0,
110
+ "POINT",
111
+ e ? await f.readById(e._id) : void 0,
112
+ l
113
+ );
114
+ }
115
+ }
116
+ async function I(e) {
117
+ await T.push({
118
+ name: ue["$connect-PROGRAM_EXPERIENCE_ANALYTIC"],
119
+ params: { id: e._id }
120
+ });
121
+ }
122
+ async function L(e) {
123
+ var i;
124
+ if (!await ne(e.name))
125
+ return;
126
+ const t = await f.readById(e._id), l = re(t, {
127
+ keepCollectible: !0
128
+ });
129
+ (i = y.value) == null || i.showSheet(
130
+ !0,
131
+ "POINT",
132
+ l,
133
+ t.template
134
+ );
135
+ }
136
+ async function K(e) {
137
+ await P(
138
+ async () => {
139
+ e.campaign._id ? await f.update(e.campaign._id, e) : await f.create(e), await p.read("POINT");
140
+ },
141
+ {
142
+ message: r("connect.program.common.update.updating", {
143
+ type: r("connect.program.experience.title")
144
+ }),
145
+ successMessage: r("connect.program.common.update.success", {
146
+ type: r("connect.program.experience.title"),
147
+ action: e.campaign._id ? "updated" : "created"
148
+ })
149
+ }
150
+ );
151
+ }
152
+ const M = me();
153
+ return Y(async () => {
154
+ var e;
155
+ await O(async () => {
156
+ await p.read("POINT");
157
+ }), await M.consume() === "EXPERIENCE" && ((e = y.value) == null || e.showSheet(!0, "POINT"));
158
+ }), (e, t) => {
159
+ const l = m("FmPageHead"), i = m("FmSearch"), U = m("FmTable"), h = m("FmButton"), j = m("FmListItem"), H = m("FmList"), X = m("FmCard");
160
+ return d(), C(v, null, [
161
+ s(l, {
162
+ title: o(r)("connect.program.experience.title"),
163
+ actions: o(g).length > 0 ? [V] : [],
164
+ "onClick:action": t[0] || (t[0] = () => _())
165
+ }, null, 8, ["title", "actions"]),
166
+ n("div", de, [
167
+ s(i, {
168
+ modelValue: o(c).searchKey,
169
+ "onUpdate:modelValue": t[1] || (t[1] = (a) => o(c).searchKey = a),
170
+ class: "hidden xs:!block sm:!block border-b-2 border-fm-color-neutral-gray-100",
171
+ placeholder: o(r)("connect.program.common.search"),
172
+ collapsible: ""
173
+ }, null, 8, ["modelValue", "placeholder"]),
174
+ o(p).campaigns.experience && o(p).campaigns.experience.length > 0 ? (d(), C(v, { key: 0 }, [
175
+ n("div", fe, [
176
+ n("div", ge, [
177
+ s(se, {
178
+ label: `${o(r)("connect.common.location")}: `,
179
+ "right-icon": "keyboard_arrow_down",
180
+ modelValue: o(c).location,
181
+ "onUpdate:modelValue": t[2] || (t[2] = (a) => o(c).location = a),
182
+ icon: "storefront",
183
+ "show-item-label": !0,
184
+ items: o(A).locationOptions
185
+ }, null, 8, ["label", "modelValue", "items"])
186
+ ]),
187
+ s(i, {
188
+ modelValue: o(c).searchKey,
189
+ "onUpdate:modelValue": t[3] || (t[3] = (a) => o(c).searchKey = a),
190
+ class: "xs:hidden sm:hidden",
191
+ placeholder: "search",
192
+ collapsible: ""
193
+ }, null, 8, ["modelValue"])
194
+ ]),
195
+ s(U, {
196
+ class: "xs:hidden sm:hidden",
197
+ "row-data": o(g),
198
+ "column-defs": D,
199
+ "search-value": o(c).searchKey,
200
+ "column-filter": [],
201
+ onRowClick: t[4] || (t[4] = (a) => _(a.original)),
202
+ "hide-footer": o(g).length < 10
203
+ }, null, 8, ["row-data", "search-value", "hide-footer"]),
204
+ s(H, { class: "hidden xs:!flex sm:!flex flex-col mx-[-24px]" }, {
205
+ default: b(() => [
206
+ (d(!0), C(v, null, z(o(g).filter(
207
+ (a) => a.name.toLowerCase().includes(o(c).searchKey.toLowerCase())
208
+ ), (a) => (d(), k(j, {
209
+ key: a._id.toString(),
210
+ onClick: (u) => _(a),
211
+ class: "py-12 px-16 flex items-center justify-between border-b border-fm-color-neutral-gray-100"
212
+ }, {
213
+ default: b(() => [
214
+ n("div", ye, [
215
+ n("div", _e, [
216
+ (d(), k(J(o(B)(a))))
217
+ ]),
218
+ n("div", he, [
219
+ n("div", we, w(a.name), 1),
220
+ n("div", xe, w(o(N)(a)), 1)
221
+ ])
222
+ ]),
223
+ n("div", Ce, [
224
+ s(h, {
225
+ icon: "insights",
226
+ "icon-color": "neutral-gray-400",
227
+ variant: "tertiary",
228
+ onClick: async (u) => {
229
+ u.stopPropagation(), await I(a);
230
+ }
231
+ }, null, 8, ["onClick"]),
232
+ s(h, {
233
+ icon: "content_copy",
234
+ "icon-color": "neutral-gray-400",
235
+ variant: "tertiary",
236
+ onClick: async (u) => {
237
+ u.stopPropagation(), await L(a);
238
+ }
239
+ }, null, 8, ["onClick"]),
240
+ s(h, {
241
+ icon: "delete",
242
+ "icon-color": "neutral-gray-400",
243
+ variant: "tertiary",
244
+ onClick: (u) => (u.stopPropagation(), S(a))
245
+ }, null, 8, ["onClick"])
246
+ ])
247
+ ]),
248
+ _: 2
249
+ }, 1032, ["onClick"]))), 128))
250
+ ]),
251
+ _: 1
252
+ })
253
+ ], 64)) : (d(), k(X, {
254
+ key: 1,
255
+ variant: "outlined",
256
+ class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
257
+ }, {
258
+ default: b(() => [
259
+ t[6] || (t[6] = n("img", {
260
+ src: Q,
261
+ class: "aspect-square w-[150px]"
262
+ }, null, -1)),
263
+ n("div", ve, [
264
+ n("div", be, w(o(r)("connect.program.experience.empty_state.title")), 1),
265
+ n("div", ke, w(o(r)("connect.program.experience.empty_state.description")), 1)
266
+ ]),
267
+ s(h, {
268
+ variant: "primary",
269
+ label: "Create experience program",
270
+ icon: "add",
271
+ onClick: t[5] || (t[5] = (a) => _())
272
+ })
273
+ ]),
274
+ _: 1
275
+ })),
276
+ s(ce, {
277
+ ref_key: "sheetRef",
278
+ ref: y,
279
+ "onSubmit:modelValue": K
280
+ }, null, 512)
281
+ ])
282
+ ], 64);
283
+ };
284
+ }
285
+ });
286
+ export {
287
+ He as default
288
+ };
@@ -1,4 +1,4 @@
1
- import { c as s } from "./app-Z-UKRG5V.js";
1
+ import { c as s } from "./app-BEYzXWZO.js";
2
2
  var E = { exports: {} };
3
3
  (function(h, j) {
4
4
  (function(p, i) {
@@ -0,0 +1,138 @@
1
+ import { defineComponent as I, ref as i, computed as g, onMounted as j, resolveComponent as r, openBlock as c, createBlock as d, unref as o, withCtx as p, createVNode as b, normalizeClass as f, createCommentVNode as k, createElementVNode as B, toDisplayString as F, isRef as M, createElementBlock as O, Fragment as A, renderList as z } from "vue";
2
+ const N = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-hidden whitespace-nowrap" }, E = /* @__PURE__ */ I({
3
+ __name: "FilterChip",
4
+ props: {
5
+ modelValue: {
6
+ type: Array,
7
+ required: !1
8
+ },
9
+ label: {
10
+ type: String,
11
+ required: !1,
12
+ default: ""
13
+ },
14
+ showItemLabel: {
15
+ type: Boolean,
16
+ default: !1
17
+ },
18
+ placement: {
19
+ type: String,
20
+ required: !1,
21
+ default: "bottom-end"
22
+ },
23
+ class: {
24
+ type: String,
25
+ required: !1
26
+ },
27
+ disabled: {
28
+ type: Boolean,
29
+ required: !1
30
+ },
31
+ items: {
32
+ type: Array,
33
+ required: !0
34
+ },
35
+ icon: {
36
+ type: String,
37
+ required: !1
38
+ },
39
+ searchable: {
40
+ type: Boolean,
41
+ required: !1,
42
+ default: !0
43
+ },
44
+ allLabel: {
45
+ type: String,
46
+ default: "All"
47
+ },
48
+ selectedLabel: {
49
+ type: String,
50
+ default: "{count} selected"
51
+ },
52
+ searchPlaceholder: {
53
+ type: String,
54
+ default: "Search locations"
55
+ }
56
+ },
57
+ emits: ["update:model-value"],
58
+ setup(u, { emit: C }) {
59
+ const e = u, v = C, m = i(!1), t = i({}), s = i(""), V = g(() => {
60
+ const l = Object.keys(t.value).length;
61
+ return !t.value || Object.keys(t.value).length == e.items.length || l === 0 ? e.allLabel : e.selectedLabel.replace("{count}", String(l));
62
+ });
63
+ function w(l) {
64
+ t.value[l] ? delete t.value[l] : t.value[l] = !0, v("update:model-value", Object.keys(t.value));
65
+ }
66
+ function L() {
67
+ Object.keys(t.value).length > 0 ? t.value = {} : t.value = e.items.reduce((l, n) => (l[n.value] = !0, l), {}), v("update:model-value", Object.keys(t.value));
68
+ }
69
+ const S = g(() => s.value && s.value.length > 0 ? e.items.filter(
70
+ (l) => l.label.toLowerCase().includes(s.value.trim().toLowerCase())
71
+ ) : e.items);
72
+ return j(() => {
73
+ t.value = e.modelValue.reduce((l, n) => (l[n] = !0, l), {}), e.modelValue.length == 0;
74
+ }), (l, n) => {
75
+ const y = r("FmIcon"), _ = r("FmChip"), x = r("FmTextField"), h = r("FmMenuItem"), q = r("FmMenu");
76
+ return c(), d(q, {
77
+ placement: u.placement || "bottom-end",
78
+ disabled: u.disabled == !0,
79
+ "model-value": o(m),
80
+ onMenuChanged: n[1] || (n[1] = (a) => m.value = a),
81
+ "close-on-click": !1
82
+ }, {
83
+ "menu-button": p(() => [
84
+ b(_, {
85
+ label: u.label,
86
+ class: f(e.class || "text-fm-color-neutral-gray-400 cursor-pointer")
87
+ }, {
88
+ default: p(() => [
89
+ e.icon ? (c(), d(y, {
90
+ key: 0,
91
+ name: e.icon,
92
+ class: f(e.class),
93
+ outline: "",
94
+ size: "sm"
95
+ }, null, 8, ["name", "class"])) : k("", !0),
96
+ B("div", N, F(e.label) + " " + F(u.showItemLabel ? o(V) : ""), 1),
97
+ b(y, {
98
+ name: o(m) ? "keyboard_arrow_up" : "keyboard_arrow_down",
99
+ class: f(e.class),
100
+ outline: "",
101
+ size: "sm"
102
+ }, null, 8, ["name", "class"])
103
+ ]),
104
+ _: 1
105
+ }, 8, ["label", "class"])
106
+ ]),
107
+ default: p(() => [
108
+ u.searchable ? (c(), d(x, {
109
+ key: 0,
110
+ modelValue: o(s),
111
+ "onUpdate:modelValue": n[0] || (n[0] = (a) => M(s) ? s.value = a : null),
112
+ placeholder: e.searchPlaceholder,
113
+ class: "my-8"
114
+ }, null, 8, ["modelValue", "placeholder"])) : k("", !0),
115
+ b(h, {
116
+ "model-value": Object.keys(o(t)).length === e.items.length,
117
+ label: e.allLabel,
118
+ "has-checkbox": !0,
119
+ indeterminate: !0,
120
+ onClick: L
121
+ }, null, 8, ["model-value", "label"]),
122
+ (c(!0), O(A, null, z(o(S) ?? [], (a) => (c(), d(h, {
123
+ key: a.value,
124
+ value: a.value,
125
+ label: a.label,
126
+ "has-checkbox": !0,
127
+ "model-value": o(t)[a.value],
128
+ "onUpdate:modelValue": (T) => w(a.value)
129
+ }, null, 8, ["value", "label", "model-value", "onUpdate:modelValue"]))), 128))
130
+ ]),
131
+ _: 1
132
+ }, 8, ["placement", "disabled", "model-value"]);
133
+ };
134
+ }
135
+ });
136
+ export {
137
+ E as _
138
+ };