@feedmepos/mf-brand-app-builder 0.5.12 → 0.5.14-alpha

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 (134) hide show
  1. package/dist/App-Xo6sYLKN.js +107 -0
  2. package/dist/{AssetsSettings-BRmUNWzU.js → AssetsSettings-GYv5Lgbv.js} +86 -84
  3. package/dist/BaDivider-Cp9gfB4r.js +10 -0
  4. package/dist/BuilderView-DbmdbQY9.js +9346 -0
  5. package/dist/{ButtonGroup-B3ba45VA.js → ButtonGroup-CbW3Lnxj.js} +2 -2
  6. package/dist/{CircularProgress-h90pbjU3.js → CircularProgress-DdblYCtV.js} +4 -4
  7. package/dist/ColorPicker-CD7uePb_.js +590 -0
  8. package/dist/HomeView-3aPMgIRl.js +10 -0
  9. package/dist/{Icon.vue_vue_type_style_index_0_lang-CVCHCcWR.js → Icon.vue_vue_type_style_index_0_lang-BcRjQndc.js} +2 -2
  10. package/dist/{ImageUpload-EpMFyZdg.js → ImageUpload-DbMJq_mi.js} +14 -14
  11. package/dist/{LinkButton-DENsxaU5.js → LinkButton-PteLpFYx.js} +44 -44
  12. package/dist/{ListRepeater-DLracrtI.js → ListRepeater-QEdnv9ML.js} +2 -2
  13. package/dist/{ManagementSettings-BM5Ln-Sx.js → ManagementSettings-A6ZjMlBQ.js} +6 -6
  14. package/dist/ProjectView-BWC0s0Bv.js +509 -0
  15. package/dist/{Select-CbQFoAzb.js → Select-C2r_c4vv.js} +2 -2
  16. package/dist/{SettingsView-DFAxZPug.js → SettingsView-BUGfoZhA.js} +2 -2
  17. package/dist/{StepperField-DrHM9EDn.js → StepperField-xVvcmxNx.js} +2 -2
  18. package/dist/{Switch-8mmNQUDo.js → Switch-uc_zN-mb.js} +2 -2
  19. package/dist/{TextAlign-BOC8ekaH.js → TextAlign-BSp1Xi7F.js} +2 -2
  20. package/dist/{TextDecorators-BJC4umDR.js → TextDecorators-1C54q7us.js} +4 -4
  21. package/dist/{TextField-BiVH5rLX.js → TextField-DfBJB6vQ.js} +2 -2
  22. package/dist/{TextStyleList-CuPE80Py.js → TextStyleList-Bef3irUx.js} +3 -3
  23. package/dist/_commonjsHelpers-DaMA6jEr.js +8 -0
  24. package/dist/{app-B1o1qlxh.js → app-DVFhgbmV.js} +42 -33
  25. package/dist/app.js +1 -1
  26. package/dist/components/src/components/BranchList.vue.d.ts +1 -1
  27. package/dist/components/src/components/ButtonList.vue.d.ts +1 -1
  28. package/dist/components/src/components/CountrySwitcher.vue.d.ts +1 -1
  29. package/dist/components/src/components/Homepage.vue.d.ts +5 -3
  30. package/dist/components/src/components/ImageCarousel.vue.d.ts +1 -1
  31. package/dist/components/src/components/ImageDisplay.vue.d.ts +1 -1
  32. package/dist/components/src/components/Member/MemberAchievements.vue.d.ts +33 -0
  33. package/dist/components/src/components/Member/MemberButtonList.vue.d.ts +21 -0
  34. package/dist/components/src/components/Member/MemberCards.vue.d.ts +19 -0
  35. package/dist/components/src/components/Member/MemberSummary.vue.d.ts +24 -0
  36. package/dist/components/src/components/Member/TransactionList.vue.d.ts +5 -0
  37. package/dist/components/src/components/MemberCard.vue.d.ts +1 -1
  38. package/dist/components/src/components/NavigationBar.vue.d.ts +17 -0
  39. package/dist/components/src/components/OrderHistoryCard.vue.d.ts +1 -1
  40. package/dist/components/src/components/OrderMethod.vue.d.ts +1 -1
  41. package/dist/components/src/components/TextDisplay.vue.d.ts +1 -1
  42. package/dist/components/src/components/atoms/Button.vue.d.ts +4 -4
  43. package/dist/components/src/components/atoms/CircularProgress.vue.d.ts +1 -1
  44. package/dist/components/src/components/atoms/Container.vue.d.ts +4 -3
  45. package/dist/components/src/components/atoms/Divider.vue.d.ts +1 -1
  46. package/dist/components/src/components/atoms/Icon.vue.d.ts +1 -1
  47. package/dist/components/src/components/atoms/LinkSlot.vue.d.ts +4 -4
  48. package/dist/components/src/main.d.ts +10 -1
  49. package/dist/components/src/utils/date.d.ts +22 -0
  50. package/dist/components/src/views/OrderDetails.vue.d.ts +1 -1
  51. package/dist/components/src/views/_Credit.vue.d.ts +20 -0
  52. package/dist/components/src/views/_MemberProfile.vue.d.ts +39 -0
  53. package/dist/components/src/views/_Point.vue.d.ts +20 -0
  54. package/dist/components/src/views/_Referral.vue.d.ts +31 -0
  55. package/dist/components/src/views/_ReferralTutorial.vue.d.ts +23 -0
  56. package/dist/{image-Dw_jz8xE.js → image-BTKrdsxd.js} +12 -12
  57. package/dist/index-CVTxYyKn.js +194 -0
  58. package/dist/{index-T23clKe0.js → index-DIGmVQHT.js} +52 -52
  59. package/dist/{index-Dw3CRqw2.js → index-H0Aroxdr.js} +1 -1
  60. package/dist/index-tAs8jqUd.js +1737 -0
  61. package/dist/main-DsKVTvvP.js +7980 -0
  62. package/dist/merchant/src/api/business/index.d.ts +1 -1
  63. package/dist/merchant/src/api/template/index.d.ts +2 -2
  64. package/dist/merchant/src/app.d.ts +1 -1
  65. package/dist/merchant/src/components/atoms/BaButtonGroup.vue.d.ts +1 -1
  66. package/dist/merchant/src/components/atoms/BaDivider.vue.d.ts +1 -1
  67. package/dist/merchant/src/components/editor/Editor.vue.d.ts +1 -1
  68. package/dist/merchant/src/components/editor/EditorFloatingToobar.vue.d.ts +1 -1
  69. package/dist/merchant/src/components/editor/toolbar/EditorToolbar.vue.d.ts +1 -1
  70. package/dist/merchant/src/components/element-sidebar/ElementSidebar.vue.d.ts +1 -1
  71. package/dist/merchant/src/components/inputs/ColorPicker.vue.d.ts +2 -1
  72. package/dist/merchant/src/components/inputs/ImageUpload.vue.d.ts +1 -1
  73. package/dist/merchant/src/components/inputs/TextAlign.vue.d.ts +1 -1
  74. package/dist/merchant/src/components/inputs/TextDecorators.vue.d.ts +1 -1
  75. package/dist/merchant/src/components/inputs/TextStyleList.vue.d.ts +1 -1
  76. package/dist/merchant/src/components/inspector/Inspector.vue.d.ts +1 -1
  77. package/dist/merchant/src/components/inspector/atoms/ConfigSection.vue.d.ts +3 -3
  78. package/dist/merchant/src/components/inspector/atoms/ConfigTab.vue.d.ts +3 -3
  79. package/dist/merchant/src/components/inspector/atoms/ConfigTabItem.vue.d.ts +3 -3
  80. package/dist/merchant/src/components/inspector/atoms/ConfigTabTitle.vue.d.ts +1 -1
  81. package/dist/merchant/src/components/navigation-sidebar/NavigationSidebar.vue.d.ts +1 -1
  82. package/dist/merchant/src/components/settings/AssetsSettings.vue.d.ts +1 -1
  83. package/dist/merchant/src/components/settings/ManagementSettings.vue.d.ts +1 -1
  84. package/dist/merchant/src/composables/useNode/index.d.ts +1 -1
  85. package/dist/merchant/src/node-configs/branch-list/props.d.ts +1 -0
  86. package/dist/merchant/src/node-configs/button-list/props.d.ts +1 -0
  87. package/dist/merchant/src/node-configs/carousel/props.d.ts +1 -0
  88. package/dist/merchant/src/node-configs/container/props.d.ts +28 -0
  89. package/dist/merchant/src/node-configs/display-image/props.d.ts +1 -0
  90. package/dist/merchant/src/node-configs/display-text/props.d.ts +1 -0
  91. package/dist/merchant/src/node-configs/member-achievements/mock-data.d.ts +15 -0
  92. package/dist/merchant/src/node-configs/member-achievements/props.d.ts +40 -0
  93. package/dist/merchant/src/node-configs/member-achievements/schema.d.ts +2 -0
  94. package/dist/merchant/src/node-configs/member-button-list/props.d.ts +31 -0
  95. package/dist/merchant/src/node-configs/member-button-list/schema.d.ts +2 -0
  96. package/dist/merchant/src/node-configs/member-card/props.d.ts +1 -0
  97. package/dist/merchant/src/node-configs/member-cards/mock-data.d.ts +3 -0
  98. package/dist/merchant/src/node-configs/member-cards/props.d.ts +24 -0
  99. package/dist/merchant/src/node-configs/member-cards/schema.d.ts +2 -0
  100. package/dist/merchant/src/node-configs/member-history/mock-data.d.ts +843 -0
  101. package/dist/merchant/src/node-configs/member-history/props.d.ts +1692 -0
  102. package/dist/merchant/src/node-configs/member-history/schema.d.ts +3 -0
  103. package/dist/merchant/src/node-configs/member-profile/props.d.ts +449 -0
  104. package/dist/merchant/src/node-configs/member-profile/schema.d.ts +2 -0
  105. package/dist/merchant/src/node-configs/member-referral/props.d.ts +98 -0
  106. package/dist/merchant/src/node-configs/member-referral/schema.d.ts +2 -0
  107. package/dist/merchant/src/node-configs/member-referral-tutorial/props.d.ts +8 -0
  108. package/dist/merchant/src/node-configs/member-referral-tutorial/schema.d.ts +2 -0
  109. package/dist/merchant/src/node-configs/member-summary/mock-data.d.ts +9 -0
  110. package/dist/merchant/src/node-configs/member-summary/props.d.ts +32 -0
  111. package/dist/merchant/src/node-configs/member-summary/schema.d.ts +2 -0
  112. package/dist/merchant/src/node-configs/mock-data.d.ts +5 -1
  113. package/dist/merchant/src/node-configs/order-history-card/props.d.ts +1 -0
  114. package/dist/merchant/src/node-configs/order-method/props.d.ts +1 -0
  115. package/dist/merchant/src/node-configs/props.d.ts +9 -1
  116. package/dist/merchant/src/node-configs/schema.d.ts +9 -1
  117. package/dist/merchant/src/stores/editor/index.d.ts +1 -1
  118. package/dist/merchant/src/stores/template/index.d.ts +85 -6
  119. package/dist/merchant/src/views/BuilderView.vue.d.ts +1 -1
  120. package/dist/merchant/src/views/HomeView.vue.d.ts +1 -1
  121. package/dist/merchant/src/views/ProjectView.vue.d.ts +2 -0
  122. package/dist/merchant/src/views/SettingsView.vue.d.ts +1 -1
  123. package/dist/merchant/src/views/views.d.ts +11 -0
  124. package/dist/package.json +5 -2
  125. package/dist/style.css +1 -1
  126. package/dist/{v4-ANoOI1Qw.js → v4-CKwdnpQf.js} +8 -8
  127. package/dist/views-Dd4l-D61.js +89 -0
  128. package/package.json +5 -2
  129. package/dist/App-D-sh0my5.js +0 -99
  130. package/dist/BuilderView-DPoES6BN.js +0 -5498
  131. package/dist/ColorPicker-DAysa9fA.js +0 -22
  132. package/dist/index-BMPqWhXR.js +0 -188
  133. package/dist/index-BxQr98LR.js +0 -1729
  134. package/dist/main-CZCjdYQJ.js +0 -6726
@@ -0,0 +1,509 @@
1
+ import { defineComponent as me, ref as he, computed as pe, watch as ye, resolveComponent as Z, createElementBlock as A, openBlock as v, createElementVNode as M, Fragment as oe, renderList as ue, createVNode as B, createCommentVNode as T, normalizeClass as ve, createBlock as R, unref as re, toDisplayString as se, withCtx as X } from "vue";
2
+ import { u as $e } from "./index-CVTxYyKn.js";
3
+ import { useCoreStore as ge } from "@feedmepos/mf-common";
4
+ import { p as be } from "./views-Dd4l-D61.js";
5
+ import { useRouter as Me } from "vue-router";
6
+ import { g as le, c as de } from "./_commonjsHelpers-DaMA6jEr.js";
7
+ var ce = { exports: {} };
8
+ (function(j, P) {
9
+ (function(C, O) {
10
+ j.exports = O();
11
+ })(de, function() {
12
+ var C = 1e3, O = 6e4, L = 36e5, $ = "millisecond", D = "second", F = "minute", c = "hour", u = "day", g = "week", f = "month", I = "quarter", b = "year", k = "date", H = "Invalid Date", o = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, Y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, q = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(s) {
13
+ var n = ["th", "st", "nd", "rd"], e = s % 100;
14
+ return "[" + s + (n[(e - 20) % 10] || n[e] || n[0]) + "]";
15
+ } }, G = function(s, n, e) {
16
+ var r = String(s);
17
+ return !r || r.length >= n ? s : "" + Array(n + 1 - r.length).join(e) + s;
18
+ }, V = { s: G, z: function(s) {
19
+ var n = -s.utcOffset(), e = Math.abs(n), r = Math.floor(e / 60), t = e % 60;
20
+ return (n <= 0 ? "+" : "-") + G(r, 2, "0") + ":" + G(t, 2, "0");
21
+ }, m: function s(n, e) {
22
+ if (n.date() < e.date()) return -s(e, n);
23
+ var r = 12 * (e.year() - n.year()) + (e.month() - n.month()), t = n.clone().add(r, f), i = e - t < 0, a = n.clone().add(r + (i ? -1 : 1), f);
24
+ return +(-(r + (e - t) / (i ? t - a : a - t)) || 0);
25
+ }, a: function(s) {
26
+ return s < 0 ? Math.ceil(s) || 0 : Math.floor(s);
27
+ }, p: function(s) {
28
+ return { M: f, y: b, w: g, d: u, D: k, h: c, m: F, s: D, ms: $, Q: I }[s] || String(s || "").toLowerCase().replace(/s$/, "");
29
+ }, u: function(s) {
30
+ return s === void 0;
31
+ } }, _ = "en", x = {};
32
+ x[_] = q;
33
+ var E = "$isDayjsObject", W = function(s) {
34
+ return s instanceof te || !(!s || !s[E]);
35
+ }, ee = function s(n, e, r) {
36
+ var t;
37
+ if (!n) return _;
38
+ if (typeof n == "string") {
39
+ var i = n.toLowerCase();
40
+ x[i] && (t = i), e && (x[i] = e, t = i);
41
+ var a = n.split("-");
42
+ if (!t && a.length > 1) return s(a[0]);
43
+ } else {
44
+ var d = n.name;
45
+ x[d] = n, t = d;
46
+ }
47
+ return !r && t && (_ = t), t || !r && _;
48
+ }, h = function(s, n) {
49
+ if (W(s)) return s.clone();
50
+ var e = typeof n == "object" ? n : {};
51
+ return e.date = s, e.args = arguments, new te(e);
52
+ }, l = V;
53
+ l.l = ee, l.i = W, l.w = function(s, n) {
54
+ return h(s, { locale: n.$L, utc: n.$u, x: n.$x, $offset: n.$offset });
55
+ };
56
+ var te = function() {
57
+ function s(e) {
58
+ this.$L = ee(e.locale, null, !0), this.parse(e), this.$x = this.$x || e.x || {}, this[E] = !0;
59
+ }
60
+ var n = s.prototype;
61
+ return n.parse = function(e) {
62
+ this.$d = function(r) {
63
+ var t = r.date, i = r.utc;
64
+ if (t === null) return /* @__PURE__ */ new Date(NaN);
65
+ if (l.u(t)) return /* @__PURE__ */ new Date();
66
+ if (t instanceof Date) return new Date(t);
67
+ if (typeof t == "string" && !/Z$/i.test(t)) {
68
+ var a = t.match(o);
69
+ if (a) {
70
+ var d = a[2] - 1 || 0, m = (a[7] || "0").substring(0, 3);
71
+ return i ? new Date(Date.UTC(a[1], d, a[3] || 1, a[4] || 0, a[5] || 0, a[6] || 0, m)) : new Date(a[1], d, a[3] || 1, a[4] || 0, a[5] || 0, a[6] || 0, m);
72
+ }
73
+ }
74
+ return new Date(t);
75
+ }(e), this.init();
76
+ }, n.init = function() {
77
+ var e = this.$d;
78
+ this.$y = e.getFullYear(), this.$M = e.getMonth(), this.$D = e.getDate(), this.$W = e.getDay(), this.$H = e.getHours(), this.$m = e.getMinutes(), this.$s = e.getSeconds(), this.$ms = e.getMilliseconds();
79
+ }, n.$utils = function() {
80
+ return l;
81
+ }, n.isValid = function() {
82
+ return this.$d.toString() !== H;
83
+ }, n.isSame = function(e, r) {
84
+ var t = h(e);
85
+ return this.startOf(r) <= t && t <= this.endOf(r);
86
+ }, n.isAfter = function(e, r) {
87
+ return h(e) < this.startOf(r);
88
+ }, n.isBefore = function(e, r) {
89
+ return this.endOf(r) < h(e);
90
+ }, n.$g = function(e, r, t) {
91
+ return l.u(e) ? this[r] : this.set(t, e);
92
+ }, n.unix = function() {
93
+ return Math.floor(this.valueOf() / 1e3);
94
+ }, n.valueOf = function() {
95
+ return this.$d.getTime();
96
+ }, n.startOf = function(e, r) {
97
+ var t = this, i = !!l.u(r) || r, a = l.p(e), d = function(U, w) {
98
+ var N = l.w(t.$u ? Date.UTC(t.$y, w, U) : new Date(t.$y, w, U), t);
99
+ return i ? N : N.endOf(u);
100
+ }, m = function(U, w) {
101
+ return l.w(t.toDate()[U].apply(t.toDate("s"), (i ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(w)), t);
102
+ }, p = this.$W, y = this.$M, S = this.$D, J = "set" + (this.$u ? "UTC" : "");
103
+ switch (a) {
104
+ case b:
105
+ return i ? d(1, 0) : d(31, 11);
106
+ case f:
107
+ return i ? d(1, y) : d(0, y + 1);
108
+ case g:
109
+ var z = this.$locale().weekStart || 0, Q = (p < z ? p + 7 : p) - z;
110
+ return d(i ? S - Q : S + (6 - Q), y);
111
+ case u:
112
+ case k:
113
+ return m(J + "Hours", 0);
114
+ case c:
115
+ return m(J + "Minutes", 1);
116
+ case F:
117
+ return m(J + "Seconds", 2);
118
+ case D:
119
+ return m(J + "Milliseconds", 3);
120
+ default:
121
+ return this.clone();
122
+ }
123
+ }, n.endOf = function(e) {
124
+ return this.startOf(e, !1);
125
+ }, n.$set = function(e, r) {
126
+ var t, i = l.p(e), a = "set" + (this.$u ? "UTC" : ""), d = (t = {}, t[u] = a + "Date", t[k] = a + "Date", t[f] = a + "Month", t[b] = a + "FullYear", t[c] = a + "Hours", t[F] = a + "Minutes", t[D] = a + "Seconds", t[$] = a + "Milliseconds", t)[i], m = i === u ? this.$D + (r - this.$W) : r;
127
+ if (i === f || i === b) {
128
+ var p = this.clone().set(k, 1);
129
+ p.$d[d](m), p.init(), this.$d = p.set(k, Math.min(this.$D, p.daysInMonth())).$d;
130
+ } else d && this.$d[d](m);
131
+ return this.init(), this;
132
+ }, n.set = function(e, r) {
133
+ return this.clone().$set(e, r);
134
+ }, n.get = function(e) {
135
+ return this[l.p(e)]();
136
+ }, n.add = function(e, r) {
137
+ var t, i = this;
138
+ e = Number(e);
139
+ var a = l.p(r), d = function(y) {
140
+ var S = h(i);
141
+ return l.w(S.date(S.date() + Math.round(y * e)), i);
142
+ };
143
+ if (a === f) return this.set(f, this.$M + e);
144
+ if (a === b) return this.set(b, this.$y + e);
145
+ if (a === u) return d(1);
146
+ if (a === g) return d(7);
147
+ var m = (t = {}, t[F] = O, t[c] = L, t[D] = C, t)[a] || 1, p = this.$d.getTime() + e * m;
148
+ return l.w(p, this);
149
+ }, n.subtract = function(e, r) {
150
+ return this.add(-1 * e, r);
151
+ }, n.format = function(e) {
152
+ var r = this, t = this.$locale();
153
+ if (!this.isValid()) return t.invalidDate || H;
154
+ var i = e || "YYYY-MM-DDTHH:mm:ssZ", a = l.z(this), d = this.$H, m = this.$m, p = this.$M, y = t.weekdays, S = t.months, J = t.meridiem, z = function(w, N, K, ne) {
155
+ return w && (w[N] || w(r, i)) || K[N].slice(0, ne);
156
+ }, Q = function(w) {
157
+ return l.s(d % 12 || 12, w, "0");
158
+ }, U = J || function(w, N, K) {
159
+ var ne = w < 12 ? "AM" : "PM";
160
+ return K ? ne.toLowerCase() : ne;
161
+ };
162
+ return i.replace(Y, function(w, N) {
163
+ return N || function(K) {
164
+ switch (K) {
165
+ case "YY":
166
+ return String(r.$y).slice(-2);
167
+ case "YYYY":
168
+ return l.s(r.$y, 4, "0");
169
+ case "M":
170
+ return p + 1;
171
+ case "MM":
172
+ return l.s(p + 1, 2, "0");
173
+ case "MMM":
174
+ return z(t.monthsShort, p, S, 3);
175
+ case "MMMM":
176
+ return z(S, p);
177
+ case "D":
178
+ return r.$D;
179
+ case "DD":
180
+ return l.s(r.$D, 2, "0");
181
+ case "d":
182
+ return String(r.$W);
183
+ case "dd":
184
+ return z(t.weekdaysMin, r.$W, y, 2);
185
+ case "ddd":
186
+ return z(t.weekdaysShort, r.$W, y, 3);
187
+ case "dddd":
188
+ return y[r.$W];
189
+ case "H":
190
+ return String(d);
191
+ case "HH":
192
+ return l.s(d, 2, "0");
193
+ case "h":
194
+ return Q(1);
195
+ case "hh":
196
+ return Q(2);
197
+ case "a":
198
+ return U(d, m, !0);
199
+ case "A":
200
+ return U(d, m, !1);
201
+ case "m":
202
+ return String(m);
203
+ case "mm":
204
+ return l.s(m, 2, "0");
205
+ case "s":
206
+ return String(r.$s);
207
+ case "ss":
208
+ return l.s(r.$s, 2, "0");
209
+ case "SSS":
210
+ return l.s(r.$ms, 3, "0");
211
+ case "Z":
212
+ return a;
213
+ }
214
+ return null;
215
+ }(w) || a.replace(":", "");
216
+ });
217
+ }, n.utcOffset = function() {
218
+ return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
219
+ }, n.diff = function(e, r, t) {
220
+ var i, a = this, d = l.p(r), m = h(e), p = (m.utcOffset() - this.utcOffset()) * O, y = this - m, S = function() {
221
+ return l.m(a, m);
222
+ };
223
+ switch (d) {
224
+ case b:
225
+ i = S() / 12;
226
+ break;
227
+ case f:
228
+ i = S();
229
+ break;
230
+ case I:
231
+ i = S() / 3;
232
+ break;
233
+ case g:
234
+ i = (y - p) / 6048e5;
235
+ break;
236
+ case u:
237
+ i = (y - p) / 864e5;
238
+ break;
239
+ case c:
240
+ i = y / L;
241
+ break;
242
+ case F:
243
+ i = y / O;
244
+ break;
245
+ case D:
246
+ i = y / C;
247
+ break;
248
+ default:
249
+ i = y;
250
+ }
251
+ return t ? i : l.a(i);
252
+ }, n.daysInMonth = function() {
253
+ return this.endOf(f).$D;
254
+ }, n.$locale = function() {
255
+ return x[this.$L];
256
+ }, n.locale = function(e, r) {
257
+ if (!e) return this.$L;
258
+ var t = this.clone(), i = ee(e, r, !0);
259
+ return i && (t.$L = i), t;
260
+ }, n.clone = function() {
261
+ return l.w(this.$d, this);
262
+ }, n.toDate = function() {
263
+ return new Date(this.valueOf());
264
+ }, n.toJSON = function() {
265
+ return this.isValid() ? this.toISOString() : null;
266
+ }, n.toISOString = function() {
267
+ return this.$d.toISOString();
268
+ }, n.toString = function() {
269
+ return this.$d.toUTCString();
270
+ }, s;
271
+ }(), ae = te.prototype;
272
+ return h.prototype = ae, [["$ms", $], ["$s", D], ["$m", F], ["$H", c], ["$W", u], ["$M", f], ["$y", b], ["$D", k]].forEach(function(s) {
273
+ ae[s[1]] = function(n) {
274
+ return this.$g(n, s[0], s[1]);
275
+ };
276
+ }), h.extend = function(s, n) {
277
+ return s.$i || (s(n, te, h), s.$i = !0), h;
278
+ }, h.locale = ee, h.isDayjs = W, h.unix = function(s) {
279
+ return h(1e3 * s);
280
+ }, h.en = x[_], h.Ls = x, h.p = {}, h;
281
+ });
282
+ })(ce);
283
+ var _e = ce.exports;
284
+ const ie = /* @__PURE__ */ le(_e);
285
+ var fe = { exports: {} };
286
+ (function(j, P) {
287
+ (function(C, O) {
288
+ j.exports = O();
289
+ })(de, function() {
290
+ return function(C, O, L) {
291
+ C = C || {};
292
+ var $ = O.prototype, D = { future: "in %s", past: "%s ago", s: "a few seconds", m: "a minute", mm: "%d minutes", h: "an hour", hh: "%d hours", d: "a day", dd: "%d days", M: "a month", MM: "%d months", y: "a year", yy: "%d years" };
293
+ function F(u, g, f, I) {
294
+ return $.fromToBase(u, g, f, I);
295
+ }
296
+ L.en.relativeTime = D, $.fromToBase = function(u, g, f, I, b) {
297
+ for (var k, H, o, Y = f.$locale().relativeTime || D, q = C.thresholds || [{ l: "s", r: 44, d: "second" }, { l: "m", r: 89 }, { l: "mm", r: 44, d: "minute" }, { l: "h", r: 89 }, { l: "hh", r: 21, d: "hour" }, { l: "d", r: 35 }, { l: "dd", r: 25, d: "day" }, { l: "M", r: 45 }, { l: "MM", r: 10, d: "month" }, { l: "y", r: 17 }, { l: "yy", d: "year" }], G = q.length, V = 0; V < G; V += 1) {
298
+ var _ = q[V];
299
+ _.d && (k = I ? L(u).diff(f, _.d, !0) : f.diff(u, _.d, !0));
300
+ var x = (C.rounding || Math.round)(Math.abs(k));
301
+ if (o = k > 0, x <= _.r || !_.r) {
302
+ x <= 1 && V > 0 && (_ = q[V - 1]);
303
+ var E = Y[_.l];
304
+ b && (x = b("" + x)), H = typeof E == "string" ? E.replace("%d", x) : E(x, g, _.l, o);
305
+ break;
306
+ }
307
+ }
308
+ if (g) return H;
309
+ var W = o ? Y.future : Y.past;
310
+ return typeof W == "function" ? W(H) : W.replace("%s", H);
311
+ }, $.to = function(u, g) {
312
+ return F(u, g, this, !0);
313
+ }, $.from = function(u, g) {
314
+ return F(u, g, this);
315
+ };
316
+ var c = function(u) {
317
+ return u.$u ? L.utc() : L();
318
+ };
319
+ $.toNow = function(u) {
320
+ return this.to(c(this), u);
321
+ }, $.fromNow = function(u) {
322
+ return this.from(c(this), u);
323
+ };
324
+ };
325
+ });
326
+ })(fe);
327
+ var xe = fe.exports;
328
+ const we = /* @__PURE__ */ le(xe), De = { class: "bg-fm-color-neutral-white p-24" }, ke = { class: "flex items-center mt-16" }, Se = { class: "mt-16" }, Te = {
329
+ key: 0,
330
+ class: "fm-typo-en-body-lg-400 text-fm-color-typo-tertiary italic"
331
+ }, Ce = { class: "mt-16 flex flex-wrap items-start gap-24" }, Oe = ["onClick"], Fe = { class: "absolute top-0 left-0 flex items-center gap-4 flex-wrap w-full p-8" }, Ie = {
332
+ key: 3,
333
+ class: "fm-typo-en-body-md-600 text-fm-color-system-info-300 bg-fm-color-system-info-100 inline-flex rounded-md items-center gap-4 justify-center h-[22px] px-8"
334
+ }, Ye = {
335
+ key: 4,
336
+ class: "fm-typo-en-body-md-600 text-fm-color-secondary-halite bg-fm-color-system-error-100 inline-flex rounded-md items-center gap-4 justify-center h-[22px] px-8"
337
+ }, Ae = { class: "mt-12 flex items-start justify-between" }, Le = { class: "flex flex-col gap-4" }, He = { class: "fm-typo-en-body-md-400" }, Ne = {
338
+ key: 0,
339
+ class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary"
340
+ }, Pe = {
341
+ key: 1,
342
+ class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary"
343
+ }, Ve = {
344
+ key: 2,
345
+ class: "fm-typo-en-body-sm-400 text-fm-color-typo-tertiary italic"
346
+ }, We = { class: "w-[250px] px-4 py-8 border-1 border-fm-color-neutral-gray-100 border-opacity-10 rounded-md" }, Re = /* @__PURE__ */ me({
347
+ __name: "ProjectView",
348
+ setup(j) {
349
+ ie.extend(we);
350
+ const P = $e(), C = ge(), O = Me(), L = [
351
+ {
352
+ label: "Landing page design",
353
+ value: "default"
354
+ },
355
+ {
356
+ label: "Member features pages",
357
+ value: "member"
358
+ },
359
+ {
360
+ label: "Member referral",
361
+ value: "referral"
362
+ }
363
+ ], $ = he("default"), D = pe(
364
+ () => [
365
+ ...P.state.allTemplates.map((c) => ({
366
+ ...c,
367
+ predefined: !1,
368
+ editable: !0
369
+ })),
370
+ ...be
371
+ ].filter(
372
+ (c) => c.group == $.value || !c.group && $.value == "default"
373
+ )
374
+ );
375
+ function F(c) {
376
+ O.push({
377
+ name: "builder",
378
+ params: {
379
+ templateId: c
380
+ }
381
+ });
382
+ }
383
+ return ye(
384
+ () => C.currentBusiness.value,
385
+ async (c) => {
386
+ c && (await P.getAllTemplates(c._id), await P.getMainTemplateId(c._id));
387
+ },
388
+ { immediate: !0 }
389
+ ), (c, u) => {
390
+ const g = Z("FmTab"), f = Z("FmChip"), I = Z("FmIcon"), b = Z("FmMenuItem"), k = Z("FmMenuDivider"), H = Z("FmPopover");
391
+ return v(), A("div", De, [
392
+ u[5] || (u[5] = M("div", { class: "fm-typo-en-title-sm-600" }, "My Projects", -1)),
393
+ M("div", ke, [
394
+ (v(), A(oe, null, ue(L, (o) => B(g, {
395
+ label: o.label,
396
+ value: o.value,
397
+ "model-value": $.value,
398
+ "onUpdate:modelValue": (Y) => $.value = o.value
399
+ }, null, 8, ["label", "value", "model-value", "onUpdate:modelValue"])), 64))
400
+ ]),
401
+ M("div", Se, [
402
+ D.value.every((o) => o.predefined) ? (v(), A("div", Te, " Customization is limited or not allowed for these pre-defined pages ")) : T("", !0),
403
+ M("div", Ce, [
404
+ (v(!0), A(oe, null, ue(D.value, (o) => (v(), A("div", {
405
+ class: "flex-initial",
406
+ key: o.templateId
407
+ }, [
408
+ M("div", {
409
+ class: ve(["w-full h-[236px] relative", { "cursor-pointer": o.editable }]),
410
+ onClick: (Y) => o.editable && F(o.templateId)
411
+ }, [
412
+ u[2] || (u[2] = M("img", {
413
+ class: "fm-corner-radius-lg w-full h-full object-cover relative",
414
+ src: "https://placehold.co/270x236/png",
415
+ alt: "project"
416
+ }, null, -1)),
417
+ M("div", Fe, [
418
+ o.templateId == re(P).state.activeTemplateId ? (v(), R(f, {
419
+ key: 0,
420
+ compact: !0,
421
+ label: "Landing",
422
+ class: "text-fm-color-system-warning-300 bg-fm-color-system-warning-100"
423
+ })) : T("", !0),
424
+ o.templateId == re(P).state.activeMemberTemplateId ? (v(), R(f, {
425
+ key: 1,
426
+ compact: !0,
427
+ label: "Member landing",
428
+ class: "text-fm-color-system-warning-300 bg-fm-color-system-warning-100"
429
+ })) : T("", !0),
430
+ o.isPublished && !o.predefined ? (v(), R(f, {
431
+ key: 2,
432
+ compact: !0,
433
+ label: "Published",
434
+ class: "text-fm-color-system-success-400 bg-fm-color-system-success-100"
435
+ })) : T("", !0),
436
+ !o.editable && o.predefined ? (v(), A("div", Ie, [
437
+ B(I, {
438
+ name: "visibility",
439
+ size: "sm"
440
+ }),
441
+ u[0] || (u[0] = M("span", null, "View only", -1))
442
+ ])) : T("", !0),
443
+ o.editable && o.predefined ? (v(), A("div", Ye, [
444
+ B(I, {
445
+ name: "edit",
446
+ size: "sm"
447
+ }),
448
+ u[1] || (u[1] = M("span", null, "Limited customization", -1))
449
+ ])) : T("", !0)
450
+ ])
451
+ ], 10, Oe),
452
+ M("div", Ae, [
453
+ M("div", Le, [
454
+ M("p", He, se(o.templateAlias), 1),
455
+ o.predefined ? T("", !0) : (v(), A("p", Ne, " Edited " + se(re(ie)(o.updatedAt).fromNow(!0)) + " ago ", 1)),
456
+ o.predefined ? (v(), A("p", Pe, " Non editable pre-defined page ")) : T("", !0),
457
+ o.isPublished && !o.predefined ? (v(), A("p", Ve, " Last published: " + se(re(ie)(o.publishedAt).format("D/M/YYYY")), 1)) : T("", !0)
458
+ ]),
459
+ o.predefined ? T("", !0) : (v(), R(H, { key: 0 }, {
460
+ "popover-button": X(() => [
461
+ B(I, { name: "more_vert" })
462
+ ]),
463
+ default: X(() => [
464
+ M("div", We, [
465
+ B(b, {
466
+ label: "Rename",
467
+ icon: "edit",
468
+ onClick: (Y) => console.log("rename", o.templateAlias)
469
+ }, null, 8, ["onClick"]),
470
+ B(b, {
471
+ onClick: (Y) => console.log("delete", o.templateAlias)
472
+ }, {
473
+ label: X(() => u[3] || (u[3] = [
474
+ M("span", { class: "text-fm-color-system-error-400" }, "Delete", -1)
475
+ ])),
476
+ prepend: X(() => [
477
+ B(I, {
478
+ name: "delete",
479
+ class: "text-fm-color-system-error-400",
480
+ outline: ""
481
+ })
482
+ ]),
483
+ _: 2
484
+ }, 1032, ["onClick"]),
485
+ o.isPublished && !o.predefined ? (v(), R(k, { key: 0 })) : T("", !0),
486
+ o.isPublished && !o.predefined ? (v(), R(b, {
487
+ key: 1,
488
+ onClick: (Y) => console.log("unpublish", o.templateAlias)
489
+ }, {
490
+ label: X(() => u[4] || (u[4] = [
491
+ M("span", { class: "text-fm-color-system-error-400" }, "Unpublish", -1)
492
+ ])),
493
+ _: 2
494
+ }, 1032, ["onClick"])) : T("", !0)
495
+ ])
496
+ ]),
497
+ _: 2
498
+ }, 1024))
499
+ ])
500
+ ]))), 128))
501
+ ])
502
+ ])
503
+ ]);
504
+ };
505
+ }
506
+ });
507
+ export {
508
+ Re as default
509
+ };
@@ -1,4 +1,4 @@
1
- import { defineComponent as l, resolveComponent as m, openBlock as s, createBlock as p } from "vue";
1
+ import { defineComponent as l, resolveComponent as m, createBlock as s, openBlock as p } from "vue";
2
2
  const u = /* @__PURE__ */ l({
3
3
  __name: "Select",
4
4
  props: {
@@ -11,7 +11,7 @@ const u = /* @__PURE__ */ l({
11
11
  }
12
12
  return (e, a) => {
13
13
  const c = m("FmSelect");
14
- return s(), p(c, {
14
+ return p(), s(c, {
15
15
  class: "w-[160px]",
16
16
  items: e.context.selectItems,
17
17
  "model-value": e.context._value,
@@ -1,4 +1,4 @@
1
- import { defineComponent as m, resolveComponent as u, openBlock as f, createElementBlock as i, createElementVNode as p, createVNode as o, unref as t } from "vue";
1
+ import { defineComponent as m, resolveComponent as u, createElementBlock as f, openBlock as i, createElementVNode as p, createVNode as o, unref as t } from "vue";
2
2
  import { useRoute as c, useRouter as d, RouterView as b } from "vue-router";
3
3
  const g = { class: "h-full w-full p-24 bg-fm-color-neutral-white overflow-auto flex flex-col gap-24" }, R = /* @__PURE__ */ m({
4
4
  __name: "SettingsView",
@@ -15,7 +15,7 @@ const g = { class: "h-full w-full p-24 bg-fm-color-neutral-white overflow-auto f
15
15
  ];
16
16
  return (v, e) => {
17
17
  const a = u("FmTabs");
18
- return f(), i("div", g, [
18
+ return i(), f("div", g, [
19
19
  e[1] || (e[1] = p("h1", { class: "fm-typo-en-title-md-600 text-fm-color-typo-primary" }, "Settings", -1)),
20
20
  o(a, {
21
21
  class: "border-b border-fm-color-neutral-gray-100 w-full",
@@ -1,4 +1,4 @@
1
- import { defineComponent as l, computed as c, resolveComponent as d, openBlock as s, createBlock as u } from "vue";
1
+ import { defineComponent as l, computed as c, resolveComponent as d, createBlock as s, openBlock as u } from "vue";
2
2
  const m = /* @__PURE__ */ l({
3
3
  __name: "StepperField",
4
4
  props: {
@@ -12,7 +12,7 @@ const m = /* @__PURE__ */ l({
12
12
  const p = c(() => +e.context._value.replace(e.context.suffix, ""));
13
13
  return (t, i) => {
14
14
  const a = d("FmStepperField");
15
- return s(), u(a, {
15
+ return u(), s(a, {
16
16
  class: "max-w-[160px]",
17
17
  "model-value": p.value,
18
18
  disabled: t.context.disabled ?? !1,
@@ -1,4 +1,4 @@
1
- import { defineComponent as l, resolveComponent as p, openBlock as m, createBlock as r } from "vue";
1
+ import { defineComponent as l, resolveComponent as p, createBlock as m, openBlock as r } from "vue";
2
2
  const a = /* @__PURE__ */ l({
3
3
  __name: "Switch",
4
4
  props: {
@@ -7,7 +7,7 @@ const a = /* @__PURE__ */ l({
7
7
  setup(c) {
8
8
  return (e, o) => {
9
9
  const t = p("FmSwitch");
10
- return m(), r(t, {
10
+ return r(), m(t, {
11
11
  modelValue: e.context._value,
12
12
  "onUpdate:modelValue": o[0] || (o[0] = (n) => e.context.node.input(n))
13
13
  }, null, 8, ["modelValue"]);
@@ -1,5 +1,5 @@
1
- import { defineComponent as c, openBlock as t, createElementBlock as a, Fragment as m, renderList as i, createVNode as d, normalizeClass as p, createBlock as _, unref as f } from "vue";
2
- import { _ as g } from "./Icon.vue_vue_type_style_index_0_lang-CVCHCcWR.js";
1
+ import { defineComponent as c, createElementBlock as a, openBlock as t, Fragment as m, renderList as i, createVNode as d, normalizeClass as p, createBlock as _, unref as f } from "vue";
2
+ import { _ as g } from "./Icon.vue_vue_type_style_index_0_lang-BcRjQndc.js";
3
3
  const v = { class: "border border-fm-color-neutral-gray-300 rounded-md flex gap-16 p-4" }, x = ["onClick"], y = /* @__PURE__ */ c({
4
4
  __name: "BaButtonGroup",
5
5
  props: {
@@ -1,5 +1,5 @@
1
- import { defineComponent as d, openBlock as l, createElementBlock as c, Fragment as m, renderList as f, createElementVNode as h, createVNode as p, normalizeClass as _ } from "vue";
2
- import { _ as g } from "./Icon.vue_vue_type_style_index_0_lang-CVCHCcWR.js";
1
+ import { defineComponent as d, createElementBlock as l, openBlock as c, Fragment as m, renderList as f, createElementVNode as h, createVNode as p, normalizeClass as _ } from "vue";
2
+ import { _ as g } from "./Icon.vue_vue_type_style_index_0_lang-BcRjQndc.js";
3
3
  const x = { class: "border border-fm-color-neutral-gray-300 rounded-md flex gap-16 p-4" }, v = ["onClick"], y = /* @__PURE__ */ d({
4
4
  __name: "TextDecorators",
5
5
  props: {
@@ -32,8 +32,8 @@ const x = { class: "border border-fm-color-neutral-gray-300 rounded-md flex gap-
32
32
  });
33
33
  }
34
34
  const s = (t) => o.context._value.fontStyle.includes(t) || o.context._value.textDecorationLine.includes(t);
35
- return (t, r) => (l(), c("div", x, [
36
- (l(), c(m, null, f(i, (e) => h("button", {
35
+ return (t, r) => (c(), l("div", x, [
36
+ (c(), l(m, null, f(i, (e) => h("button", {
37
37
  class: "flex justify-center items-center",
38
38
  type: "button",
39
39
  onClick: (n) => u(e.value)
@@ -1,4 +1,4 @@
1
- import { defineComponent as c, resolveComponent as p, openBlock as a, createBlock as u } from "vue";
1
+ import { defineComponent as c, resolveComponent as p, createBlock as a, openBlock as u } from "vue";
2
2
  const r = /* @__PURE__ */ c({
3
3
  __name: "TextField",
4
4
  props: {
@@ -11,7 +11,7 @@ const r = /* @__PURE__ */ c({
11
11
  }
12
12
  return (e, m) => {
13
13
  const l = p("FmTextField");
14
- return a(), u(l, {
14
+ return u(), a(l, {
15
15
  class: "w-full",
16
16
  "model-value": e.context._value,
17
17
  "onUpdate:modelValue": t
@@ -1,4 +1,4 @@
1
- import { defineComponent as p, openBlock as l, createElementBlock as o, Fragment as s, renderList as c, createElementVNode as d, normalizeStyle as f, toDisplayString as x } from "vue";
1
+ import { defineComponent as p, createElementBlock as l, openBlock as o, Fragment as s, renderList as c, createElementVNode as d, normalizeStyle as f, toDisplayString as x } from "vue";
2
2
  const y = { class: "px-12 flex flex-col gap-12 w-full" }, m = ["onClick"], h = /* @__PURE__ */ p({
3
3
  __name: "TextStyleList",
4
4
  props: {
@@ -53,8 +53,8 @@ const y = { class: "px-12 flex flex-col gap-12 w-full" }, m = ["onClick"], h = /
53
53
  ...n
54
54
  });
55
55
  }
56
- return (n, g) => (l(), o("div", y, [
57
- (l(), o(s, null, c(r, (t) => d("button", {
56
+ return (n, g) => (o(), l("div", y, [
57
+ (o(), l(s, null, c(r, (t) => d("button", {
58
58
  class: "w-full p-8 flex items-center border border-fm-color-neutral-gray-300 rounded-md",
59
59
  type: "button",
60
60
  style: f(t.style),
@@ -0,0 +1,8 @@
1
+ var o = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
2
+ function l(e) {
3
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
4
+ }
5
+ export {
6
+ o as c,
7
+ l as g
8
+ };