@feedmepos/mf-connect 0.1.124-prod → 0.1.126-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 (149) hide show
  1. package/dist/{App-DMh2xABv.js → App-B_Yp6cvN.js} +224 -216
  2. package/dist/AuditLogs-C1U17evK.js +2016 -0
  3. package/dist/{Bin-C_pkPgIo.js → Bin-CmIpEIwe.js} +8 -8
  4. package/dist/{Broadcast-6ZJzdY0b.js → Broadcast-DkV4BdU_.js} +22 -21
  5. package/dist/{CampaignAnalytic-CLd5ecQe.js → CampaignAnalytic-Dkwo_lpB.js} +7 -7
  6. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-C4OWhhAx.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-Ch8Gblw6.js} +9 -10
  7. package/dist/{Card-CkS8F43U.js → Card-DXCkG34M.js} +23 -23
  8. package/dist/{Collections-BA9I-dDz.js → Collections-CybPfSO4.js} +197 -185
  9. package/dist/{Credit-CXm0A-qe.js → Credit-B-KUzWsX.js} +21 -20
  10. package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-DzsHTlrN.js → DateRangeChip.vue_vue_type_script_setup_true_lang-CWHYeYVD.js} +1 -1
  11. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-C86llTFR.js +4439 -0
  12. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-zSPUBUSz.js → EffectSheet.vue_vue_type_style_index_0_lang-nMcH6y5e.js} +33 -33
  13. package/dist/{Experience-Bq4ykqTJ.js → Experience-Q2NHpa-V.js} +32 -31
  14. package/dist/{FileSaver.min-BtBxrIBi.js → FileSaver.min-CKw2rn-J.js} +1 -1
  15. package/dist/{Game-DpLFmP-G.js → Game-lZvkg04z.js} +19 -18
  16. package/dist/{GiftCardSetup-BqOqEUim.js → GiftCardSetup-CPRju80_.js} +31 -31
  17. package/dist/{GoalPickerPanel.vue_vue_type_script_setup_true_lang-B06xj5q7.js → GoalPickerPanel.vue_vue_type_script_setup_true_lang-Ci686UoB.js} +7 -7
  18. package/dist/{Goals-DMlNeiUc.js → Goals-asGsUeVv.js} +4 -4
  19. package/dist/Grab-BjFLSMpE.js +301 -0
  20. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-DPWRgxG_.js → ImageInput.vue_vue_type_script_setup_true_lang-nk87zPWH.js} +1 -1
  21. package/dist/{Index-Cw07jj0k.js → Index-DIasPS4Y.js} +10 -10
  22. package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-CLjjquVP.js → LocationPicker.vue_vue_type_script_setup_true_lang-DkOn8p1v.js} +1 -1
  23. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-DHOShJQp.js → LottieAnimation.vue_vue_type_script_setup_true_lang-BdSkxiP-.js} +1 -1
  24. package/dist/{LoyaltyDashboard-DzSiK6M7.js → LoyaltyDashboard-DlCsZ3YX.js} +15 -15
  25. package/dist/{MainLayout-1EF680_j.js → MainLayout-DLObnTAA.js} +1 -1
  26. package/dist/{MainLayout.vue_vue_type_script_setup_true_lang-Df9pBgH9.js → MainLayout.vue_vue_type_script_setup_true_lang-DigSZKt1.js} +3 -3
  27. package/dist/{Marketing-T-epFsvG.js → Marketing-JflPW-w9.js} +4 -4
  28. package/dist/{MarketingMaterialEdit-CVhPfyEp.js → MarketingMaterialEdit-fSAB3YVb.js} +214 -211
  29. package/dist/{Member-BUZOPyQR.js → Member-CzNahXTj.js} +7 -7
  30. package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-zURjtl1z.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-bqWUIbMG.js} +40 -48
  31. package/dist/{MemberImportHistory-DGz9i6L7.js → MemberImportHistory--r_A_2Es.js} +7 -7
  32. package/dist/{MemberList-CNdSrzBa.js → MemberList-CQZQ4sN8.js} +103 -105
  33. package/dist/{MemberTransactions-CdQMuQsd.js → MemberTransactions-BPg9JaUA.js} +1 -1
  34. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-CWKVXeCa.js → MessageInput.vue_vue_type_script_setup_true_lang-BhIFChx-.js} +12 -12
  35. package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-xZitIoXE.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-CdGSNqEp.js} +1 -1
  36. package/dist/{Mission-CYxgMBPt.js → Mission-CYCB3YQc.js} +22 -21
  37. package/dist/{Overview-qZ1KKw9D.js → Overview-B5ylMBHT.js} +145 -144
  38. package/dist/{Overview-DSm8AfDB.js → Overview-DuNuUYYq.js} +21 -21
  39. package/dist/{Point-BGlbT9OK.js → Point-DG-Uwj25.js} +22 -21
  40. package/dist/{Promotion-CtlrUFa8.js → Promotion-DqxBQ1yO.js} +137 -131
  41. package/dist/{Queue-Dc_z9MKc.js → Queue-Cy8LGt_Y.js} +46 -46
  42. package/dist/{Record-DVKrhFwJ.js → Record-CzXbu41w.js} +9 -9
  43. package/dist/{Review-Bh8Tw_QU.js → Review-7VL6gIqp.js} +2 -2
  44. package/dist/ReviewFacebookCallback-BwzuPmrz.js +225 -0
  45. package/dist/{ReviewGoogleCallback-CsSCz_C5.js → ReviewGoogleCallback-1JXR_f5O.js} +5 -5
  46. package/dist/{Reward-DY1Q3m1w.js → Reward-BKhUDEu3.js} +16 -16
  47. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-4A91EkSW.js → RewardGroup.vue_vue_type_script_setup_true_lang-DjjCytWF.js} +14 -14
  48. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-Vg7pRGIz.js +1923 -0
  49. package/dist/{Segment-D6LchJFl.js → Segment-DdHDJhaS.js} +304 -307
  50. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-CSAtkMnJ.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-9kGUkHMi.js} +15 -15
  51. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-Co1MQoVq.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-DeFw0px7.js} +4 -4
  52. package/dist/{Setting-UkdSKiUb.js → Setting-DZKGXw-i.js} +17 -17
  53. package/dist/{SettingAdvertisements-DK97gcus.js → SettingAdvertisements-BBNs8tCw.js} +12 -12
  54. package/dist/Settings-9v0hnBJZ.js +286 -0
  55. package/dist/{Store-2VVStL5_.js → Store-C8IlE4IH.js} +29 -29
  56. package/dist/{StoreRewards-f3Pyb9hu.js → StoreRewards-DWygRLR1.js} +15 -15
  57. package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-BmnyPSVT.js → StoreTransactions.vue_vue_type_script_setup_true_lang-CeYYws6P.js} +25 -25
  58. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-BiN3uRJ_.js +7007 -0
  59. package/dist/{Tier-D4Of9P17.js → Tier-7RoxGHsP.js} +2583 -688
  60. package/dist/{Title-Cg6X9UkB.js → Title-0q2Z4HIe.js} +96 -95
  61. package/dist/{Transaction-LJbjQnj_.js → Transaction-CFasERdg.js} +2 -2
  62. package/dist/{Upselling-B-VwbtjT.js → Upselling-DM9R6pYw.js} +3 -3
  63. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-DqH6Upx-.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-BDjwcgnc.js} +26 -26
  64. package/dist/{Voucher-BJG6VKXt.js → Voucher-BkzW2hVV.js} +19 -19
  65. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-7kYeJthi.js → VoucherEditor.vue_vue_type_script_setup_true_lang-DaE4xa3x.js} +12 -12
  66. package/dist/{WhatsappAccount-Dc1fJWWj.js → WhatsappAccount-C3WpDF9O.js} +6 -6
  67. package/dist/{WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-BV0Bsl7a.js → WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-BxC_3h52.js} +1 -1
  68. package/dist/{WhatsappBot-Coq1WP96.js → WhatsappBot-DZb-Dn3s.js} +6 -6
  69. package/dist/WhatsappBotLogs--KskC32Z.js +509 -0
  70. package/dist/WhatsappBotSettings-Dns_PqVE.js +945 -0
  71. package/dist/{WhatsappLayout-x9Ovpu6e.js → WhatsappLayout-NIrFGbId.js} +3 -3
  72. package/dist/{WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-DZlT0uLW.js → WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-BfD5hHc7.js} +3 -3
  73. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-DSJncfI_.js → ZodTextField.vue_vue_type_script_setup_true_lang-CJGxy7gf.js} +2 -2
  74. package/dist/{app-BMFxxLUm.js → app-B9nLnoBt.js} +4497 -3667
  75. package/dist/app.js +4 -3
  76. package/dist/{base.export-LmQ51u5f.js → base.export-CBzNea0v.js} +2 -2
  77. package/dist/{business-DZWViiMC.js → business-aT2zslwu.js} +1 -1
  78. package/dist/{campaign-DZDGbR4W.js → campaign-B6nTwt17.js} +121 -94
  79. package/dist/{campaign-C9xvGyrL.js → campaign-BDCLKFwN.js} +31 -25
  80. package/dist/{campaign.enum-BqekIiiN.js → campaign.enum-Dx-Zo68Q.js} +2 -1
  81. package/dist/campaign.fn-Ck1t5C1T.js +776 -0
  82. package/dist/{collection.fn-DrNrla0B.js → collection.fn-CDna_VLD.js} +2 -2
  83. package/dist/{currency-BZv2gSlF.js → currency-Baum67Wz.js} +1 -1
  84. package/dist/duplicateCampaign-BwrMZgaV.js +51 -0
  85. package/dist/{effect-CvumfBMY.js → effect-CeJbflOK.js} +1 -1
  86. package/dist/{email-addresses-79tPeI4j.js → email-addresses-Y3vF73J0.js} +2 -2
  87. package/dist/{feature-flag-CYXnrECh.js → feature-flag-zn6Ql9tv.js} +84 -84
  88. package/dist/google-BQK68wbe.js +5 -0
  89. package/dist/{helper-DFjsyjri.js → helper-DZvnn-yx.js} +1 -1
  90. package/dist/{index-CcCiEG6N.js → index-B20FfbEE.js} +1 -1
  91. package/dist/{index-DWZzsJHU.js → index-B22ojkMy.js} +2 -2
  92. package/dist/{index-I9lmcd2w.js → index-B3LCTMwV.js} +68 -54
  93. package/dist/{index-C43KoLej.js → index-B5H4znfe.js} +4 -4
  94. package/dist/{index-C5bC2n8X.js → index-BL2zQnXK.js} +3 -3
  95. package/dist/{index-MhAbTpBy.js → index-BYUEPfbP.js} +23 -23
  96. package/dist/{index-CA7oIW_T.js → index-BqniSMV6.js} +197 -197
  97. package/dist/{index-CAWnce4u.js → index-CDRTiAEu.js} +1 -1
  98. package/dist/{index-_-nCOZ1D.js → index-CMs3aIA6.js} +19 -6
  99. package/dist/{index-BiPRZRyE.js → index-CPi3Qwmj.js} +2699 -2613
  100. package/dist/{index-Ba1t5vQv.js → index-DCR1GFCA.js} +380 -234
  101. package/dist/{index-C6ZTa-eq.js → index-DHNhIloU.js} +1 -1
  102. package/dist/{index-CBd91xYU.js → index-DJIt5tXC.js} +7 -7
  103. package/dist/index-DXKJsqgW.js +104 -0
  104. package/dist/{index-CNzQ3FLi.js → index-DXyOBtgF.js} +1 -1
  105. package/dist/{index-Bnane9cm.js → index-Da0-7h2j.js} +1 -1
  106. package/dist/{index-C6Rx7pjc.js → index-DkBOM8za.js} +608 -251
  107. package/dist/{index-CW4rNV1_.js → index-FgM7b2Sw.js} +2 -2
  108. package/dist/{index-DZrX13oF.js → index-juXxYQ_a.js} +1314 -1242
  109. package/dist/{index-Bt-n8QuD.js → index-njg4JLa-.js} +9 -9
  110. package/dist/{index-B_8PAyia.js → index-r_T5o_hF.js} +2 -2
  111. package/dist/{index.esm2017-DtTjnHHc.js → index.esm2017-Dtk7BscN.js} +57 -57
  112. package/dist/{loading-DkqEFbrR.js → loading-PoODMkQD.js} +1 -1
  113. package/dist/{lodash-BxU_5gPB.js → lodash-TthNgH98.js} +1 -1
  114. package/dist/{member-import-B3NBqSF6.js → member-import-D7zs0Jvh.js} +22 -13
  115. package/dist/{membership-Dr5BxoL-.js → membership-Cab-iWQ1.js} +2 -2
  116. package/dist/{money-D58xuACG.js → money-9Q306M3g.js} +1 -1
  117. package/dist/{number-C9CiD5ci.js → number-D9M3D435.js} +1 -1
  118. package/dist/objectid-DKvQl6FD.js +145 -0
  119. package/dist/{onboarding-BssUSfGQ.js → onboarding-D5LKUHVI.js} +25 -25
  120. package/dist/{onboardingSetup-Dc_lD-K8.js → onboardingSetup-D0jsS6w5.js} +2 -2
  121. package/dist/{plugins-D7Xjefvk.js → plugins-CDTKQ1Pg.js} +3 -3
  122. package/dist/{reward-CACqYkQp.js → reward-De3e9vYS.js} +1 -1
  123. package/dist/{rule-BRaTrwKz.js → rule-trVJgEOe.js} +572 -492
  124. package/dist/style.css +1 -1
  125. package/dist/template-Bj3Tb6bP.js +227 -0
  126. package/dist/{timezone-CgVEOC5i.js → timezone-DkuByUmb.js} +1 -1
  127. package/dist/{transaction.fn-C64l_ja_.js → transaction.fn-CPE-oQhA.js} +2 -2
  128. package/dist/{trigger-d2RIqXLt.js → trigger-C6oM-8pe.js} +9 -9
  129. package/dist/{useMarketingMaterialActions-Drf2MY9h.js → useMarketingMaterialActions-C5scdJQp.js} +4 -4
  130. package/dist/{usePagination-IUw34YLE.js → usePagination-CIuTHSSG.js} +1 -1
  131. package/dist/{user-ClGyYHyS.js → user-Bdlgn2yo.js} +1 -1
  132. package/dist/vue-i18n-DEpDI-dt.js +2365 -0
  133. package/dist/{xlsx-HvtVSofi.js → xlsx-CvecxUOG.js} +1 -1
  134. package/dist/{zod-IPdjFU_b.js → zod-bniyeWdY.js} +1 -1
  135. package/package.json +6 -2
  136. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-C5INV6R7.js +0 -3493
  137. package/dist/ReviewFacebookCallback-ZZ0pxplM.js +0 -238
  138. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-JA0XIgqb.js +0 -1884
  139. package/dist/Settings-BFcVswDS.js +0 -179
  140. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-CCWNzg4p.js +0 -142
  141. package/dist/WhatsappBotLogs-EH9PQVn9.js +0 -372
  142. package/dist/WhatsappBotSettings-fNRFecJX.js +0 -704
  143. package/dist/campaign.fn-OVkj0QLu.js +0 -776
  144. package/dist/google-C3S8u0mT.js +0 -4
  145. package/dist/index-C-pVo6PI.js +0 -74
  146. package/dist/objectid-CgTtbB6Q.js +0 -145
  147. package/dist/rule-builder-DZOASGFD.js +0 -102
  148. package/dist/template-DdeVPIBt.js +0 -275
  149. package/dist/vue-i18n-Cby9s0nj.js +0 -2365
@@ -0,0 +1,227 @@
1
+ import { defineComponent as L, openBlock as r, createBlock as C, resolveDynamicComponent as A, unref as e, ref as B, computed as j, onMounted as M, resolveComponent as g, withCtx as m, createElementVNode as l, createElementBlock as h, createVNode as c, normalizeClass as b, createTextVNode as k, toDisplayString as u, Fragment as S, renderList as N, createCommentVNode as I } from "vue";
2
+ import { _ as q } from "./remy-icon-BhUGu2NI.js";
3
+ import { u as J } from "./campaign-BDCLKFwN.js";
4
+ import { useDialog as G } from "@feedmepos/ui-library";
5
+ import { F as H } from "./index-DkBOM8za.js";
6
+ import { _ as U } from "./lodash-TthNgH98.js";
7
+ import { C as K } from "./campaign-B6nTwt17.js";
8
+ import { J as Q } from "./JsonViewer-v8_C7l5N.js";
9
+ import { u as W } from "./vue-i18n-DEpDI-dt.js";
10
+ import { u as X } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-C86llTFR.js";
11
+ import { u as Y } from "./remy-Qz_pNsUS.js";
12
+ const Z = /* @__PURE__ */ L({
13
+ __name: "CampaignChip",
14
+ props: {
15
+ type: { type: String, required: !0 }
16
+ },
17
+ setup(f) {
18
+ const d = K[f.type];
19
+ return (p, y) => (r(), C(A(e(d).chip())));
20
+ }
21
+ }), ee = { class: "flex flex-nowrap gap-x-2 grow h-full" }, te = {
22
+ key: 0,
23
+ class: "p-8 w-1/4"
24
+ }, ne = { class: "flex flex-col grow p-24" }, oe = { class: "space-y-4" }, le = { class: "fm-typo-en-title-sm-800" }, ae = { class: "text-fm-color-typo-secondary fm-typo-en-body-md-400" }, se = { class: "grow pb-16 pr-16 pt-6 w-full max-h-[400px] overflow-y-auto" }, ie = { class: "gap-24 grid grid-cols-1 lg:grid-cols-2" }, ce = { class: "gap-4 h-[22px] inline-flex items-center justify-center min-w-min rounded-md" }, pe = { class: "fm-typo-en-title-sm-800" }, re = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, me = { class: "flex gap-4 items-end justify-end py-8" }, ue = { class: "flex items-center gap-8" }, de = /* @__PURE__ */ L({
25
+ __name: "TemplateDialog",
26
+ props: {
27
+ campaignType: {
28
+ type: String,
29
+ default: () => {
30
+ }
31
+ },
32
+ onOk: {
33
+ type: Function,
34
+ required: !0
35
+ }
36
+ },
37
+ setup(f) {
38
+ const { t } = W(), { getLocaleText: d } = X(), p = G(), y = J(), $ = Y(), s = f, n = B({
39
+ intention: null,
40
+ template: null
41
+ }), D = j(() => {
42
+ const i = (y.templates ?? []).filter(
43
+ () => !0
44
+ //t.intention && t.intention.length > 0
45
+ );
46
+ return s.campaignType ? i.filter(
47
+ (a) => {
48
+ var v, _;
49
+ return ((_ = (v = a.defaultValue) == null ? void 0 : v.campaign) == null ? void 0 : _.type) === s.campaignType;
50
+ }
51
+ ) : n.value.intention === null ? U.sampleSize(i, 7) : i.filter(
52
+ (a) => a.intention.includes(n.value.intention)
53
+ );
54
+ });
55
+ M(async () => {
56
+ await y.readTemplates();
57
+ });
58
+ function R() {
59
+ s.onOk(void 0), p.close();
60
+ }
61
+ function V() {
62
+ const i = [t("connect.templateDialog.remyPrompt")];
63
+ s.campaignType && i.push(
64
+ t("connect.templateDialog.remyCampaignType", {
65
+ type: t(`connect.templateDialog.campaignType.${s.campaignType}`)
66
+ })
67
+ ), n.value.intention && i.push(
68
+ t("connect.templateDialog.remyGoal", {
69
+ goal: t(`connect.templateDialog.intention.${n.value.intention}`)
70
+ })
71
+ ), p.close(), $.activate({
72
+ prompt: i.join(" "),
73
+ forceNewConversation: !0
74
+ });
75
+ }
76
+ function E() {
77
+ const i = n.value.template;
78
+ s.onOk(y.templates.find((a) => a._id === i)), p.close();
79
+ }
80
+ return (i, a) => {
81
+ const v = g("FmChip"), _ = g("FmListItem"), P = g("FmList"), F = g("FmCard"), x = g("FmButton"), z = g("FmSpacer");
82
+ return r(), C(F, { class: "h-[534px] max-w-6xl" }, {
83
+ default: m(() => [
84
+ l("div", ee, [
85
+ s.campaignType ? I("", !0) : (r(), h("div", te, [
86
+ c(P, null, {
87
+ default: m(() => [
88
+ c(_, {
89
+ class: b([{
90
+ "bg-fm-color-system-warning-100": e(n).intention === null
91
+ }, "rounded-sm"]),
92
+ onClick: a[0] || (a[0] = (o) => {
93
+ e(n).intention = null, e(n).template = null;
94
+ })
95
+ }, {
96
+ append: m(() => [
97
+ c(v, {
98
+ label: e(t)("connect.templateDialog.hot"),
99
+ variant: "critical"
100
+ }, null, 8, ["label"])
101
+ ]),
102
+ default: m(() => [
103
+ k(u(e(t)("connect.templateDialog.mostPopular")) + " ", 1)
104
+ ]),
105
+ _: 1
106
+ }, 8, ["class"]),
107
+ (r(!0), h(S, null, N(e(H).options, (o, w) => (r(), C(_, {
108
+ key: w,
109
+ class: b(["rounded-sm", {
110
+ "bg-fm-color-system-warning-100": e(n).intention === o
111
+ }]),
112
+ style: { padding: "8px 16px" },
113
+ onClick: (T) => {
114
+ e(n).intention = o, e(n).template = null;
115
+ }
116
+ }, {
117
+ default: m(() => [
118
+ k(u(e(t)(`connect.templateDialog.intention.${o}`)), 1)
119
+ ]),
120
+ _: 2
121
+ }, 1032, ["class", "onClick"]))), 128))
122
+ ]),
123
+ _: 1
124
+ })
125
+ ])),
126
+ l("div", ne, [
127
+ l("div", oe, [
128
+ l("div", le, u(s.campaignType ? e(t)(`connect.templateDialog.campaignType.${s.campaignType}`) : e(t)("connect.templateDialog.templateList")), 1),
129
+ l("div", ae, u(e(t)("connect.templateDialog.subtitle")), 1)
130
+ ]),
131
+ l("div", se, [
132
+ c(Q, { json: e(D) }, null, 8, ["json"]),
133
+ l("div", ie, [
134
+ (r(!0), h(S, null, N(e(D), (o, w) => (r(), C(F, {
135
+ key: w,
136
+ variant: "outlined",
137
+ class: b(["box-border cursor-pointer h-full p-16 scroll-p-4 space-y-8", {
138
+ "bg-fm-color-system-warning-100 border-fm-color-primary border-2": e(n).template === o._id.toString()
139
+ }]),
140
+ onClick: (T) => e(n).template = o._id.toString()
141
+ }, {
142
+ default: m(() => {
143
+ var T, O;
144
+ return [
145
+ l("div", ce, [
146
+ c(Z, {
147
+ type: (O = (T = o.defaultValue) == null ? void 0 : T.campaign) == null ? void 0 : O.type
148
+ }, null, 8, ["type"])
149
+ ]),
150
+ l("div", pe, u(e(d)(o.name_locale, o.name)), 1),
151
+ l("p", re, u(e(d)(o.description_locale, o.description ?? "")), 1)
152
+ ];
153
+ }),
154
+ _: 2
155
+ }, 1032, ["class", "onClick"]))), 128))
156
+ ])
157
+ ]),
158
+ l("div", me, [
159
+ c(x, {
160
+ class: "sm:w-full xs:w-full",
161
+ variant: "plain",
162
+ label: e(t)("connect.templateDialog.customCampaign"),
163
+ size: "md",
164
+ onClick: R
165
+ }, null, 8, ["label"]),
166
+ s.campaignType && ["PROMOTION", "VOUCHER", "BROADCAST", "POINT", "COIN", "CREDIT"].includes(
167
+ s.campaignType
168
+ ) ? (r(), C(x, {
169
+ key: 0,
170
+ class: "sm:w-full xs:w-full",
171
+ variant: "tertiary",
172
+ label: e(t)("connect.templateDialog.askRemy"),
173
+ size: "md",
174
+ onClick: V
175
+ }, {
176
+ default: m(() => [
177
+ l("span", ue, [
178
+ a[2] || (a[2] = l("img", {
179
+ src: q,
180
+ alt: "",
181
+ class: "w-[20px] h-[20px]"
182
+ }, null, -1)),
183
+ k(" " + u(e(t)("connect.templateDialog.askRemy")), 1)
184
+ ])
185
+ ]),
186
+ _: 1
187
+ }, 8, ["label"])) : I("", !0),
188
+ c(z, { class: "sm:hidden xs:hidden" }),
189
+ c(x, {
190
+ class: "sm:w-full xs:w-full",
191
+ variant: "tertiary",
192
+ label: e(t)("connect.templateDialog.cancel"),
193
+ size: "md",
194
+ onClick: a[1] || (a[1] = (o) => e(p).close())
195
+ }, null, 8, ["label"]),
196
+ c(x, {
197
+ class: "sm:w-full xs:w-full",
198
+ variant: "primary",
199
+ label: e(t)("connect.templateDialog.start"),
200
+ size: "md",
201
+ disabled: !e(n).template,
202
+ onClick: E
203
+ }, null, 8, ["label", "disabled"])
204
+ ])
205
+ ])
206
+ ])
207
+ ]),
208
+ _: 1
209
+ });
210
+ };
211
+ }
212
+ }), ke = (f, t) => ({
213
+ open: async (d) => {
214
+ t.open({
215
+ title: "",
216
+ dialogComponent: de,
217
+ dialogComponentProps: {
218
+ campaignType: f,
219
+ onOk: async (p) => (console.debug(p, "selected template"), await d(p))
220
+ },
221
+ overlay: !0
222
+ });
223
+ }
224
+ });
225
+ export {
226
+ ke as u
227
+ };
@@ -1,4 +1,4 @@
1
- import { e as a } from "./index-CBd91xYU.js";
1
+ import { e as a } from "./index-DJIt5tXC.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-DZrX13oF.js";
2
- import { s as u } from "./index-C43KoLej.js";
1
+ import "./index-juXxYQ_a.js";
2
+ import { s as u } from "./index-B5H4znfe.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-BiPRZRyE.js";
3
- import { R as i } from "./rule-builder-DZOASGFD.js";
4
- import { _ as E } from "./RuleGroup.vue_vue_type_script_setup_true_lang-JA0XIgqb.js";
5
- import { c as e, C as d } from "./index-Ba1t5vQv.js";
6
- import { i as n } from "./plugins-D7Xjefvk.js";
2
+ import "./index-CPi3Qwmj.js";
3
+ import { R as i } from "./index-DkBOM8za.js";
4
+ import { a as E } from "./RuleGroup.vue_vue_type_script_setup_true_lang-Vg7pRGIz.js";
5
+ import { l as e, C as d } from "./index-DCR1GFCA.js";
6
+ import { i as n } from "./plugins-CDTKQ1Pg.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,8 +1,8 @@
1
- import { u as b } from "./vue-i18n-Cby9s0nj.js";
1
+ import { u as b } from "./vue-i18n-DEpDI-dt.js";
2
2
  import { useSnackbar as h } from "@feedmepos/ui-library";
3
- import { c as k, p as I } from "./plugins-D7Xjefvk.js";
4
- import { S as o, g as c, b as M } from "./index-CBd91xYU.js";
5
- import { u as y } from "./loading-DkqEFbrR.js";
3
+ import { c as k, p as I } from "./plugins-CDTKQ1Pg.js";
4
+ import { S as o, g as c, b as M } from "./index-DJIt5tXC.js";
5
+ import { u as y } from "./loading-PoODMkQD.js";
6
6
  const l = (e) => M(`businesses/${e}/marketing-materials`), v = {
7
7
  async createMarketingMaterial(e) {
8
8
  const t = 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-BxU_5gPB.js";
3
+ import { l as E } from "./lodash-TthNgH98.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"
@@ -1,5 +1,5 @@
1
1
  import { components as p } from "@feedmepos/ui-library";
2
- import { c as f } from "./plugins-D7Xjefvk.js";
2
+ import { c as f } from "./plugins-CDTKQ1Pg.js";
3
3
  import { h as c } from "vue";
4
4
  function g(o, t = !1) {
5
5
  var a;