@feedmepos/mf-connect 0.1.127-prod → 0.1.128-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 (154) hide show
  1. package/dist/{App-BMF6m0GU.js → App-CPSC0ccq.js} +224 -216
  2. package/dist/AuditLogs-CgrYStwa.js +2016 -0
  3. package/dist/{Bin-Dkn-CjZE.js → Bin-Cn7sCPql.js} +8 -8
  4. package/dist/{Broadcast-DqaP4ON2.js → Broadcast-bR7HAyV2.js} +22 -21
  5. package/dist/{CampaignAnalytic-2Iuxh8-x.js → CampaignAnalytic-Dnpw_Jwo.js} +97 -97
  6. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-C8MlNehK.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-HaWMLA4s.js} +9 -10
  7. package/dist/{Card-Cv9eldq8.js → Card-BE3Y0KHF.js} +23 -23
  8. package/dist/{Collections-CK-hxHpa.js → Collections-CLSp9Uah.js} +197 -185
  9. package/dist/{Credit-CDE4ACVm.js → Credit-DgMyKROt.js} +21 -20
  10. package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-CTvIDOWy.js → DateRangeChip.vue_vue_type_script_setup_true_lang-D8eCQE4D.js} +1 -1
  11. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-BB2gszsG.js +4584 -0
  12. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-CuPhm1uG.js → EffectSheet.vue_vue_type_style_index_0_lang-CXw7yS8N.js} +33 -33
  13. package/dist/{Experience-lLK_RR69.js → Experience-CCeRbvIe.js} +32 -31
  14. package/dist/{FileSaver.min-zDxJKfBO.js → FileSaver.min-D8Rw2VVN.js} +1 -1
  15. package/dist/{Game-DCdfJkil.js → Game-CYGg8vWQ.js} +19 -18
  16. package/dist/{GiftCardSetup-DfF1OpFk.js → GiftCardSetup-rzea90xr.js} +31 -31
  17. package/dist/{GoalPickerPanel.vue_vue_type_script_setup_true_lang-Dbx9bwJM.js → GoalPickerPanel.vue_vue_type_script_setup_true_lang-BFUBfL-S.js} +140 -128
  18. package/dist/{Goals-t0wbcWxG.js → Goals-BnZfK7a3.js} +4 -4
  19. package/dist/Grab-BRbn6ffm.js +301 -0
  20. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-Bur6iCYa.js → ImageInput.vue_vue_type_script_setup_true_lang-Cw2imjlQ.js} +1 -1
  21. package/dist/{Index-BUF8U-h8.js → Index-DjZi_lVg.js} +10 -10
  22. package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-kIOc-Px5.js → LocationPicker.vue_vue_type_script_setup_true_lang-B1q4NtuM.js} +1 -1
  23. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-DRmLpXsg.js → LottieAnimation.vue_vue_type_script_setup_true_lang-CUjzbMcb.js} +1 -1
  24. package/dist/{LoyaltyDashboard-8laUXBGQ.js → LoyaltyDashboard-C3TZSSQz.js} +82 -82
  25. package/dist/{MainLayout-BeuKKVNP.js → MainLayout-uNGpBpJi.js} +1 -1
  26. package/dist/{MainLayout.vue_vue_type_script_setup_true_lang-C7E3h_Zr.js → MainLayout.vue_vue_type_script_setup_true_lang-0PcswtGl.js} +3 -3
  27. package/dist/{Marketing-DZG0oIs-.js → Marketing-SXmxcw3-.js} +4 -4
  28. package/dist/{MarketingMaterialEdit--RDayaUN.js → MarketingMaterialEdit-DK0tjHpF.js} +214 -211
  29. package/dist/{Member-DeEQr2ef.js → Member-BFSwupq6.js} +7 -7
  30. package/dist/MemberDetailSheet.vue_vue_type_script_setup_true_lang-Dvcasf5O.js +1322 -0
  31. package/dist/{MemberImportHistory-DMXVl1qI.js → MemberImportHistory-z12l_IAQ.js} +7 -7
  32. package/dist/{MemberList-zqeFDkEZ.js → MemberList-DfN7ur0J.js} +103 -105
  33. package/dist/{MemberTransactions-BBQPNfFG.js → MemberTransactions-Bntt4bRR.js} +1 -1
  34. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-C_8yL5GL.js → MessageInput.vue_vue_type_script_setup_true_lang-ComtYItw.js} +12 -12
  35. package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-9r-eGARm.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-_Imnj16x.js} +1 -1
  36. package/dist/{Mission-TO8w3ucB.js → Mission-CvpeYVjB.js} +22 -21
  37. package/dist/{Overview-CPUpEzPd.js → Overview-BkaFC5La.js} +21 -21
  38. package/dist/{Overview-D6YBYVxK.js → Overview-BtTkltlY.js} +145 -144
  39. package/dist/{Point-BSq4CRcb.js → Point-CpNAFABM.js} +22 -21
  40. package/dist/{Promotion-DgPNNfk7.js → Promotion-B_vD_9UF.js} +137 -131
  41. package/dist/{Queue-CYyabVYT.js → Queue-D5jDhI0f.js} +46 -46
  42. package/dist/{Record-n7s29IZH.js → Record-EsNXzy4D.js} +9 -9
  43. package/dist/{Review-DIYulCVl.js → Review-ByMrkymf.js} +2 -2
  44. package/dist/ReviewFacebookCallback-BDl6NBkw.js +225 -0
  45. package/dist/{ReviewGoogleCallback-CnESXIH-.js → ReviewGoogleCallback-BzU-hUy5.js} +5 -5
  46. package/dist/{Reward-D_L2DgT9.js → Reward-kxAuVGDE.js} +16 -16
  47. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-Dsk2VqB8.js → RewardGroup.vue_vue_type_script_setup_true_lang-i9B1R3XP.js} +14 -14
  48. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-D3MZsh4A.js +1923 -0
  49. package/dist/{Segment-BbGE6AOZ.js → Segment-C5SJs7al.js} +304 -307
  50. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-xrdOyWX8.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-RIerABcb.js} +15 -15
  51. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-CTsORsDg.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-D8jS4gee.js} +4 -4
  52. package/dist/{Setting-B9i2ufr7.js → Setting-zmlu3QcR.js} +17 -17
  53. package/dist/{SettingAdvertisements-Cuczz1wK.js → SettingAdvertisements-DewXGZoE.js} +12 -12
  54. package/dist/Settings-5HU_uY6B.js +286 -0
  55. package/dist/{Store-CoxREXJ-.js → Store-CiTwDcgr.js} +29 -29
  56. package/dist/{StoreRewards-CzkznvA1.js → StoreRewards-DaOJxsVm.js} +15 -15
  57. package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-BtwDM2Fr.js → StoreTransactions.vue_vue_type_script_setup_true_lang-BTqxeKR4.js} +25 -25
  58. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-DlFCI1BT.js +7007 -0
  59. package/dist/{Tier-DyOlzjE0.js → Tier-lNI7GWMP.js} +2583 -688
  60. package/dist/{Title-C3__B-bw.js → Title-CDxDztnl.js} +96 -95
  61. package/dist/{Transaction-B_v-lbed.js → Transaction-CcsUvIns.js} +2 -2
  62. package/dist/{Upselling-D_5nBzIN.js → Upselling-BDirPkWX.js} +3 -3
  63. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-CE5eo992.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-hqzfBpop.js} +26 -26
  64. package/dist/{Voucher-KxXwge4O.js → Voucher-CJDo5U_P.js} +19 -19
  65. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-nbLXmJ5Q.js → VoucherEditor.vue_vue_type_script_setup_true_lang-WjsLHh_E.js} +12 -12
  66. package/dist/{WhatsappAccount-C8kinTmg.js → WhatsappAccount-CQBti7RJ.js} +6 -6
  67. package/dist/{WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-ydBfMtzM.js → WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-DVNZ774z.js} +1 -1
  68. package/dist/WhatsappBot-91lIlikm.js +882 -0
  69. package/dist/{WhatsappBotLogs-Dm0HJh_f.js → WhatsappBotLogs-PQTwT8e5.js} +66 -66
  70. package/dist/{WhatsappBotSettings-BNZcj26j.js → WhatsappBotSettings-CUES9UL-.js} +5 -5
  71. package/dist/{WhatsappLayout-BvBN7H-y.js → WhatsappLayout-pZGYJj0J.js} +3 -3
  72. package/dist/{WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-BzKwTs9R.js → WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-DAoonwsO.js} +3 -3
  73. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-BY8t6jtW.js → ZodTextField.vue_vue_type_script_setup_true_lang-HEIeZYCP.js} +2 -2
  74. package/dist/{app-uud8OgB9.js → app--pRyBODF.js} +4159 -3395
  75. package/dist/app.js +4 -3
  76. package/dist/{base.export-Bfxt84QY.js → base.export-CSdCmt-6.js} +2 -2
  77. package/dist/business-BtEfH8Mt.js +83 -0
  78. package/dist/{campaign-CWyU-r8u.js → campaign-CwQjWU63.js} +121 -94
  79. package/dist/{campaign-6WrFDF05.js → campaign-t9ubUkjB.js} +31 -25
  80. package/dist/{campaign.enum-BqekIiiN.js → campaign.enum-Damu7hgo.js} +3 -2
  81. package/dist/campaign.fn-D3_OzyyQ.js +776 -0
  82. package/dist/{collectible.enum-Liy2wH3s.js → collectible.enum-C8LbgIQ7.js} +1 -1
  83. package/dist/{collection.fn-CO-YhhUM.js → collection.fn-BV7pDqa5.js} +2 -2
  84. package/dist/{currency-kWhKZnhN.js → currency-pS0xeJA6.js} +1 -1
  85. package/dist/duplicateCampaign-19CDT2kM.js +51 -0
  86. package/dist/{effect-CjSyUbur.js → effect-B532leFF.js} +1 -1
  87. package/dist/{email-addresses-C_yrJd12.js → email-addresses-CKkT_5O5.js} +2 -2
  88. package/dist/{feature-flag-DcM82jeJ.js → feature-flag-25oDCLLB.js} +84 -84
  89. package/dist/google-BQK68wbe.js +5 -0
  90. package/dist/{helper-G8MwkrFo.js → helper-DxOj04aq.js} +1 -1
  91. package/dist/{index-3axft-Vz.js → index-B3sR1LMa.js} +10 -10
  92. package/dist/{index-ivVytFih.js → index-BCgTcZ7c.js} +609 -252
  93. package/dist/{index-BXSokNlS.js → index-BFJ2FmB4.js} +18 -18
  94. package/dist/{index-CiFPNxgn.js → index-BHnMLtU2.js} +381 -235
  95. package/dist/{index-6Ey495tl.js → index-BLRv_4gJ.js} +1 -1
  96. package/dist/index-BViMt33t.js +10767 -0
  97. package/dist/{index-Dv5Ja20d.js → index-BX6lcJDB.js} +1 -1
  98. package/dist/{index-CVVLKJj_.js → index-C6pr4oIv.js} +1315 -1243
  99. package/dist/{index-Dkud56R0.js → index-C7wVaeC1.js} +1 -1
  100. package/dist/{index-DgT4P2_R.js → index-CBYY3VEG.js} +2700 -2614
  101. package/dist/{index-sPf1Rhez.js → index-C_qmnOKQ.js} +9 -9
  102. package/dist/{index-CqvjZF-j.js → index-ClD2-18P.js} +19 -6
  103. package/dist/{index-h2p2DjKy.js → index-DBT1f1M3.js} +2 -2
  104. package/dist/{index-BNjHmUyd.js → index-DBzCfWxW.js} +2 -2
  105. package/dist/{index-Cj85mCmr.js → index-DEENB4la.js} +664 -664
  106. package/dist/{index-B3LCTMwV.js → index-DSAEs8u0.js} +68 -60
  107. package/dist/{index-L_2hhvso.js → index-DVlo0TO9.js} +23 -23
  108. package/dist/index-DiYuhtNS.js +19528 -0
  109. package/dist/{index-Ba4Q_XWF.js → index-Diw9710S.js} +4 -4
  110. package/dist/{index-CxyO5j1a.js → index-DqQ1q8sX.js} +26 -19
  111. package/dist/{index-RtamQHhy.js → index-ip2EqUEW.js} +1 -1
  112. package/dist/{index-DGrPvdRc.js → index-uCkkfjE3.js} +4 -4
  113. package/dist/{index.esm2017-DiUbRDfz.js → index.esm2017-DRrIFPLo.js} +57 -57
  114. package/dist/{loading-BdpH3z-q.js → loading--SZI7Tpo.js} +1 -1
  115. package/dist/{lodash-DcC4G06s.js → lodash-BZqvXM_P.js} +1 -1
  116. package/dist/{member-import-C99OxU-w.js → member-import-Bmt1OdRW.js} +2 -2
  117. package/dist/{membership-O5EN0QMl.js → membership-BTFpH7Mg.js} +3 -3
  118. package/dist/{money-CYS7zoiT.js → money-BVtlYyxo.js} +1 -1
  119. package/dist/{number-D_C66osx.js → number-DrOdGSrF.js} +1 -1
  120. package/dist/objectid-DdJFC6TI.js +145 -0
  121. package/dist/{onboarding-DGx34lkW.js → onboarding-BjcSBC8v.js} +25 -25
  122. package/dist/{onboardingSetup-ALOoxDHE.js → onboardingSetup-Dcv8i8qd.js} +2 -2
  123. package/dist/{plugins-CVh8eTG-.js → plugins-Iw52rJ1s.js} +3 -3
  124. package/dist/{reward-8sP3d8ie.js → reward-DF9tE7iA.js} +1 -1
  125. package/dist/{rule-BGMBiCRZ.js → rule-rCPhlgAq.js} +572 -492
  126. package/dist/style.css +1 -1
  127. package/dist/template-v1F1rvUU.js +227 -0
  128. package/dist/timezone-BxJDy-bY.js +19 -0
  129. package/dist/{transaction.fn-Dmla3R1q.js → transaction.fn-Cp3ylqFD.js} +2 -2
  130. package/dist/{trigger-CArDddXr.js → trigger-O6JvCms4.js} +9 -9
  131. package/dist/{useMarketingMaterialActions-BX5Ynq8O.js → useMarketingMaterialActions-Cnadk3AO.js} +4 -4
  132. package/dist/{usePagination-BdgLVPuo.js → usePagination-C5lSxdqt.js} +1 -1
  133. package/dist/{user-BgTKHjea.js → user-B7iv0TRE.js} +1 -1
  134. package/dist/vue-i18n-CYFvlTTS.js +2365 -0
  135. package/dist/{xlsx-WIRNQZAx.js → xlsx-DTJ6bUKL.js} +166 -166
  136. package/dist/{zod-Dh_CVWJN.js → zod-cIIx_Ng9.js} +1 -1
  137. package/package.json +7 -3
  138. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-DUJKivXA.js +0 -3638
  139. package/dist/MemberDetailSheet.vue_vue_type_script_setup_true_lang-Dmf4WtSt.js +0 -1308
  140. package/dist/ReviewFacebookCallback-D07x5BnV.js +0 -238
  141. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-BjyiiTSY.js +0 -1884
  142. package/dist/Settings-CCSXjpUC.js +0 -179
  143. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-tSfwcDBG.js +0 -142
  144. package/dist/WhatsappBot-BuD45ou8.js +0 -878
  145. package/dist/business-77FEeeil.js +0 -82
  146. package/dist/campaign.fn-Ci_av9lZ.js +0 -776
  147. package/dist/google-C3S8u0mT.js +0 -4
  148. package/dist/index-BqHB3euS.js +0 -27551
  149. package/dist/index-C_H8jFYf.js +0 -2743
  150. package/dist/objectid-Dd0NRad7.js +0 -145
  151. package/dist/rule-builder-DcPK2oqo.js +0 -102
  152. package/dist/template-Bku-aSPA.js +0 -275
  153. package/dist/timezone-DML8BuIK.js +0 -20
  154. package/dist/vue-i18n-DMEbesBm.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-t9ubUkjB.js";
4
+ import { useDialog as G } from "@feedmepos/ui-library";
5
+ import { F as H } from "./index-BCgTcZ7c.js";
6
+ import { _ as U } from "./lodash-BZqvXM_P.js";
7
+ import { C as K } from "./campaign-CwQjWU63.js";
8
+ import { J as Q } from "./JsonViewer-v8_C7l5N.js";
9
+ import { u as W } from "./vue-i18n-CYFvlTTS.js";
10
+ import { u as X } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-BB2gszsG.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
+ };
@@ -0,0 +1,19 @@
1
+ const a = {
2
+ MY: "Asia/Kuala_Lumpur",
3
+ SG: "Asia/Singapore",
4
+ JP: "Asia/Tokyo",
5
+ AE: "Asia/Dubai",
6
+ AU: "Australia/Sydney",
7
+ TH: "Asia/Bangkok",
8
+ ID: "Asia/Jakarta",
9
+ BN: "Asia/Brunei",
10
+ MO: "Asia/Macau",
11
+ MV: "Indian/Maldives",
12
+ PK: "Asia/Karachi",
13
+ VN: "Asia/Ho_Chi_Minh",
14
+ GB: "Europe/London",
15
+ MA: "Africa/Casablanca"
16
+ };
17
+ export {
18
+ a as F
19
+ };
@@ -1,5 +1,5 @@
1
- import "./index-CVVLKJj_.js";
2
- import { s as u } from "./index-Ba4Q_XWF.js";
1
+ import "./index-C6pr4oIv.js";
2
+ import { s as u } from "./index-Diw9710S.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-DgT4P2_R.js";
3
- import { R as i } from "./rule-builder-DcPK2oqo.js";
4
- import { _ as E } from "./RuleGroup.vue_vue_type_script_setup_true_lang-BjyiiTSY.js";
5
- import { c as e, C as d } from "./index-CiFPNxgn.js";
6
- import { i as n } from "./plugins-CVh8eTG-.js";
2
+ import "./index-CBYY3VEG.js";
3
+ import { R as i } from "./index-BCgTcZ7c.js";
4
+ import { a as E } from "./RuleGroup.vue_vue_type_script_setup_true_lang-D3MZsh4A.js";
5
+ import { l as e, C as d } from "./index-BHnMLtU2.js";
6
+ import { i as n } from "./plugins-Iw52rJ1s.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-DMEbesBm.js";
1
+ import { u as b } from "./vue-i18n-CYFvlTTS.js";
2
2
  import { useSnackbar as h } from "@feedmepos/ui-library";
3
- import { c as k, p as I } from "./plugins-CVh8eTG-.js";
4
- import { S as o, g as c, b as M } from "./index-3axft-Vz.js";
5
- import { u as y } from "./loading-BdpH3z-q.js";
3
+ import { c as k, p as I } from "./plugins-Iw52rJ1s.js";
4
+ import { S as o, g as c, b as M } from "./index-B3sR1LMa.js";
5
+ import { u as y } from "./loading--SZI7Tpo.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-DcC4G06s.js";
3
+ import { l as E } from "./lodash-BZqvXM_P.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-CVh8eTG-.js";
2
+ import { c as f } from "./plugins-Iw52rJ1s.js";
3
3
  import { h as c } from "vue";
4
4
  function g(o, t = !1) {
5
5
  var a;