@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,19 +1,20 @@
1
1
  import { defineComponent as Ve, ref as ye, resolveComponent as Be, openBlock as P, createBlock as ui, unref as v, isRef as mi, withCtx as We, createElementVNode as k, createElementBlock as ie, Fragment as Ue, renderList as je, toDisplayString as $, watch as fi, onBeforeMount as hi, createVNode as H, createCommentVNode as gi, h as G } from "vue";
2
2
  import { components as Ye } from "@feedmepos/ui-library";
3
- import "./index-Cl8t41Sk.js";
3
+ import "./index-Bb4TieR_.js";
4
4
  import { h as Q } from "./moment-D7p2TMB-.js";
5
- import { _ as Je } from "./FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js";
6
- import { _ as vi } from "./DateRangeChip.vue_vue_type_script_setup_true_lang-eIoPtgO5.js";
7
- import { u as yi, _ as ki } from "./usePagination-BPcPhEnp.js";
8
- import { c as Xe } from "./plugins-D25PaNJk.js";
5
+ import { _ as Je } from "./FilterChip.vue_vue_type_script_setup_true_lang-3bH-tZAm.js";
6
+ import { _ as vi } from "./DateRangeChip.vue_vue_type_script_setup_true_lang--FqHJ7Ez.js";
7
+ import { u as yi, _ as ki } from "./usePagination-DmZX0V64.js";
8
+ import { c as Xe } from "./plugins-DLIgnFIF.js";
9
9
  import { c as Fe } from "./string-Gcy5IM_H.js";
10
- import { e as me, f as xi } from "./index-BrboOmPq.js";
11
- import "./index-DgzNGQgE.js";
12
- import "./index-CB7ytKOE.js";
13
- import "./index-vI-ndGu_.js";
14
- import { g as Si, S as Ei, b as Ci } from "./index-CWiaP-aV.js";
10
+ import { e as me, f as xi } from "./index-DcA0B-Y5.js";
11
+ import "./index-LlFZ5kxi.js";
12
+ import "./index-LnCoUCnx.js";
13
+ import "./index-FnsjvtSo.js";
14
+ import "./index-CXL5WAH0.js";
15
+ import { g as Si, S as Ei, b as Ci } from "./index-B9DM5Vuv.js";
15
16
  import { o as _i } from "./objectId-dwaoBfJX.js";
16
- import { u as Oi } from "./vue-i18n-CgMK-TaC.js";
17
+ import { u as Oi } from "./vue-i18n-BPeSHE3c.js";
17
18
  var Ii = "2.0.10", ci = 500, Ke = "user-agent", te = "", Ze = "?", x = {
18
19
  FUNCTION: "function",
19
20
  OBJECT: "object",
@@ -1991,7 +1992,7 @@ const zi = { class: "space-y-16" }, $i = { class: "fm-typo-en-body-md-400 text-f
1991
1992
  ]);
1992
1993
  };
1993
1994
  }
1994
- }), lt = { class: "px-24 flex flex-col gap-y-32 pb-24" }, Ct = /* @__PURE__ */ Ve({
1995
+ }), lt = { class: "px-24 flex flex-col gap-y-32 pb-24" }, _t = /* @__PURE__ */ Ve({
1995
1996
  __name: "AuditLogs",
1996
1997
  setup(e) {
1997
1998
  const { t: s } = Oi();
@@ -2009,5 +2010,5 @@ const zi = { class: "space-y-16" }, $i = { class: "fm-typo-en-body-md-400 text-f
2009
2010
  }
2010
2011
  });
2011
2012
  export {
2012
- Ct as default
2013
+ _t as default
2013
2014
  };
@@ -1,15 +1,15 @@
1
1
  import { defineComponent as C, ref as c, h as s, onMounted as x, resolveComponent as d, openBlock as S, createElementBlock as B, Fragment as M, createVNode as l, unref as o, createElementVNode as u } from "vue";
2
2
  import { components as p } from "@feedmepos/ui-library";
3
- import { u as K } from "./loading-DTKDhqew.js";
4
- import { u as R } from "./business-i0Gxk7gG.js";
5
- import { C as A } from "./campaign-f7FT91GR.js";
6
- import { _ as P } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-C7KZ8GMx.js";
3
+ import { u as K } from "./loading-CzWOx4tE.js";
4
+ import { u as R } from "./business-BZUIs8Ub.js";
5
+ import { C as A } from "./campaign-DKjBjV2k.js";
6
+ import { _ as P } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-CA31QP-A.js";
7
7
  import { _ as U } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
8
- import { _ as Y } from "./SendVoucherSheet.vue_vue_type_script_setup_true_lang-Gkz8jhES.js";
9
- import { u as D } from "./vue-i18n-CgMK-TaC.js";
8
+ import { _ as Y } from "./SendVoucherSheet.vue_vue_type_script_setup_true_lang-CWP5sGT7.js";
9
+ import { u as D } from "./vue-i18n-BPeSHE3c.js";
10
10
  import { h as E } from "./moment-D7p2TMB-.js";
11
- import { p as I } from "./plugins-D25PaNJk.js";
12
- import { c as g } from "./campaign-CbMlARNI.js";
11
+ import { p as I } from "./plugins-DLIgnFIF.js";
12
+ import { c as g } from "./index-kkhrPH6s.js";
13
13
  const T = { class: "px-24 flex flex-col gap-y-16" }, $ = { class: "flex items-center justify-between w-full" }, j = { class: "flex gap-8 overflow-x-auto" }, oe = /* @__PURE__ */ C({
14
14
  __name: "Bin",
15
15
  setup(H) {
@@ -0,0 +1,303 @@
1
+ import { defineComponent as W, ref as F, computed as X, h as g, onMounted as Y, resolveComponent as d, openBlock as m, createElementBlock as y, Fragment as k, createVNode as r, unref as a, createElementVNode as n, withCtx as B, renderList as Z, createBlock as w, resolveDynamicComponent as ee, toDisplayString as p, createCommentVNode as A } from "vue";
2
+ import { _ as te } from "./campaign-CpzFl8Vr.js";
3
+ import { useDialog as ae, components as D } from "@feedmepos/ui-library";
4
+ import { p as oe } from "./plugins-DLIgnFIF.js";
5
+ import { u as ne } from "./loading-CzWOx4tE.js";
6
+ import { u as se } from "./business-BZUIs8Ub.js";
7
+ import { u as ce } from "./campaign-B6I6PuY4.js";
8
+ import { a as re, b as K, c as P, d as f } from "./campaign-DKjBjV2k.js";
9
+ import { c as ie, p as le } from "./duplicateCampaign-aIsX9cCi.js";
10
+ import { u as me } from "./vue-i18n-BPeSHE3c.js";
11
+ import { _ as de } from "./FilterChip.vue_vue_type_script_setup_true_lang-3bH-tZAm.js";
12
+ import { _ as pe } from "./MessageInput.vue_vue_type_script_setup_true_lang-freeE-DP.js";
13
+ import { _ as ue } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-CA31QP-A.js";
14
+ import { u as ge } from "./template-CYKGCWY4.js";
15
+ import { c as _ } from "./index-kkhrPH6s.js";
16
+ const fe = { class: "px-24 flex flex-col gap-y-16" }, ye = { class: "flex items-center justify-between w-full" }, _e = { class: "flex gap-8 overflow-x-auto" }, he = { class: "space-y-8" }, be = { class: "flex w-full gap-4 items-center" }, we = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ce = { class: "space-y-4" }, xe = { class: "fm-typo-en-body-lg-600" }, ve = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Se = {
17
+ key: 0,
18
+ class: "flex flex-wrap items-center gap-6"
19
+ }, Fe = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, ke = { class: "flex items-center gap-8" }, Be = { key: 0 }, Ae = { class: "text-fm-color-typo-secondary fm-typo-en-body-md-600" }, De = { class: "flex flex-col gap-16 text-center" }, Le = { class: "fm-typo-en-title-sm-800" }, Re = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Je = /* @__PURE__ */ W({
20
+ __name: "Broadcast",
21
+ setup(Ve) {
22
+ const { t: s } = me(), $ = {
23
+ label: s("connect.campaign.common.createCampaign"),
24
+ value: "create",
25
+ isPrimary: !0,
26
+ prependIcon: "add"
27
+ }, j = ge("BROADCAST", ae()), M = se(), u = ce(), { global: N, minor: L } = ne, R = F((/* @__PURE__ */ new Date()).toISOString()), i = F({
28
+ searchKey: "",
29
+ location: []
30
+ });
31
+ function U(e) {
32
+ const t = i.value.location;
33
+ return !t || t.length === 0 || !e.targetLocation ? !0 : Array.isArray(t) ? t.some((l) => {
34
+ var c;
35
+ return (c = e == null ? void 0 : e.targetLocation) == null ? void 0 : c.includes(l);
36
+ }) : e.targetLocation.includes(t);
37
+ }
38
+ const h = X(
39
+ () => u.campaigns.broadcast.filter((e) => U(e))
40
+ ), E = [
41
+ {
42
+ header: "Broadcast title",
43
+ accessorFn: (e) => e.name
44
+ },
45
+ {
46
+ header: "Status",
47
+ accessorFn: (e) => re(e),
48
+ cell(e) {
49
+ return K(e.row.original);
50
+ }
51
+ },
52
+ {
53
+ header: s("connect.campaign.broadcast.column.memberSegment"),
54
+ accessorFn: (e) => P(e)
55
+ },
56
+ {
57
+ header: s("connect.campaign.broadcast.column.channels"),
58
+ accessorFn: (e) => {
59
+ var t;
60
+ return ((t = f(e)) == null ? void 0 : t.route) ?? "";
61
+ },
62
+ cell(e) {
63
+ const t = f(e.row.original);
64
+ return t ? g("div", { class: "flex flex-col gap-4", title: t.route }, [
65
+ t.strategy ? g(D.FmChip, {
66
+ label: t.strategy,
67
+ variant: "plain",
68
+ compact: !0,
69
+ class: "self-start"
70
+ }) : null,
71
+ g("span", { class: "fm-typo-en-body-md-400 truncate" }, t.route)
72
+ ]) : "";
73
+ }
74
+ },
75
+ {
76
+ header: "Message sent",
77
+ accessorFn: (e) => e.currentReceive ?? "N/A"
78
+ },
79
+ {
80
+ header: "Actions",
81
+ cell(e) {
82
+ return g("div", { class: "flex items-center gap-8 justify-end" }, [
83
+ g(D.FmButton, {
84
+ variant: "tertiary",
85
+ icon: "content_copy",
86
+ iconColor: "neutral-gray-400",
87
+ onClick: async (t) => {
88
+ t.stopPropagation(), await O(e.row.original);
89
+ }
90
+ }),
91
+ g(D.FmButton, {
92
+ variant: "tertiary",
93
+ icon: "delete",
94
+ iconColor: "neutral-gray-400",
95
+ onClick: (t) => {
96
+ t.stopPropagation(), V(e.row.original);
97
+ }
98
+ })
99
+ ]);
100
+ }
101
+ }
102
+ ], C = F();
103
+ async function V(e) {
104
+ await oe.remove(
105
+ s("connect.campaign.common.remove.confirm", { name: e.name })
106
+ ) && await L(
107
+ async () => {
108
+ await _.delete(e._id), await u.read("BROADCAST");
109
+ },
110
+ {
111
+ message: s("connect.campaign.common.remove.removing", { name: e.name }),
112
+ successMessage: s("connect.campaign.common.remove.removed", {
113
+ name: e.name
114
+ })
115
+ }
116
+ );
117
+ }
118
+ async function b(e) {
119
+ R.value = (/* @__PURE__ */ new Date()).toISOString(), e ? await t() : j.open(async (l) => {
120
+ await t(l);
121
+ });
122
+ async function t(l) {
123
+ var c;
124
+ (c = C.value) == null || c.showSheet(
125
+ !0,
126
+ "BROADCAST",
127
+ e ? await _.readById(e._id) : void 0,
128
+ l
129
+ );
130
+ }
131
+ }
132
+ async function O(e) {
133
+ var c;
134
+ if (!await ie(e.name))
135
+ return;
136
+ R.value = (/* @__PURE__ */ new Date()).toISOString();
137
+ const t = await _.readById(e._id), l = le(t);
138
+ (c = C.value) == null || c.showSheet(
139
+ !0,
140
+ "BROADCAST",
141
+ l,
142
+ t.template
143
+ );
144
+ }
145
+ async function H(e) {
146
+ await L(
147
+ async () => {
148
+ e.campaign._id ? await _.update(e.campaign._id, e) : await _.create(e), await u.read("BROADCAST");
149
+ },
150
+ {
151
+ message: s(
152
+ `connect.campaign.broadcast.update.${e.campaign._id ? "updating" : "creating"}`
153
+ ),
154
+ successMessage: s("connect.campaign.broadcast.update.success", {
155
+ action: e.campaign._id ? "updated" : "created"
156
+ })
157
+ }
158
+ );
159
+ }
160
+ return Y(async () => {
161
+ await N(async () => {
162
+ await u.read("BROADCAST");
163
+ });
164
+ }), (e, t) => {
165
+ const l = d("FmPageHead"), c = d("FmSearch"), q = d("FmTable"), z = d("FmChip"), x = d("FmButton"), G = d("FmListItem"), J = d("FmList"), Q = d("FmCard");
166
+ return m(), y(k, null, [
167
+ r(l, {
168
+ title: a(s)("connect.campaign.broadcast.title"),
169
+ actions: a(h).length > 0 ? [$] : [],
170
+ "onClick:action": t[0] || (t[0] = () => b())
171
+ }, null, 8, ["title", "actions"]),
172
+ n("div", fe, [
173
+ r(pe),
174
+ r(c, {
175
+ modelValue: a(i).searchKey,
176
+ "onUpdate:modelValue": t[1] || (t[1] = (o) => a(i).searchKey = o),
177
+ class: "hidden xs:!block sm:!block border-b-2 border-fm-color-neutral-gray-100",
178
+ placeholder: a(s)("connect.campaign.common.search"),
179
+ collapsible: ""
180
+ }, null, 8, ["modelValue", "placeholder"]),
181
+ a(u).campaigns.broadcast && a(u).campaigns.broadcast.length > 0 ? (m(), y(k, { key: 0 }, [
182
+ n("div", ye, [
183
+ n("div", _e, [
184
+ r(de, {
185
+ label: `${a(s)("connect.campaign.common.location")}: `,
186
+ "right-icon": "keyboard_arrow_down",
187
+ modelValue: a(i).location,
188
+ "onUpdate:modelValue": t[2] || (t[2] = (o) => a(i).location = o),
189
+ icon: "storefront",
190
+ "show-item-label": !0,
191
+ items: a(M).locationOptions
192
+ }, null, 8, ["label", "modelValue", "items"])
193
+ ]),
194
+ r(c, {
195
+ modelValue: a(i).searchKey,
196
+ "onUpdate:modelValue": t[3] || (t[3] = (o) => a(i).searchKey = o),
197
+ class: "xs:hidden sm:hidden",
198
+ placeholder: "search",
199
+ collapsible: ""
200
+ }, null, 8, ["modelValue"])
201
+ ]),
202
+ r(q, {
203
+ class: "xs:hidden sm:hidden",
204
+ "row-data": a(h),
205
+ "column-defs": E,
206
+ "search-value": a(i).searchKey,
207
+ "column-filter": [],
208
+ onRowClick: t[4] || (t[4] = (o) => b(o.original)),
209
+ "hide-footer": !0
210
+ }, null, 8, ["row-data", "search-value"]),
211
+ r(J, { class: "hidden xs:!flex sm:!flex flex-col mx-[-24px]" }, {
212
+ default: B(() => [
213
+ (m(!0), y(k, null, Z(a(h).filter(
214
+ (o) => o.name.toLowerCase().includes(a(i).searchKey.toLowerCase())
215
+ ), (o) => (m(), w(G, {
216
+ key: o._id.toString(),
217
+ onClick: (v) => b(o),
218
+ class: "py-12 px-16 flex items-center justify-between border-b border-fm-color-neutral-gray-100"
219
+ }, {
220
+ default: B(() => {
221
+ var v, T, I;
222
+ return [
223
+ n("div", he, [
224
+ n("div", be, [
225
+ (m(), w(ee(a(K)(o)))),
226
+ n("div", we, p(o.currentReceive ?? 0) + " sent ", 1)
227
+ ]),
228
+ n("div", Ce, [
229
+ n("div", xe, p(o.name), 1),
230
+ n("div", ve, p(a(P)(o)), 1),
231
+ a(f)(o) ? (m(), y("div", Se, [
232
+ (v = a(f)(o)) != null && v.strategy ? (m(), w(z, {
233
+ key: 0,
234
+ label: ((T = a(f)(o)) == null ? void 0 : T.strategy) ?? "",
235
+ variant: "plain",
236
+ compact: ""
237
+ }, null, 8, ["label"])) : A("", !0),
238
+ n("span", Fe, p((I = a(f)(o)) == null ? void 0 : I.route), 1)
239
+ ])) : A("", !0)
240
+ ])
241
+ ]),
242
+ n("div", ke, [
243
+ r(x, {
244
+ icon: "content_copy",
245
+ "icon-color": "neutral-gray-400",
246
+ variant: "tertiary",
247
+ onClick: async (S) => {
248
+ S.stopPropagation(), await O(o);
249
+ }
250
+ }, null, 8, ["onClick"]),
251
+ r(x, {
252
+ icon: "delete",
253
+ "icon-color": "neutral-gray-400",
254
+ variant: "tertiary",
255
+ onClick: (S) => (S.stopPropagation(), V(o))
256
+ }, null, 8, ["onClick"])
257
+ ])
258
+ ];
259
+ }),
260
+ _: 2
261
+ }, 1032, ["onClick"]))), 128))
262
+ ]),
263
+ _: 1
264
+ }),
265
+ a(h).length == 0 ? (m(), y("div", Be, [
266
+ n("div", Ae, p(a(s)("connect.campaign.common.noResults")), 1)
267
+ ])) : A("", !0)
268
+ ], 64)) : (m(), w(Q, {
269
+ key: 1,
270
+ variant: "outlined",
271
+ class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
272
+ }, {
273
+ default: B(() => [
274
+ t[6] || (t[6] = n("img", {
275
+ src: te,
276
+ class: "aspect-square w-[150px]"
277
+ }, null, -1)),
278
+ n("div", De, [
279
+ n("div", Le, p(a(s)("connect.campaign.broadcast.create.title")), 1),
280
+ n("div", Re, p(a(s)("connect.campaign.broadcast.create.description")), 1)
281
+ ]),
282
+ r(x, {
283
+ variant: "primary",
284
+ label: a(s)("connect.campaign.broadcast.create.button"),
285
+ icon: "add",
286
+ onClick: t[5] || (t[5] = (o) => b())
287
+ }, null, 8, ["label"])
288
+ ]),
289
+ _: 1
290
+ })),
291
+ r(ue, {
292
+ ref_key: "sheetRef",
293
+ ref: C,
294
+ "onSubmit:modelValue": H
295
+ }, null, 512)
296
+ ])
297
+ ], 64);
298
+ };
299
+ }
300
+ });
301
+ export {
302
+ Je as default
303
+ };