@feedmepos/mf-miniprogram-v2 0.2.8-dev.8 → 0.2.8
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-CulUM6bp.js → App-CI4ncIRr.js} +352 -343
- package/dist/{BrandFontPicker-VX2LAN2w.js → BrandFontPicker-Ud9cZQm1.js} +1 -1
- package/dist/BrandKitView-n5K3qyUW.js +276 -0
- package/dist/{ControlPlaneView-BrIrCpIX.js → ControlPlaneView-BPVh5gPy.js} +8940 -8478
- package/dist/{EcosystemView-CVunQHEs.js → EcosystemView-j7eC2CsA.js} +115 -93
- package/dist/{LegacyWorkspaceEntry-lEMtmdIe.js → LegacyWorkspaceEntry-CADRpDkg.js} +1 -1
- package/dist/{MobileProjectDialog-C4wvWZ95.js → MobileProjectDialog-DYlIwjzr.js} +261 -256
- package/dist/{MobileProjectsView-CZVTbgqX.js → MobileProjectsView-BFljhsY0.js} +66 -61
- package/dist/ModuleCenterView-886eyuBg.js +283 -0
- package/dist/ModuleDetailView-B1IXOpig.js +296 -0
- package/dist/{PagesView-DgfNxkGp.js → PagesView-D5uGpfrp.js} +2 -2
- package/dist/{PlatformUnavailableView-ChSD6P3O.js → PlatformUnavailableView-OHEJAztd.js} +1 -1
- package/dist/PortalSettingsView-B7NohuU5.js +123 -0
- package/dist/{TemplateCenterView-BPJSWb12.js → TemplateCenterView-BJ3MBEUa.js} +3 -3
- package/dist/{WorkspaceEntryView-C4MViyFH.js → WorkspaceEntryView-mpPpAsq4.js} +2 -2
- package/dist/app.js +15 -15
- package/dist/{controlPlane-DR5ykj4d.js → controlPlane-DuIuUbyk.js} +11 -11
- package/dist/{adminAccess-DdZ2qPdx.js → localPreference-C18SIo-s.js} +35 -35
- package/dist/package.json +1 -1
- package/dist/{portalContext-DuVkhksq.js → portalContext-BkAoYip4.js} +2 -2
- package/dist/portalNavigation-DLcC7Koh.js +43 -0
- package/dist/{routes-CK4kOaoY.js → routes-B9oMJsaM.js} +2 -4
- package/dist/style.css +1 -1
- package/dist/{useBrandKit-CKn1fm2o.js → useBrandKit-DDqx19_h.js} +265 -233
- package/dist/useModuleCatalog-CLRJw1aG.js +147 -0
- package/package.json +1 -1
- package/dist/BrandKitView-CB7kcVy2.js +0 -249
- package/dist/ModuleCenterView-D0Bv4sKT.js +0 -165
- package/dist/ModuleDetailView-Ue3oCNxk.js +0 -189
- package/dist/PortalSettingsView-DBrKVWjp.js +0 -233
- package/dist/portalNavigation-L5VwKlps.js +0 -42
- package/dist/useModuleCatalog-a4dKLnlS.js +0 -124
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as te, ref as n, computed as F, watch as G, resolveComponent as I, openBlock as s, createElementBlock as u, withKeys as L, withModifiers as N, createElementVNode as a, toDisplayString as k, createVNode as P, withCtx as J, normalizeStyle as E, withDirectives as K, vModelText as q, Fragment as S, renderList as oe, createCommentVNode as v, unref as T, createBlock as ae, createTextVNode as W, nextTick as le } from "vue";
|
|
2
|
-
import { G as V, f as ne, b as p, l as se } from "./useBrandKit-
|
|
2
|
+
import { G as V, f as ne, b as p, l as se } from "./useBrandKit-DDqx19_h.js";
|
|
3
3
|
import { _ as re } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
4
|
const xe = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAACXBIWXMAACE4AAAhOAFFljFgAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAADbZJREFUeAHtW2lsXNUV/t4yi5cZO4mdxUlsEmiBkI2dCkJBAloQSEBaCUoKkahUCYLUqjRFbVVVqlS6qAKVlqpIVBRRlqjwg1KKQNCUJIWELEBQQkgIcZzEThzimfF4PDNv63fufTNeMuN4TSXgSMd3ljfvve9+55577nefjVwuH+BzZCY+Z/YF4M+62fg/W8YB+sRdwA9MOlkwNRNR/qmxAzpQb09OqjntgD9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VfeIxmvGVPxXyycsgTd0GnibYbypU0R04inIlgmUPCMSqyzzfF7aZysrnwZm/JsWWVh1eQxXLpr8rdiSGafj33h2M2F1ZAK1PdOTF52K7HJXUuZgFlJYOsdA6/TJZbKaGV/839Jn3L4A/Fm3/wGRTH3CBVOXMAAAAABJRU5ErkJggg==", ue = ["onKeydown"], ie = { class: "font-picker__label" }, de = ["disabled", "aria-label", "aria-expanded"], ce = ["onKeydown", "aria-label"], ve = {
|
|
5
5
|
key: 0,
|
|
@@ -0,0 +1,276 @@
|
|
|
1
|
+
import { defineComponent as O, ref as S, computed as z, onMounted as V, onScopeDispose as G, resolveComponent as y, openBlock as l, createElementBlock as r, createElementVNode as t, unref as a, createTextVNode as p, createBlock as f, Teleport as Y, toDisplayString as c, createCommentVNode as d, createVNode as b, withCtx as k, normalizeStyle as _, normalizeClass as J, Fragment as g, renderList as C, withDirectives as D, vModelText as K } from "vue";
|
|
2
|
+
import { _ as j, B as q } from "./BrandFontPicker-Ud9cZQm1.js";
|
|
3
|
+
import { useRouter as Q, onBeforeRouteLeave as W } from "vue-router";
|
|
4
|
+
import { useDialog as X, useSnackbar as ee } from "@feedmepos/ui-library";
|
|
5
|
+
import { a as te, C as M, t as $, F as ae, u as se, i as oe } from "./useBrandKit-DDqx19_h.js";
|
|
6
|
+
import { _ as ne } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
|
+
const E = "data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='14.9999'%20height='13.75'%20viewBox='0%200%2014.9999%2013.75'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%201197147821'%3e%3cpath%20id='Ellipse%201329'%20d='M12.5%206.875C12.5%203.42322%209.84169%200.625%206.5625%200.625C3.28331%200.625%200.625%203.42322%200.625%206.875C0.625%2010.3268%203.28331%2013.125%206.5625%2013.125'%20stroke='%23B2B3B6'%20stroke-width='1.25'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cg%20id='Group%201197147762'%3e%3cpath%20id='Line%20297'%20d='M10.4952%206.53566C10.2511%206.2916%2010.2511%205.89592%2010.4953%205.65189C10.7394%205.40785%2011.1352%205.40787%2011.3793%205.65193L10.9372%206.0938L10.4952%206.53566ZM13.0982%207.37064C13.3423%207.6147%2013.3423%208.01038%2013.0982%208.25441C12.854%208.49845%2012.4583%208.49843%2012.2142%208.25437L12.6562%207.8125L13.0982%207.37064ZM10.9372%206.0938L11.3793%205.65193L13.0982%207.37064L12.6562%207.8125L12.2142%208.25437L10.4952%206.53566L10.9372%206.0938Z'%20fill='%23B2B3B6'/%3e%3cpath%20id='Line%20298'%20d='M13.0982%208.25433C12.8542%208.49841%2012.4584%208.49846%2012.2143%208.25444C11.9701%208.01042%2011.9701%207.61475%2012.2141%207.37067L12.6562%207.8125L13.0982%208.25433ZM13.9328%205.65201C14.1769%205.40793%2014.5727%205.40788%2014.8168%205.6519C15.0609%205.89592%2015.061%206.29159%2014.8169%206.53567L14.3749%206.09384L13.9328%205.65201ZM12.6562%207.8125L12.2141%207.37067L13.9328%205.65201L14.3749%206.09384L14.8169%206.53567L13.0982%208.25433L12.6562%207.8125Z'%20fill='%23B2B3B6'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e", le = { class: "portal-page bg-portal-bg-canvas text-portal-text-primary" }, re = { class: "portal-page-inner brand-page" }, ie = { class: "portal-page-heading" }, de = { class: "brand-help" }, ue = { class: "brand-actions" }, pe = {
|
|
8
|
+
key: 0,
|
|
9
|
+
class: "brand-unsaved"
|
|
10
|
+
}, ce = {
|
|
11
|
+
key: 1,
|
|
12
|
+
class: "portal-notice"
|
|
13
|
+
}, ve = {
|
|
14
|
+
key: 2,
|
|
15
|
+
class: "portal-loading",
|
|
16
|
+
role: "status"
|
|
17
|
+
}, be = {
|
|
18
|
+
key: 3,
|
|
19
|
+
role: "alert",
|
|
20
|
+
class: "portal-section portal-error"
|
|
21
|
+
}, me = {
|
|
22
|
+
key: 4,
|
|
23
|
+
role: "status"
|
|
24
|
+
}, ge = { class: "portal-section" }, he = { class: "portal-section-head" }, ye = { class: "brand-reset-content fm-typo-en-body-lg-600" }, fe = { class: "brand-color-grid" }, ke = ["value", "aria-label", "disabled", "onInput"], _e = { class: "brand-field-label" }, Ce = ["onUpdate:modelValue", "aria-label", "aria-invalid", "disabled"], Be = {
|
|
25
|
+
key: 0,
|
|
26
|
+
class: "portal-error"
|
|
27
|
+
}, xe = { class: "brand-advanced" }, Le = { class: "brand-role-grid" }, we = ["value", "aria-label", "disabled", "onInput"], Fe = ["onUpdate:modelValue", "aria-label", "aria-invalid", "disabled"], Ae = { class: "portal-section" }, Ie = { class: "portal-section-head" }, Se = { class: "brand-reset-content fm-typo-en-body-lg-600" }, Ve = { class: "brand-font-grid" }, De = /* @__PURE__ */ O({
|
|
28
|
+
__name: "BrandKitView",
|
|
29
|
+
setup(Ke) {
|
|
30
|
+
const e = se(), v = te(), B = X(), T = ee(), x = S(!1), R = Q(), u = S(!1), L = ["primary", "secondary", "accent", "background.base", "text.primary"], N = L.map((n) => M.find((s) => s.path === n)), P = M.filter((n) => !L.includes(n.path)), w = z(
|
|
31
|
+
() => !v.value || !e.state.loaded || e.state.loading || e.state.saving || e.hasInvalidColor.value || e.dirtyCount.value === 0
|
|
32
|
+
), h = (n) => !!(e.state.colors[n] && !oe(e.state.colors[n]));
|
|
33
|
+
function F(n, s) {
|
|
34
|
+
e.state.colors[n] = s.target.value, u.value = !1;
|
|
35
|
+
}
|
|
36
|
+
function A(n) {
|
|
37
|
+
e.resetToDefault(n), u.value = !1;
|
|
38
|
+
}
|
|
39
|
+
function U() {
|
|
40
|
+
B.open({
|
|
41
|
+
title: "Save the live Brand Kit?",
|
|
42
|
+
message: "Colors and fonts are shared business settings. Apps using this kit pick up the change immediately. This does not build or publish application code.",
|
|
43
|
+
dismissAway: !0,
|
|
44
|
+
primaryActions: { text: "Save Brand Kit", close: !0 },
|
|
45
|
+
secondaryActions: { text: "Cancel", close: !0 }
|
|
46
|
+
}).onPrimary(() => {
|
|
47
|
+
e.save().then(() => {
|
|
48
|
+
u.value = !0;
|
|
49
|
+
}).catch(() => {
|
|
50
|
+
u.value = !1;
|
|
51
|
+
});
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
V(() => {
|
|
55
|
+
x.value = !0, e.load();
|
|
56
|
+
});
|
|
57
|
+
function I(n) {
|
|
58
|
+
!e.dirtyCount.value && !e.state.saving || (n.preventDefault(), n.returnValue = "");
|
|
59
|
+
}
|
|
60
|
+
return V(() => window.addEventListener("beforeunload", I)), G(() => window.removeEventListener("beforeunload", I)), W((n) => e.state.saving ? !1 : e.dirtyCount.value ? (B.open({
|
|
61
|
+
title: "Discard unsaved Brand Kit changes?",
|
|
62
|
+
message: "Your live Brand Kit has not changed. Leave this page and discard the changes you have not saved?",
|
|
63
|
+
dismissAway: !0,
|
|
64
|
+
primaryActions: { text: "Discard and leave", close: !0 },
|
|
65
|
+
secondaryActions: { text: "Keep editing", close: !0 }
|
|
66
|
+
}).onPrimary(() => {
|
|
67
|
+
e.discardEdits(), R.push(n);
|
|
68
|
+
}), !1) : !0), (n, s) => {
|
|
69
|
+
const Z = y("FmIcon"), m = y("FmButton"), H = y("FmCircularProgress");
|
|
70
|
+
return l(), r("div", le, [
|
|
71
|
+
t("div", re, [
|
|
72
|
+
t("header", ie, [
|
|
73
|
+
s[7] || (s[7] = t("div", null, [
|
|
74
|
+
t("p", { class: "portal-eyebrow" }, "Applies to every surface"),
|
|
75
|
+
t("h1", null, "Your Business Identity")
|
|
76
|
+
], -1)),
|
|
77
|
+
t("div", de, [
|
|
78
|
+
s[6] || (s[6] = t("span", null, "Need help on brand kit?", -1)),
|
|
79
|
+
t("button", {
|
|
80
|
+
class: "brand-ask-remy",
|
|
81
|
+
type: "button",
|
|
82
|
+
onClick: s[0] || (s[0] = (o) => a(T).open({ message: "Coming soon" }, 3e3))
|
|
83
|
+
}, [...s[5] || (s[5] = [
|
|
84
|
+
t("img", {
|
|
85
|
+
src: j,
|
|
86
|
+
alt: "",
|
|
87
|
+
width: "20",
|
|
88
|
+
height: "20"
|
|
89
|
+
}, null, -1),
|
|
90
|
+
p(" Ask Remy ", -1)
|
|
91
|
+
])])
|
|
92
|
+
])
|
|
93
|
+
]),
|
|
94
|
+
x.value ? (l(), f(Y, {
|
|
95
|
+
key: 0,
|
|
96
|
+
to: "#portal-page-actions"
|
|
97
|
+
}, [
|
|
98
|
+
t("div", ue, [
|
|
99
|
+
a(e).dirtyCount.value ? (l(), r("span", pe, c(a(e).dirtyCount.value) + " unsaved", 1)) : d("", !0),
|
|
100
|
+
b(m, {
|
|
101
|
+
label: "Save",
|
|
102
|
+
disabled: w.value,
|
|
103
|
+
loading: a(e).state.saving,
|
|
104
|
+
onClick: U
|
|
105
|
+
}, {
|
|
106
|
+
default: k(() => [
|
|
107
|
+
t("span", {
|
|
108
|
+
class: J(["brand-save-content fm-typo-en-body-lg-600", { invisible: a(e).state.saving }]),
|
|
109
|
+
style: _({ color: w.value ? "var(--fm-color-neutral-gray-200)" : "var(--fm-color-neutral-white)" })
|
|
110
|
+
}, [
|
|
111
|
+
b(Z, {
|
|
112
|
+
name: "save",
|
|
113
|
+
"aria-hidden": "true",
|
|
114
|
+
style: { color: "inherit", fontSize: "20px", width: "20px", height: "20px", lineHeight: "20px", flex: "0 0 20px" }
|
|
115
|
+
}),
|
|
116
|
+
s[8] || (s[8] = p(" Save ", -1))
|
|
117
|
+
], 6)
|
|
118
|
+
]),
|
|
119
|
+
_: 1
|
|
120
|
+
}, 8, ["disabled", "loading"])
|
|
121
|
+
])
|
|
122
|
+
])) : d("", !0),
|
|
123
|
+
a(v) ? d("", !0) : (l(), r("p", ce, " You can view this Brand Kit, but need Brand Kit management permission to save changes. ")),
|
|
124
|
+
a(e).state.loading ? (l(), r("div", ve, [
|
|
125
|
+
b(H, { size: "xl" }),
|
|
126
|
+
s[9] || (s[9] = p("Loading Brand Kit… ", -1))
|
|
127
|
+
])) : d("", !0),
|
|
128
|
+
a(e).state.error ? (l(), r("div", be, [
|
|
129
|
+
t("p", null, c(a(e).state.error), 1),
|
|
130
|
+
a(e).state.loaded ? d("", !0) : (l(), f(m, {
|
|
131
|
+
key: 0,
|
|
132
|
+
label: "Try again",
|
|
133
|
+
variant: "secondary",
|
|
134
|
+
onClick: s[1] || (s[1] = (o) => a(e).load(!0))
|
|
135
|
+
}))
|
|
136
|
+
])) : d("", !0),
|
|
137
|
+
u.value && !a(e).dirtyCount.value && !a(e).state.error ? (l(), r("p", me, " Brand Kit saved. Apps using this kit can now pick up the changes. ")) : d("", !0),
|
|
138
|
+
a(e).state.loaded && !a(e).state.loading ? (l(), r(g, { key: 5 }, [
|
|
139
|
+
t("section", ge, [
|
|
140
|
+
t("div", he, [
|
|
141
|
+
s[11] || (s[11] = t("div", null, [
|
|
142
|
+
t("h2", null, "Colors"),
|
|
143
|
+
t("p", { class: "portal-description" }, "The colors that represent your brand identity.")
|
|
144
|
+
], -1)),
|
|
145
|
+
b(m, {
|
|
146
|
+
label: "Reset to default",
|
|
147
|
+
class: "brand-reset-button",
|
|
148
|
+
variant: "tertiary",
|
|
149
|
+
disabled: !a(v) || a(e).state.saving || a(e).colorsAreDefault.value,
|
|
150
|
+
onClick: s[2] || (s[2] = (o) => A("colors"))
|
|
151
|
+
}, {
|
|
152
|
+
default: k(() => [
|
|
153
|
+
t("span", ye, [
|
|
154
|
+
t("span", {
|
|
155
|
+
class: "brand-reset-icon",
|
|
156
|
+
style: _({ maskImage: `url(${JSON.stringify(a(E))})` }),
|
|
157
|
+
"aria-hidden": "true"
|
|
158
|
+
}, null, 4),
|
|
159
|
+
s[10] || (s[10] = p(" Reset to default ", -1))
|
|
160
|
+
])
|
|
161
|
+
]),
|
|
162
|
+
_: 1
|
|
163
|
+
}, 8, ["disabled"])
|
|
164
|
+
]),
|
|
165
|
+
t("div", fe, [
|
|
166
|
+
(l(!0), r(g, null, C(a(N), (o) => (l(), r("label", {
|
|
167
|
+
key: o.path,
|
|
168
|
+
class: "brand-color-card"
|
|
169
|
+
}, [
|
|
170
|
+
t("input", {
|
|
171
|
+
type: "color",
|
|
172
|
+
value: a($)(a(e).state.colors[o.path] ?? ""),
|
|
173
|
+
"aria-label": `${o.label} color picker`,
|
|
174
|
+
disabled: a(e).state.saving,
|
|
175
|
+
onInput: (i) => F(o.path, i)
|
|
176
|
+
}, null, 40, ke),
|
|
177
|
+
t("span", _e, c(o.path === "background.base" ? "Background" : o.path === "text.primary" ? "Text" : o.label), 1),
|
|
178
|
+
D(t("input", {
|
|
179
|
+
"onUpdate:modelValue": (i) => a(e).state.colors[o.path] = i,
|
|
180
|
+
class: "brand-value",
|
|
181
|
+
"aria-label": `${o.path} hex color`,
|
|
182
|
+
"aria-invalid": h(o.path),
|
|
183
|
+
disabled: a(e).state.saving,
|
|
184
|
+
placeholder: "App default",
|
|
185
|
+
spellcheck: "false"
|
|
186
|
+
}, null, 8, Ce), [
|
|
187
|
+
[K, a(e).state.colors[o.path]]
|
|
188
|
+
]),
|
|
189
|
+
h(o.path) ? (l(), r("small", Be, "Enter a hex color")) : d("", !0)
|
|
190
|
+
]))), 128))
|
|
191
|
+
]),
|
|
192
|
+
t("details", xe, [
|
|
193
|
+
s[12] || (s[12] = t("summary", null, [
|
|
194
|
+
p("More color roles "),
|
|
195
|
+
t("span", null, "Keep control of text, surfaces and status colors")
|
|
196
|
+
], -1)),
|
|
197
|
+
s[13] || (s[13] = t("p", { class: "portal-description" }, " Each role is saved independently. Changing a brand color does not automatically replace text or status colors. ", -1)),
|
|
198
|
+
t("div", Le, [
|
|
199
|
+
(l(!0), r(g, null, C(a(P), (o) => (l(), r("label", {
|
|
200
|
+
key: o.path
|
|
201
|
+
}, [
|
|
202
|
+
t("span", null, c(o.group) + " · " + c(o.label), 1),
|
|
203
|
+
t("div", null, [
|
|
204
|
+
t("input", {
|
|
205
|
+
type: "color",
|
|
206
|
+
value: a($)(a(e).state.colors[o.path] ?? ""),
|
|
207
|
+
"aria-label": `${o.path} color picker`,
|
|
208
|
+
disabled: a(e).state.saving,
|
|
209
|
+
onInput: (i) => F(o.path, i)
|
|
210
|
+
}, null, 40, we),
|
|
211
|
+
D(t("input", {
|
|
212
|
+
"onUpdate:modelValue": (i) => a(e).state.colors[o.path] = i,
|
|
213
|
+
"aria-label": `${o.path} hex color`,
|
|
214
|
+
"aria-invalid": h(o.path),
|
|
215
|
+
disabled: a(e).state.saving,
|
|
216
|
+
class: "brand-value",
|
|
217
|
+
placeholder: "App default",
|
|
218
|
+
spellcheck: "false"
|
|
219
|
+
}, null, 8, Fe), [
|
|
220
|
+
[K, a(e).state.colors[o.path]]
|
|
221
|
+
])
|
|
222
|
+
]),
|
|
223
|
+
t("small", null, c(o.hint), 1)
|
|
224
|
+
]))), 128))
|
|
225
|
+
])
|
|
226
|
+
])
|
|
227
|
+
]),
|
|
228
|
+
t("section", Ae, [
|
|
229
|
+
t("div", Ie, [
|
|
230
|
+
s[15] || (s[15] = t("div", null, [
|
|
231
|
+
t("h2", null, "Typeface"),
|
|
232
|
+
t("p", { class: "portal-description" }, "Fonts used in your interfaces.")
|
|
233
|
+
], -1)),
|
|
234
|
+
b(m, {
|
|
235
|
+
label: "Reset to default",
|
|
236
|
+
class: "brand-reset-button",
|
|
237
|
+
variant: "tertiary",
|
|
238
|
+
disabled: !a(v) || a(e).state.saving || a(e).fontsAreDefault.value,
|
|
239
|
+
onClick: s[3] || (s[3] = (o) => A("fonts"))
|
|
240
|
+
}, {
|
|
241
|
+
default: k(() => [
|
|
242
|
+
t("span", Se, [
|
|
243
|
+
t("span", {
|
|
244
|
+
class: "brand-reset-icon",
|
|
245
|
+
style: _({ maskImage: `url(${JSON.stringify(a(E))})` }),
|
|
246
|
+
"aria-hidden": "true"
|
|
247
|
+
}, null, 4),
|
|
248
|
+
s[14] || (s[14] = p(" Reset to default ", -1))
|
|
249
|
+
])
|
|
250
|
+
]),
|
|
251
|
+
_: 1
|
|
252
|
+
}, 8, ["disabled"])
|
|
253
|
+
]),
|
|
254
|
+
t("div", Ve, [
|
|
255
|
+
(l(!0), r(g, null, C(a(ae), (o) => (l(), f(q, {
|
|
256
|
+
key: o.path,
|
|
257
|
+
modelValue: a(e).state.fonts[o.path],
|
|
258
|
+
"onUpdate:modelValue": [
|
|
259
|
+
(i) => a(e).state.fonts[o.path] = i,
|
|
260
|
+
s[4] || (s[4] = (i) => u.value = !1)
|
|
261
|
+
],
|
|
262
|
+
label: o.label === "Heading" ? "Headings" : o.label,
|
|
263
|
+
disabled: !a(v) || a(e).state.saving
|
|
264
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "label", "disabled"]))), 128))
|
|
265
|
+
]),
|
|
266
|
+
s[16] || (s[16] = t("p", { class: "portal-description brand-font-help" }, "Supported by Google Fonts", -1))
|
|
267
|
+
])
|
|
268
|
+
], 64)) : d("", !0)
|
|
269
|
+
])
|
|
270
|
+
]);
|
|
271
|
+
};
|
|
272
|
+
}
|
|
273
|
+
}), Pe = /* @__PURE__ */ ne(De, [["__scopeId", "data-v-08bc09ca"]]);
|
|
274
|
+
export {
|
|
275
|
+
Pe as default
|
|
276
|
+
};
|