@feedmepos/mf-miniprogram-v2 0.2.2-dev.2 → 0.2.2-dev.21

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 (33) hide show
  1. package/dist/App-BdvPLQMC.js +213 -0
  2. package/dist/AppTemplatePicker-CNJ6kIJk.js +237 -0
  3. package/dist/BrandFontPicker-kQKWf1hL.js +241 -0
  4. package/dist/BrandKitView-RaUWE69b.js +249 -0
  5. package/dist/{ControlPlaneView-DmhLvgWt.js → ControlPlaneView-l_gDDBtb.js} +8854 -8140
  6. package/dist/EcosystemView-CBEL5PT2.js +186 -0
  7. package/dist/{LegacyWorkspaceEntry-7DvIosoj.js → LegacyWorkspaceEntry-lEMtmdIe.js} +1 -1
  8. package/dist/MobileProjectsView-BruZHfdq.js +312 -0
  9. package/dist/{ModuleCenterView-Dqp-2hbL.js → ModuleCenterView-DI6Pakkr.js} +34 -34
  10. package/dist/{ModuleDetailView-cpQ_UfS9.js → ModuleDetailView-DteTTb-3.js} +49 -49
  11. package/dist/{PagesView-BHo_fnWa.js → PagesView-BYzldeqE.js} +1 -1
  12. package/dist/{PortalSettingsView-CkW-avwg.js → PortalSettingsView-Bl4z9cFG.js} +4 -4
  13. package/dist/StatusBadge.vue_vue_type_script_setup_true_lang-CMgQ0bd_.js +30 -0
  14. package/dist/TemplateCenterView-DNjVytwE.js +364 -0
  15. package/dist/{WorkspaceEntryView-ZdXuMQoJ.js → WorkspaceEntryView-BIumdrty.js} +1 -1
  16. package/dist/app.js +27 -10
  17. package/dist/{controlPlane-wUT1G_Gr.js → controlPlane-sXaC6pAh.js} +9 -9
  18. package/dist/{index-BDHUHtRw.js → index-CIJWcl_6.js} +25 -15
  19. package/dist/package.json +2 -1
  20. package/dist/{portalContext-CTVzkJV7.js → portalContext-BFTX5VVx.js} +2 -2
  21. package/dist/routes-D6BQSP4i.js +81 -0
  22. package/dist/style.css +1 -1
  23. package/dist/templatePickerFlag-BIYWgnaS.js +59 -0
  24. package/dist/useBrandKit-CkdPQRE-.js +1020 -0
  25. package/dist/{useModuleCatalog-CD5N246F.js → useModuleCatalog-Bk-gRmBb.js} +3 -3
  26. package/package.json +2 -1
  27. package/dist/App-D7vZDj-a.js +0 -213
  28. package/dist/BrandKitView-B8t8RkHr.js +0 -221
  29. package/dist/EcosystemView--S4hk_t4.js +0 -232
  30. package/dist/StatusBadge.vue_vue_type_script_setup_true_lang-Bh9Eoe_H.js +0 -26
  31. package/dist/localPreference-DneUpUrQ.js +0 -34
  32. package/dist/routes-L0ady_Wy.js +0 -53
  33. package/dist/useBrandKit-CpyR2j6m.js +0 -924
@@ -0,0 +1,59 @@
1
+ import { a as o } from "./routes-D6BQSP4i.js";
2
+ import { ref as i } from "vue";
3
+ import { c as a } from "./controlPlane-sXaC6pAh.js";
4
+ function m(e, t) {
5
+ if (typeof window > "u") return t;
6
+ try {
7
+ const n = window.localStorage.getItem(e);
8
+ return n === null ? t : n === "1";
9
+ } catch {
10
+ return t;
11
+ }
12
+ }
13
+ function w(e, t) {
14
+ if (typeof window > "u") return t;
15
+ try {
16
+ const n = Number(window.localStorage.getItem(e));
17
+ return Number.isFinite(n) ? n : t;
18
+ } catch {
19
+ return t;
20
+ }
21
+ }
22
+ function u(e, t) {
23
+ if (!(typeof window > "u"))
24
+ try {
25
+ window.localStorage.setItem(e, t);
26
+ } catch {
27
+ }
28
+ }
29
+ function h(e, t) {
30
+ u(e, t ? "1" : "0");
31
+ }
32
+ let r = null;
33
+ function c() {
34
+ return r || (r = a(o.adminWhoami()).then((e) => e.isAdmin).catch(() => !1)), r;
35
+ }
36
+ function p() {
37
+ const e = i(!1);
38
+ return c().then((t) => {
39
+ e.value = t;
40
+ }), e;
41
+ }
42
+ const d = "templatePicker";
43
+ function y() {
44
+ if (typeof window > "u") return !1;
45
+ try {
46
+ const e = new URLSearchParams(window.location.search).get(d);
47
+ return e !== null && e !== "0" && e !== "false";
48
+ } catch {
49
+ return !1;
50
+ }
51
+ }
52
+ export {
53
+ w as a,
54
+ u as b,
55
+ m as r,
56
+ y as t,
57
+ p as u,
58
+ h as w
59
+ };