@feedmepos/mf-brand-app-builder 0.5.22-dev.1 → 0.5.24-dev.0

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 (100) hide show
  1. package/dist/{App-D5eO5srB.js → App-CoIlf_Tr.js} +5 -5
  2. package/dist/{AssetsSettings-D_E8q7eK.js → AssetsSettings-DhprCc4v.js} +6 -6
  3. package/dist/{BaDivider-DWZv3fqi.js → BaDivider-Cp9gfB4r.js} +2 -2
  4. package/dist/{BrandkitView-BlJhBYi6.js → BrandkitView-BHBErfbu.js} +3382 -2867
  5. package/dist/{BuilderView-Dfl1VhES.js → BuilderView-DY_Clqms.js} +427 -444
  6. package/dist/{ButtonGroup-D_HkX122.js → ButtonGroup-2ilMTPHH.js} +2 -2
  7. package/dist/{CircularProgress-h90pbjU3.js → CircularProgress-DdblYCtV.js} +4 -4
  8. package/dist/ColorPicker-RKWzhLBO.js +543 -0
  9. package/dist/{ColorPicker-I6CkNIxt.js → ColorPicker-dVFIiu94.js} +14 -14
  10. package/dist/{Icon.vue_vue_type_style_index_0_lang-CVCHCcWR.js → Icon.vue_vue_type_style_index_0_lang-BcRjQndc.js} +2 -2
  11. package/dist/{ImageUpload-FyvXrDKK.js → ImageUpload-B8OINKSx.js} +9 -9
  12. package/dist/{LinkButton-C9OU3Rcs.js → LinkButton-De-YNclu.js} +4 -4
  13. package/dist/{ListRepeater-BnVoFhhm.js → ListRepeater-rkz-trRq.js} +2 -2
  14. package/dist/{ManagementSettings-CtvF5d9C.js → ManagementSettings-Cz4HkNm1.js} +4 -4
  15. package/dist/ProjectView-ByxaVBFb.js +428 -0
  16. package/dist/{Select-BRYuMWoQ.js → Select-DQx6OfZx.js} +9 -9
  17. package/dist/{SettingsView-DHA7hXUx.js → SettingsView-uft0uKio.js} +2 -2
  18. package/dist/{StepperField-BeeZ_sl9.js → StepperField-nyaUK9ht.js} +2 -2
  19. package/dist/{Switch-8mmNQUDo.js → Switch-uc_zN-mb.js} +2 -2
  20. package/dist/{TextAlign-BOC8ekaH.js → TextAlign-BSp1Xi7F.js} +2 -2
  21. package/dist/{TextDecorators-BJC4umDR.js → TextDecorators-1C54q7us.js} +4 -4
  22. package/dist/{TextField-BiVH5rLX.js → TextField-DfBJB6vQ.js} +2 -2
  23. package/dist/{TextStyleList-CuPE80Py.js → TextStyleList-Bef3irUx.js} +3 -3
  24. package/dist/{app-CJ2VgCHp.js → app-pY4HD-TA.js} +6693 -3895
  25. package/dist/app.js +1 -1
  26. package/dist/brand-core/src/brandkit.d.ts +5 -0
  27. package/dist/brand-core/src/entity.d.ts +32 -15
  28. package/dist/client/components/src/components/BranchList.vue.d.ts +1 -1
  29. package/dist/client/components/src/components/ButtonList.vue.d.ts +1 -1
  30. package/dist/client/components/src/components/CountrySwitcher.vue.d.ts +1 -1
  31. package/dist/client/components/src/components/Homepage.vue.d.ts +3 -3
  32. package/dist/client/components/src/components/ImageCarousel.vue.d.ts +1 -1
  33. package/dist/client/components/src/components/ImageDisplay.vue.d.ts +1 -1
  34. package/dist/client/components/src/components/Member/TransactionList.vue.d.ts +1 -1
  35. package/dist/client/components/src/components/MemberCard.vue.d.ts +1 -1
  36. package/dist/client/components/src/components/NavigationBar.vue.d.ts +4 -4
  37. package/dist/client/components/src/components/OrderHistoryCard.vue.d.ts +4 -3
  38. package/dist/client/components/src/components/OrderMethod.vue.d.ts +1 -1
  39. package/dist/client/components/src/components/TextDisplay.vue.d.ts +1 -1
  40. package/dist/client/components/src/components/atoms/Button.vue.d.ts +4 -4
  41. package/dist/client/components/src/components/atoms/CircularProgress.vue.d.ts +2 -2
  42. package/dist/client/components/src/components/atoms/Container.vue.d.ts +3 -3
  43. package/dist/client/components/src/components/atoms/Divider.vue.d.ts +1 -1
  44. package/dist/client/components/src/components/atoms/Icon.vue.d.ts +1 -1
  45. package/dist/client/components/src/components/atoms/LinkSlot.vue.d.ts +4 -4
  46. package/dist/client/components/src/views/OrderDetails.vue.d.ts +1 -1
  47. package/dist/client/components/src/views/_Credit.vue.d.ts +1 -1
  48. package/dist/client/components/src/views/_MemberProfile.vue.d.ts +4 -4
  49. package/dist/client/components/src/views/_Point.vue.d.ts +1 -1
  50. package/dist/client/components/src/views/_Referral.vue.d.ts +4 -4
  51. package/dist/client/components/src/views/_ReferralTutorial.vue.d.ts +4 -4
  52. package/dist/client/merchant/src/api/business/index.d.ts +41 -1
  53. package/dist/client/merchant/src/app.d.ts +2794 -0
  54. package/dist/client/merchant/src/components/atoms/BaButtonGroup.vue.d.ts +1 -1
  55. package/dist/client/merchant/src/components/atoms/BaDivider.vue.d.ts +1 -1
  56. package/dist/client/merchant/src/components/brandkit/ColorOverrideDialog.vue.d.ts +26 -0
  57. package/dist/client/merchant/src/components/brandkit/ColorSelection.vue.d.ts +1 -1
  58. package/dist/client/merchant/src/components/editor/Editor.vue.d.ts +1 -1
  59. package/dist/client/merchant/src/components/editor/EditorFloatingToobar.vue.d.ts +1 -1
  60. package/dist/client/merchant/src/components/editor/toolbar/EditorToolbar.vue.d.ts +1 -1
  61. package/dist/client/merchant/src/components/element-sidebar/ElementSidebar.vue.d.ts +1 -1
  62. package/dist/client/merchant/src/components/inputs/ColorPicker.vue.d.ts +1 -1
  63. package/dist/client/merchant/src/components/inputs/ImageUpload.vue.d.ts +1 -1
  64. package/dist/client/merchant/src/components/inputs/TextAlign.vue.d.ts +1 -1
  65. package/dist/client/merchant/src/components/inputs/TextDecorators.vue.d.ts +1 -1
  66. package/dist/client/merchant/src/components/inputs/TextStyleList.vue.d.ts +1 -1
  67. package/dist/client/merchant/src/components/inspector/Inspector.vue.d.ts +1 -1
  68. package/dist/client/merchant/src/components/inspector/atoms/ConfigSection.vue.d.ts +3 -3
  69. package/dist/client/merchant/src/components/inspector/atoms/ConfigTab.vue.d.ts +3 -3
  70. package/dist/client/merchant/src/components/inspector/atoms/ConfigTabItem.vue.d.ts +3 -3
  71. package/dist/client/merchant/src/components/inspector/atoms/ConfigTabTitle.vue.d.ts +1 -1
  72. package/dist/client/merchant/src/components/navigation-sidebar/NavigationSidebar.vue.d.ts +1 -1
  73. package/dist/client/merchant/src/components/order-template/LayoutTemplateSection.vue.d.ts +3 -3
  74. package/dist/client/merchant/src/components/order-template/OrderTemplateEditorButton.vue.d.ts +1 -1
  75. package/dist/client/merchant/src/components/order-template/OrderTemplateEditorForm.vue.d.ts +1 -1
  76. package/dist/client/merchant/src/components/order-template/TemplateVersionHistory.vue.d.ts +18 -0
  77. package/dist/client/merchant/src/components/settings/AssetsSettings.vue.d.ts +1 -1
  78. package/dist/client/merchant/src/components/settings/ManagementSettings.vue.d.ts +1 -1
  79. package/dist/client/merchant/src/components/template/TemplatePreview.vue.d.ts +1 -1
  80. package/dist/client/merchant/src/stores/business/index.d.ts +469 -1
  81. package/dist/client/merchant/src/views/BrandkitView.vue.d.ts +1 -1
  82. package/dist/client/merchant/src/views/BuilderView.vue.d.ts +1 -1
  83. package/dist/client/merchant/src/views/ProjectView.vue.d.ts +1 -1
  84. package/dist/client/merchant/src/views/SettingsView.vue.d.ts +1 -1
  85. package/dist/dayjs.min-DnbY0e60.js +282 -0
  86. package/dist/{image-BtHlnsmY.js → image-D_Djf1PS.js} +1 -1
  87. package/dist/{index-ChMgx2Hq.js → index-Bk6TOZrx.js} +2 -2
  88. package/dist/{index-5BRydZO9.js → index-C1rSMuKA.js} +1 -1
  89. package/dist/index-C4vwWvn_.js +112 -0
  90. package/dist/index-D0LOMBBD.js +1822 -0
  91. package/dist/{main-8cObQmGm.js → main-CKhW2ogv.js} +3536 -3547
  92. package/dist/package.json +5 -4
  93. package/dist/style.css +1 -1
  94. package/dist/{v4-ANoOI1Qw.js → v4-CKwdnpQf.js} +8 -8
  95. package/dist/{vue-sonner-PX6Req0V.js → vue-sonner-CBFYmm8_.js} +129 -125
  96. package/package.json +5 -4
  97. package/dist/ColorPicker-CHzKbuCD.js +0 -543
  98. package/dist/ProjectView-Bq0vBJ3V.js +0 -705
  99. package/dist/index-BEAkOquM.js +0 -90
  100. package/dist/index-BXwbQwb-.js +0 -1736
@@ -0,0 +1,282 @@
1
+ import { g as Q, c as K } from "./_commonjsHelpers-DaMA6jEr.js";
2
+ var E = { exports: {} };
3
+ (function(V, X) {
4
+ (function(W, k) {
5
+ V.exports = k();
6
+ })(K, function() {
7
+ var W = 1e3, k = 6e4, N = 36e5, A = "millisecond", S = "second", w = "minute", O = "hour", M = "day", T = "week", m = "month", U = "quarter", v = "year", _ = "date", J = "Invalid Date", q = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, B = /\[([^\]]+)]|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, G = { 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) {
8
+ var n = ["th", "st", "nd", "rd"], t = s % 100;
9
+ return "[" + s + (n[(t - 20) % 10] || n[t] || n[0]) + "]";
10
+ } }, I = function(s, n, t) {
11
+ var r = String(s);
12
+ return !r || r.length >= n ? s : "" + Array(n + 1 - r.length).join(t) + s;
13
+ }, P = { s: I, z: function(s) {
14
+ var n = -s.utcOffset(), t = Math.abs(n), r = Math.floor(t / 60), e = t % 60;
15
+ return (n <= 0 ? "+" : "-") + I(r, 2, "0") + ":" + I(e, 2, "0");
16
+ }, m: function s(n, t) {
17
+ if (n.date() < t.date()) return -s(t, n);
18
+ var r = 12 * (t.year() - n.year()) + (t.month() - n.month()), e = n.clone().add(r, m), i = t - e < 0, u = n.clone().add(r + (i ? -1 : 1), m);
19
+ return +(-(r + (t - e) / (i ? e - u : u - e)) || 0);
20
+ }, a: function(s) {
21
+ return s < 0 ? Math.ceil(s) || 0 : Math.floor(s);
22
+ }, p: function(s) {
23
+ return { M: m, y: v, w: T, d: M, D: _, h: O, m: w, s: S, ms: A, Q: U }[s] || String(s || "").toLowerCase().replace(/s$/, "");
24
+ }, u: function(s) {
25
+ return s === void 0;
26
+ } }, x = "en", g = {};
27
+ g[x] = G;
28
+ var Z = "$isDayjsObject", F = function(s) {
29
+ return s instanceof C || !(!s || !s[Z]);
30
+ }, j = function s(n, t, r) {
31
+ var e;
32
+ if (!n) return x;
33
+ if (typeof n == "string") {
34
+ var i = n.toLowerCase();
35
+ g[i] && (e = i), t && (g[i] = t, e = i);
36
+ var u = n.split("-");
37
+ if (!e && u.length > 1) return s(u[0]);
38
+ } else {
39
+ var o = n.name;
40
+ g[o] = n, e = o;
41
+ }
42
+ return !r && e && (x = e), e || !r && x;
43
+ }, f = function(s, n) {
44
+ if (F(s)) return s.clone();
45
+ var t = typeof n == "object" ? n : {};
46
+ return t.date = s, t.args = arguments, new C(t);
47
+ }, a = P;
48
+ a.l = j, a.i = F, a.w = function(s, n) {
49
+ return f(s, { locale: n.$L, utc: n.$u, x: n.$x, $offset: n.$offset });
50
+ };
51
+ var C = function() {
52
+ function s(t) {
53
+ this.$L = j(t.locale, null, !0), this.parse(t), this.$x = this.$x || t.x || {}, this[Z] = !0;
54
+ }
55
+ var n = s.prototype;
56
+ return n.parse = function(t) {
57
+ this.$d = function(r) {
58
+ var e = r.date, i = r.utc;
59
+ if (e === null) return /* @__PURE__ */ new Date(NaN);
60
+ if (a.u(e)) return /* @__PURE__ */ new Date();
61
+ if (e instanceof Date) return new Date(e);
62
+ if (typeof e == "string" && !/Z$/i.test(e)) {
63
+ var u = e.match(q);
64
+ if (u) {
65
+ var o = u[2] - 1 || 0, c = (u[7] || "0").substring(0, 3);
66
+ return i ? new Date(Date.UTC(u[1], o, u[3] || 1, u[4] || 0, u[5] || 0, u[6] || 0, c)) : new Date(u[1], o, u[3] || 1, u[4] || 0, u[5] || 0, u[6] || 0, c);
67
+ }
68
+ }
69
+ return new Date(e);
70
+ }(t), this.init();
71
+ }, n.init = function() {
72
+ var t = this.$d;
73
+ this.$y = t.getFullYear(), this.$M = t.getMonth(), this.$D = t.getDate(), this.$W = t.getDay(), this.$H = t.getHours(), this.$m = t.getMinutes(), this.$s = t.getSeconds(), this.$ms = t.getMilliseconds();
74
+ }, n.$utils = function() {
75
+ return a;
76
+ }, n.isValid = function() {
77
+ return this.$d.toString() !== J;
78
+ }, n.isSame = function(t, r) {
79
+ var e = f(t);
80
+ return this.startOf(r) <= e && e <= this.endOf(r);
81
+ }, n.isAfter = function(t, r) {
82
+ return f(t) < this.startOf(r);
83
+ }, n.isBefore = function(t, r) {
84
+ return this.endOf(r) < f(t);
85
+ }, n.$g = function(t, r, e) {
86
+ return a.u(t) ? this[r] : this.set(e, t);
87
+ }, n.unix = function() {
88
+ return Math.floor(this.valueOf() / 1e3);
89
+ }, n.valueOf = function() {
90
+ return this.$d.getTime();
91
+ }, n.startOf = function(t, r) {
92
+ var e = this, i = !!a.u(r) || r, u = a.p(t), o = function(p, $) {
93
+ var y = a.w(e.$u ? Date.UTC(e.$y, $, p) : new Date(e.$y, $, p), e);
94
+ return i ? y : y.endOf(M);
95
+ }, c = function(p, $) {
96
+ return a.w(e.toDate()[p].apply(e.toDate("s"), (i ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice($)), e);
97
+ }, h = this.$W, d = this.$M, l = this.$D, b = "set" + (this.$u ? "UTC" : "");
98
+ switch (u) {
99
+ case v:
100
+ return i ? o(1, 0) : o(31, 11);
101
+ case m:
102
+ return i ? o(1, d) : o(0, d + 1);
103
+ case T:
104
+ var D = this.$locale().weekStart || 0, Y = (h < D ? h + 7 : h) - D;
105
+ return o(i ? l - Y : l + (6 - Y), d);
106
+ case M:
107
+ case _:
108
+ return c(b + "Hours", 0);
109
+ case O:
110
+ return c(b + "Minutes", 1);
111
+ case w:
112
+ return c(b + "Seconds", 2);
113
+ case S:
114
+ return c(b + "Milliseconds", 3);
115
+ default:
116
+ return this.clone();
117
+ }
118
+ }, n.endOf = function(t) {
119
+ return this.startOf(t, !1);
120
+ }, n.$set = function(t, r) {
121
+ var e, i = a.p(t), u = "set" + (this.$u ? "UTC" : ""), o = (e = {}, e[M] = u + "Date", e[_] = u + "Date", e[m] = u + "Month", e[v] = u + "FullYear", e[O] = u + "Hours", e[w] = u + "Minutes", e[S] = u + "Seconds", e[A] = u + "Milliseconds", e)[i], c = i === M ? this.$D + (r - this.$W) : r;
122
+ if (i === m || i === v) {
123
+ var h = this.clone().set(_, 1);
124
+ h.$d[o](c), h.init(), this.$d = h.set(_, Math.min(this.$D, h.daysInMonth())).$d;
125
+ } else o && this.$d[o](c);
126
+ return this.init(), this;
127
+ }, n.set = function(t, r) {
128
+ return this.clone().$set(t, r);
129
+ }, n.get = function(t) {
130
+ return this[a.p(t)]();
131
+ }, n.add = function(t, r) {
132
+ var e, i = this;
133
+ t = Number(t);
134
+ var u = a.p(r), o = function(d) {
135
+ var l = f(i);
136
+ return a.w(l.date(l.date() + Math.round(d * t)), i);
137
+ };
138
+ if (u === m) return this.set(m, this.$M + t);
139
+ if (u === v) return this.set(v, this.$y + t);
140
+ if (u === M) return o(1);
141
+ if (u === T) return o(7);
142
+ var c = (e = {}, e[w] = k, e[O] = N, e[S] = W, e)[u] || 1, h = this.$d.getTime() + t * c;
143
+ return a.w(h, this);
144
+ }, n.subtract = function(t, r) {
145
+ return this.add(-1 * t, r);
146
+ }, n.format = function(t) {
147
+ var r = this, e = this.$locale();
148
+ if (!this.isValid()) return e.invalidDate || J;
149
+ var i = t || "YYYY-MM-DDTHH:mm:ssZ", u = a.z(this), o = this.$H, c = this.$m, h = this.$M, d = e.weekdays, l = e.months, b = e.meridiem, D = function($, y, H, L) {
150
+ return $ && ($[y] || $(r, i)) || H[y].slice(0, L);
151
+ }, Y = function($) {
152
+ return a.s(o % 12 || 12, $, "0");
153
+ }, p = b || function($, y, H) {
154
+ var L = $ < 12 ? "AM" : "PM";
155
+ return H ? L.toLowerCase() : L;
156
+ };
157
+ return i.replace(B, function($, y) {
158
+ return y || function(H) {
159
+ switch (H) {
160
+ case "YY":
161
+ return String(r.$y).slice(-2);
162
+ case "YYYY":
163
+ return a.s(r.$y, 4, "0");
164
+ case "M":
165
+ return h + 1;
166
+ case "MM":
167
+ return a.s(h + 1, 2, "0");
168
+ case "MMM":
169
+ return D(e.monthsShort, h, l, 3);
170
+ case "MMMM":
171
+ return D(l, h);
172
+ case "D":
173
+ return r.$D;
174
+ case "DD":
175
+ return a.s(r.$D, 2, "0");
176
+ case "d":
177
+ return String(r.$W);
178
+ case "dd":
179
+ return D(e.weekdaysMin, r.$W, d, 2);
180
+ case "ddd":
181
+ return D(e.weekdaysShort, r.$W, d, 3);
182
+ case "dddd":
183
+ return d[r.$W];
184
+ case "H":
185
+ return String(o);
186
+ case "HH":
187
+ return a.s(o, 2, "0");
188
+ case "h":
189
+ return Y(1);
190
+ case "hh":
191
+ return Y(2);
192
+ case "a":
193
+ return p(o, c, !0);
194
+ case "A":
195
+ return p(o, c, !1);
196
+ case "m":
197
+ return String(c);
198
+ case "mm":
199
+ return a.s(c, 2, "0");
200
+ case "s":
201
+ return String(r.$s);
202
+ case "ss":
203
+ return a.s(r.$s, 2, "0");
204
+ case "SSS":
205
+ return a.s(r.$ms, 3, "0");
206
+ case "Z":
207
+ return u;
208
+ }
209
+ return null;
210
+ }($) || u.replace(":", "");
211
+ });
212
+ }, n.utcOffset = function() {
213
+ return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
214
+ }, n.diff = function(t, r, e) {
215
+ var i, u = this, o = a.p(r), c = f(t), h = (c.utcOffset() - this.utcOffset()) * k, d = this - c, l = function() {
216
+ return a.m(u, c);
217
+ };
218
+ switch (o) {
219
+ case v:
220
+ i = l() / 12;
221
+ break;
222
+ case m:
223
+ i = l();
224
+ break;
225
+ case U:
226
+ i = l() / 3;
227
+ break;
228
+ case T:
229
+ i = (d - h) / 6048e5;
230
+ break;
231
+ case M:
232
+ i = (d - h) / 864e5;
233
+ break;
234
+ case O:
235
+ i = d / N;
236
+ break;
237
+ case w:
238
+ i = d / k;
239
+ break;
240
+ case S:
241
+ i = d / W;
242
+ break;
243
+ default:
244
+ i = d;
245
+ }
246
+ return e ? i : a.a(i);
247
+ }, n.daysInMonth = function() {
248
+ return this.endOf(m).$D;
249
+ }, n.$locale = function() {
250
+ return g[this.$L];
251
+ }, n.locale = function(t, r) {
252
+ if (!t) return this.$L;
253
+ var e = this.clone(), i = j(t, r, !0);
254
+ return i && (e.$L = i), e;
255
+ }, n.clone = function() {
256
+ return a.w(this.$d, this);
257
+ }, n.toDate = function() {
258
+ return new Date(this.valueOf());
259
+ }, n.toJSON = function() {
260
+ return this.isValid() ? this.toISOString() : null;
261
+ }, n.toISOString = function() {
262
+ return this.$d.toISOString();
263
+ }, n.toString = function() {
264
+ return this.$d.toUTCString();
265
+ }, s;
266
+ }(), z = C.prototype;
267
+ return f.prototype = z, [["$ms", A], ["$s", S], ["$m", w], ["$H", O], ["$W", M], ["$M", m], ["$y", v], ["$D", _]].forEach(function(s) {
268
+ z[s[1]] = function(n) {
269
+ return this.$g(n, s[0], s[1]);
270
+ };
271
+ }), f.extend = function(s, n) {
272
+ return s.$i || (s(n, C, f), s.$i = !0), f;
273
+ }, f.locale = j, f.isDayjs = F, f.unix = function(s) {
274
+ return f(1e3 * s);
275
+ }, f.en = g[x], f.Ls = g, f.p = {}, f;
276
+ });
277
+ })(E);
278
+ var R = E.exports;
279
+ const et = /* @__PURE__ */ Q(R);
280
+ export {
281
+ et as d
282
+ };
@@ -1,4 +1,4 @@
1
- import { H as r, b as p } from "./index-BXwbQwb-.js";
1
+ import { H as r, a as p } from "./index-D0LOMBBD.js";
2
2
  const i = () => p().PWA_ICON_SERVICE_BACKEND;
3
3
  async function d(e, t, a) {
4
4
  const n = new FormData();
@@ -1,7 +1,7 @@
1
- import { H as d } from "./index-BXwbQwb-.js";
1
+ import { H as d } from "./index-D0LOMBBD.js";
2
2
  import { defineStore as w } from "pinia";
3
3
  import { ref as y } from "vue";
4
- import { v as I } from "./v4-ANoOI1Qw.js";
4
+ import { v as I } from "./v4-CKwdnpQf.js";
5
5
  async function g(e) {
6
6
  return (await d.Get(
7
7
  "https://api.feedmedev.vip",
@@ -1,4 +1,4 @@
1
- import { B as u } from "./index-BEAkOquM.js";
1
+ import { B as u } from "./index-C4vwWvn_.js";
2
2
  import { defineStore as a } from "pinia";
3
3
  import { ref as r } from "vue";
4
4
  const c = a("business", () => {
@@ -0,0 +1,112 @@
1
+ import { H as a, a as i } from "./index-D0LOMBBD.js";
2
+ const o = () => i().PORTAL_V2_BACKEND, d = () => i().LICENSE_BACKEND;
3
+ async function p(t) {
4
+ return (await a.Get(
5
+ "https://api.feedmedev.vip",
6
+ `/short-url/${t}`
7
+ )).data;
8
+ }
9
+ async function c(t, e, s) {
10
+ return await a.Post(
11
+ "https://api.feedmedev.vip",
12
+ "/short-url",
13
+ {
14
+ data: {
15
+ slug: t,
16
+ oldSlug: e,
17
+ type: "BUSINESS",
18
+ businessId: s
19
+ }
20
+ }
21
+ ).then((n) => n.data).catch((n) => {
22
+ var r;
23
+ throw (r = n.response) == null ? void 0 : r.data;
24
+ });
25
+ }
26
+ async function u(t) {
27
+ return (await a.Get(
28
+ "https://api.feedmedev.vip",
29
+ `/metadata/${t}/config`
30
+ )).data;
31
+ }
32
+ async function f(t, e, s) {
33
+ return (await a.Post(
34
+ "https://api.feedmedev.vip",
35
+ `/metadata/${t}/config`,
36
+ {
37
+ data: {
38
+ name: e,
39
+ backgroundColor: "#ffffff",
40
+ country: s
41
+ }
42
+ }
43
+ )).data;
44
+ }
45
+ async function m(t) {
46
+ return (await a.Get(
47
+ "https://api.feedmedev.vip",
48
+ `/metadata/${t}/brandkit`
49
+ )).data;
50
+ }
51
+ async function h(t, e) {
52
+ return (await a.Post(
53
+ "https://api.feedmedev.vip",
54
+ `/metadata/${t}/brandkit`,
55
+ {
56
+ data: e
57
+ }
58
+ )).data;
59
+ }
60
+ async function l(t, e) {
61
+ return (await a.Get(
62
+ "https://api.feedmedev.vip",
63
+ `/metadata/${t}/brandkit/template-history/${e}`
64
+ )).data;
65
+ }
66
+ async function v(t, e, s) {
67
+ return (await a.Post(
68
+ "https://api.feedmedev.vip",
69
+ `/metadata/${t}/brandkit/template-restore/${e}/${s}`,
70
+ {}
71
+ )).data;
72
+ }
73
+ async function y(t, e) {
74
+ return (await a.Delete(
75
+ "https://api.feedmedev.vip",
76
+ `/metadata/${t}/brandkit/template-history/${e}`
77
+ )).data;
78
+ }
79
+ async function $(t, e) {
80
+ return await a.Put(
81
+ o(),
82
+ `businesses/${t}/profile`,
83
+ {
84
+ data: e
85
+ }
86
+ ).catch((n) => {
87
+ var r;
88
+ throw (r = n.response) == null ? void 0 : r.data;
89
+ });
90
+ }
91
+ async function w(t) {
92
+ return await a.Get(
93
+ d(),
94
+ `api/business/${t}/feature/miniprogram`
95
+ ).then((e) => e.data).catch(() => !1);
96
+ }
97
+ const g = {
98
+ getGlobalSlug: p,
99
+ setShortUrl: c,
100
+ getBusinessMetadata: u,
101
+ setBusinessMetadata: f,
102
+ getBusinessBrandkit: m,
103
+ setBusinessBrandkit: h,
104
+ getTemplateHistory: l,
105
+ restoreTemplateVersion: v,
106
+ clearTemplateHistory: y,
107
+ updateBusinessProfile: $,
108
+ getBusinessPremiumStatus: w
109
+ };
110
+ export {
111
+ g as B
112
+ };