@feedmepos/mf-connect 0.1.113-prod → 0.1.114-dev

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 (156) hide show
  1. package/README.md +66 -1
  2. package/dist/{App-2J4yDonr.js → App-CIWTDYuZ.js} +700 -654
  3. package/dist/AuditLogs-BluLDXu9.js +2016 -0
  4. package/dist/{Bin-BU_hVuxJ.js → Bin-jS6pM4L3.js} +8 -8
  5. package/dist/Broadcast-DBqsSZ0S.js +306 -0
  6. package/dist/{CampaignAnalytic-DUUmFMvy.js → CampaignAnalytic-DJrjXD4H.js} +7 -7
  7. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BZirReIy.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CzwigRLi.js} +9 -9
  8. package/dist/{Card-DS2K_LFv.js → Card-B10nLilL.js} +25 -24
  9. package/dist/{Collections-BFdRdPHR.js → Collections-BN42A73p.js} +197 -185
  10. package/dist/{Credit-CODfiox3.js → Credit-0SS26HGE.js} +21 -20
  11. package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-B2T5G1hZ.js → DateRangeChip.vue_vue_type_script_setup_true_lang-B3wozBFs.js} +1 -1
  12. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-BRd5RVYe.js +4442 -0
  13. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-KvZebiOu.js → EffectSheet.vue_vue_type_style_index_0_lang-zV9dLCWp.js} +32 -32
  14. package/dist/{Experience-BGBWc8Ep.js → Experience-D7qPzsrc.js} +32 -31
  15. package/dist/{FileSaver.min-DJAN3Eu0.js → FileSaver.min-BKWoklMK.js} +1 -1
  16. package/dist/{Game-6yyn0uAd.js → Game-BoYMwfog.js} +19 -18
  17. package/dist/{GiftCardSetup-B096bTm0.js → GiftCardSetup-B87O0xzo.js} +75 -75
  18. package/dist/{GoalPickerPanel.vue_vue_type_script_setup_true_lang-ChvUXdF-.js → GoalPickerPanel.vue_vue_type_script_setup_true_lang-B3uGbEFY.js} +7 -7
  19. package/dist/{Goals-Db2mwbRo.js → Goals-CVxf3xCA.js} +4 -4
  20. package/dist/Grab-mGL1Mue_.js +301 -0
  21. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-xdEzwMcS.js → ImageInput.vue_vue_type_script_setup_true_lang-HipBZ1_T.js} +1 -1
  22. package/dist/{Index-580WNkG2.js → Index-Dptuy-6c.js} +10 -10
  23. package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-BkAQXKNJ.js → LocationPicker.vue_vue_type_script_setup_true_lang-Cjc4UeKz.js} +1 -1
  24. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-CR6sSnx4.js → LottieAnimation.vue_vue_type_script_setup_true_lang-Bh0ari3f.js} +1 -1
  25. package/dist/{LoyaltyDashboard-Clr2aiUP.js → LoyaltyDashboard-BxhI6RAE.js} +15 -15
  26. package/dist/MainLayout-YfDxvZXl.js +4 -0
  27. package/dist/{MainLayout-_iCyT5mw.js → MainLayout.vue_vue_type_script_setup_true_lang-BgXpznbi.js} +5 -4
  28. package/dist/{Marketing-fq1wxANq.js → Marketing-C2cVJacf.js} +4 -4
  29. package/dist/MarketingMaterialEdit-DkOEy_L-.js +1037 -0
  30. package/dist/{Member-BfRy196y.js → Member-DufbKDOh.js} +7 -7
  31. package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-BAR44Qcp.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-CU8EmBxy.js} +43 -50
  32. package/dist/{MemberImportHistory-C4622Ivs.js → MemberImportHistory-DlFN-uQl.js} +7 -7
  33. package/dist/{MemberList-DqtsMN_N.js → MemberList-B344n8I4.js} +103 -105
  34. package/dist/{MemberTransactions-DsUoFg3z.js → MemberTransactions-BS7H640M.js} +1 -1
  35. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-CzFMUgXM.js → MessageInput.vue_vue_type_script_setup_true_lang-CxDtXvwd.js} +4228 -4176
  36. package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-CVQYcuQ6.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-lY0jlyOG.js} +1 -1
  37. package/dist/{Mission-B0GO4LiM.js → Mission-D2ed_oKn.js} +22 -21
  38. package/dist/{Overview-XpJJmHqs.js → Overview-CLh_T6YY.js} +145 -144
  39. package/dist/{Overview-CVITimwN.js → Overview-DJa-hXDC.js} +23 -22
  40. package/dist/{Point-B7aCrMkI.js → Point-DAPeg1VD.js} +22 -21
  41. package/dist/{Promotion-DfVcuXHy.js → Promotion-CPPCMMFl.js} +137 -131
  42. package/dist/{Queue-BT7O2cvj.js → Queue-BcPwCRcM.js} +47 -46
  43. package/dist/{Record-CAc030dz.js → Record-C5XKn--g.js} +9 -9
  44. package/dist/{Review-CyXo4GTY.js → Review-Cc51luIv.js} +2 -2
  45. package/dist/ReviewFacebookCallback-BSGInFB8.js +225 -0
  46. package/dist/{ReviewGoogleCallback-BxiFOl0B.js → ReviewGoogleCallback-C1gY4vcP.js} +5 -5
  47. package/dist/{Reward-ChfNtdwX.js → Reward-k1R3hLiF.js} +29 -29
  48. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-CpQu_QBQ.js → RewardGroup.vue_vue_type_script_setup_true_lang-BGbbGVK4.js} +16 -15
  49. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-Coh3L11L.js +1923 -0
  50. package/dist/{Segment-H2zBDZeh.js → Segment-DsBnIvje.js} +290 -291
  51. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-B0jCJ-Xq.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-CMKpvXN-.js} +31 -30
  52. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-DW_ViNZM.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-LyAtRMs8.js} +4 -4
  53. package/dist/Setting-BRueNgc4.js +574 -0
  54. package/dist/{SettingAdvertisements-DPQHP3-B.js → SettingAdvertisements-BrVcQyhF.js} +12 -12
  55. package/dist/Settings-fOvXd29Z.js +286 -0
  56. package/dist/{Store-B2f5HVQc.js → Store-rrh2pIHH.js} +661 -654
  57. package/dist/{StoreRewards-QxfaEt9f.js → StoreRewards-D-jivVKr.js} +15 -15
  58. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-CvQXsZbH.js +1319 -0
  59. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-DbnY9VE9.js +7007 -0
  60. package/dist/{Tier-BSk4rBm8.js → Tier-DJiLtw3M.js} +2576 -687
  61. package/dist/{Title-CIzpB8TT.js → Title-s0bzA7yZ.js} +94 -92
  62. package/dist/{Transaction-BjxxNEHa.js → Transaction-CQ-CJ_eh.js} +2 -2
  63. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-BMutYxOU.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-Bfy8SZH1.js} +26 -26
  64. package/dist/{Voucher-B2lFq21Y.js → Voucher-9vydRET7.js} +19 -19
  65. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-BWV631It.js → VoucherEditor.vue_vue_type_script_setup_true_lang-Dq7veRL5.js} +16 -16
  66. package/dist/WhatsappAccount-D12Hvzfl.js +159 -0
  67. package/dist/WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-BrZEDi6O.js +39 -0
  68. package/dist/WhatsappBot-o5b_0CnB.js +629 -0
  69. package/dist/WhatsappBotLogs-CK_V_iT5.js +372 -0
  70. package/dist/WhatsappBotSettings-BooibLUg.js +694 -0
  71. package/dist/WhatsappLayout-bOyNHGUI.js +21 -0
  72. package/dist/WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-Cytrffdh.js +253 -0
  73. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-BCoB0Fsa.js → ZodTextField.vue_vue_type_script_setup_true_lang-96t_eUzk.js} +2 -2
  74. package/dist/{app-DgFVWdhA.js → app-DV3e2LkD.js} +10610 -8223
  75. package/dist/app.js +4 -3
  76. package/dist/{base.export-B6Rojjek.js → base.export-DQUUtGmy.js} +2 -2
  77. package/dist/browser-BSAOEeIM.js +1478 -0
  78. package/dist/{business-C6ID0exl.js → business-BZ0boE-5.js} +1 -1
  79. package/dist/campaign-CsfFq2S-.js +400 -0
  80. package/dist/{campaign-BgSJXWdU.js → campaign-DMrtYWcs.js} +31 -25
  81. package/dist/{campaign.enum-CVvm0LMm.js → campaign.enum-Dx-Zo68Q.js} +3 -2
  82. package/dist/campaign.fn-C-CdNNdR.js +776 -0
  83. package/dist/{collectible.enum-DGQVW464.js → collectible.enum-Liy2wH3s.js} +1 -1
  84. package/dist/{collection.fn-dV4F8R-j.js → collection.fn-C-rryKSc.js} +2 -2
  85. package/dist/{currency-DlHi_3WN.js → currency-BOd9iVZV.js} +1 -1
  86. package/dist/duplicateCampaign-ey_rW0Bz.js +51 -0
  87. package/dist/{effect-BJgmiWY4.js → effect-BP6Hkxmj.js} +1 -1
  88. package/dist/{email-addresses-3GTx_xTh.js → email-addresses-CO61QAq0.js} +2 -2
  89. package/dist/feature-flag-Bq1SgbYC.js +868 -0
  90. package/dist/feature-flag-lvPP0ED-.js +50 -0
  91. package/dist/google-BQK68wbe.js +5 -0
  92. package/dist/{helper-BX0JQP06.js → helper-BRpts-M-.js} +1 -1
  93. package/dist/{index-BIpAzktM.js → index-03WIXl-H.js} +8 -7
  94. package/dist/{index-BeCKw7Y3.js → index-B0RavybO.js} +19 -6
  95. package/dist/{index-DeNbsrQx.js → index-BDNkoALK.js} +1 -1
  96. package/dist/{index-Bl5aHABH.js → index-BV5aPSYo.js} +11 -10
  97. package/dist/{index-Cnw0B8Lc.js → index-Bk20uvPY.js} +1 -1
  98. package/dist/index-Bn19rfby.js +14571 -0
  99. package/dist/index-C_H8jFYf.js +2743 -0
  100. package/dist/{index-nmw7_9ZE.js → index-Cj-eugzc.js} +1 -1
  101. package/dist/{index-uXgPJlic.js → index-CoROn5OA.js} +2700 -2613
  102. package/dist/{index-DdMVrWZy.js → index-CrBhcMaL.js} +8028 -10767
  103. package/dist/{index-2xed2K8D.js → index-CsBjAM3E.js} +4 -3
  104. package/dist/{index-CiFReW-F.js → index-D1t4_KaG.js} +1 -1
  105. package/dist/{index-DRNdJ_KC.js → index-D3wGTCWf.js} +8 -7
  106. package/dist/{index-CtBLnWVG.js → index-D41kjcrZ.js} +683 -581
  107. package/dist/{index-CNULhBPM.js → index-DIZLkVe0.js} +691 -230
  108. package/dist/{index-QaWLGgEC.js → index-DucKyzrD.js} +2 -2
  109. package/dist/{index-o2OQljHs.js → index-R5WS21OL.js} +4 -4
  110. package/dist/index-RwNlbTO8.js +115 -0
  111. package/dist/{index-R0qlOO6J.js → index-VYI0zWNC.js} +29 -15
  112. package/dist/index-ZRE89TKq.js +80 -0
  113. package/dist/{index-BHT6cvWA.js → index-_Cj-bsd_.js} +396 -232
  114. package/dist/{index-Y2Pu1YkB.js → index-mToWKHVs.js} +2 -2
  115. package/dist/{index.esm2017-Dum0onrS.js → index.esm2017-B_Sag8Pg.js} +209 -209
  116. package/dist/{loading-B2mSdkfy.js → loading-C5fVI0ry.js} +1 -1
  117. package/dist/{lodash-DtOypaKt.js → lodash-COo8_xCU.js} +1 -1
  118. package/dist/{member-import-C2pLnh44.js → member-import-I_pKwUfF.js} +6 -5
  119. package/dist/{membership-BWyBGF4n.js → membership-BgfH9Kva.js} +3 -3
  120. package/dist/{money-3lCCVCeP.js → money-Cr07YDlV.js} +1 -1
  121. package/dist/{number-zlqy2MLG.js → number-DFsj0dkh.js} +1 -1
  122. package/dist/objectid-Cu89BzwI.js +145 -0
  123. package/dist/{onboarding-BqD3B4M1.js → onboarding-DlkJCm-5.js} +25 -25
  124. package/dist/{onboardingSetup-CCQ90jg7.js → onboardingSetup-BEhVj613.js} +2 -2
  125. package/dist/{plugins-Bj3npYnL.js → plugins-CPTtiKqf.js} +3 -3
  126. package/dist/{MarketingMaterialEdit-0h7E0n5e.js → remy-icon-BhUGu2NI.js} +2 -1031
  127. package/dist/{reward-5dDuZEb7.js → reward-DqY0mQ_5.js} +1 -1
  128. package/dist/{rule-NqLeSyoO.js → rule-mJJ48eKw.js} +572 -492
  129. package/dist/style.css +1 -1
  130. package/dist/template-C1QftpDG.js +188 -0
  131. package/dist/{timezone-B0lkgvh-.js → timezone-BBgBHels.js} +1 -1
  132. package/dist/{transaction.fn-CACuVUBe.js → transaction.fn-Sr0hj3kY.js} +2 -2
  133. package/dist/{trigger-BKJwKTJx.js → trigger-PUP0mwKM.js} +8 -8
  134. package/dist/{useMarketingMaterialActions-DERvOmen.js → useMarketingMaterialActions-faslwaHd.js} +3 -3
  135. package/dist/{usePagination-FkjroUq2.js → usePagination-Be6nIQ9y.js} +1 -1
  136. package/dist/{user-H9MnsLbu.js → user-DBSYzG_9.js} +1 -1
  137. package/dist/vue-i18n-C6c2jsH3.js +2365 -0
  138. package/dist/{xlsx-BVmtIl_i.js → xlsx-Bfo19lFv.js} +786 -786
  139. package/dist/{zod-DI7OBdxu.js → zod-CihbDg3N.js} +1 -1
  140. package/package.json +12 -3
  141. package/dist/Broadcast-CoirZUyr.js +0 -271
  142. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-DyIOw_HH.js +0 -2431
  143. package/dist/ReviewFacebookCallback--IcyheQA.js +0 -238
  144. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang--5K-qagY.js +0 -1883
  145. package/dist/Setting-D4XOHSHT.js +0 -2036
  146. package/dist/Settings-Dt_oLoGl.js +0 -179
  147. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-Db2cd6ny.js +0 -1264
  148. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-D9L-AayN.js +0 -142
  149. package/dist/campaign-DDfFBFye.js +0 -228
  150. package/dist/campaign.fn-DRabv93K.js +0 -776
  151. package/dist/google-C3S8u0mT.js +0 -4
  152. package/dist/index-CmhDYsk6.js +0 -51
  153. package/dist/objectid-b2KGvMA7.js +0 -145
  154. package/dist/rule-builder-BzYwbbj4.js +0 -102
  155. package/dist/template-fjUz6xrU.js +0 -236
  156. package/dist/vue-i18n-DbJO6sZW.js +0 -2365
@@ -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-B2mSdkfy.js";
4
- import { u as R } from "./business-C6ID0exl.js";
5
- import { C as A } from "./campaign-DDfFBFye.js";
6
- import { _ as P } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-DyIOw_HH.js";
3
+ import { u as K } from "./loading-C5fVI0ry.js";
4
+ import { u as R } from "./business-BZ0boE-5.js";
5
+ import { C as A } from "./campaign-CsfFq2S-.js";
6
+ import { _ as P } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-BRd5RVYe.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-DW_ViNZM.js";
9
- import { u as D } from "./vue-i18n-DbJO6sZW.js";
8
+ import { _ as Y } from "./SendVoucherSheet.vue_vue_type_script_setup_true_lang-LyAtRMs8.js";
9
+ import { u as D } from "./vue-i18n-C6c2jsH3.js";
10
10
  import { h as E } from "./moment-D7p2TMB-.js";
11
- import { p as I } from "./plugins-Bj3npYnL.js";
12
- import { c as g } from "./index-Y2Pu1YkB.js";
11
+ import { p as I } from "./plugins-CPTtiKqf.js";
12
+ import { c as g } from "./index-mToWKHVs.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-CPTtiKqf.js";
5
+ import { u as se } from "./loading-C5fVI0ry.js";
6
+ import { u as ce } from "./business-BZ0boE-5.js";
7
+ import { u as re } from "./campaign-DMrtYWcs.js";
8
+ import { a as ie, b as K, c as P, d as f } from "./campaign-CsfFq2S-.js";
9
+ import { c as le, p as me } from "./duplicateCampaign-ey_rW0Bz.js";
10
+ import { u as de } from "./vue-i18n-C6c2jsH3.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-CxDtXvwd.js";
13
+ import { _ as ge } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-BRd5RVYe.js";
14
+ import { u as fe } from "./template-C1QftpDG.js";
15
+ import { u as ye } from "./onboardingSetup-BEhVj613.js";
16
+ import { c as _ } from "./index-mToWKHVs.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
+ };
@@ -1,14 +1,14 @@
1
1
  import { defineComponent as z, computed as P, resolveComponent as S, openBlock as r, createBlock as x, withCtx as D, createElementBlock as d, createCommentVNode as v, createElementVNode as s, toDisplayString as u, normalizeClass as K, unref as o, Fragment as L, normalizeStyle as ye, createTextVNode as xe, renderList as ee, createVNode as $, ref as Q, onMounted as ke } from "vue";
2
- import { u as he } from "./vue-i18n-DbJO6sZW.js";
2
+ import { u as he } from "./vue-i18n-C6c2jsH3.js";
3
3
  import { useCoreStore as we } from "@feedmepos/mf-common";
4
- import { c as U } from "./index-Y2Pu1YkB.js";
5
- import { u as Re } from "./loading-B2mSdkfy.js";
6
- import { s as Me, g as _e } from "./campaign-DDfFBFye.js";
7
- import { C as be } from "./timezone-B0lkgvh-.js";
4
+ import { c as U } from "./index-mToWKHVs.js";
5
+ import { u as Re } from "./loading-C5fVI0ry.js";
6
+ import { s as Me, a as _e } from "./campaign-CsfFq2S-.js";
7
+ import { C as be } from "./timezone-BBgBHels.js";
8
8
  import { h as Se } from "./moment-D7p2TMB-.js";
9
9
  import { s as Ce } from "./index-CuvNtC_M.js";
10
- import { T as Ie } from "./transaction.fn-CACuVUBe.js";
11
- import { _ as te } from "./MetricInfoTooltip.vue_vue_type_script_setup_true_lang-CVQYcuQ6.js";
10
+ import { T as Ie } from "./transaction.fn-Sr0hj3kY.js";
11
+ import { _ as te } from "./MetricInfoTooltip.vue_vue_type_script_setup_true_lang-lY0jlyOG.js";
12
12
  import { useRoute as $e, useRouter as Pe } from "vue-router";
13
13
  const Oe = {
14
14
  state: "populated",
@@ -1,14 +1,14 @@
1
- import { R as RuleOperator, _ } from "./index-uXgPJlic.js";
2
- import { i as isRuleGroup } from "./rule-builder-BzYwbbj4.js";
1
+ import { a as RuleOperator, _ } from "./index-CoROn5OA.js";
2
+ import { a as isRuleGroup } from "./index-DIZLkVe0.js";
3
3
  import { defineComponent, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, createElementBlock, Fragment, renderList, unref, createVNode, toDisplayString, createCommentVNode } from "vue";
4
4
  import { useDialog } from "@feedmepos/ui-library";
5
- import "./index-CtBLnWVG.js";
6
- import "./index-DdMVrWZy.js";
7
- import { F as F_RUNNABLE_CAMPAIGN_TYPE } from "./index-BHT6cvWA.js";
8
- import "./index-CNULhBPM.js";
9
- import "./index-DRNdJ_KC.js";
10
- import "./index-2xed2K8D.js";
11
- import { u as useBusinessStore } from "./business-C6ID0exl.js";
5
+ import "./index-D41kjcrZ.js";
6
+ import "./index-CrBhcMaL.js";
7
+ import { F as F_RUNNABLE_CAMPAIGN_TYPE } from "./index-_Cj-bsd_.js";
8
+ import "./index-D3wGTCWf.js";
9
+ import "./index-RwNlbTO8.js";
10
+ import "./index-CsBjAM3E.js";
11
+ import { u as useBusinessStore } from "./business-BZ0boE-5.js";
12
12
  function validateRule(data, r, date) {
13
13
  const rules = new RuleOperator(date ?? /* @__PURE__ */ new Date());
14
14
  function meetConditions(e) {
@@ -2,31 +2,32 @@ import { defineComponent as oe, ref as y, computed as E, watch as ge, onMounted
2
2
  import { _ as Ue } from "./campaign-CpzFl8Vr.js";
3
3
  import { h as ye } from "./moment-D7p2TMB-.js";
4
4
  import { useDialog as Ne, components as ve } from "@feedmepos/ui-library";
5
- import "./index-DdMVrWZy.js";
6
- import { u as se } from "./loading-B2mSdkfy.js";
5
+ import "./index-CrBhcMaL.js";
6
+ import { u as se } from "./loading-C5fVI0ry.js";
7
7
  import { u as Fe } from "./app-wDQR6dpb.js";
8
- import { u as ie } from "./membership-BWyBGF4n.js";
8
+ import { u as ie } from "./membership-BgfH9Kva.js";
9
9
  import { _ as ae } from "./CustomSelect.vue_vue_type_script_setup_true_lang-Du7fRSZC.js";
10
- import { p as ke, f as xe, n as De } from "./plugins-Bj3npYnL.js";
11
- import { m as H } from "./index-BeCKw7Y3.js";
12
- import { z as Ce, R as Re } from "./app-DgFVWdhA.js";
13
- import { Z as _e } from "./zod-DI7OBdxu.js";
14
- import { _ as he } from "./ImageInput.vue_vue_type_script_setup_true_lang-xdEzwMcS.js";
15
- import "./index-CtBLnWVG.js";
16
- import "./index-uXgPJlic.js";
17
- import { b as Pe } from "./index-BHT6cvWA.js";
18
- import "./index-CNULhBPM.js";
19
- import "./index-DRNdJ_KC.js";
20
- import "./index-2xed2K8D.js";
21
- import { O as Le } from "./objectid-b2KGvMA7.js";
22
- import { u as Ve } from "./vue-i18n-DbJO6sZW.js";
10
+ import { p as ke, f as xe, n as De } from "./plugins-CPTtiKqf.js";
11
+ import { m as H } from "./index-B0RavybO.js";
12
+ import { z as Ce, R as Re } from "./app-DV3e2LkD.js";
13
+ import { Z as _e } from "./zod-CihbDg3N.js";
14
+ import { _ as he } from "./ImageInput.vue_vue_type_script_setup_true_lang-HipBZ1_T.js";
15
+ import "./index-DIZLkVe0.js";
16
+ import "./index-D41kjcrZ.js";
17
+ import "./index-CoROn5OA.js";
18
+ import { b as Pe } from "./index-_Cj-bsd_.js";
19
+ import "./index-D3wGTCWf.js";
20
+ import "./index-RwNlbTO8.js";
21
+ import "./index-CsBjAM3E.js";
22
+ import { O as Le } from "./objectid-Cu89BzwI.js";
23
+ import { u as Ve } from "./vue-i18n-C6c2jsH3.js";
23
24
  import { a as Te, c as Ee } from "./object-BYyQ0PZp.js";
24
- import { u as ze } from "./business-C6ID0exl.js";
25
- import { w as qe } from "./xlsx-BVmtIl_i.js";
26
- import { B as Oe, e as je } from "./base.export-B6Rojjek.js";
27
- import { u as Ye, _ as Ge } from "./usePagination-FkjroUq2.js";
28
- import "./index-DeNbsrQx.js";
29
- import { g as He } from "./user-H9MnsLbu.js";
25
+ import { u as ze } from "./business-BZ0boE-5.js";
26
+ import { w as qe } from "./xlsx-Bfo19lFv.js";
27
+ import { B as Oe, e as je } from "./base.export-DQUUtGmy.js";
28
+ import { u as Ye, _ as Ge } from "./usePagination-Be6nIQ9y.js";
29
+ import "./index-BDNkoALK.js";
30
+ import { g as He } from "./user-DBSYzG_9.js";
30
31
  import { useRouter as Ke } from "vue-router";
31
32
  import { o as Qe } from "./objectId-dwaoBfJX.js";
32
33
  class Se extends Oe {
@@ -658,7 +659,7 @@ const Ze = { class: "space-y-16" }, Xe = { class: "gap-16 grid grid-cols-2" }, J
658
659
  ]), 1032, ["header", "modelValue"]);
659
660
  };
660
661
  }
661
- }), xt = { class: "flex flex-col gap-4" }, Ct = { class: "flex items-center" }, _t = { class: "fm-typo-en-title-md-600 fm-step-title line-clamp-2 mr-8" }, ht = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary max-w-[640px]" }, St = { class: "px-24 flex flex-col pb-24 gap-y-16" }, wt = { class: "flex items-center gap-8 flex-wrap p-12 mt-8 rounded-md bg-fm-color-neutral-gray-100" }, Ft = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, kt = { class: "grid sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-3 gap-16" }, Vt = { class: "fm-typo-en-body-md-500 text-fm-color-typo-secondary" }, $t = { class: "fm-typo-en-title-md-800 text-fm-color-typo-primary" }, At = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-tertiary" }, It = { class: "flex items-center gap-16 flex-wrap" }, Mt = { class: "flex-1 min-w-0" }, Bt = { class: "flex items-center gap-8 flex-none" }, Ut = { class: "flex flex-col gap-16 text-center" }, Nt = { class: "fm-typo-en-title-sm-800" }, Dt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Rt = { class: "flex gap-x-8" }, fl = /* @__PURE__ */ oe({
662
+ }), xt = { class: "flex flex-col gap-4" }, Ct = { class: "flex items-center" }, _t = { class: "fm-typo-en-title-md-600 fm-step-title line-clamp-2 mr-8" }, ht = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary max-w-[640px]" }, St = { class: "px-24 flex flex-col pb-24 gap-y-16" }, wt = { class: "flex items-center gap-8 flex-wrap p-12 mt-8 rounded-md bg-fm-color-neutral-gray-100" }, Ft = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, kt = { class: "grid sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-3 gap-16" }, Vt = { class: "fm-typo-en-body-md-500 text-fm-color-typo-secondary" }, $t = { class: "fm-typo-en-title-md-800 text-fm-color-typo-primary" }, At = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-tertiary" }, It = { class: "flex items-center gap-16 flex-wrap" }, Mt = { class: "flex-1 min-w-0" }, Bt = { class: "flex items-center gap-8 flex-none" }, Ut = { class: "flex flex-col gap-16 text-center" }, Nt = { class: "fm-typo-en-title-sm-800" }, Dt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Rt = { class: "flex gap-x-8" }, gl = /* @__PURE__ */ oe({
662
663
  __name: "Card",
663
664
  setup(W) {
664
665
  const Y = Ke();
@@ -1081,5 +1082,5 @@ const Ze = { class: "space-y-16" }, Xe = { class: "gap-16 grid grid-cols-2" }, J
1081
1082
  }
1082
1083
  });
1083
1084
  export {
1084
- fl as default
1085
+ gl as default
1085
1086
  };