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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (167) hide show
  1. package/dist/{App-DsB2o1oB.js → App-DievprEi.js} +853 -683
  2. package/dist/{AuditLogs-BcfgiYnJ.js → AuditLogs-DrdqOhZL.js} +16 -13
  3. package/dist/{Bin-DMr7K8Kj.js → Bin-Ci2k3z77.js} +8 -8
  4. package/dist/Broadcast-CpDMAG1o.js +306 -0
  5. package/dist/CampaignAnalytic-uRyGaLaN.js +1830 -0
  6. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CwGoEBsW.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DtGe2Og1.js} +8 -5
  7. package/dist/Card-tb98Kyr-.js +1086 -0
  8. package/dist/{Collections-B0uGC2FE.js → Collections-P1S5WjnJ.js} +14 -13
  9. package/dist/Credit-DwK7JYf-.js +286 -0
  10. package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang-Cyk0iIsd.js +53 -0
  11. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-8r29jKh9.js +4432 -0
  12. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-DJLxGk7W.js → EffectSheet.vue_vue_type_style_index_0_lang-BML_-v8I.js} +36 -36
  13. package/dist/Experience-BejtRlOj.js +288 -0
  14. package/dist/{FileSaver.min-BlA0oZEC.js → FileSaver.min-C-hmBaHm.js} +1 -1
  15. package/dist/FilterChip.vue_vue_type_script_setup_true_lang-3bH-tZAm.js +138 -0
  16. package/dist/Game-n8qL896g.js +356 -0
  17. package/dist/GiftCardSetup-Bgsfcu7N.js +736 -0
  18. package/dist/GoalPickerPanel.vue_vue_type_script_setup_true_lang-CzL68PPP.js +424 -0
  19. package/dist/Goals-BB8LJlq3.js +247 -0
  20. package/dist/{Grab-DmmwrGzk.js → Grab-COq3Ujst.js} +33 -32
  21. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-DNtLW0yQ.js → ImageInput.vue_vue_type_script_setup_true_lang-BmLclEyi.js} +1 -1
  22. package/dist/{Index-m7l4insz.js → Index-BdkIinaE.js} +10 -10
  23. package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-B9sJ-M20.js → LocationPicker.vue_vue_type_script_setup_true_lang-DsWv3DVb.js} +1 -1
  24. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-Dsg2sWjF.js → LottieAnimation.vue_vue_type_script_setup_true_lang-DvOzGF8c.js} +1 -1
  25. package/dist/LoyaltyDashboard-D4Jtpw0n.js +2911 -0
  26. package/dist/MainLayout-Ca-Xm3eZ.js +143 -0
  27. package/dist/{Marketing-C9pSIdBU.js → Marketing-Cpe4s7NZ.js} +7 -6
  28. package/dist/{MarketingMaterialEdit-BEF2T9LR.js → MarketingMaterialEdit-nTeS9VVx.js} +15 -14
  29. package/dist/Member-DgGZ4Cdg.js +654 -0
  30. package/dist/MemberDetailSheet.vue_vue_type_script_setup_true_lang-_O3B-FIA.js +1281 -0
  31. package/dist/MemberImportHistory-rdlbDVWU.js +187 -0
  32. package/dist/MemberList-BC4aRJTt.js +334 -0
  33. package/dist/{MemberTransactions-CAut1TQb.js → MemberTransactions-BFfdTttp.js} +1 -1
  34. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-1AuHixPC.js → MessageInput.vue_vue_type_script_setup_true_lang-DXajAQy9.js} +5928 -5644
  35. package/dist/MetricInfoTooltip.vue_vue_type_script_setup_true_lang-8xVDzdO3.js +40 -0
  36. package/dist/Mission-BWCNKTjU.js +363 -0
  37. package/dist/Overview--Q7vzhNK.js +1316 -0
  38. package/dist/{Overview-DOJj4XvO.js → Overview-i02Wnyjn.js} +23 -20
  39. package/dist/Point-CiWxqny5.js +297 -0
  40. package/dist/Promotion-B0G9qfBm.js +426 -0
  41. package/dist/{Queue-55G2gtP5.js → Queue-YfwgYmzH.js} +16 -13
  42. package/dist/{Record-DNPI02c6.js → Record-CCuwrPKW.js} +9 -9
  43. package/dist/Review-ymsfdh7Q.js +45 -0
  44. package/dist/ReviewFacebookCallback-DyDExWvP.js +238 -0
  45. package/dist/ReviewGoogleCallback-DNyg3n2S.js +213 -0
  46. package/dist/{Reward-CnP8R2pS.js → Reward-BKIb0ezH.js} +28 -28
  47. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-BN71h9IK.js → RewardGroup.vue_vue_type_script_setup_true_lang-DPaaNgpr.js} +26 -23
  48. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-CtB9Ls5-.js → RuleGroup.vue_vue_type_script_setup_true_lang-BLFLybFn.js} +198 -186
  49. package/dist/{Segment-CxiQnnyj.js → Segment-D5_pp7fh.js} +278 -276
  50. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-B1vj5f7T.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-BLLjIA-D.js} +45 -42
  51. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-cWx0G3nM.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-BRIcZwnU.js} +4 -4
  52. package/dist/Setting-CD78gIMU.js +574 -0
  53. package/dist/{SettingAdvertisements-Vt7w1WN3.js → SettingAdvertisements-C2AIT4s4.js} +12 -12
  54. package/dist/Settings-DI_tryQV.js +230 -0
  55. package/dist/Store-BV2JTRNZ.js +2615 -0
  56. package/dist/{StoreRewards-DILeipMG.js → StoreRewards-Bk55YXyO.js} +15 -15
  57. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-BZZ1fqwg.js +1331 -0
  58. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-C7lVeybl.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-BrEzWVrH.js} +2 -2
  59. package/dist/{Tier-BAZ1xuKL.js → Tier-CO2K30Ew.js} +2576 -757
  60. package/dist/{Title-CcNAt47f.js → Title-qProQh3T.js} +41 -37
  61. package/dist/Transaction-qL5L-fE_.js +45 -0
  62. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-hUjQVZ_U.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-Co1BPScS.js} +26 -26
  63. package/dist/Voucher-VFD1LY9Y.js +837 -0
  64. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-CTQDxc5l.js → VoucherEditor.vue_vue_type_script_setup_true_lang-9QyTl7iq.js} +118 -124
  65. package/dist/WhatsappAccount-CxSGqm7H.js +325 -0
  66. package/dist/WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-D8L6izf0.js +96 -0
  67. package/dist/WhatsappBot-C4Oz7Xwv.js +441 -0
  68. package/dist/WhatsappBotSettings-CKqaWzwE.js +136 -0
  69. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-DuRKA4cj.js → ZodTextField.vue_vue_type_script_setup_true_lang-Bcsi94dw.js} +2 -2
  70. package/dist/{app-Z-UKRG5V.js → app-BEYzXWZO.js} +50954 -42517
  71. package/dist/app.js +1 -1
  72. package/dist/base.export-S_82Elmg.js +75 -0
  73. package/dist/browser-BSAOEeIM.js +1478 -0
  74. package/dist/{business-C7EF6cKC.js → business-DH7djUl8.js} +5 -5
  75. package/dist/campaign-DlHDgoFX.js +100 -0
  76. package/dist/campaign-k_WHxsOR.js +400 -0
  77. package/dist/{campaign.enum-BNN2gLFY.js → campaign.enum-Dx-Zo68Q.js} +1 -1
  78. package/dist/{campaign.fn-Bd34dVnx.js → campaign.fn-B-4JRzft.js} +67 -67
  79. package/dist/{collectible.enum-DO9HdJGH.js → collectible.enum-Liy2wH3s.js} +1 -1
  80. package/dist/collection.fn-zQwWDzZT.js +26 -0
  81. package/dist/currency-CQVHXBFe.js +7 -0
  82. package/dist/{duplicateCampaign-2ODeDw3a.js → duplicateCampaign-YTXMbJTj.js} +11 -11
  83. package/dist/{effect-BcB8IlTI.js → effect-CQkVLHWi.js} +1 -1
  84. package/dist/{email-addresses-BcTeU4Sh.js → email-addresses-BIoVbPGC.js} +209 -201
  85. package/dist/google-C3S8u0mT.js +4 -0
  86. package/dist/{helper-BSgrCJRv.js → helper-BCkTvF4m.js} +1 -1
  87. package/dist/{index-CoHWpylO.js → index-B-bQnb0_.js} +2115 -2557
  88. package/dist/index-BAJOC43K.js +14550 -0
  89. package/dist/{index-HXiYGO4_.js → index-BFIHEBnX.js} +6343 -7693
  90. package/dist/{index-VlFWaBrg.js → index-BJIQe3QJ.js} +1 -1
  91. package/dist/{index-BpI-BI4H.js → index-BJkRTH5T.js} +4 -4
  92. package/dist/index-BOJogkKQ.js +172 -0
  93. package/dist/{index-BoYEqLif.js → index-BRPajAkE.js} +1517 -263
  94. package/dist/{index-CsoBDon4.js → index-BTkxgos0.js} +1590 -1523
  95. package/dist/index-BUP4aHq8.js +32438 -0
  96. package/dist/index-BYvnqARr.js +902 -0
  97. package/dist/{index-hlyg-wxV.js → index-Bonq819P.js} +1 -1
  98. package/dist/{index-CIBPhxlC.js → index-C6mOI2Pp.js} +105 -123
  99. package/dist/{index-Bf6jNZit.js → index-CDIe15AY.js} +24 -9
  100. package/dist/index-CTrcdIkt.js +137 -0
  101. package/dist/index-C_H8jFYf.js +2743 -0
  102. package/dist/index-CpnchVe1.js +74 -0
  103. package/dist/index-D5AR7A5e.js +151 -0
  104. package/dist/index-D7-Q86HI.js +54 -0
  105. package/dist/index-DdOj8Hew.js +53 -0
  106. package/dist/{index-iMPtFp54.js → index-Dvqguh2B.js} +10 -9
  107. package/dist/{index-Bm0QPucw.js → index-hAKRfE-4.js} +14 -14
  108. package/dist/index-o2Ga_qaX.js +39 -0
  109. package/dist/{index.esm2017-CM7OnEyP.js → index.esm2017-D0fhMMPG.js} +128 -128
  110. package/dist/{loading-CSXr0Yqz.js → loading-C686AMVG.js} +1 -1
  111. package/dist/{lodash-Bh7XKI-R.js → lodash-CANlWUWW.js} +1 -1
  112. package/dist/member-import-UzJ6ByIS.js +188 -0
  113. package/dist/membership-DCVzFaFy.js +274 -0
  114. package/dist/{money-BZIST_m9.js → money-DuazwoX7.js} +1 -1
  115. package/dist/{number-DXLR2w95.js → number-B2HFiV0g.js} +1 -1
  116. package/dist/objectid-Bq-oVMdP.js +145 -0
  117. package/dist/onboarding-BxvNxz-9.js +131 -0
  118. package/dist/onboardingSetup-CcvKmyx8.js +17 -0
  119. package/dist/{plugins-4FlbwoES.js → plugins-C39O5j42.js} +13 -12
  120. package/dist/remy-Qz_pNsUS.js +13 -0
  121. package/dist/{reward-DUbl79bZ.js → reward-HYt-2nxt.js} +1 -1
  122. package/dist/{rule-BQUoZ4l_.js → rule-3xNIYM7z.js} +337 -275
  123. package/dist/style.css +1 -1
  124. package/dist/{template-BoiSG7G7.js → template-D37Z_b0m.js} +6 -6
  125. package/dist/timezone-JwnQgpaU.js +20 -0
  126. package/dist/transaction.fn-C5vswLI_.js +71 -0
  127. package/dist/{trigger-D5g5m6tT.js → trigger-Bc6s2cvq.js} +17 -17
  128. package/dist/useMarketingMaterialActions-DMGyAXcy.js +96 -0
  129. package/dist/{usePagination-DHePBBoR.js → usePagination-DLOOwiiY.js} +1 -1
  130. package/dist/{user-C_ToSo-g.js → user-CTIGugVF.js} +1 -1
  131. package/dist/{vue-i18n-BcYh6_51.js → vue-i18n-Dpic36zz.js} +287 -287
  132. package/dist/{xlsx-h4G1C-xj.js → xlsx-CT9_1SFr.js} +786 -786
  133. package/dist/{zod-CgigfJar.js → zod-CGVrMcDl.js} +1 -1
  134. package/package.json +10 -6
  135. package/dist/Broadcast-C9akM-TB.js +0 -266
  136. package/dist/Card-DRkIYs0M.js +0 -910
  137. package/dist/Credit-V5YA_hGx.js +0 -260
  138. package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang-eIoPtgO5.js +0 -58
  139. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-CYQMXARx.js +0 -3377
  140. package/dist/Experience-WTWy5yY6.js +0 -259
  141. package/dist/FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js +0 -129
  142. package/dist/Game-BwOfTCW5.js +0 -330
  143. package/dist/LoyaltyDashboard-CJdhYiea.js +0 -1082
  144. package/dist/MainLayout-Du5kZOtA.js +0 -41
  145. package/dist/Member-DUV_vbPI.js +0 -280
  146. package/dist/MemberList-Ye4nOk-i.js +0 -1601
  147. package/dist/Mission-BBmCGpt8.js +0 -334
  148. package/dist/Point-Bzg6hi6o.js +0 -262
  149. package/dist/Promotion-BMXIp_ef.js +0 -397
  150. package/dist/Review-CYNPPxYU.js +0 -1141
  151. package/dist/ReviewFacebookCallback-0SUkKAaC.js +0 -243
  152. package/dist/ReviewGoogleCallback-BZEzx68n.js +0 -208
  153. package/dist/SelectItems.vue_vue_type_script_setup_true_lang-C4vohf6c.js +0 -181
  154. package/dist/Setting-jHAjccod.js +0 -2047
  155. package/dist/Store-Cu-hKmVa.js +0 -1996
  156. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-CGz6CTWA.js +0 -1130
  157. package/dist/Transaction-D7DO3dKQ.js +0 -39
  158. package/dist/Voucher-Cq-n1CaC.js +0 -421
  159. package/dist/campaign--MjoY1Mn.js +0 -219
  160. package/dist/campaign-DHBuP4UA.js +0 -277
  161. package/dist/export-CjB7qxZ9.js +0 -97
  162. package/dist/index-BIAjmMga.js +0 -85
  163. package/dist/index-Bv4MBLQ5.js +0 -52
  164. package/dist/index-hbyCVNa7.js +0 -30289
  165. package/dist/membership-CfredTm3.js +0 -255
  166. package/dist/objectid-Dg4ZodlT.js +0 -145
  167. package/dist/useMarketingMaterialActions-B-Jlw2Z9.js +0 -107
@@ -1,259 +0,0 @@
1
- import { defineComponent as M, ref as P, computed as H, onMounted as q, resolveComponent as m, openBlock as d, createElementBlock as w, Fragment as C, createVNode as s, unref as o, createElementVNode as n, withCtx as v, renderList as z, createBlock as b, resolveDynamicComponent as G, toDisplayString as _, h as k } from "vue";
2
- import { _ as J } from "./campaign-CpzFl8Vr.js";
3
- import { useDialog as Q, components as B } from "@feedmepos/ui-library";
4
- import { p as W } from "./plugins-4FlbwoES.js";
5
- import { u as X } from "./loading-CSXr0Yqz.js";
6
- import { u as Y } from "./business-C7EF6cKC.js";
7
- import { u as Z, c as u } from "./campaign--MjoY1Mn.js";
8
- import { b as I, c as V, a as ee } from "./campaign-DHBuP4UA.js";
9
- import { c as te, p as oe } from "./duplicateCampaign-2ODeDw3a.js";
10
- import { u as ae } from "./vue-i18n-BcYh6_51.js";
11
- import { _ as ne } from "./FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js";
12
- import { _ as re } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-CYQMXARx.js";
13
- import { u as ie } from "./template-BoiSG7G7.js";
14
- const se = { class: "px-24 flex flex-col gap-y-16" }, ce = { class: "flex items-center justify-between w-full" }, le = { class: "flex gap-8 overflow-x-auto" }, me = { class: "space-y-8" }, pe = { class: "flex w-full gap-4 items-center" }, de = { class: "space-y-4" }, ue = { class: "fm-typo-en-body-lg-600" }, fe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ge = { class: "flex items-center gap-8" }, ye = { class: "flex flex-col gap-16 text-center" }, _e = { class: "fm-typo-en-title-sm-800" }, he = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ne = /* @__PURE__ */ M({
15
- __name: "Experience",
16
- setup(xe) {
17
- const { t: r } = ae(), T = {
18
- label: r("connect.program.common.actions.create", {
19
- type: r("connect.program.experience.title").toLowerCase()
20
- }),
21
- value: "create",
22
- isPrimary: !0,
23
- prependIcon: "add"
24
- }, N = ie("POINT", Q()), $ = Y(), p = Z(), { global: D, minor: F } = X, c = P({
25
- searchKey: "",
26
- location: []
27
- });
28
- function K(e) {
29
- const t = c.value.location;
30
- return !t || t.length === 0 || !e.targetLocation ? !0 : Array.isArray(t) ? t.some((l) => {
31
- var i;
32
- return (i = e == null ? void 0 : e.targetLocation) == null ? void 0 : i.includes(l);
33
- }) : e.targetLocation.includes(t);
34
- }
35
- const f = H(
36
- () => p.campaigns.experience.filter((e) => K(e))
37
- ), O = [
38
- {
39
- header: "Program title",
40
- accessorFn: (e) => e.name
41
- },
42
- {
43
- header: "Status",
44
- accessorFn: (e) => ee(e),
45
- cell(e) {
46
- return I(e.row.original);
47
- }
48
- },
49
- {
50
- header: "Summary",
51
- accessorFn: (e) => V(e)
52
- //v.effect,
53
- },
54
- {
55
- header: "Actions",
56
- cell(e) {
57
- return k("div", { class: "flex items-center gap-8 justify-end" }, [
58
- k(B.FmButton, {
59
- variant: "tertiary",
60
- icon: "content_copy",
61
- iconColor: "neutral-gray-400",
62
- onClick: async (t) => {
63
- t.stopPropagation(), await L(e.row.original);
64
- }
65
- }),
66
- k(B.FmButton, {
67
- variant: "tertiary",
68
- icon: "delete",
69
- iconColor: "neutral-gray-400",
70
- onClick: (t) => {
71
- t.stopPropagation(), S(e.row.original);
72
- }
73
- })
74
- ]);
75
- }
76
- }
77
- ], h = P();
78
- async function S(e) {
79
- await W.remove(`Are you sure you want to remove ${e.name}?`) && await F(
80
- async () => {
81
- await u.delete(e._id), await p.read("POINT");
82
- },
83
- {
84
- message: `Removing ${e.name}`,
85
- successMessage: `Removed ${e.name} successfully`
86
- }
87
- );
88
- }
89
- async function g(e) {
90
- e ? await t() : N.open(async (l) => {
91
- await t(l);
92
- });
93
- async function t(l) {
94
- var i;
95
- (i = h.value) == null || i.showSheet(
96
- !0,
97
- "POINT",
98
- e ? await u.readById(e._id) : void 0,
99
- l
100
- );
101
- }
102
- }
103
- async function L(e) {
104
- var i;
105
- if (!await te(e.name))
106
- return;
107
- const t = await u.readById(e._id), l = oe(t, {
108
- keepCollectible: !0
109
- });
110
- (i = h.value) == null || i.showSheet(
111
- !0,
112
- "POINT",
113
- l,
114
- t.template
115
- );
116
- }
117
- async function A(e) {
118
- await F(
119
- async () => {
120
- e.campaign._id ? await u.update(e.campaign._id, e) : await u.create(e), await p.read("POINT");
121
- },
122
- {
123
- message: r("connect.program.common.update.updating", {
124
- type: r("connect.program.experience.title")
125
- }),
126
- successMessage: r("connect.program.common.update.success", {
127
- type: r("connect.program.experience.title"),
128
- action: e.campaign._id ? "updated" : "created"
129
- })
130
- }
131
- );
132
- }
133
- return q(async () => {
134
- await D(async () => {
135
- await p.read("POINT");
136
- });
137
- }), (e, t) => {
138
- const l = m("FmPageHead"), i = m("FmSearch"), R = m("FmTable"), x = m("FmButton"), j = m("FmListItem"), E = m("FmList"), U = m("FmCard");
139
- return d(), w(C, null, [
140
- s(l, {
141
- title: o(r)("connect.program.experience.title"),
142
- actions: o(f).length > 0 ? [T] : [],
143
- "onClick:action": t[0] || (t[0] = () => g())
144
- }, null, 8, ["title", "actions"]),
145
- n("div", se, [
146
- s(i, {
147
- modelValue: o(c).searchKey,
148
- "onUpdate:modelValue": t[1] || (t[1] = (a) => o(c).searchKey = a),
149
- class: "hidden xs:!block sm:!block border-b-2 border-fm-color-neutral-gray-100",
150
- placeholder: o(r)("connect.program.common.search"),
151
- collapsible: ""
152
- }, null, 8, ["modelValue", "placeholder"]),
153
- o(p).campaigns.experience && o(p).campaigns.experience.length > 0 ? (d(), w(C, { key: 0 }, [
154
- n("div", ce, [
155
- n("div", le, [
156
- s(ne, {
157
- label: `${o(r)("connect.common.location")}: `,
158
- "right-icon": "keyboard_arrow_down",
159
- modelValue: o(c).location,
160
- "onUpdate:modelValue": t[2] || (t[2] = (a) => o(c).location = a),
161
- icon: "storefront",
162
- "show-item-label": !0,
163
- items: o($).locationOptions
164
- }, null, 8, ["label", "modelValue", "items"])
165
- ]),
166
- s(i, {
167
- modelValue: o(c).searchKey,
168
- "onUpdate:modelValue": t[3] || (t[3] = (a) => o(c).searchKey = a),
169
- class: "xs:hidden sm:hidden",
170
- placeholder: "search",
171
- collapsible: ""
172
- }, null, 8, ["modelValue"])
173
- ]),
174
- s(R, {
175
- class: "xs:hidden sm:hidden",
176
- "row-data": o(f),
177
- "column-defs": O,
178
- "search-value": o(c).searchKey,
179
- "column-filter": [],
180
- onRowClick: t[4] || (t[4] = (a) => g(a.original)),
181
- "hide-footer": o(f).length < 10
182
- }, null, 8, ["row-data", "search-value", "hide-footer"]),
183
- s(E, { class: "hidden xs:!flex sm:!flex flex-col mx-[-24px]" }, {
184
- default: v(() => [
185
- (d(!0), w(C, null, z(o(f).filter(
186
- (a) => a.name.toLowerCase().includes(o(c).searchKey.toLowerCase())
187
- ), (a) => (d(), b(j, {
188
- key: a._id.toString(),
189
- onClick: (y) => g(a),
190
- class: "py-12 px-16 flex items-center justify-between border-b border-fm-color-neutral-gray-100"
191
- }, {
192
- default: v(() => [
193
- n("div", me, [
194
- n("div", pe, [
195
- (d(), b(G(o(I)(a))))
196
- ]),
197
- n("div", de, [
198
- n("div", ue, _(a.name), 1),
199
- n("div", fe, _(o(V)(a)), 1)
200
- ])
201
- ]),
202
- n("div", ge, [
203
- s(x, {
204
- icon: "content_copy",
205
- "icon-color": "neutral-gray-400",
206
- variant: "tertiary",
207
- onClick: async (y) => {
208
- y.stopPropagation(), await L(a);
209
- }
210
- }, null, 8, ["onClick"]),
211
- s(x, {
212
- icon: "delete",
213
- "icon-color": "neutral-gray-400",
214
- variant: "tertiary",
215
- onClick: (y) => (y.stopPropagation(), S(a))
216
- }, null, 8, ["onClick"])
217
- ])
218
- ]),
219
- _: 2
220
- }, 1032, ["onClick"]))), 128))
221
- ]),
222
- _: 1
223
- })
224
- ], 64)) : (d(), b(U, {
225
- key: 1,
226
- variant: "outlined",
227
- class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
228
- }, {
229
- default: v(() => [
230
- t[6] || (t[6] = n("img", {
231
- src: J,
232
- class: "aspect-square w-[150px]"
233
- }, null, -1)),
234
- n("div", ye, [
235
- n("div", _e, _(o(r)("connect.program.experience.empty_state.title")), 1),
236
- n("div", he, _(o(r)("connect.program.experience.empty_state.description")), 1)
237
- ]),
238
- s(x, {
239
- variant: "primary",
240
- label: "Create experience program",
241
- icon: "add",
242
- onClick: t[5] || (t[5] = (a) => g())
243
- })
244
- ]),
245
- _: 1
246
- })),
247
- s(re, {
248
- ref_key: "sheetRef",
249
- ref: h,
250
- "onSubmit:modelValue": A
251
- }, null, 512)
252
- ])
253
- ], 64);
254
- };
255
- }
256
- });
257
- export {
258
- Ne as default
259
- };
@@ -1,129 +0,0 @@
1
- import { defineComponent as j, ref as i, computed as g, onMounted as B, resolveComponent as r, openBlock as m, createBlock as c, unref as o, withCtx as p, createVNode as v, normalizeClass as f, createCommentVNode as k, createElementVNode as L, toDisplayString as F, isRef as M, createElementBlock as O, Fragment as A, renderList as N } from "vue";
2
- const z = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-hidden whitespace-nowrap" }, E = /* @__PURE__ */ j({
3
- __name: "FilterChip",
4
- props: {
5
- modelValue: {
6
- type: Array,
7
- required: !1
8
- },
9
- label: {
10
- type: String,
11
- required: !1,
12
- default: ""
13
- },
14
- showItemLabel: {
15
- type: Boolean,
16
- default: !1
17
- },
18
- placement: {
19
- type: String,
20
- required: !1,
21
- default: "bottom-end"
22
- },
23
- class: {
24
- type: String,
25
- required: !1
26
- },
27
- disabled: {
28
- type: Boolean,
29
- required: !1
30
- },
31
- items: {
32
- type: Array,
33
- required: !0
34
- },
35
- icon: {
36
- type: String,
37
- required: !1
38
- },
39
- searchable: {
40
- type: Boolean,
41
- required: !1,
42
- default: !0
43
- }
44
- },
45
- emits: ["update:model-value"],
46
- setup(u, { emit: C }) {
47
- const t = u, b = C, d = i(!1), l = i({}), s = i(""), V = g(() => {
48
- const e = Object.keys(l.value).length;
49
- return !l.value || Object.keys(l.value).length == t.items.length || e === 0 ? "All" : `${e > 0 ? e : "None"} selected`;
50
- });
51
- function w(e) {
52
- l.value[e] ? delete l.value[e] : l.value[e] = !0, b("update:model-value", Object.keys(l.value));
53
- }
54
- function _() {
55
- Object.keys(l.value).length > 0 ? l.value = {} : l.value = t.items.reduce((e, n) => (e[n.value] = !0, e), {}), b("update:model-value", Object.keys(l.value));
56
- }
57
- const x = g(() => s.value && s.value.length > 0 ? t.items.filter(
58
- (e) => e.label.toLowerCase().includes(s.value.trim().toLowerCase())
59
- ) : t.items);
60
- return B(() => {
61
- l.value = t.modelValue.reduce(
62
- (e, n) => (e[n] = !0, e),
63
- {}
64
- ), t.modelValue.length == 0;
65
- }), (e, n) => {
66
- const y = r("FmIcon"), q = r("FmChip"), I = r("FmTextField"), h = r("FmMenuItem"), S = r("FmMenu");
67
- return m(), c(S, {
68
- placement: u.placement || "bottom-end",
69
- disabled: u.disabled == !0,
70
- "model-value": o(d),
71
- onMenuChanged: n[1] || (n[1] = (a) => d.value = a),
72
- "close-on-click": !1
73
- }, {
74
- "menu-button": p(() => [
75
- v(q, {
76
- label: u.label,
77
- class: f(t.class || "text-fm-color-neutral-gray-400 cursor-pointer")
78
- }, {
79
- default: p(() => [
80
- t.icon ? (m(), c(y, {
81
- key: 0,
82
- name: t.icon,
83
- class: f(t.class),
84
- outline: "",
85
- size: "sm"
86
- }, null, 8, ["name", "class"])) : k("", !0),
87
- L("div", z, F(t.label) + " " + F(u.showItemLabel ? o(V) : ""), 1),
88
- v(y, {
89
- name: o(d) ? "keyboard_arrow_up" : "keyboard_arrow_down",
90
- class: f(t.class),
91
- outline: "",
92
- size: "sm"
93
- }, null, 8, ["name", "class"])
94
- ]),
95
- _: 1
96
- }, 8, ["label", "class"])
97
- ]),
98
- default: p(() => [
99
- u.searchable ? (m(), c(I, {
100
- key: 0,
101
- modelValue: o(s),
102
- "onUpdate:modelValue": n[0] || (n[0] = (a) => M(s) ? s.value = a : null),
103
- placeholder: "Search locations",
104
- class: "my-8"
105
- }, null, 8, ["modelValue"])) : k("", !0),
106
- v(h, {
107
- "model-value": Object.keys(o(l)).length === t.items.length,
108
- label: "All",
109
- "has-checkbox": !0,
110
- indeterminate: !0,
111
- onClick: _
112
- }, null, 8, ["model-value"]),
113
- (m(!0), O(A, null, N(o(x) ?? [], (a) => (m(), c(h, {
114
- key: a.value,
115
- value: a.value,
116
- label: a.label,
117
- "has-checkbox": !0,
118
- "model-value": o(l)[a.value],
119
- "onUpdate:modelValue": (T) => w(a.value)
120
- }, null, 8, ["value", "label", "model-value", "onUpdate:modelValue"]))), 128))
121
- ]),
122
- _: 1
123
- }, 8, ["placement", "disabled", "model-value"]);
124
- };
125
- }
126
- });
127
- export {
128
- E as _
129
- };