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

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 (170) hide show
  1. package/dist/{App-DsB2o1oB.js → App-CKdnfhUE.js} +853 -683
  2. package/dist/{AuditLogs-BcfgiYnJ.js → AuditLogs-vN-szmrB.js} +16 -13
  3. package/dist/{Bin-DMr7K8Kj.js → Bin-FIyWozvZ.js} +8 -8
  4. package/dist/Broadcast-CV_euppF.js +306 -0
  5. package/dist/CampaignAnalytic-Dlovlsh3.js +1830 -0
  6. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CwGoEBsW.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-Fd_0aPzZ.js} +8 -5
  7. package/dist/Card-ZgfOZ7sV.js +1086 -0
  8. package/dist/{Collections-B0uGC2FE.js → Collections-DZmHKbZn.js} +14 -13
  9. package/dist/Credit-DGsbEvMw.js +286 -0
  10. package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang-Cj89MnB0.js +53 -0
  11. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-C77dXZo-.js +4432 -0
  12. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-DJLxGk7W.js → EffectSheet.vue_vue_type_style_index_0_lang-CcIiEV2Z.js} +36 -36
  13. package/dist/Experience-DlJycdKe.js +288 -0
  14. package/dist/{FileSaver.min-BlA0oZEC.js → FileSaver.min-DVGF0TBc.js} +1 -1
  15. package/dist/FilterChip.vue_vue_type_script_setup_true_lang-3bH-tZAm.js +138 -0
  16. package/dist/Game-q2X_SSup.js +356 -0
  17. package/dist/GiftCardSetup-BLDm3RfC.js +736 -0
  18. package/dist/GoalPickerPanel.vue_vue_type_script_setup_true_lang-CBC5AGR-.js +424 -0
  19. package/dist/Goals-CD8vdUPQ.js +247 -0
  20. package/dist/{Grab-DmmwrGzk.js → Grab-KDYktOCn.js} +33 -32
  21. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-DNtLW0yQ.js → ImageInput.vue_vue_type_script_setup_true_lang-DUi1YY1x.js} +1 -1
  22. package/dist/{Index-m7l4insz.js → Index-BT4esMkG.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-BRCrx3DA.js} +1 -1
  24. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-Dsg2sWjF.js → LottieAnimation.vue_vue_type_script_setup_true_lang-D3G4alTX.js} +1 -1
  25. package/dist/LoyaltyDashboard-CzmwuzTw.js +2911 -0
  26. package/dist/MainLayout-CVYfxfuS.js +143 -0
  27. package/dist/{Marketing-C9pSIdBU.js → Marketing-sDWWcaL5.js} +7 -6
  28. package/dist/{MarketingMaterialEdit-BEF2T9LR.js → MarketingMaterialEdit-DHmI38Lo.js} +15 -14
  29. package/dist/Member-sdcMiTmr.js +654 -0
  30. package/dist/MemberDetailSheet.vue_vue_type_script_setup_true_lang-DqchRq6h.js +1281 -0
  31. package/dist/MemberImportHistory-Df_5SiGn.js +187 -0
  32. package/dist/MemberList-BGoClGZE.js +334 -0
  33. package/dist/{MemberTransactions-CAut1TQb.js → MemberTransactions-qR38yGk5.js} +1 -1
  34. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-1AuHixPC.js → MessageInput.vue_vue_type_script_setup_true_lang-D4yY57Vo.js} +5928 -5644
  35. package/dist/MetricInfoTooltip.vue_vue_type_script_setup_true_lang-Co9oeOFx.js +40 -0
  36. package/dist/Mission-DSyqYeI6.js +363 -0
  37. package/dist/{Overview-DOJj4XvO.js → Overview-BDM8Lxfv.js} +23 -20
  38. package/dist/Overview-sLhLv5Oa.js +1316 -0
  39. package/dist/Point-DO5Z5sOL.js +297 -0
  40. package/dist/Promotion-BXm1Dxlv.js +426 -0
  41. package/dist/{Queue-55G2gtP5.js → Queue-C4kEj_Bp.js} +16 -13
  42. package/dist/{Record-DNPI02c6.js → Record-iKUy-nn3.js} +9 -9
  43. package/dist/Review-D-3-BRON.js +45 -0
  44. package/dist/ReviewFacebookCallback-SLzE3D7c.js +238 -0
  45. package/dist/ReviewGoogleCallback-DntrtfGB.js +213 -0
  46. package/dist/{Reward-CnP8R2pS.js → Reward-CNQS6F2m.js} +28 -28
  47. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-BN71h9IK.js → RewardGroup.vue_vue_type_script_setup_true_lang-D0ZNJilO.js} +26 -23
  48. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-CtB9Ls5-.js → RuleGroup.vue_vue_type_script_setup_true_lang-BgvaMOAJ.js} +198 -186
  49. package/dist/{Segment-CxiQnnyj.js → Segment-Bi58A7cw.js} +278 -276
  50. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-B1vj5f7T.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-CxC6ZLZT.js} +45 -42
  51. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-cWx0G3nM.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-CToVAWKO.js} +4 -4
  52. package/dist/Setting-CixcOp_l.js +574 -0
  53. package/dist/{SettingAdvertisements-Vt7w1WN3.js → SettingAdvertisements-DkPNDfxz.js} +12 -12
  54. package/dist/Settings-bD_DkKI0.js +230 -0
  55. package/dist/Store-BvnsumDX.js +2615 -0
  56. package/dist/{StoreRewards-DILeipMG.js → StoreRewards-CKPnV_j3.js} +15 -15
  57. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-k46T2rql.js +1319 -0
  58. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-C7lVeybl.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-IknvTIMG.js} +2 -2
  59. package/dist/{Tier-BAZ1xuKL.js → Tier-CiKGy-Do.js} +2576 -757
  60. package/dist/{Title-CcNAt47f.js → Title-CNFamvkQ.js} +41 -37
  61. package/dist/Transaction-C8SnyFML.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-DQrTH7cz.js} +26 -26
  63. package/dist/Voucher-9Q-GHuvD.js +837 -0
  64. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-CTQDxc5l.js → VoucherEditor.vue_vue_type_script_setup_true_lang-B-6mF0RH.js} +118 -124
  65. package/dist/WhatsappAccount-DRKJVs0I.js +325 -0
  66. package/dist/WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-DGOPGiGH.js +96 -0
  67. package/dist/WhatsappBot-muUmTIyY.js +441 -0
  68. package/dist/WhatsappBotSettings-DUjKwiv6.js +136 -0
  69. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-DuRKA4cj.js → ZodTextField.vue_vue_type_script_setup_true_lang-7tSuZ_C3.js} +2 -2
  70. package/dist/{app-Z-UKRG5V.js → app-CQnX8TXq.js} +50951 -42514
  71. package/dist/app.js +1 -1
  72. package/dist/base.export-CwCY41wr.js +75 -0
  73. package/dist/browser-BSAOEeIM.js +1478 -0
  74. package/dist/{business-C7EF6cKC.js → business-DGYo03yh.js} +5 -5
  75. package/dist/campaign-BFhMhQWk.js +400 -0
  76. package/dist/campaign-BmVMseCM.js +100 -0
  77. package/dist/{campaign.enum-BNN2gLFY.js → campaign.enum-Dx-Zo68Q.js} +1 -1
  78. package/dist/campaign.fn-DHdhR9C8.js +776 -0
  79. package/dist/{collectible.enum-DO9HdJGH.js → collectible.enum-Liy2wH3s.js} +1 -1
  80. package/dist/collection.fn-CYrQd8Th.js +26 -0
  81. package/dist/currency-B7wFZjCM.js +7 -0
  82. package/dist/{duplicateCampaign-2ODeDw3a.js → duplicateCampaign-C62eVSKZ.js} +11 -11
  83. package/dist/{effect-BcB8IlTI.js → effect-XVC0SyM1.js} +1 -1
  84. package/dist/{email-addresses-BcTeU4Sh.js → email-addresses-DUWzbknH.js} +209 -201
  85. package/dist/google-C3S8u0mT.js +4 -0
  86. package/dist/{helper-BSgrCJRv.js → helper-Bw_KFook.js} +1 -1
  87. package/dist/index-B88wz0DA.js +53 -0
  88. package/dist/{index-iMPtFp54.js → index-BHPcqvxB.js} +10 -9
  89. package/dist/{index-HXiYGO4_.js → index-BL01AAGF.js} +6343 -7693
  90. package/dist/index-BpcakDLo.js +32438 -0
  91. package/dist/{index-VlFWaBrg.js → index-Bu0rl1Jm.js} +1 -1
  92. package/dist/{index-BpI-BI4H.js → index-C0WVYJgp.js} +4 -4
  93. package/dist/index-C5a9ZaAM.js +151 -0
  94. package/dist/{index-CsoBDon4.js → index-CRX2b_-n.js} +1590 -1523
  95. package/dist/{index-CIBPhxlC.js → index-CSaO5mCs.js} +105 -123
  96. package/dist/{index-hlyg-wxV.js → index-CX2tKi6X.js} +1 -1
  97. package/dist/index-C_H8jFYf.js +2743 -0
  98. package/dist/{index-BoYEqLif.js → index-CmJ4UtbH.js} +1517 -263
  99. package/dist/index-CoaZuwwm.js +172 -0
  100. package/dist/{index-Bf6jNZit.js → index-CsZ7_Qzf.js} +24 -9
  101. package/dist/index-D5D85re4.js +902 -0
  102. package/dist/index-D89ye2yV.js +74 -0
  103. package/dist/index-DHRVhERM.js +14550 -0
  104. package/dist/index-DKabvlsg.js +69 -0
  105. package/dist/{index-CoHWpylO.js → index-DlFjUct2.js} +2140 -2557
  106. package/dist/index-XCHxkJPE.js +137 -0
  107. package/dist/index-o2Ga_qaX.js +39 -0
  108. package/dist/index-z0K48rtR.js +54 -0
  109. package/dist/{index.esm2017-CM7OnEyP.js → index.esm2017-cOXL--fX.js} +164 -164
  110. package/dist/{loading-CSXr0Yqz.js → loading-BlfJuA-h.js} +1 -1
  111. package/dist/{lodash-Bh7XKI-R.js → lodash-CFkpI5Sp.js} +1 -1
  112. package/dist/member-import-B4ihDPgR.js +188 -0
  113. package/dist/membership-CyNEU3ld.js +274 -0
  114. package/dist/{money-BZIST_m9.js → money-B0QV3AtE.js} +1 -1
  115. package/dist/{number-DXLR2w95.js → number-DJ7EhoTu.js} +1 -1
  116. package/dist/objectid-DZ8o9_J4.js +145 -0
  117. package/dist/onboarding-BhMbuIRK.js +131 -0
  118. package/dist/onboardingSetup-BZMYTun6.js +17 -0
  119. package/dist/{plugins-4FlbwoES.js → plugins-C7hEP98r.js} +13 -12
  120. package/dist/remy-Qz_pNsUS.js +13 -0
  121. package/dist/{reward-DUbl79bZ.js → reward-D4975Y4s.js} +1 -1
  122. package/dist/{rule-BQUoZ4l_.js → rule-BfSrqM9Z.js} +337 -275
  123. package/dist/style.css +1 -1
  124. package/dist/{template-BoiSG7G7.js → template-CTCYJKDu.js} +6 -6
  125. package/dist/timezone-hBjTK85u.js +20 -0
  126. package/dist/transaction.fn-1iGyAGZA.js +71 -0
  127. package/dist/{trigger-D5g5m6tT.js → trigger-CdJikvw9.js} +17 -17
  128. package/dist/useMarketingMaterialActions-R1rDbIr8.js +96 -0
  129. package/dist/{usePagination-DHePBBoR.js → usePagination-CqSRHo9z.js} +1 -1
  130. package/dist/{user-C_ToSo-g.js → user-C8i4TfQt.js} +1 -1
  131. package/dist/vue-i18n-CiJ_kNkt.js +2365 -0
  132. package/dist/{xlsx-h4G1C-xj.js → xlsx-DGiPalb9.js} +440 -440
  133. package/dist/{zod-CgigfJar.js → zod-CKl6yP5K.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/campaign.fn-Bd34dVnx.js +0 -776
  162. package/dist/export-CjB7qxZ9.js +0 -97
  163. package/dist/index-BIAjmMga.js +0 -85
  164. package/dist/index-Bm0QPucw.js +0 -67
  165. package/dist/index-Bv4MBLQ5.js +0 -52
  166. package/dist/index-hbyCVNa7.js +0 -30289
  167. package/dist/membership-CfredTm3.js +0 -255
  168. package/dist/objectid-Dg4ZodlT.js +0 -145
  169. package/dist/useMarketingMaterialActions-B-Jlw2Z9.js +0 -107
  170. package/dist/vue-i18n-BcYh6_51.js +0 -2365
@@ -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-BL01AAGF.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-Cj89MnB0.js";
7
+ import { u as yi, _ as ki } from "./usePagination-CqSRHo9z.js";
8
+ import { c as Xe } from "./plugins-C7hEP98r.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-CmJ4UtbH.js";
11
+ import "./index-DlFjUct2.js";
12
+ import "./index-CRX2b_-n.js";
13
+ import "./index-D5D85re4.js";
14
+ import "./index-BHPcqvxB.js";
15
+ import "./index-o2Ga_qaX.js";
16
+ import "./index-CoaZuwwm.js";
17
+ import { g as Si, S as Ei, b as Ci } from "./index-BpcakDLo.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-CiJ_kNkt.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-BlfJuA-h.js";
4
+ import { u as R } from "./business-DGYo03yh.js";
5
+ import { C as A } from "./campaign-BFhMhQWk.js";
6
+ import { _ as P } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-C77dXZo-.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-CToVAWKO.js";
9
+ import { u as D } from "./vue-i18n-CiJ_kNkt.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-C7hEP98r.js";
12
+ import { c as g } from "./index-C5a9ZaAM.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-C7hEP98r.js";
5
+ import { u as se } from "./loading-BlfJuA-h.js";
6
+ import { u as ce } from "./business-DGYo03yh.js";
7
+ import { u as re } from "./campaign-BmVMseCM.js";
8
+ import { a as ie, b as K, c as P, d as f } from "./campaign-BFhMhQWk.js";
9
+ import { c as le, p as me } from "./duplicateCampaign-C62eVSKZ.js";
10
+ import { u as de } from "./vue-i18n-CiJ_kNkt.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-D4yY57Vo.js";
13
+ import { _ as ge } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-C77dXZo-.js";
14
+ import { u as fe } from "./template-CTCYJKDu.js";
15
+ import { u as ye } from "./onboardingSetup-BZMYTun6.js";
16
+ import { c as _ } from "./index-C5a9ZaAM.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
+ };