@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,4 +1,4 @@
1
- import { i as Z } from "./plugins-MnP1vCcg.js";
1
+ import { i as Z } from "./plugins-S4qmcyLz.js";
2
2
  import { h as f } from "vue";
3
3
  function u(e, o) {
4
4
  return e.path.join(".") === o;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-connect",
3
- "version": "0.1.98-beta.6",
3
+ "version": "0.1.98-beta.61",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -19,13 +19,12 @@
19
19
  "@ckeditor/ckeditor5-vue": "^7.3.0",
20
20
  "@feedmepos/custom-attributes": "0.0.1-rc.4",
21
21
  "@feedmepos/core": "2.15.21",
22
- "@feedmepos/menu": "1.0.34",
23
22
  "@feedmepos/hrm-permission": "1.0.14",
24
- "@feedmepos/mf-common": "1.29.23",
25
- "@feedmepos/ui-library": "1.10.8",
23
+ "@feedmepos/mf-common": "1.29.31",
24
+ "@feedmepos/mf-core-ui": "1.0.29",
25
+ "@feedmepos/ui-library": "1.10.13",
26
26
  "@feedmepos/mf-remy-panel": "0.15.0",
27
27
  "@feedmepos/remy-vue-client": "0.2.0-beta.14",
28
- "@feedmepos/mf-core-ui": "1.0.25",
29
28
  "@tailwindcss/typography": "^0.5.16",
30
29
  "@types/qrcode": "^1.5.5",
31
30
  "@vueuse/core": "^14.1.0",
@@ -60,6 +59,7 @@
60
59
  "zod-i18n-map": "2.27.0"
61
60
  },
62
61
  "devDependencies": {
62
+ "@playwright/test": "^1.62.1",
63
63
  "@types/file-saver": "^2.0.7",
64
64
  "@types/lodash": "^4.17.7",
65
65
  "@types/node": "^18.19.41",
@@ -77,6 +77,7 @@
77
77
  "scripts": {
78
78
  "dev": "vite",
79
79
  "test": "vitest run",
80
+ "test:e2e": "playwright test",
80
81
  "test:watch": "vitest",
81
82
  "build": "vue-tsc && vite build",
82
83
  "preview": "vite preview",
@@ -1,266 +0,0 @@
1
- import { defineComponent as H, ref as C, computed as q, onMounted as z, resolveComponent as m, openBlock as d, createElementBlock as h, Fragment as v, createVNode as i, unref as a, createElementVNode as n, withCtx as x, renderList as G, createBlock as S, resolveDynamicComponent as J, toDisplayString as u, createCommentVNode as Q, h as k } from "vue";
2
- import { _ as W } from "./campaign-CpzFl8Vr.js";
3
- import { useDialog as X, components as L } from "@feedmepos/ui-library";
4
- import { p as Y } from "./plugins-MnP1vCcg.js";
5
- import { u as Z } from "./loading-CojnK00V.js";
6
- import { u as ee } from "./business-jn-_l48y.js";
7
- import { u as te, c as g } from "./campaign-BnI7-ceP.js";
8
- import { b as V, c as R, a as ae } from "./campaign-rgDnocfT.js";
9
- import { c as oe, p as ne } from "./duplicateCampaign-gzVwrnWb.js";
10
- import { u as se } from "./vue-i18n-BBj45p9N.js";
11
- import { _ as ce } from "./FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js";
12
- import { _ as ie } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-B2sZFWUF.js";
13
- import { u as re } from "./template-DpqLCq1p.js";
14
- const le = { class: "px-24 flex flex-col gap-y-16" }, me = { class: "flex items-center justify-between w-full" }, de = { class: "flex gap-8 overflow-x-auto" }, pe = { class: "space-y-8" }, ue = { class: "flex w-full gap-4 items-center" }, ge = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, fe = { class: "space-y-4" }, ye = { class: "fm-typo-en-body-lg-600" }, _e = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, he = { class: "flex items-center gap-8" }, we = { key: 0 }, be = { class: "text-fm-color-typo-secondary fm-typo-en-body-md-600" }, Ce = { class: "flex flex-col gap-16 text-center" }, ve = { class: "fm-typo-en-title-sm-800" }, xe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, $e = /* @__PURE__ */ H({
15
- __name: "Broadcast",
16
- setup(Se) {
17
- const { t: s } = se(), O = {
18
- label: s("connect.campaign.common.createCampaign"),
19
- value: "create",
20
- isPrimary: !0,
21
- prependIcon: "add"
22
- }, T = re("BROADCAST", X()), I = ee(), p = te(), { global: K, minor: F } = Z, B = C((/* @__PURE__ */ new Date()).toISOString()), r = C({
23
- searchKey: "",
24
- location: []
25
- });
26
- function P(e) {
27
- const t = r.value.location;
28
- return !t || t.length === 0 || !e.targetLocation ? !0 : Array.isArray(t) ? t.some((l) => {
29
- var c;
30
- return (c = e == null ? void 0 : e.targetLocation) == null ? void 0 : c.includes(l);
31
- }) : e.targetLocation.includes(t);
32
- }
33
- const f = q(
34
- () => p.campaigns.broadcast.filter((e) => P(e))
35
- ), $ = [
36
- {
37
- header: "Broadcast title",
38
- accessorFn: (e) => e.name
39
- },
40
- {
41
- header: "Status",
42
- accessorFn: (e) => ae(e),
43
- cell(e) {
44
- return V(e.row.original);
45
- }
46
- },
47
- {
48
- header: "Summary",
49
- accessorFn: (e) => R(e)
50
- },
51
- {
52
- header: "Message sent",
53
- accessorFn: (e) => e.currentReceive ?? "N/A"
54
- },
55
- {
56
- header: "Actions",
57
- cell(e) {
58
- return k("div", { class: "flex items-center gap-8 justify-end" }, [
59
- k(L.FmButton, {
60
- variant: "tertiary",
61
- icon: "content_copy",
62
- iconColor: "neutral-gray-400",
63
- onClick: async (t) => {
64
- t.stopPropagation(), await D(e.row.original);
65
- }
66
- }),
67
- k(L.FmButton, {
68
- variant: "tertiary",
69
- icon: "delete",
70
- iconColor: "neutral-gray-400",
71
- onClick: (t) => {
72
- t.stopPropagation(), A(e.row.original);
73
- }
74
- })
75
- ]);
76
- }
77
- }
78
- ], w = C();
79
- async function A(e) {
80
- await Y.remove(
81
- s("connect.campaign.common.remove.confirm", { name: e.name })
82
- ) && await F(
83
- async () => {
84
- await g.delete(e._id), await p.read("BROADCAST");
85
- },
86
- {
87
- message: s("connect.campaign.common.remove.removing", { name: e.name }),
88
- successMessage: s("connect.campaign.common.remove.removed", {
89
- name: e.name
90
- })
91
- }
92
- );
93
- }
94
- async function y(e) {
95
- B.value = (/* @__PURE__ */ new Date()).toISOString(), e ? await t() : T.open(async (l) => {
96
- await t(l);
97
- });
98
- async function t(l) {
99
- var c;
100
- (c = w.value) == null || c.showSheet(
101
- !0,
102
- "BROADCAST",
103
- e ? await g.readById(e._id) : void 0,
104
- l
105
- );
106
- }
107
- }
108
- async function D(e) {
109
- var c;
110
- if (!await oe(e.name))
111
- return;
112
- B.value = (/* @__PURE__ */ new Date()).toISOString();
113
- const t = await g.readById(e._id), l = ne(t);
114
- (c = w.value) == null || c.showSheet(
115
- !0,
116
- "BROADCAST",
117
- l,
118
- t.template
119
- );
120
- }
121
- async function j(e) {
122
- await F(
123
- async () => {
124
- e.campaign._id ? await g.update(e.campaign._id, e) : await g.create(e), await p.read("BROADCAST");
125
- },
126
- {
127
- message: s(
128
- `connect.campaign.broadcast.update.${e.campaign._id ? "updating" : "creating"}`
129
- ),
130
- successMessage: s("connect.campaign.broadcast.update.success", {
131
- action: e.campaign._id ? "updated" : "created"
132
- })
133
- }
134
- );
135
- }
136
- return z(async () => {
137
- await K(async () => {
138
- await p.read("BROADCAST");
139
- });
140
- }), (e, t) => {
141
- const l = m("FmPageHead"), c = m("FmSearch"), M = m("FmTable"), b = m("FmButton"), N = m("FmListItem"), U = m("FmList"), E = m("FmCard");
142
- return d(), h(v, null, [
143
- i(l, {
144
- title: a(s)("connect.campaign.broadcast.title"),
145
- actions: a(f).length > 0 ? [O] : [],
146
- "onClick:action": t[0] || (t[0] = () => y())
147
- }, null, 8, ["title", "actions"]),
148
- n("div", le, [
149
- i(c, {
150
- modelValue: a(r).searchKey,
151
- "onUpdate:modelValue": t[1] || (t[1] = (o) => a(r).searchKey = o),
152
- class: "hidden xs:!block sm:!block border-b-2 border-fm-color-neutral-gray-100",
153
- placeholder: a(s)("connect.campaign.common.search"),
154
- collapsible: ""
155
- }, null, 8, ["modelValue", "placeholder"]),
156
- a(p).campaigns.broadcast && a(p).campaigns.broadcast.length > 0 ? (d(), h(v, { key: 0 }, [
157
- n("div", me, [
158
- n("div", de, [
159
- i(ce, {
160
- label: `${a(s)("connect.campaign.common.location")}: `,
161
- "right-icon": "keyboard_arrow_down",
162
- modelValue: a(r).location,
163
- "onUpdate:modelValue": t[2] || (t[2] = (o) => a(r).location = o),
164
- icon: "storefront",
165
- "show-item-label": !0,
166
- items: a(I).locationOptions
167
- }, null, 8, ["label", "modelValue", "items"])
168
- ]),
169
- i(c, {
170
- modelValue: a(r).searchKey,
171
- "onUpdate:modelValue": t[3] || (t[3] = (o) => a(r).searchKey = o),
172
- class: "xs:hidden sm:hidden",
173
- placeholder: "search",
174
- collapsible: ""
175
- }, null, 8, ["modelValue"])
176
- ]),
177
- i(M, {
178
- class: "xs:hidden sm:hidden",
179
- "row-data": a(f),
180
- "column-defs": $,
181
- "search-value": a(r).searchKey,
182
- "column-filter": [],
183
- onRowClick: t[4] || (t[4] = (o) => y(o.original)),
184
- "hide-footer": !0
185
- }, null, 8, ["row-data", "search-value"]),
186
- i(U, { class: "hidden xs:!flex sm:!flex flex-col mx-[-24px]" }, {
187
- default: x(() => [
188
- (d(!0), h(v, null, G(a(f).filter(
189
- (o) => o.name.toLowerCase().includes(a(r).searchKey.toLowerCase())
190
- ), (o) => (d(), S(N, {
191
- key: o._id.toString(),
192
- onClick: (_) => y(o),
193
- class: "py-12 px-16 flex items-center justify-between border-b border-fm-color-neutral-gray-100"
194
- }, {
195
- default: x(() => [
196
- n("div", pe, [
197
- n("div", ue, [
198
- (d(), S(J(a(V)(o)))),
199
- n("div", ge, u(o.currentReceive ?? 0) + " sent ", 1)
200
- ]),
201
- n("div", fe, [
202
- n("div", ye, u(o.name), 1),
203
- n("div", _e, u(a(R)(o)), 1)
204
- ])
205
- ]),
206
- n("div", he, [
207
- i(b, {
208
- icon: "content_copy",
209
- "icon-color": "neutral-gray-400",
210
- variant: "tertiary",
211
- onClick: async (_) => {
212
- _.stopPropagation(), await D(o);
213
- }
214
- }, null, 8, ["onClick"]),
215
- i(b, {
216
- icon: "delete",
217
- "icon-color": "neutral-gray-400",
218
- variant: "tertiary",
219
- onClick: (_) => (_.stopPropagation(), A(o))
220
- }, null, 8, ["onClick"])
221
- ])
222
- ]),
223
- _: 2
224
- }, 1032, ["onClick"]))), 128))
225
- ]),
226
- _: 1
227
- }),
228
- a(f).length == 0 ? (d(), h("div", we, [
229
- n("div", be, u(a(s)("connect.campaign.common.noResults")), 1)
230
- ])) : Q("", !0)
231
- ], 64)) : (d(), S(E, {
232
- key: 1,
233
- variant: "outlined",
234
- class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
235
- }, {
236
- default: x(() => [
237
- t[6] || (t[6] = n("img", {
238
- src: W,
239
- class: "aspect-square w-[150px]"
240
- }, null, -1)),
241
- n("div", Ce, [
242
- n("div", ve, u(a(s)("connect.campaign.broadcast.create.title")), 1),
243
- n("div", xe, u(a(s)("connect.campaign.broadcast.create.description")), 1)
244
- ]),
245
- i(b, {
246
- variant: "primary",
247
- label: a(s)("connect.campaign.broadcast.create.button"),
248
- icon: "add",
249
- onClick: t[5] || (t[5] = (o) => y())
250
- }, null, 8, ["label"])
251
- ]),
252
- _: 1
253
- })),
254
- i(ie, {
255
- ref_key: "sheetRef",
256
- ref: w,
257
- "onSubmit:modelValue": j
258
- }, null, 512)
259
- ])
260
- ], 64);
261
- };
262
- }
263
- });
264
- export {
265
- $e as default
266
- };