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