@feedmepos/mf-connect 0.1.104-prod → 0.1.105-prod

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 (126) hide show
  1. package/dist/{App-B4UWz7ir.js → App-Bb5yBnOB.js} +10 -9
  2. package/dist/{Bin-D_eSutW-.js → Bin-DXIYjMm_.js} +8 -8
  3. package/dist/{Broadcast-DDQE_RLR.js → Broadcast-BpcvdGj_.js} +11 -11
  4. package/dist/CampaignAnalytic-BDqEZmHy.js +1830 -0
  5. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-D2cTNgaS.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BBiIrN0a.js} +6 -6
  6. package/dist/{Card-CPozdg3m.js → Card-D2sggPws.js} +19 -19
  7. package/dist/{Collections-IrwF5bWH.js → Collections-BdZU2wR5.js} +9 -9
  8. package/dist/{Credit-BVXpy5tw.js → Credit-DeDCjtcp.js} +118 -93
  9. package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang-DEwMzs6L.js +53 -0
  10. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-CCe1rp0f.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-DbukUBK2.js} +815 -609
  11. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-DwP64fmL.js → EffectSheet.vue_vue_type_style_index_0_lang-BNOrfkpI.js} +12 -12
  12. package/dist/{Experience-BR1JXdH5.js → Experience-CT_3fZPR.js} +109 -84
  13. package/dist/{FileSaver.min-CX-3gU49.js → FileSaver.min-C3sYNQw3.js} +1 -1
  14. package/dist/FilterChip.vue_vue_type_script_setup_true_lang-3bH-tZAm.js +138 -0
  15. package/dist/Game-C4v96zEu.js +355 -0
  16. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-q5fF5d7d.js → ImageInput.vue_vue_type_script_setup_true_lang-6PmRI47X.js} +1 -1
  17. package/dist/{Index--Xl_8CFP.js → Index-C5DRA08U.js} +10 -10
  18. package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-C-xW5Tw8.js → LocationPicker.vue_vue_type_script_setup_true_lang-BXcpCtHI.js} +1 -1
  19. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-DGVqQz1j.js → LottieAnimation.vue_vue_type_script_setup_true_lang-C8dm05l2.js} +1 -1
  20. package/dist/LoyaltyDashboard-BCPojLdm.js +2865 -0
  21. package/dist/{MainLayout-DB_Y2C3K.js → MainLayout-p92jJ4Mp.js} +3 -3
  22. package/dist/{Marketing-CjAGzfL7.js → Marketing-Z-TiSgs6.js} +4 -4
  23. package/dist/{MarketingMaterialEdit-BoF6kTOz.js → MarketingMaterialEdit-CS-hcbGU.js} +6 -6
  24. package/dist/{Member-DnypOK2I.js → Member-DwY0tXwr.js} +7 -7
  25. package/dist/MemberDetailSheet.vue_vue_type_script_setup_true_lang-DDSBw1sL.js +1286 -0
  26. package/dist/{MemberImportHistory-BJSyT6Ys.js → MemberImportHistory-BN85ZxpX.js} +8 -8
  27. package/dist/MemberList-DaIJCa_0.js +336 -0
  28. package/dist/{MemberTransactions-CbPxUrtd.js → MemberTransactions-DrgA6jX1.js} +1 -1
  29. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-CVzfjs9D.js → MessageInput.vue_vue_type_script_setup_true_lang-rl8Sr_zl.js} +11 -11
  30. package/dist/MetricInfoTooltip.vue_vue_type_script_setup_true_lang-lGB6WCj6.js +40 -0
  31. package/dist/Mission-BFBmJTjP.js +359 -0
  32. package/dist/{Overview-BW2_y1_7.js → Overview-DaZA6Oxr.js} +5 -5
  33. package/dist/{Overview-DZxRuA5F.js → Overview-DtiqH8iJ.js} +19 -19
  34. package/dist/Point-DeaTc_Gj.js +287 -0
  35. package/dist/Promotion-BBIylJxt.js +417 -0
  36. package/dist/{Queue-CSF9M_Lc.js → Queue-WsDiZkdN.js} +11 -11
  37. package/dist/{Record-B-HdI5A4.js → Record-CzD7sYYG.js} +10 -10
  38. package/dist/{Review-D6RQbcP6.js → Review-BkPHrt33.js} +2 -2
  39. package/dist/{ReviewFacebookCallback-CkULwhF-.js → ReviewFacebookCallback-Bu8j9CLF.js} +5 -5
  40. package/dist/{ReviewGoogleCallback-DgPEXV_R.js → ReviewGoogleCallback-Bh3R06MN.js} +5 -5
  41. package/dist/{Reward-CZvM6GQ9.js → Reward-BHe9y1VN.js} +17 -17
  42. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-C1y2_pHY.js → RewardGroup.vue_vue_type_script_setup_true_lang-DVNknaoM.js} +12 -12
  43. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-Cvo6a7Nw.js → RuleGroup.vue_vue_type_script_setup_true_lang-DAXfiO8F.js} +279 -286
  44. package/dist/{Segment-D2bXEF1U.js → Segment-CjaPWdMt.js} +24 -24
  45. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-Ytimazjg.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-srMHsTa6.js} +12 -12
  46. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-Bn1IWAd_.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-C5taZCvV.js} +4 -4
  47. package/dist/{Setting-DelduRrh.js → Setting-Dr_lawoc.js} +57 -57
  48. package/dist/{SettingAdvertisements-gTDg1C60.js → SettingAdvertisements-BXJd1btw.js} +13 -13
  49. package/dist/{Settings-VUEo9wwx.js → Settings-DPJq4qbw.js} +5 -5
  50. package/dist/{Store-CXQZirbg.js → Store-BNq7oK2B.js} +22 -22
  51. package/dist/{StoreRewards-BDuZPA8S.js → StoreRewards-WExx61kV.js} +16 -16
  52. package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-C-yqZEn4.js → StoreTransactions.vue_vue_type_script_setup_true_lang-BaqyPTXc.js} +327 -386
  53. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-BayrgH7m.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-CnCHFZL3.js} +2 -2
  54. package/dist/{Tier-DtPE4IJ5.js → Tier-BSLPHzsj.js} +102 -102
  55. package/dist/{Title-DNCnQeeR.js → Title-BQ_CVnIN.js} +22 -22
  56. package/dist/{Transaction-BkUaCGwl.js → Transaction-CvyyRq8P.js} +2 -2
  57. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-B7TY_AGp.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-ByHFu7ry.js} +6 -6
  58. package/dist/{Voucher-BBuB9tf8.js → Voucher-DQ-yXZAC.js} +143 -121
  59. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-Bu09bIut.js → VoucherEditor.vue_vue_type_script_setup_true_lang-BB0n73WF.js} +115 -121
  60. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-BSKpAMJL.js → ZodTextField.vue_vue_type_script_setup_true_lang-nnWYrHgL.js} +2 -2
  61. package/dist/{app-CSLQmdYA.js → app-BxM9Ghdm.js} +27795 -25657
  62. package/dist/app.js +1 -1
  63. package/dist/{business-okSb42At.js → business-nbLS8l9h.js} +1 -1
  64. package/dist/{campaign-V7nlCdxR.js → campaign-C_IR2u8a.js} +49 -48
  65. package/dist/{campaign-Ck9GwZdI.js → campaign-Ki9WAmYl.js} +2 -2
  66. package/dist/{campaign.enum-BQ5khvqI.js → campaign.enum-CtgtWycO.js} +1 -1
  67. package/dist/{campaign.fn-DMDpxVSZ.js → campaign.fn-CJOfTzI6.js} +32 -32
  68. package/dist/{collectible.enum-lKz3vTQM.js → collectible.enum-a5dfnH3M.js} +1 -1
  69. package/dist/{collection.fn-BH5cqMNy.js → collection.fn-Cc-luweq.js} +2 -2
  70. package/dist/{effect-pUpfqkCF.js → effect-D66eImId.js} +1 -1
  71. package/dist/{email-addresses-CzBv1fzv.js → email-addresses-DNHwCrI5.js} +2 -2
  72. package/dist/{export-Du7ZAv-8.js → export-Bp-Fwp-h.js} +3 -3
  73. package/dist/{helper-BpthZPU4.js → helper-BpHRMtgf.js} +1 -1
  74. package/dist/{index-DSltrIkA.js → index-B8cXkkGF.js} +1 -1
  75. package/dist/{timezone-DYWqfGTu.js → index-BPV5Dkjl.js} +105 -122
  76. package/dist/{index-D7PksEV2.js → index-BdqanLnJ.js} +675 -677
  77. package/dist/{index-CWAdNVKN.js → index-BnH5UiZx.js} +6 -6
  78. package/dist/{index-v8QQ-4ZP.js → index-C1Bp0PPS.js} +10 -10
  79. package/dist/{index-BhuD1NhH.js → index-CA5atWo4.js} +1 -1
  80. package/dist/{index-ZTYDfSkT.js → index-CZ-SWULS.js} +4 -5
  81. package/dist/{index-CGK1kSCt.js → index-DB13tnmJ.js} +3 -3
  82. package/dist/{index-C0JgU0Z2.js → index-DFLwgFnq.js} +1 -1
  83. package/dist/{index-DCp9k5BB.js → index-DVcOSnAP.js} +2 -2
  84. package/dist/{index-DNdHiAXR.js → index-Dj3FzUo_.js} +18 -2
  85. package/dist/{index-CN5Zoynf.js → index-DyllcNwd.js} +2 -2
  86. package/dist/{index-OaZRtKP_.js → index-JU7Ed3Ex.js} +5 -5
  87. package/dist/{index--6uUWSMc.js → index-Oeiw4Epg.js} +1 -1
  88. package/dist/{index-izVlVA8-.js → index-VzLsGqcm.js} +1 -1
  89. package/dist/{index-DPgGmpyL.js → index-nUrA9Q7e.js} +9 -9
  90. package/dist/{index.esm2017-mpnkyDRb.js → index.esm2017-32NtkXiv.js} +34 -34
  91. package/dist/{loading-BG3Pj6qz.js → loading-CLZ5IFPe.js} +1 -1
  92. package/dist/{lodash-BfDdt-c9.js → lodash-k98YPjFm.js} +1 -1
  93. package/dist/{member-import-BNFdZ3Df.js → member-import-CxNPNPh5.js} +1 -1
  94. package/dist/membership-CjqXHl0l.js +274 -0
  95. package/dist/{money-CRftC-F0.js → money-zJomyMyN.js} +1 -1
  96. package/dist/{number-z7YZyGFS.js → number-BfHmokvl.js} +1 -1
  97. package/dist/object-BYyQ0PZp.js +18 -0
  98. package/dist/{objectid-BKMqp_oR.js → objectid-g-s-CuBk.js} +6 -6
  99. package/dist/{plugins-CWeDGuzy.js → plugins-DNZv50xL.js} +87 -87
  100. package/dist/{reward-BVTKTGi6.js → reward-BefNUdd_.js} +1 -1
  101. package/dist/{rule-YhhCOals.js → rule-DkLIl8GM.js} +3 -3
  102. package/dist/{rule-builder-ae8A0qoi.js → rule-builder-BVyNMiE8.js} +1 -1
  103. package/dist/style.css +1 -1
  104. package/dist/{template-CQrM_0hz.js → template-BmSOVHcp.js} +7 -7
  105. package/dist/timezone-DoX-vj_6.js +20 -0
  106. package/dist/transaction.fn-D15eS4nB.js +64 -0
  107. package/dist/{trigger-Clo3vSjw.js → trigger-BhReH6kZ.js} +5 -5
  108. package/dist/{useMarketingMaterialActions-HyqIT94N.js → useMarketingMaterialActions-DdcVqSlV.js} +3 -3
  109. package/dist/{usePagination-CWRrkbFL.js → usePagination-rx2JFS-5.js} +1 -1
  110. package/dist/{user-MVk5s412.js → user-B4gZia2L.js} +1 -1
  111. package/dist/{vue-i18n-BN9KLJoz.js → vue-i18n-JLM70-gr.js} +201 -201
  112. package/dist/{xlsx-s0BxKsa_.js → xlsx-CuKZcLfT.js} +440 -440
  113. package/dist/{zod-H4l78-by.js → zod-ByE_90T4.js} +1 -1
  114. package/package.json +3 -4
  115. package/dist/Analytic-1rqyus1X.js +0 -428
  116. package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang-eIoPtgO5.js +0 -58
  117. package/dist/FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js +0 -129
  118. package/dist/Game-8nvdSkbi.js +0 -330
  119. package/dist/MemberList-Bf_XyoxW.js +0 -1602
  120. package/dist/Mission-DE4O6XM6.js +0 -334
  121. package/dist/Point-BMEe6duo.js +0 -262
  122. package/dist/Promotion-lamxp48U.js +0 -392
  123. package/dist/SelectItems.vue_vue_type_script_setup_true_lang-BxOEEr9-.js +0 -181
  124. package/dist/dto-GksE6pni.js +0 -216
  125. package/dist/membership-tNeaKAeS.js +0 -255
  126. package/dist/object-qECH92oz.js +0 -26
@@ -1,10 +1,10 @@
1
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-CSLQmdYA.js";
3
- import { Z as r } from "./zod-H4l78-by.js";
4
- import { g as oe, f as ae } from "./index-DPgGmpyL.js";
5
- import { u as I } from "./vue-i18n-BN9KLJoz.js";
6
- import { s as S } from "./effect-pUpfqkCF.js";
7
- import { p as ne } from "./plugins-CWeDGuzy.js";
2
+ import { z as te, T as le } from "./app-BxM9Ghdm.js";
3
+ import { Z as r } from "./zod-ByE_90T4.js";
4
+ import { g as oe, f as ae } from "./index-nUrA9Q7e.js";
5
+ import { u as T } from "./vue-i18n-JLM70-gr.js";
6
+ import { s as S } from "./effect-D66eImId.js";
7
+ import { p as ne } from "./plugins-DNZv50xL.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"
@@ -40,7 +40,7 @@ const ie = { class: "flex flex-col gap-8" }, de = {
40
40
  emits: ["update:model-value"],
41
41
  setup(t, { emit: C }) {
42
42
  var A, U;
43
- const { t: n } = I(), i = t, v = C, a = [
43
+ const { t: n } = T(), 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" }
46
46
  ], c = O(!1);
@@ -75,7 +75,7 @@ const ie = { class: "flex flex-col gap-8" }, de = {
75
75
  }
76
76
  return (m, s) => {
77
77
  var E, $, j, M, H, N, L, z;
78
- const R = x("FmButtonGroup"), Y = x("FmSimpleDateRangePicker"), J = x("FmSwitch"), K = x("FmStepperField"), T = x("FmHelperText");
78
+ const R = x("FmButtonGroup"), Y = x("FmSimpleDateRangePicker"), J = x("FmSwitch"), K = x("FmStepperField"), I = x("FmHelperText");
79
79
  return d(), b("div", ie, [
80
80
  W(m.$slots, "label", {}, () => [
81
81
  t.label ? (d(), b("div", de, V(t.label), 1)) : f("", !0)
@@ -139,11 +139,11 @@ const ie = { class: "flex flex-col gap-8" }, de = {
139
139
  })
140
140
  }, null, 8, ["label", "class", "disabled", "append-text", "model-value"])) : f("", !0)
141
141
  ])) : f("", !0),
142
- ((N = i.modelValue) == null ? void 0 : N.followFirstReceive) === !0 && e(c) ? (d(), u(T, {
142
+ ((N = i.modelValue) == null ? void 0 : N.followFirstReceive) === !0 && e(c) ? (d(), u(I, {
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
+ h(I, {
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"])
@@ -170,7 +170,7 @@ const ie = { class: "flex flex-col gap-8" }, de = {
170
170
  },
171
171
  emits: ["update:model-value"],
172
172
  setup(t, { emit: C }) {
173
- const { t: n } = I(), i = t, v = C, a = O(i.modelValue ?? {});
173
+ const { t: n } = T(), i = t, v = C, a = O(i.modelValue ?? {});
174
174
  return X(a, () => v("update:model-value", a.value)), (c, l) => {
175
175
  const g = x("FmSwitch"), y = x("FmStepperField");
176
176
  return d(), b("div", ue, [
@@ -282,7 +282,7 @@ const ie = { class: "flex flex-col gap-8" }, de = {
282
282
  },
283
283
  emits: ["update:model-value"],
284
284
  setup(t, { emit: C }) {
285
- const { t: n } = I(), i = C, v = O(!1);
285
+ const { t: n } = T(), i = C, v = O(!1);
286
286
  async function a(c) {
287
287
  c.stopPropagation(), await ne.remove(n("connect.effect.removeConfirm")) && i("update:model-value", null);
288
288
  }
@@ -1,69 +1,80 @@
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-CWeDGuzy.js";
5
- import { u as X } from "./loading-BG3Pj6qz.js";
6
- import { u as Y } from "./business-okSb42At.js";
7
- import { u as Z } from "./campaign-Ck9GwZdI.js";
8
- import { a as I, b as V, g as ee } from "./campaign-V7nlCdxR.js";
9
- import { u as te, c as oe, p as ae } from "./template-CQrM_0hz.js";
10
- import { u as ne } from "./vue-i18n-BN9KLJoz.js";
11
- import { _ as re } from "./FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js";
12
- import { _ as ie } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-CCe1rp0f.js";
13
- import { c as u } from "./index-DNdHiAXR.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-DNZv50xL.js";
5
+ import { u as Z } from "./loading-CLZ5IFPe.js";
6
+ import { u as ee } from "./business-nbLS8l9h.js";
7
+ import { u as te } from "./campaign-Ki9WAmYl.js";
8
+ import { a as V, b as T, g as oe } from "./campaign-C_IR2u8a.js";
9
+ import { u as ae, c as ne, p as re } from "./template-BmSOVHcp.js";
10
+ import { u as ie } from "./vue-i18n-JLM70-gr.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-DbukUBK2.js";
13
+ import "./index-Oeiw4Epg.js";
14
+ import { useRouter as le } from "vue-router";
15
+ import { c as g } from "./index-Dj3FzUo_.js";
16
+ import { R as me } from "./app-BxM9Ghdm.js";
17
+ 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" }, ge = { class: "space-y-8" }, fe = { 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" }, Ke = /* @__PURE__ */ q({
15
18
  __name: "Experience",
16
- setup(xe) {
17
- const { t: r } = ne(), T = {
19
+ setup(be) {
20
+ const { t: r } = ie(), A = le(), N = {
18
21
  label: r("connect.program.common.actions.create", {
19
22
  type: r("connect.program.experience.title").toLowerCase()
20
23
  }),
21
24
  value: "create",
22
25
  isPrimary: !0,
23
26
  prependIcon: "add"
24
- }, N = te("POINT", Q()), $ = Y(), p = Z(), { global: D, minor: F } = X, c = P({
27
+ }, R = ae("POINT", Q()), E = ee(), p = te(), { global: O, minor: P } = Z, c = B({
25
28
  searchKey: "",
26
29
  location: []
27
30
  });
28
- function K(e) {
31
+ function $(e) {
29
32
  const t = c.value.location;
30
33
  return !t || t.length === 0 || !e.targetLocation ? !0 : Array.isArray(t) ? t.some((l) => {
31
34
  var i;
32
35
  return (i = e == null ? void 0 : e.targetLocation) == null ? void 0 : i.includes(l);
33
36
  }) : e.targetLocation.includes(t);
34
37
  }
35
- const f = H(
36
- () => p.campaigns.experience.filter((e) => K(e))
37
- ), O = [
38
+ const f = G(
39
+ () => p.campaigns.experience.filter((e) => $(e))
40
+ ), D = [
38
41
  {
39
42
  header: "Program title",
40
43
  accessorFn: (e) => e.name
41
44
  },
42
45
  {
43
46
  header: "Status",
44
- accessorFn: (e) => ee(e),
47
+ accessorFn: (e) => oe(e),
45
48
  cell(e) {
46
- return I(e.row.original);
49
+ return V(e.row.original);
47
50
  }
48
51
  },
49
52
  {
50
53
  header: "Summary",
51
- accessorFn: (e) => V(e)
54
+ accessorFn: (e) => T(e)
52
55
  //v.effect,
53
56
  },
54
57
  {
55
58
  header: "Actions",
56
59
  cell(e) {
57
- return k("div", { class: "flex items-center gap-8 justify-end" }, [
58
- k(B.FmButton, {
60
+ return w("div", { class: "flex items-center gap-8 justify-end" }, [
61
+ w(F.FmButton, {
59
62
  variant: "tertiary",
60
- icon: "content_copy",
63
+ icon: "insights",
61
64
  iconColor: "neutral-gray-400",
62
65
  onClick: async (t) => {
63
66
  t.stopPropagation(), await L(e.row.original);
64
67
  }
65
68
  }),
66
- k(B.FmButton, {
69
+ w(F.FmButton, {
70
+ variant: "tertiary",
71
+ icon: "content_copy",
72
+ iconColor: "neutral-gray-400",
73
+ onClick: async (t) => {
74
+ t.stopPropagation(), await I(e.row.original);
75
+ }
76
+ }),
77
+ w(F.FmButton, {
67
78
  variant: "tertiary",
68
79
  icon: "delete",
69
80
  iconColor: "neutral-gray-400",
@@ -74,11 +85,11 @@ const se = { class: "px-24 flex flex-col gap-y-16" }, ce = { class: "flex items-
74
85
  ]);
75
86
  }
76
87
  }
77
- ], h = P();
88
+ ], x = B();
78
89
  async function S(e) {
79
- await W.remove(`Are you sure you want to remove ${e.name}?`) && await F(
90
+ await W.remove(`Are you sure you want to remove ${e.name}?`) && await P(
80
91
  async () => {
81
- await u.delete(e._id), await p.read("POINT");
92
+ await g.delete(e._id), await p.read("POINT");
82
93
  },
83
94
  {
84
95
  message: `Removing ${e.name}`,
@@ -86,38 +97,44 @@ const se = { class: "px-24 flex flex-col gap-y-16" }, ce = { class: "flex items-
86
97
  }
87
98
  );
88
99
  }
89
- async function g(e) {
90
- e ? await t() : N.open(async (l) => {
100
+ async function y(e) {
101
+ e ? await t() : R.open(async (l) => {
91
102
  await t(l);
92
103
  });
93
104
  async function t(l) {
94
105
  var i;
95
- (i = h.value) == null || i.showSheet(
106
+ (i = x.value) == null || i.showSheet(
96
107
  !0,
97
108
  "POINT",
98
- e ? await u.readById(e._id) : void 0,
109
+ e ? await g.readById(e._id) : void 0,
99
110
  l
100
111
  );
101
112
  }
102
113
  }
103
114
  async function L(e) {
115
+ await A.push({
116
+ name: me["$connect-PROGRAM_EXPERIENCE_ANALYTIC"],
117
+ params: { id: e._id }
118
+ });
119
+ }
120
+ async function I(e) {
104
121
  var i;
105
- if (!await oe(e.name))
122
+ if (!await ne(e.name))
106
123
  return;
107
- const t = await u.readById(e._id), l = ae(t, {
124
+ const t = await g.readById(e._id), l = re(t, {
108
125
  keepCollectible: !0
109
126
  });
110
- (i = h.value) == null || i.showSheet(
127
+ (i = x.value) == null || i.showSheet(
111
128
  !0,
112
129
  "POINT",
113
130
  l,
114
131
  t.template
115
132
  );
116
133
  }
117
- async function A(e) {
118
- await F(
134
+ async function K(e) {
135
+ await P(
119
136
  async () => {
120
- e.campaign._id ? await u.update(e.campaign._id, e) : await u.create(e), await p.read("POINT");
137
+ e.campaign._id ? await g.update(e.campaign._id, e) : await g.create(e), await p.read("POINT");
121
138
  },
122
139
  {
123
140
  message: r("connect.program.common.update.updating", {
@@ -130,19 +147,19 @@ const se = { class: "px-24 flex flex-col gap-y-16" }, ce = { class: "flex items-
130
147
  }
131
148
  );
132
149
  }
133
- return q(async () => {
134
- await D(async () => {
150
+ return X(async () => {
151
+ await O(async () => {
135
152
  await p.read("POINT");
136
153
  });
137
154
  }), (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, [
155
+ const l = m("FmPageHead"), i = m("FmSearch"), M = m("FmTable"), _ = m("FmButton"), U = m("FmListItem"), j = m("FmList"), H = m("FmCard");
156
+ return u(), C(v, null, [
140
157
  s(l, {
141
158
  title: o(r)("connect.program.experience.title"),
142
- actions: o(f).length > 0 ? [T] : [],
143
- "onClick:action": t[0] || (t[0] = () => g())
159
+ actions: o(f).length > 0 ? [N] : [],
160
+ "onClick:action": t[0] || (t[0] = () => y())
144
161
  }, null, 8, ["title", "actions"]),
145
- n("div", se, [
162
+ n("div", pe, [
146
163
  s(i, {
147
164
  modelValue: o(c).searchKey,
148
165
  "onUpdate:modelValue": t[1] || (t[1] = (a) => o(c).searchKey = a),
@@ -150,17 +167,17 @@ const se = { class: "px-24 flex flex-col gap-y-16" }, ce = { class: "flex items-
150
167
  placeholder: o(r)("connect.program.common.search"),
151
168
  collapsible: ""
152
169
  }, 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(re, {
170
+ o(p).campaigns.experience && o(p).campaigns.experience.length > 0 ? (u(), C(v, { key: 0 }, [
171
+ n("div", de, [
172
+ n("div", ue, [
173
+ s(se, {
157
174
  label: `${o(r)("connect.common.location")}: `,
158
175
  "right-icon": "keyboard_arrow_down",
159
176
  modelValue: o(c).location,
160
177
  "onUpdate:modelValue": t[2] || (t[2] = (a) => o(c).location = a),
161
178
  icon: "storefront",
162
179
  "show-item-label": !0,
163
- items: o($).locationOptions
180
+ items: o(E).locationOptions
164
181
  }, null, 8, ["label", "modelValue", "items"])
165
182
  ]),
166
183
  s(i, {
@@ -171,48 +188,56 @@ const se = { class: "px-24 flex flex-col gap-y-16" }, ce = { class: "flex items-
171
188
  collapsible: ""
172
189
  }, null, 8, ["modelValue"])
173
190
  ]),
174
- s(R, {
191
+ s(M, {
175
192
  class: "xs:hidden sm:hidden",
176
193
  "row-data": o(f),
177
- "column-defs": O,
194
+ "column-defs": D,
178
195
  "search-value": o(c).searchKey,
179
196
  "column-filter": [],
180
- onRowClick: t[4] || (t[4] = (a) => g(a.original)),
197
+ onRowClick: t[4] || (t[4] = (a) => y(a.original)),
181
198
  "hide-footer": o(f).length < 10
182
199
  }, 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(
200
+ s(j, { class: "hidden xs:!flex sm:!flex flex-col mx-[-24px]" }, {
201
+ default: b(() => [
202
+ (u(!0), C(v, null, Y(o(f).filter(
186
203
  (a) => a.name.toLowerCase().includes(o(c).searchKey.toLowerCase())
187
- ), (a) => (d(), b(j, {
204
+ ), (a) => (u(), k(U, {
188
205
  key: a._id.toString(),
189
- onClick: (y) => g(a),
206
+ onClick: (d) => y(a),
190
207
  class: "py-12 px-16 flex items-center justify-between border-b border-fm-color-neutral-gray-100"
191
208
  }, {
192
- default: v(() => [
193
- n("div", me, [
194
- n("div", pe, [
195
- (d(), b(G(o(I)(a))))
209
+ default: b(() => [
210
+ n("div", ge, [
211
+ n("div", fe, [
212
+ (u(), k(z(o(V)(a))))
196
213
  ]),
197
- n("div", de, [
198
- n("div", ue, _(a.name), 1),
199
- n("div", fe, _(o(V)(a)), 1)
214
+ n("div", ye, [
215
+ n("div", _e, h(a.name), 1),
216
+ n("div", he, h(o(T)(a)), 1)
200
217
  ])
201
218
  ]),
202
- n("div", ge, [
203
- s(x, {
219
+ n("div", we, [
220
+ s(_, {
221
+ icon: "insights",
222
+ "icon-color": "neutral-gray-400",
223
+ variant: "tertiary",
224
+ onClick: async (d) => {
225
+ d.stopPropagation(), await L(a);
226
+ }
227
+ }, null, 8, ["onClick"]),
228
+ s(_, {
204
229
  icon: "content_copy",
205
230
  "icon-color": "neutral-gray-400",
206
231
  variant: "tertiary",
207
- onClick: async (y) => {
208
- y.stopPropagation(), await L(a);
232
+ onClick: async (d) => {
233
+ d.stopPropagation(), await I(a);
209
234
  }
210
235
  }, null, 8, ["onClick"]),
211
- s(x, {
236
+ s(_, {
212
237
  icon: "delete",
213
238
  "icon-color": "neutral-gray-400",
214
239
  variant: "tertiary",
215
- onClick: (y) => (y.stopPropagation(), S(a))
240
+ onClick: (d) => (d.stopPropagation(), S(a))
216
241
  }, null, 8, ["onClick"])
217
242
  ])
218
243
  ]),
@@ -221,33 +246,33 @@ const se = { class: "px-24 flex flex-col gap-y-16" }, ce = { class: "flex items-
221
246
  ]),
222
247
  _: 1
223
248
  })
224
- ], 64)) : (d(), b(U, {
249
+ ], 64)) : (u(), k(H, {
225
250
  key: 1,
226
251
  variant: "outlined",
227
252
  class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
228
253
  }, {
229
- default: v(() => [
254
+ default: b(() => [
230
255
  t[6] || (t[6] = n("img", {
231
256
  src: J,
232
257
  class: "aspect-square w-[150px]"
233
258
  }, 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)
259
+ n("div", xe, [
260
+ n("div", Ce, h(o(r)("connect.program.experience.empty_state.title")), 1),
261
+ n("div", ve, h(o(r)("connect.program.experience.empty_state.description")), 1)
237
262
  ]),
238
- s(x, {
263
+ s(_, {
239
264
  variant: "primary",
240
265
  label: "Create experience program",
241
266
  icon: "add",
242
- onClick: t[5] || (t[5] = (a) => g())
267
+ onClick: t[5] || (t[5] = (a) => y())
243
268
  })
244
269
  ]),
245
270
  _: 1
246
271
  })),
247
- s(ie, {
272
+ s(ce, {
248
273
  ref_key: "sheetRef",
249
- ref: h,
250
- "onSubmit:modelValue": A
274
+ ref: x,
275
+ "onSubmit:modelValue": K
251
276
  }, null, 512)
252
277
  ])
253
278
  ], 64);
@@ -255,5 +280,5 @@ const se = { class: "px-24 flex flex-col gap-y-16" }, ce = { class: "flex items-
255
280
  }
256
281
  });
257
282
  export {
258
- Ne as default
283
+ Ke as default
259
284
  };
@@ -1,4 +1,4 @@
1
- import { c as s } from "./app-CSLQmdYA.js";
1
+ import { c as s } from "./app-BxM9Ghdm.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
+ };