@feedmepos/mf-connect 0.1.98-beta.6 → 0.1.98-beta.61

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 (151) hide show
  1. package/dist/{App-CvJ0ASlp.js → App-BPFhGsvV.js} +812 -666
  2. package/dist/{AuditLogs-Bt9S2LKL.js → AuditLogs-CW8vs5kM.js} +14 -13
  3. package/dist/{Bin-ZSCDSioa.js → Bin-CgdkmL0M.js} +8 -8
  4. package/dist/Broadcast-CoRRvfXh.js +302 -0
  5. package/dist/CampaignAnalytic-UAwVz0E3.js +1830 -0
  6. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-LweQ57aG.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-B_IbtQLp.js} +6 -5
  7. package/dist/Card-D3-MgguK.js +1084 -0
  8. package/dist/{Collections-H7zhe9zN.js → Collections-BU7-Lz_-.js} +14 -13
  9. package/dist/Credit-C9gf6eCr.js +286 -0
  10. package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang-UK9GcPFC.js +53 -0
  11. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-B9A98JpX.js +4213 -0
  12. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-qNmiKaJc.js → EffectSheet.vue_vue_type_style_index_0_lang-nKD6CT3U.js} +35 -35
  13. package/dist/{Experience-CH5tg-tm.js → Experience-dKvKT4v4.js} +112 -86
  14. package/dist/{FileSaver.min-DNFqiyZb.js → FileSaver.min-CI8hZvUL.js} +1 -1
  15. package/dist/FilterChip.vue_vue_type_script_setup_true_lang-3bH-tZAm.js +138 -0
  16. package/dist/Game-CBjdeb6F.js +356 -0
  17. package/dist/GiftCardSetup-DA9yMwPR.js +662 -0
  18. package/dist/{Grab-3s_sLewD.js → Grab-zCeZMSNI.js} +33 -32
  19. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-fbmoN1e9.js → ImageInput.vue_vue_type_script_setup_true_lang-CxhlYuM9.js} +1 -1
  20. package/dist/{Index-zTWZCiEo.js → Index-UGpjUfjV.js} +10 -10
  21. package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-BOxYPkf5.js → LocationPicker.vue_vue_type_script_setup_true_lang-D21fIVUX.js} +1 -1
  22. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-wjJ_cwft.js → LottieAnimation.vue_vue_type_script_setup_true_lang-DrB7xzy1.js} +1 -1
  23. package/dist/LoyaltyDashboard-CBPnQReU.js +2865 -0
  24. package/dist/MainLayout-BBJUWsAz.js +143 -0
  25. package/dist/{Marketing-Bto1OvK1.js → Marketing-BjQG6Q41.js} +7 -6
  26. package/dist/{MarketingMaterialEdit-D7rIqF5U.js → MarketingMaterialEdit-CMUbiKjd.js} +15 -14
  27. package/dist/Member-B-7tGoFW.js +649 -0
  28. package/dist/MemberDetailSheet.vue_vue_type_script_setup_true_lang-BLmafK0n.js +1287 -0
  29. package/dist/MemberImportHistory-CDyHKO1L.js +187 -0
  30. package/dist/MemberList-f0dMdOF8.js +336 -0
  31. package/dist/{MemberTransactions-CjTtGB2y.js → MemberTransactions-DVcRoyxv.js} +1 -1
  32. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-DvKL7BL5.js → MessageInput.vue_vue_type_script_setup_true_lang-CnpXUVvO.js} +5682 -5479
  33. package/dist/MetricInfoTooltip.vue_vue_type_script_setup_true_lang-BTBXutpq.js +40 -0
  34. package/dist/Mission-CrrXaD8F.js +360 -0
  35. package/dist/{Overview-mxGLyFvE.js → Overview-CAIxshHU.js} +21 -20
  36. package/dist/Overview-Y_hxLN7Y.js +1316 -0
  37. package/dist/Point-CE0G4oxW.js +288 -0
  38. package/dist/Promotion-C_NQWWOT.js +423 -0
  39. package/dist/{Queue-DgaFyyyH.js → Queue-BfZGOOsa.js} +14 -13
  40. package/dist/{Record-BRol__6_.js → Record-BR3Su26B.js} +9 -9
  41. package/dist/Review-FrIgV7vH.js +45 -0
  42. package/dist/ReviewFacebookCallback-DOyee73-.js +238 -0
  43. package/dist/ReviewGoogleCallback-CX0cbT4r.js +213 -0
  44. package/dist/{Reward-DQI0PvmR.js → Reward-COkgkVT-.js} +35 -35
  45. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-B6bvQNsU.js → RewardGroup.vue_vue_type_script_setup_true_lang-CUd-Gy5a.js} +14 -13
  46. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-DgAU7jGo.js → RuleGroup.vue_vue_type_script_setup_true_lang-eBVDv0Qy.js} +103 -109
  47. package/dist/{Segment-DFaLx0QZ.js → Segment-kh3FuWRP.js} +30 -29
  48. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-Cpb2i9iV.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-CUoiQlba.js} +31 -30
  49. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-MvoepHn9.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-BkylJ859.js} +4 -4
  50. package/dist/{Setting-D2NjFJvq.js → Setting-UDrEIdF9.js} +14 -14
  51. package/dist/{SettingAdvertisements-CPWgSMaA.js → SettingAdvertisements-Dic4fC0u.js} +12 -12
  52. package/dist/Settings-Ct_ESMn8.js +230 -0
  53. package/dist/Store-CyG1FPWq.js +2612 -0
  54. package/dist/{StoreRewards-Ccj12pyq.js → StoreRewards-C9b_rMRT.js} +15 -15
  55. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-DaGFayps.js +1329 -0
  56. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-CfWTn0Xd.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-Dew6rC4d.js} +2 -2
  57. package/dist/{Tier-vaJoohiM.js → Tier-DgLEHrFJ.js} +2296 -750
  58. package/dist/{Title-BqHC7-v9.js → Title-C_8gMnYS.js} +39 -37
  59. package/dist/Transaction-B9E0jWw9.js +45 -0
  60. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-Dporb9KE.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-DgW4dSkV.js} +26 -26
  61. package/dist/{Voucher-DeN6C6DQ.js → Voucher-DR3Eteh4.js} +156 -133
  62. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-De16fuC4.js → VoucherEditor.vue_vue_type_script_setup_true_lang-JexB74ky.js} +115 -121
  63. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-DAC-j0Ln.js → ZodTextField.vue_vue_type_script_setup_true_lang-ChOd_di8.js} +2 -2
  64. package/dist/{app-n4Y2jMee.js → app-BIjITpNJ.js} +29593 -25208
  65. package/dist/app.js +1 -1
  66. package/dist/base.export-DqZ38Nx2.js +75 -0
  67. package/dist/{business-jn-_l48y.js → business-j4ZuiLuJ.js} +5 -5
  68. package/dist/campaign-DxhXoOvw.js +100 -0
  69. package/dist/campaign-MS9awZ18.js +368 -0
  70. package/dist/{campaign.enum-C9HvoKuq.js → campaign.enum-Bk6qcWR3.js} +1 -1
  71. package/dist/campaign.fn-DR_X38U8.js +776 -0
  72. package/dist/{collectible.enum-_HVU4lWn.js → collectible.enum-C_E4CCGR.js} +1 -1
  73. package/dist/collection.fn-BfyWr7cC.js +26 -0
  74. package/dist/currency-DZzC-632.js +7 -0
  75. package/dist/{duplicateCampaign-gzVwrnWb.js → duplicateCampaign-BgTmR0T2.js} +11 -11
  76. package/dist/{effect-DhpIv1L3.js → effect-DPCjkqDR.js} +1 -1
  77. package/dist/{email-addresses-DPxYLSoa.js → email-addresses-BoPJkP5p.js} +209 -201
  78. package/dist/google-C3S8u0mT.js +4 -0
  79. package/dist/{helper-WYHUnHVy.js → helper-DwJK1iKj.js} +1 -1
  80. package/dist/{index-BPsofsGt.js → index-8vHynDvo.js} +1933 -2560
  81. package/dist/{index-BdqRrCt8.js → index-Bd4ErVnX.js} +5 -5
  82. package/dist/index-BkFxLxI6.js +137 -0
  83. package/dist/index-BvxBDSzh.js +72 -0
  84. package/dist/{index-DUTFNEn9.js → index-C5Jm1Was.js} +4 -4
  85. package/dist/{index-xao4ggML.js → index-CIuQyo1z.js} +5 -5
  86. package/dist/{index-C-5YgmkC.js → index-CMJCsyXT.js} +7 -5
  87. package/dist/index-CTo26AN3.js +14530 -0
  88. package/dist/{index-Cte6dHHy.js → index-CVMsPseO.js} +14 -14
  89. package/dist/{index-BdnHQSDd.js → index-CXbojcfi.js} +5 -4
  90. package/dist/index-Cso1GrEu.js +53 -0
  91. package/dist/{index-Cvfavr2M.js → index-DD24eHtV.js} +351 -216
  92. package/dist/index-DGOX45St.js +151 -0
  93. package/dist/index-DP6WMBRq.js +900 -0
  94. package/dist/{index-7HizF3GI.js → index-DfwXt9fy.js} +1588 -1522
  95. package/dist/{index--fNMSXUf.js → index-Dn2mOB0A.js} +1 -1
  96. package/dist/{index-BuLfxJyC.js → index-LJrZDUgh.js} +105 -123
  97. package/dist/{index-BN-FP9kx.js → index-a15EaBn7.js} +1 -1
  98. package/dist/{index.esm2017-CjzFPUCa.js → index.esm2017-CWii-ZqX.js} +164 -164
  99. package/dist/{loading-CojnK00V.js → loading-CibOtJVR.js} +1 -1
  100. package/dist/{lodash-CLkg5jTT.js → lodash-oHoQ9t6u.js} +1 -1
  101. package/dist/member-import-BgJP811X.js +187 -0
  102. package/dist/membership-CqFY6ya6.js +274 -0
  103. package/dist/{money-CyaLaEKo.js → money-tVvfE8ha.js} +1 -1
  104. package/dist/{number-DEtI4bEX.js → number-B4p37H0W.js} +1 -1
  105. package/dist/objectid-reVda6sT.js +145 -0
  106. package/dist/{plugins-MnP1vCcg.js → plugins-S4qmcyLz.js} +13 -12
  107. package/dist/remy-Qz_pNsUS.js +13 -0
  108. package/dist/{reward-Dk3D26xC.js → reward-CgHNw9uj.js} +1 -1
  109. package/dist/{rule-B1Agad1n.js → rule-BECsW_aD.js} +335 -275
  110. package/dist/style.css +1 -1
  111. package/dist/{template-DpqLCq1p.js → template-jOqP_F7D.js} +6 -6
  112. package/dist/timezone-BBXko2_m.js +20 -0
  113. package/dist/transaction.fn-3DOFgJNT.js +64 -0
  114. package/dist/{trigger-cwPN-4Ia.js → trigger-DBIaHlqi.js} +17 -17
  115. package/dist/useMarketingMaterialActions-Dnln39_O.js +96 -0
  116. package/dist/{usePagination-D8zBMxdJ.js → usePagination-BKN2uLM2.js} +1 -1
  117. package/dist/{user-EUGwaL2f.js → user-CTKTBdLx.js} +1 -1
  118. package/dist/{vue-i18n-BBj45p9N.js → vue-i18n-Di-6yoyq.js} +233 -233
  119. package/dist/{xlsx-DiMIlKmu.js → xlsx-Z1jRdg68.js} +584 -584
  120. package/dist/{zod-B1cU167C.js → zod-BmQ5EO9I.js} +1 -1
  121. package/package.json +6 -5
  122. package/dist/Broadcast-BT0R11RB.js +0 -266
  123. package/dist/Card-Wdh8lyUv.js +0 -910
  124. package/dist/Credit-BuKLrFtM.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-B2sZFWUF.js +0 -3377
  127. package/dist/FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js +0 -129
  128. package/dist/Game-C9s4qZz4.js +0 -330
  129. package/dist/LoyaltyDashboard-tOOk6zvV.js +0 -1082
  130. package/dist/MainLayout-iWi1DzXS.js +0 -41
  131. package/dist/Member-BdgdT-sa.js +0 -280
  132. package/dist/MemberList-DBIE-RWC.js +0 -1601
  133. package/dist/Mission-CWR6FBvN.js +0 -334
  134. package/dist/Point-BIt82fJk.js +0 -262
  135. package/dist/Promotion-Cl1vPi0B.js +0 -397
  136. package/dist/Review-DmV2YnFd.js +0 -1076
  137. package/dist/ReviewFacebookCallback-B5XgAWXo.js +0 -243
  138. package/dist/ReviewGoogleCallback-CYR03Wfd.js +0 -208
  139. package/dist/SelectItems.vue_vue_type_script_setup_true_lang-CAImd3yc.js +0 -181
  140. package/dist/Store-DjUe8ady.js +0 -1996
  141. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-B7w69A3j.js +0 -1130
  142. package/dist/Transaction-BOmDOGnD.js +0 -39
  143. package/dist/campaign-BnI7-ceP.js +0 -219
  144. package/dist/campaign-rgDnocfT.js +0 -277
  145. package/dist/campaign.fn-D21ettpH.js +0 -776
  146. package/dist/export-CWAxYj7W.js +0 -97
  147. package/dist/index-B6EBgIUx.js +0 -85
  148. package/dist/index-CxR1baaG.js +0 -52
  149. package/dist/membership-CeX8E_I9.js +0 -255
  150. package/dist/objectid-CMau7CW-.js +0 -145
  151. package/dist/useMarketingMaterialActions-CGzfJ68e.js +0 -107
@@ -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-xao4ggML.js";
3
+ import "./index-CIuQyo1z.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-D8zBMxdJ.js";
8
- import { c as Xe } from "./plugins-MnP1vCcg.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-UK9GcPFC.js";
7
+ import { u as yi, _ as ki } from "./usePagination-BKN2uLM2.js";
8
+ import { c as Xe } from "./plugins-S4qmcyLz.js";
9
9
  import { c as Fe } from "./string-Gcy5IM_H.js";
10
- import { e as me, f as xi } from "./index-Cvfavr2M.js";
11
- import "./index-BPsofsGt.js";
12
- import "./index-7HizF3GI.js";
13
- import "./index-BdqRrCt8.js";
14
- import { g as Si, S as Ei, b as Ci } from "./index-BdnHQSDd.js";
10
+ import { e as me, f as xi } from "./index-DD24eHtV.js";
11
+ import "./index-8vHynDvo.js";
12
+ import "./index-DfwXt9fy.js";
13
+ import "./index-DP6WMBRq.js";
14
+ import "./index-Bd4ErVnX.js";
15
+ import { g as Si, S as Ei, b as Ci } from "./index-CXbojcfi.js";
15
16
  import { o as _i } from "./objectId-dwaoBfJX.js";
16
- import { u as Oi } from "./vue-i18n-BBj45p9N.js";
17
+ import { u as Oi } from "./vue-i18n-Di-6yoyq.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-CojnK00V.js";
4
- import { u as R } from "./business-jn-_l48y.js";
5
- import { C as A } from "./campaign-rgDnocfT.js";
6
- import { _ as P } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-B2sZFWUF.js";
3
+ import { u as K } from "./loading-CibOtJVR.js";
4
+ import { u as R } from "./business-j4ZuiLuJ.js";
5
+ import { C as A } from "./campaign-MS9awZ18.js";
6
+ import { _ as P } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-B9A98JpX.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-MvoepHn9.js";
9
- import { u as D } from "./vue-i18n-BBj45p9N.js";
8
+ import { _ as Y } from "./SendVoucherSheet.vue_vue_type_script_setup_true_lang-BkylJ859.js";
9
+ import { u as D } from "./vue-i18n-Di-6yoyq.js";
10
10
  import { h as E } from "./moment-D7p2TMB-.js";
11
- import { p as I } from "./plugins-MnP1vCcg.js";
12
- import { c as g } from "./campaign-BnI7-ceP.js";
11
+ import { p as I } from "./plugins-S4qmcyLz.js";
12
+ import { c as g } from "./index-DGOX45St.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,302 @@
1
+ import { defineComponent as Q, ref as S, computed as W, h as f, onMounted as X, resolveComponent as p, openBlock as m, createElementBlock as g, Fragment as k, createVNode as r, unref as a, createElementVNode as n, withCtx as F, renderList as Y, createBlock as B, resolveDynamicComponent as Z, toDisplayString as d, createCommentVNode as A } from "vue";
2
+ import { _ as ee } from "./campaign-CpzFl8Vr.js";
3
+ import { useDialog as te, components as I } from "@feedmepos/ui-library";
4
+ import { p as ae } from "./plugins-S4qmcyLz.js";
5
+ import { u as oe } from "./loading-CibOtJVR.js";
6
+ import { u as ne } from "./business-j4ZuiLuJ.js";
7
+ import { u as se } from "./campaign-DxhXoOvw.js";
8
+ import { a as ce, b as K, c as P, d as y } from "./campaign-MS9awZ18.js";
9
+ import { c as re, p as ie } from "./duplicateCampaign-BgTmR0T2.js";
10
+ import { u as le } from "./vue-i18n-Di-6yoyq.js";
11
+ import { _ as me } from "./FilterChip.vue_vue_type_script_setup_true_lang-3bH-tZAm.js";
12
+ import { _ as de } from "./MessageInput.vue_vue_type_script_setup_true_lang-CnpXUVvO.js";
13
+ import { _ as pe } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-B9A98JpX.js";
14
+ import { u as ue } from "./template-jOqP_F7D.js";
15
+ import { c as _ } from "./index-DGOX45St.js";
16
+ const fe = { class: "px-24 flex flex-col gap-y-16" }, ge = { class: "flex items-center justify-between w-full" }, ye = { class: "flex gap-8 overflow-x-auto" }, _e = { class: "space-y-8" }, he = { class: "flex w-full gap-4 items-center" }, be = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, we = { class: "space-y-4" }, xe = { class: "fm-typo-en-body-lg-600" }, Ce = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ve = {
17
+ key: 0,
18
+ class: "flex flex-wrap items-center gap-6"
19
+ }, Se = {
20
+ key: 0,
21
+ class: "rounded-md bg-fm-color-neutral-gray-100 px-8 py-3 fm-typo-en-body-sm-400 text-fm-color-typo-secondary"
22
+ }, ke = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Fe = { 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__ */ Q({
23
+ __name: "Broadcast",
24
+ setup(Ve) {
25
+ const { t: s } = le(), $ = {
26
+ label: s("connect.campaign.common.createCampaign"),
27
+ value: "create",
28
+ isPrimary: !0,
29
+ prependIcon: "add"
30
+ }, j = ue("BROADCAST", te()), M = ne(), u = se(), { global: N, minor: D } = oe, L = S((/* @__PURE__ */ new Date()).toISOString()), i = S({
31
+ searchKey: "",
32
+ location: []
33
+ });
34
+ function U(e) {
35
+ const t = i.value.location;
36
+ return !t || t.length === 0 || !e.targetLocation ? !0 : Array.isArray(t) ? t.some((l) => {
37
+ var c;
38
+ return (c = e == null ? void 0 : e.targetLocation) == null ? void 0 : c.includes(l);
39
+ }) : e.targetLocation.includes(t);
40
+ }
41
+ const h = W(
42
+ () => u.campaigns.broadcast.filter((e) => U(e))
43
+ ), E = [
44
+ {
45
+ header: "Broadcast title",
46
+ accessorFn: (e) => e.name
47
+ },
48
+ {
49
+ header: "Status",
50
+ accessorFn: (e) => ce(e),
51
+ cell(e) {
52
+ return K(e.row.original);
53
+ }
54
+ },
55
+ {
56
+ header: s("connect.campaign.broadcast.column.memberSegment"),
57
+ accessorFn: (e) => P(e)
58
+ },
59
+ {
60
+ header: s("connect.campaign.broadcast.column.channels"),
61
+ accessorFn: (e) => {
62
+ var t;
63
+ return ((t = y(e)) == null ? void 0 : t.route) ?? "";
64
+ },
65
+ cell(e) {
66
+ const t = y(e.row.original);
67
+ return t ? f("div", { class: "flex flex-col gap-4", title: t.route }, [
68
+ t.strategy ? f(
69
+ "span",
70
+ {
71
+ class: "self-start rounded-md bg-fm-color-neutral-gray-100 px-8 py-3 fm-typo-en-body-sm-400 text-fm-color-typo-secondary"
72
+ },
73
+ t.strategy
74
+ ) : null,
75
+ f("span", { class: "fm-typo-en-body-md-400 truncate" }, t.route)
76
+ ]) : "";
77
+ }
78
+ },
79
+ {
80
+ header: "Message sent",
81
+ accessorFn: (e) => e.currentReceive ?? "N/A"
82
+ },
83
+ {
84
+ header: "Actions",
85
+ cell(e) {
86
+ return f("div", { class: "flex items-center gap-8 justify-end" }, [
87
+ f(I.FmButton, {
88
+ variant: "tertiary",
89
+ icon: "content_copy",
90
+ iconColor: "neutral-gray-400",
91
+ onClick: async (t) => {
92
+ t.stopPropagation(), await V(e.row.original);
93
+ }
94
+ }),
95
+ f(I.FmButton, {
96
+ variant: "tertiary",
97
+ icon: "delete",
98
+ iconColor: "neutral-gray-400",
99
+ onClick: (t) => {
100
+ t.stopPropagation(), R(e.row.original);
101
+ }
102
+ })
103
+ ]);
104
+ }
105
+ }
106
+ ], w = S();
107
+ async function R(e) {
108
+ await ae.remove(
109
+ s("connect.campaign.common.remove.confirm", { name: e.name })
110
+ ) && await D(
111
+ async () => {
112
+ await _.delete(e._id), await u.read("BROADCAST");
113
+ },
114
+ {
115
+ message: s("connect.campaign.common.remove.removing", { name: e.name }),
116
+ successMessage: s("connect.campaign.common.remove.removed", {
117
+ name: e.name
118
+ })
119
+ }
120
+ );
121
+ }
122
+ async function b(e) {
123
+ L.value = (/* @__PURE__ */ new Date()).toISOString(), e ? await t() : j.open(async (l) => {
124
+ await t(l);
125
+ });
126
+ async function t(l) {
127
+ var c;
128
+ (c = w.value) == null || c.showSheet(
129
+ !0,
130
+ "BROADCAST",
131
+ e ? await _.readById(e._id) : void 0,
132
+ l
133
+ );
134
+ }
135
+ }
136
+ async function V(e) {
137
+ var c;
138
+ if (!await re(e.name))
139
+ return;
140
+ L.value = (/* @__PURE__ */ new Date()).toISOString();
141
+ const t = await _.readById(e._id), l = ie(t);
142
+ (c = w.value) == null || c.showSheet(
143
+ !0,
144
+ "BROADCAST",
145
+ l,
146
+ t.template
147
+ );
148
+ }
149
+ async function H(e) {
150
+ await D(
151
+ async () => {
152
+ e.campaign._id ? await _.update(e.campaign._id, e) : await _.create(e), await u.read("BROADCAST");
153
+ },
154
+ {
155
+ message: s(
156
+ `connect.campaign.broadcast.update.${e.campaign._id ? "updating" : "creating"}`
157
+ ),
158
+ successMessage: s("connect.campaign.broadcast.update.success", {
159
+ action: e.campaign._id ? "updated" : "created"
160
+ })
161
+ }
162
+ );
163
+ }
164
+ return X(async () => {
165
+ await N(async () => {
166
+ await u.read("BROADCAST");
167
+ });
168
+ }), (e, t) => {
169
+ const l = p("FmPageHead"), c = p("FmSearch"), q = p("FmTable"), x = p("FmButton"), z = p("FmListItem"), G = p("FmList"), J = p("FmCard");
170
+ return m(), g(k, null, [
171
+ r(l, {
172
+ title: a(s)("connect.campaign.broadcast.title"),
173
+ actions: a(h).length > 0 ? [$] : [],
174
+ "onClick:action": t[0] || (t[0] = () => b())
175
+ }, null, 8, ["title", "actions"]),
176
+ n("div", fe, [
177
+ r(de),
178
+ r(c, {
179
+ modelValue: a(i).searchKey,
180
+ "onUpdate:modelValue": t[1] || (t[1] = (o) => a(i).searchKey = o),
181
+ class: "hidden xs:!block sm:!block border-b-2 border-fm-color-neutral-gray-100",
182
+ placeholder: a(s)("connect.campaign.common.search"),
183
+ collapsible: ""
184
+ }, null, 8, ["modelValue", "placeholder"]),
185
+ a(u).campaigns.broadcast && a(u).campaigns.broadcast.length > 0 ? (m(), g(k, { key: 0 }, [
186
+ n("div", ge, [
187
+ n("div", ye, [
188
+ r(me, {
189
+ label: `${a(s)("connect.campaign.common.location")}: `,
190
+ "right-icon": "keyboard_arrow_down",
191
+ modelValue: a(i).location,
192
+ "onUpdate:modelValue": t[2] || (t[2] = (o) => a(i).location = o),
193
+ icon: "storefront",
194
+ "show-item-label": !0,
195
+ items: a(M).locationOptions
196
+ }, null, 8, ["label", "modelValue", "items"])
197
+ ]),
198
+ r(c, {
199
+ modelValue: a(i).searchKey,
200
+ "onUpdate:modelValue": t[3] || (t[3] = (o) => a(i).searchKey = o),
201
+ class: "xs:hidden sm:hidden",
202
+ placeholder: "search",
203
+ collapsible: ""
204
+ }, null, 8, ["modelValue"])
205
+ ]),
206
+ r(q, {
207
+ class: "xs:hidden sm:hidden",
208
+ "row-data": a(h),
209
+ "column-defs": E,
210
+ "search-value": a(i).searchKey,
211
+ "column-filter": [],
212
+ onRowClick: t[4] || (t[4] = (o) => b(o.original)),
213
+ "hide-footer": !0
214
+ }, null, 8, ["row-data", "search-value"]),
215
+ r(G, { class: "hidden xs:!flex sm:!flex flex-col mx-[-24px]" }, {
216
+ default: F(() => [
217
+ (m(!0), g(k, null, Y(a(h).filter(
218
+ (o) => o.name.toLowerCase().includes(a(i).searchKey.toLowerCase())
219
+ ), (o) => (m(), B(z, {
220
+ key: o._id.toString(),
221
+ onClick: (C) => b(o),
222
+ class: "py-12 px-16 flex items-center justify-between border-b border-fm-color-neutral-gray-100"
223
+ }, {
224
+ default: F(() => {
225
+ var C, O, T;
226
+ return [
227
+ n("div", _e, [
228
+ n("div", he, [
229
+ (m(), B(Z(a(K)(o)))),
230
+ n("div", be, d(o.currentReceive ?? 0) + " sent ", 1)
231
+ ]),
232
+ n("div", we, [
233
+ n("div", xe, d(o.name), 1),
234
+ n("div", Ce, d(a(P)(o)), 1),
235
+ a(y)(o) ? (m(), g("div", ve, [
236
+ (C = a(y)(o)) != null && C.strategy ? (m(), g("span", Se, d((O = a(y)(o)) == null ? void 0 : O.strategy), 1)) : A("", !0),
237
+ n("span", ke, d((T = a(y)(o)) == null ? void 0 : T.route), 1)
238
+ ])) : A("", !0)
239
+ ])
240
+ ]),
241
+ n("div", Fe, [
242
+ r(x, {
243
+ icon: "content_copy",
244
+ "icon-color": "neutral-gray-400",
245
+ variant: "tertiary",
246
+ onClick: async (v) => {
247
+ v.stopPropagation(), await V(o);
248
+ }
249
+ }, null, 8, ["onClick"]),
250
+ r(x, {
251
+ icon: "delete",
252
+ "icon-color": "neutral-gray-400",
253
+ variant: "tertiary",
254
+ onClick: (v) => (v.stopPropagation(), R(o))
255
+ }, null, 8, ["onClick"])
256
+ ])
257
+ ];
258
+ }),
259
+ _: 2
260
+ }, 1032, ["onClick"]))), 128))
261
+ ]),
262
+ _: 1
263
+ }),
264
+ a(h).length == 0 ? (m(), g("div", Be, [
265
+ n("div", Ae, d(a(s)("connect.campaign.common.noResults")), 1)
266
+ ])) : A("", !0)
267
+ ], 64)) : (m(), B(J, {
268
+ key: 1,
269
+ variant: "outlined",
270
+ class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
271
+ }, {
272
+ default: F(() => [
273
+ t[6] || (t[6] = n("img", {
274
+ src: ee,
275
+ class: "aspect-square w-[150px]"
276
+ }, null, -1)),
277
+ n("div", De, [
278
+ n("div", Le, d(a(s)("connect.campaign.broadcast.create.title")), 1),
279
+ n("div", Re, d(a(s)("connect.campaign.broadcast.create.description")), 1)
280
+ ]),
281
+ r(x, {
282
+ variant: "primary",
283
+ label: a(s)("connect.campaign.broadcast.create.button"),
284
+ icon: "add",
285
+ onClick: t[5] || (t[5] = (o) => b())
286
+ }, null, 8, ["label"])
287
+ ]),
288
+ _: 1
289
+ })),
290
+ r(pe, {
291
+ ref_key: "sheetRef",
292
+ ref: w,
293
+ "onSubmit:modelValue": H
294
+ }, null, 512)
295
+ ])
296
+ ], 64);
297
+ };
298
+ }
299
+ });
300
+ export {
301
+ Je as default
302
+ };