@feedmepos/mf-connect 0.1.112-prod → 0.1.113-beta.3

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 (158) hide show
  1. package/README.md +66 -1
  2. package/dist/{App-CFJcQZEE.js → App-YfpYV7C0.js} +700 -654
  3. package/dist/AuditLogs-kD0_HO_p.js +2016 -0
  4. package/dist/{Bin-DaqUNsSV.js → Bin-Dr-Xp3pn.js} +8 -8
  5. package/dist/Broadcast-CEbHu2xA.js +306 -0
  6. package/dist/{CampaignAnalytic-CpP7lgTX.js → CampaignAnalytic-DDiGxPwp.js} +7 -7
  7. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BQiQVQBN.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-Cc_Yho9-.js} +9 -9
  8. package/dist/{Card-Bmz5p5Pq.js → Card-BUnwg0eM.js} +25 -24
  9. package/dist/{Collections-BKND60cK.js → Collections-CKyBkKq2.js} +197 -185
  10. package/dist/{Credit-DQ_tDm8l.js → Credit-CJOXWLV1.js} +21 -20
  11. package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-CCwpsEWf.js → DateRangeChip.vue_vue_type_script_setup_true_lang-DmEBLeNI.js} +1 -1
  12. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-Ce5R4Un6.js +4442 -0
  13. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-wUV_beN0.js → EffectSheet.vue_vue_type_style_index_0_lang-CMFmlqfF.js} +32 -32
  14. package/dist/{Experience-BOE6jLIS.js → Experience-C_Am5CTY.js} +32 -31
  15. package/dist/{FileSaver.min-D0CP0E3N.js → FileSaver.min-CueAGbjq.js} +1 -1
  16. package/dist/{Game-B-8by2dp.js → Game-B6GO_LVU.js} +19 -18
  17. package/dist/{GiftCardSetup-CdqZd1ee.js → GiftCardSetup-CVLDDpI2.js} +75 -75
  18. package/dist/{GoalPickerPanel.vue_vue_type_script_setup_true_lang-BVTu4uTR.js → GoalPickerPanel.vue_vue_type_script_setup_true_lang-isfGhKO1.js} +7 -7
  19. package/dist/{Goals-xFHNbwt7.js → Goals-BX-sMV2V.js} +4 -4
  20. package/dist/Grab-Bh335Srh.js +301 -0
  21. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-B5Z1AZRV.js → ImageInput.vue_vue_type_script_setup_true_lang-srSgUY3e.js} +1 -1
  22. package/dist/{Index-t6veJ0lU.js → Index-CyXRbwcm.js} +10 -10
  23. package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-Deeanc8z.js → LocationPicker.vue_vue_type_script_setup_true_lang-S3GB2Ems.js} +1 -1
  24. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-B8qOJYoS.js → LottieAnimation.vue_vue_type_script_setup_true_lang-ZlWHXwXZ.js} +1 -1
  25. package/dist/{LoyaltyDashboard-DXNBsnM5.js → LoyaltyDashboard-DrTq8oiu.js} +15 -15
  26. package/dist/MainLayout-KbKkpX5n.js +4 -0
  27. package/dist/{MainLayout-CmCboaEn.js → MainLayout.vue_vue_type_script_setup_true_lang-2D5ate_s.js} +5 -4
  28. package/dist/{Marketing-DCq9O5eb.js → Marketing-DQT1MWQg.js} +4 -4
  29. package/dist/MarketingMaterialEdit-fSqr53-M.js +1037 -0
  30. package/dist/{Member-BCYmEmhD.js → Member-DwDUCzlv.js} +7 -7
  31. package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-Djrfmj9g.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-DaQ4Lw8f.js} +43 -50
  32. package/dist/{MemberImportHistory-D-5NAOfo.js → MemberImportHistory-D4ezvJGZ.js} +7 -7
  33. package/dist/{MemberList-IySTKOT_.js → MemberList-DFieV7Qk.js} +103 -105
  34. package/dist/{MemberTransactions-BgQZvc5O.js → MemberTransactions-BPOXyAuC.js} +1 -1
  35. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-N8PCSKBx.js → MessageInput.vue_vue_type_script_setup_true_lang-DhfsgDd4.js} +4228 -4176
  36. package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-_JNdYsBu.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-CX8bk_IQ.js} +1 -1
  37. package/dist/{Mission-DtaTKWE2.js → Mission-nErb05Es.js} +22 -21
  38. package/dist/{Overview-DVMdPa97.js → Overview-7G31a7B-.js} +23 -22
  39. package/dist/{Overview-D-uC2-Pi.js → Overview-DuJr_hAg.js} +145 -144
  40. package/dist/{Point-jnPIgHMZ.js → Point-PWDLemD4.js} +22 -21
  41. package/dist/{Promotion-mdQg-RSh.js → Promotion-N80Tj8M6.js} +137 -131
  42. package/dist/{Queue-D8YY1lbn.js → Queue-M7ZpgiMT.js} +47 -46
  43. package/dist/{Record-Dh-rN7a0.js → Record-NhxrdvWv.js} +9 -9
  44. package/dist/{Review-C8B-SIR8.js → Review-DiAaAzIG.js} +2 -2
  45. package/dist/ReviewFacebookCallback-JdyxFbNl.js +225 -0
  46. package/dist/{ReviewGoogleCallback-pNF2ICvQ.js → ReviewGoogleCallback-BXbI3Bsh.js} +5 -5
  47. package/dist/{Reward-D7KPnzXt.js → Reward-yTaOqOT8.js} +29 -29
  48. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-C87CDjxP.js → RewardGroup.vue_vue_type_script_setup_true_lang-BWPfjZ9K.js} +16 -15
  49. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-Cz2H9MKe.js +1923 -0
  50. package/dist/{Segment-Ct8JRTjV.js → Segment-DE9Bcd6R.js} +290 -291
  51. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-w-UpWetC.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-pmv0cb4J.js} +31 -30
  52. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-BbEX2h2u.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-BeWwkTix.js} +4 -4
  53. package/dist/Setting-C0JAxIRT.js +574 -0
  54. package/dist/{SettingAdvertisements-BrB-dGPs.js → SettingAdvertisements-DxueyKU8.js} +12 -12
  55. package/dist/Settings-Cs46AcxZ.js +286 -0
  56. package/dist/{Store-EKPfHEmY.js → Store-DqQae9nE.js} +661 -654
  57. package/dist/{StoreRewards-B208ENOi.js → StoreRewards-JxSUsOzJ.js} +15 -15
  58. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-qgrBtUNX.js +1319 -0
  59. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-D7ifzgsI.js +7007 -0
  60. package/dist/{Tier-CjYiCZy_.js → Tier-DWhgWush.js} +2576 -687
  61. package/dist/{Title-BXkVolaL.js → Title-DUNeMdz8.js} +94 -92
  62. package/dist/{Transaction-D1T3aIC3.js → Transaction-DAv-LVhC.js} +2 -2
  63. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-flUDCSA5.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-Cih-9IoW.js} +26 -26
  64. package/dist/{Voucher-DnQ8jNjI.js → Voucher-uLTq9RSK.js} +19 -19
  65. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-Z9GDpO4z.js → VoucherEditor.vue_vue_type_script_setup_true_lang-BevVL_Kx.js} +16 -16
  66. package/dist/WhatsappAccount-BpXQ4q0P.js +158 -0
  67. package/dist/WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-EssnbsgT.js +39 -0
  68. package/dist/WhatsappBot-DB4NRZMd.js +589 -0
  69. package/dist/WhatsappBotLogs-DDN4H_bv.js +372 -0
  70. package/dist/WhatsappBotSettings-Bkv1VNwF.js +387 -0
  71. package/dist/WhatsappBotTickets-DAKgnE6T.js +162 -0
  72. package/dist/WhatsappLayout-DSnq84Uo.js +21 -0
  73. package/dist/WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-1BvxPD-k.js +195 -0
  74. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-Dcw8Oi-t.js → ZodTextField.vue_vue_type_script_setup_true_lang-CR-F0x1r.js} +2 -2
  75. package/dist/{app-BtGohMqA.js → app-Devzv4gO.js} +10468 -8156
  76. package/dist/app.js +4 -3
  77. package/dist/{base.export-DulNMo7e.js → base.export-CCSMkvAm.js} +2 -2
  78. package/dist/browser-BSAOEeIM.js +1478 -0
  79. package/dist/{business-Bla8vvZH.js → business-BjAmUqNA.js} +1 -1
  80. package/dist/campaign-C5c47GqT.js +400 -0
  81. package/dist/{campaign-BIPNFBY5.js → campaign-CTe-T5Gd.js} +31 -25
  82. package/dist/{campaign.enum-liUaxkcy.js → campaign.enum-Dx-Zo68Q.js} +3 -2
  83. package/dist/campaign.fn-DxAO8A5b.js +776 -0
  84. package/dist/{collectible.enum-C0FfRMrW.js → collectible.enum-Liy2wH3s.js} +1 -1
  85. package/dist/{collection.fn-DdDMfaFO.js → collection.fn-C9l-OtNt.js} +2 -2
  86. package/dist/{currency-BrVnqxQ1.js → currency-mwm4AWXK.js} +1 -1
  87. package/dist/duplicateCampaign-BbC4AwQ1.js +51 -0
  88. package/dist/{effect-gfVmfrm9.js → effect-D8ba9z0K.js} +1 -1
  89. package/dist/{email-addresses-Dy8NFNBw.js → email-addresses-BR5J6_Jz.js} +2 -2
  90. package/dist/feature-flag-C-5NdFW8.js +868 -0
  91. package/dist/feature-flag-CNcU4_3r.js +50 -0
  92. package/dist/google-BQK68wbe.js +5 -0
  93. package/dist/{helper-CMhQctQK.js → helper-D9cEaMIv.js} +1 -1
  94. package/dist/index-0H82-X0n.js +80 -0
  95. package/dist/{index-D6RDVy95.js → index-B1jP-_Z_.js} +691 -230
  96. package/dist/{index-Dalmv1m4.js → index-B7HH6vKF.js} +8 -7
  97. package/dist/{index-v1exQSyU.js → index-BFaZp6Et.js} +29 -15
  98. package/dist/{index-DKmtDBKS.js → index-B_gzo75q.js} +1 -1
  99. package/dist/{index-qJOEwQ_z.js → index-BfoDdVQS.js} +19 -6
  100. package/dist/{index-C5rRuwhC.js → index-BvY2hQac.js} +1 -1
  101. package/dist/{index-CZqwIQXi.js → index-Byg4ztr-.js} +396 -232
  102. package/dist/{index-otcusTFM.js → index-CZfqqrVu.js} +4 -3
  103. package/dist/index-C_H8jFYf.js +2743 -0
  104. package/dist/{index-CUFuU2eJ.js → index-CmzjBrHR.js} +11 -10
  105. package/dist/{index-CLiJUFmJ.js → index-Ct6YjTIW.js} +2 -2
  106. package/dist/{index-B6x6s8mu.js → index-D34iYRdc.js} +683 -581
  107. package/dist/{index-dyMdi0Rt.js → index-D4k1G2oE.js} +4 -4
  108. package/dist/{index-DvW-3flw.js → index-DnepoNWn.js} +8028 -10767
  109. package/dist/index-Drmh0FT-.js +14571 -0
  110. package/dist/{index-BqKrePY8.js → index-DtcUCknS.js} +2700 -2613
  111. package/dist/{index-D1T4Yf4t.js → index-DwTBiVts.js} +1 -1
  112. package/dist/{index-BOZ3oVHd.js → index-OvnHt5x5.js} +800 -793
  113. package/dist/index-RwNlbTO8.js +115 -0
  114. package/dist/{index-C67-z1uf.js → index-VqAbYyHH.js} +2 -2
  115. package/dist/{index-CghtzuVO.js → index-yGSko6Eq.js} +1 -1
  116. package/dist/{index.esm2017-BLKRIlb9.js → index.esm2017-DLb2VyCT.js} +156 -156
  117. package/dist/{loading-BkJ3h_4U.js → loading-CUNk5u1d.js} +1 -1
  118. package/dist/{lodash-C0Kbs8lQ.js → lodash-BJXravls.js} +1 -1
  119. package/dist/{member-import-trpK8l8R.js → member-import-DjYoddBi.js} +6 -5
  120. package/dist/{membership-TV1CoyKQ.js → membership-ByJUFP8f.js} +3 -3
  121. package/dist/{money-BM-DK9iD.js → money-Bf2IEMJJ.js} +1 -1
  122. package/dist/{number-BclgE86R.js → number-CRBHrRUL.js} +1 -1
  123. package/dist/objectid-58gyOvdR.js +145 -0
  124. package/dist/{onboarding-BLuoXyCY.js → onboarding-CQ3lw7eY.js} +25 -25
  125. package/dist/{onboardingSetup-BLmLAgIV.js → onboardingSetup-CsdZKGFk.js} +2 -2
  126. package/dist/{plugins-3_mD58dh.js → plugins-iTZLbJGy.js} +3 -3
  127. package/dist/{MarketingMaterialEdit-CGLxanxm.js → remy-icon-BhUGu2NI.js} +2 -1031
  128. package/dist/{reward-Bo4szVCU.js → reward-DTN6JpEd.js} +1 -1
  129. package/dist/{rule-Bwy5-zD7.js → rule-BYACNQOL.js} +572 -492
  130. package/dist/style.css +1 -1
  131. package/dist/template--Vr0PCjB.js +188 -0
  132. package/dist/{timezone-DQ7TNXmV.js → timezone-DwzjOED-.js} +1 -1
  133. package/dist/{transaction.fn-OT7ucfCB.js → transaction.fn-DapYe3n7.js} +2 -2
  134. package/dist/{trigger-BJKHGcNG.js → trigger-D8r76yb0.js} +9 -9
  135. package/dist/{useMarketingMaterialActions-BX3C1Gga.js → useMarketingMaterialActions-CdMmibPE.js} +3 -3
  136. package/dist/{usePagination-Qp0qoWBj.js → usePagination-BRcQJkO1.js} +1 -1
  137. package/dist/useWhatsappAccount-BOJ8fz84.js +62 -0
  138. package/dist/{user-BcE3fiEa.js → user-vBZFKqXQ.js} +1 -1
  139. package/dist/vue-i18n-Cw6fF11e.js +2365 -0
  140. package/dist/{xlsx-DYZ421PG.js → xlsx-Muy_Rjhk.js} +1 -1
  141. package/dist/{zod-DestzeIp.js → zod-CCPTOeUz.js} +1 -1
  142. package/package.json +12 -3
  143. package/dist/Broadcast-CdAN6JCa.js +0 -271
  144. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-Bn-lauCv.js +0 -2431
  145. package/dist/ReviewFacebookCallback-C3eyH0pS.js +0 -238
  146. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-D1S2sLOK.js +0 -1883
  147. package/dist/Setting-C3Binnn_.js +0 -2036
  148. package/dist/Settings-D6h2QM6X.js +0 -179
  149. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-Dy7_GFoi.js +0 -1264
  150. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-B2KJeL5Y.js +0 -142
  151. package/dist/campaign-DYqAyRCY.js +0 -228
  152. package/dist/campaign.fn-J7hYcX_7.js +0 -776
  153. package/dist/google-C3S8u0mT.js +0 -4
  154. package/dist/index-Culx-Z9v.js +0 -51
  155. package/dist/objectid-C2XvpEgx.js +0 -145
  156. package/dist/rule-builder-Co_1uuj4.js +0 -102
  157. package/dist/template-fImyGLa7.js +0 -236
  158. package/dist/vue-i18n-BQmB8Ex1.js +0 -2365
@@ -0,0 +1,188 @@
1
+ import { defineComponent as V, openBlock as r, createBlock as C, resolveDynamicComponent as B, unref as e, ref as E, computed as j, onMounted as P, resolveComponent as d, withCtx as u, createElementVNode as l, createElementBlock as w, createVNode as a, normalizeClass as k, createTextVNode as S, toDisplayString as f, Fragment as L, renderList as N, createCommentVNode as q } from "vue";
2
+ import { u as J } from "./campaign-CTe-T5Gd.js";
3
+ import { useDialog as M } from "@feedmepos/ui-library";
4
+ import { F as A } from "./index-B1jP-_Z_.js";
5
+ import { _ as G } from "./lodash-BJXravls.js";
6
+ import { C as H } from "./campaign-C5c47GqT.js";
7
+ import { J as K } from "./JsonViewer-v8_C7l5N.js";
8
+ import { u as Q } from "./vue-i18n-Cw6fF11e.js";
9
+ import { u as R } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-Ce5R4Un6.js";
10
+ const U = /* @__PURE__ */ V({
11
+ __name: "CampaignChip",
12
+ props: {
13
+ type: { type: String, required: !0 }
14
+ },
15
+ setup(_) {
16
+ const p = H[_.type];
17
+ return (i, g) => (r(), C(B(e(p).chip())));
18
+ }
19
+ }), W = { class: "flex flex-nowrap gap-x-2 grow h-full" }, X = {
20
+ key: 0,
21
+ class: "p-8 w-1/4"
22
+ }, Y = { class: "flex flex-col grow p-24" }, Z = { class: "space-y-4" }, ee = { class: "fm-typo-en-title-sm-800" }, te = { class: "text-fm-color-typo-secondary fm-typo-en-body-md-400" }, ne = { class: "grow pb-16 pr-16 pt-6 w-full max-h-[400px] overflow-y-auto" }, oe = { class: "gap-24 grid grid-cols-1 lg:grid-cols-2" }, le = { class: "gap-4 h-[22px] inline-flex items-center justify-center min-w-min rounded-md" }, se = { class: "fm-typo-en-title-sm-800" }, ae = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, ie = { class: "flex gap-4 items-end justify-end py-8" }, ce = /* @__PURE__ */ V({
23
+ __name: "TemplateDialog",
24
+ props: {
25
+ campaignType: {
26
+ type: String,
27
+ default: () => {
28
+ }
29
+ },
30
+ onOk: {
31
+ type: Function,
32
+ required: !0
33
+ }
34
+ },
35
+ setup(_) {
36
+ const { t: n } = Q(), { getLocaleText: p } = R(), i = M(), g = J(), c = _, o = E({
37
+ intention: null,
38
+ template: null
39
+ }), T = j(() => {
40
+ const m = (g.templates ?? []).filter(
41
+ () => !0
42
+ //t.intention && t.intention.length > 0
43
+ );
44
+ return c.campaignType ? m.filter(
45
+ (s) => {
46
+ var x, y;
47
+ return ((y = (x = s.defaultValue) == null ? void 0 : x.campaign) == null ? void 0 : y.type) === c.campaignType;
48
+ }
49
+ ) : o.value.intention === null ? G.sampleSize(m, 7) : m.filter(
50
+ (s) => s.intention.includes(o.value.intention)
51
+ );
52
+ });
53
+ P(async () => {
54
+ await g.readTemplates();
55
+ });
56
+ function $() {
57
+ c.onOk(void 0), i.close();
58
+ }
59
+ function I() {
60
+ const m = o.value.template;
61
+ c.onOk(g.templates.find((s) => s._id === m)), i.close();
62
+ }
63
+ return (m, s) => {
64
+ const x = d("FmChip"), y = d("FmListItem"), O = d("FmList"), F = d("FmCard"), h = d("FmButton"), z = d("FmSpacer");
65
+ return r(), C(F, { class: "h-[534px] max-w-6xl" }, {
66
+ default: u(() => [
67
+ l("div", W, [
68
+ c.campaignType ? q("", !0) : (r(), w("div", X, [
69
+ a(O, null, {
70
+ default: u(() => [
71
+ a(y, {
72
+ class: k([{
73
+ "bg-fm-color-system-warning-100": e(o).intention === null
74
+ }, "rounded-sm"]),
75
+ onClick: s[0] || (s[0] = (t) => {
76
+ e(o).intention = null, e(o).template = null;
77
+ })
78
+ }, {
79
+ append: u(() => [
80
+ a(x, {
81
+ label: e(n)("connect.templateDialog.hot"),
82
+ variant: "critical"
83
+ }, null, 8, ["label"])
84
+ ]),
85
+ default: u(() => [
86
+ S(f(e(n)("connect.templateDialog.mostPopular")) + " ", 1)
87
+ ]),
88
+ _: 1
89
+ }, 8, ["class"]),
90
+ (r(!0), w(L, null, N(e(A).options, (t, b) => (r(), C(y, {
91
+ key: b,
92
+ class: k(["rounded-sm", {
93
+ "bg-fm-color-system-warning-100": e(o).intention === t
94
+ }]),
95
+ style: { padding: "8px 16px" },
96
+ onClick: (v) => {
97
+ e(o).intention = t, e(o).template = null;
98
+ }
99
+ }, {
100
+ default: u(() => [
101
+ S(f(e(n)(`connect.templateDialog.intention.${t}`)), 1)
102
+ ]),
103
+ _: 2
104
+ }, 1032, ["class", "onClick"]))), 128))
105
+ ]),
106
+ _: 1
107
+ })
108
+ ])),
109
+ l("div", Y, [
110
+ l("div", Z, [
111
+ l("div", ee, f(c.campaignType ? e(n)(`connect.templateDialog.campaignType.${c.campaignType}`) : e(n)("connect.templateDialog.templateList")), 1),
112
+ l("div", te, f(e(n)("connect.templateDialog.subtitle")), 1)
113
+ ]),
114
+ l("div", ne, [
115
+ a(K, { json: e(T) }, null, 8, ["json"]),
116
+ l("div", oe, [
117
+ (r(!0), w(L, null, N(e(T), (t, b) => (r(), C(F, {
118
+ key: b,
119
+ variant: "outlined",
120
+ class: k(["box-border cursor-pointer h-full p-16 scroll-p-4 space-y-8", {
121
+ "bg-fm-color-system-warning-100 border-fm-color-primary border-2": e(o).template === t._id.toString()
122
+ }]),
123
+ onClick: (v) => e(o).template = t._id.toString()
124
+ }, {
125
+ default: u(() => {
126
+ var v, D;
127
+ return [
128
+ l("div", le, [
129
+ a(U, {
130
+ type: (D = (v = t.defaultValue) == null ? void 0 : v.campaign) == null ? void 0 : D.type
131
+ }, null, 8, ["type"])
132
+ ]),
133
+ l("div", se, f(e(p)(t.name_locale, t.name)), 1),
134
+ l("p", ae, f(e(p)(t.description_locale, t.description ?? "")), 1)
135
+ ];
136
+ }),
137
+ _: 2
138
+ }, 1032, ["class", "onClick"]))), 128))
139
+ ])
140
+ ]),
141
+ l("div", ie, [
142
+ a(h, {
143
+ class: "sm:w-full xs:w-full",
144
+ variant: "plain",
145
+ label: e(n)("connect.templateDialog.customCampaign"),
146
+ size: "md",
147
+ onClick: $
148
+ }, null, 8, ["label"]),
149
+ a(z, { class: "sm:hidden xs:hidden" }),
150
+ a(h, {
151
+ class: "sm:w-full xs:w-full",
152
+ variant: "tertiary",
153
+ label: e(n)("connect.templateDialog.cancel"),
154
+ size: "md",
155
+ onClick: s[1] || (s[1] = (t) => e(i).close())
156
+ }, null, 8, ["label"]),
157
+ a(h, {
158
+ class: "sm:w-full xs:w-full",
159
+ variant: "primary",
160
+ label: e(n)("connect.templateDialog.start"),
161
+ size: "md",
162
+ disabled: !e(o).template,
163
+ onClick: I
164
+ }, null, 8, ["label", "disabled"])
165
+ ])
166
+ ])
167
+ ])
168
+ ]),
169
+ _: 1
170
+ });
171
+ };
172
+ }
173
+ }), xe = (_, n) => ({
174
+ open: async (p) => {
175
+ n.open({
176
+ title: "",
177
+ dialogComponent: ce,
178
+ dialogComponentProps: {
179
+ campaignType: _,
180
+ onOk: async (i) => (console.debug(i, "selected template"), await p(i))
181
+ },
182
+ overlay: !0
183
+ });
184
+ }
185
+ });
186
+ export {
187
+ xe as u
188
+ };
@@ -1,4 +1,4 @@
1
- import { e as a } from "./index-BOZ3oVHd.js";
1
+ import { e as a } from "./index-OvnHt5x5.js";
2
2
  const n = {
3
3
  [a.F_COUNTRY.enum.MY]: "Asia/Kuala_Lumpur",
4
4
  [a.F_COUNTRY.enum.SG]: "Asia/Singapore",
@@ -1,5 +1,5 @@
1
- import "./index-B6x6s8mu.js";
2
- import { s as u } from "./index-dyMdi0Rt.js";
1
+ import "./index-D34iYRdc.js";
2
+ import { s as u } from "./index-D4k1G2oE.js";
3
3
  function i(l) {
4
4
  var c, f;
5
5
  const e = (c = l.metadata) == null ? void 0 : c.operator, t = typeof e == "string" ? e : [e == null ? void 0 : e.name, e == null ? void 0 : e.phoneNumber, e == null ? void 0 : e.email].filter(Boolean).join(" / ") || (e == null ? void 0 : e.uid);
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as m, openBlock as u, createBlock as p, unref as r } from "vue";
2
- import "./index-BqKrePY8.js";
3
- import { R as i } from "./rule-builder-Co_1uuj4.js";
4
- import { _ as E } from "./RuleGroup.vue_vue_type_script_setup_true_lang-D1S2sLOK.js";
5
- import { c as e, C as d } from "./index-CZqwIQXi.js";
6
- import { i as n } from "./plugins-3_mD58dh.js";
2
+ import "./index-DtcUCknS.js";
3
+ import { R as i } from "./index-B1jP-_Z_.js";
4
+ import { a as E } from "./RuleGroup.vue_vue_type_script_setup_true_lang-Cz2H9MKe.js";
5
+ import { l as e, C as d } from "./index-Byg4ztr-.js";
6
+ import { i as n } from "./plugins-iTZLbJGy.js";
7
7
  const L = /* @__PURE__ */ m({
8
8
  __name: "BillRuleGroup",
9
9
  props: {
@@ -62,7 +62,7 @@ const L = /* @__PURE__ */ m({
62
62
  }, null, 8, ["model-value"]);
63
63
  };
64
64
  }
65
- }), _ = {
65
+ }), R = {
66
66
  [e.enum.BILL_COMPLETED]: {
67
67
  get name() {
68
68
  return n.global.t(
@@ -201,13 +201,13 @@ const L = /* @__PURE__ */ m({
201
201
  const o = d[t];
202
202
  return [
203
203
  t,
204
- (o == null ? void 0 : o.map((a) => _[a]).filter((a) => !a.hidden)) ?? []
204
+ (o == null ? void 0 : o.map((a) => R[a]).filter((a) => !a.hidden)) ?? []
205
205
  ];
206
206
  })
207
207
  );
208
208
  export {
209
209
  C as T,
210
210
  L as _,
211
- _ as a,
212
- O as b
211
+ O as a,
212
+ R as b
213
213
  };
@@ -1,7 +1,7 @@
1
- import { S as o, g as c, b } from "./index-BOZ3oVHd.js";
2
- import { u as w } from "./vue-i18n-BQmB8Ex1.js";
1
+ import { S as o, g as c, b } from "./index-OvnHt5x5.js";
2
+ import { u as w } from "./vue-i18n-Cw6fF11e.js";
3
3
  import { useSnackbar as h } from "@feedmepos/ui-library";
4
- import { c as k } from "./plugins-3_mD58dh.js";
4
+ import { c as k } from "./plugins-iTZLbJGy.js";
5
5
  const l = (e) => b(`businesses/${e}/marketing-materials`), D = {
6
6
  async createMarketingMaterial(e) {
7
7
  const a = o.getBusinessId();
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as P, computed as v, ref as w, onMounted as $, watch as M, resolveComponent as D, openBlock as u, createElementBlock as p, createVNode as r, unref as n, createElementVNode as s, createCommentVNode as N, toDisplayString as b } from "vue";
2
2
  import { _ as S } from "./FmTableSelection.vue_vue_type_script_setup_true_lang-DzcUc0_w.js";
3
- import { l as E } from "./lodash-C0Kbs8lQ.js";
3
+ import { l as E } from "./lodash-BJXravls.js";
4
4
  const R = { class: "" }, A = {
5
5
  key: 0,
6
6
  class: "w-full flex flex-col gap-16 items-center py-16"
@@ -0,0 +1,62 @@
1
+ import { computed as t, toValue as g, ref as w, watch as y } from "vue";
2
+ import { u as N } from "./vue-i18n-Cw6fF11e.js";
3
+ function C(s) {
4
+ const o = s.connectedAt !== null;
5
+ switch (s.status) {
6
+ case "connected":
7
+ return "connected";
8
+ case "disconnected":
9
+ return o ? "disconnected" : void 0;
10
+ case "connecting":
11
+ return o ? "connecting" : void 0;
12
+ }
13
+ }
14
+ const d = [
15
+ "bg-fm-color-primary",
16
+ "bg-fm-color-secondary-plum",
17
+ "bg-fm-color-system-success-400"
18
+ ];
19
+ function U(s) {
20
+ const { t: o, locale: v } = N(), c = t(() => g(s)), u = t(
21
+ () => {
22
+ var e, n, a;
23
+ return (a = (n = (e = c.value) == null ? void 0 : e.account) == null ? void 0 : n.profilePicture) == null ? void 0 : a.url;
24
+ }
25
+ ), r = w(!1);
26
+ y(u, () => {
27
+ r.value = !1;
28
+ });
29
+ const l = t(
30
+ () => {
31
+ var e, n, a, i, p, m;
32
+ return ((n = (e = c.value) == null ? void 0 : e.account) == null ? void 0 : n.businessName) || ((i = (a = c.value) == null ? void 0 : a.account) == null ? void 0 : i.name) || ((m = (p = c.value) == null ? void 0 : p.account) == null ? void 0 : m.phoneNumber) || o("connect.whatsappBot.unnamedAccount");
33
+ }
34
+ ), f = t(
35
+ () => {
36
+ var e, n;
37
+ return ((n = (e = c.value) == null ? void 0 : e.account) == null ? void 0 : n.phoneNumber) || o("connect.whatsappBot.phoneUnavailable");
38
+ }
39
+ ), h = t(
40
+ () => l.value.trim().split(/\s+/).slice(0, 2).map((e) => Array.from(e)[0]).join("").toLocaleUpperCase(v.value)
41
+ ), b = t(
42
+ () => c.value ? C(c.value) ?? "disconnected" : "disconnected"
43
+ ), A = t(
44
+ () => {
45
+ var e;
46
+ return d[parseInt(((e = c.value) == null ? void 0 : e.clientId.slice(-6)) ?? "0", 16) % d.length];
47
+ }
48
+ );
49
+ return {
50
+ name: l,
51
+ phoneNumber: f,
52
+ initials: h,
53
+ state: b,
54
+ avatarColor: A,
55
+ profilePictureUrl: u,
56
+ profilePictureFailed: r
57
+ };
58
+ }
59
+ export {
60
+ U as u,
61
+ C as w
62
+ };
@@ -1,5 +1,5 @@
1
1
  import { components as p } from "@feedmepos/ui-library";
2
- import { c as f } from "./plugins-3_mD58dh.js";
2
+ import { c as f } from "./plugins-iTZLbJGy.js";
3
3
  import { h as c } from "vue";
4
4
  function g(o, t = !1) {
5
5
  var a;