@feedmepos/mf-connect 0.1.46-prod → 0.1.48-prod

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 (105) hide show
  1. package/dist/{Analytic--PTYdTCz.js → Analytic-DrjBaKmx.js} +113 -113
  2. package/dist/{App-CCFCux3P.js → App-eIaytGsZ.js} +632 -622
  3. package/dist/{Bin-D3mLTCYx.js → Bin-CVp0eFwl.js} +9 -9
  4. package/dist/{Broadcast-17Aiufxx.js → Broadcast-DBgBT6yz.js} +40 -40
  5. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CMVquBaq.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CugJWeBo.js} +18 -18
  6. package/dist/{Card-Bx26e5ll.js → Card-DkP6oJVn.js} +239 -239
  7. package/dist/{Collections-B_lm_p0s.js → Collections-DYb_aeTW.js} +31 -31
  8. package/dist/{Credit-Bfdh01Hf.js → Credit-WVv_PL5D.js} +74 -74
  9. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-DWNvRorl.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-Dt9c2kvf.js} +756 -753
  10. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-CkYlghNU.js → EffectSheet.vue_vue_type_style_index_0_lang-DT3y4k1C.js} +96 -96
  11. package/dist/{Experience-DScp4H4M.js → Experience-BdH44wBG.js} +41 -41
  12. package/dist/{Game-Cn2BXwaA.js → Game-C7jxRESY.js} +31 -31
  13. package/dist/ImageInput.vue_vue_type_script_setup_true_lang-D1KQpDGg.js +144 -0
  14. package/dist/{Index-BATr5dcp.js → Index-DYr1p4sh.js} +54 -54
  15. package/dist/{Marketing-B6lhSaKk.js → Marketing-Djl27fez.js} +24 -24
  16. package/dist/{Member-Cr_Ehw_n.js → Member-CWXedfTG.js} +63 -63
  17. package/dist/MemberList-C2TvGi22.js +1606 -0
  18. package/dist/MemberOverview-wL_ailso.js +58 -0
  19. package/dist/{MemberTransactions-YlC-iE41.js → MemberTransactions-BSUocGg9.js} +1 -1
  20. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-nTBRadZx.js → MessageInput.vue_vue_type_script_setup_true_lang-D8xPA6jM.js} +2287 -2221
  21. package/dist/{Mission-Bddme86f.js → Mission-BVx9Cqi5.js} +20 -20
  22. package/dist/{Overview-BGOM1IKg.js → Overview-DyXF9zfB.js} +337 -337
  23. package/dist/{Point-vcnTW6lY.js → Point-ovkgTwZO.js} +41 -41
  24. package/dist/{Promotion-DuCvytdc.js → Promotion-B0Q6GItP.js} +42 -42
  25. package/dist/{Queue-Cuw7WTP_.js → Queue-BAWG1Hh-.js} +12 -12
  26. package/dist/{Record-Dc6BPAGi.js → Record-CTp80g4A.js} +10 -10
  27. package/dist/{Reward-8MFxn8we.js → Reward-_Jow1lJ7.js} +173 -173
  28. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-8k-usg9S.js → RewardGroup.vue_vue_type_script_setup_true_lang-BV8xCejA.js} +11 -11
  29. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-DkDAuGY0.js +1763 -0
  30. package/dist/Segment-CsdJ1SjK.js +882 -0
  31. package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-B2LYvXlN.js → SelectItems.vue_vue_type_script_setup_true_lang-DH3oIm2t.js} +14 -14
  32. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-CaFLnq7P.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-DvVrjpxR.js} +11 -11
  33. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-DLAqn-0P.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-D5gV89Xk.js} +3 -3
  34. package/dist/Setting-BZRA50LO.js +1936 -0
  35. package/dist/{Store-DdBnVwnq.js → Store-CFnCN_7-.js} +238 -238
  36. package/dist/StoreRewards-B_McpBz-.js +423 -0
  37. package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-BPPoaGqc.js → StoreTransactions.vue_vue_type_script_setup_true_lang-vL0vr-Xn.js} +185 -185
  38. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-D0ae_2E5.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-C1ZlLdme.js} +1 -1
  39. package/dist/{Tier-BpQ8DXK4.js → Tier-CCYFu6kJ.js} +106 -106
  40. package/dist/{Title-D6jghz1v.js → Title-7Mg-Ml4z.js} +95 -95
  41. package/dist/{Transaction-BQWs-6G7.js → Transaction-BqZrbpZi.js} +2 -2
  42. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-C2dJuE64.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-C6ZwPUD4.js} +6 -6
  43. package/dist/{Voucher-DnL_66X2.js → Voucher-Yty_7SuS.js} +36 -36
  44. package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-Bt12t3gB.js +419 -0
  45. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-yj2c4i_u.js → ZodTextField.vue_vue_type_script_setup_true_lang-C3NHrEIl.js} +1 -1
  46. package/dist/{app-Cemiie6P.js → app-2EJP4psh.js} +31 -31
  47. package/dist/app-Dzon--6x.js +57962 -0
  48. package/dist/app.js +1 -1
  49. package/dist/{business-BTJVFnrW.js → business-BehG4fR2.js} +1 -1
  50. package/dist/{campaign-XX6bwpYj.js → campaign-BpaiTG4f.js} +10 -10
  51. package/dist/{campaign-C34w0eci.js → campaign-CAcP56Sz.js} +2 -2
  52. package/dist/{campaign.enum-CTMwHgAV.js → campaign.enum-BWjI8Hop.js} +1 -1
  53. package/dist/{campaign.fn-nJl0vZum.js → campaign.fn-PVdB1-V1.js} +123 -123
  54. package/dist/{collectible.enum-DpJV0kLI.js → collectible.enum-BYmuqayi.js} +1 -1
  55. package/dist/{collection.fn-D5beOWlp.js → collection.fn-CbH8hbWW.js} +2 -2
  56. package/dist/{dto-CCxjvwZe.js → dto-Dd3Oc4QO.js} +4 -4
  57. package/dist/{effect-B9ryfTOn.js → effect-DvEQNEl0.js} +1 -1
  58. package/dist/{email-addresses-Bn80jSud.js → email-addresses-C-9JrAi8.js} +1 -1
  59. package/dist/{export-CLB408ho.js → export-RWE9Cn-d.js} +4 -4
  60. package/dist/{helper-DgoAVTVe.js → helper-Bl6LdWED.js} +1 -1
  61. package/dist/{index-D90Ba87K.js → index-1bU9cLqV.js} +1 -1
  62. package/dist/{index-DsgbkezN.js → index-BCQMVr1J.js} +1 -1
  63. package/dist/{index-Djq2lySj.js → index-Bgnrbk5x.js} +1 -1
  64. package/dist/{index-Blmkh0Ui.js → index-Bjf5Z2QE.js} +4 -4
  65. package/dist/{index-DUtQaOO2.js → index-CFW9ogow.js} +1 -1
  66. package/dist/{index-t_4aIo1w.js → index-CfgczUMX.js} +2 -2
  67. package/dist/{index-FMcRNPk_.js → index-CzCqc7ph.js} +1 -1
  68. package/dist/{index-B9wdSOIQ.js → index-DX1X6Owa.js} +1 -1
  69. package/dist/{index-KYo_FgI8.js → index-DZN5WWgq.js} +3 -3
  70. package/dist/{index-B2BKFdEy.js → index-DhUvELhc.js} +1023 -1023
  71. package/dist/{index-DCrV9spQ.js → index-DpoNuVc-.js} +6 -6
  72. package/dist/{index-JY8MjiBK.js → index-G_XSbrXB.js} +3 -3
  73. package/dist/{index-bkL81TwC.js → index-VVy4GPzJ.js} +1 -1
  74. package/dist/{index-eiHOH5QM.js → index-wOExBjGo.js} +1 -1
  75. package/dist/{index.esm2017-toVKAoKi.js → index.esm2017-DfgZFSqe.js} +1 -1
  76. package/dist/{loading-vrEcUlJa.js → loading-qlqqYGF3.js} +1 -1
  77. package/dist/{membership-ChiyKtoA.js → membership-Bh_1iu5v.js} +3 -3
  78. package/dist/{moment-BWErdI6_.js → moment-D7p2TMB-.js} +6 -1
  79. package/dist/{money-tOAuywfS.js → money-DvTB_Fek.js} +1 -1
  80. package/dist/{number-DiXSJR50.js → number-DJQ3gi1P.js} +1 -1
  81. package/dist/objectid-BKU0cEuv.js +145 -0
  82. package/dist/{plugins-p8ID0wqZ.js → plugins-DJpBrPbQ.js} +2 -2
  83. package/dist/{reward-Bo4HsVNH.js → reward-DZ4KlN9B.js} +1 -1
  84. package/dist/{rule-LDThYbT7.js → rule-DV0yCGlq.js} +4 -4
  85. package/dist/rule-builder-D6ihVPNO.js +93 -0
  86. package/dist/{template-C6cnCLah.js → template-ElP-JIFL.js} +63 -63
  87. package/dist/timezone-FaHjut_D.js +1150 -0
  88. package/dist/{trigger-ZyJEZVxL.js → trigger-D8wnJVTA.js} +4 -4
  89. package/dist/usePagination-Ds-cuHop.js +223 -0
  90. package/dist/{user-WDNaXiRu.js → user-NWV9KppR.js} +1 -1
  91. package/dist/{vue-i18n-BWI3POch.js → vue-i18n-CkbS-IDD.js} +157 -157
  92. package/dist/{xlsx-JDV04zZH.js → xlsx-CdQE5RZi.js} +226 -226
  93. package/package.json +5 -4
  94. package/dist/ImageInput.vue_vue_type_script_setup_true_lang-ByhTB9Ie.js +0 -144
  95. package/dist/MemberList-B5ogB2E6.js +0 -1606
  96. package/dist/MemberOverview-C2n9oJZh.js +0 -58
  97. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-DRCwMmo5.js +0 -1752
  98. package/dist/Segment-BJm5XtlX.js +0 -882
  99. package/dist/Setting-CUyfrLYA.js +0 -1936
  100. package/dist/StoreRewards-B_yzVh4Z.js +0 -423
  101. package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-naUCARDO.js +0 -419
  102. package/dist/app-Cwax62X-.js +0 -33357
  103. package/dist/objectid-C856JGM4.js +0 -145
  104. package/dist/rule-builder-7iBcFApT.js +0 -89
  105. package/dist/usePagination-JoYaROkV.js +0 -223
@@ -0,0 +1,93 @@
1
+ import { l as u } from "./index-CfgczUMX.js";
2
+ function a(c, t) {
3
+ let e = "", s = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
4
+ const r = s.length;
5
+ for (let o = 0; o < c; o++)
6
+ e += s.charAt(Math.floor(Math.random() * r));
7
+ return e;
8
+ }
9
+ function l(c) {
10
+ return !c.property && "rules" in c;
11
+ }
12
+ function y(c) {
13
+ return "property" in c && !!c.property;
14
+ }
15
+ class n {
16
+ static scaffoldGroup(t) {
17
+ return {
18
+ name: t ?? `g_${a(4)}`,
19
+ rules: {},
20
+ logic: ""
21
+ };
22
+ }
23
+ static scaffoldEntry(t) {
24
+ return {
25
+ name: `r_${a(4)}`,
26
+ property: t ?? "",
27
+ conditions: {},
28
+ negated: !1
29
+ };
30
+ }
31
+ static constructEntry(t, e, s, r) {
32
+ return {
33
+ name: r ?? `e_${a(4)}`,
34
+ property: t,
35
+ conditions: {
36
+ [e]: s
37
+ },
38
+ negated: !1
39
+ };
40
+ }
41
+ static getLogic(t) {
42
+ return (t.logic ?? "").includes("||") ? "||" : "&&";
43
+ }
44
+ static constructLogic(t, e) {
45
+ const s = e ?? n.getLogic(t);
46
+ return Object.entries(t.rules).map(([r, o]) => l(o) ? r : `${o.negated ? "!" : ""}${r}`).join(` ${s} `);
47
+ }
48
+ static setRuleToGroup(t, e, s) {
49
+ let r = u.cloneDeep(t);
50
+ Object.keys(r.rules).length === 0 && (r = n.scaffoldGroup(r.name));
51
+ const o = 10;
52
+ if (Object.keys(r.rules).length + (Array.isArray(e) ? e.length : 1) > o)
53
+ throw new Error(`Maximum of ${o} rules allowed per group`);
54
+ return Array.isArray(e) ? e.forEach((i) => {
55
+ r.rules[i.name] = i;
56
+ }) : r.rules[e.name] = e, r.logic = n.constructLogic(r, s), r;
57
+ }
58
+ static removeEntry(t, e, s) {
59
+ const r = u.cloneDeep(t);
60
+ return delete r.rules[e], r.logic = n.constructLogic(r, s), r;
61
+ }
62
+ static constructRule(t) {
63
+ switch (t.type) {
64
+ case "timeframe": {
65
+ const e = t.property, s = n.scaffoldGroup("timeframe"), r = [];
66
+ return (t.start || t.end) && r.push(
67
+ n.constructEntry(e, "_isBetween", {
68
+ start: t.start || void 0,
69
+ end: t.end || void 0
70
+ })
71
+ ), n.setRuleToGroup(s, r, "&&");
72
+ }
73
+ default:
74
+ throw Error("invalid config type");
75
+ }
76
+ }
77
+ static getRules(t) {
78
+ return t && "rules" in t ? Object.values(t.rules) : [];
79
+ }
80
+ static simplify(t) {
81
+ const [e] = Object.entries(t.conditions);
82
+ return e[0], {
83
+ property: t.property,
84
+ operator: e[0],
85
+ equator: e[1]
86
+ };
87
+ }
88
+ }
89
+ export {
90
+ n as R,
91
+ y as a,
92
+ l as i
93
+ };
@@ -1,11 +1,11 @@
1
- import { defineComponent as L, openBlock as r, createBlock as C, resolveDynamicComponent as D, unref as e, ref as E, computed as I, onMounted as j, resolveComponent as m, withCtx as d, createElementVNode as s, createElementBlock as h, createVNode as a, normalizeClass as w, createTextVNode as T, Fragment as S, renderList as N, toDisplayString as g, createCommentVNode as M } from "vue";
2
- import { u as P } from "./campaign-C34w0eci.js";
1
+ import { defineComponent as L, openBlock as r, createBlock as C, resolveDynamicComponent as D, unref as e, ref as E, computed as I, onMounted as j, resolveComponent as c, withCtx as d, createElementVNode as l, createElementBlock as w, createVNode as i, normalizeClass as h, createTextVNode as T, Fragment as S, renderList as N, toDisplayString as g, createCommentVNode as M } from "vue";
2
+ import { u as P } from "./campaign-CAcP56Sz.js";
3
3
  import { useDialog as q } from "@feedmepos/ui-library";
4
- import { F as J } from "./index-DCrV9spQ.js";
5
- import { C as A } from "./collection.fn-D5beOWlp.js";
4
+ import { F as J } from "./index-DpoNuVc-.js";
5
+ import { C as A } from "./collection.fn-CbH8hbWW.js";
6
6
  import { s as V } from "./index-CuvNtC_M.js";
7
7
  import { _ as G } from "./lodash-B5I3zXaY.js";
8
- import { C as H } from "./campaign-XX6bwpYj.js";
8
+ import { C as H } from "./campaign-BpaiTG4f.js";
9
9
  import { J as U } from "./JsonViewer-v8_C7l5N.js";
10
10
  const K = /* @__PURE__ */ L({
11
11
  __name: "CampaignChip",
@@ -13,13 +13,13 @@ const K = /* @__PURE__ */ L({
13
13
  type: { type: String, required: !0 }
14
14
  },
15
15
  setup(u) {
16
- const i = H[u.type];
17
- return (n, t) => (r(), C(D(e(i).chip())));
16
+ const a = H[u.type];
17
+ return (o, t) => (r(), C(D(e(a).chip())));
18
18
  }
19
19
  }), Q = { class: "flex flex-nowrap gap-x-2 grow h-full" }, R = {
20
20
  key: 0,
21
21
  class: "p-8 w-1/4"
22
- }, W = { class: "flex flex-col grow p-24" }, X = { class: "space-y-4" }, Y = { class: "fm-typo-en-title-sm-800" }, Z = /* @__PURE__ */ s("div", { class: "text-fm-color-typo-secondary fm-typo-en-body-md-400" }, " Get started faster with templates that flex with your business. ", -1), ee = { class: "grow pb-16 pr-16 pt-6 w-full max-h-[400px] overflow-y-auto" }, te = { class: "gap-24 grid grid-cols-1 lg:grid-cols-2" }, ne = { class: "gap-4 h-[22px] inline-flex items-center justify-center min-w-min rounded-md" }, oe = { class: "fm-typo-en-title-sm-800" }, se = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, le = { class: "flex gap-4 items-end justify-end py-8" }, ae = /* @__PURE__ */ L({
22
+ }, W = { class: "flex flex-col grow p-24" }, X = { class: "space-y-4" }, Y = { class: "fm-typo-en-title-sm-800" }, Z = { class: "grow pb-16 pr-16 pt-6 w-full max-h-[400px] overflow-y-auto" }, ee = { class: "gap-24 grid grid-cols-1 lg:grid-cols-2" }, te = { class: "gap-4 h-[22px] inline-flex items-center justify-center min-w-min rounded-md" }, ne = { class: "fm-typo-en-title-sm-800" }, oe = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, se = { class: "flex gap-4 items-end justify-end py-8" }, le = /* @__PURE__ */ L({
23
23
  __name: "TemplateDialog",
24
24
  props: {
25
25
  campaignType: {
@@ -33,72 +33,72 @@ const K = /* @__PURE__ */ L({
33
33
  }
34
34
  },
35
35
  setup(u) {
36
- const p = q(), i = P(), n = u, t = E({
36
+ const p = q(), a = P(), o = u, t = E({
37
37
  intention: null,
38
38
  template: null
39
39
  }), b = I(() => {
40
- const c = (i.templates ?? []).filter(
40
+ const m = (a.templates ?? []).filter(
41
41
  () => !0
42
42
  //t.intention && t.intention.length > 0
43
43
  );
44
- return n.campaignType ? c.filter(
45
- (l) => {
46
- var _, f;
47
- return ((f = (_ = l.defaultValue) == null ? void 0 : _.campaign) == null ? void 0 : f.type) === n.campaignType;
44
+ return o.campaignType ? m.filter(
45
+ (n) => {
46
+ var y, f;
47
+ return ((f = (y = n.defaultValue) == null ? void 0 : y.campaign) == null ? void 0 : f.type) === o.campaignType;
48
48
  }
49
- ) : t.value.intention === null ? G.sampleSize(c, 7) : c.filter(
50
- (l) => l.intention.includes(t.value.intention)
49
+ ) : t.value.intention === null ? G.sampleSize(m, 7) : m.filter(
50
+ (n) => n.intention.includes(t.value.intention)
51
51
  );
52
52
  });
53
53
  j(async () => {
54
- await i.readTemplates();
54
+ await a.readTemplates();
55
55
  });
56
56
  function O() {
57
- n.onOk(void 0), p.close();
57
+ o.onOk(void 0), p.close();
58
58
  }
59
59
  function $() {
60
- const c = t.value.template;
61
- n.onOk(i.templates.find((l) => l._id === c)), p.close();
60
+ const m = t.value.template;
61
+ o.onOk(a.templates.find((n) => n._id === m)), p.close();
62
62
  }
63
- return (c, l) => {
64
- const _ = m("FmChip"), f = m("FmListItem"), z = m("FmList"), k = m("FmCard"), v = m("FmButton"), B = m("FmSpacer");
63
+ return (m, n) => {
64
+ const y = c("FmChip"), f = c("FmListItem"), z = c("FmList"), k = c("FmCard"), v = c("FmButton"), B = c("FmSpacer");
65
65
  return r(), C(k, { class: "h-[534px] max-w-6xl" }, {
66
66
  default: d(() => [
67
- s("div", Q, [
68
- n.campaignType ? M("", !0) : (r(), h("div", R, [
69
- a(z, null, {
67
+ l("div", Q, [
68
+ o.campaignType ? M("", !0) : (r(), w("div", R, [
69
+ i(z, null, {
70
70
  default: d(() => [
71
- a(f, {
72
- class: w([{
71
+ i(f, {
72
+ class: h([{
73
73
  "bg-fm-color-system-warning-100": e(t).intention === null
74
74
  }, "rounded-sm"]),
75
- onClick: l[0] || (l[0] = (o) => {
75
+ onClick: n[0] || (n[0] = (s) => {
76
76
  e(t).intention = null, e(t).template = null;
77
77
  })
78
78
  }, {
79
79
  append: d(() => [
80
- a(_, {
80
+ i(y, {
81
81
  label: "Hot",
82
82
  variant: "critical"
83
83
  })
84
84
  ]),
85
85
  default: d(() => [
86
- T(" Most popular ")
86
+ n[2] || (n[2] = T(" Most popular ", -1))
87
87
  ]),
88
88
  _: 1
89
89
  }, 8, ["class"]),
90
- (r(!0), h(S, null, N(e(J).options, (o, x) => (r(), C(f, {
90
+ (r(!0), w(S, null, N(e(J).options, (s, x) => (r(), C(f, {
91
91
  key: x,
92
- class: w(["rounded-sm", {
93
- "bg-fm-color-system-warning-100": e(t).intention === o
92
+ class: h(["rounded-sm", {
93
+ "bg-fm-color-system-warning-100": e(t).intention === s
94
94
  }]),
95
95
  style: { padding: "8px 16px" },
96
- onClick: (y) => {
97
- e(t).intention = o, e(t).template = null;
96
+ onClick: (_) => {
97
+ e(t).intention = s, e(t).template = null;
98
98
  }
99
99
  }, {
100
100
  default: d(() => [
101
- T(g(e(V)(o)), 1)
101
+ T(g(e(V)(s)), 1)
102
102
  ]),
103
103
  _: 2
104
104
  }, 1032, ["class", "onClick"]))), 128))
@@ -106,57 +106,57 @@ const K = /* @__PURE__ */ L({
106
106
  _: 1
107
107
  })
108
108
  ])),
109
- s("div", W, [
110
- s("div", X, [
111
- s("div", Y, g(n.campaignType ? e(V)(
112
- `${e(A).formattedType(n.campaignType)} campaign`
109
+ l("div", W, [
110
+ l("div", X, [
111
+ l("div", Y, g(o.campaignType ? e(V)(
112
+ `${e(A).formattedType(o.campaignType)} campaign`
113
113
  ) : "Template list"), 1),
114
- Z
114
+ n[3] || (n[3] = l("div", { class: "text-fm-color-typo-secondary fm-typo-en-body-md-400" }, " Get started faster with templates that flex with your business. ", -1))
115
115
  ]),
116
- s("div", ee, [
117
- a(U, { json: e(b) }, null, 8, ["json"]),
118
- s("div", te, [
119
- (r(!0), h(S, null, N(e(b), (o, x) => (r(), C(k, {
116
+ l("div", Z, [
117
+ i(U, { json: e(b) }, null, 8, ["json"]),
118
+ l("div", ee, [
119
+ (r(!0), w(S, null, N(e(b), (s, x) => (r(), C(k, {
120
120
  key: x,
121
121
  variant: "outlined",
122
- class: w(["box-border cursor-pointer h-full p-16 scroll-p-4 space-y-8", {
123
- "bg-fm-color-system-warning-100 border-fm-color-primary border-2": e(t).template === o._id.toString()
122
+ class: h(["box-border cursor-pointer h-full p-16 scroll-p-4 space-y-8", {
123
+ "bg-fm-color-system-warning-100 border-fm-color-primary border-2": e(t).template === s._id.toString()
124
124
  }]),
125
- onClick: (y) => e(t).template = o._id.toString()
125
+ onClick: (_) => e(t).template = s._id.toString()
126
126
  }, {
127
127
  default: d(() => {
128
- var y, F;
128
+ var _, F;
129
129
  return [
130
- s("div", ne, [
131
- a(K, {
132
- type: (F = (y = o.defaultValue) == null ? void 0 : y.campaign) == null ? void 0 : F.type
130
+ l("div", te, [
131
+ i(K, {
132
+ type: (F = (_ = s.defaultValue) == null ? void 0 : _.campaign) == null ? void 0 : F.type
133
133
  }, null, 8, ["type"])
134
134
  ]),
135
- s("div", oe, g(o.name), 1),
136
- s("p", se, g(o.description), 1)
135
+ l("div", ne, g(s.name), 1),
136
+ l("p", oe, g(s.description), 1)
137
137
  ];
138
138
  }),
139
139
  _: 2
140
140
  }, 1032, ["class", "onClick"]))), 128))
141
141
  ])
142
142
  ]),
143
- s("div", le, [
144
- a(v, {
143
+ l("div", se, [
144
+ i(v, {
145
145
  class: "sm:w-full xs:w-full",
146
146
  variant: "plain",
147
147
  label: "Custom Campaign",
148
148
  size: "md",
149
149
  onClick: O
150
150
  }),
151
- a(B, { class: "sm:hidden xs:hidden" }),
152
- a(v, {
151
+ i(B, { class: "sm:hidden xs:hidden" }),
152
+ i(v, {
153
153
  class: "sm:w-full xs:w-full",
154
154
  variant: "tertiary",
155
155
  label: "Cancel",
156
156
  size: "md",
157
- onClick: l[1] || (l[1] = (o) => e(p).close())
157
+ onClick: n[1] || (n[1] = (s) => e(p).close())
158
158
  }),
159
- a(v, {
159
+ i(v, {
160
160
  class: "sm:w-full xs:w-full",
161
161
  variant: "primary",
162
162
  label: "Start",
@@ -173,13 +173,13 @@ const K = /* @__PURE__ */ L({
173
173
  };
174
174
  }
175
175
  }), ye = (u, p) => ({
176
- open: async (i) => {
176
+ open: async (a) => {
177
177
  p.open({
178
178
  title: "",
179
- dialogComponent: ae,
179
+ dialogComponent: le,
180
180
  dialogComponentProps: {
181
181
  campaignType: u,
182
- onOk: async (n) => (console.debug(n, "selected template"), await i(n))
182
+ onOk: async (o) => (console.debug(o, "selected template"), await a(o))
183
183
  },
184
184
  overlay: !0
185
185
  });