@feedmepos/mf-miniprogram-v2 0.2.2-dev.1 → 0.2.2-dev.2
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.
- package/dist/{App-C-7evg9W.js → App-D7vZDj-a.js} +35 -38
- package/dist/{PagesView-CrVOYOT9.js → PagesView-BHo_fnWa.js} +1 -1
- package/dist/{PlatformUnavailableView-Cdy-1zpi.js → PlatformUnavailableView-C1RltAIw.js} +1 -1
- package/dist/PortalIcon-DO0VrIoY.js +28 -0
- package/dist/app.js +3 -3
- package/dist/package.json +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/PortalIcon-D1RqQMzD.js +0 -19
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as F, computed as v, ref as T, onMounted as R, onBeforeUnmount as
|
|
1
|
+
import { defineComponent as F, computed as v, ref as T, onMounted as R, onBeforeUnmount as E, resolveComponent as f, openBlock as s, createElementBlock as i, Fragment as S, createElementVNode as a, normalizeClass as x, createVNode as l, renderList as w, unref as t, withCtx as c, toDisplayString as b, createCommentVNode as N, createTextVNode as V, createBlock as z } from "vue";
|
|
2
2
|
import { useRoute as K, RouterView as O } from "vue-router";
|
|
3
3
|
import { useCoreStore as A } from "@feedmepos/mf-common";
|
|
4
|
-
import { P as
|
|
4
|
+
import { P as g } from "./PortalIcon-DO0VrIoY.js";
|
|
5
5
|
import { p as $ } from "./portalContext-CTVzkJV7.js";
|
|
6
6
|
import { w as D, p as k } from "./portalNavigation-DKCfwTH8.js";
|
|
7
7
|
import { r as G, w as Q } from "./localPreference-DneUpUrQ.js";
|
|
@@ -37,44 +37,44 @@ const H = {
|
|
|
37
37
|
}, ne = /* @__PURE__ */ F({
|
|
38
38
|
__name: "App",
|
|
39
39
|
setup(se) {
|
|
40
|
-
const r = K(), _ = A(), n = $(), p = v(() => r.name === "miniprogram-v2-project"),
|
|
40
|
+
const r = K(), _ = A(), n = $(), p = v(() => r.name === "miniprogram-v2-project"), u = T(
|
|
41
41
|
G(
|
|
42
42
|
"mpv2:portal-collapsed",
|
|
43
43
|
p.value || typeof window < "u" && window.matchMedia("(max-width: 1000px)").matches
|
|
44
44
|
)
|
|
45
|
-
),
|
|
46
|
-
var
|
|
47
|
-
return (
|
|
48
|
-
}),
|
|
45
|
+
), y = v(() => {
|
|
46
|
+
var m;
|
|
47
|
+
return (m = n.context.value) == null ? void 0 : m.projectId;
|
|
48
|
+
}), M = v(() => p.value && r.params.projectId !== y.value), q = v(
|
|
49
49
|
() => {
|
|
50
|
-
var
|
|
51
|
-
return p.value ? (
|
|
50
|
+
var m;
|
|
51
|
+
return p.value ? (m = n.context.value) == null ? void 0 : m.project.name : String(r.meta.title ?? "Ecosystem");
|
|
52
52
|
}
|
|
53
|
-
),
|
|
53
|
+
), B = [
|
|
54
54
|
{ name: "miniprogram-v2-ecosystem", label: "Ecosystem", icon: "ecosystem" },
|
|
55
55
|
{ name: "miniprogram-v2-brand-kit", label: "Brand Kit", icon: "brand" },
|
|
56
56
|
{ name: "miniprogram-v2-pages", label: "Pages", icon: "pages" }
|
|
57
57
|
], C = v(
|
|
58
|
-
() =>
|
|
58
|
+
() => y.value ? D(y.value, "workspace", r.query) : { name: "miniprogram-v2-control", query: r.query }
|
|
59
59
|
);
|
|
60
60
|
let P = !1;
|
|
61
61
|
R(() => {
|
|
62
62
|
P = _.hideSidebar.value, _.hideSidebar.value = !0;
|
|
63
|
-
}),
|
|
63
|
+
}), E(() => {
|
|
64
64
|
_.hideSidebar.value = P;
|
|
65
65
|
});
|
|
66
|
-
function
|
|
67
|
-
|
|
66
|
+
function I() {
|
|
67
|
+
u.value = !u.value, Q("mpv2:portal-collapsed", u.value);
|
|
68
68
|
}
|
|
69
|
-
return (
|
|
70
|
-
const d =
|
|
69
|
+
return (m, e) => {
|
|
70
|
+
const d = f("RouterLink"), h = f("FmIcon"), j = f("FmCircularProgress"), L = f("FmButton");
|
|
71
71
|
return s(), i(S, null, [
|
|
72
72
|
e[14] || (e[14] = a("link", {
|
|
73
73
|
href: "https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@24,400,0..1,0",
|
|
74
74
|
rel: "stylesheet"
|
|
75
75
|
}, null, -1)),
|
|
76
76
|
a("div", {
|
|
77
|
-
class: x(["mpv2-app portal-shell", { "portal-shell--collapsed":
|
|
77
|
+
class: x(["mpv2-app portal-shell", { "portal-shell--collapsed": u.value }])
|
|
78
78
|
}, [
|
|
79
79
|
e[13] || (e[13] = a("a", {
|
|
80
80
|
class: "portal-skip",
|
|
@@ -84,16 +84,16 @@ const H = {
|
|
|
84
84
|
a("button", {
|
|
85
85
|
class: "portal-sidebar-toggle",
|
|
86
86
|
type: "button",
|
|
87
|
-
"aria-expanded": !
|
|
87
|
+
"aria-expanded": !u.value,
|
|
88
88
|
"aria-controls": "miniprogram-navigation",
|
|
89
|
-
"aria-label":
|
|
90
|
-
onClick:
|
|
89
|
+
"aria-label": u.value ? "Expand navigation" : "Collapse navigation",
|
|
90
|
+
onClick: I
|
|
91
91
|
}, [
|
|
92
|
-
l(
|
|
92
|
+
l(g, { name: "collapse" }),
|
|
93
93
|
e[0] || (e[0] = a("span", { class: "portal-nav-label" }, "Mini Program", -1))
|
|
94
94
|
], 8, J),
|
|
95
95
|
a("nav", W, [
|
|
96
|
-
(s(), i(S, null,
|
|
96
|
+
(s(), i(S, null, w(B, (o) => l(d, {
|
|
97
97
|
key: o.name,
|
|
98
98
|
to: { name: o.name, query: t(k)(t(r).query) },
|
|
99
99
|
class: "portal-nav-item",
|
|
@@ -102,7 +102,7 @@ const H = {
|
|
|
102
102
|
"aria-current": t(r).name === o.name ? "page" : void 0
|
|
103
103
|
}, {
|
|
104
104
|
default: c(() => [
|
|
105
|
-
l(
|
|
105
|
+
l(g, {
|
|
106
106
|
name: o.icon
|
|
107
107
|
}, null, 8, ["name"]),
|
|
108
108
|
a("span", X, b(o.label), 1)
|
|
@@ -118,12 +118,12 @@ const H = {
|
|
|
118
118
|
"aria-current": p.value ? "page" : void 0
|
|
119
119
|
}, {
|
|
120
120
|
default: c(() => [
|
|
121
|
-
l(
|
|
121
|
+
l(g, { name: "mobile" }),
|
|
122
122
|
e[1] || (e[1] = a("span", { class: "portal-nav-label" }, "Mobile Ordering", -1))
|
|
123
123
|
]),
|
|
124
124
|
_: 1
|
|
125
125
|
}, 8, ["to", "class", "aria-current"]),
|
|
126
|
-
(s(), i(S, null,
|
|
126
|
+
(s(), i(S, null, w(["tablet", "kiosk"], (o) => l(d, {
|
|
127
127
|
key: o,
|
|
128
128
|
to: { name: `miniprogram-v2-${o}`, query: t(k)(t(r).query) },
|
|
129
129
|
class: "portal-nav-item",
|
|
@@ -131,7 +131,7 @@ const H = {
|
|
|
131
131
|
"aria-label": o === "tablet" ? "Tablet" : "Kiosk"
|
|
132
132
|
}, {
|
|
133
133
|
default: c(() => [
|
|
134
|
-
l(
|
|
134
|
+
l(g, { name: o }, null, 8, ["name"]),
|
|
135
135
|
a("span", Y, b(o === "tablet" ? "Tablet" : "Kiosk"), 1)
|
|
136
136
|
]),
|
|
137
137
|
_: 2
|
|
@@ -144,7 +144,7 @@ const H = {
|
|
|
144
144
|
"aria-label": "Module library"
|
|
145
145
|
}, {
|
|
146
146
|
default: c(() => [
|
|
147
|
-
l(
|
|
147
|
+
l(h, {
|
|
148
148
|
name: "widgets",
|
|
149
149
|
size: "md"
|
|
150
150
|
}),
|
|
@@ -160,20 +160,17 @@ const H = {
|
|
|
160
160
|
"aria-label": "Settings"
|
|
161
161
|
}, {
|
|
162
162
|
default: c(() => [
|
|
163
|
-
l(
|
|
164
|
-
name: "settings",
|
|
165
|
-
size: "md"
|
|
166
|
-
}),
|
|
163
|
+
l(g, { name: "settings" }),
|
|
167
164
|
e[5] || (e[5] = a("span", { class: "portal-nav-label" }, "Settings", -1))
|
|
168
165
|
]),
|
|
169
166
|
_: 1
|
|
170
167
|
}, 8, ["to"])
|
|
171
168
|
]),
|
|
172
169
|
a("div", Z, [
|
|
173
|
-
p.value ?
|
|
170
|
+
p.value ? N("", !0) : (s(), i("header", ee, [
|
|
174
171
|
a("span", null, b(t(n).businessName.value), 1),
|
|
175
172
|
e[6] || (e[6] = a("span", { "aria-hidden": "true" }, "/", -1)),
|
|
176
|
-
a("span", null, b(
|
|
173
|
+
a("span", null, b(q.value), 1)
|
|
177
174
|
])),
|
|
178
175
|
a("div", ae, [
|
|
179
176
|
t(n).businessId.value ? t(n).loading.value ? (s(), i("div", oe, [
|
|
@@ -186,7 +183,7 @@ const H = {
|
|
|
186
183
|
label: "Try again",
|
|
187
184
|
onClick: t(n).refresh
|
|
188
185
|
}, null, 8, ["onClick"])
|
|
189
|
-
])) :
|
|
186
|
+
])) : M.value ? (s(), i("section", re, [
|
|
190
187
|
e[11] || (e[11] = a("h1", null, "Project unavailable", -1)),
|
|
191
188
|
e[12] || (e[12] = a("p", null, "This link does not point to the selected business’s current mobile project.", -1)),
|
|
192
189
|
l(d, {
|
|
@@ -194,12 +191,12 @@ const H = {
|
|
|
194
191
|
class: "portal-link-button"
|
|
195
192
|
}, {
|
|
196
193
|
default: c(() => [...e[10] || (e[10] = [
|
|
197
|
-
|
|
194
|
+
V("Open current project", -1)
|
|
198
195
|
])]),
|
|
199
196
|
_: 1
|
|
200
197
|
}, 8, ["to"])
|
|
201
|
-
])) : (s(),
|
|
202
|
-
key: `${t(n).businessId.value}:${
|
|
198
|
+
])) : (s(), z(t(O), {
|
|
199
|
+
key: `${t(n).businessId.value}:${y.value}`
|
|
203
200
|
})) : (s(), i("section", te, [...e[7] || (e[7] = [
|
|
204
201
|
a("h1", null, "Select a business", -1),
|
|
205
202
|
a("p", null, "Choose a business in the Portal header to open its Mini Program.", -1)
|
|
@@ -210,7 +207,7 @@ const H = {
|
|
|
210
207
|
], 64);
|
|
211
208
|
};
|
|
212
209
|
}
|
|
213
|
-
}), ge = /* @__PURE__ */ U(ne, [["__scopeId", "data-v-
|
|
210
|
+
}), ge = /* @__PURE__ */ U(ne, [["__scopeId", "data-v-4eab214e"]]);
|
|
214
211
|
export {
|
|
215
212
|
ge as default
|
|
216
213
|
};
|
|
@@ -2,7 +2,7 @@ import { defineComponent as p, resolveComponent as i, openBlock as l, createElem
|
|
|
2
2
|
import { useRoute as d } from "vue-router";
|
|
3
3
|
import { u as g } from "./portalContext-CTVzkJV7.js";
|
|
4
4
|
import { w as f } from "./portalNavigation-DKCfwTH8.js";
|
|
5
|
-
import { P as k } from "./PortalIcon-
|
|
5
|
+
import { P as k } from "./PortalIcon-DO0VrIoY.js";
|
|
6
6
|
const w = { class: "portal-page" }, y = { class: "portal-page-inner" }, b = { class: "portal-section portal-empty" }, E = /* @__PURE__ */ p({
|
|
7
7
|
__name: "PagesView",
|
|
8
8
|
setup(v) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as i, computed as p, resolveComponent as m, openBlock as c, createElementBlock as u, createElementVNode as e, toDisplayString as a, unref as n, createVNode as r, withCtx as d, createTextVNode as _ } from "vue";
|
|
2
2
|
import { useRoute as g } from "vue-router";
|
|
3
|
-
import { P as f } from "./PortalIcon-
|
|
3
|
+
import { P as f } from "./PortalIcon-DO0VrIoY.js";
|
|
4
4
|
import { p as k } from "./portalNavigation-DKCfwTH8.js";
|
|
5
5
|
const y = { class: "portal-page" }, b = { class: "portal-page-inner" }, v = { class: "portal-page-heading" }, h = { class: "portal-section portal-empty" }, P = /* @__PURE__ */ i({
|
|
6
6
|
__name: "PlatformUnavailableView",
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { defineComponent as l, openBlock as o, createElementBlock as t, createElementVNode as i, Fragment as c, renderList as n, normalizeStyle as d, normalizeClass as a } from "vue";
|
|
2
|
+
import { _ as C } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
|
+
const p = "data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%201197147779'%3e%3cpath%20id='Rectangle%2034624630'%20d='M4.5%200.75H6V17.25H4.5C2.42893%2017.25%200.75%2015.5711%200.75%2013.5V4.5C0.75%202.42893%202.42893%200.75%204.5%200.75Z'%20stroke='%236B6C70'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20id='Rectangle%2034624631'%20d='M13.5%200.75C15.571%200.750015%2017.25%202.42897%2017.25%204.5V13.5C17.25%2015.5711%2015.5711%2017.25%2013.5%2017.25H6V0.75H13.5Z'%20stroke='%236B6C70'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20id='Vector%20177'%20d='M13.5%206L9.64188%208.8059C9.5101%208.90175%209.5101%209.09825%209.64188%209.1941L13.5%2012'%20stroke='%236B6C70'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3c/svg%3e", g = "data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%201197147825'%3e%3cpath%20id='Ellipse%201330'%20d='M9.00195%200.75C12.9283%200.75%2016.216%203.49224%2017.0498%207.16602C17.147%207.59434%2017.209%208.04273%2017.2354%208.49805C17.2893%209.42907%2016.4336%2010.25%2015.2197%2010.25H14.333C11.6195%2010.25%209.58394%2012.7328%2010.1162%2015.3936L10.1416%2015.5205C10.3386%2016.5059%209.72231%2017.25%209.00195%2017.25C4.44436%2017.25%200.75%2013.5562%200.75%209C0.75%204.44384%204.44436%200.750048%209.00195%200.75Z'%20stroke='%236B6C70'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3ccircle%20id='Ellipse%201331'%20cx='5.25'%20cy='12.2495'%20r='1.25'%20fill='%236B6C70'/%3e%3ccircle%20id='Ellipse%201332'%20cx='4.25'%20cy='7.25'%20r='1.25'%20fill='%236B6C70'/%3e%3ccircle%20id='Ellipse%201333'%20cx='8.25'%20cy='4.25'%20r='1.25'%20fill='%236B6C70'/%3e%3ccircle%20id='Ellipse%201334'%20cx='13.25'%20cy='6.24951'%20r='1.25'%20fill='%236B6C70'/%3e%3c/g%3e%3c/svg%3e", k = "data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Format/folder'%3e%3cpath%20id='Vector'%20d='M2%208C2%207.46957%202.21071%206.96086%202.58579%206.58579C2.96086%206.21071%203.46957%206%204%206H9L11%208.5H20C20.5304%208.5%2021.0391%208.71071%2021.4142%209.08579C21.7893%209.46086%2022%209.96957%2022%2010.5V18C22%2018.5304%2021.7893%2019.0391%2021.4142%2019.4142C21.0391%2019.7893%2020.5304%2020%2020%2020H4C3.46957%2020%202.96086%2019.7893%202.58579%2019.4142C2.21071%2019.0391%202%2018.5304%202%2018V8Z'%20stroke='%236B6C70'%20stroke-width='1.25'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3c/svg%3e", w = "data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Devices/mobile'%3e%3cpath%20id='Vector'%20d='M14.5%202H9.5C8.11929%202%207%203.11929%207%204.5V19.5C7%2020.8807%208.11929%2022%209.5%2022H14.5C15.8807%2022%2017%2020.8807%2017%2019.5V4.5C17%203.11929%2015.8807%202%2014.5%202Z'%20stroke='%236B6C70'%20stroke-width='1.5'%20stroke-linejoin='round'/%3e%3cpath%20id='Vector_2'%20d='M9.75%2019H14.25'%20stroke='%236B6C70'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3c/g%3e%3c/svg%3e", h = "data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Devices/tablet'%3e%3cpath%20id='Vector'%20d='M17%202H7C5.89543%202%205%202.89543%205%204V20C5%2021.1046%205.89543%2022%207%2022H17C18.1046%2022%2019%2021.1046%2019%2020V4C19%202.89543%2018.1046%202%2017%202Z'%20stroke='%236B6C70'%20stroke-width='1.5'%20stroke-linejoin='round'/%3e%3cpath%20id='Vector_2'%20d='M11.9996%2020.3996C12.4967%2020.3996%2012.8996%2019.9967%2012.8996%2019.4996C12.8996%2019.0026%2012.4967%2018.5996%2011.9996%2018.5996C11.5026%2018.5996%2011.0996%2019.0026%2011.0996%2019.4996C11.0996%2019.9967%2011.5026%2020.3996%2011.9996%2020.3996Z'%20fill='%236B6C70'/%3e%3c/g%3e%3c/svg%3e", v = "data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Devices/kiosk'%3e%3cpath%20id='Vector'%20d='M16%202H8C6.89543%202%206%202.89543%206%204V15C6%2016.1046%206.89543%2017%208%2017H16C17.1046%2017%2018%2016.1046%2018%2015V4C18%202.89543%2017.1046%202%2016%202Z'%20stroke='%236B6C70'%20stroke-width='1.5'%20stroke-linejoin='round'/%3e%3cpath%20id='Vector_2'%20d='M12%2017V21'%20stroke='%236B6C70'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3cpath%20id='Vector_3'%20d='M8%2021H16'%20stroke='%236B6C70'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3c/g%3e%3c/svg%3e", m = "data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='16.25'%20height='15'%20viewBox='0%200%2016.25%2015'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%201197147545'%3e%3cpath%20id='Vector'%20d='M14.9213%209.40635C15.3272%209.30438%2015.6126%208.94183%2015.6152%208.52478L15.625%206.93007C15.6275%206.525%2015.3623%206.16651%2014.9732%206.04892L14.1005%205.7852C13.8798%205.7185%2013.6924%205.57154%2013.5755%205.37352L12.8573%204.15727C12.739%203.95681%2012.7017%203.71897%2012.753%203.4921L12.9621%202.56859C13.0506%202.17784%2012.8737%201.7752%2012.5254%201.57492L11.0869%200.7476C10.7376%200.546665%2010.2975%200.596351%2010.0021%200.870075L9.3115%201.51008C9.13962%201.66936%208.91304%201.75704%208.67829%201.7551L7.2638%201.74343C7.03325%201.74153%206.81184%201.65331%206.64356%201.49631L5.97804%200.875398C5.68116%200.598427%205.23678%200.548947%204.88585%200.753787L3.49363%201.56643C3.13075%201.77825%202.9585%202.20851%203.07698%202.61051C3.1228%202.76597%203.17048%202.92701%203.21292%203.06898C3.28703%203.3169%203.25766%203.58529%203.12806%203.80945L2.42614%205.02358C2.29837%205.24458%202.08426%205.40375%201.83578%205.46516C1.68469%205.5025%201.50914%205.54613%201.34035%205.58818C0.93629%205.68883%200.651389%206.04815%200.645934%206.46301L0.62508%208.04887C0.61974%208.45496%200.883759%208.81595%201.27343%208.93536L2.17309%209.21105C2.39202%209.27813%202.57789%209.42429%202.69423%209.62084L3.41482%2010.8382C3.53378%2011.0392%203.57117%2011.2779%203.51934%2011.5054L3.30791%2012.4336C3.21883%2012.8247%203.39575%2013.2279%203.74437%2013.4284L5.17704%2014.2524C5.52563%2014.4529%205.96465%2014.4039%206.26008%2014.1316L6.96142%2013.4851C7.13328%2013.3267%207.35938%2013.2396%207.59352%2013.2417L9.01023%2013.2545C9.2404%2013.2566%209.4614%2013.3446%209.62948%2013.5013L10.2936%2014.1203C10.591%2014.3976%2011.0363%2014.4465%2011.3872%2014.2406L12.7622%2013.4339C13.1297%2013.2183%2013.3034%2012.778%2013.1882%2012.3689C13.1406%2012.1999%2013.0926%2012.0281%2013.0523%2011.8833C12.9866%2011.6471%2013.0193%2011.3949%2013.1425%2011.1827L13.8525%209.96047C13.9767%209.74663%2014.1824%209.59192%2014.4229%209.53151L14.9213%209.40635Z'%20stroke='%236B6C70'%20stroke-width='1.25'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20id='Ellipse%201274'%20d='M8.19692%204.53055C9.88304%204.53055%2011.2457%205.89191%2011.2457%207.56571C11.2455%209.23933%209.88291%2010.5999%208.19692%2010.5999C6.51095%2010.5999%205.14829%209.23931%205.14809%207.56571C5.14809%205.89193%206.51082%204.53058%208.19692%204.53055Z'%20stroke='%236B6C70'%20stroke-width='1.25'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3c/svg%3e", u = {
|
|
4
|
+
key: 0,
|
|
5
|
+
class: "portal-icon portal-icon-app",
|
|
6
|
+
"aria-hidden": "true"
|
|
7
|
+
}, x = { class: "portal-icon-dots" }, B = /* @__PURE__ */ l({
|
|
8
|
+
__name: "PortalIcon",
|
|
9
|
+
props: {
|
|
10
|
+
name: {}
|
|
11
|
+
},
|
|
12
|
+
setup(e) {
|
|
13
|
+
const s = { collapse: p, brand: g, pages: k, mobile: w, tablet: h, kiosk: v, settings: m };
|
|
14
|
+
return (f, L) => e.name === "ecosystem" ? (o(), t("span", u, [
|
|
15
|
+
i("span", x, [
|
|
16
|
+
(o(), t(c, null, n(9, (r) => i("span", { key: r })), 64))
|
|
17
|
+
])
|
|
18
|
+
])) : (o(), t("span", {
|
|
19
|
+
key: 1,
|
|
20
|
+
class: a(["portal-icon portal-icon-mask", `portal-icon-${e.name}`]),
|
|
21
|
+
style: d({ maskImage: `url(${JSON.stringify(s[e.name])})` }),
|
|
22
|
+
"aria-hidden": "true"
|
|
23
|
+
}, null, 6));
|
|
24
|
+
}
|
|
25
|
+
}), b = /* @__PURE__ */ C(B, [["__scopeId", "data-v-6d17c5ee"]]);
|
|
26
|
+
export {
|
|
27
|
+
b as P
|
|
28
|
+
};
|
package/dist/app.js
CHANGED
|
@@ -27,7 +27,7 @@ const o = [
|
|
|
27
27
|
path: "/pages",
|
|
28
28
|
name: "miniprogram-v2-pages",
|
|
29
29
|
meta: { title: "Pages" },
|
|
30
|
-
component: () => import("./PagesView-
|
|
30
|
+
component: () => import("./PagesView-BHo_fnWa.js")
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
path: "/settings",
|
|
@@ -39,7 +39,7 @@ const o = [
|
|
|
39
39
|
path: `/platforms/${e}`,
|
|
40
40
|
name: `miniprogram-v2-${e}`,
|
|
41
41
|
meta: { title: e === "tablet" ? "Tablet" : "Kiosk", kind: e },
|
|
42
|
-
component: () => import("./PlatformUnavailableView-
|
|
42
|
+
component: () => import("./PlatformUnavailableView-C1RltAIw.js")
|
|
43
43
|
})),
|
|
44
44
|
{
|
|
45
45
|
// The shared component library, not this merchant's workspace — which is
|
|
@@ -61,7 +61,7 @@ const o = [
|
|
|
61
61
|
path: "/:pathMatch(.*)*",
|
|
62
62
|
redirect: (e) => ({ name: "miniprogram-v2-ecosystem", query: e.query, params: {} })
|
|
63
63
|
}
|
|
64
|
-
], r = {}, a = t(() => import("./App-
|
|
64
|
+
], r = {}, a = t(() => import("./App-D7vZDj-a.js")), n = t(() => import("./LegacyWorkspaceEntry-7DvIosoj.js"));
|
|
65
65
|
export {
|
|
66
66
|
a as FmApp,
|
|
67
67
|
n as MiniprogramWorkspace,
|