@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,23 @@
1
+ type __VLS_Props = {
2
+ explanations?: {
3
+ label: string;
4
+ }[];
5
+ data: {
6
+ tableData: string[][];
7
+ };
8
+ };
9
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
10
+ back: () => any;
11
+ tnc: () => any;
12
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
13
+ onBack?: (() => any) | undefined;
14
+ onTnc?: (() => any) | undefined;
15
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
16
+ default?: ((props: {}) => any) | undefined;
17
+ }>;
18
+ export default _default;
19
+ type __VLS_WithSlots<T, S> = T & {
20
+ new (): {
21
+ $slots: S;
22
+ };
23
+ };
@@ -1,8 +1,8 @@
1
- import { H as r } from "./index-BxQr98LR.js";
2
- async function p(e, t, a) {
1
+ import { H as r } from "./index-tAs8jqUd.js";
2
+ async function o(e, t, a) {
3
3
  const n = new FormData();
4
4
  return n.append("file", a), (await r.Put(
5
- "https://api.feedme.vip",
5
+ "http://localhost:8787",
6
6
  `/image/${e}/${t}`,
7
7
  {
8
8
  headers: {
@@ -12,30 +12,30 @@ async function p(e, t, a) {
12
12
  }
13
13
  )).data;
14
14
  }
15
- async function i(e, t) {
15
+ async function s(e, t) {
16
16
  return (await r.Delete(
17
- "https://api.feedme.vip",
17
+ "http://localhost:8787",
18
18
  `/image/${e}/${t}`
19
19
  )).data;
20
20
  }
21
- async function s(e, t) {
21
+ async function p(e, t) {
22
22
  const a = new FormData();
23
- return a.append("file", t), a.append("businessId", e), (await r.Put("https://pwa-icon-service.feedmeapi.com", "", {
23
+ return a.append("file", t), a.append("businessId", e), (await r.Put("https://pwa-icon-service.feedmeapidev.com", "", {
24
24
  headers: {
25
25
  "Content-Type": "multipart/form-data"
26
26
  },
27
27
  data: a
28
28
  })).data;
29
29
  }
30
- const o = {
31
- uploadImage: p,
32
- deleteImage: i,
33
- uploadAppIcon: s
30
+ const m = {
31
+ uploadImage: o,
32
+ deleteImage: s,
33
+ uploadAppIcon: p
34
34
  };
35
35
  function c(e) {
36
36
  return e.replace("images.feedme-dev.workers.dev", "image.feedmedev.vip").replace("image.feedmedev.cc", "image.feedmedev.vip");
37
37
  }
38
38
  export {
39
- o as I,
39
+ m as I,
40
40
  c as r
41
41
  };
@@ -0,0 +1,194 @@
1
+ import { H as i } from "./index-tAs8jqUd.js";
2
+ import { defineStore as w } from "pinia";
3
+ import { ref as y } from "vue";
4
+ import { v as I } from "./v4-CKwdnpQf.js";
5
+ async function g(e) {
6
+ return (await i.Get(
7
+ "http://localhost:8787",
8
+ `/template/${e}`
9
+ )).data;
10
+ }
11
+ async function A(e, l, s) {
12
+ return (await i.Get(
13
+ "http://localhost:8787",
14
+ `/template/${e}/${l}/${s}`
15
+ )).data;
16
+ }
17
+ async function P(e, l, s, m) {
18
+ return (await i.Put(
19
+ "http://localhost:8787",
20
+ `/template/${e}/${l}/${s.templateId}`,
21
+ {
22
+ data: {
23
+ schema: m,
24
+ alias: `${s.templateAlias}`,
25
+ group: s.group || "default"
26
+ }
27
+ }
28
+ )).data;
29
+ }
30
+ async function M(e, l, s) {
31
+ return (await i.Put(
32
+ "http://localhost:8787",
33
+ `/template/${e}/active${s ? `/${s}` : ""}`,
34
+ {
35
+ data: {
36
+ templateId: l
37
+ }
38
+ }
39
+ )).data;
40
+ }
41
+ async function U(e, l) {
42
+ return (await i.Get(
43
+ "http://localhost:8787",
44
+ `/template/${e}/active${l ? `/${l}` : ""}`
45
+ )).data;
46
+ }
47
+ async function b(e, l, s) {
48
+ return await i.Head(
49
+ "http://localhost:8787",
50
+ `/template/${e}/${l}/${s}`
51
+ ).then((u) => u.status === 200).catch(() => !1);
52
+ }
53
+ async function B(e, l, s) {
54
+ return (await i.Post(
55
+ "http://localhost:8787",
56
+ `/template/${e}/${l}/rename`,
57
+ {
58
+ data: {
59
+ newAlias: s
60
+ }
61
+ }
62
+ )).data;
63
+ }
64
+ async function x(e, l, s) {
65
+ return (await i.Delete(
66
+ "http://localhost:8787",
67
+ `/template/${e}/${l}/${s}`
68
+ )).data;
69
+ }
70
+ const p = {
71
+ getAllTemplates: g,
72
+ getTemplateById: A,
73
+ uploadTemplate: P,
74
+ setMainPageTemplateId: M,
75
+ getMainTemplateId: U,
76
+ renameTemplate: B,
77
+ deleteTemplateById: x,
78
+ headTemplateById: b
79
+ }, W = w("template", () => {
80
+ const e = y({
81
+ allTemplates: [],
82
+ selectedTemplate: null,
83
+ activeTemplateId: "",
84
+ activeMemberTemplateId: ""
85
+ });
86
+ async function l(t) {
87
+ const a = await p.getAllTemplates(t).catch(
88
+ () => []
89
+ );
90
+ e.value.allTemplates = a;
91
+ }
92
+ async function s(t, a) {
93
+ e.value.selectedTemplate && (await p.uploadTemplate(
94
+ t,
95
+ "active",
96
+ e.value.selectedTemplate,
97
+ a.map((n) => ({
98
+ ...n,
99
+ props: {
100
+ ...n.props,
101
+ data: void 0
102
+ }
103
+ }))
104
+ ), e.value.selectedTemplate.isPublished = !0);
105
+ }
106
+ async function m(t) {
107
+ e.value.activeTemplateId = await p.getMainTemplateId(t), e.value.activeMemberTemplateId = await p.getMainTemplateId(
108
+ t,
109
+ "member"
110
+ );
111
+ }
112
+ function u(t) {
113
+ e.value.selectedTemplate = e.value.allTemplates.find((a) => a.templateId === t) ?? null;
114
+ }
115
+ async function o(t, a) {
116
+ e.value.selectedTemplate && await p.uploadTemplate(
117
+ t,
118
+ "drafts",
119
+ e.value.selectedTemplate,
120
+ a
121
+ );
122
+ }
123
+ async function T(t, a) {
124
+ p.setMainPageTemplateId(
125
+ t,
126
+ e.value.selectedTemplate.templateId,
127
+ a
128
+ ).then(() => {
129
+ e.value.activeTemplateId = e.value.selectedTemplate.templateId;
130
+ });
131
+ }
132
+ function f(t = {}) {
133
+ let a = "Untitled", n = 2;
134
+ e.value.allTemplates.forEach((c) => {
135
+ if (!c.templateAlias.startsWith("Untitled")) return;
136
+ const d = c.templateAlias.split(" ");
137
+ d.length === 1 && d[0] === "Untitled" ? a = "Untitled 2" : d.length === 2 && d[0] === "Untitled" && !isNaN(+d[1]) && (c.templateAlias.startsWith(`Untitled ${n}`) && (n += 1), a = `Untitled ${n}`);
138
+ });
139
+ const r = {
140
+ templateAlias: t.name ?? a,
141
+ templateId: t.id ?? I(),
142
+ isPublished: !1,
143
+ predefined: t.predefined,
144
+ group: t.group
145
+ };
146
+ e.value.allTemplates.push(r), e.value.selectedTemplate = r;
147
+ }
148
+ async function v(t, a, n) {
149
+ await p.renameTemplate(t, a, n).then(() => {
150
+ var r;
151
+ e.value.allTemplates = e.value.allTemplates.map((c) => c.templateId === a ? {
152
+ ...c,
153
+ templateAlias: n,
154
+ templateId: a
155
+ } : c), ((r = e.value.selectedTemplate) == null ? void 0 : r.templateId) === a && (e.value.selectedTemplate.templateAlias = n);
156
+ });
157
+ }
158
+ async function h(t, a) {
159
+ await Promise.all([
160
+ p.deleteTemplateById(t, "drafts", a),
161
+ p.deleteTemplateById(t, "active", a)
162
+ ]).then(() => {
163
+ e.value.allTemplates = e.value.allTemplates.filter(
164
+ (n) => n.templateId !== a
165
+ );
166
+ });
167
+ }
168
+ async function $(t) {
169
+ await p.deleteTemplateById(
170
+ t,
171
+ "active",
172
+ e.value.selectedTemplate.templateId
173
+ ).then(() => {
174
+ e.value.selectedTemplate.isPublished = !1;
175
+ });
176
+ }
177
+ return {
178
+ state: e,
179
+ getAllTemplates: l,
180
+ publishTemplate: s,
181
+ getMainTemplateId: m,
182
+ setSelectedTemplate: u,
183
+ saveTemplate: o,
184
+ setMainPageTemplate: T,
185
+ addNewTemplate: f,
186
+ renameTemplate: v,
187
+ deleteTemplate: h,
188
+ unpublishTemplate: $
189
+ };
190
+ });
191
+ export {
192
+ p as T,
193
+ W as u
194
+ };
@@ -1,5 +1,5 @@
1
- import { defineComponent as bt, useAttrs as Qt, ref as p, computed as g, watchEffect as F, nextTick as Xt, watch as Ft, openBlock as d, createElementBlock as h, unref as N, Fragment as j, renderList as mt, mergeProps as pt, createBlock as G, normalizeClass as D, normalizeStyle as ht, withCtx as U, renderSlot as E, createVNode as W, onMounted as Rt, onBeforeUnmount as Zt, resolveDynamicComponent as tt, createCommentVNode as _, createElementVNode as O, normalizeProps as Vt, createTextVNode as Ut, toDisplayString as ct } from "vue";
2
- import { H as K, a as te } from "./index-BxQr98LR.js";
1
+ import { defineComponent as bt, useAttrs as Qt, ref as p, computed as g, createElementBlock as h, watchEffect as F, nextTick as Xt, watch as Ft, openBlock as d, unref as N, Fragment as j, renderList as mt, mergeProps as pt, createBlock as G, normalizeStyle as ht, normalizeClass as D, withCtx as U, renderSlot as E, createVNode as W, onMounted as Rt, onBeforeUnmount as Zt, createCommentVNode as _, resolveDynamicComponent as tt, createElementVNode as O, normalizeProps as Vt, createTextVNode as Ut, toDisplayString as ct } from "vue";
2
+ import { H as K, a as te } from "./index-tAs8jqUd.js";
3
3
  var ee = Object.defineProperty, ae = (s, a, t) => a in s ? ee(s, a, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[a] = t, k = (s, a, t) => ae(s, typeof a != "symbol" ? a + "" : a, t);
4
4
  function oe(s) {
5
5
  if (typeof document > "u") return;
@@ -19,14 +19,14 @@ class se {
19
19
  this.publish(a), this.toasts = [...this.toasts, a];
20
20
  }), k(this, "create", (a) => {
21
21
  var t;
22
- const { message: n, ...r } = a, y = typeof a.id == "number" || a.id && ((t = a.id) == null ? void 0 : t.length) > 0 ? a.id : yt++, T = this.toasts.find((v) => v.id === y), z = a.dismissible === void 0 ? !0 : a.dismissible;
23
- return T ? this.toasts = this.toasts.map((v) => v.id === y ? (this.publish({ ...v, ...a, id: y, title: n }), {
24
- ...v,
22
+ const { message: n, ...r } = a, y = typeof a.id == "number" || a.id && ((t = a.id) == null ? void 0 : t.length) > 0 ? a.id : yt++, T = this.toasts.find((f) => f.id === y), z = a.dismissible === void 0 ? !0 : a.dismissible;
23
+ return T ? this.toasts = this.toasts.map((f) => f.id === y ? (this.publish({ ...f, ...a, id: y, title: n }), {
24
+ ...f,
25
25
  ...a,
26
26
  id: y,
27
27
  dismissible: z,
28
28
  title: n
29
- }) : v) : this.addToast({ title: n, ...r, dismissible: z, id: y }), y;
29
+ }) : f) : this.addToast({ title: n, ...r, dismissible: z, id: y }), y;
30
30
  }), k(this, "dismiss", (a) => (a || this.toasts.forEach((t) => {
31
31
  this.subscribers.forEach(
32
32
  (n) => n({ id: t.id, dismiss: !0 })
@@ -47,35 +47,35 @@ class se {
47
47
  const z = r.then(async (c) => {
48
48
  if (T = ["resolve", c], re(c) && !c.ok) {
49
49
  y = !1;
50
- const f = typeof t.error == "function" ? await t.error(
50
+ const v = typeof t.error == "function" ? await t.error(
51
51
  `HTTP error! status: ${c.status}`
52
52
  ) : t.error, b = typeof t.description == "function" ? (
53
53
  // @ts-expect-error
54
54
  await t.description(`HTTP error! status: ${c.status}`)
55
55
  ) : t.description;
56
- this.create({ id: n, type: "error", message: f, description: b });
56
+ this.create({ id: n, type: "error", message: v, description: b });
57
57
  } else if (t.success !== void 0) {
58
58
  y = !1;
59
- const f = typeof t.success == "function" ? await t.success(c) : t.success, b = typeof t.description == "function" ? await t.description(c) : t.description;
60
- this.create({ id: n, type: "success", message: f, description: b });
59
+ const v = typeof t.success == "function" ? await t.success(c) : t.success, b = typeof t.description == "function" ? await t.description(c) : t.description;
60
+ this.create({ id: n, type: "success", message: v, description: b });
61
61
  }
62
62
  }).catch(async (c) => {
63
63
  if (T = ["reject", c], t.error !== void 0) {
64
64
  y = !1;
65
- const f = typeof t.error == "function" ? await t.error(c) : t.error, b = typeof t.description == "function" ? await t.description(
65
+ const v = typeof t.error == "function" ? await t.error(c) : t.error, b = typeof t.description == "function" ? await t.description(
66
66
  c
67
67
  ) : t.description;
68
- this.create({ id: n, type: "error", message: f, description: b });
68
+ this.create({ id: n, type: "error", message: v, description: b });
69
69
  }
70
70
  }).finally(() => {
71
71
  var c;
72
72
  y && (this.dismiss(n), n = void 0), (c = t.finally) == null || c.call(t);
73
- }), v = () => new Promise(
74
- (c, f) => z.then(
75
- () => T[0] === "reject" ? f(T[1]) : c(T[1])
76
- ).catch(f)
73
+ }), f = () => new Promise(
74
+ (c, v) => z.then(
75
+ () => T[0] === "reject" ? v(T[1]) : c(T[1])
76
+ ).catch(v)
77
77
  );
78
- return typeof n != "string" && typeof n != "number" ? { unwrap: v } : Object.assign(n, { unwrap: v });
78
+ return typeof n != "string" && typeof n != "number" ? { unwrap: f } : Object.assign(n, { unwrap: f });
79
79
  }), k(this, "custom", (a, t) => {
80
80
  const n = (t == null ? void 0 : t.id) || yt++;
81
81
  return this.publish({ component: a, id: n, ...t }), n;
@@ -123,7 +123,7 @@ function de() {
123
123
  isDocumentHidden: s
124
124
  };
125
125
  }
126
- const ce = ["aria-live", "data-rich-colors", "data-styled", "data-mounted", "data-promise", "data-removed", "data-visible", "data-y-position", "data-x-position", "data-index", "data-front", "data-swiping", "data-dismissible", "data-type", "data-invert", "data-swipe-out", "data-expanded"], ue = ["aria-label", "data-disabled"], Wt = 4e3, pe = 20, he = 200, ve = /* @__PURE__ */ bt({
126
+ const ce = ["aria-live", "data-rich-colors", "data-styled", "data-mounted", "data-promise", "data-removed", "data-visible", "data-y-position", "data-x-position", "data-index", "data-front", "data-swiping", "data-dismissible", "data-type", "data-invert", "data-swipe-out", "data-expanded"], ue = ["aria-label", "data-disabled"], Wt = 4e3, pe = 20, he = 200, fe = /* @__PURE__ */ bt({
127
127
  __name: "Toast",
128
128
  props: {
129
129
  toast: {},
@@ -155,9 +155,9 @@ const ce = ["aria-live", "data-rich-colors", "data-styled", "data-mounted", "dat
155
155
  },
156
156
  emits: ["update:heights", "removeToast"],
157
157
  setup(s, { emit: a }) {
158
- const t = s, n = a, r = p(!1), y = p(!1), T = p(!1), z = p(!1), v = p(!1), c = p(0), f = p(0), b = p(
158
+ const t = s, n = a, r = p(!1), y = p(!1), T = p(!1), z = p(!1), f = p(!1), c = p(0), v = p(0), b = p(
159
159
  t.toast.duration || t.duration || Wt
160
- ), I = p(null), B = p(null), vt = g(() => t.index === 0), ft = g(() => t.index + 1 <= t.visibleToasts), S = g(() => t.toast.type), L = g(() => t.toast.dismissible !== !1), gt = g(() => t.toast.class || ""), o = g(() => t.descriptionClass || ""), i = t.toast.style || {}, l = g(
160
+ ), I = p(null), B = p(null), ft = g(() => t.index === 0), vt = g(() => t.index + 1 <= t.visibleToasts), S = g(() => t.toast.type), L = g(() => t.toast.dismissible !== !1), gt = g(() => t.toast.class || ""), o = g(() => t.descriptionClass || ""), i = t.toast.style || {}, l = g(
161
161
  () => t.heights.findIndex((e) => e.toastId === t.toast.id) || 0
162
162
  ), w = g(() => t.toast.closeButton ?? t.closeButton);
163
163
  g(
@@ -171,7 +171,7 @@ const ce = ["aria-live", "data-rich-colors", "data-styled", "data-mounted", "dat
171
171
  const e = B.value, u = e == null ? void 0 : e.style.height;
172
172
  e.style.height = "auto";
173
173
  const x = e.getBoundingClientRect().height;
174
- e.style.height = u, f.value = x;
174
+ e.style.height = u, v.value = x;
175
175
  let C;
176
176
  t.heights.find(
177
177
  (m) => m.toastId === t.toast.id
@@ -212,7 +212,7 @@ const ce = ["aria-live", "data-rich-colors", "data-styled", "data-mounted", "dat
212
212
  ((e = B.value) == null ? void 0 : e.style.getPropertyValue("--swipe-amount").replace("px", "")) || 0
213
213
  ), lt = (/* @__PURE__ */ new Date()).getTime() - ((u = I.value) == null ? void 0 : u.getTime()), dt = Math.abs(M) / lt;
214
214
  if (Math.abs(M) >= pe || dt > 0.11) {
215
- c.value = Y.value, (C = (x = t.toast).onDismiss) == null || C.call(x, t.toast), V(), z.value = !0, v.value = !1;
215
+ c.value = Y.value, (C = (x = t.toast).onDismiss) == null || C.call(x, t.toast), V(), z.value = !0, f.value = !1;
216
216
  return;
217
217
  }
218
218
  (m = B.value) == null || m.style.setProperty("--swipe-amount", "0px"), T.value = !1;
@@ -221,7 +221,7 @@ const ce = ["aria-live", "data-rich-colors", "data-styled", "data-mounted", "dat
221
221
  var u, x;
222
222
  if (!H.value || !L.value) return;
223
223
  const C = e.clientY - H.value.y, m = ((u = window.getSelection()) == null ? void 0 : u.toString().length) > 0, M = J.value === "top" ? Math.min(0, C) : Math.max(0, C);
224
- Math.abs(M) > 0 && (v.value = !0), !m && ((x = B.value) == null || x.style.setProperty("--swipe-amount", `${M}px`));
224
+ Math.abs(M) > 0 && (f.value = !0), !m && ((x = B.value) == null || x.style.setProperty("--swipe-amount", `${M}px`));
225
225
  }
226
226
  return F((e) => {
227
227
  if (t.toast.promise && S.value === "loading" || t.toast.duration === 1 / 0 || t.toast.type === "loading")
@@ -253,7 +253,7 @@ const ce = ["aria-live", "data-rich-colors", "data-styled", "data-mounted", "dat
253
253
  ), Rt(() => {
254
254
  if (r.value = !0, B.value) {
255
255
  const e = B.value.getBoundingClientRect().height;
256
- f.value = e;
256
+ v.value = e;
257
257
  const u = [
258
258
  { toastId: t.toast.id, height: e, position: t.toast.position },
259
259
  ...t.heights
@@ -294,11 +294,11 @@ const ce = ["aria-live", "data-rich-colors", "data-styled", "data-mounted", "dat
294
294
  "data-mounted": r.value,
295
295
  "data-promise": !!e.toast.promise,
296
296
  "data-removed": y.value,
297
- "data-visible": ft.value,
297
+ "data-visible": vt.value,
298
298
  "data-y-position": J.value,
299
299
  "data-x-position": at.value,
300
300
  "data-index": e.index,
301
- "data-front": vt.value,
301
+ "data-front": ft.value,
302
302
  "data-swiping": T.value,
303
303
  "data-dismissible": L.value,
304
304
  "data-type": S.value,
@@ -310,7 +310,7 @@ const ce = ["aria-live", "data-rich-colors", "data-styled", "data-mounted", "dat
310
310
  "--toasts-before": e.index,
311
311
  "--z-index": e.toasts.length - e.index,
312
312
  "--offset": `${y.value ? c.value : Y.value}px`,
313
- "--initial-height": e.expandByDefault ? "auto" : `${f.value}px`,
313
+ "--initial-height": e.expandByDefault ? "auto" : `${v.value}px`,
314
314
  ...e.style,
315
315
  ...N(i)
316
316
  }),
@@ -399,7 +399,7 @@ const ce = ["aria-live", "data-rich-colors", "data-styled", "data-mounted", "dat
399
399
  for (const [n, r] of a)
400
400
  t[n] = r;
401
401
  return t;
402
- }, fe = {}, ge = {
402
+ }, ve = {}, ge = {
403
403
  xmlns: "http://www.w3.org/2000/svg",
404
404
  width: "12",
405
405
  height: "12",
@@ -426,7 +426,7 @@ function me(s, a) {
426
426
  }, null, -1)
427
427
  ]));
428
428
  }
429
- const ye = /* @__PURE__ */ et(fe, [["render", me]]), be = ["data-visible"], we = { class: "sonner-spinner" }, xe = /* @__PURE__ */ bt({
429
+ const ye = /* @__PURE__ */ et(ve, [["render", me]]), be = ["data-visible"], we = { class: "sonner-spinner" }, xe = /* @__PURE__ */ bt({
430
430
  __name: "Loader",
431
431
  props: {
432
432
  visible: { type: Boolean }
@@ -550,10 +550,10 @@ const ea = /* @__PURE__ */ bt({
550
550
  )), T = g(() => {
551
551
  const o = r.value.filter((i) => i.position).map((i) => i.position);
552
552
  return o.length > 0 ? Array.from(new Set([a.position].concat(o))) : [a.position];
553
- }), z = p([]), v = p(!1), c = p(!1), f = p(
553
+ }), z = p([]), f = p(!1), c = p(!1), v = p(
554
554
  a.theme !== "system" ? a.theme : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"
555
- ), b = p(null), I = p(null), B = p(!1), vt = a.hotkey.join("+").replace(/Key/g, "").replace(/Digit/g, "");
556
- function ft(o) {
555
+ ), b = p(null), I = p(null), B = p(!1), ft = a.hotkey.join("+").replace(/Key/g, "").replace(/Digit/g, "");
556
+ function vt(o) {
557
557
  var i;
558
558
  (i = r.value.find((l) => l.id === o.id)) != null && i.delete || $.dismiss(o.id), r.value = r.value.filter(({ id: l }) => l !== o.id);
559
559
  }
@@ -591,19 +591,19 @@ const ea = /* @__PURE__ */ bt({
591
591
  () => a.theme,
592
592
  (o) => {
593
593
  if (o !== "system") {
594
- f.value = o;
594
+ v.value = o;
595
595
  return;
596
596
  }
597
- if (o === "system" && (window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? f.value = "dark" : f.value = "light"), typeof window > "u") return;
597
+ if (o === "system" && (window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? v.value = "dark" : v.value = "light"), typeof window > "u") return;
598
598
  const i = window.matchMedia("(prefers-color-scheme: dark)");
599
599
  try {
600
600
  i.addEventListener("change", ({ matches: l }) => {
601
- l ? f.value = "dark" : f.value = "light";
601
+ l ? v.value = "dark" : v.value = "light";
602
602
  });
603
603
  } catch {
604
604
  i.addListener(({ matches: l }) => {
605
605
  try {
606
- l ? f.value = "dark" : f.value = "light";
606
+ l ? v.value = "dark" : v.value = "light";
607
607
  } catch (w) {
608
608
  console.error(w);
609
609
  }
@@ -613,21 +613,21 @@ const ea = /* @__PURE__ */ bt({
613
613
  ), F(() => {
614
614
  b.value && I.value && (I.value.focus({ preventScroll: !0 }), I.value = null, B.value = !1);
615
615
  }), F(() => {
616
- r.value.length <= 1 && (v.value = !1);
616
+ r.value.length <= 1 && (f.value = !1);
617
617
  }), F((o) => {
618
618
  function i(l) {
619
619
  const w = a.hotkey.every(
620
620
  (H) => l[H] || l.code === H
621
621
  ), P = Array.isArray(b.value) ? b.value[0] : b.value;
622
- w && (v.value = !0, P == null || P.focus());
622
+ w && (f.value = !0, P == null || P.focus());
623
623
  const A = document.activeElement === b.value || (P == null ? void 0 : P.contains(document.activeElement));
624
- l.code === "Escape" && A && (v.value = !1);
624
+ l.code === "Escape" && A && (f.value = !1);
625
625
  }
626
626
  Ve && (document.addEventListener("keydown", i), o(() => {
627
627
  document.removeEventListener("keydown", i);
628
628
  }));
629
629
  }), (o, i) => (d(), h("section", {
630
- "aria-label": `${o.containerAriaLabel} ${N(vt)}`,
630
+ "aria-label": `${o.containerAriaLabel} ${N(ft)}`,
631
631
  tabIndex: -1,
632
632
  "aria-live": "polite",
633
633
  "aria-relevant": "additions text",
@@ -648,7 +648,7 @@ const ea = /* @__PURE__ */ bt({
648
648
  "data-rich-colors": o.richColors,
649
649
  "data-y-position": l.split("-")[0],
650
650
  "data-x-position": l.split("-")[1],
651
- "data-lifted": v.value && r.value.length > 1 && !o.expand,
651
+ "data-lifted": f.value && r.value.length > 1 && !o.expand,
652
652
  style: {
653
653
  "--front-toast-height": `${(P = z.value[0]) == null ? void 0 : P.height}px`,
654
654
  "--offset": typeof o.offset == "number" ? `${o.offset}px` : o.offset || Gt,
@@ -660,17 +660,17 @@ const ea = /* @__PURE__ */ bt({
660
660
  }, o.$attrs, {
661
661
  onBlur: S,
662
662
  onFocus: L,
663
- onMouseenter: i[1] || (i[1] = () => v.value = !0),
664
- onMousemove: i[2] || (i[2] = () => v.value = !0),
663
+ onMouseenter: i[1] || (i[1] = () => f.value = !0),
664
+ onMousemove: i[2] || (i[2] = () => f.value = !0),
665
665
  onMouseleave: i[3] || (i[3] = () => {
666
- c.value || (v.value = !1);
666
+ c.value || (f.value = !1);
667
667
  }),
668
668
  onPointerdown: gt,
669
669
  onPointerup: i[4] || (i[4] = () => c.value = !1)
670
670
  }), [
671
671
  (d(!0), h(j, null, mt(y.value(l, w), (A, H) => {
672
672
  var q, J, at, ot, st, nt, rt, it, R;
673
- return d(), G(ve, {
673
+ return d(), G(fe, {
674
674
  key: A.id,
675
675
  heights: z.value.filter((Y) => Y.position === A.position),
676
676
  icons: o.icons,
@@ -693,13 +693,13 @@ const ea = /* @__PURE__ */ bt({
693
693
  toasts: r.value.filter((Y) => Y.position === A.position),
694
694
  expandByDefault: o.expand,
695
695
  gap: o.gap,
696
- expanded: v.value,
696
+ expanded: f.value,
697
697
  pauseWhenPageIsHidden: o.pauseWhenPageIsHidden,
698
698
  cn: o.cn,
699
699
  "onUpdate:heights": i[0] || (i[0] = (Y) => {
700
700
  z.value = Y;
701
701
  }),
702
- onRemoveToast: ft
702
+ onRemoveToast: vt
703
703
  }, {
704
704
  "close-icon": U(() => [
705
705
  E(o.$slots, "close-icon", {}, () => [
@@ -743,13 +743,13 @@ const ea = /* @__PURE__ */ bt({
743
743
  }), We = () => te().PORTAL_V2_BACKEND;
744
744
  async function Ge(s) {
745
745
  return (await K.Get(
746
- "https://api.feedme.vip",
746
+ "http://localhost:8787",
747
747
  `/short-url/${s}`
748
748
  )).data;
749
749
  }
750
750
  async function Fe(s, a, t) {
751
751
  return await K.Post(
752
- "https://api.feedme.vip",
752
+ "http://localhost:8787",
753
753
  "/short-url",
754
754
  {
755
755
  data: {
@@ -766,13 +766,13 @@ async function Fe(s, a, t) {
766
766
  }
767
767
  async function Ke(s) {
768
768
  return (await K.Get(
769
- "https://api.feedme.vip",
769
+ "http://localhost:8787",
770
770
  `/metadata/${s}/config`
771
771
  )).data;
772
772
  }
773
773
  async function qe(s, a, t) {
774
774
  return (await K.Post(
775
- "https://api.feedme.vip",
775
+ "http://localhost:8787",
776
776
  `/metadata/${s}/config`,
777
777
  {
778
778
  data: {
@@ -797,7 +797,7 @@ async function Je(s, a) {
797
797
  }
798
798
  async function Qe(s) {
799
799
  return (await K.Get(
800
- "https://license.feedme.cc/api",
800
+ "https://license.feedmedev.cc/api",
801
801
  `/business/${s}/feature/miniprogram`
802
802
  )).data;
803
803
  }
@@ -1,4 +1,4 @@
1
- import { B as s } from "./index-T23clKe0.js";
1
+ import { B as s } from "./index-DIGmVQHT.js";
2
2
  import { defineStore as n } from "pinia";
3
3
  import { ref as r } from "vue";
4
4
  const m = n("business", () => {